var i$=Object.defineProperty;var o$=(e,n,t)=>n in e?i$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var nn=(e,n,t)=>(o$(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function fO(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}var aF={exports:{}},k_={},sF={exports:{}},ya={};/* object-assign (c) Sindre Sorhus @license MIT */var fk=Object.getOwnPropertySymbols,a$=Object.prototype.hasOwnProperty,s$=Object.prototype.propertyIsEnumerable;function l$(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u$(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;var r=Object.getOwnPropertyNames(n).map(function(o){return n[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var lF=u$()?Object.assign:function(e,n){for(var t,r=l$(e),i,o=1;oO2.length&&O2.push(e)}function _S(e,n,t,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case I_:case A$:o=!0}}if(o)return t(r,e,n===""?"."+Kw(e,0):n),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s"u"||typeof MessageChannel!="function"){var s=null,a=null,f=function(){if(s!==null)try{var pt=e.unstable_now();s(!0,pt),s=null}catch(dt){throw setTimeout(f,0),dt}},g=Date.now();e.unstable_now=function(){return Date.now()-g},n=function(pt){s!==null?setTimeout(n,0,pt):(s=pt,setTimeout(f,0))},t=function(pt,dt){a=setTimeout(pt,dt)},r=function(){clearTimeout(a)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var x=window.performance,k=window.Date,B=window.setTimeout,P=window.clearTimeout;if(typeof console<"u"){var R=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof R!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof x=="object"&&typeof x.now=="function")e.unstable_now=function(){return x.now()};else{var H=k.now();e.unstable_now=function(){return k.now()-H}}var W=!1,$=null,q=-1,oe=5,ne=0;i=function(){return e.unstable_now()>=ne},o=function(){},e.unstable_forceFrameRate=function(pt){0>pt||125>>1,Se=pt[Dt];if(Se!==void 0&&0Ne(xe,kt))Ze!==void 0&&0>Ne(Ze,xe)?(pt[Dt]=Ze,pt[Pe]=kt,Dt=Pe):(pt[Dt]=xe,pt[de]=kt,Dt=de);else if(Ze!==void 0&&0>Ne(Ze,kt))pt[Dt]=Ze,pt[Pe]=kt,Dt=Pe;else break e}}return dt}return null}function Ne(pt,dt){var kt=pt.sortIndex-dt.sortIndex;return kt!==0?kt:pt.id-dt.id}var rt=[],ct=[],Fe=1,He=null,Ce=3,jt=!1,Ft=!1,Jt=!1;function Nt(pt){for(var dt=ye(ct);dt!==null;){if(dt.callback===null)Re(ct);else if(dt.startTime<=pt)Re(ct),dt.sortIndex=dt.expirationTime,ue(rt,dt);else break;dt=ye(ct)}}function Ve(pt){if(Jt=!1,Nt(pt),!Ft)if(ye(rt)!==null)Ft=!0,n(nt);else{var dt=ye(ct);dt!==null&&t(Ve,dt.startTime-pt)}}function nt(pt,dt){Ft=!1,Jt&&(Jt=!1,r()),jt=!0;var kt=Ce;try{for(Nt(dt),He=ye(rt);He!==null&&(!(He.expirationTime>dt)||pt&&!i());){var Dt=He.callback;if(Dt!==null){He.callback=null,Ce=He.priorityLevel;var Se=Dt(He.expirationTime<=dt);dt=e.unstable_now(),typeof Se=="function"?He.callback=Se:He===ye(rt)&&Re(rt),Nt(dt)}else Re(rt);He=ye(rt)}if(He!==null)var de=!0;else{var xe=ye(ct);xe!==null&&t(Ve,xe.startTime-dt),de=!1}return de}finally{He=null,Ce=kt,jt=!1}}function Je(pt){switch(pt){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var Vt=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(pt){pt.callback=null},e.unstable_continueExecution=function(){Ft||jt||(Ft=!0,n(nt))},e.unstable_getCurrentPriorityLevel=function(){return Ce},e.unstable_getFirstCallbackNode=function(){return ye(rt)},e.unstable_next=function(pt){switch(Ce){case 1:case 2:case 3:var dt=3;break;default:dt=Ce}var kt=Ce;Ce=dt;try{return pt()}finally{Ce=kt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Vt,e.unstable_runWithPriority=function(pt,dt){switch(pt){case 1:case 2:case 3:case 4:case 5:break;default:pt=3}var kt=Ce;Ce=pt;try{return dt()}finally{Ce=kt}},e.unstable_scheduleCallback=function(pt,dt,kt){var Dt=e.unstable_now();if(typeof kt=="object"&&kt!==null){var Se=kt.delay;Se=typeof Se=="number"&&0Dt?(pt.sortIndex=Se,ue(ct,pt),ye(rt)===null&&pt===ye(ct)&&(Jt?r():Jt=!0,t(Ve,Se-Dt))):(pt.sortIndex=kt,ue(rt,pt),Ft||jt||(Ft=!0,n(nt))),pt},e.unstable_shouldYield=function(){var pt=e.unstable_now();Nt(pt);var dt=ye(rt);return dt!==He&&He!==null&&dt!==null&&dt.callback!==null&&dt.startTime<=pt&&dt.expirationTime"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ES=null,Qg=null,$g=null;function vk(e){if(e=SF(e)){if(typeof ES!="function")throw Error(Ln(280));var n=e.stateNode;n&&(n=CO(n),ES(e.stateNode,e.type,n))}}function kF(e){Qg?$g?$g.push(e):$g=[e]:Qg=e}function IF(){if(Qg){var e=Qg,n=$g;if($g=Qg=null,vk(e),n)for(e=0;e"u"||R$(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function vA(e,n,t,r,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o}var bu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){bu[e]=new vA(e,0,!1,e,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];bu[n]=new vA(n,1,!1,e[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){bu[e]=new vA(e,2,!1,e.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){bu[e]=new vA(e,2,!1,e,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){bu[e]=new vA(e,3,!1,e.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(e){bu[e]=new vA(e,3,!0,e,null,!1)});["capture","download"].forEach(function(e){bu[e]=new vA(e,4,!1,e,null,!1)});["cols","rows","size","span"].forEach(function(e){bu[e]=new vA(e,6,!1,e,null,!1)});["rowSpan","start"].forEach(function(e){bu[e]=new vA(e,5,!1,e.toLowerCase(),null,!1)});var MO=/[\-:]([a-z])/g;function SO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(MO,SO);bu[n]=new vA(n,1,!1,e,null,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(MO,SO);bu[n]=new vA(n,1,!1,e,"http://www.w3.org/1999/xlink",!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(MO,SO);bu[n]=new vA(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)});["tabIndex","crossOrigin"].forEach(function(e){bu[e]=new vA(e,1,!1,e.toLowerCase(),null,!1)});bu.xlinkHref=new vA("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(e){bu[e]=new vA(e,1,!1,e.toLowerCase(),null,!0)});var dh=O4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;dh.hasOwnProperty("ReactCurrentDispatcher")||(dh.ReactCurrentDispatcher={current:null});dh.hasOwnProperty("ReactCurrentBatchConfig")||(dh.ReactCurrentBatchConfig={suspense:null});function EO(e,n,t,r){var i=bu.hasOwnProperty(n)?bu[n]:null,o=i!==null?i.type===0:r?!1:!(!(2=t.length))throw Error(Ln(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:Im(t)}}function NF(e,n){var t=Im(n.value),r=Im(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function Ek(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}var GF={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function QF(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function PS(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?QF(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ox,$F=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,i){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,i)})}:e}(function(e,n){if(e.namespaceURI!==GF.svg||"innerHTML"in e)e.innerHTML=n;else{for(ox=ox||document.createElement("div"),ox.innerHTML=""+n.valueOf().toString()+"",n=ox.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function QC(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}function ax(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var kg={animationend:ax("Animation","AnimationEnd"),animationiteration:ax("Animation","AnimationIteration"),animationstart:ax("Animation","AnimationStart"),transitionend:ax("Transition","TransitionEnd")},Fw={},YF={};Um&&(YF=document.createElement("div").style,"AnimationEvent"in window||(delete kg.animationend.animation,delete kg.animationiteration.animation,delete kg.animationstart.animation),"TransitionEvent"in window||delete kg.transitionend.transition);function B4(e){if(Fw[e])return Fw[e];if(!kg[e])return e;var n=kg[e],t;for(t in n)if(n.hasOwnProperty(t)&&t in YF)return Fw[e]=n[t];return e}var qF=B4("animationend"),VF=B4("animationiteration"),HF=B4("animationstart"),ZF=B4("transitionend"),nC="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ok=new(typeof WeakMap=="function"?WeakMap:Map);function IO(e){var n=Ok.get(e);return n===void 0&&(n=new Map,Ok.set(e,n)),n}function y1(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,n.effectTag&1026&&(t=n.return),e=n.return;while(e)}return n.tag===3?t:null}function XF(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Bk(e){if(y1(e)!==e)throw Error(Ln(188))}function Q$(e){var n=e.alternate;if(!n){if(n=y1(e),n===null)throw Error(Ln(188));return n!==e?null:e}for(var t=e,r=n;;){var i=t.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){t=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===t)return Bk(i),e;if(o===r)return Bk(i),n;o=o.sibling}throw Error(Ln(188))}if(t.return!==r.return)t=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===t){s=!0,t=i,r=o;break}if(a===r){s=!0,r=i,t=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===t){s=!0,t=o,r=i;break}if(a===r){s=!0,r=o,t=i;break}a=a.sibling}if(!s)throw Error(Ln(189))}}if(t.alternate!==r)throw Error(Ln(190))}if(t.tag!==3)throw Error(Ln(188));return t.stateNode.current===t?e:n}function JF(e){if(e=Q$(e),!e)return null;for(var n=e;;){if(n.tag===5||n.tag===6)return n;if(n.child)n.child.return=n,n=n.child;else{if(n===e)break;for(;!n.sibling;){if(!n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}}return null}function my(e,n){if(n==null)throw Error(Ln(30));return e==null?n:Array.isArray(e)?Array.isArray(n)?(e.push.apply(e,n),e):(e.push(n),e):Array.isArray(n)?[e].concat(n):[e,n]}function TO(e,n,t){Array.isArray(e)?e.forEach(n,t):e&&n.call(t,e)}var Pv=null;function $$(e){if(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(Array.isArray(n))for(var r=0;rK2.length&&K2.push(e)}function nD(e,n,t,r){if(K2.length){var i=K2.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=n,i.targetInst=t,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:n,targetInst:t,ancestors:[]}}function rD(e){var n=e.targetInst,t=n;do{if(!t){e.ancestors.push(t);break}var r=t;if(r.tag===3)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=r.tag!==3?null:r.stateNode.containerInfo}if(!r)break;n=t.tag,n!==5&&n!==6||e.ancestors.push(t),t=P_(r)}while(t);for(t=0;t"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Pk(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fk(e,n){var t=Pk(e);e=0;for(var r;t;){if(t.nodeType===3){if(r=e+t.textContent.length,e<=n&&r>=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Pk(t)}}function cD(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?cD(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Dk(){for(var e=window,n=jS();n instanceof e.HTMLIFrameElement;){try{var t=typeof n.contentWindow.location.href=="string"}catch{t=!1}if(t)e=n.contentWindow;else break;n=jS(e.document)}return n}function WS(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var dD="$",hD="/$",RO="$?",LO="$!",Uw=null,Rw=null;function fD(e,n){switch(e){case"button":case"input":case"select":case"textarea":return!!n.autoFocus}return!1}function NS(e,n){return e==="textarea"||e==="option"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Lw=typeof setTimeout=="function"?setTimeout:void 0,oY=typeof clearTimeout=="function"?clearTimeout:void 0;function qg(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break}return e}function Uk(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var t=e.data;if(t===dD||t===LO||t===RO){if(n===0)return e;n--}else t===hD&&n++}e=e.previousSibling}return null}var zO=Math.random().toString(36).slice(2),am="__reactInternalInstance$"+zO,F2="__reactEventHandlers$"+zO,K_="__reactContainere$"+zO;function P_(e){var n=e[am];if(n)return n;for(var t=e.parentNode;t;){if(n=t[K_]||t[am]){if(t=n.alternate,n.child!==null||t!==null&&t.child!==null)for(e=Uk(e);e!==null;){if(t=e[am])return t;e=Uk(e)}return n}e=t,t=e.parentNode}return null}function F_(e){return e=e[am]||e[K_],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function i1(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ln(33))}function jO(e){return e[F2]||null}function np(e){do e=e.return;while(e&&e.tag!==5);return e||null}function pD(e,n){var t=e.stateNode;if(!t)return null;var r=CO(t);if(!r)return null;t=r[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(Ln(231,n,typeof t));return t}function Rk(e,n,t){(n=pD(e,t.dispatchConfig.phasedRegistrationNames[n]))&&(t._dispatchListeners=my(t._dispatchListeners,n),t._dispatchInstances=my(t._dispatchInstances,e))}function aY(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var n=e._targetInst,t=[];n;)t.push(n),n=np(n);for(n=t.length;0this.eventPool.length&&this.eventPool.push(e)}function gD(e){e.eventPool=[],e.getPooled=lY,e.release=uY}var AY=Wc.extend({data:null}),cY=Wc.extend({data:null}),dY=[9,13,27,32],NO=Um&&"CompositionEvent"in window,CC=null;Um&&"documentMode"in document&&(CC=document.documentMode);var hY=Um&&"TextEvent"in window&&!CC,yD=Um&&(!NO||CC&&8=CC),Lk=" ",Vf={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},zk=!1;function vD(e,n){switch(e){case"keyup":return dY.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function CD(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ig=!1;function fY(e,n){switch(e){case"compositionend":return CD(n);case"keypress":return n.which!==32?null:(zk=!0,Lk);case"textInput":return e=n.data,e===Lk&&zk?null:e;default:return null}}function pY(e,n){if(Ig)return e==="compositionend"||!NO&&vD(e,n)?(e=mD(),r2=WO=sm=null,Ig=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=document.documentMode,SD={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Tg=null,$S=null,bC=null,YS=!1;function $k(e,n){var t=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;return YS||Tg==null||Tg!==jS(t)?null:(t=Tg,"selectionStart"in t&&WS(t)?t={start:t.selectionStart,end:t.selectionEnd}:(t=(t.ownerDocument&&t.ownerDocument.defaultView||window).getSelection(),t={anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}),bC&&VC(bC,t)?null:(bC=t,e=Wc.getPooled(SD.select,$S,e,n),e.type="select",e.target=Tg,gy(e),e))}var IY={eventTypes:SD,extractEvents:function(e,n,t,r,i,o){if(i=o||(r.window===r?r.document:r.nodeType===9?r:r.ownerDocument),!(o=!i)){e:{i=IO(i),o=_O.onSelect;for(var s=0;sKg||(e.current=qS[Kg],qS[Kg]=null,Kg--)}function ol(e,n){Kg++,qS[Kg]=e.current,e.current=n}var Tm={},qu={current:Tm},NA={current:!1},a1=Tm;function yy(e,n){var t=e.type.contextTypes;if(!t)return Tm;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in t)i[o]=n[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=i),i}function GA(e){return e=e.childContextTypes,e!=null}function U2(){hs(NA),hs(qu)}function Yk(e,n,t){if(qu.current!==Tm)throw Error(Ln(168));ol(qu,n),ol(NA,t)}function ED(e,n,t){var r=e.stateNode;if(e=n.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Ln(108,vp(n)||"Unknown",i));return yA({},t,{},r)}function a2(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Tm,a1=qu.current,ol(qu,e),ol(NA,NA.current),!0}function qk(e,n,t){var r=e.stateNode;if(!r)throw Error(Ln(169));t?(e=ED(e,n,a1),r.__reactInternalMemoizedMergedChildContext=e,hs(NA),hs(qu),ol(qu,e)):hs(NA),ol(NA,t)}var GY=_u.unstable_runWithPriority,QO=_u.unstable_scheduleCallback,OD=_u.unstable_cancelCallback,Vk=_u.unstable_requestPaint,VS=_u.unstable_now,QY=_u.unstable_getCurrentPriorityLevel,K4=_u.unstable_ImmediatePriority,BD=_u.unstable_UserBlockingPriority,kD=_u.unstable_NormalPriority,ID=_u.unstable_LowPriority,TD=_u.unstable_IdlePriority,KD={},$Y=_u.unstable_shouldYield,YY=Vk!==void 0?Vk:function(){},up=null,s2=null,zw=!1,Hk=VS(),vd=1e4>Hk?VS:function(){return VS()-Hk};function P4(){switch(QY()){case K4:return 99;case BD:return 98;case kD:return 97;case ID:return 96;case TD:return 95;default:throw Error(Ln(332))}}function PD(e){switch(e){case 99:return K4;case 98:return BD;case 97:return kD;case 96:return ID;case 95:return TD;default:throw Error(Ln(332))}}function Km(e,n){return e=PD(e),GY(e,n)}function FD(e,n,t){return e=PD(e),QO(e,n,t)}function Zk(e){return up===null?(up=[e],s2=QO(K4,DD)):up.push(e),KD}function gf(){if(s2!==null){var e=s2;s2=null,OD(e)}DD()}function DD(){if(!zw&&up!==null){zw=!0;var e=0;try{var n=up;Km(99,function(){for(;e=n&&(Jh=!0),e.firstContext=null)}function Md(e,n){if(z2!==e&&n!==!1&&n!==0)if((typeof n!="number"||n===1073741823)&&(z2=e,n=1073741823),n={context:e,observedBits:n,next:null},Pg===null){if(L2===null)throw Error(Ln(308));Pg=n,L2.dependencies={expirationTime:0,firstContext:n,responders:null}}else Pg=Pg.next=n;return e._currentValue}var Jp=!1;function qO(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function VO(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function _m(e,n){return e={expirationTime:e,suspenseConfig:n,tag:0,payload:null,callback:null,next:null},e.next=e}function bm(e,n){if(e=e.updateQueue,e!==null){e=e.shared;var t=e.pending;t===null?n.next=n:(n.next=t.next,t.next=n),e.pending=n}}function Xk(e,n){var t=e.alternate;t!==null&&VO(t,e),e=e.updateQueue,t=e.baseQueue,t===null?(e.baseQueue=n.next=n,n.next=n):(n.next=t.next,t.next=n)}function HC(e,n,t,r){var i=e.updateQueue;Jp=!1;var o=i.baseQueue,s=i.shared.pending;if(s!==null){if(o!==null){var a=o.next;o.next=s.next,s.next=a}o=s,i.shared.pending=null,a=e.alternate,a!==null&&(a=a.updateQueue,a!==null&&(a.baseQueue=s))}if(o!==null){a=o.next;var f=i.baseState,g=0,x=null,k=null,B=null;if(a!==null){var P=a;do{if(s=P.expirationTime,sg&&(g=s)}else{B!==null&&(B=B.next={expirationTime:1073741823,suspenseConfig:P.suspenseConfig,tag:P.tag,payload:P.payload,callback:P.callback,next:null}),hU(s,P.suspenseConfig);e:{var H=e,W=P;switch(s=n,R=t,W.tag){case 1:if(H=W.payload,typeof H=="function"){f=H.call(R,f,s);break e}f=H;break e;case 3:H.effectTag=H.effectTag&-4097|64;case 0:if(H=W.payload,s=typeof H=="function"?H.call(R,f,s):H,s==null)break e;f=yA({},f,s);break e;case 2:Jp=!0}}P.callback!==null&&(e.effectTag|=32,s=i.effects,s===null?i.effects=[P]:s.push(P))}if(P=P.next,P===null||P===a){if(s=i.shared.pending,s===null)break;P=o.next=s.next,s.next=a,i.baseQueue=o=s,i.shared.pending=null}}while(!0)}B===null?x=f:B.next=k,i.baseState=x,i.baseQueue=B,L4(g),e.expirationTime=g,e.memoizedState=f}}function Jk(e,n,t){if(e=n.effects,n.effects=null,e!==null)for(n=0;nue?(ye=ae,ae=null):ye=ae.sibling;var Re=B(W,ae,q[ue],oe);if(Re===null){ae===null&&(ae=ye);break}e&&ae&&Re.alternate===null&&n(W,ae),$=o(Re,$,ue),ce===null?ne=Re:ce.sibling=Re,ce=Re,ae=ye}if(ue===q.length)return t(W,ae),ne;if(ae===null){for(;ueue?(ye=ae,ae=null):ye=ae.sibling;var Ne=B(W,ae,Re.value,oe);if(Ne===null){ae===null&&(ae=ye);break}e&&ae&&Ne.alternate===null&&n(W,ae),$=o(Ne,$,ue),ce===null?ne=Ne:ce.sibling=Ne,ce=Ne,ae=ye}if(Re.done)return t(W,ae),ne;if(ae===null){for(;!Re.done;ue++,Re=q.next())Re=k(W,Re.value,oe),Re!==null&&($=o(Re,$,ue),ce===null?ne=Re:ce.sibling=Re,ce=Re);return ne}for(ae=r(W,ae);!Re.done;ue++,Re=q.next())Re=P(ae,W,ue,Re.value,oe),Re!==null&&(e&&Re.alternate!==null&&ae.delete(Re.key===null?ue:Re.key),$=o(Re,$,ue),ce===null?ne=Re:ce.sibling=Re,ce=Re);return e&&ae.forEach(function(rt){return n(W,rt)}),ne}return function(W,$,q,oe){var ne=typeof q=="object"&&q!==null&&q.type===k0&&q.key===null;ne&&(q=q.props.children);var ce=typeof q=="object"&&q!==null;if(ce)switch(q.$$typeof){case rx:e:{for(ce=q.key,ne=$;ne!==null;){if(ne.key===ce){switch(ne.tag){case 7:if(q.type===k0){t(W,ne.sibling),$=i(ne,q.props.children),$.return=W,W=$;break e}break;default:if(ne.elementType===q.type){t(W,ne.sibling),$=i(ne,q.props),$.ref=Lv(W,ne,q),$.return=W,W=$;break e}}t(W,ne);break}else n(W,ne);ne=ne.sibling}q.type===k0?($=Am(q.props.children,W.mode,oe,q.key),$.return=W,W=$):(oe=d2(q.type,q.key,q.props,null,W.mode,oe),oe.ref=Lv(W,$,q),oe.return=W,W=oe)}return s(W);case Bg:e:{for(ne=q.key;$!==null;){if($.key===ne)if($.tag===4&&$.stateNode.containerInfo===q.containerInfo&&$.stateNode.implementation===q.implementation){t(W,$.sibling),$=i($,q.children||[]),$.return=W,W=$;break e}else{t(W,$);break}else n(W,$);$=$.sibling}$=Yw(q,W.mode,oe),$.return=W,W=$}return s(W)}if(typeof q=="string"||typeof q=="number")return q=""+q,$!==null&&$.tag===6?(t(W,$.sibling),$=i($,q),$.return=W,W=$):(t(W,$),$=$w(q,W.mode,oe),$.return=W,W=$),s(W);if(sx(q))return R(W,$,q,oe);if(Kv(q))return H(W,$,q,oe);if(ce&&lx(W,q),typeof q>"u"&&!ne)switch(W.tag){case 1:case 0:throw W=W.type,Error(Ln(152,W.displayName||W.name||"Component"))}return t(W,$)}}var vy=zD(!0),HO=zD(!1),R_={},rf={current:R_},ZC={current:R_},XC={current:R_};function U0(e){if(e===R_)throw Error(Ln(174));return e}function ZS(e,n){switch(ol(XC,n),ol(ZC,e),ol(rf,R_),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:PS(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=PS(n,e)}hs(rf),ol(rf,n)}function Cy(){hs(rf),hs(ZC),hs(XC)}function nI(e){U0(XC.current);var n=U0(rf.current),t=PS(n,e.type);n!==t&&(ol(ZC,e),ol(rf,t))}function ZO(e){ZC.current===e&&(hs(rf),hs(ZC))}var Qs={current:0};function W2(e){for(var n=e;n!==null;){if(n.tag===13){var t=n.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data===RO||t.data===LO))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if(n.effectTag&64)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function XO(e,n){return{responder:e,props:n}}var u2=dh.ReactCurrentDispatcher,bd=dh.ReactCurrentBatchConfig,lm=0,Nl=null,$u=null,Yu=null,N2=!1;function Ic(){throw Error(Ln(321))}function JO(e,n){if(n===null)return!1;for(var t=0;to))throw Error(Ln(301));o+=1,Yu=$u=null,n.updateQueue=null,u2.current=HY,e=t(r,i)}while(n.expirationTime===lm)}if(u2.current=$2,n=$u!==null&&$u.next!==null,lm=0,Yu=$u=Nl=null,N2=!1,n)throw Error(Ln(300));return e}function Hg(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yu===null?Nl.memoizedState=Yu=e:Yu=Yu.next=e,Yu}function Ky(){if($u===null){var e=Nl.alternate;e=e!==null?e.memoizedState:null}else e=$u.next;var n=Yu===null?Nl.memoizedState:Yu.next;if(n!==null)Yu=n,$u=e;else{if(e===null)throw Error(Ln(310));$u=e,e={memoizedState:$u.memoizedState,baseState:$u.baseState,baseQueue:$u.baseQueue,queue:$u.queue,next:null},Yu===null?Nl.memoizedState=Yu=e:Yu=Yu.next=e}return Yu}function $0(e,n){return typeof n=="function"?n(e):n}function ux(e){var n=Ky(),t=n.queue;if(t===null)throw Error(Ln(311));t.lastRenderedReducer=e;var r=$u,i=r.baseQueue,o=t.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,t.pending=null}if(i!==null){i=i.next,r=r.baseState;var a=s=o=null,f=i;do{var g=f.expirationTime;if(gNl.expirationTime&&(Nl.expirationTime=g,L4(g))}else a!==null&&(a=a.next={expirationTime:1073741823,suspenseConfig:f.suspenseConfig,action:f.action,eagerReducer:f.eagerReducer,eagerState:f.eagerState,next:null}),hU(g,f.suspenseConfig),r=f.eagerReducer===e?f.eagerState:e(r,f.action);f=f.next}while(f!==null&&f!==i);a===null?o=r:a.next=s,o1(r,n.memoizedState)||(Jh=!0),n.memoizedState=r,n.baseState=o,n.baseQueue=a,t.lastRenderedState=r}return[n.memoizedState,t.dispatch]}function Ax(e){var n=Ky(),t=n.queue;if(t===null)throw Error(Ln(311));t.lastRenderedReducer=e;var r=t.dispatch,i=t.pending,o=n.memoizedState;if(i!==null){t.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);o1(o,n.memoizedState)||(Jh=!0),n.memoizedState=o,n.baseQueue===null&&(n.baseState=o),t.lastRenderedState=o}return[o,r]}function jw(e){var n=Hg();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e=n.queue={pending:null,dispatch:null,lastRenderedReducer:$0,lastRenderedState:e},e=e.dispatch=$D.bind(null,Nl,e),[n.memoizedState,e]}function XS(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},n=Nl.updateQueue,n===null?(n={lastEffect:null},Nl.updateQueue=n,n.lastEffect=e.next=e):(t=n.lastEffect,t===null?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e)),e}function jD(){return Ky().memoizedState}function JS(e,n,t,r){var i=Hg();Nl.effectTag|=e,i.memoizedState=XS(1|n,t,void 0,r===void 0?null:r)}function tB(e,n,t,r){var i=Ky();r=r===void 0?null:r;var o=void 0;if($u!==null){var s=$u.memoizedState;if(o=s.destroy,r!==null&&JO(r,s.deps)){XS(n,t,o,r);return}}Nl.effectTag|=e,i.memoizedState=XS(1|n,t,o,r)}function rI(e,n){return JS(516,4,e,n)}function G2(e,n){return tB(516,4,e,n)}function WD(e,n){return tB(4,2,e,n)}function ND(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function GD(e,n,t){return t=t!=null?t.concat([e]):null,tB(4,2,ND.bind(null,n,e),t)}function nB(){}function iI(e,n){return Hg().memoizedState=[e,n===void 0?null:n],e}function Q2(e,n){var t=Ky();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&JO(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function QD(e,n){var t=Ky();n=n===void 0?null:n;var r=t.memoizedState;return r!==null&&n!==null&&JO(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function rB(e,n,t){var r=P4();Km(98>r?98:r,function(){e(!0)}),Km(97<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(i,{is:r.is}):(e=s.createElement(i),i==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,i),e[am]=n,e[F2]=r,HD(e,n,!1,!1),n.stateNode=e,s=zS(i,r),i){case"iframe":case"object":case"embed":Ks("load",e),a=r;break;case"video":case"audio":for(a=0;ar.tailExpiration&&1n)&&R0.set(e,n)))}}function R4(e,n){e.expirationTimee?t:e,2>=e&&n!==e?0:e}function zc(e){if(e.lastExpiredTime!==0)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Zk(u6.bind(null,e));else{var n=c2(e),t=e.callbackNode;if(n===0)t!==null&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=of();if(n===1073741823?r=99:n===1||n===2?r=95:(r=10*(1073741821-n)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),t!==null){var i=e.callbackPriority;if(e.callbackExpirationTime===n&&i>=r)return;t!==KD&&OD(t)}e.callbackExpirationTime=n,e.callbackPriority=r,n=n===1073741823?Zk(u6.bind(null,e)):FD(r,lU.bind(null,e),{timeout:10*(1073741821-n)-vd()}),e.callbackNode=n}}}function lU(e,n){if(A2=0,n)return n=of(),h6(e,n),zc(e),null;var t=c2(e);if(t!==0){if(n=e.callbackNode,(Ri&(hh|lf))!==su)throw Error(Ln(327));if(Py(),e===Lc&&t===QA||L0(e,t),eo!==null){var r=Ri;Ri|=hh;var i=dU();do try{lq();break}catch(a){cU(e,a)}while(!0);if($O(),Ri=r,Y2.current=i,au===q2)throw n=U4,L0(e,t),z0(e,t),zc(e),n;if(eo===null)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,r=au,Lc=null,r){case q0:case q2:throw Error(Ln(345));case aU:h6(e,2=t){e.lastPingedTime=t,L0(e,t);break}}if(o=c2(e),o!==0&&o!==t)break;if(r!==0&&r!==t){e.lastPingedTime=r;break}e.timeoutHandle=Lw(M0.bind(null,e),i);break}M0(e);break;case D4:if(z0(e,t),r=e.lastSuspendedTime,t===r&&(e.nextKnownPendingLevel=A6(i)),Z2&&(i=e.lastPingedTime,i===0||i>=t)){e.lastPingedTime=t,L0(e,t);break}if(i=c2(e),i!==0&&i!==t)break;if(r!==0&&r!==t){e.lastPingedTime=r;break}if(JC!==1073741823?r=10*(1073741821-JC)-vd():hp===1073741823?r=0:(r=10*(1073741821-hp)-5e3,i=vd(),t=10*(1073741821-t)-i,r=i-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oq(r/1960))-r,t=r?r=0:(i=s.busyDelayMs|0,o=vd()-(10*(1073741821-o)-(s.timeoutMs|0||5e3)),r=o<=i?0:i+r-o),10 component higher in the tree to provide a loading indicator or placeholder to display.`+kO(s))}au!==aB&&(au=aU),a=iB(a,s),k=o;do{switch(k.tag){case 3:f=a,k.effectTag|=4096,k.expirationTime=n;var ne=rU(k,f,n);Xk(k,ne);break e;case 1:f=a;var ce=k.type,ae=k.stateNode;if(!(k.effectTag&64)&&(typeof ce.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(xm===null||!xm.has(ae)))){k.effectTag|=4096,k.expirationTime=n;var ue=iU(k,f,n);Xk(k,ue);break e}}k=k.return}while(k!==null)}eo=pU(eo)}catch(ye){n=ye;continue}break}while(!0)}function dU(){var e=Y2.current;return Y2.current=$2,e===null?$2:e}function hU(e,n){ee_&&(e_=e)}function sq(){for(;eo!==null;)eo=fU(eo)}function lq(){for(;eo!==null&&!$Y();)eo=fU(eo)}function fU(e){var n=mU(e.alternate,e,QA);return e.memoizedProps=e.pendingProps,n===null&&(n=pU(e)),oU.current=null,n}function pU(e){eo=e;do{var n=eo.alternate;if(e=eo.return,eo.effectTag&2048){if(n=JY(eo),n!==null)return n.effectTag&=2047,n;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(n=XY(n,eo,QA),QA===1||eo.childExpirationTime!==1){for(var t=0,r=eo.child;r!==null;){var i=r.expirationTime,o=r.childExpirationTime;i>t&&(t=i),o>t&&(t=o),r=r.sibling}eo.childExpirationTime=t}if(n!==null)return n;e!==null&&!(e.effectTag&2048)&&(e.firstEffect===null&&(e.firstEffect=eo.firstEffect),eo.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=eo.firstEffect),e.lastEffect=eo.lastEffect),1e?n:e}function M0(e){var n=P4();return Km(99,uq.bind(null,e,n)),null}function uq(e,n){do Py();while(wC!==null);if((Ri&(hh|lf))!==su)throw Error(Ln(327));var t=e.finishedWork,r=e.finishedExpirationTime;if(t===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,t===e.current)throw Error(Ln(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=A6(t);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Lc&&(eo=Lc=null,QA=0),1a&&(g=a,a=s,s=g),g=Fk(oe,s),x=Fk(oe,a),g&&x&&(ce.rangeCount!==1||ce.anchorNode!==g.node||ce.anchorOffset!==g.offset||ce.focusNode!==x.node||ce.focusOffset!==x.offset)&&(ne=ne.createRange(),ne.setStart(g.node,g.offset),ce.removeAllRanges(),s>a?(ce.addRange(ne),ce.extend(x.node,x.offset)):(ne.setEnd(x.node,x.offset),ce.addRange(ne)))))),ne=[],ce=oe;ce=ce.parentNode;)ce.nodeType===1&&ne.push({element:ce,left:ce.scrollLeft,top:ce.scrollTop});for(typeof oe.focus=="function"&&oe.focus(),oe=0;oe=t?cI(e,n,t):(ol(Qs,Qs.current&1),n=yp(e,n,t),n!==null?n.sibling:null);ol(Qs,Qs.current&1);break;case 19:if(r=n.childExpirationTime>=t,e.effectTag&64){if(r)return hI(e,n,t);n.effectTag|=64}if(i=n.memoizedState,i!==null&&(i.rendering=null,i.tail=null),ol(Qs,Qs.current),!r)return null}return yp(e,n,t)}Jh=!1}}else Jh=!1;switch(n.expirationTime=0,n.tag){case 2:if(r=n.type,e!==null&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,i=yy(n,qu.current),Vg(n,t),i=eB(null,n,r,e,i,t),n.effectTag|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0){if(n.tag=1,n.memoizedState=null,n.updateQueue=null,GA(r)){var o=!0;a2(n)}else o=!1;n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,qO(n);var s=r.getDerivedStateFromProps;typeof s=="function"&&j2(n,r,s,e),i.updater=F4,n.stateNode=i,i._reactInternalFiber=n,HS(n,r,e,t),n=n6(null,n,r,!0,o,t)}else n.tag=0,Tc(null,n,i,t),n=n.child;return n;case 16:e:{if(i=n.elementType,e!==null&&(e.alternate=null,n.alternate=null,n.effectTag|=2),e=n.pendingProps,W$(i),i._status!==1)throw i._result;switch(i=i._result,n.type=i,o=n.tag=mq(i),e=sh(i,e),o){case 0:n=t6(null,n,i,e,t);break e;case 1:n=uI(null,n,i,e,t);break e;case 11:n=sI(null,n,i,e,t);break e;case 14:n=lI(null,n,i,sh(i.type,e),r,t);break e}throw Error(Ln(306,i,""))}return n;case 0:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sh(r,i),t6(e,n,r,i,t);case 1:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sh(r,i),uI(e,n,r,i,t);case 3:if(AI(n),r=n.updateQueue,e===null||r===null)throw Error(Ln(282));if(r=n.pendingProps,i=n.memoizedState,i=i!==null?i.element:null,VO(e,n),HC(n,r,null,t),r=n.memoizedState.element,r===i)Ww(),n=yp(e,n,t);else{if((i=n.stateNode.hydrate)&&(um=qg(n.stateNode.containerInfo.firstChild),gp=n,i=Y0=!0),i)for(t=HO(n,null,r,t),n.child=t;t;)t.effectTag=t.effectTag&-3|1024,t=t.sibling;else Tc(e,n,r,t),Ww();n=n.child}return n;case 5:return nI(n),e===null&&e6(n),r=n.type,i=n.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,NS(r,i)?s=null:o!==null&&NS(r,o)&&(n.effectTag|=16),VD(e,n),n.mode&4&&t!==1&&i.hidden?(n.expirationTime=n.childExpirationTime=1,n=null):(Tc(e,n,s,t),n=n.child),n;case 6:return e===null&&e6(n),null;case 13:return cI(e,n,t);case 4:return ZS(n,n.stateNode.containerInfo),r=n.pendingProps,e===null?n.child=vy(n,null,r,t):Tc(e,n,r,t),n.child;case 11:return r=n.type,i=n.pendingProps,i=n.elementType===r?i:sh(r,i),sI(e,n,r,i,t);case 7:return Tc(e,n,n.pendingProps,t),n.child;case 8:return Tc(e,n,n.pendingProps.children,t),n.child;case 12:return Tc(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context,i=n.pendingProps,s=n.memoizedProps,o=i.value;var a=n.type._context;if(ol(R2,a._currentValue),a._currentValue=o,s!==null)if(a=s.value,o=o1(a,o)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(a,o):1073741823)|0,o===0){if(s.children===i.children&&!NA.current){n=yp(e,n,t);break e}}else for(a=n.child,a!==null&&(a.return=n);a!==null;){var f=a.dependencies;if(f!==null){s=a.child;for(var g=f.firstContext;g!==null;){if(g.context===r&&g.observedBits&o){a.tag===1&&(g=_m(t,null),g.tag=2,bm(a,g)),a.expirationTime"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled||!n.supportsFiber)return!0;try{var t=n.inject(e);c6=function(r){try{n.onCommitFiberRoot(t,r,void 0,(r.current.effectTag&64)===64)}catch{}},d6=function(r){try{n.onCommitFiberUnmount(t,r)}catch{}}}catch{}return!0}function pq(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ef(e,n,t,r){return new pq(e,n,t,r)}function lB(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mq(e){if(typeof e=="function")return lB(e)?1:0;if(e!=null){if(e=e.$$typeof,e===OO)return 11;if(e===BO)return 14}return 2}function s1(e,n){var t=e.alternate;return t===null?(t=ef(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.effectTag=0,t.nextEffect=null,t.firstEffect=null,t.lastEffect=null),t.childExpirationTime=e.childExpirationTime,t.expirationTime=e.expirationTime,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=n===null?null:{expirationTime:n.expirationTime,firstContext:n.firstContext,responders:n.responders},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function d2(e,n,t,r,i,o){var s=2;if(r=e,typeof e=="function")lB(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case k0:return Am(t.children,i,o,n);case j$:s=8,i|=7;break;case FF:s=8,i|=1;break;case Jx:return e=ef(12,t,n,i|8),e.elementType=Jx,e.type=Jx,e.expirationTime=o,e;case e2:return e=ef(13,t,n,i),e.type=e2,e.elementType=e2,e.expirationTime=o,e;case OS:return e=ef(19,t,n,i),e.elementType=OS,e.expirationTime=o,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case DF:s=10;break e;case UF:s=9;break e;case OO:s=11;break e;case BO:s=14;break e;case RF:s=16,r=null;break e;case LF:s=22;break e}throw Error(Ln(130,e==null?e:typeof e,""))}return n=ef(s,t,n,i),n.elementType=e,n.type=r,n.expirationTime=o,n}function Am(e,n,t,r){return e=ef(7,e,r,n),e.expirationTime=t,e}function $w(e,n,t){return e=ef(6,e,null,n),e.expirationTime=t,e}function Yw(e,n,t){return n=ef(4,e.children!==null?e.children:[],e.key,n),n.expirationTime=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function gq(e,n,t){this.tag=n,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function gU(e,n){var t=e.firstSuspendedTime;return e=e.lastSuspendedTime,t!==0&&t>=n&&e<=n}function z0(e,n){var t=e.firstSuspendedTime,r=e.lastSuspendedTime;tn||t===0)&&(e.lastSuspendedTime=n),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function yU(e,n){n>e.firstPendingTime&&(e.firstPendingTime=n);var t=e.firstSuspendedTime;t!==0&&(n>=t?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n>=e.lastSuspendedTime&&(e.lastSuspendedTime=n+1),n>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=n))}function h6(e,n){var t=e.lastExpiredTime;(t===0||t>n)&&(e.lastExpiredTime=n)}function e3(e,n,t,r){var i=n.current,o=of(),s=xC.suspense;o=V0(o,i,s);e:if(t){t=t._reactInternalFiber;t:{if(y1(t)!==t||t.tag!==1)throw Error(Ln(170));var a=t;do{switch(a.tag){case 3:a=a.stateNode.context;break t;case 1:if(GA(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break t}}a=a.return}while(a!==null);throw Error(Ln(171))}if(t.tag===1){var f=t.type;if(GA(f)){t=ED(t,f,a);break e}}t=a}else t=Tm;return n.context===null?n.context=t:n.pendingContext=t,n=_m(o,s),n.payload={element:e},r=r===void 0?null:r,r!==null&&(n.callback=r),bm(i,n),wm(i,o),o}function qw(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function CI(e,n){e=e.memoizedState,e!==null&&e.dehydrated!==null&&e.retryTime"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(CU)}catch(e){console.error(e)}}CU(),xF.exports=Od;var Rm=xF.exports;const _U=ga(Rm);var f6={exports:{}};(function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var t=["constructor","render","componentWillMount","componentDidMount","componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","componentDidUpdate","componentWillUnmount"],r=[];function i(s){if(s===void 0){console.error("Autobind error: No context provided.");return}var a=Object.getPrototypeOf(s);arguments.length>1?r=Array.prototype.slice.call(arguments,1):r=Object.getOwnPropertyNames(a),r.forEach(function(f){var g=Object.getOwnPropertyDescriptor(a,f);if(g===void 0){console.warn('Autobind: "'+f+'" method not found in class.');return}t.indexOf(f)!==-1||typeof g.value!="function"||Object.defineProperty(a,f,o(a,f,g))})}function o(s,a,f){var g=f.value;return{configurable:!0,get:function(){if(this===s||this.hasOwnProperty(a))return g;var k=g.bind(this);return Object.defineProperty(this,a,{value:k,configurable:!0,writable:!0}),k}}}e.exports=n.default})(f6,f6.exports);var _q=f6.exports,bq=_q;const xq=ga(bq);var t3={exports:{}};t3.exports;(function(e,n){var t=200,r="__lodash_hash_undefined__",i=9007199254740991,o="[object Arguments]",s="[object Array]",a="[object Boolean]",f="[object Date]",g="[object Error]",x="[object Function]",k="[object GeneratorFunction]",B="[object Map]",P="[object Number]",R="[object Object]",H="[object Promise]",W="[object RegExp]",$="[object Set]",q="[object String]",oe="[object Symbol]",ne="[object WeakMap]",ce="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",ye="[object Float64Array]",Re="[object Int8Array]",Ne="[object Int16Array]",rt="[object Int32Array]",ct="[object Uint8Array]",Fe="[object Uint8ClampedArray]",He="[object Uint16Array]",Ce="[object Uint32Array]",jt=/[\\^$.*+?()[\]{}|]/g,Ft=/\w*$/,Jt=/^\[object .+?Constructor\]$/,Nt=/^(?:0|[1-9]\d*)$/,Ve={};Ve[o]=Ve[s]=Ve[ce]=Ve[ae]=Ve[a]=Ve[f]=Ve[ue]=Ve[ye]=Ve[Re]=Ve[Ne]=Ve[rt]=Ve[B]=Ve[P]=Ve[R]=Ve[W]=Ve[$]=Ve[q]=Ve[oe]=Ve[ct]=Ve[Fe]=Ve[He]=Ve[Ce]=!0,Ve[g]=Ve[x]=Ve[ne]=!1;var nt=typeof window=="object"&&window&&window.Object===Object&&window,Je=typeof self=="object"&&self&&self.Object===Object&&self,Vt=nt||Je||Function("return this")(),pt=n&&!n.nodeType&&n,dt=pt&&!0&&e&&!e.nodeType&&e,kt=dt&&dt.exports===pt;function Dt(ee,Ie){return ee.set(Ie[0],Ie[1]),ee}function Se(ee,Ie){return ee.add(Ie),ee}function de(ee,Ie){for(var st=-1,Xt=ee?ee.length:0;++st-1}function Dr(ee,Ie){var st=this.__data__,Xt=lo(st,ee);return Xt<0?st.push([ee,Ie]):st[Xt][1]=Ie,this}gn.prototype.clear=Jn,gn.prototype.delete=qn,gn.prototype.get=Tr,gn.prototype.has=vr,gn.prototype.set=Dr;function Yr(ee){var Ie=-1,st=ee?ee.length:0;for(this.clear();++Ie-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=i}function as(ee){var Ie=typeof ee;return!!ee&&(Ie=="object"||Ie=="function")}function Mu(ee){return!!ee&&typeof ee=="object"}function Au(ee){return Us(ee)?Mi(ee):Ot(ee)}function bo(){return[]}function mo(){return!1}e.exports=vs})(t3,t3.exports);var wq=t3.exports;const _I=ga(wq);var bI=NaN,Mq="[object Symbol]",Sq=/^\s+|\s+$/g,Eq=/^[-+]0x[0-9a-f]+$/i,Oq=/^0b[01]+$/i,Bq=/^0o[0-7]+$/i,kq=parseInt,Iq=Object.prototype,Tq=Iq.toString;function Kq(e,n,t){return e===e&&(t!==void 0&&(e=e<=t?e:t),n!==void 0&&(e=e>=n?e:n)),e}function xI(e){var n=typeof e;return!!e&&(n=="object"||n=="function")}function Pq(e){return!!e&&typeof e=="object"}function Fq(e){return typeof e=="symbol"||Pq(e)&&Tq.call(e)==Mq}function Vw(e){if(typeof e=="number")return e;if(Fq(e))return bI;if(xI(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=xI(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=e.replace(Sq,"");var t=Oq.test(e);return t||Bq.test(e)?kq(e.slice(2),t?2:8):Eq.test(e)?bI:+e}function Dq(e,n,t){return t===void 0&&(t=n,n=void 0),t!==void 0&&(t=Vw(t),t=t===t?t:0),n!==void 0&&(n=Vw(n),n=n===n?n:0),Kq(Vw(e),n,t)}var Uq=Dq;const wI=ga(Uq);var bU={},j4={};j4.byteLength=zq;j4.toByteArray=Wq;j4.fromByteArray=Qq;var Vh=[],md=[],Rq=typeof Uint8Array<"u"?Uint8Array:Array,Hw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var rg=0,Lq=Hw.length;rg0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=n);var r=t===n?0:4-t%4;return[t,r]}function zq(e){var n=xU(e),t=n[0],r=n[1];return(t+r)*3/4-r}function jq(e,n,t){return(n+t)*3/4-t}function Wq(e){var n,t=xU(e),r=t[0],i=t[1],o=new Rq(jq(e,r,i)),s=0,a=i>0?r-4:r,f;for(f=0;f>16&255,o[s++]=n>>8&255,o[s++]=n&255;return i===2&&(n=md[e.charCodeAt(f)]<<2|md[e.charCodeAt(f+1)]>>4,o[s++]=n&255),i===1&&(n=md[e.charCodeAt(f)]<<10|md[e.charCodeAt(f+1)]<<4|md[e.charCodeAt(f+2)]>>2,o[s++]=n>>8&255,o[s++]=n&255),o}function Nq(e){return Vh[e>>18&63]+Vh[e>>12&63]+Vh[e>>6&63]+Vh[e&63]}function Gq(e,n,t){for(var r,i=[],o=n;oa?a:s+o));return r===1?(n=e[t-1],i.push(Vh[n>>2]+Vh[n<<4&63]+"==")):r===2&&(n=(e[t-2]<<8)+e[t-1],i.push(Vh[n>>10]+Vh[n>>4&63]+Vh[n<<2&63]+"=")),i.join("")}var W4={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */W4.read=function(e,n,t,r,i){var o,s,a=i*8-r-1,f=(1<>1,x=-7,k=t?i-1:0,B=t?-1:1,P=e[n+k];for(k+=B,o=P&(1<<-x)-1,P>>=-x,x+=a;x>0;o=o*256+e[n+k],k+=B,x-=8);for(s=o&(1<<-x)-1,o>>=-x,x+=r;x>0;s=s*256+e[n+k],k+=B,x-=8);if(o===0)o=1-g;else{if(o===f)return s?NaN:(P?-1:1)*(1/0);s=s+Math.pow(2,r),o=o-g}return(P?-1:1)*s*Math.pow(2,o-r)};W4.write=function(e,n,t,r,i,o){var s,a,f,g=o*8-i-1,x=(1<>1,B=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=r?0:o-1,R=r?1:-1,H=n<0||n===0&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(a=isNaN(n)?1:0,s=x):(s=Math.floor(Math.log(n)/Math.LN2),n*(f=Math.pow(2,-s))<1&&(s--,f*=2),s+k>=1?n+=B/f:n+=B*Math.pow(2,1-k),n*f>=2&&(s++,f/=2),s+k>=x?(a=0,s=x):s+k>=1?(a=(n*f-1)*Math.pow(2,i),s=s+k):(a=n*Math.pow(2,k-1)*Math.pow(2,i),s=0));i>=8;e[t+P]=a&255,P+=R,a/=256,i-=8);for(s=s<0;e[t+P]=s&255,P+=R,s/=256,g-=8);e[t+P-R]|=H*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */(function(e){const n=j4,t=W4,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=q,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const we=new Uint8Array(1),V={foo:function(){return 42}};return Object.setPrototypeOf(V,Uint8Array.prototype),Object.setPrototypeOf(we,V),we.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(we){if(we>i)throw new RangeError('The value "'+we+'" is invalid for option "size"');const V=new Uint8Array(we);return Object.setPrototypeOf(V,a.prototype),V}function a(we,V,X){if(typeof we=="number"){if(typeof V=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return k(we)}return f(we,V,X)}a.poolSize=8192;function f(we,V,X){if(typeof we=="string")return B(we,V);if(ArrayBuffer.isView(we))return R(we);if(we==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we);if(nr(we,ArrayBuffer)||we&&nr(we.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(nr(we,SharedArrayBuffer)||we&&nr(we.buffer,SharedArrayBuffer)))return H(we,V,X);if(typeof we=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const me=we.valueOf&&we.valueOf();if(me!=null&&me!==we)return a.from(me,V,X);const At=W(we);if(At)return At;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof we[Symbol.toPrimitive]=="function")return a.from(we[Symbol.toPrimitive]("string"),V,X);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we)}a.from=function(we,V,X){return f(we,V,X)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function g(we){if(typeof we!="number")throw new TypeError('"size" argument must be of type number');if(we<0)throw new RangeError('The value "'+we+'" is invalid for option "size"')}function x(we,V,X){return g(we),we<=0?s(we):V!==void 0?typeof X=="string"?s(we).fill(V,X):s(we).fill(V):s(we)}a.alloc=function(we,V,X){return x(we,V,X)};function k(we){return g(we),s(we<0?0:$(we)|0)}a.allocUnsafe=function(we){return k(we)},a.allocUnsafeSlow=function(we){return k(we)};function B(we,V){if((typeof V!="string"||V==="")&&(V="utf8"),!a.isEncoding(V))throw new TypeError("Unknown encoding: "+V);const X=oe(we,V)|0;let me=s(X);const At=me.write(we,V);return At!==X&&(me=me.slice(0,At)),me}function P(we){const V=we.length<0?0:$(we.length)|0,X=s(V);for(let me=0;me=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return we|0}function q(we){return+we!=we&&(we=0),a.alloc(+we)}a.isBuffer=function(V){return V!=null&&V._isBuffer===!0&&V!==a.prototype},a.compare=function(V,X){if(nr(V,Uint8Array)&&(V=a.from(V,V.offset,V.byteLength)),nr(X,Uint8Array)&&(X=a.from(X,X.offset,X.byteLength)),!a.isBuffer(V)||!a.isBuffer(X))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(V===X)return 0;let me=V.length,At=X.length;for(let bt=0,Et=Math.min(me,At);btAt.length?(a.isBuffer(Et)||(Et=a.from(Et)),Et.copy(At,bt)):Uint8Array.prototype.set.call(At,Et,bt);else if(a.isBuffer(Et))Et.copy(At,bt);else throw new TypeError('"list" argument must be an Array of Buffers');bt+=Et.length}return At};function oe(we,V){if(a.isBuffer(we))return we.length;if(ArrayBuffer.isView(we)||nr(we,ArrayBuffer))return we.byteLength;if(typeof we!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof we);const X=we.length,me=arguments.length>2&&arguments[2]===!0;if(!me&&X===0)return 0;let At=!1;for(;;)switch(V){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":return zn(we).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X*2;case"hex":return X>>>1;case"base64":return ir(we).length;default:if(At)return me?-1:zn(we).length;V=(""+V).toLowerCase(),At=!0}}a.byteLength=oe;function ne(we,V,X){let me=!1;if((V===void 0||V<0)&&(V=0),V>this.length||((X===void 0||X>this.length)&&(X=this.length),X<=0)||(X>>>=0,V>>>=0,X<=V))return"";for(we||(we="utf8");;)switch(we){case"hex":return Nt(this,V,X);case"utf8":case"utf-8":return He(this,V,X);case"ascii":return Ft(this,V,X);case"latin1":case"binary":return Jt(this,V,X);case"base64":return Fe(this,V,X);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ve(this,V,X);default:if(me)throw new TypeError("Unknown encoding: "+we);we=(we+"").toLowerCase(),me=!0}}a.prototype._isBuffer=!0;function ce(we,V,X){const me=we[V];we[V]=we[X],we[X]=me}a.prototype.swap16=function(){const V=this.length;if(V%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let X=0;XX&&(V+=" ... "),""},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(V,X,me,At,bt){if(nr(V,Uint8Array)&&(V=a.from(V,V.offset,V.byteLength)),!a.isBuffer(V))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof V);if(X===void 0&&(X=0),me===void 0&&(me=V?V.length:0),At===void 0&&(At=0),bt===void 0&&(bt=this.length),X<0||me>V.length||At<0||bt>this.length)throw new RangeError("out of range index");if(At>=bt&&X>=me)return 0;if(At>=bt)return-1;if(X>=me)return 1;if(X>>>=0,me>>>=0,At>>>=0,bt>>>=0,this===V)return 0;let Et=bt-At,sr=me-X;const Lt=Math.min(Et,sr),Fn=this.slice(At,bt),on=V.slice(X,me);for(let m=0;m2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),X=+X,Mr(X)&&(X=At?0:we.length-1),X<0&&(X=we.length+X),X>=we.length){if(At)return-1;X=we.length-1}else if(X<0)if(At)X=0;else return-1;if(typeof V=="string"&&(V=a.from(V,me)),a.isBuffer(V))return V.length===0?-1:ue(we,V,X,me,At);if(typeof V=="number")return V=V&255,typeof Uint8Array.prototype.indexOf=="function"?At?Uint8Array.prototype.indexOf.call(we,V,X):Uint8Array.prototype.lastIndexOf.call(we,V,X):ue(we,[V],X,me,At);throw new TypeError("val must be string, number or Buffer")}function ue(we,V,X,me,At){let bt=1,Et=we.length,sr=V.length;if(me!==void 0&&(me=String(me).toLowerCase(),me==="ucs2"||me==="ucs-2"||me==="utf16le"||me==="utf-16le")){if(we.length<2||V.length<2)return-1;bt=2,Et/=2,sr/=2,X/=2}function Lt(on,m){return bt===1?on[m]:on.readUInt16BE(m*bt)}let Fn;if(At){let on=-1;for(Fn=X;FnEt&&(X=Et-sr),Fn=X;Fn>=0;Fn--){let on=!0;for(let m=0;mAt&&(me=At)):me=At;const bt=V.length;me>bt/2&&(me=bt/2);let Et;for(Et=0;Et>>0,isFinite(me)?(me=me>>>0,At===void 0&&(At="utf8")):(At=me,me=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const bt=this.length-X;if((me===void 0||me>bt)&&(me=bt),V.length>0&&(me<0||X<0)||X>this.length)throw new RangeError("Attempt to write outside buffer bounds");At||(At="utf8");let Et=!1;for(;;)switch(At){case"hex":return ye(this,V,X,me);case"utf8":case"utf-8":return Re(this,V,X,me);case"ascii":case"latin1":case"binary":return Ne(this,V,X,me);case"base64":return rt(this,V,X,me);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ct(this,V,X,me);default:if(Et)throw new TypeError("Unknown encoding: "+At);At=(""+At).toLowerCase(),Et=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Fe(we,V,X){return V===0&&X===we.length?n.fromByteArray(we):n.fromByteArray(we.slice(V,X))}function He(we,V,X){X=Math.min(we.length,X);const me=[];let At=V;for(;At239?4:bt>223?3:bt>191?2:1;if(At+sr<=X){let Lt,Fn,on,m;switch(sr){case 1:bt<128&&(Et=bt);break;case 2:Lt=we[At+1],(Lt&192)===128&&(m=(bt&31)<<6|Lt&63,m>127&&(Et=m));break;case 3:Lt=we[At+1],Fn=we[At+2],(Lt&192)===128&&(Fn&192)===128&&(m=(bt&15)<<12|(Lt&63)<<6|Fn&63,m>2047&&(m<55296||m>57343)&&(Et=m));break;case 4:Lt=we[At+1],Fn=we[At+2],on=we[At+3],(Lt&192)===128&&(Fn&192)===128&&(on&192)===128&&(m=(bt&15)<<18|(Lt&63)<<12|(Fn&63)<<6|on&63,m>65535&&m<1114112&&(Et=m))}}Et===null?(Et=65533,sr=1):Et>65535&&(Et-=65536,me.push(Et>>>10&1023|55296),Et=56320|Et&1023),me.push(Et),At+=sr}return jt(me)}const Ce=4096;function jt(we){const V=we.length;if(V<=Ce)return String.fromCharCode.apply(String,we);let X="",me=0;for(;meme)&&(X=me);let At="";for(let bt=V;btme&&(V=me),X<0?(X+=me,X<0&&(X=0)):X>me&&(X=me),XX)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(V,X,me){V=V>>>0,X=X>>>0,me||nt(V,X,this.length);let At=this[V],bt=1,Et=0;for(;++Et>>0,X=X>>>0,me||nt(V,X,this.length);let At=this[V+--X],bt=1;for(;X>0&&(bt*=256);)At+=this[V+--X]*bt;return At},a.prototype.readUint8=a.prototype.readUInt8=function(V,X){return V=V>>>0,X||nt(V,1,this.length),this[V]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(V,X){return V=V>>>0,X||nt(V,2,this.length),this[V]|this[V+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(V,X){return V=V>>>0,X||nt(V,2,this.length),this[V]<<8|this[V+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(V,X){return V=V>>>0,X||nt(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(V,X){return V=V>>>0,X||nt(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},a.prototype.readBigUInt64LE=_r(function(V){V=V>>>0,Xe(V,"offset");const X=this[V],me=this[V+7];(X===void 0||me===void 0)&&wt(V,this.length-8);const At=X+this[++V]*2**8+this[++V]*2**16+this[++V]*2**24,bt=this[++V]+this[++V]*2**8+this[++V]*2**16+me*2**24;return BigInt(At)+(BigInt(bt)<>>0,Xe(V,"offset");const X=this[V],me=this[V+7];(X===void 0||me===void 0)&&wt(V,this.length-8);const At=X*2**24+this[++V]*2**16+this[++V]*2**8+this[++V],bt=this[++V]*2**24+this[++V]*2**16+this[++V]*2**8+me;return(BigInt(At)<>>0,X=X>>>0,me||nt(V,X,this.length);let At=this[V],bt=1,Et=0;for(;++Et=bt&&(At-=Math.pow(2,8*X)),At},a.prototype.readIntBE=function(V,X,me){V=V>>>0,X=X>>>0,me||nt(V,X,this.length);let At=X,bt=1,Et=this[V+--At];for(;At>0&&(bt*=256);)Et+=this[V+--At]*bt;return bt*=128,Et>=bt&&(Et-=Math.pow(2,8*X)),Et},a.prototype.readInt8=function(V,X){return V=V>>>0,X||nt(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},a.prototype.readInt16LE=function(V,X){V=V>>>0,X||nt(V,2,this.length);const me=this[V]|this[V+1]<<8;return me&32768?me|4294901760:me},a.prototype.readInt16BE=function(V,X){V=V>>>0,X||nt(V,2,this.length);const me=this[V+1]|this[V]<<8;return me&32768?me|4294901760:me},a.prototype.readInt32LE=function(V,X){return V=V>>>0,X||nt(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},a.prototype.readInt32BE=function(V,X){return V=V>>>0,X||nt(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},a.prototype.readBigInt64LE=_r(function(V){V=V>>>0,Xe(V,"offset");const X=this[V],me=this[V+7];(X===void 0||me===void 0)&&wt(V,this.length-8);const At=this[V+4]+this[V+5]*2**8+this[V+6]*2**16+(me<<24);return(BigInt(At)<>>0,Xe(V,"offset");const X=this[V],me=this[V+7];(X===void 0||me===void 0)&&wt(V,this.length-8);const At=(X<<24)+this[++V]*2**16+this[++V]*2**8+this[++V];return(BigInt(At)<>>0,X||nt(V,4,this.length),t.read(this,V,!0,23,4)},a.prototype.readFloatBE=function(V,X){return V=V>>>0,X||nt(V,4,this.length),t.read(this,V,!1,23,4)},a.prototype.readDoubleLE=function(V,X){return V=V>>>0,X||nt(V,8,this.length),t.read(this,V,!0,52,8)},a.prototype.readDoubleBE=function(V,X){return V=V>>>0,X||nt(V,8,this.length),t.read(this,V,!1,52,8)};function Je(we,V,X,me,At,bt){if(!a.isBuffer(we))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>At||Vwe.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(V,X,me,At){if(V=+V,X=X>>>0,me=me>>>0,!At){const sr=Math.pow(2,8*me)-1;Je(this,V,X,me,sr,0)}let bt=1,Et=0;for(this[X]=V&255;++Et>>0,me=me>>>0,!At){const sr=Math.pow(2,8*me)-1;Je(this,V,X,me,sr,0)}let bt=me-1,Et=1;for(this[X+bt]=V&255;--bt>=0&&(Et*=256);)this[X+bt]=V/Et&255;return X+me},a.prototype.writeUint8=a.prototype.writeUInt8=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,1,255,0),this[X]=V&255,X+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,2,65535,0),this[X]=V&255,this[X+1]=V>>>8,X+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,2,65535,0),this[X]=V>>>8,this[X+1]=V&255,X+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,4,4294967295,0),this[X+3]=V>>>24,this[X+2]=V>>>16,this[X+1]=V>>>8,this[X]=V&255,X+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,4,4294967295,0),this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255,X+4};function Vt(we,V,X,me,At){Ze(V,me,At,we,X,7);let bt=Number(V&BigInt(4294967295));we[X++]=bt,bt=bt>>8,we[X++]=bt,bt=bt>>8,we[X++]=bt,bt=bt>>8,we[X++]=bt;let Et=Number(V>>BigInt(32)&BigInt(4294967295));return we[X++]=Et,Et=Et>>8,we[X++]=Et,Et=Et>>8,we[X++]=Et,Et=Et>>8,we[X++]=Et,X}function pt(we,V,X,me,At){Ze(V,me,At,we,X,7);let bt=Number(V&BigInt(4294967295));we[X+7]=bt,bt=bt>>8,we[X+6]=bt,bt=bt>>8,we[X+5]=bt,bt=bt>>8,we[X+4]=bt;let Et=Number(V>>BigInt(32)&BigInt(4294967295));return we[X+3]=Et,Et=Et>>8,we[X+2]=Et,Et=Et>>8,we[X+1]=Et,Et=Et>>8,we[X]=Et,X+8}a.prototype.writeBigUInt64LE=_r(function(V,X=0){return Vt(this,V,X,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=_r(function(V,X=0){return pt(this,V,X,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(V,X,me,At){if(V=+V,X=X>>>0,!At){const Lt=Math.pow(2,8*me-1);Je(this,V,X,me,Lt-1,-Lt)}let bt=0,Et=1,sr=0;for(this[X]=V&255;++bt>0)-sr&255;return X+me},a.prototype.writeIntBE=function(V,X,me,At){if(V=+V,X=X>>>0,!At){const Lt=Math.pow(2,8*me-1);Je(this,V,X,me,Lt-1,-Lt)}let bt=me-1,Et=1,sr=0;for(this[X+bt]=V&255;--bt>=0&&(Et*=256);)V<0&&sr===0&&this[X+bt+1]!==0&&(sr=1),this[X+bt]=(V/Et>>0)-sr&255;return X+me},a.prototype.writeInt8=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,1,127,-128),V<0&&(V=255+V+1),this[X]=V&255,X+1},a.prototype.writeInt16LE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,2,32767,-32768),this[X]=V&255,this[X+1]=V>>>8,X+2},a.prototype.writeInt16BE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,2,32767,-32768),this[X]=V>>>8,this[X+1]=V&255,X+2},a.prototype.writeInt32LE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,4,2147483647,-2147483648),this[X]=V&255,this[X+1]=V>>>8,this[X+2]=V>>>16,this[X+3]=V>>>24,X+4},a.prototype.writeInt32BE=function(V,X,me){return V=+V,X=X>>>0,me||Je(this,V,X,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),this[X]=V>>>24,this[X+1]=V>>>16,this[X+2]=V>>>8,this[X+3]=V&255,X+4},a.prototype.writeBigInt64LE=_r(function(V,X=0){return Vt(this,V,X,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=_r(function(V,X=0){return pt(this,V,X,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function dt(we,V,X,me,At,bt){if(X+me>we.length)throw new RangeError("Index out of range");if(X<0)throw new RangeError("Index out of range")}function kt(we,V,X,me,At){return V=+V,X=X>>>0,At||dt(we,V,X,4),t.write(we,V,X,me,23,4),X+4}a.prototype.writeFloatLE=function(V,X,me){return kt(this,V,X,!0,me)},a.prototype.writeFloatBE=function(V,X,me){return kt(this,V,X,!1,me)};function Dt(we,V,X,me,At){return V=+V,X=X>>>0,At||dt(we,V,X,8),t.write(we,V,X,me,52,8),X+8}a.prototype.writeDoubleLE=function(V,X,me){return Dt(this,V,X,!0,me)},a.prototype.writeDoubleBE=function(V,X,me){return Dt(this,V,X,!1,me)},a.prototype.copy=function(V,X,me,At){if(!a.isBuffer(V))throw new TypeError("argument should be a Buffer");if(me||(me=0),!At&&At!==0&&(At=this.length),X>=V.length&&(X=V.length),X||(X=0),At>0&&At=this.length)throw new RangeError("Index out of range");if(At<0)throw new RangeError("sourceEnd out of bounds");At>this.length&&(At=this.length),V.length-X>>0,me=me===void 0?this.length:me>>>0,V||(V=0);let bt;if(typeof V=="number")for(bt=X;bt2**32?At=xe(String(X)):typeof X=="bigint"&&(At=String(X),(X>BigInt(2)**BigInt(32)||X<-(BigInt(2)**BigInt(32)))&&(At=xe(At)),At+="n"),me+=` It must be ${V}. Received ${At}`,me},RangeError);function xe(we){let V="",X=we.length;const me=we[0]==="-"?1:0;for(;X>=me+4;X-=3)V=`_${we.slice(X-3,X)}${V}`;return`${we.slice(0,X)}${V}`}function Pe(we,V,X){Xe(V,"offset"),(we[V]===void 0||we[V+X]===void 0)&&wt(V,we.length-(X+1))}function Ze(we,V,X,me,At,bt){if(we>X||we3?V===0||V===BigInt(0)?sr=`>= 0${Et} and < 2${Et} ** ${(bt+1)*8}${Et}`:sr=`>= -(2${Et} ** ${(bt+1)*8-1}${Et}) and < 2 ** ${(bt+1)*8-1}${Et}`:sr=`>= ${V}${Et} and <= ${X}${Et}`,new Se.ERR_OUT_OF_RANGE("value",sr,we)}Pe(me,At,bt)}function Xe(we,V){if(typeof we!="number")throw new Se.ERR_INVALID_ARG_TYPE(V,"number",we)}function wt(we,V,X){throw Math.floor(we)!==we?(Xe(we,X),new Se.ERR_OUT_OF_RANGE(X||"offset","an integer",we)):V<0?new Se.ERR_BUFFER_OUT_OF_BOUNDS:new Se.ERR_OUT_OF_RANGE(X||"offset",`>= ${X?1:0} and <= ${V}`,we)}const Kt=/[^+/0-9A-Za-z-_]/g;function Pt(we){if(we=we.split("=")[0],we=we.trim().replace(Kt,""),we.length<2)return"";for(;we.length%4!==0;)we=we+"=";return we}function zn(we,V){V=V||1/0;let X;const me=we.length;let At=null;const bt=[];for(let Et=0;Et55295&&X<57344){if(!At){if(X>56319){(V-=3)>-1&&bt.push(239,191,189);continue}else if(Et+1===me){(V-=3)>-1&&bt.push(239,191,189);continue}At=X;continue}if(X<56320){(V-=3)>-1&&bt.push(239,191,189),At=X;continue}X=(At-55296<<10|X-56320)+65536}else At&&(V-=3)>-1&&bt.push(239,191,189);if(At=null,X<128){if((V-=1)<0)break;bt.push(X)}else if(X<2048){if((V-=2)<0)break;bt.push(X>>6|192,X&63|128)}else if(X<65536){if((V-=3)<0)break;bt.push(X>>12|224,X>>6&63|128,X&63|128)}else if(X<1114112){if((V-=4)<0)break;bt.push(X>>18|240,X>>12&63|128,X>>6&63|128,X&63|128)}else throw new Error("Invalid code point")}return bt}function mt(we){const V=[];for(let X=0;X>8,At=X%256,bt.push(At),bt.push(me);return bt}function ir(we){return n.toByteArray(Pt(we))}function Sn(we,V,X,me){let At;for(At=0;At=V.length||At>=we.length);++At)V[At+X]=we[At];return At}function nr(we,V){return we instanceof V||we!=null&&we.constructor!=null&&we.constructor.name!=null&&we.constructor.name===V.name}function Mr(we){return we!==we}const Qr=function(){const we="0123456789abcdef",V=new Array(256);for(let X=0;X<16;++X){const me=X*16;for(let At=0;At<16;++At)V[me+At]=we[X]+we[At]}return V}();function _r(we){return typeof BigInt>"u"?vi:we}function vi(){throw new Error("BigInt not supported")}})(bU);const $q=ga(bU);var Yq="Expected a function",wU="__lodash_hash_undefined__",MU=1/0,qq="[object Function]",Vq="[object GeneratorFunction]",Hq="[object Symbol]",Zq=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xq=/^\w*$/,Jq=/^\./,eV=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tV=/[\\^$.*+?()[\]{}|]/g,nV=/\\(\\)?/g,rV=/^\[object .+?Constructor\]$/,iV=typeof window=="object"&&window&&window.Object===Object&&window,oV=typeof self=="object"&&self&&self.Object===Object&&self,cB=iV||oV||Function("return this")();function aV(e,n){return e==null?void 0:e[n]}function sV(e){var n=!1;if(e!=null&&typeof e.toString!="function")try{n=!!(e+"")}catch{}return n}var lV=Array.prototype,uV=Function.prototype,SU=Object.prototype,Zw=cB["__core-js_shared__"],MI=function(){var e=/[^.]+$/.exec(Zw&&Zw.keys&&Zw.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),EU=uV.toString,dB=SU.hasOwnProperty,OU=SU.toString,AV=RegExp("^"+EU.call(dB).replace(tV,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),SI=cB.Symbol,cV=lV.splice,dV=BU(cB,"Map"),t_=BU(Object,"create"),EI=SI?SI.prototype:void 0,OI=EI?EI.toString:void 0;function l1(e){var n=-1,t=e?e.length:0;for(this.clear();++n-1}function bV(e,n){var t=this.__data__,r=N4(t,e);return r<0?t.push([e,n]):t[r][1]=n,this}Fy.prototype.clear=yV;Fy.prototype.delete=vV;Fy.prototype.get=CV;Fy.prototype.has=_V;Fy.prototype.set=bV;function v1(e){var n=-1,t=e?e.length:0;for(this.clear();++n * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */n3.exports;(function(e,n){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,x="__lodash_placeholder__",k=1,B=2,P=4,R=1,H=2,W=1,$=2,q=4,oe=8,ne=16,ce=32,ae=64,ue=128,ye=256,Re=512,Ne=30,rt="...",ct=800,Fe=16,He=1,Ce=2,jt=3,Ft=1/0,Jt=9007199254740991,Nt=17976931348623157e292,Ve=NaN,nt=4294967295,Je=nt-1,Vt=nt>>>1,pt=[["ary",ue],["bind",W],["bindKey",$],["curry",oe],["curryRight",ne],["flip",Re],["partial",ce],["partialRight",ae],["rearg",ye]],dt="[object Arguments]",kt="[object Array]",Dt="[object AsyncFunction]",Se="[object Boolean]",de="[object Date]",xe="[object DOMException]",Pe="[object Error]",Ze="[object Function]",Xe="[object GeneratorFunction]",wt="[object Map]",Kt="[object Number]",Pt="[object Null]",zn="[object Object]",mt="[object Promise]",pn="[object Proxy]",ir="[object RegExp]",Sn="[object Set]",nr="[object String]",Mr="[object Symbol]",Qr="[object Undefined]",_r="[object WeakMap]",vi="[object WeakSet]",we="[object ArrayBuffer]",V="[object DataView]",X="[object Float32Array]",me="[object Float64Array]",At="[object Int8Array]",bt="[object Int16Array]",Et="[object Int32Array]",sr="[object Uint8Array]",Lt="[object Uint8ClampedArray]",Fn="[object Uint16Array]",on="[object Uint32Array]",m=/\b__p \+= '';/g,un=/\b(__p \+=) '' \+/g,In=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Gn=/&(?:amp|lt|gt|quot|#39);/g,Zn=/[&<>"']/g,Ke=RegExp(Gn.source),fe=RegExp(Zn.source),_e=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,at=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,it=/^\w*$/,ht=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,Ct=RegExp(et.source),rn=/^\s+/,Gt=/\s/,$t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gn=/\{\n\/\* \[wrapped with (.+)\] \*/,Jn=/,? & /,qn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tr=/[()=,{}\[\]\/\s]/,vr=/\\(\\)?/g,Dr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yr=/\w*$/,Zr=/^[-+]0x[0-9a-f]+$/i,Cr=/^0b[01]+$/i,ui=/^\[object .+?Constructor\]$/,Ii=/^0o[0-7]+$/i,Io=/^(?:0|[1-9]\d*)$/,Ci=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,so=/($^)/,Yo=/['\n\r\u2028\u2029\\]/g,ba="\\ud800-\\udfff",Ql="\\u0300-\\u036f",Ai="\\ufe20-\\ufe2f",Mi="\\u20d0-\\u20ff",rr=Ql+Ai+Mi,lo="\\u2700-\\u27bf",Gi="a-z\\xdf-\\xf6\\xf8-\\xff",la="\\xac\\xb1\\xd7\\xf7",ve="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ge="\\u2000-\\u206f",Ht=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",mn="A-Z\\xc0-\\xd6\\xd8-\\xde",Ot="\\ufe0e\\ufe0f",En=la+ve+Ge+Ht,zr="['’]",Lr="["+ba+"]",Ti="["+En+"]",po="["+rr+"]",Cl="\\d+",br="["+lo+"]",_i="["+Gi+"]",_l="[^"+ba+En+Cl+lo+Gi+mn+"]",Qa="\\ud83c[\\udffb-\\udfff]",ys="(?:"+po+"|"+Qa+")",qs="[^"+ba+"]",Vs="(?:\\ud83c[\\udde6-\\uddff]){2}",va="[\\ud800-\\udbff][\\udc00-\\udfff]",$a="["+mn+"]",ll="\\u200d",xu="(?:"+_i+"|"+_l+")",bl="(?:"+$a+"|"+_l+")",CA="(?:"+zr+"(?:d|ll|m|re|s|t|ve))?",HA="(?:"+zr+"(?:D|LL|M|RE|S|T|VE))?",Hu=ys+"?",ZA="["+Ot+"]?",_A="(?:"+ll+"(?:"+[qs,Vs,va].join("|")+")"+ZA+Hu+")*",Ya="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bA=ZA+Hu+_A,Zu="(?:"+[br,Vs,va].join("|")+")"+bA,Ds="(?:"+[qs+po+"?",po,Vs,va,Lr].join("|")+")",Us=RegExp(zr,"g"),Cs=RegExp(po,"g"),lu=RegExp(Qa+"(?="+Qa+")|"+Ds+bA,"g"),wu=RegExp([$a+"?"+_i+"+"+CA+"(?="+[Ti,$a,"$"].join("|")+")",bl+"+"+HA+"(?="+[Ti,$a+xu,"$"].join("|")+")",$a+"?"+xu+"+"+CA,$a+"+"+HA,vs,Ya,Cl,Zu].join("|"),"g"),uu=RegExp("["+ll+ba+rr+Ot+"]"),as=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mu=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Au=-1,bo={};bo[X]=bo[me]=bo[At]=bo[bt]=bo[Et]=bo[sr]=bo[Lt]=bo[Fn]=bo[on]=!0,bo[dt]=bo[kt]=bo[we]=bo[Se]=bo[V]=bo[de]=bo[Pe]=bo[Ze]=bo[wt]=bo[Kt]=bo[zn]=bo[ir]=bo[Sn]=bo[nr]=bo[_r]=!1;var mo={};mo[dt]=mo[kt]=mo[we]=mo[V]=mo[Se]=mo[de]=mo[X]=mo[me]=mo[At]=mo[bt]=mo[Et]=mo[wt]=mo[Kt]=mo[zn]=mo[ir]=mo[Sn]=mo[nr]=mo[Mr]=mo[sr]=mo[Lt]=mo[Fn]=mo[on]=!0,mo[Pe]=mo[Ze]=mo[_r]=!1;var ee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Ie={"&":"&","<":"<",">":">",'"':""","'":"'"},st={"&":"&","<":"<",">":">",""":'"',"'":"'"},Xt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Sr=parseFloat,_n=parseInt,Si=typeof window=="object"&&window&&window.Object===Object&&window,Ki=typeof self=="object"&&self&&self.Object===Object&&self,qr=Si||Ki||Function("return this")(),Yi=n&&!n.nodeType&&n,qo=Yi&&!0&&e&&!e.nodeType&&e,Ca=qo&&qo.exports===Yi,Vo=Ca&&Si.process,Li=function(){try{var xt=qo&&qo.require&&qo.require("util").types;return xt||Vo&&Vo.binding&&Vo.binding("util")}catch{}}(),Xo=Li&&Li.isArrayBuffer,Pa=Li&&Li.isDate,Rs=Li&&Li.isMap,_s=Li&&Li.isRegExp,Su=Li&&Li.isSet,XA=Li&&Li.isTypedArray;function ss(xt,sn,Wt){switch(Wt.length){case 0:return xt.call(sn);case 1:return xt.call(sn,Wt[0]);case 2:return xt.call(sn,Wt[0],Wt[1]);case 3:return xt.call(sn,Wt[0],Wt[1],Wt[2])}return xt.apply(sn,Wt)}function jm(xt,sn,Wt,or){for(var ri=-1,to=xt==null?0:xt.length;++ri-1}function Td(xt,sn,Wt){for(var or=-1,ri=xt==null?0:xt.length;++or-1;);return Wt}function Xu(xt,sn){for(var Wt=xt.length;Wt--&&Ur(sn,xt[Wt],0)>-1;);return Wt}function qc(xt,sn){for(var Wt=xt.length,or=0;Wt--;)xt[Wt]===sn&&++or;return or}var Mf=_h(ee),wl=_h(Ie);function Ju(xt){return"\\"+Xt[xt]}function bh(xt,sn){return xt==null?t:xt[sn]}function eA(xt){return uu.test(xt)}function xh(xt){return as.test(xt)}function kp(xt){for(var sn,Wt=[];!(sn=xt.next()).done;)Wt.push(sn.value);return Wt}function Pd(xt){var sn=-1,Wt=Array(xt.size);return xt.forEach(function(or,ri){Wt[++sn]=[ri,or]}),Wt}function rc(xt,sn){return function(Wt){return xt(sn(Wt))}}function Hs(xt,sn){for(var Wt=-1,or=xt.length,ri=0,to=[];++Wt-1}function p(v,S){var F=this.__data__,Z=hn(F,v);return Z<0?(++this.size,F.push([v,S])):F[Z][1]=S,this}Il.prototype.clear=kf,Il.prototype.delete=Pi,Il.prototype.get=O,Il.prototype.has=u,Il.prototype.set=p;function C(v){var S=-1,F=v==null?0:v.length;for(this.clear();++S=S?v:S)),v}function Qn(v,S,F,Z,be,Ue){var ot,gt=S&k,It=S&B,yn=S&P;if(F&&(ot=be?F(v,Z,be,Ue):F(v)),ot!==t)return ot;if(!xn(v))return v;var vn=Q(v);if(vn){if(ot=ov(v),!gt)return el(v,ot)}else{var kn=Es(v),fr=kn==Ze||kn==Xe;if(Be(v))return qm(v,gt);if(kn==zn||kn==dt||fr&&!be){if(ot=It||fr?{}:z1(v),!gt)return It?F1(v,lr(ot,v)):Zm(v,On(ot,v))}else{if(!mo[kn])return be?v:{};ot=Qf(v,kn,gt)}}Ue||(Ue=new Me);var Gr=Ue.get(v);if(Gr)return Gr;Ue.set(v,ot),Kl(v)?v.forEach(function(di){ot.add(Qn(di,S,F,di,v,Ue))}):Kn(v)&&v.forEach(function(di,_o){ot.set(_o,Qn(di,S,F,_o,v,Ue))});var ci=yn?It?Rp:Up:It?ju:ml,ro=vn?t:ci(v);return $l(ro||v,function(di,_o){ro&&(_o=di,di=v[_o]),en(ot,_o,Qn(di,S,F,_o,v,Ue))}),ot}function Ho(v){var S=ml(v);return function(F){return pi(F,v,S)}}function pi(v,S,F){var Z=F.length;if(v==null)return!Z;for(v=ho(v);Z--;){var be=F[Z],Ue=S[be],ot=v[be];if(ot===t&&!(be in v)||!Ue(ot))return!1}return!0}function ii(v,S,F){if(typeof v!="function")throw new El(s);return Ir(function(){v.apply(t,F)},S)}function si(v,S,F,Z){var be=-1,Ue=Gc,ot=!0,gt=v.length,It=[],yn=S.length;if(!gt)return It;F&&(S=Mo(S,Ls(F))),Z?(Ue=Td,ot=!1):S.length>=i&&(Ue=Ou,ot=!1,S=new te(S));e:for(;++bebe?0:be+F),Z=Z===t||Z>be?be:Hr(Z),Z<0&&(Z+=be),Z=F>Z?0:eu(Z);F0&&F(gt)?S>1?no(gt,S-1,F,Z,be):Eu(be,gt):Z||(be[be.length]=gt)}return be}var ws=Xm(),Pu=Xm(!0);function Ms(v,S){return v&&ws(v,S,ml)}function aA(v,S){return v&&Pu(v,S,ml)}function hu(v,S){return cu(S,function(F){return an(v[F])})}function Zo(v,S){S=sd(S,v);for(var F=0,Z=S.length;v!=null&&FS}function jo(v,S){return v!=null&&Ei.call(v,S)}function Da(v,S){return v!=null&&S in ho(v)}function ua(v,S,F){return v>=Eo(S,F)&&v=120&&vn.length>=120)?new te(ot&&vn):t}vn=v[0];var kn=-1,fr=gt[0];e:for(;++kn-1;)gt!==v&&rA.call(gt,It,1),rA.call(v,It,1);return v}function Js(v,S){for(var F=v?S.length:0,Z=F-1;F--;){var be=S[F];if(F==Z||be!==Ue){var Ue=be;b(be)?rA.call(v,be,1):Tp(v,be)}}return v}function id(v,S){return v+go(Or()*(S-v+1))}function ev(v,S,F,Z){for(var be=-1,Ue=oa(Hl((S-v)/(F||1)),0),ot=Wt(Ue);Ue--;)ot[Z?Ue:++be]=v,v+=F;return ot}function Fh(v,S){var F="";if(!v||S<1||S>Jt)return F;do S%2&&(F+=v),S=go(S/2),S&&(v+=v);while(S);return F}function Qi(v,S){return Br(Bn(v,S,LA),v+"")}function Nm(v){return qe(ng(v))}function Gm(v,S){var F=ng(v);return Ea(F,yr(S,0,F.length))}function $d(v,S,F,Z){if(!xn(v))return v;S=sd(S,v);for(var be=-1,Ue=S.length,ot=Ue-1,gt=v;gt!=null&&++bebe?0:be+S),F=F>be?be:F,F<0&&(F+=be),be=S>F?0:F-S>>>0,S>>>=0;for(var Ue=Wt(be);++Z>>1,ot=v[Ue];ot!==null&&!Go(ot)&&(F?ot<=S:ot=i){var yn=S?null:nv(v);if(yn)return Ml(yn);ot=!1,be=Ou,It=new te}else It=S?[]:gt;e:for(;++Z=Z?v:qa(v,S,F)}var P1=Sh||function(v){return qr.clearTimeout(v)};function qm(v,S){if(S)return v.slice();var F=v.length,Z=oc?oc(F):new v.constructor(F);return v.copy(Z),Z}function Dh(v){var S=new v.constructor(v.byteLength);return new Hc(S).set(new Hc(v)),S}function Vm(v,S){var F=S?Dh(v.buffer):v.buffer;return new v.constructor(F,v.byteOffset,v.byteLength)}function tv(v){var S=new v.constructor(v.source,Yr.exec(v));return S.lastIndex=v.lastIndex,S}function TA(v){return cc?ho(cc.call(v)):{}}function Hm(v,S){var F=S?Dh(v.buffer):v.buffer;return new v.constructor(F,v.byteOffset,v.length)}function Aa(v,S){if(v!==S){var F=v!==t,Z=v===null,be=v===v,Ue=Go(v),ot=S!==t,gt=S===null,It=S===S,yn=Go(S);if(!gt&&!yn&&!Ue&&v>S||Ue&&ot&&It&&!gt&&!yn||Z&&ot&&It||!F&&It||!be)return 1;if(!Z&&!Ue&&!yn&&v=gt)return It;var yn=F[Z];return It*(yn=="desc"?-1:1)}}return v.index-S.index}function Df(v,S,F,Z){for(var be=-1,Ue=v.length,ot=F.length,gt=-1,It=S.length,yn=oa(Ue-ot,0),vn=Wt(It+yn),kn=!Z;++gt1?F[be-1]:t,ot=be>2?F[2]:t;for(Ue=v.length>3&&typeof Ue=="function"?(be--,Ue):t,ot&&_(F[0],F[1],ot)&&(Ue=be<3?t:Ue,be=1),S=ho(S);++Z-1?be[Ue?S[ot]:ot]:t}}function Pp(v){return DA(function(S){var F=S.length,Z=F,be=uo.prototype.thru;for(v&&S.reverse();Z--;){var Ue=S[Z];if(typeof Ue!="function")throw new El(s);if(be&&!ot&&_c(Ue)=="wrapper")var ot=new uo([],!0)}for(Z=ot?Z:F;++Z1&&Bo.reverse(),vn&&It<_o&&(Bo.length=It),this&&this!==qr&&this instanceof di&&(qf=ro||Uf(qf)),qf.apply(rh,Bo)}return di}function Rf(v,S){return function(F,Z){return If(F,v,S(Z),{})}}function qd(v,S){return function(F,Z){var be;if(F===t&&Z===t)return S;if(F!==t&&(be=F),Z!==t){if(be===t)return Z;typeof F=="string"||typeof Z=="string"?(F=fu(F),Z=fu(Z)):(F=$m(F),Z=$m(Z)),be=v(F,Z)}return be}}function Lf(v){return DA(function(S){return S=Mo(S,Ls(Vr())),Qi(function(F){var Z=this;return v(S,function(be){return ss(be,Z,F)})})})}function Fp(v,S){S=S===t?" ":fu(S);var F=S.length;if(F<2)return F?Fh(S,v):S;var Z=Fh(S,Hl(v/bs(S)));return eA(S)?Cc(ul(Z),0,v).join(""):Z.slice(0,v)}function U1(v,S,F,Z){var be=S&W,Ue=Uf(v);function ot(){for(var gt=-1,It=arguments.length,yn=-1,vn=Z.length,kn=Wt(vn+It),fr=this&&this!==qr&&this instanceof ot?Ue:v;++yngt))return!1;var yn=Ue.get(v),vn=Ue.get(S);if(yn&&vn)return yn==S&&vn==v;var kn=-1,fr=!0,Gr=F&H?new te:t;for(Ue.set(v,S),Ue.set(S,v);++kn1?"& ":"")+S[Z],S=S.join(F>2?", ":" "),v.replace($t,`{ /* [wrapped with `+S+`] */ `)}function h(v){return Q(v)||z(v)||!!(Sf&&v&&v[Sf])}function b(v,S){var F=typeof v;return S=S??Jt,!!S&&(F=="number"||F!="symbol"&&Io.test(v))&&v>-1&&v%1==0&&v0){if(++S>=ct)return arguments[0]}else S=0;return v.apply(t,arguments)}}function Ea(v,S){var F=-1,Z=v.length,be=Z-1;for(S=S===t?Z:S;++F1?v[S-1]:t;return F=typeof F=="function"?(v.pop(),F):t,pv(v,F)});function gv(v){var S=ke(v);return S.__chain__=!0,S}function Pb(v,S){return S(v),v}function u0(v,S){return S(v)}var yv=DA(function(v){var S=v.length,F=S?v[0]:0,Z=this.__wrapped__,be=function(Ue){return Tn(Ue,v)};return S>1||this.__actions__.length||!(Z instanceof jr)||!b(F)?this.thru(be):(Z=Z.slice(F,+F+(S?1:0)),Z.__actions__.push({func:u0,args:[be],thisArg:t}),new uo(Z,this.__chain__).thru(function(Ue){return S&&!Ue.length&&Ue.push(t),Ue}))});function $1(){return gv(this)}function Fb(){return new uo(this.value(),this.__chain__)}function vv(){this.__values__===t&&(this.__values__=Fl(this.value()));var v=this.__index__>=this.__values__.length,S=v?t:this.__values__[this.__index__++];return{done:v,value:S}}function Db(){return this}function uA(v){for(var S,F=this;F instanceof wa;){var Z=fl(F);Z.__index__=0,Z.__values__=t,S?be.__wrapped__=Z:S=Z;var be=Z;F=F.__wrapped__}return be.__wrapped__=v,S}function A0(){var v=this.__wrapped__;if(v instanceof jr){var S=v;return this.__actions__.length&&(S=new jr(this)),S=S.reverse(),S.__actions__.push({func:u0,args:[N1],thisArg:t}),new uo(S,this.__chain__)}return this.thru(N1)}function Ub(){return ad(this.__wrapped__,this.__actions__)}var Rb=KA(function(v,S,F){Ei.call(v,F)?++v[F]:xr(v,F,1)});function Lb(v,S,F){var Z=Q(v)?Id:Zs;return F&&_(v,S,F)&&(S=t),Z(v,Vr(S,3))}function zb(v,S){var F=Q(v)?cu:_a;return F(v,Vr(S,3))}var jb=t0(UA),Wb=t0(xc);function cw(v,S){return no(c0(v,S),1)}function Nb(v,S){return no(c0(v,S),Ft)}function jh(v,S,F){return F=F===t?1:Hr(F),no(c0(v,S),F)}function Cv(v,S){var F=Q(v)?$l:yo;return F(v,Vr(S,3))}function _v(v,S){var F=Q(v)?Bp:vo;return F(v,Vr(S,3))}var Gb=KA(function(v,S,F){Ei.call(v,F)?v[F].push(S):xr(v,F,[S])});function Qb(v,S,F,Z){v=le(v)?v:ng(v),F=F&&!Z?Hr(F):0;var be=v.length;return F<0&&(F=oa(be+F,0)),ka(v)?F<=be&&v.indexOf(S,F)>-1:!!be&&Ur(v,S,F)>-1}var dw=Qi(function(v,S,F){var Z=-1,be=typeof S=="function",Ue=le(v)?Wt(v.length):[];return yo(v,function(ot){Ue[++Z]=be?ss(S,ot,F):Wo(ot,S,F)}),Ue}),hw=KA(function(v,S,F){xr(v,F,S)});function c0(v,S){var F=Q(v)?Mo:rd;return F(v,Vr(S,3))}function Wp(v,S,F,Z){return v==null?[]:(Q(S)||(S=S==null?[]:[S]),F=Z?t:F,Q(F)||(F=F==null?[]:[F]),Wm(v,S,F))}var $b=KA(function(v,S,F){v[F?0:1].push(S)},function(){return[[],[]]});function Y1(v,S,F){var Z=Q(v)?yh:zi,be=arguments.length<3;return Z(v,Vr(S,4),F,be,yo)}function Yb(v,S,F){var Z=Q(v)?vh:zi,be=arguments.length<3;return Z(v,Vr(S,4),F,be,vo)}function q1(v,S){var F=Q(v)?cu:_a;return F(v,Gp(Vr(S,3)))}function V1(v){var S=Q(v)?qe:Nm;return S(v)}function H1(v,S,F){(F?_(v,S,F):S===t)?S=1:S=Hr(S);var Z=Q(v)?_t:Gm;return Z(v,S)}function fw(v){var S=Q(v)?Ut:K1;return S(v)}function pw(v){if(v==null)return 0;if(le(v))return ka(v)?bs(v):v.length;var S=Es(v);return S==wt||S==Sn?v.size:pc(v).length}function mw(v,S,F){var Z=Q(v)?Yl:gc;return F&&_(v,S,F)&&(S=t),Z(v,Vr(S,3))}var gw=Qi(function(v,S){if(v==null)return[];var F=S.length;return F>1&&_(v,S[0],S[1])?S=[]:F>2&&_(S[0],S[1],S[2])&&(S=[S[0]]),Wm(v,no(S,1),[])}),Xd=Zc||function(){return qr.Date.now()};function pl(v,S){if(typeof S!="function")throw new El(s);return v=Hr(v),function(){if(--v<1)return S.apply(this,arguments)}}function Jd(v,S,F){return S=F?t:S,S=v&&S==null?v.length:S,qi(v,ue,t,t,t,t,S)}function Z1(v,S){var F;if(typeof S!="function")throw new El(s);return v=Hr(v),function(){return--v>0&&(F=S.apply(this,arguments)),v<=1&&(S=t),F}}var X1=Qi(function(v,S,F){var Z=W;if(F.length){var be=Hs(F,ud(X1));Z|=ce}return qi(v,Z,S,F,be)}),bv=Qi(function(v,S,F){var Z=W|$;if(F.length){var be=Hs(F,ud(bv));Z|=ce}return qi(S,Z,v,F,be)});function J1(v,S,F){S=F?t:S;var Z=qi(v,oe,t,t,t,t,t,S);return Z.placeholder=J1.placeholder,Z}function qb(v,S,F){S=F?t:S;var Z=qi(v,ne,t,t,t,t,t,S);return Z.placeholder=qb.placeholder,Z}function xv(v,S,F){var Z,be,Ue,ot,gt,It,yn=0,vn=!1,kn=!1,fr=!0;if(typeof v!="function")throw new El(s);S=Ko(S)||0,xn(F)&&(vn=!!F.leading,kn="maxWait"in F,Ue=kn?oa(Ko(F.maxWait)||0,S):Ue,fr="trailing"in F?!!F.trailing:fr);function Gr(tl){var rh=Z,qf=be;return Z=be=t,yn=tl,ot=v.apply(qf,rh),ot}function ci(tl){return yn=tl,gt=Ir(_o,S),vn?Gr(tl):ot}function ro(tl){var rh=tl-It,qf=tl-yn,hk=S-rh;return kn?Eo(hk,Ue-qf):hk}function di(tl){var rh=tl-It,qf=tl-yn;return It===t||rh>=S||rh<0||kn&&qf>=Ue}function _o(){var tl=Xd();if(di(tl))return Bo(tl);gt=Ir(_o,ro(tl))}function Bo(tl){return gt=t,fr&&Z?Gr(tl):(Z=be=t,ot)}function Bc(){gt!==t&&P1(gt),yn=0,Z=It=be=gt=t}function dA(){return gt===t?ot:Bo(Xd())}function kc(){var tl=Xd(),rh=di(tl);if(Z=arguments,be=this,It=tl,rh){if(gt===t)return ci(It);if(kn)return P1(gt),gt=Ir(_o,S),Gr(It)}return gt===t&&(gt=Ir(_o,S)),ot}return kc.cancel=Bc,kc.flush=dA,kc}var Vb=Qi(function(v,S){return ii(v,1,S)}),yw=Qi(function(v,S,F){return ii(v,Ko(S)||0,F)});function Hb(v){return qi(v,Re)}function Np(v,S){if(typeof v!="function"||S!=null&&typeof S!="function")throw new El(s);var F=function(){var Z=arguments,be=S?S.apply(this,Z):Z[0],Ue=F.cache;if(Ue.has(be))return Ue.get(be);var ot=v.apply(this,Z);return F.cache=Ue.set(be,ot)||Ue,ot};return F.cache=new(Np.Cache||C),F}Np.Cache=C;function Gp(v){if(typeof v!="function")throw new El(s);return function(){var S=arguments;switch(S.length){case 0:return!v.call(this);case 1:return!v.call(this,S[0]);case 2:return!v.call(this,S[0],S[1]);case 3:return!v.call(this,S[0],S[1],S[2])}return!v.apply(this,S)}}function Zb(v){return Z1(2,v)}var d0=Ff(function(v,S){S=S.length==1&&Q(S[0])?Mo(S[0],Ls(Vr())):Mo(no(S,1),Ls(Vr()));var F=S.length;return Qi(function(Z){for(var be=-1,Ue=Eo(Z.length,F);++be=S}),z=jd(function(){return arguments}())?jd:function(v){return Cn(v)&&Ei.call(v,"callee")&&!Nn.call(v,"callee")},Q=Wt.isArray,ie=Xo?Ls(Xo):fc;function le(v){return v!=null&&cr(v.length)&&!an(v)}function ge(v){return Cn(v)&&le(v)}function Oe(v){return v===!0||v===!1||Cn(v)&&Oi(v)==Se}var Be=Ef||Tw,ze=Pa?Ls(Pa):EA;function $e(v){return Cn(v)&&v.nodeType===1&&!No(v)}function tt(v){if(v==null)return!0;if(le(v)&&(Q(v)||typeof v=="string"||typeof v.splice=="function"||Be(v)||Ja(v)||z(v)))return!v.length;var S=Es(v);if(S==wt||S==Sn)return!v.size;if(pe(v))return!pc(v).length;for(var F in v)if(Ei.call(v,F))return!1;return!0}function St(v,S){return hl(v,S)}function lt(v,S,F){F=typeof F=="function"?F:t;var Z=F?F(v,S):t;return Z===t?hl(v,S,t,F):!!Z}function vt(v){if(!Cn(v))return!1;var S=Oi(v);return S==Pe||S==xe||typeof v.message=="string"&&typeof v.name=="string"&&!No(v)}function tn(v){return typeof v=="number"&&Of(v)}function an(v){if(!xn(v))return!1;var S=Oi(v);return S==Ze||S==Xe||S==Dt||S==pn}function Vn(v){return typeof v=="number"&&v==Hr(v)}function cr(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=Jt}function xn(v){var S=typeof v;return v!=null&&(S=="object"||S=="function")}function Cn(v){return v!=null&&typeof v=="object"}var Kn=Rs?Ls(Rs):OA;function ur(v,S){return v===S||Wd(v,S,Co(S))}function Dn(v,S,F){return F=typeof F=="function"?F:t,Wd(v,S,Co(S),F)}function wn(v){return ea(v)&&v!=+v}function Kr(v){if(se(v))throw new ri(o);return BA(v)}function wr(v){return v===null}function Bi(v){return v==null}function ea(v){return typeof v=="number"||Cn(v)&&Oi(v)==Kt}function No(v){if(!Cn(v)||Oi(v)!=zn)return!1;var S=cl(v);if(S===null)return!0;var F=Ei.call(S,"constructor")&&S.constructor;return typeof F=="function"&&F instanceof F&&nA.call(F)==ic}var Xa=_s?Ls(_s):Nd;function Lu(v){return Vn(v)&&v>=-Jt&&v<=Jt}var Kl=Su?Ls(Su):Tf;function ka(v){return typeof v=="string"||!Q(v)&&Cn(v)&&Oi(v)==nr}function Go(v){return typeof v=="symbol"||Cn(v)&&Oi(v)==Mr}var Ja=XA?Ls(XA):td;function Xl(v){return v===t}function Jl(v){return Cn(v)&&Es(v)==_r}function ks(v){return Cn(v)&&Oi(v)==vi}var Is=zf(nd),Pl=zf(function(v,S){return v<=S});function Fl(v){if(!v)return[];if(le(v))return ka(v)?ul(v):el(v);if(sc&&v[sc])return kp(v[sc]());var S=Es(v),F=S==wt?Pd:S==Sn?Ml:ng;return F(v)}function Ia(v){if(!v)return v===0?v:0;if(v=Ko(v),v===Ft||v===-Ft){var S=v<0?-1:1;return S*Nt}return v===v?v:0}function Hr(v){var S=Ia(v),F=S%1;return S===S?F?S-F:S:0}function eu(v){return v?yr(Hr(v),0,nt):0}function Ko(v){if(typeof v=="number")return v;if(Go(v))return Ve;if(xn(v)){var S=typeof v.valueOf=="function"?v.valueOf():v;v=xn(S)?S+"":S}if(typeof v!="string")return v===0?v:+v;v=nc(v);var F=Cr.test(v);return F||Ii.test(v)?_n(v.slice(2),F?2:8):Zr.test(v)?Ve:+v}function Wi(v){return Tl(v,ju(v))}function Dl(v){return v?yr(Hr(v),-Jt,Jt):v===0?v:0}function mi(v){return v==null?"":fu(v)}var Ts=Du(function(v,S){if(pe(S)||le(S)){Tl(S,ml(S),v);return}for(var F in S)Ei.call(S,F)&&en(v,F,S[F])}),AA=Du(function(v,S){Tl(S,ju(S),v)}),zu=Du(function(v,S,F,Z){Tl(S,ju(S),v,Z)}),Mc=Du(function(v,S,F,Z){Tl(S,ml(S),v,Z)}),eh=DA(Tn);function RA(v,S){var F=oA(v);return S==null?F:On(F,S)}var cA=Qi(function(v,S){v=ho(v);var F=-1,Z=S.length,be=Z>2?S[2]:t;for(be&&_(S[0],S[1],be)&&(Z=1);++F1),Ue}),Tl(v,Rp(v),F),Z&&(F=Qn(F,k|B|P,Wf));for(var be=S.length;be--;)Tp(F,S[be]);return F});function Mw(v,S){return Wu(v,Gp(Vr(S)))}var Ul=DA(function(v,S){return v==null?{}:I1(v,S)});function Wu(v,S){if(v==null)return{};var F=Mo(Rp(v),function(Z){return[Z]});return S=Vr(S),Xs(v,F,function(Z,be){return S(Z,be[0])})}function $f(v,S,F){S=sd(S,v);var Z=-1,be=S.length;for(be||(be=1,v=t);++ZS){var Z=v;v=S,S=Z}if(F||v%1||S%1){var be=Or();return Eo(v+be*(S-v+Sr("1e-"+((be+"").length-1))),S)}return id(v,S)}var YG=PA(function(v,S,F){return S=S.toLowerCase(),v+(F?lk(S):S)});function lk(v){return Sw(mi(v).toLowerCase())}function uk(v){return v=mi(v),v&&v.replace(Ci,Mf).replace(Cs,"")}function qG(v,S,F){v=mi(v),S=fu(S);var Z=v.length;F=F===t?Z:yr(Hr(F),0,Z);var be=F;return F-=S.length,F>=0&&v.slice(F,be)==S}function VG(v){return v=mi(v),v&&fe.test(v)?v.replace(Zn,wl):v}function HG(v){return v=mi(v),v&&Ct.test(v)?v.replace(et,"\\$&"):v}var ZG=PA(function(v,S,F){return v+(F?"-":"")+S.toLowerCase()}),XG=PA(function(v,S,F){return v+(F?" ":"")+S.toLowerCase()}),JG=Jm("toLowerCase");function eQ(v,S,F){v=mi(v),S=Hr(S);var Z=S?bs(v):0;if(!S||Z>=S)return v;var be=(S-Z)/2;return Fp(go(be),F)+v+Fp(Hl(be),F)}function tQ(v,S,F){v=mi(v),S=Hr(S);var Z=S?bs(v):0;return S&&Z>>0,F?(v=mi(v),v&&(typeof S=="string"||S!=null&&!Xa(S))&&(S=fu(S),!S&&eA(v))?Cc(ul(v),0,F):v.split(S,F)):[]}var lQ=PA(function(v,S,F){return v+(F?" ":"")+Sw(S)});function uQ(v,S,F){return v=mi(v),F=F==null?0:yr(Hr(F),0,v.length),S=fu(S),v.slice(F,F+S.length)==S}function AQ(v,S,F){var Z=ke.templateSettings;F&&_(v,S,F)&&(S=t),v=mi(v),S=zu({},S,Z,R1);var be=zu({},S.imports,Z.imports,R1),Ue=ml(be),ot=Kd(be,Ue),gt,It,yn=0,vn=S.interpolate||so,kn="__p += '",fr=xs((S.escape||so).source+"|"+vn.source+"|"+(vn===Te?Dr:so).source+"|"+(S.evaluate||so).source+"|$","g"),Gr="//# sourceURL="+(Ei.call(S,"sourceURL")?(S.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Au+"]")+` `;v.replace(fr,function(di,_o,Bo,Bc,dA,kc){return Bo||(Bo=Bc),kn+=v.slice(yn,kc).replace(Yo,Ju),_o&&(gt=!0,kn+=`' + __e(`+_o+`) + '`),dA&&(It=!0,kn+=`'; `+dA+`; __p += '`),Bo&&(kn+=`' + ((__t = (`+Bo+`)) == null ? '' : __t) + '`),yn=kc+di.length,di}),kn+=`'; `;var ci=Ei.call(S,"variable")&&S.variable;if(!ci)kn=`with (obj) { `+kn+` } `;else if(Tr.test(ci))throw new ri(a);kn=(It?kn.replace(m,""):kn).replace(un,"$1").replace(In,"$1;"),kn="function("+(ci||"obj")+`) { `+(ci?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(gt?", __e = _.escape":"")+(It?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+kn+`return __p }`;var ro=ck(function(){return to(Ue,Gr+"return "+kn).apply(t,ot)});if(ro.source=kn,vt(ro))throw ro;return ro}function cQ(v){return mi(v).toLowerCase()}function dQ(v){return mi(v).toUpperCase()}function hQ(v,S,F){if(v=mi(v),v&&(F||S===t))return nc(v);if(!v||!(S=fu(S)))return v;var Z=ul(v),be=ul(S),Ue=xl(Z,be),ot=Xu(Z,be)+1;return Cc(Z,Ue,ot).join("")}function fQ(v,S,F){if(v=mi(v),v&&(F||S===t))return v.slice(0,Fd(v)+1);if(!v||!(S=fu(S)))return v;var Z=ul(v),be=Xu(Z,ul(S))+1;return Cc(Z,0,be).join("")}function pQ(v,S,F){if(v=mi(v),v&&(F||S===t))return v.replace(rn,"");if(!v||!(S=fu(S)))return v;var Z=ul(v),be=xl(Z,ul(S));return Cc(Z,be).join("")}function mQ(v,S){var F=Ne,Z=rt;if(xn(S)){var be="separator"in S?S.separator:be;F="length"in S?Hr(S.length):F,Z="omission"in S?fu(S.omission):Z}v=mi(v);var Ue=v.length;if(eA(v)){var ot=ul(v);Ue=ot.length}if(F>=Ue)return v;var gt=F-bs(Z);if(gt<1)return Z;var It=ot?Cc(ot,0,gt).join(""):v.slice(0,gt);if(be===t)return It+Z;if(ot&&(gt+=It.length-gt),Xa(be)){if(v.slice(gt).search(be)){var yn,vn=It;for(be.global||(be=xs(be.source,mi(Yr.exec(be))+"g")),be.lastIndex=0;yn=be.exec(vn);)var kn=yn.index;It=It.slice(0,kn===t?gt:kn)}}else if(v.indexOf(fu(be),gt)!=gt){var fr=It.lastIndexOf(be);fr>-1&&(It=It.slice(0,fr))}return It+Z}function gQ(v){return v=mi(v),v&&Ke.test(v)?v.replace(Gn,Dd):v}var yQ=PA(function(v,S,F){return v+(F?" ":"")+S.toUpperCase()}),Sw=Jm("toUpperCase");function Ak(v,S,F){return v=mi(v),S=F?t:S,S===t?xh(v)?Vc(v):$c(v):v.match(S)||[]}var ck=Qi(function(v,S){try{return ss(v,t,S)}catch(F){return vt(F)?F:new ri(F)}}),vQ=DA(function(v,S){return $l(S,function(F){F=Oa(F),xr(v,F,X1(v[F],v))}),v});function CQ(v){var S=v==null?0:v.length,F=Vr();return v=S?Mo(v,function(Z){if(typeof Z[1]!="function")throw new El(s);return[F(Z[0]),Z[1]]}):[],Qi(function(Z){for(var be=-1;++beJt)return[];var F=nt,Z=Eo(v,nt);S=Vr(S),v-=nt;for(var be=So(Z,S);++F0||S<0)?new jr(F):(v<0?F=F.takeRight(-v):v&&(F=F.drop(v)),S!==t&&(S=Hr(S),F=S<0?F.dropRight(-S):F.take(S-v)),F)},jr.prototype.takeRightWhile=function(v){return this.reverse().takeWhile(v).reverse()},jr.prototype.toArray=function(){return this.take(nt)},Ms(jr.prototype,function(v,S){var F=/^(?:filter|find|map|reject)|While$/.test(S),Z=/^(?:head|last)$/.test(S),be=ke[Z?"take"+(S=="last"?"Right":""):S],Ue=Z||/^find/.test(S);be&&(ke.prototype[S]=function(){var ot=this.__wrapped__,gt=Z?[1]:arguments,It=ot instanceof jr,yn=gt[0],vn=It||Q(ot),kn=function(_o){var Bo=be.apply(ke,Eu([_o],gt));return Z&&fr?Bo[0]:Bo};vn&&F&&typeof yn=="function"&&yn.length!=1&&(It=vn=!1);var fr=this.__chain__,Gr=!!this.__actions__.length,ci=Ue&&!fr,ro=It&&!Gr;if(!Ue&&vn){ot=ro?ot:new jr(this);var di=v.apply(ot,gt);return di.__actions__.push({func:u0,args:[kn],thisArg:t}),new uo(di,fr)}return ci&&ro?v.apply(this,gt):(di=this.thru(kn),ci?Z?di.value()[0]:di.value():di)})}),$l(["pop","push","shift","sort","splice","unshift"],function(v){var S=tA[v],F=/^(?:push|sort|unshift)$/.test(v)?"tap":"thru",Z=/^(?:pop|shift)$/.test(v);ke.prototype[v]=function(){var be=arguments;if(Z&&!this.__chain__){var Ue=this.value();return S.apply(Q(Ue)?Ue:[],be)}return this[F](function(ot){return S.apply(Q(ot)?ot:[],be)})}}),Ms(jr.prototype,function(v,S){var F=ke[S];if(F){var Z=F.name+"";Ei.call(Oo,Z)||(Oo[Z]=[]),Oo[Z].push({name:S,func:F})}}),Oo[Rh(t,$).name]=[{name:"wrapper",func:t}],jr.prototype.clone=Ma,jr.prototype.reverse=Ku,jr.prototype.value=dc,ke.prototype.at=yv,ke.prototype.chain=$1,ke.prototype.commit=Fb,ke.prototype.next=vv,ke.prototype.plant=uA,ke.prototype.reverse=A0,ke.prototype.toJSON=ke.prototype.valueOf=ke.prototype.value=Ub,ke.prototype.first=ke.prototype.head,sc&&(ke.prototype[sc]=Db),ke},ku=Ud();qo?((qo.exports=ku)._=ku,Yi._=ku):qr._=ku}).call(mf)})(n3,n3.exports);var Q4=n3.exports;const p6=ga(Q4);function QV(e,n,t){const r=n<0?e.length+n:n;if(r>=0&&r>>0}var YV=$V;const BI=ga(YV);var qV=8,VV={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"},sky:{type:"sky"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},HV={"*":{type:"source"}},ZV=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],XV={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:"*"}},JV={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:"*"}},eH={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:"*"}},tH={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"}},nH={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"}}},rH={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"}}},iH={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"}},oH=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],aH={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},sH={"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"}},lH={"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"}},uH={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},AH={"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"}},cH={"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"},"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"}},dH={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},hH={visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},fH={type:"array",value:"*"},pH={type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},mH={type:"enum",values:{Point:{},LineString:{},Polygon:{}}},gH={type:"array",minimum:0,maximum:24,value:["number","color"],length:2},yH={type:"array",value:"*",minimum:1},vH={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}},CH={"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},_H={source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},bH=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],xH={"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"}},wH={"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"}},MH={"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"}},SH={"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"}},EH={"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"}},OH={"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"}},BH={"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"}},kH={"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"}},IH={duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},TH={"*":{type:"string"}},ma={$version:qV,$root:VV,sources:HV,source:ZV,source_vector:XV,source_raster:JV,source_raster_dem:eH,source_geojson:tH,source_video:nH,source_image:rH,layer:iH,layout:oH,layout_background:aH,layout_fill:sH,layout_circle:lH,layout_heatmap:uH,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:AH,layout_symbol:cH,layout_raster:dH,layout_hillshade:hH,filter:fH,filter_operator:pH,geometry_type:mH,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:gH,expression:yH,light:vH,sky:CH,terrain:_H,paint:bH,paint_fill:xH,"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:wH,paint_circle:MH,paint_heatmap:SH,paint_symbol:EH,paint_raster:OH,paint_hillshade:BH,paint_background:kH,transition:IH,"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:TH};const KH=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function PH(e,n){const t={};for(const r in e)r!=="ref"&&(t[r]=e[r]);return KH.forEach(r=>{r in n&&(t[r]=n[r])}),t}function FH(e){e=e.slice();const n=Object.create(null);for(let t=0;t{"source"in s&&r[s.source]?t.push({command:"removeLayer",args:[s.id]}):o.push(s)}),t=t.concat(i),LH(o,n.layers,t)}catch(r){console.warn("Unable to compute style diff:",r),t=[{command:"setStyle",args:[n]}]}return t}class Hn{constructor(n,t,r,i){this.message=(n?`${n}: `:"")+r,i&&(this.identifier=i),t!=null&&t.__line__&&(this.line=t.__line__)}}function _y(e,...n){for(const t of n)for(const r in t)e[r]=t[r];return e}class Hh extends Error{constructor(n,t){super(t),this.message=t,this.key=n}}let jH=class PU{constructor(n,t=[]){this.parent=n,this.bindings={};for(const[r,i]of t)this.bindings[r]=i}concat(n){return new PU(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return this.bindings[n]?!0:this.parent?this.parent.has(n):!1}};const $4={kind:"null"},tr={kind:"number"},co={kind:"string"},Vi={kind:"boolean"},af={kind:"color"},Zg={kind:"object"},Zi={kind:"value"},WH={kind:"error"},Y4={kind:"collator"},q4={kind:"formatted"},V4={kind:"padding"},z_={kind:"resolvedImage"},H4={kind:"variableAnchorOffsetCollection"};function Pc(e,n){return{kind:"array",itemType:e,N:n}}function fs(e){if(e.kind==="array"){const n=fs(e.itemType);return typeof e.N=="number"?`array<${n}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${n}>`}else return e.kind}const NH=[$4,tr,co,Vi,af,q4,Zg,Pc(Zi),V4,z_,H4];function n_(e,n){if(n.kind==="error")return null;if(e.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!n_(e.itemType,n.itemType))&&(typeof e.N!="number"||e.N===n.N))return null}else{if(e.kind===n.kind)return null;if(e.kind==="value"){for(const t of NH)if(!n_(t,n))return null}}return`Expected ${fs(e)} but found ${fs(n)} instead.`}function pB(e,n){return n.some(t=>t.kind===e.kind)}function r_(e,n){return n.some(t=>t==="null"?e===null:t==="array"?Array.isArray(e):t==="object"?e&&!Array.isArray(e)&&typeof e=="object":t===typeof e)}function zv(e,n){return e.kind==="array"&&n.kind==="array"?e.itemType.kind===n.itemType.kind&&typeof e.N=="number":e.kind===n.kind}const FU=.96422,DU=1,UU=.82521,RU=4/29,Xg=6/29,LU=3*Xg*Xg,GH=Xg*Xg*Xg,QH=Math.PI/180,$H=180/Math.PI;function zU(e){return e=e%360,e<0&&(e+=360),e}function jU([e,n,t,r]){e=Xw(e),n=Xw(n),t=Xw(t);let i,o;const s=Jw((.2225045*e+.7168786*n+.0606169*t)/DU);e===n&&n===t?i=o=s:(i=Jw((.4360747*e+.3850649*n+.1430804*t)/FU),o=Jw((.0139322*e+.0971045*n+.7141733*t)/UU));const a=116*s-16;return[a<0?0:a,500*(i-s),200*(s-o),r]}function Xw(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jw(e){return e>GH?Math.pow(e,1/3):e/LU+RU}function WU([e,n,t,r]){let i=(e+16)/116,o=isNaN(n)?i:i+n/500,s=isNaN(t)?i:i-t/200;return i=DU*tM(i),o=FU*tM(o),s=UU*tM(s),[eM(3.1338561*o-1.6168667*i-.4906146*s),eM(-.9787684*o+1.9161415*i+.033454*s),eM(.0719453*o-.2289914*i+1.4052427*s),r]}function eM(e){return e=e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055,e<0?0:e>1?1:e}function tM(e){return e>Xg?e*e*e:LU*(e-RU)}function YH(e){const[n,t,r,i]=jU(e),o=Math.sqrt(t*t+r*r);return[Math.round(o*1e4)?zU(Math.atan2(r,t)*$H):NaN,o,n,i]}function qH([e,n,t,r]){return e=isNaN(e)?0:e*QH,WU([t,Math.cos(e)*n,Math.sin(e)*n,r])}function VH([e,n,t,r]){e=zU(e),n/=100,t/=100;function i(o){const s=(o+e/30)%12,a=n*Math.min(t,1-t);return t-a*Math.max(-1,Math.min(s-3,9-s,1))}return[i(0),i(8),i(4),r]}function HH(e){if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];const n=ZH[e];if(n){const[i,o,s]=n;return[i/255,o/255,s/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){const o=e.length<6?1:2;let s=1;return[fx(e.slice(s,s+=o)),fx(e.slice(s,s+=o)),fx(e.slice(s,s+=o)),fx(e.slice(s,s+o)||"ff")]}if(e.startsWith("rgb")){const i=/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/,o=e.match(i);if(o){const[s,a,f,g,x,k,B,P,R,H,W,$]=o,q=[g||" ",B||" ",H].join("");if(q===" "||q===" /"||q===",,"||q===",,,"){const oe=[f,k,R].join(""),ne=oe==="%%%"?100:oe===""?255:0;if(ne){const ce=[gg(+a/ne,0,1),gg(+x/ne,0,1),gg(+P/ne,0,1),W?TI(+W,$):1];if(KI(ce))return ce}}return}}const t=/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/,r=e.match(t);if(r){const[i,o,s,a,f,g,x,k,B]=r,P=[s||" ",f||" ",x].join("");if(P===" "||P===" /"||P===",,"||P===",,,"){const R=[+o,gg(+a,0,100),gg(+g,0,100),k?TI(+k,B):1];if(KI(R))return VH(R)}}}function fx(e){return parseInt(e.padEnd(2,e),16)/255}function TI(e,n){return gg(n?e/100:e,0,1)}function gg(e,n,t){return Math.min(Math.max(n,e),t)}function KI(e){return!e.some(Number.isNaN)}const ZH={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]};let ms=class m6{constructor(n,t,r,i=1,o=!0){this.r=n,this.g=t,this.b=r,this.a=i,o||(this.r*=i,this.g*=i,this.b*=i,i||this.overwriteGetter("rgb",[n,t,r,i]))}static parse(n){if(n instanceof m6)return n;if(typeof n!="string")return;const t=HH(n);if(t)return new m6(...t,!1)}get rgb(){const{r:n,g:t,b:r,a:i}=this,o=i||1/0;return this.overwriteGetter("rgb",[n/o,t/o,r/o,i])}get hcl(){return this.overwriteGetter("hcl",YH(this.rgb))}get lab(){return this.overwriteGetter("lab",jU(this.rgb))}overwriteGetter(n,t){return Object.defineProperty(this,n,{value:t}),t}toString(){const[n,t,r,i]=this.rgb;return`rgba(${[n,t,r].map(o=>Math.round(o*255)).join(",")},${i})`}};ms.black=new ms(0,0,0,1);ms.white=new ms(1,1,1,1);ms.transparent=new ms(0,0,0,0);ms.red=new ms(1,0,0,1);let mB=class{constructor(n,t,r){n?this.sensitivity=t?"variant":"case":this.sensitivity=t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,t){return this.collator.compare(n,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}},g6=class{constructor(n,t,r,i,o){this.text=n,this.image=t,this.scale=r,this.fontStack=i,this.textColor=o}},Dy=class h2{constructor(n){this.sections=n}static fromString(n){return new h2([new g6(n,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(n=>n.text.length!==0||n.image&&n.image.name.length!==0)}static factory(n){return n instanceof h2?n:h2.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}};class jc{constructor(n){this.values=n.slice()}static parse(n){if(n instanceof jc)return n;if(typeof n=="number")return new jc([n,n,n,n]);if(Array.isArray(n)&&!(n.length<1||n.length>4)){for(const t of n)if(typeof t!="number")return;switch(n.length){case 1:n=[n[0],n[0],n[0],n[0]];break;case 2:n=[n[0],n[1],n[0],n[1]];break;case 3:n=[n[0],n[1],n[2],n[1]];break}return new jc(n)}}toString(){return JSON.stringify(this.values)}}const XH=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class uf{constructor(n){this.values=n.slice()}static parse(n){if(n instanceof uf)return n;if(!(!Array.isArray(n)||n.length<1||n.length%2!==0)){for(let t=0;t=0&&e<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof t=="number"&&t>=0&&t<=255?typeof r>"u"||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[e,n,t,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[e,n,t,r]:[e,n,t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function r3(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e instanceof ms||e instanceof mB||e instanceof Dy||e instanceof jc||e instanceof uf||e instanceof C1)return!0;if(Array.isArray(e)){for(const n of e)if(!r3(n))return!1;return!0}else if(typeof e=="object"){for(const n in e)if(!r3(e[n]))return!1;return!0}else return!1}function jl(e){if(e===null)return $4;if(typeof e=="string")return co;if(typeof e=="boolean")return Vi;if(typeof e=="number")return tr;if(e instanceof ms)return af;if(e instanceof mB)return Y4;if(e instanceof Dy)return q4;if(e instanceof jc)return V4;if(e instanceof uf)return H4;if(e instanceof C1)return z_;if(Array.isArray(e)){const n=e.length;let t;for(const r of e){const i=jl(r);if(!t)t=i;else{if(t===i)continue;t=Zi;break}}return Pc(t||Zi,n)}else return Zg}function SC(e){const n=typeof e;return e===null?"":n==="string"||n==="number"||n==="boolean"?String(e):e instanceof ms||e instanceof Dy||e instanceof jc||e instanceof uf||e instanceof C1?e.toString():JSON.stringify(e)}let i3=class QU{constructor(n,t){this.type=n,this.value=t}static parse(n,t){if(n.length!==2)return t.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!r3(n[1]))return t.error("invalid value");const r=n[1];let i=jl(r);const o=t.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new QU(i,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}},sl=class{constructor(n){this.name="ExpressionEvaluationError",this.message=n}toJSON(){return this.message}};const px={string:co,number:tr,boolean:Vi,object:Zg};let fp=class $U{constructor(n,t){this.type=n,this.args=t}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");let r=1,i;const o=n[0];if(o==="array"){let a;if(n.length>2){const g=n[1];if(typeof g!="string"||!(g in px)||g==="object")return t.error('The item type argument of "array" must be one of string, number, boolean',1);a=px[g],r++}else a=Zi;let f;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return t.error('The length argument to "array" must be a positive integer literal',2);f=n[2],r++}i=Pc(a,f)}else{if(!px[o])throw new Error(`Types doesn't contain name = ${o}`);i=px[o]}const s=[];for(;rn.outputDefined())}};const PI={"to-boolean":Vi,"to-color":af,"to-number":tr,"to-string":co};let Fg=class YU{constructor(n,t){this.type=n,this.args=t}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");const r=n[0];if(!PI[r])throw new Error(`Can't parse ${r} as it is not part of the known types`);if((r==="to-boolean"||r==="to-string")&&n.length!==2)return t.error("Expected one argument.");const i=PI[r],o=[];for(let s=1;s4?r=`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:r=GU(t[0],t[1],t[2],t[3]),!r))return new ms(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new sl(r||`Could not parse color from value '${typeof t=="string"?t:JSON.stringify(t)}'`)}case"padding":{let t;for(const r of this.args){t=r.evaluate(n);const i=jc.parse(t);if(i)return i}throw new sl(`Could not parse padding from value '${typeof t=="string"?t:JSON.stringify(t)}'`)}case"variableAnchorOffsetCollection":{let t;for(const r of this.args){t=r.evaluate(n);const i=uf.parse(t);if(i)return i}throw new sl(`Could not parse variableAnchorOffsetCollection from value '${typeof t=="string"?t:JSON.stringify(t)}'`)}case"number":{let t=null;for(const r of this.args){if(t=r.evaluate(n),t===null)return 0;const i=Number(t);if(!isNaN(i))return i}throw new sl(`Could not convert ${JSON.stringify(t)} to number.`)}case"formatted":return Dy.fromString(SC(this.args[0].evaluate(n)));case"resolvedImage":return C1.fromString(SC(this.args[0].evaluate(n)));default:return SC(this.args[0].evaluate(n))}}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}};const JH=["Unknown","Point","LineString","Polygon"];let qU=class{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?typeof this.feature.type=="number"?JH[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(n){let t=this._parseColorCache[n];return t||(t=this._parseColorCache[n]=ms.parse(n)),t}},VU=class HU{constructor(n,t,r=[],i,o=new jH,s=[]){this.registry=n,this.path=r,this.key=r.map(a=>`[${a}]`).join(""),this.scope=o,this.errors=s,this.expectedType=i,this._isConstant=t}parse(n,t,r,i,o={}){return t?this.concat(t,r,i)._parse(n,o):this._parse(n,o)}_parse(n,t){(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number")&&(n=["literal",n]);function r(i,o,s){return s==="assert"?new fp(o,[i]):s==="coerce"?new Fg(o,[i]):i}if(Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=n[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let s=o.parse(n,this);if(!s)return null;if(this.expectedType){const a=this.expectedType,f=s.type;if((a.kind==="string"||a.kind==="number"||a.kind==="boolean"||a.kind==="object"||a.kind==="array")&&f.kind==="value")s=r(s,a,t.typeAnnotation||"assert");else if((a.kind==="color"||a.kind==="formatted"||a.kind==="resolvedImage")&&(f.kind==="value"||f.kind==="string"))s=r(s,a,t.typeAnnotation||"coerce");else if(a.kind==="padding"&&(f.kind==="value"||f.kind==="number"||f.kind==="array"))s=r(s,a,t.typeAnnotation||"coerce");else if(a.kind==="variableAnchorOffsetCollection"&&(f.kind==="value"||f.kind==="array"))s=r(s,a,t.typeAnnotation||"coerce");else if(this.checkSubtype(a,f))return null}if(!(s instanceof i3)&&s.type.kind!=="resolvedImage"&&this._isConstant(s)){const a=new qU;try{s=new i3(s.type,s.evaluate(a))}catch(f){return this.error(f.message),null}}return s}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof n>"u"?this.error("'undefined' value invalid. Use null instead."):typeof n=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof n} instead.`)}concat(n,t,r){const i=typeof n=="number"?this.path.concat(n):this.path,o=r?this.scope.concat(r):this.scope;return new HU(this.registry,this._isConstant,i,t||null,o,this.errors)}error(n,...t){const r=`${this.key}${t.map(i=>`[${i}]`).join("")}`;this.errors.push(new Hh(r,n))}checkSubtype(n,t){const r=n_(n,t);return r&&this.error(r),r}},ZU=class XU{constructor(n,t,r){this.type=Y4,this.locale=r,this.caseSensitive=n,this.diacriticSensitive=t}static parse(n,t){if(n.length!==2)return t.error("Expected one argument.");const r=n[1];if(typeof r!="object"||Array.isArray(r))return t.error("Collator options argument must be an object.");const i=t.parse(r["case-sensitive"]===void 0?!1:r["case-sensitive"],1,Vi);if(!i)return null;const o=t.parse(r["diacritic-sensitive"]===void 0?!1:r["diacritic-sensitive"],1,Vi);if(!o)return null;let s=null;return r.locale&&(s=t.parse(r.locale,1,co),!s)?null:new XU(i,o,s)}evaluate(n){return new mB(this.caseSensitive.evaluate(n),this.diacriticSensitive.evaluate(n),this.locale?this.locale.evaluate(n):null)}eachChild(n){n(this.caseSensitive),n(this.diacriticSensitive),this.locale&&n(this.locale)}outputDefined(){return!1}};const Mm=8192;function gB(e,n){e[0]=Math.min(e[0],n[0]),e[1]=Math.min(e[1],n[1]),e[2]=Math.max(e[2],n[0]),e[3]=Math.max(e[3],n[1])}function eZ(e){return(180+e)/360}function tZ(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function o3(e,n){return!(e[0]<=n[0]||e[2]>=n[2]||e[1]<=n[1]||e[3]>=n[3])}function nZ(e,n){const t=eZ(e[0]),r=tZ(e[1]),i=Math.pow(2,n.z);return[Math.round(t*i*Mm),Math.round(r*i*Mm)]}function rZ(e,n,t){const r=e[0]-n[0],i=e[1]-n[1],o=e[0]-t[0],s=e[1]-t[1];return r*s-o*i===0&&r*o<=0&&i*s<=0}function iZ(e,n,t){return n[1]>e[1]!=t[1]>e[1]&&e[0]<(t[0]-n[0])*(e[1]-n[1])/(t[1]-n[1])+n[0]}function yB(e,n){let t=!1;for(let r=0,i=n.length;r0&&k<0||x<0&&k>0}function sZ(e,n,t,r){const i=[n[0]-e[0],n[1]-e[1]],o=[r[0]-t[0],r[1]-t[1]];return aZ(o,i)===0?!1:!!(FI(e,n,t,r)&&FI(t,r,e,n))}function lZ(e,n,t){for(const r of t)for(let i=0;it[2]){const i=r*.5;let o=e[0]-t[0]>i?-r:t[0]-e[0]>i?r:0;o===0&&(o=e[0]-t[2]>i?-r:t[2]-e[0]>i?r:0),e[0]+=o}gB(n,e)}function AZ(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function DI(e,n,t,r){const i=Math.pow(2,r.z)*Mm,o=[r.x*Mm,r.y*Mm],s=[];for(const a of e)for(const f of a){const g=[f.x+o[0],f.y+o[1]];tR(g,n,t,i),s.push(g)}return s}function UI(e,n,t,r){const i=Math.pow(2,r.z)*Mm,o=[r.x*Mm,r.y*Mm],s=[];for(const a of e){const f=[];for(const g of a){const x=[g.x+o[0],g.y+o[1]];gB(n,x),f.push(x)}s.push(f)}if(n[2]-n[0]<=i/2){AZ(n);for(const a of s)for(const f of a)tR(f,n,t,i)}return s}function cZ(e,n){const t=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(n.type==="Polygon"){const o=vB(n.coordinates,r,i),s=DI(e.geometry(),t,r,i);if(!o3(t,r))return!1;for(const a of s)if(!yB(a,o))return!1}if(n.type==="MultiPolygon"){const o=eR(n.coordinates,r,i),s=DI(e.geometry(),t,r,i);if(!o3(t,r))return!1;for(const a of s)if(!oZ(a,o))return!1}return!0}function dZ(e,n){const t=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(n.type==="Polygon"){const o=vB(n.coordinates,r,i),s=UI(e.geometry(),t,r,i);if(!o3(t,r))return!1;for(const a of s)if(!JU(a,o))return!1}if(n.type==="MultiPolygon"){const o=eR(n.coordinates,r,i),s=UI(e.geometry(),t,r,i);if(!o3(t,r))return!1;for(const a of s)if(!uZ(a,o))return!1}return!0}let CB=class f2{constructor(n,t){this.type=Vi,this.geojson=n,this.geometries=t}static parse(n,t){if(n.length!==2)return t.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(r3(n[1])){const r=n[1];if(r.type==="FeatureCollection"){const i=[];for(const o of r.features){const{type:s,coordinates:a}=o.geometry;s==="Polygon"&&i.push(a),s==="MultiPolygon"&&i.push(...a)}if(i.length){const o={type:"MultiPolygon",coordinates:i};return new f2(r,o)}}else if(r.type==="Feature"){const i=r.geometry.type;if(i==="Polygon"||i==="MultiPolygon")return new f2(r,r.geometry)}else if(r.type==="Polygon"||r.type==="MultiPolygon")return new f2(r,r)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(n){if(n.geometry()!=null&&n.canonicalID()!=null){if(n.geometryType()==="Point")return cZ(n,this.geometries);if(n.geometryType()==="LineString")return dZ(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}},nR=class rR{constructor(n,t){this.type=t.type,this.name=n,this.boundExpression=t}static parse(n,t){if(n.length!==2||typeof n[1]!="string")return t.error("'var' expression requires exactly one string literal argument.");const r=n[1];return t.scope.has(r)?new rR(r,t.scope.get(r)):t.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}},Uy=class oC{constructor(n,t,r,i){this.name=n,this.type=t,this._evaluate=r,this.args=i}evaluate(n){return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}static parse(n,t){const r=n[0],i=oC.definitions[r];if(!i)return t.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,a=s.filter(([g])=>!Array.isArray(g)||g.length===n.length-1);let f=null;for(const[g,x]of a){f=new VU(t.registry,a3,t.path,null,t.scope);const k=[];let B=!1;for(let P=1;PhZ(B)).join(" | "),k=[];for(let B=1;B{n?t=t&&a3(r):t=t&&r instanceof i3}),t?Z4(e)&&X4(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"]):!1}function Z4(e){if(e instanceof Uy){if(e.name==="get"&&e.args.length===1)return!1;if(e.name==="feature-state")return!1;if(e.name==="has"&&e.args.length===1)return!1;if(e.name==="properties"||e.name==="geometry-type"||e.name==="id")return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof CB)return!1;let n=!0;return e.eachChild(t=>{n&&!Z4(t)&&(n=!1)}),n}function i_(e){if(e instanceof Uy&&e.name==="feature-state")return!1;let n=!0;return e.eachChild(t=>{n&&!i_(t)&&(n=!1)}),n}function X4(e,n){if(e instanceof Uy&&n.indexOf(e.name)>=0)return!1;let t=!0;return e.eachChild(r=>{t&&!X4(r,n)&&(t=!1)}),t}function J4(e,n){const t=e.length-1;let r=0,i=t,o=0,s,a;for(;r<=i;)if(o=Math.floor((r+i)/2),s=e[o],a=e[o+1],s<=n){if(o===t||nn)i=o-1;else throw new sl("Input is not a number.");return 0}let iR=class oR{constructor(n,t,r){this.type=n,this.input=t,this.labels=[],this.outputs=[];for(const[i,o]of r)this.labels.push(i),this.outputs.push(o)}static parse(n,t){if(n.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!==0)return t.error("Expected an even number of arguments.");const r=t.parse(n[1],1,tr);if(!r)return null;const i=[];let o=null;t.expectedType&&t.expectedType.kind!=="value"&&(o=t.expectedType);for(let s=1;s=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const k=t.parse(f,x,o);if(!k)return null;o=o||k.type,i.push([a,k])}return new oR(o,r,i)}evaluate(n){const t=this.labels,r=this.outputs;if(t.length===1)return r[0].evaluate(n);const i=this.input.evaluate(n);if(i<=t[0])return r[0].evaluate(n);const o=t.length;if(i>=t[o-1])return r[o-1].evaluate(n);const s=J4(t,i);return r[s].evaluate(n)}eachChild(n){n(this.input);for(const t of this.outputs)n(t)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}};function fZ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var pZ=aR;function aR(e,n,t,r){this.cx=3*e,this.bx=3*(t-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(r-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=t,this.p2y=r}aR.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,n){if(n===void 0&&(n=1e-6),e<0)return 0;if(e>1)return 1;for(var t=e,r=0;r<8;r++){var i=this.sampleCurveX(t)-e;if(Math.abs(i)i?s=t:a=t,t=(a-s)*.5+s;return t},solve:function(e,n){return this.sampleCurveY(this.solveCurveX(e,n))}};var mZ=fZ(pZ);function gZ(e){return e==="rgb"||e==="hcl"||e==="lab"}function Z0(e,n,t){return e+t*(n-e)}function yZ(e,n,t,r="rgb"){switch(r){case"rgb":{const[i,o,s,a]=s3(e.rgb,n.rgb,t);return new ms(i,o,s,a,!1)}case"hcl":{const[i,o,s,a]=e.hcl,[f,g,x,k]=n.hcl;let B,P;if(!isNaN(i)&&!isNaN(f)){let q=f-i;f>i&&q>180?q-=360:f180&&(q+=360),B=i+t*q}else isNaN(i)?isNaN(f)?B=NaN:(B=f,(s===1||s===0)&&(P=g)):(B=i,(x===1||x===0)&&(P=o));const[R,H,W,$]=qH([B,P??Z0(o,g,t),Z0(s,x,t),Z0(a,k,t)]);return new ms(R,H,W,$,!1)}case"lab":{const[i,o,s,a]=WU(s3(e.lab,n.lab,t));return new ms(i,o,s,a,!1)}}}function s3(e,n,t){return e.map((r,i)=>Z0(r,n[i],t))}function vZ(e,n,t){return new jc(s3(e.values,n.values,t))}function CZ(e,n,t){const r=e.values,i=n.values;if(r.length!==i.length)throw new sl(`Cannot interpolate values of different length. from: ${e.toString()}, to: ${n.toString()}`);const o=[];for(let s=0;stypeof x!="number"||x<0||x>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:g}}else return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(n.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!==0)return t.error("Expected an even number of arguments.");if(o=t.parse(o,2,tr),!o)return null;const a=[];let f=null;r==="interpolate-hcl"||r==="interpolate-lab"?f=af:t.expectedType&&t.expectedType.kind!=="value"&&(f=t.expectedType);for(let g=0;g=x)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',B);const R=t.parse(k,P,f);if(!R)return null;f=f||R.type,a.push([x,R])}return!zv(f,tr)&&!zv(f,af)&&!zv(f,V4)&&!zv(f,H4)&&!zv(f,Pc(tr))?t.error(`Type ${fs(f)} is not interpolatable.`):new y6(f,r,i,o,a)}evaluate(n){const t=this.labels,r=this.outputs;if(t.length===1)return r[0].evaluate(n);const i=this.input.evaluate(n);if(i<=t[0])return r[0].evaluate(n);const o=t.length;if(i>=t[o-1])return r[o-1].evaluate(n);const s=J4(t,i),a=t[s],f=t[s+1],g=y6.interpolationFactor(this.interpolation,i,a,f),x=r[s].evaluate(n),k=r[s+1].evaluate(n);switch(this.operator){case"interpolate":return p2[this.type.kind](x,k,g);case"interpolate-hcl":return p2.color(x,k,g,"hcl");case"interpolate-lab":return p2.color(x,k,g,"lab")}}eachChild(n){n(this.input);for(const t of this.outputs)n(t)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}};function nM(e,n,t,r){const i=r-t,o=e-t;return i===0?0:n===1?o/i:(Math.pow(n,o)-1)/(Math.pow(n,i)-1)}let sR=class v6{constructor(n,t){this.type=n,this.args=t}static parse(n,t){if(n.length<2)return t.error("Expectected at least one argument.");let r=null;const i=t.expectedType;i&&i.kind!=="value"&&(r=i);const o=[];for(const a of n.slice(1)){const f=t.parse(a,1+o.length,r,void 0,{typeAnnotation:"omit"});if(!f)return null;r=r||f.type,o.push(f)}if(!r)throw new Error("No output type");return i&&o.some(a=>n_(i,a.type))?new v6(Zi,o):new v6(r,o)}evaluate(n){let t=null,r=0,i;for(const o of this.args)if(r++,t=o.evaluate(n),t&&t instanceof C1&&!t.available&&(i||(i=t.name),t=null,r===this.args.length&&(t=i)),t!==null)break;return t}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}},lR=class uR{constructor(n,t){this.type=t.type,this.bindings=[].concat(n),this.result=t}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const t of this.bindings)n(t[1]);n(this.result)}static parse(n,t){if(n.length<4)return t.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const r=[];for(let o=1;o=r.length)throw new sl(`Array index out of bounds: ${t} > ${r.length-1}.`);if(t!==Math.floor(t))throw new sl(`Array index must be an integer, but found ${t} instead.`);return r[t]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}},bZ=class cR{constructor(n,t){this.type=Vi,this.needle=n,this.haystack=t}static parse(n,t){if(n.length!==3)return t.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Zi),i=t.parse(n[2],2,Zi);return!r||!i?null:pB(r.type,[Vi,co,tr,$4,Zi])?new cR(r,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${fs(r.type)} instead`)}evaluate(n){const t=this.needle.evaluate(n),r=this.haystack.evaluate(n);if(!r)return!1;if(!r_(t,["boolean","string","number","null"]))throw new sl(`Expected first argument to be of type boolean, string, number or null, but found ${fs(jl(t))} instead.`);if(!r_(r,["string","array"]))throw new sl(`Expected second argument to be of type array or string, but found ${fs(jl(r))} instead.`);return r.indexOf(t)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}},xZ=class C6{constructor(n,t,r){this.type=tr,this.needle=n,this.haystack=t,this.fromIndex=r}static parse(n,t){if(n.length<=2||n.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Zi),i=t.parse(n[2],2,Zi);if(!r||!i)return null;if(!pB(r.type,[Vi,co,tr,$4,Zi]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${fs(r.type)} instead`);if(n.length===4){const o=t.parse(n[3],3,tr);return o?new C6(r,i,o):null}else return new C6(r,i)}evaluate(n){const t=this.needle.evaluate(n),r=this.haystack.evaluate(n);if(!r_(t,["boolean","string","number","null"]))throw new sl(`Expected first argument to be of type boolean, string, number or null, but found ${fs(jl(t))} instead.`);if(!r_(r,["string","array"]))throw new sl(`Expected second argument to be of type array or string, but found ${fs(jl(r))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(n);return r.indexOf(t,i)}return r.indexOf(t)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}},wZ=class dR{constructor(n,t,r,i,o,s){this.inputType=n,this.type=t,this.input=r,this.cases=i,this.outputs=o,this.otherwise=s}static parse(n,t){if(n.length<5)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!==1)return t.error("Expected an even number of arguments.");let r,i;t.expectedType&&t.expectedType.kind!=="value"&&(i=t.expectedType);const o={},s=[];for(let g=2;gNumber.MAX_SAFE_INTEGER)return B.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof R=="number"&&Math.floor(R)!==R)return B.error("Numeric branch labels must be integer values.");if(!r)r=jl(R);else if(B.checkSubtype(r,jl(R)))return null;if(typeof o[String(R)]<"u")return B.error("Branch labels must be unique.");o[String(R)]=s.length}const P=t.parse(k,g,i);if(!P)return null;i=i||P.type,s.push(P)}const a=t.parse(n[1],1,Zi);if(!a)return null;const f=t.parse(n[n.length-1],n.length-1,i);return!f||a.type.kind!=="value"&&t.concat(1).checkSubtype(r,a.type)?null:new dR(r,i,a,o,s,f)}evaluate(n){const t=this.input.evaluate(n);return(jl(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}},MZ=class hR{constructor(n,t,r){this.type=n,this.branches=t,this.otherwise=r}static parse(n,t){if(n.length<4)return t.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!==0)return t.error("Expected an odd number of arguments.");let r;t.expectedType&&t.expectedType.kind!=="value"&&(r=t.expectedType);const i=[];for(let s=1;st.outputDefined())&&this.otherwise.outputDefined()}},SZ=class _6{constructor(n,t,r,i){this.type=n,this.input=t,this.beginIndex=r,this.endIndex=i}static parse(n,t){if(n.length<=2||n.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Zi),i=t.parse(n[2],2,tr);if(!r||!i)return null;if(!pB(r.type,[Pc(Zi),co,Zi]))return t.error(`Expected first argument to be of type array or string, but found ${fs(r.type)} instead`);if(n.length===4){const o=t.parse(n[3],3,tr);return o?new _6(r.type,r,i,o):null}else return new _6(r.type,r,i)}evaluate(n){const t=this.input.evaluate(n),r=this.beginIndex.evaluate(n);if(!r_(t,["string","array"]))throw new sl(`Expected first argument to be of type array or string, but found ${fs(jl(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(n);return t.slice(r,i)}return t.slice(r)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}};function RI(e,n){return e==="=="||e==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function EZ(e,n,t){return n===t}function OZ(e,n,t){return n!==t}function BZ(e,n,t){return nt}function IZ(e,n,t){return n<=t}function TZ(e,n,t){return n>=t}function fR(e,n,t,r){return r.compare(n,t)===0}function KZ(e,n,t,r){return!fR(e,n,t,r)}function PZ(e,n,t,r){return r.compare(n,t)<0}function FZ(e,n,t,r){return r.compare(n,t)>0}function DZ(e,n,t,r){return r.compare(n,t)<=0}function UZ(e,n,t,r){return r.compare(n,t)>=0}function Ry(e,n,t){const r=e!=="=="&&e!=="!=";return class pR{constructor(o,s,a){this.type=Vi,this.lhs=o,this.rhs=s,this.collator=a,this.hasUntypedArgument=o.type.kind==="value"||s.type.kind==="value"}static parse(o,s){if(o.length!==3&&o.length!==4)return s.error("Expected two or three arguments.");const a=o[0];let f=s.parse(o[1],1,Zi);if(!f)return null;if(!RI(a,f.type))return s.concat(1).error(`"${a}" comparisons are not supported for type '${fs(f.type)}'.`);let g=s.parse(o[2],2,Zi);if(!g)return null;if(!RI(a,g.type))return s.concat(2).error(`"${a}" comparisons are not supported for type '${fs(g.type)}'.`);if(f.type.kind!==g.type.kind&&f.type.kind!=="value"&&g.type.kind!=="value")return s.error(`Cannot compare types '${fs(f.type)}' and '${fs(g.type)}'.`);r&&(f.type.kind==="value"&&g.type.kind!=="value"?f=new fp(g.type,[f]):f.type.kind!=="value"&&g.type.kind==="value"&&(g=new fp(f.type,[g])));let x=null;if(o.length===4){if(f.type.kind!=="string"&&g.type.kind!=="string"&&f.type.kind!=="value"&&g.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(x=s.parse(o[3],3,Y4),!x)return null}return new pR(f,g,x)}evaluate(o){const s=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(r&&this.hasUntypedArgument){const f=jl(s),g=jl(a);if(f.kind!==g.kind||!(f.kind==="string"||f.kind==="number"))throw new sl(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${f.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const f=jl(s),g=jl(a);if(f.kind!=="string"||g.kind!=="string")return n(o,s,a)}return this.collator?t(o,s,a,this.collator.evaluate(o)):n(o,s,a)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}}}const RZ=Ry("==",EZ,fR),LZ=Ry("!=",OZ,KZ),zZ=Ry("<",BZ,PZ),jZ=Ry(">",kZ,FZ),WZ=Ry("<=",IZ,DZ),NZ=Ry(">=",TZ,UZ);let GZ=class mR{constructor(n,t,r,i,o){this.type=co,this.number=n,this.locale=t,this.currency=r,this.minFractionDigits=i,this.maxFractionDigits=o}static parse(n,t){if(n.length!==3)return t.error("Expected two arguments.");const r=t.parse(n[1],1,tr);if(!r)return null;const i=n[2];if(typeof i!="object"||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=t.parse(i.locale,1,co),!o))return null;let s=null;if(i.currency&&(s=t.parse(i.currency,1,co),!s))return null;let a=null;if(i["min-fraction-digits"]&&(a=t.parse(i["min-fraction-digits"],1,tr),!a))return null;let f=null;return i["max-fraction-digits"]&&(f=t.parse(i["max-fraction-digits"],1,tr),!f)?null:new mR(r,o,s,a,f)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}},QZ=class gR{constructor(n){this.type=q4,this.sections=n}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");const r=n[1];if(!Array.isArray(r)&&typeof r=="object")return t.error("First argument must be an image or text section.");const i=[];let o=!1;for(let s=1;s<=n.length-1;++s){const a=n[s];if(o&&typeof a=="object"&&!Array.isArray(a)){o=!1;let f=null;if(a["font-scale"]&&(f=t.parse(a["font-scale"],1,tr),!f))return null;let g=null;if(a["text-font"]&&(g=t.parse(a["text-font"],1,Pc(co)),!g))return null;let x=null;if(a["text-color"]&&(x=t.parse(a["text-color"],1,af),!x))return null;const k=i[i.length-1];k.scale=f,k.font=g,k.textColor=x}else{const f=t.parse(n[s],1,Zi);if(!f)return null;const g=f.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:f,scale:null,font:null,textColor:null})}}return new gR(i)}evaluate(n){const t=r=>{const i=r.content.evaluate(n);return jl(i)===z_?new g6("",i,null,null,null):new g6(SC(i),null,r.scale?r.scale.evaluate(n):null,r.font?r.font.evaluate(n).join(","):null,r.textColor?r.textColor.evaluate(n):null)};return new Dy(this.sections.map(t))}eachChild(n){for(const t of this.sections)n(t.content),t.scale&&n(t.scale),t.font&&n(t.font),t.textColor&&n(t.textColor)}outputDefined(){return!1}},$Z=class yR{constructor(n){this.type=z_,this.input=n}static parse(n,t){if(n.length!==2)return t.error("Expected two arguments.");const r=t.parse(n[1],1,co);return r?new yR(r):t.error("No image name provided.")}evaluate(n){const t=this.input.evaluate(n),r=C1.fromString(t);return r&&n.availableImages&&(r.available=n.availableImages.indexOf(t)>-1),r}eachChild(n){n(this.input)}outputDefined(){return!1}},YZ=class vR{constructor(n){this.type=tr,this.input=n}static parse(n,t){if(n.length!==2)return t.error(`Expected 1 argument, but found ${n.length-1} instead.`);const r=t.parse(n[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?t.error(`Expected argument of type string or array, but found ${fs(r.type)} instead.`):new vR(r):null}evaluate(n){const t=this.input.evaluate(n);if(typeof t=="string")return t.length;if(Array.isArray(t))return t.length;throw new sl(`Expected value to be of type string or array, but found ${fs(jl(t))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}};const _B={"==":RZ,"!=":LZ,">":jZ,"<":zZ,">=":NZ,"<=":WZ,array:fp,at:_Z,boolean:fp,case:MZ,coalesce:sR,collator:ZU,format:QZ,image:$Z,in:bZ,"index-of":xZ,interpolate:Cp,"interpolate-hcl":Cp,"interpolate-lab":Cp,length:YZ,let:lR,literal:i3,match:wZ,number:fp,"number-format":GZ,object:fp,slice:SZ,step:iR,string:fp,"to-boolean":Fg,"to-color":Fg,"to-number":Fg,"to-string":Fg,var:nR,within:CB};function LI(e,[n,t,r,i]){n=n.evaluate(e),t=t.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,s=GU(n,t,r,o);if(s)throw new sl(s);return new ms(n/255,t/255,r/255,o,!1)}function zI(e,n){return e in n}function rM(e,n){const t=n[e];return typeof t>"u"?null:t}function qZ(e,n,t,r){for(;t<=r;){const i=t+r>>1;if(n[i]===e)return!0;n[i]>e?r=i-1:t=i+1}return!1}function m0(e){return{type:e}}Uy.register(_B,{error:[WH,[co],(e,[n])=>{throw new sl(n.evaluate(e))}],typeof:[co,[Zi],(e,[n])=>fs(jl(n.evaluate(e)))],"to-rgba":[Pc(tr,4),[af],(e,[n])=>{const[t,r,i,o]=n.evaluate(e).rgb;return[t*255,r*255,i*255,o]}],rgb:[af,[tr,tr,tr],LI],rgba:[af,[tr,tr,tr,tr],LI],has:{type:Vi,overloads:[[[co],(e,[n])=>zI(n.evaluate(e),e.properties())],[[co,Zg],(e,[n,t])=>zI(n.evaluate(e),t.evaluate(e))]]},get:{type:Zi,overloads:[[[co],(e,[n])=>rM(n.evaluate(e),e.properties())],[[co,Zg],(e,[n,t])=>rM(n.evaluate(e),t.evaluate(e))]]},"feature-state":[Zi,[co],(e,[n])=>rM(n.evaluate(e),e.featureState||{})],properties:[Zg,[],e=>e.properties()],"geometry-type":[co,[],e=>e.geometryType()],id:[Zi,[],e=>e.id()],zoom:[tr,[],e=>e.globals.zoom],"heatmap-density":[tr,[],e=>e.globals.heatmapDensity||0],"line-progress":[tr,[],e=>e.globals.lineProgress||0],accumulated:[Zi,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[tr,m0(tr),(e,n)=>{let t=0;for(const r of n)t+=r.evaluate(e);return t}],"*":[tr,m0(tr),(e,n)=>{let t=1;for(const r of n)t*=r.evaluate(e);return t}],"-":{type:tr,overloads:[[[tr,tr],(e,[n,t])=>n.evaluate(e)-t.evaluate(e)],[[tr],(e,[n])=>-n.evaluate(e)]]},"/":[tr,[tr,tr],(e,[n,t])=>n.evaluate(e)/t.evaluate(e)],"%":[tr,[tr,tr],(e,[n,t])=>n.evaluate(e)%t.evaluate(e)],ln2:[tr,[],()=>Math.LN2],pi:[tr,[],()=>Math.PI],e:[tr,[],()=>Math.E],"^":[tr,[tr,tr],(e,[n,t])=>Math.pow(n.evaluate(e),t.evaluate(e))],sqrt:[tr,[tr],(e,[n])=>Math.sqrt(n.evaluate(e))],log10:[tr,[tr],(e,[n])=>Math.log(n.evaluate(e))/Math.LN10],ln:[tr,[tr],(e,[n])=>Math.log(n.evaluate(e))],log2:[tr,[tr],(e,[n])=>Math.log(n.evaluate(e))/Math.LN2],sin:[tr,[tr],(e,[n])=>Math.sin(n.evaluate(e))],cos:[tr,[tr],(e,[n])=>Math.cos(n.evaluate(e))],tan:[tr,[tr],(e,[n])=>Math.tan(n.evaluate(e))],asin:[tr,[tr],(e,[n])=>Math.asin(n.evaluate(e))],acos:[tr,[tr],(e,[n])=>Math.acos(n.evaluate(e))],atan:[tr,[tr],(e,[n])=>Math.atan(n.evaluate(e))],min:[tr,m0(tr),(e,n)=>Math.min(...n.map(t=>t.evaluate(e)))],max:[tr,m0(tr),(e,n)=>Math.max(...n.map(t=>t.evaluate(e)))],abs:[tr,[tr],(e,[n])=>Math.abs(n.evaluate(e))],round:[tr,[tr],(e,[n])=>{const t=n.evaluate(e);return t<0?-Math.round(-t):Math.round(t)}],floor:[tr,[tr],(e,[n])=>Math.floor(n.evaluate(e))],ceil:[tr,[tr],(e,[n])=>Math.ceil(n.evaluate(e))],"filter-==":[Vi,[co,Zi],(e,[n,t])=>e.properties()[n.value]===t.value],"filter-id-==":[Vi,[Zi],(e,[n])=>e.id()===n.value],"filter-type-==":[Vi,[co],(e,[n])=>e.geometryType()===n.value],"filter-<":[Vi,[co,Zi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r{const t=e.id(),r=n.value;return typeof t==typeof r&&t":[Vi,[co,Zi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r>i}],"filter-id->":[Vi,[Zi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t>r}],"filter-<=":[Vi,[co,Zi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[Vi,[Zi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t<=r}],"filter->=":[Vi,[co,Zi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[Vi,[Zi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t>=r}],"filter-has":[Vi,[Zi],(e,[n])=>n.value in e.properties()],"filter-has-id":[Vi,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[Vi,[Pc(co)],(e,[n])=>n.value.indexOf(e.geometryType())>=0],"filter-id-in":[Vi,[Pc(Zi)],(e,[n])=>n.value.indexOf(e.id())>=0],"filter-in-small":[Vi,[co,Pc(Zi)],(e,[n,t])=>t.value.indexOf(e.properties()[n.value])>=0],"filter-in-large":[Vi,[co,Pc(Zi)],(e,[n,t])=>qZ(e.properties()[n.value],t.value,0,t.value.length-1)],all:{type:Vi,overloads:[[[Vi,Vi],(e,[n,t])=>n.evaluate(e)&&t.evaluate(e)],[m0(Vi),(e,n)=>{for(const t of n)if(!t.evaluate(e))return!1;return!0}]]},any:{type:Vi,overloads:[[[Vi,Vi],(e,[n,t])=>n.evaluate(e)||t.evaluate(e)],[m0(Vi),(e,n)=>{for(const t of n)if(t.evaluate(e))return!0;return!1}]]},"!":[Vi,[Vi],(e,[n])=>!n.evaluate(e)],"is-supported-script":[Vi,[co],(e,[n])=>{const t=e.globals&&e.globals.isSupportedScript;return t?t(n.evaluate(e)):!0}],upcase:[co,[co],(e,[n])=>n.evaluate(e).toUpperCase()],downcase:[co,[co],(e,[n])=>n.evaluate(e).toLowerCase()],concat:[co,m0(Zi),(e,n)=>n.map(t=>SC(t.evaluate(e))).join("")],"resolved-locale":[co,[Y4],(e,[n])=>n.evaluate(e).resolvedLocale()]});function b6(e){return{result:"success",value:e}}function yg(e){return{result:"error",value:e}}function l3(e){return e["property-type"]==="data-driven"||e["property-type"]==="cross-faded-data-driven"}function CR(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function bB(e){return!!e.expression&&e.expression.interpolated}function Do(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function j_(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function VZ(e){return e}function xB(e,n){const t=n.type==="color",r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,o=r||!i,s=e.type||(bB(n)?"exponential":"interval");if(t||n.type==="padding"){const x=t?ms.parse:jc.parse;e=_y({},e),e.stops&&(e.stops=e.stops.map(k=>[k[0],x(k[1])])),e.default?e.default=x(e.default):e.default=x(n.default)}if(e.colorSpace&&!gZ(e.colorSpace))throw new Error(`Unknown color space: "${e.colorSpace}"`);let a,f,g;if(s==="exponential")a=jI;else if(s==="interval")a=ZZ;else if(s==="categorical"){a=HZ,f=Object.create(null);for(const x of e.stops)f[x[0]]=x[1];g=typeof e.stops[0][0]}else if(s==="identity")a=XZ;else throw new Error(`Unknown function type "${s}"`);if(r){const x={},k=[];for(let R=0;RR[0]),evaluate({zoom:R},H){return jI({stops:B,base:e.base},n,R).evaluate(R,H)}}}else if(o){const x=s==="exponential"?{name:"exponential",base:e.base!==void 0?e.base:1}:null;return{kind:"camera",interpolationType:x,interpolationFactor:Cp.interpolationFactor.bind(void 0,x),zoomStops:e.stops.map(k=>k[0]),evaluate:({zoom:k})=>a(e,n,k,f,g)}}else return{kind:"source",evaluate(x,k){const B=k&&k.properties?k.properties[e.property]:void 0;return B===void 0?W_(e.default,n.default):a(e,n,B,f,g)}}}function W_(e,n,t){if(e!==void 0)return e;if(n!==void 0)return n;if(t!==void 0)return t}function HZ(e,n,t,r,i){const o=typeof t===i?r[t]:void 0;return W_(o,e.default,n.default)}function ZZ(e,n,t){if(Do(t)!=="number")return W_(e.default,n.default);const r=e.stops.length;if(r===1||t<=e.stops[0][0])return e.stops[0][1];if(t>=e.stops[r-1][0])return e.stops[r-1][1];const i=J4(e.stops.map(o=>o[0]),t);return e.stops[i][1]}function jI(e,n,t){const r=e.base!==void 0?e.base:1;if(Do(t)!=="number")return W_(e.default,n.default);const i=e.stops.length;if(i===1||t<=e.stops[0][0])return e.stops[0][1];if(t>=e.stops[i-1][0])return e.stops[i-1][1];const o=J4(e.stops.map(x=>x[0]),t),s=JZ(t,r,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],f=e.stops[o+1][1],g=p2[n.type]||VZ;return typeof a.evaluate=="function"?{evaluate(...x){const k=a.evaluate.apply(void 0,x),B=f.evaluate.apply(void 0,x);if(!(k===void 0||B===void 0))return g(k,B,s,e.colorSpace)}}:g(a,f,s,e.colorSpace)}function XZ(e,n,t){switch(n.type){case"color":t=ms.parse(t);break;case"formatted":t=Dy.fromString(t.toString());break;case"resolvedImage":t=C1.fromString(t.toString());break;case"padding":t=jc.parse(t);break;default:Do(t)!==n.type&&(n.type!=="enum"||!n.values[t])&&(t=void 0)}return W_(t,e.default,n.default)}function JZ(e,n,t,r){const i=r-t,o=e-t;return i===0?0:n===1?o/i:(Math.pow(n,o)-1)/(Math.pow(n,i)-1)}let _R=class{constructor(n,t){this.expression=n,this._warningHistory={},this._evaluator=new qU,this._defaultValue=t?rX(t):null,this._enumValues=t&&t.type==="enum"?t.values:null}evaluateWithoutErrorHandling(n,t,r,i,o,s){return this._evaluator.globals=n,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s,this.expression.evaluate(this._evaluator)}evaluate(n,t,r,i,o,s){this._evaluator.globals=n,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s||null;try{const a=this.expression.evaluate(this._evaluator);if(a==null||typeof a=="number"&&a!==a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new sl(`Expected value to be one of ${Object.keys(this._enumValues).map(f=>JSON.stringify(f)).join(", ")}, but found ${JSON.stringify(a)} instead.`);return a}catch(a){return this._warningHistory[a.message]||(this._warningHistory[a.message]=!0,typeof console<"u"&&console.warn(a.message)),this._defaultValue}}};function N_(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in _B}function wB(e,n){const t=new VU(_B,a3,[],n?nX(n):void 0),r=t.parse(e,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return r?b6(new _R(r,n)):yg(t.errors)}let x6=class{constructor(n,t){this.kind=n,this._styleExpression=t,this.isStateDependent=n!=="constant"&&!i_(t.expression)}evaluateWithoutErrorHandling(n,t,r,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(n,t,r,i,o,s)}evaluate(n,t,r,i,o,s){return this._styleExpression.evaluate(n,t,r,i,o,s)}},w6=class{constructor(n,t,r,i){this.kind=n,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=n!=="camera"&&!i_(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(n,t,r,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(n,t,r,i,o,s)}evaluate(n,t,r,i,o,s){return this._styleExpression.evaluate(n,t,r,i,o,s)}interpolationFactor(n,t,r){return this.interpolationType?Cp.interpolationFactor(this.interpolationType,n,t,r):0}};function eX(e){return e._styleExpression!==void 0}function MB(e,n){const t=wB(e,n);if(t.result==="error")return t;const r=t.value.expression,i=Z4(r);if(!i&&!l3(n))return yg([new Hh("","data expressions not supported")]);const o=X4(r,["zoom"]);if(!o&&!CR(n))return yg([new Hh("","zoom expressions not supported")]);const s=m2(r);if(!s&&!o)return yg([new Hh("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(s instanceof Hh)return yg([s]);if(s instanceof Cp&&!bB(n))return yg([new Hh("",'"interpolate" expressions cannot be used with this property')]);if(!s)return b6(i?new x6("constant",t.value):new x6("source",t.value));const a=s instanceof Cp?s.interpolation:void 0;return b6(i?new w6("camera",t.value,s.labels,a):new w6("composite",t.value,s.labels,a))}let bR=class xR{constructor(n,t){this._parameters=n,this._specification=t,_y(this,xB(this._parameters,this._specification))}static deserialize(n){return new xR(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}};function tX(e,n){if(j_(e))return new bR(e,n);if(N_(e)){const t=MB(e,n);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value}else{let t=e;return n.type==="color"&&typeof e=="string"?t=ms.parse(e):n.type==="padding"&&(typeof e=="number"||Array.isArray(e))?t=jc.parse(e):n.type==="variableAnchorOffsetCollection"&&Array.isArray(e)&&(t=uf.parse(e)),{kind:"constant",evaluate:()=>t}}}function m2(e){let n=null;if(e instanceof lR)n=m2(e.result);else if(e instanceof sR){for(const t of e.args)if(n=m2(t),n)break}else(e instanceof iR||e instanceof Cp)&&e.input instanceof Uy&&e.input.name==="zoom"&&(n=e);return n instanceof Hh||e.eachChild(t=>{const r=m2(t);r instanceof Hh?n=r:!n&&r?n=new Hh("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Hh("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}function nX(e){const n={color:af,string:co,number:tr,enum:co,boolean:Vi,formatted:q4,padding:V4,resolvedImage:z_,variableAnchorOffsetCollection:H4};return e.type==="array"?Pc(n[e.value]||Zi,e.length):n[e.type]}function rX(e){return e.type==="color"&&j_(e.default)?new ms(0,0,0,0):e.type==="color"?ms.parse(e.default)||null:e.type==="padding"?jc.parse(e.default)||null:e.type==="variableAnchorOffsetCollection"?uf.parse(e.default)||null:e.default===void 0?null:e.default}function e5(e){if(e===!0||e===!1)return!0;if(!Array.isArray(e)||e.length===0)return!1;switch(e[0]){case"has":return e.length>=2&&e[1]!=="$id"&&e[1]!=="$type";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const n of e.slice(1))if(!e5(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function EC(e,n={}){if(e5(e))return e;if(!e)return!0;const t=e,r=t[0];if(e.length<=1)return r!=="any";switch(r){case"==":case"!=":case"<":case">":case"<=":case">=":{const[,i,o]=e;return oX(i,o,r,n)}case"any":{const[,...i]=t;return["any",...i.map(s=>{const a={},f=EC(s,a),g=iX(a);return g===!0?f:["case",g,f,!1]})]}case"all":{const[,...i]=t,o=i.map(s=>EC(s,n));return o.length>1?["all",...o]:o[0]}case"none":{const[,...i]=t;return["!",EC(["any",...i],{})]}case"in":{const[,i,...o]=t;return WI(i,o)}case"!in":{const[,i,...o]=t;return WI(i,o,!0)}case"has":return NI(t[1]);case"!has":return["!",NI(t[1])];default:return!0}}function iX(e){const n=[];for(const t in e){const r=t==="$id"?["id"]:["get",t];n.push(["==",["typeof",r],e[t]])}return n.length===0?!0:n.length===1?n[0]:["all",...n]}function oX(e,n,t,r){let i;if(e==="$type")return[t,["geometry-type"],n];if(e==="$id"?i=["id"]:i=["get",e],r&&n!==null){const o=typeof n;r[e]=o}return t==="=="&&e!=="$id"&&n===null?["all",["has",e],["==",i,null]]:t==="!="&&e!=="$id"&&n===null?["any",["!",["has",e]],["!=",i,null]]:[t,i,n]}function WI(e,n,t=!1){if(n.length===0)return t;let r;e==="$type"?r=["geometry-type"]:e==="$id"?r=["id"]:r=["get",e];let i=!0;const o=typeof n[0];for(const s of n)if(typeof s!==o){i=!1;break}if(i&&(o==="string"||o==="number")){const s=n.sort().filter((a,f)=>f===0||n[f-1]!==a);return["match",r,s,!t,t]}return t?["all",...n.map(s=>["!=",r,s])]:["any",...n.map(s=>["==",r,s])]}function NI(e){return e==="$type"?!0:e==="$id"?["!=",["id"],null]:["has",e]}function o_(e){return typeof e=="object"?["literal",e]:e}function wR(e,n){let t=e.stops;if(!t)return aX(e,n);const r=t&&typeof t[0][0]=="object",i=r||e.property!==void 0,o=r||!i;return t=t.map(s=>!i&&n.tokens&&typeof s[1]=="string"?[s[0],MR(s[1])]:[s[0],o_(s[1])]),r?sX(e,n,t):o?uX(e,n,t):M6(e,n,t)}function aX(e,n){const t=["get",e.property];if(e.default===void 0)return n.type==="string"?["string",t]:t;if(n.type==="enum")return["match",t,Object.keys(n.values),t,e.default];{const r=[n.type==="color"?"to-color":n.type,t,o_(e.default)];return n.type==="array"&&r.splice(1,0,n.value,n.length||null),r}}function SB(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function sX(e,n,t){const r={},i={},o=[];for(let a=0;a3&&n===e[e.length-2]||(r&&e.length===2||e.push(n),e.push(t))}function OB(e,n){return e.type?e.type:n.expression.interpolated?"exponential":"interval"}function MR(e){const n=["concat"],t=/{([^{}]+)}/g;let r=0;for(let i=t.exec(e);i!==null;i=t.exec(e)){const o=e.slice(r,t.lastIndex-i[0].length);r=t.lastIndex,o.length>0&&n.push(o),n.push(["get",i[1]])}if(n.length===1)return e;if(r{t({path:[i.id,o,a],key:a,value:s[a],reference:AX(a),set(f){s[a]=f}})})}OC(e,i=>{n.paint&&r(i,"paint"),n.layout&&r(i,"layout")})}function SR(e){const n=e.key,t=e.value;return t?[new Hn(n,t,"constants have been deprecated as of v8")]:[]}function $s(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function u1(e){if(Array.isArray(e))return e.map(u1);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const n={};for(const t in e)n[t]=u1(e[t]);return n}return $s(e)}function Cd(e){const n=e.key,t=e.value,r=e.valueSpec||{},i=e.objectElementValidators||{},o=e.style,s=e.styleSpec,a=e.validateSpec;let f=[];const g=Do(t);if(g!=="object")return[new Hn(n,t,`object expected, ${g} found`)];for(const x in t){const k=x.split(".")[0],B=r[k]||r["*"];let P;if(i[k])P=i[k];else if(r[k])P=a;else if(i["*"])P=i["*"];else if(r["*"])P=a;else{f.push(new Hn(n,t[x],`unknown property "${x}"`));continue}f=f.concat(P({key:(n&&`${n}.`)+x,value:t[x],valueSpec:B,style:o,styleSpec:s,object:t,objectKey:x,validateSpec:a},t))}for(const x in r)i[x]||r[x].required&&r[x].default===void 0&&t[x]===void 0&&f.push(new Hn(n,t,`missing required property "${x}"`));return f}function kB(e){const n=e.value,t=e.valueSpec,r=e.validateSpec,i=e.style,o=e.styleSpec,s=e.key,a=e.arrayElementValidator||r;if(Do(n)!=="array")return[new Hn(s,n,`array expected, ${Do(n)} found`)];if(t.length&&n.length!==t.length)return[new Hn(s,n,`array length ${t.length} expected, length ${n.length} found`)];if(t["min-length"]&&n.lengthr.maximum?[new Hn(n,t,`${t} is greater than the maximum value ${r.maximum}`)]:[]}function ER(e){const n=e.valueSpec,t=$s(e.value.type);let r,i={},o,s;const a=t!=="categorical"&&e.value.property===void 0,f=!a,g=Do(e.value.stops)==="array"&&Do(e.value.stops[0])==="array"&&Do(e.value.stops[0][0])==="object",x=Cd({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:k,default:R}});return t==="identity"&&a&&x.push(new Hn(e.key,e.value,'missing required property "property"')),t!=="identity"&&!e.value.stops&&x.push(new Hn(e.key,e.value,'missing required property "stops"')),t==="exponential"&&e.valueSpec.expression&&!bB(e.valueSpec)&&x.push(new Hn(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(f&&!l3(e.valueSpec)?x.push(new Hn(e.key,e.value,"property functions not supported")):a&&!CR(e.valueSpec)&&x.push(new Hn(e.key,e.value,"zoom functions not supported"))),(t==="categorical"||g)&&e.value.property===void 0&&x.push(new Hn(e.key,e.value,'"property" property is required')),x;function k(H){if(t==="identity")return[new Hn(H.key,H.value,'identity function may not have a "stops" property')];let W=[];const $=H.value;return W=W.concat(kB({key:H.key,value:$,valueSpec:H.valueSpec,validateSpec:H.validateSpec,style:H.style,styleSpec:H.styleSpec,arrayElementValidator:B})),Do($)==="array"&&$.length===0&&W.push(new Hn(H.key,$,"array must have at least one stop")),W}function B(H){let W=[];const $=H.value,q=H.key;if(Do($)!=="array")return[new Hn(q,$,`array expected, ${Do($)} found`)];if($.length!==2)return[new Hn(q,$,`array length 2 expected, length ${$.length} found`)];if(g){if(Do($[0])!=="object")return[new Hn(q,$,`object expected, ${Do($[0])} found`)];if($[0].zoom===void 0)return[new Hn(q,$,"object stop key must have zoom")];if($[0].value===void 0)return[new Hn(q,$,"object stop key must have value")];if(s&&s>$s($[0].zoom))return[new Hn(q,$[0].zoom,"stop zoom values must appear in ascending order")];$s($[0].zoom)!==s&&(s=$s($[0].zoom),o=void 0,i={}),W=W.concat(Cd({key:`${q}[0]`,value:$[0],valueSpec:{zoom:{}},validateSpec:H.validateSpec,style:H.style,styleSpec:H.styleSpec,objectElementValidators:{zoom:IB,value:P}}))}else W=W.concat(P({key:`${q}[0]`,value:$[0],valueSpec:{},validateSpec:H.validateSpec,style:H.style,styleSpec:H.styleSpec},$));return N_(u1($[1]))?W.concat([new Hn(`${q}[1]`,$[1],"expressions are not allowed in function stops.")]):W.concat(H.validateSpec({key:`${q}[1]`,value:$[1],valueSpec:n,validateSpec:H.validateSpec,style:H.style,styleSpec:H.styleSpec}))}function P(H,W){const $=Do(H.value),q=$s(H.value),oe=H.value!==null?H.value:W;if(!r)r=$;else if($!==r)return[new Hn(H.key,oe,`${$} stop domain type must match previous stop domain type ${r}`)];if($!=="number"&&$!=="string"&&$!=="boolean")return[new Hn(H.key,oe,"stop domain value must be a number, string, or boolean")];if($!=="number"&&t!=="categorical"){let ne=`number expected, ${$} found`;return l3(n)&&t===void 0&&(ne+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Hn(H.key,oe,ne)]}return t==="categorical"&&$==="number"&&(!isFinite(q)||Math.floor(q)!==q)?[new Hn(H.key,oe,`integer expected, found ${q}`)]:t!=="categorical"&&$==="number"&&o!==void 0&&qnew Hn(`${e.key}${r.key}`,e.value,r.message));const t=n.value.expression||n.value._styleExpression.expression;if(e.expressionContext==="property"&&e.propertyKey==="text-font"&&!t.outputDefined())return[new Hn(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if(e.expressionContext==="property"&&e.propertyType==="layout"&&!i_(t))return[new Hn(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if(e.expressionContext==="filter"&&!i_(t))return[new Hn(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&e.expressionContext.indexOf("cluster")===0){if(!X4(t,["zoom","feature-state"]))return[new Hn(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(e.expressionContext==="cluster-initial"&&!Z4(t))return[new Hn(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function dX(e){const n=e.value,t=e.key,r=Do(n);return r!=="boolean"?[new Hn(t,n,`boolean expected, ${r} found`)]:[]}function hX(e){const n=e.key,t=e.value,r=Do(t);return r!=="string"?[new Hn(n,t,`color expected, ${r} found`)]:ms.parse(String(t))?[]:[new Hn(n,t,`color expected, "${t}" found`)]}function a_(e){const n=e.key,t=e.value,r=e.valueSpec,i=[];return Array.isArray(r.values)?r.values.indexOf($s(t))===-1&&i.push(new Hn(n,t,`expected one of [${r.values.join(", ")}], ${JSON.stringify(t)} found`)):Object.keys(r.values).indexOf($s(t))===-1&&i.push(new Hn(n,t,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(t)} found`)),i}function TB(e){return e5(u1(e.value))?by(_y({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):OR(e)}function OR(e){const n=e.value,t=e.key;if(Do(n)!=="array")return[new Hn(t,n,`array expected, ${Do(n)} found`)];const r=e.styleSpec;let i,o=[];if(n.length<1)return[new Hn(t,n,"filter array must have at least 1 element")];switch(o=o.concat(a_({key:`${t}[0]`,value:n[0],valueSpec:r.filter_operator,style:e.style,styleSpec:e.styleSpec})),$s(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&$s(n[1])==="$type"&&o.push(new Hn(t,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":n.length!==3&&o.push(new Hn(t,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&(i=Do(n[1]),i!=="string"&&o.push(new Hn(`${t}[1]`,n[1],`string expected, ${i} found`)));for(let s=2;s{g in t&&n.push(new Hn(r,t[g],`"${g}" is prohibited for ref layers`))});let f;i.layers.forEach(g=>{$s(g.id)===a&&(f=g)}),f?f.ref?n.push(new Hn(r,t.ref,"ref cannot reference another ref layer")):s=$s(f.type):n.push(new Hn(r,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)n.push(new Hn(r,t,'missing required property "source"'));else{const f=i.sources&&i.sources[t.source],g=f&&$s(f.type);f?g==="vector"&&s==="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?n.push(new Hn(r,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"?n.push(new Hn(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!f.lineMetrics)&&n.push(new Hn(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):n.push(new Hn(r,t.source,`source "${t.source}" not found`))}return n=n.concat(Cd({key:r,value:t,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:t,objectKey:"type"})},filter:TB,layout(f){return Cd({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(g){return IR(_y({layerType:s},g))}}})},paint(f){return Cd({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(g){return kR(_y({layerType:s},g))}}})}}})),n}function A1(e){const n=e.value,t=e.key,r=Do(n);return r!=="string"?[new Hn(t,n,`string expected, ${r} found`)]:[]}function fX(e){var n;const t=(n=e.sourceName)!==null&&n!==void 0?n:"",r=e.value,i=e.styleSpec,o=i.source_raster_dem,s=e.style;let a=[];const f=Do(r);if(r===void 0)return a;if(f!=="object")return a.push(new Hn("source_raster_dem",r,`object expected, ${f} found`)),a;const x=$s(r.encoding)==="custom",k=["redFactor","greenFactor","blueFactor","baseShift"],B=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const P in r)!x&&k.includes(P)?a.push(new Hn(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${B} encoding found`)):o[P]?a=a.concat(e.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:e.validateSpec,style:s,styleSpec:i})):a.push(new Hn(P,r[P],`unknown property "${P}"`));return a}const QI={promoteId:pX};function KR(e){const n=e.value,t=e.key,r=e.styleSpec,i=e.style,o=e.validateSpec;if(!n.type)return[new Hn(t,n,'"type" is required')];const s=$s(n.type);let a;switch(s){case"vector":case"raster":return a=Cd({key:t,value:n,valueSpec:r[`source_${s.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:QI,validateSpec:o}),a;case"raster-dem":return a=fX({sourceName:t,value:n,style:e.style,styleSpec:r,validateSpec:o}),a;case"geojson":if(a=Cd({key:t,value:n,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:QI}),n.cluster)for(const f in n.clusterProperties){const[g,x]=n.clusterProperties[f],k=typeof g=="string"?[g,["accumulated"],["get",f]]:g;a.push(...by({key:`${t}.${f}.map`,value:x,validateSpec:o,expressionContext:"cluster-map"})),a.push(...by({key:`${t}.${f}.reduce`,value:k,validateSpec:o,expressionContext:"cluster-reduce"}))}return a;case"video":return Cd({key:t,value:n,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return Cd({key:t,value:n,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new Hn(t,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return a_({key:`${t}.type`,value:n.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:i,validateSpec:o,styleSpec:r})}}function pX({key:e,value:n}){if(Do(n)==="string")return A1({key:e,value:n});{const t=[];for(const r in n)t.push(...A1({key:`${e}.${r}`,value:n[r]}));return t}}function PR(e){const n=e.value,t=e.styleSpec,r=t.light,i=e.style;let o=[];const s=Do(n);if(n===void 0)return o;if(s!=="object")return o=o.concat([new Hn("light",n,`object expected, ${s} found`)]),o;for(const a in n){const f=a.match(/^(.*)-transition$/);f&&r[f[1]]&&r[f[1]].transition?o=o.concat(e.validateSpec({key:a,value:n[a],valueSpec:t.transition,validateSpec:e.validateSpec,style:i,styleSpec:t})):r[a]?o=o.concat(e.validateSpec({key:a,value:n[a],valueSpec:r[a],validateSpec:e.validateSpec,style:i,styleSpec:t})):o=o.concat([new Hn(a,n[a],`unknown property "${a}"`)])}return o}function FR(e){const n=e.value,t=e.styleSpec,r=t.sky,i=e.style,o=Do(n);if(n===void 0)return[];if(o!=="object")return[new Hn("sky",n,`object expected, ${o} found`)];let s=[];for(const a in n)r[a]?s=s.concat(ey({key:a,value:n[a],valueSpec:r[a],style:i,styleSpec:t})):s=s.concat([new Hn(a,n[a],`unknown property "${a}"`)]);return s}function DR(e){const n=e.value,t=e.styleSpec,r=t.terrain,i=e.style;let o=[];const s=Do(n);if(n===void 0)return o;if(s!=="object")return o=o.concat([new Hn("terrain",n,`object expected, ${s} found`)]),o;for(const a in n)r[a]?o=o.concat(e.validateSpec({key:a,value:n[a],valueSpec:r[a],validateSpec:e.validateSpec,style:i,styleSpec:t})):o=o.concat([new Hn(a,n[a],`unknown property "${a}"`)]);return o}function mX(e){return A1(e).length===0?[]:by(e)}function gX(e){return A1(e).length===0?[]:by(e)}function yX(e){const n=e.key,t=e.value;if(Do(t)==="array"){if(t.length<1||t.length>4)return[new Hn(n,t,`padding requires 1 to 4 values; ${t.length} values found`)];const i={type:"number"};let o=[];for(let s=0;sn.line-t.line)}function vf(e){return function(...n){return LR(e.apply(this,n))}}const CX=/("(?:[^\\"]|\\.)*")|[:,]/g;function _X(e,n={}){const t=JSON.stringify([1],void 0,n.indent===void 0?2:n.indent).slice(2,-3),r=t===""?1/0:n.maxLength===void 0?80:n.maxLength;let{replacer:i}=n;return function o(s,a,f){s&&typeof s.toJSON=="function"&&(s=s.toJSON());const g=JSON.stringify(s,i);if(g===void 0)return g;const x=r-a.length-f;if(g.length<=x){const k=g.replace(CX,(B,P)=>P||`${B} `);if(k.length<=x)return k}if(i!=null&&(s=JSON.parse(g),i=void 0),typeof s=="object"&&s!==null){const k=a+t,B=[];let P=0,R,H;if(Array.isArray(s)){R="[",H="]";const{length:W}=s;for(;P0)return[R,t+B.join(`, ${k}`),H].join(` ${a}`)}return g}(e,"",0)}function YI(e,n){const t={};for(const r in n)e[r]!==void 0&&(t[r]=e[r]);for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function zR(e,n=2){return e=YI(e,ma.$root),e.layers&&(e.layers=e.layers.map(t=>YI(t,ma.layer))),_X(e,{indent:n})}function iM(e,n){for(const t in e)t.indexOf("layout")===0&&n(e[t],t)}function qI(e,n){for(const t in e)t.indexOf("paint")===0&&n(e[t],t)}function S6(e,n){return typeof n=="string"&&n[0]==="@"?S6(e,e.constants[n]):n}function bX(e){return Array.isArray(e.stops)}function jv(e,n,t){e[t]=e[n],delete e[n]}function xX(e){e.version=8,cX(e,i=>{i.type==="video"&&i.url!==void 0&&jv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),OC(e,i=>{iM(i,o=>{o["symbol-min-distance"]!==void 0&&jv(o,"symbol-min-distance","symbol-spacing")}),qI(i,o=>{o["background-image"]!==void 0&&jv(o,"background-image","background-pattern"),o["line-image"]!==void 0&&jv(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&jv(o,"fill-image","fill-pattern")})}),BB(e,{paint:!0,layout:!0},i=>{const o=S6(e,i.value);bX(o)&&o.stops.forEach(s=>{s[1]=S6(e,s[1])}),i.set(o)}),delete e.constants,OC(e,i=>{iM(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),qI(i,o=>{o["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function n(i){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(s=>{s[1]=o(s[1])}),i;throw new Error("unexpected font value")}OC(e,i=>{iM(i,o=>{o["text-font"]&&(o["text-font"]=n(o["text-font"]))})});let t=0;for(let i=e.layers.length-1;i>=0;i--)if(e.layers[i].type!=="symbol"){t=i+1;break}const r=e.layers.splice(t);return r.reverse(),e.layers=e.layers.concat(r),e}function wX(e){const n=[];return OC(e,t=>{t.filter&&(t.filter=EC(t.filter))}),BB(e,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{N_(r)||(typeof r=="object"&&!Array.isArray(r)?(o(wR(r,i)),n.push(t.join("."))):i.tokens&&typeof r=="string"&&o(MR(r)))}),e}function MX(e){return JSON.parse(SX(JSON.stringify(e)))}function SX(e){return e.replace(/"hsla?\((.+?)\)"/gi,(n,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,s,a]=r.slice(1);return[o,s]=[o,s].map(f=>f.endsWith("%")?f:`${parseFloat(f)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[i,o,s,a].filter(Boolean).join(",")})"`}return n})}function EX(e){let n=!1;if(e.version===7&&(e=xX(e),n=!0),e.version===8&&(n=!!wX(e),n=!0),BB(e,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(MX(t))}),!n)throw new Error(`Cannot migrate from ${e.version}`);return e}const OX={StyleExpression:_R,StylePropertyFunction:bR,ZoomConstantExpression:x6,ZoomDependentExpression:w6,createExpression:wB,createPropertyExpression:MB,isExpression:N_,isExpressionFilter:e5,isZoomExpression:eX,normalizePropertyExpression:tX},BX={convertFunction:wR,createFunction:xB,isFunction:j_};var jR={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(mf,function(){var t,r,i;function o(a,f){if(!t)t=f;else if(!r)r=f;else{var g="var sharedChunk = {}; ("+t+")(sharedChunk); ("+r+")(sharedChunk);",x={};t(x),i=f(x),typeof window<"u"&&(i.workerUrl=window.URL.createObjectURL(new Blob([g],{type:"text/javascript"})))}}o(["exports"],function(a){function f(c,l,d,y){return new(d||(d=Promise))(function(w,T){function K(Q){try{z(y.next(Q))}catch(ie){T(ie)}}function D(Q){try{z(y.throw(Q))}catch(ie){T(ie)}}function z(Q){var ie;Q.done?w(Q.value):(ie=Q.value,ie instanceof d?ie:new d(function(le){le(ie)})).then(K,D)}z((y=y.apply(c,l||[])).next())})}function g(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var x=k;function k(c,l){this.x=c,this.y=l}k.prototype={clone:function(){return new k(this.x,this.y)},add:function(c){return this.clone()._add(c)},sub:function(c){return this.clone()._sub(c)},multByPoint:function(c){return this.clone()._multByPoint(c)},divByPoint:function(c){return this.clone()._divByPoint(c)},mult:function(c){return this.clone()._mult(c)},div:function(c){return this.clone()._div(c)},rotate:function(c){return this.clone()._rotate(c)},rotateAround:function(c,l){return this.clone()._rotateAround(c,l)},matMult:function(c){return this.clone()._matMult(c)},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(c){return this.x===c.x&&this.y===c.y},dist:function(c){return Math.sqrt(this.distSqr(c))},distSqr:function(c){var l=c.x-this.x,d=c.y-this.y;return l*l+d*d},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(c){return Math.atan2(this.y-c.y,this.x-c.x)},angleWith:function(c){return this.angleWithSep(c.x,c.y)},angleWithSep:function(c,l){return Math.atan2(this.x*l-this.y*c,this.x*c+this.y*l)},_matMult:function(c){var l=c[2]*this.x+c[3]*this.y;return this.x=c[0]*this.x+c[1]*this.y,this.y=l,this},_add:function(c){return this.x+=c.x,this.y+=c.y,this},_sub:function(c){return this.x-=c.x,this.y-=c.y,this},_mult:function(c){return this.x*=c,this.y*=c,this},_div:function(c){return this.x/=c,this.y/=c,this},_multByPoint:function(c){return this.x*=c.x,this.y*=c.y,this},_divByPoint:function(c){return this.x/=c.x,this.y/=c.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var c=this.y;return this.y=this.x,this.x=-c,this},_rotate:function(c){var l=Math.cos(c),d=Math.sin(c),y=d*this.x+l*this.y;return this.x=l*this.x-d*this.y,this.y=y,this},_rotateAround:function(c,l){var d=Math.cos(c),y=Math.sin(c),w=l.y+y*(this.x-l.x)+d*(this.y-l.y);return this.x=l.x+d*(this.x-l.x)-y*(this.y-l.y),this.y=w,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},k.convert=function(c){return c instanceof k?c:Array.isArray(c)?new k(c[0],c[1]):c};var B=g(x),P=R;function R(c,l,d,y){this.cx=3*c,this.bx=3*(d-c)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*l,this.by=3*(y-l)-this.cy,this.ay=1-this.cy-this.by,this.p1x=c,this.p1y=l,this.p2x=d,this.p2y=y}R.prototype={sampleCurveX:function(c){return((this.ax*c+this.bx)*c+this.cx)*c},sampleCurveY:function(c){return((this.ay*c+this.by)*c+this.cy)*c},sampleCurveDerivativeX:function(c){return(3*this.ax*c+2*this.bx)*c+this.cx},solveCurveX:function(c,l){if(l===void 0&&(l=1e-6),c<0)return 0;if(c>1)return 1;for(var d=c,y=0;y<8;y++){var w=this.sampleCurveX(d)-c;if(Math.abs(w)w?K=d:D=d,d=.5*(D-K)+K;return d},solve:function(c,l){return this.sampleCurveY(this.solveCurveX(c,l))}};var H=g(P);let W,$;function q(){return W==null&&(W=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),W}function oe(){if($==null&&($=!1,q())){const l=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(l){for(let y=0;y<5*5;y++){const w=4*y;l.fillStyle=`rgb(${w},${w+1},${w+2})`,l.fillRect(y%5,Math.floor(y/5),1,1)}const d=l.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&d[y]!==y){$=!0;break}}}return $||!1}function ne(c,l,d,y){const w=new H(c,l,d,y);return function(T){return w.solve(T)}}const ce=ne(.25,.1,.25,1);function ae(c,l,d){return Math.min(d,Math.max(l,c))}function ue(c,l,d){const y=d-l,w=((c-l)%y+y)%y+l;return w===l?d:w}function ye(c,...l){for(const d of l)for(const y in d)c[y]=d[y];return c}let Re=1;function Ne(c,l,d){const y={};for(const w in c)y[w]=l.call(d||this,c[w],w,c);return y}function rt(c,l,d){const y={};for(const w in c)l.call(d||this,c[w],w,c)&&(y[w]=c[w]);return y}function ct(c){return Array.isArray(c)?c.map(ct):typeof c=="object"&&c?Ne(c,ct):c}const Fe={};function He(c){Fe[c]||(typeof console<"u"&&console.warn(c),Fe[c]=!0)}function Ce(c,l,d){return(d.y-c.y)*(l.x-c.x)>(l.y-c.y)*(d.x-c.x)}function jt(c){let l=0;for(let d,y,w=0,T=c.length,K=T-1;w"u")throw new Error("VideoFrame not supported");const T=new VideoFrame(c,{timestamp:0});try{const K=T==null?void 0:T.format;if(!K||!K.startsWith("BGR")&&!K.startsWith("RGB"))throw new Error(`Unrecognized format ${K}`);const D=K.startsWith("BGR"),z=new Uint8ClampedArray(y*w*4);if(yield T.copyTo(z,function(Q,ie,le,ge,Oe){const Be=4*Math.max(-ie,0),ze=(Math.max(0,le)-le)*ge*4+Be,$e=4*ge,tt=Math.max(0,ie),St=Math.max(0,le);return{rect:{x:tt,y:St,width:Math.min(Q.width,ie+ge)-tt,height:Math.min(Q.height,le+Oe)-St},layout:[{offset:ze,stride:$e}]}}(c,l,d,y,w)),D)for(let Q=0;QFt(self)?self.worker&&self.worker.referrer:(window.location.protocol==="blob:"?window.parent:window).location.href,Pe=function(c,l){if(/:\/\//.test(c.url)&&!/^https?:|^file:/.test(c.url)){const y=Dt(c.url);if(y)return y(c,l);if(Ft(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"getResource",data:c,targetMapId:Se},l)}if(!(/^file:/.test(d=c.url)||/^file:/.test(xe())&&!/^\w+:/.test(d))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return function(y,w){return f(this,void 0,void 0,function*(){const T=new Request(y.url,{method:y.method||"GET",body:y.body,credentials:y.credentials,headers:y.headers,cache:y.cache,referrer:xe(),signal:w.signal});y.type==="json"&&T.headers.set("Accept","application/json");const K=yield fetch(T);if(!K.ok){const Q=yield K.blob();throw new de(K.status,K.statusText,y.url,Q)}const D=y.type==="arrayBuffer"||y.type==="image"?K.arrayBuffer():y.type==="json"?K.json():K.text(),z=yield D;if(w.signal.aborted)throw dt();return{data:z,cacheControl:K.headers.get("Cache-Control"),expires:K.headers.get("Expires")}})}(c,l);if(Ft(self)&&self.worker&&self.worker.actor)return self.worker.actor.sendAsync({type:"getResource",data:c,mustQueue:!0,targetMapId:Se},l)}var d;return function(y,w){return new Promise((T,K)=>{const D=new XMLHttpRequest;D.open(y.method||"GET",y.url,!0),y.type!=="arrayBuffer"&&y.type!=="image"||(D.responseType="arraybuffer");for(const z in y.headers)D.setRequestHeader(z,y.headers[z]);y.type==="json"&&(D.responseType="text",D.setRequestHeader("Accept","application/json")),D.withCredentials=y.credentials==="include",D.onerror=()=>{K(new Error(D.statusText))},D.onload=()=>{if(!w.signal.aborted)if((D.status>=200&&D.status<300||D.status===0)&&D.response!==null){let z=D.response;if(y.type==="json")try{z=JSON.parse(D.response)}catch(Q){return void K(Q)}T({data:z,cacheControl:D.getResponseHeader("Cache-Control"),expires:D.getResponseHeader("Expires")})}else{const z=new Blob([D.response],{type:D.getResponseHeader("Content-Type")});K(new de(D.status,D.statusText,y.url,z))}},w.signal.addEventListener("abort",()=>{D.abort(),K(dt())}),D.send(y.body)})}(c,l)};function Ze(c){if(!c||c.indexOf("://")<=0||c.indexOf("data:image/")===0||c.indexOf("blob:")===0)return!0;const l=new URL(c),d=window.location;return l.protocol===d.protocol&&l.host===d.host}function Xe(c,l,d){d[c]&&d[c].indexOf(l)!==-1||(d[c]=d[c]||[],d[c].push(l))}function wt(c,l,d){if(d&&d[c]){const y=d[c].indexOf(l);y!==-1&&d[c].splice(y,1)}}class Kt{constructor(l,d={}){ye(this,d),this.type=l}}class Pt extends Kt{constructor(l,d={}){super("error",ye({error:l},d))}}class zn{on(l,d){return this._listeners=this._listeners||{},Xe(l,d,this._listeners),this}off(l,d){return wt(l,d,this._listeners),wt(l,d,this._oneTimeListeners),this}once(l,d){return d?(this._oneTimeListeners=this._oneTimeListeners||{},Xe(l,d,this._oneTimeListeners),this):new Promise(y=>this.once(l,y))}fire(l,d){typeof l=="string"&&(l=new Kt(l,d||{}));const y=l.type;if(this.listens(y)){l.target=this;const w=this._listeners&&this._listeners[y]?this._listeners[y].slice():[];for(const D of w)D.call(this,l);const T=this._oneTimeListeners&&this._oneTimeListeners[y]?this._oneTimeListeners[y].slice():[];for(const D of T)wt(y,D,this._oneTimeListeners),D.call(this,l);const K=this._eventedParent;K&&(ye(l,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),K.fire(l))}else l instanceof Pt&&console.error(l.error);return this}listens(l){return this._listeners&&this._listeners[l]&&this._listeners[l].length>0||this._oneTimeListeners&&this._oneTimeListeners[l]&&this._oneTimeListeners[l].length>0||this._eventedParent&&this._eventedParent.listens(l)}setEventedParent(l,d){return this._eventedParent=l,this._eventedParentData=d,this}}var mt={$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"},sky:{type:"sky"},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"},"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}},sky:{"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"fog-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0},"horizon-blend":{type:"number","property-type":"data-constant",default:.8,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 pn=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ir(c,l){const d={};for(const y in c)y!=="ref"&&(d[y]=c[y]);return pn.forEach(y=>{y in l&&(d[y]=l[y])}),d}function Sn(c,l){if(Array.isArray(c)){if(!Array.isArray(l)||c.length!==l.length)return!1;for(let d=0;d`:c.itemType.kind==="value"?"array":`array<${l}>`}return c.kind}const at=[sr,Lt,Fn,on,m,Zn,un,Ee(In),Ke,fe,_e];function it(c,l){if(l.kind==="error")return null;if(c.kind==="array"){if(l.kind==="array"&&(l.N===0&&l.itemType.kind==="value"||!it(c.itemType,l.itemType))&&(typeof c.N!="number"||c.N===l.N))return null}else{if(c.kind===l.kind)return null;if(c.kind==="value"){for(const d of at)if(!it(d,l))return null}}return`Expected ${Te(c)} but found ${Te(l)} instead.`}function ht(c,l){return l.some(d=>d.kind===c.kind)}function et(c,l){return l.some(d=>d==="null"?c===null:d==="array"?Array.isArray(c):d==="object"?c&&!Array.isArray(c)&&typeof c=="object":d===typeof c)}function Ct(c,l){return c.kind==="array"&&l.kind==="array"?c.itemType.kind===l.itemType.kind&&typeof c.N=="number":c.kind===l.kind}const rn=.96422,Gt=.82521,$t=4/29,gn=6/29,Jn=3*gn*gn,qn=gn*gn*gn,Tr=Math.PI/180,vr=180/Math.PI;function Dr(c){return(c%=360)<0&&(c+=360),c}function Yr([c,l,d,y]){let w,T;const K=Cr((.2225045*(c=Zr(c))+.7168786*(l=Zr(l))+.0606169*(d=Zr(d)))/1);c===l&&l===d?w=T=K:(w=Cr((.4360747*c+.3850649*l+.1430804*d)/rn),T=Cr((.0139322*c+.0971045*l+.7141733*d)/Gt));const D=116*K-16;return[D<0?0:D,500*(w-K),200*(K-T),y]}function Zr(c){return c<=.04045?c/12.92:Math.pow((c+.055)/1.055,2.4)}function Cr(c){return c>qn?Math.pow(c,1/3):c/Jn+$t}function ui([c,l,d,y]){let w=(c+16)/116,T=isNaN(l)?w:w+l/500,K=isNaN(d)?w:w-d/200;return w=1*Io(w),T=rn*Io(T),K=Gt*Io(K),[Ii(3.1338561*T-1.6168667*w-.4906146*K),Ii(-.9787684*T+1.9161415*w+.033454*K),Ii(.0719453*T-.2289914*w+1.4052427*K),y]}function Ii(c){return(c=c<=.00304?12.92*c:1.055*Math.pow(c,1/2.4)-.055)<0?0:c>1?1:c}function Io(c){return c>gn?c*c*c:Jn*(c-$t)}function Ci(c){return parseInt(c.padEnd(2,c),16)/255}function so(c,l){return Yo(l?c/100:c,0,1)}function Yo(c,l,d){return Math.min(Math.max(l,c),d)}function ba(c){return!c.some(Number.isNaN)}const Ql={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 Ai{constructor(l,d,y,w=1,T=!0){this.r=l,this.g=d,this.b=y,this.a=w,T||(this.r*=w,this.g*=w,this.b*=w,w||this.overwriteGetter("rgb",[l,d,y,w]))}static parse(l){if(l instanceof Ai)return l;if(typeof l!="string")return;const d=function(y){if((y=y.toLowerCase().trim())==="transparent")return[0,0,0,0];const w=Ql[y];if(w){const[K,D,z]=w;return[K/255,D/255,z/255,1]}if(y.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(y)){const K=y.length<6?1:2;let D=1;return[Ci(y.slice(D,D+=K)),Ci(y.slice(D,D+=K)),Ci(y.slice(D,D+=K)),Ci(y.slice(D,D+K)||"ff")]}if(y.startsWith("rgb")){const K=y.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(K){const[D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt,St]=K,lt=[ie||" ",Oe||" ",$e].join("");if(lt===" "||lt===" /"||lt===",,"||lt===",,,"){const vt=[Q,ge,ze].join(""),tn=vt==="%%%"?100:vt===""?255:0;if(tn){const an=[Yo(+z/tn,0,1),Yo(+le/tn,0,1),Yo(+Be/tn,0,1),tt?so(+tt,St):1];if(ba(an))return an}}return}}const T=y.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(T){const[K,D,z,Q,ie,le,ge,Oe,Be]=T,ze=[z||" ",ie||" ",ge].join("");if(ze===" "||ze===" /"||ze===",,"||ze===",,,"){const $e=[+D,Yo(+Q,0,100),Yo(+le,0,100),Oe?so(+Oe,Be):1];if(ba($e))return function([tt,St,lt,vt]){function tn(an){const Vn=(an+tt/30)%12,cr=St*Math.min(lt,1-lt);return lt-cr*Math.max(-1,Math.min(Vn-3,9-Vn,1))}return tt=Dr(tt),St/=100,lt/=100,[tn(0),tn(8),tn(4),vt]}($e)}}}(l);return d?new Ai(...d,!1):void 0}get rgb(){const{r:l,g:d,b:y,a:w}=this,T=w||1/0;return this.overwriteGetter("rgb",[l/T,d/T,y/T,w])}get hcl(){return this.overwriteGetter("hcl",function(l){const[d,y,w,T]=Yr(l),K=Math.sqrt(y*y+w*w);return[Math.round(1e4*K)?Dr(Math.atan2(w,y)*vr):NaN,K,d,T]}(this.rgb))}get lab(){return this.overwriteGetter("lab",Yr(this.rgb))}overwriteGetter(l,d){return Object.defineProperty(this,l,{value:d}),d}toString(){const[l,d,y,w]=this.rgb;return`rgba(${[l,d,y].map(T=>Math.round(255*T)).join(",")},${w})`}}Ai.black=new Ai(0,0,0,1),Ai.white=new Ai(1,1,1,1),Ai.transparent=new Ai(0,0,0,0),Ai.red=new Ai(1,0,0,1);class Mi{constructor(l,d,y){this.sensitivity=l?d?"variant":"case":d?"accent":"base",this.locale=y,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(l,d){return this.collator.compare(l,d)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class rr{constructor(l,d,y,w,T){this.text=l,this.image=d,this.scale=y,this.fontStack=w,this.textColor=T}}class lo{constructor(l){this.sections=l}static fromString(l){return new lo([new rr(l,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(l=>l.text.length!==0||l.image&&l.image.name.length!==0)}static factory(l){return l instanceof lo?l:lo.fromString(l)}toString(){return this.sections.length===0?"":this.sections.map(l=>l.text).join("")}}class Gi{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof Gi)return l;if(typeof l=="number")return new Gi([l,l,l,l]);if(Array.isArray(l)&&!(l.length<1||l.length>4)){for(const d of l)if(typeof d!="number")return;switch(l.length){case 1:l=[l[0],l[0],l[0],l[0]];break;case 2:l=[l[0],l[1],l[0],l[1]];break;case 3:l=[l[0],l[1],l[2],l[1]]}return new Gi(l)}}toString(){return JSON.stringify(this.values)}}const la=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class ve{constructor(l){this.values=l.slice()}static parse(l){if(l instanceof ve)return l;if(Array.isArray(l)&&!(l.length<1)&&l.length%2==0){for(let d=0;d=0&&c<=255&&typeof l=="number"&&l>=0&&l<=255&&typeof d=="number"&&d>=0&&d<=255?y===void 0||typeof y=="number"&&y>=0&&y<=1?null:`Invalid rgba value [${[c,l,d,y].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof y=="number"?[c,l,d,y]:[c,l,d]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function mn(c){if(c===null||typeof c=="string"||typeof c=="boolean"||typeof c=="number"||c instanceof Ai||c instanceof Mi||c instanceof lo||c instanceof Gi||c instanceof ve||c instanceof Ge)return!0;if(Array.isArray(c)){for(const l of c)if(!mn(l))return!1;return!0}if(typeof c=="object"){for(const l in c)if(!mn(c[l]))return!1;return!0}return!1}function Ot(c){if(c===null)return sr;if(typeof c=="string")return Fn;if(typeof c=="boolean")return on;if(typeof c=="number")return Lt;if(c instanceof Ai)return m;if(c instanceof Mi)return Gn;if(c instanceof lo)return Zn;if(c instanceof Gi)return Ke;if(c instanceof ve)return _e;if(c instanceof Ge)return fe;if(Array.isArray(c)){const l=c.length;let d;for(const y of c){const w=Ot(y);if(d){if(d===w)continue;d=In;break}d=w}return Ee(d||In,l)}return un}function En(c){const l=typeof c;return c===null?"":l==="string"||l==="number"||l==="boolean"?String(c):c instanceof Ai||c instanceof lo||c instanceof Gi||c instanceof ve||c instanceof Ge?c.toString():JSON.stringify(c)}class zr{constructor(l,d){this.type=l,this.value=d}static parse(l,d){if(l.length!==2)return d.error(`'literal' expression requires exactly one argument, but found ${l.length-1} instead.`);if(!mn(l[1]))return d.error("invalid value");const y=l[1];let w=Ot(y);const T=d.expectedType;return w.kind!=="array"||w.N!==0||!T||T.kind!=="array"||typeof T.N=="number"&&T.N!==0||(w=T),new zr(w,y)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class Lr{constructor(l){this.name="ExpressionEvaluationError",this.message=l}toJSON(){return this.message}}const Ti={string:Fn,number:Lt,boolean:on,object:un};class po{constructor(l,d){this.type=l,this.args=d}static parse(l,d){if(l.length<2)return d.error("Expected at least one argument.");let y,w=1;const T=l[0];if(T==="array"){let D,z;if(l.length>2){const Q=l[1];if(typeof Q!="string"||!(Q in Ti)||Q==="object")return d.error('The item type argument of "array" must be one of string, number, boolean',1);D=Ti[Q],w++}else D=In;if(l.length>3){if(l[2]!==null&&(typeof l[2]!="number"||l[2]<0||l[2]!==Math.floor(l[2])))return d.error('The length argument to "array" must be a positive integer literal',2);z=l[2],w++}y=Ee(D,z)}else{if(!Ti[T])throw new Error(`Types doesn't contain name = ${T}`);y=Ti[T]}const K=[];for(;wl.outputDefined())}}const Cl={"to-boolean":on,"to-color":m,"to-number":Lt,"to-string":Fn};class br{constructor(l,d){this.type=l,this.args=d}static parse(l,d){if(l.length<2)return d.error("Expected at least one argument.");const y=l[0];if(!Cl[y])throw new Error(`Can't parse ${y} as it is not part of the known types`);if((y==="to-boolean"||y==="to-string")&&l.length!==2)return d.error("Expected one argument.");const w=Cl[y],T=[];for(let K=1;K4?`Invalid rbga value ${JSON.stringify(d)}: expected an array containing either three or four numeric values.`:Ht(d[0],d[1],d[2],d[3]),!y))return new Ai(d[0]/255,d[1]/255,d[2]/255,d[3])}throw new Lr(y||`Could not parse color from value '${typeof d=="string"?d:JSON.stringify(d)}'`)}case"padding":{let d;for(const y of this.args){d=y.evaluate(l);const w=Gi.parse(d);if(w)return w}throw new Lr(`Could not parse padding from value '${typeof d=="string"?d:JSON.stringify(d)}'`)}case"variableAnchorOffsetCollection":{let d;for(const y of this.args){d=y.evaluate(l);const w=ve.parse(d);if(w)return w}throw new Lr(`Could not parse variableAnchorOffsetCollection from value '${typeof d=="string"?d:JSON.stringify(d)}'`)}case"number":{let d=null;for(const y of this.args){if(d=y.evaluate(l),d===null)return 0;const w=Number(d);if(!isNaN(w))return w}throw new Lr(`Could not convert ${JSON.stringify(d)} to number.`)}case"formatted":return lo.fromString(En(this.args[0].evaluate(l)));case"resolvedImage":return Ge.fromString(En(this.args[0].evaluate(l)));default:return En(this.args[0].evaluate(l))}}eachChild(l){this.args.forEach(l)}outputDefined(){return this.args.every(l=>l.outputDefined())}}const _i=["Unknown","Point","LineString","Polygon"];class _l{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?typeof this.feature.type=="number"?_i[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(l){let d=this._parseColorCache[l];return d||(d=this._parseColorCache[l]=Ai.parse(l)),d}}class Qa{constructor(l,d,y=[],w,T=new Et,K=[]){this.registry=l,this.path=y,this.key=y.map(D=>`[${D}]`).join(""),this.scope=T,this.errors=K,this.expectedType=w,this._isConstant=d}parse(l,d,y,w,T={}){return d?this.concat(d,y,w)._parse(l,T):this._parse(l,T)}_parse(l,d){function y(w,T,K){return K==="assert"?new po(T,[w]):K==="coerce"?new br(T,[w]):w}if(l!==null&&typeof l!="string"&&typeof l!="boolean"&&typeof l!="number"||(l=["literal",l]),Array.isArray(l)){if(l.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const w=l[0];if(typeof w!="string")return this.error(`Expression name must be a string, but found ${typeof w} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const T=this.registry[w];if(T){let K=T.parse(l,this);if(!K)return null;if(this.expectedType){const D=this.expectedType,z=K.type;if(D.kind!=="string"&&D.kind!=="number"&&D.kind!=="boolean"&&D.kind!=="object"&&D.kind!=="array"||z.kind!=="value")if(D.kind!=="color"&&D.kind!=="formatted"&&D.kind!=="resolvedImage"||z.kind!=="value"&&z.kind!=="string")if(D.kind!=="padding"||z.kind!=="value"&&z.kind!=="number"&&z.kind!=="array")if(D.kind!=="variableAnchorOffsetCollection"||z.kind!=="value"&&z.kind!=="array"){if(this.checkSubtype(D,z))return null}else K=y(K,D,d.typeAnnotation||"coerce");else K=y(K,D,d.typeAnnotation||"coerce");else K=y(K,D,d.typeAnnotation||"coerce");else K=y(K,D,d.typeAnnotation||"assert")}if(!(K instanceof zr)&&K.type.kind!=="resolvedImage"&&this._isConstant(K)){const D=new _l;try{K=new zr(K.type,K.evaluate(D))}catch(z){return this.error(z.message),null}}return K}return this.error(`Unknown expression "${w}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(l===void 0?"'undefined' value invalid. Use null instead.":typeof l=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof l} instead.`)}concat(l,d,y){const w=typeof l=="number"?this.path.concat(l):this.path,T=y?this.scope.concat(y):this.scope;return new Qa(this.registry,this._isConstant,w,d||null,T,this.errors)}error(l,...d){const y=`${this.key}${d.map(w=>`[${w}]`).join("")}`;this.errors.push(new bt(y,l))}checkSubtype(l,d){const y=it(l,d);return y&&this.error(y),y}}class ys{constructor(l,d,y){this.type=Gn,this.locale=y,this.caseSensitive=l,this.diacriticSensitive=d}static parse(l,d){if(l.length!==2)return d.error("Expected one argument.");const y=l[1];if(typeof y!="object"||Array.isArray(y))return d.error("Collator options argument must be an object.");const w=d.parse(y["case-sensitive"]!==void 0&&y["case-sensitive"],1,on);if(!w)return null;const T=d.parse(y["diacritic-sensitive"]!==void 0&&y["diacritic-sensitive"],1,on);if(!T)return null;let K=null;return y.locale&&(K=d.parse(y.locale,1,Fn),!K)?null:new ys(w,T,K)}evaluate(l){return new Mi(this.caseSensitive.evaluate(l),this.diacriticSensitive.evaluate(l),this.locale?this.locale.evaluate(l):null)}eachChild(l){l(this.caseSensitive),l(this.diacriticSensitive),this.locale&&l(this.locale)}outputDefined(){return!1}}const qs=8192;function Vs(c,l){c[0]=Math.min(c[0],l[0]),c[1]=Math.min(c[1],l[1]),c[2]=Math.max(c[2],l[0]),c[3]=Math.max(c[3],l[1])}function va(c,l){return!(c[0]<=l[0]||c[2]>=l[2]||c[1]<=l[1]||c[3]>=l[3])}function $a(c,l){const d=(180+c[0])/360,y=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+c[1]*Math.PI/360)))/360,w=Math.pow(2,l.z);return[Math.round(d*w*qs),Math.round(y*w*qs)]}function ll(c,l,d){const y=c[0]-l[0],w=c[1]-l[1],T=c[0]-d[0],K=c[1]-d[1];return y*K-T*w==0&&y*T<=0&&w*K<=0}function xu(c,l){let d=!1;for(let K=0,D=l.length;K(y=c)[1]!=(T=z[Q+1])[1]>y[1]&&y[0]<(T[0]-w[0])*(y[1]-w[1])/(T[1]-w[1])+w[0]&&(d=!d)}}var y,w,T;return d}function bl(c,l){for(let d=0;d0&&D<0||K<0&&D>0}function HA(c,l,d){for(const Q of d)for(let ie=0;ied[2]){const w=.5*y;let T=c[0]-d[0]>w?-y:d[0]-c[0]>w?y:0;T===0&&(T=c[0]-d[2]>w?-y:d[2]-c[0]>w?y:0),c[0]+=T}Vs(l,c)}function bA(c,l,d,y){const w=Math.pow(2,y.z)*qs,T=[y.x*qs,y.y*qs],K=[];for(const D of c)for(const z of D){const Q=[z.x+T[0],z.y+T[1]];vs(Q,l,d,w),K.push(Q)}return K}function Zu(c,l,d,y){const w=Math.pow(2,y.z)*qs,T=[y.x*qs,y.y*qs],K=[];for(const z of c){const Q=[];for(const ie of z){const le=[ie.x+T[0],ie.y+T[1]];Vs(l,le),Q.push(le)}K.push(Q)}if(l[2]-l[0]<=w/2){(D=l)[0]=D[1]=1/0,D[2]=D[3]=-1/0;for(const z of K)for(const Q of z)vs(Q,l,d,w)}var D;return K}class Ds{constructor(l,d){this.type=on,this.geojson=l,this.geometries=d}static parse(l,d){if(l.length!==2)return d.error(`'within' expression requires exactly one argument, but found ${l.length-1} instead.`);if(mn(l[1])){const y=l[1];if(y.type==="FeatureCollection"){const w=[];for(const T of y.features){const{type:K,coordinates:D}=T.geometry;K==="Polygon"&&w.push(D),K==="MultiPolygon"&&w.push(...D)}if(w.length)return new Ds(y,{type:"MultiPolygon",coordinates:w})}else if(y.type==="Feature"){const w=y.geometry.type;if(w==="Polygon"||w==="MultiPolygon")return new Ds(y,y.geometry)}else if(y.type==="Polygon"||y.type==="MultiPolygon")return new Ds(y,y)}return d.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(l){if(l.geometry()!=null&&l.canonicalID()!=null){if(l.geometryType()==="Point")return function(d,y){const w=[1/0,1/0,-1/0,-1/0],T=[1/0,1/0,-1/0,-1/0],K=d.canonicalID();if(y.type==="Polygon"){const D=_A(y.coordinates,T,K),z=bA(d.geometry(),w,T,K);if(!va(w,T))return!1;for(const Q of z)if(!xu(Q,D))return!1}if(y.type==="MultiPolygon"){const D=Ya(y.coordinates,T,K),z=bA(d.geometry(),w,T,K);if(!va(w,T))return!1;for(const Q of z)if(!bl(Q,D))return!1}return!0}(l,this.geometries);if(l.geometryType()==="LineString")return function(d,y){const w=[1/0,1/0,-1/0,-1/0],T=[1/0,1/0,-1/0,-1/0],K=d.canonicalID();if(y.type==="Polygon"){const D=_A(y.coordinates,T,K),z=Zu(d.geometry(),w,T,K);if(!va(w,T))return!1;for(const Q of z)if(!Hu(Q,D))return!1}if(y.type==="MultiPolygon"){const D=Ya(y.coordinates,T,K),z=Zu(d.geometry(),w,T,K);if(!va(w,T))return!1;for(const Q of z)if(!ZA(Q,D))return!1}return!0}(l,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}}class Us{constructor(l,d){this.type=d.type,this.name=l,this.boundExpression=d}static parse(l,d){if(l.length!==2||typeof l[1]!="string")return d.error("'var' expression requires exactly one string literal argument.");const y=l[1];return d.scope.has(y)?new Us(y,d.scope.get(y)):d.error(`Unknown variable "${y}". Make sure "${y}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(l){return this.boundExpression.evaluate(l)}eachChild(){}outputDefined(){return!1}}class Cs{constructor(l,d,y,w){this.name=l,this.type=d,this._evaluate=y,this.args=w}evaluate(l){return this._evaluate(l,this.args)}eachChild(l){this.args.forEach(l)}outputDefined(){return!1}static parse(l,d){const y=l[0],w=Cs.definitions[y];if(!w)return d.error(`Unknown expression "${y}". If you wanted a literal array, use ["literal", [...]].`,0);const T=Array.isArray(w)?w[0]:w.type,K=Array.isArray(w)?[[w[1],w[2]]]:w.overloads,D=K.filter(([Q])=>!Array.isArray(Q)||Q.length===l.length-1);let z=null;for(const[Q,ie]of D){z=new Qa(d.registry,lu,d.path,null,d.scope);const le=[];let ge=!1;for(let Oe=1;Oe{return ge=le,Array.isArray(ge)?`(${ge.map(Te).join(", ")})`:`(${Te(ge.type)}...)`;var ge}).join(" | "),ie=[];for(let le=1;le{d=l?d&&lu(y):d&&y instanceof zr}),!!d&&wu(c)&&as(c,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function wu(c){if(c instanceof Cs&&(c.name==="get"&&c.args.length===1||c.name==="feature-state"||c.name==="has"&&c.args.length===1||c.name==="properties"||c.name==="geometry-type"||c.name==="id"||/^filter-/.test(c.name))||c instanceof Ds)return!1;let l=!0;return c.eachChild(d=>{l&&!wu(d)&&(l=!1)}),l}function uu(c){if(c instanceof Cs&&c.name==="feature-state")return!1;let l=!0;return c.eachChild(d=>{l&&!uu(d)&&(l=!1)}),l}function as(c,l){if(c instanceof Cs&&l.indexOf(c.name)>=0)return!1;let d=!0;return c.eachChild(y=>{d&&!as(y,l)&&(d=!1)}),d}function Mu(c,l){const d=c.length-1;let y,w,T=0,K=d,D=0;for(;T<=K;)if(D=Math.floor((T+K)/2),y=c[D],w=c[D+1],y<=l){if(D===d||ll))throw new Lr("Input is not a number.");K=D-1}return 0}class Au{constructor(l,d,y){this.type=l,this.input=d,this.labels=[],this.outputs=[];for(const[w,T]of y)this.labels.push(w),this.outputs.push(T)}static parse(l,d){if(l.length-1<4)return d.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if((l.length-1)%2!=0)return d.error("Expected an even number of arguments.");const y=d.parse(l[1],1,Lt);if(!y)return null;const w=[];let T=null;d.expectedType&&d.expectedType.kind!=="value"&&(T=d.expectedType);for(let K=1;K=D)return d.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',Q);const le=d.parse(z,ie,T);if(!le)return null;T=T||le.type,w.push([D,le])}return new Au(T,y,w)}evaluate(l){const d=this.labels,y=this.outputs;if(d.length===1)return y[0].evaluate(l);const w=this.input.evaluate(l);if(w<=d[0])return y[0].evaluate(l);const T=d.length;return w>=d[T-1]?y[T-1].evaluate(l):y[Mu(d,w)].evaluate(l)}eachChild(l){l(this.input);for(const d of this.outputs)l(d)}outputDefined(){return this.outputs.every(l=>l.outputDefined())}}function bo(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var mo=ee;function ee(c,l,d,y){this.cx=3*c,this.bx=3*(d-c)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*l,this.by=3*(y-l)-this.cy,this.ay=1-this.cy-this.by,this.p1x=c,this.p1y=l,this.p2x=d,this.p2y=y}ee.prototype={sampleCurveX:function(c){return((this.ax*c+this.bx)*c+this.cx)*c},sampleCurveY:function(c){return((this.ay*c+this.by)*c+this.cy)*c},sampleCurveDerivativeX:function(c){return(3*this.ax*c+2*this.bx)*c+this.cx},solveCurveX:function(c,l){if(l===void 0&&(l=1e-6),c<0)return 0;if(c>1)return 1;for(var d=c,y=0;y<8;y++){var w=this.sampleCurveX(d)-c;if(Math.abs(w)w?K=d:D=d,d=.5*(D-K)+K;return d},solve:function(c,l){return this.sampleCurveY(this.solveCurveX(c,l))}};var Ie=bo(mo);function st(c,l,d){return c+d*(l-c)}function Xt(c,l,d){return c.map((y,w)=>st(y,l[w],d))}const Sr={number:st,color:function(c,l,d,y="rgb"){switch(y){case"rgb":{const[w,T,K,D]=Xt(c.rgb,l.rgb,d);return new Ai(w,T,K,D,!1)}case"hcl":{const[w,T,K,D]=c.hcl,[z,Q,ie,le]=l.hcl;let ge,Oe;if(isNaN(w)||isNaN(z))isNaN(w)?isNaN(z)?ge=NaN:(ge=z,K!==1&&K!==0||(Oe=Q)):(ge=w,ie!==1&&ie!==0||(Oe=T));else{let St=z-w;z>w&&St>180?St-=360:z180&&(St+=360),ge=w+d*St}const[Be,ze,$e,tt]=function([St,lt,vt,tn]){return St=isNaN(St)?0:St*Tr,ui([vt,Math.cos(St)*lt,Math.sin(St)*lt,tn])}([ge,Oe??st(T,Q,d),st(K,ie,d),st(D,le,d)]);return new Ai(Be,ze,$e,tt,!1)}case"lab":{const[w,T,K,D]=ui(Xt(c.lab,l.lab,d));return new Ai(w,T,K,D,!1)}}},array:Xt,padding:function(c,l,d){return new Gi(Xt(c.values,l.values,d))},variableAnchorOffsetCollection:function(c,l,d){const y=c.values,w=l.values;if(y.length!==w.length)throw new Lr(`Cannot interpolate values of different length. from: ${c.toString()}, to: ${l.toString()}`);const T=[];for(let K=0;Ktypeof ie!="number"||ie<0||ie>1))return d.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);w={name:"cubic-bezier",controlPoints:Q}}}if(l.length-1<4)return d.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if((l.length-1)%2!=0)return d.error("Expected an even number of arguments.");if(T=d.parse(T,2,Lt),!T)return null;const D=[];let z=null;y==="interpolate-hcl"||y==="interpolate-lab"?z=m:d.expectedType&&d.expectedType.kind!=="value"&&(z=d.expectedType);for(let Q=0;Q=ie)return d.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',ge);const Be=d.parse(le,Oe,z);if(!Be)return null;z=z||Be.type,D.push([ie,Be])}return Ct(z,Lt)||Ct(z,m)||Ct(z,Ke)||Ct(z,_e)||Ct(z,Ee(Lt))?new _n(z,y,w,T,D):d.error(`Type ${Te(z)} is not interpolatable.`)}evaluate(l){const d=this.labels,y=this.outputs;if(d.length===1)return y[0].evaluate(l);const w=this.input.evaluate(l);if(w<=d[0])return y[0].evaluate(l);const T=d.length;if(w>=d[T-1])return y[T-1].evaluate(l);const K=Mu(d,w),D=_n.interpolationFactor(this.interpolation,w,d[K],d[K+1]),z=y[K].evaluate(l),Q=y[K+1].evaluate(l);switch(this.operator){case"interpolate":return Sr[this.type.kind](z,Q,D);case"interpolate-hcl":return Sr.color(z,Q,D,"hcl");case"interpolate-lab":return Sr.color(z,Q,D,"lab")}}eachChild(l){l(this.input);for(const d of this.outputs)l(d)}outputDefined(){return this.outputs.every(l=>l.outputDefined())}}function Si(c,l,d,y){const w=y-d,T=c-d;return w===0?0:l===1?T/w:(Math.pow(l,T)-1)/(Math.pow(l,w)-1)}class Ki{constructor(l,d){this.type=l,this.args=d}static parse(l,d){if(l.length<2)return d.error("Expectected at least one argument.");let y=null;const w=d.expectedType;w&&w.kind!=="value"&&(y=w);const T=[];for(const D of l.slice(1)){const z=d.parse(D,1+T.length,y,void 0,{typeAnnotation:"omit"});if(!z)return null;y=y||z.type,T.push(z)}if(!y)throw new Error("No output type");const K=w&&T.some(D=>it(w,D.type));return new Ki(K?In:y,T)}evaluate(l){let d,y=null,w=0;for(const T of this.args)if(w++,y=T.evaluate(l),y&&y instanceof Ge&&!y.available&&(d||(d=y.name),y=null,w===this.args.length&&(y=d)),y!==null)break;return y}eachChild(l){this.args.forEach(l)}outputDefined(){return this.args.every(l=>l.outputDefined())}}class qr{constructor(l,d){this.type=d.type,this.bindings=[].concat(l),this.result=d}evaluate(l){return this.result.evaluate(l)}eachChild(l){for(const d of this.bindings)l(d[1]);l(this.result)}static parse(l,d){if(l.length<4)return d.error(`Expected at least 3 arguments, but found ${l.length-1} instead.`);const y=[];for(let T=1;T=y.length)throw new Lr(`Array index out of bounds: ${d} > ${y.length-1}.`);if(d!==Math.floor(d))throw new Lr(`Array index must be an integer, but found ${d} instead.`);return y[d]}eachChild(l){l(this.index),l(this.input)}outputDefined(){return!1}}class qo{constructor(l,d){this.type=on,this.needle=l,this.haystack=d}static parse(l,d){if(l.length!==3)return d.error(`Expected 2 arguments, but found ${l.length-1} instead.`);const y=d.parse(l[1],1,In),w=d.parse(l[2],2,In);return y&&w?ht(y.type,[on,Fn,Lt,sr,In])?new qo(y,w):d.error(`Expected first argument to be of type boolean, string, number or null, but found ${Te(y.type)} instead`):null}evaluate(l){const d=this.needle.evaluate(l),y=this.haystack.evaluate(l);if(!y)return!1;if(!et(d,["boolean","string","number","null"]))throw new Lr(`Expected first argument to be of type boolean, string, number or null, but found ${Te(Ot(d))} instead.`);if(!et(y,["string","array"]))throw new Lr(`Expected second argument to be of type array or string, but found ${Te(Ot(y))} instead.`);return y.indexOf(d)>=0}eachChild(l){l(this.needle),l(this.haystack)}outputDefined(){return!0}}class Ca{constructor(l,d,y){this.type=Lt,this.needle=l,this.haystack=d,this.fromIndex=y}static parse(l,d){if(l.length<=2||l.length>=5)return d.error(`Expected 3 or 4 arguments, but found ${l.length-1} instead.`);const y=d.parse(l[1],1,In),w=d.parse(l[2],2,In);if(!y||!w)return null;if(!ht(y.type,[on,Fn,Lt,sr,In]))return d.error(`Expected first argument to be of type boolean, string, number or null, but found ${Te(y.type)} instead`);if(l.length===4){const T=d.parse(l[3],3,Lt);return T?new Ca(y,w,T):null}return new Ca(y,w)}evaluate(l){const d=this.needle.evaluate(l),y=this.haystack.evaluate(l);if(!et(d,["boolean","string","number","null"]))throw new Lr(`Expected first argument to be of type boolean, string, number or null, but found ${Te(Ot(d))} instead.`);if(!et(y,["string","array"]))throw new Lr(`Expected second argument to be of type array or string, but found ${Te(Ot(y))} instead.`);if(this.fromIndex){const w=this.fromIndex.evaluate(l);return y.indexOf(d,w)}return y.indexOf(d)}eachChild(l){l(this.needle),l(this.haystack),this.fromIndex&&l(this.fromIndex)}outputDefined(){return!1}}class Vo{constructor(l,d,y,w,T,K){this.inputType=l,this.type=d,this.input=y,this.cases=w,this.outputs=T,this.otherwise=K}static parse(l,d){if(l.length<5)return d.error(`Expected at least 4 arguments, but found only ${l.length-1}.`);if(l.length%2!=1)return d.error("Expected an even number of arguments.");let y,w;d.expectedType&&d.expectedType.kind!=="value"&&(w=d.expectedType);const T={},K=[];for(let Q=2;QNumber.MAX_SAFE_INTEGER)return ge.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Be=="number"&&Math.floor(Be)!==Be)return ge.error("Numeric branch labels must be integer values.");if(y){if(ge.checkSubtype(y,Ot(Be)))return null}else y=Ot(Be);if(T[String(Be)]!==void 0)return ge.error("Branch labels must be unique.");T[String(Be)]=K.length}const Oe=d.parse(le,Q,w);if(!Oe)return null;w=w||Oe.type,K.push(Oe)}const D=d.parse(l[1],1,In);if(!D)return null;const z=d.parse(l[l.length-1],l.length-1,w);return z?D.type.kind!=="value"&&d.concat(1).checkSubtype(y,D.type)?null:new Vo(y,w,D,T,K,z):null}evaluate(l){const d=this.input.evaluate(l);return(Ot(d)===this.inputType&&this.outputs[this.cases[d]]||this.otherwise).evaluate(l)}eachChild(l){l(this.input),this.outputs.forEach(l),l(this.otherwise)}outputDefined(){return this.outputs.every(l=>l.outputDefined())&&this.otherwise.outputDefined()}}class Li{constructor(l,d,y){this.type=l,this.branches=d,this.otherwise=y}static parse(l,d){if(l.length<4)return d.error(`Expected at least 3 arguments, but found only ${l.length-1}.`);if(l.length%2!=0)return d.error("Expected an odd number of arguments.");let y;d.expectedType&&d.expectedType.kind!=="value"&&(y=d.expectedType);const w=[];for(let K=1;Kd.outputDefined())&&this.otherwise.outputDefined()}}class Xo{constructor(l,d,y,w){this.type=l,this.input=d,this.beginIndex=y,this.endIndex=w}static parse(l,d){if(l.length<=2||l.length>=5)return d.error(`Expected 3 or 4 arguments, but found ${l.length-1} instead.`);const y=d.parse(l[1],1,In),w=d.parse(l[2],2,Lt);if(!y||!w)return null;if(!ht(y.type,[Ee(In),Fn,In]))return d.error(`Expected first argument to be of type array or string, but found ${Te(y.type)} instead`);if(l.length===4){const T=d.parse(l[3],3,Lt);return T?new Xo(y.type,y,w,T):null}return new Xo(y.type,y,w)}evaluate(l){const d=this.input.evaluate(l),y=this.beginIndex.evaluate(l);if(!et(d,["string","array"]))throw new Lr(`Expected first argument to be of type array or string, but found ${Te(Ot(d))} instead.`);if(this.endIndex){const w=this.endIndex.evaluate(l);return d.slice(y,w)}return d.slice(y)}eachChild(l){l(this.input),l(this.beginIndex),this.endIndex&&l(this.endIndex)}outputDefined(){return!1}}function Pa(c,l){return c==="=="||c==="!="?l.kind==="boolean"||l.kind==="string"||l.kind==="number"||l.kind==="null"||l.kind==="value":l.kind==="string"||l.kind==="number"||l.kind==="value"}function Rs(c,l,d,y){return y.compare(l,d)===0}function _s(c,l,d){const y=c!=="=="&&c!=="!=";return class WR{constructor(T,K,D){this.type=on,this.lhs=T,this.rhs=K,this.collator=D,this.hasUntypedArgument=T.type.kind==="value"||K.type.kind==="value"}static parse(T,K){if(T.length!==3&&T.length!==4)return K.error("Expected two or three arguments.");const D=T[0];let z=K.parse(T[1],1,In);if(!z)return null;if(!Pa(D,z.type))return K.concat(1).error(`"${D}" comparisons are not supported for type '${Te(z.type)}'.`);let Q=K.parse(T[2],2,In);if(!Q)return null;if(!Pa(D,Q.type))return K.concat(2).error(`"${D}" comparisons are not supported for type '${Te(Q.type)}'.`);if(z.type.kind!==Q.type.kind&&z.type.kind!=="value"&&Q.type.kind!=="value")return K.error(`Cannot compare types '${Te(z.type)}' and '${Te(Q.type)}'.`);y&&(z.type.kind==="value"&&Q.type.kind!=="value"?z=new po(Q.type,[z]):z.type.kind!=="value"&&Q.type.kind==="value"&&(Q=new po(z.type,[Q])));let ie=null;if(T.length===4){if(z.type.kind!=="string"&&Q.type.kind!=="string"&&z.type.kind!=="value"&&Q.type.kind!=="value")return K.error("Cannot use collator to compare non-string types.");if(ie=K.parse(T[3],3,Gn),!ie)return null}return new WR(z,Q,ie)}evaluate(T){const K=this.lhs.evaluate(T),D=this.rhs.evaluate(T);if(y&&this.hasUntypedArgument){const z=Ot(K),Q=Ot(D);if(z.kind!==Q.kind||z.kind!=="string"&&z.kind!=="number")throw new Lr(`Expected arguments for "${c}" to be (string, string) or (number, number), but found (${z.kind}, ${Q.kind}) instead.`)}if(this.collator&&!y&&this.hasUntypedArgument){const z=Ot(K),Q=Ot(D);if(z.kind!=="string"||Q.kind!=="string")return l(T,K,D)}return this.collator?d(T,K,D,this.collator.evaluate(T)):l(T,K,D)}eachChild(T){T(this.lhs),T(this.rhs),this.collator&&T(this.collator)}outputDefined(){return!0}}}const Su=_s("==",function(c,l,d){return l===d},Rs),XA=_s("!=",function(c,l,d){return l!==d},function(c,l,d,y){return!Rs(0,l,d,y)}),ss=_s("<",function(c,l,d){return l",function(c,l,d){return l>d},function(c,l,d,y){return y.compare(l,d)>0}),$l=_s("<=",function(c,l,d){return l<=d},function(c,l,d,y){return y.compare(l,d)<=0}),Bp=_s(">=",function(c,l,d){return l>=d},function(c,l,d,y){return y.compare(l,d)>=0});class Id{constructor(l,d,y,w,T){this.type=Fn,this.number=l,this.locale=d,this.currency=y,this.minFractionDigits=w,this.maxFractionDigits=T}static parse(l,d){if(l.length!==3)return d.error("Expected two arguments.");const y=d.parse(l[1],1,Lt);if(!y)return null;const w=l[2];if(typeof w!="object"||Array.isArray(w))return d.error("NumberFormat options argument must be an object.");let T=null;if(w.locale&&(T=d.parse(w.locale,1,Fn),!T))return null;let K=null;if(w.currency&&(K=d.parse(w.currency,1,Fn),!K))return null;let D=null;if(w["min-fraction-digits"]&&(D=d.parse(w["min-fraction-digits"],1,Lt),!D))return null;let z=null;return w["max-fraction-digits"]&&(z=d.parse(w["max-fraction-digits"],1,Lt),!z)?null:new Id(y,T,K,D,z)}evaluate(l){return new Intl.NumberFormat(this.locale?this.locale.evaluate(l):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(l):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(l):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(l):void 0}).format(this.number.evaluate(l))}eachChild(l){l(this.number),this.locale&&l(this.locale),this.currency&&l(this.currency),this.minFractionDigits&&l(this.minFractionDigits),this.maxFractionDigits&&l(this.maxFractionDigits)}outputDefined(){return!1}}class cu{constructor(l){this.type=Zn,this.sections=l}static parse(l,d){if(l.length<2)return d.error("Expected at least one argument.");const y=l[1];if(!Array.isArray(y)&&typeof y=="object")return d.error("First argument must be an image or text section.");const w=[];let T=!1;for(let K=1;K<=l.length-1;++K){const D=l[K];if(T&&typeof D=="object"&&!Array.isArray(D)){T=!1;let z=null;if(D["font-scale"]&&(z=d.parse(D["font-scale"],1,Lt),!z))return null;let Q=null;if(D["text-font"]&&(Q=d.parse(D["text-font"],1,Ee(Fn)),!Q))return null;let ie=null;if(D["text-color"]&&(ie=d.parse(D["text-color"],1,m),!ie))return null;const le=w[w.length-1];le.scale=z,le.font=Q,le.textColor=ie}else{const z=d.parse(l[K],1,In);if(!z)return null;const Q=z.type.kind;if(Q!=="string"&&Q!=="value"&&Q!=="null"&&Q!=="resolvedImage")return d.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");T=!0,w.push({content:z,scale:null,font:null,textColor:null})}}return new cu(w)}evaluate(l){return new lo(this.sections.map(d=>{const y=d.content.evaluate(l);return Ot(y)===fe?new rr("",y,null,null,null):new rr(En(y),null,d.scale?d.scale.evaluate(l):null,d.font?d.font.evaluate(l).join(","):null,d.textColor?d.textColor.evaluate(l):null)}))}eachChild(l){for(const d of this.sections)l(d.content),d.scale&&l(d.scale),d.font&&l(d.font),d.textColor&&l(d.textColor)}outputDefined(){return!1}}class Gc{constructor(l){this.type=fe,this.input=l}static parse(l,d){if(l.length!==2)return d.error("Expected two arguments.");const y=d.parse(l[1],1,Fn);return y?new Gc(y):d.error("No image name provided.")}evaluate(l){const d=this.input.evaluate(l),y=Ge.fromString(d);return y&&l.availableImages&&(y.available=l.availableImages.indexOf(d)>-1),y}eachChild(l){l(this.input)}outputDefined(){return!1}}class Td{constructor(l){this.type=Lt,this.input=l}static parse(l,d){if(l.length!==2)return d.error(`Expected 1 argument, but found ${l.length-1} instead.`);const y=d.parse(l[1],1);return y?y.type.kind!=="array"&&y.type.kind!=="string"&&y.type.kind!=="value"?d.error(`Expected argument of type string or array, but found ${Te(y.type)} instead.`):new Td(y):null}evaluate(l){const d=this.input.evaluate(l);if(typeof d=="string"||Array.isArray(d))return d.length;throw new Lr(`Expected value to be of type string or array, but found ${Te(Ot(d))} instead.`)}eachChild(l){l(this.input)}outputDefined(){return!1}}const Mo={"==":Su,"!=":XA,">":jm,"<":ss,">=":Bp,"<=":$l,array:po,at:Yi,boolean:po,case:Li,coalesce:Ki,collator:ys,format:cu,image:Gc,in:qo,"index-of":Ca,interpolate:_n,"interpolate-hcl":_n,"interpolate-lab":_n,length:Td,let:qr,literal:zr,match:Vo,number:po,"number-format":Id,object:po,slice:Xo,step:Au,string:po,"to-boolean":br,"to-color":br,"to-number":br,"to-string":br,var:Us,within:Ds};function Eu(c,[l,d,y,w]){l=l.evaluate(c),d=d.evaluate(c),y=y.evaluate(c);const T=w?w.evaluate(c):1,K=Ht(l,d,y,T);if(K)throw new Lr(K);return new Ai(l/255,d/255,y/255,T,!1)}function yh(c,l){return c in l}function vh(c,l){const d=l[c];return d===void 0?null:d}function Yl(c){return{type:c}}function JA(c){return{result:"success",value:c}}function Qc(c){return{result:"error",value:c}}function $c(c){return c["property-type"]==="data-driven"||c["property-type"]==="cross-faded-data-driven"}function xf(c){return!!c.expression&&c.expression.parameters.indexOf("zoom")>-1}function ql(c){return!!c.expression&&c.expression.interpolated}function Ur(c){return c instanceof Number?"number":c instanceof String?"string":c instanceof Boolean?"boolean":Array.isArray(c)?"array":c===null?"null":typeof c}function Ch(c){return typeof c=="object"&&c!==null&&!Array.isArray(c)}function wf(c){return c}function ec(c,l){const d=l.type==="color",y=c.stops&&typeof c.stops[0][0]=="object",w=y||!(y||c.property!==void 0),T=c.type||(ql(l)?"exponential":"interval");if(d||l.type==="padding"){const ie=d?Ai.parse:Gi.parse;(c=At({},c)).stops&&(c.stops=c.stops.map(le=>[le[0],ie(le[1])])),c.default=ie(c.default?c.default:l.default)}if(c.colorSpace&&(K=c.colorSpace)!=="rgb"&&K!=="hcl"&&K!=="lab")throw new Error(`Unknown color space: "${c.colorSpace}"`);var K;let D,z,Q;if(T==="exponential")D=Yc;else if(T==="interval")D=zi;else if(T==="categorical"){D=_h,z=Object.create(null);for(const ie of c.stops)z[ie[0]]=ie[1];Q=typeof c.stops[0][0]}else{if(T!=="identity")throw new Error(`Unknown function type "${T}"`);D=Lo}if(y){const ie={},le=[];for(let Be=0;BeBe[0]),evaluate:({zoom:Be},ze)=>Yc({stops:ge,base:c.base},l,Be).evaluate(Be,ze)}}if(w){const ie=T==="exponential"?{name:"exponential",base:c.base!==void 0?c.base:1}:null;return{kind:"camera",interpolationType:ie,interpolationFactor:_n.interpolationFactor.bind(void 0,ie),zoomStops:c.stops.map(le=>le[0]),evaluate:({zoom:le})=>D(c,l,le,z,Q)}}return{kind:"source",evaluate(ie,le){const ge=le&&le.properties?le.properties[c.property]:void 0;return ge===void 0?Ro(c.default,l.default):D(c,l,ge,z,Q)}}}function Ro(c,l,d){return c!==void 0?c:l!==void 0?l:d!==void 0?d:void 0}function _h(c,l,d,y,w){return Ro(typeof d===w?y[d]:void 0,c.default,l.default)}function zi(c,l,d){if(Ur(d)!=="number")return Ro(c.default,l.default);const y=c.stops.length;if(y===1||d<=c.stops[0][0])return c.stops[0][1];if(d>=c.stops[y-1][0])return c.stops[y-1][1];const w=Mu(c.stops.map(T=>T[0]),d);return c.stops[w][1]}function Yc(c,l,d){const y=c.base!==void 0?c.base:1;if(Ur(d)!=="number")return Ro(c.default,l.default);const w=c.stops.length;if(w===1||d<=c.stops[0][0])return c.stops[0][1];if(d>=c.stops[w-1][0])return c.stops[w-1][1];const T=Mu(c.stops.map(ie=>ie[0]),d),K=function(ie,le,ge,Oe){const Be=Oe-ge,ze=ie-ge;return Be===0?0:le===1?ze/Be:(Math.pow(le,ze)-1)/(Math.pow(le,Be)-1)}(d,y,c.stops[T][0],c.stops[T+1][0]),D=c.stops[T][1],z=c.stops[T+1][1],Q=Sr[l.type]||wf;return typeof D.evaluate=="function"?{evaluate(...ie){const le=D.evaluate.apply(void 0,ie),ge=z.evaluate.apply(void 0,ie);if(le!==void 0&&ge!==void 0)return Q(le,ge,K,c.colorSpace)}}:Q(D,z,K,c.colorSpace)}function Lo(c,l,d){switch(l.type){case"color":d=Ai.parse(d);break;case"formatted":d=lo.fromString(d.toString());break;case"resolvedImage":d=Ge.fromString(d.toString());break;case"padding":d=Gi.parse(d);break;default:Ur(d)===l.type||l.type==="enum"&&l.values[d]||(d=void 0)}return Ro(d,c.default,l.default)}Cs.register(Mo,{error:[{kind:"error"},[Fn],(c,[l])=>{throw new Lr(l.evaluate(c))}],typeof:[Fn,[In],(c,[l])=>Te(Ot(l.evaluate(c)))],"to-rgba":[Ee(Lt,4),[m],(c,[l])=>{const[d,y,w,T]=l.evaluate(c).rgb;return[255*d,255*y,255*w,T]}],rgb:[m,[Lt,Lt,Lt],Eu],rgba:[m,[Lt,Lt,Lt,Lt],Eu],has:{type:on,overloads:[[[Fn],(c,[l])=>yh(l.evaluate(c),c.properties())],[[Fn,un],(c,[l,d])=>yh(l.evaluate(c),d.evaluate(c))]]},get:{type:In,overloads:[[[Fn],(c,[l])=>vh(l.evaluate(c),c.properties())],[[Fn,un],(c,[l,d])=>vh(l.evaluate(c),d.evaluate(c))]]},"feature-state":[In,[Fn],(c,[l])=>vh(l.evaluate(c),c.featureState||{})],properties:[un,[],c=>c.properties()],"geometry-type":[Fn,[],c=>c.geometryType()],id:[In,[],c=>c.id()],zoom:[Lt,[],c=>c.globals.zoom],"heatmap-density":[Lt,[],c=>c.globals.heatmapDensity||0],"line-progress":[Lt,[],c=>c.globals.lineProgress||0],accumulated:[In,[],c=>c.globals.accumulated===void 0?null:c.globals.accumulated],"+":[Lt,Yl(Lt),(c,l)=>{let d=0;for(const y of l)d+=y.evaluate(c);return d}],"*":[Lt,Yl(Lt),(c,l)=>{let d=1;for(const y of l)d*=y.evaluate(c);return d}],"-":{type:Lt,overloads:[[[Lt,Lt],(c,[l,d])=>l.evaluate(c)-d.evaluate(c)],[[Lt],(c,[l])=>-l.evaluate(c)]]},"/":[Lt,[Lt,Lt],(c,[l,d])=>l.evaluate(c)/d.evaluate(c)],"%":[Lt,[Lt,Lt],(c,[l,d])=>l.evaluate(c)%d.evaluate(c)],ln2:[Lt,[],()=>Math.LN2],pi:[Lt,[],()=>Math.PI],e:[Lt,[],()=>Math.E],"^":[Lt,[Lt,Lt],(c,[l,d])=>Math.pow(l.evaluate(c),d.evaluate(c))],sqrt:[Lt,[Lt],(c,[l])=>Math.sqrt(l.evaluate(c))],log10:[Lt,[Lt],(c,[l])=>Math.log(l.evaluate(c))/Math.LN10],ln:[Lt,[Lt],(c,[l])=>Math.log(l.evaluate(c))],log2:[Lt,[Lt],(c,[l])=>Math.log(l.evaluate(c))/Math.LN2],sin:[Lt,[Lt],(c,[l])=>Math.sin(l.evaluate(c))],cos:[Lt,[Lt],(c,[l])=>Math.cos(l.evaluate(c))],tan:[Lt,[Lt],(c,[l])=>Math.tan(l.evaluate(c))],asin:[Lt,[Lt],(c,[l])=>Math.asin(l.evaluate(c))],acos:[Lt,[Lt],(c,[l])=>Math.acos(l.evaluate(c))],atan:[Lt,[Lt],(c,[l])=>Math.atan(l.evaluate(c))],min:[Lt,Yl(Lt),(c,l)=>Math.min(...l.map(d=>d.evaluate(c)))],max:[Lt,Yl(Lt),(c,l)=>Math.max(...l.map(d=>d.evaluate(c)))],abs:[Lt,[Lt],(c,[l])=>Math.abs(l.evaluate(c))],round:[Lt,[Lt],(c,[l])=>{const d=l.evaluate(c);return d<0?-Math.round(-d):Math.round(d)}],floor:[Lt,[Lt],(c,[l])=>Math.floor(l.evaluate(c))],ceil:[Lt,[Lt],(c,[l])=>Math.ceil(l.evaluate(c))],"filter-==":[on,[Fn,In],(c,[l,d])=>c.properties()[l.value]===d.value],"filter-id-==":[on,[In],(c,[l])=>c.id()===l.value],"filter-type-==":[on,[Fn],(c,[l])=>c.geometryType()===l.value],"filter-<":[on,[Fn,In],(c,[l,d])=>{const y=c.properties()[l.value],w=d.value;return typeof y==typeof w&&y{const d=c.id(),y=l.value;return typeof d==typeof y&&d":[on,[Fn,In],(c,[l,d])=>{const y=c.properties()[l.value],w=d.value;return typeof y==typeof w&&y>w}],"filter-id->":[on,[In],(c,[l])=>{const d=c.id(),y=l.value;return typeof d==typeof y&&d>y}],"filter-<=":[on,[Fn,In],(c,[l,d])=>{const y=c.properties()[l.value],w=d.value;return typeof y==typeof w&&y<=w}],"filter-id-<=":[on,[In],(c,[l])=>{const d=c.id(),y=l.value;return typeof d==typeof y&&d<=y}],"filter->=":[on,[Fn,In],(c,[l,d])=>{const y=c.properties()[l.value],w=d.value;return typeof y==typeof w&&y>=w}],"filter-id->=":[on,[In],(c,[l])=>{const d=c.id(),y=l.value;return typeof d==typeof y&&d>=y}],"filter-has":[on,[In],(c,[l])=>l.value in c.properties()],"filter-has-id":[on,[],c=>c.id()!==null&&c.id()!==void 0],"filter-type-in":[on,[Ee(Fn)],(c,[l])=>l.value.indexOf(c.geometryType())>=0],"filter-id-in":[on,[Ee(In)],(c,[l])=>l.value.indexOf(c.id())>=0],"filter-in-small":[on,[Fn,Ee(In)],(c,[l,d])=>d.value.indexOf(c.properties()[l.value])>=0],"filter-in-large":[on,[Fn,Ee(In)],(c,[l,d])=>function(y,w,T,K){for(;T<=K;){const D=T+K>>1;if(w[D]===y)return!0;w[D]>y?K=D-1:T=D+1}return!1}(c.properties()[l.value],d.value,0,d.value.length-1)],all:{type:on,overloads:[[[on,on],(c,[l,d])=>l.evaluate(c)&&d.evaluate(c)],[Yl(on),(c,l)=>{for(const d of l)if(!d.evaluate(c))return!1;return!0}]]},any:{type:on,overloads:[[[on,on],(c,[l,d])=>l.evaluate(c)||d.evaluate(c)],[Yl(on),(c,l)=>{for(const d of l)if(d.evaluate(c))return!0;return!1}]]},"!":[on,[on],(c,[l])=>!l.evaluate(c)],"is-supported-script":[on,[Fn],(c,[l])=>{const d=c.globals&&c.globals.isSupportedScript;return!d||d(l.evaluate(c))}],upcase:[Fn,[Fn],(c,[l])=>l.evaluate(c).toUpperCase()],downcase:[Fn,[Fn],(c,[l])=>l.evaluate(c).toLowerCase()],concat:[Fn,Yl(In),(c,l)=>l.map(d=>En(d.evaluate(c))).join("")],"resolved-locale":[Fn,[Gn],(c,[l])=>l.evaluate(c).resolvedLocale()]});class So{constructor(l,d){var y;this.expression=l,this._warningHistory={},this._evaluator=new _l,this._defaultValue=d?(y=d).type==="color"&&Ch(y.default)?new Ai(0,0,0,0):y.type==="color"?Ai.parse(y.default)||null:y.type==="padding"?Gi.parse(y.default)||null:y.type==="variableAnchorOffsetCollection"?ve.parse(y.default)||null:y.default===void 0?null:y.default:null,this._enumValues=d&&d.type==="enum"?d.values:null}evaluateWithoutErrorHandling(l,d,y,w,T,K){return this._evaluator.globals=l,this._evaluator.feature=d,this._evaluator.featureState=y,this._evaluator.canonical=w,this._evaluator.availableImages=T||null,this._evaluator.formattedSection=K,this.expression.evaluate(this._evaluator)}evaluate(l,d,y,w,T,K){this._evaluator.globals=l,this._evaluator.feature=d||null,this._evaluator.featureState=y||null,this._evaluator.canonical=w,this._evaluator.availableImages=T||null,this._evaluator.formattedSection=K||null;try{const D=this.expression.evaluate(this._evaluator);if(D==null||typeof D=="number"&&D!=D)return this._defaultValue;if(this._enumValues&&!(D in this._enumValues))throw new Lr(`Expected value to be one of ${Object.keys(this._enumValues).map(z=>JSON.stringify(z)).join(", ")}, but found ${JSON.stringify(D)} instead.`);return D}catch(D){return this._warningHistory[D.message]||(this._warningHistory[D.message]=!0,typeof console<"u"&&console.warn(D.message)),this._defaultValue}}}function tc(c){return Array.isArray(c)&&c.length>0&&typeof c[0]=="string"&&c[0]in Mo}function nc(c,l){const d=new Qa(Mo,lu,[],l?function(w){const T={color:m,string:Fn,number:Lt,enum:Fn,boolean:on,formatted:Zn,padding:Ke,resolvedImage:fe,variableAnchorOffsetCollection:_e};return w.type==="array"?Ee(T[w.value]||In,w.length):T[w.type]}(l):void 0),y=d.parse(c,void 0,void 0,void 0,l&&l.type==="string"?{typeAnnotation:"coerce"}:void 0);return y?JA(new So(y,l)):Qc(d.errors)}class Ls{constructor(l,d){this.kind=l,this._styleExpression=d,this.isStateDependent=l!=="constant"&&!uu(d.expression)}evaluateWithoutErrorHandling(l,d,y,w,T,K){return this._styleExpression.evaluateWithoutErrorHandling(l,d,y,w,T,K)}evaluate(l,d,y,w,T,K){return this._styleExpression.evaluate(l,d,y,w,T,K)}}class Kd{constructor(l,d,y,w){this.kind=l,this.zoomStops=y,this._styleExpression=d,this.isStateDependent=l!=="camera"&&!uu(d.expression),this.interpolationType=w}evaluateWithoutErrorHandling(l,d,y,w,T,K){return this._styleExpression.evaluateWithoutErrorHandling(l,d,y,w,T,K)}evaluate(l,d,y,w,T,K){return this._styleExpression.evaluate(l,d,y,w,T,K)}interpolationFactor(l,d,y){return this.interpolationType?_n.interpolationFactor(this.interpolationType,l,d,y):0}}function Ou(c,l){const d=nc(c,l);if(d.result==="error")return d;const y=d.value.expression,w=wu(y);if(!w&&!$c(l))return Qc([new bt("","data expressions not supported")]);const T=as(y,["zoom"]);if(!T&&!xf(l))return Qc([new bt("","zoom expressions not supported")]);const K=Xu(y);return K||T?K instanceof bt?Qc([K]):K instanceof _n&&!ql(l)?Qc([new bt("",'"interpolate" expressions cannot be used with this property')]):JA(K?new Kd(w?"camera":"composite",d.value,K.labels,K instanceof _n?K.interpolation:void 0):new Ls(w?"constant":"source",d.value)):Qc([new bt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class xl{constructor(l,d){this._parameters=l,this._specification=d,At(this,ec(this._parameters,this._specification))}static deserialize(l){return new xl(l._parameters,l._specification)}static serialize(l){return{_parameters:l._parameters,_specification:l._specification}}}function Xu(c){let l=null;if(c instanceof qr)l=Xu(c.result);else if(c instanceof Ki){for(const d of c.args)if(l=Xu(d),l)break}else(c instanceof Au||c instanceof _n)&&c.input instanceof Cs&&c.input.name==="zoom"&&(l=c);return l instanceof bt||c.eachChild(d=>{const y=Xu(d);y instanceof bt?l=y:!l&&y?l=new bt("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):l&&y&&l!==y&&(l=new bt("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),l}function qc(c){if(c===!0||c===!1)return!0;if(!Array.isArray(c)||c.length===0)return!1;switch(c[0]){case"has":return c.length>=2&&c[1]!=="$id"&&c[1]!=="$type";case"in":return c.length>=3&&(typeof c[1]!="string"||Array.isArray(c[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return c.length!==3||Array.isArray(c[1])||Array.isArray(c[2]);case"any":case"all":for(const l of c.slice(1))if(!qc(l)&&typeof l!="boolean")return!1;return!0;default:return!0}}const Mf={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function wl(c){if(c==null)return{filter:()=>!0,needGeometry:!1};qc(c)||(c=eA(c));const l=nc(c,Mf);if(l.result==="error")throw new Error(l.value.map(d=>`${d.key}: ${d.message}`).join(", "));return{filter:(d,y,w)=>l.value.evaluate(d,y,{},w),needGeometry:bh(c)}}function Ju(c,l){return cl?1:0}function bh(c){if(!Array.isArray(c))return!1;if(c[0]==="within")return!0;for(let l=1;l"||l==="<="||l===">="?xh(c[1],c[2],l):l==="any"?(d=c.slice(1),["any"].concat(d.map(eA))):l==="all"?["all"].concat(c.slice(1).map(eA)):l==="none"?["all"].concat(c.slice(1).map(eA).map(rc)):l==="in"?kp(c[1],c.slice(2)):l==="!in"?rc(kp(c[1],c.slice(2))):l==="has"?Pd(c[1]):l==="!has"?rc(Pd(c[1])):l!=="within"||c;var d}function xh(c,l,d){switch(c){case"$type":return[`filter-type-${d}`,l];case"$id":return[`filter-id-${d}`,l];default:return[`filter-${d}`,c,l]}}function kp(c,l){if(l.length===0)return!1;switch(c){case"$type":return["filter-type-in",["literal",l]];case"$id":return["filter-id-in",["literal",l]];default:return l.length>200&&!l.some(d=>typeof d!=typeof l[0])?["filter-in-large",c,["literal",l.sort(Ju)]]:["filter-in-small",c,["literal",l]]}}function Pd(c){switch(c){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",c]}}function rc(c){return["!",c]}function Hs(c){const l=typeof c;if(l==="number"||l==="boolean"||l==="string"||c==null)return JSON.stringify(c);if(Array.isArray(c)){let w="[";for(const T of c)w+=`${Hs(T)},`;return`${w}]`}const d=Object.keys(c).sort();let y="{";for(let w=0;wy.maximum?[new me(l,d,`${d} is greater than the maximum value ${y.maximum}`)]:[]}function Dd(c){const l=c.valueSpec,d=ra(c.value.type);let y,w,T,K={};const D=d!=="categorical"&&c.value.property===void 0,z=!D,Q=Ur(c.value.stops)==="array"&&Ur(c.value.stops[0])==="array"&&Ur(c.value.stops[0][0])==="object",ie=bs({key:c.key,value:c.value,valueSpec:c.styleSpec.function,validateSpec:c.validateSpec,style:c.style,styleSpec:c.styleSpec,objectElementValidators:{stops:function(Oe){if(d==="identity")return[new me(Oe.key,Oe.value,'identity function may not have a "stops" property')];let Be=[];const ze=Oe.value;return Be=Be.concat(ul({key:Oe.key,value:ze,valueSpec:Oe.valueSpec,validateSpec:Oe.validateSpec,style:Oe.style,styleSpec:Oe.styleSpec,arrayElementValidator:le})),Ur(ze)==="array"&&ze.length===0&&Be.push(new me(Oe.key,ze,"array must have at least one stop")),Be},default:function(Oe){return Oe.validateSpec({key:Oe.key,value:Oe.value,valueSpec:l,validateSpec:Oe.validateSpec,style:Oe.style,styleSpec:Oe.styleSpec})}}});return d==="identity"&&D&&ie.push(new me(c.key,c.value,'missing required property "property"')),d==="identity"||c.value.stops||ie.push(new me(c.key,c.value,'missing required property "stops"')),d==="exponential"&&c.valueSpec.expression&&!ql(c.valueSpec)&&ie.push(new me(c.key,c.value,"exponential functions not supported")),c.styleSpec.$version>=8&&(z&&!$c(c.valueSpec)?ie.push(new me(c.key,c.value,"property functions not supported")):D&&!xf(c.valueSpec)&&ie.push(new me(c.key,c.value,"zoom functions not supported"))),d!=="categorical"&&!Q||c.value.property!==void 0||ie.push(new me(c.key,c.value,'"property" property is required')),ie;function le(Oe){let Be=[];const ze=Oe.value,$e=Oe.key;if(Ur(ze)!=="array")return[new me($e,ze,`array expected, ${Ur(ze)} found`)];if(ze.length!==2)return[new me($e,ze,`array length 2 expected, length ${ze.length} found`)];if(Q){if(Ur(ze[0])!=="object")return[new me($e,ze,`object expected, ${Ur(ze[0])} found`)];if(ze[0].zoom===void 0)return[new me($e,ze,"object stop key must have zoom")];if(ze[0].value===void 0)return[new me($e,ze,"object stop key must have value")];if(T&&T>ra(ze[0].zoom))return[new me($e,ze[0].zoom,"stop zoom values must appear in ascending order")];ra(ze[0].zoom)!==T&&(T=ra(ze[0].zoom),w=void 0,K={}),Be=Be.concat(bs({key:`${$e}[0]`,value:ze[0],valueSpec:{zoom:{}},validateSpec:Oe.validateSpec,style:Oe.style,styleSpec:Oe.styleSpec,objectElementValidators:{zoom:Fd,value:ge}}))}else Be=Be.concat(ge({key:`${$e}[0]`,value:ze[0],valueSpec:{},validateSpec:Oe.validateSpec,style:Oe.style,styleSpec:Oe.styleSpec},ze));return tc(Bu(ze[1]))?Be.concat([new me(`${$e}[1]`,ze[1],"expressions are not allowed in function stops.")]):Be.concat(Oe.validateSpec({key:`${$e}[1]`,value:ze[1],valueSpec:l,validateSpec:Oe.validateSpec,style:Oe.style,styleSpec:Oe.styleSpec}))}function ge(Oe,Be){const ze=Ur(Oe.value),$e=ra(Oe.value),tt=Oe.value!==null?Oe.value:Be;if(y){if(ze!==y)return[new me(Oe.key,tt,`${ze} stop domain type must match previous stop domain type ${y}`)]}else y=ze;if(ze!=="number"&&ze!=="string"&&ze!=="boolean")return[new me(Oe.key,tt,"stop domain value must be a number, string, or boolean")];if(ze!=="number"&&d!=="categorical"){let St=`number expected, ${ze} found`;return $c(l)&&d===void 0&&(St+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new me(Oe.key,tt,St)]}return d!=="categorical"||ze!=="number"||isFinite($e)&&Math.floor($e)===$e?d!=="categorical"&&ze==="number"&&w!==void 0&&$enew me(`${c.key}${y.key}`,c.value,y.message));const d=l.value.expression||l.value._styleExpression.expression;if(c.expressionContext==="property"&&c.propertyKey==="text-font"&&!d.outputDefined())return[new me(c.key,c.value,`Invalid data expression for "${c.propertyKey}". Output values must be contained as literals within the expression.`)];if(c.expressionContext==="property"&&c.propertyType==="layout"&&!uu(d))return[new me(c.key,c.value,'"feature-state" data expressions are not supported with layout properties.')];if(c.expressionContext==="filter"&&!uu(d))return[new me(c.key,c.value,'"feature-state" data expressions are not supported with filters.')];if(c.expressionContext&&c.expressionContext.indexOf("cluster")===0){if(!as(d,["zoom","feature-state"]))return[new me(c.key,c.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(c.expressionContext==="cluster-initial"&&!wu(d))return[new me(c.key,c.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function xA(c){const l=c.key,d=c.value,y=c.valueSpec,w=[];return Array.isArray(y.values)?y.values.indexOf(ra(d))===-1&&w.push(new me(l,d,`expected one of [${y.values.join(", ")}], ${JSON.stringify(d)} found`)):Object.keys(y.values).indexOf(ra(d))===-1&&w.push(new me(l,d,`expected one of [${Object.keys(y.values).join(", ")}], ${JSON.stringify(d)} found`)),w}function Vc(c){return qc(Bu(c.value))?Sl(At({},c,{expressionContext:"filter",valueSpec:{value:"boolean"}})):Ud(c)}function Ud(c){const l=c.value,d=c.key;if(Ur(l)!=="array")return[new me(d,l,`array expected, ${Ur(l)} found`)];const y=c.styleSpec;let w,T=[];if(l.length<1)return[new me(d,l,"filter array must have at least 1 element")];switch(T=T.concat(xA({key:`${d}[0]`,value:l[0],valueSpec:y.filter_operator,style:c.style,styleSpec:c.styleSpec})),ra(l[0])){case"<":case"<=":case">":case">=":l.length>=2&&ra(l[1])==="$type"&&T.push(new me(d,l,`"$type" cannot be use with operator "${l[0]}"`));case"==":case"!=":l.length!==3&&T.push(new me(d,l,`filter array for operator "${l[0]}" must have 3 elements`));case"in":case"!in":l.length>=2&&(w=Ur(l[1]),w!=="string"&&T.push(new me(`${d}[1]`,l[1],`string expected, ${w} found`)));for(let K=2;K{Q in d&&l.push(new me(y,d[Q],`"${Q}" is prohibited for ref layers`))}),w.layers.forEach(Q=>{ra(Q.id)===D&&(z=Q)}),z?z.ref?l.push(new me(y,d.ref,"ref cannot reference another ref layer")):K=ra(z.type):l.push(new me(y,d.ref,`ref layer "${D}" not found`))}else if(K!=="background")if(d.source){const z=w.sources&&w.sources[d.source],Q=z&&ra(z.type);z?Q==="vector"&&K==="raster"?l.push(new me(y,d.source,`layer "${d.id}" requires a raster source`)):Q!=="raster-dem"&&K==="hillshade"?l.push(new me(y,d.source,`layer "${d.id}" requires a raster-dem source`)):Q==="raster"&&K!=="raster"?l.push(new me(y,d.source,`layer "${d.id}" requires a vector source`)):Q!=="vector"||d["source-layer"]?Q==="raster-dem"&&K!=="hillshade"?l.push(new me(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!d.paint||!d.paint["line-gradient"]||Q==="geojson"&&z.lineMetrics||l.push(new me(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new me(y,d,`layer "${d.id}" must specify a "source-layer"`)):l.push(new me(y,d.source,`source "${d.source}" not found`))}else l.push(new me(y,d,'missing required property "source"'));return l=l.concat(bs({key:y,value:d,valueSpec:T.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${y}.type`,value:d.type,valueSpec:T.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:d,objectKey:"type"}),filter:Vc,layout:z=>bs({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":Q=>sn(At({layerType:K},Q))}}),paint:z=>bs({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":Q=>xt(At({layerType:K},Q))}})}})),l}function or(c){const l=c.value,d=c.key,y=Ur(l);return y!=="string"?[new me(d,l,`string expected, ${y} found`)]:[]}const ri={promoteId:function({key:c,value:l}){if(Ur(l)==="string")return or({key:c,value:l});{const d=[];for(const y in l)d.push(...or({key:`${c}.${y}`,value:l[y]}));return d}}};function to(c){const l=c.value,d=c.key,y=c.styleSpec,w=c.style,T=c.validateSpec;if(!l.type)return[new me(d,l,'"type" is required')];const K=ra(l.type);let D;switch(K){case"vector":case"raster":return D=bs({key:d,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:ri,validateSpec:T}),D;case"raster-dem":return D=function(z){var Q;const ie=(Q=z.sourceName)!==null&&Q!==void 0?Q:"",le=z.value,ge=z.styleSpec,Oe=ge.source_raster_dem,Be=z.style;let ze=[];const $e=Ur(le);if(le===void 0)return ze;if($e!=="object")return ze.push(new me("source_raster_dem",le,`object expected, ${$e} found`)),ze;const tt=ra(le.encoding)==="custom",St=["redFactor","greenFactor","blueFactor","baseShift"],lt=z.value.encoding?`"${z.value.encoding}"`:"Default";for(const vt in le)!tt&&St.includes(vt)?ze.push(new me(vt,le[vt],`In "${ie}": "${vt}" is only valid when "encoding" is set to "custom". ${lt} encoding found`)):Oe[vt]?ze=ze.concat(z.validateSpec({key:vt,value:le[vt],valueSpec:Oe[vt],validateSpec:z.validateSpec,style:Be,styleSpec:ge})):ze.push(new me(vt,le[vt],`unknown property "${vt}"`));return ze}({sourceName:d,value:l,style:c.style,styleSpec:y,validateSpec:T}),D;case"geojson":if(D=bs({key:d,value:l,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:T,objectElementValidators:ri}),l.cluster)for(const z in l.clusterProperties){const[Q,ie]=l.clusterProperties[z],le=typeof Q=="string"?[Q,["accumulated"],["get",z]]:Q;D.push(...Sl({key:`${d}.${z}.map`,value:ie,validateSpec:T,expressionContext:"cluster-map"})),D.push(...Sl({key:`${d}.${z}.reduce`,value:le,validateSpec:T,expressionContext:"cluster-reduce"}))}return D;case"video":return bs({key:d,value:l,valueSpec:y.source_video,style:w,validateSpec:T,styleSpec:y});case"image":return bs({key:d,value:l,valueSpec:y.source_image,style:w,validateSpec:T,styleSpec:y});case"canvas":return[new me(d,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return xA({key:`${d}.type`,value:l.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:w,validateSpec:T,styleSpec:y})}}function ia(c){const l=c.value,d=c.styleSpec,y=d.light,w=c.style;let T=[];const K=Ur(l);if(l===void 0)return T;if(K!=="object")return T=T.concat([new me("light",l,`object expected, ${K} found`)]),T;for(const D in l){const z=D.match(/^(.*)-transition$/);T=T.concat(z&&y[z[1]]&&y[z[1]].transition?c.validateSpec({key:D,value:l[D],valueSpec:d.transition,validateSpec:c.validateSpec,style:w,styleSpec:d}):y[D]?c.validateSpec({key:D,value:l[D],valueSpec:y[D],validateSpec:c.validateSpec,style:w,styleSpec:d}):[new me(D,l[D],`unknown property "${D}"`)])}return T}function ho(c){const l=c.value,d=c.styleSpec,y=d.sky,w=c.style,T=Ur(l);if(l===void 0)return[];if(T!=="object")return[new me("sky",l,`object expected, ${T} found`)];let K=[];for(const D in l)K=K.concat(y[D]?tA({key:D,value:l[D],valueSpec:y[D],style:w,styleSpec:d}):[new me(D,l[D],`unknown property "${D}"`)]);return K}function xs(c){const l=c.value,d=c.styleSpec,y=d.terrain,w=c.style;let T=[];const K=Ur(l);if(l===void 0)return T;if(K!=="object")return T=T.concat([new me("terrain",l,`object expected, ${K} found`)]),T;for(const D in l)T=T.concat(y[D]?c.validateSpec({key:D,value:l[D],valueSpec:y[D],validateSpec:c.validateSpec,style:w,styleSpec:d}):[new me(D,l[D],`unknown property "${D}"`)]);return T}function Rd(c){let l=[];const d=c.value,y=c.key;if(Array.isArray(d)){const w=[],T=[];for(const K in d)d[K].id&&w.includes(d[K].id)&&l.push(new me(y,d,`all the sprites' ids must be unique, but ${d[K].id} is duplicated`)),w.push(d[K].id),d[K].url&&T.includes(d[K].url)&&l.push(new me(y,d,`all the sprites' URLs must be unique, but ${d[K].url} is duplicated`)),T.push(d[K].url),l=l.concat(bs({key:`${y}[${K}]`,value:d[K],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:c.validateSpec}));return l}return or({key:y,value:d})}const El={"*":()=>[],array:ul,boolean:function(c){const l=c.value,d=c.key,y=Ur(l);return y!=="boolean"?[new me(d,l,`boolean expected, ${y} found`)]:[]},number:Fd,color:function(c){const l=c.key,d=c.value,y=Ur(d);return y!=="string"?[new me(l,d,`color expected, ${y} found`)]:Ai.parse(String(d))?[]:[new me(l,d,`color expected, "${d}" found`)]},constants:wh,enum:xA,filter:Vc,function:Dd,layer:Wt,object:bs,source:to,light:ia,sky:ho,terrain:xs,string:or,formatted:function(c){return or(c).length===0?[]:Sl(c)},resolvedImage:function(c){return or(c).length===0?[]:Sl(c)},padding:function(c){const l=c.key,d=c.value;if(Ur(d)==="array"){if(d.length<1||d.length>4)return[new me(l,d,`padding requires 1 to 4 values; ${d.length} values found`)];const y={type:"number"};let w=[];for(let T=0;T[]}})),c.constants&&(d=d.concat(wh({key:"constants",value:c.constants,style:c,styleSpec:l,validateSpec:tA}))),nA(d)}function ls(c){return function(l){return c({...l,validateSpec:tA})}}function nA(c){return[].concat(c).sort((l,d)=>l.line-d.line)}function Ei(c){return function(...l){return nA(c.apply(this,l))}}Jo.source=Ei(ls(to)),Jo.sprite=Ei(ls(Rd)),Jo.glyphs=Ei(ls(wA)),Jo.light=Ei(ls(ia)),Jo.sky=Ei(ls(ho)),Jo.terrain=Ei(ls(xs)),Jo.layer=Ei(ls(Wt)),Jo.filter=Ei(ls(Vc)),Jo.paintProperty=Ei(ls(xt)),Jo.layoutProperty=Ei(ls(sn));const MA=Jo,Mh=MA.light,Al=MA.paintProperty,ic=MA.layoutProperty;function us(c,l){let d=!1;if(l&&l.length)for(const y of l)c.fire(new Pt(new Error(y.message))),d=!0;return d}class Ol{constructor(l,d,y){const w=this.cells=[];if(l instanceof ArrayBuffer){this.arrayBuffer=l;const K=new Int32Array(this.arrayBuffer);l=K[0],this.d=(d=K[1])+2*(y=K[2]);for(let z=0;z=le[Be+0]&&w>=le[Be+1])?(D[Oe]=!0,K.push(ie[Oe])):D[Oe]=!1}}}}_forEachCell(l,d,y,w,T,K,D,z){const Q=this._convertToCellCoord(l),ie=this._convertToCellCoord(d),le=this._convertToCellCoord(y),ge=this._convertToCellCoord(w);for(let Oe=Q;Oe<=le;Oe++)for(let Be=ie;Be<=ge;Be++){const ze=this.d*Be+Oe;if((!z||z(this._convertFromCellCoord(Oe),this._convertFromCellCoord(Be),this._convertFromCellCoord(Oe+1),this._convertFromCellCoord(Be+1)))&&T.call(this,l,d,y,w,ze,K,D,z))return}}_convertFromCellCoord(l){return(l-this.padding)/this.scale}_convertToCellCoord(l){return Math.max(0,Math.min(this.d-1,Math.floor(l*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;const l=this.cells,d=3+this.cells.length+1+1;let y=0;for(let K=0;K=0)continue;const K=c[T];w[T]=Fa[y].shallow.indexOf(T)>=0?K:oc(K,l)}c instanceof Error&&(w.message=c.message)}if(w.$name)throw new Error("$name property is reserved for worker serialization logic.");return y!=="Object"&&(w.$name=y),w}throw new Error("can't serialize object of type "+typeof c)}function cl(c){if(c==null||typeof c=="boolean"||typeof c=="number"||typeof c=="string"||c instanceof Boolean||c instanceof Number||c instanceof String||c instanceof Date||c instanceof RegExp||c instanceof Blob||c instanceof Error||Hc(c)||Nt(c)||ArrayBuffer.isView(c)||c instanceof ImageData)return c;if(Array.isArray(c))return c.map(cl);if(typeof c=="object"){const l=c.$name||"Object";if(!Fa[l])throw new Error(`can't deserialize unregistered class ${l}`);const{klass:d}=Fa[l];if(!d)throw new Error(`can't deserialize unregistered class ${l}`);if(d.deserialize)return d.deserialize(c);const y=Object.create(d.prototype);for(const w of Object.keys(c)){if(w==="$name")continue;const T=c[w];y[w]=Fa[l].shallow.indexOf(w)>=0?T:cl(T)}return y}throw new Error("can't deserialize object of type "+typeof c)}class ac{constructor(){this.first=!0}update(l,d){const y=Math.floor(l);return this.first?(this.first=!1,this.lastIntegerZoom=y,this.lastIntegerZoomTime=0,this.lastZoom=l,this.lastFloorZoom=y,!0):(this.lastFloorZoom>y?(this.lastIntegerZoom=y+1,this.lastIntegerZoomTime=d):this.lastFloorZoomc>=128&&c<=255,Arabic:c=>c>=1536&&c<=1791,"Arabic Supplement":c=>c>=1872&&c<=1919,"Arabic Extended-A":c=>c>=2208&&c<=2303,"Hangul Jamo":c=>c>=4352&&c<=4607,"Unified Canadian Aboriginal Syllabics":c=>c>=5120&&c<=5759,Khmer:c=>c>=6016&&c<=6143,"Unified Canadian Aboriginal Syllabics Extended":c=>c>=6320&&c<=6399,"General Punctuation":c=>c>=8192&&c<=8303,"Letterlike Symbols":c=>c>=8448&&c<=8527,"Number Forms":c=>c>=8528&&c<=8591,"Miscellaneous Technical":c=>c>=8960&&c<=9215,"Control Pictures":c=>c>=9216&&c<=9279,"Optical Character Recognition":c=>c>=9280&&c<=9311,"Enclosed Alphanumerics":c=>c>=9312&&c<=9471,"Geometric Shapes":c=>c>=9632&&c<=9727,"Miscellaneous Symbols":c=>c>=9728&&c<=9983,"Miscellaneous Symbols and Arrows":c=>c>=11008&&c<=11263,"CJK Radicals Supplement":c=>c>=11904&&c<=12031,"Kangxi Radicals":c=>c>=12032&&c<=12255,"Ideographic Description Characters":c=>c>=12272&&c<=12287,"CJK Symbols and Punctuation":c=>c>=12288&&c<=12351,Hiragana:c=>c>=12352&&c<=12447,Katakana:c=>c>=12448&&c<=12543,Bopomofo:c=>c>=12544&&c<=12591,"Hangul Compatibility Jamo":c=>c>=12592&&c<=12687,Kanbun:c=>c>=12688&&c<=12703,"Bopomofo Extended":c=>c>=12704&&c<=12735,"CJK Strokes":c=>c>=12736&&c<=12783,"Katakana Phonetic Extensions":c=>c>=12784&&c<=12799,"Enclosed CJK Letters and Months":c=>c>=12800&&c<=13055,"CJK Compatibility":c=>c>=13056&&c<=13311,"CJK Unified Ideographs Extension A":c=>c>=13312&&c<=19903,"Yijing Hexagram Symbols":c=>c>=19904&&c<=19967,"CJK Unified Ideographs":c=>c>=19968&&c<=40959,"Yi Syllables":c=>c>=40960&&c<=42127,"Yi Radicals":c=>c>=42128&&c<=42191,"Hangul Jamo Extended-A":c=>c>=43360&&c<=43391,"Hangul Syllables":c=>c>=44032&&c<=55215,"Hangul Jamo Extended-B":c=>c>=55216&&c<=55295,"Private Use Area":c=>c>=57344&&c<=63743,"CJK Compatibility Ideographs":c=>c>=63744&&c<=64255,"Arabic Presentation Forms-A":c=>c>=64336&&c<=65023,"Vertical Forms":c=>c>=65040&&c<=65055,"CJK Compatibility Forms":c=>c>=65072&&c<=65103,"Small Form Variants":c=>c>=65104&&c<=65135,"Arabic Presentation Forms-B":c=>c>=65136&&c<=65279,"Halfwidth and Fullwidth Forms":c=>c>=65280&&c<=65519};function rA(c){for(const l of c)if(Vl(l.charCodeAt(0)))return!0;return!1}function Sf(c){for(const l of c)if(!sc(l.charCodeAt(0)))return!1;return!0}function sc(c){return!(Nn.Arabic(c)||Nn["Arabic Supplement"](c)||Nn["Arabic Extended-A"](c)||Nn["Arabic Presentation Forms-A"](c)||Nn["Arabic Presentation Forms-B"](c))}function Vl(c){return!(c!==746&&c!==747&&(c<4352||!(Nn["Bopomofo Extended"](c)||Nn.Bopomofo(c)||Nn["CJK Compatibility Forms"](c)&&!(c>=65097&&c<=65103)||Nn["CJK Compatibility Ideographs"](c)||Nn["CJK Compatibility"](c)||Nn["CJK Radicals Supplement"](c)||Nn["CJK Strokes"](c)||!(!Nn["CJK Symbols and Punctuation"](c)||c>=12296&&c<=12305||c>=12308&&c<=12319||c===12336)||Nn["CJK Unified Ideographs Extension A"](c)||Nn["CJK Unified Ideographs"](c)||Nn["Enclosed CJK Letters and Months"](c)||Nn["Hangul Compatibility Jamo"](c)||Nn["Hangul Jamo Extended-A"](c)||Nn["Hangul Jamo Extended-B"](c)||Nn["Hangul Jamo"](c)||Nn["Hangul Syllables"](c)||Nn.Hiragana(c)||Nn["Ideographic Description Characters"](c)||Nn.Kanbun(c)||Nn["Kangxi Radicals"](c)||Nn["Katakana Phonetic Extensions"](c)||Nn.Katakana(c)&&c!==12540||!(!Nn["Halfwidth and Fullwidth Forms"](c)||c===65288||c===65289||c===65293||c>=65306&&c<=65310||c===65339||c===65341||c===65343||c>=65371&&c<=65503||c===65507||c>=65512&&c<=65519)||!(!Nn["Small Form Variants"](c)||c>=65112&&c<=65118||c>=65123&&c<=65126)||Nn["Unified Canadian Aboriginal Syllabics"](c)||Nn["Unified Canadian Aboriginal Syllabics Extended"](c)||Nn["Vertical Forms"](c)||Nn["Yijing Hexagram Symbols"](c)||Nn["Yi Syllables"](c)||Nn["Yi Radicals"](c))))}function lc(c){return!(Vl(c)||function(l){return!!(Nn["Latin-1 Supplement"](l)&&(l===167||l===169||l===174||l===177||l===188||l===189||l===190||l===215||l===247)||Nn["General Punctuation"](l)&&(l===8214||l===8224||l===8225||l===8240||l===8241||l===8251||l===8252||l===8258||l===8263||l===8264||l===8265||l===8273)||Nn["Letterlike Symbols"](l)||Nn["Number Forms"](l)||Nn["Miscellaneous Technical"](l)&&(l>=8960&&l<=8967||l>=8972&&l<=8991||l>=8996&&l<=9e3||l===9003||l>=9085&&l<=9114||l>=9150&&l<=9165||l===9167||l>=9169&&l<=9179||l>=9186&&l<=9215)||Nn["Control Pictures"](l)&&l!==9251||Nn["Optical Character Recognition"](l)||Nn["Enclosed Alphanumerics"](l)||Nn["Geometric Shapes"](l)||Nn["Miscellaneous Symbols"](l)&&!(l>=9754&&l<=9759)||Nn["Miscellaneous Symbols and Arrows"](l)&&(l>=11026&&l<=11055||l>=11088&&l<=11097||l>=11192&&l<=11243)||Nn["CJK Symbols and Punctuation"](l)||Nn.Katakana(l)||Nn["Private Use Area"](l)||Nn["CJK Compatibility Forms"](l)||Nn["Small Form Variants"](l)||Nn["Halfwidth and Fullwidth Forms"](l)||l===8734||l===8756||l===8757||l>=9984&&l<=10087||l>=10102&&l<=10131||l===65532||l===65533)}(c))}function Sh(c){return c>=1424&&c<=2303||Nn["Arabic Presentation Forms-A"](c)||Nn["Arabic Presentation Forms-B"](c)}function Zc(c,l){return!(!l&&Sh(c)||c>=2304&&c<=3583||c>=3840&&c<=4255||Nn.Khmer(c))}function Eh(c){for(const l of c)if(Sh(l.charCodeAt(0)))return!0;return!1}const Hl=new class{constructor(){this.applyArabicShaping=null,this.processBidirectionalText=null,this.processStyledBidirectionalText=null,this.pluginStatus="unavailable",this.pluginURL=null}setState(c){this.pluginStatus=c.pluginStatus,this.pluginURL=c.pluginURL}setMethods(c){this.applyArabicShaping=c.applyArabicShaping,this.processBidirectionalText=c.processBidirectionalText,this.processStyledBidirectionalText=c.processStyledBidirectionalText}isParsed(){return this.applyArabicShaping!=null&&this.processBidirectionalText!=null&&this.processStyledBidirectionalText!=null}getPluginURL(){return this.pluginURL}getRTLTextPluginStatus(){return this.pluginStatus}};class go{constructor(l,d){this.zoom=l,d?(this.now=d.now,this.fadeDuration=d.fadeDuration,this.zoomHistory=d.zoomHistory,this.transition=d.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new ac,this.transition={})}isSupportedScript(l){return function(d,y){for(const w of d)if(!Zc(w.charCodeAt(0),y))return!1;return!0}(l,Hl.getRTLTextPluginStatus()==="loaded")}crossFadingFactor(){return this.fadeDuration===0?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const l=this.zoom,d=l-Math.floor(l),y=this.crossFadingFactor();return l>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:d+(1-d)*y}:{fromScale:.5,toScale:1,t:1-(1-y)*d}}}class Xc{constructor(l,d){this.property=l,this.value=d,this.expression=function(y,w){if(Ch(y))return new xl(y,w);if(tc(y)){const T=Ou(y,w);if(T.result==="error")throw new Error(T.value.map(K=>`${K.key}: ${K.message}`).join(", "));return T.value}{let T=y;return w.type==="color"&&typeof y=="string"?T=Ai.parse(y):w.type!=="padding"||typeof y!="number"&&!Array.isArray(y)?w.type==="variableAnchorOffsetCollection"&&Array.isArray(y)&&(T=ve.parse(y)):T=Gi.parse(y),{kind:"constant",evaluate:()=>T}}}(d===void 0?l.specification.default:d,l.specification)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(l,d,y){return this.property.possiblyEvaluate(this,l,d,y)}}class Ef{constructor(l){this.property=l,this.value=new Xc(l,void 0)}transitioned(l,d){return new Oh(this.property,this.value,d,ye({},l.transition,this.transition),l.now)}untransitioned(){return new Oh(this.property,this.value,null,{},0)}}class Of{constructor(l){this._properties=l,this._values=Object.create(l.defaultTransitionablePropertyValues)}getValue(l){return ct(this._values[l].value.value)}setValue(l,d){Object.prototype.hasOwnProperty.call(this._values,l)||(this._values[l]=new Ef(this._values[l].property)),this._values[l].value=new Xc(this._values[l].property,d===null?void 0:ct(d))}getTransition(l){return ct(this._values[l].transition)}setTransition(l,d){Object.prototype.hasOwnProperty.call(this._values,l)||(this._values[l]=new Ef(this._values[l].property)),this._values[l].transition=ct(d)||void 0}serialize(){const l={};for(const d of Object.keys(this._values)){const y=this.getValue(d);y!==void 0&&(l[d]=y);const w=this.getTransition(d);w!==void 0&&(l[`${d}-transition`]=w)}return l}transitioned(l,d){const y=new Bh(this._properties);for(const w of Object.keys(this._values))y._values[w]=this._values[w].transitioned(l,d._values[w]);return y}untransitioned(){const l=new Bh(this._properties);for(const d of Object.keys(this._values))l._values[d]=this._values[d].untransitioned();return l}}class Oh{constructor(l,d,y,w,T){this.property=l,this.value=d,this.begin=T+w.delay||0,this.end=this.begin+w.duration||0,l.specification.transition&&(w.delay||w.duration)&&(this.prior=y)}possiblyEvaluate(l,d,y){const w=l.now||0,T=this.value.possiblyEvaluate(l,d,y),K=this.prior;if(K){if(w>this.end)return this.prior=null,T;if(this.value.isDataDriven())return this.prior=null,T;if(w=1)return 1;const Q=z*z,ie=Q*z;return 4*(z<.5?ie:3*(z-Q)+ie-.75)}(D))}}return T}}class Bh{constructor(l){this._properties=l,this._values=Object.create(l.defaultTransitioningPropertyValues)}possiblyEvaluate(l,d,y){const w=new uc(this._properties);for(const T of Object.keys(this._values))w._values[T]=this._values[T].possiblyEvaluate(l,d,y);return w}hasTransition(){for(const l of Object.keys(this._values))if(this._values[l].prior)return!0;return!1}}class oa{constructor(l){this._properties=l,this._values=Object.create(l.defaultPropertyValues)}hasValue(l){return this._values[l].value!==void 0}getValue(l){return ct(this._values[l].value)}setValue(l,d){this._values[l]=new Xc(this._values[l].property,d===null?void 0:ct(d))}serialize(){const l={};for(const d of Object.keys(this._values)){const y=this.getValue(d);y!==void 0&&(l[d]=y)}return l}possiblyEvaluate(l,d,y){const w=new uc(this._properties);for(const T of Object.keys(this._values))w._values[T]=this._values[T].possiblyEvaluate(l,d,y);return w}}class Eo{constructor(l,d,y){this.property=l,this.value=d,this.parameters=y}isConstant(){return this.value.kind==="constant"}constantOr(l){return this.value.kind==="constant"?this.value.value:l}evaluate(l,d,y,w){return this.property.evaluate(this.value,this.parameters,l,d,y,w)}}class uc{constructor(l){this._properties=l,this._values=Object.create(l.defaultPossiblyEvaluatedValues)}get(l){return this._values[l]}}class gr{constructor(l){this.specification=l}possiblyEvaluate(l,d){if(l.isDataDriven())throw new Error("Value should not be data driven");return l.expression.evaluate(d)}interpolate(l,d,y){const w=Sr[this.specification.type];return w?w(l,d,y):l}}class Or{constructor(l,d){this.specification=l,this.overrides=d}possiblyEvaluate(l,d,y,w){return new Eo(this,l.expression.kind==="constant"||l.expression.kind==="camera"?{kind:"constant",value:l.expression.evaluate(d,null,{},y,w)}:l.expression,d)}interpolate(l,d,y){if(l.value.kind!=="constant"||d.value.kind!=="constant")return l;if(l.value.value===void 0||d.value.value===void 0)return new Eo(this,{kind:"constant",value:void 0},l.parameters);const w=Sr[this.specification.type];if(w){const T=w(l.value.value,d.value.value,y);return new Eo(this,{kind:"constant",value:T},l.parameters)}return l}evaluate(l,d,y,w,T,K){return l.kind==="constant"?l.value:l.evaluate(d,y,w,T,K)}}class SA extends Or{possiblyEvaluate(l,d,y,w){if(l.value===void 0)return new Eo(this,{kind:"constant",value:void 0},d);if(l.expression.kind==="constant"){const T=l.expression.evaluate(d,null,{},y,w),K=l.property.specification.type==="resolvedImage"&&typeof T!="string"?T.name:T,D=this._calculate(K,K,K,d);return new Eo(this,{kind:"constant",value:D},d)}if(l.expression.kind==="camera"){const T=this._calculate(l.expression.evaluate({zoom:d.zoom-1}),l.expression.evaluate({zoom:d.zoom}),l.expression.evaluate({zoom:d.zoom+1}),d);return new Eo(this,{kind:"constant",value:T},d)}return new Eo(this,l.expression,d)}evaluate(l,d,y,w,T,K){if(l.kind==="source"){const D=l.evaluate(d,y,w,T,K);return this._calculate(D,D,D,d)}return l.kind==="composite"?this._calculate(l.evaluate({zoom:Math.floor(d.zoom)-1},y,w),l.evaluate({zoom:Math.floor(d.zoom)},y,w),l.evaluate({zoom:Math.floor(d.zoom)+1},y,w),d):l.value}_calculate(l,d,y,w){return w.zoom>w.zoomHistory.lastIntegerZoom?{from:l,to:d}:{from:y,to:d}}interpolate(l){return l}}class Jc{constructor(l){this.specification=l}possiblyEvaluate(l,d,y,w){if(l.value!==void 0){if(l.expression.kind==="constant"){const T=l.expression.evaluate(d,null,{},y,w);return this._calculate(T,T,T,d)}return this._calculate(l.expression.evaluate(new go(Math.floor(d.zoom-1),d)),l.expression.evaluate(new go(Math.floor(d.zoom),d)),l.expression.evaluate(new go(Math.floor(d.zoom+1),d)),d)}}_calculate(l,d,y,w){return w.zoom>w.zoomHistory.lastIntegerZoom?{from:l,to:d}:{from:y,to:d}}interpolate(l){return l}}class dl{constructor(l){this.specification=l}possiblyEvaluate(l,d,y,w){return!!l.expression.evaluate(d,null,{},y,w)}interpolate(){return!1}}class xa{constructor(l){this.properties=l,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const d in l){const y=l[d];y.specification.overridable&&this.overridableProperties.push(d);const w=this.defaultPropertyValues[d]=new Xc(y,void 0),T=this.defaultTransitionablePropertyValues[d]=new Ef(y);this.defaultTransitioningPropertyValues[d]=T.untransitioned(),this.defaultPossiblyEvaluatedValues[d]=w.possiblyEvaluate({})}}}jn("DataDrivenProperty",Or),jn("DataConstantProperty",gr),jn("CrossFadedDataDrivenProperty",SA),jn("CrossFadedProperty",Jc),jn("ColorRampProperty",dl);const Bl="-transition";class As extends zn{constructor(l,d){if(super(),this.id=l.id,this.type=l.type,this._featureFilter={filter:()=>!0,needGeometry:!1},l.type!=="custom"&&(this.metadata=l.metadata,this.minzoom=l.minzoom,this.maxzoom=l.maxzoom,l.type!=="background"&&(this.source=l.source,this.sourceLayer=l["source-layer"],this.filter=l.filter),d.layout&&(this._unevaluatedLayout=new oa(d.layout)),d.paint)){this._transitionablePaint=new Of(d.paint);for(const y in l.paint)this.setPaintProperty(y,l.paint[y],{validate:!1});for(const y in l.layout)this.setLayoutProperty(y,l.layout[y],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new uc(d.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(l){return l==="visibility"?this.visibility:this._unevaluatedLayout.getValue(l)}setLayoutProperty(l,d,y={}){d!=null&&this._validate(ic,`layers.${this.id}.layout.${l}`,l,d,y)||(l!=="visibility"?this._unevaluatedLayout.setValue(l,d):this.visibility=d)}getPaintProperty(l){return l.endsWith(Bl)?this._transitionablePaint.getTransition(l.slice(0,-11)):this._transitionablePaint.getValue(l)}setPaintProperty(l,d,y={}){if(d!=null&&this._validate(Al,`layers.${this.id}.paint.${l}`,l,d,y))return!1;if(l.endsWith(Bl))return this._transitionablePaint.setTransition(l.slice(0,-11),d||void 0),!1;{const w=this._transitionablePaint._values[l],T=w.property.specification["property-type"]==="cross-faded-data-driven",K=w.value.isDataDriven(),D=w.value;this._transitionablePaint.setValue(l,d),this._handleSpecialPaintPropertyUpdate(l);const z=this._transitionablePaint._values[l].value;return z.isDataDriven()||K||T||this._handleOverridablePaintPropertyUpdate(l,D,z)}}_handleSpecialPaintPropertyUpdate(l){}_handleOverridablePaintPropertyUpdate(l,d,y){return!1}isHidden(l){return!!(this.minzoom&&l=this.maxzoom)||this.visibility==="none"}updateTransitions(l){this._transitioningPaint=this._transitionablePaint.transitioned(l,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(l,d){l.getCrossfadeParameters&&(this._crossfadeParameters=l.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(l,void 0,d)),this.paint=this._transitioningPaint.possiblyEvaluate(l,void 0,d)}serialize(){const l={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&&(l.layout=l.layout||{},l.layout.visibility=this.visibility),rt(l,(d,y)=>!(d===void 0||y==="layout"&&!Object.keys(d).length||y==="paint"&&!Object.keys(d).length))}_validate(l,d,y,w,T={}){return(!T||T.validate!==!1)&&us(this,l.call(MA,{key:d,layerType:this.type,objectKey:y,value:w,styleSpec:mt,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const l in this.paint._values){const d=this.paint.get(l);if(d instanceof Eo&&$c(d.property.specification)&&(d.value.kind==="source"||d.value.kind==="composite")&&d.value.isStateDependent)return!0}return!1}}const Iu={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class iA{constructor(l,d){this._structArray=l,this._pos1=d*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class Oo{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(l,d){return l._trim(),d&&(l.isTransferred=!0,d.push(l.arrayBuffer)),{length:l.length,arrayBuffer:l.arrayBuffer}}static deserialize(l){const d=Object.create(this.prototype);return d.arrayBuffer=l.arrayBuffer,d.length=l.length,d.capacity=l.arrayBuffer.byteLength/d.bytesPerElement,d._refreshViews(),d}_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(l){this.reserve(l),this.length=l}reserve(l){if(l>this.capacity){this.capacity=Math.max(l,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const d=this.uint8;this._refreshViews(),d&&this.uint8.set(d)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function zo(c,l=1){let d=0,y=0;return{members:c.map(w=>{const T=Iu[w.type].BYTES_PER_ELEMENT,K=d=Ip(d,Math.max(l,T)),D=w.components||1;return y=Math.max(y,T),d+=T*D,{name:w.name,type:w.type,components:D,offset:K}}),size:Ip(d,Math.max(y,l)),alignment:l}}function Ip(c,l){return Math.ceil(c/l)*l}class du extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d){const y=this.length;return this.resize(y+1),this.emplace(y,l,d)}emplace(l,d,y){const w=2*l;return this.int16[w+0]=d,this.int16[w+1]=y,l}}du.prototype.bytesPerElement=4,jn("StructArrayLayout2i4",du);class Tu extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y){const w=this.length;return this.resize(w+1),this.emplace(w,l,d,y)}emplace(l,d,y,w){const T=3*l;return this.int16[T+0]=d,this.int16[T+1]=y,this.int16[T+2]=w,l}}Tu.prototype.bytesPerElement=6,jn("StructArrayLayout3i6",Tu);class Bf extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y,w){const T=this.length;return this.resize(T+1),this.emplace(T,l,d,y,w)}emplace(l,d,y,w,T){const K=4*l;return this.int16[K+0]=d,this.int16[K+1]=y,this.int16[K+2]=w,this.int16[K+3]=T,l}}Bf.prototype.bytesPerElement=8,jn("StructArrayLayout4i8",Bf);class Ac extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T,K){const D=this.length;return this.resize(D+1),this.emplace(D,l,d,y,w,T,K)}emplace(l,d,y,w,T,K,D){const z=6*l;return this.int16[z+0]=d,this.int16[z+1]=y,this.int16[z+2]=w,this.int16[z+3]=T,this.int16[z+4]=K,this.int16[z+5]=D,l}}Ac.prototype.bytesPerElement=12,jn("StructArrayLayout2i4i12",Ac);class cc extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T,K){const D=this.length;return this.resize(D+1),this.emplace(D,l,d,y,w,T,K)}emplace(l,d,y,w,T,K,D){const z=4*l,Q=8*l;return this.int16[z+0]=d,this.int16[z+1]=y,this.uint8[Q+4]=w,this.uint8[Q+5]=T,this.uint8[Q+6]=K,this.uint8[Q+7]=D,l}}cc.prototype.bytesPerElement=8,jn("StructArrayLayout2i4ub8",cc);class ed extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,d){const y=this.length;return this.resize(y+1),this.emplace(y,l,d)}emplace(l,d,y){const w=2*l;return this.float32[w+0]=d,this.float32[w+1]=y,l}}ed.prototype.bytesPerElement=8,jn("StructArrayLayout2f8",ed);class ke extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T,K,D,z,Q,ie){const le=this.length;return this.resize(le+1),this.emplace(le,l,d,y,w,T,K,D,z,Q,ie)}emplace(l,d,y,w,T,K,D,z,Q,ie,le){const ge=10*l;return this.uint16[ge+0]=d,this.uint16[ge+1]=y,this.uint16[ge+2]=w,this.uint16[ge+3]=T,this.uint16[ge+4]=K,this.uint16[ge+5]=D,this.uint16[ge+6]=z,this.uint16[ge+7]=Q,this.uint16[ge+8]=ie,this.uint16[ge+9]=le,l}}ke.prototype.bytesPerElement=20,jn("StructArrayLayout10ui20",ke);class oA extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T,K,D,z,Q,ie,le,ge){const Oe=this.length;return this.resize(Oe+1),this.emplace(Oe,l,d,y,w,T,K,D,z,Q,ie,le,ge)}emplace(l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe){const Be=12*l;return this.int16[Be+0]=d,this.int16[Be+1]=y,this.int16[Be+2]=w,this.int16[Be+3]=T,this.uint16[Be+4]=K,this.uint16[Be+5]=D,this.uint16[Be+6]=z,this.uint16[Be+7]=Q,this.int16[Be+8]=ie,this.int16[Be+9]=le,this.int16[Be+10]=ge,this.int16[Be+11]=Oe,l}}oA.prototype.bytesPerElement=24,jn("StructArrayLayout4i4ui4i24",oA);class wa extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,d,y){const w=this.length;return this.resize(w+1),this.emplace(w,l,d,y)}emplace(l,d,y,w){const T=3*l;return this.float32[T+0]=d,this.float32[T+1]=y,this.float32[T+2]=w,l}}wa.prototype.bytesPerElement=12,jn("StructArrayLayout3f12",wa);class uo extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(l){const d=this.length;return this.resize(d+1),this.emplace(d,l)}emplace(l,d){return this.uint32[1*l+0]=d,l}}uo.prototype.bytesPerElement=4,jn("StructArrayLayout1ul4",uo);class jr extends Oo{_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(l,d,y,w,T,K,D,z,Q){const ie=this.length;return this.resize(ie+1),this.emplace(ie,l,d,y,w,T,K,D,z,Q)}emplace(l,d,y,w,T,K,D,z,Q,ie){const le=10*l,ge=5*l;return this.int16[le+0]=d,this.int16[le+1]=y,this.int16[le+2]=w,this.int16[le+3]=T,this.int16[le+4]=K,this.int16[le+5]=D,this.uint32[ge+3]=z,this.uint16[le+8]=Q,this.uint16[le+9]=ie,l}}jr.prototype.bytesPerElement=20,jn("StructArrayLayout6i1ul2ui20",jr);class Ma extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T,K){const D=this.length;return this.resize(D+1),this.emplace(D,l,d,y,w,T,K)}emplace(l,d,y,w,T,K,D){const z=6*l;return this.int16[z+0]=d,this.int16[z+1]=y,this.int16[z+2]=w,this.int16[z+3]=T,this.int16[z+4]=K,this.int16[z+5]=D,l}}Ma.prototype.bytesPerElement=12,jn("StructArrayLayout2i2i2i12",Ma);class Ku extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(l,d,y,w,T){const K=this.length;return this.resize(K+1),this.emplace(K,l,d,y,w,T)}emplace(l,d,y,w,T,K){const D=4*l,z=8*l;return this.float32[D+0]=d,this.float32[D+1]=y,this.float32[D+2]=w,this.int16[z+6]=T,this.int16[z+7]=K,l}}Ku.prototype.bytesPerElement=16,jn("StructArrayLayout2f1f2i16",Ku);class dc extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,d,y,w){const T=this.length;return this.resize(T+1),this.emplace(T,l,d,y,w)}emplace(l,d,y,w,T){const K=12*l,D=3*l;return this.uint8[K+0]=d,this.uint8[K+1]=y,this.float32[D+1]=w,this.float32[D+2]=T,l}}dc.prototype.bytesPerElement=12,jn("StructArrayLayout2ub2f12",dc);class kl extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,d,y){const w=this.length;return this.resize(w+1),this.emplace(w,l,d,y)}emplace(l,d,y,w){const T=3*l;return this.uint16[T+0]=d,this.uint16[T+1]=y,this.uint16[T+2]=w,l}}kl.prototype.bytesPerElement=6,jn("StructArrayLayout3ui6",kl);class kh extends Oo{_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(l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt){const St=this.length;return this.resize(St+1),this.emplace(St,l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt)}emplace(l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt,St){const lt=24*l,vt=12*l,tn=48*l;return this.int16[lt+0]=d,this.int16[lt+1]=y,this.uint16[lt+2]=w,this.uint16[lt+3]=T,this.uint32[vt+2]=K,this.uint32[vt+3]=D,this.uint32[vt+4]=z,this.uint16[lt+10]=Q,this.uint16[lt+11]=ie,this.uint16[lt+12]=le,this.float32[vt+7]=ge,this.float32[vt+8]=Oe,this.uint8[tn+36]=Be,this.uint8[tn+37]=ze,this.uint8[tn+38]=$e,this.uint32[vt+10]=tt,this.int16[lt+22]=St,l}}kh.prototype.bytesPerElement=48,jn("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",kh);class hc extends Oo{_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(l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt,St,lt,vt,tn,an,Vn,cr,xn,Cn,Kn,ur){const Dn=this.length;return this.resize(Dn+1),this.emplace(Dn,l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt,St,lt,vt,tn,an,Vn,cr,xn,Cn,Kn,ur)}emplace(l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze,$e,tt,St,lt,vt,tn,an,Vn,cr,xn,Cn,Kn,ur,Dn){const wn=32*l,Kr=16*l;return this.int16[wn+0]=d,this.int16[wn+1]=y,this.int16[wn+2]=w,this.int16[wn+3]=T,this.int16[wn+4]=K,this.int16[wn+5]=D,this.int16[wn+6]=z,this.int16[wn+7]=Q,this.uint16[wn+8]=ie,this.uint16[wn+9]=le,this.uint16[wn+10]=ge,this.uint16[wn+11]=Oe,this.uint16[wn+12]=Be,this.uint16[wn+13]=ze,this.uint16[wn+14]=$e,this.uint16[wn+15]=tt,this.uint16[wn+16]=St,this.uint16[wn+17]=lt,this.uint16[wn+18]=vt,this.uint16[wn+19]=tn,this.uint16[wn+20]=an,this.uint16[wn+21]=Vn,this.uint16[wn+22]=cr,this.uint32[Kr+12]=xn,this.float32[Kr+13]=Cn,this.float32[Kr+14]=Kn,this.uint16[wn+30]=ur,this.uint16[wn+31]=Dn,l}}hc.prototype.bytesPerElement=64,jn("StructArrayLayout8i15ui1ul2f2ui64",hc);class Ih extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l){const d=this.length;return this.resize(d+1),this.emplace(d,l)}emplace(l,d){return this.float32[1*l+0]=d,l}}Ih.prototype.bytesPerElement=4,jn("StructArrayLayout1f4",Ih);class Ld extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,d,y){const w=this.length;return this.resize(w+1),this.emplace(w,l,d,y)}emplace(l,d,y,w){const T=3*l;return this.uint16[6*l+0]=d,this.float32[T+1]=y,this.float32[T+2]=w,l}}Ld.prototype.bytesPerElement=12,jn("StructArrayLayout1ui2f12",Ld);class zd extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,d,y){const w=this.length;return this.resize(w+1),this.emplace(w,l,d,y)}emplace(l,d,y,w){const T=4*l;return this.uint32[2*l+0]=d,this.uint16[T+2]=y,this.uint16[T+3]=w,l}}zd.prototype.bytesPerElement=8,jn("StructArrayLayout1ul2ui8",zd);class Il extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l,d){const y=this.length;return this.resize(y+1),this.emplace(y,l,d)}emplace(l,d,y){const w=2*l;return this.uint16[w+0]=d,this.uint16[w+1]=y,l}}Il.prototype.bytesPerElement=4,jn("StructArrayLayout2ui4",Il);class kf extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(l){const d=this.length;return this.resize(d+1),this.emplace(d,l)}emplace(l,d){return this.uint16[1*l+0]=d,l}}kf.prototype.bytesPerElement=2,jn("StructArrayLayout1ui2",kf);class Pi extends Oo{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(l,d,y,w){const T=this.length;return this.resize(T+1),this.emplace(T,l,d,y,w)}emplace(l,d,y,w,T){const K=4*l;return this.float32[K+0]=d,this.float32[K+1]=y,this.float32[K+2]=w,this.float32[K+3]=T,l}}Pi.prototype.bytesPerElement=16,jn("StructArrayLayout4f16",Pi);class O extends iA{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 B(this.anchorPointX,this.anchorPointY)}}O.prototype.size=20;class u extends jr{get(l){return new O(this,l)}}jn("CollisionBoxArray",u);class p extends iA{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(l){this._structArray.uint8[this._pos1+37]=l}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(l){this._structArray.uint8[this._pos1+38]=l}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(l){this._structArray.uint32[this._pos4+10]=l}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}p.prototype.size=48;class C extends kh{get(l){return new p(this,l)}}jn("PlacedSymbolArray",C);class M extends iA{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(l){this._structArray.uint32[this._pos4+12]=l}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]}}M.prototype.size=64;class I extends hc{get(l){return new M(this,l)}}jn("SymbolInstanceArray",I);class L extends Ih{getoffsetX(l){return this.float32[1*l+0]}}jn("GlyphOffsetArray",L);class j extends Tu{getx(l){return this.int16[3*l+0]}gety(l){return this.int16[3*l+1]}gettileUnitDistanceFromAnchor(l){return this.int16[3*l+2]}}jn("SymbolLineVertexArray",j);class G extends iA{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]}}G.prototype.size=12;class te extends Ld{get(l){return new G(this,l)}}jn("TextAnchorOffsetArray",te);class Ae extends iA{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]}}Ae.prototype.size=8;class he extends zd{get(l){return new Ae(this,l)}}jn("FeatureIndexArray",he);class Me extends du{}class De extends du{}class je extends du{}class Qe extends Ac{}class Le extends cc{}class ft extends ed{}class Bt extends ke{}class qe extends oA{}class _t extends wa{}class Ut extends uo{}class Tt extends Ma{}class en extends dc{}class hn extends kl{}class An extends Il{}const On=zo([{name:"a_pos",components:2,type:"Int16"}],4),{members:lr}=On;class xr{constructor(l=[]){this.segments=l}prepareSegment(l,d,y,w){let T=this.segments[this.segments.length-1];return l>xr.MAX_VERTEX_ARRAY_LENGTH&&He(`Max vertices per segment is ${xr.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${l}`),(!T||T.vertexLength+l>xr.MAX_VERTEX_ARRAY_LENGTH||T.sortKey!==w)&&(T={vertexOffset:d.length,primitiveOffset:y.length,vertexLength:0,primitiveLength:0},w!==void 0&&(T.sortKey=w),this.segments.push(T)),T}get(){return this.segments}destroy(){for(const l of this.segments)for(const d in l.vaos)l.vaos[d].destroy()}static simpleSegment(l,d,y,w){return new xr([{vertexOffset:l,primitiveOffset:d,vertexLength:y,primitiveLength:w,vaos:{},sortKey:0}])}}function Tn(c,l){return 256*(c=ae(Math.floor(c),0,255))+ae(Math.floor(l),0,255)}xr.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,jn("SegmentVector",xr);const yr=zo([{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 Qn={exports:{}},Ho={exports:{}};Ho.exports=function(c,l){var d,y,w,T,K,D,z,Q;for(y=c.length-(d=3&c.length),w=l,K=3432918353,D=461845907,Q=0;Q>>16)*K&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295)<<13|w>>>19))+((5*(w>>>16)&65535)<<16)&4294967295))+((58964+(T>>>16)&65535)<<16);switch(z=0,d){case 3:z^=(255&c.charCodeAt(Q+2))<<16;case 2:z^=(255&c.charCodeAt(Q+1))<<8;case 1:w^=z=(65535&(z=(z=(65535&(z^=255&c.charCodeAt(Q)))*K+(((z>>>16)*K&65535)<<16)&4294967295)<<15|z>>>17))*D+(((z>>>16)*D&65535)<<16)&4294967295}return w^=c.length,w=2246822507*(65535&(w^=w>>>16))+((2246822507*(w>>>16)&65535)<<16)&4294967295,w=3266489909*(65535&(w^=w>>>13))+((3266489909*(w>>>16)&65535)<<16)&4294967295,(w^=w>>>16)>>>0};var pi=Ho.exports,ii={exports:{}};ii.exports=function(c,l){for(var d,y=c.length,w=l^y,T=0;y>=4;)d=1540483477*(65535&(d=255&c.charCodeAt(T)|(255&c.charCodeAt(++T))<<8|(255&c.charCodeAt(++T))<<16|(255&c.charCodeAt(++T))<<24))+((1540483477*(d>>>16)&65535)<<16),w=1540483477*(65535&w)+((1540483477*(w>>>16)&65535)<<16)^(d=1540483477*(65535&(d^=d>>>24))+((1540483477*(d>>>16)&65535)<<16)),y-=4,++T;switch(y){case 3:w^=(255&c.charCodeAt(T+2))<<16;case 2:w^=(255&c.charCodeAt(T+1))<<8;case 1:w=1540483477*(65535&(w^=255&c.charCodeAt(T)))+((1540483477*(w>>>16)&65535)<<16)}return w=1540483477*(65535&(w^=w>>>13))+((1540483477*(w>>>16)&65535)<<16),(w^=w>>>15)>>>0};var si=pi,yo=ii.exports;Qn.exports=si,Qn.exports.murmur3=si,Qn.exports.murmur2=yo;var vo=g(Qn.exports);class Zs{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(l,d,y,w){this.ids.push(Sa(l)),this.positions.push(d,y,w)}getPositions(l){if(!this.indexed)throw new Error("Trying to get index, but feature positions are not indexed");const d=Sa(l);let y=0,w=this.ids.length-1;for(;y>1;this.ids[K]>=d?w=K:y=K+1}const T=[];for(;this.ids[y]===d;)T.push({index:this.positions[3*y],start:this.positions[3*y+1],end:this.positions[3*y+2]}),y++;return T}static serialize(l,d){const y=new Float64Array(l.ids),w=new Uint32Array(l.positions);return aa(y,w,0,y.length-1),d&&d.push(y.buffer,w.buffer),{ids:y,positions:w}}static deserialize(l){const d=new Zs;return d.ids=l.ids,d.positions=l.positions,d.indexed=!0,d}}function Sa(c){const l=+c;return!isNaN(l)&&l<=Number.MAX_SAFE_INTEGER?l:vo(String(c))}function aa(c,l,d,y){for(;d>1];let T=d-1,K=y+1;for(;;){do T++;while(c[T]w);if(T>=K)break;_a(c,T,K),_a(l,3*T,3*K),_a(l,3*T+1,3*K+1),_a(l,3*T+2,3*K+2)}K-d`u_${w}`),this.type=y}setUniform(l,d,y){l.set(y.constantOr(this.value))}getBinding(l,d,y){return this.type==="color"?new Ms(l,d):new ws(l,d)}}class ji{constructor(l,d){this.uniformNames=d.map(y=>`u_${y}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(l,d){this.pixelRatioFrom=d.pixelRatio,this.pixelRatioTo=l.pixelRatio,this.patternFrom=d.tlbr,this.patternTo=l.tlbr}setUniform(l,d,y,w){const T=w==="u_pattern_to"?this.patternTo:w==="u_pattern_from"?this.patternFrom:w==="u_pixel_ratio_to"?this.pixelRatioTo:w==="u_pixel_ratio_from"?this.pixelRatioFrom:null;T&&l.set(T)}getBinding(l,d,y){return y.substr(0,9)==="u_pattern"?new Pu(l,d):new ws(l,d)}}class Oi{constructor(l,d,y,w){this.expression=l,this.type=y,this.maxValue=0,this.paintVertexAttributes=d.map(T=>({name:`a_${T}`,type:"Float32",components:y==="color"?2:1,offset:0})),this.paintVertexArray=new w}populatePaintArray(l,d,y,w,T){const K=this.paintVertexArray.length,D=this.expression.evaluate(new go(0),d,{},w,[],T);this.paintVertexArray.resize(l),this._setPaintValue(K,l,D)}updatePaintArray(l,d,y,w){const T=this.expression.evaluate({zoom:0},y,w);this._setPaintValue(l,d,T)}_setPaintValue(l,d,y){if(this.type==="color"){const w=hu(y);for(let T=l;T`u_${D}_t`),this.type=y,this.useIntegerZoom=w,this.zoom=T,this.maxValue=0,this.paintVertexAttributes=d.map(D=>({name:`a_${D}`,type:"Float32",components:y==="color"?4:2,offset:0})),this.paintVertexArray=new K}populatePaintArray(l,d,y,w,T){const K=this.expression.evaluate(new go(this.zoom),d,{},w,[],T),D=this.expression.evaluate(new go(this.zoom+1),d,{},w,[],T),z=this.paintVertexArray.length;this.paintVertexArray.resize(l),this._setPaintValue(z,l,K,D)}updatePaintArray(l,d,y,w){const T=this.expression.evaluate({zoom:this.zoom},y,w),K=this.expression.evaluate({zoom:this.zoom+1},y,w);this._setPaintValue(l,d,T,K)}_setPaintValue(l,d,y,w){if(this.type==="color"){const T=hu(y),K=hu(w);for(let D=l;D`#define HAS_UNIFORM_${w}`))}return l}getBinderAttributes(){const l=[];for(const d in this.binders){const y=this.binders[d];if(y instanceof Oi||y instanceof cs)for(let w=0;w!0){this.programConfigurations={};for(const w of l)this.programConfigurations[w.id]=new Da(w,d,y);this.needsUpload=!1,this._featureMap=new Zs,this._bufferOffset=0}populatePaintArrays(l,d,y,w,T,K){for(const D in this.programConfigurations)this.programConfigurations[D].populatePaintArrays(l,d,w,T,K);d.id!==void 0&&this._featureMap.add(d.id,y,this._bufferOffset,l),this._bufferOffset=l,this.needsUpload=!0}updatePaintArrays(l,d,y,w){for(const T of y)this.needsUpload=this.programConfigurations[T.id].updatePaintArrays(l,this._featureMap,d,T,w)||this.needsUpload}get(l){return this.programConfigurations[l]}upload(l){if(this.needsUpload){for(const d in this.programConfigurations)this.programConfigurations[d].upload(l);this.needsUpload=!1}}destroy(){for(const l in this.programConfigurations)this.programConfigurations[l].destroy()}}function sa(c,l){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","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"]}[c]||[c.replace(`${l}-`,"").replace(/-/g,"_")]}function If(c,l,d){const y={color:{source:ed,composite:Pi},number:{source:Ih,composite:ed}},w=function(T){return{"line-pattern":{source:Bt,composite:Bt},"fill-pattern":{source:Bt,composite:Bt},"fill-extrusion-pattern":{source:Bt,composite:Bt}}[T]}(c);return w&&w[d]||y[l][d]}jn("ConstantBinder",Zo),jn("CrossFadedConstantBinder",ji),jn("SourceExpressionBinder",Oi),jn("CrossFadedCompositeBinder",jo),jn("CompositeExpressionBinder",cs),jn("ProgramConfiguration",Da,{omit:["_buffers"]}),jn("ProgramConfigurationSet",ua);const Wo=8192,jd=Math.pow(2,14)-1,fc=-jd-1;function EA(c){const l=Wo/c.extent,d=c.loadGeometry();for(let y=0;yK.x+1||zK.y+1)&&He("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return d}function hl(c,l){return{type:c.type,id:c.id,properties:c.properties,geometry:l?EA(c):[]}}function Fu(c,l,d,y,w){c.emplaceBack(2*l+(y+1)/2,2*d+(w+1)/2)}class OA{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map(d=>d.id),this.index=l.index,this.hasPattern=!1,this.layoutVertexArray=new De,this.indexArray=new hn,this.segments=new xr,this.programConfigurations=new ua(l.layers,l.zoom),this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id)}populate(l,d,y){const w=this.layers[0],T=[];let K=null,D=!1;w.type==="circle"&&(K=w.layout.get("circle-sort-key"),D=!K.isConstant());for(const{feature:z,id:Q,index:ie,sourceLayerIndex:le}of l){const ge=this.layers[0]._featureFilter.needGeometry,Oe=hl(z,ge);if(!this.layers[0]._featureFilter.filter(new go(this.zoom),Oe,y))continue;const Be=D?K.evaluate(Oe,{},y):void 0,ze={id:Q,properties:z.properties,type:z.type,sourceLayerIndex:le,index:ie,geometry:ge?Oe.geometry:EA(z),patterns:{},sortKey:Be};T.push(ze)}D&&T.sort((z,Q)=>z.sortKey-Q.sortKey);for(const z of T){const{geometry:Q,index:ie,sourceLayerIndex:le}=z,ge=l[ie].feature;this.addFeature(z,Q,ie,y),d.featureIndex.insert(ge,Q,ie,le,this.index)}}update(l,d,y){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,d,this.stateDependentLayers,y)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,lr),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(l,d,y,w){for(const T of d)for(const K of T){const D=K.x,z=K.y;if(D<0||D>=Wo||z<0||z>=Wo)continue;const Q=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,l.sortKey),ie=Q.vertexLength;Fu(this.layoutVertexArray,D,z,-1,-1),Fu(this.layoutVertexArray,D,z,1,-1),Fu(this.layoutVertexArray,D,z,1,1),Fu(this.layoutVertexArray,D,z,-1,1),this.indexArray.emplaceBack(ie,ie+1,ie+2),this.indexArray.emplaceBack(ie,ie+3,ie+2),Q.vertexLength+=4,Q.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,y,{},w)}}function Wd(c,l){for(let d=0;d1){if(td(c,l))return!0;for(let y=0;y1?d:d.sub(l)._mult(w)._add(l))}function nd(c,l){let d,y,w,T=!1;for(let K=0;Kl.y!=w.y>l.y&&l.x<(w.x-y.x)*(l.y-y.y)/(w.y-y.y)+y.x&&(T=!T)}return T}function rd(c,l){let d=!1;for(let y=0,w=c.length-1;yl.y!=K.y>l.y&&l.x<(K.x-T.x)*(l.y-T.y)/(K.y-T.y)+T.x&&(d=!d)}return d}function k1(c,l,d){const y=d[0],w=d[2];if(c.xw.x&&l.x>w.x||c.yw.y&&l.y>w.y)return!1;const T=Ce(c,l,d[0]);return T!==Ce(c,l,d[1])||T!==Ce(c,l,d[2])||T!==Ce(c,l,d[3])}function Gd(c,l,d){const y=l.paint.get(c).value;return y.kind==="constant"?y.value:d.programConfigurations.get(l.id).getMaxValue(c)}function Zl(c){return Math.sqrt(c[0]*c[0]+c[1]*c[1])}function mc(c,l,d,y,w){if(!l[0]&&!l[1])return c;const T=B.convert(l)._mult(w);d==="viewport"&&T._rotate(-y);const K=[];for(let D=0;DNm($e,ze))}(Q,z),Oe=le?ie*D:ie;for(const Be of w)for(const ze of Be){const $e=le?ze:Nm(ze,z);let tt=Oe;const St=Fh([],[ze.x,ze.y,0,1],z);if(this.paint.get("circle-pitch-scale")==="viewport"&&this.paint.get("circle-pitch-alignment")==="map"?tt*=St[3]/K.cameraToCenterDistance:this.paint.get("circle-pitch-scale")==="map"&&this.paint.get("circle-pitch-alignment")==="viewport"&&(tt*=K.cameraToCenterDistance/St[3]),BA(ge,$e,tt))return!0}return!1}}function Nm(c,l){const d=Fh([],[c.x,c.y,0,1],l);return new B(d[0]/d[3],d[1]/d[3])}class Gm extends OA{}let $d;jn("HeatmapBucket",Gm,{omit:["layers"]});var T1={get paint(){return $d=$d||new xa({"heatmap-radius":new Or(mt.paint_heatmap["heatmap-radius"]),"heatmap-weight":new Or(mt.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new gr(mt.paint_heatmap["heatmap-intensity"]),"heatmap-color":new dl(mt.paint_heatmap["heatmap-color"]),"heatmap-opacity":new gr(mt.paint_heatmap["heatmap-opacity"])})}};function Qm(c,{width:l,height:d},y,w){if(w){if(w instanceof Uint8ClampedArray)w=new Uint8Array(w.buffer);else if(w.length!==l*d*y)throw new RangeError(`mismatched image size. expected: ${w.length} but got: ${l*d*y}`)}else w=new Uint8Array(l*d*y);return c.width=l,c.height=d,c.data=w,c}function K1(c,{width:l,height:d},y){if(l===c.width&&d===c.height)return;const w=Qm({},{width:l,height:d},y);qa(c,w,{x:0,y:0},{x:0,y:0},{width:Math.min(c.width,l),height:Math.min(c.height,d)},y),c.width=l,c.height=d,c.data=w.data}function qa(c,l,d,y,w,T){if(w.width===0||w.height===0)return l;if(w.width>c.width||w.height>c.height||d.x>c.width-w.width||d.y>c.height-w.height)throw new RangeError("out of range source coordinates for image copy");if(w.width>l.width||w.height>l.height||y.x>l.width-w.width||y.y>l.height-w.height)throw new RangeError("out of range destination coordinates for image copy");const K=c.data,D=l.data;if(K===D)throw new Error("srcData equals dstData, so image is already copied");for(let z=0;z{l[c.evaluationKey]=z;const Q=c.expression.evaluate(l);w.data[K+D+0]=Math.floor(255*Q.r/Q.a),w.data[K+D+1]=Math.floor(255*Q.g/Q.a),w.data[K+D+2]=Math.floor(255*Q.b/Q.a),w.data[K+D+3]=Math.floor(255*Q.a)};if(c.clips)for(let K=0,D=0;K80*d){y=T=c[0],w=K=c[1];for(var Be=d;BeT&&(T=D),z>K&&(K=z);Q=(Q=Math.max(T-y,K-w))!==0?32767/Q:0}return vc(ge,Oe,d,y,w,Q,0),Oe}function yc(c,l,d,y,w){var T,K;if(w===ld(c,l,d,y)>0)for(T=l;T=l;T-=y)K=F1(T,c[T],c[T+1],K);return K&&Kp(K,K.next)&&(KA(K),K=K.next),K}function IA(c,l){if(!c)return c;l||(l=c);var d,y=c;do if(d=!1,y.steiner||!Kp(y,y.next)&&Aa(y.prev,y,y.next)!==0)y=y.next;else{if(KA(y),(y=l=y.prev)===y.next)break;d=!0}while(d||y!==l);return l}function vc(c,l,d,y,w,T,K){if(c){!K&&T&&function(ie,le,ge,Oe){var Be=ie;do Be.z===0&&(Be.z=Vm(Be.x,Be.y,le,ge,Oe)),Be.prevZ=Be.prev,Be.nextZ=Be.next,Be=Be.next;while(Be!==ie);Be.prevZ.nextZ=null,Be.prevZ=null,function(ze){var $e,tt,St,lt,vt,tn,an,Vn,cr=1;do{for(tt=ze,ze=null,vt=null,tn=0;tt;){for(tn++,St=tt,an=0,$e=0;$e0||Vn>0&&St;)an!==0&&(Vn===0||!St||tt.z<=St.z)?(lt=tt,tt=tt.nextZ,an--):(lt=St,St=St.nextZ,Vn--),vt?vt.nextZ=lt:ze=lt,lt.prevZ=vt,vt=lt;tt=St}vt.nextZ=null,cr*=2}while(tn>1)}(Be)}(c,y,w,T);for(var D,z,Q=c;c.prev!==c.next;)if(D=c.prev,z=c.next,T?sd(c,y,w,T):Pf(c))l.push(D.i/d|0),l.push(c.i/d|0),l.push(z.i/d|0),KA(c),c=z.next,Q=z.next;else if((c=z)===Q){K?K===1?vc(c=Ff(IA(c),l,d),l,d,y,w,T,2):K===2&&Cc(c,l,d,y,w,T):vc(IA(c),l,d,y,w,T,1);break}}}function Pf(c){var l=c.prev,d=c,y=c.next;if(Aa(l,d,y)>=0)return!1;for(var w=l.x,T=d.x,K=y.x,D=l.y,z=d.y,Q=y.y,ie=wT?w>K?w:K:T>K?T:K,Oe=D>z?D>Q?D:Q:z>Q?z:Q,Be=y.next;Be!==l;){if(Be.x>=ie&&Be.x<=ge&&Be.y>=le&&Be.y<=Oe&&TA(w,D,T,z,K,Q,Be.x,Be.y)&&Aa(Be.prev,Be,Be.next)>=0)return!1;Be=Be.next}return!0}function sd(c,l,d,y){var w=c.prev,T=c,K=c.next;if(Aa(w,T,K)>=0)return!1;for(var D=w.x,z=T.x,Q=K.x,ie=w.y,le=T.y,ge=K.y,Oe=Dz?D>Q?D:Q:z>Q?z:Q,$e=ie>le?ie>ge?ie:ge:le>ge?le:ge,tt=Vm(Oe,Be,l,d,y),St=Vm(ze,$e,l,d,y),lt=c.prevZ,vt=c.nextZ;lt&<.z>=tt&&vt&&vt.z<=St;){if(lt.x>=Oe&<.x<=ze&<.y>=Be&<.y<=$e&<!==w&<!==K&&TA(D,ie,z,le,Q,ge,lt.x,lt.y)&&Aa(lt.prev,lt,lt.next)>=0||(lt=lt.prevZ,vt.x>=Oe&&vt.x<=ze&&vt.y>=Be&&vt.y<=$e&&vt!==w&&vt!==K&&TA(D,ie,z,le,Q,ge,vt.x,vt.y)&&Aa(vt.prev,vt,vt.next)>=0))return!1;vt=vt.nextZ}for(;lt&<.z>=tt;){if(lt.x>=Oe&<.x<=ze&<.y>=Be&<.y<=$e&<!==w&<!==K&&TA(D,ie,z,le,Q,ge,lt.x,lt.y)&&Aa(lt.prev,lt,lt.next)>=0)return!1;lt=lt.prevZ}for(;vt&&vt.z<=St;){if(vt.x>=Oe&&vt.x<=ze&&vt.y>=Be&&vt.y<=$e&&vt!==w&&vt!==K&&TA(D,ie,z,le,Q,ge,vt.x,vt.y)&&Aa(vt.prev,vt,vt.next)>=0)return!1;vt=vt.nextZ}return!0}function Ff(c,l,d){var y=c;do{var w=y.prev,T=y.next.next;!Kp(w,T)&&Df(w,y,y.next,T)&&Tl(w,T)&&Tl(T,w)&&(l.push(w.i/d|0),l.push(y.i/d|0),l.push(T.i/d|0),KA(y),KA(y.next),y=c=T),y=y.next}while(y!==c);return IA(y)}function Cc(c,l,d,y,w,T){var K=c;do{for(var D=K.next.next;D!==K.prev;){if(K.i!==D.i&&Hm(K,D)){var z=Zm(K,D);return K=IA(K,K.next),z=IA(z,z.next),vc(K,l,d,y,w,T,0),void vc(z,l,d,y,w,T,0)}D=D.next}K=K.next}while(K!==c)}function P1(c,l){return c.x-l.x}function qm(c,l){var d=function(w,T){var K,D=T,z=w.x,Q=w.y,ie=-1/0;do{if(Q<=D.y&&Q>=D.next.y&&D.next.y!==D.y){var le=D.x+(Q-D.y)*(D.next.x-D.x)/(D.next.y-D.y);if(le<=z&&le>ie&&(ie=le,K=D.x=D.x&&D.x>=Be&&z!==D.x&&TA(QK.x||D.x===K.x&&Dh(K,D)))&&(K=D,$e=ge)),D=D.next;while(D!==Oe);return K}(c,l);if(!d)return l;var y=Zm(d,c);return IA(y,y.next),IA(d,d.next)}function Dh(c,l){return Aa(c.prev,c,l.prev)<0&&Aa(l.next,c,c.next)<0}function Vm(c,l,d,y,w){return(c=1431655765&((c=858993459&((c=252645135&((c=16711935&((c=(c-d)*w|0)|c<<8))|c<<4))|c<<2))|c<<1))|(l=1431655765&((l=858993459&((l=252645135&((l=16711935&((l=(l-y)*w|0)|l<<8))|l<<4))|l<<2))|l<<1))<<1}function tv(c){var l=c,d=c;do(l.x=(c-K)*(T-D)&&(c-K)*(y-D)>=(d-K)*(l-D)&&(d-K)*(T-D)>=(w-K)*(y-D)}function Hm(c,l){return c.next.i!==l.i&&c.prev.i!==l.i&&!function(d,y){var w=d;do{if(w.i!==d.i&&w.next.i!==d.i&&w.i!==y.i&&w.next.i!==y.i&&Df(w,w.next,d,y))return!0;w=w.next}while(w!==d);return!1}(c,l)&&(Tl(c,l)&&Tl(l,c)&&function(d,y){var w=d,T=!1,K=(d.x+y.x)/2,D=(d.y+y.y)/2;do w.y>D!=w.next.y>D&&w.next.y!==w.y&&K<(w.next.x-w.x)*(D-w.y)/(w.next.y-w.y)+w.x&&(T=!T),w=w.next;while(w!==d);return T}(c,l)&&(Aa(c.prev,c,l.prev)||Aa(c,l.prev,l))||Kp(c,l)&&Aa(c.prev,c,c.next)>0&&Aa(l.prev,l,l.next)>0)}function Aa(c,l,d){return(l.y-c.y)*(d.x-l.x)-(l.x-c.x)*(d.y-l.y)}function Kp(c,l){return c.x===l.x&&c.y===l.y}function Df(c,l,d,y){var w=el(Aa(c,l,d)),T=el(Aa(c,l,y)),K=el(Aa(d,y,c)),D=el(Aa(d,y,l));return w!==T&&K!==D||!(w!==0||!Uh(c,d,l))||!(T!==0||!Uh(c,y,l))||!(K!==0||!Uh(d,c,y))||!(D!==0||!Uh(d,l,y))}function Uh(c,l,d){return l.x<=Math.max(c.x,d.x)&&l.x>=Math.min(c.x,d.x)&&l.y<=Math.max(c.y,d.y)&&l.y>=Math.min(c.y,d.y)}function el(c){return c>0?1:c<0?-1:0}function Tl(c,l){return Aa(c.prev,c,c.next)<0?Aa(c,l,c.next)>=0&&Aa(c,c.prev,l)>=0:Aa(c,l,c.prev)<0||Aa(c,c.next,l)<0}function Zm(c,l){var d=new Du(c.i,c.x,c.y),y=new Du(l.i,l.x,l.y),w=c.next,T=l.prev;return c.next=l,l.prev=c,d.next=w,w.prev=d,y.next=d,d.prev=y,T.next=y,y.prev=T,y}function F1(c,l,d,y){var w=new Du(c,l,d);return y?(w.next=y.next,w.prev=y,y.next.prev=w,y.next=w):(w.prev=w,w.next=w),w}function KA(c){c.next.prev=c.prev,c.prev.next=c.next,c.prevZ&&(c.prevZ.nextZ=c.nextZ),c.nextZ&&(c.nextZ.prevZ=c.prevZ)}function Du(c,l,d){this.i=c,this.x=l,this.y=d,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ld(c,l,d,y){for(var w=0,T=l,K=d-y;T0&&d.holes.push(y+=c[w-1].length)}return d};var Xm=g(Yd.exports);function D1(c,l,d,y,w){Jm(c,l,d||0,y||c.length-1,w||Uf)}function Jm(c,l,d,y,w){for(;y>d;){if(y-d>600){var T=y-d+1,K=l-d+1,D=Math.log(T),z=.5*Math.exp(2*D/3),Q=.5*Math.sqrt(D*z*(T-z)/T)*(K-T/2<0?-1:1);Jm(c,l,Math.max(d,Math.floor(l-K*z/T+Q)),Math.min(y,Math.floor(l+(T-K)*z/T+Q)),w)}var ie=c[l],le=d,ge=y;for(PA(c,d,l),w(c[y],ie)>0&&PA(c,d,y);le0;)ge--}w(c[d],ie)===0?PA(c,d,ge):PA(c,++ge,y),ge<=l&&(d=ge+1),l<=ge&&(y=ge-1)}}function PA(c,l,d){var y=c[l];c[l]=c[d],c[d]=y}function Uf(c,l){return cl?1:0}function e0(c,l){const d=c.length;if(d<=1)return[c];const y=[];let w,T;for(let K=0;K1)for(let K=0;Kd.id),this.index=l.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new je,this.indexArray=new hn,this.indexArray2=new An,this.programConfigurations=new ua(l.layers,l.zoom),this.segments=new xr,this.segments2=new xr,this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id)}populate(l,d,y){this.hasPattern=Pp("fill",this.layers,d);const w=this.layers[0].layout.get("fill-sort-key"),T=!w.isConstant(),K=[];for(const{feature:D,id:z,index:Q,sourceLayerIndex:ie}of l){const le=this.layers[0]._featureFilter.needGeometry,ge=hl(D,le);if(!this.layers[0]._featureFilter.filter(new go(this.zoom),ge,y))continue;const Oe=T?w.evaluate(ge,{},y,d.availableImages):void 0,Be={id:z,properties:D.properties,type:D.type,sourceLayerIndex:ie,index:Q,geometry:le?ge.geometry:EA(D),patterns:{},sortKey:Oe};K.push(Be)}T&&K.sort((D,z)=>D.sortKey-z.sortKey);for(const D of K){const{geometry:z,index:Q,sourceLayerIndex:ie}=D;if(this.hasPattern){const le=Rh("fill",this.layers,D,this.zoom,d);this.patternFeatures.push(le)}else this.addFeature(D,z,Q,y,{});d.featureIndex.insert(l[Q].feature,z,Q,ie,this.index)}}update(l,d,y){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,d,this.stateDependentLayers,y)}addFeatures(l,d,y){for(const w of this.patternFeatures)this.addFeature(w,w.geometry,w.index,d,y)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,Ym),this.indexBuffer=l.createIndexBuffer(this.indexArray),this.indexBuffer2=l.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(l),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(l,d,y,w,T){for(const K of e0(d,500)){let D=0;for(const Oe of K)D+=Oe.length;const z=this.segments.prepareSegment(D,this.layoutVertexArray,this.indexArray),Q=z.vertexLength,ie=[],le=[];for(const Oe of K){if(Oe.length===0)continue;Oe!==K[0]&&le.push(ie.length/2);const Be=this.segments2.prepareSegment(Oe.length,this.layoutVertexArray,this.indexArray2),ze=Be.vertexLength;this.layoutVertexArray.emplaceBack(Oe[0].x,Oe[0].y),this.indexArray2.emplaceBack(ze+Oe.length-1,ze),ie.push(Oe[0].x),ie.push(Oe[0].y);for(let $e=1;$e>3}if(w--,y===1||y===2)T+=c.readSVarint(),K+=c.readSVarint(),y===1&&(l&&D.push(l),l=[]),l.push(new nv(T,K));else{if(y!==7)throw new Error("unknown command "+y);l&&l.push(l[0].clone())}}return l&&D.push(l),D},qi.prototype.bbox=function(){var c=this._pbf;c.pos=this._geometry;for(var l=c.readVarint()+c.pos,d=1,y=0,w=0,T=0,K=1/0,D=-1/0,z=1/0,Q=-1/0;c.pos>3}if(y--,d===1||d===2)(w+=c.readSVarint())D&&(D=w),(T+=c.readSVarint())Q&&(Q=T);else if(d!==7)throw new Error("unknown command "+d)}return[K,z,D,Q]},qi.prototype.toGeoJSON=function(c,l,d){var y,w,T=this.extent*Math.pow(2,d),K=this.extent*c,D=this.extent*l,z=this.loadGeometry(),Q=qi.types[this.type];function ie(Oe){for(var Be=0;Be>3;w=K===1?y.readString():K===2?y.readFloat():K===3?y.readDouble():K===4?y.readVarint64():K===5?y.readVarint():K===6?y.readSVarint():K===7?y.readBoolean():null}return w}(d))}Nf.prototype.feature=function(c){if(c<0||c>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[c];var l=this._pbf.readVarint()+this._pbf.pos;return new Wf(this._pbf,l,this.extent,this._keys,this._values)};var DA=mu;function Up(c,l,d){if(c===3){var y=new DA(d,d.readVarint()+d.pos);y.length&&(l[y.name]=y)}}FA.VectorTile=function(c,l){this.layers=c.readFields(Up,{},l)},FA.VectorTileFeature=n0,FA.VectorTileLayer=mu;const Rp=FA.VectorTileFeature.types,Hd=Math.pow(2,13);function _c(c,l,d,y,w,T,K,D){c.emplaceBack(l,d,2*Math.floor(y*Hd)+K,w*Hd*2,T*Hd*2,Math.round(D))}class ud{constructor(l){this.zoom=l.zoom,this.overscaling=l.overscaling,this.layers=l.layers,this.layerIds=this.layers.map(d=>d.id),this.index=l.index,this.hasPattern=!1,this.layoutVertexArray=new Qe,this.centroidVertexArray=new Me,this.indexArray=new hn,this.programConfigurations=new ua(l.layers,l.zoom),this.segments=new xr,this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id)}populate(l,d,y){this.features=[],this.hasPattern=Pp("fill-extrusion",this.layers,d);for(const{feature:w,id:T,index:K,sourceLayerIndex:D}of l){const z=this.layers[0]._featureFilter.needGeometry,Q=hl(w,z);if(!this.layers[0]._featureFilter.filter(new go(this.zoom),Q,y))continue;const ie={id:T,sourceLayerIndex:D,index:K,geometry:z?Q.geometry:EA(w),properties:w.properties,type:w.type,patterns:{}};this.hasPattern?this.features.push(Rh("fill-extrusion",this.layers,ie,this.zoom,d)):this.addFeature(ie,ie.geometry,K,y,{}),d.featureIndex.insert(w,ie.geometry,K,D,this.index,!0)}}addFeatures(l,d,y){for(const w of this.features){const{geometry:T}=w;this.addFeature(w,T,w.index,d,y)}}update(l,d,y){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,d,this.stateDependentLayers,y)}isEmpty(){return this.layoutVertexArray.length===0&&this.centroidVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,jf),this.centroidVertexBuffer=l.createVertexBuffer(this.centroidVertexArray,zf.members,!0),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(l,d,y,w,T){const K={x:0,y:0,vertexCount:0};for(const D of e0(d,500)){let z=0;for(const Be of D)z+=Be.length;let Q=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(const Be of D){if(Be.length===0||Gf(Be))continue;let ze=0;for(let $e=0;$e=1){const St=Be[$e-1];if(!Vr(tt,St)){Q.vertexLength+4>xr.MAX_VERTEX_ARRAY_LENGTH&&(Q=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const lt=tt.sub(St)._perp()._unit(),vt=St.dist(tt);ze+vt>32768&&(ze=0),_c(this.layoutVertexArray,tt.x,tt.y,lt.x,lt.y,0,0,ze),_c(this.layoutVertexArray,tt.x,tt.y,lt.x,lt.y,0,1,ze),K.x+=2*tt.x,K.y+=2*tt.y,K.vertexCount+=2,ze+=vt,_c(this.layoutVertexArray,St.x,St.y,lt.x,lt.y,0,0,ze),_c(this.layoutVertexArray,St.x,St.y,lt.x,lt.y,0,1,ze),K.x+=2*St.x,K.y+=2*St.y,K.vertexCount+=2;const tn=Q.vertexLength;this.indexArray.emplaceBack(tn,tn+2,tn+1),this.indexArray.emplaceBack(tn+1,tn+2,tn+3),Q.vertexLength+=4,Q.primitiveLength+=2}}}}if(Q.vertexLength+z>xr.MAX_VERTEX_ARRAY_LENGTH&&(Q=this.segments.prepareSegment(z,this.layoutVertexArray,this.indexArray)),Rp[l.type]!=="Polygon")continue;const ie=[],le=[],ge=Q.vertexLength;for(const Be of D)if(Be.length!==0){Be!==D[0]&&le.push(ie.length/2);for(let ze=0;zeWo)||c.y===l.y&&(c.y<0||c.y>Wo)}function Gf(c){return c.every(l=>l.x<0)||c.every(l=>l.x>Wo)||c.every(l=>l.y<0)||c.every(l=>l.y>Wo)}let Co;jn("FillExtrusionBucket",ud,{omit:["layers","features"]});var Ad={get paint(){return Co=Co||new xa({"fill-extrusion-opacity":new gr(mt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new Or(mt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new gr(mt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new gr(mt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new SA(mt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new Or(mt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new Or(mt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new gr(mt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})}};class rv extends As{constructor(l){super(l,Ad)}createBucket(l){return new ud(l)}queryRadius(){return Zl(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}queryIntersectsFeature(l,d,y,w,T,K,D,z){const Q=mc(l,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),K.angle,D),ie=this.paint.get("fill-extrusion-height").evaluate(d,y),le=this.paint.get("fill-extrusion-base").evaluate(d,y),ge=function(Be,ze,$e,tt){const St=[];for(const lt of Be){const vt=[lt.x,lt.y,0,1];Fh(vt,vt,ze),St.push(new B(vt[0]/vt[3],vt[1]/vt[3]))}return St}(Q,z),Oe=function(Be,ze,$e,tt){const St=[],lt=[],vt=tt[8]*ze,tn=tt[9]*ze,an=tt[10]*ze,Vn=tt[11]*ze,cr=tt[8]*$e,xn=tt[9]*$e,Cn=tt[10]*$e,Kn=tt[11]*$e;for(const ur of Be){const Dn=[],wn=[];for(const Kr of ur){const wr=Kr.x,Bi=Kr.y,ea=tt[0]*wr+tt[4]*Bi+tt[12],No=tt[1]*wr+tt[5]*Bi+tt[13],Xa=tt[2]*wr+tt[6]*Bi+tt[14],Lu=tt[3]*wr+tt[7]*Bi+tt[15],Kl=Xa+an,ka=Lu+Vn,Go=ea+cr,Ja=No+xn,Xl=Xa+Cn,Jl=Lu+Kn,ks=new B((ea+vt)/ka,(No+tn)/ka);ks.z=Kl/ka,Dn.push(ks);const Is=new B(Go/Jl,Ja/Jl);Is.z=Xl/Jl,wn.push(Is)}St.push(Dn),lt.push(wn)}return[St,lt]}(w,le,ie,z);return function(Be,ze,$e){let tt=1/0;Nd($e,ze)&&(tt=i0($e,ze[0]));for(let St=0;Std.id),this.index=l.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(d=>{this.gradients[d.id]={}}),this.layoutVertexArray=new Le,this.layoutVertexArray2=new ft,this.indexArray=new hn,this.programConfigurations=new ua(l.layers,l.zoom),this.segments=new xr,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(d=>d.isStateDependent()).map(d=>d.id)}populate(l,d,y){this.hasPattern=Pp("line",this.layers,d);const w=this.layers[0].layout.get("line-sort-key"),T=!w.isConstant(),K=[];for(const{feature:D,id:z,index:Q,sourceLayerIndex:ie}of l){const le=this.layers[0]._featureFilter.needGeometry,ge=hl(D,le);if(!this.layers[0]._featureFilter.filter(new go(this.zoom),ge,y))continue;const Oe=T?w.evaluate(ge,{},y):void 0,Be={id:z,properties:D.properties,type:D.type,sourceLayerIndex:ie,index:Q,geometry:le?ge.geometry:EA(D),patterns:{},sortKey:Oe};K.push(Be)}T&&K.sort((D,z)=>D.sortKey-z.sortKey);for(const D of K){const{geometry:z,index:Q,sourceLayerIndex:ie}=D;if(this.hasPattern){const le=Rh("line",this.layers,D,this.zoom,d);this.patternFeatures.push(le)}else this.addFeature(D,z,Q,y,{});d.featureIndex.insert(l[Q].feature,z,Q,ie,this.index)}}update(l,d,y){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(l,d,this.stateDependentLayers,y)}addFeatures(l,d,y){for(const w of this.patternFeatures)this.addFeature(w,w.geometry,w.index,d,y)}isEmpty(){return this.layoutVertexArray.length===0}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(l){this.uploaded||(this.layoutVertexArray2.length!==0&&(this.layoutVertexBuffer2=l.createVertexBuffer(this.layoutVertexArray2,L1)),this.layoutVertexBuffer=l.createVertexBuffer(this.layoutVertexArray,iv),this.indexBuffer=l.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(l),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(l){if(l.properties&&Object.prototype.hasOwnProperty.call(l.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(l.properties,"mapbox_clip_end"))return{start:+l.properties.mapbox_clip_start,end:+l.properties.mapbox_clip_end}}addFeature(l,d,y,w,T){const K=this.layers[0].layout,D=K.get("line-join").evaluate(l,{}),z=K.get("line-cap"),Q=K.get("line-miter-limit"),ie=K.get("line-round-limit");this.lineClips=this.lineFeatureClips(l);for(const le of d)this.addLine(le,l,D,z,Q,ie);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,l,y,T,w)}addLine(l,d,y,w,T,K){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let tt=0;tt=2&&l[z-1].equals(l[z-2]);)z--;let Q=0;for(;Q0;if(Vn&&tt>Q){const Kn=ge.dist(Oe);if(Kn>2*ie){const ur=ge.sub(ge.sub(Oe)._mult(ie/Kn)._round());this.updateDistance(Oe,ur),this.addCurrentVertex(ur,ze,0,0,le),Oe=ur}}const xn=Oe&&Be;let Cn=xn?y:D?"butt":w;if(xn&&Cn==="round"&&(tnT&&(Cn="bevel"),Cn==="bevel"&&(tn>2&&(Cn="flipbevel"),tn100)St=$e.mult(-1);else{const Kn=tn*ze.add($e).mag()/ze.sub($e).mag();St._perp()._mult(Kn*(cr?-1:1))}this.addCurrentVertex(ge,St,0,0,le),this.addCurrentVertex(ge,St.mult(-1),0,0,le)}else if(Cn==="bevel"||Cn==="fakeround"){const Kn=-Math.sqrt(tn*tn-1),ur=cr?Kn:0,Dn=cr?0:Kn;if(Oe&&this.addCurrentVertex(ge,ze,ur,Dn,le),Cn==="fakeround"){const wn=Math.round(180*an/Math.PI/20);for(let Kr=1;Kr2*ie){const ur=ge.add(Be.sub(ge)._mult(ie/Kn)._round());this.updateDistance(ge,ur),this.addCurrentVertex(ur,$e,0,0,le),ge=ur}}}}addCurrentVertex(l,d,y,w,T,K=!1){const D=d.y*w-d.x,z=-d.y-d.x*w;this.addHalfVertex(l,d.x+d.y*y,d.y-d.x*y,K,!1,y,T),this.addHalfVertex(l,D,z,K,!0,-w,T),this.distance>Qf/2&&this.totalDistance===0&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(l,d,y,w,T,K))}addHalfVertex({x:l,y:d},y,w,T,K,D,z){const Q=.5*(this.lineClips?this.scaledDistance*(Qf-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((l<<1)+(T?1:0),(d<<1)+(K?1:0),Math.round(63*y)+128,Math.round(63*w)+128,1+(D===0?0:D<0?-1:1)|(63&Q)<<2,Q>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);const ie=z.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,ie),z.primitiveLength++),K?this.e2=ie:this.e1=ie}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(l,d){this.distance+=l.dist(d),this.updateScaledDistance()}}let h,b;jn("LineBucket",A,{omit:["layers","patternFeatures"]});var _={get paint(){return b=b||new xa({"line-opacity":new Or(mt.paint_line["line-opacity"]),"line-color":new Or(mt.paint_line["line-color"]),"line-translate":new gr(mt.paint_line["line-translate"]),"line-translate-anchor":new gr(mt.paint_line["line-translate-anchor"]),"line-width":new Or(mt.paint_line["line-width"]),"line-gap-width":new Or(mt.paint_line["line-gap-width"]),"line-offset":new Or(mt.paint_line["line-offset"]),"line-blur":new Or(mt.paint_line["line-blur"]),"line-dasharray":new Jc(mt.paint_line["line-dasharray"]),"line-pattern":new SA(mt.paint_line["line-pattern"]),"line-gradient":new dl(mt.paint_line["line-gradient"])})},get layout(){return h=h||new xa({"line-cap":new gr(mt.layout_line["line-cap"]),"line-join":new Or(mt.layout_line["line-join"]),"line-miter-limit":new gr(mt.layout_line["line-miter-limit"]),"line-round-limit":new gr(mt.layout_line["line-round-limit"]),"line-sort-key":new Or(mt.layout_line["line-sort-key"])})}};class E extends Or{possiblyEvaluate(l,d){return d=new go(Math.floor(d.zoom),{now:d.now,fadeDuration:d.fadeDuration,zoomHistory:d.zoomHistory,transition:d.transition}),super.possiblyEvaluate(l,d)}evaluate(l,d,y,w){return d=ye({},d,{zoom:Math.floor(d.zoom)}),super.evaluate(l,d,y,w)}}let U;class Y extends As{constructor(l){super(l,_),this.gradientVersion=0,U||(U=new E(_.paint.properties["line-width"].specification),U.useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(l){if(l==="line-gradient"){const d=this.gradientExpression();this.stepInterpolant=!!function(y){return y._styleExpression!==void 0}(d)&&d._styleExpression.expression instanceof Au,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(l,d){super.recalculate(l,d),this.paint._values["line-floorwidth"]=U.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,l)}createBucket(l){return new A(l)}queryRadius(l){const d=l,y=J(Gd("line-width",this,d),Gd("line-gap-width",this,d)),w=Gd("line-offset",this,d);return y/2+Math.abs(w)+Zl(this.paint.get("line-translate"))}queryIntersectsFeature(l,d,y,w,T,K,D){const z=mc(l,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),K.angle,D),Q=D/2*J(this.paint.get("line-width").evaluate(d,y),this.paint.get("line-gap-width").evaluate(d,y)),ie=this.paint.get("line-offset").evaluate(d,y);return ie&&(w=function(le,ge){const Oe=[];for(let Be=0;Be=3){for(let $e=0;$e0?l+2*c:c}const se=zo([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),pe=zo([{name:"a_projected_pos",components:3,type:"Float32"}],4);zo([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const We=zo([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]);zo([{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 Ye=zo([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Mt=zo([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function yt(c,l,d){return c.sections.forEach(y=>{y.text=function(w,T,K){const D=T.layout.get("text-transform").evaluate(K,{});return D==="uppercase"?w=w.toLocaleUpperCase():D==="lowercase"&&(w=w.toLocaleLowerCase()),Hl.applyArabicShaping&&(w=Hl.applyArabicShaping(w)),w}(y.text,l,d)}),c}zo([{name:"triangle",components:3,type:"Uint16"}]),zo([{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"}]),zo([{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"}]),zo([{type:"Float32",name:"offsetX"}]),zo([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]),zo([{type:"Uint16",name:"textAnchor"},{type:"Float32",components:2,name:"textOffset"}]);const qt={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var Zt=24,Bn=fn,Wn=function(c,l,d,y,w){var T,K,D=8*w-y-1,z=(1<>1,ie=-7,le=d?w-1:0,ge=d?-1:1,Oe=c[l+le];for(le+=ge,T=Oe&(1<<-ie)-1,Oe>>=-ie,ie+=D;ie>0;T=256*T+c[l+le],le+=ge,ie-=8);for(K=T&(1<<-ie)-1,T>>=-ie,ie+=y;ie>0;K=256*K+c[l+le],le+=ge,ie-=8);if(T===0)T=1-Q;else{if(T===z)return K?NaN:1/0*(Oe?-1:1);K+=Math.pow(2,y),T-=Q}return(Oe?-1:1)*K*Math.pow(2,T-y)},er=function(c,l,d,y,w,T){var K,D,z,Q=8*T-w-1,ie=(1<>1,ge=w===23?Math.pow(2,-24)-Math.pow(2,-77):0,Oe=y?0:T-1,Be=y?1:-1,ze=l<0||l===0&&1/l<0?1:0;for(l=Math.abs(l),isNaN(l)||l===1/0?(D=isNaN(l)?1:0,K=ie):(K=Math.floor(Math.log(l)/Math.LN2),l*(z=Math.pow(2,-K))<1&&(K--,z*=2),(l+=K+le>=1?ge/z:ge*Math.pow(2,1-le))*z>=2&&(K++,z/=2),K+le>=ie?(D=0,K=ie):K+le>=1?(D=(l*z-1)*Math.pow(2,w),K+=le):(D=l*Math.pow(2,le-1)*Math.pow(2,w),K=0));w>=8;c[d+Oe]=255&D,Oe+=Be,D/=256,w-=8);for(K=K<0;c[d+Oe]=255&K,Oe+=Be,K/=256,Q-=8);c[d+Oe-Be]|=128*ze};function fn(c){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(c)?c:new Uint8Array(c||0),this.pos=0,this.type=0,this.length=this.buf.length}fn.Varint=0,fn.Fixed64=1,fn.Bytes=2,fn.Fixed32=5;var ar=4294967296,Ir=1/ar,Br=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function Xr(c){return c.type===fn.Bytes?c.readVarint()+c.pos:c.pos+1}function fo(c,l,d){return d?4294967296*l+(c>>>0):4294967296*(l>>>0)+(c>>>0)}function Ea(c,l,d){var y=l<=16383?1:l<=2097151?2:l<=268435455?3:Math.floor(Math.log(l)/(7*Math.LN2));d.realloc(y);for(var w=d.pos-1;w>=c;w--)d.buf[w+y]=d.buf[w]}function ca(c,l){for(var d=0;d>>8,c[d+2]=l>>>16,c[d+3]=l>>>24}function bc(c,l){return(c[l]|c[l+1]<<8|c[l+2]<<16)+(c[l+3]<<24)}fn.prototype={destroy:function(){this.buf=null},readFields:function(c,l,d){for(d=d||this.length;this.pos>3,T=this.pos;this.type=7&y,c(w,l,this),this.pos===T&&this.skip(y)}return l},readMessage:function(c,l){return this.readFields(c,l,this.readVarint()+this.pos)},readFixed32:function(){var c=js(this.buf,this.pos);return this.pos+=4,c},readSFixed32:function(){var c=bc(this.buf,this.pos);return this.pos+=4,c},readFixed64:function(){var c=js(this.buf,this.pos)+js(this.buf,this.pos+4)*ar;return this.pos+=8,c},readSFixed64:function(){var c=js(this.buf,this.pos)+bc(this.buf,this.pos+4)*ar;return this.pos+=8,c},readFloat:function(){var c=Wn(this.buf,this.pos,!0,23,4);return this.pos+=4,c},readDouble:function(){var c=Wn(this.buf,this.pos,!0,52,8);return this.pos+=8,c},readVarint:function(c){var l,d,y=this.buf;return l=127&(d=y[this.pos++]),d<128?l:(l|=(127&(d=y[this.pos++]))<<7,d<128?l:(l|=(127&(d=y[this.pos++]))<<14,d<128?l:(l|=(127&(d=y[this.pos++]))<<21,d<128?l:function(w,T,K){var D,z,Q=K.buf;if(D=(112&(z=Q[K.pos++]))>>4,z<128||(D|=(127&(z=Q[K.pos++]))<<3,z<128)||(D|=(127&(z=Q[K.pos++]))<<10,z<128)||(D|=(127&(z=Q[K.pos++]))<<17,z<128)||(D|=(127&(z=Q[K.pos++]))<<24,z<128)||(D|=(1&(z=Q[K.pos++]))<<31,z<128))return fo(w,D,T);throw new Error("Expected varint not more than 10 bytes")}(l|=(15&(d=y[this.pos]))<<28,c,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var c=this.readVarint();return c%2==1?(c+1)/-2:c/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var c=this.readVarint()+this.pos,l=this.pos;return this.pos=c,c-l>=12&&Br?function(d,y,w){return Br.decode(d.subarray(y,w))}(this.buf,l,c):function(d,y,w){for(var T="",K=y;K239?4:ie>223?3:ie>191?2:1;if(K+ge>w)break;ge===1?ie<128&&(le=ie):ge===2?(192&(D=d[K+1]))==128&&(le=(31&ie)<<6|63&D)<=127&&(le=null):ge===3?(z=d[K+2],(192&(D=d[K+1]))==128&&(192&z)==128&&((le=(15&ie)<<12|(63&D)<<6|63&z)<=2047||le>=55296&&le<=57343)&&(le=null)):ge===4&&(z=d[K+2],Q=d[K+3],(192&(D=d[K+1]))==128&&(192&z)==128&&(192&Q)==128&&((le=(15&ie)<<18|(63&D)<<12|(63&z)<<6|63&Q)<=65535||le>=1114112)&&(le=null)),le===null?(le=65533,ge=1):le>65535&&(le-=65536,T+=String.fromCharCode(le>>>10&1023|55296),le=56320|1023&le),T+=String.fromCharCode(le),K+=ge}return T}(this.buf,l,c)},readBytes:function(){var c=this.readVarint()+this.pos,l=this.buf.subarray(this.pos,c);return this.pos=c,l},readPackedVarint:function(c,l){if(this.type!==fn.Bytes)return c.push(this.readVarint(l));var d=Xr(this);for(c=c||[];this.pos127;);else if(l===fn.Bytes)this.pos=this.readVarint()+this.pos;else if(l===fn.Fixed32)this.pos+=4;else{if(l!==fn.Fixed64)throw new Error("Unimplemented type: "+l);this.pos+=8}},writeTag:function(c,l){this.writeVarint(c<<3|l)},realloc:function(c){for(var l=this.length||16;l268435455||c<0?function(l,d){var y,w;if(l>=0?(y=l%4294967296|0,w=l/4294967296|0):(w=~(-l/4294967296),4294967295^(y=~(-l%4294967296))?y=y+1|0:(y=0,w=w+1|0)),l>=18446744073709552e3||l<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");d.realloc(10),function(T,K,D){D.buf[D.pos++]=127&T|128,T>>>=7,D.buf[D.pos++]=127&T|128,T>>>=7,D.buf[D.pos++]=127&T|128,T>>>=7,D.buf[D.pos++]=127&T|128,D.buf[D.pos]=127&(T>>>=7)}(y,0,d),function(T,K){var D=(7&T)<<4;K.buf[K.pos++]|=D|((T>>>=3)?128:0),T&&(K.buf[K.pos++]=127&T|((T>>>=7)?128:0),T&&(K.buf[K.pos++]=127&T|((T>>>=7)?128:0),T&&(K.buf[K.pos++]=127&T|((T>>>=7)?128:0),T&&(K.buf[K.pos++]=127&T|((T>>>=7)?128:0),T&&(K.buf[K.pos++]=127&T)))))}(w,d)}(c,this):(this.realloc(4),this.buf[this.pos++]=127&c|(c>127?128:0),c<=127||(this.buf[this.pos++]=127&(c>>>=7)|(c>127?128:0),c<=127||(this.buf[this.pos++]=127&(c>>>=7)|(c>127?128:0),c<=127||(this.buf[this.pos++]=c>>>7&127))))},writeSVarint:function(c){this.writeVarint(c<0?2*-c-1:2*c)},writeBoolean:function(c){this.writeVarint(!!c)},writeString:function(c){c=String(c),this.realloc(4*c.length),this.pos++;var l=this.pos;this.pos=function(y,w,T){for(var K,D,z=0;z55295&&K<57344){if(!D){K>56319||z+1===w.length?(y[T++]=239,y[T++]=191,y[T++]=189):D=K;continue}if(K<56320){y[T++]=239,y[T++]=191,y[T++]=189,D=K;continue}K=D-55296<<10|K-56320|65536,D=null}else D&&(y[T++]=239,y[T++]=191,y[T++]=189,D=null);K<128?y[T++]=K:(K<2048?y[T++]=K>>6|192:(K<65536?y[T++]=K>>12|224:(y[T++]=K>>18|240,y[T++]=K>>12&63|128),y[T++]=K>>6&63|128),y[T++]=63&K|128)}return T}(this.buf,c,this.pos);var d=this.pos-l;d>=128&&Ea(l,d,this),this.pos=l-1,this.writeVarint(d),this.pos+=d},writeFloat:function(c){this.realloc(4),er(this.buf,c,this.pos,!0,23,4),this.pos+=4},writeDouble:function(c){this.realloc(8),er(this.buf,c,this.pos,!0,52,8),this.pos+=8},writeBytes:function(c){var l=c.length;this.writeVarint(l),this.realloc(l);for(var d=0;d=128&&Ea(d,y,this),this.pos=d-1,this.writeVarint(y),this.pos+=y},writeMessage:function(c,l,d){this.writeTag(c,fn.Bytes),this.writeRawMessage(l,d)},writePackedVarint:function(c,l){l.length&&this.writeMessage(c,ca,l)},writePackedSVarint:function(c,l){l.length&&this.writeMessage(c,Oa,l)},writePackedBoolean:function(c,l){l.length&&this.writeMessage(c,fl,l)},writePackedFloat:function(c,l){l.length&&this.writeMessage(c,Va,l)},writePackedDouble:function(c,l){l.length&&this.writeMessage(c,Ha,l)},writePackedFixed32:function(c,l){l.length&&this.writeMessage(c,zs,l)},writePackedSFixed32:function(c,l){l.length&&this.writeMessage(c,ds,l)},writePackedFixed64:function(c,l){l.length&&this.writeMessage(c,Za,l)},writePackedSFixed64:function(c,l){l.length&&this.writeMessage(c,Ba,l)},writeBytesField:function(c,l){this.writeTag(c,fn.Bytes),this.writeBytes(l)},writeFixed32Field:function(c,l){this.writeTag(c,fn.Fixed32),this.writeFixed32(l)},writeSFixed32Field:function(c,l){this.writeTag(c,fn.Fixed32),this.writeSFixed32(l)},writeFixed64Field:function(c,l){this.writeTag(c,fn.Fixed64),this.writeFixed64(l)},writeSFixed64Field:function(c,l){this.writeTag(c,fn.Fixed64),this.writeSFixed64(l)},writeVarintField:function(c,l){this.writeTag(c,fn.Varint),this.writeVarint(l)},writeSVarintField:function(c,l){this.writeTag(c,fn.Varint),this.writeSVarint(l)},writeStringField:function(c,l){this.writeTag(c,fn.Bytes),this.writeString(l)},writeFloatField:function(c,l){this.writeTag(c,fn.Fixed32),this.writeFloat(l)},writeDoubleField:function(c,l){this.writeTag(c,fn.Fixed64),this.writeDouble(l)},writeBooleanField:function(c,l){this.writeVarintField(c,!!l)}};var Os=g(Bn);const Ru=3;function Bs(c,l,d){c===1&&d.readMessage(o0,l)}function o0(c,l,d){if(c===3){const{id:y,bitmap:w,width:T,height:K,left:D,top:z,advance:Q}=d.readMessage(UA,{});l.push({id:y,bitmap:new gc({width:T+2*Ru,height:K+2*Ru},w),metrics:{width:T,height:K,left:D,top:z,advance:Q}})}}function UA(c,l,d){c===1?l.id=d.readVarint():c===2?l.bitmap=d.readBytes():c===3?l.width=d.readVarint():c===4?l.height=d.readVarint():c===5?l.left=d.readSVarint():c===6?l.top=d.readSVarint():c===7&&(l.advance=d.readVarint())}const xc=Ru;function wc(c){let l=0,d=0;for(const K of c)l+=K.w*K.h,d=Math.max(d,K.w);c.sort((K,D)=>D.h-K.h);const y=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(l/.95)),d),h:1/0}];let w=0,T=0;for(const K of c)for(let D=y.length-1;D>=0;D--){const z=y[D];if(!(K.w>z.w||K.h>z.h)){if(K.x=z.x,K.y=z.y,T=Math.max(T,K.y+K.h),w=Math.max(w,K.x+K.w),K.w===z.w&&K.h===z.h){const Q=y.pop();D=0&&y>=l&&W1[this.text.charCodeAt(y)];y--)d--;this.text=this.text.substring(l,d),this.sectionIndex=this.sectionIndex.slice(l,d)}substring(l,d){const y=new zp;return y.text=this.text.substring(l,d),y.sectionIndex=this.sectionIndex.slice(l,d),y.sections=this.sections,y}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((l,d)=>Math.max(l,this.sections[d].scale),0)}addTextSection(l,d){this.text+=l.text,this.sections.push(s0.forText(l.scale,l.fontStack||d));const y=this.sections.length-1;for(let w=0;w=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function j1(c,l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze){const $e=zp.fromFeature(c,w);let tt;le===a.ah.vertical&&$e.verticalizePunctuation();const{processBidirectionalText:St,processStyledBidirectionalText:lt}=Hl;if(St&&$e.sections.length===1){tt=[];const an=St($e.toString(),sv($e,Q,T,l,y,Oe,Be));for(const Vn of an){const cr=new zp;cr.text=Vn,cr.sections=$e.sections;for(let xn=0;xn0&&th>Hr&&(Hr=th)}else{const cA=cr[Wi.fontStack],gu=cA&&cA[mi];if(gu&&gu.rect)zu=gu.rect,AA=gu.metrics;else{const th=Vn[Wi.fontStack],p0=th&&th[mi];if(!p0)continue;AA=p0.metrics}Ts=(Is-Wi.scale)*Zt}RA?(an.verticalizable=!0,Ia.push({glyph:mi,imageName:Mc,x:ea,y:No+Ts,vertical:RA,scale:Wi.scale,fontStack:Wi.fontStack,sectionIndex:Dl,metrics:AA,rect:zu}),ea+=eh*Wi.scale+Kr):(Ia.push({glyph:mi,imageName:Mc,x:ea,y:No+Ts,vertical:RA,scale:Wi.scale,fontStack:Wi.fontStack,sectionIndex:Dl,metrics:AA,rect:zu}),ea+=AA.advance*Wi.scale+Kr)}Ia.length!==0&&(Xa=Math.max(ea-Kr,Xa),tw(Ia,0,Ia.length-1,Kl,Hr)),ea=0;const eu=Kn*Is+Hr;Fl.lineOffset=Math.max(Hr,Pl),No+=eu,Lu=Math.max(eu,Lu),++ka}var Go;const Ja=No-a0,{horizontalAlign:Xl,verticalAlign:Jl}=lv(ur);(function(ks,Is,Pl,Fl,Ia,Hr,eu,Ko,Wi){const Dl=(Is-Pl)*Ia;let mi=0;mi=Hr!==eu?-Ko*Fl-a0:(-Fl*Wi+.5)*eu;for(const Ts of ks)for(const AA of Ts.positionedGlyphs)AA.x+=Dl,AA.y+=mi})(an.positionedLines,Kl,Xl,Jl,Xa,Lu,Kn,Ja,Cn.length),an.top+=-Jl*Ja,an.bottom=an.top+Ja,an.left+=-Xl*Xa,an.right=an.left+Xa}(tn,l,d,y,tt,K,D,z,le,Q,ge,ze),!function(an){for(const Vn of an)if(Vn.positionedGlyphs.length!==0)return!1;return!0}(vt)&&tn}const W1={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},J5={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 lA(c,l,d,y,w,T){if(l.imageName){const K=y[l.imageName];return K?K.displaySize[0]*l.scale*Zt/T+w:0}{const K=d[l.fontStack],D=K&&K[c];return D?D.metrics.advance*l.scale+w:0}}function Mb(c,l,d,y){const w=Math.pow(c-l,2);return y?c=0;let ie=0;for(let ge=0;geK.id),this.index=l.index,this.pixelRatio=l.pixelRatio,this.sourceLayerIndex=l.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Kf([]),this.placementViewportMatrix=Kf([]);const d=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Eb(this.zoom,d["text-size"]),this.iconSizeData=Eb(this.zoom,d["icon-size"]);const y=this.layers[0].layout,w=y.get("symbol-sort-key"),T=y.get("symbol-z-order");this.canOverlap=uv(y,"text-overlap","text-allow-overlap")!=="never"||uv(y,"icon-overlap","icon-allow-overlap")!=="never"||y.get("text-ignore-placement")||y.get("icon-ignore-placement"),this.sortFeaturesByKey=T!=="viewport-y"&&!w.isConstant(),this.sortFeaturesByY=(T==="viewport-y"||T==="auto"&&!this.sortFeaturesByKey)&&this.canOverlap,y.get("symbol-placement")==="point"&&(this.writingModes=y.get("text-writing-mode").map(K=>a.ah[K])),this.stateDependentLayerIds=this.layers.filter(K=>K.isStateDependent()).map(K=>K.id),this.sourceID=l.sourceID}createArrays(){this.text=new cv(new ua(this.layers,this.zoom,l=>/^text/.test(l))),this.icon=new cv(new ua(this.layers,this.zoom,l=>/^icon/.test(l))),this.glyphOffsetArray=new L,this.lineVertexArray=new j,this.symbolInstances=new I,this.textAnchorOffsets=new te}calculateGlyphDependencies(l,d,y,w,T){for(let K=0;K0)&&(K.value.kind!=="constant"||K.value.value.length>0),ie=z.value.kind!=="constant"||!!z.value.value||Object.keys(z.parameters).length>0,le=T.get("symbol-sort-key");if(this.features=[],!Q&&!ie)return;const ge=d.iconDependencies,Oe=d.glyphDependencies,Be=d.availableImages,ze=new go(this.zoom);for(const{feature:$e,id:tt,index:St,sourceLayerIndex:lt}of l){const vt=w._featureFilter.needGeometry,tn=hl($e,vt);if(!w._featureFilter.filter(ze,tn,y))continue;let an,Vn;if(vt||(tn.geometry=EA($e)),Q){const xn=w.getValueAndResolveTokens("text-field",tn,y,Be),Cn=lo.factory(xn);ow(Cn)&&(this.hasRTLText=!0),(!this.hasRTLText||Hl.getRTLTextPluginStatus()==="unavailable"||this.hasRTLText&&Hl.isParsed())&&(an=yt(Cn,w,tn))}if(ie){const xn=w.getValueAndResolveTokens("icon-image",tn,y,Be);Vn=xn instanceof Ge?xn:Ge.fromString(xn)}if(!an&&!Vn)continue;const cr=this.sortFeaturesByKey?le.evaluate(tn,{},y):void 0;if(this.features.push({id:tt,text:an,icon:Vn,index:St,sourceLayerIndex:lt,geometry:tn.geometry,properties:$e.properties,type:rw[$e.type],sortKey:cr}),Vn&&(ge[Vn.name]=!0),an){const xn=K.evaluate(tn,{},y).join(","),Cn=T.get("text-rotation-alignment")!=="viewport"&&T.get("symbol-placement")!=="point";this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(a.ah.vertical)>=0;for(const Kn of an.sections)if(Kn.image)ge[Kn.image.name]=!0;else{const ur=rA(an.toString()),Dn=Kn.fontStack||xn,wn=Oe[Dn]=Oe[Dn]||{};this.calculateGlyphDependencies(Kn.text,wn,Cn,this.allowVerticalPlacement,ur)}}}T.get("symbol-placement")==="line"&&(this.features=function($e){const tt={},St={},lt=[];let vt=0;function tn(xn){lt.push($e[xn]),vt++}function an(xn,Cn,Kn){const ur=St[xn];return delete St[xn],St[Cn]=ur,lt[ur].geometry[0].pop(),lt[ur].geometry[0]=lt[ur].geometry[0].concat(Kn[0]),ur}function Vn(xn,Cn,Kn){const ur=tt[Cn];return delete tt[Cn],tt[xn]=ur,lt[ur].geometry[0].shift(),lt[ur].geometry[0]=Kn[0].concat(lt[ur].geometry[0]),ur}function cr(xn,Cn,Kn){const ur=Kn?Cn[0][Cn[0].length-1]:Cn[0][0];return`${xn}:${ur.x}:${ur.y}`}for(let xn=0;xn<$e.length;xn++){const Cn=$e[xn],Kn=Cn.geometry,ur=Cn.text?Cn.text.toString():null;if(!ur){tn(xn);continue}const Dn=cr(ur,Kn),wn=cr(ur,Kn,!0);if(Dn in St&&wn in tt&&St[Dn]!==tt[wn]){const Kr=Vn(Dn,wn,Kn),wr=an(Dn,wn,lt[Kr].geometry);delete tt[Dn],delete St[wn],St[cr(ur,lt[wr].geometry,!0)]=wr,lt[Kr].geometry=null}else Dn in St?an(Dn,wn,Kn):wn in tt?Vn(Dn,wn,Kn):(tn(xn),tt[Dn]=vt-1,St[wn]=vt-1)}return lt.filter(xn=>xn.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort(($e,tt)=>$e.sortKey-tt.sortKey)}update(l,d,y){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(l,d,this.layers,y),this.icon.programConfigurations.updatePaintArrays(l,d,this.layers,y))}isEmpty(){return this.symbolInstances.length===0&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(l){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(l),this.iconCollisionBox.upload(l)),this.text.upload(l,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(l,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(l,d){const y=this.lineVertexArray.length;if(l.segment!==void 0){let w=l.dist(d[l.segment+1]),T=l.dist(d[l.segment]);const K={};for(let D=l.segment+1;D=0;D--)K[D]={x:d[D].x,y:d[D].y,tileUnitDistanceFromAnchor:T},D>0&&(T+=d[D-1].dist(d[D]));for(let D=0;D0}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(l,d){const y=l.placedSymbolArray.get(d),w=y.vertexStartIndex+4*y.numGlyphs;for(let T=y.vertexStartIndex;Tw[D]-w[z]||T[z]-T[D]),K}addToSortKeyRanges(l,d){const y=this.sortKeyRanges[this.sortKeyRanges.length-1];y&&y.sortKey===d?y.symbolInstanceEnd=l+1:this.sortKeyRanges.push({sortKey:d,symbolInstanceStart:l,symbolInstanceEnd:l+1})}sortFeatures(l){if(this.sortFeaturesByY&&this.sortedAngle!==l&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(l),this.sortedAngle=l,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const d of this.symbolInstanceIndexes){const y=this.symbolInstances.get(d);this.featureSortOrder.push(y.featureIndex),[y.rightJustifiedTextSymbolIndex,y.centerJustifiedTextSymbolIndex,y.leftJustifiedTextSymbolIndex].forEach((w,T,K)=>{w>=0&&K.indexOf(w)===T&&this.addIndicesForPlacedSymbol(this.text,w)}),y.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,y.verticalPlacedTextSymbolIndex),y.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.placedIconSymbolIndex),y.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,y.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}let Ob,Bb;jn("SymbolBucket",jp,{omit:["layers","collisionBoxArray","features","compareText"]}),jp.MAX_GLYPHS=65535,jp.addDynamicAttributes=Av;var hv={get paint(){return Bb=Bb||new xa({"icon-opacity":new Or(mt.paint_symbol["icon-opacity"]),"icon-color":new Or(mt.paint_symbol["icon-color"]),"icon-halo-color":new Or(mt.paint_symbol["icon-halo-color"]),"icon-halo-width":new Or(mt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new Or(mt.paint_symbol["icon-halo-blur"]),"icon-translate":new gr(mt.paint_symbol["icon-translate"]),"icon-translate-anchor":new gr(mt.paint_symbol["icon-translate-anchor"]),"text-opacity":new Or(mt.paint_symbol["text-opacity"]),"text-color":new Or(mt.paint_symbol["text-color"],{runtimeType:m,getOverride:c=>c.textColor,hasOverride:c=>!!c.textColor}),"text-halo-color":new Or(mt.paint_symbol["text-halo-color"]),"text-halo-width":new Or(mt.paint_symbol["text-halo-width"]),"text-halo-blur":new Or(mt.paint_symbol["text-halo-blur"]),"text-translate":new gr(mt.paint_symbol["text-translate"]),"text-translate-anchor":new gr(mt.paint_symbol["text-translate-anchor"])})},get layout(){return Ob=Ob||new xa({"symbol-placement":new gr(mt.layout_symbol["symbol-placement"]),"symbol-spacing":new gr(mt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new gr(mt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new Or(mt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new gr(mt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new gr(mt.layout_symbol["icon-allow-overlap"]),"icon-overlap":new gr(mt.layout_symbol["icon-overlap"]),"icon-ignore-placement":new gr(mt.layout_symbol["icon-ignore-placement"]),"icon-optional":new gr(mt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new gr(mt.layout_symbol["icon-rotation-alignment"]),"icon-size":new Or(mt.layout_symbol["icon-size"]),"icon-text-fit":new gr(mt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new gr(mt.layout_symbol["icon-text-fit-padding"]),"icon-image":new Or(mt.layout_symbol["icon-image"]),"icon-rotate":new Or(mt.layout_symbol["icon-rotate"]),"icon-padding":new Or(mt.layout_symbol["icon-padding"]),"icon-keep-upright":new gr(mt.layout_symbol["icon-keep-upright"]),"icon-offset":new Or(mt.layout_symbol["icon-offset"]),"icon-anchor":new Or(mt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new gr(mt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new gr(mt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new gr(mt.layout_symbol["text-rotation-alignment"]),"text-field":new Or(mt.layout_symbol["text-field"]),"text-font":new Or(mt.layout_symbol["text-font"]),"text-size":new Or(mt.layout_symbol["text-size"]),"text-max-width":new Or(mt.layout_symbol["text-max-width"]),"text-line-height":new gr(mt.layout_symbol["text-line-height"]),"text-letter-spacing":new Or(mt.layout_symbol["text-letter-spacing"]),"text-justify":new Or(mt.layout_symbol["text-justify"]),"text-radial-offset":new Or(mt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new gr(mt.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new Or(mt.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new Or(mt.layout_symbol["text-anchor"]),"text-max-angle":new gr(mt.layout_symbol["text-max-angle"]),"text-writing-mode":new gr(mt.layout_symbol["text-writing-mode"]),"text-rotate":new Or(mt.layout_symbol["text-rotate"]),"text-padding":new gr(mt.layout_symbol["text-padding"]),"text-keep-upright":new gr(mt.layout_symbol["text-keep-upright"]),"text-transform":new Or(mt.layout_symbol["text-transform"]),"text-offset":new Or(mt.layout_symbol["text-offset"]),"text-allow-overlap":new gr(mt.layout_symbol["text-allow-overlap"]),"text-overlap":new gr(mt.layout_symbol["text-overlap"]),"text-ignore-placement":new gr(mt.layout_symbol["text-ignore-placement"]),"text-optional":new gr(mt.layout_symbol["text-optional"])})}};class kb{constructor(l){if(l.property.overrides===void 0)throw new Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=l.property.overrides?l.property.overrides.runtimeType:sr,this.defaultValue=l}evaluate(l){if(l.formattedSection){const d=this.defaultValue.property.overrides;if(d&&d.hasOverride(l.formattedSection))return d.getOverride(l.formattedSection)}return l.feature&&l.featureState?this.defaultValue.evaluate(l.feature,l.featureState):this.defaultValue.property.specification.default}eachChild(l){this.defaultValue.isConstant()||l(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}jn("FormatSectionOverride",kb,{omit:["defaultValue"]});class Q1 extends As{constructor(l){super(l,hv)}recalculate(l,d){if(super.recalculate(l,d),this.layout.get("icon-rotation-alignment")==="auto"&&(this.layout._values["icon-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-rotation-alignment")==="auto"&&(this.layout._values["text-rotation-alignment"]=this.layout.get("symbol-placement")!=="point"?"map":"viewport"),this.layout.get("text-pitch-alignment")==="auto"&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")==="map"?"map":"viewport"),this.layout.get("icon-pitch-alignment")==="auto"&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),this.layout.get("symbol-placement")==="point"){const y=this.layout.get("text-writing-mode");if(y){const w=[];for(const T of y)w.indexOf(T)<0&&w.push(T);this.layout._values["text-writing-mode"]=w}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(l,d,y,w){const T=this.layout.get(l).evaluate(d,{},y,w),K=this._unevaluatedLayout._values[l];return K.isDataDriven()||tc(K.value)||!T?T:function(D,z){return z.replace(/{([^{}]+)}/g,(Q,ie)=>D&&ie in D?String(D[ie]):"")}(d.properties,T)}createBucket(l){return new jp(l)}queryRadius(){return 0}queryIntersectsFeature(){throw new Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(const l of hv.paint.overridableProperties){if(!Q1.hasPaintOverride(this.layout,l))continue;const d=this.paint.get(l),y=new kb(d),w=new So(y,d.property.specification);let T=null;T=d.value.kind==="constant"||d.value.kind==="source"?new Ls("source",w):new Kd("composite",w,d.value.zoomStops),this.paint._values[l]=new Eo(d.property,T,d.parameters)}}_handleOverridablePaintPropertyUpdate(l,d,y){return!(!this.layout||d.isDataDriven()||y.isDataDriven())&&Q1.hasPaintOverride(this.layout,l)}static hasPaintOverride(l,d){const y=l.get("text-field"),w=hv.paint.properties[d];let T=!1;const K=D=>{for(const z of D)if(w.overrides&&w.overrides.hasOverride(z))return void(T=!0)};if(y.value.kind==="constant"&&y.value.value instanceof lo)K(y.value.value.sections);else if(y.value.kind==="source"){const D=Q=>{T||(Q instanceof zr&&Ot(Q.value)===Zn?K(Q.value.sections):Q instanceof cu?K(Q.sections):Q.eachChild(D))},z=y.value;z._styleExpression&&D(z._styleExpression.expression)}return T}}let Ib;var aw={get paint(){return Ib=Ib||new xa({"background-color":new gr(mt.paint_background["background-color"]),"background-pattern":new Jc(mt.paint_background["background-pattern"]),"background-opacity":new gr(mt.paint_background["background-opacity"])})}};class fv extends As{constructor(l){super(l,aw)}}let pv;var sw={get paint(){return pv=pv||new xa({"raster-opacity":new gr(mt.paint_raster["raster-opacity"]),"raster-hue-rotate":new gr(mt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new gr(mt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new gr(mt.paint_raster["raster-brightness-max"]),"raster-saturation":new gr(mt.paint_raster["raster-saturation"]),"raster-contrast":new gr(mt.paint_raster["raster-contrast"]),"raster-resampling":new gr(mt.paint_raster["raster-resampling"]),"raster-fade-duration":new gr(mt.paint_raster["raster-fade-duration"])})}};class lw extends As{constructor(l){super(l,sw)}}class uw extends As{constructor(l){super(l,{}),this.onAdd=d=>{this.implementation.onAdd&&this.implementation.onAdd(d,d.painter.context.gl)},this.onRemove=d=>{this.implementation.onRemove&&this.implementation.onRemove(d,d.painter.context.gl)},this.implementation=l}is3D(){return this.implementation.renderingMode==="3d"}hasOffscreenPass(){return this.implementation.prerender!==void 0}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw new Error("Custom layers cannot be serialized")}}class Aw{constructor(l){this._methodToThrottle=l,this._triggered=!1,typeof MessageChannel<"u"&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._methodToThrottle()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._methodToThrottle()},0))}remove(){delete this._channel,this._methodToThrottle=()=>{}}}const mv=63710088e-1;class zh{constructor(l,d){if(isNaN(l)||isNaN(d))throw new Error(`Invalid LngLat object: (${l}, ${d})`);if(this.lng=+l,this.lat=+d,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new zh(ue(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(l){const d=Math.PI/180,y=this.lat*d,w=l.lat*d,T=Math.sin(y)*Math.sin(w)+Math.cos(y)*Math.cos(w)*Math.cos((l.lng-this.lng)*d);return mv*Math.acos(Math.min(T,1))}static convert(l){if(l instanceof zh)return l;if(Array.isArray(l)&&(l.length===2||l.length===3))return new zh(Number(l[0]),Number(l[1]));if(!Array.isArray(l)&&typeof l=="object"&&l!==null)return new zh(Number("lng"in l?l.lng:l.lon),Number(l.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}const Tb=2*Math.PI*mv;function Kb(c){return Tb*Math.cos(c*Math.PI/180)}function gv(c){return(180+c)/360}function Pb(c){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+c*Math.PI/360)))/360}function u0(c,l){return c/Kb(l)}function yv(c){return 360/Math.PI*Math.atan(Math.exp((180-360*c)*Math.PI/180))-90}class $1{constructor(l,d,y=0){this.x=+l,this.y=+d,this.z=+y}static fromLngLat(l,d=0){const y=zh.convert(l);return new $1(gv(y.lng),Pb(y.lat),u0(d,y.lat))}toLngLat(){return new zh(360*this.x-180,yv(this.y))}toAltitude(){return this.z*Kb(yv(this.y))}meterInMercatorCoordinateUnits(){return 1/Tb*(l=yv(this.y),1/Math.cos(l*Math.PI/180));var l}}function Fb(c,l,d){var y=2*Math.PI*6378137/256/Math.pow(2,d);return[c*y-2*Math.PI*6378137/2,l*y-2*Math.PI*6378137/2]}class vv{constructor(l,d,y){if(l<0||l>25||y<0||y>=Math.pow(2,l)||d<0||d>=Math.pow(2,l))throw new Error(`x=${d}, y=${y}, z=${l} outside of bounds. 0<=x<${Math.pow(2,l)}, 0<=y<${Math.pow(2,l)} 0<=z<=25 `);this.z=l,this.x=d,this.y=y,this.key=A0(0,l,l,d,y)}equals(l){return this.z===l.z&&this.x===l.x&&this.y===l.y}url(l,d,y){const w=(K=this.y,D=this.z,z=Fb(256*(T=this.x),256*(K=Math.pow(2,D)-K-1),D),Q=Fb(256*(T+1),256*(K+1),D),z[0]+","+z[1]+","+Q[0]+","+Q[1]);var T,K,D,z,Q;const ie=function(le,ge,Oe){let Be,ze="";for(let $e=le;$e>0;$e--)Be=1<<$e-1,ze+=(ge&Be?1:0)+(Oe&Be?2:0);return ze}(this.z,this.x,this.y);return l[(this.x+this.y)%l.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(y==="tms"?Math.pow(2,this.z)-this.y-1:this.y)).replace(/{ratio}/g,d>1?"@2x":"").replace(/{quadkey}/g,ie).replace(/{bbox-epsg-3857}/g,w)}isChildOf(l){const d=this.z-l.z;return d>0&&l.x===this.x>>d&&l.y===this.y>>d}getTilePoint(l){const d=Math.pow(2,this.z);return new B((l.x*d-this.x)*Wo,(l.y*d-this.y)*Wo)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Db{constructor(l,d){this.wrap=l,this.canonical=d,this.key=A0(l,d.z,d.z,d.x,d.y)}}class uA{constructor(l,d,y,w,T){if(l= z; overscaledZ = ${l}; z = ${y}`);this.overscaledZ=l,this.wrap=d,this.canonical=new vv(y,+w,+T),this.key=A0(d,l,y,w,T)}clone(){return new uA(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(l){return this.overscaledZ===l.overscaledZ&&this.wrap===l.wrap&&this.canonical.equals(l.canonical)}scaledTo(l){if(l>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${l}; overscaledZ = ${this.overscaledZ}`);const d=this.canonical.z-l;return l>this.canonical.z?new uA(l,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new uA(l,this.wrap,l,this.canonical.x>>d,this.canonical.y>>d)}calculateScaledKey(l,d){if(l>this.overscaledZ)throw new Error(`targetZ > this.overscaledZ; targetZ = ${l}; overscaledZ = ${this.overscaledZ}`);const y=this.canonical.z-l;return l>this.canonical.z?A0(this.wrap*+d,l,this.canonical.z,this.canonical.x,this.canonical.y):A0(this.wrap*+d,l,l,this.canonical.x>>y,this.canonical.y>>y)}isChildOf(l){if(l.wrap!==this.wrap)return!1;const d=this.canonical.z-l.canonical.z;return l.overscaledZ===0||l.overscaledZ>d&&l.canonical.y===this.canonical.y>>d}children(l){if(this.overscaledZ>=l)return[new uA(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const d=this.canonical.z+1,y=2*this.canonical.x,w=2*this.canonical.y;return[new uA(d,this.wrap,d,y,w),new uA(d,this.wrap,d,y+1,w),new uA(d,this.wrap,d,y,w+1),new uA(d,this.wrap,d,y+1,w+1)]}isLessThan(l){return this.wrapl.wrap)&&(this.overscaledZl.overscaledZ)&&(this.canonical.xl.canonical.x)&&this.canonical.ythis.max&&(this.max=le),le=this.dim+1||d<-1||d>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(d+1)*this.stride+(l+1)}unpack(l,d,y){return l*this.redFactor+d*this.greenFactor+y*this.blueFactor-this.baseShift}getPixels(){return new Ss({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(l,d,y){if(this.dim!==l.dim)throw new Error("dem dimension mismatch");let w=d*this.dim,T=d*this.dim+this.dim,K=y*this.dim,D=y*this.dim+this.dim;switch(d){case-1:w=T-1;break;case 1:T=w+1}switch(y){case-1:K=D-1;break;case 1:D=K+1}const z=-d*this.dim,Q=-y*this.dim;for(let ie=K;ie=this._numberToString.length)throw new Error(`Out of bounds. Index requested n=${l} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[l]}}class Lb{constructor(l,d,y,w,T){this.type="Feature",this._vectorTileFeature=l,l._z=d,l._x=y,l._y=w,this.properties=l.properties,this.id=T}get geometry(){return this._geometry===void 0&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(l){this._geometry=l}toJSON(){const l={geometry:this.geometry};for(const d in this)d!=="_geometry"&&d!=="_vectorTileFeature"&&(l[d]=this[d]);return l}}class zb{constructor(l,d){this.tileID=l,this.x=l.canonical.x,this.y=l.canonical.y,this.z=l.canonical.z,this.grid=new Ol(Wo,16,0),this.grid3D=new Ol(Wo,16,0),this.featureIndexArray=new he,this.promoteId=d}insert(l,d,y,w,T,K){const D=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(y,w,T);const z=K?this.grid3D:this.grid;for(let Q=0;Q=0&&le[3]>=0&&z.insert(D,le[0],le[1],le[2],le[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new FA.VectorTile(new Os(this.rawTileData)).layers,this.sourceLayerCoder=new Rb(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(l,d,y,w){this.loadVTLayers();const T=l.params||{},K=Wo/l.tileSize/l.scale,D=wl(T.filter),z=l.queryGeometry,Q=l.queryPadding*K,ie=Wb(z),le=this.grid.query(ie.minX-Q,ie.minY-Q,ie.maxX+Q,ie.maxY+Q),ge=Wb(l.cameraQueryGeometry),Oe=this.grid3D.query(ge.minX-Q,ge.minY-Q,ge.maxX+Q,ge.maxY+Q,($e,tt,St,lt)=>function(vt,tn,an,Vn,cr){for(const Cn of vt)if(tn<=Cn.x&&an<=Cn.y&&Vn>=Cn.x&&cr>=Cn.y)return!0;const xn=[new B(tn,an),new B(tn,cr),new B(Vn,cr),new B(Vn,an)];if(vt.length>2){for(const Cn of xn)if(rd(vt,Cn))return!0}for(let Cn=0;Cn(lt||(lt=EA(vt)),tn.queryIntersectsFeature(z,vt,an,lt,this.z,l.transform,K,l.pixelPosMatrix)))}return Be}loadMatchingFeature(l,d,y,w,T,K,D,z,Q,ie,le){const ge=this.bucketLayerIDs[d];if(K&&!function($e,tt){for(let St=0;St<$e.length;St++)if(tt.indexOf($e[St])>=0)return!0;return!1}(K,ge))return;const Oe=this.sourceLayerCoder.decode(y),Be=this.vtLayers[Oe].feature(w);if(T.needGeometry){const $e=hl(Be,!0);if(!T.filter(new go(this.tileID.overscaledZ),$e,this.tileID.canonical))return}else if(!T.filter(new go(this.tileID.overscaledZ),Be))return;const ze=this.getId(Be,Oe);for(let $e=0;$e{const D=l instanceof uc?l.get(K):null;return D&&D.evaluate?D.evaluate(d,y,w):D})}function Wb(c){let l=1/0,d=1/0,y=-1/0,w=-1/0;for(const T of c)l=Math.min(l,T.x),d=Math.min(d,T.y),y=Math.max(y,T.x),w=Math.max(w,T.y);return{minX:l,minY:d,maxX:y,maxY:w}}function cw(c,l){return l-c}function Nb(c,l,d,y,w){const T=[];for(let K=0;K=y&&le.x>=y||(ie.x>=y?ie=new B(y,ie.y+(y-ie.x)/(le.x-ie.x)*(le.y-ie.y))._round():le.x>=y&&(le=new B(y,ie.y+(y-ie.x)/(le.x-ie.x)*(le.y-ie.y))._round()),ie.y>=w&&le.y>=w||(ie.y>=w?ie=new B(ie.x+(w-ie.y)/(le.y-ie.y)*(le.x-ie.x),w)._round():le.y>=w&&(le=new B(ie.x+(w-ie.y)/(le.y-ie.y)*(le.x-ie.x),w)._round()),z&&ie.equals(z[z.length-1])||(z=[ie],T.push(z)),z.push(le)))))}}return T}jn("FeatureIndex",zb,{omit:["rawTileData","sourceLayerCoder"]});class jh extends B{constructor(l,d,y,w){super(l,d),this.angle=y,w!==void 0&&(this.segment=w)}clone(){return new jh(this.x,this.y,this.angle,this.segment)}}function Cv(c,l,d,y,w){if(l.segment===void 0||d===0)return!0;let T=l,K=l.segment+1,D=0;for(;D>-d/2;){if(K--,K<0)return!1;D-=c[K].dist(T),T=c[K]}D+=c[K].dist(c[K+1]),K++;const z=[];let Q=0;for(;Dy;)Q-=z.shift().angleDelta;if(Q>w)return!1;K++,D+=ie.dist(le)}return!0}function _v(c){let l=0;for(let d=0;dQ){const Be=(Q-z)/Oe,ze=Sr.number(le.x,ge.x,Be),$e=Sr.number(le.y,ge.y,Be),tt=new jh(ze,$e,ge.angleTo(le),ie);return tt._round(),!K||Cv(c,tt,D,K,l)?tt:void 0}z+=Oe}}function hw(c,l,d,y,w,T,K,D,z){const Q=Gb(y,T,K),ie=Qb(y,w),le=ie*K,ge=c[0].x===0||c[0].x===z||c[0].y===0||c[0].y===z;return l-le=0&&vt=0&&tn=0&&ge+Q<=ie){const an=new jh(vt,tn,St,Be);an._round(),y&&!Cv(c,an,T,y,w)||Oe.push(an)}}le+=tt}return D||Oe.length||K||(Oe=c0(c,le/2,d,y,w,T,K,!0,z)),Oe}jn("Anchor",jh);const Wp=To;function $b(c,l,d,y){const w=[],T=c.image,K=T.pixelRatio,D=T.paddedRect.w-2*Wp,z=T.paddedRect.h-2*Wp,Q=c.right-c.left,ie=c.bottom-c.top,le=T.stretchX||[[0,D]],ge=T.stretchY||[[0,z]],Oe=(Kn,ur)=>Kn+ur[1]-ur[0],Be=le.reduce(Oe,0),ze=ge.reduce(Oe,0),$e=D-Be,tt=z-ze;let St=0,lt=Be,vt=0,tn=ze,an=0,Vn=$e,cr=0,xn=tt;if(T.content&&y){const Kn=T.content;St=Y1(le,0,Kn[0]),vt=Y1(ge,0,Kn[1]),lt=Y1(le,Kn[0],Kn[2]),tn=Y1(ge,Kn[1],Kn[3]),an=Kn[0]-St,cr=Kn[1]-vt,Vn=Kn[2]-Kn[0]-lt,xn=Kn[3]-Kn[1]-tn}const Cn=(Kn,ur,Dn,wn)=>{const Kr=q1(Kn.stretch-St,lt,Q,c.left),wr=V1(Kn.fixed-an,Vn,Kn.stretch,Be),Bi=q1(ur.stretch-vt,tn,ie,c.top),ea=V1(ur.fixed-cr,xn,ur.stretch,ze),No=q1(Dn.stretch-St,lt,Q,c.left),Xa=V1(Dn.fixed-an,Vn,Dn.stretch,Be),Lu=q1(wn.stretch-vt,tn,ie,c.top),Kl=V1(wn.fixed-cr,xn,wn.stretch,ze),ka=new B(Kr,Bi),Go=new B(No,Bi),Ja=new B(No,Lu),Xl=new B(Kr,Lu),Jl=new B(wr/K,ea/K),ks=new B(Xa/K,Kl/K),Is=l*Math.PI/180;if(Is){const Ia=Math.sin(Is),Hr=Math.cos(Is),eu=[Hr,-Ia,Ia,Hr];ka._matMult(eu),Go._matMult(eu),Xl._matMult(eu),Ja._matMult(eu)}const Pl=Kn.stretch+Kn.fixed,Fl=ur.stretch+ur.fixed;return{tl:ka,tr:Go,bl:Xl,br:Ja,tex:{x:T.paddedRect.x+Wp+Pl,y:T.paddedRect.y+Wp+Fl,w:Dn.stretch+Dn.fixed-Pl,h:wn.stretch+wn.fixed-Fl},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:Jl,pixelOffsetBR:ks,minFontScaleX:Vn/K/Q,minFontScaleY:xn/K/ie,isSDF:d}};if(y&&(T.stretchX||T.stretchY)){const Kn=Yb(le,$e,Be),ur=Yb(ge,tt,ze);for(let Dn=0;Dn0&&(Be=Math.max(10,Be),this.circleDiameter=Be)}else{let le=K.top*D-z[0],ge=K.bottom*D+z[2],Oe=K.left*D-z[3],Be=K.right*D+z[1];const ze=K.collisionPadding;if(ze&&(Oe-=ze[0]*D,le-=ze[1]*D,Be+=ze[2]*D,ge+=ze[3]*D),ie){const $e=new B(Oe,le),tt=new B(Be,le),St=new B(Oe,ge),lt=new B(Be,ge),vt=ie*Math.PI/180;$e._rotate(vt),tt._rotate(vt),St._rotate(vt),lt._rotate(vt),Oe=Math.min($e.x,tt.x,St.x,lt.x),Be=Math.max($e.x,tt.x,St.x,lt.x),le=Math.min($e.y,tt.y,St.y,lt.y),ge=Math.max($e.y,tt.y,St.y,lt.y)}l.emplaceBack(d.x,d.y,Oe,le,Be,ge,y,w,T)}this.boxEndIndex=l.length}}class fw{constructor(l=[],d=pw){if(this.data=l,this.length=this.data.length,this.compare=d,this.length>0)for(let y=(this.length>>1)-1;y>=0;y--)this._down(y)}push(l){this.data.push(l),this.length++,this._up(this.length-1)}pop(){if(this.length===0)return;const l=this.data[0],d=this.data.pop();return this.length--,this.length>0&&(this.data[0]=d,this._down(0)),l}peek(){return this.data[0]}_up(l){const{data:d,compare:y}=this,w=d[l];for(;l>0;){const T=l-1>>1,K=d[T];if(y(w,K)>=0)break;d[l]=K,l=T}d[l]=w}_down(l){const{data:d,compare:y}=this,w=this.length>>1,T=d[l];for(;l=0)break;d[l]=D,l=K}d[l]=T}}function pw(c,l){return cl?1:0}function mw(c,l=1,d=!1){let y=1/0,w=1/0,T=-1/0,K=-1/0;const D=c[0];for(let Oe=0;OeT)&&(T=Be.x),(!Oe||Be.y>K)&&(K=Be.y)}const z=Math.min(T-y,K-w);let Q=z/2;const ie=new fw([],gw);if(z===0)return new B(y,w);for(let Oe=y;Oele.d||!le.d)&&(le=Oe,d&&console.log("found best %d after %d probes",Math.round(1e4*Oe.d)/1e4,ge)),Oe.max-le.d<=l||(Q=Oe.h/2,ie.push(new Xd(Oe.p.x-Q,Oe.p.y-Q,Q,c)),ie.push(new Xd(Oe.p.x+Q,Oe.p.y-Q,Q,c)),ie.push(new Xd(Oe.p.x-Q,Oe.p.y+Q,Q,c)),ie.push(new Xd(Oe.p.x+Q,Oe.p.y+Q,Q,c)),ge+=4)}return d&&(console.log(`num probes: ${ge}`),console.log(`best distance: ${le.d}`)),le.p}function gw(c,l){return l.max-c.max}function Xd(c,l,d,y){this.p=new B(c,l),this.h=d,this.d=function(w,T){let K=!1,D=1/0;for(let z=0;zw.y!=Be.y>w.y&&w.x<(Be.x-Oe.x)*(w.y-Oe.y)/(Be.y-Oe.y)+Oe.x&&(K=!K),D=Math.min(D,Kh(w,Oe,Be))}}return(K?1:-1)*Math.sqrt(D)}(this.p,y),this.max=this.d+this.h*Math.SQRT2}var pl;a.ap=void 0,(pl=a.ap||(a.ap={}))[pl.center=1]="center",pl[pl.left=2]="left",pl[pl.right=3]="right",pl[pl.top=4]="top",pl[pl.bottom=5]="bottom",pl[pl["top-left"]=6]="top-left",pl[pl["top-right"]=7]="top-right",pl[pl["bottom-left"]=8]="bottom-left",pl[pl["bottom-right"]=9]="bottom-right";const Jd=7,Z1=Number.POSITIVE_INFINITY;function X1(c,l){return l[1]!==Z1?function(d,y,w){let T=0,K=0;switch(y=Math.abs(y),w=Math.abs(w),d){case"top-right":case"top-left":case"top":K=w-Jd;break;case"bottom-right":case"bottom-left":case"bottom":K=-w+Jd}switch(d){case"top-right":case"bottom-right":case"right":T=-y;break;case"top-left":case"bottom-left":case"left":T=y}return[T,K]}(c,l[0],l[1]):function(d,y){let w=0,T=0;y<0&&(y=0);const K=y/Math.SQRT2;switch(d){case"top-right":case"top-left":T=K-Jd;break;case"bottom-right":case"bottom-left":T=-K+Jd;break;case"bottom":T=-y+Jd;break;case"top":T=y-Jd}switch(d){case"top-right":case"bottom-right":w=-K;break;case"top-left":case"bottom-left":w=K;break;case"left":w=y;break;case"right":w=-y}return[w,T]}(c,l[0])}function bv(c,l,d){var y;const w=c.layout,T=(y=w.get("text-variable-anchor-offset"))===null||y===void 0?void 0:y.evaluate(l,{},d);if(T){const D=T.values,z=[];for(let Q=0;Qge*Zt);ie.startsWith("top")?le[1]-=Jd:ie.startsWith("bottom")&&(le[1]+=Jd),z[Q+1]=le}return new ve(z)}const K=w.get("text-variable-anchor");if(K){let D;D=c._unevaluatedLayout.getValue("text-radial-offset")!==void 0?[w.get("text-radial-offset").evaluate(l,{},d)*Zt,Z1]:w.get("text-offset").evaluate(l,{},d).map(Q=>Q*Zt);const z=[];for(const Q of K)z.push(Q,X1(Q,D));return new ve(z)}return null}function J1(c){switch(c){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function qb(c,l,d,y,w,T,K,D,z,Q,ie){let le=T.textMaxSize.evaluate(l,{});le===void 0&&(le=K);const ge=c.layers[0].layout,Oe=ge.get("icon-offset").evaluate(l,{},ie),Be=Vb(d.horizontal),ze=K/24,$e=c.tilePixelRatio*ze,tt=c.tilePixelRatio*le/24,St=c.tilePixelRatio*D,lt=c.tilePixelRatio*ge.get("symbol-spacing"),vt=ge.get("text-padding")*c.tilePixelRatio,tn=function(wn,Kr,wr,Bi=1){const ea=wn.get("icon-padding").evaluate(Kr,{},wr),No=ea&&ea.values;return[No[0]*Bi,No[1]*Bi,No[2]*Bi,No[3]*Bi]}(ge,l,ie,c.tilePixelRatio),an=ge.get("text-max-angle")/180*Math.PI,Vn=ge.get("text-rotation-alignment")!=="viewport"&&ge.get("symbol-placement")!=="point",cr=ge.get("icon-rotation-alignment")==="map"&&ge.get("symbol-placement")!=="point",xn=ge.get("symbol-placement"),Cn=lt/2,Kn=ge.get("icon-text-fit");let ur;y&&Kn!=="none"&&(c.allowVerticalPlacement&&d.vertical&&(ur=N1(y,d.vertical,Kn,ge.get("icon-text-fit-padding"),Oe,ze)),Be&&(y=N1(y,Be,Kn,ge.get("icon-text-fit-padding"),Oe,ze)));const Dn=(wn,Kr)=>{Kr.x<0||Kr.x>=Wo||Kr.y<0||Kr.y>=Wo||function(wr,Bi,ea,No,Xa,Lu,Kl,ka,Go,Ja,Xl,Jl,ks,Is,Pl,Fl,Ia,Hr,eu,Ko,Wi,Dl,mi,Ts,AA){const zu=wr.addToLineVertexArray(Bi,ea);let Mc,eh,RA,cA,gu=0,th=0,p0=0,Xb=0,Bv=-1,kv=-1;const nh={};let Jb=vo("");if(wr.allowVerticalPlacement&&No.vertical){const Ul=ka.layout.get("text-rotate").evaluate(Wi,{},Ts)+90;RA=new H1(Go,Bi,Ja,Xl,Jl,No.vertical,ks,Is,Pl,Ul),Kl&&(cA=new H1(Go,Bi,Ja,Xl,Jl,Kl,Ia,Hr,Pl,Ul))}if(Xa){const Ul=ka.layout.get("icon-rotate").evaluate(Wi,{}),Wu=ka.layout.get("icon-text-fit")!=="none",$f=$b(Xa,Ul,mi,Wu),Ec=Kl?$b(Kl,Ul,mi,Wu):void 0;eh=new H1(Go,Bi,Ja,Xl,Jl,Xa,Ia,Hr,!1,Ul),gu=4*$f.length;const Yf=wr.iconSizeData;let Oc=null;Yf.kind==="source"?(Oc=[dd*ka.layout.get("icon-size").evaluate(Wi,{})],Oc[0]>Lh&&He(`${wr.layerIds[0]}: Value for "icon-size" is >= ${l0}. Reduce your "icon-size".`)):Yf.kind==="composite"&&(Oc=[dd*Dl.compositeIconSizes[0].evaluate(Wi,{},Ts),dd*Dl.compositeIconSizes[1].evaluate(Wi,{},Ts)],(Oc[0]>Lh||Oc[1]>Lh)&&He(`${wr.layerIds[0]}: Value for "icon-size" is >= ${l0}. Reduce your "icon-size".`)),wr.addSymbols(wr.icon,$f,Oc,Ko,eu,Wi,a.ah.none,Bi,zu.lineStartIndex,zu.lineLength,-1,Ts),Bv=wr.icon.placedSymbolArray.length-1,Ec&&(th=4*Ec.length,wr.addSymbols(wr.icon,Ec,Oc,Ko,eu,Wi,a.ah.vertical,Bi,zu.lineStartIndex,zu.lineLength,-1,Ts),kv=wr.icon.placedSymbolArray.length-1)}const ex=Object.keys(No.horizontal);for(const Ul of ex){const Wu=No.horizontal[Ul];if(!Mc){Jb=vo(Wu.text);const Ec=ka.layout.get("text-rotate").evaluate(Wi,{},Ts);Mc=new H1(Go,Bi,Ja,Xl,Jl,Wu,ks,Is,Pl,Ec)}const $f=Wu.positionedLines.length===1;if(p0+=xv(wr,Bi,Wu,Lu,ka,Pl,Wi,Fl,zu,No.vertical?a.ah.horizontal:a.ah.horizontalOnly,$f?ex:[Ul],nh,Bv,Dl,Ts),$f)break}No.vertical&&(Xb+=xv(wr,Bi,No.vertical,Lu,ka,Pl,Wi,Fl,zu,a.ah.vertical,["vertical"],nh,kv,Dl,Ts));const Iv=Mc?Mc.boxStartIndex:wr.collisionBoxArray.length,Cw=Mc?Mc.boxEndIndex:wr.collisionBoxArray.length,Tv=RA?RA.boxStartIndex:wr.collisionBoxArray.length,_w=RA?RA.boxEndIndex:wr.collisionBoxArray.length,bw=eh?eh.boxStartIndex:wr.collisionBoxArray.length,xw=eh?eh.boxEndIndex:wr.collisionBoxArray.length,ml=cA?cA.boxStartIndex:wr.collisionBoxArray.length,ju=cA?cA.boxEndIndex:wr.collisionBoxArray.length;let Sc=-1;const tg=(Ul,Wu)=>Ul&&Ul.circleDiameter?Math.max(Ul.circleDiameter,Wu):Wu;Sc=tg(Mc,Sc),Sc=tg(RA,Sc),Sc=tg(eh,Sc),Sc=tg(cA,Sc);const tx=Sc>-1?1:0;tx&&(Sc*=AA/Zt),wr.glyphOffsetArray.length>=jp.MAX_GLYPHS&&He("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),Wi.sortKey!==void 0&&wr.addToSortKeyRanges(wr.symbolInstances.length,Wi.sortKey);const nx=bv(ka,Wi,Ts),[ww,Mw]=function(Ul,Wu){const $f=Ul.length,Ec=Wu==null?void 0:Wu.values;if((Ec==null?void 0:Ec.length)>0)for(let Yf=0;Yf=0?nh.right:-1,nh.center>=0?nh.center:-1,nh.left>=0?nh.left:-1,nh.vertical||-1,Bv,kv,Jb,Iv,Cw,Tv,_w,bw,xw,ml,ju,Ja,p0,Xb,gu,th,tx,0,ks,Sc,ww,Mw)}(c,Kr,wn,d,y,w,ur,c.layers[0],c.collisionBoxArray,l.index,l.sourceLayerIndex,c.index,$e,[vt,vt,vt,vt],Vn,z,St,tn,cr,Oe,l,T,Q,ie,K)};if(xn==="line")for(const wn of Nb(l.geometry,0,0,Wo,Wo)){const Kr=hw(wn,lt,an,d.vertical||Be,y,24,tt,c.overscaling,Wo);for(const wr of Kr)Be&&yw(c,Be.text,Cn,wr)||Dn(wn,wr)}else if(xn==="line-center"){for(const wn of l.geometry)if(wn.length>1){const Kr=dw(wn,an,d.vertical||Be,y,24,tt);Kr&&Dn(wn,Kr)}}else if(l.type==="Polygon")for(const wn of e0(l.geometry,0)){const Kr=mw(wn,16);Dn(wn[0],new jh(Kr.x,Kr.y,0))}else if(l.type==="LineString")for(const wn of l.geometry)Dn(wn,new jh(wn[0].x,wn[0].y,0));else if(l.type==="Point")for(const wn of l.geometry)for(const Kr of wn)Dn([Kr],new jh(Kr.x,Kr.y,0))}function xv(c,l,d,y,w,T,K,D,z,Q,ie,le,ge,Oe,Be){const ze=function(St,lt,vt,tn,an,Vn,cr,xn){const Cn=tn.layout.get("text-rotate").evaluate(Vn,{})*Math.PI/180,Kn=[];for(const ur of lt.positionedLines)for(const Dn of ur.positionedGlyphs){if(!Dn.rect)continue;const wn=Dn.rect||{};let Kr=xc+1,wr=!0,Bi=1,ea=0;const No=(an||xn)&&Dn.vertical,Xa=Dn.metrics.advance*Dn.scale/2;if(xn&<.verticalizable&&(ea=ur.lineOffset/2-(Dn.imageName?-(Zt-Dn.metrics.width*Dn.scale)/2:(Dn.scale-1)*Zt)),Dn.imageName){const Ko=cr[Dn.imageName];wr=Ko.sdf,Bi=Ko.pixelRatio,Kr=To/Bi}const Lu=an?[Dn.x+Xa,Dn.y]:[0,0];let Kl=an?[0,0]:[Dn.x+Xa+vt[0],Dn.y+vt[1]-ea],ka=[0,0];No&&(ka=Kl,Kl=[0,0]);const Go=Dn.metrics.isDoubleResolution?2:1,Ja=(Dn.metrics.left-Kr)*Dn.scale-Xa+Kl[0],Xl=(-Dn.metrics.top-Kr)*Dn.scale+Kl[1],Jl=Ja+wn.w/Go*Dn.scale/Bi,ks=Xl+wn.h/Go*Dn.scale/Bi,Is=new B(Ja,Xl),Pl=new B(Jl,Xl),Fl=new B(Ja,ks),Ia=new B(Jl,ks);if(No){const Ko=new B(-Xa,Xa-a0),Wi=-Math.PI/2,Dl=Zt/2-Xa,mi=new B(5-a0-Dl,-(Dn.imageName?Dl:0)),Ts=new B(...ka);Is._rotateAround(Wi,Ko)._add(mi)._add(Ts),Pl._rotateAround(Wi,Ko)._add(mi)._add(Ts),Fl._rotateAround(Wi,Ko)._add(mi)._add(Ts),Ia._rotateAround(Wi,Ko)._add(mi)._add(Ts)}if(Cn){const Ko=Math.sin(Cn),Wi=Math.cos(Cn),Dl=[Wi,-Ko,Ko,Wi];Is._matMult(Dl),Pl._matMult(Dl),Fl._matMult(Dl),Ia._matMult(Dl)}const Hr=new B(0,0),eu=new B(0,0);Kn.push({tl:Is,tr:Pl,bl:Fl,br:Ia,tex:wn,writingMode:lt.writingMode,glyphOffset:Lu,sectionIndex:Dn.sectionIndex,isSDF:wr,pixelOffsetTL:Hr,pixelOffsetBR:eu,minFontScaleX:0,minFontScaleY:0})}return Kn}(0,d,D,w,T,K,y,c.allowVerticalPlacement),$e=c.textSizeData;let tt=null;$e.kind==="source"?(tt=[dd*w.layout.get("text-size").evaluate(K,{})],tt[0]>Lh&&He(`${c.layerIds[0]}: Value for "text-size" is >= ${l0}. Reduce your "text-size".`)):$e.kind==="composite"&&(tt=[dd*Oe.compositeTextSizes[0].evaluate(K,{},Be),dd*Oe.compositeTextSizes[1].evaluate(K,{},Be)],(tt[0]>Lh||tt[1]>Lh)&&He(`${c.layerIds[0]}: Value for "text-size" is >= ${l0}. Reduce your "text-size".`)),c.addSymbols(c.text,ze,tt,D,T,K,Q,l,z.lineStartIndex,z.lineLength,ge,Be);for(const St of ie)le[St]=c.text.placedSymbolArray.length-1;return 4*ze.length}function Vb(c){for(const l in c)return c[l];return null}function yw(c,l,d,y){const w=c.compareText;if(l in w){const T=w[l];for(let K=T.length-1;K>=0;K--)if(y.dist(T[K])>4;if(w!==1)throw new Error(`Got v${w} data when expected v1.`);const T=Hb[15&y];if(!T)throw new Error("Unrecognized array type.");const[K]=new Uint16Array(l,2,1),[D]=new Uint32Array(l,4,1);return new Np(D,K,T,l)}constructor(l,d=64,y=Float64Array,w){if(isNaN(l)||l<0)throw new Error(`Unpexpected numItems value: ${l}.`);this.numItems=+l,this.nodeSize=Math.min(Math.max(+d,2),65535),this.ArrayType=y,this.IndexArrayType=l<65536?Uint16Array:Uint32Array;const T=Hb.indexOf(this.ArrayType),K=2*l*this.ArrayType.BYTES_PER_ELEMENT,D=l*this.IndexArrayType.BYTES_PER_ELEMENT,z=(8-D%8)%8;if(T<0)throw new Error(`Unexpected typed array class: ${y}.`);w&&w instanceof ArrayBuffer?(this.data=w,this.ids=new this.IndexArrayType(this.data,8,l),this.coords=new this.ArrayType(this.data,8+D+z,2*l),this._pos=2*l,this._finished=!0):(this.data=new ArrayBuffer(8+K+D+z),this.ids=new this.IndexArrayType(this.data,8,l),this.coords=new this.ArrayType(this.data,8+D+z,2*l),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+T]),new Uint16Array(this.data,2,1)[0]=d,new Uint32Array(this.data,4,1)[0]=l)}add(l,d){const y=this._pos>>1;return this.ids[y]=y,this.coords[this._pos++]=l,this.coords[this._pos++]=d,y}finish(){const l=this._pos>>1;if(l!==this.numItems)throw new Error(`Added ${l} items when expected ${this.numItems}.`);return Gp(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(l,d,y,w){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:T,coords:K,nodeSize:D}=this,z=[0,T.length-1,0],Q=[];for(;z.length;){const ie=z.pop()||0,le=z.pop()||0,ge=z.pop()||0;if(le-ge<=D){for(let $e=ge;$e<=le;$e++){const tt=K[2*$e],St=K[2*$e+1];tt>=l&&tt<=y&&St>=d&&St<=w&&Q.push(T[$e])}continue}const Oe=ge+le>>1,Be=K[2*Oe],ze=K[2*Oe+1];Be>=l&&Be<=y&&ze>=d&&ze<=w&&Q.push(T[Oe]),(ie===0?l<=Be:d<=ze)&&(z.push(ge),z.push(Oe-1),z.push(1-ie)),(ie===0?y>=Be:w>=ze)&&(z.push(Oe+1),z.push(le),z.push(1-ie))}return Q}within(l,d,y){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:w,coords:T,nodeSize:K}=this,D=[0,w.length-1,0],z=[],Q=y*y;for(;D.length;){const ie=D.pop()||0,le=D.pop()||0,ge=D.pop()||0;if(le-ge<=K){for(let $e=ge;$e<=le;$e++)wv(T[2*$e],T[2*$e+1],l,d)<=Q&&z.push(w[$e]);continue}const Oe=ge+le>>1,Be=T[2*Oe],ze=T[2*Oe+1];wv(Be,ze,l,d)<=Q&&z.push(w[Oe]),(ie===0?l-y<=Be:d-y<=ze)&&(D.push(ge),D.push(Oe-1),D.push(1-ie)),(ie===0?l+y>=Be:d+y>=ze)&&(D.push(Oe+1),D.push(le),D.push(1-ie))}return z}}function Gp(c,l,d,y,w,T){if(w-y<=d)return;const K=y+w>>1;Zb(c,l,K,y,w,T),Gp(c,l,d,y,K-1,1-T),Gp(c,l,d,K+1,w,1-T)}function Zb(c,l,d,y,w,T){for(;w>y;){if(w-y>600){const Q=w-y+1,ie=d-y+1,le=Math.log(Q),ge=.5*Math.exp(2*le/3),Oe=.5*Math.sqrt(le*ge*(Q-ge)/Q)*(ie-Q/2<0?-1:1);Zb(c,l,d,Math.max(y,Math.floor(d-ie*ge/Q+Oe)),Math.min(w,Math.floor(d+(Q-ie)*ge/Q+Oe)),T)}const K=l[2*d+T];let D=y,z=w;for(d0(c,l,y,d),l[2*w+T]>K&&d0(c,l,y,w);DK;)z--}l[2*y+T]===K?d0(c,l,y,z):(z++,d0(c,l,z,w)),z<=d&&(y=z+1),d<=z&&(w=z-1)}}function d0(c,l,d,y){h0(c,d,y),h0(l,2*d,2*y),h0(l,2*d+1,2*y+1)}function h0(c,l,d){const y=c[l];c[l]=c[d],c[d]=y}function wv(c,l,d,y){const w=c-d,T=l-y;return w*w+T*T}var Mv;a.bb=void 0,(Mv=a.bb||(a.bb={})).create="create",Mv.load="load",Mv.fullLoad="fullLoad";let eg=null,f0=[];const Sv=1e3/60,Ev="loadTime",Ov="fullLoadTime",vw={mark(c){performance.mark(c)},frame(c){const l=c;eg!=null&&f0.push(l-eg),eg=l},clearMetrics(){eg=null,f0=[],performance.clearMeasures(Ev),performance.clearMeasures(Ov);for(const c in a.bb)performance.clearMarks(a.bb[c])},getPerformanceMetrics(){performance.measure(Ev,a.bb.create,a.bb.load),performance.measure(Ov,a.bb.create,a.bb.fullLoad);const c=performance.getEntriesByName(Ev)[0].duration,l=performance.getEntriesByName(Ov)[0].duration,d=f0.length,y=1/(f0.reduce((T,K)=>T+K,0)/d/1e3),w=f0.filter(T=>T>Sv).reduce((T,K)=>T+(K-Sv)/Sv,0);return{loadTime:c,fullLoadTime:l,fps:y,percentDroppedFrames:w/(d+w)*100,totalFrames:d}}};a.$=xr,a.A=Ph,a.B=function(c){if(Jt==null){const l=c.navigator?c.navigator.userAgent:null;Jt=!!c.safari||!(!l||!(/\b(iPad|iPhone|iPod)\b/.test(l)||l.match("Safari")&&!l.match("Chrome")))}return Jt},a.C=class{constructor(c,l){this.target=c,this.mapId=l,this.resolveRejects={},this.tasks={},this.taskQueue=[],this.abortControllers={},this.messageHandlers={},this.invoker=new Aw(()=>this.process()),this.subscription=function(d,y,w,T){return d.addEventListener(y,w,!1),{unsubscribe:()=>{d.removeEventListener(y,w,!1)}}}(this.target,"message",d=>this.receive(d)),this.globalScope=Ft(self)?c:window}registerMessageHandler(c,l){this.messageHandlers[c]=l}sendAsync(c,l){return new Promise((d,y)=>{const w=Math.round(1e18*Math.random()).toString(36).substring(0,10);this.resolveRejects[w]={resolve:d,reject:y},l&&l.signal.addEventListener("abort",()=>{delete this.resolveRejects[w];const D={id:w,type:"",origin:location.origin,targetMapId:c.targetMapId,sourceMapId:this.mapId};this.target.postMessage(D)},{once:!0});const T=[],K=Object.assign(Object.assign({},c),{id:w,sourceMapId:this.mapId,origin:location.origin,data:oc(c.data,T)});this.target.postMessage(K,{transfer:T})})}receive(c){const l=c.data,d=l.id;if(l.origin===location.origin&&(!l.targetMapId||this.mapId===l.targetMapId)){if(l.type===""){delete this.tasks[d];const y=this.abortControllers[d];return delete this.abortControllers[d],void(y&&y.abort())}if(Ft(self)||l.mustQueue)return this.tasks[d]=l,this.taskQueue.push(d),void this.invoker.trigger();this.processTask(d,l)}}process(){if(this.taskQueue.length===0)return;const c=this.taskQueue.shift(),l=this.tasks[c];delete this.tasks[c],this.taskQueue.length>0&&this.invoker.trigger(),l&&this.processTask(c,l)}processTask(c,l){return f(this,void 0,void 0,function*(){if(l.type===""){const w=this.resolveRejects[c];return delete this.resolveRejects[c],w?void(l.error?w.reject(cl(l.error)):w.resolve(cl(l.data))):void 0}if(!this.messageHandlers[l.type])return void this.completeTask(c,new Error(`Could not find a registered handler for ${l.type}, map ID: ${this.mapId}, available handlers: ${Object.keys(this.messageHandlers).join(", ")}`));const d=cl(l.data),y=new AbortController;this.abortControllers[c]=y;try{const w=yield this.messageHandlers[l.type](l.sourceMapId,d,y);this.completeTask(c,null,w)}catch(w){this.completeTask(c,w)}})}completeTask(c,l,d){const y=[];delete this.abortControllers[c];const w={id:c,type:"",sourceMapId:this.mapId,origin:location.origin,error:l?oc(l):null,data:oc(d,y)};this.target.postMessage(w,{transfer:y})}remove(){this.invoker.remove(),this.subscription.unsubscribe()}},a.D=gr,a.E=zn,a.F=function(){var c=new Ph(16);return Ph!=Float32Array&&(c[1]=0,c[2]=0,c[3]=0,c[4]=0,c[6]=0,c[7]=0,c[8]=0,c[9]=0,c[11]=0,c[12]=0,c[13]=0,c[14]=0),c[0]=1,c[5]=1,c[10]=1,c[15]=1,c},a.G=Se,a.H=function(c,l,d){var y,w,T,K,D,z,Q,ie,le,ge,Oe,Be,ze=d[0],$e=d[1],tt=d[2];return l===c?(c[12]=l[0]*ze+l[4]*$e+l[8]*tt+l[12],c[13]=l[1]*ze+l[5]*$e+l[9]*tt+l[13],c[14]=l[2]*ze+l[6]*$e+l[10]*tt+l[14],c[15]=l[3]*ze+l[7]*$e+l[11]*tt+l[15]):(w=l[1],T=l[2],K=l[3],D=l[4],z=l[5],Q=l[6],ie=l[7],le=l[8],ge=l[9],Oe=l[10],Be=l[11],c[0]=y=l[0],c[1]=w,c[2]=T,c[3]=K,c[4]=D,c[5]=z,c[6]=Q,c[7]=ie,c[8]=le,c[9]=ge,c[10]=Oe,c[11]=Be,c[12]=y*ze+D*$e+le*tt+l[12],c[13]=w*ze+z*$e+ge*tt+l[13],c[14]=T*ze+Q*$e+Oe*tt+l[14],c[15]=K*ze+ie*$e+Be*tt+l[15]),c},a.I=cd,a.J=function(c,l,d){var y=d[0],w=d[1],T=d[2];return c[0]=l[0]*y,c[1]=l[1]*y,c[2]=l[2]*y,c[3]=l[3]*y,c[4]=l[4]*w,c[5]=l[5]*w,c[6]=l[6]*w,c[7]=l[7]*w,c[8]=l[8]*T,c[9]=l[9]*T,c[10]=l[10]*T,c[11]=l[11]*T,c[12]=l[12],c[13]=l[13],c[14]=l[14],c[15]=l[15],c},a.K=Js,a.L=function(c,l){const d={};for(let y=0;y{const l=window.document.createElement("video");return l.muted=!0,new Promise(d=>{l.onloadstart=()=>{d(l)};for(const y of c){const w=window.document.createElement("source");Ze(y)||(l.crossOrigin="Anonymous"),w.src=y,l.appendChild(w)}})},a.a3=function(){return Re++},a.a4=u,a.a5=jp,a.a6=wl,a.a7=hl,a.a8=go,a.a9=Lb,a.aA=ct,a.aB=function(c,l){if(!c)return[{command:"setStyle",args:[l]}];let d=[];try{if(!Sn(c.version,l.version))return[{command:"setStyle",args:[l]}];Sn(c.center,l.center)||d.push({command:"setCenter",args:[l.center]}),Sn(c.zoom,l.zoom)||d.push({command:"setZoom",args:[l.zoom]}),Sn(c.bearing,l.bearing)||d.push({command:"setBearing",args:[l.bearing]}),Sn(c.pitch,l.pitch)||d.push({command:"setPitch",args:[l.pitch]}),Sn(c.sprite,l.sprite)||d.push({command:"setSprite",args:[l.sprite]}),Sn(c.glyphs,l.glyphs)||d.push({command:"setGlyphs",args:[l.glyphs]}),Sn(c.transition,l.transition)||d.push({command:"setTransition",args:[l.transition]}),Sn(c.light,l.light)||d.push({command:"setLight",args:[l.light]}),Sn(c.terrain,l.terrain)||d.push({command:"setTerrain",args:[l.terrain]});const y={},w=[];(function(K,D,z,Q){let ie;for(ie in D=D||{},K=K||{})Object.prototype.hasOwnProperty.call(K,ie)&&(Object.prototype.hasOwnProperty.call(D,ie)||Qr(ie,z,Q));for(ie in D)Object.prototype.hasOwnProperty.call(D,ie)&&(Object.prototype.hasOwnProperty.call(K,ie)?Sn(K[ie],D[ie])||(K[ie].type==="geojson"&&D[ie].type==="geojson"&&vi(K,D,ie)?nr(z,{command:"setGeoJSONSourceData",args:[ie,D[ie].data]}):_r(ie,D,z,Q)):Mr(ie,D,z))})(c.sources,l.sources,w,y);const T=[];c.layers&&c.layers.forEach(K=>{"source"in K&&y[K.source]?d.push({command:"removeLayer",args:[K.id]}):T.push(K)}),d=d.concat(w),function(K,D,z){D=D||[];const Q=(K=K||[]).map(V),ie=D.map(V),le=K.reduce(X,{}),ge=D.reduce(X,{}),Oe=Q.slice(),Be=Object.create(null);let ze,$e,tt,St,lt;for(let vt=0,tn=0;vt@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(d,y,w,T)=>{const K=w||T;return l[y]=!K||K.toLowerCase(),""}),l["max-age"]){const d=parseInt(l["max-age"],10);isNaN(d)?delete l["max-age"]:l["max-age"]=d}return l},a.ab=function(c,l){const d=[];for(const y in c)y in l||d.push(y);return d},a.ac=ae,a.ad=function(c,l,d){var y=Math.sin(d),w=Math.cos(d),T=l[0],K=l[1],D=l[2],z=l[3],Q=l[4],ie=l[5],le=l[6],ge=l[7];return l!==c&&(c[8]=l[8],c[9]=l[9],c[10]=l[10],c[11]=l[11],c[12]=l[12],c[13]=l[13],c[14]=l[14],c[15]=l[15]),c[0]=T*w+Q*y,c[1]=K*w+ie*y,c[2]=D*w+le*y,c[3]=z*w+ge*y,c[4]=Q*w-T*y,c[5]=ie*w-K*y,c[6]=le*w-D*y,c[7]=ge*w-z*y,c},a.ae=function(c){var l=new Ph(16);return l[0]=c[0],l[1]=c[1],l[2]=c[2],l[3]=c[3],l[4]=c[4],l[5]=c[5],l[6]=c[6],l[7]=c[7],l[8]=c[8],l[9]=c[9],l[10]=c[10],l[11]=c[11],l[12]=c[12],l[13]=c[13],l[14]=c[14],l[15]=c[15],l},a.af=Fh,a.ag=function(c,l){let d=0,y=0;if(c.kind==="constant")y=c.layoutSize;else if(c.kind!=="source"){const{interpolationType:w,minZoom:T,maxZoom:K}=c,D=w?ae(_n.interpolationFactor(w,l,T,K),0,1):0;c.kind==="camera"?y=Sr.number(c.minSize,c.maxSize,D):d=D}return{uSizeT:d,uSize:y}},a.ai=function(c,{uSize:l,uSizeT:d},{lowerSize:y,upperSize:w}){return c.kind==="source"?y/dd:c.kind==="composite"?Sr.number(y/dd,w/dd,d):l},a.aj=Av,a.ak=function(c,l,d,y){const w=l.y-c.y,T=l.x-c.x,K=y.y-d.y,D=y.x-d.x,z=K*T-D*w;if(z===0)return null;const Q=(D*(c.y-d.y)-K*(c.x-d.x))/z;return new B(c.x+Q*T,c.y+Q*w)},a.al=Nb,a.am=Wd,a.an=Kf,a.ao=Zt,a.aq=uv,a.ar=function(c,l){var d=l[0],y=l[1],w=l[2],T=l[3],K=l[4],D=l[5],z=l[6],Q=l[7],ie=l[8],le=l[9],ge=l[10],Oe=l[11],Be=l[12],ze=l[13],$e=l[14],tt=l[15],St=d*D-y*K,lt=d*z-w*K,vt=d*Q-T*K,tn=y*z-w*D,an=y*Q-T*D,Vn=w*Q-T*z,cr=ie*ze-le*Be,xn=ie*$e-ge*Be,Cn=ie*tt-Oe*Be,Kn=le*$e-ge*ze,ur=le*tt-Oe*ze,Dn=ge*tt-Oe*$e,wn=St*Dn-lt*ur+vt*Kn+tn*Cn-an*xn+Vn*cr;return wn?(c[0]=(D*Dn-z*ur+Q*Kn)*(wn=1/wn),c[1]=(w*ur-y*Dn-T*Kn)*wn,c[2]=(ze*Vn-$e*an+tt*tn)*wn,c[3]=(ge*an-le*Vn-Oe*tn)*wn,c[4]=(z*Cn-K*Dn-Q*xn)*wn,c[5]=(d*Dn-w*Cn+T*xn)*wn,c[6]=($e*vt-Be*Vn-tt*lt)*wn,c[7]=(ie*Vn-ge*vt+Oe*lt)*wn,c[8]=(K*ur-D*Cn+Q*cr)*wn,c[9]=(y*Cn-d*ur-T*cr)*wn,c[10]=(Be*an-ze*vt+tt*St)*wn,c[11]=(le*vt-ie*an-Oe*St)*wn,c[12]=(D*xn-K*Kn-z*cr)*wn,c[13]=(d*Kn-y*xn+w*cr)*wn,c[14]=(ze*lt-Be*tn-$e*St)*wn,c[15]=(ie*tn-le*lt+ge*St)*wn,c):null},a.as=J1,a.at=lv,a.au=Np,a.av=function(){const c={},l=mt.$version;for(const d in mt.$root){const y=mt.$root[d];if(y.required){let w=null;w=d==="version"?l:y.type==="array"?[]:{},w!=null&&(c[d]=w)}}return c},a.aw=ac,a.ax=xe,a.ay=function(c){c=c.slice();const l=Object.create(null);for(let d=0;dwn*Zt)}let xn=K?"center":d.get("text-justify").evaluate(Q,{},c.canonical);const Cn=d.get("symbol-placement"),Kn=Cn==="point"?d.get("text-max-width").evaluate(Q,{},c.canonical)*Zt:0,ur=()=>{c.bucket.allowVerticalPlacement&&rA(vt)&&(Be.vertical=j1(ze,c.glyphMap,c.glyphPositions,c.imagePositions,ie,Kn,T,Vn,"left",an,tt,a.ah.vertical,!0,Cn,ge,le))};if(!K&&cr){const Dn=new Set;if(xn==="auto")for(let Kr=0;Krf(void 0,void 0,void 0,function*(){if(c.byteLength===0)return createImageBitmap(new ImageData(1,1));const l=new Blob([new Uint8Array(c)],{type:"image/png"});try{return createImageBitmap(l)}catch(d){throw new Error(`Could not load image because of ${d.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`)}}),a.e=ye,a.f=c=>new Promise((l,d)=>{const y=new Image;y.onload=()=>{l(y),URL.revokeObjectURL(y.src),y.onload=null,window.requestAnimationFrame(()=>{y.src=Ve})},y.onerror=()=>d(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 w=new Blob([new Uint8Array(c)],{type:"image/png"});y.src=c.byteLength?URL.createObjectURL(w):Ve}),a.g=Dt,a.h=(c,l)=>Pe(ye(c,{type:"json"}),l),a.i=Ft,a.j=Pt,a.k=Kt,a.l=(c,l)=>Pe(ye(c,{type:"arrayBuffer"}),l),a.m=Pe,a.n=function(c){return new Os(c).readFields(Bs,[])},a.o=gc,a.p=wc,a.q=xa,a.r=Mh,a.s=Ze,a.t=us,a.u=Nn,a.v=mt,a.w=He,a.x=MA,a.y=function([c,l,d]){return l+=90,l*=Math.PI/180,d*=Math.PI/180,{x:c*Math.cos(l)*Math.sin(d),y:c*Math.sin(l)*Math.sin(d),z:c*Math.cos(d)}},a.z=Sr}),o(["./shared"],function(a){class f{constructor(fe){this.keyCache={},fe&&this.replace(fe)}replace(fe){this._layerConfigs={},this._layers={},this.update(fe,[])}update(fe,_e){for(const Te of fe){this._layerConfigs[Te.id]=Te;const at=this._layers[Te.id]=a.az(Te);at._featureFilter=a.a6(at.filter),this.keyCache[Te.id]&&delete this.keyCache[Te.id]}for(const Te of _e)delete this.keyCache[Te],delete this._layerConfigs[Te],delete this._layers[Te];this.familiesBySource={};const Ee=a.bf(Object.values(this._layerConfigs),this.keyCache);for(const Te of Ee){const at=Te.map(Gt=>this._layers[Gt.id]),it=at[0];if(it.visibility==="none")continue;const ht=it.source||"";let et=this.familiesBySource[ht];et||(et=this.familiesBySource[ht]={});const Ct=it.sourceLayer||"_geojsonTileLayer";let rn=et[Ct];rn||(rn=et[Ct]=[]),rn.push(at)}}}class g{constructor(fe){const _e={},Ee=[];for(const ht in fe){const et=fe[ht],Ct=_e[ht]={};for(const rn in et){const Gt=et[+rn];if(!Gt||Gt.bitmap.width===0||Gt.bitmap.height===0)continue;const $t={x:0,y:0,w:Gt.bitmap.width+2,h:Gt.bitmap.height+2};Ee.push($t),Ct[rn]={rect:$t,metrics:Gt.metrics}}}const{w:Te,h:at}=a.p(Ee),it=new a.o({width:Te||1,height:at||1});for(const ht in fe){const et=fe[ht];for(const Ct in et){const rn=et[+Ct];if(!rn||rn.bitmap.width===0||rn.bitmap.height===0)continue;const Gt=_e[ht][Ct].rect;a.o.copy(rn.bitmap,it,{x:0,y:0},{x:Gt.x+1,y:Gt.y+1},rn.bitmap)}}this.image=it,this.positions=_e}}a.bg("GlyphAtlas",g);class x{constructor(fe){this.tileID=new a.Q(fe.tileID.overscaledZ,fe.tileID.wrap,fe.tileID.canonical.z,fe.tileID.canonical.x,fe.tileID.canonical.y),this.uid=fe.uid,this.zoom=fe.zoom,this.pixelRatio=fe.pixelRatio,this.tileSize=fe.tileSize,this.source=fe.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=fe.showCollisionBoxes,this.collectResourceTiming=!!fe.collectResourceTiming,this.returnDependencies=!!fe.returnDependencies,this.promoteId=fe.promoteId,this.inFlightDependencies=[]}parse(fe,_e,Ee,Te){return a._(this,void 0,void 0,function*(){this.status="parsing",this.data=fe,this.collisionBoxArray=new a.a4;const at=new a.bh(Object.keys(fe.layers).sort()),it=new a.bi(this.tileID,this.promoteId);it.bucketLayerIDs=[];const ht={},et={featureIndex:it,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:Ee},Ct=_e.familiesBySource[this.source];for(const Cr in Ct){const ui=fe.layers[Cr];if(!ui)continue;ui.version===1&&a.w(`Vector tile source "${this.source}" layer "${Cr}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const Ii=at.encode(Cr),Io=[];for(let Ci=0;Ci=so.maxzoom||so.visibility!=="none"&&(k(Ci,this.zoom,Ee),(ht[so.id]=so.createBucket({index:it.bucketLayerIDs.length,layers:Ci,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Ii,sourceID:this.source})).populate(Io,et,this.tileID.canonical),it.bucketLayerIDs.push(Ci.map(Yo=>Yo.id)))}}const rn=a.aE(et.glyphDependencies,Cr=>Object.keys(Cr).map(Number));this.inFlightDependencies.forEach(Cr=>Cr==null?void 0:Cr.abort()),this.inFlightDependencies=[];let Gt=Promise.resolve({});if(Object.keys(rn).length){const Cr=new AbortController;this.inFlightDependencies.push(Cr),Gt=Te.sendAsync({type:"getGlyphs",data:{stacks:rn,source:this.source,tileID:this.tileID,type:"glyphs"}},Cr)}const $t=Object.keys(et.iconDependencies);let gn=Promise.resolve({});if($t.length){const Cr=new AbortController;this.inFlightDependencies.push(Cr),gn=Te.sendAsync({type:"getImages",data:{icons:$t,source:this.source,tileID:this.tileID,type:"icons"}},Cr)}const Jn=Object.keys(et.patternDependencies);let qn=Promise.resolve({});if(Jn.length){const Cr=new AbortController;this.inFlightDependencies.push(Cr),qn=Te.sendAsync({type:"getImages",data:{icons:Jn,source:this.source,tileID:this.tileID,type:"patterns"}},Cr)}const[Tr,vr,Dr]=yield Promise.all([Gt,gn,qn]),Yr=new g(Tr),Zr=new a.bj(vr,Dr);for(const Cr in ht){const ui=ht[Cr];ui instanceof a.a5?(k(ui.layers,this.zoom,Ee),a.bk({bucket:ui,glyphMap:Tr,glyphPositions:Yr.positions,imageMap:vr,imagePositions:Zr.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):ui.hasPattern&&(ui instanceof a.bl||ui instanceof a.bm||ui instanceof a.bn)&&(k(ui.layers,this.zoom,Ee),ui.addFeatures(et,this.tileID.canonical,Zr.patternPositions))}return this.status="done",{buckets:Object.values(ht).filter(Cr=>!Cr.isEmpty()),featureIndex:it,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:Yr.image,imageAtlas:Zr,glyphMap:this.returnDependencies?Tr:null,iconMap:this.returnDependencies?vr:null,glyphPositions:this.returnDependencies?Yr.positions:null}})}}function k(Ke,fe,_e){const Ee=new a.a8(fe);for(const Te of Ke)Te.recalculate(Ee,_e)}class B{constructor(fe,_e,Ee){this.actor=fe,this.layerIndex=_e,this.availableImages=Ee,this.fetching={},this.loading={},this.loaded={}}loadVectorTile(fe,_e){return a._(this,void 0,void 0,function*(){const Ee=yield a.l(fe.request,_e);try{return{vectorTile:new a.bp.VectorTile(new a.bo(Ee.data)),rawData:Ee.data,cacheControl:Ee.cacheControl,expires:Ee.expires}}catch(Te){const at=new Uint8Array(Ee.data);let it=`Unable to parse the tile at ${fe.request.url}, `;throw it+=at[0]===31&&at[1]===139?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${Te.messge}`,new Error(it)}})}loadTile(fe){return a._(this,void 0,void 0,function*(){const _e=fe.uid,Ee=!!(fe&&fe.request&&fe.request.collectResourceTiming)&&new a.bq(fe.request),Te=new x(fe);this.loading[_e]=Te;const at=new AbortController;Te.abort=at;try{const it=yield this.loadVectorTile(fe,at);if(delete this.loading[_e],!it)return null;const ht=it.rawData,et={};it.expires&&(et.expires=it.expires),it.cacheControl&&(et.cacheControl=it.cacheControl);const Ct={};if(Ee){const Gt=Ee.finish();Gt&&(Ct.resourceTiming=JSON.parse(JSON.stringify(Gt)))}Te.vectorTile=it.vectorTile;const rn=Te.parse(it.vectorTile,this.layerIndex,this.availableImages,this.actor);this.loaded[_e]=Te,this.fetching[_e]={rawTileData:ht,cacheControl:et,resourceTiming:Ct};try{const Gt=yield rn;return a.e({rawTileData:ht.slice(0)},Gt,et,Ct)}finally{delete this.fetching[_e]}}catch(it){throw delete this.loading[_e],Te.status="done",this.loaded[_e]=Te,it}})}reloadTile(fe){return a._(this,void 0,void 0,function*(){const _e=fe.uid;if(!this.loaded||!this.loaded[_e])throw new Error("Should not be trying to reload a tile that was never loaded or has been removed");const Ee=this.loaded[_e];if(Ee.showCollisionBoxes=fe.showCollisionBoxes,Ee.status==="parsing"){const Te=yield Ee.parse(Ee.vectorTile,this.layerIndex,this.availableImages,this.actor);let at;if(this.fetching[_e]){const{rawTileData:it,cacheControl:ht,resourceTiming:et}=this.fetching[_e];delete this.fetching[_e],at=a.e({rawTileData:it.slice(0)},Te,ht,et)}else at=Te;return at}if(Ee.status==="done"&&Ee.vectorTile)return Ee.parse(Ee.vectorTile,this.layerIndex,this.availableImages,this.actor)})}abortTile(fe){return a._(this,void 0,void 0,function*(){const _e=this.loading,Ee=fe.uid;_e&&_e[Ee]&&_e[Ee].abort&&(_e[Ee].abort.abort(),delete _e[Ee])})}removeTile(fe){return a._(this,void 0,void 0,function*(){this.loaded&&this.loaded[fe.uid]&&delete this.loaded[fe.uid]})}}class P{constructor(){this.loaded={}}loadTile(fe){return a._(this,void 0,void 0,function*(){const{uid:_e,encoding:Ee,rawImageData:Te,redFactor:at,greenFactor:it,blueFactor:ht,baseShift:et}=fe,Ct=Te.width+2,rn=Te.height+2,Gt=a.b(Te)?new a.R({width:Ct,height:rn},yield a.br(Te,-1,-1,Ct,rn)):Te,$t=new a.bs(_e,Gt,Ee,at,it,ht,et);return this.loaded=this.loaded||{},this.loaded[_e]=$t,$t})}removeTile(fe){const _e=this.loaded,Ee=fe.uid;_e&&_e[Ee]&&delete _e[Ee]}}function R(Ke,fe){if(Ke.length!==0){H(Ke[0],fe);for(var _e=1;_e=Math.abs(ht)?_e-et+ht:ht-et+_e,_e=et}_e+Ee>=0!=!!fe&&Ke.reverse()}var W=a.bt(function Ke(fe,_e){var Ee,Te=fe&&fe.type;if(Te==="FeatureCollection")for(Ee=0;Ee>31}function jt(Ke,fe){for(var _e=Ke.loadGeometry(),Ee=Ke.type,Te=0,at=0,it=_e.length,ht=0;htKe},Ve=Math.fround||(nt=new Float32Array(1),Ke=>(nt[0]=+Ke,nt[0]));var nt;const Je=3,Vt=5,pt=6;class dt{constructor(fe){this.options=Object.assign(Object.create(Nt),fe),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(fe){const{log:_e,minZoom:Ee,maxZoom:Te}=this.options;_e&&console.time("total time");const at=`prepare ${fe.length} points`;_e&&console.time(at),this.points=fe;const it=[];for(let et=0;et=Ee;et--){const Ct=+Date.now();ht=this.trees[et]=this._createTree(this._cluster(ht,et)),_e&&console.log("z%d: %d clusters in %dms",et,ht.numItems,+Date.now()-Ct)}return _e&&console.timeEnd("total time"),this}getClusters(fe,_e){let Ee=((fe[0]+180)%360+360)%360-180;const Te=Math.max(-90,Math.min(90,fe[1]));let at=fe[2]===180?180:((fe[2]+180)%360+360)%360-180;const it=Math.max(-90,Math.min(90,fe[3]));if(fe[2]-fe[0]>=360)Ee=-180,at=180;else if(Ee>at){const Gt=this.getClusters([Ee,Te,180,it],_e),$t=this.getClusters([-180,Te,at,it],_e);return Gt.concat($t)}const ht=this.trees[this._limitZoom(_e)],et=ht.range(Se(Ee),de(it),Se(at),de(Te)),Ct=ht.data,rn=[];for(const Gt of et){const $t=this.stride*Gt;rn.push(Ct[$t+Vt]>1?kt(Ct,$t,this.clusterProps):this.points[Ct[$t+Je]])}return rn}getChildren(fe){const _e=this._getOriginId(fe),Ee=this._getOriginZoom(fe),Te="No cluster with the specified id.",at=this.trees[Ee];if(!at)throw new Error(Te);const it=at.data;if(_e*this.stride>=it.length)throw new Error(Te);const ht=this.options.radius/(this.options.extent*Math.pow(2,Ee-1)),et=at.within(it[_e*this.stride],it[_e*this.stride+1],ht),Ct=[];for(const rn of et){const Gt=rn*this.stride;it[Gt+4]===fe&&Ct.push(it[Gt+Vt]>1?kt(it,Gt,this.clusterProps):this.points[it[Gt+Je]])}if(Ct.length===0)throw new Error(Te);return Ct}getLeaves(fe,_e,Ee){const Te=[];return this._appendLeaves(Te,fe,_e=_e||10,Ee=Ee||0,0),Te}getTile(fe,_e,Ee){const Te=this.trees[this._limitZoom(fe)],at=Math.pow(2,fe),{extent:it,radius:ht}=this.options,et=ht/it,Ct=(Ee-et)/at,rn=(Ee+1+et)/at,Gt={features:[]};return this._addTileFeatures(Te.range((_e-et)/at,Ct,(_e+1+et)/at,rn),Te.data,_e,Ee,at,Gt),_e===0&&this._addTileFeatures(Te.range(1-et/at,Ct,1,rn),Te.data,at,Ee,at,Gt),_e===at-1&&this._addTileFeatures(Te.range(0,Ct,et/at,rn),Te.data,-1,Ee,at,Gt),Gt.features.length?Gt:null}getClusterExpansionZoom(fe){let _e=this._getOriginZoom(fe)-1;for(;_e<=this.options.maxZoom;){const Ee=this.getChildren(fe);if(_e++,Ee.length!==1)break;fe=Ee[0].properties.cluster_id}return _e}_appendLeaves(fe,_e,Ee,Te,at){const it=this.getChildren(_e);for(const ht of it){const et=ht.properties;if(et&&et.cluster?at+et.point_count<=Te?at+=et.point_count:at=this._appendLeaves(fe,et.cluster_id,Ee,Te,at):at1;let rn,Gt,$t;if(Ct)rn=Dt(_e,et,this.clusterProps),Gt=_e[et],$t=_e[et+1];else{const qn=this.points[_e[et+Je]];rn=qn.properties;const[Tr,vr]=qn.geometry.coordinates;Gt=Se(Tr),$t=de(vr)}const gn={type:1,geometry:[[Math.round(this.options.extent*(Gt*at-Ee)),Math.round(this.options.extent*($t*at-Te))]],tags:rn};let Jn;Jn=Ct||this.options.generateId?_e[et+Je]:this.points[_e[et+Je]].id,Jn!==void 0&&(gn.id=Jn),it.features.push(gn)}}_limitZoom(fe){return Math.max(this.options.minZoom,Math.min(Math.floor(+fe),this.options.maxZoom+1))}_cluster(fe,_e){const{radius:Ee,extent:Te,reduce:at,minPoints:it}=this.options,ht=Ee/(Te*Math.pow(2,_e)),et=fe.data,Ct=[],rn=this.stride;for(let Gt=0;Gt_e&&(Tr+=et[Dr+Vt])}if(Tr>qn&&Tr>=it){let vr,Dr=$t*qn,Yr=gn*qn,Zr=-1;const Cr=((Gt/rn|0)<<5)+(_e+1)+this.points.length;for(const ui of Jn){const Ii=ui*rn;if(et[Ii+2]<=_e)continue;et[Ii+2]=_e;const Io=et[Ii+Vt];Dr+=et[Ii]*Io,Yr+=et[Ii+1]*Io,et[Ii+4]=Cr,at&&(vr||(vr=this._map(et,Gt,!0),Zr=this.clusterProps.length,this.clusterProps.push(vr)),at(vr,this._map(et,Ii)))}et[Gt+4]=Cr,Ct.push(Dr/Tr,Yr/Tr,1/0,Cr,-1,Tr),at&&Ct.push(Zr)}else{for(let vr=0;vr1)for(const vr of Jn){const Dr=vr*rn;if(!(et[Dr+2]<=_e)){et[Dr+2]=_e;for(let Yr=0;Yr>5}_getOriginZoom(fe){return(fe-this.points.length)%32}_map(fe,_e,Ee){if(fe[_e+Vt]>1){const it=this.clusterProps[fe[_e+pt]];return Ee?Object.assign({},it):it}const Te=this.points[fe[_e+Je]].properties,at=this.options.map(Te);return Ee&&at===Te?Object.assign({},at):at}}function kt(Ke,fe,_e){return{type:"Feature",id:Ke[fe+Je],properties:Dt(Ke,fe,_e),geometry:{type:"Point",coordinates:[(Ee=Ke[fe],360*(Ee-.5)),xe(Ke[fe+1])]}};var Ee}function Dt(Ke,fe,_e){const Ee=Ke[fe+Vt],Te=Ee>=1e4?`${Math.round(Ee/1e3)}k`:Ee>=1e3?Math.round(Ee/100)/10+"k":Ee,at=Ke[fe+pt],it=at===-1?{}:Object.assign({},_e[at]);return Object.assign(it,{cluster:!0,cluster_id:Ke[fe+Je],point_count:Ee,point_count_abbreviated:Te})}function Se(Ke){return Ke/360+.5}function de(Ke){const fe=Math.sin(Ke*Math.PI/180),_e=.5-.25*Math.log((1+fe)/(1-fe))/Math.PI;return _e<0?0:_e>1?1:_e}function xe(Ke){const fe=(180-360*Ke)*Math.PI/180;return 360*Math.atan(Math.exp(fe))/Math.PI-90}function Pe(Ke,fe,_e,Ee){for(var Te,at=Ee,it=_e-fe>>1,ht=_e-fe,et=Ke[fe],Ct=Ke[fe+1],rn=Ke[_e],Gt=Ke[_e+1],$t=fe+3;$t<_e;$t+=3){var gn=Ze(Ke[$t],Ke[$t+1],et,Ct,rn,Gt);if(gn>at)Te=$t,at=gn;else if(gn===at){var Jn=Math.abs($t-it);JnEe&&(Te-fe>3&&Pe(Ke,fe,Te,Ee),Ke[Te+2]=at,_e-Te>3&&Pe(Ke,Te,_e,Ee))}function Ze(Ke,fe,_e,Ee,Te,at){var it=Te-_e,ht=at-Ee;if(it!==0||ht!==0){var et=((Ke-_e)*it+(fe-Ee)*ht)/(it*it+ht*ht);et>1?(_e=Te,Ee=at):et>0&&(_e+=it*et,Ee+=ht*et)}return(it=Ke-_e)*it+(ht=fe-Ee)*ht}function Xe(Ke,fe,_e,Ee){var Te={id:Ke===void 0?null:Ke,type:fe,geometry:_e,tags:Ee,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(at){var it=at.geometry,ht=at.type;if(ht==="Point"||ht==="MultiPoint"||ht==="LineString")wt(at,it);else if(ht==="Polygon"||ht==="MultiLineString")for(var et=0;et0&&(it+=Ee?(Te*Ct-et*at)/2:Math.sqrt(Math.pow(et-Te,2)+Math.pow(Ct-at,2))),Te=et,at=Ct}var rn=fe.length-3;fe[2]=1,Pe(fe,0,rn,_e),fe[rn+2]=1,fe.size=Math.abs(it),fe.start=0,fe.end=fe.size}function mt(Ke,fe,_e,Ee){for(var Te=0;Te1?1:_e}function Sn(Ke,fe,_e,Ee,Te,at,it,ht){if(Ee/=fe,at>=(_e/=fe)&&it=Ee)return null;for(var et=[],Ct=0;Ct=_e&&Jn=Ee)){var qn=[];if($t==="Point"||$t==="MultiPoint")nr(Gt,qn,_e,Ee,Te);else if($t==="LineString")Mr(Gt,qn,_e,Ee,Te,!1,ht.lineMetrics);else if($t==="MultiLineString")_r(Gt,qn,_e,Ee,Te,!1);else if($t==="Polygon")_r(Gt,qn,_e,Ee,Te,!0);else if($t==="MultiPolygon")for(var Tr=0;Tr=_e&&it<=Ee&&(fe.push(Ke[at]),fe.push(Ke[at+1]),fe.push(Ke[at+2]))}}function Mr(Ke,fe,_e,Ee,Te,at,it){for(var ht,et,Ct=Qr(Ke),rn=Te===0?we:V,Gt=Ke.start,$t=0;$t_e&&(et=rn(Ct,gn,Jn,Tr,vr,_e),it&&(Ct.start=Gt+ht*et)):Dr>Ee?Yr=_e&&(et=rn(Ct,gn,Jn,Tr,vr,_e),Zr=!0),Yr>Ee&&Dr<=Ee&&(et=rn(Ct,gn,Jn,Tr,vr,Ee),Zr=!0),!at&&Zr&&(it&&(Ct.end=Gt+ht*et),fe.push(Ct),Ct=Qr(Ke)),it&&(Gt+=ht)}var Cr=Ke.length-3;gn=Ke[Cr],Jn=Ke[Cr+1],qn=Ke[Cr+2],(Dr=Te===0?gn:Jn)>=_e&&Dr<=Ee&&vi(Ct,gn,Jn,qn),Cr=Ct.length-3,at&&Cr>=3&&(Ct[Cr]!==Ct[0]||Ct[Cr+1]!==Ct[1])&&vi(Ct,Ct[0],Ct[1],Ct[2]),Ct.length&&fe.push(Ct)}function Qr(Ke){var fe=[];return fe.size=Ke.size,fe.start=Ke.start,fe.end=Ke.end,fe}function _r(Ke,fe,_e,Ee,Te,at){for(var it=0;itit.maxX&&(it.maxX=rn),Gt>it.maxY&&(it.maxY=Gt)}return it}function sr(Ke,fe,_e,Ee){var Te=fe.geometry,at=fe.type,it=[];if(at==="Point"||at==="MultiPoint")for(var ht=0;ht0&&fe.size<(Te?it:Ee))_e.numPoints+=fe.length/3;else{for(var ht=[],et=0;etit)&&(_e.numSimplified++,ht.push(fe[et]),ht.push(fe[et+1])),_e.numPoints++;Te&&function(Ct,rn){for(var Gt=0,$t=0,gn=Ct.length,Jn=gn-2;$t0===rn)for($t=0,gn=Ct.length;$t24)throw new Error("maxZoom should be in the 0-24 range");if(fe.promoteId&&fe.generateId)throw new Error("promoteId and generateId cannot be used together.");var Ee=function(Te,at){var it=[];if(Te.type==="FeatureCollection")for(var ht=0;ht1&&console.time("creation"),$t=this.tiles[Gt]=Et(Ke,fe,_e,Ee,et),this.tileCoords.push({z:fe,x:_e,y:Ee}),Ct)){Ct>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",fe,_e,Ee,$t.numFeatures,$t.numPoints,$t.numSimplified),console.timeEnd("creation"));var gn="z"+fe;this.stats[gn]=(this.stats[gn]||0)+1,this.total++}if($t.source=Ke,Te){if(fe===et.maxZoom||fe===Te)continue;var Jn=1<1&&console.time("clipping");var qn,Tr,vr,Dr,Yr,Zr,Cr=.5*et.buffer/et.extent,ui=.5-Cr,Ii=.5+Cr,Io=1+Cr;qn=Tr=vr=Dr=null,Yr=Sn(Ke,rn,_e-Cr,_e+Ii,0,$t.minX,$t.maxX,et),Zr=Sn(Ke,rn,_e+ui,_e+Io,0,$t.minX,$t.maxX,et),Ke=null,Yr&&(qn=Sn(Yr,rn,Ee-Cr,Ee+Ii,1,$t.minY,$t.maxY,et),Tr=Sn(Yr,rn,Ee+ui,Ee+Io,1,$t.minY,$t.maxY,et),Yr=null),Zr&&(vr=Sn(Zr,rn,Ee-Cr,Ee+Ii,1,$t.minY,$t.maxY,et),Dr=Sn(Zr,rn,Ee+ui,Ee+Io,1,$t.minY,$t.maxY,et),Zr=null),Ct>1&&console.timeEnd("clipping"),ht.push(qn||[],fe+1,2*_e,2*Ee),ht.push(Tr||[],fe+1,2*_e,2*Ee+1),ht.push(vr||[],fe+1,2*_e+1,2*Ee),ht.push(Dr||[],fe+1,2*_e+1,2*Ee+1)}}},Fn.prototype.getTile=function(Ke,fe,_e){var Ee=this.options,Te=Ee.extent,at=Ee.debug;if(Ke<0||Ke>24)return null;var it=1<1&&console.log("drilling down to z%d-%d-%d",Ke,fe,_e);for(var et,Ct=Ke,rn=fe,Gt=_e;!et&&Ct>0;)Ct--,rn=Math.floor(rn/2),Gt=Math.floor(Gt/2),et=this.tiles[on(Ct,rn,Gt)];return et&&et.source?(at>1&&console.log("found parent tile z%d-%d-%d",Ct,rn,Gt),at>1&&console.time("drilling down"),this.splitTile(et.source,Ct,rn,Gt,Ke,fe,_e),at>1&&console.timeEnd("drilling down"),this.tiles[ht]?At(this.tiles[ht],Te):null):null};class Gn extends B{constructor(){super(...arguments),this._dataUpdateable=new Map}loadVectorTile(fe,_e){return a._(this,void 0,void 0,function*(){const Ee=fe.tileID.canonical;if(!this._geoJSONIndex)throw new Error("Unable to parse the data into a cluster or geojson");const Te=this._geoJSONIndex.getTile(Ee.z,Ee.x,Ee.y);if(!Te)return null;const at=new class{constructor(ht){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=a.W,this.length=ht.length,this._features=ht}feature(ht){return new class{constructor(et){this._feature=et,this.extent=a.W,this.type=et.type,this.properties=et.tags,"id"in et&&!isNaN(et.id)&&(this.id=parseInt(et.id,10))}loadGeometry(){if(this._feature.type===1){const et=[];for(const Ct of this._feature.geometry)et.push([new a.P(Ct[0],Ct[1])]);return et}{const et=[];for(const Ct of this._feature.geometry){const rn=[];for(const Gt of Ct)rn.push(new a.P(Gt[0],Gt[1]));et.push(rn)}return et}}toGeoJSON(et,Ct,rn){return $.call(this,et,Ct,rn)}}(this._features[ht])}}(Te.features);let it=Jt(at);return it.byteOffset===0&&it.byteLength===it.buffer.byteLength||(it=new Uint8Array(it)),{vectorTile:at,rawData:it.buffer}})}loadData(fe){var _e;return a._(this,void 0,void 0,function*(){(_e=this._pendingRequest)===null||_e===void 0||_e.abort();const Ee=!!(fe&&fe.request&&fe.request.collectResourceTiming)&&new a.bq(fe.request);this._pendingRequest=new AbortController;try{let Te=yield this.loadGeoJSON(fe,this._pendingRequest);if(delete this._pendingRequest,typeof Te!="object")throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`);if(W(Te,!0),fe.filter){const it=a.bw(fe.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if(it.result==="error")throw new Error(it.value.map(et=>`${et.key}: ${et.message}`).join(", "));Te={type:"FeatureCollection",features:Te.features.filter(et=>it.value.evaluate({zoom:0},et))}}this._geoJSONIndex=fe.cluster?new dt(function({superclusterOptions:it,clusterProperties:ht}){if(!ht||!it)return it;const et={},Ct={},rn={accumulated:null,zoom:0},Gt={properties:null},$t=Object.keys(ht);for(const gn of $t){const[Jn,qn]=ht[gn],Tr=a.bw(qn),vr=a.bw(typeof Jn=="string"?[Jn,["accumulated"],["get",gn]]:Jn);et[gn]=Tr.value,Ct[gn]=vr.value}return it.map=gn=>{Gt.properties=gn;const Jn={};for(const qn of $t)Jn[qn]=et[qn].evaluate(rn,Gt);return Jn},it.reduce=(gn,Jn)=>{Gt.properties=Jn;for(const qn of $t)rn.accumulated=gn[qn],gn[qn]=Ct[qn].evaluate(rn,Gt)},it}(fe)).load(Te.features):function(it,ht){return new Fn(it,ht)}(Te,fe.geojsonVtOptions),this.loaded={};const at={};if(Ee){const it=Ee.finish();it&&(at.resourceTiming={},at.resourceTiming[fe.source]=JSON.parse(JSON.stringify(it)))}return at}catch(Te){if(delete this._pendingRequest,a.bx(Te))return{abandoned:!0};throw Te}})}reloadTile(fe){const _e=this.loaded;return _e&&_e[fe.uid]?super.reloadTile(fe):this.loadTile(fe)}loadGeoJSON(fe,_e){return a._(this,void 0,void 0,function*(){const{promoteId:Ee}=fe;if(fe.request){const Te=yield a.h(fe.request,_e);return this._dataUpdateable=un(Te.data,Ee)?In(Te.data,Ee):void 0,Te.data}if(typeof fe.data=="string")try{const Te=JSON.parse(fe.data);return this._dataUpdateable=un(Te,Ee)?In(Te,Ee):void 0,Te}catch{throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`)}if(!fe.dataDiff)throw new Error(`Input data given to '${fe.source}' is not a valid GeoJSON object.`);if(!this._dataUpdateable)throw new Error(`Cannot update existing geojson data in ${fe.source}`);return function(Te,at,it){var ht,et,Ct,rn;if(at.removeAll&&Te.clear(),at.remove)for(const Gt of at.remove)Te.delete(Gt);if(at.add)for(const Gt of at.add){const $t=m(Gt,it);$t!=null&&Te.set($t,Gt)}if(at.update)for(const Gt of at.update){let $t=Te.get(Gt.id);if($t==null)continue;const gn=!Gt.removeAllProperties&&(((ht=Gt.removeProperties)===null||ht===void 0?void 0:ht.length)>0||((et=Gt.addOrUpdateProperties)===null||et===void 0?void 0:et.length)>0);if((Gt.newGeometry||Gt.removeAllProperties||gn)&&($t=Object.assign({},$t),Te.set(Gt.id,$t),gn&&($t.properties=Object.assign({},$t.properties))),Gt.newGeometry&&($t.geometry=Gt.newGeometry),Gt.removeAllProperties)$t.properties={};else if(((Ct=Gt.removeProperties)===null||Ct===void 0?void 0:Ct.length)>0)for(const Jn of Gt.removeProperties)Object.prototype.hasOwnProperty.call($t.properties,Jn)&&delete $t.properties[Jn];if(((rn=Gt.addOrUpdateProperties)===null||rn===void 0?void 0:rn.length)>0)for(const{key:Jn,value:qn}of Gt.addOrUpdateProperties)$t.properties[Jn]=qn}}(this._dataUpdateable,fe.dataDiff,Ee),{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())}})}removeSource(fe){return a._(this,void 0,void 0,function*(){this._pendingRequest&&this._pendingRequest.abort()})}getClusterExpansionZoom(fe){return this._geoJSONIndex.getClusterExpansionZoom(fe.clusterId)}getClusterChildren(fe){return this._geoJSONIndex.getChildren(fe.clusterId)}getClusterLeaves(fe){return this._geoJSONIndex.getLeaves(fe.clusterId,fe.limit,fe.offset)}}class Zn{constructor(fe){this.self=fe,this.actor=new a.C(fe),this.layerIndexes={},this.availableImages={},this.workerSources={},this.demWorkerSources={},this.externalWorkerSourceTypes={},this.self.registerWorkerSource=(_e,Ee)=>{if(this.externalWorkerSourceTypes[_e])throw new Error(`Worker source with name "${_e}" already registered.`);this.externalWorkerSourceTypes[_e]=Ee},this.self.addProtocol=a.bd,this.self.removeProtocol=a.be,this.self.registerRTLTextPlugin=_e=>{if(a.by.isParsed())throw new Error("RTL text plugin already registered.");a.by.setMethods(_e)},this.actor.registerMessageHandler("loadDEMTile",(_e,Ee)=>this._getDEMWorkerSource(_e,Ee.source).loadTile(Ee)),this.actor.registerMessageHandler("removeDEMTile",(_e,Ee)=>a._(this,void 0,void 0,function*(){this._getDEMWorkerSource(_e,Ee.source).removeTile(Ee)})),this.actor.registerMessageHandler("getClusterExpansionZoom",(_e,Ee)=>a._(this,void 0,void 0,function*(){return this._getWorkerSource(_e,Ee.type,Ee.source).getClusterExpansionZoom(Ee)})),this.actor.registerMessageHandler("getClusterChildren",(_e,Ee)=>a._(this,void 0,void 0,function*(){return this._getWorkerSource(_e,Ee.type,Ee.source).getClusterChildren(Ee)})),this.actor.registerMessageHandler("getClusterLeaves",(_e,Ee)=>a._(this,void 0,void 0,function*(){return this._getWorkerSource(_e,Ee.type,Ee.source).getClusterLeaves(Ee)})),this.actor.registerMessageHandler("loadData",(_e,Ee)=>this._getWorkerSource(_e,Ee.type,Ee.source).loadData(Ee)),this.actor.registerMessageHandler("loadTile",(_e,Ee)=>this._getWorkerSource(_e,Ee.type,Ee.source).loadTile(Ee)),this.actor.registerMessageHandler("reloadTile",(_e,Ee)=>this._getWorkerSource(_e,Ee.type,Ee.source).reloadTile(Ee)),this.actor.registerMessageHandler("abortTile",(_e,Ee)=>this._getWorkerSource(_e,Ee.type,Ee.source).abortTile(Ee)),this.actor.registerMessageHandler("removeTile",(_e,Ee)=>this._getWorkerSource(_e,Ee.type,Ee.source).removeTile(Ee)),this.actor.registerMessageHandler("removeSource",(_e,Ee)=>a._(this,void 0,void 0,function*(){if(!this.workerSources[_e]||!this.workerSources[_e][Ee.type]||!this.workerSources[_e][Ee.type][Ee.source])return;const Te=this.workerSources[_e][Ee.type][Ee.source];delete this.workerSources[_e][Ee.type][Ee.source],Te.removeSource!==void 0&&Te.removeSource(Ee)})),this.actor.registerMessageHandler("setReferrer",(_e,Ee)=>a._(this,void 0,void 0,function*(){this.referrer=Ee})),this.actor.registerMessageHandler("syncRTLPluginState",(_e,Ee)=>this._syncRTLPluginState(_e,Ee)),this.actor.registerMessageHandler("importScript",(_e,Ee)=>a._(this,void 0,void 0,function*(){this.self.importScripts(Ee)})),this.actor.registerMessageHandler("setImages",(_e,Ee)=>this._setImages(_e,Ee)),this.actor.registerMessageHandler("updateLayers",(_e,Ee)=>a._(this,void 0,void 0,function*(){this._getLayerIndex(_e).update(Ee.layers,Ee.removedIds)})),this.actor.registerMessageHandler("setLayers",(_e,Ee)=>a._(this,void 0,void 0,function*(){this._getLayerIndex(_e).replace(Ee)}))}_setImages(fe,_e){return a._(this,void 0,void 0,function*(){this.availableImages[fe]=_e;for(const Ee in this.workerSources[fe]){const Te=this.workerSources[fe][Ee];for(const at in Te)Te[at].availableImages=_e}})}_syncRTLPluginState(fe,_e){return a._(this,void 0,void 0,function*(){a.by.setState(_e);const Ee=a.by.getPluginURL();if(_e.pluginStatus==="loaded"&&!a.by.isParsed()&&Ee!=null){this.self.importScripts(Ee);const Te=a.by.isParsed();if(Te)return Te;throw new Error(`RTL Text Plugin failed to import scripts from ${Ee}`)}return!1})}_getAvailableImages(fe){let _e=this.availableImages[fe];return _e||(_e=[]),_e}_getLayerIndex(fe){let _e=this.layerIndexes[fe];return _e||(_e=this.layerIndexes[fe]=new f),_e}_getWorkerSource(fe,_e,Ee){if(this.workerSources[fe]||(this.workerSources[fe]={}),this.workerSources[fe][_e]||(this.workerSources[fe][_e]={}),!this.workerSources[fe][_e][Ee]){const Te={sendAsync:(at,it)=>(at.targetMapId=fe,this.actor.sendAsync(at,it))};switch(_e){case"vector":this.workerSources[fe][_e][Ee]=new B(Te,this._getLayerIndex(fe),this._getAvailableImages(fe));break;case"geojson":this.workerSources[fe][_e][Ee]=new Gn(Te,this._getLayerIndex(fe),this._getAvailableImages(fe));break;default:this.workerSources[fe][_e][Ee]=new this.externalWorkerSourceTypes[_e](Te,this._getLayerIndex(fe),this._getAvailableImages(fe))}}return this.workerSources[fe][_e][Ee]}_getDEMWorkerSource(fe,_e){return this.demWorkerSources[fe]||(this.demWorkerSources[fe]={}),this.demWorkerSources[fe][_e]||(this.demWorkerSources[fe][_e]=new P),this.demWorkerSources[fe][_e]}}return a.i(self)&&(self.worker=new Zn(self)),Zn}),o(["./shared"],function(a){var f="4.0.0-pre.4";let g,x;const k={now:typeof performance<"u"&&performance&&performance.now?performance.now.bind(performance):Date.now.bind(Date),frameAsync:O=>new Promise((u,p)=>{const C=requestAnimationFrame(u);O.signal.addEventListener("abort",()=>{cancelAnimationFrame(C),p(a.c())})}),getImageData(O,u=0){return this.getImageCanvasContext(O).getImageData(-u,-u,O.width+2*u,O.height+2*u)},getImageCanvasContext(O){const u=window.document.createElement("canvas"),p=u.getContext("2d",{willReadFrequently:!0});if(!p)throw new Error("failed to create canvas 2d context");return u.width=O.width,u.height=O.height,p.drawImage(O,0,0,O.width,O.height),p},resolveURL:O=>(g||(g=document.createElement("a")),g.href=O,g.href),hardwareConcurrency:typeof navigator<"u"&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(x==null&&(x=matchMedia("(prefers-reduced-motion: reduce)")),x.matches)}};class B{static testProp(u){if(!B.docStyle)return u[0];for(let p=0;p{window.removeEventListener("click",B.suppressClickInternal,!0)},0)}static getScale(u){const p=u.getBoundingClientRect();return{x:p.width/u.offsetWidth||1,y:p.height/u.offsetHeight||1,boundingClientRect:p}}static getPoint(u,p,C){const M=p.boundingClientRect;return new a.P((C.clientX-M.left)/p.x-u.clientLeft,(C.clientY-M.top)/p.y-u.clientTop)}static mousePos(u,p){const C=B.getScale(u);return B.getPoint(u,C,p)}static touchPos(u,p){const C=[],M=B.getScale(u);for(let I=0;I{u=[],p=0,C=0,M={}},O.addThrottleControl=G=>{const te=C++;return M[te]=G,te},O.removeThrottleControl=G=>{delete M[G],L()},O.getImage=(G,te,Ae=!0)=>new Promise((he,Me)=>{P.supported&&(G.headers||(G.headers={}),G.headers.accept="image/webp,*/*"),a.e(G,{type:"image"}),u.push({abortController:te,requestParameters:G,supportImageRefresh:Ae,state:"queued",onError:De=>{Me(De)},onSuccess:De=>{he(De)}}),L()});const I=G=>a._(this,void 0,void 0,function*(){G.state="running";const{requestParameters:te,supportImageRefresh:Ae,onError:he,onSuccess:Me,abortController:De}=G,je=Ae===!1&&!a.i(self)&&!a.g(te.url)&&(!te.headers||Object.keys(te.headers).reduce((ft,Bt)=>ft&&Bt==="accept",!0));p++;const Qe=je?j(te,De):a.m(te,De);try{const ft=yield Qe;delete G.abortController,G.state="completed",ft.data instanceof HTMLImageElement||a.b(ft.data)?Me(ft):ft.data&&Me({data:yield(Le=ft.data,typeof createImageBitmap=="function"?a.d(Le):a.f(Le)),cacheControl:ft.cacheControl,expires:ft.expires})}catch(ft){delete G.abortController,he(ft)}finally{p--,L()}var Le}),L=()=>{const G=(()=>{for(const te of Object.keys(M))if(M[te]())return!0;return!1})()?a.a.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:a.a.MAX_PARALLEL_IMAGE_REQUESTS;for(let te=p;te0;te++){const Ae=u.shift();Ae.abortController.signal.aborted?te--:I(Ae)}},j=(G,te)=>new Promise((Ae,he)=>{const Me=new Image,De=G.url,je=G.credentials;je&&je==="include"?Me.crossOrigin="use-credentials":(je&&je==="same-origin"||!a.s(De))&&(Me.crossOrigin="anonymous"),te.signal.addEventListener("abort",()=>{Me.src="",he(a.c())}),Me.fetchPriority="high",Me.onload=()=>{Me.onerror=Me.onload=null,Ae({data:Me})},Me.onerror=()=>{Me.onerror=Me.onload=null,te.signal.aborted||he(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."))},Me.src=De})}(oe||(oe={})),oe.resetRequestQueue(),function(O){O.Glyphs="Glyphs",O.Image="Image",O.Source="Source",O.SpriteImage="SpriteImage",O.SpriteJSON="SpriteJSON",O.Style="Style",O.Tile="Tile",O.Unknown="Unknown"}(ne||(ne={}));class ce{constructor(u){this._transformRequestFn=u}transformRequest(u,p){return this._transformRequestFn&&this._transformRequestFn(u,p)||{url:u}}normalizeSpriteURL(u,p,C){const M=function(I){const L=I.match(ae);if(!L)throw new Error(`Unable to parse URL "${I}"`);return{protocol:L[1],authority:L[2],path:L[3]||"/",params:L[4]?L[4].split("&"):[]}}(u);return M.path+=`${p}${C}`,function(I){const L=I.params.length?`?${I.params.join("&")}`:"";return`${I.protocol}://${I.authority}${I.path}${L}`}(M)}setTransformRequest(u){this._transformRequestFn=u}}const ae=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ue(O){var u=new a.A(3);return u[0]=O[0],u[1]=O[1],u[2]=O[2],u}var ye,Re=function(O,u,p){return O[0]=u[0]-p[0],O[1]=u[1]-p[1],O[2]=u[2]-p[2],O};ye=new a.A(3),a.A!=Float32Array&&(ye[0]=0,ye[1]=0,ye[2]=0);var Ne=function(O){var u=O[0],p=O[1];return u*u+p*p};function rt(O){const u=[];if(typeof O=="string")u.push({id:"default",url:O});else if(O&&O.length>0){const p=[];for(const{id:C,url:M}of O){const I=`${C}${M}`;p.indexOf(I)===-1&&(p.push(I),u.push({id:C,url:M}))}}return u}(function(){var O=new a.A(2);a.A!=Float32Array&&(O[0]=0,O[1]=0)})();class ct{constructor(u,p,C,M){this.context=u,this.format=C,this.texture=u.gl.createTexture(),this.update(p,M)}update(u,p,C){const{width:M,height:I}=u,L=!(this.size&&this.size[0]===M&&this.size[1]===I||C),{context:j}=this,{gl:G}=j;if(this.useMipmap=!!(p&&p.useMipmap),G.bindTexture(G.TEXTURE_2D,this.texture),j.pixelStoreUnpackFlipY.set(!1),j.pixelStoreUnpack.set(1),j.pixelStoreUnpackPremultiplyAlpha.set(this.format===G.RGBA&&(!p||p.premultiply!==!1)),L)this.size=[M,I],u instanceof HTMLImageElement||u instanceof HTMLCanvasElement||u instanceof HTMLVideoElement||u instanceof ImageData||a.b(u)?G.texImage2D(G.TEXTURE_2D,0,this.format,this.format,G.UNSIGNED_BYTE,u):G.texImage2D(G.TEXTURE_2D,0,this.format,M,I,0,this.format,G.UNSIGNED_BYTE,u.data);else{const{x:te,y:Ae}=C||{x:0,y:0};u instanceof HTMLImageElement||u instanceof HTMLCanvasElement||u instanceof HTMLVideoElement||u instanceof ImageData||a.b(u)?G.texSubImage2D(G.TEXTURE_2D,0,te,Ae,G.RGBA,G.UNSIGNED_BYTE,u):G.texSubImage2D(G.TEXTURE_2D,0,te,Ae,M,I,G.RGBA,G.UNSIGNED_BYTE,u.data)}this.useMipmap&&this.isSizePowerOfTwo()&&G.generateMipmap(G.TEXTURE_2D)}bind(u,p,C){const{context:M}=this,{gl:I}=M;I.bindTexture(I.TEXTURE_2D,this.texture),C!==I.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(C=I.LINEAR),u!==this.filter&&(I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MAG_FILTER,u),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_MIN_FILTER,C||u),this.filter=u),p!==this.wrap&&(I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_S,p),I.texParameteri(I.TEXTURE_2D,I.TEXTURE_WRAP_T,p),this.wrap=p)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:u}=this.context;u.deleteTexture(this.texture),this.texture=null}}function Fe(O){const{userImage:u}=O;return!!(u&&u.render&&u.render())&&(O.data.replace(new Uint8Array(u.data.buffer)),!0)}class He extends a.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(u){if(this.loaded!==u&&(this.loaded=u,u)){for(const{ids:p,promiseResolve:C}of this.requestors)C(this._getImagesForIds(p));this.requestors=[]}}getImage(u){const p=this.images[u];if(p&&!p.data&&p.spriteData){const C=p.spriteData;p.data=new a.R({width:C.width,height:C.height},C.context.getImageData(C.x,C.y,C.width,C.height).data),p.spriteData=null}return p}addImage(u,p){if(this.images[u])throw new Error(`Image id ${u} already exist, use updateImage instead`);this._validate(u,p)&&(this.images[u]=p)}_validate(u,p){let C=!0;const M=p.data||p.spriteData;return this._validateStretch(p.stretchX,M&&M.width)||(this.fire(new a.j(new Error(`Image "${u}" has invalid "stretchX" value`))),C=!1),this._validateStretch(p.stretchY,M&&M.height)||(this.fire(new a.j(new Error(`Image "${u}" has invalid "stretchY" value`))),C=!1),this._validateContent(p.content,p)||(this.fire(new a.j(new Error(`Image "${u}" has invalid "content" value`))),C=!1),C}_validateStretch(u,p){if(!u)return!0;let C=0;for(const M of u){if(M[0]{let M=!0;if(!this.isLoaded())for(const I of u)this.images[I]||(M=!1);this.isLoaded()||M?p(this._getImagesForIds(u)):this.requestors.push({ids:u,promiseResolve:p})})}_getImagesForIds(u){const p={};for(const C of u){let M=this.getImage(C);M||(this.fire(new a.k("styleimagemissing",{id:C})),M=this.getImage(C)),M?p[C]={data:M.data.clone(),pixelRatio:M.pixelRatio,sdf:M.sdf,version:M.version,stretchX:M.stretchX,stretchY:M.stretchY,content:M.content,hasRenderCallback:!!(M.userImage&&M.userImage.render)}:a.w(`Image "${C}" 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.`)}return p}getPixelSize(){const{width:u,height:p}=this.atlasImage;return{width:u,height:p}}getPattern(u){const p=this.patterns[u],C=this.getImage(u);if(!C)return null;if(p&&p.position.version===C.version)return p.position;if(p)p.position.version=C.version;else{const M={w:C.data.width+2,h:C.data.height+2,x:0,y:0},I=new a.I(M,C);this.patterns[u]={bin:M,position:I}}return this._updatePatternAtlas(),this.patterns[u].position}bind(u){const p=u.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new ct(u,this.atlasImage,p.RGBA),this.atlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE)}_updatePatternAtlas(){const u=[];for(const I in this.patterns)u.push(this.patterns[I].bin);const{w:p,h:C}=a.p(u),M=this.atlasImage;M.resize({width:p||1,height:C||1});for(const I in this.patterns){const{bin:L}=this.patterns[I],j=L.x+1,G=L.y+1,te=this.getImage(I).data,Ae=te.width,he=te.height;a.R.copy(te,M,{x:0,y:0},{x:j,y:G},{width:Ae,height:he}),a.R.copy(te,M,{x:0,y:he-1},{x:j,y:G-1},{width:Ae,height:1}),a.R.copy(te,M,{x:0,y:0},{x:j,y:G+he},{width:Ae,height:1}),a.R.copy(te,M,{x:Ae-1,y:0},{x:j-1,y:G},{width:1,height:he}),a.R.copy(te,M,{x:0,y:0},{x:j+Ae,y:G},{width:1,height:he})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(u){for(const p of u){if(this.callbackDispatchedThisFrame[p])continue;this.callbackDispatchedThisFrame[p]=!0;const C=this.getImage(p);C||a.w(`Image with ID: "${p}" was not found`),Fe(C)&&this.updateImage(p,C)}}}const Ce=1e20;function jt(O,u,p,C,M,I,L,j,G){for(let te=u;te-1);G++,I[G]=j,L[G]=te,L[G+1]=Ce}for(let j=0,G=0;j65535)throw new Error("glyphs > 65535 not supported");if(C.ranges[I])return{stack:u,id:p,glyph:M};if(!this.url)throw new Error("glyphsUrl is not set");if(!C.requests[I]){const j=Jt.loadGlyphRange(u,I,this.url,this.requestManager);C.requests[I]=j}const L=yield C.requests[I];for(const j in L)this._doesCharSupportLocalGlyph(+j)||(C.glyphs[+j]=L[+j]);return C.ranges[I]=!0,{stack:u,id:p,glyph:L[p]||null}})}_doesCharSupportLocalGlyph(u){return!!this.localIdeographFontFamily&&(a.u["CJK Unified Ideographs"](u)||a.u["Hangul Syllables"](u)||a.u.Hiragana(u)||a.u.Katakana(u))}_tinySDF(u,p,C){const M=this.localIdeographFontFamily;if(!M||!this._doesCharSupportLocalGlyph(C))return;let I=u.tinySDF;if(!I){let j="400";/bold/i.test(p)?j="900":/medium/i.test(p)?j="500":/light/i.test(p)&&(j="200"),I=u.tinySDF=new Jt.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:M,fontWeight:j})}const L=I.draw(String.fromCharCode(C));return{id:C,bitmap:new a.o({width:L.width||60,height:L.height||60},L.data),metrics:{width:L.glyphWidth/2||24,height:L.glyphHeight/2||24,left:L.glyphLeft/2+.5||0,top:L.glyphTop/2-27.5||-8,advance:L.glyphAdvance/2||24,isDoubleResolution:!0}}}}Jt.loadGlyphRange=function(O,u,p,C){return a._(this,void 0,void 0,function*(){const M=256*u,I=M+255,L=C.transformRequest(p.replace("{fontstack}",O).replace("{range}",`${M}-${I}`),ne.Glyphs),j=yield a.l(L,new AbortController);if(!j||!j.data)throw new Error(`Could not load glyph range. range: ${u}, ${M}-${I}`);const G={};for(const te of a.n(j.data))G[te.id]=te;return G})},Jt.TinySDF=class{constructor({fontSize:O=24,buffer:u=3,radius:p=8,cutoff:C=.25,fontFamily:M="sans-serif",fontWeight:I="normal",fontStyle:L="normal"}={}){this.buffer=u,this.cutoff=C,this.radius=p;const j=this.size=O+4*u,G=this._createCanvas(j),te=this.ctx=G.getContext("2d",{willReadFrequently:!0});te.font=`${L} ${I} ${O}px ${M}`,te.textBaseline="alphabetic",te.textAlign="left",te.fillStyle="black",this.gridOuter=new Float64Array(j*j),this.gridInner=new Float64Array(j*j),this.f=new Float64Array(j),this.z=new Float64Array(j+1),this.v=new Uint16Array(j)}_createCanvas(O){const u=document.createElement("canvas");return u.width=u.height=O,u}draw(O){const{width:u,actualBoundingBoxAscent:p,actualBoundingBoxDescent:C,actualBoundingBoxLeft:M,actualBoundingBoxRight:I}=this.ctx.measureText(O),L=Math.ceil(p),j=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(I-M))),G=Math.min(this.size-this.buffer,L+Math.ceil(C)),te=j+2*this.buffer,Ae=G+2*this.buffer,he=Math.max(te*Ae,0),Me=new Uint8ClampedArray(he),De={data:Me,width:te,height:Ae,glyphWidth:j,glyphHeight:G,glyphTop:L,glyphLeft:0,glyphAdvance:u};if(j===0||G===0)return De;const{ctx:je,buffer:Qe,gridInner:Le,gridOuter:ft}=this;je.clearRect(Qe,Qe,j,G),je.fillText(O,Qe,Qe+L);const Bt=je.getImageData(Qe,Qe,j,G);ft.fill(Ce,0,he),Le.fill(0,0,he);for(let qe=0;qe0?en*en:0,Le[Tt]=en<0?en*en:0}}jt(ft,0,0,te,Ae,te,this.f,this.v,this.z),jt(Le,Qe,Qe,j,G,te,this.f,this.v,this.z);for(let qe=0;qe1&&(G=u[++j]);const Ae=Math.abs(te-G.left),he=Math.abs(te-G.right),Me=Math.min(Ae,he);let De;const je=I/C*(M+1);if(G.isDash){const Qe=M-Math.abs(je);De=Math.sqrt(Me*Me+Qe*Qe)}else De=M-Math.sqrt(Me*Me+je*je);this.data[L+te]=Math.max(0,Math.min(255,De+128))}}}addRegularDash(u){for(let j=u.length-1;j>=0;--j){const G=u[j],te=u[j+1];G.zeroLength?u.splice(j,1):te&&te.isDash===G.isDash&&(te.left=G.left,u.splice(j,1))}const p=u[0],C=u[u.length-1];p.isDash===C.isDash&&(p.left=C.left-this.width,C.right=p.right+this.width);const M=this.width*this.nextRow;let I=0,L=u[I];for(let j=0;j1&&(L=u[++I]);const G=Math.abs(j-L.left),te=Math.abs(j-L.right),Ae=Math.min(G,te);this.data[M+j]=Math.max(0,Math.min(255,(L.isDash?Ae:-Ae)+128))}}addDash(u,p){const C=p?7:0,M=2*C+1;if(this.nextRow+M>this.height)return a.w("LineAtlas out of space"),null;let I=0;for(let j=0;j{p.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[Vt]}numActive(){return Object.keys(this.active).length}}const dt=Math.floor(k.hardwareConcurrency/2);let kt,Dt;function Se(){return kt||(kt=new pt),kt}pt.workerCount=a.B(globalThis)?Math.max(Math.min(dt,3),1):1;class de{constructor(u,p){this.workerPool=u,this.actors=[],this.currentActor=0,this.id=p;const C=this.workerPool.acquire(p);for(let M=0;M{p.remove()}),this.actors=[],u&&this.workerPool.release(this.id)}registerMessageHandler(u,p){for(const C of this.actors)C.registerMessageHandler(u,p)}}function xe(){return Dt||(Dt=new de(Se(),a.G),Dt.registerMessageHandler("getResource",(O,u,p)=>a.m(u,p))),Dt}function Pe(O,u){const p=a.F();return a.H(p,p,[1,1,0]),a.J(p,p,[.5*O.width,.5*O.height,1]),a.K(p,p,O.calculatePosMatrix(u.toUnwrapped()))}function Ze(O,u,p,C,M,I){const L=function(he,Me,De){if(he)for(const je of he){const Qe=Me[je];if(Qe&&Qe.source===De&&Qe.type==="fill-extrusion")return!0}else for(const je in Me){const Qe=Me[je];if(Qe.source===De&&Qe.type==="fill-extrusion")return!0}return!1}(M&&M.layers,u,O.id),j=I.maxPitchScaleFactor(),G=O.tilesIn(C,j,L);G.sort(Xe);const te=[];for(const he of G)te.push({wrappedTileID:he.tileID.wrapped().key,queryResults:he.tile.queryRenderedFeatures(u,p,O._state,he.queryGeometry,he.cameraQueryGeometry,he.scale,M,I,j,Pe(O.transform,he.tileID))});const Ae=function(he){const Me={},De={};for(const je of he){const Qe=je.queryResults,Le=je.wrappedTileID,ft=De[Le]=De[Le]||{};for(const Bt in Qe){const qe=Qe[Bt],_t=ft[Bt]=ft[Bt]||{},Ut=Me[Bt]=Me[Bt]||[];for(const Tt of qe)_t[Tt.featureIndex]||(_t[Tt.featureIndex]=!0,Ut.push(Tt))}}return Me}(te);for(const he in Ae)Ae[he].forEach(Me=>{const De=Me.feature,je=O.getFeatureState(De.layer["source-layer"],De.id);De.source=De.layer.source,De.layer["source-layer"]&&(De.sourceLayer=De.layer["source-layer"]),De.state=je});return Ae}function Xe(O,u){const p=O.tileID,C=u.tileID;return p.overscaledZ-C.overscaledZ||p.canonical.y-C.canonical.y||p.wrap-C.wrap||p.canonical.x-C.canonical.x}function wt(O,u,p){return a._(this,void 0,void 0,function*(){let C=O;if(O.url?C=(yield a.h(u.transformRequest(O.url,ne.Source),p)).data:yield k.frameAsync(p),!C)return null;const M=a.L(a.e(C,O),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);return"vector_layers"in C&&C.vector_layers&&(M.vectorLayerIds=C.vector_layers.map(I=>I.id)),M})}class Kt{constructor(u,p){u&&(p?this.setSouthWest(u).setNorthEast(p):Array.isArray(u)&&(u.length===4?this.setSouthWest([u[0],u[1]]).setNorthEast([u[2],u[3]]):this.setSouthWest(u[0]).setNorthEast(u[1])))}setNorthEast(u){return this._ne=u instanceof a.M?new a.M(u.lng,u.lat):a.M.convert(u),this}setSouthWest(u){return this._sw=u instanceof a.M?new a.M(u.lng,u.lat):a.M.convert(u),this}extend(u){const p=this._sw,C=this._ne;let M,I;if(u instanceof a.M)M=u,I=u;else{if(!(u instanceof Kt))return Array.isArray(u)?u.length===4||u.every(Array.isArray)?this.extend(Kt.convert(u)):this.extend(a.M.convert(u)):u&&("lng"in u||"lon"in u)&&"lat"in u?this.extend(a.M.convert(u)):this;if(M=u._sw,I=u._ne,!M||!I)return this}return p||C?(p.lng=Math.min(M.lng,p.lng),p.lat=Math.min(M.lat,p.lat),C.lng=Math.max(I.lng,C.lng),C.lat=Math.max(I.lat,C.lat)):(this._sw=new a.M(M.lng,M.lat),this._ne=new a.M(I.lng,I.lat)),this}getCenter(){return new a.M((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 a.M(this.getWest(),this.getNorth())}getSouthEast(){return new a.M(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(u){const{lng:p,lat:C}=a.M.convert(u);let M=this._sw.lng<=p&&p<=this._ne.lng;return this._sw.lng>this._ne.lng&&(M=this._sw.lng>=p&&p>=this._ne.lng),this._sw.lat<=C&&C<=this._ne.lat&&M}static convert(u){return u instanceof Kt?u:u&&new Kt(u)}static fromLngLat(u,p=0){const C=360*p/40075017,M=C/Math.cos(Math.PI/180*u.lat);return new Kt(new a.M(u.lng-M,u.lat-C),new a.M(u.lng+M,u.lat+C))}}class Pt{constructor(u,p,C){this.bounds=Kt.convert(this.validateBounds(u)),this.minzoom=p||0,this.maxzoom=C||24}validateBounds(u){return Array.isArray(u)&&u.length===4?[Math.max(-180,u[0]),Math.max(-90,u[1]),Math.min(180,u[2]),Math.min(90,u[3])]:[-180,-90,180,90]}contains(u){const p=Math.pow(2,u.z),C=Math.floor(a.N(this.bounds.getWest())*p),M=Math.floor(a.O(this.bounds.getNorth())*p),I=Math.ceil(a.N(this.bounds.getEast())*p),L=Math.ceil(a.O(this.bounds.getSouth())*p);return u.x>=C&&u.x=M&&u.y{this._options.tiles=u}),this}setUrl(u){return this.setSourceProperty(()=>{this.url=u,this._options.url=u}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}serialize(){return a.e({},this._options)}loadTile(u){return a._(this,void 0,void 0,function*(){const p=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),C={request:this.map._requestManager.transformRequest(p,ne.Tile),uid:u.uid,tileID:u.tileID,zoom:u.tileID.overscaledZ,tileSize:this.tileSize*u.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};C.request.collectResourceTiming=this._collectResourceTiming;let M="reloadTile";if(u.actor&&u.state!=="expired"){if(u.state==="loading")return new Promise((I,L)=>{u.reloadPromise={resolve:I,reject:L}})}else u.actor=this.dispatcher.getActor(),M="loadTile";u.abortController=new AbortController;try{const I=yield u.actor.sendAsync({type:M,data:C},u.abortController);if(delete u.abortController,u.aborted)return;this._afterTileLoadWorkerResponse(u,I)}catch(I){if(delete u.abortController,u.aborted)return;if(I&&I.status!==404)throw I;this._afterTileLoadWorkerResponse(u,null)}})}_afterTileLoadWorkerResponse(u,p){if(p&&p.resourceTiming&&(u.resourceTiming=p.resourceTiming),p&&this.map._refreshExpiredTiles&&u.setExpiryData(p),u.loadVectorData(p,this.map.painter),u.reloadPromise){const C=u.reloadPromise;u.reloadPromise=null,this.loadTile(u).then(C.resolve).catch(C.reject)}}abortTile(u){return a._(this,void 0,void 0,function*(){u.abortController&&(u.abortController.abort(),delete u.abortController),u.actor&&(yield u.actor.sendAsync({type:"abortTile",data:{uid:u.uid,type:this.type,source:this.id}}))})}unloadTile(u){return a._(this,void 0,void 0,function*(){u.unloadVectorData(),u.actor&&(yield u.actor.sendAsync({type:"removeTile",data:{uid:u.uid,type:this.type,source:this.id}}))})}hasTransition(){return!1}}class mt extends a.E{constructor(u,p,C,M){super(),this.id=u,this.dispatcher=C,this.setEventedParent(M),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.e({type:"raster"},p),a.e(this,a.L(p,["url","scheme","tileSize"]))}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this._tileJSONRequest=new AbortController;try{const u=yield wt(this._options,this.map._requestManager,this._tileJSONRequest);this._tileJSONRequest=null,this._loaded=!0,u&&(a.e(this,u),u.bounds&&(this.tileBounds=new Pt(u.bounds,this.minzoom,this.maxzoom)),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})))}catch(u){this._tileJSONRequest=null,this.fire(new a.j(u))}})}loaded(){return this._loaded}onAdd(u){this.map=u,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null)}setSourceProperty(u){this._tileJSONRequest&&(this._tileJSONRequest.abort(),this._tileJSONRequest=null),u(),this.load()}setTiles(u){return this.setSourceProperty(()=>{this._options.tiles=u}),this}serialize(){return a.e({},this._options)}hasTile(u){return!this.tileBounds||this.tileBounds.contains(u.canonical)}loadTile(u){return a._(this,void 0,void 0,function*(){const p=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);u.abortController=new AbortController;try{const C=yield oe.getImage(this.map._requestManager.transformRequest(p,ne.Tile),u.abortController,this.map._refreshExpiredTiles);if(delete u.abortController,u.aborted)return void(u.state="unloaded");if(C&&C.data){this.map._refreshExpiredTiles&&C.cacheControl&&C.expires&&u.setExpiryData({cacheControl:C.cacheControl,expires:C.expires});const M=this.map.painter.context,I=M.gl,L=C.data;u.texture=this.map.painter.getTileTexture(L.width),u.texture?u.texture.update(L,{useMipmap:!0}):(u.texture=new ct(M,L,I.RGBA,{useMipmap:!0}),u.texture.bind(I.LINEAR,I.CLAMP_TO_EDGE,I.LINEAR_MIPMAP_NEAREST),M.extTextureFilterAnisotropic&&I.texParameterf(I.TEXTURE_2D,M.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,M.extTextureFilterAnisotropicMax)),u.state="loaded"}}catch(C){if(delete u.abortController,u.aborted)u.state="unloaded";else if(C)throw u.state="errored",C}})}abortTile(u){return a._(this,void 0,void 0,function*(){u.abortController&&(u.abortController.abort(),delete u.abortController)})}unloadTile(u){return a._(this,void 0,void 0,function*(){u.texture&&this.map.painter.saveTileTexture(u.texture)})}hasTransition(){return!1}}class pn extends mt{constructor(u,p,C,M){super(u,p,C,M),this.type="raster-dem",this.maxzoom=22,this._options=a.e({type:"raster-dem"},p),this.encoding=p.encoding||"mapbox",this.redFactor=p.redFactor,this.greenFactor=p.greenFactor,this.blueFactor=p.blueFactor,this.baseShift=p.baseShift}loadTile(u){return a._(this,void 0,void 0,function*(){const p=u.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),C=this.map._requestManager.transformRequest(p,ne.Tile);u.neighboringTiles=this._getNeighboringTiles(u.tileID),u.abortController=new AbortController;try{const M=yield oe.getImage(C,u.abortController,this.map._refreshExpiredTiles);if(delete u.abortController,u.aborted)return void(u.state="unloaded");if(M&&M.data){const I=M.data;this.map._refreshExpiredTiles&&M.cacheControl&&M.expires&&u.setExpiryData({cacheControl:M.cacheControl,expires:M.expires});const L=a.b(I)&&a.S()?I:yield this.readImageNow(I),j={type:this.type,uid:u.uid,source:this.id,rawImageData:L,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};if(!u.actor||u.state==="expired"){u.actor=this.dispatcher.getActor();const G=yield u.actor.sendAsync({type:"loadDEMTile",data:j});u.dem=G,u.needsHillshadePrepare=!0,u.needsTerrainPrepare=!0,u.state="loaded"}}}catch(M){if(delete u.abortController,u.aborted)u.state="unloaded";else if(M)throw u.state="errored",M}})}readImageNow(u){return a._(this,void 0,void 0,function*(){if(typeof VideoFrame<"u"&&a.U()){const p=u.width+2,C=u.height+2;try{return new a.R({width:p,height:C},yield a.V(u,-1,-1,p,C))}catch{}}return k.getImageData(u,1)})}_getNeighboringTiles(u){const p=u.canonical,C=Math.pow(2,p.z),M=(p.x-1+C)%C,I=p.x===0?u.wrap-1:u.wrap,L=(p.x+1+C)%C,j=p.x+1===C?u.wrap+1:u.wrap,G={};return G[new a.Q(u.overscaledZ,I,p.z,M,p.y).key]={backfilled:!1},G[new a.Q(u.overscaledZ,j,p.z,L,p.y).key]={backfilled:!1},p.y>0&&(G[new a.Q(u.overscaledZ,I,p.z,M,p.y-1).key]={backfilled:!1},G[new a.Q(u.overscaledZ,u.wrap,p.z,p.x,p.y-1).key]={backfilled:!1},G[new a.Q(u.overscaledZ,j,p.z,L,p.y-1).key]={backfilled:!1}),p.y+10&&a.e(I,{resourceTiming:M}),this.fire(new a.k("data",Object.assign(Object.assign({},I),{sourceDataType:"metadata"}))),this.fire(new a.k("data",Object.assign(Object.assign({},I),{sourceDataType:"content"})))}catch(C){if(this._pendingLoads--,this._removed)return void this.fire(new a.k("dataabort",{dataType:"source"}));this.fire(new a.j(C))}})}loaded(){return this._pendingLoads===0}loadTile(u){return a._(this,void 0,void 0,function*(){const p=u.actor?"reloadTile":"loadTile";u.actor=this.actor;const C={type:this.type,uid:u.uid,tileID:u.tileID,zoom:u.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};u.abortController=new AbortController;const M=yield this.actor.sendAsync({type:p,data:C},u.abortController);delete u.abortController,u.unloadVectorData(),u.aborted||u.loadVectorData(M,this.map.painter,p==="reloadTile")})}abortTile(u){return a._(this,void 0,void 0,function*(){u.abortController&&(u.abortController.abort(),delete u.abortController),u.aborted=!0})}unloadTile(u){return a._(this,void 0,void 0,function*(){u.unloadVectorData(),yield this.actor.sendAsync({type:"removeTile",data:{uid:u.uid,type:this.type,source:this.id}})})}onRemove(){this._removed=!0,this.actor.sendAsync({type:"removeSource",data:{type:this.type,source:this.id}})}serialize(){return a.e({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}}var Sn=a.X([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class nr extends a.E{constructor(u,p,C,M){super(),this.id=u,this.dispatcher=C,this.coordinates=p.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(M),this.options=p}load(u){return a._(this,void 0,void 0,function*(){this._loaded=!1,this.fire(new a.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=new AbortController;try{const p=yield oe.getImage(this.map._requestManager.transformRequest(this.url,ne.Image),this._request);this._request=null,this._loaded=!0,p&&p.data&&(this.image=p.data,u&&(this.coordinates=u),this._finishLoading())}catch(p){this._request=null,this.fire(new a.j(p))}})}loaded(){return this._loaded}updateImage(u){return u.url?(this._request&&(this._request.abort(),this._request=null),this.options.url=u.url,this.load(u.coordinates).finally(()=>{this.texture=null}),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(u){this.map=u,this.load()}onRemove(){this._request&&(this._request.abort(),this._request=null)}setCoordinates(u){this.coordinates=u;const p=u.map(a.Y.fromLngLat);this.tileID=function(M){let I=1/0,L=1/0,j=-1/0,G=-1/0;for(const Me of M)I=Math.min(I,Me.x),L=Math.min(L,Me.y),j=Math.max(j,Me.x),G=Math.max(G,Me.y);const te=Math.max(j-I,G-L),Ae=Math.max(0,Math.floor(-Math.log(te)/Math.LN2)),he=Math.pow(2,Ae);return new a.a0(Ae,Math.floor((I+j)/2*he),Math.floor((L+G)/2*he))}(p),this.minzoom=this.maxzoom=this.tileID.z;const C=p.map(M=>this.tileID.getTilePoint(M)._round());return this._boundsArray=new a.Z,this._boundsArray.emplaceBack(C[0].x,C[0].y,0,0),this._boundsArray.emplaceBack(C[1].x,C[1].y,a.W,0),this._boundsArray.emplaceBack(C[3].x,C[3].y,0,a.W),this._boundsArray.emplaceBack(C[2].x,C[2].y,a.W,a.W),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new a.k("data",{dataType:"source",sourceDataType:"content"})),this}prepare(){if(Object.keys(this.tiles).length===0||!this.image)return;const u=this.map.painter.context,p=u.gl;this.boundsBuffer||(this.boundsBuffer=u.createVertexBuffer(this._boundsArray,Sn.members)),this.boundsSegments||(this.boundsSegments=a.$.simpleSegment(0,0,4,2)),this.texture||(this.texture=new ct(u,this.image,p.RGBA),this.texture.bind(p.LINEAR,p.CLAMP_TO_EDGE));let C=!1;for(const M in this.tiles){const I=this.tiles[M];I.state!=="loaded"&&(I.state="loaded",I.texture=this.texture,C=!0)}C&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}loadTile(u){return a._(this,void 0,void 0,function*(){this.tileID&&this.tileID.equals(u.tileID.canonical)?(this.tiles[String(u.tileID.wrap)]=u,u.buckets={}):u.state="errored"})}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}class Mr extends nr{constructor(u,p,C,M){super(u,p,C,M),this.roundZoom=!0,this.type="video",this.options=p}load(){return a._(this,void 0,void 0,function*(){this._loaded=!1;const u=this.options;this.urls=[];for(const p of u.urls)this.urls.push(this.map._requestManager.transformRequest(p,ne.Source).url);try{const p=yield a.a2(this.urls);if(this._loaded=!0,!p)return;this.video=p,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading()}catch(p){this.fire(new a.j(p))}})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(u){if(this.video){const p=this.video.seekable;up.end(0)?this.fire(new a.j(new a.a1(`sources.${this.id}`,null,`Playback for this video can be set only between the ${p.start(0)} and ${p.end(0)}-second mark.`))):this.video.currentTime=u}}getVideo(){return this.video}onAdd(u){this.map||(this.map=u,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(Object.keys(this.tiles).length===0||this.video.readyState<2)return;const u=this.map.painter.context,p=u.gl;this.boundsBuffer||(this.boundsBuffer=u.createVertexBuffer(this._boundsArray,Sn.members)),this.boundsSegments||(this.boundsSegments=a.$.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(p.LINEAR,p.CLAMP_TO_EDGE),p.texSubImage2D(p.TEXTURE_2D,0,0,0,p.RGBA,p.UNSIGNED_BYTE,this.video)):(this.texture=new ct(u,this.video,p.RGBA),this.texture.bind(p.LINEAR,p.CLAMP_TO_EDGE));let C=!1;for(const M in this.tiles){const I=this.tiles[M];I.state!=="loaded"&&(I.state="loaded",I.texture=this.texture,C=!0)}C&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}}class Qr extends nr{constructor(u,p,C,M){super(u,p,C,M),p.coordinates?Array.isArray(p.coordinates)&&p.coordinates.length===4&&!p.coordinates.some(I=>!Array.isArray(I)||I.length!==2||I.some(L=>typeof L!="number"))||this.fire(new a.j(new a.a1(`sources.${u}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.j(new a.a1(`sources.${u}`,null,'missing required property "coordinates"'))),p.animate&&typeof p.animate!="boolean"&&this.fire(new a.j(new a.a1(`sources.${u}`,null,'optional "animate" property must be a boolean value'))),p.canvas?typeof p.canvas=="string"||p.canvas instanceof HTMLCanvasElement||this.fire(new a.j(new a.a1(`sources.${u}`,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 a.j(new a.a1(`sources.${u}`,null,'missing required property "canvas"'))),this.options=p,this.animate=p.animate===void 0||p.animate}load(){return a._(this,void 0,void 0,function*(){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 a.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())})}getCanvas(){return this.canvas}onAdd(u){this.map=u,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let u=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,u=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,u=!0),this._hasInvalidDimensions()||Object.keys(this.tiles).length===0)return;const p=this.map.painter.context,C=p.gl;this.boundsBuffer||(this.boundsBuffer=p.createVertexBuffer(this._boundsArray,Sn.members)),this.boundsSegments||(this.boundsSegments=a.$.simpleSegment(0,0,4,2)),this.texture?(u||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new ct(p,this.canvas,C.RGBA,{premultiply:!0});let M=!1;for(const I in this.tiles){const L=this.tiles[I];L.state!=="loaded"&&(L.state="loaded",L.texture=this.texture,M=!0)}M&&this.fire(new a.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const u of[this.canvas.width,this.canvas.height])if(isNaN(u)||u<=0)return!0;return!1}}const _r={},vi=O=>{switch(O){case"geojson":return ir;case"image":return nr;case"raster":return mt;case"raster-dem":return pn;case"vector":return zn;case"video":return Mr;case"canvas":return Qr}return _r[O]};class we extends a.E{constructor(){super(...arguments),this.pluginStatus="unavailable",this.pluginURL=null,this.dispatcher=xe(),this.queue=[]}_sendPluginStateToWorker(){return a._(this,void 0,void 0,function*(){yield this.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}),this.fire(new a.k("pluginStateChange",{pluginStatus:this.pluginStatus,pluginURL:this.pluginURL}))})}getRTLTextPluginStatus(){return this.pluginStatus}clearRTLTextPlugin(){this.pluginStatus="unavailable",this.pluginURL=null}setRTLTextPlugin(u,p=!1){return a._(this,void 0,void 0,function*(){if(this.pluginStatus==="deferred"||this.pluginStatus==="loading"||this.pluginStatus==="loaded")throw new Error("setRTLTextPlugin cannot be called multiple times.");this.pluginURL=k.resolveURL(u),this.pluginStatus="deferred",yield this._sendPluginStateToWorker(),p||(yield this._downloadRTLTextPlugin())})}_downloadRTLTextPlugin(){return a._(this,void 0,void 0,function*(){if(this.pluginStatus!=="deferred"||!this.pluginURL)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");try{this.pluginStatus="loading",yield this._sendPluginStateToWorker(),yield a.l({url:this.pluginURL},new AbortController),this.pluginStatus="loaded"}catch{this.pluginStatus="error"}yield this._sendPluginStateToWorker()})}lazyLoadRTLTextPlugin(){return a._(this,void 0,void 0,function*(){this.pluginStatus==="deferred"&&(yield this._downloadRTLTextPlugin())})}}let V=null;function X(){return V||(V=new we),V}class me{constructor(u,p){this.timeAdded=0,this.fadeEndTime=0,this.tileID=u,this.uid=a.a3(),this.uses=0,this.tileSize=p,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(u){const p=u+this.timeAdded;pI.getLayer(te)).filter(Boolean);if(G.length!==0){j.layers=G,j.stateDependentLayerIds&&(j.stateDependentLayers=j.stateDependentLayerIds.map(te=>G.filter(Ae=>Ae.id===te)[0]));for(const te of G)L[te.id]=j}}return L}(u.buckets,p.style),this.hasSymbolBuckets=!1;for(const M in this.buckets){const I=this.buckets[M];if(I instanceof a.a5){if(this.hasSymbolBuckets=!0,!C)break;I.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const M in this.buckets){const I=this.buckets[M];if(I instanceof a.a5&&I.hasRTLText){this.hasRTLText=!0,X().lazyLoadRTLTextPlugin();break}}this.queryPadding=0;for(const M in this.buckets){const I=this.buckets[M];this.queryPadding=Math.max(this.queryPadding,p.style.getLayer(M).queryRadius(I))}u.imageAtlas&&(this.imageAtlas=u.imageAtlas),u.glyphAtlasImage&&(this.glyphAtlasImage=u.glyphAtlasImage)}else this.collisionBoxArray=new a.a4}unloadVectorData(){for(const u in this.buckets)this.buckets[u].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(u){return this.buckets[u.id]}upload(u){for(const C in this.buckets){const M=this.buckets[C];M.uploadPending()&&M.upload(u)}const p=u.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new ct(u,this.imageAtlas.image,p.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new ct(u,this.glyphAtlasImage,p.ALPHA),this.glyphAtlasImage=null)}prepare(u){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(u,this.imageAtlasTexture)}queryRenderedFeatures(u,p,C,M,I,L,j,G,te,Ae){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:M,cameraQueryGeometry:I,scale:L,tileSize:this.tileSize,pixelPosMatrix:Ae,transform:G,params:j,queryPadding:this.queryPadding*te},u,p,C):{}}querySourceFeatures(u,p){const C=this.latestFeatureIndex;if(!C||!C.rawTileData)return;const M=C.loadVTLayers(),I=p&&p.sourceLayer?p.sourceLayer:"",L=M._geojsonTileLayer||M[I];if(!L)return;const j=a.a6(p&&p.filter),{z:G,x:te,y:Ae}=this.tileID.canonical,he={z:G,x:te,y:Ae};for(let Me=0;MeC)M=!1;else if(p)if(this.expirationTime{this.remove(u,I)},C)),this.data[M].push(I),this.order.push(M),this.order.length>this.max){const L=this._getAndRemoveByKey(this.order[0]);L&&this.onRemove(L)}return this}has(u){return u.wrapped().key in this.data}getAndRemove(u){return this.has(u)?this._getAndRemoveByKey(u.wrapped().key):null}_getAndRemoveByKey(u){const p=this.data[u].shift();return p.timeout&&clearTimeout(p.timeout),this.data[u].length===0&&delete this.data[u],this.order.splice(this.order.indexOf(u),1),p.value}getByKey(u){const p=this.data[u];return p?p[0].value:null}get(u){return this.has(u)?this.data[u.wrapped().key][0].value:null}remove(u,p){if(!this.has(u))return this;const C=u.wrapped().key,M=p===void 0?0:this.data[C].indexOf(p),I=this.data[C][M];return this.data[C].splice(M,1),I.timeout&&clearTimeout(I.timeout),this.data[C].length===0&&delete this.data[C],this.onRemove(I.value),this.order.splice(this.order.indexOf(C),1),this}setMaxSize(u){for(this.max=u;this.order.length>this.max;){const p=this._getAndRemoveByKey(this.order[0]);p&&this.onRemove(p)}return this}filter(u){const p=[];for(const C in this.data)for(const M of this.data[C])u(M.value)||p.push(M);for(const C of p)this.remove(C.value.tileID,C)}}class bt{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(u,p,C){const M=String(p);if(this.stateChanges[u]=this.stateChanges[u]||{},this.stateChanges[u][M]=this.stateChanges[u][M]||{},a.e(this.stateChanges[u][M],C),this.deletedStates[u]===null){this.deletedStates[u]={};for(const I in this.state[u])I!==M&&(this.deletedStates[u][I]=null)}else if(this.deletedStates[u]&&this.deletedStates[u][M]===null){this.deletedStates[u][M]={};for(const I in this.state[u][M])C[I]||(this.deletedStates[u][M][I]=null)}else for(const I in C)this.deletedStates[u]&&this.deletedStates[u][M]&&this.deletedStates[u][M][I]===null&&delete this.deletedStates[u][M][I]}removeFeatureState(u,p,C){if(this.deletedStates[u]===null)return;const M=String(p);if(this.deletedStates[u]=this.deletedStates[u]||{},C&&p!==void 0)this.deletedStates[u][M]!==null&&(this.deletedStates[u][M]=this.deletedStates[u][M]||{},this.deletedStates[u][M][C]=null);else if(p!==void 0)if(this.stateChanges[u]&&this.stateChanges[u][M])for(C in this.deletedStates[u][M]={},this.stateChanges[u][M])this.deletedStates[u][M][C]=null;else this.deletedStates[u][M]=null;else this.deletedStates[u]=null}getState(u,p){const C=String(p),M=a.e({},(this.state[u]||{})[C],(this.stateChanges[u]||{})[C]);if(this.deletedStates[u]===null)return{};if(this.deletedStates[u]){const I=this.deletedStates[u][p];if(I===null)return{};for(const L in I)delete M[L]}return M}initializeTileState(u,p){u.setFeatureState(this.state,p)}coalesceChanges(u,p){const C={};for(const M in this.stateChanges){this.state[M]=this.state[M]||{};const I={};for(const L in this.stateChanges[M])this.state[M][L]||(this.state[M][L]={}),a.e(this.state[M][L],this.stateChanges[M][L]),I[L]=this.state[M][L];C[M]=I}for(const M in this.deletedStates){this.state[M]=this.state[M]||{};const I={};if(this.deletedStates[M]===null)for(const L in this.state[M])I[L]={},this.state[M][L]={};else for(const L in this.deletedStates[M]){if(this.deletedStates[M][L]===null)this.state[M][L]={};else for(const j of Object.keys(this.deletedStates[M][L]))delete this.state[M][L][j];I[L]=this.state[M][L]}C[M]=C[M]||{},a.e(C[M],I)}if(this.stateChanges={},this.deletedStates={},Object.keys(C).length!==0)for(const M in u)u[M].setFeatureState(C,p)}}class Et extends a.E{constructor(u,p,C){super(),this.id=u,this.dispatcher=C,this.on("data",M=>{M.dataType==="source"&&M.sourceDataType==="metadata"&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&M.dataType==="source"&&M.sourceDataType==="content"&&(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=((M,I,L,j)=>{const G=new(vi(I.type))(M,I,L,j);if(G.id!==M)throw new Error(`Expected Source id to be ${M} instead of ${G.id}`);return G})(u,p,C,this),this._tiles={},this._cache=new At(0,M=>this._unloadTile(M)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new bt,this._didEmitContent=!1,this._updated=!1}onAdd(u){this.map=u,this._maxTileCacheSize=u?u._maxTileCacheSize:null,this._maxTileCacheZoomLevels=u?u._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(u)}onRemove(u){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(u)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(this.used===void 0&&this.usedForTerrain===void 0||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(const u in this._tiles){const p=this._tiles[u];if(p.state!=="loaded"&&p.state!=="errored")return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const u=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,u&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(u,p,C){return a._(this,void 0,void 0,function*(){try{yield this._source.loadTile(u),this._tileLoaded(u,p,C)}catch(M){u.state="errored",M.status!==404?this._source.fire(new a.j(M,{tile:u})):this.update(this.transform,this.terrain)}})}_unloadTile(u){this._source.unloadTile&&this._source.unloadTile(u)}_abortTile(u){this._source.abortTile&&this._source.abortTile(u),this._source.fire(new a.k("dataabort",{tile:u,coord:u.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(u){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const p in this._tiles){const C=this._tiles[p];C.upload(u),C.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(u=>u.tileID).sort(sr).map(u=>u.key)}getRenderableIds(u){const p=[];for(const C in this._tiles)this._isIdRenderable(C,u)&&p.push(this._tiles[C]);return u?p.sort((C,M)=>{const I=C.tileID,L=M.tileID,j=new a.P(I.canonical.x,I.canonical.y)._rotate(this.transform.angle),G=new a.P(L.canonical.x,L.canonical.y)._rotate(this.transform.angle);return I.overscaledZ-L.overscaledZ||G.y-j.y||G.x-j.x}).map(C=>C.tileID.key):p.map(C=>C.tileID).sort(sr).map(C=>C.key)}hasRenderableParent(u){const p=this.findLoadedParent(u,0);return!!p&&this._isIdRenderable(p.tileID.key)}_isIdRenderable(u,p){return this._tiles[u]&&this._tiles[u].hasData()&&!this._coveredTiles[u]&&(p||!this._tiles[u].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const u in this._tiles)this._tiles[u].state!=="errored"&&this._reloadTile(u,"reloading")}}_reloadTile(u,p){return a._(this,void 0,void 0,function*(){const C=this._tiles[u];C&&(C.state!=="loading"&&(C.state=p),yield this._loadTile(C,u,p))})}_tileLoaded(u,p,C){u.timeAdded=k.now(),C==="expired"&&(u.refreshedUponExpiration=!0),this._setTileReloadTimer(p,u),this.getSource().type==="raster-dem"&&u.dem&&this._backfillDEM(u),this._state.initializeTileState(u,this.map?this.map.painter:null),u.aborted||this._source.fire(new a.k("data",{dataType:"source",tile:u,coord:u.tileID}))}_backfillDEM(u){const p=this.getRenderableIds();for(let M=0;M1||(Math.abs(L)>1&&(Math.abs(L+G)===1?L+=G:Math.abs(L-G)===1&&(L-=G)),I.dem&&M.dem&&(M.dem.backfillBorder(I.dem,L,j),M.neighboringTiles&&M.neighboringTiles[te]&&(M.neighboringTiles[te].backfilled=!0)))}}getTile(u){return this.getTileByID(u.key)}getTileByID(u){return this._tiles[u]}_retainLoadedChildren(u,p,C,M){for(const I in this._tiles){let L=this._tiles[I];if(M[I]||!L.hasData()||L.tileID.overscaledZ<=p||L.tileID.overscaledZ>C)continue;let j=L.tileID;for(;L&&L.tileID.overscaledZ>p+1;){const te=L.tileID.scaledTo(L.tileID.overscaledZ-1);L=this._tiles[te.key],L&&L.hasData()&&(j=te)}let G=j;for(;G.overscaledZ>p;)if(G=G.scaledTo(G.overscaledZ-1),u[G.key]){M[j.key]=j;break}}}findLoadedParent(u,p){if(u.key in this._loadedParentTiles){const C=this._loadedParentTiles[u.key];return C&&C.tileID.overscaledZ>=p?C:null}for(let C=u.overscaledZ-1;C>=p;C--){const M=u.scaledTo(C),I=this._getLoadedTile(M);if(I)return I}}_getLoadedTile(u){const p=this._tiles[u.key];return p&&p.hasData()?p:this._cache.getByKey(u.wrapped().key)}updateCacheSize(u){const p=Math.ceil(u.width/this._source.tileSize)+1,C=Math.ceil(u.height/this._source.tileSize)+1,M=Math.floor(p*C*(this._maxTileCacheZoomLevels===null?a.a.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),I=typeof this._maxTileCacheSize=="number"?Math.min(this._maxTileCacheSize,M):M;this._cache.setMaxSize(I)}handleWrapJump(u){const p=Math.round((u-(this._prevLng===void 0?u:this._prevLng))/360);if(this._prevLng=u,p){const C={};for(const M in this._tiles){const I=this._tiles[M];I.tileID=I.tileID.unwrapTo(I.tileID.wrap+p),C[I.tileID.key]=I}this._tiles=C;for(const M in this._timers)clearTimeout(this._timers[M]),delete this._timers[M];for(const M in this._tiles)this._setTileReloadTimer(M,this._tiles[M])}}update(u,p){if(this.transform=u,this.terrain=p,!this._sourceLoaded||this._paused)return;let C;this.updateCacheSize(u),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?C=u.getVisibleUnwrappedCoordinates(this._source.tileID).map(Ae=>new a.Q(Ae.canonical.z,Ae.wrap,Ae.canonical.z,Ae.canonical.x,Ae.canonical.y)):(C=u.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:p}),this._source.hasTile&&(C=C.filter(Ae=>this._source.hasTile(Ae)))):C=[];const M=u.coveringZoomLevel(this._source),I=Math.max(M-Et.maxOverzooming,this._source.minzoom),L=Math.max(M+Et.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){const Ae={};for(const he of C)if(he.canonical.z>this._source.minzoom){const Me=he.scaledTo(he.canonical.z-1);Ae[Me.key]=Me;const De=he.scaledTo(Math.max(this._source.minzoom,Math.min(he.canonical.z,5)));Ae[De.key]=De}C=C.concat(Object.values(Ae))}const j=C.length===0&&!this._updated&&this._didEmitContent;this._updated=!0,j&&this.fire(new a.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));const G=this._updateRetainedTiles(C,M);if(Lt(this._source.type)){const Ae={},he={},Me=Object.keys(G),De=k.now();for(const je of Me){const Qe=G[je],Le=this._tiles[je];if(!Le||Le.fadeEndTime!==0&&Le.fadeEndTime<=De)continue;const ft=this.findLoadedParent(Qe,I);ft&&(this._addTile(ft.tileID),Ae[ft.tileID.key]=ft.tileID),he[je]=Qe}this._retainLoadedChildren(he,M,L,G);for(const je in Ae)G[je]||(this._coveredTiles[je]=!0,G[je]=Ae[je]);if(p){const je={},Qe={};for(const Le of C)this._tiles[Le.key].hasData()?je[Le.key]=Le:Qe[Le.key]=Le;for(const Le in Qe){const ft=Qe[Le].children(this._source.maxzoom);this._tiles[ft[0].key]&&this._tiles[ft[1].key]&&this._tiles[ft[2].key]&&this._tiles[ft[3].key]&&(je[ft[0].key]=G[ft[0].key]=ft[0],je[ft[1].key]=G[ft[1].key]=ft[1],je[ft[2].key]=G[ft[2].key]=ft[2],je[ft[3].key]=G[ft[3].key]=ft[3],delete Qe[Le])}for(const Le in Qe){const ft=this.findLoadedParent(Qe[Le],this._source.minzoom);if(ft){je[ft.tileID.key]=G[ft.tileID.key]=ft.tileID;for(const Bt in je)je[Bt].isChildOf(ft.tileID)&&delete je[Bt]}}for(const Le in this._tiles)je[Le]||(this._coveredTiles[Le]=!0)}}for(const Ae in G)this._tiles[Ae].clearFadeHold();const te=a.ab(this._tiles,G);for(const Ae of te){const he=this._tiles[Ae];he.hasSymbolBuckets&&!he.holdingForFade()?he.setHoldDuration(this.map._fadeDuration):he.hasSymbolBuckets&&!he.symbolFadeFinished()||this._removeTile(Ae)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(const u in this._tiles)this._tiles[u].holdingForFade()&&this._removeTile(u)}_updateRetainedTiles(u,p){const C={},M={},I=Math.max(p-Et.maxOverzooming,this._source.minzoom),L=Math.max(p+Et.maxUnderzooming,this._source.minzoom),j={};for(const G of u){const te=this._addTile(G);C[G.key]=G,te.hasData()||pthis._source.maxzoom){const he=G.children(this._source.maxzoom)[0],Me=this.getTile(he);if(Me&&Me.hasData()){C[he.key]=he;continue}}else{const he=G.children(this._source.maxzoom);if(C[he[0].key]&&C[he[1].key]&&C[he[2].key]&&C[he[3].key])continue}let Ae=te.wasRequested();for(let he=G.overscaledZ-1;he>=I;--he){const Me=G.scaledTo(he);if(M[Me.key])break;if(M[Me.key]=!0,te=this.getTile(Me),!te&&Ae&&(te=this._addTile(Me)),te){const De=te.hasData();if((Ae||De)&&(C[Me.key]=Me),Ae=te.wasRequested(),De)break}}}return C}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const u in this._tiles){const p=[];let C,M=this._tiles[u].tileID;for(;M.overscaledZ>0;){if(M.key in this._loadedParentTiles){C=this._loadedParentTiles[M.key];break}p.push(M.key);const I=M.scaledTo(M.overscaledZ-1);if(C=this._getLoadedTile(I),C)break;M=I}for(const I of p)this._loadedParentTiles[I]=C}}_addTile(u){let p=this._tiles[u.key];if(p)return p;p=this._cache.getAndRemove(u),p&&(this._setTileReloadTimer(u.key,p),p.tileID=u,this._state.initializeTileState(p,this.map?this.map.painter:null),this._cacheTimers[u.key]&&(clearTimeout(this._cacheTimers[u.key]),delete this._cacheTimers[u.key],this._setTileReloadTimer(u.key,p)));const C=p;return p||(p=new me(u,this._source.tileSize*u.overscaleFactor()),this._loadTile(p,u.key,p.state)),p.uses++,this._tiles[u.key]=p,C||this._source.fire(new a.k("dataloading",{tile:p,coord:p.tileID,dataType:"source"})),p}_setTileReloadTimer(u,p){u in this._timers&&(clearTimeout(this._timers[u]),delete this._timers[u]);const C=p.getExpiryTimeout();C&&(this._timers[u]=setTimeout(()=>{this._reloadTile(u,"expired"),delete this._timers[u]},C))}_removeTile(u){const p=this._tiles[u];p&&(p.uses--,delete this._tiles[u],this._timers[u]&&(clearTimeout(this._timers[u]),delete this._timers[u]),p.uses>0||(p.hasData()&&p.state!=="reloading"?this._cache.add(p.tileID,p,p.getExpiryTimeout()):(p.aborted=!0,this._abortTile(p),this._unloadTile(p))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const u in this._tiles)this._removeTile(u);this._cache.reset()}tilesIn(u,p,C){const M=[],I=this.transform;if(!I)return M;const L=C?I.getCameraQueryGeometry(u):u,j=u.map(je=>I.pointCoordinate(je,this.terrain)),G=L.map(je=>I.pointCoordinate(je,this.terrain)),te=this.getIds();let Ae=1/0,he=1/0,Me=-1/0,De=-1/0;for(const je of G)Ae=Math.min(Ae,je.x),he=Math.min(he,je.y),Me=Math.max(Me,je.x),De=Math.max(De,je.y);for(let je=0;je=0&&qe[1].y+Bt>=0){const _t=j.map(Tt=>Le.getTilePoint(Tt)),Ut=G.map(Tt=>Le.getTilePoint(Tt));M.push({tile:Qe,tileID:Le,queryGeometry:_t,cameraQueryGeometry:Ut,scale:ft})}}return M}getVisibleCoordinates(u){const p=this.getRenderableIds(u).map(C=>this._tiles[C].tileID);for(const C of p)C.posMatrix=this.transform.calculatePosMatrix(C.toUnwrapped());return p}hasTransition(){if(this._source.hasTransition())return!0;if(Lt(this._source.type)){const u=k.now();for(const p in this._tiles)if(this._tiles[p].fadeEndTime>=u)return!0}return!1}setFeatureState(u,p,C){this._state.updateState(u=u||"_geojsonTileLayer",p,C)}removeFeatureState(u,p,C){this._state.removeFeatureState(u=u||"_geojsonTileLayer",p,C)}getFeatureState(u,p){return this._state.getState(u=u||"_geojsonTileLayer",p)}setDependencies(u,p,C){const M=this._tiles[u];M&&M.setDependencies(p,C)}reloadTilesForDependencies(u,p){for(const C in this._tiles)this._tiles[C].hasDependency(u,p)&&this._reloadTile(C,"reloading");this._cache.filter(C=>!C.hasDependency(u,p))}}function sr(O,u){const p=Math.abs(2*O.wrap)-+(O.wrap<0),C=Math.abs(2*u.wrap)-+(u.wrap<0);return O.overscaledZ-u.overscaledZ||C-p||u.canonical.y-O.canonical.y||u.canonical.x-O.canonical.x}function Lt(O){return O==="raster"||O==="image"||O==="video"}Et.maxOverzooming=10,Et.maxUnderzooming=3;class Fn{constructor(u,p){this.reset(u,p)}reset(u,p){this.points=u||[],this._distances=[0];for(let C=1;C0?(M-L)/j:0;return this.points[I].mult(1-G).add(this.points[p].mult(G))}}function on(O,u){let p=!0;return O==="always"||O!=="never"&&u!=="never"||(p=!1),p}class m{constructor(u,p,C){const M=this.boxCells=[],I=this.circleCells=[];this.xCellCount=Math.ceil(u/C),this.yCellCount=Math.ceil(p/C);for(let L=0;Lthis.width||M<0||p>this.height)return[];const G=[];if(u<=0&&p<=0&&this.width<=C&&this.height<=M){if(I)return[{key:null,x1:u,y1:p,x2:C,y2:M}];for(let te=0;te0}hitTestCircle(u,p,C,M,I){const L=u-C,j=u+C,G=p-C,te=p+C;if(j<0||L>this.width||te<0||G>this.height)return!1;const Ae=[];return this._forEachCell(L,G,j,te,this._queryCellCircle,Ae,{hitTest:!0,overlapMode:M,circle:{x:u,y:p,radius:C},seenUids:{box:{},circle:{}}},I),Ae.length>0}_queryCell(u,p,C,M,I,L,j,G){const{seenUids:te,hitTest:Ae,overlapMode:he}=j,Me=this.boxCells[I];if(Me!==null){const je=this.bboxes;for(const Qe of Me)if(!te.box[Qe]){te.box[Qe]=!0;const Le=4*Qe,ft=this.boxKeys[Qe];if(u<=je[Le+2]&&p<=je[Le+3]&&C>=je[Le+0]&&M>=je[Le+1]&&(!G||G(ft))&&(!Ae||!on(he,ft.overlapMode))&&(L.push({key:ft,x1:je[Le],y1:je[Le+1],x2:je[Le+2],y2:je[Le+3]}),Ae))return!0}}const De=this.circleCells[I];if(De!==null){const je=this.circles;for(const Qe of De)if(!te.circle[Qe]){te.circle[Qe]=!0;const Le=3*Qe,ft=this.circleKeys[Qe];if(this._circleAndRectCollide(je[Le],je[Le+1],je[Le+2],u,p,C,M)&&(!G||G(ft))&&(!Ae||!on(he,ft.overlapMode))){const Bt=je[Le],qe=je[Le+1],_t=je[Le+2];if(L.push({key:ft,x1:Bt-_t,y1:qe-_t,x2:Bt+_t,y2:qe+_t}),Ae)return!0}}}return!1}_queryCellCircle(u,p,C,M,I,L,j,G){const{circle:te,seenUids:Ae,overlapMode:he}=j,Me=this.boxCells[I];if(Me!==null){const je=this.bboxes;for(const Qe of Me)if(!Ae.box[Qe]){Ae.box[Qe]=!0;const Le=4*Qe,ft=this.boxKeys[Qe];if(this._circleAndRectCollide(te.x,te.y,te.radius,je[Le+0],je[Le+1],je[Le+2],je[Le+3])&&(!G||G(ft))&&!on(he,ft.overlapMode))return L.push(!0),!0}}const De=this.circleCells[I];if(De!==null){const je=this.circles;for(const Qe of De)if(!Ae.circle[Qe]){Ae.circle[Qe]=!0;const Le=3*Qe,ft=this.circleKeys[Qe];if(this._circlesCollide(je[Le],je[Le+1],je[Le+2],te.x,te.y,te.radius)&&(!G||G(ft))&&!on(he,ft.overlapMode))return L.push(!0),!0}}}_forEachCell(u,p,C,M,I,L,j,G){const te=this._convertToXCellCoord(u),Ae=this._convertToYCellCoord(p),he=this._convertToXCellCoord(C),Me=this._convertToYCellCoord(M);for(let De=te;De<=he;De++)for(let je=Ae;je<=Me;je++)if(I.call(this,u,p,C,M,this.xCellCount*je+De,L,j,G))return}_convertToXCellCoord(u){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(u*this.xScale)))}_convertToYCellCoord(u){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(u*this.yScale)))}_circlesCollide(u,p,C,M,I,L){const j=M-u,G=I-p,te=C+L;return te*te>j*j+G*G}_circleAndRectCollide(u,p,C,M,I,L,j){const G=(L-M)/2,te=Math.abs(u-(M+G));if(te>G+C)return!1;const Ae=(j-I)/2,he=Math.abs(p-(I+Ae));if(he>Ae+C)return!1;if(te<=G||he<=Ae)return!0;const Me=te-G,De=he-Ae;return Me*Me+De*De<=C*C}}function un(O,u,p,C,M){const I=a.F();return u?(a.J(I,I,[1/M,1/M,1]),p||a.ad(I,I,C.angle)):a.K(I,C.labelPlaneMatrix,O),I}function In(O,u,p,C,M){if(u){const I=a.ae(O);return a.J(I,I,[M,M,1]),p||a.ad(I,I,-C.angle),I}return C.glCoordMatrix}function Gn(O,u,p){let C;p?(C=[O.x,O.y,p(O.x,O.y),1],a.af(C,C,u)):(C=[O.x,O.y,0,1],$t(C,C,u));const M=C[3];return{point:new a.P(C[0]/M,C[1]/M),signedDistanceFromCamera:M}}function Zn(O,u){return .5+O/u*.5}function Ke(O,u){const p=O[0]/O[3],C=O[1]/O[3];return p>=-u[0]&&p<=u[0]&&C>=-u[1]&&C<=u[1]}function fe(O,u,p,C,M,I,L,j,G,te){const Ae=C?O.textSizeData:O.iconSizeData,he=a.ag(Ae,p.transform.zoom),Me=[256/p.width*2+1,256/p.height*2+1],De=C?O.text.dynamicLayoutVertexArray:O.icon.dynamicLayoutVertexArray;De.clear();const je=O.lineVertexArray,Qe=C?O.text.placedSymbolArray:O.icon.placedSymbolArray,Le=p.transform.width/p.transform.height;let ft=!1;for(let Bt=0;BtMath.abs(p.x-u.x)*C?{useVertical:!0}:(O===a.ah.vertical?u.yp.x)?{needsFlipping:!0}:null}function Te(O,u,p,C,M,I,L,j,G,te,Ae,he,Me,De,je,Qe){const Le=u/24,ft=O.lineOffsetX*Le,Bt=O.lineOffsetY*Le;let qe;if(O.numGlyphs>1){const _t=O.glyphStartIndex+O.numGlyphs,Ut=O.lineStartIndex,Tt=O.lineStartIndex+O.lineLength,en=_e(Le,j,ft,Bt,p,Ae,he,O,G,I,Me,je,Qe);if(!en)return{notEnoughRoom:!0};const hn=Gn(en.first.point,L,Qe).point,An=Gn(en.last.point,L,Qe).point;if(C&&!p){const On=Ee(O.writingMode,hn,An,De);if(On)return On}qe=[en.first];for(let On=O.glyphStartIndex+1;On<_t-1;On++)qe.push(Ct(Le*j.getoffsetX(On),ft,Bt,p,Ae,he,O.segment,Ut,Tt,G,I,Me,je,Qe));qe.push(en.last)}else{if(C&&!p){const Ut=Gn(he,M,Qe).point,Tt=O.lineStartIndex+O.segment+1,en=new a.P(G.getx(Tt),G.gety(Tt)),hn=Gn(en,M,Qe),An=hn.signedDistanceFromCamera>0?hn.point:at(he,en,Ut,1,M,Qe),On=Ee(O.writingMode,Ut,An,De);if(On)return On}const _t=Ct(Le*j.getoffsetX(O.glyphStartIndex),ft,Bt,p,Ae,he,O.segment,O.lineStartIndex,O.lineStartIndex+O.lineLength,G,I,Me,je,Qe);if(!_t)return{notEnoughRoom:!0};qe=[_t]}for(const _t of qe)a.aj(te,_t.point,_t.angle);return{}}function at(O,u,p,C,M,I){const L=Gn(O.add(O.sub(u)._unit()),M,I).point,j=p.sub(L);return p.add(j._mult(C/j.mag()))}function it(O,u){const{projectionCache:p,lineVertexArray:C,labelPlaneMatrix:M,tileAnchorPoint:I,distanceFromAnchor:L,getElevation:j,previousVertex:G,direction:te,absOffsetX:Ae}=u;if(p.projections[O])return p.projections[O];const he=new a.P(C.getx(O),C.gety(O)),Me=Gn(he,M,j);if(Me.signedDistanceFromCamera>0)return p.projections[O]=Me.point,Me.point;const De=O-te;return at(L===0?I:new a.P(C.getx(De),C.gety(De)),he,G,Ae-L+1,M,j)}function ht(O,u,p){return O._unit()._perp()._mult(u*p)}function et(O,u,p,C,M,I,L,j){const{projectionCache:G,direction:te}=j;if(G.offsets[O])return G.offsets[O];const Ae=p.add(u);if(O+te=M)return G.offsets[O]=Ae,Ae;const he=it(O+te,j),Me=ht(he.sub(p),L,te),De=p.add(Me),je=he.add(Me);return G.offsets[O]=a.ak(I,Ae,De,je)||Ae,G.offsets[O]}function Ct(O,u,p,C,M,I,L,j,G,te,Ae,he,Me,De){const je=C?O-u:O+u;let Qe=je>0?1:-1,Le=0;C&&(Qe*=-1,Le=Math.PI),Qe<0&&(Le+=Math.PI);let ft,Bt,qe=Qe>0?j+L:j+L+1,_t=M,Ut=M,Tt=0,en=0;const hn=Math.abs(je),An=[];let On;for(;Tt+en<=hn;){if(qe+=Qe,qe=G)return null;Tt+=en,Ut=_t,Bt=ft;const Tn={projectionCache:he,lineVertexArray:te,labelPlaneMatrix:Ae,tileAnchorPoint:I,distanceFromAnchor:Tt,getElevation:De,previousVertex:Ut,direction:Qe,absOffsetX:hn};if(_t=it(qe,Tn),p===0)An.push(Ut),On=_t.sub(Ut);else{let yr;const Qn=_t.sub(Ut);yr=Qn.mag()===0?ht(it(qe+Qe,Tn).sub(_t),p,Qe):ht(Qn,p,Qe),Bt||(Bt=Ut.add(yr)),ft=et(qe,yr,_t,j,G,Bt,p,Tn),An.push(Bt),On=ft.sub(Bt)}en=On.mag()}const lr=On._mult((hn-Tt)/en)._add(Bt||Ut),xr=Le+Math.atan2(_t.y-Ut.y,_t.x-Ut.x);return An.push(lr),{point:lr,angle:Me?xr:0,path:An}}const rn=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function Gt(O,u){for(let p=0;p=1;ii--)Qn.push(Tn.path[ii]);for(let ii=1;iiGn(si,G,je));Qn=ii.some(si=>si.signedDistanceFromCamera<=0)?[]:ii.map(si=>si.point)}let pi=[];if(Qn.length>0){const ii=Qn[0].clone(),si=Qn[0].clone();for(let yo=1;yo=On.x&&si.x<=lr.x&&ii.y>=On.y&&si.y<=lr.y?[Qn]:si.xlr.x||si.ylr.y?[]:a.al([Qn],On.x,On.y,lr.x,lr.y)}for(const ii of pi){xr.reset(ii,.25*An);let si=0;si=xr.length<=.5*An?1:Math.ceil(xr.paddedLength/Ho)+1;for(let yo=0;yo=this.screenRightBoundary||Mthis.screenBottomBoundary}isInsideGrid(u,p,C,M){return C>=0&&u=0&&pC.collisionGroupID===p}}return this.collisionGroups[u]}}function ui(O,u,p,C,M){const{horizontalAlign:I,verticalAlign:L}=a.at(O);return new a.P(-(I-.5)*u+C[0]*M,-(L-.5)*p+C[1]*M)}function Ii(O,u,p,C,M,I){const{x1:L,x2:j,y1:G,y2:te,anchorPointX:Ae,anchorPointY:he}=O,Me=new a.P(u,p);return C&&Me._rotate(M?I:-I),{x1:L+Me.x,y1:G+Me.y,x2:j+Me.x,y2:te+Me.y,anchorPointX:Ae,anchorPointY:he}}class Io{constructor(u,p,C,M,I){this.transform=u.clone(),this.terrain=p,this.collisionIndex=new Jn(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=C,this.retainedQueryData={},this.collisionGroups=new Cr(M),this.collisionCircleArrays={},this.prevPlacement=I,I&&(I.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(u,p,C,M){const I=C.getBucket(p),L=C.latestFeatureIndex;if(!I||!L||p.id!==I.layerIds[0])return;const j=C.collisionBoxArray,G=I.layers[0].layout,te=Math.pow(2,this.transform.zoom-C.tileID.overscaledZ),Ae=C.tileSize/a.W,he=this.transform.calculatePosMatrix(C.tileID.toUnwrapped()),Me=G.get("text-pitch-alignment")==="map",De=G.get("text-rotation-alignment")==="map",je=qn(C,1,this.transform.zoom),Qe=un(he,Me,De,this.transform,je);let Le=null;if(Me){const Bt=In(he,Me,De,this.transform,je);Le=a.K([],this.transform.labelPlaneMatrix,Bt)}this.retainedQueryData[I.bucketInstanceId]=new Zr(I.bucketInstanceId,L,I.sourceLayerIndex,I.index,C.tileID);const ft={bucket:I,layout:G,posMatrix:he,textLabelPlaneMatrix:Qe,labelToScreenMatrix:Le,scale:te,textPixelRatio:Ae,holdingForFade:C.holdingForFade(),collisionBoxArray:j,partiallyEvaluatedTextSize:a.ag(I.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(I.sourceID)};if(M)for(const Bt of I.sortKeyRanges){const{sortKey:qe,symbolInstanceStart:_t,symbolInstanceEnd:Ut}=Bt;u.push({sortKey:qe,symbolInstanceStart:_t,symbolInstanceEnd:Ut,parameters:ft})}else u.push({symbolInstanceStart:0,symbolInstanceEnd:I.symbolInstances.length,parameters:ft})}attemptAnchorPlacement(u,p,C,M,I,L,j,G,te,Ae,he,Me,De,je,Qe,Le){const ft=a.ap[u.textAnchor],Bt=[u.textOffset0,u.textOffset1],qe=ui(ft,C,M,Bt,I),_t=this.collisionIndex.placeCollisionBox(Ii(p,qe.x,qe.y,L,j,this.transform.angle),he,G,te,Ae.predicate,Le);if((!Qe||this.collisionIndex.placeCollisionBox(Ii(Qe,qe.x,qe.y,L,j,this.transform.angle),he,G,te,Ae.predicate,Le).box.length!==0)&&_t.box.length>0){let Ut;if(this.prevPlacement&&this.prevPlacement.variableOffsets[Me.crossTileID]&&this.prevPlacement.placements[Me.crossTileID]&&this.prevPlacement.placements[Me.crossTileID].text&&(Ut=this.prevPlacement.variableOffsets[Me.crossTileID].anchor),Me.crossTileID===0)throw new Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[Me.crossTileID]={textOffset:Bt,width:C,height:M,anchor:ft,textBoxScale:I,prevAnchor:Ut},this.markUsedJustification(De,ft,Me,je),De.allowVerticalPlacement&&(this.markUsedOrientation(De,je,Me),this.placedOrientations[Me.crossTileID]=je),{shift:qe,placedGlyphBoxes:_t}}}placeLayerBucketPart(u,p,C){const{bucket:M,layout:I,posMatrix:L,textLabelPlaneMatrix:j,labelToScreenMatrix:G,textPixelRatio:te,holdingForFade:Ae,collisionBoxArray:he,partiallyEvaluatedTextSize:Me,collisionGroup:De}=u.parameters,je=I.get("text-optional"),Qe=I.get("icon-optional"),Le=a.aq(I,"text-overlap","text-allow-overlap"),ft=Le==="always",Bt=a.aq(I,"icon-overlap","icon-allow-overlap"),qe=Bt==="always",_t=I.get("text-rotation-alignment")==="map",Ut=I.get("text-pitch-alignment")==="map",Tt=I.get("icon-text-fit")!=="none",en=I.get("symbol-z-order")==="viewport-y",hn=ft&&(qe||!M.hasIconData()||Qe),An=qe&&(ft||!M.hasTextData()||je);!M.collisionArrays&&he&&M.deserializeCollisionBoxes(he);const On=this.retainedQueryData[M.bucketInstanceId].tileID,lr=this.terrain?(Tn,yr)=>this.terrain.getElevation(On,Tn,yr):null,xr=(Tn,yr)=>{var Qn,Ho;if(p[Tn.crossTileID])return;if(Ae)return void(this.placements[Tn.crossTileID]=new Dr(!1,!1,!1));let pi=!1,ii=!1,si=!0,yo=null,vo={box:null,offscreen:null},Zs={box:null,offscreen:null},Sa=null,aa=null,_a=null,no=0,ws=0,Pu=0;yr.textFeatureIndex?no=yr.textFeatureIndex:Tn.useRuntimeCollisionCircles&&(no=Tn.featureIndex),yr.verticalTextFeatureIndex&&(ws=yr.verticalTextFeatureIndex);const Ms=yr.textBox;if(Ms){const Zo=jo=>{let Da=a.ah.horizontal;if(M.allowVerticalPlacement&&!jo&&this.prevPlacement){const ua=this.prevPlacement.placedOrientations[Tn.crossTileID];ua&&(this.placedOrientations[Tn.crossTileID]=ua,Da=ua,this.markUsedOrientation(M,Da,Tn))}return Da},ji=(jo,Da)=>{if(M.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&yr.verticalTextBox){for(const ua of M.writingModes)if(ua===a.ah.vertical?(vo=Da(),Zs=vo):vo=jo(),vo&&vo.box&&vo.box.length)break}else vo=jo()},Oi=Tn.textAnchorOffsetStartIndex,cs=Tn.textAnchorOffsetEndIndex;if(cs===Oi){const jo=(Da,ua)=>{const sa=this.collisionIndex.placeCollisionBox(Da,Le,te,L,De.predicate,lr);return sa&&sa.box&&sa.box.length&&(this.markUsedOrientation(M,ua,Tn),this.placedOrientations[Tn.crossTileID]=ua),sa};ji(()=>jo(Ms,a.ah.horizontal),()=>{const Da=yr.verticalTextBox;return M.allowVerticalPlacement&&Tn.numVerticalGlyphVertices>0&&Da?jo(Da,a.ah.vertical):{box:null,offscreen:null}}),Zo(vo&&vo.box&&vo.box.length)}else{let jo=a.ap[(Ho=(Qn=this.prevPlacement)===null||Qn===void 0?void 0:Qn.variableOffsets[Tn.crossTileID])===null||Ho===void 0?void 0:Ho.anchor];const Da=(sa,If,Wo)=>{const jd=sa.x2-sa.x1,fc=sa.y2-sa.y1,EA=Tn.textBoxScale,hl=Tt&&Bt==="never"?If:null;let Fu={box:[],offscreen:!1},OA=Le==="never"?1:2,Wd="never";jo&&OA++;for(let BA=0;BADa(Ms,yr.iconBox,a.ah.horizontal),()=>{const sa=yr.verticalTextBox;return M.allowVerticalPlacement&&!(vo&&vo.box&&vo.box.length)&&Tn.numVerticalGlyphVertices>0&&sa?Da(sa,yr.verticalIconBox,a.ah.vertical):{box:null,offscreen:null}}),vo&&(pi=vo.box,si=vo.offscreen);const ua=Zo(vo&&vo.box);if(!pi&&this.prevPlacement){const sa=this.prevPlacement.variableOffsets[Tn.crossTileID];sa&&(this.variableOffsets[Tn.crossTileID]=sa,this.markUsedJustification(M,sa.anchor,Tn,ua))}}}if(Sa=vo,pi=Sa&&Sa.box&&Sa.box.length>0,si=Sa&&Sa.offscreen,Tn.useRuntimeCollisionCircles){const Zo=M.text.placedSymbolArray.get(Tn.centerJustifiedTextSymbolIndex),ji=a.ai(M.textSizeData,Me,Zo),Oi=I.get("text-padding");aa=this.collisionIndex.placeCollisionCircles(Le,Zo,M.lineVertexArray,M.glyphOffsetArray,ji,L,j,G,C,Ut,De.predicate,Tn.collisionCircleDiameter,Oi,lr),aa.circles.length&&aa.collisionDetected&&!C&&a.w("Collisions detected, but collision boxes are not shown"),pi=ft||aa.circles.length>0&&!aa.collisionDetected,si=si&&aa.offscreen}if(yr.iconFeatureIndex&&(Pu=yr.iconFeatureIndex),yr.iconBox){const Zo=ji=>{const Oi=Tt&&yo?Ii(ji,yo.x,yo.y,_t,Ut,this.transform.angle):ji;return this.collisionIndex.placeCollisionBox(Oi,Bt,te,L,De.predicate,lr)};Zs&&Zs.box&&Zs.box.length&&yr.verticalIconBox?(_a=Zo(yr.verticalIconBox),ii=_a.box.length>0):(_a=Zo(yr.iconBox),ii=_a.box.length>0),si=si&&_a.offscreen}const aA=je||Tn.numHorizontalGlyphVertices===0&&Tn.numVerticalGlyphVertices===0,hu=Qe||Tn.numIconVertices===0;if(aA||hu?hu?aA||(ii=ii&&pi):pi=ii&&pi:ii=pi=ii&&pi,pi&&Sa&&Sa.box&&this.collisionIndex.insertCollisionBox(Sa.box,Le,I.get("text-ignore-placement"),M.bucketInstanceId,Zs&&Zs.box&&ws?ws:no,De.ID),ii&&_a&&this.collisionIndex.insertCollisionBox(_a.box,Bt,I.get("icon-ignore-placement"),M.bucketInstanceId,Pu,De.ID),aa&&(pi&&this.collisionIndex.insertCollisionCircles(aa.circles,Le,I.get("text-ignore-placement"),M.bucketInstanceId,no,De.ID),C)){const Zo=M.bucketInstanceId;let ji=this.collisionCircleArrays[Zo];ji===void 0&&(ji=this.collisionCircleArrays[Zo]=new Yr);for(let Oi=0;Oi=0;--yr){const Qn=Tn[yr];xr(M.symbolInstances.get(Qn),M.collisionArrays[Qn])}}else for(let Tn=u.symbolInstanceStart;Tn=0&&(u.text.placedSymbolArray.get(j).crossTileID=I>=0&&j!==I?0:C.crossTileID)}markUsedOrientation(u,p,C){const M=p===a.ah.horizontal||p===a.ah.horizontalOnly?p:0,I=p===a.ah.vertical?p:0,L=[C.leftJustifiedTextSymbolIndex,C.centerJustifiedTextSymbolIndex,C.rightJustifiedTextSymbolIndex];for(const j of L)u.text.placedSymbolArray.get(j).placedOrientation=M;C.verticalPlacedTextSymbolIndex&&(u.text.placedSymbolArray.get(C.verticalPlacedTextSymbolIndex).placedOrientation=I)}commit(u){this.commitTime=u,this.zoomAtLastRecencyCheck=this.transform.zoom;const p=this.prevPlacement;let C=!1;this.prevZoomAdjustment=p?p.zoomAdjustment(this.transform.zoom):0;const M=p?p.symbolFadeChange(u):1,I=p?p.opacities:{},L=p?p.variableOffsets:{},j=p?p.placedOrientations:{};for(const G in this.placements){const te=this.placements[G],Ae=I[G];Ae?(this.opacities[G]=new vr(Ae,M,te.text,te.icon),C=C||te.text!==Ae.text.placed||te.icon!==Ae.icon.placed):(this.opacities[G]=new vr(null,M,te.text,te.icon,te.skipFade),C=C||te.text||te.icon)}for(const G in I){const te=I[G];if(!this.opacities[G]){const Ae=new vr(te,M,!1,!1);Ae.isHidden()||(this.opacities[G]=Ae,C=C||te.text.placed||te.icon.placed)}}for(const G in L)this.variableOffsets[G]||!this.opacities[G]||this.opacities[G].isHidden()||(this.variableOffsets[G]=L[G]);for(const G in j)this.placedOrientations[G]||!this.opacities[G]||this.opacities[G].isHidden()||(this.placedOrientations[G]=j[G]);if(p&&p.lastPlacementChangeTime===void 0)throw new Error("Last placement time for previous placement is not defined");C?this.lastPlacementChangeTime=u:typeof this.lastPlacementChangeTime!="number"&&(this.lastPlacementChangeTime=p?p.lastPlacementChangeTime:u)}updateLayerOpacities(u,p){const C={};for(const M of p){const I=M.getBucket(u);I&&M.latestFeatureIndex&&u.id===I.layerIds[0]&&this.updateBucketOpacities(I,C,M.collisionBoxArray)}}updateBucketOpacities(u,p,C){u.hasTextData()&&(u.text.opacityVertexArray.clear(),u.text.hasVisibleVertices=!1),u.hasIconData()&&(u.icon.opacityVertexArray.clear(),u.icon.hasVisibleVertices=!1),u.hasIconCollisionBoxData()&&u.iconCollisionBox.collisionVertexArray.clear(),u.hasTextCollisionBoxData()&&u.textCollisionBox.collisionVertexArray.clear();const M=u.layers[0],I=M.layout,L=new vr(null,0,!1,!1,!0),j=I.get("text-allow-overlap"),G=I.get("icon-allow-overlap"),te=M._unevaluatedLayout.hasValue("text-variable-anchor")||M._unevaluatedLayout.hasValue("text-variable-anchor-offset"),Ae=I.get("text-rotation-alignment")==="map",he=I.get("text-pitch-alignment")==="map",Me=I.get("icon-text-fit")!=="none",De=new vr(null,0,j&&(G||!u.hasIconData()||I.get("icon-optional")),G&&(j||!u.hasTextData()||I.get("text-optional")),!0);!u.collisionArrays&&C&&(u.hasIconCollisionBoxData()||u.hasTextCollisionBoxData())&&u.deserializeCollisionBoxes(C);const je=(Qe,Le,ft)=>{for(let Bt=0;Bt0,Tt=this.placedOrientations[Le.crossTileID],en=Tt===a.ah.vertical,hn=Tt===a.ah.horizontal||Tt===a.ah.horizontalOnly;if(ft>0||Bt>0){const An=lo(_t.text);je(u.text,ft,en?Gi:An),je(u.text,Bt,hn?Gi:An);const On=_t.text.isHidden();[Le.rightJustifiedTextSymbolIndex,Le.centerJustifiedTextSymbolIndex,Le.leftJustifiedTextSymbolIndex].forEach(Tn=>{Tn>=0&&(u.text.placedSymbolArray.get(Tn).hidden=On||en?1:0)}),Le.verticalPlacedTextSymbolIndex>=0&&(u.text.placedSymbolArray.get(Le.verticalPlacedTextSymbolIndex).hidden=On||hn?1:0);const lr=this.variableOffsets[Le.crossTileID];lr&&this.markUsedJustification(u,lr.anchor,Le,Tt);const xr=this.placedOrientations[Le.crossTileID];xr&&(this.markUsedJustification(u,"left",Le,xr),this.markUsedOrientation(u,xr,Le))}if(Ut){const An=lo(_t.icon),On=!(Me&&Le.verticalPlacedIconSymbolIndex&&en);Le.placedIconSymbolIndex>=0&&(je(u.icon,Le.numIconVertices,On?An:Gi),u.icon.placedSymbolArray.get(Le.placedIconSymbolIndex).hidden=_t.icon.isHidden()),Le.verticalPlacedIconSymbolIndex>=0&&(je(u.icon,Le.numVerticalIconVertices,On?Gi:An),u.icon.placedSymbolArray.get(Le.verticalPlacedIconSymbolIndex).hidden=_t.icon.isHidden())}if(u.hasIconCollisionBoxData()||u.hasTextCollisionBoxData()){const An=u.collisionArrays[Qe];if(An){let On=new a.P(0,0);if(An.textBox||An.verticalTextBox){let xr=!0;if(te){const Tn=this.variableOffsets[qe];Tn?(On=ui(Tn.anchor,Tn.width,Tn.height,Tn.textOffset,Tn.textBoxScale),Ae&&On._rotate(he?this.transform.angle:-this.transform.angle)):xr=!1}An.textBox&&Ci(u.textCollisionBox.collisionVertexArray,_t.text.placed,!xr||en,On.x,On.y),An.verticalTextBox&&Ci(u.textCollisionBox.collisionVertexArray,_t.text.placed,!xr||hn,On.x,On.y)}const lr=!!(!hn&&An.verticalIconBox);An.iconBox&&Ci(u.iconCollisionBox.collisionVertexArray,_t.icon.placed,lr,Me?On.x:0,Me?On.y:0),An.verticalIconBox&&Ci(u.iconCollisionBox.collisionVertexArray,_t.icon.placed,!lr,Me?On.x:0,Me?On.y:0)}}}if(u.sortFeatures(this.transform.angle),this.retainedQueryData[u.bucketInstanceId]&&(this.retainedQueryData[u.bucketInstanceId].featureSortOrder=u.featureSortOrder),u.hasTextData()&&u.text.opacityVertexBuffer&&u.text.opacityVertexBuffer.updateData(u.text.opacityVertexArray),u.hasIconData()&&u.icon.opacityVertexBuffer&&u.icon.opacityVertexBuffer.updateData(u.icon.opacityVertexArray),u.hasIconCollisionBoxData()&&u.iconCollisionBox.collisionVertexBuffer&&u.iconCollisionBox.collisionVertexBuffer.updateData(u.iconCollisionBox.collisionVertexArray),u.hasTextCollisionBoxData()&&u.textCollisionBox.collisionVertexBuffer&&u.textCollisionBox.collisionVertexBuffer.updateData(u.textCollisionBox.collisionVertexArray),u.text.opacityVertexArray.length!==u.text.layoutVertexArray.length/4)throw new Error(`bucket.text.opacityVertexArray.length (= ${u.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${u.text.layoutVertexArray.length}) / 4`);if(u.icon.opacityVertexArray.length!==u.icon.layoutVertexArray.length/4)throw new Error(`bucket.icon.opacityVertexArray.length (= ${u.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${u.icon.layoutVertexArray.length}) / 4`);if(u.bucketInstanceId in this.collisionCircleArrays){const Qe=this.collisionCircleArrays[u.bucketInstanceId];u.placementInvProjMatrix=Qe.invProjMatrix,u.placementViewportMatrix=Qe.viewportMatrix,u.collisionCircleArray=Qe.circles,delete this.collisionCircleArrays[u.bucketInstanceId]}}symbolFadeChange(u){return this.fadeDuration===0?1:(u-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(u){return Math.max(0,(this.transform.zoom-u)/1.5)}hasTransitions(u){return this.stale||u-this.lastPlacementChangeTimeu}setStale(){this.stale=!0}}function Ci(O,u,p,C,M){O.emplaceBack(u?1:0,p?1:0,C||0,M||0),O.emplaceBack(u?1:0,p?1:0,C||0,M||0),O.emplaceBack(u?1:0,p?1:0,C||0,M||0),O.emplaceBack(u?1:0,p?1:0,C||0,M||0)}const so=Math.pow(2,25),Yo=Math.pow(2,24),ba=Math.pow(2,17),Ql=Math.pow(2,16),Ai=Math.pow(2,9),Mi=Math.pow(2,8),rr=Math.pow(2,1);function lo(O){if(O.opacity===0&&!O.placed)return 0;if(O.opacity===1&&O.placed)return 4294967295;const u=O.placed?1:0,p=Math.floor(127*O.opacity);return p*so+u*Yo+p*ba+u*Ql+p*Ai+u*Mi+p*rr+u}const Gi=0;class la{constructor(u){this._sortAcrossTiles=u.layout.get("symbol-z-order")!=="viewport-y"&&!u.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(u,p,C,M,I){const L=this._bucketParts;for(;this._currentTileIndexj.sortKey-G.sortKey));this._currentPartIndex!this._forceFullPlacement&&k.now()-M>2;for(;this._currentPlacementIndex>=0;){const L=p[u[this._currentPlacementIndex]],j=this.placement.collisionIndex.transform.zoom;if(L.type==="symbol"&&(!L.minzoom||L.minzoom<=j)&&(!L.maxzoom||L.maxzoom>j)){if(this._inProgressLayer||(this._inProgressLayer=new la(L)),this._inProgressLayer.continuePlacement(C[L.source],this.placement,this._showCollisionBoxes,L,I))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(u){return this.placement.commit(u),this.placement}}const Ge=512/a.W/2;class Ht{constructor(u,p,C){this.tileID=u,this.bucketInstanceId=C,this._symbolsByKey={};const M=new Map;for(let I=0;I({x:Math.floor(G.anchorX*Ge),y:Math.floor(G.anchorY*Ge)})),crossTileIDs:L.map(G=>G.crossTileID)};if(j.positions.length>128){const G=new a.au(j.positions.length,16,Uint16Array);for(const{x:te,y:Ae}of j.positions)G.add(te,Ae);G.finish(),delete j.positions,j.index=G}this._symbolsByKey[I]=j}}getScaledCoordinates(u,p){const{x:C,y:M,z:I}=this.tileID.canonical,{x:L,y:j,z:G}=p.canonical,te=Ge/Math.pow(2,G-I),Ae=(j*a.W+u.anchorY)*te,he=M*a.W*Ge;return{x:Math.floor((L*a.W+u.anchorX)*te-C*a.W*Ge),y:Math.floor(Ae-he)}}findMatches(u,p,C){const M=this.tileID.canonical.zu)}}class mn{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Ot{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(u){const p=Math.round((u-this.lng)/360);if(p!==0)for(const C in this.indexes){const M=this.indexes[C],I={};for(const L in M){const j=M[L];j.tileID=j.tileID.unwrapTo(j.tileID.wrap+p),I[j.tileID.key]=j}this.indexes[C]=I}this.lng=u}addBucket(u,p,C){if(this.indexes[u.overscaledZ]&&this.indexes[u.overscaledZ][u.key]){if(this.indexes[u.overscaledZ][u.key].bucketInstanceId===p.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(u.overscaledZ,this.indexes[u.overscaledZ][u.key])}for(let I=0;Iu.overscaledZ)for(const j in L){const G=L[j];G.tileID.isChildOf(u)&&G.findMatches(p.symbolInstances,u,M)}else{const j=L[u.scaledTo(Number(I)).key];j&&j.findMatches(p.symbolInstances,u,M)}}for(let I=0;I{p[C]=!0});for(const C in this.layerIndexes)p[C]||delete this.layerIndexes[C]}}const zr=(O,u)=>a.t(O,u&&u.filter(p=>p.identifier!=="source.canvas")),Lr=a.av();class Ti extends a.E{constructor(u,p={}){super(),this._rtlTextPluginStateChange=()=>{for(const C in this.sourceCaches){const M=this.sourceCaches[C].getSource().type;M!=="vector"&&M!=="geojson"||this.sourceCaches[C].reload()}},this.map=u,this.dispatcher=new de(Se(),u._getMapId()),this.dispatcher.registerMessageHandler("getGlyphs",(C,M)=>this.getGlyphs(C,M)),this.dispatcher.registerMessageHandler("getImages",(C,M)=>this.getImages(C,M)),this.imageManager=new He,this.imageManager.setEventedParent(this),this.glyphManager=new Jt(u._requestManager,p.localIdeographFontFamily),this.lineAtlas=new Je(256,512),this.crossTileSymbolIndex=new En,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new a.aw,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",a.ax()),X().on("pluginStateChange",this._rtlTextPluginStateChange),this.on("data",C=>{if(C.dataType!=="source"||C.sourceDataType!=="metadata")return;const M=this.sourceCaches[C.sourceId];if(!M)return;const I=M.getSource();if(I&&I.vectorLayerIds)for(const L in this._layers){const j=this._layers[L];j.source===I.id&&this._validateLayer(j)}})}loadURL(u,p={},C){this.fire(new a.k("dataloading",{dataType:"style"})),p.validate=typeof p.validate!="boolean"||p.validate;const M=this.map._requestManager.transformRequest(u,ne.Style);this._loadStyleRequest=new AbortController,a.h(M,this._loadStyleRequest).then(I=>{this._loadStyleRequest=null,this._load(I.data,p,C)}).catch(I=>{this._loadStyleRequest=null,I&&this.fire(new a.j(I))})}loadJSON(u,p={},C){this.fire(new a.k("dataloading",{dataType:"style"})),this._frameRequest=new AbortController,k.frameAsync(this._frameRequest).then(()=>{this._frameRequest=null,p.validate=p.validate!==!1,this._load(u,p,C)}).catch(()=>{})}loadEmpty(){this.fire(new a.k("dataloading",{dataType:"style"})),this._load(Lr,{validate:!1})}_load(u,p,C){var M;const I=p.transformStyle?p.transformStyle(C,u):u;if(!p.validate||!zr(this,a.x(I))){this._loaded=!0,this.stylesheet=I;for(const L in I.sources)this.addSource(L,I.sources[L],{validate:!1});I.sprite?this._loadSprite(I.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(I.glyphs),this._createLayers(),this.light=new nt(this.stylesheet.light),this.map.setTerrain((M=this.stylesheet.terrain)!==null&&M!==void 0?M:null),this.fire(new a.k("data",{dataType:"style"})),this.fire(new a.k("style.load"))}}_createLayers(){const u=a.ay(this.stylesheet.layers);this.dispatcher.broadcast("setLayers",u),this._order=u.map(p=>p.id),this._layers={},this._serializedLayers=null;for(const p of u){const C=a.az(p);C.setEventedParent(this,{layer:{id:p.id}}),this._layers[p.id]=C}}_loadSprite(u,p=!1,C=void 0){let M;this.imageManager.setLoaded(!1),this._spriteRequest=new AbortController,function(I,L,j,G){return a._(this,void 0,void 0,function*(){const te=rt(I),Ae=j>1?"@2x":"",he={},Me={};for(const{id:De,url:je}of te){const Qe=L.transformRequest(L.normalizeSpriteURL(je,Ae,".json"),ne.SpriteJSON);he[De]=a.h(Qe,G);const Le=L.transformRequest(L.normalizeSpriteURL(je,Ae,".png"),ne.SpriteImage);Me[De]=oe.getImage(Le,G)}return yield Promise.all([...Object.values(he),...Object.values(Me)]),function(De,je){return a._(this,void 0,void 0,function*(){const Qe={};for(const Le in De){Qe[Le]={};const ft=k.getImageCanvasContext((yield je[Le]).data),Bt=(yield De[Le]).data;for(const qe in Bt){const{width:_t,height:Ut,x:Tt,y:en,sdf:hn,pixelRatio:An,stretchX:On,stretchY:lr,content:xr}=Bt[qe];Qe[Le][qe]={data:null,pixelRatio:An,sdf:hn,stretchX:On,stretchY:lr,content:xr,spriteData:{width:_t,height:Ut,x:Tt,y:en,context:ft}}}}return Qe})}(he,Me)})}(u,this.map._requestManager,this.map.getPixelRatio(),this._spriteRequest).then(I=>{if(this._spriteRequest=null,I)for(const L in I){this._spritesImagesIds[L]=[];const j=this._spritesImagesIds[L]?this._spritesImagesIds[L].filter(G=>!(G in I)):[];for(const G of j)this.imageManager.removeImage(G),this._changedImages[G]=!0;for(const G in I[L]){const te=L==="default"?G:`${L}:${G}`;this._spritesImagesIds[L].push(te),te in this.imageManager.images?this.imageManager.updateImage(te,I[L][G],!1):this.imageManager.addImage(te,I[L][G]),p&&(this._changedImages[te]=!0)}}}).catch(I=>{this._spriteRequest=null,M=I,this.fire(new a.j(M))}).finally(()=>{this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),p&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.k("data",{dataType:"style"})),C&&C(M)})}_unloadSprite(){for(const u of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(u),this._changedImages[u]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}_validateLayer(u){const p=this.sourceCaches[u.source];if(!p)return;const C=u.sourceLayer;if(!C)return;const M=p.getSource();(M.type==="geojson"||M.vectorLayerIds&&M.vectorLayerIds.indexOf(C)===-1)&&this.fire(new a.j(new Error(`Source layer "${C}" does not exist on source "${M.id}" as specified by style layer "${u.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const u in this.sourceCaches)if(!this.sourceCaches[u].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(u){const p=this._serializedAllLayers();if(!u||u.length===0)return Object.values(p);const C=[];for(const M of u)p[M]&&C.push(p[M]);return C}_serializedAllLayers(){let u=this._serializedLayers;if(u)return u;u=this._serializedLayers={};const p=Object.keys(this._layers);for(const C of p){const M=this._layers[C];M.type!=="custom"&&(u[C]=M.serialize())}return u}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(const u in this.sourceCaches)if(this.sourceCaches[u].hasTransition())return!0;for(const u in this._layers)if(this._layers[u].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading.")}update(u){if(!this._loaded)return;const p=this._changed;if(this._changed){const M=Object.keys(this._updatedLayers),I=Object.keys(this._removedLayers);(M.length||I.length)&&this._updateWorkerLayers(M,I);for(const L in this._updatedSources){const j=this._updatedSources[L];if(j==="reload")this._reloadSource(L);else{if(j!=="clear")throw new Error(`Invalid action ${j}`);this._clearSource(L)}}this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs();for(const L in this._updatedPaintProps)this._layers[L].updateTransitions(u);this.light.updateTransitions(u),this._resetUpdates()}const C={};for(const M in this.sourceCaches){const I=this.sourceCaches[M];C[M]=I.used,I.used=!1}for(const M of this._order){const I=this._layers[M];I.recalculate(u,this._availableImages),!I.isHidden(u.zoom)&&I.source&&(this.sourceCaches[I.source].used=!0)}for(const M in C){const I=this.sourceCaches[M];C[M]!==I.used&&I.fire(new a.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:M}))}this.light.recalculate(u),this.z=u.zoom,p&&this.fire(new a.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){const u=Object.keys(this._changedImages);if(u.length){for(const p in this.sourceCaches)this.sourceCaches[p].reloadTilesForDependencies(["icons","patterns"],u);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(const u in this.sourceCaches)this.sourceCaches[u].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(u,p){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(u),removedIds:p})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(u,p={}){this._checkLoaded();const C=this.serialize();if(u=p.transformStyle?p.transformStyle(C,u):u,zr(this,a.x(u)))return!1;(u=a.aA(u)).layers=a.ay(u.layers);const M=a.aB(C,u),I=this._getOperationsToPerform(M);if(I.unimplemented.length>0)throw new Error(`Unimplemented: ${I.unimplemented.join(", ")}.`);if(I.operations.length===0)return!1;for(const L of I.operations)L();return this.stylesheet=u,this._serializedLayers=null,!0}_getOperationsToPerform(u){const p=[],C=[];for(const M of u)switch(M.command){case"setCenter":case"setZoom":case"setBearing":case"setPitch":continue;case"addLayer":p.push(()=>this.addLayer.apply(this,M.args));break;case"removeLayer":p.push(()=>this.removeLayer.apply(this,M.args));break;case"setPaintProperty":p.push(()=>this.setPaintProperty.apply(this,M.args));break;case"setLayoutProperty":p.push(()=>this.setLayoutProperty.apply(this,M.args));break;case"setFilter":p.push(()=>this.setFilter.apply(this,M.args));break;case"addSource":p.push(()=>this.addSource.apply(this,M.args));break;case"removeSource":p.push(()=>this.removeSource.apply(this,M.args));break;case"setLayerZoomRange":p.push(()=>this.setLayerZoomRange.apply(this,M.args));break;case"setLight":p.push(()=>this.setLight.apply(this,M.args));break;case"setGeoJSONSourceData":p.push(()=>this.setGeoJSONSourceData.apply(this,M.args));break;case"setGlyphs":p.push(()=>this.setGlyphs.apply(this,M.args));break;case"setSprite":p.push(()=>this.setSprite.apply(this,M.args));break;case"setTerrain":p.push(()=>this.map.setTerrain.apply(this,M.args));break;case"setTransition":p.push(()=>{});break;default:C.push(M.command)}return{operations:p,unimplemented:C}}addImage(u,p){if(this.getImage(u))return this.fire(new a.j(new Error(`An image named "${u}" already exists.`)));this.imageManager.addImage(u,p),this._afterImageUpdated(u)}updateImage(u,p){this.imageManager.updateImage(u,p)}getImage(u){return this.imageManager.getImage(u)}removeImage(u){if(!this.getImage(u))return this.fire(new a.j(new Error(`An image named "${u}" does not exist.`)));this.imageManager.removeImage(u),this._afterImageUpdated(u)}_afterImageUpdated(u){this._availableImages=this.imageManager.listImages(),this._changedImages[u]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(u,p,C={}){if(this._checkLoaded(),this.sourceCaches[u]!==void 0)throw new Error(`Source "${u}" already exists.`);if(!p.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(p).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(p.type)>=0&&this._validate(a.x.source,`sources.${u}`,p,null,C))return;this.map&&this.map._collectResourceTiming&&(p.collectResourceTiming=!0);const M=this.sourceCaches[u]=new Et(u,p,this.dispatcher);M.style=this,M.setEventedParent(this,()=>({isSourceLoaded:M.loaded(),source:M.serialize(),sourceId:u})),M.onAdd(this.map),this._changed=!0}removeSource(u){if(this._checkLoaded(),this.sourceCaches[u]===void 0)throw new Error("There is no source with this ID");for(const C in this._layers)if(this._layers[C].source===u)return this.fire(new a.j(new Error(`Source "${u}" cannot be removed while layer "${C}" is using it.`)));const p=this.sourceCaches[u];delete this.sourceCaches[u],delete this._updatedSources[u],p.fire(new a.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:u})),p.setEventedParent(null),p.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(u,p){if(this._checkLoaded(),this.sourceCaches[u]===void 0)throw new Error(`There is no source with this ID=${u}`);const C=this.sourceCaches[u].getSource();if(C.type!=="geojson")throw new Error(`geojsonSource.type is ${C.type}, which is !== 'geojson`);C.setData(p),this._changed=!0}getSource(u){return this.sourceCaches[u]&&this.sourceCaches[u].getSource()}addLayer(u,p,C={}){this._checkLoaded();const M=u.id;if(this.getLayer(M))return void this.fire(new a.j(new Error(`Layer "${M}" already exists on this map.`)));let I;if(u.type==="custom"){if(zr(this,a.aC(u)))return;I=a.az(u)}else{if("source"in u&&typeof u.source=="object"&&(this.addSource(M,u.source),u=a.aA(u),u=a.e(u,{source:M})),this._validate(a.x.layer,`layers.${M}`,u,{arrayIndex:-1},C))return;I=a.az(u),this._validateLayer(I),I.setEventedParent(this,{layer:{id:M}})}const L=p?this._order.indexOf(p):this._order.length;if(p&&L===-1)this.fire(new a.j(new Error(`Cannot add layer "${M}" before non-existing layer "${p}".`)));else{if(this._order.splice(L,0,M),this._layerOrderChanged=!0,this._layers[M]=I,this._removedLayers[M]&&I.source&&I.type!=="custom"){const j=this._removedLayers[M];delete this._removedLayers[M],j.type!==I.type?this._updatedSources[I.source]="clear":(this._updatedSources[I.source]="reload",this.sourceCaches[I.source].pause())}this._updateLayer(I),I.onAdd&&I.onAdd(this.map)}}moveLayer(u,p){if(this._checkLoaded(),this._changed=!0,!this._layers[u])return void this.fire(new a.j(new Error(`The layer '${u}' does not exist in the map's style and cannot be moved.`)));if(u===p)return;const C=this._order.indexOf(u);this._order.splice(C,1);const M=p?this._order.indexOf(p):this._order.length;p&&M===-1?this.fire(new a.j(new Error(`Cannot move layer "${u}" before non-existing layer "${p}".`))):(this._order.splice(M,0,u),this._layerOrderChanged=!0)}removeLayer(u){this._checkLoaded();const p=this._layers[u];if(!p)return void this.fire(new a.j(new Error(`Cannot remove non-existing layer "${u}".`)));p.setEventedParent(null);const C=this._order.indexOf(u);this._order.splice(C,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[u]=p,delete this._layers[u],this._serializedLayers&&delete this._serializedLayers[u],delete this._updatedLayers[u],delete this._updatedPaintProps[u],p.onRemove&&p.onRemove(this.map)}getLayer(u){return this._layers[u]}getLayersOrder(){return[...this._order]}hasLayer(u){return u in this._layers}setLayerZoomRange(u,p,C){this._checkLoaded();const M=this.getLayer(u);M?M.minzoom===p&&M.maxzoom===C||(p!=null&&(M.minzoom=p),C!=null&&(M.maxzoom=C),this._updateLayer(M)):this.fire(new a.j(new Error(`Cannot set the zoom range of non-existing layer "${u}".`)))}setFilter(u,p,C={}){this._checkLoaded();const M=this.getLayer(u);if(M){if(!a.aD(M.filter,p))return p==null?(M.filter=void 0,void this._updateLayer(M)):void(this._validate(a.x.filter,`layers.${M.id}.filter`,p,null,C)||(M.filter=a.aA(p),this._updateLayer(M)))}else this.fire(new a.j(new Error(`Cannot filter non-existing layer "${u}".`)))}getFilter(u){return a.aA(this.getLayer(u).filter)}setLayoutProperty(u,p,C,M={}){this._checkLoaded();const I=this.getLayer(u);I?a.aD(I.getLayoutProperty(p),C)||(I.setLayoutProperty(p,C,M),this._updateLayer(I)):this.fire(new a.j(new Error(`Cannot style non-existing layer "${u}".`)))}getLayoutProperty(u,p){const C=this.getLayer(u);if(C)return C.getLayoutProperty(p);this.fire(new a.j(new Error(`Cannot get style of non-existing layer "${u}".`)))}setPaintProperty(u,p,C,M={}){this._checkLoaded();const I=this.getLayer(u);I?a.aD(I.getPaintProperty(p),C)||(I.setPaintProperty(p,C,M)&&this._updateLayer(I),this._changed=!0,this._updatedPaintProps[u]=!0):this.fire(new a.j(new Error(`Cannot style non-existing layer "${u}".`)))}getPaintProperty(u,p){return this.getLayer(u).getPaintProperty(p)}setFeatureState(u,p){this._checkLoaded();const C=u.source,M=u.sourceLayer,I=this.sourceCaches[C];if(I===void 0)return void this.fire(new a.j(new Error(`The source '${C}' does not exist in the map's style.`)));const L=I.getSource().type;L==="geojson"&&M?this.fire(new a.j(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):L!=="vector"||M?(u.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),I.setFeatureState(M,u.id,p)):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(u,p){this._checkLoaded();const C=u.source,M=this.sourceCaches[C];if(M===void 0)return void this.fire(new a.j(new Error(`The source '${C}' does not exist in the map's style.`)));const I=M.getSource().type,L=I==="vector"?u.sourceLayer:void 0;I!=="vector"||L?p&&typeof u.id!="string"&&typeof u.id!="number"?this.fire(new a.j(new Error("A feature id is required to remove its specific state property."))):M.removeFeatureState(L,u.id,p):this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(u){this._checkLoaded();const p=u.source,C=u.sourceLayer,M=this.sourceCaches[p];if(M!==void 0)return M.getSource().type!=="vector"||C?(u.id===void 0&&this.fire(new a.j(new Error("The feature id parameter must be provided."))),M.getFeatureState(C,u.id)):void this.fire(new a.j(new Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new a.j(new Error(`The source '${p}' does not exist in the map's style.`)))}getTransition(){return a.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;const u=a.aE(this.sourceCaches,I=>I.serialize()),p=this._serializeByIds(this._order),C=this.map.getTerrain()||void 0,M=this.stylesheet;return a.aF({version:M.version,name:M.name,metadata:M.metadata,light:M.light,center:M.center,zoom:M.zoom,bearing:M.bearing,pitch:M.pitch,sprite:M.sprite,glyphs:M.glyphs,transition:M.transition,sources:u,layers:p,terrain:C},I=>I!==void 0)}_updateLayer(u){this._updatedLayers[u.id]=!0,u.source&&!this._updatedSources[u.source]&&this.sourceCaches[u.source].getSource().type!=="raster"&&(this._updatedSources[u.source]="reload",this.sourceCaches[u.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(u){const p=L=>this._layers[L].type==="fill-extrusion",C={},M=[];for(let L=this._order.length-1;L>=0;L--){const j=this._order[L];if(p(j)){C[j]=L;for(const G of u){const te=G[j];if(te)for(const Ae of te)M.push(Ae)}}}M.sort((L,j)=>j.intersectionZ-L.intersectionZ);const I=[];for(let L=this._order.length-1;L>=0;L--){const j=this._order[L];if(p(j))for(let G=M.length-1;G>=0;G--){const te=M[G].feature;if(C[te.layer.id]{const hn=ft.featureSortOrder;if(hn){const An=hn.indexOf(Tt.featureIndex);return hn.indexOf(en.featureIndex)-An}return en.featureIndex-Tt.featureIndex});for(const Tt of Ut)_t.push(Tt)}}for(const ft in je)je[ft].forEach(Bt=>{const qe=Bt.feature,_t=te[j[ft].source].getFeatureState(qe.layer["source-layer"],qe.id);qe.source=qe.layer.source,qe.layer["source-layer"]&&(qe.sourceLayer=qe.layer["source-layer"]),qe.state=_t});return je}(this._layers,L,this.sourceCaches,u,p,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(I)}querySourceFeatures(u,p){p&&p.filter&&this._validate(a.x.filter,"querySourceFeatures.filter",p.filter,null,p);const C=this.sourceCaches[u];return C?function(M,I){const L=M.getRenderableIds().map(te=>M.getTileByID(te)),j=[],G={};for(let te=0;teMe.getTileByID(De)).sort((De,je)=>je.tileID.overscaledZ-De.tileID.overscaledZ||(De.tileID.isLessThan(je.tileID)?-1:1))}const he=this.crossTileSymbolIndex.addLayer(Ae,G[Ae.source],u.center.lng);L=L||he}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((I=I||this._layerOrderChanged||C===0)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(k.now(),u.zoom))&&(this.pauseablePlacement=new ve(u,this.map.terrain,this._order,I,p,C,M,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,G),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(k.now()),j=!0),L&&this.pauseablePlacement.placement.setStale()),j||L)for(const te of this._order){const Ae=this._layers[te];Ae.type==="symbol"&&this.placement.updateLayerOpacities(Ae,G[Ae.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(k.now())}_releaseSymbolFadeTiles(){for(const u in this.sourceCaches)this.sourceCaches[u].releaseSymbolFadeTiles()}getImages(u,p){return a._(this,void 0,void 0,function*(){const C=yield this.imageManager.getImages(p.icons);this._updateTilesForChangedImages();const M=this.sourceCaches[p.source];return M&&M.setDependencies(p.tileID.key,p.type,p.icons),C})}getGlyphs(u,p){return a._(this,void 0,void 0,function*(){const C=yield this.glyphManager.getGlyphs(p.stacks),M=this.sourceCaches[p.source];return M&&M.setDependencies(p.tileID.key,p.type,[""]),C})}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(u,p={}){this._checkLoaded(),u&&this._validate(a.x.glyphs,"glyphs",u,null,p)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=u,this.glyphManager.entries={},this.glyphManager.setURL(u))}addSprite(u,p,C={},M){this._checkLoaded();const I=[{id:u,url:p}],L=[...rt(this.stylesheet.sprite),...I];this._validate(a.x.sprite,"sprite",L,null,C)||(this.stylesheet.sprite=L,this._loadSprite(I,!0,M))}removeSprite(u){this._checkLoaded();const p=rt(this.stylesheet.sprite);if(p.find(C=>C.id===u)){if(this._spritesImagesIds[u])for(const C of this._spritesImagesIds[u])this.imageManager.removeImage(C),this._changedImages[C]=!0;p.splice(p.findIndex(C=>C.id===u),1),this.stylesheet.sprite=p.length>0?p:void 0,delete this._spritesImagesIds[u],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.k("data",{dataType:"style"}))}else this.fire(new a.j(new Error(`Sprite "${u}" doesn't exists on this map.`)))}getSprite(){return rt(this.stylesheet.sprite)}setSprite(u,p={},C){this._checkLoaded(),u&&this._validate(a.x.sprite,"sprite",u,null,p)||(this.stylesheet.sprite=u,u?this._loadSprite(u,!0,C):(this._unloadSprite(),C&&C(null)))}}var po=a.X([{name:"a_pos",type:"Int16",components:2}]),Cl="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 br={prelude:_i(`#ifdef GL_ES precision mediump float; #else #if !defined(lowp) #define lowp #endif #if !defined(mediump) #define mediump #endif #if !defined(highp) #define highp #endif #endif `,`#ifdef GL_ES precision highp float; #else #if !defined(lowp) #define lowp #endif #if !defined(mediump) #define mediump #endif #if !defined(highp) #define highp #endif #endif vec2 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 );}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;} #ifdef TERRAIN3D uniform 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; #endif const 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) { #ifdef TERRAIN3D highp 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)); #else return 1.0; #endif }float calculate_visibility(vec4 pos) { #ifdef TERRAIN3D vec3 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; #else return 1.0; #endif }float ele(vec2 pos) { #ifdef TERRAIN3D vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a; #else return 0.0; #endif }float get_elevation(vec2 pos) { #ifdef TERRAIN3D vec2 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; #else return 0.0; #endif }`),background:_i(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:_i(`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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,"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:_i(`varying vec3 v_data;varying float v_visibility; #pragma mapbox: define highp vec4 color #pragma mapbox: define mediump float radius #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define highp vec4 stroke_color #pragma mapbox: define mediump float stroke_width #pragma mapbox: define lowp float stroke_opacity void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize mediump float radius #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize highp vec4 stroke_color #pragma mapbox: initialize mediump float stroke_width #pragma mapbox: initialize lowp float stroke_opacity vec2 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define highp vec4 color #pragma mapbox: define mediump float radius #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define highp vec4 stroke_color #pragma mapbox: define mediump float stroke_width #pragma mapbox: define lowp float stroke_opacity void main(void) { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize mediump float radius #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize highp vec4 stroke_color #pragma mapbox: initialize mediump float stroke_width #pragma mapbox: initialize lowp float stroke_opacity vec2 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:_i("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:_i(`uniform highp float u_intensity;varying vec2 v_extrude; #pragma mapbox: define highp float weight #define GAUSS_COEF 0.3989422804014327 void main() { #pragma mapbox: initialize highp float weight float 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define highp float weight #pragma mapbox: define mediump float radius const highp float ZERO=1.0/255.0/16.0; #define GAUSS_COEF 0.3989422804014327 void main(void) { #pragma mapbox: initialize highp float weight #pragma mapbox: initialize mediump float radius vec2 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:_i(`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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(0.0); #endif }`,"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:_i("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:_i("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:_i("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:_i(`#pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity gl_FragColor=color*opacity; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`attribute vec2 a_pos;uniform mat4 u_matrix; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float opacity gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:_i(`varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos; #pragma mapbox: define highp vec4 outline_color #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 outline_color #pragma mapbox: initialize lowp float opacity gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:_i(`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; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to vec2 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to vec2 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;}`),fillPattern:_i(`#ifdef GL_ES precision highp float; #endif uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to vec2 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to void main() { #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to vec2 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:_i(`varying vec4 v_color;void main() {gl_FragColor=v_color; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #ifdef TERRAIN3D attribute vec2 a_centroid; #endif varying vec4 v_color; #pragma mapbox: define highp float base #pragma mapbox: define highp float height #pragma mapbox: define highp vec4 color void main() { #pragma mapbox: initialize highp float base #pragma mapbox: initialize highp float height #pragma mapbox: initialize highp vec4 color vec3 normal=a_normal_ed.xyz; #ifdef TERRAIN3D float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); #else float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; #endif base=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:_i(`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; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to void main() { #pragma mapbox: initialize lowp float base #pragma mapbox: initialize lowp float height #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to vec2 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #ifdef TERRAIN3D attribute vec2 a_centroid; #endif varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting; #pragma mapbox: define lowp float base #pragma mapbox: define lowp float height #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to void main() { #pragma mapbox: initialize lowp float base #pragma mapbox: initialize lowp float height #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to vec2 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; #ifdef TERRAIN3D float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0); #else float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0; #endif base=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 ? a_pos : 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:_i(`#ifdef GL_ES precision highp float; #endif uniform 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,"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:_i(`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; #define PI 3.141592653589793 void 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,"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:_i(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity 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);gl_FragColor=color*(alpha*opacity); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,` #define scale 0.015873016 attribute 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; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define mediump float gapwidth #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float width void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width float 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; #ifdef TERRAIN3D v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif v_width2=vec2(outset,inset);}`),lineGradient:_i(`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; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity 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);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,` #define scale 0.015873016 attribute 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; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define mediump float gapwidth #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float width void main() { #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width float 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; #ifdef TERRAIN3D v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif v_width2=vec2(outset,inset);}`),linePattern:_i(`#ifdef GL_ES precision highp float; #endif uniform 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; #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity vec2 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; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute 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; #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float gapwidth #pragma mapbox: define mediump float width #pragma mapbox: define lowp float floorwidth #pragma mapbox: define lowp vec4 pattern_from #pragma mapbox: define lowp vec4 pattern_to #pragma mapbox: define lowp float pixel_ratio_from #pragma mapbox: define lowp float pixel_ratio_to void main() { #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth #pragma mapbox: initialize mediump vec4 pattern_from #pragma mapbox: initialize mediump vec4 pattern_to #pragma mapbox: initialize lowp float pixel_ratio_from #pragma mapbox: initialize lowp float pixel_ratio_to float 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; #ifdef TERRAIN3D v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:_i(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define mediump float width #pragma mapbox: define lowp float floorwidth void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth 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 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,` #define scale 0.015873016 #define LINE_DISTANCE_SCALE 2.0 attribute 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; #pragma mapbox: define highp vec4 color #pragma mapbox: define lowp float blur #pragma mapbox: define lowp float opacity #pragma mapbox: define mediump float gapwidth #pragma mapbox: define lowp float offset #pragma mapbox: define mediump float width #pragma mapbox: define lowp float floorwidth void main() { #pragma mapbox: initialize highp vec4 color #pragma mapbox: initialize lowp float blur #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize mediump float gapwidth #pragma mapbox: initialize lowp float offset #pragma mapbox: initialize mediump float width #pragma mapbox: initialize lowp float floorwidth float 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; #ifdef TERRAIN3D v_gamma_scale=1.0; #else float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective; #endif v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:_i(`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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,"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:_i(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define lowp float opacity void main() { #pragma mapbox: initialize lowp float opacity vec2 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 ? camera_to_anchor_distance/u_camera_to_center_distance : u_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:_i(`#define SDF_PX 8.0 uniform 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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur float 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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur vec2 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 ? camera_to_anchor_distance/u_camera_to_center_distance : u_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:_i(`#define SDF_PX 8.0 #define SDF 1.0 #define ICON 0.0 uniform 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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha; #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif return;}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); #ifdef OVERDRAW_INSPECTOR gl_FragColor=vec4(1.0); #endif }`,`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; #pragma mapbox: define highp vec4 fill_color #pragma mapbox: define highp vec4 halo_color #pragma mapbox: define lowp float opacity #pragma mapbox: define lowp float halo_width #pragma mapbox: define lowp float halo_blur void main() { #pragma mapbox: initialize highp vec4 fill_color #pragma mapbox: initialize highp vec4 halo_color #pragma mapbox: initialize lowp float opacity #pragma mapbox: initialize lowp float halo_width #pragma mapbox: initialize lowp float halo_blur vec2 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 ? camera_to_anchor_distance/u_camera_to_center_distance : u_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:_i("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Cl),terrainDepth:_i("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);}",Cl),terrainCoords:_i("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);}",Cl)};function _i(O,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=u.match(/attribute ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),L=I?I.concat(M):M,j={};return{fragmentSource:O=O.replace(p,(G,te,Ae,he,Me)=>(j[Me]=!0,te==="define"?` #ifndef HAS_UNIFORM_u_${Me} varying ${Ae} ${he} ${Me}; #else uniform ${Ae} ${he} u_${Me}; #endif `:` #ifdef HAS_UNIFORM_u_${Me} ${Ae} ${he} ${Me} = u_${Me}; #endif `)),vertexSource:u=u.replace(p,(G,te,Ae,he,Me)=>{const De=he==="float"?"vec2":"vec4",je=Me.match(/color/)?"color":De;return j[Me]?te==="define"?` #ifndef HAS_UNIFORM_u_${Me} uniform lowp float u_${Me}_t; attribute ${Ae} ${De} a_${Me}; varying ${Ae} ${he} ${Me}; #else uniform ${Ae} ${he} u_${Me}; #endif `:je==="vec4"?` #ifndef HAS_UNIFORM_u_${Me} ${Me} = a_${Me}; #else ${Ae} ${he} ${Me} = u_${Me}; #endif `:` #ifndef HAS_UNIFORM_u_${Me} ${Me} = unpack_mix_${je}(a_${Me}, u_${Me}_t); #else ${Ae} ${he} ${Me} = u_${Me}; #endif `:te==="define"?` #ifndef HAS_UNIFORM_u_${Me} uniform lowp float u_${Me}_t; attribute ${Ae} ${De} a_${Me}; #else uniform ${Ae} ${he} u_${Me}; #endif `:je==="vec4"?` #ifndef HAS_UNIFORM_u_${Me} ${Ae} ${he} ${Me} = a_${Me}; #else ${Ae} ${he} ${Me} = u_${Me}; #endif `:` #ifndef HAS_UNIFORM_u_${Me} ${Ae} ${he} ${Me} = unpack_mix_${je}(a_${Me}, u_${Me}_t); #else ${Ae} ${he} ${Me} = u_${Me}; #endif `}),staticAttributes:C,staticUniforms:L}}class _l{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,p,C,M,I,L,j,G,te){this.context=u;let Ae=this.boundPaintVertexBuffers.length!==M.length;for(let he=0;!Ae&&he({u_depth:new a.aG(Tt,en.u_depth),u_terrain:new a.aG(Tt,en.u_terrain),u_terrain_dim:new a.aH(Tt,en.u_terrain_dim),u_terrain_matrix:new a.aI(Tt,en.u_terrain_matrix),u_terrain_unpack:new a.aJ(Tt,en.u_terrain_unpack),u_terrain_exaggeration:new a.aH(Tt,en.u_terrain_exaggeration)}))(u,Ut),this.binderUniforms=C?C.getUniforms(u,Ut):[]}draw(u,p,C,M,I,L,j,G,te,Ae,he,Me,De,je,Qe,Le,ft,Bt){const qe=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(C),u.setStencilMode(M),u.setColorMode(I),u.setCullFace(L),G){u.activeTexture.set(qe.TEXTURE2),qe.bindTexture(qe.TEXTURE_2D,G.depthTexture),u.activeTexture.set(qe.TEXTURE3),qe.bindTexture(qe.TEXTURE_2D,G.texture);for(const Ut in this.terrainUniforms)this.terrainUniforms[Ut].set(G[Ut])}for(const Ut in this.fixedUniforms)this.fixedUniforms[Ut].set(j[Ut]);Qe&&Qe.setUniforms(u,this.binderUniforms,De,{zoom:je});let _t=0;switch(p){case qe.LINES:_t=2;break;case qe.TRIANGLES:_t=3;break;case qe.LINE_STRIP:_t=1}for(const Ut of Me.get()){const Tt=Ut.vaos||(Ut.vaos={});(Tt[te]||(Tt[te]=new _l)).bind(u,this,Ae,Qe?Qe.getPaintVertexBuffers():[],he,Ut.vertexOffset,Le,ft,Bt),qe.drawElements(p,Ut.primitiveLength*_t,qe.UNSIGNED_SHORT,Ut.primitiveOffset*_t*2)}}}function qs(O,u,p){const C=1/qn(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),I=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,L=I*(p.tileID.canonical.x+p.tileID.wrap*M),j=I*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[L>>16,j>>16],u_pixel_coord_lower:[65535&L,65535&j]}}const Vs=(O,u,p,C)=>{const M=u.style.light,I=M.properties.get("position"),L=[I.x,I.y,I.z],j=function(){var te=new a.A(9);return a.A!=Float32Array&&(te[1]=0,te[2]=0,te[3]=0,te[5]=0,te[6]=0,te[7]=0),te[0]=1,te[4]=1,te[8]=1,te}();M.properties.get("anchor")==="viewport"&&function(te,Ae){var he=Math.sin(Ae),Me=Math.cos(Ae);te[0]=Me,te[1]=he,te[2]=0,te[3]=-he,te[4]=Me,te[5]=0,te[6]=0,te[7]=0,te[8]=1}(j,-u.transform.angle),function(te,Ae,he){var Me=Ae[0],De=Ae[1],je=Ae[2];te[0]=Me*he[0]+De*he[3]+je*he[6],te[1]=Me*he[1]+De*he[4]+je*he[7],te[2]=Me*he[2]+De*he[5]+je*he[8]}(L,L,j);const G=M.properties.get("color");return{u_matrix:O,u_lightpos:L,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[G.r,G.g,G.b],u_vertical_gradient:+p,u_opacity:C}},va=(O,u,p,C,M,I,L)=>a.e(Vs(O,u,p,C),qs(I,u,L),{u_height_factor:-Math.pow(2,M.overscaledZ)/L.tileSize/8}),$a=O=>({u_matrix:O}),ll=(O,u,p,C)=>a.e($a(O),qs(p,u,C)),xu=(O,u)=>({u_matrix:O,u_world:u}),bl=(O,u,p,C,M)=>a.e(ll(O,u,p,C),{u_world:M}),CA=(O,u,p,C)=>{const M=O.transform;let I,L;if(C.paint.get("circle-pitch-alignment")==="map"){const j=qn(p,1,M.zoom);I=!0,L=[j,j]}else I=!1,L=M.pixelsToGLUnits;return{u_camera_to_center_distance:M.cameraToCenterDistance,u_scale_with_map:+(C.paint.get("circle-pitch-scale")==="map"),u_matrix:O.translatePosMatrix(u.posMatrix,p,C.paint.get("circle-translate"),C.paint.get("circle-translate-anchor")),u_pitch_with_map:+I,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:L}},HA=(O,u,p)=>{const C=qn(p,1,u.zoom),M=Math.pow(2,u.zoom-p.tileID.overscaledZ),I=p.tileID.overscaleFactor();return{u_matrix:O,u_camera_to_center_distance:u.cameraToCenterDistance,u_pixels_to_tile_units:C,u_extrude_scale:[u.pixelsToGLUnits[0]/(C*M),u.pixelsToGLUnits[1]/(C*M)],u_overscale_factor:I}},Hu=(O,u,p=1)=>({u_matrix:O,u_color:u,u_overlay:0,u_overlay_scale:p}),ZA=O=>({u_matrix:O}),_A=(O,u,p,C)=>({u_matrix:O,u_extrude_scale:qn(u,1,p),u_intensity:C});function Ya(O,u){const p=Math.pow(2,u.canonical.z),C=u.canonical.y;return[new a.Y(0,C/p).toLngLat().lat,new a.Y(0,(C+1)/p).toLngLat().lat]}const vs=(O,u,p,C)=>{const M=O.transform;return{u_matrix:Cs(O,u,p,C),u_ratio:1/qn(u,1,M.zoom),u_device_pixel_ratio:O.pixelRatio,u_units_to_pixels:[1/M.pixelsToGLUnits[0],1/M.pixelsToGLUnits[1]]}},bA=(O,u,p,C,M)=>a.e(vs(O,u,p,M),{u_image:0,u_image_height:C}),Zu=(O,u,p,C,M)=>{const I=O.transform,L=Us(u,I);return{u_matrix:Cs(O,u,p,M),u_texsize:u.imageAtlasTexture.size,u_ratio:1/qn(u,1,I.zoom),u_device_pixel_ratio:O.pixelRatio,u_image:0,u_scale:[L,C.fromScale,C.toScale],u_fade:C.t,u_units_to_pixels:[1/I.pixelsToGLUnits[0],1/I.pixelsToGLUnits[1]]}},Ds=(O,u,p,C,M,I)=>{const L=O.lineAtlas,j=Us(u,O.transform),G=p.layout.get("line-cap")==="round",te=L.getDash(C.from,G),Ae=L.getDash(C.to,G),he=te.width*M.fromScale,Me=Ae.width*M.toScale;return a.e(vs(O,u,p,I),{u_patternscale_a:[j/he,-te.height/2],u_patternscale_b:[j/Me,-Ae.height/2],u_sdfgamma:L.width/(256*Math.min(he,Me)*O.pixelRatio)/2,u_image:0,u_tex_y_a:te.y,u_tex_y_b:Ae.y,u_mix:M.t})};function Us(O,u){return 1/qn(O,1,u.tileZoom)}function Cs(O,u,p,C){return O.translatePosMatrix(C?C.posMatrix:u.tileID.posMatrix,u,p.paint.get("line-translate"),p.paint.get("line-translate-anchor"))}const lu=(O,u,p,C,M)=>{return{u_matrix:O,u_tl_parent:u,u_scale_parent:p,u_buffer_scale:1,u_fade_t:C.mix,u_opacity:C.opacity*M.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:M.paint.get("raster-brightness-min"),u_brightness_high:M.paint.get("raster-brightness-max"),u_saturation_factor:(L=M.paint.get("raster-saturation"),L>0?1-1/(1.001-L):-L),u_contrast_factor:(I=M.paint.get("raster-contrast"),I>0?1/(1-I):1+I),u_spin_weights:wu(M.paint.get("raster-hue-rotate"))};var I,L};function wu(O){O*=Math.PI/180;const u=Math.sin(O),p=Math.cos(O);return[(2*p+1)/3,(-Math.sqrt(3)*u-p+1)/3,(Math.sqrt(3)*u-p+1)/3]}const uu=(O,u,p,C,M,I,L,j,G,te)=>{const Ae=M.transform;return{u_is_size_zoom_constant:+(O==="constant"||O==="source"),u_is_size_feature_constant:+(O==="constant"||O==="camera"),u_size_t:u?u.uSizeT:0,u_size:u?u.uSize:0,u_camera_to_center_distance:Ae.cameraToCenterDistance,u_pitch:Ae.pitch/360*2*Math.PI,u_rotate_symbol:+p,u_aspect_ratio:Ae.width/Ae.height,u_fade_change:M.options.fadeDuration?M.symbolFadeChange:1,u_matrix:I,u_label_plane_matrix:L,u_coord_matrix:j,u_is_text:+G,u_pitch_with_map:+C,u_texsize:te,u_texture:0}},as=(O,u,p,C,M,I,L,j,G,te,Ae)=>{const he=M.transform;return a.e(uu(O,u,p,C,M,I,L,j,G,te),{u_gamma_scale:C?Math.cos(he._pitch)*he.cameraToCenterDistance:1,u_device_pixel_ratio:M.pixelRatio,u_is_halo:+Ae})},Mu=(O,u,p,C,M,I,L,j,G,te)=>a.e(as(O,u,p,C,M,I,L,j,!0,G,!0),{u_texsize_icon:te,u_texture_icon:1}),Au=(O,u,p)=>({u_matrix:O,u_opacity:u,u_color:p}),bo=(O,u,p,C,M,I)=>a.e(function(L,j,G,te){const Ae=G.imageManager.getPattern(L.from.toString()),he=G.imageManager.getPattern(L.to.toString()),{width:Me,height:De}=G.imageManager.getPixelSize(),je=Math.pow(2,te.tileID.overscaledZ),Qe=te.tileSize*Math.pow(2,G.transform.tileZoom)/je,Le=Qe*(te.tileID.canonical.x+te.tileID.wrap*je),ft=Qe*te.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:Ae.tl,u_pattern_br_a:Ae.br,u_pattern_tl_b:he.tl,u_pattern_br_b:he.br,u_texsize:[Me,De],u_mix:j.t,u_pattern_size_a:Ae.displaySize,u_pattern_size_b:he.displaySize,u_scale_a:j.fromScale,u_scale_b:j.toScale,u_tile_units_to_pixels:1/qn(te,1,G.transform.tileZoom),u_pixel_coord_upper:[Le>>16,ft>>16],u_pixel_coord_lower:[65535&Le,65535&ft]}}(C,I,p,M),{u_matrix:O,u_opacity:u}),mo={fillExtrusion:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_lightpos:new a.aK(O,u.u_lightpos),u_lightintensity:new a.aH(O,u.u_lightintensity),u_lightcolor:new a.aK(O,u.u_lightcolor),u_vertical_gradient:new a.aH(O,u.u_vertical_gradient),u_opacity:new a.aH(O,u.u_opacity)}),fillExtrusionPattern:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_lightpos:new a.aK(O,u.u_lightpos),u_lightintensity:new a.aH(O,u.u_lightintensity),u_lightcolor:new a.aK(O,u.u_lightcolor),u_vertical_gradient:new a.aH(O,u.u_vertical_gradient),u_height_factor:new a.aH(O,u.u_height_factor),u_image:new a.aG(O,u.u_image),u_texsize:new a.aL(O,u.u_texsize),u_pixel_coord_upper:new a.aL(O,u.u_pixel_coord_upper),u_pixel_coord_lower:new a.aL(O,u.u_pixel_coord_lower),u_scale:new a.aK(O,u.u_scale),u_fade:new a.aH(O,u.u_fade),u_opacity:new a.aH(O,u.u_opacity)}),fill:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix)}),fillPattern:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_image:new a.aG(O,u.u_image),u_texsize:new a.aL(O,u.u_texsize),u_pixel_coord_upper:new a.aL(O,u.u_pixel_coord_upper),u_pixel_coord_lower:new a.aL(O,u.u_pixel_coord_lower),u_scale:new a.aK(O,u.u_scale),u_fade:new a.aH(O,u.u_fade)}),fillOutline:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_world:new a.aL(O,u.u_world)}),fillOutlinePattern:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_world:new a.aL(O,u.u_world),u_image:new a.aG(O,u.u_image),u_texsize:new a.aL(O,u.u_texsize),u_pixel_coord_upper:new a.aL(O,u.u_pixel_coord_upper),u_pixel_coord_lower:new a.aL(O,u.u_pixel_coord_lower),u_scale:new a.aK(O,u.u_scale),u_fade:new a.aH(O,u.u_fade)}),circle:(O,u)=>({u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_scale_with_map:new a.aG(O,u.u_scale_with_map),u_pitch_with_map:new a.aG(O,u.u_pitch_with_map),u_extrude_scale:new a.aL(O,u.u_extrude_scale),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_matrix:new a.aI(O,u.u_matrix)}),collisionBox:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_pixels_to_tile_units:new a.aH(O,u.u_pixels_to_tile_units),u_extrude_scale:new a.aL(O,u.u_extrude_scale),u_overscale_factor:new a.aH(O,u.u_overscale_factor)}),collisionCircle:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_inv_matrix:new a.aI(O,u.u_inv_matrix),u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_viewport_size:new a.aL(O,u.u_viewport_size)}),debug:(O,u)=>({u_color:new a.aM(O,u.u_color),u_matrix:new a.aI(O,u.u_matrix),u_overlay:new a.aG(O,u.u_overlay),u_overlay_scale:new a.aH(O,u.u_overlay_scale)}),clippingMask:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix)}),heatmap:(O,u)=>({u_extrude_scale:new a.aH(O,u.u_extrude_scale),u_intensity:new a.aH(O,u.u_intensity),u_matrix:new a.aI(O,u.u_matrix)}),heatmapTexture:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_world:new a.aL(O,u.u_world),u_image:new a.aG(O,u.u_image),u_color_ramp:new a.aG(O,u.u_color_ramp),u_opacity:new a.aH(O,u.u_opacity)}),hillshade:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_image:new a.aG(O,u.u_image),u_latrange:new a.aL(O,u.u_latrange),u_light:new a.aL(O,u.u_light),u_shadow:new a.aM(O,u.u_shadow),u_highlight:new a.aM(O,u.u_highlight),u_accent:new a.aM(O,u.u_accent)}),hillshadePrepare:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_image:new a.aG(O,u.u_image),u_dimension:new a.aL(O,u.u_dimension),u_zoom:new a.aH(O,u.u_zoom),u_unpack:new a.aJ(O,u.u_unpack)}),line:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_ratio:new a.aH(O,u.u_ratio),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_units_to_pixels:new a.aL(O,u.u_units_to_pixels)}),lineGradient:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_ratio:new a.aH(O,u.u_ratio),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_units_to_pixels:new a.aL(O,u.u_units_to_pixels),u_image:new a.aG(O,u.u_image),u_image_height:new a.aH(O,u.u_image_height)}),linePattern:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_texsize:new a.aL(O,u.u_texsize),u_ratio:new a.aH(O,u.u_ratio),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_image:new a.aG(O,u.u_image),u_units_to_pixels:new a.aL(O,u.u_units_to_pixels),u_scale:new a.aK(O,u.u_scale),u_fade:new a.aH(O,u.u_fade)}),lineSDF:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_ratio:new a.aH(O,u.u_ratio),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_units_to_pixels:new a.aL(O,u.u_units_to_pixels),u_patternscale_a:new a.aL(O,u.u_patternscale_a),u_patternscale_b:new a.aL(O,u.u_patternscale_b),u_sdfgamma:new a.aH(O,u.u_sdfgamma),u_image:new a.aG(O,u.u_image),u_tex_y_a:new a.aH(O,u.u_tex_y_a),u_tex_y_b:new a.aH(O,u.u_tex_y_b),u_mix:new a.aH(O,u.u_mix)}),raster:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_tl_parent:new a.aL(O,u.u_tl_parent),u_scale_parent:new a.aH(O,u.u_scale_parent),u_buffer_scale:new a.aH(O,u.u_buffer_scale),u_fade_t:new a.aH(O,u.u_fade_t),u_opacity:new a.aH(O,u.u_opacity),u_image0:new a.aG(O,u.u_image0),u_image1:new a.aG(O,u.u_image1),u_brightness_low:new a.aH(O,u.u_brightness_low),u_brightness_high:new a.aH(O,u.u_brightness_high),u_saturation_factor:new a.aH(O,u.u_saturation_factor),u_contrast_factor:new a.aH(O,u.u_contrast_factor),u_spin_weights:new a.aK(O,u.u_spin_weights)}),symbolIcon:(O,u)=>({u_is_size_zoom_constant:new a.aG(O,u.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aG(O,u.u_is_size_feature_constant),u_size_t:new a.aH(O,u.u_size_t),u_size:new a.aH(O,u.u_size),u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_pitch:new a.aH(O,u.u_pitch),u_rotate_symbol:new a.aG(O,u.u_rotate_symbol),u_aspect_ratio:new a.aH(O,u.u_aspect_ratio),u_fade_change:new a.aH(O,u.u_fade_change),u_matrix:new a.aI(O,u.u_matrix),u_label_plane_matrix:new a.aI(O,u.u_label_plane_matrix),u_coord_matrix:new a.aI(O,u.u_coord_matrix),u_is_text:new a.aG(O,u.u_is_text),u_pitch_with_map:new a.aG(O,u.u_pitch_with_map),u_texsize:new a.aL(O,u.u_texsize),u_texture:new a.aG(O,u.u_texture)}),symbolSDF:(O,u)=>({u_is_size_zoom_constant:new a.aG(O,u.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aG(O,u.u_is_size_feature_constant),u_size_t:new a.aH(O,u.u_size_t),u_size:new a.aH(O,u.u_size),u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_pitch:new a.aH(O,u.u_pitch),u_rotate_symbol:new a.aG(O,u.u_rotate_symbol),u_aspect_ratio:new a.aH(O,u.u_aspect_ratio),u_fade_change:new a.aH(O,u.u_fade_change),u_matrix:new a.aI(O,u.u_matrix),u_label_plane_matrix:new a.aI(O,u.u_label_plane_matrix),u_coord_matrix:new a.aI(O,u.u_coord_matrix),u_is_text:new a.aG(O,u.u_is_text),u_pitch_with_map:new a.aG(O,u.u_pitch_with_map),u_texsize:new a.aL(O,u.u_texsize),u_texture:new a.aG(O,u.u_texture),u_gamma_scale:new a.aH(O,u.u_gamma_scale),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_is_halo:new a.aG(O,u.u_is_halo)}),symbolTextAndIcon:(O,u)=>({u_is_size_zoom_constant:new a.aG(O,u.u_is_size_zoom_constant),u_is_size_feature_constant:new a.aG(O,u.u_is_size_feature_constant),u_size_t:new a.aH(O,u.u_size_t),u_size:new a.aH(O,u.u_size),u_camera_to_center_distance:new a.aH(O,u.u_camera_to_center_distance),u_pitch:new a.aH(O,u.u_pitch),u_rotate_symbol:new a.aG(O,u.u_rotate_symbol),u_aspect_ratio:new a.aH(O,u.u_aspect_ratio),u_fade_change:new a.aH(O,u.u_fade_change),u_matrix:new a.aI(O,u.u_matrix),u_label_plane_matrix:new a.aI(O,u.u_label_plane_matrix),u_coord_matrix:new a.aI(O,u.u_coord_matrix),u_is_text:new a.aG(O,u.u_is_text),u_pitch_with_map:new a.aG(O,u.u_pitch_with_map),u_texsize:new a.aL(O,u.u_texsize),u_texsize_icon:new a.aL(O,u.u_texsize_icon),u_texture:new a.aG(O,u.u_texture),u_texture_icon:new a.aG(O,u.u_texture_icon),u_gamma_scale:new a.aH(O,u.u_gamma_scale),u_device_pixel_ratio:new a.aH(O,u.u_device_pixel_ratio),u_is_halo:new a.aG(O,u.u_is_halo)}),background:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_opacity:new a.aH(O,u.u_opacity),u_color:new a.aM(O,u.u_color)}),backgroundPattern:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_opacity:new a.aH(O,u.u_opacity),u_image:new a.aG(O,u.u_image),u_pattern_tl_a:new a.aL(O,u.u_pattern_tl_a),u_pattern_br_a:new a.aL(O,u.u_pattern_br_a),u_pattern_tl_b:new a.aL(O,u.u_pattern_tl_b),u_pattern_br_b:new a.aL(O,u.u_pattern_br_b),u_texsize:new a.aL(O,u.u_texsize),u_mix:new a.aH(O,u.u_mix),u_pattern_size_a:new a.aL(O,u.u_pattern_size_a),u_pattern_size_b:new a.aL(O,u.u_pattern_size_b),u_scale_a:new a.aH(O,u.u_scale_a),u_scale_b:new a.aH(O,u.u_scale_b),u_pixel_coord_upper:new a.aL(O,u.u_pixel_coord_upper),u_pixel_coord_lower:new a.aL(O,u.u_pixel_coord_lower),u_tile_units_to_pixels:new a.aH(O,u.u_tile_units_to_pixels)}),terrain:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_texture:new a.aG(O,u.u_texture),u_ele_delta:new a.aH(O,u.u_ele_delta)}),terrainDepth:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_ele_delta:new a.aH(O,u.u_ele_delta)}),terrainCoords:(O,u)=>({u_matrix:new a.aI(O,u.u_matrix),u_texture:new a.aG(O,u.u_texture),u_terrain_coords_id:new a.aH(O,u.u_terrain_coords_id),u_ele_delta:new a.aH(O,u.u_ele_delta)})};class ee{constructor(u,p,C){this.context=u;const M=u.gl;this.buffer=M.createBuffer(),this.dynamicDraw=!!C,this.context.unbindVAO(),u.bindElementBuffer.set(this.buffer),M.bufferData(M.ELEMENT_ARRAY_BUFFER,p.arrayBuffer,this.dynamicDraw?M.DYNAMIC_DRAW:M.STATIC_DRAW),this.dynamicDraw||delete p.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(u){const p=this.context.gl;if(!this.dynamicDraw)throw new Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),p.bufferSubData(p.ELEMENT_ARRAY_BUFFER,0,u.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const Ie={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class st{constructor(u,p,C,M){this.length=p.length,this.attributes=C,this.itemSize=p.bytesPerElement,this.dynamicDraw=M,this.context=u;const I=u.gl;this.buffer=I.createBuffer(),u.bindVertexBuffer.set(this.buffer),I.bufferData(I.ARRAY_BUFFER,p.arrayBuffer,this.dynamicDraw?I.DYNAMIC_DRAW:I.STATIC_DRAW),this.dynamicDraw||delete p.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(u){if(u.length!==this.length)throw new Error(`Length of new data is ${u.length}, which doesn't match current length of ${this.length}`);const p=this.context.gl;this.bind(),p.bufferSubData(p.ARRAY_BUFFER,0,u.arrayBuffer)}enableAttributes(u,p){for(let C=0;C0){const On=a.F(),lr=en;a.aP(On,Tt.placementInvProjMatrix,O.transform.glCoordMatrix),a.aP(On,On,Tt.placementViewportMatrix),Ae.push({circleArray:An,circleOffset:Me,transform:lr,invTransform:On,coord:_t}),he+=An.length/4,Me=he}hn&&te.draw(j,G.LINES,zi.disabled,Lo.disabled,O.colorModeForRenderPass(),So.disabled,HA(en,O.transform,Ut),O.style.map.terrain&&O.style.map.terrain.getTerrainData(_t),p.id,hn.layoutVertexBuffer,hn.indexBuffer,hn.segments,null,O.transform.zoom,null,null,hn.collisionVertexBuffer)}if(!L||!Ae.length)return;const De=O.useProgram("collisionCircle"),je=new a.aQ;je.resize(4*he),je._trim();let Qe=0;for(const qe of Ae)for(let _t=0;_t=0&&(je[Le.associatedIconIndex]={shiftedAnchor:xr,angle:Tn})}else Gt(Le.numGlyphs,Me)}if(te){De.clear();const Qe=O.icon.placedSymbolArray;for(let Le=0;LeO.style.map.terrain.getElevation(hn,ua,sa):null,Da=p.layout.get("text-rotation-alignment")==="map";fe(On,hn.posMatrix,O,M,no,ws,Le,te,Da,jo)}const aA=O.translatePosMatrix(hn.posMatrix,An,I,L),hu=ft||M&&Tt||Ms?Ls:no,Zo=O.translatePosMatrix(ws,An,I,L,!0),ji=Tn&&p.paint.get(M?"text-halo-width":"icon-halo-width").constantOr(1)!==0;let Oi;Oi=Tn?On.iconsInText?Mu(yr.kind,pi,Bt,Le,O,aA,hu,Zo,si,Sa):as(yr.kind,pi,Bt,Le,O,aA,hu,Zo,M,si,!0):uu(yr.kind,pi,Bt,Le,O,aA,hu,Zo,M,si);const cs={program:Ho,buffers:lr,uniformValues:Oi,atlasTexture:yo,atlasTextureIcon:aa,atlasInterpolation:vo,atlasInterpolationIcon:Zs,isSDF:Tn,hasHalo:ji};if(qe&&On.canOverlap){_t=!0;const jo=lr.segments.get();for(const Da of jo)en.push({segments:new a.$([Da]),sortKey:Da.sortKey,state:cs,terrainData:ii})}else en.push({segments:lr.segments,sortKey:0,state:cs,terrainData:ii})}_t&&en.sort((hn,An)=>hn.sortKey-An.sortKey);for(const hn of en){const An=hn.state;if(Me.activeTexture.set(De.TEXTURE0),An.atlasTexture.bind(An.atlasInterpolation,De.CLAMP_TO_EDGE),An.atlasTextureIcon&&(Me.activeTexture.set(De.TEXTURE1),An.atlasTextureIcon&&An.atlasTextureIcon.bind(An.atlasInterpolationIcon,De.CLAMP_TO_EDGE)),An.isSDF){const On=An.uniformValues;An.hasHalo&&(On.u_is_halo=1,qc(An.buffers,hn.segments,p,O,An.program,Ut,Ae,he,On,hn.terrainData)),On.u_is_halo=0}qc(An.buffers,hn.segments,p,O,An.program,Ut,Ae,he,An.uniformValues,hn.terrainData)}}function qc(O,u,p,C,M,I,L,j,G,te){const Ae=C.context;M.draw(Ae,Ae.gl.TRIANGLES,I,L,j,So.disabled,G,te,p.id,O.layoutVertexBuffer,O.indexBuffer,u,p.paint,C.transform.zoom,O.programConfigurations.get(p.id),O.dynamicLayoutVertexBuffer,O.opacityVertexBuffer)}function Mf(O,u,p,C,M){if(!p||!C||!C.imageAtlas)return;const I=C.imageAtlas.patternPositions;let L=I[p.to.toString()],j=I[p.from.toString()];if(!L&&j&&(L=j),!j&&L&&(j=L),!L||!j){const G=M.getPaintProperty(u);L=I[G],j=I[G]}L&&j&&O.setConstantPatternPositions(L,j)}function wl(O,u,p,C,M,I,L){const j=O.context.gl,G="fill-pattern",te=p.paint.get(G),Ae=te&&te.constantOr(1),he=p.getCrossfadeParameters();let Me,De,je,Qe,Le;L?(De=Ae&&!p.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",Me=j.LINES):(De=Ae?"fillPattern":"fill",Me=j.TRIANGLES);const ft=te.constantOr(null);for(const Bt of C){const qe=u.getTile(Bt);if(Ae&&!qe.patternsLoaded())continue;const _t=qe.getBucket(p);if(!_t)continue;const Ut=_t.programConfigurations.get(p.id),Tt=O.useProgram(De,Ut),en=O.style.map.terrain&&O.style.map.terrain.getTerrainData(Bt);Ae&&(O.context.activeTexture.set(j.TEXTURE0),qe.imageAtlasTexture.bind(j.LINEAR,j.CLAMP_TO_EDGE),Ut.updatePaintBuffers(he)),Mf(Ut,G,ft,qe,p);const hn=en?Bt:null,An=O.translatePosMatrix(hn?hn.posMatrix:Bt.posMatrix,qe,p.paint.get("fill-translate"),p.paint.get("fill-translate-anchor"));if(L){Qe=_t.indexBuffer2,Le=_t.segments2;const On=[j.drawingBufferWidth,j.drawingBufferHeight];je=De==="fillOutlinePattern"&&Ae?bl(An,O,he,qe,On):xu(An,On)}else Qe=_t.indexBuffer,Le=_t.segments,je=Ae?ll(An,O,he,qe):$a(An);Tt.draw(O.context,Me,M,O.stencilModeForClipping(Bt),I,So.disabled,je,en,p.id,_t.layoutVertexBuffer,Qe,Le,p.paint,O.transform.zoom,Ut)}}function Ju(O,u,p,C,M,I,L){const j=O.context,G=j.gl,te="fill-extrusion-pattern",Ae=p.paint.get(te),he=Ae.constantOr(1),Me=p.getCrossfadeParameters(),De=p.paint.get("fill-extrusion-opacity"),je=Ae.constantOr(null);for(const Qe of C){const Le=u.getTile(Qe),ft=Le.getBucket(p);if(!ft)continue;const Bt=O.style.map.terrain&&O.style.map.terrain.getTerrainData(Qe),qe=ft.programConfigurations.get(p.id),_t=O.useProgram(he?"fillExtrusionPattern":"fillExtrusion",qe);he&&(O.context.activeTexture.set(G.TEXTURE0),Le.imageAtlasTexture.bind(G.LINEAR,G.CLAMP_TO_EDGE),qe.updatePaintBuffers(Me)),Mf(qe,te,je,Le,p);const Ut=O.translatePosMatrix(Qe.posMatrix,Le,p.paint.get("fill-extrusion-translate"),p.paint.get("fill-extrusion-translate-anchor")),Tt=p.paint.get("fill-extrusion-vertical-gradient"),en=he?va(Ut,O,Tt,De,Qe,Me,Le):Vs(Ut,O,Tt,De);_t.draw(j,j.gl.TRIANGLES,M,I,L,So.backCCW,en,Bt,p.id,ft.layoutVertexBuffer,ft.indexBuffer,ft.segments,p.paint,O.transform.zoom,qe,O.style.map.terrain&&ft.centroidVertexBuffer)}}function bh(O,u,p,C,M,I,L){const j=O.context,G=j.gl,te=p.fbo;if(!te)return;const Ae=O.useProgram("hillshade"),he=O.style.map.terrain&&O.style.map.terrain.getTerrainData(u);j.activeTexture.set(G.TEXTURE0),G.bindTexture(G.TEXTURE_2D,te.colorAttachment.get()),Ae.draw(j,G.TRIANGLES,M,I,L,So.disabled,((Me,De,je,Qe)=>{const Le=je.paint.get("hillshade-shadow-color"),ft=je.paint.get("hillshade-highlight-color"),Bt=je.paint.get("hillshade-accent-color");let qe=je.paint.get("hillshade-illumination-direction")*(Math.PI/180);je.paint.get("hillshade-illumination-anchor")==="viewport"&&(qe-=Me.transform.angle);const _t=!Me.options.moving;return{u_matrix:Qe?Qe.posMatrix:Me.transform.calculatePosMatrix(De.tileID.toUnwrapped(),_t),u_image:0,u_latrange:Ya(0,De.tileID),u_light:[je.paint.get("hillshade-exaggeration"),qe],u_shadow:Le,u_highlight:ft,u_accent:Bt}})(O,p,C,he?u:null),he,C.id,O.rasterBoundsBuffer,O.quadTriangleIndexBuffer,O.rasterBoundsSegments)}function eA(O,u,p,C,M,I){const L=O.context,j=L.gl,G=u.dem;if(G&&G.data){const te=G.dim,Ae=G.stride,he=G.getPixels();if(L.activeTexture.set(j.TEXTURE1),L.pixelStoreUnpackPremultiplyAlpha.set(!1),u.demTexture=u.demTexture||O.getTileTexture(Ae),u.demTexture){const De=u.demTexture;De.update(he,{premultiply:!1}),De.bind(j.NEAREST,j.CLAMP_TO_EDGE)}else u.demTexture=new ct(L,he,j.RGBA,{premultiply:!1}),u.demTexture.bind(j.NEAREST,j.CLAMP_TO_EDGE);L.activeTexture.set(j.TEXTURE0);let Me=u.fbo;if(!Me){const De=new ct(L,{width:te,height:te,data:null},j.RGBA);De.bind(j.LINEAR,j.CLAMP_TO_EDGE),Me=u.fbo=L.createFramebuffer(te,te,!0,!1),Me.colorAttachment.set(De.texture)}L.bindFramebuffer.set(Me.framebuffer),L.viewport.set([0,0,te,te]),O.useProgram("hillshadePrepare").draw(L,j.TRIANGLES,C,M,I,So.disabled,((De,je)=>{const Qe=je.stride,Le=a.F();return a.aN(Le,0,a.W,-a.W,0,0,1),a.H(Le,Le,[0,-a.W,0]),{u_matrix:Le,u_image:1,u_dimension:[Qe,Qe],u_zoom:De.overscaledZ,u_unpack:je.getUnpackVector()}})(u.tileID,G),null,p.id,O.rasterBoundsBuffer,O.quadTriangleIndexBuffer,O.rasterBoundsSegments),u.needsHillshadePrepare=!1}}function xh(O,u,p,C,M,I){const L=C.paint.get("raster-fade-duration");if(!I&&L>0){const j=k.now(),G=(j-O.timeAdded)/L,te=u?(j-u.timeAdded)/L:-1,Ae=p.getSource(),he=M.coveringZoomLevel({tileSize:Ae.tileSize,roundZoom:Ae.roundZoom}),Me=!u||Math.abs(u.tileID.overscaledZ-he)>Math.abs(O.tileID.overscaledZ-he),De=Me&&O.refreshedUponExpiration?1:a.ac(Me?G:1-te,0,1);return O.refreshedUponExpiration&&G>=1&&(O.refreshedUponExpiration=!1),u?{opacity:1,mix:1-De}:{opacity:De,mix:0}}return{opacity:1,mix:0}}const kp=new a.aO(1,0,0,1),Pd=new a.aO(0,1,0,1),rc=new a.aO(0,0,1,1),Hs=new a.aO(1,0,1,1),Ml=new a.aO(0,1,1,1);function wh(O,u,p,C){Bu(O,0,u+p/2,O.transform.width,p,C)}function ra(O,u,p,C){Bu(O,u-p/2,0,p,O.transform.height,C)}function Bu(O,u,p,C,M,I){const L=O.context,j=L.gl;j.enable(j.SCISSOR_TEST),j.scissor(u*O.pixelRatio,p*O.pixelRatio,C*O.pixelRatio,M*O.pixelRatio),L.clear({color:I}),j.disable(j.SCISSOR_TEST)}function bs(O,u,p){const C=O.context,M=C.gl,I=p.posMatrix,L=O.useProgram("debug"),j=zi.disabled,G=Lo.disabled,te=O.colorModeForRenderPass(),Ae="$debug",he=O.style.map.terrain&&O.style.map.terrain.getTerrainData(p);C.activeTexture.set(M.TEXTURE0);const Me=u.getTileByID(p.key).latestRawTileData,De=Math.floor((Me&&Me.byteLength||0)/1024),je=u.getTile(p).tileSize,Qe=512/Math.min(je,512)*(p.overscaledZ/O.transform.zoom)*.5;let Le=p.canonical.toString();p.overscaledZ!==p.canonical.z&&(Le+=` => ${p.overscaledZ}`),function(ft,Bt){ft.initDebugOverlayCanvas();const qe=ft.debugOverlayCanvas,_t=ft.context.gl,Ut=ft.debugOverlayCanvas.getContext("2d");Ut.clearRect(0,0,qe.width,qe.height),Ut.shadowColor="white",Ut.shadowBlur=2,Ut.lineWidth=1.5,Ut.strokeStyle="white",Ut.textBaseline="top",Ut.font="bold 36px Open Sans, sans-serif",Ut.fillText(Bt,5,5),Ut.strokeText(Bt,5,5),ft.debugOverlayTexture.update(qe),ft.debugOverlayTexture.bind(_t.LINEAR,_t.CLAMP_TO_EDGE)}(O,`${Le} ${De}kB`),L.draw(C,M.TRIANGLES,j,G,Ro.alphaBlended,So.disabled,Hu(I,a.aO.transparent,Qe),null,Ae,O.debugBuffer,O.quadTriangleIndexBuffer,O.debugSegments),L.draw(C,M.LINE_STRIP,j,G,te,So.disabled,Hu(I,a.aO.red),he,Ae,O.debugBuffer,O.tileBorderIndexBuffer,O.debugSegments)}function ul(O,u,p){const C=O.context,M=C.gl,I=O.colorModeForRenderPass(),L=new zi(M.LEQUAL,zi.ReadWrite,O.depthRangeFor3D),j=O.useProgram("terrain"),G=u.getTerrainMesh();C.bindFramebuffer.set(null),C.viewport.set([0,0,O.width,O.height]);for(const te of p){const Ae=O.renderToTexture.getTexture(te),he=u.getTerrainData(te.tileID);C.activeTexture.set(M.TEXTURE0),M.bindTexture(M.TEXTURE_2D,Ae.texture);const Me={u_matrix:O.transform.calculatePosMatrix(te.tileID.toUnwrapped()),u_texture:0,u_ele_delta:u.getMeshFrameDelta(O.transform.zoom)};j.draw(C,M.TRIANGLES,L,Lo.disabled,I,So.backCCW,Me,he,"terrain",G.vertexBuffer,G.indexBuffer,G.segments)}}class Fd{constructor(u,p){this.context=new _h(u),this.transform=p,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:a.F(),renderTime:0},this.setup(),this.numSublayers=Et.maxUnderzooming+Et.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new En}resize(u,p,C){if(this.width=Math.floor(u*C),this.height=Math.floor(p*C),this.pixelRatio=C,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const M of this.style._order)this.style._layers[M].resize()}setup(){const u=this.context,p=new a.aV;p.emplaceBack(0,0),p.emplaceBack(a.W,0),p.emplaceBack(0,a.W),p.emplaceBack(a.W,a.W),this.tileExtentBuffer=u.createVertexBuffer(p,po.members),this.tileExtentSegments=a.$.simpleSegment(0,0,4,2);const C=new a.aV;C.emplaceBack(0,0),C.emplaceBack(a.W,0),C.emplaceBack(0,a.W),C.emplaceBack(a.W,a.W),this.debugBuffer=u.createVertexBuffer(C,po.members),this.debugSegments=a.$.simpleSegment(0,0,4,5);const M=new a.Z;M.emplaceBack(0,0,0,0),M.emplaceBack(a.W,0,a.W,0),M.emplaceBack(0,a.W,0,a.W),M.emplaceBack(a.W,a.W,a.W,a.W),this.rasterBoundsBuffer=u.createVertexBuffer(M,Sn.members),this.rasterBoundsSegments=a.$.simpleSegment(0,0,4,2);const I=new a.aV;I.emplaceBack(0,0),I.emplaceBack(1,0),I.emplaceBack(0,1),I.emplaceBack(1,1),this.viewportBuffer=u.createVertexBuffer(I,po.members),this.viewportSegments=a.$.simpleSegment(0,0,4,2);const L=new a.aW;L.emplaceBack(0),L.emplaceBack(1),L.emplaceBack(3),L.emplaceBack(2),L.emplaceBack(0),this.tileBorderIndexBuffer=u.createIndexBuffer(L);const j=new a.aX;j.emplaceBack(0,1,2),j.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=u.createIndexBuffer(j);const G=this.context.gl;this.stencilClearMode=new Lo({func:G.ALWAYS,mask:0},0,255,G.ZERO,G.ZERO,G.ZERO)}clearStencil(){const u=this.context,p=u.gl;this.nextStencilID=1,this.currentStencilSource=void 0;const C=a.F();a.aN(C,0,this.width,this.height,0,0,1),a.J(C,C,[p.drawingBufferWidth,p.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(u,p.TRIANGLES,zi.disabled,this.stencilClearMode,Ro.disabled,So.disabled,ZA(C),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(u,p){if(this.currentStencilSource===u.source||!u.isTileClipped()||!p||!p.length)return;this.currentStencilSource=u.source;const C=this.context,M=C.gl;this.nextStencilID+p.length>256&&this.clearStencil(),C.setColorMode(Ro.disabled),C.setDepthMode(zi.disabled);const I=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const L of p){const j=this._tileClippingMaskIDs[L.key]=this.nextStencilID++,G=this.style.map.terrain&&this.style.map.terrain.getTerrainData(L);I.draw(C,M.TRIANGLES,zi.disabled,new Lo({func:M.ALWAYS,mask:0},j,255,M.KEEP,M.KEEP,M.REPLACE),Ro.disabled,So.disabled,ZA(L.posMatrix),G,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const u=this.nextStencilID++,p=this.context.gl;return new Lo({func:p.NOTEQUAL,mask:255},u,255,p.KEEP,p.KEEP,p.REPLACE)}stencilModeForClipping(u){const p=this.context.gl;return new Lo({func:p.EQUAL,mask:255},this._tileClippingMaskIDs[u.key],0,p.KEEP,p.KEEP,p.REPLACE)}stencilConfigForOverlap(u){const p=this.context.gl,C=u.sort((L,j)=>j.overscaledZ-L.overscaledZ),M=C[C.length-1].overscaledZ,I=C[0].overscaledZ-M+1;if(I>1){this.currentStencilSource=void 0,this.nextStencilID+I>256&&this.clearStencil();const L={};for(let j=0;j=0;this.currentLayer--){const G=this.style._layers[C[this.currentLayer]],te=M[G.source],Ae=I[G.source];this._renderTileClippingMasks(G,Ae),this.renderLayer(this,te,G,Ae)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayerLe.source&&!Le.isHidden(Ae)?[te.sourceCaches[Le.source]]:[]),De=Me.filter(Le=>Le.getSource().type==="vector"),je=Me.filter(Le=>Le.getSource().type!=="vector"),Qe=Le=>{(!he||he.getSource().maxzoomQe(Le)),he||je.forEach(Le=>Qe(Le)),he}(this.style,this.transform.zoom);G&&function(te,Ae,he){for(let Me=0;MeDe.style.map.terrain.getElevation(Tt,yr,Qn):null)}}}(G,I,j,L,j.layout.get("text-rotation-alignment"),j.layout.get("text-pitch-alignment"),te),j.paint.get("icon-opacity").constantOr(1)!==0&&Xu(I,L,j,G,!1,j.paint.get("icon-translate"),j.paint.get("icon-translate-anchor"),j.layout.get("icon-rotation-alignment"),j.layout.get("icon-pitch-alignment"),j.layout.get("icon-keep-upright"),Ae,he),j.paint.get("text-opacity").constantOr(1)!==0&&Xu(I,L,j,G,!0,j.paint.get("text-translate"),j.paint.get("text-translate-anchor"),j.layout.get("text-rotation-alignment"),j.layout.get("text-pitch-alignment"),j.layout.get("text-keep-upright"),Ae,he),L.map.showCollisionBoxes&&(nc(I,L,j,G,j.paint.get("text-translate"),j.paint.get("text-translate-anchor"),!0),nc(I,L,j,G,j.paint.get("icon-translate"),j.paint.get("icon-translate-anchor"),!1))})(u,p,C,M,this.style.placement.variableOffsets);break;case"circle":(function(I,L,j,G){if(I.renderPass!=="translucent")return;const te=j.paint.get("circle-opacity"),Ae=j.paint.get("circle-stroke-width"),he=j.paint.get("circle-stroke-opacity"),Me=!j.layout.get("circle-sort-key").isConstant();if(te.constantOr(1)===0&&(Ae.constantOr(1)===0||he.constantOr(1)===0))return;const De=I.context,je=De.gl,Qe=I.depthModeForSublayer(0,zi.ReadOnly),Le=Lo.disabled,ft=I.colorModeForRenderPass(),Bt=[];for(let qe=0;qeqe.sortKey-_t.sortKey);for(const qe of Bt){const{programConfiguration:_t,program:Ut,layoutVertexBuffer:Tt,indexBuffer:en,uniformValues:hn,terrainData:An}=qe.state;Ut.draw(De,je.TRIANGLES,Qe,Le,ft,So.disabled,hn,An,j.id,Tt,en,qe.segments,j.paint,I.transform.zoom,_t)}})(u,p,C,M);break;case"heatmap":(function(I,L,j,G){if(j.paint.get("heatmap-opacity")!==0)if(I.renderPass==="offscreen"){const te=I.context,Ae=te.gl,he=Lo.disabled,Me=new Ro([Ae.ONE,Ae.ONE],a.aO.transparent,[!0,!0,!0,!0]);(function(De,je,Qe){const Le=De.gl;De.activeTexture.set(Le.TEXTURE1),De.viewport.set([0,0,je.width/4,je.height/4]);let ft=Qe.heatmapFbo;if(ft)Le.bindTexture(Le.TEXTURE_2D,ft.colorAttachment.get()),De.bindFramebuffer.set(ft.framebuffer);else{const Bt=Le.createTexture();Le.bindTexture(Le.TEXTURE_2D,Bt),Le.texParameteri(Le.TEXTURE_2D,Le.TEXTURE_WRAP_S,Le.CLAMP_TO_EDGE),Le.texParameteri(Le.TEXTURE_2D,Le.TEXTURE_WRAP_T,Le.CLAMP_TO_EDGE),Le.texParameteri(Le.TEXTURE_2D,Le.TEXTURE_MIN_FILTER,Le.LINEAR),Le.texParameteri(Le.TEXTURE_2D,Le.TEXTURE_MAG_FILTER,Le.LINEAR),ft=Qe.heatmapFbo=De.createFramebuffer(je.width/4,je.height/4,!1,!1),function(qe,_t,Ut,Tt){var en,hn;const An=qe.gl,On=(en=qe.HALF_FLOAT)!==null&&en!==void 0?en:An.UNSIGNED_BYTE,lr=(hn=qe.RGBA16F)!==null&&hn!==void 0?hn:An.RGBA;An.texImage2D(An.TEXTURE_2D,0,lr,_t.width/4,_t.height/4,0,An.RGBA,On,null),Tt.colorAttachment.set(Ut)}(De,je,Bt,ft)}})(te,I,j),te.clear({color:a.aO.transparent});for(let De=0;De{const qe=a.F();a.aN(qe,0,Qe.width,Qe.height,0,0,1);const _t=Qe.context.gl;return{u_matrix:qe,u_world:[_t.drawingBufferWidth,_t.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:Le.paint.get("heatmap-opacity")}})(te,Ae),null,Ae.id,te.viewportBuffer,te.quadTriangleIndexBuffer,te.viewportSegments,Ae.paint,te.transform.zoom)}(I,j))})(u,p,C,M);break;case"line":(function(I,L,j,G){if(I.renderPass!=="translucent")return;const te=j.paint.get("line-opacity"),Ae=j.paint.get("line-width");if(te.constantOr(1)===0||Ae.constantOr(1)===0)return;const he=I.depthModeForSublayer(0,zi.ReadOnly),Me=I.colorModeForRenderPass(),De=j.paint.get("line-dasharray"),je=j.paint.get("line-pattern"),Qe=je.constantOr(1),Le=j.paint.get("line-gradient"),ft=j.getCrossfadeParameters(),Bt=Qe?"linePattern":De?"lineSDF":Le?"lineGradient":"line",qe=I.context,_t=qe.gl;let Ut=!0;for(const Tt of G){const en=L.getTile(Tt);if(Qe&&!en.patternsLoaded())continue;const hn=en.getBucket(j);if(!hn)continue;const An=hn.programConfigurations.get(j.id),On=I.context.program.get(),lr=I.useProgram(Bt,An),xr=Ut||lr.program!==On,Tn=I.style.map.terrain&&I.style.map.terrain.getTerrainData(Tt),yr=je.constantOr(null);if(yr&&en.imageAtlas){const pi=en.imageAtlas,ii=pi.patternPositions[yr.to.toString()],si=pi.patternPositions[yr.from.toString()];ii&&si&&An.setConstantPatternPositions(ii,si)}const Qn=Tn?Tt:null,Ho=Qe?Zu(I,en,j,ft,Qn):De?Ds(I,en,j,De,ft,Qn):Le?bA(I,en,j,hn.lineClipsArray.length,Qn):vs(I,en,j,Qn);if(Qe)qe.activeTexture.set(_t.TEXTURE0),en.imageAtlasTexture.bind(_t.LINEAR,_t.CLAMP_TO_EDGE),An.updatePaintBuffers(ft);else if(De&&(xr||I.lineAtlas.dirty))qe.activeTexture.set(_t.TEXTURE0),I.lineAtlas.bind(qe);else if(Le){const pi=hn.gradients[j.id];let ii=pi.texture;if(j.gradientVersion!==pi.version){let si=256;if(j.stepInterpolant){const yo=L.getSource().maxzoom,vo=Tt.canonical.z===yo?Math.ceil(1<0?p.pop():null}isPatternMissing(u){if(!u)return!1;if(!u.from||!u.to)return!0;const p=this.imageManager.getPattern(u.from.toString()),C=this.imageManager.getPattern(u.to.toString());return!p||!C}useProgram(u,p){this.cache=this.cache||{};const C=u+(p?p.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[C]||(this.cache[C]=new ys(this.context,br[u],p,mo[u],this._showOverdrawInspector,this.style.map.terrain)),this.cache[C]}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 u=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(u.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new ct(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:u,drawingBufferHeight:p}=this.context.gl;return this.width!==u||this.height!==p}}class Dd{constructor(u,p){this.points=u,this.planes=p}static fromInvProjectionMatrix(u,p,C){const M=Math.pow(2,C),I=[[-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(j=>{const G=1/(j=a.af([],j,u))[3]/p*M;return a.a_(j,j,[G,G,1/j[3],G])}),L=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(j=>{const G=function(Me,De){var je=De[0],Qe=De[1],Le=De[2],ft=je*je+Qe*Qe+Le*Le;return ft>0&&(ft=1/Math.sqrt(ft)),Me[0]=De[0]*ft,Me[1]=De[1]*ft,Me[2]=De[2]*ft,Me}([],function(Me,De,je){var Qe=De[0],Le=De[1],ft=De[2],Bt=je[0],qe=je[1],_t=je[2];return Me[0]=Le*_t-ft*qe,Me[1]=ft*Bt-Qe*_t,Me[2]=Qe*qe-Le*Bt,Me}([],Re([],I[j[0]],I[j[1]]),Re([],I[j[2]],I[j[1]]))),te=-((Ae=G)[0]*(he=I[j[1]])[0]+Ae[1]*he[1]+Ae[2]*he[2]);var Ae,he;return G.concat(te)});return new Dd(I,L)}}class Sl{constructor(u,p){this.min=u,this.max=p,this.center=function(C,M,I){return C[0]=.5*M[0],C[1]=.5*M[1],C[2]=.5*M[2],C}([],function(C,M,I){return C[0]=M[0]+I[0],C[1]=M[1]+I[1],C[2]=M[2]+I[2],C}([],this.min,this.max))}quadrant(u){const p=[u%2==0,u<2],C=ue(this.min),M=ue(this.max);for(let I=0;I=0&&L++;if(L===0)return 0;L!==p.length&&(C=!1)}if(C)return 2;for(let M=0;M<3;M++){let I=Number.MAX_VALUE,L=-Number.MAX_VALUE;for(let j=0;jthis.max[M]-this.min[M])return 0}return 1}}class xA{constructor(u=0,p=0,C=0,M=0){if(isNaN(u)||u<0||isNaN(p)||p<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=u,this.bottom=p,this.left=C,this.right=M}interpolate(u,p,C){return p.top!=null&&u.top!=null&&(this.top=a.z.number(u.top,p.top,C)),p.bottom!=null&&u.bottom!=null&&(this.bottom=a.z.number(u.bottom,p.bottom,C)),p.left!=null&&u.left!=null&&(this.left=a.z.number(u.left,p.left,C)),p.right!=null&&u.right!=null&&(this.right=a.z.number(u.right,p.right,C)),this}getCenter(u,p){const C=a.ac((this.left+u-this.right)/2,0,u),M=a.ac((this.top+p-this.bottom)/2,0,p);return new a.P(C,M)}equals(u){return this.top===u.top&&this.bottom===u.bottom&&this.left===u.left&&this.right===u.right}clone(){return new xA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class Vc{constructor(u,p,C,M,I){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=I===void 0||!!I,this._minZoom=u||0,this._maxZoom=p||22,this._minPitch=C??0,this._maxPitch=M??60,this.setMaxBounds(),this.width=0,this.height=0,this._center=new a.M(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new xA,this._posMatrixCache={},this._alignedPosMatrixCache={},this.minElevationForCurrentTile=0}clone(){const u=new Vc(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return u.apply(this),u}apply(u){this.tileSize=u.tileSize,this.latRange=u.latRange,this.width=u.width,this.height=u.height,this._center=u._center,this._elevation=u._elevation,this.minElevationForCurrentTile=u.minElevationForCurrentTile,this.zoom=u.zoom,this.angle=u.angle,this._fov=u._fov,this._pitch=u._pitch,this._unmodified=u._unmodified,this._edgeInsets=u._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(u){this._minZoom!==u&&(this._minZoom=u,this.zoom=Math.max(this.zoom,u))}get maxZoom(){return this._maxZoom}set maxZoom(u){this._maxZoom!==u&&(this._maxZoom=u,this.zoom=Math.min(this.zoom,u))}get minPitch(){return this._minPitch}set minPitch(u){this._minPitch!==u&&(this._minPitch=u,this.pitch=Math.max(this.pitch,u))}get maxPitch(){return this._maxPitch}set maxPitch(u){this._maxPitch!==u&&(this._maxPitch=u,this.pitch=Math.min(this.pitch,u))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(u){u===void 0?u=!0:u===null&&(u=!1),this._renderWorldCopies=u}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(u){const p=-a.b0(u,-180,180)*Math.PI/180;this.angle!==p&&(this._unmodified=!1,this.angle=p,this._calcMatrices(),this.rotationMatrix=function(){var C=new a.A(4);return a.A!=Float32Array&&(C[1]=0,C[2]=0),C[0]=1,C[3]=1,C}(),function(C,M,I){var L=M[0],j=M[1],G=M[2],te=M[3],Ae=Math.sin(I),he=Math.cos(I);C[0]=L*he+G*Ae,C[1]=j*he+te*Ae,C[2]=L*-Ae+G*he,C[3]=j*-Ae+te*he}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(u){const p=a.ac(u,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==p&&(this._unmodified=!1,this._pitch=p,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(u){u=Math.max(.01,Math.min(60,u)),this._fov!==u&&(this._unmodified=!1,this._fov=u/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(u){const p=Math.min(Math.max(u,this.minZoom),this.maxZoom);this._zoom!==p&&(this._unmodified=!1,this._zoom=p,this.tileZoom=Math.max(0,Math.floor(p)),this.scale=this.zoomScale(p),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(u){u.lat===this._center.lat&&u.lng===this._center.lng||(this._unmodified=!1,this._center=u,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(u){u!==this._elevation&&(this._elevation=u,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(u){this._edgeInsets.equals(u)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,u,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(u){return this._edgeInsets.equals(u)}interpolatePadding(u,p,C){this._unmodified=!1,this._edgeInsets.interpolate(u,p,C),this._constrain(),this._calcMatrices()}coveringZoomLevel(u){const p=(u.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/u.tileSize));return Math.max(0,p)}getVisibleUnwrappedCoordinates(u){const p=[new a.b1(0,u)];if(this._renderWorldCopies){const C=this.pointCoordinate(new a.P(0,0)),M=this.pointCoordinate(new a.P(this.width,0)),I=this.pointCoordinate(new a.P(this.width,this.height)),L=this.pointCoordinate(new a.P(0,this.height)),j=Math.floor(Math.min(C.x,M.x,I.x,L.x)),G=Math.floor(Math.max(C.x,M.x,I.x,L.x)),te=1;for(let Ae=j-te;Ae<=G+te;Ae++)Ae!==0&&p.push(new a.b1(Ae,u))}return p}coveringTiles(u){var p,C;let M=this.coveringZoomLevel(u);const I=M;if(u.minzoom!==void 0&&Mu.maxzoom&&(M=u.maxzoom);const L=this.pointCoordinate(this.getCameraPoint()),j=a.Y.fromLngLat(this.center),G=Math.pow(2,M),te=[G*L.x,G*L.y,0],Ae=[G*j.x,G*j.y,0],he=Dd.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,M);let Me=u.minzoom||0;!u.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(Me=M);const De=u.terrain?2/Math.min(this.tileSize,u.tileSize)*this.tileSize:3,je=qe=>({aabb:new Sl([qe*G,0,0],[(qe+1)*G,G,0]),zoom:0,x:0,y:0,wrap:qe,fullyVisible:!1}),Qe=[],Le=[],ft=M,Bt=u.reparseOverscaled?I:M;if(this._renderWorldCopies)for(let qe=1;qe<=3;qe++)Qe.push(je(-qe)),Qe.push(je(qe));for(Qe.push(je(0));Qe.length>0;){const qe=Qe.pop(),_t=qe.x,Ut=qe.y;let Tt=qe.fullyVisible;if(!Tt){const lr=qe.aabb.intersects(he);if(lr===0)continue;Tt=lr===2}const en=u.terrain?te:Ae,hn=qe.aabb.distanceX(en),An=qe.aabb.distanceY(en),On=Math.max(Math.abs(hn),Math.abs(An));if(qe.zoom===ft||On>De+(1<=Me){const lr=ft-qe.zoom,xr=te[0]-.5-(_t<>1),yr=qe.zoom+1;let Qn=qe.aabb.quadrant(lr);if(u.terrain){const Ho=new a.Q(yr,qe.wrap,yr,xr,Tn),pi=u.terrain.getMinMaxElevation(Ho),ii=(p=pi.minElevation)!==null&&p!==void 0?p:this.elevation,si=(C=pi.maxElevation)!==null&&C!==void 0?C:this.elevation;Qn=new Sl([Qn.min[0],Qn.min[1],ii],[Qn.max[0],Qn.max[1],si])}Qe.push({aabb:Qn,zoom:yr,x:xr,y:Tn,wrap:qe.wrap,fullyVisible:Tt})}}return Le.sort((qe,_t)=>qe.distanceSq-_t.distanceSq).map(qe=>qe.tileID)}resize(u,p){this.width=u,this.height=p,this.pixelsToGLUnits=[2/u,-2/p],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(u){return Math.pow(2,u)}scaleZoom(u){return Math.log(u)/Math.LN2}project(u){const p=a.ac(u.lat,-this.maxValidLatitude,this.maxValidLatitude);return new a.P(a.N(u.lng)*this.worldSize,a.O(p)*this.worldSize)}unproject(u){return new a.Y(u.x/this.worldSize,u.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(u){const p=this.pointLocation(this.centerPoint,u),C=u.getElevationForLngLatZoom(p,this.tileZoom);if(!(this.elevation-C))return;const M=this.getCameraPosition(),I=a.Y.fromLngLat(M.lngLat,M.altitude),L=a.Y.fromLngLat(p,C),j=I.x-L.x,G=I.y-L.y,te=I.z-L.z,Ae=Math.sqrt(j*j+G*G+te*te),he=this.scaleZoom(this.cameraToCenterDistance/Ae/this.tileSize);this._elevation=C,this._center=p,this.zoom=he}setLocationAtPoint(u,p){const C=this.pointCoordinate(p),M=this.pointCoordinate(this.centerPoint),I=this.locationCoordinate(u),L=new a.Y(I.x-(C.x-M.x),I.y-(C.y-M.y));this.center=this.coordinateLocation(L),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(u,p){return p?this.coordinatePoint(this.locationCoordinate(u),p.getElevationForLngLatZoom(u,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(u))}pointLocation(u,p){return this.coordinateLocation(this.pointCoordinate(u,p))}locationCoordinate(u){return a.Y.fromLngLat(u)}coordinateLocation(u){return u&&u.toLngLat()}pointCoordinate(u,p){if(p){const Me=p.pointCoordinate(u);if(Me!=null)return Me}const C=[u.x,u.y,0,1],M=[u.x,u.y,1,1];a.af(C,C,this.pixelMatrixInverse),a.af(M,M,this.pixelMatrixInverse);const I=C[3],L=M[3],j=C[1]/I,G=M[1]/L,te=C[2]/I,Ae=M[2]/L,he=te===Ae?0:(0-te)/(Ae-te);return new a.Y(a.z.number(C[0]/I,M[0]/L,he)/this.worldSize,a.z.number(j,G,he)/this.worldSize)}coordinatePoint(u,p=0,C=this.pixelMatrix){const M=[u.x*this.worldSize,u.y*this.worldSize,p,1];return a.af(M,M,C),new a.P(M[0]/M[3],M[1]/M[3])}getBounds(){const u=Math.max(0,this.height/2-this.getHorizon());return new Kt().extend(this.pointLocation(new a.P(0,u))).extend(this.pointLocation(new a.P(this.width,u))).extend(this.pointLocation(new a.P(this.width,this.height))).extend(this.pointLocation(new a.P(0,this.height)))}getMaxBounds(){return this.latRange&&this.latRange.length===2&&this.lngRange&&this.lngRange.length===2?new Kt([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(u){u?(this.lngRange=[u.getWest(),u.getEast()],this.latRange=[u.getSouth(),u.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(u,p=!1){const C=u.key,M=p?this._alignedPosMatrixCache:this._posMatrixCache;if(M[C])return M[C];const I=u.canonical,L=this.worldSize/this.zoomScale(I.z),j=I.x+Math.pow(2,I.z)*u.wrap,G=a.an(new Float64Array(16));return a.H(G,G,[j*L,I.y*L,0]),a.J(G,G,[L/a.W,L/a.W,1]),a.K(G,p?this.alignedProjMatrix:this.projMatrix,G),M[C]=new Float32Array(G),M[C]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let u,p,C,M,I=-90,L=90,j=-180,G=180;const te=this.size,Ae=this._unmodified;if(this.latRange){const De=this.latRange;I=a.O(De[1])*this.worldSize,L=a.O(De[0])*this.worldSize,u=L-IL&&(M=L-je)}if(this.lngRange){const De=(j+G)/2,je=a.b0(he.x,De-this.worldSize/2,De+this.worldSize/2),Qe=te.x/2;je-QeG&&(C=G-Qe)}C===void 0&&M===void 0||(this.center=this.unproject(new a.P(C!==void 0?C:he.x,M!==void 0?M:he.y)).wrap()),this._unmodified=Ae,this._constraining=!1}_calcMatrices(){if(!this.height)return;const u=this.centerOffset,p=this.point.x,C=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=a.b2(1,this.center.lat)*this.worldSize;let M=a.an(new Float64Array(16));a.J(M,M,[this.width/2,-this.height/2,1]),a.H(M,M,[1,-1,0]),this.labelPlaneMatrix=M,M=a.an(new Float64Array(16)),a.J(M,M,[1,-1,1]),a.H(M,M,[-1,-1,0]),a.J(M,M,[2/this.width,2/this.height,1]),this.glCoordMatrix=M;const I=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),L=Math.min(this.elevation,this.minElevationForCurrentTile),j=I-L*this._pixelPerMeter/Math.cos(this._pitch),G=L<0?j:I,te=Math.PI/2+this._pitch,Ae=this._fov*(.5+u.y/this.height),he=Math.sin(Ae)*G/Math.sin(a.ac(Math.PI-te-Ae,.01,Math.PI-.01)),Me=this.getHorizon(),De=2*Math.atan(Me/this.cameraToCenterDistance)*(.5+u.y/(2*Me)),je=Math.sin(De)*G/Math.sin(a.ac(Math.PI-te-De,.01,Math.PI-.01)),Qe=Math.min(he,je),Le=1.01*(Math.cos(Math.PI/2-this._pitch)*Qe+G),ft=this.height/50;M=new Float64Array(16),a.b3(M,this._fov,this.width/this.height,ft,Le),M[8]=2*-u.x/this.width,M[9]=2*u.y/this.height,a.J(M,M,[1,-1,1]),a.H(M,M,[0,0,-this.cameraToCenterDistance]),a.b4(M,M,this._pitch),a.ad(M,M,this.angle),a.H(M,M,[-p,-C,0]),this.mercatorMatrix=a.J([],M,[this.worldSize,this.worldSize,this.worldSize]),a.J(M,M,[1,1,this._pixelPerMeter]),this.pixelMatrix=a.K(new Float64Array(16),this.labelPlaneMatrix,M),a.H(M,M,[0,0,-this.elevation]),this.projMatrix=M,this.invProjMatrix=a.ar([],M),this.pixelMatrix3D=a.K(new Float64Array(16),this.labelPlaneMatrix,M);const Bt=this.width%2/2,qe=this.height%2/2,_t=Math.cos(this.angle),Ut=Math.sin(this.angle),Tt=p-Math.round(p)+_t*Bt+Ut*qe,en=C-Math.round(C)+_t*qe+Ut*Bt,hn=new Float64Array(M);if(a.H(hn,hn,[Tt>.5?Tt-1:Tt,en>.5?en-1:en,0]),this.alignedProjMatrix=hn,M=a.ar(new Float64Array(16),this.pixelMatrix),!M)throw new Error("failed to invert matrix");this.pixelMatrixInverse=M,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;const u=this.pointCoordinate(new a.P(0,0)),p=[u.x*this.worldSize,u.y*this.worldSize,0,1];return a.af(p,p,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){const u=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.P(0,u))}getCameraQueryGeometry(u){const p=this.getCameraPoint();if(u.length===1)return[u[0],p];{let C=p.x,M=p.y,I=p.x,L=p.y;for(const j of u)C=Math.min(C,j.x),M=Math.min(M,j.y),I=Math.max(I,j.x),L=Math.max(L,j.y);return[new a.P(C,M),new a.P(I,M),new a.P(I,L),new a.P(C,L),new a.P(C,M)]}}lngLatToCameraDepth(u,p){const C=this.locationCoordinate(u),M=[C.x*this.worldSize,C.y*this.worldSize,p,1];return a.af(M,M,this.projMatrix),M[2]/M[3]}}function Ud(O,u){let p,C=!1,M=null,I=null;const L=()=>{M=null,C&&(O.apply(I,p),M=setTimeout(L,u),C=!1)};return(...j)=>(C=!0,I=this,p=j,M||L(),M)}class ku{constructor(u){this._getCurrentHash=()=>{const p=window.location.hash.replace("#","");if(this._hashName){let C;return p.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return p.split("/")},this._onHashChange=()=>{const p=this._getCurrentHash();if(p.length>=3&&!p.some(C=>isNaN(C))){const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(p[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+p[2],+p[1]],zoom:+p[0],bearing:C,pitch:+(p[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{const p=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,p)}catch{}},this._updateHash=Ud(this._updateHashUnthrottled,300),this._hashName=u&&encodeURIComponent(u)}addTo(u){return this._map=u,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(u){const p=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),L=Math.round(p.lng*I)/I,j=Math.round(p.lat*I)/I,G=this._map.getBearing(),te=this._map.getPitch();let Ae="";if(Ae+=u?`/${L}/${j}/${C}`:`${C}/${j}/${L}`,(G||te)&&(Ae+="/"+Math.round(10*G)/10),te&&(Ae+=`/${Math.round(te)}`),this._hashName){const he=this._hashName;let Me=!1;const De=window.location.hash.slice(1).split("&").map(je=>{const Qe=je.split("=")[0];return Qe===he?(Me=!0,`${Qe}=${Ae}`):je}).filter(je=>je);return Me||De.push(`${he}=${Ae}`),`#${De.join("&")}`}return`#${Ae}`}}const xt={linearity:.3,easing:a.b5(0,0,.3,1)},sn=a.e({deceleration:2500,maxSpeed:1400},xt),Wt=a.e({deceleration:20,maxSpeed:1400},xt),or=a.e({deceleration:1e3,maxSpeed:360},xt),ri=a.e({deceleration:1e3,maxSpeed:90},xt);class to{constructor(u){this._map=u,this.clear()}clear(){this._inertiaBuffer=[]}record(u){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:k.now(),settings:u})}_drainInertiaBuffer(){const u=this._inertiaBuffer,p=k.now();for(;u.length>0&&p-u[0].time>160;)u.shift()}_onMoveEnd(u){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const p={zoom:0,bearing:0,pitch:0,pan:new a.P(0,0),pinchAround:void 0,around:void 0};for(const{settings:I}of this._inertiaBuffer)p.zoom+=I.zoomDelta||0,p.bearing+=I.bearingDelta||0,p.pitch+=I.pitchDelta||0,I.panDelta&&p.pan._add(I.panDelta),I.around&&(p.around=I.around),I.pinchAround&&(p.pinchAround=I.pinchAround);const C=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,M={};if(p.pan.mag()){const I=ho(p.pan.mag(),C,a.e({},sn,u||{}));M.offset=p.pan.mult(I.amount/p.pan.mag()),M.center=this._map.transform.center,ia(M,I)}if(p.zoom){const I=ho(p.zoom,C,Wt);M.zoom=this._map.transform.zoom+I.amount,ia(M,I)}if(p.bearing){const I=ho(p.bearing,C,or);M.bearing=this._map.transform.bearing+a.ac(I.amount,-179,179),ia(M,I)}if(p.pitch){const I=ho(p.pitch,C,ri);M.pitch=this._map.transform.pitch+I.amount,ia(M,I)}if(M.zoom||M.bearing){const I=p.pinchAround===void 0?p.around:p.pinchAround;M.around=I?this._map.unproject(I):this._map.getCenter()}return this.clear(),a.e(M,{noMoveStart:!0})}}function ia(O,u){(!O.duration||O.durationp.unproject(G)),j=I.reduce((G,te,Ae,he)=>G.add(te.div(he.length)),new a.P(0,0));super(u,{points:I,point:j,lngLats:L,lngLat:p.unproject(j),originalEvent:C}),this._defaultPrevented=!1}}class El extends a.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(u,p,C){super(u,{originalEvent:C}),this._defaultPrevented=!1}}class tA{constructor(u,p){this._map=u,this._clickTolerance=p.clickTolerance}reset(){delete this._mousedownPos}wheel(u){return this._firePreventable(new El(u.type,this._map,u))}mousedown(u,p){return this._mousedownPos=p,this._firePreventable(new xs(u.type,this._map,u))}mouseup(u){this._map.fire(new xs(u.type,this._map,u))}click(u,p){this._mousedownPos&&this._mousedownPos.dist(p)>=this._clickTolerance||this._map.fire(new xs(u.type,this._map,u))}dblclick(u){return this._firePreventable(new xs(u.type,this._map,u))}mouseover(u){this._map.fire(new xs(u.type,this._map,u))}mouseout(u){this._map.fire(new xs(u.type,this._map,u))}touchstart(u){return this._firePreventable(new Rd(u.type,this._map,u))}touchmove(u){this._map.fire(new Rd(u.type,this._map,u))}touchend(u){this._map.fire(new Rd(u.type,this._map,u))}touchcancel(u){this._map.fire(new Rd(u.type,this._map,u))}_firePreventable(u){if(this._map.fire(u),u.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class wA{constructor(u){this._map=u}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(u){this._map.fire(new xs(u.type,this._map,u))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new xs("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(u){this._delayContextMenu?this._contextMenuEvent=u:this._ignoreContextMenu||this._map.fire(new xs(u.type,this._map,u)),this._map.listens("contextmenu")&&u.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Jo{constructor(u){this._map=u}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(u){return this.transform.pointLocation(a.P.convert(u),this._map.terrain)}}class ls{constructor(u,p){this._map=u,this._tr=new Jo(u),this._el=u.getCanvasContainer(),this._container=u.getContainer(),this._clickTolerance=p.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(u,p){this.isEnabled()&&u.shiftKey&&u.button===0&&(B.disableDrag(),this._startPos=this._lastPos=p,this._active=!0)}mousemoveWindow(u,p){if(!this._active)return;const C=p;if(this._lastPos.equals(C)||!this._box&&C.dist(this._startPos)I.fitScreenCoordinates(C,M,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",u)}keydown(u){this._active&&u.keyCode===27&&(this.reset(),this._fireEvent("boxzoomcancel",u))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(B.remove(this._box),this._box=null),B.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(u,p){return this._map.fire(new a.k(u,{originalEvent:p}))}}function nA(O,u){if(O.length!==u.length)throw new Error(`The number of touches and points are not equal - touches ${O.length}, points ${u.length}`);const p={};for(let C=0;Cthis.numTouches)&&(this.aborted=!0),this.aborted||(this.startTime===void 0&&(this.startTime=u.timeStamp),C.length===this.numTouches&&(this.centroid=function(M){const I=new a.P(0,0);for(const L of M)I._add(L);return I.div(M.length)}(p),this.touches=nA(C,p)))}touchmove(u,p,C){if(this.aborted||!this.centroid)return;const M=nA(C,p);for(const I in this.touches){const L=M[I];(!L||L.dist(this.touches[I])>30)&&(this.aborted=!0)}}touchend(u,p,C){if((!this.centroid||u.timeStamp-this.startTime>500)&&(this.aborted=!0),C.length===0){const M=!this.aborted&&this.centroid;if(this.reset(),M)return M}}}class MA{constructor(u){this.singleTap=new Ei(u),this.numTaps=u.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(u,p,C){this.singleTap.touchstart(u,p,C)}touchmove(u,p,C){this.singleTap.touchmove(u,p,C)}touchend(u,p,C){const M=this.singleTap.touchend(u,p,C);if(M){const I=u.timeStamp-this.lastTime<500,L=!this.lastTap||this.lastTap.dist(M)<30;if(I&&L||this.reset(),this.count++,this.lastTime=u.timeStamp,this.lastTap=M,this.count===this.numTaps)return this.reset(),M}}}class Mh{constructor(u){this._tr=new Jo(u),this._zoomIn=new MA({numTouches:1,numTaps:2}),this._zoomOut=new MA({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(u,p,C){this._zoomIn.touchstart(u,p,C),this._zoomOut.touchstart(u,p,C)}touchmove(u,p,C){this._zoomIn.touchmove(u,p,C),this._zoomOut.touchmove(u,p,C)}touchend(u,p,C){const M=this._zoomIn.touchend(u,p,C),I=this._zoomOut.touchend(u,p,C),L=this._tr;return M?(this._active=!0,u.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:j=>j.easeTo({duration:300,zoom:L.zoom+1,around:L.unproject(M)},{originalEvent:u})}):I?(this._active=!0,u.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:j=>j.easeTo({duration:300,zoom:L.zoom-1,around:L.unproject(I)},{originalEvent:u})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Al{constructor(u){this._enabled=!!u.enable,this._moveStateManager=u.moveStateManager,this._clickTolerance=u.clickTolerance||1,this._moveFunction=u.move,this._activateOnStart=!!u.activateOnStart,u.assignEvents(this),this.reset()}reset(u){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(u)}_move(...u){const p=this._moveFunction(...u);if(p.bearingDelta||p.pitchDelta||p.around||p.panDelta)return this._active=!0,p}dragStart(u,p){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(u)&&(this._moveStateManager.startMove(u),this._lastPoint=p.length?p[0]:p,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(u,p){if(!this.isEnabled())return;const C=this._lastPoint;if(!C)return;if(u.preventDefault(),!this._moveStateManager.isValidMoveEvent(u))return void this.reset(u);const M=p.length?p[0]:p;return!this._moved&&M.dist(C){O.mousedown=O.dragStart,O.mousemoveWindow=O.dragMove,O.mouseup=O.dragEnd,O.contextmenu=function(u){u.preventDefault()}},jn=({enable:O,clickTolerance:u,bearingDegreesPerPixelMoved:p=.8})=>{const C=new us({checkCorrectEvent:M=>B.mouseButton(M)===0&&M.ctrlKey||B.mouseButton(M)===2});return new Al({clickTolerance:u,move:(M,I)=>({bearingDelta:(I.x-M.x)*p}),moveStateManager:C,enable:O,assignEvents:Fa})},Hc=({enable:O,clickTolerance:u,pitchDegreesPerPixelMoved:p=-.5})=>{const C=new us({checkCorrectEvent:M=>B.mouseButton(M)===0&&M.ctrlKey||B.mouseButton(M)===2});return new Al({clickTolerance:u,move:(M,I)=>({pitchDelta:(I.y-M.y)*p}),moveStateManager:C,enable:O,assignEvents:Fa})};class oc{constructor(u,p){this._clickTolerance=u.clickTolerance||1,this._map=p,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new a.P(0,0)}minTouchs(){return this._map.cooperativeGestures.isEnabled()?2:1}touchstart(u,p,C){return this._calculateTransform(u,p,C)}touchmove(u,p,C){if(this._active&&!(C.length0&&(this._active=!0);const M=nA(C,p),I=new a.P(0,0),L=new a.P(0,0);let j=0;for(const te in M){const Ae=M[te],he=this._touches[te];he&&(I._add(Ae),L._add(Ae.sub(he)),j++,M[te]=Ae)}if(this._touches=M,jMath.abs(O.x)}class lc extends cl{constructor(u){super(),this._currentTouchCount=0,this._map=u}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(u,p,C){super.touchstart(u,p,C),this._currentTouchCount=C.length}_start(u){this._lastPoints=u,Vl(u[0].sub(u[1]))&&(this._valid=!1)}_move(u,p,C){if(this._map.cooperativeGestures.isEnabled()&&this._currentTouchCount<3)return;const M=u[0].sub(this._lastPoints[0]),I=u[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(M,I,C.timeStamp),this._valid?(this._lastPoints=u,this._active=!0,{pitchDelta:(M.y+I.y)/2*-.5}):void 0}gestureBeginsVertically(u,p,C){if(this._valid!==void 0)return this._valid;const M=u.mag()>=2,I=p.mag()>=2;if(!M&&!I)return;if(!M||!I)return this._firstMove===void 0&&(this._firstMove=C),C-this._firstMove<100&&void 0;const L=u.y>0==p.y>0;return Vl(u)&&Vl(p)&&L}}const Sh={panStep:100,bearingStep:15,pitchStep:10};class Zc{constructor(u){this._tr=new Jo(u);const p=Sh;this._panStep=p.panStep,this._bearingStep=p.bearingStep,this._pitchStep=p.pitchStep,this._rotationDisabled=!1}reset(){this._active=!1}keydown(u){if(u.altKey||u.ctrlKey||u.metaKey)return;let p=0,C=0,M=0,I=0,L=0;switch(u.keyCode){case 61:case 107:case 171:case 187:p=1;break;case 189:case 109:case 173:p=-1;break;case 37:u.shiftKey?C=-1:(u.preventDefault(),I=-1);break;case 39:u.shiftKey?C=1:(u.preventDefault(),I=1);break;case 38:u.shiftKey?M=1:(u.preventDefault(),L=-1);break;case 40:u.shiftKey?M=-1:(u.preventDefault(),L=1);break;default:return}return this._rotationDisabled&&(C=0,M=0),{cameraAnimation:j=>{const G=this._tr;j.easeTo({duration:300,easeId:"keyboardHandler",easing:Eh,zoom:p?Math.round(G.zoom)+p*(u.shiftKey?2:1):G.zoom,bearing:G.bearing+C*this._bearingStep,pitch:G.pitch+M*this._pitchStep,offset:[-I*this._panStep,-L*this._panStep],center:G.center},{originalEvent:u})}}}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 Eh(O){return O*(2-O)}const Hl=4.000244140625;class go{constructor(u,p){this._onTimeout=C=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(C)},this._map=u,this._tr=new Jo(u),this._triggerRenderFrame=p,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(u){this._defaultZoomRate=u}setWheelZoomRate(u){this._wheelZoomRate=u}isEnabled(){return!!this._enabled}isActive(){return!!this._active||this._finishTimeout!==void 0}isZooming(){return!!this._zooming}enable(u){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!u&&u.around==="center")}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(u){if(!this.isEnabled()||this._map.cooperativeGestures.isEnabled()&&!u[this._map.cooperativeGestures._bypassKey])return;let p=u.deltaMode===WheelEvent.DOM_DELTA_LINE?40*u.deltaY:u.deltaY;const C=k.now(),M=C-(this._lastWheelEventTime||0);this._lastWheelEventTime=C,p!==0&&p%Hl==0?this._type="wheel":p!==0&&Math.abs(p)<4?this._type="trackpad":M>400?(this._type=null,this._lastValue=p,this._timeout=setTimeout(this._onTimeout,40,u)):this._type||(this._type=Math.abs(M*p)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,p+=this._lastValue)),u.shiftKey&&p&&(p/=4),this._type&&(this._lastWheelEvent=u,this._delta-=p,this._active||this._start(u)),u.preventDefault()}_start(u){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 p=B.mousePos(this._map.getCanvas(),u),C=this._tr;this._around=a.M.convert(this._aroundCenter?C.center:C.unproject(p)),this._aroundPoint=C.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const u=this._tr.transform;if(this._delta!==0){const j=this._type==="wheel"&&Math.abs(this._delta)>Hl?this._wheelZoomRate:this._defaultZoomRate;let G=2/(1+Math.exp(-Math.abs(this._delta*j)));this._delta<0&&G!==0&&(G=1/G);const te=typeof this._targetZoom=="number"?u.zoomScale(this._targetZoom):u.scale;this._targetZoom=Math.min(u.maxZoom,Math.max(u.minZoom,u.scaleZoom(te*G))),this._type==="wheel"&&(this._startZoom=u.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}const p=typeof this._targetZoom=="number"?this._targetZoom:u.zoom,C=this._startZoom,M=this._easing;let I,L=!1;if(this._type==="wheel"&&C&&M){const j=Math.min((k.now()-this._lastWheelEventTime)/200,1),G=M(j);I=a.z.number(C,p,G),j<1?this._frameId||(this._frameId=!0):L=!0}else I=p,L=!0;return this._active=!0,L&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!L,zoomDelta:I-u.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(u){let p=a.b6;if(this._prevEase){const C=this._prevEase,M=(k.now()-C.start)/C.duration,I=C.easing(M+.01)-C.easing(M),L=.27/Math.sqrt(I*I+1e-4)*.01,j=Math.sqrt(.0729-L*L);p=a.b5(L,j,.25,1)}return this._prevEase={start:k.now(),duration:u,easing:p},p}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class Xc{constructor(u,p){this._clickZoom=u,this._tapZoom=p}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 Ef{constructor(u){this._tr=new Jo(u),this.reset()}reset(){this._active=!1}dblclick(u,p){return u.preventDefault(),{cameraAnimation:C=>{C.easeTo({duration:300,zoom:this._tr.zoom+(u.shiftKey?-1:1),around:this._tr.unproject(p)},{originalEvent:u})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Of{constructor(){this._tap=new MA({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(u,p,C){if(!this._swipePoint)if(this._tapTime){const M=p[0],I=u.timeStamp-this._tapTime<500,L=this._tapPoint.dist(M)<30;I&&L?C.length>0&&(this._swipePoint=M,this._swipeTouch=C[0].identifier):this.reset()}else this._tap.touchstart(u,p,C)}touchmove(u,p,C){if(this._tapTime){if(this._swipePoint){if(C[0].identifier!==this._swipeTouch)return;const M=p[0],I=M.y-this._swipePoint.y;return this._swipePoint=M,u.preventDefault(),this._active=!0,{zoomDelta:I/128}}}else this._tap.touchmove(u,p,C)}touchend(u,p,C){if(this._tapTime)this._swipePoint&&C.length===0&&this.reset();else{const M=this._tap.touchend(u,p,C);M&&(this._tapTime=u.timeStamp,this._tapPoint=M)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Oh{constructor(u,p,C){this._el=u,this._mousePan=p,this._touchPan=C}enable(u){this._inertiaOptions=u||{},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 Bh{constructor(u,p,C){this._pitchWithRotate=u.pitchWithRotate,this._mouseRotate=p,this._mousePitch=C}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 oa{constructor(u,p,C,M){this._el=u,this._touchZoom=p,this._touchRotate=C,this._tapDragZoom=M,this._rotationDisabled=!1,this._enabled=!0}enable(u){this._touchZoom.enable(u),this._rotationDisabled||this._touchRotate.enable(u),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()}}class Eo{constructor(u,p={}){this._bypassKey=navigator.userAgent.indexOf("Mac")!==-1?"metaKey":"ctrlKey",this._map=u,this._options=p,this._enabled=!1}isActive(){return!1}reset(){}_setupUI(){if(this._container)return;const u=this._map.getCanvasContainer();u.classList.add("maplibregl-cooperative-gestures"),this._container=B.create("div","maplibregl-cooperative-gesture-screen",u);let p=typeof this._options!="boolean"&&this._options.windowsHelpText?this._options.windowsHelpText:"Use Ctrl + scroll to zoom the map";this._bypassKey==="metaKey"&&(p=typeof this._options!="boolean"&&this._options.macHelpText?this._options.macHelpText:"Use ⌘ + scroll to zoom the map");const C=typeof this._options!="boolean"&&this._options.mobileHelpText?this._options.mobileHelpText:"Use two fingers to move the map, three to pitch",M=document.createElement("div");M.className="maplibregl-desktop-message",M.textContent=p,this._container.appendChild(M);const I=document.createElement("div");I.className="maplibregl-mobile-message",I.textContent=C,this._container.appendChild(I),this._container.setAttribute("aria-hidden","true")}_destoryUI(){this._container&&(B.remove(this._container),this._map.getCanvasContainer().classList.remove("maplibregl-cooperative-gestures")),delete this._container}enable(){this._setupUI(),this._enabled=!0}disable(){this._enabled=!1,this._destoryUI()}isEnabled(){return this._enabled}touchmove(u){this._onCooperativeGesture(u.touches.length===1)}wheel(u){this._map.scrollZoom.isEnabled()&&this._onCooperativeGesture(!u[this._bypassKey])}_onCooperativeGesture(u){this._enabled&&u&&(this._container.classList.add("maplibregl-show"),setTimeout(()=>{this._container.classList.remove("maplibregl-show")},100))}}const uc=O=>O.zoom||O.drag||O.pitch||O.rotate;class gr extends a.k{}function Or(O){return O.panDelta&&O.panDelta.mag()||O.zoomDelta||O.bearingDelta||O.pitchDelta}class SA{constructor(u,p){this.handleWindowEvent=M=>{this.handleEvent(M,`${M.type}Window`)},this.handleEvent=(M,I)=>{if(M.type==="blur")return void this.stop(!0);this._updatingCamera=!0;const L=M.type==="renderFrame"?void 0:M,j={needsRenderFrame:!1},G={},te={},Ae=M.touches,he=Ae?this._getMapTouches(Ae):void 0,Me=he?B.touchPos(this._map.getCanvas(),he):B.mousePos(this._map.getCanvas(),M);for(const{handlerName:Qe,handler:Le,allowed:ft}of this._handlers){if(!Le.isEnabled())continue;let Bt;this._blockedByActive(te,ft,Qe)?Le.reset():Le[I||M.type]&&(Bt=Le[I||M.type](M,Me,he),this.mergeHandlerResult(j,G,Bt,Qe,L),Bt&&Bt.needsRenderFrame&&this._triggerRenderFrame()),(Bt||Le.isActive())&&(te[Qe]=Le)}const De={};for(const Qe in this._previousActiveHandlers)te[Qe]||(De[Qe]=L);this._previousActiveHandlers=te,(Object.keys(De).length||Or(j))&&(this._changes.push([j,G,De]),this._triggerRenderFrame()),(Object.keys(te).length||Or(j))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:je}=j;je&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],je(this._map))},this._map=u,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new to(u),this._bearingSnap=p.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(p);const C=this._el;this._listeners=[[C,"touchstart",{passive:!0}],[C,"touchmove",{passive:!1}],[C,"touchend",void 0],[C,"touchcancel",void 0],[C,"mousedown",void 0],[C,"mousemove",void 0],[C,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[C,"mouseover",void 0],[C,"mouseout",void 0],[C,"dblclick",void 0],[C,"click",void 0],[C,"keydown",{capture:!1}],[C,"keyup",void 0],[C,"wheel",{passive:!1}],[C,"contextmenu",void 0],[window,"blur",void 0]];for(const[M,I,L]of this._listeners)B.addEventListener(M,I,M===document?this.handleWindowEvent:this.handleEvent,L)}destroy(){for(const[u,p,C]of this._listeners)B.removeEventListener(u,p,u===document?this.handleWindowEvent:this.handleEvent,C)}_addDefaultHandlers(u){const p=this._map,C=p.getCanvasContainer();this._add("mapEvent",new tA(p,u));const M=p.boxZoom=new ls(p,u);this._add("boxZoom",M),u.interactive&&u.boxZoom&&M.enable();const I=p.cooperativeGestures=new Eo(p,u.cooperativeGestures);this._add("cooperativeGestures",I),u.cooperativeGestures&&I.enable();const L=new Mh(p),j=new Ef(p);p.doubleClickZoom=new Xc(j,L),this._add("tapZoom",L),this._add("clickZoom",j),u.interactive&&u.doubleClickZoom&&p.doubleClickZoom.enable();const G=new Of;this._add("tapDragZoom",G);const te=p.touchPitch=new lc(p);this._add("touchPitch",te),u.interactive&&u.touchPitch&&p.touchPitch.enable(u.touchPitch);const Ae=jn(u),he=Hc(u);p.dragRotate=new Bh(u,Ae,he),this._add("mouseRotate",Ae,["mousePitch"]),this._add("mousePitch",he,["mouseRotate"]),u.interactive&&u.dragRotate&&p.dragRotate.enable();const Me=(({enable:Bt,clickTolerance:qe})=>{const _t=new us({checkCorrectEvent:Ut=>B.mouseButton(Ut)===0&&!Ut.ctrlKey});return new Al({clickTolerance:qe,move:(Ut,Tt)=>({around:Tt,panDelta:Tt.sub(Ut)}),activateOnStart:!0,moveStateManager:_t,enable:Bt,assignEvents:Fa})})(u),De=new oc(u,p);p.dragPan=new Oh(C,Me,De),this._add("mousePan",Me),this._add("touchPan",De,["touchZoom","touchRotate"]),u.interactive&&u.dragPan&&p.dragPan.enable(u.dragPan);const je=new sc,Qe=new rA;p.touchZoomRotate=new oa(C,Qe,je,G),this._add("touchRotate",je,["touchPan","touchZoom"]),this._add("touchZoom",Qe,["touchPan","touchRotate"]),u.interactive&&u.touchZoomRotate&&p.touchZoomRotate.enable(u.touchZoomRotate);const Le=p.scrollZoom=new go(p,()=>this._triggerRenderFrame());this._add("scrollZoom",Le,["mousePan"]),u.interactive&&u.scrollZoom&&p.scrollZoom.enable(u.scrollZoom);const ft=p.keyboard=new Zc(p);this._add("keyboard",ft),u.interactive&&u.keyboard&&p.keyboard.enable(),this._add("blockableMapEvent",new wA(p))}_add(u,p,C){this._handlers.push({handlerName:u,handler:p,allowed:C}),this._handlersById[u]=p}stop(u){if(!this._updatingCamera){for(const{handler:p}of this._handlers)p.reset();this._inertia.clear(),this._fireEvents({},{},u),this._changes=[]}}isActive(){for(const{handler:u}of this._handlers)if(u.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!uc(this._eventsInProgress)||this.isZooming()}_blockedByActive(u,p,C){for(const M in u)if(M!==C&&(!p||p.indexOf(M)<0))return!0;return!1}_getMapTouches(u){const p=[];for(const C of u)this._el.contains(C.target)&&p.push(C);return p}mergeHandlerResult(u,p,C,M,I){if(!C)return;a.e(u,C);const L={handlerName:M,originalEvent:C.originalEvent||I};C.zoomDelta!==void 0&&(p.zoom=L),C.panDelta!==void 0&&(p.drag=L),C.pitchDelta!==void 0&&(p.pitch=L),C.bearingDelta!==void 0&&(p.rotate=L)}_applyChanges(){const u={},p={},C={};for(const[M,I,L]of this._changes)M.panDelta&&(u.panDelta=(u.panDelta||new a.P(0,0))._add(M.panDelta)),M.zoomDelta&&(u.zoomDelta=(u.zoomDelta||0)+M.zoomDelta),M.bearingDelta&&(u.bearingDelta=(u.bearingDelta||0)+M.bearingDelta),M.pitchDelta&&(u.pitchDelta=(u.pitchDelta||0)+M.pitchDelta),M.around!==void 0&&(u.around=M.around),M.pinchAround!==void 0&&(u.pinchAround=M.pinchAround),M.noInertia&&(u.noInertia=M.noInertia),a.e(p,I),a.e(C,L);this._updateMapTransform(u,p,C),this._changes=[]}_updateMapTransform(u,p,C){const M=this._map,I=M._getTransformForUpdate(),L=M.terrain;if(!(Or(u)||L&&this._terrainMovement))return this._fireEvents(p,C,!0);let{panDelta:j,zoomDelta:G,bearingDelta:te,pitchDelta:Ae,around:he,pinchAround:Me}=u;Me!==void 0&&(he=Me),M._stop(!0),he=he||M.transform.centerPoint;const De=I.pointLocation(j?he.sub(j):he);te&&(I.bearing+=te),Ae&&(I.pitch+=Ae),G&&(I.zoom+=G),L?this._terrainMovement||!p.drag&&!p.zoom?p.drag&&this._terrainMovement?I.center=I.pointLocation(I.centerPoint.sub(j)):I.setLocationAtPoint(De,he):(this._terrainMovement=!0,this._map._elevationFreeze=!0,I.setLocationAtPoint(De,he),this._map.once("moveend",()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,I.recalculateZoom(M.terrain)})):I.setLocationAtPoint(De,he),M._applyUpdatedTransform(I),this._map._update(),u.noInertia||this._inertia.record(u),this._fireEvents(p,C,!0)}_fireEvents(u,p,C){const M=uc(this._eventsInProgress),I=uc(u),L={};for(const Ae in u){const{originalEvent:he}=u[Ae];this._eventsInProgress[Ae]||(L[`${Ae}start`]=he),this._eventsInProgress[Ae]=u[Ae]}!M&&I&&this._fireEvent("movestart",I.originalEvent);for(const Ae in L)this._fireEvent(Ae,L[Ae]);I&&this._fireEvent("move",I.originalEvent);for(const Ae in u){const{originalEvent:he}=u[Ae];this._fireEvent(Ae,he)}const j={};let G;for(const Ae in this._eventsInProgress){const{handlerName:he,originalEvent:Me}=this._eventsInProgress[Ae];this._handlersById[he].isActive()||(delete this._eventsInProgress[Ae],G=p[he]||Me,j[`${Ae}end`]=G)}for(const Ae in j)this._fireEvent(Ae,j[Ae]);const te=uc(this._eventsInProgress);if(C&&(M||I)&&!te){this._updatingCamera=!0;const Ae=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),he=Me=>Me!==0&&-this._bearingSnap{delete this._frameId,this.handleEvent(new gr("renderFrame",{timeStamp:u})),this._applyChanges()})}_triggerRenderFrame(){this._frameId===void 0&&(this._frameId=this._requestFrame())}}class Jc extends a.E{constructor(u,p){super(),this._renderFrameCallback=()=>{const C=Math.min((k.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(C)),C<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=u,this._bearingSnap=p.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new a.M(this.transform.center.lng,this.transform.center.lat)}setCenter(u,p){return this.jumpTo({center:u},p)}panBy(u,p,C){return u=a.P.convert(u).mult(-1),this.panTo(this.transform.center,a.e({offset:u},p),C)}panTo(u,p,C){return this.easeTo(a.e({center:u},p),C)}getZoom(){return this.transform.zoom}setZoom(u,p){return this.jumpTo({zoom:u},p),this}zoomTo(u,p,C){return this.easeTo(a.e({zoom:u},p),C)}zoomIn(u,p){return this.zoomTo(this.getZoom()+1,u,p),this}zoomOut(u,p){return this.zoomTo(this.getZoom()-1,u,p),this}getBearing(){return this.transform.bearing}setBearing(u,p){return this.jumpTo({bearing:u},p),this}getPadding(){return this.transform.padding}setPadding(u,p){return this.jumpTo({padding:u},p),this}rotateTo(u,p,C){return this.easeTo(a.e({bearing:u},p),C)}resetNorth(u,p){return this.rotateTo(0,a.e({duration:1e3},u),p),this}resetNorthPitch(u,p){return this.easeTo(a.e({bearing:0,pitch:0,duration:1e3},u),p),this}snapToNorth(u,p){return Math.abs(this.getBearing()){if(this._zooming&&(C.zoom=a.z.number(M,G,Tt)),this._rotating&&(C.bearing=a.z.number(I,te,Tt)),this._pitching&&(C.pitch=a.z.number(L,Ae,Tt)),this._padding&&(C.interpolatePadding(j,he,Tt),De=C.centerPoint.add(Me)),this.terrain&&!u.freezeElevation&&this._updateElevation(Tt),qe)C.setLocationAtPoint(qe,_t);else{const en=C.zoomScale(C.zoom-M),hn=G>M?Math.min(2,Bt):Math.max(.5,Bt),An=Math.pow(hn,1-Tt),On=C.unproject(Le.add(ft.mult(Tt*An)).mult(en));C.setLocationAtPoint(C.renderWorldCopies?On.wrap():On,De)}this._applyUpdatedTransform(C),this._fireMoveEvents(p)},Tt=>{this.terrain&&this._finalizeElevation(),this._afterEase(p,Tt)},u),this}_prepareEase(u,p,C={}){this._moving=!0,p||C.moving||this.fire(new a.k("movestart",u)),this._zooming&&!C.zooming&&this.fire(new a.k("zoomstart",u)),this._rotating&&!C.rotating&&this.fire(new a.k("rotatestart",u)),this._pitching&&!C.pitching&&this.fire(new a.k("pitchstart",u))}_prepareElevation(u){this._elevationCenter=u,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(u,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(u){this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);const p=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(u<1&&p!==this._elevationTarget){const C=this._elevationTarget-this._elevationStart;this._elevationStart+=u*(C-(p-(C*u+this._elevationStart))/(1-u)),this._elevationTarget=p}this.transform.elevation=a.z.number(this._elevationStart,this._elevationTarget,u)}_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(u){if(!this.transformCameraUpdate)return;const p=u.clone(),{center:C,zoom:M,pitch:I,bearing:L,elevation:j}=this.transformCameraUpdate(p);C&&(p.center=C),M!==void 0&&(p.zoom=M),I!==void 0&&(p.pitch=I),L!==void 0&&(p.bearing=L),j!==void 0&&(p.elevation=j),this.transform.apply(p)}_fireMoveEvents(u){this.fire(new a.k("move",u)),this._zooming&&this.fire(new a.k("zoom",u)),this._rotating&&this.fire(new a.k("rotate",u)),this._pitching&&this.fire(new a.k("pitch",u))}_afterEase(u,p){if(this._easeId&&p&&this._easeId===p)return;delete this._easeId;const C=this._zooming,M=this._rotating,I=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,C&&this.fire(new a.k("zoomend",u)),M&&this.fire(new a.k("rotateend",u)),I&&this.fire(new a.k("pitchend",u)),this.fire(new a.k("moveend",u))}flyTo(u,p){if(!u.essential&&k.prefersReducedMotion){const Qn=a.L(u,["center","zoom","bearing","pitch","around"]);return this.jumpTo(Qn,p)}this.stop(),u=a.e({offset:[0,0],speed:1.2,curve:1.42,easing:a.b6},u);const C=this._getTransformForUpdate(),M=this.getZoom(),I=this.getBearing(),L=this.getPitch(),j=this.getPadding(),G="zoom"in u?a.ac(+u.zoom,C.minZoom,C.maxZoom):M,te="bearing"in u?this._normalizeBearing(u.bearing,I):I,Ae="pitch"in u?+u.pitch:L,he="padding"in u?u.padding:C.padding,Me=C.zoomScale(G-M),De=a.P.convert(u.offset);let je=C.centerPoint.add(De);const Qe=C.pointLocation(je),Le=a.M.convert(u.center||Qe);this._normalizeCenter(Le);const ft=C.project(Qe),Bt=C.project(Le).sub(ft);let qe=u.curve;const _t=Math.max(C.width,C.height),Ut=_t/Me,Tt=Bt.mag();if("minZoom"in u){const Qn=a.ac(Math.min(u.minZoom,M,G),C.minZoom,C.maxZoom),Ho=_t/C.zoomScale(Qn-M);qe=Math.sqrt(Ho/Tt*2)}const en=qe*qe;function hn(Qn){const Ho=(Ut*Ut-_t*_t+(Qn?-1:1)*en*en*Tt*Tt)/(2*(Qn?Ut:_t)*en*Tt);return Math.log(Math.sqrt(Ho*Ho+1)-Ho)}function An(Qn){return(Math.exp(Qn)-Math.exp(-Qn))/2}function On(Qn){return(Math.exp(Qn)+Math.exp(-Qn))/2}const lr=hn(!1);let xr=function(Qn){return On(lr)/On(lr+qe*Qn)},Tn=function(Qn){return _t*((On(lr)*(An(Ho=lr+qe*Qn)/On(Ho))-An(lr))/en)/Tt;var Ho},yr=(hn(!0)-lr)/qe;if(Math.abs(Tt)<1e-6||!isFinite(yr)){if(Math.abs(_t-Ut)<1e-6)return this.easeTo(u,p);const Qn=Ut<_t?-1:1;yr=Math.abs(Math.log(Ut/_t))/qe,Tn=function(){return 0},xr=function(Ho){return Math.exp(Qn*qe*Ho)}}return u.duration="duration"in u?+u.duration:1e3*yr/("screenSpeed"in u?+u.screenSpeed/qe:+u.speed),u.maxDuration&&u.duration>u.maxDuration&&(u.duration=0),this._zooming=!0,this._rotating=I!==te,this._pitching=Ae!==L,this._padding=!C.isPaddingEqual(he),this._prepareEase(p,!1),this.terrain&&this._prepareElevation(Le),this._ease(Qn=>{const Ho=Qn*yr,pi=1/xr(Ho);C.zoom=Qn===1?G:M+C.scaleZoom(pi),this._rotating&&(C.bearing=a.z.number(I,te,Qn)),this._pitching&&(C.pitch=a.z.number(L,Ae,Qn)),this._padding&&(C.interpolatePadding(j,he,Qn),je=C.centerPoint.add(De)),this.terrain&&!u.freezeElevation&&this._updateElevation(Qn);const ii=Qn===1?Le:C.unproject(ft.add(Bt.mult(Tn(Ho))).mult(pi));C.setLocationAtPoint(C.renderWorldCopies?ii.wrap():ii,je),this._applyUpdatedTransform(C),this._fireMoveEvents(p)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(p)},u),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(u,p){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){const C=this._onEaseEnd;delete this._onEaseEnd,C.call(this,p)}if(!u){const C=this.handlers;C&&C.stop(!1)}return this}_ease(u,p,C){C.animate===!1||C.duration===0?(u(1),p()):(this._easeStart=k.now(),this._easeOptions=C,this._onEaseFrame=u,this._onEaseEnd=p,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(u,p){u=a.b0(u,-180,180);const C=Math.abs(u-p);return Math.abs(u-360-p)180?-360:C<-180?360:0}queryTerrainElevation(u){return this.terrain?this.terrain.getElevationForLngLatZoom(a.M.convert(u),this.transform.tileZoom)-this.transform.elevation:null}}class dl{constructor(u={}){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=p=>{!p||p.sourceDataType!=="metadata"&&p.sourceDataType!=="visibility"&&p.dataType!=="style"&&p.type!=="terrain"||this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact===!1?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=u}getDefaultPosition(){return"bottom-right"}onAdd(u){return this._map=u,this._compact=this.options&&this.options.compact,this._container=B.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=B.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=B.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(){B.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(u,p){const C=this._map._getUIString(`AttributionControl.${p}`);u.title=C,u.setAttribute("aria-label",C)}_updateAttributions(){if(!this._map.style)return;let u=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?u=u.concat(this.options.customAttribution.map(M=>typeof M!="string"?"":M)):typeof this.options.customAttribution=="string"&&u.push(this.options.customAttribution)),this._map.style.stylesheet){const M=this._map.style.stylesheet;this.styleOwner=M.owner,this.styleId=M.id}const p=this._map.style.sourceCaches;for(const M in p){const I=p[M];if(I.used||I.usedForTerrain){const L=I.getSource();L.attribution&&u.indexOf(L.attribution)<0&&u.push(L.attribution)}}u=u.filter(M=>String(M).trim()),u.sort((M,I)=>M.length-I.length),u=u.filter((M,I)=>{for(let L=I+1;L=0)return!1;return!0});const C=u.join(" | ");C!==this._attribHTML&&(this._attribHTML=C,u.length?(this._innerContainer.innerHTML=C,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class xa{constructor(u={}){this._updateCompact=()=>{const p=this._container.children;if(p.length){const C=p[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?this._compact!==!1&&C.classList.add("maplibregl-compact"):C.classList.remove("maplibregl-compact")}},this.options=u}getDefaultPosition(){return"bottom-left"}onAdd(u){this._map=u,this._compact=this.options&&this.options.compact,this._container=B.create("div","maplibregl-ctrl");const p=B.create("a","maplibregl-ctrl-logo");return p.target="_blank",p.rel="noopener nofollow",p.href="https://maplibre.org/",p.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),p.setAttribute("rel","noopener nofollow"),this._container.appendChild(p),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){B.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class Bl{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(u){const p=++this._id;return this._queue.push({callback:u,id:p,cancelled:!1}),p}remove(u){const p=this._currentlyRunning,C=p?this._queue.concat(p):this._queue;for(const M of C)if(M.id===u)return void(M.cancelled=!0)}run(u=0){if(this._currentlyRunning)throw new Error("Attempting to run(), but is already running.");const p=this._currentlyRunning=this._queue;this._queue=[];for(const C of p)if(!C.cancelled&&(C.callback(u),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}var As=a.X([{name:"a_pos3d",type:"Int16",components:3}]);class Iu extends a.E{constructor(u){super(),this.sourceCache=u,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,u.usedForTerrain=!0,u.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(u,p){this.sourceCache.update(u,p),this._renderableTilesKeys=[];const C={};for(const M of u.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:p}))C[M.key]=!0,this._renderableTilesKeys.push(M.key),this._tiles[M.key]||(M.posMatrix=new Float64Array(16),a.aN(M.posMatrix,0,a.W,0,a.W,0,1),this._tiles[M.key]=new me(M,this.tileSize));for(const M in this._tiles)C[M]||delete this._tiles[M]}freeRtt(u){for(const p in this._tiles){const C=this._tiles[p];(!u||C.tileID.equals(u)||C.tileID.isChildOf(u)||u.isChildOf(C.tileID))&&(C.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(u=>this.getTileByID(u))}getTileByID(u){return this._tiles[u]}getTerrainCoords(u){const p={};for(const C of this._renderableTilesKeys){const M=this._tiles[C].tileID;if(M.canonical.equals(u.canonical)){const I=u.clone();I.posMatrix=new Float64Array(16),a.aN(I.posMatrix,0,a.W,0,a.W,0,1),p[C]=I}else if(M.canonical.isChildOf(u.canonical)){const I=u.clone();I.posMatrix=new Float64Array(16);const L=M.canonical.z-u.canonical.z,j=M.canonical.x-(M.canonical.x>>L<>L<>L;a.aN(I.posMatrix,0,te,0,te,0,1),a.H(I.posMatrix,I.posMatrix,[-j*te,-G*te,0]),p[C]=I}else if(u.canonical.isChildOf(M.canonical)){const I=u.clone();I.posMatrix=new Float64Array(16);const L=u.canonical.z-M.canonical.z,j=u.canonical.x-(u.canonical.x>>L<>L<>L;a.aN(I.posMatrix,0,a.W,0,a.W,0,1),a.H(I.posMatrix,I.posMatrix,[j*te,G*te,0]),a.J(I.posMatrix,I.posMatrix,[1/2**L,1/2**L,0]),p[C]=I}}return p}getSourceTile(u,p){const C=this.sourceCache._source;let M=u.overscaledZ-this.deltaZoom;if(M>C.maxzoom&&(M=C.maxzoom),M=C.minzoom&&(!I||!I.dem);)I=this.sourceCache.getTileByID(u.scaledTo(M--).key);return I}tilesAfterTime(u=Date.now()){return Object.values(this._tiles).filter(p=>p.timeAdded>=u)}}class iA{constructor(u,p,C){this.painter=u,this.sourceCache=new Iu(p),this.options=C,this.exaggeration=typeof C.exaggeration=="number"?C.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(u,p,C,M=a.W){var I;if(!(p>=0&&p=0&&Cu.canonical.z&&(u.canonical.z>=M?I=u.canonical.z-M:a.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));const L=u.canonical.x-(u.canonical.x>>I<>I<>8<<4|I>>8,p[L+3]=0;const C=new a.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(p.buffer)),M=new ct(u,C,u.gl.RGBA,{premultiply:!1});return M.bind(u.gl.NEAREST,u.gl.CLAMP_TO_EDGE),this._coordsTexture=M,M}pointCoordinate(u){const p=new Uint8Array(4),C=this.painter.context,M=C.gl;C.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),M.readPixels(u.x,this.painter.height/devicePixelRatio-u.y-1,1,1,M.RGBA,M.UNSIGNED_BYTE,p),C.bindFramebuffer.set(null);const I=p[0]+(p[2]>>4<<8),L=p[1]+((15&p[2])<<8),j=this.coordsIndex[255-p[3]],G=j&&this.sourceCache.getTileByID(j);if(!G)return null;const te=this._coordsTextureSize,Ae=(1<u.id!==p),this._recentlyUsed.push(u.id)}stampObject(u){u.stamp=++this._stamp}getOrCreateFreeObject(){for(const p of this._recentlyUsed)if(!this._objects[p].inUse)return this._objects[p];if(this._objects.length>=this._size)throw new Error("No free RenderPool available, call freeAllObjects() required!");const u=this._createObject(this._objects.length);return this._objects.push(u),u}freeObject(u){u.inUse=!1}freeAllObjects(){for(const u of this._objects)this.freeObject(u)}isFull(){return!(this._objects.length!u.inUse)===!1}}const zo={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class Ip{constructor(u,p){this.painter=u,this.terrain=p,this.pool=new Oo(u.context,30,p.sourceCache.tileSize*p.qualityFactor)}destruct(){this.pool.destruct()}getTexture(u){return this.pool.getObjectForId(u.rtt[this._stacks.length-1].id).texture}prepareForRender(u,p){this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=u._order.filter(C=>!u._layers[C].isHidden(p)),this._coordsDescendingInv={};for(const C in u.sourceCaches){this._coordsDescendingInv[C]={};const M=u.sourceCaches[C].getVisibleCoordinates();for(const I of M){const L=this.terrain.sourceCache.getTerrainCoords(I);for(const j in L)this._coordsDescendingInv[C][j]||(this._coordsDescendingInv[C][j]=[]),this._coordsDescendingInv[C][j].push(L[j])}}this._coordsDescendingInvStr={};for(const C of u._order){const M=u._layers[C],I=M.source;if(zo[M.type]&&!this._coordsDescendingInvStr[I]){this._coordsDescendingInvStr[I]={};for(const L in this._coordsDescendingInv[I])this._coordsDescendingInvStr[I][L]=this._coordsDescendingInv[I][L].map(j=>j.key).sort().join()}}for(const C of this._renderableTiles)for(const M in this._coordsDescendingInvStr){const I=this._coordsDescendingInvStr[M][C.tileID.key];I&&I!==C.rttCoords[M]&&(C.rtt=[])}}renderLayer(u){if(u.isHidden(this.painter.transform.zoom))return!1;const p=u.type,C=this.painter,M=this._renderableLayerIds[this._renderableLayerIds.length-1]===u.id;if(zo[p]&&(this._prevType&&zo[this._prevType]||this._stacks.push([]),this._prevType=p,this._stacks[this._stacks.length-1].push(u.id),!M))return!0;if(zo[this._prevType]||zo[p]&&M){this._prevType=p;const I=this._stacks.length-1,L=this._stacks[I]||[];for(const j of this._renderableTiles){if(this.pool.isFull()&&(ul(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(j),j.rtt[I]){const te=this.pool.getObjectForId(j.rtt[I].id);if(te.stamp===j.rtt[I].stamp){this.pool.useObject(te);continue}}const G=this.pool.getOrCreateFreeObject();this.pool.useObject(G),this.pool.stampObject(G),j.rtt[I]={id:G.id,stamp:G.stamp},C.context.bindFramebuffer.set(G.fbo.framebuffer),C.context.clear({color:a.aO.transparent,stencil:0}),C.currentStencilSource=void 0;for(let te=0;te{O.touchstart=O.dragStart,O.touchmoveWindow=O.dragMove,O.touchend=O.dragEnd},cc={showCompass:!0,showZoom:!0,visualizePitch:!1};class ed{constructor(u,p,C=!1){this.mousedown=L=>{this.startMouse(a.e({},L,{ctrlKey:!0,preventDefault:()=>L.preventDefault()}),B.mousePos(this.element,L)),B.addEventListener(window,"mousemove",this.mousemove),B.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=L=>{this.moveMouse(L,B.mousePos(this.element,L))},this.mouseup=L=>{this.mouseRotate.dragEnd(L),this.mousePitch&&this.mousePitch.dragEnd(L),this.offTemp()},this.touchstart=L=>{L.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=B.touchPos(this.element,L.targetTouches)[0],this.startTouch(L,this._startPos),B.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),B.addEventListener(window,"touchend",this.touchend))},this.touchmove=L=>{L.targetTouches.length!==1?this.reset():(this._lastPos=B.touchPos(this.element,L.targetTouches)[0],this.moveTouch(L,this._lastPos))},this.touchend=L=>{L.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){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 M=u.dragRotate._mouseRotate.getClickTolerance(),I=u.dragRotate._mousePitch.getClickTolerance();this.element=p,this.mouseRotate=jn({clickTolerance:M,enable:!0}),this.touchRotate=(({enable:L,clickTolerance:j,bearingDegreesPerPixelMoved:G=.8})=>{const te=new Ol;return new Al({clickTolerance:j,move:(Ae,he)=>({bearingDelta:(he.x-Ae.x)*G}),moveStateManager:te,enable:L,assignEvents:Ac})})({clickTolerance:M,enable:!0}),this.map=u,C&&(this.mousePitch=Hc({clickTolerance:I,enable:!0}),this.touchPitch=(({enable:L,clickTolerance:j,pitchDegreesPerPixelMoved:G=-.5})=>{const te=new Ol;return new Al({clickTolerance:j,move:(Ae,he)=>({pitchDelta:(he.y-Ae.y)*G}),moveStateManager:te,enable:L,assignEvents:Ac})})({clickTolerance:I,enable:!0})),B.addEventListener(p,"mousedown",this.mousedown),B.addEventListener(p,"touchstart",this.touchstart,{passive:!1}),B.addEventListener(p,"touchcancel",this.reset)}startMouse(u,p){this.mouseRotate.dragStart(u,p),this.mousePitch&&this.mousePitch.dragStart(u,p),B.disableDrag()}startTouch(u,p){this.touchRotate.dragStart(u,p),this.touchPitch&&this.touchPitch.dragStart(u,p),B.disableDrag()}moveMouse(u,p){const C=this.map,{bearingDelta:M}=this.mouseRotate.dragMove(u,p)||{};if(M&&C.setBearing(C.getBearing()+M),this.mousePitch){const{pitchDelta:I}=this.mousePitch.dragMove(u,p)||{};I&&C.setPitch(C.getPitch()+I)}}moveTouch(u,p){const C=this.map,{bearingDelta:M}=this.touchRotate.dragMove(u,p)||{};if(M&&C.setBearing(C.getBearing()+M),this.touchPitch){const{pitchDelta:I}=this.touchPitch.dragMove(u,p)||{};I&&C.setPitch(C.getPitch()+I)}}off(){const u=this.element;B.removeEventListener(u,"mousedown",this.mousedown),B.removeEventListener(u,"touchstart",this.touchstart,{passive:!1}),B.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),B.removeEventListener(window,"touchend",this.touchend),B.removeEventListener(u,"touchcancel",this.reset),this.offTemp()}offTemp(){B.enableDrag(),B.removeEventListener(window,"mousemove",this.mousemove),B.removeEventListener(window,"mouseup",this.mouseup),B.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),B.removeEventListener(window,"touchend",this.touchend)}}let ke;function oA(O,u,p){if(O=new a.M(O.lng,O.lat),u){const C=new a.M(O.lng-360,O.lat),M=new a.M(O.lng+360,O.lat),I=p.locationPoint(O).distSqr(u);p.locationPoint(C).distSqr(u)180;){const C=p.locationPoint(O);if(C.x>=0&&C.y>=0&&C.x<=p.width&&C.y<=p.height)break;O.lng>p.center.lng?O.lng-=360:O.lng+=360}return O}const wa={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 uo(O,u,p){const C=O.classList;for(const M in wa)C.remove(`maplibregl-${p}-anchor-${M}`);C.add(`maplibregl-${p}-anchor-${u}`)}class jr extends a.E{constructor(u){if(super(),this._onKeyPress=p=>{const C=p.code,M=p.charCode||p.keyCode;C!=="Space"&&C!=="Enter"&&M!==32&&M!==13||this.togglePopup()},this._onMapClick=p=>{const C=p.originalEvent.target,M=this._element;this._popup&&(C===M||M.contains(C))&&this.togglePopup()},this._update=p=>{if(!this._map)return;const C=this._map.loaded()&&!this._map.isMoving();((p==null?void 0:p.type)==="terrain"||(p==null?void 0:p.type)==="render"&&!C)&&this._map.once("render",this._update),this._map.transform.renderWorldCopies&&(this._lngLat=oA(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let M="";this._rotationAlignment==="viewport"||this._rotationAlignment==="auto"?M=`rotateZ(${this._rotation}deg)`:this._rotationAlignment==="map"&&(M=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let I="";this._pitchAlignment==="viewport"||this._pitchAlignment==="auto"?I="rotateX(0deg)":this._pitchAlignment==="map"&&(I=`rotateX(${this._map.getPitch()}deg)`),p&&p.type!=="moveend"||(this._pos=this._pos.round()),B.setTransform(this._element,`${wa[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${I} ${M}`),this._updateOpacity(p&&p.type==="moveend")},this._onMove=p=>{if(!this._isDragging){const C=this._clickTolerance||this._map._clickTolerance;this._isDragging=p.point.dist(this._pointerdownPos)>=C}this._isDragging&&(this._pos=p.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new a.k("dragstart"))),this.fire(new a.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),this._state==="active"&&this.fire(new a.k("dragend")),this._state="inactive"},this._addDragHandler=p=>{this._element.contains(p.originalEvent.target)&&(p.preventDefault(),this._positionDelta=p.point.sub(this._pos).add(this._offset),this._pointerdownPos=p.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=u&&u.anchor||"center",this._color=u&&u.color||"#3FB1CE",this._scale=u&&u.scale||1,this._draggable=u&&u.draggable||!1,this._clickTolerance=u&&u.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=u&&u.rotation||0,this._rotationAlignment=u&&u.rotationAlignment||"auto",this._pitchAlignment=u&&u.pitchAlignment&&u.pitchAlignment!=="auto"?u.pitchAlignment:this._rotationAlignment,u&&u.element)this._element=u.element,this._offset=a.P.convert(u&&u.offset||[0,0]);else{this._defaultMarker=!0,this._element=B.create("div"),this._element.setAttribute("aria-label","Map marker");const p=B.createNS("http://www.w3.org/2000/svg","svg"),C=41,M=27;p.setAttributeNS(null,"display","block"),p.setAttributeNS(null,"height",`${C}px`),p.setAttributeNS(null,"width",`${M}px`),p.setAttributeNS(null,"viewBox",`0 0 ${M} ${C}`);const I=B.createNS("http://www.w3.org/2000/svg","g");I.setAttributeNS(null,"stroke","none"),I.setAttributeNS(null,"stroke-width","1"),I.setAttributeNS(null,"fill","none"),I.setAttributeNS(null,"fill-rule","evenodd");const L=B.createNS("http://www.w3.org/2000/svg","g");L.setAttributeNS(null,"fill-rule","nonzero");const j=B.createNS("http://www.w3.org/2000/svg","g");j.setAttributeNS(null,"transform","translate(3.0, 29.0)"),j.setAttributeNS(null,"fill","#000000");const G=[{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 ft of G){const Bt=B.createNS("http://www.w3.org/2000/svg","ellipse");Bt.setAttributeNS(null,"opacity","0.04"),Bt.setAttributeNS(null,"cx","10.5"),Bt.setAttributeNS(null,"cy","5.80029008"),Bt.setAttributeNS(null,"rx",ft.rx),Bt.setAttributeNS(null,"ry",ft.ry),j.appendChild(Bt)}const te=B.createNS("http://www.w3.org/2000/svg","g");te.setAttributeNS(null,"fill",this._color);const Ae=B.createNS("http://www.w3.org/2000/svg","path");Ae.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"),te.appendChild(Ae);const he=B.createNS("http://www.w3.org/2000/svg","g");he.setAttributeNS(null,"opacity","0.25"),he.setAttributeNS(null,"fill","#000000");const Me=B.createNS("http://www.w3.org/2000/svg","path");Me.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"),he.appendChild(Me);const De=B.createNS("http://www.w3.org/2000/svg","g");De.setAttributeNS(null,"transform","translate(6.0, 7.0)"),De.setAttributeNS(null,"fill","#FFFFFF");const je=B.createNS("http://www.w3.org/2000/svg","g");je.setAttributeNS(null,"transform","translate(8.0, 8.0)");const Qe=B.createNS("http://www.w3.org/2000/svg","circle");Qe.setAttributeNS(null,"fill","#000000"),Qe.setAttributeNS(null,"opacity","0.25"),Qe.setAttributeNS(null,"cx","5.5"),Qe.setAttributeNS(null,"cy","5.5"),Qe.setAttributeNS(null,"r","5.4999962");const Le=B.createNS("http://www.w3.org/2000/svg","circle");Le.setAttributeNS(null,"fill","#FFFFFF"),Le.setAttributeNS(null,"cx","5.5"),Le.setAttributeNS(null,"cy","5.5"),Le.setAttributeNS(null,"r","5.4999962"),je.appendChild(Qe),je.appendChild(Le),L.appendChild(j),L.appendChild(te),L.appendChild(he),L.appendChild(De),L.appendChild(je),p.appendChild(L),p.setAttributeNS(null,"height",C*this._scale+"px"),p.setAttributeNS(null,"width",M*this._scale+"px"),this._element.appendChild(p),this._offset=a.P.convert(u&&u.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",p=>{p.preventDefault()}),this._element.addEventListener("mousedown",p=>{p.preventDefault()}),uo(this._element,this._anchor,"marker"),u&&u.className)for(const p of u.className.split(" "))this._element.classList.add(p);this._popup=null}addTo(u){return this.remove(),this._map=u,u.getCanvasContainer().appendChild(this._element),u.on("move",this._update),u.on("moveend",this._update),u.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),B.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(u){return this._lngLat=a.M.convert(u),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(u){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),u){if(!("offset"in u.options)){const M=Math.abs(13.5)/Math.SQRT2;u.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[M,-1*(38.1-13.5+M)],"bottom-right":[-M,-1*(38.1-13.5+M)],left:[13.5,-1*(38.1-13.5)],right:[-13.5,-1*(38.1-13.5)]}:this._offset}this._popup=u,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 u=this._popup;return u?(u.isOpen()?u.remove():u.addTo(this._map),this):this}_updateOpacity(u=!1){if(!this._map.terrain)return void(this._element.style.opacity==="0.2"&&(this._element.style.opacity="1"));if(u)this._opacityTimeout=null;else{if(this._opacityTimeout)return;this._opacityTimeout=setTimeout(()=>{this._opacityTimeout=null},100)}const p=this._map,C=p.terrain.depthAtPoint(this._pos),M=p.terrain.getElevationForLngLatZoom(this._lngLat,p.transform.tileZoom);if(p.transform.lngLatToCameraDepth(this._lngLat,M)-C<.006)return void(this._element.style.opacity="1");const I=-this._offset.y/p.transform._pixelPerMeter,L=Math.sin(p.getPitch()*Math.PI/180)*I,j=p.terrain.depthAtPoint(new a.P(this._pos.x,this._pos.y-this._offset.y)),G=p.transform.lngLatToCameraDepth(this._lngLat,M+L);this._element.style.opacity=G-j>.006?"0.2":"1.0"}getOffset(){return this._offset}setOffset(u){return this._offset=a.P.convert(u),this._update(),this}addClassName(u){this._element.classList.add(u)}removeClassName(u){this._element.classList.remove(u)}toggleClassName(u){return this._element.classList.toggle(u)}setDraggable(u){return this._draggable=!!u,this._map&&(u?(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(u){return this._rotation=u||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(u){return this._rotationAlignment=u||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(u){return this._pitchAlignment=u&&u!=="auto"?u:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}const Ma={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};let Ku=0,dc=!1;const kl={maxWidth:100,unit:"metric"};function kh(O,u,p){const C=p&&p.maxWidth||100,M=O._container.clientHeight/2,I=O.unproject([0,M]),L=O.unproject([C,M]),j=I.distanceTo(L);if(p&&p.unit==="imperial"){const G=3.2808*j;G>5280?hc(u,C,G/5280,O._getUIString("ScaleControl.Miles")):hc(u,C,G,O._getUIString("ScaleControl.Feet"))}else p&&p.unit==="nautical"?hc(u,C,j/1852,O._getUIString("ScaleControl.NauticalMiles")):j>=1e3?hc(u,C,j/1e3,O._getUIString("ScaleControl.Kilometers")):hc(u,C,j,O._getUIString("ScaleControl.Meters"))}function hc(O,u,p,C){const M=function(I){const L=Math.pow(10,`${Math.floor(I)}`.length-1);let j=I/L;return j=j>=10?10:j>=5?5:j>=3?3:j>=2?2:j>=1?1:function(G){const te=Math.pow(10,Math.ceil(-Math.log(G)/Math.LN10));return Math.round(G*te)/te}(j),L*j}(p);O.style.width=u*(M/p)+"px",O.innerHTML=`${M} ${C}`}const Ih={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},Ld=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function zd(O){if(O){if(typeof O=="number"){const u=Math.round(Math.abs(O)/Math.SQRT2);return{center:new a.P(0,0),top:new a.P(0,O),"top-left":new a.P(u,u),"top-right":new a.P(-u,u),bottom:new a.P(0,-O),"bottom-left":new a.P(u,-u),"bottom-right":new a.P(-u,-u),left:new a.P(O,0),right:new a.P(-O,0)}}if(O instanceof a.P||Array.isArray(O)){const u=a.P.convert(O);return{center:u,top:u,"top-left":u,"top-right":u,bottom:u,"bottom-left":u,"bottom-right":u,left:u,right:u}}return{center:a.P.convert(O.center||[0,0]),top:a.P.convert(O.top||[0,0]),"top-left":a.P.convert(O["top-left"]||[0,0]),"top-right":a.P.convert(O["top-right"]||[0,0]),bottom:a.P.convert(O.bottom||[0,0]),"bottom-left":a.P.convert(O["bottom-left"]||[0,0]),"bottom-right":a.P.convert(O["bottom-right"]||[0,0]),left:a.P.convert(O.left||[0,0]),right:a.P.convert(O.right||[0,0])}}return zd(new a.P(0,0))}const Il={extend:(O,...u)=>a.e(O,...u),run(O){O()},logToElement(O,u=!1,p="log"){const C=window.document.getElementById(p);C&&(u&&(C.innerHTML=""),C.innerHTML+=`
${O}`)}},kf=f;class Pi{static get version(){return kf}static get workerCount(){return pt.workerCount}static set workerCount(u){pt.workerCount=u}static get maxParallelImageRequests(){return a.a.MAX_PARALLEL_IMAGE_REQUESTS}static set maxParallelImageRequests(u){a.a.MAX_PARALLEL_IMAGE_REQUESTS=u}static get workerUrl(){return a.a.WORKER_URL}static set workerUrl(u){a.a.WORKER_URL=u}}return Pi.Map=class extends Jc{constructor(O){if(a.ba.mark(a.bb.create),(O=a.e({},Bf,O)).minZoom!=null&&O.maxZoom!=null&&O.minZoom>O.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(O.minPitch!=null&&O.maxPitch!=null&&O.minPitch>O.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(O.minPitch!=null&&O.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(O.maxPitch!=null&&O.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(super(new Vc(O.minZoom,O.maxZoom,O.minPitch,O.maxPitch,O.renderWorldCopies),{bearingSnap:O.bearingSnap}),this._contextLost=u=>{u.preventDefault(),this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this.fire(new a.k("webglcontextlost",{originalEvent:u}))},this._contextRestored=u=>{this._setupPainter(),this.resize(),this._update(),this.fire(new a.k("webglcontextrestored",{originalEvent:u}))},this._onMapScroll=u=>{if(u.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=O.interactive,this._maxTileCacheSize=O.maxTileCacheSize,this._maxTileCacheZoomLevels=O.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=O.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=O.preserveDrawingBuffer,this._antialias=O.antialias,this._trackResize=O.trackResize,this._bearingSnap=O.bearingSnap,this._refreshExpiredTiles=O.refreshExpiredTiles,this._fadeDuration=O.fadeDuration,this._crossSourceCollisions=O.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=O.collectResourceTiming,this._renderTaskQueue=new Bl,this._controls=[],this._mapId=a.a3(),this._locale=a.e({},du,O.locale),this._clickTolerance=O.clickTolerance,this._overridePixelRatio=O.pixelRatio,this._maxCanvasSize=O.maxCanvasSize,this.transformCameraUpdate=O.transformCameraUpdate,this._imageQueueHandle=oe.addThrottleControl(()=>this.isMoving()),this._requestManager=new ce(O.transformRequest),typeof O.container=="string"){if(this._container=document.getElementById(O.container),!this._container)throw new Error(`Container '${O.container}' not found.`)}else{if(!(O.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=O.container}if(O.maxBounds&&this.setMaxBounds(O.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}),typeof window<"u"){addEventListener("online",this._onWindowOnline,!1);let u=!1;const p=Ud(C=>{this._trackResize&&!this._removed&&this.resize(C)._update()},50);this._resizeObserver=new ResizeObserver(C=>{u?p(C):u=!0}),this._resizeObserver.observe(this._container)}this.handlers=new SA(this,O),this._hash=O.hash&&new ku(typeof O.hash=="string"&&O.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:O.center,zoom:O.zoom,bearing:O.bearing,pitch:O.pitch}),O.bounds&&(this.resize(),this.fitBounds(O.bounds,a.e({},O.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=O.localIdeographFontFamily,this._validateStyle=O.validateStyle,O.style&&this.setStyle(O.style,{localIdeographFontFamily:O.localIdeographFontFamily}),O.attributionControl&&this.addControl(new dl({customAttribution:O.customAttribution})),O.maplibreLogo&&this.addControl(new xa,O.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",u=>{this._update(u.dataType==="style"),this.fire(new a.k(`${u.dataType}data`,u))}),this.on("dataloading",u=>{this.fire(new a.k(`${u.dataType}dataloading`,u))}),this.on("dataabort",u=>{this.fire(new a.k("sourcedataabort",u))})}_getMapId(){return this._mapId}addControl(O,u){if(u===void 0&&(u=O.getDefaultPosition?O.getDefaultPosition():"top-right"),!O||!O.onAdd)return this.fire(new a.j(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const p=O.onAdd(this);this._controls.push(O);const C=this._controlPositions[u];return u.indexOf("bottom")!==-1?C.insertBefore(p,C.firstChild):C.appendChild(p),this}removeControl(O){if(!O||!O.onRemove)return this.fire(new a.j(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const u=this._controls.indexOf(O);return u>-1&&this._controls.splice(u,1),O.onRemove(this),this}hasControl(O){return this._controls.indexOf(O)>-1}calculateCameraOptionsFromTo(O,u,p,C){return C==null&&this.terrain&&(C=this.terrain.getElevationForLngLatZoom(p,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(O,u,p,C)}resize(O){var u;const p=this._containerDimensions(),C=p[0],M=p[1],I=this._getClampedPixelRatio(C,M);if(this._resizeCanvas(C,M,I),this.painter.resize(C,M,I),this.painter.overLimit()){const j=this.painter.context.gl;this._maxCanvasSize=[j.drawingBufferWidth,j.drawingBufferHeight];const G=this._getClampedPixelRatio(C,M);this._resizeCanvas(C,M,G),this.painter.resize(C,M,G)}this.transform.resize(C,M),(u=this._requestedCameraState)===null||u===void 0||u.resize(C,M);const L=!this._moving;return L&&(this.stop(),this.fire(new a.k("movestart",O)).fire(new a.k("move",O))),this.fire(new a.k("resize",O)),L&&this.fire(new a.k("moveend",O)),this}_getClampedPixelRatio(O,u){const{0:p,1:C}=this._maxCanvasSize,M=this.getPixelRatio(),I=O*M,L=u*M;return Math.min(I>p?p/I:1,L>C?C/L:1)*M}getPixelRatio(){var O;return(O=this._overridePixelRatio)!==null&&O!==void 0?O:devicePixelRatio}setPixelRatio(O){this._overridePixelRatio=O,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(O){return this.transform.setMaxBounds(Kt.convert(O)),this._update()}setMinZoom(O){if((O=O??-2)>=-2&&O<=this.transform.maxZoom)return this.transform.minZoom=O,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=O,this._update(),this.getZoom()>O&&this.setZoom(O),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(O){if((O=O??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(O>=0&&O<=this.transform.maxPitch)return this.transform.minPitch=O,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(O>=this.transform.minPitch)return this.transform.maxPitch=O,this._update(),this.getPitch()>O&&this.setPitch(O),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(O){return this.transform.renderWorldCopies=O,this._update()}project(O){return this.transform.locationPoint(a.M.convert(O),this.style&&this.terrain)}unproject(O){return this.transform.pointLocation(a.P.convert(O),this.terrain)}isMoving(){var O;return this._moving||((O=this.handlers)===null||O===void 0?void 0:O.isMoving())}isZooming(){var O;return this._zooming||((O=this.handlers)===null||O===void 0?void 0:O.isZooming())}isRotating(){var O;return this._rotating||((O=this.handlers)===null||O===void 0?void 0:O.isRotating())}_createDelegatedListener(O,u,p){if(O==="mouseenter"||O==="mouseover"){let C=!1;return{layer:u,listener:p,delegates:{mousemove:I=>{const L=this.getLayer(u)?this.queryRenderedFeatures(I.point,{layers:[u]}):[];L.length?C||(C=!0,p.call(this,new xs(O,this,I.originalEvent,{features:L}))):C=!1},mouseout:()=>{C=!1}}}}if(O==="mouseleave"||O==="mouseout"){let C=!1;return{layer:u,listener:p,delegates:{mousemove:L=>{(this.getLayer(u)?this.queryRenderedFeatures(L.point,{layers:[u]}):[]).length?C=!0:C&&(C=!1,p.call(this,new xs(O,this,L.originalEvent)))},mouseout:L=>{C&&(C=!1,p.call(this,new xs(O,this,L.originalEvent)))}}}}{const C=M=>{const I=this.getLayer(u)?this.queryRenderedFeatures(M.point,{layers:[u]}):[];I.length&&(M.features=I,p.call(this,M),delete M.features)};return{layer:u,listener:p,delegates:{[O]:C}}}}on(O,u,p){if(p===void 0)return super.on(O,u);const C=this._createDelegatedListener(O,u,p);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[O]=this._delegatedListeners[O]||[],this._delegatedListeners[O].push(C);for(const M in C.delegates)this.on(M,C.delegates[M]);return this}once(O,u,p){if(p===void 0)return super.once(O,u);const C=this._createDelegatedListener(O,u,p);for(const M in C.delegates)this.once(M,C.delegates[M]);return this}off(O,u,p){return p===void 0?super.off(O,u):(this._delegatedListeners&&this._delegatedListeners[O]&&(C=>{const M=this._delegatedListeners[O];for(let I=0;Ithis._updateStyle(O,u));const p=this.style&&u.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!O)),O?(this.style=new Ti(this,u||{}),this.style.setEventedParent(this,{style:this.style}),typeof O=="string"?this.style.loadURL(O,u,p):this.style.loadJSON(O,u,p),this):(delete this.style,this)}_lazyInitEmptyStyle(){this.style||(this.style=new Ti(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(O,u){if(typeof O=="string"){const p=this._requestManager.transformRequest(O,ne.Style);a.h(p,new AbortController).then(C=>{this._updateDiff(C.data,u)}).catch(C=>{C&&this.fire(new a.j(C))})}else typeof O=="object"&&this._updateDiff(O,u)}_updateDiff(O,u){try{this.style.setState(O,u)&&this._update(!0)}catch(p){a.w(`Unable to perform style diff: ${p.message||p.error||p}. Rebuilding the style from scratch.`),this._updateStyle(O,u)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():a.w("There is no style added to the map.")}addSource(O,u){return this._lazyInitEmptyStyle(),this.style.addSource(O,u),this._update(!0)}isSourceLoaded(O){const u=this.style&&this.style.sourceCaches[O];if(u!==void 0)return u.loaded();this.fire(new a.j(new Error(`There is no source with ID '${O}'`)))}setTerrain(O){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),O){const u=this.style.sourceCaches[O.source];if(!u)throw new Error(`cannot load terrain, because there exists no source with ID: ${O.source}`);this.terrain===null&&u.reload();for(const p in this.style._layers){const C=this.style._layers[p];C.type==="hillshade"&&C.source===O.source&&a.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 iA(this.painter,u,O),this.painter.renderToTexture=new Ip(this.painter,this.terrain),this.transform.minElevationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=p=>{p.dataType==="style"?this.terrain.sourceCache.freeRtt():p.dataType==="source"&&p.tile&&(p.sourceId!==O.source||this._elevationFreeze||(this.transform.minElevationForCurrentTile=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(p.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.minElevationForCurrentTile=0,this.transform.elevation=0;return this.fire(new a.k("terrain",{terrain:O})),this}getTerrain(){var O,u;return(u=(O=this.terrain)===null||O===void 0?void 0:O.options)!==null&&u!==void 0?u:null}areTilesLoaded(){const O=this.style&&this.style.sourceCaches;for(const u in O){const p=O[u]._tiles;for(const C in p){const M=p[C];if(M.state!=="loaded"&&M.state!=="errored")return!1}}return!0}removeSource(O){return this.style.removeSource(O),this._update(!0)}getSource(O){return this.style.getSource(O)}addImage(O,u,p={}){const{pixelRatio:C=1,sdf:M=!1,stretchX:I,stretchY:L,content:j}=p;if(this._lazyInitEmptyStyle(),!(u instanceof HTMLImageElement||a.b(u))){if(u.width===void 0||u.height===void 0)return this.fire(new a.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:G,height:te,data:Ae}=u,he=u;return this.style.addImage(O,{data:new a.R({width:G,height:te},new Uint8Array(Ae)),pixelRatio:C,stretchX:I,stretchY:L,content:j,sdf:M,version:0,userImage:he}),he.onAdd&&he.onAdd(this,O),this}}{const{width:G,height:te,data:Ae}=k.getImageData(u);this.style.addImage(O,{data:new a.R({width:G,height:te},Ae),pixelRatio:C,stretchX:I,stretchY:L,content:j,sdf:M,version:0})}}updateImage(O,u){const p=this.style.getImage(O);if(!p)return this.fire(new a.j(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const C=u instanceof HTMLImageElement||a.b(u)?k.getImageData(u):u,{width:M,height:I,data:L}=C;if(M===void 0||I===void 0)return this.fire(new a.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(M!==p.data.width||I!==p.data.height)return this.fire(new a.j(new Error("The width and height of the updated image must be that same as the previous version of the image")));const j=!(u instanceof HTMLImageElement||a.b(u));return p.data.replace(L,j),this.style.updateImage(O,p),this}getImage(O){return this.style.getImage(O)}hasImage(O){return O?!!this.style.getImage(O):(this.fire(new a.j(new Error("Missing required image id"))),!1)}removeImage(O){this.style.removeImage(O)}loadImage(O){return oe.getImage(this._requestManager.transformRequest(O,ne.Image),new AbortController)}listImages(){return this.style.listImages()}addLayer(O,u){return this._lazyInitEmptyStyle(),this.style.addLayer(O,u),this._update(!0)}moveLayer(O,u){return this.style.moveLayer(O,u),this._update(!0)}removeLayer(O){return this.style.removeLayer(O),this._update(!0)}getLayer(O){return this.style.getLayer(O)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(O,u,p){return this.style.setLayerZoomRange(O,u,p),this._update(!0)}setFilter(O,u,p={}){return this.style.setFilter(O,u,p),this._update(!0)}getFilter(O){return this.style.getFilter(O)}setPaintProperty(O,u,p,C={}){return this.style.setPaintProperty(O,u,p,C),this._update(!0)}getPaintProperty(O,u){return this.style.getPaintProperty(O,u)}setLayoutProperty(O,u,p,C={}){return this.style.setLayoutProperty(O,u,p,C),this._update(!0)}getLayoutProperty(O,u){return this.style.getLayoutProperty(O,u)}setGlyphs(O,u={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(O,u),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(O,u,p={}){return this._lazyInitEmptyStyle(),this.style.addSprite(O,u,p,C=>{C||this._update(!0)}),this}removeSprite(O){return this._lazyInitEmptyStyle(),this.style.removeSprite(O),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(O,u={}){return this._lazyInitEmptyStyle(),this.style.setSprite(O,u,p=>{p||this._update(!0)}),this}setLight(O,u={}){return this._lazyInitEmptyStyle(),this.style.setLight(O,u),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(O,u){return this.style.setFeatureState(O,u),this._update()}removeFeatureState(O,u){return this.style.removeFeatureState(O,u),this._update()}getFeatureState(O){return this.style.getFeatureState(O)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let O=0,u=0;return this._container&&(O=this._container.clientWidth||400,u=this._container.clientHeight||300),[O,u]}_setupContainer(){const O=this._container;O.classList.add("maplibregl-map");const u=this._canvasContainer=B.create("div","maplibregl-canvas-container",O);this._interactive&&u.classList.add("maplibregl-interactive"),this._canvas=B.create("canvas","maplibregl-canvas",u),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","region");const p=this._containerDimensions(),C=this._getClampedPixelRatio(p[0],p[1]);this._resizeCanvas(p[0],p[1],C);const M=this._controlContainer=B.create("div","maplibregl-control-container",O),I=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(L=>{I[L]=B.create("div",`maplibregl-ctrl-${L} `,M)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(O,u,p){this._canvas.width=Math.floor(p*O),this._canvas.height=Math.floor(p*u),this._canvas.style.width=`${O}px`,this._canvas.style.height=`${u}px`}_setupPainter(){const O={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1};let u=null;this._canvas.addEventListener("webglcontextcreationerror",C=>{u={requestedAttributes:O},C&&(u.statusMessage=C.statusMessage,u.type=C.type)},{once:!0});const p=this._canvas.getContext("webgl2",O)||this._canvas.getContext("webgl",O);if(!p){const C="Failed to initialize WebGL";throw u?(u.message=C,new Error(JSON.stringify(u))):new Error(C)}this.painter=new Fd(p,this.transform),P.testSupport(p)}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(O){return this.style&&this.style._loaded?(this._styleDirty=this._styleDirty||O,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(O){return this._update(),this._renderTaskQueue.add(O)}_cancelRenderFrame(O){this._renderTaskQueue.remove(O)}_render(O){const u=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(O),this._removed)return;let p=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;const M=this.transform.zoom,I=k.now();this.style.zoomHistory.update(M,I);const L=new a.a8(M,{now:I,fadeDuration:u,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),j=L.crossFadingFactor();j===1&&j===this._crossFadingFactor||(p=!0,this._crossFadingFactor=j),this.style.update(L)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform.minElevationForCurrentTile=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.minElevationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,u,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:u,showPadding:this.showPadding}),this.fire(new a.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,a.ba.mark(a.bb.load),this.fire(new a.k("load"))),this.style&&(this.style.hasTransitions()||p)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();const C=this._sourcesDirty||this._styleDirty||this._placementDirty;return C||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new a.k("idle")),!this._loaded||this._fullyLoaded||C||(this._fullyLoaded=!0,a.ba.mark(a.bb.fullLoad)),this}redraw(){return this.style&&(this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._render(0)),this}remove(){var O;this._hash&&this._hash.remove();for(const p of this._controls)p.onRemove(this);this._controls=[],this._frameRequest&&(this._frameRequest.abort(),this._frameRequest=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),typeof window<"u"&&removeEventListener("online",this._onWindowOnline,!1),oe.removeThrottleControl(this._imageQueueHandle),(O=this._resizeObserver)===null||O===void 0||O.disconnect();const u=this.painter.context.gl.getExtension("WEBGL_lose_context");u&&u.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),B.remove(this._canvasContainer),B.remove(this._controlContainer),this._container.classList.remove("maplibregl-map"),a.ba.clearMetrics(),this._removed=!0,this.fire(new a.k("remove"))}triggerRepaint(){this.style&&!this._frameRequest&&(this._frameRequest=new AbortController,k.frameAsync(this._frameRequest).then(O=>{a.ba.frame(O),this._frameRequest=null,this._render(O)}).catch(()=>{}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(O){this._showTileBoundaries!==O&&(this._showTileBoundaries=O,this._update())}get showPadding(){return!!this._showPadding}set showPadding(O){this._showPadding!==O&&(this._showPadding=O,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(O){this._showCollisionBoxes!==O&&(this._showCollisionBoxes=O,O?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(O){this._showOverdrawInspector!==O&&(this._showOverdrawInspector=O,this._update())}get repaint(){return!!this._repaint}set repaint(O){this._repaint!==O&&(this._repaint=O,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(O){this._vertices=O,this._update()}get version(){return Tu}getCameraTargetElevation(){return this.transform.elevation}},Pi.NavigationControl=class{constructor(O){this._updateZoomButtons=()=>{const u=this._map.getZoom(),p=u===this._map.getMaxZoom(),C=u===this._map.getMinZoom();this._zoomInButton.disabled=p,this._zoomOutButton.disabled=C,this._zoomInButton.setAttribute("aria-disabled",p.toString()),this._zoomOutButton.setAttribute("aria-disabled",C.toString())},this._rotateCompassArrow=()=>{const u=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=u},this._setButtonTitle=(u,p)=>{const C=this._map._getUIString(`NavigationControl.${p}`);u.title=C,u.setAttribute("aria-label",C)},this.options=a.e({},cc,O),this._container=B.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",u=>u.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",u=>this._map.zoomIn({},{originalEvent:u})),B.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",u=>this._map.zoomOut({},{originalEvent:u})),B.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",u=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:u}):this._map.resetNorth({},{originalEvent:u})}),this._compassIcon=B.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(O){return this._map=O,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 ed(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){B.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(O,u){const p=B.create("button",O,this._container);return p.type="button",p.addEventListener("click",u),p}},Pi.GeolocateControl=class extends a.E{constructor(O){super(),this._onSuccess=u=>{if(this._map){if(this._isOutOfMapMaxBounds(u))return this._setErrorState(),this.fire(new a.k("outofmaxbounds",u)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=u,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&&this._watchState!=="OFF"&&this._updateMarker(u),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(u),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new a.k("geolocate",u)),this._finish()}},this._updateCamera=u=>{const p=new a.M(u.coords.longitude,u.coords.latitude),C=u.coords.accuracy,M=this._map.getBearing(),I=a.e({bearing:M},this.options.fitBoundsOptions),L=Kt.fromLngLat(p,C);this._map.fitBounds(L,I,{geolocateSource:!0})},this._updateMarker=u=>{if(u){const p=new a.M(u.coords.longitude,u.coords.latitude);this._accuracyCircleMarker.setLngLat(p).addTo(this._map),this._userLocationDotMarker.setLngLat(p).addTo(this._map),this._accuracy=u.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=u=>{if(this._map){if(this.options.trackUserLocation)if(u.code===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._geolocateButton.disabled=!0;const p=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=p,this._geolocateButton.setAttribute("aria-label",p),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(u.code===3&&dc)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new a.k("error",u)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=u=>{if(this._map){if(this._container.addEventListener("contextmenu",p=>p.preventDefault()),this._geolocateButton=B.create("button","maplibregl-ctrl-geolocate",this._container),B.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",u===!1){a.w("Geolocation support is not available so the GeolocateControl will be disabled.");const p=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=p,this._geolocateButton.setAttribute("aria-label",p)}else{const p=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=p,this._geolocateButton.setAttribute("aria-label",p)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=B.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new jr({element:this._dotElement}),this._circleElement=B.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new jr({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",()=>this.trigger()),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",p=>{p.geolocateSource||this._watchState!=="ACTIVE_LOCK"||p.originalEvent&&p.originalEvent.type==="resize"||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new a.k("trackuserlocationend")))})}},this.options=a.e({},Ma,O)}onAdd(O){return this._map=O,this._container=B.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(u=!1){return a._(this,void 0,void 0,function*(){if(ke!==void 0&&!u)return ke;if(window.navigator.permissions===void 0)return ke=!!window.navigator.geolocation,ke;try{ke=(yield window.navigator.permissions.query({name:"geolocation"})).state!=="denied"}catch{ke=!!window.navigator.geolocation}return ke})}().then(u=>this._setupUI(u)),this._container}onRemove(){this._geolocationWatchID!==void 0&&(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(),B.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ku=0,dc=!1}_isOutOfMapMaxBounds(O){const u=this._map.getMaxBounds(),p=O.coords;return u&&(p.longitudeu.getEast()||p.latitudeu.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 O=this._map.getBounds(),u=O.getSouthEast(),p=O.getNorthEast(),C=u.distanceTo(p),M=Math.ceil(this._accuracy/(C/this._map._container.clientHeight)*2);this._circleElement.style.width=`${M}px`,this._circleElement.style.height=`${M}px`}trigger(){if(!this._setup)return a.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 a.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ku--,dc=!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 a.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 a.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(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let O;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),Ku++,Ku>1?(O={maximumAge:6e5,timeout:0},dc=!0):(O=this.options.positionOptions,dc=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,O)}}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","false"),this.options.showUserLocation&&this._updateMarker(null)}},Pi.AttributionControl=dl,Pi.LogoControl=xa,Pi.ScaleControl=class{constructor(O){this._onMove=()=>{kh(this._map,this._container,this.options)},this.setUnit=u=>{this.options.unit=u,kh(this._map,this._container,this.options)},this.options=a.e({},kl,O)}getDefaultPosition(){return"bottom-left"}onAdd(O){return this._map=O,this._container=B.create("div","maplibregl-ctrl maplibregl-ctrl-scale",O.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){B.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},Pi.FullscreenControl=class extends a.E{constructor(O={}){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,O&&O.container&&(O.container instanceof HTMLElement?this._container=O.container:a.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(O){return this._map=O,this._container||(this._container=this._map.getContainer()),this._controlContainer=B.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){B.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){const O=this._fullscreenButton=B.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);B.create("span","maplibregl-ctrl-icon",O).setAttribute("aria-hidden","true"),O.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){const O=this._getTitle();this._fullscreenButton.setAttribute("aria-label",O),this._fullscreenButton.title=O}_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 a.k("fullscreenstart")),this._prevCooperativeGesturesEnabled=this._map.cooperativeGestures.isEnabled(),this._map.cooperativeGestures.disable()):(this.fire(new a.k("fullscreenend")),this._prevCooperativeGesturesEnabled&&this._map.cooperativeGestures.enable())}_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()}},Pi.TerrainControl=class{constructor(O){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=O}onAdd(O){return this._map=O,this._container=B.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=B.create("button","maplibregl-ctrl-terrain",this._container),B.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){B.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},Pi.Popup=class extends a.E{constructor(O){super(),this.remove=()=>(this._content&&B.remove(this._content),this._container&&(B.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),this._map._canvasContainer.classList.remove("maplibregl-track-pointer"),delete this._map),this.fire(new a.k("close")),this),this._onMouseUp=u=>{this._update(u.point)},this._onMouseMove=u=>{this._update(u.point)},this._onDrag=u=>{this._update(u.point)},this._update=u=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=B.create("div","maplibregl-popup",this._map.getContainer()),this._tip=B.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(const L of this.options.className.split(" "))this._container.classList.add(L);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=oA(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!u)return;const p=this._pos=this._trackPointer&&u?u:this._map.project(this._lngLat);let C=this.options.anchor;const M=zd(this.options.offset);if(!C){const L=this._container.offsetWidth,j=this._container.offsetHeight;let G;G=p.y+M.bottom.ythis._map.transform.height-j?["bottom"]:[],p.xthis._map.transform.width-L/2&&G.push("right"),C=G.length===0?"bottom":G.join("-")}const I=p.add(M[C]).round();B.setTransform(this._container,`${wa[C]} translate(${I.x}px,${I.y}px)`),uo(this._container,C,"popup")},this._onClose=()=>{this.remove()},this.options=a.e(Object.create(Ih),O)}addTo(O){return this._map&&this.remove(),this._map=O,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 a.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(O){return this._lngLat=a.M.convert(O),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(O){return this.setDOMContent(document.createTextNode(O))}setHTML(O){const u=document.createDocumentFragment(),p=document.createElement("body");let C;for(p.innerHTML=O;C=p.firstChild,C;)u.appendChild(C);return this.setDOMContent(u)}getMaxWidth(){var O;return(O=this._container)===null||O===void 0?void 0:O.style.maxWidth}setMaxWidth(O){return this.options.maxWidth=O,this._update(),this}setDOMContent(O){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=B.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(O),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(O){this._container&&this._container.classList.add(O)}removeClassName(O){this._container&&this._container.classList.remove(O)}setOffset(O){return this.options.offset=O,this._update(),this}toggleClassName(O){if(this._container)return this._container.classList.toggle(O)}_createCloseButton(){this.options.closeButton&&(this._closeButton=B.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const O=this._container.querySelector(Ld);O&&O.focus()}},Pi.Marker=jr,Pi.Style=Ti,Pi.LngLat=a.M,Pi.LngLatBounds=Kt,Pi.Point=a.P,Pi.MercatorCoordinate=a.Y,Pi.Evented=a.E,Pi.AJAXError=a.bc,Pi.config=a.a,Pi.CanvasSource=Qr,Pi.GeoJSONSource=ir,Pi.ImageSource=nr,Pi.RasterDEMTileSource=pn,Pi.RasterTileSource=mt,Pi.VectorTileSource=zn,Pi.VideoSource=Mr,Pi.setRTLTextPlugin=(O,u)=>X().setRTLTextPlugin(O,u),Pi.getRTLTextPluginStatus=()=>X().getRTLTextPluginStatus(),Pi.prewarm=function(){Se().acquire(Vt)},Pi.clearPrewarmedResources=function(){const O=kt;O&&(O.isPreloaded()&&O.numActive()===1?(O.release(Vt),kt=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()"))},Pi.addProtocol=a.bd,Pi.removeProtocol=a.be,Pi.addSourceType=(O,u)=>((p,C)=>a._(void 0,void 0,void 0,function*(){if(vi(p))throw new Error(`A source type called "${p}" already exists.`);((M,I)=>{_r[M]=I})(p,C)}))(O,u),Pi.importScriptInWorkers=O=>xe().broadcast("importScript",O),Il.extend(Pi,{isSafari:a.B,getPerformanceMetrics:a.ba.getPerformanceMetrics}),Pi});var s=i;return s})})(jR);var kX=jR.exports;const g2=ga(kX);var _p={};function E6(e,n,t){var r={id:[n,t,"circle"].join("_"),source:n,type:"circle",paint:{"circle-color":e,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function O6(e,n,t,r){var i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":e,"fill-antialias":!0,"fill-outline-color":e},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function B6(e,n,t){var r={id:[n,t,"line"].join("_"),source:n,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":e},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function IX(e,n){var t=[],r=[],i=[];function o(s){var a=n.bind(null,s),f={circle:a(.8),line:a(.6),polygon:a(.3),polygonOutline:a(.6),default:a(1)};return f}return Object.keys(e).forEach(function(s){var a=e[s];if(!a||a.length===0){var f=o(s);r.push(E6(f.circle,s)),i.push(B6(f.line,s)),t.push(O6(f.polygon,f.polygonOutline,s))}else a.forEach(function(g){var x=o(g);r.push(E6(x.circle,s,g)),i.push(B6(x.line,s,g)),t.push(O6(x.polygon,x.polygonOutline,s,g))})}),t.concat(i).concat(r)}function TX(e,n,t){t=Object.assign({backgroundColor:"#fff"},t);var r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(e.sources).forEach(function(o){var s=e.sources[o];(s.type==="vector"||s.type==="geojson")&&(i[o]=s)}),Object.assign(e,{layers:[r].concat(n),soources:i})}_p.polygonLayer=O6;_p.lineLayer=B6;_p.circleLayer=E6;_p.generateInspectStyle=TX;_p.generateColoredLayers=IX;function KX(e,n){var t=document.createElement("div");return t.className="mapboxgl-ctrl mapboxgl-ctrl-group",t.appendChild(e),n||(t.style.display="none"),t}function PX(){var e=document.createElement("button");return e.className="mapboxgl-ctrl-icon mapboxgl-ctrl-inspect",e.type="button",e["aria-label"]="Inspect",e}function KB(e){e=Object.assign({show:!0,onToggle:function(){}},e),this._btn=PX(),this._btn.onclick=e.onToggle,this.elem=KX(this._btn,e.show)}KB.prototype.setInspectIcon=function(){this._btn.className="mapboxgl-ctrl-icon mapboxgl-ctrl-inspect"};KB.prototype.setMapIcon=function(){this._btn.className="mapboxgl-ctrl-icon mapboxgl-ctrl-map"};var FX=KB,u3={exports:{}};u3.exports;(function(e,n){var t=200,r="__lodash_hash_undefined__",i=1,o=2,s=9007199254740991,a="[object Arguments]",f="[object Array]",g="[object AsyncFunction]",x="[object Boolean]",k="[object Date]",B="[object Error]",P="[object Function]",R="[object GeneratorFunction]",H="[object Map]",W="[object Number]",$="[object Null]",q="[object Object]",oe="[object Promise]",ne="[object Proxy]",ce="[object RegExp]",ae="[object Set]",ue="[object String]",ye="[object Symbol]",Re="[object Undefined]",Ne="[object WeakMap]",rt="[object ArrayBuffer]",ct="[object DataView]",Fe="[object Float32Array]",He="[object Float64Array]",Ce="[object Int8Array]",jt="[object Int16Array]",Ft="[object Int32Array]",Jt="[object Uint8Array]",Nt="[object Uint8ClampedArray]",Ve="[object Uint16Array]",nt="[object Uint32Array]",Je=/[\\^$.*+?()[\]{}|]/g,Vt=/^\[object .+?Constructor\]$/,pt=/^(?:0|[1-9]\d*)$/,dt={};dt[Fe]=dt[He]=dt[Ce]=dt[jt]=dt[Ft]=dt[Jt]=dt[Nt]=dt[Ve]=dt[nt]=!0,dt[a]=dt[f]=dt[rt]=dt[x]=dt[ct]=dt[k]=dt[B]=dt[P]=dt[H]=dt[W]=dt[q]=dt[ce]=dt[ae]=dt[ue]=dt[Ne]=!1;var kt=typeof window=="object"&&window&&window.Object===Object&&window,Dt=typeof self=="object"&&self&&self.Object===Object&&self,Se=kt||Dt||Function("return this")(),de=n&&!n.nodeType&&n,xe=de&&!0&&e&&!e.nodeType&&e,Pe=xe&&xe.exports===de,Ze=Pe&&kt.process,Xe=function(){try{return Ze&&Ze.binding&&Ze.binding("util")}catch{}}(),wt=Xe&&Xe.isTypedArray;function Kt(ee,Ie){for(var st=-1,Xt=ee==null?0:ee.length,Sr=0,_n=[];++st-1}function Io(ee,Ie){var st=this.__data__,Xt=En(st,ee);return Xt<0?(++this.size,st.push([ee,Ie])):st[Xt][1]=Ie,this}Yr.prototype.clear=Zr,Yr.prototype.delete=Cr,Yr.prototype.get=ui,Yr.prototype.has=Ii,Yr.prototype.set=Io;function Ci(ee){var Ie=-1,st=ee==null?0:ee.length;for(this.clear();++IeKi))return!1;var Yi=_n.get(ee);if(Yi&&_n.get(Ie))return Yi==Ie;var qo=-1,Ca=!0,Vo=st&o?new Mi:void 0;for(_n.set(ee,Ie),_n.set(Ie,ee);++qo-1&&ee%1==0&&ee-1&&ee%1==0&&ee<=s}function uu(ee){var Ie=typeof ee;return ee!=null&&(Ie=="object"||Ie=="function")}function as(ee){return ee!=null&&typeof ee=="object"}var Mu=wt?pn(wt):_i;function Au(ee){return Ds(ee)?Ot(ee):_l(ee)}function bo(){return[]}function mo(){return!1}e.exports=Cs})(u3,u3.exports);var NR=u3.exports;const k6=ga(NR);function DX(e){return typeof e>"u"||e===null?e:e instanceof Date?e.toLocaleString():typeof e=="object"||typeof e=="number"||typeof e=="string"?e.toString():e}function VI(e,n){return'
'+e+'
'+DX(n)+"
"}function UX(e){return'
'+e+"
"}function RX(e){var n=UX(e.layer["source-layer"]||e.layer.source),t=VI("$type",e.geometry.type),r=Object.keys(e.properties).map(function(i){return VI(i,e.properties[i])});return[n,t].concat(r).join("")}function LX(e){return e.map(function(n){return'
'+RX(n)+"
"}).join("")}function zX(e){return'
'+LX(e)+"
"}var jX=zX,t5={},I6={exports:{}};(function(e,n){(function(t,r){{var i=r();e&&e.exports&&(n=e.exports=i),n.randomColor=i}})(mf,function(){var t=null,r={};W();var i=function(ne){if(ne=ne||{},ne.seed&&ne.seed===parseInt(ne.seed,10))t=ne.seed;else if(typeof ne.seed=="string")t=oe(ne.seed);else{if(ne.seed!==void 0&&ne.seed!==null)throw new TypeError("The seed value must be an integer or string");t=null}var ce,ae,ue;if(ne.count!==null&&ne.count!==void 0){var ye=ne.count,Re=[];for(ne.count=null;ye>Re.length;)t&&ne.seed&&(ne.seed+=1),Re.push(i(ne));return ne.count=ye,Re}return ce=o(ne),ae=s(ce,ne),ue=a(ce,ae,ne),f([ce,ae,ue],ne)};function o(ne){var ce=x(ne.hue),ae=P(ce);return ae<0&&(ae=360+ae),ae}function s(ne,ce){if(ce.luminosity==="random")return P([0,100]);if(ce.hue==="monochrome")return 0;var ae=k(ne),ue=ae[0],ye=ae[1];switch(ce.luminosity){case"bright":ue=55;break;case"dark":ue=ye-10;break;case"light":ye=55;break}return P([ue,ye])}function a(ne,ce,ae){var ue=g(ne,ce),ye=100;switch(ae.luminosity){case"dark":ye=ue+20;break;case"light":ue=(ye+ue)/2;break;case"random":ue=0,ye=100;break}return P([ue,ye])}function f(ne,ce){switch(ce.format){case"hsvArray":return ne;case"hslArray":return q(ne);case"hsl":var ae=q(ne);return"hsl("+ae[0]+", "+ae[1]+"%, "+ae[2]+"%)";case"hsla":var ue=q(ne);return"hsla("+ue[0]+", "+ue[1]+"%, "+ue[2]+"%, "+Math.random()+")";case"rgbArray":return $(ne);case"rgb":var ye=$(ne);return"rgb("+ye.join(", ")+")";case"rgba":var Re=$(ne);return"rgba("+Re.join(", ")+", "+Math.random()+")";default:return R(ne)}}function g(ne,ce){for(var ae=B(ne).lowerBounds,ue=0;ue=ye&&ce<=Ne){var ct=(rt-Re)/(Ne-ye),Fe=Re-ct*ye;return ct*ce+Fe}}return 0}function x(ne){if(typeof parseInt(ne)=="number"){var ce=parseInt(ne);if(ce<360&&ce>0)return[ce,ce]}if(typeof ne=="string"&&r[ne]){var ae=r[ne];if(ae.hueRange)return ae.hueRange}return[0,360]}function k(ne){return B(ne).saturationRange}function B(ne){ne>=334&&ne<=360&&(ne-=360);for(var ce in r){var ae=r[ce];if(ae.hueRange&&ne>=ae.hueRange[0]&&ne<=ae.hueRange[1])return r[ce]}return"Color not found"}function P(ne){if(t===null)return Math.floor(ne[0]+Math.random()*(ne[1]+1-ne[0]));var ce=ne[1]||1,ae=ne[0]||0;t=(t*9301+49297)%233280;var ue=t/233280;return Math.floor(ae+ue*(ce-ae))}function R(ne){var ce=$(ne);function ae(ye){var Re=ye.toString(16);return Re.length==1?"0"+Re:Re}var ue="#"+ae(ce[0])+ae(ce[1])+ae(ce[2]);return ue}function H(ne,ce,ae){var ue=ae[0][0],ye=ae[ae.length-1][0],Re=ae[ae.length-1][1],Ne=ae[0][1];r[ne]={hueRange:ce,lowerBounds:ae,saturationRange:[ue,ye],brightnessRange:[Re,Ne]}}function W(){H("monochrome",null,[[0,0],[100,0]]),H("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),H("orange",[19,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),H("yellow",[47,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),H("green",[63,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),H("blue",[179,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),H("purple",[258,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),H("pink",[283,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function $(ne){var ce=ne[0];ce===0&&(ce=1),ce===360&&(ce=359),ce=ce/360;var ae=ne[1]/100,ue=ne[2]/100,ye=Math.floor(ce*6),Re=ce*6-ye,Ne=ue*(1-ae),rt=ue*(1-Re*ae),ct=ue*(1-(1-Re)*ae),Fe=256,He=256,Ce=256;switch(ye){case 0:Fe=ue,He=ct,Ce=Ne;break;case 1:Fe=rt,He=ue,Ce=Ne;break;case 2:Fe=Ne,He=ue,Ce=ct;break;case 3:Fe=Ne,He=rt,Ce=ue;break;case 4:Fe=ct,He=Ne,Ce=ue;break;case 5:Fe=ue,He=Ne,Ce=rt;break}var jt=[Math.floor(Fe*255),Math.floor(He*255),Math.floor(Ce*255)];return jt}function q(ne){var ce=ne[0],ae=ne[1]/100,ue=ne[2]/100,ye=(2-ae)*ue;return[ce,Math.round(ae*ue/(ye<1?ye:2-ye)*1e4)/100,ye/2*100]}function oe(ne){for(var ce=0,ae=0;ae!==ne.length&&!(ce>=Number.MAX_SAFE_INTEGER);ae++)ce+=ne.charCodeAt(ae);return ce}return i})})(I6,I6.exports);var WX=I6.exports,NX=WX;function GX(e,n){var t="bright",r=null;/water|ocean|lake|sea|river/.test(e)&&(r="blue"),/state|country|place/.test(e)&&(r="pink"),/road|highway|transport/.test(e)&&(r="orange"),/contour|building/.test(e)&&(r="monochrome"),/building/.test(e)&&(t="dark"),/contour|landuse/.test(e)&&(r="yellow"),/wood|forest|park|landcover/.test(e)&&(r="green");var i=NX({luminosity:t,hue:r,seed:e,format:"rgbArray"}),o=i.concat([n||1]);return"rgba("+o.join(", ")+")"}t5.brightColor=GX;var GR=_p,QX=FX,$X=NR,YX=jX,qX=t5;function VX(e){return e.metadata&&e.metadata["mapbox-gl-inspect:inspect"]}function HX(e){return Object.assign(e,{metadata:Object.assign({},e.metadata,{"mapbox-gl-inspect:inspect":!0})})}function ZX(e){return(e.type==="raster"||e.type==="raster-dem")&&e.tileSize&&e.tiles?{type:e.type,tileSize:e.tileSize,tiles:e.tiles}:(e.type==="raster"||e.type==="raster-dem")&&e.url?{type:e.type,url:e.url}:e}function HI(e){return Object.keys(e.sources).forEach(function(n){e.sources[n]=ZX(e.sources[n])}),e}function XX(e){var n=e.version.split(".").map(parseFloat);n[0]<1&&n[1]<29&&console.error("MapboxInspect only supports Mapbox GL JS >= v0.29.0. Please upgrade your Mapbox GL JS version.")}function Cf(e){if(!(this instanceof Cf))throw new Error("MapboxInspect needs to be called with the new keyword");var n=null;window.mapboxgl?(XX(window.mapboxgl),n=new window.mapboxgl.Popup({closeButton:!1,closeOnClick:!1})):e.popup||console.error("Mapbox GL JS can not be found. Make sure to include it or pass an initialized MapboxGL Popup to MapboxInspect if you are using moduleis."),this.options=Object.assign({showInspectMap:!1,showInspectButton:!0,showInspectMapPopup:!0,showMapPopup:!1,showMapPopupOnHover:!0,showInspectMapPopupOnHover:!0,blockHoverPopupOnClick:!1,backgroundColor:"#fff",assignLayerColor:qX.brightColor,buildInspectStyle:GR.generateInspectStyle,renderPopup:YX,popup:n,selectThreshold:5,useInspectStyle:!0,queryParameters:{},sources:{}},e),this.sources=this.options.sources,this.assignLayerColor=this.options.assignLayerColor,this.toggleInspector=this.toggleInspector.bind(this),this._popup=this.options.popup,this._popupBlocked=!1,this._showInspectMap=this.options.showInspectMap,this._onSourceChange=this._onSourceChange.bind(this),this._onMousemove=this._onMousemove.bind(this),this._onStyleChange=this._onStyleChange.bind(this),this._originalStyle=null,this._toggle=new QX({show:this.options.showInspectButton,onToggle:this.toggleInspector.bind(this)})}Cf.prototype.toggleInspector=function(){this._showInspectMap=!this._showInspectMap,this.render()};Cf.prototype._inspectStyle=function(){var e=GR.generateColoredLayers(this.sources,this.assignLayerColor);return this.options.buildInspectStyle(this._map.getStyle(),e,{backgroundColor:this.options.backgroundColor})};Cf.prototype.render=function(){this._showInspectMap?(this.options.useInspectStyle&&this._map.setStyle(HI(HX(this._inspectStyle()))),this._toggle.setMapIcon()):this._originalStyle&&(this._popup&&this._popup.remove(),this.options.useInspectStyle&&this._map.setStyle(HI(this._originalStyle)),this._toggle.setInspectIcon())};Cf.prototype._onSourceChange=function(){var e=this.sources,n=this._map,t=n.getStyle(),r=Object.keys(t.sources),i=Object.assign({},e);Object.keys(n.style.sourceCaches).forEach(function(o){var s=n.style.sourceCaches[o]||{_source:{}},a=s._source.vectorLayerIds;a?e[o]=a:s._source.type==="geojson"&&(e[o]=[])}),Object.keys(e).forEach(function(o){r.indexOf(o)===-1&&delete e[o]}),!$X(i,e)&&Object.keys(e).length>0&&this.render()};Cf.prototype._onStyleChange=function(){var e=this._map.getStyle();VX(e)||(this._originalStyle=e)};Cf.prototype._onMousemove=function(e){var n;this.options.selectThreshold===0?n=e.point:n=[[e.point.x-this.options.selectThreshold,e.point.y+this.options.selectThreshold],[e.point.x+this.options.selectThreshold,e.point.y-this.options.selectThreshold]];var t=this._map.queryRenderedFeatures(n,this.options.queryParameters)||[];if(this._map.getCanvas().style.cursor=t.length?"pointer":"",this._showInspectMap){if(!this.options.showInspectMapPopup||e.type==="mousemove"&&!this.options.showInspectMapPopupOnHover)return;e.type==="click"&&this.options.showInspectMapPopupOnHover&&this.options.blockHoverPopupOnClick&&(this._popupBlocked=!this._popupBlocked)}else{if(!this.options.showMapPopup||e.type==="mousemove"&&!this.options.showMapPopupOnHover)return;e.type==="click"&&this.options.showMapPopupOnHover&&this.options.blockHoverPopupOnClick&&(this._popupBlocked=!this._popupBlocked)}if(!this._popupBlocked&&this._popup)if(!t.length)this._popup.remove();else{this._popup.setLngLat(e.lngLat);var r=typeof this.options.renderPopup(t);r==="string"?this._popup.setHTML(this.options.renderPopup(t)):this._popup.setDOMContent(this.options.renderPopup(t)),this._popup.addTo(this._map)}};Cf.prototype.onAdd=function(e){return this._map=e,Object.keys(this.sources).length===0&&(e.on("tiledata",this._onSourceChange),e.on("sourcedata",this._onSourceChange)),e.on("styledata",this._onStyleChange),e.on("load",this._onStyleChange),e.on("mousemove",this._onMousemove),e.on("click",this._onMousemove),this._toggle.elem};Cf.prototype.onRemove=function(){this._map.off("styledata",this._onStyleChange),this._map.off("load",this._onStyleChange),this._map.off("tiledata",this._onSourceChange),this._map.off("sourcedata",this._onSourceChange),this._map.off("mousemove",this._onMousemove),this._map.off("click",this._onMousemove);var e=this._toggle.elem;e.parentNode.removeChild(e),this._map=void 0};var JX=Cf,eJ=JX,tJ=eJ;const nJ=ga(tJ);var QR={exports:{}},rJ="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iJ=rJ,oJ=iJ;function $R(){}function YR(){}YR.resetWarningCache=$R;var aJ=function(){function e(r,i,o,s,a,f){if(f!==oJ){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}e.isRequired=e;function n(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:YR,resetWarningCache:$R};return t.PropTypes=t,t};QR.exports=aJ();var ph=QR.exports;const Pr=ga(ph);var ZI=Object.assign||function(e){for(var n=1;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var Pm=function(n,t){var r=n.children,i=n.color,o=n.size,s=n.style,a=n.width,f=n.height,g=sJ(n,["children","color","size","style","width","height"]),x=t.reactIconBase,k=x===void 0?{}:x,B=o||k.size||"1em";return bn.createElement("svg",ZI({children:r,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:f||B,width:a||B},k,g,{style:ZI({verticalAlign:"middle",color:i||k.color},k.style||{},s)}))};Pm.propTypes={color:Pr.string,size:Pr.oneOfType([Pr.string,Pr.number]),width:Pr.oneOfType([Pr.string,Pr.number]),height:Pr.oneOfType([Pr.string,Pr.number]),style:Pr.object};Pm.contextTypes={reactIconBase:Pr.shape(Pm.propTypes)};function A3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconLine.tsx",n="ace6118dd0ae83e2ceb20b70664ae2267741d924",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconLine.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:478}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconLine.tsx"],names:[],mappings:"AAQQ;AARR,OAAO,WAAW;AAClB,OAAO,cAAc;AAGrB,qBAAqB,iBAAiB,MAAM,UAAU;AAAA,EACpD,SAAS;AACP,WACE,oBAAC,YAAS,SAAQ,aAAa,GAAG,KAAK,OACrC,8BAAC,UAAK,GAAE,iUAAgU,WAAU,kBAAiB,GACrW;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ace6118dd0ae83e2ceb20b70664ae2267741d924"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return A3=function(){return s},s}A3();class lJ extends bn.Component{render(){return A3().f[0]++,A3().s[0]++,N.jsx(Pm,{viewBox:"0 0 20 20",...this.props,children:N.jsx("path",{d:"M 12.34,1.29 C 12.5114,1.1076 12.7497,1.0029 13,1 13.5523,1 14,1.4477 14,2 14.0047,2.2478 13.907,2.4866 13.73,2.66 9.785626,6.5516986 6.6148407,9.7551593 2.65,13.72 2.4793,13.8963 2.2453,13.9971 2,14 1.4477,14 1,13.5523 1,13 0.9953,12.7522 1.093,12.5134 1.27,12.34 4.9761967,8.7018093 9.0356422,4.5930579 12.34,1.29 Z",transform:"translate(2,2)"})})}}function c3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconFill.tsx",n="8b9fc49e8fc93b42e35f3a9b2accdbccf6dcdb84",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconFill.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:562}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconFill.tsx"],names:[],mappings:"AAQQ;AARR,OAAO,WAAW;AAClB,OAAO,cAAc;AAGrB,qBAAqB,iBAAiB,MAAM,UAAU;AAAA,EACpD,SAAS;AACP,WACE,oBAAC,YAAS,SAAQ,aAAa,GAAG,KAAK,OACrC,8BAAC,UAAK,GAAE,kbAAib,GAC3b;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8b9fc49e8fc93b42e35f3a9b2accdbccf6dcdb84"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return c3=function(){return s},s}c3();class mx extends bn.Component{render(){return c3().f[0]++,c3().s[0]++,N.jsx(Pm,{viewBox:"0 0 20 20",...this.props,children:N.jsx("path",{d:"M 2.84978,9.763512 9.462149,4.7316391 16.47225,9.478015 9.859886,14.509879 2.84978,9.763512 m -1.028761,0.492069 7.414535,5.020197 c 0.372277,0.25206 0.958697,0.239771 1.30985,-0.02745 L 17.539255,9.926162 C 17.89041,9.658941 17.873288,9.238006 17.501015,8.985946 L 10.08648,3.9657402 C 9.714204,3.7136802 9.127782,3.7259703 8.776627,3.9931918 L 1.782775,9.315365 c -0.3511551,0.267221 -0.3340331,0.688156 0.03824,0.940216 l 0,0 z"})})}}function d3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconSymbol.tsx",n="6ac2e596376f8b8c2e117c4345e33d1afb8f583b",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconSymbol.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:535}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconSymbol.tsx"],names:[],mappings:"AASU;AATV,OAAO,WAAW;AAClB,OAAO,cAAc;AAGrB,qBAAqB,mBAAmB,MAAM,UAAU;AAAA,EACtD,SAAS;AACP,WACE,oBAAC,YAAS,SAAQ,aAAa,GAAG,KAAK,OACrC,8BAAC,OAAE,WAAU,wDACX,8BAAC,UAAK,GAAE,4SAA2S,GACrT,GACF;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6ac2e596376f8b8c2e117c4345e33d1afb8f583b"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return d3=function(){return s},s}d3();class uJ extends bn.Component{render(){return d3().f[0]++,d3().s[0]++,N.jsx(Pm,{viewBox:"0 0 20 20",...this.props,children:N.jsx("g",{transform:"matrix(1.2718518,0,0,1.2601269,16.559526,-7.4065264)",children:N.jsx("path",{d:"m -9.7959773,11.060163 c -0.3734787,-0.724437 -0.3580577,-1.2147051 -0.00547,-1.8767873 l 8.6034029,-0.019416 c 0.39670292,0.6865644 0.38365934,1.4750693 -0.011097,1.8864953 l -3.1359613,-0.0033 -0.013695,7.1305 c -0.4055357,0.397083 -1.3146432,0.397083 -1.7769191,-0.02274 l 0.030226,-7.104422 z"})})})}}function h3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconBackground.tsx",n="f8813cd7d4a9138ff3fc7253bc195b86370ed6cf",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconBackground.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:464}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconBackground.tsx"],names:[],mappings:"AAQQ;AARR,OAAO,WAAW;AAClB,OAAO,cAAc;AAGrB,qBAAqB,uBAAuB,MAAM,UAAU;AAAA,EAC1D,SAAS;AACP,WACE,oBAAC,YAAS,SAAQ,aAAa,GAAG,KAAK,OACrC,8BAAC,UAAK,GAAE,gVAA+U,GACzV;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f8813cd7d4a9138ff3fc7253bc195b86370ed6cf"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return h3=function(){return s},s}h3();class XI extends bn.Component{render(){return h3().f[0]++,h3().s[0]++,N.jsx(Pm,{viewBox:"0 0 20 20",...this.props,children:N.jsx("path",{d:"m 1.821019,10.255581 7.414535,5.020197 c 0.372277,0.25206 0.958697,0.239771 1.30985,-0.02745 L 17.539255,9.926162 C 17.89041,9.658941 17.873288,9.238006 17.501015,8.985946 L 10.08648,3.9657402 C 9.714204,3.7136802 9.127782,3.7259703 8.776627,3.9931918 L 1.782775,9.315365 c -0.3511551,0.267221 -0.3340331,0.688156 0.03824,0.940216 z"})})}}function f3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconCircle.tsx",n="35a8c3687dcdeffeb7f2fe2d9c05ced9e802b5ca",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconCircle.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:378}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconCircle.tsx"],names:[],mappings:"AAQQ;AARR,OAAO,WAAW;AAClB,OAAO,cAAc;AAGrB,qBAAqB,mBAAmB,MAAM,UAAU;AAAA,EACtD,SAAS;AACP,WACE,oBAAC,YAAS,SAAQ,aAAa,GAAG,KAAK,OACrC,8BAAC,UAAK,WAAU,kBAAiB,GAAE,6NAA4N,GACjQ;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"35a8c3687dcdeffeb7f2fe2d9c05ced9e802b5ca"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return f3=function(){return s},s}f3();class AJ extends bn.Component{render(){return f3().f[0]++,f3().s[0]++,N.jsx(Pm,{viewBox:"0 0 20 20",...this.props,children:N.jsx("path",{transform:"translate(2 2)",d:"M7.5,0C11.6422,0,15,3.3578,15,7.5S11.6422,15,7.5,15 S0,11.6422,0,7.5S3.3578,0,7.5,0z M7.5,1.6666c-3.2217,0-5.8333,2.6117-5.8333,5.8334S4.2783,13.3334,7.5,13.3334 s5.8333-2.6117,5.8333-5.8334S10.7217,1.6666,7.5,1.6666z"})})}}function Ly(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}}]})(e)}function cJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM9 13c0 1.66 1.34 3 3 3s3-1.34 3-3-1.34-3-3-3-3 1.34-3 3z"}}]})(e)}function dJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4z"}}]})(e)}function hJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function fJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M11 7h2v2h-2V7zm0 4h2v6h-2v-6zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function pJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 4H5a2 2 0 00-2 2v12a2 2 0 002 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6a2 2 0 00-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"}}]})(e)}function mJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}}]})(e)}function gJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46A11.804 11.804 0 001 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}}]})(e)}function yJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}}]})(e)}function qR(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}}]})(e)}function vJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"}}]})(e)}function CJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"}}]})(e)}function _J(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"}}]})(e)}function bJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"}}]})(e)}function T6(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}}]})(e)}function xJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}}]})(e)}function wJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"}}]})(e)}function MJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 10l5 5 5-5z"}}]})(e)}function SJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M7 14l5-5 5 5z"}}]})(e)}function EJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}]})(e)}function OJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}}]})(e)}function BJ(e){return Ys({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"circle",attr:{cx:"12",cy:"19",r:"2"}},{tag:"path",attr:{d:"M10 3h4v12h-4z"}}]})(e)}function p3(){var e="/home/runner/work/maputnik/maputnik/src/components/IconMissing.tsx",n="90c8ed80956547e1dbbdff164a42850c33eed62e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconMissing.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:66}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconMissing.tsx"],names:[],mappings:"AAOM;AAPN,OAAO,WAAW;AAClB,SAAQ,sBAAqB;AAG7B,qBAAqB,oBAAoB,MAAM,UAAU;AAAA,EACvD,SAAS;AACP,WACE,oBAAC,kBAAgB,GAAG,KAAK,OAAO;AAAA,EAEpC;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"90c8ed80956547e1dbbdff164a42850c33eed62e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return p3=function(){return s},s}p3();class kJ extends bn.Component{render(){return p3().f[0]++,p3().s[0]++,N.jsx(BJ,{...this.props})}}function es(){var e="/home/runner/work/maputnik/maputnik/src/components/IconLayer.tsx",n="89bd7eb08374d10a1476c7cf1e0e39f530ce1ff1",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/IconLayer.tsx",statementMap:{0:{start:{line:11,column:22},end:{line:11,column:49}},1:{start:{line:12,column:4},end:{line:33,column:5}},2:{start:{line:14,column:8},end:{line:14,column:69}},3:{start:{line:16,column:8},end:{line:16,column:63}},4:{start:{line:18,column:8},end:{line:18,column:63}},5:{start:{line:20,column:8},end:{line:20,column:63}},6:{start:{line:22,column:8},end:{line:22,column:63}},7:{start:{line:24,column:8},end:{line:24,column:69}},8:{start:{line:26,column:8},end:{line:26,column:63}},9:{start:{line:28,column:8},end:{line:28,column:65}},10:{start:{line:30,column:8},end:{line:30,column:65}},11:{start:{line:32,column:8},end:{line:32,column:66}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:11},end:{line:34,column:3}},line:10}},branchMap:{0:{loc:{start:{line:12,column:4},end:{line:33,column:5}},type:"switch",locations:[{start:{line:13,column:6},end:{line:14,column:69}},{start:{line:15,column:6},end:{line:16,column:63}},{start:{line:17,column:6},end:{line:18,column:63}},{start:{line:19,column:6},end:{line:20,column:63}},{start:{line:21,column:6},end:{line:22,column:63}},{start:{line:23,column:6},end:{line:24,column:69}},{start:{line:25,column:6},end:{line:26,column:63}},{start:{line:27,column:6},end:{line:28,column:65}},{start:{line:29,column:6},end:{line:30,column:65}},{start:{line:31,column:6},end:{line:32,column:66}}],line:12}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0},b:{0:[0,0,0,0,0,0,0,0,0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/IconLayer.tsx"],names:[],mappings:"AAmBkC;AAnBlC,OAAO,WAAW;AAElB,OAAO,cAAc;AACrB,OAAO,cAAc;AACrB,OAAO,gBAAgB;AACvB,OAAO,oBAAoB;AAC3B,OAAO,gBAAgB;AACvB,OAAO,iBAAiB;AAQxB,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY,EAAE,OAAO,KAAK,MAAM,MAAM;AAC5C,YAAO,KAAK,MAAM,MAAM;AAAA,MACxB,KAAK;AAAkB,eAAO,oBAAC,kBAAgB,GAAG,WAAW;AAAA,MAC7D,KAAK;AAAU,eAAO,oBAAC,YAAU,GAAG,WAAW;AAAA,MAC/C,KAAK;AAAa,eAAO,oBAAC,YAAU,GAAG,WAAW;AAAA,MAClD,KAAK;AAAW,eAAO,oBAAC,YAAU,GAAG,WAAW;AAAA,MAChD,KAAK;AAAQ,eAAO,oBAAC,YAAU,GAAG,WAAW;AAAA,MAC7C,KAAK;AAAc,eAAO,oBAAC,kBAAgB,GAAG,WAAW;AAAA,MACzD,KAAK;AAAQ,eAAO,oBAAC,YAAU,GAAG,WAAW;AAAA,MAC7C,KAAK;AAAU,eAAO,oBAAC,cAAY,GAAG,WAAW;AAAA,MACjD,KAAK;AAAU,eAAO,oBAAC,cAAY,GAAG,WAAW;AAAA,MACjD;AAAS,eAAO,oBAAC,eAAa,GAAG,WAAW;AAAA,IAC5C;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"89bd7eb08374d10a1476c7cf1e0e39f530ce1ff1"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return es=function(){return s},s}es();class VR extends bn.Component{render(){es().f[0]++;const n=(es().s[0]++,{style:this.props.style});switch(es().s[1]++,this.props.type){case"fill-extrusion":return es().b[0][0]++,es().s[2]++,N.jsx(XI,{...n});case"raster":return es().b[0][1]++,es().s[3]++,N.jsx(mx,{...n});case"hillshade":return es().b[0][2]++,es().s[4]++,N.jsx(mx,{...n});case"heatmap":return es().b[0][3]++,es().s[5]++,N.jsx(mx,{...n});case"fill":return es().b[0][4]++,es().s[6]++,N.jsx(mx,{...n});case"background":return es().b[0][5]++,es().s[7]++,N.jsx(XI,{...n});case"line":return es().b[0][6]++,es().s[8]++,N.jsx(lJ,{...n});case"symbol":return es().b[0][7]++,es().s[9]++,N.jsx(uJ,{...n});case"circle":return es().b[0][8]++,es().s[10]++,N.jsx(AJ,{...n});default:return es().b[0][9]++,es().s[11]++,N.jsx(kJ,{...n})}}}function hr(){var e="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlLayerPopup.tsx",n="8ac820d45b409d4d358e8cb1f505fcc4025456db",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlLayerPopup.tsx",statementMap:{0:{start:{line:5,column:18},end:{line:5,column:20}},1:{start:{line:6,column:27},end:{line:6,column:29}},2:{start:{line:7,column:2},end:{line:17,column:5}},3:{start:{line:8,column:4},end:{line:16,column:5}},4:{start:{line:9,column:6},end:{line:9,column:43}},5:{start:{line:10,column:28},end:{line:10,column:111}},6:{start:{line:10,column:79},end:{line:10,column:110}},7:{start:{line:11,column:6},end:{line:11,column:65}},8:{start:{line:13,column:6},end:{line:13,column:92}},9:{start:{line:14,column:6},end:{line:14,column:59}},10:{start:{line:15,column:6},end:{line:15,column:45}},11:{start:{line:18,column:2},end:{line:18,column:17}},12:{start:{line:22,column:4},end:{line:24,column:5}},13:{start:{line:23,column:6},end:{line:23,column:13}},14:{start:{line:25,column:4},end:{line:46,column:5}},15:{start:{line:26,column:25},end:{line:26,column:44}},16:{start:{line:28,column:6},end:{line:36,column:7}},17:{start:{line:29,column:8},end:{line:29,column:32}},18:{start:{line:30,column:13},end:{line:36,column:7}},19:{start:{line:31,column:8},end:{line:31,column:32}},20:{start:{line:32,column:13},end:{line:36,column:7}},21:{start:{line:33,column:8},end:{line:33,column:32}},22:{start:{line:34,column:13},end:{line:36,column:7}},23:{start:{line:35,column:8},end:{line:35,column:42}},24:{start:{line:37,column:6},end:{line:42,column:7}},25:{start:{line:38,column:22},end:{line:38,column:51}},26:{start:{line:39,column:8},end:{line:39,column:29}},27:{start:{line:41,column:8},end:{line:41,column:23}},28:{start:{line:44,column:6},end:{line:44,column:63}},29:{start:{line:45,column:6},end:{line:45,column:21}},30:{start:{line:49,column:20},end:{line:49,column:67}},31:{start:{line:50,column:18},end:{line:95,column:6}},32:{start:{line:51,column:21},end:{line:90,column:8}},33:{start:{line:52,column:29},end:{line:52,column:76}},34:{start:{line:53,column:8},end:{line:89,column:10}},35:{start:{line:70,column:20},end:{line:70,column:63}},36:{start:{line:91,column:6},end:{line:94,column:26}},37:{start:{line:96,column:4},end:{line:96,column:102}}},fnMap:{0:{name:"groupFeaturesBySourceLayer",decl:{start:{line:4,column:9},end:{line:4,column:35}},loc:{start:{line:4,column:46},end:{line:19,column:1}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:7,column:19},end:{line:7,column:20}},loc:{start:{line:7,column:32},end:{line:17,column:3}},line:7},2:{name:"(anonymous_2)",decl:{start:{line:10,column:72},end:{line:10,column:73}},loc:{start:{line:10,column:79},end:{line:10,column:110}},line:10},3:{name:"(anonymous_3)",decl:{start:{line:21,column:2},end:{line:21,column:3}},loc:{start:{line:21,column:35},end:{line:47,column:3}},line:21},4:{name:"(anonymous_4)",decl:{start:{line:48,column:2},end:{line:48,column:3}},loc:{start:{line:48,column:11},end:{line:97,column:3}},line:48},5:{name:"(anonymous_5)",decl:{start:{line:50,column:43},end:{line:50,column:44}},loc:{start:{line:50,column:62},end:{line:95,column:5}},line:50},6:{name:"(anonymous_6)",decl:{start:{line:51,column:48},end:{line:51,column:49}},loc:{start:{line:51,column:66},end:{line:90,column:7}},line:51},7:{name:"(anonymous_7)",decl:{start:{line:69,column:27},end:{line:69,column:28}},loc:{start:{line:69,column:33},end:{line:71,column:19}},line:69}},branchMap:{0:{loc:{start:{line:8,column:4},end:{line:16,column:5}},type:"if",locations:[{start:{line:8,column:4},end:{line:16,column:5}},{start:{line:12,column:11},end:{line:16,column:5}}],line:8},1:{loc:{start:{line:13,column:47},end:{line:13,column:91}},type:"binary-expr",locations:[{start:{line:13,column:47},end:{line:13,column:85}},{start:{line:13,column:89},end:{line:13,column:91}}],line:13},2:{loc:{start:{line:22,column:4},end:{line:24,column:5}},type:"if",locations:[{start:{line:22,column:4},end:{line:24,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22},3:{loc:{start:{line:28,column:6},end:{line:36,column:7}},type:"if",locations:[{start:{line:28,column:6},end:{line:36,column:7}},{start:{line:30,column:13},end:{line:36,column:7}}],line:28},4:{loc:{start:{line:28,column:10},end:{line:28,column:100}},type:"binary-expr",locations:[{start:{line:28,column:10},end:{line:28,column:72}},{start:{line:28,column:76},end:{line:28,column:100}}],line:28},5:{loc:{start:{line:30,column:13},end:{line:36,column:7}},type:"if",locations:[{start:{line:30,column:13},end:{line:36,column:7}},{start:{line:32,column:13},end:{line:36,column:7}}],line:30},6:{loc:{start:{line:30,column:17},end:{line:30,column:107}},type:"binary-expr",locations:[{start:{line:30,column:17},end:{line:30,column:79}},{start:{line:30,column:83},end:{line:30,column:107}}],line:30},7:{loc:{start:{line:32,column:13},end:{line:36,column:7}},type:"if",locations:[{start:{line:32,column:13},end:{line:36,column:7}},{start:{line:34,column:13},end:{line:36,column:7}}],line:32},8:{loc:{start:{line:32,column:17},end:{line:32,column:107}},type:"binary-expr",locations:[{start:{line:32,column:17},end:{line:32,column:79}},{start:{line:32,column:83},end:{line:32,column:107}}],line:32},9:{loc:{start:{line:34,column:13},end:{line:36,column:7}},type:"if",locations:[{start:{line:34,column:13},end:{line:36,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34},10:{loc:{start:{line:34,column:17},end:{line:34,column:127}},type:"binary-expr",locations:[{start:{line:34,column:17},end:{line:34,column:89}},{start:{line:34,column:93},end:{line:34,column:127}}],line:34},11:{loc:{start:{line:37,column:6},end:{line:42,column:7}},type:"if",locations:[{start:{line:37,column:6},end:{line:42,column:7}},{start:{line:40,column:13},end:{line:42,column:7}}],line:37},12:{loc:{start:{line:73,column:20},end:{line:77,column:24}},type:"binary-expr",locations:[{start:{line:73,column:20},end:{line:73,column:38}},{start:{line:73,column:58},end:{line:77,column:24}}],line:73},13:{loc:{start:{line:79,column:20},end:{line:82,column:24}},type:"binary-expr",locations:[{start:{line:79,column:20},end:{line:79,column:35}},{start:{line:79,column:55},end:{line:82,column:24}}],line:79}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlLayerPopup.tsx"],names:[],mappings:"AAqFU,cAkBsB,YAlBtB;AArFV,OAAO,WAAW;AAClB,OAAO,eAAe;AAGtB,SAAS,2BAA2B,UAA4B;AAC9D,QAAM,UAA6C,CAAC;AAEpD,QAAM,mBAA4C,CAAC;AAEnD,WAAS,QAAQ,aAAW;AAC1B,QAAG,OAAO,UAAU,eAAe,KAAK,kBAAkB,QAAQ,MAAM,EAAE,GAAG;AAC3E,uBAAiB,QAAQ,MAAM,EAAE;AAEjC,YAAM,gBAAgB,QAAQ,QAAQ,MAAM,cAAc,CAAC,EAAE,KAAK,CAAC,MAAsB,EAAE,MAAM,OAAO,QAAQ,MAAM,EAAE;AAExH,oBAAe,UAAU,iBAAiB,QAAQ,MAAM,EAAE;AAAA,IAC5D,OAAO;AACL,cAAQ,QAAQ,MAAM,cAAc,CAAC,IAAI,QAAQ,QAAQ,MAAM,cAAc,CAAC,KAAK,CAAC;AACpF,cAAQ,QAAQ,MAAM,cAAc,CAAC,EAAE,KAAK,OAAO;AAEnD,uBAAiB,QAAQ,MAAM,EAAE,IAAI;AAAA,IACvC;AAAA,EACF,CAAC;AAED,SAAO;AACT;AAQA,MAAM,0BAA0B,MAAM,UAAkC;AAAA,EACtE,iBAAiB,SAAyB,OAAgB;AAExD,QAAI,CAAC,QAAQ,MAAM,OAAO;AACxB;AAAA,IACF;AAEA,QAAI;AACF,YAAM,aAAa,QAAQ,MAAM;AACjC,UAAI;AAEJ,UAAG,OAAO,UAAU,eAAe,KAAK,YAAY,YAAY,KAAK,WAAW,YAAY,GAAG;AAC7F,mBAAW;AAAA,MACb,WACS,OAAO,UAAU,eAAe,KAAK,YAAY,YAAY,KAAK,WAAW,YAAY,GAAG;AACnG,mBAAW;AAAA,MACb,WACS,OAAO,UAAU,eAAe,KAAK,YAAY,YAAY,KAAK,WAAW,YAAY,GAAG;AACnG,mBAAW;AAAA,MACb,WACS,OAAO,UAAU,eAAe,KAAK,YAAY,sBAAsB,KAAK,WAAW,sBAAsB,GAAG;AACvH,mBAAW;AAAA,MACb;AAEA,UAAG,UAAU;AACX,cAAM,QAAQ,QAAQ,MAAM,MAAM,QAAQ;AAC1C,eAAO,OAAO,KAAK;AAAA,MACrB,OACK;AAEH,eAAO;AAAA,MACT;AAAA,IACF,SAGO,KAAK;AACV,cAAQ,KAAK,uCAAuC,GAAG;AACvD,aAAO;AAAA,IACT;AAAA,EACF;AAAA,EAEA,SAAS;AACP,UAAM,UAAU,2BAA2B,KAAK,MAAM,QAAQ;AAE9D,UAAM,QAAQ,OAAO,KAAK,OAAO,EAAE,IAAI,mBAAiB;AACtD,YAAM,SAAS,QAAQ,aAAa,EAAE,IAAI,CAAC,SAAyB,QAAgB;AAClF,cAAM,eAAe,KAAK,iBAAiB,SAAS,KAAK,MAAM,IAAI;AAEnE,eAAO;AAAA,UAAC;AAAA;AAAA,YAEN,WAAU;AAAA,YAEV;AAAA;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAU;AAAA,kBACV,OAAO,EAAC,YAAY,aAAY;AAAA;AAAA,cACjC;AAAA,cACD;AAAA,gBAAC;AAAA;AAAA,kBACC,WAAU;AAAA,kBACV,SAAS,MAAM;AACb,yBAAK,MAAM,cAAc,QAAQ,MAAM,EAAE;AAAA,kBAC3C;AAAA,kBAEC;AAAA,4BAAQ,MAAM,QACb,oBAAC,aAAU,MAAM,QAAQ,MAAM,MAAM,OAAO;AAAA,sBAC1C,OAAO;AAAA,sBACP,QAAQ;AAAA,sBACR,cAAc;AAAA,oBAChB,GAAE;AAAA,oBAEH,QAAQ,MAAM;AAAA,oBACd,QAAQ,WAAW,qBAAC,UAAK;AAAA;AAAA,sBAAI,QAAQ;AAAA,uBAAQ;AAAA;AAAA;AAAA,cAChD;AAAA;AAAA;AAAA,UAtBK;AAAA,QAuBP;AAAA,MACF,CAAC;AACD,aAAO,qBAAC,SACN;AAAA,4BAAC,SAAI,WAAU,2BAA2B,yBAAc;AAAA,QACvD;AAAA,WAFc,aAGjB;AAAA,IACF,CAAC;AAED,WAAO,oBAAC,SAAI,WAAU,gCACnB,iBACH;AAAA,EACF;AACF;AAGA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8ac820d45b409d4d358e8cb1f505fcc4025456db"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return hr=function(){return s},s}hr();function IJ(e){hr().f[0]++;const n=(hr().s[0]++,{}),t=(hr().s[1]++,{});return hr().s[2]++,e.forEach(r=>{if(hr().f[1]++,hr().s[3]++,Object.prototype.hasOwnProperty.call(t,r.layer.id)){hr().b[0][0]++,hr().s[4]++,t[r.layer.id]++;const i=(hr().s[5]++,n[r.layer["source-layer"]].find(o=>(hr().f[2]++,hr().s[6]++,o.layer.id===r.layer.id)));hr().s[7]++,i.counter=t[r.layer.id]}else hr().b[0][1]++,hr().s[8]++,n[r.layer["source-layer"]]=(hr().b[1][0]++,n[r.layer["source-layer"]]||(hr().b[1][1]++,[])),hr().s[9]++,n[r.layer["source-layer"]].push(r),hr().s[10]++,t[r.layer.id]=1}),hr().s[11]++,n}class HR extends bn.Component{_getFeatureColor(n,t){if(hr().f[3]++,hr().s[12]++,n.layer.paint)hr().b[2][1]++;else{hr().b[2][0]++,hr().s[13]++;return}hr().s[14]++;try{const r=(hr().s[15]++,n.layer.paint);let i;if(hr().s[16]++,hr().b[4][0]++,Object.prototype.hasOwnProperty.call(r,"text-color")&&(hr().b[4][1]++,r["text-color"])?(hr().b[3][0]++,hr().s[17]++,i="text-color"):(hr().b[3][1]++,hr().s[18]++,hr().b[6][0]++,Object.prototype.hasOwnProperty.call(r,"fill-color")&&(hr().b[6][1]++,r["fill-color"])?(hr().b[5][0]++,hr().s[19]++,i="fill-color"):(hr().b[5][1]++,hr().s[20]++,hr().b[8][0]++,Object.prototype.hasOwnProperty.call(r,"line-color")&&(hr().b[8][1]++,r["line-color"])?(hr().b[7][0]++,hr().s[21]++,i="line-color"):(hr().b[7][1]++,hr().s[22]++,hr().b[10][0]++,Object.prototype.hasOwnProperty.call(r,"fill-extrusion-color")&&(hr().b[10][1]++,r["fill-extrusion-color"])?(hr().b[9][0]++,hr().s[23]++,i="fill-extrusion-color"):hr().b[9][1]++))),hr().s[24]++,i){hr().b[11][0]++;const o=(hr().s[25]++,n.layer.paint[i]);return hr().s[26]++,String(o)}else return hr().b[11][1]++,hr().s[27]++,"black"}catch(r){return hr().s[28]++,console.warn("Unable to get feature color, error:",r),hr().s[29]++,"black"}}render(){hr().f[4]++;const n=(hr().s[30]++,IJ(this.props.features)),t=(hr().s[31]++,Object.keys(n).map(r=>{hr().f[5]++;const i=(hr().s[32]++,n[r].map((o,s)=>{hr().f[6]++;const a=(hr().s[33]++,this._getFeatureColor(o,this.props.zoom));return hr().s[34]++,N.jsxs("div",{className:"maputnik-popup-layer",children:[N.jsx("div",{className:"maputnik-popup-layer__swatch",style:{background:a}}),N.jsxs("label",{className:"maputnik-popup-layer__label",onClick:()=>{hr().f[7]++,hr().s[35]++,this.props.onLayerSelect(o.layer.id)},children:[(hr().b[12][0]++,o.layer.type&&(hr().b[12][1]++,N.jsx(VR,{type:o.layer.type,style:{width:14,height:14,paddingRight:3}}))),o.layer.id,(hr().b[13][0]++,o.counter&&(hr().b[13][1]++,N.jsxs("span",{children:[" × ",o.counter]})))]})]},s)}));return hr().s[36]++,N.jsxs("div",{children:[N.jsx("div",{className:"maputnik-popup-layer-id",children:r}),i]},r)}));return hr().s[37]++,N.jsx("div",{className:"maputnik-feature-layer-popup",children:t})}}var ZR={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var o="",s=0;s{ko().f[1]++,ko().s[3]++,this.setState({open:t},()=>{ko().f[2]++,ko().s[4]++,this.props.onToggleDoc?(ko().b[0][0]++,ko().s[5]++,this.props.onToggleDoc(this.state.open)):ko().b[0][1]++})}));ko().s[1]++,this.state={open:!1}}render(){ko().f[3]++;const{label:t,fieldSpec:r}=(ko().s[6]++,this.props),{doc:i}=(ko().s[7]++,ko().b[1][0]++,r||(ko().b[1][1]++,{}));if(ko().s[8]++,i)return ko().b[2][0]++,ko().s[9]++,N.jsx("label",{className:"maputnik-doc-wrapper",children:N.jsxs("div",{className:"maputnik-doc-target",children:[t," ",N.jsx("button",{"aria-label":this.state.open?(ko().b[3][0]++,"close property documentation"):(ko().b[3][1]++,"open property documentation"),className:`maputnik-doc-button maputnik-doc-button--${this.state.open?(ko().b[4][0]++,"open"):(ko().b[4][1]++,"closed")}`,onClick:()=>(ko().f[4]++,ko().s[10]++,this.onToggleDoc(!this.state.open)),"data-wd-key":"field-doc-button-"+t,children:this.state.open?(ko().b[5][0]++,N.jsx(hJ,{})):(ko().b[5][1]++,N.jsx(fJ,{}))})]})});if(ko().b[2][1]++,ko().s[11]++,t)return ko().b[6][0]++,ko().s[12]++,N.jsx("label",{className:"maputnik-doc-wrapper",children:N.jsx("div",{className:"maputnik-doc-target",children:t})});ko().b[6][1]++,ko().s[13]++}}function ha(){var e="/home/runner/work/maputnik/maputnik/src/components/Doc.tsx",n="17184511a0ae3c272ec6d16762ac334920d5242e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Doc.tsx",statementMap:{0:{start:{line:3,column:16},end:{line:8,column:1}},1:{start:{line:11,column:26},end:{line:11,column:36}},2:{start:{line:12,column:28},end:{line:12,column:37}},3:{start:{line:13,column:23},end:{line:13,column:47}},4:{start:{line:14,column:25},end:{line:16,column:26}},5:{start:{line:17,column:4},end:{line:47,column:9}},6:{start:{line:21,column:10},end:{line:24,column:20}},7:{start:{line:31,column:12},end:{line:31,column:75}},8:{start:{line:35,column:10},end:{line:44,column:20}},9:{start:{line:38,column:14},end:{line:42,column:15}},10:{start:{line:39,column:16},end:{line:39,column:81}},11:{start:{line:41,column:16},end:{line:41,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:11},end:{line:48,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:20,column:119},end:{line:20,column:120}},loc:{start:{line:20,column:137},end:{line:25,column:9}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:30,column:37},end:{line:30,column:38}},loc:{start:{line:30,column:49},end:{line:32,column:11}},line:30},3:{name:"(anonymous_3)",decl:{start:{line:34,column:80},end:{line:34,column:81}},loc:{start:{line:34,column:103},end:{line:45,column:9}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:37,column:37},end:{line:37,column:38}},loc:{start:{line:37,column:44},end:{line:43,column:13}},line:37}},branchMap:{0:{loc:{start:{line:14,column:25},end:{line:16,column:26}},type:"binary-expr",locations:[{start:{line:14,column:25},end:{line:14,column:33}},{start:{line:16,column:4},end:{line:16,column:26}}],line:14},1:{loc:{start:{line:18,column:6},end:{line:26,column:10}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:9}},{start:{line:18,column:29},end:{line:26,column:10}}],line:18},2:{loc:{start:{line:20,column:8},end:{line:25,column:13}},type:"binary-expr",locations:[{start:{line:20,column:8},end:{line:20,column:20}},{start:{line:20,column:40},end:{line:25,column:13}}],line:20},3:{loc:{start:{line:27,column:6},end:{line:46,column:13}},type:"binary-expr",locations:[{start:{line:27,column:6},end:{line:27,column:16}},{start:{line:27,column:36},end:{line:46,column:13}}],line:27},4:{loc:{start:{line:38,column:14},end:{line:42,column:15}},type:"if",locations:[{start:{line:38,column:14},end:{line:42,column:15}},{start:{line:40,column:21},end:{line:42,column:15}}],line:38}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Doc.tsx"],names:[],mappings:"AAsCM,mBAGM,KAKQ,YARd;AAtCN,OAAO,WAAW;AAElB,MAAM,UAAU;AAAA,EACd,IAAI;AAAA,EACJ,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AACT;AAgBA,qBAAqB,YAAY,MAAM,UAAoB;AAAA,EACzD,SAAU;AACR,UAAM,EAAC,UAAS,IAAI,KAAK;AAEzB,UAAM,EAAC,KAAK,OAAM,IAAI;AACtB,UAAM,aAAa,UAAU,aAAa;AAE1C,UAAM,eACJ,CAAC,CAAC;AAAA;AAAA,IAGF,CAAC,MAAM,QAAQ,MAAM;AAGvB,WACE,iCACG;AAAA,aACC,qBAAC,SAAI,WAAU,WACb;AAAA,4BAAC,SAAI,WAAU,gBAAe,eAAY,kBAAkB,eAAI;AAAA,QAC/D,gBACC,oBAAC,QAAG,WAAU,mBACX,iBAAO,QAAQ,MAAM,EAAE,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM;AAC5C,iBACE,qBAAC,QACC;AAAA,gCAAC,UAAM,eAAK,UAAU,GAAG,GAAE;AAAA,YAC3B,oBAAC,SAAK,gBAAM,KAAI;AAAA,eAFT,GAGT;AAAA,QAEJ,CAAC,GACH;AAAA,SAEJ;AAAA,MAED,cACC,oBAAC,SAAI,WAAU,wBACb,+BAAC,WAAM,WAAU,+BACf;AAAA,4BAAC,WACC,+BAAC,QACC;AAAA,8BAAC,QAAG;AAAA,UACH,OAAO,OAAO,OAAO,EAAE,IAAI,YAAU;AACpC,mBAAO,oBAAC,QAAiB,oBAAT,MAAgB;AAAA,UAClC,CAAC;AAAA,WACH,GACF;AAAA,QACA,oBAAC,WACE,iBAAO,QAAQ,UAAU,EAAE,IAAI,CAAC,CAAC,KAAK,UAAU,MAAM;AACrD,iBACE,qBAAC,QACC;AAAA,gCAAC,QAAI,eAAI;AAAA,YACR,OAAO,KAAK,OAAO,EAAE,IAAI,CAAC,MAAM;AAC/B,kBAAI,OAAO,UAAU,eAAe,KAAK,YAAY,CAAC,GAAG;AACvD,uBAAO,oBAAC,QAAY,qBAAW,CAAyB,KAAxC,CAA0C;AAAA,cAC5D,OACK;AACH,uBAAO,oBAAC,QAAW,kBAAH,CAAK;AAAA,cACvB;AAAA,YACF,CAAC;AAAA,eATM,GAUT;AAAA,QAEJ,CAAC,GACH;AAAA,SACF,GACF;AAAA,OAEJ;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"17184511a0ae3c272ec6d16762ac334920d5242e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ha=function(){return s},s}ha();const JI=(ha().s[0]++,{js:"JS",android:"Android",ios:"iOS",macos:"macOS"});class FB extends bn.Component{render(){ha().f[0]++;const{fieldSpec:n}=(ha().s[1]++,this.props),{doc:t,values:r}=(ha().s[2]++,n),i=(ha().s[3]++,n["sdk-support"]),o=(ha().s[4]++,ha().b[0][0]++,!!r&&(ha().b[0][1]++,!Array.isArray(r)));return ha().s[5]++,N.jsxs(N.Fragment,{children:[(ha().b[1][0]++,t&&(ha().b[1][1]++,N.jsxs("div",{className:"SpecDoc",children:[N.jsx("div",{className:"SpecDoc__doc","data-wd-key":"spec-field-doc",children:t}),(ha().b[2][0]++,o&&(ha().b[2][1]++,N.jsx("ul",{className:"SpecDoc__values",children:Object.entries(r).map(([s,a])=>(ha().f[1]++,ha().s[6]++,N.jsxs("li",{children:[N.jsx("code",{children:JSON.stringify(s)}),N.jsx("div",{children:a.doc})]},s)))})))]}))),(ha().b[3][0]++,i&&(ha().b[3][1]++,N.jsx("div",{className:"SpecDoc__sdk-support",children:N.jsxs("table",{className:"SpecDoc__sdk-support__table",children:[N.jsx("thead",{children:N.jsxs("tr",{children:[N.jsx("th",{}),Object.values(JI).map(s=>(ha().f[2]++,ha().s[7]++,N.jsx("th",{children:s},s)))]})}),N.jsx("tbody",{children:Object.entries(i).map(([s,a])=>(ha().f[3]++,ha().s[8]++,N.jsxs("tr",{children:[N.jsx("td",{children:s}),Object.keys(JI).map(f=>(ha().f[4]++,ha().s[9]++,Object.prototype.hasOwnProperty.call(a,f)?(ha().b[4][0]++,ha().s[10]++,N.jsx("td",{children:a[f]},f)):(ha().b[4][1]++,ha().s[11]++,N.jsx("td",{children:"no"},f))))]},s)))})]})})))]})}}function io(){var e="/home/runner/work/maputnik/maputnik/src/components/Block.tsx",n="79082a0e6b5f812e7e85f0d24298fdd4bfc28eb8",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Block.tsx",statementMap:{0:{start:{line:7,column:13},end:{line:7,column:17}},1:{start:{line:9,column:4},end:{line:9,column:17}},2:{start:{line:10,column:4},end:{line:12,column:6}},3:{start:{line:15,column:18},end:{line:15,column:32}},4:{start:{line:16,column:4},end:{line:18,column:5}},5:{start:{line:17,column:6},end:{line:17,column:64}},6:{start:{line:20,column:16},end:{line:24,column:3}},7:{start:{line:21,column:4},end:{line:23,column:7}},8:{start:{line:31,column:17},end:{line:38,column:3}},9:{start:{line:32,column:15},end:{line:32,column:39}},10:{start:{line:33,column:21},end:{line:33,column:48}},11:{start:{line:34,column:4},end:{line:36,column:5}},12:{start:{line:35,column:6},end:{line:35,column:30}},13:{start:{line:37,column:4},end:{line:37,column:27}},14:{start:{line:40,column:4},end:{line:73,column:6}},15:{start:{line:62,column:95},end:{line:62,column:113}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:2},end:{line:8,column:3}},loc:{start:{line:8,column:21},end:{line:13,column:3}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:14},end:{line:19,column:3}},line:14},2:{name:"(anonymous_2)",decl:{start:{line:20,column:16},end:{line:20,column:17}},loc:{start:{line:20,column:25},end:{line:24,column:3}},line:20},3:{name:"(anonymous_3)",decl:{start:{line:31,column:17},end:{line:31,column:18}},loc:{start:{line:31,column:28},end:{line:38,column:3}},line:31},4:{name:"(anonymous_4)",decl:{start:{line:39,column:2},end:{line:39,column:3}},loc:{start:{line:39,column:11},end:{line:74,column:3}},line:39},5:{name:"(anonymous_5)",decl:{start:{line:62,column:87},end:{line:62,column:88}},loc:{start:{line:62,column:95},end:{line:62,column:113}},line:62}},branchMap:{0:{loc:{start:{line:16,column:4},end:{line:18,column:5}},type:"if",locations:[{start:{line:16,column:4},end:{line:18,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:16},1:{loc:{start:{line:17,column:33},end:{line:17,column:62}},type:"cond-expr",locations:[{start:{line:17,column:48},end:{line:17,column:54}},{start:{line:17,column:57},end:{line:17,column:62}}],line:17},2:{loc:{start:{line:34,column:4},end:{line:36,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:36,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34},3:{loc:{start:{line:34,column:8},end:{line:34,column:66}},type:"binary-expr",locations:[{start:{line:34,column:8},end:{line:34,column:53}},{start:{line:34,column:57},end:{line:34,column:66}}],line:34},4:{loc:{start:{line:52,column:10},end:{line:59,column:14}},type:"binary-expr",locations:[{start:{line:52,column:10},end:{line:52,column:30}},{start:{line:52,column:50},end:{line:59,column:14}}],line:52},5:{loc:{start:{line:60,column:10},end:{line:60,column:134}},type:"binary-expr",locations:[{start:{line:60,column:10},end:{line:60,column:31}},{start:{line:60,column:51},end:{line:60,column:134}}],line:60},6:{loc:{start:{line:63,column:10},end:{line:70,column:11}},type:"binary-expr",locations:[{start:{line:63,column:10},end:{line:63,column:30}},{start:{line:63,column:50},end:{line:70,column:11}}],line:63},7:{loc:{start:{line:67,column:32},end:{line:67,column:64}},type:"cond-expr",locations:[{start:{line:67,column:53},end:{line:67,column:55}},{start:{line:67,column:58},end:{line:67,column:64}}],line:67}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Block.tsx"],names:[],mappings:"AA8DW,SAWD,KAXC;AA9DX,OAAO,WAA6B;AACpC,OAAO,gBAAgB;AACvB,OAAO,mBAAmB;AAC1B,OAAO,SAAS;AAmBhB,qBAAqB,cAAc,MAAM,UAAkC;AAAA,EACzE,WAAkC;AAAA,EAElC,YAAa,OAAmB;AAC9B,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,SAAS,GAAwE;AAC/E,UAAM,QAAQ,EAAE,OAAO;AACvB,QAAI,KAAK,MAAM,UAAU;AACvB,aAAO,KAAK,MAAM,SAAS,UAAU,KAAK,SAAY,KAAK;AAAA,IAC7D;AAAA,EACF;AAAA,EAEA,cAAc,CAAC,QAAiB;AAC9B,SAAK,SAAS;AAAA,MACZ,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,eAAe,CAAC,UAAoC;AAClD,UAAM,KAAK,MAAM,YAAY;AAC7B,UAAM,WAAW,KAAK,UAAU,SAAS,EAAE;AAE3C,QAAI,MAAM,YAAY,OAAO,aAAa,WAAW,CAAC,UAAU;AAC9D,YAAM,gBAAgB;AAAA,IACxB;AACA,UAAM,eAAe;AAAA,EACvB;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QAAM,OAAO,KAAK,MAAM;AAAA,QAC9B,eAAa,KAAK,MAAM,aAAa;AAAA,QACrC,WAAW,WAAW;AAAA,UACpB,wBAAwB;AAAA,UACxB,8BAA8B,KAAK,MAAM;AAAA,UACzC,yBAAyB,KAAK,MAAM;AAAA,QACtC,CAAC;AAAA,QACD,SAAS,KAAK;AAAA,QAEb;AAAA,eAAK,MAAM,aACV,oBAAC,SAAI,WAAU,8BACb;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,KAAK,MAAM;AAAA,cAClB,aAAa,KAAK;AAAA,cAClB,WAAW,KAAK,MAAM;AAAA;AAAA,UACxB,GACF;AAAA,UAED,CAAC,KAAK,MAAM,aACX,oBAAC,SAAI,WAAU,8BACZ,eAAK,MAAM,OACd;AAAA,UAEF,oBAAC,SAAI,WAAU,+BACZ,eAAK,MAAM,QACd;AAAA,UACA,oBAAC,SAAI,WAAU,gCAA+B,KAAK,QAAM,KAAK,WAAW,IACtE,eAAK,MAAM,UACd;AAAA,UACC,KAAK,MAAM,aACV;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,OAAO,EAAC,SAAS,KAAK,MAAM,UAAU,KAAK,OAAM;AAAA,cAEjD,8BAAC,OAAI,WAAW,KAAK,MAAM,WAAW;AAAA;AAAA,UACxC;AAAA;AAAA;AAAA,IAEJ;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"79082a0e6b5f812e7e85f0d24298fdd4bfc28eb8"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return io=function(){return s},s}io();class Uo extends bn.Component{constructor(t){io().f[0]++,io().s[1]++;super(t);nn(this,"_blockEl",(io().s[0]++,null));nn(this,"onToggleDoc",(io().s[6]++,t=>{io().f[2]++,io().s[7]++,this.setState({showDoc:t})}));nn(this,"onLabelClick",(io().s[8]++,t=>{var o;io().f[3]++;const r=(io().s[9]++,t.nativeEvent.target),i=(io().s[10]++,(o=this._blockEl)==null?void 0:o.contains(r));io().s[11]++,io().b[3][0]++,t.nativeEvent.target.nodeName!=="INPUT"&&(io().b[3][1]++,!i)?(io().b[2][0]++,io().s[12]++,t.stopPropagation()):io().b[2][1]++,io().s[13]++,t.preventDefault()}));io().s[2]++,this.state={showDoc:!1}}onChange(t){io().f[1]++;const r=(io().s[3]++,t.target.value);if(io().s[4]++,this.props.onChange)return io().b[0][0]++,io().s[5]++,this.props.onChange(r===""?(io().b[1][0]++,void 0):(io().b[1][1]++,r));io().b[0][1]++}render(){return io().f[4]++,io().s[14]++,N.jsxs("label",{style:this.props.style,"data-wd-key":this.props["data-wd-key"],className:Af({"maputnik-input-block":!0,"maputnik-input-block--wide":this.props.wideMode,"maputnik-action-block":this.props.action}),onClick:this.onLabelClick,children:[(io().b[4][0]++,this.props.fieldSpec&&(io().b[4][1]++,N.jsx("div",{className:"maputnik-input-block-label",children:N.jsx(PB,{label:this.props.label,onToggleDoc:this.onToggleDoc,fieldSpec:this.props.fieldSpec})}))),(io().b[5][0]++,!this.props.fieldSpec&&(io().b[5][1]++,N.jsx("div",{className:"maputnik-input-block-label",children:this.props.label}))),N.jsx("div",{className:"maputnik-input-block-action",children:this.props.action}),N.jsx("div",{className:"maputnik-input-block-content",ref:t=>(io().f[5]++,io().s[15]++,this._blockEl=t),children:this.props.children}),(io().b[6][0]++,this.props.fieldSpec&&(io().b[6][1]++,N.jsx("div",{className:"maputnik-doc-inline",style:{display:this.state.showDoc?(io().b[7][0]++,""):(io().b[7][1]++,"none")},children:N.jsx(FB,{fieldSpec:this.props.fieldSpec})})))]})}}function Jr(){var e="/home/runner/work/maputnik/maputnik/src/components/InputString.tsx",n="7edd0434d5570710fce0bf88d87716b3e75434c4",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputString.tsx",statementMap:{0:{start:{line:3,column:24},end:{line:6,column:3}},1:{start:{line:8,column:4},end:{line:8,column:17}},2:{start:{line:9,column:4},end:{line:12,column:6}},3:{start:{line:15,column:4},end:{line:19,column:5}},4:{start:{line:16,column:6},end:{line:18,column:8}},5:{start:{line:20,column:4},end:{line:20,column:14}},6:{start:{line:25,column:4},end:{line:36,column:5}},7:{start:{line:26,column:6},end:{line:26,column:23}},8:{start:{line:27,column:6},end:{line:30,column:8}},9:{start:{line:32,column:6},end:{line:32,column:20}},10:{start:{line:33,column:6},end:{line:35,column:8}},11:{start:{line:37,column:4},end:{line:39,column:5}},12:{start:{line:38,column:6},end:{line:38,column:48}},13:{start:{line:40,column:4},end:{line:72,column:7}},14:{start:{line:51,column:8},end:{line:57,column:11}},15:{start:{line:55,column:10},end:{line:56,column:49}},16:{start:{line:56,column:12},end:{line:56,column:49}},17:{start:{line:60,column:8},end:{line:64,column:9}},18:{start:{line:61,column:10},end:{line:61,column:44}},19:{start:{line:62,column:10},end:{line:63,column:50}},20:{start:{line:63,column:12},end:{line:63,column:50}},21:{start:{line:67,column:8},end:{line:69,column:9}},22:{start:{line:68,column:10},end:{line:68,column:48}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:13},end:{line:4,column:14}},loc:{start:{line:4,column:19},end:{line:5,column:5}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:7,column:2},end:{line:7,column:3}},loc:{start:{line:7,column:21},end:{line:13,column:3}},line:7},2:{name:"(anonymous_2)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:48},end:{line:21,column:3}},line:14},3:{name:"(anonymous_3)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:11},end:{line:73,column:3}},line:22},4:{name:"(anonymous_4)",decl:{start:{line:50,column:16},end:{line:50,column:17}},loc:{start:{line:50,column:23},end:{line:58,column:7}},line:50},5:{name:"(anonymous_5)",decl:{start:{line:54,column:11},end:{line:54,column:12}},loc:{start:{line:54,column:17},end:{line:57,column:9}},line:54},6:{name:"(anonymous_6)",decl:{start:{line:59,column:14},end:{line:59,column:15}},loc:{start:{line:59,column:20},end:{line:65,column:7}},line:59},7:{name:"(anonymous_7)",decl:{start:{line:66,column:17},end:{line:66,column:18}},loc:{start:{line:66,column:24},end:{line:70,column:7}},line:66}},branchMap:{0:{loc:{start:{line:11,column:13},end:{line:11,column:30}},type:"binary-expr",locations:[{start:{line:11,column:13},end:{line:11,column:24}},{start:{line:11,column:28},end:{line:11,column:30}}],line:11},1:{loc:{start:{line:15,column:4},end:{line:19,column:5}},type:"if",locations:[{start:{line:15,column:4},end:{line:19,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},2:{loc:{start:{line:25,column:4},end:{line:36,column:5}},type:"if",locations:[{start:{line:25,column:4},end:{line:36,column:5}},{start:{line:31,column:11},end:{line:36,column:5}}],line:25},3:{loc:{start:{line:37,column:4},end:{line:39,column:5}},type:"if",locations:[{start:{line:37,column:4},end:{line:39,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:37},4:{loc:{start:{line:43,column:18},end:{line:43,column:125}},type:"cond-expr",locations:[{start:{line:43,column:83},end:{line:43,column:104}},{start:{line:43,column:107},end:{line:43,column:125}}],line:43},5:{loc:{start:{line:47,column:13},end:{line:47,column:64}},type:"cond-expr",locations:[{start:{line:47,column:43},end:{line:47,column:45}},{start:{line:47,column:48},end:{line:47,column:64}}],line:47},6:{loc:{start:{line:55,column:10},end:{line:56,column:49}},type:"if",locations:[{start:{line:55,column:10},end:{line:56,column:49}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:55},7:{loc:{start:{line:60,column:8},end:{line:64,column:9}},type:"if",locations:[{start:{line:60,column:8},end:{line:64,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:60},8:{loc:{start:{line:62,column:10},end:{line:63,column:50}},type:"if",locations:[{start:{line:62,column:10},end:{line:63,column:50}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:62},9:{loc:{start:{line:67,column:8},end:{line:69,column:9}},type:"if",locations:[{start:{line:67,column:8},end:{line:69,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:67},10:{loc:{start:{line:67,column:12},end:{line:67,column:51}},type:"binary-expr",locations:[{start:{line:67,column:12},end:{line:67,column:28}},{start:{line:67,column:32},end:{line:67,column:51}}],line:67}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputString.tsx"],names:[],mappings:"AAAA,OAAO,WAAW;AAsBlB,qBAAqB,oBAAoB,MAAM,UAA8C;AAAA,EAC3F,OAAO,eAAe;AAAA,IACpB,SAAS,MAAM;AAAA,IAAC;AAAA,EAClB;AAAA,EAEA,YAAY,OAAyB;AACnC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,SAAS;AAAA,MACT,OAAO,MAAM,SAAS;AAAA,IACxB;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAAyB,OAAyB;AAChF,QAAI,CAAC,MAAM,SAAS;AAClB,aAAO;AAAA,QACL,OAAO,MAAM;AAAA,MACf;AAAA,IACF;AACA,WAAO,CAAC;AAAA,EACV;AAAA,EAEA,SAAS;AACP,QAAI;AACJ,QAAI;AAEJ,QAAG,KAAK,MAAM,OAAO;AACnB,YAAM;AACN,gBAAU;AAAA,QACR;AAAA,QACA;AAAA,MACF;AAAA,IACF,OACK;AACH,YAAM;AACN,gBAAU;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAEA,QAAG,KAAK,MAAM,UAAU;AACtB,cAAQ,KAAK,2BAA2B;AAAA,IAC1C;AAEA,WAAO,MAAM,cAAc,KAAK;AAAA,MAC9B,cAAc,KAAK,MAAM,YAAY;AAAA,MACrC,eAAe,KAAK,MAAM,aAAa;AAAA,MACvC,YAAY,OAAO,UAAU,eAAe,KAAK,KAAK,OAAO,YAAY,IAAI,KAAK,MAAM,aAAa,EAAE,QAAQ;AAAA,MAC/G,UAAU,KAAK,MAAM;AAAA,MACrB,WAAW,QAAQ,KAAK,GAAG;AAAA,MAC3B,OAAO,KAAK,MAAM;AAAA,MAClB,OAAO,KAAK,MAAM,UAAU,SAAY,KAAK,KAAK,MAAM;AAAA,MACxD,aAAa,KAAK,MAAM;AAAA,MACxB,OAAO,KAAK,MAAM;AAAA,MAClB,UAAU,CAAC,MAA2E;AACpF,aAAK,SAAS;AAAA,UACZ,SAAS;AAAA,UACT,OAAO,EAAE,OAAO;AAAA,QAClB,GAAG,MAAM;AACP,cAAI,KAAK,MAAM;AAAS,iBAAK,MAAM,QAAQ,KAAK,MAAM,KAAK;AAAA,QAC7D,CAAC;AAAA,MACH;AAAA,MACA,QAAQ,MAAM;AACZ,YAAG,KAAK,MAAM,UAAQ,KAAK,MAAM,OAAO;AACtC,eAAK,SAAS,EAAC,SAAS,MAAK,CAAC;AAC9B,cAAI,KAAK,MAAM;AAAU,iBAAK,MAAM,SAAS,KAAK,MAAM,KAAK;AAAA,QAC/D;AAAA,MACF;AAAA,MACA,WAAW,CAAC,MAAM;AAChB,YAAI,EAAE,YAAY,MAAM,KAAK,MAAM,UAAU;AAC3C,eAAK,MAAM,SAAS,KAAK,MAAM,KAAK;AAAA,QACtC;AAAA,MACF;AAAA,MACA,UAAU,KAAK,MAAM;AAAA,IACvB,CAAC;AAAA,EACH;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7edd0434d5570710fce0bf88d87716b3e75434c4"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Jr=function(){return s},s}Jr();class Sd extends bn.Component{constructor(n){Jr().f[1]++,Jr().s[1]++,super(n),Jr().s[2]++,this.state={editing:!1,value:(Jr().b[0][0]++,n.value||(Jr().b[0][1]++,""))}}static getDerivedStateFromProps(n,t){if(Jr().f[2]++,Jr().s[3]++,t.editing)Jr().b[1][1]++;else return Jr().b[1][0]++,Jr().s[4]++,{value:n.value};return Jr().s[5]++,{}}render(){Jr().f[3]++;let n,t;return Jr().s[6]++,this.props.multi?(Jr().b[2][0]++,Jr().s[7]++,n="textarea",Jr().s[8]++,t=["maputnik-string","maputnik-string--multi"]):(Jr().b[2][1]++,Jr().s[9]++,n="input",Jr().s[10]++,t=["maputnik-string"]),Jr().s[11]++,this.props.disabled?(Jr().b[3][0]++,Jr().s[12]++,t.push("maputnik-string--disabled")):Jr().b[3][1]++,Jr().s[13]++,bn.createElement(n,{"aria-label":this.props["aria-label"],"data-wd-key":this.props["data-wd-key"],spellCheck:Object.prototype.hasOwnProperty.call(this.props,"spellCheck")?(Jr().b[4][0]++,this.props.spellCheck):(Jr().b[4][1]++,n!=="input"),disabled:this.props.disabled,className:t.join(" "),style:this.props.style,value:this.state.value===void 0?(Jr().b[5][0]++,""):(Jr().b[5][1]++,this.state.value),placeholder:this.props.default,title:this.props.title,onChange:r=>{Jr().f[4]++,Jr().s[14]++,this.setState({editing:!0,value:r.target.value},()=>{Jr().f[5]++,Jr().s[15]++,this.props.onInput?(Jr().b[6][0]++,Jr().s[16]++,this.props.onInput(this.state.value)):Jr().b[6][1]++})},onBlur:()=>{Jr().f[6]++,Jr().s[17]++,this.state.value!==this.props.value?(Jr().b[7][0]++,Jr().s[18]++,this.setState({editing:!1}),Jr().s[19]++,this.props.onChange?(Jr().b[8][0]++,Jr().s[20]++,this.props.onChange(this.state.value)):Jr().b[8][1]++):Jr().b[7][1]++},onKeyDown:r=>{Jr().f[7]++,Jr().s[21]++,Jr().b[10][0]++,r.keyCode===13&&(Jr().b[10][1]++,this.props.onChange)?(Jr().b[9][0]++,Jr().s[22]++,this.props.onChange(this.state.value)):Jr().b[9][1]++},required:this.props.required})}}nn(Sd,"defaultProps",(Jr().s[0]++,{onInput:()=>{Jr().f[0]++}}));function m3(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldString.tsx",n="37d7b9547efb8875177dbe7a186e7965cd9eb1c0",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldString.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:163}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldString.tsx"],names:[],mappings:"AAeM;AAfN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,iBAAqC;AAU5C,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC3D,8BAAC,eAAa,GAAG,KAAK,OAAO,GAC/B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"37d7b9547efb8875177dbe7a186e7965cd9eb1c0"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return m3=function(){return s},s}m3();class uh extends bn.Component{render(){return m3().f[0]++,m3().s[0]++,N.jsx(Uo,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(Sd,{...this.props})})}}function ni(){var e="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlFeaturePropertyPopup.tsx",n="50b90fa9d7d9eff2534e1385cb335e5d5d551a9d",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlFeaturePropertyPopup.tsx",statementMap:{0:{start:{line:6,column:2},end:{line:7,column:17}},1:{start:{line:7,column:4},end:{line:7,column:17}},2:{start:{line:8,column:2},end:{line:9,column:34}},3:{start:{line:9,column:4},end:{line:9,column:34}},4:{start:{line:10,column:2},end:{line:11,column:28}},5:{start:{line:11,column:4},end:{line:11,column:28}},6:{start:{line:12,column:2},end:{line:12,column:15}},7:{start:{line:15,column:2},end:{line:18,column:5}},8:{start:{line:16,column:21},end:{line:16,column:53}},9:{start:{line:17,column:4},end:{line:17,column:199}},10:{start:{line:21,column:2},end:{line:21,column:199}},11:{start:{line:24,column:2},end:{line:37,column:40}},12:{start:{line:40,column:25},end:{line:40,column:27}},13:{start:{line:41,column:2},end:{line:54,column:5}},14:{start:{line:42,column:25},end:{line:44,column:6}},15:{start:{line:43,column:6},end:{line:43,column:156}},16:{start:{line:45,column:4},end:{line:53,column:5}},17:{start:{line:46,column:6},end:{line:46,column:35}},18:{start:{line:48,column:6},end:{line:52,column:7}},19:{start:{line:49,column:8},end:{line:49,column:58}},20:{start:{line:51,column:8},end:{line:51,column:60}},21:{start:{line:55,column:2},end:{line:55,column:24}},22:{start:{line:59,column:21},end:{line:59,column:66}},23:{start:{line:60,column:4},end:{line:60,column:127}}},fnMap:{0:{name:"displayValue",decl:{start:{line:5,column:9},end:{line:5,column:21}},loc:{start:{line:5,column:29},end:{line:13,column:1}},line:5},1:{name:"renderProperties",decl:{start:{line:14,column:9},end:{line:14,column:25}},loc:{start:{line:14,column:35},end:{line:19,column:1}},line:14},2:{name:"(anonymous_2)",decl:{start:{line:15,column:45},end:{line:15,column:46}},loc:{start:{line:15,column:63},end:{line:18,column:3}},line:15},3:{name:"renderFeatureId",decl:{start:{line:20,column:9},end:{line:20,column:24}},loc:{start:{line:20,column:34},end:{line:22,column:1}},line:20},4:{name:"renderFeature",decl:{start:{line:23,column:9},end:{line:23,column:22}},loc:{start:{line:23,column:37},end:{line:38,column:1}},line:23},5:{name:"removeDuplicatedFeatures",decl:{start:{line:39,column:9},end:{line:39,column:33}},loc:{start:{line:39,column:44},end:{line:56,column:1}},line:39},6:{name:"(anonymous_6)",decl:{start:{line:41,column:19},end:{line:41,column:20}},loc:{start:{line:41,column:32},end:{line:54,column:3}},line:41},7:{name:"(anonymous_7)",decl:{start:{line:42,column:50},end:{line:42,column:51}},loc:{start:{line:42,column:64},end:{line:44,column:5}},line:42},8:{name:"(anonymous_8)",decl:{start:{line:58,column:2},end:{line:58,column:3}},loc:{start:{line:58,column:11},end:{line:61,column:3}},line:58}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:7,column:17}},type:"if",locations:[{start:{line:6,column:2},end:{line:7,column:17}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},1:{loc:{start:{line:6,column:6},end:{line:6,column:52}},type:"binary-expr",locations:[{start:{line:6,column:6},end:{line:6,column:34}},{start:{line:6,column:38},end:{line:6,column:52}}],line:6},2:{loc:{start:{line:8,column:2},end:{line:9,column:34}},type:"if",locations:[{start:{line:8,column:2},end:{line:9,column:34}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},3:{loc:{start:{line:10,column:2},end:{line:11,column:28}},type:"if",locations:[{start:{line:10,column:2},end:{line:11,column:28}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:10},4:{loc:{start:{line:10,column:6},end:{line:10,column:89}},type:"binary-expr",locations:[{start:{line:10,column:6},end:{line:10,column:31}},{start:{line:10,column:35},end:{line:10,column:60}},{start:{line:10,column:64},end:{line:10,column:89}}],line:10},5:{loc:{start:{line:29,column:6},end:{line:32,column:10}},type:"binary-expr",locations:[{start:{line:29,column:6},end:{line:29,column:32}},{start:{line:29,column:52},end:{line:32,column:10}}],line:29},6:{loc:{start:{line:43,column:13},end:{line:43,column:155}},type:"binary-expr",locations:[{start:{line:43,column:13},end:{line:43,column:77}},{start:{line:43,column:81},end:{line:43,column:155}}],line:43},7:{loc:{start:{line:45,column:4},end:{line:53,column:5}},type:"if",locations:[{start:{line:45,column:4},end:{line:53,column:5}},{start:{line:47,column:11},end:{line:53,column:5}}],line:45},8:{loc:{start:{line:48,column:6},end:{line:52,column:7}},type:"if",locations:[{start:{line:48,column:6},end:{line:52,column:7}},{start:{line:50,column:13},end:{line:52,column:7}}],line:48}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGlFeaturePropertyPopup.tsx"],names:[],mappings:"AA2BM,cAagI,YAbhI;AA3BN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AAYxB,SAAS,aAAa,OAAwC;AAC5D,MAAI,OAAO,UAAU,eAAe,UAAU;AAAM,WAAO;AAC3D,MAAI,iBAAiB;AAAM,WAAO,MAAM,eAAe;AACvD,MAAI,OAAO,UAAU,YACb,OAAO,UAAU,YACjB,OAAO,UAAU;AAAU,WAAO,MAAM,SAAS;AACzD,SAAO;AACT;AAEA,SAAS,iBAAiB,SAAyB;AACjD,SAAO,OAAO,KAAK,QAAQ,UAAU,EAAE,IAAI,kBAAgB;AACzD,UAAM,WAAW,QAAQ,WAAW,YAAY;AAChD,WAAO,oBAAC,SAAyB,OAAO,cACtC,8BAAC,eAAY,OAAO,aAAa,QAAQ,GAAG,OAAO,EAAC,iBAAiB,cAAa,GAAE,KADnE,YAEnB;AAAA,EACF,CAAC;AACH;AAEA,SAAS,gBAAgB,SAAyB;AAChD,SAAO,oBAAC,SAAyB,OAAO,cACtC,8BAAC,eAAY,OAAO,aAAa,QAAQ,EAAE,GAAG,OAAO,EAAC,iBAAiB,cAAa,GAAG,KADtE,YAEnB;AACF;AAEA,SAAS,cAAc,SAAyB,KAAa;AAC3D,SAAO,qBAAC,SACN;AAAA,yBAAC,SAAI,WAAU,2BAA2B;AAAA,cAAQ,MAAM,QAAQ;AAAA,MAAE;AAAA,MAAG,QAAQ,MAAM,cAAc;AAAA,MAAG,QAAQ,sBAAsB,qBAAC,UAAK;AAAA;AAAA,QAAI,QAAQ;AAAA,SAAmB;AAAA,OAAQ;AAAA,IAC/K,oBAAC,SAA4B,OAAO,SAClC,8BAAC,eAAY,OAAO,QAAQ,SAAS,MAAM,OAAO,EAAC,iBAAiB,cAAa,GAAG,KAD1E,eAEZ;AAAA,IACC,gBAAgB,OAAO;AAAA,IACvB,iBAAiB,OAAO;AAAA,OANV,GAAG,QAAQ,WAAW,IAAI,GAAG,EAO9C;AACF;AAEA,SAAS,yBAAyB,UAA4B;AAC5D,QAAM,iBAAmC,CAAC;AAE1C,WAAS,QAAQ,aAAW;AAC1B,UAAM,eAAe,eAAe,UAAU,cAAY;AACxD,aAAO,QAAQ,MAAM,cAAc,MAAM,SAAS,MAAM,cAAc,KACjE,KAAK,UAAU,QAAQ,UAAU,MAAM,KAAK,UAAU,SAAS,UAAU;AAAA,IAChF,CAAC;AAED,QAAG,iBAAiB,IAAI;AACtB,qBAAe,KAAK,OAAO;AAAA,IAC7B,OAAO;AACL,UAAG,wBAAwB,eAAe,YAAY,GAAG;AACvD,uBAAe,YAAY,EAAE;AAAA,MAC/B,OAAO;AACL,uBAAe,YAAY,EAAE,qBAAqB;AAAA,MACpD;AAAA,IACF;AAAA,EACF,CAAC;AAED,SAAO;AACT;AAMA,MAAM,6BAA6B,MAAM,UAAqC;AAAA,EAC5E,SAAS;AACP,UAAM,WAAW,yBAAyB,KAAK,MAAM,QAAQ;AAC7D,WAAO,oBAAC,SAAI,WAAU,mCACnB,mBAAS,IAAI,aAAa,GAC7B;AAAA,EACF;AACF;AAGA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"50b90fa9d7d9eff2534e1385cb335e5d5d551a9d"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ni=function(){return s},s}ni();function XR(e){return ni().f[0]++,ni().s[0]++,ni().b[1][0]++,typeof e>"u"||(ni().b[1][1]++,e===null)?(ni().b[0][0]++,ni().s[1]++,e):(ni().b[0][1]++,ni().s[2]++,e instanceof Date?(ni().b[2][0]++,ni().s[3]++,e.toLocaleString()):(ni().b[2][1]++,ni().s[4]++,ni().b[4][0]++,typeof e=="object"||(ni().b[4][1]++,typeof e=="number")||(ni().b[4][2]++,typeof e=="string")?(ni().b[3][0]++,ni().s[5]++,e.toString()):(ni().b[3][1]++,ni().s[6]++,e)))}function KJ(e){return ni().f[1]++,ni().s[7]++,Object.keys(e.properties).map(n=>{ni().f[2]++;const t=(ni().s[8]++,e.properties[n]);return ni().s[9]++,N.jsx(Uo,{label:n,children:N.jsx(uh,{value:XR(t),style:{backgroundColor:"transparent"}})},n)})}function PJ(e){return ni().f[3]++,ni().s[10]++,N.jsx(Uo,{label:"feature_id",children:N.jsx(uh,{value:XR(e.id),style:{backgroundColor:"transparent"}})},"feature-id")}function FJ(e,n){return ni().f[4]++,ni().s[11]++,N.jsxs("div",{children:[N.jsxs("div",{className:"maputnik-popup-layer-id",children:[e.layer.source,": ",e.layer["source-layer"],(ni().b[5][0]++,e.inspectModeCounter&&(ni().b[5][1]++,N.jsxs("span",{children:[" × ",e.inspectModeCounter]})))]}),N.jsx(Uo,{label:"$type",children:N.jsx(uh,{value:e.geometry.type,style:{backgroundColor:"transparent"}})},"property-type"),PJ(e),KJ(e)]},`${e.sourceLayer}-${n}`)}function DJ(e){ni().f[5]++;const n=(ni().s[12]++,[]);return ni().s[13]++,e.forEach(t=>{ni().f[6]++;const r=(ni().s[14]++,n.findIndex(i=>(ni().f[7]++,ni().s[15]++,ni().b[6][0]++,t.layer["source-layer"]===i.layer["source-layer"]&&(ni().b[6][1]++,JSON.stringify(t.properties)===JSON.stringify(i.properties)))));ni().s[16]++,r===-1?(ni().b[7][0]++,ni().s[17]++,n.push(t)):(ni().b[7][1]++,ni().s[18]++,"inspectModeCounter"in n[r]?(ni().b[8][0]++,ni().s[19]++,n[r].inspectModeCounter++):(ni().b[8][1]++,ni().s[20]++,n[r].inspectModeCounter=2))}),ni().s[21]++,n}class UJ extends bn.Component{render(){ni().f[8]++;const n=(ni().s[22]++,DJ(this.props.features));return ni().s[23]++,N.jsx("div",{className:"maputnik-feature-property-popup",children:n.map(FJ)})}}var JR={exports:{}},RJ={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]},eL={exports:{}},LJ=function(n){return!n||typeof n=="string"?!1:n instanceof Array||Array.isArray(n)||n.length>=0&&(n.splice instanceof Function||Object.getOwnPropertyDescriptor(n,n.length-1)&&n.constructor.name!=="String")},zJ=LJ,jJ=Array.prototype.concat,WJ=Array.prototype.slice,e9=eL.exports=function(n){for(var t=[],r=0,i=n.length;r=4&&e[3]!==1&&(n=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+n+")"};Uc.to.keyword=function(e){return nL[e.slice(0,3)]};function Sm(e,n,t){return Math.min(Math.max(n,e),t)}function gx(e){var n=Math.round(e).toString(16).toUpperCase();return n.length<2?"0"+n:n}var GJ=JR.exports,QJ={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]};const s_=QJ,rL={};for(const e of Object.keys(s_))rL[s_[e]]=e;const Nr={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var iL=Nr;for(const e of Object.keys(Nr)){if(!("channels"in Nr[e]))throw new Error("missing channels property: "+e);if(!("labels"in Nr[e]))throw new Error("missing channel labels property: "+e);if(Nr[e].labels.length!==Nr[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:n,labels:t}=Nr[e];delete Nr[e].channels,delete Nr[e].labels,Object.defineProperty(Nr[e],"channels",{value:n}),Object.defineProperty(Nr[e],"labels",{value:t})}Nr.rgb.hsl=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,i=Math.min(n,t,r),o=Math.max(n,t,r),s=o-i;let a,f;o===i?a=0:n===o?a=(t-r)/s:t===o?a=2+(r-n)/s:r===o&&(a=4+(n-t)/s),a=Math.min(a*60,360),a<0&&(a+=360);const g=(i+o)/2;return o===i?f=0:g<=.5?f=s/(o+i):f=s/(2-o-i),[a,f*100,g*100]};Nr.rgb.hsv=function(e){let n,t,r,i,o;const s=e[0]/255,a=e[1]/255,f=e[2]/255,g=Math.max(s,a,f),x=g-Math.min(s,a,f),k=function(B){return(g-B)/6/x+1/2};return x===0?(i=0,o=0):(o=x/g,n=k(s),t=k(a),r=k(f),s===g?i=r-t:a===g?i=1/3+n-r:f===g&&(i=2/3+t-n),i<0?i+=1:i>1&&(i-=1)),[i*360,o*100,g*100]};Nr.rgb.hwb=function(e){const n=e[0],t=e[1];let r=e[2];const i=Nr.rgb.hsl(e)[0],o=1/255*Math.min(n,Math.min(t,r));return r=1-1/255*Math.max(n,Math.max(t,r)),[i,o*100,r*100]};Nr.rgb.cmyk=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,i=Math.min(1-n,1-t,1-r),o=(1-n-i)/(1-i)||0,s=(1-t-i)/(1-i)||0,a=(1-r-i)/(1-i)||0;return[o*100,s*100,a*100,i*100]};function $J(e,n){return(e[0]-n[0])**2+(e[1]-n[1])**2+(e[2]-n[2])**2}Nr.rgb.keyword=function(e){const n=rL[e];if(n)return n;let t=1/0,r;for(const i of Object.keys(s_)){const o=s_[i],s=$J(e,o);s.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=n*.4124+t*.3576+r*.1805,o=n*.2126+t*.7152+r*.0722,s=n*.0193+t*.1192+r*.9505;return[i*100,o*100,s*100]};Nr.rgb.lab=function(e){const n=Nr.rgb.xyz(e);let t=n[0],r=n[1],i=n[2];t/=95.047,r/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const o=116*r-16,s=500*(t-r),a=200*(r-i);return[o,s,a]};Nr.hsl.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;let i,o,s;if(t===0)return s=r*255,[s,s,s];r<.5?i=r*(1+t):i=r+t-r*t;const a=2*r-i,f=[0,0,0];for(let g=0;g<3;g++)o=n+1/3*-(g-1),o<0&&o++,o>1&&o--,6*o<1?s=a+(i-a)*6*o:2*o<1?s=i:3*o<2?s=a+(i-a)*(2/3-o)*6:s=a,f[g]=s*255;return f};Nr.hsl.hsv=function(e){const n=e[0];let t=e[1]/100,r=e[2]/100,i=t;const o=Math.max(r,.01);r*=2,t*=r<=1?r:2-r,i*=o<=1?o:2-o;const s=(r+t)/2,a=r===0?2*i/(o+i):2*t/(r+t);return[n,a*100,s*100]};Nr.hsv.rgb=function(e){const n=e[0]/60,t=e[1]/100;let r=e[2]/100;const i=Math.floor(n)%6,o=n-Math.floor(n),s=255*r*(1-t),a=255*r*(1-t*o),f=255*r*(1-t*(1-o));switch(r*=255,i){case 0:return[r,f,s];case 1:return[a,r,s];case 2:return[s,r,f];case 3:return[s,a,r];case 4:return[f,s,r];case 5:return[r,s,a]}};Nr.hsv.hsl=function(e){const n=e[0],t=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-t)*r;const a=(2-t)*i;return o=t*i,o/=a<=1?a:2-a,o=o||0,s/=2,[n,o*100,s*100]};Nr.hwb.rgb=function(e){const n=e[0]/360;let t=e[1]/100,r=e[2]/100;const i=t+r;let o;i>1&&(t/=i,r/=i);const s=Math.floor(6*n),a=1-r;o=6*n-s,s&1&&(o=1-o);const f=t+o*(a-t);let g,x,k;switch(s){default:case 6:case 0:g=a,x=f,k=t;break;case 1:g=f,x=a,k=t;break;case 2:g=t,x=a,k=f;break;case 3:g=t,x=f,k=a;break;case 4:g=f,x=t,k=a;break;case 5:g=a,x=t,k=f;break}return[g*255,x*255,k*255]};Nr.cmyk.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100,i=e[3]/100,o=1-Math.min(1,n*(1-i)+i),s=1-Math.min(1,t*(1-i)+i),a=1-Math.min(1,r*(1-i)+i);return[o*255,s*255,a*255]};Nr.xyz.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100;let i,o,s;return i=n*3.2406+t*-1.5372+r*-.4986,o=n*-.9689+t*1.8758+r*.0415,s=n*.0557+t*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[i*255,o*255,s*255]};Nr.xyz.lab=function(e){let n=e[0],t=e[1],r=e[2];n/=95.047,t/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*t-16,o=500*(n-t),s=200*(t-r);return[i,o,s]};Nr.lab.xyz=function(e){const n=e[0],t=e[1],r=e[2];let i,o,s;o=(n+16)/116,i=t/500+o,s=o-r/200;const a=o**3,f=i**3,g=s**3;return o=a>.008856?a:(o-16/116)/7.787,i=f>.008856?f:(i-16/116)/7.787,s=g>.008856?g:(s-16/116)/7.787,i*=95.047,o*=100,s*=108.883,[i,o,s]};Nr.lab.lch=function(e){const n=e[0],t=e[1],r=e[2];let i;i=Math.atan2(r,t)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(t*t+r*r);return[n,s,i]};Nr.lch.lab=function(e){const n=e[0],t=e[1],i=e[2]/360*2*Math.PI,o=t*Math.cos(i),s=t*Math.sin(i);return[n,o,s]};Nr.rgb.ansi16=function(e,n=null){const[t,r,i]=e;let o=n===null?Nr.rgb.hsv(e)[2]:n;if(o=Math.round(o/50),o===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return o===2&&(s+=60),s};Nr.hsv.ansi16=function(e){return Nr.rgb.ansi16(Nr.hsv.rgb(e),e[2])};Nr.rgb.ansi256=function(e){const n=e[0],t=e[1],r=e[2];return n===t&&t===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)};Nr.ansi16.rgb=function(e){let n=e%10;if(n===0||n===7)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const t=(~~(e>50)+1)*.5,r=(n&1)*t*255,i=(n>>1&1)*t*255,o=(n>>2&1)*t*255;return[r,i,o]};Nr.ansi256.rgb=function(e){if(e>=232){const o=(e-232)*10+8;return[o,o,o]}e-=16;let n;const t=Math.floor(e/36)/5*255,r=Math.floor((n=e%36)/6)/5*255,i=n%6/5*255;return[t,r,i]};Nr.rgb.hex=function(e){const t=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(t.length)+t};Nr.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let t=n[0];n[0].length===3&&(t=t.split("").map(a=>a+a).join(""));const r=parseInt(t,16),i=r>>16&255,o=r>>8&255,s=r&255;return[i,o,s]};Nr.rgb.hcg=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,i=Math.max(Math.max(n,t),r),o=Math.min(Math.min(n,t),r),s=i-o;let a,f;return s<1?a=o/(1-s):a=0,s<=0?f=0:i===n?f=(t-r)/s%6:i===t?f=2+(r-n)/s:f=4+(n-t)/s,f/=6,f%=1,[f*360,s*100,a*100]};Nr.hsl.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=t<.5?2*n*t:2*n*(1-t);let i=0;return r<1&&(i=(t-.5*r)/(1-r)),[e[0],r*100,i*100]};Nr.hsv.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=n*t;let i=0;return r<1&&(i=(t-r)/(1-r)),[e[0],r*100,i*100]};Nr.hcg.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;if(t===0)return[r*255,r*255,r*255];const i=[0,0,0],o=n%1*6,s=o%1,a=1-s;let f=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return f=(1-t)*r,[(t*i[0]+f)*255,(t*i[1]+f)*255,(t*i[2]+f)*255]};Nr.hcg.hsv=function(e){const n=e[1]/100,t=e[2]/100,r=n+t*(1-n);let i=0;return r>0&&(i=n/r),[e[0],i*100,r*100]};Nr.hcg.hsl=function(e){const n=e[1]/100,r=e[2]/100*(1-n)+.5*n;let i=0;return r>0&&r<.5?i=n/(2*r):r>=.5&&r<1&&(i=n/(2*(1-r))),[e[0],i*100,r*100]};Nr.hcg.hwb=function(e){const n=e[1]/100,t=e[2]/100,r=n+t*(1-n);return[e[0],(r-n)*100,(1-r)*100]};Nr.hwb.hcg=function(e){const n=e[1]/100,r=1-e[2]/100,i=r-n;let o=0;return i<1&&(o=(r-i)/(1-i)),[e[0],i*100,o*100]};Nr.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Nr.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Nr.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Nr.gray.hsl=function(e){return[0,0,e[0]]};Nr.gray.hsv=Nr.gray.hsl;Nr.gray.hwb=function(e){return[0,100,e[0]]};Nr.gray.cmyk=function(e){return[0,0,0,e[0]]};Nr.gray.lab=function(e){return[e[0],0,0]};Nr.gray.hex=function(e){const n=Math.round(e[0]/100*255)&255,r=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(r.length)+r};Nr.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const g3=iL;function YJ(){const e={},n=Object.keys(g3);for(let t=n.length,r=0;r1&&(t=r),e(t))};return"conversion"in e&&(n.conversion=e.conversion),n}function tee(e){const n=function(...t){const r=t[0];if(r==null)return r;r.length>1&&(t=r);const i=e(t);if(typeof i=="object")for(let o=i.length,s=0;s{vg[e]={},Object.defineProperty(vg[e],"channels",{value:K6[e].channels}),Object.defineProperty(vg[e],"labels",{value:K6[e].labels});const n=XJ(e);Object.keys(n).forEach(r=>{const i=n[r];vg[e][r]=tee(i),vg[e][r].raw=eee(i)})});var nee=vg;const Cg=GJ,Fc=nee,oL=["keyword","gray","hex"],P6={};for(const e of Object.keys(Fc))P6[[...Fc[e].labels].sort().join("")]=e;const y3={};function ou(e,n){if(!(this instanceof ou))return new ou(e,n);if(n&&n in oL&&(n=null),n&&!(n in Fc))throw new Error("Unknown model: "+n);let t,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof ou)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Cg.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=Fc[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=n||"rgb",r=Fc[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=F6(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const o=i.sort().join("");if(!(o in P6))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=P6[o];const{labels:s}=Fc[this.model],a=[];for(t=0;t(e%360+360)%360),saturationl:Ws("hsl",1,Rl(100)),lightness:Ws("hsl",2,Rl(100)),saturationv:Ws("hsv",1,Rl(100)),value:Ws("hsv",2,Rl(100)),chroma:Ws("hcg",1,Rl(100)),gray:Ws("hcg",2,Rl(100)),white:Ws("hwb",1,Rl(100)),wblack:Ws("hwb",2,Rl(100)),cyan:Ws("cmyk",0,Rl(100)),magenta:Ws("cmyk",1,Rl(100)),yellow:Ws("cmyk",2,Rl(100)),black:Ws("cmyk",3,Rl(100)),x:Ws("xyz",0,Rl(95.047)),y:Ws("xyz",1,Rl(100)),z:Ws("xyz",2,Rl(108.833)),l:Ws("lab",0,Rl(100)),a:Ws("lab",1),b:Ws("lab",2),keyword(e){return e!==void 0?new ou(e):Fc[this.model].keyword(this.color)},hex(e){return e!==void 0?new ou(e):Cg.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new ou(e);const n=this.rgb().round().color;let t=Math.round(this.valpha*255).toString(16).toUpperCase();return t.length===1&&(t="0"+t),Cg.to.hex(n)+t},rgbNumber(){const e=this.rgb().color;return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255},luminosity(){const e=this.rgb().color,n=[];for(const[t,r]of e.entries()){const i=r/255;n[t]=i<=.04045?i/12.92:((i+.055)/1.055)**2.4}return .2126*n[0]+.7152*n[1]+.0722*n[2]},contrast(e){const n=this.luminosity(),t=e.luminosity();return n>t?(n+.05)/(t+.05):(t+.05)/(n+.05)},level(e){const n=this.contrast(e);return n>=7?"AAA":n>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(e[0]*2126+e[1]*7152+e[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let n=0;n<3;n++)e.color[n]=255-e.color[n];return e},lighten(e){const n=this.hsl();return n.color[2]+=n.color[2]*e,n},darken(e){const n=this.hsl();return n.color[2]-=n.color[2]*e,n},saturate(e){const n=this.hsl();return n.color[1]+=n.color[1]*e,n},desaturate(e){const n=this.hsl();return n.color[1]-=n.color[1]*e,n},whiten(e){const n=this.hwb();return n.color[1]+=n.color[1]*e,n},blacken(e){const n=this.hwb();return n.color[2]+=n.color[2]*e,n},grayscale(){const e=this.rgb().color,n=e[0]*.3+e[1]*.59+e[2]*.11;return ou.rgb(n,n,n)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const n=this.hsl();let t=n.color[0];return t=(t+e)%360,t=t<0?360+t:t,n.color[0]=t,n},mix(e,n){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const t=e.rgb(),r=this.rgb(),i=n===void 0?.5:n,o=2*i-1,s=t.alpha()-r.alpha(),a=((o*s===-1?o:(o+s)/(1+o*s))+1)/2,f=1-a;return ou.rgb(a*t.red()+f*r.red(),a*t.green()+f*r.green(),a*t.blue()+f*r.blue(),t.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(Fc)){if(oL.includes(e))continue;const{channels:n}=Fc[e];ou.prototype[e]=function(...t){return this.model===e?new ou(this):t.length>0?new ou(t,e):new ou([...oee(Fc[this.model][e].raw(this.color)),this.valpha],e)},ou[e]=function(...t){let r=t[0];return typeof r=="number"&&(r=F6(t,n)),new ou(r,e)}}function ree(e,n){return Number(e.toFixed(n))}function iee(e){return function(n){return ree(n,e)}}function Ws(e,n,t){e=Array.isArray(e)?e:[e];for(const r of e)(y3[r]||(y3[r]=[]))[n]=t;return e=e[0],function(r){let i;return r!==void 0?(t&&(r=t(r)),i=this[e](),i.color[n]=r,i):(i=this[e]().color[n],t&&(i=t(i)),i)}}function Rl(e){return function(n){return Math.max(0,Math.min(e,n))}}function oee(e){return Array.isArray(e)?e:[e]}function F6(e,n){for(let t=0;t `,da().s[8]++,this._textEl=this._container.querySelector("span"),da().s[9]++,this.addEventListeners(),da().s[10]++,this._container}updateZoomLevel(){da().f[1]++,da().s[11]++,this._textEl.innerHTML=this._map.getZoom().toFixed(2)}addEventListeners(){da().f[2]++,da().s[12]++,this._map.on("render",()=>(da().f[3]++,da().s[13]++,this.updateZoomLevel())),da().s[14]++,this._map.on("zoomIn",()=>(da().f[4]++,da().s[15]++,this.updateZoomLevel())),da().s[16]++,this._map.on("zoomOut",()=>(da().f[5]++,da().s[17]++,this.updateZoomLevel()))}onRemove(){da().f[6]++,da().s[18]++,this._container.parentNode.removeChild(this._container),da().s[19]++,this._map=void 0}}function xi(){var e="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",n="a1afd3a6454022c4d7be658acdbd4aecf51f38d3",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:19,column:16}},10:{start:{line:19,column:4},end:{line:19,column:16}},11:{start:{line:20,column:24},end:{line:20,column:51}},12:{start:{line:21,column:16},end:{line:21,column:52}},13:{start:{line:22,column:2},end:{line:24,column:3}},14:{start:{line:23,column:4},end:{line:23,column:104}},15:{start:{line:25,column:2},end:{line:27,column:3}},16:{start:{line:26,column:4},end:{line:26,column:96}},17:{start:{line:28,column:2},end:{line:30,column:3}},18:{start:{line:29,column:4},end:{line:29,column:94}},19:{start:{line:31,column:2},end:{line:31,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:32,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:19,column:16}},type:"if",locations:[{start:{line:18,column:2},end:{line:19,column:16}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:20,column:24},end:{line:20,column:51}},type:"binary-expr",locations:[{start:{line:20,column:24},end:{line:20,column:45}},{start:{line:20,column:49},end:{line:20,column:51}}],line:20},6:{loc:{start:{line:22,column:2},end:{line:24,column:3}},type:"if",locations:[{start:{line:22,column:2},end:{line:24,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22},7:{loc:{start:{line:22,column:6},end:{line:22,column:62}},type:"binary-expr",locations:[{start:{line:22,column:6},end:{line:22,column:27}},{start:{line:22,column:31},end:{line:22,column:62}}],line:22},8:{loc:{start:{line:25,column:2},end:{line:27,column:3}},type:"if",locations:[{start:{line:25,column:2},end:{line:27,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:25},9:{loc:{start:{line:25,column:6},end:{line:25,column:56}},type:"binary-expr",locations:[{start:{line:25,column:6},end:{line:25,column:29}},{start:{line:25,column:33},end:{line:25,column:56}}],line:25},10:{loc:{start:{line:28,column:2},end:{line:30,column:3}},type:"if",locations:[{start:{line:28,column:2},end:{line:30,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/highlight.ts"],names:[],mappings:"AACA,OAAO,cAAc;AAErB,OAAO,YAAY;AAKnB,SAAS,YAAY,GAAqB,OAA2B;AACnE,MAAG,EAAE,SAAS,UAAU;AACtB,MAAE,MAAO,eAAe,IAAI;AAAA,EAC9B,WAAU,EAAE,SAAS,QAAQ;AAC3B,MAAE,MAAO,YAAY,IAAI;AAAA,EAC3B;AAEA,MAAG,YAAY,OAAO;AACpB,MAAE,SAAS,MAAM;AAAA,EACnB,OAAO;AACL,WAAO,EAAE,QAAQ;AAAA,EACnB;AACA,IAAE,KAAK,EAAE,KAAK;AACd,SAAO;AACT;AAEO,gBAAS,sBAAsB,OAAqD;AACzF,MAAG,CAAC,SAAS,MAAM,SAAS,gBAAgB,MAAM,SAAS;AAAU,WAAO;AAE5E,QAAM,gBAAgB,MAAM,cAAc,KAAK;AAC/C,QAAM,QAAQ,OAAO,YAAY,eAAe,CAAC;AAEjD,MAAG,MAAM,SAAS,UAAU,MAAM,SAAS,kBAAkB;AAC3D,WAAO,YAAY,SAAS,aAAa,OAAO,OAAO,MAAM,QAAQ,MAAM,cAAc,CAAC,GAAG,KAAK;AAAA,EACpG;AAEA,MAAG,MAAM,SAAS,YAAY,MAAM,SAAS,UAAU;AACrD,WAAO,YAAY,SAAS,YAAY,OAAO,MAAM,QAAQ,MAAM,cAAc,CAAC,GAAG,KAAK;AAAA,EAC5F;AAEA,MAAG,MAAM,SAAS,QAAQ;AACxB,WAAO,YAAY,SAAS,UAAU,OAAO,MAAM,QAAQ,MAAM,cAAc,CAAC,GAAG,KAAK;AAAA,EAC1F;AAEA,SAAO;AACT;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a1afd3a6454022c4d7be658acdbd4aecf51f38d3"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return xi=function(){return s},s}xi();function aM(e,n){return xi().f[0]++,xi().s[0]++,e.type==="circle"?(xi().b[0][0]++,xi().s[1]++,e.paint["circle-radius"]=3):(xi().b[0][1]++,xi().s[2]++,e.type==="line"?(xi().b[1][0]++,xi().s[3]++,e.paint["line-width"]=2):xi().b[1][1]++),xi().s[4]++,"filter"in n?(xi().b[2][0]++,xi().s[5]++,e.filter=n.filter):(xi().b[2][1]++,xi().s[6]++,delete e.filter),xi().s[7]++,e.id=e.id+"_highlight",xi().s[8]++,e}function lee(e){if(xi().f[1]++,xi().s[9]++,xi().b[4][0]++,!e||(xi().b[4][1]++,e.type==="background")||(xi().b[4][2]++,e.type==="raster"))return xi().b[3][0]++,xi().s[10]++,null;xi().b[3][1]++;const n=(xi().s[11]++,xi().b[5][0]++,e["source-layer"]||(xi().b[5][1]++,"")),t=(xi().s[12]++,t5.brightColor(n,1));return xi().s[13]++,xi().b[7][0]++,e.type==="fill"||(xi().b[7][1]++,e.type==="fill-extrusion")?(xi().b[6][0]++,xi().s[14]++,aM(_p.polygonLayer(t,t,e.source,e["source-layer"]),e)):(xi().b[6][1]++,xi().s[15]++,xi().b[9][0]++,e.type==="symbol"||(xi().b[9][1]++,e.type==="circle")?(xi().b[8][0]++,xi().s[16]++,aM(_p.circleLayer(t,e.source,e["source-layer"]),e)):(xi().b[8][1]++,xi().s[17]++,e.type==="line"?(xi().b[10][0]++,xi().s[18]++,aM(_p.lineLayer(t,e.source,e["source-layer"]),e)):(xi().b[10][1]++,xi().s[19]++,null)))}function DB(){var e="/home/runner/work/maputnik/maputnik/src/libs/maplibre-rtl.ts",n="a9dc98f82c73787713de0672aff7a601bfeb069d",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/maplibre-rtl.ts",statementMap:{0:{start:{line:2,column:0},end:{line:2,column:115}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/maplibre-rtl.ts"],names:[],mappings:"AAAA,OAAO,gBAAgB;AAEvB,WAAW,iBAAiB,gFAAgF,KAAK;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a9dc98f82c73787713de0672aff7a601bfeb069d"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return DB=function(){return s},s}DB();DB().s[0]++;g2.setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js",!1);function cn(){var e="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",n="cf2170ca14c8f07639bb91af4dc600c4bb0a376c",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:16,column:2},end:{line:16,column:36}},1:{start:{line:17,column:2},end:{line:17,column:19}},2:{start:{line:20,column:26},end:{line:26,column:3}},3:{start:{line:27,column:16},end:{line:27,column:55}},4:{start:{line:28,column:2},end:{line:30,column:3}},5:{start:{line:29,column:4},end:{line:29,column:30}},6:{start:{line:31,column:18},end:{line:31,column:20}},7:{start:{line:32,column:2},end:{line:37,column:5}},8:{start:{line:33,column:19},end:{line:33,column:53}},9:{start:{line:34,column:4},end:{line:36,column:5}},10:{start:{line:35,column:6},end:{line:35,column:33}},11:{start:{line:38,column:23},end:{line:42,column:3}},12:{start:{line:43,column:2},end:{line:43,column:22}},13:{start:{line:46,column:24},end:{line:56,column:3}},14:{start:{line:57,column:14},end:{line:57,column:18}},15:{start:{line:59,column:4},end:{line:59,column:17}},16:{start:{line:60,column:4},end:{line:63,column:6}},17:{start:{line:66,column:4},end:{line:67,column:13}},18:{start:{line:67,column:6},end:{line:67,column:13}},19:{start:{line:68,column:4},end:{line:71,column:6}},20:{start:{line:74,column:17},end:{line:74,column:22}},21:{start:{line:75,column:4},end:{line:78,column:5}},22:{start:{line:76,column:6},end:{line:76,column:132}},23:{start:{line:79,column:4},end:{line:79,column:18}},24:{start:{line:82,column:16},end:{line:82,column:30}},25:{start:{line:83,column:4},end:{line:83,column:40}},26:{start:{line:84,column:4},end:{line:87,column:5}},27:{start:{line:85,column:6},end:{line:85,column:47}},28:{start:{line:86,column:6},end:{line:86,column:43}},29:{start:{line:88,column:4},end:{line:99,column:5}},30:{start:{line:89,column:6},end:{line:95,column:7}},31:{start:{line:90,column:8},end:{line:94,column:9}},32:{start:{line:91,column:10},end:{line:91,column:38}},33:{start:{line:93,column:10},end:{line:93,column:52}},34:{start:{line:96,column:6},end:{line:96,column:70}},35:{start:{line:97,column:6},end:{line:97,column:70}},36:{start:{line:98,column:6},end:{line:98,column:76}},37:{start:{line:102,column:20},end:{line:108,column:5}},38:{start:{line:109,column:16},end:{line:109,column:43}},39:{start:{line:110,column:26},end:{line:114,column:5}},40:{start:{line:111,column:21},end:{line:111,column:36}},41:{start:{line:112,column:19},end:{line:112,column:32}},42:{start:{line:113,column:6},end:{line:113,column:44}},43:{start:{line:115,column:4},end:{line:115,column:20}},44:{start:{line:116,column:4},end:{line:116,column:56}},45:{start:{line:117,column:4},end:{line:117,column:56}},46:{start:{line:118,column:4},end:{line:118,column:62}},47:{start:{line:119,column:24},end:{line:119,column:41}},48:{start:{line:120,column:4},end:{line:120,column:45}},49:{start:{line:121,column:16},end:{line:121,column:74}},50:{start:{line:122,column:4},end:{line:122,column:37}},51:{start:{line:123,column:20},end:{line:123,column:49}},52:{start:{line:124,column:20},end:{line:144,column:6}},53:{start:{line:134,column:8},end:{line:134,column:82}},54:{start:{line:136,column:62},end:{line:136,column:141}},55:{start:{line:138,column:8},end:{line:142,column:9}},56:{start:{line:139,column:10},end:{line:139,column:108}},57:{start:{line:141,column:10},end:{line:141,column:160}},58:{start:{line:145,column:4},end:{line:145,column:28}},59:{start:{line:146,column:4},end:{line:152,column:7}},60:{start:{line:147,column:6},end:{line:151,column:9}},61:{start:{line:153,column:4},end:{line:159,column:7}},62:{start:{line:154,column:6},end:{line:155,column:15}},63:{start:{line:155,column:8},end:{line:155,column:15}},64:{start:{line:156,column:6},end:{line:158,column:9}},65:{start:{line:160,column:4},end:{line:162,column:7}},66:{start:{line:161,column:6},end:{line:161,column:30}},67:{start:{line:163,column:4},end:{line:167,column:7}},68:{start:{line:164,column:6},end:{line:166,column:9}},69:{start:{line:168,column:4},end:{line:168,column:37}},70:{start:{line:169,column:4},end:{line:169,column:37}},71:{start:{line:171,column:22},end:{line:174,column:3}},72:{start:{line:172,column:18},end:{line:172,column:82}},73:{start:{line:172,column:66},end:{line:172,column:81}},74:{start:{line:173,column:4},end:{line:173,column:36}},75:{start:{line:176,column:4},end:{line:185,column:6}},76:{start:{line:182,column:20},end:{line:182,column:38}}},fnMap:{0:{name:"renderPopup",decl:{start:{line:15,column:9},end:{line:15,column:20}},loc:{start:{line:15,column:39},end:{line:18,column:1}},line:15},1:{name:"buildInspectStyle",decl:{start:{line:19,column:9},end:{line:19,column:26}},loc:{start:{line:19,column:78},end:{line:44,column:1}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:32,column:48},end:{line:32,column:49}},loc:{start:{line:32,column:62},end:{line:37,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:47,column:17},end:{line:47,column:18}},loc:{start:{line:47,column:23},end:{line:48,column:5}},line:47},4:{name:"(anonymous_4)",decl:{start:{line:49,column:18},end:{line:49,column:19}},loc:{start:{line:49,column:24},end:{line:50,column:5}},line:49},5:{name:"(anonymous_5)",decl:{start:{line:51,column:19},end:{line:51,column:20}},loc:{start:{line:51,column:25},end:{line:52,column:5}},line:51},6:{name:"(anonymous_6)",decl:{start:{line:53,column:14},end:{line:53,column:15}},loc:{start:{line:53,column:20},end:{line:54,column:5}},line:53},7:{name:"(anonymous_7)",decl:{start:{line:58,column:2},end:{line:58,column:3}},loc:{start:{line:58,column:21},end:{line:64,column:3}},line:58},8:{name:"(anonymous_8)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:28},end:{line:72,column:3}},line:65},9:{name:"(anonymous_9)",decl:{start:{line:73,column:2},end:{line:73,column:3}},loc:{start:{line:73,column:46},end:{line:80,column:3}},line:73},10:{name:"(anonymous_10)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:23},end:{line:100,column:3}},line:81},11:{name:"(anonymous_11)",decl:{start:{line:101,column:2},end:{line:101,column:3}},loc:{start:{line:101,column:22},end:{line:170,column:3}},line:101},12:{name:"(anonymous_12)",decl:{start:{line:110,column:26},end:{line:110,column:27}},loc:{start:{line:110,column:32},end:{line:114,column:5}},line:110},13:{name:"(anonymous_13)",decl:{start:{line:133,column:24},end:{line:133,column:25}},loc:{start:{line:133,column:44},end:{line:135,column:7}},line:133},14:{name:"(anonymous_14)",decl:{start:{line:136,column:25},end:{line:136,column:26}},loc:{start:{line:136,column:62},end:{line:136,column:141}},line:136},15:{name:"(anonymous_15)",decl:{start:{line:137,column:19},end:{line:137,column:20}},loc:{start:{line:137,column:33},end:{line:143,column:7}},line:137},16:{name:"(anonymous_16)",decl:{start:{line:146,column:25},end:{line:146,column:26}},loc:{start:{line:146,column:31},end:{line:152,column:5}},line:146},17:{name:"(anonymous_17)",decl:{start:{line:153,column:19},end:{line:153,column:20}},loc:{start:{line:153,column:26},end:{line:159,column:5}},line:153},18:{name:"(anonymous_18)",decl:{start:{line:160,column:20},end:{line:160,column:21}},loc:{start:{line:160,column:27},end:{line:162,column:5}},line:160},19:{name:"(anonymous_19)",decl:{start:{line:163,column:19},end:{line:163,column:20}},loc:{start:{line:163,column:27},end:{line:167,column:5}},line:163},20:{name:"(anonymous_20)",decl:{start:{line:171,column:22},end:{line:171,column:23}},loc:{start:{line:171,column:30},end:{line:174,column:3}},line:171},21:{name:"(anonymous_21)",decl:{start:{line:172,column:55},end:{line:172,column:56}},loc:{start:{line:172,column:66},end:{line:172,column:81}},line:172},22:{name:"(anonymous_22)",decl:{start:{line:175,column:2},end:{line:175,column:3}},loc:{start:{line:175,column:11},end:{line:186,column:3}},line:175},23:{name:"(anonymous_23)",decl:{start:{line:182,column:13},end:{line:182,column:14}},loc:{start:{line:182,column:20},end:{line:182,column:38}},line:182}},branchMap:{0:{loc:{start:{line:28,column:2},end:{line:30,column:3}},type:"if",locations:[{start:{line:28,column:2},end:{line:30,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28},1:{loc:{start:{line:34,column:4},end:{line:36,column:5}},type:"if",locations:[{start:{line:34,column:4},end:{line:36,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34},2:{loc:{start:{line:34,column:8},end:{line:34,column:64}},type:"binary-expr",locations:[{start:{line:34,column:8},end:{line:34,column:32}},{start:{line:34,column:36},end:{line:34,column:64}}],line:34},3:{loc:{start:{line:66,column:4},end:{line:67,column:13}},type:"if",locations:[{start:{line:66,column:4},end:{line:67,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:66},4:{loc:{start:{line:76,column:15},end:{line:76,column:131}},type:"binary-expr",locations:[{start:{line:76,column:15},end:{line:76,column:71}},{start:{line:76,column:75},end:{line:76,column:131}}],line:76},5:{loc:{start:{line:84,column:4},end:{line:87,column:5}},type:"if",locations:[{start:{line:84,column:4},end:{line:87,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:84},6:{loc:{start:{line:84,column:8},end:{line:84,column:98}},type:"binary-expr",locations:[{start:{line:84,column:8},end:{line:84,column:26}},{start:{line:84,column:30},end:{line:84,column:98}}],line:84},7:{loc:{start:{line:88,column:4},end:{line:99,column:5}},type:"if",locations:[{start:{line:88,column:4},end:{line:99,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:88},8:{loc:{start:{line:89,column:6},end:{line:95,column:7}},type:"if",locations:[{start:{line:89,column:6},end:{line:95,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:89},9:{loc:{start:{line:138,column:8},end:{line:142,column:9}},type:"if",locations:[{start:{line:138,column:8},end:{line:142,column:9}},{start:{line:140,column:15},end:{line:142,column:9}}],line:138},10:{loc:{start:{line:154,column:6},end:{line:155,column:15}},type:"if",locations:[{start:{line:154,column:6},end:{line:155,column:15}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:154}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx"],names:[],mappings:"AAyL6B;AAzL7B,OAAO,WAAuB;AAC9B,OAAO,cAAc;AACrB,OAAO,gBAAwG;AAE/G,OAAO,mBAAmB;AAE1B,OAAO,YAAY;AACnB,OAAO,6BAA6B;AACpC,OAAO,uCAA2D;AAClE,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,SAA2B,6BAA6B;AACxD,OAAO;AACP,OAAO;AACP,OAAO;AAEP,SAAS,YAAY,OAAoB,WAA+B;AACtE,WAAS,OAAO,OAAO,SAAS;AAChC,SAAO;AACT;AAEA,SAAS,kBAAkB,kBAAsC,eAAmC,kBAAqC;AACvI,QAAM,kBAAkB;AAAA,IACtB,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,SAAS;AAAA,MACP,oBAAoB;AAAA,IACtB;AAAA,EACF;AAEA,QAAM,QAAQ,sBAAsB,gBAAgB;AACpD,MAAG,OAAO;AACR,kBAAc,KAAK,KAAK;AAAA,EAC1B;AAEA,QAAM,UAA+C,CAAC;AACtD,SAAO,KAAK,iBAAiB,OAAO,EAAE,QAAQ,cAAY;AACxD,UAAM,SAAS,iBAAiB,QAAQ,QAAQ;AAChD,QAAG,OAAO,SAAS,YAAY,OAAO,SAAS,cAAc;AAC3D,cAAQ,QAAQ,IAAI;AAAA,IACtB;AAAA,EACF,CAAC;AAED,QAAM,eAAe;AAAA,IACnB,GAAG;AAAA,IACH;AAAA,IACA,QAAQ,CAAC,eAAe,EAAE,OAAO,aAAqC;AAAA,EACxE;AACA,SAAO;AACT;AAuBA,qBAAqB,sBAAsB,MAAM,UAAkD;AAAA,EACjG,OAAO,eAAe;AAAA,IACpB,aAAa,MAAM;AAAA,IAAC;AAAA,IACpB,cAAc,MAAM;AAAA,IAAC;AAAA,IACrB,eAAe,MAAM;AAAA,IAAC;AAAA,IACtB,UAAU,MAAM;AAAA,IAAC;AAAA,IACjB,SAAS,CAAC;AAAA,EACZ;AAAA,EACA,YAAmC;AAAA,EAEnC,YAAY,OAA2B;AACrC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,KAAK;AAAA,MACL,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,mBAAmB,OAA2B;AAC5C,QAAG,CAAC,KAAK,MAAM;AAAK;AAIpB,SAAK,MAAM,IAAI;AAAA,MACb,KAAK,MAAM,oBAAoB,MAAM,QAAQ;AAAA,MAC7C,EAAC,MAAM,KAAI;AAAA,IACb;AAAA,EACF;AAAA,EAEA,sBAAsB,WAA+B,WAA+B;AAClF,QAAI,SAAS;AACb,QAAI;AACF,eAAS,KAAK,UAAU,KAAK,KAAK,MAAM,KAAK,UAAU,SAAS,KAAK,KAAK,UAAU,KAAK,KAAK,MAAM,KAAK,UAAU,SAAS;AAAA,IAC9H,SAAQ,GAAG;AAAA,IAEX;AACA,WAAO;AAAA,EACT;AAAA,EAEA,qBAAqB;AACnB,UAAM,MAAM,KAAK,MAAM;AAEvB,SAAK,mBAAmB,KAAK,KAAK;AAElC,QAAG,KAAK,MAAM,WAAW,KAAK,MAAM,uBAAuB,KAAK,MAAM,QAAQ,iBAAiB;AAG7F,WAAK,MAAM,QAAQ,gBAAgB;AACnC,WAAK,MAAM,QAAQ,gBAAgB;AAAA,IACrC;AACA,QAAI,KAAK;AACP,UAAI,KAAK,MAAM,oBAAoB;AAIjC,YAAI;AACF,eAAK,MAAM,QAAQ,OAAO;AAAA,QAC5B,SAAQ,KAAK;AACX,kBAAQ,MAAM,uBAAuB,GAAG;AAAA,QAC1C;AAAA,MACF;AAEA,UAAI,qBAAqB,KAAK,MAAM,SAAS;AAC7C,UAAI,qBAAqB,KAAK,MAAM,SAAS;AAC7C,UAAI,wBAAwB,KAAK,MAAM,SAAS;AAAA,IAClD;AAAA,EACF;AAAA,EAEA,oBAAoB;AAClB,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,MAAM;AAAA,MACd,WAAW,KAAK;AAAA,MAChB,OAAO,KAAK,MAAM;AAAA,MAClB,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAEA,UAAM,MAAM,IAAI,WAAW,IAAI,OAAO;AAEtC,UAAM,gBAAgB,MAAM;AAC1B,YAAM,SAAS,IAAI,UAAU;AAC7B,YAAM,OAAO,IAAI,QAAQ;AACzB,WAAK,MAAM,SAAS,EAAC,QAAQ,KAAI,CAAC;AAAA,IACpC;AACA,kBAAc;AAEd,QAAI,qBAAqB,QAAQ;AACjC,QAAI,qBAAqB,QAAQ;AACjC,QAAI,wBAAwB,QAAQ;AAEpC,UAAM,cAAc,IAAI;AACxB,QAAI,WAAW,aAAa,WAAW;AAEvC,UAAM,MAAM,IAAI,WAAW,kBAAkB,EAAC,gBAAe,KAAI,CAAC;AAClE,QAAI,WAAW,KAAK,WAAW;AAE/B,UAAM,UAAU,SAAS,cAAc,KAAK;AAE5C,UAAM,UAAU,IAAI,cAAc;AAAA,MAChC,OAAO,IAAI,WAAW,MAAM;AAAA,QAC1B,cAAc;AAAA,MAChB,CAAC;AAAA,MACD,cAAc;AAAA,MACd,qBAAqB;AAAA,MACrB,4BAA4B;AAAA,MAC5B,mBAAmB;AAAA,MACnB,wBAAwB;AAAA,MACxB,kBAAkB,CAAC,SAAiB,UAAkB;AACpD,eAAO,MAAM,OAAO,YAAY,SAAS,KAAK,CAAC,EAAE,WAAW,GAAG,EAAE,OAAO;AAAA,MAC1E;AAAA,MACA,mBAAmB,CAAC,kBAAsC,kBAAsC,kBAAkB,kBAAkB,eAAe,KAAK,MAAM,gBAAgB;AAAA,MAC9K,aAAa,CAAC,aAA+B;AAC3C,YAAG,KAAK,MAAM,oBAAoB;AAChC,iBAAO,YAAY,oBAAC,qCAAkC,UAAoB,GAAI,OAAO;AAAA,QACvF,OAAO;AACL,iBAAO,YAAY,oBAAC,2BAAwB,UAAoB,eAAe,KAAK,mBAAmB,MAAM,KAAK,MAAM,MAAM,GAAI,OAAO;AAAA,QAC3I;AAAA,MACF;AAAA,IACF,CAAC;AACD,QAAI,WAAW,OAAO;AAEtB,QAAI,GAAG,cAAc,MAAM;AACzB,WAAK,SAAS;AAAA,QACZ;AAAA,QACA;AAAA,QACA,MAAM,IAAI,QAAQ;AAAA,MACpB,CAAC;AAAA,IACH,CAAC;AAED,QAAI,GAAG,QAAQ,OAAK;AAClB,UAAG,EAAE,aAAa;AAAQ;AAC1B,WAAK,MAAM,aAAc;AAAA,QACvB,KAAK,KAAK,MAAM;AAAA,MAClB,CAAC;AAAA,IACH,CAAC;AAED,QAAI,GAAG,SAAS,OAAK;AACnB,cAAQ,IAAI,SAAS,CAAC;AAAA,IACxB,CAAC;AAED,QAAI,GAAG,QAAQ,QAAM;AACnB,WAAK,SAAS;AAAA,QACZ,MAAM,IAAI,QAAQ;AAAA,MACpB,CAAC;AAAA,IACH,CAAC;AAED,QAAI,GAAG,WAAW,aAAa;AAC/B,QAAI,GAAG,WAAW,aAAa;AAAA,EACjC;AAAA,EAEA,oBAAoB,CAAC,OAAe;AAClC,UAAM,QAAQ,KAAK,MAAM,SAAS,OAAO,UAAU,WAAS,MAAM,OAAO,EAAE;AAC3E,SAAK,MAAM,cAAc,KAAK;AAAA,EAChC;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,WAAU;AAAA,QACV,MAAK;AAAA,QACL,cAAW;AAAA,QACX,KAAK,OAAK,KAAK,YAAY;AAAA,QAC3B,eAAY;AAAA;AAAA,IACb;AAAA,EACH;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cf2170ca14c8f07639bb91af4dc600c4bb0a376c"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return cn=function(){return s},s}cn();function t9(e,n){return cn().f[0]++,cn().s[0]++,_U.render(e,n),cn().s[1]++,n}function uee(e,n,t){cn().f[1]++;const r=(cn().s[2]++,{id:"background",type:"background",paint:{"background-color":"#1c1f24"}}),i=(cn().s[3]++,lee(t));cn().s[4]++,i?(cn().b[0][0]++,cn().s[5]++,n.push(i)):cn().b[0][1]++;const o=(cn().s[6]++,{});cn().s[7]++,Object.keys(e.sources).forEach(a=>{cn().f[2]++;const f=(cn().s[8]++,e.sources[a]);cn().s[9]++,cn().b[2][0]++,f.type!=="raster"&&(cn().b[2][1]++,f.type!=="raster-dem")?(cn().b[1][0]++,cn().s[10]++,o[a]=f):cn().b[1][1]++});const s=(cn().s[11]++,{...e,sources:o,layers:[r].concat(n)});return cn().s[12]++,s}class aL extends bn.Component{constructor(t){cn().f[7]++,cn().s[15]++;super(t);nn(this,"container",(cn().s[14]++,null));nn(this,"onLayerSelectById",(cn().s[71]++,t=>{cn().f[20]++;const r=(cn().s[72]++,this.props.mapStyle.layers.findIndex(i=>(cn().f[21]++,cn().s[73]++,i.id===t)));cn().s[74]++,this.props.onLayerSelect(r)}));cn().s[16]++,this.state={map:null,inspect:null}}updateMapFromProps(t){if(cn().f[8]++,cn().s[17]++,this.state.map)cn().b[3][1]++;else{cn().b[3][0]++,cn().s[18]++;return}cn().s[19]++,this.state.map.setStyle(this.props.replaceAccessTokens(t.mapStyle),{diff:!0})}shouldComponentUpdate(t,r){cn().f[9]++;let i=(cn().s[20]++,!1);cn().s[21]++;try{cn().s[22]++,i=(cn().b[4][0]++,JSON.stringify(this.props)!==JSON.stringify(t)||(cn().b[4][1]++,JSON.stringify(this.state)!==JSON.stringify(r)))}catch{}return cn().s[23]++,i}componentDidUpdate(){var r,i,o;cn().f[10]++;const t=(cn().s[24]++,this.state.map);if(cn().s[25]++,this.updateMapFromProps(this.props),cn().s[26]++,cn().b[6][0]++,this.state.inspect&&(cn().b[6][1]++,this.props.inspectModeEnabled!==this.state.inspect._showInspectMap)?(cn().b[5][0]++,cn().s[27]++,this.state.inspect._popupBlocked=!1,cn().s[28]++,this.state.inspect.toggleInspector()):cn().b[5][1]++,cn().s[29]++,t){if(cn().b[7][0]++,cn().s[30]++,this.props.inspectModeEnabled){cn().b[8][0]++,cn().s[31]++;try{cn().s[32]++,this.state.inspect.render()}catch(s){cn().s[33]++,console.error("FIXME: Caught error",s)}}else cn().b[8][1]++;cn().s[34]++,t.showTileBoundaries=(r=this.props.options)==null?void 0:r.showTileBoundaries,cn().s[35]++,t.showCollisionBoxes=(i=this.props.options)==null?void 0:i.showCollisionBoxes,cn().s[36]++,t.showOverdrawInspector=(o=this.props.options)==null?void 0:o.showOverdrawInspector}else cn().b[7][1]++}componentDidMount(){cn().f[11]++;const t=(cn().s[37]++,{...this.props.options,container:this.container,style:this.props.mapStyle,hash:!0,maxZoom:24}),r=(cn().s[38]++,new g2.Map(t));cn().s[39]++;const i=()=>{cn().f[12]++;const g=(cn().s[40]++,r.getCenter()),x=(cn().s[41]++,r.getZoom());cn().s[42]++,this.props.onChange({center:g,zoom:x})};cn().s[43]++,i(),cn().s[44]++,r.showTileBoundaries=t.showTileBoundaries,cn().s[45]++,r.showCollisionBoxes=t.showCollisionBoxes,cn().s[46]++,r.showOverdrawInspector=t.showOverdrawInspector;const o=(cn().s[47]++,new see);cn().s[48]++,r.addControl(o,"top-right");const s=(cn().s[49]++,new g2.NavigationControl({visualizePitch:!0}));cn().s[50]++,r.addControl(s,"top-right");const a=(cn().s[51]++,document.createElement("div")),f=(cn().s[52]++,new nJ({popup:new g2.Popup({closeOnClick:!1}),showMapPopup:!0,showMapPopupOnHover:!1,showInspectMapPopupOnHover:!0,showInspectButton:!1,blockHoverPopupOnClick:!0,assignLayerColor:(g,x)=>(cn().f[13]++,cn().s[53]++,D6(t5.brightColor(g,x)).desaturate(.5).string()),buildInspectStyle:(g,x)=>(cn().f[14]++,cn().s[54]++,uee(g,x,this.props.highlightedLayer)),renderPopup:g=>(cn().f[15]++,cn().s[55]++,this.props.inspectModeEnabled?(cn().b[9][0]++,cn().s[56]++,t9(N.jsx(UJ,{features:g}),a)):(cn().b[9][1]++,cn().s[57]++,t9(N.jsx(HR,{features:g,onLayerSelect:this.onLayerSelectById,zoom:this.state.zoom}),a)))}));cn().s[58]++,r.addControl(f),cn().s[59]++,r.on("style.load",()=>{cn().f[16]++,cn().s[60]++,this.setState({map:r,inspect:f,zoom:r.getZoom()})}),cn().s[61]++,r.on("data",g=>{if(cn().f[17]++,cn().s[62]++,g.dataType!=="tile"){cn().b[10][0]++,cn().s[63]++;return}else cn().b[10][1]++;cn().s[64]++,this.props.onDataChange({map:this.state.map})}),cn().s[65]++,r.on("error",g=>{cn().f[18]++,cn().s[66]++,console.log("ERROR",g)}),cn().s[67]++,r.on("zoom",g=>{cn().f[19]++,cn().s[68]++,this.setState({zoom:r.getZoom()})}),cn().s[69]++,r.on("dragend",i),cn().s[70]++,r.on("zoomend",i)}render(){return cn().f[22]++,cn().s[75]++,N.jsx("div",{className:"maputnik-map__map",role:"region","aria-label":"Map view",ref:t=>(cn().f[23]++,cn().s[76]++,this.container=t),"data-wd-key":"maplibre:map"})}}nn(aL,"defaultProps",(cn().s[13]++,{onMapLoaded:()=>{cn().f[3]++},onDataChange:()=>{cn().f[4]++},onLayerSelect:()=>{cn().f[5]++},onChange:()=>{cn().f[6]++},options:{}}));var Ep=function(){function e(n){this.propagationStopped,this.defaultPrevented,this.type=n,this.target=null}return e.prototype.preventDefault=function(){this.defaultPrevented=!0},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e}();const xy={PROPERTYCHANGE:"propertychange"};var Aee=function(){function e(){this.disposed=!1}return e.prototype.dispose=function(){this.disposed||(this.disposed=!0,this.disposeInternal())},e.prototype.disposeInternal=function(){},e}();const UB=Aee;function cee(e,n,t){for(var r,i,o=t||c1,s=0,a=e.length,f=!1;s>1),i=+o(e[r],n),i<0?s=r+1:(a=r,f=!i);return f?s:~s}function c1(e,n){return e>n?1:e0){for(i=1;i0?i-1:i:e[i-1]-n0||t&&s===0)})}function ty(){return!0}function n5(){return!1}function d1(){}function fee(e){var n=!1,t,r,i;return function(){var o=Array.prototype.slice.call(arguments);return(!n||this!==i||!_1(o,r))&&(n=!0,i=this,r=o,t=e.apply(this,arguments)),t}}var al=typeof Object.assign=="function"?Object.assign:function(e,n){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,i=arguments.length;r0:!1},n.prototype.removeEventListener=function(t,r){var i=this.listeners_&&this.listeners_[t];if(i){var o=i.indexOf(r);o!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[o]=d1,++this.pendingRemovals_[t]):(i.splice(o,1),i.length===0&&delete this.listeners_[t]))}},n}(UB);const zy=mee,ki={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function wo(e,n,t,r,i){if(r&&r!==e&&(t=t.bind(r)),i){var o=t;t=function(){e.removeEventListener(n,t),o.apply(this,arguments)}}var s={target:e,type:n,listener:t};return e.addEventListener(n,t),s}function v3(e,n,t,r){return wo(e,n,t,r,!0)}function Ga(e){e&&e.target&&(e.target.removeEventListener(e.type,e.listener),Q_(e))}var gee=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),r5=function(e){gee(n,e);function n(){var t=e.call(this)||this;return t.on=t.onInternal,t.once=t.onceInternal,t.un=t.unInternal,t.revision_=0,t}return n.prototype.changed=function(){++this.revision_,this.dispatchEvent(ki.CHANGE)},n.prototype.getRevision=function(){return this.revision_},n.prototype.onInternal=function(t,r){if(Array.isArray(t)){for(var i=t.length,o=new Array(i),s=0;s=0||Fm.match(/cpu (os|iphone os) 15_4 like mac os x/));var Eee=Fm.indexOf("webkit")!==-1&&Fm.indexOf("edge")==-1,Oee=Fm.indexOf("macintosh")!==-1,cL=typeof devicePixelRatio<"u"?devicePixelRatio:1,i5=typeof WorkerGlobalScope<"u"&&typeof OffscreenCanvas<"u"&&self instanceof WorkerGlobalScope,Bee=typeof Image<"u"&&Image.prototype.decode,dL=function(){var e=!1;try{var n=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("_",null,n),window.removeEventListener("_",null,n)}catch{}return e}(),hL=new Array(6);function xd(){return[1,0,0,1,0,0]}function r9(e){return o5(e,1,0,0,1,0,0)}function LB(e,n){var t=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],f=n[0],g=n[1],x=n[2],k=n[3],B=n[4],P=n[5];return e[0]=t*f+i*g,e[1]=r*f+o*g,e[2]=t*x+i*k,e[3]=r*x+o*k,e[4]=t*B+i*P+s,e[5]=r*B+o*P+a,e}function o5(e,n,t,r,i,o,s){return e[0]=n,e[1]=t,e[2]=r,e[3]=i,e[4]=o,e[5]=s,e}function kee(e,n){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e}function rl(e,n){var t=n[0],r=n[1];return n[0]=e[0]*t+e[2]*r+e[4],n[1]=e[1]*t+e[3]*r+e[5],n}function sM(e,n,t){return LB(e,o5(hL,n,0,0,t,0,0))}function Iee(e,n,t){return o5(e,n,0,0,t,0,0)}function Tee(e,n,t){return LB(e,o5(hL,1,0,0,1,n,t))}function df(e,n,t,r,i,o,s,a){var f=Math.sin(o),g=Math.cos(o);return e[0]=r*g,e[1]=i*f,e[2]=-r*f,e[3]=i*g,e[4]=s*r*g-a*r*f+n,e[5]=s*i*f+a*i*g+t,e}function zB(e,n){var t=Kee(n);ao(t!==0,32);var r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],f=n[5];return e[0]=s/t,e[1]=-i/t,e[2]=-o/t,e[3]=r/t,e[4]=(o*f-s*a)/t,e[5]=-(r*f-i*a)/t,e}function Kee(e){return e[0]*e[3]-e[1]*e[2]}var i9;function fL(e){var n="matrix("+e.join(", ")+")";if(i5)return n;var t=i9||(i9=document.createElement("div"));return t.style.transform=n,t.style.transform}const iu={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function U6(e){for(var n=Ed(),t=0,r=e.length;ti&&(f=f|iu.RIGHT),ao&&(f=f|iu.ABOVE),f===iu.UNKNOWN&&(f=iu.INTERSECTING),f}function Ed(){return[1/0,1/0,-1/0,-1/0]}function hf(e,n,t,r,i){return i?(i[0]=e,i[1]=n,i[2]=t,i[3]=r,i):[e,n,t,r]}function Y_(e){return hf(1/0,1/0,-1/0,-1/0,e)}function mL(e,n){var t=e[0],r=e[1];return hf(t,r,t,r,n)}function WB(e,n,t,r,i){var o=Y_(i);return yL(o,e,n,t,r)}function wy(e,n){return e[0]==n[0]&&e[2]==n[2]&&e[1]==n[1]&&e[3]==n[3]}function gL(e,n){return n[0]e[2]&&(e[2]=n[2]),n[1]e[3]&&(e[3]=n[3]),e}function kC(e,n){n[0]e[2]&&(e[2]=n[0]),n[1]e[3]&&(e[3]=n[1])}function yL(e,n,t,r,i){for(;tn[0]?r[0]=e[0]:r[0]=n[0],e[1]>n[1]?r[1]=e[1]:r[1]=n[1],e[2]=n[0]&&e[1]<=n[3]&&e[3]>=n[1]}function NB(e){return e[2]=s&&H<=f),!r&&o&iu.RIGHT&&!(i&iu.RIGHT)&&(W=P-(B-f)*R,r=W>=a&&W<=g),!r&&o&iu.BELOW&&!(i&iu.BELOW)&&(H=B-(P-a)/R,r=H>=s&&H<=f),!r&&o&iu.LEFT&&!(i&iu.LEFT)&&(W=P-(B-s)*R,r=W>=a&&W<=g)}return r}function Lee(e,n,t,r){var i=[];if(r>1)for(var o=e[2]-e[0],s=e[3]-e[1],a=0;a=t[2])){var i=os(t),o=Math.floor((r[0]-t[0])/i),s=o*i;e[0]-=s,e[2]-=s}return e}function zee(e,n){if(n.canWrapX()){var t=n.getExtent();if(!isFinite(e[0])||!isFinite(e[2]))return[[t[0],e[1],t[2],e[3]]];CL(e,n);var r=os(t);if(os(e)>r)return[[t[0],e[1],t[2],e[3]]];if(e[0]t[2])return[[e[0],e[1],t[2],e[3]],[t[0],e[1],e[2]-r,e[3]]]}return[e]}var jee=function(){function e(n){this.code_=n.code,this.units_=n.units,this.extent_=n.extent!==void 0?n.extent:null,this.worldExtent_=n.worldExtent!==void 0?n.worldExtent:null,this.axisOrientation_=n.axisOrientation!==void 0?n.axisOrientation:"enu",this.global_=n.global!==void 0?n.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=n.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=n.metersPerUnit}return e.prototype.canWrapX=function(){return this.canWrapX_},e.prototype.getCode=function(){return this.code_},e.prototype.getExtent=function(){return this.extent_},e.prototype.getUnits=function(){return this.units_},e.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||cf[this.units_]},e.prototype.getWorldExtent=function(){return this.worldExtent_},e.prototype.getAxisOrientation=function(){return this.axisOrientation_},e.prototype.isGlobal=function(){return this.global_},e.prototype.setGlobal=function(n){this.global_=n,this.canWrapX_=!!(n&&this.extent_)},e.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},e.prototype.setDefaultTileGrid=function(n){this.defaultTileGrid_=n},e.prototype.setExtent=function(n){this.extent_=n,this.canWrapX_=!!(this.global_&&n)},e.prototype.setWorldExtent=function(n){this.worldExtent_=n},e.prototype.setGetPointResolution=function(n){this.getPointResolutionFunc_=n},e.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_},e}();const GB=jee;function vl(e,n,t){return Math.min(Math.max(e,n),t)}var Wee=function(){var e;return"cosh"in Math?e=Math.cosh:e=function(n){var t=Math.exp(n);return(t+1/t)/2},e}(),Nee=function(){var e;return"log2"in Math?e=Math.log2:e=function(n){return Math.log(n)*Math.LOG2E},e}();function Gee(e,n,t,r,i,o){var s=i-t,a=o-r;if(s!==0||a!==0){var f=((e-t)*s+(n-r)*a)/(s*s+a*a);f>1?(t=i,r=o):f>0&&(t+=s*f,r+=a*f)}return J0(e,n,t,r)}function J0(e,n,t,r){var i=t-e,o=r-n;return i*i+o*o}function Qee(e){for(var n=e.length,t=0;ti&&(i=s,r=o)}if(i===0)return null;var a=e[r];e[r]=e[t],e[t]=a;for(var f=t+1;f=0;B--){k[B]=e[B][n]/e[B][B];for(var P=B-1;P>=0;P--)e[P][n]-=e[P][B]*k[B]}return k}function y2(e){return e*Math.PI/180}function e1(e,n){var t=e%n;return t*n<0?t+n:t}function Ap(e,n,t){return e+t*(n-e)}function _L(e,n){var t=Math.pow(10,n);return Math.round(e*t)/t}function yx(e,n){return Math.floor(_L(e,n))}function vx(e,n){return Math.ceil(_L(e,n))}var $ee=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),q_=6378137,Dg=Math.PI*q_,Yee=[-Dg,-Dg,Dg,Dg],qee=[-180,-85,180,85],Cx=q_*Math.log(Math.tan(Math.PI/2)),ig=function(e){$ee(n,e);function n(t){return e.call(this,{code:t,units:gA.METERS,extent:Yee,global:!0,worldExtent:qee,getPointResolution:function(r,i){return r/Wee(i[1]/q_)}})||this}return n}(GB),o9=[new ig("EPSG:3857"),new ig("EPSG:102100"),new ig("EPSG:102113"),new ig("EPSG:900913"),new ig("http://www.opengis.net/def/crs/EPSG/0/3857"),new ig("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Vee(e,n,t){var r=e.length,i=t>1?t:2,o=n;o===void 0&&(i>2?o=e.slice():o=new Array(r));for(var s=0;sCx?a=Cx:a<-Cx&&(a=-Cx),o[s+1]=a}return o}function Hee(e,n,t){var r=e.length,i=t>1?t:2,o=n;o===void 0&&(i>2?o=e.slice():o=new Array(r));for(var s=0;s=0;--r)if(e[r]!=n[r]){t=!1;break}return t}function QB(e,n){var t=Math.cos(n),r=Math.sin(n),i=e[0]*t-e[1]*r,o=e[1]*t+e[0]*r;return e[0]=i,e[1]=o,e}function ite(e,n){return e[0]*=n,e[1]*=n,e}function $B(e,n){if(n.canWrapX()){var t=os(n.getExtent()),r=ote(e,n,t);r&&(e[0]-=r*t)}return e}function ote(e,n,t){var r=n.getExtent(),i=0;if(n.canWrapX()&&(e[0]r[2])){var o=t||os(r);i=Math.floor((e[0]-r[0])/o)}return i}var ate=63710088e-1;function l9(e,n,t){var r=t||ate,i=y2(e[1]),o=y2(n[1]),s=(o-i)/2,a=y2(n[0]-e[0])/2,f=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(i)*Math.cos(o);return 2*r*Math.atan2(Math.sqrt(f),Math.sqrt(1-f))}var N6=!0;function bL(e){var n=e===void 0?!0:e;N6=!n}function YB(e,n,t){var r;if(n!==void 0){for(var i=0,o=e.length;i180)&&(t[0]=e1(r+180,360)-180),t}function I0(e,n){if(e===n)return!0;var t=e.getUnits()===n.getUnits();if(e.getCode()===n.getCode())return t;var r=u5(e,n);return r===YB&&t}function u5(e,n){var t=e.getCode(),r=n.getCode(),i=nte(t,r);return i||(i=xL),i}function b3(e,n){var t=Fs(e),r=Fs(n);return u5(t,r)}function VB(e,n,t){var r=b3(n,t);return r(e,void 0,e.length)}var Ate=null;function cte(){return Ate}function Q6(e,n){return e}function rp(e,n){return N6&&!_3(e,[0,0])&&e[0]>=-180&&e[0]<=180&&e[1]>=-90&&e[1]<=90&&(N6=!1,console.warn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),e}function wL(e,n){return e}function j0(e,n){return e}function dte(){A9(o9),A9(s9),ute(s9,o9,Vee,Hee)}dte();function Om(e,n,t,r,i,o){for(var s=o||[],a=0,f=n;f1)k=t;else if(B>0){for(var P=0;Pi&&(i=g),o=a,s=f}return i}function XB(e,n,t,r,i){for(var o=0,s=t.length;o0;){for(var k=g.pop(),B=g.pop(),P=0,R=e[B],H=e[B+1],W=e[k],$=e[k+1],q=B+r;qP&&(x=q,P=ce)}P>i&&(f[(x-n)/r]=1,B+r0&&H>P)&&(R<0&&W0&&W>R)){g=k,x=B;continue}o[s++]=g,o[s++]=x,a=g,f=x,g=k,x=B}}return o[s++]=g,o[s++]=x,s}function OL(e,n,t,r,i,o,s,a){for(var f=0,g=t.length;f1?s:2,ne=o||new Array(oe),R=0;R>1;io&&(g-a)*(o-f)-(i-a)*(x-f)>0&&s++:x<=o&&(g-a)*(o-f)-(i-a)*(x-f)<0&&s--,a=g,f=x}return s!==0}function r7(e,n,t,r,i,o){if(t.length===0||!W0(e,n,t[0],r,i,o))return!1;for(var s=1,a=t.length;s=i[0]&&o[2]<=i[2]||o[1]>=i[1]&&o[3]<=i[3]?!0:BL(e,n,t,r,function(s,a){return Ree(i,s,a)}):!1}function Ute(e,n,t,r,i){for(var o=0,s=t.length;one&&(g=(x+k)/2,r7(e,n,t,r,g,R)&&(oe=g,ne=ce)),x=k}return isNaN(oe)&&(oe=i[o]),s?(s.push(oe,R,ne),s):[oe,R,ne]}function DL(e,n,t,r,i){for(var o=[],s=0,a=t.length;s0}function UL(e,n,t,r,i){for(var o=i!==void 0?i:!1,s=0,a=t.length;s"u"?null:new TextDecoder("utf8");na.prototype={destroy:function(){this.buf=null},readFields:function(e,n,t){for(t=t||this.length;this.pos>3,o=this.pos;this.type=r&7,e(i,n,this),this.pos===o&&this.skip(r)}return n},readMessage:function(e,n){return this.readFields(e,n,this.readVarint()+this.pos)},readFixed32:function(){var e=xx(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=C9(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=xx(this.buf,this.pos)+xx(this.buf,this.pos+4)*Z6;return this.pos+=8,e},readSFixed64:function(){var e=xx(this.buf,this.pos)+C9(this.buf,this.pos+4)*Z6;return this.pos+=8,e},readFloat:function(){var e=bx.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=bx.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var n=this.buf,t,r;return r=n[this.pos++],t=r&127,r<128||(r=n[this.pos++],t|=(r&127)<<7,r<128)||(r=n[this.pos++],t|=(r&127)<<14,r<128)||(r=n[this.pos++],t|=(r&127)<<21,r<128)?t:(r=n[this.pos],t|=(r&15)<<28,Cne(t,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!!this.readVarint()},readString:function(){var e=this.readVarint()+this.pos,n=this.pos;return this.pos=e,e-n>=vne&&jL?Pne(this.buf,n,e):Kne(this.buf,n,e)},readBytes:function(){var e=this.readVarint()+this.pos,n=this.buf.subarray(this.pos,e);return this.pos=e,n},readPackedVarint:function(e,n){if(this.type!==na.Bytes)return e.push(this.readVarint(n));var t=Hf(this);for(e=e||[];this.pos127;);else if(n===na.Bytes)this.pos=this.readVarint()+this.pos;else if(n===na.Fixed32)this.pos+=4;else if(n===na.Fixed64)this.pos+=8;else throw new Error("Unimplemented type: "+n)},writeTag:function(e,n){this.writeVarint(e<<3|n)},realloc:function(e){for(var n=this.length||16;n268435455||e<0){_ne(e,this);return}this.realloc(4),this.buf[this.pos++]=e&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=(e>>>=7)&127|(e>127?128:0),!(e<=127)&&(this.buf[this.pos++]=e>>>7&127)))},writeSVarint:function(e){this.writeVarint(e<0?-e*2-1:e*2)},writeBoolean:function(e){this.writeVarint(!!e)},writeString:function(e){e=String(e),this.realloc(e.length*4),this.pos++;var n=this.pos;this.pos=Fne(this.buf,e,this.pos);var t=this.pos-n;t>=128&&v9(n,t,this),this.pos=n-1,this.writeVarint(t),this.pos+=t},writeFloat:function(e){this.realloc(4),bx.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),bx.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var n=e.length;this.writeVarint(n),this.realloc(n);for(var t=0;t=128&&v9(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,n,t){this.writeTag(e,na.Bytes),this.writeRawMessage(n,t)},writePackedVarint:function(e,n){n.length&&this.writeMessage(e,wne,n)},writePackedSVarint:function(e,n){n.length&&this.writeMessage(e,Mne,n)},writePackedBoolean:function(e,n){n.length&&this.writeMessage(e,One,n)},writePackedFloat:function(e,n){n.length&&this.writeMessage(e,Sne,n)},writePackedDouble:function(e,n){n.length&&this.writeMessage(e,Ene,n)},writePackedFixed32:function(e,n){n.length&&this.writeMessage(e,Bne,n)},writePackedSFixed32:function(e,n){n.length&&this.writeMessage(e,kne,n)},writePackedFixed64:function(e,n){n.length&&this.writeMessage(e,Ine,n)},writePackedSFixed64:function(e,n){n.length&&this.writeMessage(e,Tne,n)},writeBytesField:function(e,n){this.writeTag(e,na.Bytes),this.writeBytes(n)},writeFixed32Field:function(e,n){this.writeTag(e,na.Fixed32),this.writeFixed32(n)},writeSFixed32Field:function(e,n){this.writeTag(e,na.Fixed32),this.writeSFixed32(n)},writeFixed64Field:function(e,n){this.writeTag(e,na.Fixed64),this.writeFixed64(n)},writeSFixed64Field:function(e,n){this.writeTag(e,na.Fixed64),this.writeSFixed64(n)},writeVarintField:function(e,n){this.writeTag(e,na.Varint),this.writeVarint(n)},writeSVarintField:function(e,n){this.writeTag(e,na.Varint),this.writeSVarint(n)},writeStringField:function(e,n){this.writeTag(e,na.Bytes),this.writeString(n)},writeFloatField:function(e,n){this.writeTag(e,na.Fixed32),this.writeFloat(n)},writeDoubleField:function(e,n){this.writeTag(e,na.Fixed64),this.writeDouble(n)},writeBooleanField:function(e,n){this.writeVarintField(e,!!n)}};function Cne(e,n,t){var r=t.buf,i,o;if(o=r[t.pos++],i=(o&112)>>4,o<128||(o=r[t.pos++],i|=(o&127)<<3,o<128)||(o=r[t.pos++],i|=(o&127)<<10,o<128)||(o=r[t.pos++],i|=(o&127)<<17,o<128)||(o=r[t.pos++],i|=(o&127)<<24,o<128)||(o=r[t.pos++],i|=(o&1)<<31,o<128))return og(e,i,n);throw new Error("Expected varint not more than 10 bytes")}function Hf(e){return e.type===na.Bytes?e.readVarint()+e.pos:e.pos+1}function og(e,n,t){return t?n*4294967296+(e>>>0):(n>>>0)*4294967296+(e>>>0)}function _ne(e,n){var t,r;if(e>=0?(t=e%4294967296|0,r=e/4294967296|0):(t=~(-e%4294967296),r=~(-e/4294967296),t^4294967295?t=t+1|0:(t=0,r=r+1|0)),e>=18446744073709552e3||e<-18446744073709552e3)throw new Error("Given varint doesn't fit into 10 bytes");n.realloc(10),bne(t,r,n),xne(r,n)}function bne(e,n,t){t.buf[t.pos++]=e&127|128,e>>>=7,t.buf[t.pos++]=e&127|128,e>>>=7,t.buf[t.pos++]=e&127|128,e>>>=7,t.buf[t.pos++]=e&127|128,e>>>=7,t.buf[t.pos]=e&127}function xne(e,n){var t=(e&7)<<4;n.buf[n.pos++]|=t|((e>>>=3)?128:0),e&&(n.buf[n.pos++]=e&127|((e>>>=7)?128:0),e&&(n.buf[n.pos++]=e&127|((e>>>=7)?128:0),e&&(n.buf[n.pos++]=e&127|((e>>>=7)?128:0),e&&(n.buf[n.pos++]=e&127|((e>>>=7)?128:0),e&&(n.buf[n.pos++]=e&127)))))}function v9(e,n,t){var r=n<=16383?1:n<=2097151?2:n<=268435455?3:Math.floor(Math.log(n)/(Math.LN2*7));t.realloc(r);for(var i=t.pos-1;i>=e;i--)t.buf[i+r]=t.buf[i]}function wne(e,n){for(var t=0;t>>8,e[t+2]=n>>>16,e[t+3]=n>>>24}function C9(e,n){return(e[n]|e[n+1]<<8|e[n+2]<<16)+(e[n+3]<<24)}function Kne(e,n,t){for(var r="",i=n;i239?4:o>223?3:o>191?2:1;if(i+a>t)break;var f,g,x;a===1?o<128&&(s=o):a===2?(f=e[i+1],(f&192)===128&&(s=(o&31)<<6|f&63,s<=127&&(s=null))):a===3?(f=e[i+1],g=e[i+2],(f&192)===128&&(g&192)===128&&(s=(o&15)<<12|(f&63)<<6|g&63,(s<=2047||s>=55296&&s<=57343)&&(s=null))):a===4&&(f=e[i+1],g=e[i+2],x=e[i+3],(f&192)===128&&(g&192)===128&&(x&192)===128&&(s=(o&15)<<18|(f&63)<<12|(g&63)<<6|x&63,(s<=65535||s>=1114112)&&(s=null))),s===null?(s=65533,a=1):s>65535&&(s-=65536,r+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),r+=String.fromCharCode(s),i+=a}return r}function Pne(e,n,t){return jL.decode(e.subarray(n,t))}function Fne(e,n,t){for(var r=0,i,o;r55295&&i<57344)if(o)if(i<56320){e[t++]=239,e[t++]=191,e[t++]=189,o=i;continue}else i=o-55296<<10|i-56320|65536,o=null;else{i>56319||r+1===n.length?(e[t++]=239,e[t++]=191,e[t++]=189):o=i;continue}else o&&(e[t++]=239,e[t++]=191,e[t++]=189,o=null);i<128?e[t++]=i:(i<2048?e[t++]=i>>6|192:(i<65536?e[t++]=i>>12|224:(e[t++]=i>>18|240,e[t++]=i>>12&63|128),e[t++]=i>>6&63|128),e[t++]=i&63|128)}return t}const Dne=ga(yne);var _9=xd(),d_=function(){function e(n,t,r,i,o){this.styleFunction,this.extent_,this.id_=o,this.type_=n,this.flatCoordinates_=t,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=r,this.properties_=i}return e.prototype.get=function(n){return this.properties_[n]},e.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_==="Point"?mL(this.flatCoordinates_):WB(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},e.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var n=Dm(this.getExtent());this.flatInteriorPoints_=o7(this.flatCoordinates_,0,this.ends_,2,n,0)}return this.flatInteriorPoints_},e.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var n=LL(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=DL(this.flatCoordinates_,0,this.ends_,2,n)}return this.flatInteriorPoints_},e.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=x3(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},e.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var n=this.flatCoordinates_,t=0,r=this.ends_,i=0,o=r.length;i>3}f--,a===1||a===2?(g+=t.readSVarint(),x+=t.readSVarint(),a===1&&k>B&&(o.push(k),B=k),i.push(g,x),k+=2):a===7?k>B&&(i.push(i[B],i[B+1]),k+=2):ao(!1,59)}k>B&&(o.push(k),B=k)},n.prototype.createFeature_=function(t,r,i){var o=r.type;if(o===0)return null;var s,a=r.properties,f;this.idProperty_?(f=a[this.idProperty_],delete a[this.idProperty_]):f=r.id,a[this.layerName_]=r.layer.name;var g=[],x=[];this.readRawGeometry_(t,r,g,x);var k=Nne(o,x.length);if(this.featureClass_===X6)s=new this.featureClass_(k,g,x,a,f),s.transform(i.dataProjection);else{var B=void 0;if(k=="Polygon"){var P=Xte(g,x);B=P.length>1?new zL(g,Ta.XY,P):new c_(g,Ta.XY,x)}else B=k==="Point"?new A_(g,Ta.XY):k==="LineString"?new w3(g,Ta.XY):k==="MultiPoint"?new i7(g,Ta.XY):k==="MultiLineString"?new KL(g,Ta.XY,x):null;var R=this.featureClass_;s=new R,this.geometryName_&&s.setGeometryName(this.geometryName_);var H=HB(B,!1,i);s.setGeometry(H),f!==void 0&&s.setId(f),s.setProperties(a,!0)}return s},n.prototype.getType=function(){return"arraybuffer"},n.prototype.readFeatures=function(t,r){var i=this.layers_,o=this.adaptOptions(r),s=Fs(o.dataProjection);s.setWorldExtent(o.extent),o.dataProjection=s;var a=new Dne(t),f=a.readFields(Lne,{}),g=[];for(var x in f)if(!(i&&i.indexOf(x)==-1)){var k=f[x],B=k?[0,0,k.extent,k.extent]:null;s.setExtent(B);for(var P=0,R=k.length;P>3,r=e===1?t.readString():e===2?t.readFloat():e===3?t.readDouble():e===4?t.readVarint64():e===5?t.readVarint():e===6?t.readSVarint():e===7?t.readBoolean():null;n.values.push(r)}}function jne(e,n,t){if(e==1)n.id=t.readVarint();else if(e==2)for(var r=t.readVarint()+t.pos;t.pos=e){var o=0;for(var s in n)o++&3||(delete n[s],--t)}i=Vne(r),n[r]=i,++t}return i}}();function M3(e){return Array.isArray(e)?e:qne(e)}function Vne(e){var n,t,r,i,o;if($ne.exec(e)&&(e=Yne(e)),Qne.exec(e)){var s=e.length-1,a=void 0;s<=4?a=1:a=2;var f=s===4||s===8;n=parseInt(e.substr(1+0*a,a),16),t=parseInt(e.substr(1+1*a,a),16),r=parseInt(e.substr(1+2*a,a),16),f?i=parseInt(e.substr(1+3*a,a),16):i=255,a==1&&(n=(n<<4)+n,t=(t<<4)+t,r=(r<<4)+r,f&&(i=(i<<4)+i)),o=[n,t,r,i/255]}else e.indexOf("rgba(")==0?(o=e.slice(5,-1).split(",").map(Number),b9(o)):e.indexOf("rgb(")==0?(o=e.slice(4,-1).split(",").map(Number),o.push(1),b9(o)):ao(!1,14);return o}function b9(e){return e[0]=vl(e[0]+.5|0,0,255),e[1]=vl(e[1]+.5|0,0,255),e[2]=vl(e[2]+.5|0,0,255),e[3]=vl(e[3],0,1),e}function NL(e){var n=e[0];n!=(n|0)&&(n=n+.5|0);var t=e[1];t!=(t|0)&&(t=t+.5|0);var r=e[2];r!=(r|0)&&(r=r+.5|0);var i=e[3]===void 0?1:Math.round(e[3]*100)/100;return"rgba("+n+","+t+","+r+","+i+")"}var Hne=function(){function e(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}return e.prototype.clear=function(){this.cache_={},this.cacheSize_=0},e.prototype.canExpireCache=function(){return this.cacheSize_>this.maxCacheSize_},e.prototype.expire=function(){if(this.canExpireCache()){var n=0;for(var t in this.cache_){var r=this.cache_[t];!(n++&3)&&!r.hasListener()&&(delete this.cache_[t],--this.cacheSize_)}}},e.prototype.get=function(n,t,r){var i=x9(n,t,r);return i in this.cache_?this.cache_[i]:null},e.prototype.set=function(n,t,r,i){var o=x9(n,t,r);this.cache_[o]=i,++this.cacheSize_},e.prototype.setSize=function(n){this.maxCacheSize_=n,this.expire()},e}();function x9(e,n,t){var r=t?WL(t):"null";return n+":"+e+":"+r}var S3=new Hne;const fa={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var Zne=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Xne=function(e){Zne(n,e);function n(t){var r=e.call(this)||this;r.on,r.once,r.un,r.background_=t.background;var i=al({},t);return typeof t.properties=="object"&&(delete i.properties,al(i,t.properties)),i[fa.OPACITY]=t.opacity!==void 0?t.opacity:1,ao(typeof i[fa.OPACITY]=="number",64),i[fa.VISIBLE]=t.visible!==void 0?t.visible:!0,i[fa.Z_INDEX]=t.zIndex,i[fa.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[fa.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[fa.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[fa.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,r.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,r.setProperties(i),r.state_=null,r}return n.prototype.getBackground=function(){return this.background_},n.prototype.getClassName=function(){return this.className_},n.prototype.getLayerState=function(t){var r=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return r.opacity=vl(Math.round(this.getOpacity()*100)/100,0,1),r.visible=this.getVisible(),r.extent=this.getExtent(),r.zIndex=i===void 0&&!r.managed?1/0:i,r.maxResolution=this.getMaxResolution(),r.minResolution=Math.max(this.getMinResolution(),0),r.minZoom=this.getMinZoom(),r.maxZoom=this.getMaxZoom(),this.state_=r,r},n.prototype.getLayersArray=function(t){return li()},n.prototype.getLayerStatesArray=function(t){return li()},n.prototype.getExtent=function(){return this.get(fa.EXTENT)},n.prototype.getMaxResolution=function(){return this.get(fa.MAX_RESOLUTION)},n.prototype.getMinResolution=function(){return this.get(fa.MIN_RESOLUTION)},n.prototype.getMinZoom=function(){return this.get(fa.MIN_ZOOM)},n.prototype.getMaxZoom=function(){return this.get(fa.MAX_ZOOM)},n.prototype.getOpacity=function(){return this.get(fa.OPACITY)},n.prototype.getSourceState=function(){return li()},n.prototype.getVisible=function(){return this.get(fa.VISIBLE)},n.prototype.getZIndex=function(){return this.get(fa.Z_INDEX)},n.prototype.setBackground=function(t){this.background_=t,this.changed()},n.prototype.setExtent=function(t){this.set(fa.EXTENT,t)},n.prototype.setMaxResolution=function(t){this.set(fa.MAX_RESOLUTION,t)},n.prototype.setMinResolution=function(t){this.set(fa.MIN_RESOLUTION,t)},n.prototype.setMaxZoom=function(t){this.set(fa.MAX_ZOOM,t)},n.prototype.setMinZoom=function(t){this.set(fa.MIN_ZOOM,t)},n.prototype.setOpacity=function(t){ao(typeof t=="number",64),this.set(fa.OPACITY,t)},n.prototype.setVisible=function(t){this.set(fa.VISIBLE,t)},n.prototype.setZIndex=function(t){this.set(fa.Z_INDEX,t)},n.prototype.disposeInternal=function(){this.state_&&(this.state_.layer=null,this.state_=null),e.prototype.disposeInternal.call(this)},n}(mh);const GL=Xne,Bm={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var Jne=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),d5=function(e){Jne(n,e);function n(t){var r=this,i=al({},t);delete i.source,r=e.call(this,i)||this,r.on,r.once,r.un,r.mapPrecomposeKey_=null,r.mapRenderKey_=null,r.sourceChangeKey_=null,r.renderer_=null,r.rendered=!1,t.render&&(r.render=t.render),t.map&&r.setMap(t.map),r.addChangeListener(fa.SOURCE,r.handleSourcePropertyChange_);var o=t.source?t.source:null;return r.setSource(o),r}return n.prototype.getLayersArray=function(t){var r=t||[];return r.push(this),r},n.prototype.getLayerStatesArray=function(t){var r=t||[];return r.push(this.getLayerState()),r},n.prototype.getSource=function(){return this.get(fa.SOURCE)||null},n.prototype.getRenderSource=function(){return this.getSource()},n.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():"undefined"},n.prototype.handleSourceChange_=function(){this.changed()},n.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Ga(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=wo(t,ki.CHANGE,this.handleSourceChange_,this)),this.changed()},n.prototype.getFeatures=function(t){return this.renderer_?this.renderer_.getFeatures(t):new Promise(function(r){return r([])})},n.prototype.getData=function(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)},n.prototype.render=function(t,r){var i=this.getRenderer();if(i.prepareFrame(t))return this.rendered=!0,i.renderFrame(t,r)},n.prototype.unrender=function(){this.rendered=!1},n.prototype.setMapInternal=function(t){t||this.unrender(),this.set(fa.MAP,t)},n.prototype.getMapInternal=function(){return this.get(fa.MAP)},n.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Ga(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Ga(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=wo(t,Bm.PRECOMPOSE,function(r){var i=r,o=i.frameState.layerStatesArray,s=this.getLayerState(!1);ao(!o.some(function(a){return a.layer===s.layer}),67),o.push(s)},this),this.mapRenderKey_=wo(this,ki.CHANGE,t.render,t),this.changed())},n.prototype.setSource=function(t){this.set(fa.SOURCE,t)},n.prototype.getRenderer=function(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_},n.prototype.hasRenderer=function(){return!!this.renderer_},n.prototype.createRenderer=function(){return null},n.prototype.disposeInternal=function(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),e.prototype.disposeInternal.call(this)},n}(GL);function E3(e,n){if(!e.visible)return!1;var t=n.resolution;if(t=e.maxResolution)return!1;var r=n.zoom;return r>e.minZoom&&r<=e.maxZoom}var ere=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),tre=function(e){ere(n,e);function n(t){var r=e.call(this)||this;return r.map_=t,r}return n.prototype.dispatchRenderEvent=function(t,r){li()},n.prototype.calculateMatrices2D=function(t){var r=t.viewState,i=t.coordinateToPixelTransform,o=t.pixelToCoordinateTransform;df(i,t.size[0]/2,t.size[1]/2,1/r.resolution,-1/r.resolution,-r.rotation,-r.center[0],-r.center[1]),zB(o,i)},n.prototype.forEachFeatureAtCoordinate=function(t,r,i,o,s,a,f,g){var x,k=r.viewState;function B(Ce,jt,Ft,Jt){return s.call(a,jt,Ce?Ft:null,Jt)}var P=k.projection,R=$B(t.slice(),P),H=[[0,0]];if(P.canWrapX()&&o){var W=P.getExtent(),$=os(W);H.push([-$,0],[$,0])}for(var q=r.layerStatesArray,oe=q.length,ne=[],ce=[],ae=0;ae=0;--ue){var ye=q[ue],Re=ye.layer;if(Re.hasRenderer()&&E3(ye,k)&&f.call(g,Re)){var Ne=Re.getRenderer(),rt=Re.getSource();if(Ne&&rt){var ct=rt.getWrapX()?R:t,Fe=B.bind(null,ye.managed);ce[0]=ct[0]+H[ae][0],ce[1]=ct[1]+H[ae][1],x=Ne.forEachFeatureAtCoordinate(ce,r,i,Fe,ne)}if(x)return x}}if(ne.length!==0){var He=1/ne.length;return ne.forEach(function(Ce,jt){return Ce.distanceSq+=jt*He}),ne.sort(function(Ce,jt){return Ce.distanceSq-jt.distanceSq}),ne.some(function(Ce){return x=Ce.callback(Ce.feature,Ce.layer,Ce.geometry)}),x}},n.prototype.forEachLayerAtPixel=function(t,r,i,o,s){return li()},n.prototype.hasFeatureAtCoordinate=function(t,r,i,o,s,a){var f=this.forEachFeatureAtCoordinate(t,r,i,o,ty,this,s,a);return f!==void 0},n.prototype.getMap=function(){return this.map_},n.prototype.renderFrame=function(t){li()},n.prototype.scheduleExpireIconCache=function(t){S3.canExpireCache()&&t.postRenderFunctions.push(nre)},n}(UB);function nre(e,n){S3.expire()}const rre=tre;var ire=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),QL=function(e){ire(n,e);function n(t,r,i,o){var s=e.call(this,t)||this;return s.inversePixelTransform=r,s.frameState=i,s.context=o,s}return n}(Ep),wx="ol-hidden",ore="ol-selectable",h5="ol-unselectable",s7="ol-control",w9="ol-collapsed",are=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),M9=["style","variant","weight","size","lineHeight","family"],$L=function(e){var n=e.match(are);if(!n)return null;for(var t={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"},r=0,i=M9.length;r=0;--a)o[a].renderDeclutter(t);ure(this.element_,this.children_),this.dispatchRenderEvent(Bm.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},n.prototype.forEachLayerAtPixel=function(t,r,i,o,s){for(var a=r.viewState,f=r.layerStatesArray,g=f.length,x=g-1;x>=0;--x){var k=f[x],B=k.layer;if(B.hasRenderer()&&E3(k,a)&&s(B)){var P=B.getRenderer(),R=P.getDataAtPixel(t,r,i);if(R){var H=o(B,R);if(H)return H}}}},n}(rre);const gre=mre,WA={ADD:"add",REMOVE:"remove"};var HL=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),O9={LENGTH:"length"},Mx=function(e){HL(n,e);function n(t,r,i){var o=e.call(this,t)||this;return o.element=r,o.index=i,o}return n}(Ep),_d=function(e){HL(n,e);function n(t,r){var i=e.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=t||[],i.unique_)for(var s=0,a=i.array_.length;s0;)this.pop()},n.prototype.extend=function(t){for(var r=0,i=t.length;rthis.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},n.prototype.disposeInternal=function(){this.relayedListenerKey_&&(Ga(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ki.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Ga(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Ga),this.dragListenerKeys_.length=0,this.element_=null,e.prototype.disposeInternal.call(this)},n}(zy);const xre=bre,op={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"},Gu={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var T3=1/0,wre=function(){function e(n,t){this.priorityFunction_=n,this.keyFunction_=t,this.elements_=[],this.priorities_=[],this.queuedElements_={}}return e.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Q_(this.queuedElements_)},e.prototype.dequeue=function(){var n=this.elements_,t=this.priorities_,r=n[0];n.length==1?(n.length=0,t.length=0):(n[0]=n.pop(),t[0]=t.pop(),this.siftUp_(0));var i=this.keyFunction_(r);return delete this.queuedElements_[i],r},e.prototype.enqueue=function(n){ao(!(this.keyFunction_(n)in this.queuedElements_),31);var t=this.priorityFunction_(n);return t!=T3?(this.elements_.push(n),this.priorities_.push(t),this.queuedElements_[this.keyFunction_(n)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1},e.prototype.getCount=function(){return this.elements_.length},e.prototype.getLeftChildIndex_=function(n){return n*2+1},e.prototype.getRightChildIndex_=function(n){return n*2+2},e.prototype.getParentIndex_=function(n){return n-1>>1},e.prototype.heapify_=function(){var n;for(n=(this.elements_.length>>1)-1;n>=0;n--)this.siftUp_(n)},e.prototype.isEmpty=function(){return this.elements_.length===0},e.prototype.isKeyQueued=function(n){return n in this.queuedElements_},e.prototype.isQueued=function(n){return this.isKeyQueued(this.keyFunction_(n))},e.prototype.siftUp_=function(n){for(var t=this.elements_,r=this.priorities_,i=t.length,o=t[n],s=r[n],a=n;n>1;){var f=this.getLeftChildIndex_(n),g=this.getRightChildIndex_(n),x=gn;){var a=this.getParentIndex_(t);if(i[a]>s)r[t]=r[a],i[t]=i[a],t=a;else break}r[t]=o,i[t]=s},e.prototype.reprioritize=function(){var n=this.priorityFunction_,t=this.elements_,r=this.priorities_,i=0,o=t.length,s,a,f;for(a=0;a0;)s=this.dequeue()[0],a=s.getKey(),o=s.getState(),o===mr.IDLE&&!(a in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[a]=!0,++this.tilesLoading_,++i,s.load())},n}(Mre);const Ore=Ere;function Bre(e,n,t,r,i){if(!e||!(t in e.wantedTiles)||!e.wantedTiles[t][n.getKey()])return T3;var o=e.viewState.center,s=r[0]-o[0],a=r[1]-o[1];return 65536*Math.log(i)+Math.sqrt(s*s+a*a)/i}const Gs={ANIMATING:0,INTERACTING:1},ih={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var XL=42,u7=256;function B9(e,n,t){return function(r,i,o,s,a){if(r){if(!i&&!n)return r;var f=n?0:o[0]*i,g=n?0:o[1]*i,x=a?a[0]:0,k=a?a[1]:0,B=e[0]+f/2+x,P=e[2]-f/2+x,R=e[1]+g/2+k,H=e[3]-g/2+k;B>P&&(B=(P+B)/2,P=B),R>H&&(R=(H+R)/2,H=R);var W=vl(r[0],B,P),$=vl(r[1],R,H);if(s&&t&&i){var q=30*i;W+=-q*Math.log(1+Math.max(0,B-r[0])/q)+q*Math.log(1+Math.max(0,r[0]-P)/q),$+=-q*Math.log(1+Math.max(0,R-r[1])/q)+q*Math.log(1+Math.max(0,r[1]-H)/q)}return[W,$]}}}function kre(e){return e}function A7(e,n,t,r){var i=os(n)/t[0],o=$A(n)/t[1];return r?Math.min(e,Math.max(i,o)):Math.min(e,Math.min(i,o))}function c7(e,n,t){var r=Math.min(e,n),i=50;return r*=Math.log(1+i*Math.max(0,e/n-1))/i+1,t&&(r=Math.max(r,t),r/=Math.log(1+i*Math.max(0,t/e-1))/i+1),vl(r,t/2,n*2)}function Ire(e,n,t,r){return function(i,o,s,a){if(i!==void 0){var f=e[0],g=e[e.length-1],x=t?A7(f,t,s,r):f;if(a){var k=n!==void 0?n:!0;return k?c7(i,x,g):vl(i,g,x)}var B=Math.min(x,i),P=Math.floor(RB(e,B,o));return e[P]>x&&P1&&typeof arguments[r-1]=="function"&&(i=arguments[r-1],--r);for(var o=0;o0},n.prototype.getInteracting=function(){return this.hints_[Gs.INTERACTING]>0},n.prototype.cancelAnimations=function(){this.setHint(Gs.ANIMATING,-this.hints_[Gs.ANIMATING]);for(var t,r=0,i=this.animations_.length;r=0;--i){for(var o=this.animations_[i],s=!0,a=0,f=o.length;a0?x/g.duration:1;k>=1?(g.complete=!0,k=1):s=!1;var B=g.easing(k);if(g.sourceCenter){var P=g.sourceCenter[0],R=g.sourceCenter[1],H=g.targetCenter[0],W=g.targetCenter[1];this.nextCenter_=g.targetCenter;var $=P+B*(H-P),q=R+B*(W-R);this.targetCenter_=[$,q]}if(g.sourceResolution&&g.targetResolution){var oe=B===1?g.targetResolution:g.sourceResolution+B*(g.targetResolution-g.sourceResolution);if(g.anchor){var ne=this.getViewportSize_(this.getRotation()),ce=this.constraints_.resolution(oe,0,ne,!0);this.targetCenter_=this.calculateCenterZoom(ce,g.anchor)}this.nextResolution_=g.targetResolution,this.targetResolution_=oe,this.applyTargetState_(!0)}if(g.sourceRotation!==void 0&&g.targetRotation!==void 0){var ae=B===1?e1(g.targetRotation+Math.PI,2*Math.PI)-Math.PI:g.sourceRotation+B*(g.targetRotation-g.sourceRotation);if(g.anchor){var ue=this.constraints_.rotation(ae,!0);this.targetCenter_=this.calculateCenterRotate(ue,g.anchor)}this.nextRotation_=g.targetRotation,this.targetRotation_=ae}if(this.applyTargetState_(!0),r=!0,!g.complete)break}}if(s){this.animations_[i]=null,this.setHint(Gs.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;var ye=o[0].callback;ye&&Sx(ye,!0)}}this.animations_=this.animations_.filter(Boolean),r&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}},n.prototype.calculateCenterRotate=function(t,r){var i,o=this.getCenterInternal();return o!==void 0&&(i=[o[0]-r[0],o[1]-r[1]],QB(i,t-this.getRotation()),rte(i,r)),i},n.prototype.calculateCenterZoom=function(t,r){var i,o=this.getCenterInternal(),s=this.getResolution();if(o!==void 0&&s!==void 0){var a=r[0]-t*(r[0]-o[0])/s,f=r[1]-t*(r[1]-o[1])/s;i=[a,f]}return i},n.prototype.getViewportSize_=function(t){var r=this.viewportSize_;if(t){var i=r[0],o=r[1];return[Math.abs(i*Math.cos(t))+Math.abs(o*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(o*Math.cos(t))]}else return r},n.prototype.setViewportSize=function(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)},n.prototype.getCenter=function(){var t=this.getCenterInternal();return t&&Q6(t,this.getProjection())},n.prototype.getCenterInternal=function(){return this.get(ih.CENTER)},n.prototype.getConstraints=function(){return this.constraints_},n.prototype.getConstrainResolution=function(){return this.get("constrainResolution")},n.prototype.getHints=function(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},n.prototype.calculateExtent=function(t){var r=this.calculateExtentInternal(t);return wL(r,this.getProjection())},n.prototype.calculateExtentInternal=function(t){var r=t||this.getViewportSizeMinusPadding_(),i=this.getCenterInternal();ao(i,1);var o=this.getResolution();ao(o!==void 0,2);var s=this.getRotation();return ao(s!==void 0,3),z6(i,o,s,r)},n.prototype.getMaxResolution=function(){return this.maxResolution_},n.prototype.getMinResolution=function(){return this.minResolution_},n.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},n.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},n.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},n.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},n.prototype.setConstrainResolution=function(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))},n.prototype.getProjection=function(){return this.projection_},n.prototype.getResolution=function(){return this.get(ih.RESOLUTION)},n.prototype.getResolutions=function(){return this.resolutions_},n.prototype.getResolutionForExtent=function(t,r){return this.getResolutionForExtentInternal(j0(t,this.getProjection()),r)},n.prototype.getResolutionForExtentInternal=function(t,r){var i=r||this.getViewportSizeMinusPadding_(),o=os(t)/i[0],s=$A(t)/i[1];return Math.max(o,s)},n.prototype.getResolutionForValueFunction=function(t){var r=t||2,i=this.getConstrainedResolution(this.maxResolution_),o=this.minResolution_,s=Math.log(i/o)/Math.log(r);return function(a){var f=i/Math.pow(r,a*s);return f}},n.prototype.getRotation=function(){return this.get(ih.ROTATION)},n.prototype.getValueForResolutionFunction=function(t){var r=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),o=this.minResolution_,s=Math.log(i/o)/r;return function(a){var f=Math.log(i/a)/r/s;return f}},n.prototype.getViewportSizeMinusPadding_=function(t){var r=this.getViewportSize_(t),i=this.padding_;return i&&(r=[r[0]-i[1]-i[3],r[1]-i[0]-i[2]]),r},n.prototype.getState=function(){var t=this.getProjection(),r=this.getResolution(),i=this.getRotation(),o=this.getCenterInternal(),s=this.padding_;if(s){var a=this.getViewportSizeMinusPadding_();o=cM(o,this.getViewportSize_(),[a[0]/2+s[3],a[1]/2+s[0]],r,i)}return{center:o.slice(0),projection:t!==void 0?t:null,resolution:r,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}},n.prototype.getZoom=function(){var t,r=this.getResolution();return r!==void 0&&(t=this.getZoomForResolution(r)),t},n.prototype.getZoomForResolution=function(t){var r=this.minZoom_||0,i,o;if(this.resolutions_){var s=RB(this.resolutions_,t,1);r=s,i=this.resolutions_[s],s==this.resolutions_.length-1?o=2:o=i/this.resolutions_[s+1]}else i=this.maxResolution_,o=this.zoomFactor_;return r+Math.log(i/t)/Math.log(o)},n.prototype.getResolutionForZoom=function(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;var r=vl(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[r]/this.resolutions_[r+1];return this.resolutions_[r]/Math.pow(i,vl(t-r,0,1))}else return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)},n.prototype.fit=function(t,r){var i;if(ao(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){ao(!NB(t),25);var o=j0(t,this.getProjection());i=g9(o)}else if(t.getType()==="Circle"){var o=j0(t.getExtent(),this.getProjection());i=g9(o),i.rotate(this.getRotation(),Dm(o))}else{var s=cte();s?i=t.clone().transform(s,this.getProjection()):i=t}this.fitInternal(i,r)},n.prototype.rotatedExtentForGeometry=function(t){for(var r=this.getRotation(),i=Math.cos(r),o=Math.sin(-r),s=t.getFlatCoordinates(),a=t.getStride(),f=1/0,g=1/0,x=-1/0,k=-1/0,B=0,P=s.length;B0&&e[1]>0}function Wre(e,n,t){return t===void 0&&(t=[0,0]),t[0]=e[0]*n+.5|0,t[1]=e[1]*n+.5|0,t}function pA(e,n){return Array.isArray(e)?e:(n===void 0?n=[e,e]:(n[0]=e,n[1]=e),n)}var Nre=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();function ez(e){if(e instanceof d5){e.setMapInternal(null);return}e instanceof f5&&e.getLayers().forEach(ez)}function tz(e,n){if(e instanceof d5){e.setMapInternal(n);return}if(e instanceof f5)for(var t=e.getLayers().getArray(),r=0,i=t.length;r=0;g--){var x=f[g];if(!(x.getMap()!==this||!x.getActive()||!this.getTargetElement())){var k=x.handleEvent(t);if(!k||t.propagationStopped)break}}}},n.prototype.handlePostRender=function(){var t=this.frameState_,r=this.tileQueue_;if(!r.isEmpty()){var i=this.maxTilesLoading_,o=i;if(t){var s=t.viewHints;if(s[Gs.ANIMATING]||s[Gs.INTERACTING]){var a=Date.now()-t.time>8;i=a?0:8,o=a?0:2}}r.getTilesLoading()0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!_1(r,this.renderedAttributions_)){YL(this.ulElement_);for(var o=0,s=r.length;o0&&i%(2*Math.PI)!==0?r.animate({rotation:0,duration:this.duration_,easing:jy}):r.setRotation(0))}},n.prototype.render=function(t){var r=t.frameState;if(r){var i=r.viewState.rotation;if(i!=this.rotation_){var o="rotate("+i+"rad)";if(this.autoHide_){var s=this.element.classList.contains(wx);!s&&i===0?this.element.classList.add(wx):s&&i!==0&&this.element.classList.remove(wx)}this.label_.style.transform=o}this.rotation_=i}},n}(h7);const eie=Jre;var tie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),nie=function(e){tie(n,e);function n(t){var r=this,i=t||{};r=e.call(this,{element:document.createElement("div"),target:i.target})||this;var o=i.className!==void 0?i.className:"ol-zoom",s=i.delta!==void 0?i.delta:1,a=i.zoomInClassName!==void 0?i.zoomInClassName:o+"-in",f=i.zoomOutClassName!==void 0?i.zoomOutClassName:o+"-out",g=i.zoomInLabel!==void 0?i.zoomInLabel:"+",x=i.zoomOutLabel!==void 0?i.zoomOutLabel:"–",k=i.zoomInTipLabel!==void 0?i.zoomInTipLabel:"Zoom in",B=i.zoomOutTipLabel!==void 0?i.zoomOutTipLabel:"Zoom out",P=document.createElement("button");P.className=a,P.setAttribute("type","button"),P.title=k,P.appendChild(typeof g=="string"?document.createTextNode(g):g),P.addEventListener(ki.CLICK,r.handleClick_.bind(r,s),!1);var R=document.createElement("button");R.className=f,R.setAttribute("type","button"),R.title=B,R.appendChild(typeof x=="string"?document.createTextNode(x):x),R.addEventListener(ki.CLICK,r.handleClick_.bind(r,-s),!1);var H=o+" "+h5+" "+s7,W=r.element;return W.className=H,W.appendChild(P),W.appendChild(R),r.duration_=i.duration!==void 0?i.duration:250,r}return n.prototype.handleClick_=function(t,r){r.preventDefault(),this.zoomByDelta_(t)},n.prototype.zoomByDelta_=function(t){var r=this.getMap(),i=r.getView();if(i){var o=i.getZoom();if(o!==void 0){var s=i.getConstrainedZoom(o+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:s,duration:this.duration_,easing:jy})):i.setZoom(s)}}},n}(h7);const rie=nie;var iie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Nu={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},oie=function(e){iie(n,e);function n(t){var r=e.call(this)||this;r.on,r.once,r.un,r.options=t,r.id=t.id,r.insertFirst=t.insertFirst!==void 0?t.insertFirst:!0,r.stopEvent=t.stopEvent!==void 0?t.stopEvent:!0,r.element=document.createElement("div"),r.element.className=t.className!==void 0?t.className:"ol-overlay-container "+ore,r.element.style.position="absolute",r.element.style.pointerEvents="auto";var i=t.autoPan;return i&&typeof i!="object"&&(i={animation:t.autoPanAnimation,margin:t.autoPanMargin}),r.autoPan=i||!1,r.rendered={transform_:"",visible:!0},r.mapPostrenderListenerKey=null,r.addChangeListener(Nu.ELEMENT,r.handleElementChanged),r.addChangeListener(Nu.MAP,r.handleMapChanged),r.addChangeListener(Nu.OFFSET,r.handleOffsetChanged),r.addChangeListener(Nu.POSITION,r.handlePositionChanged),r.addChangeListener(Nu.POSITIONING,r.handlePositioningChanged),t.element!==void 0&&r.setElement(t.element),r.setOffset(t.offset!==void 0?t.offset:[0,0]),r.setPositioning(t.positioning||"top-left"),t.position!==void 0&&r.setPosition(t.position),r}return n.prototype.getElement=function(){return this.get(Nu.ELEMENT)},n.prototype.getId=function(){return this.id},n.prototype.getMap=function(){return this.get(Nu.MAP)||null},n.prototype.getOffset=function(){return this.get(Nu.OFFSET)},n.prototype.getPosition=function(){return this.get(Nu.POSITION)},n.prototype.getPositioning=function(){return this.get(Nu.POSITIONING)},n.prototype.handleElementChanged=function(){YL(this.element);var t=this.getElement();t&&this.element.appendChild(t)},n.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(O3(this.element),Ga(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=wo(t,op.POSTRENDER,this.render,this),this.updatePixelPosition();var r=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?r.insertBefore(this.element,r.childNodes[0]||null):r.appendChild(this.element),this.performAutoPan()}},n.prototype.render=function(){this.updatePixelPosition()},n.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},n.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.performAutoPan()},n.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},n.prototype.setElement=function(t){this.set(Nu.ELEMENT,t)},n.prototype.setMap=function(t){this.set(Nu.MAP,t)},n.prototype.setOffset=function(t){this.set(Nu.OFFSET,t)},n.prototype.setPosition=function(t){this.set(Nu.POSITION,t)},n.prototype.performAutoPan=function(){this.autoPan&&this.panIntoView(this.autoPan)},n.prototype.panIntoView=function(t){var r=this.getMap();if(!(!r||!r.getTargetElement()||!this.get(Nu.POSITION))){var i=this.getRect(r.getTargetElement(),r.getSize()),o=this.getElement(),s=this.getRect(o,[sre(o),lre(o)]),a=t||{},f=a.margin===void 0?20:a.margin;if(!cm(i,s)){var g=s[0]-i[0],x=i[2]-s[2],k=s[1]-i[1],B=i[3]-s[3],P=[0,0];if(g<0?P[0]=g-f:x<0&&(P[0]=Math.abs(x)+f),k<0?P[1]=k-f:B<0&&(P[1]=Math.abs(B)+f),P[0]!==0||P[1]!==0){var R=r.getView().getCenterInternal(),H=r.getPixelFromCoordinateInternal(R);if(!H)return;var W=[H[0]+P[0],H[1]+P[1]],$=a.animation||{};r.getView().animateInternal({center:r.getCoordinateFromPixelInternal(W),duration:$.duration,easing:$.easing})}}}},n.prototype.getRect=function(t,r){var i=t.getBoundingClientRect(),o=i.left+window.pageXOffset,s=i.top+window.pageYOffset;return[o,s,o+r[0],s+r[1]]},n.prototype.setPositioning=function(t){this.set(Nu.POSITIONING,t)},n.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},n.prototype.updatePixelPosition=function(){var t=this.getMap(),r=this.getPosition();if(!t||!t.isRendered()||!r){this.setVisible(!1);return}var i=t.getPixelFromCoordinate(r),o=t.getSize();this.updateRenderedPosition(i,o)},n.prototype.updateRenderedPosition=function(t,r){var i=this.element.style,o=this.getOffset(),s=this.getPositioning();this.setVisible(!0);var a=Math.round(t[0]+o[0])+"px",f=Math.round(t[1]+o[1])+"px",g="0%",x="0%";s=="bottom-right"||s=="center-right"||s=="top-right"?g="-100%":(s=="bottom-center"||s=="center-center"||s=="top-center")&&(g="-50%"),s=="bottom-left"||s=="bottom-center"||s=="bottom-right"?x="-100%":(s=="center-left"||s=="center-center"||s=="center-right")&&(x="-50%");var k="translate(".concat(g,", ").concat(x,") translate(").concat(a,", ").concat(f,")");this.rendered.transform_!=k&&(this.rendered.transform_=k,i.transform=k,i.msTransform=k)},n.prototype.getOptions=function(){return this.options},n}(mh);function aie(e){var n=e||{},t=new _d,r=n.zoom!==void 0?n.zoom:!0;r&&t.push(new rie(n.zoomOptions));var i=n.rotate!==void 0?n.rotate:!0;i&&t.push(new eie(n.rotateOptions));var o=n.attribution!==void 0?n.attribution:!0;return o&&t.push(new Zre(n.attributionOptions)),t}const K9={ACTIVE:"active"};var sie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),lie=function(e){sie(n,e);function n(t){var r=e.call(this)||this;return r.on,r.once,r.un,t&&t.handleEvent&&(r.handleEvent=t.handleEvent),r.map_=null,r.setActive(!0),r}return n.prototype.getActive=function(){return this.get(K9.ACTIVE)},n.prototype.getMap=function(){return this.map_},n.prototype.handleEvent=function(t){return!0},n.prototype.setActive=function(t){this.set(K9.ACTIVE,t)},n.prototype.setMap=function(t){this.map_=t},n}(mh);function uie(e,n,t){var r=e.getCenterInternal();if(r){var i=[r[0]+n[0],r[1]+n[1]];e.animateInternal({duration:t!==void 0?t:250,easing:Dre,center:e.getConstrainedCenter(i)})}}function f7(e,n,t,r){var i=e.getZoom();if(i!==void 0){var o=e.getConstrainedZoom(i+n),s=e.getResolutionForZoom(o);e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:s,anchor:t,duration:r!==void 0?r:250,easing:jy})}}const V_=lie;var Aie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),cie=function(e){Aie(n,e);function n(t){var r=e.call(this)||this,i=t||{};return r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:250,r}return n.prototype.handleEvent=function(t){var r=!1;if(t.type==Ns.DBLCLICK){var i=t.originalEvent,o=t.map,s=t.coordinate,a=i.shiftKey?-this.delta_:this.delta_,f=o.getView();f7(f,a,s,this.duration_),i.preventDefault(),r=!0}return!r},n}(V_);const die=cie;var hie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fie=function(e){hie(n,e);function n(t){var r=this,i=t||{};return r=e.call(this,i)||this,i.handleDownEvent&&(r.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(r.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(r.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(r.handleUpEvent=i.handleUpEvent),i.stopDown&&(r.stopDown=i.stopDown),r.handlingDownUpSequence=!1,r.targetPointers=[],r}return n.prototype.getPointerCount=function(){return this.targetPointers.length},n.prototype.handleDownEvent=function(t){return!1},n.prototype.handleDragEvent=function(t){},n.prototype.handleEvent=function(t){if(!t.originalEvent)return!0;var r=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Ns.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Ns.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==Ns.POINTERDOWN){var o=this.handleDownEvent(t);this.handlingDownUpSequence=o,r=this.stopDown(o)}else t.type==Ns.POINTERMOVE&&this.handleMoveEvent(t);return!r},n.prototype.handleMoveEvent=function(t){},n.prototype.handleUpEvent=function(t){return!1},n.prototype.stopDown=function(t){return t},n.prototype.updateTrackedPointers_=function(t){t.activePointers&&(this.targetPointers=t.activePointers)},n}(V_);function p7(e){for(var n=e.length,t=0,r=0,i=0;i0&&this.condition_(t)){var r=t.map,i=r.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}else return!1},n}(H_);const bie=_ie;var xie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wie=function(e){xie(n,e);function n(t){var r=this,i=t||{};return r=e.call(this,{stopDown:n5})||this,r.condition_=i.condition?i.condition:pie,r.lastAngle_=void 0,r.duration_=i.duration!==void 0?i.duration:250,r}return n.prototype.handleDragEvent=function(t){if(dM(t)){var r=t.map,i=r.getView();if(i.getConstraints().rotation!==d7){var o=r.getSize(),s=t.pixel,a=Math.atan2(o[1]/2-s[1],s[0]-o[0]/2);if(this.lastAngle_!==void 0){var f=a-this.lastAngle_;i.adjustRotationInternal(-f)}this.lastAngle_=a}}},n.prototype.handleUpEvent=function(t){if(!dM(t))return!0;var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1},n.prototype.handleDownEvent=function(t){if(!dM(t))return!1;if(rz(t)&&this.condition_(t)){var r=t.map;return r.getView().beginInteraction(),this.lastAngle_=void 0,!0}else return!1},n}(H_),Mie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Sie=function(e){Mie(n,e);function n(t){var r=e.call(this)||this;return r.geometry_=null,r.element_=document.createElement("div"),r.element_.style.position="absolute",r.element_.style.pointerEvents="auto",r.element_.className="ol-box "+t,r.map_=null,r.startPixel_=null,r.endPixel_=null,r}return n.prototype.disposeInternal=function(){this.setMap(null)},n.prototype.render_=function(){var t=this.startPixel_,r=this.endPixel_,i="px",o=this.element_.style;o.left=Math.min(t[0],r[0])+i,o.top=Math.min(t[1],r[1])+i,o.width=Math.abs(r[0]-t[0])+i,o.height=Math.abs(r[1]-t[1])+i},n.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var r=this.element_.style;r.left="inherit",r.top="inherit",r.width="inherit",r.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},n.prototype.setPixels=function(t,r){this.startPixel_=t,this.endPixel_=r,this.createOrUpdateGeometry(),this.render_()},n.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,r=this.endPixel_,i=[t,[t[0],r[1]],r,[r[0],t[1]]],o=i.map(this.map_.getCoordinateFromPixelInternal,this.map_);o[4]=o[0].slice(),this.geometry_?this.geometry_.setCoordinates([o]):this.geometry_=new c_([o])},n.prototype.getGeometry=function(){return this.geometry_},n}(UB);const Eie=Sie;var az=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ex={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},hM=function(e){az(n,e);function n(t,r,i){var o=e.call(this,t)||this;return o.coordinate=r,o.mapBrowserEvent=i,o}return n}(Ep),Oie=function(e){az(n,e);function n(t){var r=e.call(this)||this;r.on,r.once,r.un;var i=t||{};return r.box_=new Eie(i.className||"ol-dragbox"),r.minArea_=i.minArea!==void 0?i.minArea:64,i.onBoxEnd&&(r.onBoxEnd=i.onBoxEnd),r.startPixel_=null,r.condition_=i.condition?i.condition:rz,r.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:r.defaultBoxEndCondition,r}return n.prototype.defaultBoxEndCondition=function(t,r,i){var o=i[0]-r[0],s=i[1]-r[1];return o*o+s*s>=this.minArea_},n.prototype.getGeometry=function(){return this.box_.getGeometry()},n.prototype.handleDragEvent=function(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new hM(Ex.BOXDRAG,t.coordinate,t))},n.prototype.handleUpEvent=function(t){this.box_.setMap(null);var r=this.boxEndCondition_(t,this.startPixel_,t.pixel);return r&&this.onBoxEnd(t),this.dispatchEvent(new hM(r?Ex.BOXEND:Ex.BOXCANCEL,t.coordinate,t)),!1},n.prototype.handleDownEvent=function(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new hM(Ex.BOXSTART,t.coordinate,t)),!0):!1},n.prototype.onBoxEnd=function(t){},n}(H_);const Bie=Oie;var kie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Iie=function(e){kie(n,e);function n(t){var r=this,i=t||{},o=i.condition?i.condition:yie;return r=e.call(this,{condition:o,className:i.className||"ol-dragzoom",minArea:i.minArea})||this,r.duration_=i.duration!==void 0?i.duration:200,r.out_=i.out!==void 0?i.out:!1,r}return n.prototype.onBoxEnd=function(t){var r=this.getMap(),i=r.getView(),o=this.getGeometry();if(this.out_){var s=i.rotatedExtentForGeometry(o),a=i.getResolutionForExtentInternal(s),f=i.getResolution()/a;o=o.clone(),o.scale(f*f)}i.fitInternal(o,{duration:this.duration_,easing:jy})},n}(Bie);const Tie=Iie,y0={LEFT:37,UP:38,RIGHT:39,DOWN:40};var Kie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Pie=function(e){Kie(n,e);function n(t){var r=e.call(this)||this,i=t||{};return r.defaultCondition_=function(o){return iz(o)&&oz(o)},r.condition_=i.condition!==void 0?i.condition:r.defaultCondition_,r.duration_=i.duration!==void 0?i.duration:100,r.pixelDelta_=i.pixelDelta!==void 0?i.pixelDelta:128,r}return n.prototype.handleEvent=function(t){var r=!1;if(t.type==ki.KEYDOWN){var i=t.originalEvent,o=i.keyCode;if(this.condition_(t)&&(o==y0.DOWN||o==y0.LEFT||o==y0.RIGHT||o==y0.UP)){var s=t.map,a=s.getView(),f=a.getResolution()*this.pixelDelta_,g=0,x=0;o==y0.DOWN?x=-f:o==y0.LEFT?g=-f:o==y0.RIGHT?g=f:x=f;var k=[g,x];QB(k,a.getRotation()),uie(a,k,this.duration_),i.preventDefault(),r=!0}}return!r},n}(V_),Fie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Die=function(e){Fie(n,e);function n(t){var r=e.call(this)||this,i=t||{};return r.condition_=i.condition?i.condition:oz,r.delta_=i.delta?i.delta:1,r.duration_=i.duration!==void 0?i.duration:100,r}return n.prototype.handleEvent=function(t){var r=!1;if(t.type==ki.KEYDOWN||t.type==ki.KEYPRESS){var i=t.originalEvent,o=i.charCode;if(this.condition_(t)&&(o==43||o==45)){var s=t.map,a=o==43?this.delta_:-this.delta_,f=s.getView();f7(f,a,void 0,this.duration_),i.preventDefault(),r=!0}}return!r},n}(V_);const Uie=Die;var Rie=function(){function e(n,t,r){this.decay_=n,this.minVelocity_=t,this.delay_=r,this.points_=[],this.angle_=0,this.initialVelocity_=0}return e.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},e.prototype.update=function(n,t){this.points_.push(n,t,Date.now())},e.prototype.end=function(){if(this.points_.length<6)return!1;var n=Date.now()-this.delay_,t=this.points_.length-3;if(this.points_[t+2]0&&this.points_[r+2]>n;)r-=3;var i=this.points_[t+2]-this.points_[r+2];if(i<1e3/60)return!1;var o=this.points_[t]-this.points_[r],s=this.points_[t+1]-this.points_[r+1];return this.angle_=Math.atan2(s,o),this.initialVelocity_=Math.sqrt(o*o+s*s)/i,this.initialVelocity_>this.minVelocity_},e.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},e.prototype.getAngle=function(){return this.angle_},e}(),Lie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),fM={TRACKPAD:"trackpad",WHEEL:"wheel"},zie=function(e){Lie(n,e);function n(t){var r=this,i=t||{};r=e.call(this,i)||this,r.totalDelta_=0,r.lastDelta_=0,r.maxDelta_=i.maxDelta!==void 0?i.maxDelta:1,r.duration_=i.duration!==void 0?i.duration:250,r.timeout_=i.timeout!==void 0?i.timeout:80,r.useAnchor_=i.useAnchor!==void 0?i.useAnchor:!0,r.constrainResolution_=i.constrainResolution!==void 0?i.constrainResolution:!1;var o=i.condition?i.condition:gie;return r.condition_=i.onFocusOnly?rE(nz,o):o,r.lastAnchor_=null,r.startTime_=void 0,r.timeoutId_,r.mode_=void 0,r.trackpadEventGap_=400,r.trackpadTimeoutId_,r.deltaPerZoom_=300,r}return n.prototype.endInteraction_=function(){this.trackpadTimeoutId_=void 0;var t=this.getMap();if(t){var r=t.getView();r.endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}},n.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var r=t.type;if(r!==ki.WHEEL)return!0;var i=t.map,o=t.originalEvent;o.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);var s;if(t.type==ki.WHEEL&&(s=o.deltaY,Mee&&o.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(s/=cL),o.deltaMode===WheelEvent.DOM_DELTA_LINE&&(s*=40)),s===0)return!1;this.lastDelta_=s;var a=Date.now();this.startTime_===void 0&&(this.startTime_=a),(!this.mode_||a-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(s)<4?fM.TRACKPAD:fM.WHEEL);var f=i.getView();if(this.mode_===fM.TRACKPAD&&!(f.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(f.getAnimating()&&f.cancelAnimations(),f.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),f.adjustZoom(-s/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=a,!1;this.totalDelta_+=s;var g=Math.max(this.timeout_-(a-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),g),!1},n.prototype.handleWheelZoom_=function(t){var r=t.getView();r.getAnimating()&&r.cancelAnimations();var i=-vl(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(r.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),f7(r,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},n.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},n}(V_);const jie=zie;var Wie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Nie=function(e){Wie(n,e);function n(t){var r=this,i=t||{},o=i;return o.stopDown||(o.stopDown=n5),r=e.call(this,o)||this,r.anchor_=null,r.lastAngle_=void 0,r.rotating_=!1,r.rotationDelta_=0,r.threshold_=i.threshold!==void 0?i.threshold:.3,r.duration_=i.duration!==void 0?i.duration:250,r}return n.prototype.handleDragEvent=function(t){var r=0,i=this.targetPointers[0],o=this.targetPointers[1],s=Math.atan2(o.clientY-i.clientY,o.clientX-i.clientX);if(this.lastAngle_!==void 0){var a=s-this.lastAngle_;this.rotationDelta_+=a,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),r=a}this.lastAngle_=s;var f=t.map,g=f.getView();if(g.getConstraints().rotation!==d7){var x=f.getViewport().getBoundingClientRect(),k=p7(this.targetPointers);k[0]-=x.left,k[1]-=x.top,this.anchor_=f.getCoordinateFromPixelInternal(k),this.rotating_&&(f.render(),g.adjustRotationInternal(r,this.anchor_))}},n.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView();return i.endInteraction(this.duration_),!1}else return!0},n.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},n}(H_),Gie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Qie=function(e){Gie(n,e);function n(t){var r=this,i=t||{},o=i;return o.stopDown||(o.stopDown=n5),r=e.call(this,o)||this,r.anchor_=null,r.duration_=i.duration!==void 0?i.duration:400,r.lastDistance_=void 0,r.lastScaleDelta_=1,r}return n.prototype.handleDragEvent=function(t){var r=1,i=this.targetPointers[0],o=this.targetPointers[1],s=i.clientX-o.clientX,a=i.clientY-o.clientY,f=Math.sqrt(s*s+a*a);this.lastDistance_!==void 0&&(r=this.lastDistance_/f),this.lastDistance_=f;var g=t.map,x=g.getView();r!=1&&(this.lastScaleDelta_=r);var k=g.getViewport().getBoundingClientRect(),B=p7(this.targetPointers);B[0]-=k.left,B[1]-=k.top,this.anchor_=g.getCoordinateFromPixelInternal(B),g.render(),x.adjustResolutionInternal(r,this.anchor_)},n.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var r=t.map,i=r.getView(),o=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,o),!1}else return!0},n.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var r=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||r.getView().beginInteraction(),!0}else return!1},n}(H_);const $ie=Qie;function Yie(e,n,t,r,i){sz(e,n,t||0,r||e.length-1,i||qie)}function sz(e,n,t,r,i){for(;r>t;){if(r-t>600){var o=r-t+1,s=n-t+1,a=Math.log(o),f=.5*Math.exp(2*a/3),g=.5*Math.sqrt(a*f*(o-f)/o)*(s-o/2<0?-1:1),x=Math.max(t,Math.floor(n-s*f/o+g)),k=Math.min(r,Math.floor(n+(o-s)*f/o+g));sz(e,n,x,k,i)}var B=e[n],P=t,R=r;for(Wv(e,t,n),i(e[r],B)>0&&Wv(e,t,r);P0;)R--}i(e[t],B)===0?Wv(e,t,R):(R++,Wv(e,R,r)),R<=n&&(t=R+1),n<=R&&(r=R-1)}}function Wv(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function qie(e,n){return en?1:0}let lz=class{constructor(n=9){this._maxEntries=Math.max(4,n),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(n){let t=this.data;const r=[];if(!Bx(n,t))return r;const i=this.toBBox,o=[];for(;t;){for(let s=0;s=0&&o[t].children.length>this._maxEntries;)this._split(o,t),t--;this._adjustParentBBoxes(i,o,t)}_split(n,t){const r=n[t],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),a=xg(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,sg(r,this.toBBox),sg(a,this.toBBox),t?n[t-1].children.push(a):this._splitRoot(r,a)}_splitRoot(n,t){this.data=xg([n,t]),this.data.height=n.height+1,this.data.leaf=!1,sg(this.data,this.toBBox)}_chooseSplitIndex(n,t,r){let i,o=1/0,s=1/0;for(let a=t;a<=r-t;a++){const f=aC(n,0,a,this.toBBox),g=aC(n,a,r,this.toBBox),x=Jie(f,g),k=pM(f)+pM(g);x=t;g--){const x=n.children[g];sC(a,n.leaf?o(x):x),f+=Ox(a)}return f}_adjustParentBBoxes(n,t,r){for(let i=r;i>=0;i--)sC(t[i],n)}_condense(n){for(let t=n.length-1,r;t>=0;t--)n[t].children.length===0?t>0?(r=n[t-1].children,r.splice(r.indexOf(n[t]),1)):this.clear():sg(n[t],this.toBBox)}};function Vie(e,n,t){if(!t)return n.indexOf(e);for(let r=0;r=e.minX&&n.maxY>=e.minY}function xg(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function P9(e,n,t,r,i){const o=[n,t];for(;o.length;){if(t=o.pop(),n=o.pop(),t-n<=r)continue;const s=n+Math.ceil((t-n)/r/2)*r;Yie(e,s,n,t,i),o.push(n,s,s,t)}}const Na={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};var eoe=function(){function e(n){this.opacity_=n.opacity,this.rotateWithView_=n.rotateWithView,this.rotation_=n.rotation,this.scale_=n.scale,this.scaleArray_=pA(n.scale),this.displacement_=n.displacement,this.declutterMode_=n.declutterMode}return e.prototype.clone=function(){var n=this.getScale();return new e({opacity:this.getOpacity(),scale:Array.isArray(n)?n.slice():n,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},e.prototype.getOpacity=function(){return this.opacity_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getDisplacement=function(){return this.displacement_},e.prototype.getDeclutterMode=function(){return this.declutterMode_},e.prototype.getAnchor=function(){return li()},e.prototype.getImage=function(n){return li()},e.prototype.getHitDetectionImage=function(){return li()},e.prototype.getPixelRatio=function(n){return 1},e.prototype.getImageState=function(){return li()},e.prototype.getImageSize=function(){return li()},e.prototype.getOrigin=function(){return li()},e.prototype.getSize=function(){return li()},e.prototype.setDisplacement=function(n){this.displacement_=n},e.prototype.setOpacity=function(n){this.opacity_=n},e.prototype.setRotateWithView=function(n){this.rotateWithView_=n},e.prototype.setRotation=function(n){this.rotation_=n},e.prototype.setScale=function(n){this.scale_=n,this.scaleArray_=pA(n)},e.prototype.listenImageChange=function(n){li()},e.prototype.load=function(){li()},e.prototype.unlistenImageChange=function(n){li()},e}();const uz=eoe;function tf(e){return Array.isArray(e)?NL(e):e}var toe=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),noe=function(e){toe(n,e);function n(t){var r=this,i=t.rotateWithView!==void 0?t.rotateWithView:!1;return r=e.call(this,{opacity:1,rotateWithView:i,rotation:t.rotation!==void 0?t.rotation:0,scale:t.scale!==void 0?t.scale:1,displacement:t.displacement!==void 0?t.displacement:[0,0],declutterMode:t.declutterMode})||this,r.canvas_=void 0,r.hitDetectionCanvas_=null,r.fill_=t.fill!==void 0?t.fill:null,r.origin_=[0,0],r.points_=t.points,r.radius_=t.radius!==void 0?t.radius:t.radius1,r.radius2_=t.radius2,r.angle_=t.angle!==void 0?t.angle:0,r.stroke_=t.stroke!==void 0?t.stroke:null,r.size_=null,r.renderOptions_=null,r.render(),r}return n.prototype.clone=function(){var t=this.getScale(),r=new n({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return r.setOpacity(this.getOpacity()),r},n.prototype.getAnchor=function(){var t=this.size_;if(!t)return null;var r=this.getDisplacement();return[t[0]/2-r[0],t[1]/2+r[1]]},n.prototype.getAngle=function(){return this.angle_},n.prototype.getFill=function(){return this.fill_},n.prototype.setFill=function(t){this.fill_=t,this.render()},n.prototype.getHitDetectionImage=function(){return this.hitDetectionCanvas_||this.createHitDetectionCanvas_(this.renderOptions_),this.hitDetectionCanvas_},n.prototype.getImage=function(t){var r=this.canvas_[t];if(!r){var i=this.renderOptions_,o=YA(i.size*t,i.size*t);this.draw_(i,o,t),r=o.canvas,this.canvas_[t]=r}return r},n.prototype.getPixelRatio=function(t){return t},n.prototype.getImageSize=function(){return this.size_},n.prototype.getImageState=function(){return Na.LOADED},n.prototype.getOrigin=function(){return this.origin_},n.prototype.getPoints=function(){return this.points_},n.prototype.getRadius=function(){return this.radius_},n.prototype.getRadius2=function(){return this.radius2_},n.prototype.getSize=function(){return this.size_},n.prototype.getStroke=function(){return this.stroke_},n.prototype.setStroke=function(t){this.stroke_=t,this.render()},n.prototype.listenImageChange=function(t){},n.prototype.load=function(){},n.prototype.unlistenImageChange=function(t){},n.prototype.calculateLineJoinSize_=function(t,r,i){if(r===0||this.points_===1/0||t!=="bevel"&&t!=="miter")return r;var o=this.radius_,s=this.radius2_===void 0?o:this.radius2_;if(of&&(this.instructions.push([ai.CUSTOM,f,x,t,i,dm]),this.hitDetectionInstructions.push([ai.CUSTOM,f,x,t,o||i,dm]));break;case"Point":g=t.getFlatCoordinates(),this.coordinates.push(g[0],g[1]),x=this.coordinates.length,this.instructions.push([ai.CUSTOM,f,x,t,i]),this.hitDetectionInstructions.push([ai.CUSTOM,f,x,t,o||i]);break}this.endGeometry(r)},n.prototype.beginGeometry=function(t,r){this.beginGeometryInstruction1_=[ai.BEGIN_GEOMETRY,r,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[ai.BEGIN_GEOMETRY,r,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},n.prototype.finish=function(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}},n.prototype.reverseHitDetectionInstructions=function(){var t=this.hitDetectionInstructions;t.reverse();var r,i=t.length,o,s,a=-1;for(r=0;rthis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},n.prototype.createFill=function(t){var r=t.fillStyle,i=[ai.SET_FILL_STYLE,r];return typeof r!="string"&&i.push(!0),i},n.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},n.prototype.createStroke=function(t){return[ai.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},n.prototype.updateFillStyle=function(t,r){var i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(r.call(this,t)),t.currentFillStyle=i)},n.prototype.updateStrokeStyle=function(t,r){var i=t.strokeStyle,o=t.lineCap,s=t.lineDash,a=t.lineDashOffset,f=t.lineJoin,g=t.lineWidth,x=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=o||s!=t.currentLineDash&&!_1(t.currentLineDash,s)||t.currentLineDashOffset!=a||t.currentLineJoin!=f||t.currentLineWidth!=g||t.currentMiterLimit!=x)&&(i!==void 0&&r.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=o,t.currentLineDash=s,t.currentLineDashOffset=a,t.currentLineJoin=f,t.currentLineWidth=g,t.currentMiterLimit=x)},n.prototype.endGeometry=function(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var r=[ai.END_GEOMETRY,t];this.instructions.push(r),this.hitDetectionInstructions.push(r)},n.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=pL(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;Em(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},n}(dz);const Z_=coe;var doe=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),hoe=function(e){doe(n,e);function n(t,r,i,o){var s=e.call(this,t,r,i,o)||this;return s.hitDetectionImage_=null,s.image_=null,s.imagePixelRatio_=void 0,s.anchorX_=void 0,s.anchorY_=void 0,s.height_=void 0,s.opacity_=void 0,s.originX_=void 0,s.originY_=void 0,s.rotateWithView_=void 0,s.rotation_=void 0,s.scale_=void 0,s.width_=void 0,s.declutterMode_=void 0,s.declutterImageWithText_=void 0,s}return n.prototype.drawPoint=function(t,r){if(this.image_){this.beginGeometry(t,r);var i=t.getFlatCoordinates(),o=t.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(i,o);this.instructions.push([ai.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([ai.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(r)}},n.prototype.drawMultiPoint=function(t,r){if(this.image_){this.beginGeometry(t,r);var i=t.getFlatCoordinates(),o=t.getStride(),s=this.coordinates.length,a=this.appendFlatPointCoordinates(i,o);this.instructions.push([ai.DRAW_IMAGE,s,a,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([ai.DRAW_IMAGE,s,a,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(r)}},n.prototype.finish=function(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,e.prototype.finish.call(this)},n.prototype.setImageStyle=function(t,r){var i=t.getAnchor(),o=t.getSize(),s=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=o[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=o[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=r},n}(Z_);const foe=hoe;var poe=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),moe=function(e){poe(n,e);function n(t,r,i,o){return e.call(this,t,r,i,o)||this}return n.prototype.drawFlatCoordinates_=function(t,r,i,o){var s=this.coordinates.length,a=this.appendFlatLineCoordinates(t,r,i,o,!1,!1),f=[ai.MOVE_TO_LINE_TO,s,a];return this.instructions.push(f),this.hitDetectionInstructions.push(f),i},n.prototype.drawLineString=function(t,r){var i=this.state,o=i.strokeStyle,s=i.lineWidth;if(!(o===void 0||s===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,r),this.hitDetectionInstructions.push([ai.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,h_,f_],G0);var a=t.getFlatCoordinates(),f=t.getStride();this.drawFlatCoordinates_(a,0,a.length,f),this.hitDetectionInstructions.push(hm),this.endGeometry(r)}},n.prototype.drawMultiLineString=function(t,r){var i=this.state,o=i.strokeStyle,s=i.lineWidth;if(!(o===void 0||s===void 0)){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,r),this.hitDetectionInstructions.push([ai.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],G0);for(var a=t.getEnds(),f=t.getFlatCoordinates(),g=t.getStride(),x=0,k=0,B=a.length;ke&&(f>a&&(a=f,o=g,s=k),f=0,g=k-i)),B=P,W=q,$=oe),R=ne,H=ce}return f+=P,f>a?[g,k]:[o,s]}var _oe=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),IC={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},boe=function(e){_oe(n,e);function n(t,r,i,o){var s=e.call(this,t,r,i,o)||this;return s.labels_=null,s.text_="",s.textOffsetX_=0,s.textOffsetY_=0,s.textRotateWithView_=void 0,s.textRotation_=0,s.textFillState_=null,s.fillStates={},s.textStrokeState_=null,s.strokeStates={},s.textState_={},s.textStates={},s.textKey_="",s.fillKey_="",s.strokeKey_="",s.declutterImageWithText_=void 0,s}return n.prototype.finish=function(){var t=e.prototype.finish.call(this);return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t},n.prototype.drawText=function(t,r){var i=this.textFillState_,o=this.textStrokeState_,s=this.textState_;if(!(this.text_===""||!s||!i&&!o)){var a=this.coordinates,f=a.length,g=t.getType(),x=null,k=t.getStride();if(s.placement===hz.LINE&&(g=="LineString"||g=="MultiLineString"||g=="Polygon"||g=="MultiPolygon")){if(!il(this.getBufferedMaxExtent(),t.getExtent()))return;var B=void 0;if(x=t.getFlatCoordinates(),g=="LineString")B=[x.length];else if(g=="MultiLineString")B=t.getEnds();else if(g=="Polygon")B=t.getEnds().slice(0,1);else if(g=="MultiPolygon"){var P=t.getEndss();B=[];for(var R=0,H=P.length;Rct[2]}else rt=ne>Re;var Fe=Math.PI,He=[],Ce=ae+r===n;n=ae,W=0,$=ue,B=e[n],P=e[n+1];var jt;if(Ce){q(),jt=Math.atan2(P-H,B-R),rt&&(jt+=jt>0?-Fe:Fe);var Ft=(Re+ne)/2,Jt=(Ne+ce)/2;return He[0]=[Ft,Jt,(ye-o)/2,jt,i],He}i=i.replace(/\n/g," ");for(var Nt=0,Ve=i.length;Nt0?-Fe:Fe),jt!==void 0){var Je=nt-jt;if(Je+=Je>Fe?-2*Fe:Je<-Fe?2*Fe:0,Math.abs(Je)>s)return null}jt=nt;for(var Vt=Nt,pt=0;Nt0&&e.push(` `,""),e.push(n,""),e}var Koe=function(){function e(n,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=n,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=xd(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(n,t,r,i){var o=n+t+r+i;if(this.labels_[o])return this.labels_[o];var s=i?this.strokeStates[i]:null,a=r?this.fillStates[r]:null,f=this.textStates[t],g=this.pixelRatio,x=[f.scale[0]*g,f.scale[1]*g],k=Array.isArray(n),B=f.justify?IC[f.justify]:j9(Array.isArray(n)?n[0]:n,f.textAlign||g_),P=i&&s.lineWidth?s.lineWidth:0,R=k?n:n.split(` `).reduce(Toe,[]),H=dre(f,R),W=H.width,$=H.height,q=H.widths,oe=H.heights,ne=H.lineWidths,ce=W+P,ae=[],ue=(ce+2)*x[0],ye=($+P)*x[1],Re={width:ue<0?Math.floor(ue):Math.ceil(ue),height:ye<0?Math.floor(ye):Math.ceil(ye),contextInstructions:ae};if((x[0]!=1||x[1]!=1)&&ae.push("scale",x),i){ae.push("strokeStyle",s.strokeStyle),ae.push("lineWidth",P),ae.push("lineCap",s.lineCap),ae.push("lineJoin",s.lineJoin),ae.push("miterLimit",s.miterLimit);var Ne=i5?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;Ne.prototype.setLineDash&&(ae.push("setLineDash",[s.lineDash]),ae.push("lineDashOffset",s.lineDashOffset))}r&&ae.push("fillStyle",a.fillStyle),ae.push("textBaseline","middle"),ae.push("textAlign","center");for(var rt=.5-B,ct=B*ce+rt*P,Fe=[],He=[],Ce=0,jt=0,Ft=0,Jt=0,Nt,Ve=0,nt=R.length;Ven?n-g:o,ne=s+x>t?t-x:s,ce=R[3]+oe*B[0]+R[1],ae=R[0]+ne*B[1]+R[2],ue=$-R[3],ye=q-R[0];(H||k!==0)&&(Qp[0]=ue,$p[0]=ue,Qp[1]=ye,Zf[1]=ye,Zf[0]=ue+ce,Xf[0]=Zf[0],Xf[1]=ye+ae,$p[1]=Xf[1]);var Re;return k!==0?(Re=df(xd(),r,i,1,1,k,-r,-i),rl(Re,Qp),rl(Re,Zf),rl(Re,Xf),rl(Re,$p),hf(Math.min(Qp[0],Zf[0],Xf[0],$p[0]),Math.min(Qp[1],Zf[1],Xf[1],$p[1]),Math.max(Qp[0],Zf[0],Xf[0],$p[0]),Math.max(Qp[1],Zf[1],Xf[1],$p[1]),lg)):hf(Math.min(ue,ue+ce),Math.min(ye,ye+ae),Math.max(ue,ue+ce),Math.max(ye,ye+ae),lg),P&&($=Math.round($),q=Math.round(q)),{drawImageX:$,drawImageY:q,drawImageW:oe,drawImageH:ne,originX:g,originY:x,declutterBox:{minX:lg[0],minY:lg[1],maxX:lg[2],maxY:lg[3],value:W},canvasTransform:Re,scale:B}},e.prototype.replayImageOrLabel_=function(n,t,r,i,o,s,a){var f=!!(s||a),g=i.declutterBox,x=n.canvas,k=a?a[2]*i.scale[0]/2:0,B=g.minX-k<=x.width/t&&g.maxX+k>=0&&g.minY-k<=x.height/t&&g.maxY+k>=0;return B&&(f&&this.replayTextBackground_(n,Qp,Zf,Xf,$p,s,a),hre(n,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},e.prototype.fill_=function(n){if(this.alignFill_){var t=rl(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;n.save(),n.translate(t[0]%r,t[1]%r),n.rotate(this.viewRotation_)}n.fill(),this.alignFill_&&n.restore()},e.prototype.setStrokeStyle_=function(n,t){n.strokeStyle=t[1],n.lineWidth=t[2],n.lineCap=t[3],n.lineJoin=t[4],n.miterLimit=t[5],n.setLineDash&&(n.lineDashOffset=t[7],n.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(n,t,r,i){var o=this.textStates[t],s=this.createLabel(n,t,i,r),a=this.strokeStates[r],f=this.pixelRatio,g=j9(Array.isArray(n)?n[0]:n,o.textAlign||g_),x=IC[o.textBaseline||k3],k=a&&a.lineWidth?a.lineWidth:0,B=s.width/f-2*o.scale[0],P=g*B+2*(.5-g)*k,R=x*s.height/f+2*(.5-x)*k;return{label:s,anchorX:P,anchorY:R}},e.prototype.execute_=function(n,t,r,i,o,s,a,f){var g;this.pixelCoordinates_&&_1(r,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=Om(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),kee(this.renderedTransform_,r));for(var x=0,k=i.length,B=0,P,R,H,W,$,q,oe,ne,ce,ae,ue,ye,Re=0,Ne=0,rt=null,ct=null,Fe=this.coordinateCache_,He=this.viewRotation_,Ce=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,jt={context:n,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:He},Ft=this.instructions!=i||this.overlaps?0:200,Jt,Nt,Ve,nt;xFt&&(this.fill_(n),Re=0),Ne>Ft&&(n.stroke(),Ne=0),!Re&&!Ne&&(n.beginPath(),W=NaN,$=NaN),++x;break;case ai.CIRCLE:B=Je[1];var pt=g[B],dt=g[B+1],kt=g[B+2],Dt=g[B+3],Se=kt-pt,de=Dt-dt,xe=Math.sqrt(Se*Se+de*de);n.moveTo(pt+xe,dt),n.arc(pt,dt,xe,0,2*Math.PI,!0),++x;break;case ai.CLOSE_PATH:n.closePath(),++x;break;case ai.CUSTOM:B=Je[1],P=Je[2];var Pe=Je[3],Ze=Je[4],Xe=Je.length==6?Je[5]:void 0;jt.geometry=Pe,jt.feature=Jt,x in Fe||(Fe[x]=[]);var wt=Fe[x];Xe?Xe(g,B,P,2,wt):(wt[0]=g[B],wt[1]=g[B+1],wt.length=2),Ze(wt,jt),++x;break;case ai.DRAW_IMAGE:B=Je[1],P=Je[2],ne=Je[3],R=Je[4],H=Je[5];var Kt=Je[6],Pt=Je[7],zn=Je[8],mt=Je[9],pn=Je[10],ir=Je[11],Sn=Je[12],nr=Je[13],Mr=Je[14],Qr=Je[15];if(!ne&&Je.length>=20){ce=Je[19],ae=Je[20],ue=Je[21],ye=Je[22];var _r=this.drawLabelWithPointPlacement_(ce,ae,ue,ye);ne=_r.label,Je[3]=ne;var vi=Je[23];R=(_r.anchorX-vi)*this.pixelRatio,Je[4]=R;var we=Je[24];H=(_r.anchorY-we)*this.pixelRatio,Je[5]=H,Kt=ne.height,Je[6]=Kt,nr=ne.width,Je[13]=nr}var V=void 0;Je.length>25&&(V=Je[25]);var X=void 0,me=void 0,At=void 0;Je.length>17?(X=Je[16],me=Je[17],At=Je[18]):(X=N0,me=!1,At=!1),pn&&Ce?ir+=He:!pn&&!Ce&&(ir-=He);for(var bt=0;B0){if(!s||P!=="Image"&&P!=="Text"||s.indexOf(ae)!==-1){var rt=(B[Re]-3)/4,ct=i-rt%a,Fe=i-(rt/a|0),He=o(ae,ue,ct*ct+Fe*Fe);if(He)return He}x.clearRect(0,0,a,a);break}}var H=Object.keys(this.executorsByZIndex_).map(Number);H.sort(c1);var W,$,q,oe,ne;for(W=H.length-1;W>=0;--W){var ce=H[W].toString();for(q=this.executorsByZIndex_[ce],$=yM.length-1;$>=0;--$)if(P=yM[$],oe=q[P],oe!==void 0&&(ne=oe.executeHitDetection(x,f,r,R,k),ne))return ne}},e.prototype.getClipCoords=function(n){var t=this.maxExtent_;if(!t)return null;var r=t[0],i=t[1],o=t[2],s=t[3],a=[r,i,r,s,o,s,o,i];return Om(a,0,8,2,n,a),a},e.prototype.isEmpty=function(){return h1(this.executorsByZIndex_)},e.prototype.execute=function(n,t,r,i,o,s,a){var f=Object.keys(this.executorsByZIndex_).map(Number);f.sort(c1),this.maxExtent_&&(n.save(),this.clip(n,r));var g=s||yM,x,k,B,P,R,H;for(a&&f.reverse(),x=0,k=f.length;xt)break;var a=r[s];a||(a=[],r[s]=a),a.push(((e+i)*n+(e+o))*4+3),i>0&&a.push(((e-i)*n+(e+o))*4+3),o>0&&(a.push(((e+i)*n+(e-o))*4+3),i>0&&a.push(((e-i)*n+(e-o))*4+3))}for(var f=[],i=0,g=r.length;i0,6);var k=i.src!==void 0?Na.IDLE:Na.LOADED;return r.color_=i.color!==void 0?M3(i.color):null,r.iconImage_=Qoe(g,x,r.imgSize_!==void 0?r.imgSize_:null,r.crossOrigin_,k,r.color_),r.offset_=i.offset!==void 0?i.offset:[0,0],r.offsetOrigin_=i.offsetOrigin!==void 0?i.offsetOrigin:hd.TOP_LEFT,r.origin_=null,r.size_=i.size!==void 0?i.size:null,r}return n.prototype.clone=function(){var t=this.getScale();return new n({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:Array.isArray(t)?t.slice():t,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})},n.prototype.getAnchor=function(){var t=this.normalizedAnchor_;if(!t){t=this.anchor_;var r=this.getSize();if(this.anchorXUnits_==tm.FRACTION||this.anchorYUnits_==tm.FRACTION){if(!r)return null;t=this.anchor_.slice(),this.anchorXUnits_==tm.FRACTION&&(t[0]*=r[0]),this.anchorYUnits_==tm.FRACTION&&(t[1]*=r[1])}if(this.anchorOrigin_!=hd.TOP_LEFT){if(!r)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_==hd.TOP_RIGHT||this.anchorOrigin_==hd.BOTTOM_RIGHT)&&(t[0]=-t[0]+r[0]),(this.anchorOrigin_==hd.BOTTOM_LEFT||this.anchorOrigin_==hd.BOTTOM_RIGHT)&&(t[1]=-t[1]+r[1])}this.normalizedAnchor_=t}var i=this.getDisplacement();return[t[0]-i[0],t[1]+i[1]]},n.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},n.prototype.getColor=function(){return this.color_},n.prototype.getImage=function(t){return this.iconImage_.getImage(t)},n.prototype.getPixelRatio=function(t){return this.iconImage_.getPixelRatio(t)},n.prototype.getImageSize=function(){return this.iconImage_.getSize()},n.prototype.getImageState=function(){return this.iconImage_.getImageState()},n.prototype.getHitDetectionImage=function(){return this.iconImage_.getHitDetectionImage()},n.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=hd.TOP_LEFT){var r=this.getSize(),i=this.iconImage_.getSize();if(!r||!i)return null;t=t.slice(),(this.offsetOrigin_==hd.TOP_RIGHT||this.offsetOrigin_==hd.BOTTOM_RIGHT)&&(t[0]=i[0]-r[0]-t[0]),(this.offsetOrigin_==hd.BOTTOM_LEFT||this.offsetOrigin_==hd.BOTTOM_RIGHT)&&(t[1]=i[1]-r[1]-t[1])}return this.origin_=t,this.origin_},n.prototype.getSrc=function(){return this.iconImage_.getSrc()},n.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},n.prototype.listenImageChange=function(t){this.iconImage_.addEventListener(ki.CHANGE,t)},n.prototype.load=function(){this.iconImage_.load()},n.prototype.unlistenImageChange=function(t){this.iconImage_.removeEventListener(ki.CHANGE,t)},n}(uz);const pz=Yoe;var qoe="#333",Voe=function(){function e(n){var t=n||{};this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=pA(t.scale!==void 0?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.textBaseline_=t.textBaseline,this.fill_=t.fill!==void 0?t.fill:new Ug({color:qoe}),this.maxAngle_=t.maxAngle!==void 0?t.maxAngle:Math.PI/4,this.placement_=t.placement!==void 0?t.placement:hz.POINT,this.overflow_=!!t.overflow,this.stroke_=t.stroke!==void 0?t.stroke:null,this.offsetX_=t.offsetX!==void 0?t.offsetX:0,this.offsetY_=t.offsetY!==void 0?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=t.padding===void 0?null:t.padding}return e.prototype.clone=function(){var n=this.getScale();return new e({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(n)?n.slice():n,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0})},e.prototype.getOverflow=function(){return this.overflow_},e.prototype.getFont=function(){return this.font_},e.prototype.getMaxAngle=function(){return this.maxAngle_},e.prototype.getPlacement=function(){return this.placement_},e.prototype.getOffsetX=function(){return this.offsetX_},e.prototype.getOffsetY=function(){return this.offsetY_},e.prototype.getFill=function(){return this.fill_},e.prototype.getRotateWithView=function(){return this.rotateWithView_},e.prototype.getRotation=function(){return this.rotation_},e.prototype.getScale=function(){return this.scale_},e.prototype.getScaleArray=function(){return this.scaleArray_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.getText=function(){return this.text_},e.prototype.getTextAlign=function(){return this.textAlign_},e.prototype.getJustify=function(){return this.justify_},e.prototype.getTextBaseline=function(){return this.textBaseline_},e.prototype.getBackgroundFill=function(){return this.backgroundFill_},e.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},e.prototype.getPadding=function(){return this.padding_},e.prototype.setOverflow=function(n){this.overflow_=n},e.prototype.setFont=function(n){this.font_=n},e.prototype.setMaxAngle=function(n){this.maxAngle_=n},e.prototype.setOffsetX=function(n){this.offsetX_=n},e.prototype.setOffsetY=function(n){this.offsetY_=n},e.prototype.setPlacement=function(n){this.placement_=n},e.prototype.setRotateWithView=function(n){this.rotateWithView_=n},e.prototype.setFill=function(n){this.fill_=n},e.prototype.setRotation=function(n){this.rotation_=n},e.prototype.setScale=function(n){this.scale_=n,this.scaleArray_=pA(n!==void 0?n:1)},e.prototype.setStroke=function(n){this.stroke_=n},e.prototype.setText=function(n){this.text_=n},e.prototype.setTextAlign=function(n){this.textAlign_=n},e.prototype.setJustify=function(n){this.justify_=n},e.prototype.setTextBaseline=function(n){this.textBaseline_=n},e.prototype.setBackgroundFill=function(n){this.backgroundFill_=n},e.prototype.setBackgroundStroke=function(n){this.backgroundStroke_=n},e.prototype.setPadding=function(n){this.padding_=n},e}(),Dc=.5;function mz(e,n,t,r,i,o,s){var a=e[0]*Dc,f=e[1]*Dc,g=YA(a,f);g.imageSmoothingEnabled=!1;for(var x=g.canvas,k=new Roe(g,Dc,i,null,s),B=t.length,P=Math.floor((256*256*256-1)/B),R={},H=1;H<=B;++H){var W=t[H-1],$=W.getStyleFunction()||r;if(r){var q=$(W,o);if(q){Array.isArray(q)||(q=[q]);for(var oe=H*P,ne="#"+("000000"+oe.toString(16)).slice(-6),ce=0,ae=q.length;ceH[2];)++q,oe=$*q,k.push(this.getRenderTransform(o,s,a,Dc,B,P,oe).slice()),W-=$}this.hitDetectionImageData_=mz(i,k,this.renderedFeatures_,x.getStyleFunction(),g,s,a)}r(gz(t,this.renderedFeatures_,this.hitDetectionImageData_))}).bind(this))},n.prototype.forEachFeatureAtCoordinate=function(t,r,i,o,s){var a=this;if(this.replayGroup_){var f=r.viewState.resolution,g=r.viewState.rotation,x=this.getLayer(),k={},B=function(H,W,$){var q=$i(H),oe=k[q];if(oe){if(oe!==!0&&$ce[0]&&ye[2]>ce[2]&&ne.push([ye[0]-ae,ye[1],ye[2]-ae,ye[3]])}if(this.ready&&this.renderedResolution_==B&&this.renderedRevision_==R&&this.renderedRenderOrder_==W&&cm(this.wrappedRenderedExtent_,q))return _1(this.renderedExtent_,oe)||(this.hitDetectionImageData_=null,this.renderedExtent_=oe),this.renderedCenter_=$,this.replayGroupChanged=!1,!0;this.replayGroup_=null;var Re=new K3(iE(B,P),q,B,P),Ne;this.getLayer().getDeclutter()&&(Ne=new K3(iE(B,P),q,B,P));for(var rt,ct,Fe,ct=0,Fe=ne.length;ct=200&&a.status<300){var g=n.getType(),x=void 0;g=="json"||g=="text"?x=a.responseText:g=="xml"?(x=a.responseXML,x||(x=new DOMParser().parseFromString(a.responseText,"application/xml"))):g=="arraybuffer"&&(x=a.response),x?o(n.readFeatures(x,{extent:t,featureProjection:i}),n.readProjection(x)):s()}else s()},a.onerror=s,a.send()}function G9(e,n){return function(t,r,i,o,s){var a=this;xz(e,n,t,r,i,function(f,g){a.addFeatures(f),o!==void 0&&o(f)},s||d1)}}var wz=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Yp=function(e){wz(n,e);function n(t,r,i){var o=e.call(this,t)||this;return o.feature=r,o.features=i,o}return n}(Ep),mae=function(e){wz(n,e);function n(t){var r=this,i=t||{};r=e.call(this,{attributions:i.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:i.wrapX!==void 0?i.wrapX:!0})||this,r.on,r.once,r.un,r.loader_=d1,r.format_=i.format,r.overlaps_=i.overlaps===void 0?!0:i.overlaps,r.url_=i.url,i.loader!==void 0?r.loader_=i.loader:r.url_!==void 0&&(ao(r.format_,7),r.loader_=G9(r.url_,r.format_)),r.strategy_=i.strategy!==void 0?i.strategy:fae;var o=i.useSpatialIndex!==void 0?i.useSpatialIndex:!0;r.featuresRtree_=o?new W9:null,r.loadedExtentsRtree_=new W9,r.loadingExtentsCount_=0,r.nullGeometryFeatures_={},r.idIndex_={},r.uidIndex_={},r.featureChangeKeys_={},r.featuresCollection_=null;var s,a;return Array.isArray(i.features)?a=i.features:i.features&&(s=i.features,a=s.getArray()),!o&&s===void 0&&(s=new _d(a)),a!==void 0&&r.addFeaturesInternal(a),s!==void 0&&r.bindFeaturesCollection_(s),r}return n.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},n.prototype.addFeatureInternal=function(t){var r=$i(t);if(!this.addToIndex_(r,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(r,t);var i=t.getGeometry();if(i){var o=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(o,t)}else this.nullGeometryFeatures_[r]=t;this.dispatchEvent(new Yp(oh.ADDFEATURE,t))},n.prototype.setupChangeEvents_=function(t,r){this.featureChangeKeys_[t]=[wo(r,ki.CHANGE,this.handleFeatureChange_,this),wo(r,xy.PROPERTYCHANGE,this.handleFeatureChange_,this)]},n.prototype.addToIndex_=function(t,r){var i=!0,o=r.getId();return o!==void 0&&(o.toString()in this.idIndex_?i=!1:this.idIndex_[o.toString()]=r),i&&(ao(!(t in this.uidIndex_),30),this.uidIndex_[t]=r),i},n.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},n.prototype.addFeaturesInternal=function(t){for(var r=[],i=[],o=[],s=0,a=t.length;s0},n.prototype.refresh=function(){this.clear(!0),this.loadedExtentsRtree_.clear(),e.prototype.refresh.call(this)},n.prototype.removeLoadedExtent=function(t){var r=this.loadedExtentsRtree_,i;r.forEachInExtent(t,function(o){if(wy(o.extent,t))return i=o,!0}),i&&r.remove(i)},n.prototype.removeFeature=function(t){if(t){var r=$i(t);r in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[r]:this.featuresRtree_&&this.featuresRtree_.remove(t);var i=this.removeFeatureInternal(t);i&&this.changed()}},n.prototype.removeFeatureInternal=function(t){var r=$i(t),i=this.featureChangeKeys_[r];if(i){i.forEach(Ga),delete this.featureChangeKeys_[r];var o=t.getId();return o!==void 0&&delete this.idIndex_[o.toString()],delete this.uidIndex_[r],this.dispatchEvent(new Yp(oh.REMOVEFEATURE,t)),t}},n.prototype.removeFromIdIndex_=function(t){var r=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],r=!0;break}return r},n.prototype.setLoader=function(t){this.loader_=t},n.prototype.setUrl=function(t){ao(this.format_,7),this.url_=t,this.setLoader(G9(t,this.format_))},n}(bz);const Mz=mae;function gae(e){var n=e||{},t=new _d,r=new Rie(-.005,.05,100),i=n.altShiftDragRotate!==void 0?n.altShiftDragRotate:!0;i&&t.push(new wie);var o=n.doubleClickZoom!==void 0?n.doubleClickZoom:!0;o&&t.push(new die({delta:n.zoomDelta,duration:n.zoomDuration}));var s=n.dragPan!==void 0?n.dragPan:!0;s&&t.push(new bie({onFocusOnly:n.onFocusOnly,kinetic:r}));var a=n.pinchRotate!==void 0?n.pinchRotate:!0;a&&t.push(new Nie);var f=n.pinchZoom!==void 0?n.pinchZoom:!0;f&&t.push(new $ie({duration:n.zoomDuration}));var g=n.keyboard!==void 0?n.keyboard:!0;g&&(t.push(new Pie),t.push(new Uie({delta:n.zoomDelta,duration:n.zoomDuration})));var x=n.mouseWheelZoom!==void 0?n.mouseWheelZoom:!0;x&&t.push(new jie({onFocusOnly:n.onFocusOnly,duration:n.zoomDuration}));var k=n.shiftDragZoom!==void 0?n.shiftDragZoom:!0;return k&&t.push(new Tie({duration:n.zoomDuration})),t}var yae=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),g7=function(e){yae(n,e);function n(t){return t=al({},t),t.controls||(t.controls=aie()),t.interactions||(t.interactions=gae({onFocusOnly:!0})),e.call(this,t)||this}return n.prototype.createRenderer=function(){return new gre(this)},n}($re),Sz=function(){function e(n,t,r,i){this.minX=n,this.maxX=t,this.minY=r,this.maxY=i}return e.prototype.contains=function(n){return this.containsXY(n[1],n[2])},e.prototype.containsTileRange=function(n){return this.minX<=n.minX&&n.maxX<=this.maxX&&this.minY<=n.minY&&n.maxY<=this.maxY},e.prototype.containsXY=function(n,t){return this.minX<=n&&n<=this.maxX&&this.minY<=t&&t<=this.maxY},e.prototype.equals=function(n){return this.minX==n.minX&&this.minY==n.minY&&this.maxX==n.maxX&&this.maxY==n.maxY},e.prototype.extend=function(n){n.minXthis.maxX&&(this.maxX=n.maxX),n.minYthis.maxY&&(this.maxY=n.maxY)},e.prototype.getHeight=function(){return this.maxY-this.minY+1},e.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},e.prototype.getWidth=function(){return this.maxX-this.minX+1},e.prototype.intersects=function(n){return this.minX<=n.maxX&&this.maxX>=n.minX&&this.minY<=n.maxY&&this.maxY>=n.minY},e}();function ug(e,n,t,r,i){return i!==void 0?(i.minX=e,i.maxX=n,i.minY=t,i.maxY=r,i):new Sz(e,n,t,r)}const Ez=Sz;function Q9(e,n,t,r){return r!==void 0?(r[0]=e,r[1]=n,r[2]=t,r):[e,n,t]}function Wy(e,n,t){return e+"/"+n+"/"+t}function Oz(e){return Wy(e[0],e[1],e[2])}function vae(e){var n=e.substring(e.lastIndexOf("/")+1,e.length).split(",").map(Number),t=n[0],r=n[1],i=n[2];return Wy(t,r,i)}function Bz(e){return e.split("/").map(Number)}function Cae(e){return(e[1]<t||t>n.getMaxZoom())return!1;var o=n.getFullTileRange(t);return o?o.containsXY(r,i):!0}var bae=[0,0,0],qp=5,xae=function(){function e(n){this.minZoom=n.minZoom!==void 0?n.minZoom:0,this.resolutions_=n.resolutions,ao(hee(this.resolutions_,function(s,a){return a-s},!0),17);var t;if(!n.origins){for(var r=0,i=this.resolutions_.length-1;r=this.minZoom;){if(this.zoomFactor_===2?(s=Math.floor(s/2),a=Math.floor(a/2),o=ug(s,s,a,a,r)):o=this.getTileRangeForExtentAndZ(f,g,r),t(g,o))return!0;--g}return!1},e.prototype.getExtent=function(){return this.extent_},e.prototype.getMaxZoom=function(){return this.maxZoom},e.prototype.getMinZoom=function(){return this.minZoom},e.prototype.getOrigin=function(n){return this.origin_?this.origin_:this.origins_[n]},e.prototype.getResolution=function(n){return this.resolutions_[n]},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getTileCoordChildTileRange=function(n,t,r){if(n[0]this.maxZoom||tt)throw new Error("Tile load sequence violation");this.state=t,this.changed()},n.prototype.load=function(){li()},n.prototype.getAlpha=function(t,r){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(!i)i=r,this.transitionStarts_[t]=i;else if(i===-1)return 1;var o=r-i+1e3/60;return o>=this.transition_?1:JL(o/this.transition_)},n.prototype.inTransition=function(t){return this.transition_?this.transitionStarts_[t]!==-1:!1},n.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},n}(zy);const p5=Mae;var Sae=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Eae=function(e){Sae(n,e);function n(t,r,i,o,s,a){var f=e.call(this,t,r,a)||this;return f.crossOrigin_=o,f.src_=i,f.key=i,f.image_=new Image,o!==null&&(f.image_.crossOrigin=o),f.unlisten_=null,f.tileLoadFunction_=s,f}return n.prototype.getImage=function(){return this.image_},n.prototype.setImage=function(t){this.image_=t,this.state=mr.LOADED,this.unlistenImage_(),this.changed()},n.prototype.handleImageError_=function(){this.state=mr.ERROR,this.unlistenImage_(),this.image_=Oae(),this.changed()},n.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=mr.LOADED:this.state=mr.EMPTY,this.unlistenImage_(),this.changed()},n.prototype.load=function(){this.state==mr.ERROR&&(this.state=mr.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==mr.IDLE&&(this.state=mr.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=m7(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))},n.prototype.unlistenImage_=function(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)},n}(p5);function Oae(){var e=YA(1,1);return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),e.canvas}const kz=Eae;var Bae=.5,kae=10,$9=.25,Iae=function(){function e(n,t,r,i,o,s){this.sourceProj_=n,this.targetProj_=t;var a={},f=b3(this.targetProj_,this.sourceProj_);this.transformInv_=function(oe){var ne=oe[0]+"/"+oe[1];return a[ne]||(a[ne]=f(oe)),a[ne]},this.maxSourceExtent_=i,this.errorThresholdSquared_=o*o,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&os(i)==os(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?os(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?os(this.targetProj_.getExtent()):null;var g=Lm(r),x=l5(r),k=s5(r),B=a5(r),P=this.transformInv_(g),R=this.transformInv_(x),H=this.transformInv_(k),W=this.transformInv_(B),$=kae+(s?Math.max(0,Math.ceil(Nee(L6(r)/(s*s*256*256)))):0);if(this.addQuad_(g,x,k,B,P,R,H,W,$),this.wrapsXInSource_){var q=1/0;this.triangles_.forEach(function(oe,ne,ce){q=Math.min(q,oe.source[0][0],oe.source[1][0],oe.source[2][0])}),this.triangles_.forEach((function(oe){if(Math.max(oe.source[0][0],oe.source[1][0],oe.source[2][0])-q>this.sourceWorldWidth_/2){var ne=[[oe.source[0][0],oe.source[0][1]],[oe.source[1][0],oe.source[1][1]],[oe.source[2][0],oe.source[2][1]]];ne[0][0]-q>this.sourceWorldWidth_/2&&(ne[0][0]-=this.sourceWorldWidth_),ne[1][0]-q>this.sourceWorldWidth_/2&&(ne[1][0]-=this.sourceWorldWidth_),ne[2][0]-q>this.sourceWorldWidth_/2&&(ne[2][0]-=this.sourceWorldWidth_);var ce=Math.min(ne[0][0],ne[1][0],ne[2][0]),ae=Math.max(ne[0][0],ne[1][0],ne[2][0]);ae-ce.5&&k<1,R=!1;if(g>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){var H=U6([n,t,r,i]),W=os(H)/this.targetWorldWidth_;R=W>$9||R}!P&&this.sourceProj_.isGlobal()&&k&&(R=k>$9||R)}if(!(!R&&this.maxSourceExtent_&&isFinite(x[0])&&isFinite(x[1])&&isFinite(x[2])&&isFinite(x[3])&&!il(x,this.maxSourceExtent_))){var $=0;if(!R&&(!isFinite(o[0])||!isFinite(o[1])||!isFinite(s[0])||!isFinite(s[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(f[0])||!isFinite(f[1]))){if(g>0)R=!0;else if($=(!isFinite(o[0])||!isFinite(o[1])?8:0)+(!isFinite(s[0])||!isFinite(s[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(f[0])||!isFinite(f[1])?1:0),$!=1&&$!=2&&$!=4&&$!=8)return}if(g>0){if(!R){var q=[(n[0]+r[0])/2,(n[1]+r[1])/2],oe=this.transformInv_(q),ne=void 0;if(P){var ce=(e1(o[0],B)+e1(a[0],B))/2;ne=ce-e1(oe[0],B)}else ne=(o[0]+a[0])/2-oe[0];var ae=(o[1]+a[1])/2-oe[1],ue=ne*ne+ae*ae;R=ue>this.errorThresholdSquared_}if(R){if(Math.abs(n[0]-r[0])<=Math.abs(n[1]-r[1])){var ye=[(t[0]+r[0])/2,(t[1]+r[1])/2],Re=this.transformInv_(ye),Ne=[(i[0]+n[0])/2,(i[1]+n[1])/2],rt=this.transformInv_(Ne);this.addQuad_(n,t,ye,Ne,o,s,Re,rt,g-1),this.addQuad_(Ne,ye,r,i,rt,Re,a,f,g-1)}else{var ct=[(n[0]+t[0])/2,(n[1]+t[1])/2],Fe=this.transformInv_(ct),He=[(r[0]+i[0])/2,(r[1]+i[1])/2],Ce=this.transformInv_(He);this.addQuad_(n,ct,He,i,o,Fe,Ce,f,g-1),this.addQuad_(ct,t,r,He,Fe,s,a,Ce,g-1)}return}}if(P){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}$&11||this.addTriangle_(n,r,i,o,a,f),$&14||this.addTriangle_(n,r,t,o,a,s),$&&($&13||this.addTriangle_(t,i,n,s,f,o),$&7||this.addTriangle_(t,i,r,s,f,a))}},e.prototype.calculateSourceExtent=function(){var n=Ed();return this.triangles_.forEach(function(t,r,i){var o=t.source;kC(n,o[0]),kC(n,o[1]),kC(n,o[2])}),n},e.prototype.getTriangles=function(){return this.triangles_},e}(),oE={imageSmoothingEnabled:!1,msImageSmoothingEnabled:!1},Tae={imageSmoothingEnabled:!0,msImageSmoothingEnabled:!0},CM,Iz=[];function Y9(e,n,t,r,i){e.beginPath(),e.moveTo(0,0),e.lineTo(n,t),e.lineTo(r,i),e.closePath(),e.save(),e.clip(),e.fillRect(0,0,Math.max(n,r)+1,Math.max(t,i)),e.restore()}function _M(e,n){return Math.abs(e[n*4]-210)>2||Math.abs(e[n*4+3]-.75*255)>2}function Kae(){if(CM===void 0){var e=document.createElement("canvas").getContext("2d");e.globalCompositeOperation="lighter",e.fillStyle="rgba(210, 0, 0, 0.75)",Y9(e,4,5,4,0),Y9(e,4,5,0,5);var n=e.getImageData(0,0,3,3).data;CM=_M(n,0)||_M(n,4)||_M(n,8)}return CM}function q9(e,n,t,r){var i=VB(t,n,e),o=u9(n,r,t),s=n.getMetersPerUnit();s!==void 0&&(o*=s);var a=e.getMetersPerUnit();a!==void 0&&(o/=a);var f=e.getExtent();if(!f||$_(f,i)){var g=u9(e,o,i)/o;isFinite(g)&&g>0&&(o/=g)}return o}function Pae(e,n,t,r){var i=Dm(t),o=q9(e,n,i,r);return(!isFinite(o)||o<=0)&&vL(t,function(s){return o=q9(e,n,s,r),isFinite(o)&&o>0}),o}function Fae(e,n,t,r,i,o,s,a,f,g,x,k){var B=YA(Math.round(t*e),Math.round(t*n),Iz);if(k||al(B,oE),f.length===0)return B.canvas;B.scale(t,t);function P(ne){return Math.round(ne*t)/t}B.globalCompositeOperation="lighter";var R=Ed();f.forEach(function(ne,ce,ae){gL(R,ne.extent)});var H=os(R),W=$A(R),$=YA(Math.round(t*H/r),Math.round(t*W/r));k||al($,oE);var q=t/r;f.forEach(function(ne,ce,ae){var ue=ne.extent[0]-R[0],ye=-(ne.extent[3]-R[3]),Re=os(ne.extent),Ne=$A(ne.extent);ne.image.width>0&&ne.image.height>0&&$.drawImage(ne.image,g,g,ne.image.width-2*g,ne.image.height-2*g,ue*q,ye*q,Re*q,Ne*q)});var oe=Lm(s);return a.getTriangles().forEach(function(ne,ce,ae){var ue=ne.source,ye=ne.target,Re=ue[0][0],Ne=ue[0][1],rt=ue[1][0],ct=ue[1][1],Fe=ue[2][0],He=ue[2][1],Ce=P((ye[0][0]-oe[0])/o),jt=P(-(ye[0][1]-oe[1])/o),Ft=P((ye[1][0]-oe[0])/o),Jt=P(-(ye[1][1]-oe[1])/o),Nt=P((ye[2][0]-oe[0])/o),Ve=P(-(ye[2][1]-oe[1])/o),nt=Re,Je=Ne;Re=0,Ne=0,rt-=nt,ct-=Je,Fe-=nt,He-=Je;var Vt=[[rt,ct,0,0,Ft-Ce],[Fe,He,0,0,Nt-Ce],[0,0,rt,ct,Jt-jt],[0,0,Fe,He,Ve-jt]],pt=Qee(Vt);if(pt){if(B.save(),B.beginPath(),Kae()||!k){B.moveTo(Ft,Jt);for(var dt=4,kt=Ce-Ft,Dt=jt-Jt,Se=0;Se0&&this.getCount()>this.highWaterMark},e.prototype.expireCache=function(n){for(;this.canExpireCache();)this.pop()},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null},e.prototype.containsKey=function(n){return this.entries_.hasOwnProperty(n)},e.prototype.forEach=function(n){for(var t=this.oldest_;t;)n(t.value_,t.key_,this),t=t.newer},e.prototype.get=function(n,t){var r=this.entries_[n];return ao(r!==void 0,15),r===this.newest_||(r===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(r.newer.older=r.older,r.older.newer=r.newer),r.newer=null,r.older=this.newest_,this.newest_.newer=r,this.newest_=r),r.value_},e.prototype.remove=function(n){var t=this.entries_[n];return ao(t!==void 0,15),t===this.newest_?(this.newest_=t.older,this.newest_&&(this.newest_.newer=null)):t===this.oldest_?(this.oldest_=t.newer,this.oldest_&&(this.oldest_.older=null)):(t.newer.older=t.older,t.older.newer=t.newer),delete this.entries_[n],--this.count_,t.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var n=new Array(this.count_),t=0,r;for(r=this.newest_;r;r=r.older)n[t++]=r.key_;return n},e.prototype.getValues=function(){var n=new Array(this.count_),t=0,r;for(r=this.newest_;r;r=r.older)n[t++]=r.value_;return n},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.peek=function(n){if(this.containsKey(n))return this.entries_[n].value_},e.prototype.pop=function(){var n=this.oldest_;return delete this.entries_[n.key_],n.newer&&(n.newer.older=null),this.oldest_=n.newer,this.oldest_||(this.newest_=null),--this.count_,n.value_},e.prototype.replace=function(n,t){this.get(n),this.entries_[n].value_=t},e.prototype.set=function(n,t){ao(!(n in this.entries_),16);var r={key_:n,newer:null,older:this.newest_,value_:t};this.newest_?this.newest_.newer=r:this.oldest_=r,this.newest_=r,this.entries_[n]=r,++this.count_},e.prototype.setSize=function(n){this.highWaterMark=n},e}();const Lae=Rae;var zae=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),jae=function(e){zae(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.expireCache=function(t){for(;this.canExpireCache();){var r=this.peekLast();if(r.getKey()in t)break;this.pop().release()}},n.prototype.pruneExceptNewestZ=function(){if(this.getCount()!==0){var t=this.peekFirstKey(),r=Bz(t),i=r[0];this.forEach((function(o){o.tileCoord[0]!==i&&(this.remove(Oz(o.tileCoord)),o.release())}).bind(this))}},n}(Lae);const y7=jae,bM={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};function Kz(e){var n=e.getDefaultTileGrid();return n||(n=Gae(e),e.setDefaultTileGrid(n)),n}function Wae(e,n,t){var r=n[0],i=e.getTileCoordCenter(n),o=m5(t);if($_(o,i))return n;var s=os(o),a=Math.ceil((o[0]-i[0])/s);return i[0]+=s*a,e.getTileCoordForCoordAndZ(i,r)}function Nae(e,n,t,r){var i=r!==void 0?r:"top-left",o=Pz(e,n,t);return new X_({extent:e,origin:Dee(e,i),resolutions:o,tileSize:t})}function v7(e){var n=e||{},t=n.extent||Fs("EPSG:3857").getExtent(),r={extent:t,minZoom:n.minZoom,tileSize:n.tileSize,resolutions:Pz(t,n.maxZoom,n.tileSize,n.maxResolution)};return new X_(r)}function Pz(e,n,t,r){for(var i=n!==void 0?n:XL,o=$A(e),s=os(e),a=pA(t!==void 0?t:u7),f=r>0?r:Math.max(s/a[0],o/a[1]),g=i+1,x=new Array(g),k=0;ki.highWaterMark&&(i.highWaterMark=t)},n.prototype.useTile=function(t,r,i,o){},n}(bz),$ae=function(e){Fz(n,e);function n(t,r){var i=e.call(this,t)||this;return i.tile=r,i}return n}(Ep);const Yae=Qae;function qae(e,n){var t=/\{z\}/g,r=/\{x\}/g,i=/\{y\}/g,o=/\{-y\}/g;return function(s,a,f){if(s)return e.replace(t,s[0].toString()).replace(r,s[1].toString()).replace(i,s[2].toString()).replace(o,function(){var g=s[0],x=n.getFullTileRange(g);ao(x,55);var k=x.getHeight()-s[2]-1;return k.toString()})}}function Dz(e,n){for(var t=e.length,r=new Array(t),i=0;i=200&&r.status<300){var i=void 0;try{i=JSON.parse(r.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()},n.prototype.onXHRError_=function(t){this.handleTileJSONError()},n.prototype.getTileJSON=function(){return this.tileJSON_},n.prototype.handleTileJSONResponse=function(t){var r=Fs("EPSG:4326"),i=this.getProjection(),o;if(t.bounds!==void 0){var s=u5(r,i);o=Lee(t.bounds,s)}var a=m5(i),f=t.minzoom||0,g=t.maxzoom||22,x=v7({extent:a,maxZoom:g,minZoom:f,tileSize:this.tileSize_});if(this.tileGrid=x,this.tileUrlFunction=Dz(t.tiles,x),t.attribution!==void 0&&!this.getAttributions()){var k=o!==void 0?o:a;this.setAttributions(function(B){return il(k,B.extent)?[t.attribution]:null})}this.tileJSON_=t,this.setState("ready")},n.prototype.handleTileJSONError=function(){this.setState("error")},n}(nse);const Lz=ose,fm={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var ase=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),sse=function(e){ase(n,e);function n(t){var r=this,i=t||{},o=al({},i);return delete o.preload,delete o.useInterimTilesOnError,r=e.call(this,o)||this,r.on,r.once,r.un,r.setPreload(i.preload!==void 0?i.preload:0),r.setUseInterimTilesOnError(i.useInterimTilesOnError!==void 0?i.useInterimTilesOnError:!0),r}return n.prototype.getPreload=function(){return this.get(fm.PRELOAD)},n.prototype.setPreload=function(t){this.set(fm.PRELOAD,t)},n.prototype.getUseInterimTilesOnError=function(){return this.get(fm.USE_INTERIM_TILES_ON_ERROR)},n.prototype.setUseInterimTilesOnError=function(t){this.set(fm.USE_INTERIM_TILES_ON_ERROR,t)},n.prototype.getData=function(t){return e.prototype.getData.call(this,t)},n}(d5);const lse=sse;var use=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Ase=function(e){use(n,e);function n(t){var r=e.call(this,t)||this;return r.extentChanged=!0,r.renderedExtent_=null,r.renderedPixelRatio,r.renderedProjection=null,r.renderedRevision,r.renderedTiles=[],r.newTiles_=!1,r.tmpExtent=Ed(),r.tmpTileRange_=new Ez(0,0,0,0),r}return n.prototype.isDrawableTile=function(t){var r=this.getLayer(),i=t.getState(),o=r.getUseInterimTilesOnError();return i==mr.LOADED||i==mr.EMPTY||i==mr.ERROR&&!o},n.prototype.getTile=function(t,r,i,o){var s=o.pixelRatio,a=o.viewState.projection,f=this.getLayer(),g=f.getSource(),x=g.getTile(t,r,i,s,a);return x.getState()==mr.ERROR&&(f.getUseInterimTilesOnError()?f.getPreload()>0&&(this.newTiles_=!0):x.setState(mr.LOADED)),this.isDrawableTile(x)||(x=x.getInterimTile()),x},n.prototype.getData=function(t){var r=this.frameState;if(!r)return null;var i=this.getLayer(),o=rl(r.pixelToCoordinateTransform,t.slice()),s=i.getExtent();if(s&&!$_(s,o))return null;for(var a=r.pixelRatio,f=r.viewState.projection,g=r.viewState,x=i.getRenderSource(),k=x.getTileGridForProjection(g.projection),B=x.getTilePixelRatio(r.pixelRatio),P=k.getZForResolution(g.resolution);P>=k.getMinZoom();--P){var R=k.getTileCoordForCoordAndZ(o,P),H=x.getTile(P,R[1],R[2],a,f);if(!(H instanceof kz||H instanceof Tz))return null;if(H.getState()===mr.LOADED){var W=k.getOrigin(P),$=pA(k.getTileSize(P)),q=k.getResolution(P),oe=Math.floor(B*((o[0]-W[0])/q-R[1]*$[0])),ne=Math.floor(B*((W[1]-o[1])/q-R[2]*$[1])),ce=Math.round(B*x.getGutterForProjection(g.projection));return this.getImageData(H.getImage(),oe+ce,ne+ce)}}return null},n.prototype.loadedTileCallback=function(t,r,i){return this.isDrawableTile(i)?e.prototype.loadedTileCallback.call(this,t,r,i):!1},n.prototype.prepareFrame=function(t){return!!this.getLayer().getSource()},n.prototype.renderFrame=function(t,r){var i=t.layerStatesArray[t.layerIndex],o=t.viewState,s=o.projection,a=o.resolution,f=o.center,g=o.rotation,x=t.pixelRatio,k=this.getLayer(),B=k.getSource(),P=B.getRevision(),R=B.getTileGridForProjection(s),H=R.getZForResolution(a,B.zDirection),W=R.getResolution(H),$=t.extent,q=t.viewState.resolution,oe=B.getTilePixelRatio(x),ne=Math.round(os($)/q*x),ce=Math.round($A($)/q*x),ae=i.extent&&j0(i.extent);ae&&($=X0($,j0(i.extent)));var ue=W*ne/2/oe,ye=W*ce/2/oe,Re=[f[0]-ue,f[1]-ye,f[0]+ue,f[1]+ye],Ne=R.getTileRangeForExtentAndZ($,H),rt={};rt[H]={};var ct=this.createLoadedTileFinder(B,s,rt),Fe=this.tmpExtent,He=this.tmpTileRange_;this.newTiles_=!1;for(var Ce=g?j6(o.center,q,g,t.size):void 0,jt=Ne.minX;jt<=Ne.maxX;++jt)for(var Ft=Ne.minY;Ft<=Ne.maxY;++Ft)if(!(g&&!R.tileCoordIntersectsViewport([H,jt,Ft],Ce))){var Jt=this.getTile(H,jt,Ft,t);if(this.isDrawableTile(Jt)){var Nt=$i(this);if(Jt.getState()==mr.LOADED){rt[H][Jt.tileCoord.toString()]=Jt;var Ve=Jt.inTransition(Nt);Ve&&i.opacity!==1&&(Jt.endTransition(Nt),Ve=!1),!this.newTiles_&&(Ve||this.renderedTiles.indexOf(Jt)===-1)&&(this.newTiles_=!0)}if(Jt.getAlpha(Nt,t.time)===1)continue}var nt=R.getTileCoordChildTileRange(Jt.tileCoord,He,Fe),Je=!1;nt&&(Je=ct(H+1,nt)),Je||R.forEachTileCoordParentTileRange(Jt.tileCoord,ct,He,Fe)}var Vt=W/a*x/oe;df(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/x,1/x,g,-ne/2,-ce/2);var pt=fL(this.pixelTransform);this.useContainer(r,pt,this.getBackground(t));var dt=this.context,kt=dt.canvas;zB(this.inversePixelTransform,this.pixelTransform),df(this.tempTransform,ne/2,ce/2,Vt,Vt,0,-ne/2,-ce/2),kt.width!=ne||kt.height!=ce?(kt.width=ne,kt.height=ce):this.containerReused||dt.clearRect(0,0,ne,ce),ae&&this.clipUnrotated(dt,t,ae),B.getInterpolate()||al(dt,oE),this.preRender(dt,t),this.renderedTiles.length=0;var Dt=Object.keys(rt).map(Number);Dt.sort(c1);var Se,de,xe;i.opacity===1&&(!this.containerReused||B.getOpaque(t.viewState.projection))?Dt=Dt.reverse():(Se=[],de=[]);for(var Pe=Dt.length-1;Pe>=0;--Pe){var Ze=Dt[Pe],Xe=B.getTilePixelSize(Ze,x,s),wt=R.getResolution(Ze),Kt=wt/W,Pt=Xe[0]*Kt*Vt,zn=Xe[1]*Kt*Vt,mt=R.getTileCoordForCoordAndZ(Lm(Re),Ze),pn=R.getTileCoordExtent(mt),ir=rl(this.tempTransform,[oe*(pn[0]-Re[0])/W,oe*(Re[3]-pn[3])/W]),Sn=oe*B.getGutterForProjection(s),nr=rt[Ze];for(var Mr in nr){var Jt=nr[Mr],Qr=Jt.tileCoord,_r=mt[1]-Qr[1],vi=Math.round(ir[0]-(_r-1)*Pt),we=mt[2]-Qr[2],V=Math.round(ir[1]-(we-1)*zn),jt=Math.round(ir[0]-_r*Pt),Ft=Math.round(ir[1]-we*zn),X=vi-jt,me=V-Ft,At=H===Ze,Ve=At&&Jt.getAlpha($i(this),t.time)!==1,bt=!1;if(!Ve)if(Se){xe=[jt,Ft,jt+X,Ft,jt+X,Ft+me,jt,Ft+me];for(var Et=0,sr=Se.length;Et0){r([]);return}var q=k.getTileCoordExtent(R.wrappedTileCoord),oe=Lm(q),ne=[(B[0]-oe[0])/x,(oe[1]-B[1])/x],ce=R.getSourceTiles().reduce(function(Ne,rt){return Ne.concat(rt.getFeatures())},[]),ae=R.hitDetectionImageData[s];if(!ae&&!this.animatingOrInteracting_){var ue=pA(k.getTileSize(k.getZForResolution(x,a.zDirection))),ye=this.renderedRotation_,Re=[this.getRenderTransform(k.getTileCoordCenter(R.wrappedTileCoord),x,0,Dc,ue[0]*Dc,ue[1]*Dc,0)];ae=mz(ue,Re,ce,o.getStyleFunction(),k.getTileCoordExtent(R.wrappedTileCoord),R.getReplayState(o).renderedResolution,ye),R.hitDetectionImageData[s]=ae}r(gz(ne,ce,ae))}).bind(this))},n.prototype.handleFontsChanged=function(){var t=this.getLayer();t.getVisible()&&this.renderedLayerRevision_!==void 0&&t.changed()},n.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},n.prototype.renderDeclutter=function(t){var r=this.context,i=r.globalAlpha;r.globalAlpha=this.getLayer().getOpacity();for(var o=t.viewHints,s=!(o[Gs.ANIMATING]||o[Gs.INTERACTING]),a=this.renderedTiles,f=0,g=a.length;f=0;--B)k[B].execute(this.context,1,this.getTileRenderTransform(x,t),t.viewState.rotation,s,void 0,t.declutterTree)}r.globalAlpha=i},n.prototype.getTileRenderTransform=function(t,r){var i=r.pixelRatio,o=r.viewState,s=o.center,a=o.resolution,f=o.rotation,g=r.size,x=Math.round(g[0]*i),k=Math.round(g[1]*i),B=this.getLayer().getSource(),P=B.getTileGridForProjection(r.viewState.projection),R=t.tileCoord,H=P.getTileCoordExtent(t.wrappedTileCoord),W=P.getTileCoordExtent(R,this.tmpExtent)[0]-H[0],$=LB(sM(this.inversePixelTransform.slice(),1/i,1/i),this.getRenderTransform(s,a,f,i,x,k,W));return $},n.prototype.renderFrame=function(t,r){var i=t.viewHints,o=!(i[Gs.ANIMATING]||i[Gs.INTERACTING]);e.prototype.renderFrame.call(this,t,r),this.renderedPixelToCoordinateTransform_=t.pixelToCoordinateTransform.slice(),this.renderedRotation_=t.viewState.rotation;var s=this.getLayer(),a=s.getRenderMode(),f=this.context,g=f.globalAlpha;f.globalAlpha=s.getOpacity();for(var x=pse[a],k=t.viewState,B=k.rotation,P=s.getSource(),R=P.getTileGridForProjection(k.projection),H=R.getZForResolution(k.resolution,P.zDirection),W=this.renderedTiles,$=[],q=[],oe=!0,ne=W.length-1;ne>=0;--ne){var ce=W[ne];oe=oe&&!ce.getReplayState(s).dirty;var ae=ce.executorGroups[$i(s)].filter(function(Ft){return Ft.hasExecutors(x)});if(ae.length!==0){var ue=this.getTileRenderTransform(ce,t),ye=ce.tileCoord[0],Re=!1,Ne=ae[0].getClipCoords(ue);if(Ne){for(var rt=0,ct=$.length;rt1?B[B.length-2].toLowerCase():"";if(P==R||P==R.replace("-","")||H+"-"+P==R){i=a?i:H9[R],B.pop(),H&&R.startsWith(H)&&B.pop();break}}!a&&typeof P=="number"&&(i=P);var W=B.join(Gv).replace("Klokantech Noto Sans","Noto Sans");W.indexOf(Gv)!==-1&&(W='"'+W+'"'),s.push(W)}r=X9[e]=[o,i,s]}return r[0]+Gv+r[1]+Gv+n+"px"+(t?"/"+t:"")+Gv+r[2]};const aE=ga(Ose);var Bse=8,kse={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},terrain:{type:"terrain",doc:"A global modifier that elevates layers and markers based on a DEM data source."},fog:{type:"fog",doc:"A global effect that fades layers and markers based on their distance to the camera. The fog can be used to approximate the effect of atmosphere on distant objects and enhance the depth perception of the map when used with terrain or 3D features. Note: fog is renamed to atmosphere in the Android and iOS SDKs and planned to be changed in GL-JS v.3.0.0."},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"mapbox-streets":{type:"vector",url:"mapbox://mapbox.mapbox-streets-v6"}}},sprite:{type:"string",doc:"A base URL for retrieving the sprite image and metadata. The extensions `.png`, `.json` and scale factor `@2x.png` will be automatically appended. This property is required if any layer uses the `background-pattern`, `fill-pattern`, `line-pattern`, `fill-extrusion-pattern`, or `icon-image` properties. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://sprites/mapbox/bright-v8"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},projection:{type:"projection",doc:"The projection the map should be rendered in. Supported projections are Mercator, Globe, Albers, Equal Earth, Equirectangular (WGS84), Lambert conformal conic, Natural Earth, and Winkel Tripel. Terrain, sky and fog are supported by only Mercator and globe. CustomLayerInterface is not supported outside of Mercator.",example:{name:"albers",center:[-154,50],parallels:[55,65]}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"water",source:"mapbox-streets","source-layer":"water",type:"fill",paint:{"fill-color":"#00ffff"}}]}},Ise={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},Tse=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],Kse={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`. If specified as a string for a vector tile source, the same property is used across all its source layers. If specified as an object only specified source layers will have id overriden, others will fallback to original feature id"},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Pse={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Fse={type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:`, `https:`, and `mapbox://`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by Mapbox GL."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default"},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Dse={type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},filter:{type:"*",doc:"An expression for filtering features prior to processing them for rendering."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://www.mapbox.com/mapbox-gl-js/api/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15."},clusterMinPoints:{type:"number",doc:"Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to `2`."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`."}},Use={type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},Rse={type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},Lse={id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. Currently, the implementation only supports Mapbox Terrain RGB and Mapzen Terrarium tiles.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},sky:{doc:"A spherical dome around the map that is always rendered behind all other layers.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'mapbox:'."},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:'An expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `["feature-state", ...]` expression is not supported in filter expressions. The `["pitch"]` and `["distance-from-center"]` expressions are supported only for filter expressions on the symbol layer.'},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},zse=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],jse={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Wse={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},"property-type":"constant"}},Nse={"fill-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Gse={"circle-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"},"data-driven styling":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Qse={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},$se={"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Yse={"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like Mapbox GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.","sdk-support":{"basic functionality":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"},"data-driven styling":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},"viewport-y":{doc:"Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},source:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data."}},default:"auto",doc:"Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbol-sort-key`.","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"stretchable icons":{js:"1.6.0",android:"9.2.0",ios:"5.8.0",macos:"0.15.0"}},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",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the icon bounding box used for detecting symbol collisions.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options. SDF images are not supported in formatted text and will be ignored.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field",{"symbol-placement":["point"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0",android:"10.0.0",ios:"10.0.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{doc:"The text is aligned towards the anchor position."},left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},auto:{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,doc:"Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which defaults to using the two-dimensional `text-offset` if present.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"},"data-driven styling":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},requires:["text-field",{"symbol-placement":["point"]}],doc:"To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the `text-radial-offset` or the two-dimensional `text-offset`.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field",{"!":"text-variable-anchor"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{doc:"If a text's language supports horizontal writing mode, symbols would be laid out horizontally."},vertical:{doc:"If a text's language supports vertical writing mode, symbols would be laid out vertically."}},doc:"The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. For symbol with point placement, the order of elements in an array define priority order for the placement of an orientation variant. For symbol with line placement, the default text writing mode is either ['horizontal', 'vertical'] or ['vertical', 'horizontal'], the order doesn't affect the placement.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"1.3.0",android:"8.3.0",ios:"5.3.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},qse={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Vse={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},Hse={type:"array",value:"*",doc:"A filter selects specific features from a layer."},Zse={type:"boolean",doc:'Expression which determines whether or not to display a symbol. Symbols support dynamic filtering, meaning this expression can use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature","pitch","distance-from-center"]}},Xse={type:"boolean",doc:'Expression which determines whether or not to display a polygon. Fill layer does NOT support dynamic filtering, meaning this expression can NOT use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},Jse={type:"boolean",doc:'Expression which determines whether or not to display a Polygon or LineString. Line layer does NOT support dynamic filtering, meaning this expression can NOT use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},ele={type:"boolean",doc:'Expression which determines whether or not to display a circle. Circle layer does NOT support dynamic filtering, meaning this expression can NOT use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},tle={type:"boolean",doc:'Expression used to determine whether a point is being displayed or not. Heatmap layer does NOT support dynamic filtering, meaning this expression can NOT use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},nle={type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'},within:{doc:'`["within", object]` feature geometry is within object geometry'}},doc:"The filter operator."},rle={type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},ile={type:"array",minimum:0,maximum:24,value:["number","color"],length:2,doc:"Zoom level and value pair."},ole={type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},ale={doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},in:{doc:"Determines whether an item exists in an array or a substring exists in a string. In the specific case when the second and third arguments are string literals, you must wrap at least one of them in a [`literal`](#types-literal) expression to hint correct interpretation to the [type system](#type-system).",group:"Lookup","sdk-support":{"basic functionality":{js:"1.6.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"index-of":{doc:"Returns the first position at which an item can be found in an array or a substring can be found in a string, or `-1` if the input cannot be found. Accepts an optional index from where to begin the search.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0",android:"10.0.0",ios:"10.0.0"}}},slice:{doc:"Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0",android:"10.0.0",ios:"10.0.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output for which the label value matches the input value, or the fallback value if no match is found. The input can be any expression (for example, `["get", "building_type"]`). Each label must be unique, and must be either:\n - a single literal value; or\n - an array of literal values, the values of which must be all strings or all numbers (for example `[100, 101]` or `["c", "b"]`).\n\nThe input matches if any of the values in the array matches using strict equality, similar to the `"in"` operator.\nIf the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first valid value is obtained. Invalid values are `null` and [`'image'`](#types-image) expressions that are unavailable in the style. If all values are invalid, `coalesce` returns the first value listed.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array`, or `color`.\n\nInterpolation types:\n- `["linear"]`: Interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: Interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: Interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:'Returns a `formatted` string for displaying mixed-format text in the `text-field` property. The input may contain a string literal or expression, including an [`\'image\'`](#types-image) expression. Strings may be followed by a style override object that supports the following properties:\n- `"text-font"`: Overrides the font stack specified by the root layout property.\n- `"text-color"`: Overrides the color specified by the root paint property.\n- `"font-scale"`: Applies a scaling factor on `text-size` as specified by the root layout property.',group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-font":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"font-scale":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-color":{js:"1.3.0",android:"7.3.0",ios:"4.10.0",macos:"0.14.0"},image:{js:"1.6.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},image:{doc:"Returns a [`ResolvedImage`](/mapbox-gl-js/style-spec/types/#resolvedimage) for use in [`icon-image`](/mapbox-gl-js/style-spec/layers/#layout-symbol-icon-image), `*-pattern` entries, and as a section in the [`'format'`](#types-format) expression. A [`'coalesce'`](#coalesce) expression containing `image` expressions will evaluate to the first listed image that is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `'image'` argument.",group:"Types","sdk-support":{"basic functionality":{js:"1.4.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `unit` argument specifies a [simple ECMAScript unit](https://tc39.es/proposal-unified-intl-numberformat/section6/locales-currencies-tz_proposed_out.html#sec-issanctionedsimpleunitidentifier) to use for unit-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0",android:"8.4.0",ios:"5.4.0",macos:"0.15.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a [`boolean`](#types-boolean), the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a [`color`](#color), it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. If the input is an [`\'image\'`](#types-image) expression, `\'to-string\'` returns the image name. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns `null` if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Returns the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Returns the feature properties object. Note that in some cases, it may be more efficient to use `["get", "property_name"]` directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns `null` if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. Features are identified by their `id` attribute, which must be an integer or a string that can be cast to an integer. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0",android:"10.0.0",ios:"10.0.0"}}},"geometry-type":{doc:"Returns the feature's geometry type: `Point`, `LineString` or `Polygon`. `Multi*` feature types return the singular forms.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Returns the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Returns the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Camera","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pitch:{doc:'Returns the current pitch in degrees. `["pitch"]` may only be used in the `filter` expression for a `symbol` layer.',group:"Camera","sdk-support":{"basic functionality":{js:"2.6.0",android:"10.9.0",ios:"10.9.0"}}},"distance-from-center":{doc:'Returns the distance of a `symbol` instance from the center of the map. The distance is measured in pixels divided by the height of the map container. It measures 0 at the center, decreases towards the camera and increase away from the camera. For example, if the height of the map is 1000px, a value of -1 means 1000px away from the center towards the camera, and a value of 1 means a distance of 1000px away from the camera from the center. `["distance-from-center"]` may only be used in the `filter` expression for a `symbol` layer.',group:"Camera","sdk-support":{"basic functionality":{js:"2.6.0",android:"10.9.0",ios:"10.9.0"}}},"heatmap-density":{doc:"Returns the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Returns the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},"sky-radial-progress":{doc:"Returns the distance of a point on the sky from the sun position. Returns 0 at sun position and 1 when the distance reaches `sky-gradient-radius`. Can only be used in the `sky-gradient` property.",group:"sky","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}}},accumulated:{doc:"Returns the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0",android:"8.4.0",ios:"5.5.0",macos:"0.15.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},distance:{doc:"Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.",group:"Math","sdk-support":{"basic functionality":{android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},within:{doc:"Returns `true` if the evaluated feature is fully contained inside a boundary of the input geometry, `false` otherwise. The input value can be a valid GeoJSON of type `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Supported features for evaluation:\n- `Point`: Returns `false` if a point is on the boundary or falls outside the boundary.\n- `LineString`: Returns `false` if any part of a line falls outside the boundary, the line intersects the boundary, or a line's endpoint is on the boundary.",group:"Decision","sdk-support":{"basic functionality":{js:"1.9.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in Mapbox GL JS).",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.6.0",ios:"4.1.0",macos:"0.8.0"}}},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},sle={range:{type:"array",default:[.5,10],minimum:-20,maximum:20,length:2,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"The start and end distance range in which fog fades from fully transparent to fully opaque. The distance to the point at the center of the map is defined as zero, so that negative range values are closer to the camera, and positive values are farther away.",example:[.5,10],"sdk-support":{"basic functionality":{js:"2.3.0",android:"10.6.0",ios:"10.6.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The color of the atmosphere region immediately below the horizon and within the `range` and above the horizon and within `horizon-blend`. Using opacity is recommended only for smoothly transitioning fog on/off as anything less than 100% opacity results in more tiles loaded and drawn.","sdk-support":{"basic functionality":{js:"2.3.0",android:"10.6.0",ios:"10.6.0"}}},"high-color":{type:"color","property-type":"data-constant",default:"#245cdf",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The color of the atmosphere region above the horizon, `high-color` extends further above the horizon than the `color` property and its spread can be controlled with `horizon-blend`. The opacity can be set to `0` to remove the high atmosphere color contribution.","sdk-support":{"basic functionality":{js:"2.9.0",android:"10.6.0",ios:"10.6.0"}}},"space-color":{type:"color","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The color of the region above the horizon and after the end of the `horizon-blend` contribution. The opacity can be set to `0` to have a transparent background.","sdk-support":{"basic functionality":{js:"2.9.0",android:"10.6.0",ios:"10.6.0"}}},"horizon-blend":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],4,.2,7,.1],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Horizon blend applies a smooth fade from the color of the atmosphere to the color of space. A value of zero leaves a sharp transition from atmosphere to space. Increasing the value blends the color of atmosphere into increasingly high angles of the sky.","sdk-support":{"basic functionality":{js:"2.3.0",android:"10.6.0",ios:"10.6.0"}}},"star-intensity":{type:"number","property-type":"data-constant",default:["interpolate",["linear"],["zoom"],5,.35,6,0],minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"A value controlling the star intensity where `0` will show no stars and `1` will show stars at their maximum intensity.","sdk-support":{"basic functionality":{js:"2.9.0",android:"10.6.0",ios:"10.6.0"}}}},lle={anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},ule={name:{type:"enum",values:{albers:{doc:"An Albers equal-area projection centered on the continental United States. You can configure the projection for a different region by setting `center` and `parallels` properties. You may want to set max bounds to constrain the map to the relevant region."},equalEarth:{doc:"An Equal Earth projection."},equirectangular:{doc:"An Equirectangular projection. This projection is very similar to the Plate Carrée projection."},lambertConformalConic:{doc:"A Lambert conformal conic projection. You can configure the projection for a region by setting `center` and `parallels` properties. You may want to set max bounds to constrain the map to the relevant region."},mercator:{doc:"The Mercator projection is the default projection."},naturalEarth:{doc:"A Natural Earth projection."},winkelTripel:{doc:"A Winkel Tripel projection."},globe:{doc:"A globe projection."}},default:"mercator",doc:"The name of the projection to be used for rendering the map.",required:!0,"sdk-support":{"basic functionality":{js:"2.6.0"}}},center:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-180,-90],maximum:[180,90],transition:!1,doc:"The reference longitude and latitude of the projection. `center` takes the form of [lng, lat]. This property is only configurable for conic projections (Albers and Lambert Conformal Conic). All other projections are centered on [0, 0].",example:[-96,37.5],requires:[{name:["albers","lambertConformalConic"]}],"sdk-support":{"basic functionality":{js:"2.6.0"}}},parallels:{type:"array",length:2,value:"number","property-type":"data-constant",minimum:[-90,-90],maximum:[90,90],transition:!1,doc:"The standard parallels of the projection, denoting the desired latitude range with minimal distortion. `parallels` takes the form of [lat0, lat1]. This property is only configurable for conic projections (Albers and Lambert Conformal Conic).",example:[29.5,45.5],requires:[{name:["albers","lambertConformalConic"]}],"sdk-support":{"basic functionality":{js:"2.6.0"}}}},Ale={source:{type:"string",doc:"Name of a source of `raster_dem` type to be used for terrain elevation.",required:!0,"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}}},exaggeration:{type:"number","property-type":"data-constant",default:1,minimum:0,maximum:1e3,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Exaggerates the elevation of the terrain by multiplying the data from the DEM with this value.",requires:["source"],"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}}}},cle=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],dle={"fill-antialias":{type:"boolean",default:!0,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"}},hle={"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!1,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.3.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{type:"array",value:"number",doc:"The line part between [trim-start, trim-end] will be marked as transparent to make a route vanishing effect. The line trim-off offset is based on the whole line range [0.0, 1.0].",length:2,default:[0,0],minimum:[0,0],maximum:[1,1],transition:!1,requires:[{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"2.9.0",android:"10.5.0",ios:"10.5.0",macos:"10.5.0"}},"property-type":"constant"}},fle={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},ple={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed. `queryRenderedFeatures` on heatmap layers will return points within this radius.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.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"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},mle={"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with [SDF icons](/help/troubleshooting/using-recolorable-images-in-mapbox-maps/).",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the icon's halo. Icon halos can only be used with [SDF icons](/help/troubleshooting/using-recolorable-images-in-mapbox-maps/).",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},gle={"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},yle={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},vle={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Cle={"sky-type":{type:"enum",values:{gradient:{doc:"Renders the sky with a gradient that can be configured with `sky-gradient-radius` and `sky-gradient`."},atmosphere:{doc:"Renders the sky with a simulated atmospheric scattering algorithm, the sun direction can be attached to the light position or explicitly set through `sky-atmosphere-sun`."}},default:"atmosphere",doc:"The type of the sky","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{type:"array",value:"number",length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the sun center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the sun relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the sun, where 0° is directly above, at zenith, and 90° at the horizon. When this property is ommitted, the sun center is directly inherited from the light position.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},requires:[{"sky-type":"atmosphere"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{type:"number",requires:[{"sky-type":"atmosphere"}],default:10,minimum:0,maximum:100,transition:!1,doc:"Intensity of the sun as a light source in the atmosphere (on a scale from 0 to a 100). Setting higher values will brighten up the sky.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},"property-type":"data-constant"},"sky-gradient-center":{type:"array",requires:[{"sky-type":"gradient"}],value:"number",default:[0,0],length:2,units:"degrees",minimum:[0,0],maximum:[360,180],transition:!1,doc:"Position of the gradient center [a azimuthal angle, p polar angle]. The azimuthal angle indicates the position of the gradient center relative to 0° north, where degrees proceed clockwise. The polar angle indicates the height of the gradient center, where 0° is directly above, at zenith, and 90° at the horizon.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{type:"number",requires:[{"sky-type":"gradient"}],default:90,minimum:0,maximum:180,transition:!1,doc:"The angular distance (measured in degrees) from `sky-gradient-center` up to which the gradient extends. A value of 180 causes the gradient to wrap around to the opposite direction from `sky-gradient-center`.","sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"sky-gradient":{type:"color",default:["interpolate",["linear"],["sky-radial-progress"],.8,"#87ceeb",1,"white"],doc:"Defines a radial color gradient with which to color the sky. The color values can be interpolated with an expression using `sky-radial-progress`. The range [0, 1] for the interpolant covers a radial distance (in degrees) of [0, `sky-gradient-radius`] centered at the position specified by `sky-gradient-center`.",transition:!1,requires:[{"sky-type":"gradient"}],"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{type:"color",default:"white",doc:"A color applied to the atmosphere sun halo. The alpha channel describes how strongly the sun halo is represented in an atmosphere sky layer.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},"property-type":"data-constant"},"sky-atmosphere-color":{type:"color",default:"white",doc:"A color used to tweak the main atmospheric scattering coefficients. Using white applies the default coefficients giving the natural blue color to the atmosphere. This color affects how heavily the corresponding wavelength is represented during scattering. The alpha channel describes the density of the atmosphere, with 1 maximum density and 0 no density.",transition:!1,requires:[{"sky-type":"atmosphere"}],"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},"property-type":"data-constant"},"sky-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire sky layer.",transition:!0,"sdk-support":{"basic functionality":{js:"2.0.0",ios:"10.0.0",android:"10.0.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},_le={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},ble={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},Nz={$version:Bse,$root:kse,sources:Ise,source:Tse,source_vector:Kse,source_raster:Pse,source_raster_dem:Fse,source_geojson:Dse,source_video:Use,source_image:Rse,layer:Lse,layout:zse,layout_background:jse,layout_sky:Wse,layout_fill:Nse,layout_circle:Gse,layout_heatmap:Qse,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"},"fill-extrusion-edge-radius":{type:"number",private:!0,default:0,minimum:0,maximum:1,doc:"Radius of a fill extrusion edge in meters. If not zero, rounds extrusion edges for a smoother appearance.","sdk-support":{"basic functionality":{js:"v2.10.0",android:"10.7.0",ios:"10.7.0"}},"property-type":"constant"}},layout_line:$se,layout_symbol:Yse,layout_raster:qse,layout_hillshade:Vse,filter:Hse,filter_symbol:Zse,filter_fill:Xse,filter_line:Jse,filter_circle:ele,"filter_fill-extrusion":{type:"boolean",doc:'Expression which determines whether or not to display a Polygon. Fill-extrusion layer does NOT support dynamic filtering, meaning this expression can NOT use the `["pitch"]` and `["distance-from-center"]` expressions to reference the current state of the view.',default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}},filter_heatmap:tle,filter_operator:nle,geometry_type:rle,function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:`A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances: * In categorical functions, when the feature value does not match any of the stop domain values. * In property and zoom-and-property functions, when a feature does not contain a value for the specified property. * In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color). * In interval or exponential property and zoom-and-property functions, when the feature value is not numeric. If no default is provided, the style property's default is used in these circumstances.`}},function_stop:ile,expression:ole,expression_name:ale,fog:sle,light:lle,projection:ule,terrain:Ale,paint:cle,paint_fill:dle,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",android:"7.0.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.","sdk-support":{"basic functionality":{js:"2.10.0",android:"10.7.0",ios:"10.7.0"}}},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the most plausible results for buildings.",requires:["fill-extrusion-edge-radius"],"sdk-support":{"basic functionality":{js:"2.10.0",android:"10.7.0",ios:"10.7.0"}}}},paint_line:hle,paint_circle:fle,paint_heatmap:ple,paint_symbol:mle,paint_raster:gle,paint_hillshade:yle,paint_background:vle,paint_sky:Cle,transition:_le,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:ble},xM=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{},sE={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(e,n){(function(t){var r=n&&!n.nodeType&&n,i=e&&!e.nodeType&&e,o=typeof xM=="object"&&xM;(o.global===o||o.window===o||o.self===o)&&(t=o);var s,a=2147483647,f=36,g=1,x=26,k=38,B=700,P=72,R=128,H="-",W=/^xn--/,$=/[^\x20-\x7E]/,q=/[\x2E\u3002\uFF0E\uFF61]/g,oe={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ne=f-g,ce=Math.floor,ae=String.fromCharCode,ue;function ye(Ve){throw RangeError(oe[Ve])}function Re(Ve,nt){for(var Je=Ve.length,Vt=[];Je--;)Vt[Je]=nt(Ve[Je]);return Vt}function Ne(Ve,nt){var Je=Ve.split("@"),Vt="";Je.length>1&&(Vt=Je[0]+"@",Ve=Je[1]),Ve=Ve.replace(q,".");var pt=Ve.split("."),dt=Re(pt,nt).join(".");return Vt+dt}function rt(Ve){for(var nt=[],Je=0,Vt=Ve.length,pt,dt;Je=55296&&pt<=56319&&Je65535&&(nt-=65536,Je+=ae(nt>>>10&1023|55296),nt=56320|nt&1023),Je+=ae(nt),Je}).join("")}function Fe(Ve){return Ve-48<10?Ve-22:Ve-65<26?Ve-65:Ve-97<26?Ve-97:f}function He(Ve,nt){return Ve+22+75*(Ve<26)-((nt!=0)<<5)}function Ce(Ve,nt,Je){var Vt=0;for(Ve=Je?ce(Ve/B):Ve>>1,Ve+=ce(Ve/nt);Ve>ne*x>>1;Vt+=f)Ve=ce(Ve/ne);return ce(Vt+(ne+1)*Ve/(Ve+k))}function jt(Ve){var nt=[],Je=Ve.length,Vt,pt=0,dt=R,kt=P,Dt,Se,de,xe,Pe,Ze,Xe,wt,Kt;for(Dt=Ve.lastIndexOf(H),Dt<0&&(Dt=0),Se=0;Se=128&&ye("not-basic"),nt.push(Ve.charCodeAt(Se));for(de=Dt>0?Dt+1:0;de=Je&&ye("invalid-input"),Xe=Fe(Ve.charCodeAt(de++)),(Xe>=f||Xe>ce((a-pt)/Pe))&&ye("overflow"),pt+=Xe*Pe,wt=Ze<=kt?g:Ze>=kt+x?x:Ze-kt,!(Xece(a/Kt)&&ye("overflow"),Pe*=Kt;Vt=nt.length+1,kt=Ce(pt-xe,Vt,xe==0),ce(pt/Vt)>a-dt&&ye("overflow"),dt+=ce(pt/Vt),pt%=Vt,nt.splice(pt++,0,dt)}return ct(nt)}function Ft(Ve){var nt,Je,Vt,pt,dt,kt,Dt,Se,de,xe,Pe,Ze=[],Xe,wt,Kt,Pt;for(Ve=rt(Ve),Xe=Ve.length,nt=R,Je=0,dt=P,kt=0;kt=nt&&Pece((a-Je)/wt)&&ye("overflow"),Je+=(Dt-nt)*wt,nt=Dt,kt=0;kta&&ye("overflow"),Pe==nt){for(Se=Je,de=f;xe=de<=dt?g:de>=dt+x?x:de-dt,!(Se0&&a>s&&(a=s);for(var f=0;f=0?(k=g.substr(0,x),B=g.substr(x+1)):(k=g,B=""),P=decodeURIComponent(k),R=decodeURIComponent(B),wle(i,P)?Array.isArray(i[P])?i[P].push(R):i[P]=[i[P],R]:i[P]=R}return i},Qv=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Sle=function(e,n,t,r){return n=n||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(i){var o=encodeURIComponent(Qv(i))+t;return Array.isArray(e[i])?e[i].map(function(s){return o+encodeURIComponent(Qv(s))}).join(n):o+encodeURIComponent(Qv(e[i]))}).join(n):r?encodeURIComponent(Qv(r))+t+encodeURIComponent(Qv(e)):""};v_.decode=v_.parse=Mle;v_.encode=v_.stringify=Sle;var Ele=sE.exports,cp=xle;function xp(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Ole=/^([a-z0-9.+-]+:)/i,Ble=/:[0-9]*$/,kle=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ile=["<",">",'"',"`"," ","\r",` `," "],Tle=["{","}","|","\\","^","`"].concat(Ile),lE=["'"].concat(Tle),J9=["%","/","?",";","#"].concat(lE),eT=["/","?","#"],Kle=255,tT=/^[+a-z0-9A-Z_-]{0,63}$/,Ple=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Fle={javascript:!0,"javascript:":!0},uE={javascript:!0,"javascript:":!0},ry={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},AE=v_;function Dle(e,n,t){if(e&&cp.isObject(e)&&e instanceof xp)return e;var r=new xp;return r.parse(e,n,t),r}xp.prototype.parse=function(e,n,t){if(!cp.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?ce+="x":ce+=ne[ae];if(!ce.match(tT)){var ye=q.slice(0,P),Re=q.slice(P+1),Ne=ne.match(Ple);Ne&&(ye.push(Ne[1]),Re.unshift(Ne[2])),Re.length&&(a="/"+Re.join(".")+a),this.hostname=ye.join(".");break}}}this.hostname.length>Kle?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=Ele.toASCII(this.hostname));var rt=this.port?":"+this.port:"",ct=this.hostname||"";this.host=ct+rt,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Fle[x])for(var P=0,oe=lE.length;P0?t.host.split("@"):!1;ce&&(t.auth=ce.shift(),t.host=t.hostname=ce.shift())}return t.search=e.search,t.query=e.query,(!cp.isNull(t.pathname)||!cp.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!q.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var ae=q.slice(-1)[0],ue=(t.host||e.host||q.length>1)&&(ae==="."||ae==="..")||ae==="",ye=0,Re=q.length;Re>=0;Re--)ae=q[Re],ae==="."?q.splice(Re,1):ae===".."?(q.splice(Re,1),ye++):ye&&(q.splice(Re,1),ye--);if(!W&&!$)for(;ye--;ye)q.unshift("..");W&&q[0]!==""&&(!q[0]||q[0].charAt(0)!=="/")&&q.unshift(""),ue&&q.join("/").substr(-1)!=="/"&&q.push("");var Ne=q[0]===""||q[0]&&q[0].charAt(0)==="/";if(ne){t.hostname=t.host=Ne?"":q.length?q.shift():"";var ce=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;ce&&(t.auth=ce.shift(),t.host=t.hostname=ce.shift())}return W=W||t.host&&q.length,W&&!Ne&&q.unshift(""),q.length?t.pathname=q.join("/"):(t.pathname=null,t.path=null),(!cp.isNull(t.pathname)||!cp.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t};xp.prototype.parseHost=function(){var e=this.host,n=Ble.exec(e);n&&(n=n[0],n!==":"&&(this.port=n.substr(1)),e=e.substr(0,e.length-n.length)),e&&(this.hostname=e)};function Gz(e,...n){for(const t of n)for(const r in t)e[r]=t[r];return e}class Ule extends Error{constructor(n,t){super(t),this.message=t,this.key=n}}var Zh=Ule;class C7{constructor(n,t=[]){this.parent=n,this.bindings={};for(const[r,i]of t)this.bindings[r]=i}concat(n){return new C7(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return this.bindings[n]?!0:this.parent?this.parent.has(n):!1}}var Rle=C7;const g5={kind:"null"},Xn={kind:"number"},oo={kind:"string"},Hi={kind:"boolean"},wp={kind:"color"},iy={kind:"object"},Xi={kind:"value"},Lle={kind:"error"},y5={kind:"collator"},v5={kind:"formatted"},J_={kind:"resolvedImage"};function yd(e,n){return{kind:"array",itemType:e,N:n}}function ps(e){if(e.kind==="array"){const n=ps(e.itemType);return typeof e.N=="number"?`array<${n}, ${e.N}>`:e.itemType.kind==="value"?"array":`array<${n}>`}else return e.kind}const zle=[g5,Xn,oo,Hi,wp,v5,iy,yd(Xi),J_];function C_(e,n){if(n.kind==="error")return null;if(e.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!C_(e.itemType,n.itemType))&&(typeof e.N!="number"||e.N===n.N))return null}else{if(e.kind===n.kind)return null;if(e.kind==="value"){for(const t of zle)if(!C_(t,n))return null}}return`Expected ${ps(e)} but found ${ps(n)} instead.`}function _7(e,n){return n.some(t=>t.kind===e.kind)}function __(e,n){return n.some(t=>t==="null"?e===null:t==="array"?Array.isArray(e):t==="object"?e&&!Array.isArray(e)&&typeof e=="object":t===typeof e)}var jle={},Qz,nT={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function TC(e){return e=Math.round(e),e<0?0:e>255?255:e}function rT(e){return e<0?0:e>1?1:e}function wM(e){return e[e.length-1]==="%"?TC(parseFloat(e)/100*255):TC(parseInt(e))}function Ix(e){return e[e.length-1]==="%"?rT(parseFloat(e)/100):rT(parseFloat(e))}function MM(e,n,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?e+(n-e)*t*6:t*2<1?n:t*3<2?e+(n-e)*(2/3-t)*6:e}function Wle(e){var n=e.replace(/ /g,"").toLowerCase();if(n in nT)return nT[n].slice();if(n[0]==="#"){if(n.length===4){var t=parseInt(n.substr(1),16);return t>=0&&t<=4095?[(t&3840)>>4|(t&3840)>>8,t&240|(t&240)>>4,t&15|(t&15)<<4,1]:null}else if(n.length===7){var t=parseInt(n.substr(1),16);return t>=0&&t<=16777215?[(t&16711680)>>16,(t&65280)>>8,t&255,1]:null}return null}var r=n.indexOf("("),i=n.indexOf(")");if(r!==-1&&i+1===n.length){var o=n.substr(0,r),s=n.substr(r+1,i-(r+1)).split(","),a=1;switch(o){case"rgba":if(s.length!==4)return null;a=Ix(s.pop());case"rgb":return s.length!==3?null:[wM(s[0]),wM(s[1]),wM(s[2]),a];case"hsla":if(s.length!==4)return null;a=Ix(s.pop());case"hsl":if(s.length!==3)return null;var f=(parseFloat(s[0])%360+360)%360/360,g=Ix(s[1]),x=Ix(s[2]),k=x<=.5?x*(g+1):x+g-x*g,B=x*2-k;return[TC(MM(B,k,f+1/3)*255),TC(MM(B,k,f)*255),TC(MM(B,k,f-1/3)*255),a];default:return null}}return null}try{Qz=jle.parseCSSColor=Wle}catch{}class qA{constructor(n,t,r,i=1){this.r=n,this.g=t,this.b=r,this.a=i}static parse(n){if(!n)return;if(n instanceof qA)return n;if(typeof n!="string")return;const t=Qz(n);if(t)return new qA(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}toString(){const[n,t,r,i]=this.toArray();return`rgba(${Math.round(n)},${Math.round(t)},${Math.round(r)},${i})`}toArray(){const{r:n,g:t,b:r,a:i}=this;return i===0?[0,0,0,0]:[n*255/i,t*255/i,r*255/i,i]}toArray01(){const{r:n,g:t,b:r,a:i}=this;return i===0?[0,0,0,0]:[n/i,t/i,r/i,i]}toArray01PremultipliedAlpha(){const{r:n,g:t,b:r,a:i}=this;return[n,t,r,i]}}qA.black=new qA(0,0,0,1);qA.white=new qA(1,1,1,1);qA.transparent=new qA(0,0,0,0);qA.red=new qA(1,0,0,1);qA.blue=new qA(0,0,1,1);var Gl=qA;class b7{constructor(n,t,r){n?this.sensitivity=t?"variant":"case":this.sensitivity=t?"accent":"base",this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,t){return this.collator.compare(n,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class cE{constructor(n,t,r,i,o){this.text=n.normalize?n.normalize():n,this.image=t,this.scale=r,this.fontStack=i,this.textColor=o}}class ch{constructor(n){this.sections=n}static fromString(n){return new ch([new cE(n,null,null,null,null)])}isEmpty(){return this.sections.length===0?!0:!this.sections.some(n=>n.text.length!==0||n.image&&n.image.name.length!==0)}static factory(n){return n instanceof ch?n:ch.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}serialize(){const n=["format"];for(const t of this.sections){if(t.image){n.push(["image",t.image.name]);continue}n.push(t.text);const r={};t.fontStack&&(r["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(r["font-scale"]=t.scale),t.textColor&&(r["text-color"]=["rgba"].concat(t.textColor.toArray())),n.push(r)}return n}}class Op{constructor(n){this.name=n.name,this.available=n.available}toString(){return this.name}static fromString(n){return n?new Op({name:n,available:!1}):null}serialize(){return["image",this.name]}}function $z(e,n,t,r){return typeof e=="number"&&e>=0&&e<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof t=="number"&&t>=0&&t<=255?typeof r>"u"||typeof r=="number"&&r>=0&&r<=1?null:`Invalid rgba value [${[e,n,t,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof r=="number"?[e,n,t,r]:[e,n,t]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function D3(e){if(e===null)return!0;if(typeof e=="string")return!0;if(typeof e=="boolean")return!0;if(typeof e=="number")return!0;if(e instanceof Gl)return!0;if(e instanceof b7)return!0;if(e instanceof ch)return!0;if(e instanceof Op)return!0;if(Array.isArray(e)){for(const n of e)if(!D3(n))return!1;return!0}else if(typeof e=="object"){for(const n in e)if(!D3(e[n]))return!1;return!0}else return!1}function Wl(e){if(e===null)return g5;if(typeof e=="string")return oo;if(typeof e=="boolean")return Hi;if(typeof e=="number")return Xn;if(e instanceof Gl)return wp;if(e instanceof b7)return y5;if(e instanceof ch)return v5;if(e instanceof Op)return J_;if(Array.isArray(e)){const n=e.length;let t;for(const r of e){const i=Wl(r);if(!t)t=i;else{if(t===i)continue;t=Xi;break}}return yd(t||Xi,n)}else return iy}function KC(e){const n=typeof e;return e===null?"":n==="string"||n==="number"||n==="boolean"?String(e):e instanceof Gl||e instanceof ch||e instanceof Op?e.toString():JSON.stringify(e)}class x7{constructor(n,t){this.type=n,this.value=t}static parse(n,t){if(n.length!==2)return t.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!D3(n[1]))return t.error("invalid value");const r=n[1];let i=Wl(r);const o=t.expectedType;return i.kind==="array"&&i.N===0&&o&&o.kind==="array"&&(typeof o.N!="number"||o.N===0)&&(i=o),new x7(i,r)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Gl?["rgba"].concat(this.value.toArray()):this.value instanceof ch?this.value.serialize():this.value}}var U3=x7;class Nle{constructor(n){this.name="ExpressionEvaluationError",this.message=n}toJSON(){return this.message}}var Cu=Nle;const SM={string:oo,number:Xn,boolean:Hi,object:iy};class w7{constructor(n,t){this.type=n,this.args=t}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");let r=1,i;const o=n[0];if(o==="array"){let a;if(n.length>2){const g=n[1];if(typeof g!="string"||!(g in SM)||g==="object")return t.error('The item type argument of "array" must be one of string, number, boolean',1);a=SM[g],r++}else a=Xi;let f;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return t.error('The length argument to "array" must be a positive integer literal',2);f=n[2],r++}i=yd(a,f)}else i=SM[o];const s=[];for(;rn.outputDefined())}serialize(){const n=this.type,t=[n.kind];if(n.kind==="array"){const r=n.itemType;if(r.kind==="string"||r.kind==="number"||r.kind==="boolean"){t.push(r.kind);const i=n.N;(typeof i=="number"||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map(r=>r.serialize()))}}var mp=w7;class C5{constructor(n){this.type=v5,this.sections=n}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");const r=n[1];if(!Array.isArray(r)&&typeof r=="object")return t.error("First argument must be an image or text section.");const i=[];let o=!1;for(let s=1;s<=n.length-1;++s){const a=n[s];if(o&&typeof a=="object"&&!Array.isArray(a)){o=!1;let f=null;if(a["font-scale"]&&(f=t.parse(a["font-scale"],1,Xn),!f))return null;let g=null;if(a["text-font"]&&(g=t.parse(a["text-font"],1,yd(oo)),!g))return null;let x=null;if(a["text-color"]&&(x=t.parse(a["text-color"],1,wp),!x))return null;const k=i[i.length-1];k.scale=f,k.font=g,k.textColor=x}else{const f=t.parse(n[s],1,Xi);if(!f)return null;const g=f.type.kind;if(g!=="string"&&g!=="value"&&g!=="null"&&g!=="resolvedImage")return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");o=!0,i.push({content:f,scale:null,font:null,textColor:null})}}return new C5(i)}evaluate(n){const t=r=>{const i=r.content.evaluate(n);return Wl(i)===J_?new cE("",i,null,null,null):new cE(KC(i),null,r.scale?r.scale.evaluate(n):null,r.font?r.font.evaluate(n).join(","):null,r.textColor?r.textColor.evaluate(n):null)};return new ch(this.sections.map(t))}eachChild(n){for(const t of this.sections)n(t.content),t.scale&&n(t.scale),t.font&&n(t.font),t.textColor&&n(t.textColor)}outputDefined(){return!1}serialize(){const n=["format"];for(const t of this.sections){n.push(t.content.serialize());const r={};t.scale&&(r["font-scale"]=t.scale.serialize()),t.font&&(r["text-font"]=t.font.serialize()),t.textColor&&(r["text-color"]=t.textColor.serialize()),n.push(r)}return n}}class _5{constructor(n){this.type=J_,this.input=n}static parse(n,t){if(n.length!==2)return t.error("Expected two arguments.");const r=t.parse(n[1],1,oo);return r?new _5(r):t.error("No image name provided.")}evaluate(n){const t=this.input.evaluate(n),r=Op.fromString(t);return r&&n.availableImages&&(r.available=n.availableImages.indexOf(t)>-1),r}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Gle={"to-boolean":Hi,"to-color":wp,"to-number":Xn,"to-string":oo};class M7{constructor(n,t){this.type=n,this.args=t}static parse(n,t){if(n.length<2)return t.error("Expected at least one argument.");const r=n[0];if((r==="to-boolean"||r==="to-string")&&n.length!==2)return t.error("Expected one argument.");const i=Gle[r],o=[];for(let s=1;s4?r=`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:r=$z(t[0],t[1],t[2],t[3]),!r))return new Gl(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new Cu(r||`Could not parse color from value '${typeof t=="string"?t:String(JSON.stringify(t))}'`)}else if(this.type.kind==="number"){let t=null;for(const r of this.args){if(t=r.evaluate(n),t===null)return 0;const i=Number(t);if(!isNaN(i))return i}throw new Cu(`Could not convert ${JSON.stringify(t)} to number.`)}else return this.type.kind==="formatted"?ch.fromString(KC(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?Op.fromString(KC(this.args[0].evaluate(n))):KC(this.args[0].evaluate(n))}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){if(this.type.kind==="formatted")return new C5([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new _5(this.args[0]).serialize();const n=[`to-${this.type.kind}`];return this.eachChild(t=>{n.push(t.serialize())}),n}}var Rg=M7;const Qle=["Unknown","Point","LineString","Polygon"];class $le{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Qle[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||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const n=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:r,y:i}=this.featureTileCoord,o=r*t-n[0],s=i*t-n[1],a=this.featureDistanceData.bearing[0],f=this.featureDistanceData.bearing[1];return a*o+f*s}return 0}parseColor(n){let t=this._parseColorCache[n];return t||(t=this._parseColorCache[n]=Gl.parse(n)),t}}var Yz=$le;class Lg{constructor(n,t,r,i){this.name=n,this.type=t,this._evaluate=r,this.args=i}evaluate(n){return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(n=>n.serialize()))}static parse(n,t){const r=n[0],i=Lg.definitions[r];if(!i)return t.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0);const o=Array.isArray(i)?i[0]:i.type,s=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,a=s.filter(([g])=>!Array.isArray(g)||g.length===n.length-1);let f=null;for(const[g,x]of a){f=new Xz(t.registry,t.path,null,t.scope);const k=[];let B=!1;for(let P=1;PYle(B)).join(" | "),k=[];for(let B=1;B=n[2]||e[1]<=n[1]||e[3]>=n[3])}function Hle(e,n){const t=qle(e[0]),r=Vle(e[1]),i=Math.pow(2,n.z);return[Math.round(t*i*km),Math.round(r*i*km)]}function Zle(e,n,t){const r=e[0]-n[0],i=e[1]-n[1],o=e[0]-t[0],s=e[1]-t[1];return r*s-o*i===0&&r*o<=0&&i*s<=0}function Xle(e,n,t){return n[1]>e[1]!=t[1]>e[1]&&e[0]<(t[0]-n[0])*(e[1]-n[1])/(t[1]-n[1])+n[0]}function E7(e,n){let t=!1;for(let r=0,i=n.length;r0&&k<0||x<0&&k>0}function tue(e,n,t,r){const i=[n[0]-e[0],n[1]-e[1]],o=[r[0]-t[0],r[1]-t[1]];return eue(o,i)===0?!1:!!(iT(e,n,t,r)&&iT(t,r,e,n))}function nue(e,n,t){for(const r of t)for(let i=0;it[2]){const i=r*.5;let o=e[0]-t[0]>i?-r:t[0]-e[0]>i?r:0;o===0&&(o=e[0]-t[2]>i?-r:t[2]-e[0]>i?r:0),e[0]+=o}S7(n,e)}function iue(e){e[0]=e[1]=1/0,e[2]=e[3]=-1/0}function oT(e,n,t,r){const i=Math.pow(2,r.z)*km,o=[r.x*km,r.y*km],s=[];if(!e)return s;for(const a of e)for(const f of a){const g=[f.x+o[0],f.y+o[1]];Hz(g,n,t,i),s.push(g)}return s}function aT(e,n,t,r){const i=Math.pow(2,r.z)*km,o=[r.x*km,r.y*km],s=[];if(!e)return s;for(const a of e){const f=[];for(const g of a){const x=[g.x+o[0],g.y+o[1]];S7(n,x),f.push(x)}s.push(f)}if(n[2]-n[0]<=i/2){iue(n);for(const a of s)for(const f of a)Hz(f,n,t,i)}return s}function oue(e,n){const t=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if(n.type==="Polygon"){const o=O7(n.coordinates,r,i),s=oT(e.geometry(),t,r,i);if(!R3(t,r))return!1;for(const a of s)if(!E7(a,o))return!1}if(n.type==="MultiPolygon"){const o=Vz(n.coordinates,r,i),s=oT(e.geometry(),t,r,i);if(!R3(t,r))return!1;for(const a of s)if(!Jle(a,o))return!1}return!0}function aue(e,n){const t=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],i=e.canonicalID();if(!i)return!1;if(n.type==="Polygon"){const o=O7(n.coordinates,r,i),s=aT(e.geometry(),t,r,i);if(!R3(t,r))return!1;for(const a of s)if(!qz(a,o))return!1}if(n.type==="MultiPolygon"){const o=Vz(n.coordinates,r,i),s=aT(e.geometry(),t,r,i);if(!R3(t,r))return!1;for(const a of s)if(!rue(a,o))return!1}return!0}class PC{constructor(n,t){this.type=Hi,this.geojson=n,this.geometries=t}static parse(n,t){if(n.length!==2)return t.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(D3(n[1])){const r=n[1];if(r.type==="FeatureCollection")for(let i=0;i{n&&!x5(t)&&(n=!1)}),n}function k7(e){if(e instanceof Ny&&e.name==="feature-state")return!1;let n=!0;return e.eachChild(t=>{n&&!k7(t)&&(n=!1)}),n}function I7(e,n){if(e instanceof Ny&&n.indexOf(e.name)>=0)return!1;let t=!0;return e.eachChild(r=>{t&&!I7(r,n)&&(t=!1)}),t}class T7{constructor(n,t){this.type=t.type,this.name=n,this.boundExpression=t}static parse(n,t){if(n.length!==2||typeof n[1]!="string")return t.error("'var' expression requires exactly one string literal argument.");const r=n[1];return t.scope.has(r)?new T7(r,t.scope.get(r)):t.error(`Unknown variable "${r}". Make sure "${r}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Zz=T7;class K7{constructor(n,t=[],r,i=new Rle,o=[]){this.registry=n,this.path=t,this.key=t.map(s=>`[${s}]`).join(""),this.scope=i,this.errors=o,this.expectedType=r}parse(n,t,r,i,o={}){return t?this.concat(t,r,i)._parse(n,o):this._parse(n,o)}_parse(n,t){(n===null||typeof n=="string"||typeof n=="boolean"||typeof n=="number")&&(n=["literal",n]);function r(i,o,s){return s==="assert"?new mp(o,[i]):s==="coerce"?new Rg(o,[i]):i}if(Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=n[0];if(typeof i!="string")return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const o=this.registry[i];if(o){let s=o.parse(n,this);if(!s)return null;if(this.expectedType){const a=this.expectedType,f=s.type;if((a.kind==="string"||a.kind==="number"||a.kind==="boolean"||a.kind==="object"||a.kind==="array")&&f.kind==="value")s=r(s,a,t.typeAnnotation||"assert");else if((a.kind==="color"||a.kind==="formatted"||a.kind==="resolvedImage")&&(f.kind==="value"||f.kind==="string"))s=r(s,a,t.typeAnnotation||"coerce");else if(this.checkSubtype(a,f))return null}if(!(s instanceof U3)&&s.type.kind!=="resolvedImage"&&dE(s)){const a=new Yz;try{s=new U3(s.type,s.evaluate(a))}catch(f){return this.error(f.message),null}}return s}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}else return typeof n>"u"?this.error("'undefined' value invalid. Use null instead."):typeof n=="object"?this.error('Bare objects invalid. Use ["literal", {...}] instead.'):this.error(`Expected an array, but found ${typeof n} instead.`)}concat(n,t,r){const i=typeof n=="number"?this.path.concat(n):this.path,o=r?this.scope.concat(r):this.scope;return new K7(this.registry,i,t||null,o,this.errors)}error(n,...t){const r=`${this.key}${t.map(i=>`[${i}]`).join("")}`;this.errors.push(new Zh(r,n))}checkSubtype(n,t){const r=C_(n,t);return r&&this.error(r),r}}var Xz=K7;function dE(e){if(e instanceof Zz)return dE(e.boundExpression);if(e instanceof Ny&&e.name==="error")return!1;if(e instanceof b5)return!1;if(e instanceof B7)return!1;const n=e instanceof Rg||e instanceof mp;let t=!0;return e.eachChild(r=>{n?t=t&&dE(r):t=t&&r instanceof U3}),t?x5(e)&&I7(e,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"]):!1}function w5(e,n){const t=e.length-1;let r=0,i=t,o=0,s,a;for(;r<=i;)if(o=Math.floor((r+i)/2),s=e[o],a=e[o+1],s<=n){if(o===t||nn)i=o-1;else throw new Cu("Input is not a number.");return 0}class P7{constructor(n,t,r){this.type=n,this.input=t,this.labels=[],this.outputs=[];for(const[i,o]of r)this.labels.push(i),this.outputs.push(o)}static parse(n,t){if(n.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!==0)return t.error("Expected an even number of arguments.");const r=t.parse(n[1],1,Xn);if(!r)return null;const i=[];let o=null;t.expectedType&&t.expectedType.kind!=="value"&&(o=t.expectedType);for(let s=1;s=a)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',g);const k=t.parse(f,x,o);if(!k)return null;o=o||k.type,i.push([a,k])}return new P7(o,r,i)}evaluate(n){const t=this.labels,r=this.outputs;if(t.length===1)return r[0].evaluate(n);const i=this.input.evaluate(n);if(i<=t[0])return r[0].evaluate(n);const o=t.length;if(i>=t[o-1])return r[o-1].evaluate(n);const s=w5(t,i);return r[s].evaluate(n)}eachChild(n){n(this.input);for(const t of this.outputs)n(t)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){const n=["step",this.input.serialize()];for(let t=0;t0&&n.push(this.labels[t]),n.push(this.outputs[t].serialize());return n}}var Jz=P7,sue=ej;function ej(e,n,t,r){this.cx=3*e,this.bx=3*(t-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(r-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=n,this.p2x=t,this.p2y=r}ej.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,n){if(n===void 0&&(n=1e-6),e<0)return 0;if(e>1)return 1;for(var t=e,r=0;r<8;r++){var i=this.sampleCurveX(t)-e;if(Math.abs(i)i?s=t:a=t,t=(a-s)*.5+s;return t},solve:function(e,n){return this.sampleCurveY(this.solveCurveX(e,n))}};function Rc(e,n,t){return e*(1-t)+n*t}function lue(e,n,t){return new Gl(Rc(e.r,n.r,t),Rc(e.g,n.g,t),Rc(e.b,n.b,t),Rc(e.a,n.a,t))}function uue(e,n,t){return e.map((r,i)=>Rc(r,n[i],t))}var tj=Object.freeze({__proto__:null,number:Rc,color:lue,array:uue});const nj=.95047,rj=1,ij=1.08883,oj=4/29,oy=6/29,aj=3*oy*oy,Aue=oy*oy*oy,cue=Math.PI/180,due=180/Math.PI;function EM(e){return e>Aue?Math.pow(e,1/3):e/aj+oj}function OM(e){return e>oy?e*e*e:aj*(e-oj)}function BM(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function kM(e){return e/=255,e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function sj(e){const n=kM(e.r),t=kM(e.g),r=kM(e.b),i=EM((.4124564*n+.3575761*t+.1804375*r)/nj),o=EM((.2126729*n+.7151522*t+.072175*r)/rj),s=EM((.0193339*n+.119192*t+.9503041*r)/ij);return{l:116*o-16,a:500*(i-o),b:200*(o-s),alpha:e.a}}function lj(e){let n=(e.l+16)/116,t=isNaN(e.a)?n:n+e.a/500,r=isNaN(e.b)?n:n-e.b/200;return n=rj*OM(n),t=nj*OM(t),r=ij*OM(r),new Gl(BM(3.2404542*t-1.5371385*n-.4985314*r),BM(-.969266*t+1.8760108*n+.041556*r),BM(.0556434*t-.2040259*n+1.0572252*r),e.alpha)}function hue(e,n,t){return{l:Rc(e.l,n.l,t),a:Rc(e.a,n.a,t),b:Rc(e.b,n.b,t),alpha:Rc(e.alpha,n.alpha,t)}}function fue(e){const{l:n,a:t,b:r}=sj(e),i=Math.atan2(r,t)*due;return{h:i<0?i+360:i,c:Math.sqrt(t*t+r*r),l:n,alpha:e.a}}function pue(e){const n=e.h*cue,t=e.c,r=e.l;return lj({l:r,a:Math.cos(n)*t,b:Math.sin(n)*t,alpha:e.alpha})}function mue(e,n,t){const r=n-e;return e+t*(r>180||r<-180?r-360*Math.round(r/360):r)}function gue(e,n,t){return{h:mue(e.h,n.h,t),c:Rc(e.c,n.c,t),l:Rc(e.l,n.l,t),alpha:Rc(e.alpha,n.alpha,t)}}const uC={forward:sj,reverse:lj,interpolate:hue},AC={forward:fue,reverse:pue,interpolate:gue};var uj=Object.freeze({__proto__:null,lab:uC,hcl:AC});class L3{constructor(n,t,r,i,o){this.type=n,this.operator=t,this.interpolation=r,this.input=i,this.labels=[],this.outputs=[];for(const[s,a]of o)this.labels.push(s),this.outputs.push(a)}static interpolationFactor(n,t,r,i){let o=0;if(n.name==="exponential")o=IM(t,n.base,r,i);else if(n.name==="linear")o=IM(t,1,r,i);else if(n.name==="cubic-bezier"){const s=n.controlPoints;o=new sue(s[0],s[1],s[2],s[3]).solve(IM(t,1,r,i))}return o}static parse(n,t){let[r,i,o,...s]=n;if(!Array.isArray(i)||i.length===0)return t.error("Expected an interpolation type expression.",1);if(i[0]==="linear")i={name:"linear"};else if(i[0]==="exponential"){const g=i[1];if(typeof g!="number")return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:g}}else if(i[0]==="cubic-bezier"){const g=i.slice(1);if(g.length!==4||g.some(x=>typeof x!="number"||x<0||x>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:g}}else return t.error(`Unknown interpolation type ${String(i[0])}`,1,0);if(n.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!==0)return t.error("Expected an even number of arguments.");if(o=t.parse(o,2,Xn),!o)return null;const a=[];let f=null;r==="interpolate-hcl"||r==="interpolate-lab"?f=wp:t.expectedType&&t.expectedType.kind!=="value"&&(f=t.expectedType);for(let g=0;g=x)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',B);const R=t.parse(k,P,f);if(!R)return null;f=f||R.type,a.push([x,R])}return f.kind!=="number"&&f.kind!=="color"&&!(f.kind==="array"&&f.itemType.kind==="number"&&typeof f.N=="number")?t.error(`Type ${ps(f)} is not interpolatable.`):new L3(f,r,i,o,a)}evaluate(n){const t=this.labels,r=this.outputs;if(t.length===1)return r[0].evaluate(n);const i=this.input.evaluate(n);if(i<=t[0])return r[0].evaluate(n);const o=t.length;if(i>=t[o-1])return r[o-1].evaluate(n);const s=w5(t,i),a=t[s],f=t[s+1],g=L3.interpolationFactor(this.interpolation,i,a,f),x=r[s].evaluate(n),k=r[s+1].evaluate(n);return this.operator==="interpolate"?tj[this.type.kind.toLowerCase()](x,k,g):this.operator==="interpolate-hcl"?AC.reverse(AC.interpolate(AC.forward(x),AC.forward(k),g)):uC.reverse(uC.interpolate(uC.forward(x),uC.forward(k),g))}eachChild(n){n(this.input);for(const t of this.outputs)n(t)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){let n;this.interpolation.name==="linear"?n=["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?n=["linear"]:n=["exponential",this.interpolation.base]:n=["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,n,this.input.serialize()];for(let r=0;rC_(i,a.type))?new z3(Xi,o):new z3(r,o)}evaluate(n){let t=null,r=0,i;for(const o of this.args){if(r++,t=o.evaluate(n),t&&t instanceof Op&&!t.available&&(i||(i=t),t=null,r===this.args.length))return i;if(t!==null)break}return t}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=["coalesce"];return this.eachChild(t=>{n.push(t.serialize())}),n}}var Aj=z3;class F7{constructor(n,t){this.type=t.type,this.bindings=[].concat(n),this.result=t}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const t of this.bindings)n(t[1]);n(this.result)}static parse(n,t){if(n.length<4)return t.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const r=[];for(let o=1;o=r.length)throw new Cu(`Array index out of bounds: ${t} > ${r.length-1}.`);if(t!==Math.floor(t))throw new Cu(`Array index must be an integer, but found ${t} instead.`);return r[t]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var yue=D7;class U7{constructor(n,t){this.type=Hi,this.needle=n,this.haystack=t}static parse(n,t){if(n.length!==3)return t.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Xi),i=t.parse(n[2],2,Xi);return!r||!i?null:_7(r.type,[Hi,oo,Xn,g5,Xi])?new U7(r,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ps(r.type)} instead`)}evaluate(n){const t=this.needle.evaluate(n),r=this.haystack.evaluate(n);if(r==null)return!1;if(!__(t,["boolean","string","number","null"]))throw new Cu(`Expected first argument to be of type boolean, string, number or null, but found ${ps(Wl(t))} instead.`);if(!__(r,["string","array"]))throw new Cu(`Expected second argument to be of type array or string, but found ${ps(Wl(r))} instead.`);return r.indexOf(t)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var vue=U7;class j3{constructor(n,t,r){this.type=Xn,this.needle=n,this.haystack=t,this.fromIndex=r}static parse(n,t){if(n.length<=2||n.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Xi),i=t.parse(n[2],2,Xi);if(!r||!i)return null;if(!_7(r.type,[Hi,oo,Xn,g5,Xi]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${ps(r.type)} instead`);if(n.length===4){const o=t.parse(n[3],3,Xn);return o?new j3(r,i,o):null}else return new j3(r,i)}evaluate(n){const t=this.needle.evaluate(n),r=this.haystack.evaluate(n);if(!__(t,["boolean","string","number","null"]))throw new Cu(`Expected first argument to be of type boolean, string, number or null, but found ${ps(Wl(t))} instead.`);if(!__(r,["string","array"]))throw new Cu(`Expected second argument to be of type array or string, but found ${ps(Wl(r))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(n);return r.indexOf(t,i)}return r.indexOf(t)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Cue=j3;class R7{constructor(n,t,r,i,o,s){this.inputType=n,this.type=t,this.input=r,this.cases=i,this.outputs=o,this.otherwise=s}static parse(n,t){if(n.length<5)return t.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!==1)return t.error("Expected an even number of arguments.");let r,i;t.expectedType&&t.expectedType.kind!=="value"&&(i=t.expectedType);const o={},s=[];for(let g=2;gNumber.MAX_SAFE_INTEGER)return B.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof R=="number"&&Math.floor(R)!==R)return B.error("Numeric branch labels must be integer values.");if(!r)r=Wl(R);else if(B.checkSubtype(r,Wl(R)))return null;if(typeof o[String(R)]<"u")return B.error("Branch labels must be unique.");o[String(R)]=s.length}const P=t.parse(k,g,i);if(!P)return null;i=i||P.type,s.push(P)}const a=t.parse(n[1],1,Xi);if(!a)return null;const f=t.parse(n[n.length-1],n.length-1,i);return!f||a.type.kind!=="value"&&t.concat(1).checkSubtype(r,a.type)?null:new R7(r,i,a,o,s,f)}evaluate(n){const t=this.input.evaluate(n);return(Wl(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),r=[],i={};for(const s of t){const a=i[this.cases[s]];a===void 0?(i[this.cases[s]]=r.length,r.push([this.cases[s],[s]])):r[a][1].push(s)}const o=s=>this.inputType.kind==="number"?Number(s):s;for(const[s,a]of r)a.length===1?n.push(o(a[0])):n.push(a.map(o)),n.push(this.outputs[s].serialize());return n.push(this.otherwise.serialize()),n}}var _ue=R7;class L7{constructor(n,t,r){this.type=n,this.branches=t,this.otherwise=r}static parse(n,t){if(n.length<4)return t.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!==0)return t.error("Expected an odd number of arguments.");let r;t.expectedType&&t.expectedType.kind!=="value"&&(r=t.expectedType);const i=[];for(let s=1;st.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["case"];return this.eachChild(t=>{n.push(t.serialize())}),n}}var bue=L7;class W3{constructor(n,t,r,i){this.type=n,this.input=t,this.beginIndex=r,this.endIndex=i}static parse(n,t){if(n.length<=2||n.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const r=t.parse(n[1],1,Xi),i=t.parse(n[2],2,Xn);if(!r||!i)return null;if(!_7(r.type,[yd(Xi),oo,Xi]))return t.error(`Expected first argument to be of type array or string, but found ${ps(r.type)} instead`);if(n.length===4){const o=t.parse(n[3],3,Xn);return o?new W3(r.type,r,i,o):null}else return new W3(r.type,r,i)}evaluate(n){const t=this.input.evaluate(n),r=this.beginIndex.evaluate(n);if(!__(t,["string","array"]))throw new Cu(`Expected first argument to be of type array or string, but found ${ps(Wl(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(n);return t.slice(r,i)}return t.slice(r)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var xue=W3;function sT(e,n){return e==="=="||e==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function wue(e,n,t){return n===t}function Mue(e,n,t){return n!==t}function Sue(e,n,t){return nt}function Oue(e,n,t){return n<=t}function Bue(e,n,t){return n>=t}function dj(e,n,t,r){return r.compare(n,t)===0}function kue(e,n,t,r){return!dj(e,n,t,r)}function Iue(e,n,t,r){return r.compare(n,t)<0}function Tue(e,n,t,r){return r.compare(n,t)>0}function Kue(e,n,t,r){return r.compare(n,t)<=0}function Pue(e,n,t,r){return r.compare(n,t)>=0}function Gy(e,n,t){const r=e!=="=="&&e!=="!=";return class hj{constructor(o,s,a){this.type=Hi,this.lhs=o,this.rhs=s,this.collator=a,this.hasUntypedArgument=o.type.kind==="value"||s.type.kind==="value"}static parse(o,s){if(o.length!==3&&o.length!==4)return s.error("Expected two or three arguments.");const a=o[0];let f=s.parse(o[1],1,Xi);if(!f)return null;if(!sT(a,f.type))return s.concat(1).error(`"${a}" comparisons are not supported for type '${ps(f.type)}'.`);let g=s.parse(o[2],2,Xi);if(!g)return null;if(!sT(a,g.type))return s.concat(2).error(`"${a}" comparisons are not supported for type '${ps(g.type)}'.`);if(f.type.kind!==g.type.kind&&f.type.kind!=="value"&&g.type.kind!=="value")return s.error(`Cannot compare types '${ps(f.type)}' and '${ps(g.type)}'.`);r&&(f.type.kind==="value"&&g.type.kind!=="value"?f=new mp(g.type,[f]):f.type.kind!=="value"&&g.type.kind==="value"&&(g=new mp(f.type,[g])));let x=null;if(o.length===4){if(f.type.kind!=="string"&&g.type.kind!=="string"&&f.type.kind!=="value"&&g.type.kind!=="value")return s.error("Cannot use collator to compare non-string types.");if(x=s.parse(o[3],3,y5),!x)return null}return new hj(f,g,x)}evaluate(o){const s=this.lhs.evaluate(o),a=this.rhs.evaluate(o);if(r&&this.hasUntypedArgument){const f=Wl(s),g=Wl(a);if(f.kind!==g.kind||!(f.kind==="string"||f.kind==="number"))throw new Cu(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${f.kind}, ${g.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const f=Wl(s),g=Wl(a);if(f.kind!=="string"||g.kind!=="string")return n(o,s,a)}return this.collator?t(o,s,a,this.collator.evaluate(o)):n(o,s,a)}eachChild(o){o(this.lhs),o(this.rhs),this.collator&&o(this.collator)}outputDefined(){return!0}serialize(){const o=[e];return this.eachChild(s=>{o.push(s.serialize())}),o}}}const Fue=Gy("==",wue,dj),Due=Gy("!=",Mue,kue),Uue=Gy("<",Sue,Iue),Rue=Gy(">",Eue,Tue),Lue=Gy("<=",Oue,Kue),zue=Gy(">=",Bue,Pue);class z7{constructor(n,t,r,i,o,s){this.type=oo,this.number=n,this.locale=t,this.currency=r,this.unit=i,this.minFractionDigits=o,this.maxFractionDigits=s}static parse(n,t){if(n.length!==3)return t.error("Expected two arguments.");const r=t.parse(n[1],1,Xn);if(!r)return null;const i=n[2];if(typeof i!="object"||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let o=null;if(i.locale&&(o=t.parse(i.locale,1,oo),!o))return null;let s=null;if(i.currency&&(s=t.parse(i.currency,1,oo),!s))return null;let a=null;if(i.unit&&(a=t.parse(i.unit,1,oo),!a))return null;let f=null;if(i["min-fraction-digits"]&&(f=t.parse(i["min-fraction-digits"],1,Xn),!f))return null;let g=null;return i["max-fraction-digits"]&&(g=t.parse(i["max-fraction-digits"],1,Xn),!g)?null:new z7(r,o,s,a,f,g)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:this.currency&&"currency"||this.unit&&"unit"||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]}}class j7{constructor(n){this.type=Xn,this.input=n}static parse(n,t){if(n.length!==2)return t.error(`Expected 1 argument, but found ${n.length-1} instead.`);const r=t.parse(n[1],1);return r?r.type.kind!=="array"&&r.type.kind!=="string"&&r.type.kind!=="value"?t.error(`Expected argument of type string or array, but found ${ps(r.type)} instead.`):new j7(r):null}evaluate(n){const t=this.input.evaluate(n);if(typeof t=="string")return t.length;if(Array.isArray(t))return t.length;throw new Cu(`Expected value to be of type string or array, but found ${ps(Wl(t))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(t=>{n.push(t.serialize())}),n}}var jue=j7;const fj={"==":Fue,"!=":Due,">":Rue,"<":Uue,">=":zue,"<=":Lue,array:mp,at:yue,boolean:mp,case:bue,coalesce:Aj,collator:b5,format:C5,image:_5,in:vue,"index-of":Cue,interpolate:Mp,"interpolate-hcl":Mp,"interpolate-lab":Mp,length:jue,let:cj,literal:U3,match:_ue,number:mp,"number-format":z7,object:mp,slice:xue,step:Jz,string:mp,"to-boolean":Rg,"to-color":Rg,"to-number":Rg,"to-string":Rg,var:Zz,within:B7};function lT(e,[n,t,r,i]){n=n.evaluate(e),t=t.evaluate(e),r=r.evaluate(e);const o=i?i.evaluate(e):1,s=$z(n,t,r,o);if(s)throw new Cu(s);return new Gl(n/255*o,t/255*o,r/255*o,o)}function uT(e,n){return e in n}function TM(e,n){const t=n[e];return typeof t>"u"?null:t}function Wue(e,n,t,r){for(;t<=r;){const i=t+r>>1;if(n[i]===e)return!0;n[i]>e?r=i-1:t=i+1}return!1}function v0(e){return{type:e}}Ny.register(fj,{error:[Lle,[oo],(e,[n])=>{throw new Cu(n.evaluate(e))}],typeof:[oo,[Xi],(e,[n])=>ps(Wl(n.evaluate(e)))],"to-rgba":[yd(Xn,4),[wp],(e,[n])=>n.evaluate(e).toArray()],rgb:[wp,[Xn,Xn,Xn],lT],rgba:[wp,[Xn,Xn,Xn,Xn],lT],has:{type:Hi,overloads:[[[oo],(e,[n])=>uT(n.evaluate(e),e.properties())],[[oo,iy],(e,[n,t])=>uT(n.evaluate(e),t.evaluate(e))]]},get:{type:Xi,overloads:[[[oo],(e,[n])=>TM(n.evaluate(e),e.properties())],[[oo,iy],(e,[n,t])=>TM(n.evaluate(e),t.evaluate(e))]]},"feature-state":[Xi,[oo],(e,[n])=>TM(n.evaluate(e),e.featureState||{})],properties:[iy,[],e=>e.properties()],"geometry-type":[oo,[],e=>e.geometryType()],id:[Xi,[],e=>e.id()],zoom:[Xn,[],e=>e.globals.zoom],pitch:[Xn,[],e=>e.globals.pitch||0],"distance-from-center":[Xn,[],e=>e.distanceFromCenter()],"heatmap-density":[Xn,[],e=>e.globals.heatmapDensity||0],"line-progress":[Xn,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[Xn,[],e=>e.globals.skyRadialProgress||0],accumulated:[Xi,[],e=>e.globals.accumulated===void 0?null:e.globals.accumulated],"+":[Xn,v0(Xn),(e,n)=>{let t=0;for(const r of n)t+=r.evaluate(e);return t}],"*":[Xn,v0(Xn),(e,n)=>{let t=1;for(const r of n)t*=r.evaluate(e);return t}],"-":{type:Xn,overloads:[[[Xn,Xn],(e,[n,t])=>n.evaluate(e)-t.evaluate(e)],[[Xn],(e,[n])=>-n.evaluate(e)]]},"/":[Xn,[Xn,Xn],(e,[n,t])=>n.evaluate(e)/t.evaluate(e)],"%":[Xn,[Xn,Xn],(e,[n,t])=>n.evaluate(e)%t.evaluate(e)],ln2:[Xn,[],()=>Math.LN2],pi:[Xn,[],()=>Math.PI],e:[Xn,[],()=>Math.E],"^":[Xn,[Xn,Xn],(e,[n,t])=>Math.pow(n.evaluate(e),t.evaluate(e))],sqrt:[Xn,[Xn],(e,[n])=>Math.sqrt(n.evaluate(e))],log10:[Xn,[Xn],(e,[n])=>Math.log(n.evaluate(e))/Math.LN10],ln:[Xn,[Xn],(e,[n])=>Math.log(n.evaluate(e))],log2:[Xn,[Xn],(e,[n])=>Math.log(n.evaluate(e))/Math.LN2],sin:[Xn,[Xn],(e,[n])=>Math.sin(n.evaluate(e))],cos:[Xn,[Xn],(e,[n])=>Math.cos(n.evaluate(e))],tan:[Xn,[Xn],(e,[n])=>Math.tan(n.evaluate(e))],asin:[Xn,[Xn],(e,[n])=>Math.asin(n.evaluate(e))],acos:[Xn,[Xn],(e,[n])=>Math.acos(n.evaluate(e))],atan:[Xn,[Xn],(e,[n])=>Math.atan(n.evaluate(e))],min:[Xn,v0(Xn),(e,n)=>Math.min(...n.map(t=>t.evaluate(e)))],max:[Xn,v0(Xn),(e,n)=>Math.max(...n.map(t=>t.evaluate(e)))],abs:[Xn,[Xn],(e,[n])=>Math.abs(n.evaluate(e))],round:[Xn,[Xn],(e,[n])=>{const t=n.evaluate(e);return t<0?-Math.round(-t):Math.round(t)}],floor:[Xn,[Xn],(e,[n])=>Math.floor(n.evaluate(e))],ceil:[Xn,[Xn],(e,[n])=>Math.ceil(n.evaluate(e))],"filter-==":[Hi,[oo,Xi],(e,[n,t])=>e.properties()[n.value]===t.value],"filter-id-==":[Hi,[Xi],(e,[n])=>e.id()===n.value],"filter-type-==":[Hi,[oo],(e,[n])=>e.geometryType()===n.value],"filter-<":[Hi,[oo,Xi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r{const t=e.id(),r=n.value;return typeof t==typeof r&&t":[Hi,[oo,Xi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r>i}],"filter-id->":[Hi,[Xi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t>r}],"filter-<=":[Hi,[oo,Xi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r<=i}],"filter-id-<=":[Hi,[Xi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t<=r}],"filter->=":[Hi,[oo,Xi],(e,[n,t])=>{const r=e.properties()[n.value],i=t.value;return typeof r==typeof i&&r>=i}],"filter-id->=":[Hi,[Xi],(e,[n])=>{const t=e.id(),r=n.value;return typeof t==typeof r&&t>=r}],"filter-has":[Hi,[Xi],(e,[n])=>n.value in e.properties()],"filter-has-id":[Hi,[],e=>e.id()!==null&&e.id()!==void 0],"filter-type-in":[Hi,[yd(oo)],(e,[n])=>n.value.indexOf(e.geometryType())>=0],"filter-id-in":[Hi,[yd(Xi)],(e,[n])=>n.value.indexOf(e.id())>=0],"filter-in-small":[Hi,[oo,yd(Xi)],(e,[n,t])=>t.value.indexOf(e.properties()[n.value])>=0],"filter-in-large":[Hi,[oo,yd(Xi)],(e,[n,t])=>Wue(e.properties()[n.value],t.value,0,t.value.length-1)],all:{type:Hi,overloads:[[[Hi,Hi],(e,[n,t])=>n.evaluate(e)&&t.evaluate(e)],[v0(Hi),(e,n)=>{for(const t of n)if(!t.evaluate(e))return!1;return!0}]]},any:{type:Hi,overloads:[[[Hi,Hi],(e,[n,t])=>n.evaluate(e)||t.evaluate(e)],[v0(Hi),(e,n)=>{for(const t of n)if(t.evaluate(e))return!0;return!1}]]},"!":[Hi,[Hi],(e,[n])=>!n.evaluate(e)],"is-supported-script":[Hi,[oo],(e,[n])=>{const t=e.globals&&e.globals.isSupportedScript;return t?t(n.evaluate(e)):!0}],upcase:[oo,[oo],(e,[n])=>n.evaluate(e).toUpperCase()],downcase:[oo,[oo],(e,[n])=>n.evaluate(e).toLowerCase()],concat:[oo,v0(Xi),(e,n)=>n.map(t=>KC(t.evaluate(e))).join("")],"resolved-locale":[oo,[y5],(e,[n])=>n.evaluate(e).resolvedLocale()]});var pj=fj;function hE(e){return{result:"success",value:e}}function Mg(e){return{result:"error",value:e}}function Nue(e){return e["property-type"]==="data-driven"}function Gue(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function mj(e){return!!e.expression&&e.expression.interpolated}function W7(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":e===null?"null":typeof e}function N7(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Que(e){return e}function G7(e,n){const t=n.type==="color",r=e.stops&&typeof e.stops[0][0]=="object",i=r||e.property!==void 0,o=r||!i,s=e.type||(mj(n)?"exponential":"interval");if(t&&(e=Gz({},e),e.stops&&(e.stops=e.stops.map(x=>[x[0],Gl.parse(x[1])])),e.default?e.default=Gl.parse(e.default):e.default=Gl.parse(n.default)),e.colorSpace&&e.colorSpace!=="rgb"&&!uj[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let a,f,g;if(s==="exponential")a=AT;else if(s==="interval")a=Yue;else if(s==="categorical"){a=$ue,f=Object.create(null);for(const x of e.stops)f[x[0]]=x[1];g=typeof e.stops[0][0]}else if(s==="identity")a=que;else throw new Error(`Unknown function type "${s}"`);if(r){const x={},k=[];for(let R=0;RR[0]),evaluate({zoom:R},H){return AT({stops:B,base:e.base},n,R).evaluate(R,H)}}}else if(o){const x=s==="exponential"?{name:"exponential",base:e.base!==void 0?e.base:1}:null;return{kind:"camera",interpolationType:x,interpolationFactor:Mp.interpolationFactor.bind(void 0,x),zoomStops:e.stops.map(k=>k[0]),evaluate:({zoom:k})=>a(e,n,k,f,g)}}else return{kind:"source",evaluate(x,k){const B=k&&k.properties?k.properties[e.property]:void 0;return B===void 0?eb(e.default,n.default):a(e,n,B,f,g)}}}function eb(e,n,t){if(e!==void 0)return e;if(n!==void 0)return n;if(t!==void 0)return t}function $ue(e,n,t,r,i){const o=typeof t===i?r[t]:void 0;return eb(o,e.default,n.default)}function Yue(e,n,t){if(W7(t)!=="number")return eb(e.default,n.default);const r=e.stops.length;if(r===1||t<=e.stops[0][0])return e.stops[0][1];if(t>=e.stops[r-1][0])return e.stops[r-1][1];const i=w5(e.stops.map(o=>o[0]),t);return e.stops[i][1]}function AT(e,n,t){const r=e.base!==void 0?e.base:1;if(W7(t)!=="number")return eb(e.default,n.default);const i=e.stops.length;if(i===1||t<=e.stops[0][0])return e.stops[0][1];if(t>=e.stops[i-1][0])return e.stops[i-1][1];const o=w5(e.stops.map(x=>x[0]),t),s=Vue(t,r,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],f=e.stops[o+1][1];let g=tj[n.type]||Que;if(e.colorSpace&&e.colorSpace!=="rgb"){const x=uj[e.colorSpace];g=(k,B)=>x.reverse(x.interpolate(x.forward(k),x.forward(B),s))}return typeof a.evaluate=="function"?{evaluate(...x){const k=a.evaluate.apply(void 0,x),B=f.evaluate.apply(void 0,x);if(!(k===void 0||B===void 0))return g(k,B,s)}}:g(a,f,s)}function que(e,n,t){return n.type==="color"?t=Gl.parse(t):n.type==="formatted"?t=ch.fromString(t.toString()):n.type==="resolvedImage"?t=Op.fromString(t.toString()):W7(t)!==n.type&&(n.type!=="enum"||!n.values[t])&&(t=void 0),eb(t,e.default,n.default)}function Vue(e,n,t,r){const i=r-t,o=e-t;return i===0?0:n===1?o/i:(Math.pow(n,o)-1)/(Math.pow(n,i)-1)}class gj{constructor(n,t){this.expression=n,this._warningHistory={},this._evaluator=new Yz,this._defaultValue=t?Xue(t):null,this._enumValues=t&&t.type==="enum"?t.values:null}evaluateWithoutErrorHandling(n,t,r,i,o,s,a,f){return this._evaluator.globals=n,this._evaluator.feature=t,this._evaluator.featureState=r,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=f||null,this.expression.evaluate(this._evaluator)}evaluate(n,t,r,i,o,s,a,f){this._evaluator.globals=n,this._evaluator.feature=t||null,this._evaluator.featureState=r||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=o||null,this._evaluator.formattedSection=s||null,this._evaluator.featureTileCoord=a||null,this._evaluator.featureDistanceData=f||null;try{const g=this.expression.evaluate(this._evaluator);if(g==null||typeof g=="number"&&g!==g)return this._defaultValue;if(this._enumValues&&!(g in this._enumValues))throw new Cu(`Expected value to be one of ${Object.keys(this._enumValues).map(x=>JSON.stringify(x)).join(", ")}, but found ${JSON.stringify(g)} instead.`);return g}catch(g){return this._warningHistory[g.message]||(this._warningHistory[g.message]=!0,typeof console<"u"&&console.warn(g.message)),this._defaultValue}}}function yj(e){return Array.isArray(e)&&e.length>0&&typeof e[0]=="string"&&e[0]in pj}function N3(e,n){const t=new Xz(pj,[],n?Zue(n):void 0),r=t.parse(e,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return r?hE(new gj(r,n)):Mg(t.errors)}class fE{constructor(n,t){this.kind=n,this._styleExpression=t,this.isStateDependent=n!=="constant"&&!k7(t.expression)}evaluateWithoutErrorHandling(n,t,r,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(n,t,r,i,o,s)}evaluate(n,t,r,i,o,s){return this._styleExpression.evaluate(n,t,r,i,o,s)}}class pE{constructor(n,t,r,i){this.kind=n,this.zoomStops=r,this._styleExpression=t,this.isStateDependent=n!=="camera"&&!k7(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(n,t,r,i,o,s){return this._styleExpression.evaluateWithoutErrorHandling(n,t,r,i,o,s)}evaluate(n,t,r,i,o,s){return this._styleExpression.evaluate(n,t,r,i,o,s)}interpolationFactor(n,t,r){return this.interpolationType?Mp.interpolationFactor(this.interpolationType,n,t,r):0}}function vj(e,n){if(e=N3(e,n),e.result==="error")return e;const t=e.value.expression,r=x5(t);if(!r&&!Nue(n))return Mg([new Zh("","data expressions not supported")]);const i=I7(t,["zoom","pitch","distance-from-center"]);if(!i&&!Gue(n))return Mg([new Zh("","zoom expressions not supported")]);const o=v2(t);if(!o&&!i)return Mg([new Zh("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')]);if(o instanceof Zh)return Mg([o]);if(o instanceof Mp&&!mj(n))return Mg([new Zh("",'"interpolate" expressions cannot be used with this property')]);if(!o)return hE(r?new fE("constant",e.value):new fE("source",e.value));const s=o instanceof Mp?o.interpolation:void 0;return hE(r?new pE("camera",e.value,o.labels,s):new pE("composite",e.value,o.labels,s))}class M5{constructor(n,t){this._parameters=n,this._specification=t,Gz(this,G7(this._parameters,this._specification))}static deserialize(n){return new M5(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function Hue(e,n){if(N7(e))return new M5(e,n);if(yj(e)){const t=vj(e,n);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value}else{let t=e;return typeof e=="string"&&n.type==="color"&&(t=Gl.parse(e)),{kind:"constant",evaluate:()=>t}}}function v2(e){let n=null;if(e instanceof cj)n=v2(e.result);else if(e instanceof Aj){for(const t of e.args)if(n=v2(t),n)break}else(e instanceof Jz||e instanceof Mp)&&e.input instanceof Ny&&e.input.name==="zoom"&&(n=e);return n instanceof Zh||e.eachChild(t=>{const r=v2(t);r instanceof Zh?n=r:!n&&r?n=new Zh("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Zh("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}function Zue(e){const n={color:wp,string:oo,number:Xn,enum:oo,boolean:Hi,formatted:v5,resolvedImage:J_};return e.type==="array"?yd(n[e.value]||Xi,e.length):n[e.type]}function Xue(e){return e.type==="color"&&(N7(e.default)||Array.isArray(e.default))?new Gl(0,0,0,0):e.type==="color"?Gl.parse(e.default)||null:e.default===void 0?null:e.default}function b_(e){return typeof e=="object"?["literal",e]:e}function Jue(e,n){let t=e.stops;if(!t)return eAe(e,n);const r=t&&typeof t[0][0]=="object",i=r||e.property!==void 0,o=r||!i;return t=t.map(s=>!i&&n.tokens&&typeof s[1]=="string"?[s[0],iAe(s[1])]:[s[0],b_(s[1])]),r?tAe(e,n,t):o?rAe(e,n,t):mE(e,n,t)}function eAe(e,n){const t=["get",e.property];if(e.default===void 0)return n.type==="string"?["string",t]:t;if(n.type==="enum")return["match",t,Object.keys(n.values),t,e.default];{const r=[n.type==="color"?"to-color":n.type,t,b_(e.default)];return n.type==="array"&&r.splice(1,0,n.value,n.length||null),r}}function Q7(e){switch(e.colorSpace){case"hcl":return"interpolate-hcl";case"lab":return"interpolate-lab";default:return"interpolate"}}function tAe(e,n,t){const r={},i={},o=[];for(let a=0;a3&&n===e[e.length-2]||(r&&e.length===2||e.push(n),e.push(t))}function Y7(e,n){return e.type?e.type:n.expression.interpolated?"exponential":"interval"}function iAe(e){const n=["concat"],t=/{([^{}]+)}/g;let r=0;for(let i=t.exec(e);i!==null;i=t.exec(e)){const o=e.slice(r,t.lastIndex-i[0].length);r=t.lastIndex,o.length>0&&n.push(o),n.push(["get",i[1]])}if(n.length===1)return e;if(r=2&&e[1]!=="$id"&&e[1]!=="$type";case"in":return e.length>=3&&(typeof e[1]!="string"||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return e.length!==3||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const n of e.slice(1))if(!q7(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function aAe(e,n="fill"){if(e==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};q7(e)||(e=G3(e));const t=e;let r=!0;try{r=sAe(t)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate. This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md and paste the contents of this message in the report. Thank you! Filter Expression: ${JSON.stringify(t,null,2)} `)}const i=Nz[`filter_${n}`],o=N3(r,i);let s=null;if(o.result==="error")throw new Error(o.value.map(x=>`${x.key}: ${x.message}`).join(", "));s=(x,k,B)=>o.value.evaluate(x,k,{},B);let a=null,f=null;if(r!==t){const x=N3(t,i);if(x.result==="error")throw new Error(x.value.map(k=>`${k.key}: ${k.message}`).join(", "));a=(k,B,P,R,H)=>x.value.evaluate(k,B,{},P,void 0,void 0,R,H),f=!x5(x.value.expression)}s=s;const g=bj(r);return{filter:s,dynamicFilter:a||void 0,needGeometry:g,needFeature:!!f}}function sAe(e){if(!sy(e))return e;let n=gE(e);return _j(n),n=Cj(n),n}function Cj(e){if(!Array.isArray(e))return e;const n=AAe(e);return n===!0?n:n.map(t=>Cj(t))}function _j(e){let n=!1;const t=[];if(e[0]==="case"){for(let r=1;r",">=","<","<=","to-boolean"]);function AAe(e){if(uAe.has(e[0]))for(let n=1;nn?1:0}function bj(e){if(!Array.isArray(e))return!1;if(e[0]==="within")return!0;for(let n=1;n"||n==="<="||n===">="?KM(e[1],e[2],n):n==="any"?dAe(e.slice(1)):n==="all"?["all"].concat(e.slice(1).map(G3)):n==="none"?["all"].concat(e.slice(1).map(G3).map(Tx)):n==="in"?dT(e[1],e.slice(2)):n==="!in"?Tx(dT(e[1],e.slice(2))):n==="has"?hT(e[1]):n==="!has"?Tx(hT(e[1])):n==="within"?e:!0}function KM(e,n,t){switch(e){case"$type":return[`filter-type-${t}`,n];case"$id":return[`filter-id-${t}`,n];default:return[`filter-${t}`,e,n]}}function dAe(e){return["any"].concat(e.map(G3))}function dT(e,n){if(n.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",n]];case"$id":return["filter-id-in",["literal",n]];default:return n.length>200&&!n.some(t=>typeof t!=typeof n[0])?["filter-in-large",e,["literal",n.sort(cAe)]]:["filter-in-small",e,["literal",n]]}}function hT(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Tx(e){return["!",e]}var hAe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function fAe(e,n){const t={};for(const r in e)r!=="ref"&&(t[r]=e[r]);return hAe.forEach(r=>{r in n&&(t[r]=n[r])}),t}function pAe(e){e=e.slice();const n=Object.create(null);for(let t=0;t"u"&&(Fe.yylloc={});var jt=Fe.yylloc;ce.push(jt);var Ft=Fe.options&&Fe.options.ranges;typeof He.yy.parseError=="function"?this.parseError=He.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Jt(){var de;return de=Fe.lex()||rt,typeof de!="number"&&(de=q.symbols_[de]||de),de}for(var Nt,Ve,nt,Je,Vt={},pt,dt,kt,Dt;;){if(Ve=oe[oe.length-1],this.defaultActions[Ve]?nt=this.defaultActions[Ve]:((Nt===null||typeof Nt>"u")&&(Nt=Jt()),nt=ae[Ve]&&ae[Ve][Nt]),typeof nt>"u"||!nt.length||!nt[0]){var Se="";Dt=[];for(pt in ae[Ve])this.terminals_[pt]&&pt>Ne&&Dt.push("'"+this.terminals_[pt]+"'");Fe.showPosition?Se="Parse error on line "+(ye+1)+`: `+Fe.showPosition()+` Expecting `+Dt.join(", ")+", got '"+(this.terminals_[Nt]||Nt)+"'":Se="Parse error on line "+(ye+1)+": Unexpected "+(Nt==rt?"end of input":"'"+(this.terminals_[Nt]||Nt)+"'"),this.parseError(Se,{text:Fe.match,token:this.terminals_[Nt]||Nt,line:Fe.yylineno,loc:jt,expected:Dt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ve+", token: "+Nt);switch(nt[0]){case 1:oe.push(Nt),ne.push(Fe.yytext),ce.push(Fe.yylloc),oe.push(nt[1]),Nt=null,Re=Fe.yyleng,ue=Fe.yytext,ye=Fe.yylineno,jt=Fe.yylloc;break;case 2:if(dt=this.productions_[nt[1]][1],Vt.$=ne[ne.length-dt],Vt._$={first_line:ce[ce.length-(dt||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(dt||1)].first_column,last_column:ce[ce.length-1].last_column},Ft&&(Vt._$.range=[ce[ce.length-(dt||1)].range[0],ce[ce.length-1].range[1]]),Je=this.performAction.apply(Vt,[ue,Re,ye,He.yy,nt[1],ne,ce].concat(ct)),typeof Je<"u")return Je;dt&&(oe=oe.slice(0,-1*dt*2),ne=ne.slice(0,-1*dt),ce=ce.slice(0,-1*dt)),oe.push(this.productions_[nt[1]][0]),ne.push(Vt.$),ce.push(Vt._$),kt=ae[oe[oe.length-2]][oe[oe.length-1]],oe.push(kt);break;case 3:return!0}}return!0}},R=function(){var W={EOF:1,parseError:function(q,oe){if(this.yy.parser)this.yy.parser.parseError(q,oe);else throw new Error(q)},setInput:function($,q){return this.yy=q||this.yy||{},this._input=$,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var $=this._input[0];this.yytext+=$,this.yyleng++,this.offset++,this.match+=$,this.matched+=$;var q=$.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$},unput:function($){var q=$.length,oe=$.split(/(?:\r\n?|\n)/g);this._input=$+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var ne=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1&&(this.yylineno-=oe.length-1);var ce=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===ne.length?this.yylloc.first_column:0)+ne[ne.length-oe.length].length-oe[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[ce[0],ce[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($){this.unput(this.match.slice($))},pastInput:function(){var $=this.matched.substr(0,this.matched.length-this.match.length);return($.length>20?"...":"")+$.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $=this.match;return $.length<20&&($+=this._input.substr(0,20-$.length)),($.substr(0,20)+($.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $=this.pastInput(),q=new Array($.length+1).join("-");return $+this.upcomingInput()+` `+q+"^"},test_match:function($,q){var oe,ne,ce;if(this.options.backtrack_lexer&&(ce={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ce.yylloc.range=this.yylloc.range.slice(0))),ne=$[0].match(/(?:\r\n?|\n).*/g),ne&&(this.yylineno+=ne.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ne?ne[ne.length-1].length-ne[ne.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$[0].length},this.yytext+=$[0],this.match+=$[0],this.matches=$,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice($[0].length),this.matched+=$[0],oe=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var ae in ce)this[ae]=ce[ae];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $,q,oe,ne;this._more||(this.yytext="",this.match="");for(var ce=this._currentRules(),ae=0;aeq[0].length)){if(q=oe,ne=ae,this.options.backtrack_lexer){if($=this.test_match(oe,ce[ae]),$!==!1)return $;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?($=this.test_match(q,ce[ne]),$!==!1?$:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(q,oe,ne,ce){switch(ne){case 0:break;case 1:return 6;case 2:return oe.yytext=oe.yytext.substr(1,oe.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return W}();P.lexer=R;function H(){this.yy={}}return H.prototype=P,P.Parser=H,new H}();typeof mAe<"u"&&(e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)})})(gAe);const xj={StyleExpression:gj,isExpression:yj,isExpressionFilter:q7,createExpression:N3,createPropertyExpression:vj,normalizePropertyExpression:Hue,ZoomConstantExpression:fE,ZoomDependentExpression:pE,StylePropertyFunction:M5},wj={convertFunction:Jue,createFunction:G7,isFunction:N7};var Mj=typeof Object.assign=="function"?Object.assign:function(e,n){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,i=arguments.length;r=.05){for(var t="",r=e.split(` `),i=vAe.slice(0,Math.round(n/.1)),o=0,s=r.length;o0&&(t+=` `),t+=r[o].split("").join(i);return t}return e}var FM;function Ej(){return FM||(FM=Sj(1,1).getContext("2d")),FM}function C0(e,n){return Ej().measureText(e).width+(e.length-1)*n}var vE={};J6&&wo(J6,ki.CLEAR,function(){vE={}});function CE(e,n,t,r){if(e.indexOf(` `)!==-1){for(var i=e.split(` `),o=[],s=0,a=i.length;s1){var k=Ej();k.font=n;for(var B=k.measureText("M").width,P=B*t,R="",o=[],s=0,a=x.length;s1;++s){var $=o[s];if(C0($,r)0?C0(o[s-1],r):1/0,oe=sP*.7&&C0(ce,r)=de.maxzoom)return"continue";var Xe=de.filter;if(!Xe||EAe(xe,Xe,nt,Nt,$)){var wt=void 0,Kt=void 0,Pt=void 0,zn=void 0,mt=void 0,pn=void 0,ir=Se.index;if(Ve==3&&(de.type=="fill"||de.type=="fill-extrusion"))if(Kt=bi(de,"paint",de.type+"-opacity",Nt,nt,W),de.type+"-pattern"in Ze){var Sn=bi(de,"paint",de.type+"-pattern",Nt,nt,W);if(Sn){var nr=typeof Sn=="string"?UM(Sn,Ft):Sn.toString();if(a&&i&&i[nr]){++Je,pn=Fe[Je],(!pn||!pn.getFill()||pn.getStroke()||pn.getText())&&(pn=new E0({fill:new Ug}),Fe[Je]=pn),Pt=pn.getFill(),pn.setZIndex(ir);var Mr=nr+"."+Kt,Qr=H[Mr];if(!Qr){var _r=i[nr],vi=Sj(_r.width,_r.height),we=vi.getContext("2d");we.globalAlpha=Kt,we.drawImage(a,_r.x,_r.y,_r.width,_r.height,0,0,_r.width,_r.height),Qr=we.createPattern(vi,"repeat"),H[Mr]=Qr}Pt.setColor(Qr)}}}else wt=Xp(bi(de,"paint",de.type+"-color",Nt,nt,W),Kt),de.type+"-outline-color"in Ze&&(mt=Xp(bi(de,"paint",de.type+"-outline-color",Nt,nt,W),Kt)),mt||(mt=wt),(wt||mt)&&(++Je,pn=Fe[Je],(!pn||wt&&!pn.getFill()||!wt&&pn.getFill()||mt&&!pn.getStroke()||!mt&&pn.getStroke()||pn.getText())&&(pn=new E0({fill:wt?new Ug:void 0,stroke:mt?new lC:void 0}),Fe[Je]=pn),wt&&(Pt=pn.getFill(),Pt.setColor(wt)),mt&&(zn=pn.getStroke(),zn.setColor(mt),zn.setWidth(.5)),pn.setZIndex(ir));if(Ve!=1&&de.type=="line"){wt=!("line-pattern"in Ze)&&"line-color"in Ze?Xp(bi(de,"paint","line-color",Nt,nt,W),bi(de,"paint","line-opacity",Nt,nt,W)):void 0;var V=bi(de,"paint","line-width",Nt,nt,W);wt&&V>0&&(++Je,pn=Fe[Je],(!pn||!pn.getStroke()||pn.getFill()||pn.getText())&&(pn=new E0({stroke:new lC}),Fe[Je]=pn),zn=pn.getStroke(),zn.setLineCap(bi(de,"layout","line-cap",Nt,nt,W)),zn.setLineJoin(bi(de,"layout","line-join",Nt,nt,W)),zn.setMiterLimit(bi(de,"layout","line-miter-limit",Nt,nt,W)),zn.setColor(wt),zn.setWidth(V),zn.setLineDash(Ze["line-dasharray"]?bi(de,"paint","line-dasharray",Nt,nt,W).map(function(Lr){return Lr*V}):null),pn.setZIndex(ir))}var X=!1,me=null,At=0,bt=void 0,Et=void 0,sr=void 0;if((Ve==1||Ve==2)&&"icon-image"in Pe){var Lt=bi(de,"layout","icon-image",Nt,nt,W);if(Lt){bt=typeof Lt=="string"?UM(Lt,Ft):Lt.toString();var Fn=void 0;if(a&&i&&i[bt]){var on=bi(de,"layout","icon-rotation-alignment",Nt,nt,W);if(Ve==2){var m=Ce.getGeometry();if(m.getFlatMidpoint||m.getFlatMidpoints){var un=m.getExtent(),In=Math.sqrt(Math.max(Math.pow((un[2]-un[0])/jt,2),Math.pow((un[3]-un[1])/jt,2)));if(In>150){var Gn=m.getType()==="MultiLineString"?m.getFlatMidpoints():m.getFlatMidpoint();DM||(Kx=[NaN,NaN],DM=new X6("Point",Kx,[],{},null)),Fn=DM,Kx[0]=Gn[0],Kx[1]=Gn[1];var Zn=bi(de,"layout","symbol-placement",Nt,nt,W);if(Zn==="line"&&on==="map")for(var Ke=m.getStride(),fe=m.getFlatCoordinates(),_e=0,Ee=fe.length-Ke;_e=et&&Gn[0]<=rn&&Gn[1]>=Ct&&Gn[1]<=Gt){At=Math.atan2(at-ht,it-Te);break}}}}}if(Ve!==2||Fn){var $t=bi(de,"layout","icon-size",Nt,nt,W),gn=Ze["icon-color"]!==void 0?bi(de,"paint","icon-color",Nt,nt,W):null;if(!gn||gn.a!==0){var Mr=bt+"."+$t;if(gn!==null&&(Mr+="."+gn),Et=R[Mr],!Et){var Jn=i[bt];Et=new pz({color:gn?[gn.r*255,gn.g*255,gn.b*255,gn.a]:void 0,img:a,imgSize:f,size:[Jn.width,Jn.height],offset:[Jn.x,Jn.y],rotateWithView:on==="map",scale:$t/Jn.pixelRatio,displacement:"icon-offset"in Pe?bi(de,"layout","icon-offset",Nt,nt,W).map(function(Ti){return-Ti*Jn.pixelRatio}):void 0}),R[Mr]=Et}}Et&&(++Je,pn=Fe[Je],(!pn||!pn.getImage()||pn.getFill()||pn.getStroke())&&(pn=new E0,Fe[Je]=pn),pn.setGeometry(Fn),Et.setRotation(At+PM(bi(de,"layout","icon-rotate",Nt,nt,W))),Et.setOpacity(bi(de,"paint","icon-opacity",Nt,nt,W)),Et.setAnchor(MAe[bi(de,"layout","icon-anchor",Nt,nt,W)]),pn.setImage(Et),me=pn.getText(),pn.setText(void 0),pn.setZIndex(ir),X=!0,sr=!1)}else sr=!0}}}if(Ve==1&&de.type==="circle"){++Je,pn=Fe[Je],(!pn||!pn.getImage()||pn.getFill()||pn.getStroke())&&(pn=new E0,Fe[Je]=pn);var qn="circle-radius"in Ze?bi(de,"paint","circle-radius",Nt,nt,W):5,Tr=Xp(bi(de,"paint","circle-stroke-color",Nt,nt,W),bi(de,"paint","circle-stroke-opacity",Nt,nt,W)),vr=Xp(bi(de,"paint","circle-color",Nt,nt,W),bi(de,"paint","circle-opacity",Nt,nt,W)),Dr=bi(de,"paint","circle-stroke-width",Nt,nt,W),Yr=qn+"."+Tr+"."+vr+"."+Dr;Et=R[Yr],Et||(Et=new Az({radius:qn,stroke:Tr&&Dr>0?new lC({width:Dr,color:Tr}):void 0,fill:vr?new Ug({color:vr}):void 0}),R[Yr]=Et),pn.setImage(Et),me=pn.getText(),pn.setText(void 0),pn.setGeometry(void 0),pn.setZIndex(ir),X=!0}var Zr=void 0,Cr=void 0,ui,Ii,Io,Ci;if("text-field"in Pe){Ii=Math.round(bi(de,"layout","text-size",Nt,nt,W));var so=bi(de,"layout","text-font",Nt,nt,W);ui=bi(de,"layout","text-line-height",Nt,nt,W),Cr=aE(s?s(so):so,Ii,ui),Io=bi(de,"layout","text-letter-spacing",Nt,nt,W),Ci=bi(de,"layout","text-max-width",Nt,nt,W);var Yo=bi(de,"layout","text-field",Nt,nt,W);typeof Yo=="object"&&Yo.sections?Yo.sections.length===1?Zr=Yo.toString():Zr=Yo.sections.reduce(function(Lr,Ti,po){var Cl=Ti.fontStack?Ti.fontStack.split(","):so,br=aE(s?s(Cl):Cl,Ii*(Ti.scale||1),ui),_i=Ti.text;if(_i===` `)return Lr.push(` `,""),Lr;if(Ve==2){Lr.push(yE(_i,Io),br);return}_i=CE(_i,br,Ci,Io).split(` `);for(var _l=0,Qa=_i.length;_l0&&Lr.push(` `,""),Lr.push(_i[_l],br);return Lr},[]):Zr=UM(Yo,Ft).trim(),Kt=bi(de,"paint","text-opacity",Nt,nt,W)}if(Zr&&Kt&&!sr){X||(++Je,pn=Fe[Je],(!pn||!pn.getText()||pn.getFill()||pn.getStroke())&&(pn=new E0,Fe[Je]=pn),pn.setImage(void 0),pn.setGeometry(void 0)),pn.getText()||pn.setText(me||new Voe({padding:[2,2,2,2]})),me=pn.getText();var ba=Pe["text-transform"];ba=="uppercase"?Zr=Array.isArray(Zr)?Zr.map(function(Ti,po){return po%2?Ti:Ti.toUpperCase()}):Zr.toUpperCase():ba=="lowercase"&&(Zr=Array.isArray(Zr)?Zr.map(function(Ti,po){return po%2?Ti:Ti.toLowerCase()}):Zr.toLowerCase());var Ql=Array.isArray(Zr)?Zr:Ve==2?yE(Zr,Io):CE(Zr,Cr,Ci,Io);me.setText(Ql),me.setFont(Cr),me.setRotation(PM(bi(de,"layout","text-rotate",Nt,nt,W)));var Ai=bi(de,"layout","text-anchor",Nt,nt,W),Zn=X||Ve==1?"point":bi(de,"layout","symbol-placement",Nt,nt,W);me.setPlacement(Zn),me.setOverflow(Zn==="point");var Mi=bi(de,"paint","text-halo-width",Nt,nt,W),rr=bi(de,"layout","text-offset",Nt,nt,W),lo=bi(de,"paint","text-translate",Nt,nt,W),Gi=0,la=0;if(Zn=="point"){var ve="center";Ai.indexOf("left")!==-1?(ve="left",la=Mi):Ai.indexOf("right")!==-1&&(ve="right",la=-Mi),me.setTextAlign(ve);var Ge=bi(de,"layout","text-rotation-alignment",Nt,nt,W);me.setRotateWithView(Ge=="map")}else me.setMaxAngle(PM(bi(de,"layout","text-max-angle",Nt,nt,W))*Zr.length/Ql.length),me.setTextAlign(),me.setRotateWithView(!1);var Ht="middle";Ai.indexOf("bottom")==0?(Ht="bottom",Gi=-Mi-.5*(ui-1)*Ii):Ai.indexOf("top")==0&&(Ht="top",Gi=Mi+.5*(ui-1)*Ii),me.setTextBaseline(Ht),me.setOffsetX(rr[0]*Ii+la+lo[0]),me.setOffsetY(rr[1]*Ii+Gi+lo[1]),ct.setColor(Xp(bi(de,"paint","text-color",Nt,nt,W),Kt)),me.setFill(ct);var mn=Xp(bi(de,"paint","text-halo-color",Nt,nt,W),Kt);if(mn){rt.setColor(mn),Mi*=2;var Ot=.5*Ii;rt.setWidth(Mi<=Ot?Mi:Ot),me.setStroke(rt)}else me.setStroke(void 0);var En=bi(de,"layout","text-padding",Nt,nt,W),zr=me.getPadding();En!==zr[0]&&(zr[0]=En,zr[1]=En,zr[2]=En,zr[3]=En),pn.setZIndex(ir)}}},pt=0,dt=Jt.length;pt-1)return Fe.length=Je+1,Fe}};return e.setStyle(He),e.set("mapbox-source",q),e.set("mapbox-layers",P),He}var Oj={exports:{}};(function(){var e;Oj.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(n){return"https://fonts.google.com/specimen/"+n.replace(/( )/g,"+")},normalizeName:function(n){return n}},e=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Engagement","Englebert","Enriqueta","Erica One","Esteban","Euphoria Script","Ewert","Exo","Exo 2","Expletus Sans","Fanwood Text","Fascinate","Fascinate Inline","Faster One","Fasthand","Fauna One","Federant","Federo","Felipa","Fenix","Finger Paint","Fira Mono","Fira Sans","Fjalla One","Fjord One","Flamenco","Flavors","Fondamento","Fontdiner Swanky","Forum","Francois One","Freckle Face","Fredericka the Great","Fredoka One","Freehand","Fresca","Frijole","Fruktur","Fugaz One","GFS Didot","GFS Neohellenic","Gabriela","Gafata","Galdeano","Galindo","Gentium Basic","Gentium Book Basic","Geo","Geostar","Geostar Fill","Germania One","Gidugu","Gilda Display","Give You Glory","Glass Antiqua","Glegoo","Gloria Hallelujah","Goblin One","Gochi Hand","Gorditas","Goudy Bookletter 1911","Graduate","Grand Hotel","Gravitas One","Great Vibes","Griffy","Gruppo","Gudea","Gurajada","Habibi","Halant","Hammersmith One","Hanalei","Hanalei Fill","Handlee","Hanuman","Happy Monkey","Headland One","Henny Penny","Herr Von Muellerhoff","Hind","Hind Siliguri","Hind Vadodara","Holtwood One SC","Homemade Apple","Homenaje","IM Fell DW Pica","IM Fell DW Pica SC","IM Fell Double Pica","IM Fell Double Pica SC","IM Fell English","IM Fell English SC","IM Fell French Canon","IM Fell French Canon SC","IM Fell Great Primer","IM Fell Great Primer SC","Iceberg","Iceland","Imprima","Inconsolata","Inder","Indie Flower","Inika","Inknut Antiqua","Irish Grover","Istok Web","Italiana","Italianno","Itim","Jacques Francois","Jacques Francois Shadow","Jaldi","Jim Nightshade","Jockey One","Jolly Lodger","Josefin Sans","Josefin Slab","Joti One","Judson","Julee","Julius Sans One","Junge","Jura","Just Another Hand","Just Me Again Down Here","Kadwa","Kalam","Kameron","Kantumruy","Karla","Karma","Kaushan Script","Kavoon","Kdam Thmor","Keania One","Kelly Slab","Kenia","Khand","Khmer","Khula","Kite One","Knewave","Kotta One","Koulen","Kranky","Kreon","Kristi","Krona One","Kurale","La Belle Aurore","Laila","Lakki Reddy","Lancelot","Lateef","Lato","League Script","Leckerli One","Ledger","Lekton","Lemon","Libre Baskerville","Life Savers","Lilita One","Lily Script One","Limelight","Linden Hill","Lobster","Lobster Two","Londrina Outline","Londrina Shadow","Londrina Sketch","Londrina Solid","Lora","Love Ya Like A Sister","Loved by the King","Lovers Quarrel","Luckiest Guy","Lusitana","Lustria","Macondo","Macondo Swash Caps","Magra","Maiden Orange","Mako","Mallanna","Mandali","Marcellus","Marcellus SC","Marck Script","Margarine","Marko One","Marmelad","Martel","Martel Sans","Marvel","Mate","Mate SC","Maven Pro","McLaren","Meddon","MedievalSharp","Medula One","Megrim","Meie Script","Merienda","Merienda One","Merriweather","Merriweather Sans","Metal","Metal Mania","Metamorphous","Metrophobic","Michroma","Milonga","Miltonian","Miltonian Tattoo","Miniver","Miss Fajardose","Modak","Modern Antiqua","Molengo","Molle","Monda","Monofett","Monoton","Monsieur La Doulaise","Montaga","Montez","Montserrat","Montserrat Alternates","Montserrat Subrayada","Moul","Moulpali","Mountains of Christmas","Mouse Memoirs","Mr Bedfort","Mr Dafoe","Mr De Haviland","Mrs Saint Delafield","Mrs Sheppards","Muli","Mystery Quest","NTR","Neucha","Neuton","New Rocker","News Cycle","Niconne","Nixie One","Nobile","Nokora","Norican","Nosifer","Nothing You Could Do","Noticia Text","Noto Sans","Noto Serif","Nova Cut","Nova Flat","Nova Mono","Nova Oval","Nova Round","Nova Script","Nova Slim","Nova Square","Numans","Nunito","Odor Mean Chey","Offside","Old Standard TT","Oldenburg","Oleo Script","Oleo Script Swash Caps","Open Sans","Open Sans Condensed","Oranienbaum","Orbitron","Oregano","Orienta","Original Surfer","Oswald","Over the Rainbow","Overlock","Overlock SC","Ovo","Oxygen","Oxygen Mono","PT Mono","PT Sans","PT Sans Caption","PT Sans Narrow","PT Serif","PT Serif Caption","Pacifico","Palanquin","Palanquin Dark","Paprika","Parisienne","Passero One","Passion One","Pathway Gothic One","Patrick Hand","Patrick Hand SC","Patua One","Paytone One","Peddana","Peralta","Permanent Marker","Petit Formal Script","Petrona","Philosopher","Piedra","Pinyon Script","Pirata One","Plaster","Play","Playball","Playfair Display","Playfair Display SC","Podkova","Poiret One","Poller One","Poly","Pompiere","Pontano Sans","Poppins","Port Lligat Sans","Port Lligat Slab","Pragati Narrow","Prata","Preahvihear","Press Start 2P","Princess Sofia","Prociono","Prosto One","Puritan","Purple Purse","Quando","Quantico","Quattrocento","Quattrocento Sans","Questrial","Quicksand","Quintessential","Qwigley","Racing Sans One","Radley","Rajdhani","Raleway","Raleway Dots","Ramabhadra","Ramaraja","Rambla","Rammetto One","Ranchers","Rancho","Ranga","Rationale","Ravi Prakash","Redressed","Reenie Beanie","Revalia","Rhodium Libre","Ribeye","Ribeye Marrow","Righteous","Risque","Roboto","Roboto Condensed","Roboto Mono","Roboto Slab","Rochester","Rock Salt","Rokkitt","Romanesco","Ropa Sans","Rosario","Rosarivo","Rouge Script","Rozha One","Rubik","Rubik Mono One","Rubik One","Ruda","Rufina","Ruge Boogie","Ruluko","Rum Raisin","Ruslan Display","Russo One","Ruthie","Rye","Sacramento","Sahitya","Sail","Salsa","Sanchez","Sancreek","Sansita One","Sarala","Sarina","Sarpanch","Satisfy","Scada","Scheherazade","Schoolbell","Seaweed Script","Sevillana","Seymour One","Shadows Into Light","Shadows Into Light Two","Shanti","Share","Share Tech","Share Tech Mono","Shojumaru","Short Stack","Siemreap","Sigmar One","Signika","Signika Negative","Simonetta","Sintony","Sirin Stencil","Six Caps","Skranji","Slabo 13px","Slabo 27px","Slackey","Smokum","Smythe","Sniglet","Snippet","Snowburst One","Sofadi One","Sofia","Sonsie One","Sorts Mill Goudy","Source Code Pro","Source Sans Pro","Source Serif Pro","Special Elite","Spicy Rice","Spinnaker","Spirax","Squada One","Sree Krushnadevaraya","Stalemate","Stalinist One","Stardos Stencil","Stint Ultra Condensed","Stint Ultra Expanded","Stoke","Strait","Sue Ellen Francisco","Sumana","Sunshiney","Supermercado One","Sura","Suranna","Suravaram","Suwannaphum","Swanky and Moo Moo","Syncopate","Tangerine","Taprom","Tauri","Teko","Telex","Tenali Ramakrishna","Tenor Sans","Text Me One","The Girl Next Door","Tienne","Tillana","Timmana","Tinos","Titan One","Titillium Web","Trade Winds","Trocchi","Trochut","Trykker","Tulpen One","Ubuntu","Ubuntu Condensed","Ubuntu Mono","Ultra","Uncial Antiqua","Underdog","Unica One","UnifrakturCook","UnifrakturMaguntia","Unkempt","Unlock","Unna","VT323","Vampiro One","Varela","Varela Round","Vast Shadow","Vesper Libre","Vibur","Vidaloka","Viga","Voces","Volkhov","Vollkorn","Voltaire","Waiting for the Sunrise","Wallpoet","Walter Turncoat","Warnes","Wellfleet","Wendy One","Wire One","Work Sans","Yanone Kaffeesatz","Yantramanav","Yellowtail","Yeseva One","Yesteryear","Zeyada"]}).call(mf);var kAe=Oj.exports;const IAe=ga(kAe);var fT={},TAe=/font-family: ?([^;]*);/,KAe=/("|')/g,Px;function PAe(e){if(!Px){Px={};for(var n=document.styleSheets,t=0,r=n.length;t2?r[2]:""):e+t}function UAe(e,n,t,r,i){return new Promise(function(o,s){if(typeof n!="object"&&(n=JSON.parse(n)),n.version!=8)return s(new Error("glStyle version 8 required."));if(!(e instanceof _z||e instanceof jz))return s(new Error("Can only apply to VectorLayer or VectorTileLayer"));var a,f,g,x;function k(){!x&&(!n.sprite||f)?(x=BAe(e,n,t,i,f,g,DAe),e.getStyle()?o():s(new Error("Nothing to show for source [".concat(t,"]")))):x?(e.setStyle(x),o()):s(new Error("Something went wrong trying to apply style."))}if(n.sprite){a=window.devicePixelRatio>=1.5?.5:1;var B=a==.5?"@2x":"",P=RM(n.sprite,r,B+".json");fetch(P,{credentials:"same-origin"}).then(function(R){return!R.ok&&B!==""?(P=RM(n.sprite,r,".json"),fetch(P,{credentials:"same-origin"})):R}).then(function(R){if(R.ok)return R.json();s(new Error("Problem fetching sprite from ".concat(P,": ").concat(R.statusText)))}).then(function(R){if(R===void 0)return s(new Error("No sprites found."));f=R,g=RM(n.sprite,r,B+".png"),k()}).catch(function(R){s(new Error("Sprites cannot be loaded: ".concat(P,": ").concat(R.message)))})}else k()})}var bE={};function RAe(e,n){var t={id:n.id,type:n.type},r={};function i(o){var s=n.layout||{},a=n.paint||{};t.paint=a;var f=typeof e.getSource=="function"?e.getSource().getTileGrid().getZForResolution(o):e.getView().getZoom(),g=typeof e.getTargetElement=="function"?e.getTargetElement():void 0,x,k;if(a["background-color"]!==void 0&&(x=bi(t,"paint","background-color",f,bE,r),g&&(g.style.background=Gl.parse(x).toString())),a["background-opacity"]!==void 0&&(k=bi(t,"paint","background-opacity",f,bE,r),g&&(g.style.opacity=k)),s.visibility=="none"){g&&(g.style.backgroundColor="",g.style.opacity="");return}return Xp(x,k)}if(typeof e.getTargetElement=="function")e.getTargetElement()&&i(),e.on(["change:resolution","change:target"],i);else if(typeof e.setBackground=="function")e.setBackground(i);else throw new Error("Unable to apply background.")}function LAe(e,n){var t;return e.some(function(r){if(r.id==n)return t=r.source,!0}),t}function kj(e){var n=e.bounds;if(n){var t=G6([n[0],n[1]]),r=G6([n[2],n[3]]);return[t[0],t[1],r[0],r[1]]}}function zAe(e,n){e=Mj({},e);var t=[n,JSON.stringify(e)].toString(),r=fT[t];return r||(r=new Lz({url:e.tiles?void 0:n,tileJSON:e.tiles?e:void 0}),fT[t]=r),new Promise(function(i){var o=r.on("change",function(){var s=r.getState();if(s==="ready"){var a=r.getTileJSON(),f=Array.isArray(a.tiles)?a.tiles:[a.tiles];if(n)for(var g=0,x=f.length;g2?a[2]:""),t=new Promise(function(f,g){fetch(n,{credentials:"same-origin"}).then(function(x){return x.json()}).then(function(x){var k=document.createElement("A");k.href=n;var B=k.href;s=k.pathname.split("/").slice(0,-1).join("/")+"/",o=B.substr(0,B.indexOf(s)),yT(x,e,i,o,s,r).then(function(){f(e)}).catch(g)}).catch(function(x){g(new Error("Could not load ".concat(n,": ").concat(x.message)))})})}else t=new Promise(function(f,g){yT(n,e).then(function(){f(e)}).catch(g)});return t}function QAe(e,n){return(typeof e=="string"||e instanceof HTMLElement)&&(e=new g7({target:e})),setTimeout(function(){GAe(e,n)},0),e}function vT(e,n,t,r,i){for(var o=24,s=0,a=t.layers,f=0,g=a.length;f0||W>0)&&e.setMaxResolution(Math.min(Sy[o],H.getResolution(W))+1e-9),s<24&&e.setMinResolution(Sy[s]+1e-9)}}R instanceof Mz||R instanceof Wz?UAe(e,t,n,r).then(function(){e.setVisible(!0),k()},function($){B($)}):k()};e.set("mapbox-layers",n),i.getLayers().getArray().indexOf(e)===-1&&i.addLayer(e),e.getSource()?P():e.once("change:source",P)})}function Er(){var e="/home/runner/work/maputnik/maputnik/src/components/MapOpenLayers.tsx",n="7242f6b015e11a4c9eb3973d702f9d425918e132",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapOpenLayers.tsx",statementMap:{0:{start:{line:10,column:2},end:{line:14,column:3}},1:{start:{line:11,column:4},end:{line:11,column:16}},2:{start:{line:13,column:4},end:{line:13,column:149}},3:{start:{line:13,column:103},end:{line:13,column:133}},4:{start:{line:17,column:24},end:{line:24,column:3}},5:{start:{line:27,column:14},end:{line:27,column:18}},6:{start:{line:29,column:19},end:{line:29,column:23}},7:{start:{line:31,column:4},end:{line:31,column:17}},8:{start:{line:32,column:4},end:{line:37,column:6}},9:{start:{line:38,column:4},end:{line:38,column:67}},10:{start:{line:41,column:4},end:{line:42,column:13}},11:{start:{line:42,column:6},end:{line:42,column:13}},12:{start:{line:43,column:4},end:{line:43,column:33}},13:{start:{line:44,column:4},end:{line:44,column:33}},14:{start:{line:47,column:4},end:{line:51,column:5}},15:{start:{line:48,column:6},end:{line:50,column:8}},16:{start:{line:54,column:4},end:{line:60,column:7}},17:{start:{line:61,column:16},end:{line:68,column:6}},18:{start:{line:69,column:4},end:{line:77,column:7}},19:{start:{line:70,column:21},end:{line:70,column:45}},20:{start:{line:71,column:6},end:{line:76,column:9}},21:{start:{line:78,column:22},end:{line:88,column:5}},22:{start:{line:79,column:19},end:{line:79,column:42}},23:{start:{line:80,column:21},end:{line:80,column:56}},24:{start:{line:81,column:6},end:{line:87,column:9}},25:{start:{line:89,column:4},end:{line:89,column:16}},26:{start:{line:90,column:4},end:{line:90,column:33}},27:{start:{line:91,column:4},end:{line:101,column:7}},28:{start:{line:92,column:21},end:{line:92,column:56}},29:{start:{line:93,column:6},end:{line:100,column:9}},30:{start:{line:102,column:4},end:{line:102,column:19}},31:{start:{line:103,column:4},end:{line:105,column:6}},32:{start:{line:107,column:17},end:{line:110,column:3}},33:{start:{line:108,column:4},end:{line:108,column:20}},34:{start:{line:109,column:4},end:{line:109,column:37}},35:{start:{line:112,column:4},end:{line:169,column:9}},36:{start:{line:116,column:22},end:{line:116,column:45}},37:{start:{line:161,column:22},end:{line:161,column:40}}},fnMap:{0:{name:"renderCoords",decl:{start:{line:9,column:9},end:{line:9,column:21}},loc:{start:{line:9,column:30},end:{line:15,column:1}},line:9},1:{name:"(anonymous_1)",decl:{start:{line:13,column:92},end:{line:13,column:93}},loc:{start:{line:13,column:103},end:{line:13,column:133}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:18,column:17},end:{line:18,column:18}},loc:{start:{line:18,column:23},end:{line:19,column:5}},line:18},3:{name:"(anonymous_3)",decl:{start:{line:20,column:18},end:{line:20,column:19}},loc:{start:{line:20,column:24},end:{line:21,column:5}},line:20},4:{name:"(anonymous_4)",decl:{start:{line:22,column:19},end:{line:22,column:20}},loc:{start:{line:22,column:25},end:{line:23,column:5}},line:22},5:{name:"(anonymous_5)",decl:{start:{line:30,column:2},end:{line:30,column:3}},loc:{start:{line:30,column:21},end:{line:39,column:3}},line:30},6:{name:"(anonymous_6)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:28},end:{line:45,column:3}},line:40},7:{name:"(anonymous_7)",decl:{start:{line:46,column:2},end:{line:46,column:3}},loc:{start:{line:46,column:32},end:{line:52,column:3}},line:46},8:{name:"(anonymous_8)",decl:{start:{line:53,column:2},end:{line:53,column:3}},loc:{start:{line:53,column:22},end:{line:106,column:3}},line:53},9:{name:"(anonymous_9)",decl:{start:{line:69,column:26},end:{line:69,column:27}},loc:{start:{line:69,column:35},end:{line:77,column:5}},line:69},10:{name:"(anonymous_10)",decl:{start:{line:78,column:22},end:{line:78,column:23}},loc:{start:{line:78,column:28},end:{line:88,column:5}},line:78},11:{name:"(anonymous_11)",decl:{start:{line:91,column:25},end:{line:91,column:26}},loc:{start:{line:91,column:33},end:{line:101,column:5}},line:91},12:{name:"(anonymous_12)",decl:{start:{line:107,column:17},end:{line:107,column:18}},loc:{start:{line:107,column:24},end:{line:110,column:3}},line:107},13:{name:"(anonymous_13)",decl:{start:{line:111,column:2},end:{line:111,column:3}},loc:{start:{line:111,column:11},end:{line:170,column:3}},line:111},14:{name:"(anonymous_14)",decl:{start:{line:116,column:15},end:{line:116,column:16}},loc:{start:{line:116,column:22},end:{line:116,column:45}},line:116},15:{name:"(anonymous_15)",decl:{start:{line:161,column:15},end:{line:161,column:16}},loc:{start:{line:161,column:22},end:{line:161,column:40}},line:161}},branchMap:{0:{loc:{start:{line:10,column:2},end:{line:14,column:3}},type:"if",locations:[{start:{line:10,column:2},end:{line:14,column:3}},{start:{line:12,column:9},end:{line:14,column:3}}],line:10},1:{loc:{start:{line:10,column:6},end:{line:10,column:34}},type:"binary-expr",locations:[{start:{line:10,column:6},end:{line:10,column:13}},{start:{line:10,column:17},end:{line:10,column:34}}],line:10},2:{loc:{start:{line:41,column:4},end:{line:42,column:13}},type:"if",locations:[{start:{line:41,column:4},end:{line:42,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:41},3:{loc:{start:{line:47,column:4},end:{line:51,column:5}},type:"if",locations:[{start:{line:47,column:4},end:{line:51,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},4:{loc:{start:{line:132,column:26},end:{line:132,column:59}},type:"binary-expr",locations:[{start:{line:132,column:26},end:{line:132,column:53}},{start:{line:132,column:57},end:{line:132,column:59}}],line:132},5:{loc:{start:{line:143,column:6},end:{line:156,column:10}},type:"binary-expr",locations:[{start:{line:143,column:6},end:{line:143,column:29}},{start:{line:143,column:49},end:{line:156,column:10}}],line:143}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/MapOpenLayers.tsx"],names:[],mappings:"AAkBW,cAuIL,YAvIK;AAlBX,OAAO,WAAW;AAClB,SAAQ,gBAAe;AAEvB,OAAO,6BAA6B;AAEpC,OAAO;AACP,SAAQ,aAAY;AACpB,SAAQ,KAAK,MAAM,eAAc;AAEjC,SAAQ,gBAAe;AAIvB,SAAS,aAAc,QAAkB;AACvC,MAAI,CAAC,UAAU,OAAO,SAAS,GAAG;AAChC,WAAO;AAAA,EACT,OACK;AACH,WAAO,oBAAC,UAAK,WAAU,mBACpB,iBAAO,IAAI,CAAC,UAAU,OAAO,KAAK,EAAE,SAAS,GAAG,GAAQ,CAAC,EAAE,KAAK,IAAI,GACvE;AAAA,EACF;AACF;AAqBA,qBAAqB,sBAAsB,MAAM,UAAkD;AAAA,EACjG,OAAO,eAAe;AAAA,IACpB,aAAa,MAAM;AAAA,IAAC;AAAA,IACpB,cAAc,MAAM;AAAA,IAAC;AAAA,IACrB,eAAe,MAAM;AAAA,IAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAmC;AAAA,EACnC;AAAA,EACA,iBAAqC;AAAA,EAErC,YAAY,OAA2B;AACrC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM;AAAA,MACN,UAAU;AAAA,MACV,QAAQ,CAAC;AAAA,MACT,QAAQ,CAAC;AAAA,IACX;AACA,SAAK,cAAc,SAAS,KAAK,aAAa,KAAK,IAAI,GAAG,GAAG;AAAA,EAC/D;AAAA,EAEA,aAAa,aAAiC;AAC5C,QAAG,CAAC,KAAK;AAAK;AAGd,SAAK,IAAI,UAAU,EAAE,MAAM;AAC3B,UAAM,KAAK,KAAK,WAAW;AAAA,EAC7B;AAAA,EAEA,mBAAmB,WAA+B;AAChD,QAAI,KAAK,MAAM,aAAa,UAAU,UAAU;AAC9C,WAAK;AAAA,QACH,KAAK,MAAM,oBAAoB,KAAK,MAAM,QAAQ;AAAA,MACpD;AAAA,IACF;AAAA,EACF;AAAA,EAEA,oBAAoB;AAClB,SAAK,UAAU,IAAI,QAAQ;AAAA,MACzB,SAAS,KAAK;AAAA,MACd,SAAS;AAAA,MACT,kBAAkB;AAAA,QAChB,UAAU;AAAA,MACZ;AAAA,IACF,CAAC;AAED,UAAM,MAAM,IAAI,IAAI;AAAA,MAClB,QAAQ,KAAK;AAAA,MACb,UAAU,CAAC,KAAK,OAAO;AAAA,MACvB,MAAM,IAAI,KAAK;AAAA,QACb,MAAM;AAAA,QACN,QAAQ,CAAC,KAAK,GAAG;AAAA,MACnB,CAAC;AAAA,IACH,CAAC;AAED,QAAI,GAAG,eAAe,CAAC,QAAQ;AAC7B,YAAM,SAAS,SAAS,IAAI,UAAU;AACtC,WAAK,SAAS;AAAA,QACZ,QAAQ;AAAA,UACN,OAAO,CAAC,EAAE,QAAQ,CAAC;AAAA,UACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;AAAA,QACrB;AAAA,MACF,CAAC;AAAA,IACH,CAAC;AAED,UAAM,YAAY,MAAM;AACtB,YAAM,OAAO,IAAI,QAAQ,EAAE,QAAQ;AACnC,YAAM,SAAS,SAAS,IAAI,QAAQ,EAAE,UAAU,CAAE;AAElD,WAAK,MAAM,SAAS;AAAA,QAClB;AAAA,QACA,QAAQ;AAAA,UACN,KAAK,OAAO,CAAC;AAAA,UACb,KAAK,OAAO,CAAC;AAAA,QACf;AAAA,MACF,CAAC;AAAA,IACH;AAEA,cAAU;AACV,QAAI,GAAG,WAAW,SAAS;AAE3B,QAAI,GAAG,cAAc,CAAC,OAAO;AAC3B,YAAM,SAAS,SAAS,IAAI,QAAQ,EAAE,UAAU,CAAE;AAClD,WAAK,SAAS;AAAA,QACZ,QAAQ;AAAA,UACN,OAAO,CAAC,EAAE,QAAQ,CAAC;AAAA,UACnB,OAAO,CAAC,EAAE,QAAQ,CAAC;AAAA,QACrB;AAAA,QACA,UAAU,IAAI,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC;AAAA,QAC/C,MAAM,IAAI,QAAQ,EAAE,QAAQ,EAAG,QAAQ,CAAC;AAAA,MAC1C,CAAC;AAAA,IACH,CAAC;AAID,SAAK,MAAM;AACX,SAAK;AAAA,MACH,KAAK,MAAM,oBAAoB,KAAK,MAAM,QAAQ;AAAA,IACpD;AAAA,EACF;AAAA,EAEA,eAAe,CAAC,MAAW;AACzB,MAAE,OAAO,KAAK;AACd,SAAK,QAAS,YAAY,MAAS;AAAA,EACrC;AAAA,EAEA,SAAS;AACP,WAAO,qBAAC,SAAI,WAAU,yBACpB;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,KAAK,OAAK,KAAK,iBAAiB;AAAA,UAChC,OAAO,EAAC,YAAY,QAAO;AAAA,UAC3B,WAAU;AAAA,UAEV;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,WAAU;AAAA,gBACV,SAAS,KAAK;AAAA,gBACd,cAAW;AAAA,gBACZ;AAAA;AAAA,YAED;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,UAAU,KAAK,MAAM,oBAAoB,CAAC;AAAA,gBAC1C,eAAe,KAAK,MAAM;AAAA;AAAA,YAC5B;AAAA;AAAA;AAAA,MACF;AAAA,MACA,qBAAC,SAAI,WAAU,oBAAmB;AAAA;AAAA,QACzB,KAAK,MAAM;AAAA,SACpB;AAAA,MACC,KAAK,MAAM,gBACV,qBAAC,SAAI,WAAU,qBACb;AAAA,6BAAC,SACC;AAAA,8BAAC,WAAM,sBAAQ;AAAA,UACf,oBAAC,UAAM,uBAAa,KAAK,MAAM,MAAM,GAAE;AAAA,WACzC;AAAA,QACA,qBAAC,SACC;AAAA,8BAAC,WAAM,sBAAQ;AAAA,UACf,oBAAC,UAAM,uBAAa,KAAK,MAAM,MAAM,GAAE;AAAA,WACzC;AAAA,QACA,qBAAC,SACC;AAAA,8BAAC,WAAM,wBAAU;AAAA,UACjB,oBAAC,UAAM,eAAK,MAAM,UAAS;AAAA,WAC7B;AAAA,SACF;AAAA,MAEF;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,KAAK,OAAK,KAAK,YAAY;AAAA,UAC3B,MAAK;AAAA,UACL,cAAW;AAAA,UACX,OAAO;AAAA,YACL,GAAG,KAAK,MAAM;AAAA,UAChB;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7242f6b015e11a4c9eb3973d702f9d425918e132"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Er=function(){return s},s}Er();function CT(e){return Er().f[0]++,Er().s[0]++,Er().b[1][0]++,!e||(Er().b[1][1]++,e.length<2)?(Er().b[0][0]++,Er().s[1]++,null):(Er().b[0][1]++,Er().s[2]++,N.jsx("span",{className:"maputnik-coords",children:e.map(n=>(Er().f[1]++,Er().s[3]++,String(n).padStart(7," "))).join(", ")}))}class Ij extends bn.Component{constructor(t){Er().f[5]++,Er().s[7]++;super(t);nn(this,"updateStyle");nn(this,"map");nn(this,"container",(Er().s[5]++,null));nn(this,"overlay");nn(this,"popupContainer",(Er().s[6]++,null));nn(this,"closeOverlay",(Er().s[32]++,t=>{Er().f[12]++,Er().s[33]++,t.target.blur(),Er().s[34]++,this.overlay.setPosition(void 0)}));Er().s[8]++,this.state={zoom:"0",rotation:"0",cursor:[],center:[]},Er().s[9]++,this.updateStyle=Q4.throttle(this._updateStyle.bind(this),200)}_updateStyle(t){if(Er().f[6]++,Er().s[10]++,this.map)Er().b[2][1]++;else{Er().b[2][0]++,Er().s[11]++;return}Er().s[12]++,this.map.getLayers().clear(),Er().s[13]++,QAe(this.map,t)}componentDidUpdate(t){Er().f[7]++,Er().s[14]++,this.props.mapStyle!==t.mapStyle?(Er().b[3][0]++,Er().s[15]++,this.updateStyle(this.props.replaceAccessTokens(this.props.mapStyle))):Er().b[3][1]++}componentDidMount(){Er().f[8]++,Er().s[16]++,this.overlay=new oie({element:this.popupContainer,autoPan:!0,autoPanAnimation:{duration:250}});const t=(Er().s[17]++,new g7({target:this.container,overlays:[this.overlay],view:new pp({zoom:1,center:[180,-90]})}));Er().s[18]++,t.on("pointermove",i=>{Er().f[9]++;const o=(Er().s[19]++,lM(i.coordinate));Er().s[20]++,this.setState({cursor:[o[0].toFixed(2),o[1].toFixed(2)]})}),Er().s[21]++;const r=()=>{Er().f[10]++;const i=(Er().s[22]++,t.getView().getZoom()),o=(Er().s[23]++,lM(t.getView().getCenter()));Er().s[24]++,this.props.onChange({zoom:i,center:{lng:o[0],lat:o[1]}})};Er().s[25]++,r(),Er().s[26]++,t.on("moveend",r),Er().s[27]++,t.on("postrender",i=>{Er().f[11]++;const o=(Er().s[28]++,lM(t.getView().getCenter()));Er().s[29]++,this.setState({center:[o[0].toFixed(2),o[1].toFixed(2)],rotation:t.getView().getRotation().toFixed(2),zoom:t.getView().getZoom().toFixed(2)})}),Er().s[30]++,this.map=t,Er().s[31]++,this.updateStyle(this.props.replaceAccessTokens(this.props.mapStyle))}render(){return Er().f[13]++,Er().s[35]++,N.jsxs("div",{className:"maputnik-ol-container",children:[N.jsxs("div",{ref:t=>(Er().f[14]++,Er().s[36]++,this.popupContainer=t),style:{background:"black"},className:"maputnik-popup",children:[N.jsx("button",{className:"maplibregl-popup-close-button",onClick:this.closeOverlay,"aria-label":"Close popup",children:"×"}),N.jsx(HR,{features:(Er().b[4][0]++,this.state.selectedFeatures||(Er().b[4][1]++,[])),onLayerSelect:this.props.onLayerSelect})]}),N.jsxs("div",{className:"maputnik-ol-zoom",children:["Zoom: ",this.state.zoom]}),(Er().b[5][0]++,this.props.debugToolbox&&(Er().b[5][1]++,N.jsxs("div",{className:"maputnik-ol-debug",children:[N.jsxs("div",{children:[N.jsx("label",{children:"cursor: "}),N.jsx("span",{children:CT(this.state.cursor)})]}),N.jsxs("div",{children:[N.jsx("label",{children:"center: "}),N.jsx("span",{children:CT(this.state.center)})]}),N.jsxs("div",{children:[N.jsx("label",{children:"rotation: "}),N.jsx("span",{children:this.state.rotation})]})]}))),N.jsx("div",{className:"maputnik-ol",ref:t=>(Er().f[15]++,Er().s[37]++,this.container=t),role:"region","aria-label":"Map view",style:{...this.props.style}})]})}}nn(Ij,"defaultProps",(Er().s[4]++,{onMapLoaded:()=>{Er().f[2]++},onDataChange:()=>{Er().f[3]++},onLayerSelect:()=>{Er().f[4]++}}));function T0(){var e="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",n="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return T0=function(){return s},s}T0();class $Ae extends bn.Component{render(){T0().f[0]++;const n=(T0().s[0]++,{width:20,height:20,...this.props.style});return T0().s[1]++,this.props.isCollapsed?(T0().b[0][0]++,N.jsx(SJ,{style:n})):(T0().b[0][1]++,N.jsx(MJ,{style:n}))}}function zg(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",n="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return zg=function(){return s},s}zg();class YAe extends bn.Component{render(){return zg().f[0]++,zg().s[0]++,N.jsx("li",{className:"maputnik-layer-list-group",children:N.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:n=>(zg().f[1]++,zg().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[N.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),N.jsx("span",{className:"maputnik-space"}),N.jsx($Ae,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function x_(){return x_=Object.assign?Object.assign.bind():function(e){for(var n=1;ne.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(oce)}}]),e}();function oce(e,n){var t=e.node.sortableInfo.index,r=n.node.sortableInfo.index;return t-r}function Fj(e,n){return Object.keys(e).reduce(function(t,r){return n.indexOf(r)===-1&&(t[r]=e[r]),t},{})}var Ag={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dj=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],n=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(n){case"ms":return"ms";default:return n&&n.length?n[0].toUpperCase()+n.substr(1):""}}();function Fx(e,n){Object.keys(n).forEach(function(t){e.style[t]=n[t]})}function Dx(e,n){e.style["".concat(Dj,"Transform")]=n==null?"":"translate3d(".concat(n.x,"px,").concat(n.y,"px,0)")}function zM(e,n){e.style["".concat(Dj,"TransitionDuration")]=n==null?"":"".concat(n,"ms")}function cC(e,n){for(;e;){if(n(e))return e;e=e.parentNode}return null}function bT(e,n,t){return Math.max(e,Math.min(t,n))}function jg(e){return e.substr(-2)==="px"?parseFloat(e):0}function ace(e){var n=window.getComputedStyle(e);return{bottom:jg(n.marginBottom),left:jg(n.marginLeft),right:jg(n.marginRight),top:jg(n.marginTop)}}function Z7(e,n){var t=n.displayName||n.name;return t?"".concat(e,"(").concat(t,")"):e}function jM(e,n){var t=e.getBoundingClientRect();return{top:t.top+n.top,left:t.left+n.left}}function $v(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function sce(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function C2(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var r={left:t.left+e.offsetLeft,top:t.top+e.offsetTop};return e.parentNode===n?r:C2(e.parentNode,n,r)}}function lce(e,n,t){return en?e-1:e>t&&e0&&t[s].height>0){var a=o.getContext("2d");a.drawImage(t[s],0,0)}}),r}function hce(e){var n,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=n=function(i){H7(o,i);function o(){var s,a;tb(this,o);for(var f=arguments.length,g=new Array(f),x=0;x=s.y-f/2&&!ne?(g.y=1,x.y=k.y*Math.abs((s.y-f/2-i.y)/f)):i.x>=s.x-a/2&&!ae?(g.x=1,x.x=k.x*Math.abs((s.x-a/2-i.x)/a)):i.y<=o.y+f/2&&!oe?(g.y=-1,x.y=k.y*Math.abs((i.y-f/2-o.y)/f)):i.x<=o.x+a/2&&!ce&&(g.x=-1,x.x=k.x*Math.abs((i.x-a/2-o.x)/a)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(g.x!==0||g.y!==0)&&(this.interval=setInterval(function(){r.isAutoScrolling=!0;var ue={left:x.x*g.x,top:x.y*g.y};r.container.scrollTop+=ue.top,r.container.scrollLeft+=ue.left,r.onScrollCallback(ue)},5))}}]),e}();function pce(e){var n=e.node;return{height:n.offsetHeight,width:n.offsetWidth}}function mce(e){var n=[K0.Input,K0.Textarea,K0.Select,K0.Option,K0.Button];return!!(n.indexOf(e.target.tagName)!==-1||cC(e.target,function(t){return t.contentEditable==="true"}))}var Rj={axis:Pr.oneOf(["x","y","xy"]),contentWindow:Pr.any,disableAutoscroll:Pr.bool,distance:Pr.number,getContainer:Pr.func,getHelperDimensions:Pr.func,helperClass:Pr.string,helperContainer:Pr.oneOfType([Pr.func,typeof HTMLElement>"u"?Pr.any:Pr.instanceOf(HTMLElement)]),hideSortableGhost:Pr.bool,keyboardSortingTransitionDuration:Pr.number,lockAxis:Pr.string,lockOffset:Pr.oneOfType([Pr.number,Pr.string,Pr.arrayOf(Pr.oneOfType([Pr.number,Pr.string]))]),lockToContainerEdges:Pr.bool,onSortEnd:Pr.func,onSortMove:Pr.func,onSortOver:Pr.func,onSortStart:Pr.func,pressDelay:Pr.number,pressThreshold:Pr.number,keyCodes:Pr.shape({lift:Pr.arrayOf(Pr.number),drop:Pr.arrayOf(Pr.number),cancel:Pr.arrayOf(Pr.number),up:Pr.arrayOf(Pr.number),down:Pr.arrayOf(Pr.number)}),shouldCancelStart:Pr.func,transitionDuration:Pr.number,updateBeforeSortStart:Pr.func,useDragHandle:Pr.bool,useWindowAsScrollContainer:Pr.bool},Lj={lift:[_0.SPACE],drop:[_0.SPACE],cancel:[_0.ESC],up:[_0.UP,_0.LEFT],down:[_0.DOWN,_0.RIGHT]},gce={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:pce,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Lj,shouldCancelStart:mce,transitionDuration:300,useWindowAsScrollContainer:!1},yce=Object.keys(Rj);function vce(e){f1(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Cce(e,n){try{var t=e()}catch(r){return n(!0,r)}return t&&t.then?t.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}var zj=kr.createContext({manager:{}});function _ce(e){var n,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=n=function(i){H7(o,i);function o(s){var a;tb(this,o),a=V7(this,w_(o).call(this,s)),pa(Ao(Ao(a)),"state",{}),pa(Ao(Ao(a)),"handleStart",function(g){var x=a.props,k=x.distance,B=x.shouldCancelStart;if(!(g.button===2||B(g))){a.touched=!0,a.position=$v(g);var P=cC(g.target,function(oe){return oe.sortableInfo!=null});if(P&&P.sortableInfo&&a.nodeIsChild(P)&&!a.state.sorting){var R=a.props.useDragHandle,H=P.sortableInfo,W=H.index,$=H.collection,q=H.disabled;if(q||R&&!cC(g.target,wT))return;a.manager.active={collection:$,index:W},!sce(g)&&g.target.tagName===K0.Anchor&&g.preventDefault(),k||(a.props.pressDelay===0?a.handlePress(g):a.pressTimer=setTimeout(function(){return a.handlePress(g)},a.props.pressDelay))}}}),pa(Ao(Ao(a)),"nodeIsChild",function(g){return g.sortableInfo.manager===a.manager}),pa(Ao(Ao(a)),"handleMove",function(g){var x=a.props,k=x.distance,B=x.pressThreshold;if(!a.state.sorting&&a.touched&&!a._awaitingUpdateBeforeSortStart){var P=$v(g),R={x:a.position.x-P.x,y:a.position.y-P.y},H=Math.abs(R.x)+Math.abs(R.y);a.delta=R,!k&&(!B||H>=B)?(clearTimeout(a.cancelTimer),a.cancelTimer=setTimeout(a.cancel,0)):k&&H>=k&&a.manager.isActive()&&a.handlePress(g)}}),pa(Ao(Ao(a)),"handleEnd",function(){a.touched=!1,a.cancel()}),pa(Ao(Ao(a)),"cancel",function(){var g=a.props.distance,x=a.state.sorting;x||(g||clearTimeout(a.pressTimer),a.manager.active=null)}),pa(Ao(Ao(a)),"handlePress",function(g){try{var x=a.manager.getActive(),k=function(){if(x){var B=function(){var Ne=ce.sortableInfo.index,rt=ace(ce),ct=cce(a.container),Fe=a.scrollContainer.getBoundingClientRect(),He=H({index:Ne,node:ce,collection:ae});if(a.node=ce,a.margin=rt,a.gridGap=ct,a.width=He.width,a.height=He.height,a.marginOffset={x:a.margin.left+a.margin.right+a.gridGap.x,y:Math.max(a.margin.top,a.margin.bottom,a.gridGap.y)},a.boundingClientRect=ce.getBoundingClientRect(),a.containerBoundingRect=Fe,a.index=Ne,a.newIndex=Ne,a.axis={x:R.indexOf("x")>=0,y:R.indexOf("y")>=0},a.offsetEdge=C2(ce,a.container),ue?a.initialOffset=$v(LM({},g,{pageX:a.boundingClientRect.left,pageY:a.boundingClientRect.top})):a.initialOffset=$v(g),a.initialScroll={left:a.scrollContainer.scrollLeft,top:a.scrollContainer.scrollTop},a.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},a.helper=a.helperContainer.appendChild(dce(ce)),Fx(a.helper,{boxSizing:"border-box",height:"".concat(a.height,"px"),left:"".concat(a.boundingClientRect.left-rt.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(a.boundingClientRect.top-rt.top,"px"),width:"".concat(a.width,"px")}),ue&&a.helper.focus(),$&&(a.sortableGhost=ce,Fx(ce,{opacity:0,visibility:"hidden"})),a.minTranslate={},a.maxTranslate={},ue){var Ce=ne?{top:0,left:0,width:a.contentWindow.innerWidth,height:a.contentWindow.innerHeight}:a.containerBoundingRect,jt=Ce.top,Ft=Ce.left,Jt=Ce.width,Nt=Ce.height,Ve=jt+Nt,nt=Ft+Jt;a.axis.x&&(a.minTranslate.x=Ft-a.boundingClientRect.left,a.maxTranslate.x=nt-(a.boundingClientRect.left+a.width)),a.axis.y&&(a.minTranslate.y=jt-a.boundingClientRect.top,a.maxTranslate.y=Ve-(a.boundingClientRect.top+a.height))}else a.axis.x&&(a.minTranslate.x=(ne?0:Fe.left)-a.boundingClientRect.left-a.width/2,a.maxTranslate.x=(ne?a.contentWindow.innerWidth:Fe.left+Fe.width)-a.boundingClientRect.left-a.width/2),a.axis.y&&(a.minTranslate.y=(ne?0:Fe.top)-a.boundingClientRect.top-a.height/2,a.maxTranslate.y=(ne?a.contentWindow.innerHeight:Fe.top+Fe.height)-a.boundingClientRect.top-a.height/2);W&&W.split(" ").forEach(function(Je){return a.helper.classList.add(Je)}),a.listenerNode=g.touches?g.target:a.contentWindow,ue?(a.listenerNode.addEventListener("wheel",a.handleKeyEnd,!0),a.listenerNode.addEventListener("mousedown",a.handleKeyEnd,!0),a.listenerNode.addEventListener("keydown",a.handleKeyDown)):(Ag.move.forEach(function(Je){return a.listenerNode.addEventListener(Je,a.handleSortMove,!1)}),Ag.end.forEach(function(Je){return a.listenerNode.addEventListener(Je,a.handleSortEnd,!1)})),a.setState({sorting:!0,sortingIndex:Ne}),oe&&oe({node:ce,index:Ne,collection:ae,isKeySorting:ue,nodes:a.manager.getOrderedRefs(),helper:a.helper},g),ue&&a.keyMove(0)},P=a.props,R=P.axis,H=P.getHelperDimensions,W=P.helperClass,$=P.hideSortableGhost,q=P.updateBeforeSortStart,oe=P.onSortStart,ne=P.useWindowAsScrollContainer,ce=x.node,ae=x.collection,ue=a.manager.isKeySorting,ye=function(){if(typeof q=="function"){a._awaitingUpdateBeforeSortStart=!0;var Re=Cce(function(){var Ne=ce.sortableInfo.index;return Promise.resolve(q({collection:ae,index:Ne,node:ce,isKeySorting:ue},g)).then(function(){})},function(Ne,rt){if(a._awaitingUpdateBeforeSortStart=!1,Ne)throw rt;return rt});if(Re&&Re.then)return Re.then(function(){})}}();return ye&&ye.then?ye.then(B):B(ye)}}();return Promise.resolve(k&&k.then?k.then(function(){}):void 0)}catch(B){return Promise.reject(B)}}),pa(Ao(Ao(a)),"handleSortMove",function(g){var x=a.props.onSortMove;typeof g.preventDefault=="function"&&g.cancelable&&g.preventDefault(),a.updateHelperPosition(g),a.animateNodes(),a.autoscroll(),x&&x(g)}),pa(Ao(Ao(a)),"handleSortEnd",function(g){var x=a.props,k=x.hideSortableGhost,B=x.onSortEnd,P=a.manager,R=P.active.collection,H=P.isKeySorting,W=a.manager.getOrderedRefs();a.listenerNode&&(H?(a.listenerNode.removeEventListener("wheel",a.handleKeyEnd,!0),a.listenerNode.removeEventListener("mousedown",a.handleKeyEnd,!0),a.listenerNode.removeEventListener("keydown",a.handleKeyDown)):(Ag.move.forEach(function(ce){return a.listenerNode.removeEventListener(ce,a.handleSortMove)}),Ag.end.forEach(function(ce){return a.listenerNode.removeEventListener(ce,a.handleSortEnd)}))),a.helper.parentNode.removeChild(a.helper),k&&a.sortableGhost&&Fx(a.sortableGhost,{opacity:"",visibility:""});for(var $=0,q=W.length;$k)){a.prevIndex=P,a.newIndex=B;var R=lce(a.newIndex,a.prevIndex,a.index),H=x.find(function(ue){var ye=ue.node;return ye.sortableInfo.index===R}),W=H.node,$=a.containerScrollDelta,q=H.boundingClientRect||jM(W,$),oe=H.translate||{x:0,y:0},ne={top:q.top+oe.y-$.top,left:q.left+oe.x-$.left},ce=Pae?ae/2:this.height/2,width:this.width>ce?ce/2:this.width/2},ye=H&&ne>this.index&&ne<=W,Re=H&&ne=W,Ne={x:0,y:0},rt=P[$].edgeOffset;rt||(rt=C2(oe,this.container),P[$].edgeOffset=rt,H&&(P[$].boundingClientRect=jM(oe,k)));var ct=$0&&P[$-1];if(ct&&!ct.edgeOffset&&(ct.edgeOffset=C2(ct.node,this.container),H&&(ct.boundingClientRect=jM(ct.node,k))),ne===this.index){g&&(this.sortableGhost=oe,Fx(oe,{opacity:0,visibility:"hidden"}));continue}f&&zM(oe,f),this.axis.x?this.axis.y?Re||nethis.containerBoundingRect.width-ue.width&&ct&&(Ne.x=ct.edgeOffset.left-rt.left,Ne.y=ct.edgeOffset.top-rt.top),this.newIndex===null&&(this.newIndex=ne)):(ye||ne>this.index&&(R.left+B.left+ue.width>=rt.left&&R.top+B.top+ue.height>=rt.top||R.top+B.top+ue.height>=rt.top+ae))&&(Ne.x=-(this.width+this.marginOffset.x),rt.left+Ne.xthis.index&&R.left+B.left+ue.width>=rt.left?(Ne.x=-(this.width+this.marginOffset.x),this.newIndex=ne):(Re||nethis.index&&R.top+B.top+ue.height>=rt.top?(Ne.y=-(this.height+this.marginOffset.y),this.newIndex=ne):(Re||ne1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=n=function(i){H7(o,i);function o(){var s,a;tb(this,o);for(var f=arguments.length,g=new Array(f),x=0;x0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(a,this.ref)}},{key:"getWrappedInstance",value:function(){return f1(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var a=r.withRef?this.wrappedInstance:null;return kr.createElement(e,x_({ref:a},Fj(this.props,bce)))}}]),o}(kr.Component),pa(n,"displayName",Z7("sortableElement",e)),pa(n,"contextType",zj),pa(n,"propTypes",jj),pa(n,"defaultProps",{collection:0}),t}function fi(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerListItem.tsx",n="63fcf32b678e8e84bae6e5adc5bc926b1550ab61",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListItem.tsx",statementMap:{0:{start:{line:8,column:23},end:{line:19,column:2}},1:{start:{line:9,column:2},end:{line:18,column:7}},2:{start:{line:22,column:4},end:{line:31,column:5}},3:{start:{line:24,column:8},end:{line:24,column:54}},4:{start:{line:26,column:8},end:{line:26,column:53}},5:{start:{line:28,column:8},end:{line:28,column:56}},6:{start:{line:30,column:8},end:{line:30,column:49}},7:{start:{line:34,column:51},end:{line:34,column:61}},8:{start:{line:35,column:25},end:{line:35,column:27}},9:{start:{line:36,column:4},end:{line:41,column:5}},10:{start:{line:37,column:6},end:{line:37,column:76}},11:{start:{line:38,column:6},end:{line:40,column:7}},12:{start:{line:39,column:8},end:{line:39,column:103}},13:{start:{line:42,column:4},end:{line:53,column:6}},14:{start:{line:57,column:24},end:{line:66,column:3}},15:{start:{line:67,column:29},end:{line:69,column:3}},16:{start:{line:71,column:4},end:{line:73,column:6}},17:{start:{line:76,column:29},end:{line:76,column:82}},18:{start:{line:77,column:4},end:{line:122,column:6}},19:{start:{line:81,column:25},end:{line:81,column:72}},20:{start:{line:97,column:31},end:{line:97,column:79}},21:{start:{line:106,column:31},end:{line:106,column:76}},22:{start:{line:116,column:31},end:{line:116,column:88}},23:{start:{line:125,column:30},end:{line:125,column:106}},24:{start:{line:125,column:73},end:{line:125,column:105}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:38},end:{line:8,column:39}},loc:{start:{line:8,column:49},end:{line:19,column:1}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:21,column:2},end:{line:21,column:3}},loc:{start:{line:21,column:15},end:{line:32,column:3}},line:21},2:{name:"(anonymous_2)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:11},end:{line:54,column:3}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:60,column:17},end:{line:60,column:18}},loc:{start:{line:60,column:23},end:{line:61,column:5}},line:60},4:{name:"(anonymous_4)",decl:{start:{line:62,column:20},end:{line:62,column:21}},loc:{start:{line:62,column:26},end:{line:63,column:5}},line:62},5:{name:"(anonymous_5)",decl:{start:{line:64,column:29},end:{line:64,column:30}},loc:{start:{line:64,column:35},end:{line:65,column:5}},line:64},6:{name:"(anonymous_6)",decl:{start:{line:70,column:2},end:{line:70,column:3}},loc:{start:{line:70,column:20},end:{line:74,column:3}},line:70},7:{name:"(anonymous_7)",decl:{start:{line:75,column:2},end:{line:75,column:3}},loc:{start:{line:75,column:11},end:{line:123,column:3}},line:75},8:{name:"(anonymous_8)",decl:{start:{line:81,column:17},end:{line:81,column:18}},loc:{start:{line:81,column:25},end:{line:81,column:72}},line:81},9:{name:"(anonymous_9)",decl:{start:{line:97,column:23},end:{line:97,column:24}},loc:{start:{line:97,column:31},end:{line:97,column:79}},line:97},10:{name:"(anonymous_10)",decl:{start:{line:106,column:23},end:{line:106,column:24}},loc:{start:{line:106,column:31},end:{line:106,column:76}},line:106},11:{name:"(anonymous_11)",decl:{start:{line:116,column:23},end:{line:116,column:24}},loc:{start:{line:116,column:31},end:{line:116,column:88}},line:116},12:{name:"(anonymous_12)",decl:{start:{line:125,column:46},end:{line:125,column:47}},loc:{start:{line:125,column:73},end:{line:125,column:105}},line:125}},branchMap:{0:{loc:{start:{line:22,column:4},end:{line:31,column:5}},type:"switch",locations:[{start:{line:23,column:6},end:{line:24,column:54}},{start:{line:25,column:6},end:{line:26,column:53}},{start:{line:27,column:6},end:{line:28,column:56}},{start:{line:29,column:6},end:{line:30,column:49}}],line:22},1:{loc:{start:{line:36,column:4},end:{line:41,column:5}},type:"if",locations:[{start:{line:36,column:4},end:{line:41,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:36},2:{loc:{start:{line:38,column:6},end:{line:40,column:7}},type:"if",locations:[{start:{line:38,column:6},end:{line:40,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:38},3:{loc:{start:{line:76,column:29},end:{line:76,column:82}},type:"cond-expr",locations:[{start:{line:76,column:67},end:{line:76,column:73}},{start:{line:76,column:76},end:{line:76,column:82}}],line:76}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},b:{0:[0,0,0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListItem.tsx"],names:[],mappings:"AAgBS,SACL,KADK;AAhBT,OAAO,WAAW;AAClB,OAAO,eAAe;AACtB,OAAO,gBAAgB;AAEvB,SAAQ,eAAe,cAAc,iBAAiB,gBAAe;AAErE,OAAO,eAAe;AACtB,SAAQ,iBAAiB,sBAAqB;AAQ9C,MAAM,iBAAiB,eAAe,CAAC,UAA+B;AACpE,SAAO,qBAAC,SAAI,WAAU,mCACpB;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,MAAM,MAAM;AAAA;AAAA,IACd;AAAA,IACA,oBAAC,YAAO,WAAU,+BACf,gBAAM,SACT;AAAA,KACF;AACF,CAAC;AAUD,MAAM,mBAAmB,MAAM,UAA2B;AAAA,EACxD,aAAa;AACX,YAAO,KAAK,MAAM,QAAQ;AAAA,MAC1B,KAAK;AAAa,eAAO,oBAAC,iBAAc;AAAA,MACxC,KAAK;AAAQ,eAAO,oBAAC,gBAAa;AAAA,MAClC,KAAK;AAAQ,eAAO,oBAAC,mBAAgB;AAAA,MACrC,KAAK;AAAU,eAAO,oBAAC,YAAS;AAAA,IAChC;AAAA,EACF;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,gBAAgB,mBAAkB,IAAI,KAAK;AAElD,QAAI,iBAAiB;AACrB,QAAI,gBAAgB;AAClB,uBAAiB,oCAAoC,cAAc;AAEnE,UAAI,oBAAoB;AACtB,0BAAkB,qCAAqC,cAAc,KAAK,kBAAkB;AAAA,MAC9F;AAAA,IACF;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,UAAU;AAAA,QACV,OAAO,KAAK,MAAM;AAAA,QAClB,WAAW,mCAAmC,cAAc;AAAA,QAC5D,eAAa,KAAK,MAAM;AAAA,QACxB,SAAS,KAAK,MAAM;AAAA,QACpB,eAAY;AAAA,QAEX,eAAK,WAAW;AAAA;AAAA,IACnB;AAAA,EACF;AACF;AAgBA,MAAM,sBAAsB,MAAM,UAA8B;AAAA,EAC9D,OAAO,eAAe;AAAA,IACpB,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa,MAAM;AAAA,IAAC;AAAA,IACpB,gBAAgB,MAAM;AAAA,IAAC;AAAA,IACvB,yBAAyB,MAAM;AAAA,IAAC;AAAA,EAClC;AAAA,EAEA,OAAO,oBAAoB;AAAA,IACzB,eAAe,UAAU;AAAA,EAC3B;AAAA,EAEA,kBAAkB;AAChB,WAAO;AAAA,MACL,eAAe,EAAE,MAAM,GAAG;AAAA,IAC5B;AAAA,EACF;AAAA,EAEA,SAAS;AACP,UAAM,mBAAmB,KAAK,MAAM,eAAe,YAAY,SAAS;AAExE,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,IAAI,KAAK,MAAM;AAAA,QAEf,SAAS,QAAM,KAAK,MAAM,cAAc,KAAK,MAAM,UAAU;AAAA,QAC7D,eAAa,qBAAmB,KAAK,MAAM;AAAA,QAC3C,WAAW,WAAW;AAAA,UACpB,4BAA4B;AAAA,UAC5B,qCAAqC,KAAK,MAAM;AAAA,UAChD,CAAC,KAAK,MAAM,SAAU,GAAG;AAAA,QAC3B,CAAC;AAAA,QACD;AAAA,8BAAC,kBAAgB,GAAG,KAAK,OAAO;AAAA,UAChC,oBAAC,UAAK,OAAO,EAAC,UAAU,EAAC,GAAG;AAAA,UAC5B;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,qBAAmB,KAAK,MAAM,UAAQ;AAAA,cAC7C,QAAQ;AAAA,cACR,gBAAe;AAAA,cACf,SAAS,QAAM,KAAK,MAAM,eAAgB,KAAK,MAAM,UAAU;AAAA;AAAA,UACjE;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,qBAAmB,KAAK,MAAM,UAAQ;AAAA,cAC7C,QAAQ;AAAA,cACR,gBAAe;AAAA,cACf,SAAS,QAAM,KAAK,MAAM,YAAa,KAAK,MAAM,UAAU;AAAA;AAAA,UAC9D;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,qBAAmB,KAAK,MAAM,UAAQ;AAAA,cAC7C,QAAQ;AAAA,cACR,gBAAe;AAAA,cACf,oBAAoB;AAAA,cACpB,SAAS,QAAM,KAAK,MAAM,wBAAyB,KAAK,MAAM,UAAU;AAAA;AAAA,UAC1E;AAAA;AAAA;AAAA,MA5BK,KAAK,MAAM;AAAA,IA6BlB;AAAA,EACF;AACF;AAEA,MAAM,wBAAwB,gBAAgB,CAAC,UAA8B,oBAAC,iBAAe,GAAG,OAAO,CAAE;AAEzG,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"63fcf32b678e8e84bae6e5adc5bc926b1550ab61"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return fi=function(){return s},s}fi();const wce=(fi().s[0]++,hce(e=>(fi().f[0]++,fi().s[1]++,N.jsxs("div",{className:"maputnik-layer-list-item-handle",children:[N.jsx(VR,{className:"layer-handle__icon",type:e.layerType}),N.jsx("button",{className:"maputnik-layer-list-item-id",children:e.layerId})]}))));class WM extends bn.Component{renderIcon(){switch(fi().f[1]++,fi().s[2]++,this.props.action){case"duplicate":return fi().b[0][0]++,fi().s[3]++,N.jsx(vJ,{});case"show":return fi().b[0][1]++,fi().s[4]++,N.jsx(yJ,{});case"hide":return fi().b[0][2]++,fi().s[5]++,N.jsx(gJ,{});case"delete":return fi().b[0][3]++,fi().s[6]++,N.jsx(Ly,{})}}render(){fi().f[2]++;const{classBlockName:n,classBlockModifier:t}=(fi().s[7]++,this.props);let r=(fi().s[8]++,"");return fi().s[9]++,n?(fi().b[1][0]++,fi().s[10]++,r=`maputnik-layer-list-icon-action__${n}`,fi().s[11]++,t?(fi().b[2][0]++,fi().s[12]++,r+=` maputnik-layer-list-icon-action__${n}--${t}`):fi().b[2][1]++):fi().b[1][1]++,fi().s[13]++,N.jsx("button",{tabIndex:-1,title:this.props.action,className:`maputnik-layer-list-icon-action ${r}`,"data-wd-key":this.props.wdKey,onClick:this.props.onClick,"aria-hidden":"true",children:this.renderIcon()})}}class ME extends bn.Component{getChildContext(){return fi().f[6]++,fi().s[16]++,{reactIconBase:{size:14}}}render(){fi().f[7]++;const n=(fi().s[17]++,this.props.visibility==="visible"?(fi().b[3][0]++,"show"):(fi().b[3][1]++,"hide"));return fi().s[18]++,N.jsxs("li",{id:this.props.id,onClick:t=>(fi().f[8]++,fi().s[19]++,this.props.onLayerSelect(this.props.layerIndex)),"data-wd-key":"layer-list-item:"+this.props.layerId,className:Af({"maputnik-layer-list-item":!0,"maputnik-layer-list-item-selected":this.props.isSelected,[this.props.className]:!0}),children:[N.jsx(wce,{...this.props}),N.jsx("span",{style:{flexGrow:1}}),N.jsx(WM,{wdKey:"layer-list-item:"+this.props.layerId+":delete",action:"delete",classBlockName:"delete",onClick:t=>(fi().f[9]++,fi().s[20]++,this.props.onLayerDestroy(this.props.layerIndex))}),N.jsx(WM,{wdKey:"layer-list-item:"+this.props.layerId+":copy",action:"duplicate",classBlockName:"duplicate",onClick:t=>(fi().f[10]++,fi().s[21]++,this.props.onLayerCopy(this.props.layerIndex))}),N.jsx(WM,{wdKey:"layer-list-item:"+this.props.layerId+":toggle-visibility",action:n,classBlockName:"visibility",classBlockModifier:n,onClick:t=>(fi().f[11]++,fi().s[22]++,this.props.onLayerVisibilityToggle(this.props.layerIndex))})]},this.props.layerId)}}nn(ME,"defaultProps",(fi().s[14]++,{isSelected:!1,visibility:"visible",onLayerCopy:()=>{fi().f[3]++},onLayerDestroy:()=>{fi().f[4]++},onLayerVisibilityToggle:()=>{fi().f[5]++}})),nn(ME,"childContextTypes",(fi().s[15]++,{reactIconBase:Pr.object}));const Mce=(fi().s[23]++,xce(e=>(fi().f[12]++,fi().s[24]++,N.jsx(ME,{...e}))));function Y3(){var e="/home/runner/work/maputnik/maputnik/src/components/InputButton.tsx",n="522bfc6b8aacbfd03b55d947af2897dc69beb570",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputButton.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:20,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:21,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputButton.tsx"],names:[],mappings:"AAkBW;AAlBX,OAAO,WAAW;AAClB,OAAO,gBAAgB;AAevB,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,IAAI,KAAK,MAAM;AAAA,QACf,OAAO,KAAK,MAAM;AAAA,QAClB,MAAM,KAAK,MAAM;AAAA,QACjB,SAAS,KAAK,MAAM;AAAA,QACpB,UAAU,KAAK,MAAM;AAAA,QACrB,cAAY,KAAK,MAAM,YAAY;AAAA,QACnC,WAAW,WAAW,mBAAmB,KAAK,MAAM,SAAS;AAAA,QAC7D,eAAa,KAAK,MAAM,aAAa;AAAA,QACrC,OAAO,KAAK,MAAM;AAAA,QAEjB,eAAK,MAAM;AAAA;AAAA,IACd;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"522bfc6b8aacbfd03b55d947af2897dc69beb570"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Y3=function(){return s},s}Y3();class Ka extends bn.Component{render(){return Y3().f[0]++,Y3().s[0]++,N.jsx("button",{id:this.props.id,title:this.props.title,type:this.props.type,onClick:this.props.onClick,disabled:this.props.disabled,"aria-label":this.props["aria-label"],className:Af("maputnik-button",this.props.className),"data-wd-key":this.props["data-wd-key"],style:this.props.style,children:this.props.children})}}/*! * tabbable 5.3.3 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var Wj=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],q3=Wj.join(","),Nj=typeof Element>"u",p1=Nj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,SE=!Nj&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Gj=function(n,t,r){var i=Array.prototype.slice.apply(n.querySelectorAll(q3));return t&&p1.call(n,q3)&&i.unshift(n),i=i.filter(r),i},Qj=function e(n,t,r){for(var i=[],o=Array.from(n);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),f=a.length?a:s.children,g=e(f,!0,r);r.flatten?i.push.apply(i,g):i.push({scope:s,candidates:g})}else{var x=p1.call(s,q3);x&&r.filter(s)&&(t||!n.includes(s))&&i.push(s);var k=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),B=!r.shadowRootFilter||r.shadowRootFilter(s);if(k&&B){var P=e(k===!0?s.children:k.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scope:s,candidates:P})}else o.unshift.apply(o,s.children)}}return i},$j=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Sce=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},Yj=function(n){return n.tagName==="INPUT"},Ece=function(n){return Yj(n)&&n.type==="hidden"},Oce=function(n){var t=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(r){return r.tagName==="SUMMARY"});return t},Bce=function(n,t){for(var r=0;rsummary:first-of-type"),s=o?n.parentElement:n;if(p1.call(s,"details:not([open]) *"))return!0;var a=SE(n).host,f=(a==null?void 0:a.ownerDocument.contains(a))||n.ownerDocument.contains(n);if(!r||r==="full"){if(typeof i=="function"){for(var g=n;n;){var x=n.parentElement,k=SE(n);if(x&&!x.shadowRoot&&i(x)===!0)return MT(n);n.assignedSlot?n=n.assignedSlot:!x&&k!==n.ownerDocument?n=k.host:n=x}n=g}if(f)return!n.getClientRects().length}else if(r==="non-zero-area")return MT(n);return!1},Pce=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r=0)},Dce=function e(n){var t=[],r=[];return n.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,f=$j(a,s),g=s?e(i.candidates):a;f===0?s?t.push.apply(t,g):t.push(a):r.push({documentOrder:o,tabIndex:f,item:i,isScope:s,content:g})}),r.sort(Sce).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},qj=function(n,t){t=t||{};var r;return t.getShadowRoot?r=Qj([n],t.includeContainer,{filter:EE.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Fce}):r=Gj(n,t.includeContainer,EE.bind(null,t)),Dce(r)},Vj=function(n,t){t=t||{};var r;return t.getShadowRoot?r=Qj([n],t.includeContainer,{filter:V3.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=Gj(n,t.includeContainer,V3.bind(null,t)),r},dC=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return p1.call(n,q3)===!1?!1:EE(t,n)},Uce=Wj.concat("iframe").join(","),_2=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return p1.call(n,Uce)===!1?!1:V3(t,n)};const Rce=Object.freeze(Object.defineProperty({__proto__:null,focusable:Vj,isFocusable:_2,isTabbable:dC,tabbable:qj},Symbol.toStringTag,{value:"Module"}));/*! * focus-trap 6.9.4 * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE */function ST(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ET(e){for(var n=1;n0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),zce=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},jce=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},Wce=function(n){return n.key==="Tab"||n.keyCode===9},BT=function(n){return setTimeout(n,0)},kT=function(n,t){var r=-1;return n.every(function(i,o){return t(i)?(r=o,!1):!0}),r},Yv=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i1?ye-1:0),Ne=1;Ne=0)ae=r.activeElement;else{var ue=o.tabbableGroups[0],ye=ue&&ue.firstTabbableNode;ae=ye||g("fallbackFocus")}if(!ae)throw new Error("Your focus-trap needs to have at least one focusable element");return ae},k=function(){if(o.containerGroups=o.containers.map(function(ae){var ue=qj(ae,i.tabbableOptions),ye=Vj(ae,i.tabbableOptions);return{container:ae,tabbableNodes:ue,focusableNodes:ye,firstTabbableNode:ue.length>0?ue[0]:null,lastTabbableNode:ue.length>0?ue[ue.length-1]:null,nextTabbableNode:function(Ne){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ct=ye.findIndex(function(Fe){return Fe===Ne});if(!(ct<0))return rt?ye.slice(ct+1).find(function(Fe){return dC(Fe,i.tabbableOptions)}):ye.slice(0,ct).reverse().find(function(Fe){return dC(Fe,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(ae){return ae.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},B=function ce(ae){if(ae!==!1&&ae!==r.activeElement){if(!ae||!ae.focus){ce(x());return}ae.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=ae,zce(ae)&&ae.select()}},P=function(ae){var ue=g("setReturnFocus",ae);return ue||(ue===!1?!1:ae)},R=function(ae){var ue=Ux(ae);if(!(f(ue)>=0)){if(Yv(i.clickOutsideDeactivates,ae)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!_2(ue,i.tabbableOptions)});return}Yv(i.allowOutsideClick,ae)||ae.preventDefault()}},H=function(ae){var ue=Ux(ae),ye=f(ue)>=0;ye||ue instanceof Document?ye&&(o.mostRecentlyFocusedNode=ue):(ae.stopImmediatePropagation(),B(o.mostRecentlyFocusedNode||x()))},W=function(ae){var ue=Ux(ae);k();var ye=null;if(o.tabbableGroups.length>0){var Re=f(ue),Ne=Re>=0?o.containerGroups[Re]:void 0;if(Re<0)ae.shiftKey?ye=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:ye=o.tabbableGroups[0].firstTabbableNode;else if(ae.shiftKey){var rt=kT(o.tabbableGroups,function(Ft){var Jt=Ft.firstTabbableNode;return ue===Jt});if(rt<0&&(Ne.container===ue||_2(ue,i.tabbableOptions)&&!dC(ue,i.tabbableOptions)&&!Ne.nextTabbableNode(ue,!1))&&(rt=Re),rt>=0){var ct=rt===0?o.tabbableGroups.length-1:rt-1,Fe=o.tabbableGroups[ct];ye=Fe.lastTabbableNode}}else{var He=kT(o.tabbableGroups,function(Ft){var Jt=Ft.lastTabbableNode;return ue===Jt});if(He<0&&(Ne.container===ue||_2(ue,i.tabbableOptions)&&!dC(ue,i.tabbableOptions)&&!Ne.nextTabbableNode(ue))&&(He=Re),He>=0){var Ce=He===o.tabbableGroups.length-1?0:He+1,jt=o.tabbableGroups[Ce];ye=jt.firstTabbableNode}}}else ye=g("fallbackFocus");ye&&(ae.preventDefault(),B(ye))},$=function(ae){if(jce(ae)&&Yv(i.escapeDeactivates,ae)!==!1){ae.preventDefault(),s.deactivate();return}if(Wce(ae)){W(ae);return}},q=function(ae){var ue=Ux(ae);f(ue)>=0||Yv(i.clickOutsideDeactivates,ae)||Yv(i.allowOutsideClick,ae)||(ae.preventDefault(),ae.stopImmediatePropagation())},oe=function(){if(o.active)return OT.activateTrap(s),o.delayInitialFocusTimer=i.delayInitialFocus?BT(function(){B(x())}):B(x()),r.addEventListener("focusin",H,!0),r.addEventListener("mousedown",R,{capture:!0,passive:!1}),r.addEventListener("touchstart",R,{capture:!0,passive:!1}),r.addEventListener("click",q,{capture:!0,passive:!1}),r.addEventListener("keydown",$,{capture:!0,passive:!1}),s},ne=function(){if(o.active)return r.removeEventListener("focusin",H,!0),r.removeEventListener("mousedown",R,!0),r.removeEventListener("touchstart",R,!0),r.removeEventListener("click",q,!0),r.removeEventListener("keydown",$,!0),s};return s={get active(){return o.active},get paused(){return o.paused},activate:function(ae){if(o.active)return this;var ue=a(ae,"onActivate"),ye=a(ae,"onPostActivate"),Re=a(ae,"checkCanFocusTrap");Re||k(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=r.activeElement,ue&&ue();var Ne=function(){Re&&k(),oe(),ye&&ye()};return Re?(Re(o.containers.concat()).then(Ne,Ne),this):(Ne(),this)},deactivate:function(ae){if(!o.active)return this;var ue=ET({onDeactivate:i.onDeactivate,onPostDeactivate:i.onPostDeactivate,checkCanReturnFocus:i.checkCanReturnFocus},ae);clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,ne(),o.active=!1,o.paused=!1,OT.deactivateTrap(s);var ye=a(ue,"onDeactivate"),Re=a(ue,"onPostDeactivate"),Ne=a(ue,"checkCanReturnFocus"),rt=a(ue,"returnFocus","returnFocusOnDeactivate");ye&&ye();var ct=function(){BT(function(){rt&&B(P(o.nodeFocusedBeforeActivation)),Re&&Re()})};return rt&&Ne?(Ne(P(o.nodeFocusedBeforeActivation)).then(ct,ct),this):(ct(),this)},pause:function(){return o.paused||!o.active?this:(o.paused=!0,ne(),this)},unpause:function(){return!o.paused||!o.active?this:(o.paused=!1,k(),oe(),this)},updateContainerElements:function(ae){var ue=[].concat(ae).filter(Boolean);return o.containers=ue.map(function(ye){return typeof ye=="string"?r.querySelector(ye):ye}),o.active&&k(),this}},s.updateContainerElements(n),s};const Gce=Object.freeze(Object.defineProperty({__proto__:null,createFocusTrap:Nce},Symbol.toStringTag,{value:"Module"})),Qce=fO(Gce),$ce=fO(Rce);function OE(e){"@babel/helpers - typeof";return OE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},OE(e)}function Yce(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function IT(e,n){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function H3(e){return H3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},H3(e)}function Jce(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Rx=kr,ede=Rm,Fi=ph,tde=Qce,nde=tde.createFocusTrap,rde=$ce,ide=rde.isFocusable,X7=function(e){Vce(t,e);var n=Hce(t);function t(r){var i;Yce(this,t),i=n.call(this,r),Jce(hC(i),"getNodeForOption",function(a){var f,g=(f=this.internalOptions[a])!==null&&f!==void 0?f:this.originalOptions[a];if(typeof g=="function"){for(var x=arguments.length,k=new Array(x>1?x-1:0),B=1;B element.");var s=function(g){var x=i.props.containerElements;o&&(typeof o.ref=="function"?o.ref(g):o.ref&&(o.ref.current=g)),i.focusTrapElements=x||[g]},a=Rx.cloneElement(o,{ref:s});return a}return null}}]),t}(Rx.Component),qv=typeof Element>"u"?Function:Element;X7.propTypes={active:Fi.bool,paused:Fi.bool,focusTrapOptions:Fi.shape({document:Fi.object,onActivate:Fi.func,onPostActivate:Fi.func,checkCanFocusTrap:Fi.func,onDeactivate:Fi.func,onPostDeactivate:Fi.func,checkCanReturnFocus:Fi.func,initialFocus:Fi.oneOfType([Fi.instanceOf(qv),Fi.string,Fi.bool,Fi.func]),fallbackFocus:Fi.oneOfType([Fi.instanceOf(qv),Fi.string,Fi.func]),escapeDeactivates:Fi.oneOfType([Fi.bool,Fi.func]),clickOutsideDeactivates:Fi.oneOfType([Fi.bool,Fi.func]),returnFocusOnDeactivate:Fi.bool,setReturnFocus:Fi.oneOfType([Fi.instanceOf(qv),Fi.string,Fi.bool,Fi.func]),allowOutsideClick:Fi.oneOfType([Fi.bool,Fi.func]),preventScroll:Fi.bool,tabbableOptions:Fi.shape({displayCheck:Fi.oneOf(["full","non-zero-area","none"]),getShadowRoot:Fi.oneOfType([Fi.bool,Fi.func])})}),containerElements:Fi.arrayOf(Fi.instanceOf(qv)),children:Fi.oneOfType([Fi.element,Fi.instanceOf(qv)])};X7.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:nde};var ode=X7,TT=function(){function e(n,t){for(var r=0;rwindow.innerHeight}function a(k){if(!(typeof document>"u"||t)){var B=document.documentElement;i=window.pageYOffset,s()?B.style.width="calc(100% - "+o()+"px)":B.style.width="100%",B.style.position="fixed",B.style.top=-i+"px",B.style.overflow="hidden",t=!0}}function f(){if(!(typeof document>"u"||!t)){var k=document.documentElement;k.style.width="",k.style.position="",k.style.top="",k.style.overflow="",window.scroll(0,i),t=!1}}function g(){if(t){f();return}a()}var x={on:a,off:f,toggle:g};e.exports=x})()})(Hj);var lde=Hj.exports;function kE(e){"@babel/helpers - typeof";return kE=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},kE(e)}function ude(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function FT(e,n){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Z3(e){return Z3=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Z3(e)}function pC(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Vv=kr,pde=ode,Zj=sde,jx=lde,J7=function(e){cde(t,e);var n=dde(t);function t(r){var i;if(ude(this,t),i=n.call(this,r),pC(fC(i),"getApplicationNode",function(){return i.props.getApplicationNode?i.props.getApplicationNode():i.props.applicationNode}),pC(fC(i),"checkUnderlayClick",function(o){i.dialogNode&&i.dialogNode.contains(o.target)||o.pageX>o.target.ownerDocument.documentElement.offsetWidth||o.pageY>o.target.ownerDocument.documentElement.offsetHeight||i.exit(o)}),pC(fC(i),"checkDocumentKeyDown",function(o){i.props.escapeExits&&(o.key==="Escape"||o.key==="Esc"||o.keyCode===27)&&i.exit(o)}),pC(fC(i),"exit",function(o){i.props.onExit&&i.props.onExit(o)}),!r.titleText&&!r.titleId)throw new Error("react-aria-modal instances should have a `titleText` or `titleId`");return i}return Ade(t,[{key:"componentDidMount",value:function(){this.props.onEnter&&this.props.onEnter();var i=this.getApplicationNode();setTimeout(function(){i&&i.setAttribute("aria-hidden","true")},0),this.props.escapeExits&&this.addKeyDownListener(),this.props.scrollDisabled&&jx.on()}},{key:"componentDidUpdate",value:function(i){i.scrollDisabled&&!this.props.scrollDisabled?jx.off():!i.scrollDisabled&&this.props.scrollDisabled&&jx.on(),this.props.escapeExits&&!i.escapeExits?this.addKeyDownListener():!this.props.escapeExits&&i.escapeExits&&this.removeKeyDownListener()}},{key:"componentWillUnmount",value:function(){this.props.scrollDisabled&&jx.off();var i=this.getApplicationNode();i&&i.setAttribute("aria-hidden","false"),this.removeKeyDownListener()}},{key:"addKeyDownListener",value:function(){var i=this;setTimeout(function(){document.addEventListener("keydown",i.checkDocumentKeyDown)})}},{key:"removeKeyDownListener",value:function(){var i=this;setTimeout(function(){document.removeEventListener("keydown",i.checkDocumentKeyDown)})}},{key:"render",value:function(){var i=this.props,o={};if(i.includeDefaultStyles&&(o={position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1050,overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",textAlign:"center"},i.underlayColor&&(o.background=i.underlayColor),i.underlayClickExits&&(o.cursor="pointer")),i.underlayStyle)for(var s in i.underlayStyle)i.underlayStyle.hasOwnProperty(s)&&(o[s]=i.underlayStyle[s]);var a={className:i.underlayClass,style:o};i.underlayClickExits&&(a.onMouseDown=this.checkUnderlayClick);for(var f in this.props.underlayProps)a[f]=this.props.underlayProps[f];var g={};i.includeDefaultStyles&&(g={display:"inline-block",height:"100%",verticalAlign:"middle"});var x={key:"a",style:g},k={};if(i.includeDefaultStyles&&(k={display:"inline-block",textAlign:"left",top:0,maxWidth:"100%",cursor:"auto",outline:i.focusDialog?0:null},i.verticallyCenter&&(k.verticalAlign="middle",k.top=0)),i.dialogStyle)for(var B in i.dialogStyle)i.dialogStyle.hasOwnProperty(B)&&(k[B]=i.dialogStyle[B]);var P={key:"b",ref:(function($){this.dialogNode=$}).bind(this),role:i.alert?"alertdialog":"dialog",id:i.dialogId,className:i.dialogClass,style:k};i.titleId?P["aria-labelledby"]=i.titleId:i.titleText&&(P["aria-label"]=i.titleText),i.focusDialog&&(P.tabIndex="-1");for(var R in i)/^(data-|aria-)/.test(R)&&(P[R]=i[R]);var H=[Vv.createElement("div",P,i.children)];i.verticallyCenter&&H.unshift(Vv.createElement("div",x));var W=i.focusTrapOptions||{};return(i.focusDialog||i.initialFocus)&&(W.initialFocus=i.focusDialog?"#".concat(this.props.dialogId):i.initialFocus),W.escapeDeactivates=i.escapeExits,Vv.createElement(pde,{focusTrapOptions:W,paused:i.focusTrapPaused},Vv.createElement("div",a,H))}}]),t}(Vv.Component);pC(J7,"defaultProps",{underlayProps:{},dialogId:"react-aria-modal-dialog",underlayClickExits:!0,escapeExits:!0,underlayColor:"rgba(0,0,0,0.5)",includeDefaultStyles:!0,focusTrapPaused:!1,scrollDisabled:!0});var Xj=Zj(J7);Xj.renderTo=function(e){return Zj(J7,{renderTo:e})};var mde=Xj;const gde=ga(mde);function tu(){var e="/home/runner/work/maputnik/maputnik/src/components/Modal.tsx",n="182829ebe13a379e94c383087c7e861e586a9014",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Modal.tsx",statementMap:{0:{start:{line:7,column:24},end:{line:9,column:3}},1:{start:{line:11,column:12},end:{line:18,column:3}},2:{start:{line:12,column:4},end:{line:14,column:5}},3:{start:{line:13,column:6},end:{line:13,column:36}},4:{start:{line:15,column:4},end:{line:17,column:10}},5:{start:{line:16,column:6},end:{line:16,column:37}},6:{start:{line:20,column:4},end:{line:58,column:5}},7:{start:{line:21,column:6},end:{line:55,column:8}},8:{start:{line:57,column:6},end:{line:57,column:19}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:12},end:{line:11,column:13}},loc:{start:{line:11,column:18},end:{line:18,column:3}},line:11},1:{name:"(anonymous_1)",decl:{start:{line:15,column:15},end:{line:15,column:16}},loc:{start:{line:15,column:21},end:{line:17,column:5}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:11},end:{line:59,column:3}},line:19}},branchMap:{0:{loc:{start:{line:12,column:4},end:{line:14,column:5}},type:"if",locations:[{start:{line:12,column:4},end:{line:14,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:12},1:{loc:{start:{line:20,column:4},end:{line:58,column:5}},type:"if",locations:[{start:{line:20,column:4},end:{line:58,column:5}},{start:{line:56,column:11},end:{line:58,column:5}}],line:20}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Modal.tsx"],names:[],mappings:"AA+CU,SACE,KADF;AA/CV,OAAO,WAAW;AAClB,SAAQ,eAAc;AACtB,OAAO,eAAe;AACtB,OAAO,gBAAgB;AAcvB,qBAAqB,cAAc,MAAM,UAAsB;AAAA,EAC7D,OAAO,eAAe;AAAA,IACpB,oBAAoB;AAAA,EACtB;AAAA;AAAA,EAGA,UAAU,MAAM;AACd,QAAI,SAAS,eAAe;AAC1B,MAAC,SAAS,cAA8B,KAAK;AAAA,IAC/C;AAEA,eAAW,MAAM;AACf,WAAK,MAAM,aAAa,KAAK;AAAA,IAC/B,GAAG,CAAC;AAAA,EACN;AAAA,EAEA,SAAS;AACP,QAAG,KAAK,MAAM,QAAQ;AACpB,aAAO;AAAA,QAAC;AAAA;AAAA,UACN,WAAW,KAAK,MAAM;AAAA,UACtB,oBAAoB,KAAK,MAAM;AAAA,UAE/B,eAAe,KAAK,MAAM;AAAA,UAC1B,eAAa,KAAK,MAAM,aAAa;AAAA,UACrC,kBAAkB;AAAA,UAClB,QAAQ,KAAK;AAAA,UAEb;AAAA,YAAC;AAAA;AAAA,cAAI,WAAW,WAAW,kBAAkB,KAAK,MAAM,SAAS;AAAA,cAC/D,eAAa,KAAK,MAAM,aAAa;AAAA,cAErC;AAAA,qCAAC,YAAO,WAAU,yBAChB;AAAA,sCAAC,QAAG,WAAU,+BAA+B,eAAK,MAAM,OAAM;AAAA,kBAC9D,oBAAC,UAAK,WAAU,+BAA8B;AAAA,kBAC9C;AAAA,oBAAC;AAAA;AAAA,sBAAO,WAAU;AAAA,sBAChB,OAAM;AAAA,sBACN,SAAS,KAAK;AAAA,sBACd,eAAa,KAAK,MAAM,aAAa,IAAE;AAAA,sBAEvC,8BAAC,WAAQ;AAAA;AAAA,kBACX;AAAA,mBACF;AAAA,gBACA,oBAAC,SAAI,WAAU,2BACb,8BAAC,SAAI,WAAU,0BAA0B,eAAK,MAAM,UAAS,GAC/D;AAAA;AAAA;AAAA,UACF;AAAA;AAAA,MACF;AAAA,IACF,OACK;AACH,aAAO;AAAA,IACT;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"182829ebe13a379e94c383087c7e861e586a9014"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return tu=function(){return s},s}tu();class _f extends bn.Component{constructor(){super(...arguments);nn(this,"onClose",(tu().s[1]++,()=>{tu().f[0]++,tu().s[2]++,document.activeElement?(tu().b[0][0]++,tu().s[3]++,document.activeElement.blur()):tu().b[0][1]++,tu().s[4]++,setTimeout(()=>{tu().f[1]++,tu().s[5]++,this.props.onOpenToggle(!1)},0)}))}render(){return tu().f[2]++,tu().s[6]++,this.props.isOpen?(tu().b[1][0]++,tu().s[7]++,N.jsx(gde,{titleText:this.props.title,underlayClickExits:this.props.underlayClickExits,underlayProps:this.props.underlayProps,"data-wd-key":this.props["data-wd-key"],verticallyCenter:!0,onExit:this.onClose,children:N.jsxs("div",{className:Af("maputnik-modal",this.props.className),"data-wd-key":this.props["data-wd-key"],children:[N.jsxs("header",{className:"maputnik-modal-header",children:[N.jsx("h1",{className:"maputnik-modal-header-title",children:this.props.title}),N.jsx("span",{className:"maputnik-modal-header-space"}),N.jsx("button",{className:"maputnik-modal-header-toggle",title:"Close modal",onClick:this.onClose,"data-wd-key":this.props["data-wd-key"]+".close-modal",children:N.jsx(EJ,{})})]}),N.jsx("div",{className:"maputnik-modal-scroller",children:N.jsx("div",{className:"maputnik-modal-content",children:this.props.children})})]})})):(tu().b[1][1]++,tu().s[8]++,!1)}}nn(_f,"defaultProps",(tu().s[0]++,{underlayClickExits:!0}));const yde=8,vde={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to the surface, for a look straight down at the map, while a greater value like 60 looks ahead towards the horizon. The style pitch will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:50},light:{type:"light",doc:"The global light source.",example:{anchor:"viewport",color:"white",intensity:.4}},sky:{type:"sky",doc:"The map's sky configuration.",example:{"sky-color":"#199EF3","fog-color":"#00ff00","horizon-blend":.5,"fog-blend":.6}},terrain:{type:"terrain",doc:"The terrain configuration.",example:{source:"raster-dem-source",exaggeration:.5}},sources:{required:!0,type:"sources",doc:"Data source specifications.",example:{"maplibre-demotiles":{type:"vector",url:"https://demotiles.maplibre.org/tiles/tiles.json"}}},sprite:{type:"sprite",doc:"An array of `{id: 'my-sprite', url: 'https://example.com/sprite'}` objects. Each object should represent a unique URL to load a sprite from and and a unique ID to use as a prefix when referencing images from that sprite (i.e. 'my-sprite:image'). All the URLs are internally extended to load both .json and .png files. If the `id` field is equal to 'default', the prefix is omitted (just 'image' instead of 'default:image'). All the IDs and URLs must be unique. For backwards compatibility, instead of an array, one can also provide a single string that represent a URL to load the sprite from. The images in this case won't be prefixed.",example:"https://demotiles.maplibre.org/styles/osm-bright-gl-style/sprite"},glyphs:{type:"string",doc:"A URL template for loading signed-distance-field glyph sets in PBF format. The URL must include `{fontstack}` and `{range}` tokens. This property is required if any layer uses the `text-field` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"Layers will be drawn in the order of this array.",example:[{id:"coastline",source:"maplibre","source-layer":"contries",type:"line",paint:{"line-color":"#198EC8"}}]}},Cde={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},_de=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],bde={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},xde={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},wde={type:{required:!0,type:"enum",values:{"raster-dem":{doc:"A RGB-encoded raster DEM source"}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},encoding:{type:"enum",values:{terrarium:{doc:"Terrarium format PNG tiles. See https://aws.amazon.com/es/public-datasets/terrain/ for more info."},mapbox:{doc:"Mapbox Terrain RGB tiles. See https://www.mapbox.com/help/access-elevation-data/#mapbox-terrain-rgb for more info."},custom:{doc:"Decodes tiles using the redFactor, blueFactor, greenFactor, baseShift parameters."}},default:"mapbox",doc:"The encoding used by this source. Mapbox Terrain RGB is used by default."},redFactor:{type:"number",default:1,doc:"Value that will be multiplied by the red channel value when decoding. Only used on custom encodings.","sdk-support":{"basic functionality":{js:"3.4"}}},blueFactor:{type:"number",default:1,doc:"Value that will be multiplied by the blue channel value when decoding. Only used on custom encodings.","sdk-support":{"basic functionality":{js:"3.4"}}},greenFactor:{type:"number",default:1,doc:"Value that will be multiplied by the green channel value when decoding. Only used on custom encodings.","sdk-support":{"basic functionality":{js:"3.4"}}},baseShift:{type:"number",default:0,doc:"Value that will be added to the encoding mix when decoding. Only used on custom encodings.","sdk-support":{"basic functionality":{js:"3.4"}}},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Mde={type:{required:!0,type:"enum",values:{geojson:{doc:"A GeoJSON data source."}},doc:"The data type of the GeoJSON source."},data:{required:!0,type:"*",doc:"A URL to a GeoJSON file, or inline GeoJSON."},maxzoom:{type:"number",default:18,doc:"Maximum zoom level at which to create vector tiles (higher means greater detail at high zoom levels)."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},buffer:{type:"number",default:128,maximum:512,minimum:0,doc:"Size of the tile buffer on each side. A value of 0 produces no buffer. A value of 512 produces a buffer as wide as the tile itself. Larger values produce fewer rendering artifacts near tile edges and slower performance."},filter:{type:"*",doc:"An expression for filtering features prior to processing them for rendering."},tolerance:{type:"number",default:.375,doc:"Douglas-Peucker simplification tolerance (higher means simpler geometries and faster performance)."},cluster:{type:"boolean",default:!1,doc:"If the data is a collection of point features, setting this to true clusters the points by radius into groups. Cluster groups become new `Point` features in the source with additional properties:\n * `cluster` Is `true` if the point is a cluster \n * `cluster_id` A unqiue id for the cluster to be used in conjunction with the [cluster inspection methods](https://maplibre.org/maplibre-gl-js-docs/api/sources/#geojsonsource#getclusterexpansionzoom)\n * `point_count` Number of original points grouped into this cluster\n * `point_count_abbreviated` An abbreviated point count"},clusterRadius:{type:"number",default:50,minimum:0,doc:"Radius of each cluster if clustering is enabled. A value of 512 indicates a radius equal to the width of a tile."},clusterMaxZoom:{type:"number",doc:"Max zoom on which to cluster points if clustering is enabled. Defaults to one zoom less than maxzoom (so that last zoom features are not clustered). Clusters are re-evaluated at integer zoom levels so setting clusterMaxZoom to 14 means the clusters will be displayed until z15."},clusterMinPoints:{type:"number",doc:"Minimum number of points necessary to form a cluster if clustering is enabled. Defaults to `2`."},clusterProperties:{type:"*",doc:'An object defining custom properties on the generated clusters if clustering is enabled, aggregating values from clustered points. Has the form `{"property_name": [operator, map_expression]}`. `operator` is any expression function that accepts at least 2 operands (e.g. `"+"` or `"max"`) — it accumulates the property value from clusters/points the cluster contains; `map_expression` produces the value of a single point.\n\nExample: `{"sum": ["+", ["get", "scalerank"]]}`.\n\nFor more advanced use cases, in place of `operator`, you can use a custom reduce expression that references a special `["accumulated"]` value, e.g.:\n`{"sum": [["+", ["accumulated"], ["get", "sum"]], ["get", "scalerank"]]}`'},lineMetrics:{type:"boolean",default:!1,doc:"Whether to calculate line distance metrics. This is required for line layers that specify `line-gradient` values."},generateId:{type:"boolean",default:!1,doc:"Whether to generate ids for the geojson features. When enabled, the `feature.id` property will be auto assigned based on its index in the `features` array, over-writing any previous values."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{: }`."}},Sde={type:{required:!0,type:"enum",values:{video:{doc:"A video data source."}},doc:"The data type of the video source."},urls:{required:!0,type:"array",value:"string",doc:"URLs to video content in order of preferred format."},coordinates:{required:!0,doc:"Corners of video specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},Ede={type:{required:!0,type:"enum",values:{image:{doc:"An image data source."}},doc:"The data type of the image source."},url:{required:!0,type:"string",doc:"URL that points to an image."},coordinates:{required:!0,doc:"Corners of image specified in longitude, latitude pairs.",type:"array",length:4,value:{type:"array",length:2,value:"number",doc:"A single longitude, latitude pair."}}},Ode={id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}}}},doc:"Rendering type of this layer.",required:!0},metadata:{type:"*",doc:"Arbitrary properties useful to track with the layer, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"source:comment":"Hydrology FCCODE 460 - Narrow wash"}},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},"source-layer":{type:"string",doc:"Layer to use from a vector tile source. Required for vector tile sources; prohibited for all other source types, including GeoJSON sources."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."},filter:{type:"filter",doc:"A expression specifying conditions on source features. Only features that match the filter are displayed. Zoom expressions in filters are only evaluated at integer zoom levels. The `feature-state` expression is not supported in filter expressions."},layout:{type:"layout",doc:"Layout properties for the layer."},paint:{type:"paint",doc:"Default paint properties for this layer."}},Bde=["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],kde={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Ide={"fill-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Tde={"circle-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"},"data-driven styling":{js:"1.2.0",android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Kde={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},Pde={"line-cap":{type:"enum",values:{butt:{doc:"A cap with a squared-off end which is drawn to the exact endpoint of the line."},round:{doc:"A cap with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},square:{doc:"A cap with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."}},default:"butt",doc:"The display of line endings.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{doc:"A join with a squared-off end which is drawn beyond the endpoint of the line at a distance of one-half of the line's width."},round:{doc:"A join with a rounded end which is drawn beyond the endpoint of the line at a radius of one-half of the line's width and centered on the endpoint of the line."},miter:{doc:"A join with a sharp, angled corner which is drawn with the outer sides beyond the endpoint of the path until they meet."}},default:"miter",doc:"The display of lines when joining.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,doc:"Used to automatically convert miter joins to bevel joins for sharp angles.",requires:[{"line-join":"miter"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,doc:"Used to automatically convert round joins to miter joins for shallow angles.",requires:[{"line-join":"round"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.","sdk-support":{"basic functionality":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"},"data-driven styling":{js:"1.2.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Fde={"symbol-placement":{type:"enum",values:{point:{doc:"The label is placed at the point where the geometry is located."},line:{doc:"The label is placed along the line of the geometry. Can only be used on `LineString` and `Polygon` geometries."},"line-center":{doc:"The label is placed at the center of the line of the geometry. Can only be used on `LineString` and `Polygon` geometries. Note that a single feature in a vector tile may contain multiple line geometries."}},default:"point",doc:"Label placement relative to its geometry.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`line-center` value":{js:"0.47.0",android:"6.4.0",ios:"4.3.0",macos:"0.10.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",doc:"Distance between two symbol anchors.",requires:[{"symbol-placement":"line"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,doc:"If true, the symbols will not cross tile edges to avoid mutual collisions. Recommended in layers that don't have enough padding in the vector tile to prevent collisions, or if it is a point symbol layer placed after a line symbol layer. When using a client that supports global collision detection, like MapLibre GL JS version 0.42.0 or greater, enabling this property is not needed to prevent clipped labels at tile boundaries.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",doc:"Sorts features in ascending order based on this value. Features with lower sort keys are drawn and placed first. When `icon-allow-overlap` or `text-allow-overlap` is `false`, features with a lower sort key will have priority during placement. When `icon-allow-overlap` or `text-allow-overlap` is set to `true`, features with a higher sort key will overlap over features with a lower sort key.","sdk-support":{"basic functionality":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"},"data-driven styling":{js:"0.53.0",android:"7.4.0",ios:"4.11.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},"viewport-y":{doc:"Sorts symbols by their y-position relative to the viewport if `icon-allow-overlap` or `text-allow-overlap` is set to `true` or `icon-ignore-placement` or `text-ignore-placement` is `false`."},source:{doc:"Sorts symbols by `symbol-sort-key` if set. Otherwise, no sorting is applied; symbols are rendered in the same order as the source data."}},default:"auto",doc:"Determines whether overlapping symbols in the same layer are rendered in the order that they appear in the data source or by their y-position relative to the viewport. To control the order and prioritization of symbols otherwise, use `symbol-sort-key`.","sdk-support":{"basic functionality":{js:"0.49.0",android:"6.6.0",ios:"4.5.0",macos:"0.12.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,doc:"If true, the icon will be visible even if it collides with other previously drawn symbols.",requires:["icon-image",{"!":"icon-overlap"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{doc:"The icon will be hidden if it collides with any other previously drawn symbol."},always:{doc:"The icon will be visible even if it collides with any other previously drawn symbol."},cooperative:{doc:"If the icon collides with another previously drawn symbol, the overlap mode for that symbol is checked. If the previous symbol was placed using `never` overlap mode, the new icon is hidden. If the previous symbol was placed using `always` or `cooperative` overlap mode, the new icon is visible."}},doc:"Allows for control over whether to show an icon when it overlaps other symbols on the map. If `icon-overlap` is not set, `icon-allow-overlap` is used instead.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"2.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the icon.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,doc:"If true, text will display without their corresponding icons when the icon collides with other symbols and the text does not.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns icons east-west. When `symbol-placement` is set to `line` or `line-center`, aligns icon x-axes with the line."},viewport:{doc:"Produces icons whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",doc:"Scales the original size of the icon by the provided factor. The new pixel size of the image will be the original pixel size multiplied by `icon-size`. 1 is the original size; 3 triples the size of the image.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{doc:"The icon is displayed at its intrinsic aspect ratio."},width:{doc:"The icon is scaled in the x-dimension to fit the width of the text."},height:{doc:"The icon is scaled in the y-dimension to fit the height of the text."},both:{doc:"The icon is scaled in both x- and y-dimensions."}},default:"none",doc:"Scales the icon to fit around the associated text.",requires:["icon-image","text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"stretchable icons":{js:"1.6.0",android:"9.2.0",ios:"5.8.0",macos:"0.15.0"}},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",doc:"Size of the additional area added to dimensions determined by `icon-text-fit`, in clockwise order: top, right, bottom, left.",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",doc:"Name of image in sprite to use for drawing an image background.",tokens:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the icon clockwise.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",doc:"Size of additional area round the icon bounding box used for detecting symbol collisions. Values are declared using CSS margin shorthand syntax: a single value applies to all four sides; two values apply to [top/bottom, left/right]; three values apply to [top, left/right, bottom]; four values apply to [top, right, bottom, left]. For backwards compatibility, a single bare number is accepted, and treated the same as a one-element array - padding applied to all sides.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"2.2.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,doc:"If true, the icon may be flipped to prevent it from being rendered upside-down.",requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],doc:"Offset distance of icon from its anchor. Positive values indicate right and down, while negative values indicate left and up. Each component is multiplied by the value of `icon-size` to obtain the final offset in pixels. When combined with `icon-rotate` the offset will be as if the rotated direction was up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{doc:"The center of the icon is placed closest to the anchor."},left:{doc:"The left side of the icon is placed closest to the anchor."},right:{doc:"The right side of the icon is placed closest to the anchor."},top:{doc:"The top of the icon is placed closest to the anchor."},bottom:{doc:"The bottom of the icon is placed closest to the anchor."},"top-left":{doc:"The top left corner of the icon is placed closest to the anchor."},"top-right":{doc:"The top right corner of the icon is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the icon is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the icon is placed closest to the anchor."}},default:"center",doc:"Part of the icon placed closest to the anchor.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{doc:"The icon is aligned to the plane of the map."},viewport:{doc:"The icon is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `icon-rotation-alignment`."}},default:"auto",doc:"Orientation of icon when map is pitched.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{doc:"The text is aligned to the plane of the map."},viewport:{doc:"The text is aligned to the plane of the viewport."},auto:{doc:"Automatically matches the value of `text-rotation-alignment`."}},default:"auto",doc:"Orientation of text when map is pitched.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{doc:"When `symbol-placement` is set to `point`, aligns text east-west. When `symbol-placement` is set to `line` or `line-center`, aligns text x-axes with the line."},viewport:{doc:"Produces glyphs whose x-axes are aligned with the x-axis of the viewport, regardless of the value of `symbol-placement`."},"viewport-glyph":{doc:"When `symbol-placement` is set to `point`, aligns text to the x-axis of the viewport. When `symbol-placement` is set to `line` or `line-center`, aligns glyphs to the x-axis of the viewport and places them along the line."},auto:{doc:"When `symbol-placement` is set to `point`, this is equivalent to `viewport`. When `symbol-placement` is set to `line` or `line-center`, this is equivalent to `map`."}},default:"auto",doc:"In combination with `symbol-placement`, determines the rotation behavior of the individual glyphs forming the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"`auto` value":{js:"0.25.0",android:"4.2.0",ios:"3.4.0",macos:"0.3.0"},"`viewport-glyph` value":{js:"2.1.8"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,doc:"Value to use for a text label. If a plain `string` is provided, it will be treated as a `formatted` with default/inherited formatting options.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],doc:"Font stack to use for displaying text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",doc:"Font size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",doc:"The maximum line width for text wrapping.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",doc:"Text leading value for multi-line text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",doc:"Text tracking amount.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.40.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{doc:"The text is aligned towards the anchor position."},left:{doc:"The text is aligned to the left."},center:{doc:"The text is centered."},right:{doc:"The text is aligned to the right."}},default:"center",doc:"Text justification options.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"},auto:{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,doc:"Radial offset of text, in the direction of the symbol's anchor. Useful in combination with `text-variable-anchor`, which defaults to using the two-dimensional `text-offset` if present.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"},"data-driven styling":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},requires:["text-field",{"symbol-placement":["point"]}],doc:"To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations: the renderer will attempt to place the label at each location, in order, before moving onto the next label. Use `text-justify: auto` to choose justification based on anchor position. To apply an offset, use the `text-radial-offset` or the two-dimensional `text-offset`.","sdk-support":{"basic functionality":{js:"0.54.0",android:"7.4.0",ios:"4.10.0",macos:"0.14.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],doc:'To increase the chance of placing high-priority labels on the map, you can provide an array of `text-anchor` locations, each paired with an offset value. The renderer will attempt to place the label at each location, in order, before moving on to the next location+offset. Use `text-justify: auto` to choose justification based on anchor position. \n\n The length of the array must be even, and must alternate between enum and point entries. i.e., each anchor location must be accompanied by a point, and that point defines the offset when the corresponding anchor location is used. Positive offset values indicate right and down, while negative values indicate left and up. Anchor locations may repeat, allowing the renderer to try multiple offsets to try and place a label using the same anchor. \n\n When present, this property takes precedence over `text-anchor`, `text-variable-anchor`, `text-offset`, and `text-radial-offset`. \n\n ```json \n { "text-variable-anchor-offset": ["top", [0, 4], "left", [3,0], "bottom", [1, 1]] } \n ``` \n\n When the renderer chooses the `top` anchor, `[0, 4]` will be used for `text-offset`; the text will be shifted down by 4 ems. \n\n When the renderer chooses the `left` anchor, `[3, 0]` will be used for `text-offset`; the text will be shifted right by 3 ems.',"sdk-support":{"basic functionality":{js:"3.3.0"},"data-driven styling":{js:"3.3.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{doc:"The center of the text is placed closest to the anchor."},left:{doc:"The left side of the text is placed closest to the anchor."},right:{doc:"The right side of the text is placed closest to the anchor."},top:{doc:"The top of the text is placed closest to the anchor."},bottom:{doc:"The bottom of the text is placed closest to the anchor."},"top-left":{doc:"The top left corner of the text is placed closest to the anchor."},"top-right":{doc:"The top right corner of the text is placed closest to the anchor."},"bottom-left":{doc:"The bottom left corner of the text is placed closest to the anchor."},"bottom-right":{doc:"The bottom right corner of the text is placed closest to the anchor."}},default:"center",doc:"Part of the text placed closest to the anchor.",requires:["text-field",{"!":"text-variable-anchor"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",doc:"Maximum angle change between adjacent characters.",requires:["text-field",{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{doc:"If a text's language supports horizontal writing mode, symbols with point placement would be laid out horizontally."},vertical:{doc:"If a text's language supports vertical writing mode, symbols with point placement would be laid out vertically."}},doc:"The property allows control over a symbol's orientation. Note that the property values act as a hint, so that a symbol whose language doesn’t support the provided orientation will be laid out in its natural orientation. Example: English point symbol will be rendered horizontally even if array value contains single 'vertical' enum value. The order of elements in an array define priority order for the placement of an orientation variant.",requires:["text-field",{"symbol-placement":["point"]}],"sdk-support":{"basic functionality":{js:"1.3.0",android:"8.3.0",ios:"5.3.0",macos:"0.15.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",doc:"Rotates the text clockwise.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",doc:"Size of the additional area around the text bounding box used for detecting symbol collisions.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,doc:"If true, the text may be flipped vertically to prevent it from being rendered upside-down.",requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{doc:"The text is not altered."},uppercase:{doc:"Forces all letters to be displayed in uppercase."},lowercase:{doc:"Forces all letters to be displayed in lowercase."}},default:"none",doc:"Specifies how to capitalize text, similar to the CSS `text-transform` property.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",doc:"Offset distance of text from its anchor. Positive values indicate right and down, while negative values indicate left and up. If used with text-variable-anchor, input values will be taken as absolute values. Offsets along the x- and y-axis will be applied automatically based on the anchor position.",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.35.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,doc:"If true, the text will be visible even if it collides with other previously drawn symbols.",requires:["text-field",{"!":"text-overlap"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{doc:"The text will be hidden if it collides with any other previously drawn symbol."},always:{doc:"The text will be visible even if it collides with any other previously drawn symbol."},cooperative:{doc:"If the text collides with another previously drawn symbol, the overlap mode for that symbol is checked. If the previous symbol was placed using `never` overlap mode, the new text is hidden. If the previous symbol was placed using `always` or `cooperative` overlap mode, the new text is visible."}},doc:"Allows for control over whether to show symbol text when it overlaps other symbols on the map. If `text-overlap` is not set, `text-allow-overlap` is used instead",requires:["text-field"],"sdk-support":{"basic functionality":{js:"2.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,doc:"If true, other symbols can be visible even if they collide with the text.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,doc:"If true, icons will display without their corresponding text when the text collides with other symbols and the icon does not.",requires:["text-field","icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Dde={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},"property-type":"constant"}},Ude={visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},"property-type":"constant"}},Rde={type:"array",value:"*",doc:"A filter selects specific features from a layer."},Lde={type:"enum",values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'},within:{doc:'`["within", object]` feature geometry is within object geometry'}},doc:"The filter operator."},zde={type:"enum",values:{Point:{doc:"Filter to point geometries."},LineString:{doc:"Filter to line geometries."},Polygon:{doc:"Filter to polygon geometries."}},doc:"The geometry type for the filter to select."},jde={type:"array",minimum:0,maximum:24,value:["number","color"],length:2,doc:"Zoom level and value pair."},Wde={type:"array",value:"*",minimum:1,doc:"An expression defines a function that can be used for data-driven style properties or feature filters."},Nde={doc:"",type:"enum",values:{let:{doc:'Binds expressions to named variables, which can then be referenced in the result expression using ["var", "variable_name"].',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},var:{doc:'References variable bound using "let".',group:"Variable binding","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},literal:{doc:"Provides a literal array or object value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},array:{doc:"Asserts that the input is an array (optionally with a specific item type and length). If, when the input expression is evaluated, it is not of the asserted type, then this assertion will cause the whole expression to be aborted.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},at:{doc:"Retrieves an item from an array.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},in:{doc:"Determines whether an item exists in an array or a substring exists in a string.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.6.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"index-of":{doc:"Returns the first position at which an item can be found in an array or a substring can be found in a string, or `-1` if the input cannot be found. Accepts an optional index from where to begin the search.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},slice:{doc:"Returns an item from an array or a substring from a string from a specified start index, or between a start index and an end index if set. The return value is inclusive of the start index but not of the end index.",group:"Lookup","sdk-support":{"basic functionality":{js:"1.10.0"}}},case:{doc:"Selects the first output whose corresponding test condition evaluates to true, or the fallback value otherwise.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},match:{doc:'Selects the output whose label value matches the input value, or the fallback value if no match is found. The input can be any expression (e.g. `["get", "building_type"]`). Each label must be either:\n - a single literal value; or\n - an array of literal values, whose values must be all strings or all numbers (e.g. `[100, 101]` or `["c", "b"]`). The input matches if any of the values in the array matches, similar to the `"in"` operator.\nEach label must be unique. If the input type does not match the type of the labels, the result will be the fallback value.',group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},coalesce:{doc:"Evaluates each expression in turn until the first non-null value is obtained, and returns that value.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},step:{doc:'Produces discrete, stepped results by evaluating a piecewise-constant function defined by pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. Returns the output value of the stop just less than the input, or the first output if the input is less than the first stop.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},interpolate:{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). The `input` may be any numeric expression (e.g., `["get", "population"]`). Stop inputs must be numeric literals in strictly ascending order. The output type must be `number`, `array`, or `color`.\n\nInterpolation types:\n- `["linear"]`, or an expression returning one of those types: Interpolates linearly between the pair of stops just less than and just greater than the input.\n- `["exponential", base]`: Interpolates exponentially between the stops just less than and just greater than the input. `base` controls the rate at which the output increases: higher values make the output increase more towards the high end of the range. With values close to 1 the output increases linearly.\n- `["cubic-bezier", x1, y1, x2, y2]`: Interpolates using the cubic bezier curve defined by the given control points.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"interpolate-hcl":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the Hue-Chroma-Luminance color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},"interpolate-lab":{doc:'Produces continuous, smooth results by interpolating between pairs of input and output values ("stops"). Works like `interpolate`, but the output type must be `color`, and the interpolation is performed in the CIELAB color space.',group:"Ramps, scales, curves","sdk-support":{"basic functionality":{js:"0.49.0"}}},ln2:{doc:"Returns mathematical constant ln(2).",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},pi:{doc:"Returns the mathematical constant pi.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},e:{doc:"Returns the mathematical constant e.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},typeof:{doc:"Returns a string describing the type of the given value.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},string:{doc:"Asserts that the input value is a string. If multiple values are provided, each one is evaluated in order until a string is obtained. If none of the inputs are strings, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},number:{doc:"Asserts that the input value is a number. If multiple values are provided, each one is evaluated in order until a number is obtained. If none of the inputs are numbers, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},boolean:{doc:"Asserts that the input value is a boolean. If multiple values are provided, each one is evaluated in order until a boolean is obtained. If none of the inputs are booleans, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},object:{doc:"Asserts that the input value is an object. If multiple values are provided, each one is evaluated in order until an object is obtained. If none of the inputs are objects, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},collator:{doc:"Returns a `collator` for use in locale-dependent comparison operations. The `case-sensitive` and `diacritic-sensitive` options default to `false`. The `locale` argument specifies the IETF language tag of the locale to use. If none is provided, the default locale is used. If the requested locale is not available, the `collator` will use a system-defined fallback locale. Use `resolved-locale` to test the results of locale fallback behavior.",group:"Types","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},format:{doc:'Returns a `formatted` string for displaying mixed-format text in the `text-field` property. The input may contain a string literal or expression, including an [`\'image\'`](#types-image) expression. Strings may be followed by a style override object that supports the following properties:\n- `"text-font"`: Overrides the font stack specified by the root layout property.\n- `"text-color"`: Overrides the color specified by the root paint property.\n- `"font-scale"`: Applies a scaling factor on `text-size` as specified by the root layout property.',group:"Types","sdk-support":{"basic functionality":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-font":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"font-scale":{js:"0.48.0",android:"6.7.0",ios:"4.6.0",macos:"0.12.0"},"text-color":{js:"1.3.0",android:"7.3.0",ios:"4.10.0",macos:"0.14.0"},image:{js:"1.6.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},image:{doc:"Returns an `image` type for use in `icon-image`, `*-pattern` entries and as a section in the `format` expression. If set, the `image` argument will check that the requested image exists in the style and will return either the resolved image name or `null`, depending on whether or not the image is currently in the style. This validation process is synchronous and requires the image to have been added to the style before requesting it in the `image` argument.",group:"Types","sdk-support":{"basic functionality":{js:"1.4.0",android:"8.6.0",ios:"5.7.0",macos:"0.15.0"}}},"number-format":{doc:"Converts the input number into a string representation using the providing formatting rules. If set, the `locale` argument specifies the locale to use, as a BCP 47 language tag. If set, the `currency` argument specifies an ISO 4217 code to use for currency-style formatting. If set, the `min-fraction-digits` and `max-fraction-digits` arguments specify the minimum and maximum number of fractional digits to include.",group:"Types","sdk-support":{"basic functionality":{js:"0.54.0"}}},"to-string":{doc:'Converts the input value to a string. If the input is `null`, the result is `""`. If the input is a boolean, the result is `"true"` or `"false"`. If the input is a number, it is converted to a string as specified by the ["NumberToString" algorithm](https://tc39.github.io/ecma262/#sec-tostring-applied-to-the-number-type) of the ECMAScript Language Specification. If the input is a color, it is converted to a string of the form `"rgba(r,g,b,a)"`, where `r`, `g`, and `b` are numerals ranging from 0 to 255, and `a` ranges from 0 to 1. Otherwise, the input is converted to a string in the format specified by the [`JSON.stringify`](https://tc39.github.io/ecma262/#sec-json.stringify) function of the ECMAScript Language Specification.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-number":{doc:'Converts the input value to a number, if possible. If the input is `null` or `false`, the result is 0. If the input is `true`, the result is 1. If the input is a string, it is converted to a number as specified by the ["ToNumber Applied to the String Type" algorithm](https://tc39.github.io/ecma262/#sec-tonumber-applied-to-the-string-type) of the ECMAScript Language Specification. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.',group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-boolean":{doc:"Converts the input value to a boolean. The result is `false` when then input is an empty string, 0, `false`, `null`, or `NaN`; otherwise it is `true`.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-rgba":{doc:"Returns a four-element array containing the input color's red, green, blue, and alpha components, in that order.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"to-color":{doc:"Converts the input value to a color. If multiple values are provided, each one is evaluated in order until the first successful conversion is obtained. If none of the inputs can be converted, the expression is an error.",group:"Types","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgb:{doc:"Creates a color value from red, green, and blue components, which must range between 0 and 255, and an alpha component of 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},rgba:{doc:"Creates a color value from red, green, blue components, which must range between 0 and 255, and an alpha component which must range between 0 and 1. If any component is out of range, the expression is an error.",group:"Color","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},get:{doc:"Retrieves a property value from the current feature's properties, or from another object if a second argument is provided. Returns null if the requested property is missing.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},has:{doc:"Tests for the presence of an property value in the current feature's properties, or from another object if a second argument is provided.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},length:{doc:"Gets the length of an array or string.",group:"Lookup","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},properties:{doc:'Gets the feature properties object. Note that in some cases, it may be more efficient to use ["get", "property_name"] directly.',group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"feature-state":{doc:"Retrieves a property value from the current feature's state. Returns null if the requested property is not present on the feature's state. A feature's state is not part of the GeoJSON or vector tile data, and must be set programmatically on each feature. When `source.promoteId` is not provided, features are identified by their `id` attribute, which must be an integer or a string that can be cast to an integer. When `source.promoteId` is provided, features are identified by their `promoteId` property, which may be a number, string, or any primitive data type. Note that [\"feature-state\"] can only be used with paint properties that support data-driven styling.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.46.0"}}},"geometry-type":{doc:"Gets the feature's geometry type: `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},id:{doc:"Gets the feature's id, if it has one.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},zoom:{doc:'Gets the current zoom level. Note that in style layout and paint properties, ["zoom"] may only appear as the input to a top-level "step" or "interpolate" expression.',group:"Zoom","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"heatmap-density":{doc:"Gets the kernel density estimation of a pixel in a heatmap layer, which is a relative measure of how many data points are crowded around a particular pixel. Can only be used in the `heatmap-color` property.",group:"Heatmap","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"line-progress":{doc:"Gets the progress along a gradient line. Can only be used in the `line-gradient` property.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.6.0",macos:"0.12.0"}}},accumulated:{doc:"Gets the value of a cluster property accumulated so far. Can only be used in the `clusterProperties` option of a clustered GeoJSON source.",group:"Feature data","sdk-support":{"basic functionality":{js:"0.53.0"}}},"+":{doc:"Returns the sum of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"*":{doc:"Returns the product of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"-":{doc:"For two inputs, returns the result of subtracting the second input from the first. For a single input, returns the result of subtracting it from 0.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"/":{doc:"Returns the result of floating point division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"%":{doc:"Returns the remainder after integer division of the first input by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"^":{doc:"Returns the result of raising the first input to the power specified by the second.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sqrt:{doc:"Returns the square root of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.42.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log10:{doc:"Returns the base-ten logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ln:{doc:"Returns the natural logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},log2:{doc:"Returns the base-two logarithm of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},sin:{doc:"Returns the sine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},cos:{doc:"Returns the cosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},tan:{doc:"Returns the tangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},asin:{doc:"Returns the arcsine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},acos:{doc:"Returns the arccosine of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},atan:{doc:"Returns the arctangent of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},min:{doc:"Returns the minimum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},max:{doc:"Returns the maximum value of the inputs.",group:"Math","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},round:{doc:'Rounds the input to the nearest integer. Halfway values are rounded away from zero. For example, `["round", -1.5]` evaluates to -2.',group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},abs:{doc:"Returns the absolute value of the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},ceil:{doc:"Returns the smallest integer that is greater than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},floor:{doc:"Returns the largest integer that is less than or equal to the input.",group:"Math","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},distance:{doc:"Returns the shortest distance in meters between the evaluated feature and the input geometry. The input value can be a valid GeoJSON of type `Point`, `MultiPoint`, `LineString`, `MultiLineString`, `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Distance values returned may vary in precision due to loss in precision from encoding geometries, particularly below zoom level 13.",group:"Math","sdk-support":{"basic functionality":{android:"9.2.0",ios:"5.9.0",macos:"0.16.0"}}},"==":{doc:"Returns `true` if the input values are equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"!=":{doc:"Returns `true` if the input values are not equal, `false` otherwise. The comparison is strictly typed: values of different runtime types are always considered unequal. Cases where the types are known to be different at parse time are considered invalid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">":{doc:"Returns `true` if the first input is strictly greater than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<":{doc:"Returns `true` if the first input is strictly less than the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},">=":{doc:"Returns `true` if the first input is greater than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},"<=":{doc:"Returns `true` if the first input is less than or equal to the second, `false` otherwise. The arguments are required to be either both strings or both numbers; if during evaluation they are not, expression evaluation produces an error. Cases where this constraint is known not to hold at parse time are considered in valid and will produce a parse error. Accepts an optional `collator` argument to control locale-dependent string comparisons.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},collator:{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}},all:{doc:"Returns `true` if all the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `false`, the result is `false` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},any:{doc:"Returns `true` if any of the inputs are `true`, `false` otherwise. The inputs are evaluated in order, and evaluation is short-circuiting: once an input expression evaluates to `true`, the result is `true` and no further input expressions are evaluated.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"!":{doc:"Logical negation. Returns `true` if the input is `false`, and `false` if the input is `true`.",group:"Decision","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},within:{doc:"Returns `true` if the evaluated feature is fully contained inside a boundary of the input geometry, `false` otherwise. The input value can be a valid GeoJSON of type `Polygon`, `MultiPolygon`, `Feature`, or `FeatureCollection`. Supported features for evaluation:\n- `Point`: Returns `false` if a point is on the boundary or falls outside the boundary.\n- `LineString`: Returns `false` if any part of a line falls outside the boundary, the line intersects the boundary, or a line's endpoint is on the boundary.",group:"Decision","sdk-support":{"basic functionality":{js:"1.9.0",android:"9.1.0",ios:"5.8.0",macos:"0.15.0"}}},"is-supported-script":{doc:"Returns `true` if the input string is expected to render legibly. Returns `false` if the input string contains sections that cannot be rendered without potential loss of meaning (e.g. Indic scripts that require complex text shaping, or right-to-left scripts if the the `mapbox-gl-rtl-text` plugin is not in use in MapLibre GL JS).",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.6.0"}}},upcase:{doc:"Returns the input string converted to uppercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},downcase:{doc:"Returns the input string converted to lowercase. Follows the Unicode Default Case Conversion algorithm and the locale-insensitive case mappings in the Unicode Character Database.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},concat:{doc:"Returns a `string` consisting of the concatenation of the inputs. Each input is converted to a string as if by `to-string`.",group:"String","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}}},"resolved-locale":{doc:"Returns the IETF language tag of the locale being used by the provided `collator`. This can be used to determine the default system locale, or to determine if a requested locale was successfully loaded.",group:"String","sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.2.0",macos:"0.9.0"}}}}},Gde={anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}}}},Qde={"sky-color":{type:"color","property-type":"data-constant",default:"#88C6FC",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The base color for the sky."},"fog-color":{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"The base color for the fog."},"fog-blend":{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"How to blend the fog over the 3D terrain. A value between 0 and 1. Where 0 is the map center and 1 is the horizon"},"horizon-blend":{type:"number","property-type":"data-constant",default:.8,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"How to blend the fog and sky color at the horizon. A value between 0 and 1. Where 0 is the horizon and 1 is map-height / 2"}},$de={source:{type:"string",doc:"The source for the terrain data.",required:!0,"sdk-support":{"basic functionality":{js:"2.2.0"}}},exaggeration:{type:"number",minimum:0,doc:"The exaggeration of the terrain - how high it will look.",default:1,"sdk-support":{"basic functionality":{js:"2.2.0"}}}},Yde=["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],qde={"fill-antialias":{type:"boolean",default:!0,doc:"Whether or not the fill should be antialiased.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill layer. In contrast to the `fill-color`, this value will also affect the 1px stroke around the fill, if the stroke is used.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.21.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",doc:"The color of the filled part of this layer. This color can be specified as `rgba` with an alpha component and the color's opacity will not affect the opacity of the 1px stroke, if it is used.",transition:!0,requires:[{"!":"fill-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",doc:"The outline color of the fill. Matches the value of `fill-color` if unspecified.",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.19.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{doc:"The fill is translated relative to the map."},viewport:{doc:"The fill is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-translate`.",default:"map",requires:["fill-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},Vde={"line-opacity":{type:"number",doc:"The opacity at which the line will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",doc:"The color with which the line will be drawn.",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.23.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{doc:"The line is translated relative to the map."},viewport:{doc:"The line is translated relative to the viewport."}},doc:"Controls the frame of reference for `line-translate`.",default:"map",requires:["line-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",doc:"Stroke thickness.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,doc:"Draws a line casing outside of a line's actual path. Value indicates the width of the inner gap.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,doc:"The line's offset. For linear features, a positive value offsets the line to the right, relative to the direction of the line, and a negative value to the left. For polygon features, a positive value results in an inset, and a negative value results in an outset.",transition:!0,units:"pixels","sdk-support":{"basic functionality":{js:"0.12.1",android:"3.0.0",ios:"3.1.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"Blur applied to the line, in pixels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",doc:"Specifies the lengths of the alternating dashes and gaps that form the dash pattern. The lengths are later scaled by the line width. To convert a dash length to pixels, multiply the length by the current line width. Note that GeoJSON sources with `lineMetrics: true` specified won't render dashed lines to the expected scale. Also note that zoom-dependent expressions will be evaluated only at integer zoom levels.",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing image lines. For seamless patterns, image width must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",doc:'Defines a gradient with which to color a line feature. Can only be used with GeoJSON sources that specify `"lineMetrics": true`.',transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],"sdk-support":{"basic functionality":{js:"0.45.0",android:"6.5.0",ios:"4.4.0",macos:"0.11.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},Hde={"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",doc:"Circle radius.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",doc:"The fill color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.18.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,doc:"Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",doc:"The opacity at which the circle will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.20.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up, respectively.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{doc:"The circle is translated relative to the map."},viewport:{doc:"The circle is translated relative to the viewport."}},doc:"Controls the frame of reference for `circle-translate`.",default:"map",requires:["circle-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{doc:"Circles are scaled according to their apparent distance to the camera."},viewport:{doc:"Circles are not scaled."}},default:"map",doc:"Controls the scaling behavior of the circle when the map is pitched.","sdk-support":{"basic functionality":{js:"0.21.0",android:"4.2.0",ios:"3.4.0",macos:"0.2.1"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{doc:"The circle is aligned to the plane of the map."},viewport:{doc:"The circle is aligned to the plane of the viewport."}},default:"viewport",doc:"Orientation of circle when map is pitched.","sdk-support":{"basic functionality":{js:"0.39.0",android:"5.2.0",ios:"3.7.0",macos:"0.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",doc:"The width of the circle's stroke. Strokes are placed outside of the `circle-radius`.","sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",doc:"The stroke color of the circle.",transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",doc:"The opacity of the circle's stroke.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"},"data-driven styling":{js:"0.29.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},Zde={"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",doc:"Radius of influence of one heatmap point in pixels. Increasing the value makes the heatmap smoother, but less detailed.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,doc:"A measure of how much an individual point contributes to the heatmap. A value of 10 would be equivalent to having 10 points of weight 1 in the same spot. Especially useful when combined with clustering.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,doc:"Similar to `heatmap-weight` but controls the intensity of the heatmap globally. Primarily used for adjusting the heatmap based on zoom level.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.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"],doc:'Defines the color of each pixel based on its density value in a heatmap. Should be an expression that uses `["heatmap-density"]` as input.',transition:!1,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"},"data-driven styling":{}},expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",doc:"The global opacity at which the heatmap layer will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},Xde={"icon-opacity":{doc:"The opacity at which the icon will be drawn.",type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,doc:"The color of the icon. This can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the icon's halo. Icon halos can only be used with SDF icons.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the icon outline.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Fade out the halo towards the outside.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the icon's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["icon-image"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{doc:"Icons are translated relative to the map."},viewport:{doc:"Icons are translated relative to the viewport."}},doc:"Controls the frame of reference for `icon-translate`.",default:"map",requires:["icon-image","icon-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",doc:"The opacity at which the text will be drawn.",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",doc:"The color with which the text will be drawn.",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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,doc:"The color of the text's halo, which helps it stand out from backgrounds.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance of halo to the font outline. Max text halo width is 1/4 of the font-size.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"The halo's fadeout distance towards the outside.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{js:"0.33.0",android:"5.0.0",ios:"3.5.0",macos:"0.4.0"}},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",doc:"Distance that the text's anchor is moved from its original placement. Positive values indicate right and down, while negative values indicate left and up.",requires:["text-field"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{doc:"The text is translated relative to the map."},viewport:{doc:"The text is translated relative to the viewport."}},doc:"Controls the frame of reference for `text-translate`.",default:"map",requires:["text-field","text-translate"],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},Jde={"raster-opacity":{type:"number",doc:"The opacity at which the image will be drawn.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",doc:"Rotates hues around the color wheel.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the minimum brightness.",default:0,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",doc:"Increase or reduce the brightness of the image. The value is the maximum brightness.",default:1,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",doc:"Increase or reduce the saturation of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",doc:"Increase or reduce the contrast of the image.",default:0,minimum:-1,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",doc:"The resampling/interpolation method to use for overscaling, also known as texture magnification filter",values:{linear:{doc:"(Bi)linear filtering interpolates pixel values using the weighted average of the four closest original source pixels creating a smooth but blurry look when overscaled"},nearest:{doc:"Nearest neighbor filtering interpolates pixel values using the nearest original source pixel creating a sharp but pixelated look when overscaled"}},default:"linear","sdk-support":{"basic functionality":{js:"0.47.0",android:"6.3.0",ios:"4.2.0",macos:"0.9.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",doc:"Fade duration when a new tile is added, or when a video is started or its coordinates are updated.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},ehe={"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,doc:"The direction of the light source used to generate the hillshading with 0 as the top of the viewport if `hillshade-illumination-anchor` is set to `viewport` and due north if `hillshade-illumination-anchor` is set to `map`.",transition:!1,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{doc:"The hillshade illumination is relative to the north direction."},viewport:{doc:"The hillshade illumination is relative to the top of the viewport."}},default:"viewport",doc:"Direction of light source when map is rotated.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",doc:"Intensity of the hillshade",default:.5,minimum:0,maximum:1,transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",doc:"The shading color of areas that face away from the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",doc:"The shading color of areas that faces towards the light source.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",doc:"The shading color used to accentuate rugged terrain like sharp cliffs and gorges.",transition:!0,"sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0",macos:"0.7.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},the={"background-color":{type:"color",default:"#000000",doc:"The color with which the background will be drawn.",transition:!0,requires:[{"!":"background-pattern"}],"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing an image background. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"},"data-driven styling":{}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the background will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0",macos:"0.1.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},nhe={duration:{type:"number",default:300,minimum:0,units:"milliseconds",doc:"Time allotted for transitions to complete."},delay:{type:"number",default:0,minimum:0,units:"milliseconds",doc:"Length of time before a transition begins."}},rhe={"*":{type:"string",doc:"A name of a feature property to use as ID for feature state."}},Ji={$version:yde,$root:vde,sources:Cde,source:_de,source_vector:bde,source_raster:xde,source_raster_dem:wde,source_geojson:Mde,source_video:Sde,source_image:Ede,layer:Ode,layout:Bde,layout_background:kde,layout_fill:Ide,layout_circle:Tde,layout_heatmap:Kde,"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{doc:"The layer is shown."},none:{doc:"The layer is not shown."}},default:"visible",doc:"Whether this layer is displayed.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},"property-type":"constant"}},layout_line:Pde,layout_symbol:Fde,layout_raster:Dde,layout_hillshade:Ude,filter:Rde,filter_operator:Lde,geometry_type:zde,function:{expression:{type:"expression",doc:"An expression."},stops:{type:"array",doc:"An array of stops.",value:"function_stop"},base:{type:"number",default:1,minimum:0,doc:"The exponential base of the interpolation curve. It controls the rate at which the result increases. Higher values make the result increase more towards the high end of the range. With `1` the stops are interpolated linearly."},property:{type:"string",doc:"The name of a feature property to use as the function input.",default:"$zoom"},type:{type:"enum",values:{identity:{doc:"Return the input value as the output value."},exponential:{doc:"Generate an output by interpolating between stops just less than and just greater than the function input."},interval:{doc:"Return the output value of the stop just less than the function input."},categorical:{doc:"Return the output value of the stop equal to the function input."}},doc:"The interpolation strategy to use in function evaluation.",default:"exponential"},colorSpace:{type:"enum",values:{rgb:{doc:"Use the RGB color space to interpolate color values"},lab:{doc:"Use the LAB color space to interpolate color values."},hcl:{doc:"Use the HCL color space to interpolate color values, interpolating the Hue, Chroma, and Luminance channels individually."}},doc:"The color space in which colors interpolated. Interpolating colors in perceptual color spaces like LAB and HCL tend to produce color ramps that look more consistent and produce colors that can be differentiated more easily than those interpolated in RGB space.",default:"rgb"},default:{type:"*",required:!1,doc:`A value to serve as a fallback function result when a value isn't otherwise available. It is used in the following circumstances: * In categorical functions, when the feature value does not match any of the stop domain values. * In property and zoom-and-property functions, when a feature does not contain a value for the specified property. * In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color). * In interval or exponential property and zoom-and-property functions, when the feature value is not numeric. If no default is provided, the style property's default is used in these circumstances.`}},function_stop:jde,expression:Wde,expression_name:Nde,light:Gde,sky:Qde,terrain:$de,paint:Yde,paint_fill:qde,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},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",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Vde,paint_circle:Hde,paint_heatmap:Zde,paint_symbol:Xde,paint_raster:Jde,paint_hillshade:ehe,paint_background:the,transition:nhe,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constant across all zoom levels and property values."}},promoteId:rhe};function yu(){var e="/home/runner/work/maputnik/maputnik/src/components/InputSelect.tsx",n="1b99a181d4a9dd7b629113889cbb71c3a4bb4d42",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputSelect.tsx",statementMap:{0:{start:{line:5,column:18},end:{line:5,column:36}},1:{start:{line:6,column:4},end:{line:8,column:5}},2:{start:{line:7,column:6},end:{line:7,column:43}},3:{start:{line:7,column:35},end:{line:7,column:41}},4:{start:{line:9,column:4},end:{line:21,column:6}},5:{start:{line:17,column:25},end:{line:17,column:60}},6:{start:{line:19,column:64},end:{line:19,column:115}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:2},end:{line:4,column:3}},loc:{start:{line:4,column:11},end:{line:22,column:3}},line:4},1:{name:"(anonymous_1)",decl:{start:{line:7,column:28},end:{line:7,column:29}},loc:{start:{line:7,column:35},end:{line:7,column:41}},line:7},2:{name:"(anonymous_2)",decl:{start:{line:17,column:18},end:{line:17,column:19}},loc:{start:{line:17,column:25},end:{line:17,column:60}},line:17},3:{name:"(anonymous_3)",decl:{start:{line:19,column:30},end:{line:19,column:31}},loc:{start:{line:19,column:64},end:{line:19,column:115}},line:19}},branchMap:{0:{loc:{start:{line:6,column:4},end:{line:8,column:5}},type:"if",locations:[{start:{line:6,column:4},end:{line:8,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},1:{loc:{start:{line:6,column:8},end:{line:6,column:56}},type:"binary-expr",locations:[{start:{line:6,column:8},end:{line:6,column:26}},{start:{line:6,column:30},end:{line:6,column:56}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputSelect.tsx"],names:[],mappings:"AA4BsC;AA5BtC,OAAO,WAAW;AAYlB,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,SAAS;AACP,QAAI,UAAU,KAAK,MAAM;AACzB,QAAG,QAAQ,SAAS,KAAK,CAAC,MAAM,QAAQ,QAAQ,CAAC,CAAC,GAAG;AACnD,gBAAU,QAAQ,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAAA,IACrC;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,WAAU;AAAA,QACV,eAAa,KAAK,MAAM,aAAa;AAAA,QACrC,OAAO,KAAK,MAAM;AAAA,QAClB,OAAO,KAAK,MAAM;AAAA,QAClB,OAAO,KAAK,MAAM;AAAA,QAClB,UAAU,OAAK,KAAK,MAAM,SAAS,EAAE,OAAO,KAAK;AAAA,QACjD,cAAY,KAAK,MAAM,YAAY;AAAA,QAEjC,kBAAQ,IAAI,CAAC,CAAC,KAAK,KAAK,MAAM,oBAAC,YAAiB,OAAO,KAAM,mBAAlB,GAAwB,CAAS;AAAA;AAAA,IAChF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b99a181d4a9dd7b629113889cbb71c3a4bb4d42"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return yu=function(){return s},s}yu();class w1 extends bn.Component{render(){yu().f[0]++;let n=(yu().s[0]++,this.props.options);return yu().s[1]++,yu().b[1][0]++,n.length>0&&(yu().b[1][1]++,!Array.isArray(n[0]))?(yu().b[0][0]++,yu().s[2]++,n=n.map(t=>(yu().f[1]++,yu().s[3]++,[t,t]))):yu().b[0][1]++,yu().s[4]++,N.jsx("select",{className:"maputnik-select","data-wd-key":this.props["data-wd-key"],style:this.props.style,title:this.props.title,value:this.props.value,onChange:t=>(yu().f[2]++,yu().s[5]++,this.props.onChange(t.target.value)),"aria-label":this.props["aria-label"],children:n.map(([t,r])=>(yu().f[3]++,yu().s[6]++,N.jsx("option",{value:t,children:r},t)))})}}function ap(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldType.tsx",n="1b7060ffc75823b83956b34c84f8d7f711912270",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldType.tsx",statementMap:{0:{start:{line:8,column:24},end:{line:10,column:3}},1:{start:{line:12,column:4},end:{line:48,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:11,column:2},end:{line:11,column:3}},loc:{start:{line:11,column:11},end:{line:49,column:3}},line:11}},branchMap:{0:{loc:{start:{line:20,column:10},end:{line:26,column:11}},type:"binary-expr",locations:[{start:{line:20,column:10},end:{line:20,column:29}},{start:{line:20,column:49},end:{line:26,column:11}}],line:20},1:{loc:{start:{line:27,column:10},end:{line:45,column:11}},type:"binary-expr",locations:[{start:{line:27,column:10},end:{line:27,column:30}},{start:{line:27,column:50},end:{line:45,column:11}}],line:27}},s:{0:0,1:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldType.tsx"],names:[],mappings:"AAqBW,SAKH,KALG;AArBX,OAAO,WAAW;AAElB,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AAUxB,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,OAAO,eAAe;AAAA,IACpB,UAAU;AAAA,EACZ;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QAAM,OAAO;AAAA,QAAQ,WAAW,OAAO,MAAM;AAAA,QACnD,eAAa,KAAK,MAAM;AAAA,QACxB,OAAO,KAAK,MAAM;AAAA,QAEjB;AAAA,eAAK,MAAM,YACV;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,KAAK,MAAM;AAAA,cAClB,UAAU;AAAA;AAAA,UACZ;AAAA,UAED,CAAC,KAAK,MAAM,YACX;AAAA,YAAC;AAAA;AAAA,cACC,SAAS;AAAA,gBACP,CAAC,cAAc,YAAY;AAAA,gBAC3B,CAAC,QAAQ,MAAM;AAAA,gBACf,CAAC,QAAQ,MAAM;AAAA,gBACf,CAAC,UAAU,QAAQ;AAAA,gBACnB,CAAC,UAAU,QAAQ;AAAA,gBACnB,CAAC,UAAU,QAAQ;AAAA,gBACnB,CAAC,kBAAkB,gBAAgB;AAAA,gBACnC,CAAC,aAAa,WAAW;AAAA,gBACzB,CAAC,WAAW,SAAS;AAAA,cACvB;AAAA,cACA,UAAU,KAAK,MAAM;AAAA,cACrB,OAAO,KAAK,MAAM;AAAA,cAClB,eAAa,KAAK,MAAM,QAAQ;AAAA;AAAA,UAClC;AAAA;AAAA;AAAA,IAEJ;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1b7060ffc75823b83956b34c84f8d7f711912270"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ap=function(){return s},s}ap();class e8 extends bn.Component{render(){return ap().f[0]++,ap().s[1]++,N.jsxs(Uo,{label:"Type",fieldSpec:Ji.layer.type,"data-wd-key":this.props.wdKey,error:this.props.error,children:[(ap().b[0][0]++,this.props.disabled&&(ap().b[0][1]++,N.jsx(Sd,{value:this.props.value,disabled:!0}))),(ap().b[1][0]++,!this.props.disabled&&(ap().b[1][1]++,N.jsx(w1,{options:[["background","Background"],["fill","Fill"],["line","Line"],["symbol","Symbol"],["raster","Raster"],["circle","Circle"],["fill-extrusion","Fill Extrusion"],["hillshade","Hillshade"],["heatmap","Heatmap"]],onChange:this.props.onChange,value:this.props.value,"data-wd-key":this.props.wdKey+".select"})))]})}}nn(e8,"defaultProps",(ap().s[0]++,{disabled:!1}));function X3(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldId.tsx",n="a7d93cb2f79962c714e16c8b482f49de057b0cb8",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldId.tsx",statementMap:{0:{start:{line:8,column:4},end:{line:24,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:2},end:{line:7,column:3}},loc:{start:{line:7,column:11},end:{line:25,column:3}},line:7}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldId.tsx"],names:[],mappings:"AAmBM;AAnBN,OAAO,WAAW;AAElB,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AASxB,qBAAqB,gBAAgB,MAAM,UAAwB;AAAA,EACjE,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QAAM,OAAO;AAAA,QAAM,WAAW,OAAO,MAAM;AAAA,QACjD,eAAa,KAAK,MAAM;AAAA,QACxB,OAAO,KAAK,MAAM;AAAA,QAElB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,KAAK,MAAM;AAAA,YAClB,SAAS,KAAK,MAAM;AAAA,YACpB,eAAa,KAAK,MAAM,QAAQ;AAAA;AAAA,QAClC;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a7d93cb2f79962c714e16c8b482f49de057b0cb8"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return X3=function(){return s},s}X3();class Jj extends bn.Component{render(){return X3().f[0]++,X3().s[0]++,N.jsx(Uo,{label:"ID",fieldSpec:Ji.layer.id,"data-wd-key":this.props.wdKey,error:this.props.error,children:N.jsx(Sd,{value:this.props.value,onInput:this.props.onChange,"data-wd-key":this.props.wdKey+".input"})})}}var eW={exports:{}},ihe=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;function ohe(e){var n,t,r,i=e.ownerDocument,o=i.body,s=i&&i.documentElement;return n=e.getBoundingClientRect(),t=n.left,r=n.top,t-=s.clientLeft||o.clientLeft||0,r-=s.clientTop||o.clientTop||0,{left:t,top:r}}function tW(e,n){var t=e["page"+(n?"Y":"X")+"Offset"],r="scroll"+(n?"Top":"Left");if(typeof t!="number"){var i=e.document;t=i.documentElement[r],typeof t!="number"&&(t=i.body[r])}return t}function TE(e){return tW(e)}function KE(e){return tW(e,!0)}function nW(e){var n=ohe(e),t=e.ownerDocument,r=t.defaultView||t.parentWindow;return n.left+=TE(r),n.top+=KE(r),n}function ahe(e,n,t){var r="",i=e.ownerDocument;return(t=t||i.defaultView.getComputedStyle(e,null))&&(r=t.getPropertyValue(n)||t[n]),r}var she=new RegExp("^("+ihe+")(?!px)[a-z%]+$","i"),lhe=/^(top|right|bottom|left)$/,GM="currentStyle",QM="runtimeStyle",b0="left",uhe="px";function Ahe(e,n){var t=e[GM]&&e[GM][n];if(she.test(t)&&!lhe.test(n)){var r=e.style,i=r[b0],o=e[QM][b0];e[QM][b0]=e[GM][b0],r[b0]=n==="fontSize"?"1em":t||0,t=r.pixelLeft+uhe,r[b0]=i,e[QM][b0]=o}return t===""?"auto":t}var m1;typeof window<"u"&&(m1=window.getComputedStyle?ahe:Ahe);function che(e,n){ly(e,"position")==="static"&&(e.style.position="relative");var t=nW(e),r={},i,o;for(o in n)i=parseFloat(ly(e,o))||0,r[o]=i+n[o]-t[o];ly(e,r)}function t8(e,n){for(var t=0;t0?o===!0?Ra.scrollTop(n,R.top+H.top):o===!1?Ra.scrollTop(n,R.top+W.top):H.top<0?Ra.scrollTop(n,R.top+H.top):Ra.scrollTop(n,R.top+W.top):i||(o=o===void 0?!0:!!o,o?Ra.scrollTop(n,R.top+H.top):Ra.scrollTop(n,R.top+W.top)),r&&(H.left<0||W.left>0?s===!0?Ra.scrollLeft(n,R.left+H.left):s===!1?Ra.scrollLeft(n,R.left+W.left):H.left<0?Ra.scrollLeft(n,R.left+H.left):Ra.scrollLeft(n,R.left+W.left):i||(s=s===void 0?!0:!!s,s?Ra.scrollLeft(n,R.left+H.left):Ra.scrollLeft(n,R.left+W.left)))}var vhe=yhe,Che=vhe,x2=Object.assign||function(e){for(var n=1;n=this.getFilteredItems(i).length)return{highlightedIndex:null}}},{key:"setMenuPositions",value:function(){var r=this.refs.input,i=r.getBoundingClientRect(),o=window.window.getComputedStyle(r),s=parseInt(o.marginBottom,10)||0,a=parseInt(o.marginLeft,10)||0,f=parseInt(o.marginRight,10)||0;this.setState({menuTop:i.bottom+s,menuLeft:i.left+a,menuWidth:i.width+a+f})}},{key:"highlightItemFromMouse",value:function(r){this.setState({highlightedIndex:r})}},{key:"selectItemFromMouse",value:function(r){var i=this,o=this.props.getItemValue(r);this.setIgnoreBlur(!1),this.setState({isOpen:!1,highlightedIndex:null},function(){i.props.onSelect(o,r)})}},{key:"setIgnoreBlur",value:function(r){this._ignoreBlur=r}},{key:"renderMenu",value:function(){var r=this,i=this.getFilteredItems(this.props).map(function(a,f){var g=r.props.renderItem(a,r.state.highlightedIndex===f,{cursor:"default"});return P0.cloneElement(g,{onMouseEnter:r.props.isItemSelectable(a)?function(){return r.highlightItemFromMouse(f)}:null,onClick:r.props.isItemSelectable(a)?function(){return r.selectItemFromMouse(a)}:null,ref:function(k){return r.refs["item-"+f]=k}})}),o={left:this.state.menuLeft,top:this.state.menuTop,minWidth:this.state.menuWidth},s=this.props.renderMenu(i,this.props.value,o);return P0.cloneElement(s,{ref:function(f){return r.refs.menu=f},onTouchStart:function(){return r.setIgnoreBlur(!0)},onMouseEnter:function(){return r.setIgnoreBlur(!0)},onMouseLeave:function(){return r.setIgnoreBlur(!1)}})}},{key:"handleInputBlur",value:function(r){var i=this;if(this._ignoreBlur){this._ignoreFocus=!0,this._scrollOffset=Ohe(),this.refs.input.focus();return}var o=void 0,s=this.state.highlightedIndex;if(this.props.selectOnBlur&&s!==null){var a=this.getFilteredItems(this.props),f=a[s],g=this.props.getItemValue(f);o=function(){return i.props.onSelect(g,f)}}this.setState({isOpen:!1,highlightedIndex:null},o);var x=this.props.inputProps.onBlur;x&&x(r)}},{key:"handleInputFocus",value:function(r){var i=this;if(this._ignoreFocus){this._ignoreFocus=!1;var o=this._scrollOffset,s=o.x,a=o.y;this._scrollOffset=null,window.scrollTo(s,a),clearTimeout(this._scrollTimer),this._scrollTimer=setTimeout(function(){i._scrollTimer=null,window.scrollTo(s,a)},0);return}this.setState({isOpen:!0});var f=this.props.inputProps.onFocus;f&&f(r)}},{key:"isInputFocused",value:function(){var r=this.refs.input;return r.ownerDocument&&r===r.ownerDocument.activeElement}},{key:"handleInputClick",value:function(){this.isInputFocused()&&!this.isOpen()&&this.setState({isOpen:!0})}},{key:"composeEventHandlers",value:function(r,i){return i?function(o){r(o),i(o)}:r}},{key:"isOpen",value:function(){return"open"in this.props?this.props.open:this.state.isOpen}},{key:"render",value:function(){this.props.debug&&this._debugStates.push({id:this._debugStates.length,state:this.state});var r=this.props.inputProps,i=this.isOpen();return P0.createElement("div",x2({style:x2({},this.props.wrapperStyle)},this.props.wrapperProps),this.props.renderInput(x2({},r,{role:"combobox","aria-autocomplete":"list","aria-expanded":i,autoComplete:"off",ref:this.exposeAPI,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onChange:this.handleChange,onKeyDown:this.composeEventHandlers(this.handleKeyDown,r.onKeyDown),onClick:this.composeEventHandlers(this.handleInputClick,r.onClick),value:this.props.value})),i&&this.renderMenu(),this.props.debug&&P0.createElement("pre",{style:{marginLeft:300}},JSON.stringify(this._debugStates.slice(Math.max(0,this._debugStates.length-5),this._debugStates.length),null,2)))}}]),n}(P0.Component);S5.propTypes={items:gl.array.isRequired,value:gl.any,onChange:gl.func,onSelect:gl.func,shouldItemRender:gl.func,isItemSelectable:gl.func,sortItems:gl.func,getItemValue:gl.func.isRequired,renderItem:gl.func.isRequired,renderMenu:gl.func,menuStyle:gl.object,renderInput:gl.func,inputProps:gl.object,wrapperProps:gl.object,wrapperStyle:gl.object,autoHighlight:gl.bool,selectOnBlur:gl.bool,onMenuVisibilityChange:gl.func,open:gl.bool,debug:gl.bool};S5.defaultProps={value:"",wrapperProps:{},wrapperStyle:{display:"inline-block"},inputProps:{},renderInput:function(n){return P0.createElement("input",n)},onChange:function(){},onSelect:function(){},isItemSelectable:function(){return!0},renderMenu:function(n,t,r){return P0.createElement("div",{style:x2({},r,this.menuStyle),children:n})},menuStyle:{borderRadius:"3px",boxShadow:"0 2px 12px rgba(0, 0, 0, 0.1)",background:"rgba(255, 255, 255, 0.9)",padding:"2px 0",fontSize:"90%",position:"fixed",overflow:"auto",maxHeight:"50%"},autoHighlight:!0,selectOnBlur:!1,onMenuVisibilityChange:function(){}};S5.keyDownHandlers={ArrowDown:function(n){n.preventDefault();var t=this.getFilteredItems(this.props);if(t.length){for(var r=this.state.highlightedIndex,i=r===null?-1:r,o=0;o-1&&i!==r&&this.setState({highlightedIndex:i,isOpen:!0})}},ArrowUp:function(n){n.preventDefault();var t=this.getFilteredItems(this.props);if(t.length){for(var r=this.state.highlightedIndex,i=r===null?t.length:r,o=0;o{Ni().f[6]++,Ni().s[13]++,this.autocompleteMenuEl=t},children:N.jsx(khe,{menuStyle:{position:"fixed",overflow:"auto",maxHeight:this.state.maxHeight,zIndex:"998"},wrapperProps:{className:"maputnik-autocomplete",style:{}},inputProps:{"aria-label":this.props["aria-label"],className:"maputnik-string",spellCheck:!1},value:this.props.value,items:this.props.options,getItemValue:t=>(Ni().f[7]++,Ni().s[14]++,t[0]),onSelect:t=>(Ni().f[8]++,Ni().s[15]++,this.onChange(t)),onChange:(t,r)=>(Ni().f[9]++,Ni().s[16]++,this.onChange(r)),shouldItemRender:(t,r=(Ni().b[3][0]++,""))=>(Ni().f[10]++,Ni().s[17]++,typeof r=="string"?(Ni().b[4][0]++,Ni().s[18]++,t[0].toLowerCase().indexOf(r.toLowerCase())>-1):(Ni().b[4][1]++,Ni().s[19]++,!1)),renderItem:(t,r)=>(Ni().f[11]++,Ni().s[20]++,N.jsx("div",{className:Af({"maputnik-autocomplete-menu-item":!0,"maputnik-autocomplete-menu-item-selected":r}),children:t[1]},t[0]))})})}}nn(Qy,"defaultProps",(Ni().s[3]++,{onChange:()=>{Ni().f[0]++},options:[]}));function nm(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldSource.tsx",n="44fb815ce2e11a9e460bc73a5ffbca69a1bcff3c",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldSource.tsx",statementMap:{0:{start:{line:7,column:24},end:{line:11,column:3}},1:{start:{line:13,column:4},end:{line:29,column:6}},2:{start:{line:25,column:56},end:{line:25,column:66}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:14},end:{line:8,column:15}},loc:{start:{line:8,column:20},end:{line:9,column:5}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:11},end:{line:30,column:3}},line:12},2:{name:"(anonymous_2)",decl:{start:{line:25,column:47},end:{line:25,column:48}},loc:{start:{line:25,column:56},end:{line:25,column:66}},line:25}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldSource.tsx"],names:[],mappings:"AA2BM;AA3BN,OAAO,WAAW;AAElB,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,uBAAuB;AAU9B,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,OAAO,eAAe;AAAA,IACpB,UAAU,MAAM;AAAA,IAAC;AAAA,IACjB,WAAW,CAAC;AAAA,EACd;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,OAAO;AAAA,QACP,WAAW,OAAO,MAAM;AAAA,QACxB,OAAO,KAAK,MAAM;AAAA,QAClB,eAAa,KAAK,MAAM;AAAA,QAExB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,KAAK,MAAM;AAAA,YACrB,SAAS,KAAK,MAAM,WAAW,IAAI,SAAO,CAAC,KAAK,GAAG,CAAC;AAAA;AAAA,QACtD;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"44fb815ce2e11a9e460bc73a5ffbca69a1bcff3c"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return nm=function(){return s},s}nm();class n8 extends bn.Component{render(){var n;return nm().f[1]++,nm().s[1]++,N.jsx(Uo,{label:"Source",fieldSpec:Ji.layer.source,error:this.props.error,"data-wd-key":this.props.wdKey,children:N.jsx(Qy,{value:this.props.value,onChange:this.props.onChange,options:(n=this.props.sourceIds)==null?void 0:n.map(t=>(nm().f[2]++,nm().s[2]++,[t,t]))})})}}nn(n8,"defaultProps",(nm().s[0]++,{onChange:()=>{nm().f[0]++},sourceIds:[]}));function rm(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldSourceLayer.tsx",n="f2bf4f193e0e44eb8c2b4f31458a3cde7f5305bd",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldSourceLayer.tsx",statementMap:{0:{start:{line:7,column:24},end:{line:12,column:3}},1:{start:{line:14,column:4},end:{line:31,column:6}},2:{start:{line:27,column:59},end:{line:27,column:65}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:14},end:{line:8,column:15}},loc:{start:{line:8,column:20},end:{line:9,column:5}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:11},end:{line:32,column:3}},line:13},2:{name:"(anonymous_2)",decl:{start:{line:27,column:52},end:{line:27,column:53}},loc:{start:{line:27,column:59},end:{line:27,column:65}},line:27}},branchMap:{},s:{0:0,1:0,2:0},f:{0:0,1:0,2:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldSourceLayer.tsx"],names:[],mappings:"AA4BM;AA5BN,OAAO,WAAW;AAElB,SAAQ,cAAa;AACrB,OAAO,WAAW;AAClB,OAAO,uBAAuB;AAU9B,qBAAqB,yBAAyB,MAAM,UAAiC;AAAA,EACnF,OAAO,eAAe;AAAA,IACpB,UAAU,MAAM;AAAA,IAAC;AAAA,IACjB,gBAAgB,CAAC;AAAA,IACjB,SAAS;AAAA,EACX;AAAA,EAEA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,OAAO;AAAA,QACP,WAAW,OAAO,MAAM,cAAc;AAAA,QACtC,eAAY;AAAA,QACZ,OAAO,KAAK,MAAM;AAAA,QAElB;AAAA,UAAC;AAAA;AAAA,YACC,4BAA4B,CAAC,CAAC,KAAK,MAAM;AAAA,YACzC,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,KAAK,MAAM;AAAA,YACrB,SAAS,KAAK,MAAM,gBAAgB,IAAI,OAAK,CAAC,GAAG,CAAC,CAAC;AAAA;AAAA,QACrD;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f2bf4f193e0e44eb8c2b4f31458a3cde7f5305bd"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return rm=function(){return s},s}rm();class r8 extends bn.Component{render(){var n;return rm().f[1]++,rm().s[1]++,N.jsx(Uo,{label:"Source Layer",fieldSpec:ma.layer["source-layer"],"data-wd-key":"layer-source-layer",error:this.props.error,children:N.jsx(Qy,{keepMenuWithinWindowBounds:!!this.props.isFixed,value:this.props.value,onChange:this.props.onChange,options:(n=this.props.sourceLayerIds)==null?void 0:n.map(t=>(rm().f[2]++,rm().s[2]++,[t,t]))})})}}nn(r8,"defaultProps",(rm().s[0]++,{onChange:()=>{rm().f[0]++},sourceLayerIds:[],isFixed:!1}));function dr(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalAdd.tsx",n="a7785e30671066cb83402b9013479a4548583811",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalAdd.tsx",statementMap:{0:{start:{line:10,column:13},end:{line:25,column:3}},1:{start:{line:11,column:26},end:{line:11,column:52}},2:{start:{line:12,column:18},end:{line:15,column:5}},3:{start:{line:16,column:4},end:{line:21,column:5}},4:{start:{line:17,column:6},end:{line:17,column:39}},5:{start:{line:18,column:6},end:{line:20,column:7}},6:{start:{line:19,column:8},end:{line:19,column:59}},7:{start:{line:22,column:4},end:{line:22,column:30}},8:{start:{line:23,column:4},end:{line:23,column:45}},9:{start:{line:24,column:4},end:{line:24,column:35}},10:{start:{line:27,column:4},end:{line:27,column:17}},11:{start:{line:28,column:18},end:{line:31,column:5}},12:{start:{line:32,column:4},end:{line:35,column:5}},13:{start:{line:33,column:6},end:{line:33,column:56}},14:{start:{line:34,column:6},end:{line:34,column:66}},15:{start:{line:36,column:4},end:{line:36,column:23}},16:{start:{line:39,column:20},end:{line:39,column:34}},17:{start:{line:40,column:20},end:{line:40,column:35}},18:{start:{line:41,column:32},end:{line:41,column:56}},19:{start:{line:42,column:32},end:{line:42,column:56}},20:{start:{line:43,column:4},end:{line:50,column:5}},21:{start:{line:47,column:6},end:{line:49,column:9}},22:{start:{line:53,column:22},end:{line:53,column:54}},23:{start:{line:54,column:4},end:{line:54,column:34}},24:{start:{line:57,column:20},end:{line:57,column:22}},25:{start:{line:58,column:18},end:{line:78,column:5}},26:{start:{line:79,column:4},end:{line:84,column:5}},27:{start:{line:80,column:22},end:{line:80,column:30}},28:{start:{line:81,column:6},end:{line:83,column:7}},29:{start:{line:82,column:8},end:{line:82,column:26}},30:{start:{line:85,column:4},end:{line:85,column:19}},31:{start:{line:88,column:20},end:{line:88,column:52}},32:{start:{line:89,column:19},end:{line:89,column:61}},33:{start:{line:90,column:4},end:{line:146,column:6}},34:{start:{line:105,column:16},end:{line:105,column:41}},35:{start:{line:114,column:31},end:{line:114,column:57}},36:{start:{line:123,column:31},end:{line:123,column:59}},37:{start:{line:132,column:31},end:{line:132,column:67}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:13},end:{line:10,column:14}},loc:{start:{line:10,column:19},end:{line:25,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:26,column:2},end:{line:26,column:3}},loc:{start:{line:26,column:21},end:{line:37,column:3}},line:26},2:{name:"(anonymous_2)",decl:{start:{line:38,column:2},end:{line:38,column:3}},loc:{start:{line:38,column:44},end:{line:51,column:3}},line:38},3:{name:"(anonymous_3)",decl:{start:{line:52,column:2},end:{line:52,column:3}},loc:{start:{line:52,column:29},end:{line:55,column:3}},line:52},4:{name:"(anonymous_4)",decl:{start:{line:56,column:2},end:{line:56,column:3}},loc:{start:{line:56,column:19},end:{line:86,column:3}},line:56},5:{name:"(anonymous_5)",decl:{start:{line:87,column:2},end:{line:87,column:3}},loc:{start:{line:87,column:11},end:{line:147,column:3}},line:87},6:{name:"(anonymous_6)",decl:{start:{line:104,column:24},end:{line:104,column:25}},loc:{start:{line:104,column:31},end:{line:106,column:15}},line:104},7:{name:"(anonymous_7)",decl:{start:{line:114,column:24},end:{line:114,column:25}},loc:{start:{line:114,column:31},end:{line:114,column:57}},line:114},8:{name:"(anonymous_8)",decl:{start:{line:123,column:24},end:{line:123,column:25}},loc:{start:{line:123,column:31},end:{line:123,column:59}},line:123},9:{name:"(anonymous_9)",decl:{start:{line:132,column:24},end:{line:132,column:25}},loc:{start:{line:132,column:31},end:{line:132,column:67}},line:132}},branchMap:{0:{loc:{start:{line:16,column:4},end:{line:21,column:5}},type:"if",locations:[{start:{line:16,column:4},end:{line:21,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:16},1:{loc:{start:{line:18,column:6},end:{line:20,column:7}},type:"if",locations:[{start:{line:18,column:6},end:{line:20,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},2:{loc:{start:{line:18,column:10},end:{line:18,column:68}},type:"binary-expr",locations:[{start:{line:18,column:10},end:{line:18,column:38}},{start:{line:18,column:42},end:{line:18,column:68}}],line:18},3:{loc:{start:{line:32,column:4},end:{line:35,column:5}},type:"if",locations:[{start:{line:32,column:4},end:{line:35,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:32},4:{loc:{start:{line:43,column:4},end:{line:50,column:5}},type:"if",locations:[{start:{line:43,column:4},end:{line:50,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:43},5:{loc:{start:{line:45,column:6},end:{line:45,column:160}},type:"binary-expr",locations:[{start:{line:45,column:6},end:{line:45,column:25}},{start:{line:45,column:29},end:{line:45,column:52}},{start:{line:45,column:56},end:{line:45,column:106}},{start:{line:45,column:110},end:{line:45,column:160}}],line:45},6:{loc:{start:{line:53,column:22},end:{line:53,column:54}},type:"binary-expr",locations:[{start:{line:53,column:22},end:{line:53,column:48}},{start:{line:53,column:52},end:{line:53,column:54}}],line:53},7:{loc:{start:{line:54,column:11},end:{line:54,column:33}},type:"binary-expr",locations:[{start:{line:54,column:11},end:{line:54,column:27}},{start:{line:54,column:31},end:{line:54,column:33}}],line:54},8:{loc:{start:{line:81,column:6},end:{line:83,column:7}},type:"if",locations:[{start:{line:81,column:6},end:{line:83,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:81},9:{loc:{start:{line:81,column:10},end:{line:81,column:61}},type:"binary-expr",locations:[{start:{line:81,column:10},end:{line:81,column:24}},{start:{line:81,column:28},end:{line:81,column:61}}],line:81},10:{loc:{start:{line:117,column:10},end:{line:125,column:11}},type:"binary-expr",locations:[{start:{line:117,column:10},end:{line:117,column:42}},{start:{line:117,column:62},end:{line:125,column:11}}],line:117},11:{loc:{start:{line:126,column:10},end:{line:134,column:11}},type:"binary-expr",locations:[{start:{line:126,column:10},end:{line:126,column:87}},{start:{line:126,column:107},end:{line:134,column:11}}],line:126}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0,0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/ModalAdd.tsx"],names:[],mappings:"AAyIM,SACE,KADF;AAzIN,OAAO,WAAW;AAElB,OAAO,iBAAiB;AACxB,OAAO,WAAW;AAClB,OAAO,eAAe;AACtB,OAAO,aAAa;AACpB,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAmB7B,qBAAqB,iBAAiB,MAAM,UAAwC;AAAA,EAClF,WAAW,MAAM;AACf,UAAM,gBAAgB,KAAK,MAAM,OAAO,MAAM,CAAC;AAC/C,UAAM,QAAuB;AAAA,MAC3B,IAAI,KAAK,MAAM;AAAA,MACf,MAAM,KAAK,MAAM;AAAA,IACnB;AAEA,QAAG,KAAK,MAAM,SAAS,cAAc;AACnC,YAAM,SAAS,KAAK,MAAM;AAC1B,UAAG,KAAK,MAAM,SAAS,YAAY,KAAK,MAAM,cAAc,GAAG;AAC7D,cAAM,cAAc,IAAI,KAAK,MAAM,cAAc;AAAA,MACnD;AAAA,IACF;AAEA,kBAAc,KAAK,KAA2B;AAE9C,SAAK,MAAM,eAAe,aAAa;AACvC,SAAK,MAAM,aAAa,KAAK;AAAA,EAC/B;AAAA,EAEA,YAAY,OAAsB;AAChC,UAAM,KAAK;AACX,UAAM,QAAuB;AAAA,MAC3B,MAAM;AAAA,MACN,IAAI;AAAA,IACN;AAEA,QAAG,MAAM,QAAQ,SAAS,GAAG;AAC3B,YAAM,SAAS,OAAO,KAAK,KAAK,MAAM,OAAO,EAAE,CAAC;AAChD,YAAM,cAAc,IAAI,KAAK,MAAM,QAAQ,MAAM,MAAwC,EAAE,CAAC;AAAA,IAC9F;AACA,SAAK,QAAQ;AAAA,EACf;AAAA,EAEA,mBAAmB,YAA2B,WAA0B;AAEtE,UAAM,UAAU,UAAU;AAC1B,UAAM,UAAU,KAAK,MAAM;AAE3B,UAAM,sBAAsB,KAAK,WAAW,OAAO;AACnD,UAAM,sBAAsB,KAAK,WAAW,OAAO;AAEnD;AAAA;AAAA,MAEE,YAAY,WACT,UAAU,WAAW,MAErB,oBAAoB,QAAQ,UAAU,MAAO,IAAI,MAEjD,oBAAoB,QAAQ,KAAK,MAAM,MAAO,IAAI;AAAA,MACrD;AAEA,WAAK,SAAS;AAAA,QACZ,QAAQ;AAAA,MACV,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,mBAAmB,QAAgB;AACjC,UAAM,YAAY,KAAK,MAAM,QAAQ,MAAM,KAAK,CAAC;AACjD,WAAO,UAAU,UAAU,CAAC;AAAA,EAC9B;AAAA,EAEA,WAAW,MAAc;AACvB,UAAM,UAAU,CAAC;AAEjB,UAAM,QAAQ;AAAA,MACZ,QAAQ;AAAA,QACN;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,QAAQ;AAAA,QACN;AAAA,MACF;AAAA,MACA,SAAS;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAEA,eAAU,CAAC,KAAK,GAAG,KAAK,OAAO,QAAQ,KAAK,MAAM,OAAO,GAAU;AACjE,YAAM,UAAU,IAAI;AACpB,UAAG,MAAM,OAAO,KAAK,MAAM,OAAO,EAAE,QAAQ,IAAI,IAAI,IAAI;AACtD,gBAAQ,KAAK,GAAG;AAAA,MAClB;AAAA,IACF;AAEA,WAAO;AAAA,EACT;AAAA,EAGA,SAAS;AACP,UAAM,UAAU,KAAK,WAAW,KAAK,MAAM,IAAI;AAC/C,UAAM,SAAS,KAAK,mBAAmB,KAAK,MAAM,MAAO;AAEzD,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,QAAQ,KAAK,MAAM;AAAA,QACnB,cAAc,KAAK,MAAM;AAAA,QACzB,OAAO;AAAA,QACP,eAAY;AAAA,QACZ,WAAU;AAAA,QAEV,+BAAC,SAAI,WAAU,sBACb;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,KAAK,MAAM;AAAA,cAClB,OAAM;AAAA,cACN,UAAU,CAAC,MAAc;AACvB,qBAAK,SAAS,EAAE,IAAI,EAAE,CAAC;AAAA,cACzB;AAAA;AAAA,UACF;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,KAAK,MAAM;AAAA,cAClB,OAAM;AAAA,cACN,UAAU,CAAC,MAAkC,KAAK,SAAS,EAAE,MAAM,EAAE,CAAC;AAAA;AAAA,UACxE;AAAA,UACC,KAAK,MAAM,SAAS,gBACvB;AAAA,YAAC;AAAA;AAAA,cACC,WAAW;AAAA,cACX,OAAM;AAAA,cACN,OAAO,KAAK,MAAM;AAAA,cAClB,UAAU,CAAC,MAAc,KAAK,SAAS,EAAE,QAAQ,EAAE,CAAC;AAAA;AAAA,UACtD;AAAA,UAEG,CAAC,cAAc,UAAU,aAAa,SAAS,EAAE,QAAQ,KAAK,MAAM,IAAI,IAAI,KAC/E;AAAA,YAAC;AAAA;AAAA,cACC,SAAS;AAAA,cACT,gBAAgB;AAAA,cAChB,OAAO,KAAK,MAAM,cAAc;AAAA,cAChC,UAAU,CAAC,MAAc,KAAK,SAAS,EAAE,gBAAgB,EAAE,CAAC;AAAA;AAAA,UAC9D;AAAA,UAEE;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK;AAAA,cACd,eAAY;AAAA,cACb;AAAA;AAAA,UAED;AAAA,WACF;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a7785e30671066cb83402b9013479a4548583811"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return dr=function(){return s},s}dr();class Ihe extends bn.Component{constructor(t){dr().f[1]++,dr().s[10]++;super(t);nn(this,"addLayer",(dr().s[0]++,()=>{dr().f[0]++;const t=(dr().s[1]++,this.props.layers.slice(0)),r=(dr().s[2]++,{id:this.state.id,type:this.state.type});dr().s[3]++,this.state.type!=="background"?(dr().b[0][0]++,dr().s[4]++,r.source=this.state.source,dr().s[5]++,dr().b[2][0]++,this.state.type!=="raster"&&(dr().b[2][1]++,this.state["source-layer"])?(dr().b[1][0]++,dr().s[6]++,r["source-layer"]=this.state["source-layer"]):dr().b[1][1]++):dr().b[0][1]++,dr().s[7]++,t.push(r),dr().s[8]++,this.props.onLayersChange(t),dr().s[9]++,this.props.onOpenToggle(!1)}));const r=(dr().s[11]++,{type:"fill",id:""});dr().s[12]++,t.sources.length>0?(dr().b[3][0]++,dr().s[13]++,r.source=Object.keys(this.props.sources)[0],dr().s[14]++,r["source-layer"]=this.props.sources[r.source][0]):dr().b[3][1]++,dr().s[15]++,this.state=r}componentDidUpdate(t,r){dr().f[2]++;const i=(dr().s[16]++,r.type),o=(dr().s[17]++,this.state.type),s=(dr().s[18]++,this.getSources(i)),a=(dr().s[19]++,this.getSources(o));dr().s[20]++,dr().b[5][0]++,i!==o&&(dr().b[5][1]++,r.source!=="")&&(dr().b[5][2]++,s.indexOf(r.source)>-1)&&(dr().b[5][3]++,a.indexOf(this.state.source)<0)?(dr().b[4][0]++,dr().s[21]++,this.setState({source:""})):dr().b[4][1]++}getLayersForSource(t){dr().f[3]++;const r=(dr().s[22]++,dr().b[6][0]++,this.props.sources[t]||(dr().b[6][1]++,{}));return dr().s[23]++,dr().b[7][0]++,r.layers||(dr().b[7][1]++,[])}getSources(t){dr().f[4]++;const r=(dr().s[24]++,[]),i=(dr().s[25]++,{vector:["fill","line","symbol","circle","fill-extrusion","heatmap"],raster:["raster"],geojson:["fill","line","symbol","circle","fill-extrusion","heatmap"]});dr().s[26]++;for(const[o,s]of Object.entries(this.props.sources)){const a=(dr().s[27]++,s.type);dr().s[28]++,dr().b[9][0]++,i[a]&&(dr().b[9][1]++,i[a].indexOf(t)>-1)?(dr().b[8][0]++,dr().s[29]++,r.push(o)):dr().b[8][1]++}return dr().s[30]++,r}render(){dr().f[5]++;const t=(dr().s[31]++,this.getSources(this.state.type)),r=(dr().s[32]++,this.getLayersForSource(this.state.source));return dr().s[33]++,N.jsx(_f,{isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:"Add Layer","data-wd-key":"modal:add-layer",className:"maputnik-add-modal",children:N.jsxs("div",{className:"maputnik-add-layer",children:[N.jsx(Jj,{value:this.state.id,wdKey:"add-layer.layer-id",onChange:i=>{dr().f[6]++,dr().s[34]++,this.setState({id:i})}}),N.jsx(e8,{value:this.state.type,wdKey:"add-layer.layer-type",onChange:i=>(dr().f[7]++,dr().s[35]++,this.setState({type:i}))}),(dr().b[10][0]++,this.state.type!=="background"&&(dr().b[10][1]++,N.jsx(n8,{sourceIds:t,wdKey:"add-layer.layer-source-block",value:this.state.source,onChange:i=>(dr().f[8]++,dr().s[36]++,this.setState({source:i}))}))),(dr().b[11][0]++,["background","raster","hillshade","heatmap"].indexOf(this.state.type)<0&&(dr().b[11][1]++,N.jsx(r8,{isFixed:!0,sourceLayerIds:r,value:this.state["source-layer"],onChange:i=>(dr().f[9]++,dr().s[37]++,this.setState({"source-layer":i}))}))),N.jsx(Ka,{className:"maputnik-add-layer-button",onClick:this.addLayer,"data-wd-key":"add-layer",children:"Add Layer"})]})})}}function Q0(){var e="/home/runner/work/maputnik/maputnik/src/libs/document-uid.ts",n="a991ed6da2a27b46f1adbb88a645aa2ee0df375e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/document-uid.ts",statementMap:{0:{start:{line:1,column:10},end:{line:1,column:11}},1:{start:{line:3,column:2},end:{line:3,column:8}},2:{start:{line:4,column:2},end:{line:4,column:22}}},fnMap:{0:{name:"generateUniqueId",decl:{start:{line:2,column:24},end:{line:2,column:40}},loc:{start:{line:2,column:54},end:{line:5,column:1}},line:2}},branchMap:{0:{loc:{start:{line:2,column:41},end:{line:2,column:52}},type:"default-arg",locations:[{start:{line:2,column:50},end:{line:2,column:52}}],line:2}},s:{0:0,1:0,2:0},f:{0:0},b:{0:[0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/document-uid.ts"],names:[],mappings:"AAGA,IAAI,MAAM;AAEV,wBAAwB,iBAAiB,SAAO,IAAI;AAClD;AACA,SAAO,SAAO;AAChB;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a991ed6da2a27b46f1adbb88a645aa2ee0df375e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Q0=function(){return s},s}Q0();let zT=(Q0().s[0]++,0);function Oy(e=(Q0().b[0][0]++,"")){return Q0().f[0]++,Q0().s[1]++,zT++,Q0().s[2]++,e+zT}function ti(){var e="/home/runner/work/maputnik/maputnik/src/libs/layer.ts",n="8d7d71e3a97c0e4b8cc5fd0ca26b8fdf4aa2aa36",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/layer.ts",statementMap:{0:{start:{line:3,column:28},end:{line:3,column:46}},1:{start:{line:4,column:2},end:{line:8,column:5}},2:{start:{line:5,column:4},end:{line:7,column:5}},3:{start:{line:6,column:6},end:{line:6,column:45}},4:{start:{line:9,column:29},end:{line:9,column:48}},5:{start:{line:10,column:2},end:{line:14,column:5}},6:{start:{line:11,column:4},end:{line:13,column:5}},7:{start:{line:12,column:6},end:{line:12,column:46}},8:{start:{line:15,column:2},end:{line:20,column:4}},9:{start:{line:23,column:2},end:{line:59,column:3}},10:{start:{line:24,column:4},end:{line:43,column:5}},11:{start:{line:25,column:23},end:{line:31,column:7}},12:{start:{line:32,column:6},end:{line:32,column:39}},13:{start:{line:33,column:6},end:{line:35,column:7}},14:{start:{line:34,column:8},end:{line:34,column:31}},15:{start:{line:36,column:6},end:{line:36,column:22}},16:{start:{line:38,column:23},end:{line:40,column:7}},17:{start:{line:41,column:6},end:{line:41,column:32}},18:{start:{line:42,column:6},end:{line:42,column:22}},19:{start:{line:45,column:4},end:{line:58,column:5}},20:{start:{line:46,column:6},end:{line:52,column:8}},21:{start:{line:54,column:6},end:{line:57,column:8}},22:{start:{line:62,column:2},end:{line:62,column:64}},23:{start:{line:65,column:29},end:{line:65,column:56}},24:{start:{line:66,column:19},end:{line:66,column:22}},25:{start:{line:67,column:2},end:{line:74,column:3}},26:{start:{line:67,column:15},end:{line:67,column:18}},27:{start:{line:68,column:32},end:{line:68,column:61}},28:{start:{line:69,column:4},end:{line:73,column:5}},29:{start:{line:70,column:6},end:{line:70,column:25}},30:{start:{line:72,column:6},end:{line:72,column:24}},31:{start:{line:75,column:2},end:{line:75,column:20}}},fnMap:{0:{name:"changeType",decl:{start:{line:2,column:16},end:{line:2,column:26}},loc:{start:{line:2,column:43},end:{line:21,column:1}},line:2},1:{name:"(anonymous_1)",decl:{start:{line:4,column:41},end:{line:4,column:42}},loc:{start:{line:4,column:59},end:{line:8,column:3}},line:4},2:{name:"(anonymous_2)",decl:{start:{line:10,column:42},end:{line:10,column:43}},loc:{start:{line:10,column:60},end:{line:14,column:3}},line:10},3:{name:"changeProperty",decl:{start:{line:22,column:16},end:{line:22,column:30}},loc:{start:{line:22,column:65},end:{line:60,column:1}},line:22},4:{name:"layerPrefix",decl:{start:{line:61,column:16},end:{line:61,column:27}},loc:{start:{line:61,column:34},end:{line:63,column:1}},line:61},5:{name:"findClosestCommonPrefix",decl:{start:{line:64,column:16},end:{line:64,column:39}},loc:{start:{line:64,column:53},end:{line:76,column:1}},line:64}},branchMap:{0:{loc:{start:{line:5,column:4},end:{line:7,column:5}},type:"if",locations:[{start:{line:5,column:4},end:{line:7,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:5},1:{loc:{start:{line:11,column:4},end:{line:13,column:5}},type:"if",locations:[{start:{line:11,column:4},end:{line:13,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:11},2:{loc:{start:{line:23,column:2},end:{line:59,column:3}},type:"if",locations:[{start:{line:23,column:2},end:{line:59,column:3}},{start:{line:44,column:9},end:{line:59,column:3}}],line:23},3:{loc:{start:{line:24,column:4},end:{line:43,column:5}},type:"if",locations:[{start:{line:24,column:4},end:{line:43,column:5}},{start:{line:37,column:11},end:{line:43,column:5}}],line:24},4:{loc:{start:{line:33,column:6},end:{line:35,column:7}},type:"if",locations:[{start:{line:33,column:6},end:{line:35,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:33},5:{loc:{start:{line:45,column:4},end:{line:58,column:5}},type:"if",locations:[{start:{line:45,column:4},end:{line:58,column:5}},{start:{line:53,column:11},end:{line:58,column:5}}],line:45},6:{loc:{start:{line:69,column:4},end:{line:73,column:5}},type:"if",locations:[{start:{line:69,column:4},end:{line:73,column:5}},{start:{line:71,column:11},end:{line:73,column:5}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/layer.ts"],names:[],mappings:"AAAA,SAAQ,cAAa;AAGd,gBAAS,WAAW,OAA2B,SAAiB;AACrE,QAAM,oBAAiD,EAAE,GAAG,MAAM,MAAM;AACxE,SAAO,KAAK,iBAAiB,EAAE,QAAQ,kBAAgB;AACrD,QAAG,EAAE,gBAAgB,OAAO,WAAW,OAAO,IAAI;AAChD,aAAO,kBAAkB,YAAiD;AAAA,IAC5E;AAAA,EACF,CAAC;AAED,QAAM,qBAAmD,EAAE,GAAG,MAAM,OAAO;AAC3E,SAAO,KAAK,kBAAkB,EAAE,QAAQ,kBAAgB;AACtD,QAAG,EAAE,gBAAgB,OAAO,YAAY,OAAO,IAAI;AACjD,aAAO,mBAAmB,YAAkD;AAAA,IAC9E;AAAA,EACF,CAAC;AAED,SAAO;AAAA,IACL,GAAG;AAAA,IACH,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,EACR;AACF;AAKO,gBAAS,eAAe,OAA2B,OAAwC,UAAkB,UAAe;AAEjI,MAAG,aAAa,QAAW;AACzB,QAAG,OAAO;AACR,YAAM,WAAgB;AAAA,QACpB,GAAG;AAAA;AAAA,QAEH,CAAC,KAAK,GAAG;AAAA,UACP,GAAG,MAAM,KAAK;AAAA,QAChB;AAAA,MACF;AACA,aAAO,SAAS,KAAK,EAAE,QAAQ;AAG/B,UAAG,OAAO,KAAK,SAAS,KAAK,CAAC,EAAE,SAAS,GAAG;AAC1C,eAAO,SAAS,KAAK;AAAA,MACvB;AACA,aAAO;AAAA,IACT,OAAO;AACL,YAAM,WAAgB;AAAA,QACpB,GAAG;AAAA,MACL;AACA,aAAO,SAAS,QAAQ;AACxB,aAAO;AAAA,IACT;AAAA,EACF,OACK;AACH,QAAG,OAAO;AACR,aAAO;AAAA,QACL,GAAG;AAAA,QACH,CAAC,KAAK,GAAG;AAAA,UACP,GAAG,MAAM,KAAK;AAAA,UACd,CAAC,QAAQ,GAAG;AAAA,QACd;AAAA,MACF;AAAA,IACF,OAAO;AACL,aAAO;AAAA,QACL,GAAG;AAAA,QACH,CAAC,QAAQ,GAAG;AAAA,MACd;AAAA,IACF;AAAA,EACF;AACF;AAEO,gBAAS,YAAY,MAAc;AACxC,SAAO,KAAK,QAAQ,KAAK,GAAG,EAAE,QAAQ,KAAK,GAAG,EAAE,MAAM,GAAG,EAAE,CAAC;AAC9D;AAEO,gBAAS,wBAAwB,QAA8B,KAAa;AACjF,QAAM,qBAAqB,YAAY,OAAO,GAAG,EAAE,EAAE;AACrD,MAAI,aAAa;AACjB,WAAS,IAAI,KAAK,IAAI,GAAG,KAAK;AAC5B,UAAM,sBAAsB,YAAY,OAAO,IAAE,CAAC,EAAE,EAAE;AACtD,QAAG,wBAAwB,oBAAoB;AAC7C,mBAAa,IAAI;AAAA,IACnB,OAAO;AACL,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8d7d71e3a97c0e4b8cc5fd0ca26b8fdf4aa2aa36"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ti=function(){return s},s}ti();function The(e,n){ti().f[0]++;const t=(ti().s[0]++,{...e.paint});ti().s[1]++,Object.keys(t).forEach(i=>{ti().f[1]++,ti().s[2]++,i in ma["paint_"+n]?ti().b[0][1]++:(ti().b[0][0]++,ti().s[3]++,delete t[i])});const r=(ti().s[4]++,{...e.layout});return ti().s[5]++,Object.keys(r).forEach(i=>{ti().f[2]++,ti().s[6]++,i in ma["layout_"+n]?ti().b[1][1]++:(ti().b[1][0]++,ti().s[7]++,delete r[i])}),ti().s[8]++,{...e,paint:t,layout:r,type:n}}function Khe(e,n,t,r){if(ti().f[3]++,ti().s[9]++,r===void 0)if(ti().b[2][0]++,ti().s[10]++,n){ti().b[3][0]++;const i=(ti().s[11]++,{...e,[n]:{...e[n]}});return ti().s[12]++,delete i[n][t],ti().s[13]++,Object.keys(i[n]).length<1?(ti().b[4][0]++,ti().s[14]++,delete i[n]):ti().b[4][1]++,ti().s[15]++,i}else{ti().b[3][1]++;const i=(ti().s[16]++,{...e});return ti().s[17]++,delete i[t],ti().s[18]++,i}else return ti().b[2][1]++,ti().s[19]++,n?(ti().b[5][0]++,ti().s[20]++,{...e,[n]:{...e[n],[t]:r}}):(ti().b[5][1]++,ti().s[21]++,{...e,[t]:r})}function Wg(e){return ti().f[4]++,ti().s[22]++,e.replace(" ","-").replace("_","-").split("-")[0]}function Phe(e,n){ti().f[5]++;const t=(ti().s[23]++,Wg(e[n].id));let r=(ti().s[24]++,n);ti().s[25]++;for(let i=(ti().s[26]++,n);i>0;i--){const o=(ti().s[27]++,Wg(e[i-1].id));if(ti().s[28]++,o===t)ti().b[6][0]++,ti().s[29]++,r=i-1;else return ti().b[6][1]++,ti().s[30]++,r}return ti().s[31]++,r}function Qt(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerList.tsx",n="a7cd6405e81ca6260ef85d5394a18c33340b5775",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerList.tsx",statementMap:{0:{start:{line:12,column:24},end:{line:15,column:3}},1:{start:{line:19,column:4},end:{line:19,column:17}},2:{start:{line:20,column:4},end:{line:20,column:45}},3:{start:{line:21,column:4},end:{line:21,column:48}},4:{start:{line:22,column:4},end:{line:31,column:6}},5:{start:{line:34,column:4},end:{line:43,column:7}},6:{start:{line:45,column:17},end:{line:62,column:3}},7:{start:{line:46,column:14},end:{line:46,column:15}},8:{start:{line:47,column:22},end:{line:47,column:24}},9:{start:{line:48,column:4},end:{line:57,column:7}},10:{start:{line:49,column:26},end:{line:49,column:51}},11:{start:{line:50,column:24},end:{line:50,column:52}},12:{start:{line:51,column:6},end:{line:53,column:7}},13:{start:{line:52,column:8},end:{line:52,column:63}},14:{start:{line:54,column:6},end:{line:56,column:9}},15:{start:{line:55,column:8},end:{line:55,column:17}},16:{start:{line:58,column:4},end:{line:61,column:7}},17:{start:{line:64,column:19},end:{line:64,column:21}},18:{start:{line:65,column:41},end:{line:65,column:50}},19:{start:{line:66,column:4},end:{line:83,column:5}},20:{start:{line:66,column:17},end:{line:66,column:18}},21:{start:{line:67,column:24},end:{line:67,column:44}},22:{start:{line:68,column:28},end:{line:68,column:52}},23:{start:{line:69,column:6},end:{line:72,column:8}},24:{start:{line:73,column:20},end:{line:76,column:7}},25:{start:{line:77,column:6},end:{line:82,column:7}},26:{start:{line:78,column:26},end:{line:78,column:51}},27:{start:{line:79,column:8},end:{line:79,column:30}},28:{start:{line:81,column:8},end:{line:81,column:29}},29:{start:{line:84,column:4},end:{line:84,column:18}},30:{start:{line:87,column:22},end:{line:87,column:50}},31:{start:{line:88,column:22},end:{line:88,column:55}},32:{start:{line:89,column:4},end:{line:93,column:5}},33:{start:{line:90,column:6},end:{line:90,column:68}},34:{start:{line:92,column:6},end:{line:92,column:35}},35:{start:{line:94,column:4},end:{line:96,column:7}},36:{start:{line:99,column:22},end:{line:99,column:78}},37:{start:{line:100,column:4},end:{line:100,column:51}},38:{start:{line:103,column:4},end:{line:105,column:5}},39:{start:{line:104,column:6},end:{line:104,column:18}},40:{start:{line:107,column:18},end:{line:109,column:7}},41:{start:{line:110,column:6},end:{line:114,column:7}},42:{start:{line:111,column:8},end:{line:113,column:10}},43:{start:{line:115,column:6},end:{line:115,column:17}},44:{start:{line:117,column:24},end:{line:120,column:5}},45:{start:{line:122,column:18},end:{line:124,column:7}},46:{start:{line:125,column:6},end:{line:125,column:27}},47:{start:{line:126,column:6},end:{line:126,column:17}},48:{start:{line:128,column:23},end:{line:131,column:5}},49:{start:{line:132,column:25},end:{line:132,column:53}},50:{start:{line:133,column:4},end:{line:133,column:24}},51:{start:{line:136,column:4},end:{line:152,column:5}},52:{start:{line:137,column:31},end:{line:137,column:59}},53:{start:{line:138,column:6},end:{line:151,column:7}},54:{start:{line:139,column:23},end:{line:139,column:44}},55:{start:{line:140,column:24},end:{line:143,column:9}},56:{start:{line:144,column:25},end:{line:149,column:19}},57:{start:{line:145,column:10},end:{line:145,column:37}},58:{start:{line:146,column:10},end:{line:148,column:11}},59:{start:{line:147,column:12},end:{line:147,column:36}},60:{start:{line:150,column:8},end:{line:150,column:33}},61:{start:{line:155,column:22},end:{line:155,column:24}},62:{start:{line:156,column:14},end:{line:156,column:15}},63:{start:{line:157,column:26},end:{line:157,column:46}},64:{start:{line:158,column:4},end:{line:209,column:7}},65:{start:{line:159,column:26},end:{line:159,column:51}},66:{start:{line:160,column:6},end:{line:173,column:7}},67:{start:{line:161,column:36},end:{line:171,column:9}},68:{start:{line:165,column:47},end:{line:165,column:52}},69:{start:{line:172,column:8},end:{line:172,column:28}},70:{start:{line:174,column:6},end:{line:208,column:9}},71:{start:{line:175,column:25},end:{line:175,column:72}},72:{start:{line:176,column:27},end:{line:178,column:10}},73:{start:{line:177,column:10},end:{line:177,column:97}},74:{start:{line:179,column:32},end:{line:179,column:34}},75:{start:{line:180,column:8},end:{line:182,column:9}},76:{start:{line:181,column:10},end:{line:181,column:53}},77:{start:{line:183,column:41},end:{line:205,column:9}},78:{start:{line:206,column:8},end:{line:206,column:33}},79:{start:{line:207,column:8},end:{line:207,column:17}},80:{start:{line:210,column:4},end:{line:262,column:6}},81:{start:{line:265,column:35},end:{line:265,column:118}},82:{start:{line:265,column:80},end:{line:265,column:117}},83:{start:{line:268,column:4},end:{line:277,column:6}},84:{start:{line:275,column:33},end:{line:275,column:38}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:13,column:19},end:{line:13,column:20}},loc:{start:{line:13,column:25},end:{line:14,column:5}},line:13},1:{name:"(anonymous_1)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:21},end:{line:32,column:3}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:25},end:{line:44,column:3}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:45,column:17},end:{line:45,column:18}},loc:{start:{line:45,column:23},end:{line:62,column:3}},line:45},4:{name:"(anonymous_4)",decl:{start:{line:48,column:33},end:{line:48,column:34}},loc:{start:{line:48,column:45},end:{line:57,column:5}},line:48},5:{name:"(anonymous_5)",decl:{start:{line:54,column:21},end:{line:54,column:22}},loc:{start:{line:54,column:33},end:{line:56,column:7}},line:54},6:{name:"(anonymous_6)",decl:{start:{line:63,column:2},end:{line:63,column:3}},loc:{start:{line:63,column:18},end:{line:85,column:3}},line:63},7:{name:"(anonymous_7)",decl:{start:{line:86,column:2},end:{line:86,column:3}},loc:{start:{line:86,column:37},end:{line:97,column:3}},line:86},8:{name:"(anonymous_8)",decl:{start:{line:98,column:2},end:{line:98,column:3}},loc:{start:{line:98,column:32},end:{line:101,column:3}},line:98},9:{name:"(anonymous_9)",decl:{start:{line:102,column:2},end:{line:102,column:3}},loc:{start:{line:102,column:46},end:{line:134,column:3}},line:102},10:{name:"getRequiredProps",decl:{start:{line:106,column:13},end:{line:106,column:29}},loc:{start:{line:106,column:37},end:{line:116,column:5}},line:106},11:{name:"withoutLayers",decl:{start:{line:121,column:13},end:{line:121,column:26}},loc:{start:{line:121,column:34},end:{line:127,column:5}},line:121},12:{name:"(anonymous_12)",decl:{start:{line:135,column:2},end:{line:135,column:3}},loc:{start:{line:135,column:32},end:{line:153,column:3}},line:135},13:{name:"(anonymous_13)",decl:{start:{line:144,column:50},end:{line:144,column:51}},loc:{start:{line:144,column:63},end:{line:149,column:9}},line:144},14:{name:"(anonymous_14)",decl:{start:{line:154,column:2},end:{line:154,column:3}},loc:{start:{line:154,column:11},end:{line:263,column:3}},line:154},15:{name:"(anonymous_15)",decl:{start:{line:158,column:26},end:{line:158,column:27}},loc:{start:{line:158,column:38},end:{line:209,column:5}},line:158},16:{name:"(anonymous_16)",decl:{start:{line:165,column:40},end:{line:165,column:41}},loc:{start:{line:165,column:47},end:{line:165,column:52}},line:165},17:{name:"(anonymous_17)",decl:{start:{line:174,column:21},end:{line:174,column:22}},loc:{start:{line:174,column:44},end:{line:208,column:7}},line:174},18:{name:"(anonymous_18)",decl:{start:{line:176,column:50},end:{line:176,column:51}},loc:{start:{line:176,column:61},end:{line:178,column:9}},line:176},19:{name:"(anonymous_19)",decl:{start:{line:265,column:53},end:{line:265,column:54}},loc:{start:{line:265,column:80},end:{line:265,column:117}},line:265},20:{name:"(anonymous_20)",decl:{start:{line:267,column:2},end:{line:267,column:3}},loc:{start:{line:267,column:11},end:{line:278,column:3}},line:267},21:{name:"(anonymous_21)",decl:{start:{line:275,column:27},end:{line:275,column:28}},loc:{start:{line:275,column:33},end:{line:275,column:38}},line:275}},branchMap:{0:{loc:{start:{line:51,column:6},end:{line:53,column:7}},type:"if",locations:[{start:{line:51,column:6},end:{line:53,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:51},1:{loc:{start:{line:71,column:8},end:{line:71,column:79}},type:"cond-expr",locations:[{start:{line:71,column:41},end:{line:71,column:75}},{start:{line:71,column:78},end:{line:71,column:79}}],line:71},2:{loc:{start:{line:77,column:6},end:{line:82,column:7}},type:"if",locations:[{start:{line:77,column:6},end:{line:82,column:7}},{start:{line:80,column:13},end:{line:82,column:7}}],line:77},3:{loc:{start:{line:77,column:10},end:{line:77,column:81}},type:"binary-expr",locations:[{start:{line:77,column:10},end:{line:77,column:23}},{start:{line:77,column:27},end:{line:77,column:81}}],line:77},4:{loc:{start:{line:89,column:4},end:{line:93,column:5}},type:"if",locations:[{start:{line:89,column:4},end:{line:93,column:5}},{start:{line:91,column:11},end:{line:93,column:5}}],line:89},5:{loc:{start:{line:100,column:11},end:{line:100,column:50}},type:"cond-expr",locations:[{start:{line:100,column:34},end:{line:100,column:38}},{start:{line:100,column:41},end:{line:100,column:50}}],line:100},6:{loc:{start:{line:103,column:4},end:{line:105,column:5}},type:"if",locations:[{start:{line:103,column:4},end:{line:105,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:103},7:{loc:{start:{line:110,column:6},end:{line:114,column:7}},type:"if",locations:[{start:{line:110,column:6},end:{line:114,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:110},8:{loc:{start:{line:132,column:27},end:{line:132,column:52}},type:"binary-expr",locations:[{start:{line:132,column:27},end:{line:132,column:38}},{start:{line:132,column:42},end:{line:132,column:52}}],line:132},9:{loc:{start:{line:136,column:4},end:{line:152,column:5}},type:"if",locations:[{start:{line:136,column:4},end:{line:152,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:136},10:{loc:{start:{line:138,column:6},end:{line:151,column:7}},type:"if",locations:[{start:{line:138,column:6},end:{line:151,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:138},11:{loc:{start:{line:138,column:10},end:{line:138,column:51}},type:"binary-expr",locations:[{start:{line:138,column:10},end:{line:138,column:26}},{start:{line:138,column:30},end:{line:138,column:51}}],line:138},12:{loc:{start:{line:146,column:10},end:{line:148,column:11}},type:"if",locations:[{start:{line:146,column:10},end:{line:148,column:11}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:146},13:{loc:{start:{line:146,column:14},end:{line:146,column:68}},type:"binary-expr",locations:[{start:{line:146,column:14},end:{line:146,column:32}},{start:{line:146,column:36},end:{line:146,column:68}}],line:146},14:{loc:{start:{line:160,column:6},end:{line:173,column:7}},type:"if",locations:[{start:{line:160,column:6},end:{line:173,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:160},15:{loc:{start:{line:167,column:22},end:{line:167,column:98}},type:"binary-expr",locations:[{start:{line:167,column:22},end:{line:167,column:57}},{start:{line:167,column:61},end:{line:167,column:98}}],line:167},16:{loc:{start:{line:177,column:17},end:{line:177,column:96}},type:"binary-expr",locations:[{start:{line:177,column:17},end:{line:177,column:29}},{start:{line:177,column:33},end:{line:177,column:62}},{start:{line:177,column:66},end:{line:177,column:96}}],line:177},17:{loc:{start:{line:180,column:8},end:{line:182,column:9}},type:"if",locations:[{start:{line:180,column:8},end:{line:182,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:180},18:{loc:{start:{line:187,column:52},end:{line:187,column:153}},type:"binary-expr",locations:[{start:{line:187,column:52},end:{line:187,column:69}},{start:{line:187,column:73},end:{line:187,column:112}},{start:{line:187,column:116},end:{line:187,column:153}}],line:187},19:{loc:{start:{line:188,column:53},end:{line:188,column:105}},type:"binary-expr",locations:[{start:{line:188,column:53},end:{line:188,column:84}},{start:{line:188,column:88},end:{line:188,column:105}}],line:188},20:{loc:{start:{line:196,column:25},end:{line:196,column:43}},type:"binary-expr",locations:[{start:{line:196,column:25},end:{line:196,column:37}},{start:{line:196,column:41},end:{line:196,column:43}}],line:196},21:{loc:{start:{line:239,column:26},end:{line:239,column:90}},type:"cond-expr",locations:[{start:{line:239,column:69},end:{line:239,column:79}},{start:{line:239,column:82},end:{line:239,column:90}}],line:239}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0,0],17:[0,0],18:[0,0,0],19:[0,0],20:[0,0],21:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerList.tsx"],names:[],mappings:"AAiNoB,cAkEd,YAlEc;AAjNpB,OAAO,WAAuB;AAC9B,OAAO,gBAAgB;AACvB,OAAO,YAAY;AAEnB,OAAO,oBAAoB;AAC3B,OAAO,mBAAmB;AAC1B,OAAO,cAAc;AAErB,SAAwB,yBAAwB;AAEhD,OAAO,sBAAsB;AAC7B,SAAS,yBAAyB,mBAAmB;AAsBrD,MAAM,2BAA2B,MAAM,UAA4D;AAAA,EACjG,OAAO,eAAe;AAAA,IACpB,eAAe,MAAM;AAAA,IAAC;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EAEA,YAAY,OAAgC;AAC1C,UAAM,KAAK;AACX,SAAK,kBAAkB,MAAM,UAAU;AACvC,SAAK,qBAAqB,MAAM,UAAU;AAC1C,SAAK,QAAQ;AAAA,MACX,iBAAiB,CAAC;AAAA,MAClB,sBAAsB;AAAA,MACtB,MAAM;AAAA,QACJ,KAAK,CAAC,iBAAiB;AAAA,MACzB;AAAA,MACA,QAAQ;AAAA,QACN,KAAK;AAAA,MACP;AAAA,IACF;AAAA,EACF;AAAA,EAEA,YAAY,WAAmB;AAC7B,SAAK,SAAS;AAAA,MACZ,MAAM;AAAA,QACJ,GAAG,KAAK,MAAM;AAAA,QACd,CAAC,SAAS,GAAG,CAAC,iBAAiB;AAAA,MACjC;AAAA,MACA,QAAQ;AAAA,QACN,GAAG,KAAK,MAAM;AAAA,QACd,CAAC,SAAS,GAAG,CAAC,KAAK,MAAM,OAAO,SAAS;AAAA,MAC3C;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,eAAe,MAAM;AACnB,QAAI,MAAM;AAEV,UAAM,YAAqC,CAAC;AAE5C,SAAK,cAAc,EAAE,QAAQ,YAAU;AACrC,YAAM,cAAc,YAAY,OAAO,CAAC,EAAE,EAAE;AAC5C,YAAM,YAAY,CAAC,aAAa,GAAG,EAAE,KAAK,GAAG;AAG7C,UAAI,OAAO,SAAS,GAAG;AACrB,kBAAU,SAAS,IAAI,KAAK,MAAM;AAAA,MACpC;AAEA,aAAO,QAAQ,CAAC,WAAW;AACzB,eAAO;AAAA,MACT,CAAC;AAAA,IACH,CAAC;AAED,SAAK,SAAS;AAAA,MACZ,iBAAiB;AAAA,MACjB,sBAAsB,CAAC,KAAK,MAAM;AAAA,IACpC,CAAC;AAAA,EACH;AAAA,EAEA,gBAA0D;AACxD,UAAM,SAAS,CAAC;AAChB,UAAM,eAAe,oBAAI,IAAI;AAE7B,aAAS,IAAI,GAAG,IAAI,KAAK,MAAM,OAAO,QAAQ,KAAK;AACjD,YAAM,YAAY,KAAK,MAAM,OAAO,CAAC;AACrC,YAAM,gBAAgB,KAAK,MAAM,OAAO,IAAE,CAAC;AAC3C,mBAAa;AAAA,QAAI,UAAU;AAAA,QACzB,aAAa,IAAI,UAAU,EAAE,IAAI,aAAa,IAAI,UAAU,EAAE,IAAI,IAAI;AAAA,MACxE;AACA,YAAM,QAAQ;AAAA,QACZ,GAAG;AAAA,QACH,KAAK,eAAe,UAAU,EAAE,IAAI,aAAa,IAAI,UAAU,EAAE,CAAC;AAAA,MACpE;AACA,UAAG,iBAAiB,YAAY,cAAc,EAAE,KAAK,YAAY,MAAM,EAAE,GAAG;AAC1E,cAAM,YAAY,OAAO,OAAO,SAAS,CAAC;AAC1C,kBAAU,KAAK,KAAK;AAAA,MACtB,OAAO;AACL,eAAO,KAAK,CAAC,KAAK,CAAC;AAAA,MACrB;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA,EAEA,iBAAiB,aAAqB,KAAa;AACjD,UAAM,YAAY,CAAC,aAAa,GAAG,EAAE,KAAK,GAAG;AAC7C,UAAM,YAAY,EAAE,GAAG,KAAK,MAAM,gBAAgB;AAClD,QAAG,aAAa,KAAK,MAAM,iBAAiB;AAC1C,gBAAU,SAAS,IAAI,CAAC,KAAK,MAAM,gBAAgB,SAAS;AAAA,IAC9D,OAAO;AACL,gBAAU,SAAS,IAAI;AAAA,IACzB;AACA,SAAK,SAAS;AAAA,MACZ,iBAAiB;AAAA,IACnB,CAAC;AAAA,EACH;AAAA,EAEA,YAAY,aAAqB,KAAa;AAC5C,UAAM,YAAY,KAAK,MAAM,gBAAgB,CAAC,aAAa,GAAG,EAAE,KAAK,GAAG,CAAC;AACzE,WAAO,cAAc,SAAY,OAAO;AAAA,EAC1C;AAAA,EAEA,sBAAuB,WAAoC,WAAoC;AAE7F,QAAI,KAAK,UAAU,WAAW;AAC5B,aAAO;AAAA,IACT;AAIA,aAAS,iBAAiB,OAA2B;AACnD,YAAM,MAAiD;AAAA,QACrD,IAAI,MAAM;AAAA,MACZ;AAEA,UAAI,MAAM,QAAQ;AAChB,YAAI,SAAS;AAAA,UACX,YAAY,MAAM,OAAO;AAAA,QAC3B;AAAA,MACF;AACA,aAAO;AAAA,IACT;AACA,UAAM,cAAc,OAAO;AAAA,MACzB,UAAU,OAAO,IAAI,gBAAgB;AAAA,MACrC,KAAK,MAAM,OAAO,IAAI,gBAAgB;AAAA,IACxC;AAEA,aAAS,cAAc,OAAgC;AACrD,YAAM,MAAM;AAAA,QACV,GAAG;AAAA,MACL;AACA,aAAO,IAAI,QAAQ;AACnB,aAAO;AAAA,IACT;AAIA,UAAM,aAAa,OAAO;AAAA,MACxB,cAAc,KAAK,KAAK;AAAA,MACxB,cAAc,SAAS;AAAA,IACzB;AAEA,UAAM,eAAe,EAAE,eAAe;AACtC,WAAO;AAAA,EACT;AAAA,EAEA,mBAAoB,WAAoC;AACtD,QAAI,UAAU,uBAAuB,KAAK,MAAM,oBAAoB;AAClE,YAAM,mBAAmB,KAAK,gBAAgB;AAC9C,UAAI,oBAAoB,iBAAiB,MAAM;AAC7C,cAAM,SAAS,iBAAiB;AAChC,cAAM,UAAU;AAAA,UACd,MAAM,KAAK,mBAAmB;AAAA,UAC9B,WAAW;AAAA,QACb;AACA,cAAM,WAAW,IAAI,qBAAqB,aAAW;AACnD,mBAAS,UAAU,MAAM;AACzB,cAAI,QAAQ,SAAS,KAAK,QAAQ,CAAC,EAAE,oBAAoB,GAAG;AAC1D,mBAAO,eAAe;AAAA,UACxB;AAAA,QACF,GAAG,OAAO;AAEV,iBAAS,QAAQ,MAAM;AAAA,MACzB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,SAAS;AAEP,UAAM,YAA2B,CAAC;AAClC,QAAI,MAAM;AACV,UAAM,gBAAgB,KAAK,cAAc;AACzC,kBAAc,QAAQ,YAAU;AAC9B,YAAM,cAAc,YAAY,OAAO,CAAC,EAAE,EAAE;AAC5C,UAAG,OAAO,SAAS,GAAG;AACpB,cAAM,MAAM;AAAA,UAAC;AAAA;AAAA,YACX,eAAa,CAAC,aAAa,GAAG,EAAE,KAAK,GAAG;AAAA,YACxC,iBAAe,OAAO,IAAI,OAAK,EAAE,GAAG,EAAE,KAAK,GAAG;AAAA,YAE9C,OAAO;AAAA,YACP,UAAU,CAAC,KAAK,YAAY,aAAa,GAAG,KAAK,QAAQ,KAAK,MAAM;AAAA,YACpE,gBAAgB,KAAK,iBAAiB,KAAK,MAAM,aAAa,GAAG;AAAA;AAAA,UAH5D,SAAS,WAAW,IAAI,GAAG;AAAA,QAIlC;AACA,kBAAU,KAAK,GAAG;AAAA,MACpB;AAEA,aAAO,QAAQ,CAAC,OAAO,eAAe;AACpC,cAAM,WAAW,wBAAwB,KAAK,MAAM,QAAQ,GAAG;AAE/D,cAAM,aAAa,KAAK,MAAM,OAAO,KAAK,WAAS;AACjD,iBACE,MAAM,UACN,MAAM,OAAO,SAAS,WACtB,MAAM,OAAO,KAAK,SAAS;AAAA,QAE/B,CAAC;AAED,cAAM,kBAAgD,CAAC;AACvD,YAAI,QAAQ,KAAK,MAAM,oBAAoB;AACzC,0BAAgB,MAAM,KAAK;AAAA,QAC7B;AAEA,cAAM,WAAW;AAAA,UAAC;AAAA;AAAA,YAChB,WAAW,WAAW;AAAA,cACpB,sCAAsC,OAAO,SAAS,KAAK,KAAK,YAAY,aAAa,QAAQ,KAAK,QAAQ,KAAK,MAAM;AAAA,cACzH,uCAAuC,cAAc,OAAO,SAAS,KAAK,OAAO,SAAS;AAAA,cAC1F,mCAAmC,CAAC,CAAC;AAAA,YACvC,CAAC;AAAA,YACD,OAAO;AAAA,YAEP,IAAI,MAAM;AAAA,YACV,SAAS,MAAM;AAAA,YACf,YAAY;AAAA,YACZ,WAAW,MAAM;AAAA,YACjB,aAAa,MAAM,UAAU,CAAC,GAAG;AAAA,YACjC,YAAY,QAAQ,KAAK,MAAM;AAAA,YAC/B,eAAe,KAAK,MAAM;AAAA,YAC1B,gBAAgB,KAAK,MAAM,gBAAgB,KAAK,IAAI;AAAA,YACpD,aAAa,KAAK,MAAM,YAAY,KAAK,IAAI;AAAA,YAC7C,yBAAyB,KAAK,MAAM,wBAAwB,KAAK,IAAI;AAAA,YACpE,GAAG;AAAA;AAAA,UAXC,MAAM;AAAA,QAYb;AACA,kBAAU,KAAK,QAAQ;AACvB,eAAO;AAAA,MACT,CAAC;AAAA,IACH,CAAC;AAED,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,WAAU;AAAA,QACV,MAAK;AAAA,QACL,cAAW;AAAA,QACX,KAAK,KAAK;AAAA,QAEV;AAAA;AAAA,YAAC;AAAA;AAAA,cAEC,QAAQ,KAAK,MAAM;AAAA,cACnB,SAAS,KAAK,MAAM;AAAA,cACpB,QAAQ,KAAK,MAAM,OAAO;AAAA,cAC1B,cAAc,KAAK,YAAY,KAAK,MAAM,KAAK;AAAA,cAC/C,gBAAgB,KAAK,MAAM;AAAA;AAAA,YALtB,KAAK,MAAM,KAAK;AAAA,UAMvB;AAAA,UACA,qBAAC,YAAO,WAAU,8BAChB;AAAA,gCAAC,UAAK,WAAU,oCAAmC,oBAAM;AAAA,YACzD,oBAAC,UAAK,WAAU,kBAAiB;AAAA,YACjC,oBAAC,SAAI,WAAU,6BACb,8BAAC,SAAI,WAAU,wBACb;AAAA,cAAC;AAAA;AAAA,gBACC,IAAG;AAAA,gBACH,eAAY;AAAA,gBACZ,SAAS,KAAK;AAAA,gBACd,WAAU;AAAA,gBACT,eAAK,MAAM,yBAAyB,OAAO,aAAa;AAAA;AAAA,YAC3D,GACF,GACF;AAAA,YACA,oBAAC,SAAI,WAAU,6BACb,8BAAC,SAAI,WAAU,wBACb;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS,KAAK,YAAY,KAAK,MAAM,KAAK;AAAA,gBAC1C,eAAY;AAAA,gBACZ,WAAU;AAAA,gBAA2C;AAAA;AAAA,YAEvD,GACF,GACF;AAAA,aACF;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,MAAK;AAAA,cACL,cAAW;AAAA,cAEX,8BAAC,QAAG,WAAU,iCACX,qBACH;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IACF;AAAA,EACF;AACF;AAGA,MAAM,6BAA6B,kBAAkB,CAAC,UAAmC,oBAAC,sBAAoB,GAAG,OAAO,CAAE;AAM1H,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACL,GAAG,KAAK;AAAA,QACT,aAAY;AAAA,QACZ,WAAW,KAAK,MAAM,YAAY,KAAK,IAAI;AAAA,QAC3C,eAAe;AAAA,QACf,mBAAmB,MAAM;AAAA;AAAA,IAC3B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a7cd6405e81ca6260ef85d5394a18c33340b5775"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Qt=function(){return s},s}Qt();class aW extends bn.Component{constructor(t){Qt().f[1]++,Qt().s[1]++;super(t);nn(this,"selectedItemRef");nn(this,"scrollContainerRef");nn(this,"toggleLayers",(Qt().s[6]++,()=>{Qt().f[3]++;let t=(Qt().s[7]++,0);const r=(Qt().s[8]++,{});Qt().s[9]++,this.groupedLayers().forEach(i=>{Qt().f[4]++;const o=(Qt().s[10]++,Wg(i[0].id)),s=(Qt().s[11]++,[o,t].join("-"));Qt().s[12]++,i.length>1?(Qt().b[0][0]++,Qt().s[13]++,r[s]=this.state.areAllGroupsExpanded):Qt().b[0][1]++,Qt().s[14]++,i.forEach(a=>{Qt().f[5]++,Qt().s[15]++,t+=1})}),Qt().s[16]++,this.setState({collapsedGroups:r,areAllGroupsExpanded:!this.state.areAllGroupsExpanded})}));Qt().s[2]++,this.selectedItemRef=bn.createRef(),Qt().s[3]++,this.scrollContainerRef=bn.createRef(),Qt().s[4]++,this.state={collapsedGroups:{},areAllGroupsExpanded:!1,keys:{add:+Oy()},isOpen:{add:!1}}}toggleModal(t){Qt().f[2]++,Qt().s[5]++,this.setState({keys:{...this.state.keys,[t]:+Oy()},isOpen:{...this.state.isOpen,[t]:!this.state.isOpen[t]}})}groupedLayers(){Qt().f[6]++;const t=(Qt().s[17]++,[]),r=(Qt().s[18]++,new Map);Qt().s[19]++;for(let i=(Qt().s[20]++,0);i{Qt().f[13]++,Qt().s[57]++,s.unobserve(i),Qt().s[58]++,Qt().b[13][0]++,a.length>0&&(Qt().b[13][1]++,a[0].intersectionRatio<1)?(Qt().b[12][0]++,Qt().s[59]++,i.scrollIntoView()):Qt().b[12][1]++},o));Qt().s[60]++,s.observe(i)}else Qt().b[10][1]++}else Qt().b[9][1]++}render(){Qt().f[14]++;const t=(Qt().s[61]++,[]);let r=(Qt().s[62]++,0);const i=(Qt().s[63]++,this.groupedLayers());return Qt().s[64]++,i.forEach(o=>{Qt().f[15]++;const s=(Qt().s[65]++,Wg(o[0].id));if(Qt().s[66]++,o.length>1){Qt().b[14][0]++;const a=(Qt().s[67]++,N.jsx(YAe,{"data-wd-key":[s,r].join("-"),"aria-controls":o.map(f=>(Qt().f[16]++,Qt().s[68]++,f.key)).join(" "),title:s,isActive:(Qt().b[15][0]++,!this.isCollapsed(s,r)||(Qt().b[15][1]++,r===this.props.selectedLayerIndex)),onActiveToggle:this.toggleLayerGroup.bind(this,s,r)},`group-${s}-${r}`));Qt().s[69]++,t.push(a)}else Qt().b[14][1]++;Qt().s[70]++,o.forEach((a,f)=>{var P;Qt().f[17]++;const g=(Qt().s[71]++,Phe(this.props.layers,r)),x=(Qt().s[72]++,this.props.errors.find(R=>(Qt().f[18]++,Qt().s[73]++,Qt().b[16][0]++,R.parsed&&(Qt().b[16][1]++,R.parsed.type==="layer")&&(Qt().b[16][2]++,R.parsed.data.index==r)))),k=(Qt().s[74]++,{});Qt().s[75]++,r===this.props.selectedLayerIndex?(Qt().b[17][0]++,Qt().s[76]++,k.ref=this.selectedItemRef):Qt().b[17][1]++;const B=(Qt().s[77]++,N.jsx(Mce,{className:Af({"maputnik-layer-list-item-collapsed":(Qt().b[18][0]++,o.length>1&&(Qt().b[18][1]++,this.isCollapsed(s,g))&&(Qt().b[18][2]++,r!==this.props.selectedLayerIndex)),"maputnik-layer-list-item-group-last":(Qt().b[19][0]++,f==o.length-1&&(Qt().b[19][1]++,o.length>1)),"maputnik-layer-list-item--error":!!x}),index:r,id:a.key,layerId:a.id,layerIndex:r,layerType:a.type,visibility:(Qt().b[20][0]++,a.layout||(Qt().b[20][1]++,{})).visibility,isSelected:r===this.props.selectedLayerIndex,onLayerSelect:this.props.onLayerSelect,onLayerDestroy:(P=this.props.onLayerDestroy)==null?void 0:P.bind(this),onLayerCopy:this.props.onLayerCopy.bind(this),onLayerVisibilityToggle:this.props.onLayerVisibilityToggle.bind(this),...k},a.key));Qt().s[78]++,t.push(B),Qt().s[79]++,r+=1})}),Qt().s[80]++,N.jsxs("section",{className:"maputnik-layer-list",role:"complementary","aria-label":"Layers list",ref:this.scrollContainerRef,children:[N.jsx(Ihe,{layers:this.props.layers,sources:this.props.sources,isOpen:this.state.isOpen.add,onOpenToggle:this.toggleModal.bind(this,"add"),onLayersChange:this.props.onLayersChange},this.state.keys.add),N.jsxs("header",{className:"maputnik-layer-list-header",children:[N.jsx("span",{className:"maputnik-layer-list-header-title",children:"Layers"}),N.jsx("span",{className:"maputnik-space"}),N.jsx("div",{className:"maputnik-default-property",children:N.jsx("div",{className:"maputnik-multibutton",children:N.jsx("button",{id:"skip-target-layer-list","data-wd-key":"skip-target-layer-list",onClick:this.toggleLayers,className:"maputnik-button",children:this.state.areAllGroupsExpanded===!0?(Qt().b[21][0]++,"Collapse"):(Qt().b[21][1]++,"Expand")})})}),N.jsx("div",{className:"maputnik-default-property",children:N.jsx("div",{className:"maputnik-multibutton",children:N.jsx("button",{onClick:this.toggleModal.bind(this,"add"),"data-wd-key":"layer-list:add-layer",className:"maputnik-button maputnik-button-selected",children:"Add Layer"})})})]}),N.jsx("div",{role:"navigation","aria-label":"Layers list",children:N.jsx("ul",{className:"maputnik-layer-list-container",children:t})})]})}}nn(aW,"defaultProps",(Qt().s[0]++,{onLayerSelect:()=>{Qt().f[0]++}}));const Fhe=(Qt().s[81]++,_ce(e=>(Qt().f[19]++,Qt().s[82]++,N.jsx(aW,{...e}))));class Dhe extends bn.Component{render(){return Qt().f[20]++,Qt().s[83]++,N.jsx(Fhe,{...this.props,helperClass:"sortableHelper",onSortEnd:this.props.onMoveLayer.bind(this),useDragHandle:!0,shouldCancelStart:()=>(Qt().f[21]++,Qt().s[84]++,!1)})}}var E5={},sW="a menu outside a mounted Wrapper with an id, or a menu that does not exist";function Uhe(e,n){E5[e]=n}function Rhe(e){delete E5[e]}function Lhe(e,n){var t=E5[e];if(!t)throw new Error("Cannot open "+sW);t.openMenu(n)}function zhe(e,n){var t=E5[e];if(!t)throw new Error("Cannot close "+sW);t.closeMenu(n)}var lW={registerManager:Uhe,unregisterManager:Rhe,openMenu:Lhe,closeMenu:zhe};function gs(e){e=e||{};var n=e.keybindings||{};this._settings={keybindings:{next:n.next||{keyCode:40},prev:n.prev||{keyCode:38},first:n.first,last:n.last},wrap:e.wrap,stringSearch:e.stringSearch,stringSearchDelay:800},this._keybindingsLookup=[];var t,r;for(t in this._settings.keybindings)r=this._settings.keybindings[t],r&&[].concat(r).forEach((function(i){i.metaKey=i.metaKey||!1,i.ctrlKey=i.ctrlKey||!1,i.altKey=i.altKey||!1,i.shiftKey=i.shiftKey||!1,this._keybindingsLookup.push({action:t,eventMatcher:i})}).bind(this));this._searchString="",this._members=[],e.members&&this.setMembers(e.members),this._boundHandleKeydownEvent=this._handleKeydownEvent.bind(this)}gs.prototype.activate=function(){return document.addEventListener("keydown",this._boundHandleKeydownEvent,!0),this};gs.prototype.deactivate=function(){return document.removeEventListener("keydown",this._boundHandleKeydownEvent,!0),this._clearSearchStringRefreshTimer(),this};gs.prototype._handleKeydownEvent=function(e){var n=this._getActiveElementIndex();if(n!==-1){var t=!1;this._keybindingsLookup.forEach((function(r){if(jhe(r.eventMatcher,e))switch(t=!0,e.preventDefault(),r.action){case"next":this.moveFocusForward();break;case"prev":this.moveFocusBack();break;case"first":this.moveFocusToFirst();break;case"last":this.moveFocusToLast();break;default:return}}).bind(this)),t||this._handleUnboundKey(e)}};gs.prototype.moveFocusForward=function(){var e=this._getActiveElementIndex(),n;return e0?n=e-1:this._settings.wrap?n=this._members.length-1:n=e,this.focusNodeAtIndex(n),n};gs.prototype.moveFocusToFirst=function(){this.focusNodeAtIndex(0)};gs.prototype.moveFocusToLast=function(){this.focusNodeAtIndex(this._members.length-1)};gs.prototype._handleUnboundKey=function(e){if(this._settings.stringSearch){if(this._searchString!==""&&(e.key===" "||e.keyCode===32))return e.preventDefault(),-1;if(!Whe(e.keyCode)||e.ctrlKey||e.metaKey||e.altKey)return-1;e.preventDefault(),this._addToSearchString(String.fromCharCode(e.keyCode)),this._runStringSearch()}};gs.prototype._clearSearchString=function(){this._searchString=""};gs.prototype._addToSearchString=function(e){this._searchString+=e.toLowerCase()};gs.prototype._startSearchStringRefreshTimer=function(){var e=this;this._clearSearchStringRefreshTimer(),this._stringSearchTimer=setTimeout(function(){e._clearSearchString()},this._settings.stringSearchDelay)};gs.prototype._clearSearchStringRefreshTimer=function(){clearTimeout(this._stringSearchTimer)};gs.prototype._runStringSearch=function(){this._startSearchStringRefreshTimer(),this.moveFocusByString(this._searchString)};gs.prototype.moveFocusByString=function(e){for(var n,t=0,r=this._members.length;t=65&&e<=90}function uW(e){!e||!e.focus||(e.focus(),e.tagName.toLowerCase()==="input"&&e.select())}var Nhe=function(n){return new gs(n)},Ghe=Nhe,jT=lW,Qhe={wrap:!0,stringSearch:!0},$he={init:function(n){this.updateOptions(n),this.handleBlur=Yhe.bind(this),this.handleSelection=qhe.bind(this),this.handleMenuKey=Vhe.bind(this),this.focusGroup=Ghe(Qhe),this.button=null,this.menu=null,this.isOpen=!1},updateOptions:function(n){var t=this.options;this.options=n||this.options||{},typeof this.options.closeOnSelection>"u"&&(this.options.closeOnSelection=!0),typeof this.options.closeOnBlur>"u"&&(this.options.closeOnBlur=!0),this.options.id&&jT.registerManager(this.options.id,this),t&&t.id&&t.id!==this.options.id&&jT.unregisterManager(this.options.id,this)},focusItem:function(n){this.focusGroup.focusNodeAtIndex(n)},addItem:function(n){this.focusGroup.addMember(n)},clearItems:function(){this.focusGroup.clearMembers()},handleButtonNonArrowKey:function(n){this.focusGroup._handleUnboundKey(n)},destroy:function(){this.button=null,this.menu=null,this.focusGroup.deactivate(),clearTimeout(this.blurTimer),clearTimeout(this.moveFocusTimer)},update:function(){this.menu.setState({isOpen:this.isOpen}),this.button.setState({menuOpen:this.isOpen}),this.options.onMenuToggle&&this.options.onMenuToggle({isOpen:this.isOpen})},openMenu:function(n){if(!this.isOpen&&(n=n||{},n.focusMenu===void 0&&(n.focusMenu=!0),this.isOpen=!0,this.update(),this.focusGroup.activate(),n.focusMenu)){var t=this;this.moveFocusTimer=setTimeout(function(){t.focusItem(0)},0)}},closeMenu:function(n){this.isOpen&&(n=n||{},this.isOpen=!1,this.update(),n.focusButton&&this.button.ref.current.focus())},toggleMenu:function(n,t){n=n||{},t=t||{},this.isOpen?this.closeMenu(n):this.openMenu(t)}};function Yhe(){var e=this;e.blurTimer=setTimeout(function(){if(e.button){var n=e.button.ref.current;if(n){var t=n.ownerDocument.activeElement;if(!(n&&t===n)){var r=e.menu.ref.current;if(r===t){e.focusItem(0);return}r&&r.contains(t)||e.isOpen&&e.closeMenu({focusButton:!1})}}}},0)}function qhe(e,n){this.options.closeOnSelection&&this.closeMenu({focusButton:!0}),this.options.onSelection&&this.options.onSelection(e,n)}function Vhe(e){if(this.isOpen)switch(e.key){case"Escape":e.preventDefault(),this.closeMenu({focusButton:!0});break;case"Home":e.preventDefault(),this.focusGroup.moveFocusToFirst();break;case"End":e.preventDefault(),this.focusGroup.moveFocusToLast();break}}var Hhe=function(e){var n=Object.create($he);return n.init(e),n},Zhe=kr,Xhe=Zhe.createContext(),O5=Xhe,Wx=ph,B5={refType:Wx.oneOfType([Wx.func,Wx.shape({current:Wx.elementType})])},k5=function(e,n,t){t=t||{};for(var r in n)n.hasOwnProperty(r)&&(t[r]||(e[r]=n[r]))};function Jhe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function efe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function tfe(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var FC=kr,cg=ph,nfe=Hhe,rfe=O5,ife=B5,ofe=ife.refType,DE=k5,J3={children:cg.node.isRequired,forwardedRef:ofe,onMenuToggle:cg.func,onSelection:cg.func,closeOnSelection:cg.bool,closeOnBlur:cg.bool,tag:cg.string},WT=function(n){return{onMenuToggle:n.onMenuToggle,onSelection:n.onSelection,closeOnSelection:n.closeOnSelection,closeOnBlur:n.closeOnBlur,id:n.id}},i8=function(e){tfe(n,e);function n(t){Jhe(this,n);var r=efe(this,e.call(this,t));return r.manager=nfe(WT(t)),r}return n.prototype.componentDidUpdate=function(){this.manager.updateOptions(WT(this.props))},n.prototype.render=function(){var r={};return DE(r,this.props,J3),FC.createElement(rfe.Provider,{value:this.manager},FC.createElement(this.props.tag,r,this.props.children))},n}(FC.Component);i8.propTypes=J3;i8.defaultProps={tag:"div"};var afe=FC.forwardRef(function(e,n){var t={forwardedRef:n};return DE(t,e,{children:J3.children,forwardedRef:J3.forwardedRef}),DE(t,{forwardedRef:n}),FC.createElement(i8,t,e.children)});function sfe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function NT(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function lfe(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var uy=kr,Nx=ph,ufe=O5,Afe=B5,cfe=Afe.refType,w2=k5,DC={ambManager:Nx.object.isRequired,children:Nx.node.isRequired,disabled:Nx.bool,forwardedRef:cfe,tag:Nx.string},dfe=function(){return["button","fieldset","input","optgroup","option","select","textarea"]},o8=function(e){lfe(n,e);function n(){var t,r,i;sfe(this,n);for(var o=arguments.length,s=Array(o),a=0;a=0&&delete s.disabled,i.options.closeOnBlur&&(o.onBlur=i.handleBlur),w2(o,r,s),w2(o,{ref:this.setRef}),uy.createElement(r.tag,o,r.children)},n}(uy.Component);o8.propTypes=DC;o8.defaultProps={tag:"span"};var hfe=uy.forwardRef(function(e,n){return uy.createElement(ufe.Consumer,null,function(t){var r={ambManager:t,forwardedRef:n};return w2(r,e,{ambManager:DC.ambManager,children:DC.children,forwardedRef:DC.forwardedRef}),uy.createElement(o8,r,e.children)})}),ffe=function(n,t,r){var i=0,o=0,s=!1,a=!1,f=!1;n.addEventListener("click",g,r),n.addEventListener("touchstart",x,r);function g(W){f||t(W)}function x(W){f=!0,!s&&(s=!0,n.addEventListener("touchmove",k,r),n.addEventListener("touchend",B,r),n.addEventListener("touchcancel",P,r),a=!1,i=W.touches[0].clientX,o=W.touches[0].clientY)}function k(W){a||Math.abs(W.touches[0].clientX-i)<=10&&Math.abs(W.touches[0].clientY-o)<=10||(a=!0)}function B(W){s=!1,R(),a||t(W)}function P(){s=!1,a=!1,i=0,o=0}function R(){n.removeEventListener("touchmove",k,r),n.removeEventListener("touchend",B,r),n.removeEventListener("touchcancel",P,r)}function H(){n.removeEventListener("click",g,r),n.removeEventListener("touchstart",x,r),R()}return{remove:H}};function pfe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function GT(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function mfe(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var Ay=kr,Hv=ph,gfe=ffe,yfe=O5,vfe=B5,Cfe=vfe.refType,UE=k5,UC={ambManager:Hv.object.isRequired,children:Hv.oneOfType([Hv.func,Hv.node]).isRequired,forwardedRef:Cfe,tag:Hv.string},a8=function(e){mfe(n,e);function n(){var t,r,i;pfe(this,n);for(var o=arguments.length,s=Array(o),a=0;a"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Bfe(e,n){if(e==null)return{};var t={},r=Object.keys(e),i,o;for(o=0;o=0)&&(t[i]=e[i]);return t}function T5(e,n){if(e==null)return{};var t=Bfe(e,n),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function lh(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kfe(e,n){return n&&(typeof n=="object"||typeof n=="function")?n:lh(e)}function A8(e){var n=Ofe();return function(){var r=e4(e),i;if(n){var o=e4(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return kfe(this,i)}}function Ife(e,n){return Pfe(e)||Dfe(e,n)||cW(e,n)||Rfe()}function Tfe(e){return Kfe(e)||Ffe(e)||cW(e)||Ufe()}function Kfe(e){if(Array.isArray(e))return zE(e)}function Pfe(e){if(Array.isArray(e))return e}function Ffe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Dfe(e,n){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var t=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(t.push(a.value),!(n&&t.length===n));r=!0);}catch(f){i=!0,o=f}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return t}}function cW(e,n){if(e){if(typeof e=="string")return zE(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return zE(e,n)}}function zE(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t2),oe=/Android/.test(t),ne=q||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),ce=q||/Mac/.test(r),ae=/\bCrOS\b/.test(t),ue=/win/i.test(r),ye=R&&t.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(R=!1,x=!0);var Re=ce&&(k||R&&(ye==null||ye<12.11)),Ne=i||f&&g>=9;function rt(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var ct=function(A,h){var b=A.className,_=rt(h).exec(b);if(_){var E=b.slice(_.index+_[0].length);A.className=b.slice(0,_.index)+(E?_[1]+E:"")}};function Fe(A){for(var h=A.childNodes.length;h>0;--h)A.removeChild(A.firstChild);return A}function He(A,h){return Fe(A).appendChild(h)}function Ce(A,h,b,_){var E=document.createElement(A);if(b&&(E.className=b),_&&(E.style.cssText=_),typeof h=="string")E.appendChild(document.createTextNode(h));else if(h)for(var U=0;U=h)return Y+(h-U);Y+=J-U,Y+=b-Y%b,U=J+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=Dt(this.onTimeout,this)};xe.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},xe.prototype.set=function(A,h){this.f=h;var b=+new Date+A;(!this.id||b=h)return _+Math.min(Y,h-E);if(E+=U-_,E+=b-E%b,_=U+1,E>=h)return _}}var mt=[""];function pn(A){for(;mt.length<=A;)mt.push(ir(mt)+" ");return mt[A]}function ir(A){return A[A.length-1]}function Sn(A,h){for(var b=[],_=0;_"€"&&(A.toUpperCase()!=A.toLowerCase()||_r.test(A))}function we(A,h){return h?h.source.indexOf("\\w")>-1&&vi(A)?!0:h.test(A):vi(A)}function V(A){for(var h in A)if(A.hasOwnProperty(h)&&A[h])return!1;return!0}var X=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function me(A){return A.charCodeAt(0)>=768&&X.test(A)}function At(A,h,b){for(;(b<0?h>0:hb?-1:1;;){if(h==b)return h;var E=(h+b)/2,U=_<0?Math.ceil(E):Math.floor(E);if(U==h)return A(U)?h:b;A(U)?b=U:h=U+_}}function Et(A,h,b,_){if(!A)return _(h,b,"ltr",0);for(var E=!1,U=0;Uh||h==b&&Y.to==h)&&(_(Math.max(Y.from,h),Math.min(Y.to,b),Y.level==1?"rtl":"ltr",U),E=!0)}E||_(h,b,"ltr")}var sr=null;function Lt(A,h,b){var _;sr=null;for(var E=0;Eh)return E;U.to==h&&(U.from!=U.to&&b=="before"?_=E:sr=E),U.from==h&&(U.from!=U.to&&b!="before"?_=E:sr=E)}return _??sr}var Fn=function(){var A="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",h="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(pe){return pe<=247?A.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?h.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var _=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,U=/[LRr]/,Y=/[Lb1n]/,J=/[1n]/;function se(pe,We,Ye){this.level=pe,this.from=We,this.to=Ye}return function(pe,We){var Ye=We=="ltr"?"L":"R";if(pe.length==0||We=="ltr"&&!_.test(pe))return!1;for(var Mt=pe.length,yt=[],qt=0;qt-1&&(_[h]=E.slice(0,U).concat(E.slice(U+1)))}}}function Zn(A,h){var b=In(A,h);if(b.length)for(var _=Array.prototype.slice.call(arguments,2),E=0;E0}function Ee(A){A.prototype.on=function(h,b){un(this,h,b)},A.prototype.off=function(h,b){Gn(this,h,b)}}function Te(A){A.preventDefault?A.preventDefault():A.returnValue=!1}function at(A){A.stopPropagation?A.stopPropagation():A.cancelBubble=!0}function it(A){return A.defaultPrevented!=null?A.defaultPrevented:A.returnValue==!1}function ht(A){Te(A),at(A)}function et(A){return A.target||A.srcElement}function Ct(A){var h=A.which;return h==null&&(A.button&1?h=1:A.button&2?h=3:A.button&4&&(h=2)),ce&&A.ctrlKey&&h==1&&(h=3),h}var rn=function(){if(f&&g<9)return!1;var A=Ce("div");return"draggable"in A||"dragDrop"in A}(),Gt;function $t(A){if(Gt==null){var h=Ce("span","​");He(A,Ce("span",[h,document.createTextNode("x")])),A.firstChild.offsetHeight!=0&&(Gt=h.offsetWidth<=1&&h.offsetHeight>2&&!(f&&g<8))}var b=Gt?Ce("span","​"):Ce("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var gn;function Jn(A){if(gn!=null)return gn;var h=He(A,document.createTextNode("AخA")),b=Ft(h,0,1).getBoundingClientRect(),_=Ft(h,1,2).getBoundingClientRect();return Fe(A),!b||b.left==b.right?!1:gn=_.right-b.right<3}var qn=` b`.split(/\n/).length!=3?function(A){for(var h=0,b=[],_=A.length;h<=_;){var E=A.indexOf(` `,h);E==-1&&(E=A.length);var U=A.slice(h,A.charAt(E-1)=="\r"?E-1:E),Y=U.indexOf("\r");Y!=-1?(b.push(U.slice(0,Y)),h+=Y+1):(b.push(U),h=E+1)}return b}:function(A){return A.split(/\r\n?|\n/)},Tr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var h;try{h=A.ownerDocument.selection.createRange()}catch{}return!h||h.parentElement()!=A?!1:h.compareEndPoints("StartToEnd",h)!=0},vr=function(){var A=Ce("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Dr=null;function Yr(A){if(Dr!=null)return Dr;var h=He(A,Ce("span","x")),b=h.getBoundingClientRect(),_=Ft(h,0,1).getBoundingClientRect();return Dr=Math.abs(b.left-_.left)>1}var Zr={},Cr={};function ui(A,h){arguments.length>2&&(h.dependencies=Array.prototype.slice.call(arguments,2)),Zr[A]=h}function Ii(A,h){Cr[A]=h}function Io(A){if(typeof A=="string"&&Cr.hasOwnProperty(A))A=Cr[A];else if(A&&typeof A.name=="string"&&Cr.hasOwnProperty(A.name)){var h=Cr[A.name];typeof h=="string"&&(h={name:h}),A=Qr(h,A),A.name=h.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return Io("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return Io("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function Ci(A,h){h=Io(h);var b=Zr[h.name];if(!b)return Ci(A,"text/plain");var _=b(A,h);if(so.hasOwnProperty(h.name)){var E=so[h.name];for(var U in E)E.hasOwnProperty(U)&&(_.hasOwnProperty(U)&&(_["_"+U]=_[U]),_[U]=E[U])}if(_.name=h.name,h.helperType&&(_.helperType=h.helperType),h.modeProps)for(var Y in h.modeProps)_[Y]=h.modeProps[Y];return _}var so={};function Yo(A,h){var b=so.hasOwnProperty(A)?so[A]:so[A]={};Se(h,b)}function ba(A,h){if(h===!0)return h;if(A.copyState)return A.copyState(h);var b={};for(var _ in h){var E=h[_];E instanceof Array&&(E=E.concat([])),b[_]=E}return b}function Ql(A,h){for(var b;A.innerMode&&(b=A.innerMode(h),!(!b||b.mode==A));)h=b.state,A=b.mode;return b||{mode:A,state:h}}function Ai(A,h,b){return A.startState?A.startState(h,b):!0}var Mi=function(A,h,b){this.pos=this.start=0,this.string=A,this.tabSize=h||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};Mi.prototype.eol=function(){return this.pos>=this.string.length},Mi.prototype.sol=function(){return this.pos==this.lineStart},Mi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Mi.prototype.next=function(){if(this.posh},Mi.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},Mi.prototype.skipToEnd=function(){this.pos=this.string.length},Mi.prototype.skipTo=function(A){var h=this.string.indexOf(A,this.pos);if(h>-1)return this.pos=h,!0},Mi.prototype.backUp=function(A){this.pos-=A},Mi.prototype.column=function(){return this.lastColumnPos0?null:(U&&h!==!1&&(this.pos+=U[0].length),U)}},Mi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Mi.prototype.hideFirstChars=function(A,h){this.lineStart+=A;try{return h()}finally{this.lineStart-=A}},Mi.prototype.lookAhead=function(A){var h=this.lineOracle;return h&&h.lookAhead(A)},Mi.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function rr(A,h){if(h-=A.first,h<0||h>=A.size)throw new Error("There is no line "+(h+A.first)+" in the document.");for(var b=A;!b.lines;)for(var _=0;;++_){var E=b.children[_],U=E.chunkSize();if(h=A.first&&hb?Ot(b,rr(A,b).text.length):_i(h,rr(A,h.line).text.length)}function _i(A,h){var b=A.ch;return b==null||b>h?Ot(A.line,h):b<0?Ot(A.line,0):A}function _l(A,h){for(var b=[],_=0;_this.maxLookAhead&&(this.maxLookAhead=A),h},ys.prototype.baseToken=function(A){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=A;)this.baseTokenPos+=2;var h=this.baseTokens[this.baseTokenPos+1];return{type:h&&h.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-A}},ys.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ys.fromSaved=function(A,h,b){return h instanceof Qa?new ys(A,ba(A.mode,h.state),b,h.lookAhead):new ys(A,ba(A.mode,h),b)},ys.prototype.save=function(A){var h=A!==!1?ba(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qa(h,this.maxLookAhead):h};function qs(A,h,b,_){var E=[A.state.modeGen],U={};Hu(A,h.text,A.doc.mode,b,function(pe,We){return E.push(pe,We)},U,_);for(var Y=b.state,J=function(pe){b.baseTokens=E;var We=A.state.overlays[pe],Ye=1,Mt=0;b.state=!0,Hu(A,h.text,We.mode,b,function(yt,qt){for(var Zt=Ye;Mtyt&&E.splice(Ye,1,yt,E[Ye+1],Bn),Ye+=2,Mt=Math.min(yt,Bn)}if(qt)if(We.opaque)E.splice(Zt,Ye-Zt,yt,"overlay "+qt),Ye=Zt+2;else for(;ZtA.options.maxHighlightLength&&ba(A.doc.mode,_.state),U=qs(A,h,_);E&&(_.state=E),h.stateAfter=_.save(!E),h.styles=U.styles,U.classes?h.styleClasses=U.classes:h.styleClasses&&(h.styleClasses=null),b===A.doc.highlightFrontier&&(A.doc.modeFrontier=Math.max(A.doc.modeFrontier,++A.doc.highlightFrontier))}return h.styles}function va(A,h,b){var _=A.doc,E=A.display;if(!_.mode.startState)return new ys(_,!0,h);var U=ZA(A,h,b),Y=U>_.first&&rr(_,U-1).stateAfter,J=Y?ys.fromSaved(_,Y,U):new ys(_,Ai(_.mode),U);return _.iter(U,h,function(se){$a(A,se.text,J);var pe=J.line;se.stateAfter=pe==h-1||pe%5==0||pe>=E.viewFrom&&peh.start)return U}throw new Error("Mode "+A.name+" failed to advance stream.")}var bl=function(A,h,b){this.start=A.start,this.end=A.pos,this.string=A.current(),this.type=h||null,this.state=b};function CA(A,h,b,_){var E=A.doc,U=E.mode,Y;h=br(E,h);var J=rr(E,h.line),se=va(A,h.line,b),pe=new Mi(J.text,A.options.tabSize,se),We;for(_&&(We=[]);(_||pe.posA.options.maxHighlightLength?(J=!1,Y&&$a(A,h,_,We.pos),We.pos=h.length,Ye=null):Ye=HA(xu(b,We,_.state,Mt),U),Mt){var yt=Mt[0].name;yt&&(Ye="m-"+(Ye?yt+" "+Ye:yt))}if(!J||pe!=Ye){for(;seY;--J){if(J<=U.first)return U.first;var se=rr(U,J-1),pe=se.stateAfter;if(pe&&(!b||J+(pe instanceof Qa?pe.lookAhead:0)<=U.modeFrontier))return J;var We=de(se.text,null,A.options.tabSize);(E==null||_>We)&&(E=J-1,_=We)}return E}function _A(A,h){if(A.modeFrontier=Math.min(A.modeFrontier,h),!(A.highlightFrontierb;_--){var E=rr(A,_).stateAfter;if(E&&(!(E instanceof Qa)||_+E.lookAhead=h:U.to>h);(_||(_=[])).push(new Ds(Y,U.from,se?null:U.to))}}return _}function uu(A,h,b){var _;if(A)for(var E=0;E=h:U.to>h);if(J||U.from==h&&Y.type=="bookmark"&&(!b||U.marker.insertLeft)){var se=U.from==null||(Y.inclusiveLeft?U.from<=h:U.from0&&J)for(var ar=0;ar0)){var We=[se,1],Ye=En(pe.from,J.from),Mt=En(pe.to,J.to);(Ye<0||!Y.inclusiveLeft&&!Ye)&&We.push({from:pe.from,to:J.from}),(Mt>0||!Y.inclusiveRight&&!Mt)&&We.push({from:J.to,to:pe.to}),E.splice.apply(E,We),se+=We.length-3}}return E}function bo(A){var h=A.markedSpans;if(h){for(var b=0;bh)&&(!_||st(_,U.marker)<0)&&(_=U.marker)}return _}function Ki(A,h,b,_,E){var U=rr(A,h),Y=vs&&U.markedSpans;if(Y)for(var J=0;J=0&&Ye<=0||We<=0&&Ye>=0)&&(We<=0&&(se.marker.inclusiveRight&&E.inclusiveLeft?En(pe.to,b)>=0:En(pe.to,b)>0)||We>=0&&(se.marker.inclusiveRight&&E.inclusiveLeft?En(pe.from,_)<=0:En(pe.from,_)<0)))return!0}}}function qr(A){for(var h;h=Sr(A);)A=h.find(-1,!0).line;return A}function Yi(A){for(var h;h=_n(A);)A=h.find(1,!0).line;return A}function qo(A){for(var h,b;h=_n(A);)A=h.find(1,!0).line,(b||(b=[])).push(A);return b}function Ca(A,h){var b=rr(A,h),_=qr(b);return b==_?h:ve(_)}function Vo(A,h){if(h>A.lastLine())return h;var b=rr(A,h),_;if(!Li(A,b))return h;for(;_=_n(b);)b=_.find(1,!0).line;return ve(b)+1}function Li(A,h){var b=vs&&h.markedSpans;if(b){for(var _=void 0,E=0;Eh.maxLineLength&&(h.maxLineLength=E,h.maxLine=_)})}var Su=function(A,h,b){this.text=A,mo(this,h),this.height=b?b(this):1};Su.prototype.lineNo=function(){return ve(this)},Ee(Su);function XA(A,h,b,_){A.text=h,A.stateAfter&&(A.stateAfter=null),A.styles&&(A.styles=null),A.order!=null&&(A.order=null),bo(A),mo(A,b);var E=_?_(A):1;E!=A.height&&la(A,E)}function ss(A){A.parent=null,bo(A)}var jm={},$l={};function Bp(A,h){if(!A||/^\s*$/.test(A))return null;var b=h.addModeClass?$l:jm;return b[A]||(b[A]=A.replace(/\S+/g,"cm-$&"))}function Id(A,h){var b=jt("span",null,null,x?"padding-right: .1px":null),_={pre:jt("pre",[b],"CodeMirror-line"),content:b,col:0,pos:0,cm:A,trailingSpace:!1,splitSpaces:A.getOption("lineWrapping")};h.measure={};for(var E=0;E<=(h.rest?h.rest.length:0);E++){var U=E?h.rest[E-1]:h.line,Y=void 0;_.pos=0,_.addToken=Gc,Jn(A.display.measure)&&(Y=on(U,A.doc.direction))&&(_.addToken=Mo(_.addToken,Y)),_.map=[];var J=h!=A.display.externalMeasured&&ve(U);yh(U,_,Vs(A,U,J)),U.styleClasses&&(U.styleClasses.bgClass&&(_.bgClass=nt(U.styleClasses.bgClass,_.bgClass||"")),U.styleClasses.textClass&&(_.textClass=nt(U.styleClasses.textClass,_.textClass||""))),_.map.length==0&&_.map.push(0,0,_.content.appendChild($t(A.display.measure))),E==0?(h.measure.map=_.map,h.measure.cache={}):((h.measure.maps||(h.measure.maps=[])).push(_.map),(h.measure.caches||(h.measure.caches=[])).push({}))}if(x){var se=_.content.lastChild;(/\bcm-tab\b/.test(se.className)||se.querySelector&&se.querySelector(".cm-tab"))&&(_.content.className="cm-tab-wrap-hack")}return Zn(A,"renderLine",A,h.line,_.pre),_.pre.className&&(_.textClass=nt(_.pre.className,_.textClass||"")),_}function cu(A){var h=Ce("span","•","cm-invalidchar");return h.title="\\u"+A.charCodeAt(0).toString(16),h.setAttribute("aria-label",h.title),h}function Gc(A,h,b,_,E,U,Y){if(h){var J=A.splitSpaces?Td(h,A.trailingSpace):h,se=A.cm.state.specialChars,pe=!1,We;if(!se.test(h))A.col+=h.length,We=document.createTextNode(J),A.map.push(A.pos,A.pos+h.length,We),f&&g<9&&(pe=!0),A.pos+=h.length;else{We=document.createDocumentFragment();for(var Ye=0;;){se.lastIndex=Ye;var Mt=se.exec(h),yt=Mt?Mt.index-Ye:h.length-Ye;if(yt){var qt=document.createTextNode(J.slice(Ye,Ye+yt));f&&g<9?We.appendChild(Ce("span",[qt])):We.appendChild(qt),A.map.push(A.pos,A.pos+yt,qt),A.col+=yt,A.pos+=yt}if(!Mt)break;Ye+=yt+1;var Zt=void 0;if(Mt[0]==" "){var Bn=A.cm.options.tabSize,Wn=Bn-A.col%Bn;Zt=We.appendChild(Ce("span",pn(Wn),"cm-tab")),Zt.setAttribute("role","presentation"),Zt.setAttribute("cm-text"," "),A.col+=Wn}else Mt[0]=="\r"||Mt[0]==` `?(Zt=We.appendChild(Ce("span",Mt[0]=="\r"?"␍":"␤","cm-invalidchar")),Zt.setAttribute("cm-text",Mt[0]),A.col+=1):(Zt=A.cm.options.specialCharPlaceholder(Mt[0]),Zt.setAttribute("cm-text",Mt[0]),f&&g<9?We.appendChild(Ce("span",[Zt])):We.appendChild(Zt),A.col+=1);A.map.push(A.pos,A.pos+1,Zt),A.pos++}}if(A.trailingSpace=J.charCodeAt(h.length-1)==32,b||_||E||pe||U||Y){var er=b||"";_&&(er+=_),E&&(er+=E);var fn=Ce("span",[We],er,U);if(Y)for(var ar in Y)Y.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&fn.setAttribute(ar,Y[ar]);return A.content.appendChild(fn)}A.content.appendChild(We)}}function Td(A,h){if(A.length>1&&!/ /.test(A))return A;for(var b=h,_="",E=0;Epe&&Ye.from<=pe));Mt++);if(Ye.to>=We)return A(b,_,E,U,Y,J,se);A(b,_.slice(0,Ye.to-pe),E,U,null,J,se),U=null,_=_.slice(Ye.to-pe),pe=Ye.to}}}function Eu(A,h,b,_){var E=!_&&b.widgetNode;E&&A.map.push(A.pos,A.pos+h,E),!_&&A.cm.display.input.needsContentAttribute&&(E||(E=A.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",b.id)),E&&(A.cm.display.input.setUneditable(E),A.content.appendChild(E)),A.pos+=h,A.trailingSpace=!1}function yh(A,h,b){var _=A.markedSpans,E=A.text,U=0;if(!_){for(var Y=1;Yse||Xr.collapsed&&Br.to==se&&Br.from==se)){if(Br.to!=null&&Br.to!=se&&yt>Br.to&&(yt=Br.to,Zt=""),Xr.className&&(qt+=" "+Xr.className),Xr.css&&(Mt=(Mt?Mt+";":"")+Xr.css),Xr.startStyle&&Br.from==se&&(Bn+=" "+Xr.startStyle),Xr.endStyle&&Br.to==yt&&(ar||(ar=[])).push(Xr.endStyle,Br.to),Xr.title&&((er||(er={})).title=Xr.title),Xr.attributes)for(var fo in Xr.attributes)(er||(er={}))[fo]=Xr.attributes[fo];Xr.collapsed&&(!Wn||st(Wn.marker,Xr)<0)&&(Wn=Br)}else Br.from>se&&yt>Br.from&&(yt=Br.from)}if(ar)for(var Ea=0;Ea=J)break;for(var Oa=Math.min(J,yt);;){if(We){var Va=se+We.length;if(!Wn){var Ha=Va>Oa?We.slice(0,Oa-se):We;h.addToken(h,Ha,Ye?Ye+qt:qt,Bn,se+Ha.length==yt?Zt:"",Mt,er)}if(Va>=Oa){We=We.slice(Oa-se),se=Oa;break}se=Va,Bn=""}We=E.slice(U,U=b[pe++]),Ye=Bp(b[pe++],h.cm.options)}}}function vh(A,h,b){this.line=h,this.rest=qo(h),this.size=this.rest?ve(ir(this.rest))-b+1:1,this.node=this.text=null,this.hidden=Li(A,h)}function Yl(A,h,b){for(var _=[],E,U=h;U2&&U.push((se.bottom+pe.top)/2-b.top)}}U.push(b.bottom-b.top)}}function xh(A,h,b){if(A.line==h)return{map:A.measure.map,cache:A.measure.cache};if(A.rest){for(var _=0;_b)return{map:A.measure.maps[E],cache:A.measure.caches[E],before:!0}}}function kp(A,h){h=qr(h);var b=ve(h),_=A.display.externalMeasured=new vh(A.doc,h,b);_.lineN=b;var E=_.built=Id(A,_);return _.text=E.pre,He(A.display.lineMeasure,E.pre),_}function Pd(A,h,b,_){return Ml(A,Hs(A,h),b,_)}function rc(A,h){if(h>=A.display.viewFrom&&h=b.lineN&&hh)&&(U=se-J,E=U-1,h>=se&&(Y="right")),E!=null){if(_=A[pe+2],J==se&&b==(_.insertLeft?"left":"right")&&(Y=b),b=="left"&&E==0)for(;pe&&A[pe-2]==A[pe-3]&&A[pe-1].insertLeft;)_=A[(pe-=3)+2],Y="left";if(b=="right"&&E==se-J)for(;pe=0&&(b=A[E]).left==b.right;E--);return b}function bs(A,h,b,_){var E=ra(h.map,b,_),U=E.node,Y=E.start,J=E.end,se=E.collapse,pe;if(U.nodeType==3){for(var We=0;We<4;We++){for(;Y&&me(h.line.text.charAt(E.coverStart+Y));)--Y;for(;E.coverStart+J0&&(se=_="right");var Ye;A.options.lineWrapping&&(Ye=U.getClientRects()).length>1?pe=Ye[_=="right"?Ye.length-1:0]:pe=U.getBoundingClientRect()}if(f&&g<9&&!Y&&(!pe||!pe.left&&!pe.right)){var Mt=U.parentNode.getClientRects()[0];Mt?pe={left:Mt.left,right:Mt.left+ls(A.display),top:Mt.top,bottom:Mt.bottom}:pe=wh}for(var yt=pe.top-h.rect.top,qt=pe.bottom-h.rect.top,Zt=(yt+qt)/2,Bn=h.view.measure.heights,Wn=0;Wn=_.text.length?(se=_.text.length,pe="before"):se<=0&&(se=0,pe="after"),!J)return Y(pe=="before"?se-1:se,pe=="before");function We(qt,Zt,Bn){var Wn=J[Zt],er=Wn.level==1;return Y(Bn?qt-1:qt,er!=Bn)}var Ye=Lt(J,se,pe),Mt=sr,yt=We(se,Ye,pe=="before");return Mt!=null&&(yt.other=We(se,Mt,pe!="before")),yt}function or(A,h){var b=0;h=br(A.doc,h),A.options.lineWrapping||(b=ls(A.display)*h.ch);var _=rr(A.doc,h.line),E=Pa(_)+Xu(A.display);return{left:b,right:b,top:E,bottom:E+_.height}}function ri(A,h,b,_,E){var U=Ot(A,h,b);return U.xRel=E,_&&(U.outside=_),U}function to(A,h,b){var _=A.doc;if(b+=A.display.viewOffset,b<0)return ri(_.first,0,null,-1,-1);var E=Ge(_,b),U=_.first+_.size-1;if(E>U)return ri(_.first+_.size-1,rr(_,U).text.length,null,1,1);h<0&&(h=0);for(var Y=rr(_,E);;){var J=Rd(A,Y,E,h,b),se=Si(Y,J.ch+(J.xRel>0||J.outside>0?1:0));if(!se)return J;var pe=se.find(1);if(pe.line==E)return pe;Y=rr(_,E=pe.line)}}function ia(A,h,b,_){_-=Ud(h);var E=h.text.length,U=bt(function(Y){return Ml(A,b,Y-1).bottom<=_},E,0);return E=bt(function(Y){return Ml(A,b,Y).top>_},U,E),{begin:U,end:E}}function ho(A,h,b,_){b||(b=Hs(A,h));var E=ku(A,h,Ml(A,b,_),"line").top;return ia(A,h,b,E)}function xs(A,h,b,_){return A.bottom<=b?!1:A.top>b?!0:(_?A.left:A.right)>h}function Rd(A,h,b,_,E){E-=Pa(h);var U=Hs(A,h),Y=Ud(h),J=0,se=h.text.length,pe=!0,We=on(h,A.doc.direction);if(We){var Ye=(A.options.lineWrapping?tA:El)(A,h,b,U,We,_,E);pe=Ye.level!=1,J=pe?Ye.from:Ye.to-1,se=pe?Ye.to:Ye.from-1}var Mt=null,yt=null,qt=bt(function(Ir){var Br=Ml(A,U,Ir);return Br.top+=Y,Br.bottom+=Y,xs(Br,_,E,!1)?(Br.top<=E&&Br.left<=_&&(Mt=Ir,yt=Br),!0):!1},J,se),Zt,Bn,Wn=!1;if(yt){var er=_-yt.left=ar.bottom?1:0}return qt=At(h.text,qt,1),ri(b,qt,Bn,Wn,_-Zt)}function El(A,h,b,_,E,U,Y){var J=bt(function(Ye){var Mt=E[Ye],yt=Mt.level!=1;return xs(Wt(A,Ot(b,yt?Mt.to:Mt.from,yt?"before":"after"),"line",h,_),U,Y,!0)},0,E.length-1),se=E[J];if(J>0){var pe=se.level!=1,We=Wt(A,Ot(b,pe?se.from:se.to,pe?"after":"before"),"line",h,_);xs(We,U,Y,!0)&&We.top>Y&&(se=E[J-1])}return se}function tA(A,h,b,_,E,U,Y){var J=ia(A,h,_,Y),se=J.begin,pe=J.end;/\s/.test(h.text.charAt(pe-1))&&pe--;for(var We=null,Ye=null,Mt=0;Mt=pe||yt.to<=se)){var qt=yt.level!=1,Zt=Ml(A,_,qt?Math.min(pe,yt.to)-1:Math.max(se,yt.from)).right,Bn=ZtBn)&&(We=yt,Ye=Bn)}}return We||(We=E[E.length-1]),We.frompe&&(We={from:We.from,to:pe,level:We.level}),We}var wA;function Jo(A){if(A.cachedTextHeight!=null)return A.cachedTextHeight;if(wA==null){wA=Ce("pre",null,"CodeMirror-line-like");for(var h=0;h<49;++h)wA.appendChild(document.createTextNode("x")),wA.appendChild(Ce("br"));wA.appendChild(document.createTextNode("x"))}He(A.measure,wA);var b=wA.offsetHeight/50;return b>3&&(A.cachedTextHeight=b),Fe(A.measure),b||1}function ls(A){if(A.cachedCharWidth!=null)return A.cachedCharWidth;var h=Ce("span","xxxxxxxxxx"),b=Ce("pre",[h],"CodeMirror-line-like");He(A.measure,b);var _=h.getBoundingClientRect(),E=(_.right-_.left)/10;return E>2&&(A.cachedCharWidth=E),E||10}function nA(A){for(var h=A.display,b={},_={},E=h.gutters.clientLeft,U=h.gutters.firstChild,Y=0;U;U=U.nextSibling,++Y){var J=A.display.gutterSpecs[Y].className;b[J]=U.offsetLeft+U.clientLeft+E,_[J]=U.clientWidth}return{fixedPos:Ei(h),gutterTotalWidth:h.gutters.offsetWidth,gutterLeft:b,gutterWidth:_,wrapperWidth:h.wrapper.clientWidth}}function Ei(A){return A.scroller.getBoundingClientRect().left-A.sizer.getBoundingClientRect().left}function MA(A){var h=Jo(A.display),b=A.options.lineWrapping,_=b&&Math.max(5,A.display.scroller.clientWidth/ls(A.display)-3);return function(E){if(Li(A.doc,E))return 0;var U=0;if(E.widgets)for(var Y=0;Y0&&(pe=rr(A.doc,se.line).text).length==se.ch){var We=de(pe,pe.length,A.options.tabSize)-pe.length;se=Ot(se.line,Math.max(0,Math.round((U-Mf(A.display).left)/ls(A.display))-We))}return se}function ic(A,h){if(h>=A.display.viewTo||(h-=A.display.viewFrom,h<0))return null;for(var b=A.display.view,_=0;_h)&&(E.updateLineNumbers=h),A.curOp.viewChanged=!0,h>=E.viewTo)vs&&Ca(A.doc,h)E.viewFrom?Fa(A):(E.viewFrom+=_,E.viewTo+=_);else if(h<=E.viewFrom&&b>=E.viewTo)Fa(A);else if(h<=E.viewFrom){var U=jn(A,b,b+_,1);U?(E.view=E.view.slice(U.index),E.viewFrom=U.lineN,E.viewTo+=_):Fa(A)}else if(b>=E.viewTo){var Y=jn(A,h,h,-1);Y?(E.view=E.view.slice(0,Y.index),E.viewTo=Y.lineN):Fa(A)}else{var J=jn(A,h,h,-1),se=jn(A,b,b+_,1);J&&se?(E.view=E.view.slice(0,J.index).concat(Yl(A,J.lineN,se.lineN)).concat(E.view.slice(se.index)),E.viewTo+=_):Fa(A)}var pe=E.externalMeasured;pe&&(b=E.lineN&&h=_.viewTo)){var U=_.view[ic(A,h)];if(U.node!=null){var Y=U.changes||(U.changes=[]);Pe(Y,b)==-1&&Y.push(b)}}}function Fa(A){A.display.viewFrom=A.display.viewTo=A.doc.first,A.display.view=[],A.display.viewOffset=0}function jn(A,h,b,_){var E=ic(A,h),U,Y=A.display.view;if(!vs||b==A.doc.first+A.doc.size)return{index:E,lineN:b};for(var J=A.display.viewFrom,se=0;se0){if(E==Y.length-1)return null;U=J+Y[E].size-h,E++}else U=J-h;h+=U,b+=U}for(;Ca(A.doc,b)!=b;){if(E==(_<0?0:Y.length-1))return null;b+=_*Y[E-(_<0?1:0)].size,E+=_}return{index:E,lineN:b}}function Hc(A,h,b){var _=A.display,E=_.view;E.length==0||h>=_.viewTo||b<=_.viewFrom?(_.view=Yl(A,h,b),_.viewFrom=h):(_.viewFrom>h?_.view=Yl(A,h,_.viewFrom).concat(_.view):_.viewFromb&&(_.view=_.view.slice(0,ic(A,b)))),_.viewTo=b}function oc(A){for(var h=A.display.view,b=0,_=0;_=A.display.viewTo||se.to().line0?Y:A.defaultCharWidth())+"px"}if(_.other){var J=b.appendChild(Ce("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));J.style.display="",J.style.left=_.other.left+"px",J.style.top=_.other.top+"px",J.style.height=(_.other.bottom-_.other.top)*.85+"px"}}function rA(A,h){return A.top-h.top||A.left-h.left}function Sf(A,h,b){var _=A.display,E=A.doc,U=document.createDocumentFragment(),Y=Mf(A.display),J=Y.left,se=Math.max(_.sizerWidth,Ju(A)-_.sizer.offsetLeft)-Y.right,pe=E.direction=="ltr";function We(fn,ar,Ir,Br){ar<0&&(ar=0),ar=Math.round(ar),Br=Math.round(Br),U.appendChild(Ce("div",null,"CodeMirror-selected","position: absolute; left: "+fn+`px; top: `+ar+"px; width: "+(Ir??se-fn)+`px; height: `+(Br-ar)+"px"))}function Ye(fn,ar,Ir){var Br=rr(E,fn),Xr=Br.text.length,fo,Ea;function ca(Ha,fl){return sn(A,Ot(fn,Ha),"div",Br,fl)}function Oa(Ha,fl,zs){var ds=ho(A,Br,null,Ha),Za=fl=="ltr"==(zs=="after")?"left":"right",Ba=zs=="after"?ds.begin:ds.end-(/\s/.test(Br.text.charAt(ds.end-1))?2:1);return ca(Ba,Za)[Za]}var Va=on(Br,E.direction);return Et(Va,ar||0,Ir??Xr,function(Ha,fl,zs,ds){var Za=zs=="ltr",Ba=ca(Ha,Za?"left":"right"),js=ca(fl-1,Za?"right":"left"),sA=ar==null&&Ha==0,bc=Ir==null&&fl==Xr,Os=ds==0,Ru=!Va||ds==Va.length-1;if(js.top-Ba.top<=3){var Bs=(pe?sA:bc)&&Os,o0=(pe?bc:sA)&&Ru,UA=Bs?J:(Za?Ba:js).left,xc=o0?se:(Za?js:Ba).right;We(UA,Ba.top,xc-UA,Ba.bottom)}else{var wc,To,cd,Lp;Za?(wc=pe&&sA&&Os?J:Ba.left,To=pe?se:Oa(Ha,zs,"before"),cd=pe?J:Oa(fl,zs,"after"),Lp=pe&&bc&&Ru?se:js.right):(wc=pe?Oa(Ha,zs,"before"):J,To=!pe&&sA&&Os?se:Ba.right,cd=!pe&&bc&&Ru?J:js.left,Lp=pe?Oa(fl,zs,"after"):se),We(wc,Ba.top,To-wc,Ba.bottom),Ba.bottom0?h.blinker=setInterval(function(){A.hasFocus()||Zc(A),h.cursorDiv.style.visibility=(b=!b)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(h.cursorDiv.style.visibility="hidden")}}function Vl(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Sh(A))}function lc(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Zc(A))},100)}function Sh(A,h){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Zn(A,"focus",A,h),A.state.focused=!0,Ve(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),x&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),sc(A))}function Zc(A,h){A.state.delayingBlurEvent||(A.state.focused&&(Zn(A,"blur",A,h),A.state.focused=!1,ct(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Eh(A){for(var h=A.display,b=h.lineDiv.offsetTop,_=Math.max(0,h.scroller.getBoundingClientRect().top),E=h.lineDiv.getBoundingClientRect().top,U=0,Y=0;Y.005||yt<-.005)&&(E<_&&(U-=yt),la(J.line,pe),Hl(J.line),J.rest))for(var qt=0;qtA.display.sizerWidth){var Zt=Math.ceil(We/ls(A.display));Zt>A.display.maxLineLength&&(A.display.maxLineLength=Zt,A.display.maxLine=J.line,A.display.maxLineChanged=!0)}}}Math.abs(U)>2&&(h.scroller.scrollTop+=U)}function Hl(A){if(A.widgets)for(var h=0;h=Y&&(U=Ge(h,Pa(rr(h,se))-A.wrapper.clientHeight),Y=se)}return{from:U,to:Math.max(Y,U+1)}}function Xc(A,h){if(!Ke(A,"scrollCursorIntoView")){var b=A.display,_=b.sizer.getBoundingClientRect(),E=null,U=b.wrapper.ownerDocument;if(h.top+_.top<0?E=!0:h.bottom+_.top>(U.defaultView.innerHeight||U.documentElement.clientHeight)&&(E=!1),E!=null&&!$){var Y=Ce("div","​",null,`position: absolute; top: `+(h.top-b.viewOffset-Xu(A.display))+`px; height: `+(h.bottom-h.top+wl(A)+b.barHeight)+`px; left: `+h.left+"px; width: "+Math.max(2,h.right-h.left)+"px;");A.display.lineSpace.appendChild(Y),Y.scrollIntoView(E),A.display.lineSpace.removeChild(Y)}}}function Ef(A,h,b,_){_==null&&(_=0);var E;!A.options.lineWrapping&&h==b&&(b=h.sticky=="before"?Ot(h.line,h.ch+1,"before"):h,h=h.ch?Ot(h.line,h.sticky=="before"?h.ch-1:h.ch,"after"):h);for(var U=0;U<5;U++){var Y=!1,J=Wt(A,h),se=!b||b==h?J:Wt(A,b);E={left:Math.min(J.left,se.left),top:Math.min(J.top,se.top)-_,right:Math.max(J.left,se.left),bottom:Math.max(J.bottom,se.bottom)+_};var pe=Oh(A,E),We=A.doc.scrollTop,Ye=A.doc.scrollLeft;if(pe.scrollTop!=null&&(SA(A,pe.scrollTop),Math.abs(A.doc.scrollTop-We)>1&&(Y=!0)),pe.scrollLeft!=null&&(dl(A,pe.scrollLeft),Math.abs(A.doc.scrollLeft-Ye)>1&&(Y=!0)),!Y)break}return E}function Of(A,h){var b=Oh(A,h);b.scrollTop!=null&&SA(A,b.scrollTop),b.scrollLeft!=null&&dl(A,b.scrollLeft)}function Oh(A,h){var b=A.display,_=Jo(A.display);h.top<0&&(h.top=0);var E=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:b.scroller.scrollTop,U=bh(A),Y={};h.bottom-h.top>U&&(h.bottom=h.top+U);var J=A.doc.height+qc(b),se=h.top<_,pe=h.bottom>J-_;if(h.topE+U){var We=Math.min(h.top,(pe?J:h.bottom)-U);We!=E&&(Y.scrollTop=We)}var Ye=A.options.fixedGutter?0:b.gutters.offsetWidth,Mt=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:b.scroller.scrollLeft-Ye,yt=Ju(A)-b.gutters.offsetWidth,qt=h.right-h.left>yt;return qt&&(h.right=h.left+yt),h.left<10?Y.scrollLeft=0:h.leftyt+Mt-3&&(Y.scrollLeft=h.right+(qt?0:10)-yt),Y}function Bh(A,h){h!=null&&(gr(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+h)}function oa(A){gr(A);var h=A.getCursor();A.curOp.scrollToPos={from:h,to:h,margin:A.options.cursorScrollMargin}}function Eo(A,h,b){(h!=null||b!=null)&&gr(A),h!=null&&(A.curOp.scrollLeft=h),b!=null&&(A.curOp.scrollTop=b)}function uc(A,h){gr(A),A.curOp.scrollToPos=h}function gr(A){var h=A.curOp.scrollToPos;if(h){A.curOp.scrollToPos=null;var b=or(A,h.from),_=or(A,h.to);Or(A,b,_,h.margin)}}function Or(A,h,b,_){var E=Oh(A,{left:Math.min(h.left,b.left),top:Math.min(h.top,b.top)-_,right:Math.max(h.right,b.right),bottom:Math.max(h.bottom,b.bottom)+_});Eo(A,E.scrollLeft,E.scrollTop)}function SA(A,h){Math.abs(A.doc.scrollTop-h)<2||(i||Il(A,{top:h}),Jc(A,h,!0),i&&Il(A),Ku(A,100))}function Jc(A,h,b){h=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,h)),!(A.display.scroller.scrollTop==h&&!b)&&(A.doc.scrollTop=h,A.display.scrollbars.setScrollTop(h),A.display.scroller.scrollTop!=h&&(A.display.scroller.scrollTop=h))}function dl(A,h,b,_){h=Math.max(0,Math.min(h,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((b?h==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-h)<2)&&!_)&&(A.doc.scrollLeft=h,u(A),A.display.scroller.scrollLeft!=h&&(A.display.scroller.scrollLeft=h),A.display.scrollbars.setScrollLeft(h))}function xa(A){var h=A.display,b=h.gutters.offsetWidth,_=Math.round(A.doc.height+qc(A.display));return{clientHeight:h.scroller.clientHeight,viewHeight:h.wrapper.clientHeight,scrollWidth:h.scroller.scrollWidth,clientWidth:h.scroller.clientWidth,viewWidth:h.wrapper.clientWidth,barLeft:A.options.fixedGutter?b:0,docHeight:_,scrollHeight:_+wl(A)+h.barHeight,nativeBarWidth:h.nativeBarWidth,gutterWidth:b}}var Bl=function(A,h,b){this.cm=b;var _=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");_.tabIndex=E.tabIndex=-1,A(_),A(E),un(_,"scroll",function(){_.clientHeight&&h(_.scrollTop,"vertical")}),un(E,"scroll",function(){E.clientWidth&&h(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bl.prototype.update=function(A){var h=A.scrollWidth>A.clientWidth+1,b=A.scrollHeight>A.clientHeight+1,_=A.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=h?_+"px":"0";var E=A.viewHeight-(h?_:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+E)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(h){this.horiz.style.display="block",this.horiz.style.right=b?_+"px":"0",this.horiz.style.left=A.barLeft+"px";var U=A.viewWidth-A.barLeft-(b?_:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+U)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(_==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?_:0,bottom:h?_:0}},Bl.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bl.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bl.prototype.zeroWidthHack=function(){var A=ce&&!W?"12px":"18px";this.horiz.style.height=this.vert.style.width=A,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new xe,this.disableVert=new xe},Bl.prototype.enableZeroWidthBar=function(A,h,b){A.style.visibility="";function _(){var E=A.getBoundingClientRect(),U=b=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);U!=A?A.style.visibility="hidden":h.set(1e3,_)}h.set(1e3,_)},Bl.prototype.clear=function(){var A=this.horiz.parentNode;A.removeChild(this.horiz),A.removeChild(this.vert)};var As=function(){};As.prototype.update=function(){return{bottom:0,right:0}},As.prototype.setScrollLeft=function(){},As.prototype.setScrollTop=function(){},As.prototype.clear=function(){};function Iu(A,h){h||(h=xa(A));var b=A.display.barWidth,_=A.display.barHeight;iA(A,h);for(var E=0;E<4&&b!=A.display.barWidth||_!=A.display.barHeight;E++)b!=A.display.barWidth&&A.options.lineWrapping&&Eh(A),iA(A,xa(A)),b=A.display.barWidth,_=A.display.barHeight}function iA(A,h){var b=A.display,_=b.scrollbars.update(h);b.sizer.style.paddingRight=(b.barWidth=_.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=_.bottom)+"px",b.heightForcer.style.borderBottom=_.bottom+"px solid transparent",_.right&&_.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=_.bottom+"px",b.scrollbarFiller.style.width=_.right+"px"):b.scrollbarFiller.style.display="",_.bottom&&A.options.coverGutterNextToScrollbar&&A.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=_.bottom+"px",b.gutterFiller.style.width=h.gutterWidth+"px"):b.gutterFiller.style.display=""}var Oo={native:Bl,null:As};function zo(A){A.display.scrollbars&&(A.display.scrollbars.clear(),A.display.scrollbars.addClass&&ct(A.display.wrapper,A.display.scrollbars.addClass)),A.display.scrollbars=new Oo[A.options.scrollbarStyle](function(h){A.display.wrapper.insertBefore(h,A.display.scrollbarFiller),un(h,"mousedown",function(){A.state.focused&&setTimeout(function(){return A.display.input.focus()},0)}),h.setAttribute("cm-not-content","true")},function(h,b){b=="horizontal"?dl(A,h):SA(A,h)},A),A.display.scrollbars.addClass&&Ve(A.display.wrapper,A.display.scrollbars.addClass)}var Ip=0;function du(A){A.curOp={cm:A,viewChanged:!1,startHeight:A.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ip,markArrays:null},Qc(A.curOp)}function Tu(A){var h=A.curOp;h&&xf(h,function(b){for(var _=0;_=b.viewTo)||b.maxLineChanged&&h.options.lineWrapping,A.update=A.mustUpdate&&new kl(h,A.mustUpdate&&{top:A.scrollTop,ensure:A.scrollToPos},A.forceUpdate)}function cc(A){A.updatedDisplay=A.mustUpdate&&Ld(A.cm,A.update)}function ed(A){var h=A.cm,b=h.display;A.updatedDisplay&&Eh(h),A.barMeasure=xa(h),b.maxLineChanged&&!h.options.lineWrapping&&(A.adjustWidthTo=Pd(h,b.maxLine,b.maxLine.text.length).left+3,h.display.sizerWidth=A.adjustWidthTo,A.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+A.adjustWidthTo+wl(h)+h.display.barWidth),A.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+A.adjustWidthTo-Ju(h))),(A.updatedDisplay||A.selectionChanged)&&(A.preparedSelection=b.input.prepareSelection())}function ke(A){var h=A.cm;A.adjustWidthTo!=null&&(h.display.sizer.style.minWidth=A.adjustWidthTo+"px",A.maxScrollLeft=A.display.viewTo)){var b=+new Date+A.options.workTime,_=va(A,h.highlightFrontier),E=[];h.iter(_.line,Math.min(h.first+h.size,A.display.viewTo+500),function(U){if(_.line>=A.display.viewFrom){var Y=U.styles,J=U.text.length>A.options.maxHighlightLength?ba(h.mode,_.state):null,se=qs(A,U,_,!0);J&&(_.state=J),U.styles=se.styles;var pe=U.styleClasses,We=se.classes;We?U.styleClasses=We:pe&&(U.styleClasses=null);for(var Ye=!Y||Y.length!=U.styles.length||pe!=We&&(!pe||!We||pe.bgClass!=We.bgClass||pe.textClass!=We.textClass),Mt=0;!Ye&&Mtb)return Ku(A,A.options.workDelay),!0}),h.highlightFrontier=_.line,h.modeFrontier=Math.max(h.modeFrontier,_.line),E.length&&wa(A,function(){for(var U=0;U=b.viewFrom&&h.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&oc(A)==0)return!1;p(A)&&(Fa(A),h.dims=nA(A));var E=_.first+_.size,U=Math.max(h.visible.from-A.options.viewportMargin,_.first),Y=Math.min(E,h.visible.to+A.options.viewportMargin);b.viewFromY&&b.viewTo-Y<20&&(Y=Math.min(E,b.viewTo)),vs&&(U=Ca(A.doc,U),Y=Vo(A.doc,Y));var J=U!=b.viewFrom||Y!=b.viewTo||b.lastWrapHeight!=h.wrapperHeight||b.lastWrapWidth!=h.wrapperWidth;Hc(A,U,Y),b.viewOffset=Pa(rr(A.doc,b.viewFrom)),A.display.mover.style.top=b.viewOffset+"px";var se=oc(A);if(!J&&se==0&&!h.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var pe=hc(A);return se>4&&(b.lineDiv.style.display="none"),kf(A,b.updateLineNumbers,h.dims),se>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,Ih(pe),Fe(b.cursorDiv),Fe(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,J&&(b.lastWrapHeight=h.wrapperHeight,b.lastWrapWidth=h.wrapperWidth,Ku(A,400)),b.updateLineNumbers=null,!0}function zd(A,h){for(var b=h.viewport,_=!0;;_=!1){if(!_||!A.options.lineWrapping||h.oldDisplayWidth==Ju(A)){if(b&&b.top!=null&&(b={top:Math.min(A.doc.height+qc(A.display)-bh(A),b.top)}),h.visible=go(A.display,A.doc,b),h.visible.from>=A.display.viewFrom&&h.visible.to<=A.display.viewTo)break}else _&&(h.visible=go(A.display,A.doc,b));if(!Ld(A,h))break;Eh(A);var E=xa(A);cl(A),Iu(A,E),O(A,E),h.force=!1}h.signal(A,"update",A),(A.display.viewFrom!=A.display.reportedViewFrom||A.display.viewTo!=A.display.reportedViewTo)&&(h.signal(A,"viewportChange",A,A.display.viewFrom,A.display.viewTo),A.display.reportedViewFrom=A.display.viewFrom,A.display.reportedViewTo=A.display.viewTo)}function Il(A,h){var b=new kl(A,h);if(Ld(A,b)){Eh(A),zd(A,b);var _=xa(A);cl(A),Iu(A,_),O(A,_),b.finish()}}function kf(A,h,b){var _=A.display,E=A.options.lineNumbers,U=_.lineDiv,Y=U.firstChild;function J(qt){var Zt=qt.nextSibling;return x&&ce&&A.display.currentWheelTarget==qt?qt.style.display="none":qt.parentNode.removeChild(qt),Zt}for(var se=_.view,pe=_.viewFrom,We=0;We-1&&(yt=!1),wf(A,Ye,pe,b)),yt&&(Fe(Ye.lineNumber),Ye.lineNumber.appendChild(document.createTextNode(mn(A.options,pe)))),Y=Ye.node.nextSibling}pe+=Ye.size}for(;Y;)Y=J(Y)}function Pi(A){var h=A.gutters.offsetWidth;A.sizer.style.marginLeft=h+"px",Ur(A,"gutterChanged",A)}function O(A,h){A.display.sizer.style.minHeight=h.docHeight+"px",A.display.heightForcer.style.top=h.docHeight+"px",A.display.gutters.style.height=h.docHeight+A.display.barHeight+wl(A)+"px"}function u(A){var h=A.display,b=h.view;if(!(!h.alignWidgets&&(!h.gutters.firstChild||!A.options.fixedGutter))){for(var _=Ei(h)-h.scroller.scrollLeft+A.doc.scrollLeft,E=h.gutters.offsetWidth,U=_+"px",Y=0;Y=105&&(E.wrapper.style.clipPath="inset(0px)"),E.wrapper.setAttribute("translate","no"),f&&g<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!x&&!(i&&ne)&&(E.scroller.draggable=!0),A&&(A.appendChild?A.appendChild(E.wrapper):A(E.wrapper)),E.viewFrom=E.viewTo=h.first,E.reportedViewFrom=E.reportedViewTo=h.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=C(_.gutters,_.lineNumbers),M(E),b.init(E)}var j=0,G=null;f?G=-.53:i?G=15:B?G=-.7:H&&(G=-1/3);function te(A){var h=A.wheelDeltaX,b=A.wheelDeltaY;return h==null&&A.detail&&A.axis==A.HORIZONTAL_AXIS&&(h=A.detail),b==null&&A.detail&&A.axis==A.VERTICAL_AXIS?b=A.detail:b==null&&(b=A.wheelDelta),{x:h,y:b}}function Ae(A){var h=te(A);return h.x*=G,h.y*=G,h}function he(A,h){B&&P==102&&(A.display.chromeScrollHack==null?A.display.sizer.style.pointerEvents="none":clearTimeout(A.display.chromeScrollHack),A.display.chromeScrollHack=setTimeout(function(){A.display.chromeScrollHack=null,A.display.sizer.style.pointerEvents=""},100));var b=te(h),_=b.x,E=b.y,U=G;h.deltaMode===0&&(_=h.deltaX,E=h.deltaY,U=1);var Y=A.display,J=Y.scroller,se=J.scrollWidth>J.clientWidth,pe=J.scrollHeight>J.clientHeight;if(_&&se||E&&pe){if(E&&ce&&x){e:for(var We=h.target,Ye=Y.view;We!=J;We=We.parentNode)for(var Mt=0;Mt=0&&En(A,_.to())<=0)return b}return-1};var De=function(A,h){this.anchor=A,this.head=h};De.prototype.from=function(){return po(this.anchor,this.head)},De.prototype.to=function(){return Ti(this.anchor,this.head)},De.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function je(A,h,b){var _=A&&A.options.selectionsMayTouch,E=h[b];h.sort(function(Mt,yt){return En(Mt.from(),yt.from())}),b=Pe(h,E);for(var U=1;U0:se>=0){var pe=po(J.from(),Y.from()),We=Ti(J.to(),Y.to()),Ye=J.empty()?Y.from()==Y.head:J.from()==J.head;U<=b&&--b,h.splice(--U,2,new De(Ye?We:pe,Ye?pe:We))}}return new Me(h,b)}function Qe(A,h){return new Me([new De(A,h||A)],0)}function Le(A){return A.text?Ot(A.from.line+A.text.length-1,ir(A.text).length+(A.text.length==1?A.from.ch:0)):A.to}function ft(A,h){if(En(A,h.from)<0)return A;if(En(A,h.to)<=0)return Le(h);var b=A.line+h.text.length-(h.to.line-h.from.line)-1,_=A.ch;return A.line==h.to.line&&(_+=Le(h).ch-h.to.ch),Ot(b,_)}function Bt(A,h){for(var b=[],_=0;_1&&A.remove(J.line+1,qt-1),A.insert(J.line+1,Wn)}Ur(A,"change",A,h)}function An(A,h,b){function _(E,U,Y){if(E.linked)for(var J=0;J1&&!A.done[A.done.length-2].ranges)return A.done.pop(),ir(A.done)}function pi(A,h,b,_){var E=A.history;E.undone.length=0;var U=+new Date,Y,J;if((E.lastOp==_||E.lastOrigin==h.origin&&h.origin&&(h.origin.charAt(0)=="+"&&E.lastModTime>U-(A.cm?A.cm.options.historyEventDelay:500)||h.origin.charAt(0)=="*"))&&(Y=Ho(E,E.lastOp==_)))J=ir(Y.changes),En(h.from,h.to)==0&&En(h.from,J.to)==0?J.to=Le(h):Y.changes.push(yr(A,h));else{var se=ir(E.done);for((!se||!se.ranges)&&yo(A.sel,E.done),Y={changes:[yr(A,h)],generation:E.generation},E.done.push(Y);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(b),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=U,E.lastOp=E.lastSelOp=_,E.lastOrigin=E.lastSelOrigin=h.origin,J||Zn(A,"historyAdded")}function ii(A,h,b,_){var E=h.charAt(0);return E=="*"||E=="+"&&b.ranges.length==_.ranges.length&&b.somethingSelected()==_.somethingSelected()&&new Date-A.history.lastSelTime<=(A.cm?A.cm.options.historyEventDelay:500)}function si(A,h,b,_){var E=A.history,U=_&&_.origin;b==E.lastSelOp||U&&E.lastSelOrigin==U&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==U||ii(A,U,ir(E.done),h))?E.done[E.done.length-1]=h:yo(h,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=U,E.lastSelOp=b,_&&_.clearRedo!==!1&&Qn(E.undone)}function yo(A,h){var b=ir(h);b&&b.ranges&&b.equals(A)||h.push(A)}function vo(A,h,b,_){var E=h["spans_"+A.id],U=0;A.iter(Math.max(A.first,b),Math.min(A.first+A.size,_),function(Y){Y.markedSpans&&((E||(E=h["spans_"+A.id]={}))[U]=Y.markedSpans),++U})}function Zs(A){if(!A)return null;for(var h,b=0;b-1&&(ir(J)[Ye]=pe[Ye],delete pe[Ye])}}return _}function no(A,h,b,_){if(_){var E=A.anchor;if(b){var U=En(h,E)<0;U!=En(b,E)<0?(E=h,h=b):U!=En(h,b)<0&&(h=b)}return new De(E,h)}else return new De(b||h,h)}function ws(A,h,b,_,E){E==null&&(E=A.cm&&(A.cm.display.shift||A.extend)),ji(A,new Me([no(A.sel.primary(),h,b,E)],0),_)}function Pu(A,h,b){for(var _=[],E=A.cm&&(A.cm.display.shift||A.extend),U=0;U=h.ch:J.to>h.ch))){if(E&&(Zn(se,"beforeCursorEnter"),se.explicitlyCleared))if(U.markedSpans){--Y;continue}else break;if(!se.atomic)continue;if(b){var Ye=se.find(_<0?1:-1),Mt=void 0;if((_<0?We:pe)&&(Ye=If(A,Ye,-_,Ye&&Ye.line==h.line?U:null)),Ye&&Ye.line==h.line&&(Mt=En(Ye,b))&&(_<0?Mt<0:Mt>0))return ua(A,Ye,h,_,E)}var yt=se.find(_<0?-1:1);return(_<0?pe:We)&&(yt=If(A,yt,_,yt.line==h.line?U:null)),yt?ua(A,yt,h,_,E):null}}return h}function sa(A,h,b,_,E){var U=_||1,Y=ua(A,h,b,U,E)||!E&&ua(A,h,b,U,!0)||ua(A,h,b,-U,E)||!E&&ua(A,h,b,-U,!0);return Y||(A.cantEdit=!0,Ot(A.first,0))}function If(A,h,b,_){return b<0&&h.ch==0?h.line>A.first?br(A,Ot(h.line-1)):null:b>0&&h.ch==(_||rr(A,h.line)).text.length?h.line=0;--E)EA(A,{from:_[E].from,to:_[E].to,text:E?[""]:h.text,origin:h.origin});else EA(A,h)}}function EA(A,h){if(!(h.text.length==1&&h.text[0]==""&&En(h.from,h.to)==0)){var b=Bt(A,h);pi(A,h,b,A.cm?A.cm.curOp.id:NaN),OA(A,h,b,as(A,h));var _=[];An(A,function(E,U){!U&&Pe(_,E.history)==-1&&(td(E.history,h),_.push(E.history)),OA(E,h,null,as(E,h))})}}function hl(A,h,b){var _=A.cm&&A.cm.state.suppressEdits;if(!(_&&!b)){for(var E=A.history,U,Y=A.sel,J=h=="undo"?E.done:E.undone,se=h=="undo"?E.undone:E.done,pe=0;pe=0;--yt){var qt=Mt(yt);if(qt)return qt.v}}}}function Fu(A,h){if(h!=0&&(A.first+=h,A.sel=new Me(Sn(A.sel.ranges,function(E){return new De(Ot(E.anchor.line+h,E.anchor.ch),Ot(E.head.line+h,E.head.ch))}),A.sel.primIndex),A.cm)){us(A.cm,A.first,A.first-h,h);for(var b=A.cm.display,_=b.viewFrom;_A.lastLine())){if(h.from.lineU&&(h={from:h.from,to:Ot(U,rr(A,U).text.length),text:[h.text[0]],origin:h.origin}),h.removed=lo(A,h.from,h.to),b||(b=Bt(A,h)),A.cm?Wd(A.cm,h,_):hn(A,h,_),Oi(A,b,wt),A.cantEdit&&sa(A,Ot(A.firstLine(),0))&&(A.cantEdit=!1)}}function Wd(A,h,b){var _=A.doc,E=A.display,U=h.from,Y=h.to,J=!1,se=U.line;A.options.lineWrapping||(se=ve(qr(rr(_,U.line))),_.iter(se,Y.line+1,function(yt){if(yt==E.maxLine)return J=!0,!0})),_.sel.contains(h.from,h.to)>-1&&fe(A),hn(_,h,b,MA(A)),A.options.lineWrapping||(_.iter(se,U.line+h.text.length,function(yt){var qt=Rs(yt);qt>E.maxLineLength&&(E.maxLine=yt,E.maxLineLength=qt,E.maxLineChanged=!0,J=!1)}),J&&(A.curOp.updateMaxLine=!0)),_A(_,U.line),Ku(A,400);var pe=h.text.length-(Y.line-U.line)-1;h.full?us(A):U.line==Y.line&&h.text.length==1&&!en(A.doc,h)?Ol(A,U.line,"text"):us(A,U.line,Y.line+1,pe);var We=_e(A,"changes"),Ye=_e(A,"change");if(Ye||We){var Mt={from:U,to:Y,text:h.text,removed:h.removed,origin:h.origin};Ye&&Ur(A,"change",A,Mt),We&&(A.curOp.changeObjs||(A.curOp.changeObjs=[])).push(Mt)}A.display.selForContextMenu=null}function BA(A,h,b,_,E){var U;_||(_=b),En(_,b)<0&&(U=[_,b],b=U[0],_=U[1]),typeof h=="string"&&(h=A.splitLines(h)),fc(A,{from:b,to:_,text:h,origin:E})}function Nd(A,h,b,_){b1||!(this.children[0]instanceof pc))){var J=[];this.collapse(J),this.children=[new pc(J)],this.children[0].parent=this}},collapse:function(A){for(var h=0;h50){for(var Y=E.lines.length%25+25,J=Y;J10);A.parent.maybeSpill()}},iterN:function(A,h,b){for(var _=0;_A.display.maxLineLength&&(A.display.maxLine=pe,A.display.maxLineLength=We,A.display.maxLineChanged=!0)}_!=null&&A&&this.collapsed&&us(A,_,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,A&&jo(A.doc)),A&&Ur(A,"markerCleared",A,this,_,E),h&&Tu(A),this.parent&&this.parent.clear()}},Zl.prototype.find=function(A,h){A==null&&this.type=="bookmark"&&(A=1);for(var b,_,E=0;E0||Y==0&&U.clearWhenEmpty!==!1)return U;if(U.replacedWith&&(U.collapsed=!0,U.widgetNode=jt("span",[U.replacedWith],"CodeMirror-widget"),_.handleMouseEvents||U.widgetNode.setAttribute("cm-ignore-events","true"),_.insertLeft&&(U.widgetNode.insertLeft=!0)),U.collapsed){if(Ki(A,h.line,h,b,U)||h.line!=b.line&&Ki(A,b.line,h,b,U))throw new Error("Inserting collapsed marker partially overlapping an existing one");Zu()}U.addToHistory&&pi(A,{from:h,to:b,origin:"markText"},A.sel,NaN);var J=h.line,se=A.cm,pe;if(A.iter(J,b.line+1,function(Ye){se&&U.collapsed&&!se.options.lineWrapping&&qr(Ye)==se.display.maxLine&&(pe=!0),U.collapsed&&J!=h.line&&la(Ye,0),lu(Ye,new Ds(U,J==h.line?h.ch:null,J==b.line?b.ch:null),A.cm&&A.cm.curOp),++J}),U.collapsed&&A.iter(h.line,b.line+1,function(Ye){Li(A,Ye)&&la(Ye,0)}),U.clearOnEnter&&un(U,"beforeCursorEnter",function(){return U.clear()}),U.readOnly&&(bA(),(A.history.done.length||A.history.undone.length)&&A.clearHistory()),U.collapsed&&(U.id=++Gd,U.atomic=!0),se){if(pe&&(se.curOp.updateMaxLine=!0),U.collapsed)us(se,h.line,b.line+1);else if(U.className||U.startStyle||U.endStyle||U.css||U.attributes||U.title)for(var We=h.line;We<=b.line;We++)Ol(se,We,"text");U.atomic&&jo(se.doc),Ur(se,"markerAdded",se,U)}return U}var Qd=function(A,h){this.markers=A,this.primary=h;for(var b=0;b=0;se--)fc(this,_[se]);J?Zo(this,J):this.cm&&oa(this.cm)}),undo:Ma(function(){hl(this,"undo")}),redo:Ma(function(){hl(this,"redo")}),undoSelection:Ma(function(){hl(this,"undo",!0)}),redoSelection:Ma(function(){hl(this,"redo",!0)}),setExtending:function(A){this.extend=A},getExtending:function(){return this.extend},historySize:function(){for(var A=this.history,h=0,b=0,_=0;_=A.ch)&&h.push(E.marker.parent||E.marker)}return h},findMarks:function(A,h,b){A=br(this,A),h=br(this,h);var _=[],E=A.line;return this.iter(A.line,h.line+1,function(U){var Y=U.markedSpans;if(Y)for(var J=0;J=se.to||se.from==null&&E!=A.line||se.from!=null&&E==h.line&&se.from>=h.ch)&&(!b||b(se.marker))&&_.push(se.marker.parent||se.marker)}++E}),_},getAllMarks:function(){var A=[];return this.iter(function(h){var b=h.markedSpans;if(b)for(var _=0;_A)return h=A,!0;A-=U,++b}),br(this,Ot(b,h))},indexFromPos:function(A){A=br(this,A);var h=A.ch;if(A.lineh&&(h=A.from),A.to!=null&&A.to-1){h.state.draggingText(A),setTimeout(function(){return h.display.input.focus()},20);return}try{var We=A.dataTransfer.getData("Text");if(We){var Ye;if(h.state.draggingText&&!h.state.draggingText.copy&&(Ye=h.listSelections()),Oi(h.doc,Qe(b,b)),Ye)for(var Mt=0;Mt=0;J--)BA(A.doc,"",_[J].from,_[J].to,"+delete");oa(A)})}function IA(A,h,b){var _=At(A.text,h+b,b);return _<0||_>A.text.length?null:_}function vc(A,h,b){var _=IA(A,h.ch,b);return _==null?null:new Ot(h.line,_,b<0?"after":"before")}function Pf(A,h,b,_,E){if(A){h.doc.direction=="rtl"&&(E=-E);var U=on(b,h.doc.direction);if(U){var Y=E<0?ir(U):U[0],J=E<0==(Y.level==1),se=J?"after":"before",pe;if(Y.level>0||h.doc.direction=="rtl"){var We=Hs(h,b);pe=E<0?b.text.length-1:0;var Ye=Ml(h,We,pe).top;pe=bt(function(Mt){return Ml(h,We,Mt).top==Ye},E<0==(Y.level==1)?Y.from:Y.to-1,pe),se=="before"&&(pe=IA(b,pe,1))}else pe=E<0?Y.to:Y.from;return new Ot(_,pe,se)}}return new Ot(_,E<0?b.text.length:0,E<0?"before":"after")}function sd(A,h,b,_){var E=on(h,A.doc.direction);if(!E)return vc(h,b,_);b.ch>=h.text.length?(b.ch=h.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var U=Lt(E,b.ch,b.sticky),Y=E[U];if(A.doc.direction=="ltr"&&Y.level%2==0&&(_>0?Y.to>b.ch:Y.from=Y.from&&Mt>=We.begin)){var yt=Ye?"before":"after";return new Ot(b.line,Mt,yt)}}var qt=function(Wn,er,fn){for(var ar=function(fo,Ea){return Ea?new Ot(b.line,J(fo,1),"before"):new Ot(b.line,fo,"after")};Wn>=0&&Wn0==(Ir.level!=1),Xr=Br?fn.begin:J(fn.end,-1);if(Ir.from<=Xr&&Xr0?We.end:J(We.begin,-1);return Bn!=null&&!(_>0&&Bn==h.text.length)&&(Zt=qt(_>0?0:E.length-1,_,pe(Bn)),Zt)?Zt:null}var Ff={selectAll:Wo,singleSelection:function(A){return A.setSelection(A.getCursor("anchor"),A.getCursor("head"),wt)},killLine:function(A){return yc(A,function(h){if(h.empty()){var b=rr(A.doc,h.head.line).text.length;return h.head.ch==b&&h.head.line0)E=new Ot(E.line,E.ch+1),A.replaceRange(U.charAt(E.ch-1)+U.charAt(E.ch-2),Ot(E.line,E.ch-2),E,"+transpose");else if(E.line>A.doc.first){var Y=rr(A.doc,E.line-1).text;Y&&(E=new Ot(E.line,1),A.replaceRange(U.charAt(0)+A.doc.lineSeparator()+Y.charAt(Y.length-1),Ot(E.line-1,Y.length-1),E,"+transpose"))}}b.push(new De(E,E))}A.setSelections(b)})},newlineAndIndent:function(A){return wa(A,function(){for(var h=A.listSelections(),b=h.length-1;b>=0;b--)A.replaceRange(A.doc.lineSeparator(),h[b].anchor,h[b].head,"+input");h=A.listSelections();for(var _=0;_A&&En(h,this.pos)==0&&b==this.button};var Du,ld;function Xm(A,h){var b=+new Date;return ld&&ld.compare(b,A,h)?(Du=ld=null,"triple"):Du&&Du.compare(b,A,h)?(ld=new KA(b,A,h),Du=null,"double"):(Du=new KA(b,A,h),ld=null,"single")}function D1(A){var h=this,b=h.display;if(!(Ke(h,A)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=A.shiftKey,xl(b,A)){x||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!qd(h,A)){var _=Al(h,A),E=Ct(A),U=_?Xm(_,E):"single";kt(h).focus(),E==1&&h.state.selectingText&&h.state.selectingText(A),!(_&&Jm(h,E,_,U,A))&&(E==1?_?Uf(h,_,U,A):et(A)==b.scroller&&Te(A):E==2?(_&&ws(h.doc,_),setTimeout(function(){return b.input.focus()},20)):E==3&&(Ne?h.display.input.onContextMenu(A):lc(h)))}}}function Jm(A,h,b,_,E){var U="Click";return _=="double"?U="Double"+U:_=="triple"&&(U="Triple"+U),U=(h==1?"Left":h==2?"Middle":"Right")+U,TA(A,Ym(U,E),E,function(Y){if(typeof Y=="string"&&(Y=Ff[Y]),!Y)return!1;var J=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),J=Y(A,b)!=Xe}finally{A.state.suppressEdits=!1}return J})}function PA(A,h,b){var _=A.getOption("configureMouse"),E=_?_(A,h,b):{};if(E.unit==null){var U=ae?b.shiftKey&&b.metaKey:b.altKey;E.unit=U?"rectangle":h=="single"?"char":h=="double"?"word":"line"}return(E.extend==null||A.doc.extend)&&(E.extend=A.doc.extend||b.shiftKey),E.addNew==null&&(E.addNew=ce?b.metaKey:b.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ce?b.altKey:b.ctrlKey)),E}function Uf(A,h,b,_){f?setTimeout(Dt(Vl,A),0):A.curOp.focus=Nt(pt(A));var E=PA(A,b,_),U=A.doc.sel,Y;A.options.dragDrop&&rn&&!A.isReadOnly()&&b=="single"&&(Y=U.contains(h))>-1&&(En((Y=U.ranges[Y]).from(),h)<0||h.xRel>0)&&(En(Y.to(),h)>0||h.xRel<0)?e0(A,_,h,E):Pp(A,_,h,E)}function e0(A,h,b,_){var E=A.display,U=!1,Y=uo(A,function(pe){x&&(E.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:lc(A)),Gn(E.wrapper.ownerDocument,"mouseup",Y),Gn(E.wrapper.ownerDocument,"mousemove",J),Gn(E.scroller,"dragstart",se),Gn(E.scroller,"drop",Y),U||(Te(pe),_.addNew||ws(A.doc,b,null,null,_.extend),x&&!H||f&&g==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),J=function(pe){U=U||Math.abs(h.clientX-pe.clientX)+Math.abs(h.clientY-pe.clientY)>=10},se=function(){return U=!0};x&&(E.scroller.draggable=!0),A.state.draggingText=Y,Y.copy=!_.moveOnDrag,un(E.wrapper.ownerDocument,"mouseup",Y),un(E.wrapper.ownerDocument,"mousemove",J),un(E.scroller,"dragstart",se),un(E.scroller,"drop",Y),A.state.delayingBlurEvent=!0,setTimeout(function(){return E.input.focus()},20),E.scroller.dragDrop&&E.scroller.dragDrop()}function t0(A,h,b){if(b=="char")return new De(h,h);if(b=="word")return A.findWordAt(h);if(b=="line")return new De(Ot(h.line,0),br(A.doc,Ot(h.line+1,0)));var _=b(A,h);return new De(_.from,_.to)}function Pp(A,h,b,_){f&&lc(A);var E=A.display,U=A.doc;Te(h);var Y,J,se=U.sel,pe=se.ranges;if(_.addNew&&!_.extend?(J=U.sel.contains(b),J>-1?Y=pe[J]:Y=new De(b,b)):(Y=U.sel.primary(),J=U.sel.primIndex),_.unit=="rectangle")_.addNew||(Y=new De(b,b)),b=Al(A,h,!0,!0),J=-1;else{var We=t0(A,b,_.unit);_.extend?Y=no(Y,We.anchor,We.head,_.extend):Y=We}_.addNew?J==-1?(J=pe.length,ji(U,je(A,pe.concat([Y]),J),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[J].empty()&&_.unit=="char"&&!_.extend?(ji(U,je(A,pe.slice(0,J).concat(pe.slice(J+1)),0),{scroll:!1,origin:"*mouse"}),se=U.sel):Ms(U,J,Y,Kt):(J=0,ji(U,new Me([Y],0),Kt),se=U.sel);var Ye=b;function Mt(fn){if(En(Ye,fn)!=0)if(Ye=fn,_.unit=="rectangle"){for(var ar=[],Ir=A.options.tabSize,Br=de(rr(U,b.line).text,b.ch,Ir),Xr=de(rr(U,fn.line).text,fn.ch,Ir),fo=Math.min(Br,Xr),Ea=Math.max(Br,Xr),ca=Math.min(b.line,fn.line),Oa=Math.min(A.lastLine(),Math.max(b.line,fn.line));ca<=Oa;ca++){var Va=rr(U,ca).text,Ha=zn(Va,fo,Ir);fo==Ea?ar.push(new De(Ot(ca,Ha),Ot(ca,Ha))):Va.length>Ha&&ar.push(new De(Ot(ca,Ha),Ot(ca,zn(Va,Ea,Ir))))}ar.length||ar.push(new De(b,b)),ji(U,je(A,se.ranges.slice(0,J).concat(ar),J),{origin:"*mouse",scroll:!1}),A.scrollIntoView(fn)}else{var fl=Y,zs=t0(A,fn,_.unit),ds=fl.anchor,Za;En(zs.anchor,ds)>0?(Za=zs.head,ds=po(fl.from(),zs.anchor)):(Za=zs.anchor,ds=Ti(fl.to(),zs.head));var Ba=se.ranges.slice(0);Ba[J]=Rh(A,new De(br(U,ds),Za)),ji(U,je(A,Ba,J),Kt)}}var yt=E.wrapper.getBoundingClientRect(),qt=0;function Zt(fn){var ar=++qt,Ir=Al(A,fn,!0,_.unit=="rectangle");if(Ir)if(En(Ir,Ye)!=0){A.curOp.focus=Nt(pt(A)),Mt(Ir);var Br=go(E,U);(Ir.line>=Br.to||Ir.lineyt.bottom?20:0;Xr&&setTimeout(uo(A,function(){qt==ar&&(E.scroller.scrollTop+=Xr,Zt(fn))}),50)}}function Bn(fn){A.state.selectingText=!1,qt=1/0,fn&&(Te(fn),E.input.focus()),Gn(E.wrapper.ownerDocument,"mousemove",Wn),Gn(E.wrapper.ownerDocument,"mouseup",er),U.history.lastSelOrigin=null}var Wn=uo(A,function(fn){fn.buttons===0||!Ct(fn)?Bn(fn):Zt(fn)}),er=uo(A,Bn);A.state.selectingText=er,un(E.wrapper.ownerDocument,"mousemove",Wn),un(E.wrapper.ownerDocument,"mouseup",er)}function Rh(A,h){var b=h.anchor,_=h.head,E=rr(A.doc,b.line);if(En(b,_)==0&&b.sticky==_.sticky)return h;var U=on(E);if(!U)return h;var Y=Lt(U,b.ch,b.sticky),J=U[Y];if(J.from!=b.ch&&J.to!=b.ch)return h;var se=Y+(J.from==b.ch==(J.level!=1)?0:1);if(se==0||se==U.length)return h;var pe;if(_.line!=b.line)pe=(_.line-b.line)*(A.doc.direction=="ltr"?1:-1)>0;else{var We=Lt(U,_.ch,_.sticky),Ye=We-Y||(_.ch-b.ch)*(J.level==1?-1:1);We==se-1||We==se?pe=Ye<0:pe=Ye>0}var Mt=U[se+(pe?-1:0)],yt=pe==(Mt.level==1),qt=yt?Mt.from:Mt.to,Zt=yt?"after":"before";return b.ch==qt&&b.sticky==Zt?h:new De(new Ot(b.line,qt,Zt),_)}function Rf(A,h,b,_){var E,U;if(h.touches)E=h.touches[0].clientX,U=h.touches[0].clientY;else try{E=h.clientX,U=h.clientY}catch{return!1}if(E>=Math.floor(A.display.gutters.getBoundingClientRect().right))return!1;_&&Te(h);var Y=A.display,J=Y.lineDiv.getBoundingClientRect();if(U>J.bottom||!_e(A,b))return it(h);U-=J.top-Y.viewOffset;for(var se=0;se=E){var We=Ge(A.doc,U),Ye=A.display.gutterSpecs[se];return Zn(A,b,A,We,Ye.className,h),it(h)}}}function qd(A,h){return Rf(A,h,"gutterClick",!0)}function Lf(A,h){xl(A.display,h)||Fp(A,h)||Ke(A,h,"contextmenu")||Ne||A.display.input.onContextMenu(h)}function Fp(A,h){return _e(A,"gutterContextMenu")?Rf(A,h,"gutterContextMenu",!1):!1}function U1(A){A.display.wrapper.className=A.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+A.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Sl(A)}var Vd={toString:function(){return"CodeMirror.Init"}},zf={},jf={};function FA(A){var h=A.optionHandlers;function b(_,E,U,Y){A.defaults[_]=E,U&&(h[_]=Y?function(J,se,pe){pe!=Vd&&U(J,se,pe)}:U)}A.defineOption=b,A.Init=Vd,b("value","",function(_,E){return _.setValue(E)},!0),b("mode",null,function(_,E){_.doc.modeOption=E,Ut(_)},!0),b("indentUnit",2,Ut,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(_){Tt(_),Sl(_),us(_)},!0),b("lineSeparator",null,function(_,E){if(_.doc.lineSep=E,!!E){var U=[],Y=_.doc.first;_.doc.iter(function(se){for(var pe=0;;){var We=se.text.indexOf(E,pe);if(We==-1)break;pe=We+E.length,U.push(Ot(Y,We))}Y++});for(var J=U.length-1;J>=0;J--)BA(_.doc,E,U[J],Ot(U[J].line,U[J].ch+E.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(_,E,U){_.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),U!=Vd&&_.refresh()}),b("specialCharPlaceholder",cu,function(_){return _.refresh()},!0),b("electricChars",!0),b("inputStyle",ne?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(_,E){return _.getInputField().spellcheck=E},!0),b("autocorrect",!1,function(_,E){return _.getInputField().autocorrect=E},!0),b("autocapitalize",!1,function(_,E){return _.getInputField().autocapitalize=E},!0),b("rtlMoveVisually",!ue),b("wholeLineUpdateBefore",!0),b("theme","default",function(_){U1(_),I(_)},!0),b("keyMap","default",function(_,E,U){var Y=ad(E),J=U!=Vd&&ad(U);J&&J.detach&&J.detach(_,Y),Y.attach&&Y.attach(_,J||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,n0,!0),b("gutters",[],function(_,E){_.display.gutterSpecs=C(E,_.options.lineNumbers),I(_)},!0),b("fixedGutter",!0,function(_,E){_.display.gutters.style.left=E?Ei(_.display)+"px":"0",_.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(_){return Iu(_)},!0),b("scrollbarStyle","native",function(_){zo(_),Iu(_),_.display.scrollbars.setScrollTop(_.doc.scrollTop),_.display.scrollbars.setScrollLeft(_.doc.scrollLeft)},!0),b("lineNumbers",!1,function(_,E){_.display.gutterSpecs=C(_.options.gutters,E),I(_)},!0),b("firstLineNumber",1,I,!0),b("lineNumberFormatter",function(_){return _},I,!0),b("showCursorWhenSelecting",!1,cl,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(_,E){E=="nocursor"&&(Zc(_),_.display.input.blur()),_.display.input.readOnlyChanged(E)}),b("screenReaderLabel",null,function(_,E){E=E===""?null:E,_.display.input.screenReaderLabelChanged(E)}),b("disableInput",!1,function(_,E){E||_.display.input.reset()},!0),b("dragDrop",!0,nv),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,cl,!0),b("singleCursorHeightPerLine",!0,cl,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,Tt,!0),b("addModeClass",!1,Tt,!0),b("pollInterval",100),b("undoDepth",200,function(_,E){return _.doc.history.undoDepth=E}),b("historyEventDelay",1250),b("viewportMargin",10,function(_){return _.refresh()},!0),b("maxHighlightLength",1e4,Tt,!0),b("moveInputWithCursor",!0,function(_,E){E||_.display.input.resetPosition()}),b("tabindex",null,function(_,E){return _.display.input.getField().tabIndex=E||""}),b("autofocus",null),b("direction","ltr",function(_,E){return _.doc.setDirection(E)},!0),b("phrases",null)}function nv(A,h,b){var _=b&&b!=Vd;if(!h!=!_){var E=A.display.dragFunctions,U=h?un:Gn;U(A.display.scroller,"dragstart",E.start),U(A.display.scroller,"dragenter",E.enter),U(A.display.scroller,"dragover",E.over),U(A.display.scroller,"dragleave",E.leave),U(A.display.scroller,"drop",E.drop)}}function n0(A){A.options.lineWrapping?(Ve(A.display.wrapper,"CodeMirror-wrap"),A.display.sizer.style.minWidth="",A.display.sizerWidth=null):(ct(A.display.wrapper,"CodeMirror-wrap"),_s(A)),Mh(A),us(A),Sl(A),setTimeout(function(){return Iu(A)},100)}function qi(A,h){var b=this;if(!(this instanceof qi))return new qi(A,h);this.options=h=h?Se(h):{},Se(zf,h,!1);var _=h.value;typeof _=="string"?_=new Js(_,h.mode,null,h.lineSeparator,h.direction):h.mode&&(_.modeOption=h.mode),this.doc=_;var E=new qi.inputStyles[h.inputStyle](this),U=this.display=new L(A,_,E,h);U.wrapper.CodeMirror=this,U1(this),h.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),zo(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new xe,keySeq:null,specialChars:null},h.autofocus&&!ne&&U.input.focus(),f&&g<11&&setTimeout(function(){return b.display.input.reset(!0)},20),R1(this),T1(),du(this),this.curOp.forceUpdate=!0,On(this,_),h.autofocus&&!ne||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&Sh(b)},20):Zc(this);for(var Y in jf)jf.hasOwnProperty(Y)&&jf[Y](this,h[Y],Vd);p(this),h.finishInit&&h.finishInit(this);for(var J=0;J20*20}un(h.scroller,"touchstart",function(se){if(!Ke(A,se)&&!U(se)&&!qd(A,se)){h.input.ensurePolled(),clearTimeout(b);var pe=+new Date;h.activeTouch={start:pe,moved:!1,prev:pe-_.end<=300?_:null},se.touches.length==1&&(h.activeTouch.left=se.touches[0].pageX,h.activeTouch.top=se.touches[0].pageY)}}),un(h.scroller,"touchmove",function(){h.activeTouch&&(h.activeTouch.moved=!0)}),un(h.scroller,"touchend",function(se){var pe=h.activeTouch;if(pe&&!xl(h,se)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var We=A.coordsChar(h.activeTouch,"page"),Ye;!pe.prev||Y(pe,pe.prev)?Ye=new De(We,We):!pe.prev.prev||Y(pe,pe.prev.prev)?Ye=A.findWordAt(We):Ye=new De(Ot(We.line,0),br(A.doc,Ot(We.line+1,0))),A.setSelection(Ye.anchor,Ye.head),A.focus(),Te(se)}E()}),un(h.scroller,"touchcancel",E),un(h.scroller,"scroll",function(){h.scroller.clientHeight&&(SA(A,h.scroller.scrollTop),dl(A,h.scroller.scrollLeft,!0),Zn(A,"scroll",A))}),un(h.scroller,"mousewheel",function(se){return he(A,se)}),un(h.scroller,"DOMMouseScroll",function(se){return he(A,se)}),un(h.wrapper,"scroll",function(){return h.wrapper.scrollTop=h.wrapper.scrollLeft=0}),h.dragFunctions={enter:function(se){Ke(A,se)||ht(se)},over:function(se){Ke(A,se)||(Qi(A,se),ht(se))},start:function(se){return Fh(A,se)},drop:uo(A,ev),leave:function(se){Ke(A,se)||Nm(A)}};var J=h.input.getField();un(J,"keyup",function(se){return Tl.call(A,se)}),un(J,"keydown",uo(A,Uh)),un(J,"keypress",uo(A,Zm)),un(J,"focus",function(se){return Sh(A,se)}),un(J,"blur",function(se){return Zc(A,se)})}var Dp=[];qi.defineInitHook=function(A){return Dp.push(A)};function Wf(A,h,b,_){var E=A.doc,U;b==null&&(b="add"),b=="smart"&&(E.mode.indent?U=va(A,h).state:b="prev");var Y=A.options.tabSize,J=rr(E,h),se=de(J.text,null,Y);J.stateAfter&&(J.stateAfter=null);var pe=J.text.match(/^\s*/)[0],We;if(!_&&!/\S/.test(J.text))We=0,b="not";else if(b=="smart"&&(We=E.mode.indent(U,J.text.slice(pe.length),J.text),We==Xe||We>150)){if(!_)return;b="prev"}b=="prev"?h>E.first?We=de(rr(E,h-1).text,null,Y):We=0:b=="add"?We=se+A.options.indentUnit:b=="subtract"?We=se-A.options.indentUnit:typeof b=="number"&&(We=se+b),We=Math.max(0,We);var Ye="",Mt=0;if(A.options.indentWithTabs)for(var yt=Math.floor(We/Y);yt;--yt)Mt+=Y,Ye+=" ";if(MtY,se=qn(h),pe=null;if(J&&_.ranges.length>1)if(mu&&mu.text.join(` `)==h){if(_.ranges.length%mu.text.length==0){pe=[];for(var We=0;We=0;Mt--){var yt=_.ranges[Mt],qt=yt.from(),Zt=yt.to();yt.empty()&&(b&&b>0?qt=Ot(qt.line,qt.ch-b):A.state.overwrite&&!J?Zt=Ot(Zt.line,Math.min(rr(U,Zt.line).text.length,Zt.ch+ir(se).length)):J&&mu&&mu.lineWise&&mu.text.join(` `)==se.join(` `)&&(qt=Zt=Ot(qt.line,0)));var Bn={from:qt,to:Zt,text:pe?pe[Mt%pe.length]:se,origin:E||(J?"paste":A.state.cutIncoming>Y?"cut":"+input")};fc(A.doc,Bn),Ur(A,"inputRead",A,Bn)}h&&!J&&Up(A,h),oa(A),A.curOp.updateInput<2&&(A.curOp.updateInput=Ye),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function DA(A,h){var b=A.clipboardData&&A.clipboardData.getData("Text");if(b)return A.preventDefault(),!h.isReadOnly()&&!h.options.disableInput&&h.hasFocus()&&wa(h,function(){return r0(h,b,0,null,"paste")}),!0}function Up(A,h){if(!(!A.options.electricChars||!A.options.smartIndent))for(var b=A.doc.sel,_=b.ranges.length-1;_>=0;_--){var E=b.ranges[_];if(!(E.head.ch>100||_&&b.ranges[_-1].head.line==E.head.line)){var U=A.getModeAt(E.head),Y=!1;if(U.electricChars){for(var J=0;J-1){Y=Wf(A,E.head.line,"smart");break}}else U.electricInput&&U.electricInput.test(rr(A.doc,E.head.line).text.slice(0,E.head.ch))&&(Y=Wf(A,E.head.line,"smart"));Y&&Ur(A,"electricInput",A,E.head.line)}}}function Rp(A){for(var h=[],b=[],_=0;_U&&(Wf(this,J.head.line,_,!0),U=J.head.line,Y==this.doc.sel.primIndex&&oa(this));else{var se=J.from(),pe=J.to(),We=Math.max(U,se.line);U=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var Ye=We;Ye0&&Ms(this.doc,Y,new De(se,Mt[Y].to()),wt)}}}),getTokenAt:function(_,E){return CA(this,_,E)},getLineTokens:function(_,E){return CA(this,Ot(_),E,!0)},getTokenTypeAt:function(_){_=br(this.doc,_);var E=Vs(this,rr(this.doc,_.line)),U=0,Y=(E.length-1)/2,J=_.ch,se;if(J==0)se=E[2];else for(;;){var pe=U+Y>>1;if((pe?E[pe*2-1]:0)>=J)Y=pe;else if(E[pe*2+1]se&&(_=se,Y=!0),J=rr(this.doc,_)}else J=_;return ku(this,J,{top:0,left:0},E||"page",U||Y).top+(Y?this.doc.height-Pa(J):0)},defaultTextHeight:function(){return Jo(this.display)},defaultCharWidth:function(){return ls(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(_,E,U,Y,J){var se=this.display;_=Wt(this,br(this.doc,_));var pe=_.bottom,We=_.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),se.sizer.appendChild(E),Y=="over")pe=_.top;else if(Y=="above"||Y=="near"){var Ye=Math.max(se.wrapper.clientHeight,this.doc.height),Mt=Math.max(se.sizer.clientWidth,se.lineSpace.clientWidth);(Y=="above"||_.bottom+E.offsetHeight>Ye)&&_.top>E.offsetHeight?pe=_.top-E.offsetHeight:_.bottom+E.offsetHeight<=Ye&&(pe=_.bottom),We+E.offsetWidth>Mt&&(We=Mt-E.offsetWidth)}E.style.top=pe+"px",E.style.left=E.style.right="",J=="right"?(We=se.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(J=="left"?We=0:J=="middle"&&(We=(se.sizer.clientWidth-E.offsetWidth)/2),E.style.left=We+"px"),U&&Of(this,{left:We,top:pe,right:We+E.offsetWidth,bottom:pe+E.offsetHeight})},triggerOnKeyDown:jr(Uh),triggerOnKeyPress:jr(Zm),triggerOnKeyUp:Tl,triggerOnMouseDown:jr(D1),execCommand:function(_){if(Ff.hasOwnProperty(_))return Ff[_].call(null,this)},triggerElectric:jr(function(_){Up(this,_)}),findPosH:function(_,E,U,Y){var J=1;E<0&&(J=-1,E=-E);for(var se=br(this.doc,_),pe=0;pe0&&We(U.charAt(Y-1));)--Y;for(;J.5||this.options.lineWrapping)&&Mh(this),Zn(this,"refresh",this)}),swapDoc:jr(function(_){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),On(this,_),Sl(this),this.display.input.reset(),Eo(this,_.scrollLeft,_.scrollTop),this.curOp.forceScroll=!0,Ur(this,"swapDoc",this,E),E}),phrase:function(_){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,_)?E[_]:_},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(A),A.registerHelper=function(_,E,U){b.hasOwnProperty(_)||(b[_]=A[_]={_global:[]}),b[_][E]=U},A.registerGlobalHelper=function(_,E,U,Y){A.registerHelper(_,E,Y),b[_]._global.push({pred:U,val:Y})}}function Vr(A,h,b,_,E){var U=h,Y=b,J=rr(A,h.line),se=E&&A.direction=="rtl"?-b:b;function pe(){var er=h.line+se;return er=A.first+A.size?!1:(h=new Ot(er,h.ch,h.sticky),J=rr(A,er))}function We(er){var fn;if(_=="codepoint"){var ar=J.text.charCodeAt(h.ch+(b>0?0:-1));if(isNaN(ar))fn=null;else{var Ir=b>0?ar>=55296&&ar<56320:ar>=56320&&ar<57343;fn=new Ot(h.line,Math.max(0,Math.min(J.text.length,h.ch+b*(Ir?2:1))),-b)}}else E?fn=sd(A.cm,J,h,b):fn=vc(J,h,b);if(fn==null)if(!er&&pe())h=Pf(E,A.cm,J,h.line,se);else return!1;else h=fn;return!0}if(_=="char"||_=="codepoint")We();else if(_=="column")We(!0);else if(_=="word"||_=="group")for(var Ye=null,Mt=_=="group",yt=A.cm&&A.cm.getHelper(h,"wordChars"),qt=!0;!(b<0&&!We(!qt));qt=!1){var Zt=J.text.charAt(h.ch)||` `,Bn=we(Zt,yt)?"w":Mt&&Zt==` `?"n":!Mt||/\s/.test(Zt)?null:"p";if(Mt&&!qt&&!Bn&&(Bn="s"),Ye&&Ye!=Bn){b<0&&(b=1,We(),h.sticky="after");break}if(Bn&&(Ye=Bn),b>0&&!We(!qt))break}var Wn=sa(A,h,U,Y,!0);return zr(U,Wn)&&(Wn.hitSide=!0),Wn}function Gf(A,h,b,_){var E=A.doc,U=h.left,Y;if(_=="page"){var J=Math.min(A.display.wrapper.clientHeight,kt(A).innerHeight||E(A).documentElement.clientHeight),se=Math.max(J-.5*Jo(A.display),3);Y=(b>0?h.bottom:h.top)+b*se}else _=="line"&&(Y=b>0?h.bottom+3:h.top-3);for(var pe;pe=to(A,U,Y),!!pe.outside;){if(b<0?Y<=0:Y>=E.height){pe.hitSide=!0;break}Y+=b*5}return pe}var Co=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Co.prototype.init=function(A){var h=this,b=this,_=b.cm,E=b.div=A.lineDiv;E.contentEditable=!0,Hd(E,_.options.spellcheck,_.options.autocorrect,_.options.autocapitalize);function U(J){for(var se=J.target;se;se=se.parentNode){if(se==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(se.className))break}return!1}un(E,"paste",function(J){!U(J)||Ke(_,J)||DA(J,_)||g<=11&&setTimeout(uo(_,function(){return h.updateFromDOM()}),20)}),un(E,"compositionstart",function(J){h.composing={data:J.data,done:!1}}),un(E,"compositionupdate",function(J){h.composing||(h.composing={data:J.data,done:!1})}),un(E,"compositionend",function(J){h.composing&&(J.data!=h.composing.data&&h.readFromDOMSoon(),h.composing.done=!0)}),un(E,"touchstart",function(){return b.forceCompositionEnd()}),un(E,"input",function(){h.composing||h.readFromDOMSoon()});function Y(J){if(!(!U(J)||Ke(_,J))){if(_.somethingSelected())Nf({lineWise:!1,text:_.getSelections()}),J.type=="cut"&&_.replaceSelection("",null,"cut");else if(_.options.lineWiseCopyCut){var se=Rp(_);Nf({lineWise:!0,text:se.text}),J.type=="cut"&&_.operation(function(){_.setSelections(se.ranges,0,wt),_.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var pe=mu.text.join(` `);if(J.clipboardData.setData("Text",pe),J.clipboardData.getData("Text")==pe){J.preventDefault();return}}var We=_c(),Ye=We.firstChild;Hd(Ye),_.display.lineSpace.insertBefore(We,_.display.lineSpace.firstChild),Ye.value=mu.text.join(` `);var Mt=Nt(dt(E));Je(Ye),setTimeout(function(){_.display.lineSpace.removeChild(We),Mt.focus(),Mt==E&&b.showPrimarySelection()},50)}}un(E,"copy",Y),un(E,"cut",Y)},Co.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},Co.prototype.prepareSelection=function(){var A=ac(this.cm,!1);return A.focus=Nt(dt(this.div))==this.div,A},Co.prototype.showSelection=function(A,h){!A||!this.cm.display.view.length||((A.focus||h)&&this.showPrimarySelection(),this.showMultipleSelections(A))},Co.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Co.prototype.showPrimarySelection=function(){var A=this.getSelection(),h=this.cm,b=h.doc.sel.primary(),_=b.from(),E=b.to();if(h.display.viewTo==h.display.viewFrom||_.line>=h.display.viewTo||E.line=h.display.viewFrom&&Ad(h,_)||{node:J[0].measure.map[2],offset:0},pe=E.lineA.firstLine()&&(_=Ot(_.line-1,rr(A.doc,_.line-1).length)),E.ch==rr(A.doc,E.line).text.length&&E.lineh.viewTo-1)return!1;var U,Y,J;_.line==h.viewFrom||(U=ic(A,_.line))==0?(Y=ve(h.view[0].line),J=h.view[0].node):(Y=ve(h.view[U].line),J=h.view[U-1].node.nextSibling);var se=ic(A,E.line),pe,We;if(se==h.view.length-1?(pe=h.viewTo-1,We=h.lineDiv.lastChild):(pe=ve(h.view[se+1].line)-1,We=h.view[se+1].node.previousSibling),!J)return!1;for(var Ye=A.doc.splitLines(i0(A,J,We,Y,pe)),Mt=lo(A.doc,Ot(Y,0),Ot(pe,rr(A.doc,pe).text.length));Ye.length>1&&Mt.length>1;)if(ir(Ye)==ir(Mt))Ye.pop(),Mt.pop(),pe--;else if(Ye[0]==Mt[0])Ye.shift(),Mt.shift(),Y++;else break;for(var yt=0,qt=0,Zt=Ye[0],Bn=Mt[0],Wn=Math.min(Zt.length,Bn.length);yt_.ch&&er.charCodeAt(er.length-qt-1)==fn.charCodeAt(fn.length-qt-1);)yt--,qt++;Ye[Ye.length-1]=er.slice(0,er.length-qt).replace(/^\u200b+/,""),Ye[0]=Ye[0].slice(yt).replace(/\u200b+$/,"");var Ir=Ot(Y,yt),Br=Ot(pe,Mt.length?ir(Mt).length-qt:0);if(Ye.length>1||Ye[0]||En(Ir,Br))return BA(A.doc,Ye,Ir,Br,"+input"),!0},Co.prototype.ensurePolled=function(){this.forceCompositionEnd()},Co.prototype.reset=function(){this.forceCompositionEnd()},Co.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Co.prototype.readFromDOMSoon=function(){var A=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(A.readDOMTimeout=null,A.composing)if(A.composing.done)A.composing=null;else return;A.updateFromDOM()},80))},Co.prototype.updateFromDOM=function(){var A=this;(this.cm.isReadOnly()||!this.pollContent())&&wa(this.cm,function(){return us(A.cm)})},Co.prototype.setUneditable=function(A){A.contentEditable="false"},Co.prototype.onKeyPress=function(A){A.charCode==0||this.composing||(A.preventDefault(),this.cm.isReadOnly()||uo(this.cm,r0)(this.cm,String.fromCharCode(A.charCode==null?A.keyCode:A.charCode),0))},Co.prototype.readOnlyChanged=function(A){this.div.contentEditable=String(A!="nocursor")},Co.prototype.onContextMenu=function(){},Co.prototype.resetPosition=function(){},Co.prototype.needsContentAttribute=!0;function Ad(A,h){var b=rc(A,h.line);if(!b||b.hidden)return null;var _=rr(A.doc,h.line),E=xh(b,_,h.line),U=on(_,A.doc.direction),Y="left";if(U){var J=Lt(U,h.ch);Y=J%2?"right":"left"}var se=ra(E.map,h.ch,Y);return se.offset=se.collapse=="right"?se.end:se.start,se}function rv(A){for(var h=A;h;h=h.parentNode)if(/CodeMirror-gutter-wrapper/.test(h.className))return!0;return!1}function Uu(A,h){return h&&(A.bad=!0),A}function i0(A,h,b,_,E){var U="",Y=!1,J=A.doc.lineSeparator(),se=!1;function pe(yt){return function(qt){return qt.id==yt}}function We(){Y&&(U+=J,se&&(U+=J),Y=se=!1)}function Ye(yt){yt&&(We(),U+=yt)}function Mt(yt){if(yt.nodeType==1){var qt=yt.getAttribute("cm-text");if(qt){Ye(qt);return}var Zt=yt.getAttribute("cm-marker"),Bn;if(Zt){var Wn=A.findMarks(Ot(_,0),Ot(E+1,0),pe(+Zt));Wn.length&&(Bn=Wn[0].find(0))&&Ye(lo(A.doc,Bn.from,Bn.to).join(J));return}if(yt.getAttribute("contenteditable")=="false")return;var er=/^(pre|div|p|li|table|br)$/i.test(yt.nodeName);if(!/^br$/i.test(yt.nodeName)&&yt.textContent.length==0)return;er&&We();for(var fn=0;fn=9&&h.hasSelection&&(h.hasSelection=null),b.poll()}),un(E,"paste",function(Y){Ke(_,Y)||DA(Y,_)||(_.state.pasteIncoming=+new Date,b.fastPoll())});function U(Y){if(!Ke(_,Y)){if(_.somethingSelected())Nf({lineWise:!1,text:_.getSelections()});else if(_.options.lineWiseCopyCut){var J=Rp(_);Nf({lineWise:!0,text:J.text}),Y.type=="cut"?_.setSelections(J.ranges,null,wt):(b.prevInput="",E.value=J.text.join(` `),Je(E))}else return;Y.type=="cut"&&(_.state.cutIncoming=+new Date)}}un(E,"cut",U),un(E,"copy",U),un(A.scroller,"paste",function(Y){if(!(xl(A,Y)||Ke(_,Y))){if(!E.dispatchEvent){_.state.pasteIncoming=+new Date,b.focus();return}var J=new Event("paste");J.clipboardData=Y.clipboardData,E.dispatchEvent(J)}}),un(A.lineSpace,"selectstart",function(Y){xl(A,Y)||Te(Y)}),un(E,"compositionstart",function(){var Y=_.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:Y,range:_.markText(Y,_.getCursor("to"),{className:"CodeMirror-composing"})}}),un(E,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},Ua.prototype.createField=function(A){this.wrapper=_c(),this.textarea=this.wrapper.firstChild;var h=this.cm.options;Hd(this.textarea,h.spellcheck,h.autocorrect,h.autocapitalize)},Ua.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var A=this.cm,h=A.display,b=A.doc,_=ac(A);if(A.options.moveInputWithCursor){var E=Wt(A,b.sel.primary().head,"div"),U=h.wrapper.getBoundingClientRect(),Y=h.lineDiv.getBoundingClientRect();_.teTop=Math.max(0,Math.min(h.wrapper.clientHeight-10,E.top+Y.top-U.top)),_.teLeft=Math.max(0,Math.min(h.wrapper.clientWidth-10,E.left+Y.left-U.left))}return _},Ua.prototype.showSelection=function(A){var h=this.cm,b=h.display;He(b.cursorDiv,A.cursors),He(b.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},Ua.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var h=this.cm;if(this.resetting=!0,h.somethingSelected()){this.prevInput="";var b=h.getSelection();this.textarea.value=b,h.state.focused&&Je(this.textarea),f&&g>=9&&(this.hasSelection=b)}else A||(this.prevInput=this.textarea.value="",f&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Ua.prototype.getField=function(){return this.textarea},Ua.prototype.supportsTouch=function(){return!1},Ua.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||Nt(dt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ua.prototype.blur=function(){this.textarea.blur()},Ua.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ua.prototype.receivedFocus=function(){this.slowPoll()},Ua.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},Ua.prototype.fastPoll=function(){var A=!1,h=this;h.pollingFast=!0;function b(){var _=h.poll();!_&&!A?(A=!0,h.polling.set(60,b)):(h.pollingFast=!1,h.slowPoll())}h.polling.set(20,b)},Ua.prototype.poll=function(){var A=this,h=this.cm,b=this.textarea,_=this.prevInput;if(this.contextMenuPending||this.resetting||!h.state.focused||Tr(b)&&!_&&!this.composing||h.isReadOnly()||h.options.disableInput||h.state.keySeq)return!1;var E=b.value;if(E==_&&!h.somethingSelected())return!1;if(f&&g>=9&&this.hasSelection===E||ce&&/[\uf700-\uf7ff]/.test(E))return h.display.input.reset(),!1;if(h.doc.sel==h.display.selForContextMenu){var U=E.charCodeAt(0);if(U==8203&&!_&&(_="​"),U==8666)return this.reset(),this.cm.execCommand("undo")}for(var Y=0,J=Math.min(_.length,E.length);Y1e3||E.indexOf(` `)>-1?b.value=A.prevInput="":A.prevInput=E,A.composing&&(A.composing.range.clear(),A.composing.range=h.markText(A.composing.start,h.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ua.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ua.prototype.onKeyPress=function(){f&&g>=9&&(this.hasSelection=null),this.fastPoll()},Ua.prototype.onContextMenu=function(A){var h=this,b=h.cm,_=b.display,E=h.textarea;h.contextMenuPending&&h.contextMenuPending();var U=Al(b,A),Y=_.scroller.scrollTop;if(!U||R)return;var J=b.options.resetSelectionOnContextMenu;J&&b.doc.sel.contains(U)==-1&&uo(b,ji)(b.doc,Qe(U),wt);var se=E.style.cssText,pe=h.wrapper.style.cssText,We=h.wrapper.offsetParent.getBoundingClientRect();h.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(A.clientY-We.top-5)+"px; left: "+(A.clientX-We.left-5)+`px; z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Ye;x&&(Ye=E.ownerDocument.defaultView.scrollY),_.input.focus(),x&&E.ownerDocument.defaultView.scrollTo(null,Ye),_.input.reset(),b.somethingSelected()||(E.value=h.prevInput=" "),h.contextMenuPending=yt,_.selForContextMenu=b.doc.sel,clearTimeout(_.detectingSelectAll);function Mt(){if(E.selectionStart!=null){var Zt=b.somethingSelected(),Bn="​"+(Zt?E.value:"");E.value="⇚",E.value=Bn,h.prevInput=Zt?"":"​",E.selectionStart=1,E.selectionEnd=Bn.length,_.selForContextMenu=b.doc.sel}}function yt(){if(h.contextMenuPending==yt&&(h.contextMenuPending=!1,h.wrapper.style.cssText=pe,E.style.cssText=se,f&&g<9&&_.scrollbars.setScrollTop(_.scroller.scrollTop=Y),E.selectionStart!=null)){(!f||f&&g<9)&&Mt();var Zt=0,Bn=function(){_.selForContextMenu==b.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&h.prevInput=="​"?uo(b,Wo)(b):Zt++<10?_.detectingSelectAll=setTimeout(Bn,500):(_.selForContextMenu=null,_.input.reset())};_.detectingSelectAll=setTimeout(Bn,200)}}if(f&&g>=9&&Mt(),Ne){ht(A);var qt=function(){Gn(window,"mouseup",qt),setTimeout(yt,20)};un(window,"mouseup",qt)}else setTimeout(yt,50)},Ua.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},Ua.prototype.setUneditable=function(){},Ua.prototype.needsContentAttribute=!1;function L1(A,h){if(h=h?Se(h):{},h.value=A.value,!h.tabindex&&A.tabIndex&&(h.tabindex=A.tabIndex),!h.placeholder&&A.placeholder&&(h.placeholder=A.placeholder),h.autofocus==null){var b=Nt(dt(A));h.autofocus=b==A||A.getAttribute("autofocus")!=null&&b==document.body}function _(){A.value=J.getValue()}var E;if(A.form&&(un(A.form,"submit",_),!h.leaveSubmitMethodAlone)){var U=A.form;E=U.submit;try{var Y=U.submit=function(){_(),U.submit=E,U.submit(),U.submit=Y}}catch{}}h.finishInit=function(se){se.save=_,se.getTextArea=function(){return A},se.toTextArea=function(){se.toTextArea=isNaN,_(),A.parentNode.removeChild(se.getWrapperElement()),A.style.display="",A.form&&(Gn(A.form,"submit",_),!h.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=E))}},A.style.display="none";var J=qi(function(se){return A.parentNode.insertBefore(se,A.nextSibling)},h);return J}function ov(A){A.off=Gn,A.on=un,A.wheelEventPixels=Ae,A.Doc=Js,A.splitLines=qn,A.countColumn=de,A.findColumn=zn,A.isWordChar=vi,A.Pass=Xe,A.signal=Zn,A.Line=Su,A.changeEnd=Le,A.scrollbarModel=Oo,A.Pos=Ot,A.cmpPos=En,A.modes=Zr,A.mimeModes=Cr,A.resolveMode=Io,A.getMode=Ci,A.modeExtensions=so,A.extendMode=Yo,A.copyState=ba,A.startState=Ai,A.innerMode=Ql,A.commands=Ff,A.keyMap=kA,A.keyName=Yd,A.isModifierKey=Tp,A.lookupKey=pu,A.normalizeKeyMap=fu,A.StringStream=Mi,A.SharedTextMarker=Qd,A.TextMarker=Zl,A.LineWidget=nd,A.e_preventDefault=Te,A.e_stopPropagation=at,A.e_stop=ht,A.addClass=Ve,A.contains=Jt,A.rmClass=ct,A.keyNames=qa}FA(qi),ud(qi);var z1="iter insert remove copy getEditor constructor".split(" ");for(var Qf in Js.prototype)Js.prototype.hasOwnProperty(Qf)&&Pe(z1,Qf)<0&&(qi.prototype[Qf]=function(A){return function(){return A.apply(this.doc,arguments)}}(Js.prototype[Qf]));return Ee(Js),qi.inputStyles={textarea:Ua,contenteditable:Co},qi.defineMode=function(A){!qi.defaults.mode&&A!="null"&&(qi.defaults.mode=A),ui.apply(this,arguments)},qi.defineMIME=Ii,qi.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),qi.defineMIME("text/plain","null"),qi.defineExtension=function(A,h){qi.prototype[A]=h},qi.defineDocExtension=function(A,h){Js.prototype[A]=h},qi.fromTextArea=L1,ov(qi),qi.version="5.65.16",qi})}(YM)),YM.exports}var tpe=F5();const Kc=ga(tpe);(function(e,n){(function(t){t(F5())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,s=i.statementIndent,a=i.jsonld,f=i.json||a,g=i.trackScope!==!1,x=i.typescript,k=i.wordCharacters||/[\w$\xa1-\uffff]/,B=function(){function ve(Lr){return{type:Lr,style:"keyword"}}var Ge=ve("keyword a"),Ht=ve("keyword b"),mn=ve("keyword c"),Ot=ve("keyword d"),En=ve("operator"),zr={type:"atom",style:"atom"};return{if:ve("if"),while:Ge,with:Ge,else:Ht,do:Ht,try:Ht,finally:Ht,return:Ot,break:Ot,continue:Ot,new:ve("new"),delete:mn,void:mn,throw:mn,debugger:ve("debugger"),var:ve("var"),const:ve("var"),let:ve("var"),function:ve("function"),catch:ve("catch"),for:ve("for"),switch:ve("switch"),case:ve("case"),default:ve("default"),in:En,typeof:En,instanceof:En,true:zr,false:zr,null:zr,undefined:zr,NaN:zr,Infinity:zr,this:ve("this"),class:ve("class"),super:ve("atom"),yield:mn,export:ve("export"),import:ve("import"),extends:mn,await:mn}}(),P=/[+\-*&%=<>!?|~^@]/,R=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function H(ve){for(var Ge=!1,Ht,mn=!1;(Ht=ve.next())!=null;){if(!Ge){if(Ht=="/"&&!mn)return;Ht=="["?mn=!0:mn&&Ht=="]"&&(mn=!1)}Ge=!Ge&&Ht=="\\"}}var W,$;function q(ve,Ge,Ht){return W=ve,$=Ht,Ge}function oe(ve,Ge){var Ht=ve.next();if(Ht=='"'||Ht=="'")return Ge.tokenize=ne(Ht),Ge.tokenize(ve,Ge);if(Ht=="."&&ve.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return q("number","number");if(Ht=="."&&ve.match(".."))return q("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ht))return q(Ht);if(Ht=="="&&ve.eat(">"))return q("=>","operator");if(Ht=="0"&&ve.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return q("number","number");if(/\d/.test(Ht))return ve.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),q("number","number");if(Ht=="/")return ve.eat("*")?(Ge.tokenize=ce,ce(ve,Ge)):ve.eat("/")?(ve.skipToEnd(),q("comment","comment")):la(ve,Ge,1)?(H(ve),ve.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),q("regexp","string-2")):(ve.eat("="),q("operator","operator",ve.current()));if(Ht=="`")return Ge.tokenize=ae,ae(ve,Ge);if(Ht=="#"&&ve.peek()=="!")return ve.skipToEnd(),q("meta","meta");if(Ht=="#"&&ve.eatWhile(k))return q("variable","property");if(Ht=="<"&&ve.match("!--")||Ht=="-"&&ve.match("->")&&!/\S/.test(ve.string.slice(0,ve.start)))return ve.skipToEnd(),q("comment","comment");if(P.test(Ht))return(Ht!=">"||!Ge.lexical||Ge.lexical.type!=">")&&(ve.eat("=")?(Ht=="!"||Ht=="=")&&ve.eat("="):/[<>*+\-|&?]/.test(Ht)&&(ve.eat(Ht),Ht==">"&&ve.eat(Ht))),Ht=="?"&&ve.eat(".")?q("."):q("operator","operator",ve.current());if(k.test(Ht)){ve.eatWhile(k);var mn=ve.current();if(Ge.lastType!="."){if(B.propertyIsEnumerable(mn)){var Ot=B[mn];return q(Ot.type,Ot.style,mn)}if(mn=="async"&&ve.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return q("async","keyword",mn)}return q("variable","variable",mn)}}function ne(ve){return function(Ge,Ht){var mn=!1,Ot;if(a&&Ge.peek()=="@"&&Ge.match(R))return Ht.tokenize=oe,q("jsonld-keyword","meta");for(;(Ot=Ge.next())!=null&&!(Ot==ve&&!mn);)mn=!mn&&Ot=="\\";return mn||(Ht.tokenize=oe),q("string","string")}}function ce(ve,Ge){for(var Ht=!1,mn;mn=ve.next();){if(mn=="/"&&Ht){Ge.tokenize=oe;break}Ht=mn=="*"}return q("comment","comment")}function ae(ve,Ge){for(var Ht=!1,mn;(mn=ve.next())!=null;){if(!Ht&&(mn=="`"||mn=="$"&&ve.eat("{"))){Ge.tokenize=oe;break}Ht=!Ht&&mn=="\\"}return q("quasi","string-2",ve.current())}var ue="([{}])";function ye(ve,Ge){Ge.fatArrowAt&&(Ge.fatArrowAt=null);var Ht=ve.string.indexOf("=>",ve.start);if(!(Ht<0)){if(x){var mn=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(ve.string.slice(ve.start,Ht));mn&&(Ht=mn.index)}for(var Ot=0,En=!1,zr=Ht-1;zr>=0;--zr){var Lr=ve.string.charAt(zr),Ti=ue.indexOf(Lr);if(Ti>=0&&Ti<3){if(!Ot){++zr;break}if(--Ot==0){Lr=="("&&(En=!0);break}}else if(Ti>=3&&Ti<6)++Ot;else if(k.test(Lr))En=!0;else if(/["'\/`]/.test(Lr))for(;;--zr){if(zr==0)return;var po=ve.string.charAt(zr-1);if(po==Lr&&ve.string.charAt(zr-2)!="\\"){zr--;break}}else if(En&&!Ot){++zr;break}}En&&!Ot&&(Ge.fatArrowAt=zr)}}var Re={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Ne(ve,Ge,Ht,mn,Ot,En){this.indented=ve,this.column=Ge,this.type=Ht,this.prev=Ot,this.info=En,mn!=null&&(this.align=mn)}function rt(ve,Ge){if(!g)return!1;for(var Ht=ve.localVars;Ht;Ht=Ht.next)if(Ht.name==Ge)return!0;for(var mn=ve.context;mn;mn=mn.prev)for(var Ht=mn.vars;Ht;Ht=Ht.next)if(Ht.name==Ge)return!0}function ct(ve,Ge,Ht,mn,Ot){var En=ve.cc;for(Fe.state=ve,Fe.stream=Ot,Fe.marked=null,Fe.cc=En,Fe.style=Ge,ve.lexical.hasOwnProperty("align")||(ve.lexical.align=!0);;){var zr=En.length?En.pop():f?Pe:de;if(zr(Ht,mn)){for(;En.length&&En[En.length-1].lex;)En.pop()();return Fe.marked?Fe.marked:Ht=="variable"&&rt(ve,mn)?"variable-2":Ge}}}var Fe={state:null,column:null,marked:null,cc:null};function He(){for(var ve=arguments.length-1;ve>=0;ve--)Fe.cc.push(arguments[ve])}function Ce(){return He.apply(null,arguments),!0}function jt(ve,Ge){for(var Ht=Ge;Ht;Ht=Ht.next)if(Ht.name==ve)return!0;return!1}function Ft(ve){var Ge=Fe.state;if(Fe.marked="def",!!g){if(Ge.context){if(Ge.lexical.info=="var"&&Ge.context&&Ge.context.block){var Ht=Jt(ve,Ge.context);if(Ht!=null){Ge.context=Ht;return}}else if(!jt(ve,Ge.localVars)){Ge.localVars=new nt(ve,Ge.localVars);return}}i.globalVars&&!jt(ve,Ge.globalVars)&&(Ge.globalVars=new nt(ve,Ge.globalVars))}}function Jt(ve,Ge){if(Ge)if(Ge.block){var Ht=Jt(ve,Ge.prev);return Ht?Ht==Ge.prev?Ge:new Ve(Ht,Ge.vars,!0):null}else return jt(ve,Ge.vars)?Ge:new Ve(Ge.prev,new nt(ve,Ge.vars),!1);else return null}function Nt(ve){return ve=="public"||ve=="private"||ve=="protected"||ve=="abstract"||ve=="readonly"}function Ve(ve,Ge,Ht){this.prev=ve,this.vars=Ge,this.block=Ht}function nt(ve,Ge){this.name=ve,this.next=Ge}var Je=new nt("this",new nt("arguments",null));function Vt(){Fe.state.context=new Ve(Fe.state.context,Fe.state.localVars,!1),Fe.state.localVars=Je}function pt(){Fe.state.context=new Ve(Fe.state.context,Fe.state.localVars,!0),Fe.state.localVars=null}Vt.lex=pt.lex=!0;function dt(){Fe.state.localVars=Fe.state.context.vars,Fe.state.context=Fe.state.context.prev}dt.lex=!0;function kt(ve,Ge){var Ht=function(){var mn=Fe.state,Ot=mn.indented;if(mn.lexical.type=="stat")Ot=mn.lexical.indented;else for(var En=mn.lexical;En&&En.type==")"&&En.align;En=En.prev)Ot=En.indented;mn.lexical=new Ne(Ot,Fe.stream.column(),ve,null,mn.lexical,Ge)};return Ht.lex=!0,Ht}function Dt(){var ve=Fe.state;ve.lexical.prev&&(ve.lexical.type==")"&&(ve.indented=ve.lexical.indented),ve.lexical=ve.lexical.prev)}Dt.lex=!0;function Se(ve){function Ge(Ht){return Ht==ve?Ce():ve==";"||Ht=="}"||Ht==")"||Ht=="]"?He():Ce(Ge)}return Ge}function de(ve,Ge){return ve=="var"?Ce(kt("vardef",Ge),at,Se(";"),Dt):ve=="keyword a"?Ce(kt("form"),Xe,de,Dt):ve=="keyword b"?Ce(kt("form"),de,Dt):ve=="keyword d"?Fe.stream.match(/^\s*$/,!1)?Ce():Ce(kt("stat"),Kt,Se(";"),Dt):ve=="debugger"?Ce(Se(";")):ve=="{"?Ce(kt("}"),pt,bt,Dt,dt):ve==";"?Ce():ve=="if"?(Fe.state.lexical.info=="else"&&Fe.state.cc[Fe.state.cc.length-1]==Dt&&Fe.state.cc.pop()(),Ce(kt("form"),Xe,de,Dt,Gt)):ve=="function"?Ce(qn):ve=="for"?Ce(kt("form"),pt,$t,de,dt,Dt):ve=="class"||x&&Ge=="interface"?(Fe.marked="keyword",Ce(kt("form",ve=="class"?ve:Ge),Zr,Dt)):ve=="variable"?x&&Ge=="declare"?(Fe.marked="keyword",Ce(de)):x&&(Ge=="module"||Ge=="enum"||Ge=="type")&&Fe.stream.match(/^\s*\w/,!1)?(Fe.marked="keyword",Ge=="enum"?Ce(rr):Ge=="type"?Ce(vr,Se("operator"),on,Se(";")):Ce(kt("form"),it,Se("{"),kt("}"),bt,Dt,Dt)):x&&Ge=="namespace"?(Fe.marked="keyword",Ce(kt("form"),Pe,de,Dt)):x&&Ge=="abstract"?(Fe.marked="keyword",Ce(de)):Ce(kt("stat"),_r):ve=="switch"?Ce(kt("form"),Xe,Se("{"),kt("}","switch"),pt,bt,Dt,Dt,dt):ve=="case"?Ce(Pe,Se(":")):ve=="default"?Ce(Se(":")):ve=="catch"?Ce(kt("form"),Vt,xe,de,Dt,dt):ve=="export"?Ce(kt("stat"),Io,Dt):ve=="import"?Ce(kt("stat"),so,Dt):ve=="async"?Ce(de):Ge=="@"?Ce(Pe,de):He(kt("stat"),Pe,Se(";"),Dt)}function xe(ve){if(ve=="(")return Ce(Dr,Se(")"))}function Pe(ve,Ge){return wt(ve,Ge,!1)}function Ze(ve,Ge){return wt(ve,Ge,!0)}function Xe(ve){return ve!="("?He():Ce(kt(")"),Kt,Se(")"),Dt)}function wt(ve,Ge,Ht){if(Fe.state.fatArrowAt==Fe.stream.start){var mn=Ht?Sn:ir;if(ve=="(")return Ce(Vt,kt(")"),me(Dr,")"),Dt,Se("=>"),mn,dt);if(ve=="variable")return He(Vt,it,Se("=>"),mn,dt)}var Ot=Ht?zn:Pt;return Re.hasOwnProperty(ve)?Ce(Ot):ve=="function"?Ce(qn,Ot):ve=="class"||x&&Ge=="interface"?(Fe.marked="keyword",Ce(kt("form"),Yr,Dt)):ve=="keyword c"||ve=="async"?Ce(Ht?Ze:Pe):ve=="("?Ce(kt(")"),Kt,Se(")"),Dt,Ot):ve=="operator"||ve=="spread"?Ce(Ht?Ze:Pe):ve=="["?Ce(kt("]"),Mi,Dt,Ot):ve=="{"?At(we,"}",null,Ot):ve=="quasi"?He(mt,Ot):ve=="new"?Ce(nr(Ht)):Ce()}function Kt(ve){return ve.match(/[;\}\)\],]/)?He():He(Pe)}function Pt(ve,Ge){return ve==","?Ce(Kt):zn(ve,Ge,!1)}function zn(ve,Ge,Ht){var mn=Ht==!1?Pt:zn,Ot=Ht==!1?Pe:Ze;if(ve=="=>")return Ce(Vt,Ht?Sn:ir,dt);if(ve=="operator")return/\+\+|--/.test(Ge)||x&&Ge=="!"?Ce(mn):x&&Ge=="<"&&Fe.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?Ce(kt(">"),me(on,">"),Dt,mn):Ge=="?"?Ce(Pe,Se(":"),Ot):Ce(Ot);if(ve=="quasi")return He(mt,mn);if(ve!=";"){if(ve=="(")return At(Ze,")","call",mn);if(ve==".")return Ce(vi,mn);if(ve=="[")return Ce(kt("]"),Kt,Se("]"),Dt,mn);if(x&&Ge=="as")return Fe.marked="keyword",Ce(on,mn);if(ve=="regexp")return Fe.state.lastType=Fe.marked="operator",Fe.stream.backUp(Fe.stream.pos-Fe.stream.start-1),Ce(Ot)}}function mt(ve,Ge){return ve!="quasi"?He():Ge.slice(Ge.length-2)!="${"?Ce(mt):Ce(Kt,pn)}function pn(ve){if(ve=="}")return Fe.marked="string-2",Fe.state.tokenize=ae,Ce(mt)}function ir(ve){return ye(Fe.stream,Fe.state),He(ve=="{"?de:Pe)}function Sn(ve){return ye(Fe.stream,Fe.state),He(ve=="{"?de:Ze)}function nr(ve){return function(Ge){return Ge=="."?Ce(ve?Qr:Mr):Ge=="variable"&&x?Ce(_e,ve?zn:Pt):He(ve?Ze:Pe)}}function Mr(ve,Ge){if(Ge=="target")return Fe.marked="keyword",Ce(Pt)}function Qr(ve,Ge){if(Ge=="target")return Fe.marked="keyword",Ce(zn)}function _r(ve){return ve==":"?Ce(Dt,de):He(Pt,Se(";"),Dt)}function vi(ve){if(ve=="variable")return Fe.marked="property",Ce()}function we(ve,Ge){if(ve=="async")return Fe.marked="property",Ce(we);if(ve=="variable"||Fe.style=="keyword"){if(Fe.marked="property",Ge=="get"||Ge=="set")return Ce(V);var Ht;return x&&Fe.state.fatArrowAt==Fe.stream.start&&(Ht=Fe.stream.match(/^\s*:\s*/,!1))&&(Fe.state.fatArrowAt=Fe.stream.pos+Ht[0].length),Ce(X)}else{if(ve=="number"||ve=="string")return Fe.marked=a?"property":Fe.style+" property",Ce(X);if(ve=="jsonld-keyword")return Ce(X);if(x&&Nt(Ge))return Fe.marked="keyword",Ce(we);if(ve=="[")return Ce(Pe,Et,Se("]"),X);if(ve=="spread")return Ce(Ze,X);if(Ge=="*")return Fe.marked="keyword",Ce(we);if(ve==":")return He(X)}}function V(ve){return ve!="variable"?He(X):(Fe.marked="property",Ce(qn))}function X(ve){if(ve==":")return Ce(Ze);if(ve=="(")return He(qn)}function me(ve,Ge,Ht){function mn(Ot,En){if(Ht?Ht.indexOf(Ot)>-1:Ot==","){var zr=Fe.state.lexical;return zr.info=="call"&&(zr.pos=(zr.pos||0)+1),Ce(function(Lr,Ti){return Lr==Ge||Ti==Ge?He():He(ve)},mn)}return Ot==Ge||En==Ge?Ce():Ht&&Ht.indexOf(";")>-1?He(ve):Ce(Se(Ge))}return function(Ot,En){return Ot==Ge||En==Ge?Ce():He(ve,mn)}}function At(ve,Ge,Ht){for(var mn=3;mn"),on);if(ve=="quasi")return He(Gn,fe)}function m(ve){if(ve=="=>")return Ce(on)}function un(ve){return ve.match(/[\}\)\]]/)?Ce():ve==","||ve==";"?Ce(un):He(In,un)}function In(ve,Ge){if(ve=="variable"||Fe.style=="keyword")return Fe.marked="property",Ce(In);if(Ge=="?"||ve=="number"||ve=="string")return Ce(In);if(ve==":")return Ce(on);if(ve=="[")return Ce(Se("variable"),sr,Se("]"),In);if(ve=="(")return He(Tr,In);if(!ve.match(/[;\}\)\],]/))return Ce()}function Gn(ve,Ge){return ve!="quasi"?He():Ge.slice(Ge.length-2)!="${"?Ce(Gn):Ce(on,Zn)}function Zn(ve){if(ve=="}")return Fe.marked="string-2",Fe.state.tokenize=ae,Ce(Gn)}function Ke(ve,Ge){return ve=="variable"&&Fe.stream.match(/^\s*[?:]/,!1)||Ge=="?"?Ce(Ke):ve==":"?Ce(on):ve=="spread"?Ce(Ke):He(on)}function fe(ve,Ge){if(Ge=="<")return Ce(kt(">"),me(on,">"),Dt,fe);if(Ge=="|"||ve=="."||Ge=="&")return Ce(on);if(ve=="[")return Ce(on,Se("]"),fe);if(Ge=="extends"||Ge=="implements")return Fe.marked="keyword",Ce(on);if(Ge=="?")return Ce(on,Se(":"),on)}function _e(ve,Ge){if(Ge=="<")return Ce(kt(">"),me(on,">"),Dt,fe)}function Ee(){return He(on,Te)}function Te(ve,Ge){if(Ge=="=")return Ce(on)}function at(ve,Ge){return Ge=="enum"?(Fe.marked="keyword",Ce(rr)):He(it,Et,Ct,rn)}function it(ve,Ge){if(x&&Nt(Ge))return Fe.marked="keyword",Ce(it);if(ve=="variable")return Ft(Ge),Ce();if(ve=="spread")return Ce(it);if(ve=="[")return At(et,"]");if(ve=="{")return At(ht,"}")}function ht(ve,Ge){return ve=="variable"&&!Fe.stream.match(/^\s*:/,!1)?(Ft(Ge),Ce(Ct)):(ve=="variable"&&(Fe.marked="property"),ve=="spread"?Ce(it):ve=="}"?He():ve=="["?Ce(Pe,Se("]"),Se(":"),ht):Ce(Se(":"),it,Ct))}function et(){return He(it,Ct)}function Ct(ve,Ge){if(Ge=="=")return Ce(Ze)}function rn(ve){if(ve==",")return Ce(at)}function Gt(ve,Ge){if(ve=="keyword b"&&Ge=="else")return Ce(kt("form","else"),de,Dt)}function $t(ve,Ge){if(Ge=="await")return Ce($t);if(ve=="(")return Ce(kt(")"),gn,Dt)}function gn(ve){return ve=="var"?Ce(at,Jn):ve=="variable"?Ce(Jn):He(Jn)}function Jn(ve,Ge){return ve==")"?Ce():ve==";"?Ce(Jn):Ge=="in"||Ge=="of"?(Fe.marked="keyword",Ce(Pe,Jn)):He(Pe,Jn)}function qn(ve,Ge){if(Ge=="*")return Fe.marked="keyword",Ce(qn);if(ve=="variable")return Ft(Ge),Ce(qn);if(ve=="(")return Ce(Vt,kt(")"),me(Dr,")"),Dt,Lt,de,dt);if(x&&Ge=="<")return Ce(kt(">"),me(Ee,">"),Dt,qn)}function Tr(ve,Ge){if(Ge=="*")return Fe.marked="keyword",Ce(Tr);if(ve=="variable")return Ft(Ge),Ce(Tr);if(ve=="(")return Ce(Vt,kt(")"),me(Dr,")"),Dt,Lt,dt);if(x&&Ge=="<")return Ce(kt(">"),me(Ee,">"),Dt,Tr)}function vr(ve,Ge){if(ve=="keyword"||ve=="variable")return Fe.marked="type",Ce(vr);if(Ge=="<")return Ce(kt(">"),me(Ee,">"),Dt)}function Dr(ve,Ge){return Ge=="@"&&Ce(Pe,Dr),ve=="spread"?Ce(Dr):x&&Nt(Ge)?(Fe.marked="keyword",Ce(Dr)):x&&ve=="this"?Ce(Et,Ct):He(it,Et,Ct)}function Yr(ve,Ge){return ve=="variable"?Zr(ve,Ge):Cr(ve,Ge)}function Zr(ve,Ge){if(ve=="variable")return Ft(Ge),Ce(Cr)}function Cr(ve,Ge){if(Ge=="<")return Ce(kt(">"),me(Ee,">"),Dt,Cr);if(Ge=="extends"||Ge=="implements"||x&&ve==",")return Ge=="implements"&&(Fe.marked="keyword"),Ce(x?on:Pe,Cr);if(ve=="{")return Ce(kt("}"),ui,Dt)}function ui(ve,Ge){if(ve=="async"||ve=="variable"&&(Ge=="static"||Ge=="get"||Ge=="set"||x&&Nt(Ge))&&Fe.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return Fe.marked="keyword",Ce(ui);if(ve=="variable"||Fe.style=="keyword")return Fe.marked="property",Ce(Ii,ui);if(ve=="number"||ve=="string")return Ce(Ii,ui);if(ve=="[")return Ce(Pe,Et,Se("]"),Ii,ui);if(Ge=="*")return Fe.marked="keyword",Ce(ui);if(x&&ve=="(")return He(Tr,ui);if(ve==";"||ve==",")return Ce(ui);if(ve=="}")return Ce();if(Ge=="@")return Ce(Pe,ui)}function Ii(ve,Ge){if(Ge=="!"||Ge=="?")return Ce(Ii);if(ve==":")return Ce(on,Ct);if(Ge=="=")return Ce(Ze);var Ht=Fe.state.lexical.prev,mn=Ht&&Ht.info=="interface";return He(mn?Tr:qn)}function Io(ve,Ge){return Ge=="*"?(Fe.marked="keyword",Ce(Ai,Se(";"))):Ge=="default"?(Fe.marked="keyword",Ce(Pe,Se(";"))):ve=="{"?Ce(me(Ci,"}"),Ai,Se(";")):He(de)}function Ci(ve,Ge){if(Ge=="as")return Fe.marked="keyword",Ce(Se("variable"));if(ve=="variable")return He(Ze,Ci)}function so(ve){return ve=="string"?Ce():ve=="("?He(Pe):ve=="."?He(Pt):He(Yo,ba,Ai)}function Yo(ve,Ge){return ve=="{"?At(Yo,"}"):(ve=="variable"&&Ft(Ge),Ge=="*"&&(Fe.marked="keyword"),Ce(Ql))}function ba(ve){if(ve==",")return Ce(Yo,ba)}function Ql(ve,Ge){if(Ge=="as")return Fe.marked="keyword",Ce(Yo)}function Ai(ve,Ge){if(Ge=="from")return Fe.marked="keyword",Ce(Pe)}function Mi(ve){return ve=="]"?Ce():He(me(Ze,"]"))}function rr(){return He(kt("form"),it,Se("{"),kt("}"),me(lo,"}"),Dt,Dt)}function lo(){return He(it,Ct)}function Gi(ve,Ge){return ve.lastType=="operator"||ve.lastType==","||P.test(Ge.charAt(0))||/[,.]/.test(Ge.charAt(0))}function la(ve,Ge,Ht){return Ge.tokenize==oe&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Ge.lastType)||Ge.lastType=="quasi"&&/\{\s*$/.test(ve.string.slice(0,ve.pos-(Ht||0)))}return{startState:function(ve){var Ge={tokenize:oe,lastType:"sof",cc:[],lexical:new Ne((ve||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Ve(null,null,!1),indented:ve||0};return i.globalVars&&typeof i.globalVars=="object"&&(Ge.globalVars=i.globalVars),Ge},token:function(ve,Ge){if(ve.sol()&&(Ge.lexical.hasOwnProperty("align")||(Ge.lexical.align=!1),Ge.indented=ve.indentation(),ye(ve,Ge)),Ge.tokenize!=ce&&ve.eatSpace())return null;var Ht=Ge.tokenize(ve,Ge);return W=="comment"?Ht:(Ge.lastType=W=="operator"&&($=="++"||$=="--")?"incdec":W,ct(Ge,Ht,W,$,ve))},indent:function(ve,Ge){if(ve.tokenize==ce||ve.tokenize==ae)return t.Pass;if(ve.tokenize!=oe)return 0;var Ht=Ge&&Ge.charAt(0),mn=ve.lexical,Ot;if(!/^\s*else\b/.test(Ge))for(var En=ve.cc.length-1;En>=0;--En){var zr=ve.cc[En];if(zr==Dt)mn=mn.prev;else if(zr!=Gt&&zr!=dt)break}for(;(mn.type=="stat"||mn.type=="form")&&(Ht=="}"||(Ot=ve.cc[ve.cc.length-1])&&(Ot==Pt||Ot==zn)&&!/^[,\.=+\-*:?[\(]/.test(Ge));)mn=mn.prev;s&&mn.type==")"&&mn.prev.type=="stat"&&(mn=mn.prev);var Lr=mn.type,Ti=Ht==Lr;return Lr=="vardef"?mn.indented+(ve.lastType=="operator"||ve.lastType==","?mn.info.length+1:0):Lr=="form"&&Ht=="{"?mn.indented:Lr=="form"?mn.indented+o:Lr=="stat"?mn.indented+(Gi(ve,Ge)?s||o:0):mn.info=="switch"&&!Ti&&i.doubleIndentSwitch!=!1?mn.indented+(/^(?:case|default)\b/.test(Ge)?o:2*o):mn.align?mn.column+(Ti?0:1):mn.indented+(Ti?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:f?null:"/*",blockCommentEnd:f?null:"*/",blockCommentContinue:f?null:" * ",lineComment:f?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:f?"json":"javascript",jsonldMode:a,jsonMode:f,expressionAllowed:la,skipExpression:function(ve){ct(ve,"atom","atom","true",new t.StringStream("",2,null))}}}),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();(function(e,n){(function(t){t(F5())})(function(t){var r="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(ue,ye,Re){var Ne=document.createElement("div");Ne.className="CodeMirror-lint-tooltip cm-s-"+ue.options.theme,Ne.appendChild(Re.cloneNode(!0)),ue.state.lint.options.selfContain?ue.getWrapperElement().appendChild(Ne):document.body.appendChild(Ne);function rt(ct){if(!Ne.parentNode)return t.off(document,"mousemove",rt);var Fe=Math.max(0,ct.clientY-Ne.offsetHeight-5),He=Math.max(0,Math.min(ct.clientX+5,Ne.ownerDocument.defaultView.innerWidth-Ne.offsetWidth));Ne.style.top=Fe+"px",Ne.style.left=He+"px"}return t.on(document,"mousemove",rt),rt(ye),Ne.style.opacity!=null&&(Ne.style.opacity=1),Ne}function s(ue){ue.parentNode&&ue.parentNode.removeChild(ue)}function a(ue){ue.parentNode&&(ue.style.opacity==null&&s(ue),ue.style.opacity=0,setTimeout(function(){s(ue)},600))}function f(ue,ye,Re,Ne){var rt=o(ue,ye,Re);function ct(){t.off(Ne,"mouseout",ct),rt&&(a(rt),rt=null)}var Fe=setInterval(function(){if(rt)for(var He=Ne;;He=He.parentNode){if(He&&He.nodeType==11&&(He=He.host),He==document.body)return;if(!He){ct();break}}if(!rt)return clearInterval(Fe)},400);t.on(Ne,"mouseout",ct)}function g(ue,ye,Re){this.marked=[],ye instanceof Function&&(ye={getAnnotations:ye}),(!ye||ye===!0)&&(ye={}),this.options={},this.linterOptions=ye.options||{};for(var Ne in x)this.options[Ne]=x[Ne];for(var Ne in ye)x.hasOwnProperty(Ne)?ye[Ne]!=null&&(this.options[Ne]=ye[Ne]):ye.options||(this.linterOptions[Ne]=ye[Ne]);this.timeout=null,this.hasGutter=Re,this.onMouseOver=function(rt){ae(ue,rt)},this.waitingFor=0}var x={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function k(ue){var ye=ue.state.lint;ye.hasGutter&&ue.clearGutter(r),ye.options.highlightLines&&B(ue);for(var Re=0;Re1,Ne.tooltips)),Ne.highlightLines&&ue.addLineClass(ct,"wrap",i+He)}}Ne.onUpdateLinting&&Ne.onUpdateLinting(ye,rt,ue)}}function ne(ue){var ye=ue.state.lint;ye&&(clearTimeout(ye.timeout),ye.timeout=setTimeout(function(){q(ue)},ye.options.delay))}function ce(ue,ye,Re){for(var Ne=Re.target||Re.srcElement,rt=document.createDocumentFragment(),ct=0;ct",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function s(B){return B&&B.bracketRegex||/[(){}[\]]/}function a(B,P,R){var H=B.getLineHandle(P.line),W=P.ch-1,$=R&&R.afterCursor;$==null&&($=/(^| )cm-fat-cursor($| )/.test(B.getWrapperElement().className));var q=s(R),oe=!$&&W>=0&&q.test(H.text.charAt(W))&&o[H.text.charAt(W)]||q.test(H.text.charAt(W+1))&&o[H.text.charAt(++W)];if(!oe)return null;var ne=oe.charAt(1)==">"?1:-1;if(R&&R.strict&&ne>0!=(W==P.ch))return null;var ce=B.getTokenTypeAt(i(P.line,W+1)),ae=f(B,i(P.line,W+(ne>0?1:0)),ne,ce,R);return ae==null?null:{from:i(P.line,W),to:ae&&ae.pos,match:ae&&ae.ch==oe.charAt(0),forward:ne>0}}function f(B,P,R,H,W){for(var $=W&&W.maxScanLineLength||1e4,q=W&&W.maxScanLines||1e3,oe=[],ne=s(W),ce=R>0?Math.min(P.line+q,B.lastLine()+1):Math.max(B.firstLine()-1,P.line-q),ae=P.line;ae!=ce;ae+=R){var ue=B.getLine(ae);if(ue){var ye=R>0?0:ue.length-1,Re=R>0?ue.length:-1;if(!(ue.length>$))for(ae==P.line&&(ye=P.ch-(R<0?1:0));ye!=Re;ye+=R){var Ne=ue.charAt(ye);if(ne.test(Ne)&&(H===void 0||(B.getTokenTypeAt(i(ae,ye+1))||"")==(H||""))){var rt=o[Ne];if(rt&&rt.charAt(1)==">"==R>0)oe.push(Ne);else if(oe.length)oe.pop();else return{pos:i(ae,ye),ch:Ne}}}}}return ae-R==(R>0?B.lastLine():B.firstLine())?!1:null}function g(B,P,R){for(var H=B.state.matchBrackets.maxHighlightLineLength||1e3,W=R&&R.highlightNonMatching,$=[],q=B.listSelections(),oe=0;oe0)return[oe,r+B.join(`, `+$),x].join(` `+f)}return ne}(n,"",0)};const _W=ga(rpe);function ipe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bW={};(function(e){var n=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(o,s,a,f,g,x,k){var B=x.length-1;switch(g){case 1:this.$=o.replace(/\\(\\|")/g,"$1").replace(/\\n/g,` `).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(o);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=x[B-1];case 13:this.$={};break;case 14:this.$=x[B-1];break;case 15:this.$=[x[B-2],x[B]];break;case 16:this.$={},this.$[x[B][0]]=x[B][1];break;case 17:this.$=x[B-2],x[B-2][x[B][0]]=x[B][1];break;case 18:this.$=[];break;case 19:this.$=x[B-1];break;case 20:this.$=[x[B]];break;case 21:this.$=x[B-2],x[B-2].push(x[B]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(o,s){throw new Error(o)},parse:function(o){var s=this,a=[0],f=[null],g=[],x=this.table,k="",B=0,P=0,R=0,H=2,W=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var $=this.lexer.yylloc;g.push($),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function q(Ce){a.length=a.length-2*Ce,f.length=f.length-Ce,g.length=g.length-Ce}function oe(){var Ce;return Ce=s.lexer.lex()||1,typeof Ce!="number"&&(Ce=s.symbols_[Ce]||Ce),Ce}for(var ne,ce,ae,ue,ye,Re={},Ne,rt,ct,Fe;;){if(ae=a[a.length-1],this.defaultActions[ae]?ue=this.defaultActions[ae]:(ne==null&&(ne=oe()),ue=x[ae]&&x[ae][ne]),typeof ue>"u"||!ue.length||!ue[0]){if(!R){Fe=[];for(Ne in x[ae])this.terminals_[Ne]&&Ne>2&&Fe.push("'"+this.terminals_[Ne]+"'");var He="";this.lexer.showPosition?He="Parse error on line "+(B+1)+`: `+this.lexer.showPosition()+` Expecting `+Fe.join(", ")+", got '"+this.terminals_[ne]+"'":He="Parse error on line "+(B+1)+": Unexpected "+(ne==1?"end of input":"'"+(this.terminals_[ne]||ne)+"'"),this.parseError(He,{text:this.lexer.match,token:this.terminals_[ne]||ne,line:this.lexer.yylineno,loc:$,expected:Fe})}if(R==3){if(ne==W)throw new Error(He||"Parsing halted.");P=this.lexer.yyleng,k=this.lexer.yytext,B=this.lexer.yylineno,$=this.lexer.yylloc,ne=oe()}for(;!(H.toString()in x[ae]);){if(ae==0)throw new Error(He||"Parsing halted.");q(1),ae=a[a.length-1]}ce=ne,ne=H,ae=a[a.length-1],ue=x[ae]&&x[ae][H],R=3}if(ue[0]instanceof Array&&ue.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+ne);switch(ue[0]){case 1:a.push(ne),f.push(this.lexer.yytext),g.push(this.lexer.yylloc),a.push(ue[1]),ne=null,ce?(ne=ce,ce=null):(P=this.lexer.yyleng,k=this.lexer.yytext,B=this.lexer.yylineno,$=this.lexer.yylloc,R>0&&R--);break;case 2:if(rt=this.productions_[ue[1]][1],Re.$=f[f.length-rt],Re._$={first_line:g[g.length-(rt||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(rt||1)].first_column,last_column:g[g.length-1].last_column},ye=this.performAction.call(Re,k,P,B,this.yy,ue[1],f,g),typeof ye<"u")return ye;rt&&(a=a.slice(0,-1*rt*2),f=f.slice(0,-1*rt),g=g.slice(0,-1*rt)),a.push(this.productions_[ue[1]][0]),f.push(Re.$),g.push(Re._$),ct=x[a[a.length-2]][a[a.length-1]],a.push(ct);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(s,a){if(this.yy.parseError)this.yy.parseError(s,a);else throw new Error(s)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var s=o.match(/\n/);return s&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+` `+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,a,f,g;this._more||(this.yytext="",this.match="");for(var x=this._currentRules(),k=0;ks[0].length)&&(s=a,f=k,!this.options.flex)));k++);if(s)return g=s[0].match(/\n.*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-1:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,x[f],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. `+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,a,f,g){switch(f){case 0:break;case 1:return 6;case 2:return a.yytext=a.yytext.substr(1,a.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof ipe<"u"&&(e.parser=n,e.parse=n.parse.bind(n))})(bW);const WE=ga(bW);var xW={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(mf,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(de,xe){return xe={exports:{}},de(xe,xe.exports),xe.exports}var i=r(function(de){function xe(){var Pe=0,Ze=1,Xe=2,wt=3,Kt=4,Pt=5,zn=6,mt=7,pn=8,ir=9,Sn=10,nr=11,Mr=12,Qr=13,_r=14,vi=15,we=16,V=17,X=0,me=1,At=2,bt=3,Et=4;function sr(m,un){return 55296<=m.charCodeAt(un)&&m.charCodeAt(un)<=56319&&56320<=m.charCodeAt(un+1)&&m.charCodeAt(un+1)<=57343}function Lt(m,un){un===void 0&&(un=0);var In=m.charCodeAt(un);if(55296<=In&&In<=56319&&un=1){var Gn=m.charCodeAt(un-1),Zn=In;return 55296<=Gn&&Gn<=56319?(Gn-55296)*1024+(Zn-56320)+65536:Zn}return In}function Fn(m,un,In){var Gn=[m].concat(un).concat([In]),Zn=Gn[Gn.length-2],Ke=In,fe=Gn.lastIndexOf(_r);if(fe>1&&Gn.slice(1,fe).every(function(Te){return Te==wt})&&[wt,Qr,V].indexOf(m)==-1)return At;var _e=Gn.lastIndexOf(Kt);if(_e>0&&Gn.slice(1,_e).every(function(Te){return Te==Kt})&&[Mr,Kt].indexOf(Zn)==-1)return Gn.filter(function(Te){return Te==Kt}).length%2==1?bt:Et;if(Zn==Pe&&Ke==Ze)return X;if(Zn==Xe||Zn==Pe||Zn==Ze)return Ke==_r&&un.every(function(Te){return Te==wt})?At:me;if(Ke==Xe||Ke==Pe||Ke==Ze)return me;if(Zn==zn&&(Ke==zn||Ke==mt||Ke==ir||Ke==Sn))return X;if((Zn==ir||Zn==mt)&&(Ke==mt||Ke==pn))return X;if((Zn==Sn||Zn==pn)&&Ke==pn)return X;if(Ke==wt||Ke==vi)return X;if(Ke==Pt)return X;if(Zn==Mr)return X;var Ee=Gn.indexOf(wt)!=-1?Gn.lastIndexOf(wt)-1:Gn.length-2;return[Qr,V].indexOf(Gn[Ee])!=-1&&Gn.slice(Ee+1,-1).every(function(Te){return Te==wt})&&Ke==_r||Zn==vi&&[we,V].indexOf(Ke)!=-1?X:un.indexOf(Kt)!=-1?At:Zn==Kt&&Ke==Kt?X:me}this.nextBreak=function(m,un){if(un===void 0&&(un=0),un<0)return 0;if(un>=m.length-1)return m.length;for(var In=on(Lt(m,un)),Gn=[],Zn=un+1;Zn"u")Ze=Sn,Pe="";else if(Pe.length>=Mr)return Pe.substr(0,Mr);for(;Mr>Pe.length&&nr>1;)nr&1&&(Pe+=Sn),nr>>=1,Sn+=Sn;return Pe+=Sn,Pe=Pe.substr(0,Mr),Pe}var Kt=function(nr,Mr,Qr){if(nr==null||Mr==null)return nr;var _r=String(nr),vi=typeof Mr=="number"?Mr:parseInt(Mr,10);if(isNaN(vi)||!isFinite(vi))return _r;var we=_r.length;if(we>=vi)return _r;var V=Qr==null?"":String(Qr);V===""&&(V=" ");for(var X=vi-we;V.lengthX?V.substr(0,X):V;return me+_r},Pt=Object.assign||function(Sn){for(var nr=1;nr1?Pe-1:0),Xe=1;Xe at "+Ze.filter(Boolean).join(":")}},P={unexpectedSymbol:function(xe){for(var Pe=arguments.length,Ze=Array(Pe>1?Pe-1:0),Xe=1;Xe at "+Ze.filter(Boolean).join(":")}},R={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},H={"{":R.LEFT_BRACE,"}":R.RIGHT_BRACE,"[":R.LEFT_BRACKET,"]":R.RIGHT_BRACKET,":":R.COLON,",":R.COMMA},W={true:R.TRUE,false:R.FALSE,null:R.NULL},$={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(de){return de>="1"&&de<="9"}function ce(de){return de>="0"&&de<="9"}function ae(de){return ce(de)||de>="a"&&de<="f"||de>="A"&&de<="F"}function ue(de){return de==="e"||de==="E"}function ye(de,xe,Pe,Ze){var Xe=de.charAt(xe);if(Xe==="\r")xe++,Pe++,Ze=1,de.charAt(xe)===` `&&xe++;else if(Xe===` `)xe++,Pe++,Ze=1;else if(Xe===" "||Xe===" ")xe++,Ze++;else return null;return{index:xe,line:Pe,column:Ze}}function Re(de,xe,Pe,Ze){var Xe=de.charAt(xe);return Xe in H?{type:H[Xe],line:Pe,column:Ze+1,index:xe+1,value:null}:null}function Ne(de,xe,Pe,Ze){for(var Xe in W)if(W.hasOwnProperty(Xe)&&de.substr(xe,Xe.length)===Xe)return{type:W[Xe],line:Pe,column:Ze+Xe.length,index:xe+Xe.length,value:Xe};return null}function rt(de,xe,Pe,Ze){for(var Xe=xe,wt=$._START_;xe0?{type:R.NUMBER,line:Pe,column:Ze+wt-Xe,index:wt,value:de.slice(Xe,wt)}:null}var Fe=function(xe,Pe){for(var Ze=1,Xe=1,wt=0,Kt=[];wt0?xe[xe.length-1].loc.end:{line:1,column:1};k(B.unexpectedEnd(),de,Pe.source,Ze.line,Ze.column)}function Nt(de){for(var xe=0,Pe=0;Pe<4;Pe++)xe=xe*16+parseInt(de[Pe],16);return String.fromCharCode(xe)}var Ve={b:"\b",f:"\f",n:` `,r:"\r",t:" "},nt=['"',"\\","/"];function Je(de){for(var xe="",Pe=0;Pe(Mn().f[0]++,Mn().s[1]++,Kc.modes.javascript({...e,json:!0},n)));Mn().s[2]++;Kc.registerHelper("lint","json",e=>{Mn().f[1]++;const n=(Mn().s[3]++,[]);Mn().s[4]++,WE.parser.parseError=(t,r)=>{Mn().f[2]++;const i=(Mn().s[5]++,r.loc);Mn().s[6]++,n.push({from:Kc.Pos(i.first_line-1,i.first_column),to:Kc.Pos(i.last_line-1,i.last_column),message:t})},Mn().s[7]++;try{Mn().s[8]++,WE.parse(e)}catch{}return Mn().s[9]++,n});Mn().s[10]++;Kc.registerHelper("lint","mgl",(e,n,t)=>{Mn().f[3]++;const r=(Mn().s[11]++,[]),{parser:i}=(Mn().s[12]++,WE),{context:o}=(Mn().s[13]++,n);Mn().s[14]++,i.parseError=(x,k)=>{Mn().f[4]++;const B=(Mn().s[15]++,k.loc);Mn().s[16]++,r.push({from:Kc.Pos(B.first_line-1,B.first_column),to:Kc.Pos(B.last_line-1,B.last_column),message:x})},Mn().s[17]++;try{Mn().s[18]++,i.parse(e)}catch{}if(Mn().s[19]++,r.length>0)return Mn().b[0][0]++,Mn().s[20]++,r;Mn().b[0][1]++;const s=(Mn().s[21]++,ape(e)),a=(Mn().s[22]++,JSON.parse(e));function f(x,k){if(Mn().f[5]++,Mn().s[23]++,x){if(Mn().b[1][1]++,Mn().s[25]++,k.length<1)return Mn().b[2][0]++,Mn().s[26]++,x;if(Mn().b[2][1]++,Mn().s[27]++,x.children){Mn().b[3][1]++;const B=(Mn().s[29]++,k[0]);let P;return Mn().s[30]++,B.match(/^[0-9]+$/)?(Mn().b[4][0]++,Mn().s[31]++,P=x.children[k[0]]):(Mn().b[4][1]++,Mn().s[32]++,P=x.children.find(R=>(Mn().f[6]++,Mn().s[33]++,Mn().b[5][0]++,R.key&&(Mn().b[5][1]++,R.key.type==="Identifier")&&(Mn().b[5][2]++,R.key.value===B))),Mn().s[34]++,P?(Mn().b[6][0]++,Mn().s[35]++,P=P.value):Mn().b[6][1]++),Mn().s[36]++,f(P,k.slice(1))}else{Mn().b[3][0]++,Mn().s[28]++;return}}else{Mn().b[1][0]++,Mn().s[24]++;return}}let g=(Mn().s[37]++,null);if(Mn().s[38]++,o==="layer"){Mn().b[7][0]++;const x=(Mn().s[39]++,Bd({version:8,name:"Empty Style",metadata:{},sources:{},sprite:"",glyphs:"https://example.com/glyphs/{fontstack}/{range}.pbf",layers:[a]}));Mn().s[40]++,x?(Mn().b[8][0]++,Mn().s[41]++,g={result:"error",value:x.filter(k=>(Mn().f[7]++,Mn().s[42]++,!k.message.match(/^layers\[0\]: source ".*" not found$/))).map(k=>{Mn().f[8]++;const B=(Mn().s[43]++,k.message.replace(/^layers\[0\]./,"").split(":"));return Mn().s[44]++,{name:"",key:B[0],message:B[1]}})}):Mn().b[8][1]++}else if(Mn().b[7][1]++,Mn().s[45]++,o==="expression")Mn().b[9][0]++,Mn().s[46]++,g=OX.createExpression(a,n.spec);else throw Mn().b[9][1]++,Mn().s[47]++,new Error(`Invalid context ${o}`);if(Mn().s[48]++,(g==null?void 0:g.result)==="error"){Mn().b[10][0]++;const x=(Mn().s[49]++,g.value);Mn().s[50]++,x.forEach(k=>{Mn().f[9]++;const{key:B,message:P}=(Mn().s[51]++,k);if(Mn().s[52]++,B)if(Mn().b[11][1]++,Mn().s[56]++,B){Mn().b[12][0]++;const R=(Mn().s[57]++,B.replace(/^\[|\]$/g,"").split(/\.|[[\]]+/).filter(Boolean)),H=(Mn().s[58]++,f(s,R));if(Mn().s[59]++,H)Mn().b[13][1]++;else{Mn().b[13][0]++,Mn().s[60]++,console.warn("Something went wrong parsing error:",k),Mn().s[61]++;return}const{loc:W}=(Mn().s[62]++,H),{start:$,end:q}=(Mn().s[63]++,W);Mn().s[64]++,r.push({from:Kc.Pos($.line-1,$.column),to:Kc.Pos(q.line-1,q.column),message:P})}else Mn().b[12][1]++;else{Mn().b[11][0]++;const R=(Mn().s[53]++,t.getLineHandle(t.lastLine())),H=(Mn().s[54]++,{from:Kc.Pos(t.firstLine(),0),to:Kc.Pos(t.lastLine(),R.text.length),message:P});Mn().s[55]++,r.push(H)}})}else Mn().b[10][1]++;return Mn().s[65]++,r});function Pn(){var e="/home/runner/work/maputnik/maputnik/src/components/InputJson.tsx",n="73341c4954366276bd838a194b53fa026df00a42",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputJson.tsx",statementMap:{0:{start:{line:13,column:24},end:{line:28,column:3}},1:{start:{line:18,column:6},end:{line:18,column:65}},2:{start:{line:31,column:8},end:{line:31,column:12}},3:{start:{line:32,column:22},end:{line:32,column:27}},4:{start:{line:34,column:4},end:{line:34,column:17}},5:{start:{line:35,column:4},end:{line:35,column:32}},6:{start:{line:36,column:4},end:{line:40,column:6}},7:{start:{line:43,column:4},end:{line:59,column:7}},8:{start:{line:60,column:4},end:{line:60,column:42}},9:{start:{line:61,column:4},end:{line:61,column:40}},10:{start:{line:62,column:4},end:{line:62,column:38}},11:{start:{line:64,column:18},end:{line:66,column:3}},12:{start:{line:65,column:4},end:{line:65,column:31}},13:{start:{line:67,column:12},end:{line:74,column:3}},14:{start:{line:68,column:4},end:{line:69,column:27}},15:{start:{line:69,column:6},end:{line:69,column:27}},16:{start:{line:70,column:4},end:{line:73,column:7}},17:{start:{line:75,column:11},end:{line:83,column:3}},18:{start:{line:76,column:4},end:{line:76,column:32}},19:{start:{line:77,column:4},end:{line:78,column:26}},20:{start:{line:78,column:6},end:{line:78,column:26}},21:{start:{line:79,column:4},end:{line:82,column:7}},22:{start:{line:85,column:4},end:{line:85,column:43}},23:{start:{line:86,column:4},end:{line:86,column:41}},24:{start:{line:87,column:4},end:{line:87,column:39}},25:{start:{line:90,column:4},end:{line:95,column:5}},26:{start:{line:91,column:6},end:{line:91,column:36}},27:{start:{line:92,column:6},end:{line:94,column:8}},28:{start:{line:97,column:13},end:{line:126,column:3}},29:{start:{line:98,column:4},end:{line:104,column:5}},30:{start:{line:99,column:6},end:{line:99,column:37}},31:{start:{line:100,column:6},end:{line:102,column:9}},32:{start:{line:103,column:6},end:{line:103,column:13}},33:{start:{line:105,column:20},end:{line:105,column:40}},34:{start:{line:106,column:4},end:{line:122,column:5}},35:{start:{line:108,column:6},end:{line:113,column:7}},36:{start:{line:109,column:8},end:{line:109,column:42}},37:{start:{line:111,column:8},end:{line:111,column:19}},38:{start:{line:112,column:8},end:{line:112,column:27}},39:{start:{line:114,column:6},end:{line:121,column:7}},40:{start:{line:115,column:8},end:{line:115,column:35}},41:{start:{line:117,column:8},end:{line:118,column:43}},42:{start:{line:118,column:10},end:{line:118,column:43}},43:{start:{line:119,column:8},end:{line:120,column:35}},44:{start:{line:120,column:10},end:{line:120,column:35}},45:{start:{line:123,column:4},end:{line:125,column:7}},46:{start:{line:128,column:28},end:{line:128,column:38}},47:{start:{line:129,column:18},end:{line:129,column:20}},48:{start:{line:130,column:4},end:{line:132,column:5}},49:{start:{line:131,column:6},end:{line:131,column:45}},50:{start:{line:133,column:4},end:{line:147,column:9}},51:{start:{line:143,column:23},end:{line:143,column:36}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:17,column:14},end:{line:17,column:15}},loc:{start:{line:17,column:24},end:{line:19,column:5}},line:17},1:{name:"(anonymous_1)",decl:{start:{line:20,column:13},end:{line:20,column:14}},loc:{start:{line:20,column:19},end:{line:21,column:5}},line:20},2:{name:"(anonymous_2)",decl:{start:{line:22,column:12},end:{line:22,column:13}},loc:{start:{line:22,column:18},end:{line:23,column:5}},line:22},3:{name:"(anonymous_3)",decl:{start:{line:24,column:19},end:{line:24,column:20}},loc:{start:{line:24,column:25},end:{line:25,column:5}},line:24},4:{name:"(anonymous_4)",decl:{start:{line:26,column:17},end:{line:26,column:18}},loc:{start:{line:26,column:23},end:{line:27,column:5}},line:26},5:{name:"(anonymous_5)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:21},end:{line:41,column:3}},line:33},6:{name:"(anonymous_6)",decl:{start:{line:42,column:2},end:{line:42,column:3}},loc:{start:{line:42,column:22},end:{line:63,column:3}},line:42},7:{name:"(anonymous_7)",decl:{start:{line:64,column:18},end:{line:64,column:19}},loc:{start:{line:64,column:24},end:{line:66,column:3}},line:64},8:{name:"(anonymous_8)",decl:{start:{line:67,column:12},end:{line:67,column:13}},loc:{start:{line:67,column:18},end:{line:74,column:3}},line:67},9:{name:"(anonymous_9)",decl:{start:{line:75,column:11},end:{line:75,column:12}},loc:{start:{line:75,column:17},end:{line:83,column:3}},line:75},10:{name:"(anonymous_10)",decl:{start:{line:84,column:2},end:{line:84,column:3}},loc:{start:{line:84,column:25},end:{line:88,column:3}},line:84},11:{name:"(anonymous_11)",decl:{start:{line:89,column:2},end:{line:89,column:3}},loc:{start:{line:89,column:32},end:{line:96,column:3}},line:89},12:{name:"(anonymous_12)",decl:{start:{line:97,column:13},end:{line:97,column:14}},loc:{start:{line:97,column:21},end:{line:126,column:3}},line:97},13:{name:"(anonymous_13)",decl:{start:{line:127,column:2},end:{line:127,column:3}},loc:{start:{line:127,column:11},end:{line:148,column:3}},line:127},14:{name:"(anonymous_14)",decl:{start:{line:143,column:15},end:{line:143,column:16}},loc:{start:{line:143,column:23},end:{line:143,column:36}},line:143}},branchMap:{0:{loc:{start:{line:45,column:12},end:{line:47,column:7}},type:"binary-expr",locations:[{start:{line:45,column:12},end:{line:45,column:27}},{start:{line:45,column:31},end:{line:47,column:7}}],line:45},1:{loc:{start:{line:53,column:12},end:{line:55,column:7}},type:"binary-expr",locations:[{start:{line:53,column:12},end:{line:53,column:27}},{start:{line:53,column:31},end:{line:55,column:7}}],line:53},2:{loc:{start:{line:68,column:4},end:{line:69,column:27}},type:"if",locations:[{start:{line:68,column:4},end:{line:69,column:27}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:68},3:{loc:{start:{line:77,column:4},end:{line:78,column:26}},type:"if",locations:[{start:{line:77,column:4},end:{line:78,column:26}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:77},4:{loc:{start:{line:90,column:4},end:{line:95,column:5}},type:"if",locations:[{start:{line:90,column:4},end:{line:95,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:90},5:{loc:{start:{line:90,column:8},end:{line:90,column:69}},type:"binary-expr",locations:[{start:{line:90,column:8},end:{line:90,column:29}},{start:{line:90,column:33},end:{line:90,column:69}}],line:90},6:{loc:{start:{line:98,column:4},end:{line:104,column:5}},type:"if",locations:[{start:{line:98,column:4},end:{line:104,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:98},7:{loc:{start:{line:106,column:4},end:{line:122,column:5}},type:"if",locations:[{start:{line:106,column:4},end:{line:122,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:106},8:{loc:{start:{line:114,column:6},end:{line:121,column:7}},type:"if",locations:[{start:{line:114,column:6},end:{line:121,column:7}},{start:{line:116,column:13},end:{line:121,column:7}}],line:114},9:{loc:{start:{line:114,column:10},end:{line:114,column:41}},type:"binary-expr",locations:[{start:{line:114,column:10},end:{line:114,column:13}},{start:{line:114,column:17},end:{line:114,column:41}}],line:114},10:{loc:{start:{line:117,column:8},end:{line:118,column:43}},type:"if",locations:[{start:{line:117,column:8},end:{line:118,column:43}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:117},11:{loc:{start:{line:119,column:8},end:{line:120,column:35}},type:"if",locations:[{start:{line:119,column:8},end:{line:120,column:35}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:119},12:{loc:{start:{line:130,column:4},end:{line:132,column:5}},type:"if",locations:[{start:{line:130,column:4},end:{line:132,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:130}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputJson.tsx"],names:[],mappings:"AAqKM,SACQ,KADR;AArKN,OAAO,WAAW;AAClB,OAAO,gBAAgB;AACvB,OAAO,gBAA8B;AAErC,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO;AACP,OAAO,qBAAqB;AAC5B,OAAO;AA0BP,qBAAqB,kBAAkB,MAAM,UAA0C;AAAA,EACrF,OAAO,eAAe;AAAA,IACpB,aAAa;AAAA,IACb,cAAc;AAAA,IACd,SAAS,CAAC,yBAAyB;AAAA,IACnC,UAAU,CAAC,SAAc;AACvB,aAAO,gBAAgB,MAAM,EAAC,QAAQ,GAAG,WAAW,GAAE,CAAC;AAAA,IACzD;AAAA,IACA,SAAS,MAAM;AAAA,IAAC;AAAA,IAChB,QAAQ,MAAM;AAAA,IAAC;AAAA,IACf,eAAe,MAAM;AAAA,IAAC;AAAA,IACtB,aAAa,MAAM;AAAA,IAAC;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA,MAA6B;AAAA,EAC7B,oBAA6B;AAAA,EAE7B,YAAY,OAAuB;AACjC,UAAM,KAAK;AACX,SAAK,YAAY;AACjB,SAAK,QAAQ;AAAA,MACX,WAAW;AAAA,MACX,aAAa;AAAA,MACb,WAAW,KAAK,MAAM,SAAU,KAAK,MAAM,KAAK;AAAA,IAClD;AAAA,EACF;AAAA,EAEA,oBAAqB;AACnB,SAAK,OAAO,WAAW,KAAK,KAAM;AAAA,MAChC,OAAO,KAAK,MAAM,SAAU,KAAK,MAAM,KAAK;AAAA,MAC5C,MAAM,KAAK,MAAM,QAAQ;AAAA,QACvB,MAAM;AAAA,MACR;AAAA,MACA,cAAc,KAAK,MAAM;AAAA,MACzB,SAAS;AAAA,MACT,OAAO;AAAA,MACP,gBAAgB;AAAA,MAChB,aAAa,KAAK,MAAM;AAAA,MACxB,MAAM,KAAK,MAAM,QAAQ;AAAA,QACvB,SAAS;AAAA,MACX;AAAA,MACA,eAAe;AAAA,MACf,SAAS,KAAK,MAAM;AAAA,MACpB,gBAAgB;AAAA,IAClB,CAAC;AAED,SAAK,KAAK,GAAG,UAAU,KAAK,QAAQ;AACpC,SAAK,KAAK,GAAG,SAAS,KAAK,OAAO;AAClC,SAAK,KAAK,GAAG,QAAQ,KAAK,MAAM;AAAA,EAClC;AAAA,EAEA,gBAAgB,MAAM;AACpB,SAAK,YAAY;AAAA,EACnB;AAAA,EAEA,UAAU,MAAM;AACd,QAAI,KAAK,MAAM;AAAS,WAAK,MAAM,QAAQ;AAC3C,SAAK,SAAS;AAAA,MACZ,WAAW;AAAA,MACX,aAAc,KAAK,cAAc;AAAA,IACnC,CAAC;AAAA,EACH;AAAA,EAEA,SAAS,MAAM;AACb,SAAK,YAAY;AACjB,QAAI,KAAK,MAAM;AAAQ,WAAK,MAAM,OAAO;AACzC,SAAK,SAAS;AAAA,MACZ,WAAW;AAAA,MACX,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AAAA,EAEA,uBAAwB;AACtB,SAAK,KAAM,IAAI,UAAU,KAAK,QAAQ;AACtC,SAAK,KAAM,IAAI,SAAS,KAAK,OAAO;AACpC,SAAK,KAAM,IAAI,QAAQ,KAAK,MAAM;AAAA,EACpC;AAAA,EAEA,mBAAmB,WAA2B;AAC5C,QAAI,CAAC,KAAK,MAAM,aAAa,UAAU,UAAU,KAAK,MAAM,OAAO;AACjE,WAAK,oBAAoB;AACzB,WAAK,KAAM;AAAA,QACT,KAAK,MAAM,SAAU,KAAK,MAAM,KAAK;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AAAA,EAEA,WAAW,CAAC,OAAgB;AAC1B,QAAI,KAAK,mBAAmB;AAC1B,WAAK,oBAAoB;AACzB,WAAK,SAAS;AAAA,QACZ,WAAW,KAAK,KAAM,SAAS;AAAA,MACjC,CAAC;AACD;AAAA,IACF;AACA,UAAM,UAAU,KAAK,KAAM,SAAS;AAEpC,QAAI,KAAK,MAAM,cAAc,SAAS;AACpC,UAAI,aAAa;AACjB,UAAI;AACF,sBAAc,KAAK,MAAM,OAAO;AAAA,MAClC,SAAQ,MAAM;AACZ,cAAM;AACN,gBAAQ,KAAK,IAAI;AAAA,MACnB;AAEA,UAAI,OAAO,KAAK,MAAM,eAAe;AACnC,aAAK,MAAM,cAAc;AAAA,MAC3B,OACK;AACH,YAAI,KAAK,MAAM;AAAU,eAAK,MAAM,SAAS,WAAW;AACxD,YAAI,KAAK,MAAM;AAAa,eAAK,MAAM,YAAY;AAAA,MACrD;AAAA,IACF;AAEA,SAAK,SAAS;AAAA,MACZ,WAAW;AAAA,IACb,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,YAAW,IAAI,KAAK;AAC3B,UAAM,QAAQ,CAAC;AACf,QAAI,KAAK,MAAM,WAAW;AACxB,YAAM,YAAY,KAAK,MAAM;AAAA,IAC/B;AAEA,WAAO,qBAAC,SAAI,WAAU,cAAa,eAAe,KAAK,eAAe,eAAY,QAChF;AAAA,2BAAC,SAAI,WAAW,WAAW,uBAAuB,EAAC,2BAA2B,YAAW,CAAC,GAAG;AAAA;AAAA,QACrF,oBAAC,SAAI,iBAAG;AAAA,QAAM;AAAA,SACtB;AAAA,MACA;AAAA,QAAC;AAAA;AAAA,UACC,WAAW,WAAW,wBAAwB,KAAK,MAAM,SAAS;AAAA,UAClE,KAAK,CAAC,OAAO,KAAK,MAAM;AAAA,UACxB;AAAA;AAAA,MACF;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"73341c4954366276bd838a194b53fa026df00a42"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Pn=function(){return s},s}Pn();class wW extends bn.Component{constructor(t){Pn().f[5]++,Pn().s[4]++;super(t);nn(this,"_keyEvent");nn(this,"_doc");nn(this,"_el",(Pn().s[2]++,null));nn(this,"_cancelNextChange",(Pn().s[3]++,!1));nn(this,"onPointerDown",(Pn().s[11]++,()=>{Pn().f[7]++,Pn().s[12]++,this._keyEvent="pointer"}));nn(this,"onFocus",(Pn().s[13]++,()=>{Pn().f[8]++,Pn().s[14]++,this.props.onFocus?(Pn().b[2][0]++,Pn().s[15]++,this.props.onFocus()):Pn().b[2][1]++,Pn().s[16]++,this.setState({isEditing:!0,showMessage:this._keyEvent==="keyboard"})}));nn(this,"onBlur",(Pn().s[17]++,()=>{Pn().f[9]++,Pn().s[18]++,this._keyEvent="keyboard",Pn().s[19]++,this.props.onBlur?(Pn().b[3][0]++,Pn().s[20]++,this.props.onBlur()):Pn().b[3][1]++,Pn().s[21]++,this.setState({isEditing:!1,showMessage:!1})}));nn(this,"onChange",(Pn().s[28]++,t=>{if(Pn().f[12]++,Pn().s[29]++,this._cancelNextChange){Pn().b[6][0]++,Pn().s[30]++,this._cancelNextChange=!1,Pn().s[31]++,this.setState({prevValue:this._doc.getValue()}),Pn().s[32]++;return}else Pn().b[6][1]++;const r=(Pn().s[33]++,this._doc.getValue());if(Pn().s[34]++,this.state.prevValue!==r){Pn().b[7][0]++;let i,o;Pn().s[35]++;try{Pn().s[36]++,i=JSON.parse(r)}catch(s){Pn().s[37]++,o=s,Pn().s[38]++,console.warn(s)}Pn().s[39]++,Pn().b[9][0]++,o&&(Pn().b[9][1]++,this.props.onJSONInvalid)?(Pn().b[8][0]++,Pn().s[40]++,this.props.onJSONInvalid()):(Pn().b[8][1]++,Pn().s[41]++,this.props.onChange?(Pn().b[10][0]++,Pn().s[42]++,this.props.onChange(i)):Pn().b[10][1]++,Pn().s[43]++,this.props.onJSONValid?(Pn().b[11][0]++,Pn().s[44]++,this.props.onJSONValid()):Pn().b[11][1]++)}else Pn().b[7][1]++;Pn().s[45]++,this.setState({prevValue:r})}));Pn().s[5]++,this._keyEvent="keyboard",Pn().s[6]++,this.state={isEditing:!1,showMessage:!1,prevValue:this.props.getValue(this.props.layer)}}componentDidMount(){Pn().f[6]++,Pn().s[7]++,this._doc=Kc(this._el,{value:this.props.getValue(this.props.layer),mode:(Pn().b[0][0]++,this.props.mode||(Pn().b[0][1]++,{name:"mgl"})),lineWrapping:this.props.lineWrapping,tabSize:2,theme:"maputnik",viewportMargin:1/0,lineNumbers:this.props.lineNumbers,lint:(Pn().b[1][0]++,this.props.lint||(Pn().b[1][1]++,{context:"layer"})),matchBrackets:!0,gutters:this.props.gutters,scrollbarStyle:"null"}),Pn().s[8]++,this._doc.on("change",this.onChange),Pn().s[9]++,this._doc.on("focus",this.onFocus),Pn().s[10]++,this._doc.on("blur",this.onBlur)}componentWillUnMount(){Pn().f[10]++,Pn().s[22]++,this._doc.off("change",this.onChange),Pn().s[23]++,this._doc.off("focus",this.onFocus),Pn().s[24]++,this._doc.off("blur",this.onBlur)}componentDidUpdate(t){Pn().f[11]++,Pn().s[25]++,Pn().b[5][0]++,!this.state.isEditing&&(Pn().b[5][1]++,t.layer!==this.props.layer)?(Pn().b[4][0]++,Pn().s[26]++,this._cancelNextChange=!0,Pn().s[27]++,this._doc.setValue(this.props.getValue(this.props.layer))):Pn().b[4][1]++}render(){Pn().f[13]++;const{showMessage:t}=(Pn().s[46]++,this.state),r=(Pn().s[47]++,{});return Pn().s[48]++,this.props.maxHeight?(Pn().b[12][0]++,Pn().s[49]++,r.maxHeight=this.props.maxHeight):Pn().b[12][1]++,Pn().s[50]++,N.jsxs("div",{className:"JSONEditor",onPointerDown:this.onPointerDown,"aria-hidden":"true",children:[N.jsxs("div",{className:Af("JSONEditor__message",{"JSONEditor__message--on":t}),children:["Press ",N.jsx("kbd",{children:"ESC"})," to lose focus"]}),N.jsx("div",{className:Af("codemirror-container",this.props.className),ref:i=>(Pn().f[14]++,Pn().s[51]++,this._el=i),style:r})]})}}nn(wW,"defaultProps",(Pn().s[0]++,{lineNumbers:!0,lineWrapping:!1,gutters:["CodeMirror-lint-markers"],getValue:t=>(Pn().f[0]++,Pn().s[1]++,_W(t,{indent:2,maxLength:40})),onFocus:()=>{Pn().f[1]++},onBlur:()=>{Pn().f[2]++},onJSONInvalid:()=>{Pn().f[3]++},onJSONValid:()=>{Pn().f[4]++}}));function t4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",n="60f4cd40e505c4a9f8de1078b77716b10a4a4264",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:61}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:7,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldJson.tsx"],names:[],mappings:"AASW;AATX,OAAO,WAAW;AAClB,OAAO,eAAiC;AAMxC,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,WAAO,oBAAC,aAAW,GAAG,KAAK,OAAO;AAAA,EACpC;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"60f4cd40e505c4a9f8de1078b77716b10a4a4264"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return t4=function(){return s},s}t4();class c8 extends bn.Component{render(){return t4().f[0]++,t4().s[0]++,N.jsx(wW,{...this.props})}}var S_="M12.42,5.29C11.32,5.19 10.35,6 10.25,7.11L10,10H12.82V12H9.82L9.38,17.07C9.18,19.27 7.24,20.9 5.04,20.7C3.79,20.59 2.66,19.9 2,18.83L3.5,17.33C3.83,18.38 4.96,18.97 6,18.63C6.78,18.39 7.33,17.7 7.4,16.89L7.82,12H4.82V10H8L8.27,6.93C8.46,4.73 10.39,3.1 12.6,3.28C13.86,3.39 15,4.09 15.66,5.17L14.16,6.67C13.91,5.9 13.23,5.36 12.42,5.29M22,13.65L20.59,12.24L17.76,15.07L14.93,12.24L13.5,13.65L16.35,16.5L13.5,19.31L14.93,20.72L17.76,17.89L20.59,20.72L22,19.31L19.17,16.5L22,13.65Z",spe="M7,10L12,15L17,10H7Z",lpe="M7,15L12,10L17,15H7Z",d8="M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z";function t1(){var e="/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",n="99dad9631fbee5fc23be2dafaf7c7eea92c38eac",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/filterops.ts",statementMap:{0:{start:{line:2,column:34},end:{line:2,column:56}},1:{start:{line:3,column:28},end:{line:3,column:41}},2:{start:{line:4,column:30},end:{line:4,column:123}},3:{start:{line:4,column:88},end:{line:4,column:122}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:80},end:{line:4,column:81}},loc:{start:{line:4,column:88},end:{line:4,column:122}},line:4}},branchMap:{},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/filterops.ts"],names:[],mappings:"AAAA,OAAO,YAAY;AAEZ,aAAM,qBAAqB,CAAC,OAAO,OAAO,MAAM;AAChD,aAAM,eAAe,CAAC,MAAM,KAAK;AACjC,aAAM,iBAAiB,OAC3B,KAAK,OAAO,gBAAgB,MAAM,EAClC,OAAO,QAAM,mBAAmB,QAAQ,EAAE,IAAI,CAAC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"99dad9631fbee5fc23be2dafaf7c7eea92c38eac"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return t1=function(){return s},s}t1();const h8=(t1().s[0]++,["all","any","none"]);t1().s[1]++;const upe=(t1().s[2]++,Object.keys(Ji.filter_operator.values).filter(e=>(t1().f[0]++,t1().s[3]++,h8.indexOf(e)<0)));function Wr(){var e="/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",n="3d8bcd70e58647712bf929f9e6ef3e13fde3cd73",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx",statementMap:{0:{start:{line:8,column:2},end:{line:9,column:13}},1:{start:{line:9,column:4},end:{line:9,column:13}},2:{start:{line:10,column:2},end:{line:11,column:13}},3:{start:{line:11,column:4},end:{line:11,column:13}},4:{start:{line:12,column:2},end:{line:12,column:23}},5:{start:{line:15,column:19},end:{line:15,column:40}},6:{start:{line:16,column:2},end:{line:18,column:3}},7:{start:{line:17,column:4},end:{line:17,column:13}},8:{start:{line:19,column:2},end:{line:25,column:3}},9:{start:{line:20,column:4},end:{line:20,column:16}},10:{start:{line:21,column:9},end:{line:25,column:3}},11:{start:{line:22,column:4},end:{line:22,column:17}},12:{start:{line:24,column:4},end:{line:24,column:13}},13:{start:{line:28,column:2},end:{line:28,column:21}},14:{start:{line:29,column:2},end:{line:29,column:22}},15:{start:{line:30,column:2},end:{line:30,column:11}},16:{start:{line:33,column:24},end:{line:35,column:3}},17:{start:{line:37,column:20},end:{line:37,column:76}},18:{start:{line:38,column:4},end:{line:42,column:5}},19:{start:{line:39,column:6},end:{line:39,column:43}},20:{start:{line:40,column:11},end:{line:42,column:5}},21:{start:{line:41,column:6},end:{line:41,column:47}},22:{start:{line:43,column:4},end:{line:43,column:35}},23:{start:{line:46,column:14},end:{line:46,column:31}},24:{start:{line:47,column:21},end:{line:47,column:25}},25:{start:{line:48,column:25},end:{line:48,column:29}},26:{start:{line:49,column:23},end:{line:49,column:33}},27:{start:{line:50,column:4},end:{line:77,column:9}},28:{start:{line:56,column:72},end:{line:56,column:92}},29:{start:{line:57,column:41},end:{line:57,column:104}},30:{start:{line:65,column:37},end:{line:65,column:100}},31:{start:{line:74,column:27},end:{line:74,column:89}}},fnMap:{0:{name:"tryParseInt",decl:{start:{line:7,column:9},end:{line:7,column:20}},loc:{start:{line:7,column:24},end:{line:13,column:1}},line:7},1:{name:"tryParseBool",decl:{start:{line:14,column:9},end:{line:14,column:21}},loc:{start:{line:14,column:25},end:{line:26,column:1}},line:14},2:{name:"parseFilter",decl:{start:{line:27,column:9},end:{line:27,column:20}},loc:{start:{line:27,column:24},end:{line:31,column:1}},line:27},3:{name:"(anonymous_3)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:58},end:{line:44,column:3}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:45,column:2},end:{line:45,column:3}},loc:{start:{line:45,column:11},end:{line:78,column:3}},line:45},5:{name:"(anonymous_5)",decl:{start:{line:56,column:58},end:{line:56,column:59}},loc:{start:{line:56,column:72},end:{line:56,column:92}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:57,column:20},end:{line:57,column:21}},loc:{start:{line:57,column:41},end:{line:57,column:104}},line:57},7:{name:"(anonymous_7)",decl:{start:{line:65,column:20},end:{line:65,column:21}},loc:{start:{line:65,column:37},end:{line:65,column:100}},line:65},8:{name:"(anonymous_8)",decl:{start:{line:74,column:20},end:{line:74,column:21}},loc:{start:{line:74,column:27},end:{line:74,column:89}},line:74}},branchMap:{0:{loc:{start:{line:8,column:2},end:{line:9,column:13}},type:"if",locations:[{start:{line:8,column:2},end:{line:9,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:8},1:{loc:{start:{line:10,column:2},end:{line:11,column:13}},type:"if",locations:[{start:{line:10,column:2},end:{line:11,column:13}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:10},2:{loc:{start:{line:16,column:2},end:{line:18,column:3}},type:"if",locations:[{start:{line:16,column:2},end:{line:18,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:16},3:{loc:{start:{line:19,column:2},end:{line:25,column:3}},type:"if",locations:[{start:{line:19,column:2},end:{line:25,column:3}},{start:{line:21,column:9},end:{line:25,column:3}}],line:19},4:{loc:{start:{line:21,column:9},end:{line:25,column:3}},type:"if",locations:[{start:{line:21,column:9},end:{line:25,column:3}},{start:{line:23,column:9},end:{line:25,column:3}}],line:21},5:{loc:{start:{line:38,column:4},end:{line:42,column:5}},type:"if",locations:[{start:{line:38,column:4},end:{line:42,column:5}},{start:{line:40,column:11},end:{line:42,column:5}}],line:38},6:{loc:{start:{line:38,column:8},end:{line:38,column:49}},type:"binary-expr",locations:[{start:{line:38,column:8},end:{line:38,column:26}},{start:{line:38,column:30},end:{line:38,column:49}}],line:38},7:{loc:{start:{line:40,column:11},end:{line:42,column:5}},type:"if",locations:[{start:{line:40,column:11},end:{line:42,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:40},8:{loc:{start:{line:69,column:6},end:{line:76,column:10}},type:"binary-expr",locations:[{start:{line:69,column:6},end:{line:69,column:27}},{start:{line:69,column:47},end:{line:76,column:10}}],line:69}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/SingleFilterEditor.tsx"],names:[],mappings:"AA+DW,SAEH,KAFG;AA/DX,OAAO,WAAW;AAElB,SAAQ,sBAAqB;AAC7B,OAAO,iBAAiB;AACxB,OAAO,uBAAuB;AAC9B,OAAO,iBAAiB;AAExB,SAAS,YAAY,GAAoB;AACvC,MAAI,MAAM;AAAI,WAAO;AACrB,MAAI,MAAM,CAAW;AAAG,WAAO;AAC/B,SAAO,WAAW,CAAW;AAC/B;AAEA,SAAS,aAAa,GAAqB;AACzC,QAAM,WAAY,OAAO,MAAO;AAChC,MAAG,CAAC,UAAU;AACZ,WAAO;AAAA,EACT;AAEA,MAAG,EAAE,MAAM,cAAc,GAAG;AAC1B,WAAO;AAAA,EACT,WACQ,EAAE,MAAM,eAAe,GAAG;AAChC,WAAO;AAAA,EACT,OACK;AACH,WAAO;AAAA,EACT;AACF;AAEA,SAAS,YAAY,GAA8B;AACjD,MAAI,YAAY,CAAQ;AACxB,MAAI,aAAa,CAAQ;AACzB,SAAO;AACT;AAQA,qBAAqB,2BAA2B,MAAM,UAAmC;AAAA,EACvF,OAAO,eAAe;AAAA,IACpB,YAAY,CAAC;AAAA,EACf;AAAA,EAEA,oBAAoB,UAAkB,cAAsB,YAAsB;AAChF,QAAI,YAAY,CAAC,UAAU,cAAc,GAAG,WAAW,IAAI,WAAW,CAAC;AACvE,QAAG,aAAa,SAAS,aAAa,QAAQ;AAC5C,kBAAY,CAAC,UAAU,YAAY;AAAA,IACrC,WAAU,WAAW,WAAW,GAAG;AACjC,kBAAY,CAAC,UAAU,cAAc,EAAE;AAAA,IACzC;AACA,SAAK,MAAM,SAAS,SAAS;AAAA,EAC/B;AAAA,EAEA,SAAS;AACP,UAAM,IAAI,KAAK,MAAM;AACrB,UAAM,WAAW,EAAE,CAAC;AACpB,UAAM,eAAe,EAAE,CAAC;AACxB,UAAM,aAAa,EAAE,MAAM,CAAC;AAE5B,WAAO,qBAAC,SAAI,WAAU,iCACpB;AAAA,0BAAC,SAAI,WAAU,mCACb;AAAA,QAAC;AAAA;AAAA,UACC,cAAW;AAAA,UACX,OAAO;AAAA,UACP,SAAS,OAAO,KAAK,KAAK,MAAM,UAAW,EAAE,IAAI,cAAY,CAAC,UAAU,QAAQ,CAAC;AAAA,UACjF,UAAU,CAAC,oBAA4B,KAAK,oBAAoB,UAAU,iBAAiB,UAAU;AAAA;AAAA,MACvG,GACF;AAAA,MACA,oBAAC,SAAI,WAAU,mCACb;AAAA,QAAC;AAAA;AAAA,UACC,cAAW;AAAA,UACX,OAAO;AAAA,UACP,UAAU,CAAC,gBAAwB,KAAK,oBAAoB,aAAa,cAAc,UAAU;AAAA,UACjG,SAAS;AAAA;AAAA,MACX,GACF;AAAA,MACC,WAAW,SAAS,KACrB,oBAAC,SAAI,WAAU,+BACb;AAAA,QAAC;AAAA;AAAA,UACC,cAAW;AAAA,UACX,OAAO,WAAW,KAAK,GAAG;AAAA,UAC1B,UAAU,CAAC,MAAc,KAAK,oBAAoB,UAAU,cAAc,EAAE,MAAM,GAAG,CAAC;AAAA;AAAA,MACxF,GACF;AAAA,OAEF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"3d8bcd70e58647712bf929f9e6ef3e13fde3cd73"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Wr=function(){return s},s}Wr();function Ape(e){return Wr().f[0]++,Wr().s[0]++,e===""?(Wr().b[0][0]++,Wr().s[1]++,e):(Wr().b[0][1]++,Wr().s[2]++,isNaN(e)?(Wr().b[1][0]++,Wr().s[3]++,e):(Wr().b[1][1]++,Wr().s[4]++,parseFloat(e)))}function cpe(e){Wr().f[1]++;const n=(Wr().s[5]++,typeof e=="string");if(Wr().s[6]++,n)Wr().b[2][1]++;else return Wr().b[2][0]++,Wr().s[7]++,e;return Wr().s[8]++,e.match(/^\s*true\s*$/)?(Wr().b[3][0]++,Wr().s[9]++,!0):(Wr().b[3][1]++,Wr().s[10]++,e.match(/^\s*false\s*$/)?(Wr().b[4][0]++,Wr().s[11]++,!1):(Wr().b[4][1]++,Wr().s[12]++,e))}function dpe(e){return Wr().f[2]++,Wr().s[13]++,e=Ape(e),Wr().s[14]++,e=cpe(e),Wr().s[15]++,e}class MW extends bn.Component{onFilterPartChanged(n,t,r){Wr().f[3]++;let i=(Wr().s[17]++,[n,t,...r.map(dpe)]);Wr().s[18]++,Wr().b[6][0]++,n==="has"||(Wr().b[6][1]++,n==="!has")?(Wr().b[5][0]++,Wr().s[19]++,i=[n,t]):(Wr().b[5][1]++,Wr().s[20]++,r.length===0?(Wr().b[7][0]++,Wr().s[21]++,i=[n,t,""]):Wr().b[7][1]++),Wr().s[22]++,this.props.onChange(i)}render(){Wr().f[4]++;const n=(Wr().s[23]++,this.props.filter),t=(Wr().s[24]++,n[0]),r=(Wr().s[25]++,n[1]),i=(Wr().s[26]++,n.slice(2));return Wr().s[27]++,N.jsxs("div",{className:"maputnik-filter-editor-single",children:[N.jsx("div",{className:"maputnik-filter-editor-property",children:N.jsx(Qy,{"aria-label":"key",value:r,options:Object.keys(this.props.properties).map(o=>(Wr().f[5]++,Wr().s[28]++,[o,o])),onChange:o=>(Wr().f[6]++,Wr().s[29]++,this.onFilterPartChanged(t,o,i))})}),N.jsx("div",{className:"maputnik-filter-editor-operator",children:N.jsx(w1,{"aria-label":"function",value:t,onChange:o=>(Wr().f[7]++,Wr().s[30]++,this.onFilterPartChanged(o,r,i)),options:upe})}),(Wr().b[8][0]++,i.length>0&&(Wr().b[8][1]++,N.jsx("div",{className:"maputnik-filter-editor-args",children:N.jsx(Sd,{"aria-label":"value",value:i.join(","),onChange:o=>(Wr().f[8]++,Wr().s[31]++,this.onFilterPartChanged(t,r,o.split(",")))})})))]})}}nn(MW,"defaultProps",(Wr().s[16]++,{properties:{}}));function n4(){var e="/home/runner/work/maputnik/maputnik/src/components/FilterEditorBlock.tsx",n="de90f2b7c2375daa3c7ce706798711f2e425045c",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FilterEditorBlock.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:18,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:19,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FilterEditorBlock.tsx"],names:[],mappings:"AAUW,SAOD,KAPC;AAVX,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,SAAQ,gBAAe;AAMvB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,qBAAC,SAAI,WAAU,gCACpB;AAAA,0BAAC,SAAI,WAAU,uCACb;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,KAAK,MAAM;AAAA,UACpB,OAAM;AAAA,UAEN,8BAAC,YAAS;AAAA;AAAA,MACZ,GACF;AAAA,MACA,oBAAC,SAAI,WAAU,wCACZ,eAAK,MAAM,UACd;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"de90f2b7c2375daa3c7ce706798711f2e425045c"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return n4=function(){return s},s}n4();class hpe extends bn.Component{render(){return n4().f[0]++,n4().s[0]++,N.jsxs("div",{className:"maputnik-filter-editor-block",children:[N.jsx("div",{className:"maputnik-filter-editor-block-action",children:N.jsx(Ka,{className:"maputnik-delete-filter",onClick:this.props.onDelete,title:"Delete filter block",children:N.jsx(Ly,{})})}),N.jsx("div",{className:"maputnik-filter-editor-block-content",children:this.props.children})]})}}var fpe=1/0,ppe="[object Symbol]",f8="\\ud800-\\udfff",SW="\\u0300-\\u036f\\ufe20-\\ufe23",EW="\\u20d0-\\u20f0",OW="\\ufe0e\\ufe0f",mpe="["+f8+"]",NE="["+SW+EW+"]",GE="\\ud83c[\\udffb-\\udfff]",gpe="(?:"+NE+"|"+GE+")",BW="[^"+f8+"]",kW="(?:\\ud83c[\\udde6-\\uddff]){2}",IW="[\\ud800-\\udbff][\\udc00-\\udfff]",TW="\\u200d",KW=gpe+"?",PW="["+OW+"]?",ype="(?:"+TW+"(?:"+[BW,kW,IW].join("|")+")"+PW+KW+")*",vpe=PW+KW+ype,Cpe="(?:"+[BW+NE+"?",NE,kW,IW,mpe].join("|")+")",_pe=RegExp(GE+"(?="+GE+")|"+Cpe+vpe,"g"),bpe=RegExp("["+TW+f8+SW+EW+OW+"]"),xpe=typeof window=="object"&&window&&window.Object===Object&&window,wpe=typeof self=="object"&&self&&self.Object===Object&&self,Mpe=xpe||wpe||Function("return this")();function Spe(e){return e.split("")}function FW(e){return bpe.test(e)}function Epe(e){return FW(e)?Ope(e):Spe(e)}function Ope(e){return e.match(_pe)||[]}var Bpe=Object.prototype,kpe=Bpe.toString,HT=Mpe.Symbol,ZT=HT?HT.prototype:void 0,XT=ZT?ZT.toString:void 0;function Ipe(e,n,t){var r=-1,i=e.length;n<0&&(n=-n>i?0:i+n),t=t>i?i:t,t<0&&(t+=i),i=n>t?0:t-n>>>0,n>>>=0;for(var o=Array(i);++r=r?e:Ipe(e,n,t)}function Ppe(e){return function(n){n=DW(n);var t=FW(n)?Epe(n):void 0,r=t?t[0]:n.charAt(0),i=t?Kpe(t,1).join(""):n.slice(1);return r[e]()+i}}function Fpe(e){return!!e&&typeof e=="object"}function Dpe(e){return typeof e=="symbol"||Fpe(e)&&kpe.call(e)==ppe}function DW(e){return e==null?"":Tpe(e)}function Upe(e){return Rpe(DW(e).toLowerCase())}var Rpe=Ppe("toUpperCase"),Lpe=Upe;const p8=ga(Lpe);function Nh(){var e="/home/runner/work/maputnik/maputnik/src/libs/label-from-field-name.ts",n="8b86d889d32efa9a6cc667b2fa3579002dfb58fc",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/label-from-field-name.ts",statementMap:{0:{start:{line:4,column:16},end:{line:4,column:36}},1:{start:{line:5,column:2},end:{line:9,column:3}},2:{start:{line:6,column:4},end:{line:6,column:52}},3:{start:{line:8,column:4},end:{line:8,column:22}},4:{start:{line:10,column:2},end:{line:10,column:27}}},fnMap:{0:{name:"labelFromFieldName",decl:{start:{line:2,column:24},end:{line:2,column:42}},loc:{start:{line:2,column:54},end:{line:11,column:1}},line:2}},branchMap:{0:{loc:{start:{line:5,column:2},end:{line:9,column:3}},type:"if",locations:[{start:{line:5,column:2},end:{line:9,column:3}},{start:{line:7,column:9},end:{line:9,column:3}}],line:5}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/label-from-field-name.ts"],names:[],mappings:"AAAA,OAAO,gBAAgB;AAEvB,wBAAwB,mBAAmB,WAAmB;AAC5D,MAAI;AACJ,QAAM,QAAQ,UAAU,MAAM,GAAG;AACjC,MAAI,MAAM,SAAS,GAAG;AACpB,YAAQ,UAAU,MAAM,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,GAAG;AAAA,EAChD,OACK;AACH,YAAQ;AAAA,EACV;AACA,SAAO,WAAW,KAAK;AACzB;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8b86d889d32efa9a6cc667b2fa3579002dfb58fc"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Nh=function(){return s},s}Nh();function D5(e){Nh().f[0]++;let n;const t=(Nh().s[0]++,e.split("-"));return Nh().s[1]++,t.length>1?(Nh().b[0][0]++,Nh().s[2]++,n=e.split("-").slice(1).join(" ")):(Nh().b[0][1]++,Nh().s[3]++,n=e),Nh().s[4]++,p8(n)}function Di(){var e="/home/runner/work/maputnik/maputnik/src/components/_ExpressionProperty.tsx",n="aa37ab38c9a5b53df0808e7895b75ac0976599a1",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_ExpressionProperty.tsx",statementMap:{0:{start:{line:10,column:24},end:{line:16,column:3}},1:{start:{line:18,column:4},end:{line:18,column:17}},2:{start:{line:19,column:4},end:{line:21,column:6}},3:{start:{line:23,column:18},end:{line:27,column:3}},4:{start:{line:24,column:4},end:{line:26,column:7}},5:{start:{line:28,column:16},end:{line:32,column:3}},6:{start:{line:29,column:4},end:{line:31,column:7}},7:{start:{line:34,column:61},end:{line:34,column:71}},8:{start:{line:35,column:26},end:{line:35,column:36}},9:{start:{line:36,column:25},end:{line:36,column:52}},10:{start:{line:37,column:42},end:{line:59,column:8}},11:{start:{line:60,column:21},end:{line:60,column:83}},12:{start:{line:61,column:23},end:{line:61,column:39}},13:{start:{line:62,column:26},end:{line:62,column:40}},14:{start:{line:63,column:24},end:{line:63,column:26}},15:{start:{line:65,column:6},end:{line:65,column:65}},16:{start:{line:67,column:4},end:{line:78,column:5}},17:{start:{line:68,column:6},end:{line:68,column:52}},18:{start:{line:70,column:6},end:{line:74,column:9}},19:{start:{line:71,column:8},end:{line:71,column:45}},20:{start:{line:73,column:8},end:{line:73,column:39}},21:{start:{line:75,column:6},end:{line:77,column:7}},22:{start:{line:76,column:8},end:{line:76,column:37}},23:{start:{line:79,column:4},end:{line:109,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:13},end:{line:12,column:14}},loc:{start:{line:12,column:19},end:{line:13,column:5}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:14,column:12},end:{line:14,column:13}},loc:{start:{line:14,column:18},end:{line:15,column:5}},line:14},2:{name:"(anonymous_2)",decl:{start:{line:17,column:2},end:{line:17,column:3}},loc:{start:{line:17,column:21},end:{line:22,column:3}},line:17},3:{name:"(anonymous_3)",decl:{start:{line:23,column:18},end:{line:23,column:19}},loc:{start:{line:23,column:28},end:{line:27,column:3}},line:23},4:{name:"(anonymous_4)",decl:{start:{line:28,column:16},end:{line:28,column:17}},loc:{start:{line:28,column:22},end:{line:32,column:3}},line:28},5:{name:"(anonymous_5)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:11},end:{line:110,column:3}},line:33},6:{name:"getValue",decl:{start:{line:64,column:13},end:{line:64,column:21}},loc:{start:{line:64,column:28},end:{line:66,column:5}},line:64},7:{name:"(anonymous_7)",decl:{start:{line:70,column:36},end:{line:70,column:37}},loc:{start:{line:70,column:55},end:{line:72,column:7}},line:70},8:{name:"(anonymous_8)",decl:{start:{line:72,column:17},end:{line:72,column:18}},loc:{start:{line:72,column:36},end:{line:74,column:7}},line:72}},branchMap:{0:{loc:{start:{line:36,column:25},end:{line:36,column:52}},type:"cond-expr",locations:[{start:{line:36,column:35},end:{line:36,column:45}},{start:{line:36,column:48},end:{line:36,column:52}}],line:36},1:{loc:{start:{line:38,column:6},end:{line:48,column:7}},type:"binary-expr",locations:[{start:{line:38,column:6},end:{line:38,column:23}},{start:{line:38,column:43},end:{line:48,column:7}}],line:38},2:{loc:{start:{line:60,column:21},end:{line:60,column:83}},type:"cond-expr",locations:[{start:{line:60,column:44},end:{line:60,column:53}},{start:{line:60,column:56},end:{line:60,column:83}}],line:60},3:{loc:{start:{line:67,column:4},end:{line:78,column:5}},type:"if",locations:[{start:{line:67,column:4},end:{line:78,column:5}},{start:{line:69,column:11},end:{line:78,column:5}}],line:67},4:{loc:{start:{line:75,column:6},end:{line:77,column:7}},type:"if",locations:[{start:{line:75,column:6},end:{line:77,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:75}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_ExpressionProperty.tsx"],names:[],mappings:"AA4DM,mBASM,KATN;AA5DN,OAAO,WAAW;AAClB,SAAQ,UAAU,cAAa;AAC/B,OAAO,qBAAqB;AAE5B,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,OAAO,wBAAwB;AAC/B,OAAO,eAAe;AAqBtB,qBAAqB,2BAA2B,MAAM,UAA4D;AAAA,EAChH,OAAO,eAAe;AAAA,IACpB,QAAQ,CAAC;AAAA,IACT,SAAS,MAAM;AAAA,IAAC;AAAA,IAChB,QAAQ,MAAM;AAAA,IAAC;AAAA,EACjB;AAAA,EAEA,YAAa,OAA+B;AAC1C,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,gBAAgB,CAAC,SAAgB;AAC/B,SAAK,SAAS;AAAA,MACZ,WAAW;AAAA,IACb,CAAC;AAAA,EACH;AAAA,EAEA,cAAc,MAAM;AAClB,SAAK,SAAS;AAAA,MACZ,WAAW;AAAA,IACb,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,QAAQ,WAAW,WAAW,OAAO,QAAO,IAAI,KAAK;AAC5D,UAAM,EAAC,UAAS,IAAI,KAAK;AACzB,UAAM,eAAe,UAAU,CAAC,QAAQ,IAAI;AAE5C,UAAM,gBACJ,iCACG;AAAA,WAAK,MAAM,UACV;AAAA,QAAC;AAAA;AAAA,UAEC,SAAS,KAAK,MAAM;AAAA,UACpB,UAAU;AAAA,UACV,WAAU;AAAA,UACV,OAAM;AAAA,UAEN,8BAAC,UAAO;AAAA;AAAA,QANJ;AAAA,MAON;AAAA,MAEF;AAAA,QAAC;AAAA;AAAA,UAEC,SAAS,KAAK,MAAM;AAAA,UACpB,WAAU;AAAA,UACV,OAAM;AAAA,UAEN,8BAAC,YAAS;AAAA;AAAA,QALN;AAAA,MAMN;AAAA,OACF;AAGF,UAAM,WAAW,cAAc,SAAY,YAAY,GAAG,SAAS,IAAI,SAAS;AAEhF,UAAM,aAAa,OAAQ,QAAQ;AACnC,UAAM,gBAAgB,GAAG,QAAQ;AACjC,UAAM,cAAc,CAAC;AAErB,aAAS,SAAS,MAAW;AAC3B,aAAO,gBAAgB,MAAM,EAAC,QAAQ,GAAG,WAAW,GAAE,CAAC;AAAA,IACzD;AAEA,QAAI,WAAW;AACb,kBAAY,KAAK,EAAC,SAAS,eAAc,CAAC;AAAA,IAC5C,OACK;AACH,aAAO,QAAQ,MAAO,EACnB,OAAO,CAAC,CAAC,KAAK,MAAM,MAAM;AACzB,eAAO,IAAI,WAAW,aAAa;AAAA,MACrC,CAAC,EACA,QAAQ,CAAC,CAAC,MAAM,KAAK,MAAM;AAC1B,eAAO,YAAY,KAAK,KAAK;AAAA,MAC/B,CAAC;AAEH,UAAI,YAAY;AACd,oBAAY,KAAK,UAAU;AAAA,MAC7B;AAAA,IACF;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QAEN,OAAO;AAAA,QACP,WAAW,KAAK,MAAM;AAAA,QACtB,OAAO,mBAAmB,KAAK,MAAM,SAAS;AAAA,QAC9C,QAAQ;AAAA,QACR,UAAU;AAAA,QAEV;AAAA,UAAC;AAAA;AAAA,YACC,MAAM,EAAC,MAAM,MAAK;AAAA,YAClB,MAAM;AAAA,cACJ,SAAS;AAAA,cACT,MAAM,KAAK,MAAM;AAAA,YACnB;AAAA,YACA,WAAU;AAAA,YACV,SAAS,KAAK,MAAM;AAAA,YACpB,QAAQ,KAAK,MAAM;AAAA,YACnB,eAAe,KAAK;AAAA,YACpB,aAAa,KAAK;AAAA,YAClB,OAAO;AAAA,YACP,aAAa;AAAA,YACb,WAAW;AAAA,YACX,cAAc;AAAA,YACd;AAAA,YACA,UAAU,KAAK,MAAM;AAAA;AAAA,QACvB;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"aa37ab38c9a5b53df0808e7895b75ac0976599a1"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Di=function(){return s},s}Di();class m8 extends bn.Component{constructor(t){Di().f[2]++,Di().s[1]++;super(t);nn(this,"onJSONInvalid",(Di().s[3]++,t=>{Di().f[3]++,Di().s[4]++,this.setState({jsonError:!0})}));nn(this,"onJSONValid",(Di().s[5]++,()=>{Di().f[4]++,Di().s[6]++,this.setState({jsonError:!1})}));Di().s[2]++,this.state={jsonError:!1}}render(){Di().f[5]++;const{errors:t,fieldName:r,fieldType:i,value:o,canUndo:s}=(Di().s[7]++,this.props),{jsonError:a}=(Di().s[8]++,this.state),f=(Di().s[9]++,s?(Di().b[0][0]++,!s()):(Di().b[0][1]++,!0)),g=(Di().s[10]++,N.jsxs(N.Fragment,{children:[(Di().b[1][0]++,this.props.onUndo&&(Di().b[1][1]++,N.jsx(Ka,{onClick:this.props.onUndo,disabled:f,className:"maputnik-delete-stop",title:"Revert from expression",children:N.jsx(CJ,{})},"undo_action"))),N.jsx(Ka,{onClick:this.props.onDelete,className:"maputnik-delete-stop",title:"Delete expression",children:N.jsx(Ly,{})},"delete_action")]})),x=(Di().s[11]++,i===void 0?(Di().b[2][0]++,r):(Di().b[2][1]++,`${i}.${r}`)),k=(Di().s[12]++,t[x]),B=(Di().s[13]++,`${x}[`),P=(Di().s[14]++,[]);function R(H){return Di().f[6]++,Di().s[15]++,_W(H,{indent:2,maxLength:38})}return Di().s[16]++,a?(Di().b[3][0]++,Di().s[17]++,P.push({message:"Invalid JSON"})):(Di().b[3][1]++,Di().s[18]++,Object.entries(t).filter(([H,W])=>(Di().f[7]++,Di().s[19]++,H.startsWith(B))).forEach(([H,W])=>(Di().f[8]++,Di().s[20]++,P.push(W))),Di().s[21]++,k?(Di().b[4][0]++,Di().s[22]++,P.push(k)):Di().b[4][1]++),Di().s[23]++,N.jsx(Uo,{error:P,fieldSpec:this.props.fieldSpec,label:D5(this.props.fieldName),action:g,wideMode:!0,children:N.jsx(c8,{mode:{name:"mgl"},lint:{context:"expression",spec:this.props.fieldSpec},className:"maputnik-expression-editor",onFocus:this.props.onFocus,onBlur:this.props.onBlur,onJSONInvalid:this.onJSONInvalid,onJSONValid:this.onJSONValid,layer:o,lineNumbers:!1,maxHeight:200,lineWrapping:!0,getValue:R,onChange:this.props.onChange})})}}nn(m8,"defaultProps",(Di().s[0]++,{errors:{},onFocus:()=>{Di().f[0]++},onBlur:()=>{Di().f[1]++}}));function dn(){var e="/home/runner/work/maputnik/maputnik/src/components/FilterEditor.tsx",n="539ebaafc62ae27a5559677295475532f297ca46",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FilterEditor.tsx",statementMap:{0:{start:{line:16,column:17},end:{line:16,column:40}},1:{start:{line:17,column:2},end:{line:19,column:3}},2:{start:{line:18,column:4},end:{line:18,column:18}},3:{start:{line:20,column:20},end:{line:20,column:29}},4:{start:{line:21,column:16},end:{line:21,column:31}},5:{start:{line:22,column:2},end:{line:25,column:3}},6:{start:{line:23,column:4},end:{line:23,column:24}},7:{start:{line:24,column:4},end:{line:24,column:32}},8:{start:{line:26,column:2},end:{line:26,column:35}},9:{start:{line:29,column:2},end:{line:29,column:65}},10:{start:{line:32,column:2},end:{line:53,column:4}},11:{start:{line:55,column:19},end:{line:59,column:1}},12:{start:{line:61,column:2},end:{line:63,column:3}},13:{start:{line:62,column:4},end:{line:62,column:16}},14:{start:{line:64,column:21},end:{line:64,column:42}},15:{start:{line:65,column:2},end:{line:65,column:38}},16:{start:{line:68,column:2},end:{line:68,column:52}},17:{start:{line:71,column:2},end:{line:73,column:3}},18:{start:{line:72,column:4},end:{line:72,column:97}},19:{start:{line:72,column:38},end:{line:72,column:59}},20:{start:{line:72,column:75},end:{line:72,column:84}},21:{start:{line:74,column:2},end:{line:74,column:15}},22:{start:{line:77,column:24},end:{line:79,column:3}},23:{start:{line:81,column:4},end:{line:81,column:17}},24:{start:{line:82,column:4},end:{line:85,column:6}},25:{start:{line:89,column:22},end:{line:89,column:58}},26:{start:{line:90,column:4},end:{line:90,column:35}},27:{start:{line:91,column:4},end:{line:91,column:35}},28:{start:{line:94,column:22},end:{line:94,column:58}},29:{start:{line:95,column:4},end:{line:95,column:39}},30:{start:{line:96,column:4},end:{line:96,column:35}},31:{start:{line:98,column:18},end:{line:102,column:3}},32:{start:{line:99,column:26},end:{line:99,column:62}},33:{start:{line:100,column:4},end:{line:100,column:43}},34:{start:{line:101,column:4},end:{line:101,column:39}},35:{start:{line:103,column:16},end:{line:107,column:3}},36:{start:{line:104,column:4},end:{line:106,column:7}},37:{start:{line:108,column:15},end:{line:112,column:3}},38:{start:{line:109,column:4},end:{line:111,column:7}},39:{start:{line:113,column:19},end:{line:119,column:3}},40:{start:{line:114,column:19},end:{line:114,column:46}},41:{start:{line:115,column:4},end:{line:115,column:47}},42:{start:{line:116,column:4},end:{line:118,column:7}},43:{start:{line:121,column:32},end:{line:121,column:75}},44:{start:{line:122,column:4},end:{line:135,column:5}},45:{start:{line:123,column:6},end:{line:126,column:8}},46:{start:{line:127,column:11},end:{line:135,column:5}},47:{start:{line:128,column:6},end:{line:130,column:8}},48:{start:{line:132,column:6},end:{line:134,column:8}},49:{start:{line:138,column:23},end:{line:138,column:33}},50:{start:{line:139,column:36},end:{line:139,column:46}},51:{start:{line:140,column:22},end:{line:142,column:5}},52:{start:{line:143,column:26},end:{line:143,column:33}},53:{start:{line:144,column:36},end:{line:144,column:112}},54:{start:{line:145,column:4},end:{line:265,column:5}},55:{start:{line:146,column:6},end:{line:159,column:11}},56:{start:{line:160,column:11},end:{line:265,column:5}},57:{start:{line:161,column:21},end:{line:161,column:48}},58:{start:{line:162,column:26},end:{line:162,column:35}},59:{start:{line:163,column:22},end:{line:163,column:37}},60:{start:{line:164,column:38},end:{line:172,column:10}},61:{start:{line:173,column:27},end:{line:186,column:8}},62:{start:{line:174,column:22},end:{line:174,column:50}},63:{start:{line:175,column:8},end:{line:185,column:29}},64:{start:{line:187,column:6},end:{line:234,column:11}},65:{start:{line:198,column:33},end:{line:198,column:63}},66:{start:{line:236,column:25},end:{line:236,column:35}},67:{start:{line:237,column:6},end:{line:264,column:11}},68:{start:{line:242,column:14},end:{line:242,column:59}},69:{start:{line:243,column:14},end:{line:243,column:49}}},fnMap:{0:{name:"combiningFilter",decl:{start:{line:15,column:9},end:{line:15,column:24}},loc:{start:{line:15,column:32},end:{line:27,column:1}},line:15},1:{name:"migrateFilter",decl:{start:{line:28,column:9},end:{line:28,column:22}},loc:{start:{line:28,column:31},end:{line:30,column:1}},line:28},2:{name:"createStyleFromFilter",decl:{start:{line:31,column:9},end:{line:31,column:30}},loc:{start:{line:31,column:39},end:{line:54,column:1}},line:31},3:{name:"checkIfSimpleFilter",decl:{start:{line:60,column:9},end:{line:60,column:28}},loc:{start:{line:60,column:37},end:{line:66,column:1}},line:60},4:{name:"hasCombiningFilter",decl:{start:{line:67,column:9},end:{line:67,column:27}},loc:{start:{line:67,column:36},end:{line:69,column:1}},line:67},5:{name:"hasNestedCombiningFilter",decl:{start:{line:70,column:9},end:{line:70,column:33}},loc:{start:{line:70,column:42},end:{line:75,column:1}},line:70},6:{name:"(anonymous_6)",decl:{start:{line:72,column:31},end:{line:72,column:32}},loc:{start:{line:72,column:38},end:{line:72,column:59}},line:72},7:{name:"(anonymous_7)",decl:{start:{line:72,column:68},end:{line:72,column:69}},loc:{start:{line:72,column:75},end:{line:72,column:84}},line:72},8:{name:"(anonymous_8)",decl:{start:{line:80,column:2},end:{line:80,column:3}},loc:{start:{line:80,column:21},end:{line:86,column:3}},line:80},9:{name:"(anonymous_9)",decl:{start:{line:88,column:2},end:{line:88,column:3}},loc:{start:{line:88,column:42},end:{line:92,column:3}},line:88},10:{name:"(anonymous_10)",decl:{start:{line:93,column:2},end:{line:93,column:3}},loc:{start:{line:93,column:30},end:{line:97,column:3}},line:93},11:{name:"(anonymous_11)",decl:{start:{line:98,column:18},end:{line:98,column:19}},loc:{start:{line:98,column:24},end:{line:102,column:3}},line:98},12:{name:"(anonymous_12)",decl:{start:{line:103,column:16},end:{line:103,column:17}},loc:{start:{line:103,column:25},end:{line:107,column:3}},line:103},13:{name:"(anonymous_13)",decl:{start:{line:108,column:15},end:{line:108,column:16}},loc:{start:{line:108,column:21},end:{line:112,column:3}},line:108},14:{name:"(anonymous_14)",decl:{start:{line:113,column:19},end:{line:113,column:20}},loc:{start:{line:113,column:25},end:{line:119,column:3}},line:113},15:{name:"(anonymous_15)",decl:{start:{line:120,column:2},end:{line:120,column:3}},loc:{start:{line:120,column:55},end:{line:136,column:3}},line:120},16:{name:"(anonymous_16)",decl:{start:{line:137,column:2},end:{line:137,column:3}},loc:{start:{line:137,column:11},end:{line:266,column:3}},line:137},17:{name:"(anonymous_17)",decl:{start:{line:173,column:39},end:{line:173,column:40}},loc:{start:{line:173,column:51},end:{line:186,column:7}},line:173},18:{name:"(anonymous_18)",decl:{start:{line:198,column:26},end:{line:198,column:27}},loc:{start:{line:198,column:33},end:{line:198,column:63}},line:198},19:{name:"(anonymous_19)",decl:{start:{line:241,column:22},end:{line:241,column:23}},loc:{start:{line:241,column:28},end:{line:244,column:13}},line:241}},branchMap:{0:{loc:{start:{line:16,column:17},end:{line:16,column:40}},type:"binary-expr",locations:[{start:{line:16,column:17},end:{line:16,column:29}},{start:{line:16,column:33},end:{line:16,column:40}}],line:16},1:{loc:{start:{line:17,column:2},end:{line:19,column:3}},type:"if",locations:[{start:{line:17,column:2},end:{line:19,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:17},2:{loc:{start:{line:22,column:2},end:{line:25,column:3}},type:"if",locations:[{start:{line:22,column:2},end:{line:25,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22},3:{loc:{start:{line:61,column:2},end:{line:63,column:3}},type:"if",locations:[{start:{line:61,column:2},end:{line:63,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},4:{loc:{start:{line:61,column:6},end:{line:61,column:59}},type:"binary-expr",locations:[{start:{line:61,column:6},end:{line:61,column:25}},{start:{line:61,column:29},end:{line:61,column:59}}],line:61},5:{loc:{start:{line:71,column:2},end:{line:73,column:3}},type:"if",locations:[{start:{line:71,column:2},end:{line:73,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:71},6:{loc:{start:{line:122,column:4},end:{line:135,column:5}},type:"if",locations:[{start:{line:122,column:4},end:{line:135,column:5}},{start:{line:127,column:11},end:{line:135,column:5}}],line:122},7:{loc:{start:{line:122,column:8},end:{line:122,column:73}},type:"binary-expr",locations:[{start:{line:122,column:8},end:{line:122,column:28}},{start:{line:122,column:32},end:{line:122,column:73}}],line:122},8:{loc:{start:{line:127,column:11},end:{line:135,column:5}},type:"if",locations:[{start:{line:127,column:11},end:{line:135,column:5}},{start:{line:131,column:11},end:{line:135,column:5}}],line:127},9:{loc:{start:{line:127,column:15},end:{line:127,column:80}},type:"binary-expr",locations:[{start:{line:127,column:15},end:{line:127,column:34}},{start:{line:127,column:38},end:{line:127,column:80}}],line:127},10:{loc:{start:{line:144,column:36},end:{line:144,column:112}},type:"binary-expr",locations:[{start:{line:144,column:36},end:{line:144,column:55}},{start:{line:144,column:59},end:{line:144,column:112}}],line:144},11:{loc:{start:{line:145,column:4},end:{line:265,column:5}},type:"if",locations:[{start:{line:145,column:4},end:{line:265,column:5}},{start:{line:160,column:11},end:{line:265,column:5}}],line:145},12:{loc:{start:{line:160,column:11},end:{line:265,column:5}},type:"if",locations:[{start:{line:160,column:11},end:{line:265,column:5}},{start:{line:235,column:11},end:{line:265,column:5}}],line:160},13:{loc:{start:{line:184,column:10},end:{line:184,column:119}},type:"binary-expr",locations:[{start:{line:184,column:10},end:{line:184,column:15}},{start:{line:184,column:35},end:{line:184,column:119}}],line:184},14:{loc:{start:{line:229,column:30},end:{line:229,column:62}},type:"cond-expr",locations:[{start:{line:229,column:51},end:{line:229,column:53}},{start:{line:229,column:56},end:{line:229,column:62}}],line:229},15:{loc:{start:{line:252,column:8},end:{line:263,column:12}},type:"binary-expr",locations:[{start:{line:252,column:8},end:{line:252,column:38}},{start:{line:252,column:58},end:{line:263,column:12}}],line:252}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FilterEditor.tsx"],names:[],mappings:"AA+LQ,SAsDA,UAtDA,KAGA,YAHA;AA/LR,OAAO,WAAW;AAClB,SAAQ,4BAA2B;AACnC,SAAQ,eAAc;AAEtB,SAAQ,QAAQ,SAAS,qBAAoB;AAC7C,SAAQ,0BAAyB;AAEjC,SAAQ,0BAAyB;AACjC,OAAO,iBAAiB;AACxB,OAAO,WAAW;AAClB,OAAO,wBAAwB;AAC/B,OAAO,uBAAuB;AAC9B,OAAO,iBAAiB;AACxB,OAAO,SAAS;AAChB,OAAO,wBAAwB;AAG/B,SAAS,gBAAgB,OAA+E;AACtG,QAAM,SAAS,MAAM,UAAU,CAAC,KAAK;AAErC,MAAI,CAAC,MAAM,QAAQ,MAAM,GAAG;AAC1B,WAAO;AAAA,EACT;AAEA,MAAI,cAAc,OAAO,CAAC;AAC1B,MAAI,UAAU,OAAO,MAAM,CAAC;AAE5B,MAAG,mBAAmB,QAAQ,WAAW,IAAI,GAAG;AAC9C,kBAAc;AACd,cAAU,CAAC,OAAO,MAAM,CAAC,CAAC;AAAA,EAC5B;AAEA,SAAO,CAAC,aAAa,GAAG,OAAO;AACjC;AAEA,SAAS,cAAc,QAA6D;AAElF,SAAQ,QAAQ,sBAAsB,MAAM,CAAQ,EAAE,OAAO,CAAC,EAAU;AAC1E;AAEA,SAAS,sBAAsB,QAAgG;AAC7H,SAAO;AAAA,IACL,MAAM;AAAA,IACN,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,YAAY,EAAC,qBAAqB,SAAQ;AAAA,IAC1C,WAAW;AAAA,MACT,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IACA,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,MACR;AAAA,QACE,IAAI;AAAA,QACJ,MAAM;AAAA,QACN,QAAQ;AAAA,QACR;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEA,MAAM,aAAa;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AACF;AAGA,SAAS,oBAAqB,QAA6D;AACzF,MAAI,OAAO,WAAW,KAAK,WAAW,SAAS,OAAO,CAAC,CAAC,GAAG;AACzD,WAAO;AAAA,EACT;AACA,QAAM,aAAa,cAAc,MAAM;AACvC,SAAO,CAAC,QAAQ,YAAY,MAAM;AACpC;AAEA,SAAS,mBAAmB,QAA6D;AACvF,SAAO,mBAAmB,QAAQ,OAAO,CAAC,CAAC,KAAK;AAClD;AAEA,SAAS,yBAAyB,QAA6D;AAC7F,MAAG,mBAAmB,MAAM,GAAG;AAC7B,WAAO,OAAO,MAAM,CAAC,EAAE,IAAI,OAAK,mBAAmB,CAAQ,CAAC,EAAE,OAAO,OAAK,KAAK,IAAI,EAAE,SAAS;AAAA,EAChG;AACA,SAAO;AACT;AAgBA,qBAAqB,qBAAqB,MAAM,UAAgD;AAAA,EAC9F,OAAO,eAAe;AAAA,IACpB,QAAQ,CAAC,KAAK;AAAA,EAChB;AAAA,EAEA,YAAa,OAA0B;AACrC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,SAAS;AAAA,MACT,qBAAqB,oBAAoB,gBAAgB,KAAK,CAAC;AAAA,IACjE;AAAA,EACF;AAAA;AAAA,EAGA,oBAAoB,WAAmB,SAAgB;AACrD,UAAM,YAAY,gBAAgB,KAAK,KAAK,EAAE,MAAM,CAAC;AACrD,cAAU,SAAS,IAAI;AACvB,SAAK,MAAM,SAAS,SAAS;AAAA,EAC/B;AAAA,EAEA,iBAAiB,WAAmB;AAClC,UAAM,YAAY,gBAAgB,KAAK,KAAK,EAAE,MAAM,CAAC;AACrD,cAAU,OAAO,YAAY,GAAG,CAAC;AACjC,SAAK,MAAM,SAAS,SAAS;AAAA,EAC/B;AAAA,EAEA,gBAAgB,MAAM;AACpB,UAAM,gBAAgB,gBAAgB,KAAK,KAAK,EAAE,MAAM,CAAC;AACzD,IAAC,cAAwB,KAAK,CAAC,MAAM,QAAQ,EAAE,CAAC;AAChD,SAAK,MAAM,SAAS,aAAa;AAAA,EACnC;AAAA,EAEA,cAAc,CAAC,QAAiB;AAC9B,SAAK,SAAS;AAAA,MACZ,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAAA,EAEA,aAAa,MAAM;AACjB,SAAK,SAAS;AAAA,MACZ,qBAAqB;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EAEA,iBAAiB,MAAM;AACrB,UAAM,SAAS,gBAAgB,KAAK,KAAK;AACzC,SAAK,MAAM,SAAS,cAAc,MAAM,CAAC;AACzC,SAAK,SAAS;AAAA,MACZ,qBAAqB;AAAA,IACvB,CAAC;AAAA,EACH;AAAA,EAEA,OAAO,yBAAyB,OAA0B,cAAiC;AACzF,UAAM,sBAAsB,oBAAoB,gBAAgB,KAAK,CAAC;AAGtE,QAAI,CAAC,uBAAuB,aAAa,wBAAwB,MAAM;AACrE,aAAO;AAAA,QACL,qBAAqB;AAAA,QACrB,qBAAqB;AAAA,MACvB;AAAA,IACF,WACS,uBAAuB,aAAa,wBAAwB,OAAO;AAC1E,aAAO;AAAA,QACL,qBAAqB;AAAA,MACvB;AAAA,IACF,OACK;AACH,aAAO;AAAA,QACL,qBAAqB;AAAA,MACvB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,OAAM,IAAI,KAAK;AACtB,UAAM,EAAC,oBAAmB,IAAI,KAAK;AACnC,UAAM,YAAU;AAAA,MACd,KAAK,OAAO,MAAM,OAAO,MAAM;AAAA,IACjC;AACA,UAAM,gBAAgB,CAAC,KAAK;AAE5B,UAAM,0BAA0B,uBAAuB,yBAAyB,gBAAgB,KAAK,KAAK,CAAC;AAE3G,QAAI,yBAAyB;AAC3B,aAAO,qBAAC,SAAI,WAAU,sCACpB;AAAA,4BAAC,OAAE,+CAEH;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,SAAS,KAAK;AAAA,YACd,OAAM;AAAA,YAEN;AAAA,kCAAC,SAAI,OAAO,EAAC,aAAa,SAAS,OAAM,QAAQ,QAAO,QAAQ,eAAe,SAAQ,GAAG,SAAQ,aAChG,8BAAC,UAAK,MAAK,gBAAe,GAAG,oBAAoB,GACnD;AAAA,cAAM;AAAA;AAAA;AAAA,QAER;AAAA,SACF;AAAA,IACF,WACS,qBAAqB;AAC5B,YAAM,SAAS,gBAAgB,KAAK,KAAK;AACzC,YAAM,cAAc,OAAO,CAAC;AAC5B,YAAM,UAAU,OAAO,MAAM,CAAC;AAE9B,YAAM,UACJ,oBAAC,SACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,KAAK;AAAA,UACd,OAAM;AAAA,UACN,WAAU;AAAA,UAEV,8BAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,SAAQ,GAAG,SAAQ,aAC1E,8BAAC,UAAK,MAAK,gBAAe,GAAG,oBAAoB,GACnD;AAAA;AAAA,MACF,GACF;AAGF,YAAM,eAAe,QAAQ,IAAI,CAAC,GAAG,QAAQ;AAC3C,cAAM,QAAQ,OAAQ,UAAU,MAAI,CAAC,GAAG;AAExC,eACE,qBAAC,SACC;AAAA,8BAAC,qBAA4B,UAAU,KAAK,iBAAiB,KAAK,MAAM,GAAG,GACzE;AAAA,YAAC;AAAA;AAAA,cACC,YAAY,KAAK,MAAM;AAAA,cACvB,QAAQ;AAAA,cACR,UAAU,KAAK,oBAAoB,KAAK,MAAM,MAAM,CAAC;AAAA;AAAA,UACvD,KALsB,GAMxB;AAAA,UACC,SACC,oBAAC,SAAgB,WAAU,yBAAyB,gBAAM,WAAjD,OAAyD;AAAA,aAT5D,SAAS,GAAG,EAWtB;AAAA,MAEJ,CAAC;AAGD,aACE,iCACE;AAAA;AAAA,UAAC;AAAA;AAAA,YAEC;AAAA,YACA,OAAO;AAAA,YACP,QAAQ;AAAA,YAER;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO;AAAA,gBACP,UAAU,CAAC,MAAqB,KAAK,oBAAoB,GAAG,CAAC;AAAA,gBAC7D,SAAS,CAAC,CAAC,OAAO,sBAAsB,GAAG,CAAC,QAAQ,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC;AAAA;AAAA,YACzG;AAAA;AAAA,UATI;AAAA,QAUN;AAAA,QACC;AAAA,QACD;AAAA,UAAC;AAAA;AAAA,YAEC,WAAU;AAAA,YAEV;AAAA,cAAC;AAAA;AAAA,gBACC,eAAY;AAAA,gBACZ,WAAU;AAAA,gBACV,SAAS,KAAK;AAAA,gBAEd;AAAA,sCAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,cAAa,GAAG,SAAQ,aAC/E,8BAAC,UAAK,MAAK,gBAAe,GAAG,sBAAsB,GACrD;AAAA,kBAAM;AAAA;AAAA;AAAA,YACR;AAAA;AAAA,UAXI;AAAA,QAYN;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YAEC,WAAU;AAAA,YACV,OAAO,EAAC,SAAS,KAAK,MAAM,UAAU,KAAK,OAAM;AAAA,YAEjD,8BAAC,OAAI,WAAsB;AAAA;AAAA,UAJvB;AAAA,QAKN;AAAA,SACF;AAAA,IAEJ,OACK;AACH,YAAM,EAAC,OAAM,IAAI,KAAK;AAEtB,aACE,iCACE;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,UAAU,MAAM;AACd,mBAAK,SAAS,EAAC,qBAAqB,KAAI,CAAC;AACzC,mBAAK,MAAM,SAAS,aAAa;AAAA,YACnC;AAAA,YACA,WAAU;AAAA,YACV;AAAA,YACA,OAAO;AAAA,YACP;AAAA,YACA,UAAU,KAAK,MAAM;AAAA;AAAA,QACvB;AAAA,QACC,KAAK,MAAM,uBACV,qBAAC,SAAI,WAAU,yBAAwB;AAAA;AAAA,UACG;AAAA,UACxC;AAAA,YAAC;AAAA;AAAA,cACC,SAAS,KAAK;AAAA,cACd,WAAU;AAAA,cACX;AAAA;AAAA,UAED;AAAA,WACF;AAAA,SAEJ;AAAA,IAEJ;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"539ebaafc62ae27a5559677295475532f297ca46"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return dn=function(){return s},s}dn();function Vp(e){dn().f[0]++;const n=(dn().s[0]++,dn().b[0][0]++,e.filter||(dn().b[0][1]++,["all"]));if(dn().s[1]++,Array.isArray(n))dn().b[1][1]++;else return dn().b[1][0]++,dn().s[2]++,n;let t=(dn().s[3]++,n[0]),r=(dn().s[4]++,n.slice(1));return dn().s[5]++,h8.indexOf(t)<0?(dn().b[2][0]++,dn().s[6]++,t="all",dn().s[7]++,r=[n.slice(0)]):dn().b[2][1]++,dn().s[8]++,[t,...r]}function zpe(e){return dn().f[1]++,dn().s[9]++,EX(jpe(e)).layers[0].filter}function jpe(e){return dn().f[2]++,dn().s[10]++,{id:"tmp",version:8,name:"Empty Style",metadata:{"maputnik:renderer":"mlgljs"},sources:{tmp:{type:"geojson",data:""}},sprite:"",glyphs:"https://orangemug.github.io/font-glyphs/glyphs/{fontstack}/{range}.pbf",layers:[{id:"tmp",type:"fill",source:"tmp",filter:e}]}}const Wpe=(dn().s[11]++,["all","any","none"]);function JT(e){if(dn().f[3]++,dn().s[12]++,dn().b[4][0]++,e.length===1&&(dn().b[4][1]++,Wpe.includes(e[0])))return dn().b[3][0]++,dn().s[13]++,!0;dn().b[3][1]++;const n=(dn().s[14]++,EC(e));return dn().s[15]++,!Q4.isEqual(n,e)}function eK(e){return dn().f[4]++,dn().s[16]++,h8.indexOf(e[0])>=0}function Npe(e){return dn().f[5]++,dn().s[17]++,eK(e)?(dn().b[5][0]++,dn().s[18]++,e.slice(1).map(n=>(dn().f[6]++,dn().s[19]++,eK(n))).filter(n=>(dn().f[7]++,dn().s[20]++,n==!0)).length>0):(dn().b[5][1]++,dn().s[21]++,!1)}class UW extends bn.Component{constructor(t){dn().f[8]++,dn().s[23]++;super(t);nn(this,"addFilterItem",(dn().s[31]++,()=>{dn().f[11]++;const t=(dn().s[32]++,Vp(this.props).slice(0));dn().s[33]++,t.push(["==","name",""]),dn().s[34]++,this.props.onChange(t)}));nn(this,"onToggleDoc",(dn().s[35]++,t=>{dn().f[12]++,dn().s[36]++,this.setState({showDoc:t})}));nn(this,"makeFilter",(dn().s[37]++,()=>{dn().f[13]++,dn().s[38]++,this.setState({displaySimpleFilter:!0})}));nn(this,"makeExpression",(dn().s[39]++,()=>{dn().f[14]++;const t=(dn().s[40]++,Vp(this.props));dn().s[41]++,this.props.onChange(zpe(t)),dn().s[42]++,this.setState({displaySimpleFilter:!1})}));dn().s[24]++,this.state={showDoc:!1,displaySimpleFilter:JT(Vp(t))}}onFilterPartChanged(t,r){dn().f[9]++;const i=(dn().s[25]++,Vp(this.props).slice(0));dn().s[26]++,i[t]=r,dn().s[27]++,this.props.onChange(i)}deleteFilterItem(t){dn().f[10]++;const r=(dn().s[28]++,Vp(this.props).slice(0));dn().s[29]++,r.splice(t+1,1),dn().s[30]++,this.props.onChange(r)}static getDerivedStateFromProps(t,r){dn().f[15]++;const i=(dn().s[43]++,JT(Vp(t)));return dn().s[44]++,dn().b[7][0]++,!i&&(dn().b[7][1]++,r.displaySimpleFilter===!0)?(dn().b[6][0]++,dn().s[45]++,{displaySimpleFilter:!1,valueIsSimpleFilter:!1}):(dn().b[6][1]++,dn().s[46]++,dn().b[9][0]++,i&&(dn().b[9][1]++,r.displaySimpleFilter===!1)?(dn().b[8][0]++,dn().s[47]++,{valueIsSimpleFilter:!0}):(dn().b[8][1]++,dn().s[48]++,{valueIsSimpleFilter:!1}))}render(){dn().f[16]++;const{errors:t}=(dn().s[49]++,this.props),{displaySimpleFilter:r}=(dn().s[50]++,this.state),i=(dn().s[51]++,{doc:ma.layer.filter.doc+" Combine multiple filters together by using a compound filter."}),o=(dn().s[52]++,["all"]),s=(dn().s[53]++,dn().b[10][0]++,r&&(dn().b[10][1]++,Npe(Vp(this.props))));if(dn().s[54]++,s)return dn().b[11][0]++,dn().s[55]++,N.jsxs("div",{className:"maputnik-filter-editor-unsupported",children:[N.jsx("p",{children:"Nested filters are not supported."}),N.jsxs(Ka,{onClick:this.makeExpression,title:"Convert to expression",children:[N.jsx("svg",{style:{marginRight:"0.2em",width:"14px",height:"14px",verticalAlign:"middle"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:S_})}),"Upgrade to expression"]})]});if(dn().b[11][1]++,dn().s[56]++,r){dn().b[12][0]++;const a=(dn().s[57]++,Vp(this.props)),f=(dn().s[58]++,a[0]),g=(dn().s[59]++,a.slice(1)),x=(dn().s[60]++,N.jsx("div",{children:N.jsx(Ka,{onClick:this.makeExpression,title:"Convert to expression",className:"maputnik-make-zoom-function",children:N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"middle"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:S_})})})})),k=(dn().s[61]++,g.map((B,P)=>{dn().f[17]++;const R=(dn().s[62]++,t[`filter[${P+1}]`]);return dn().s[63]++,N.jsxs("div",{children:[N.jsx(hpe,{onDelete:this.deleteFilterItem.bind(this,P),children:N.jsx(MW,{properties:this.props.properties,filter:B,onChange:this.onFilterPartChanged.bind(this,P+1)})},P),(dn().b[13][0]++,R&&(dn().b[13][1]++,N.jsx("div",{className:"maputnik-inline-error",children:R.message},"error")))]},`block-${P}`)}));return dn().s[64]++,N.jsxs(N.Fragment,{children:[N.jsx(Uo,{fieldSpec:i,label:"Filter",action:x,children:N.jsx(w1,{value:f,onChange:B=>(dn().f[18]++,dn().s[65]++,this.onFilterPartChanged(0,B)),options:[["all","every filter matches"],["none","no filter matches"],["any","any filter matches"]]})},"top"),k,N.jsx("div",{className:"maputnik-filter-editor-add-wrapper",children:N.jsxs(Ka,{"data-wd-key":"layer-filter-button",className:"maputnik-add-filter",onClick:this.addFilterItem,children:[N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"text-bottom"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:d8})})," Add filter"]})},"buttons"),N.jsx("div",{className:"maputnik-doc-inline",style:{display:this.state.showDoc?(dn().b[14][0]++,""):(dn().b[14][1]++,"none")},children:N.jsx(FB,{fieldSpec:i})},"doc")]})}else{dn().b[12][1]++;const{filter:a}=(dn().s[66]++,this.props);return dn().s[67]++,N.jsxs(N.Fragment,{children:[N.jsx(m8,{onDelete:()=>{dn().f[19]++,dn().s[68]++,this.setState({displaySimpleFilter:!0}),dn().s[69]++,this.props.onChange(o)},fieldName:"filter",fieldSpec:i,value:a,errors:t,onChange:this.props.onChange}),(dn().b[15][0]++,this.state.valueIsSimpleFilter&&(dn().b[15][1]++,N.jsxs("div",{className:"maputnik-expr-infobox",children:["You've entered a old style filter,"," ",N.jsx("button",{onClick:this.makeFilter,className:"maputnik-expr-infobox__button",children:"switch to filter editor"})]})))]})}}}nn(UW,"defaultProps",(dn().s[22]++,{filter:["all"]}));var U5={},Ps={},rb={},Gpe=typeof window=="object"&&window&&window.Object===Object&&window,RW=Gpe,Qpe=RW,$pe=typeof self=="object"&&self&&self.Object===Object&&self,Ype=Qpe||$pe||Function("return this")(),gh=Ype,qpe=gh,Vpe=qpe.Symbol,ib=Vpe,tK=ib,LW=Object.prototype,Hpe=LW.hasOwnProperty,Zpe=LW.toString,Xv=tK?tK.toStringTag:void 0;function Xpe(e){var n=Hpe.call(e,Xv),t=e[Xv];try{e[Xv]=void 0;var r=!0}catch{}var i=Zpe.call(e);return r&&(n?e[Xv]=t:delete e[Xv]),i}var Jpe=Xpe,eme=Object.prototype,tme=eme.toString;function nme(e){return tme.call(e)}var rme=nme,nK=ib,ime=Jpe,ome=rme,ame="[object Null]",sme="[object Undefined]",rK=nK?nK.toStringTag:void 0;function lme(e){return e==null?e===void 0?sme:ame:rK&&rK in Object(e)?ime(e):ome(e)}var M1=lme,ume=Array.isArray,Nc=ume;function Ame(e){return e!=null&&typeof e=="object"}var bf=Ame,cme=M1,dme=Nc,hme=bf,fme="[object String]";function pme(e){return typeof e=="string"||!dme(e)&&hme(e)&&cme(e)==fme}var mme=pme;function gme(e){return function(n,t,r){for(var i=-1,o=Object(n),s=r(n),a=s.length;a--;){var f=s[e?a:++i];if(t(o[f],f,o)===!1)break}return n}}var yme=gme,vme=yme,Cme=vme(),zW=Cme;function _me(e,n){for(var t=-1,r=Array(e);++t-1&&e%1==0&&e-1&&e%1==0&&e<=Ume}var v8=Rme,Lme=M1,zme=v8,jme=bf,Wme="[object Arguments]",Nme="[object Array]",Gme="[object Boolean]",Qme="[object Date]",$me="[object Error]",Yme="[object Function]",qme="[object Map]",Vme="[object Number]",Hme="[object Object]",Zme="[object RegExp]",Xme="[object Set]",Jme="[object String]",e0e="[object WeakMap]",t0e="[object ArrayBuffer]",n0e="[object DataView]",r0e="[object Float32Array]",i0e="[object Float64Array]",o0e="[object Int8Array]",a0e="[object Int16Array]",s0e="[object Int32Array]",l0e="[object Uint8Array]",u0e="[object Uint8ClampedArray]",A0e="[object Uint16Array]",c0e="[object Uint32Array]",rs={};rs[r0e]=rs[i0e]=rs[o0e]=rs[a0e]=rs[s0e]=rs[l0e]=rs[u0e]=rs[A0e]=rs[c0e]=!0;rs[Wme]=rs[Nme]=rs[t0e]=rs[Gme]=rs[n0e]=rs[Qme]=rs[$me]=rs[Yme]=rs[qme]=rs[Vme]=rs[Hme]=rs[Zme]=rs[Xme]=rs[Jme]=rs[e0e]=!1;function d0e(e){return jme(e)&&zme(e.length)&&!!rs[Lme(e)]}var h0e=d0e;function f0e(e){return function(n){return e(n)}}var C8=f0e,i4={exports:{}};i4.exports;(function(e,n){var t=RW,r=n&&!n.nodeType&&n,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,s=o&&t.process,a=function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}}();e.exports=a})(i4,i4.exports);var _8=i4.exports,p0e=h0e,m0e=C8,oK=_8,aK=oK&&oK.isTypedArray,g0e=aK?m0e(aK):p0e,b8=g0e,y0e=bme,v0e=g8,C0e=Nc,_0e=R5,b0e=y8,x0e=b8,w0e=Object.prototype,M0e=w0e.hasOwnProperty;function S0e(e,n){var t=C0e(e),r=!t&&v0e(e),i=!t&&!r&&_0e(e),o=!t&&!r&&!i&&x0e(e),s=t||r||i||o,a=s?y0e(e.length,String):[],f=a.length;for(var g in e)(n||M0e.call(e,g))&&!(s&&(g=="length"||i&&(g=="offset"||g=="parent")||o&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||b0e(g,f)))&&a.push(g);return a}var WW=S0e,E0e=Object.prototype;function O0e(e){var n=e&&e.constructor,t=typeof n=="function"&&n.prototype||E0e;return e===t}var x8=O0e;function B0e(e,n){return function(t){return e(n(t))}}var NW=B0e,k0e=NW,I0e=k0e(Object.keys,Object),T0e=I0e,K0e=x8,P0e=T0e,F0e=Object.prototype,D0e=F0e.hasOwnProperty;function U0e(e){if(!K0e(e))return P0e(e);var n=[];for(var t in Object(e))D0e.call(e,t)&&t!="constructor"&&n.push(t);return n}var R0e=U0e;function L0e(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var kd=L0e,z0e=M1,j0e=kd,W0e="[object AsyncFunction]",N0e="[object Function]",G0e="[object GeneratorFunction]",Q0e="[object Proxy]";function $0e(e){if(!j0e(e))return!1;var n=z0e(e);return n==N0e||n==G0e||n==W0e||n==Q0e}var w8=$0e,Y0e=w8,q0e=v8;function V0e(e){return e!=null&&q0e(e.length)&&!Y0e(e)}var $y=V0e,H0e=WW,Z0e=R0e,X0e=$y;function J0e(e){return X0e(e)?H0e(e):Z0e(e)}var ob=J0e,e1e=zW,t1e=ob;function n1e(e,n){return e&&e1e(e,n,t1e)}var GW=n1e;function r1e(e){return e}var L5=r1e,i1e=L5;function o1e(e){return typeof e=="function"?e:i1e}var QW=o1e,a1e=GW,s1e=QW;function l1e(e,n){return e&&a1e(e,s1e(n))}var M8=l1e,u1e=NW,A1e=u1e(Object.getPrototypeOf,Object),S8=A1e,c1e=M1,d1e=S8,h1e=bf,f1e="[object Object]",p1e=Function.prototype,m1e=Object.prototype,$W=p1e.toString,g1e=m1e.hasOwnProperty,y1e=$W.call(Object);function v1e(e){if(!h1e(e)||c1e(e)!=f1e)return!1;var n=d1e(e);if(n===null)return!0;var t=g1e.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&$W.call(t)==y1e}var YW=v1e;function C1e(e,n){for(var t=-1,r=e==null?0:e.length,i=Array(r);++t-1}var D1e=F1e,U1e=z5;function R1e(e,n){var t=this.__data__,r=U1e(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}var L1e=R1e,z1e=b1e,j1e=k1e,W1e=K1e,N1e=D1e,G1e=L1e;function Yy(e){var n=-1,t=e==null?0:e.length;for(this.clear();++na))return!1;var g=o.get(e),x=o.get(n);if(g&&x)return g==n&&x==e;var k=-1,B=!0,P=t&nve?new Xye:void 0;for(o.set(e,n),o.set(n,e);++k0&&arguments[0]!==void 0?arguments[0]:[],t=[];return(0,Qbe.default)(n,function(r){Array.isArray(r)?e(r).map(function(i){return t.push(i)}):(0,Nbe.default)(r)?(0,jbe.default)(r,function(i,o){i===!0&&t.push(o),t.push(o+"-"+i)}):(0,Lbe.default)(r)&&t.push(r)}),t};rb.default=$be;var sb={};function Ybe(e,n){for(var t=-1,r=e==null?0:e.length;++t1&&arguments[1]!==void 0?arguments[1]:[],r=n.default&&(0,s4e.default)(n.default)||{};return t.map(function(i){var o=n[i];return o&&(0,o4e.default)(o,function(s,a){r[a]||(r[a]={}),r[a]=l4e({},r[a],o[a])}),i}),r};sb.default=u4e;var Ab={};Object.defineProperty(Ab,"__esModule",{value:!0});Ab.autoprefix=void 0;var A4e=M8,zK=d4e(A4e),c4e=Object.assign||function(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){v4e(i,r);function i(){var o,s,a,f;y4e(this,i);for(var g=arguments.length,x=Array(g),k=0;k1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){M4e(i,r);function i(){var o,s,a,f;w4e(this,i);for(var g=arguments.length,x=Array(g),k=0;k1&&arguments[1]!==void 0?arguments[1]:!0;r[s]=a};return n===0&&i("first-child"),n===t-1&&i("last-child"),(n===0||n%2===0)&&i("even"),Math.abs(n%2)===1&&i("odd"),i("nth-child",n),r};P8.default=E4e;Object.defineProperty(Ps,"__esModule",{value:!0});Ps.ReactCSS=Ps.loop=Ps.handleActive=Ps.handleHover=Ps.hover=void 0;var O4e=rb,B4e=Xy(O4e),k4e=sb,I4e=Xy(k4e),T4e=Ab,K4e=Xy(T4e),P4e=cb,wN=Xy(P4e),F4e=db,D4e=Xy(F4e),U4e=P8,R4e=Xy(U4e);function Xy(e){return e&&e.__esModule?e:{default:e}}Ps.hover=wN.default;Ps.handleHover=wN.default;Ps.handleActive=D4e.default;Ps.loop=R4e.default;var L4e=Ps.ReactCSS=function(n){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i0){if(++n>=k5e)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}var P5e=K5e,F5e=B5e,D5e=P5e,U5e=D5e(F5e),R5e=U5e,L5e=L5,z5e=x5e,j5e=R5e;function W5e(e,n){return j5e(z5e(e,n,L5e),e+"")}var N5e=W5e,G5e=ab,Q5e=$y,$5e=y8,Y5e=kd;function q5e(e,n,t){if(!Y5e(t))return!1;var r=typeof n;return(r=="number"?Q5e(t)&&$5e(n,t.length):r=="string"&&n in t)?G5e(t[n],e):!1}var V5e=q5e,H5e=N5e,Z5e=V5e;function X5e(e){return H5e(function(n,t){var r=-1,i=t.length,o=i>1?t[i-1]:void 0,s=i>2?t[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&Z5e(t[0],t[1],s)&&(o=i<3?void 0:o,i=1),n=Object(n);++ra?B=1:B=Math.round(k*100/a)/100,t.a!==B)return{h:t.h,s:t.s,l:t.l,a:B,source:"rgb"}}else{var P=void 0;if(x<0?P=0:x>s?P=1:P=Math.round(x*100/s)/100,i!==P)return{h:t.h,s:t.s,l:t.l,a:P,source:"rgb"}}return null};var E1={},V5={};Object.defineProperty(V5,"__esModule",{value:!0});var JM={},rwe=V5.render=function(n,t,r,i){if(typeof document>"u"&&!i)return null;var o=i?new i:document.createElement("canvas");o.width=r*2,o.height=r*2;var s=o.getContext("2d");return s?(s.fillStyle=n,s.fillRect(0,0,o.width,o.height),s.fillStyle=t,s.fillRect(0,0,r,r),s.translate(r,r),s.fillRect(0,0,r,r),o.toDataURL()):null};V5.get=function(n,t,r,i){var o=n+"-"+t+"-"+r+(i?"-server":"");if(JM[o])return JM[o];var s=rwe(n,t,r,i);return JM[o]=s,s};Object.defineProperty(E1,"__esModule",{value:!0});E1.Checkboard=void 0;var VK=Object.assign||function(e){for(var n=1;n-1},Twe=function(n){return Number(String(n).replace(/%/g,""))},Kwe=1,Pwe=fb.EditableInput=function(e){Ewe(n,e);function n(t){Mwe(this,n);var r=Swe(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(i){r.setUpdatedValue(i.target.value,i)},r.handleKeyDown=function(i){var o=Twe(i.target.value);if(!isNaN(o)&&Iwe(i.keyCode)){var s=r.getArrowOffset(),a=i.keyCode===KN?o+s:o-s;r.setUpdatedValue(a,i)}},r.handleDrag=function(i){if(r.props.dragLabel){var o=Math.round(r.props.value+i.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),i)}},r.handleMouseDown=function(i){r.props.dragLabel&&(i.preventDefault(),r.handleDrag(i),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+Kwe++,r}return _we(n,[{key:"componentDidUpdate",value:function(r,i){this.props.value!==this.state.value&&(r.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return wwe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Owe}},{key:"setUpdatedValue",value:function(r,i){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,i),this.setState({value:r})}},{key:"render",value:function(){var r=this,i=(0,xwe.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return eS.default.createElement("div",{style:i.wrap},eS.default.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return r.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?eS.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(ZE.PureComponent||ZE.Component);fb.default=Pwe;var pb={},R8={};Object.defineProperty(R8,"__esModule",{value:!0});R8.calculateChange=function(n,t,r,i){var o=i.clientWidth,s=i.clientHeight,a=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,f=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,g=a-(i.getBoundingClientRect().left+window.pageXOffset),x=f-(i.getBoundingClientRect().top+window.pageYOffset);if(t==="vertical"){var k=void 0;if(x<0)k=359;else if(x>s)k=0;else{var B=-(x*100/s)+100;k=360*B/100}if(r.h!==k)return{h:k,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var P=void 0;if(g<0)P=0;else if(g>o)P=359;else{var R=g*100/o;P=360*R/100}if(r.h!==P)return{h:P,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};Object.defineProperty(pb,"__esModule",{value:!0});pb.Hue=void 0;var Fwe=function(){function e(n,t){for(var r=0;r=n||ue<0||k&&ye>=o}function $(){var ae=nS();if(W(ae))return q(ae);a=setTimeout($,H(ae))}function q(ae){return a=void 0,B&&r?P(ae):(r=i=void 0,s)}function oe(){a!==void 0&&clearTimeout(a),g=0,r=f=i=a=void 0}function ne(){return a===void 0?s:q(nS())}function ce(){var ae=nS(),ue=W(ae);if(r=arguments,i=this,f=ae,ue){if(a===void 0)return R(f);if(k)return clearTimeout(a),a=setTimeout($,n),P(f)}return a===void 0&&(a=setTimeout($,n)),s}return ce.cancel=oe,ce.flush=ne,ce}var FN=yMe,vMe=FN,CMe=kd,_Me="Expected a function";function bMe(e,n,t){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(_Me);return CMe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),vMe(e,n,{leading:r,maxWait:n,trailing:i})}var xMe=bMe,z8={};Object.defineProperty(z8,"__esModule",{value:!0});z8.calculateChange=function(n,t,r){var i=r.getBoundingClientRect(),o=i.width,s=i.height,a=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,f=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,g=a-(r.getBoundingClientRect().left+window.pageXOffset),x=f-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),x<0?x=0:x>s&&(x=s);var k=g/o,B=1-x/s;return{h:t.h,s:k,v:B,a:t.a,source:"hsv"}};Object.defineProperty(gb,"__esModule",{value:!0});gb.Saturation=void 0;var wMe=function(){function e(n,t){for(var r=0;r=0,Xe=!xe&&Ze&&(de==="hex"||de==="hex6"||de==="hex3"||de==="hex4"||de==="hex8"||de==="name");return Xe?de==="name"&&this._a===0?this.toName():this.toRgbString():(de==="rgb"&&(Pe=this.toRgbString()),de==="prgb"&&(Pe=this.toPercentageRgbString()),(de==="hex"||de==="hex6")&&(Pe=this.toHexString()),de==="hex3"&&(Pe=this.toHexString(!0)),de==="hex4"&&(Pe=this.toHex8String(!0)),de==="hex8"&&(Pe=this.toHex8String()),de==="name"&&(Pe=this.toName()),de==="hsl"&&(Pe=this.toHslString()),de==="hsv"&&(Pe=this.toHsvString()),Pe||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(de,xe){var Pe=de.apply(null,[this].concat([].slice.call(xe)));return this._r=Pe._r,this._g=Pe._g,this._b=Pe._b,this.setAlpha(Pe._a),this},lighten:function(){return this._applyModification(q,arguments)},brighten:function(){return this._applyModification(oe,arguments)},darken:function(){return this._applyModification(ne,arguments)},desaturate:function(){return this._applyModification(H,arguments)},saturate:function(){return this._applyModification(W,arguments)},greyscale:function(){return this._applyModification($,arguments)},spin:function(){return this._applyModification(ce,arguments)},_applyCombination:function(de,xe){return de.apply(null,[this].concat([].slice.call(xe)))},analogous:function(){return this._applyCombination(Re,arguments)},complement:function(){return this._applyCombination(ae,arguments)},monochromatic:function(){return this._applyCombination(Ne,arguments)},splitcomplement:function(){return this._applyCombination(ye,arguments)},triad:function(){return this._applyCombination(ue,[3])},tetrad:function(){return this._applyCombination(ue,[4])}},o.fromRatio=function(Se,de){if(t(Se)=="object"){var xe={};for(var Pe in Se)Se.hasOwnProperty(Pe)&&(Pe==="a"?xe[Pe]=Se[Pe]:xe[Pe]=nt(Se[Pe]));Se=xe}return o(Se,de)};function s(Se){var de={r:0,g:0,b:0},xe=1,Pe=null,Ze=null,Xe=null,wt=!1,Kt=!1;return typeof Se=="string"&&(Se=kt(Se)),t(Se)=="object"&&(dt(Se.r)&&dt(Se.g)&&dt(Se.b)?(de=a(Se.r,Se.g,Se.b),wt=!0,Kt=String(Se.r).substr(-1)==="%"?"prgb":"rgb"):dt(Se.h)&&dt(Se.s)&&dt(Se.v)?(Pe=nt(Se.s),Ze=nt(Se.v),de=k(Se.h,Pe,Ze),wt=!0,Kt="hsv"):dt(Se.h)&&dt(Se.s)&&dt(Se.l)&&(Pe=nt(Se.s),Xe=nt(Se.l),de=g(Se.h,Pe,Xe),wt=!0,Kt="hsl"),Se.hasOwnProperty("a")&&(xe=Se.a)),xe=He(xe),{ok:wt,format:Se.format||Kt,r:Math.min(255,Math.max(de.r,0)),g:Math.min(255,Math.max(de.g,0)),b:Math.min(255,Math.max(de.b,0)),a:xe}}function a(Se,de,xe){return{r:Ce(Se,255)*255,g:Ce(de,255)*255,b:Ce(xe,255)*255}}function f(Se,de,xe){Se=Ce(Se,255),de=Ce(de,255),xe=Ce(xe,255);var Pe=Math.max(Se,de,xe),Ze=Math.min(Se,de,xe),Xe,wt,Kt=(Pe+Ze)/2;if(Pe==Ze)Xe=wt=0;else{var Pt=Pe-Ze;switch(wt=Kt>.5?Pt/(2-Pe-Ze):Pt/(Pe+Ze),Pe){case Se:Xe=(de-xe)/Pt+(de1&&(pn-=1),pn<1/6?zn+(mt-zn)*6*pn:pn<1/2?mt:pn<2/3?zn+(mt-zn)*(2/3-pn)*6:zn}if(de===0)Pe=Ze=Xe=xe;else{var Kt=xe<.5?xe*(1+de):xe+de-xe*de,Pt=2*xe-Kt;Pe=wt(Pt,Kt,Se+1/3),Ze=wt(Pt,Kt,Se),Xe=wt(Pt,Kt,Se-1/3)}return{r:Pe*255,g:Ze*255,b:Xe*255}}function x(Se,de,xe){Se=Ce(Se,255),de=Ce(de,255),xe=Ce(xe,255);var Pe=Math.max(Se,de,xe),Ze=Math.min(Se,de,xe),Xe,wt,Kt=Pe,Pt=Pe-Ze;if(wt=Pe===0?0:Pt/Pe,Pe==Ze)Xe=0;else{switch(Pe){case Se:Xe=(de-xe)/Pt+(de>1)+720)%360;--de;)Pe.h=(Pe.h+Ze)%360,Xe.push(o(Pe));return Xe}function Ne(Se,de){de=de||6;for(var xe=o(Se).toHsv(),Pe=xe.h,Ze=xe.s,Xe=xe.v,wt=[],Kt=1/de;de--;)wt.push(o({h:Pe,s:Ze,v:Xe})),Xe=(Xe+Kt)%1;return wt}o.mix=function(Se,de,xe){xe=xe===0?0:xe||50;var Pe=o(Se).toRgb(),Ze=o(de).toRgb(),Xe=xe/100,wt={r:(Ze.r-Pe.r)*Xe+Pe.r,g:(Ze.g-Pe.g)*Xe+Pe.g,b:(Ze.b-Pe.b)*Xe+Pe.b,a:(Ze.a-Pe.a)*Xe+Pe.a};return o(wt)},o.readability=function(Se,de){var xe=o(Se),Pe=o(de);return(Math.max(xe.getLuminance(),Pe.getLuminance())+.05)/(Math.min(xe.getLuminance(),Pe.getLuminance())+.05)},o.isReadable=function(Se,de,xe){var Pe=o.readability(Se,de),Ze,Xe;switch(Xe=!1,Ze=Dt(xe),Ze.level+Ze.size){case"AAsmall":case"AAAlarge":Xe=Pe>=4.5;break;case"AAlarge":Xe=Pe>=3;break;case"AAAsmall":Xe=Pe>=7;break}return Xe},o.mostReadable=function(Se,de,xe){var Pe=null,Ze=0,Xe,wt,Kt,Pt;xe=xe||{},wt=xe.includeFallbackColors,Kt=xe.level,Pt=xe.size;for(var zn=0;znZe&&(Ze=Xe,Pe=o(de[zn]));return o.isReadable(Se,Pe,{level:Kt,size:Pt})||!wt?Pe:(xe.includeFallbackColors=!1,o.mostReadable(Se,["#fff","#000"],xe))};var rt=o.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},ct=o.hexNames=Fe(rt);function Fe(Se){var de={};for(var xe in Se)Se.hasOwnProperty(xe)&&(de[Se[xe]]=xe);return de}function He(Se){return Se=parseFloat(Se),(isNaN(Se)||Se<0||Se>1)&&(Se=1),Se}function Ce(Se,de){Jt(Se)&&(Se="100%");var xe=Nt(Se);return Se=Math.min(de,Math.max(0,parseFloat(Se))),xe&&(Se=parseInt(Se*de,10)/100),Math.abs(Se-de)<1e-6?1:Se%de/parseFloat(de)}function jt(Se){return Math.min(1,Math.max(0,Se))}function Ft(Se){return parseInt(Se,16)}function Jt(Se){return typeof Se=="string"&&Se.indexOf(".")!=-1&&parseFloat(Se)===1}function Nt(Se){return typeof Se=="string"&&Se.indexOf("%")!=-1}function Ve(Se){return Se.length==1?"0"+Se:""+Se}function nt(Se){return Se<=1&&(Se=Se*100+"%"),Se}function Je(Se){return Math.round(parseFloat(Se)*255).toString(16)}function Vt(Se){return Ft(Se)/255}var pt=function(){var Se="[-\\+]?\\d+%?",de="[-\\+]?\\d*\\.\\d+%?",xe="(?:"+de+")|(?:"+Se+")",Pe="[\\s|\\(]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")\\s*\\)?",Ze="[\\s|\\(]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")[,|\\s]+("+xe+")\\s*\\)?";return{CSS_UNIT:new RegExp(xe),rgb:new RegExp("rgb"+Pe),rgba:new RegExp("rgba"+Ze),hsl:new RegExp("hsl"+Pe),hsla:new RegExp("hsla"+Ze),hsv:new RegExp("hsv"+Pe),hsva:new RegExp("hsva"+Ze),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function dt(Se){return!!pt.CSS_UNIT.exec(Se)}function kt(Se){Se=Se.replace(r,"").replace(i,"").toLowerCase();var de=!1;if(rt[Se])Se=rt[Se],de=!0;else if(Se=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var xe;return(xe=pt.rgb.exec(Se))?{r:xe[1],g:xe[2],b:xe[3]}:(xe=pt.rgba.exec(Se))?{r:xe[1],g:xe[2],b:xe[3],a:xe[4]}:(xe=pt.hsl.exec(Se))?{h:xe[1],s:xe[2],l:xe[3]}:(xe=pt.hsla.exec(Se))?{h:xe[1],s:xe[2],l:xe[3],a:xe[4]}:(xe=pt.hsv.exec(Se))?{h:xe[1],s:xe[2],v:xe[3]}:(xe=pt.hsva.exec(Se))?{h:xe[1],s:xe[2],v:xe[3],a:xe[4]}:(xe=pt.hex8.exec(Se))?{r:Ft(xe[1]),g:Ft(xe[2]),b:Ft(xe[3]),a:Vt(xe[4]),format:de?"name":"hex8"}:(xe=pt.hex6.exec(Se))?{r:Ft(xe[1]),g:Ft(xe[2]),b:Ft(xe[3]),format:de?"name":"hex"}:(xe=pt.hex4.exec(Se))?{r:Ft(xe[1]+""+xe[1]),g:Ft(xe[2]+""+xe[2]),b:Ft(xe[3]+""+xe[3]),a:Vt(xe[4]+""+xe[4]),format:de?"name":"hex8"}:(xe=pt.hex3.exec(Se))?{r:Ft(xe[1]+""+xe[1]),g:Ft(xe[2]+""+xe[2]),b:Ft(xe[3]+""+xe[3]),format:de?"name":"hex"}:!1}function Dt(Se){var de,xe;return Se=Se||{level:"AA",size:"small"},de=(Se.level||"AA").toUpperCase(),xe=(Se.size||"small").toLowerCase(),de!=="AA"&&de!=="AAA"&&(de="AA"),xe!=="small"&&xe!=="large"&&(xe="small"),{level:de,size:xe}}return o})})(DN);var NMe=DN.exports;Object.defineProperty(fA,"__esModule",{value:!0});fA.isvalidColorString=fA.red=fA.getContrastingColor=fA.isValidHex=fA.toState=fA.simpleCheckForValidColor=void 0;var GMe=WMe,QMe=UN(GMe),$Me=NMe,s4=UN($Me);function UN(e){return e&&e.__esModule?e:{default:e}}fA.simpleCheckForValidColor=function(n){var t=["r","g","b","a","h","s","l","v"],r=0,i=0;return(0,QMe.default)(t,function(o){if(n[o]&&(r+=1,isNaN(n[o])||(i+=1),o==="s"||o==="l")){var s=/^\d+%$/;s.test(n[o])&&(i+=1)}}),r===i?n:!1};var YMe=fA.toState=function(n,t){var r=n.hex?(0,s4.default)(n.hex):(0,s4.default)(n),i=r.toHsl(),o=r.toHsv(),s=r.toRgb(),a=r.toHex();i.s===0&&(i.h=t||0,o.h=t||0);var f=a==="000000"&&s.a===0;return{hsl:i,hex:f?"transparent":"#"+a,rgb:s,hsv:o,oldHue:n.h||t||i.h,source:n.source}};fA.isValidHex=function(n){if(n==="transparent")return!0;var t=String(n).charAt(0)==="#"?1:0;return n.length!==4+t&&n.length<7+t&&(0,s4.default)(n).isValid()};fA.getContrastingColor=function(n){if(!n)return"#fff";var t=YMe(n);if(t.hex==="transparent")return"rgba(0,0,0,0.4)";var r=(t.rgb.r*299+t.rgb.g*587+t.rgb.b*114)/1e3;return r>=128?"#000":"#fff"};fA.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};fA.isvalidColorString=function(n,t){var r=n.replace("°","");return(0,s4.default)(t+" ("+r+")")._ok};Object.defineProperty(yb,"__esModule",{value:!0});yb.ColorWrap=void 0;var Jv=Object.assign||function(e){for(var n=1;n1&&arguments[1]!==void 0?arguments[1]:"span";return function(r){uSe(i,r);function i(){var o,s,a,f;lSe(this,i);for(var g=arguments.length,x=Array(g),k=0;k=0||Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}var Yx=24;N8.default=function(e){var n=e.fill,t=n===void 0?"currentColor":n,r=e.width,i=r===void 0?Yx:r,o=e.height,s=o===void 0?Yx:o,a=e.style,f=a===void 0?{}:a,g=bSe(e,["fill","width","height","style"]);return aP.default.createElement("svg",oP({viewBox:"0 0 "+Yx+" "+Yx,style:oP({fill:t,width:i,height:s},f)},g),aP.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))};Object.defineProperty(Cb,"__esModule",{value:!0});Cb.ChromeFields=void 0;var xSe=function(){function e(n,t){for(var r=0;r1&&(i.a=1),r.props.onChange({h:r.props.hsl.h,s:r.props.hsl.s,l:r.props.hsl.l,a:Math.round(i.a*100)/100,source:"rgb"},o)):(i.h||i.s||i.l)&&(typeof i.s=="string"&&i.s.includes("%")&&(i.s=i.s.replace("%","")),typeof i.l=="string"&&i.l.includes("%")&&(i.l=i.l.replace("%","")),i.s==1?i.s=.01:i.l==1&&(i.l=.01),r.props.onChange({h:i.h||r.props.hsl.h,s:Number((0,sP.default)(i.s)?r.props.hsl.s:i.s),l:Number((0,sP.default)(i.l)?r.props.hsl.l:i.l),source:"hsl"},o))},r.showHighlight=function(i){i.currentTarget.style.background="#eee"},r.hideHighlight=function(i){i.currentTarget.style.background="transparent"},t.hsl.a!==1&&t.view==="hex"?r.state={view:"rgb"}:r.state={view:t.view},r}return xSe(n,[{key:"render",value:function(){var r=this,i=(0,SSe.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),o=void 0;return this.state.view==="hex"?o=La.default.createElement("div",{style:i.fields,className:"flexbox-fix"},La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?o=La.default.createElement("div",{style:i.fields,className:"flexbox-fix"},La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),La.default.createElement("div",{style:i.alpha},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(o=La.default.createElement("div",{style:i.fields,className:"flexbox-fix"},La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),La.default.createElement("div",{style:i.field},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),La.default.createElement("div",{style:i.alpha},La.default.createElement(ep.EditableInput,{style:{input:i.input,label:i.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),La.default.createElement("div",{style:i.wrap,className:"flexbox-fix"},o,La.default.createElement("div",{style:i.toggle},La.default.createElement("div",{style:i.icon,onClick:this.toggleViews,ref:function(a){return r.icon=a}},La.default.createElement(ISe.default,{style:i.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.hsl.a!==1&&i.view==="hex"?{view:"rgb"}:null}}]),n}(La.default.Component);LN.defaultProps={view:"hex"};Cb.default=LN;var _b={};Object.defineProperty(_b,"__esModule",{value:!0});_b.ChromePointer=void 0;var DSe=kr,USe=zN(DSe),RSe=Ps,LSe=zN(RSe);function zN(e){return e&&e.__esModule?e:{default:e}}var zSe=_b.ChromePointer=function(){var n=(0,LSe.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return USe.default.createElement("div",{style:n.picker})};_b.default=zSe;var bb={};Object.defineProperty(bb,"__esModule",{value:!0});bb.ChromePointerCircle=void 0;var jSe=kr,WSe=jN(jSe),NSe=Ps,GSe=jN(NSe);function jN(e){return e&&e.__esModule?e:{default:e}}var QSe=bb.ChromePointerCircle=function(){var n=(0,GSe.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return WSe.default.createElement("div",{style:n.picker})};bb.default=QSe;Object.defineProperty(U5,"__esModule",{value:!0});U5.Chrome=void 0;var $Se=kr,hA=O1($Se),YSe=ph,fg=O1(YSe),qSe=Ps,VSe=O1(qSe),HSe=ON,ZSe=O1(HSe),gC=F8,XSe=Cb,JSe=O1(XSe),e6e=_b,lP=O1(e6e),t6e=bb,n6e=O1(t6e);function O1(e){return e&&e.__esModule?e:{default:e}}var G8=U5.Chrome=function(n){var t=n.width,r=n.onChange,i=n.disableAlpha,o=n.rgb,s=n.hsl,a=n.hsv,f=n.hex,g=n.renderers,x=n.styles,k=x===void 0?{}:x,B=n.className,P=B===void 0?"":B,R=n.defaultView,H=(0,VSe.default)((0,ZSe.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},k),{disableAlpha:i});return hA.default.createElement("div",{style:H.picker,className:"chrome-picker "+P},hA.default.createElement("div",{style:H.saturation},hA.default.createElement(gC.Saturation,{style:H.Saturation,hsl:s,hsv:a,pointer:n6e.default,onChange:r})),hA.default.createElement("div",{style:H.body},hA.default.createElement("div",{style:H.controls,className:"flexbox-fix"},hA.default.createElement("div",{style:H.color},hA.default.createElement("div",{style:H.swatch},hA.default.createElement("div",{style:H.active}),hA.default.createElement(gC.Checkboard,{renderers:g}))),hA.default.createElement("div",{style:H.toggles},hA.default.createElement("div",{style:H.hue},hA.default.createElement(gC.Hue,{style:H.Hue,hsl:s,pointer:lP.default,onChange:r})),hA.default.createElement("div",{style:H.alpha},hA.default.createElement(gC.Alpha,{style:H.Alpha,rgb:o,hsl:s,pointer:lP.default,renderers:g,onChange:r})))),hA.default.createElement(JSe.default,{rgb:o,hsl:s,hex:f,view:R,onChange:r,disableAlpha:i})))};G8.propTypes={width:fg.default.oneOfType([fg.default.string,fg.default.number]),disableAlpha:fg.default.bool,styles:fg.default.object,defaultView:fg.default.oneOf(["hex","rgb","hsl"])};G8.defaultProps={width:225,disableAlpha:!1,styles:{}};var r6e=U5.default=(0,gC.ColorWrap)(G8);function hi(){var e="/home/runner/work/maputnik/maputnik/src/components/InputColor.tsx",n="cb6d03ea084207ffce2f89af246bc26074c13af7",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputColor.tsx",statementMap:{0:{start:{line:7,column:14},end:{line:7,column:23}},1:{start:{line:8,column:2},end:{line:8,column:56}},2:{start:{line:11,column:10},end:{line:13,column:3}},3:{start:{line:14,column:15},end:{line:14,column:19}},4:{start:{line:16,column:4},end:{line:16,column:17}},5:{start:{line:17,column:4},end:{line:17,column:75}},6:{start:{line:20,column:4},end:{line:20,column:27}},7:{start:{line:25,column:21},end:{line:39,column:3}},8:{start:{line:26,column:17},end:{line:26,column:32}},9:{start:{line:27,column:4},end:{line:38,column:5}},10:{start:{line:28,column:18},end:{line:28,column:46}},11:{start:{line:29,column:6},end:{line:32,column:8}},12:{start:{line:34,column:6},end:{line:37,column:8}},13:{start:{line:40,column:17},end:{line:42,column:3}},14:{start:{line:41,column:4},end:{line:41,column:62}},15:{start:{line:44,column:4},end:{line:49,column:5}},16:{start:{line:45,column:6},end:{line:45,column:43}},17:{start:{line:47,column:6},end:{line:47,column:49}},18:{start:{line:48,column:6},end:{line:48,column:39}},19:{start:{line:52,column:4},end:{line:52,column:47}},20:{start:{line:55,column:19},end:{line:55,column:42}},21:{start:{line:56,column:25},end:{line:56,column:44}},22:{start:{line:57,column:31},end:{line:63,column:5}},23:{start:{line:64,column:35},end:{line:99,column:5}},24:{start:{line:79,column:31},end:{line:79,column:67}},25:{start:{line:100,column:24},end:{line:102,column:5}},26:{start:{line:103,column:4},end:{line:122,column:9}},27:{start:{line:113,column:26},end:{line:113,column:49}},28:{start:{line:119,column:27},end:{line:119,column:56}}},fnMap:{0:{name:"formatColor",decl:{start:{line:6,column:9},end:{line:6,column:20}},loc:{start:{line:6,column:28},end:{line:9,column:1}},line:6},1:{name:"(anonymous_1)",decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:21},end:{line:18,column:3}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:19,column:2},end:{line:19,column:3}},loc:{start:{line:19,column:21},end:{line:21,column:3}},line:19},3:{name:"(anonymous_3)",decl:{start:{line:25,column:21},end:{line:25,column:22}},loc:{start:{line:25,column:27},end:{line:39,column:3}},line:25},4:{name:"(anonymous_4)",decl:{start:{line:40,column:17},end:{line:40,column:18}},loc:{start:{line:40,column:23},end:{line:42,column:3}},line:40},5:{name:"(anonymous_5)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:14},end:{line:50,column:3}},line:43},6:{name:"(anonymous_6)",decl:{start:{line:51,column:2},end:{line:51,column:3}},loc:{start:{line:51,column:14},end:{line:53,column:3}},line:51},7:{name:"(anonymous_7)",decl:{start:{line:54,column:2},end:{line:54,column:3}},loc:{start:{line:54,column:11},end:{line:123,column:3}},line:54},8:{name:"(anonymous_8)",decl:{start:{line:79,column:24},end:{line:79,column:25}},loc:{start:{line:79,column:31},end:{line:79,column:67}},line:79},9:{name:"(anonymous_9)",decl:{start:{line:113,column:15},end:{line:113,column:16}},loc:{start:{line:113,column:26},end:{line:113,column:49}},line:113},10:{name:"(anonymous_10)",decl:{start:{line:119,column:20},end:{line:119,column:21}},loc:{start:{line:119,column:27},end:{line:119,column:56}},line:119}},branchMap:{0:{loc:{start:{line:27,column:4},end:{line:38,column:5}},type:"if",locations:[{start:{line:27,column:4},end:{line:38,column:5}},{start:{line:33,column:11},end:{line:38,column:5}}],line:27},1:{loc:{start:{line:52,column:24},end:{line:52,column:45}},type:"cond-expr",locations:[{start:{line:52,column:35},end:{line:52,column:41}},{start:{line:52,column:44},end:{line:52,column:45}}],line:52},2:{loc:{start:{line:104,column:6},end:{line:104,column:39}},type:"binary-expr",locations:[{start:{line:104,column:6},end:{line:104,column:29}},{start:{line:104,column:33},end:{line:104,column:39}}],line:104},3:{loc:{start:{line:118,column:17},end:{line:118,column:57}},type:"cond-expr",locations:[{start:{line:118,column:36},end:{line:118,column:52}},{start:{line:118,column:55},end:{line:118,column:57}}],line:118}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputColor.tsx"],names:[],mappings:"AAsFmB,SAQb,KARa;AAtFnB,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,kBAAkB;AAEzB,OAAO,YAAY;AAEnB,SAAS,YAAY,OAA4B;AAC/C,QAAM,MAAM,MAAM;AAClB,SAAO,QAAQ,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,CAAC;AACpD;AAaA,qBAAqB,mBAAmB,MAAM,UAA2B;AAAA,EACvE,QAAQ;AAAA,IACN,cAAc;AAAA,EAChB;AAAA,EACA,aAAsC;AAAA,EAEtC,YAAa,OAAwB;AACnC,UAAM,KAAK;AACX,SAAK,kBAAkB,OAAO,SAAS,KAAK,iBAAiB,MAAK,EAAE;AAAA,EACtE;AAAA,EAEA,gBAAgB,GAAW;AACzB,SAAK,MAAM,SAAS,CAAC;AAAA,EACvB;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAmB,MAAM;AACvB,UAAM,OAAO,KAAK;AAClB,QAAG,MAAM;AACP,YAAM,MAAM,KAAK,sBAAsB;AACvC,aAAO;AAAA,QACL,KAAK,IAAI;AAAA,QACT,MAAM,IAAI,OAAO;AAAA,MACnB;AAAA,IACF,OAAO;AACL,aAAO;AAAA,QACL,KAAK;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EAEA,eAAe,MAAM;AACnB,SAAK,SAAS,EAAE,cAAc,CAAC,KAAK,MAAM,aAAa,CAAC;AAAA,EAC1D;AAAA,EAEA,IAAI,QAAQ;AAEV,QAAI;AACF,aAAO,MAAM,KAAK,MAAM,KAAK,EAAE,IAAI;AAAA,IACrC,SACM,KAAK;AACT,cAAQ,KAAK,yBAAyB,GAAG;AACzC,aAAO,MAAM,kBAAkB;AAAA,IACjC;AAAA,EACF;AAAA,EAEA,SAAU,GAAW;AACnB,SAAK,MAAM,SAAS,MAAM,KAAK,SAAY,CAAC;AAAA,EAC9C;AAAA,EAEA,SAAS;AACP,UAAM,SAAS,KAAK,iBAAiB;AACrC,UAAM,eAAe,KAAK,MAAM,OAAO;AACvC,UAAM,qBAAqB;AAAA,MACzB,GAAG,aAAa;AAAA,MAChB,GAAG,aAAa;AAAA,MAChB,GAAG,aAAa;AAAA;AAAA,MAEhB,GAAG,aAAa;AAAA,IAClB;AAEA,UAAM,SAAS;AAAA,MAAC;AAAA;AAAA,QACd,WAAU;AAAA,QACV,OAAO;AAAA,UACL,UAAU;AAAA,UACV,QAAQ;AAAA,UACR,MAAM,OAAO;AAAA,UACb,KAAK,OAAO;AAAA,QACd;AAAA,QACA;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,UAAU,OAAK,KAAK,gBAAgB,YAAY,CAAC,CAAC;AAAA;AAAA,UACpD;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK;AAAA,cACd,OAAO;AAAA,gBACL,QAAQ;AAAA,gBACR,UAAU;AAAA,gBACV,KAAK;AAAA,gBACL,OAAO;AAAA,gBACP,QAAQ;AAAA,gBACR,MAAM;AAAA,cACR;AAAA;AAAA,UACF;AAAA;AAAA;AAAA,IACF;AAEA,UAAM,cAAc;AAAA,MAClB,iBAAiB,KAAK,MAAM;AAAA,IAC9B;AAEA,WAAO,qBAAC,SAAI,WAAU,0BACnB;AAAA,WAAK,MAAM,gBAAgB;AAAA,MAC5B,oBAAC,SAAI,WAAU,yBAAwB,OAAO,aAAa;AAAA,MAC3D;AAAA,QAAC;AAAA;AAAA,UACC,cAAY,KAAK,MAAM,YAAY;AAAA,UACnC,YAAW;AAAA,UACX,cAAa;AAAA,UACb,WAAU;AAAA,UACV,KAAK,CAAC,UAAU,KAAK,aAAa;AAAA,UAClC,SAAS,KAAK;AAAA,UACd,OAAO,KAAK,MAAM;AAAA,UAClB,MAAM,KAAK,MAAM;AAAA,UACjB,aAAa,KAAK,MAAM;AAAA,UACxB,OAAO,KAAK,MAAM,QAAQ,KAAK,MAAM,QAAQ;AAAA,UAC7C,UAAU,CAAC,MAAM,KAAK,SAAS,EAAE,OAAO,KAAK;AAAA;AAAA,MAC/C;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cb6d03ea084207ffce2f89af246bc26074c13af7"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return hi=function(){return s},s}hi();function i6e(e){hi().f[0]++;const n=(hi().s[0]++,e.rgb);return hi().s[1]++,`rgba(${n.r}, ${n.g}, ${n.b}, ${n.a})`}class WN extends bn.Component{constructor(t){hi().f[1]++,hi().s[4]++;super(t);nn(this,"state",(hi().s[2]++,{pickerOpened:!1}));nn(this,"colorInput",(hi().s[3]++,null));nn(this,"calcPickerOffset",(hi().s[7]++,()=>{hi().f[3]++;const t=(hi().s[8]++,this.colorInput);if(hi().s[9]++,t){hi().b[0][0]++;const r=(hi().s[10]++,t.getBoundingClientRect());return hi().s[11]++,{top:r.top,left:r.left+196}}else return hi().b[0][1]++,hi().s[12]++,{top:160,left:555}}));nn(this,"togglePicker",(hi().s[13]++,()=>{hi().f[4]++,hi().s[14]++,this.setState({pickerOpened:!this.state.pickerOpened})}));hi().s[5]++,this.onChangeNoCheck=p6.throttle(this.onChangeNoCheck,1e3/30)}onChangeNoCheck(t){hi().f[2]++,hi().s[6]++,this.props.onChange(t)}get color(){hi().f[5]++,hi().s[15]++;try{return hi().s[16]++,D6(this.props.value).rgb()}catch(t){return hi().s[17]++,console.warn("Error parsing color: ",t),hi().s[18]++,D6("rgb(255,255,255)")}}onChange(t){hi().f[6]++,hi().s[19]++,this.props.onChange(t===""?(hi().b[1][0]++,void 0):(hi().b[1][1]++,t))}render(){hi().f[7]++;const t=(hi().s[20]++,this.calcPickerOffset()),r=(hi().s[21]++,this.color.object()),i=(hi().s[22]++,{r:r.r,g:r.g,b:r.b,a:r.alpha}),o=(hi().s[23]++,N.jsxs("div",{className:"maputnik-color-picker-offset",style:{position:"fixed",zIndex:1,left:t.left,top:t.top},children:[N.jsx(r6e,{color:i,onChange:a=>(hi().f[8]++,hi().s[24]++,this.onChangeNoCheck(i6e(a)))}),N.jsx("div",{className:"maputnik-color-picker-offset",onClick:this.togglePicker,style:{zIndex:-1,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}})]})),s=(hi().s[25]++,{backgroundColor:this.props.value});return hi().s[26]++,N.jsxs("div",{className:"maputnik-color-wrapper",children:[(hi().b[2][0]++,this.state.pickerOpened&&(hi().b[2][1]++,o)),N.jsx("div",{className:"maputnik-color-swatch",style:s}),N.jsx("input",{"aria-label":this.props["aria-label"],spellCheck:"false",autoComplete:"off",className:"maputnik-color",ref:a=>(hi().f[9]++,hi().s[27]++,this.colorInput=a),onClick:this.togglePicker,style:this.props.style,name:this.props.name,placeholder:this.props.default,value:this.props.value?(hi().b[3][0]++,this.props.value):(hi().b[3][1]++,""),onChange:a=>(hi().f[10]++,hi().s[28]++,this.onChange(a.target.value))})]})}}function Rt(){var e="/home/runner/work/maputnik/maputnik/src/components/InputNumber.tsx",n="6f326a25e01ec46339f6b8716575d23b39d5290d",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputNumber.tsx",statementMap:{0:{start:{line:5,column:24},end:{line:7,column:3}},1:{start:{line:8,column:19},end:{line:8,column:24}},2:{start:{line:10,column:4},end:{line:10,column:17}},3:{start:{line:11,column:4},end:{line:16,column:6}},4:{start:{line:19,column:4},end:{line:24,column:5}},5:{start:{line:20,column:6},end:{line:23,column:8}},6:{start:{line:25,column:4},end:{line:25,column:16}},7:{start:{line:28,column:18},end:{line:28,column:77}},8:{start:{line:29,column:23},end:{line:29,column:49}},9:{start:{line:30,column:4},end:{line:40,column:5}},10:{start:{line:31,column:6},end:{line:32,column:35}},11:{start:{line:32,column:8},end:{line:32,column:35}},12:{start:{line:33,column:6},end:{line:35,column:9}},13:{start:{line:36,column:11},end:{line:40,column:5}},14:{start:{line:37,column:6},end:{line:39,column:9}},15:{start:{line:41,column:4},end:{line:43,column:7}},16:{start:{line:46,column:4},end:{line:48,column:5}},17:{start:{line:47,column:6},end:{line:47,column:18}},18:{start:{line:49,column:18},end:{line:49,column:20}},19:{start:{line:50,column:4},end:{line:52,column:5}},20:{start:{line:51,column:6},end:{line:51,column:19}},21:{start:{line:53,column:4},end:{line:55,column:5}},22:{start:{line:54,column:6},end:{line:54,column:19}},23:{start:{line:56,column:4},end:{line:58,column:5}},24:{start:{line:57,column:6},end:{line:57,column:19}},25:{start:{line:59,column:4},end:{line:59,column:16}},26:{start:{line:61,column:15},end:{line:75,column:3}},27:{start:{line:62,column:4},end:{line:62,column:38}},28:{start:{line:63,column:4},end:{line:65,column:5}},29:{start:{line:64,column:6},end:{line:64,column:13}},30:{start:{line:66,column:4},end:{line:74,column:5}},31:{start:{line:67,column:6},end:{line:73,column:7}},32:{start:{line:68,column:8},end:{line:68,column:43}},33:{start:{line:69,column:8},end:{line:69,column:56}},34:{start:{line:71,column:8},end:{line:71,column:33}},35:{start:{line:72,column:8},end:{line:72,column:46}},36:{start:{line:76,column:18},end:{line:102,column:3}},37:{start:{line:77,column:16},end:{line:77,column:42}},38:{start:{line:78,column:17},end:{line:78,column:37}},39:{start:{line:79,column:21},end:{line:79,column:26}},40:{start:{line:80,column:4},end:{line:96,column:5}},41:{start:{line:81,column:19},end:{line:81,column:31}},42:{start:{line:82,column:6},end:{line:95,column:7}},43:{start:{line:83,column:8},end:{line:87,column:9}},44:{start:{line:84,column:10},end:{line:84,column:42}},45:{start:{line:86,column:10},end:{line:86,column:42}},46:{start:{line:88,column:8},end:{line:88,column:27}},47:{start:{line:90,column:8},end:{line:94,column:9}},48:{start:{line:91,column:10},end:{line:91,column:31}},49:{start:{line:93,column:10},end:{line:93,column:40}},50:{start:{line:97,column:4},end:{line:97,column:32}},51:{start:{line:98,column:4},end:{line:98,column:70}},52:{start:{line:99,column:4},end:{line:99,column:41}},53:{start:{line:100,column:4},end:{line:101,column:33}},54:{start:{line:101,column:6},end:{line:101,column:33}},55:{start:{line:104,column:4},end:{line:187,column:5}},56:{start:{line:105,column:20},end:{line:105,column:81}},57:{start:{line:106,column:27},end:{line:106,column:82}},58:{start:{line:108,column:6},end:{line:112,column:7}},59:{start:{line:109,column:8},end:{line:109,column:38}},60:{start:{line:111,column:8},end:{line:111,column:27}},61:{start:{line:113,column:6},end:{line:167,column:11}},62:{start:{line:126,column:14},end:{line:126,column:41}},63:{start:{line:129,column:14},end:{line:129,column:67}},64:{start:{line:132,column:14},end:{line:132,column:69}},65:{start:{line:135,column:14},end:{line:139,column:17}},66:{start:{line:154,column:14},end:{line:154,column:47}},67:{start:{line:157,column:14},end:{line:157,column:47}},68:{start:{line:160,column:14},end:{line:160,column:48}},69:{start:{line:161,column:14},end:{line:161,column:32}},70:{start:{line:169,column:20},end:{line:169,column:81}},71:{start:{line:170,column:6},end:{line:186,column:8}},72:{start:{line:178,column:27},end:{line:178,column:59}},73:{start:{line:180,column:12},end:{line:180,column:45}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:9,column:2},end:{line:9,column:3}},loc:{start:{line:9,column:21},end:{line:17,column:3}},line:9},1:{name:"(anonymous_1)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:48},end:{line:26,column:3}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:27,column:2},end:{line:27,column:3}},loc:{start:{line:27,column:24},end:{line:44,column:3}},line:27},3:{name:"(anonymous_3)",decl:{start:{line:45,column:2},end:{line:45,column:3}},loc:{start:{line:45,column:13},end:{line:60,column:3}},line:45},4:{name:"(anonymous_4)",decl:{start:{line:61,column:15},end:{line:61,column:16}},loc:{start:{line:61,column:21},end:{line:75,column:3}},line:61},5:{name:"(anonymous_5)",decl:{start:{line:76,column:18},end:{line:76,column:19}},loc:{start:{line:76,column:25},end:{line:102,column:3}},line:76},6:{name:"(anonymous_6)",decl:{start:{line:103,column:2},end:{line:103,column:3}},loc:{start:{line:103,column:11},end:{line:188,column:3}},line:103},7:{name:"(anonymous_7)",decl:{start:{line:125,column:23},end:{line:125,column:24}},loc:{start:{line:125,column:29},end:{line:127,column:13}},line:125},8:{name:"(anonymous_8)",decl:{start:{line:128,column:27},end:{line:128,column:28}},loc:{start:{line:128,column:33},end:{line:130,column:13}},line:128},9:{name:"(anonymous_9)",decl:{start:{line:131,column:25},end:{line:131,column:26}},loc:{start:{line:131,column:31},end:{line:133,column:13}},line:131},10:{name:"(anonymous_10)",decl:{start:{line:134,column:20},end:{line:134,column:21}},loc:{start:{line:134,column:26},end:{line:140,column:13}},line:134},11:{name:"(anonymous_11)",decl:{start:{line:153,column:21},end:{line:153,column:22}},loc:{start:{line:153,column:29},end:{line:155,column:13}},line:153},12:{name:"(anonymous_12)",decl:{start:{line:156,column:22},end:{line:156,column:23}},loc:{start:{line:156,column:29},end:{line:158,column:13}},line:156},13:{name:"(anonymous_13)",decl:{start:{line:159,column:20},end:{line:159,column:21}},loc:{start:{line:159,column:28},end:{line:162,column:13}},line:159},14:{name:"(anonymous_14)",decl:{start:{line:178,column:20},end:{line:178,column:21}},loc:{start:{line:178,column:27},end:{line:178,column:59}},line:178},15:{name:"(anonymous_15)",decl:{start:{line:179,column:19},end:{line:179,column:20}},loc:{start:{line:179,column:25},end:{line:181,column:11}},line:179}},branchMap:{0:{loc:{start:{line:19,column:4},end:{line:24,column:5}},type:"if",locations:[{start:{line:19,column:4},end:{line:24,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:19},1:{loc:{start:{line:19,column:8},end:{line:19,column:53}},type:"binary-expr",locations:[{start:{line:19,column:8},end:{line:19,column:22}},{start:{line:19,column:26},end:{line:19,column:53}}],line:19},2:{loc:{start:{line:28,column:18},end:{line:28,column:77}},type:"cond-expr",locations:[{start:{line:28,column:59},end:{line:28,column:65}},{start:{line:28,column:68},end:{line:28,column:77}}],line:28},3:{loc:{start:{line:28,column:18},end:{line:28,column:56}},type:"binary-expr",locations:[{start:{line:28,column:18},end:{line:28,column:33}},{start:{line:28,column:37},end:{line:28,column:56}}],line:28},4:{loc:{start:{line:30,column:4},end:{line:40,column:5}},type:"if",locations:[{start:{line:30,column:4},end:{line:40,column:5}},{start:{line:36,column:11},end:{line:40,column:5}}],line:30},5:{loc:{start:{line:30,column:8},end:{line:30,column:41}},type:"binary-expr",locations:[{start:{line:30,column:8},end:{line:30,column:27}},{start:{line:30,column:31},end:{line:30,column:41}}],line:30},6:{loc:{start:{line:31,column:6},end:{line:32,column:35}},type:"if",locations:[{start:{line:31,column:6},end:{line:32,column:35}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:31},7:{loc:{start:{line:36,column:11},end:{line:40,column:5}},type:"if",locations:[{start:{line:36,column:11},end:{line:40,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:36},8:{loc:{start:{line:36,column:15},end:{line:36,column:49}},type:"binary-expr",locations:[{start:{line:36,column:15},end:{line:36,column:35}},{start:{line:36,column:39},end:{line:36,column:49}}],line:36},9:{loc:{start:{line:42,column:18},end:{line:42,column:50}},type:"cond-expr",locations:[{start:{line:42,column:36},end:{line:42,column:42}},{start:{line:42,column:45},end:{line:42,column:50}}],line:42},10:{loc:{start:{line:46,column:4},end:{line:48,column:5}},type:"if",locations:[{start:{line:46,column:4},end:{line:48,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:46},11:{loc:{start:{line:50,column:4},end:{line:52,column:5}},type:"if",locations:[{start:{line:50,column:4},end:{line:52,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:50},12:{loc:{start:{line:53,column:4},end:{line:55,column:5}},type:"if",locations:[{start:{line:53,column:4},end:{line:55,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53},13:{loc:{start:{line:53,column:8},end:{line:53,column:56}},type:"binary-expr",locations:[{start:{line:53,column:8},end:{line:53,column:30}},{start:{line:53,column:34},end:{line:53,column:56}}],line:53},14:{loc:{start:{line:56,column:4},end:{line:58,column:5}},type:"if",locations:[{start:{line:56,column:4},end:{line:58,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:56},15:{loc:{start:{line:56,column:8},end:{line:56,column:56}},type:"binary-expr",locations:[{start:{line:56,column:8},end:{line:56,column:30}},{start:{line:56,column:34},end:{line:56,column:56}}],line:56},16:{loc:{start:{line:63,column:4},end:{line:65,column:5}},type:"if",locations:[{start:{line:63,column:4},end:{line:65,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:63},17:{loc:{start:{line:66,column:4},end:{line:74,column:5}},type:"if",locations:[{start:{line:66,column:4},end:{line:74,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:66},18:{loc:{start:{line:67,column:6},end:{line:73,column:7}},type:"if",locations:[{start:{line:67,column:6},end:{line:73,column:7}},{start:{line:70,column:13},end:{line:73,column:7}}],line:67},19:{loc:{start:{line:80,column:4},end:{line:96,column:5}},type:"if",locations:[{start:{line:80,column:4},end:{line:96,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:80},20:{loc:{start:{line:82,column:6},end:{line:95,column:7}},type:"if",locations:[{start:{line:82,column:6},end:{line:95,column:7}},{start:{line:89,column:13},end:{line:95,column:7}}],line:82},21:{loc:{start:{line:83,column:8},end:{line:87,column:9}},type:"if",locations:[{start:{line:83,column:8},end:{line:87,column:9}},{start:{line:85,column:15},end:{line:87,column:9}}],line:83},22:{loc:{start:{line:90,column:8},end:{line:94,column:9}},type:"if",locations:[{start:{line:90,column:8},end:{line:94,column:9}},{start:{line:92,column:15},end:{line:94,column:9}}],line:90},23:{loc:{start:{line:100,column:4},end:{line:101,column:33}},type:"if",locations:[{start:{line:100,column:4},end:{line:101,column:33}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:100},24:{loc:{start:{line:104,column:4},end:{line:187,column:5}},type:"if",locations:[{start:{line:104,column:4},end:{line:187,column:5}},{start:{line:168,column:11},end:{line:187,column:5}}],line:104},25:{loc:{start:{line:104,column:8},end:{line:104,column:205}},type:"binary-expr",locations:[{start:{line:104,column:8},end:{line:104,column:63}},{start:{line:104,column:67},end:{line:104,column:122}},{start:{line:104,column:126},end:{line:104,column:151}},{start:{line:104,column:155},end:{line:104,column:180}},{start:{line:104,column:184},end:{line:104,column:205}}],line:104},26:{loc:{start:{line:105,column:20},end:{line:105,column:81}},type:"cond-expr",locations:[{start:{line:105,column:41},end:{line:105,column:62}},{start:{line:105,column:65},end:{line:105,column:81}}],line:105},27:{loc:{start:{line:106,column:27},end:{line:106,column:82}},type:"cond-expr",locations:[{start:{line:106,column:59},end:{line:106,column:61}},{start:{line:106,column:64},end:{line:106,column:82}}],line:106},28:{loc:{start:{line:108,column:6},end:{line:112,column:7}},type:"if",locations:[{start:{line:108,column:6},end:{line:112,column:7}},{start:{line:110,column:13},end:{line:112,column:7}}],line:108},29:{loc:{start:{line:123,column:19},end:{line:123,column:58}},type:"cond-expr",locations:[{start:{line:123,column:38},end:{line:123,column:50}},{start:{line:123,column:53},end:{line:123,column:58}}],line:123},30:{loc:{start:{line:152,column:19},end:{line:152,column:58}},type:"cond-expr",locations:[{start:{line:152,column:43},end:{line:152,column:45}},{start:{line:152,column:48},end:{line:152,column:58}}],line:152},31:{loc:{start:{line:169,column:20},end:{line:169,column:81}},type:"cond-expr",locations:[{start:{line:169,column:41},end:{line:169,column:62}},{start:{line:169,column:65},end:{line:169,column:81}}],line:169},32:{loc:{start:{line:177,column:17},end:{line:177,column:46}},type:"cond-expr",locations:[{start:{line:177,column:36},end:{line:177,column:38}},{start:{line:177,column:41},end:{line:177,column:46}}],line:177}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0,0,0,0],26:[0,0],27:[0,0],28:[0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputNumber.tsx"],names:[],mappings:"AA2Ka,SACL,KADK;AA3Kb,OAAO,WAAmC;AAC1C,OAAO,sBAAsB;AAuB7B,qBAAqB,oBAAoB,MAAM,UAA8C;AAAA,EAC3F,OAAO,eAAe;AAAA,IACpB,WAAW;AAAA,EACb;AAAA,EACA,iBAA0B;AAAA,EAE1B,YAAY,OAAyB;AACnC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM,CAAC,iBAAiB;AAAA,MACxB,SAAS;AAAA,MACT,OAAO,MAAM;AAAA,MACb,YAAY,MAAM;AAAA,IACpB;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAAyB,OAAyB;AAChF,QAAI,CAAC,MAAM,WAAW,MAAM,UAAU,MAAM,OAAO;AACjD,aAAO;AAAA,QACL,OAAO,MAAM;AAAA,QACb,YAAY,MAAM;AAAA,MACpB;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA,EAEA,YAAY,UAAuC;AACjD,UAAM,QAAS,aAAa,MAAM,aAAa,SAC7C,SAAY,CAAC;AAEf,UAAM,aAAa,KAAK,MAAM,UAAU;AACxC,QAAG,KAAK,QAAQ,KAAK,KAAK,YAAY;AACpC,UAAI,KAAK,MAAM;AAAU,aAAK,MAAM,SAAS,KAAK;AAClD,WAAK,SAAS;AAAA,QACZ;AAAA,MACF,CAAC;AAAA,IACH,WACS,CAAC,KAAK,QAAQ,KAAK,KAAK,YAAY;AAC3C,WAAK,SAAS;AAAA,QACZ,OAAO;AAAA,MACT,CAAC;AAAA,IACH;AAEA,SAAK,SAAS;AAAA,MACZ,YAAY,aAAa,KAAK,SAAY;AAAA,IAC5C,CAAC;AAAA,EACH;AAAA,EAEA,QAAQ,GAAgC;AACtC,QAAI,MAAM,QAAW;AACnB,aAAO;AAAA,IACT;AAEA,UAAM,QAAQ,CAAC;AACf,QAAG,MAAM,KAAK,GAAG;AACf,aAAO;AAAA,IACT;AAEA,QAAG,CAAC,MAAM,KAAK,MAAM,GAAI,KAAK,QAAQ,KAAK,MAAM,KAAM;AACrD,aAAO;AAAA,IACT;AAEA,QAAG,CAAC,MAAM,KAAK,MAAM,GAAI,KAAK,QAAQ,KAAK,MAAM,KAAM;AACrD,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT;AAAA,EAEA,aAAa,MAAM;AACjB,SAAK,SAAS,EAAC,SAAS,MAAK,CAAC;AAE9B,QAAG,CAAC,KAAK,MAAM,OAAO;AACpB;AAAA,IACF;AAGA,QAAI,CAAC,KAAK,QAAQ,KAAK,MAAM,KAAK,GAAG;AACnC,UAAG,KAAK,QAAQ,KAAK,MAAM,KAAK,GAAG;AACjC,aAAK,YAAY,KAAK,MAAM,KAAK;AACjC,aAAK,SAAS,EAAC,YAAY,KAAK,MAAM,MAAK,CAAC;AAAA,MAC9C,OAAO;AACL,aAAK,YAAY,MAAS;AAC1B,aAAK,SAAS,EAAC,YAAY,OAAS,CAAC;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AAAA,EAEA,gBAAgB,CAAC,MAAqE;AACpF,QAAI,QAAQ,WAAW,EAAE,OAAO,KAAK;AACrC,UAAM,OAAO,KAAK,MAAM;AACxB,QAAI,aAAa;AAEjB,QAAG,MAAM;AAEP,YAAM,OAAO,QAAQ;AAGrB,UAAI,KAAK,gBAAgB;AAKvB,YAAI,QAAQ,KAAK,MAAM,YAAa;AAClC,kBAAQ,KAAK,MAAM,QAAS;AAAA,QAC9B,OACK;AACH,kBAAQ,KAAK,MAAM,QAAS;AAAA,QAC9B;AACA,qBAAa;AAAA,MACf,OACK;AACH,YAAI,OAAO,OAAK,GAAG;AACjB,kBAAQ,QAAQ;AAAA,QAClB,OACK;AACH,kBAAQ,SAAS,OAAO;AAAA,QAC1B;AAAA,MACF;AAAA,IACF;AAEA,SAAK,iBAAiB;AAGtB,YAAQ,KAAK,IAAI,KAAK,MAAM,KAAM,KAAK,IAAI,KAAK,MAAM,KAAM,KAAK,CAAC;AAElE,SAAK,SAAS,EAAC,OAAO,WAAU,CAAC;AACjC,QAAI,KAAK,MAAM;AAAU,WAAK,MAAM,SAAS,KAAK;AAAA,EACpD;AAAA,EAEA,SAAS;AACP,QACE,OAAO,UAAU,eAAe,KAAK,KAAK,OAAO,KAAK,KACtD,OAAO,UAAU,eAAe,KAAK,KAAK,OAAO,KAAK,KACtD,KAAK,MAAM,QAAQ,UAAa,KAAK,MAAM,QAAQ,UACnD,KAAK,MAAM,YACX;AACA,YAAM,QAAQ,KAAK,MAAM,UAAU,KAAK,MAAM,aAAa,KAAK,MAAM;AACtE,YAAM,eAAe,KAAK,MAAM,YAAY,SAAY,KAAK,KAAK,MAAM;AACxE,UAAI;AACJ,UAAI,KAAK,MAAM,cAAc;AAC3B,qBAAa,KAAK,MAAM;AAAA,MAC1B,OACK;AACH,qBAAa;AAAA,MACf;AAEA,aAAO,qBAAC,SAAI,WAAU,6BACpB;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,WAAU;AAAA,YAEV,MAAK;AAAA,YACL,KAAK,KAAK,MAAM;AAAA,YAChB,KAAK,KAAK,MAAM;AAAA,YAChB,MAAK;AAAA,YACL,YAAW;AAAA,YACX,OAAO,UAAU,SAAY,eAAe;AAAA,YAC5C,UAAU,KAAK;AAAA,YACf,WAAW,MAAM;AACf,mBAAK,iBAAiB;AAAA,YACxB;AAAA,YACA,eAAe,MAAM;AACnB,mBAAK,SAAS,EAAC,SAAS,MAAM,cAAc,KAAI,CAAC;AAAA,YACnD;AAAA,YACA,aAAa,MAAM;AAEjB,mBAAK,SAAS,EAAC,SAAS,OAAO,cAAc,MAAK,CAAC;AAAA,YACrD;AAAA,YACA,QAAQ,MAAM;AACZ,mBAAK,SAAS;AAAA,gBACZ,SAAS;AAAA,gBACT,cAAc;AAAA,gBACd,YAAY,KAAK,MAAM;AAAA,cACzB,CAAC;AAAA,YACH;AAAA,YACA,eAAa,KAAK,MAAM,aAAa,IAAI;AAAA;AAAA,UAzBrC;AAAA,QA0BN;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YAEC,MAAK;AAAA,YACL,YAAW;AAAA,YACX,WAAU;AAAA,YACV,aAAa,KAAK,MAAM,SAAS,SAAS;AAAA,YAC1C,OAAO,eAAe,SAAY,KAAK;AAAA,YACvC,SAAS,QAAM;AACb,mBAAK,SAAS,EAAC,SAAS,KAAI,CAAC;AAAA,YAC/B;AAAA,YACA,UAAU,OAAK;AACb,mBAAK,YAAY,EAAE,OAAO,KAAK;AAAA,YACjC;AAAA,YACA,QAAQ,QAAM;AACZ,mBAAK,SAAS,EAAC,SAAS,MAAK,CAAC;AAC9B,mBAAK,WAAW;AAAA,YAClB;AAAA,YACA,eAAa,KAAK,MAAM,aAAa,IAAI;AAAA;AAAA,UAhBrC;AAAA,QAkBN;AAAA,SACF;AAAA,IACF,OACK;AACH,YAAM,QAAQ,KAAK,MAAM,UAAU,KAAK,MAAM,aAAa,KAAK,MAAM;AAEtE,aAAO;AAAA,QAAC;AAAA;AAAA,UACN,cAAY,KAAK,MAAM,YAAY;AAAA,UACnC,YAAW;AAAA,UACX,WAAU;AAAA,UACV,aAAa,KAAK,MAAM,SAAS,SAAS;AAAA,UAC1C,OAAO,UAAU,SAAY,KAAK;AAAA,UAClC,UAAU,OAAK,KAAK,YAAY,EAAE,OAAO,KAAK;AAAA,UAC9C,SAAS,MAAM;AACb,iBAAK,SAAS,EAAC,SAAS,KAAI,CAAC;AAAA,UAC/B;AAAA,UACA,QAAQ,KAAK;AAAA,UACb,UAAU,KAAK,MAAM;AAAA,UACrB,eAAa,KAAK,MAAM,aAAa;AAAA;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"6f326a25e01ec46339f6b8716575d23b39d5290d"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Rt=function(){return s},s}Rt();class pf extends bn.Component{constructor(t){Rt().f[0]++,Rt().s[2]++;super(t);nn(this,"_keyboardEvent",(Rt().s[1]++,!1));nn(this,"resetValue",(Rt().s[26]++,()=>{if(Rt().f[4]++,Rt().s[27]++,this.setState({editing:!1}),Rt().s[28]++,this.state.value)Rt().b[16][1]++;else{Rt().b[16][0]++,Rt().s[29]++;return}Rt().s[30]++,this.isValid(this.state.value)?Rt().b[17][1]++:(Rt().b[17][0]++,Rt().s[31]++,this.isValid(this.props.value)?(Rt().b[18][0]++,Rt().s[32]++,this.changeValue(this.props.value),Rt().s[33]++,this.setState({dirtyValue:this.props.value})):(Rt().b[18][1]++,Rt().s[34]++,this.changeValue(void 0),Rt().s[35]++,this.setState({dirtyValue:void 0})))}));nn(this,"onChangeRange",(Rt().s[36]++,t=>{Rt().f[5]++;let r=(Rt().s[37]++,parseFloat(t.target.value));const i=(Rt().s[38]++,this.props.rangeStep);let o=(Rt().s[39]++,r);if(Rt().s[40]++,i){Rt().b[19][0]++;const s=(Rt().s[41]++,r%i);Rt().s[42]++,this._keyboardEvent?(Rt().b[20][0]++,Rt().s[43]++,rthis.props.max)?(Rt().b[14][0]++,Rt().s[24]++,!1):(Rt().b[14][1]++,Rt().s[25]++,!0)))}render(){var t,r;if(Rt().f[6]++,Rt().s[55]++,Rt().b[25][0]++,Object.prototype.hasOwnProperty.call(this.props,"min")&&(Rt().b[25][1]++,Object.prototype.hasOwnProperty.call(this.props,"max"))&&(Rt().b[25][2]++,this.props.min!==void 0)&&(Rt().b[25][3]++,this.props.max!==void 0)&&(Rt().b[25][4]++,this.props.allowRange)){Rt().b[24][0]++;const i=(Rt().s[56]++,this.state.editing?(Rt().b[26][0]++,this.state.dirtyValue):(Rt().b[26][1]++,this.state.value)),o=(Rt().s[57]++,this.props.default===void 0?(Rt().b[27][0]++,""):(Rt().b[27][1]++,this.props.default));let s;return Rt().s[58]++,this.state.editingRange?(Rt().b[28][0]++,Rt().s[59]++,s=this.state.value):(Rt().b[28][1]++,Rt().s[60]++,s=i),Rt().s[61]++,N.jsxs("div",{className:"maputnik-number-container",children:[N.jsx("input",{className:"maputnik-number-range",type:"range",max:this.props.max,min:this.props.min,step:"any",spellCheck:"false",value:i===void 0?(Rt().b[29][0]++,o):(Rt().b[29][1]++,i),onChange:this.onChangeRange,onKeyDown:()=>{Rt().f[7]++,Rt().s[62]++,this._keyboardEvent=!0},onPointerDown:()=>{Rt().f[8]++,Rt().s[63]++,this.setState({editing:!0,editingRange:!0})},onPointerUp:()=>{Rt().f[9]++,Rt().s[64]++,this.setState({editing:!1,editingRange:!1})},onBlur:()=>{Rt().f[10]++,Rt().s[65]++,this.setState({editing:!1,editingRange:!1,dirtyValue:this.state.value})},"data-wd-key":this.props["data-wd-key"]+"-range"},"range"),N.jsx("input",{type:"text",spellCheck:"false",className:"maputnik-number",placeholder:(t=this.props.default)==null?void 0:t.toString(),value:s===void 0?(Rt().b[30][0]++,""):(Rt().b[30][1]++,s),onFocus:a=>{Rt().f[11]++,Rt().s[66]++,this.setState({editing:!0})},onChange:a=>{Rt().f[12]++,Rt().s[67]++,this.changeValue(a.target.value)},onBlur:a=>{Rt().f[13]++,Rt().s[68]++,this.setState({editing:!1}),Rt().s[69]++,this.resetValue()},"data-wd-key":this.props["data-wd-key"]+"-text"},"text")]})}else{Rt().b[24][1]++;const i=(Rt().s[70]++,this.state.editing?(Rt().b[31][0]++,this.state.dirtyValue):(Rt().b[31][1]++,this.state.value));return Rt().s[71]++,N.jsx("input",{"aria-label":this.props["aria-label"],spellCheck:"false",className:"maputnik-number",placeholder:(r=this.props.default)==null?void 0:r.toString(),value:i===void 0?(Rt().b[32][0]++,""):(Rt().b[32][1]++,i),onChange:o=>(Rt().f[14]++,Rt().s[72]++,this.changeValue(o.target.value)),onFocus:()=>{Rt().f[15]++,Rt().s[73]++,this.setState({editing:!0})},onBlur:this.resetValue,required:this.props.required,"data-wd-key":this.props["data-wd-key"]})}}}nn(pf,"defaultProps",(Rt().s[0]++,{rangeStep:1}));function Gh(){var e="/home/runner/work/maputnik/maputnik/src/components/InputCheckbox.tsx",n="e85f7924976070cbab7795bce9cf0e191e4a6b5e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputCheckbox.tsx",statementMap:{0:{start:{line:4,column:24},end:{line:6,column:3}},1:{start:{line:7,column:13},end:{line:9,column:3}},2:{start:{line:8,column:4},end:{line:8,column:43}},3:{start:{line:11,column:4},end:{line:26,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:13},end:{line:7,column:14}},loc:{start:{line:7,column:19},end:{line:9,column:3}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:11},end:{line:27,column:3}},line:10}},branchMap:{0:{loc:{start:{line:24,column:17},end:{line:24,column:53}},type:"cond-expr",locations:[{start:{line:24,column:36},end:{line:24,column:44}},{start:{line:24,column:47},end:{line:24,column:53}}],line:24}},s:{0:0,1:0,2:0,3:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputCheckbox.tsx"],names:[],mappings:"AAkBW,SACL,KADK;AAlBX,OAAO,WAAW;AAQlB,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,OAAO,eAAe;AAAA,IACpB,OAAO;AAAA,EACT;AAAA,EAEA,WAAW,MAAM;AACf,SAAK,MAAM,SAAS,CAAC,KAAK,MAAM,KAAK;AAAA,EACvC;AAAA,EAEA,SAAS;AACP,WAAO,qBAAC,SAAI,WAAU,6BACpB;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,MAAK;AAAA,UACL,OAAO,KAAK,MAAM;AAAA,UAClB,UAAU,KAAK;AAAA,UACf,SAAS,KAAK;AAAA,UACd,SAAS,KAAK,MAAM;AAAA;AAAA,MACtB;AAAA,MACA,oBAAC,SAAI,WAAU,yBACb,8BAAC,SAAI,OAAO;AAAA,QACV,SAAS,KAAK,MAAM,QAAQ,WAAW;AAAA,MACzC,GAAG,WAAU,0BAAyB,SAAQ,aAC5C,8BAAC,UAAK,GAAE,2CAA0C,GACpD,GACF;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e85f7924976070cbab7795bce9cf0e191e4a6b5e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Gh=function(){return s},s}Gh();class Q8 extends bn.Component{constructor(){super(...arguments);nn(this,"onChange",(Gh().s[1]++,()=>{Gh().f[0]++,Gh().s[2]++,this.props.onChange(!this.props.value)}))}render(){return Gh().f[1]++,Gh().s[3]++,N.jsxs("div",{className:"maputnik-checkbox-wrapper",children:[N.jsx("input",{className:"maputnik-checkbox",type:"checkbox",style:this.props.style,onChange:this.onChange,onClick:this.onChange,checked:this.props.value}),N.jsx("div",{className:"maputnik-checkbox-box",children:N.jsx("svg",{style:{display:this.props.value?(Gh().b[0][0]++,"inline"):(Gh().b[0][1]++,"none")},className:"maputnik-checkbox-icon",viewBox:"0 0 32 32",children:N.jsx("path",{d:"M1 14 L5 10 L13 18 L27 4 L31 8 L13 26 z"})})})]})}}nn(Q8,"defaultProps",(Gh().s[0]++,{value:!1}));function pr(){var e="/home/runner/work/maputnik/maputnik/src/components/InputArray.tsx",n="b22e3e5f460e97aba4bdc54843ce7e77423f5b07",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputArray.tsx",statementMap:{0:{start:{line:6,column:24},end:{line:9,column:3}},1:{start:{line:11,column:4},end:{line:11,column:17}},2:{start:{line:12,column:4},end:{line:16,column:6}},3:{start:{line:19,column:18},end:{line:19,column:20}},4:{start:{line:20,column:30},end:{line:20,column:62}},5:{start:{line:21,column:4},end:{line:28,column:7}},6:{start:{line:22,column:6},end:{line:27,column:7}},7:{start:{line:23,column:8},end:{line:23,column:34}},8:{start:{line:25,column:8},end:{line:25,column:34}},9:{start:{line:26,column:8},end:{line:26,column:46}},10:{start:{line:29,column:4},end:{line:32,column:6}},11:{start:{line:35,column:4},end:{line:38,column:7}},12:{start:{line:36,column:18},end:{line:36,column:26}},13:{start:{line:37,column:6},end:{line:37,column:45}},14:{start:{line:41,column:18},end:{line:41,column:43}},15:{start:{line:42,column:4},end:{line:42,column:26}},16:{start:{line:43,column:4},end:{line:51,column:7}},17:{start:{line:46,column:6},end:{line:50,column:7}},18:{start:{line:47,column:8},end:{line:47,column:35}},19:{start:{line:48,column:13},end:{line:50,column:7}},20:{start:{line:49,column:8},end:{line:49,column:36}},21:{start:{line:54,column:22},end:{line:54,column:32}},22:{start:{line:55,column:27},end:{line:57,column:6}},23:{start:{line:56,column:6},end:{line:56,column:42}},24:{start:{line:58,column:19},end:{line:84,column:6}},25:{start:{line:59,column:6},end:{line:83,column:7}},26:{start:{line:60,column:8},end:{line:70,column:10}},27:{start:{line:66,column:29},end:{line:66,column:51}},28:{start:{line:72,column:8},end:{line:82,column:10}},29:{start:{line:85,column:4},end:{line:85,column:89}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:21},end:{line:17,column:3}},line:10},1:{name:"(anonymous_1)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:48},end:{line:33,column:3}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:21,column:39},end:{line:21,column:40}},loc:{start:{line:21,column:49},end:{line:28,column:5}},line:21},3:{name:"(anonymous_3)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:34,column:20},end:{line:39,column:3}},line:34},4:{name:"(anonymous_4)",decl:{start:{line:35,column:53},end:{line:35,column:54}},loc:{start:{line:35,column:63},end:{line:38,column:5}},line:35},5:{name:"(anonymous_5)",decl:{start:{line:40,column:2},end:{line:40,column:3}},loc:{start:{line:40,column:29},end:{line:52,column:3}},line:40},6:{name:"(anonymous_6)",decl:{start:{line:45,column:7},end:{line:45,column:8}},loc:{start:{line:45,column:13},end:{line:51,column:5}},line:45},7:{name:"(anonymous_7)",decl:{start:{line:53,column:2},end:{line:53,column:3}},loc:{start:{line:53,column:11},end:{line:86,column:3}},line:53},8:{name:"(anonymous_8)",decl:{start:{line:55,column:60},end:{line:55,column:61}},loc:{start:{line:55,column:69},end:{line:57,column:5}},line:55},9:{name:"(anonymous_9)",decl:{start:{line:58,column:59},end:{line:58,column:60}},loc:{start:{line:58,column:69},end:{line:84,column:5}},line:58},10:{name:"(anonymous_10)",decl:{start:{line:66,column:22},end:{line:66,column:23}},loc:{start:{line:66,column:29},end:{line:66,column:51}},line:66}},branchMap:{0:{loc:{start:{line:22,column:6},end:{line:27,column:7}},type:"if",locations:[{start:{line:22,column:6},end:{line:27,column:7}},{start:{line:24,column:13},end:{line:27,column:7}}],line:22},1:{loc:{start:{line:37,column:15},end:{line:37,column:43}},type:"binary-expr",locations:[{start:{line:37,column:15},end:{line:37,column:29}},{start:{line:37,column:33},end:{line:37,column:43}}],line:37},2:{loc:{start:{line:46,column:6},end:{line:50,column:7}},type:"if",locations:[{start:{line:46,column:6},end:{line:50,column:7}},{start:{line:48,column:13},end:{line:50,column:7}}],line:46},3:{loc:{start:{line:46,column:10},end:{line:46,column:55}},type:"binary-expr",locations:[{start:{line:46,column:10},end:{line:46,column:32}},{start:{line:46,column:36},end:{line:46,column:55}}],line:46},4:{loc:{start:{line:48,column:13},end:{line:50,column:7}},type:"if",locations:[{start:{line:48,column:13},end:{line:50,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:48},5:{loc:{start:{line:55,column:27},end:{line:57,column:6}},type:"binary-expr",locations:[{start:{line:55,column:27},end:{line:55,column:43}},{start:{line:55,column:47},end:{line:57,column:6}}],line:55},6:{loc:{start:{line:56,column:13},end:{line:56,column:41}},type:"binary-expr",locations:[{start:{line:56,column:13},end:{line:56,column:23}},{start:{line:56,column:27},end:{line:56,column:41}}],line:56},7:{loc:{start:{line:59,column:6},end:{line:83,column:7}},type:"if",locations:[{start:{line:59,column:6},end:{line:83,column:7}},{start:{line:71,column:13},end:{line:83,column:7}}],line:59},8:{loc:{start:{line:63,column:21},end:{line:63,column:91}},type:"cond-expr",locations:[{start:{line:63,column:61},end:{line:63,column:67}},{start:{line:63,column:70},end:{line:63,column:91}}],line:63},9:{loc:{start:{line:63,column:21},end:{line:63,column:58}},type:"binary-expr",locations:[{start:{line:63,column:21},end:{line:63,column:35}},{start:{line:63,column:39},end:{line:63,column:58}}],line:63},10:{loc:{start:{line:65,column:22},end:{line:65,column:51}},type:"cond-expr",locations:[{start:{line:65,column:39},end:{line:65,column:43}},{start:{line:65,column:46},end:{line:65,column:51}}],line:65},11:{loc:{start:{line:67,column:26},end:{line:67,column:70}},type:"binary-expr",locations:[{start:{line:67,column:26},end:{line:67,column:50}},{start:{line:67,column:54},end:{line:67,column:70}}],line:67},12:{loc:{start:{line:75,column:21},end:{line:75,column:91}},type:"cond-expr",locations:[{start:{line:75,column:61},end:{line:75,column:67}},{start:{line:75,column:70},end:{line:75,column:91}}],line:75},13:{loc:{start:{line:75,column:21},end:{line:75,column:58}},type:"binary-expr",locations:[{start:{line:75,column:21},end:{line:75,column:35}},{start:{line:75,column:39},end:{line:75,column:58}}],line:75},14:{loc:{start:{line:77,column:22},end:{line:77,column:51}},type:"cond-expr",locations:[{start:{line:77,column:39},end:{line:77,column:43}},{start:{line:77,column:46},end:{line:77,column:51}}],line:77},15:{loc:{start:{line:79,column:26},end:{line:79,column:70}},type:"binary-expr",locations:[{start:{line:79,column:26},end:{line:79,column:50}},{start:{line:79,column:54},end:{line:79,column:70}}],line:79}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputArray.tsx"],names:[],mappings:"AA0Fe;AA1Ff,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AAiBxB,qBAAqB,mBAAmB,MAAM,UAA4C;AAAA,EACxF,OAAO,eAAe;AAAA,IACpB,OAAO,CAAC;AAAA,IACR,SAAS,CAAC;AAAA,EACZ;AAAA,EAEA,YAAa,OAAwB;AACnC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,OAAO,KAAK,MAAM,MAAM,MAAM,CAAC;AAAA;AAAA,MAE/B,mBAAmB,KAAK,MAAM,MAAM,MAAM,CAAC;AAAA,IAC7C;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAAwB,OAAwB;AAC9E,UAAM,QAAe,CAAC;AACtB,UAAM,oBAAoB,MAAM,kBAAkB,MAAM,CAAC;AAEzD,UAAM,MAAM,MAAM,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,GAAG,MAAM;AAC3C,UAAI,MAAM,MAAM,CAAC,MAAM,MAAM,kBAAkB,CAAC,GAAG;AACjD,cAAM,CAAC,IAAI,MAAM,MAAM,CAAC;AAAA,MAC1B,OACK;AACH,cAAM,CAAC,IAAI,MAAM,MAAM,CAAC;AACxB,0BAAkB,CAAC,IAAI,MAAM,MAAM,CAAC;AAAA,MACtC;AAAA,IACF,CAAC;AAED,WAAO;AAAA,MACL;AAAA,MACA;AAAA,IACF;AAAA,EACF;AAAA,EAEA,WAAW,OAAkB;AAC3B,WAAO,MAAM,KAAK,MAAM,MAAM,EAAE,KAAK,IAAI,EAAE,MAAM,CAAC,GAAG,MAAM;AACzD,YAAM,MAAM,MAAM,CAAC;AACnB,aAAO,EAAE,QAAQ,UAAa,QAAQ;AAAA,IACxC,CAAC;AAAA,EACH;AAAA,EAEA,YAAY,KAAa,UAAuC;AAC9D,UAAM,QAAQ,KAAK,MAAM,MAAM,MAAM,CAAC;AACtC,UAAM,GAAG,IAAI;AAEb,SAAK,SAAS;AAAA,MACZ;AAAA,IACF,GAAG,MAAM;AACP,UAAI,KAAK,WAAW,KAAK,KAAK,KAAK,MAAM,UAAU;AACjD,aAAK,MAAM,SAAS,KAAK;AAAA,MAC3B,WACS,KAAK,MAAM,UAAS;AAE3B,aAAK,MAAM,SAAS,MAAS;AAAA,MAC/B;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,MAAK,IAAI,KAAK;AAErB,UAAM,iBACJ,MAAM,SAAS,KACf,CAAC,MAAM,MAAM,SAAO;AAClB,aAAQ,QAAQ,MAAM,QAAQ;AAAA,IAChC,CAAC;AAGH,UAAM,SAAS,MAAM,KAAK,MAAM,MAAM,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,GAAG,MAAM;AAC/D,UAAG,KAAK,MAAM,SAAS,UAAU;AAC/B,eAAO;AAAA,UAAC;AAAA;AAAA,YAEN,SAAS,kBAAkB,CAAC,KAAK,MAAM,UAAU,SAAY,KAAK,MAAM,QAAQ,CAAC;AAAA,YACjF,OAAO,MAAM,CAAC;AAAA,YACd,UAAU,iBAAiB,OAAO;AAAA,YAClC,UAAU,CAAC,MAAM,KAAK,YAAY,GAAG,CAAC;AAAA,YACtC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,UAL9C;AAAA,QAMP;AAAA,MACF,OAAO;AACL,eAAO;AAAA,UAAC;AAAA;AAAA,YAEN,SAAS,kBAAkB,CAAC,KAAK,MAAM,UAAU,SAAY,KAAK,MAAM,QAAQ,CAAC;AAAA,YACjF,OAAO,MAAM,CAAC;AAAA,YACd,UAAU,iBAAiB,OAAO;AAAA,YAClC,UAAU,KAAK,YAAY,KAAK,MAAM,CAAC;AAAA,YACvC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,UAL9C;AAAA,QAMP;AAAA,MACF;AAAA,IACF,CAAC;AAED,WACE,oBAAC,SAAI,WAAU,kBACZ,kBACH;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b22e3e5f460e97aba4bdc54843ce7e77423f5b07"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return pr=function(){return s},s}pr();var vS;let NN=(vS=class extends bn.Component{constructor(n){pr().f[0]++,pr().s[1]++,super(n),pr().s[2]++,this.state={value:this.props.value.slice(0),initialPropsValue:this.props.value.slice(0)}}static getDerivedStateFromProps(n,t){pr().f[1]++;const r=(pr().s[3]++,[]),i=(pr().s[4]++,t.initialPropsValue.slice(0));return pr().s[5]++,Array(n.length).fill(null).map((o,s)=>{pr().f[2]++,pr().s[6]++,n.value[s]===t.initialPropsValue[s]?(pr().b[0][0]++,pr().s[7]++,r[s]=t.value[s]):(pr().b[0][1]++,pr().s[8]++,r[s]=t.value[s],pr().s[9]++,i[s]=t.value[s])}),pr().s[10]++,{value:r,initialPropsValue:i}}isComplete(n){return pr().f[3]++,pr().s[11]++,Array(this.props.length).fill(null).every((t,r)=>{pr().f[4]++;const i=(pr().s[12]++,n[r]);return pr().s[13]++,pr().b[1][0]++,!(i===void 0||(pr().b[1][1]++,i===""))})}changeValue(n,t){pr().f[5]++;const r=(pr().s[14]++,this.state.value.slice(0));pr().s[15]++,r[n]=t,pr().s[16]++,this.setState({value:r},()=>{pr().f[6]++,pr().s[17]++,pr().b[3][0]++,this.isComplete(r)&&(pr().b[3][1]++,this.props.onChange)?(pr().b[2][0]++,pr().s[18]++,this.props.onChange(r)):(pr().b[2][1]++,pr().s[19]++,this.props.onChange?(pr().b[4][0]++,pr().s[20]++,this.props.onChange(void 0)):pr().b[4][1]++)})}render(){pr().f[7]++;const{value:n}=(pr().s[21]++,this.state),t=(pr().s[22]++,pr().b[5][0]++,n.length>0&&(pr().b[5][1]++,!n.every(i=>(pr().f[8]++,pr().s[23]++,pr().b[6][0]++,i===""||(pr().b[6][1]++,i===void 0))))),r=(pr().s[24]++,Array(this.props.length).fill(null).map((i,o)=>(pr().f[9]++,pr().s[25]++,this.props.type==="number"?(pr().b[7][0]++,pr().s[26]++,N.jsx(pf,{default:(pr().b[9][0]++,t||(pr().b[9][1]++,!this.props.default)?(pr().b[8][0]++,void 0):(pr().b[8][1]++,this.props.default[o])),value:n[o],required:t?(pr().b[10][0]++,!0):(pr().b[10][1]++,!1),onChange:s=>(pr().f[10]++,pr().s[27]++,this.changeValue(o,s)),"aria-label":(pr().b[11][0]++,this.props["aria-label"]||(pr().b[11][1]++,this.props.label))},o)):(pr().b[7][1]++,pr().s[28]++,N.jsx(Sd,{default:(pr().b[13][0]++,t||(pr().b[13][1]++,!this.props.default)?(pr().b[12][0]++,void 0):(pr().b[12][1]++,this.props.default[o])),value:n[o],required:t?(pr().b[14][0]++,!0):(pr().b[14][1]++,!1),onChange:this.changeValue.bind(this,o),"aria-label":(pr().b[15][0]++,this.props["aria-label"]||(pr().b[15][1]++,this.props.label))},o)))));return pr().s[29]++,N.jsx("div",{className:"maputnik-array",children:r})}},nn(vS,"defaultProps",(pr().s[0]++,{value:[],default:[]})),vS);function nl(){var e="/home/runner/work/maputnik/maputnik/src/components/InputMultiInput.tsx",n="c4660c9ecb80d9f1ce71e70441154e1e765b77ab",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputMultiInput.tsx",statementMap:{0:{start:{line:6,column:18},end:{line:6,column:36}},1:{start:{line:7,column:4},end:{line:9,column:5}},2:{start:{line:8,column:6},end:{line:8,column:43}},3:{start:{line:8,column:35},end:{line:8,column:41}},4:{start:{line:10,column:26},end:{line:10,column:59}},5:{start:{line:11,column:19},end:{line:32,column:6}},6:{start:{line:12,column:6},end:{line:31,column:8}},7:{start:{line:22,column:34},end:{line:22,column:58}},8:{start:{line:33,column:4},end:{line:33,column:140}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:34,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:8,column:28},end:{line:8,column:29}},loc:{start:{line:8,column:35},end:{line:8,column:41}},line:8},2:{name:"(anonymous_2)",decl:{start:{line:11,column:31},end:{line:11,column:32}},loc:{start:{line:11,column:49},end:{line:32,column:5}},line:11},3:{name:"(anonymous_3)",decl:{start:{line:22,column:26},end:{line:22,column:27}},loc:{start:{line:22,column:34},end:{line:22,column:58}},line:22}},branchMap:{0:{loc:{start:{line:7,column:4},end:{line:9,column:5}},type:"if",locations:[{start:{line:7,column:4},end:{line:9,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:7},1:{loc:{start:{line:7,column:8},end:{line:7,column:56}},type:"binary-expr",locations:[{start:{line:7,column:8},end:{line:7,column:26}},{start:{line:7,column:30},end:{line:7,column:56}}],line:7},2:{loc:{start:{line:10,column:26},end:{line:10,column:59}},type:"binary-expr",locations:[{start:{line:10,column:26},end:{line:10,column:42}},{start:{line:10,column:46},end:{line:10,column:59}}],line:10}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0},f:{0:0,1:0,2:0,3:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputMultiInput.tsx"],names:[],mappings:"AAoBa,SAIL,KAJK;AApBb,OAAO,WAAW;AAClB,OAAO,gBAAgB;AAUvB,qBAAqB,wBAAwB,MAAM,UAAgC;AAAA,EACjF,SAAS;AACP,QAAI,UAAU,KAAK,MAAM;AACzB,QAAG,QAAQ,SAAS,KAAK,CAAC,MAAM,QAAQ,QAAQ,CAAC,CAAC,GAAG;AACnD,gBAAU,QAAQ,IAAI,OAAK,CAAC,GAAG,CAAC,CAAC;AAAA,IACnC;AAEA,UAAM,gBAAgB,KAAK,MAAM,SAAS,QAAQ,CAAC,EAAE,CAAC;AACtD,UAAM,SAAS,QAAQ,IAAI,CAAC,CAAC,KAAK,KAAK,MAAK;AAC1C,aAAO;AAAA,QAAC;AAAA;AAAA,UAEN,WAAW,WAAW,4BAA4B,EAAC,4BAA4B,QAAQ,cAAa,CAAC;AAAA,UAErG;AAAA;AAAA,cAAC;AAAA;AAAA,gBAAM,MAAK;AAAA,gBACV,MAAM,KAAK,MAAM;AAAA,gBACjB,UAAU,QAAM,KAAK,MAAM,SAAS,GAAG;AAAA,gBACvC,OAAO;AAAA,gBACP,SAAS,QAAQ;AAAA;AAAA,YACnB;AAAA,YACC;AAAA;AAAA;AAAA,QATI;AAAA,MAUP;AAAA,IACF,CAAC;AAED,WAAO,oBAAC,cAAS,WAAU,wBAAuB,cAAY,KAAK,MAAM,YAAY,GAClF,kBACH;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c4660c9ecb80d9f1ce71e70441154e1e765b77ab"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return nl=function(){return s},s}nl();class o6e extends bn.Component{render(){nl().f[0]++;let n=(nl().s[0]++,this.props.options);nl().s[1]++,nl().b[1][0]++,n.length>0&&(nl().b[1][1]++,!Array.isArray(n[0]))?(nl().b[0][0]++,nl().s[2]++,n=n.map(i=>(nl().f[1]++,nl().s[3]++,[i,i]))):nl().b[0][1]++;const t=(nl().s[4]++,nl().b[2][0]++,this.props.value||(nl().b[2][1]++,n[0][0])),r=(nl().s[5]++,n.map(([i,o])=>(nl().f[2]++,nl().s[6]++,N.jsxs("label",{className:Af("maputnik-radio-as-button",{"maputnik-button-selected":i===t}),children:[N.jsx("input",{type:"radio",name:this.props.name,onChange:s=>(nl().f[3]++,nl().s[7]++,this.props.onChange(i)),value:i,checked:i===t}),o]},i))));return nl().s[8]++,N.jsx("fieldset",{className:"maputnik-multibutton","aria-label":this.props["aria-label"],children:r})}}function ns(){var e="/home/runner/work/maputnik/maputnik/src/components/InputEnum.tsx",n="d905b5da4422f2b84d44f87b04fda3de421542f5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputEnum.tsx",statementMap:{0:{start:{line:6,column:12},end:{line:6,column:13}},1:{start:{line:7,column:2},end:{line:9,column:5}},2:{start:{line:8,column:4},end:{line:8,column:24}},3:{start:{line:10,column:2},end:{line:10,column:13}},4:{start:{line:14,column:54},end:{line:14,column:64}},5:{start:{line:15,column:4},end:{line:36,column:5}},6:{start:{line:16,column:6},end:{line:25,column:8}},7:{start:{line:27,column:6},end:{line:35,column:8}}},fnMap:{0:{name:"optionsLabelLength",decl:{start:{line:5,column:9},end:{line:5,column:27}},loc:{start:{line:5,column:37},end:{line:11,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:7,column:18},end:{line:7,column:19}},loc:{start:{line:7,column:34},end:{line:9,column:3}},line:7},2:{name:"(anonymous_2)",decl:{start:{line:13,column:2},end:{line:13,column:3}},loc:{start:{line:13,column:11},end:{line:37,column:3}},line:13}},branchMap:{0:{loc:{start:{line:15,column:4},end:{line:36,column:5}},type:"if",locations:[{start:{line:15,column:4},end:{line:36,column:5}},{start:{line:26,column:11},end:{line:36,column:5}}],line:15},1:{loc:{start:{line:15,column:8},end:{line:15,column:64}},type:"binary-expr",locations:[{start:{line:15,column:8},end:{line:15,column:27}},{start:{line:15,column:31},end:{line:15,column:64}}],line:15},2:{loc:{start:{line:21,column:17},end:{line:21,column:44}},type:"binary-expr",locations:[{start:{line:21,column:17},end:{line:21,column:22}},{start:{line:21,column:26},end:{line:21,column:44}}],line:21},3:{loc:{start:{line:23,column:24},end:{line:23,column:57}},type:"binary-expr",locations:[{start:{line:23,column:24},end:{line:23,column:48}},{start:{line:23,column:52},end:{line:23,column:57}}],line:23},4:{loc:{start:{line:31,column:17},end:{line:31,column:44}},type:"binary-expr",locations:[{start:{line:31,column:17},end:{line:31,column:22}},{start:{line:31,column:26},end:{line:31,column:44}}],line:31},5:{loc:{start:{line:33,column:24},end:{line:33,column:57}},type:"binary-expr",locations:[{start:{line:33,column:24},end:{line:33,column:48}},{start:{line:33,column:52},end:{line:33,column:57}}],line:33}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputEnum.tsx"],names:[],mappings:"AAgCa;AAhCb,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,OAAO,qBAAqB;AAG5B,SAAS,mBAAmB,SAAgB;AAC1C,MAAI,MAAM;AACV,UAAQ,QAAQ,CAAC,CAAC,GAAG,KAAK,MAAM;AAC9B,WAAO,MAAM;AAAA,EACf,CAAC;AACD,SAAO;AACT;AAgBA,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,EAAC,SAAS,OAAO,UAAU,MAAM,MAAK,IAAI,KAAK;AAErD,QAAG,QAAQ,UAAU,KAAK,mBAAmB,OAAO,KAAK,IAAI;AAC3D,aAAO;AAAA,QAAC;AAAA;AAAA,UACN;AAAA,UACA;AAAA,UACA,OAAQ,SAAS,KAAK,MAAM;AAAA,UAC5B;AAAA,UACA,cAAY,KAAK,MAAM,YAAY,KAAK;AAAA;AAAA,MAC1C;AAAA,IACF,OAAO;AACL,aAAO;AAAA,QAAC;AAAA;AAAA,UACN;AAAA,UACA,OAAQ,SAAS,KAAK,MAAM;AAAA,UAC5B;AAAA,UACA,cAAY,KAAK,MAAM,YAAY,KAAK;AAAA;AAAA,MAC1C;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d905b5da4422f2b84d44f87b04fda3de421542f5"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ns=function(){return s},s}ns();function a6e(e){ns().f[0]++;let n=(ns().s[0]++,0);return ns().s[1]++,e.forEach(([t,r])=>{ns().f[1]++,ns().s[2]++,n+=r.length}),ns().s[3]++,n}class $8 extends bn.Component{render(){ns().f[2]++;const{options:n,value:t,onChange:r,name:i,label:o}=(ns().s[4]++,this.props);return ns().s[5]++,ns().b[1][0]++,n.length<=3&&(ns().b[1][1]++,a6e(n)<=20)?(ns().b[0][0]++,ns().s[6]++,N.jsx(o6e,{name:i,options:n,value:(ns().b[2][0]++,t||(ns().b[2][1]++,this.props.default)),onChange:r,"aria-label":(ns().b[3][0]++,this.props["aria-label"]||(ns().b[3][1]++,o))})):(ns().b[0][1]++,ns().s[7]++,N.jsx(w1,{options:n,value:(ns().b[4][0]++,t||(ns().b[4][1]++,this.props.default)),onChange:r,"aria-label":(ns().b[5][0]++,this.props["aria-label"]||(ns().b[5][1]++,o))}))}}function l4(){var e="/home/runner/work/maputnik/maputnik/src/components/SmallError.tsx",n="74f20da146753d9876d7a8eb2810e9f5402ba306",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/SmallError.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:9,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:10,column:3}},line:5}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/SmallError.tsx"],names:[],mappings:"AAYM;AAZN,OAAO,WAAW;AAClB,OAAO;AAQP,qBAAqB,mBAAmB,MAAM,UAA2B;AAAA,EACvE,SAAU;AACR,WACE,qBAAC,SAAI,WAAU,cAAa;AAAA;AAAA,MAClB,KAAK,MAAM;AAAA,OACrB;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"74f20da146753d9876d7a8eb2810e9f5402ba306"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return l4=function(){return s},s}l4();class uP extends bn.Component{render(){return l4().f[0]++,l4().s[0]++,N.jsxs("div",{className:"SmallError",children:["Error: ",this.props.children]})}}function wi(){var e="/home/runner/work/maputnik/maputnik/src/components/InputUrl.tsx",n="a46ad84e5c054cc551de3c721f37ad4b7c2acd0b",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputUrl.tsx",statementMap:{0:{start:{line:6,column:2},end:{line:8,column:3}},1:{start:{line:7,column:4},end:{line:7,column:11}},2:{start:{line:10,column:22},end:{line:17,column:3}},3:{start:{line:11,column:4},end:{line:16,column:5}},4:{start:{line:12,column:21},end:{line:12,column:34}},5:{start:{line:13,column:6},end:{line:13,column:29}},6:{start:{line:15,column:6},end:{line:15,column:20}},7:{start:{line:18,column:19},end:{line:18,column:35}},8:{start:{line:19,column:16},end:{line:19,column:53}},9:{start:{line:20,column:2},end:{line:35,column:3}},10:{start:{line:21,column:4},end:{line:28,column:9}},11:{start:{line:29,column:9},end:{line:35,column:3}},12:{start:{line:30,column:4},end:{line:34,column:9}},13:{start:{line:36,column:2},end:{line:36,column:15}},14:{start:{line:39,column:24},end:{line:42,column:3}},15:{start:{line:44,column:4},end:{line:44,column:17}},16:{start:{line:45,column:4},end:{line:47,column:6}},17:{start:{line:49,column:12},end:{line:55,column:3}},18:{start:{line:50,column:4},end:{line:52,column:7}},19:{start:{line:53,column:4},end:{line:54,column:30}},20:{start:{line:54,column:6},end:{line:54,column:30}},21:{start:{line:56,column:13},end:{line:61,column:3}},22:{start:{line:57,column:4},end:{line:59,column:7}},23:{start:{line:60,column:4},end:{line:60,column:29}},24:{start:{line:63,column:4},end:{line:74,column:9}}},fnMap:{0:{name:"validate",decl:{start:{line:5,column:9},end:{line:5,column:17}},loc:{start:{line:5,column:23},end:{line:37,column:1}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:10,column:22},end:{line:10,column:23}},loc:{start:{line:10,column:32},end:{line:17,column:3}},line:10},2:{name:"(anonymous_2)",decl:{start:{line:40,column:13},end:{line:40,column:14}},loc:{start:{line:40,column:19},end:{line:41,column:5}},line:40},3:{name:"(anonymous_3)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:21},end:{line:48,column:3}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:49,column:12},end:{line:49,column:13}},loc:{start:{line:49,column:21},end:{line:55,column:3}},line:49},5:{name:"(anonymous_5)",decl:{start:{line:56,column:13},end:{line:56,column:14}},loc:{start:{line:56,column:22},end:{line:61,column:3}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:62,column:2},end:{line:62,column:3}},loc:{start:{line:62,column:11},end:{line:75,column:3}},line:62}},branchMap:{0:{loc:{start:{line:6,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:2},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},1:{loc:{start:{line:20,column:2},end:{line:35,column:3}},type:"if",locations:[{start:{line:20,column:2},end:{line:35,column:3}},{start:{line:29,column:9},end:{line:35,column:3}}],line:20},2:{loc:{start:{line:23,column:6},end:{line:27,column:10}},type:"cond-expr",locations:[{start:{line:23,column:30},end:{line:23,column:67}},{start:{line:23,column:86},end:{line:27,column:10}}],line:23},3:{loc:{start:{line:29,column:9},end:{line:35,column:3}},type:"if",locations:[{start:{line:29,column:9},end:{line:35,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:29},4:{loc:{start:{line:29,column:13},end:{line:29,column:86}},type:"binary-expr",locations:[{start:{line:29,column:13},end:{line:29,column:21}},{start:{line:29,column:25},end:{line:29,column:45}},{start:{line:29,column:49},end:{line:29,column:86}}],line:29},5:{loc:{start:{line:53,column:4},end:{line:54,column:30}},type:"if",locations:[{start:{line:53,column:4},end:{line:54,column:30}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:53}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputUrl.tsx"],names:["url"],mappings:"AA4Bc,SACA,UADA,KACA,YADA;AA5Bd,OAAO,WAAW;AAClB,OAAO,iBAAiB;AACxB,OAAO,gBAAgB;AAGvB,SAAS,SAAS,KAAa;AAC7B,MAAI,QAAQ,IAAI;AACd;AAAA,EACF;AAEA,MAAI;AACJ,QAAM,cAAc,CAACA,SAAgB;AACnC,QAAI;AACF,YAAM,SAAS,IAAI,IAAIA,IAAG;AAC1B,aAAO,OAAO;AAAA,IAChB,SACO,KAAK;AACV,aAAO;AAAA,IACT;AAAA,EACF;AACA,QAAM,WAAW,YAAY,GAAG;AAChC,QAAM,QAAQ,OAAO,SAAS,aAAa;AAE3C,MAAI,CAAC,UAAU;AACb,YACE,qBAAC,cAAW;AAAA;AAAA,MAER,QACI,oBAAC,UAAK,sBAAQ,IACd,iCAAE;AAAA,4BAAC,UAAK,qBAAO;AAAA,QAAO;AAAA,QAAI,oBAAC,UAAK,sBAAQ;AAAA,SAAO;AAAA,OAEvD;AAAA,EAEJ,WAEE,YACA,aAAa,WACb,OAAO,SAAS,aAAa,UAC7B;AACA,YACE,qBAAC,cAAW;AAAA;AAAA,MACyE,oBAAC,UAAK,sBAAQ;AAAA,MAAO;AAAA,OAC1G;AAAA,EAEJ;AAEA,SAAO;AACT;AAoBA,qBAAqB,iBAAiB,MAAM,UAAwC;AAAA,EAClF,OAAO,eAAe;AAAA,IACpB,SAAS,MAAM;AAAA,IAAC;AAAA,EAClB;AAAA,EAEA,YAAa,OAAsB;AACjC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,OAAO,SAAS,MAAM,KAAK;AAAA,IAC7B;AAAA,EACF;AAAA,EAEA,UAAU,CAAC,QAAgB;AACzB,SAAK,SAAS;AAAA,MACZ,OAAO,SAAS,GAAG;AAAA,IACrB,CAAC;AACD,QAAI,KAAK,MAAM;AAAS,WAAK,MAAM,QAAQ,GAAG;AAAA,EAChD;AAAA,EAEA,WAAW,CAAC,QAAgB;AAC1B,SAAK,SAAS;AAAA,MACZ,OAAO,SAAS,GAAG;AAAA,IACrB,CAAC;AACD,SAAK,MAAM,SAAS,GAAG;AAAA,EACzB;AAAA,EAEA,SAAU;AACR,WACE,qBAAC,SACC;AAAA;AAAA,QAAC;AAAA;AAAA,UACE,GAAG,KAAK;AAAA,UACT,SAAS,KAAK;AAAA,UACd,UAAU,KAAK;AAAA,UACf,cAAY,KAAK,MAAM,YAAY;AAAA;AAAA,MACrC;AAAA,MACC,KAAK,MAAM;AAAA,OACd;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a46ad84e5c054cc551de3c721f37ad4b7c2acd0b"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return wi=function(){return s},s}wi();function iS(e){if(wi().f[0]++,wi().s[0]++,e===""){wi().b[0][0]++,wi().s[1]++;return}else wi().b[0][1]++;let n;wi().s[2]++;const t=o=>{wi().f[1]++,wi().s[3]++;try{const s=(wi().s[4]++,new URL(o));return wi().s[5]++,s.protocol}catch{wi().s[6]++;return}},r=(wi().s[7]++,t(e)),i=(wi().s[8]++,window.location.protocol==="https:");return wi().s[9]++,r?(wi().b[1][1]++,wi().s[11]++,wi().b[4][0]++,r&&(wi().b[4][1]++,r==="http:")&&(wi().b[4][2]++,window.location.protocol==="https:")?(wi().b[3][0]++,wi().s[12]++,n=N.jsxs(uP,{children:["CORS policy won't allow fetching resources served over http from https, use a ",N.jsx("code",{children:"https://"})," domain"]})):wi().b[3][1]++):(wi().b[1][0]++,wi().s[10]++,n=N.jsxs(uP,{children:["Must provide protocol ",i?(wi().b[2][0]++,N.jsx("code",{children:"https://"})):(wi().b[2][1]++,N.jsxs(N.Fragment,{children:[N.jsx("code",{children:"http://"})," or ",N.jsx("code",{children:"https://"})]}))]})),wi().s[13]++,n}var CS;let Y8=(CS=class extends bn.Component{constructor(t){wi().f[3]++,wi().s[15]++;super(t);nn(this,"onInput",(wi().s[17]++,t=>{wi().f[4]++,wi().s[18]++,this.setState({error:iS(t)}),wi().s[19]++,this.props.onInput?(wi().b[5][0]++,wi().s[20]++,this.props.onInput(t)):wi().b[5][1]++}));nn(this,"onChange",(wi().s[21]++,t=>{wi().f[5]++,wi().s[22]++,this.setState({error:iS(t)}),wi().s[23]++,this.props.onChange(t)}));wi().s[16]++,this.state={error:iS(t.value)}}render(){return wi().f[6]++,wi().s[24]++,N.jsxs("div",{children:[N.jsx(Sd,{...this.props,onInput:this.onInput,onChange:this.onChange,"aria-label":this.props["aria-label"]}),this.state.error]})}},nn(CS,"defaultProps",(wi().s[14]++,{onInput:()=>{wi().f[2]++}})),CS);function Ar(){var e="/home/runner/work/maputnik/maputnik/src/components/InputDynamicArray.tsx",n="a9b629853605b137778e6e7df9c6ca743543c2f4",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputDynamicArray.tsx",statementMap:{0:{start:{line:13,column:19},end:{line:13,column:39}},1:{start:{line:14,column:4},end:{line:14,column:27}},2:{start:{line:15,column:4},end:{line:16,column:34}},3:{start:{line:16,column:6},end:{line:16,column:34}},4:{start:{line:19,column:4},end:{line:19,column:56}},5:{start:{line:21,column:13},end:{line:36,column:3}},6:{start:{line:22,column:19},end:{line:22,column:39}},7:{start:{line:23,column:4},end:{line:33,column:5}},8:{start:{line:24,column:6},end:{line:24,column:21}},9:{start:{line:25,column:11},end:{line:33,column:5}},10:{start:{line:26,column:6},end:{line:26,column:22}},11:{start:{line:27,column:11},end:{line:33,column:5}},12:{start:{line:28,column:28},end:{line:28,column:38}},13:{start:{line:29,column:27},end:{line:29,column:59}},14:{start:{line:30,column:6},end:{line:30,column:32}},15:{start:{line:32,column:6},end:{line:32,column:22}},16:{start:{line:34,column:4},end:{line:35,column:34}},17:{start:{line:35,column:6},end:{line:35,column:34}},18:{start:{line:38,column:19},end:{line:38,column:39}},19:{start:{line:39,column:4},end:{line:39,column:31}},20:{start:{line:40,column:4},end:{line:41,column:63}},21:{start:{line:41,column:6},end:{line:41,column:63}},22:{start:{line:44,column:19},end:{line:98,column:6}},23:{start:{line:45,column:45},end:{line:45,column:117}},24:{start:{line:47,column:6},end:{line:85,column:7}},25:{start:{line:48,column:8},end:{line:55,column:10}},26:{start:{line:56,column:13},end:{line:85,column:7}},27:{start:{line:57,column:8},end:{line:64,column:10}},28:{start:{line:65,column:13},end:{line:85,column:7}},29:{start:{line:66,column:24},end:{line:66,column:99}},30:{start:{line:66,column:78},end:{line:66,column:98}},31:{start:{line:67,column:8},end:{line:75,column:10}},32:{start:{line:77,column:8},end:{line:84,column:10}},33:{start:{line:86,column:6},end:{line:97,column:8}},34:{start:{line:99,column:4},end:{line:109,column:9}},35:{start:{line:114,column:4},end:{line:127,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:12,column:2},end:{line:12,column:3}},loc:{start:{line:12,column:29},end:{line:17,column:3}},line:12},1:{name:"(anonymous_1)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:15},end:{line:20,column:3}},line:18},2:{name:"(anonymous_2)",decl:{start:{line:21,column:13},end:{line:21,column:14}},loc:{start:{line:21,column:19},end:{line:36,column:3}},line:21},3:{name:"(anonymous_3)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:24},end:{line:42,column:3}},line:37},4:{name:"(anonymous_4)",decl:{start:{line:43,column:2},end:{line:43,column:3}},loc:{start:{line:43,column:11},end:{line:110,column:3}},line:43},5:{name:"(anonymous_5)",decl:{start:{line:44,column:35},end:{line:44,column:36}},loc:{start:{line:44,column:45},end:{line:98,column:5}},line:44},6:{name:"(anonymous_6)",decl:{start:{line:66,column:70},end:{line:66,column:71}},loc:{start:{line:66,column:78},end:{line:66,column:98}},line:66},7:{name:"(anonymous_7)",decl:{start:{line:113,column:2},end:{line:113,column:3}},loc:{start:{line:113,column:11},end:{line:128,column:3}},line:113}},branchMap:{0:{loc:{start:{line:15,column:4},end:{line:16,column:34}},type:"if",locations:[{start:{line:15,column:4},end:{line:16,column:34}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},1:{loc:{start:{line:19,column:11},end:{line:19,column:55}},type:"binary-expr",locations:[{start:{line:19,column:11},end:{line:19,column:27}},{start:{line:19,column:31},end:{line:19,column:49}},{start:{line:19,column:53},end:{line:19,column:55}}],line:19},2:{loc:{start:{line:23,column:4},end:{line:33,column:5}},type:"if",locations:[{start:{line:23,column:4},end:{line:33,column:5}},{start:{line:25,column:11},end:{line:33,column:5}}],line:23},3:{loc:{start:{line:25,column:11},end:{line:33,column:5}},type:"if",locations:[{start:{line:25,column:11},end:{line:33,column:5}},{start:{line:27,column:11},end:{line:33,column:5}}],line:25},4:{loc:{start:{line:27,column:11},end:{line:33,column:5}},type:"if",locations:[{start:{line:27,column:11},end:{line:33,column:5}},{start:{line:31,column:11},end:{line:33,column:5}}],line:27},5:{loc:{start:{line:34,column:4},end:{line:35,column:34}},type:"if",locations:[{start:{line:34,column:4},end:{line:35,column:34}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:34},6:{loc:{start:{line:40,column:4},end:{line:41,column:63}},type:"if",locations:[{start:{line:40,column:4},end:{line:41,column:63}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:40},7:{loc:{start:{line:41,column:26},end:{line:41,column:61}},type:"cond-expr",locations:[{start:{line:41,column:46},end:{line:41,column:52}},{start:{line:41,column:55},end:{line:41,column:61}}],line:41},8:{loc:{start:{line:47,column:6},end:{line:85,column:7}},type:"if",locations:[{start:{line:47,column:6},end:{line:85,column:7}},{start:{line:56,column:13},end:{line:85,column:7}}],line:47},9:{loc:{start:{line:53,column:26},end:{line:53,column:70}},type:"binary-expr",locations:[{start:{line:53,column:26},end:{line:53,column:50}},{start:{line:53,column:54},end:{line:53,column:70}}],line:53},10:{loc:{start:{line:56,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:56,column:13},end:{line:85,column:7}},{start:{line:65,column:13},end:{line:85,column:7}}],line:56},11:{loc:{start:{line:62,column:26},end:{line:62,column:70}},type:"binary-expr",locations:[{start:{line:62,column:26},end:{line:62,column:50}},{start:{line:62,column:54},end:{line:62,column:70}}],line:62},12:{loc:{start:{line:65,column:13},end:{line:85,column:7}},type:"if",locations:[{start:{line:65,column:13},end:{line:85,column:7}},{start:{line:76,column:13},end:{line:85,column:7}}],line:65},13:{loc:{start:{line:73,column:26},end:{line:73,column:70}},type:"binary-expr",locations:[{start:{line:73,column:26},end:{line:73,column:50}},{start:{line:73,column:54},end:{line:73,column:70}}],line:73},14:{loc:{start:{line:82,column:26},end:{line:82,column:70}},type:"binary-expr",locations:[{start:{line:82,column:26},end:{line:82,column:50}},{start:{line:82,column:54},end:{line:82,column:70}}],line:82}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0},b:{0:[0,0],1:[0,0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputDynamicArray.tsx"],names:["v"],mappings:"AAiE4B,cAiCf,YAjCe;AAjE5B,OAAO,WAAW;AAClB,OAAO,gBAAgB;AACvB,SAAQ,gBAAe;AAEvB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,mBAAmB;AAC1B,OAAO,eAAe;AACtB,OAAO,cAAc;AAiBrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,YAAY,KAAa,UAAuC;AAC9D,UAAM,SAAS,KAAK,OAAO,MAAM,CAAC;AAClC,WAAO,GAAG,IAAI;AACd,QAAI,KAAK,MAAM;AAAU,WAAK,MAAM,SAAS,MAAM;AAAA,EACrD;AAAA,EAEA,IAAI,SAAS;AACX,WAAO,KAAK,MAAM,SAAS,KAAK,MAAM,WAAW,CAAC;AAAA,EACpD;AAAA,EAEA,WAAW,MAAM;AACf,UAAM,SAAS,KAAK,OAAO,MAAM,CAAC;AAClC,QAAI,KAAK,MAAM,SAAS,UAAU;AAChC,aAAO,KAAK,CAAC;AAAA,IACf,WACS,KAAK,MAAM,SAAS,OAAO;AAClC,aAAO,KAAK,EAAE;AAAA,IAChB,WACS,KAAK,MAAM,SAAS,QAAQ;AACnC,YAAM,EAAC,UAAS,IAAI,KAAK;AACzB,YAAM,eAAe,OAAO,KAAK,UAAW,MAAM,EAAE,CAAC;AACrD,aAAO,KAAK,YAAY;AAAA,IAC1B,OAAO;AACL,aAAO,KAAK,EAAE;AAAA,IAChB;AAEA,QAAI,KAAK,MAAM;AAAU,WAAK,MAAM,SAAS,MAAM;AAAA,EACrD;AAAA,EAEA,YAAY,UAAkB;AAC5B,UAAM,SAAS,KAAK,OAAO,MAAM,CAAC;AAClC,WAAO,OAAO,UAAU,CAAC;AAEzB,QAAI,KAAK,MAAM;AAAU,WAAK,MAAM,SAAS,OAAO,SAAS,IAAI,SAAS,MAAS;AAAA,EACrF;AAAA,EAEA,SAAS;AACP,UAAM,SAAS,KAAK,OAAO,IAAI,CAAC,GAAG,MAAM;AACvC,YAAM,iBAAgB,oBAAC,0BAAuB,SAAS,KAAK,YAAY,KAAK,MAAM,CAAC,GAAG;AACvF,UAAI;AACJ,UAAG,KAAK,MAAM,SAAS,OAAO;AAC5B,gBAAQ;AAAA,UAAC;AAAA;AAAA,YACP,OAAO;AAAA,YACP,UAAU,KAAK,YAAY,KAAK,MAAM,CAAC;AAAA,YACvC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,QACrD;AAAA,MACF,WACS,KAAK,MAAM,SAAS,UAAU;AACrC,gBAAQ;AAAA,UAAC;AAAA;AAAA,YACP,OAAO;AAAA,YACP,UAAU,KAAK,YAAY,KAAK,MAAM,CAAC;AAAA,YACvC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,QACrD;AAAA,MACF,WACS,KAAK,MAAM,SAAS,QAAQ;AACnC,cAAM,UAAU,OAAO,KAAK,KAAK,MAAM,WAAW,MAAM,EAAE,IAAI,CAAAA,OAAK,CAACA,IAAG,WAAWA,EAAC,CAAC,CAAC;AACrF,gBAAQ;AAAA,UAAC;AAAA;AAAA,YACP;AAAA,YACA,OAAO;AAAA,YACP,UAAU,KAAK,YAAY,KAAK,MAAM,CAAC;AAAA,YACvC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,QACrD;AAAA,MACF,OACK;AACH,gBAAQ;AAAA,UAAC;AAAA;AAAA,YACP,OAAO;AAAA,YACP,UAAU,KAAK,YAAY,KAAK,MAAM,CAAC;AAAA,YACvC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA;AAAA,QACrD;AAAA,MACF;AAEA,aAAO;AAAA,QAAC;AAAA;AAAA,UACN,OAAO,KAAK,MAAM;AAAA,UAElB,WAAU;AAAA,UAEV;AAAA,gCAAC,SAAI,WAAU,+BACZ,0BACH;AAAA,YACA,oBAAC,SAAI,WAAU,gCACZ,iBACH;AAAA;AAAA;AAAA,QARK;AAAA,MASP;AAAA,IACF,CAAC;AAED,WACE,qBAAC,SAAI,WAAU,kBACZ;AAAA;AAAA,MACD;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,KAAK;AAAA,UACf;AAAA;AAAA,MAED;AAAA,OACF;AAAA,EAEJ;AACF;AAMA,MAAM,+BAA+B,MAAM,UAAuC;AAAA,EAChF,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,WAAU;AAAA,QACV,SAAS,KAAK,MAAM;AAAA,QACpB,OAAM;AAAA,QAEN;AAAA,UAAC;AAAA;AAAA,YACC,OAAO,oBAAC,YAAS;AAAA;AAAA,QACnB;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a9b629853605b137778e6e7df9c6ca743543c2f4"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Ar=function(){return s},s}Ar();let GN=class extends bn.Component{constructor(){super(...arguments);nn(this,"addValue",(Ar().s[5]++,()=>{Ar().f[2]++;const t=(Ar().s[6]++,this.values.slice(0));if(Ar().s[7]++,this.props.type==="number")Ar().b[2][0]++,Ar().s[8]++,t.push(0);else if(Ar().b[2][1]++,Ar().s[9]++,this.props.type==="url")Ar().b[3][0]++,Ar().s[10]++,t.push("");else if(Ar().b[3][1]++,Ar().s[11]++,this.props.type==="enum"){Ar().b[4][0]++;const{fieldSpec:r}=(Ar().s[12]++,this.props),i=(Ar().s[13]++,Object.keys(r.values)[0]);Ar().s[14]++,t.push(i)}else Ar().b[4][1]++,Ar().s[15]++,t.push("");Ar().s[16]++,this.props.onChange?(Ar().b[5][0]++,Ar().s[17]++,this.props.onChange(t)):Ar().b[5][1]++}))}changeValue(t,r){Ar().f[0]++;const i=(Ar().s[0]++,this.values.slice(0));Ar().s[1]++,i[t]=r,Ar().s[2]++,this.props.onChange?(Ar().b[0][0]++,Ar().s[3]++,this.props.onChange(i)):Ar().b[0][1]++}get values(){return Ar().f[1]++,Ar().s[4]++,Ar().b[1][0]++,this.props.value||(Ar().b[1][1]++,this.props.default)||(Ar().b[1][2]++,[])}deleteValue(t){Ar().f[3]++;const r=(Ar().s[18]++,this.values.slice(0));Ar().s[19]++,r.splice(t,1),Ar().s[20]++,this.props.onChange?(Ar().b[6][0]++,Ar().s[21]++,this.props.onChange(r.length>0?(Ar().b[7][0]++,r):(Ar().b[7][1]++,void 0))):Ar().b[6][1]++}render(){Ar().f[4]++;const t=(Ar().s[22]++,this.values.map((r,i)=>{var a;Ar().f[5]++;const o=(Ar().s[23]++,N.jsx(s6e,{onClick:this.deleteValue.bind(this,i)}));let s;if(Ar().s[24]++,this.props.type==="url")Ar().b[8][0]++,Ar().s[25]++,s=N.jsx(Y8,{value:r,onChange:this.changeValue.bind(this,i),"aria-label":(Ar().b[9][0]++,this.props["aria-label"]||(Ar().b[9][1]++,this.props.label))});else if(Ar().b[8][1]++,Ar().s[26]++,this.props.type==="number")Ar().b[10][0]++,Ar().s[27]++,s=N.jsx(pf,{value:r,onChange:this.changeValue.bind(this,i),"aria-label":(Ar().b[11][0]++,this.props["aria-label"]||(Ar().b[11][1]++,this.props.label))});else if(Ar().b[10][1]++,Ar().s[28]++,this.props.type==="enum"){Ar().b[12][0]++;const f=(Ar().s[29]++,Object.keys((a=this.props.fieldSpec)==null?void 0:a.values).map(g=>(Ar().f[6]++,Ar().s[30]++,[g,p8(g)])));Ar().s[31]++,s=N.jsx($8,{options:f,value:r,onChange:this.changeValue.bind(this,i),"aria-label":(Ar().b[13][0]++,this.props["aria-label"]||(Ar().b[13][1]++,this.props.label))})}else Ar().b[12][1]++,Ar().s[32]++,s=N.jsx(Sd,{value:r,onChange:this.changeValue.bind(this,i),"aria-label":(Ar().b[14][0]++,this.props["aria-label"]||(Ar().b[14][1]++,this.props.label))});return Ar().s[33]++,N.jsxs("div",{style:this.props.style,className:"maputnik-array-block",children:[N.jsx("div",{className:"maputnik-array-block-action",children:o}),N.jsx("div",{className:"maputnik-array-block-content",children:s})]},i)}));return Ar().s[34]++,N.jsxs("div",{className:"maputnik-array",children:[t,N.jsx(Ka,{className:"maputnik-array-add-value",onClick:this.addValue,children:"Add value"})]})}};class s6e extends bn.Component{render(){return Ar().f[7]++,Ar().s[35]++,N.jsx(Ka,{className:"maputnik-delete-stop",onClick:this.props.onClick,title:"Remove array item",children:N.jsx(PB,{label:N.jsx(Ly,{})})})}}function ta(){var e="/home/runner/work/maputnik/maputnik/src/components/InputFont.tsx",n="cd16dc68fc42c219caf080518fd74984d4f8d81e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputFont.tsx",statementMap:{0:{start:{line:5,column:24},end:{line:7,column:3}},1:{start:{line:9,column:16},end:{line:9,column:60}},2:{start:{line:10,column:4},end:{line:14,column:5}},3:{start:{line:11,column:6},end:{line:11,column:28}},4:{start:{line:13,column:6},end:{line:13,column:17}},5:{start:{line:17,column:26},end:{line:17,column:46}},6:{start:{line:18,column:4},end:{line:18,column:34}},7:{start:{line:19,column:27},end:{line:19,column:92}},8:{start:{line:19,column:55},end:{line:19,column:67}},9:{start:{line:19,column:83},end:{line:19,column:91}},10:{start:{line:20,column:4},end:{line:20,column:40}},11:{start:{line:23,column:19},end:{line:39,column:6}},12:{start:{line:24,column:6},end:{line:38,column:8}},13:{start:{line:32,column:52},end:{line:32,column:58}},14:{start:{line:40,column:4},end:{line:40,column:87}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:2},end:{line:8,column:3}},loc:{start:{line:8,column:15},end:{line:15,column:3}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:16,column:2},end:{line:16,column:3}},loc:{start:{line:16,column:28},end:{line:21,column:3}},line:16},2:{name:"(anonymous_2)",decl:{start:{line:19,column:48},end:{line:19,column:49}},loc:{start:{line:19,column:55},end:{line:19,column:67}},line:19},3:{name:"(anonymous_3)",decl:{start:{line:19,column:76},end:{line:19,column:77}},loc:{start:{line:19,column:83},end:{line:19,column:91}},line:19},4:{name:"(anonymous_4)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:11},end:{line:41,column:3}},line:22},5:{name:"(anonymous_5)",decl:{start:{line:23,column:35},end:{line:23,column:36}},loc:{start:{line:23,column:49},end:{line:39,column:5}},line:23},6:{name:"(anonymous_6)",decl:{start:{line:32,column:45},end:{line:32,column:46}},loc:{start:{line:32,column:52},end:{line:32,column:58}},line:32}},branchMap:{0:{loc:{start:{line:9,column:16},end:{line:9,column:60}},type:"binary-expr",locations:[{start:{line:9,column:16},end:{line:9,column:32}},{start:{line:9,column:36},end:{line:9,column:54}},{start:{line:9,column:58},end:{line:9,column:60}}],line:9},1:{loc:{start:{line:10,column:4},end:{line:14,column:5}},type:"if",locations:[{start:{line:10,column:4},end:{line:14,column:5}},{start:{line:12,column:11},end:{line:14,column:5}}],line:10},2:{loc:{start:{line:30,column:28},end:{line:30,column:71}},type:"binary-expr",locations:[{start:{line:30,column:28},end:{line:30,column:52}},{start:{line:30,column:56},end:{line:30,column:71}}],line:30}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},b:{0:[0,0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputFont.tsx"],names:[],mappings:"AA6CQ;AA7CR,OAAO,WAAW;AAClB,OAAO,uBAAuB;AAY9B,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,OAAO,eAAe;AAAA,IACpB,OAAO,CAAC;AAAA,EACV;AAAA,EAEA,IAAI,SAAS;AACX,UAAM,MAAM,KAAK,MAAM,SAAS,KAAK,MAAM,WAAW,CAAC;AAGvD,QAAI,IAAI,IAAI,SAAO,CAAC,MAAM,IAAG;AAC3B,aAAO,IAAI,OAAO,EAAE;AAAA,IACtB,OACK;AACH,aAAO;AAAA,IACT;AAAA,EACF;AAAA,EAEA,WAAW,KAAa,UAAkB;AACxC,UAAM,gBAAgB,KAAK,OAAO,MAAM,CAAC;AACzC,kBAAc,GAAG,IAAI;AACrB,UAAM,iBAAiB,cACpB,OAAO,OAAK,MAAM,MAAS,EAC3B,OAAO,OAAK,MAAM,EAAE;AAEvB,SAAK,MAAM,SAAS,cAAc;AAAA,EACpC;AAAA,EAEA,SAAS;AACP,UAAM,SAAS,KAAK,OAAO,IAAI,CAAC,OAAO,MAAM;AAC3C,aAAO;AAAA,QAAC;AAAA;AAAA,UAGN;AAAA,YAAC;AAAA;AAAA,cACC,cAAY,KAAK,MAAM,YAAY,KAAK,KAAK,MAAM;AAAA,cACnD;AAAA,cACA,SAAS,KAAK,MAAM,OAAO,IAAI,OAAK,CAAC,GAAG,CAAC,CAAC;AAAA,cAC1C,UAAU,KAAK,WAAW,KAAK,MAAM,CAAC;AAAA;AAAA,UACxC;AAAA;AAAA,QAPK;AAAA,MAQP;AAAA,IACF,CAAC;AAED,WACE,oBAAC,QAAG,WAAU,iBACX,kBACH;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"cd16dc68fc42c219caf080518fd74984d4f8d81e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ta=function(){return s},s}ta();class QN extends bn.Component{get values(){ta().f[0]++;const n=(ta().s[1]++,ta().b[0][0]++,this.props.value||(ta().b[0][1]++,this.props.default)||(ta().b[0][2]++,[]));return ta().s[2]++,n[n.length-1]!==""?(ta().b[1][0]++,ta().s[3]++,n.concat("")):(ta().b[1][1]++,ta().s[4]++,n)}changeFont(n,t){ta().f[1]++;const r=(ta().s[5]++,this.values.slice(0));ta().s[6]++,r[n]=t;const i=(ta().s[7]++,r.filter(o=>(ta().f[2]++,ta().s[8]++,o!==void 0)).filter(o=>(ta().f[3]++,ta().s[9]++,o!=="")));ta().s[10]++,this.props.onChange(i)}render(){ta().f[4]++;const n=(ta().s[11]++,this.values.map((t,r)=>{var i;return ta().f[5]++,ta().s[12]++,N.jsx("li",{children:N.jsx(Qy,{"aria-label":(ta().b[2][0]++,this.props["aria-label"]||(ta().b[2][1]++,this.props.name)),value:t,options:(i=this.props.fonts)==null?void 0:i.map(o=>(ta().f[6]++,ta().s[13]++,[o,o])),onChange:this.changeFont.bind(this,r)})},r)}));return ta().s[14]++,N.jsx("ul",{className:"maputnik-font",children:n})}}nn(QN,"defaultProps",(ta().s[0]++,{fonts:[]}));function gi(){var e="/home/runner/work/maputnik/maputnik/src/components/InputSpec.tsx",n="f1caee37f22e060a5d19e0dd557765702fdf5851",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/InputSpec.tsx",statementMap:{0:{start:{line:13,column:23},end:{line:13,column:117}},1:{start:{line:16,column:24},end:{line:27,column:5}},2:{start:{line:25,column:30},end:{line:25,column:81}},3:{start:{line:28,column:4},end:{line:114,column:5}},4:{start:{line:30,column:8},end:{line:37,column:10}},5:{start:{line:39,column:24},end:{line:39,column:101}},6:{start:{line:39,column:82},end:{line:39,column:100}},7:{start:{line:40,column:8},end:{line:46,column:10}},8:{start:{line:51,column:8},end:{line:67,column:9}},9:{start:{line:52,column:26},end:{line:52,column:59}},10:{start:{line:53,column:10},end:{line:59,column:12}},11:{start:{line:57,column:42},end:{line:57,column:48}},12:{start:{line:61,column:10},end:{line:66,column:12}},13:{start:{line:69,column:8},end:{line:74,column:10}},14:{start:{line:76,column:8},end:{line:81,column:10}},15:{start:{line:83,column:8},end:{line:111,column:9}},16:{start:{line:84,column:10},end:{line:90,column:12}},17:{start:{line:92,column:10},end:{line:110,column:11}},18:{start:{line:93,column:12},end:{line:100,column:14}},19:{start:{line:102,column:12},end:{line:109,column:14}},20:{start:{line:113,column:8},end:{line:113,column:20}},21:{start:{line:117,column:4},end:{line:117,column:124}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:15},end:{line:115,column:3}},line:15},1:{name:"(anonymous_1)",decl:{start:{line:25,column:16},end:{line:25,column:17}},loc:{start:{line:25,column:30},end:{line:25,column:81}},line:25},2:{name:"(anonymous_2)",decl:{start:{line:39,column:75},end:{line:39,column:76}},loc:{start:{line:39,column:82},end:{line:39,column:100}},line:39},3:{name:"(anonymous_3)",decl:{start:{line:57,column:35},end:{line:57,column:36}},loc:{start:{line:57,column:42},end:{line:57,column:48}},line:57},4:{name:"(anonymous_4)",decl:{start:{line:116,column:2},end:{line:116,column:3}},loc:{start:{line:116,column:11},end:{line:118,column:3}},line:116}},branchMap:{0:{loc:{start:{line:28,column:4},end:{line:114,column:5}},type:"switch",locations:[{start:{line:29,column:6},end:{line:37,column:10}},{start:{line:38,column:6},end:{line:47,column:7}},{start:{line:48,column:6},end:{line:48,column:27}},{start:{line:49,column:6},end:{line:49,column:23}},{start:{line:50,column:6},end:{line:67,column:9}},{start:{line:68,column:6},end:{line:74,column:10}},{start:{line:75,column:6},end:{line:81,column:10}},{start:{line:82,column:6},end:{line:111,column:9}},{start:{line:112,column:6},end:{line:113,column:20}}],line:28},1:{loc:{start:{line:39,column:36},end:{line:39,column:69}},type:"binary-expr",locations:[{start:{line:39,column:36},end:{line:39,column:63}},{start:{line:39,column:67},end:{line:39,column:69}}],line:39},2:{loc:{start:{line:51,column:8},end:{line:67,column:9}},type:"if",locations:[{start:{line:51,column:8},end:{line:67,column:9}},{start:{line:60,column:15},end:{line:67,column:9}}],line:51},3:{loc:{start:{line:52,column:26},end:{line:52,column:59}},type:"binary-expr",locations:[{start:{line:52,column:26},end:{line:52,column:53}},{start:{line:52,column:57},end:{line:52,column:59}}],line:52},4:{loc:{start:{line:83,column:8},end:{line:111,column:9}},type:"if",locations:[{start:{line:83,column:8},end:{line:111,column:9}},{start:{line:91,column:15},end:{line:111,column:9}}],line:83},5:{loc:{start:{line:92,column:10},end:{line:110,column:11}},type:"if",locations:[{start:{line:92,column:10},end:{line:110,column:11}},{start:{line:101,column:17},end:{line:110,column:11}}],line:92}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0,0,0,0,0,0,0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/InputSpec.tsx"],names:[],mappings:"AAwDM;AAxDN,OAAO,WAA6B;AAEpC,OAAO,gBAAqC;AAC5C,OAAO,iBAAuC;AAC9C,OAAO,mBAA2C;AAClD,OAAO,iBAAuC;AAC9C,OAAO,gBAAqC;AAC5C,OAAO,uBAAmD;AAC1D,OAAO,eAAmC;AAC1C,OAAO,uBAAmD;AAC1D,OAAO,eAAmC;AAC1C,OAAO,gBAAgB;AAEvB,MAAM,iBAAiB,CAAC,sBAAsB,gBAAgB,gBAAgB,0BAA0B,YAAY;AA0BpH,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EAErE,aAAa;AACX,UAAM,cAAc;AAAA,MAClB,OAAO,KAAK,MAAM;AAAA,MAClB,WAAW,KAAK,MAAM;AAAA,MACtB,OAAO,KAAK,MAAM;AAAA,MAClB,QAAQ,KAAK,MAAM;AAAA,MACnB,OAAO,KAAK,MAAM;AAAA,MAClB,OAAO,KAAK,MAAM;AAAA,MAClB,SAAS,KAAK,MAAM,WAAW;AAAA,MAC/B,MAAM,KAAK,MAAM;AAAA,MACjB,UAAU,CAAC,aAAmE,KAAK,MAAM,SAAU,KAAK,MAAM,WAAW,QAAQ;AAAA,MACjI,cAAc,KAAK,MAAM,YAAY;AAAA,IACvC;AACA,YAAO,KAAK,MAAM,WAAW,MAAM;AAAA,MACnC,KAAK;AAAU,eACb;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA,YACJ,KAAK,KAAK,MAAM,UAAU;AAAA,YAC1B,KAAK,KAAK,MAAM,UAAU;AAAA;AAAA,QAC5B;AAAA,MAEF,KAAK,QAAQ;AACX,cAAM,UAAU,OAAO,KAAK,KAAK,MAAM,UAAU,UAAU,CAAC,CAAC,EAAE,IAAI,OAAK,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC;AAE1F,eAAO;AAAA,UAAC;AAAA;AAAA,YACL,GAAG;AAAA,YACJ;AAAA;AAAA,QACF;AAAA,MACF;AAAA,MACA,KAAK;AAAA,MACL,KAAK;AAAA,MACL,KAAK;AACH,YAAI,eAAe,QAAQ,KAAK,MAAM,SAAU,KAAK,GAAG;AACtD,gBAAM,UAAU,KAAK,MAAM,UAAU,UAAU,CAAC;AAChD,iBAAO;AAAA,YAAC;AAAA;AAAA,cACL,GAAG;AAAA,cACJ,SAAS,QAAQ,IAAI,OAAK,CAAC,GAAG,CAAC,CAAC;AAAA;AAAA,UAClC;AAAA,QACF,OAAO;AACL,iBAAO;AAAA,YAAC;AAAA;AAAA,cACL,GAAG;AAAA;AAAA,UACN;AAAA,QACF;AAAA,MACF,KAAK;AAAS,eACZ;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA;AAAA,QACN;AAAA,MAEF,KAAK;AAAW,eACd;AAAA,UAAC;AAAA;AAAA,YACE,GAAG;AAAA;AAAA,QACN;AAAA,MAEF,KAAK;AACH,YAAG,KAAK,MAAM,cAAc,aAAa;AACvC,iBAAO;AAAA,YAAC;AAAA;AAAA,cACL,GAAG;AAAA,cACJ,OAAO,KAAK,MAAM,UAAU;AAAA;AAAA,UAC9B;AAAA,QACF,OAAO;AACL,cAAI,KAAK,MAAM,UAAU,QAAQ;AAC/B,mBAAO;AAAA,cAAC;AAAA;AAAA,gBACL,GAAG;AAAA,gBACJ,MAAM,KAAK,MAAM,UAAU;AAAA,gBAC3B,QAAQ,KAAK,MAAM,UAAU;AAAA;AAAA,YAC/B;AAAA,UACF,OAAO;AACL,mBAAO;AAAA,cAAC;AAAA;AAAA,gBACL,GAAG;AAAA,gBACJ,WAAW,KAAK,MAAM;AAAA,gBACtB,MAAM,KAAK,MAAM,UAAU;AAAA;AAAA,YAC7B;AAAA,UACF;AAAA,QACF;AAAA,MACF;AAAS,eAAO;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WACE,oBAAC,SAAI,eAAa,gBAAc,KAAK,MAAM,WACxC,eAAK,WAAW,GACnB;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"f1caee37f22e060a5d19e0dd557765702fdf5851"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return gi=function(){return s},s}gi();const l6e=(gi().s[0]++,["background-pattern","fill-pattern","line-pattern","fill-extrusion-pattern","icon-image"]);let dy=class extends bn.Component{childNodes(){var t,r;gi().f[0]++;const n=(gi().s[1]++,{error:this.props.error,fieldSpec:this.props.fieldSpec,label:this.props.label,action:this.props.action,style:this.props.style,value:this.props.value,default:(t=this.props.fieldSpec)==null?void 0:t.default,name:this.props.fieldName,onChange:i=>(gi().f[1]++,gi().s[2]++,this.props.onChange(this.props.fieldName,i)),"aria-label":this.props["aria-label"]});switch(gi().s[3]++,(r=this.props.fieldSpec)==null?void 0:r.type){case"number":return gi().b[0][0]++,gi().s[4]++,N.jsx(pf,{...n,min:this.props.fieldSpec.minimum,max:this.props.fieldSpec.maximum});case"enum":gi().b[0][1]++;{const i=(gi().s[5]++,Object.keys((gi().b[1][0]++,this.props.fieldSpec.values||(gi().b[1][1]++,[]))).map(o=>(gi().f[2]++,gi().s[6]++,[o,p8(o)])));return gi().s[7]++,N.jsx($8,{...n,options:i})}case"resolvedImage":gi().b[0][2]++;case"formatted":gi().b[0][3]++;case"string":if(gi().b[0][4]++,gi().s[8]++,l6e.indexOf(this.props.fieldName)>=0){gi().b[2][0]++;const i=(gi().s[9]++,gi().b[3][0]++,this.props.fieldSpec.values||(gi().b[3][1]++,[]));return gi().s[10]++,N.jsx(Qy,{...n,options:i.map(o=>(gi().f[3]++,gi().s[11]++,[o,o]))})}else return gi().b[2][1]++,gi().s[12]++,N.jsx(Sd,{...n});case"color":return gi().b[0][5]++,gi().s[13]++,N.jsx(WN,{...n});case"boolean":return gi().b[0][6]++,gi().s[14]++,N.jsx(Q8,{...n});case"array":return gi().b[0][7]++,gi().s[15]++,this.props.fieldName==="text-font"?(gi().b[4][0]++,gi().s[16]++,N.jsx(QN,{...n,fonts:this.props.fieldSpec.values})):(gi().b[4][1]++,gi().s[17]++,this.props.fieldSpec.length?(gi().b[5][0]++,gi().s[18]++,N.jsx(NN,{...n,type:this.props.fieldSpec.value,length:this.props.fieldSpec.length})):(gi().b[5][1]++,gi().s[19]++,N.jsx(GN,{...n,fieldSpec:this.props.fieldSpec,type:this.props.fieldSpec.value})));default:return gi().b[0][8]++,gi().s[20]++,null}}render(){return gi().f[4]++,gi().s[21]++,N.jsx("div",{"data-wd-key":"spec-field:"+this.props.fieldName,children:this.childNodes()})}};function Ll(){var e="/home/runner/work/maputnik/maputnik/src/components/Fieldset.tsx",n="c96d18417df19ff6c7361e6bbaa2c1e3e999a238",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Fieldset.tsx",statementMap:{0:{start:{line:9,column:4},end:{line:9,column:17}},1:{start:{line:10,column:4},end:{line:10,column:56}},2:{start:{line:11,column:4},end:{line:13,column:6}},3:{start:{line:15,column:16},end:{line:19,column:3}},4:{start:{line:16,column:4},end:{line:18,column:7}},5:{start:{line:21,column:4},end:{line:41,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:8,column:2},end:{line:8,column:3}},loc:{start:{line:8,column:21},end:{line:14,column:3}},line:8},1:{name:"(anonymous_1)",decl:{start:{line:15,column:16},end:{line:15,column:17}},loc:{start:{line:15,column:25},end:{line:19,column:3}},line:15},2:{name:"(anonymous_2)",decl:{start:{line:20,column:2},end:{line:20,column:3}},loc:{start:{line:20,column:11},end:{line:42,column:3}},line:20}},branchMap:{0:{loc:{start:{line:22,column:6},end:{line:29,column:10}},type:"binary-expr",locations:[{start:{line:22,column:6},end:{line:22,column:26}},{start:{line:22,column:46},end:{line:29,column:10}}],line:22},1:{loc:{start:{line:30,column:6},end:{line:30,column:130}},type:"binary-expr",locations:[{start:{line:30,column:6},end:{line:30,column:27}},{start:{line:30,column:47},end:{line:30,column:130}}],line:30},2:{loc:{start:{line:33,column:6},end:{line:40,column:7}},type:"binary-expr",locations:[{start:{line:33,column:6},end:{line:33,column:26}},{start:{line:33,column:46},end:{line:40,column:7}}],line:33},3:{loc:{start:{line:37,column:28},end:{line:37,column:60}},type:"cond-expr",locations:[{start:{line:37,column:49},end:{line:37,column:51}},{start:{line:37,column:54},end:{line:37,column:60}}],line:37}},s:{0:0,1:0,2:0,3:0,4:0,5:0},f:{0:0,1:0,2:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Fieldset.tsx"],names:[],mappings:"AAiCW,SAGD,KAHC;AAjCX,OAAO,WAA6B;AACpC,OAAO,mBAAmB;AAC1B,OAAO,SAAS;AAChB,OAAO,sBAAsB;AAY7B,qBAAqB,iBAAiB,MAAM,UAAwC;AAAA,EAClF;AAAA,EAEA,YAAa,OAAsB;AACjC,UAAM,KAAK;AACX,SAAK,WAAW,iBAAiB,iBAAiB;AAClD,SAAK,QAAQ;AAAA,MACX,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,cAAc,CAAC,QAAiB;AAC9B,SAAK,SAAS;AAAA,MACZ,SAAS;AAAA,IACX,CAAC;AAAA,EACH;AAAA,EAEA,SAAU;AACR,WAAO,qBAAC,SAAI,WAAU,wBAAuB,MAAK,SAAQ,mBAAiB,KAAK,UAC7E;AAAA,WAAK,MAAM,aACV,oBAAC,SAAI,WAAU,8BACb;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,KAAK,MAAM;AAAA,UAClB,aAAa,KAAK;AAAA,UAClB,WAAW,KAAK,MAAM;AAAA;AAAA,MACxB,GACF;AAAA,MAED,CAAC,KAAK,MAAM,aACX,oBAAC,SAAI,WAAU,8BACZ,eAAK,MAAM,OACd;AAAA,MAEF,oBAAC,SAAI,WAAU,+BACZ,eAAK,MAAM,QACd;AAAA,MACA,oBAAC,SAAI,WAAU,gCACZ,eAAK,MAAM,UACd;AAAA,MACC,KAAK,MAAM,aACV;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,OAAO,EAAC,SAAS,KAAK,MAAM,UAAU,KAAK,OAAM;AAAA,UAEjD,8BAAC,OAAI,WAAW,KAAK,MAAM,WAAW;AAAA;AAAA,MACxC;AAAA,OAEJ;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c96d18417df19ff6c7361e6bbaa2c1e3e999a238"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Ll=function(){return s},s}Ll();class E_ extends bn.Component{constructor(t){Ll().f[0]++,Ll().s[0]++;super(t);nn(this,"_labelId");nn(this,"onToggleDoc",(Ll().s[3]++,t=>{Ll().f[1]++,Ll().s[4]++,this.setState({showDoc:t})}));Ll().s[1]++,this._labelId=Oy("fieldset_label_"),Ll().s[2]++,this.state={showDoc:!1}}render(){return Ll().f[2]++,Ll().s[5]++,N.jsxs("div",{className:"maputnik-input-block",role:"group","aria-labelledby":this._labelId,children:[(Ll().b[0][0]++,this.props.fieldSpec&&(Ll().b[0][1]++,N.jsx("div",{className:"maputnik-input-block-label",children:N.jsx(PB,{label:this.props.label,onToggleDoc:this.onToggleDoc,fieldSpec:this.props.fieldSpec})}))),(Ll().b[1][0]++,!this.props.fieldSpec&&(Ll().b[1][1]++,N.jsx("div",{className:"maputnik-input-block-label",children:this.props.label}))),N.jsx("div",{className:"maputnik-input-block-action",children:this.props.action}),N.jsx("div",{className:"maputnik-input-block-content",children:this.props.children}),(Ll().b[2][0]++,this.props.fieldSpec&&(Ll().b[2][1]++,N.jsx("div",{className:"maputnik-doc-inline",style:{display:this.state.showDoc?(Ll().b[3][0]++,""):(Ll().b[3][1]++,"none")},children:N.jsx(FB,{fieldSpec:this.props.fieldSpec})})))]})}}function Qo(){var e="/home/runner/work/maputnik/maputnik/src/components/SpecField.tsx",n="adadf49dc291f98804cd53f74e320ed51f276886",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/SpecField.tsx",statementMap:{0:{start:{line:6,column:16},end:{line:16,column:1}},1:{start:{line:7,column:15},end:{line:7,column:20}},2:{start:{line:8,column:27},end:{line:8,column:87}},3:{start:{line:9,column:17},end:{line:9,column:22}},4:{start:{line:10,column:15},end:{line:10,column:23}},5:{start:{line:11,column:23},end:{line:11,column:28}},6:{start:{line:12,column:16},end:{line:12,column:21}},7:{start:{line:13,column:16},end:{line:13,column:21}},8:{start:{line:14,column:19},end:{line:14,column:24}},9:{start:{line:15,column:17},end:{line:15,column:22}},10:{start:{line:19,column:22},end:{line:19,column:48}},11:{start:{line:20,column:24},end:{line:20,column:42}},12:{start:{line:22,column:4},end:{line:27,column:5}},13:{start:{line:23,column:6},end:{line:23,column:42}},14:{start:{line:25,column:6},end:{line:25,column:55}},15:{start:{line:26,column:6},end:{line:26,column:24}},16:{start:{line:28,column:4},end:{line:36,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:9},end:{line:7,column:10}},loc:{start:{line:7,column:15},end:{line:7,column:20}},line:7},1:{name:"(anonymous_1)",decl:{start:{line:8,column:8},end:{line:8,column:9}},loc:{start:{line:8,column:27},end:{line:8,column:87}},line:8},2:{name:"(anonymous_2)",decl:{start:{line:9,column:11},end:{line:9,column:12}},loc:{start:{line:9,column:17},end:{line:9,column:22}},line:9},3:{name:"(anonymous_3)",decl:{start:{line:10,column:9},end:{line:10,column:10}},loc:{start:{line:10,column:15},end:{line:10,column:23}},line:10},4:{name:"(anonymous_4)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:23},end:{line:11,column:28}},line:11},5:{name:"(anonymous_5)",decl:{start:{line:12,column:10},end:{line:12,column:11}},loc:{start:{line:12,column:16},end:{line:12,column:21}},line:12},6:{name:"(anonymous_6)",decl:{start:{line:13,column:10},end:{line:13,column:11}},loc:{start:{line:13,column:16},end:{line:13,column:21}},line:13},7:{name:"(anonymous_7)",decl:{start:{line:14,column:13},end:{line:14,column:14}},loc:{start:{line:14,column:19},end:{line:14,column:24}},line:14},8:{name:"(anonymous_8)",decl:{start:{line:15,column:11},end:{line:15,column:12}},loc:{start:{line:15,column:17},end:{line:15,column:22}},line:15},9:{name:"(anonymous_9)",decl:{start:{line:18,column:2},end:{line:18,column:3}},loc:{start:{line:18,column:11},end:{line:37,column:3}},line:18}},branchMap:{0:{loc:{start:{line:8,column:27},end:{line:8,column:87}},type:"cond-expr",locations:[{start:{line:8,column:71},end:{line:8,column:79}},{start:{line:8,column:82},end:{line:8,column:87}}],line:8},1:{loc:{start:{line:22,column:4},end:{line:27,column:5}},type:"if",locations:[{start:{line:22,column:4},end:{line:27,column:5}},{start:{line:24,column:11},end:{line:27,column:5}}],line:22}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/SpecField.tsx"],names:[],mappings:"AA0CM;AA1CN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,eAA0D;AACjE,OAAO,cAAc;AAGrB,MAAM,UAAU;AAAA,EACd,OAAO,MAAM;AAAA,EACb,MAAM,CAAC,EAAC,UAAS,MAAY,OAAO,KAAK,UAAU,MAAM,EAAE,UAAU,IAAI,WAAW;AAAA,EACpF,SAAS,MAAM;AAAA,EACf,OAAO,MAAM;AAAA,EACb,eAAe,MAAM;AAAA,EACrB,QAAQ,MAAM;AAAA,EACd,QAAQ,MAAM;AAAA,EACd,WAAW,MAAM;AAAA,EACjB,SAAS,MAAM;AACjB;AAMA,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY,KAAK,MAAM,WAAW;AAExC,UAAM,cAAc,QAAQ,SAAU;AAEtC,QAAI;AACJ,QAAI,aAAa;AACf,kBAAY,YAAY,KAAK,KAAK;AAAA,IACpC,OACK;AACH,cAAQ,KAAK,yBAAyB,SAAS;AAC/C,kBAAY;AAAA,IACd;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,OAAO,KAAK,MAAM;AAAA,QAClB,QAAQ,KAAK,MAAM;AAAA,QACnB,WAAW,KAAK,MAAM;AAAA,QAEtB,8BAAC,aAAW,GAAG,KAAK,OAAO;AAAA;AAAA,IAC7B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"adadf49dc291f98804cd53f74e320ed51f276886"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Qo=function(){return s},s}Qo();const u6e=(Qo().s[0]++,{color:()=>(Qo().f[0]++,Qo().s[1]++,Uo),enum:({fieldSpec:e})=>(Qo().f[1]++,Qo().s[2]++,Object.keys(e.values).length<=3?(Qo().b[0][0]++,E_):(Qo().b[0][1]++,Uo)),boolean:()=>(Qo().f[2]++,Qo().s[3]++,Uo),array:()=>(Qo().f[3]++,Qo().s[4]++,E_),resolvedImage:()=>(Qo().f[4]++,Qo().s[5]++,Uo),number:()=>(Qo().f[5]++,Qo().s[6]++,Uo),string:()=>(Qo().f[6]++,Qo().s[7]++,Uo),formatted:()=>(Qo().f[7]++,Qo().s[8]++,Uo),padding:()=>(Qo().f[8]++,Qo().s[9]++,Uo)});class A6e extends bn.Component{render(){var i;Qo().f[9]++;const n=(Qo().s[10]++,(i=this.props.fieldSpec)==null?void 0:i.type),t=(Qo().s[11]++,u6e[n]);let r;return Qo().s[12]++,t?(Qo().b[1][0]++,Qo().s[13]++,r=t(this.props)):(Qo().b[1][1]++,Qo().s[14]++,console.warn("No such type for '%s'",n),Qo().s[15]++,r=Uo),Qo().s[16]++,N.jsx(r,{label:this.props.label,action:this.props.action,fieldSpec:this.props.fieldSpec,children:N.jsx(dy,{...this.props})})}}function zA(){var e="/home/runner/work/maputnik/maputnik/src/components/_FunctionButtons.tsx",n="fb167a16b2bc613f08e633cf4dc0232cee30b68f",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_FunctionButtons.tsx",statementMap:{0:{start:{line:9,column:4},end:{line:46,column:5}},1:{start:{line:10,column:6},end:{line:18,column:8}},2:{start:{line:19,column:6},end:{line:27,column:8}},3:{start:{line:28,column:6},end:{line:38,column:7}},4:{start:{line:29,column:8},end:{line:37,column:10}},5:{start:{line:39,column:6},end:{line:43,column:11}},6:{start:{line:45,column:6},end:{line:45,column:77}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:2},end:{line:7,column:3}},loc:{start:{line:7,column:11},end:{line:47,column:3}},line:7}},branchMap:{0:{loc:{start:{line:9,column:4},end:{line:46,column:5}},type:"if",locations:[{start:{line:9,column:4},end:{line:46,column:5}},{start:{line:44,column:11},end:{line:46,column:5}}],line:9},1:{loc:{start:{line:28,column:6},end:{line:38,column:7}},type:"if",locations:[{start:{line:28,column:6},end:{line:38,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_FunctionButtons.tsx"],names:[],mappings:"AAyBY,cAsBC,YAtBD;AAzBZ,OAAO,WAAW;AAElB,OAAO,iBAAiB;AACxB,SAAQ,aAAa,qBAAoB;AACzC,SAAQ,0BAAyB;AASjC,qBAAqB,6BAA6B,MAAM,UAAqC;AAAA,EAC3F,SAAS;AACP,QAAI,qBAAqB,qBAAqB;AAE9C,QAAI,KAAK,MAAM,UAAU,WAAW,WAAW,SAAS,MAAM,GAAG;AAC/D,8BACE;AAAA,QAAC;AAAA;AAAA,UACC,WAAU;AAAA,UACV,SAAS,KAAK,MAAM;AAAA,UACpB,OAAM;AAAA,UAEN,8BAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,SAAQ,GAAG,SAAQ,aAC1E,8BAAC,UAAK,MAAK,gBAAe,GAAG,oBAAoB,GACnD;AAAA;AAAA,MACF;AAGF,4BAAsB;AAAA,QAAC;AAAA;AAAA,UACrB,WAAU;AAAA,UACV,SAAS,KAAK,MAAM;AAAA,UACpB,OAAM;AAAA,UAEN,8BAAC,eAAY;AAAA;AAAA,MACf;AAEA,UAAI,KAAK,MAAM,UAAU,eAAe,MAAM,eAAe;AAC3D,8BAAsB;AAAA,UAAC;AAAA;AAAA,YACrB,WAAU;AAAA,YACV,SAAS,KAAK,MAAM;AAAA,YACpB,OAAM;AAAA,YAEN,8BAAC,iBAAc;AAAA;AAAA,QACjB;AAAA,MACF;AACA,aAAO,qBAAC,SACL;AAAA;AAAA,QACA;AAAA,QACA;AAAA,SACH;AAAA,IACF,OACK;AACH,aAAO,oBAAC,SAAK,iCAAsB;AAAA,IACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"fb167a16b2bc613f08e633cf4dc0232cee30b68f"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return zA=function(){return s},s}zA();class c6e extends bn.Component{render(){zA().f[0]++;let n,t,r;return zA().s[0]++,this.props.fieldSpec.expression.parameters.includes("zoom")?(zA().b[0][0]++,zA().s[1]++,r=N.jsx(Ka,{className:"maputnik-make-zoom-function",onClick:this.props.onExpressionClick,title:"Convert to expression",children:N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"middle"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:S_})})}),zA().s[2]++,n=N.jsx(Ka,{className:"maputnik-make-zoom-function",onClick:this.props.onZoomClick,title:"Convert property into a zoom function",children:N.jsx(_J,{})}),zA().s[3]++,this.props.fieldSpec["property-type"]==="data-driven"?(zA().b[1][0]++,zA().s[4]++,t=N.jsx(Ka,{className:"maputnik-make-data-function",onClick:this.props.onDataClick,title:"Convert property to data function",children:N.jsx(bJ,{})})):zA().b[1][1]++,zA().s[5]++,N.jsxs("div",{children:[r,t,n]})):(zA().b[0][1]++,zA().s[6]++,N.jsx("div",{children:r}))}}function Qh(){var e="/home/runner/work/maputnik/maputnik/src/components/_SpecProperty.tsx",n="60f6f0f35f3e44d7e7f08e2966cfff09ee69557d",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_SpecProperty.tsx",statementMap:{0:{start:{line:7,column:24},end:{line:9,column:3}},1:{start:{line:11,column:45},end:{line:11,column:55}},2:{start:{line:12,column:40},end:{line:20,column:5}},3:{start:{line:21,column:18},end:{line:21,column:53}},4:{start:{line:22,column:4},end:{line:31,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:10,column:2},end:{line:10,column:3}},loc:{start:{line:10,column:11},end:{line:32,column:3}},line:10}},branchMap:{0:{loc:{start:{line:28,column:34},end:{line:28,column:60}},type:"binary-expr",locations:[{start:{line:28,column:34},end:{line:28,column:54}},{start:{line:28,column:58},end:{line:28,column:60}}],line:28}},s:{0:0,1:0,2:0,3:0,4:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_SpecProperty.tsx"],names:[],mappings:"AA4BwB;AA5BxB,OAAO,WAAW;AAElB,OAAO,eAAiC;AACxC,OAAO,qBAAqB;AAE5B,OAAO,wBAAwB;AAe/B,qBAAqB,qBAAqB,MAAM,UAA6B;AAAA,EAC3E,OAAO,eAAe;AAAA,IACpB,QAAQ,CAAC;AAAA,EACX;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,QAAQ,WAAW,UAAS,IAAI,KAAK;AAE5C,UAAM,cAAc;AAAA,MAAC;AAAA;AAAA,QACnB,WAAW,KAAK,MAAM;AAAA,QACtB,aAAa,KAAK,MAAM;AAAA,QACxB,aAAa,KAAK,MAAM;AAAA,QACxB,mBAAmB,KAAK,MAAM;AAAA;AAAA,IAChC;AAEA,UAAM,QAAQ,OAAQ,YAAU,MAAI,SAAgB;AAEpD,WAAO;AAAA,MAAC;AAAA;AAAA,QACL,GAAG,KAAK;AAAA,QACT;AAAA,QACA,WAAW,KAAK,MAAM;AAAA,QACtB,OAAO,mBAAmB,KAAK,MAAM,aAAa,EAAE;AAAA,QACpD,QAAQ;AAAA;AAAA,IACV;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"60f6f0f35f3e44d7e7f08e2966cfff09ee69557d"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Qh=function(){return s},s}Qh();class $N extends bn.Component{render(){Qh().f[0]++;const{errors:n,fieldName:t,fieldType:r}=(Qh().s[1]++,this.props),i=(Qh().s[2]++,N.jsx(c6e,{fieldSpec:this.props.fieldSpec,onZoomClick:this.props.onZoomClick,onDataClick:this.props.onDataClick,onExpressionClick:this.props.onExpressionClick})),o=(Qh().s[3]++,n[r+"."+t]);return Qh().s[4]++,N.jsx(A6e,{...this.props,error:o,fieldSpec:this.props.fieldSpec,label:D5((Qh().b[0][0]++,this.props.fieldName||(Qh().b[0][1]++,""))),action:i})}}nn($N,"defaultProps",(Qh().s[0]++,{errors:{}}));function jA(){var e="/home/runner/work/maputnik/maputnik/src/libs/sort-numerically.ts",n="e8906f642b33ab7d7a780fc0db870f7e4872d29c",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/sort-numerically.ts",statementMap:{0:{start:{line:2,column:12},end:{line:2,column:17}},1:{start:{line:3,column:12},end:{line:3,column:17}},2:{start:{line:4,column:2},end:{line:10,column:3}},3:{start:{line:5,column:4},end:{line:5,column:14}},4:{start:{line:6,column:9},end:{line:10,column:3}},5:{start:{line:7,column:4},end:{line:7,column:13}},6:{start:{line:9,column:4},end:{line:9,column:13}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:1,column:15},end:{line:1,column:16}},loc:{start:{line:1,column:36},end:{line:11,column:1}},line:1}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:10,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:10,column:3}},{start:{line:6,column:9},end:{line:10,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:10,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:10,column:3}},{start:{line:8,column:9},end:{line:10,column:3}}],line:6}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/sort-numerically.ts"],names:[],mappings:"AAAA,wBAAwB,MAAuB,MAAsB;AACnE,QAAM,IAAI,CAAC;AACX,QAAM,IAAI,CAAC;AAEX,MAAG,IAAI,GAAG;AACR,WAAO;AAAA,EACT,WACQ,IAAI,GAAG;AACb,WAAO;AAAA,EACT,OACK;AACH,WAAO;AAAA,EACT;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e8906f642b33ab7d7a780fc0db870f7e4872d29c"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return jA=function(){return s},s}jA();function YN(e,n){jA().f[0]++;const t=(jA().s[0]++,+e),r=(jA().s[1]++,+n);return jA().s[2]++,tr?(jA().b[1][0]++,jA().s[5]++,1):(jA().b[1][1]++,jA().s[6]++,0))}function ah(){var e="/home/runner/work/maputnik/maputnik/src/libs/spec-helper.ts",n="2f98128f0f990b67a049c58486c1fab4310fbcfa",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/spec-helper.ts",statementMap:{0:{start:{line:2,column:2},end:{line:4,column:3}},1:{start:{line:3,column:4},end:{line:3,column:24}},2:{start:{line:5,column:19},end:{line:11,column:3}},3:{start:{line:12,column:2},end:{line:12,column:35}}},fnMap:{0:{name:"findDefaultFromSpec",decl:{start:{line:1,column:16},end:{line:1,column:35}},loc:{start:{line:1,column:42},end:{line:13,column:1}},line:1}},branchMap:{0:{loc:{start:{line:2,column:2},end:{line:4,column:3}},type:"if",locations:[{start:{line:2,column:2},end:{line:4,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:2},1:{loc:{start:{line:12,column:9},end:{line:12,column:34}},type:"binary-expr",locations:[{start:{line:12,column:9},end:{line:12,column:28}},{start:{line:12,column:32},end:{line:12,column:34}}],line:12}},s:{0:0,1:0,2:0,3:0},f:{0:0},b:{0:[0,0],1:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/spec-helper.ts"],names:[],mappings:"AAGO,gBAAS,oBAAoB,MAAyE;AAC3G,MAAI,OAAO,UAAU,eAAe,KAAK,MAAM,SAAS,GAAG;AACzD,WAAO,KAAK;AAAA,EACd;AAEA,QAAM,WAAW;AAAA,IACf,SAAS;AAAA,IACT,UAAU;AAAA,IACV,WAAW;AAAA,IACX,UAAU;AAAA,IACV,SAAS,CAAC;AAAA,EACZ;AAEA,SAAO,SAAS,KAAK,IAAI,KAAK;AAChC;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2f98128f0f990b67a049c58486c1fab4310fbcfa"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ah=function(){return s},s}ah();function fd(e){if(ah().f[0]++,ah().s[0]++,Object.prototype.hasOwnProperty.call(e,"default"))return ah().b[0][0]++,ah().s[1]++,e.default;ah().b[0][1]++;const n=(ah().s[2]++,{color:"#000000",string:"",boolean:!1,number:0,array:[]});return ah().s[3]++,ah().b[1][0]++,n[e.type]||(ah().b[1][1]++,"")}function u4(){var e="/home/runner/work/maputnik/maputnik/src/components/_DeleteStopButton.tsx",n="7dda8ab95b7fe1e03f2205def4590751728cfeac",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_DeleteStopButton.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:15,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:16,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_DeleteStopButton.tsx"],names:[],mappings:"AAkBM;AAlBN,OAAO,WAAW;AAElB,OAAO,iBAAiB;AACxB,SAAQ,gBAAe;AAQvB,qBAAqB,yBAAyB,MAAM,UAAiC;AAAA,EACnF,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,WAAU;AAAA,QACV,SAAS,KAAK,MAAM;AAAA,QACpB,OAAO;AAAA,QAEP,8BAAC,YAAS;AAAA;AAAA,IACZ;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"7dda8ab95b7fe1e03f2205def4590751728cfeac"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return u4=function(){return s},s}u4();class qN extends bn.Component{render(){return u4().f[0]++,u4().s[0]++,N.jsx(Ka,{className:"maputnik-delete-stop",onClick:this.props.onClick,title:"Remove zoom level from stop",children:N.jsx(Ly,{})})}}function zt(){var e="/home/runner/work/maputnik/maputnik/src/components/_DataProperty.tsx",n="232a59a4721428f6ea1780ae642f941986fcb93c",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_DataProperty.tsx",statementMap:{0:{start:{line:18,column:2},end:{line:27,column:3}},1:{start:{line:19,column:4},end:{line:26,column:7}},2:{start:{line:20,column:6},end:{line:25,column:7}},3:{start:{line:21,column:8},end:{line:23,column:9}},4:{start:{line:22,column:10},end:{line:22,column:33}},5:{start:{line:24,column:8},end:{line:24,column:39}},6:{start:{line:28,column:2},end:{line:28,column:17}},7:{start:{line:31,column:10},end:{line:33,column:3}},8:{start:{line:35,column:20},end:{line:35,column:55}},9:{start:{line:36,column:4},end:{line:40,column:5}},10:{start:{line:37,column:6},end:{line:39,column:9}},11:{start:{line:43,column:20},end:{line:43,column:45}},12:{start:{line:44,column:4},end:{line:48,column:5}},13:{start:{line:45,column:6},end:{line:47,column:8}},14:{start:{line:49,column:4},end:{line:49,column:16}},15:{start:{line:52,column:4},end:{line:54,column:5}},16:{start:{line:53,column:6},end:{line:53,column:27}},17:{start:{line:55,column:4},end:{line:57,column:5}},18:{start:{line:56,column:6},end:{line:56,column:24}},19:{start:{line:58,column:4},end:{line:58,column:25}},20:{start:{line:61,column:4},end:{line:65,column:5}},21:{start:{line:62,column:6},end:{line:62,column:83}},22:{start:{line:64,column:6},end:{line:64,column:53}},23:{start:{line:69,column:26},end:{line:74,column:70}},24:{start:{line:70,column:6},end:{line:73,column:8}},25:{start:{line:74,column:22},end:{line:74,column:69}},26:{start:{line:75,column:20},end:{line:75,column:22}},27:{start:{line:76,column:4},end:{line:78,column:7}},28:{start:{line:77,column:6},end:{line:77,column:30}},29:{start:{line:79,column:4},end:{line:81,column:7}},30:{start:{line:82,column:4},end:{line:82,column:50}},31:{start:{line:82,column:39},end:{line:82,column:48}},32:{start:{line:84,column:13},end:{line:104,column:3}},33:{start:{line:85,column:4},end:{line:102,column:5}},34:{start:{line:86,column:6},end:{line:89,column:8}},35:{start:{line:91,column:24},end:{line:91,column:61}},36:{start:{line:92,column:6},end:{line:101,column:8}},37:{start:{line:103,column:4},end:{line:103,column:42}},38:{start:{line:106,column:18},end:{line:106,column:56}},39:{start:{line:107,column:4},end:{line:113,column:6}},40:{start:{line:114,column:25},end:{line:114,column:53}},41:{start:{line:115,column:25},end:{line:118,column:5}},42:{start:{line:119,column:4},end:{line:119,column:54}},43:{start:{line:122,column:25},end:{line:125,column:5}},44:{start:{line:126,column:4},end:{line:128,column:5}},45:{start:{line:127,column:6},end:{line:127,column:34}},46:{start:{line:129,column:4},end:{line:129,column:60}},47:{start:{line:132,column:4},end:{line:139,column:5}},48:{start:{line:133,column:6},end:{line:133,column:42}},49:{start:{line:135,column:6},end:{line:138,column:9}},50:{start:{line:142,column:4},end:{line:146,column:5}},51:{start:{line:143,column:6},end:{line:143,column:43}},52:{start:{line:145,column:6},end:{line:145,column:40}},53:{start:{line:147,column:4},end:{line:147,column:58}},54:{start:{line:150,column:4},end:{line:152,column:5}},55:{start:{line:151,column:6},end:{line:151,column:78}},56:{start:{line:154,column:4},end:{line:202,column:5}},57:{start:{line:155,column:6},end:{line:201,column:9}},58:{start:{line:156,column:26},end:{line:156,column:77}},59:{start:{line:157,column:20},end:{line:157,column:40}},60:{start:{line:158,column:26},end:{line:158,column:79}},61:{start:{line:159,column:22},end:{line:159,column:29}},62:{start:{line:160,column:46},end:{line:160,column:122}},63:{start:{line:161,column:26},end:{line:166,column:9}},64:{start:{line:165,column:33},end:{line:165,column:97}},65:{start:{line:168,column:8},end:{line:172,column:9}},66:{start:{line:169,column:10},end:{line:169,column:73}},67:{start:{line:171,column:10},end:{line:171,column:73}},68:{start:{line:173,column:24},end:{line:173,column:28}},69:{start:{line:174,column:8},end:{line:185,column:9}},70:{start:{line:175,column:10},end:{line:184,column:15}},71:{start:{line:180,column:37},end:{line:180,column:101}},72:{start:{line:186,column:8},end:{line:200,column:18}},73:{start:{line:196,column:41},end:{line:196,column:110}},74:{start:{line:203,column:4},end:{line:303,column:12}},75:{start:{line:214,column:39},end:{line:214,column:67}},76:{start:{line:232,column:43},end:{line:232,column:68}},77:{start:{line:247,column:39},end:{line:247,column:83}},78:{start:{line:263,column:42},end:{line:263,column:85}}},fnMap:{0:{name:"setStopRefs",decl:{start:{line:16,column:9},end:{line:16,column:20}},loc:{start:{line:16,column:35},end:{line:29,column:1}},line:16},1:{name:"(anonymous_1)",decl:{start:{line:19,column:30},end:{line:19,column:31}},loc:{start:{line:19,column:45},end:{line:26,column:5}},line:19},2:{name:"(anonymous_2)",decl:{start:{line:34,column:2},end:{line:34,column:3}},loc:{start:{line:34,column:22},end:{line:41,column:3}},line:34},3:{name:"(anonymous_3)",decl:{start:{line:42,column:2},end:{line:42,column:3}},loc:{start:{line:42,column:48},end:{line:50,column:3}},line:42},4:{name:"(anonymous_4)",decl:{start:{line:51,column:2},end:{line:51,column:3}},loc:{start:{line:51,column:34},end:{line:59,column:3}},line:51},5:{name:"(anonymous_5)",decl:{start:{line:60,column:2},end:{line:60,column:3}},loc:{start:{line:60,column:34},end:{line:66,column:3}},line:60},6:{name:"(anonymous_6)",decl:{start:{line:68,column:2},end:{line:68,column:3}},loc:{start:{line:68,column:26},end:{line:83,column:3}},line:68},7:{name:"(anonymous_7)",decl:{start:{line:69,column:36},end:{line:69,column:37}},loc:{start:{line:69,column:51},end:{line:74,column:5}},line:69},8:{name:"(anonymous_8)",decl:{start:{line:74,column:12},end:{line:74,column:13}},loc:{start:{line:74,column:22},end:{line:74,column:69}},line:74},9:{name:"(anonymous_9)",decl:{start:{line:76,column:26},end:{line:76,column:27}},loc:{start:{line:76,column:41},end:{line:78,column:5}},line:76},10:{name:"(anonymous_10)",decl:{start:{line:82,column:29},end:{line:82,column:30}},loc:{start:{line:82,column:39},end:{line:82,column:48}},line:82},11:{name:"(anonymous_11)",decl:{start:{line:84,column:13},end:{line:84,column:14}},loc:{start:{line:84,column:35},end:{line:104,column:3}},line:84},12:{name:"(anonymous_12)",decl:{start:{line:105,column:2},end:{line:105,column:3}},loc:{start:{line:105,column:41},end:{line:120,column:3}},line:105},13:{name:"(anonymous_13)",decl:{start:{line:121,column:2},end:{line:121,column:3}},loc:{start:{line:121,column:23},end:{line:130,column:3}},line:121},14:{name:"(anonymous_14)",decl:{start:{line:131,column:2},end:{line:131,column:3}},loc:{start:{line:131,column:26},end:{line:140,column:3}},line:131},15:{name:"(anonymous_15)",decl:{start:{line:141,column:2},end:{line:141,column:3}},loc:{start:{line:141,column:40},end:{line:148,column:3}},line:141},16:{name:"(anonymous_16)",decl:{start:{line:149,column:2},end:{line:149,column:3}},loc:{start:{line:149,column:11},end:{line:304,column:3}},line:149},17:{name:"(anonymous_17)",decl:{start:{line:155,column:46},end:{line:155,column:47}},loc:{start:{line:155,column:61},end:{line:201,column:7}},line:155},18:{name:"(anonymous_18)",decl:{start:{line:165,column:20},end:{line:165,column:21}},loc:{start:{line:165,column:33},end:{line:165,column:97}},line:165},19:{name:"(anonymous_19)",decl:{start:{line:180,column:24},end:{line:180,column:25}},loc:{start:{line:180,column:37},end:{line:180,column:101}},line:180},20:{name:"(anonymous_20)",decl:{start:{line:196,column:24},end:{line:196,column:25}},loc:{start:{line:196,column:41},end:{line:196,column:110}},line:196},21:{name:"(anonymous_21)",decl:{start:{line:214,column:26},end:{line:214,column:27}},loc:{start:{line:214,column:39},end:{line:214,column:67}},line:214},22:{name:"(anonymous_22)",decl:{start:{line:232,column:26},end:{line:232,column:27}},loc:{start:{line:232,column:43},end:{line:232,column:68}},line:232},23:{name:"(anonymous_23)",decl:{start:{line:247,column:26},end:{line:247,column:27}},loc:{start:{line:247,column:39},end:{line:247,column:83}},line:247},24:{name:"(anonymous_24)",decl:{start:{line:263,column:26},end:{line:263,column:27}},loc:{start:{line:263,column:42},end:{line:263,column:85}},line:263}},branchMap:{0:{loc:{start:{line:18,column:2},end:{line:27,column:3}},type:"if",locations:[{start:{line:18,column:2},end:{line:27,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},1:{loc:{start:{line:18,column:6},end:{line:18,column:38}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:17}},{start:{line:18,column:21},end:{line:18,column:38}}],line:18},2:{loc:{start:{line:20,column:6},end:{line:25,column:7}},type:"if",locations:[{start:{line:20,column:6},end:{line:25,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:20},3:{loc:{start:{line:21,column:8},end:{line:23,column:9}},type:"if",locations:[{start:{line:21,column:8},end:{line:23,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:21},4:{loc:{start:{line:36,column:4},end:{line:40,column:5}},type:"if",locations:[{start:{line:36,column:4},end:{line:40,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:36},5:{loc:{start:{line:44,column:4},end:{line:48,column:5}},type:"if",locations:[{start:{line:44,column:4},end:{line:48,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:44},6:{loc:{start:{line:52,column:4},end:{line:54,column:5}},type:"if",locations:[{start:{line:52,column:4},end:{line:54,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},7:{loc:{start:{line:55,column:4},end:{line:57,column:5}},type:"if",locations:[{start:{line:55,column:4},end:{line:57,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:55},8:{loc:{start:{line:61,column:4},end:{line:65,column:5}},type:"if",locations:[{start:{line:61,column:4},end:{line:65,column:5}},{start:{line:63,column:11},end:{line:65,column:5}}],line:61},9:{loc:{start:{line:85,column:4},end:{line:102,column:5}},type:"if",locations:[{start:{line:85,column:4},end:{line:102,column:5}},{start:{line:90,column:11},end:{line:102,column:5}}],line:85},10:{loc:{start:{line:91,column:24},end:{line:91,column:61}},type:"cond-expr",locations:[{start:{line:91,column:55},end:{line:91,column:57}},{start:{line:91,column:60},end:{line:91,column:61}}],line:91},11:{loc:{start:{line:106,column:18},end:{line:106,column:56}},type:"binary-expr",locations:[{start:{line:106,column:18},end:{line:106,column:50}},{start:{line:106,column:54},end:{line:106,column:56}}],line:106},12:{loc:{start:{line:110,column:14},end:{line:110,column:58}},type:"cond-expr",locations:[{start:{line:110,column:41},end:{line:110,column:42}},{start:{line:110,column:45},end:{line:110,column:58}}],line:110},13:{loc:{start:{line:126,column:4},end:{line:128,column:5}},type:"if",locations:[{start:{line:126,column:4},end:{line:128,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:126},14:{loc:{start:{line:132,column:4},end:{line:139,column:5}},type:"if",locations:[{start:{line:132,column:4},end:{line:139,column:5}},{start:{line:134,column:11},end:{line:139,column:5}}],line:132},15:{loc:{start:{line:132,column:8},end:{line:132,column:70}},type:"binary-expr",locations:[{start:{line:132,column:8},end:{line:132,column:33}},{start:{line:132,column:37},end:{line:132,column:70}}],line:132},16:{loc:{start:{line:142,column:4},end:{line:146,column:5}},type:"if",locations:[{start:{line:142,column:4},end:{line:146,column:5}},{start:{line:144,column:11},end:{line:146,column:5}}],line:142},17:{loc:{start:{line:150,column:4},end:{line:152,column:5}},type:"if",locations:[{start:{line:150,column:4},end:{line:152,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:150},18:{loc:{start:{line:154,column:4},end:{line:202,column:5}},type:"if",locations:[{start:{line:154,column:4},end:{line:202,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:154},19:{loc:{start:{line:156,column:26},end:{line:156,column:77}},type:"cond-expr",locations:[{start:{line:156,column:56},end:{line:156,column:68}},{start:{line:156,column:71},end:{line:156,column:77}}],line:156},20:{loc:{start:{line:158,column:26},end:{line:158,column:79}},type:"cond-expr",locations:[{start:{line:158,column:56},end:{line:158,column:69}},{start:{line:158,column:72},end:{line:158,column:79}}],line:158},21:{loc:{start:{line:168,column:8},end:{line:172,column:9}},type:"if",locations:[{start:{line:168,column:8},end:{line:172,column:9}},{start:{line:170,column:15},end:{line:172,column:9}}],line:168},22:{loc:{start:{line:174,column:8},end:{line:185,column:9}},type:"if",locations:[{start:{line:174,column:8},end:{line:185,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:174},23:{loc:{start:{line:222,column:8},end:{line:237,column:9}},type:"binary-expr",locations:[{start:{line:222,column:8},end:{line:222,column:45}},{start:{line:222,column:65},end:{line:237,column:9}}],line:222},24:{loc:{start:{line:253,column:8},end:{line:268,column:9}},type:"binary-expr",locations:[{start:{line:253,column:8},end:{line:253,column:18}},{start:{line:253,column:38},end:{line:268,column:9}}],line:253},25:{loc:{start:{line:269,column:8},end:{line:277,column:15}},type:"binary-expr",locations:[{start:{line:269,column:8},end:{line:269,column:18}},{start:{line:269,column:38},end:{line:277,column:15}}],line:269},26:{loc:{start:{line:279,column:10},end:{line:289,column:11}},type:"binary-expr",locations:[{start:{line:279,column:10},end:{line:279,column:20}},{start:{line:279,column:40},end:{line:289,column:11}}],line:279}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_DataProperty.tsx"],names:[],mappings:"AAkO8B,cA8Bf,YA9Be;AAlO9B,OAAO,WAAW;AAClB,SAAQ,oBAAoB,4BAA2B;AACvD,OAAO,YAAY;AAEnB,OAAO,iBAAiB;AACxB,OAAO,eAAe;AACtB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,WAAW;AAClB,OAAO,YAAY;AACnB,OAAO,qBAAqB;AAC5B,SAAQ,2BAA0B;AAElC,OAAO,wBAAwB;AAC/B,OAAO,sBAAsB;AAI7B,SAAS,YAAY,OAA0B,OAA0B;AAEvE,MAAI;AAEJ,MAAG,MAAM,SAAS,MAAM,MAAM,OAAO;AACnC,UAAM,MAAM,MAAM,QAAQ,CAAC,MAAM,QAAQ;AACvC,UAAG,CAAC,OAAO,UAAU,eAAe,KAAK,MAAM,MAAM,GAAG,GAAG;AACzD,YAAG,CAAC,SAAS;AACX,oBAAU,EAAC,GAAG,MAAK;AAAA,QACrB;AACA,gBAAQ,GAAG,IAAI,OAAO,OAAO;AAAA,MAC/B;AAAA,IACF,CAAC;AAAA,EACH;AAEA,SAAO;AACT;AAgCA,qBAAqB,qBAAqB,MAAM,UAAgD;AAAA,EAC9F,QAAQ;AAAA,IACN,MAAM,CAAC;AAAA,EACT;AAAA,EAEA,oBAAoB;AAClB,UAAM,UAAU,YAAY,KAAK,OAAO,KAAK,KAAK;AAElD,QAAG,SAAS;AACV,WAAK,SAAS;AAAA,QACZ,MAAM;AAAA,MACR,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAA0B,OAA0B;AAClF,UAAM,UAAU,YAAY,OAAO,KAAK;AACxC,QAAG,SAAS;AACV,aAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA,EAEA,qBAAqB,WAAgB;AACnC,QAAI,UAAU,WAAW,cAAc;AACrC,aAAO;AAAA,IACT;AACA,QAAI,UAAU,SAAS,UAAU;AAC/B,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AAAA,EAEA,qBAAqB,WAAgB;AACnC,QAAI,UAAU,WAAW,cAAc;AACrC,aAAO,CAAC,eAAe,eAAe,YAAY,eAAe,UAAU;AAAA,IAC7E,OACK;AACH,aAAO,CAAC,eAAe,YAAY,UAAU;AAAA,IAC/C;AAAA,EACF;AAAA;AAAA,EAGA,iBAAiB,OAAe;AAC9B,UAAM,gBAAgB,MACnB,IAAI,CAAC,MAAM,QAAQ;AAClB,aAAO;AAAA,QACL,KAAK,KAAK,MAAM,KAAK,GAAG;AAAA,QACxB,MAAM;AAAA,MACR;AAAA,IACF,CAAC,EAEA,KAAK,CAAC,GAAG,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC;AAGjE,UAAM,UAAU,CAAC;AACjB,kBACG,QAAQ,CAAC,MAAM,QAAO;AACrB,cAAQ,GAAG,IAAI,KAAK;AAAA,IACtB,CAAC;AAEH,SAAK,SAAS;AAAA,MACZ,MAAM;AAAA,IACR,CAAC;AAED,WAAO,cAAc,IAAI,CAAC,SAAS,KAAK,IAAI;AAAA,EAC9C;AAAA,EAEA,WAAW,CAAC,WAAmB,UAAe;AAC5C,QAAI,MAAM,SAAS,YAAY;AAC7B,cAAQ;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,UAAU,MAAM;AAAA,MAClB;AAAA,IACF,OACK;AACH,YAAM,YAAY,MAAM,SAAS,gBAAgB,KAAK;AACtD,cAAQ;AAAA,QACN,UAAU;AAAA,QACV,MAAM,MAAM;AAAA;AAAA,QAEZ,OAAO;AAAA,UACL,CAAC,EAAC,MAAM,GAAG,OAAO,UAAS,GAAG,oBAAoB,KAAK,MAAM,SAAgB,CAAC;AAAA,UAC9E,CAAC,EAAC,MAAM,IAAI,OAAO,UAAS,GAAG,oBAAoB,KAAK,MAAM,SAAgB,CAAC;AAAA,QACjF;AAAA,QACA,GAAG;AAAA,MACL;AAAA,IACF;AACA,SAAK,MAAM,SAAU,WAAW,KAAK;AAAA,EACvC;AAAA,EAEA,WAAW,WAAmB,UAAuD,OAAe;AAClG,UAAM,QAAQ,KAAK,MAAM,OAAO,MAAM,MAAM,CAAC,KAAK,CAAC;AAEnD,UAAM,SAAS,IAAI;AAAA,MACjB;AAAA,QACE,OAAO,SAAS;AAAA,QAChB,MAAO,SAAS,SAAS,SAAa,IAAI,SAAS;AAAA,MACrD;AAAA,MACA;AAAA,IACF;AAEA,UAAM,eAAe,KAAK,iBAAiB,KAAK;AAEhD,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd,OAAO;AAAA,IACT;AACA,SAAK,SAAS,KAAK,MAAM,WAAW,YAAY;AAAA,EAClD;AAAA,EAEA,WAAW,UAA8B;AACvC,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd,MAAM;AAAA,IACR;AAEA,QAAI,aAAa,SAAS,QAAW;AACnC,aAAO,aAAa,MAAM;AAAA,IAC5B;AACA,SAAK,MAAM,SAAU,KAAK,MAAM,WAAW,YAAY;AAAA,EACzD;AAAA,EAEA,eAAe,SAAiB;AAC9B,QAAI,YAAY,iBAAiB,KAAK,MAAM,wBAAwB;AAClE,WAAK,MAAM,uBAAuB;AAAA,IACpC,OACK;AACH,WAAK,SAAS,KAAK,MAAM,WAAW;AAAA,QAClC,GAAG,KAAK,MAAM;AAAA,QACd,MAAM;AAAA,MACR,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,mBAAmB,UAAkC,SAAc;AACjE,QAAI,SAAS;AACX,WAAK,MAAM,MAAO,QAAQ,IAAI;AAAA,IAChC,OACK;AACH,aAAO,KAAK,MAAM,MAAO,QAAQ;AAAA,IACnC;AACA,SAAK,SAAS,KAAK,MAAM,WAAW,KAAK,MAAM,KAAK;AAAA,EACtD;AAAA,EAEA,SAAS;AACP,QAAI,OAAO,KAAK,MAAM,OAAO,SAAS,aAAa;AACjD,WAAK,MAAM,MAAO,OAAO,KAAK,qBAAqB,KAAK,MAAM,SAAS;AAAA,IACzE;AAEA,QAAI;AACJ,QAAI,KAAK,MAAM,OAAO,OAAO;AAC3B,mBAAa,KAAK,MAAM,MAAM,MAAM,IAAI,CAAC,MAAM,QAAQ;AACrD,cAAM,YAAY,OAAO,KAAK,CAAC,MAAM,WAAW,KAAK,CAAC,EAAE,OAAO;AAC/D,cAAM,MAAO,KAAK,MAAM,KAAK,GAAG;AAChC,cAAM,YAAY,OAAO,KAAK,CAAC,MAAM,WAAW,KAAK,CAAC,EAAE,QAAQ,KAAK,CAAC;AACtE,cAAM,QAAQ,KAAK,CAAC;AACpB,cAAM,gBAAgB,oBAAC,oBAAiB,SAAS,KAAK,MAAM,cAAc,KAAK,MAAM,GAAG,GAAG;AAE3F,cAAM,YAAY;AAAA,UAChB,cAAc;AAAA,UACd,OAAO;AAAA,UACP,OAAO;AAAA,UACP,UAAU,CAAC,YAAyC,KAAK,WAAW,KAAK,EAAE,MAAM,WAAW,OAAO,QAAkB,GAAG,KAAK;AAAA,QAC/H;AAEA,YAAI;AACJ,YAAG,KAAK,MAAM,OAAO,SAAS,eAAe;AAC3C,sBAAY,oBAAC,eAAa,GAAG,WAAW;AAAA,QAC1C,OACK;AACH,sBAAY,oBAAC,eAAa,GAAG,WAAW;AAAA,QAC1C;AAEA,YAAI,YAAY;AAChB,YAAG,cAAc,QAAW;AAC1B,sBAAY,oBAAC,SACX;AAAA,YAAC;AAAA;AAAA,cACC,cAAW;AAAA,cACX,OAAO;AAAA,cACP,UAAU,aAAW,KAAK,WAAW,KAAK,EAAC,MAAM,SAAS,OAAO,UAAS,GAAG,KAAK;AAAA,cAClF,KAAK;AAAA,cACL,KAAK;AAAA;AAAA,UACP,GACF;AAAA,QACF;AAEA,eAAO,qBAAC,QACN;AAAA,8BAAC,QACE,qBACH;AAAA,UACA,oBAAC,QACE,qBACH;AAAA,UACA,oBAAC,QACC;AAAA,YAAC;AAAA;AAAA,cACC,cAAW;AAAA,cACX,WAAW,KAAK,MAAM;AAAA,cACtB,WAAW,KAAK,MAAM;AAAA,cACtB;AAAA,cACA,UAAU,CAAC,GAAG,aAAa,KAAK,WAAW,KAAK,EAAC,MAAM,WAAW,OAAO,UAAS,GAAG,QAAkB;AAAA;AAAA,UACzG,GACF;AAAA,UACA,oBAAC,QACE,yBACH;AAAA,aAlBc,GAmBhB;AAAA,MACF,CAAC;AAAA,IACH;AAEA,WAAO,oBAAC,SAAI,WAAU,4BACpB,+BAAC,cAAS,WAAU,+BAClB;AAAA,0BAAC,YAAQ,6BAAmB,KAAK,MAAM,SAAS,GAAE;AAAA,MAClD,qBAAC,SAAI,WAAU,gCACb;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAGP,8BAAC,SAAI,WAAU,qCACb;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,KAAK,MAAM,MAAO;AAAA,gBACzB,UAAU,CAAC,YAAoB,KAAK,eAAe,OAAO;AAAA,gBAC1D,OAAO;AAAA,gBACP,SAAS,KAAK,qBAAqB,KAAK,MAAM,SAAS;AAAA;AAAA,YACzD,GACF;AAAA;AAAA,UATI;AAAA,QAUN;AAAA,QACC,KAAK,MAAM,OAAO,SAAS,cAC1B;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAGP,8BAAC,SAAI,WAAU,qCACb;AAAA,cAAC;AAAA;AAAA,gBACC,WAAW;AAAA,gBACX,WAAW,OAAO,SAAS;AAAA,gBAC3B,OAAO,KAAK,MAAM,OAAO;AAAA,gBACzB,UAAU,CAAC,GAAG,aAAa,KAAK,WAAW,QAAkB;AAAA;AAAA,YAC/D,GACF;AAAA;AAAA,UATI;AAAA,QAUN;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAGP,8BAAC,SAAI,WAAU,qCACb;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,KAAK,MAAM,OAAO;AAAA,gBACzB,OAAO;AAAA,gBACP,UAAU,aAAW,KAAK,mBAAmB,YAAY,OAAO;AAAA;AAAA,YAClE,GACF;AAAA;AAAA,UARI;AAAA,QASN;AAAA,QACC,cACC;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAGP;AAAA,cAAC;AAAA;AAAA,gBACC,WAAW,KAAK,MAAM;AAAA,gBACtB,WAAW,KAAK,MAAM;AAAA,gBACtB,OAAO,KAAK,MAAM,OAAO;AAAA,gBACzB,UAAU,CAAC,GAAG,YAAY,KAAK,mBAAmB,WAAW,OAAO;AAAA;AAAA,YACtE;AAAA;AAAA,UAPI;AAAA,QAQN;AAAA,QAED,cACC,oBAAC,SAAI,WAAU,0BACb,+BAAC,WAAM,WAAU,gCACf;AAAA,8BAAC,aAAQ,mBAAK;AAAA,UACd,oBAAC,WACC,+BAAC,QACC;AAAA,gCAAC,QAAG,kBAAI;AAAA,YACR,oBAAC,QAAG,yBAAW;AAAA,YACf,oBAAC,QAAG,SAAS,GAAG,0BAAY;AAAA,aAC9B,GACF;AAAA,UACA,oBAAC,WACE,sBACH;AAAA,WACF,GACF;AAAA,QAEF,qBAAC,SAAI,WAAU,oBACZ;AAAA,wBACC;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK,MAAM,WAAW,KAAK,IAAI;AAAA,cAExC;AAAA,oCAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,cAAa,GAAG,SAAQ,aAC/E,8BAAC,UAAK,MAAK,gBAAe,GAAG,sBAAsB,GACrD;AAAA,gBAAM;AAAA;AAAA;AAAA,UACR;AAAA,UAEF;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK,MAAM,mBAAmB,KAAK,IAAI;AAAA,cAEhD;AAAA,oCAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,cAAa,GAAG,SAAQ,aAC/E,8BAAC,UAAK,MAAK,gBAAe,GAAG,oBAAoB,GACnD;AAAA,gBAAM;AAAA;AAAA;AAAA,UACR;AAAA,WACF;AAAA,SACF;AAAA,OACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"232a59a4721428f6ea1780ae642f941986fcb93c"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return zt=function(){return s},s}zt();function AP(e,n){zt().f[0]++;let t;return zt().s[0]++,zt().b[1][0]++,e.value&&(zt().b[1][1]++,e.value.stops)?(zt().b[0][0]++,zt().s[1]++,e.value.stops.forEach((r,i)=>{zt().f[1]++,zt().s[2]++,Object.prototype.hasOwnProperty.call(n.refs,i)?zt().b[2][1]++:(zt().b[2][0]++,zt().s[3]++,t?zt().b[3][1]++:(zt().b[3][0]++,zt().s[4]++,t={...n}),zt().s[5]++,t[i]=Oy("stop-"))})):zt().b[0][1]++,zt().s[6]++,t}class d6e extends bn.Component{constructor(){super(...arguments);nn(this,"state",(zt().s[7]++,{refs:{}}));nn(this,"onChange",(zt().s[32]++,(t,r)=>{if(zt().f[11]++,zt().s[33]++,r.type==="identity")zt().b[9][0]++,zt().s[34]++,r={type:r.type,property:r.property};else{zt().b[9][1]++;const i=(zt().s[35]++,r.type==="categorical"?(zt().b[10][0]++,""):(zt().b[10][1]++,0));zt().s[36]++,r={property:"",type:r.type,stops:[[{zoom:6,value:i},fd(this.props.fieldSpec)],[{zoom:10,value:i},fd(this.props.fieldSpec)]],...r}}zt().s[37]++,this.props.onChange(t,r)}))}componentDidMount(){zt().f[2]++;const t=(zt().s[8]++,AP(this.props,this.state));zt().s[9]++,t?(zt().b[4][0]++,zt().s[10]++,this.setState({refs:t})):zt().b[4][1]++}static getDerivedStateFromProps(t,r){zt().f[3]++;const i=(zt().s[11]++,AP(t,r));return zt().s[12]++,i?(zt().b[5][0]++,zt().s[13]++,{refs:i}):(zt().b[5][1]++,zt().s[14]++,null)}getFieldFunctionType(t){return zt().f[4]++,zt().s[15]++,t.expression.interpolated?(zt().b[6][0]++,zt().s[16]++,"exponential"):(zt().b[6][1]++,zt().s[17]++,t.type==="number"?(zt().b[7][0]++,zt().s[18]++,"interval"):(zt().b[7][1]++,zt().s[19]++,"categorical"))}getDataFunctionTypes(t){return zt().f[5]++,zt().s[20]++,t.expression.interpolated?(zt().b[8][0]++,zt().s[21]++,["interpolate","categorical","interval","exponential","identity"]):(zt().b[8][1]++,zt().s[22]++,["categorical","interval","identity"])}orderStopsByZoom(t){zt().f[6]++;const r=(zt().s[23]++,t.map((o,s)=>(zt().f[7]++,zt().s[24]++,{ref:this.state.refs[s],data:o})).sort((o,s)=>(zt().f[8]++,zt().s[25]++,YN(o.data[0].zoom,s.data[0].zoom)))),i=(zt().s[26]++,{});return zt().s[27]++,r.forEach((o,s)=>{zt().f[9]++,zt().s[28]++,i[s]=o.ref}),zt().s[29]++,this.setState({refs:i}),zt().s[30]++,r.map(o=>(zt().f[10]++,zt().s[31]++,o.data))}changeStop(t,r,i){var f;zt().f[12]++;const o=(zt().s[38]++,zt().b[11][0]++,((f=this.props.value)==null?void 0:f.stops.slice(0))||(zt().b[11][1]++,[]));zt().s[39]++,o[t]=[{value:r.value,zoom:r.zoom===void 0?(zt().b[12][0]++,0):(zt().b[12][1]++,r.zoom)},i];const s=(zt().s[40]++,this.orderStopsByZoom(o)),a=(zt().s[41]++,{...this.props.value,stops:s});zt().s[42]++,this.onChange(this.props.fieldName,a)}changeBase(t){zt().f[13]++;const r=(zt().s[43]++,{...this.props.value,base:t});zt().s[44]++,r.base===void 0?(zt().b[13][0]++,zt().s[45]++,delete r.base):zt().b[13][1]++,zt().s[46]++,this.props.onChange(this.props.fieldName,r)}changeDataType(t){zt().f[14]++,zt().s[47]++,zt().b[15][0]++,t==="interpolate"&&(zt().b[15][1]++,this.props.onChangeToZoomFunction)?(zt().b[14][0]++,zt().s[48]++,this.props.onChangeToZoomFunction()):(zt().b[14][1]++,zt().s[49]++,this.onChange(this.props.fieldName,{...this.props.value,type:t}))}changeDataProperty(t,r){zt().f[15]++,zt().s[50]++,r?(zt().b[16][0]++,zt().s[51]++,this.props.value[t]=r):(zt().b[16][1]++,zt().s[52]++,delete this.props.value[t]),zt().s[53]++,this.onChange(this.props.fieldName,this.props.value)}render(){var r,i,o,s,a,f,g,x;zt().f[16]++,zt().s[54]++,typeof((r=this.props.value)==null?void 0:r.type)>"u"?(zt().b[17][0]++,zt().s[55]++,this.props.value.type=this.getFieldFunctionType(this.props.fieldSpec)):zt().b[17][1]++;let t;return zt().s[56]++,(i=this.props.value)!=null&&i.stops?(zt().b[18][0]++,zt().s[57]++,t=this.props.value.stops.map((k,B)=>{var ce,ae;zt().f[17]++;const P=(zt().s[58]++,typeof k[0]=="object"?(zt().b[19][0]++,k[0].zoom):(zt().b[19][1]++,void 0)),R=(zt().s[59]++,this.state.refs[B]),H=(zt().s[60]++,typeof k[0]=="object"?(zt().b[20][0]++,k[0].value):(zt().b[20][1]++,k[0])),W=(zt().s[61]++,k[1]),$=(zt().s[62]++,N.jsx(qN,{onClick:(ce=this.props.onDeleteStop)==null?void 0:ce.bind(this,B)})),q=(zt().s[63]++,{"aria-label":"Input value",label:"Data value",value:H,onChange:ue=>(zt().f[18]++,zt().s[64]++,this.changeStop(B,{zoom:P,value:ue},W))});let oe;zt().s[65]++,((ae=this.props.value)==null?void 0:ae.type)==="categorical"?(zt().b[21][0]++,zt().s[66]++,oe=N.jsx(Sd,{...q})):(zt().b[21][1]++,zt().s[67]++,oe=N.jsx(pf,{...q}));let ne=(zt().s[68]++,null);return zt().s[69]++,P!==void 0?(zt().b[22][0]++,zt().s[70]++,ne=N.jsx("div",{children:N.jsx(pf,{"aria-label":"Zoom",value:P,onChange:ue=>(zt().f[19]++,zt().s[71]++,this.changeStop(B,{zoom:ue,value:H},W)),min:0,max:22})})):zt().b[22][1]++,zt().s[72]++,N.jsxs("tr",{children:[N.jsx("td",{children:ne}),N.jsx("td",{children:oe}),N.jsx("td",{children:N.jsx(dy,{"aria-label":"Output value",fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:W,onChange:(ue,ye)=>(zt().f[20]++,zt().s[73]++,this.changeStop(B,{zoom:P,value:H},ye))})}),N.jsx("td",{children:$})]},R)})):zt().b[18][1]++,zt().s[74]++,N.jsx("div",{className:"maputnik-data-spec-block",children:N.jsxs("fieldset",{className:"maputnik-data-spec-property",children:[N.jsx("legend",{children:D5(this.props.fieldName)}),N.jsxs("div",{className:"maputnik-data-fieldset-inner",children:[N.jsx(Uo,{label:"Function",children:N.jsx("div",{className:"maputnik-data-spec-property-input",children:N.jsx(w1,{value:this.props.value.type,onChange:k=>(zt().f[21]++,zt().s[75]++,this.changeDataType(k)),title:"Select a type of data scale (default is 'categorical').",options:this.getDataFunctionTypes(this.props.fieldSpec)})})},"function"),(zt().b[23][0]++,((o=this.props.value)==null?void 0:o.type)!=="identity"&&(zt().b[23][1]++,N.jsx(Uo,{label:"Base",children:N.jsx("div",{className:"maputnik-data-spec-property-input",children:N.jsx(dy,{fieldName:"base",fieldSpec:Ji.function.base,value:(s=this.props.value)==null?void 0:s.base,onChange:(k,B)=>(zt().f[22]++,zt().s[76]++,this.changeBase(B))})})},"base"))),N.jsx(Uo,{label:"Property",children:N.jsx("div",{className:"maputnik-data-spec-property-input",children:N.jsx(Sd,{value:(a=this.props.value)==null?void 0:a.property,title:"Input a data property to base styles off of.",onChange:k=>(zt().f[23]++,zt().s[77]++,this.changeDataProperty("property",k))})})},"property"),(zt().b[24][0]++,t&&(zt().b[24][1]++,N.jsx(Uo,{label:"Default",children:N.jsx(dy,{fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:(f=this.props.value)==null?void 0:f.default,onChange:(k,B)=>(zt().f[24]++,zt().s[78]++,this.changeDataProperty("default",B))})},"default"))),(zt().b[25][0]++,t&&(zt().b[25][1]++,N.jsx("div",{className:"maputnik-function-stop",children:N.jsxs("table",{className:"maputnik-function-stop-table",children:[N.jsx("caption",{children:"Stops"}),N.jsx("thead",{children:N.jsxs("tr",{children:[N.jsx("th",{children:"Zoom"}),N.jsx("th",{children:"Input value"}),N.jsx("th",{rowSpan:2,children:"Output value"})]})}),N.jsx("tbody",{children:t})]})}))),N.jsxs("div",{className:"maputnik-toolbox",children:[(zt().b[26][0]++,t&&(zt().b[26][1]++,N.jsxs(Ka,{className:"maputnik-add-stop",onClick:(g=this.props.onAddStop)==null?void 0:g.bind(this),children:[N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"text-bottom"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:d8})})," Add stop"]}))),N.jsxs(Ka,{className:"maputnik-add-stop",onClick:(x=this.props.onExpressionClick)==null?void 0:x.bind(this),children:[N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"text-bottom"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:S_})})," Convert to expression"]})]})]})]})})}}function Un(){var e="/home/runner/work/maputnik/maputnik/src/components/_ZoomProperty.tsx",n="b293261b8db082101e4d8e26898ce3be8cd692d2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/_ZoomProperty.tsx",statementMap:{0:{start:{line:15,column:16},end:{line:15,column:18}},1:{start:{line:16,column:2},end:{line:27,column:3}},2:{start:{line:17,column:4},end:{line:26,column:7}},3:{start:{line:18,column:6},end:{line:25,column:7}},4:{start:{line:19,column:8},end:{line:21,column:9}},5:{start:{line:20,column:10},end:{line:20,column:33}},6:{start:{line:22,column:8},end:{line:22,column:39}},7:{start:{line:24,column:8},end:{line:24,column:39}},8:{start:{line:28,column:2},end:{line:28,column:17}},9:{start:{line:31,column:24},end:{line:33,column:3}},10:{start:{line:34,column:10},end:{line:36,column:3}},11:{start:{line:38,column:20},end:{line:38,column:55}},12:{start:{line:39,column:4},end:{line:43,column:5}},13:{start:{line:40,column:6},end:{line:42,column:9}},14:{start:{line:46,column:20},end:{line:46,column:45}},15:{start:{line:47,column:4},end:{line:51,column:5}},16:{start:{line:48,column:6},end:{line:50,column:8}},17:{start:{line:52,column:4},end:{line:52,column:16}},18:{start:{line:56,column:26},end:{line:61,column:60}},19:{start:{line:57,column:6},end:{line:60,column:8}},20:{start:{line:61,column:22},end:{line:61,column:59}},21:{start:{line:62,column:20},end:{line:62,column:22}},22:{start:{line:63,column:4},end:{line:65,column:7}},23:{start:{line:64,column:6},end:{line:64,column:30}},24:{start:{line:66,column:4},end:{line:68,column:7}},25:{start:{line:69,column:4},end:{line:69,column:50}},26:{start:{line:69,column:39},end:{line:69,column:48}},27:{start:{line:72,column:18},end:{line:72,column:49}},28:{start:{line:73,column:4},end:{line:73,column:41}},29:{start:{line:74,column:25},end:{line:74,column:53}},30:{start:{line:75,column:25},end:{line:78,column:5}},31:{start:{line:79,column:4},end:{line:79,column:60}},32:{start:{line:82,column:25},end:{line:85,column:5}},33:{start:{line:86,column:4},end:{line:88,column:5}},34:{start:{line:87,column:6},end:{line:87,column:34}},35:{start:{line:89,column:4},end:{line:89,column:60}},36:{start:{line:91,column:19},end:{line:95,column:3}},37:{start:{line:92,column:4},end:{line:94,column:5}},38:{start:{line:93,column:6},end:{line:93,column:46}},39:{start:{line:97,column:23},end:{line:131,column:6}},40:{start:{line:98,column:24},end:{line:98,column:31}},41:{start:{line:99,column:18},end:{line:99,column:38}},42:{start:{line:100,column:20},end:{line:100,column:27}},43:{start:{line:101,column:44},end:{line:101,column:120}},44:{start:{line:102,column:6},end:{line:130,column:8}},45:{start:{line:111,column:43},end:{line:111,column:87}},46:{start:{line:123,column:43},end:{line:123,column:88}},47:{start:{line:132,column:4},end:{line:198,column:12}},48:{start:{line:143,column:39},end:{line:143,column:67}},49:{start:{line:160,column:43},end:{line:160,column:68}},50:{start:{line:201,column:4},end:{line:205,column:5}},51:{start:{line:202,column:6},end:{line:202,column:83}},52:{start:{line:204,column:6},end:{line:204,column:29}}},fnMap:{0:{name:"setStopRefs",decl:{start:{line:14,column:9},end:{line:14,column:20}},loc:{start:{line:14,column:35},end:{line:29,column:1}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:17,column:30},end:{line:17,column:31}},loc:{start:{line:17,column:45},end:{line:26,column:5}},line:17},2:{name:"(anonymous_2)",decl:{start:{line:37,column:2},end:{line:37,column:3}},loc:{start:{line:37,column:22},end:{line:44,column:3}},line:37},3:{name:"(anonymous_3)",decl:{start:{line:45,column:2},end:{line:45,column:3}},loc:{start:{line:45,column:48},end:{line:53,column:3}},line:45},4:{name:"(anonymous_4)",decl:{start:{line:55,column:2},end:{line:55,column:3}},loc:{start:{line:55,column:26},end:{line:70,column:3}},line:55},5:{name:"(anonymous_5)",decl:{start:{line:56,column:36},end:{line:56,column:37}},loc:{start:{line:56,column:51},end:{line:61,column:5}},line:56},6:{name:"(anonymous_6)",decl:{start:{line:61,column:12},end:{line:61,column:13}},loc:{start:{line:61,column:22},end:{line:61,column:59}},line:61},7:{name:"(anonymous_7)",decl:{start:{line:63,column:26},end:{line:63,column:27}},loc:{start:{line:63,column:41},end:{line:65,column:5}},line:63},8:{name:"(anonymous_8)",decl:{start:{line:69,column:29},end:{line:69,column:30}},loc:{start:{line:69,column:39},end:{line:69,column:48}},line:69},9:{name:"(anonymous_9)",decl:{start:{line:71,column:2},end:{line:71,column:3}},loc:{start:{line:71,column:45},end:{line:80,column:3}},line:71},10:{name:"(anonymous_10)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:23},end:{line:90,column:3}},line:81},11:{name:"(anonymous_11)",decl:{start:{line:91,column:19},end:{line:91,column:20}},loc:{start:{line:91,column:29},end:{line:95,column:3}},line:91},12:{name:"(anonymous_12)",decl:{start:{line:96,column:2},end:{line:96,column:3}},loc:{start:{line:96,column:11},end:{line:199,column:3}},line:96},13:{name:"(anonymous_13)",decl:{start:{line:97,column:51},end:{line:97,column:52}},loc:{start:{line:97,column:66},end:{line:131,column:5}},line:97},14:{name:"(anonymous_14)",decl:{start:{line:111,column:26},end:{line:111,column:27}},loc:{start:{line:111,column:43},end:{line:111,column:87}},line:111},15:{name:"(anonymous_15)",decl:{start:{line:123,column:26},end:{line:123,column:27}},loc:{start:{line:123,column:43},end:{line:123,column:88}},line:123},16:{name:"(anonymous_16)",decl:{start:{line:143,column:26},end:{line:143,column:27}},loc:{start:{line:143,column:39},end:{line:143,column:67}},line:143},17:{name:"(anonymous_17)",decl:{start:{line:160,column:26},end:{line:160,column:27}},loc:{start:{line:160,column:43},end:{line:160,column:68}},line:160},18:{name:"(anonymous_18)",decl:{start:{line:200,column:2},end:{line:200,column:3}},loc:{start:{line:200,column:34},end:{line:206,column:3}},line:200}},branchMap:{0:{loc:{start:{line:16,column:2},end:{line:27,column:3}},type:"if",locations:[{start:{line:16,column:2},end:{line:27,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:16},1:{loc:{start:{line:16,column:6},end:{line:16,column:38}},type:"binary-expr",locations:[{start:{line:16,column:6},end:{line:16,column:17}},{start:{line:16,column:21},end:{line:16,column:38}}],line:16},2:{loc:{start:{line:18,column:6},end:{line:25,column:7}},type:"if",locations:[{start:{line:18,column:6},end:{line:25,column:7}},{start:{line:23,column:13},end:{line:25,column:7}}],line:18},3:{loc:{start:{line:19,column:8},end:{line:21,column:9}},type:"if",locations:[{start:{line:19,column:8},end:{line:21,column:9}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:19},4:{loc:{start:{line:39,column:4},end:{line:43,column:5}},type:"if",locations:[{start:{line:39,column:4},end:{line:43,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:39},5:{loc:{start:{line:47,column:4},end:{line:51,column:5}},type:"if",locations:[{start:{line:47,column:4},end:{line:51,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},6:{loc:{start:{line:86,column:4},end:{line:88,column:5}},type:"if",locations:[{start:{line:86,column:4},end:{line:88,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:86},7:{loc:{start:{line:92,column:4},end:{line:94,column:5}},type:"if",locations:[{start:{line:92,column:4},end:{line:94,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:92},8:{loc:{start:{line:92,column:8},end:{line:92,column:67}},type:"binary-expr",locations:[{start:{line:92,column:8},end:{line:92,column:30}},{start:{line:92,column:34},end:{line:92,column:67}}],line:92},9:{loc:{start:{line:201,column:4},end:{line:205,column:5}},type:"if",locations:[{start:{line:201,column:4},end:{line:205,column:5}},{start:{line:203,column:11},end:{line:205,column:5}}],line:201}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/_ZoomProperty.tsx"],names:[],mappings:"AA8J2B,cACd,YADc;AA9J3B,OAAO,WAAW;AAClB,SAAQ,oBAAoB,4BAA2B;AACvD,OAAO,YAAY;AAEnB,OAAO,iBAAiB;AACxB,OAAO,eAAe;AACtB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,WAAW;AAElB,OAAO,sBAAsB;AAC7B,OAAO,wBAAwB;AAE/B,OAAO,YAAY;AACnB,OAAO,qBAAqB;AAQ5B,SAAS,YAAY,OAA0B,OAA0B;AAEvE,MAAI,UAAmC,CAAC;AAExC,MAAG,MAAM,SAAU,MAAM,MAAwB,OAAO;AACtD,IAAC,MAAM,MAAwB,MAAM,QAAQ,CAAC,MAAM,QAAgB;AAClE,UAAG,OAAO,UAAU,eAAe,KAAK,CAAC,MAAM,MAAM,GAAG,GAAG;AACzD,YAAG,CAAC,SAAS;AACX,oBAAU,EAAC,GAAG,MAAK;AAAA,QACrB;AACA,gBAAQ,GAAG,IAAI,OAAO,OAAO;AAAA,MAC/B,OAAO;AACL,gBAAQ,GAAG,IAAI,MAAM,KAAK,GAAG;AAAA,MAC/B;AAAA,IACF,CAAC;AAAA,EACH;AACA,SAAO;AACT;AA4BA,qBAAqB,qBAAqB,MAAM,UAAgD;AAAA,EAC9F,OAAO,eAAe;AAAA,IACpB,QAAQ,CAAC;AAAA,EACX;AAAA,EAEA,QAAQ;AAAA,IACN,MAAM,CAAC;AAAA,EACT;AAAA,EAEA,oBAAoB;AAClB,UAAM,UAAU,YAAY,KAAK,OAAO,KAAK,KAAK;AAElD,QAAG,SAAS;AACV,WAAK,SAAS;AAAA,QACZ,MAAM;AAAA,MACR,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAA0B,OAA0B;AAClF,UAAM,UAAU,YAAY,OAAO,KAAK;AACxC,QAAG,SAAS;AACV,aAAO;AAAA,QACL,MAAM;AAAA,MACR;AAAA,IACF;AACA,WAAO;AAAA,EACT;AAAA;AAAA,EAGA,iBAAiB,OAA+B;AAC9C,UAAM,gBAAgB,MACnB,IAAI,CAAC,MAAM,QAAQ;AAClB,aAAO;AAAA,QACL,KAAK,KAAK,MAAM,KAAK,GAAG;AAAA,QACxB,MAAM;AAAA,MACR;AAAA,IACF,CAAC,EAEA,KAAK,CAAC,GAAG,MAAM,gBAAgB,EAAE,KAAK,CAAC,GAAI,EAAE,KAAK,CAAC,CAAE,CAAC;AAGzD,UAAM,UAAkC,CAAC;AACzC,kBACG,QAAQ,CAAC,MAAM,QAAO;AACrB,cAAQ,GAAG,IAAI,KAAK;AAAA,IACtB,CAAC;AAEH,SAAK,SAAS;AAAA,MACZ,MAAM;AAAA,IACR,CAAC;AAED,WAAO,cAAc,IAAI,CAAC,SAAS,KAAK,IAAI;AAAA,EAC9C;AAAA,EAEA,eAAe,WAAmB,UAA8B,OAAe;AAC7E,UAAM,QAAS,KAAK,MAAM,MAAwB,MAAM,MAAM,CAAC;AAC/D,UAAM,SAAS,IAAI,CAAC,UAAU,KAAK;AAEnC,UAAM,eAAe,KAAK,iBAAiB,KAAK;AAEhD,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd,OAAO;AAAA,IACT;AACA,SAAK,MAAM,SAAU,KAAK,MAAM,WAAW,YAAY;AAAA,EACzD;AAAA,EAEA,WAAW,UAA8B;AACvC,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd,MAAM;AAAA,IACR;AAEA,QAAI,aAAa,SAAS,QAAW;AACnC,aAAO,aAAa,MAAM;AAAA,IAC5B;AACA,SAAK,MAAM,SAAU,KAAK,MAAM,WAAW,YAAY;AAAA,EACzD;AAAA,EAEA,iBAAiB,CAAC,SAAiB;AACjC,QAAI,SAAS,iBAAiB,KAAK,MAAM,wBAAwB;AAC/D,WAAK,MAAM,uBAAuB,IAAI;AAAA,IACxC;AAAA,EACF;AAAA,EAEA,SAAS;AACP,UAAM,aAAa,KAAK,MAAM,OAAO,MAAM,IAAI,CAAC,MAAM,QAAQ;AAC5D,YAAM,YAAY,KAAK,CAAC;AACxB,YAAM,MAAO,KAAK,MAAM,KAAK,GAAG;AAChC,YAAM,QAAQ,KAAK,CAAC;AACpB,YAAM,gBAAe,oBAAC,oBAAiB,SAAS,KAAK,MAAM,cAAc,KAAK,MAAM,GAAG,GAAG;AAC1F,aAAO;AAAA,QAAC;AAAA;AAAA,UAGN;AAAA,gCAAC,QACC;AAAA,cAAC;AAAA;AAAA,gBACC,cAAW;AAAA,gBACX,OAAO;AAAA,gBACP,UAAU,iBAAe,KAAK,eAAe,KAAK,aAAa,KAAK;AAAA,gBACpE,KAAK;AAAA,gBACL,KAAK;AAAA;AAAA,YACP,GACF;AAAA,YACA,oBAAC,QACC;AAAA,cAAC;AAAA;AAAA,gBACC,cAAW;AAAA,gBACX,WAAW,KAAK,MAAM;AAAA,gBACtB,WAAW,KAAK,MAAM;AAAA,gBACtB;AAAA,gBACA,UAAU,CAAC,GAAG,aAAa,KAAK,eAAe,KAAK,WAAW,QAAkB;AAAA;AAAA,YACnF,GACF;AAAA,YACA,oBAAC,QACE,yBACH;AAAA;AAAA;AAAA,QAtBK;AAAA,MAuBP;AAAA,IACF,CAAC;AAGD,WAAO,oBAAC,SAAI,WAAU,4BACpB,+BAAC,cAAS,WAAU,+BAClB;AAAA,0BAAC,YAAQ,6BAAmB,KAAK,MAAM,SAAS,GAAE;AAAA,MAClD,qBAAC,SAAI,WAAU,gCACb;AAAA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAEP,8BAAC,SAAI,WAAU,qCACb;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO;AAAA,gBACP,UAAU,CAAC,YAAoB,KAAK,eAAe,OAAO;AAAA,gBAC1D,OAAO;AAAA,gBACP,SAAS,KAAK,qBAAqB,KAAK,MAAM,SAAU;AAAA;AAAA,YAC1D,GACF;AAAA;AAAA,QACF;AAAA,QACA;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YAEP,8BAAC,SAAI,WAAU,qCACb;AAAA,cAAC;AAAA;AAAA,gBACC,WAAW;AAAA,gBACX,WAAW,OAAO,SAAS;AAAA,gBAC3B,OAAO,KAAK,MAAM,OAAO;AAAA,gBACzB,UAAU,CAAC,GAAG,aAAa,KAAK,WAAW,QAA8B;AAAA;AAAA,YAC3E,GACF;AAAA;AAAA,QACF;AAAA,QACA,oBAAC,SAAI,WAAU,0BACb,+BAAC,WAAM,WAAU,mEACf;AAAA,8BAAC,aAAQ,mBAAK;AAAA,UACd,oBAAC,WACC,+BAAC,QACC;AAAA,gCAAC,QAAG,kBAAI;AAAA,YACR,oBAAC,QAAG,SAAS,GAAG,0BAAY;AAAA,aAC9B,GACF;AAAA,UACA,oBAAC,WACE,sBACH;AAAA,WACF,GACF;AAAA,QACA,qBAAC,SAAI,WAAU,oBACb;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK,MAAM,WAAW,KAAK,IAAI;AAAA,cAExC;AAAA,oCAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,cAAa,GAAG,SAAQ,aAC/E,8BAAC,UAAK,MAAK,gBAAe,GAAG,sBAAsB,GACrD;AAAA,gBAAM;AAAA;AAAA;AAAA,UACR;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,SAAS,KAAK,MAAM,mBAAmB,KAAK,IAAI;AAAA,cAEhD;AAAA,oCAAC,SAAI,OAAO,EAAC,OAAM,QAAQ,QAAO,QAAQ,eAAe,cAAa,GAAG,SAAQ,aAC/E,8BAAC,UAAK,MAAK,gBAAe,GAAG,oBAAoB,GACnD;AAAA,gBAAM;AAAA;AAAA;AAAA,UACR;AAAA,WACF;AAAA,SACF;AAAA,OACF,GACF;AAAA,EACF;AAAA,EAEA,qBAAqB,WAGlB;AACD,QAAI,UAAU,eAAe,MAAM,eAAe;AAChD,aAAO,CAAC,eAAe,eAAe,YAAY,eAAe,UAAU;AAAA,IAC7E,OACK;AACH,aAAO,CAAC,aAAa;AAAA,IACvB;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b293261b8db082101e4d8e26898ce3be8cd692d2"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Un=function(){return s},s}Un();function cP(e,n){Un().f[0]++;let t=(Un().s[0]++,{});return Un().s[1]++,Un().b[1][0]++,e.value&&(Un().b[1][1]++,e.value.stops)?(Un().b[0][0]++,Un().s[2]++,e.value.stops.forEach((r,i)=>{Un().f[1]++,Un().s[3]++,Object.prototype.hasOwnProperty.call(!n.refs,i)?(Un().b[2][0]++,Un().s[4]++,t?Un().b[3][1]++:(Un().b[3][0]++,Un().s[5]++,t={...n}),Un().s[6]++,t[i]=Oy("stop-")):(Un().b[2][1]++,Un().s[7]++,t[i]=n.refs[i])})):Un().b[0][1]++,Un().s[8]++,t}class VN extends bn.Component{constructor(){super(...arguments);nn(this,"state",(Un().s[10]++,{refs:{}}));nn(this,"changeDataType",(Un().s[36]++,t=>{Un().f[11]++,Un().s[37]++,Un().b[8][0]++,t!=="interpolate"&&(Un().b[8][1]++,this.props.onChangeToDataFunction)?(Un().b[7][0]++,Un().s[38]++,this.props.onChangeToDataFunction(t)):Un().b[7][1]++}))}componentDidMount(){Un().f[2]++;const t=(Un().s[11]++,cP(this.props,this.state));Un().s[12]++,t?(Un().b[4][0]++,Un().s[13]++,this.setState({refs:t})):Un().b[4][1]++}static getDerivedStateFromProps(t,r){Un().f[3]++;const i=(Un().s[14]++,cP(t,r));return Un().s[15]++,i?(Un().b[5][0]++,Un().s[16]++,{refs:i}):(Un().b[5][1]++,Un().s[17]++,null)}orderStopsByZoom(t){Un().f[4]++;const r=(Un().s[18]++,t.map((o,s)=>(Un().f[5]++,Un().s[19]++,{ref:this.state.refs[s],data:o})).sort((o,s)=>(Un().f[6]++,Un().s[20]++,YN(o.data[0],s.data[0])))),i=(Un().s[21]++,{});return Un().s[22]++,r.forEach((o,s)=>{Un().f[7]++,Un().s[23]++,i[s]=o.ref}),Un().s[24]++,this.setState({refs:i}),Un().s[25]++,r.map(o=>(Un().f[8]++,Un().s[26]++,o.data))}changeZoomStop(t,r,i){Un().f[9]++;const o=(Un().s[27]++,this.props.value.stops.slice(0));Un().s[28]++,o[t]=[r,i];const s=(Un().s[29]++,this.orderStopsByZoom(o)),a=(Un().s[30]++,{...this.props.value,stops:s});Un().s[31]++,this.props.onChange(this.props.fieldName,a)}changeBase(t){Un().f[10]++;const r=(Un().s[32]++,{...this.props.value,base:t});Un().s[33]++,r.base===void 0?(Un().b[6][0]++,Un().s[34]++,delete r.base):Un().b[6][1]++,Un().s[35]++,this.props.onChange(this.props.fieldName,r)}render(){var r,i,o,s;Un().f[12]++;const t=(Un().s[39]++,(r=this.props.value)==null?void 0:r.stops.map((a,f)=>{var P;Un().f[13]++;const g=(Un().s[40]++,a[0]),x=(Un().s[41]++,this.state.refs[f]),k=(Un().s[42]++,a[1]),B=(Un().s[43]++,N.jsx(qN,{onClick:(P=this.props.onDeleteStop)==null?void 0:P.bind(this,f)}));return Un().s[44]++,N.jsxs("tr",{children:[N.jsx("td",{children:N.jsx(pf,{"aria-label":"Zoom",value:g,onChange:R=>(Un().f[14]++,Un().s[45]++,this.changeZoomStop(f,R,k)),min:0,max:22})}),N.jsx("td",{children:N.jsx(dy,{"aria-label":"Output value",fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:k,onChange:(R,H)=>(Un().f[15]++,Un().s[46]++,this.changeZoomStop(f,g,H))})}),N.jsx("td",{children:B})]},x)}));return Un().s[47]++,N.jsx("div",{className:"maputnik-data-spec-block",children:N.jsxs("fieldset",{className:"maputnik-data-spec-property",children:[N.jsx("legend",{children:D5(this.props.fieldName)}),N.jsxs("div",{className:"maputnik-data-fieldset-inner",children:[N.jsx(Uo,{label:"Function",children:N.jsx("div",{className:"maputnik-data-spec-property-input",children:N.jsx(w1,{value:"interpolate",onChange:a=>(Un().f[16]++,Un().s[48]++,this.changeDataType(a)),title:"Select a type of data scale (default is 'categorical').",options:this.getDataFunctionTypes(this.props.fieldSpec)})})}),N.jsx(Uo,{label:"Base",children:N.jsx("div",{className:"maputnik-data-spec-property-input",children:N.jsx(dy,{fieldName:"base",fieldSpec:Ji.function.base,value:(i=this.props.value)==null?void 0:i.base,onChange:(a,f)=>(Un().f[17]++,Un().s[49]++,this.changeBase(f))})})}),N.jsx("div",{className:"maputnik-function-stop",children:N.jsxs("table",{className:"maputnik-function-stop-table maputnik-function-stop-table--zoom",children:[N.jsx("caption",{children:"Stops"}),N.jsx("thead",{children:N.jsxs("tr",{children:[N.jsx("th",{children:"Zoom"}),N.jsx("th",{rowSpan:2,children:"Output value"})]})}),N.jsx("tbody",{children:t})]})}),N.jsxs("div",{className:"maputnik-toolbox",children:[N.jsxs(Ka,{className:"maputnik-add-stop",onClick:(o=this.props.onAddStop)==null?void 0:o.bind(this),children:[N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"text-bottom"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:d8})})," Add stop"]}),N.jsxs(Ka,{className:"maputnik-add-stop",onClick:(s=this.props.onExpressionClick)==null?void 0:s.bind(this),children:[N.jsx("svg",{style:{width:"14px",height:"14px",verticalAlign:"text-bottom"},viewBox:"0 0 24 24",children:N.jsx("path",{fill:"currentColor",d:S_})})," Convert to expression"]})]})]})]})})}getDataFunctionTypes(t){return Un().f[18]++,Un().s[50]++,t["property-type"]==="data-driven"?(Un().b[9][0]++,Un().s[51]++,["interpolate","categorical","interval","exponential","identity"]):(Un().b[9][1]++,Un().s[52]++,["interpolate"])}}nn(VN,"defaultProps",(Un().s[9]++,{errors:{}}));function ut(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldFunction.tsx",n="435f90d980cace940b69ce8c0aa30d2fab175109",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldFunction.tsx",statementMap:{0:{start:{line:10,column:2},end:{line:10,column:78}},1:{start:{line:13,column:2},end:{line:13,column:74}},2:{start:{line:16,column:2},end:{line:18,column:5}},3:{start:{line:17,column:4},end:{line:17,column:52}},4:{start:{line:21,column:2},end:{line:21,column:123}},5:{start:{line:24,column:2},end:{line:26,column:5}},6:{start:{line:25,column:4},end:{line:25,column:83}},7:{start:{line:29,column:2},end:{line:29,column:64}},8:{start:{line:32,column:16},end:{line:32,column:47}},9:{start:{line:33,column:2},end:{line:33,column:38}},10:{start:{line:36,column:2},end:{line:38,column:3}},11:{start:{line:37,column:4},end:{line:37,column:37}},12:{start:{line:39,column:2},end:{line:39,column:15}},13:{start:{line:42,column:2},end:{line:54,column:3}},14:{start:{line:43,column:4},end:{line:43,column:19}},15:{start:{line:44,column:9},end:{line:54,column:3}},16:{start:{line:45,column:4},end:{line:45,column:19}},17:{start:{line:46,column:9},end:{line:54,column:3}},18:{start:{line:47,column:4},end:{line:47,column:19}},19:{start:{line:48,column:9},end:{line:54,column:3}},20:{start:{line:49,column:4},end:{line:49,column:27}},21:{start:{line:50,column:9},end:{line:54,column:3}},22:{start:{line:51,column:4},end:{line:51,column:27}},23:{start:{line:53,column:4},end:{line:53,column:24}},24:{start:{line:58,column:4},end:{line:58,column:17}},25:{start:{line:59,column:4},end:{line:62,column:6}},26:{start:{line:65,column:4},end:{line:72,column:5}},27:{start:{line:66,column:6},end:{line:66,column:16}},28:{start:{line:68,column:6},end:{line:71,column:8}},29:{start:{line:75,column:4},end:{line:77,column:5}},30:{start:{line:76,column:6},end:{line:76,column:27}},31:{start:{line:78,column:4},end:{line:80,column:5}},32:{start:{line:79,column:6},end:{line:79,column:24}},33:{start:{line:81,column:4},end:{line:81,column:25}},34:{start:{line:83,column:12},end:{line:99,column:3}},35:{start:{line:84,column:18},end:{line:84,column:49}},36:{start:{line:85,column:21},end:{line:85,column:44}},37:{start:{line:86,column:4},end:{line:93,column:5}},38:{start:{line:87,column:6},end:{line:90,column:9}},39:{start:{line:92,column:6},end:{line:92,column:49}},40:{start:{line:94,column:25},end:{line:97,column:5}},41:{start:{line:98,column:4},end:{line:98,column:60}},42:{start:{line:100,column:21},end:{line:106,column:3}},43:{start:{line:101,column:37},end:{line:101,column:47}},44:{start:{line:102,column:4},end:{line:102,column:54}},45:{start:{line:103,column:4},end:{line:105,column:7}},46:{start:{line:107,column:15},end:{line:118,column:3}},47:{start:{line:108,column:18},end:{line:108,column:49}},48:{start:{line:109,column:4},end:{line:109,column:29}},49:{start:{line:110,column:23},end:{line:113,column:5}},50:{start:{line:114,column:4},end:{line:116,column:5}},51:{start:{line:115,column:6},end:{line:115,column:33}},52:{start:{line:117,column:4},end:{line:117,column:60}},53:{start:{line:119,column:21},end:{line:148,column:3}},54:{start:{line:120,column:22},end:{line:120,column:32}},55:{start:{line:122,column:4},end:{line:146,column:5}},56:{start:{line:123,column:6},end:{line:138,column:7}},57:{start:{line:124,column:8},end:{line:129,column:10}},58:{start:{line:127,column:12},end:{line:127,column:88}},59:{start:{line:131,column:8},end:{line:137,column:10}},60:{start:{line:140,column:6},end:{line:145,column:8}},61:{start:{line:147,column:4},end:{line:147,column:56}},62:{start:{line:149,column:19},end:{line:165,column:3}},63:{start:{line:150,column:33},end:{line:150,column:43}},64:{start:{line:151,column:4},end:{line:164,column:5}},65:{start:{line:152,column:6},end:{line:155,column:9}},66:{start:{line:156,column:6},end:{line:158,column:9}},67:{start:{line:159,column:11},end:{line:164,column:5}},68:{start:{line:160,column:6},end:{line:160,column:47}},69:{start:{line:161,column:6},end:{line:163,column:9}},70:{start:{line:166,column:12},end:{line:169,column:3}},71:{start:{line:167,column:33},end:{line:167,column:43}},72:{start:{line:168,column:4},end:{line:168,column:140}},73:{start:{line:170,column:19},end:{line:181,column:3}},74:{start:{line:171,column:33},end:{line:171,column:43}},75:{start:{line:173,column:4},end:{line:179,column:5}},76:{start:{line:174,column:6},end:{line:174,column:67}},77:{start:{line:175,column:11},end:{line:179,column:5}},78:{start:{line:176,column:6},end:{line:176,column:43}},79:{start:{line:178,column:6},end:{line:178,column:70}},80:{start:{line:180,column:4},end:{line:180,column:58}},81:{start:{line:182,column:21},end:{line:220,column:3}},82:{start:{line:183,column:25},end:{line:183,column:72}},83:{start:{line:184,column:22},end:{line:184,column:61}},84:{start:{line:185,column:22},end:{line:185,column:32}},85:{start:{line:187,column:4},end:{line:218,column:5}},86:{start:{line:188,column:6},end:{line:207,column:7}},87:{start:{line:189,column:8},end:{line:196,column:10}},88:{start:{line:194,column:12},end:{line:194,column:111}},89:{start:{line:198,column:8},end:{line:206,column:10}},90:{start:{line:209,column:6},end:{line:217,column:8}},91:{start:{line:219,column:4},end:{line:219,column:56}},92:{start:{line:221,column:18},end:{line:223,column:3}},93:{start:{line:222,column:4},end:{line:222,column:39}},94:{start:{line:224,column:20},end:{line:226,column:3}},95:{start:{line:225,column:4},end:{line:225,column:40}},96:{start:{line:228,column:25},end:{line:228,column:35}},97:{start:{line:229,column:22},end:{line:229,column:132}},98:{start:{line:231,column:4},end:{line:295,column:5}},99:{start:{line:232,column:6},end:{line:247,column:8}},100:{start:{line:248,column:11},end:{line:295,column:5}},101:{start:{line:249,column:6},end:{line:263,column:8}},102:{start:{line:264,column:11},end:{line:295,column:5}},103:{start:{line:265,column:6},end:{line:279,column:8}},104:{start:{line:281,column:6},end:{line:294,column:8}},105:{start:{line:296,column:4},end:{line:296,column:148}}},fnMap:{0:{name:"isLiteralExpression",decl:{start:{line:9,column:9},end:{line:9,column:28}},loc:{start:{line:9,column:36},end:{line:11,column:1}},line:9},1:{name:"isGetExpression",decl:{start:{line:12,column:9},end:{line:12,column:24}},loc:{start:{line:12,column:32},end:{line:14,column:1}},line:12},2:{name:"isZoomField",decl:{start:{line:15,column:9},end:{line:15,column:20}},loc:{start:{line:15,column:28},end:{line:19,column:1}},line:15},3:{name:"(anonymous_3)",decl:{start:{line:16,column:168},end:{line:16,column:169}},loc:{start:{line:16,column:178},end:{line:18,column:3}},line:16},4:{name:"isIdentityProperty",decl:{start:{line:20,column:9},end:{line:20,column:27}},loc:{start:{line:20,column:35},end:{line:22,column:1}},line:20},5:{name:"isDataStopProperty",decl:{start:{line:23,column:9},end:{line:23,column:27}},loc:{start:{line:23,column:35},end:{line:27,column:1}},line:23},6:{name:"(anonymous_6)",decl:{start:{line:24,column:168},end:{line:24,column:169}},loc:{start:{line:24,column:178},end:{line:26,column:3}},line:24},7:{name:"isDataField",decl:{start:{line:28,column:9},end:{line:28,column:20}},loc:{start:{line:28,column:28},end:{line:30,column:1}},line:28},8:{name:"isPrimative",decl:{start:{line:31,column:9},end:{line:31,column:20}},loc:{start:{line:31,column:28},end:{line:34,column:1}},line:31},9:{name:"isArrayOfPrimatives",decl:{start:{line:35,column:9},end:{line:35,column:28}},loc:{start:{line:35,column:37},end:{line:40,column:1}},line:35},10:{name:"getDataType",decl:{start:{line:41,column:9},end:{line:41,column:20}},loc:{start:{line:41,column:44},end:{line:55,column:1}},line:41},11:{name:"(anonymous_11)",decl:{start:{line:57,column:2},end:{line:57,column:3}},loc:{start:{line:57,column:21},end:{line:63,column:3}},line:57},12:{name:"(anonymous_12)",decl:{start:{line:64,column:2},end:{line:64,column:3}},loc:{start:{line:64,column:48},end:{line:73,column:3}},line:64},13:{name:"(anonymous_13)",decl:{start:{line:74,column:2},end:{line:74,column:3}},loc:{start:{line:74,column:34},end:{line:82,column:3}},line:74},14:{name:"(anonymous_14)",decl:{start:{line:83,column:12},end:{line:83,column:13}},loc:{start:{line:83,column:18},end:{line:99,column:3}},line:83},15:{name:"(anonymous_15)",decl:{start:{line:100,column:21},end:{line:100,column:22}},loc:{start:{line:100,column:27},end:{line:106,column:3}},line:100},16:{name:"(anonymous_16)",decl:{start:{line:107,column:15},end:{line:107,column:16}},loc:{start:{line:107,column:28},end:{line:118,column:3}},line:107},17:{name:"(anonymous_17)",decl:{start:{line:119,column:21},end:{line:119,column:22}},loc:{start:{line:119,column:27},end:{line:148,column:3}},line:119},18:{name:"(anonymous_18)",decl:{start:{line:126,column:33},end:{line:126,column:34}},loc:{start:{line:126,column:43},end:{line:128,column:11}},line:126},19:{name:"(anonymous_19)",decl:{start:{line:149,column:19},end:{line:149,column:20}},loc:{start:{line:149,column:25},end:{line:165,column:3}},line:149},20:{name:"(anonymous_20)",decl:{start:{line:166,column:12},end:{line:166,column:13}},loc:{start:{line:166,column:18},end:{line:169,column:3}},line:166},21:{name:"(anonymous_21)",decl:{start:{line:170,column:19},end:{line:170,column:20}},loc:{start:{line:170,column:25},end:{line:181,column:3}},line:170},22:{name:"(anonymous_22)",decl:{start:{line:182,column:21},end:{line:182,column:22}},loc:{start:{line:182,column:27},end:{line:220,column:3}},line:182},23:{name:"(anonymous_23)",decl:{start:{line:193,column:33},end:{line:193,column:34}},loc:{start:{line:193,column:43},end:{line:195,column:11}},line:193},24:{name:"(anonymous_24)",decl:{start:{line:221,column:18},end:{line:221,column:19}},loc:{start:{line:221,column:24},end:{line:223,column:3}},line:221},25:{name:"(anonymous_25)",decl:{start:{line:224,column:20},end:{line:224,column:21}},loc:{start:{line:224,column:26},end:{line:226,column:3}},line:224},26:{name:"(anonymous_26)",decl:{start:{line:227,column:2},end:{line:227,column:3}},loc:{start:{line:227,column:11},end:{line:297,column:3}},line:227}},branchMap:{0:{loc:{start:{line:10,column:9},end:{line:10,column:77}},type:"binary-expr",locations:[{start:{line:10,column:9},end:{line:10,column:29}},{start:{line:10,column:33},end:{line:10,column:51}},{start:{line:10,column:55},end:{line:10,column:77}}],line:10},1:{loc:{start:{line:13,column:9},end:{line:13,column:73}},type:"binary-expr",locations:[{start:{line:13,column:9},end:{line:13,column:29}},{start:{line:13,column:33},end:{line:13,column:51}},{start:{line:13,column:55},end:{line:13,column:73}}],line:13},2:{loc:{start:{line:16,column:9},end:{line:18,column:4}},type:"binary-expr",locations:[{start:{line:16,column:9},end:{line:16,column:34}},{start:{line:16,column:38},end:{line:16,column:49}},{start:{line:16,column:53},end:{line:16,column:90}},{start:{line:16,column:94},end:{line:16,column:120}},{start:{line:16,column:124},end:{line:16,column:146}},{start:{line:16,column:150},end:{line:18,column:4}}],line:16},3:{loc:{start:{line:17,column:11},end:{line:17,column:51}},type:"binary-expr",locations:[{start:{line:17,column:11},end:{line:17,column:30}},{start:{line:17,column:34},end:{line:17,column:51}}],line:17},4:{loc:{start:{line:21,column:9},end:{line:21,column:122}},type:"binary-expr",locations:[{start:{line:21,column:9},end:{line:21,column:34}},{start:{line:21,column:38},end:{line:21,column:63}},{start:{line:21,column:67},end:{line:21,column:122}}],line:21},5:{loc:{start:{line:24,column:9},end:{line:26,column:4}},type:"binary-expr",locations:[{start:{line:24,column:9},end:{line:24,column:34}},{start:{line:24,column:38},end:{line:24,column:49}},{start:{line:24,column:53},end:{line:24,column:90}},{start:{line:24,column:94},end:{line:24,column:116}},{start:{line:24,column:120},end:{line:24,column:146}},{start:{line:24,column:150},end:{line:26,column:4}}],line:24},6:{loc:{start:{line:25,column:11},end:{line:25,column:82}},type:"binary-expr",locations:[{start:{line:25,column:11},end:{line:25,column:30}},{start:{line:25,column:34},end:{line:25,column:51}},{start:{line:25,column:55},end:{line:25,column:82}}],line:25},7:{loc:{start:{line:29,column:9},end:{line:29,column:63}},type:"binary-expr",locations:[{start:{line:29,column:9},end:{line:29,column:34}},{start:{line:29,column:38},end:{line:29,column:63}}],line:29},8:{loc:{start:{line:36,column:2},end:{line:38,column:3}},type:"if",locations:[{start:{line:36,column:2},end:{line:38,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:36},9:{loc:{start:{line:41,column:28},end:{line:41,column:42}},type:"default-arg",locations:[{start:{line:41,column:40},end:{line:41,column:42}}],line:41},10:{loc:{start:{line:42,column:2},end:{line:54,column:3}},type:"if",locations:[{start:{line:42,column:2},end:{line:54,column:3}},{start:{line:44,column:9},end:{line:54,column:3}}],line:42},11:{loc:{start:{line:44,column:9},end:{line:54,column:3}},type:"if",locations:[{start:{line:44,column:9},end:{line:54,column:3}},{start:{line:46,column:9},end:{line:54,column:3}}],line:44},12:{loc:{start:{line:46,column:9},end:{line:54,column:3}},type:"if",locations:[{start:{line:46,column:9},end:{line:54,column:3}},{start:{line:48,column:9},end:{line:54,column:3}}],line:46},13:{loc:{start:{line:46,column:13},end:{line:46,column:69}},type:"binary-expr",locations:[{start:{line:46,column:13},end:{line:46,column:39}},{start:{line:46,column:43},end:{line:46,column:69}}],line:46},14:{loc:{start:{line:48,column:9},end:{line:54,column:3}},type:"if",locations:[{start:{line:48,column:9},end:{line:54,column:3}},{start:{line:50,column:9},end:{line:54,column:3}}],line:48},15:{loc:{start:{line:50,column:9},end:{line:54,column:3}},type:"if",locations:[{start:{line:50,column:9},end:{line:54,column:3}},{start:{line:52,column:9},end:{line:54,column:3}}],line:50},16:{loc:{start:{line:65,column:4},end:{line:72,column:5}},type:"if",locations:[{start:{line:65,column:4},end:{line:72,column:5}},{start:{line:67,column:11},end:{line:72,column:5}}],line:65},17:{loc:{start:{line:75,column:4},end:{line:77,column:5}},type:"if",locations:[{start:{line:75,column:4},end:{line:77,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:75},18:{loc:{start:{line:78,column:4},end:{line:80,column:5}},type:"if",locations:[{start:{line:78,column:4},end:{line:80,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:78},19:{loc:{start:{line:86,column:4},end:{line:93,column:5}},type:"if",locations:[{start:{line:86,column:4},end:{line:93,column:5}},{start:{line:91,column:11},end:{line:93,column:5}}],line:86},20:{loc:{start:{line:114,column:4},end:{line:116,column:5}},type:"if",locations:[{start:{line:114,column:4},end:{line:116,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:114},21:{loc:{start:{line:122,column:4},end:{line:146,column:5}},type:"if",locations:[{start:{line:122,column:4},end:{line:146,column:5}},{start:{line:139,column:11},end:{line:146,column:5}}],line:122},22:{loc:{start:{line:123,column:6},end:{line:138,column:7}},type:"if",locations:[{start:{line:123,column:6},end:{line:138,column:7}},{start:{line:130,column:13},end:{line:138,column:7}}],line:123},23:{loc:{start:{line:127,column:34},end:{line:127,column:86}},type:"binary-expr",locations:[{start:{line:127,column:34},end:{line:127,column:41}},{start:{line:127,column:45},end:{line:127,column:86}}],line:127},24:{loc:{start:{line:142,column:14},end:{line:142,column:64}},type:"binary-expr",locations:[{start:{line:142,column:14},end:{line:142,column:19}},{start:{line:142,column:23},end:{line:142,column:64}}],line:142},25:{loc:{start:{line:143,column:15},end:{line:143,column:65}},type:"binary-expr",locations:[{start:{line:143,column:15},end:{line:143,column:20}},{start:{line:143,column:24},end:{line:143,column:65}}],line:143},26:{loc:{start:{line:151,column:4},end:{line:164,column:5}},type:"if",locations:[{start:{line:151,column:4},end:{line:164,column:5}},{start:{line:159,column:11},end:{line:164,column:5}}],line:151},27:{loc:{start:{line:159,column:11},end:{line:164,column:5}},type:"if",locations:[{start:{line:159,column:11},end:{line:164,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:159},28:{loc:{start:{line:168,column:11},end:{line:168,column:139}},type:"binary-expr",locations:[{start:{line:168,column:11},end:{line:168,column:33}},{start:{line:168,column:37},end:{line:168,column:63}},{start:{line:168,column:67},end:{line:168,column:85}},{start:{line:168,column:89},end:{line:168,column:109}},{start:{line:168,column:113},end:{line:168,column:139}}],line:168},29:{loc:{start:{line:173,column:4},end:{line:179,column:5}},type:"if",locations:[{start:{line:173,column:4},end:{line:179,column:5}},{start:{line:175,column:11},end:{line:179,column:5}}],line:173},30:{loc:{start:{line:173,column:8},end:{line:173,column:53}},type:"binary-expr",locations:[{start:{line:173,column:8},end:{line:173,column:33}},{start:{line:173,column:37},end:{line:173,column:53}}],line:173},31:{loc:{start:{line:175,column:11},end:{line:179,column:5}},type:"if",locations:[{start:{line:175,column:11},end:{line:179,column:5}},{start:{line:177,column:11},end:{line:179,column:5}}],line:175},32:{loc:{start:{line:178,column:31},end:{line:178,column:68}},type:"binary-expr",locations:[{start:{line:178,column:31},end:{line:178,column:36}},{start:{line:178,column:40},end:{line:178,column:68}}],line:178},33:{loc:{start:{line:184,column:22},end:{line:184,column:61}},type:"cond-expr",locations:[{start:{line:184,column:55},end:{line:184,column:57}},{start:{line:184,column:60},end:{line:184,column:61}}],line:184},34:{loc:{start:{line:187,column:4},end:{line:218,column:5}},type:"if",locations:[{start:{line:187,column:4},end:{line:218,column:5}},{start:{line:208,column:11},end:{line:218,column:5}}],line:187},35:{loc:{start:{line:188,column:6},end:{line:207,column:7}},type:"if",locations:[{start:{line:188,column:6},end:{line:207,column:7}},{start:{line:197,column:13},end:{line:207,column:7}}],line:188},36:{loc:{start:{line:194,column:57},end:{line:194,column:109}},type:"binary-expr",locations:[{start:{line:194,column:57},end:{line:194,column:64}},{start:{line:194,column:68},end:{line:194,column:109}}],line:194},37:{loc:{start:{line:214,column:42},end:{line:214,column:103}},type:"binary-expr",locations:[{start:{line:214,column:42},end:{line:214,column:58}},{start:{line:214,column:62},end:{line:214,column:103}}],line:214},38:{loc:{start:{line:215,column:43},end:{line:215,column:104}},type:"binary-expr",locations:[{start:{line:215,column:43},end:{line:215,column:59}},{start:{line:215,column:63},end:{line:215,column:104}}],line:215},39:{loc:{start:{line:229,column:22},end:{line:229,column:132}},type:"cond-expr",locations:[{start:{line:229,column:74},end:{line:229,column:101}},{start:{line:229,column:104},end:{line:229,column:132}}],line:229},40:{loc:{start:{line:231,column:4},end:{line:295,column:5}},type:"if",locations:[{start:{line:231,column:4},end:{line:295,column:5}},{start:{line:248,column:11},end:{line:295,column:5}}],line:231},41:{loc:{start:{line:248,column:11},end:{line:295,column:5}},type:"if",locations:[{start:{line:248,column:11},end:{line:295,column:5}},{start:{line:264,column:11},end:{line:295,column:5}}],line:248},42:{loc:{start:{line:264,column:11},end:{line:295,column:5}},type:"if",locations:[{start:{line:264,column:11},end:{line:295,column:5}},{start:{line:280,column:11},end:{line:295,column:5}}],line:264}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0,88:0,89:0,90:0,91:0,92:0,93:0,94:0,95:0,96:0,97:0,98:0,99:0,100:0,101:0,102:0,103:0,104:0,105:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0},b:{0:[0,0,0],1:[0,0,0],2:[0,0,0,0,0,0],3:[0,0],4:[0,0,0],5:[0,0,0,0,0,0],6:[0,0,0],7:[0,0],8:[0,0],9:[0],10:[0,0],11:[0,0],12:[0,0],13:[0,0],14:[0,0],15:[0,0],16:[0,0],17:[0,0],18:[0,0],19:[0,0],20:[0,0],21:[0,0],22:[0,0],23:[0,0],24:[0,0],25:[0,0],26:[0,0],27:[0,0],28:[0,0,0,0,0],29:[0,0],30:[0,0],31:[0,0],32:[0,0],33:[0,0],34:[0,0],35:[0,0],36:[0,0],37:[0,0],38:[0,0],39:[0,0],40:[0,0],41:[0,0],42:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldFunction.tsx"],names:[],mappings:"AAkVQ;AAlVR,OAAO,WAAW;AAElB,OAAO,kBAAkB;AACzB,OAAO,kBAA4B;AACnC,OAAO,kBAAkB;AACzB,OAAO,wBAAwB;AAC/B,SAAQ,YAAY,qBAAoB;AACxC,SAAQ,2BAA0B;AAGlC,SAAS,oBAAoB,OAAY;AACvC,SAAQ,MAAM,QAAQ,KAAK,KAAK,MAAM,WAAW,KAAK,MAAM,CAAC,MAAM;AACrE;AAEA,SAAS,gBAAgB,OAAY;AACnC,SACE,MAAM,QAAQ,KAAK,KACnB,MAAM,WAAW,KACjB,MAAM,CAAC,MAAM;AAEjB;AAEA,SAAS,YAAY,OAAY;AAC/B,SACE,OAAO,UAAW,YAClB,MAAM,SACN,OAAO,MAAM,aAAc,eAC3B,MAAM,QAAQ,MAAM,KAAK,KACzB,MAAM,MAAM,SAAS,KACrB,MAAM,MAAM,MAAM,CAAC,SAAe;AAChC,WACE,MAAM,QAAQ,IAAI,KAClB,KAAK,WAAW;AAAA,EAEpB,CAAC;AAEL;AAEA,SAAS,mBAAmB,OAAY;AACtC,SACE,OAAO,UAAW,YAClB,MAAM,SAAS,cACf,OAAO,UAAU,eAAe,KAAK,OAAO,UAAU;AAE1D;AAEA,SAAS,mBAAmB,OAAY;AACtC,SACE,OAAO,UAAW,YAClB,MAAM,SACN,OAAO,MAAM,aAAc,eAC3B,MAAM,MAAM,SAAS,KACrB,MAAM,QAAQ,MAAM,KAAK,KACzB,MAAM,MAAM,MAAM,CAAC,SAAe;AAChC,WACE,MAAM,QAAQ,IAAI,KAClB,KAAK,WAAW,KAChB,OAAO,KAAK,CAAC,MAAO;AAAA,EAExB,CAAC;AAEL;AAEA,SAAS,YAAY,OAAY;AAC/B,SACE,mBAAmB,KAAK,KACxB,mBAAmB,KAAK;AAE5B;AAEA,SAAS,YAAY,OAAgD;AACnE,QAAM,QAAQ,CAAC,UAAU,WAAW,QAAQ;AAC5C,SAAO,MAAM,SAAS,OAAO,KAAM;AACrC;AAEA,SAAS,oBAAoB,QAAyD;AACpF,MAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,WAAO,OAAO,MAAM,WAAW;AAAA,EACjC;AACA,SAAO;AACT;AAEA,SAAS,YAAY,OAAY,YAAU,CAAC,GAAU;AACpD,MAAI,UAAU,QAAW;AACvB,WAAO;AAAA,EACT,WACS,YAAY,KAAK,GAAG;AAC3B,WAAO;AAAA,EACT,WACS,UAAU,SAAS,WAAW,oBAAoB,KAAK,GAAG;AACjE,WAAO;AAAA,EACT,WACS,YAAY,KAAK,GAAG;AAC3B,WAAO;AAAA,EACT,WACS,YAAY,KAAK,GAAG;AAC3B,WAAO;AAAA,EACT,OACK;AACH,WAAO;AAAA,EACT;AACF;AAoBA,qBAAqB,sBAAsB,MAAM,UAAkD;AAAA,EACjG,YAAa,OAA2B;AACtC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,UAAU,YAAY,MAAM,OAAO,MAAM,SAAS;AAAA,MAClD,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,OAAO,yBAAyB,OAA2B,OAA2B;AAEpF,QAAI,MAAM,WAAW;AACnB,aAAO,CAAC;AAAA,IACV,OACK;AACH,aAAO;AAAA,QACL,WAAW;AAAA,QACX,UAAU,YAAY,MAAM,OAAO,MAAM,SAAS;AAAA,MACpD;AAAA,IACF;AAAA,EACF;AAAA,EAEA,qBAAqB,WAAgB;AACnC,QAAI,UAAU,WAAW,cAAc;AACrC,aAAO;AAAA,IACT;AACA,QAAI,UAAU,SAAS,UAAU;AAC/B,aAAO;AAAA,IACT;AACA,WAAO;AAAA,EACT;AAAA,EAEA,UAAU,MAAM;AACd,UAAM,QAAQ,KAAK,MAAM,MAAM,MAAM,MAAM,CAAC;AAC5C,UAAM,WAAW,MAAM,MAAM,SAAS,CAAC;AACvC,QAAI,OAAO,SAAS,CAAC,MAAM,UAAU;AACnC,YAAM,KAAK;AAAA,QACT,EAAC,MAAM,SAAS,CAAC,EAAE,OAAO,GAAG,OAAO,SAAS,CAAC,EAAE,MAAK;AAAA,QACrD,SAAS,CAAC;AAAA,MACZ,CAAC;AAAA,IACH,OACK;AACH,YAAM,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC;AAAA,IAC3C;AAEA,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd;AAAA,IACF;AAEA,SAAK,MAAM,SAAS,KAAK,MAAM,WAAW,YAAY;AAAA,EACxD;AAAA,EAEA,mBAAmB,MAAM;AACvB,UAAM,EAAC,WAAW,UAAS,IAAI,KAAK;AACpC,SAAK,MAAM,SAAS,WAAW,UAAU,OAAO;AAChD,SAAK,SAAS;AAAA,MACZ,UAAU;AAAA,IACZ,CAAC;AAAA,EACH;AAAA,EAEA,aAAa,CAAC,YAAoB;AAChC,UAAM,QAAQ,KAAK,MAAM,MAAM,MAAM,MAAM,CAAC;AAC5C,UAAM,OAAO,SAAS,CAAC;AAEvB,QAAI,eAAe;AAAA,MACjB,GAAG,KAAK,MAAM;AAAA,MACd;AAAA,IACF;AAEA,QAAG,MAAM,WAAW,GAAG;AACrB,qBAAe,MAAM,CAAC,EAAE,CAAC;AAAA,IAC3B;AAEA,SAAK,MAAM,SAAS,KAAK,MAAM,WAAW,YAAY;AAAA,EACxD;AAAA,EAEA,mBAAmB,MAAM;AACvB,UAAM,EAAC,MAAK,IAAI,KAAK;AAErB,QAAI;AACJ,QAAI,OAAO,UAAW,UAAU;AAC9B,UAAI,MAAM,OAAO;AACf,mBAAW;AAAA,UACT,MAAM,MAAM;AAAA,UACZ,OAAO,MAAM,MAAM,IAAI,CAAC,SAAe;AACrC,mBAAO,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,KAAK,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UAC5E,CAAC;AAAA,QACH;AAAA,MACF,OACK;AACH,mBAAW;AAAA,UACT,MAAM,MAAM;AAAA,UACZ,OAAO;AAAA,YACL,CAAC,GAAG,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,YAC7C,CAAC,IAAI,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UAChD;AAAA,QACF;AAAA,MACF;AAAA,IACF,OACK;AACH,iBAAW;AAAA,QACT,OAAO;AAAA,UACL,CAAC,GAAG,SAAS,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UACtD,CAAC,IAAI,SAAS,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,QACzD;AAAA,MACF;AAAA,IACF;AAEA,SAAK,MAAM,SAAS,KAAK,MAAM,WAAW,QAAQ;AAAA,EACpD;AAAA,EAEA,iBAAiB,MAAM;AACrB,UAAM,EAAC,OAAO,UAAS,IAAI,KAAK;AAEhC,QAAI,gBAAgB,KAAK,GAAG;AAC1B,WAAK,MAAM,SAAS,WAAW;AAAA,QAC7B,QAAQ;AAAA,QACR,YAAY,MAAM,CAAC;AAAA,MACrB,CAAC;AACD,WAAK,SAAS;AAAA,QACZ,UAAU;AAAA,MACZ,CAAC;AAAA,IACH,WACS,oBAAoB,KAAK,GAAG;AACnC,WAAK,MAAM,SAAS,WAAW,MAAM,CAAC,CAAC;AACvC,WAAK,SAAS;AAAA,QACZ,UAAU;AAAA,MACZ,CAAC;AAAA,IACH;AAAA,EACF;AAAA,EAEA,UAAU,MAAM;AACd,UAAM,EAAC,OAAO,UAAS,IAAI,KAAK;AAChC,WACE,gBAAgB,KAAK,KACrB,oBAAoB,KAAK,KACzB,YAAY,KAAK,KAChB,MAAM,QAAQ,KAAK,KAAK,UAAU,SAAS;AAAA,EAEhD;AAAA,EAEA,iBAAiB,MAAM;AACrB,UAAM,EAAC,OAAO,UAAS,IAAI,KAAK;AAChC,QAAI;AAEJ,QAAI,OAAO,UAAW,YAAY,WAAW,OAAO;AAClD,mBAAa,cAAc,gBAAgB,OAAO,SAAS;AAAA,IAC7D,WACS,mBAAmB,KAAK,GAAG;AAClC,mBAAa,CAAC,OAAO,MAAM,QAAQ;AAAA,IACrC,OACK;AACH,mBAAa,CAAC,WAAW,SAAS,KAAK,MAAM,UAAU,OAAO;AAAA,IAChE;AACA,SAAK,MAAM,SAAS,KAAK,MAAM,WAAW,UAAU;AAAA,EACtD;AAAA,EAEA,mBAAmB,MAAM;AACvB,UAAM,eAAe,KAAK,qBAAqB,KAAK,MAAM,SAAS;AACnE,UAAM,YAAY,iBAAiB,gBAAgB,KAAK;AACxD,UAAM,EAAC,MAAK,IAAI,KAAK;AACrB,QAAI;AAEJ,QAAI,OAAO,UAAW,UAAU;AAC9B,UAAI,MAAM,OAAO;AACf,mBAAW;AAAA,UACT,UAAU;AAAA,UACV,MAAM;AAAA,UACN,MAAM,MAAM;AAAA,UACZ,OAAO,MAAM,MAAM,IAAI,CAAC,SAAe;AACrC,mBAAO,CAAC,EAAC,MAAM,KAAK,CAAC,GAAG,OAAO,UAAS,GAAG,KAAK,CAAC,KAAK,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UACjG,CAAC;AAAA,QACH;AAAA,MACF,OACK;AACH,mBAAW;AAAA,UACT,UAAU;AAAA,UACV,MAAM;AAAA,UACN,MAAM,MAAM;AAAA,UACZ,OAAO;AAAA,YACL,CAAC,EAAC,MAAM,GAAG,OAAO,UAAS,GAAG,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,YACvE,CAAC,EAAC,MAAM,IAAI,OAAO,UAAS,GAAG,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UAC1E;AAAA,QACF;AAAA,MACF;AAAA,IACF,OACK;AACH,iBAAW;AAAA,QACT,UAAU;AAAA,QACV,MAAM;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,OAAO;AAAA,UACL,CAAC,EAAC,MAAM,GAAG,OAAO,UAAS,GAAG,KAAK,MAAM,SAAS,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,UAC3F,CAAC,EAAC,MAAM,IAAI,OAAO,UAAS,GAAG,KAAK,MAAM,SAAS,oBAAoB,KAAK,MAAM,SAAS,CAAC;AAAA,QAC9F;AAAA,MACF;AAAA,IACF;AAEA,SAAK,MAAM,SAAS,KAAK,MAAM,WAAW,QAAQ;AAAA,EACpD;AAAA,EAEA,gBAAgB,MAAM;AACpB,SAAK,SAAS,EAAC,WAAW,KAAI,CAAC;AAAA,EACjC;AAAA,EAEA,kBAAkB,MAAM;AACtB,SAAK,SAAS,EAAC,WAAW,MAAK,CAAC;AAAA,EAClC;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,SAAQ,IAAI,KAAK;AACxB,UAAM,YAAY,KAAK,MAAM,UAAU,YAAY,KAAK,MAAM,QAAQ,8BAA8B;AACpG,QAAI;AAEJ,QAAI,aAAa,cAAc;AAC7B,kBACE;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ,KAAK,MAAM;AAAA,UACnB,UAAU,KAAK,MAAM,SAAS,KAAK,MAAM,KAAK,MAAM,SAAS;AAAA,UAC7D,SAAS,KAAK;AAAA,UACd,QAAQ,KAAK;AAAA,UACb,UAAU,KAAK;AAAA,UACf,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,OAAO,KAAK,MAAM;AAAA,UAClB,SAAS,KAAK;AAAA,UACd,QAAQ,KAAK;AAAA;AAAA,MACf;AAAA,IAEJ,WACS,aAAa,iBAAiB;AACrC,kBACE;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ,KAAK,MAAM;AAAA,UACnB,UAAU,KAAK,MAAM,SAAS,KAAK,IAAI;AAAA,UACvC,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,OAAO,KAAK,MAAM;AAAA,UAClB,cAAc,KAAK;AAAA,UACnB,WAAW,KAAK;AAAA,UAChB,wBAAwB,KAAK;AAAA,UAC7B,mBAAmB,KAAK;AAAA;AAAA,MAC1B;AAAA,IAEJ,WACS,aAAa,iBAAiB;AAErC,kBACE;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ,KAAK,MAAM;AAAA,UACnB,UAAU,KAAK,MAAM,SAAS,KAAK,IAAI;AAAA,UACvC,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,OAAO,KAAK,MAAM;AAAA,UAClB,cAAc,KAAK;AAAA,UACnB,WAAW,KAAK;AAAA,UAChB,wBAAwB,KAAK;AAAA,UAC7B,mBAAmB,KAAK;AAAA;AAAA,MAC1B;AAAA,IAEJ,OACK;AACH,kBACE;AAAA,QAAC;AAAA;AAAA,UACC,QAAQ,KAAK,MAAM;AAAA,UACnB,UAAU,KAAK,MAAM,SAAS,KAAK,IAAI;AAAA,UACvC,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,WAAW,KAAK,MAAM;AAAA,UACtB,OAAO,KAAK,MAAM;AAAA,UAClB,aAAa,KAAK;AAAA,UAClB,aAAa,KAAK;AAAA,UAClB,mBAAmB,KAAK;AAAA;AAAA,MAC1B;AAAA,IAEJ;AACA,WAAO,oBAAC,SAAI,WAAW,WAAW,eAAa,0BAAwB,KAAK,MAAM,WAC/E,qBACH;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"435f90d980cace940b69ce8c0aa30d2fab175109"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ut=function(){return s},s}ut();function dP(e){return ut().f[0]++,ut().s[0]++,ut().b[0][0]++,Array.isArray(e)&&(ut().b[0][1]++,e.length===2)&&(ut().b[0][2]++,e[0]==="literal")}function hP(e){return ut().f[1]++,ut().s[1]++,ut().b[1][0]++,Array.isArray(e)&&(ut().b[1][1]++,e.length===2)&&(ut().b[1][2]++,e[0]==="get")}function h6e(e){return ut().f[2]++,ut().s[2]++,ut().b[2][0]++,typeof e=="object"&&(ut().b[2][1]++,e.stops)&&(ut().b[2][2]++,typeof e.property>"u")&&(ut().b[2][3]++,Array.isArray(e.stops))&&(ut().b[2][4]++,e.stops.length>1)&&(ut().b[2][5]++,e.stops.every(n=>(ut().f[3]++,ut().s[3]++,ut().b[3][0]++,Array.isArray(n)&&(ut().b[3][1]++,n.length===2))))}function HN(e){return ut().f[4]++,ut().s[4]++,ut().b[4][0]++,typeof e=="object"&&(ut().b[4][1]++,e.type==="identity")&&(ut().b[4][2]++,Object.prototype.hasOwnProperty.call(e,"property"))}function f6e(e){return ut().f[5]++,ut().s[5]++,ut().b[5][0]++,typeof e=="object"&&(ut().b[5][1]++,e.stops)&&(ut().b[5][2]++,typeof e.property<"u")&&(ut().b[5][3]++,e.stops.length>1)&&(ut().b[5][4]++,Array.isArray(e.stops))&&(ut().b[5][5]++,e.stops.every(n=>(ut().f[6]++,ut().s[6]++,ut().b[6][0]++,Array.isArray(n)&&(ut().b[6][1]++,n.length===2)&&(ut().b[6][2]++,typeof n[0]=="object"))))}function p6e(e){return ut().f[7]++,ut().s[7]++,ut().b[7][0]++,HN(e)||(ut().b[7][1]++,f6e(e))}function q8(e){ut().f[8]++;const n=(ut().s[8]++,["string","boolean","number"]);return ut().s[9]++,n.includes(typeof e)}function m6e(e){return ut().f[9]++,ut().s[10]++,Array.isArray(e)?(ut().b[8][0]++,ut().s[11]++,e.every(q8)):(ut().b[8][1]++,ut().s[12]++,!1)}function fP(e,n=(ut().b[9][0]++,{})){return ut().f[10]++,ut().s[13]++,e===void 0?(ut().b[10][0]++,ut().s[14]++,"value"):(ut().b[10][1]++,ut().s[15]++,q8(e)?(ut().b[11][0]++,ut().s[16]++,"value"):(ut().b[11][1]++,ut().s[17]++,ut().b[13][0]++,n.type==="array"&&(ut().b[13][1]++,m6e(e))?(ut().b[12][0]++,ut().s[18]++,"value"):(ut().b[12][1]++,ut().s[19]++,h6e(e)?(ut().b[14][0]++,ut().s[20]++,"zoom_function"):(ut().b[14][1]++,ut().s[21]++,p6e(e)?(ut().b[15][0]++,ut().s[22]++,"data_function"):(ut().b[15][1]++,ut().s[23]++,"expression")))))}class g6e extends bn.Component{constructor(t){ut().f[11]++,ut().s[24]++;super(t);nn(this,"addStop",(ut().s[34]++,()=>{ut().f[14]++;const t=(ut().s[35]++,this.props.value.stops.slice(0)),r=(ut().s[36]++,t[t.length-1]);ut().s[37]++,typeof r[0]=="object"?(ut().b[19][0]++,ut().s[38]++,t.push([{zoom:r[0].zoom+1,value:r[0].value},r[1]])):(ut().b[19][1]++,ut().s[39]++,t.push([r[0]+1,r[1]]));const i=(ut().s[40]++,{...this.props.value,stops:t});ut().s[41]++,this.props.onChange(this.props.fieldName,i)}));nn(this,"deleteExpression",(ut().s[42]++,()=>{ut().f[15]++;const{fieldSpec:t,fieldName:r}=(ut().s[43]++,this.props);ut().s[44]++,this.props.onChange(r,t.default),ut().s[45]++,this.setState({dataType:"value"})}));nn(this,"deleteStop",(ut().s[46]++,t=>{ut().f[16]++;const r=(ut().s[47]++,this.props.value.stops.slice(0));ut().s[48]++,r.splice(t,1);let i=(ut().s[49]++,{...this.props.value,stops:r});ut().s[50]++,r.length===1?(ut().b[20][0]++,ut().s[51]++,i=r[0][1]):ut().b[20][1]++,ut().s[52]++,this.props.onChange(this.props.fieldName,i)}));nn(this,"makeZoomFunction",(ut().s[53]++,()=>{ut().f[17]++;const{value:t}=(ut().s[54]++,this.props);let r;ut().s[55]++,typeof t=="object"?(ut().b[21][0]++,ut().s[56]++,t.stops?(ut().b[22][0]++,ut().s[57]++,r={base:t.base,stops:t.stops.map(i=>(ut().f[18]++,ut().s[58]++,[i[0].zoom,(ut().b[23][0]++,i[1]||(ut().b[23][1]++,fd(this.props.fieldSpec)))]))}):(ut().b[22][1]++,ut().s[59]++,r={base:t.base,stops:[[6,fd(this.props.fieldSpec)],[10,fd(this.props.fieldSpec)]]})):(ut().b[21][1]++,ut().s[60]++,r={stops:[[6,(ut().b[24][0]++,t||(ut().b[24][1]++,fd(this.props.fieldSpec)))],[10,(ut().b[25][0]++,t||(ut().b[25][1]++,fd(this.props.fieldSpec)))]]}),ut().s[61]++,this.props.onChange(this.props.fieldName,r)}));nn(this,"undoExpression",(ut().s[62]++,()=>{ut().f[19]++;const{value:t,fieldName:r}=(ut().s[63]++,this.props);ut().s[64]++,hP(t)?(ut().b[26][0]++,ut().s[65]++,this.props.onChange(r,{type:"identity",property:t[1]}),ut().s[66]++,this.setState({dataType:"value"})):(ut().b[26][1]++,ut().s[67]++,dP(t)?(ut().b[27][0]++,ut().s[68]++,this.props.onChange(r,t[1]),ut().s[69]++,this.setState({dataType:"value"})):ut().b[27][1]++)}));nn(this,"canUndo",(ut().s[70]++,()=>{ut().f[20]++;const{value:t,fieldSpec:r}=(ut().s[71]++,this.props);return ut().s[72]++,ut().b[28][0]++,hP(t)||(ut().b[28][1]++,dP(t))||(ut().b[28][2]++,q8(t))||(ut().b[28][3]++,Array.isArray(t)&&(ut().b[28][4]++,r.type==="array"))}));nn(this,"makeExpression",(ut().s[73]++,()=>{ut().f[21]++;const{value:t,fieldSpec:r}=(ut().s[74]++,this.props);let i;ut().s[75]++,ut().b[30][0]++,typeof t=="object"&&(ut().b[30][1]++,"stops"in t)?(ut().b[29][0]++,ut().s[76]++,i=BX.convertFunction(t,r)):(ut().b[29][1]++,ut().s[77]++,HN(t)?(ut().b[31][0]++,ut().s[78]++,i=["get",t.property]):(ut().b[31][1]++,ut().s[79]++,i=["literal",(ut().b[32][0]++,t||(ut().b[32][1]++,this.props.fieldSpec.default))])),ut().s[80]++,this.props.onChange(this.props.fieldName,i)}));nn(this,"makeDataFunction",(ut().s[81]++,()=>{ut().f[22]++;const t=(ut().s[82]++,this.getFieldFunctionType(this.props.fieldSpec)),r=(ut().s[83]++,t==="categorical"?(ut().b[33][0]++,""):(ut().b[33][1]++,0)),{value:i}=(ut().s[84]++,this.props);let o;ut().s[85]++,typeof i=="object"?(ut().b[34][0]++,ut().s[86]++,i.stops?(ut().b[35][0]++,ut().s[87]++,o={property:"",type:t,base:i.base,stops:i.stops.map(s=>(ut().f[23]++,ut().s[88]++,[{zoom:s[0],value:r},(ut().b[36][0]++,s[1]||(ut().b[36][1]++,fd(this.props.fieldSpec)))]))}):(ut().b[35][1]++,ut().s[89]++,o={property:"",type:t,base:i.base,stops:[[{zoom:6,value:r},fd(this.props.fieldSpec)],[{zoom:10,value:r},fd(this.props.fieldSpec)]]})):(ut().b[34][1]++,ut().s[90]++,o={property:"",type:t,base:i.base,stops:[[{zoom:6,value:r},(ut().b[37][0]++,this.props.value||(ut().b[37][1]++,fd(this.props.fieldSpec)))],[{zoom:10,value:r},(ut().b[38][0]++,this.props.value||(ut().b[38][1]++,fd(this.props.fieldSpec)))]]}),ut().s[91]++,this.props.onChange(this.props.fieldName,o)}));nn(this,"onMarkEditing",(ut().s[92]++,()=>{ut().f[24]++,ut().s[93]++,this.setState({isEditing:!0})}));nn(this,"onUnmarkEditing",(ut().s[94]++,()=>{ut().f[25]++,ut().s[95]++,this.setState({isEditing:!1})}));ut().s[25]++,this.state={dataType:fP(t.value,t.fieldSpec),isEditing:!1}}static getDerivedStateFromProps(t,r){return ut().f[12]++,ut().s[26]++,r.isEditing?(ut().b[16][0]++,ut().s[27]++,{}):(ut().b[16][1]++,ut().s[28]++,{isEditing:!1,dataType:fP(t.value,t.fieldSpec)})}getFieldFunctionType(t){return ut().f[13]++,ut().s[29]++,t.expression.interpolated?(ut().b[17][0]++,ut().s[30]++,"exponential"):(ut().b[17][1]++,ut().s[31]++,t.type==="number"?(ut().b[18][0]++,ut().s[32]++,"interval"):(ut().b[18][1]++,ut().s[33]++,"categorical"))}render(){ut().f[26]++;const{dataType:t}=(ut().s[96]++,this.state),r=(ut().s[97]++,this.props.fieldSpec.default===this.props.value?(ut().b[39][0]++,"maputnik-default-property"):(ut().b[39][1]++,"maputnik-modified-property"));let i;return ut().s[98]++,t==="expression"?(ut().b[40][0]++,ut().s[99]++,i=N.jsx(m8,{errors:this.props.errors,onChange:this.props.onChange.bind(this,this.props.fieldName),canUndo:this.canUndo,onUndo:this.undoExpression,onDelete:this.deleteExpression,fieldType:this.props.fieldType,fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:this.props.value,onFocus:this.onMarkEditing,onBlur:this.onUnmarkEditing})):(ut().b[40][1]++,ut().s[100]++,t==="zoom_function"?(ut().b[41][0]++,ut().s[101]++,i=N.jsx(VN,{errors:this.props.errors,onChange:this.props.onChange.bind(this),fieldType:this.props.fieldType,fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:this.props.value,onDeleteStop:this.deleteStop,onAddStop:this.addStop,onChangeToDataFunction:this.makeDataFunction,onExpressionClick:this.makeExpression})):(ut().b[41][1]++,ut().s[102]++,t==="data_function"?(ut().b[42][0]++,ut().s[103]++,i=N.jsx(d6e,{errors:this.props.errors,onChange:this.props.onChange.bind(this),fieldType:this.props.fieldType,fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:this.props.value,onDeleteStop:this.deleteStop,onAddStop:this.addStop,onChangeToZoomFunction:this.makeZoomFunction,onExpressionClick:this.makeExpression})):(ut().b[42][1]++,ut().s[104]++,i=N.jsx($N,{errors:this.props.errors,onChange:this.props.onChange.bind(this),fieldType:this.props.fieldType,fieldName:this.props.fieldName,fieldSpec:this.props.fieldSpec,value:this.props.value,onZoomClick:this.makeZoomFunction,onDataClick:this.makeDataFunction,onExpressionClick:this.makeExpression})))),ut().s[105]++,N.jsx("div",{className:r,"data-wd-key":"spec-field-container:"+this.props.fieldName,children:i})}}function yi(){var e="/home/runner/work/maputnik/maputnik/src/components/PropertyGroup.tsx",n="411d3be261f729b266d6cb26884b34616b925c83",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/PropertyGroup.tsx",statementMap:{0:{start:{line:4,column:23},end:{line:4,column:117}},1:{start:{line:6,column:20},end:{line:6,column:60}},2:{start:{line:7,column:16},end:{line:7,column:49}},3:{start:{line:8,column:20},end:{line:8,column:36}},4:{start:{line:9,column:2},end:{line:14,column:3}},5:{start:{line:10,column:4},end:{line:13,column:6}},6:{start:{line:15,column:2},end:{line:20,column:3}},7:{start:{line:16,column:4},end:{line:19,column:6}},8:{start:{line:21,column:2},end:{line:21,column:19}},9:{start:{line:24,column:16},end:{line:24,column:48}},10:{start:{line:25,column:2},end:{line:29,column:3}},11:{start:{line:26,column:4},end:{line:26,column:19}},12:{start:{line:28,column:4},end:{line:28,column:20}},13:{start:{line:32,column:21},end:{line:35,column:3}},14:{start:{line:33,column:18},end:{line:33,column:80}},15:{start:{line:34,column:4},end:{line:34,column:51}},16:{start:{line:37,column:23},end:{line:37,column:33}},17:{start:{line:38,column:19},end:{line:56,column:6}},18:{start:{line:39,column:24},end:{line:39,column:87}},19:{start:{line:40,column:20},end:{line:40,column:48}},20:{start:{line:41,column:21},end:{line:41,column:50}},21:{start:{line:42,column:25},end:{line:42,column:82}},22:{start:{line:43,column:24},end:{line:43,column:63}},23:{start:{line:44,column:6},end:{line:55,column:8}},24:{start:{line:57,column:4},end:{line:57,column:98}}},fnMap:{0:{name:"getFieldSpec",decl:{start:{line:5,column:9},end:{line:5,column:21}},loc:{start:{line:5,column:50},end:{line:22,column:1}},line:5},1:{name:"getGroupName",decl:{start:{line:23,column:9},end:{line:23,column:21}},loc:{start:{line:23,column:50},end:{line:30,column:1}},line:23},2:{name:"(anonymous_2)",decl:{start:{line:32,column:21},end:{line:32,column:22}},loc:{start:{line:32,column:45},end:{line:35,column:3}},line:32},3:{name:"(anonymous_3)",decl:{start:{line:36,column:2},end:{line:36,column:3}},loc:{start:{line:36,column:11},end:{line:58,column:3}},line:36},4:{name:"(anonymous_4)",decl:{start:{line:38,column:46},end:{line:38,column:47}},loc:{start:{line:38,column:61},end:{line:56,column:5}},line:38}},branchMap:{0:{loc:{start:{line:9,column:2},end:{line:14,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:14,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:9},1:{loc:{start:{line:15,column:2},end:{line:20,column:3}},type:"if",locations:[{start:{line:15,column:2},end:{line:20,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},2:{loc:{start:{line:24,column:16},end:{line:24,column:48}},type:"binary-expr",locations:[{start:{line:24,column:16},end:{line:24,column:42}},{start:{line:24,column:46},end:{line:24,column:48}}],line:24},3:{loc:{start:{line:25,column:2},end:{line:29,column:3}},type:"if",locations:[{start:{line:25,column:2},end:{line:29,column:3}},{start:{line:27,column:9},end:{line:29,column:3}}],line:25},4:{loc:{start:{line:40,column:20},end:{line:40,column:48}},type:"binary-expr",locations:[{start:{line:40,column:20},end:{line:40,column:42}},{start:{line:40,column:46},end:{line:40,column:48}}],line:40},5:{loc:{start:{line:41,column:21},end:{line:41,column:50}},type:"binary-expr",locations:[{start:{line:41,column:21},end:{line:41,column:44}},{start:{line:41,column:48},end:{line:41,column:50}}],line:41},6:{loc:{start:{line:42,column:25},end:{line:42,column:82}},type:"cond-expr",locations:[{start:{line:42,column:46},end:{line:42,column:62}},{start:{line:42,column:65},end:{line:42,column:82}}],line:42},7:{loc:{start:{line:43,column:24},end:{line:43,column:63}},type:"cond-expr",locations:[{start:{line:43,column:45},end:{line:43,column:52}},{start:{line:43,column:55},end:{line:43,column:63}}],line:43}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/PropertyGroup.tsx"],names:[],mappings:"AA+Da;AA/Db,OAAO,WAAW;AAElB,OAAO,mBAAmB;AAG1B,MAAM,iBAAiB,CAAC,sBAAsB,gBAAgB,gBAAgB,0BAA0B,YAAY;AAIpH,SAAS,aAAa,MAAW,WAAuC,WAAmB;AACzF,QAAM,YAAY,aAAa,MAAM,WAAW,SAAS;AACzD,QAAM,QAAQ,KAAK,YAAY,MAAM,SAAS;AAC9C,QAAM,YAAY,MAAM,SAAS;AACjC,MAAG,eAAe,QAAQ,SAAS,KAAK,GAAG;AACzC,WAAO;AAAA,MACL,GAAG;AAAA,MACH,QAAQ,KAAK,MAAM,OAAO;AAAA,IAC5B;AAAA,EACF;AACA,MAAG,cAAc,aAAa;AAC5B,WAAO;AAAA,MACL,GAAG;AAAA,MACH,QAAQ,KAAK,MAAM,OAAO;AAAA,IAC5B;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,aAAa,MAAW,WAAuC,WAAmB;AACzF,QAAM,QAAS,KAAK,WAAW,SAAS,KAAK,CAAC;AAC9C,MAAI,aAAa,OAAO;AACtB,WAAO;AAAA,EACT,OAAO;AACL,WAAO;AAAA,EACT;AACF;AAUA,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,mBAAmB,CAAC,UAAkB,aAAkB;AACtD,UAAM,QAAQ,aAAa,KAAK,MAAM,MAAM,KAAK,MAAM,MAAM,MAAM,QAAQ;AAC3E,SAAK,MAAM,SAAS,OAAO,UAAU,QAAQ;AAAA,EAC/C;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,OAAM,IAAI,KAAK;AACtB,UAAM,SAAS,KAAK,MAAM,YAAY,IAAI,eAAa;AACrD,YAAM,YAAY,aAAa,KAAK,MAAM,MAAM,KAAK,MAAM,MAAM,MAAM,SAAS;AAEhF,YAAM,QAAQ,KAAK,MAAM,MAAM,SAAS,CAAC;AACzC,YAAM,SAAS,KAAK,MAAM,MAAM,UAAU,CAAC;AAC3C,YAAM,aAAa,aAAa,QAC5B,MAAM,SAA+B,IACrC,OAAO,SAAgC;AAC3C,YAAM,YAAY,aAAa,QAAQ,UAAU;AAEjD,aAAO;AAAA,QAAC;AAAA;AAAA,UACN;AAAA,UACA,UAAU,KAAK;AAAA,UAEf;AAAA,UACA,OAAO;AAAA,UACP;AAAA,UACA;AAAA;AAAA,QAJK;AAAA,MAKP;AAAA,IACF,CAAC;AAED,WAAO,oBAAC,SAAI,WAAU,2BACnB,kBACH;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"411d3be261f729b266d6cb26884b34616b925c83"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return yi=function(){return s},s}yi();const y6e=(yi().s[0]++,["background-pattern","fill-pattern","line-pattern","fill-extrusion-pattern","icon-image"]);function v6e(e,n,t){yi().f[0]++;const r=(yi().s[1]++,ZN(e,n,t)),i=(yi().s[2]++,e[r+"_"+n]),o=(yi().s[3]++,i[t]);return yi().s[4]++,y6e.indexOf(t)>=0?(yi().b[0][0]++,yi().s[5]++,{...o,values:e.$root.sprite.values}):(yi().b[0][1]++,yi().s[6]++,t==="text-font"?(yi().b[1][0]++,yi().s[7]++,{...o,values:e.$root.glyphs.values}):(yi().b[1][1]++,yi().s[8]++,o))}function ZN(e,n,t){yi().f[1]++;const r=(yi().s[9]++,yi().b[2][0]++,e["paint_"+n]||(yi().b[2][1]++,{}));return yi().s[10]++,t in r?(yi().b[3][0]++,yi().s[11]++,"paint"):(yi().b[3][1]++,yi().s[12]++,"layout")}class C6e extends bn.Component{constructor(){super(...arguments);nn(this,"onPropertyChange",(yi().s[13]++,(t,r)=>{yi().f[2]++;const i=(yi().s[14]++,ZN(this.props.spec,this.props.layer.type,t));yi().s[15]++,this.props.onChange(i,t,r)}))}render(){yi().f[3]++;const{errors:t}=(yi().s[16]++,this.props),r=(yi().s[17]++,this.props.groupFields.map(i=>{yi().f[4]++;const o=(yi().s[18]++,v6e(this.props.spec,this.props.layer.type,i)),s=(yi().s[19]++,yi().b[4][0]++,this.props.layer.paint||(yi().b[4][1]++,{})),a=(yi().s[20]++,yi().b[5][0]++,this.props.layer.layout||(yi().b[5][1]++,{})),f=(yi().s[21]++,i in s?(yi().b[6][0]++,s[i]):(yi().b[6][1]++,a[i])),g=(yi().s[22]++,i in s?(yi().b[7][0]++,"paint"):(yi().b[7][1]++,"layout"));return yi().s[23]++,N.jsx(g6e,{errors:t,onChange:this.onPropertyChange,fieldName:i,value:f,fieldType:g,fieldSpec:o},i)}));return yi().s[24]++,N.jsx("div",{className:"maputnik-property-group",children:r})}}var _6e=function(e){var n={};function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=e,t.c=n,t.d=function(r,i,o){t.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},t.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,i){if(1&i&&(r=t(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)t.d(o,s,(function(a){return r[a]}).bind(null,s));return o},t.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(i,"a",i),i},t.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},t.p="",t(t.s=2)}([function(e,n){e.exports=ph},function(e,n){e.exports=kr},function(e,n,t){t.r(n);var r=t(1),i=t(0),o=function(){return(o=Object.assign||function(R){for(var H,W=1,$=arguments.length;W<$;W++)for(var q in H=arguments[W])Object.prototype.hasOwnProperty.call(H,q)&&(R[q]=H[q]);return R}).apply(this,arguments)},s=function(R,H){var W={};for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&H.indexOf($)<0&&(W[$]=R[$]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function"){var q=0;for($=Object.getOwnPropertySymbols(R);q<$.length;q++)H.indexOf($[q])<0&&Object.prototype.propertyIsEnumerable.call(R,$[q])&&(W[$[q]]=R[$[q]])}return W},a=0,f=r.forwardRef(function(R,H){var W=R.title,$=W===void 0?null:W,q=R.description,oe=q===void 0?null:q,ne=R.size,ce=ne===void 0?null:ne,ae=R.color,ue=ae===void 0?"currentColor":ae,ye=R.horizontal,Re=ye===void 0?null:ye,Ne=R.vertical,rt=Ne===void 0?null:Ne,ct=R.rotate,Fe=ct===void 0?null:ct,He=R.spin,Ce=He===void 0?null:He,jt=R.style,Ft=jt===void 0?{}:jt,Jt=R.children,Nt=s(R,["title","description","size","color","horizontal","vertical","rotate","spin","style","children"]);a++;var Ve,nt=Ce!==null&&Ce,Je=r.Children.map(Jt,function(kt){var Dt=kt;nt!==!0&&(nt=(Ce===null?Dt.props.spin:Ce)===!0);var Se=Dt.props.size;typeof ce=="number"&&typeof Dt.props.size=="number"&&(Se=Dt.props.size/ce);var de={size:Se,color:ue===null?Dt.props.color:ue,horizontal:Re===null?Dt.props.horizontal:Re,vertical:rt===null?Dt.props.vertical:rt,rotate:Fe===null?Dt.props.rotate:Fe,spin:Ce===null?Dt.props.spin:Ce,inStack:!0};return r.cloneElement(Dt,de)});ce!==null&&(Ft.width=typeof ce=="string"?ce:1.5*ce+"rem");var Vt,pt="stack_labelledby_"+a,dt="stack_describedby_"+a;if($)Ve=oe?pt+" "+dt:pt;else if(Vt="presentation",oe)throw new Error("title attribute required when description is set");return r.createElement("svg",o({ref:H,viewBox:"0 0 24 24",style:Ft,role:Vt,"aria-labelledby":Ve},Nt),$&&r.createElement("title",{id:pt},$),oe&&r.createElement("desc",{id:dt},oe),nt&&r.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }","@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"),Je)});f.displayName="Stack",f.propTypes={size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),children:i.oneOfType([i.arrayOf(i.node),i.node]).isRequired,className:i.string,style:i.object},f.defaultProps={size:null,color:null,horizontal:null,vertical:null,rotate:null,spin:null};var g=f;t.d(n,"Icon",function(){return P}),t.d(n,"Stack",function(){return g});var x=function(){return(x=Object.assign||function(R){for(var H,W=1,$=arguments.length;W<$;W++)for(var q in H=arguments[W])Object.prototype.hasOwnProperty.call(H,q)&&(R[q]=H[q]);return R}).apply(this,arguments)},k=function(R,H){var W={};for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&H.indexOf($)<0&&(W[$]=R[$]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function"){var q=0;for($=Object.getOwnPropertySymbols(R);q<$.length;q++)H.indexOf($[q])<0&&Object.prototype.propertyIsEnumerable.call(R,$[q])&&(W[$[q]]=R[$[q]])}return W},B=0,P=r.forwardRef(function(R,H){var W=R.path,$=R.id,q=$===void 0?++B:$,oe=R.title,ne=oe===void 0?null:oe,ce=R.description,ae=ce===void 0?null:ce,ue=R.size,ye=ue===void 0?null:ue,Re=R.color,Ne=Re===void 0?"currentColor":Re,rt=R.horizontal,ct=rt!==void 0&&rt,Fe=R.vertical,He=Fe!==void 0&&Fe,Ce=R.rotate,jt=Ce===void 0?0:Ce,Ft=R.spin,Jt=Ft!==void 0&&Ft,Nt=R.style,Ve=Nt===void 0?{}:Nt,nt=R.inStack,Je=nt!==void 0&&nt,Vt=k(R,["path","id","title","description","size","color","horizontal","vertical","rotate","spin","style","inStack"]),pt={},dt=[];ye!==null&&(Je?dt.push("scale("+ye+")"):(Ve.width=typeof ye=="string"?ye:1.5*ye+"rem",Ve.height=Ve.width)),ct&&dt.push("scaleX(-1)"),He&&dt.push("scaleY(-1)"),jt!==0&&dt.push("rotate("+jt+"deg)"),Ne!==null&&(pt.fill=Ne);var kt=r.createElement("path",x({d:W,style:pt},Je?Vt:{})),Dt=kt;dt.length>0&&(Ve.transform=dt.join(" "),Ve.transformOrigin="center",Je&&(Dt=r.createElement("g",{style:Ve},kt,r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))));var Se,de=Dt,xe=Jt===!0||typeof Jt!="number"?2:Jt,Pe=!Je&&(ct||He);if(xe<0&&(Pe=!Pe),Jt&&(de=r.createElement("g",{style:{animation:"spin"+(Pe?"-inverse":"")+" linear "+Math.abs(xe)+"s infinite",transformOrigin:"center"}},Dt,!(ct||He||jt!==0)&&r.createElement("rect",{width:"24",height:"24",fill:"transparent"}))),Je)return de;var Ze,Xe="icon_labelledby_"+q,wt="icon_describedby_"+q;if(ne)Se=ae?Xe+" "+wt:Xe;else if(Ze="presentation",ae)throw new Error("title attribute required when description is set");return r.createElement("svg",x({ref:H,viewBox:"0 0 24 24",style:Ve,role:Ze,"aria-labelledby":Se},Vt),ne&&r.createElement("title",{id:Xe},ne),ae&&r.createElement("desc",{id:wt},ae),!Je&&Jt&&(Pe?r.createElement("style",null,"@keyframes spin-inverse { from { transform: rotate(0deg) } to { transform: rotate(-360deg) } }"):r.createElement("style",null,"@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }")),de)});P.displayName="Icon",P.propTypes={path:i.string.isRequired,size:i.oneOfType([i.number,i.string]),color:i.string,horizontal:i.bool,vertical:i.bool,rotate:i.number,spin:i.oneOfType([i.bool,i.number]),style:i.object,inStack:i.bool,className:i.string},P.defaultProps={size:null,color:"currentColor",horizontal:!1,vertical:!1,rotate:0,spin:!1},n.default=P}]);const pP=ga(_6e);function Ng(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerEditorGroup.tsx",n="2f1dde9b3c8e927b8e8868bcb310eb3d6a65eb08",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerEditorGroup.tsx",statementMap:{0:{start:{line:16,column:4},end:{line:45,column:9}},1:{start:{line:22,column:27},end:{line:22,column:74}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:11},end:{line:46,column:3}},line:15},1:{name:"(anonymous_1)",decl:{start:{line:22,column:19},end:{line:22,column:20}},loc:{start:{line:22,column:27},end:{line:22,column:74}},line:22}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerEditorGroup.tsx"],names:[],mappings:"AA+BQ,SACE,KADF;AA/BR,OAAO,WAAW;AAClB,OAAO,UAAU;AACjB;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAaP,qBAAqB,yBAAyB,MAAM,UAAiC;AAAA,EACnF,SAAS;AACP,WAAO,qBAAC,iBAAc,MAAM,KAAK,MAAM,IACrC;AAAA;AAAA,QAAC;AAAA;AAAA,UAAqB,WAAU;AAAA,UAC9B,eAAa,wBAAsB,KAAK,MAAM,aAAa;AAAA,UAC3D,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,UAE7D,+BAAC,uBAAoB,WAAU,uCAC7B;AAAA,gCAAC,UAAK,OAAO,EAAC,UAAU,EAAC,GAAI,eAAK,MAAM,OAAM;AAAA,YAC9C;AAAA,cAAC;AAAA;AAAA,gBACC,MAAM;AAAA,gBACN,MAAM;AAAA,gBACN,WAAU;AAAA;AAAA,YACZ;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,MAAM;AAAA,gBACN,MAAM;AAAA,gBACN,WAAU;AAAA;AAAA,YACZ;AAAA,aACF;AAAA;AAAA,MACF;AAAA,MACA,oBAAC,sBACE,eAAK,MAAM,UACd;AAAA,OACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"2f1dde9b3c8e927b8e8868bcb310eb3d6a65eb08"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Ng=function(){return s},s}Ng();class b6e extends bn.Component{render(){return Ng().f[0]++,Ng().s[0]++,N.jsxs(gW,{uuid:this.props.id,children:[N.jsx(CW,{className:"maputnik-layer-editor-group","data-wd-key":"layer-editor-group:"+this.props["data-wd-key"],onClick:n=>(Ng().f[1]++,Ng().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:N.jsxs(Zfe,{className:"maputnik-layer-editor-group__button",children:[N.jsx("span",{style:{flexGrow:1},children:this.props.title}),N.jsx(pP,{path:lpe,size:1,className:"maputnik-layer-editor-group__button__icon maputnik-layer-editor-group__button__icon--up"}),N.jsx(pP,{path:spe,size:1,className:"maputnik-layer-editor-group__button__icon maputnik-layer-editor-group__button__icon--down"})]})}),N.jsx(epe,{children:this.props.children})]})}}function A4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldMinZoom.tsx",n="1854bc9345eba3b5ee508193a6378533df537e7e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldMinZoom.tsx",statementMap:{0:{start:{line:8,column:4},end:{line:28,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:2},end:{line:7,column:3}},loc:{start:{line:7,column:11},end:{line:29,column:3}},line:7}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldMinZoom.tsx"],names:[],mappings:"AAkBM;AAlBN,OAAO,WAAW;AAElB,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AAQxB,qBAAqB,qBAAqB,MAAM,UAA6B;AAAA,EAC3E,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QAAM,OAAO;AAAA,QAAY,WAAW,OAAO,MAAM;AAAA,QACvD,OAAO,KAAK,MAAM;AAAA,QAClB,eAAY;AAAA,QAEZ;AAAA,UAAC;AAAA;AAAA,YACC,YAAY;AAAA,YACZ,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,KAAK,MAAM;AAAA,YACrB,KAAK,OAAO,MAAM,QAAQ;AAAA,YAC1B,KAAK,OAAO,MAAM,QAAQ;AAAA,YAC1B,SAAS,OAAO,MAAM,QAAQ;AAAA,YAC9B,eAAY;AAAA;AAAA,QACd;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1854bc9345eba3b5ee508193a6378533df537e7e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return A4=function(){return s},s}A4();class x6e extends bn.Component{render(){return A4().f[0]++,A4().s[0]++,N.jsx(Uo,{label:"Min Zoom",fieldSpec:Ji.layer.minzoom,error:this.props.error,"data-wd-key":"min-zoom",children:N.jsx(pf,{allowRange:!0,value:this.props.value,onChange:this.props.onChange,min:Ji.layer.minzoom.minimum,max:Ji.layer.minzoom.maximum,default:Ji.layer.minzoom.minimum,"data-wd-key":"min-zoom.input"})})}}function c4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldMaxZoom.tsx",n="8fe5d5ad6dca587b5c71f117ffe8eb6be8e87fd7",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldMaxZoom.tsx",statementMap:{0:{start:{line:8,column:4},end:{line:28,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:7,column:2},end:{line:7,column:3}},loc:{start:{line:7,column:11},end:{line:29,column:3}},line:7}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldMaxZoom.tsx"],names:[],mappings:"AAkBM;AAlBN,OAAO,WAAW;AAElB,OAAO,YAAY;AACnB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AAQxB,qBAAqB,qBAAqB,MAAM,UAA6B;AAAA,EAC3E,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QAAM,OAAO;AAAA,QAAY,WAAW,OAAO,MAAM;AAAA,QACvD,OAAO,KAAK,MAAM;AAAA,QAClB,eAAY;AAAA,QAEZ;AAAA,UAAC;AAAA;AAAA,YACC,YAAY;AAAA,YACZ,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,KAAK,MAAM;AAAA,YACrB,KAAK,OAAO,MAAM,QAAQ;AAAA,YAC1B,KAAK,OAAO,MAAM,QAAQ;AAAA,YAC1B,SAAS,OAAO,MAAM,QAAQ;AAAA,YAC9B,eAAY;AAAA;AAAA,QACd;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"8fe5d5ad6dca587b5c71f117ffe8eb6be8e87fd7"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return c4=function(){return s},s}c4();class w6e extends bn.Component{render(){return c4().f[0]++,c4().s[0]++,N.jsx(Uo,{label:"Max Zoom",fieldSpec:Ji.layer.maxzoom,error:this.props.error,"data-wd-key":"max-zoom",children:N.jsx(pf,{allowRange:!0,value:this.props.value,onChange:this.props.onChange,min:Ji.layer.maxzoom.minimum,max:Ji.layer.maxzoom.maximum,default:Ji.layer.maxzoom.maximum,"data-wd-key":"max-zoom.input"})})}}function LC(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldComment.tsx",n="78f2f7c5d70fb12fc1126c8cf454a217776b6a18",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldComment.tsx",statementMap:{0:{start:{line:7,column:22},end:{line:9,column:5}},1:{start:{line:10,column:4},end:{line:28,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:29,column:3}},line:6}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldComment.tsx"],names:[],mappings:"AAuBM;AAvBN,OAAO,WAAW;AAElB,OAAO,WAAW;AAClB,OAAO,iBAAiB;AAQxB,qBAAqB,qBAAqB,MAAM,UAA6B;AAAA,EAC3E,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,KAAK;AAAA,IACP;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,OAAO;AAAA,QACP;AAAA,QACA,eAAY;AAAA,QACZ,OAAO,KAAK,MAAM;AAAA,QAElB;AAAA,UAAC;AAAA;AAAA,YACC,OAAO;AAAA,YACP,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,KAAK,MAAM;AAAA,YACrB,SAAQ;AAAA,YACR,eAAY;AAAA;AAAA,QACd;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"78f2f7c5d70fb12fc1126c8cf454a217776b6a18"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return LC=function(){return s},s}LC();class M6e extends bn.Component{render(){LC().f[0]++;const n=(LC().s[0]++,{doc:"Comments for the current layer. This is non-standard and not in the spec."});return LC().s[1]++,N.jsx(Uo,{label:"Comments",fieldSpec:n,"data-wd-key":"layer-comment",error:this.props.error,children:N.jsx(Sd,{multi:!0,value:this.props.value,onChange:this.props.onChange,default:"Comment...","data-wd-key":"layer-comment.input"})})}}const S6e={groups:[{title:"Paint properties",type:"properties",fields:["line-opacity","line-color","line-width","line-offset","line-blur","line-dasharray","line-pattern","line-translate","line-translate-anchor","line-gap-width"]},{title:"Layout properties",type:"properties",fields:["line-cap","line-join","line-miter-limit","line-round-limit"]}]},E6e={groups:[{title:"Paint properties",type:"properties",fields:["background-color","background-pattern","background-opacity"]}]},O6e={groups:[{title:"Paint properties",type:"properties",fields:["fill-opacity","fill-color","fill-antialias","fill-outline-color","fill-pattern","fill-translate","fill-translate-anchor"]}]},B6e={groups:[{title:"Paint properties",type:"properties",fields:["circle-color","circle-opacity","circle-stroke-color","circle-stroke-opacity","circle-blur","circle-radius","circle-stroke-width","circle-pitch-scale","circle-translate","circle-translate-anchor","circle-pitch-alignment"]}]},k6e={groups:[{title:"General layout properties",type:"properties",fields:["symbol-placement","symbol-spacing","symbol-avoid-edges","symbol-z-order"]},{title:"Text layout properties",type:"properties",fields:["text-field","text-font","text-size","text-line-height","text-padding","text-allow-overlap","text-ignore-placement","text-pitch-alignment","text-rotation-alignment","text-max-width","text-letter-spacing","text-justify","text-anchor","text-max-angle","text-writing-mode","text-rotate","text-keep-upright","text-transform","text-offset","text-optional","text-variable-anchor","text-radial-offset"]},{title:"Icon layout properties",type:"properties",fields:["icon-image","icon-allow-overlap","icon-ignore-placement","icon-optional","icon-rotation-alignment","icon-size","icon-text-fit","icon-text-fit-padding","icon-rotate","icon-padding","icon-keep-upright","icon-offset","icon-anchor","icon-pitch-alignment"]},{title:"Text paint properties",type:"properties",fields:["text-color","text-opacity","text-halo-color","text-halo-width","text-halo-blur","text-translate","text-translate-anchor"]},{title:"Icon paint properties",type:"properties",fields:["icon-color","icon-opacity","icon-halo-color","icon-halo-width","icon-halo-blur","icon-translate","icon-translate-anchor"]}]},I6e={groups:[{title:"Paint properties",type:"properties",fields:["raster-opacity","raster-hue-rotate","raster-brightness-min","raster-brightness-max","raster-saturation","raster-contrast","raster-fade-duration","raster-resampling"]}]},T6e={groups:[{title:"Paint properties",type:"properties",fields:["hillshade-illumination-direction","hillshade-illumination-anchor","hillshade-exaggeration","hillshade-shadow-color","hillshade-highlight-color","hillshade-accent-color"]}]},K6e={groups:[{title:"Paint properties",type:"properties",fields:["heatmap-radius","heatmap-weight","heatmap-intensity","heatmap-opacity"]}]},P6e={groups:[]},oS={line:S6e,background:E6e,fill:O6e,"fill-extrusion":{groups:[{title:"Paint properties",type:"properties",fields:["fill-extrusion-opacity","fill-extrusion-color","fill-extrusion-translate","fill-extrusion-translate-anchor","fill-extrusion-pattern","fill-extrusion-height","fill-extrusion-base","fill-extrusion-vertical-gradient"]}]},circle:B6e,symbol:k6e,raster:I6e,hillshade:T6e,heatmap:K6e,invalid:P6e};function Gg(){var e="/home/runner/work/maputnik/maputnik/src/libs/format.ts",n="c45fbfac66e994b59070a295e5a7f219cd5d66ac",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/format.ts",statementMap:{0:{start:{line:2,column:2},end:{line:2,column:50}}},fnMap:{0:{name:"formatLayerId",decl:{start:{line:1,column:16},end:{line:1,column:29}},loc:{start:{line:1,column:34},end:{line:3,column:1}},line:1}},branchMap:{0:{loc:{start:{line:2,column:9},end:{line:2,column:49}},type:"cond-expr",locations:[{start:{line:2,column:21},end:{line:2,column:37}},{start:{line:2,column:40},end:{line:2,column:49}}],line:2}},s:{0:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/format.ts"],names:[],mappings:"AAAO,gBAAS,cAAe,IAAwB;AACrD,SAAO,OAAO,KAAK,mBAAmB,IAAI,EAAE;AAC9C;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"c45fbfac66e994b59070a295e5a7f219cd5d66ac"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Gg=function(){return s},s}Gg();function XN(e){return Gg().f[0]++,Gg().s[0]++,e===""?(Gg().b[0][0]++,"[empty_string]"):(Gg().b[0][1]++,`'${e}'`)}function ln(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerEditor.tsx",n="13cf530347fd66324a92f0d1d210d94f3d2129c4",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerEditor.tsx",statementMap:{0:{start:{line:22,column:2},end:{line:22,column:54}},1:{start:{line:25,column:21},end:{line:28,column:3}},2:{start:{line:29,column:22},end:{line:32,column:3}},3:{start:{line:33,column:22},end:{line:36,column:3}},4:{start:{line:37,column:2},end:{line:37,column:100}},5:{start:{line:40,column:24},end:{line:47,column:3}},6:{start:{line:48,column:29},end:{line:50,column:3}},7:{start:{line:52,column:4},end:{line:52,column:17}},8:{start:{line:53,column:25},end:{line:53,column:27}},9:{start:{line:54,column:4},end:{line:56,column:7}},10:{start:{line:55,column:6},end:{line:55,column:39}},11:{start:{line:57,column:4},end:{line:57,column:34}},12:{start:{line:60,column:29},end:{line:60,column:54}},13:{start:{line:61,column:4},end:{line:65,column:7}},14:{start:{line:62,column:6},end:{line:64,column:7}},15:{start:{line:63,column:8},end:{line:63,column:45}},16:{start:{line:66,column:4},end:{line:68,column:6}},17:{start:{line:71,column:4},end:{line:76,column:6}},18:{start:{line:79,column:4},end:{line:82,column:6}},19:{start:{line:85,column:32},end:{line:88,column:5}},20:{start:{line:89,column:4},end:{line:91,column:7}},21:{start:{line:94,column:18},end:{line:94,column:20}},22:{start:{line:95,column:4},end:{line:97,column:5}},23:{start:{line:96,column:6},end:{line:96,column:62}},24:{start:{line:98,column:35},end:{line:98,column:45}},25:{start:{line:99,column:22},end:{line:99,column:24}},26:{start:{line:100,column:4},end:{line:106,column:7}},27:{start:{line:101,column:6},end:{line:105,column:7}},28:{start:{line:102,column:8},end:{line:104,column:10}},29:{start:{line:108,column:18},end:{line:108,column:34}},30:{start:{line:109,column:4},end:{line:111,column:5}},31:{start:{line:110,column:6},end:{line:110,column:63}},32:{start:{line:112,column:4},end:{line:215,column:5}},33:{start:{line:114,column:8},end:{line:178,column:13}},34:{start:{line:121,column:35},end:{line:121,column:112}},35:{start:{line:130,column:37},end:{line:133,column:15}},36:{start:{line:142,column:31},end:{line:142,column:69}},37:{start:{line:151,column:31},end:{line:151,column:75}},38:{start:{line:159,column:31},end:{line:159,column:70}},39:{start:{line:167,column:31},end:{line:167,column:70}},40:{start:{line:175,column:31},end:{line:175,column:104}},41:{start:{line:180,column:8},end:{line:188,column:16}},42:{start:{line:186,column:29},end:{line:186,column:67}},43:{start:{line:190,column:8},end:{line:199,column:10}},44:{start:{line:201,column:8},end:{line:212,column:10}},45:{start:{line:206,column:14},end:{line:209,column:16}},46:{start:{line:214,column:8},end:{line:214,column:49}},47:{start:{line:218,column:4},end:{line:221,column:7}},48:{start:{line:224,column:21},end:{line:224,column:23}},49:{start:{line:225,column:22},end:{line:225,column:43}},50:{start:{line:226,column:19},end:{line:243,column:6}},51:{start:{line:227,column:6},end:{line:227,column:70}},52:{start:{line:229,column:22},end:{line:229,column:52}},53:{start:{line:230,column:6},end:{line:230,column:29}},54:{start:{line:231,column:6},end:{line:242,column:8}},55:{start:{line:244,column:20},end:{line:244,column:49}},56:{start:{line:245,column:18},end:{line:270,column:5}},57:{start:{line:248,column:23},end:{line:248,column:71}},58:{start:{line:252,column:23},end:{line:252,column:68}},59:{start:{line:256,column:23},end:{line:256,column:80}},60:{start:{line:262,column:23},end:{line:262,column:41}},61:{start:{line:268,column:23},end:{line:268,column:40}},62:{start:{line:272,column:6},end:{line:272,column:30}},63:{start:{line:273,column:6},end:{line:273,column:26}},64:{start:{line:275,column:4},end:{line:314,column:6}},65:{start:{line:296,column:33},end:{line:296,column:42}},66:{start:{line:297,column:20},end:{line:297,column:174}}},fnMap:{0:{name:"getLayoutForType",decl:{start:{line:21,column:9},end:{line:21,column:25}},loc:{start:{line:21,column:32},end:{line:23,column:1}},line:21},1:{name:"layoutGroups",decl:{start:{line:24,column:9},end:{line:24,column:21}},loc:{start:{line:24,column:33},end:{line:38,column:1}},line:24},2:{name:"(anonymous_2)",decl:{start:{line:41,column:20},end:{line:41,column:21}},loc:{start:{line:41,column:26},end:{line:42,column:5}},line:41},3:{name:"(anonymous_3)",decl:{start:{line:43,column:21},end:{line:43,column:22}},loc:{start:{line:43,column:27},end:{line:44,column:5}},line:43},4:{name:"(anonymous_4)",decl:{start:{line:45,column:22},end:{line:45,column:23}},loc:{start:{line:45,column:28},end:{line:46,column:5}},line:45},5:{name:"(anonymous_5)",decl:{start:{line:51,column:2},end:{line:51,column:3}},loc:{start:{line:51,column:21},end:{line:58,column:3}},line:51},6:{name:"(anonymous_6)",decl:{start:{line:54,column:48},end:{line:54,column:49}},loc:{start:{line:54,column:59},end:{line:56,column:5}},line:54},7:{name:"(anonymous_7)",decl:{start:{line:59,column:2},end:{line:59,column:3}},loc:{start:{line:59,column:48},end:{line:69,column:3}},line:59},8:{name:"(anonymous_8)",decl:{start:{line:61,column:54},end:{line:61,column:55}},loc:{start:{line:61,column:65},end:{line:65,column:5}},line:61},9:{name:"(anonymous_9)",decl:{start:{line:70,column:2},end:{line:70,column:3}},loc:{start:{line:70,column:20},end:{line:77,column:3}},line:70},10:{name:"(anonymous_10)",decl:{start:{line:78,column:2},end:{line:78,column:3}},loc:{start:{line:78,column:44},end:{line:83,column:3}},line:78},11:{name:"(anonymous_11)",decl:{start:{line:84,column:2},end:{line:84,column:3}},loc:{start:{line:84,column:36},end:{line:92,column:3}},line:84},12:{name:"(anonymous_12)",decl:{start:{line:93,column:2},end:{line:93,column:3}},loc:{start:{line:93,column:32},end:{line:216,column:3}},line:93},13:{name:"(anonymous_13)",decl:{start:{line:100,column:19},end:{line:100,column:20}},loc:{start:{line:100,column:30},end:{line:106,column:5}},line:100},14:{name:"(anonymous_14)",decl:{start:{line:121,column:24},end:{line:121,column:25}},loc:{start:{line:121,column:35},end:{line:121,column:112}},line:121},15:{name:"(anonymous_15)",decl:{start:{line:130,column:24},end:{line:130,column:25}},loc:{start:{line:130,column:37},end:{line:133,column:15}},line:130},16:{name:"(anonymous_16)",decl:{start:{line:142,column:24},end:{line:142,column:25}},loc:{start:{line:142,column:31},end:{line:142,column:69}},line:142},17:{name:"(anonymous_17)",decl:{start:{line:151,column:24},end:{line:151,column:25}},loc:{start:{line:151,column:31},end:{line:151,column:75}},line:151},18:{name:"(anonymous_18)",decl:{start:{line:159,column:24},end:{line:159,column:25}},loc:{start:{line:159,column:31},end:{line:159,column:70}},line:159},19:{name:"(anonymous_19)",decl:{start:{line:167,column:24},end:{line:167,column:25}},loc:{start:{line:167,column:31},end:{line:167,column:70}},line:167},20:{name:"(anonymous_20)",decl:{start:{line:175,column:24},end:{line:175,column:25}},loc:{start:{line:175,column:31},end:{line:175,column:104}},line:175},21:{name:"(anonymous_21)",decl:{start:{line:186,column:22},end:{line:186,column:23}},loc:{start:{line:186,column:29},end:{line:186,column:67}},line:186},22:{name:"(anonymous_22)",decl:{start:{line:205,column:22},end:{line:205,column:23}},loc:{start:{line:205,column:34},end:{line:210,column:13}},line:205},23:{name:"(anonymous_23)",decl:{start:{line:217,column:2},end:{line:217,column:3}},loc:{start:{line:217,column:20},end:{line:222,column:3}},line:217},24:{name:"(anonymous_24)",decl:{start:{line:223,column:2},end:{line:223,column:3}},loc:{start:{line:223,column:11},end:{line:315,column:3}},line:223},25:{name:"(anonymous_25)",decl:{start:{line:226,column:50},end:{line:226,column:51}},loc:{start:{line:226,column:61},end:{line:228,column:5}},line:226},26:{name:"(anonymous_26)",decl:{start:{line:228,column:11},end:{line:228,column:12}},loc:{start:{line:228,column:22},end:{line:243,column:5}},line:228},27:{name:"(anonymous_27)",decl:{start:{line:248,column:17},end:{line:248,column:18}},loc:{start:{line:248,column:23},end:{line:248,column:71}},line:248},28:{name:"(anonymous_28)",decl:{start:{line:252,column:17},end:{line:252,column:18}},loc:{start:{line:252,column:23},end:{line:252,column:68}},line:252},29:{name:"(anonymous_29)",decl:{start:{line:256,column:17},end:{line:256,column:18}},loc:{start:{line:256,column:23},end:{line:256,column:80}},line:256},30:{name:"(anonymous_30)",decl:{start:{line:262,column:17},end:{line:262,column:18}},loc:{start:{line:262,column:23},end:{line:262,column:41}},line:262},31:{name:"(anonymous_31)",decl:{start:{line:268,column:17},end:{line:268,column:18}},loc:{start:{line:268,column:23},end:{line:268,column:40}},line:268},32:{name:"handleSelection",decl:{start:{line:271,column:13},end:{line:271,column:28}},loc:{start:{line:271,column:40},end:{line:274,column:5}},line:271},33:{name:"(anonymous_33)",decl:{start:{line:295,column:147},end:{line:295,column:148}},loc:{start:{line:295,column:155},end:{line:298,column:19}},line:295}},branchMap:{0:{loc:{start:{line:22,column:9},end:{line:22,column:53}},type:"cond-expr",locations:[{start:{line:22,column:24},end:{line:22,column:36}},{start:{line:22,column:39},end:{line:22,column:53}}],line:22},1:{loc:{start:{line:62,column:6},end:{line:64,column:7}},type:"if",locations:[{start:{line:62,column:6},end:{line:64,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:62},2:{loc:{start:{line:95,column:4},end:{line:97,column:5}},type:"if",locations:[{start:{line:95,column:4},end:{line:97,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:95},3:{loc:{start:{line:101,column:6},end:{line:105,column:7}},type:"if",locations:[{start:{line:101,column:6},end:{line:105,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:101},4:{loc:{start:{line:101,column:10},end:{line:101,column:96}},type:"binary-expr",locations:[{start:{line:101,column:10},end:{line:101,column:22}},{start:{line:101,column:26},end:{line:101,column:55}},{start:{line:101,column:59},end:{line:101,column:96}}],line:101},5:{loc:{start:{line:109,column:4},end:{line:111,column:5}},type:"if",locations:[{start:{line:109,column:4},end:{line:111,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:109},6:{loc:{start:{line:112,column:4},end:{line:215,column:5}},type:"switch",locations:[{start:{line:113,column:6},end:{line:178,column:13}},{start:{line:179,column:6},end:{line:188,column:16}},{start:{line:189,column:6},end:{line:199,column:10}},{start:{line:200,column:6},end:{line:212,column:10}},{start:{line:213,column:6},end:{line:214,column:49}}],line:112},7:{loc:{start:{line:136,column:10},end:{line:144,column:11}},type:"binary-expr",locations:[{start:{line:136,column:10},end:{line:136,column:48}},{start:{line:136,column:68},end:{line:144,column:11}}],line:136},8:{loc:{start:{line:145,column:10},end:{line:153,column:11}},type:"binary-expr",locations:[{start:{line:145,column:10},end:{line:145,column:93}},{start:{line:145,column:113},end:{line:153,column:11}}],line:145},9:{loc:{start:{line:175,column:83},end:{line:175,column:103}},type:"cond-expr",locations:[{start:{line:175,column:93},end:{line:175,column:99}},{start:{line:175,column:102},end:{line:175,column:103}}],line:175},10:{loc:{start:{line:227,column:15},end:{line:227,column:68}},type:"binary-expr",locations:[{start:{line:227,column:15},end:{line:227,column:41}},{start:{line:227,column:45},end:{line:227,column:68}}],line:227},11:{loc:{start:{line:244,column:20},end:{line:244,column:49}},type:"binary-expr",locations:[{start:{line:244,column:20},end:{line:244,column:43}},{start:{line:244,column:47},end:{line:244,column:49}}],line:244},12:{loc:{start:{line:255,column:14},end:{line:255,column:61}},type:"cond-expr",locations:[{start:{line:255,column:46},end:{line:255,column:52}},{start:{line:255,column:55},end:{line:255,column:61}}],line:255}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0,0,0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0],11:[0,0],12:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerEditor.tsx"],names:["layer","layout"],mappings:"AA6JyB,SA2EL,UA1Ed,KADmB;AA7JzB,OAAO,WAAuB;AAC9B,OAAO,eAAe;AACtB,SAAS,SAAS,QAAQ,MAAM,gBAAgB;AAChD,SAAQ,iBAAgB;AACxB,SAAQ,kBAAiB;AAGzB,OAAO,eAAe;AACtB,OAAO,kBAAkB;AACzB,OAAO,mBAAmB;AAC1B,OAAO,sBAAsB;AAC7B,OAAO,eAAe;AACtB,OAAO,aAAa;AACpB,OAAO,kBAAkB;AACzB,OAAO,kBAAkB;AACzB,OAAO,kBAAkB;AACzB,OAAO,iBAAiB;AACxB,OAAO,sBAAsB;AAC7B,SAAS,YAAY,sBAAsB;AAC3C,OAAO,YAAY;AACnB,SAAQ,qBAAoB;AAG5B,SAAS,iBAAiB,MAAkC;AAC1D,SAAO,OAAO,IAAI,IAAI,OAAO,IAAI,IAAI,OAAO;AAC9C;AAEA,SAAS,aAAa,WAA2F;AAC/G,QAAM,aAAa;AAAA,IACjB,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACA,QAAM,cAAc;AAAA,IAClB,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACA,QAAM,cAAc;AAAA,IAClB,OAAO;AAAA,IACP,MAAM;AAAA,EACR;AACA,SAAO,CAAC,YAAY,WAAW,EAC5B,OAAO,iBAAiB,SAAS,EAAE,MAAM,EACzC,OAAO,CAAC,WAAW,CAAC;AACzB;AAwBA,qBAAqB,oBAAoB,MAAM,UAA8C;AAAA,EAC3F,OAAO,eAAe;AAAA,IACpB,gBAAgB,MAAM;AAAA,IAAC;AAAA,IACvB,iBAAiB,MAAM;AAAA,IAAC;AAAA,IACxB,kBAAkB,MAAM;AAAA,IAAC;AAAA,EAC3B;AAAA,EAEA,OAAO,oBAAoB;AAAA,IACzB,eAAe,UAAU;AAAA,EAC3B;AAAA,EAEA,YAAY,OAAyB;AACnC,UAAM,KAAK;AAGX,UAAM,eAAyC,CAAC;AAChD,iBAAa,KAAK,MAAM,MAAM,IAAI,EAAE,QAAQ,WAAS;AACnD,mBAAa,MAAM,KAAK,IAAI;AAAA,IAC9B,CAAC;AAED,SAAK,QAAQ,EAAE,aAAa;AAAA,EAC9B;AAAA,EAEA,OAAO,yBAAyB,OAAyB,OAAyB;AAChF,UAAM,mBAAmB,EAAE,GAAG,MAAM,aAAa;AAEjD,qBAAiB,MAAM,MAAM,IAAI,EAAE,OAAO,QAAQ,WAAS;AACzD,UAAG,EAAE,MAAM,SAAS,mBAAmB;AACrC,yBAAiB,MAAM,KAAK,IAAI;AAAA,MAClC;AAAA,IACF,CAAC;AAED,WAAO;AAAA,MACL,cAAc;AAAA,IAChB;AAAA,EACF;AAAA,EAEA,kBAAmB;AACjB,WAAO;AAAA,MACL,eAAe;AAAA,QACb,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAAA,EAEA,eAAe,OAAwC,UAAkB,UAAe;AACtF,SAAK,MAAM;AAAA,MACT,KAAK,MAAM;AAAA,MACX,eAAe,KAAK,MAAM,OAAO,OAAO,UAAU,QAAQ;AAAA,IAC5D;AAAA,EACF;AAAA,EAEA,cAAc,YAAoB,QAAiB;AACjD,UAAM,sBAAsB;AAAA,MAC1B,GAAG,KAAK,MAAM;AAAA,MACd,CAAC,UAAU,GAAG;AAAA,IAChB;AACA,SAAK,SAAS;AAAA,MACZ,cAAc;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EAEA,gBAAgB,MAAc,QAAgC;AAC5D,QAAI,UAAU;AACd,QAAG,KAAK,MAAM,MAAM,UAAU;AAC5B,gBAAW,KAAK,MAAM,MAAM,SAAiB,kBAAkB;AAAA,IACjE;AACA,UAAM,EAAC,QAAQ,WAAU,IAAI,KAAK;AAElC,UAAM,YAAwE,CAAC;AAC/E,WAAQ,QAAQ,WAAS;AACvB,UACE,MAAM,UACN,MAAM,OAAO,SAAS,WACtB,MAAM,OAAO,KAAK,SAAS,YAC3B;AACA,kBAAU,MAAM,OAAO,KAAK,GAAG,IAAI;AAAA,UACjC,SAAS,MAAM,OAAO,KAAK;AAAA,QAC7B;AAAA,MACF;AAAA,IACF,CAAC;AAED,QAAI;AACJ,UAAM,QAAQ,KAAK,MAAM;AACzB,QAAG,OAAO,UAAU,eAAe,KAAK,KAAK,MAAM,SAAS,MAAM,MAAM,GAAG;AACzE,uBAAkB,KAAK,MAAM,QAAQ,MAAM,MAAM,EAAU;AAAA,IAC7D;AAEA,YAAO,MAAM;AAAA,MACb,KAAK;AAAS,eAAO,qBAAC,SACpB;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,KAAK,MAAM,MAAM;AAAA,cACxB,OAAM;AAAA,cACN,OAAO,UAAU;AAAA,cACjB,UAAU,WAAS,KAAK,MAAM,gBAAgB,KAAK,MAAM,YAAY,KAAK,MAAM,MAAM,IAAI,KAAK;AAAA;AAAA,UACjG;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,UAAU;AAAA,cACV,OAAO,UAAU;AAAA,cACjB,OAAO,KAAK,MAAM,MAAM;AAAA,cACxB,UAAU,aAAW,KAAK,MAAM;AAAA,gBAC9B,KAAK,MAAM;AAAA,gBACX,WAAW,KAAK,MAAM,OAAO,OAAO;AAAA,cACtC;AAAA;AAAA,UACF;AAAA,UACC,KAAK,MAAM,MAAM,SAAS,gBAAgB;AAAA,YAAC;AAAA;AAAA,cAC1C,OAAO,UAAU;AAAA,cACjB,WAAW,OAAO,KAAK,KAAK,MAAM,OAAQ;AAAA,cAC1C,OAAO,KAAK,MAAM,MAAM;AAAA,cACxB,UAAU,OAAK,KAAK,eAAe,MAAM,UAAU,CAAC;AAAA;AAAA,UACtD;AAAA,UAEC,CAAC,cAAc,UAAU,aAAa,SAAS,EAAE,QAAQ,KAAK,MAAM,MAAM,IAAI,IAAI,KACjF;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,UAAU,cAAc;AAAA,cAC/B;AAAA,cACA,OAAQ,KAAK,MAAM,MAAc,cAAc;AAAA,cAC/C,UAAU,OAAK,KAAK,eAAe,MAAM,gBAAgB,CAAC;AAAA;AAAA,UAC5D;AAAA,UAEF;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,UAAU;AAAA,cACjB,OAAO,KAAK,MAAM,MAAM;AAAA,cACxB,UAAU,OAAK,KAAK,eAAe,MAAM,WAAW,CAAC;AAAA;AAAA,UACvD;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,UAAU;AAAA,cACjB,OAAO,KAAK,MAAM,MAAM;AAAA,cACxB,UAAU,OAAK,KAAK,eAAe,MAAM,WAAW,CAAC;AAAA;AAAA,UACvD;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,UAAU;AAAA,cACjB,OAAO;AAAA,cACP,UAAU,OAAK,KAAK,eAAe,YAAY,oBAAoB,KAAK,KAAM,SAAY,CAAC;AAAA;AAAA,UAC7F;AAAA,WACF;AAAA,MACA,KAAK;AAAU,eAAO,oBAAC,SACrB,8BAAC,SAAI,WAAU,kCACb;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ;AAAA,YACR,QAAS,KAAK,MAAM,MAAc;AAAA,YAClC,YAAY,KAAK,MAAM,aAAc,KAAK,MAAM,MAAc,cAAc,CAAC;AAAA,YAC7E,UAAU,OAAK,KAAK,eAAe,MAAM,UAAU,CAAC;AAAA;AAAA,QACtD,GACF,GACF;AAAA,MACA,KAAK;AACH,eAAO;AAAA,UAAC;AAAA;AAAA,YACN,QAAQ;AAAA,YACR,OAAO,KAAK,MAAM;AAAA,YAClB,aAAa;AAAA,YACb,MAAM,KAAK,MAAM;AAAA,YACjB,UAAU,KAAK,eAAe,KAAK,IAAI;AAAA;AAAA,QACzC;AAAA,MACF,KAAK;AACH,eAAO;AAAA,UAAC;AAAA;AAAA,YACN,OAAO,KAAK,MAAM;AAAA,YAClB,UAAU,CAACA,WAAU;AACnB,mBAAK,MAAM;AAAA,gBACT,KAAK,MAAM;AAAA,gBACXA;AAAA,cACF;AAAA,YACF;AAAA;AAAA,QACF;AAAA,MACF;AAAS,eAAO,gCAAE;AAAA,IAClB;AAAA,EACF;AAAA,EAEA,UAAU,QAAgB;AACxB,SAAK,MAAM,YAAY;AAAA,MACrB,UAAU,KAAK,MAAM;AAAA,MACrB,UAAU,KAAK,MAAM,aAAW;AAAA,IAClC,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,WAAqB,CAAC;AAC5B,UAAM,YAAY,KAAK,MAAM,MAAM;AACnC,UAAM,SAAS,aAAa,SAAS,EAAE,OAAO,WAAS;AACrD,aAAO,EAAE,cAAc,gBAAgB,MAAM,SAAS;AAAA,IACxD,CAAC,EAAE,IAAI,WAAS;AACd,YAAM,UAAU,MAAM,MAAM,QAAQ,MAAM,GAAG;AAC7C,eAAS,KAAK,OAAO;AACrB,aAAO;AAAA,QAAC;AAAA;AAAA,UACN,eAAa,MAAM;AAAA,UACnB,IAAI;AAAA,UAEJ,OAAO,MAAM;AAAA,UACb,UAAU,KAAK,MAAM,aAAa,MAAM,KAAK;AAAA,UAC7C,gBAAgB,KAAK,cAAc,KAAK,MAAM,MAAM,KAAK;AAAA,UAExD,eAAK,gBAAgB,MAAM,MAAM,MAAM,MAAM;AAAA;AAAA,QALzC,MAAM;AAAA,MAMb;AAAA,IACF,CAAC;AAED,UAAMC,UAAS,KAAK,MAAM,MAAM,UAAU,CAAC;AAE3C,UAAM,QAAkF;AAAA,MACtF,QAAQ;AAAA,QACN,MAAM;AAAA,QACN,SAAS,MAAM,KAAK,MAAM,eAAe,KAAK,MAAM,UAAU;AAAA,MAChE;AAAA,MACA,WAAW;AAAA,QACT,MAAM;AAAA,QACN,SAAS,MAAM,KAAK,MAAM,YAAY,KAAK,MAAM,UAAU;AAAA,MAC7D;AAAA,MACA,MAAM;AAAA,QACJ,MAAOA,QAAO,eAAe,SAAU,SAAS;AAAA,QAChD,SAAS,MAAM,KAAK,MAAM,wBAAwB,KAAK,MAAM,UAAU;AAAA,MACzE;AAAA,MACA,aAAa;AAAA,QACX,MAAM;AAAA;AAAA,QAEN,UAAU,KAAK,MAAM;AAAA,QACrB,SAAS,MAAM,KAAK,UAAU,EAAE;AAAA,MAClC;AAAA,MACA,eAAe;AAAA,QACb,MAAM;AAAA;AAAA,QAEN,UAAU,KAAK,MAAM;AAAA,QACrB,SAAS,MAAM,KAAK,UAAU,CAAE;AAAA,MAClC;AAAA,IACF;AAEA,aAAS,gBAAgB,IAAY,OAA6B;AAChE,YAAM,gBAAgB;AACtB,YAAM,EAAE,EAAE,QAAQ;AAAA,IACpB;AAEA,WAAO;AAAA,MAAC;AAAA;AAAA,QAAQ,WAAU;AAAA,QACxB,MAAK;AAAA,QACL,cAAW;AAAA,QAEX;AAAA,8BAAC,YACC,+BAAC,SAAI,WAAU,gBACb;AAAA,iCAAC,QAAG,WAAU,uBAAsB;AAAA;AAAA,cAC1B,cAAc,KAAK,MAAM,MAAM,EAAE;AAAA,eAC3C;AAAA,YACA,oBAAC,SAAI,WAAU,sBACb;AAAA,cAAC;AAAA;AAAA,gBACC,WAAU;AAAA,gBACV,aAAa;AAAA,gBACb,kBAAkB;AAAA,gBAElB;AAAA,sCAAC,UAAO,IAAG,4BAA2B,eAAY,4BAA2B,WAAU,qBAAoB,OAAM,iBAC/G,8BAAC,cAAW,WAAU,0BAAyB,GACjD;AAAA,kBACA,oBAAC,QACC,8BAAC,QAAG,WAAU,mBACX,iBAAO,KAAK,KAAK,EAAE,IAAI,CAAC,OAAO;AAC9B,0BAAM,OAAO,MAAM,EAAE;AACrB,2BAAO,oBAAC,QACN,8BAAC,YAAS,OAAO,IAAI,WAAU,yBAC5B,eAAK,MACR,KAHc,EAIhB;AAAA,kBACF,CAAC,GACH,GACF;AAAA;AAAA;AAAA,YACF,GACF;AAAA,aACF,GAEF;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,uBAAuB;AAAA,cACvB,mBAAmB;AAAA,cACnB,aAAa;AAAA,cAEZ;AAAA;AAAA,UACH;AAAA;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"13cf530347fd66324a92f0d1d210d94f3d2129c4"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return ln=function(){return s},s}ln();function JN(e){return ln().f[0]++,ln().s[0]++,oS[e]?(ln().b[0][0]++,oS[e]):(ln().b[0][1]++,oS.invalid)}function mP(e){ln().f[1]++;const n=(ln().s[1]++,{title:"Layer",type:"layer"}),t=(ln().s[2]++,{title:"Filter",type:"filter"}),r=(ln().s[3]++,{title:"JSON Editor",type:"jsoneditor"});return ln().s[4]++,[n,t].concat(JN(e).groups).concat([r])}class tO extends bn.Component{constructor(n){ln().f[5]++,ln().s[7]++,super(n);const t=(ln().s[8]++,{});ln().s[9]++,mP(this.props.layer.type).forEach(r=>{ln().f[6]++,ln().s[10]++,t[r.title]=!0}),ln().s[11]++,this.state={editorGroups:t}}static getDerivedStateFromProps(n,t){ln().f[7]++;const r=(ln().s[12]++,{...t.editorGroups});return ln().s[13]++,JN(n.layer.type).groups.forEach(i=>{ln().f[8]++,ln().s[14]++,i.title in r?ln().b[1][1]++:(ln().b[1][0]++,ln().s[15]++,r[i.title]=!0)}),ln().s[16]++,{editorGroups:r}}getChildContext(){return ln().f[9]++,ln().s[17]++,{reactIconBase:{size:14,color:"#8e8e8e"}}}changeProperty(n,t,r){ln().f[10]++,ln().s[18]++,this.props.onLayerChanged(this.props.layerIndex,Khe(this.props.layer,n,t,r))}onGroupToggle(n,t){ln().f[11]++;const r=(ln().s[19]++,{...this.state.editorGroups,[n]:t});ln().s[20]++,this.setState({editorGroups:r})}renderGroupType(n,t){ln().f[12]++;let r=(ln().s[21]++,"");ln().s[22]++,this.props.layer.metadata?(ln().b[2][0]++,ln().s[23]++,r=this.props.layer.metadata["maputnik:comment"]):ln().b[2][1]++;const{errors:i,layerIndex:o}=(ln().s[24]++,this.props),s=(ln().s[25]++,{});ln().s[26]++,i.forEach(g=>{ln().f[13]++,ln().s[27]++,ln().b[4][0]++,g.parsed&&(ln().b[4][1]++,g.parsed.type==="layer")&&(ln().b[4][2]++,g.parsed.data.index==o)?(ln().b[3][0]++,ln().s[28]++,s[g.parsed.data.key]={message:g.parsed.data.message}):ln().b[3][1]++});let a;const f=(ln().s[29]++,this.props.layer);switch(ln().s[30]++,Object.prototype.hasOwnProperty.call(this.props.sources,f.source)?(ln().b[5][0]++,ln().s[31]++,a=this.props.sources[f.source].layers):ln().b[5][1]++,ln().s[32]++,n){case"layer":return ln().b[6][0]++,ln().s[33]++,N.jsxs("div",{children:[N.jsx(Jj,{value:this.props.layer.id,wdKey:"layer-editor.layer-id",error:s.id,onChange:g=>(ln().f[14]++,ln().s[34]++,this.props.onLayerIdChange(this.props.layerIndex,this.props.layer.id,g))}),N.jsx(e8,{disabled:!0,error:s.type,value:this.props.layer.type,onChange:g=>(ln().f[15]++,ln().s[35]++,this.props.onLayerChanged(this.props.layerIndex,The(this.props.layer,g)))}),(ln().b[7][0]++,this.props.layer.type!=="background"&&(ln().b[7][1]++,N.jsx(n8,{error:s.source,sourceIds:Object.keys(this.props.sources),value:this.props.layer.source,onChange:g=>(ln().f[16]++,ln().s[36]++,this.changeProperty(null,"source",g))}))),(ln().b[8][0]++,["background","raster","hillshade","heatmap"].indexOf(this.props.layer.type)<0&&(ln().b[8][1]++,N.jsx(r8,{error:s["source-layer"],sourceLayerIds:a,value:this.props.layer["source-layer"],onChange:g=>(ln().f[17]++,ln().s[37]++,this.changeProperty(null,"source-layer",g))}))),N.jsx(x6e,{error:s.minzoom,value:this.props.layer.minzoom,onChange:g=>(ln().f[18]++,ln().s[38]++,this.changeProperty(null,"minzoom",g))}),N.jsx(w6e,{error:s.maxzoom,value:this.props.layer.maxzoom,onChange:g=>(ln().f[19]++,ln().s[39]++,this.changeProperty(null,"maxzoom",g))}),N.jsx(M6e,{error:s.comment,value:r,onChange:g=>(ln().f[20]++,ln().s[40]++,this.changeProperty("metadata","maputnik:comment",g==""?(ln().b[9][0]++,void 0):(ln().b[9][1]++,g)))})]});case"filter":return ln().b[6][1]++,ln().s[41]++,N.jsx("div",{children:N.jsx("div",{className:"maputnik-filter-editor-wrapper",children:N.jsx(UW,{errors:s,filter:this.props.layer.filter,properties:this.props.vectorLayers[this.props.layer["source-layer"]],onChange:g=>(ln().f[21]++,ln().s[42]++,this.changeProperty(null,"filter",g))})})});case"properties":return ln().b[6][2]++,ln().s[43]++,N.jsx(C6e,{errors:s,layer:this.props.layer,groupFields:t,spec:this.props.spec,onChange:this.changeProperty.bind(this)});case"jsoneditor":return ln().b[6][3]++,ln().s[44]++,N.jsx(c8,{layer:this.props.layer,onChange:g=>{ln().f[22]++,ln().s[45]++,this.props.onLayerChanged(this.props.layerIndex,g)}});default:return ln().b[6][4]++,ln().s[46]++,N.jsx(N.Fragment,{})}}moveLayer(n){ln().f[23]++,ln().s[47]++,this.props.onMoveLayer({oldIndex:this.props.layerIndex,newIndex:this.props.layerIndex+n})}render(){ln().f[24]++;const n=(ln().s[48]++,[]),t=(ln().s[49]++,this.props.layer.type),r=(ln().s[50]++,mP(t).filter(a=>(ln().f[25]++,ln().s[51]++,ln().b[10][0]++,!(t==="background"&&(ln().b[10][1]++,a.type==="source")))).map(a=>{ln().f[26]++;const f=(ln().s[52]++,a.title.replace(/ /g,"_"));return ln().s[53]++,n.push(f),ln().s[54]++,N.jsx(b6e,{"data-wd-key":a.title,id:f,title:a.title,isActive:this.state.editorGroups[a.title],onActiveToggle:this.onGroupToggle.bind(this,a.title),children:this.renderGroupType(a.type,a.fields)},a.title)})),i=(ln().s[55]++,ln().b[11][0]++,this.props.layer.layout||(ln().b[11][1]++,{})),o=(ln().s[56]++,{delete:{text:"Delete",handler:()=>(ln().f[27]++,ln().s[57]++,this.props.onLayerDestroy(this.props.layerIndex))},duplicate:{text:"Duplicate",handler:()=>(ln().f[28]++,ln().s[58]++,this.props.onLayerCopy(this.props.layerIndex))},hide:{text:i.visibility==="none"?(ln().b[12][0]++,"Show"):(ln().b[12][1]++,"Hide"),handler:()=>(ln().f[29]++,ln().s[59]++,this.props.onLayerVisibilityToggle(this.props.layerIndex))},moveLayerUp:{text:"Move layer up",disabled:this.props.isFirstLayer,handler:()=>(ln().f[30]++,ln().s[60]++,this.moveLayer(-1))},moveLayerDown:{text:"Move layer down",disabled:this.props.isLastLayer,handler:()=>(ln().f[31]++,ln().s[61]++,this.moveLayer(1))}});function s(a,f){ln().f[32]++,ln().s[62]++,f.stopPropagation(),ln().s[63]++,o[a].handler()}return ln().s[64]++,N.jsxs("section",{className:"maputnik-layer-editor",role:"main","aria-label":"Layer editor",children:[N.jsx("header",{children:N.jsxs("div",{className:"layer-header",children:[N.jsxs("h2",{className:"layer-header__title",children:["Layer: ",XN(this.props.layer.id)]}),N.jsx("div",{className:"layer-header__info",children:N.jsxs(Gx.Wrapper,{className:"more-menu",onSelection:s,closeOnSelection:!1,children:[N.jsx(Gx.Button,{id:"skip-target-layer-editor","data-wd-key":"skip-target-layer-editor",className:"more-menu__button",title:"Layer options",children:N.jsx(OJ,{className:"more-menu__button__svg"})}),N.jsx(Gx.Menu,{children:N.jsx("ul",{className:"more-menu__menu",children:Object.keys(o).map(a=>{ln().f[33]++;const f=(ln().s[65]++,o[a]);return ln().s[66]++,N.jsx("li",{children:N.jsx(Gx.MenuItem,{value:a,className:"more-menu__menu__item",children:f.text})},a)})})})]})})]})}),N.jsx(zfe,{allowMultipleExpanded:!0,allowZeroExpanded:!0,preExpanded:n,children:r})]})}}nn(tO,"defaultProps",(ln().s[5]++,{onLayerChanged:()=>{ln().f[2]++},onLayerIdChange:()=>{ln().f[3]++},onLayerDestroyed:()=>{ln().f[4]++}})),nn(tO,"childContextTypes",(ln().s[6]++,{reactIconBase:Pr.object}));var gP=function(e,n,t){if(t||arguments.length===2)for(var r=0,i=n.length,o;r"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new L6e:typeof navigator<"u"?CP(navigator.userAgent):$6e()}function G6e(e){return e!==""&&W6e.reduce(function(n,t){var r=t[0],i=t[1];if(n)return n;var o=i.exec(e);return!!o&&[r,o]},!1)}function CP(e){var n=G6e(e);if(!n)return null;var t=n[0],r=n[1];if(t==="searchbot")return new R6e;var i=r[1]&&r[1].split(".").join("_").split("_").slice(0,3);i?i.length-1);class eC extends bn.Component{render(){return Ui().f[0]++,Ui().s[2]++,N.jsx("span",{className:"maputnik-icon-text",children:this.props.children})}}class AEe extends bn.Component{render(){return Ui().f[1]++,Ui().s[3]++,N.jsx("a",{className:Af("maputnik-toolbar-link",this.props.className),href:this.props.href,rel:"noopener noreferrer",target:"_blank","data-wd-key":"toolbar:link",children:this.props.children})}}class cEe extends bn.Component{render(){return Ui().f[2]++,Ui().s[4]++,N.jsx("div",{className:"maputnik-toolbar-select","data-wd-key":this.props.wdKey,children:this.props.children})}}class Vx extends bn.Component{render(){return Ui().f[3]++,Ui().s[5]++,N.jsx("button",{className:"maputnik-toolbar-action","data-wd-key":this.props.wdKey,onClick:this.props.onClick,children:this.props.children})}}class dEe extends bn.Component{constructor(){super(...arguments);nn(this,"state",(Ui().s[6]++,{isOpen:{settings:!1,sources:!1,open:!1,add:!1,export:!1}}));nn(this,"onSkip",(Ui().s[8]++,t=>{if(Ui().f[5]++,Ui().s[9]++,t==="map")Ui().b[0][0]++,Ui().s[10]++,document.querySelector(".maplibregl-canvas").focus();else{Ui().b[0][1]++;const r=(Ui().s[11]++,document.querySelector("#skip-target-"+t));Ui().s[12]++,r.focus()}}))}handleSelection(t){Ui().f[4]++,Ui().s[7]++,this.props.onSetMapState(t)}render(){Ui().f[6]++;const t=(Ui().s[13]++,[{id:"map",group:"general",title:"Map"},{id:"inspect",group:"general",title:"Inspect",disabled:this.props.renderer==="ol"},{id:"filter-deuteranopia",group:"color-accessibility",title:"Deuteranopia filter",disabled:!qx},{id:"filter-protanopia",group:"color-accessibility",title:"Protanopia filter",disabled:!qx},{id:"filter-tritanopia",group:"color-accessibility",title:"Tritanopia filter",disabled:!qx},{id:"filter-achromatopsia",group:"color-accessibility",title:"Achromatopsia filter",disabled:!qx}]),r=(Ui().s[14]++,t.find(i=>(Ui().f[7]++,Ui().s[15]++,i.id===this.props.mapState)));return Ui().s[16]++,N.jsx("nav",{className:"maputnik-toolbar",children:N.jsxs("div",{className:"maputnik-toolbar__inner",children:[N.jsxs("div",{className:"maputnik-toolbar-logo-container",children:[N.jsx("button",{"data-wd-key":"root:skip:layer-list",className:"maputnik-toolbar-skip",onClick:i=>(Ui().f[8]++,Ui().s[17]++,this.onSkip("layer-list")),children:"Layers list"}),N.jsx("button",{"data-wd-key":"root:skip:layer-editor",className:"maputnik-toolbar-skip",onClick:i=>(Ui().f[9]++,Ui().s[18]++,this.onSkip("layer-editor")),children:"Layer editor"}),N.jsx("button",{"data-wd-key":"root:skip:map-view",className:"maputnik-toolbar-skip",onClick:i=>(Ui().f[10]++,Ui().s[19]++,this.onSkip("map")),children:"Map view"}),N.jsxs("a",{className:"maputnik-toolbar-logo",target:"blank",rel:"noreferrer noopener",href:"https://github.com/maplibre/maputnik",children:[N.jsx("img",{src:lEe,alt:"Maputnik on GitHub"}),N.jsxs("h1",{children:[N.jsx("span",{className:"maputnik-toolbar-name",children:_P.name}),N.jsxs("span",{className:"maputnik-toolbar-version",children:["v",_P.version]})]})]})]}),N.jsxs("div",{className:"maputnik-toolbar__actions",role:"navigation","aria-label":"Toolbar",children:[N.jsxs(Vx,{wdKey:"nav:open",onClick:this.props.onToggleModal.bind(this,"open"),children:[N.jsx(pJ,{}),N.jsx(eC,{children:"Open"})]}),N.jsxs(Vx,{wdKey:"nav:export",onClick:this.props.onToggleModal.bind(this,"export"),children:[N.jsx(T6,{}),N.jsx(eC,{children:"Export"})]}),N.jsxs(Vx,{wdKey:"nav:sources",onClick:this.props.onToggleModal.bind(this,"sources"),children:[N.jsx(wJ,{}),N.jsx(eC,{children:"Data Sources"})]}),N.jsxs(Vx,{wdKey:"nav:settings",onClick:this.props.onToggleModal.bind(this,"settings"),children:[N.jsx(mJ,{}),N.jsx(eC,{children:"Style Settings"})]}),N.jsxs(cEe,{wdKey:"nav:inspect",children:[N.jsx(cJ,{}),N.jsxs("label",{children:["View",N.jsxs("select",{className:"maputnik-select","data-wd-key":"maputnik-select",onChange:i=>(Ui().f[11]++,Ui().s[20]++,this.handleSelection(i.target.value)),value:r==null?void 0:r.id,children:[t.filter(i=>(Ui().f[12]++,Ui().s[21]++,i.group==="general")).map(i=>(Ui().f[13]++,Ui().s[22]++,N.jsx("option",{value:i.id,disabled:i.disabled,"data-wd-key":i.id,children:i.title},i.id))),N.jsx("optgroup",{label:"Color accessibility",children:t.filter(i=>(Ui().f[14]++,Ui().s[23]++,i.group==="color-accessibility")).map(i=>(Ui().f[15]++,Ui().s[24]++,N.jsx("option",{value:i.id,disabled:i.disabled,children:i.title},i.id)))})]})]})]}),N.jsxs(AEe,{href:"https://github.com/maplibre/maputnik/wiki",children:[N.jsx(dJ,{}),N.jsx(eC,{children:"Help"})]})]})]})})}}function d4(){var e="/home/runner/work/maputnik/maputnik/src/components/ScrollContainer.tsx",n="d17a642b15310eb6111b086bd920c67ec86a8271",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ScrollContainer.tsx",statementMap:{0:{start:{line:5,column:4},end:{line:5,column:113}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:2},end:{line:4,column:3}},loc:{start:{line:4,column:11},end:{line:6,column:3}},line:4}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/ScrollContainer.tsx"],names:[],mappings:"AAQW;AARX,OAAO,WAAW;AAMlB,qBAAqB,wBAAwB,MAAM,UAAgC;AAAA,EACjF,SAAS;AACP,WAAO,oBAAC,SAAI,WAAU,6BACnB,eAAK,MAAM,UACd;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d17a642b15310eb6111b086bd920c67ec86a8271"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return d4=function(){return s},s}d4();class hEe extends bn.Component{render(){return d4().f[0]++,d4().s[0]++,N.jsx("div",{className:"maputnik-scroll-container",children:this.props.children})}}function sp(){var e="/home/runner/work/maputnik/maputnik/src/components/AppLayout.tsx",n="d25fdb432b603b186bd9e2fc84ff27ac61d9521e",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/AppLayout.tsx",statementMap:{0:{start:{line:6,column:29},end:{line:8,column:3}},1:{start:{line:10,column:4},end:{line:12,column:6}},2:{start:{line:15,column:4},end:{line:22,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:9,column:2},end:{line:9,column:3}},loc:{start:{line:9,column:20},end:{line:13,column:3}},line:9},1:{name:"(anonymous_1)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:11},end:{line:23,column:3}},line:14}},branchMap:{0:{loc:{start:{line:20,column:6},end:{line:20,column:123}},type:"binary-expr",locations:[{start:{line:20,column:6},end:{line:20,column:23}},{start:{line:20,column:43},end:{line:20,column:123}}],line:20}},s:{0:0,1:0,2:0},f:{0:0,1:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/AppLayout.tsx"],names:[],mappings:"AAyBW,SAEL,KAFK;AAzBX,OAAO,WAAW;AAClB,OAAO,eAAe;AACtB,OAAO,qBAAqB;AAW5B,MAAM,kBAAkB,MAAM,UAA0B;AAAA,EACtD,OAAO,oBAAoB;AAAA,IACzB,eAAe,UAAU;AAAA,EAC3B;AAAA,EAEA,kBAAkB;AAChB,WAAO;AAAA,MACL,eAAe,EAAE,MAAM,GAAG;AAAA,IAC5B;AAAA,EACF;AAAA,EAEA,SAAS;AACP,WAAO,qBAAC,SAAI,WAAU,mBACnB;AAAA,WAAK,MAAM;AAAA,MACZ,oBAAC,SAAI,WAAU,wBACZ,eAAK,MAAM,WACd;AAAA,MACA,oBAAC,SAAI,WAAU,0BACb,8BAAC,mBACE,eAAK,MAAM,aACd,GACF;AAAA,MACC,KAAK,MAAM;AAAA,MACX,KAAK,MAAM,UAAU,oBAAC,SAAI,WAAU,0BAClC,eAAK,MAAM,QACd;AAAA,MAEC,KAAK,MAAM;AAAA,OACd;AAAA,EACF;AACF;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d25fdb432b603b186bd9e2fc84ff27ac61d9521e"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return sp=function(){return s},s}sp();class eG extends bn.Component{getChildContext(){return sp().f[0]++,sp().s[1]++,{reactIconBase:{size:14}}}render(){return sp().f[1]++,sp().s[2]++,N.jsxs("div",{className:"maputnik-layout",children:[this.props.toolbar,N.jsx("div",{className:"maputnik-layout-list",children:this.props.layerList}),N.jsx("div",{className:"maputnik-layout-drawer",children:N.jsx(hEe,{children:this.props.layerEditor})}),this.props.map,(sp().b[0][0]++,this.props.bottom&&(sp().b[0][1]++,N.jsx("div",{className:"maputnik-layout-bottom",children:this.props.bottom}))),this.props.modals]})}}nn(eG,"childContextTypes",(sp().s[0]++,{reactIconBase:Pr.object}));function za(){var e="/home/runner/work/maputnik/maputnik/src/components/AppMessagePanel.tsx",n="e5f88535075aece22d8ac3a6577a6cf140d2a75b",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/AppMessagePanel.tsx",statementMap:{0:{start:{line:5,column:24},end:{line:8,column:3}},1:{start:{line:10,column:35},end:{line:10,column:45}},2:{start:{line:11,column:19},end:{line:37,column:6}},3:{start:{line:13,column:6},end:{line:35,column:7}},4:{start:{line:14,column:27},end:{line:14,column:32}},5:{start:{line:15,column:24},end:{line:15,column:73}},6:{start:{line:16,column:8},end:{line:32,column:13}},7:{start:{line:27,column:31},end:{line:27,column:74}},8:{start:{line:34,column:8},end:{line:34,column:32}},9:{start:{line:36,column:6},end:{line:36,column:120}},10:{start:{line:38,column:18},end:{line:40,column:6}},11:{start:{line:39,column:6},end:{line:39,column:68}},12:{start:{line:41,column:4},end:{line:44,column:9}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:19},end:{line:6,column:20}},loc:{start:{line:6,column:25},end:{line:7,column:5}},line:6},1:{name:"(anonymous_1)",decl:{start:{line:9,column:2},end:{line:9,column:3}},loc:{start:{line:9,column:11},end:{line:45,column:3}},line:9},2:{name:"(anonymous_2)",decl:{start:{line:11,column:42},end:{line:11,column:43}},loc:{start:{line:11,column:58},end:{line:37,column:5}},line:11},3:{name:"(anonymous_3)",decl:{start:{line:27,column:25},end:{line:27,column:26}},loc:{start:{line:27,column:31},end:{line:27,column:74}},line:27},4:{name:"(anonymous_4)",decl:{start:{line:38,column:40},end:{line:38,column:41}},loc:{start:{line:38,column:50},end:{line:40,column:5}},line:38}},branchMap:{0:{loc:{start:{line:13,column:6},end:{line:35,column:7}},type:"if",locations:[{start:{line:13,column:6},end:{line:35,column:7}},{start:{line:33,column:13},end:{line:35,column:7}}],line:13},1:{loc:{start:{line:13,column:10},end:{line:13,column:55}},type:"binary-expr",locations:[{start:{line:13,column:10},end:{line:13,column:22}},{start:{line:13,column:26},end:{line:13,column:55}}],line:13},2:{loc:{start:{line:21,column:10},end:{line:31,column:14}},type:"binary-expr",locations:[{start:{line:21,column:10},end:{line:21,column:50}},{start:{line:21,column:70},end:{line:31,column:14}}],line:21}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/AppMessagePanel.tsx"],names:[],mappings:"AA2BkB,SAEJ,UAFI,KAEJ,YAFI;AA3BlB,OAAO,WAAW;AAClB,SAAQ,qBAAoB;AAY5B,qBAAqB,wBAAwB,MAAM,UAAgC;AAAA,EACjF,OAAO,eAAe;AAAA,IACpB,eAAe,MAAM;AAAA,IAAC;AAAA,EACxB;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,mBAAkB,IAAI,KAAK;AAClC,UAAM,SAAS,KAAK,MAAM,QAAQ,IAAI,CAAC,OAAY,QAAQ;AACzD,UAAI;AACJ,UAAI,MAAM,UAAU,MAAM,OAAO,SAAS,SAAS;AACjD,cAAM,EAAC,OAAM,IAAI;AACjB,cAAM,UAAU,KAAK,MAAM,UAAU,OAAO,OAAO,KAAK,KAAK,EAAE;AAC/D,kBACE,iCAAE;AAAA;AAAA,UACM,oBAAC,UAAM,wBAAc,OAAO,GAAE;AAAA,UAAO;AAAA,UAAG,OAAO,KAAK;AAAA,UACzD,uBAAuB,OAAO,KAAK,SAClC,iCAAE;AAAA;AAAA,YAEA;AAAA,cAAC;AAAA;AAAA,gBACC,WAAU;AAAA,gBACV,SAAS,MAAM,KAAK,MAAM,cAAe,OAAO,KAAK,KAAK;AAAA,gBAC3D;AAAA;AAAA,YAED;AAAA,aACF;AAAA,WAEJ;AAAA,MAEJ,OACK;AACH,kBAAU,MAAM;AAAA,MAClB;AACA,aAAO,oBAAC,OAAqB,WAAU,gCACpC,qBADY,WAAS,GAExB;AAAA,IACF,CAAC;AAED,UAAM,QAAQ,KAAK,MAAM,OAAO,IAAI,CAAC,GAAG,MAAM;AAC5C,aAAO,oBAAC,OAAmB,eAAZ,UAAQ,CAAM;AAAA,IAC/B,CAAC;AAED,WAAO,qBAAC,SAAI,WAAU,0BACnB;AAAA;AAAA,MACA;AAAA,OACH;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e5f88535075aece22d8ac3a6577a6cf140d2a75b"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return za=function(){return s},s}za();class tG extends bn.Component{render(){var i,o;za().f[1]++;const{selectedLayerIndex:n}=(za().s[1]++,this.props),t=(za().s[2]++,(i=this.props.errors)==null?void 0:i.map((s,a)=>{var g;za().f[2]++;let f;if(za().s[3]++,za().b[1][0]++,s.parsed&&(za().b[1][1]++,s.parsed.type==="layer")){za().b[0][0]++;const{parsed:x}=(za().s[4]++,s),k=(za().s[5]++,(g=this.props.mapStyle)==null?void 0:g.layers[x.data.index].id);za().s[6]++,f=N.jsxs(N.Fragment,{children:["Layer ",N.jsx("span",{children:XN(k)}),": ",x.data.message,(za().b[2][0]++,n!==x.data.index&&(za().b[2][1]++,N.jsxs(N.Fragment,{children:[" — ",N.jsx("button",{className:"maputnik-message-panel__switch-button",onClick:()=>(za().f[3]++,za().s[7]++,this.props.onLayerSelect(x.data.index)),children:"switch to layer"})]})))]})}else za().b[0][1]++,za().s[8]++,f=s.message;return za().s[9]++,N.jsx("p",{className:"maputnik-message-panel-error",children:f},"error-"+a)})),r=(za().s[10]++,(o=this.props.infos)==null?void 0:o.map((s,a)=>(za().f[4]++,za().s[11]++,N.jsx("p",{children:s},"info-"+a))));return za().s[12]++,N.jsxs("div",{className:"maputnik-message-panel",children:[t,r]})}}nn(tG,"defaultProps",(za().s[0]++,{onLayerSelect:()=>{za().f[0]++}}));function h4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldArray.tsx",n="a416dfabb7eaa48bd0505cf98cb9c66326bca3ec",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:165}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldArray.tsx"],names:[],mappings:"AAcM;AAdN,OAAO,WAAW;AAClB,OAAO,gBAAwD;AAC/D,OAAO,cAAc;AASrB,qBAAqB,mBAAmB,MAAM,UAA2B;AAAA,EACvE,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC9D,8BAAC,cAAY,GAAG,KAAK,OAAO,GAC9B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a416dfabb7eaa48bd0505cf98cb9c66326bca3ec"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return h4=function(){return s},s}h4();class f4 extends bn.Component{render(){return h4().f[0]++,h4().s[0]++,N.jsx(E_,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(NN,{...this.props})})}}function p4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldNumber.tsx",n="4931f85d3ebf1a60a85ac9883e78e028b7a388d8",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldNumber.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:163}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldNumber.tsx"],names:[],mappings:"AAgBM;AAhBN,OAAO,WAAW;AAClB,OAAO,iBAAqC;AAC5C,OAAO,WAAW;AAWlB,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC3D,8BAAC,eAAa,GAAG,KAAK,OAAO,GAC/B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4931f85d3ebf1a60a85ac9883e78e028b7a388d8"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return p4=function(){return s},s}p4();class lp extends bn.Component{render(){return p4().f[0]++,p4().s[0]++,N.jsx(Uo,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(pf,{...this.props})})}}function m4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldUrl.tsx",n="a176a83ddcea7ca7f45b0bf957355a9e0c40a3af",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldUrl.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:160}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldUrl.tsx"],names:[],mappings:"AAiBQ;AAjBR,OAAO,WAAW;AAClB,OAAO,cAAgD;AACvD,OAAO,WAAW;AAWlB,qBAAqB,iBAAiB,MAAM,UAAyB;AAAA,EACnE,SAAU;AACR,WACE,oBAAC,SAAM,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WACpD,8BAAC,YAAU,GAAG,KAAK,OAAO,GAC5B;AAAA,EAEJ;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a176a83ddcea7ca7f45b0bf957355a9e0c40a3af"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return m4=function(){return s},s}m4();class O_ extends bn.Component{render(){return m4().f[0]++,m4().s[0]++,N.jsx(Uo,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(Y8,{...this.props})})}}function g4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldSelect.tsx",n="ed4136288b91381a6bd6755cdb2ea1dcf45e2f6b",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldSelect.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:163}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldSelect.tsx"],names:[],mappings:"AAgBM;AAhBN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,iBAAqC;AAW5C,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EACzE,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC3D,8BAAC,eAAa,GAAG,KAAK,OAAM,GAC9B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"ed4136288b91381a6bd6755cdb2ea1dcf45e2f6b"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return g4=function(){return s},s}g4();class V8 extends bn.Component{render(){return g4().f[0]++,g4().s[0]++,N.jsx(Uo,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(w1,{...this.props})})}}function y4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldEnum.tsx",n="5745e67ee75c0f352c022256ef8bf31e8fa7367f",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldEnum.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:164}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldEnum.tsx"],names:[],mappings:"AAgBM;AAhBN,OAAO,WAAW;AAClB,OAAO,eAAiC;AACxC,OAAO,cAAc;AAWrB,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC9D,8BAAC,aAAW,GAAG,KAAK,OAAO,GAC7B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5745e67ee75c0f352c022256ef8bf31e8fa7367f"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return y4=function(){return s},s}y4();class fEe extends bn.Component{render(){return y4().f[0]++,y4().s[0]++,N.jsx(E_,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx($8,{...this.props})})}}function v4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldColor.tsx",n="4d9e98bd5e7819496a7ef6b66981b81e318fe1bf",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldColor.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:162}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldColor.tsx"],names:[],mappings:"AAgBM;AAhBN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,gBAAmC;AAW1C,qBAAqB,mBAAmB,MAAM,UAA2B;AAAA,EACvE,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAAO,WAAW,KAAK,MAAM,WAC3D,8BAAC,cAAY,GAAG,KAAK,OAAO,GAC9B;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"4d9e98bd5e7819496a7ef6b66981b81e318fe1bf"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return v4=function(){return s},s}v4();class pEe extends bn.Component{render(){return v4().f[0]++,v4().s[0]++,N.jsx(Uo,{label:this.props.label,fieldSpec:this.props.fieldSpec,children:N.jsx(WN,{...this.props})})}}function H8(){var e="/home/runner/work/maputnik/maputnik/src/libs/field-spec-additional.ts",n="97a1ce3b1515c5a2f7a23d6b76358b8fb48705ec",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/field-spec-additional.ts",statementMap:{0:{start:{line:1,column:13},end:{line:16,column:1}}},fnMap:{},branchMap:{},s:{0:0},f:{},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/field-spec-additional.ts"],names:[],mappings:"AAAA,MAAM,OAAO;AAAA,EACX,UAAU;AAAA,IACR,uBAAuB;AAAA,MACrB,OAAO;AAAA,MACP,KAAK;AAAA,IACP;AAAA,IACA,4BAA4B;AAAA,MAC1B,OAAO;AAAA,MACP,KAAK;AAAA,IACP;AAAA,IACA,gBAAgB;AAAA,MACd,OAAO;AAAA,MACP,KAAK;AAAA,IACP;AAAA,EACF;AACF;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"97a1ce3b1515c5a2f7a23d6b76358b8fb48705ec"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return H8=function(){return s},s}H8();const Yh=(H8().s[0]++,{maputnik:{maptiler_access_token:{label:"MapTiler Access Token",doc:"Public access token for MapTiler Cloud."},thunderforest_access_token:{label:"Thunderforest Access Token",doc:"Public access token for Thunderforest services."},style_renderer:{label:"Style Renderer",doc:"Choose the default Maputnik renderer for this style."}}});function oi(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalSettings.tsx",n="b694e94f243a11fbdf621abee61c98955da7068f",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalSettings.tsx",statementMap:{0:{start:{line:15,column:23},end:{line:17,column:5}},1:{start:{line:18,column:4},end:{line:22,column:5}},2:{start:{line:19,column:6},end:{line:19,column:34}},3:{start:{line:21,column:6},end:{line:21,column:35}},4:{start:{line:23,column:4},end:{line:26,column:7}},5:{start:{line:29,column:18},end:{line:31,column:5}},6:{start:{line:32,column:4},end:{line:36,column:5}},7:{start:{line:33,column:6},end:{line:33,column:29}},8:{start:{line:35,column:6},end:{line:35,column:30}},9:{start:{line:37,column:4},end:{line:40,column:7}},10:{start:{line:43,column:20},end:{line:45,column:5}},11:{start:{line:46,column:4},end:{line:50,column:5}},12:{start:{line:47,column:6},end:{line:47,column:31}},13:{start:{line:49,column:6},end:{line:49,column:32}},14:{start:{line:51,column:4},end:{line:54,column:7}},15:{start:{line:57,column:25},end:{line:59,column:5}},16:{start:{line:60,column:4},end:{line:64,column:5}},17:{start:{line:61,column:6},end:{line:61,column:36}},18:{start:{line:63,column:6},end:{line:63,column:37}},19:{start:{line:65,column:4},end:{line:65,column:44}},20:{start:{line:68,column:21},end:{line:68,column:55}},21:{start:{line:69,column:51},end:{line:69,column:61}},22:{start:{line:70,column:18},end:{line:70,column:49}},23:{start:{line:71,column:23},end:{line:71,column:59}},24:{start:{line:72,column:20},end:{line:72,column:53}},25:{start:{line:73,column:4},end:{line:283,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:14,column:2},end:{line:14,column:3}},loc:{start:{line:14,column:44},end:{line:27,column:3}},line:14},1:{name:"(anonymous_1)",decl:{start:{line:28,column:2},end:{line:28,column:3}},loc:{start:{line:28,column:39},end:{line:41,column:3}},line:28},2:{name:"(anonymous_2)",decl:{start:{line:42,column:2},end:{line:42,column:3}},loc:{start:{line:42,column:41},end:{line:55,column:3}},line:42},3:{name:"(anonymous_3)",decl:{start:{line:56,column:2},end:{line:56,column:3}},loc:{start:{line:56,column:39},end:{line:66,column:3}},line:56},4:{name:"(anonymous_4)",decl:{start:{line:67,column:2},end:{line:67,column:3}},loc:{start:{line:67,column:11},end:{line:284,column:3}},line:67}},branchMap:{0:{loc:{start:{line:18,column:4},end:{line:22,column:5}},type:"if",locations:[{start:{line:18,column:4},end:{line:22,column:5}},{start:{line:20,column:11},end:{line:22,column:5}}],line:18},1:{loc:{start:{line:32,column:4},end:{line:36,column:5}},type:"if",locations:[{start:{line:32,column:4},end:{line:36,column:5}},{start:{line:34,column:11},end:{line:36,column:5}}],line:32},2:{loc:{start:{line:46,column:4},end:{line:50,column:5}},type:"if",locations:[{start:{line:46,column:4},end:{line:50,column:5}},{start:{line:48,column:11},end:{line:50,column:5}}],line:46},3:{loc:{start:{line:60,column:4},end:{line:64,column:5}},type:"if",locations:[{start:{line:60,column:4},end:{line:64,column:5}},{start:{line:62,column:11},end:{line:64,column:5}}],line:60},4:{loc:{start:{line:68,column:21},end:{line:68,column:55}},type:"binary-expr",locations:[{start:{line:68,column:21},end:{line:68,column:49}},{start:{line:68,column:53},end:{line:68,column:55}}],line:68},5:{loc:{start:{line:70,column:18},end:{line:70,column:49}},type:"binary-expr",locations:[{start:{line:70,column:18},end:{line:70,column:43}},{start:{line:70,column:47},end:{line:70,column:49}}],line:70},6:{loc:{start:{line:71,column:23},end:{line:71,column:59}},type:"binary-expr",locations:[{start:{line:71,column:23},end:{line:71,column:53}},{start:{line:71,column:57},end:{line:71,column:59}}],line:71},7:{loc:{start:{line:72,column:20},end:{line:72,column:53}},type:"binary-expr",locations:[{start:{line:72,column:20},end:{line:72,column:47}},{start:{line:72,column:51},end:{line:72,column:53}}],line:72},8:{loc:{start:{line:148,column:21},end:{line:148,column:42}},type:"binary-expr",locations:[{start:{line:148,column:21},end:{line:148,column:36}},{start:{line:148,column:40},end:{line:148,column:42}}],line:148},9:{loc:{start:{line:277,column:21},end:{line:277,column:62}},type:"binary-expr",locations:[{start:{line:277,column:21},end:{line:277,column:50}},{start:{line:277,column:54},end:{line:277,column:62}}],line:277}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/ModalSettings.tsx"],names:[],mappings:"AA6GM,SACE,KADF;AA7GN,OAAO,WAAW;AAClB,OAAO,YAAY;AAGnB,OAAO,gBAAgB;AACvB,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,cAAc;AACrB,OAAO,iBAAiB;AACxB,OAAO,eAAe;AACtB,OAAO,gBAAgB;AACvB,OAAO,WAAW;AAClB,OAAO,yBAAyB;AAUhC,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,yBAAyB,UAAyC,OAA2B;AAC3F,UAAM,aAAa;AAAA,MACjB,GAAG,KAAK,MAAM,SAAS;AAAA,IACzB;AAEA,QAAI,UAAU,QAAW;AACvB,aAAO,WAAW,QAAQ;AAAA,IAC5B,OACK;AACH,iBAAW,QAAQ,IAAI;AAAA,IACzB;AAEA,SAAK,MAAM,eAAe;AAAA,MACxB,GAAG,KAAK,MAAM;AAAA,MACd;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,oBAAoB,UAAoC,OAAY;AAClE,UAAM,QAAQ;AAAA,MACZ,GAAG,KAAK,MAAM,SAAS;AAAA,IACzB;AAEA,QAAI,UAAU,QAAW;AACvB,aAAO,MAAM,QAAQ;AAAA,IACvB,OACK;AAEH,YAAM,QAAQ,IAAI;AAAA,IACpB;AAEA,SAAK,MAAM,eAAe;AAAA,MACxB,GAAG,KAAK,MAAM;AAAA,MACd;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,sBAAsB,UAAsC,OAAY;AACtE,UAAM,UAAU;AAAA,MACd,GAAG,KAAK,MAAM,SAAS;AAAA,IACzB;AAEA,QAAI,UAAU,QAAW;AACvB,aAAO,QAAQ,QAAQ;AAAA,IACzB,OACK;AAEH,cAAQ,QAAQ,IAAI;AAAA,IACtB;AAEA,SAAK,MAAM,eAAe;AAAA,MACxB,GAAG,KAAK,MAAM;AAAA,MACd;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,oBAAoB,UAA8C,OAAY;AAC5E,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,IAChB;AAEA,QAAI,UAAU,QAAW;AAEvB,aAAO,aAAa,QAAQ;AAAA,IAC9B,OACK;AAEH,mBAAa,QAAQ,IAAI;AAAA,IAC3B;AACA,SAAK,MAAM,eAAe,YAAY;AAAA,EACxC;AAAA,EAEA,SAAS;AACP,UAAM,WAAW,KAAK,MAAM,SAAS,YAAY,CAAC;AAClD,UAAM,EAAC,0BAA0B,SAAQ,IAAI,KAAK;AAElD,UAAM,QAAQ,KAAK,MAAM,SAAS,SAAS,CAAC;AAC5C,UAAM,aAAa,KAAK,MAAM,SAAS,cAAc,CAAC;AACtD,UAAM,UAAU,KAAK,MAAM,SAAS,WAAW,CAAC;AAEhD,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,eAAY;AAAA,QACZ,QAAQ,KAAK,MAAM;AAAA,QACnB,cAAc,KAAK,MAAM;AAAA,QACzB,OAAO;AAAA,QAEP,+BAAC,SAAI,WAAU,kBACb;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,eAAY;AAAA,cACZ,OAAO,KAAK,MAAM,SAAS;AAAA,cAC3B,UAAU,KAAK,oBAAoB,KAAK,MAAM,MAAM;AAAA;AAAA,UACtD;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,EAAC,KAAK,8DAA6D;AAAA,cAC9E,eAAY;AAAA,cACZ,OAAQ,KAAK,MAAM,SAAiB;AAAA,cACpC,UAAU,KAAK,oBAAoB,KAAK,MAAM,OAAO;AAAA;AAAA,UACvD;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,WAAW,OAAO,MAAM;AAAA,cACxB,OAAM;AAAA,cACN,eAAY;AAAA,cACZ,OAAO,KAAK,MAAM,SAAS;AAAA,cAC3B,UAAU,KAAK,oBAAoB,KAAK,MAAM,QAAQ;AAAA;AAAA,UACxD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAM;AAAA,cACN,WAAW,OAAO,MAAM;AAAA,cACxB,eAAY;AAAA,cACZ,OAAO,KAAK,MAAM,SAAS;AAAA,cAC3B,UAAU,KAAK,oBAAoB,KAAK,MAAM,QAAQ;AAAA;AAAA,UACxD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,oBAAoB,SAAS,sBAAsB;AAAA,cAC1D,WAAW,oBAAoB,SAAS;AAAA,cACxC,eAAY;AAAA,cACZ,OAAO,SAAS,oCAAoC;AAAA,cACpD,UAAU,yBAAyB,KAAK,MAAM,oCAAoC;AAAA;AAAA,UACpF;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,oBAAoB,SAAS,2BAA2B;AAAA,cAC/D,WAAW,oBAAoB,SAAS;AAAA,cACxC,eAAY;AAAA,cACZ,OAAO,SAAS,qCAAqC;AAAA,cACrD,UAAU,yBAAyB,KAAK,MAAM,qCAAqC;AAAA;AAAA,UACrF;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,QAAQ;AAAA,cACR,MAAK;AAAA,cACL,OAAO,SAAS,UAAU,CAAC;AAAA,cAC3B,SAAS,CAAC,GAAG,CAAC;AAAA,cACd,UAAU,KAAK,oBAAoB,KAAK,MAAM,QAAQ;AAAA;AAAA,UACxD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,OAAO,SAAS;AAAA,cAChB,SAAS;AAAA,cACT,UAAU,KAAK,oBAAoB,KAAK,MAAM,MAAM;AAAA;AAAA,UACtD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,OAAO,SAAS;AAAA,cAChB,SAAS,OAAO,MAAM,QAAQ;AAAA,cAC9B,UAAU,KAAK,oBAAoB,KAAK,MAAM,SAAS;AAAA;AAAA,UACzD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,OAAO,SAAS;AAAA,cAChB,SAAS,OAAO,MAAM,MAAM;AAAA,cAC5B,UAAU,KAAK,oBAAoB,KAAK,MAAM,OAAO;AAAA;AAAA,UACvD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,MAAK;AAAA,cACL,OAAO,MAAM;AAAA,cACb,SAAS,OAAO,KAAK,OAAO,MAAM,OAAO,MAAM;AAAA,cAC/C,SAAS,OAAO,MAAM,OAAO;AAAA,cAC7B,UAAU,KAAK,oBAAoB,KAAK,MAAM,QAAQ;AAAA;AAAA,UACxD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,OAAO,MAAM;AAAA,cACb,SAAS,OAAO,MAAM,MAAM;AAAA,cAC5B,UAAU,KAAK,oBAAoB,KAAK,MAAM,OAAO;AAAA;AAAA,UACvD;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,OAAO,MAAM;AAAA,cACb,SAAS,OAAO,MAAM,UAAU;AAAA,cAChC,UAAU,KAAK,oBAAoB,KAAK,MAAM,WAAW;AAAA;AAAA,UAC3D;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,MAAM;AAAA,cACxB,MAAK;AAAA,cACL,QAAQ,OAAO,MAAM,SAAS;AAAA,cAC9B,OAAO,MAAM;AAAA,cACb,SAAS,OAAO,MAAM,SAAS;AAAA,cAC/B,UAAU,KAAK,oBAAoB,KAAK,MAAM,UAAU;AAAA;AAAA,UAC1D;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,QAAQ;AAAA,cAC1B,eAAY;AAAA,cACZ,OAAO,QAAQ;AAAA,cACf,UAAU,KAAK,sBAAsB,KAAK,MAAM,QAAQ;AAAA;AAAA,UAC1D;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,QAAQ;AAAA,cAC1B,OAAO,QAAQ;AAAA,cACf,SAAS,OAAO,QAAQ,aAAa;AAAA,cACrC,UAAU,KAAK,sBAAsB,KAAK,MAAM,cAAc;AAAA;AAAA,UAChE;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,WAAW;AAAA,cAC7B,OAAO,WAAW;AAAA,cAClB,SAAS,OAAO,WAAW,MAAM;AAAA,cACjC,UAAU,KAAK,yBAAyB,KAAK,MAAM,OAAO;AAAA;AAAA,UAC5D;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO;AAAA,cACP,WAAW,OAAO,WAAW;AAAA,cAC7B,OAAO,WAAW;AAAA,cAClB,SAAS,OAAO,WAAW,SAAS;AAAA,cACpC,UAAU,KAAK,yBAAyB,KAAK,MAAM,UAAU;AAAA;AAAA,UAC/D;AAAA,UAEA;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,oBAAoB,SAAS,eAAe;AAAA,cACnD,WAAW,oBAAoB,SAAS;AAAA,cACxC,eAAY;AAAA,cACZ,SAAS;AAAA,gBACP,CAAC,UAAU,eAAe;AAAA,gBAC1B,CAAC,MAAM,4BAA4B;AAAA,cACrC;AAAA,cACA,OAAO,SAAS,mBAAmB,KAAK;AAAA,cACxC,UAAU,yBAAyB,KAAK,MAAM,mBAAmB;AAAA;AAAA,UACnE;AAAA,WACF;AAAA;AAAA,IACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b694e94f243a11fbdf621abee61c98955da7068f"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return oi=function(){return s},s}oi();class mEe extends bn.Component{changeTransitionProperty(n,t){oi().f[0]++;const r=(oi().s[0]++,{...this.props.mapStyle.transition});oi().s[1]++,t===void 0?(oi().b[0][0]++,oi().s[2]++,delete r[n]):(oi().b[0][1]++,oi().s[3]++,r[n]=t),oi().s[4]++,this.props.onStyleChanged({...this.props.mapStyle,transition:r})}changeLightProperty(n,t){oi().f[1]++;const r=(oi().s[5]++,{...this.props.mapStyle.light});oi().s[6]++,t===void 0?(oi().b[1][0]++,oi().s[7]++,delete r[n]):(oi().b[1][1]++,oi().s[8]++,r[n]=t),oi().s[9]++,this.props.onStyleChanged({...this.props.mapStyle,light:r})}changeTerrainProperty(n,t){oi().f[2]++;const r=(oi().s[10]++,{...this.props.mapStyle.terrain});oi().s[11]++,t===void 0?(oi().b[2][0]++,oi().s[12]++,delete r[n]):(oi().b[2][1]++,oi().s[13]++,r[n]=t),oi().s[14]++,this.props.onStyleChanged({...this.props.mapStyle,terrain:r})}changeStyleProperty(n,t){oi().f[3]++;const r=(oi().s[15]++,{...this.props.mapStyle});oi().s[16]++,t===void 0?(oi().b[3][0]++,oi().s[17]++,delete r[n]):(oi().b[3][1]++,oi().s[18]++,r[n]=t),oi().s[19]++,this.props.onStyleChanged(r)}render(){oi().f[4]++;const n=(oi().s[20]++,oi().b[4][0]++,this.props.mapStyle.metadata||(oi().b[4][1]++,{})),{onChangeMetadataProperty:t,mapStyle:r}=(oi().s[21]++,this.props),i=(oi().s[22]++,oi().b[5][0]++,this.props.mapStyle.light||(oi().b[5][1]++,{})),o=(oi().s[23]++,oi().b[6][0]++,this.props.mapStyle.transition||(oi().b[6][1]++,{})),s=(oi().s[24]++,oi().b[7][0]++,this.props.mapStyle.terrain||(oi().b[7][1]++,{}));return oi().s[25]++,N.jsx(_f,{"data-wd-key":"modal:settings",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:"Style Settings",children:N.jsxs("div",{className:"modal:settings",children:[N.jsx(uh,{label:"Name",fieldSpec:Ji.$root.name,"data-wd-key":"modal:settings.name",value:this.props.mapStyle.name,onChange:this.changeStyleProperty.bind(this,"name")}),N.jsx(uh,{label:"Owner",fieldSpec:{doc:"Owner ID of the style. Used by Mapbox or future style APIs."},"data-wd-key":"modal:settings.owner",value:this.props.mapStyle.owner,onChange:this.changeStyleProperty.bind(this,"owner")}),N.jsx(O_,{fieldSpec:Ji.$root.sprite,label:"Sprite URL","data-wd-key":"modal:settings.sprite",value:this.props.mapStyle.sprite,onChange:this.changeStyleProperty.bind(this,"sprite")}),N.jsx(O_,{label:"Glyphs URL",fieldSpec:Ji.$root.glyphs,"data-wd-key":"modal:settings.glyphs",value:this.props.mapStyle.glyphs,onChange:this.changeStyleProperty.bind(this,"glyphs")}),N.jsx(uh,{label:Yh.maputnik.maptiler_access_token.label,fieldSpec:Yh.maputnik.maptiler_access_token,"data-wd-key":"modal:settings.maputnik:openmaptiles_access_token",value:n["maputnik:openmaptiles_access_token"],onChange:t.bind(this,"maputnik:openmaptiles_access_token")}),N.jsx(uh,{label:Yh.maputnik.thunderforest_access_token.label,fieldSpec:Yh.maputnik.thunderforest_access_token,"data-wd-key":"modal:settings.maputnik:thunderforest_access_token",value:n["maputnik:thunderforest_access_token"],onChange:t.bind(this,"maputnik:thunderforest_access_token")}),N.jsx(f4,{label:"Center",fieldSpec:Ji.$root.center,length:2,type:"number",value:(oi().b[8][0]++,r.center||(oi().b[8][1]++,[])),default:[0,0],onChange:this.changeStyleProperty.bind(this,"center")}),N.jsx(lp,{label:"Zoom",fieldSpec:Ji.$root.zoom,value:r.zoom,default:0,onChange:this.changeStyleProperty.bind(this,"zoom")}),N.jsx(lp,{label:"Bearing",fieldSpec:Ji.$root.bearing,value:r.bearing,default:Ji.$root.bearing.default,onChange:this.changeStyleProperty.bind(this,"bearing")}),N.jsx(lp,{label:"Pitch",fieldSpec:Ji.$root.pitch,value:r.pitch,default:Ji.$root.pitch.default,onChange:this.changeStyleProperty.bind(this,"pitch")}),N.jsx(fEe,{label:"Light anchor",fieldSpec:Ji.light.anchor,name:"light-anchor",value:i.anchor,options:Object.keys(Ji.light.anchor.values),default:Ji.light.anchor.default,onChange:this.changeLightProperty.bind(this,"anchor")}),N.jsx(pEe,{label:"Light color",fieldSpec:Ji.light.color,value:i.color,default:Ji.light.color.default,onChange:this.changeLightProperty.bind(this,"color")}),N.jsx(lp,{label:"Light intensity",fieldSpec:Ji.light.intensity,value:i.intensity,default:Ji.light.intensity.default,onChange:this.changeLightProperty.bind(this,"intensity")}),N.jsx(f4,{label:"Light position",fieldSpec:Ji.light.position,type:"number",length:Ji.light.position.length,value:i.position,default:Ji.light.position.default,onChange:this.changeLightProperty.bind(this,"position")}),N.jsx(uh,{label:"Terrain source",fieldSpec:Ji.terrain.source,"data-wd-key":"modal:settings.maputnik:terrain_source",value:s.source,onChange:this.changeTerrainProperty.bind(this,"source")}),N.jsx(lp,{label:"Terrain exaggeration",fieldSpec:Ji.terrain.exaggeration,value:s.exaggeration,default:Ji.terrain.exaggeration.default,onChange:this.changeTerrainProperty.bind(this,"exaggeration")}),N.jsx(lp,{label:"Transition delay",fieldSpec:Ji.transition.delay,value:o.delay,default:Ji.transition.delay.default,onChange:this.changeTransitionProperty.bind(this,"delay")}),N.jsx(lp,{label:"Transition duration",fieldSpec:Ji.transition.duration,value:o.duration,default:Ji.transition.duration.default,onChange:this.changeTransitionProperty.bind(this,"duration")}),N.jsx(V8,{label:Yh.maputnik.style_renderer.label,fieldSpec:Yh.maputnik.style_renderer,"data-wd-key":"modal:settings.maputnik:renderer",options:[["mlgljs","MapLibreGL JS"],["ol","Open Layers (experimental)"]],value:(oi().b[9][0]++,n["maputnik:renderer"]||(oi().b[9][1]++,"mlgljs")),onChange:t.bind(this,"maputnik:renderer")})]})})}}var nG={exports:{}};(function(e,n){(function(t,r,i){e.exports=i(),e.exports.default=i()})("slugify",mf,function(){var t=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),r=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function i(o,s){if(typeof o!="string")throw new Error("slugify: string argument expected");s=typeof s=="string"?{replacement:s}:s||{};var a=r[s.locale]||{},f=s.replacement===void 0?"-":s.replacement,g=s.trim===void 0?!0:s.trim,x=o.normalize().split("").reduce(function(k,B){var P=a[B];return P===void 0&&(P=t[B]),P===void 0&&(P=B),P===f&&(P=" "),k+P.replace(s.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return s.strict&&(x=x.replace(/[^A-Za-z0-9\s]/g,"")),g&&(x=x.trim()),x=x.replace(/\s+/g,f),s.lower&&(x=x.toLowerCase()),x}return i.extend=function(o){Object.assign(t,o)},i})})(nG);var gEe=nG.exports;const yEe=ga(gEe);var rG={exports:{}};(function(e,n){(function(t,r){r()})(mf,function(){function t(g,x){return typeof x>"u"?x={autoBom:!1}:typeof x!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),x={autoBom:!x}),x.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(g.type)?new Blob(["\uFEFF",g],{type:g.type}):g}function r(g,x,k){var B=new XMLHttpRequest;B.open("GET",g),B.responseType="blob",B.onload=function(){f(B.response,x,k)},B.onerror=function(){console.error("could not download file")},B.send()}function i(g){var x=new XMLHttpRequest;x.open("HEAD",g,!1);try{x.send()}catch{}return 200<=x.status&&299>=x.status}function o(g){try{g.dispatchEvent(new MouseEvent("click"))}catch{var x=document.createEvent("MouseEvents");x.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),g.dispatchEvent(x)}}var s=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof window=="object"&&window.global===window?window:void 0,a=s.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),f=s.saveAs||(typeof window!="object"||window!==s?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(g,x,k){var B=s.URL||s.webkitURL,P=document.createElement("a");x=x||g.name||"download",P.download=x,P.rel="noopener",typeof g=="string"?(P.href=g,P.origin===location.origin?o(P):i(P.href)?r(g,x,k):o(P,P.target="_blank")):(P.href=B.createObjectURL(g),setTimeout(function(){B.revokeObjectURL(P.href)},4e4),setTimeout(function(){o(P)},0))}:"msSaveOrOpenBlob"in navigator?function(g,x,k){if(x=x||g.name||"download",typeof g!="string")navigator.msSaveOrOpenBlob(t(g,k),x);else if(i(g))r(g,x,k);else{var B=document.createElement("a");B.href=g,B.target="_blank",setTimeout(function(){o(B)})}}:function(g,x,k,B){if(B=B||open("","_blank"),B&&(B.document.title=B.document.body.innerText="downloading..."),typeof g=="string")return r(g,x,k);var P=g.type==="application/octet-stream",R=/constructor/i.test(s.HTMLElement)||s.safari,H=/CriOS\/[\d]+/.test(navigator.userAgent);if((H||P&&R||a)&&typeof FileReader<"u"){var W=new FileReader;W.onloadend=function(){var oe=W.result;oe=H?oe:oe.replace(/^data:[^;]*;/,"data:attachment/file;"),B?B.location.href=oe:location=oe,B=null},W.readAsDataURL(g)}else{var $=s.URL||s.webkitURL,q=$.createObjectURL(g);B?B.location=q:location.href=q,B=null,setTimeout(function(){$.revokeObjectURL(q)},4e4)}});s.saveAs=f.saveAs=f,e.exports=f})})(rG);var bP=rG.exports;const vEe="4.0.0-pre.4",CEe="get_your_own_OpIi9ZULNHzrESv6T2vL",_Ee="b71f7f0ba4064f5eb9e903859a9cf5c6",iG={openmaptiles:CEe,thunderforest:_Ee};function Rn(){var e="/home/runner/work/maputnik/maputnik/src/libs/style.ts",n="90dcc82dd58ae44e1faf5283c5a3a70c09f07bf2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/style.ts",statementMap:{0:{start:{line:3,column:19},end:{line:7,column:2}},1:{start:{line:9,column:2},end:{line:9,column:52}},2:{start:{line:12,column:2},end:{line:15,column:3}},3:{start:{line:13,column:4},end:{line:13,column:28}},4:{start:{line:14,column:4},end:{line:14,column:17}},5:{start:{line:16,column:2},end:{line:16,column:15}},6:{start:{line:19,column:24},end:{line:23,column:4}},7:{start:{line:20,column:25},end:{line:20,column:37}},8:{start:{line:21,column:4},end:{line:21,column:36}},9:{start:{line:22,column:4},end:{line:22,column:24}},10:{start:{line:24,column:2},end:{line:27,column:4}},11:{start:{line:30,column:2},end:{line:33,column:4}},12:{start:{line:36,column:2},end:{line:36,column:69}},13:{start:{line:39,column:2},end:{line:43,column:3}},14:{start:{line:39,column:15},end:{line:39,column:16}},15:{start:{line:40,column:4},end:{line:42,column:5}},16:{start:{line:41,column:6},end:{line:41,column:15}},17:{start:{line:44,column:2},end:{line:44,column:14}},18:{start:{line:47,column:2},end:{line:49,column:3}},19:{start:{line:48,column:4},end:{line:48,column:33}},20:{start:{line:50,column:19},end:{line:50,column:42}},21:{start:{line:51,column:20},end:{line:51,column:67}},22:{start:{line:52,column:2},end:{line:54,column:3}},23:{start:{line:53,column:4},end:{line:53,column:37}},24:{start:{line:55,column:2},end:{line:55,column:21}},25:{start:{line:58,column:17},end:{line:58,column:45}},26:{start:{line:59,column:2},end:{line:60,column:20}},27:{start:{line:60,column:4},end:{line:60,column:20}},28:{start:{line:61,column:2},end:{line:62,column:20}},29:{start:{line:62,column:4},end:{line:62,column:20}},30:{start:{line:63,column:22},end:{line:63,column:64}},31:{start:{line:64,column:2},end:{line:66,column:3}},32:{start:{line:65,column:4},end:{line:65,column:20}},33:{start:{line:67,column:25},end:{line:73,column:3}},34:{start:{line:74,column:23},end:{line:77,column:3}},35:{start:{line:78,column:2},end:{line:78,column:22}},36:{start:{line:81,column:21},end:{line:81,column:29}},37:{start:{line:82,column:2},end:{line:84,column:5}},38:{start:{line:83,column:4},end:{line:83,column:76}},39:{start:{line:85,column:2},end:{line:93,column:3}},40:{start:{line:86,column:27},end:{line:86,column:73}},41:{start:{line:87,column:4},end:{line:92,column:5}},42:{start:{line:88,column:6},end:{line:91,column:8}},43:{start:{line:94,column:2},end:{line:94,column:22}},44:{start:{line:97,column:26},end:{line:99,column:3}},45:{start:{line:100,column:2},end:{line:100,column:63}},46:{start:{line:101,column:2},end:{line:104,column:4}}},fnMap:{0:{name:"generateId",decl:{start:{line:8,column:9},end:{line:8,column:19}},loc:{start:{line:8,column:22},end:{line:10,column:1}},line:8},1:{name:"ensureHasId",decl:{start:{line:11,column:9},end:{line:11,column:20}},loc:{start:{line:11,column:28},end:{line:17,column:1}},line:11},2:{name:"ensureHasNoInteractive",decl:{start:{line:18,column:9},end:{line:18,column:31}},loc:{start:{line:18,column:39},end:{line:28,column:1}},line:18},3:{name:"(anonymous_3)",decl:{start:{line:19,column:41},end:{line:19,column:42}},loc:{start:{line:19,column:52},end:{line:23,column:3}},line:19},4:{name:"ensureHasNoRefs",decl:{start:{line:29,column:9},end:{line:29,column:24}},loc:{start:{line:29,column:32},end:{line:34,column:1}},line:29},5:{name:"ensureStyleValidity",decl:{start:{line:35,column:9},end:{line:35,column:28}},loc:{start:{line:35,column:36},end:{line:37,column:1}},line:35},6:{name:"indexOfLayer",decl:{start:{line:38,column:9},end:{line:38,column:21}},loc:{start:{line:38,column:39},end:{line:45,column:1}},line:38},7:{name:"getAccessToken",decl:{start:{line:46,column:9},end:{line:46,column:23}},loc:{start:{line:46,column:52},end:{line:56,column:1}},line:46},8:{name:"replaceSourceAccessToken",decl:{start:{line:57,column:9},end:{line:57,column:33}},loc:{start:{line:57,column:67},end:{line:79,column:1}},line:57},9:{name:"replaceAccessTokens",decl:{start:{line:80,column:9},end:{line:80,column:28}},loc:{start:{line:80,column:50},end:{line:95,column:1}},line:80},10:{name:"(anonymous_10)",decl:{start:{line:82,column:40},end:{line:82,column:41}},loc:{start:{line:82,column:56},end:{line:84,column:3}},line:82},11:{name:"stripAccessTokens",decl:{start:{line:96,column:9},end:{line:96,column:26}},loc:{start:{line:96,column:37},end:{line:105,column:1}},line:96}},branchMap:{0:{loc:{start:{line:12,column:2},end:{line:15,column:3}},type:"if",locations:[{start:{line:12,column:2},end:{line:15,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:12},1:{loc:{start:{line:12,column:6},end:{line:12,column:35}},type:"binary-expr",locations:[{start:{line:12,column:6},end:{line:12,column:22}},{start:{line:12,column:26},end:{line:12,column:35}}],line:12},2:{loc:{start:{line:40,column:4},end:{line:42,column:5}},type:"if",locations:[{start:{line:40,column:4},end:{line:42,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:40},3:{loc:{start:{line:47,column:2},end:{line:49,column:3}},type:"if",locations:[{start:{line:47,column:2},end:{line:49,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:47},4:{loc:{start:{line:47,column:6},end:{line:47,column:89}},type:"binary-expr",locations:[{start:{line:47,column:6},end:{line:47,column:46}},{start:{line:47,column:50},end:{line:47,column:89}}],line:47},5:{loc:{start:{line:50,column:19},end:{line:50,column:42}},type:"binary-expr",locations:[{start:{line:50,column:19},end:{line:50,column:36}},{start:{line:50,column:40},end:{line:50,column:42}}],line:50},6:{loc:{start:{line:52,column:2},end:{line:54,column:3}},type:"if",locations:[{start:{line:52,column:2},end:{line:54,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:52},7:{loc:{start:{line:52,column:6},end:{line:52,column:40}},type:"binary-expr",locations:[{start:{line:52,column:6},end:{line:52,column:24}},{start:{line:52,column:28},end:{line:52,column:40}}],line:52},8:{loc:{start:{line:57,column:56},end:{line:57,column:65}},type:"default-arg",locations:[{start:{line:57,column:63},end:{line:57,column:65}}],line:57},9:{loc:{start:{line:59,column:2},end:{line:60,column:20}},type:"if",locations:[{start:{line:59,column:2},end:{line:60,column:20}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:59},10:{loc:{start:{line:61,column:2},end:{line:62,column:20}},type:"if",locations:[{start:{line:61,column:2},end:{line:62,column:20}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:61},11:{loc:{start:{line:61,column:6},end:{line:61,column:39}},type:"binary-expr",locations:[{start:{line:61,column:6},end:{line:61,column:24}},{start:{line:61,column:28},end:{line:61,column:39}}],line:61},12:{loc:{start:{line:64,column:2},end:{line:66,column:3}},type:"if",locations:[{start:{line:64,column:2},end:{line:66,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:64},13:{loc:{start:{line:80,column:39},end:{line:80,column:48}},type:"default-arg",locations:[{start:{line:80,column:46},end:{line:80,column:48}}],line:80},14:{loc:{start:{line:85,column:2},end:{line:93,column:3}},type:"if",locations:[{start:{line:85,column:2},end:{line:93,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:85},15:{loc:{start:{line:85,column:6},end:{line:85,column:114}},type:"binary-expr",locations:[{start:{line:85,column:6},end:{line:85,column:21}},{start:{line:85,column:26},end:{line:85,column:69}},{start:{line:85,column:73},end:{line:85,column:113}}],line:85},16:{loc:{start:{line:87,column:4},end:{line:92,column:5}},type:"if",locations:[{start:{line:87,column:4},end:{line:92,column:5}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:87}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0},f:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0],7:[0,0],8:[0],9:[0,0],10:[0,0],11:[0,0],12:[0,0],13:[0],14:[0,0],15:[0,0,0],16:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/style.ts"],names:[],mappings:"AAAA,SAAQ,mBAAkB;AAE1B,OAAO,YAAY;AAGnB,MAAM,aAAa,oBAAoB;AAAA,EACrC,SAAS;AAAA,EACT,SAAS,CAAC;AAAA,EACV,QAAQ,CAAC;AACX,CAAC;AAED,SAAS,aAAa;AACpB,SAAO,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,UAAU,GAAG,CAAC;AAClD;AAEA,SAAS,YAAY,OAAkF;AACrG,MAAG,EAAE,QAAQ,UAAU,CAAC,MAAM,IAAI;AAChC,UAAM,KAAK,WAAW;AACtB,WAAO;AAAA,EACT;AACA,SAAO;AACT;AAEA,SAAS,uBAAuB,OAA0C;AACxE,QAAM,gBAAgB,MAAM,OAAO,IAAI,WAAS;AAC9C,UAAM,eAA2D,EAAE,GAAG,MAAM;AAC5E,WAAO,aAAa;AACpB,WAAO;AAAA,EACT,CAAC;AAED,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ;AAAA,EACV;AACF;AAEA,SAAS,gBAAgB,OAA0C;AACjE,SAAO;AAAA,IACL,GAAG;AAAA,IACH,QAAQ,YAAY,MAAM,MAAM;AAAA,EAClC;AACF;AAEA,SAAS,oBAAoB,OAAgE;AAC3F,SAAO,uBAAuB,gBAAgB,YAAY,KAAK,CAAC,CAAC;AACnE;AAEA,SAAS,aAAa,QAA8B,SAAiB;AACnE,WAAS,IAAI,GAAG,IAAI,OAAO,QAAQ,KAAK;AACtC,QAAG,OAAO,CAAC,EAAE,OAAO,SAAS;AAC3B,aAAO;AAAA,IACT;AAAA,EACF;AACA,SAAO;AACT;AAEA,SAAS,eAAe,YAAoB,UAA8B,MAAiC;AACzG,MAAG,eAAe,6BAA6B,eAAe,0BAA0B;AACtF,iBAAa;AAAA,EACf;AAEA,QAAM,WAAW,SAAS,YAAY,CAAC;AACvC,MAAI,cAAc,SAAS,YAAY,UAAU,eAAe;AAEhE,MAAG,KAAK,iBAAiB,CAAC,aAAa;AACrC,kBAAc,OAAO,UAAiC;AAAA,EACxD;AAEA,SAAO;AACT;AAEA,SAAS,yBAAyB,UAA8B,YAAoB,OAAK,CAAC,GAAG;AAC3F,QAAM,SAAS,SAAS,QAAQ,UAAU;AAC1C,MAAG,CAAC;AAAQ,WAAO;AACnB,MAAG,EAAE,SAAS,WAAW,CAAC,OAAO;AAAK,WAAO;AAE7C,QAAM,cAAc,eAAe,YAAY,UAAU,IAAI;AAE7D,MAAG,CAAC,aAAa;AAEf,WAAO;AAAA,EACT;AAEA,QAAM,iBAAiB;AAAA,IACrB,GAAG,SAAS;AAAA,IACZ,CAAC,UAAU,GAAG;AAAA,MACZ,GAAG;AAAA,MACH,KAAK,OAAO,IAAI,QAAQ,SAAS,WAAW;AAAA,IAC9C;AAAA,EACF;AACA,QAAM,eAAe;AAAA,IACnB,GAAG;AAAA,IACH,SAAS;AAAA,EACX;AACA,SAAO;AACT;AAEA,SAAS,oBAAoB,UAA8B,OAAK,CAAC,GAAG;AAClE,MAAI,eAAe;AAEnB,SAAO,KAAK,SAAS,OAAO,EAAE,QAAQ,CAAC,eAAe;AACpD,mBAAe,yBAAyB,cAAc,YAAY,IAAI;AAAA,EACxE,CAAC;AAED,MAAI,SAAS,WAAW,SAAS,OAAO,MAAM,oBAAoB,KAAK,SAAS,OAAO,MAAM,iBAAiB,IAAI;AAChH,UAAM,iBAAiB,eAAe,gBAAgB,UAAU,IAAI;AACpE,QAAI,gBAAgB;AAClB,qBAAe;AAAA,QACb,GAAG;AAAA,QACH,QAAQ,SAAS,OAAO,QAAQ,SAAS,cAAc;AAAA,MACzD;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;AAEA,SAAS,kBAAkB,UAA8B;AACvD,QAAM,kBAAkB;AAAA,IACtB,GAAG,SAAS;AAAA,EACd;AACA,SAAO,gBAAgB,oCAAoC;AAC3D,SAAO;AAAA,IACL,GAAG;AAAA,IACH,UAAU;AAAA,EACZ;AACF;AAEA,eAAe;AAAA,EACb;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"90dcc82dd58ae44e1faf5283c5a3a70c09f07bf2"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Rn=function(){return s},s}Rn();const bEe=(Rn().s[0]++,aG({version:8,sources:{},layers:[]}));function oG(){return Rn().f[0]++,Rn().s[1]++,Math.random().toString(36).substring(2,9)}function xEe(e){return Rn().f[1]++,Rn().s[2]++,Rn().b[1][0]++,!("id"in e)||(Rn().b[1][1]++,!e.id)?(Rn().b[0][0]++,Rn().s[3]++,e.id=oG(),Rn().s[4]++,e):(Rn().b[0][1]++,Rn().s[5]++,e)}function wEe(e){Rn().f[2]++;const n=(Rn().s[6]++,e.layers.map(t=>{Rn().f[3]++;const r=(Rn().s[7]++,{...t});return Rn().s[8]++,delete r.interactive,Rn().s[9]++,r}));return Rn().s[10]++,{...e,layers:n}}function MEe(e){return Rn().f[4]++,Rn().s[11]++,{...e,layers:FH(e.layers)}}function aG(e){return Rn().f[5]++,Rn().s[12]++,wEe(MEe(xEe(e)))}function SEe(e,n){Rn().f[6]++,Rn().s[13]++;for(let t=(Rn().s[14]++,0);t{Rn().f[10]++,Rn().s[38]++,t=EEe(t,r,n)}),Rn().s[39]++,Rn().b[15][0]++,e.glyphs&&(Rn().b[15][1]++,e.glyphs.match(/\.tilehosting\.com/)||(Rn().b[15][2]++,e.glyphs.match(/\.maptiler\.com/)))){Rn().b[14][0]++;const r=(Rn().s[40]++,Z8("openmaptiles",e,n));Rn().s[41]++,r?(Rn().b[16][0]++,Rn().s[42]++,t={...t,glyphs:e.glyphs.replace("{key}",r)}):Rn().b[16][1]++}else Rn().b[14][1]++;return Rn().s[43]++,t}function BEe(e){Rn().f[11]++;const n=(Rn().s[44]++,{...e.metadata});return Rn().s[45]++,delete n["maputnik:openmaptiles_access_token"],Rn().s[46]++,{...e,metadata:n}}const vu={ensureStyleValidity:aG,emptyStyle:bEe,indexOfLayer:SEe,generateId:oG,getAccessToken:Z8,replaceAccessTokens:OEe,stripAccessTokens:BEe};function Po(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalExport.tsx",n="5ede43596afbfd1204f65c6c1bd54e16d6b65a8a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalExport.tsx",statementMap:{0:{start:{line:13,column:28},end:{line:13,column:35}},1:{start:{line:16,column:4},end:{line:20,column:6}},2:{start:{line:23,column:4},end:{line:31,column:5}},3:{start:{line:24,column:6},end:{line:28,column:9}},4:{start:{line:30,column:6},end:{line:30,column:36}},5:{start:{line:34,column:23},end:{line:34,column:44}},6:{start:{line:35,column:22},end:{line:35,column:55}},7:{start:{line:36,column:17},end:{line:60,column:1}},8:{start:{line:61,column:17},end:{line:61,column:70}},9:{start:{line:62,column:23},end:{line:62,column:40}},10:{start:{line:63,column:4},end:{line:63,column:39}},11:{start:{line:66,column:23},end:{line:66,column:44}},12:{start:{line:67,column:17},end:{line:67,column:83}},13:{start:{line:68,column:23},end:{line:68,column:40}},14:{start:{line:69,column:4},end:{line:69,column:39}},15:{start:{line:72,column:25},end:{line:78,column:5}},16:{start:{line:79,column:4},end:{line:79,column:44}},17:{start:{line:82,column:4},end:{line:137,column:6}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:19},end:{line:21,column:3}},line:15},1:{name:"(anonymous_1)",decl:{start:{line:22,column:2},end:{line:22,column:3}},loc:{start:{line:22,column:15},end:{line:32,column:3}},line:22},2:{name:"(anonymous_2)",decl:{start:{line:33,column:2},end:{line:33,column:3}},loc:{start:{line:33,column:17},end:{line:64,column:3}},line:33},3:{name:"(anonymous_3)",decl:{start:{line:65,column:2},end:{line:65,column:3}},loc:{start:{line:65,column:18},end:{line:70,column:3}},line:65},4:{name:"(anonymous_4)",decl:{start:{line:71,column:2},end:{line:71,column:3}},loc:{start:{line:71,column:42},end:{line:80,column:3}},line:71},5:{name:"(anonymous_5)",decl:{start:{line:81,column:2},end:{line:81,column:3}},loc:{start:{line:81,column:11},end:{line:138,column:3}},line:81}},branchMap:{0:{loc:{start:{line:23,column:4},end:{line:31,column:5}},type:"if",locations:[{start:{line:23,column:4},end:{line:31,column:5}},{start:{line:29,column:11},end:{line:31,column:5}}],line:23},1:{loc:{start:{line:35,column:22},end:{line:35,column:55}},type:"binary-expr",locations:[{start:{line:35,column:22},end:{line:35,column:46}},{start:{line:35,column:50},end:{line:35,column:55}}],line:35},2:{loc:{start:{line:99,column:24},end:{line:99,column:58}},type:"binary-expr",locations:[{start:{line:99,column:24},end:{line:99,column:52}},{start:{line:99,column:56},end:{line:99,column:58}}],line:99},3:{loc:{start:{line:108,column:24},end:{line:108,column:58}},type:"binary-expr",locations:[{start:{line:108,column:24},end:{line:108,column:52}},{start:{line:108,column:56},end:{line:108,column:58}}],line:108}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0},f:{0:0,1:0,2:0,3:0,4:0,5:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/ModalExport.tsx"],names:[],mappings:"AA+GQ,cAKA,YALA;AA/GR,OAAO,WAAW;AAClB,OAAO,aAAa;AACpB,SAAQ,cAAa;AACrB,SAAQ,eAAc;AACtB,SAAQ,cAAa;AAErB,SAAQ,sBAAqB;AAE7B,OAAO,iBAAiB;AACxB,OAAO,iBAAiB;AACxB,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,yBAAyB;AAGhC,MAAM,sBAAsB;AAW5B,qBAAqB,oBAAoB,MAAM,UAA4B;AAAA,EAEzE,iBAAkB;AAChB,WAAO;AAAA,MACL,MAAM;AAAA,QACJ,MAAM,oBAAoB,KAAK,MAAM,QAAQ;AAAA,MAC/C;AAAA,IACF;AAAA,EACF;AAAA,EAEA,aAAc;AACZ,QAAG,KAAK,MAAM,SAAS,MAAM;AAC3B,aAAO,QAAQ,KAAK,MAAM,SAAS,MAAM;AAAA,QACvC,aAAa;AAAA,QACb,QAAQ;AAAA,QACR,OAAO;AAAA,MACT,CAAC;AAAA,IACH,OAAO;AACL,aAAO,KAAK,MAAM,SAAS;AAAA,IAC7B;AAAA,EACF;AAAA,EAEA,eAAe;AACb,UAAM,aAAa,KAAK,eAAe;AACvC,UAAM,YAAY,KAAK,MAAM,SAAS,QAAQ;AAC9C,UAAM,OAAO;AAAA;AAAA;AAAA;AAAA,WAIN,SAAS;AAAA;AAAA,+CAE2B,mBAAmB;AAAA,8CACpB,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAW/C,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQxB,UAAM,OAAO,IAAI,KAAK,CAAC,IAAI,GAAG,EAAC,MAAM,0BAAyB,CAAC;AAC/D,UAAM,aAAa,KAAK,WAAW;AACnC,WAAO,MAAM,aAAa,OAAO;AAAA,EACnC;AAAA,EAEA,gBAAgB;AACd,UAAM,aAAa,KAAK,eAAe;AACvC,UAAM,OAAO,IAAI,KAAK,CAAC,UAAU,GAAG,EAAC,MAAM,iCAAgC,CAAC;AAC5E,UAAM,aAAa,KAAK,WAAW;AACnC,WAAO,MAAM,aAAa,OAAO;AAAA,EACnC;AAAA,EAEA,uBAAuB,UAAkB,OAAY;AACnD,UAAM,eAAe;AAAA,MACnB,GAAG,KAAK,MAAM;AAAA,MACd,UAAU;AAAA,QACR,GAAG,KAAK,MAAM,SAAS;AAAA,QACvB,CAAC,QAAQ,GAAG;AAAA,MACd;AAAA,IACF;AACA,SAAK,MAAM,eAAe,YAAY;AAAA,EACxC;AAAA,EAGA,SAAS;AACP,WAAO;AAAA,MAAC;AAAA;AAAA,QACN,eAAY;AAAA,QACZ,QAAQ,KAAK,MAAM;AAAA,QACnB,cAAc,KAAK,MAAM;AAAA,QACzB,OAAO;AAAA,QACP,WAAU;AAAA,QAGV,+BAAC,aAAQ,WAAU,0BACjB;AAAA,8BAAC,QAAG,4BAAc;AAAA,UAClB,oBAAC,OAAE,qDAEH;AAAA,UAEA,qBAAC,SACC;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,oBAAoB,SAAS,sBAAsB;AAAA,gBAC1D,WAAW,oBAAoB,SAAS;AAAA,gBACxC,QAAQ,KAAK,MAAM,SAAS,YAAY,CAAC,GAAU,oCAAoC;AAAA,gBACvF,UAAU,KAAK,uBAAuB,KAAK,MAAM,oCAAoC;AAAA;AAAA,YACvF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,OAAO,oBAAoB,SAAS,2BAA2B;AAAA,gBAC/D,WAAW,oBAAoB,SAAS;AAAA,gBACxC,QAAQ,KAAK,MAAM,SAAS,YAAY,CAAC,GAAU,qCAAqC;AAAA,gBACxF,UAAU,KAAK,uBAAuB,KAAK,MAAM,qCAAqC;AAAA;AAAA,YACxF;AAAA,aACF;AAAA,UAEA,qBAAC,SAAI,WAAU,iCACb;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS,KAAK,cAAc,KAAK,IAAI;AAAA,gBAErC;AAAA,sCAAC,kBAAe;AAAA,kBAAE;AAAA;AAAA;AAAA,YAEpB;AAAA,YAEA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS,KAAK,aAAa,KAAK,IAAI;AAAA,gBAEpC;AAAA,sCAAC,kBAAe;AAAA,kBAAE;AAAA;AAAA;AAAA,YAEpB;AAAA,aACF;AAAA,WACF;AAAA;AAAA,IAEF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"5ede43596afbfd1204f65c6c1bd54e16d6b65a8a"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return Po=function(){return s},s}Po();const xP=(Po().s[0]++,vEe);class kEe extends bn.Component{tokenizedStyle(){return Po().f[0]++,Po().s[1]++,zR(vu.stripAccessTokens(vu.replaceAccessTokens(this.props.mapStyle)))}exportName(){return Po().f[1]++,Po().s[2]++,this.props.mapStyle.name?(Po().b[0][0]++,Po().s[3]++,yEe(this.props.mapStyle.name,{replacement:"_",remove:/[*\-+~.()'"!:]/g,lower:!0})):(Po().b[0][1]++,Po().s[4]++,this.props.mapStyle.id)}downloadHtml(){Po().f[2]++;const n=(Po().s[5]++,this.tokenizedStyle()),t=(Po().s[6]++,Po().b[1][0]++,this.props.mapStyle.name||(Po().b[1][1]++,"Map")),r=(Po().s[7]++,` ${t}