This commit is contained in:
HarelM committed 2024-08-19 09:44:12 +00:00
1 parent 9cfd0ced73
commit 6d970fe73f
10 files changed
+843 -831

No files matched your search

-827
View File
@@ -1,827 +0,0 @@
var KY=Object.defineProperty;var PY=(e,t,n)=>t in e?KY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var on=(e,t,n)=>(PY(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(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=n(i);fetch(i.href,o)}})();var Bh=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function Oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function vB(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var pD={exports:{}},d5={},mD={exports:{}},Oo={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Ab=Symbol.for("react.element"),FY=Symbol.for("react.portal"),DY=Symbol.for("react.fragment"),LY=Symbol.for("react.strict_mode"),UY=Symbol.for("react.profiler"),RY=Symbol.for("react.provider"),zY=Symbol.for("react.context"),jY=Symbol.for("react.forward_ref"),WY=Symbol.for("react.suspense"),NY=Symbol.for("react.memo"),GY=Symbol.for("react.lazy"),gI=Symbol.iterator;function QY(e){return e===null||typeof e!="object"?null:(e=gI&&e[gI]||e["@@iterator"],typeof e=="function"?e:null)}var gD={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yD=Object.assign,vD={};function uv(e,t,n){this.props=e,this.context=t,this.refs=vD,this.updater=n||gD}uv.prototype.isReactComponent={};uv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};uv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function _D(){}_D.prototype=uv.prototype;function _B(e,t,n){this.props=e,this.context=t,this.refs=vD,this.updater=n||gD}var CB=_B.prototype=new _D;CB.constructor=_B;yD(CB,uv.prototype);CB.isPureReactComponent=!0;var yI=Array.isArray,CD=Object.prototype.hasOwnProperty,bB={current:null},bD={key:!0,ref:!0,__self:!0,__source:!0};function xD(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)CD.call(t,r)&&!bD.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var h=Array(s),g=0;g<s;g++)h[g]=arguments[g+2];i.children=h}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ab,type:e,key:o,ref:a,props:i,_owner:bB.current}}function $Y(e,t){return{$$typeof:Ab,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function xB(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ab}function YY(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var vI=/\/+/g;function bM(e,t){return typeof e=="object"&&e!==null&&e.key!=null?YY(""+e.key):t.toString(36)}function L2(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case Ab:case FY:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+bM(a,0):r,yI(i)?(n="",e!=null&&(n=e.replace(vI,"$&/")+"/"),L2(i,t,n,"",function(g){return g})):i!=null&&(xB(i)&&(i=$Y(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(vI,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",yI(e))for(var s=0;s<e.length;s++){o=e[s];var h=r+bM(o,s);a+=L2(o,t,n,h,i)}else if(h=QY(e),typeof h=="function")for(e=h.call(e),s=0;!(o=e.next()).done;)o=o.value,h=r+bM(o,s++),a+=L2(o,t,n,h,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function Dx(e,t,n){if(e==null)return e;var r=[],i=0;return L2(e,r,"","",function(o){return t.call(n,o,i++)}),r}function qY(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jA={current:null},U2={transition:null},HY={ReactCurrentDispatcher:jA,ReactCurrentBatchConfig:U2,ReactCurrentOwner:bB};Oo.Children={map:Dx,forEach:function(e,t,n){Dx(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Dx(e,function(){t++}),t},toArray:function(e){return Dx(e,function(t){return t})||[]},only:function(e){if(!xB(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Oo.Component=uv;Oo.Fragment=DY;Oo.Profiler=UY;Oo.PureComponent=_B;Oo.StrictMode=LY;Oo.Suspense=WY;Oo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=HY;Oo.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yD({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=bB.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(h in t)CD.call(t,h)&&!bD.hasOwnProperty(h)&&(r[h]=t[h]===void 0&&s!==void 0?s[h]:t[h])}var h=arguments.length-2;if(h===1)r.children=n;else if(1<h){s=Array(h);for(var g=0;g<h;g++)s[g]=arguments[g+2];r.children=s}return{$$typeof:Ab,type:e.type,key:i,ref:o,props:r,_owner:a}};Oo.createContext=function(e){return e={$$typeof:zY,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:RY,_conLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var VY=kr,ZY=Symbol.for("react.element"),XY=Symbol.for("react.fragment"),JY=Object.prototype.hasOwnProperty,eq=VY.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tq={key:!0,ref:!0,__self:!0,__source:!0};function wD(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)JY.call(t,r)&&!tq.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:ZY,type:e,key:o,ref:a,props:i,_owner:eq.current}}d5.Fragment=XY;d5.jsx=wD;d5.jsxs=wD;pD.exports=d5;var G=pD.exports,MD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},w6=Mn.createContext&&Mn.createContext(MD),nq=["attr","size","title"];function rq(e,t){if(e==null)return{};var n=iq(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A3(){return A3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A3.apply(this,arguments)}function _I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function c3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_I(Object(n),!0).forEach(function(r){oq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_I(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oq(e,t,n){return t=aq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aq(e){var t=sq(e,"string");return typeof t=="symbol"?t:String(t)}function sq(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SD(e){return e&&e.map((t,n)=>Mn.createElement(t.tag,c3({key:n},t.attr),SD(t.child)))}function al(e){return t=>Mn.createElement(lq,A3({attr:c3({},e.attr)},t),SD(e.child))}function lq(e){var t=n=>{var{attr:r,size:i,title:o}=e,a=rq(e,nq),s=i||n.size||"1em",h;return n.className&&(h=n.className),e.className&&(h=(h?h+" ":"")+e.className),Mn.createElement("svg",A3({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:h,style:c3(c3({color:e.color||n.color},n.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Mn.createElement("title",null,o),e.children)};return w6!==void 0?Mn.createElement(w6.Consumer,null,n=>t(n)):t(MD)}var ED={exports:{}},ed={},OD={exports:{}},BD={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(e){function t(dt,mt){var je=dt.length;dt.push(mt);e:for(;0<je;){var Ve=je-1>>>1,Xe=dt[Ve];if(0<i(Xe,mt))dt[Ve]=mt,dt[je]=Xe,je=Ve;else break e}}function n(dt){return dt.length===0?null:dt[0]}function r(dt){if(dt.length===0)return null;var mt=dt[0],je=dt.pop();if(je!==mt){dt[0]=je;e:for(var Ve=0,Xe=dt.length,Jt=Xe>>>1;Ve<Jt;){var Ht=2*(Ve+1)-1,Ct=dt[Ht],Qt=Ht+1,$t=dt[Qt];if(0>i(Ct,je))Qt<Xe&&0>i($t,Ct)?(dt[Ve]=$t,dt[Qt]=je,Ve=Qt):(dt[Ve]=Ct,dt[Ht]=je,Ve=Ht);else if(Qt<Xe&&0>i($t,je))dt[Ve]=$t,dt[Qt]=je,Ve=Qt;else break e}}return mt}function i(dt,mt){var je=dt.sortIndex-mt.sortIndex;return je!==0?je:dt.id-mt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var h=[],g=[],_=1,B=null,k=3,P=!1,F=!1,q=!1,ee=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(dt){for(var mt=n(g);mt!==null;){if(mt.callback===null)r(g);else if(mt.startTime<=dt)r(g),mt.sortIndex=mt.expirationTime,t(h,mt);else break;mt=n(g)}}function ue(dt){if(q=!1,Z(dt),!F)if(n(h)!==null)F=!0,_t(ye);else{var mt=n(g);mt!==null&&Mt(ue,mt.startTime-dt)}}function ye(dt,mt){F=!1,q&&(q=!1,H(se),se=-1),P=!0;var je=k;try{for(Z(mt),B=n(h);B!==null&&(!(B.expirationTime>mt)||dt&&!De());){var Ve=B.callback;if(typeof Ve=="function"){B.callback=null,k=B.priorityLevel;var Xe=Ve(B.expirationTime<=mt);mt=e.unstable_now(),typeof Xe=="function"?B.callback=Xe:B===n(h)&&r(h),Z(mt)}else r(h);B=n(h)}if(B!==null)var Jt=!0;else{var Ht=n(g);Ht!==null&&Mt(ue,Ht.startTime-mt),Jt=!1}return Jt}finally{B=null,k=je,P=!1}}var be=!1,J=null,se=-1,xe=5,Se=-1;function De(){return!(e.unstable_now()-Se<xe)}function Le(){if(J!==null){var dt=e.unstable_now();Se=dt;var mt=!0;try{mt=J(!0,dt)}finally{mt?he():(be=!1,J=null)}}else be=!1}var he;if(typeof N=="function")he=function(){N(Le)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,ge=qe.port2;qe.port1.onmessage=Le,he=function(){ge.postMessage(null)}}else he=function(){ee(Le,0)};function _t(dt){J=dt,be||(be=!0,he())}function Mt(dt,mt){se=ee(function(){dt(e.unstable_now())},mt)}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(dt){dt.callback=null},e.unstable_continueExecution=function(){F||P||(F=!0,_t(ye))},e.unstable_forceFrameRate=function(dt){0>dt||125<dt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):xe=0<dt?Math.floor(1e3/dt):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return n(h)},e.unstable_next=function(dt){switch(k){case 1:case 2:case 3:var mt=3;break;default:mt=k}var je=k;k=mt;try{return dt()}finally{k=je}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(dt,mt){switch(dt){case 1:case 2:case 3:case 4:case 5:break;default:dt=3}var je=k;k=dt;try{return mt()}finally{k=je}},e.unstable_scheduleCallback=function(dt,mt,je){var Ve=e.unstable_now();switch(typeof je=="object"&&je!==null?(je=je.delay,je=typeof je=="number"&&0<je?Ve+je:Ve):je=Ve,dt){case 1:var Xe=-1;break;case 2:Xe=250;break;case 5:Xe=1073741823;break;case 4:Xe=1e4;break;default:Xe=5e3}return Xe=je+Xe,dt={id:_++,callback:mt,priorityLevel:dt,startTime:je,expirationTime:Xe,sortIndex:-1},je>Ve?(dt.sortIndex=je,t(g,dt),n(h)===null&&dt===n(g)&&(q?(H(se),se=-1):q=!0,Mt(ue,je-Ve))):(dt.sortIndex=Xe,t(h,dt),F||P||(F=!0,_t(ye))),dt},e.unstable_shouldYield=De,e.unstable_wrapCallback=function(dt){var mt=k;return function(){var je=k;k=mt;try{return dt.apply(this,arguments)}finally{k=je}}}})(BD);OD.exports=BD;var uq=OD.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var kD=kr,Jc=uq;function Qn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var ID=new Set,yC={};function L1(e,t){Gy(e,t),Gy(e+"Capture",t)}function Gy(e,t){for(yC[e]=t,e=0;e<t.length;e++)ID.add(t[e])}var Wp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),M6=Object.prototype.hasOwnProperty,Aq=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,CI={},bI={};function cq(e){return M6.call(bI,e)?!0:M6.call(CI,e)?!1:Aq.test(e)?bI[e]=!0:(CI[e]=!0,!1)}function dq(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hq(e,t,n,r){if(t===null||typeof t>"u"||dq(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function WA(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var zu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zu[e]=new WA(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zu[t]=new WA(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zu[e]=new WA(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zu[e]=new WA(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){zu[e]=new WA(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zu[e]=new WA(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zu[e]=new WA(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zu[e]=new WA(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zu[e]=new WA(e,5,!1,e.toLowerCase(),null,!1,!1)});var wB=/[\-:]([a-z])/g;function MB(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 t=e.replace(wB,MB);zu[t]=new WA(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(wB,MB);zu[t]=new WA(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(wB,MB);zu[t]=new WA(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zu[e]=new WA(e,1,!1,e.toLowerCase(),null,!1,!1)});zu.xlinkHref=new WA("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zu[e]=new WA(e,1,!1,e.toLowerCase(),null,!0,!0)});function SB(e,t,n,r){var i=zu.hasOwnProperty(t)?zu[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!= Line truncated
`+xM+e}var wM=!1;function MM(e,t){if(!e||wM)return"";wM=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(g){var r=g}Reflect.construct(e,[],t)}else{try{t.call()}catch(g){r=g}e.call(t.prototype)}else{try{throw Error()}catch(g){r=g}e()}}catch(g){if(g&&r&&typeof g.stack=="string"){for(var i=g.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var h=`
`+i[a].replace(" at new "," at ");return e.displayName&&h.includes("<anonymous>")&&(h=h.replace("<anonymous>",e.displayName)),h}while(1<=a&&0<=s);break}}}finally{wM=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?O_(e):""}function fq(e){switch(e.tag){case 5:return O_(e.type);case 16:return O_("Lazy");case 13:return O_("Suspense");case 19:return O_("SuspenseList");case 0:case 2:case 15:return e=MM(e.type,!1),e;case 11:return e=MM(e.type.render,!1),e;case 1:return e=MM(e.type,!0),e;default:return""}}function B6(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Zg:return"Fragment";case Vg:return"Portal";case S6:return"Profiler";case EB:return"StrictMode";case E6:return"Suspense";case O6:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case KD:return(e.displayName||"Context")+".Consumer";case TD:return(e._context.displayName||"Context")+".Provider";case OB:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case BB:return t=e.displayName||null,t!==null?t:B6(e.type)||"Memo";case wm:t=e._payload,e=e._init;try{return B6(e(t))}catch{}}return null}function pq(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B6(t);case 8:return t===EB?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function i0(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FD(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mq(e){var t=FD(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ux(e){e._valueTracker||(e._valueTracker=mq(e))}function DD(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=FD(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function d3(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function k6(e,t){var n=t.checked;return Vs({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wI(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=i0(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function LD(e,t){t=t.checked,t!=null&&SB(e,"checked",t,!1)}function I6(e,t){LD(e,t);var n=i0(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?T6(e,t.type,n):t.hasOwnProperty("defaultValue")&&T6(e,t.type,i0(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function MI(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function T6(e,t,n){(t!=="number"||d3(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var B_=Array.isArray;function vy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+i0(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function K6(e,t){if(t.dan Line truncated
`).replace(SH,"")}function $x(e,t,n){if(t=qI(t),qI(e)!==t&&n)throw Error(Qn(425))}function _3(){}var $6=null,Y6=null;function q6(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var H6=typeof setTimeout=="function"?setTimeout:void 0,EH=typeof clearTimeout=="function"?clearTimeout:void 0,HI=typeof Promise=="function"?Promise:void 0,OH=typeof queueMicrotask=="function"?queueMicrotask:typeof HI<"u"?function(e){return HI.resolve(null).then(e).catch(BH)}:H6;function BH(e){setTimeout(function(){throw e})}function UM(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),xC(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xC(t)}function Ym(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function VI(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var cv=Math.random().toString(36).slice(2),Mf="__reactFiber$"+cv,OC="__reactProps$"+cv,Np="__reactContainer$"+cv,V6="__reactEvents$"+cv,kH="__reactListeners$"+cv,IH="__reactHandles$"+cv;function i1(e){var t=e[Mf];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Np]||n[Mf]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=VI(e);e!==null;){if(n=e[Mf])return n;e=VI(e)}return t}e=n,n=e.parentNode}return null}function hb(e){return e=e[Mf]||e[Np],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ty(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Qn(33))}function g5(e){return e[OC]||null}var Z6=[],ny=-1;function A0(e){return{current:e}}function _s(e){0>ny||(e.current=Z6[ny],Z6[ny]=null,ny--)}function ns(e,t){ny++,Z6[ny]=e.current,e.current=t}var o0={},fA=A0(o0),_c=A0(!1),b1=o0;function Qy(e,t){var n=e.type.contextTypes;if(!n)return o0;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Cc(e){return e=e.childContextTypes,e!=null}function C3(){_s(_c),_s(fA)}function ZI(e,t,n){if(fA.current!==o0)throw Error(Qn(168));ns(fA,t),ns(_c,n)}function ML(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Qn(108,pq(e)||"Unknown",i));return Vs({},n,r)}function b3(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||o0,b1=fA.current,ns(fA,e),ns(_c,_c.current),!0}function XI(e,t,n){var r=e.stateNode;if(!r)throw Error(Qn(169));n?(e=ML(e,t,b1),r.__reactInternalMemoizedMergedChildContext=e,_s(_c),_s(fA),ns(fA,e)):_s(_c),ns(_c,n)}var Op=null,y5=!1,RM=!1;function SL(e){Op===null?Op=[e]:Op.push(e)}function TH(e){y5=!0,SL(e)}function c0(){if(!RM&&Op!==null){RM=!0;var e=0,t=Ea;try{var n=Op;for(Ea=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Op=null,y5=!1}catch(i){throw Op!==null&&(Op=Op.slice(e+1)),ZD(IB,c0),i}finally{Ea=t,RM=!1}}return null}var ry=[],iy=0,x3=null,w3=0,Bd=[],kd=0,x1=null,Pp=1,Fp="";function Q0(e,t){ry[iy++]=w3,ry[iy++]=x3,x3=e,w3=t}function EL(e,t,n){Bd[kd++]=Pp,Bd[kd++]=Fp,Bd[kd++]=x1,x1=e;var r=Pp;e=Fp;var i=32-Mh(r)-1;r&=~(1<<i),n+=1;var o=32-Mh(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Pp=1<<32-Mh(t)+i|n<<i|r,Fp=o+e}else Pp=1<<o|n<<i|r,Fp=e}function zB(e){e.return!==null&&(Q0(e,1),EL(e,1,0))}function jB(e){for(;e===x3;)x3=ry[--iy],ry[iy]=null,w3=ry[--iy],ry[iy]=null;for(;e===x1;)x1=Bd[--kd],Bd[kd]=null,Fp=Bd[--kd],Bd[kd]=null,Pp=Bd[--kd],Bd[kd]=null}var Zc=null,qc=null,Ts=!1,xh=null;function OL(e,t){var n=Td(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function JI(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Zc=e,qc=Ym(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Zc=e,qc=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=x1!==null?{id:Pp,overflow:Fp}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Td(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Zc=e,qc=null,!0):!1;default:return!1}}function X6(e){return(e.mode&1)!==0&&(e.flags&128)===0}function J6(e){if(Ts){var t=qc;if(t){var n=t;if(!JI(e,t)){if(X6(e))throw Error(Qn(418));t=Ym(n.nextSibling);var r=Zc;t&&JI(e,t)?OL(r,n):(e.flags=e.flags&-4097|2,Ts=!1,Zc=e)}}else{if(X6(e))throw Error(Qn(418));e.flags=e.flags&-4097|2,Ts=!1,Zc=e}}}function e9(e){ Line truncated
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function GM(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function rE(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var jH=typeof WeakMap=="function"?WeakMap:Map;function nU(e,t,n){n=Dp(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){T3||(T3=!0,hE=r),rE(e,t)},n}function rU(e,t,n){n=Dp(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rE(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){rE(e,t),typeof r!="function"&&(Hm===null?Hm=new Set([this]):Hm.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function l9(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new jH;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=tV.bind(null,e,t,n),t.then(e,e))}function u9(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function A9(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Dp(-1,1),t.tag=2,qm(n,t,1))),n.lanes|=1),e)}var WH=$p.ReactCurrentOwner,vc=!1;function FA(e,t,n,r){t.child=e===null?FL(t,null,n,r):Yy(t,e.child,n,r)}function c9(e,t,n,r,i){n=n.render;var o=t.ref;return xy(t,i),r=XB(e,t,n,r,o,i),n=JB(),e!==null&&!vc?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qp(e,t,i)):(Ts&&n&&zB(t),t.flags|=1,FA(e,t,r,i),t.child)}function d9(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!u7(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,iU(e,t,o,r,i)):(e=q2(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:MC,n(a,r)&&e.ref===t.ref)return Qp(e,t,i)}return t.flags|=1,e=Zm(o,r),e.ref=t.ref,e.return=t,t.child=e}function iU(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(MC(o,r)&&e.ref===t.ref)if(vc=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(vc=!0);else return t.lanes=e.lanes,Qp(e,t,i)}return iE(e,t,n,r,i)}function oU(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ns(sy,Nc),Nc|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ns(sy,Nc),Nc|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,ns(sy,Nc),Nc|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,ns(sy,Nc),Nc|=r;return FA(e,t,i,n),t.child}function aU(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function iE(e,t,n,r,i){var o=Cc(n)?b1:fA.current;return o=Qy(t,o),xy(t,i),n=XB(e,t,n,r,o,i),r=JB(),e!==null&&!vc?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Qp(e,t,i)):(Ts&&r&&zB(t),t.flags|=1,FA(e,t,n,i),t.child)}function h9(e,t,n,r,i){if(Cc(n)){var o=!0;b3(t)}else o=!1;if(xy(t,i),t.stateNode===null)Q2(e,t),KL(t,n,r),nE(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var h=a.context,g=n.contextType;typeof g=="object"&&g!==null?g=Ud(g):(g=Cc(n)?b1:fA.current,g=Qy(t,g));var _=n.getDerivedStateFromProps,B=typeof _=="function"||typeof a.getSnapshotBeforeUpdate=="function";B||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||h!==g)&&i9(t,a,r,g),Mm=!1;var k=t.memoizedState;a.state=k,E3(t,r,a,i),h=t.memoizedState,s!==r||k!==h||_c.current||Mm?(typeof _=="function"&&(tE(t,n,_,r),h=t.memoizedState),(s=Mm||r9(t,n,s,r,k,h,g))?(B||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=g,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,IL(e,t),s=t.memoizedProps,g=t.type===t.elementType?s:_h(t.type,s),a.props=g,B=t.pendingProps,k=a.context,h=n.contextType,typeof h=="object"&&h!==null?h=Ud(h):(h=Cc(n)?b1:fA.current,h=Qy(t,h));var P=n.getDerivedStateFromProps;(_=typeof P=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==B||k!==h)&&i9(t,a,r,h),Mm=!1,k=t.memoizedState,a.state=k,E3(t,r,a,i);var F=t.memoizedS Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(e){const t=O5,n=B5,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=N,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 Ee=new Uint8Array(1),X={foo:function(){return 42}};return Object.setPrototypeOf(X,Uint8Array.prototype),Object.setPrototypeOf(Ee,X),Ee.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(Ee){if(Ee>i)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');const X=new Uint8Array(Ee);return Object.setPrototypeOf(X,s.prototype),X}function s(Ee,X,Y){if(typeof Ee=="number"){if(typeof X=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ee)}return h(Ee,X,Y)}s.poolSize=8192;function h(Ee,X,Y){if(typeof Ee=="string")return k(Ee,X);if(ArrayBuffer.isView(Ee))return F(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(Ar(Ee,ArrayBuffer)||Ee&&Ar(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Ar(Ee,SharedArrayBuffer)||Ee&&Ar(Ee.buffer,SharedArrayBuffer)))return q(Ee,X,Y);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Te=Ee.valueOf&&Ee.valueOf();if(Te!=null&&Te!==Ee)return s.from(Te,X,Y);const ut=ee(Ee);if(ut)return ut;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return s.from(Ee[Symbol.toPrimitive]("string"),X,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}s.from=function(Ee,X,Y){return h(Ee,X,Y)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function g(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function _(Ee,X,Y){return g(Ee),Ee<=0?a(Ee):X!==void 0?typeof Y=="string"?a(Ee).fill(X,Y):a(Ee).fill(X):a(Ee)}s.alloc=function(Ee,X,Y){return _(Ee,X,Y)};function B(Ee){return g(Ee),a(Ee<0?0:H(Ee)|0)}s.allocUnsafe=function(Ee){return B(Ee)},s.allocUnsafeSlow=function(Ee){return B(Ee)};function k(Ee,X){if((typeof X!="string"||X==="")&&(X="utf8"),!s.isEncoding(X))throw new TypeError("Unknown encoding: "+X);const Y=Z(Ee,X)|0;let Te=a(Y);const ut=Te.write(Ee,X);return ut!==Y&&(Te=Te.slice(0,ut)),Te}function P(Ee){const X=Ee.length<0?0:H(Ee.length)|0,Y=a(X);for(let Te=0;Te<X;Te+=1)Y[Te]=Ee[Te]&255;return Y}function F(Ee){if(Ar(Ee,Uint8Array)){const X=new Uint8Array(Ee);return q(X.buffer,X.byteOffset,X.byteLength)}return P(Ee)}function q(Ee,X,Y){if(X<0||Ee.byteLength<X)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<X+(Y||0))throw new RangeError('"length" is outside of buffer bounds');let Te;return X===void 0&&Y===void 0?Te=new Uint8Array(Ee):Y===void 0?Te=new Uint8Array(Ee,X):Te=new Uint8Array(Ee,X,Y),Object.setPrototypeOf(Te,s.prototype),Te}function ee(Ee){if(s.isBuffer(Ee)){const X=H(Ee.length)|0,Y=a(X);return Y.length===0||Ee.copy(Y,0,0,X),Y}if(Ee.length!==void 0)return typeof Ee.length!="number"||Mr(Ee.length)?a(0):P(Ee);if(Ee.type==="Buffer"&&Array.isArray(Ee.data))return P(Ee.data)}function H(Ee){if(Ee>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ee|0}function N(Ee){return+Ee!=Ee&&(Ee=0),s.alloc(+Ee)}s.isBuffer=function(X){return X!=null&&X._isBuffer===!0&&X!==s.prototype},s.compare=function(X,Y){if(Ar(X,Uint8Array)&&(X=s.from(X,X.offset,X.byteLength)),Ar(Y,Uint8Array)&&(Y=s.from(Y,Y.offset,Y.byteLength)),!s.isBuffer(X)||!s.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(X===Y)return 0;let Te=X.length,ut=Y.length;for(let Bt=0,It=Math.min(Te,ut);Bt<It;++Bt)if(X[Bt]!==Y[Bt]){Te=X[Bt],ut=Y[Bt];break}return Te<ut?-1:ut<Te?1:0},s.isEncoding=function(X){switch(String(X).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(X,Y){if(!Array.isArray(X))throw new TypeError('"list" argument must be an Array of Buffers');if(X.length===0)return s.alloc(0);let Te;if(Y===void 0)for(Y=0,Te=0;Te<X.length;++Te)Y+=X[Te].length;const ut=s.allocUnsafe(Y);let Bt=0;foLine truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/L3.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,_="__lodash_placeholder__",B=1,k=2,P=4,F=1,q=2,ee=1,H=2,N=4,Z=8,ue=16,ye=32,be=64,J=128,se=256,xe=512,Se=30,De="...",Le=800,he=16,qe=1,ge=2,_t=3,Mt=1/0,dt=9007199254740991,mt=17976931348623157e292,je=NaN,Ve=4294967295,Xe=Ve-1,Jt=Ve>>>1,Ht=[["ary",J],["bind",ee],["bindKey",H],["curry",Z],["curryRight",ue],["flip",xe],["partial",ye],["partialRight",be],["rearg",se]],Ct="[object Arguments]",Qt="[object Array]",$t="[object AsyncFunction]",Ie="[object Boolean]",pe="[object Date]",Me="[object DOMException]",Re="[object Error]",it="[object Function]",ot="[object GeneratorFunction]",St="[object Map]",Rt="[object Number]",zt="[object Null]",pt="[object Object]",ir="[object Promise]",gn="[object Proxy]",yn="[object RegExp]",er="[object Set]",Ar="[object String]",Mr="[object Symbol]",Wr="[object Undefined]",gr="[object WeakMap]",_i="[object WeakSet]",Ee="[object ArrayBuffer]",X="[object DataView]",Y="[object Float32Array]",Te="[object Float64Array]",ut="[object Int8Array]",Bt="[object Int16Array]",It="[object Int32Array]",Dt="[object Uint8Array]",fn="[object Uint8ClampedArray]",Pn="[object Uint16Array]",On="[object Uint32Array]",m=/\b__p \+= '';/g,Kt=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nr=/&(?:amp|lt|gt|quot|#39);/g,Pe=/[&<>"']/g,ce=RegExp(nr.source),Ce=RegExp(Pe.source),ke=/<%-([\s\S]+?)%>/g,ze=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,st=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ft=/^\w*$/,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wt=/[\\^$.*+?()[\]{}|]/g,tn=RegExp(wt.source),qt=/^\s+/,en=/\s/,Fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bn=/\{\n\/\* \[wrapped with (.+)\] \*/,qn=/,? & /,Sr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,lr=/[()=,{}\[\]\/\s]/,$r=/\\(\\)?/g,Or=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lr=/\w*$/,or=/^[-+]0x[0-9a-f]+$/i,ci=/^0b[01]+$/i,Li=/^\[object .+?Constructor\]$/,to=/^0o[0-7]+$/i,ho=/^(?:0|[1-9]\d*)$/,ai=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fo=/($^)/,ja=/['\n\r\u2028\u2029\\]/g,Ba="\\ud800-\\udfff",Mi="\\u0300-\\u036f",is="\\ufe20-\\ufe2f",gi="\\u20d0-\\u20ff",Wn=Mi+is+gi,ro="\\u2700-\\u27bf",_o="a-z\\xdf-\\xf6\\xf8-\\xff",Ui="\\xac\\xb1\\xd7\\xf7",ve="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Je="\\u2000-\\u206f",Vt=" \\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",sn="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",wn=Ui+ve+Je+Vt,dr="['’]",ri="["+Ba+"]",si="["+wn+"]",Xo="["+Wn+"]",Ta="\\d+",Fr="["+ro+"]",Wa="["+_o+"]",yi="[^"+Ba+wn+Ta+ro+_o+sn+"]",Na="\\ud83c[\\udffb-\\udfff]",Jo="(?:"+Xo+"|"+Na+")",Cu="[^"+Ba+"]",os="(?:\\ud83c[\\udde6-\\uddff]){2}",ea="[\\ud800-\\udbff][\\udc00-\\udfff]",ta="["+sn+"]",Cs="\\u200d",bu="(?:"+Wa+"|"+yi+")",fa="(?:"+ta+"|"+yi+")",gA="(?:"+dr+"(?:d|ll|m|re|s|t|ve))?",ju="(?:"+dr+"(?:D|LL|M|RE|S|T|VE))?",yA=Jo+"?",xu="["+Lt+"]?",Wu="(?:"+Cs+"(?:"+[Cu,os,ea].join("|")+")"+xu+yA+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jl=xu+yA+Wu,as="(?:"+[Fr,os,ea].join("|")+")"+Jl,sl="(?:"+[Cu+Xo+"?",Xo,os,ea,ri].join("|")+")",No=RegExp(dr,"g"),wu=RegExp(Xo,"g"),ll=RegExp(Na+"(?="+Na+")|"+sl+Jl,"g"),bl=RegExp([ta+"?"+Wa+"+"+gA+"(?="+[si,ta,"$"].join("|")+")",fa+"+"+ju+"(?="+[si,ta+bu,"$"].join("|")+")",ta+"?"+bu+"+"+gA,ta+"+"+ju,bs,Wo,Ta,as].join("|"),"g"),eu=RegExp("["+Cs+Ba+Wn+Lt+"]"),sa=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ul=["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"],vA=-1,vo={};vo[Y]=vo[Te]=vo[ut]=vo[Bt]=vo[It]=vo[Dt]=vo[fn]=vo[Pn]=vo[On]=!0,vo[Ct]=vo[Qt]=vo[Ee]=vo[Ie]=vo[X]=vo[pe]=vo[Re]=vo[it]=vo[St]=vo[Rt]=vo[pt]=vo[yn]=vo[er]=vo[Ar]=vo[gr]=!1;var io={};io[Ct]=io[Qt]=io[Ee]=io[X]=io[Ie]=io[pe]=io[Y]=io[Te]=io[ut]=io[Bt]=io[It]=io[St]=io[Rt]=io[pt]=io[yn]=io[er]=io[Ar]=io[Mr]=io[Dt]=io[fn]=io[Pn]=io[On]=!0,io[Re]=io[it]=io[gr]=!1;var z={À:"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",ć:Line truncated
/* [wrapped with `+S+`] */
`)}function f(v){return re(v)||V(v)||!!(Hf&&v&&v[Hf])}function x(v,S){var D=typeof v;return S=S??dt,!!S&&(D=="number"||D!="symbol"&&ho.test(v))&&v>-1&&v%1==0&&v<S}function b(v,S,D){if(!xn(D))return!1;var te=typeof S;return(te=="number"?_e(D)&&x(S,D.length):te=="string"&&S in D)?K(D[S],v):!1}function E(v,S){if(re(v))return!1;var D=typeof v;return D=="number"||D=="symbol"||D=="boolean"||v==null||Zo(v)?!0:ft.test(v)||!st.test(v)||S!=null&&v in To(S)}function U(v){var S=typeof v;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?v!=="__proto__":v===null}function $(v){var S=lh(v),D=Fe[S];if(typeof D!="function"||!(S in Yr.prototype))return!1;if(v===D)return!0;var te=Dc(D);return!!te&&v===te[0]}function ne(v){return!!Rh&&Rh in v}var le=$u?Un:CM;function me(v){var S=v&&v.constructor,D=typeof S=="function"&&S.prototype||Qa;return v===D}function Qe(v){return v===v&&!xn(v)}function nt(v,S){return function(D){return D==null?!1:D[v]===S&&(S!==n||v in To(D))}}function Ot(v){var S=fm(v,function(te){return D.size===g&&D.clear(),te}),D=S.cache;return S}function yt(v,S){var D=v[1],te=S[1],we=D|te,Ne=we<(ee|H|J),lt=te==J&&D==Z||te==J&&D==se&&v[7].length<=S[8]||te==(J|se)&&S[7].length<=S[8]&&D==Z;if(!(Ne||lt))return v;te&ee&&(v[2]=S[2],we|=D&ee?0:N);var vt=S[3];if(vt){var Tt=v[3];v[3]=Tt?nh(Tt,vt,S[4]):vt,v[4]=Tt?Dl(v[3],_):S[4]}return vt=S[5],vt&&(Tt=v[5],v[5]=Tt?ef(Tt,vt,S[6]):vt,v[6]=Tt?Dl(v[5],_):S[6]),vt=S[7],vt&&(v[7]=vt),te&J&&(v[8]=v[8]==null?S[8]:ua(v[8],S[8])),v[9]==null&&(v[9]=S[9]),v[0]=S[0],v[1]=we,v}function Wt(v){var S=[];if(v!=null)for(var D in To(v))S.push(D);return S}function cn(v){return ou.call(v)}function In(v,S,D){return S=ao(S===n?v.length-1:S,0),function(){for(var te=arguments,we=-1,Ne=ao(te.length-S,0),lt=jt(Ne);++we<Ne;)lt[we]=te[S+we];we=-1;for(var vt=jt(S+1);++we<S;)vt[we]=te[we];return vt[S]=D(lt),pa(v,this,vt)}}function Yn(v,S){return S.length<2?v:Ms(v,Fa(S,0,-1))}function bn(v,S){for(var D=v.length,te=ua(S.length,D),we=Xs(v);te--;){var Ne=S[te];v[te]=x(Ne,D)?we[Ne]:n}return v}function Ln(v,S){if(!(S==="constructor"&&typeof v[S]=="function")&&S!="__proto__")return v[S]}var ar=Uo(em),Tr=Xu||function(v,S){return yr.setTimeout(v,S)},_r=Uo(V1);function hi(v,S,D){var te=S+"";return _r(v,A(te,As($a(te),D)))}function Uo(v){var S=0,D=0;return function(){var te=br(),we=he-(te-D);if(D=te,we>0){if(++S>=Le)return arguments[0]}else S=0;return v.apply(n,arguments)}}function Ya(v,S){var D=-1,te=v.length,we=te-1;for(S=S===n?te:S;++D<S;){var Ne=Xp(D,we),lt=v[Ne];v[Ne]=v[D],v[D]=lt}return v.length=S,v}var Ca=Ot(function(v){var S=[];return v.charCodeAt(0)===46&&S.push(""),v.replace(et,function(D,te,we,Ne){S.push(we?Ne.replace($r,"$1"):te||D)}),S});function Da(v){if(typeof v=="string"||Zo(v))return v;var S=v+"";return S=="0"&&1/v==-Mt?"-0":S}function us(v){if(v!=null){try{return ss.call(v)}catch{}try{return v+""}catch{}}return""}function As(v,S){return nu(Ht,function(D){var te="_."+D[0];S&D[1]&&!id(v,te)&&v.push(te)}),v.sort()}function Ml(v){if(v instanceof Yr)return v.clone();var S=new Qi(v.__wrapped__,v.__chain__);return S.__actions__=Xs(v.__actions__),S.__index__=v.__index__,S.__values__=v.__values__,S}function Js(v,S,D){(D?b(v,S,D):S===n)?S=1:S=ao(Jr(S),0);var te=v==null?0:v.length;if(!te||S<1)return[];for(var we=0,Ne=0,lt=jt(wo(te/S));we<te;)lt[Ne++]=Fa(v,we,we+=S);return lt}function Os(v){for(var S=-1,D=v==null?0:v.length,te=0,we=[];++S<D;){var Ne=v[S];Ne&&(we[te++]=Ne)}return we}function cs(){var v=arguments.length;if(!v)return[];for(var S=jt(v-1),D=arguments[0],te=v;te--;)S[te-1]=arguments[te];return Gu(re(D)?Xs(D):[D],so(S,1))}var ca=$i(function(v,S){return Be(v)?ei(v,so(S,1,Be,!0)):[]}),Bs=$i(function(v,S){var D=BA(S);return Be(D)&&(D=n),Be(v)?ei(v,so(S,1,Be,!0),Xr(D,2)):[]}),uh=$i(function(v,S){var D=BA(S);return Be(D)&&(D=n),Be(v)?ei(v,so(S,1,Be,!0),n,D):[]});function lc(v,S,D){var te=v==null?0:v.length;return te?(S=D||S===n?1:Jr(S),Fa(v,S<0?0:S,te)):[]}function zs(v,S,D){var te=v==null?0:v.length;return te?(S=D||S===n?1:Jr(S),S=te-S,Fa(v,0,S<0?0:S)):[]}function uc(v,S){return v&&v.length?md(v,Xr(S,3),!0,!0):[]}function js(v,S){return v&&v.length?md(v,Xr(S,3),!0):[]}function B0(v,S,D,te){var we=v==null?0:v.length;return we?(D&&typeof D!="number"&&b(v,S,D)&&(D=0,te=we),Pa(v,S,D,te)):[]}function OA(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var we=D==null?0:Jr(D);return we<0&&(we=ao(te+we,0)),Ii(v,Xr(S,3),we)}function Uc(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var we=te-1;return D!==n&&(we=Jr(D),we=D<0?ao(te+we,0):ua(we,te-1)),Ii(v,Xr(S,3),we,!0)}function qa(v){var S=v==null?0:v.length;return S?so(v,1):[]}function el(v){var S=v==null?0:v.length;return S?so(v,Mt):[]}function Ah(v,S){var D=v==null?0:v.length;return D?(S=S===n?1:Jr(S),so(v,S)):[]}function Ac(v){for(var S=-1,D=v==null?0:v.length,te={};++S<D;){var we=v[S];te[we[0]]=we[1]}return te}function um(v){return v&&v.length?v[0]:n}function k0(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var we=D==null?0:Jr(D);return we<0&&(we= Line truncated
`;v.replace(fr,function(bi,bo,Po,zc,KA,jc){return Po||(Po=zc),Tn+=v.slice(_n,jc).replace(ja,_A),bo&&(vt=!0,Tn+=`' +
__e(`+bo+`) +
'`),KA&&(Tt=!0,Tn+=`';
`+KA+`;
__p += '`),Po&&(Tn+=`' +
((__t = (`+Po+`)) == null ? '' : __t) +
'`),_n=jc+bi.length,bi}),Tn+=`';
`;var Ci=Vi.call(S,"variable")&&S.variable;if(!Ci)Tn=`with (obj) {
`+Tn+`
}
`;else if(lr.test(Ci))throw new li(s);Tn=(Tt?Tn.replace(m,""):Tn).replace(Kt,"$1").replace(Pr,"$1;"),Tn="function("+(Ci||"obj")+`) {
`+(Ci?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(vt?", __e = _.escape":"")+(Tt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Tn+`return __p
}`;var lo=fI(function(){return oo(Ne,Vr+"return "+Tn).apply(n,lt)});if(lo.source=Tn,nn(lo))throw lo;return lo}function z$(v){return fi(v).toLowerCase()}function j$(v){return fi(v).toUpperCase()}function W$(v,S,D){if(v=fi(v),v&&(D||S===n))return $A(v);if(!v||!(S=Iu(S)))return v;var te=Ul(v),we=Ul(S),Ne=Fl(te,we),lt=Oc(te,we)+1;return Fc(te,Ne,lt).join("")}function N$(v,S,D){if(v=fi(v),v&&(D||S===n))return v.slice(0,$d(v)+1);if(!v||!(S=Iu(S)))return v;var te=Ul(v),we=Oc(te,Ul(S))+1;return Fc(te,0,we).join("")}function G$(v,S,D){if(v=fi(v),v&&(D||S===n))return v.replace(qt,"");if(!v||!(S=Iu(S)))return v;var te=Ul(v),we=Fl(te,Ul(S));return Fc(te,we).join("")}function Q$(v,S){var D=Se,te=De;if(xn(S)){var we="separator"in S?S.separator:we;D="length"in S?Jr(S.length):D,te="omission"in S?Iu(S.omission):te}v=fi(v);var Ne=v.length;if(qA(v)){var lt=Ul(v);Ne=lt.length}if(D>=Ne)return v;var vt=D-Eu(te);if(vt<1)return te;var Tt=lt?Fc(lt,0,vt).join(""):v.slice(0,vt);if(we===n)return Tt+te;if(lt&&(vt+=Tt.length-vt),cu(we)){if(v.slice(vt).search(we)){var _n,Cn=Tt;for(we.global||(we=bA(we.source,fi(Lr.exec(we))+"g")),we.lastIndex=0;_n=we.exec(Cn);)var Tn=_n.index;Tt=Tt.slice(0,Tn===n?vt:Tn)}}else if(v.indexOf(Iu(we),vt)!=vt){var fr=Tt.lastIndexOf(we);fr>-1&&(Tt=Tt.slice(0,fr))}return Tt+te}function $$(v){return v=fi(v),v&&ce.test(v)?v.replace(nr,kc):v}var Y$=nf(function(v,S,D){return v+(D?" ":"")+S.toUpperCase()}),pM=tf("toUpperCase");function hI(v,S,D){return v=fi(v),S=D?n:S,S===n?qf(v)?sd(v):Hp(v):v.match(S)||[]}var fI=$i(function(v,S){try{return pa(v,n,S)}catch(D){return nn(D)?D:new li(D)}}),q$=sc(function(v,S){return nu(S,function(D){D=Da(D),$n(v,D,yg(v[D],v))}),v});function H$(v){var S=v==null?0:v.length,D=Xr();return v=S?na(v,function(te){if(typeof te[1]!="function")throw new Ko(a);return[D(te[0]),te[1]]}):[],$i(function(te){for(var we=-1;++we<S;){var Ne=v[we];if(pa(Ne[0],this,te))return pa(Ne[1],this,te)}})}function V$(v){return di(vr(v,B))}function mM(v){return function(){return v}}function Z$(v,S){return v==null||v!==v?S:v}var X$=nm(),J$=nm(!0);function fc(v){return v}function gM(v){return rA(typeof v=="function"?v:vr(v,B))}function eY(v){return qh(vr(v,B))}function tY(v,S){return Hh(v,vr(S,B))}var nY=$i(function(v,S){return function(D){return oc(D,v,S)}}),rY=$i(function(v,S){return function(D){return oc(v,D,S)}});function yM(v,S,D){var te=Bl(S),we=jl(S,te);D==null&&!(xn(S)&&(we.length||!te.length))&&(D=S,S=v,v=this,we=jl(S,Bl(S)));var Ne=!(xn(D)&&"chain"in D)||!!D.chain,lt=Un(v);return nu(we,function(vt){var Tt=S[vt];v[vt]=Tt,lt&&(v.prototype[vt]=function(){var _n=this.__chain__;if(Ne||_n){var Cn=v(this.__wrapped__),Tn=Cn.__actions__=Xs(this.__actions__);return Tn.push({func:Tt,args:arguments,thisArg:v}),Cn.__chain__=_n,Cn}return Tt.apply(v,Gu([this.value()],arguments))})}),v}function iY(){return yr._===this&&(yr._=ga),this}function vM(){}function oY(v){return v=Jr(v),$i(function(S){return Jd(S,v)})}var aY=im(na),sY=im(rd),lY=im(Ec);function pI(v){return E(v)?$f(Da(v)):y0(v)}function uY(v){return function(S){return v==null?n:Ms(v,S)}}var AY=ah(),cY=ah(!0);function _M(){return[]}function CM(){return!1}function dY(){return{}}function hY(){return""}function fY(){return!0}function pY(v,S){if(v=Jr(v),v<1||v>dt)return[];var D=Ve,te=ua(v,Ve);S=Xr(S),v-=Ve;for(var we=Io(te,S);++D<v;)S(D);return we}function mY(v){return re(v)?na(v,Da):Zo(v)?[v]:Xs(Ca(fi(v)))}function gY(v){var S=++Uh;return fi(v)+S}var yY=oh(function(v,S){return v+S},0),vY=S0("ceil"),_Y=oh(function(v,S){return v/S},1),CY=S0("floor");function bY(v){return v&&v.length?Us(v,fc,ra):n}function xY(v,S){return v&&v.length?Us(v,Xr(S,2),ra):n}function wY(v){return Qu(v,fc)}function MY(v,S){return Qu(v,Xr(S,2))}function SY(v){return v&&v.length?Us(v,fc,iA):n}function EY(v,S){return v&&v.length?Us(v,Xr(S,2),iA):n}var OY=oh(function(v,S){return v*S},1),BY=S0("round"),kY=oh(function(v,S){return v-S},0);function IY(v){return v&&v.length?QA(v,fc):0}function TY(v,S){return v&&v.length?QA(v,Xr(S,2)):0}return Fe.after=hf,Fe.ary=gg,Fe.assign=cc,Fe.assignIn=dc,Fe.assignInWith=lA,Fe.assignWith=dh,Fe.at=hc,Fe.before=Yv,Fe.bind=yg,Fe.bindAll=q$,Fe.bindKey=vg,Fe.castArray=c,Fe.chain=Nv,Fe.chunk=Js,Fe.compact=Os,Fe.concat=cs,Fe.cond=H$,Fe.conforms=V$,Fe.constant=mM,Fe.countBy=vx,Fe.create=IA,Fe.curry=Bx,Fe.curryRight=qv,Fe.debounce=Hv,Fe.defaults=Pu,Fe.defaultsDeep=hh,Fe.defer=aM,Fe.delay=kx,Fe.difference=ca,Fe.differenceBy=Bs,Fe.differenceWith=uh,Fe.drop=lc,Fe.dropRight=zs,Fe.dropRightWhile=uc,Fe.dropWhile=js,Fe.fill=B0,Fe.filter=Cx,Fe.flatMap=xx,Fe.flatMapDeep=df,Fe.flatMapDepth=wx,Fe.flatten=qa,Fe.flattenDeep=el,Fe.flattenDepth=Ah,Fe.flip=Vv,Fe.flow=X$,Fe.flowRight=J$,Fe.fromPairs=Ac,Fe.functions=Kx,Fe.functionsIn=lM,Fe.groupBy=Mx,Fe.initial=Am,Fe.intersection=ag,Fe.intersectionBy=sg,Fe.intersectionWith=jw,Fe.invert=AM,Fe.invertBy=cM,Fe.invokeMap=tM,Fe.iteratee=gM,Fe.keyBy=Sx,Fe.keys=Bl,Fe.keysIn=Ha,Fe.map=ch,Fe.mapKeys=xg,Fe.mapValues=Px,Fe.matches=eY,Fe.matchesProperty=tY,Fe. Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return e.layerType==="symbol"&&(s==="text-field"&&i&&!i.glyphs&&k.push(new Jn(n,a,'use of "text-field" requires a style "glyphs" property')),s==="text-font"&&mb(O1(a))&&ol(a.type)==="identity"&&k.push(new Jn(n,a,'"text-font" does not support identity functions'))),k.concat(r({key:e.key,value:a,valueSpec:_,style:i,styleSpec:o,expressionContext:"property",propertyType:t,propertyKey:s}))}function RR(e){return UR(e,"paint")}function zR(e){return UR(e,"layout")}function jR(e){let t=[];const n=e.value,r=e.key,i=e.style,o=e.styleSpec;!n.type&&!n.ref&&t.push(new Jn(r,n,'either "type" or "ref" is required'));let a=ol(n.type);const s=ol(n.ref);if(n.id){const h=ol(n.id);for(let g=0;g<e.arrayIndex;g++){const _=i.layers[g];ol(_.id)===h&&t.push(new Jn(r,n.id,`duplicate layer id "${n.id}", previously used at line ${_.id.__line__}`))}}if("ref"in n){["type","source","source-layer","filter","layout"].forEach(g=>{g in n&&t.push(new Jn(r,n[g],`"${g}" is prohibited for ref layers`))});let h;i.layers.forEach(g=>{ol(g.id)===s&&(h=g)}),h?h.ref?t.push(new Jn(r,n.ref,"ref cannot reference another ref layer")):a=ol(h.type):t.push(new Jn(r,n.ref,`ref layer "${s}" not found`))}else if(a!=="background")if(!n.source)t.push(new Jn(r,n,'missing required property "source"'));else{const h=i.sources&&i.sources[n.source],g=h&&ol(h.type);h?g==="vector"&&a==="raster"?t.push(new Jn(r,n.source,`layer "${n.id}" requires a raster source`)):g!=="raster-dem"&&a==="hillshade"?t.push(new Jn(r,n.source,`layer "${n.id}" requires a raster-dem source`)):g==="raster"&&a!=="raster"?t.push(new Jn(r,n.source,`layer "${n.id}" requires a vector source`)):g==="vector"&&!n["source-layer"]?t.push(new Jn(r,n,`layer "${n.id}" must specify a "source-layer"`)):g==="raster-dem"&&a!=="hillshade"?t.push(new Jn(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):a==="line"&&n.paint&&n.paint["line-gradient"]&&(g!=="geojson"||!h.lineMetrics)&&t.push(new Jn(r,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new Jn(r,n.source,`source "${n.source}" not found`))}return t=t.concat(Kd({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${r}.type`,value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:n,objectKey:"type"})},filter:F7,layout(h){return Kd({layer:n,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return zR(Zy({layerType:a},g))}}})},paint(h){return Kd({layer:n,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return RR(Zy({layerType:a},g))}}})}}})),t}function B1(e){const t=e.value,n=e.key,r=jo(t);return r!=="string"?[new Jn(n,t,`string expected, ${r} found`)]:[]}function aee(e){var t;const n=(t=e.sourceName)!==null&&t!==void 0?t:"",r=e.value,i=e.styleSpec,o=i.source_raster_dem,a=e.style;let s=[];const h=jo(r);if(r===void 0)return s;if(h!=="object")return s.push(new Jn("source_raster_dem",r,`object expected, ${h} found`)),s;const _=ol(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const P in r)!_&&B.includes(P)?s.push(new Jn(P,r[P],`In "${n}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):o[P]?s=s.concat(e.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:e.validateSpec,style:a,styleSpec:i})):s.push(new Jn(P,r[P],`unknown property "${P}"`));return s}const Z9={promoteId:see};function WR(e){const t=e.value,n=e.key,r=e.styleSpec,i=e.style,o=e.validateSpec;if(!t.type)return[new Jn(n,t,'"type" is required')];const a=ol(t.type);let s;switch(a){case"vector":case"raster":return s=Kd({key:n,value:t,valueSpec:r[`source_${a.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:Z9,validateSpec:o}),s;case"raster-dem":return s=aee({sourceName:n,value:t,style:e.style,styleSpec:r,validateSpec:o}),s;case"geojson":if(s=Kd({key:n,value:t,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:Z9}),t.cluster)for(const h in t.clusterProperties){const[g,_]=t.clusterProperties[h],B=typeof g=="string"?[g,["accumulated"],["get",h]]:g;s.push(...Xy({key:`${n}.${h}.map`,value:_,validateSpec:o,expressionContext:"cluster-map"})),s.push(...Xy({key:`${n}.${h}.reduce`,value:B,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Kd({key:n,value:t,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return Kd({key:n,value:t,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new Jn(n,null,"Please use runtime APIs to add canvas sourcLine truncated
${B}`),q].join(`
${s}`)}return g}(e,"",0)}function J9(e,t){const n={};for(const r in t)e[r]!==void 0&&(n[r]=e[r]);for(const r in e)n[r]===void 0&&(n[r]=e[r]);return n}function HR(e,t=2){return e=J9(e,Sa.$root),e.layers&&(e.layers=e.layers.map(n=>J9(n,Sa.layer))),hee(e,{indent:t})}function rS(e,t){for(const n in e)n.indexOf("layout")===0&&t(e[n],n)}function eT(e,t){for(const n in e)n.indexOf("paint")===0&&t(e[n],n)}function BE(e,t){return typeof t=="string"&&t[0]==="@"?BE(e,e.constants[t]):t}function fee(e){return Array.isArray(e.stops)}function f_(e,t,n){e[n]=e[t],delete e[t]}function pee(e){e.version=8,ree(e,i=>{i.type==="video"&&i.url!==void 0&&f_(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),tC(e,i=>{rS(i,o=>{o["symbol-min-distance"]!==void 0&&f_(o,"symbol-min-distance","symbol-spacing")}),eT(i,o=>{o["background-image"]!==void 0&&f_(o,"background-image","background-pattern"),o["line-image"]!==void 0&&f_(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&f_(o,"fill-image","fill-pattern")})}),T7(e,{paint:!0,layout:!0},i=>{const o=BE(e,i.value);fee(o)&&o.stops.forEach(a=>{a[1]=BE(e,a[1])}),i.set(o)}),delete e.constants,tC(e,i=>{rS(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),eT(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 t(i){function o(a){return a.split(",").map(s=>s.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(a=>{a[1]=o(a[1])}),i;throw new Error("unexpected font value")}tC(e,i=>{rS(i,o=>{o["text-font"]&&(o["text-font"]=t(o["text-font"]))})});let n=0;for(let i=e.layers.length-1;i>=0;i--)if(e.layers[i].type!=="symbol"){n=i+1;break}const r=e.layers.splice(n);return r.reverse(),e.layers=e.layers.concat(r),e}function mee(e){const t=[];return tC(e,n=>{n.filter&&(n.filter=eC(n.filter))}),T7(e,{paint:!0,layout:!0},({path:n,value:r,reference:i,set:o})=>{yb(r)||(typeof r=="object"&&!Array.isArray(r)?(o(KR(r,i)),t.push(n.join("."))):i.tokens&&typeof r=="string"&&o(PR(r)))}),e}function gee(e){return JSON.parse(yee(JSON.stringify(e)))}function yee(e){return e.replace(/"hsla?\((.+?)\)"/gi,(t,n)=>{const r=n.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,a,s]=r.slice(1);return[o,a]=[o,a].map(h=>h.endsWith("%")?h:`${parseFloat(h)*100}%`),`"hsl${typeof s=="string"?"a":""}(${[i,o,a,s].filter(Boolean).join(",")})"`}return t})}function vee(e){let t=!1;if(e.version===7&&(e=pee(e),t=!0),e.version===8&&(t=!!mee(e),t=!0),T7(e,{paint:!0,layout:!0},({value:n,reference:r,set:i})=>{r.type==="color"&&i(gee(n))}),!t)throw new Error(`Cannot migrate from ${e.version}`);return e}const _ee={StyleExpression:kR,StylePropertyFunction:IR,ZoomConstantExpression:SE,ZoomDependentExpression:EE,createExpression:E7,createPropertyExpression:O7,isExpression:yb,isExpressionFilter:j5,isZoomExpression:$J,normalizePropertyExpression:YJ},Cee={convertFunction:KR,createFunction:S7,isFunction:mb};var VR={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.1.2/LICENSE.txt
*/(function(e,t){(function(n,r){e.exports=r()})(Bh,function(){var n={},r={};function i(a,s,h){if(r[a]=h,a==="index"){var g="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",_={};return r.shared(_),r.index(n,_),typeof window<"u"&&n.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),n}}i("shared",["exports"],function(a){function s(c,l,d,y){return new(d||(d=Promise))(function(M,T){function K(V){try{W(y.next(V))}catch(re){T(re)}}function L(V){try{W(y.throw(V))}catch(re){T(re)}}function W(V){var re;V.done?M(V.value):(re=V.value,re instanceof d?re:new d(function(Ae){Ae(re)})).then(K,L)}W((y=y.apply(c,l||[])).next())})}function h(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var g=_;function _(c,l){this.x=c,this.y=l}_.prototype={clone:function(){return new _(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),M=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=M,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},_.convert=function(c){return c instanceof _?c:Array.isArray(c)?new _(c[0],c[1]):c};var B=h(g),k=P;function P(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}P.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 M=this.sampleCurveX(d)-c;if(Math.abs(M)<l)return d;var T=this.sampleCurveDerivativeX(d);if(Math.abs(T)<1e-6)break;d-=M/T}var K=0,L=1;for(d=c,y=0;y<20&&(M=this.sampleCurveX(d),!(Math.abs(M-c)<l));y++)c>M?K=d:L=d,d=.5*(L-K)+K;return d},solve:function(c,l){return this.sampleCurveY(this.solveCurveX(c,l))}};var F=h(k);let q,ee;function H(){return q==null&&(q=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),q}function N(){if(ee==null&&(ee=!1,H())){const l=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(l){for(let y=0;y<5*5;y++){const M=4*y;l.fillStyle=`rgb(${M},${M+1},${M+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){ee=!0;break}}}return ee||!1}function Z(c,l,d,y){const M=new F(c,l,d,y);return function(T){return M.solve(T)}}const ue=Z(.25,.1,.25,1);function ye(c,l,d){return Math.min(d,Math.max(l,c))}function be(c,l,d){const y=d-l,M=((c-l)%y+y)%y+l;return M===l?d:M}function J(c,...l){for(const d of l)for(const y in d)c[y]=d[y];return c}let se=1;function xe(c,l,d){const y={};for(const M in c)y[M]=l.call(d||this,c[M],M,c);return y}function Se(c,l,d){const y={};for(const M in c)l.call(d||this,c[M],M,c)&&(y[M]=c[M]);return y}function De(c){return Array.isArray(c)?c.map(De):typeof c=="object"&&c?xe(c,De):c}const Le={};function he(c){Le[c]||(typeof console<"u"&&consLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const _e=[];return c.layerType==="symbol"&&(L==="text-field"&&M&&!M.glyphs&&_e.push(new Y(d,K,'use of "text-field" requires a style "glyphs" property')),L==="text-font"&&ko(CA(K))&&ma(K.type)==="identity"&&_e.push(new Y(d,K,'"text-font" does not support identity functions'))),_e.concat(y({key:c.key,value:K,valueSpec:re,style:M,styleSpec:T,expressionContext:"property",propertyType:l,propertyKey:L}))}function iu(c){return Yd(c,"paint")}function Et(c){return Yd(c,"layout")}function an(c){let l=[];const d=c.value,y=c.key,M=c.style,T=c.styleSpec;d.type||d.ref||l.push(new Y(y,d,'either "type" or "ref" is required'));let K=ma(d.type);const L=ma(d.ref);if(d.id){const W=ma(d.id);for(let V=0;V<c.arrayIndex;V++){const re=M.layers[V];ma(re.id)===W&&l.push(new Y(y,d.id,`duplicate layer id "${d.id}", previously used at line ${re.id.__line__}`))}}if("ref"in d){let W;["type","source","source-layer","filter","layout"].forEach(V=>{V in d&&l.push(new Y(y,d[V],`"${V}" is prohibited for ref layers`))}),M.layers.forEach(V=>{ma(V.id)===L&&(W=V)}),W?W.ref?l.push(new Y(y,d.ref,"ref cannot reference another ref layer")):K=ma(W.type):l.push(new Y(y,d.ref,`ref layer "${L}" not found`))}else if(K!=="background")if(d.source){const W=M.sources&&M.sources[d.source],V=W&&ma(W.type);W?V==="vector"&&K==="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster source`)):V!=="raster-dem"&&K==="hillshade"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster-dem source`)):V==="raster"&&K!=="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a vector source`)):V!=="vector"||d["source-layer"]?V==="raster-dem"&&K!=="hillshade"?l.push(new Y(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!d.paint||!d.paint["line-gradient"]||V==="geojson"&&W.lineMetrics||l.push(new Y(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new Y(y,d,`layer "${d.id}" must specify a "source-layer"`)):l.push(new Y(y,d.source,`source "${d.source}" not found`))}else l.push(new Y(y,d,'missing required property "source"'));return l=l.concat(Ll({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:Ic,layout:W=>Ll({layer:d,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":V=>Et(Te({layerType:K},V))}}),paint:W=>Ll({layer:d,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":V=>iu(Te({layerType:K},V))}})}})),l}function jt(c){const l=c.value,d=c.key,y=Ii(l);return y!=="string"?[new Y(d,l,`string expected, ${y} found`)]:[]}const hr={promoteId:function({key:c,value:l}){if(Ii(l)==="string")return jt({key:c,value:l});{const d=[];for(const y in l)d.push(...jt({key:`${c}.${y}`,value:l[y]}));return d}}};function li(c){const l=c.value,d=c.key,y=c.styleSpec,M=c.style,T=c.validateSpec;if(!l.type)return[new Y(d,l,'"type" is required')];const K=ma(l.type);let L;switch(K){case"vector":case"raster":return L=Ll({key:d,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:hr,validateSpec:T}),L;case"raster-dem":return L=function(W){var V;const re=(V=W.sourceName)!==null&&V!==void 0?V:"",Ae=W.value,_e=W.styleSpec,Be=_e.source_raster_dem,Ke=W.style;let Ge=[];const Ze=Ii(Ae);if(Ae===void 0)return Ge;if(Ze!=="object")return Ge.push(new Y("source_raster_dem",Ae,`object expected, ${Ze} found`)),Ge;const at=ma(Ae.encoding)==="custom",kt=["redFactor","greenFactor","blueFactor","baseShift"],At=W.value.encoding?`"${W.value.encoding}"`:"Default";for(const xt in Ae)!at&&kt.includes(xt)?Ge.push(new Y(xt,Ae[xt],`In "${re}": "${xt}" is only valid when "encoding" is set to "custom". ${At} encoding found`)):Be[xt]?Ge=Ge.concat(W.validateSpec({key:xt,value:Ae[xt],valueSpec:Be[xt],validateSpec:W.validateSpec,style:Ke,styleSpec:_e})):Ge.push(new Y(xt,Ae[xt],`unknown property "${xt}"`));return Ge}({sourceName:d,value:l,style:c.style,styleSpec:y,validateSpec:T}),L;case"geojson":if(L=Ll({key:d,value:l,valueSpec:y.source_geojson,style:M,styleSpec:y,validateSpec:T,objectElementValidators:hr}),l.cluster)for(const W in l.clusterProperties){const[V,re]=l.clusterProperties[W],Ae=typeof V=="string"?[V,["accumulated"],["get",W]]:V;L.push(...kc({key:`${d}.${W}.map`,value:re,validateSpec:T,expressionContext:"cluster-map"})),L.push(...kc({key:`${d}.${W}.reduce`,value:Ae,validateSpec:T,expressionContext:"cluster-reduce"}))}return L;case"video":return Ll({key:d,value:l,valueSpec:y.source_video,style:M,validateSpec:T,styleSpec:y});case"image":return Ll({key:d,value:lLine truncated
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:yi(`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:yi(`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:yi(`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:yi("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:yi(`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:yi(`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:yi("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:yi("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:yi("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:yi(`#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:yi(`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:yi(`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:yi(`#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:yi(`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:yi(`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:yi(`#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:yi(`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:yi(`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:yi(`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:yi(`#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:yi(`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:yi(`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:yi(`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:yi(`#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:yi(`#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:yi("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Fr),terrainDepth:yi("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);}",Fr),terrainCoords:yi("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);}",Fr)};function yi(O,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=u.match(/attribute ([\w]+) ([\w]+)/g),w=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=I?I.concat(w):w,j={};return{fragmentSource:O=O.replace(p,(Q,ie,de,fe,Oe)=>(j[Oe]=!0,ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
varying ${de} ${fe} ${Oe};
#else
uniform ${de} ${fe} u_${Oe};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Oe}
${de} ${fe} ${Oe} = u_${Oe};
#endif
`)),vertexSource:u=u.replace(p,(Q,ie,de,fe,Oe)=>{const Ye=fe==="float"?"vec2":"vec4",$e=Oe.match(/color/)?"color":Ye;return j[Oe]?ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
attribute ${de} ${Ye} a_${Oe};
varying ${de} ${fe} ${Oe};
#else
uniform ${de} ${fe} u_${Oe};
#endif
`:$e==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = a_${Oe};
#else
${de} ${fe} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = unpack_mix_${$e}(a_${Oe}, u_${Oe}_t);
#else
${de} ${fe} ${Oe} = u_${Oe};
#endif
`:ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
attribute ${de} ${Ye} a_${Oe};
#else
uniform ${de} ${fe} u_${Oe};
#endif
`:$e==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${de} ${fe} ${Oe} = a_${Oe};
#else
${de} ${fe} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${de} ${fe} ${Oe} = unpack_mix_${$e}(a_${Oe}, u_${Oe}_t);
#else
${de} ${fe} ${Oe} = u_${Oe};
#endif
`}),staticAttributes:C,staticUniforms:R}}class Na{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,w,I,R,j,Q,ie){this.context=u;let de=this.boundPaintVertexBuffers.length!==w.length;for(let fe=0;!de&&fe<w.length;fe++)this.boundPaintVertexBuffers[fe]!==w[fe]&&(de=!0);!this.vao||this.boundProgram!==p||this.boundLayoutVertexBuffer!==C||de||this.boundIndexBuffer!==I||this.boundVertexOffset!==R||this.boundDynamicVertexBuffer!==j||this.boundDynamicVertexBuffer2!==Q||this.boundDynamicVertexBuffer3!==ie?this.freshBind(p,C,w,I,R,j,Q,ie):(u.bindVertexArray.set(this.vao),j&&j.bind(),I&&I.dynamicDraw&&I.bind(),Q&&Q.bind(),ie&&ie.bind())}freshBind(u,p,C,w,I,R,j,Q){const ie=u.numAttributes,de=this.context,fe=de.gl;this.vao&&this.destroy(),this.vao=de.createVertexArray(),de.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=p,this.boundPaintVertexBuffers=C,this.boundIndexBuffer=w,this.boundVertexOffset=I,this.boundDynamicVertexBuffer=R,this.boundDynamicVertexBuffer2=j,this.boundDynamicVertexBuffer3=Q,p.enableAttributes(fe,u);for(const Oe of C)Oe.enableAttributes(fe,u);R&&R.enableAttributes(fe,u),j&&j.enableAttributes(fe,u),Q&&Q.enableAttributes(fe,u),p.bind(),p.setVertexAttribPointers(fe,u,I);for(const Oe of C)Oe.bind(),Oe.setVertexAttribPointers(fe,u,I);R&&(R.bind(),R.setVertexAttribPointers(fe,u,I)),w&&w.bind(),j&&(j.bind(),j.setVertexAttribPointers(fe,u,I)),Q&&(Q.bind(),Q.setVertexAttribPointers(fe,u,I)),de.currentNumAttributes=ie}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function Jo(O){const u=[];for(let p=0;p<O.length;p++){if(O[p]===null)continue;const C=O[p].split(" ");u.push(C.pop())}return u}class Cu{constructor(u,p,C,w,I,R){const j=u.gl;this.program=j.createProgram();const Q=Jo(p.staticAttributes),ie=C?C.getBinderAttributes():[],de=Q.concat(ie),fe=Wa.prelude.staticUniforms?Jo(Wa.prelude.staticUniforms):[],Oe=p.staticUniforms?Jo(p.staticUniforms):[],Ye=C?C.getBinderUniforms():[],$e=fe.concat(Oe).concat(Ye),He=[];for(const Ut of $e)He.indexOf(Ut)<0&&He.push(Ut);const We=C?C.defines():[];I&&We.push("#define OVERDRAW_INSPECTOR;"),R&&We.push("#define TERRAIN3D;");const ht=We.concat(Wa.prelude.fragmentSource,p.fragmentSource).join(`
`),Ft=We.concat(Wa.prelude.vertexSource,p.vertexSource).join(`
`),tt=j.createShader(j.FRAGMENT_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(tt,ht),j.compileShader(tt),!j.getShaderParameter(tt,j.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${j.getShaderInfoLog(tt)}`);j.attachShader(this.program,tt);const bt=j.createShader(j.VERTEX_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(bt,Ft),j.compileShader(bt),!j.getShaderParameter(bt,j.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${j.getShaderInfoLog(bt)}`);j.attachShader(this.program,bt),this.attributes={};const Pt={};this.numAttributes=de.length;for(let Ut=0;Ut<this.numAttributes;Ut++)de[Ut]&&(j.bindAttribLocation(this.program,Ut,de[Ut]),this.attributes[de[Ut]]=Ut);if(j.linkProgram(this.program),!j.getProgramParameter(this.program,j.LINK_STATUS))throw new Error(`Program failed to link: ${j.getProgramInfoLog(this.program)}`);j.deleteShader(bt),j.deleteShader(tt);for(let Ut=0;Ut<He.length;Ut++){const Zt=He[Ut];if(Zt&&!Pt[Zt]){const dn=j.getUniformLocation(this.program,Zt);dn&&(Pt[Zt]=dn)}}this.fixedUniforms=w(u,Pt),this.terrainUniforms=((Ut,Zt)=>({u_depth:new s.aG(Ut,Zt.u_depth),u_terrain:new s.aG(Ut,Zt.u_terrain),u_terrain_dim:new s.aH(Ut,Zt.u_terrain_dim),u_terrain_matrix:new s.aI(Ut,Zt.u_terrain_matrix),u_terrain_unpack:new s.aJ(Ut,Zt.u_terrain_unpack),u_terrain_exaggeration:new s.aH(Ut,Zt.u_terrain_exaggeration)}))(u,Pt),this.binderUniforms=C?C.getUniforms(u,Pt):[]}draw(u,p,C,w,I,R,j,Q,ie,de,fe,Oe,Ye,$e,He,We,ht,Ft){const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(C),u.setStencilMode(w),u.setColorMode(I),u.setCullFace(R),Q){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,Q.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,Q.texture);for(const Pt in this.terrainUniforms)this.terrainUniforms[Pt].set(Q[Pt])}for(const Pt in this.fixedUniforms)this.fixedUniforms[Pt].set(j[Pt]);He&&He.setUniforms(u,this.binderUniforms,Ye,{zoom:$e});let bt=0;switch(p){case tt.LINES:bt=2;break;case tt.TRIANGLES:bt=3;break;case tt.LINE_STRIP:bt=1}for(const Pt of Oe.get()){const Ut=Pt.vaos||(Pt.vaos={});(Ut[ie]||(Ut[ie]=new Na)).bind(u,this,de,He?He.getPaintVertexBuffers():[],fe,Pt.vertexOffset,We,ht,Ft),tt.drawElements(p,Pt.primitiveLength*bt,tt.UNSIGNED_SHORT,Pt.primitiveOffset*bt*2)}}}function os(O,u,p){const C=1/lr(p,1,u.transform.tileZoom),w=Math.pow(2,p.tileID.overscaledZ),I=p.tileSize*Math.pow(2,u.transform.tileZoom)/w,R=I*(p.tileID.canonical.x+p.tileID.wrap*w),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:[R>>16,j>>16],u_pixel_coord_lower:[65535&R,65535&j]}}const ea=(O,u,p,C)=>{const w=u.style.light,I=w.properties.get("position"),R=[I.x,I.y,I.z],j=function(){var ie=new s.A(9);return s.A!=Float32Array&&(ie[1]=0,ie[2]=0,ie[3]=0,ie[5]=0,ie[6]=0,ie[7]=0),ie[0]=1,ie[4]=1,ie[8]=1,ie}();w.properties.get("anchor")==="viewport"&&function(ie,de){var fe=Math.sin(de),Oe=Math.cos(de);ie[0]=Oe,ie[1]=fe,ie[2]=0,ie[3]=-fe,ie[4]=Oe,ie[5]=0,ie[6]=0,ie[7]=0,ie[8]=1}(j,-u.transform.angle),function(ie,de,fe){var Oe=de[0],Ye=de[1],$e=de[2];ie[0]=Oe*fe[0]+Ye*fe[3]+$e*fe[6],ie[1]=Oe*fe[1]+Ye*fe[4]+$e*fe[7],ie[2]=Oe*fe[2]+Ye*fe[5]+$e*fe[8]}(R,R,j);const Q=w.properties.get("color");return{u_matrix:O,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[Q.r,Q.g,Q.b],u_vertical_gradient:+p,u_opacity:C}},ta=(O,u,p,C,w,I,R)=>s.e(ea(O,u,p,C),os(I,u,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8}),Cs=O=>({u_matrix:O}),bu=(O,u,p,C)=>s.e(Cs(O),os(p,u,C)),fa=(O,u)=>({u_matrix:O,u_world:u}),gA=(O,u,p,C,w)=>s.e(bu(O,u,p,C),{u_world:w}),ju=(O,u,p,C)=>{const w=O.transform;let I,R;if(C.paint.get("circle-pitch-alignment")==="map"){const j=lr(p,1,w.zoom);I=!0,R=[j,j]}else I=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.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:R}},yA=(O,u,p)=>{const C=lr(p,1,u.zoom),w=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*w),u.pixelsToGLUnits[1]/(C*w)],u_overscale_factor:I}},xu=(O,u,p=1)=>({u_matrix:O,u_color:u,u_overlay:0,u_overlay_scale:p}),Wu=O=>({u_matrix:O}),Wo=(O,u,p,C)=>({u_matrix:O,u_extrude_scale:lr(u,1,p),u_intensity:C});function bs(O,u){const p=Math.pow(2,u.canonical.z),C=u.canonical.y;return[new s.Y(0,C/p).toLngLat().lat,new s.Y(0,(C+1)/p).toLngLat().lat]}const Jl=(O,u,p,C)=>{const w=O.transform;return{u_matrix:ll(O,u,p,C),u_ratio:1/lr(u,1,w.zoom),u_device_pixel_ratio:O.pixelRatio,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.p Line truncated
Zoom: <span></span>
`,ba().s[8]++,this._textEl=this._container.querySelector("span"),ba().s[9]++,this.addEventListeners(),ba().s[10]++,this._container}updateZoomLevel(){ba().f[1]++,ba().s[11]++,this._textEl.innerHTML=this._map.getZoom().toFixed(2)}addEventListeners(){ba().f[2]++,ba().s[12]++,this._map.on("render",()=>(ba().f[3]++,ba().s[13]++,this.updateZoomLevel())),ba().s[14]++,this._map.on("zoomIn",()=>(ba().f[4]++,ba().s[15]++,this.updateZoomLevel())),ba().s[16]++,this._map.on("zoomOut",()=>(ba().f[5]++,ba().s[17]++,this.updateZoomLevel()))}onRemove(){ba().f[6]++,ba().s[18]++,this._container.parentNode.removeChild(this._container),ba().s[19]++,this._map=void 0}}function zE(e,t,n){const r={id:[t,n,"circle"].join("_"),source:t,type:"circle",paint:{"circle-color":e,"circle-radius":2},filter:["==","$type","Point"]};return n&&(r["source-layer"]=n),r}function jE(e,t,n,r){const i={id:[n,r,"polygon"].join("_"),source:n,type:"fill",paint:{"fill-color":e,"fill-antialias":!0,"fill-outline-color":e},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function WE(e,t,n){const r={id:[t,n,"line"].join("_"),source:t,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":e},filter:["==","$type","LineString"]};return n&&(r["source-layer"]=n),r}function Wte(e,t){const n=[],r=[],i=[];function o(a){return{circle:t(a,.8),line:t(a,.6),polygon:t(a,.3),polygonOutline:t(a,.6),default:t(a,1)}}return Object.keys(e).forEach(a=>{const s=e[a];if(!s||s.length===0){const h=o(a);r.push(zE(h.circle,a)),i.push(WE(h.line,a)),n.push(jE(h.polygon,h.polygonOutline,a))}else s.forEach(h=>{const g=o(h);r.push(zE(g.circle,a,h)),i.push(WE(g.line,a,h)),n.push(jE(g.polygon,g.polygonOutline,a,h))})}),n.concat(i).concat(r)}function Nte(e,t,n){n=Object.assign({backgroundColor:"#fff"},n);const r={id:"background",type:"background",paint:{"background-color":n.backgroundColor}},i={};return Object.keys(e.sources).forEach(o=>{const a=e.sources[o];(a.type==="vector"||a.type==="geojson")&&(i[o]=a)}),Object.assign(e,{layers:[r].concat(t),sources:i})}const aS={polygonLayer:jE,lineLayer:WE,circleLayer:zE,generateInspectStyle:Nte,generateColoredLayers:Wte};function Fi(){var e="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",t="c6691b5ca8d2cfebe44cf9e3718b8a44b922cf42",n=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 Line truncated
`))?(_b(lO),Gg=null,sO=void 0,bp.set(P,e)):(bp.set(P,bp.get(P)+1,!0),g=!1))}g&&(clearInterval(o),o=void 0)}return function(g){var _=hj(g);if(_)for(var B=_.families,k=0,P=B.length;k<P;++k){var F=B[k],q=_.style+`
`+_.weight+`
`+F;bp.get(q)===void 0&&(bp.set(q,e,!0),s(_.style,_.weight,F)||(bp.set(q,0,!0),o===void 0&&(o=setInterval(h,32))))}}}(),Uoe=function(){var e;return function(t){var n=lO[t];if(n==null){if(Q5){var r=hj(t),i=mj(t,"Žg"),o=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);n=o*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=t,document.body.appendChild(e),n=e.offsetHeight,document.body.removeChild(e);lO[t]=n}return n}}();function mj(e,t){return Gg||(Gg=wc(1,1)),e!=sO&&(Gg.font=e,sO=Gg.font),Gg.measureText(t)}function c4(e,t){return mj(e,t).width}function UT(e,t,n){if(t in n)return n[t];var r=t.split(`
`).reduce(function(i,o){return Math.max(i,c4(e,o))},0);return n[t]=r,r}function Roe(e,t){for(var n=[],r=[],i=[],o=0,a=0,s=0,h=0,g=0,_=t.length;g<=_;g+=2){var B=t[g];if(B===`
`||g===_){o=Math.max(o,a),i.push(a),a=0,s+=h;continue}var k=t[g+1]||e.font,P=c4(k,B);n.push(P),a+=P;var F=Uoe(k);r.push(F),h=Math.max(h,F)}return{width:o,height:s,widths:n,heights:r,lineWidths:i}}function zoe(e,t,n,r,i,o,a,s,h,g,_){e.save(),n!==1&&(e.globalAlpha*=n),t&&e.setTransform.apply(e,t),r.contextInstructions?(e.translate(h,g),e.scale(_[0],_[1]),joe(r,e)):_[0]<0||_[1]<0?(e.translate(h,g),e.scale(_[0],_[1]),e.drawImage(r,i,o,a,s,0,0,a,s)):e.drawImage(r,i,o,a,s,h,g,a*_[0],s*_[1]),e.restore()}function joe(e,t){for(var n=e.contextInstructions,r=0,i=n.length;r<i;r+=2)Array.isArray(n[r+1])?t[n[r]].apply(t,n[r+1]):t[n[r]]=n[r+1]}var Woe=function(){var e=function(t,n){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(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Noe=function(e){Woe(t,e);function t(n){var r=e.call(this,n)||this;r.fontChangeListenerKey_=Eo(bp,Jy.PROPERTYCHANGE,n.redrawText.bind(n)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=ew+" ol-layers";var o=n.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return t.prototype.dispatchRenderEvent=function(n,r){var i=this.getMap();if(i.hasListener(n)){var o=new dj(n,void 0,r);i.dispatchEvent(o)}},t.prototype.disposeInternal=function(){rs(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},t.prototype.renderFrame=function(n){if(!n){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(n),this.dispatchRenderEvent(n0.PRECOMPOSE,n);var r=n.layerStatesArray.sort(function(P,F){return P.zIndex-F.zIndex}),i=n.viewState;this.children_.length=0;for(var o=[],a=null,s=0,h=r.length;s<h;++s){var g=r[s];n.layerIndex=s;var _=g.layer,B=_.getSourceState();if(!s4(g,i)||B!="ready"&&B!="undefined"){_.unrender();continue}var k=_.render(n,a);k&&(k!==a&&(this.children_.push(k),a=k),"getDeclutter"in _&&o.push(_))}for(var s=o.length-1;s>=0;--s)o[s].renderDeclutter(n);Doe(this.element_,this.children_),this.dispatchRenderEvent(n0.POSTCOMPOSE,n),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(n)},t.prototype.forEachLayerAtPixel=function(n,r,i,o,a){for(var s=r.viewState,h=r.layerStatesArray,g=h.length,_=g-1;_>=0;--_){var B=h[_],k=B.layer;if(k.hasRenderer()&&s4(B,s)&&a(k)){var P=k.getRenderer(),F=P.getDataAtPixel(n,r,i);if(F){var q=o(k,F);if(q)return q}}}},t}(koe);const Goe=Noe,yc={ADD:"add",REMOVE:"remove"};var gj=function(){var e=function(t,n){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(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),RT={LENGTH:"length"},c2=function(e){gj(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.element=r,o.index=i,o}return t}(Yp),Pd=function(e){gj(t,e);function t(n,r){var i=e.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=n||[],i.unique_)for(var a=0,s=i.array_.length;a<s;++a)i.assertUnique_(i.array_[a],a);return i.updateLength_(),i}return t.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},t.prototype.extend=function(n){for(var r=0,i=n.length;r<i;++r)this.push(n[r]);return this},t.prototype.forEach=function(n){for(var r=this.array_,i=0,o=r.length;i<o;++i)n(r[i],i,r)},t.prototype.getArray=function(){return this.array_},t.prototype.item=function(n){return this.array_[n]},t.prototype.getLength=function(){return this.get(RT.LENGTH)},t.prototype.insertAt=function(n,r){this.unique_&&this.assertUnique_(r),this.array_.splice(n,0,r),this.updateLength_(),this.dispatchEvent(new c2(yc.ADD,r,n))},t.prototype.pop=function(){return this.removeAt(this.getLength()-1)},t.prototype.push=function(n){this.unique_&&this.assertUnique_(n);var r=this.getLength();return this.insertAt(r,n),this.getLength()},t.prototype.remove=function(n){for(var r=this.array_,i=0,o=r.length;i<o;++i)if(r[i]===n)return this.removeAt(i)},t.prototype.removeAt=function(n){var r=this.array_[n];return this.array_.splice(n,1),this.updateLength_(),this.dispatchEvent(new c2(yc.REMOVE,r,n)),r},t.prototype.setAt=function(n,r){var i=this.getLength();if(n<i){this.unique_&&this.assertUnique_(r,n);var o=this.array_[n];this.array_[ Line truncated
`,""),e.push(t,""),e}var ale=function(){function e(t,n,r,i){this.overlaps=r,this.pixelRatio=n,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=Dd(),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(t,n,r,i){var o=t+n+r+i;if(this.labels_[o])return this.labels_[o];var a=i?this.strokeStates[i]:null,s=r?this.fillStates[r]:null,h=this.textStates[n],g=this.pixelRatio,_=[h.scale[0]*g,h.scale[1]*g],B=Array.isArray(t),k=h.justify?iC[h.justify]:XT(Array.isArray(t)?t[0]:t,h.textAlign||ZC),P=i&&a.lineWidth?a.lineWidth:0,F=B?t:t.split(`
`).reduce(ole,[]),q=Roe(h,F),ee=q.width,H=q.height,N=q.widths,Z=q.heights,ue=q.lineWidths,ye=ee+P,be=[],J=(ye+2)*_[0],se=(H+P)*_[1],xe={width:J<0?Math.floor(J):Math.ceil(J),height:se<0?Math.floor(se):Math.ceil(se),contextInstructions:be};if((_[0]!=1||_[1]!=1)&&be.push("scale",_),i){be.push("strokeStyle",a.strokeStyle),be.push("lineWidth",P),be.push("lineCap",a.lineCap),be.push("lineJoin",a.lineJoin),be.push("miterLimit",a.miterLimit);var Se=Q5?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;Se.prototype.setLineDash&&(be.push("setLineDash",[a.lineDash]),be.push("lineDashOffset",a.lineDashOffset))}r&&be.push("fillStyle",s.fillStyle),be.push("textBaseline","middle"),be.push("textAlign","center");for(var De=.5-k,Le=k*ye+De*P,he=[],qe=[],ge=0,_t=0,Mt=0,dt=0,mt,je=0,Ve=F.length;je<Ve;je+=2){var Xe=F[je];if(Xe===`
`){_t+=ge,ge=0,Le=k*ye+De*P,++dt;continue}var Jt=F[je+1]||h.font;Jt!==mt&&(i&&he.push("font",Jt),r&&qe.push("font",Jt),mt=Jt),ge=Math.max(ge,Z[Mt]);var Ht=[Xe,Le+De*N[Mt]+k*(N[Mt]-ue[dt]),.5*(P+ge)+_t];Le+=N[Mt],i&&he.push("strokeText",Ht),r&&qe.push("fillText",Ht),++Mt}return Array.prototype.push.apply(be,he),Array.prototype.push.apply(be,qe),this.labels_[o]=xe,xe},e.prototype.replayTextBackground_=function(t,n,r,i,o,a,s){t.beginPath(),t.moveTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,i),t.lineTo.apply(t,o),t.lineTo.apply(t,n),a&&(this.alignFill_=a[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(t,n,r,i,o,a,s,h,g,_,B,k,P,F,q,ee){s*=k[0],h*=k[1];var H=r-s,N=i-h,Z=o+g>t?t-g:o,ue=a+_>n?n-_:a,ye=F[3]+Z*k[0]+F[1],be=F[0]+ue*k[1]+F[2],J=H-F[3],se=N-F[0];(q||B!==0)&&(mm[0]=J,gm[0]=J,mm[1]=se,gp[1]=se,gp[0]=J+ye,yp[0]=gp[0],yp[1]=se+be,gm[1]=yp[1]);var xe;return B!==0?(xe=Lf(Dd(),r,i,1,1,B,-r,-i),gl(xe,mm),gl(xe,gp),gl(xe,yp),gl(xe,gm),Uf(Math.min(mm[0],gp[0],yp[0],gm[0]),Math.min(mm[1],gp[1],yp[1],gm[1]),Math.max(mm[0],gp[0],yp[0],gm[0]),Math.max(mm[1],gp[1],yp[1],gm[1]),Ig)):Uf(Math.min(J,J+ye),Math.min(se,se+be),Math.max(J,J+ye),Math.max(se,se+be),Ig),P&&(H=Math.round(H),N=Math.round(N)),{drawImageX:H,drawImageY:N,drawImageW:Z,drawImageH:ue,originX:g,originY:_,declutterBox:{minX:Ig[0],minY:Ig[1],maxX:Ig[2],maxY:Ig[3],value:ee},canvasTransform:xe,scale:k}},e.prototype.replayImageOrLabel_=function(t,n,r,i,o,a,s){var h=!!(a||s),g=i.declutterBox,_=t.canvas,B=s?s[2]*i.scale[0]/2:0,k=g.minX-B<=_.width/n&&g.maxX+B>=0&&g.minY-B<=_.height/n&&g.maxY+B>=0;return k&&(h&&this.replayTextBackground_(t,mm,gp,yp,gm,a,s),zoe(t,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},e.prototype.fill_=function(t){if(this.alignFill_){var n=gl(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;t.save(),t.translate(n[0]%r,n[1]%r),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()},e.prototype.setStrokeStyle_=function(t,n){t.strokeStyle=n[1],t.lineWidth=n[2],t.lineCap=n[3],t.lineJoin=n[4],t.miterLimit=n[5],t.setLineDash&&(t.lineDashOffset=n[7],t.setLineDash(n[6]))},e.prototype.drawLabelWithPointPlacement_=function(t,n,r,i){var o=this.textStates[n],a=this.createLabel(t,n,i,r),s=this.strokeStates[r],h=this.pixelRatio,g=XT(Array.isArray(t)?t[0]:t,o.textAlign||ZC),_=iC[o.textBaseline||A4],B=s&&s.lineWidth?s.lineWidth:0,k=a.width/h-2*o.scale[0],P=g*k+2*(.5-g)*B,F=_*a.height/h+2*(.5-_)*B;return{label:a,anchorX:P,anchorY:F}},e.prototype.execute_=function(t,n,r,i,o,a,s,h){var g;this.pixelCoordinates_&&j1(r,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=t0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),rre(this.renderedTransform_,r));for(var _=0,B=i.length,k=0,P,F,q,ee,H,N,Z,ue,ye,be,J,se,xe=0,Se=0,De=null,Le=null,he=this.coordinateCache_,qe=this.viewRotation_,ge=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,_t={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:qe},Mt=this.instructions!=i||this.overlaps?0:200,dt,mt,je,Ve;_<B;){var Xe=i[_],Jt=Xe[0];switch(Jt){case Ai.BEGIN_GEOMETRY:dt=Xe[1],Ve=Xe[3],dt.getGeometry()?s!==void 0&&!vl(s,Ve.getExtent())?_=Xe[2]+1:++_:_=Xe[2];break;case Ai.BEGIN_PATH:xe>Mt&&(this.fill_(t),xe=0),Se>Mt&&(t.stroke(),Se=0),!xe&&!Se&&(t.beginPath(),ee=NaN,H=NaN),++_;break;case Ai.CIRCLE:k=Xe[1];var Ht=g[k],Ct=g[k+1],Qt=g[k+2],$t=g[k+3],Ie=Qt-Ht,pe=$t-Ct,Me=Math.sqrt(Ie*Ie+pe*pe);t.moveTo(Ht+Me,Ct),t.arc(Ht,Ct,Me,0,2*Math.PI,!0),++_;break;case Ai.CLOSE_PATH:t.closePath(),++_;break;case Ai.CUSTOM:k=Xe[1],P=Xe[2];var Re=Xe[3],it=Xe[4],ot=Xe.length==6?Xe[5]:void 0;_t.geometry=Re,_t.feature=dt,_ in he||(he[_]=[]);var St=he[_];ot?ot(g,k,P,2,St):(St[0]=g[k],St[1]=g[k+1],St.length=2),it(St,_t),++_;break;case Ai.DRAW_IMAGE:k=Xe[1],P=Xe[2],ue=Xe[3],F=Xe[4],q=Xe[5];var Rt=Xe[6],zt=Xe[7],pt=Xe[8],ir=Xe[9],gn=Xe[10],yn=Xe[11],er=Xe[12],Ar=Xe[13],Mr=Xe[14],Wr=Xe[15];if(!ue&&Xe.length>=20){ye=Xe[19],be=Xe[20],J=Xe[21],se=Xe[22];var gr=this.drawLabelWithPointPlacement_(ye,be,J,se);ue=gr.label,Xe[3]=ue;var _i=Xe[23];F=(gr.anchorX-_i)*this.pixelRatio,Xe[4]=F;var Ee=Xe[24];q=(gr.anchorY-Ee)*this.pixelRatio,Xe[5]=q,Rt=ue.height,Xe[6]=Rt,Ar=ue.width,Xe[13]=Ar}var X=void 0;Xe.length>25&&(X=Xe[25]);var Y=void 0,Te=void 0,ut=void 0;Xe.length>17?(Y=Xe[16],Te=Xe[17],ut=Xe[18]):(Y=u1,Te=!1,ut=!1),gn&&ge?yn+=qe:!gn&&!ge&&(yn-=qe);for(var Bt=0;k<P;k+=2)if(!(X&&X[Bt++]<Ar/this.pixelRatio)){var It=this.calculateImageOrLabelDimensions_(ue.width,ue.height,g[k],g[k+1],Ar,Rt,F,q,pt,ir,yn,er,o,Y,Te||ut,dt),Dt=[t,n,ue,It,zt,Te?De:null,ut?Le:null];if(h){if(Mr==="none")continue;if(Mr==="obstacle"){h.insert(It.declutterBox);continue}else{var fn=void 0,Pn=void 0;if(Wr){var On=P-k;if(!Wr[On]){Wr[On]=Dt;continue}if(fn=Wr[On],delete Wr[On],Pn=ZT(fn),h.collides(Pn))continue}if(h.collides(It.declutterBox))continue;fn&&(h. Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(rW(n,this.tileGrid),r):this.setKey(r)},t.prototype.tileUrlFunction=function(n,r,i){},t.prototype.useTile=function(n,r,i){var o=vv(n,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},t}(_ue);const iW=Mue;var Sue=function(){var e=function(t,n){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(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Eue=function(e){Sue(t,e);function t(n){var r=this,i=n.imageSmoothing!==void 0?n.imageSmoothing:!0;return n.interpolate!==void 0&&(i=n.interpolate),r=e.call(this,{attributions:n.attributions,cacheSize:n.cacheSize,opaque:n.opaque,projection:n.projection,state:n.state,tileGrid:n.tileGrid,tileLoadFunction:n.tileLoadFunction?n.tileLoadFunction:Oue,tilePixelRatio:n.tilePixelRatio,tileUrlFunction:n.tileUrlFunction,url:n.url,urls:n.urls,wrapX:n.wrapX,transition:n.transition,interpolate:i,key:n.key,attributionsCollapsible:n.attributionsCollapsible,zDirection:n.zDirection})||this,r.crossOrigin=n.crossOrigin!==void 0?n.crossOrigin:null,r.tileClass=n.tileClass!==void 0?n.tileClass:Zj,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=n.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return t.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var n in this.tileCacheForProjection)if(this.tileCacheForProjection[n].canExpireCache())return!0;return!1},t.prototype.expireCache=function(n,r){var i=this.getTileCacheForProjection(n);this.tileCache.expireCache(this.tileCache==i?r:{});for(var o in this.tileCacheForProjection){var a=this.tileCacheForProjection[o];a.expireCache(a==i?r:{})}},t.prototype.getGutterForProjection=function(n){return this.getProjection()&&n&&!X0(this.getProjection(),n)?0:this.getGutter()},t.prototype.getGutter=function(){return 0},t.prototype.getKey=function(){var n=e.prototype.getKey.call(this);return this.getInterpolate()||(n+=":disable-interpolation"),n},t.prototype.getOpaque=function(n){return this.getProjection()&&n&&!X0(this.getProjection(),n)?!1:e.prototype.getOpaque.call(this,n)},t.prototype.getTileGridForProjection=function(n){var r=this.getProjection();if(this.tileGrid&&(!r||X0(r,n)))return this.tileGrid;var i=qi(n);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=eW(n)),this.tileGridForProjection[i]},t.prototype.getTileCacheForProjection=function(n){var r=this.getProjection();if(!r||X0(r,n))return this.tileCache;var i=qi(n);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new _8(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},t.prototype.createTile_=function(n,r,i,o,a,s){var h=[n,r,i],g=this.getTileCoordForTileUrlFunction(h,a),_=g?this.tileUrlFunction(g,o,a):void 0,B=new this.tileClass(h,_!==void 0?mr.IDLE:mr.EMPTY,_!==void 0?_:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return B.key=s,B.addEventListener(ji.CHANGE,this.handleTileChange.bind(this)),B},t.prototype.getTile=function(n,r,i,o,a){var s=this.getProjection();if(!s||!a||X0(s,a))return this.getTileInternal(n,r,i,o,s||a);var h=this.getTileCacheForProjection(a),g=[n,r,i],_=void 0,B=Hj(g);h.containsKey(B)&&(_=h.get(B));var k=this.getKey();if(_&&_.key==k)return _;var P=this.getTileGridForProjection(s),F=this.getTileGridForProjection(a),q=this.getTileCoordForTileUrlFunction(g,a),ee=new Jj(s,P,a,F,g,q,this.getTilePixelRatio(o),this.getGutter(),(function(H,N,Z,ue){return this.getTileInternal(H,N,Z,ue,s)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return ee.key=k,_?(ee.interimTile=_,ee.refreshInterimChain(),h.replace(B,ee)):h.set(B,ee),ee},t.prototype.getTileInternal=function(n,r,i,o,a){var s=null,h=vv(n,r,i),g=this.getKey();if(!this.tileCache.containsKey(h))s=this.createTile_(n,r,i,o,a,g),this.tileCache.set(h,s);else if(s=this.tileCache.get(h),s.key!=g){var _=s;s=this.createTile_(n,r,i,o,a,g),_.getState()==mr.IDLE?s.interimTile=_.interimTile:s.interimTile=_,s.refreshInterimChain(),this.tileCache.replace(h,s)}return s},t.prototype.setRenderReprojectionEdges=function(n){if(this.renderReprojectionEdges_!=n){this.renderReprojectionEdges_=n;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},t.prototype.setTileGridForProjection=function(n,r){{var i=qs(n);if(i){var o=qi(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}}},t}(iW);function Oue(e,t){e.getImage().src=t}const Bue=Eue;var oW=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.pro Line truncated
* 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:IAe,expression:TAe,expression_name:KAe,fog:PAe,light:FAe,projection:DAe,terrain:LAe,paint:UAe,paint_fill:RAe,"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 moLine truncated
`," "],oce=["{","}","|","\\","^","`"].concat(ice),pO=["'"].concat(oce),AK=["%","/","?",";","#"].concat(pO),cK=["/","?","#"],ace=255,dK=/^[+a-z0-9A-Z_-]{0,63}$/,sce=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,lce={javascript:!0,"javascript:":!0},mO={javascript:!0,"javascript:":!0},Ty={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},gO=JC;function uce(e,t,n){if(e&&kp.isObject(e)&&e instanceof Rp)return e;var r=new Rp;return r.parse(e,t,n),r}Rp.prototype.parse=function(e,t,n){if(!kp.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),e=o.join(i);var s=e;if(s=s.trim(),!n&&e.split("#").length===1){var h=rce.exec(s);if(h)return this.path=s,this.href=s,this.pathname=h[1],h[2]?(this.search=h[2],t?this.query=gO.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var g=tce.exec(s);if(g){g=g[0];var _=g.toLowerCase();this.protocol=_,s=s.substr(g.length)}if(n||g||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var B=s.substr(0,2)==="//";B&&!(g&&mO[g])&&(s=s.substr(2),this.slashes=!0)}if(!mO[g]&&(B||g&&!Ty[g])){for(var k=-1,P=0;P<cK.length;P++){var F=s.indexOf(cK[P]);F!==-1&&(k===-1||F<k)&&(k=F)}var q,ee;k===-1?ee=s.lastIndexOf("@"):ee=s.lastIndexOf("@",k),ee!==-1&&(q=s.slice(0,ee),s=s.slice(ee+1),this.auth=decodeURIComponent(q)),k=-1;for(var P=0;P<AK.length;P++){var F=s.indexOf(AK[P]);F!==-1&&(k===-1||F<k)&&(k=F)}k===-1&&(k=s.length),this.host=s.slice(0,k),s=s.slice(k),this.parseHost(),this.hostname=this.hostname||"";var H=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!H)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var ue=N[P];if(ue&&!ue.match(dK)){for(var ye="",be=0,J=ue.length;be<J;be++)ue.charCodeAt(be)>127?ye+="x":ye+=ue[be];if(!ye.match(dK)){var se=N.slice(0,P),xe=N.slice(P+1),Se=ue.match(sce);Se&&(se.push(Se[1]),xe.unshift(Se[2])),xe.length&&(s="/"+xe.join(".")+s),this.hostname=se.join(".");break}}}this.hostname.length>ace?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=ece.toASCII(this.hostname));var De=this.port?":"+this.port:"",Le=this.hostname||"";this.host=Le+De,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!lce[_])for(var P=0,Z=pO.length;P<Z;P++){var he=pO[P];if(s.indexOf(he)!==-1){var qe=encodeURIComponent(he);qe===he&&(qe=escape(he)),s=s.split(he).join(qe)}}var ge=s.indexOf("#");ge!==-1&&(this.hash=s.substr(ge),s=s.slice(0,ge));var _t=s.indexOf("?");if(_t!==-1?(this.search=s.substr(_t),this.query=s.substr(_t+1),t&&(this.query=gO.parse(this.query)),s=s.slice(0,_t)):t&&(this.search="",this.query={}),s&&(this.pathname=s),Ty[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var De=this.pathname||"",Mt=this.search||"";this.path=De+Mt}return this.href=this.format(),this};Rp.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&kp.isObject(this.query)&&Object.keys(this.query).length&&(o=gO.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ty[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),t+i+n+a+r};Rp.prototype.resolve=function(e){return this.resolveObject(uce(e,!1,!0)).format()};Rp.prototype.resolveObject=function(e){if(kp.isString(e)){var t=new Rp;t.parse(e,!1,!0),e=t}for(var n=new Rp,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var h=a[s];h!=="protocol"&&(n[h]=e[h])}return Ty[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ty[e.protocol]){for(var g=Object.keys(e),_=0;_<g.length;_++){var B=g[_];n[B]=e[B]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!mO[e.protocol]){for(var Z=(e.pathname||"").split("/");Z.length&&!(e.host=Z.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),n.pathname=Z.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var k=n.pathname||"",P=n.search||"";n.path=k+P}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var F=n.pathname&&n.pathname.charAt(0)==="/",q=e.host||e.pathname&&e.pathname.charAt Line truncated
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(n,null,2)}
`)}const i=AW[`filter_${t}`],o=x4(r,i);let a=null;if(o.result==="error")throw new Error(o.value.map(_=>`${_.key}: ${_.message}`).join(", "));a=(_,B,k)=>o.value.evaluate(_,B,{},k);let s=null,h=null;if(r!==n){const _=x4(n,i);if(_.result==="error")throw new Error(_.value.map(B=>`${B.key}: ${B.message}`).join(", "));s=(B,k,P,F,q)=>_.value.evaluate(B,k,{},P,void 0,void 0,F,q),h=!Aw(_.value.expression)}a=a;const g=NW(r);return{filter:a,dynamicFilter:s||void 0,needGeometry:g,needFeature:!!h}}function Pde(e){if(!Dy(e))return e;let t=wO(e);return WW(t),t=jW(t),t}function jW(e){if(!Array.isArray(e))return e;const t=Lde(e);return t===!0?t:t.map(n=>jW(n))}function WW(e){let t=!1;const n=[];if(e[0]==="case"){for(let r=1;r<e.length-1;r+=2)t=t||Dy(e[r]),n.push(e[r+1]);n.push(e[e.length-1])}else if(e[0]==="match"){t=t||Dy(e[1]);for(let r=2;r<e.length-1;r+=2)n.push(e[r+1]);n.push(e[e.length-1])}else if(e[0]==="step"){t=t||Dy(e[1]);for(let r=1;r<e.length-1;r+=2)n.push(e[r+1])}t&&(e.length=0,e.push("any",...n));for(let r=1;r<e.length;r++)WW(e[r])}function Dy(e){if(!Array.isArray(e))return!1;if(Fde(e[0]))return!0;for(let t=1;t<e.length;t++){const n=e[t];if(Dy(n))return!0}return!1}function Fde(e){return e==="pitch"||e==="distance-from-center"}const Dde=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Lde(e){if(Dde.has(e[0]))for(let t=1;t<e.length;t++){const n=e[t];if(Dy(n))return!0}return e}function Ude(e,t){return e<t?-1:e>t?1:0}function NW(e){if(!Array.isArray(e))return!1;if(e[0]==="within")return!0;for(let t=1;t<e.length;t++)if(NW(e[t]))return!0;return!1}function w4(e){if(!e)return!0;const t=e[0];return e.length<=1?t!=="any":t==="=="?FS(e[1],e[2],"=="):t==="!="?y2(FS(e[1],e[2],"==")):t==="<"||t===">"||t==="<="||t===">="?FS(e[1],e[2],t):t==="any"?Rde(e.slice(1)):t==="all"?["all"].concat(e.slice(1).map(w4)):t==="none"?["all"].concat(e.slice(1).map(w4).map(y2)):t==="in"?xK(e[1],e.slice(2)):t==="!in"?y2(xK(e[1],e.slice(2))):t==="has"?wK(e[1]):t==="!has"?y2(wK(e[1])):t==="within"?e:!0}function FS(e,t,n){switch(e){case"$type":return[`filter-type-${n}`,t];case"$id":return[`filter-id-${n}`,t];default:return[`filter-${n}`,e,t]}}function Rde(e){return["any"].concat(e.map(w4))}function xK(e,t){if(t.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(n=>typeof n!=typeof t[0])?["filter-in-large",e,["literal",t.sort(Ude)]]:["filter-in-small",e,["literal",t]]}}function wK(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function y2(e){return["!",e]}var zde=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function jde(e,t){const n={};for(const r in e)r!=="ref"&&(n[r]=e[r]);return zde.forEach(r=>{r in t&&(n[r]=t[r])}),n}function Wde(e){e=e.slice();const t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=jde(e[n],t[e[n].ref]));return e}function Nde(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 Gde={};(function(e){var t=function(){var n=function(ee,H,N,Z){for(N=N||{},Z=ee.length;Z--;N[ee[Z]]=H);return N},r=[1,12],i=[1,13],o=[1,9],a=[1,10],s=[1,11],h=[1,14],g=[1,15],_=[14,18,22,24],B=[18,22],k=[22,24],P={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(H,N,Z,ue,ye,be,J){var se=be.length-1;switch(ye){case 1:this.$=new String(H.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")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(H),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=be[se-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=be[se-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[be[se-2],be[se]];break;case 16:this.$={},this.$[be[se][0]]=be[se][1];break;case 17:this.$=be[se-2],be[se-2][be[se][0]]=be[se][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[be[se]];break;case 21:this.$=be[se-2],be[se-2].push(be[se]);break}},table:[{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,12:1,13:2,15:7,16:8,17:h,23:g},{1:[3]},{14:[1,16]},n(_,[2,7]),n(_,[2,8]),n(_,[2,9]),n(_,[2,10]),n(_,[2,11]),n(_,[2,12]),n(_,[2,3]),n(_,[2,4]),n(_,[2,5]),n([14,18,21,22,24],[2,1]),n(_,[2,2]),{3:20,4:r,18:[1,17],19:18,20:19},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:23,15:7,16:8,17:h,23:g,24:[1,21],25:22},{1:[2,6]},n(_,[2,13]),{18:[1,24],22:[1,25]},n(B,[2,16]),{21:[1,26]},n(_,[2,18]),{22:[1,28],24:[1,27]},n(k,[2,20]),n(_,[2,14]),{3:20,4:r,20:29},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:30,15:7,16:8,17:h,23:g},n(_,[2,19]),{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:31,15:7,16:8,17:h,23:g},n(B,[2,17]),n(B,[2,15]),n(k,[2,21])],defaultActions:{16:[2,6]},parseError:function(H,N){if(N.recoverable)this.trace(H);else throw new Error(H)},parse:function(H){var N=this,Z=[0],ue=[null],ye=[],be=this.table,J="",se=0,xe=0,Se=2,De=1,Le=ye.slice.call(arguments,1),he=Object.create(this.lexer),qe={yy:{}};for(var ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ge)&&(qe.yy[ge]=this.yy[ge]);he.setInput(H,qe.yy),qe.yy.lexer=he,qe.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var _t=he.yylloc;ye.push(_t);var Mt=he.options&&he.options.ranges;typeof qe.yy.parseError=="function"?this.parseError=qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function dt(){var pe;return pe=he.lex()||De,typeof pe!="number"&&(pe=N.symbols_[pe]||pe),pe}for(var mt,je,Ve,Xe,Jt={},Ht,Ct,Qt,$t;;){if(je=Z[Z.length-1],this.defaultActions[je]?Ve=this.defaultActions[je]:((mt===null||typeof mt>"u")&&(mt=dt()),Ve=be[je]&&be[je][mt]),typeof Ve>"u"||!Ve.length||!Ve[0]){var Ie="";$t=[];for(Ht in be[je])this.terminals_[Ht]&&Ht>Se&&$t.push("'"+this.terminals_[Ht]+"'");he.showPosition?Ie="Parse error on line "+(se+1)+`:
`+he.showPosition()+`
Expecting `+$t.join(", ")+", got '"+(this.terminals_[mt]||mt)+"'":Ie="Parse error on line "+(se+1)+": Unexpected "+(mt==De?"end of input":"'"+(this.terminals_[mt]||mt)+"'"),this.parseError(Ie,{text:he.match,token:this.terminals_[mt]||mt,line:he.yylineno,loc:_t,expected:$t})}if(Ve[0]instanceof Array&&Ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+je+", token: "+mt);switch(Ve[0]){case 1:Z.push(mt),ue.push(he.yytext),ye.push(he.yylloc),Z.push(Ve[1]),mt=null,xe=he.yyleng,J=he.yytext,se=he.yylineno,_t=he.yylloc;break;case 2:if(Ct=this.productions_[Ve[1]][1],Jt.$=ue[ue.length-Ct],Jt._$={first_line:ye[ye.length-(Ct||1)].first_line,last_line:ye[ye.length-1].last_line,first_column:ye[ye.length-(Ct||1)].first_column,last_column:ye[ye.length-1].last_column},Mt&&(Jt._$.range=[ye[ye.length-(Ct||1)].range[0],ye[ye.length-1].range[1]]),Xe=this.performAction.apply(Jt,[J,xe,se,qe.yy,Ve[1],ue,ye].concat(Le)),typeof Xe<"u")return Xe;Ct&&(Z=Z.slice(0,-1*Ct*2),ue=ue.slice(0,-1*Ct),ye=ye.slice(0,-1*Ct)),Z.push(this.productions_[Ve[1]][0]),ue.push(Jt.$),ye.push(Jt._$),Qt=be[Z[Z.length-2]][Z[Z.length-1]],Z.push(Qt);break;case 3:return!0}}return!0}},F=function(){var ee={EOF:1,parseError:function(N,Z){if(this.yy.parser)this.yy.parser.parseError(N,Z);else throw new Error(N)},setInput:function(H,N){return this.yy=N||this.yy||{},this._input=H,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 H=this._input[0];this.yytext+=H,this.yyleng++,this.offset++,this.match+=H,this.matched+=H;var N=H.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),H},unput:function(H){var N=H.length,Z=H.split(/(?:\r\n?|\n)/g);this._input=H+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var ue=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),Z.length-1&&(this.yylineno-=Z.length-1);var ye=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:Z?(Z.length===ue.length?this.yylloc.first_column:0)+ue[ue.length-Z.length].length-Z[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[ye[0],ye[0]+this.yyleng-N]),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(H){this.unput(this.match.slice(H))},pastInput:function(){var H=this.matched.substr(0,this.matched.length-this.match.length);return(H.length>20?"...":"")+H.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var H=this.match;return H.length<20&&(H+=this._input.substr(0,20-H.length)),(H.substr(0,20)+(H.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var H=this.pastInput(),N=new Array(H.length+1).join("-");return H+this.upcomingInput()+`
`+N+"^"},test_match:function(H,N){var Z,ue,ye;if(this.options.backtrack_lexer&&(ye={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&&(ye.yylloc.range=this.yylloc.range.slice(0))),ue=H[0].match(/(?:\r\n?|\n).*/g),ue&&(this.yylineno+=ue.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ue?ue[ue.length-1].length-ue[ue.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+H[0].length},this.yytext+=H[0],this.match+=H[0],this.matches=H,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(H[0].length),this.matched+=H[0],Z=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var be in ye)this[be]=ye[be];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var H,N,Z,ue;this._more||(this.yytext="",this.match="");for(var ye=this._currentRules(),be=0;be<ye.length;be++)if(Z=this._input.match(this.rules[ye[be]]),Z&&(!N||Z[0].length>N[0].length)){if(N=Z,ue=be,this.options.backtrack_lexer){if(H=this.test_match(Z,ye[be]),H!==!1)return H;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(H=this.test_match(N,ye[ue]),H!==!1?H:!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 N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>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(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(N,Z,ue,ye){switch(ue){case 0:break;case 1:return 6;case 2:return Z.yytext=Z.yytext.substr(1,Z.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 ee}();P.lexer=F;function q(){this.yy={}}return q.prototype=P,P.Parser=q,new q}();typeof Nde<"u"&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})})(Gde);const GW={StyleExpression:UW,isExpression:RW,isExpressionFilter:V8,createExpression:x4,createPropertyExpression:zW,normalizePropertyExpression:xde,ZoomConstantExpression:CO,ZoomDependentExpression:bO,StylePropertyFunction:dw},QW={convertFunction:Sde,createFunction:$8,isFunction:Q8};var $W=typeof Object.assign=="function"?Object.assign:function(e,t){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(o!=null)for(var a in o)o.hasOwnProperty(a)&&(n[a]=o[a])}return n};function DS(e){return e*Math.PI/180}var nv=function(){for(var e=[],t=78271.51696402048;e.length<=24;t/=2)e.push(t);return e}();function YW(e,t){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,t);var n=document.createElement("canvas");return n.width=e,n.height=t,n}function Qde(e,t){for(var n=0,r=t.length;n<r;++n){var i=t[n];if(i<e&&n+1<r){var o=t[n]/t[n+1];return n+Math.log(t[n]/e)/Math.log(o)}}return r-1}var $de=Array(256).join(" ");function MO(e,t){if(t>=.05){for(var n="",r=e.split(`
`),i=$de.slice(0,Math.round(t/.1)),o=0,a=r.length;o<a;++o)o>0&&(n+=`
`),n+=r[o].split("").join(i);return n}return e}var LS;function qW(){return LS||(LS=YW(1,1).getContext("2d")),LS}function z0(e,t){return qW().measureText(e).width+(e.length-1)*t}var SO={};aO&&Eo(aO,ji.CLEAR,function(){SO={}});function EO(e,t,n,r){if(e.indexOf(`
`)!==-1){for(var i=e.split(`
`),o=[],a=0,s=i.length;a<s;++a)o.push(EO(i[a],t,n,r));return o.join(`
`)}var h=n+","+t+","+e+","+r,g=SO[h];if(!g){var _=e.split(" ");if(_.length>1){var B=qW();B.font=t;for(var k=B.measureText("M").width,P=k*n,F="",o=[],a=0,s=_.length;a<s;++a){var q=_[a],ee=F+(F?" ":"")+q;z0(ee,r)<=P?F=ee:(F&&o.push(F),F=q)}F&&o.push(F);for(var a=0,s=o.length;a<s&&s>1;++a){var H=o[a];if(z0(H,r)<P*.35){var N=a>0?z0(o[a-1],r):1/0,Z=a<s-1?z0(o[a+1],r):1/0;o.splice(a,1),s-=1,N<Z?(o[a-1]+=" "+H,a-=1):o[a]=H+" "+o[a]}}for(var a=0,s=o.length-1;a<s;++a){var ue=o[a],ye=o[a+1];if(z0(ue,r)>P*.7&&z0(ye,r)<P*.6){var be=ue.split(" "),J=be.pop();z0(J,r)<P*.2&&(o[a]=be.join(" "),o[a+1]=J+" "+ye),s-=1}}g=o.join(`
`)}else g=e;g=MO(g,r),SO[h]=g}return g}var Yde=QW.isFunction,qde=QW.convertFunction,Hde=GW.isExpression,Vde=GW.createPropertyExpression,Zde={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Xde={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},Jde=function(e,t){var n=Vde(e,t);if(n.result==="error")throw new Error(n.value.map(function(r){return"".concat(r.key,": ").concat(r.message)}).join(", "));return n.value},OO={},M4={zoom:0},v2,US;function Pi(e,t,n,r,i,o){var a=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});var s=o[a];if(!s[n]){var h=(e[t]||OO)[n],g=AW["".concat(t,"_").concat(e.type)][n];h===void 0&&(h=g.default);var _=Hde(h);if(!_&&Yde(h)&&(h=qde(h,g),_=!0),_){var B=Jde(h,g);s[n]=B.evaluate.bind(B)}else g.type=="color"&&(h=Xl.parse(h)),s[n]=function(){return h}}return M4.zoom=r,s[n](M4,i)}function ehe(e,t,n,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Kde(t).filter),M4.zoom=r,i[e](M4,n)}function xm(e,t){if(e){if(e.a===0||t===0)return;var n=e.a;return t=t===void 0?1:t,n===0?"transparent":"rgba("+Math.round(e.r*255/n)+","+Math.round(e.g*255/n)+","+Math.round(e.b*255/n)+","+n*t+")"}return e}var the=/^([^]*)\{(.*)\}([^]*)$/;function RS(e,t){var n;do if(n=e.match(the),n){var r=t[n[2]]||"";e=n[1]+r+n[3]}while(n);return e}function nhe(e,t,n,r,i,o,a){if(r===void 0&&(r=nv),typeof t=="string"&&(t=JSON.parse(t)),t.version!=8)throw new Error("glStyle version 8 required.");var s,h;if(o){if(typeof Image<"u"){var g=new Image;g.crossOrigin="anonymous",g.onload=function(){s=g,h=[g.width,g.height],e.changed(),g.onload=null},g.src=o}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){var _=self;_.postMessage({action:"loadImage",src:o}),_.addEventListener("message",function(_t){_t.data.action==="imageLoaded"&&_t.data.src===o&&(s=_t.data.image,h=[s.width,s.height])})}}for(var B=Wde(t.layers),k={},P=[],F={},q={},ee={},H={},N,Z=0,ue=B.length;Z<ue;++Z){var ye=B[Z],be=ye.id;if(typeof n=="string"&&ye.source==n||n.indexOf(be)!==-1){var J=ye["source-layer"];if(!N){N=ye.source;var se=t.sources[N];if(!se)throw new Error('Source "'.concat(N,'" is not defined'));var xe=se.type;if(xe!=="vector"&&xe!=="geojson")throw new Error('Source "'.concat(N,'" is not of type "vector" or "geojson", but "').concat(xe,'"'))}var Se=k[J];Se||(Se=[],k[J]=Se),Se.push({layer:ye,index:Z}),P.push(be)}}var De=new L_,Le=new Ay,he=[],qe=function(ge,_t){var Mt=ge.getProperties(),dt=k[Mt.layer];if(dt){var mt=r.indexOf(_t);mt==-1&&(mt=Qde(_t,r));for(var je=Zde[ge.getGeometry().getType()],Ve={properties:Mt,type:je},Xe=-1,Jt=function(Qt,$t){var Ie=dt[Qt],pe=Ie.layer,Me=pe.id,Re=pe.layout||OO,it=pe.paint||OO;if(Re.visibility==="none"||"minzoom"in pe&&mt<pe.minzoom||"maxzoom"in pe&&mt>=pe.maxzoom)return"continue";var ot=pe.filter;if(!ot||ehe(Me,ot,Ve,mt,H)){var St=void 0,Rt=void 0,zt=void 0,pt=void 0,ir=void 0,gn=void 0,yn=Ie.index;if(je==3&&(pe.type=="fill"||pe.type=="fill-extrusion"))if(Rt=Pi(pe,"paint",pe.type+"-opacity",mt,Ve,ee),pe.type+"-pattern"in it){var er=Pi(pe,"paint",pe.type+"-pattern",mt,Ve,ee);if(er){var Ar=typeof er=="string"?RS(er,Mt):er.toString();if(s&&i&&i[Ar]){++Xe,gn=he[Xe],(!gn||!gn.getFill()||gn.getStroke()||gn.getText())&&(gn=new q0({fill:new Ay}),he[Xe]=gn),zt=gn.getFill(),gn.setZIndex(yn);var Mr=Ar+"."+Rt,Wr=q[Mr];if(!Wr){var gr=i[Ar],_i=YW(gr.width,gr.height),Ee=_i.getContext("2d");Ee.globalAlpha=Rt,Ee.drawImage(s,gr.x,gr.y,gr.width,gr.height,0,0,gr.width,gr.height),Wr=Ee.createPattern(_i,"repeat"),q[Mr]=Wr}zt.setColor(Wr)}}}else St=xm(Pi(pe,"paint",pe.type+"-color",mt,Ve,ee),Rt),pe.type+"-outline-color"in it&&(ir=xm(Pi(pe,"paint",pe.type+"-outline-color",mt,Ve,ee),Rt)),ir||(ir=St),(St||ir)&&(++Xe,gn=he[Xe],(!gn||St&&!gn.getFill()||!St&&gn.getFill()||ir&&!gn.getStroke()||!ir&&gn.getStroke()||gn.getText())&&(gn=new q0({fill:St?new Ay:void 0,stroke:ir?new L_:void 0}),he[Xe]=gn),St&&(zt=gn.getFill(),zt.setColor(St)),ir&&(pt=gn.getStroke(),pt.setColor(ir),pt.setWidth(.5)),gn.setZIndex(yn));if(je!=1&&pe.type=="line"){St=!("line-pattern"in it)&&"line-color"in it?xm(Pi(pe,"paint","line-color",mt,Ve,ee),Pi(pe,"paint","line-opacity",mt,Ve,ee)):void 0;var X=Pi(pe,"paint","line-width",mt,Ve,ee);St&&X>0&&(++Xe,gn=he[Xe],(!gn||!gn.getStroke()||gn.getFill()||gn.getText())&&(gn=new q0({stroke:new L_}),he[Xe]=gn),pt=gn.getStroke(),pt.setLineCap(Pi(pe,"layout","line-cap",mt,Ve,ee)),pt.setLineJoin(Pi(pe,"layout","line-join",mt,Ve,ee)),pt.setMiterLimit(Pi(pe,"layout","line-miter-limit",mt,Ve,ee)),pt.setColor(St),pt.setWidth(X),pt.setLineDash(it["line-dasharray"]?Pi(pe,"paint","line-dasharray",mt,Ve,ee).map(function(ri){return ri*X}):null),gn.setZIndex(yn))}var Y=!1,Te=null,ut=0,Bt=void 0,It=void 0,Dt=void 0;if((je==1||je==2)&&"icon-image"in Re){var fn=Pi(pe,"layout","icon-image",mt,Ve,ee);if(fn){Bt=typeof fn=="string"?RS(fn,Mt):fn.toS Line truncated
`)return ri.push(`
`,""),ri;if(je==2){ri.push(MO(Wa,ho),Fr);return}Wa=EO(Wa,Fr,ai,ho).split(`
`);for(var yi=0,Na=Wa.length;yi<Na;++yi)yi>0&&ri.push(`
`,""),ri.push(Wa[yi],Fr);return ri},[]):or=RS(ja,Mt).trim(),Rt=Pi(pe,"paint","text-opacity",mt,Ve,ee)}if(or&&Rt&&!Dt){Y||(++Xe,gn=he[Xe],(!gn||!gn.getText()||gn.getFill()||gn.getStroke())&&(gn=new q0,he[Xe]=gn),gn.setImage(void 0),gn.setGeometry(void 0)),gn.getText()||gn.setText(Te||new ble({padding:[2,2,2,2]})),Te=gn.getText();var Ba=Re["text-transform"];Ba=="uppercase"?or=Array.isArray(or)?or.map(function(si,Xo){return Xo%2?si:si.toUpperCase()}):or.toUpperCase():Ba=="lowercase"&&(or=Array.isArray(or)?or.map(function(si,Xo){return Xo%2?si:si.toLowerCase()}):or.toLowerCase());var Mi=Array.isArray(or)?or:je==2?MO(or,ho):EO(or,ci,ai,ho);Te.setText(Mi),Te.setFont(ci),Te.setRotation(DS(Pi(pe,"layout","text-rotate",mt,Ve,ee)));var is=Pi(pe,"layout","text-anchor",mt,Ve,ee),Pe=Y||je==1?"point":Pi(pe,"layout","symbol-placement",mt,Ve,ee);Te.setPlacement(Pe),Te.setOverflow(Pe==="point");var gi=Pi(pe,"paint","text-halo-width",mt,Ve,ee),Wn=Pi(pe,"layout","text-offset",mt,Ve,ee),ro=Pi(pe,"paint","text-translate",mt,Ve,ee),_o=0,Ui=0;if(Pe=="point"){var ve="center";is.indexOf("left")!==-1?(ve="left",Ui=gi):is.indexOf("right")!==-1&&(ve="right",Ui=-gi),Te.setTextAlign(ve);var Je=Pi(pe,"layout","text-rotation-alignment",mt,Ve,ee);Te.setRotateWithView(Je=="map")}else Te.setMaxAngle(DS(Pi(pe,"layout","text-max-angle",mt,Ve,ee))*or.length/Mi.length),Te.setTextAlign(),Te.setRotateWithView(!1);var Vt="middle";is.indexOf("bottom")==0?(Vt="bottom",_o=-gi-.5*(Li-1)*to):is.indexOf("top")==0&&(Vt="top",_o=gi+.5*(Li-1)*to),Te.setTextBaseline(Vt),Te.setOffsetX(Wn[0]*to+Ui+ro[0]),Te.setOffsetY(Wn[1]*to+_o+ro[1]),Le.setColor(xm(Pi(pe,"paint","text-color",mt,Ve,ee),Rt)),Te.setFill(Le);var sn=xm(Pi(pe,"paint","text-halo-color",mt,Ve,ee),Rt);if(sn){De.setColor(sn),gi*=2;var Lt=.5*to;De.setWidth(gi<=Lt?gi:Lt),Te.setStroke(De)}else Te.setStroke(void 0);var wn=Pi(pe,"layout","text-padding",mt,Ve,ee),dr=Te.getPadding();wn!==dr[0]&&(dr[0]=wn,dr[1]=wn,dr[2]=wn,dr[3]=wn),gn.setZIndex(yn)}}},Ht=0,Ct=dt.length;Ht<Ct;++Ht)Jt(Ht);if(Xe>-1)return he.length=Xe+1,he}};return e.setStyle(qe),e.set("mapbox-source",N),e.set("mapbox-layers",P),qe}var HW={exports:{}};(function(){var e;HW.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(t){return"https://fonts.google.com/specimen/"+t.replace(/( )/g,"+")},normalizeName:function(t){return t}},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 Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)t.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(JW);var vhe=JW.exports;const Rf=Oa(vhe);function J0(){var e="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",t="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",n=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=n[r]||(n[r]={});(!o[e]||o[e].hash!==t)&&(o[e]=i);var a=o[e];return J0=function(){return a},a}J0();class _he extends Mn.Component{render(){J0().f[0]++;const t=(J0().s[0]++,{width:20,height:20,...this.props.style});return J0().s[1]++,this.props.isCollapsed?(J0().b[0][0]++,G.jsx(cte,{style:t})):(J0().b[0][1]++,G.jsx(Ate,{style:t}))}}function hy(){var e="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",t="b04bfec534013c327fd210571832bbd2813a944a",n=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=n[r]||(n[r]={});(!o[e]||o[e].hash!==t)&&(o[e]=i);var a=o[e];return hy=function(){return a},a}hy();class Che extends Mn.Component{render(){return hy().f[0]++,hy().s[0]++,G.jsx("li",{className:"maputnik-layer-list-group",children:G.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:t=>(hy().f[1]++,hy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[G.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),G.jsx("span",{className:"maputnik-space"}),G.jsx(_he,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rb.apply(this,arguments)}function bhe(e){if(Array.isArray(e))return e}function xhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],h=!0,g=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;h=!1}else for(;!(h=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);h=!0)Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tN(e,t){return bhe(e)||xhe(e,t)||eN(e,t)||whe()}function rv(e){"@babel/helpers - typeof";return rv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function Mhe(e,t){if(rv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(rv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nN(e){var t=Mhe(e,"string");return rv(t)=="symbol"?t:t+""}function Ma(e,t,n){return t=nN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),r.forEach(function(i){Ma(e,i,n[i])})}return e}function kb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nN(r.key),r)}}function Ib(e,t,n){return t&&TK(e.prototype,t),n&&TK(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function go(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z8(e,t){if(t&&(rv(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return go(e)}function ib(e){return ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ib(e)}function IO(e,t){return IO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},IO(e,t)}function X8(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&IO(e,t)}var She=function(e,t,n,r,i,o,a,s){if(!e){var h;if(t===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[n,r,i,o,a,s],_=0;h=new Error(t.replace(/%s/g,function(){return g[_++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}},Ehe=She;const K1=Oa(Ehe);function Ohe(e){if(Array.isArray(e))return kO(e)}function Bhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function khe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ihe(e){return Ohe(e)||Bhe(e)||eN(e)||khe()}var The=function(){function e(){kb(this,e),Ma(this,"refs",{})}return Ib(e,[{key:"add",value:function(n,r){this.refs[n]||(this.refs[n]=[]),this.refs[n].push(r)}},{key:"remove",value:function(n,r){var i=this.getIndex(n,r);i!==-1&&this.refs[n].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var n=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==n.active.index})}},{key:"getIndex",value:function(n,r){return this.refs[n].indexOf(r)}},{key:"getOrderedRefs",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[n].sort(Khe)}}]),e}();function Khe(e,t){var n=e.node.sortableInfo.index,r=t.node.sortableInfo.index;return n-r}function rN(e,t){return Object.keys(e).reduce(function(n,r){return t.indexOf(r)===-1&&(n[r]=e[r]),n},{})}var Kg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},iN=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function C2(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function b2(e,t){e.style["".concat(iN,"Transform")]=t==null?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function WS(e,t){e.style["".concat(iN,"TransitionDuration")]=t==null?"":"".concat(t,"ms")}function z_(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function KK(e,t,n){return Math.max(e,Math.min(n,t))}function fy(e){return e.substr(-2)==="px"?parseFloat(e):0}function Phe(e){var t=window.getComputedStyle(e);return{bottom:fy(t.marginBottom),left:fy(t.marginLeft),right:fy(t.marginRight),top:fy(t.marginTop)}}function J8(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function NS(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.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 Fhe(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function n3(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:n3(e.parentNode,t,r)}}function Dhe(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}function PK(e){var t=e.lockOffset,n=e.width,r=e.height,i=t,o=t,a="px";if(typeof t=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);K1(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),i=parseFloat(t),o=parseFloat(t),a=s[1]}return K1(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",t),a==="%"&&(i=i*n/100,o=o*r/100),{x:i,y:o}}function Lhe(e){var t=e.height,n=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];K1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=tN(i,2),a=o[0],s=o[1];return[PK({height:t,lockOffset:a,width:n}),PK({height:t,lockOffset:s,width:n})]}function Uhe(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return n.test(t[i])})}function oN(e){return e instanceof HTMLElement?Uhe(e)?e:oN(e.parentNode):null}function Rhe(e){var t=window.getComputedStyle(e);return t.display==="grid"?{x:fy(t.gridColumnGap),y:fy(t.gridRowGap)}:{x:0,y:0}}var j0={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},e1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function zhe(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0),i=Ihe(r.querySelectorAll(t));return i.forEach(function(o,a){if(o.type!=="file"&&(o.value=n[a].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===e1.Canvas&&n[a].width>0&&n[a].height>0){var s=o.getContext("2d");s.drawImage(n[a],0,0)}}),r}function jhe(e){var t,n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return n=t=function(i){X8(o,i);function o(){var a,s;kb(this,o);for(var h=arguments.length,g=new Array(h),_=0;_<h;_++)g[_]=arguments[_];return s=Z8(this,(a=ib(o)).call.apply(a,[this].concat(g))),Ma(go(go(s)),"wrappedInstance",kr.createRef()),s}return Ib(o,[{key:"componentDidMount",value:function(){var s=d0.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return K1(r.with Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var AN=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],O4=AN.join(","),cN=typeof Element>"u",P1=cN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,B4=!cN&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e==null?void 0:e.ownerDocument},k4=function e(t,n){var r;n===void 0&&(n=!0);var i=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),o=i===""||i==="true",a=o||n&&t&&e(t.parentNode);return a},efe=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},dN=function(t,n,r){if(k4(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(O4));return n&&P1.call(t,O4)&&i.unshift(t),i=i.filter(r),i},hN=function e(t,n,r){for(var i=[],o=Array.from(t);o.length;){var a=o.shift();if(!k4(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),h=s.length?s:a.children,g=e(h,!0,r);r.flatten?i.push.apply(i,g):i.push({scopeParent:a,candidates:g})}else{var _=P1.call(a,O4);_&&r.filter(a)&&(n||!t.includes(a))&&i.push(a);var B=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),k=!k4(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(B&&k){var P=e(B===!0?a.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:a,candidates:P})}else o.unshift.apply(o,a.children)}}return i},fN=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},Pm=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||efe(t))&&!fN(t)?0:t.tabIndex},tfe=function(t,n){var r=Pm(t);return r<0&&n&&!fN(t)?0:r},nfe=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},pN=function(t){return t.tagName==="INPUT"},rfe=function(t){return pN(t)&&t.type==="hidden"},ife=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},ofe=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},afe=function(t){if(!t.name)return!0;var n=t.form||B4(t),r=function(s){return n.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(t.name));else try{i=r(t.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=ofe(i,t.form);return!o||o===t},sfe=function(t){return pN(t)&&t.type==="radio"},lfe=function(t){return sfe(t)&&!afe(t)},ufe=function(t){var n,r=t&&B4(t),i=(n=r)===null||n===void 0?void 0:n.host,o=!1;if(r&&r!==t){var a,s,h;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||t!=null&&(h=t.ownerDocument)!==null&&h!==void 0&&h.contains(t));!o&&i;){var g,_,B;r=B4(i),i=(g=r)===null||g===void 0?void 0:g.host,o=!!((_=i)!==null&&_!==void 0&&(B=_.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return o},DK=function(t){var n=t.getBoundingClientRect(),r=n.width,i=n.height;return r===0&&i===0},Afe=function(t,n){var r=n.displayCheck,i=n.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=P1.call(t,"details>summary:first-of-type"),a=o?t.parentElement:t;if(P1.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=t;t;){var h=t.parentElement,g=B4(t);if(h&&!h.shadowRoot&&i(h)===!0)return DK(t);t.assignedSlot?t=t.assignedSlot:!h&&g!==t.ownerDocument?t=g.host:t=h}t=s}if(ufe(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return DK(t);return!1},cfe=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var i=n.children.item(r);if(i.tagName==="LEGEND")return P1.call(n,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}n=n.parentElement}return!1},I4=function(t,n){return!(n.disabled||k4(n)||rfe(n)||Afe(n,t)||ife(n)||cfe(n))},KO=function(t,n){return!(lfe(n)||Pm(n)<0||!I4(t,n))},dfe=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},hfe=function e(t){var n=[],r=[];return t.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,h=tfe(s,a),g=a?e(i.candidates):s;h===0?a?n.push.apply(n,g):n.push(s):r.push({documentOrder:o,tabIndex:h,item:i,isScope:a,content:g})}),r.sort(nfe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.pusLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function LK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function UK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LK(Object(n),!0).forEach(function(r){mfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LK(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mfe(e,t,n){return t=yfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gfe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yfe(e){var t=gfe(e,"string");return typeof t=="symbol"?t:String(t)}var RK={activateTrap:function(t,n){if(t.length>0){var r=t[t.length-1];r!==n&&r.pause()}var i=t.indexOf(n);i===-1||t.splice(i,1),t.push(n)},deactivateTrap:function(t,n){var r=t.indexOf(n);r!==-1&&t.splice(r,1),t.length>0&&t[t.length-1].unpause()}},vfe=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},_fe=function(t){return(t==null?void 0:t.key)==="Escape"||(t==null?void 0:t.key)==="Esc"||(t==null?void 0:t.keyCode)===27},lC=function(t){return(t==null?void 0:t.key)==="Tab"||(t==null?void 0:t.keyCode)===9},Cfe=function(t){return lC(t)&&!t.shiftKey},bfe=function(t){return lC(t)&&t.shiftKey},zK=function(t){return setTimeout(t,0)},jK=function(t,n){var r=-1;return t.every(function(i,o){return n(i)?(r=o,!1):!0}),r},__=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,r):t},x2=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},xfe=[],wfe=function(t,n){var r=(n==null?void 0:n.document)||document,i=(n==null?void 0:n.trapStack)||xfe,o=UK({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Cfe,isKeyBackward:bfe},n),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,h=function(Le,he,qe){return Le&&Le[he]!==void 0?Le[he]:o[qe||he]},g=function(Le,he){var qe=typeof(he==null?void 0:he.composedPath)=="function"?he.composedPath():void 0;return a.containerGroups.findIndex(function(ge){var _t=ge.container,Mt=ge.tabbableNodes;return _t.contains(Le)||(qe==null?void 0:qe.includes(_t))||Mt.find(function(dt){return dt===Le})})},_=function(Le){var he=o[Le];if(typeof he=="function"){for(var qe=arguments.length,ge=new Array(qe>1?qe-1:0),_t=1;_t<qe;_t++)ge[_t-1]=arguments[_t];he=he.apply(void 0,ge)}if(he===!0&&(he=void 0),!he){if(he===void 0||he===!1)return he;throw new Error("`".concat(Le,"` was specified but was not a node, or did not return a node"))}var Mt=he;if(typeof he=="string"&&(Mt=r.querySelector(he),!Mt))throw new Error("`".concat(Le,"` as selector refers to no known node"));return Mt},B=function(){var Le=_("initialFocus");if(Le===!1)return!1;if(Le===void 0||!r3(Le,o.tabbableOptions))if(g(r.activeElement)>=0)Le=r.activeElement;else{var he=a.tabbableGroups[0],qe=he&&he.firstTabbableNode;Le=qe||_("fallbackFocus")}if(!Le)throw new Error("Your focus-trap needs to have at least one focusable element");return Le},k=function(){if(a.containerGroups=a.containers.map(function(Le){var he=mN(Le,o.tabbableOptions),qe=gN(Le,o.tabbableOptions),ge=he.length>0?he[0]:void 0,_t=he.length>0?he[he.length-1]:void 0,Mt=qe.find(function(je){return H0(je)}),dt=qe.slice().reverse().find(function(je){return H0(je)}),mt=!!he.find(function(je){return Pm(je)>0});return{container:Le,tabbableNodes:he,focusableNodes:qe,posTabIndexesFound:mt,firstTabbableNode:ge,lastTabbableNode:_t,firstDomTabbableNode:Mt,lastDomTabbableNode:dt,nextTabbableNode:function(Ve){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Jt=he.indexOf(Ve);return Jt<0?Xe?qe.slice(qe.indexOf(Ve)+1).find(function(Ht){return H0(Ht)}):qe.slice(0,qe.indexOf(Ve)).reverse().find(function(Ht){return H0(Ht)}):he[Jt+(Xe?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(Le){return Le.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!_("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(Le){return Le.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function De(Le){var he=Le.activeElemeLine truncated
* 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:gpe,expression:ype,expression_name:vpe,light:_pe,sky:Cpe,terrain:bpe,paint:xpe,paint_fill:wpe,"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:Mpe,paint_circle:Spe,paint_heatmap:Epe,paint_symbol:Ope,paint_raster:Bpe,paint_hillshade:kpe,paint_background:Ipe,transition:Tpe,"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",doLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var p0e=vw(function e(t){var n=this,r=t.expanded,i=r===void 0?[]:r,o=t.allowMultipleExpanded,a=o===void 0?!1:o,s=t.allowZeroExpanded,h=s===void 0?!1:s;yw(this,e),ys(this,"expanded",void 0),ys(this,"allowMultipleExpanded",void 0),ys(this,"allowZeroExpanded",void 0),ys(this,"toggleExpanded",function(g){if(n.isItemDisabled(g))return n;var _=n.isItemExpanded(g);return _?n.augment({expanded:n.expanded.filter(function(B){return B!==g})}):n.augment({expanded:n.allowMultipleExpanded?[].concat(l0e(n.expanded),[g]):[g]})}),ys(this,"isItemDisabled",function(g){var _=n.isItemExpanded(g),B=n.expanded.length===1;return!!(_&&!n.allowZeroExpanded&&B)}),ys(this,"isItemExpanded",function(g){return n.expanded.indexOf(g)!==-1}),ys(this,"getPanelAttributes",function(g,_){var B=_??n.isItemExpanded(g);return{role:n.allowMultipleExpanded?void 0:"region","aria-hidden":n.allowMultipleExpanded?!B:void 0,"aria-labelledby":n.getButtonId(g),id:n.getPanelId(g),hidden:B?void 0:!0}}),ys(this,"getHeadingAttributes",function(){return{role:"heading"}}),ys(this,"getButtonAttributes",function(g,_){var B=_??n.isItemExpanded(g),k=n.isItemDisabled(g);return{id:n.getButtonId(g),"aria-disabled":k,"aria-expanded":B,"aria-controls":n.getPanelId(g),role:"button",tabIndex:0}}),ys(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),ys(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),ys(this,"augment",function(g){return new e(NO({expanded:n.expanded,allowMultipleExpanded:n.allowMultipleExpanded,allowZeroExpanded:n.allowZeroExpanded},g))}),this.expanded=i,this.allowMultipleExpanded=a,this.allowZeroExpanded=h}),RN=kr.createContext(null),zN=function(e){dk(n,e);var t=hk(n);function n(){var r;yw(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ys(bh(r),"state",new p0e({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),ys(bh(r),"toggleExpanded",function(s){r.setState(function(h){return h.toggleExpanded(s)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),ys(bh(r),"isItemDisabled",function(s){return r.state.isItemDisabled(s)}),ys(bh(r),"isItemExpanded",function(s){return r.state.isItemExpanded(s)}),ys(bh(r),"getPanelAttributes",function(s,h){return r.state.getPanelAttributes(s,h)}),ys(bh(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),ys(bh(r),"getButtonAttributes",function(s,h){return r.state.getButtonAttributes(s,h)}),r}return vw(n,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,a=i.allowMultipleExpanded;return kr.createElement(RN.Provider,{value:{allowMultipleExpanded:a,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),n}(kr.PureComponent);ys(zN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var jN=function(e){dk(n,e);var t=hk(n);function n(){var r;yw(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ys(bh(r),"renderChildren",function(s){return s?r.props.children(s):null}),r}return vw(n,[{key:"render",value:function(){return kr.createElement(RN.Consumer,null,this.renderChildren)}}]),n}(kr.PureComponent),m0e=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],g0e=function(t){var n=t.className,r=n===void 0?"accordion":n,i=t.allowMultipleExpanded,o=t.allowZeroExpanded,a=t.onChange,s=t.preExpanded,h=_w(t,m0e);return kr.createElement(zN,{preExpanded:s,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:a},kr.createElement("div",zf({"data-accordion-component":"Accordion",className:r},h)))},$O;(function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"})($O||($O={}));var WN=$O,YS=0;function y0e(){var e=YS;return YS=YS+1,"raa-".concat(e)}var v0e=kr.useId||y0e,_0e=/[\u0009\u000a\u000c\u000d\u0020]/g;function ob(e){return e===""||_0e.test(e)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1):!0}var NN=kr.createContext(null),C0e=function(t){var n=t.children,r=t.uuid,i=t.accordionContext,o=t.dangerouslySetExpanded,a=function(){i.toggleExpanded(r)},s=function(g){var _=o??g.isItemExpanded(r),B=g.isItemDisabled(r),k=g.getPanelAttributes(r,o),P=g.getHeadingAttributes(r),F=g.getButtonAttributes(r,o);return kr.createElement(NN.Provider,{value:{uuid:r,expanded:_,disabled:B,toggleExpanded:a,panelAttributes:k,headingAttributes:P,buttonAttributes:F}},n)};return kr.createElement(jN,nu Line truncated
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
`,$N=function(e){dk(n,e);var t=hk(n);function n(){var r;yw(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),ys(bh(r),"ref",void 0),ys(bh(r),"setRef",function(s){r.ref=s}),r}return vw(n,[{key:"componentDidUpdate",value:function(){n.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){n.VALIDATE(this.ref)}},{key:"render",value:function(){return kr.createElement("div",zf({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(T0e)}}]),n}(kr.PureComponent);ys($N,"defaultProps",I0e);var YN=function(t){return kr.createElement(Cw,null,function(n){var r=n.headingAttributes;return t.id&&ob(t.id),kr.createElement($N,zf({},t,r))})};YN.displayName=WN.AccordionItemHeading;var K0e=["className","region","id"],P0e=function(t){var n=t.className,r=n===void 0?"accordion__panel":n,i=t.region,o=t.id,a=_w(t,K0e),s=function(g){var _=g.panelAttributes;o&&ob(o);var B=NO(NO({},_),{},{"aria-labelledby":i?_["aria-labelledby"]:void 0});return kr.createElement("div",zf({"data-accordion-component":"AccordionItemPanel",className:r},a,B,{role:i?"region":void 0}))};return kr.createElement(Cw,null,s)},qS={exports:{}},iP;function xw(){return iP||(iP=1,function(e,t){(function(n,r){e.exports=r()})(Bh,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),s=/Edge\/(\d+)/.exec(n),h=o||a||s,g=h&&(o?document.documentMode||6:+(s||a)[1]),_=!s&&/WebKit\//.test(n),B=_&&/Qt\/\d+\.\d+/.test(n),k=!s&&/Chrome\/(\d+)/.exec(n),P=k&&+k[1],F=/Opera\//.test(n),q=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),H=/PhantomJS/.test(n),N=q&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),Z=/Android/.test(n),ue=N||Z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),ye=N||/Mac/.test(r),be=/\bCrOS\b/.test(n),J=/win/i.test(r),se=F&&n.match(/Version\/(\d*\.\d*)/);se&&(se=Number(se[1])),se&&se>=15&&(F=!1,_=!0);var xe=ye&&(B||F&&(se==null||se<12.11)),Se=i||h&&g>=9;function De(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var Le=function(A,f){var x=A.className,b=De(f).exec(x);if(b){var E=x.slice(b.index+b[0].length);A.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function he(A){for(var f=A.childNodes.length;f>0;--f)A.removeChild(A.firstChild);return A}function qe(A,f){return he(A).appendChild(f)}function ge(A,f,x,b){var E=document.createElement(A);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof f=="string")E.appendChild(document.createTextNode(f));else if(f)for(var U=0;U<f.length;++U)E.appendChild(f[U]);return E}function _t(A,f,x,b){var E=ge(A,f,x,b);return E.setAttribute("role","presentation"),E}var Mt;document.createRange?Mt=function(A,f,x,b){var E=document.createRange();return E.setEnd(b||A,x),E.setStart(A,f),E}:Mt=function(A,f,x){var b=document.body.createTextRange();try{b.moveToElementText(A.parentNode)}catch{return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",f),b};function dt(A,f){if(f.nodeType==3&&(f=f.parentNode),A.contains)return A.contains(f);do if(f.nodeType==11&&(f=f.host),f==A)return!0;while(f=f.parentNode)}function mt(A){var f=A.ownerDocument||A,x;try{x=A.activeElement}catch{x=f.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function je(A,f){var x=A.className;De(f).test(x)||(A.className+=(x?" ":"")+f)}function Ve(A,f){for(var x=A.split(" "),b=0;b<x.length;b++)x[b]&&!De(x[b]).test(f)&&(f+=" "+x[b]);return f}var Xe=function(A){A.select()};N?Xe=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:h&&(Xe=function(A){try{A.select()}catch{}});function Jt(A){return A.display.wrapper.ownerDocument}function Ht(A){return Ct(A.display.wrapper)}function Ct(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Qt(A){return Jt(A).defaultView}function $t(A){var f=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,f)}}function Ie(A,f,x){f||(f={});for(var b in A)A.hasOwnProperty(b)&&(x!==!1||!f.hasOwnProperty(b))&&(f[b]=A[b]);return f}function pe(A,f,x,b,E){f==null&&(f=A.search(/[^\s\u00a0]/),f==-1&&(f=A.length));for(var U=b||0,$=E||0;;){var ne=A.indexOf(" ",U);if(ne<0||ne>=f)return $+(f-U);$+=ne-U,$+=x-$%x,U=ne+1}}var Me=function(){this.id=null,this.f=null,this.time=0,this.handler=$t(this.onTimeout,this)};Me.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Me.prototype.set=function(A,f){this.f=f;var x=+new Date+A;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=x)};function Re(A,f){for(var x=0;x<A.length;++x)if(A[x]==f)return x;return-1}var it=50,ot={toString:f Line truncated
b`.split(/\n/).length!=3?function(A){for(var f=0,x=[],b=A.length;f<=b;){var E=A.indexOf(`
`,f);E==-1&&(E=A.length);var U=A.slice(f,A.charAt(E-1)=="\r"?E-1:E),$=U.indexOf("\r");$!=-1?(x.push(U.slice(0,$)),f+=$+1):(x.push(U),f=E+1)}return x}:function(A){return A.split(/\r\n?|\n/)},lr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var f;try{f=A.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=A?!1:f.compareEndPoints("StartToEnd",f)!=0},$r=function(){var A=ge("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Or=null;function Lr(A){if(Or!=null)return Or;var f=qe(A,ge("span","x")),x=f.getBoundingClientRect(),b=Mt(f,0,1).getBoundingClientRect();return Or=Math.abs(x.left-b.left)>1}var or={},ci={};function Li(A,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),or[A]=f}function to(A,f){ci[A]=f}function ho(A){if(typeof A=="string"&&ci.hasOwnProperty(A))A=ci[A];else if(A&&typeof A.name=="string"&&ci.hasOwnProperty(A.name)){var f=ci[A.name];typeof f=="string"&&(f={name:f}),A=Wr(f,A),A.name=f.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return ho("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return ho("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function ai(A,f){f=ho(f);var x=or[f.name];if(!x)return ai(A,"text/plain");var b=x(A,f);if(fo.hasOwnProperty(f.name)){var E=fo[f.name];for(var U in E)E.hasOwnProperty(U)&&(b.hasOwnProperty(U)&&(b["_"+U]=b[U]),b[U]=E[U])}if(b.name=f.name,f.helperType&&(b.helperType=f.helperType),f.modeProps)for(var $ in f.modeProps)b[$]=f.modeProps[$];return b}var fo={};function ja(A,f){var x=fo.hasOwnProperty(A)?fo[A]:fo[A]={};Ie(f,x)}function Ba(A,f){if(f===!0)return f;if(A.copyState)return A.copyState(f);var x={};for(var b in f){var E=f[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Mi(A,f){for(var x;A.innerMode&&(x=A.innerMode(f),!(!x||x.mode==A));)f=x.state,A=x.mode;return x||{mode:A,state:f}}function is(A,f,x){return A.startState?A.startState(f,x):!0}var gi=function(A,f,x){this.pos=this.start=0,this.string=A,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};gi.prototype.eol=function(){return this.pos>=this.string.length},gi.prototype.sol=function(){return this.pos==this.lineStart},gi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},gi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},gi.prototype.eat=function(A){var f=this.string.charAt(this.pos),x;if(typeof A=="string"?x=f==A:x=f&&(A.test?A.test(f):A(f)),x)return++this.pos,f},gi.prototype.eatWhile=function(A){for(var f=this.pos;this.eat(A););return this.pos>f},gi.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},gi.prototype.skipToEnd=function(){this.pos=this.string.length},gi.prototype.skipTo=function(A){var f=this.string.indexOf(A,this.pos);if(f>-1)return this.pos=f,!0},gi.prototype.backUp=function(A){this.pos-=A},gi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=pe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},gi.prototype.indentation=function(){return pe(this.string,null,this.tabSize)-(this.lineStart?pe(this.string,this.lineStart,this.tabSize):0)},gi.prototype.match=function(A,f,x){if(typeof A=="string"){var b=function($){return x?$.toLowerCase():$},E=this.string.substr(this.pos,A.length);if(b(E)==b(A))return f!==!1&&(this.pos+=A.length),!0}else{var U=this.string.slice(this.pos).match(A);return U&&U.index>0?null:(U&&f!==!1&&(this.pos+=U[0].length),U)}},gi.prototype.current=function(){return this.string.slice(this.start,this.pos)},gi.prototype.hideFirstChars=function(A,f){this.lineStart+=A;try{return f()}finally{this.lineStart-=A}},gi.prototype.lookAhead=function(A){var f=this.lineOracle;return f&&f.lookAhead(A)},gi.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Wn(A,f){if(f-=A.first,f<0||f>=A.size)throw new Error("There is no line "+(f+A.first)+" in the document.");for(var x=A;!x.lines;)for(var b=0;;++b){var E=x.children[b],U=E.chunkSize();if(f<U){x=E;break}f-=U}return x.lines[f]}function ro(A,f,x){var b=[],E=f.line;return A.iter(f.line,x.line+1,function(U){var $=U.text;E==x.line&&($=$.slice(0,x.ch)),E==f.line&&($=$.slice(f.ch)),b.push($),++E}),b}function _o(A,f,x){var b=[];return A.iter(f,x,function(E){b.push(E.text)}),b}function Ui(A,f){var x=f-A.height;if(x)for(var b=A;b;b=b.parent)b.height+=x}function ve(A){if(A.parent==null)return null;for(var f=A.parent,x=Re(f.lines,A),b=f.parent;b;f=b,b=b.parent)for(var E=0;b.children[E]!=f;++E)x+=b.children[E].chunkSize();return x+f.first}function Je(A,f){var x=A.first;e:do{for(var b=0;b<A.children.length;++b){ Line truncated
`?(cn=Qe.appendChild(ge("span",Ot[0]=="\r"?"␍":"␤","cm-invalidchar")),cn.setAttribute("cm-text",Ot[0]),A.col+=1):(cn=A.cm.options.specialCharPlaceholder(Ot[0]),cn.setAttribute("cm-text",Ot[0]),h&&g<9?Qe.appendChild(ge("span",[cn])):Qe.appendChild(cn),A.col+=1);A.map.push(A.pos,A.pos+1,cn),A.pos++}}if(A.trailingSpace=ne.charCodeAt(f.length-1)==32,x||b||E||me||U||$){var bn=x||"";b&&(bn+=b),E&&(bn+=E);var Ln=ge("span",[Qe],bn,U);if($)for(var ar in $)$.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Ln.setAttribute(ar,$[ar]);return A.content.appendChild(Ln)}A.content.appendChild(Qe)}}function NA(A,f){if(A.length>1&&!/ /.test(A))return A;for(var x=f,b="",E=0;E<A.length;E++){var U=A.charAt(E);U==" "&&x&&(E==A.length-1||A.charCodeAt(E+1)==32)&&(U=" "),b+=U,x=U==" "}return b}function na(A,f){return function(x,b,E,U,$,ne,le){E=E?E+" cm-force-border":"cm-force-border";for(var me=x.pos,Qe=me+b.length;;){for(var nt=void 0,Ot=0;Ot<f.length&&(nt=f[Ot],!(nt.to>me&&nt.from<=me));Ot++);if(nt.to>=Qe)return A(x,b,E,U,$,ne,le);A(x,b.slice(0,nt.to-me),E,U,null,ne,le),U=null,b=b.slice(nt.to-me),me=nt.to}}}function Gu(A,f,x,b){var E=!b&&x.widgetNode;E&&A.map.push(A.pos,A.pos+f,E),!b&&A.cm.display.input.needsContentAttribute&&(E||(E=A.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(A.cm.display.input.setUneditable(E),A.content.appendChild(E)),A.pos+=f,A.trailingSpace=!1}function Gd(A,f,x){var b=A.markedSpans,E=A.text,U=0;if(!b){for(var $=1;$<x.length;$+=2)f.addToken(f,E.slice(U,U=x[$]),Kh(x[$+1],f.cm.options));return}for(var ne=E.length,le=0,me=1,Qe="",nt,Ot,yt=0,Wt,cn,In,Yn,bn;;){if(yt==le){Wt=cn=In=Ot="",bn=null,Yn=null,yt=1/0;for(var Ln=[],ar=void 0,Tr=0;Tr<b.length;++Tr){var _r=b[Tr],hi=_r.marker;if(hi.type=="bookmark"&&_r.from==le&&hi.widgetNode)Ln.push(hi);else if(_r.from<=le&&(_r.to==null||_r.to>le||hi.collapsed&&_r.to==le&&_r.from==le)){if(_r.to!=null&&_r.to!=le&&yt>_r.to&&(yt=_r.to,cn=""),hi.className&&(Wt+=" "+hi.className),hi.css&&(Ot=(Ot?Ot+";":"")+hi.css),hi.startStyle&&_r.from==le&&(In+=" "+hi.startStyle),hi.endStyle&&_r.to==yt&&(ar||(ar=[])).push(hi.endStyle,_r.to),hi.title&&((bn||(bn={})).title=hi.title),hi.attributes)for(var Uo in hi.attributes)(bn||(bn={}))[Uo]=hi.attributes[Uo];hi.collapsed&&(!Yn||Ue(Yn.marker,hi)<0)&&(Yn=_r)}else _r.from>le&&yt>_r.from&&(yt=_r.from)}if(ar)for(var Ya=0;Ya<ar.length;Ya+=2)ar[Ya+1]==yt&&(cn+=" "+ar[Ya]);if(!Yn||Yn.from==le)for(var Ca=0;Ca<Ln.length;++Ca)Gu(f,0,Ln[Ca]);if(Yn&&(Yn.from||0)==le){if(Gu(f,(Yn.to==null?ne+1:Yn.to)-le,Yn.marker,Yn.from==null),Yn.to==null)return;Yn.to==le&&(Yn=!1)}}if(le>=ne)break;for(var Da=Math.min(ne,yt);;){if(Qe){var us=le+Qe.length;if(!Yn){var As=us>Da?Qe.slice(0,Da-le):Qe;f.addToken(f,As,nt?nt+Wt:Wt,In,le+As.length==yt?cn:"",Ot,bn)}if(us>=Da){Qe=Qe.slice(Da-le),le=Da;break}le=us,In=""}Qe=E.slice(U,U=x[me++]),nt=Kh(x[me++],f.cm.options)}}}function GA(A,f,x){this.line=f,this.rest=ki(f),this.size=this.rest?ve(yn(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Zr(A,f)}function Ec(A,f,x){for(var b=[],E,U=f;U<x;U=E){var $=new GA(A.doc,Wn(A.doc,U),U);E=U+$.size,b.push($)}return b}var Mu=null;function od(A){Mu?Mu.ops.push(A):A.ownsGroup=Mu={ops:[A],delayedCallbacks:[]}}function Hp(A){var f=A.delayedCallbacks,x=0;do{for(;x<f.length;x++)f[x].call(null);for(var b=0;b<A.ops.length;b++){var E=A.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<f.length)}function Ph(A,f){var x=A.ownsGroup;if(x)try{Hp(x)}finally{Mu=null,f(x)}}var Ii=null;function ko(A,f){var x=Pr(A,f);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;Mu?E=Mu.delayedCallbacks:Ii?E=Ii:(E=Ii=[],setTimeout(m0,0));for(var U=function(ne){E.push(function(){return x[ne].apply(null,b)})},$=0;$<x.length;++$)U($)}}function m0(){var A=Ii;Ii=null;for(var f=0;f<A.length;++f)A[f]()}function Fh(A,f,x,b){for(var E=0;E<f.changes.length;E++){var U=f.changes[E];U=="text"?Yf(A,f):U=="gutter"?QA(A,f,x,b):U=="class"?Wi(A,f):U=="widget"&&Io(A,f,b)}f.changes=null}function Qu(A){return A.node==A.text&&(A.node=ge("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),h&&g<8&&(A.node.style.zIndex=2)),A.node}function $f(A,f){var x=f.bgClass?f.bgClass+" "+(f.line.bgClass||""):f.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),f.background)x?f.background.className=x:(f.background.parentNode.removeChild(f.background),f.background=null);else if(x){var b=Qu(f);f.background=b.insertBefore(ge("div",null,x),b.firstChild),A.display.input.setUneditable(f.background)}}function la(A,f){var x=A.display.externalMeasured;return x&&x.line==f.line?(A.display.externalMeasured=null,f.measure=x.measure,x.built):rd(A,f)}function Yf(A,f){var x=f.text.className,b=la(A,f);f.text==f.node&&(f.node=b.pre),f.text.parentNode.replaceChild(b.pre,f.text),f.text=b.pre,b.bgClass!=f.bgClass||b.text Line truncated
top: `+ar+"px; width: "+(Tr??le-Ln)+`px;
height: `+(_r-ar)+"px"))}function nt(Ln,ar,Tr){var _r=Wn(E,Ln),hi=_r.text.length,Uo,Ya;function Ca(As,Ml){return an(A,Lt(Ln,As),"div",_r,Ml)}function Da(As,Ml,Js){var Os=To(A,_r,null,As),cs=Ml=="ltr"==(Js=="after")?"left":"right",ca=Js=="after"?Os.begin:Os.end-(/\s/.test(_r.text.charAt(Os.end-1))?2:1);return Ca(ca,cs)[cs]}var us=On(_r,E.direction);return It(us,ar||0,Tr??hi,function(As,Ml,Js,Os){var cs=Js=="ltr",ca=Ca(As,cs?"left":"right"),Bs=Ca(Ml-1,cs?"right":"left"),uh=ar==null&&As==0,lc=Tr==null&&Ml==hi,zs=Os==0,uc=!us||Os==us.length-1;if(Bs.top-ca.top<=3){var js=(me?uh:lc)&&zs,B0=(me?lc:uh)&&uc,OA=js?ne:(cs?ca:Bs).left,Uc=B0?le:(cs?Bs:ca).right;Qe(OA,ca.top,Uc-OA,ca.bottom)}else{var qa,el,Ah,Ac;cs?(qa=me&&uh&&zs?ne:ca.left,el=me?le:Da(As,Js,"before"),Ah=me?ne:Da(Ml,Js,"after"),Ac=me&&lc&&uc?le:Bs.right):(qa=me?Da(As,Js,"before"):ne,el=!me&&uh&&zs?le:ca.right,Ah=!me&&lc&&uc?ne:Bs.left,Ac=me?Da(Ml,Js,"after"):le),Qe(qa,ca.top,el-qa,ca.bottom),ca.bottom<Bs.top&&Qe(ne,ca.bottom,null,Bs.top),Qe(Ah,Bs.top,Ac-Ah,Bs.bottom)}(!Uo||Hu(ca,Uo)<0)&&(Uo=ca),Hu(Bs,Uo)<0&&(Uo=Bs),(!Ya||Hu(ca,Ya)<0)&&(Ya=ca),Hu(Bs,Ya)<0&&(Ya=Bs)}),{start:Uo,end:Ya}}var Ot=f.from(),yt=f.to();if(Ot.line==yt.line)nt(Ot.line,Ot.ch,yt.ch);else{var Wt=Wn(E,Ot.line),cn=Wn(E,yt.line),In=yr(Wt)==yr(cn),Yn=nt(Ot.line,Ot.ch,In?Wt.text.length+1:null).end,bn=nt(yt.line,In?0:null,yt.ch).start;In&&(Yn.top<bn.top-2?(Qe(Yn.right,Yn.top,null,Yn.bottom),Qe(ne,bn.top,bn.left,bn.bottom)):Qe(Yn.right,Yn.top,bn.left-Yn.right,Yn.bottom)),Yn.bottom<bn.top&&Qe(ne,Yn.bottom,null,bn.top)}x.appendChild(U)}function Vu(A){if(A.state.focused){var f=A.display;clearInterval(f.blinker);var x=!0;f.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?f.blinker=setInterval(function(){A.hasFocus()||Tc(A),f.cursorDiv.style.visibility=(x=!x)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(f.cursorDiv.style.visibility="hidden")}}function Zu(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Hd(A))}function XA(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Tc(A))},100)}function Hd(A,f){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Pe(A,"focus",A,f),A.state.focused=!0,je(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),_&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),Vu(A))}function Tc(A,f){A.state.delayingBlurEvent||(A.state.focused&&(Pe(A,"blur",A,f),A.state.focused=!1,Le(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Xu(A){for(var f=A.display,x=f.lineDiv.offsetTop,b=Math.max(0,f.scroller.getBoundingClientRect().top),E=f.lineDiv.getBoundingClientRect().top,U=0,$=0;$<f.view.length;$++){var ne=f.view[$],le=A.options.lineWrapping,me=void 0,Qe=0;if(!ne.hidden){if(E+=ne.line.height,h&&g<8){var nt=ne.node.offsetTop+ne.node.offsetHeight;me=nt-x,x=nt}else{var Ot=ne.node.getBoundingClientRect();me=Ot.bottom-Ot.top,!le&&ne.text.firstChild&&(Qe=ne.text.firstChild.getBoundingClientRect().right-Ot.left-1)}var yt=ne.line.height-me;if((yt>.005||yt<-.005)&&(E<b&&(U-=yt),Ui(ne.line,me),wo(ne.line),ne.rest))for(var Wt=0;Wt<ne.rest.length;Wt++)wo(ne.rest[Wt]);if(Qe>A.display.sizerWidth){var cn=Math.ceil(Qe/$u(A.display));cn>A.display.maxLineLength&&(A.display.maxLineLength=cn,A.display.maxLine=ne.line,A.display.maxLineChanged=!0)}}}Math.abs(U)>2&&(f.scroller.scrollTop+=U)}function wo(A){if(A.widgets)for(var f=0;f<A.widgets.length;++f){var x=A.widgets[f],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Ju(A,f,x){var b=x&&x.top!=null?Math.max(0,x.top):A.scroller.scrollTop;b=Math.floor(b-Oc(A));var E=x&&x.bottom!=null?x.bottom:b+A.wrapper.clientHeight,U=Je(f,b),$=Je(f,E);if(x&&x.ensure){var ne=x.ensure.from.line,le=x.ensure.to.line;ne<U?(U=ne,$=Je(f,Bo(Wn(f,ne))+A.wrapper.clientHeight)):Math.min(le,f.lastLine())>=$&&(U=Je(f,Bo(Wn(f,le))-A.wrapper.clientHeight),$=le)}return{from:U,to:Math.max($,U+1)}}function ld(A,f){if(!ce(A,"scrollCursorIntoView")){var x=A.display,b=x.sizer.getBoundingClientRect(),E=null,U=x.wrapper.ownerDocument;if(f.top+b.top<0?E=!0:f.bottom+b.top>(U.defaultView.innerHeight||U.documentElement.clientHeight)&&(E=!1),E!=null&&!H){var $=ge("div","​",null,`position: absolute;
top: `+(f.top-x.viewOffset-Oc(A.display))+`px;
height: `+(f.bottom-f.top+Su(A)+x.barHeight)+`px;
left: `+f.left+"px; width: "+Math.max(2,f.right-f.left)+"px;");A.display.lineSpace.appendChild($),$.scrollIntoView(E),A.display.lineSpace.removeChild($)}}}function Vf(A,f,x,b){b==null&&(b=0);var E;!A.options.lineWrapping&&f==x&&(x=f.sticky=="before"?Lt(f.line,f.ch+1,"before"):f,f=f.ch?Lt(f.line,f.sticky=="before"?f.ch-1:f.ch,"after"):f);for(var U=0;U<5;U++){var $=!1,ne=jt(A,f),le=!x||x==f?ne:jt(A,x);E={left:Math.min(ne.left,le.left),top:Math.min(ne.top,le.top)-b,right:Math.max(ne.left,le.left),bottom:Math.max(ne.bottom,le.bottom)+b};var me=jh(A,E),Qe=A.doc.scrollTop,nt=A.doc.scrollLeft;if(me.scrollTop!=null&&(Kc(A,me.scrollTop),Math.abs(A.doc.scrollTop-Qe)>1&&($=!0)),me.scrollLeft!=null&&(Aa(A,me.scrollLeft),Math.abs(A.doc.scrollLeft-nt)>1&&($=!0)),!$)break}return E}function zh(A,f){var x=jh(A,f);x.scrollTop!=null&&Kc(A,x.scrollTop),x.scrollLeft!=null&&Aa(A,x.scrollLeft)}function jh(A,f){var x=A.display,b=Qa(A.display);f.top<0&&(f.top=0);var E=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:x.scroller.scrollTop,U=YA(A),$={};f.bottom-f.top>U&&(f.bottom=f.top+U);var ne=A.doc.height+Lh(x),le=f.top<b,me=f.bottom>ne-b;if(f.top<E)$.scrollTop=le?0:f.top;else if(f.bottom>E+U){var Qe=Math.min(f.top,(me?ne:f.bottom)-U);Qe!=E&&($.scrollTop=Qe)}var nt=A.options.fixedGutter?0:x.gutters.offsetWidth,Ot=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:x.scroller.scrollLeft-nt,yt=_A(A)-x.gutters.offsetWidth,Wt=f.right-f.left>yt;return Wt&&(f.right=f.left+yt),f.left<10?$.scrollLeft=0:f.left<Ot?$.scrollLeft=Math.max(0,f.left+nt-(Wt?0:10)):f.right>yt+Ot-3&&($.scrollLeft=f.right+(Wt?0:10)-yt),$}function Zf(A,f){f!=null&&(Br(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+f)}function ao(A){Br(A);var f=A.getCursor();A.curOp.scrollToPos={from:f,to:f,margin:A.options.cursorScrollMargin}}function ua(A,f,x){(f!=null||x!=null)&&Br(A),f!=null&&(A.curOp.scrollLeft=f),x!=null&&(A.curOp.scrollTop=x)}function br(A,f){Br(A),A.curOp.scrollToPos=f}function Br(A){var f=A.curOp.scrollToPos;if(f){A.curOp.scrollToPos=null;var x=hr(A,f.from),b=hr(A,f.to);wA(A,x,b,f.margin)}}function wA(A,f,x,b){var E=jh(A,{left:Math.min(f.left,x.left),top:Math.min(f.top,x.top)-b,right:Math.max(f.right,x.right),bottom:Math.max(f.bottom,x.bottom)+b});ua(A,E.scrollLeft,E.scrollTop)}function Kc(A,f){Math.abs(A.doc.scrollTop-f)<2||(i||zl(A,{top:f}),JA(A,f,!0),i&&zl(A),nc(A,100))}function JA(A,f,x){f=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,f)),!(A.display.scroller.scrollTop==f&&!x)&&(A.doc.scrollTop=f,A.display.scrollbars.setScrollTop(f),A.display.scroller.scrollTop!=f&&(A.display.scroller.scrollTop=f))}function Aa(A,f,x,b){f=Math.max(0,Math.min(f,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((x?f==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-f)<2)&&!b)&&(A.doc.scrollLeft=f,O(A),A.display.scroller.scrollLeft!=f&&(A.display.scroller.scrollLeft=f),A.display.scrollbars.setScrollLeft(f))}function ec(A){var f=A.display,x=f.gutters.offsetWidth,b=Math.round(A.doc.height+Lh(A.display));return{clientHeight:f.scroller.clientHeight,viewHeight:f.wrapper.clientHeight,scrollWidth:f.scroller.scrollWidth,clientWidth:f.scroller.clientWidth,viewWidth:f.wrapper.clientWidth,barLeft:A.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Su(A)+f.barHeight,nativeBarWidth:f.nativeBarWidth,gutterWidth:x}}var ka=function(A,f,x){this.cm=x;var b=this.vert=ge("div",[ge("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=ge("div",[ge("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,A(b),A(E),Kt(b,"scroll",function(){b.clientHeight&&f(b.scrollTop,"vertical")}),Kt(E,"scroll",function(){E.clientWidth&&f(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ka.prototype.update=function(A){var f=A.scrollWidth>A.clientWidth+1,x=A.scrollHeight>A.clientHeight+1,b=A.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=f?b+"px":"0";var E=A.viewHeight-(f?b: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(f){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=A.barLeft+"px";var U=A.viewWidth-A.barLeft-(x?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&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:f?b:0}},ka.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ka.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&& Line truncated
`},setDirection:ya(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(f){return f.order=null}),this.cm&&$n(this.cm))})}),Es.prototype.eachLine=Es.prototype.iter;var Xp=0;function Jp(A){var f=this;if(_0(f),!(ce(f,A)||Fl(f.display,A))){rt(A),h&&(Xp=+new Date);var x=ou(f,A,!0),b=A.dataTransfer.files;if(!(!x||f.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,U=Array(E),$=0,ne=function(){++$==E&&Qi(f,function(){x=Fr(f.doc,x);var yt={from:x,to:x,text:f.doc.splitLines(U.filter(function(Wt){return Wt!=null}).join(f.doc.lineSeparator())),origin:"paste"};lu(f.doc,yt),Ms(f.doc,$e(Fr(f.doc,x),Fr(f.doc,He(yt))))})()},le=function(yt,Wt){if(f.options.allowDropFileTypes&&Re(f.options.allowDropFileTypes,yt.type)==-1){ne();return}var cn=new FileReader;cn.onerror=function(){return ne()},cn.onload=function(){var In=cn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(In)){ne();return}U[Wt]=In,ne()},cn.readAsText(yt)},me=0;me<b.length;me++)le(b[me],me);else{if(f.state.draggingText&&f.doc.sel.contains(x)>-1){f.state.draggingText(A),setTimeout(function(){return f.display.input.focus()},20);return}try{var Qe=A.dataTransfer.getData("Text");if(Qe){var nt;if(f.state.draggingText&&!f.state.draggingText.copy&&(nt=f.listSelections()),Ei(f.doc,$e(x,x)),nt)for(var Ot=0;Ot<nt.length;++Ot)SA(f.doc,"",nt[Ot].anchor,nt[Ot].head,"drag");f.replaceSelection(Qe,"around","paste"),f.display.input.focus()}}catch{}}}}function v0(A,f){if(h&&(!A.state.draggingText||+new Date-Xp<100)){et(f);return}if(!(ce(A,f)||Fl(A.display,f))&&(f.dataTransfer.setData("Text",A.getSelection()),f.dataTransfer.effectAllowed="copyMove",f.dataTransfer.setDragImage&&!q)){var x=ge("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",F&&(x.width=x.height=1,A.display.wrapper.appendChild(x),x._top=x.offsetTop),f.dataTransfer.setDragImage(x,0,0),F&&x.parentNode.removeChild(x)}}function $i(A,f){var x=ou(A,f);if(x){var b=document.createDocumentFragment();ZA(A,x,b),A.display.dragCursor||(A.display.dragCursor=ge("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),qe(A.display.dragCursor,b)}}function _0(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function C0(A){if(document.getElementsByClassName){for(var f=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<f.length;b++){var E=f[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var U=0;U<x.length;U++)A(x[U])})}}var Vh=!1;function em(){Vh||(V1(),Vh=!0)}function V1(){var A;Kt(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,C0(b0)},100))}),Kt(window,"blur",function(){return C0(Tc)})}function b0(A){var f=A.display;f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.scrollbarsClipped=!1,A.setSize()}for(var Fa={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},hl=0;hl<10;hl++)Fa[hl+48]=Fa[hl+96]=String(hl);for(var pd=65;pd<=90;pd++)Fa[pd]=String.fromCharCode(pd);for(var th=1;th<=12;th++)Fa[th+111]=Fa[th+63235]="F"+th;var EA={};EA.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},EA.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},EA.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-KLine truncated
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function Fc(A,f){var x=Wn(A.doc,f),b=yr(x);return b!=x&&(f=ve(b)),ap(!0,A,b,f,1)}function X1(A,f){var x=Wn(A.doc,f),b=Ir(x);return b!=x&&(f=ve(b)),ap(!0,A,x,f,-1)}function x0(A,f){var x=Fc(A,f.line),b=Wn(A.doc,x.line),E=On(b,A.doc.direction);if(!E||E[0].level==0){var U=Math.max(x.ch,b.text.search(/\S/)),$=f.line==x.line&&f.ch<=U&&f.ch;return Lt(x.line,$?0:U,x.sticky)}return x}function vd(A,f,x){if(typeof f=="string"&&(f=sp[f],!f))return!1;A.display.input.ensurePolled();var b=A.display.shift,E=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),x&&(A.display.shift=!1),E=f(A)!=ot}finally{A.display.shift=b,A.state.suppressEdits=!1}return E}function Tv(A,f,x){for(var b=0;b<A.state.keyMaps.length;b++){var E=Tu(f,A.state.keyMaps[b],x,A);if(E)return E}return A.options.extraKeys&&Tu(f,A.options.extraKeys,x,A)||Tu(f,A.options.keyMap,x,A)}var Xh=new Me;function lp(A,f,x,b){var E=A.state.keySeq;if(E){if(tm(f))return"handled";if(/\'$/.test(f)?A.state.keySeq=null:Xh.set(50,function(){A.state.keySeq==E&&(A.state.keySeq=null,A.display.input.reset())}),_a(A,E+" "+f,x,b))return!0}return _a(A,f,x,b)}function _a(A,f,x,b){var E=Tv(A,f,b);return E=="multi"&&(A.state.keySeq=f),E=="handled"&&ko(A,"keyHandled",A,f,x),(E=="handled"||E=="multi")&&(rt(x),Vu(A)),!!E}function Jh(A,f){var x=md(f,!0);return x?f.shiftKey&&!A.state.keySeq?lp(A,"Shift-"+x,f,function(b){return vd(A,b,!0)})||lp(A,x,f,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return vd(A,b)}):lp(A,x,f,function(b){return vd(A,b)}):!1}function J1(A,f,x){return lp(A,"'"+x+"'",f,function(b){return vd(A,b,!0)})}var nh=null;function ef(A){var f=this;if(!(A.target&&A.target!=f.display.input.getField())&&(f.curOp.focus=mt(Ht(f)),!ce(f,A))){h&&g<11&&A.keyCode==27&&(A.returnValue=!1);var x=A.keyCode;f.display.shift=x==16||A.shiftKey;var b=Jh(f,A);F&&(nh=b?x:null,!b&&x==88&&!$r&&(ye?A.metaKey:A.ctrlKey)&&f.replaceSelection("",null,"cut")),i&&!ye&&!b&&x==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(f.display.lineDiv.className)&&Xs(f)}}function Xs(A){var f=A.display.lineDiv;je(f,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Le(f,"CodeMirror-crosshair"),nr(document,"keyup",x),nr(document,"mouseover",x))}Kt(document,"keyup",x),Kt(document,"mouseover",x)}function oA(A){A.keyCode==16&&(this.doc.sel.shift=!1),ce(this,A)}function w0(A){var f=this;if(!(A.target&&A.target!=f.display.input.getField())&&!(Fl(f.display,A)||ce(f,A)||A.ctrlKey&&!A.altKey||ye&&A.metaKey)){var x=A.keyCode,b=A.charCode;if(F&&x==nh){nh=null,rt(A);return}if(!(F&&(!A.which||A.which<10)&&Jh(f,A))){var E=String.fromCharCode(b??x);E!="\b"&&(J1(f,A,E)||f.display.input.onKeyPress(A))}}}var up=400,_d=function(A,f,x){this.time=A,this.pos=f,this.button=x};_d.prototype.compare=function(A,f,x){return this.time+up>A&&wn(f,this.pos)==0&&x==this.button};var aA,rh;function eg(A,f){var x=+new Date;return rh&&rh.compare(x,A,f)?(aA=rh=null,"triple"):aA&&aA.compare(x,A,f)?(rh=new _d(x,A,f),aA=null,"double"):(aA=new _d(x,A,f),rh=null,"single")}function M0(A){var f=this,x=f.display;if(!(ce(f,A)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=A.shiftKey,Fl(x,A)){_||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!oh(f,A)){var b=ou(f,A),E=tn(A),U=b?eg(b,E):"single";Qt(f).focus(),E==1&&f.state.selectingText&&f.state.selectingText(A),!(b&&tf(f,E,b,U,A))&&(E==1?b?ih(f,b,U,A):wt(A)==x.scroller&&rt(A):E==2?(b&&Zs(f.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Se?f.display.input.onContextMenu(A):XA(f)))}}}function tf(A,f,x,b,E){var U="Click";return b=="double"?U="Double"+U:b=="triple"&&(U="Triple"+U),U=(f==1?"Left":f==2?"Middle":"Right")+U,lp(A,ip(U,E),E,function($){if(typeof $=="string"&&($=sp[$]),!$)return!1;var ne=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),ne=$(A,x)!=ot}finally{A.state.suppressEdits=!1}return ne})}function nf(A,f,x){var b=A.getOption("configureMouse"),E=b?b(A,f,x):{};if(E.unit==null){var U=be?x.shiftKey&&x.metaKey:x.altKey;E.unit=U?"rectangle":f=="single"?"char":f=="double"?"word":"line"}return(E.extend==null||A.doc.extend)&&(E.extend=A.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ye?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ye?x.altKey:x.ctrlKey)),E}function ih(A,f,x,b){h?setTimeout($t(Zu,A),0):A.curOp.focus=mt(Ht(A));var E=nf(A,x,b),U=A.doc.sel,$;A.options.dragDrop&&qt&&!A.isReadOnly()&&x=="single"&&($=U.contains(f))>-1&&(wn(($=U.ranges[$]).from(),f)<0||f.xRel>0)&&(wn($.to(),f)>0||f.xRel<0)?Kv(A,b,f,E):nm(A,b,f,E)}function Kv(A,f,x,b){var E=A.display,U=!1,$=Qi(A,function(me){_&&(E.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:XA(A)),nr(E.wrapper.ownerDocument,"mouseup",$),nr(E.wrapper.ownerDocument,"mousemove",ne),nr(E.scroller,"dragstart",le),nr(E.scroller,"drop Line truncated
`)==f){if(b.ranges.length%Ku.text.length==0){me=[];for(var Qe=0;Qe<Ku.text.length;Qe++)me.push(U.splitLines(Ku.text[Qe]))}}else le.length==b.ranges.length&&A.options.pasteLinesPerSelection&&(me=er(le,function(Yn){return[Yn]}));for(var nt=A.curOp.updateInput,Ot=b.ranges.length-1;Ot>=0;Ot--){var yt=b.ranges[Ot],Wt=yt.from(),cn=yt.to();yt.empty()&&(x&&x>0?Wt=Lt(Wt.line,Wt.ch-x):A.state.overwrite&&!ne?cn=Lt(cn.line,Math.min(Wn(U,cn.line).text.length,cn.ch+yn(le).length)):ne&&Ku&&Ku.lineWise&&Ku.text.join(`
`)==le.join(`
`)&&(Wt=cn=Lt(Wt.line,0)));var In={from:Wt,to:cn,text:me?me[Ot%me.length]:le,origin:E||(ne?"paste":A.state.cutIncoming>$?"cut":"+input")};lu(A.doc,In),ko(A,"inputRead",A,In)}f&&!ne&&lm(A,f),ao(A),A.curOp.updateInput<2&&(A.curOp.updateInput=nt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function sc(A,f){var x=A.clipboardData&&A.clipboardData.getData("Text");if(x)return A.preventDefault(),!f.isReadOnly()&&!f.options.disableInput&&f.hasFocus()&&ls(f,function(){return E0(f,x,0,null,"paste")}),!0}function lm(A,f){if(!(!A.options.electricChars||!A.options.smartIndent))for(var x=A.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var U=A.getModeAt(E.head),$=!1;if(U.electricChars){for(var ne=0;ne<U.electricChars.length;ne++)if(f.indexOf(U.electricChars.charAt(ne))>-1){$=of(A,E.head.line,"smart");break}}else U.electricInput&&U.electricInput.test(Wn(A.doc,E.head.line).text.slice(0,E.head.ch))&&($=of(A,E.head.line,"smart"));$&&ko(A,"electricInput",A,E.head.line)}}}function af(A){for(var f=[],x=[],b=0;b<A.doc.sel.ranges.length;b++){var E=A.doc.sel.ranges[b].head.line,U={anchor:Lt(E,0),head:Lt(E+1,0)};x.push(U),f.push(A.getRange(U.anchor,U.head))}return{text:f,ranges:x}}function Dc(A,f,x,b){A.setAttribute("autocorrect",x?"on":"off"),A.setAttribute("autocapitalize",b?"on":"off"),A.setAttribute("spellcheck",!!f)}function lh(){var A=ge("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),f=ge("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return _?A.style.width="1000px":A.setAttribute("wrap","off"),N&&(A.style.border="1px solid black"),f}function sf(A){var f=A.optionHandlers,x=A.helpers={};A.prototype={constructor:A,focus:function(){Qt(this).focus(),this.display.input.focus()},setOption:function(b,E){var U=this.options,$=U[b];U[b]==E&&b!="mode"||(U[b]=E,f.hasOwnProperty(b)&&Qi(this,f[b])(this,E,$),Pe(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](Zh(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,U=0;U<E.length;++U)if(E[U]==b||E[U].name==b)return E.splice(U,1),!0},addOverlay:Yr(function(b,E){var U=b.token?b:A.getMode(this.options,b);if(U.startState)throw new Error("Overlays may not be stateful.");Ar(this.state.overlays,{mode:U,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function($){return $.priority}),this.state.modeGen++,ga(this)}),removeOverlay:Yr(function(b){for(var E=this.state.overlays,U=0;U<E.length;++U){var $=E[U].modeSpec;if($==b||typeof b=="string"&&$.name==b){E.splice(U,1),this.state.modeGen++,ga(this);return}}}),indentLine:Yr(function(b,E,U){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Vt(this.doc,b)&&of(this,b,E,U)}),indentSelection:Yr(function(b){for(var E=this.doc.sel.ranges,U=-1,$=0;$<E.length;$++){var ne=E[$];if(ne.empty())ne.head.line>U&&(of(this,ne.head.line,b,!0),U=ne.head.line,$==this.doc.sel.primIndex&&ao(this));else{var le=ne.from(),me=ne.to(),Qe=Math.max(U,le.line);U=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var nt=Qe;nt<U;++nt)of(this,nt,b);var Ot=this.doc.sel.ranges;le.ch==0&&E.length==Ot.length&&Ot[$].from().ch>0&&ws(this.doc,$,new Oe(le,Ot[$].to()),St)}}}),getTokenAt:function(b,E){return gA(this,b,E)},getLineTokens:function(b,E){return gA(this,Lt(b),E,!0)},getTokenTypeAt:function(b){b=Fr(this.doc,b);var E=os(this,Wn(this.doc,b.line)),U=0,$=(E.length-1)/2,ne=b.ch,le;if(ne==0)le=E[2];else for(;;){var me=U+$>>1;if((me?E[me*2-1]:0)>=ne)$=me;else if(E[me*2+1]<ne)U=me+1;else{le=E[me*2+2];break}}var Qe=le?le.indexOf("overlay "):-1;return Qe<0?le:Qe==0?null:le.slice(0,Qe-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?A.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var U=[];if(!x.hasOwnProperty(E))return U;var $=x[E],ne=this.getModeAt(b);if(typeof ne[E]=="string")$[ne[E]]&&U.push($[ne[E]]);else if(ne[E])for(var le=0;le<ne[E].length;le++){var me=$[ne[E][le]];me&&U.push(me)}else ne.helperType&&$[ne.helperType]?U.push($[ne.helperType]):$[ne.name]&&U.push($[ne.name]);for(var Qe=0;Qe<$._global.length;Qe++){var nt=$._global[Qe];nt.pred(ne,this)&&Re(U,nt.val)==-1&&U.push(nt.val)}return U},getStateAfter:function(b,E){var U=this.doc;return b=Ta(U,b??U.first+U.size-1),ea(this,b+1,E).state},cursorCoords:function(b,E){var U,$=this.doc.sel.primary();return b==null?U=$.head:typeof b=="object"?U=Fr(this.doc,b):U=b?$.from():$.to(),jt(this,U,E||"page")},charCoords:function(b,E){return an(this,Fr(this.doc,b),E||"page")},coordsChar:function(b,E){return b=Et(this,b,E||"page"),oo(this,b.left,b.top)},lineAtHeight:function(b,E){return b=Et(this,{top:b,left:0},E||"page").top,Je(this.doc,b+this.display.viewOffset)}, Line truncated
`,In=Ee(cn,yt)?"w":Ot&&cn==`
`?"n":!Ot||/\s/.test(cn)?null:"p";if(Ot&&!Wt&&!In&&(In="s"),nt&&nt!=In){x<0&&(x=1,Qe(),f.sticky="after");break}if(In&&(nt=In),x>0&&!Qe(!Wt))break}var Yn=Ss(A,f,U,$,!0);return dr(U,Yn)&&(Yn.hitSide=!0),Yn}function lf(A,f,x,b){var E=A.doc,U=f.left,$;if(b=="page"){var ne=Math.min(A.display.wrapper.clientHeight,Qt(A).innerHeight||E(A).documentElement.clientHeight),le=Math.max(ne-.5*Qa(A.display),3);$=(x>0?f.bottom:f.top)+x*le}else b=="line"&&($=x>0?f.bottom+3:f.top-3);for(var me;me=oo(A,U,$),!!me.outside;){if(x<0?$<=0:$>=E.height){me.hitSide=!0;break}$+=x*5}return me}var Mo=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mo.prototype.init=function(A){var f=this,x=this,b=x.cm,E=x.div=A.lineDiv;E.contentEditable=!0,Dc(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function U(ne){for(var le=ne.target;le;le=le.parentNode){if(le==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(le.className))break}return!1}Kt(E,"paste",function(ne){!U(ne)||ce(b,ne)||sc(ne,b)||g<=11&&setTimeout(Qi(b,function(){return f.updateFromDOM()}),20)}),Kt(E,"compositionstart",function(ne){f.composing={data:ne.data,done:!1}}),Kt(E,"compositionupdate",function(ne){f.composing||(f.composing={data:ne.data,done:!1})}),Kt(E,"compositionend",function(ne){f.composing&&(ne.data!=f.composing.data&&f.readFromDOMSoon(),f.composing.done=!0)}),Kt(E,"touchstart",function(){return x.forceCompositionEnd()}),Kt(E,"input",function(){f.composing||f.readFromDOMSoon()});function $(ne){if(!(!U(ne)||ce(b,ne))){if(b.somethingSelected())sm({lineWise:!1,text:b.getSelections()}),ne.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var le=af(b);sm({lineWise:!0,text:le.text}),ne.type=="cut"&&b.operation(function(){b.setSelections(le.ranges,0,St),b.replaceSelection("",null,"cut")})}else return;if(ne.clipboardData){ne.clipboardData.clearData();var me=Ku.text.join(`
`);if(ne.clipboardData.setData("Text",me),ne.clipboardData.getData("Text")==me){ne.preventDefault();return}}var Qe=lh(),nt=Qe.firstChild;Dc(nt),b.display.lineSpace.insertBefore(Qe,b.display.lineSpace.firstChild),nt.value=Ku.text.join(`
`);var Ot=mt(Ct(E));Xe(nt),setTimeout(function(){b.display.lineSpace.removeChild(Qe),Ot.focus(),Ot==E&&x.showPrimarySelection()},50)}}Kt(E,"copy",$),Kt(E,"cut",$)},Mo.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},Mo.prototype.prepareSelection=function(){var A=Vn(this.cm,!1);return A.focus=mt(Ct(this.div))==this.div,A},Mo.prototype.showSelection=function(A,f){!A||!this.cm.display.view.length||((A.focus||f)&&this.showPrimarySelection(),this.showMultipleSelections(A))},Mo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mo.prototype.showPrimarySelection=function(){var A=this.getSelection(),f=this.cm,x=f.doc.sel.primary(),b=x.from(),E=x.to();if(f.display.viewTo==f.display.viewFrom||b.line>=f.display.viewTo||E.line<f.display.viewFrom){A.removeAllRanges();return}var U=Rs(f,A.anchorNode,A.anchorOffset),$=Rs(f,A.focusNode,A.focusOffset);if(!(U&&!U.bad&&$&&!$.bad&&wn(Xo(U,$),b)==0&&wn(si(U,$),E)==0)){var ne=f.display.view,le=b.line>=f.display.viewFrom&&Cd(f,b)||{node:ne[0].measure.map[2],offset:0},me=E.line<f.display.viewTo&&Cd(f,E);if(!me){var Qe=ne[ne.length-1].measure,nt=Qe.maps?Qe.maps[Qe.maps.length-1]:Qe.map;me={node:nt[nt.length-1],offset:nt[nt.length-2]-nt[nt.length-3]}}if(!le||!me){A.removeAllRanges();return}var Ot=A.rangeCount&&A.getRangeAt(0),yt;try{yt=Mt(le.node,le.offset,me.offset,me.node)}catch{}yt&&(!i&&f.state.focused?(A.collapse(le.node,le.offset),yt.collapsed||(A.removeAllRanges(),A.addRange(yt))):(A.removeAllRanges(),A.addRange(yt)),Ot&&A.anchorNode==null?A.addRange(Ot):i&&this.startGracePeriod()),this.rememberSelection()}},Mo.prototype.startGracePeriod=function(){var A=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){A.gracePeriod=!1,A.selectionChanged()&&A.cm.operation(function(){return A.cm.curOp.selectionChanged=!0})},20)},Mo.prototype.showMultipleSelections=function(A){qe(this.cm.display.cursorDiv,A.cursors),qe(this.cm.display.selectionDiv,A.selection)},Mo.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},Mo.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var f=A.getRangeAt(0).commonAncestorContainer;return dt(this.div,f)},Mo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||mt(Ct(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mo.prototype.blur=function(){this.div.blur()},Mo.prototype.getField=function(){return this.div},Mo.prototype.supportsTouch=function(){return!0},Mo.prototype.receivedFocus=function(){var A=this,f=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):ls(this.cm,function(){return f.cm.curOp.selectionChanged=!0});function x(){f.cm.state.focused&&(f.pollSelection(),f.polling.set(f.cm.options.pollInterval,x))}this.polling.set(this.cm.options.pollInterval,x)},Mo.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},Mo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),f=this.cm;if(Z&&k&&this.cm.display.gutterSpecs.length&&dp(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Rs(f,A.anchorNode,A.anchorOffset),b=Rs(f,A.focusNode,A.focusOffset);x&&b&&ls(f,function(){Ri(f.doc,$e(x,b),St),(x.bad||b.bad)&&(f.curOp.selectionChanged=!0)})}}},Mo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,f=A.display,x=A.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>A.firstLine()&&(b=Lt(b.line-1,Wn(A.doc,b.line-1).length)),E.ch==Wn(A.doc,E.line).text.length&&E.line<A.lastLine()&&(E=Lt(E.line+1,0)),b.line<f.viewFrom||E.line>f.viewTo-1)return!1;var U,$,ne;b.line==f.viewFrom||(U=HA(A,b.line))==0?($=ve(f.view[0].line),ne=f.view[0].node):($=ve(f.view[U].line),ne=f.view[U-1].node.nextSibling);var le=HA(A,E.line),me,Qe;if(le==f.view.length-1?(me=f.viewTo-1,Qe=f.lineDiv.lastChild):(me=ve(f.view[le+1].line)-1,Qe=f.view[le+1].node.previousSibling),!ne)return!1;for(var nt=A.doc.splitLines(ig(A,ne,Qe,$,me)),Ot=ro(A.doc,Lt($,0),Lt(me,Wn(A.doc,me).text.length));nt.length>1&&Ot.length>1;)if(yn(nt)==yn(Ot))nt.pop(),Ot.pop(),me--;else if(nt[0]==Ot[0])nt.shift(),Ot.shift(),$++;else break;for(var yt=0,Wt=0,cn=nt[0],In=Ot[0],Yn=Math.min(cn.length,In.length);yt<Yn&&cn.charCodeAt(yt)==In.charCodeAt(yt);)++yt;for(var bn=yn(nt),Ln=yn(Ot),ar=Math.min(bn.length-(nt.length==1?yt:0),Ln.length-(Ot.length==1?yt:0 Line truncated
`),Xe(E))}else return;$.type=="cut"&&(b.state.cutIncoming=+new Date)}}Kt(E,"cut",U),Kt(E,"copy",U),Kt(A.scroller,"paste",function($){if(!(Fl(A,$)||ce(b,$))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ne=new Event("paste");ne.clipboardData=$.clipboardData,E.dispatchEvent(ne)}}),Kt(A.lineSpace,"selectstart",function($){Fl(A,$)||rt($)}),Kt(E,"compositionstart",function(){var $=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:$,range:b.markText($,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},$a.prototype.createField=function(A){this.wrapper=lh(),this.textarea=this.wrapper.firstChild;var f=this.cm.options;Dc(this.textarea,f.spellcheck,f.autocorrect,f.autocapitalize)},$a.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var A=this.cm,f=A.display,x=A.doc,b=Vn(A);if(A.options.moveInputWithCursor){var E=jt(A,x.sel.primary().head,"div"),U=f.wrapper.getBoundingClientRect(),$=f.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(f.wrapper.clientHeight-10,E.top+$.top-U.top)),b.teLeft=Math.max(0,Math.min(f.wrapper.clientWidth-10,E.left+$.left-U.left))}return b},$a.prototype.showSelection=function(A){var f=this.cm,x=f.display;qe(x.cursorDiv,A.cursors),qe(x.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},$a.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var f=this.cm;if(this.resetting=!0,f.somethingSelected()){this.prevInput="";var x=f.getSelection();this.textarea.value=x,f.state.focused&&Xe(this.textarea),h&&g>=9&&(this.hasSelection=x)}else A||(this.prevInput=this.textarea.value="",h&&g>=9&&(this.hasSelection=null));this.resetting=!1}},$a.prototype.getField=function(){return this.textarea},$a.prototype.supportsTouch=function(){return!1},$a.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ue||mt(Ct(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},$a.prototype.blur=function(){this.textarea.blur()},$a.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},$a.prototype.receivedFocus=function(){this.slowPoll()},$a.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},$a.prototype.fastPoll=function(){var A=!1,f=this;f.pollingFast=!0;function x(){var b=f.poll();!b&&!A?(A=!0,f.polling.set(60,x)):(f.pollingFast=!1,f.slowPoll())}f.polling.set(20,x)},$a.prototype.poll=function(){var A=this,f=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||this.resetting||!f.state.focused||lr(x)&&!b&&!this.composing||f.isReadOnly()||f.options.disableInput||f.state.keySeq)return!1;var E=x.value;if(E==b&&!f.somethingSelected())return!1;if(h&&g>=9&&this.hasSelection===E||ye&&/[\uf700-\uf7ff]/.test(E))return f.display.input.reset(),!1;if(f.doc.sel==f.display.selForContextMenu){var U=E.charCodeAt(0);if(U==8203&&!b&&(b="​"),U==8666)return this.reset(),this.cm.execCommand("undo")}for(var $=0,ne=Math.min(b.length,E.length);$<ne&&b.charCodeAt($)==E.charCodeAt($);)++$;return ls(f,function(){E0(f,E.slice($),b.length-$,null,A.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?x.value=A.prevInput="":A.prevInput=E,A.composing&&(A.composing.range.clear(),A.composing.range=f.markText(A.composing.start,f.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},$a.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},$a.prototype.onKeyPress=function(){h&&g>=9&&(this.hasSelection=null),this.fastPoll()},$a.prototype.onContextMenu=function(A){var f=this,x=f.cm,b=x.display,E=f.textarea;f.contextMenuPending&&f.contextMenuPending();var U=ou(x,A),$=b.scroller.scrollTop;if(!U||F)return;var ne=x.options.resetSelectionOnContextMenu;ne&&x.doc.sel.contains(U)==-1&&Qi(x,Ri)(x.doc,$e(U),St);var le=E.style.cssText,me=f.wrapper.style.cssText,Qe=f.wrapper.offsetParent.getBoundingClientRect();f.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(A.clientY-Qe.top-5)+"px; left: "+(A.clientX-Qe.left-5)+`px;
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nt;_&&(nt=E.ownerDocument.defaultView.scrollY),b.input.focus(),_&&E.ownerDocument.defaultView.scrollTo(null,nt),b.input.reset(),x.somethingSelected()||(E.value=f.prevInput=" "),f.contextMenuPending=yt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ot(){if(E.selectionStart!=null){var cn=x.somethingSelected(),In="​"+(cn?E.value:"");E.value="⇚",E.value=In,f.prevInput=cn?"":"​",E.selectionStart=1,E.selectionEnd=In.length,b.selForContextMenu=x.doc.sel}}function yt(){if(f.contextMenuPending==yt&&(f.contextMenuPending=!1,f.wrapper.style.cssText=me,E.style.cssText=le,h&&g<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=$),E.selectionStart!=null)){(!h||h&&g<9)&&Ot();var cn=0,In=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&f.prevInput=="​"?Qi(x,oc)(x):cn++<10?b.detectingSelectAll=setTimeout(In,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(In,200)}}if(h&&g>=9&&Ot(),Se){et(A);var Wt=function(){nr(window,"mouseup",Wt),setTimeout(yt,20)};Kt(window,"mouseup",Wt)}else setTimeout(yt,50)},$a.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},$a.prototype.setUneditable=function(){},$a.prototype.needsContentAttribute=!1;function og(A,f){if(f=f?Ie(f):{},f.value=A.value,!f.tabindex&&A.tabIndex&&(f.tabindex=A.tabIndex),!f.placeholder&&A.placeholder&&(f.placeholder=A.placeholder),f.autofocus==null){var x=mt(Ct(A));f.autofocus=x==A||A.getAttribute("autofocus")!=null&&x==document.body}function b(){A.value=ne.getValue()}var E;if(A.form&&(Kt(A.form,"submit",b),!f.leaveSubmitMethodAlone)){var U=A.form;E=U.submit;try{var $=U.submit=function(){b(),U.submit=E,U.submit(),U.submit=$}}catch{}}f.finishInit=function(le){le.save=b,le.getTextArea=function(){return A},le.toTextArea=function(){le.toTextArea=isNaN,b(),A.parentNode.removeChild(le.getWrapperElement()),A.style.display="",A.form&&(nr(A.form,"submit",b),!f.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=E))}},A.style.display="none";var ne=Co(function(le){return A.parentNode.insertBefore(le,A.nextSibling)},f);return ne}function Fv(A){A.off=nr,A.on=Kt,A.wheelEventPixels=ie,A.Doc=Es,A.splitLines=Sr,A.countColumn=pe,A.findColumn=pt,A.isWordChar=_i,A.Pass=ot,A.signal=Pe,A.Line=Pl,A.changeEnd=He,A.scrollbarModel=Qo,A.Pos=Lt,A.cmpPos=wn,A.modes=or,A.mimeModes=ci,A.resolveMode=ho,A.getMode=ai,A.modeExtensions=fo,A.extendMode=ja,A.copyState=Ba,A.startState=is,A.innerMode=Mi,A.commands=sp,A.keyMap=EA,A.keyName=md,A.isModifierKey=tm,A.lookupKey=Tu,A.normalizeKeyMap=Iu,A.StringStream=gi,A.SharedTextMarker=Jd,A.TextMarker=uu,A.LineWidget=iA,A.e_preventDefault=rt,A.e_stopPropagation=st,A.e_stop=et,A.addClass=je,A.contains=dt,A.rmClass=Le,A.keyNames=Fa}S0(Co),sf(Co);var O0="iter insert remove copy getEditor constructor".split(" ");for(var uf in Es.prototype)Es.prototype.hasOwnProperty(uf)&&Re(O0,uf)<0&&(Co.prototype[uf]=function(A){return function(){return A.apply(this.doc,arguments)}}(Es.prototype[uf]));return ze(Es),Co.inputStyles={textarea:$a,contenteditable:Mo},Co.defineMode=function(A){!Co.defaults.mode&&A!="null"&&(Co.defaults.mode=A),Li.apply(this,arguments)},Co.defineMIME=to,Co.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),Co.defineMIME("text/plain","null"),Co.defineExtension=function(A,f){Co.prototype[A]=f},Co.defineDocExtension=function(A,f){Es.prototype[A]=f},Co.fromTextArea=og,Fv(Co),Co.version="5.65.16",Co})}(qS)),qS.exports}var F0e=xw();const Gc=Oa(F0e);(function(e,t){(function(n){n(xw())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,h=i.json||s,g=i.trackScope!==!1,_=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function ve(ri){return{type:ri,style:"keyword"}}var Je=ve("keyword a"),Vt=ve("keyword b"),sn=ve("keyword c"),Lt=ve("keyword d"),wn=ve("operator"),dr={type:"atom",style:"atom"};return{if:ve("if"),while:Je,with:Je,else:Vt,do:Vt,try:Vt,finally:Vt,return:Lt,break:Lt,continue:Lt,new:ve("new"),delete:sn,void:sn,throw:sn,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:wn,typeof:wn,instanceof:wn,true:dr,false:dr,null:dr,undefined:dr,NaN:dr,Infinity:dr,this:ve("this"),class:ve("class"),super:ve("atom"),yield:sn,export:ve("export"),import:ve("import"),extends:sn,await:sn}}(),P=/[+\-*&%=<>!?|~^@]/,F=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function q(ve){for(var Je=!1,Vt,sn=!1;(Vt=ve.next())!=null;){if(!Je){if(Vt=="/"&&!sn)return;Vt=="["?sn=!0:sn&&Vt=="]"&&(sn=!1)}Je=!Je&&Vt=="\\"}}var ee,H;function N(ve,Je,Vt){return ee=ve,H=Vt,Je}function Z(ve,Je){var Vt=ve.next();if(Vt=='"'||Vt=="'")ret Line truncated
${B}`),q].join(`
${s}`)}return g}(e,"",0)}function L0e(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 HN={};(function(e){var t=function(){var n={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,a,s,h,g,_,B){var k=_.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.$=_[k-1];case 13:this.$={};break;case 14:this.$=_[k-1];break;case 15:this.$=[_[k-2],_[k]];break;case 16:this.$={},this.$[_[k][0]]=_[k][1];break;case 17:this.$=_[k-2],_[k-2][_[k][0]]=_[k][1];break;case 18:this.$=[];break;case 19:this.$=_[k-1];break;case 20:this.$=[_[k]];break;case 21:this.$=_[k-2],_[k-2].push(_[k]);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,a){throw new Error(o)},parse:function(o){var a=this,s=[0],h=[null],g=[],_=this.table,B="",k=0,P=0,F=0,q=2,ee=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var H=this.lexer.yylloc;g.push(H),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function N(ge){s.length=s.length-2*ge,h.length=h.length-ge,g.length=g.length-ge}function Z(){var ge;return ge=a.lexer.lex()||1,typeof ge!="number"&&(ge=a.symbols_[ge]||ge),ge}for(var ue,ye,be,J,se,xe={},Se,De,Le,he;;){if(be=s[s.length-1],this.defaultActions[be]?J=this.defaultActions[be]:(ue==null&&(ue=Z()),J=_[be]&&_[be][ue]),typeof J>"u"||!J.length||!J[0]){if(!F){he=[];for(Se in _[be])this.terminals_[Se]&&Se>2&&he.push("'"+this.terminals_[Se]+"'");var qe="";this.lexer.showPosition?qe="Parse error on line "+(k+1)+`:
`+this.lexer.showPosition()+`
Expecting `+he.join(", ")+", got '"+this.terminals_[ue]+"'":qe="Parse error on line "+(k+1)+": Unexpected "+(ue==1?"end of input":"'"+(this.terminals_[ue]||ue)+"'"),this.parseError(qe,{text:this.lexer.match,token:this.terminals_[ue]||ue,line:this.lexer.yylineno,loc:H,expected:he})}if(F==3){if(ue==ee)throw new Error(qe||"Parsing halted.");P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,H=this.lexer.yylloc,ue=Z()}for(;!(q.toString()in _[be]);){if(be==0)throw new Error(qe||"Parsing halted.");N(1),be=s[s.length-1]}ye=ue,ue=q,be=s[s.length-1],J=_[be]&&_[be][q],F=3}if(J[0]instanceof Array&&J.length>1)throw new Error("Parse Error: multiple actions possible at state: "+be+", token: "+ue);switch(J[0]){case 1:s.push(ue),h.push(this.lexer.yytext),g.push(this.lexer.yylloc),s.push(J[1]),ue=null,ye?(ue=ye,ye=null):(P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,H=this.lexer.yylloc,F>0&&F--);break;case 2:if(De=this.productions_[J[1]][1],xe.$=h[h.length-De],xe._$={first_line:g[g.length-(De||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(De||1)].first_column,last_column:g[g.length-1].last_column},se=this.performAction.call(xe,B,P,k,this.yy,J[1],h,g),typeof se<"u")return se;De&&(s=s.slice(0,-1*De*2),h=h.slice(0,-1*De),g=g.slice(0,-1*De)),s.push(this.productions_[J[1]][0]),h.push(xe.$),g.push(xe._$),Le=_[s[s.length-2]][s[s.length-1]],s.push(Le);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(a,s){if(this.yy.parseError)this.yy.parseError(a,s);else throw new Error(a)},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 a=o.match(/\n/);return a&&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(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,s,h,g;this._more||(this.yytext="",this.match="");for(var _=this._currentRules(),B=0;B<_.length&&(s=this._input.match(this.rules[_[B]]),!(s&&(!a||s[0].length>a[0].length)&&(a=s,h=B,!this.options.flex)));B++);if(a)return g=a[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+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,_[h],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 a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},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(a){this.begin(a)}};return i.options={},i.performAction=function(a,s,h,g){switch(h){case 0:break;case 1:return 6;case 2:return s.yytext=s.yytext.substr(1,s.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 n.lexer=r,n}();typeof L0e<"u"&&(e.parser=t,e.parse=t.parse.bind(t))})(HN);const YO=Oa(HN);var VN={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bh,function(){var n=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(pe,Me){return Me={exports:{}},pe(Me,Me.exports),Me.exports}var i=r(function(pe){function Me(){var Re=0,it=1,ot=2,St=3,Rt=4,zt=5,pt=6,ir=7,gn=8,yn=9,er=10,Ar=11,Mr=12,Wr=13,gr=14,_i=15,Ee=16,X=17,Y=0,Te=1,ut=2,Bt=3,It=4;function Dt(m,Kt){return 55296<=m.charCodeAt(Kt)&&m.charCodeAt(Kt)<=56319&&56320<=m.charCodeAt(Kt+1)&&m.charCodeAt(Kt+1)<=57343}function fn(m,Kt){Kt===void 0&&(Kt=0);var Pr=m.charCodeAt(Kt);if(55296<=Pr&&Pr<=56319&&Kt<m.length-1){var nr=Pr,Pe=m.charCodeAt(Kt+1);return 56320<=Pe&&Pe<=57343?(nr-55296)*1024+(Pe-56320)+65536:nr}if(56320<=Pr&&Pr<=57343&&Kt>=1){var nr=m.charCodeAt(Kt-1),Pe=Pr;return 55296<=nr&&nr<=56319?(nr-55296)*1024+(Pe-56320)+65536:Pe}return Pr}function Pn(m,Kt,Pr){var nr=[m].concat(Kt).concat([Pr]),Pe=nr[nr.length-2],ce=Pr,Ce=nr.lastIndexOf(gr);if(Ce>1&&nr.slice(1,Ce).every(function(rt){return rt==St})&&[St,Wr,X].indexOf(m)==-1)return ut;var ke=nr.lastIndexOf(Rt);if(ke>0&&nr.slice(1,ke).every(function(rt){return rt==Rt})&&[Mr,Rt].indexOf(Pe)==-1)return nr.filter(function(rt){return rt==Rt}).length%2==1?Bt:It;if(Pe==Re&&ce==it)return Y;if(Pe==ot||Pe==Re||Pe==it)return ce==gr&&Kt.every(function(rt){return rt==St})?ut:Te;if(ce==ot||ce==Re||ce==it)return Te;if(Pe==pt&&(ce==pt||ce==ir||ce==yn||ce==er))return Y;if((Pe==yn||Pe==ir)&&(ce==ir||ce==gn))return Y;if((Pe==er||Pe==gn)&&ce==gn)return Y;if(ce==St||ce==_i)return Y;if(ce==zt)return Y;if(Pe==Mr)return Y;var ze=nr.indexOf(St)!=-1?nr.lastIndexOf(St)-1:nr.length-2;return[Wr,X].indexOf(nr[ze])!=-1&&nr.slice(ze+1,-1).every(function(rt){return rt==St})&&ce==gr||Pe==_i&&[Ee,X].indexOf(ce)!=-1?Y:Kt.indexOf(Rt)!=-1?ut:Pe==Rt&&ce==Rt?Y:Te}this.nextBreak=function(m,Kt){if(Kt===void 0&&(Kt=0),Kt<0)return 0;if(Kt>=m.length-1)return m.length;for(var Pr=On(fn(m,Kt)),nr=[],Pe=Kt+1;Pe<m.length;Pe++)if(!Dt(m,Pe-1)){var ce=On(fn(m,Pe));if(Pn(Pr,nr,ce))return Pe;nr.push(ce)}return m.length},this.splitGraphemes=function(m){for(var Kt=[],Pr=0,nr;(nr=this.nextBreak(m,Pr))<m.length;)Kt.push(m.slice(Pr,nr)),Pr=nr;return Pr<m.length&&Kt.push(m.slice(Pr)),Kt},this.iterateGraphemes=function(m){var Kt=0,Pr={next:(function(){var nr,Pe;return(Pe=this.nextBreak(m,Kt))<m.length?(nr=m.slice(Kt,Pe),Kt=Pe,{value:nr,done:!1}):Kt<m.length?(nr=m.slice(Kt),Kt=m.length,{value:nr,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Pr[Symbol.iterator]=function(){return Pr}),Pr},this.countGraphemes=function(m){for(var Kt=0,Pr=0,nr;(nr=this.nextBreak(m,Pr))<m.length;)Pr=nr,Kt++;return Pr<m.length&&Kt++,Kt};function On(m){return 1536<=m&&m<=1541||m==1757||m==1807||m==2274||m==3406||m==69821||70082<=m&&m<=70083||m==72250||72326<=m&&m<=72329||m==73030?Mr:m==13?Re:m==10?it:0<=m&&m<=9||11<=m&&m<=12||14<=m&&m<=31||127<=m&&m<=159||m==173||m==1564||m==6158||m==8203||8206<=m&&m<=8207||m==8232||m==8233||8234<=m&&m<=8238||8288<=m&&m<=8292||m==8293||8294<=m&&m<=8303||55296<=m&&m<=57343||m==65279||65520<=m&&m<=65528||65529<=m&&m<=65531||113824<=m&&m<=113827||119155<=m&&m<=119162||m==917504||m==917505||917506<=m&&m<=917535||917632<=m&&m<=917759||918e3<=m&&m<=921599?ot:768<=m&&m<=879||1155<=m&&m<=1159||1160<=m&&m<=1161||1425<=m&&m<=1469||m==1471||1473<=m&&m<=1474||1476<=m&&m<=1477||m==1479||1552<=m&&m<=1562||1611<=m&&m<=1631||m==1648||1750<=m&&m<=1756||1759<=m&&m<=1764||1767<=m&&m<=1768||1770<=m&&m<=1773||m==1809||1840<=m&&m<=1866||1958<=m&&m<=1968||2027<=m&&m<=2035||2070<=m&&m<=2073||2075<=m&&m<=2083||2085<=m&&m<=2087||2089<=m&&m<=2093||2137<=m&&m<=2139||2260<=m&&m<=2273||2275<=m&&m<=2306||m==2362||m==2364||2369<=m&&m<=2376||m==2381||2385<=m&&m<=2391||2402<=m Line truncated
`)}var gn={extraLines:2,tabSize:4},yn=function(Ar,Mr,Wr,gr){gr=zt({},gn,gr);var _i=Ar.split(/\r\n?|\n|\f/),Ee=Math.max(1,Mr-gr.extraLines)-1,X=Math.min(Mr+gr.extraLines,_i.length),Y=String(X).length,Te=ir(_i,Ee,Mr,Y,gr),ut=pt(_i[Mr-1].substring(0,Wr-1),Mr,Y,gr),Bt=ot(" ",ut.length)+"^",It=ir(_i,Mr,X,Y,gr);return[Te,Bt,It].filter(Boolean).join(`
`)};return yn})}),g=new Error().stack,_=function(pe){var Me=Object.create(SyntaxError.prototype);return Object.assign(Me,pe,{name:"SyntaxError"}),Object.defineProperty(Me,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(Me)+`
`):""}}),Me},B=function(pe,Me,Re,it,ot){throw _({message:it?pe+`
`+h(Me,it,ot):pe,rawMessage:pe,source:Re,line:it,column:ot})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Me){for(var Re=arguments.length,it=Array(Re>1?Re-1:0),ot=1;ot<Re;ot++)it[ot-1]=arguments[ot];return"Unexpected token <"+Me+"> at "+it.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Me){for(var Re=arguments.length,it=Array(Re>1?Re-1:0),ot=1;ot<Re;ot++)it[ot-1]=arguments[ot];return"Unexpected symbol <"+Me+"> at "+it.filter(Boolean).join(":")}},F={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},q={"{":F.LEFT_BRACE,"}":F.RIGHT_BRACE,"[":F.LEFT_BRACKET,"]":F.RIGHT_BRACKET,":":F.COLON,",":F.COMMA},ee={true:F.TRUE,false:F.FALSE,null:F.NULL},H={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},N={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},Z={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ue(pe){return pe>="1"&&pe<="9"}function ye(pe){return pe>="0"&&pe<="9"}function be(pe){return ye(pe)||pe>="a"&&pe<="f"||pe>="A"&&pe<="F"}function J(pe){return pe==="e"||pe==="E"}function se(pe,Me,Re,it){var ot=pe.charAt(Me);if(ot==="\r")Me++,Re++,it=1,pe.charAt(Me)===`
`&&Me++;else if(ot===`
`)Me++,Re++,it=1;else if(ot===" "||ot===" ")Me++,it++;else return null;return{index:Me,line:Re,column:it}}function xe(pe,Me,Re,it){var ot=pe.charAt(Me);return ot in q?{type:q[ot],line:Re,column:it+1,index:Me+1,value:null}:null}function Se(pe,Me,Re,it){for(var ot in ee)if(ee.hasOwnProperty(ot)&&pe.substr(Me,ot.length)===ot)return{type:ee[ot],line:Re,column:it+ot.length,index:Me+ot.length,value:ot};return null}function De(pe,Me,Re,it){for(var ot=Me,St=H._START_;Me<pe.length;){var Rt=pe.charAt(Me);switch(St){case H._START_:{if(Rt==='"')Me++,St=H.START_QUOTE_OR_CHAR;else return null;break}case H.START_QUOTE_OR_CHAR:{if(Rt==="\\")Me++,St=H.ESCAPE;else{if(Rt==='"')return Me++,{type:F.STRING,line:Re,column:it+Me-ot,index:Me,value:pe.slice(ot,Me)};Me++}break}case H.ESCAPE:{if(Rt in N){if(Me++,Rt==="u")for(var zt=0;zt<4;zt++){var pt=pe.charAt(Me);if(pt&&be(pt))Me++;else return null}St=H.START_QUOTE_OR_CHAR}else return null;break}}}}function Le(pe,Me,Re,it){var ot=Me,St=Me,Rt=Z._START_;e:for(;Me<pe.length;){var zt=pe.charAt(Me);switch(Rt){case Z._START_:{if(zt==="-")Rt=Z.MINUS;else if(zt==="0")St=Me+1,Rt=Z.ZERO;else if(ue(zt))St=Me+1,Rt=Z.DIGIT;else return null;break}case Z.MINUS:{if(zt==="0")St=Me+1,Rt=Z.ZERO;else if(ue(zt))St=Me+1,Rt=Z.DIGIT;else return null;break}case Z.ZERO:{if(zt===".")Rt=Z.POINT;else if(J(zt))Rt=Z.EXP;else break e;break}case Z.DIGIT:{if(ye(zt))St=Me+1;else if(zt===".")Rt=Z.POINT;else if(J(zt))Rt=Z.EXP;else break e;break}case Z.POINT:{if(ye(zt))St=Me+1,Rt=Z.DIGIT_FRACTION;else break e;break}case Z.DIGIT_FRACTION:{if(ye(zt))St=Me+1;else if(J(zt))Rt=Z.EXP;else break e;break}case Z.EXP:{if(zt==="+"||zt==="-")Rt=Z.EXP_DIGIT_OR_SIGN;else if(ye(zt))St=Me+1,Rt=Z.EXP_DIGIT_OR_SIGN;else break e;break}case Z.EXP_DIGIT_OR_SIGN:{if(ye(zt))St=Me+1;else break e;break}}Me++}return St>0?{type:F.NUMBER,line:Re,column:it+St-ot,index:St,value:pe.slice(ot,St)}:null}var he=function(Me,Re){for(var it=1,ot=1,St=0,Rt=[];St<Me.length;){var zt=[Me,St,it,ot],pt=se.apply(void 0,zt);if(pt){St=pt.index,it=pt.line,ot=pt.column;continue}var ir=xe.apply(void 0,zt)||Se.apply(void 0,zt)||De.apply(void 0,zt)||Le.apply(void 0,zt);if(ir){var gn={type:ir.type,value:ir.value,loc:s(it,ot,St,ir.line,ir.column,ir.index,Re.source)};Rt.push(gn),St=ir.index,it=ir.line,ot=ir.column}else B(P.unexpectedSymbol(a(Me,St,St+1),Re.source,it,ot),Me,Re.source,it,ot)}return Rt},qe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},ge={_START_:0,KEY:1,COLON:2},_t={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Mt={loc:!0,source:null};function dt(pe,Me,Re){var it=Me.length>0?Me[Me.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),pe,Re.source,it.line,it.column)}function mt(pe){for(var Me=0,Re=0;Re<4;Re++)Me=Me*16+parseInt(pe[Re],16);return String.fromCharCode(Me)}var je={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ve=['"',"\\","/"];function Xe(pe){for(var Me="",Re=0;Re<pe.length;Re++){var it=pe.charAt(Re);if(it==="\\"){Re++;var ot=pe.charAt(Re);if(ot==="u")Me+=mt(pe.substr(Re+1,4)),Re+=4;else if(Ve.indexOf(ot)!==-1)Me+=ot;else if(ot in je)Me+=je[ot];else break}else Me+=it}return Me}function Jt(pe,Me,Re,it){for(var ot=void 0,St={type:"Object",children:[]},Rt=qe._START_;Re<Me.length;){var zt=Me[Re];switch(Rt){case qe._START_:{if(zt.type===F.LEFT_BRACE)ot=zt,Rt=qe.OPEN_OBJECT,Re++;else return null;break}case qe.OPEN_OBJECT:{if(zt.type===F.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:Re+1};var pt=Ht(pe,Me,Re,it);St.children.push(pt.value),Rt=qe.PROPERTY,Re=pt.index;break}case qe.PROPERTY:{if(zt.type===F.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:Re+1};zt.type===F.COMMA?(Rt=qe.COMMA,Re++):B(k.unexpectedToken(a(pe,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),pe,it.source,zt.loc.start.line,zt.loc.start.column);break}case qe.COMMA:{var ir=Ht(pe,Me,Re,it);ir?(Re=ir.index,St.children.push(ir.value),Rt=qe.PROPERTY):B(k.unexpectedToken(a(pe,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),pe,it.source,zt.loc.start.line,zt.loc.start.column);break}}}dt(pe,Me,it)}function Ht(pe,Me,Re,it){for(var ot=void 0,St={type:"Property",key:null,value:null},Rt=ge._START_;Re<Me.length;){var zt=Me[Re];switch(Rt){case ge._START_:{if(zt.type===F.STRING){var pt={type:"Identifier",value:Xe(pe.slice(zt.loc.start.offset+1,zt.loc.end.offset-1)),raw:zt.value};it.loc&&(pt.loc=zt.loc),ot=zt,St.key=pt,Rt=ge.KEY,Re++}else return null;break}case ge.KEY:{zt.type===F.COLON?(Rt=ge.COLON,Re++):B(k.unexpectedToken(a(pe,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),pe,it.source,zt.loc.start.line,zt.loc.start.column);break}case ge.COLON:{var ir=$t(pe,Me,Re,it);return St.value=ir.value,it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,ir.value.loc.end.line,ir.value.loc.end.column,ir.value.loc.end.offset,it.source)),{value:St,index:ir.index}}}}}function Ct(pe,Me,Re,it){for(var ot=void 0,St={type:"Array",children:[]},Rt=_t._START_,zt=void 0;Re<Me.length;)switch(zt=Me[Re],Rt){case _t._START_:{if(zt.type===F.LEFT_BRACKET)ot=zt,Rt=_t.OPEN_ARRAY,Re++;else return null;break}case _t.OPEN_ARRAY:{if(zt.type===F.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:Re+1};var pt=$t(pe,Me,Re,it);Re=pt.index,St.children.push(pt.value),Rt=_t.VALUE;break}case _t.VALUE:{if(zt.type===F.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:Re+1};zt.type===F.COMMA?(Rt=_t.COMMA,Re++):B(k.unexpectedToken(a(pe,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),pe,it.source,zt.loc.start.line,zt.loc.start.column);break}case _t.COMMA:{var ir=$t(pe,Me,Re,it);Re=ir.index,St.children.push(ir.value),Rt=_t.VALUE;break}}dt(pe,Me,it)}function Qt(pe,Me,Re,it){var ot=Me[Re],St=null;switch(ot.type){case F.STRING:{St=Xe(pe.slice(ot.loc.start.offset+1,ot.loc.end.offset-1));break}case F.NUMBER:{St=Number(ot.value);break}case F.TRUE:{St=!0;break}case F.FALSE:{St=!1;break}case F.NULL:{St=null;break}default:return null}var Rt={type:"Literal",value:St,raw:ot.value};return it.loc&&(Rt.loc=ot.loc),{value:Rt,index:Re+1}}function $t(pe,Me,Re,it){var ot=Me[Re],St=Qt.apply(void 0,arguments)||Jt.apply(void 0,arguments)||Ct.apply(void 0,arguments);if(St)return St;B(k.unexpectedToken(a(pe,ot.loc.start.offset,ot.loc.end.offset),it.source,ot.loc.start.line,ot.loc.start.column),pe,it.source,ot.loc.start.line,ot.loc.start.column)}var Ie=function(pe,Me){Me=Object.assign({},Mt,Me);var Re=he(pe,Me);Re.length===0&&dt(pe,Re,Me);var it=$t(pe,Re,0,Me);if(it.index===Re.length)return it.value;var ot=Re[it.index];B(k.unexpectedToken(a(pe,ot.loc.start.offset,ot.loc.end.offset),Me.source,ot.loc.start.line,ot.loc.start.column),pe,Me.source,ot.loc.start.line,ot.loc.start.column)};return Ie})})(VN);var U0e=VN.exports;const R0e=Oa(U0e);function En(){var e="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",t="a994e12e3e6547813b669a430e6cb42da5d99bba",n=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:11,column:0},end:{line:26,column:3}},3:{start:{line:12,column:16},end:{line:12,column:18}},4:{start:{line:13,column:2},end:{line:20,column:4}},5:{sta Line truncated
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:WSe({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return Cm.default.createElement("div",{style:o.alpha},Cm.default.createElement("div",{style:o.checkboard},Cm.default.createElement(HSe.default,{renderers:this.props.renderers})),Cm.default.createElement("div",{style:o.gradient}),Cm.default.createElement("div",{style:o.container,ref:function(s){return r.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Cm.default.createElement("div",{style:o.pointer},this.props.pointer?Cm.default.createElement(this.props.pointer,this.props):Cm.default.createElement("div",{style:o.slider}))))}}]),t}(tB.PureComponent||tB.Component);Wb.default=JSe;var Nb={};Object.defineProperty(Nb,"__esModule",{value:!0});Nb.EditableInput=void 0;var e6e=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),nB=kr,t6=oQ(nB),t6e=Ys,n6e=oQ(t6e);function oQ(e){return e&&e.__esModule?e:{default:e}}function r6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i6e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o6e(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function a6e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s6e=1,aQ=38,l6e=40,u6e=[aQ,l6e],A6e=function(t){return u6e.indexOf(t)>-1},c6e=function(t){return Number(String(t).replace(/%/g,""))},d6e=1,h6e=Nb.EditableInput=function(e){a6e(t,e);function t(n){i6e(this,t);var r=o6e(this,(t.__proto__||Object.getPrototypeOf(t)).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=c6e(i.target.value);if(!isNaN(o)&&A6e(i.keyCode)){var a=r.getArrowOffset(),s=i.keyCode===aQ?o+a:o-a;r.setUpdatedValue(s,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(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},r.inputId="rc-editable-input-"+d6e++,r}return e6e(t,[{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 r6e({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||s6e}},{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,n6e.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 t6.default.createElement("div",{style:i.wrap},t6.default.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return r.input=a},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?t6.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(nB.PureComponent||nB.Component);Nb.default=h6e;var Gb= Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),Fg.default.createElement("div",{style:a.pointer},this.props.pointer?Fg.default.createElement(this.props.pointer,this.props):Fg.default.createElement("div",{style:a.slider}))))}}]),t}(rB.PureComponent||rB.Component);Gb.default=b6e;var Qb={};Object.defineProperty(Qb,"__esModule",{value:!0});Qb.Raised=void 0;var x6e=kr,n6=Uw(x6e),w6e=kh,k2=Uw(w6e),M6e=Ys,S6e=Uw(M6e),E6e=tQ,O6e=Uw(E6e);function Uw(e){return e&&e.__esModule?e:{default:e}}var Wk=Qb.Raised=function(t){var n=t.zDepth,r=t.radius,i=t.background,o=t.children,a=t.styles,s=a===void 0?{}:a,h=(0,S6e.default)((0,O6e.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+n+"px "+n*4+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":n===1});return n6.default.createElement("div",{style:h.wrap},n6.default.createElement("div",{style:h.bg}),n6.default.createElement("div",{style:h.content},o))};Wk.propTypes={background:k2.default.string,zDepth:k2.default.oneOf([0,1,2,3,4,5]),radius:k2.default.number,styles:k2.default.object};Wk.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};Qb.default=Wk;var $b={},B6e=Th,k6e=function(){return B6e.Date.now()},I6e=k6e,T6e=/\s/;function K6e(e){for(var t=e.length;t--&&T6e.test(e.charAt(t)););return t}var P6e=K6e,F6e=P6e,D6e=/^\s+/;function L6e(e){return e&&e.slice(0,F6e(e)+1).replace(D6e,"")}var U6e=L6e,R6e=U6e,lF=Nd,z6e=Pw,uF=NaN,j6e=/^[-+]0x[0-9a-f]+$/i,W6e=/^0b[01]+$/i,N6e=/^0o[0-7]+$/i,G6e=parseInt;function Q6e(e){if(typeof e=="number")return e;if(z6e(e))return uF;if(lF(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lF(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=R6e(e);var n=W6e.test(e);return n||N6e.test(e)?G6e(e.slice(2),n?2:8):j6e.test(e)?uF:+e}var $6e=Q6e,Y6e=Nd,r6=I6e,AF=$6e,q6e="Expected a function",H6e=Math.max,V6e=Math.min;function Z6e(e,t,n){var r,i,o,a,s,h,g=0,_=!1,B=!1,k=!0;if(typeof e!="function")throw new TypeError(q6e);t=AF(t)||0,Y6e(n)&&(_=!!n.leading,B="maxWait"in n,o=B?H6e(AF(n.maxWait)||0,t):o,k="trailing"in n?!!n.trailing:k);function P(be){var J=r,se=i;return r=i=void 0,g=be,a=e.apply(se,J),a}function F(be){return g=be,s=setTimeout(H,t),_?P(be):a}function q(be){var J=be-h,se=be-g,xe=t-J;return B?V6e(xe,o-se):xe}function ee(be){var J=be-h,se=be-g;return h===void 0||J>=t||J<0||B&&se>=o}function H(){var be=r6();if(ee(be))return N(be);s=setTimeout(H,q(be))}function N(be){return s=void 0,k&&r?P(be):(r=i=void 0,a)}function Z(){s!==void 0&&clearTimeout(s),g=0,r=h=i=s=void 0}function ue(){return s===void 0?a:N(r6())}function ye(){var be=r6(),J=ee(be);if(r=arguments,i=this,h=be,J){if(s===void 0)return F(h);if(B)return clearTimeout(s),s=setTimeout(H,t),P(h)}return s===void 0&&(s=setTimeout(H,t)),a}return ye.cancel=Z,ye.flush=ue,ye}var lQ=Z6e,X6e=lQ,J6e=Nd,eEe="Expected a function";function tEe(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(eEe);return J6e(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),X6e(e,t,{leading:r,maxWait:t,trailing:i})}var nEe=tEe,Nk={};Object.defineProperty(Nk,"__esModule",{value:!0});Nk.calculateChange=function(t,n,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,h=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,g=s-(r.getBoundingClientRect().left+window.pageXOffset),_=h-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),_<0?_=0:_>a&&(_=a);var B=g/o,k=1-_/a;return{h:n.h,s:B,v:k,a:n.a,source:"hsv"}};Object.defineProperty($b,"__esModule",{value:!0});$b.Saturation=void 0;var rEe=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),iB=kr,N0=Gk(iB),iEe=Ys,oEe=Gk(iEe),aEe=nEe,sEe=Gk(aEe),lEe=Nk,uEe=AEe(lEe);function AEe(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Gk(e){return e&&e.__esModule?e:{default:e}}function cEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dEe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function hEe(e,t){if(typeof t!="function"&&t!==null)throw new Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:h,circle:g}},{custom:!!this.props.style});return N0.default.createElement("div",{style:_.color,ref:function(k){return r.container=k},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},N0.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),N0.default.createElement("div",{style:_.white,className:"saturation-white"},N0.default.createElement("div",{style:_.black,className:"saturation-black"}),N0.default.createElement("div",{style:_.pointer},this.props.pointer?N0.default.createElement(this.props.pointer,this.props):N0.default.createElement("div",{style:_.circle}))))}}]),t}(iB.PureComponent||iB.Component);$b.default=fEe;var Yb={},DA={},pEe=RG,mEe=UG,gEe=yG,yEe=nd;function vEe(e,t){var n=yEe(e)?pEe:mEe;return n(e,gEe(t))}var _Ee=vEe,CEe=_Ee,uQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Bh,function(){function n(Ie){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pe){return typeof pe}:function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe},n(Ie)}var r=/^\s+/,i=/\s+$/;function o(Ie,pe){if(Ie=Ie||"",pe=pe||{},Ie instanceof o)return Ie;if(!(this instanceof o))return new o(Ie,pe);var Me=a(Ie);this._originalInput=Ie,this._r=Me.r,this._g=Me.g,this._b=Me.b,this._a=Me.a,this._roundA=Math.round(100*this._a)/100,this._format=pe.format||Me.format,this._gradientType=pe.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Me.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var pe=this.toRgb();return(pe.r*299+pe.g*587+pe.b*114)/1e3},getLuminance:function(){var pe=this.toRgb(),Me,Re,it,ot,St,Rt;return Me=pe.r/255,Re=pe.g/255,it=pe.b/255,Me<=.03928?ot=Me/12.92:ot=Math.pow((Me+.055)/1.055,2.4),Re<=.03928?St=Re/12.92:St=Math.pow((Re+.055)/1.055,2.4),it<=.03928?Rt=it/12.92:Rt=Math.pow((it+.055)/1.055,2.4),.2126*ot+.7152*St+.0722*Rt},setAlpha:function(pe){return this._a=qe(pe),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var pe=_(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,v:pe.v,a:this._a}},toHsvString:function(){var pe=_(this._r,this._g,this._b),Me=Math.round(pe.h*360),Re=Math.round(pe.s*100),it=Math.round(pe.v*100);return this._a==1?"hsv("+Me+", "+Re+"%, "+it+"%)":"hsva("+Me+", "+Re+"%, "+it+"%, "+this._roundA+")"},toHsl:function(){var pe=h(this._r,this._g,this._b);return{h:pe.h*360,s:pe.s,l:pe.l,a:this._a}},toHslString:function(){var pe=h(this._r,this._g,this._b),Me=Math.round(pe.h*360),Re=Math.round(pe.s*100),it=Math.round(pe.l*100);return this._a==1?"hsl("+Me+", "+Re+"%, "+it+"%)":"hsla("+Me+", "+Re+"%, "+it+"%, "+this._roundA+")"},toHex:function(pe){return k(this._r,this._g,this._b,pe)},toHexString:function(pe){return"#"+this.toHex(pe)},toHex8:function(pe){return P(this._r,this._g,this._b,this._a,pe)},toHex8String:function(pe){return"#"+this.toHex8(pe)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ge(this._r,255)*100)+"%",g:Math.round(ge(this._g,255)*100)+"%",b:Math.round(ge(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%)":"rgba("+Math.round(ge(this._r,255)*100)+"%, "+Math.round(ge(this._g,255)*100)+"%, "+Math.round(ge(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Le[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(pe){var Me="#"+F(this._r,this._g,this._b,this._a),Re=Me,it=this._gradientType?"GradientType = 1, ":"";if(pe){var ot=o(pe);Re="#"+F(ot._r,ot._g,ot._b,ot._a)}return"progid:DXImageTransform.Microsoft.gradient("+it+"startColorstr="+Me+",endColorstr="+Re+")"},toString:function(pe){var Me=!!pe;pe=pe||this._format;var Re=!1,it=this._a<1&&this._a>=0,ot=!Me&&it&&(pe==="hex"||pe==="hex6"||pe==="hex3"||pe==="hex4"||pe==="hex8"||pe==="name");return ot?pe==="name"&&this._a===0?this.toName():this.toRgbString():(pe==="rgb"&&(Re=this.toRgbString()),pe==="prgb"&&(Re=this.toPercentageRgbString()),(pe==="hex"||pe==="hex6")&&(Re=this.toHexString()),pe==="hex3"&&(Re=this.toHexString(!0)),pe==="hex4"&&(Re=this.toHex8String(!0)),pe==="hex8"&&(Re=this.toHex8String()),pe==="name"&&(Re=this.toName()),pe==="hsl"&&(Re=this.toHslString()),pe==="hsv"&&(Re=this.toHsvString()),Re||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(pe,Me){var Re=pe.apply(null,[this].concat([].slice.call(Me)));return this._r=Re._r,this._g=Re._g,this._b=Re._b,this.setAlpha(Re._a),this},lighten:function(){return this._ Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${n}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${TF}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${TF}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: ${t},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),i=(Ro().s[8]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(Ro().s[9]++,this.exportName());Ro().s[10]++,IF.saveAs(i,o+".html")}downloadStyle(){Ro().f[3]++;const t=(Ro().s[11]++,this.tokenizedStyle()),n=(Ro().s[12]++,new Blob([t],{type:"application/json;charset=utf-8"})),r=(Ro().s[13]++,this.exportName());Ro().s[14]++,IF.saveAs(n,r+".json")}changeMetadataProperty(t,n){Ro().f[4]++;const r=(Ro().s[15]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[t]:n}});Ro().s[16]++,this.props.onStyleChanged(r)}render(){return Ro().f[5]++,Ro().s[17]++,G.jsx(Gf,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:"Export Style",className:"maputnik-export-modal",children:G.jsxs("section",{className:"maputnik-modal-section",children:[G.jsx("h1",{children:"Download Style"}),G.jsx("p",{children:"Download a JSON style to your computer."}),G.jsxs("div",{children:[G.jsx(Fm,{label:xf.maputnik.maptiler_access_token.label,fieldSpec:xf.maputnik.maptiler_access_token,value:(Ro().b[2][0]++,this.props.mapStyle.metadata||(Ro().b[2][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),G.jsx(Fm,{label:xf.maputnik.thunderforest_access_token.label,fieldSpec:xf.maputnik.thunderforest_access_token,value:(Ro().b[3][0]++,this.props.mapStyle.metadata||(Ro().b[3][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")})]}),G.jsxs("div",{className:"maputnik-modal-export-buttons",children:[G.jsxs(za,{onClick:this.downloadStyle.bind(this),children:[G.jsx(FE,{}),"Download Style"]}),G.jsxs(za,{onClick:this.downloadHtml.bind(this),children:[G.jsx(FE,{}),"Download HTML"]})]})]})})}}function r5(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",t="950dd35e62562a3439b74678b95f406e749c6958",n=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},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/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},o=n[r]||(n[r]={});(!o[e]||o[e].hash!==t)&&(o[e]=i);var a=o[e];return r5=function(){return a},a}r5();class PQ extends Mn.Component{render(){return r5().f[0]++,r5().s[0]++,G.jsx(sb,{label:this.props.label,children:G.jsx(gQ,{...this.props})})}}function i5(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",t="a27c35e986d22656fa80c276efb67df518853ac2",n=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},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/FieldCheckbox.tsx"],names:[],mappings:"AAaM;AAbN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,mBAAyC;AAQhD,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAC9B,8BAAC,iBAAe,GAAG,KAAK,OAAO,GACjC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a27c35e986d22656fa80c276efb67df518853ac2"},o=n[r]||(n[r]={});(!o[e]||o[e].hash!==t)&&(o[e]=i);var a=o[e];return i5=function(){return a},a}i5();class A7e extends Mn.Component{render(){return i5().f[0]++,i5().s[0]++,G.jsx(aa,{label:this.props.label,children:G.jsx(qk,{...this.props})})}}function Xn(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",t="bd3e4d09ce7131c28fb23a5fc0245fe57c891028",n=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",statementMap:{0:{start:{line:14,column:4},end:{line:28,column:9}},1:{start:{line:21,column:29},end:{line:24,column:12}},2:{start:{line:33,column:4},end:{line:36,column:7}},3:{start:{line:39,column:18},end:{line:39,column:47}},4:{start:{line:40,column:4},end:{line:49,column:6}},5:{start:{line:52,column:4},end:{line:79,column:9}},6:{start:{line:60,column:33},end:{line:63,column:12}},7:{start:{line:72,column:33},end:{line:75,column:12}},8:{start:{line:84,column:24},end:{line:91,column:5}},9:{start:{line:85,column:26},end:{line:85,column:64}},10:{start:{line:86,column:6},end:{line:8 Line truncated
`)>=0)return!1;return!0}function vke(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=wf.call(Array(e.indent+1)," ");else return null;return{base:n,prev:wf.call(Array(t+1),n)}}function dB(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+wf.call(e,","+n)+`
`+t.prev}function P2(e,t){var n=cB(e),r=[];if(n){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Im(e,i)?t(e[i],e):""}var o=typeof m6=="function"?m6(e):[],a;if(sv){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var h in e)Im(e,h)&&(n&&String(Number(h))===h&&h<e.length||sv&&a["$"+h]instanceof Symbol||($Q.call(/[^\w$]/,h)?r.push(t(h,e)+": "+t(e[h],e)):r.push(h+": "+t(e[h],e))));if(typeof m6=="function")for(var g=0;g<o.length;g++)YQ.call(e,o[g])&&r.push("["+t(o[g])+"]: "+t(e[o[g]],e));return r}var XQ=kv,Iv=W8e,_ke=tke,Cke=Xb,F2=XQ("%WeakMap%",!0),D2=XQ("%Map%",!0),bke=Iv("WeakMap.prototype.get",!0),xke=Iv("WeakMap.prototype.set",!0),wke=Iv("WeakMap.prototype.has",!0),Mke=Iv("Map.prototype.get",!0),Ske=Iv("Map.prototype.set",!0),Eke=Iv("Map.prototype.has",!0),aI=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Oke=function(e,t){var n=aI(e,t);return n&&n.value},Bke=function(e,t,n){var r=aI(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},kke=function(e,t){return!!aI(e,t)},Ike=function(){var t,n,r,i={assert:function(o){if(!i.has(o))throw new Cke("Side channel does not contain "+_ke(o))},get:function(o){if(F2&&o&&(typeof o=="object"||typeof o=="function")){if(t)return bke(t,o)}else if(D2){if(n)return Mke(n,o)}else if(r)return Oke(r,o)},has:function(o){if(F2&&o&&(typeof o=="object"||typeof o=="function")){if(t)return wke(t,o)}else if(D2){if(n)return Eke(n,o)}else if(r)return kke(r,o);return!1},set:function(o,a){F2&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new F2),xke(t,o,a)):D2?(n||(n=new D2),Ske(n,o,a)):(r||(r={key:{},next:null}),Bke(r,o,a))}};return i},Tke=String.prototype.replace,Kke=/%20/g,y6={RFC1738:"RFC1738",RFC3986:"RFC3986"},sI={default:y6.RFC3986,formatters:{RFC1738:function(e){return Tke.call(e,Kke,"+")},RFC3986:function(e){return String(e)}},RFC1738:y6.RFC1738,RFC3986:y6.RFC3986},Pke=sI,v6=Object.prototype.hasOwnProperty,r1=Array.isArray,mf=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Fke=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(r1(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);n.obj[n.prop]=i}}},JQ=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(r[i]=t[i]);return r},Dke=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(r1(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!v6.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var i=t;return r1(t)&&!r1(n)&&(i=JQ(t,r)),r1(t)&&r1(n)?(n.forEach(function(o,a){if(v6.call(t,a)){var s=t[a];s&&typeof s=="object"&&o&&typeof o=="object"?t[a]=e(s,o,r):t.push(o)}else t[a]=o}),t):Object.keys(n).reduce(function(o,a){var s=n[a];return v6.call(o,a)?o[a]=e(o[a],s,r):o[a]=s,o},i)},Lke=function(t,n){return Object.keys(n).reduce(function(r,i){return r[i]=n[i],r},t)},Uke=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Rke=function(t,n,r,i,o){if(t.length===0)return t;var a=t;if(typeof t=="symbol"?a=Symbol.prototype.toString.call(t):typeof t!="string"&&(a=String(t)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(_){return"%26%23"+parseInt(_.slice(2),16)+"%3B"});for(var s="",h=0;h<a.length;++h){var g=a.charCodeAt(h);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||o===Pke.RFC1738&&(g===40||g===41)){s+=a.charAt(h);continue}if(g<128){s=s+mf[g];continue}if(g<2048){s=s+(mf[192|g>>6]+mf[128|g&63]);continue}if(g<55296||g>=57344){s=s+(mf[224|g>>12]+mf[128|g>>6&63]+mf[128|g&63]);continue}h+=1,g=65536+((g&1023)<<10|a.charCodeAt(h)&1023),s+=mf[240|g>>18]+mf[128|g>>12&63]+mf[128|g>>6&63]+mf[128|g&63]}return s},zke=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i<n.length;++i)for(var o=n[i],a=o.obj[o.prop],s=Object.keys(a),h=0;h<s.length;++h){var g=s[h],_=a[g];typeof _=="object"&&_!==null&&r.indexOf(_)===-1&&(n.push({obj:a,prop:g}),r.push(_))}return Fke(n),t},jke=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Wke=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Nke=function(t,n){return[].concat(t,n)},Gke=function(t,n){if(r1(t)){for(var r=[],i=0;i<t.length;i+=1)r.push(n(t[i]));return r}return n(t)},e$={arrayToObject:JQ,assign:Lke,combine:Nke,compact:zke,decode:Uke,encode:Rke,isBuffer:Wke,isRegExp:jke,maybeMap:Gke,merge:Dke},t$=Ike,u3=e$,mC=sI,Qke=Object.prototype.hasOwnProperty,n$={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},bf=Array.isArray,$ke=Array.prototype.push,r$=function(e,t){$ke.apply(e,bf(t)?t:[t])},Yke=Date.prototype.toISOString,rD=mC.default,$l={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"in Line truncated
`," "],mIe=["{","}","|","\\","^","`"].concat(pIe),fB=["'"].concat(mIe),iD=["%","/","?",";","#"].concat(fB),oD=["/","?","#"],gIe=255,aD=/^[+a-z0-9A-Z_-]{0,63}$/,yIe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,vIe={javascript:!0,"javascript:":!0},pB={javascript:!0,"javascript:":!0},Ny={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},mB=AIe;function ex(e,t,n){if(e&&typeof e=="object"&&e instanceof Ld)return e;var r=new Ld;return r.parse(e,t,n),r}Ld.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),e=o.join(i);var s=e;if(s=s.trim(),!n&&e.split("#").length===1){var h=fIe.exec(s);if(h)return this.path=s,this.href=s,this.pathname=h[1],h[2]?(this.search=h[2],t?this.query=mB.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var g=dIe.exec(s);if(g){g=g[0];var _=g.toLowerCase();this.protocol=_,s=s.substr(g.length)}if(n||g||s.match(/^\/\/[^@/]+@[^@/]+/)){var B=s.substr(0,2)==="//";B&&!(g&&pB[g])&&(s=s.substr(2),this.slashes=!0)}if(!pB[g]&&(B||g&&!Ny[g])){for(var k=-1,P=0;P<oD.length;P++){var F=s.indexOf(oD[P]);F!==-1&&(k===-1||F<k)&&(k=F)}var q,ee;k===-1?ee=s.lastIndexOf("@"):ee=s.lastIndexOf("@",k),ee!==-1&&(q=s.slice(0,ee),s=s.slice(ee+1),this.auth=decodeURIComponent(q)),k=-1;for(var P=0;P<iD.length;P++){var F=s.indexOf(iD[P]);F!==-1&&(k===-1||F<k)&&(k=F)}k===-1&&(k=s.length),this.host=s.slice(0,k),s=s.slice(k),this.parseHost(),this.hostname=this.hostname||"";var H=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!H)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var ue=N[P];if(ue&&!ue.match(aD)){for(var ye="",be=0,J=ue.length;be<J;be++)ue.charCodeAt(be)>127?ye+="x":ye+=ue[be];if(!ye.match(aD)){var se=N.slice(0,P),xe=N.slice(P+1),Se=ue.match(yIe);Se&&(se.push(Se[1]),xe.unshift(Se[2])),xe.length&&(s="/"+xe.join(".")+s),this.hostname=se.join(".");break}}}this.hostname.length>gIe?this.hostname="":this.hostname=this.hostname.toLowerCase(),H||(this.hostname=cIe.toASCII(this.hostname));var De=this.port?":"+this.port:"",Le=this.hostname||"";this.host=Le+De,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!vIe[_])for(var P=0,Z=fB.length;P<Z;P++){var he=fB[P];if(s.indexOf(he)!==-1){var qe=encodeURIComponent(he);qe===he&&(qe=escape(he)),s=s.split(he).join(qe)}}var ge=s.indexOf("#");ge!==-1&&(this.hash=s.substr(ge),s=s.slice(0,ge));var _t=s.indexOf("?");if(_t!==-1?(this.search=s.substr(_t),this.query=s.substr(_t+1),t&&(this.query=mB.parse(this.query)),s=s.slice(0,_t)):t&&(this.search="",this.query={}),s&&(this.pathname=s),Ny[_]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var De=this.pathname||"",Mt=this.search||"";this.path=De+Mt}return this.href=this.format(),this};function _Ie(e){return typeof e=="string"&&(e=ex(e)),e instanceof Ld?e.format():Ld.prototype.format.call(e)}Ld.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=mB.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||Ny[t])&&i!==!1?(i="//"+(i||""),n&&n.charAt(0)!=="/"&&(n="/"+n)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),n=n.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),t+i+n+a+r};function CIe(e,t){return ex(e,!1,!0).resolve(t)}Ld.prototype.resolve=function(e){return this.resolveObject(ex(e,!1,!0)).format()};function bIe(e,t){return e?ex(e,!1,!0).resolveObject(t):t}Ld.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new Ld;t.parse(e,!1,!0),e=t}for(var n=new Ld,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];n[o]=this[o]}if(n.hash=e.hash,e.href==="")return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var h=a[s];h!=="protocol"&&(n[h]=e[h])}return Ny[n.protocol]&&n.hostname&&!n.pathname&&(n.pathname="/",n.path=n.pathname),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!Ny[e.protocol]){for(var g=Object.keys(e),_=0;_<g.length;_++){var B=g[_];n[B]=e[B]}return n.href=n.format(),n}if(n.protocol=e.protocol,!e.host&&!pB[e.protocol]){for(var Z=(e.pathname||"").split("/");Z.length&&!(e.host=Z.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),n.pathname=Z.join("/")}else n.pathname=e.pathname;if(n.search=e.search,n.query=e.query,n.host=e. Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var gB=function(e,t){return gB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},gB(e,t)};function A$(e,t){gB(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function IIe(e){var t=typeof Symbol=="function"&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function TIe(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function KIe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(TIe(arguments[t]));return e}var c$=function(){function e(t,n){this.target=n,this.type=t}return e}(),PIe=function(e){A$(t,e);function t(n,r){var i=e.call(this,"error",r)||this;return i.message=n.message,i.error=n,i}return t}(c$),FIe=function(e){A$(t,e);function t(n,r,i){n===void 0&&(n=1e3),r===void 0&&(r="");var o=e.call(this,"close",i)||this;return o.wasClean=!0,o.code=n,o.reason=r,o}return t}(c$);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var DIe=function(){if(typeof WebSocket<"u")return WebSocket},LIe=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},G0={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},UIe=function(){function e(t,n,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){i._debug("open event");var a=i._options.minUptime,s=a===void 0?G0.minUptime:a;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},s),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(h){return i._ws.send(h)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(h){return i._callEventListener(o,h)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(a){return i._callEventListener(o,a)})},this._handleError=function(o){i._debug("error event",o.message),i._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(o),i._debug("exec error listeners"),i._listeners.error.forEach(function(a){return i._callEventListener(o,a)}),i._connect()},this._handleClose=function(o){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(o),i._listeners.close.forEach(function(a){return i._callEventListener(o,a)})},this._url=t,this._protocols=n,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(t){this._binaryType=t,this._ws&&(this._ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var t=this._messageQueue.reduce(function(n,r){return typeof r=="string"?n+=r.length:r instanceof Blob?n+=r.size:n+=r.byteLength,n},0);return t+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(t,n){if(t===void 0&&(t=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(t,n)},e.prototype.reconnect=function(t,n){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(t,n),this._connect())},e.prototype.send=function(t){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",t),this._ws.send(t);else{var n=this._options.maxEnqueuedMessages,r=n===void 0?G0.maxEnqueuedMessages:n;this._messageQueue.length<r&&(this._debug("enqueue",t),this._messageQueue.push(t))}},e.prototype.addEventListener=function(t,n){this._listeners[t]&&this._listeners[t].push(n)},e.prototype.dispatchEvent=function(t){var n,r,i=this._listeners[t.type];if(i)try{for(var o=IIe(i),a=o.next();!a.done;a=o.next()){var s=a.value;this._callEventListener(t,s)}}catch(h){n={error:h}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0},e.prototype.removeEventListeneLine truncated
//# sourceMappingURL=index-BYSOK7KO.js.map
+833
View File
@@ -0,0 +1,833 @@
function __vite__mapDeps(indexes) {
if (!__vite__mapDeps.viteFileDeps) {
__vite__mapDeps.viteFileDeps = []
}
return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
var Gq=Object.defineProperty;var $q=(n,e,t)=>e in n?Gq(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var sn=(n,e,t)=>($q(n,typeof e!="symbol"?e+"":e,t),t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.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 a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).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 Dh=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function ma(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function QB(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var rF={exports:{}},P5={},iF={exports:{}},Bo={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Bb=Symbol.for("react.element"),Qq=Symbol.for("react.portal"),Yq=Symbol.for("react.fragment"),qq=Symbol.for("react.strict_mode"),Vq=Symbol.for("react.profiler"),Hq=Symbol.for("react.provider"),Zq=Symbol.for("react.context"),Xq=Symbol.for("react.forward_ref"),Jq=Symbol.for("react.suspense"),eV=Symbol.for("react.memo"),tV=Symbol.for("react.lazy"),zk=Symbol.iterator;function nV(n){return n===null||typeof n!="object"?null:(n=zk&&n[zk]||n["@@iterator"],typeof n=="function"?n:null)}var oF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aF=Object.assign,sF={};function xv(n,e,t){this.props=n,this.context=e,this.refs=sF,this.updater=t||oF}xv.prototype.isReactComponent={};xv.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};xv.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function lF(){}lF.prototype=xv.prototype;function YB(n,e,t){this.props=n,this.context=e,this.refs=sF,this.updater=t||oF}var qB=YB.prototype=new lF;qB.constructor=YB;aF(qB,xv.prototype);qB.isPureReactComponent=!0;var jk=Array.isArray,uF=Object.prototype.hasOwnProperty,VB={current:null},AF={key:!0,ref:!0,__self:!0,__source:!0};function cF(n,e,t){var r,i={},o=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(o=""+e.key),e)uF.call(e,r)&&!AF.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=t;else if(1<s){for(var d=Array(s),f=0;f<s;f++)d[f]=arguments[f+2];i.children=d}if(n&&n.defaultProps)for(r in s=n.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Bb,type:n,key:o,ref:a,props:i,_owner:VB.current}}function rV(n,e){return{$$typeof:Bb,type:n.type,key:e,ref:n.ref,props:n.props,_owner:n._owner}}function HB(n){return typeof n=="object"&&n!==null&&n.$$typeof===Bb}function iV(n){var e={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(t){return e[t]})}var Nk=/\/+/g;function $M(n,e){return typeof n=="object"&&n!==null&&n.key!=null?iV(""+n.key):e.toString(36)}function i3(n,e,t,r,i){var o=typeof n;(o==="undefined"||o==="boolean")&&(n=null);var a=!1;if(n===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(n.$$typeof){case Bb:case Qq:a=!0}}if(a)return a=n,i=i(a),n=r===""?"."+$M(a,0):r,jk(i)?(t="",n!=null&&(t=n.replace(Nk,"$&/")+"/"),i3(i,e,t,"",function(f){return f})):i!=null&&(HB(i)&&(i=rV(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Nk,"$&/")+"/")+n)),e.push(i)),1;if(a=0,r=r===""?".":r+":",jk(n))for(var s=0;s<n.length;s++){o=n[s];var d=r+$M(o,s);a+=i3(o,e,t,d,i)}else if(d=nV(n),typeof d=="function")for(n=d.call(n),s=0;!(o=n.next()).done;)o=o.value,d=r+$M(o,s++),a+=i3(o,e,t,d,i);else if(o==="object")throw e=String(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function t2(n,e,t){if(n==null)return n;var r=[],i=0;return i3(n,r,"","",function(o){return e.call(t,o,i++)}),r}function oV(n){if(n._status===-1){var e=n._result;e=e(),e.then(function(t){(n._status===0||n._status===-1)&&(n._status=1,n._result=t)},function(t){(n._status===0||n._status===-1)&&(n._status=2,n._result=t)}),n._status===-1&&(n._status=0,n._result=e)}if(n._status===1)return n._result.default;throw n._result}var $A={current:null},o3={transition:null},aV={ReactCurrentDispatcher:$A,ReactCurrentBatchConfig:o3,ReactCurrentOwner:VB};Bo.Children={map:t2,forEach:function(n,e,t){t2(n,function(){e.apply(this,arguments)},t)},count:function(n){var e=0;return t2(n,function(){e++}),e},toArray:function(n){return t2(n,function(e){return e})||[]},only:function(n){if(!HB(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Bo.Component=xv;Bo.Fragment=Yq;Bo.Profiler=Vq;Bo.PureComponent=YB;Bo.StrictMode=qq;Bo.Suspense=Jq;Bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=aV;Bo.cloneElement=function(n,e,t){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var r=aF({},n.props),i=n.key,o=n.ref,a=n._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,a=VB.current),e.key!==void 0&&(i=""+e.key),n.type&&n.type.defaultProps)var s=n.type.defaultProps;for(d in e)uF.call(e,d)&&!AF.hasOwnProperty(d)&&(r[d]=e[d]===void 0&&s!==void 0?s[d]:e[d])}var d=arguments.length-2;if(d===1)r.children=t;else if(1<d){s=Array(d);for(var f=0;f<d;f++)s[f]=arguments[f+2];r.children=s}return{$$typeof:Bb,type:n.type,key:i,ref:o,props:r,_owner:a}};Bo.createContext=function(n){return n={$$typeof:Zq,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:Hq,_conLine truncated
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var sV=Wn,lV=Symbol.for("react.element"),uV=Symbol.for("react.fragment"),AV=Object.prototype.hasOwnProperty,cV=sV.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dV={key:!0,ref:!0,__self:!0,__source:!0};function dF(n,e,t){var r,i={},o=null,a=null;t!==void 0&&(o=""+t),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)AV.call(e,r)&&!dV.hasOwnProperty(r)&&(i[r]=e[r]);if(n&&n.defaultProps)for(r in e=n.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:lV,type:n,key:o,ref:a,props:i,_owner:cV.current}}P5.Fragment=uV;P5.jsx=dF;P5.jsxs=dF;rF.exports=P5;var G=rF.exports,hF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},VE=Mn.createContext&&Mn.createContext(hF),hV=["attr","size","title"];function fV(n,e){if(n==null)return{};var t=pV(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function pV(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function T3(){return T3=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},T3.apply(this,arguments)}function Wk(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function K3(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Wk(Object(t),!0).forEach(function(r){mV(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Wk(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function mV(n,e,t){return e=gV(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function gV(n){var e=yV(n,"string");return typeof e=="symbol"?e:String(e)}function yV(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function fF(n){return n&&n.map((e,t)=>Mn.createElement(e.tag,K3({key:t},e.attr),fF(e.child)))}function Xs(n){return e=>Mn.createElement(vV,T3({attr:K3({},n.attr)},e),fF(n.child))}function vV(n){var e=t=>{var{attr:r,size:i,title:o}=n,a=fV(n,hV),s=i||t.size||"1em",d;return t.className&&(d=t.className),n.className&&(d=(d?d+" ":"")+n.className),Mn.createElement("svg",T3({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:d,style:K3(K3({color:n.color||t.color},t.style),n.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Mn.createElement("title",null,o),n.children)};return VE!==void 0?Mn.createElement(VE.Consumer,null,t=>e(t)):e(hF)}var pF={exports:{}},od={},mF={exports:{}},gF={};/**
* @license React
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(n){function e(st,ft){var Re=st.length;st.push(ft);e:for(;0<Re;){var Ve=Re-1>>>1,Xe=st[Ve];if(0<i(Xe,ft))st[Ve]=ft,st[Re]=Xe,Re=Ve;else break e}}function t(st){return st.length===0?null:st[0]}function r(st){if(st.length===0)return null;var ft=st[0],Re=st.pop();if(Re!==ft){st[0]=Re;e:for(var Ve=0,Xe=st.length,Jt=Xe>>>1;Ve<Jt;){var Ht=2*(Ve+1)-1,bt=st[Ht],Qt=Ht+1,Yt=st[Qt];if(0>i(bt,Re))Qt<Xe&&0>i(Yt,bt)?(st[Ve]=Yt,st[Qt]=Re,Ve=Qt):(st[Ve]=bt,st[Ht]=Re,Ve=Ht);else if(Qt<Xe&&0>i(Yt,Re))st[Ve]=Yt,st[Qt]=Re,Ve=Qt;else break e}}return ft}function i(st,ft){var Re=st.sortIndex-ft.sortIndex;return Re!==0?Re:st.id-ft.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();n.unstable_now=function(){return a.now()-s}}var d=[],f=[],C=1,O=null,E=3,P=!1,L=!1,$=!1,H=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(st){for(var ft=t(f);ft!==null;){if(ft.callback===null)r(f);else if(ft.startTime<=st)r(f),ft.sortIndex=ft.expirationTime,e(d,ft);else break;ft=t(f)}}function ae(st){if($=!1,Z(st),!L)if(t(d)!==null)L=!0,gt(pe);else{var ft=t(f);ft!==null&&yt(ae,ft.startTime-st)}}function pe(st,ft){L=!1,$&&($=!1,Q(oe),oe=-1),P=!0;var Re=E;try{for(Z(ft),O=t(d);O!==null&&(!(O.expirationTime>ft)||st&&!Te());){var Ve=O.callback;if(typeof Ve=="function"){O.callback=null,E=O.priorityLevel;var Xe=Ve(O.expirationTime<=ft);ft=n.unstable_now(),typeof Xe=="function"?O.callback=Xe:O===t(d)&&r(d),Z(ft)}else r(d);O=t(d)}if(O!==null)var Jt=!0;else{var Ht=t(f);Ht!==null&&yt(ae,Ht.startTime-ft),Jt=!1}return Jt}finally{O=null,E=Re,P=!1}}var fe=!1,X=null,oe=-1,Ce=5,we=-1;function Te(){return!(n.unstable_now()-we<Ce)}function Pe(){if(X!==null){var st=n.unstable_now();we=st;var ft=!0;try{ft=X(!0,st)}finally{ft?he():(fe=!1,X=null)}}else fe=!1}var he;if(typeof N=="function")he=function(){N(Pe)};else if(typeof MessageChannel<"u"){var $e=new MessageChannel,ye=$e.port2;$e.port1.onmessage=Pe,he=function(){ye.postMessage(null)}}else he=function(){H(Pe,0)};function gt(st){X=st,fe||(fe=!0,he())}function yt(st,ft){oe=H(function(){st(n.unstable_now())},ft)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(st){st.callback=null},n.unstable_continueExecution=function(){L||P||(L=!0,gt(pe))},n.unstable_forceFrameRate=function(st){0>st||125<st?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ce=0<st?Math.floor(1e3/st):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_getFirstCallbackNode=function(){return t(d)},n.unstable_next=function(st){switch(E){case 1:case 2:case 3:var ft=3;break;default:ft=E}var Re=E;E=ft;try{return st()}finally{E=Re}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(st,ft){switch(st){case 1:case 2:case 3:case 4:case 5:break;default:st=3}var Re=E;E=st;try{return ft()}finally{E=Re}},n.unstable_scheduleCallback=function(st,ft,Re){var Ve=n.unstable_now();switch(typeof Re=="object"&&Re!==null?(Re=Re.delay,Re=typeof Re=="number"&&0<Re?Ve+Re:Ve):Re=Ve,st){case 1:var Xe=-1;break;case 2:Xe=250;break;case 5:Xe=1073741823;break;case 4:Xe=1e4;break;default:Xe=5e3}return Xe=Re+Xe,st={id:C++,callback:ft,priorityLevel:st,startTime:Re,expirationTime:Xe,sortIndex:-1},Re>Ve?(st.sortIndex=Re,e(f,st),t(d)===null&&st===t(f)&&($?(Q(oe),oe=-1):$=!0,yt(ae,Re-Ve))):(st.sortIndex=Xe,e(d,st),L||P||(L=!0,gt(pe))),st},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(st){var ft=E;return function(){var Re=E;E=ft;try{return st.apply(this,arguments)}finally{E=Re}}}})(gF);mF.exports=gF;var CV=mF.exports;/**
* @license React
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var yF=Wn,id=CV;function Yn(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+n+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vF=new Set,L_={};function N1(n,e){iv(n,e),iv(n+"Capture",e)}function iv(n,e){for(L_[n]=e,n=0;n<e.length;n++)vF.add(e[n])}var Yp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HE=Object.prototype.hasOwnProperty,_V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Gk={},$k={};function bV(n){return HE.call($k,n)?!0:HE.call(Gk,n)?!1:_V.test(n)?$k[n]=!0:(Gk[n]=!0,!1)}function xV(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function wV(n,e,t,r){if(e===null||typeof e>"u"||xV(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function QA(n,e,t,r,i,o,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var Nu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Nu[n]=new QA(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Nu[e]=new QA(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Nu[n]=new QA(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Nu[n]=new QA(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Nu[n]=new QA(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Nu[n]=new QA(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Nu[n]=new QA(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Nu[n]=new QA(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Nu[n]=new QA(n,5,!1,n.toLowerCase(),null,!1,!1)});var ZB=/[\-:]([a-z])/g;function XB(n){return n[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(n){var e=n.replace(ZB,XB);Nu[e]=new QA(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(ZB,XB);Nu[e]=new QA(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(ZB,XB);Nu[e]=new QA(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Nu[n]=new QA(n,1,!1,n.toLowerCase(),null,!1,!1)});Nu.xlinkHref=new QA("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Nu[n]=new QA(n,1,!1,n.toLowerCase(),null,!0,!0)});function JB(n,e,t,r){var i=Nu.hasOwnProperty(e)?Nu[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!= Line truncated
`+QM+n}var YM=!1;function qM(n,e){if(!n||YM)return"";YM=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(f){var r=f}Reflect.construct(n,[],e)}else{try{e.call()}catch(f){r=f}n.call(e.prototype)}else{try{throw Error()}catch(f){r=f}n()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
`),o=r.stack.split(`
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var d=`
`+i[a].replace(" at new "," at ");return n.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",n.displayName)),d}while(1<=a&&0<=s);break}}}finally{YM=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?$C(n):""}function MV(n){switch(n.tag){case 5:return $C(n.type);case 16:return $C("Lazy");case 13:return $C("Suspense");case 19:return $C("SuspenseList");case 0:case 2:case 15:return n=qM(n.type,!1),n;case 11:return n=qM(n.type.render,!1),n;case 1:return n=qM(n.type,!0),n;default:return""}}function e6(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case iy:return"Fragment";case ry:return"Portal";case ZE:return"Profiler";case e7:return"StrictMode";case XE:return"Suspense";case JE:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case _F:return(n.displayName||"Context")+".Consumer";case CF:return(n._context.displayName||"Context")+".Provider";case t7:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case n7:return e=n.displayName||null,e!==null?e:e6(n.type)||"Memo";case Bm:e=n._payload,n=n._init;try{return e6(n(e))}catch{}}return null}function SV(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return e6(e);case 8:return e===e7?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function s0(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function xF(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function EV(n){var e=xF(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function r2(n){n._valueTracker||(n._valueTracker=EV(n))}function wF(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=xF(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function P3(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function t6(n,e){var t=e.checked;return Zs({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function Yk(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=s0(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function MF(n,e){e=e.checked,e!=null&&JB(n,"checked",e,!1)}function n6(n,e){MF(n,e);var t=s0(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?r6(n,e.type,t):e.hasOwnProperty("defaultValue")&&r6(n,e.type,s0(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function qk(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function r6(n,e,t){(e!=="number"||P3(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var QC=Array.isArray;function Oy(n,e,t,r){if(n=n.options,e){e={};for(var i=0;i<t.length;i++)e["$"+t[i]]=!0;for(t=0;t<n.length;t++)i=e.hasOwnProperty("$"+n[t].value),n[t].selected!==i&&(n[t].selected=i),i&&r&&(n[t].defaultSelected=!0)}else{for(t=""+s0(t),e=null,i=0;i<n.length;i++){if(n[i].value===t){n[i].selected=!0,r&&(n[i].defaultSelected=!0);return}e!==null||n[i].disabled||(e=n[i])}e!==null&&(e.selected=!0)}}function i6(n,e){if(e.dan Line truncated
`).replace(FH,"")}function c2(n,e,t){if(e=g9(e),g9(n)!==e&&t)throw Error(Yn(425))}function N3(){}var g6=null,y6=null;function v6(n,e){return n==="textarea"||n==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var C6=typeof setTimeout=="function"?setTimeout:void 0,UH=typeof clearTimeout=="function"?clearTimeout:void 0,y9=typeof Promise=="function"?Promise:void 0,RH=typeof queueMicrotask=="function"?queueMicrotask:typeof y9<"u"?function(n){return y9.resolve(null).then(n).catch(zH)}:C6;function zH(n){setTimeout(function(){throw n})}function sS(n,e){var t=e,r=0;do{var i=t.nextSibling;if(n.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(r===0){n.removeChild(i),z_(e);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=i}while(t);z_(e)}function Vm(n){for(;n!=null;n=n.nextSibling){var e=n.nodeType;if(e===1||e===3)break;if(e===8){if(e=n.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return n}function v9(n){n=n.previousSibling;for(var e=0;n;){if(n.nodeType===8){var t=n.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return n;e--}else t==="/$"&&e++}n=n.previousSibling}return null}var Mv=Math.random().toString(36).slice(2),Tf="__reactFiber$"+Mv,$_="__reactProps$"+Mv,qp="__reactContainer$"+Mv,_6="__reactEvents$"+Mv,jH="__reactListeners$"+Mv,NH="__reactHandles$"+Mv;function l1(n){var e=n[Tf];if(e)return e;for(var t=n.parentNode;t;){if(e=t[qp]||t[Tf]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(n=v9(n);n!==null;){if(t=n[Tf])return t;n=v9(n)}return e}n=t,t=n.parentNode}return null}function Tb(n){return n=n[Tf]||n[qp],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function ly(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(Yn(33))}function R5(n){return n[$_]||null}var b6=[],uy=-1;function h0(n){return{current:n}}function _s(n){0>uy||(n.current=b6[uy],b6[uy]=null,uy--)}function ns(n,e){uy++,b6[uy]=n.current,n.current=e}var l0={},gA=h0(l0),wc=h0(!1),E1=l0;function ov(n,e){var t=n.type.contextTypes;if(!t)return l0;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in t)i[o]=e[o];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=i),i}function Mc(n){return n=n.childContextTypes,n!=null}function W3(){_s(wc),_s(gA)}function C9(n,e,t){if(gA.current!==l0)throw Error(Yn(168));ns(gA,e),ns(wc,t)}function hU(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Yn(108,SV(n)||"Unknown",i));return Zs({},t,r)}function G3(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||l0,E1=gA.current,ns(gA,n),ns(wc,wc.current),!0}function _9(n,e,t){var r=n.stateNode;if(!r)throw Error(Yn(169));t?(n=hU(n,e,E1),r.__reactInternalMemoizedMergedChildContext=n,_s(wc),_s(gA),ns(gA,n)):_s(wc),ns(wc,t)}var Kp=null,z5=!1,lS=!1;function fU(n){Kp===null?Kp=[n]:Kp.push(n)}function WH(n){z5=!0,fU(n)}function f0(){if(!lS&&Kp!==null){lS=!0;var n=0,e=Ba;try{var t=Kp;for(Ba=1;n<t.length;n++){var r=t[n];do r=r(!0);while(r!==null)}Kp=null,z5=!1}catch(i){throw Kp!==null&&(Kp=Kp.slice(n+1)),RF(i7,f0),i}finally{Ba=e,lS=!1}}return null}var Ay=[],cy=0,$3=null,Q3=0,Pd=[],Ld=0,O1=null,Rp=1,zp="";function V0(n,e){Ay[cy++]=Q3,Ay[cy++]=$3,$3=n,Q3=e}function pU(n,e,t){Pd[Ld++]=Rp,Pd[Ld++]=zp,Pd[Ld++]=O1,O1=n;var r=Rp;n=zp;var i=32-Th(r)-1;r&=~(1<<i),t+=1;var o=32-Th(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Rp=1<<32-Th(e)+i|t<<i|r,zp=o+n}else Rp=1<<o|t<<i|r,zp=n}function h7(n){n.return!==null&&(V0(n,1),pU(n,1,0))}function f7(n){for(;n===$3;)$3=Ay[--cy],Ay[cy]=null,Q3=Ay[--cy],Ay[cy]=null;for(;n===O1;)O1=Pd[--Ld],Pd[Ld]=null,zp=Pd[--Ld],Pd[Ld]=null,Rp=Pd[--Ld],Pd[Ld]=null}var td=null,Xc=null,Ks=!1,Ih=null;function mU(n,e){var t=Fd(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=n,e=n.deletions,e===null?(n.deletions=[t],n.flags|=16):e.push(t)}function b9(n,e){switch(n.tag){case 5:var t=n.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(n.stateNode=e,td=n,Xc=Vm(e.firstChild),!0):!1;case 6:return e=n.pendingProps===""||e.nodeType!==3?null:e,e!==null?(n.stateNode=e,td=n,Xc=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=O1!==null?{id:Rp,overflow:zp}:null,n.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=Fd(18,null,null,0),t.stateNode=e,t.return=n,n.child=t,td=n,Xc=null,!0):!1;default:return!1}}function x6(n){return(n.mode&1)!==0&&(n.flags&128)===0}function w6(n){if(Ks){var e=Xc;if(e){var t=e;if(!b9(n,e)){if(x6(n))throw Error(Yn(418));e=Vm(t.nextSibling);var r=td;e&&b9(n,e)?mU(r,t):(n.flags=n.flags&-4097|2,Ks=!1,td=n)}}else{if(x6(n))throw Error(Yn(418));n.flags=n.flags&-4097|2,Ks=!1,td=n}}}function x9(n){ Line truncated
Error generating stack: `+o.message+`
`+o.stack}return{value:n,source:e,stack:i,digest:null}}function hS(n,e,t){return{value:n,source:null,stack:t??null,digest:e??null}}function O6(n,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var XH=typeof WeakMap=="function"?WeakMap:Map;function GU(n,e,t){t=jp(-1,t),t.tag=3,t.payload={element:null};var r=e.value;return t.callback=function(){e4||(e4=!0,U6=r),O6(n,e)},t}function $U(n,e,t){t=jp(-1,t),t.tag=3;var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;t.payload=function(){return r(i)},t.callback=function(){O6(n,e)}}var o=n.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){O6(n,e),typeof r!="function"&&(Zm===null?Zm=new Set([this]):Zm.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}function k9(n,e,t){var r=n.pingCache;if(r===null){r=n.pingCache=new XH;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(t)||(i.add(t),n=dZ.bind(null,n,e,t),e.then(n,n))}function T9(n){do{var e;if((e=n.tag===13)&&(e=n.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return n;n=n.return}while(n!==null);return null}function K9(n,e,t,r,i){return n.mode&1?(n.flags|=65536,n.lanes=i,n):(n===e?n.flags|=65536:(n.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=jp(-1,1),e.tag=2,Hm(t,e,1))),t.lanes|=1),n)}var JH=Zp.ReactCurrentOwner,xc=!1;function RA(n,e,t,r){e.child=n===null?xU(e,null,t,r):sv(e,n.child,t,r)}function P9(n,e,t,r,i){t=t.render;var o=e.ref;return Ty(e,i),r=M7(n,e,t,r,o,i),t=S7(),n!==null&&!xc?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,Hp(n,e,i)):(Ks&&t&&h7(e),e.flags|=1,RA(n,e,r,i),e.child)}function L9(n,e,t,r,i){if(n===null){var o=t.type;return typeof o=="function"&&!D7(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=o,QU(n,e,o,r,i)):(n=p3(t.type,null,r,e,e.mode,i),n.ref=e.ref,n.return=e,e.child=n)}if(o=n.child,!(n.lanes&i)){var a=o.memoizedProps;if(t=t.compare,t=t!==null?t:N_,t(a,r)&&n.ref===e.ref)return Hp(n,e,i)}return e.flags|=1,n=Jm(o,r),n.ref=e.ref,n.return=e,e.child=n}function QU(n,e,t,r,i){if(n!==null){var o=n.memoizedProps;if(N_(o,r)&&n.ref===e.ref)if(xc=!1,e.pendingProps=r=o,(n.lanes&i)!==0)n.flags&131072&&(xc=!0);else return e.lanes=n.lanes,Hp(n,e,i)}return B6(n,e,t,r,i)}function YU(n,e,t){var r=e.pendingProps,i=r.children,o=n!==null?n.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ns(fy,Yc),Yc|=t;else{if(!(t&1073741824))return n=o!==null?o.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:n,cachePool:null,transitions:null},e.updateQueue=null,ns(fy,Yc),Yc|=n,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,ns(fy,Yc),Yc|=r}else o!==null?(r=o.baseLanes|t,e.memoizedState=null):r=t,ns(fy,Yc),Yc|=r;return RA(n,e,i,t),e.child}function qU(n,e){var t=e.ref;(n===null&&t!==null||n!==null&&n.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function B6(n,e,t,r,i){var o=Mc(t)?E1:gA.current;return o=ov(e,o),Ty(e,i),t=M7(n,e,t,r,o,i),r=S7(),n!==null&&!xc?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,Hp(n,e,i)):(Ks&&r&&h7(e),e.flags|=1,RA(n,e,t,i),e.child)}function D9(n,e,t,r,i){if(Mc(t)){var o=!0;G3(e)}else o=!1;if(Ty(e,i),e.stateNode===null)d3(n,e),_U(e,t,r),E6(e,t,r,i),r=!0;else if(n===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var d=a.context,f=t.contextType;typeof f=="object"&&f!==null?f=Wd(f):(f=Mc(t)?E1:gA.current,f=ov(e,f));var C=t.getDerivedStateFromProps,O=typeof C=="function"||typeof a.getSnapshotBeforeUpdate=="function";O||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||d!==f)&&E9(e,a,r,f),Im=!1;var E=e.memoizedState;a.state=E,V3(e,r,a,i),d=e.memoizedState,s!==r||E!==d||wc.current||Im?(typeof C=="function"&&(S6(e,t,C,r),d=e.memoizedState),(s=Im||S9(e,t,s,r,E,d,f))?(O||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=f,r=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,vU(n,e),s=e.memoizedProps,f=e.type===e.elementType?s:Mh(e.type,s),a.props=f,O=e.pendingProps,E=a.context,d=t.contextType,typeof d=="object"&&d!==null?d=Wd(d):(d=Mc(t)?E1:gA.current,d=ov(e,d));var P=t.getDerivedStateFromProps;(C=typeof P=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==O||E!==d)&&E9(e,a,r,d),Im=!1,E=e.memoizedState,a.state=E,V3(e,r,a,i);var L=e.memoizedS Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(n){const e=Z5,t=X5,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=N,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 Ee=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(Ee,ee),Ee.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(Ee){if(Ee>i)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');const ee=new Uint8Array(Ee);return Object.setPrototypeOf(ee,s.prototype),ee}function s(Ee,ee,V){if(typeof Ee=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Ee)}return d(Ee,ee,V)}s.poolSize=8192;function d(Ee,ee,V){if(typeof Ee=="string")return E(Ee,ee);if(ArrayBuffer.isView(Ee))return L(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(dr(Ee,ArrayBuffer)||Ee&&dr(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(dr(Ee,SharedArrayBuffer)||Ee&&dr(Ee.buffer,SharedArrayBuffer)))return $(Ee,ee,V);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ke=Ee.valueOf&&Ee.valueOf();if(Ke!=null&&Ke!==Ee)return s.from(Ke,ee,V);const At=H(Ee);if(At)return At;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return s.from(Ee[Symbol.toPrimitive]("string"),ee,V);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}s.from=function(Ee,ee,V){return d(Ee,ee,V)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function f(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function C(Ee,ee,V){return f(Ee),Ee<=0?a(Ee):ee!==void 0?typeof V=="string"?a(Ee).fill(ee,V):a(Ee).fill(ee):a(Ee)}s.alloc=function(Ee,ee,V){return C(Ee,ee,V)};function O(Ee){return f(Ee),a(Ee<0?0:Q(Ee)|0)}s.allocUnsafe=function(Ee){return O(Ee)},s.allocUnsafeSlow=function(Ee){return O(Ee)};function E(Ee,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const V=Z(Ee,ee)|0;let Ke=a(V);const At=Ke.write(Ee,ee);return At!==V&&(Ke=Ke.slice(0,At)),Ke}function P(Ee){const ee=Ee.length<0?0:Q(Ee.length)|0,V=a(ee);for(let Ke=0;Ke<ee;Ke+=1)V[Ke]=Ee[Ke]&255;return V}function L(Ee){if(dr(Ee,Uint8Array)){const ee=new Uint8Array(Ee);return $(ee.buffer,ee.byteOffset,ee.byteLength)}return P(Ee)}function $(Ee,ee,V){if(ee<0||Ee.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<ee+(V||0))throw new RangeError('"length" is outside of buffer bounds');let Ke;return ee===void 0&&V===void 0?Ke=new Uint8Array(Ee):V===void 0?Ke=new Uint8Array(Ee,ee):Ke=new Uint8Array(Ee,ee,V),Object.setPrototypeOf(Ke,s.prototype),Ke}function H(Ee){if(s.isBuffer(Ee)){const ee=Q(Ee.length)|0,V=a(ee);return V.length===0||Ee.copy(V,0,0,ee),V}if(Ee.length!==void 0)return typeof Ee.length!="number"||Sr(Ee.length)?a(0):P(Ee);if(Ee.type==="Buffer"&&Array.isArray(Ee.data))return P(Ee.data)}function Q(Ee){if(Ee>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ee|0}function N(Ee){return+Ee!=Ee&&(Ee=0),s.alloc(+Ee)}s.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==s.prototype},s.compare=function(ee,V){if(dr(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),dr(V,Uint8Array)&&(V=s.from(V,V.offset,V.byteLength)),!s.isBuffer(ee)||!s.isBuffer(V))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===V)return 0;let Ke=ee.length,At=V.length;for(let Bt=0,kt=Math.min(Ke,At);Bt<kt;++Bt)if(ee[Bt]!==V[Bt]){Ke=ee[Bt],At=V[Bt];break}return Ke<At?-1:At<Ke?1:0},s.isEncoding=function(ee){switch(String(ee).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(ee,V){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return s.alloc(0);let Ke;if(V===void 0)for(V=0,Ke=0;Ke<eeLine truncated
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/A4.exports;(function(n,e){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,C="__lodash_placeholder__",O=1,E=2,P=4,L=1,$=2,H=1,Q=2,N=4,Z=8,ae=16,pe=32,fe=64,X=128,oe=256,Ce=512,we=30,Te="...",Pe=800,he=16,$e=1,ye=2,gt=3,yt=1/0,st=9007199254740991,ft=17976931348623157e292,Re=NaN,Ve=4294967295,Xe=Ve-1,Jt=Ve>>>1,Ht=[["ary",X],["bind",H],["bindKey",Q],["curry",Z],["curryRight",ae],["flip",Ce],["partial",pe],["partialRight",fe],["rearg",oe]],bt="[object Arguments]",Qt="[object Array]",Yt="[object AsyncFunction]",ke="[object Boolean]",ge="[object Date]",Se="[object DOMException]",ze="[object Error]",it="[object Function]",ot="[object GeneratorFunction]",St="[object Map]",Rt="[object Number]",zt="[object Null]",mt="[object Object]",or="[object Promise]",gn="[object Proxy]",yn="[object RegExp]",tr="[object Set]",dr="[object String]",Sr="[object Symbol]",Nr="[object Undefined]",yr="[object WeakMap]",_i="[object WeakSet]",Ee="[object ArrayBuffer]",ee="[object DataView]",V="[object Float32Array]",Ke="[object Float64Array]",At="[object Int8Array]",Bt="[object Int16Array]",kt="[object Int32Array]",Dt="[object Uint8Array]",fn="[object Uint8ClampedArray]",Pn="[object Uint16Array]",On="[object Uint32Array]",g=/\b__p \+= '';/g,Kt=/\b(__p \+=) '' \+/g,Pr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,ce=RegExp(rr.source),xe=RegExp(De.source),Ie=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,tn=RegExp(Mt.source),qt=/^\s+/,en=/\s/,Fn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bn=/\{\n\/\* \[wrapped with (.+)\] \*/,Hn=/,? & /,Or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cr=/[()=,{}\[\]\/\s]/,Qr=/\\(\\)?/g,Br=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Fr=/\w*$/,ar=/^[-+]0x[0-9a-f]+$/i,di=/^0b[01]+$/i,Ui=/^\[object .+?Constructor\]$/,to=/^0o[0-7]+$/i,ho=/^(?:0|[1-9]\d*)$/,si=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fo=/($^)/,Na=/['\n\r\u2028\u2029\\]/g,Ia="\\ud800-\\udfff",Ei="\\u0300-\\u036f",os="\\ufe20-\\ufe2f",yi="\\u20d0-\\u20ff",Gn=Ei+os+yi,ro="\\u2700-\\u27bf",Co="a-z\\xdf-\\xf6\\xf8-\\xff",Ri="\\xac\\xb1\\xd7\\xf7",_e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Je="\\u2000-\\u206f",Zt=" \\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",ln="A-Z\\xc0-\\xd6\\xd8-\\xde",Ft="\\ufe0e\\ufe0f",wn=Ri+_e+Je+Zt,hr="['’]",ii="["+Ia+"]",li="["+wn+"]",Jo="["+Gn+"]",Ka="\\d+",Lr="["+ro+"]",Wa="["+Co+"]",vi="[^"+Ia+wn+Ka+ro+Co+ln+"]",Ga="\\ud83c[\\udffb-\\udfff]",ea="(?:"+Jo+"|"+Ga+")",xu="[^"+Ia+"]",as="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",na="["+ln+"]",bs="\\u200d",wu="(?:"+Wa+"|"+vi+")",ga="(?:"+na+"|"+vi+")",_A="(?:"+hr+"(?:d|ll|m|re|s|t|ve))?",Wu="(?:"+hr+"(?:D|LL|M|RE|S|T|VE))?",bA=ea+"?",Mu="["+Ft+"]?",Gu="(?:"+bs+"(?:"+[xu,as,ta].join("|")+")"+Mu+bA+")*",Wo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",xs="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nu=Mu+bA+Gu,ss="(?:"+[Lr,as,ta].join("|")+")"+nu,ll="(?:"+[xu+Jo+"?",Jo,as,ta,ii].join("|")+")",Go=RegExp(hr,"g"),Su=RegExp(Jo,"g"),ul=RegExp(Ga+"(?="+Ga+")|"+ll+nu,"g"),wl=RegExp([na+"?"+Wa+"+"+_A+"(?="+[li,na,"$"].join("|")+")",ga+"+"+Wu+"(?="+[li,na+wu,"$"].join("|")+")",na+"?"+wu+"+"+_A,na+"+"+Wu,xs,Wo,Ka,ss].join("|"),"g"),ru=RegExp("["+bs+Ia+Gn+Ft+"]"),ua=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Al=["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"],xA=-1,vo={};vo[V]=vo[Ke]=vo[At]=vo[Bt]=vo[kt]=vo[Dt]=vo[fn]=vo[Pn]=vo[On]=!0,vo[bt]=vo[Qt]=vo[Ee]=vo[ke]=vo[ee]=vo[ge]=vo[ze]=vo[it]=vo[St]=vo[Rt]=vo[mt]=vo[yn]=vo[tr]=vo[dr]=vo[yr]=!1;var io={};io[bt]=io[Qt]=io[Ee]=io[ee]=io[ke]=io[ge]=io[V]=io[Ke]=io[At]=io[Bt]=io[kt]=io[St]=io[Rt]=io[mt]=io[yn]=io[tr]=io[dr]=io[Sr]=io[Dt]=io[fn]=io[Pn]=io[On]=!0,io[ze]=io[it]=io[yr]=!1;var z={À:"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",ćLine truncated
/* [wrapped with `+S+`] */
`)}function p(v){return re(v)||J(v)||!!(np&&v&&v[np])}function x(v,S){var D=typeof v;return S=S??st,!!S&&(D=="number"||D!="symbol"&&ho.test(v))&&v>-1&&v%1==0&&v<S}function b(v,S,D){if(!xn(D))return!1;var te=typeof S;return(te=="number"?be(D)&&x(S,D.length):te=="string"&&S in D)?K(D[S],v):!1}function B(v,S){if(re(v))return!1;var D=typeof v;return D=="number"||D=="symbol"||D=="boolean"||v==null||Xo(v)?!0:pt.test(v)||!lt.test(v)||S!=null&&v in Ko(S)}function U(v){var S=typeof v;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?v!=="__proto__":v===null}function q(v){var S=hh(v),D=Fe[S];if(typeof D!="function"||!(S in Yr.prototype))return!1;if(v===D)return!0;var te=zc(D);return!!te&&v===te[0]}function ne(v){return!!Qh&&Qh in v}var ue=qu?zn:GM;function ve(v){var S=v&&v.constructor,D=typeof S=="function"&&S.prototype||Qa;return v===D}function Qe(v){return v===v&&!xn(v)}function nt(v,S){return function(D){return D==null?!1:D[v]===S&&(S!==t||v in Ko(D))}}function Ot(v){var S=vm(v,function(te){return D.size===f&&D.clear(),te}),D=S.cache;return S}function Ct(v,S){var D=v[1],te=S[1],Me=D|te,We=Me<(H|Q|X),ut=te==X&&D==Z||te==X&&D==oe&&v[7].length<=S[8]||te==(X|oe)&&S[7].length<=S[8]&&D==Z;if(!(We||ut))return v;te&H&&(v[2]=S[2],Me|=D&H?0:N);var _t=S[3];if(_t){var Tt=v[3];v[3]=Tt?sh(Tt,_t,S[4]):_t,v[4]=Tt?Rl(v[3],C):S[4]}return _t=S[5],_t&&(Tt=v[5],v[5]=Tt?lf(Tt,_t,S[6]):_t,v[6]=Tt?Rl(v[5],C):S[6]),_t=S[7],_t&&(v[7]=_t),te&X&&(v[8]=v[8]==null?S[8]:ca(v[8],S[8])),v[9]==null&&(v[9]=S[9]),v[0]=S[0],v[1]=Me,v}function Nt(v){var S=[];if(v!=null)for(var D in Ko(v))S.push(D);return S}function cn(v){return lu.call(v)}function kn(v,S,D){return S=ao(S===t?v.length-1:S,0),function(){for(var te=arguments,Me=-1,We=ao(te.length-S,0),ut=jt(We);++Me<We;)ut[Me]=te[S+Me];Me=-1;for(var _t=jt(S+1);++Me<S;)_t[Me]=te[Me];return _t[S]=D(ut),ya(v,this,_t)}}function Vn(v,S){return S.length<2?v:Ss(v,Da(S,0,-1))}function bn(v,S){for(var D=v.length,te=ca(S.length,D),Me=el(v);te--;){var We=S[te];v[te]=x(We,D)?Me[We]:t}return v}function Rn(v,S){if(!(S==="constructor"&&typeof v[S]=="function")&&S!="__proto__")return v[S]}var lr=Ro(om),Tr=eA||function(v,S){return vr.setTimeout(v,S)},_r=Ro(tg);function fi(v,S,D){var te=S+"";return _r(v,A(te,cs(Ya(te),D)))}function Ro(v){var S=0,D=0;return function(){var te=xr(),Me=he-(te-D);if(D=te,Me>0){if(++S>=Pe)return arguments[0]}else S=0;return v.apply(t,arguments)}}function qa(v,S){var D=-1,te=v.length,Me=te-1;for(S=S===t?te:S;++D<S;){var We=rm(D,Me),ut=v[We];v[We]=v[D],v[D]=ut}return v.length=S,v}var wa=Ot(function(v){var S=[];return v.charCodeAt(0)===46&&S.push(""),v.replace(et,function(D,te,Me,We){S.push(Me?We.replace(Qr,"$1"):te||D)}),S});function Fa(v){if(typeof v=="string"||Xo(v))return v;var S=v+"";return S=="0"&&1/v==-yt?"-0":S}function As(v){if(v!=null){try{return ls.call(v)}catch{}try{return v+""}catch{}}return""}function cs(v,S){return ou(Ht,function(D){var te="_."+D[0];S&D[1]&&!ud(v,te)&&v.push(te)}),v.sort()}function El(v){if(v instanceof Yr)return v.clone();var S=new $i(v.__wrapped__,v.__chain__);return S.__actions__=el(v.__actions__),S.__index__=v.__index__,S.__values__=v.__values__,S}function tl(v,S,D){(D?b(v,S,D):S===t)?S=1:S=ao(Jr(S),0);var te=v==null?0:v.length;if(!te||S<1)return[];for(var Me=0,We=0,ut=jt(Mo(te/S));Me<te;)ut[We++]=Da(v,Me,Me+=S);return ut}function Bs(v){for(var S=-1,D=v==null?0:v.length,te=0,Me=[];++S<D;){var We=v[S];We&&(Me[te++]=We)}return Me}function ds(){var v=arguments.length;if(!v)return[];for(var S=jt(v-1),D=arguments[0],te=v;te--;)S[te-1]=arguments[te];return Qu(re(D)?el(D):[D],so(S,1))}var ha=Qi(function(v,S){return Be(v)?ei(v,so(S,1,Be,!0)):[]}),Is=Qi(function(v,S){var D=KA(S);return Be(D)&&(D=t),Be(v)?ei(v,so(S,1,Be,!0),Xr(D,2)):[]}),fh=Qi(function(v,S){var D=KA(S);return Be(D)&&(D=t),Be(v)?ei(v,so(S,1,Be,!0),t,D):[]});function dc(v,S,D){var te=v==null?0:v.length;return te?(S=D||S===t?1:Jr(S),Da(v,S<0?0:S,te)):[]}function js(v,S,D){var te=v==null?0:v.length;return te?(S=D||S===t?1:Jr(S),S=te-S,Da(v,0,S<0?0:S)):[]}function hc(v,S){return v&&v.length?_d(v,Xr(S,3),!0,!0):[]}function Ns(v,S){return v&&v.length?_d(v,Xr(S,3),!0):[]}function K0(v,S,D,te){var Me=v==null?0:v.length;return Me?(D&&typeof D!="number"&&b(v,S,D)&&(D=0,te=Me),La(v,S,D,te)):[]}function TA(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var Me=D==null?0:Jr(D);return Me<0&&(Me=ao(te+Me,0)),Ki(v,Xr(S,3),Me)}function Nc(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var Me=te-1;return D!==t&&(Me=Jr(D),Me=D<0?ao(te+Me,0):ca(Me,te-1)),Ki(v,Xr(S,3),Me,!0)}function Va(v){var S=v==null?0:v.length;return S?so(v,1):[]}function nl(v){var S=v==null?0:v.length;return S?so(v,yt):[]}function ph(v,S){var D=v==null?0:v.length;return D?(S=S===t?1:Jr(S),so(v,S)):[]}function fc(v){for(var S=-1,D=v==null?0:v.length,te={};++S<D;){var Me=v[S];te[Me[0]]=Me[1]}return te}function fm(v){return v&&v.length?v[0]:t}function P0(v,S,D){var te=v==null?0:v.length;if(!te)return-1;var Me=D==null?0:Jr(D);return Me<0&&(Me=ao( Line truncated
`;v.replace(pr,function(xi,bo,Lo,Gc,FA,$c){return Lo||(Lo=Gc),Tn+=v.slice(Cn,$c).replace(Na,wA),bo&&(_t=!0,Tn+=`' +
__e(`+bo+`) +
'`),FA&&(Tt=!0,Tn+=`';
`+FA+`;
__p += '`),Lo&&(Tn+=`' +
((__t = (`+Lo+`)) == null ? '' : __t) +
'`),Cn=$c+xi.length,xi}),Tn+=`';
`;var bi=Hi.call(S,"variable")&&S.variable;if(!bi)Tn=`with (obj) {
`+Tn+`
}
`;else if(cr.test(bi))throw new ui(s);Tn=(Tt?Tn.replace(g,""):Tn).replace(Kt,"$1").replace(Pr,"$1;"),Tn="function("+(bi||"obj")+`) {
`+(bi?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(_t?", __e = _.escape":"")+(Tt?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Tn+`return __p
}`;var lo=Fk(function(){return oo(We,Hr+"return "+Tn).apply(t,ut)});if(lo.source=Tn,rn(lo))throw lo;return lo}function ZY(v){return pi(v).toLowerCase()}function XY(v){return pi(v).toUpperCase()}function JY(v,S,D){if(v=pi(v),v&&(D||S===t))return HA(v);if(!v||!(S=Ku(S)))return v;var te=jl(v),Me=jl(S),We=Ul(te,Me),ut=Tc(te,Me)+1;return Rc(te,We,ut).join("")}function eq(v,S,D){if(v=pi(v),v&&(D||S===t))return v.slice(0,Zd(v)+1);if(!v||!(S=Ku(S)))return v;var te=jl(v),Me=Tc(te,jl(S))+1;return Rc(te,0,Me).join("")}function tq(v,S,D){if(v=pi(v),v&&(D||S===t))return v.replace(qt,"");if(!v||!(S=Ku(S)))return v;var te=jl(v),Me=Ul(te,jl(S));return Rc(te,Me).join("")}function nq(v,S){var D=we,te=Te;if(xn(S)){var Me="separator"in S?S.separator:Me;D="length"in S?Jr(S.length):D,te="omission"in S?Ku(S.omission):te}v=pi(v);var We=v.length;if(XA(v)){var ut=jl(v);We=ut.length}if(D>=We)return v;var _t=D-Bu(te);if(_t<1)return te;var Tt=ut?Rc(ut,0,_t).join(""):v.slice(0,_t);if(Me===t)return Tt+te;if(ut&&(_t+=Tt.length-_t),fu(Me)){if(v.slice(_t).search(Me)){var Cn,_n=Tt;for(Me.global||(Me=SA(Me.source,pi(Fr.exec(Me))+"g")),Me.lastIndex=0;Cn=Me.exec(_n);)var Tn=Cn.index;Tt=Tt.slice(0,Tn===t?_t:Tn)}}else if(v.indexOf(Ku(Me),_t)!=_t){var pr=Tt.lastIndexOf(Me);pr>-1&&(Tt=Tt.slice(0,pr))}return Tt+te}function rq(v){return v=pi(v),v&&ce.test(v)?v.replace(rr,Pc):v}var iq=Af(function(v,S,D){return v+(D?" ":"")+S.toUpperCase()}),UM=uf("toUpperCase");function Dk(v,S,D){return v=pi(v),S=D?t:S,S===t?tp(v)?dd(v):em(v):v.match(S)||[]}var Fk=Qi(function(v,S){try{return ya(v,t,S)}catch(D){return rn(D)?D:new ui(D)}}),oq=cc(function(v,S){return ou(S,function(D){D=Fa(D),qn(v,D,xg(v[D],v))}),v});function aq(v){var S=v==null?0:v.length,D=Xr();return v=S?ra(v,function(te){if(typeof te[1]!="function")throw new Po(a);return[D(te[0]),te[1]]}):[],Qi(function(te){for(var Me=-1;++Me<S;){var We=v[Me];if(ya(We[0],this,te))return ya(We[1],this,te)}})}function sq(v){return hi(Cr(v,O))}function RM(v){return function(){return v}}function lq(v,S){return v==null||v!==v?S:v}var uq=sm(),Aq=sm(!0);function yc(v){return v}function zM(v){return oA(typeof v=="function"?v:Cr(v,O))}function cq(v){return tf(Cr(v,O))}function dq(v,S){return nf(v,Cr(S,O))}var hq=Qi(function(v,S){return function(D){return uc(D,v,S)}}),fq=Qi(function(v,S){return function(D){return uc(v,D,S)}});function jM(v,S,D){var te=kl(S),Me=Gl(S,te);D==null&&!(xn(S)&&(Me.length||!te.length))&&(D=S,S=v,v=this,Me=Gl(S,kl(S)));var We=!(xn(D)&&"chain"in D)||!!D.chain,ut=zn(v);return ou(Me,function(_t){var Tt=S[_t];v[_t]=Tt,ut&&(v.prototype[_t]=function(){var Cn=this.__chain__;if(We||Cn){var _n=v(this.__wrapped__),Tn=_n.__actions__=el(this.__actions__);return Tn.push({func:Tt,args:arguments,thisArg:v}),_n.__chain__=Cn,_n}return Tt.apply(v,Qu([this.value()],arguments))})}),v}function pq(){return vr._===this&&(vr._=Ca),this}function NM(){}function mq(v){return v=Jr(v),Qi(function(S){return ih(S,v)})}var gq=um(ra),yq=um(ld),vq=um(kc);function Uk(v){return B(v)?Jf(Fa(v)):b0(v)}function Cq(v){return function(S){return v==null?t:Ss(v,S)}}var _q=ch(),bq=ch(!0);function WM(){return[]}function GM(){return!1}function xq(){return{}}function wq(){return""}function Mq(){return!0}function Sq(v,S){if(v=Jr(v),v<1||v>st)return[];var D=Ve,te=ca(v,Ve);S=Xr(S),v-=Ve;for(var Me=To(te,S);++D<v;)S(D);return Me}function Eq(v){return re(v)?ra(v,Fa):Xo(v)?[v]:el(wa(pi(v)))}function Oq(v){var S=++$h;return pi(v)+S}var Bq=Ah(function(v,S){return v+S},0),Iq=I0("ceil"),kq=Ah(function(v,S){return v/S},1),Tq=I0("floor");function Kq(v){return v&&v.length?Rs(v,yc,ia):t}function Pq(v,S){return v&&v.length?Rs(v,Xr(S,2),ia):t}function Lq(v){return Yu(v,yc)}function Dq(v,S){return Yu(v,Xr(S,2))}function Fq(v){return v&&v.length?Rs(v,yc,aA):t}function Uq(v,S){return v&&v.length?Rs(v,Xr(S,2),aA):t}var Rq=Ah(function(v,S){return v*S},1),zq=I0("round"),jq=Ah(function(v,S){return v-S},0);function Nq(v){return v&&v.length?VA(v,yc):0}function Wq(v,S){return v&&v.length?VA(v,Xr(S,2)):0}return Fe.after=Cf,Fe.ary=bg,Fe.assign=pc,Fe.assignIn=mc,Fe.assignInWith=AA,Fe.assignWith=gh,Fe.at=gc,Fe.before=sC,Fe.bind=xg,Fe.bindAll=oq,Fe.bindKey=wg,Fe.castArray=c,Fe.chain=rC,Fe.chunk=tl,Fe.compact=Bs,Fe.concat=ds,Fe.cond=aq,Fe.conforms=sq,Fe.constant=RM,Fe.countBy=Ux,Fe.create=LA,Fe.curry=qx,Fe.curryRight=lC,Fe.debounce=uC,Fe.defaults=Du,Fe.defaultsDeep=yh,Fe.defer=BM,Fe.delay=Vx,Fe.difference=ha,Fe.differenceBy=Is,Fe.differenceWith=fh,Fe.drop=dc,Fe.dropRight=js,Fe.dropRightWhile=hc,Fe.dropWhile=Ns,Fe.fill=K0,Fe.filter=zx,Fe.flatMap=Nx,Fe.flatMapDeep=vf,Fe.flatMapDepth=Wx,Fe.flatten=Va,Fe.flattenDeep=nl,Fe.flattenDepth=ph,Fe.flip=AC,Fe.flow=uq,Fe.flowRight=Aq,Fe.fromPairs=fc,Fe.functions=Xx,Fe.functionsIn=kM,Fe.groupBy=Gx,Fe.initial=pm,Fe.intersection=cg,Fe.intersectionBy=dg,Fe.intersectionWith=AM,Fe.invert=KM,Fe.invertBy=PM,Fe.invokeMap=wM,Fe.iteratee=zM,Fe.keyBy=$x,Fe.keys=kl,Fe.keysIn=Ha,Fe.map=mh,Fe.mapKeys=Og,Fe.mapValues=Jx,Fe.matches=cq,Fe.matchesProperty=dq,Fe. Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(O[1])} }\`.`)];const E=[];return n.layerType==="symbol"&&(s==="text-field"&&i&&!i.glyphs&&E.push(new er(t,a,'use of "text-field" requires a style "glyphs" property')),s==="text-font"&&Lb(K1(a))&&sl(a.type)==="identity"&&E.push(new er(t,a,'"text-font" does not support identity functions'))),E.concat(r({key:n.key,value:a,valueSpec:C,style:i,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:s}))}function Uz(n){return Fz(n,"paint")}function Rz(n){return Fz(n,"layout")}function zz(n){let e=[];const t=n.value,r=n.key,i=n.style,o=n.styleSpec;!t.type&&!t.ref&&e.push(new er(r,t,'either "type" or "ref" is required'));let a=sl(t.type);const s=sl(t.ref);if(t.id){const d=sl(t.id);for(let f=0;f<n.arrayIndex;f++){const C=i.layers[f];sl(C.id)===d&&e.push(new er(r,t.id,`duplicate layer id "${t.id}", previously used at line ${C.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(f=>{f in t&&e.push(new er(r,t[f],`"${f}" is prohibited for ref layers`))});let d;i.layers.forEach(f=>{sl(f.id)===s&&(d=f)}),d?d.ref?e.push(new er(r,t.ref,"ref cannot reference another ref layer")):a=sl(d.type):e.push(new er(r,t.ref,`ref layer "${s}" not found`))}else if(a!=="background")if(!t.source)e.push(new er(r,t,'missing required property "source"'));else{const d=i.sources&&i.sources[t.source],f=d&&sl(d.type);d?f==="vector"&&a==="raster"?e.push(new er(r,t.source,`layer "${t.id}" requires a raster source`)):f!=="raster-dem"&&a==="hillshade"?e.push(new er(r,t.source,`layer "${t.id}" requires a raster-dem source`)):f==="raster"&&a!=="raster"?e.push(new er(r,t.source,`layer "${t.id}" requires a vector source`)):f==="vector"&&!t["source-layer"]?e.push(new er(r,t,`layer "${t.id}" must specify a "source-layer"`)):f==="raster-dem"&&a!=="hillshade"?e.push(new er(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):a==="line"&&t.paint&&t.paint["line-gradient"]&&(f!=="geojson"||!d.lineMetrics)&&e.push(new er(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new er(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Ud({key:r,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:u8,layout(d){return Ud({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(f){return Rz(cv({layerType:a},f))}}})},paint(d){return Ud({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(f){return Uz(cv({layerType:a},f))}}})}}})),e}function P1(n){const e=n.value,t=n.key,r=jo(e);return r!=="string"?[new er(t,e,`string expected, ${r} found`)]:[]}function Ene(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,o=i.source_raster_dem,a=n.style;let s=[];const d=jo(r);if(r===void 0)return s;if(d!=="object")return s.push(new er("source_raster_dem",r,`object expected, ${d} found`)),s;const C=sl(r.encoding)==="custom",O=["redFactor","greenFactor","blueFactor","baseShift"],E=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!C&&O.includes(P)?s.push(new er(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${E} encoding found`)):o[P]?s=s.concat(n.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:n.validateSpec,style:a,styleSpec:i})):s.push(new er(P,r[P],`unknown property "${P}"`));return s}const RT={promoteId:One};function jz(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,o=n.validateSpec;if(!e.type)return[new er(t,e,'"type" is required')];const a=sl(e.type);let s;switch(a){case"vector":case"raster":return s=Ud({key:t,value:e,valueSpec:r[`source_${a.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:RT,validateSpec:o}),s;case"raster-dem":return s=Ene({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:o}),s;case"geojson":if(s=Ud({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:RT}),e.cluster)for(const d in e.clusterProperties){const[f,C]=e.clusterProperties[d],O=typeof f=="string"?[f,["accumulated"],["get",d]]:f;s.push(...dv({key:`${t}.${d}.map`,value:C,validateSpec:o,expressionContext:"cluster-map"})),s.push(...dv({key:`${t}.${d}.reduce`,value:O,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Ud({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return Ud({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new er(t,null,"Please use runtime APIs to add canvas sourcLine truncated
${O}`),$].join(`
${s}`)}return f}(n,"",0)}function jT(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function qz(n,e=2){return n=jT(n,Oa.$root),n.layers&&(n.layers=n.layers.map(t=>jT(t,Oa.layer))),Pne(n,{indent:e})}function BS(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function NT(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function nO(n,e){return typeof e=="string"&&e[0]==="@"?nO(n,n.constants[e]):e}function Lne(n){return Array.isArray(n.stops)}function kC(n,e,t){n[t]=n[e],delete n[e]}function Dne(n){n.version=8,wne(n,i=>{i.type==="video"&&i.url!==void 0&&kC(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),v_(n,i=>{BS(i,o=>{o["symbol-min-distance"]!==void 0&&kC(o,"symbol-min-distance","symbol-spacing")}),NT(i,o=>{o["background-image"]!==void 0&&kC(o,"background-image","background-pattern"),o["line-image"]!==void 0&&kC(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&kC(o,"fill-image","fill-pattern")})}),a8(n,{paint:!0,layout:!0},i=>{const o=nO(n,i.value);Lne(o)&&o.stops.forEach(a=>{a[1]=nO(n,a[1])}),i.set(o)}),delete n.constants,v_(n,i=>{BS(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),NT(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 e(i){function o(a){return a.split(",").map(s=>s.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(a=>{a[1]=o(a[1])}),i;throw new Error("unexpected font value")}v_(n,i=>{BS(i,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function Fne(n){const e=[];return v_(n,t=>{t.filter&&(t.filter=y_(t.filter))}),a8(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{Fb(r)||(typeof r=="object"&&!Array.isArray(r)?(o(Tz(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&o(Kz(r)))}),n}function Une(n){return JSON.parse(Rne(JSON.stringify(n)))}function Rne(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,a,s]=r.slice(1);return[o,a]=[o,a].map(d=>d.endsWith("%")?d:`${parseFloat(d)*100}%`),`"hsl${typeof s=="string"?"a":""}(${[i,o,a,s].filter(Boolean).join(",")})"`}return e})}function zne(n){let e=!1;if(n.version===7&&(n=Dne(n),e=!0),n.version===8&&(e=!!Fne(n),e=!0),a8(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(Une(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const jne={StyleExpression:Bz,StylePropertyFunction:Iz,ZoomConstantExpression:J6,ZoomDependentExpression:eO,createExpression:t8,createPropertyExpression:n8,isExpression:Fb,isExpressionFilter:Aw,isZoomExpression:hne,normalizePropertyExpression:fne},Nne={convertFunction:Tz,createFunction:e8,isFunction:Lb};var Vz={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.1.2/LICENSE.txt
*/(function(n,e){(function(t,r){n.exports=r()})(Dh,function(){var t={},r={};function i(a,s,d){if(r[a]=d,a==="index"){var f="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",C={};return r.shared(C),r.index(t,C),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([f],{type:"text/javascript"}))),t}}i("shared",["exports"],function(a){function s(c,l,h,y){return new(h||(h=Promise))(function(M,T){function K(J){try{W(y.next(J))}catch(re){T(re)}}function F(J){try{W(y.throw(J))}catch(re){T(re)}}function W(J){var re;J.done?M(J.value):(re=J.value,re instanceof h?re:new h(function(Ae){Ae(re)})).then(K,F)}W((y=y.apply(c,l||[])).next())})}function d(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var f=C;function C(c,l){this.x=c,this.y=l}C.prototype={clone:function(){return new C(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,h=c.y-this.y;return l*l+h*h},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),h=Math.sin(c),y=h*this.x+l*this.y;return this.x=l*this.x-h*this.y,this.y=y,this},_rotateAround:function(c,l){var h=Math.cos(c),y=Math.sin(c),M=l.y+y*(this.x-l.x)+h*(this.y-l.y);return this.x=l.x+h*(this.x-l.x)-y*(this.y-l.y),this.y=M,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},C.convert=function(c){return c instanceof C?c:Array.isArray(c)?new C(c[0],c[1]):c};var O=d(f),E=P;function P(c,l,h,y){this.cx=3*c,this.bx=3*(h-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=h,this.p2y=y}P.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 h=c,y=0;y<8;y++){var M=this.sampleCurveX(h)-c;if(Math.abs(M)<l)return h;var T=this.sampleCurveDerivativeX(h);if(Math.abs(T)<1e-6)break;h-=M/T}var K=0,F=1;for(h=c,y=0;y<20&&(M=this.sampleCurveX(h),!(Math.abs(M-c)<l));y++)c>M?K=h:F=h,h=.5*(F-K)+K;return h},solve:function(c,l){return this.sampleCurveY(this.solveCurveX(c,l))}};var L=d(E);let $,H;function Q(){return $==null&&($=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),$}function N(){if(H==null&&(H=!1,Q())){const l=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(l){for(let y=0;y<5*5;y++){const M=4*y;l.fillStyle=`rgb(${M},${M+1},${M+2})`,l.fillRect(y%5,Math.floor(y/5),1,1)}const h=l.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&h[y]!==y){H=!0;break}}}return H||!1}function Z(c,l,h,y){const M=new L(c,l,h,y);return function(T){return M.solve(T)}}const ae=Z(.25,.1,.25,1);function pe(c,l,h){return Math.min(h,Math.max(l,c))}function fe(c,l,h){const y=h-l,M=((c-l)%y+y)%y+l;return M===l?h:M}function X(c,...l){for(const h of l)for(const y in h)c[y]=h[y];return c}let oe=1;function Ce(c,l,h){const y={};for(const M in c)y[M]=l.call(h||this,c[M],M,c);return y}function we(c,l,h){const y={};for(const M in c)l.call(h||this,c[M],M,c)&&(y[M]=c[M]);return y}function Te(c){return Array.isArray(c)?c.map(Te):typeof c=="object"&&c?Ce(c,Te):c}const Pe={};function he(c){Pe[c]||(typeof console<"u"&&console.wLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const be=[];return c.layerType==="symbol"&&(F==="text-field"&&M&&!M.glyphs&&be.push(new V(h,K,'use of "text-field" requires a style "glyphs" property')),F==="text-font"&&ko(MA(K))&&va(K.type)==="identity"&&be.push(new V(h,K,'"text-font" does not support identity functions'))),be.concat(y({key:c.key,value:K,valueSpec:re,style:M,styleSpec:T,expressionContext:"property",propertyType:l,propertyKey:F}))}function su(c){return Xd(c,"paint")}function Et(c){return Xd(c,"layout")}function an(c){let l=[];const h=c.value,y=c.key,M=c.style,T=c.styleSpec;h.type||h.ref||l.push(new V(y,h,'either "type" or "ref" is required'));let K=va(h.type);const F=va(h.ref);if(h.id){const W=va(h.id);for(let J=0;J<c.arrayIndex;J++){const re=M.layers[J];va(re.id)===W&&l.push(new V(y,h.id,`duplicate layer id "${h.id}", previously used at line ${re.id.__line__}`))}}if("ref"in h){let W;["type","source","source-layer","filter","layout"].forEach(J=>{J in h&&l.push(new V(y,h[J],`"${J}" is prohibited for ref layers`))}),M.layers.forEach(J=>{va(J.id)===F&&(W=J)}),W?W.ref?l.push(new V(y,h.ref,"ref cannot reference another ref layer")):K=va(W.type):l.push(new V(y,h.ref,`ref layer "${F}" not found`))}else if(K!=="background")if(h.source){const W=M.sources&&M.sources[h.source],J=W&&va(W.type);W?J==="vector"&&K==="raster"?l.push(new V(y,h.source,`layer "${h.id}" requires a raster source`)):J!=="raster-dem"&&K==="hillshade"?l.push(new V(y,h.source,`layer "${h.id}" requires a raster-dem source`)):J==="raster"&&K!=="raster"?l.push(new V(y,h.source,`layer "${h.id}" requires a vector source`)):J!=="vector"||h["source-layer"]?J==="raster-dem"&&K!=="hillshade"?l.push(new V(y,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!h.paint||!h.paint["line-gradient"]||J==="geojson"&&W.lineMetrics||l.push(new V(y,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new V(y,h,`layer "${h.id}" must specify a "source-layer"`)):l.push(new V(y,h.source,`source "${h.source}" not found`))}else l.push(new V(y,h,'missing required property "source"'));return l=l.concat(zl({key:y,value:h,valueSpec:T.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${y}.type`,value:h.type,valueSpec:T.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:h,objectKey:"type"}),filter:Lc,layout:W=>zl({layer:h,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":J=>Et(Ke({layerType:K},J))}}),paint:W=>zl({layer:h,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":J=>su(Ke({layerType:K},J))}})}})),l}function jt(c){const l=c.value,h=c.key,y=Ki(l);return y!=="string"?[new V(h,l,`string expected, ${y} found`)]:[]}const fr={promoteId:function({key:c,value:l}){if(Ki(l)==="string")return jt({key:c,value:l});{const h=[];for(const y in l)h.push(...jt({key:`${c}.${y}`,value:l[y]}));return h}}};function ui(c){const l=c.value,h=c.key,y=c.styleSpec,M=c.style,T=c.validateSpec;if(!l.type)return[new V(h,l,'"type" is required')];const K=va(l.type);let F;switch(K){case"vector":case"raster":return F=zl({key:h,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:fr,validateSpec:T}),F;case"raster-dem":return F=function(W){var J;const re=(J=W.sourceName)!==null&&J!==void 0?J:"",Ae=W.value,be=W.styleSpec,Be=be.source_raster_dem,Le=W.style;let Ge=[];const Ze=Ki(Ae);if(Ae===void 0)return Ge;if(Ze!=="object")return Ge.push(new V("source_raster_dem",Ae,`object expected, ${Ze} found`)),Ge;const at=va(Ae.encoding)==="custom",It=["redFactor","greenFactor","blueFactor","baseShift"],ct=W.value.encoding?`"${W.value.encoding}"`:"Default";for(const wt in Ae)!at&&It.includes(wt)?Ge.push(new V(wt,Ae[wt],`In "${re}": "${wt}" is only valid when "encoding" is set to "custom". ${ct} encoding found`)):Be[wt]?Ge=Ge.concat(W.validateSpec({key:wt,value:Ae[wt],valueSpec:Be[wt],validateSpec:W.validateSpec,style:Le,styleSpec:be})):Ge.push(new V(wt,Ae[wt],`unknown property "${wt}"`));return Ge}({sourceName:h,value:l,style:c.style,styleSpec:y,validateSpec:T}),F;case"geojson":if(F=zl({key:h,value:l,valueSpec:y.source_geojson,style:M,styleSpec:y,validateSpec:T,objectElementValidators:fr}),l.cluster)for(const W in l.clusterProperties){const[J,re]=l.clusterProperties[W],Ae=typeof J=="string"?[J,["accumulated"],["get",W]]:J;F.push(...Pc({key:`${h}.${W}.map`,value:re,validateSpec:T,expressionContext:"cluster-map"})),F.push(...Pc({key:`${h}.${W}.reduce`,value:Ae,validateSpec:T,expressionContext:"cluster-reduce"}))}return F;case"video":return zl({key:h,value:l,valueSpec:y.source_video,style:M,validateSpec:T,styleSpec:y});case"image":return zl({key:h,value:lLine truncated
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:vi(`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:vi(`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:vi(`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:vi("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:vi(`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:vi(`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:vi("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:vi("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:vi("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:vi(`#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:vi(`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:vi(`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:vi(`#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:vi(`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:vi(`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:vi(`#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:vi(`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:vi(`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:vi(`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:vi(`#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:vi(`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:vi(`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:vi(`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:vi(`#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:vi(`#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:vi("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Lr),terrainDepth:vi("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);}",Lr),terrainCoords:vi("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);}",Lr)};function vi(I,u){const m=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=u.match(/attribute ([\w]+) ([\w]+)/g),w=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=k?k.concat(w):w,j={};return{fragmentSource:I=I.replace(m,(Y,ie,de,me,Oe)=>(j[Oe]=!0,ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
varying ${de} ${me} ${Oe};
#else
uniform ${de} ${me} u_${Oe};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Oe}
${de} ${me} ${Oe} = u_${Oe};
#endif
`)),vertexSource:u=u.replace(m,(Y,ie,de,me,Oe)=>{const qe=me==="float"?"vec2":"vec4",Ye=Oe.match(/color/)?"color":qe;return j[Oe]?ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
attribute ${de} ${qe} a_${Oe};
varying ${de} ${me} ${Oe};
#else
uniform ${de} ${me} u_${Oe};
#endif
`:Ye==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = a_${Oe};
#else
${de} ${me} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = unpack_mix_${Ye}(a_${Oe}, u_${Oe}_t);
#else
${de} ${me} ${Oe} = u_${Oe};
#endif
`:ie==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
attribute ${de} ${qe} a_${Oe};
#else
uniform ${de} ${me} u_${Oe};
#endif
`:Ye==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${de} ${me} ${Oe} = a_${Oe};
#else
${de} ${me} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${de} ${me} ${Oe} = unpack_mix_${Ye}(a_${Oe}, u_${Oe}_t);
#else
${de} ${me} ${Oe} = u_${Oe};
#endif
`}),staticAttributes:_,staticUniforms:R}}class Ga{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,m,_,w,k,R,j,Y,ie){this.context=u;let de=this.boundPaintVertexBuffers.length!==w.length;for(let me=0;!de&&me<w.length;me++)this.boundPaintVertexBuffers[me]!==w[me]&&(de=!0);!this.vao||this.boundProgram!==m||this.boundLayoutVertexBuffer!==_||de||this.boundIndexBuffer!==k||this.boundVertexOffset!==R||this.boundDynamicVertexBuffer!==j||this.boundDynamicVertexBuffer2!==Y||this.boundDynamicVertexBuffer3!==ie?this.freshBind(m,_,w,k,R,j,Y,ie):(u.bindVertexArray.set(this.vao),j&&j.bind(),k&&k.dynamicDraw&&k.bind(),Y&&Y.bind(),ie&&ie.bind())}freshBind(u,m,_,w,k,R,j,Y){const ie=u.numAttributes,de=this.context,me=de.gl;this.vao&&this.destroy(),this.vao=de.createVertexArray(),de.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=m,this.boundPaintVertexBuffers=_,this.boundIndexBuffer=w,this.boundVertexOffset=k,this.boundDynamicVertexBuffer=R,this.boundDynamicVertexBuffer2=j,this.boundDynamicVertexBuffer3=Y,m.enableAttributes(me,u);for(const Oe of _)Oe.enableAttributes(me,u);R&&R.enableAttributes(me,u),j&&j.enableAttributes(me,u),Y&&Y.enableAttributes(me,u),m.bind(),m.setVertexAttribPointers(me,u,k);for(const Oe of _)Oe.bind(),Oe.setVertexAttribPointers(me,u,k);R&&(R.bind(),R.setVertexAttribPointers(me,u,k)),w&&w.bind(),j&&(j.bind(),j.setVertexAttribPointers(me,u,k)),Y&&(Y.bind(),Y.setVertexAttribPointers(me,u,k)),de.currentNumAttributes=ie}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function ea(I){const u=[];for(let m=0;m<I.length;m++){if(I[m]===null)continue;const _=I[m].split(" ");u.push(_.pop())}return u}class xu{constructor(u,m,_,w,k,R){const j=u.gl;this.program=j.createProgram();const Y=ea(m.staticAttributes),ie=_?_.getBinderAttributes():[],de=Y.concat(ie),me=Wa.prelude.staticUniforms?ea(Wa.prelude.staticUniforms):[],Oe=m.staticUniforms?ea(m.staticUniforms):[],qe=_?_.getBinderUniforms():[],Ye=me.concat(Oe).concat(qe),He=[];for(const Ut of Ye)He.indexOf(Ut)<0&&He.push(Ut);const Ne=_?_.defines():[];k&&Ne.push("#define OVERDRAW_INSPECTOR;"),R&&Ne.push("#define TERRAIN3D;");const ht=Ne.concat(Wa.prelude.fragmentSource,m.fragmentSource).join(`
`),Lt=Ne.concat(Wa.prelude.vertexSource,m.vertexSource).join(`
`),tt=j.createShader(j.FRAGMENT_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(tt,ht),j.compileShader(tt),!j.getShaderParameter(tt,j.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${j.getShaderInfoLog(tt)}`);j.attachShader(this.program,tt);const xt=j.createShader(j.VERTEX_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(xt,Lt),j.compileShader(xt),!j.getShaderParameter(xt,j.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${j.getShaderInfoLog(xt)}`);j.attachShader(this.program,xt),this.attributes={};const Pt={};this.numAttributes=de.length;for(let Ut=0;Ut<this.numAttributes;Ut++)de[Ut]&&(j.bindAttribLocation(this.program,Ut,de[Ut]),this.attributes[de[Ut]]=Ut);if(j.linkProgram(this.program),!j.getProgramParameter(this.program,j.LINK_STATUS))throw new Error(`Program failed to link: ${j.getProgramInfoLog(this.program)}`);j.deleteShader(xt),j.deleteShader(tt);for(let Ut=0;Ut<He.length;Ut++){const Xt=He[Ut];if(Xt&&!Pt[Xt]){const hn=j.getUniformLocation(this.program,Xt);hn&&(Pt[Xt]=hn)}}this.fixedUniforms=w(u,Pt),this.terrainUniforms=((Ut,Xt)=>({u_depth:new s.aG(Ut,Xt.u_depth),u_terrain:new s.aG(Ut,Xt.u_terrain),u_terrain_dim:new s.aH(Ut,Xt.u_terrain_dim),u_terrain_matrix:new s.aI(Ut,Xt.u_terrain_matrix),u_terrain_unpack:new s.aJ(Ut,Xt.u_terrain_unpack),u_terrain_exaggeration:new s.aH(Ut,Xt.u_terrain_exaggeration)}))(u,Pt),this.binderUniforms=_?_.getUniforms(u,Pt):[]}draw(u,m,_,w,k,R,j,Y,ie,de,me,Oe,qe,Ye,He,Ne,ht,Lt){const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(w),u.setColorMode(k),u.setCullFace(R),Y){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,Y.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,Y.texture);for(const Pt in this.terrainUniforms)this.terrainUniforms[Pt].set(Y[Pt])}for(const Pt in this.fixedUniforms)this.fixedUniforms[Pt].set(j[Pt]);He&&He.setUniforms(u,this.binderUniforms,qe,{zoom:Ye});let xt=0;switch(m){case tt.LINES:xt=2;break;case tt.TRIANGLES:xt=3;break;case tt.LINE_STRIP:xt=1}for(const Pt of Oe.get()){const Ut=Pt.vaos||(Pt.vaos={});(Ut[ie]||(Ut[ie]=new Ga)).bind(u,this,de,He?He.getPaintVertexBuffers():[],me,Pt.vertexOffset,Ne,ht,Lt),tt.drawElements(m,Pt.primitiveLength*xt,tt.UNSIGNED_SHORT,Pt.primitiveOffset*xt*2)}}}function as(I,u,m){const _=1/cr(m,1,u.transform.tileZoom),w=Math.pow(2,m.tileID.overscaledZ),k=m.tileSize*Math.pow(2,u.transform.tileZoom)/w,R=k*(m.tileID.canonical.x+m.tileID.wrap*w),j=k*m.tileID.canonical.y;return{u_image:0,u_texsize:m.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[R>>16,j>>16],u_pixel_coord_lower:[65535&R,65535&j]}}const ta=(I,u,m,_)=>{const w=u.style.light,k=w.properties.get("position"),R=[k.x,k.y,k.z],j=function(){var ie=new s.A(9);return s.A!=Float32Array&&(ie[1]=0,ie[2]=0,ie[3]=0,ie[5]=0,ie[6]=0,ie[7]=0),ie[0]=1,ie[4]=1,ie[8]=1,ie}();w.properties.get("anchor")==="viewport"&&function(ie,de){var me=Math.sin(de),Oe=Math.cos(de);ie[0]=Oe,ie[1]=me,ie[2]=0,ie[3]=-me,ie[4]=Oe,ie[5]=0,ie[6]=0,ie[7]=0,ie[8]=1}(j,-u.transform.angle),function(ie,de,me){var Oe=de[0],qe=de[1],Ye=de[2];ie[0]=Oe*me[0]+qe*me[3]+Ye*me[6],ie[1]=Oe*me[1]+qe*me[4]+Ye*me[7],ie[2]=Oe*me[2]+qe*me[5]+Ye*me[8]}(R,R,j);const Y=w.properties.get("color");return{u_matrix:I,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[Y.r,Y.g,Y.b],u_vertical_gradient:+m,u_opacity:_}},na=(I,u,m,_,w,k,R)=>s.e(ta(I,u,m,_),as(k,u,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8}),bs=I=>({u_matrix:I}),wu=(I,u,m,_)=>s.e(bs(I),as(m,u,_)),ga=(I,u)=>({u_matrix:I,u_world:u}),_A=(I,u,m,_,w)=>s.e(wu(I,u,m,_),{u_world:w}),Wu=(I,u,m,_)=>{const w=I.transform;let k,R;if(_.paint.get("circle-pitch-alignment")==="map"){const j=cr(m,1,w.zoom);k=!0,R=[j,j]}else k=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(_.paint.get("circle-pitch-scale")==="map"),u_matrix:I.translatePosMatrix(u.posMatrix,m,_.paint.get("circle-translate"),_.paint.get("circle-translate-anchor")),u_pitch_with_map:+k,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:R}},bA=(I,u,m)=>{const _=cr(m,1,u.zoom),w=Math.pow(2,u.zoom-m.tileID.overscaledZ),k=m.tileID.overscaleFactor();return{u_matrix:I,u_camera_to_center_distance:u.cameraToCenterDistance,u_pixels_to_tile_units:_,u_extrude_scale:[u.pixelsToGLUnits[0]/(_*w),u.pixelsToGLUnits[1]/(_*w)],u_overscale_factor:k}},Mu=(I,u,m=1)=>({u_matrix:I,u_color:u,u_overlay:0,u_overlay_scale:m}),Gu=I=>({u_matrix:I}),Wo=(I,u,m,_)=>({u_matrix:I,u_extrude_scale:cr(u,1,m),u_intensity:_});function xs(I,u){const m=Math.pow(2,u.canonical.z),_=u.canonical.y;return[new s.Y(0,_/m).toLngLat().lat,new s.Y(0,(_+1)/m).toLngLat().lat]}const nu=(I,u,m,_)=>{const w=I.transform;return{u_matrix:ul(I,u,m,_),u_ratio:1/cr(u,1,w.zoom),u_device_pixel_ratio:I.pixelRatio,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.p Line truncated
${this.label} <span></span>
`,oa().s[9]++,this._textEl=this._container.querySelector("span"),oa().s[10]++,this.addEventListeners(),oa().s[11]++,this._container}updateZoomLevel(){oa().f[2]++,oa().s[12]++,this._textEl.innerHTML=this._map.getZoom().toFixed(2)}addEventListeners(){oa().f[3]++,oa().s[13]++,this._map.on("render",()=>(oa().f[4]++,oa().s[14]++,this.updateZoomLevel())),oa().s[15]++,this._map.on("zoomIn",()=>(oa().f[5]++,oa().s[16]++,this.updateZoomLevel())),oa().s[17]++,this._map.on("zoomOut",()=>(oa().f[6]++,oa().s[18]++,this.updateZoomLevel()))}onRemove(){oa().f[7]++,oa().s[19]++,this._container.parentNode.removeChild(this._container),oa().s[20]++,this._map=void 0}}function hO(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function fO(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function pO(n,e,t){const r={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function Aie(n,e){const t=[],r=[],i=[];function o(a){return{circle:e(a,.8),line:e(a,.6),polygon:e(a,.3),polygonOutline:e(a,.6),default:e(a,1)}}return Object.keys(n).forEach(a=>{const s=n[a];if(!s||s.length===0){const d=o(a);r.push(hO(d.circle,a)),i.push(pO(d.line,a)),t.push(fO(d.polygon,d.polygonOutline,a))}else s.forEach(d=>{const f=o(d);r.push(hO(f.circle,a,d)),i.push(pO(f.line,a,d)),t.push(fO(f.polygon,f.polygonOutline,a,d))})}),t.concat(i).concat(r)}function cie(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(o=>{const a=n.sources[o];(a.type==="vector"||a.type==="geojson")&&(i[o]=a)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const TS={polygonLayer:fO,lineLayer:pO,circleLayer:hO,generateInspectStyle:cie,generateColoredLayers:Aie};function Fi(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="c6691b5ca8d2cfebe44cf9e3718b8a44b922cf42",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}, Line truncated
`))?(Rb(LO),Zg=null,PO=void 0,Bp.set(P,n)):(Bp.set(P,Bp.get(P)+1,!0),f=!1))}f&&(clearInterval(o),o=void 0)}return function(f){var C=dN(f);if(C)for(var O=C.families,E=0,P=O.length;E<P;++E){var L=O[E],$=C.style+`
`+C.weight+`
`+L;Bp.get($)===void 0&&(Bp.set($,n,!0),s(C.style,C.weight,L)||(Bp.set($,0,!0),o===void 0&&(o=setInterval(d,32))))}}}(),sle=function(){var n;return function(e){var t=LO[e];if(t==null){if(fw){var r=dN(e),i=pN(e,"Žg"),o=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);t=o*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);LO[e]=t}return t}}();function pN(n,e){return Zg||(Zg=Oc(1,1)),n!=PO&&(Zg.font=n,PO=Zg.font),Zg.measureText(e)}function U4(n,e){return pN(n,e).width}function SK(n,e,t){if(e in t)return t[e];var r=e.split(`
`).reduce(function(i,o){return Math.max(i,U4(n,o))},0);return t[e]=r,r}function lle(n,e){for(var t=[],r=[],i=[],o=0,a=0,s=0,d=0,f=0,C=e.length;f<=C;f+=2){var O=e[f];if(O===`
`||f===C){o=Math.max(o,a),i.push(a),a=0,s+=d;continue}var E=e[f+1]||n.font,P=U4(E,O);t.push(P),a+=P;var L=sle(E);r.push(L),d=Math.max(d,L)}return{width:o,height:s,widths:t,heights:r,lineWidths:i}}function ule(n,e,t,r,i,o,a,s,d,f,C){n.save(),t!==1&&(n.globalAlpha*=t),e&&n.setTransform.apply(n,e),r.contextInstructions?(n.translate(d,f),n.scale(C[0],C[1]),Ale(r,n)):C[0]<0||C[1]<0?(n.translate(d,f),n.scale(C[0],C[1]),n.drawImage(r,i,o,a,s,0,0,a,s)):n.drawImage(r,i,o,a,s,d,f,a*C[0],s*C[1]),n.restore()}function Ale(n,e){for(var t=n.contextInstructions,r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}var cle=function(){var n=function(e,t){return n=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])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),dle=function(n){cle(e,n);function e(t){var r=n.call(this,t)||this;r.fontChangeListenerKey_=Oo(Bp,hv.PROPERTYCHANGE,t.redrawText.bind(t)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=xw+" ol-layers";var o=t.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return e.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var o=new cN(t,void 0,r);i.dispatchEvent(o)}},e.prototype.disposeInternal=function(){rs(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),n.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(o0.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(P,L){return P.zIndex-L.zIndex}),i=t.viewState;this.children_.length=0;for(var o=[],a=null,s=0,d=r.length;s<d;++s){var f=r[s];t.layerIndex=s;var C=f.layer,O=C.getSourceState();if(!P4(f,i)||O!="ready"&&O!="undefined"){C.unrender();continue}var E=C.render(t,a);E&&(E!==a&&(this.children_.push(E),a=E),"getDeclutter"in C&&o.push(C))}for(var s=o.length-1;s>=0;--s)o[s].renderDeclutter(t);ole(this.element_,this.children_),this.dispatchRenderEvent(o0.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,r,i,o,a){for(var s=r.viewState,d=r.layerStatesArray,f=d.length,C=f-1;C>=0;--C){var O=d[C],E=O.layer;if(E.hasRenderer()&&P4(O,s)&&a(E)){var P=E.getRenderer(),L=P.getDataAtPixel(t,r,i);if(L){var $=o(E,L);if($)return $}}}},e}(Jse);const hle=dle,bc={ADD:"add",REMOVE:"remove"};var mN=function(){var n=function(e,t){return n=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])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),EK={LENGTH:"length"},k2=function(n){mN(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.element=r,o.index=i,o}return e}(Xp),Rd=function(n){mN(e,n);function e(t,r){var i=n.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=t||[],i.unique_)for(var a=0,s=i.array_.length;a<s;++a)i.assertUnique_(i.array_[a],a);return i.updateLength_(),i}return e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var r=0,i=t.length;r<i;++r)this.push(t[r]);return this},e.prototype.forEach=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)t(r[i],i,r)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(EK.LENGTH)},e.prototype.insertAt=function(t,r){this.unique_&&this.assertUnique_(r),this.array_.splice(t,0,r),this.updateLength_(),this.dispatchEvent(new k2(bc.ADD,r,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var r=this.getLength();return this.insertAt(r,t),this.getLength()},e.prototype.remove=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)if(r[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var r=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new k2(bc.REMOVE,r,t)),r},e.prototype.setAt=function(t,r){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(r,t);var o=this.array_[t];this.array_[ Line truncated
`,""),n.push(e,""),n}var BAe=function(){function n(e,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=jd(),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 n.prototype.createLabel=function(e,t,r,i){var o=e+t+r+i;if(this.labels_[o])return this.labels_[o];var a=i?this.strokeStates[i]:null,s=r?this.fillStates[r]:null,d=this.textStates[t],f=this.pixelRatio,C=[d.scale[0]*f,d.scale[1]*f],O=Array.isArray(e),E=d.justify?b_[d.justify]:zK(Array.isArray(e)?e[0]:e,d.textAlign||pb),P=i&&a.lineWidth?a.lineWidth:0,L=O?e:e.split(`
`).reduce(OAe,[]),$=lle(d,L),H=$.width,Q=$.height,N=$.widths,Z=$.heights,ae=$.lineWidths,pe=H+P,fe=[],X=(pe+2)*C[0],oe=(Q+P)*C[1],Ce={width:X<0?Math.floor(X):Math.ceil(X),height:oe<0?Math.floor(oe):Math.ceil(oe),contextInstructions:fe};if((C[0]!=1||C[1]!=1)&&fe.push("scale",C),i){fe.push("strokeStyle",a.strokeStyle),fe.push("lineWidth",P),fe.push("lineCap",a.lineCap),fe.push("lineJoin",a.lineJoin),fe.push("miterLimit",a.miterLimit);var we=fw?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;we.prototype.setLineDash&&(fe.push("setLineDash",[a.lineDash]),fe.push("lineDashOffset",a.lineDashOffset))}r&&fe.push("fillStyle",s.fillStyle),fe.push("textBaseline","middle"),fe.push("textAlign","center");for(var Te=.5-E,Pe=E*pe+Te*P,he=[],$e=[],ye=0,gt=0,yt=0,st=0,ft,Re=0,Ve=L.length;Re<Ve;Re+=2){var Xe=L[Re];if(Xe===`
`){gt+=ye,ye=0,Pe=E*pe+Te*P,++st;continue}var Jt=L[Re+1]||d.font;Jt!==ft&&(i&&he.push("font",Jt),r&&$e.push("font",Jt),ft=Jt),ye=Math.max(ye,Z[yt]);var Ht=[Xe,Pe+Te*N[yt]+E*(N[yt]-ae[st]),.5*(P+ye)+gt];Pe+=N[yt],i&&he.push("strokeText",Ht),r&&$e.push("fillText",Ht),++yt}return Array.prototype.push.apply(fe,he),Array.prototype.push.apply(fe,$e),this.labels_[o]=Ce,Ce},n.prototype.replayTextBackground_=function(e,t,r,i,o,a,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,o),e.lineTo.apply(e,t),a&&(this.alignFill_=a[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},n.prototype.calculateImageOrLabelDimensions_=function(e,t,r,i,o,a,s,d,f,C,O,E,P,L,$,H){s*=E[0],d*=E[1];var Q=r-s,N=i-d,Z=o+f>e?e-f:o,ae=a+C>t?t-C:a,pe=L[3]+Z*E[0]+L[1],fe=L[0]+ae*E[1]+L[2],X=Q-L[3],oe=N-L[0];($||O!==0)&&(_m[0]=X,bm[0]=X,_m[1]=oe,wp[1]=oe,wp[0]=X+pe,Mp[0]=wp[0],Mp[1]=oe+fe,bm[1]=Mp[1]);var Ce;return O!==0?(Ce=$f(jd(),r,i,1,1,O,-r,-i),vl(Ce,_m),vl(Ce,wp),vl(Ce,Mp),vl(Ce,bm),Qf(Math.min(_m[0],wp[0],Mp[0],bm[0]),Math.min(_m[1],wp[1],Mp[1],bm[1]),Math.max(_m[0],wp[0],Mp[0],bm[0]),Math.max(_m[1],wp[1],Mp[1],bm[1]),Ug)):Qf(Math.min(X,X+pe),Math.min(oe,oe+fe),Math.max(X,X+pe),Math.max(oe,oe+fe),Ug),P&&(Q=Math.round(Q),N=Math.round(N)),{drawImageX:Q,drawImageY:N,drawImageW:Z,drawImageH:ae,originX:f,originY:C,declutterBox:{minX:Ug[0],minY:Ug[1],maxX:Ug[2],maxY:Ug[3],value:H},canvasTransform:Ce,scale:E}},n.prototype.replayImageOrLabel_=function(e,t,r,i,o,a,s){var d=!!(a||s),f=i.declutterBox,C=e.canvas,O=s?s[2]*i.scale[0]/2:0,E=f.minX-O<=C.width/t&&f.maxX+O>=0&&f.minY-O<=C.height/t&&f.maxY+O>=0;return E&&(d&&this.replayTextBackground_(e,_m,wp,Mp,bm,a,s),ule(e,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},n.prototype.fill_=function(e){if(this.alignFill_){var t=vl(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(t[0]%r,t[1]%r),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},n.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},n.prototype.drawLabelWithPointPlacement_=function(e,t,r,i){var o=this.textStates[t],a=this.createLabel(e,t,i,r),s=this.strokeStates[r],d=this.pixelRatio,f=zK(Array.isArray(e)?e[0]:e,o.textAlign||pb),C=b_[o.textBaseline||F4],O=s&&s.lineWidth?s.lineWidth:0,E=a.width/d-2*o.scale[0],P=f*E+2*(.5-f)*O,L=C*a.height/d+2*(.5-C)*O;return{label:a,anchorX:P,anchorY:L}},n.prototype.execute_=function(e,t,r,i,o,a,s,d){var f;this.pixelCoordinates_&&Q1(r,this.renderedTransform_)?f=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),f=i0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),Soe(this.renderedTransform_,r));for(var C=0,O=i.length,E=0,P,L,$,H,Q,N,Z,ae,pe,fe,X,oe,Ce=0,we=0,Te=null,Pe=null,he=this.coordinateCache_,$e=this.viewRotation_,ye=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,gt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:$e},yt=this.instructions!=i||this.overlaps?0:200,st,ft,Re,Ve;C<O;){var Xe=i[C],Jt=Xe[0];switch(Jt){case ci.BEGIN_GEOMETRY:st=Xe[1],Ve=Xe[3],st.getGeometry()?s!==void 0&&!_l(s,Ve.getExtent())?C=Xe[2]+1:++C:C=Xe[2];break;case ci.BEGIN_PATH:Ce>yt&&(this.fill_(e),Ce=0),we>yt&&(e.stroke(),we=0),!Ce&&!we&&(e.beginPath(),H=NaN,Q=NaN),++C;break;case ci.CIRCLE:E=Xe[1];var Ht=f[E],bt=f[E+1],Qt=f[E+2],Yt=f[E+3],ke=Qt-Ht,ge=Yt-bt,Se=Math.sqrt(ke*ke+ge*ge);e.moveTo(Ht+Se,bt),e.arc(Ht,bt,Se,0,2*Math.PI,!0),++C;break;case ci.CLOSE_PATH:e.closePath(),++C;break;case ci.CUSTOM:E=Xe[1],P=Xe[2];var ze=Xe[3],it=Xe[4],ot=Xe.length==6?Xe[5]:void 0;gt.geometry=ze,gt.feature=st,C in he||(he[C]=[]);var St=he[C];ot?ot(f,E,P,2,St):(St[0]=f[E],St[1]=f[E+1],St.length=2),it(St,gt),++C;break;case ci.DRAW_IMAGE:E=Xe[1],P=Xe[2],ae=Xe[3],L=Xe[4],$=Xe[5];var Rt=Xe[6],zt=Xe[7],mt=Xe[8],or=Xe[9],gn=Xe[10],yn=Xe[11],tr=Xe[12],dr=Xe[13],Sr=Xe[14],Nr=Xe[15];if(!ae&&Xe.length>=20){pe=Xe[19],fe=Xe[20],X=Xe[21],oe=Xe[22];var yr=this.drawLabelWithPointPlacement_(pe,fe,X,oe);ae=yr.label,Xe[3]=ae;var _i=Xe[23];L=(yr.anchorX-_i)*this.pixelRatio,Xe[4]=L;var Ee=Xe[24];$=(yr.anchorY-Ee)*this.pixelRatio,Xe[5]=$,Rt=ae.height,Xe[6]=Rt,dr=ae.width,Xe[13]=dr}var ee=void 0;Xe.length>25&&(ee=Xe[25]);var V=void 0,Ke=void 0,At=void 0;Xe.length>17?(V=Xe[16],Ke=Xe[17],At=Xe[18]):(V=h1,Ke=!1,At=!1),gn&&ye?yn+=$e:!gn&&!ye&&(yn-=$e);for(var Bt=0;E<P;E+=2)if(!(ee&&ee[Bt++]<dr/this.pixelRatio)){var kt=this.calculateImageOrLabelDimensions_(ae.width,ae.height,f[E],f[E+1],dr,Rt,L,$,mt,or,yn,tr,o,V,Ke||At,st),Dt=[e,t,ae,kt,zt,Ke?Te:null,At?Pe:null];if(d){if(Sr==="none")continue;if(Sr==="obstacle"){d.insert(kt.declutterBox);continue}else{var fn=void 0,Pn=void 0;if(Nr){var On=P-E;if(!Nr[On]){Nr[On]=Dt;continue}if(fn=Nr[On],delete Nr[On],Pn=RK(fn),d.collides(Pn))continue}if(d.collides(kt.declutterBox))continue;fn&&(d. Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(nW(t,this.tileGrid),r):this.setKey(r)},e.prototype.tileUrlFunction=function(t,r,i){},e.prototype.useTile=function(t,r,i){var o=Kv(t,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},e}(Wce);const rW=qce;var Vce=function(){var n=function(e,t){return n=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])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hce=function(n){Vce(e,n);function e(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),r=n.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:Zce,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:i,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this,r.crossOrigin=t.crossOrigin!==void 0?t.crossOrigin:null,r.tileClass=t.tileClass!==void 0?t.tileClass:HN,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,r){var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?r:{});for(var o in this.tileCacheForProjection){var a=this.tileCacheForProjection[o];a.expireCache(a==i?r:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!n1(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var t=n.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},e.prototype.getOpaque=function(t){return this.getProjection()&&t&&!n1(this.getProjection(),t)?!1:n.prototype.getOpaque.call(this,t)},e.prototype.getTileGridForProjection=function(t){var r=this.getProjection();if(this.tileGrid&&(!r||n1(r,t)))return this.tileGrid;var i=qi(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=JN(t)),this.tileGridForProjection[i]},e.prototype.getTileCacheForProjection=function(t){var r=this.getProjection();if(!r||n1(r,t))return this.tileCache;var i=qi(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new q8(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,r,i,o,a,s){var d=[t,r,i],f=this.getTileCoordForTileUrlFunction(d,a),C=f?this.tileUrlFunction(f,o,a):void 0,O=new this.tileClass(d,C!==void 0?gr.IDLE:gr.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return O.key=s,O.addEventListener(Wi.CHANGE,this.handleTileChange.bind(this)),O},e.prototype.getTile=function(t,r,i,o,a){var s=this.getProjection();if(!s||!a||n1(s,a))return this.getTileInternal(t,r,i,o,s||a);var d=this.getTileCacheForProjection(a),f=[t,r,i],C=void 0,O=qN(f);d.containsKey(O)&&(C=d.get(O));var E=this.getKey();if(C&&C.key==E)return C;var P=this.getTileGridForProjection(s),L=this.getTileGridForProjection(a),$=this.getTileCoordForTileUrlFunction(f,a),H=new XN(s,P,a,L,f,$,this.getTilePixelRatio(o),this.getGutter(),(function(Q,N,Z,ae){return this.getTileInternal(Q,N,Z,ae,s)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return H.key=E,C?(H.interimTile=C,H.refreshInterimChain(),d.replace(O,H)):d.set(O,H),H},e.prototype.getTileInternal=function(t,r,i,o,a){var s=null,d=Kv(t,r,i),f=this.getKey();if(!this.tileCache.containsKey(d))s=this.createTile_(t,r,i,o,a,f),this.tileCache.set(d,s);else if(s=this.tileCache.get(d),s.key!=f){var C=s;s=this.createTile_(t,r,i,o,a,f),C.getState()==gr.IDLE?s.interimTile=C.interimTile:s.interimTile=C,s.refreshInterimChain(),this.tileCache.replace(d,s)}return s},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,r){{var i=Vs(t);if(i){var o=qi(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}}},e}(rW);function Zce(n,e){n.getImage().src=e}const Xce=Hce;var iW=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype. Line truncated
* 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:ehe,expression:the,expression_name:nhe,fog:rhe,light:ihe,projection:ohe,terrain:ahe,paint:she,paint_fill:lhe,"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 moLine truncated
`," "],Ohe=["{","}","|","\\","^","`"].concat(Ehe),NO=["'"].concat(Ohe),XK=["%","/","?",";","#"].concat(NO),JK=["/","?","#"],Bhe=255,eP=/^[+a-z0-9A-Z_-]{0,63}$/,Ihe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,khe={javascript:!0,"javascript:":!0},WO={javascript:!0,"javascript:":!0},jy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},GO=gb;function The(n,e,t){if(n&&Lp.isObject(n)&&n instanceof Gp)return n;var r=new Gp;return r.parse(n,e,t),r}Gp.prototype.parse=function(n,e,t){if(!Lp.isString(n))throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var r=n.indexOf("?"),i=r!==-1&&r<n.indexOf("#")?"?":"#",o=n.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),n=o.join(i);var s=n;if(s=s.trim(),!t&&n.split("#").length===1){var d=She.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],e?this.query=GO.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var f=whe.exec(s);if(f){f=f[0];var C=f.toLowerCase();this.protocol=C,s=s.substr(f.length)}if(t||f||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var O=s.substr(0,2)==="//";O&&!(f&&WO[f])&&(s=s.substr(2),this.slashes=!0)}if(!WO[f]&&(O||f&&!jy[f])){for(var E=-1,P=0;P<JK.length;P++){var L=s.indexOf(JK[P]);L!==-1&&(E===-1||L<E)&&(E=L)}var $,H;E===-1?H=s.lastIndexOf("@"):H=s.lastIndexOf("@",E),H!==-1&&($=s.slice(0,H),s=s.slice(H+1),this.auth=decodeURIComponent($)),E=-1;for(var P=0;P<XK.length;P++){var L=s.indexOf(XK[P]);L!==-1&&(E===-1||L<E)&&(E=L)}E===-1&&(E=s.length),this.host=s.slice(0,E),s=s.slice(E),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var ae=N[P];if(ae&&!ae.match(eP)){for(var pe="",fe=0,X=ae.length;fe<X;fe++)ae.charCodeAt(fe)>127?pe+="x":pe+=ae[fe];if(!pe.match(eP)){var oe=N.slice(0,P),Ce=N.slice(P+1),we=ae.match(Ihe);we&&(oe.push(we[1]),Ce.unshift(we[2])),Ce.length&&(s="/"+Ce.join(".")+s),this.hostname=oe.join(".");break}}}this.hostname.length>Bhe?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=xhe.toASCII(this.hostname));var Te=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Te,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!khe[C])for(var P=0,Z=NO.length;P<Z;P++){var he=NO[P];if(s.indexOf(he)!==-1){var $e=encodeURIComponent(he);$e===he&&($e=escape(he)),s=s.split(he).join($e)}}var ye=s.indexOf("#");ye!==-1&&(this.hash=s.substr(ye),s=s.slice(0,ye));var gt=s.indexOf("?");if(gt!==-1?(this.search=s.substr(gt),this.query=s.substr(gt+1),e&&(this.query=GO.parse(this.query)),s=s.slice(0,gt)):e&&(this.search="",this.query={}),s&&(this.pathname=s),jy[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Te=this.pathname||"",yt=this.search||"";this.path=Te+yt}return this.href=this.format(),this};Gp.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var e=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=n+this.host:this.hostname&&(i=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&Lp.isObject(this.query)&&Object.keys(this.query).length&&(o=GO.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||jy[e])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),e+i+t+a+r};Gp.prototype.resolve=function(n){return this.resolveObject(The(n,!1,!0)).format()};Gp.prototype.resolveObject=function(n){if(Lp.isString(n)){var e=new Gp;e.parse(n,!1,!0),n=e}for(var t=new Gp,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=n.hash,n.href==="")return t.href=t.format(),t;if(n.slashes&&!n.protocol){for(var a=Object.keys(n),s=0;s<a.length;s++){var d=a[s];d!=="protocol"&&(t[d]=n[d])}return jy[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(n.protocol&&n.protocol!==t.protocol){if(!jy[n.protocol]){for(var f=Object.keys(n),C=0;C<f.length;C++){var O=f[C];t[O]=n[O]}return t.href=t.format(),t}if(t.protocol=n.protocol,!n.host&&!WO[n.protocol]){for(var Z=(n.pathname||"").split("/");Z.length&&!(n.host=Z.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),t.pathname=Z.join("/")}else t.pathname=n.pathname;if(t.search=n.search,t.query=n.query,t.host=n.host||"",t.auth=n.auth,t.hostname=n.hostname||n.host,t.port=n.port,t.pathname||t.search){var E=t.pathname||"",P=t.search||"";t.path=E+P}return t.slashes=t.slashes||n.slashes,t.href=t.format(),t}var L=t.pathname&&t.pathname.charAt(0)==="/",$=n.host||n.pathname&&n.pathname.charAt(0)=== Line truncated
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=uW[`filter_${e}`],o=H4(r,i);let a=null;if(o.result==="error")throw new Error(o.value.map(C=>`${C.key}: ${C.message}`).join(", "));a=(C,O,E)=>o.value.evaluate(C,O,{},E);let s=null,d=null;if(r!==t){const C=H4(t,i);if(C.result==="error")throw new Error(C.value.map(O=>`${O.key}: ${O.message}`).join(", "));s=(O,E,P,L,$)=>C.value.evaluate(O,E,{},P,void 0,void 0,L,$),d=!Kw(C.value.expression)}a=a;const f=NW(r);return{filter:a,dynamicFilter:s||void 0,needGeometry:f,needFeature:!!d}}function rpe(n){if(!$y(n))return n;let e=ZO(n);return jW(e),e=zW(e),e}function zW(n){if(!Array.isArray(n))return n;const e=ape(n);return e===!0?e:e.map(t=>zW(t))}function jW(n){let e=!1;const t=[];if(n[0]==="case"){for(let r=1;r<n.length-1;r+=2)e=e||$y(n[r]),t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="match"){e=e||$y(n[1]);for(let r=2;r<n.length-1;r+=2)t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="step"){e=e||$y(n[1]);for(let r=1;r<n.length-1;r+=2)t.push(n[r+1])}e&&(n.length=0,n.push("any",...t));for(let r=1;r<n.length;r++)jW(n[r])}function $y(n){if(!Array.isArray(n))return!1;if(ipe(n[0]))return!0;for(let e=1;e<n.length;e++){const t=n[e];if($y(t))return!0}return!1}function ipe(n){return n==="pitch"||n==="distance-from-center"}const ope=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function ape(n){if(ope.has(n[0]))for(let e=1;e<n.length;e++){const t=n[e];if($y(t))return!0}return n}function spe(n,e){return n<e?-1:n>e?1:0}function NW(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(let e=1;e<n.length;e++)if(NW(n[e]))return!0;return!1}function Z4(n){if(!n)return!0;const e=n[0];return n.length<=1?e!=="any":e==="=="?sE(n[1],n[2],"=="):e==="!="?U2(sE(n[1],n[2],"==")):e==="<"||e===">"||e==="<="||e===">="?sE(n[1],n[2],e):e==="any"?lpe(n.slice(1)):e==="all"?["all"].concat(n.slice(1).map(Z4)):e==="none"?["all"].concat(n.slice(1).map(Z4).map(U2)):e==="in"?cP(n[1],n.slice(2)):e==="!in"?U2(cP(n[1],n.slice(2))):e==="has"?dP(n[1]):e==="!has"?U2(dP(n[1])):e==="within"?n:!0}function sE(n,e,t){switch(n){case"$type":return[`filter-type-${t}`,e];case"$id":return[`filter-id-${t}`,e];default:return[`filter-${t}`,n,e]}}function lpe(n){return["any"].concat(n.map(Z4))}function cP(n,e){if(e.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",n,["literal",e.sort(spe)]]:["filter-in-small",n,["literal",e]]}}function dP(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function U2(n){return["!",n]}var upe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ape(n,e){const t={};for(const r in n)r!=="ref"&&(t[r]=n[r]);return upe.forEach(r=>{r in e&&(t[r]=e[r])}),t}function cpe(n){n=n.slice();const e=Object.create(null);for(let t=0;t<n.length;t++)e[n[t].id]=n[t];for(let t=0;t<n.length;t++)"ref"in n[t]&&(n[t]=Ape(n[t],e[n[t].ref]));return n}function dpe(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var hpe={};(function(n){var e=function(){var t=function(H,Q,N,Z){for(N=N||{},Z=H.length;Z--;N[H[Z]]=Q);return N},r=[1,12],i=[1,13],o=[1,9],a=[1,10],s=[1,11],d=[1,14],f=[1,15],C=[14,18,22,24],O=[18,22],E=[22,24],P={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(Q,N,Z,ae,pe,fe,X){var oe=fe.length-1;switch(pe){case 1:this.$=new String(Q.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")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(Q),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=fe[oe-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=fe[oe-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[fe[oe-2],fe[oe]];break;case 16:this.$={},this.$[fe[oe][0]]=fe[oe][1];break;case 17:this.$=fe[oe-2],fe[oe-2][fe[oe][0]]=fe[oe][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[fe[oe]];break;case 21:this.$=fe[oe-2],fe[oe-2].push(fe[oe]);break}},table:[{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,12:1,13:2,15:7,16:8,17:d,23:f},{1:[3]},{14:[1,16]},t(C,[2,7]),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(C,[2,11]),t(C,[2,12]),t(C,[2,3]),t(C,[2,4]),t(C,[2,5]),t([14,18,21,22,24],[2,1]),t(C,[2,2]),{3:20,4:r,18:[1,17],19:18,20:19},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:23,15:7,16:8,17:d,23:f,24:[1,21],25:22},{1:[2,6]},t(C,[2,13]),{18:[1,24],22:[1,25]},t(O,[2,16]),{21:[1,26]},t(C,[2,18]),{22:[1,28],24:[1,27]},t(E,[2,20]),t(C,[2,14]),{3:20,4:r,20:29},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:30,15:7,16:8,17:d,23:f},t(C,[2,19]),{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:31,15:7,16:8,17:d,23:f},t(O,[2,17]),t(O,[2,15]),t(E,[2,21])],defaultActions:{16:[2,6]},parseError:function(Q,N){if(N.recoverable)this.trace(Q);else throw new Error(Q)},parse:function(Q){var N=this,Z=[0],ae=[null],pe=[],fe=this.table,X="",oe=0,Ce=0,we=2,Te=1,Pe=pe.slice.call(arguments,1),he=Object.create(this.lexer),$e={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&($e.yy[ye]=this.yy[ye]);he.setInput(Q,$e.yy),$e.yy.lexer=he,$e.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var gt=he.yylloc;pe.push(gt);var yt=he.options&&he.options.ranges;typeof $e.yy.parseError=="function"?this.parseError=$e.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(){var ge;return ge=he.lex()||Te,typeof ge!="number"&&(ge=N.symbols_[ge]||ge),ge}for(var ft,Re,Ve,Xe,Jt={},Ht,bt,Qt,Yt;;){if(Re=Z[Z.length-1],this.defaultActions[Re]?Ve=this.defaultActions[Re]:((ft===null||typeof ft>"u")&&(ft=st()),Ve=fe[Re]&&fe[Re][ft]),typeof Ve>"u"||!Ve.length||!Ve[0]){var ke="";Yt=[];for(Ht in fe[Re])this.terminals_[Ht]&&Ht>we&&Yt.push("'"+this.terminals_[Ht]+"'");he.showPosition?ke="Parse error on line "+(oe+1)+`:
`+he.showPosition()+`
Expecting `+Yt.join(", ")+", got '"+(this.terminals_[ft]||ft)+"'":ke="Parse error on line "+(oe+1)+": Unexpected "+(ft==Te?"end of input":"'"+(this.terminals_[ft]||ft)+"'"),this.parseError(ke,{text:he.match,token:this.terminals_[ft]||ft,line:he.yylineno,loc:gt,expected:Yt})}if(Ve[0]instanceof Array&&Ve.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Re+", token: "+ft);switch(Ve[0]){case 1:Z.push(ft),ae.push(he.yytext),pe.push(he.yylloc),Z.push(Ve[1]),ft=null,Ce=he.yyleng,X=he.yytext,oe=he.yylineno,gt=he.yylloc;break;case 2:if(bt=this.productions_[Ve[1]][1],Jt.$=ae[ae.length-bt],Jt._$={first_line:pe[pe.length-(bt||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(bt||1)].first_column,last_column:pe[pe.length-1].last_column},yt&&(Jt._$.range=[pe[pe.length-(bt||1)].range[0],pe[pe.length-1].range[1]]),Xe=this.performAction.apply(Jt,[X,Ce,oe,$e.yy,Ve[1],ae,pe].concat(Pe)),typeof Xe<"u")return Xe;bt&&(Z=Z.slice(0,-1*bt*2),ae=ae.slice(0,-1*bt),pe=pe.slice(0,-1*bt)),Z.push(this.productions_[Ve[1]][0]),ae.push(Jt.$),pe.push(Jt._$),Qt=fe[Z[Z.length-2]][Z[Z.length-1]],Z.push(Qt);break;case 3:return!0}}return!0}},L=function(){var H={EOF:1,parseError:function(N,Z){if(this.yy.parser)this.yy.parser.parseError(N,Z);else throw new Error(N)},setInput:function(Q,N){return this.yy=N||this.yy||{},this._input=Q,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 Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var N=Q.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var N=Q.length,Z=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var ae=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),Z.length-1&&(this.yylineno-=Z.length-1);var pe=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:Z?(Z.length===ae.length?this.yylloc.first_column:0)+ae[ae.length-Z.length].length-Z[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-N]),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(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),N=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
`+N+"^"},test_match:function(Q,N){var Z,ae,pe;if(this.options.backtrack_lexer&&(pe={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&&(pe.yylloc.range=this.yylloc.range.slice(0))),ae=Q[0].match(/(?:\r\n?|\n).*/g),ae&&(this.yylineno+=ae.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:ae?ae[ae.length-1].length-ae[ae.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,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(Q[0].length),this.matched+=Q[0],Z=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var fe in pe)this[fe]=pe[fe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,N,Z,ae;this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),fe=0;fe<pe.length;fe++)if(Z=this._input.match(this.rules[pe[fe]]),Z&&(!N||Z[0].length>N[0].length)){if(N=Z,ae=fe,this.options.backtrack_lexer){if(Q=this.test_match(Z,pe[fe]),Q!==!1)return Q;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?(Q=this.test_match(N,pe[ae]),Q!==!1?Q:!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 N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>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(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(N,Z,ae,pe){switch(ae){case 0:break;case 1:return 6;case 2:return Z.yytext=Z.yytext.substr(1,Z.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 H}();P.lexer=L;function $(){this.yy={}}return $.prototype=P,P.Parser=$,new $}();typeof dpe<"u"&&(n.parser=e,n.Parser=e.Parser,n.parse=function(){return e.parse.apply(e,arguments)})})(hpe);const WW={StyleExpression:FW,isExpression:UW,isExpressionFilter:wI,createExpression:H4,createPropertyExpression:RW,normalizePropertyExpression:Qfe,ZoomConstantExpression:qO,ZoomDependentExpression:VO,StylePropertyFunction:Lw},GW={convertFunction:Vfe,createFunction:CI,isFunction:vI};var $W=typeof Object.assign=="function"?Object.assign:function(n,e){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(o!=null)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t};function lE(n){return n*Math.PI/180}var mv=function(){for(var n=[],e=78271.51696402048;n.length<=24;e/=2)n.push(e);return n}();function QW(n,e){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(n,e);var t=document.createElement("canvas");return t.width=n,t.height=e,t}function fpe(n,e){for(var t=0,r=e.length;t<r;++t){var i=e[t];if(i<n&&t+1<r){var o=e[t]/e[t+1];return t+Math.log(e[t]/n)/Math.log(o)}}return r-1}var ppe=Array(256).join(" ");function XO(n,e){if(e>=.05){for(var t="",r=n.split(`
`),i=ppe.slice(0,Math.round(e/.1)),o=0,a=r.length;o<a;++o)o>0&&(t+=`
`),t+=r[o].split("").join(i);return t}return n}var uE;function YW(){return uE||(uE=QW(1,1).getContext("2d")),uE}function G0(n,e){return YW().measureText(n).width+(n.length-1)*e}var JO={};KO&&Oo(KO,Wi.CLEAR,function(){JO={}});function eB(n,e,t,r){if(n.indexOf(`
`)!==-1){for(var i=n.split(`
`),o=[],a=0,s=i.length;a<s;++a)o.push(eB(i[a],e,t,r));return o.join(`
`)}var d=t+","+e+","+n+","+r,f=JO[d];if(!f){var C=n.split(" ");if(C.length>1){var O=YW();O.font=e;for(var E=O.measureText("M").width,P=E*t,L="",o=[],a=0,s=C.length;a<s;++a){var $=C[a],H=L+(L?" ":"")+$;G0(H,r)<=P?L=H:(L&&o.push(L),L=$)}L&&o.push(L);for(var a=0,s=o.length;a<s&&s>1;++a){var Q=o[a];if(G0(Q,r)<P*.35){var N=a>0?G0(o[a-1],r):1/0,Z=a<s-1?G0(o[a+1],r):1/0;o.splice(a,1),s-=1,N<Z?(o[a-1]+=" "+Q,a-=1):o[a]=Q+" "+o[a]}}for(var a=0,s=o.length-1;a<s;++a){var ae=o[a],pe=o[a+1];if(G0(ae,r)>P*.7&&G0(pe,r)<P*.6){var fe=ae.split(" "),X=fe.pop();G0(X,r)<P*.2&&(o[a]=fe.join(" "),o[a+1]=X+" "+pe),s-=1}}f=o.join(`
`)}else f=n;f=XO(f,r),JO[d]=f}return f}var mpe=GW.isFunction,gpe=GW.convertFunction,ype=WW.isExpression,vpe=WW.createPropertyExpression,Cpe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},_pe={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},bpe=function(n,e){var t=vpe(n,e);if(t.result==="error")throw new Error(t.value.map(function(r){return"".concat(r.key,": ").concat(r.message)}).join(", "));return t.value},tB={},X4={zoom:0},R2,AE;function Di(n,e,t,r,i,o){var a=n.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});var s=o[a];if(!s[t]){var d=(n[e]||tB)[t],f=uW["".concat(e,"_").concat(n.type)][t];d===void 0&&(d=f.default);var C=ype(d);if(!C&&mpe(d)&&(d=gpe(d,f),C=!0),C){var O=bpe(d,f);s[t]=O.evaluate.bind(O)}else f.type=="color"&&(d=tu.parse(d)),s[t]=function(){return d}}return X4.zoom=r,s[t](X4,i)}function xpe(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=npe(e).filter),X4.zoom=r,i[n](X4,t)}function Om(n,e){if(n){if(n.a===0||e===0)return;var t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}var wpe=/^([^]*)\{(.*)\}([^]*)$/;function cE(n,e){var t;do if(t=n.match(wpe),t){var r=e[t[2]]||"";n=t[1]+r+t[3]}while(t);return n}function Mpe(n,e,t,r,i,o,a){if(r===void 0&&(r=mv),typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");var s,d;if(o){if(typeof Image<"u"){var f=new Image;f.crossOrigin="anonymous",f.onload=function(){s=f,d=[f.width,f.height],n.changed(),f.onload=null},f.src=o}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){var C=self;C.postMessage({action:"loadImage",src:o}),C.addEventListener("message",function(gt){gt.data.action==="imageLoaded"&&gt.data.src===o&&(s=gt.data.image,d=[s.width,s.height])})}}for(var O=cpe(e.layers),E={},P=[],L={},$={},H={},Q={},N,Z=0,ae=O.length;Z<ae;++Z){var pe=O[Z],fe=pe.id;if(typeof t=="string"&&pe.source==t||t.indexOf(fe)!==-1){var X=pe["source-layer"];if(!N){N=pe.source;var oe=e.sources[N];if(!oe)throw new Error('Source "'.concat(N,'" is not defined'));var Ce=oe.type;if(Ce!=="vector"&&Ce!=="geojson")throw new Error('Source "'.concat(N,'" is not of type "vector" or "geojson", but "').concat(Ce,'"'))}var we=E[X];we||(we=[],E[X]=we),we.push({layer:pe,index:Z}),P.push(fe)}}var Te=new e_,Pe=new vy,he=[],$e=function(ye,gt){var yt=ye.getProperties(),st=E[yt.layer];if(st){var ft=r.indexOf(gt);ft==-1&&(ft=fpe(gt,r));for(var Re=Cpe[ye.getGeometry().getType()],Ve={properties:yt,type:Re},Xe=-1,Jt=function(Qt,Yt){var ke=st[Qt],ge=ke.layer,Se=ge.id,ze=ge.layout||tB,it=ge.paint||tB;if(ze.visibility==="none"||"minzoom"in ge&&ft<ge.minzoom||"maxzoom"in ge&&ft>=ge.maxzoom)return"continue";var ot=ge.filter;if(!ot||xpe(Se,ot,Ve,ft,Q)){var St=void 0,Rt=void 0,zt=void 0,mt=void 0,or=void 0,gn=void 0,yn=ke.index;if(Re==3&&(ge.type=="fill"||ge.type=="fill-extrusion"))if(Rt=Di(ge,"paint",ge.type+"-opacity",ft,Ve,H),ge.type+"-pattern"in it){var tr=Di(ge,"paint",ge.type+"-pattern",ft,Ve,H);if(tr){var dr=typeof tr=="string"?cE(tr,yt):tr.toString();if(s&&i&&i[dr]){++Xe,gn=he[Xe],(!gn||!gn.getFill()||gn.getStroke()||gn.getText())&&(gn=new X0({fill:new vy}),he[Xe]=gn),zt=gn.getFill(),gn.setZIndex(yn);var Sr=dr+"."+Rt,Nr=$[Sr];if(!Nr){var yr=i[dr],_i=QW(yr.width,yr.height),Ee=_i.getContext("2d");Ee.globalAlpha=Rt,Ee.drawImage(s,yr.x,yr.y,yr.width,yr.height,0,0,yr.width,yr.height),Nr=Ee.createPattern(_i,"repeat"),$[Sr]=Nr}zt.setColor(Nr)}}}else St=Om(Di(ge,"paint",ge.type+"-color",ft,Ve,H),Rt),ge.type+"-outline-color"in it&&(or=Om(Di(ge,"paint",ge.type+"-outline-color",ft,Ve,H),Rt)),or||(or=St),(St||or)&&(++Xe,gn=he[Xe],(!gn||St&&!gn.getFill()||!St&&gn.getFill()||or&&!gn.getStroke()||!or&&gn.getStroke()||gn.getText())&&(gn=new X0({fill:St?new vy:void 0,stroke:or?new e_:void 0}),he[Xe]=gn),St&&(zt=gn.getFill(),zt.setColor(St)),or&&(mt=gn.getStroke(),mt.setColor(or),mt.setWidth(.5)),gn.setZIndex(yn));if(Re!=1&&ge.type=="line"){St=!("line-pattern"in it)&&"line-color"in it?Om(Di(ge,"paint","line-color",ft,Ve,H),Di(ge,"paint","line-opacity",ft,Ve,H)):void 0;var ee=Di(ge,"paint","line-width",ft,Ve,H);St&&ee>0&&(++Xe,gn=he[Xe],(!gn||!gn.getStroke()||gn.getFill()||gn.getText())&&(gn=new X0({stroke:new e_}),he[Xe]=gn),mt=gn.getStroke(),mt.setLineCap(Di(ge,"layout","line-cap",ft,Ve,H)),mt.setLineJoin(Di(ge,"layout","line-join",ft,Ve,H)),mt.setMiterLimit(Di(ge,"layout","line-miter-limit",ft,Ve,H)),mt.setColor(St),mt.setWidth(ee),mt.setLineDash(it["line-dasharray"]?Di(ge,"paint","line-dasharray",ft,Ve,H).map(function(ii){return ii*ee}):null),gn.setZIndex(yn))}var V=!1,Ke=null,At=0,Bt=void 0,kt=void 0,Dt=void 0;if((Re==1||Re==2)&&"icon-image"in ze){var fn=Di(ge,"layout","icon-image",ft,Ve,H);if(fn){Bt=typeof fn=="string"?cE(fn,yt):fn.toString();v Line truncated
`)return ii.push(`
`,""),ii;if(Re==2){ii.push(XO(Wa,ho),Lr);return}Wa=eB(Wa,Lr,si,ho).split(`
`);for(var vi=0,Ga=Wa.length;vi<Ga;++vi)vi>0&&ii.push(`
`,""),ii.push(Wa[vi],Lr);return ii},[]):ar=cE(Na,yt).trim(),Rt=Di(ge,"paint","text-opacity",ft,Ve,H)}if(ar&&Rt&&!Dt){V||(++Xe,gn=he[Xe],(!gn||!gn.getText()||gn.getFill()||gn.getStroke())&&(gn=new X0,he[Xe]=gn),gn.setImage(void 0),gn.setGeometry(void 0)),gn.getText()||gn.setText(Ke||new $Ae({padding:[2,2,2,2]})),Ke=gn.getText();var Ia=ze["text-transform"];Ia=="uppercase"?ar=Array.isArray(ar)?ar.map(function(li,Jo){return Jo%2?li:li.toUpperCase()}):ar.toUpperCase():Ia=="lowercase"&&(ar=Array.isArray(ar)?ar.map(function(li,Jo){return Jo%2?li:li.toLowerCase()}):ar.toLowerCase());var Ei=Array.isArray(ar)?ar:Re==2?XO(ar,ho):eB(ar,di,si,ho);Ke.setText(Ei),Ke.setFont(di),Ke.setRotation(lE(Di(ge,"layout","text-rotate",ft,Ve,H)));var os=Di(ge,"layout","text-anchor",ft,Ve,H),De=V||Re==1?"point":Di(ge,"layout","symbol-placement",ft,Ve,H);Ke.setPlacement(De),Ke.setOverflow(De==="point");var yi=Di(ge,"paint","text-halo-width",ft,Ve,H),Gn=Di(ge,"layout","text-offset",ft,Ve,H),ro=Di(ge,"paint","text-translate",ft,Ve,H),Co=0,Ri=0;if(De=="point"){var _e="center";os.indexOf("left")!==-1?(_e="left",Ri=yi):os.indexOf("right")!==-1&&(_e="right",Ri=-yi),Ke.setTextAlign(_e);var Je=Di(ge,"layout","text-rotation-alignment",ft,Ve,H);Ke.setRotateWithView(Je=="map")}else Ke.setMaxAngle(lE(Di(ge,"layout","text-max-angle",ft,Ve,H))*ar.length/Ei.length),Ke.setTextAlign(),Ke.setRotateWithView(!1);var Zt="middle";os.indexOf("bottom")==0?(Zt="bottom",Co=-yi-.5*(Ui-1)*to):os.indexOf("top")==0&&(Zt="top",Co=yi+.5*(Ui-1)*to),Ke.setTextBaseline(Zt),Ke.setOffsetX(Gn[0]*to+Ri+ro[0]),Ke.setOffsetY(Gn[1]*to+Co+ro[1]),Pe.setColor(Om(Di(ge,"paint","text-color",ft,Ve,H),Rt)),Ke.setFill(Pe);var ln=Om(Di(ge,"paint","text-halo-color",ft,Ve,H),Rt);if(ln){Te.setColor(ln),yi*=2;var Ft=.5*to;Te.setWidth(yi<=Ft?yi:Ft),Ke.setStroke(Te)}else Ke.setStroke(void 0);var wn=Di(ge,"layout","text-padding",ft,Ve,H),hr=Ke.getPadding();wn!==hr[0]&&(hr[0]=wn,hr[1]=wn,hr[2]=wn,hr[3]=wn),gn.setZIndex(yn)}}},Ht=0,bt=st.length;Ht<bt;++Ht)Jt(Ht);if(Xe>-1)return he.length=Xe+1,he}};return n.setStyle($e),n.set("mapbox-source",N),n.set("mapbox-layers",P),$e}var qW={exports:{}};(function(){var n;qW.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return n},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},n=["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","Enga Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)e.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(XW);var Wpe=XW.exports;const Yf=ma(Wpe);function r1(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="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[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return r1=function(){return a},a}r1();class Gpe extends Mn.Component{render(){r1().f[0]++;const e=(r1().s[0]++,{width:20,height:20,...this.props.style});return r1().s[1]++,this.props.isCollapsed?(r1().b[0][0]++,G.jsx(Kre,{style:e})):(r1().b[0][1]++,G.jsx(Tre,{style:e}))}}function by(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="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[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return by=function(){return a},a}by();class $pe extends Mn.Component{render(){return by().f[0]++,by().s[0]++,G.jsx("li",{className:"maputnik-layer-list-group",children:G.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(by().f[1]++,by().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[G.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),G.jsx("span",{className:"maputnik-space"}),G.jsx(Gpe,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function _b(){return _b=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_b.apply(null,arguments)}function Qpe(n){if(Array.isArray(n))return n}function Ype(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,o,a,s=[],d=!0,f=!1;try{if(o=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;d=!1}else for(;!(d=(r=o.call(t)).done)&&(s.push(r.value),s.length!==e);d=!0);}catch(C){fLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eG(n,e){return Qpe(n)||Ype(n,e)||JW(n,e)||qpe()}function gv(n){"@babel/helpers - typeof";return gv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gv(n)}function Vpe(n,e){if(gv(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(gv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function tG(n){var e=Vpe(n,"string");return gv(e)=="symbol"?e:e+""}function Ea(n,e,t){return(e=tG(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function hE(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ea(n,i,t[i])})}return n}function Vb(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function CP(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,tG(r.key),r)}}function Hb(n,e,t){return e&&CP(n.prototype,e),t&&CP(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function go(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function MI(n,e){if(e&&(gv(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return go(n)}function bb(n){return bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bb(n)}function iB(n,e){return iB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},iB(n,e)}function SI(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&iB(n,e)}var Hpe=function(n,e,t,r,i,o,a,s){if(!n){var d;if(e===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[t,r,i,o,a,s],C=0;d=new Error(e.replace(/%s/g,function(){return f[C++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},Zpe=Hpe;const U1=ma(Zpe);function Xpe(n){if(Array.isArray(n))return rB(n)}function Jpe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function eme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tme(n){return Xpe(n)||Jpe(n)||JW(n)||eme()}var nme=function(){function n(){Vb(this,n),Ea(this,"refs",{})}return Hb(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(rme)}}]),n}();function rme(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function nG(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var zg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},rG=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function j2(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function N2(n,e){n.style["".concat(rG,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function fE(n,e){n.style["".concat(rG,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function r_(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function _P(n,e,t){return Math.max(n,Math.min(t,e))}function xy(n){return n.substr(-2)==="px"?parseFloat(n):0}function ime(n){var e=window.getComputedStyle(n);return{bottom:xy(e.marginBottom),left:xy(e.marginLeft),right:xy(e.marginRight),top:xy(e.marginTop)}}function EI(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function pE(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function DC(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function ome(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function w3(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:w3(n.parentNode,e,r)}}function ame(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function bP(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,o=e,a="px";if(typeof e=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);U1(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),o=parseFloat(e),a=s[1]}return U1(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",e),a==="%"&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function sme(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];U1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=eG(i,2),a=o[0],s=o[1];return[bP({height:e,lockOffset:a,width:t}),bP({height:e,lockOffset:s,width:t})]}function lme(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function iG(n){return n instanceof HTMLElement?lme(n)?n:iG(n.parentNode):null}function ume(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:xy(e.gridColumnGap),y:xy(e.gridRowGap)}:{x:0,y:0}}var $0={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},i1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ame(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=tme(r.querySelectorAll(e));return i.forEach(function(o,a){if(o.type!=="file"&&(o.value=t[a].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===i1.Canvas&&t[a].width>0&&t[a].height>0){var s=o.getContext("2d");s.drawImage(t[a],0,0)}}),r}function cme(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){SI(o,i);function o(){var a,s;Vb(this,o);for(var d=arguments.length,f=new Array(d),C=0;C<d;C++)f[C]=arguments[C];return s=MI(this,(a=bb(o)).call.apply(a,[this].concat(f))),Ea(go(go(s)),"wrappedInstance",Wn.createRef()),s}return Hb(o,[{key:"componentDidMount",value:function(){var s=p0.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return U1(r.with Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var uG=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],t5=uG.join(","),AG=typeof Element>"u",R1=AG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,n5=!AG&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},r5=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&n(e.parentNode);return a},wme=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},cG=function(e,t,r){if(r5(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(t5));return t&&R1.call(e,t5)&&i.unshift(e),i=i.filter(r),i},dG=function n(e,t,r){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!r5(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),d=s.length?s:a.children,f=n(d,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else{var C=R1.call(a,t5);C&&r.filter(a)&&(t||!e.includes(a))&&i.push(a);var O=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),E=!r5(O,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(O&&E){var P=n(O===!0?a.children:O.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:a,candidates:P})}else o.unshift.apply(o,a.children)}}return i},hG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Dm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||wme(e))&&!hG(e)?0:e.tabIndex},Mme=function(e,t){var r=Dm(e);return r<0&&t&&!hG(e)?0:r},Sme=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},fG=function(e){return e.tagName==="INPUT"},Eme=function(e){return fG(e)&&e.type==="hidden"},Ome=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},Bme=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Ime=function(e){if(!e.name)return!0;var t=e.form||n5(e),r=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=Bme(i,e.form);return!o||o===e},kme=function(e){return fG(e)&&e.type==="radio"},Tme=function(e){return kme(e)&&!Ime(e)},Kme=function(e){var t,r=e&&n5(e),i=(t=r)===null||t===void 0?void 0:t.host,o=!1;if(r&&r!==e){var a,s,d;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(d=e.ownerDocument)!==null&&d!==void 0&&d.contains(e));!o&&i;){var f,C,O;r=n5(i),i=(f=r)===null||f===void 0?void 0:f.host,o=!!((C=i)!==null&&C!==void 0&&(O=C.ownerDocument)!==null&&O!==void 0&&O.contains(i))}}return o},wP=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Pme=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=R1.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(R1.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var d=e.parentElement,f=n5(e);if(d&&!d.shadowRoot&&i(d)===!0)return wP(e);e.assignedSlot?e=e.assignedSlot:!d&&f!==e.ownerDocument?e=f.host:e=d}e=s}if(Kme(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return wP(e);return!1},Lme=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return R1.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},i5=function(e,t){return!(t.disabled||r5(t)||Eme(t)||Pme(t,e)||Ome(t)||Lme(t))},aB=function(e,t){return!(Tme(t)||Dm(t)<0||!i5(e,t))},Dme=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Fme=function n(e){var t=[],r=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,d=Mme(s,a),f=a?n(i.candidates):s;d===0?a?t.push.apply(t,f):t.push(s):r.push({documentOrder:o,tabIndex:d,item:i,isScope:a,content:f})}),r.sort(Sme).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.pusLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function MP(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function SP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?MP(Object(t),!0).forEach(function(r){zme(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):MP(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function zme(n,e,t){return e=Nme(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function jme(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Nme(n){var e=jme(n,"string");return typeof e=="symbol"?e:String(e)}var EP={activateTrap:function(e,t){if(e.length>0){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(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},Wme=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Gme=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},S_=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},$me=function(e){return S_(e)&&!e.shiftKey},Qme=function(e){return S_(e)&&e.shiftKey},OP=function(e){return setTimeout(e,0)},BP=function(e,t){var r=-1;return e.every(function(i,o){return t(i)?(r=o,!1):!0}),r},FC=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},W2=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Yme=[],qme=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||Yme,o=SP({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:$me,isKeyBackward:Qme},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,d=function(Pe,he,$e){return Pe&&Pe[he]!==void 0?Pe[he]:o[$e||he]},f=function(Pe,he){var $e=typeof(he==null?void 0:he.composedPath)=="function"?he.composedPath():void 0;return a.containerGroups.findIndex(function(ye){var gt=ye.container,yt=ye.tabbableNodes;return gt.contains(Pe)||($e==null?void 0:$e.includes(gt))||yt.find(function(st){return st===Pe})})},C=function(Pe){var he=o[Pe];if(typeof he=="function"){for(var $e=arguments.length,ye=new Array($e>1?$e-1:0),gt=1;gt<$e;gt++)ye[gt-1]=arguments[gt];he=he.apply(void 0,ye)}if(he===!0&&(he=void 0),!he){if(he===void 0||he===!1)return he;throw new Error("`".concat(Pe,"` was specified but was not a node, or did not return a node"))}var yt=he;if(typeof he=="string"&&(yt=r.querySelector(he),!yt))throw new Error("`".concat(Pe,"` as selector refers to no known node"));return yt},O=function(){var Pe=C("initialFocus");if(Pe===!1)return!1;if(Pe===void 0||!M3(Pe,o.tabbableOptions))if(f(r.activeElement)>=0)Pe=r.activeElement;else{var he=a.tabbableGroups[0],$e=he&&he.firstTabbableNode;Pe=$e||C("fallbackFocus")}if(!Pe)throw new Error("Your focus-trap needs to have at least one focusable element");return Pe},E=function(){if(a.containerGroups=a.containers.map(function(Pe){var he=pG(Pe,o.tabbableOptions),$e=mG(Pe,o.tabbableOptions),ye=he.length>0?he[0]:void 0,gt=he.length>0?he[he.length-1]:void 0,yt=$e.find(function(Re){return J0(Re)}),st=$e.slice().reverse().find(function(Re){return J0(Re)}),ft=!!he.find(function(Re){return Dm(Re)>0});return{container:Pe,tabbableNodes:he,focusableNodes:$e,posTabIndexesFound:ft,firstTabbableNode:ye,lastTabbableNode:gt,firstDomTabbableNode:yt,lastDomTabbableNode:st,nextTabbableNode:function(Ve){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Jt=he.indexOf(Ve);return Jt<0?Xe?$e.slice($e.indexOf(Ve)+1).find(function(Ht){return J0(Ht)}):$e.slice(0,$e.indexOf(Ve)).reverse().find(function(Ht){return J0(Ht)}):he[Jt+(Xe?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(Pe){return Pe.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!C("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(Pe){return Pe.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function Te(Pe){var he=Pe.activeElemeLine truncated
* 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:j0e,expression:N0e,expression_name:W0e,light:G0e,sky:$0e,terrain:Q0e,paint:Y0e,paint_fill:q0e,"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:V0e,paint_circle:H0e,paint_heatmap:Z0e,paint_symbol:X0e,paint_raster:J0e,paint_hillshade:e1e,paint_background:t1e,transition:n1e,"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",doLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jge=Nw(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,o=e.allowMultipleExpanded,a=o===void 0?!1:o,s=e.allowZeroExpanded,d=s===void 0?!1:s;jw(this,n),vs(this,"expanded",void 0),vs(this,"allowMultipleExpanded",void 0),vs(this,"allowZeroExpanded",void 0),vs(this,"toggleExpanded",function(f){if(t.isItemDisabled(f))return t;var C=t.isItemExpanded(f);return C?t.augment({expanded:t.expanded.filter(function(O){return O!==f})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Pge(t.expanded),[f]):[f]})}),vs(this,"isItemDisabled",function(f){var C=t.isItemExpanded(f),O=t.expanded.length===1;return!!(C&&!t.allowZeroExpanded&&O)}),vs(this,"isItemExpanded",function(f){return t.expanded.indexOf(f)!==-1}),vs(this,"getPanelAttributes",function(f,C){var O=C??t.isItemExpanded(f);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(f),id:t.getPanelId(f),hidden:O?void 0:!0}}),vs(this,"getHeadingAttributes",function(){return{role:"heading"}}),vs(this,"getButtonAttributes",function(f,C){var O=C??t.isItemExpanded(f),E=t.isItemDisabled(f);return{id:t.getButtonId(f),"aria-disabled":E,"aria-expanded":O,"aria-controls":t.getPanelId(f),role:"button",tabIndex:0}}),vs(this,"getPanelId",function(f){return"accordion__panel-".concat(f)}),vs(this,"getButtonId",function(f){return"accordion__heading-".concat(f)}),vs(this,"augment",function(f){return new n(mB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},f))}),this.expanded=i,this.allowMultipleExpanded=a,this.allowZeroExpanded=d}),$G=Wn.createContext(null),QG=function(n){FI(t,n);var e=UI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),vs(Bh(r),"state",new jge({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),vs(Bh(r),"toggleExpanded",function(s){r.setState(function(d){return d.toggleExpanded(s)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),vs(Bh(r),"isItemDisabled",function(s){return r.state.isItemDisabled(s)}),vs(Bh(r),"isItemExpanded",function(s){return r.state.isItemExpanded(s)}),vs(Bh(r),"getPanelAttributes",function(s,d){return r.state.getPanelAttributes(s,d)}),vs(Bh(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),vs(Bh(r),"getButtonAttributes",function(s,d){return r.state.getButtonAttributes(s,d)}),r}return Nw(t,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,a=i.allowMultipleExpanded;return Wn.createElement($G.Provider,{value:{allowMultipleExpanded:a,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Wn.PureComponent);vs(QG,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var YG=function(n){FI(t,n);var e=UI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),vs(Bh(r),"renderChildren",function(s){return s?r.props.children(s):null}),r}return Nw(t,[{key:"render",value:function(){return Wn.createElement($G.Consumer,null,this.renderChildren)}}]),t}(Wn.PureComponent),Nge=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Wge=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,o=e.allowZeroExpanded,a=e.onChange,s=e.preExpanded,d=Ww(e,Nge);return Wn.createElement(QG,{preExpanded:s,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:a},Wn.createElement("div",qf({"data-accordion-component":"Accordion",className:r},d)))},vB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(vB||(vB={}));var qG=vB,vE=0;function Gge(){var n=vE;return vE=vE+1,"raa-".concat(n)}var $ge=Wn.useId||Gge,Qge=/[\u0009\u000a\u000c\u000d\u0020]/g;function xb(n){return n===""||Qge.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var VG=Wn.createContext(null),Yge=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,o=e.dangerouslySetExpanded,a=function(){i.toggleExpanded(r)},s=function(f){var C=o??f.isItemExpanded(r),O=f.isItemDisabled(r),E=f.getPanelAttributes(r,o),P=f.getHeadingAttributes(r),L=f.getButtonAttributes(r,o);return Wn.createElement(VG.Provider,{value:{uuid:r,expanded:C,disabled:O,toggleExpanded:a,panelAttributes:E,headingAttributes:P,buttonAttributes:L}},t)};return Wn.createElement(YG,nu Line truncated
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
`,XG=function(n){FI(t,n);var e=UI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),vs(Bh(r),"ref",void 0),vs(Bh(r),"setRef",function(s){r.ref=s}),r}return Nw(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Wn.createElement("div",qf({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(iye)}}]),t}(Wn.PureComponent);vs(XG,"defaultProps",rye);var JG=function(e){return Wn.createElement(Gw,null,function(t){var r=t.headingAttributes;return e.id&&xb(e.id),Wn.createElement(XG,qf({},e,r))})};JG.displayName=qG.AccordionItemHeading;var oye=["className","region","id"],aye=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,o=e.id,a=Ww(e,oye),s=function(f){var C=f.panelAttributes;o&&xb(o);var O=mB(mB({},C),{},{"aria-labelledby":i?C["aria-labelledby"]:void 0});return Wn.createElement("div",qf({"data-accordion-component":"AccordionItemPanel",className:r},a,O,{role:i?"region":void 0}))};return Wn.createElement(Gw,null,s)},CE={exports:{}},QP;function Qw(){return QP||(QP=1,function(n,e){(function(t,r){n.exports=r()})(Dh,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),s=/Edge\/(\d+)/.exec(t),d=o||a||s,f=d&&(o?document.documentMode||6:+(s||a)[1]),C=!s&&/WebKit\//.test(t),O=C&&/Qt\/\d+\.\d+/.test(t),E=!s&&/Chrome\/(\d+)/.exec(t),P=E&&+E[1],L=/Opera\//.test(t),$=/Apple Computer/.test(navigator.vendor),H=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),Q=/PhantomJS/.test(t),N=$&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),Z=/Android/.test(t),ae=N||Z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),pe=N||/Mac/.test(r),fe=/\bCrOS\b/.test(t),X=/win/i.test(r),oe=L&&t.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(L=!1,C=!0);var Ce=pe&&(O||L&&(oe==null||oe<12.11)),we=i||d&&f>=9;function Te(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var Pe=function(A,p){var x=A.className,b=Te(p).exec(x);if(b){var B=x.slice(b.index+b[0].length);A.className=x.slice(0,b.index)+(B?b[1]+B:"")}};function he(A){for(var p=A.childNodes.length;p>0;--p)A.removeChild(A.firstChild);return A}function $e(A,p){return he(A).appendChild(p)}function ye(A,p,x,b){var B=document.createElement(A);if(x&&(B.className=x),b&&(B.style.cssText=b),typeof p=="string")B.appendChild(document.createTextNode(p));else if(p)for(var U=0;U<p.length;++U)B.appendChild(p[U]);return B}function gt(A,p,x,b){var B=ye(A,p,x,b);return B.setAttribute("role","presentation"),B}var yt;document.createRange?yt=function(A,p,x,b){var B=document.createRange();return B.setEnd(b||A,x),B.setStart(A,p),B}:yt=function(A,p,x){var b=document.body.createTextRange();try{b.moveToElementText(A.parentNode)}catch{return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",p),b};function st(A,p){if(p.nodeType==3&&(p=p.parentNode),A.contains)return A.contains(p);do if(p.nodeType==11&&(p=p.host),p==A)return!0;while(p=p.parentNode)}function ft(A){var p=A.ownerDocument||A,x;try{x=A.activeElement}catch{x=p.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function Re(A,p){var x=A.className;Te(p).test(x)||(A.className+=(x?" ":"")+p)}function Ve(A,p){for(var x=A.split(" "),b=0;b<x.length;b++)x[b]&&!Te(x[b]).test(p)&&(p+=" "+x[b]);return p}var Xe=function(A){A.select()};N?Xe=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:d&&(Xe=function(A){try{A.select()}catch{}});function Jt(A){return A.display.wrapper.ownerDocument}function Ht(A){return bt(A.display.wrapper)}function bt(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Qt(A){return Jt(A).defaultView}function Yt(A){var p=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,p)}}function ke(A,p,x){p||(p={});for(var b in A)A.hasOwnProperty(b)&&(x!==!1||!p.hasOwnProperty(b))&&(p[b]=A[b]);return p}function ge(A,p,x,b,B){p==null&&(p=A.search(/[^\s\u00a0]/),p==-1&&(p=A.length));for(var U=b||0,q=B||0;;){var ne=A.indexOf(" ",U);if(ne<0||ne>=p)return q+(p-U);q+=ne-U,q+=x-q%x,U=ne+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=Yt(this.onTimeout,this)};Se.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Se.prototype.set=function(A,p){this.f=p;var x=+new Date+A;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=x)};function ze(A,p){for(var x=0;x<A.length;++x)if(A[x]==p)return x;return-1}var it=50,ot={toString:fu Line truncated
b`.split(/\n/).length!=3?function(A){for(var p=0,x=[],b=A.length;p<=b;){var B=A.indexOf(`
`,p);B==-1&&(B=A.length);var U=A.slice(p,A.charAt(B-1)=="\r"?B-1:B),q=U.indexOf("\r");q!=-1?(x.push(U.slice(0,q)),p+=q+1):(x.push(U),p=B+1)}return x}:function(A){return A.split(/\r\n?|\n/)},cr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var p;try{p=A.ownerDocument.selection.createRange()}catch{}return!p||p.parentElement()!=A?!1:p.compareEndPoints("StartToEnd",p)!=0},Qr=function(){var A=ye("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Br=null;function Fr(A){if(Br!=null)return Br;var p=$e(A,ye("span","x")),x=p.getBoundingClientRect(),b=yt(p,0,1).getBoundingClientRect();return Br=Math.abs(x.left-b.left)>1}var ar={},di={};function Ui(A,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ar[A]=p}function to(A,p){di[A]=p}function ho(A){if(typeof A=="string"&&di.hasOwnProperty(A))A=di[A];else if(A&&typeof A.name=="string"&&di.hasOwnProperty(A.name)){var p=di[A.name];typeof p=="string"&&(p={name:p}),A=Nr(p,A),A.name=p.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return ho("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return ho("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function si(A,p){p=ho(p);var x=ar[p.name];if(!x)return si(A,"text/plain");var b=x(A,p);if(fo.hasOwnProperty(p.name)){var B=fo[p.name];for(var U in B)B.hasOwnProperty(U)&&(b.hasOwnProperty(U)&&(b["_"+U]=b[U]),b[U]=B[U])}if(b.name=p.name,p.helperType&&(b.helperType=p.helperType),p.modeProps)for(var q in p.modeProps)b[q]=p.modeProps[q];return b}var fo={};function Na(A,p){var x=fo.hasOwnProperty(A)?fo[A]:fo[A]={};ke(p,x)}function Ia(A,p){if(p===!0)return p;if(A.copyState)return A.copyState(p);var x={};for(var b in p){var B=p[b];B instanceof Array&&(B=B.concat([])),x[b]=B}return x}function Ei(A,p){for(var x;A.innerMode&&(x=A.innerMode(p),!(!x||x.mode==A));)p=x.state,A=x.mode;return x||{mode:A,state:p}}function os(A,p,x){return A.startState?A.startState(p,x):!0}var yi=function(A,p,x){this.pos=this.start=0,this.string=A,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};yi.prototype.eol=function(){return this.pos>=this.string.length},yi.prototype.sol=function(){return this.pos==this.lineStart},yi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},yi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},yi.prototype.eat=function(A){var p=this.string.charAt(this.pos),x;if(typeof A=="string"?x=p==A:x=p&&(A.test?A.test(p):A(p)),x)return++this.pos,p},yi.prototype.eatWhile=function(A){for(var p=this.pos;this.eat(A););return this.pos>p},yi.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},yi.prototype.skipToEnd=function(){this.pos=this.string.length},yi.prototype.skipTo=function(A){var p=this.string.indexOf(A,this.pos);if(p>-1)return this.pos=p,!0},yi.prototype.backUp=function(A){this.pos-=A},yi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},yi.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},yi.prototype.match=function(A,p,x){if(typeof A=="string"){var b=function(q){return x?q.toLowerCase():q},B=this.string.substr(this.pos,A.length);if(b(B)==b(A))return p!==!1&&(this.pos+=A.length),!0}else{var U=this.string.slice(this.pos).match(A);return U&&U.index>0?null:(U&&p!==!1&&(this.pos+=U[0].length),U)}},yi.prototype.current=function(){return this.string.slice(this.start,this.pos)},yi.prototype.hideFirstChars=function(A,p){this.lineStart+=A;try{return p()}finally{this.lineStart-=A}},yi.prototype.lookAhead=function(A){var p=this.lineOracle;return p&&p.lookAhead(A)},yi.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Gn(A,p){if(p-=A.first,p<0||p>=A.size)throw new Error("There is no line "+(p+A.first)+" in the document.");for(var x=A;!x.lines;)for(var b=0;;++b){var B=x.children[b],U=B.chunkSize();if(p<U){x=B;break}p-=U}return x.lines[p]}function ro(A,p,x){var b=[],B=p.line;return A.iter(p.line,x.line+1,function(U){var q=U.text;B==x.line&&(q=q.slice(0,x.ch)),B==p.line&&(q=q.slice(p.ch)),b.push(q),++B}),b}function Co(A,p,x){var b=[];return A.iter(p,x,function(B){b.push(B.text)}),b}function Ri(A,p){var x=p-A.height;if(x)for(var b=A;b;b=b.parent)b.height+=x}function _e(A){if(A.parent==null)return null;for(var p=A.parent,x=ze(p.lines,A),b=p.parent;b;p=b,b=b.parent)for(var B=0;b.children[B]!=p;++B)x+=b.children[B].chunkSize();return x+p.first}function Je(A,p){var x=A.first;e:do{for(var b=0;b<A.children.length;++b){ Line truncated
`?(cn=Qe.appendChild(ye("span",Ot[0]=="\r"?"␍":"␤","cm-invalidchar")),cn.setAttribute("cm-text",Ot[0]),A.col+=1):(cn=A.cm.options.specialCharPlaceholder(Ot[0]),cn.setAttribute("cm-text",Ot[0]),d&&f<9?Qe.appendChild(ye("span",[cn])):Qe.appendChild(cn),A.col+=1);A.map.push(A.pos,A.pos+1,cn),A.pos++}}if(A.trailingSpace=ne.charCodeAt(p.length-1)==32,x||b||B||ve||U||q){var bn=x||"";b&&(bn+=b),B&&(bn+=B);var Rn=ye("span",[Qe],bn,U);if(q)for(var lr in q)q.hasOwnProperty(lr)&&lr!="style"&&lr!="class"&&Rn.setAttribute(lr,q[lr]);return A.content.appendChild(Rn)}A.content.appendChild(Qe)}}function YA(A,p){if(A.length>1&&!/ /.test(A))return A;for(var x=p,b="",B=0;B<A.length;B++){var U=A.charAt(B);U==" "&&x&&(B==A.length-1||A.charCodeAt(B+1)==32)&&(U=" "),b+=U,x=U==" "}return b}function ra(A,p){return function(x,b,B,U,q,ne,ue){B=B?B+" cm-force-border":"cm-force-border";for(var ve=x.pos,Qe=ve+b.length;;){for(var nt=void 0,Ot=0;Ot<p.length&&(nt=p[Ot],!(nt.to>ve&&nt.from<=ve));Ot++);if(nt.to>=Qe)return A(x,b,B,U,q,ne,ue);A(x,b.slice(0,nt.to-ve),B,U,null,ne,ue),U=null,b=b.slice(nt.to-ve),ve=nt.to}}}function Qu(A,p,x,b){var B=!b&&x.widgetNode;B&&A.map.push(A.pos,A.pos+p,B),!b&&A.cm.display.input.needsContentAttribute&&(B||(B=A.content.appendChild(document.createElement("span"))),B.setAttribute("cm-marker",x.id)),B&&(A.cm.display.input.setUneditable(B),A.content.appendChild(B)),A.pos+=p,A.trailingSpace=!1}function Vd(A,p,x){var b=A.markedSpans,B=A.text,U=0;if(!b){for(var q=1;q<x.length;q+=2)p.addToken(p,B.slice(U,U=x[q]),zh(x[q+1],p.cm.options));return}for(var ne=B.length,ue=0,ve=1,Qe="",nt,Ot,Ct=0,Nt,cn,kn,Vn,bn;;){if(Ct==ue){Nt=cn=kn=Ot="",bn=null,Vn=null,Ct=1/0;for(var Rn=[],lr=void 0,Tr=0;Tr<b.length;++Tr){var _r=b[Tr],fi=_r.marker;if(fi.type=="bookmark"&&_r.from==ue&&fi.widgetNode)Rn.push(fi);else if(_r.from<=ue&&(_r.to==null||_r.to>ue||fi.collapsed&&_r.to==ue&&_r.from==ue)){if(_r.to!=null&&_r.to!=ue&&Ct>_r.to&&(Ct=_r.to,cn=""),fi.className&&(Nt+=" "+fi.className),fi.css&&(Ot=(Ot?Ot+";":"")+fi.css),fi.startStyle&&_r.from==ue&&(kn+=" "+fi.startStyle),fi.endStyle&&_r.to==Ct&&(lr||(lr=[])).push(fi.endStyle,_r.to),fi.title&&((bn||(bn={})).title=fi.title),fi.attributes)for(var Ro in fi.attributes)(bn||(bn={}))[Ro]=fi.attributes[Ro];fi.collapsed&&(!Vn||Ue(Vn.marker,fi)<0)&&(Vn=_r)}else _r.from>ue&&Ct>_r.from&&(Ct=_r.from)}if(lr)for(var qa=0;qa<lr.length;qa+=2)lr[qa+1]==Ct&&(cn+=" "+lr[qa]);if(!Vn||Vn.from==ue)for(var wa=0;wa<Rn.length;++wa)Qu(p,0,Rn[wa]);if(Vn&&(Vn.from||0)==ue){if(Qu(p,(Vn.to==null?ne+1:Vn.to)-ue,Vn.marker,Vn.from==null),Vn.to==null)return;Vn.to==ue&&(Vn=!1)}}if(ue>=ne)break;for(var Fa=Math.min(ne,Ct);;){if(Qe){var As=ue+Qe.length;if(!Vn){var cs=As>Fa?Qe.slice(0,Fa-ue):Qe;p.addToken(p,cs,nt?nt+Nt:Nt,kn,ue+cs.length==Ct?cn:"",Ot,bn)}if(As>=Fa){Qe=Qe.slice(Fa-ue),ue=Fa;break}ue=As,kn=""}Qe=B.slice(U,U=x[ve++]),nt=zh(x[ve++],p.cm.options)}}}function qA(A,p,x){this.line=p,this.rest=Ti(p),this.size=this.rest?_e(yn(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Zr(A,p)}function kc(A,p,x){for(var b=[],B,U=p;U<x;U=B){var q=new qA(A.doc,Gn(A.doc,U),U);B=U+q.size,b.push(q)}return b}var Eu=null;function Ad(A){Eu?Eu.ops.push(A):A.ownsGroup=Eu={ops:[A],delayedCallbacks:[]}}function em(A){var p=A.delayedCallbacks,x=0;do{for(;x<p.length;x++)p[x].call(null);for(var b=0;b<A.ops.length;b++){var B=A.ops[b];if(B.cursorActivityHandlers)for(;B.cursorActivityCalled<B.cursorActivityHandlers.length;)B.cursorActivityHandlers[B.cursorActivityCalled++].call(null,B.cm)}}while(x<p.length)}function jh(A,p){var x=A.ownsGroup;if(x)try{em(x)}finally{Eu=null,p(x)}}var Ki=null;function ko(A,p){var x=Pr(A,p);if(x.length){var b=Array.prototype.slice.call(arguments,2),B;Eu?B=Eu.delayedCallbacks:Ki?B=Ki:(B=Ki=[],setTimeout(C0,0));for(var U=function(ne){B.push(function(){return x[ne].apply(null,b)})},q=0;q<x.length;++q)U(q)}}function C0(){var A=Ki;Ki=null;for(var p=0;p<A.length;++p)A[p]()}function Nh(A,p,x,b){for(var B=0;B<p.changes.length;B++){var U=p.changes[B];U=="text"?ep(A,p):U=="gutter"?VA(A,p,x,b):U=="class"?Gi(A,p):U=="widget"&&To(A,p,b)}p.changes=null}function Yu(A){return A.node==A.text&&(A.node=ye("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),d&&f<8&&(A.node.style.zIndex=2)),A.node}function Jf(A,p){var x=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),p.background)x?p.background.className=x:(p.background.parentNode.removeChild(p.background),p.background=null);else if(x){var b=Yu(p);p.background=b.insertBefore(ye("div",null,x),b.firstChild),A.display.input.setUneditable(p.background)}}function Aa(A,p){var x=A.display.externalMeasured;return x&&x.line==p.line?(A.display.externalMeasured=null,p.measure=x.measure,x.built):ld(A,p)}function ep(A,p){var x=p.text.className,b=Aa(A,p);p.text==p.node&&(p.node=b.pre),p.text.parentNode.replaceChild(b.pre,p.text),p.text=b.pre,b.bgClass!=p.bgClass||b.text Line truncated
top: `+lr+"px; width: "+(Tr??ue-Rn)+`px;
height: `+(_r-lr)+"px"))}function nt(Rn,lr,Tr){var _r=Gn(B,Rn),fi=_r.text.length,Ro,qa;function wa(cs,El){return an(A,Ft(Rn,cs),"div",_r,El)}function Fa(cs,El,tl){var Bs=Ko(A,_r,null,cs),ds=El=="ltr"==(tl=="after")?"left":"right",ha=tl=="after"?Bs.begin:Bs.end-(/\s/.test(_r.text.charAt(Bs.end-1))?2:1);return wa(ha,ds)[ds]}var As=On(_r,B.direction);return kt(As,lr||0,Tr??fi,function(cs,El,tl,Bs){var ds=tl=="ltr",ha=wa(cs,ds?"left":"right"),Is=wa(El-1,ds?"right":"left"),fh=lr==null&&cs==0,dc=Tr==null&&El==fi,js=Bs==0,hc=!As||Bs==As.length-1;if(Is.top-ha.top<=3){var Ns=(ve?fh:dc)&&js,K0=(ve?dc:fh)&&hc,TA=Ns?ne:(ds?ha:Is).left,Nc=K0?ue:(ds?Is:ha).right;Qe(TA,ha.top,Nc-TA,ha.bottom)}else{var Va,nl,ph,fc;ds?(Va=ve&&fh&&js?ne:ha.left,nl=ve?ue:Fa(cs,tl,"before"),ph=ve?ne:Fa(El,tl,"after"),fc=ve&&dc&&hc?ue:Is.right):(Va=ve?Fa(cs,tl,"before"):ne,nl=!ve&&fh&&js?ue:ha.right,ph=!ve&&dc&&hc?ne:Is.left,fc=ve?Fa(El,tl,"after"):ue),Qe(Va,ha.top,nl-Va,ha.bottom),ha.bottom<Is.top&&Qe(ne,ha.bottom,null,Is.top),Qe(ph,Is.top,fc-ph,Is.bottom)}(!Ro||Zu(ha,Ro)<0)&&(Ro=ha),Zu(Is,Ro)<0&&(Ro=Is),(!qa||Zu(ha,qa)<0)&&(qa=ha),Zu(Is,qa)<0&&(qa=Is)}),{start:Ro,end:qa}}var Ot=p.from(),Ct=p.to();if(Ot.line==Ct.line)nt(Ot.line,Ot.ch,Ct.ch);else{var Nt=Gn(B,Ot.line),cn=Gn(B,Ct.line),kn=vr(Nt)==vr(cn),Vn=nt(Ot.line,Ot.ch,kn?Nt.text.length+1:null).end,bn=nt(Ct.line,kn?0:null,Ct.ch).start;kn&&(Vn.top<bn.top-2?(Qe(Vn.right,Vn.top,null,Vn.bottom),Qe(ne,bn.top,bn.left,bn.bottom)):Qe(Vn.right,Vn.top,bn.left-Vn.right,Vn.bottom)),Vn.bottom<bn.top&&Qe(ne,Vn.bottom,null,bn.top)}x.appendChild(U)}function Xu(A){if(A.state.focused){var p=A.display;clearInterval(p.blinker);var x=!0;p.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?p.blinker=setInterval(function(){A.hasFocus()||Dc(A),p.cursorDiv.style.visibility=(x=!x)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}}function Ju(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||eh(A))}function nc(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Dc(A))},100)}function eh(A,p){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(De(A,"focus",A,p),A.state.focused=!0,Re(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),C&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),Xu(A))}function Dc(A,p){A.state.delayingBlurEvent||(A.state.focused&&(De(A,"blur",A,p),A.state.focused=!1,Pe(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function eA(A){for(var p=A.display,x=p.lineDiv.offsetTop,b=Math.max(0,p.scroller.getBoundingClientRect().top),B=p.lineDiv.getBoundingClientRect().top,U=0,q=0;q<p.view.length;q++){var ne=p.view[q],ue=A.options.lineWrapping,ve=void 0,Qe=0;if(!ne.hidden){if(B+=ne.line.height,d&&f<8){var nt=ne.node.offsetTop+ne.node.offsetHeight;ve=nt-x,x=nt}else{var Ot=ne.node.getBoundingClientRect();ve=Ot.bottom-Ot.top,!ue&&ne.text.firstChild&&(Qe=ne.text.firstChild.getBoundingClientRect().right-Ot.left-1)}var Ct=ne.line.height-ve;if((Ct>.005||Ct<-.005)&&(B<b&&(U-=Ct),Ri(ne.line,ve),Mo(ne.line),ne.rest))for(var Nt=0;Nt<ne.rest.length;Nt++)Mo(ne.rest[Nt]);if(Qe>A.display.sizerWidth){var cn=Math.ceil(Qe/qu(A.display));cn>A.display.maxLineLength&&(A.display.maxLineLength=cn,A.display.maxLine=ne.line,A.display.maxLineChanged=!0)}}}Math.abs(U)>2&&(p.scroller.scrollTop+=U)}function Mo(A){if(A.widgets)for(var p=0;p<A.widgets.length;++p){var x=A.widgets[p],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function tA(A,p,x){var b=x&&x.top!=null?Math.max(0,x.top):A.scroller.scrollTop;b=Math.floor(b-Tc(A));var B=x&&x.bottom!=null?x.bottom:b+A.wrapper.clientHeight,U=Je(p,b),q=Je(p,B);if(x&&x.ensure){var ne=x.ensure.from.line,ue=x.ensure.to.line;ne<U?(U=ne,q=Je(p,Io(Gn(p,ne))+A.wrapper.clientHeight)):Math.min(ue,p.lastLine())>=q&&(U=Je(p,Io(Gn(p,ue))-A.wrapper.clientHeight),q=ue)}return{from:U,to:Math.max(q,U+1)}}function hd(A,p){if(!ce(A,"scrollCursorIntoView")){var x=A.display,b=x.sizer.getBoundingClientRect(),B=null,U=x.wrapper.ownerDocument;if(p.top+b.top<0?B=!0:p.bottom+b.top>(U.defaultView.innerHeight||U.documentElement.clientHeight)&&(B=!1),B!=null&&!Q){var q=ye("div","​",null,`position: absolute;
top: `+(p.top-x.viewOffset-Tc(A.display))+`px;
height: `+(p.bottom-p.top+Ou(A)+x.barHeight)+`px;
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");A.display.lineSpace.appendChild(q),q.scrollIntoView(B),A.display.lineSpace.removeChild(q)}}}function rp(A,p,x,b){b==null&&(b=0);var B;!A.options.lineWrapping&&p==x&&(x=p.sticky=="before"?Ft(p.line,p.ch+1,"before"):p,p=p.ch?Ft(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p);for(var U=0;U<5;U++){var q=!1,ne=jt(A,p),ue=!x||x==p?ne:jt(A,x);B={left:Math.min(ne.left,ue.left),top:Math.min(ne.top,ue.top)-b,right:Math.max(ne.left,ue.left),bottom:Math.max(ne.bottom,ue.bottom)+b};var ve=qh(A,B),Qe=A.doc.scrollTop,nt=A.doc.scrollLeft;if(ve.scrollTop!=null&&(Fc(A,ve.scrollTop),Math.abs(A.doc.scrollTop-Qe)>1&&(q=!0)),ve.scrollLeft!=null&&(da(A,ve.scrollLeft),Math.abs(A.doc.scrollLeft-nt)>1&&(q=!0)),!q)break}return B}function Yh(A,p){var x=qh(A,p);x.scrollTop!=null&&Fc(A,x.scrollTop),x.scrollLeft!=null&&da(A,x.scrollLeft)}function qh(A,p){var x=A.display,b=Qa(A.display);p.top<0&&(p.top=0);var B=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:x.scroller.scrollTop,U=ZA(A),q={};p.bottom-p.top>U&&(p.bottom=p.top+U);var ne=A.doc.height+Gh(x),ue=p.top<b,ve=p.bottom>ne-b;if(p.top<B)q.scrollTop=ue?0:p.top;else if(p.bottom>B+U){var Qe=Math.min(p.top,(ve?ne:p.bottom)-U);Qe!=B&&(q.scrollTop=Qe)}var nt=A.options.fixedGutter?0:x.gutters.offsetWidth,Ot=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:x.scroller.scrollLeft-nt,Ct=wA(A)-x.gutters.offsetWidth,Nt=p.right-p.left>Ct;return Nt&&(p.right=p.left+Ct),p.left<10?q.scrollLeft=0:p.left<Ot?q.scrollLeft=Math.max(0,p.left+nt-(Nt?0:10)):p.right>Ct+Ot-3&&(q.scrollLeft=p.right+(Nt?0:10)-Ct),q}function ip(A,p){p!=null&&(Ir(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+p)}function ao(A){Ir(A);var p=A.getCursor();A.curOp.scrollToPos={from:p,to:p,margin:A.options.cursorScrollMargin}}function ca(A,p,x){(p!=null||x!=null)&&Ir(A),p!=null&&(A.curOp.scrollLeft=p),x!=null&&(A.curOp.scrollTop=x)}function xr(A,p){Ir(A),A.curOp.scrollToPos=p}function Ir(A){var p=A.curOp.scrollToPos;if(p){A.curOp.scrollToPos=null;var x=fr(A,p.from),b=fr(A,p.to);OA(A,x,b,p.margin)}}function OA(A,p,x,b){var B=qh(A,{left:Math.min(p.left,x.left),top:Math.min(p.top,x.top)-b,right:Math.max(p.right,x.right),bottom:Math.max(p.bottom,x.bottom)+b});ca(A,B.scrollLeft,B.scrollTop)}function Fc(A,p){Math.abs(A.doc.scrollTop-p)<2||(i||Wl(A,{top:p}),rc(A,p,!0),i&&Wl(A),ac(A,100))}function rc(A,p,x){p=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,p)),!(A.display.scroller.scrollTop==p&&!x)&&(A.doc.scrollTop=p,A.display.scrollbars.setScrollTop(p),A.display.scroller.scrollTop!=p&&(A.display.scroller.scrollTop=p))}function da(A,p,x,b){p=Math.max(0,Math.min(p,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((x?p==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-p)<2)&&!b)&&(A.doc.scrollLeft=p,I(A),A.display.scroller.scrollLeft!=p&&(A.display.scroller.scrollLeft=p),A.display.scrollbars.setScrollLeft(p))}function ic(A){var p=A.display,x=p.gutters.offsetWidth,b=Math.round(A.doc.height+Gh(A.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:A.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Ou(A)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:x}}var ka=function(A,p,x){this.cm=x;var b=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),B=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=B.tabIndex=-1,A(b),A(B),Kt(b,"scroll",function(){b.clientHeight&&p(b.scrollTop,"vertical")}),Kt(B,"scroll",function(){B.clientWidth&&p(B.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ka.prototype.update=function(A){var p=A.scrollWidth>A.clientWidth+1,x=A.scrollHeight>A.clientHeight+1,b=A.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=p?b+"px":"0";var B=A.viewHeight-(p?b:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+B)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=A.barLeft+"px";var U=A.viewWidth-A.barLeft-(x?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&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:p?b:0}},ka.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ka.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&& Line truncated
`},setDirection:_a(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(p){return p.order=null}),this.cm&&qn(this.cm))})}),Os.prototype.eachLine=Os.prototype.iter;var rm=0;function im(A){var p=this;if(w0(p),!(ce(p,A)||Ul(p.display,A))){rt(A),d&&(rm=+new Date);var x=lu(p,A,!0),b=A.dataTransfer.files;if(!(!x||p.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var B=b.length,U=Array(B),q=0,ne=function(){++q==B&&$i(p,function(){x=Lr(p.doc,x);var Ct={from:x,to:x,text:p.doc.splitLines(U.filter(function(Nt){return Nt!=null}).join(p.doc.lineSeparator())),origin:"paste"};cu(p.doc,Ct),Ss(p.doc,Ye(Lr(p.doc,x),Lr(p.doc,He(Ct))))})()},ue=function(Ct,Nt){if(p.options.allowDropFileTypes&&ze(p.options.allowDropFileTypes,Ct.type)==-1){ne();return}var cn=new FileReader;cn.onerror=function(){return ne()},cn.onload=function(){var kn=cn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(kn)){ne();return}U[Nt]=kn,ne()},cn.readAsText(Ct)},ve=0;ve<b.length;ve++)ue(b[ve],ve);else{if(p.state.draggingText&&p.doc.sel.contains(x)>-1){p.state.draggingText(A),setTimeout(function(){return p.display.input.focus()},20);return}try{var Qe=A.dataTransfer.getData("Text");if(Qe){var nt;if(p.state.draggingText&&!p.state.draggingText.copy&&(nt=p.listSelections()),Bi(p.doc,Ye(x,x)),nt)for(var Ot=0;Ot<nt.length;++Ot)IA(p.doc,"",nt[Ot].anchor,nt[Ot].head,"drag");p.replaceSelection(Qe,"around","paste"),p.display.input.focus()}}catch{}}}}function x0(A,p){if(d&&(!A.state.draggingText||+new Date-rm<100)){et(p);return}if(!(ce(A,p)||Ul(A.display,p))&&(p.dataTransfer.setData("Text",A.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!$)){var x=ye("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",L&&(x.width=x.height=1,A.display.wrapper.appendChild(x),x._top=x.offsetTop),p.dataTransfer.setDragImage(x,0,0),L&&x.parentNode.removeChild(x)}}function Qi(A,p){var x=lu(A,p);if(x){var b=document.createDocumentFragment();tc(A,x,b),A.display.dragCursor||(A.display.dragCursor=ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),$e(A.display.dragCursor,b)}}function w0(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function M0(A){if(document.getElementsByClassName){for(var p=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<p.length;b++){var B=p[b].CodeMirror;B&&x.push(B)}x.length&&x[0].operation(function(){for(var U=0;U<x.length;U++)A(x[U])})}}var rf=!1;function om(){rf||(tg(),rf=!0)}function tg(){var A;Kt(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,M0(S0)},100))}),Kt(window,"blur",function(){return M0(Dc)})}function S0(A){var p=A.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,A.setSize()}for(var Da={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},fl=0;fl<10;fl++)Da[fl+48]=Da[fl+96]=String(fl);for(var Cd=65;Cd<=90;Cd++)Da[Cd]=String.fromCharCode(Cd);for(var ah=1;ah<=12;ah++)Da[ah+111]=Da[ah+63235]="F"+ah;var kA={};kA.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},kA.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},kA.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-KLine truncated
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function Rc(A,p){var x=Gn(A.doc,p),b=vr(x);return b!=x&&(p=_e(b)),hp(!0,A,b,p,1)}function rg(A,p){var x=Gn(A.doc,p),b=kr(x);return b!=x&&(p=_e(b)),hp(!0,A,x,p,-1)}function E0(A,p){var x=Rc(A,p.line),b=Gn(A.doc,x.line),B=On(b,A.doc.direction);if(!B||B[0].level==0){var U=Math.max(x.ch,b.text.search(/\S/)),q=p.line==x.line&&p.ch<=U&&p.ch;return Ft(x.line,q?0:U,x.sticky)}return x}function wd(A,p,x){if(typeof p=="string"&&(p=fp[p],!p))return!1;A.display.input.ensurePolled();var b=A.display.shift,B=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),x&&(A.display.shift=!1),B=p(A)!=ot}finally{A.display.shift=b,A.state.suppressEdits=!1}return B}function Qv(A,p,x){for(var b=0;b<A.state.keyMaps.length;b++){var B=Pu(p,A.state.keyMaps[b],x,A);if(B)return B}return A.options.extraKeys&&Pu(p,A.options.extraKeys,x,A)||Pu(p,A.options.keyMap,x,A)}var af=new Se;function pp(A,p,x,b){var B=A.state.keySeq;if(B){if(am(p))return"handled";if(/\'$/.test(p)?A.state.keySeq=null:af.set(50,function(){A.state.keySeq==B&&(A.state.keySeq=null,A.display.input.reset())}),xa(A,B+" "+p,x,b))return!0}return xa(A,p,x,b)}function xa(A,p,x,b){var B=Qv(A,p,b);return B=="multi"&&(A.state.keySeq=p),B=="handled"&&ko(A,"keyHandled",A,p,x),(B=="handled"||B=="multi")&&(rt(x),Xu(A)),!!B}function sf(A,p){var x=_d(p,!0);return x?p.shiftKey&&!A.state.keySeq?pp(A,"Shift-"+x,p,function(b){return wd(A,b,!0)})||pp(A,x,p,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return wd(A,b)}):pp(A,x,p,function(b){return wd(A,b)}):!1}function ig(A,p,x){return pp(A,"'"+x+"'",p,function(b){return wd(A,b,!0)})}var sh=null;function lf(A){var p=this;if(!(A.target&&A.target!=p.display.input.getField())&&(p.curOp.focus=ft(Ht(p)),!ce(p,A))){d&&f<11&&A.keyCode==27&&(A.returnValue=!1);var x=A.keyCode;p.display.shift=x==16||A.shiftKey;var b=sf(p,A);L&&(sh=b?x:null,!b&&x==88&&!Qr&&(pe?A.metaKey:A.ctrlKey)&&p.replaceSelection("",null,"cut")),i&&!pe&&!b&&x==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&el(p)}}function el(A){var p=A.display.lineDiv;Re(p,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Pe(p,"CodeMirror-crosshair"),rr(document,"keyup",x),rr(document,"mouseover",x))}Kt(document,"keyup",x),Kt(document,"mouseover",x)}function sA(A){A.keyCode==16&&(this.doc.sel.shift=!1),ce(this,A)}function O0(A){var p=this;if(!(A.target&&A.target!=p.display.input.getField())&&!(Ul(p.display,A)||ce(p,A)||A.ctrlKey&&!A.altKey||pe&&A.metaKey)){var x=A.keyCode,b=A.charCode;if(L&&x==sh){sh=null,rt(A);return}if(!(L&&(!A.which||A.which<10)&&sf(p,A))){var B=String.fromCharCode(b??x);B!="\b"&&(ig(p,A,B)||p.display.input.onKeyPress(A))}}}var mp=400,Md=function(A,p,x){this.time=A,this.pos=p,this.button=x};Md.prototype.compare=function(A,p,x){return this.time+mp>A&&wn(p,this.pos)==0&&x==this.button};var lA,lh;function og(A,p){var x=+new Date;return lh&&lh.compare(x,A,p)?(lA=lh=null,"triple"):lA&&lA.compare(x,A,p)?(lh=new Md(x,A,p),lA=null,"double"):(lA=new Md(x,A,p),lh=null,"single")}function B0(A){var p=this,x=p.display;if(!(ce(p,A)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=A.shiftKey,Ul(x,A)){C||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Ah(p,A)){var b=lu(p,A),B=tn(A),U=b?og(b,B):"single";Qt(p).focus(),B==1&&p.state.selectingText&&p.state.selectingText(A),!(b&&uf(p,B,b,U,A))&&(B==1?b?uh(p,b,U,A):Mt(A)==x.scroller&&rt(A):B==2?(b&&Js(p.doc,b),setTimeout(function(){return x.input.focus()},20)):B==3&&(we?p.display.input.onContextMenu(A):nc(p)))}}}function uf(A,p,x,b,B){var U="Click";return b=="double"?U="Double"+U:b=="triple"&&(U="Triple"+U),U=(p==1?"Left":p==2?"Middle":"Right")+U,pp(A,cp(U,B),B,function(q){if(typeof q=="string"&&(q=fp[q]),!q)return!1;var ne=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),ne=q(A,x)!=ot}finally{A.state.suppressEdits=!1}return ne})}function Af(A,p,x){var b=A.getOption("configureMouse"),B=b?b(A,p,x):{};if(B.unit==null){var U=fe?x.shiftKey&&x.metaKey:x.altKey;B.unit=U?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(B.extend==null||A.doc.extend)&&(B.extend=A.doc.extend||x.shiftKey),B.addNew==null&&(B.addNew=pe?x.metaKey:x.ctrlKey),B.moveOnDrag==null&&(B.moveOnDrag=!(pe?x.altKey:x.ctrlKey)),B}function uh(A,p,x,b){d?setTimeout(Yt(Ju,A),0):A.curOp.focus=ft(Ht(A));var B=Af(A,x,b),U=A.doc.sel,q;A.options.dragDrop&&qt&&!A.isReadOnly()&&x=="single"&&(q=U.contains(p))>-1&&(wn((q=U.ranges[q]).from(),p)<0||p.xRel>0)&&(wn(q.to(),p)>0||p.xRel<0)?Yv(A,b,p,B):sm(A,b,p,B)}function Yv(A,p,x,b){var B=A.display,U=!1,q=$i(A,function(ve){C&&(B.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:nc(A)),rr(B.wrapper.ownerDocument,"mouseup",q),rr(B.wrapper.ownerDocument,"mousemove",ne),rr(B.scroller,"dragstart",ue),rr(B.scroller,"drop Line truncated
`)==p){if(b.ranges.length%Lu.text.length==0){ve=[];for(var Qe=0;Qe<Lu.text.length;Qe++)ve.push(U.splitLines(Lu.text[Qe]))}}else ue.length==b.ranges.length&&A.options.pasteLinesPerSelection&&(ve=tr(ue,function(Vn){return[Vn]}));for(var nt=A.curOp.updateInput,Ot=b.ranges.length-1;Ot>=0;Ot--){var Ct=b.ranges[Ot],Nt=Ct.from(),cn=Ct.to();Ct.empty()&&(x&&x>0?Nt=Ft(Nt.line,Nt.ch-x):A.state.overwrite&&!ne?cn=Ft(cn.line,Math.min(Gn(U,cn.line).text.length,cn.ch+yn(ue).length)):ne&&Lu&&Lu.lineWise&&Lu.text.join(`
`)==ue.join(`
`)&&(Nt=cn=Ft(Nt.line,0)));var kn={from:Nt,to:cn,text:ve?ve[Ot%ve.length]:ue,origin:B||(ne?"paste":A.state.cutIncoming>q?"cut":"+input")};cu(A.doc,kn),ko(A,"inputRead",A,kn)}p&&!ne&&hm(A,p),ao(A),A.curOp.updateInput<2&&(A.curOp.updateInput=nt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function cc(A,p){var x=A.clipboardData&&A.clipboardData.getData("Text");if(x)return A.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&p.hasFocus()&&us(p,function(){return k0(p,x,0,null,"paste")}),!0}function hm(A,p){if(!(!A.options.electricChars||!A.options.smartIndent))for(var x=A.doc.sel,b=x.ranges.length-1;b>=0;b--){var B=x.ranges[b];if(!(B.head.ch>100||b&&x.ranges[b-1].head.line==B.head.line)){var U=A.getModeAt(B.head),q=!1;if(U.electricChars){for(var ne=0;ne<U.electricChars.length;ne++)if(p.indexOf(U.electricChars.charAt(ne))>-1){q=df(A,B.head.line,"smart");break}}else U.electricInput&&U.electricInput.test(Gn(A.doc,B.head.line).text.slice(0,B.head.ch))&&(q=df(A,B.head.line,"smart"));q&&ko(A,"electricInput",A,B.head.line)}}}function hf(A){for(var p=[],x=[],b=0;b<A.doc.sel.ranges.length;b++){var B=A.doc.sel.ranges[b].head.line,U={anchor:Ft(B,0),head:Ft(B+1,0)};x.push(U),p.push(A.getRange(U.anchor,U.head))}return{text:p,ranges:x}}function zc(A,p,x,b){A.setAttribute("autocorrect",x?"on":"off"),A.setAttribute("autocapitalize",b?"on":"off"),A.setAttribute("spellcheck",!!p)}function hh(){var A=ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),p=ye("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return C?A.style.width="1000px":A.setAttribute("wrap","off"),N&&(A.style.border="1px solid black"),p}function ff(A){var p=A.optionHandlers,x=A.helpers={};A.prototype={constructor:A,focus:function(){Qt(this).focus(),this.display.input.focus()},setOption:function(b,B){var U=this.options,q=U[b];U[b]==B&&b!="mode"||(U[b]=B,p.hasOwnProperty(b)&&$i(this,p[b])(this,B,q),De(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,B){this.state.keyMaps[B?"push":"unshift"](of(b))},removeKeyMap:function(b){for(var B=this.state.keyMaps,U=0;U<B.length;++U)if(B[U]==b||B[U].name==b)return B.splice(U,1),!0},addOverlay:Yr(function(b,B){var U=b.token?b:A.getMode(this.options,b);if(U.startState)throw new Error("Overlays may not be stateful.");dr(this.state.overlays,{mode:U,modeSpec:b,opaque:B&&B.opaque,priority:B&&B.priority||0},function(q){return q.priority}),this.state.modeGen++,Ca(this)}),removeOverlay:Yr(function(b){for(var B=this.state.overlays,U=0;U<B.length;++U){var q=B[U].modeSpec;if(q==b||typeof b=="string"&&q.name==b){B.splice(U,1),this.state.modeGen++,Ca(this);return}}}),indentLine:Yr(function(b,B,U){typeof B!="string"&&typeof B!="number"&&(B==null?B=this.options.smartIndent?"smart":"prev":B=B?"add":"subtract"),Zt(this.doc,b)&&df(this,b,B,U)}),indentSelection:Yr(function(b){for(var B=this.doc.sel.ranges,U=-1,q=0;q<B.length;q++){var ne=B[q];if(ne.empty())ne.head.line>U&&(df(this,ne.head.line,b,!0),U=ne.head.line,q==this.doc.sel.primIndex&&ao(this));else{var ue=ne.from(),ve=ne.to(),Qe=Math.max(U,ue.line);U=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var nt=Qe;nt<U;++nt)df(this,nt,b);var Ot=this.doc.sel.ranges;ue.ch==0&&B.length==Ot.length&&Ot[q].from().ch>0&&Ms(this.doc,q,new Oe(ue,Ot[q].to()),St)}}}),getTokenAt:function(b,B){return _A(this,b,B)},getLineTokens:function(b,B){return _A(this,Ft(b),B,!0)},getTokenTypeAt:function(b){b=Lr(this.doc,b);var B=as(this,Gn(this.doc,b.line)),U=0,q=(B.length-1)/2,ne=b.ch,ue;if(ne==0)ue=B[2];else for(;;){var ve=U+q>>1;if((ve?B[ve*2-1]:0)>=ne)q=ve;else if(B[ve*2+1]<ne)U=ve+1;else{ue=B[ve*2+2];break}}var Qe=ue?ue.indexOf("overlay "):-1;return Qe<0?ue:Qe==0?null:ue.slice(0,Qe-1)},getModeAt:function(b){var B=this.doc.mode;return B.innerMode?A.innerMode(B,this.getTokenAt(b).state).mode:B},getHelper:function(b,B){return this.getHelpers(b,B)[0]},getHelpers:function(b,B){var U=[];if(!x.hasOwnProperty(B))return U;var q=x[B],ne=this.getModeAt(b);if(typeof ne[B]=="string")q[ne[B]]&&U.push(q[ne[B]]);else if(ne[B])for(var ue=0;ue<ne[B].length;ue++){var ve=q[ne[B][ue]];ve&&U.push(ve)}else ne.helperType&&q[ne.helperType]?U.push(q[ne.helperType]):q[ne.name]&&U.push(q[ne.name]);for(var Qe=0;Qe<q._global.length;Qe++){var nt=q._global[Qe];nt.pred(ne,this)&&ze(U,nt.val)==-1&&U.push(nt.val)}return U},getStateAfter:function(b,B){var U=this.doc;return b=Ka(U,b??U.first+U.size-1),ta(this,b+1,B).state},cursorCoords:function(b,B){var U,q=this.doc.sel.primary();return b==null?U=q.head:typeof b=="object"?U=Lr(this.doc,b):U=b?q.from():q.to(),jt(this,U,B||"page")},charCoords:function(b,B){return an(this,Lr(this.doc,b),B||"page")},coordsChar:function(b,B){return b=Et(this,b,B||"page"),oo(this,b.left,b.top)},lineAtHeight:function(b,B){return b=Et(this,{top:b,left:0},B||"page").top,Je(this.doc,b+this.display.viewOffset)}, Line truncated
`,kn=Ee(cn,Ct)?"w":Ot&&cn==`
`?"n":!Ot||/\s/.test(cn)?null:"p";if(Ot&&!Nt&&!kn&&(kn="s"),nt&&nt!=kn){x<0&&(x=1,Qe(),p.sticky="after");break}if(kn&&(nt=kn),x>0&&!Qe(!Nt))break}var Vn=Es(A,p,U,q,!0);return hr(U,Vn)&&(Vn.hitSide=!0),Vn}function pf(A,p,x,b){var B=A.doc,U=p.left,q;if(b=="page"){var ne=Math.min(A.display.wrapper.clientHeight,Qt(A).innerHeight||B(A).documentElement.clientHeight),ue=Math.max(ne-.5*Qa(A.display),3);q=(x>0?p.bottom:p.top)+x*ue}else b=="line"&&(q=x>0?p.bottom+3:p.top-3);for(var ve;ve=oo(A,U,q),!!ve.outside;){if(x<0?q<=0:q>=B.height){ve.hitSide=!0;break}q+=x*5}return ve}var So=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(A){var p=this,x=this,b=x.cm,B=x.div=A.lineDiv;B.contentEditable=!0,zc(B,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function U(ne){for(var ue=ne.target;ue;ue=ue.parentNode){if(ue==B)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ue.className))break}return!1}Kt(B,"paste",function(ne){!U(ne)||ce(b,ne)||cc(ne,b)||f<=11&&setTimeout($i(b,function(){return p.updateFromDOM()}),20)}),Kt(B,"compositionstart",function(ne){p.composing={data:ne.data,done:!1}}),Kt(B,"compositionupdate",function(ne){p.composing||(p.composing={data:ne.data,done:!1})}),Kt(B,"compositionend",function(ne){p.composing&&(ne.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Kt(B,"touchstart",function(){return x.forceCompositionEnd()}),Kt(B,"input",function(){p.composing||p.readFromDOMSoon()});function q(ne){if(!(!U(ne)||ce(b,ne))){if(b.somethingSelected())dm({lineWise:!1,text:b.getSelections()}),ne.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ue=hf(b);dm({lineWise:!0,text:ue.text}),ne.type=="cut"&&b.operation(function(){b.setSelections(ue.ranges,0,St),b.replaceSelection("",null,"cut")})}else return;if(ne.clipboardData){ne.clipboardData.clearData();var ve=Lu.text.join(`
`);if(ne.clipboardData.setData("Text",ve),ne.clipboardData.getData("Text")==ve){ne.preventDefault();return}}var Qe=hh(),nt=Qe.firstChild;zc(nt),b.display.lineSpace.insertBefore(Qe,b.display.lineSpace.firstChild),nt.value=Lu.text.join(`
`);var Ot=ft(bt(B));Xe(nt),setTimeout(function(){b.display.lineSpace.removeChild(Qe),Ot.focus(),Ot==B&&x.showPrimarySelection()},50)}}Kt(B,"copy",q),Kt(B,"cut",q)},So.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},So.prototype.prepareSelection=function(){var A=Jn(this.cm,!1);return A.focus=ft(bt(this.div))==this.div,A},So.prototype.showSelection=function(A,p){!A||!this.cm.display.view.length||((A.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(A))},So.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},So.prototype.showPrimarySelection=function(){var A=this.getSelection(),p=this.cm,x=p.doc.sel.primary(),b=x.from(),B=x.to();if(p.display.viewTo==p.display.viewFrom||b.line>=p.display.viewTo||B.line<p.display.viewFrom){A.removeAllRanges();return}var U=zs(p,A.anchorNode,A.anchorOffset),q=zs(p,A.focusNode,A.focusOffset);if(!(U&&!U.bad&&q&&!q.bad&&wn(Jo(U,q),b)==0&&wn(li(U,q),B)==0)){var ne=p.display.view,ue=b.line>=p.display.viewFrom&&Sd(p,b)||{node:ne[0].measure.map[2],offset:0},ve=B.line<p.display.viewTo&&Sd(p,B);if(!ve){var Qe=ne[ne.length-1].measure,nt=Qe.maps?Qe.maps[Qe.maps.length-1]:Qe.map;ve={node:nt[nt.length-1],offset:nt[nt.length-2]-nt[nt.length-3]}}if(!ue||!ve){A.removeAllRanges();return}var Ot=A.rangeCount&&A.getRangeAt(0),Ct;try{Ct=yt(ue.node,ue.offset,ve.offset,ve.node)}catch{}Ct&&(!i&&p.state.focused?(A.collapse(ue.node,ue.offset),Ct.collapsed||(A.removeAllRanges(),A.addRange(Ct))):(A.removeAllRanges(),A.addRange(Ct)),Ot&&A.anchorNode==null?A.addRange(Ot):i&&this.startGracePeriod()),this.rememberSelection()}},So.prototype.startGracePeriod=function(){var A=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){A.gracePeriod=!1,A.selectionChanged()&&A.cm.operation(function(){return A.cm.curOp.selectionChanged=!0})},20)},So.prototype.showMultipleSelections=function(A){$e(this.cm.display.cursorDiv,A.cursors),$e(this.cm.display.selectionDiv,A.selection)},So.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},So.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var p=A.getRangeAt(0).commonAncestorContainer;return st(this.div,p)},So.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ft(bt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},So.prototype.blur=function(){this.div.blur()},So.prototype.getField=function(){return this.div},So.prototype.supportsTouch=function(){return!0},So.prototype.receivedFocus=function(){var A=this,p=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):us(this.cm,function(){return p.cm.curOp.selectionChanged=!0});function x(){p.cm.state.focused&&(p.pollSelection(),p.polling.set(p.cm.options.pollInterval,x))}this.polling.set(this.cm.options.pollInterval,x)},So.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},So.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),p=this.cm;if(Z&&E&&this.cm.display.gutterSpecs.length&&vp(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=zs(p,A.anchorNode,A.anchorOffset),b=zs(p,A.focusNode,A.focusOffset);x&&b&&us(p,function(){zi(p.doc,Ye(x,b),St),(x.bad||b.bad)&&(p.curOp.selectionChanged=!0)})}}},So.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,p=A.display,x=A.doc.sel.primary(),b=x.from(),B=x.to();if(b.ch==0&&b.line>A.firstLine()&&(b=Ft(b.line-1,Gn(A.doc,b.line-1).length)),B.ch==Gn(A.doc,B.line).text.length&&B.line<A.lastLine()&&(B=Ft(B.line+1,0)),b.line<p.viewFrom||B.line>p.viewTo-1)return!1;var U,q,ne;b.line==p.viewFrom||(U=JA(A,b.line))==0?(q=_e(p.view[0].line),ne=p.view[0].node):(q=_e(p.view[U].line),ne=p.view[U-1].node.nextSibling);var ue=JA(A,B.line),ve,Qe;if(ue==p.view.length-1?(ve=p.viewTo-1,Qe=p.lineDiv.lastChild):(ve=_e(p.view[ue+1].line)-1,Qe=p.view[ue+1].node.previousSibling),!ne)return!1;for(var nt=A.doc.splitLines(ug(A,ne,Qe,q,ve)),Ot=ro(A.doc,Ft(q,0),Ft(ve,Gn(A.doc,ve).text.length));nt.length>1&&Ot.length>1;)if(yn(nt)==yn(Ot))nt.pop(),Ot.pop(),ve--;else if(nt[0]==Ot[0])nt.shift(),Ot.shift(),q++;else break;for(var Ct=0,Nt=0,cn=nt[0],kn=Ot[0],Vn=Math.min(cn.length,kn.length);Ct<Vn&&cn.charCodeAt(Ct)==kn.charCodeAt(Ct);)++Ct;for(var bn=yn(nt),Rn=yn(Ot),lr=Math.min(bn.length-(nt.length==1?Ct:0),Rn.length-(Ot.length==1?Ct:0 Line truncated
`),Xe(B))}else return;q.type=="cut"&&(b.state.cutIncoming=+new Date)}}Kt(B,"cut",U),Kt(B,"copy",U),Kt(A.scroller,"paste",function(q){if(!(Ul(A,q)||ce(b,q))){if(!B.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ne=new Event("paste");ne.clipboardData=q.clipboardData,B.dispatchEvent(ne)}}),Kt(A.lineSpace,"selectstart",function(q){Ul(A,q)||rt(q)}),Kt(B,"compositionstart",function(){var q=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:q,range:b.markText(q,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(B,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Ya.prototype.createField=function(A){this.wrapper=hh(),this.textarea=this.wrapper.firstChild;var p=this.cm.options;zc(this.textarea,p.spellcheck,p.autocorrect,p.autocapitalize)},Ya.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},Ya.prototype.prepareSelection=function(){var A=this.cm,p=A.display,x=A.doc,b=Jn(A);if(A.options.moveInputWithCursor){var B=jt(A,x.sel.primary().head,"div"),U=p.wrapper.getBoundingClientRect(),q=p.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,B.top+q.top-U.top)),b.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,B.left+q.left-U.left))}return b},Ya.prototype.showSelection=function(A){var p=this.cm,x=p.display;$e(x.cursorDiv,A.cursors),$e(x.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},Ya.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var p=this.cm;if(this.resetting=!0,p.somethingSelected()){this.prevInput="";var x=p.getSelection();this.textarea.value=x,p.state.focused&&Xe(this.textarea),d&&f>=9&&(this.hasSelection=x)}else A||(this.prevInput=this.textarea.value="",d&&f>=9&&(this.hasSelection=null));this.resetting=!1}},Ya.prototype.getField=function(){return this.textarea},Ya.prototype.supportsTouch=function(){return!1},Ya.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ae||ft(bt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ya.prototype.blur=function(){this.textarea.blur()},Ya.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ya.prototype.receivedFocus=function(){this.slowPoll()},Ya.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},Ya.prototype.fastPoll=function(){var A=!1,p=this;p.pollingFast=!0;function x(){var b=p.poll();!b&&!A?(A=!0,p.polling.set(60,x)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,x)},Ya.prototype.poll=function(){var A=this,p=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||this.resetting||!p.state.focused||cr(x)&&!b&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var B=x.value;if(B==b&&!p.somethingSelected())return!1;if(d&&f>=9&&this.hasSelection===B||pe&&/[\uf700-\uf7ff]/.test(B))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var U=B.charCodeAt(0);if(U==8203&&!b&&(b="​"),U==8666)return this.reset(),this.cm.execCommand("undo")}for(var q=0,ne=Math.min(b.length,B.length);q<ne&&b.charCodeAt(q)==B.charCodeAt(q);)++q;return us(p,function(){k0(p,B.slice(q),b.length-q,null,A.composing?"*compose":null),B.length>1e3||B.indexOf(`
`)>-1?x.value=A.prevInput="":A.prevInput=B,A.composing&&(A.composing.range.clear(),A.composing.range=p.markText(A.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ya.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ya.prototype.onKeyPress=function(){d&&f>=9&&(this.hasSelection=null),this.fastPoll()},Ya.prototype.onContextMenu=function(A){var p=this,x=p.cm,b=x.display,B=p.textarea;p.contextMenuPending&&p.contextMenuPending();var U=lu(x,A),q=b.scroller.scrollTop;if(!U||L)return;var ne=x.options.resetSelectionOnContextMenu;ne&&x.doc.sel.contains(U)==-1&&$i(x,zi)(x.doc,Ye(U),St);var ue=B.style.cssText,ve=p.wrapper.style.cssText,Qe=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",B.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(A.clientY-Qe.top-5)+"px; left: "+(A.clientX-Qe.left-5)+`px;
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nt;C&&(nt=B.ownerDocument.defaultView.scrollY),b.input.focus(),C&&B.ownerDocument.defaultView.scrollTo(null,nt),b.input.reset(),x.somethingSelected()||(B.value=p.prevInput=" "),p.contextMenuPending=Ct,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ot(){if(B.selectionStart!=null){var cn=x.somethingSelected(),kn="​"+(cn?B.value:"");B.value="⇚",B.value=kn,p.prevInput=cn?"":"​",B.selectionStart=1,B.selectionEnd=kn.length,b.selForContextMenu=x.doc.sel}}function Ct(){if(p.contextMenuPending==Ct&&(p.contextMenuPending=!1,p.wrapper.style.cssText=ve,B.style.cssText=ue,d&&f<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=q),B.selectionStart!=null)){(!d||d&&f<9)&&Ot();var cn=0,kn=function(){b.selForContextMenu==x.doc.sel&&B.selectionStart==0&&B.selectionEnd>0&&p.prevInput=="​"?$i(x,uc)(x):cn++<10?b.detectingSelectAll=setTimeout(kn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(kn,200)}}if(d&&f>=9&&Ot(),we){et(A);var Nt=function(){rr(window,"mouseup",Nt),setTimeout(Ct,20)};Kt(window,"mouseup",Nt)}else setTimeout(Ct,50)},Ya.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},Ya.prototype.setUneditable=function(){},Ya.prototype.needsContentAttribute=!1;function Ag(A,p){if(p=p?ke(p):{},p.value=A.value,!p.tabindex&&A.tabIndex&&(p.tabindex=A.tabIndex),!p.placeholder&&A.placeholder&&(p.placeholder=A.placeholder),p.autofocus==null){var x=ft(bt(A));p.autofocus=x==A||A.getAttribute("autofocus")!=null&&x==document.body}function b(){A.value=ne.getValue()}var B;if(A.form&&(Kt(A.form,"submit",b),!p.leaveSubmitMethodAlone)){var U=A.form;B=U.submit;try{var q=U.submit=function(){b(),U.submit=B,U.submit(),U.submit=q}}catch{}}p.finishInit=function(ue){ue.save=b,ue.getTextArea=function(){return A},ue.toTextArea=function(){ue.toTextArea=isNaN,b(),A.parentNode.removeChild(ue.getWrapperElement()),A.style.display="",A.form&&(rr(A.form,"submit",b),!p.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=B))}},A.style.display="none";var ne=_o(function(ue){return A.parentNode.insertBefore(ue,A.nextSibling)},p);return ne}function Vv(A){A.off=rr,A.on=Kt,A.wheelEventPixels=ie,A.Doc=Os,A.splitLines=Or,A.countColumn=ge,A.findColumn=mt,A.isWordChar=_i,A.Pass=ot,A.signal=De,A.Line=Fl,A.changeEnd=He,A.scrollbarModel=Qo,A.Pos=Ft,A.cmpPos=wn,A.modes=ar,A.mimeModes=di,A.resolveMode=ho,A.getMode=si,A.modeExtensions=fo,A.extendMode=Na,A.copyState=Ia,A.startState=os,A.innerMode=Ei,A.commands=fp,A.keyMap=kA,A.keyName=_d,A.isModifierKey=am,A.lookupKey=Pu,A.normalizeKeyMap=Ku,A.StringStream=yi,A.SharedTextMarker=ih,A.TextMarker=du,A.LineWidget=aA,A.e_preventDefault=rt,A.e_stopPropagation=lt,A.e_stop=et,A.addClass=Re,A.contains=st,A.rmClass=Pe,A.keyNames=Da}I0(_o),ff(_o);var T0="iter insert remove copy getEditor constructor".split(" ");for(var mf in Os.prototype)Os.prototype.hasOwnProperty(mf)&&ze(T0,mf)<0&&(_o.prototype[mf]=function(A){return function(){return A.apply(this.doc,arguments)}}(Os.prototype[mf]));return je(Os),_o.inputStyles={textarea:Ya,contenteditable:So},_o.defineMode=function(A){!_o.defaults.mode&&A!="null"&&(_o.defaults.mode=A),Ui.apply(this,arguments)},_o.defineMIME=to,_o.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),_o.defineMIME("text/plain","null"),_o.defineExtension=function(A,p){_o.prototype[A]=p},_o.defineDocExtension=function(A,p){Os.prototype[A]=p},_o.fromTextArea=Ag,Vv(_o),_o.version="5.65.16",_o})}(CE)),CE.exports}var sye=Qw();const qc=ma(sye);(function(n,e){(function(t){t(Qw())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,d=i.json||s,f=i.trackScope!==!1,C=i.typescript,O=i.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function _e(ii){return{type:ii,style:"keyword"}}var Je=_e("keyword a"),Zt=_e("keyword b"),ln=_e("keyword c"),Ft=_e("keyword d"),wn=_e("operator"),hr={type:"atom",style:"atom"};return{if:_e("if"),while:Je,with:Je,else:Zt,do:Zt,try:Zt,finally:Zt,return:Ft,break:Ft,continue:Ft,new:_e("new"),delete:ln,void:ln,throw:ln,debugger:_e("debugger"),var:_e("var"),const:_e("var"),let:_e("var"),function:_e("function"),catch:_e("catch"),for:_e("for"),switch:_e("switch"),case:_e("case"),default:_e("default"),in:wn,typeof:wn,instanceof:wn,true:hr,false:hr,null:hr,undefined:hr,NaN:hr,Infinity:hr,this:_e("this"),class:_e("class"),super:_e("atom"),yield:ln,export:_e("export"),import:_e("import"),extends:ln,await:ln}}(),P=/[+\-*&%=<>!?|~^@]/,L=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function $(_e){for(var Je=!1,Zt,ln=!1;(Zt=_e.next())!=null;){if(!Je){if(Zt=="/"&&!ln)return;Zt=="["?ln=!0:ln&&Zt=="]"&&(ln=!1)}Je=!Je&&Zt=="\\"}}var H,Q;function N(_e,Je,Zt){return H=_e,Q=Zt,Je}function Z(_e,Je){var Zt=_e.next();if(Zt=='"'||Zt=="'")retur Line truncated
${O}`),$].join(`
${s}`)}return f}(n,"",0)}function uye(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var t$={};(function(n){var e=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,a,s,d,f,C,O){var E=C.length-1;switch(f){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.$=C[E-1];case 13:this.$={};break;case 14:this.$=C[E-1];break;case 15:this.$=[C[E-2],C[E]];break;case 16:this.$={},this.$[C[E][0]]=C[E][1];break;case 17:this.$=C[E-2],C[E-2][C[E][0]]=C[E][1];break;case 18:this.$=[];break;case 19:this.$=C[E-1];break;case 20:this.$=[C[E]];break;case 21:this.$=C[E-2],C[E-2].push(C[E]);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,a){throw new Error(o)},parse:function(o){var a=this,s=[0],d=[null],f=[],C=this.table,O="",E=0,P=0,L=0,$=2,H=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Q=this.lexer.yylloc;f.push(Q),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function N(ye){s.length=s.length-2*ye,d.length=d.length-ye,f.length=f.length-ye}function Z(){var ye;return ye=a.lexer.lex()||1,typeof ye!="number"&&(ye=a.symbols_[ye]||ye),ye}for(var ae,pe,fe,X,oe,Ce={},we,Te,Pe,he;;){if(fe=s[s.length-1],this.defaultActions[fe]?X=this.defaultActions[fe]:(ae==null&&(ae=Z()),X=C[fe]&&C[fe][ae]),typeof X>"u"||!X.length||!X[0]){if(!L){he=[];for(we in C[fe])this.terminals_[we]&&we>2&&he.push("'"+this.terminals_[we]+"'");var $e="";this.lexer.showPosition?$e="Parse error on line "+(E+1)+`:
`+this.lexer.showPosition()+`
Expecting `+he.join(", ")+", got '"+this.terminals_[ae]+"'":$e="Parse error on line "+(E+1)+": Unexpected "+(ae==1?"end of input":"'"+(this.terminals_[ae]||ae)+"'"),this.parseError($e,{text:this.lexer.match,token:this.terminals_[ae]||ae,line:this.lexer.yylineno,loc:Q,expected:he})}if(L==3){if(ae==H)throw new Error($e||"Parsing halted.");P=this.lexer.yyleng,O=this.lexer.yytext,E=this.lexer.yylineno,Q=this.lexer.yylloc,ae=Z()}for(;!($.toString()in C[fe]);){if(fe==0)throw new Error($e||"Parsing halted.");N(1),fe=s[s.length-1]}pe=ae,ae=$,fe=s[s.length-1],X=C[fe]&&C[fe][$],L=3}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+ae);switch(X[0]){case 1:s.push(ae),d.push(this.lexer.yytext),f.push(this.lexer.yylloc),s.push(X[1]),ae=null,pe?(ae=pe,pe=null):(P=this.lexer.yyleng,O=this.lexer.yytext,E=this.lexer.yylineno,Q=this.lexer.yylloc,L>0&&L--);break;case 2:if(Te=this.productions_[X[1]][1],Ce.$=d[d.length-Te],Ce._$={first_line:f[f.length-(Te||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(Te||1)].first_column,last_column:f[f.length-1].last_column},oe=this.performAction.call(Ce,O,P,E,this.yy,X[1],d,f),typeof oe<"u")return oe;Te&&(s=s.slice(0,-1*Te*2),d=d.slice(0,-1*Te),f=f.slice(0,-1*Te)),s.push(this.productions_[X[1]][0]),d.push(Ce.$),f.push(Ce._$),Pe=C[s[s.length-2]][s[s.length-1]],s.push(Pe);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(a,s){if(this.yy.parseError)this.yy.parseError(a,s);else throw new Error(a)},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 a=o.match(/\n/);return a&&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(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,s,d,f;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),O=0;O<C.length&&(s=this._input.match(this.rules[C[O]]),!(s&&(!a||s[0].length>a[0].length)&&(a=s,d=O,!this.options.flex)));O++);if(a)return f=a[0].match(/\n.*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-1:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,C[d],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 a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},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(a){this.begin(a)}};return i.options={},i.performAction=function(a,s,d,f){switch(d){case 0:break;case 1:return 6;case 2:return s.yytext=s.yytext.substr(1,s.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 uye<"u"&&(n.parser=e,n.parse=e.parse.bind(e))})(t$);const CB=ma(t$);var n$={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Dh,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(ge,Se){return Se={exports:{}},ge(Se,Se.exports),Se.exports}var i=r(function(ge){function Se(){var ze=0,it=1,ot=2,St=3,Rt=4,zt=5,mt=6,or=7,gn=8,yn=9,tr=10,dr=11,Sr=12,Nr=13,yr=14,_i=15,Ee=16,ee=17,V=0,Ke=1,At=2,Bt=3,kt=4;function Dt(g,Kt){return 55296<=g.charCodeAt(Kt)&&g.charCodeAt(Kt)<=56319&&56320<=g.charCodeAt(Kt+1)&&g.charCodeAt(Kt+1)<=57343}function fn(g,Kt){Kt===void 0&&(Kt=0);var Pr=g.charCodeAt(Kt);if(55296<=Pr&&Pr<=56319&&Kt<g.length-1){var rr=Pr,De=g.charCodeAt(Kt+1);return 56320<=De&&De<=57343?(rr-55296)*1024+(De-56320)+65536:rr}if(56320<=Pr&&Pr<=57343&&Kt>=1){var rr=g.charCodeAt(Kt-1),De=Pr;return 55296<=rr&&rr<=56319?(rr-55296)*1024+(De-56320)+65536:De}return Pr}function Pn(g,Kt,Pr){var rr=[g].concat(Kt).concat([Pr]),De=rr[rr.length-2],ce=Pr,xe=rr.lastIndexOf(yr);if(xe>1&&rr.slice(1,xe).every(function(rt){return rt==St})&&[St,Nr,ee].indexOf(g)==-1)return At;var Ie=rr.lastIndexOf(Rt);if(Ie>0&&rr.slice(1,Ie).every(function(rt){return rt==Rt})&&[Sr,Rt].indexOf(De)==-1)return rr.filter(function(rt){return rt==Rt}).length%2==1?Bt:kt;if(De==ze&&ce==it)return V;if(De==ot||De==ze||De==it)return ce==yr&&Kt.every(function(rt){return rt==St})?At:Ke;if(ce==ot||ce==ze||ce==it)return Ke;if(De==mt&&(ce==mt||ce==or||ce==yn||ce==tr))return V;if((De==yn||De==or)&&(ce==or||ce==gn))return V;if((De==tr||De==gn)&&ce==gn)return V;if(ce==St||ce==_i)return V;if(ce==zt)return V;if(De==Sr)return V;var je=rr.indexOf(St)!=-1?rr.lastIndexOf(St)-1:rr.length-2;return[Nr,ee].indexOf(rr[je])!=-1&&rr.slice(je+1,-1).every(function(rt){return rt==St})&&ce==yr||De==_i&&[Ee,ee].indexOf(ce)!=-1?V:Kt.indexOf(Rt)!=-1?At:De==Rt&&ce==Rt?V:Ke}this.nextBreak=function(g,Kt){if(Kt===void 0&&(Kt=0),Kt<0)return 0;if(Kt>=g.length-1)return g.length;for(var Pr=On(fn(g,Kt)),rr=[],De=Kt+1;De<g.length;De++)if(!Dt(g,De-1)){var ce=On(fn(g,De));if(Pn(Pr,rr,ce))return De;rr.push(ce)}return g.length},this.splitGraphemes=function(g){for(var Kt=[],Pr=0,rr;(rr=this.nextBreak(g,Pr))<g.length;)Kt.push(g.slice(Pr,rr)),Pr=rr;return Pr<g.length&&Kt.push(g.slice(Pr)),Kt},this.iterateGraphemes=function(g){var Kt=0,Pr={next:(function(){var rr,De;return(De=this.nextBreak(g,Kt))<g.length?(rr=g.slice(Kt,De),Kt=De,{value:rr,done:!1}):Kt<g.length?(rr=g.slice(Kt),Kt=g.length,{value:rr,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Pr[Symbol.iterator]=function(){return Pr}),Pr},this.countGraphemes=function(g){for(var Kt=0,Pr=0,rr;(rr=this.nextBreak(g,Pr))<g.length;)Pr=rr,Kt++;return Pr<g.length&&Kt++,Kt};function On(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?Sr:g==13?ze:g==10?it:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?ot:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<=2376||g==2381||2385<=g&&g<=2391||240 Line truncated
`)}var gn={extraLines:2,tabSize:4},yn=function(dr,Sr,Nr,yr){yr=zt({},gn,yr);var _i=dr.split(/\r\n?|\n|\f/),Ee=Math.max(1,Sr-yr.extraLines)-1,ee=Math.min(Sr+yr.extraLines,_i.length),V=String(ee).length,Ke=or(_i,Ee,Sr,V,yr),At=mt(_i[Sr-1].substring(0,Nr-1),Sr,V,yr),Bt=ot(" ",At.length)+"^",kt=or(_i,Sr,ee,V,yr);return[Ke,Bt,kt].filter(Boolean).join(`
`)};return yn})}),f=new Error().stack,C=function(ge){var Se=Object.create(SyntaxError.prototype);return Object.assign(Se,ge,{name:"SyntaxError"}),Object.defineProperty(Se,"stack",{get:function(){return f?f.replace(/^(.+\n){1,3}/,String(Se)+`
`):""}}),Se},O=function(ge,Se,ze,it,ot){throw C({message:it?ge+`
`+d(Se,it,ot):ge,rawMessage:ge,source:ze,line:it,column:ot})},E={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Se){for(var ze=arguments.length,it=Array(ze>1?ze-1:0),ot=1;ot<ze;ot++)it[ot-1]=arguments[ot];return"Unexpected token <"+Se+"> at "+it.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Se){for(var ze=arguments.length,it=Array(ze>1?ze-1:0),ot=1;ot<ze;ot++)it[ot-1]=arguments[ot];return"Unexpected symbol <"+Se+"> at "+it.filter(Boolean).join(":")}},L={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},$={"{":L.LEFT_BRACE,"}":L.RIGHT_BRACE,"[":L.LEFT_BRACKET,"]":L.RIGHT_BRACKET,":":L.COLON,",":L.COMMA},H={true:L.TRUE,false:L.FALSE,null:L.NULL},Q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},N={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},Z={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ae(ge){return ge>="1"&&ge<="9"}function pe(ge){return ge>="0"&&ge<="9"}function fe(ge){return pe(ge)||ge>="a"&&ge<="f"||ge>="A"&&ge<="F"}function X(ge){return ge==="e"||ge==="E"}function oe(ge,Se,ze,it){var ot=ge.charAt(Se);if(ot==="\r")Se++,ze++,it=1,ge.charAt(Se)===`
`&&Se++;else if(ot===`
`)Se++,ze++,it=1;else if(ot===" "||ot===" ")Se++,it++;else return null;return{index:Se,line:ze,column:it}}function Ce(ge,Se,ze,it){var ot=ge.charAt(Se);return ot in $?{type:$[ot],line:ze,column:it+1,index:Se+1,value:null}:null}function we(ge,Se,ze,it){for(var ot in H)if(H.hasOwnProperty(ot)&&ge.substr(Se,ot.length)===ot)return{type:H[ot],line:ze,column:it+ot.length,index:Se+ot.length,value:ot};return null}function Te(ge,Se,ze,it){for(var ot=Se,St=Q._START_;Se<ge.length;){var Rt=ge.charAt(Se);switch(St){case Q._START_:{if(Rt==='"')Se++,St=Q.START_QUOTE_OR_CHAR;else return null;break}case Q.START_QUOTE_OR_CHAR:{if(Rt==="\\")Se++,St=Q.ESCAPE;else{if(Rt==='"')return Se++,{type:L.STRING,line:ze,column:it+Se-ot,index:Se,value:ge.slice(ot,Se)};Se++}break}case Q.ESCAPE:{if(Rt in N){if(Se++,Rt==="u")for(var zt=0;zt<4;zt++){var mt=ge.charAt(Se);if(mt&&fe(mt))Se++;else return null}St=Q.START_QUOTE_OR_CHAR}else return null;break}}}}function Pe(ge,Se,ze,it){var ot=Se,St=Se,Rt=Z._START_;e:for(;Se<ge.length;){var zt=ge.charAt(Se);switch(Rt){case Z._START_:{if(zt==="-")Rt=Z.MINUS;else if(zt==="0")St=Se+1,Rt=Z.ZERO;else if(ae(zt))St=Se+1,Rt=Z.DIGIT;else return null;break}case Z.MINUS:{if(zt==="0")St=Se+1,Rt=Z.ZERO;else if(ae(zt))St=Se+1,Rt=Z.DIGIT;else return null;break}case Z.ZERO:{if(zt===".")Rt=Z.POINT;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.DIGIT:{if(pe(zt))St=Se+1;else if(zt===".")Rt=Z.POINT;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.POINT:{if(pe(zt))St=Se+1,Rt=Z.DIGIT_FRACTION;else break e;break}case Z.DIGIT_FRACTION:{if(pe(zt))St=Se+1;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.EXP:{if(zt==="+"||zt==="-")Rt=Z.EXP_DIGIT_OR_SIGN;else if(pe(zt))St=Se+1,Rt=Z.EXP_DIGIT_OR_SIGN;else break e;break}case Z.EXP_DIGIT_OR_SIGN:{if(pe(zt))St=Se+1;else break e;break}}Se++}return St>0?{type:L.NUMBER,line:ze,column:it+St-ot,index:St,value:ge.slice(ot,St)}:null}var he=function(Se,ze){for(var it=1,ot=1,St=0,Rt=[];St<Se.length;){var zt=[Se,St,it,ot],mt=oe.apply(void 0,zt);if(mt){St=mt.index,it=mt.line,ot=mt.column;continue}var or=Ce.apply(void 0,zt)||we.apply(void 0,zt)||Te.apply(void 0,zt)||Pe.apply(void 0,zt);if(or){var gn={type:or.type,value:or.value,loc:s(it,ot,St,or.line,or.column,or.index,ze.source)};Rt.push(gn),St=or.index,it=or.line,ot=or.column}else O(P.unexpectedSymbol(a(Se,St,St+1),ze.source,it,ot),Se,ze.source,it,ot)}return Rt},$e={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},ye={_START_:0,KEY:1,COLON:2},gt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},yt={loc:!0,source:null};function st(ge,Se,ze){var it=Se.length>0?Se[Se.length-1].loc.end:{line:1,column:1};O(E.unexpectedEnd(),ge,ze.source,it.line,it.column)}function ft(ge){for(var Se=0,ze=0;ze<4;ze++)Se=Se*16+parseInt(ge[ze],16);return String.fromCharCode(Se)}var Re={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ve=['"',"\\","/"];function Xe(ge){for(var Se="",ze=0;ze<ge.length;ze++){var it=ge.charAt(ze);if(it==="\\"){ze++;var ot=ge.charAt(ze);if(ot==="u")Se+=ft(ge.substr(ze+1,4)),ze+=4;else if(Ve.indexOf(ot)!==-1)Se+=ot;else if(ot in Re)Se+=Re[ot];else break}else Se+=it}return Se}function Jt(ge,Se,ze,it){for(var ot=void 0,St={type:"Object",children:[]},Rt=$e._START_;ze<Se.length;){var zt=Se[ze];switch(Rt){case $e._START_:{if(zt.type===L.LEFT_BRACE)ot=zt,Rt=$e.OPEN_OBJECT,ze++;else return null;break}case $e.OPEN_OBJECT:{if(zt.type===L.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};var mt=Ht(ge,Se,ze,it);St.children.push(mt.value),Rt=$e.PROPERTY,ze=mt.index;break}case $e.PROPERTY:{if(zt.type===L.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};zt.type===L.COMMA?(Rt=$e.COMMA,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case $e.COMMA:{var or=Ht(ge,Se,ze,it);or?(ze=or.index,St.children.push(or.value),Rt=$e.PROPERTY):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}}}st(ge,Se,it)}function Ht(ge,Se,ze,it){for(var ot=void 0,St={type:"Property",key:null,value:null},Rt=ye._START_;ze<Se.length;){var zt=Se[ze];switch(Rt){case ye._START_:{if(zt.type===L.STRING){var mt={type:"Identifier",value:Xe(ge.slice(zt.loc.start.offset+1,zt.loc.end.offset-1)),raw:zt.value};it.loc&&(mt.loc=zt.loc),ot=zt,St.key=mt,Rt=ye.KEY,ze++}else return null;break}case ye.KEY:{zt.type===L.COLON?(Rt=ye.COLON,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case ye.COLON:{var or=Yt(ge,Se,ze,it);return St.value=or.value,it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,or.value.loc.end.line,or.value.loc.end.column,or.value.loc.end.offset,it.source)),{value:St,index:or.index}}}}}function bt(ge,Se,ze,it){for(var ot=void 0,St={type:"Array",children:[]},Rt=gt._START_,zt=void 0;ze<Se.length;)switch(zt=Se[ze],Rt){case gt._START_:{if(zt.type===L.LEFT_BRACKET)ot=zt,Rt=gt.OPEN_ARRAY,ze++;else return null;break}case gt.OPEN_ARRAY:{if(zt.type===L.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};var mt=Yt(ge,Se,ze,it);ze=mt.index,St.children.push(mt.value),Rt=gt.VALUE;break}case gt.VALUE:{if(zt.type===L.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};zt.type===L.COMMA?(Rt=gt.COMMA,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case gt.COMMA:{var or=Yt(ge,Se,ze,it);ze=or.index,St.children.push(or.value),Rt=gt.VALUE;break}}st(ge,Se,it)}function Qt(ge,Se,ze,it){var ot=Se[ze],St=null;switch(ot.type){case L.STRING:{St=Xe(ge.slice(ot.loc.start.offset+1,ot.loc.end.offset-1));break}case L.NUMBER:{St=Number(ot.value);break}case L.TRUE:{St=!0;break}case L.FALSE:{St=!1;break}case L.NULL:{St=null;break}default:return null}var Rt={type:"Literal",value:St,raw:ot.value};return it.loc&&(Rt.loc=ot.loc),{value:Rt,index:ze+1}}function Yt(ge,Se,ze,it){var ot=Se[ze],St=Qt.apply(void 0,arguments)||Jt.apply(void 0,arguments)||bt.apply(void 0,arguments);if(St)return St;O(E.unexpectedToken(a(ge,ot.loc.start.offset,ot.loc.end.offset),it.source,ot.loc.start.line,ot.loc.start.column),ge,it.source,ot.loc.start.line,ot.loc.start.column)}var ke=function(ge,Se){Se=Object.assign({},yt,Se);var ze=he(ge,Se);ze.length===0&&st(ge,ze,Se);var it=Yt(ge,ze,0,Se);if(it.index===ze.length)return it.value;var ot=ze[it.index];O(E.unexpectedToken(a(ge,ot.loc.start.offset,ot.loc.end.offset),Se.source,ot.loc.start.line,ot.loc.start.column),ge,Se.source,ot.loc.start.line,ot.loc.start.column)};return ke})})(n$);var Aye=n$.exports;const cye=ma(Aye);function En(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="a994e12e3e6547813b669a430e6cb42da5d99bba",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:11,column:0},end:{line:26,column:3}},3:{start:{line:12,column:16},end:{line:12,column:18}},4:{start:{line:13,column:2},end:{line:20,column:4}},5:{sta Line truncated
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:gOe({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return Sm.default.createElement("div",{style:o.alpha},Sm.default.createElement("div",{style:o.checkboard},Sm.default.createElement(wOe.default,{renderers:this.props.renderers})),Sm.default.createElement("div",{style:o.gradient}),Sm.default.createElement("div",{style:o.container,ref:function(s){return r.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Sm.default.createElement("div",{style:o.pointer},this.props.pointer?Sm.default.createElement(this.props.pointer,this.props):Sm.default.createElement("div",{style:o.slider}))))}}]),e}(OB.PureComponent||OB.Component);sx.default=OOe;var lx={};Object.defineProperty(lx,"__esModule",{value:!0});lx.EditableInput=void 0;var BOe=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),BB=Wn,EE=hQ(BB),IOe=qs,kOe=hQ(IOe);function hQ(n){return n&&n.__esModule?n:{default:n}}function TOe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function KOe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function POe(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function LOe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var DOe=1,fQ=38,FOe=40,UOe=[fQ,FOe],ROe=function(e){return UOe.indexOf(e)>-1},zOe=function(e){return Number(String(e).replace(/%/g,""))},jOe=1,NOe=lx.EditableInput=function(n){LOe(e,n);function e(t){KOe(this,e);var r=POe(this,(e.__proto__||Object.getPrototypeOf(e)).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=zOe(i.target.value);if(!isNaN(o)&&ROe(i.keyCode)){var a=r.getArrowOffset(),s=i.keyCode===fQ?o+a:o-a;r.setUpdatedValue(s,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-"+jOe++,r}return BOe(e,[{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 TOe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DOe}},{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,kOe.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 EE.default.createElement("div",{style:i.wrap},EE.default.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return r.input=a},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?EE.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(BB.PureComponent||BB.Component);lx.default=NOe;var ux= Line truncated
.hue-horizontal {
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
.hue-vertical {
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
}
`),Ng.default.createElement("div",{style:a.pointer},this.props.pointer?Ng.default.createElement(this.props.pointer,this.props):Ng.default.createElement("div",{style:a.slider}))))}}]),e}(IB.PureComponent||IB.Component);ux.default=ZOe;var Ax={};Object.defineProperty(Ax,"__esModule",{value:!0});Ax.Raised=void 0;var XOe=Wn,OE=sM(XOe),JOe=Fh,H2=sM(JOe),eBe=qs,tBe=sM(eBe),nBe=uQ,rBe=sM(nBe);function sM(n){return n&&n.__esModule?n:{default:n}}var dk=Ax.Raised=function(e){var t=e.zDepth,r=e.radius,i=e.background,o=e.children,a=e.styles,s=a===void 0?{}:a,d=(0,tBe.default)((0,rBe.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+t*4+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":t===1});return OE.default.createElement("div",{style:d.wrap},OE.default.createElement("div",{style:d.bg}),OE.default.createElement("div",{style:d.content},o))};dk.propTypes={background:H2.default.string,zDepth:H2.default.oneOf([0,1,2,3,4,5]),radius:H2.default.number,styles:H2.default.object};dk.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};Ax.default=dk;var cx={},iBe=Rh,oBe=function(){return iBe.Date.now()},aBe=oBe,sBe=/\s/;function lBe(n){for(var e=n.length;e--&&sBe.test(n.charAt(e)););return e}var uBe=lBe,ABe=uBe,cBe=/^\s+/;function dBe(n){return n&&n.slice(0,ABe(n)+1).replace(cBe,"")}var hBe=dBe,fBe=hBe,HL=qd,pBe=rM,ZL=NaN,mBe=/^[-+]0x[0-9a-f]+$/i,gBe=/^0b[01]+$/i,yBe=/^0o[0-7]+$/i,vBe=parseInt;function CBe(n){if(typeof n=="number")return n;if(pBe(n))return ZL;if(HL(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=HL(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=fBe(n);var t=gBe.test(n);return t||yBe.test(n)?vBe(n.slice(2),t?2:8):mBe.test(n)?ZL:+n}var _Be=CBe,bBe=qd,BE=aBe,XL=_Be,xBe="Expected a function",wBe=Math.max,MBe=Math.min;function SBe(n,e,t){var r,i,o,a,s,d,f=0,C=!1,O=!1,E=!0;if(typeof n!="function")throw new TypeError(xBe);e=XL(e)||0,bBe(t)&&(C=!!t.leading,O="maxWait"in t,o=O?wBe(XL(t.maxWait)||0,e):o,E="trailing"in t?!!t.trailing:E);function P(fe){var X=r,oe=i;return r=i=void 0,f=fe,a=n.apply(oe,X),a}function L(fe){return f=fe,s=setTimeout(Q,e),C?P(fe):a}function $(fe){var X=fe-d,oe=fe-f,Ce=e-X;return O?MBe(Ce,o-oe):Ce}function H(fe){var X=fe-d,oe=fe-f;return d===void 0||X>=e||X<0||O&&oe>=o}function Q(){var fe=BE();if(H(fe))return N(fe);s=setTimeout(Q,$(fe))}function N(fe){return s=void 0,E&&r?P(fe):(r=i=void 0,a)}function Z(){s!==void 0&&clearTimeout(s),f=0,r=d=i=s=void 0}function ae(){return s===void 0?a:N(BE())}function pe(){var fe=BE(),X=H(fe);if(r=arguments,i=this,d=fe,X){if(s===void 0)return L(d);if(O)return clearTimeout(s),s=setTimeout(Q,e),P(d)}return s===void 0&&(s=setTimeout(Q,e)),a}return pe.cancel=Z,pe.flush=ae,pe}var mQ=SBe,EBe=mQ,OBe=qd,BBe="Expected a function";function IBe(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(BBe);return OBe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),EBe(n,e,{leading:r,maxWait:e,trailing:i})}var kBe=IBe,hk={};Object.defineProperty(hk,"__esModule",{value:!0});hk.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=s-(r.getBoundingClientRect().left+window.pageXOffset),C=d-(r.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>o&&(f=o),C<0?C=0:C>a&&(C=a);var O=f/o,E=1-C/a;return{h:t.h,s:O,v:E,a:t.a,source:"hsv"}};Object.defineProperty(cx,"__esModule",{value:!0});cx.Saturation=void 0;var TBe=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),kB=Wn,Y0=fk(kB),KBe=qs,PBe=fk(KBe),LBe=kBe,DBe=fk(LBe),FBe=hk,UBe=RBe(FBe);function RBe(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}function fk(n){return n&&n.__esModule?n:{default:n}}function zBe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function jBe(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function NBe(n,e){if(typeof e!="function"&&e!==null)throw new Typ Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:d,circle:f}},{custom:!!this.props.style});return Y0.default.createElement("div",{style:C.color,ref:function(E){return r.container=E},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Y0.default.createElement("style",null,`
.saturation-white {
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
}
.saturation-black {
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
background: linear-gradient(to top, #000, rgba(0,0,0,0));
}
`),Y0.default.createElement("div",{style:C.white,className:"saturation-white"},Y0.default.createElement("div",{style:C.black,className:"saturation-black"}),Y0.default.createElement("div",{style:C.pointer},this.props.pointer?Y0.default.createElement(this.props.pointer,this.props):Y0.default.createElement("div",{style:C.circle}))))}}]),e}(kB.PureComponent||kB.Component);cx.default=WBe;var dx={},zA={},GBe=Y$,$Be=Q$,QBe=S$,YBe=sd;function qBe(n,e){var t=YBe(n)?GBe:$Be;return t(n,QBe(e))}var VBe=qBe,HBe=VBe,gQ={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Dh,function(){function t(ke){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},t(ke)}var r=/^\s+/,i=/\s+$/;function o(ke,ge){if(ke=ke||"",ge=ge||{},ke instanceof o)return ke;if(!(this instanceof o))return new o(ke,ge);var Se=a(ke);this._originalInput=ke,this._r=Se.r,this._g=Se.g,this._b=Se.b,this._a=Se.a,this._roundA=Math.round(100*this._a)/100,this._format=ge.format||Se.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Se.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Se,ze,it,ot,St,Rt;return Se=ge.r/255,ze=ge.g/255,it=ge.b/255,Se<=.03928?ot=Se/12.92:ot=Math.pow((Se+.055)/1.055,2.4),ze<=.03928?St=ze/12.92:St=Math.pow((ze+.055)/1.055,2.4),it<=.03928?Rt=it/12.92:Rt=Math.pow((it+.055)/1.055,2.4),.2126*ot+.7152*St+.0722*Rt},setAlpha:function(ge){return this._a=$e(ge),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ge=C(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=C(this._r,this._g,this._b),Se=Math.round(ge.h*360),ze=Math.round(ge.s*100),it=Math.round(ge.v*100);return this._a==1?"hsv("+Se+", "+ze+"%, "+it+"%)":"hsva("+Se+", "+ze+"%, "+it+"%, "+this._roundA+")"},toHsl:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=d(this._r,this._g,this._b),Se=Math.round(ge.h*360),ze=Math.round(ge.s*100),it=Math.round(ge.l*100);return this._a==1?"hsl("+Se+", "+ze+"%, "+it+"%)":"hsla("+Se+", "+ze+"%, "+it+"%, "+this._roundA+")"},toHex:function(ge){return E(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return P(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ye(this._r,255)*100)+"%",g:Math.round(ye(this._g,255)*100)+"%",b:Math.round(ye(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ye(this._r,255)*100)+"%, "+Math.round(ye(this._g,255)*100)+"%, "+Math.round(ye(this._b,255)*100)+"%)":"rgba("+Math.round(ye(this._r,255)*100)+"%, "+Math.round(ye(this._g,255)*100)+"%, "+Math.round(ye(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Pe[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Se="#"+L(this._r,this._g,this._b,this._a),ze=Se,it=this._gradientType?"GradientType = 1, ":"";if(ge){var ot=o(ge);ze="#"+L(ot._r,ot._g,ot._b,ot._a)}return"progid:DXImageTransform.Microsoft.gradient("+it+"startColorstr="+Se+",endColorstr="+ze+")"},toString:function(ge){var Se=!!ge;ge=ge||this._format;var ze=!1,it=this._a<1&&this._a>=0,ot=!Se&&it&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ot?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ze=this.toRgbString()),ge==="prgb"&&(ze=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ze=this.toHexString()),ge==="hex3"&&(ze=this.toHexString(!0)),ge==="hex4"&&(ze=this.toHex8String(!0)),ge==="hex8"&&(ze=this.toHex8String()),ge==="name"&&(ze=this.toName()),ge==="hsl"&&(ze=this.toHslString()),ge==="hsv"&&(ze=this.toHsvString()),ze||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ge,Se){var ze=ge.apply(null,[this].concat([].slice.call(Se)));return this._r=ze._r,this._g=ze._g,this._b=ze._b,this.setAlpha(ze._a),this},lighten:function(){return this._ Line truncated
<html>
<head>
<meta charset="utf-8" />
<title>${t}</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<script src="https://unpkg.com/maplibre-gl@${CD}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${CD}/dist/maplibre-gl.css" rel="stylesheet" />
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const map = new maplibregl.Map({
container: 'map',
style: ${e},
});
map.addControl(new maplibregl.NavigationControl());
<\/script>
</body>
</html>
`),i=(xo().s[8]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(xo().s[9]++,this.exportName());xo().s[10]++,vD.saveAs(i,o+".html")}downloadStyle(){xo().f[3]++;const e=(xo().s[11]++,this.tokenizedStyle()),t=(xo().s[12]++,new Blob([e],{type:"application/json;charset=utf-8"})),r=(xo().s[13]++,this.exportName());xo().s[14]++,vD.saveAs(t,r+".json")}changeMetadataProperty(e,t){xo().f[4]++;const r=(xo().s[15]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});xo().s[16]++,this.props.onStyleChanged(r)}render(){xo().f[5]++;const e=(xo().s[17]++,this.props.t),t=(xo().s[18]++,UQ(e));return xo().s[19]++,G.jsx(g0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Export Style"),className:"maputnik-export-modal",children:G.jsxs("section",{className:"maputnik-modal-section",children:[G.jsx("h1",{children:e("Download Style")}),G.jsx("p",{children:e("Download a JSON style to your computer.")}),G.jsxs("div",{children:[G.jsx(Fm,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(xo().b[2][0]++,this.props.mapStyle.metadata||(xo().b[2][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),G.jsx(Fm,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(xo().b[3][0]++,this.props.mapStyle.metadata||(xo().b[3][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")})]}),G.jsxs("div",{className:"maputnik-modal-export-buttons",children:[G.jsxs(is,{onClick:this.downloadStyle.bind(this),children:[G.jsx(lO,{}),e("Download Style")]}),G.jsxs(is,{onClick:this.downloadHtml.bind(this),children:[G.jsx(lO,{}),e("Download HTML")]})]})]})})}}const XIe=(xo().s[20]++,No()(ZIe));function M5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},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/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return M5=function(){return a},a}M5();class GQ extends Mn.Component{render(){return M5().f[0]++,M5().s[0]++,G.jsx(Mb,{label:this.props.label,children:G.jsx(SQ,{...this.props})})}}function S5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},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/FieldCheckbox.tsx"],names:[],mappings:"AAaM;AAbN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,mBAAyC;AAQhD,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAC9B,8BAAC,iBAAe,GAAG,KAAK,OAAO,GACjC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a27c35e986d22656fa80c276efb67df518853ac2"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return S5=function(){return a},a}S5();class JIe extends Mn.Component{render(){return S5().f[0]++,S5().s[0]++,G.jsx(la,{label:this.props.label,children:G.jsx(yk,{...this.props})})}}function Ln(){var n="/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",e="c3514fc0a8673e5905dc8e28539523e62bed5902",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",statementMap:{0:{start:{line:15,column:14},end:{line:15,column:26}},1:{start:{line:16,column:4},end:{line:30,column:9}},2:{start:{line:23,column:29},end:{line:26,column:12}},3:{start:{line:35,column:4},end:{line:38,column:7}},4:{start:{line:41,column:18},end:{line:41,column:47}},5:{start:{line:42,column:4},end:{line:51,column:6}},6:{start:{line:54,column:14},end:{line:54,column:26}},7:{start:{line:55,column:4},end:{line:82,column:9}},8:{start:{line:63,column:33},end:{line:66, Line truncated
`)>=0)return!1;return!0}function dTe(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=kf.call(Array(n.indent+1)," ");else return null;return{base:t,prev:kf.call(Array(e+1),t)}}function RB(n,e){if(n.length===0)return"";var t=`
`+e.prev+e.base;return t+kf.call(n,","+t)+`
`+e.prev}function t3(n,e){var t=UB(n),r=[];if(t){r.length=n.length;for(var i=0;i<n.length;i++)r[i]=Km(n,i)?e(n[i],n):""}var o=typeof NE=="function"?NE(n):[],a;if(_v){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var d in n)Km(n,d)&&(t&&String(Number(d))===d&&d<n.length||_v&&a["$"+d]instanceof Symbol||(rY.call(/[^\w$]/,d)?r.push(e(d,n)+": "+e(n[d],n)):r.push(d+": "+e(n[d],n))));if(typeof NE=="function")for(var f=0;f<o.length;f++)iY.call(n,o[f])&&r.push("["+e(o[f])+"]: "+e(n[o[f]],n));return r}var uY=Gv,$v=L9e,hTe=q9e,fTe=gx,n3=uY("%WeakMap%",!0),r3=uY("%Map%",!0),pTe=$v("WeakMap.prototype.get",!0),mTe=$v("WeakMap.prototype.set",!0),gTe=$v("WeakMap.prototype.has",!0),yTe=$v("Map.prototype.get",!0),vTe=$v("Map.prototype.set",!0),CTe=$v("Map.prototype.has",!0),Bk=function(n,e){for(var t=n,r;(r=t.next)!==null;t=r)if(r.key===e)return t.next=r.next,r.next=n.next,n.next=r,r},_Te=function(n,e){var t=Bk(n,e);return t&&t.value},bTe=function(n,e,t){var r=Bk(n,e);r?r.value=t:n.next={key:e,next:n.next,value:t}},xTe=function(n,e){return!!Bk(n,e)},wTe=function(){var e,t,r,i={assert:function(o){if(!i.has(o))throw new fTe("Side channel does not contain "+hTe(o))},get:function(o){if(n3&&o&&(typeof o=="object"||typeof o=="function")){if(e)return pTe(e,o)}else if(r3){if(t)return yTe(t,o)}else if(r)return _Te(r,o)},has:function(o){if(n3&&o&&(typeof o=="object"||typeof o=="function")){if(e)return gTe(e,o)}else if(r3){if(t)return CTe(t,o)}else if(r)return xTe(r,o);return!1},set:function(o,a){n3&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new n3),mTe(e,o,a)):r3?(t||(t=new r3),vTe(t,o,a)):(r||(r={key:{},next:null}),bTe(r,o,a))}};return i},MTe=String.prototype.replace,STe=/%20/g,GE={RFC1738:"RFC1738",RFC3986:"RFC3986"},Ik={default:GE.RFC3986,formatters:{RFC1738:function(n){return MTe.call(n,STe,"+")},RFC3986:function(n){return String(n)}},RFC1738:GE.RFC1738,RFC3986:GE.RFC3986},ETe=Ik,$E=Object.prototype.hasOwnProperty,s1=Array.isArray,xf=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),OTe=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(s1(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);t.obj[t.prop]=i}}},AY=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},BTe=function n(e,t,r){if(!t)return e;if(typeof t!="object"){if(s1(e))e.push(t);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!$E.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var i=e;return s1(e)&&!s1(t)&&(i=AY(e,r)),s1(e)&&s1(t)?(t.forEach(function(o,a){if($E.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=n(s,o,r):e.push(o)}else e[a]=o}),e):Object.keys(t).reduce(function(o,a){var s=t[a];return $E.call(o,a)?o[a]=n(o[a],s,r):o[a]=s,o},i)},ITe=function(e,t){return Object.keys(t).reduce(function(r,i){return r[i]=t[i],r},e)},kTe=function(n,e,t){var r=n.replace(/\+/g," ");if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},TTe=function(e,t,r,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var s="",d=0;d<a.length;++d){var f=a.charCodeAt(d);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===ETe.RFC1738&&(f===40||f===41)){s+=a.charAt(d);continue}if(f<128){s=s+xf[f];continue}if(f<2048){s=s+(xf[192|f>>6]+xf[128|f&63]);continue}if(f<55296||f>=57344){s=s+(xf[224|f>>12]+xf[128|f>>6&63]+xf[128|f&63]);continue}d+=1,f=65536+((f&1023)<<10|a.charCodeAt(d)&1023),s+=xf[240|f>>18]+xf[128|f>>12&63]+xf[128|f>>6&63]+xf[128|f&63]}return s},KTe=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],a=o.obj[o.prop],s=Object.keys(a),d=0;d<s.length;++d){var f=s[d],C=a[f];typeof C=="object"&&C!==null&&r.indexOf(C)===-1&&(t.push({obj:a,prop:f}),r.push(C))}return OTe(t),e},PTe=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},LTe=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},DTe=function(e,t){return[].concat(e,t)},FTe=function(e,t){if(s1(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},cY={arrayToObject:AY,assign:ITe,combine:DTe,compact:KTe,decode:kTe,encode:TTe,isBuffer:LTe,isRegExp:PTe,maybeMap:FTe,merge:BTe},dY=wTe,k3=cY,K_=Ik,UTe=Object.prototype.hasOwnProperty,hY={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},If=Array.isArray,RTe=Array.prototype.push,fY=function(n,e){RTe.apply(n,If(e)?e:[e])},zTe=Date.prototype.toISOString,$D=K_.default,Vl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"in Line truncated
`," "],uKe=["{","}","|","\\","^","`"].concat(lKe),jB=["'"].concat(uKe),QD=["%","/","?",";","#"].concat(jB),YD=["/","?","#"],AKe=255,qD=/^[+a-z0-9A-Z_-]{0,63}$/,cKe=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dKe={javascript:!0,"javascript:":!0},NB={javascript:!0,"javascript:":!0},rv={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},WB=rKe;function vx(n,e,t){if(n&&typeof n=="object"&&n instanceof Nd)return n;var r=new Nd;return r.parse(n,e,t),r}Nd.prototype.parse=function(n,e,t){if(typeof n!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var r=n.indexOf("?"),i=r!==-1&&r<n.indexOf("#")?"?":"#",o=n.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),n=o.join(i);var s=n;if(s=s.trim(),!t&&n.split("#").length===1){var d=sKe.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],e?this.query=WB.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var f=oKe.exec(s);if(f){f=f[0];var C=f.toLowerCase();this.protocol=C,s=s.substr(f.length)}if(t||f||s.match(/^\/\/[^@/]+@[^@/]+/)){var O=s.substr(0,2)==="//";O&&!(f&&NB[f])&&(s=s.substr(2),this.slashes=!0)}if(!NB[f]&&(O||f&&!rv[f])){for(var E=-1,P=0;P<YD.length;P++){var L=s.indexOf(YD[P]);L!==-1&&(E===-1||L<E)&&(E=L)}var $,H;E===-1?H=s.lastIndexOf("@"):H=s.lastIndexOf("@",E),H!==-1&&($=s.slice(0,H),s=s.slice(H+1),this.auth=decodeURIComponent($)),E=-1;for(var P=0;P<QD.length;P++){var L=s.indexOf(QD[P]);L!==-1&&(E===-1||L<E)&&(E=L)}E===-1&&(E=s.length),this.host=s.slice(0,E),s=s.slice(E),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var ae=N[P];if(ae&&!ae.match(qD)){for(var pe="",fe=0,X=ae.length;fe<X;fe++)ae.charCodeAt(fe)>127?pe+="x":pe+=ae[fe];if(!pe.match(qD)){var oe=N.slice(0,P),Ce=N.slice(P+1),we=ae.match(cKe);we&&(oe.push(we[1]),Ce.unshift(we[2])),Ce.length&&(s="/"+Ce.join(".")+s),this.hostname=oe.join(".");break}}}this.hostname.length>AKe?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=iKe.toASCII(this.hostname));var Te=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Te,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!dKe[C])for(var P=0,Z=jB.length;P<Z;P++){var he=jB[P];if(s.indexOf(he)!==-1){var $e=encodeURIComponent(he);$e===he&&($e=escape(he)),s=s.split(he).join($e)}}var ye=s.indexOf("#");ye!==-1&&(this.hash=s.substr(ye),s=s.slice(0,ye));var gt=s.indexOf("?");if(gt!==-1?(this.search=s.substr(gt),this.query=s.substr(gt+1),e&&(this.query=WB.parse(this.query)),s=s.slice(0,gt)):e&&(this.search="",this.query={}),s&&(this.pathname=s),rv[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Te=this.pathname||"",yt=this.search||"";this.path=Te+yt}return this.href=this.format(),this};function hKe(n){return typeof n=="string"&&(n=vx(n)),n instanceof Nd?n.format():Nd.prototype.format.call(n)}Nd.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var e=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=n+this.host:this.hostname&&(i=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=WB.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||rv[e])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),e+i+t+a+r};function fKe(n,e){return vx(n,!1,!0).resolve(e)}Nd.prototype.resolve=function(n){return this.resolveObject(vx(n,!1,!0)).format()};function pKe(n,e){return n?vx(n,!1,!0).resolveObject(e):e}Nd.prototype.resolveObject=function(n){if(typeof n=="string"){var e=new Nd;e.parse(n,!1,!0),n=e}for(var t=new Nd,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=n.hash,n.href==="")return t.href=t.format(),t;if(n.slashes&&!n.protocol){for(var a=Object.keys(n),s=0;s<a.length;s++){var d=a[s];d!=="protocol"&&(t[d]=n[d])}return rv[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(n.protocol&&n.protocol!==t.protocol){if(!rv[n.protocol]){for(var f=Object.keys(n),C=0;C<f.length;C++){var O=f[C];t[O]=n[O]}return t.href=t.format(),t}if(t.protocol=n.protocol,!n.host&&!NB[n.protocol]){for(var Z=(n.pathname||"").split("/");Z.length&&!(n.host=Z.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),t.pathname=Z.join("/")}else t.pathname=n.pathname;if(t.search=n.search,t.query=n.query,t.host=n.host|| Line truncated
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */var GB=function(n,e){return GB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},GB(n,e)};function _Y(n,e){GB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function wKe(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function MKe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return o}function SKe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(MKe(arguments[e]));return n}var bY=function(){function n(e,t){this.target=t,this.type=e}return n}(),EKe=function(n){_Y(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(bY),OKe=function(n){_Y(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var o=n.call(this,"close",i)||this;return o.wasClean=!0,o.code=t,o.reason=r,o}return e}(bY);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var BKe=function(){if(typeof WebSocket<"u")return WebSocket},IKe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},q0={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},kKe=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){i._debug("open event");var a=i._options.minUptime,s=a===void 0?q0.minUptime:a;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},s),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(d){return i._ws.send(d)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(d){return i._callEventListener(o,d)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(a){return i._callEventListener(o,a)})},this._handleError=function(o){i._debug("error event",o.message),i._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(o),i._debug("exec error listeners"),i._listeners.error.forEach(function(a){return i._callEventListener(o,a)}),i._connect()},this._handleClose=function(o){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(o),i._listeners.close.forEach(function(a){return i._callEventListener(o,a)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?q0.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var o=wKe(i),a=o.next();!a.done;a=o.next()){var s=a.value;this._callEventListener(e,s)}}catch(d){t={error:d}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListeneLine truncated
//# sourceMappingURL=index-C-Mqn3ew.js.map
@@ -1 +1 @@
{"version":3,"file":"index-BYSOK7KO.js","sources":["../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/react-icons/lib/iconContext.mjs","../../node_modules/react-icons/lib/iconBase.mjs","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-dom/client.js","../../node_modules/react-autobind/lib/autoBind.js","../../node_modules/react-autobind/index.js","../../node_modules/lodash.clonedeep/index.js","../../node_modules/lodash.clamp/index.js","../../node_modules/base64-js/index.js","../../node_modules/ieee754/index.js","../../node_modules/buffer/index.js","../../node_modules/lodash.get/index.js","../../node_modules/lodash/lodash.js","../../node_modules/array-move/index.js","../../node_modules/string-hash/index.js","../../node_modules/@maplibre/maplibre-gl-style-spec/dist/index.mjs","../../node_modules/maplibre-gl/dist/maplibre-gl.js","../../node_modules/@maplibre/maplibre-gl-inspect/dist/maplibre-gl-inspect.mjs","../../node_modules/randomcolor/randomColor.js","../../node_modules/@maplibre/maplibre-gl-inspect/lib/colors.ts","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/react-icon-base/es/index.js","../../src/components/IconLine.tsx","../../src/components/IconFill.tsx","../../src/components/IconSymbol.tsx","../../src/components/IconBackground.tsx","../../src/components/IconCircle.tsx","../../node_modules/react-icons/md/index.mjs","../../src/components/IconMissing.tsx","../../src/components/IconLayer.tsx","../../src/components/MapMaplibreGlLayerPopup.tsx","../../src/components/MapMaplibreGlFeaturePropertyPopup.tsx","../../node_modules/color-name/index.js","../../node_modules/is-arrayish/index.js","../../node_modules/simple-swizzle/index.js","../../node_modules/color-string/index.js","../../node_modules/color-convert/conversions.js","../../node_modules/color-convert/route.js","../../node_modules/color-convert/index.js","../../node_modules/color/index.js","../../src/libs/zoomcontrol.ts","../../node_modules/@maplibre/maplibre-gl-inspect/lib/stylegen.ts","../../src/libs/highlight.ts","../../src/libs/maplibre-rtl.ts","../../node_modules/xtend/immutable.js","../../node_modules/fuzzy/lib/fuzzy.js","../../node_modules/suggestions-list/src/list.js","../../node_modules/suggestions-list/src/suggestions.js","../../node_modules/suggestions-list/index.js","../../node_modules/lodash.debounce/index.js","../../node_modules/events/events.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/exceptions.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/localization.js","../../node_modules/subtag/subtag.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/index.js","../../src/components/MapMaplibreGl.tsx","../../node_modules/ol/events/Event.js","../../node_modules/ol/ObjectEventType.js","../../node_modules/ol/Disposable.js","../../node_modules/ol/array.js","../../node_modules/ol/functions.js","../../node_modules/ol/obj.js","../../node_modules/ol/events/Target.js","../../node_modules/ol/events/EventType.js","../../node_modules/ol/events.js","../../node_modules/ol/Observable.js","../../node_modules/ol/util.js","../../node_modules/ol/Object.js","../../node_modules/ol/AssertionError.js","../../node_modules/ol/asserts.js","../../node_modules/ol/Feature.js","../../node_modules/ol/proj/Units.js","../../node_modules/ol/has.js","../../node_modules/ol/transform.js","../../node_modules/ol/extent/Relationship.js","../../node_modules/ol/extent.js","../../node_modules/ol/proj/Projection.js","../../node_modules/ol/math.js","../../node_modules/ol/proj/epsg3857.js","../../node_modules/ol/proj/epsg4326.js","../../node_modules/ol/proj/projections.js","../../node_modules/ol/proj/transforms.js","../../node_modules/ol/coordinate.js","../../node_modules/ol/sphere.js","../../node_modules/ol/proj.js","../../node_modules/ol/geom/flat/transform.js","../../node_modules/ol/geom/Geometry.js","../../node_modules/ol/geom/GeometryCollection.js","../../node_modules/ol/format/Feature.js","../../node_modules/ol/format/JSONFeature.js","../../node_modules/ol/geom/GeometryLayout.js","../../node_modules/ol/geom/SimpleGeometry.js","../../node_modules/ol/geom/flat/closest.js","../../node_modules/ol/geom/flat/deflate.js","../../node_modules/ol/geom/flat/simplify.js","../../node_modules/ol/geom/flat/segments.js","../../node_modules/ol/geom/flat/inflate.js","../../node_modules/ol/geom/flat/interpolate.js","../../node_modules/ol/geom/flat/contains.js","../../node_modules/ol/geom/flat/intersectsextent.js","../../node_modules/ol/geom/flat/length.js","../../node_modules/ol/geom/LineString.jsLine truncated
{"version":3,"mappings":";;;;;;qjDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,cAAc,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,SAAS,SAASC,GAAEC,EAAE,CAAI,OAAOA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,IAAGE,EAAEF,EAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,GAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,GAAE,OAAO,OAAOC,GAAE,GAAG,SAASC,GAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAACG,GAAE,UAAU,iBAAiB,GACnQA,GAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAC,GAAc,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAQ,MAAM,MAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,GAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,IAAG,CAAC,CAACA,GAAE,UAAUH,GAAE,UAAU,SAASI,GAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAAC,IAAIQ,GAAED,GAAE,UAAU,IAAID,GACrfE,GAAE,YAAYD,GAAEN,GAAEO,GAAEL,GAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,GAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,IAAM,EAAAC,GAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,IACtK,SAASC,GAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,EAAEC,EAAE,CAAG,EAAAC,EAAE,KAAKC,EAAE,KAAK,GAASb,GAAN,KAAQ,IAAIU,KAAcV,EAAE,MAAX,SAAiBa,EAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,EAAE,GAAGZ,EAAE,KAAKA,EAAEM,GAAE,KAAKN,EAAEU,CAAC,GAAG,CAACF,GAAE,eAAeE,CAAC,IAAIC,EAAED,CAAC,EAAEV,EAAEU,CAAC,GAAO,IAAAI,EAAE,UAAU,OAAO,EAAE,GAAOA,IAAJ,EAAMH,EAAE,SAASV,UAAU,EAAEa,EAAE,CAAC,QAAQC,EAAE,MAAMD,CAAC,EAAEE,EAAE,EAAEA,EAAEF,EAAEE,IAAID,EAAEC,CAAC,EAAE,UAAUA,EAAE,CAAC,EAAEL,EAAE,SAASI,CAAC,CAAC,GAAGpB,GAAGA,EAAE,aAAiB,IAAAe,KAAKI,EAAEnB,EAAE,aAAamB,EAAWH,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEI,EAAEJ,CAAC,GAAG,MAAM,CAAC,SAAS5B,GAAE,KAAKa,EAAE,IAAIiB,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,GAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,OAAO,CAAC,SAASuB,GAAEvB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,EAAC,CAAC,SAASqC,GAAOxB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYwB,GAAO,GAAGxB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,EAAEK,EAAEC,EAAES,EAAEC,EAAE,CAAC,IAAIC,EAAE,OAAOjB,GAAmBiB,IAAd,aAA6BA,IAAZ,aAAgBjB,EAAA,MAAK,IAAIkB,EAAE,GAAG,GAAUlB,IAAP,KAAWkB,EAAA,OAAQ,QAAOD,EAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,EAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAS,CAAC,KAAKb,GAAE,KAAKC,GAAI8B,EAAA,EAAE,CAAC,CAAI,GAAAA,EAAE,OAAOA,EAAElB,EAAEgB,EAAEA,EAAEE,CAAC,EAAElB,EAAOe,IAAL,GAAO,IAAIW,GAAER,EAAE,CAAC,EAAEH,EAAEL,GAAEM,CAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,EAAEX,EAAEC,EAAE,GAAG,SAASN,EAAE,CAAQA,QAAA,CAAE,GAASgB,GAAN,OAAUO,GAAEP,CAAC,IAAIA,EAAEM,GAAEN,EAAEV,GAAG,CAACU,EAAE,KAAKE,GAAGA,EAAE,MAAMF,EAAE,IAAI,IAAI,GAAGA,EAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,CAAC,GAAGK,EAAE,KAAKW,CAAC,GAAG,EAAyB,GAArBE,EAAA,EAAIH,EAAKA,IAAL,GAAO,IAAIA,EAAE,IAAOL,GAAEV,CAAC,EAAE,QAAQmB,EAAE,EAAEA,EAAEnB,EAAE,OAAOmB,IAAI,CAACF,EACrfjB,EAAEmB,CAAC,EAAE,IAAIC,EAAEL,EAAEW,GAAET,EAAEE,CAAC,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,CAAC,SAASI,EAAErB,GAAEC,CAAC,EAAe,OAAOoB,GAApB,WAA0B,IAAApB,EAAEoB,EAAE,KAAKpB,CAAC,EAAEmB,EAAE,EAAE,EAAEF,EAAEjB,EAAE,KAAQ,SAAMiB,EAAEA,EAAE,MAAMG,EAAEL,EAAEW,GAAET,EAAEE,GAAG,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,UAAqBC,IAAX,SAAa,MAAMZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAS,OAAAa,CAAC,CACzZ,SAASU,GAAE5B,EAAEK,EAAEC,EAAE,CAAC,GAASN,GAAN,KAAe,OAAAA,EAAM,IAAAe,EAAE,GAAGC,EAAE,EAAEW,UAAE3B,EAAEe,EAAE,GAAG,GAAG,SAASf,EAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,EAAEgB,GAAG,EAAE,EAASD,CAAC,CAAC,SAASc,GAAE7B,EAAE,CAAI,GAAKA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAE,EAAIA,EAAA,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAA,CAAE,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,IAAGqB,GAAA,SAAiB,CAAC,IAAIL,GAAE,QAAQ,SAAS5B,EAAEK,EAAEC,EAAE,CAACsB,GAAE5B,EAAE,UAAU,CAAGK,EAAA,MAAM,KAAK,SAAS,GAAGC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAEuB,UAAE5B,EAAE,UAAU,CAACK,GAAA,CAAI,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAQ,OAAA4B,GAAE5B,EAAE,SAASA,EAAE,CAAQA,QAAE,IAAG,EAAE,EAAE,KAAK,SAASA,EAAE,CAAI,IAACuB,GAAEvB,CAAC,EAAE,MAAM,MAAM,uEAAuE,EAAS,OAAAA,CAAC,CAAC,EAAoBiC,GAAA,Line truncated
+1
View File
@@ -0,0 +1 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:Line truncated
-1
View File
@@ -1 +0,0 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;position:fixed!important;top:40px;right:0;bottom:0;height:calc(100% - 40px);width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,Line truncated
+2
View File
@@ -0,0 +1,2 @@
const e="ベース",t="デフォルト",o="ストップ",r="ズーム",s="検査",a="開く",n="エクスポート",l="表示",i="言語",c="ヘルプ",p="コメント",u="ソース",d="タイプ",y="フィルタ",h="レイヤー",S="削除",L="複製",m="表示",f="非表示",R="レイヤー",U="畳む",O="展開",g="検索",C="デバッグ",b="設定",D="キャンセル",T="アップロード",v="名前",I="所有者",N="中央",M="方位",J="ピッチ",x="ショートカット",w="画像",E="動画",P="ソース一覧",A="GeoJSON",G="クラスタ",Z="エンコーディング",k={"Input value":"入力値","Data value":"データ値","Output value":"値",Function:"関数","Select a type of data scale (default is 'categorical').":"データスケールの種類を選択してください(デフォルトは「categorical」です)。",Base:e,"Input a data property to base styles off of.":"スタイルのベースとなるデータプロパティを入力してください。",Default:t,Stops:o,Zoom:r,"Add stop":"ストップを追加","Convert to expression":"フィルタ式に変換","Remove zoom level from stop":"ズームレベルをストップから削除","Revert from expression":"式から戻す","Delete expression":"式を削除","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"レイヤ<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"レイヤへ切替",Map:"地図",Inspect:s,"Deuteranopia filter":"緑色盲フィルタ","Protanopia filter":"赤色盲フィルタ","Tritanopia filter":"青色盲フィルタ","Achromatopsia filter":"全色盲フィルタ","Layers list":"レイヤー一覧","Layer editor":"レイヤーエディタ","Map view":"地図画面","Maputnik on GitHub":"GitHubのMaputnik",Open:a,Export:n,"Data Sources":"データソース","Style Settings":"スタイル設定",View:l,"Color accessibility":"色のアクセシビリティ",Language:i,Help:c,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。",Comments:p,"Comment...":"コメントを書く","Max Zoom":"最大ズーム","Min Zoom":"最小ズーム",Source:u,"Source Layer":"ソースレイヤ",Type:d,"Nested filters are not supported.":"ネストされたフィルタはサポートされていません。","Upgrade to expression":"式にアップグレード",Filter:y,"every filter matches":"全てのフィルタが一致","no filter matches":"フィルタが一致しない","any filter matches":"いずれかのフィルタが一致","Add filter":"フィルタを追加","You've entered an old style filter.":"旧型フィルタを使用しております。","Switch to filter editor.":"新型に変換","Delete filter block":"フィルタブロックを削除","Add value":"値を追加する","Remove array item":"配列の項目を削除","Press <1>ESC</1> to lose focus":"<1>ESC</1>を押すとフォーカスが外れます","Must provide protocol: <1>https://</1>":"プロトコルを指定してください: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"プロトコルを指定してください: <1>http://</1> または <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。",Layer:h,"JSON Editor":"JSONエディタ",Delete:S,Duplicate:L,Show:m,Hide:f,"Move layer up":"上に移動","Move layer down":"下に移動","Layer: {{layerId}}":"レイヤー {{layerId}}",Layers:R,Collapse:U,Expand:O,"Add Layer":"レイヤー追加","Zoom:":"ズーム:",Search:g,"Close popup":"ポップアップを閉じる","cursor:":"カーソル","center:":"中央:","rotation:":"回転角度:","Close modal":"モーダルを閉じる",Debug:C,Options:b,"<0>Open in OSM</0> &mdash; Opens the current view on openstreetmap.org":"現在のビューを <0>openstreetmap.org で開く</0>","Export Style":"スタイルをエクスポート","Download Style":"スタイルをダウンロード","Download a JSON style to your computer.":"パソコンにJSONスタイルをダウンロードします。","Download HTML":"HTMLをダウンロード",Cancel:D,"Open Style":"スタイルを開く","Upload Style":"スタイルをアップロードする","Upload a JSON style from your computer.":"JSONスタイルをパソコンからアップロードする","Style file":"スタイルファイル",Upload:T,"Load from URL":"URLから読み込む","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"URLLine truncated
//# sourceMappingURL=translation-BuANh82s.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BuANh82s.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="בסיס",t="ברירת המחדל",o="עצירות",r="זום",s="בדיקה",a="פתיחה",n="ייצוא",l="תצוגה",c="שפה",i="עזרה",p="הערות",d="מקור",u="סוג",y="סינון",h="שכבה",S="מחיקה",m="שכפול",f="הצגה",L="הסתרה",O="שכבות",R="הקטנה",g="הגדלה",v="חיפוש",U="דיבאג",C="אפשרויות",T="ביטול",b="העלאה",D="שם",N="שייך ל",I="מרכז",M="כיוון",w="זווית",J="קיצורי דרך",x="תמונה",E="וידאו",A="מקורות",P="GeoJSON",G="קיבוץ",k="קידוד",Z={"Input value":"ערך קבלה","Data value":"ערך מידע","Output value":"ערך החזרה",Function:"פונקציה","Select a type of data scale (default is 'categorical').":"בחרו סוג מידע לטובת הגדלה (ברירת המחדל היא קטגוריה)",Base:e,"Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל",Default:t,Stops:o,Zoom:r,"Add stop":"הוספת עצירה","Convert to expression":"המחרה לביטוי","Remove zoom level from stop":"הסרת רמת זום מעצירה","Revert from expression":"החזרה מביטוי","Delete expression":"מחיקת ביטוי","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"שכבה <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"שינוי לשכבה",Map:"מפה",Inspect:s,"Deuteranopia filter":"Deuteranopia filter","Protanopia filter":"Protanopia filter","Tritanopia filter":"Tritanopia filter","Achromatopsia filter":"Achromatopsia filter","Layers list":"רשימת שכבות","Layer editor":"עורך השכבות","Map view":"תצוגת מפה","Maputnik on GitHub":"מפוטניק בגיטהב",Open:a,Export:n,"Data Sources":"מקורות מידע","Style Settings":"הגדרות הסטייל",View:l,"Color accessibility":"נגישות צבעים",Language:c,Help:i,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות",Comments:p,"Comment...":"הערה...","Max Zoom":"זום מקסימאלי","Min Zoom":"זום מינימאלי",Source:d,"Source Layer":"שכבת מקור",Type:u,"Nested filters are not supported.":"סינונים מקוננים אינם נתמכים","Upgrade to expression":"שדרוג לביטוי",Filter:y,"every filter matches":"כל הסינונים מתאימים","no filter matches":"אף סינון אינו מתאים","any filter matches":"אחד הסינוים מתאימים","Add filter":"הוספת סינון","You've entered an old style filter.":"הכנסתם סינון מסוג ישן,","Switch to filter editor.":"עברו לעורך הסינונים","Delete filter block":"מחיקת גוש מסנן","Add value":"הוספת ערך","Remove array item":"הסרת איבר מערך","Press <1>ESC</1> to lose focus":"לחצו על <1>ESC</1> על מנת לאבד פוקוס","Must provide protocol: <1>https://</1>":"נדרש פרוטוקול: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"נדרשים פרוטוקולים: <1>http://</1> או <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain",Layer:h,"JSON Editor":"עורך JSON",Delete:S,Duplicate:m,Show:f,Hide:L,"Move layer up":"העלה שכבה","Move layer down":"הורד שכבה","Layer: {{layerId}}":"שכבה: {{layerId}}",Layers:O,Collapse:R,Expand:g,"Add Layer":"הוספת שכבה","Zoom:":"זום:",Search:v,"Close popup":"סגירת החלון","cursor:":"סמן","center:":"מרכז:","rotation:":"סיבוב:","Close modal":"סגירת חלונית",Debug:U,Options:C,"<0>Open in OSM</0> &mdash; Opens the current view on openstreetmap.org":"<0>פתיחה ב-OSM</0> - פתיחה של התצוגה הנוכחית ב- openstreetmap.org","Export Style":"ייצוא של הסטייל","Download Style":"הורדה של הסטייל","Download a JSON style to your computer.":"הורדה של הסטייל למחשב","Download HTML":"הורדה כ-HTML",Cancel:T,"Open Style":"פתיחת סטייל","Upload Style":"העלאה של סטייל","Upload a JSON style from your computer.":"העלאה של סטייל מהמחשב","Style file":"קובץ סטייל",Upload:b,"Load from URL":"פתיחה מתוך כתובת","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"פתיחה מכתובת, שימו לב: הכתובת צריכה לתמוך ב- CORS","Style URL":"כתוסת סטייל","Enter URL...":"הכנסו כתובת","Gallery Styles":"גלריית סטיילים","Open one of the publicly avaiLine truncated
//# sourceMappingURL=translation-CS21YPxX.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-CS21YPxX.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2 -2
View File
@@ -37,8 +37,8 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-BYSOK7KO.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-vOMA9Lgt.css">
<script type="module" crossorigin src="/maputnik/assets/index-C-Mqn3ew.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-CK6yI-fD.css">
</head>
<body>
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->