This commit is contained in:
HarelM committed 2025-04-21 19:45:41 +00:00
1 parent 19c538a29e
commit ea4c3f4e3e
8 files changed
+974 -984

No files matched your search

-979
View File
@@ -1,979 +0,0 @@
var DN=Object.defineProperty;var FN=(n,e,t)=>e in n?DN(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Pn=(n,e,t)=>FN(n,typeof e!="symbol"?e+"":e,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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function yl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function D6(n){if(Object.prototype.hasOwnProperty.call(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 m3={exports:{}},cv={},g3={exports:{}},hs={},eO;function LN(){if(eO)return hs;eO=1;/**
* @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 n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function O(De){return De===null||typeof De!="object"?null:(De=B&&De[B]||De["@@iterator"],typeof De=="function"?De:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,j={};function N(De,He,_t){this.props=De,this.context=He,this.refs=j,this.updater=_t||P}N.prototype.isReactComponent={},N.prototype.setState=function(De,He){if(typeof De!="object"&&typeof De!="function"&&De!=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,De,He,"setState")},N.prototype.forceUpdate=function(De){this.updater.enqueueForceUpdate(this,De,"forceUpdate")};function q(){}q.prototype=N.prototype;function $(De,He,_t){this.props=De,this.context=He,this.refs=j,this.updater=_t||P}var oe=$.prototype=new q;oe.constructor=$,F(oe,N.prototype),oe.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function ie(De,He,_t){var Yt,gt={},Ft=null,Pt=null;if(He!=null)for(Yt in He.ref!==void 0&&(Pt=He.ref),He.key!==void 0&&(Ft=""+He.key),He)V.call(He,Yt)&&!W.hasOwnProperty(Yt)&&(gt[Yt]=He[Yt]);var Fe=arguments.length-2;if(Fe===1)gt.children=_t;else if(1<Fe){for(var Pe=Array(Fe),Be=0;Be<Fe;Be++)Pe[Be]=arguments[Be+2];gt.children=Pe}if(De&&De.defaultProps)for(Yt in Fe=De.defaultProps,Fe)gt[Yt]===void 0&&(gt[Yt]=Fe[Yt]);return{$$typeof:n,type:De,key:Ft,ref:Pt,props:gt,_owner:ne.current}}function he(De,He){return{$$typeof:n,type:De.type,key:He,ref:De.ref,props:De.props,_owner:De._owner}}function fe(De){return typeof De=="object"&&De!==null&&De.$$typeof===n}function Ee(De){var He={"=":"=0",":":"=2"};return"$"+De.replace(/[=:]/g,function(_t){return He[_t]})}var me=/\/+/g;function Se(De,He){return typeof De=="object"&&De!==null&&De.key!=null?Ee(""+De.key):He.toString(36)}function Ke(De,He,_t,Yt,gt){var Ft=typeof De;(Ft==="undefined"||Ft==="boolean")&&(De=null);var Pt=!1;if(De===null)Pt=!0;else switch(Ft){case"string":case"number":Pt=!0;break;case"object":switch(De.$$typeof){case n:case e:Pt=!0}}if(Pt)return Pt=De,gt=gt(Pt),De=Yt===""?"."+Se(Pt,0):Yt,te(gt)?(_t="",De!=null&&(_t=De.replace(me,"$&/")+"/"),Ke(gt,He,_t,"",function(Be){return Be})):gt!=null&&(fe(gt)&&(gt=he(gt,_t+(!gt.key||Pt&&Pt.key===gt.key?"":(""+gt.key).replace(me,"$&/")+"/")+De)),He.push(gt)),1;if(Pt=0,Yt=Yt===""?".":Yt+":",te(De))for(var Fe=0;Fe<De.length;Fe++){Ft=De[Fe];var Pe=Yt+Se(Ft,Fe);Pt+=Ke(Ft,He,_t,Pe,gt)}else if(Pe=O(De),typeof Pe=="function")for(De=Pe.call(De),Fe=0;!(Ft=De.next()).done;)Ft=Ft.value,Pe=Yt+Se(Ft,Fe++),Pt+=Ke(Ft,He,_t,Pe,gt);else if(Ft==="object")throw He=String(De),Error("Objects are not valid as a React child (found: "+(He==="[object Object]"?"object with keys {"+Object.keys(De).join(", ")+"}":He)+"). If you meant to render a collection of children, use an array instead.");return Pt}function xe(De,He,_t){if(De==null)return De;var Yt=[],gt=0;return Ke(De,Yt,"","",function(Ft){return He.call(_t,Ft,gt++)}),Yt}function st(De){if(De._status===-1){var He=De._result;He=He(),He.then(function(_t){(De._status===0||De._status===-1)&&(De._status=1,De._result=_t)},function(_t){(De._status===0||De._status===-1)&&(De._status=2,De._result=_t)}),De._status===-1&&(De._status=0,De._result=He)}if(De._status===1)return De._result.default;throw De._result}var Ze={current:null},tt={transition:null},Ne={ReactCurrentDispatcher:Ze,ReactCurrentBatchConfig:tt,ReactCurrentOwner:ne};function we(){throw Error("act(...) is not supported in production builds of React.")}return hs.Children={map:xe,forEach:function(De,He,_t){xe(De,function(){He.apply(this,arguments)},_t)},count:function(De){var He=0;return xe(De,function(){He++}),He},toArray:function(De){return xe(De,function(He){return He})||[]},only:function(De){if(!fe(De))throw Error("React.Children.only expected to receive a single React element child.");return De}},hs.Component=N,hs.Fragment=t,hs.Profiler=i,hs.PureComponent=$,hs.StrictMode=r,hs.Suspense=p,hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ne,hs.act=we,hs.cloneElement=function(De,He,_t){if(De==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+De+".");var Yt=F({},De.props),gt=De.key,Ft=De.ref,Pt=De._owner;if(He!=null){if(He.ref!==void 0&&(Ft=He.ref,Pt=ne.current),He.key!==void 0&&(gt=""+He.key),De.type&&De.type.defaultProps)var Fe=De.type.defaultProps;for(Pe in He)V.call(He,Pe)&&!W.hasOwnProperty(Pe)&&(Yt[Pe]=He[Pe]===void 0&&Fe!==void 0?Fe[Pe]:He[Pe])}var Pe=arguments.lengthLine 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 nO;function UN(){if(nO)return cv;nO=1;var n=Na(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,p,y){var x,B={},O=null,P=null;y!==void 0&&(O=""+y),p.key!==void 0&&(O=""+p.key),p.ref!==void 0&&(P=p.ref);for(x in p)r.call(p,x)&&!s.hasOwnProperty(x)&&(B[x]=p[x]);if(o&&o.defaultProps)for(x in p=o.defaultProps,p)B[x]===void 0&&(B[x]=p[x]);return{$$typeof:e,type:o,key:O,ref:P,props:B,_owner:i.current}}return cv.Fragment=t,cv.jsx=l,cv.jsxs=l,cv}var rO;function zN(){return rO||(rO=1,m3.exports=UN()),m3.exports}var le=zN(),Ai=Na();const sr=yl(Ai);var yD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},bE=sr.createContext&&sr.createContext(yD),jN=["attr","size","title"];function NN(n,e){if(n==null)return{};var t=WN(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function WN(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Kb(){return Kb=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},Kb.apply(this,arguments)}function iO(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 Rb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?iO(Object(t),!0).forEach(function(r){GN(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):iO(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function GN(n,e,t){return e=QN(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function QN(n){var e=YN(n,"string");return typeof e=="symbol"?e:e+""}function YN(n,e){if(typeof n!="object"||!n)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 vD(n){return n&&n.map((e,t)=>sr.createElement(e.tag,Rb({key:t},e.attr),vD(e.child)))}function ou(n){return e=>sr.createElement(qN,Kb({attr:Rb({},n.attr)},e),vD(n.child))}function qN(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=NN(n,jN),o=i||t.size||"1em",p;return t.className&&(p=t.className),n.className&&(p=(p?p+" ":"")+n.className),sr.createElement("svg",Kb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:p,style:Rb(Rb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&sr.createElement("title",null,s),n.children)};return bE!==void 0?sr.createElement(bE.Consumer,null,t=>e(t)):e(yD)}var T_={},y3={exports:{}},ch={},v3={exports:{}},C3={};/**
* @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.
*/var oO;function VN(){return oO||(oO=1,function(n){function e(tt,Ne){var we=tt.length;tt.push(Ne);e:for(;0<we;){var De=we-1>>>1,He=tt[De];if(0<i(He,Ne))tt[De]=Ne,tt[we]=He,we=De;else break e}}function t(tt){return tt.length===0?null:tt[0]}function r(tt){if(tt.length===0)return null;var Ne=tt[0],we=tt.pop();if(we!==Ne){tt[0]=we;e:for(var De=0,He=tt.length,_t=He>>>1;De<_t;){var Yt=2*(De+1)-1,gt=tt[Yt],Ft=Yt+1,Pt=tt[Ft];if(0>i(gt,we))Ft<He&&0>i(Pt,gt)?(tt[De]=Pt,tt[Ft]=we,De=Ft):(tt[De]=gt,tt[Yt]=we,De=Yt);else if(Ft<He&&0>i(Pt,we))tt[De]=Pt,tt[Ft]=we,De=Ft;else break e}}return Ne}function i(tt,Ne){var we=tt.sortIndex-Ne.sortIndex;return we!==0?we:tt.id-Ne.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var p=[],y=[],x=1,B=null,O=3,P=!1,F=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(tt){for(var Ne=t(y);Ne!==null;){if(Ne.callback===null)r(y);else if(Ne.startTime<=tt)r(y),Ne.sortIndex=Ne.expirationTime,e(p,Ne);else break;Ne=t(y)}}function te(tt){if(j=!1,oe(tt),!F)if(t(p)!==null)F=!0,st(V);else{var Ne=t(y);Ne!==null&&Ze(te,Ne.startTime-tt)}}function V(tt,Ne){F=!1,j&&(j=!1,q(ie),ie=-1),P=!0;var we=O;try{for(oe(Ne),B=t(p);B!==null&&(!(B.expirationTime>Ne)||tt&&!Ee());){var De=B.callback;if(typeof De=="function"){B.callback=null,O=B.priorityLevel;var He=De(B.expirationTime<=Ne);Ne=n.unstable_now(),typeof He=="function"?B.callback=He:B===t(p)&&r(p),oe(Ne)}else r(p);B=t(p)}if(B!==null)var _t=!0;else{var Yt=t(y);Yt!==null&&Ze(te,Yt.startTime-Ne),_t=!1}return _t}finally{B=null,O=we,P=!1}}var ne=!1,W=null,ie=-1,he=5,fe=-1;function Ee(){return!(n.unstable_now()-fe<he)}function me(){if(W!==null){var tt=n.unstable_now();fe=tt;var Ne=!0;try{Ne=W(!0,tt)}finally{Ne?Se():(ne=!1,W=null)}}else ne=!1}var Se;if(typeof $=="function")Se=function(){$(me)};else if(typeof MessageChannel<"u"){var Ke=new MessageChannel,xe=Ke.port2;Ke.port1.onmessage=me,Se=function(){xe.postMessage(null)}}else Se=function(){N(me,0)};function st(tt){W=tt,ne||(ne=!0,Se())}function Ze(tt,Ne){ie=N(function(){tt(n.unstable_now())},Ne)}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(tt){tt.callback=null},n.unstable_continueExecution=function(){F||P||(F=!0,st(V))},n.unstable_forceFrameRate=function(tt){0>tt||125<tt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<tt?Math.floor(1e3/tt):5},n.unstable_getCurrentPriorityLevel=function(){return O},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(tt){switch(O){case 1:case 2:case 3:var Ne=3;break;default:Ne=O}var we=O;O=Ne;try{return tt()}finally{O=we}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(tt,Ne){switch(tt){case 1:case 2:case 3:case 4:case 5:break;default:tt=3}var we=O;O=tt;try{return Ne()}finally{O=we}},n.unstable_scheduleCallback=function(tt,Ne,we){var De=n.unstable_now();switch(typeof we=="object"&&we!==null?(we=we.delay,we=typeof we=="number"&&0<we?De+we:De):we=De,tt){case 1:var He=-1;break;case 2:He=250;break;case 5:He=1073741823;break;case 4:He=1e4;break;default:He=5e3}return He=we+He,tt={id:x++,callback:Ne,priorityLevel:tt,startTime:we,expirationTime:He,sortIndex:-1},we>De?(tt.sortIndex=we,e(y,tt),t(p)===null&&tt===t(y)&&(j?(q(ie),ie=-1):j=!0,Ze(te,we-De))):(tt.sortIndex=He,e(p,tt),F||P||(F=!0,st(V))),tt},n.unstable_shouldYield=Ee,n.unstable_wrapCallback=function(tt){var Ne=O;return function(){var we=O;O=Ne;try{return tt.apply(this,arguments)}finally{O=we}}}}(C3)),C3}var sO;function $N(){return sO||(sO=1,v3.exports=VN()),v3.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 aO;function HN(){if(aO)return ch;aO=1;var n=Na(),e=$N();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,D=1;D<arguments.length;D++)_+="&args[]="+encodeURIComponent(arguments[D]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){l(m,_),l(m+"Capture",_)}function l(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,y=/^[: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]*$/,x={},B={};function O(m){return p.call(B,m)?!0:p.call(x,m)?!1:y.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,D,Q){if(D!==null&&D.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:D!==null?!D.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function F(m,_,D,Q){if(_===null||typeof _>"u"||P(m,_,D,Q))return!0;if(Q)return!1;if(D!==null)switch(D.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function j(m,_,D,Q,ue,ge,nt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=ue,this.mustUseProperty=D,this.propertyName=m,this.type=_,this.sanitizeURL=ge,this.removeEmptyString=nt}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){N[m]=new j(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];N[_]=new j(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){N[m]=new j(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){N[m]=new j(m,2,!1,m,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(m){N[m]=new j(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){N[m]=new j(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){N[m]=new j(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){N[m]=new j(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){N[m]=new j(m,5,!1,m.toLowerCase(),null,!1,!1)});var q=/[\-:]([a-z])/g;function $(m){return m[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(m){var _=m.replace(q,$);N[_]=new j(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(q,$);N[_]=new j(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(q,$);N[_]=new j(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){N[m]=new j(m,1,!1,m.toLowerCase(),null,!1,!1)}),N.xlinkHref=new j("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){N[m]=new j(m,1,!1,m.toLowerCase(),null,!0,!0)});function oe(m,_,D,Q){var ue=N.hasOwnProperty(_)?N[_]:null;(ue!==null?ue.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+De+m}var _t=!1;function Yt(m,_){if(!m||_t)return"";_t=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Mn){var Q=Mn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Mn){Q=Mn}m.call(_.prototype)}else{try{throw Error()}catch(Mn){Q=Mn}m()}}catch(Mn){if(Mn&&Q&&typeof Mn.stack=="string"){for(var ue=Mn.stack.split(`
`),ge=Q.stack.split(`
`),nt=ue.length-1,Ot=ge.length-1;1<=nt&&0<=Ot&&ue[nt]!==ge[Ot];)Ot--;for(;1<=nt&&0<=Ot;nt--,Ot--)if(ue[nt]!==ge[Ot]){if(nt!==1||Ot!==1)do if(nt--,Ot--,0>Ot||ue[nt]!==ge[Ot]){var Nt=`
`+ue[nt].replace(" at new "," at ");return m.displayName&&Nt.includes("<anonymous>")&&(Nt=Nt.replace("<anonymous>",m.displayName)),Nt}while(1<=nt&&0<=Ot);break}}}finally{_t=!1,Error.prepareStackTrace=D}return(m=m?m.displayName||m.name:"")?He(m):""}function gt(m){switch(m.tag){case 5:return He(m.type);case 16:return He("Lazy");case 13:return He("Suspense");case 19:return He("SuspenseList");case 0:case 2:case 15:return m=Yt(m.type,!1),m;case 11:return m=Yt(m.type.render,!1),m;case 1:return m=Yt(m.type,!0),m;default:return""}}function Ft(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case W:return"Fragment";case ne:return"Portal";case he:return"Profiler";case ie:return"StrictMode";case Se:return"Suspense";case Ke:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ee:return(m.displayName||"Context")+".Consumer";case fe:return(m._context.displayName||"Context")+".Provider";case me:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case xe:return _=m.displayName||null,_!==null?_:Ft(m.type)||"Memo";case st:_=m._payload,m=m._init;try{return Ft(m(_))}catch{}}return null}function Pt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ft(_);case 8:return _===ie?"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 _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Fe(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Pe(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Be(m){var _=Pe(m)?"checked":"value",D=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var ue=D.get,ge=D.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return ue.call(this)},set:function(nt){Q=""+nt,ge.call(this,nt)}}),Object.defineProperty(m,_,{enumerable:D.enumerable}),{getValue:function(){return Q},setValue:function(nt){Q=""+nt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function it(m){m._valueTracker||(m._valueTracker=Be(m))}function Ct(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var D=_.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==D?(_.setValue(m),!0):!1}function pt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Lt(m,_){var D=_.checked;return we({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:D??m._wrapperState.initialChecked})}function tn(m,_){var D=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;D=Fe(_.value!=null?_.value:D),m._wrapperState={initialChecked:Q,initialValue:D,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Rt(m,_){_=_.checked,_!=null&&oe(m,"checked",_,!1)}function yn(m,_){Rt(m,_);var D=Fe(_.value),Q=_.type;if(D!=null)Q==="number"?(D===0&&m.value===""||m.value!=D)&&(m.value=""+D):m.value!==""+D&&(m.value=""+D);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?en(m,_.type,D):_.hasOwnProperty("defaultValue")&&en(m,_.type,Fe(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function Yn(m,_,D){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,D||_===m.value||(m.value=_),m.defaultValue=_}D=m.name,D!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,D!==""&&(m.name=D)}function en(m,_,D){(_!=="number"||pt(m.ownerDocument)!==m)&&(D==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+D&&(m.defaultValue=""+D))}var cr=Array.isArray;function kn(m,_,D,Q){if(m=m.options,_){_={};for(var ue=0;ue<D.length;ue++)_["$"+D[ue]]=!0;for(D=0;D<m.length;D++)ue=_.hasOwnProperty("$"+m[D].value),m[D].selected!==ue&&(m[D].selected=ue),ue&&Q&&(m[D].defaultSelected=!0)}else{for(D=""+Fe(D),_=null,ue=0;ue<m.length;ue++){if(m[ue].value===D){m[ue].selected=!0,Q&&(m[ue].defaultSelected=!0);return}_!==null||m[ue].disabled||(_=m[ue])}_!==null&&(_.selecte Line truncated
`).replace(Sp,"")}function bA(m,_,D){if(_=js(_),js(m)!==_&&D)throw Error(t(425))}function ul(){}var Zc=null,Gl=null;function WA(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var va=typeof setTimeout=="function"?setTimeout:void 0,Ju=typeof clearTimeout=="function"?clearTimeout:void 0,Eu=typeof Promise=="function"?Promise:void 0,Ed=typeof queueMicrotask=="function"?queueMicrotask:typeof Eu<"u"?function(m){return Eu.resolve(null).then(m).catch(Xc)}:va;function Xc(m){setTimeout(function(){throw m})}function eh(m,_){var D=_,Q=0;do{var ue=D.nextSibling;if(m.removeChild(D),ue&&ue.nodeType===8)if(D=ue.data,D==="/$"){if(Q===0){m.removeChild(ue),Ki(_);return}Q--}else D!=="$"&&D!=="$?"&&D!=="$!"||Q++;D=ue}while(D);Ki(_)}function dc(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function eA(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var D=m.data;if(D==="$"||D==="$!"||D==="$?"){if(_===0)return m;_--}else D==="/$"&&_++}m=m.previousSibling}return null}var _l=Math.random().toString(36).slice(2),GA="__reactFiber$"+_l,kc="__reactProps$"+_l,Bu="__reactContainer$"+_l,Sh="__reactEvents$"+_l,ot="__reactListeners$"+_l,QA="__reactHandles$"+_l;function Ss(m){var _=m[GA];if(_)return _;for(var D=m.parentNode;D;){if(_=D[Bu]||D[GA]){if(D=_.alternate,_.child!==null||D!==null&&D.child!==null)for(m=eA(m);m!==null;){if(D=m[GA])return D;m=eA(m)}return _}m=D,D=m.parentNode}return null}function Ti(m){return m=m[GA]||m[Bu],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ri(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Go(m){return m[kc]||null}var Ql=[],Bd=-1;function cs(m){return{current:m}}function ns(m){0>Bd||(m.current=Ql[Bd],Ql[Bd]=null,Bd--)}function Es(m,_){Bd++,Ql[Bd]=m.current,m.current=_}var Jc={},qa=cs(Jc),uu=cs(!1),Ca=Jc;function hc(m,_){var D=m.type.contextTypes;if(!D)return Jc;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var ue={},ge;for(ge in D)ue[ge]=_[ge];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=ue),ue}function Bs(m){return m=m.childContextTypes,m!=null}function wr(){ns(uu),ns(qa)}function lf(m,_,D){if(qa.current!==Jc)throw Error(t(168));Es(qa,_),Es(uu,D)}function ed(m,_,D){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return D;Q=Q.getChildContext();for(var ue in Q)if(!(ue in _))throw Error(t(108,Pt(m)||"Unknown",ue));return we({},D,Q)}function Au(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||Jc,Ca=qa.current,Es(qa,m),Es(uu,uu.current),!0}function Tc(m,_,D){var Q=m.stateNode;if(!Q)throw Error(t(169));D?(m=ed(m,_,Ca),Q.__reactInternalMemoizedMergedChildContext=m,ns(uu),ns(qa),Es(qa,m)):ns(uu),Es(uu,D)}var Va=null,th=!1,Qi=!1;function tA(m){Va===null?Va=[m]:Va.push(m)}function Pc(m){th=!0,tA(m)}function xA(){if(!Qi&&Va!==null){Qi=!0;var m=0,_=ti;try{var D=Va;for(ti=1;m<D.length;m++){var Q=D[m];do Q=Q(!0);while(Q!==null)}Va=null,th=!1}catch(ue){throw Va!==null&&(Va=Va.slice(m+1)),ps(ol,xA),ue}finally{ti=_,Qi=!1}}return null}var td=[],Os=0,wo=null,Yl=0,Pa=[],$a=0,fc=null,MA=1,YA="";function cu(m,_){td[Os++]=Yl,td[Os++]=wo,wo=m,Yl=_}function gs(m,_,D){Pa[$a++]=MA,Pa[$a++]=YA,Pa[$a++]=fc,fc=m;var Q=MA;m=YA;var ue=32-vn(Q)-1;Q&=~(1<<ue),D+=1;var ge=32-vn(_)+ue;if(30<ge){var nt=ue-ue%5;ge=(Q&(1<<nt)-1).toString(32),Q>>=nt,ue-=nt,MA=1<<32-vn(_)+ue|D<<ue|Q,YA=ge+m}else MA=1<<ge|D<<ue|Q,YA=m}function nA(m){m.return!==null&&(cu(m,1),gs(m,1,0))}function qA(m){for(;m===wo;)wo=td[--Os],td[Os]=null,Yl=td[--Os],td[Os]=null;for(;m===fc;)fc=Pa[--$a],Pa[$a]=null,YA=Pa[--$a],Pa[$a]=null,MA=Pa[--$a],Pa[$a]=null}var _a=null,Ka=null,ys=!1,wA=null;function Al(m,_){var D=Lc(5,null,null,0);D.elementType="DELETED",D.stateNode=_,D.return=m,_=m.deletions,_===null?(m.deletions=[D],m.flags|=16):_.push(D)}function VA(m,_){switch(m.tag){case 5:var D=m.type;return _=_.nodeType!==1||D.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,_a=m,Ka=dc(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,_a=m,Ka=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(D=fc!==null?{id:MA,overflow:YA}:null,m.memoizedState={dehydrated:_,treeContext:D,retryLane:1073741824},D=Lc(18,null,null,0),D.stateNode=_,D.return=m,m.child=D,_a=m,Ka=null,!0):!1;default:return!1}}function Dr(m){return(m.mode&1)!==0&&(m.flags&128)===0}function Ur(m){if(ys){var _=Ka;if(_){var D=_;if(!VA(m,_)){if(Dr(m))throw Error(t(418));_=dc(D.nextSibling);var Q=_a;_&&VA(m,_)?Al(Q,D):(m.flags=m.flags&-4097|2,ys=!1,_a=m)}}else{if(Dr(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ge.message+`
`+ge.stack}return{value:m,source:_,stack:ue,digest:null}}function Gf(m,_,D){return{value:m,source:null,stack:D??null,digest:_??null}}function mc(m,_){try{console.error(_.value)}catch(D){setTimeout(function(){throw D})}}var um=typeof WeakMap=="function"?WeakMap:Map;function Fc(m,_,D){D=a(-1,D),D.tag=3,D.payload={element:null};var Q=_.value;return D.callback=function(){hm||(hm=!0,Gm=Q),mc(m,_)},D}function rh(m,_,D){D=a(-1,D),D.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var ue=_.value;D.payload=function(){return Q(ue)},D.callback=function(){mc(m,_)}}var ge=m.stateNode;return ge!==null&&typeof ge.componentDidCatch=="function"&&(D.callback=function(){mc(m,_),typeof Q!="function"&&(mf===null?mf=new Set([this]):mf.add(this));var nt=_.stack;this.componentDidCatch(_.value,{componentStack:nt!==null?nt:""})}),D}function ih(m,_,D){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new um;var ue=new Set;Q.set(_,ue)}else ue=Q.get(_),ue===void 0&&(ue=new Set,Q.set(_,ue));ue.has(D)||(ue.add(D),m=Qy.bind(null,m,_,D),_.then(m,m))}function Bp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Td(m,_,D,Q,ue){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,D.flags|=131072,D.flags&=-52805,D.tag===1&&(D.alternate===null?D.tag=17:(_=a(-1,1),_.tag=2,c(D,_,1))),D.lanes|=1),m):(m.flags|=65536,m.lanes=ue,m)}var Qf=te.ReactCurrentOwner,Zl=!1;function Xl(m,_,D,Q){_.child=m===null?HA(_,null,D,Q):$s(_,m.child,D,Q)}function Am(m,_,D,Q,ue){D=D.render;var ge=_.ref;return hu(_,ue),Q=kr(m,_,D,Q,ge,ue),D=Ri(),m!==null&&!Zl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ue,Ml(m,_,ue)):(ys&&D&&nA(_),_.flags|=1,Xl(m,_,Q,ue),_.child)}function Op(m,_,D,Q,ue){if(m===null){var ge=D.type;return typeof ge=="function"&&!Dd(ge)&&ge.defaultProps===void 0&&D.compare===null&&D.defaultProps===void 0?(_.tag=15,_.type=ge,Zo(m,_,ge,Q,ue)):(m=Dh(D.type,null,Q,_,_.mode,ue),m.ref=_.ref,m.return=_,_.child=m)}if(ge=m.child,(m.lanes&ue)===0){var nt=ge.memoizedProps;if(D=D.compare,D=D!==null?D:Tr,D(nt,Q)&&m.ref===_.ref)return Ml(m,_,ue)}return _.flags|=1,m=ec(ge,Q),m.ref=_.ref,m.return=_,_.child=m}function Zo(m,_,D,Q,ue){if(m!==null){var ge=m.memoizedProps;if(Tr(ge,Q)&&m.ref===_.ref)if(Zl=!1,_.pendingProps=Q=ge,(m.lanes&ue)!==0)(m.flags&131072)!==0&&(Zl=!0);else return _.lanes=m.lanes,Ml(m,_,ue)}return Pd(m,_,D,Q,ue)}function Yf(m,_,D){var Q=_.pendingProps,ue=Q.children,ge=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Es(eu,Is),Is|=D;else{if((D&1073741824)===0)return m=ge!==null?ge.baseLanes|D:D,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Es(eu,Is),Is|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ge!==null?ge.baseLanes:D,Es(eu,Is),Is|=Q}else ge!==null?(Q=ge.baseLanes|D,_.memoizedState=null):Q=D,Es(eu,Is),Is|=Q;return Xl(m,_,ue,D),_.child}function df(m,_){var D=_.ref;(m===null&&D!==null||m!==null&&m.ref!==D)&&(_.flags|=512,_.flags|=2097152)}function Pd(m,_,D,Q,ue){var ge=Bs(D)?Ca:qa.current;return ge=hc(_,ge),hu(_,ue),D=kr(m,_,D,Q,ge,ue),Q=Ri(),m!==null&&!Zl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ue,Ml(m,_,ue)):(ys&&Q&&nA(_),_.flags|=1,Xl(m,_,D,ue),_.child)}function mu(m,_,D,Q,ue){if(Bs(D)){var ge=!0;Au(_)}else ge=!1;if(hu(_,ue),_.stateNode===null)od(m,_),Id(_,D,Q),Wf(_,D,Q,ue),Q=!0;else if(m===null){var nt=_.stateNode,Ot=_.memoizedProps;nt.props=Ot;var Nt=nt.context,Mn=D.contextType;typeof Mn=="object"&&Mn!==null?Mn=fu(Mn):(Mn=Bs(D)?Ca:qa.current,Mn=hc(_,Mn));var lr=D.getDerivedStateFromProps,gr=typeof lr=="function"||typeof nt.getSnapshotBeforeUpdate=="function";gr||typeof nt.UNSAFE_componentWillReceiveProps!="function"&&typeof nt.componentWillReceiveProps!="function"||(Ot!==Q||Nt!==Mn)&&cf(_,nt,Q,Mn),Kl=!1;var ir=_.memoizedState;nt.state=ir,T(_,Q,nt,ue),Nt=_.memoizedState,Ot!==Q||ir!==Nt||uu.current||Kl?(typeof lr=="function"&&(Ep(_,D,lr,Q),Nt=_.memoizedState),(Ot=Kl||lm(_,D,Ot,Q,ir,Nt,Mn))?(gr||typeof nt.UNSAFE_componentWillMount!="function"&&typeof nt.componentWillMount!="function"||(typeof nt.componentWillMount=="function"&&nt.componentWillMount(),typeof nt.UNSAFE_componentWillMount=="function"&&nt.UNSAFE_componentWillMount()),typeof nt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof nt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=Nt),nt.props=Q,nt.state=Nt,nt.context=Mn,Q=Ot):(typeof nt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{nt=_.stateNode,I(m,_),Ot=_.memoizedProps,Mn=_.type===_.elementType?Ot:dl(_.type,Ot),nt.props=Mn,gr=_.pendingProps,ir=nt.context,Nt=D.contextType,typeof Nt=="object"&&Nt!==null?Nt=fu(Nt):(Nt=Bs(D)?Ca:qa.current,Nt=hc(_,Nt));var Yr=D.getDerivedStateFromProps;(lr=typeof Yr=="function"||typeof nt.getSnapshotBeforeUpdate=="function")||typeof nt.UNSAFE_compon Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var zO;function yG(){return zO||(zO=1,function(n){const e=mG(),t=gG(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.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 s(){try{const Ge=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf(Ge,ce),Ge.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(Ge){if(Ge>i)throw new RangeError('The value "'+Ge+'" is invalid for option "size"');const ce=new Uint8Array(Ge);return Object.setPrototypeOf(ce,o.prototype),ce}function o(Ge,ce,pe){if(typeof Ge=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ge)}return p(Ge,ce,pe)}o.poolSize=8192;function p(Ge,ce,pe){if(typeof Ge=="string")return O(Ge,ce);if(ArrayBuffer.isView(Ge))return F(Ge);if(Ge==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge);if(hn(Ge,ArrayBuffer)||Ge&&hn(Ge.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hn(Ge,SharedArrayBuffer)||Ge&&hn(Ge.buffer,SharedArrayBuffer)))return j(Ge,ce,pe);if(typeof Ge=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const rt=Ge.valueOf&&Ge.valueOf();if(rt!=null&&rt!==Ge)return o.from(rt,ce,pe);const St=N(Ge);if(St)return St;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ge[Symbol.toPrimitive]=="function")return o.from(Ge[Symbol.toPrimitive]("string"),ce,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ge)}o.from=function(Ge,ce,pe){return p(Ge,ce,pe)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function y(Ge){if(typeof Ge!="number")throw new TypeError('"size" argument must be of type number');if(Ge<0)throw new RangeError('The value "'+Ge+'" is invalid for option "size"')}function x(Ge,ce,pe){return y(Ge),Ge<=0?l(Ge):ce!==void 0?typeof pe=="string"?l(Ge).fill(ce,pe):l(Ge).fill(ce):l(Ge)}o.alloc=function(Ge,ce,pe){return x(Ge,ce,pe)};function B(Ge){return y(Ge),l(Ge<0?0:q(Ge)|0)}o.allocUnsafe=function(Ge){return B(Ge)},o.allocUnsafeSlow=function(Ge){return B(Ge)};function O(Ge,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!o.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const pe=oe(Ge,ce)|0;let rt=l(pe);const St=rt.write(Ge,ce);return St!==pe&&(rt=rt.slice(0,St)),rt}function P(Ge){const ce=Ge.length<0?0:q(Ge.length)|0,pe=l(ce);for(let rt=0;rt<ce;rt+=1)pe[rt]=Ge[rt]&255;return pe}function F(Ge){if(hn(Ge,Uint8Array)){const ce=new Uint8Array(Ge);return j(ce.buffer,ce.byteOffset,ce.byteLength)}return P(Ge)}function j(Ge,ce,pe){if(ce<0||Ge.byteLength<ce)throw new RangeError('"offset" is outside of buffer bounds');if(Ge.byteLength<ce+(pe||0))throw new RangeError('"length" is outside of buffer bounds');let rt;return ce===void 0&&pe===void 0?rt=new Uint8Array(Ge):pe===void 0?rt=new Uint8Array(Ge,ce):rt=new Uint8Array(Ge,ce,pe),Object.setPrototypeOf(rt,o.prototype),rt}function N(Ge){if(o.isBuffer(Ge)){const ce=q(Ge.length)|0,pe=l(ce);return pe.length===0||Ge.copy(pe,0,0,ce),pe}if(Ge.length!==void 0)return typeof Ge.length!="number"||er(Ge.length)?l(0):P(Ge);if(Ge.type==="Buffer"&&Array.isArray(Ge.data))return P(Ge.data)}function q(Ge){if(Ge>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ge|0}function $(Ge){return+Ge!=Ge&&(Ge=0),o.alloc(+Ge)}o.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==o.prototype},o.compare=function(ce,pe){if(hn(ce,Uint8Array)&&(ce=o.from(ce,ce.offset,ce.byteLength)),hn(pe,Uint8Array)&&(pe=o.from(pe,pe.offset,pe.byteLength)),!o.isBuffer(ce)||!o.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===pe)return 0;let rt=ce.length,St=pe.length;for(let Ht=0,sn=Math.min(rt,St);Ht<sn;++Ht)if(ce[Ht]!==pe[Ht]){rt=ce[Ht],St=pe[Ht];break}return rt<St?-1:St<rt?1:0},o.isEncoding=function(ce){switch(String(ce).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}},o.concat=function(ce,pe){if(!Array.isArray(ce))throw new TypeError('"list" argument must be an Array of BuLine 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
*/var MG=Ev.exports,NO;function wG(){return NO||(NO=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",y=500,x="__lodash_placeholder__",B=1,O=2,P=4,F=1,j=2,N=1,q=2,$=4,oe=8,te=16,V=32,ne=64,W=128,ie=256,he=512,fe=30,Ee="...",me=800,Se=16,Ke=1,xe=2,st=3,Ze=1/0,tt=9007199254740991,Ne=17976931348623157e292,we=NaN,De=4294967295,He=De-1,_t=De>>>1,Yt=[["ary",W],["bind",N],["bindKey",q],["curry",oe],["curryRight",te],["flip",he],["partial",V],["partialRight",ne],["rearg",ie]],gt="[object Arguments]",Ft="[object Array]",Pt="[object AsyncFunction]",Fe="[object Boolean]",Pe="[object Date]",Be="[object DOMException]",it="[object Error]",Ct="[object Function]",pt="[object GeneratorFunction]",Lt="[object Map]",tn="[object Number]",Rt="[object Null]",yn="[object Object]",Yn="[object Promise]",en="[object Proxy]",cr="[object RegExp]",kn="[object Set]",hn="[object String]",er="[object Symbol]",hr="[object Undefined]",yr="[object WeakMap]",tr="[object WeakSet]",Ge="[object ArrayBuffer]",ce="[object DataView]",pe="[object Float32Array]",rt="[object Float64Array]",St="[object Int8Array]",Ht="[object Int16Array]",sn="[object Int32Array]",nr="[object Uint8Array]",$e="[object Uint8ClampedArray]",ae="[object Uint16Array]",Ce="[object Uint32Array]",f=/\b__p \+= '';/g,je=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Xe=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,dt=RegExp(Xe.source),Gt=RegExp(At.source),Wt=/<%-([\s\S]+?)%>/g,jt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,Dn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fn=/^\w*$/,on=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Sr=/[\\^$.*+?()[\]{}|]/g,$n=RegExp(Sr.source),xr=/^\s+/,qr=/\s/,Bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Vn=/\{\n\/\* \[wrapped with (.+)\] \*/,Qn=/,? & /,Qr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,co=/[()=,{}\[\]\/\s]/,ma=/\\(\\)?/g,Mr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,wi=/\w*$/,Zi=/^[-+]0x[0-9a-f]+$/i,Ts=/^0b[01]+$/i,xs=/^\[object .+?Constructor\]$/,aa=/^0o[0-7]+$/i,ps=/^(?:0|[1-9]\d*)$/,bi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Il=/($^)/,kl=/['\n\r\u2028\u2029\\]/g,io="\\ud800-\\udfff",vl="\\u0300-\\u036f",ol="\\ufe20-\\ufe2f",bo="\\u20d0-\\u20ff",Kr=vl+ol+bo,Wa="\\u2700-\\u27bf",Vo="a-z\\xdf-\\xf6\\xf8-\\xff",Gs="\\xac\\xb1\\xd7\\xf7",Ye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",vn=" \\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",Hn="A-Z\\xc0-\\xd6\\xd8-\\xde",dn="\\ufe0e\\ufe0f",ar=Gs+Ye+xt+vn,Pi="['’]",xo="["+io+"]",as="["+ar+"]",la="["+Kr+"]",Nu="\\d+",ei="["+Wa+"]",ki="["+Vo+"]",zl="[^"+io+ar+Nu+Wa+Vo+Hn+"]",ra="\\ud83c[\\udffb-\\udfff]",Ms="(?:"+la+"|"+ra+")",bu="[^"+io+"]",Si="(?:\\ud83c[\\udde6-\\uddff]){2}",ti="[\\ud800-\\udbff][\\udc00-\\udfff]",ls="["+Hn+"]",ka="\\u200d",Us="(?:"+ki+"|"+zl+")",ho="(?:"+ls+"|"+zl+")",Do="(?:"+Pi+"(?:d|ll|m|re|s|t|ve))?",Wu="(?:"+Pi+"(?:D|LL|M|RE|S|T|VE))?",Qs=Ms+"?",ia="["+dn+"]?",No="(?:"+ka+"(?:"+[bu,Si,ti].join("|")+")"+ia+Qs+")*",Fo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",es="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Mo=ia+Qs+No,ga="(?:"+[ei,Si,ti].join("|")+")"+Mo,zs="(?:"+[bu+la+"?",la,Si,ti,xo].join("|")+")",Ga=RegExp(Pi,"g"),Ta=RegExp(la,"g"),ao=RegExp(ra+"(?="+ra+")|"+zs+Mo,"g"),sl=RegExp([ls+"?"+ki+"+"+Do+"(?="+[as,ls,"$"].join("|")+")",ho+"+"+Wu+"(?="+[as,ls+Us,"$"].join("|")+")",ls+"?"+Us+"+"+Do,ls+"+"+Wu,es,Fo,Nu,ga].join("|"),"g"),Hi=RegExp("["+ka+io+Kr+dn+"]"),Hr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,jl=["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"],Wi=-1,oo={};oo[pe]=oo[rt]=oo[St]=oo[Ht]=oo[sn]=oo[nr]=oo[$e]=oo[ae]=oo[Ce]=!0,oo[gt]=oo[Ft]=oo[Ge]=oo[Fe]=oo[ce]=oo[Pe]=oo[it]=oo[Ct]=oo[Lt]=oo[tn]=oo[yn]=oo[cr]=oo[kn]=oo[hn]=oo[yr]=!1;var Ki={};Ki[gt]=Ki[Ft]=Ki[Ge]=Ki[ce]=Ki[Fe]=Ki[Pe]=Ki[pe]=Ki[rt]=Ki[St]=Ki[Ht]=Ki[sn]=Ki[Lt]=Ki[tn]=Ki[yn]=Ki[cr]=Ki[kn]=Ki[hn]=Ki[er]=Ki[nr]=Ki[$e]=Ki[ae]=Ki[Ce]=!0,Ki[it]=Ki[Ct]=Ki[yr]=!1;var ee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
/* [wrapped with `+k+`] */
`)}function g(b){return vo(b)||Kp(b)||!!(af&&b&&b[af])}function E(b,k){var H=typeof b;return k=k??tt,!!k&&(H=="number"||H!="symbol"&&ps.test(b))&&b>-1&&b%1==0&&b<k}function S(b,k,H){if(!Ja(H))return!1;var ve=typeof k;return(ve=="number"?zc(H)&&E(k,H.length):ve=="string"&&k in H)?lh(H[k],b):!1}function K(b,k){if(vo(b))return!1;var H=typeof b;return H=="number"||H=="symbol"||H=="boolean"||b==null||Ld(b)?!0:Fn.test(b)||!Dn.test(b)||k!=null&&b in ts(k)}function Z(b){var k=typeof b;return k=="string"||k=="number"||k=="symbol"||k=="boolean"?b!=="__proto__":b===null}function Ae(b){var k=Th(b),H=ot[k];if(typeof H!="function"||!(k in ri.prototype))return!1;if(b===H)return!0;var ve=ff(H);return!!ve&&b===ve[0]}function _e(b){return!!lo&&lo in b}var Ie=Wl?uh:p3;function Ue(b){var k=b&&b.constructor,H=typeof k=="function"&&k.prototype||Nl;return b===H}function yt(b){return b===b&&!Ja(b)}function wt(b,k){return function(H){return H==null?!1:H[b]===k&&(k!==t||b in ts(H))}}function Zt(b){var k=Cr(b,function(ve){return H.size===y&&H.clear(),ve}),H=k.cache;return k}function Qt(b,k){var H=b[1],ve=k[1],Ve=H|ve,ht=Ve<(N|q|W),Tt=ve==W&&H==oe||ve==W&&H==ie&&b[7].length<=k[8]||ve==(W|ie)&&k[7].length<=k[8]&&H==oe;if(!(ht||Tt))return b;ve&N&&(b[2]=k[2],Ve|=H&N?0:$);var Vt=k[3];if(Vt){var ln=b[3];b[3]=ln?Ih(ln,Vt,k[4]):Vt,b[4]=ln?ll(b[3],x):k[4]}return Vt=k[5],Vt&&(ln=b[5],b[5]=ln?nh(ln,Vt,k[6]):Vt,b[6]=ln?ll(b[5],x):k[6]),Vt=k[7],Vt&&(b[7]=Vt),ve&W&&(b[8]=b[8]==null?k[8]:Ya(b[8],k[8])),b[9]==null&&(b[9]=k[9]),b[0]=k[0],b[1]=Ve,b}function bn(b){var k=[];if(b!=null)for(var H in ts(b))k.push(H);return k}function Ln(b){return Su.call(b)}function rr(b,k,H){return k=As(k===t?b.length-1:k,0),function(){for(var ve=arguments,Ve=-1,ht=As(ve.length-k,0),Tt=un(ht);++Ve<ht;)Tt[Ve]=ve[k+Ve];Ve=-1;for(var Vt=un(k+1);++Ve<k;)Vt[Ve]=ve[Ve];return Vt[k]=H(Tt),qs(b,this,Vt)}}function Jn(b,k){return k.length<2?b:ql(b,Bi(k,0,-1))}function _r(b,k){for(var H=b.length,ve=Ya(k.length,H),Ve=Ma(b);ve--;){var ht=k[ve];b[ve]=E(ht,H)?Ve[ht]:t}return b}function mr(b,k){if(!(k==="constructor"&&typeof b[k]=="function")&&k!="__proto__")return b[k]}var Or=yo(Ri),oi=$c||function(b,k){return Br.setTimeout(b,k)},jr=yo(Xi);function zi(b,k,H){var ve=k+"";return jr(b,A(ve,Za(Da(ve),H)))}function yo(b){var k=0,H=0;return function(){var ve=Sp(),Ve=Se-(ve-H);if(H=ve,Ve>0){if(++k>=me)return arguments[0]}else k=0;return b.apply(t,arguments)}}function Fa(b,k){var H=-1,ve=b.length,Ve=ve-1;for(k=k===t?ve:k;++H<k;){var ht=xn(H,Ve),Tt=b[ht];b[ht]=b[H],b[H]=Tt}return b.length=k,b}var Zs=Zt(function(b){var k=[];return b.charCodeAt(0)===46&&k.push(""),b.replace(on,function(H,ve,Ve,ht){k.push(Ve?ht.replace(ma,"$1"):ve||H)}),k});function wa(b){if(typeof b=="string"||Ld(b))return b;var k=b+"";return k=="0"&&1/b==-1/0?"-0":k}function Ha(b){if(b!=null){try{return yA.call(b)}catch{}try{return b+""}catch{}}return""}function Za(b,k){return al(Yt,function(H){var ve="_."+H[0];k&H[1]&&!Vd(b,ve)&&b.push(ve)}),b.sort()}function Pu(b){if(b instanceof ri)return b.clone();var k=new Ti(b.__wrapped__,b.__chain__);return k.__actions__=Ma(b.__actions__),k.__index__=b.__index__,k.__values__=b.__values__,k}function hl(b,k,H){(H?S(b,k,H):k===t)?k=1:k=As(Co(k),0);var ve=b==null?0:b.length;if(!ve||k<1)return[];for(var Ve=0,ht=0,Tt=un(Bc(ve/k));Ve<ve;)Tt[ht++]=Bi(b,Ve,Ve+=k);return Tt}function Sa(b){for(var k=-1,H=b==null?0:b.length,ve=0,Ve=[];++k<H;){var ht=b[k];ht&&(Ve[ve++]=ht)}return Ve}function is(){var b=arguments.length;if(!b)return[];for(var k=un(b-1),H=arguments[0],ve=b;ve--;)k[ve-1]=arguments[ve];return LA(vo(H)?Ma(H):[H],$s(k,1))}var gi=In(function(b,k){return Ea(b)?Aa(b,$s(k,1,Ea,!0)):[]}),os=In(function(b,k){var H=OA(k);return Ea(H)&&(H=t),Ea(b)?Aa(b,$s(k,1,Ea,!0),Oi(H,2)):[]}),Xs=In(function(b,k){var H=OA(k);return Ea(H)&&(H=t),Ea(b)?Aa(b,$s(k,1,Ea,!0),t,H):[]});function da(b,k,H){var ve=b==null?0:b.length;return ve?(k=H||k===t?1:Co(k),Bi(b,k<0?0:k,ve)):[]}function Is(b,k,H){var ve=b==null?0:b.length;return ve?(k=H||k===t?1:Co(k),k=ve-k,Bi(b,0,k<0?0:k)):[]}function eu(b,k){return b&&b.length?pu(b,Oi(k,3),!0,!0):[]}function Bo(b,k){return b&&b.length?pu(b,Oi(k,3),!0):[]}function sh(b,k,H,ve){var Ve=b==null?0:b.length;return Ve?(H&&typeof H!="number"&&S(b,k,H)&&(H=0,ve=Ve),Vs(b,k,H,ve)):[]}function yu(b,k,H){var ve=b==null?0:b.length;if(!ve)return-1;var Ve=H==null?0:Co(H);return Ve<0&&(Ve=As(ve+Ve,0)),bc(b,Oi(k,3),Ve)}function aA(b,k,H){var ve=b==null?0:b.length;if(!ve)return-1;var Ve=ve-1;return H!==t&&(Ve=Co(H),Ve=H<0?As(ve+Ve,0):Ya(Ve,ve-1)),bc(b,Oi(k,3),Ve,!0)}function sd(b){var k=b==null?0:b.length;return k?$s(b,1):[]}function Xa(b){var k=b==null?0:b.length;return k?$s(b,Ze):[]}function La(b,k){var H=b==null?0:b.length;return H?(k=k===t?1:Co(k),$s(b,k)):[]}function Ph(b){for(var k=-1,H=b==null?0:b.length,ve={};++k<H;){var Ve=b[k];ve[Ve[0]]=Ve[1]}return ve}function $f(b){return b&&b.length?b[0]:t}function Kh(b,k,H){var ve=b==null?0:b.length;if(!ve)return-1;var Ve=H==null?0:Co(H);return Ve<0&&( Line truncated
`;b.replace(Vr,function(eo,bs,Ps,Nh,Nd,Wh){return Ps||(Ps=Nh),pr+=b.slice(Zn,Wh).replace(kl,uc),bs&&(Vt=!0,pr+=`' +
__e(`+bs+`) +
'`),Nd&&(ln=!0,pr+=`';
`+Nd+`;
__p += '`),Ps&&(pr+=`' +
((__t = (`+Ps+`)) == null ? '' : __t) +
'`),Zn=Wh+eo.length,eo}),pr+=`';
`;var Ji=Po.call(k,"variable")&&k.variable;if(!Ji)pr=`with (obj) {
`+pr+`
}
`;else if(co.test(Ji))throw new ci(o);pr=(ln?pr.replace(f,""):pr).replace(je,"$1").replace(qe,"$1;"),pr="function("+(Ji||"obj")+`) {
`+(Ji?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Vt?", __e = _.escape":"")+(ln?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+pr+`return __p
}`;var Xo=I_(function(){return To(ht,Ei+"return "+pr).apply(t,Tt)});if(Xo.source=pr,ym(Xo))throw Xo;return Xo}function w_(b){return oa(b).toLowerCase()}function S_(b){return oa(b).toUpperCase()}function sv(b,k,H){if(b=oa(b),b&&(H||k===t))return Hd(b);if(!b||!(k=Ho(k)))return b;var ve=Yu(b),Ve=Yu(k),ht=wu(ve,Ve),Tt=Cd(ve,Ve)+1;return Hl(ve,ht,Tt).join("")}function av(b,k,H){if(b=oa(b),b&&(H||k===t))return b.slice(0,wh(b)+1);if(!b||!(k=Ho(k)))return b;var ve=Yu(b),Ve=Cd(ve,Yu(k))+1;return Hl(ve,0,Ve).join("")}function tp(b,k,H){if(b=oa(b),b&&(H||k===t))return b.replace(xr,"");if(!b||!(k=Ho(k)))return b;var ve=Yu(b),Ve=wu(ve,Yu(k));return Hl(ve,Ve).join("")}function E_(b,k){var H=fe,ve=Ee;if(Ja(k)){var Ve="separator"in k?k.separator:Ve;H="length"in k?Co(k.length):H,ve="omission"in k?Ho(k.omission):ve}b=oa(b);var ht=b.length;if(_d(b)){var Tt=Yu(b);ht=Tt.length}if(H>=ht)return b;var Vt=H-Md(ve);if(Vt<1)return ve;var ln=Tt?Hl(Tt,0,Vt).join(""):b.slice(0,Vt);if(Ve===t)return ln+ve;if(Tt&&(Vt+=ln.length-Vt),tg(Ve)){if(b.slice(Vt).search(Ve)){var Zn,Xn=ln;for(Ve.global||(Ve=qu(Ve.source,oa(wi.exec(Ve))+"g")),Ve.lastIndex=0;Zn=Ve.exec(Xn);)var pr=Zn.index;ln=ln.slice(0,pr===t?Vt:pr)}}else if(b.indexOf(Ho(Ve),Vt)!=Vt){var Vr=ln.lastIndexOf(Ve);Vr>-1&&(ln=ln.slice(0,Vr))}return ln+ve}function B_(b){return b=oa(b),b&&dt.test(b)?b.replace(Xe,Uf):b}var u3=Id(function(b,k,H){return b+(H?" ":"")+k.toUpperCase()}),lv=lm("toUpperCase");function O_(b,k,H){return b=oa(b),k=H?t:k,k===t?Mh(b)?jf(b):wp(b):b.match(k)||[]}var I_=In(function(b,k){try{return qs(b,t,k)}catch(H){return ym(H)?H:new ci(H)}}),A3=XA(function(b,k){return al(k,function(H){H=wa(H),Al(b,H,ir(b[H],b))}),b});function c3(b){var k=b==null?0:b.length,H=Oi();return b=k?ws(b,function(ve){if(typeof ve[1]!="function")throw new lu(l);return[H(ve[0]),ve[1]]}):[],In(function(ve){for(var Ve=-1;++Ve<k;){var ht=b[Ve];if(qs(ht[0],this,ve))return qs(ht[1],this,ve)}})}function d3(b){return Eh(Ur(b,B))}function uv(b){return function(){return b}}function jh(b,k){return b==null||b!==b?k:b}var s1=Gf(),k_=Gf(!0);function dd(b){return b}function Av(b){return ye(typeof b=="function"?b:Ur(b,B))}function h3(b){return mt(Ur(b,B))}function tc(b,k){return ut(b,Ur(k,B))}var zd=In(function(b,k){return function(H){return Kl(H,b,k)}}),bm=In(function(b,k){return function(H){return Kl(b,H,k)}});function jd(b,k,H){var ve=Mt(k),Ve=Kc(k,ve);H==null&&!(Ja(k)&&(Ve.length||!ve.length))&&(H=k,k=b,b=this,Ve=Kc(k,Mt(k)));var ht=!(Ja(H)&&"chain"in H)||!!H.chain,Tt=uh(b);return al(Ve,function(Vt){var ln=k[Vt];b[Vt]=ln,Tt&&(b.prototype[Vt]=function(){var Zn=this.__chain__;if(ht||Zn){var Xn=b(this.__wrapped__),pr=Xn.__actions__=Ma(this.__actions__);return pr.push({func:ln,args:arguments,thisArg:b}),Xn.__chain__=Zn,Xn}return ln.apply(b,LA([this.value()],arguments))})}),b}function xm(){return Br._===this&&(Br._=Tl),this}function Ah(){}function lN(b){return b=Co(b),In(function(k){return Bt(k,b)})}var uN=rh(ws),AN=rh(Ch),cN=rh(UA);function X8(b){return K(b)?Jh(wa(b)):It(b)}function dN(b){return function(k){return b==null?t:ql(b,k)}}var hN=Td(),fN=Td(!0);function f3(){return[]}function p3(){return!1}function pN(){return{}}function mN(){return""}function gN(){return!0}function yN(b,k){if(b=Co(b),b<1||b>tt)return[];var H=De,ve=Ya(b,De);k=Oi(k),b-=De;for(var Ve=tf(ve,k);++H<b;)k(H);return Ve}function vN(b){return vo(b)?ws(b,wa):Ld(b)?[b]:Ma(Zs(oa(b)))}function CN(b){var k=++Mc;return oa(b)+k}var _N=Fc(function(b,k){return b+k},0),bN=Xl("ceil"),xN=Fc(function(b,k){return b/k},1),MN=Xl("floor");function wN(b){return b&&b.length?$A(b,dd,hu):t}function SN(b,k){return b&&b.length?$A(b,Oi(k,2),hu):t}function EN(b){return $d(b,dd)}function BN(b,k){return $d(b,Oi(k,2))}function ON(b){return b&&b.length?$A(b,dd,Qe):t}function IN(b,k){return b&&b.length?$A(b,Oi(k,2),Qe):t}var kN=Fc(function(b,k){return b*k},1),TN=Xl("round"),PN=Fc(function(b,k){return b-k},0);function KN(b){return b&&b.length?xh(b,dd):0}function RN(b,k){return b&&b.length?xh(b,Oi(k,2)):0}return ot.after=Mn,ot.ary=lr,ot.assign=d,ot.assignIn=u,ot.assignInWith=h,ot.assignWith=v,ot.at=w,ot.before=gr,ot.bind=ir,ot.bindAll=A3,ot.bindKey=Yr,ot.castArray=c_,ot.chain=Dd,ot.chunk=hl,ot.compact=Sa,ot.concat=is,ot.cond=c3,ot.conforms=d3,ot.constant=uv,ot.countBy=H0,ot.create=R,ot.curry=ii,ot.curryRight=ai,ot.debounce=fl,ot.defaults=U,ot.defaultsDeep=G,ot.defer=cn,ot.delay=Xt,ot.difference=gi,ot.differenceBy=os,ot.differenceWith=Xs,ot.drop=da,ot.dropRight=Is,ot.dropRightWhile=eu,ot.dropWhile=Bo,ot.fill=sh,ot.filter=kp,ot.flatMap=Xm,ot.flatMapDeep=t1,ot.flatMapDepth=X0,ot.flatten=sd,ot.flattenDeep=Xa,ot.flattenDepth=La,ot.flip=mn,ot.flow=s1,ot.flowRight=k_,ot.fromPairs=Ph,ot.functions=We,ot.functionsIn=et,ot.groupBy=e0,ot.initial=hm,ot.intersection=Gm,ot.intersectionBy=mf,ot.intersectionWith=Qm,ot.invert=Et,ot.invertBy=Le,ot.invokeMap=n1,ot.iteratee=Av,ot.keyBy=vf,ot.keys=Mt,ot.keysIn=an,ot.map=Uc,ot.mapKeys=zn,ot.mapValues=gn,ot.matches=h3,ot.matchesProperty=tc,ot.memoize Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const O=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&O.push(new Er(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Ty(Pg(l))&&Uu(l.type)==="identity"&&O.push(new Er(t,l,'"text-font" does not support identity functions'))),O.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function wF(n){return MF(n,"paint")}function SF(n){return MF(n,"layout")}function EF(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;!t.type&&!t.ref&&e.push(new Er(r,t,'either "type" or "ref" is required'));let l=Uu(t.type);const o=Uu(t.ref);if(t.id){const p=Uu(t.id);for(let y=0;y<n.arrayIndex;y++){const x=i.layers[y];Uu(x.id)===p&&e.push(new Er(r,t.id,`duplicate layer id "${t.id}", previously used at line ${x.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(y=>{y in t&&e.push(new Er(r,t[y],`"${y}" is prohibited for ref layers`))});let p;i.layers.forEach(y=>{Uu(y.id)===o&&(p=y)}),p?p.ref?e.push(new Er(r,t.ref,"ref cannot reference another ref layer")):l=Uu(p.type):e.push(new Er(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new Er(r,t,'missing required property "source"'));else{const p=i.sources&&i.sources[t.source],y=p&&Uu(p.type);p?y==="vector"&&l==="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster source`)):y!=="raster-dem"&&l==="hillshade"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster-dem source`)):y==="raster"&&l!=="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a vector source`)):y==="vector"&&!t["source-layer"]?e.push(new Er(r,t,`layer "${t.id}" must specify a "source-layer"`)):y==="raster-dem"&&l!=="hillshade"?e.push(new Er(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(y!=="geojson"||!p.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(Sf({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:mB,layout(p){return Sf({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(y){return SF(my({layerType:l},y))}}})},paint(p){return Sf({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(y){return wF(my({layerType:l},y))}}})}}})),e}function Kg(n){const e=n.value,t=n.key,r=Ds(e);return r!=="string"?[new Er(t,e,`string expected, ${r} found`)]:[]}function Tq(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const p=Ds(r);if(r===void 0)return o;if(p!=="object")return o.push(new Er("source_raster_dem",r,`object expected, ${p} found`)),o;const x=Uu(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],O=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!x&&B.includes(P)?o.push(new Er(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${O} encoding found`)):s[P]?o=o.concat(n.validateSpec({key:P,value:r[P],valueSpec:s[P],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new Er(P,r[P],`unknown property "${P}"`));return o}const p7={promoteId:Pq};function BF(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new Er(t,e,'"type" is required')];const l=Uu(e.type);let o;switch(l){case"vector":case"raster":return o=Sf({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:p7,validateSpec:s}),o;case"raster-dem":return o=Tq({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Sf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:p7}),e.cluster)for(const p in e.clusterProperties){const[y,x]=e.clusterProperties[p],B=typeof y=="string"?[y,["accumulated"],["get",p]]:y;o.push(...yy({key:`${t}.${p}.map`,value:x,validateSpec:s,expressionContext:"cluster-map"})),o.push(...yy({key:`${t}.${p}.reduce`,value:B,validateSpec:s,expressionContext:"cluster-reduce"}))}return o;case"video":return Sf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Sf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new Er(t,null,"Please use runtime APIs to add canvas sources,Line truncated
${B}`),j].join(`
${o}`)}return y}(n,"",0)}function g7(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 RF(n,e=2){return n=g7(n,ks.$root),n.layers&&(n.layers=n.layers.map(t=>g7(t,ks.layer))),Wq(n,{indent:e})}function j3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function y7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function zE(n,e){return typeof e=="string"&&e[0]==="@"?zE(n,n.constants[e]):e}function Gq(n){return Array.isArray(n.stops)}function fv(n,e,t){n[t]=n[e],delete n[e]}function Qq(n){n.version=8,Oq(n,i=>{i.type==="video"&&i.url!==void 0&&fv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),Hv(n,i=>{j3(i,s=>{s["symbol-min-distance"]!==void 0&&fv(s,"symbol-min-distance","symbol-spacing")}),y7(i,s=>{s["background-image"]!==void 0&&fv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&fv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&fv(s,"fill-image","fill-pattern")})}),hB(n,{paint:!0,layout:!0},i=>{const s=zE(n,i.value);Gq(s)&&s.stops.forEach(l=>{l[1]=zE(n,l[1])}),i.set(s)}),delete n.constants,Hv(n,i=>{j3(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),y7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}Hv(n,i=>{j3(i,s=>{s["text-font"]&&(s["text-font"]=e(s["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 Yq(n){const e=[];return Hv(n,t=>{t.filter&&(t.filter=$v(t.filter))}),hB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Py(r)||(typeof r=="object"&&!Array.isArray(r)?(s(uB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(CF(r)))}),n}function qq(n){return JSON.parse(Vq(JSON.stringify(n)))}function Vq(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function $q(n){let e=!1;if(n.version===7&&(n=Qq(n),e=!0),n.version===8&&(e=!!Yq(n),e=!0),hB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(qq(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Hq=ks,Zq={StyleExpression:yF,StylePropertyFunction:sx,ZoomConstantExpression:FE,ZoomDependentExpression:LE,createExpression:ix,createPropertyExpression:ox,isExpression:Py,isExpressionFilter:jC,isZoomExpression:fq,normalizePropertyExpression:pq},Xq={convertFunction:uB,createFunction:lB,isFunction:Ty};var ax=DC();const Jq=yl(ax);var xb={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.3.0/LICENSE.txt
*/var eV=xb.exports,v7;function tV(){return v7||(v7=1,function(n,e){(function(t,r){n.exports=r()})(eV,function(){var t={},r={};function i(l,o,p){if(r[l]=p,l==="index"){var y="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",x={};return r.shared(x),r.index(t,x),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([y],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(d,u,h,v){return new(h||(h=Promise))(function(w,R){function U(re){try{X(v.next(re))}catch(de){R(de)}}function G(re){try{X(v.throw(re))}catch(de){R(de)}}function X(re){var de;re.done?w(re.value):(de=re.value,de instanceof h?de:new h(function(be){be(de)})).then(U,G)}X((v=v.apply(d,u||[])).next())})}function p(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var y,x;function B(){if(x)return y;function d(u,h){this.x=u,this.y=h}return x=1,y=d,d.prototype={clone:function(){return new d(this.x,this.y)},add:function(u){return this.clone()._add(u)},sub:function(u){return this.clone()._sub(u)},multByPoint:function(u){return this.clone()._multByPoint(u)},divByPoint:function(u){return this.clone()._divByPoint(u)},mult:function(u){return this.clone()._mult(u)},div:function(u){return this.clone()._div(u)},rotate:function(u){return this.clone()._rotate(u)},rotateAround:function(u,h){return this.clone()._rotateAround(u,h)},matMult:function(u){return this.clone()._matMult(u)},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(u){return this.x===u.x&&this.y===u.y},dist:function(u){return Math.sqrt(this.distSqr(u))},distSqr:function(u){var h=u.x-this.x,v=u.y-this.y;return h*h+v*v},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(u){return Math.atan2(this.y-u.y,this.x-u.x)},angleWith:function(u){return this.angleWithSep(u.x,u.y)},angleWithSep:function(u,h){return Math.atan2(this.x*h-this.y*u,this.x*u+this.y*h)},_matMult:function(u){var h=u[2]*this.x+u[3]*this.y;return this.x=u[0]*this.x+u[1]*this.y,this.y=h,this},_add:function(u){return this.x+=u.x,this.y+=u.y,this},_sub:function(u){return this.x-=u.x,this.y-=u.y,this},_mult:function(u){return this.x*=u,this.y*=u,this},_div:function(u){return this.x/=u,this.y/=u,this},_multByPoint:function(u){return this.x*=u.x,this.y*=u.y,this},_divByPoint:function(u){return this.x/=u.x,this.y/=u.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var u=this.y;return this.y=this.x,this.x=-u,this},_rotate:function(u){var h=Math.cos(u),v=Math.sin(u),w=v*this.x+h*this.y;return this.x=h*this.x-v*this.y,this.y=w,this},_rotateAround:function(u,h){var v=Math.cos(u),w=Math.sin(u),R=h.y+w*(this.x-h.x)+v*(this.y-h.y);return this.x=h.x+v*(this.x-h.x)-w*(this.y-h.y),this.y=R,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},d.convert=function(u){return u instanceof d?u:Array.isArray(u)?new d(u[0],u[1]):u},y}typeof SuppressedError=="function"&&SuppressedError;var O,P,F=p(B()),j=function(){if(P)return O;function d(u,h,v,w){this.cx=3*u,this.bx=3*(v-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*h,this.by=3*(w-h)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=h,this.p2x=v,this.p2y=w}return P=1,O=d,d.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,h){if(h===void 0&&(h=1e-6),u<0)return 0;if(u>1)return 1;for(var v=u,w=0;w<8;w++){var R=this.sampleCurveX(v)-u;if(Math.abs(R)<h)return v;var U=this.sampleCurveDerivativeX(v);if(Math.abs(U)<1e-6)break;v-=R/U}var G=0,X=1;for(v=u,w=0;w<20&&(R=this.sampleCurveX(v),!(Math.abs(R-u)<h));w++)u>R?G=v:X=v,v=.5*(X-G)+G;return v},solve:function(u,h){return this.sampleCurveY(this.solveCurveX(u,h))}},O}(),N=p(j);let q,$;function oe(){return q==null&&(q=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),q}function te(){if($==null&&($=!1,oe())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let v=0;v<5*5;v++){const w=4*v;u.fillStyle=`rgb(${w},${w+1},${w+2})`,u.fillRect(v%5,Math.floor(v/5),1,1)}const h=u.getImageData(0,0,5,5).data;for(let v=0;v<5*5*4;v++)if(v%4!=3&&h[v]!==v){$=!0;break}}}return $||!1}var V,ne=1e-6,W=typeof Float32Array<"u"?Float32Array:Array;function ie(){var d=new W(9);return W!=Float32Array&&(d[1]=0,d[2]=0,d[3]=0,d[5]=0,d[6]=0,d[7]=0),d[0]=1,d[4]=1,d[8]=1,d}function he(d){return d[0]=1,d[1]=0,d[2]=0,d[3]=0,d[4]=0,d[5]=1,d[6]=0,d[7]=0,d[8]=0,d[9]=0,d[10]=1,d[11]=0,d[12]=0,d[13]=0,d[14]=0,d[15]=1,d}function fe(){var d=new W(3);return W!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d}function Ee(d,u,h){var v=new W(3);return v[0]=d,v[1]=u,v[2]=h,v}function me(d,u,hLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(be[1])} }\`.`)];const Re=[];return d.layerType==="symbol"&&(G==="text-field"&&w&&!w.glyphs&&Re.push(new on(h,U,'use of "text-field" requires a style "glyphs" property')),G==="text-font"&&Su(bA(U))&&js(U.type)==="identity"&&Re.push(new on(h,U,'"text-font" does not support identity functions'))),Re.concat(v({key:d.key,value:U,valueSpec:de,style:w,styleSpec:R,expressionContext:"property",propertyType:u,propertyKey:G}))}function eh(d){return Xc(d,"paint")}function dc(d){return Xc(d,"layout")}function eA(d){let u=[];const h=d.value,v=d.key,w=d.style,R=d.styleSpec;h.type||h.ref||u.push(new on(v,h,'either "type" or "ref" is required'));let U=js(h.type);const G=js(h.ref);if(h.id){const X=js(h.id);for(let re=0;re<d.arrayIndex;re++){const de=w.layers[re];js(de.id)===X&&u.push(new on(v,h.id,`duplicate layer id "${h.id}", previously used at line ${de.id.__line__}`))}}if("ref"in h){let X;["type","source","source-layer","filter","layout"].forEach(re=>{re in h&&u.push(new on(v,h[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{js(re.id)===G&&(X=re)}),X?X.ref?u.push(new on(v,h.ref,"ref cannot reference another ref layer")):U=js(X.type):u.push(new on(v,h.ref,`ref layer "${G}" not found`))}else if(U!=="background")if(h.source){const X=w.sources&&w.sources[h.source],re=X&&js(X.type);X?re==="vector"&&U==="raster"?u.push(new on(v,h.source,`layer "${h.id}" requires a raster source`)):re!=="raster-dem"&&U==="hillshade"?u.push(new on(v,h.source,`layer "${h.id}" requires a raster-dem source`)):re==="raster"&&U!=="raster"?u.push(new on(v,h.source,`layer "${h.id}" requires a vector source`)):re!=="vector"||h["source-layer"]?re==="raster-dem"&&U!=="hillshade"?u.push(new on(v,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):U!=="line"||!h.paint||!h.paint["line-gradient"]||re==="geojson"&&X.lineMetrics||u.push(new on(v,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new on(v,h,`layer "${h.id}" must specify a "source-layer"`)):u.push(new on(v,h.source,`source "${h.source}" not found`))}else u.push(new on(v,h,'missing required property "source"'));return u=u.concat(ul({key:v,value:h,valueSpec:R.layer,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*":()=>[],type:()=>d.validateSpec({key:`${v}.type`,value:h.type,valueSpec:R.layer.type,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,object:h,objectKey:"type"}),filter:Eu,layout:X=>ul({layer:h,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>dc(Sr({layerType:U},re))}}),paint:X=>ul({layer:h,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>eh(Sr({layerType:U},re))}})}})),u}function _l(d){const u=d.value,h=d.key,v=lo(u);return v!=="string"?[new on(h,u,`string expected, ${v} found`)]:[]}const GA={promoteId:function({key:d,value:u}){if(lo(u)==="string")return _l({key:d,value:u});{const h=[];for(const v in u)h.push(..._l({key:`${d}.${v}`,value:u[v]}));return h}}};function kc(d){const u=d.value,h=d.key,v=d.styleSpec,w=d.style,R=d.validateSpec;if(!u.type)return[new on(h,u,'"type" is required')];const U=js(u.type);let G;switch(U){case"vector":case"raster":return G=ul({key:h,value:u,valueSpec:v[`source_${U.replace("-","_")}`],style:d.style,styleSpec:v,objectElementValidators:GA,validateSpec:R}),G;case"raster-dem":return G=function(X){var re;const de=(re=X.sourceName)!==null&&re!==void 0?re:"",be=X.value,Re=X.styleSpec,ze=Re.source_raster_dem,We=X.style;let et=[];const ct=lo(be);if(be===void 0)return et;if(ct!=="object")return et.push(new on("source_raster_dem",be,`object expected, ${ct} found`)),et;const vt=js(be.encoding)==="custom",zt=["redFactor","greenFactor","blueFactor","baseShift"],Et=X.value.encoding?`"${X.value.encoding}"`:"Default";for(const Le in be)!vt&&zt.includes(Le)?et.push(new on(Le,be[Le],`In "${de}": "${Le}" is only valid when "encoding" is set to "custom". ${Et} encoding found`)):ze[Le]?et=et.concat(X.validateSpec({key:Le,value:be[Le],valueSpec:ze[Le],validateSpec:X.validateSpec,style:We,styleSpec:Re})):et.push(new on(Le,be[Le],`unknown property "${Le}"`));return et}({sourceName:h,value:u,style:d.style,styleSpec:v,validateSpec:R}),G;case"geojson":if(G=ul({key:h,value:u,valueSpec:v.source_geojson,style:w,styleSpec:v,validateSpec:R,objectElementValidators:GA}),u.cluster)for(const X in u.clusterProperties){const[re,de]=u.clusterProperties[X],be=typeof re=="string"?[re,["accumulated"],["get",X]]:re;G.push(...va({key:`${h}.${X}.map`,value:de,expressionContext:"cluster-map"})),G.push(...va({key:`${h}.${X}.reduce`,value:be,expressionContext:"cluster-reduce"}))}return G;case"video":return ul({key:h,value:u,valueSpec:v.source_video,style:w,validateSpec:R,styleSpec:v});case"image":retuLine truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,`#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;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#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(texture(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=(texture(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
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
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
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:ki("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:ki("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:ki(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:ki(`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;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"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;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);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:ki(`in vec3 v_data;in 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);float antialiased_blur=v_data.z;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));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out 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 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}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;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:ki(Nu,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:ki(`uniform highp float u_intensity;in 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);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out 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 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.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;vec2 circle_center=floor(pos_raw/8.0);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:ki(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out 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:ki("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:ki("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;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);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {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;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:ki("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:ki(Nu,`in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:ki(`#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
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
#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=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:ki(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#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);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#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=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:ki(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(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=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#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=projectTile(a_pos+u_fill_translate,a_pos);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;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:ki(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out 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=projectTile(a_pos+u_fill_translate,a_pos);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:ki(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
out 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);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
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;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
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:ki(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in 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=texture(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=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`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 vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out 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 elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*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:ki(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(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));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
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out 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:ki(`uniform sampler2D u_image;in 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=texture(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);fragColor=accent_color*(1.0-shade_color.a)+shade_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:ki(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#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);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:ki(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:ki(`#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;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#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(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.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:ki(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(u_image,v_tex_a).a;float sdfdist_b=texture(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);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;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;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.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:ki(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in 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=texture(u_image0,v_pos0);vec4 color1=texture(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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:ki(`uniform sampler2D u_texture;in vec2 v_tex;in 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;fragColor=texture(u_texture,v_tex)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in 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_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;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:ki(`#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;in vec2 v_data0;in 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=texture(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);}fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in 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_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;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_translation;uniform float u_pitched_scale;out vec2 v_data0;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:ki(`#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;in vec4 v_data0;in 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;fragColor=texture(u_texture_icon,tex_icon)*alpha;
#ifdef OVERDRAW_INSPECTOR
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=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in 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_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;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:ki("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:ki("in 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() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:ki("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:ki("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:ki(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:ki("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function ki(I,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=a.match(/in ([\w]+) ([\w]+)/g),M=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),T=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=T?T.concat(M):M,Y={};return{fragmentSource:I=I.replace(c,(J,se,ye,Te,ke)=>(Y[ke]=!0,se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
in ${ye} ${Te} ${ke};
#else
uniform ${ye} ${Te} u_${ke};
#endif
`:`
#ifdef HAS_UNIFORM_u_${ke}
${ye} ${Te} ${ke} = u_${ke};
#endif
`)),vertexSource:a=a.replace(c,(J,se,ye,Te,ke)=>{const Qe=Te==="float"?"vec2":"vec4",Je=ke.match(/color/)?"color":Qe;return Y[ke]?se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${ye} ${Qe} a_${ke};
out ${ye} ${Te} ${ke};
#else
uniform ${ye} ${Te} u_${ke};
#endif
`:Je==="vec4"?`
#ifndef HAS_UNIFORM_u_${ke}
${ke} = a_${ke};
#else
${ye} ${Te} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${ke}
${ke} = unpack_mix_${Je}(a_${ke}, u_${ke}_t);
#else
${ye} ${Te} ${ke} = u_${ke};
#endif
`:se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${ye} ${Qe} a_${ke};
#else
uniform ${ye} ${Te} u_${ke};
#endif
`:Je==="vec4"?`
#ifndef HAS_UNIFORM_u_${ke}
${ye} ${Te} ${ke} = a_${ke};
#else
${ye} ${Te} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${ke}
${ye} ${Te} ${ke} = unpack_mix_${Je}(a_${ke}, u_${ke}_t);
#else
${ye} ${Te} ${ke} = u_${ke};
#endif
`}),staticAttributes:C,staticUniforms:z}}class zl{constructor(a,c,C){this.vertexBuffer=a,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ra=o.aD([{name:"a_pos",type:"Int16",components:2}]);const Ms="#define PROJECTION_MERCATOR",bu="mercator";class Si{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return bu}get shaderDefine(){return Ms}get shaderPreludeCode(){return ei.projectionMercator}get vertexShaderPreludeCode(){return ei.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aE.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,c,C,M,T){if(this._cachedMesh)return this._cachedMesh;const z=new o.aF;z.emplaceBack(0,0),z.emplaceBack(o.Z,0),z.emplaceBack(0,o.Z),z.emplaceBack(o.Z,o.Z);const Y=a.createVertexBuffer(z,ra.members),J=o.aG.simpleSegment(0,0,4,2),se=new o.aH;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ye=a.createIndexBuffer(se);return this._cachedMesh=new zl(Y,ye,J),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}function ti(I,a){const c=o.ae(a.lat,-85.051129,o.aJ);return new o.P(o.U(a.lng)*I,o.S(c)*I)}function ls(I,a){return new o.$(a.x/I,a.y/I).toLngLat()}function ka(I){return I.cameraToCenterDistance*Math.min(.85*Math.tan(o.ad(90-I.pitch)),Math.tan(o.ad(89.25-I.pitch)))}function Us(I,a){const c=I.canonical,C=a/o.aI(c.z),M=c.x+Math.pow(2,c.z)*I.wrap,T=o.at(new Float64Array(16));return o.L(T,T,[M*C,c.y*C,0]),o.M(T,T,[C/o.Z,C/o.Z,1]),T}function ho(I,a,c,C,M){const T=o.$.fromLngLat(I,a),z=M*o.aK(1,I.lat),Y=z*Math.cos(o.ad(c)),J=Math.sqrt(z*z-Y*Y),se=J*Math.sin(o.ad(-C)),ye=J*Math.cos(o.ad(-C));return new o.$(T.x+se,T.y+ye,T.z+Y)}class Do{constructor(a=0,c=0,C=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=c,this.left=C,this.right=M}interpolate(a,c,C){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,C)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,C)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,C)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,C)),this}getCenter(a,c){const C=o.ae((this.left+a-this.right)/2,0,a),M=o.ae((this.top+c-this.bottom)/2,0,c);return new o.P(C,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new Do(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Wu(I,a){if(!I.renderWorldCopies||I.lngRange)return;const c=a.lng-I.center.lng;a.lng+=c>180?-360:c<-180?360:0}function Qs(I){return Math.max(0,Math.floor(I))}class ia{constructor(a,c,C,M,T,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=T??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.Q(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Qs(this._zoom),this._scale=o.aI(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new Do,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,C){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Qs(this._zoom),this._scale=o.aI(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new Do(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!C&&a.autoCalculateNearFarZ,c&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){ Line truncated
`),Kt=Bt.concat(ei.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
`);Ki(se)||(kt=function(qt){return qt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(kt),Kt=function(qt){return qt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Kt));const Ut=se.createShader(se.FRAGMENT_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Ut,kt),se.compileShader(Ut),!se.getShaderParameter(Ut,se.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${se.getShaderInfoLog(Ut)}`);se.attachShader(this.program,Ut);const It=se.createShader(se.VERTEX_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(It,Kt),se.compileShader(It),!se.getShaderParameter(It,se.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${se.getShaderInfoLog(It)}`);se.attachShader(this.program,It),this.attributes={};const rn={};this.numAttributes=ke.length;for(let qt=0;qt<this.numAttributes;qt++)ke[qt]&&(se.bindAttribLocation(this.program,qt,ke[qt]),this.attributes[ke[qt]]=qt);if(se.linkProgram(this.program),!se.getProgramParameter(this.program,se.LINK_STATUS))throw new Error(`Program failed to link: ${se.getProgramInfoLog(this.program)}`);se.deleteShader(It),se.deleteShader(Ut);for(let qt=0;qt<bt.length;qt++){const xn=bt[qt];if(xn&&!rn[xn]){const Sn=se.getUniformLocation(this.program,xn);Sn&&(rn[xn]=Sn)}}this.fixedUniforms=M(a,rn),this.terrainUniforms=((qt,xn)=>({u_depth:new o.bF(qt,xn.u_depth),u_terrain:new o.bF(qt,xn.u_terrain),u_terrain_dim:new o.b8(qt,xn.u_terrain_dim),u_terrain_matrix:new o.bH(qt,xn.u_terrain_matrix),u_terrain_unpack:new o.bI(qt,xn.u_terrain_unpack),u_terrain_exaggeration:new o.b8(qt,xn.u_terrain_exaggeration)}))(a,rn),this.projectionUniforms=((qt,xn)=>({u_projection_matrix:new o.bH(qt,xn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bI(qt,xn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bI(qt,xn.u_projection_clipping_plane),u_projection_transition:new o.b8(qt,xn.u_projection_transition),u_projection_fallback_matrix:new o.bH(qt,xn.u_projection_fallback_matrix)}))(a,rn),this.binderUniforms=C?C.getUniforms(a,rn):[]}draw(a,c,C,M,T,z,Y,J,se,ye,Te,ke,Qe,Je,mt,ut,ft,bt,Bt){const kt=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(C),a.setStencilMode(M),a.setColorMode(T),a.setCullFace(z),J){a.activeTexture.set(kt.TEXTURE2),kt.bindTexture(kt.TEXTURE_2D,J.depthTexture),a.activeTexture.set(kt.TEXTURE3),kt.bindTexture(kt.TEXTURE_2D,J.texture);for(const Ut in this.terrainUniforms)this.terrainUniforms[Ut].set(J[Ut])}if(se)for(const Ut in se)this.projectionUniforms[Mp[Ut]].set(se[Ut]);if(Y)for(const Ut in this.fixedUniforms)this.fixedUniforms[Ut].set(Y[Ut]);ut&&ut.setUniforms(a,this.binderUniforms,Je,{zoom:mt});let Kt=0;switch(c){case kt.LINES:Kt=2;break;case kt.TRIANGLES:Kt=3;break;case kt.LINE_STRIP:Kt=1}for(const Ut of Qe.get()){const It=Ut.vaos||(Ut.vaos={});(It[ye]||(It[ye]=new LA)).bind(a,this,Te,ut?ut.getPaintVertexBuffers():[],ke,Ut.vertexOffset,ft,bt,Bt),kt.drawElements(c,Ut.primitiveLength*Kt,kt.UNSIGNED_SHORT,Ut.primitiveOffset*Kt*2)}}}function yd(I,a,c){const C=1/o.aw(c,1,a.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),T=c.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=T*(c.tileID.canonical.x+c.tileID.wrap*M),Y=T*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const wp=(I,a,c,C)=>{const M=I.style.light,T=M.properties.get("position"),z=[T.x,T.y,T.z],Y=o.bL();M.properties.get("anchor")==="viewport"&&o.bM(Y,I.transform.bearingInRadians),o.bN(z,z,Y);const J=I.transform.transformLightDirection(z),se=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:J,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:C}},_h=(I,a,c,C,M,T,z)=>o.e(wp(I,a,c,C),yd(T,I,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),bc=(I,a,c,C)=>o.e(yd(a,I,c),{u_fill_translate:C}),ms=(I,a)=>({u_world:I,u_fill_translate:a}),Ff=(I,a,c,C,M)=>o.e(bc(I,a,c,M),{u_world:C}),Xh=(I,a,c,C,M)=>{const T=I.transform;let z,Y,J=0;if(c.paint.get("circle-pitch-alignment")==="map"){const se=o.aw(a,1,T.zoom);z=!0,Y=[se,se],J=se/(o.Z*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=T.pixelsToGLUnits;return{u_camera_to_center_distance:T.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:J,u_translate:C}},$d=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),Jh=I=>({u_viewport_size:[I.width,I.height]}),Vc=(I,a=1)=>({u_color:I,u_overlay:0,u_overlay_scale:a}),ef=(I,a,c,C)=>{const M=o.aw(I,1,a)/(o.Z*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:o.aw(I,1,a),u Line truncated
uniform mat4 u_projection_matrix;
${Qe.shaderPreludeCode.vertexSource}`,define:Qe.shaderDefine},defaultProjectionData:mt},ft=ke.renderingMode?ke.renderingMode:"2d";if(z.renderPass==="offscreen"){const bt=ke.prerender;bt&&(z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),bt.call(ke,Te.gl,ut),Te.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),Te.setStencilMode(Wi.disabled);const bt=ft==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Hr.ReadOnly);Te.setDepthMode(bt),ke.render(Te.gl,ut),Te.setDirty(),z.setBaseState(),Te.bindFramebuffer.set(null)}}(a,0,C,T))}saveTileTexture(a){const c=this._tileTextures[a.size[0]];c?c.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const c=this._tileTextures[a];return c&&c.length>0?c.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const c=this.imageManager.getPattern(a.from.toString()),C=this.imageManager.getPattern(a.to.toString());return!c||!C}useProgram(a,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,T=this.style.projection,z=a+(c?c.cacheKey:"")+`/${C?bu:T.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[z]||(this.cache[z]=new lc(this.context,ei[a],c,bd[a],this._showOverdrawInspector,M,C?ei.projectionMercator:T.shaderPreludeCode,C?Ms:T.shaderDefine)),this.cache[z]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new ie(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:c}=this.context.gl;return this.width!==a||this.height!==c}}function eh(I,a){let c,C=!1,M=null,T=null;const z=()=>{M=null,C&&(I.apply(T,c),M=setTimeout(z,a),C=!1)};return(...Y)=>(C=!0,T=this,c=Y,M||z(),M)}class dc{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let T=window.location.hash.replace(M,"");T.startsWith("#&")?T=T.slice(0,1)+T.slice(2):T==="#"&&(T="");let z=window.location.href.replace(/(#.+)?$/,T);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=eh(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),T=Math.pow(10,M),z=Math.round(c.lng*T)/T,Y=Math.round(c.lat*T)/T,J=this._map.getBearing(),se=this._map.getPitch();let ye="";if(ye+=a?`/${z}/${Y}/${C}`:`${C}/${Y}/${z}`,(J||se)&&(ye+="/"+Math.round(10*J)/10),se&&(ye+=`/${Math.round(se)}`),this._hashName){const Te=this._hashName;let ke=!1;const Qe=window.location.hash.slice(1).split("&").map(Je=>{const mt=Je.split("=")[0];return mt===Te?(ke=!0,`${mt}=${ye}`):Je}).filter(Je=>Je);return ke||Qe.push(`${Te}=${ye}`),`#${Qe.join("&")}`}return`#${ye}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.Q(+a[2],+a[1])}catch{return!1}const c=+a[0],C=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=-180&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const eA={linearity:.3,easing:o.c9(0,0,.3,1)},_l=o.e({deceleration:2500,maxSpeed:1400},eA), Line truncated
${e} <span></span>
`,Js().s[12]++,this._textEl=this._container.querySelector("span"),Js().s[13]++,this.updateZoomLevel()}addEventListeners(){Js().f[4]++,Js().s[14]++,this._map.on("render",()=>(Js().f[5]++,Js().s[15]++,this.updateZoomLevel())),Js().s[16]++,this._map.on("zoomIn",()=>(Js().f[6]++,Js().s[17]++,this.updateZoomLevel())),Js().s[18]++,this._map.on("zoomOut",()=>(Js().f[7]++,Js().s[19]++,this.updateZoomLevel()))}onRemove(){Js().f[8]++,Js().s[20]++,this._container.parentNode.removeChild(this._container),Js().s[21]++,this._map=void 0}}function qE(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 VE(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 $E(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 y$(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const p=s(l);r.push(qE(p.circle,l)),i.push($E(p.line,l)),t.push(VE(p.polygon,p.polygonOutline,l))}else o.forEach(p=>{const y=s(p);r.push(qE(y.circle,l,p)),i.push($E(y.line,l,p)),t.push(VE(y.polygon,y.polygonOutline,l,p))})}),t.concat(i).concat(r)}function v$(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(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const q3={polygonLayer:VE,lineLayer:$E,circleLayer:qE,generateInspectStyle:v$,generateColoredLayers:y$};function mo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",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:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,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:31,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:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{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:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=I$.language(this.options.language.split(",")[0]);return this.options.language&&(pv!=null&&pv[e][t])?pv[e][t]:pv[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=ip({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=ip({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=ip({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=ip({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=ip(r,{element:s}));const l=new this._maplibregl.Marker(ip({},r,{element:s}));let o;if(this.options.popup){const y=ip({},{},this.options.popup);o=new this._maplibregl.Popup(y).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function wn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},eLine truncated
`);o(F,j,N)?(WC(c6),Q1=null,A6=void 0,Dp.set(P,100)):(Dp.set(P,Dp.get(P)+1,!0),y=!1)}}y&&(clearInterval(s),s=void 0)}return function(y){const x=KL(y);if(!x)return;const B=x.families;for(let O=0,P=B.length;O<P;++O){const F=B[O],j=x.style+`
`+x.weight+`
`+F;Dp.get(j)===void 0&&(Dp.set(j,100,!0),o(x.style,x.weight,F)||(Dp.set(j,0,!0),s===void 0&&(s=setInterval(p,32))))}}}(),wZ=function(){let n;return function(e){let t=c6[e];if(t==null){if(OL){const r=KL(e),i=FL(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(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);c6[e]=t}return t}}();function FL(n,e){return Q1||(Q1=ju(1,1)),n!=A6&&(Q1.font=n,A6=Q1.font),Q1.measureText(e)}function A2(n,e){return FL(n,e).width}function fI(n,e,t){if(e in t)return t[e];const r=e.split(`
`).reduce((i,s)=>Math.max(i,A2(n,s)),0);return t[e]=r,r}function SZ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,p=0;for(let y=0,x=e.length;y<=x;y+=2){const B=e[y];if(B===`
`||y===x){s=Math.max(s,l),i.push(l),l=0,o+=p,p=0;continue}const O=e[y+1]||n.font,P=A2(O,B);t.push(P),l+=P;const F=wZ(O);r.push(F),p=Math.max(p,F)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function EZ(n,e,t,r,i,s,l,o,p,y,x){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(p,y),n.scale(x[0],x[1]),BZ(r,n)):x[0]<0||x[1]<0?(n.translate(p,y),n.scale(x[0],x[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,p,y,l*x[0],o*x[1]),n.restore()}function BZ(n,e){const t=n.contextInstructions;for(let 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]}function pI(n){return n[0]>0&&n[1]>0}function OZ(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]*e+.5|0,t[1]=n[1]*e+.5|0,t}function gd(n,e){return Array.isArray(n)?n:(e===void 0?e=[n,n]:(e[0]=n,e[1]=n),e)}class xx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=gd(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new xx({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return go()}getImage(e){return go()}getHitDetectionImage(){return go()}getPixelRatio(e){return 1}getImageState(){return go()}getImageSize(){return go()}getOrigin(){return go()}getSize(){return go()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=gd(e)}listenImageChange(e){go()}load(){go()}unlistenImageChange(e){go()}ready(){return Promise.resolve()}}class Mx extends xx{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?fi.LOADING:fi.LOADED,this.imageState_===fi.LOADING&&this.ready().then(()=>this.imageState_=fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Mx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){var s,l;const t=(s=this.fill_)==null?void 0:s.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(l=Ef.get(r,null,null))==null?void 0:l.getImage(1);if(!i){const o=this.renderOptions_,p=Math.ceil(o.size*e),y=ju(p,p);this.draw_(o,y,e),i=y.canvas,Ef.set(r,null,null,new PL(i,void 0,null,fi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const ne=i;i=s,s=ne}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,p=s*Math.sin(o),y=Math.sqrt(s*s-p*p),x=i-y,B=Math.sqrt(p*p+x*x),O=B/p;if(e==="miter"&&O<=r)return O*t;const P=t/2/O,F=t/2*(x/B),N=Math.sqrt((i+P)*(i+P)+F*F)-i;if(this.radius2_===void 0||e==="bevel")return N*2;con Line truncated
`,""),n.push(e,""),n}class aX{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=vh(),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_={},this.zIndexContext_=s?new qB:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,p=this.textStates[t],y=this.pixelRatio,x=[p.scale[0]*y,p.scale[1]*y],B=p.justify?h2[p.justify]:f4(Array.isArray(e)?e[0]:e,p.textAlign||wC),O=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
`).reduce(sX,[]),{width:F,height:j,widths:N,heights:q,lineWidths:$}=SZ(p,P),oe=F+O,te=[],V=(oe+2)*x[0],ne=(j+O)*x[1],W={width:V<0?Math.floor(V):Math.ceil(V),height:ne<0?Math.floor(ne):Math.ceil(ne),contextInstructions:te};(x[0]!=1||x[1]!=1)&&te.push("scale",x),i&&(te.push("strokeStyle",l.strokeStyle),te.push("lineWidth",O),te.push("lineCap",l.lineCap),te.push("lineJoin",l.lineJoin),te.push("miterLimit",l.miterLimit),te.push("setLineDash",[l.lineDash]),te.push("lineDashOffset",l.lineDashOffset)),r&&te.push("fillStyle",o.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const ie=.5-B;let he=B*oe+ie*O;const fe=[],Ee=[];let me=0,Se=0,Ke=0,xe=0,st;for(let Ze=0,tt=P.length;Ze<tt;Ze+=2){const Ne=P[Ze];if(Ne===`
`){Se+=me,me=0,he=B*oe+ie*O,++xe;continue}const we=P[Ze+1]||p.font;we!==st&&(i&&fe.push("font",we),r&&Ee.push("font",we),st=we),me=Math.max(me,q[Ke]);const De=[Ne,he+ie*N[Ke]+B*(N[Ke]-$[xe]),.5*(O+me)+Se];he+=N[Ke],i&&fe.push("strokeText",De),r&&Ee.push("fillText",De),++Ke}return Array.prototype.push.apply(te,fe),Array.prototype.push.apply(te,Ee),this.labels_[s]=W,W}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,p,y,x,B,O,P,F,j,N){o*=O[0],p*=O[1];let q=r-o,$=i-p;const oe=s+y>e?e-y:s,te=l+x>t?t-x:l,V=F[3]+oe*O[0]+F[1],ne=F[0]+te*O[1]+F[2],W=q-F[3],ie=$-F[0];(j||B!==0)&&(d0[0]=W,h0[0]=W,d0[1]=ie,wm[1]=ie,wm[0]=W+V,Sm[0]=wm[0],Sm[1]=ie+ne,h0[1]=Sm[1]);let he;return B!==0?(he=em(vh(),r,i,1,1,B,-r,-i),DA(he,d0),DA(he,wm),DA(he,Sm),DA(he,h0),Fm(Math.min(d0[0],wm[0],Sm[0],h0[0]),Math.min(d0[1],wm[1],Sm[1],h0[1]),Math.max(d0[0],wm[0],Sm[0],h0[0]),Math.max(d0[1],wm[1],Sm[1],h0[1]),p1)):Fm(Math.min(W,W+V),Math.min(ie,ie+ne),Math.max(W,W+V),Math.max(ie,ie+ne),p1),P&&(q=Math.round(q),$=Math.round($)),{drawImageX:q,drawImageY:$,drawImageW:oe,drawImageH:te,originX:y,originY:x,declutterBox:{minX:p1[0],minY:p1[1],maxX:p1[2],maxY:p1[3],value:N},canvasTransform:he,scale:O}}replayImageOrLabel_(e,t,r,i,s,l,o){const p=!!(l||o),y=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return y.minX-x<=t[0]&&y.maxX+x>=0&&y.minY-x<=t[1]&&y.maxY+x>=0&&(p&&this.replayTextBackground_(e,d0,wm,Sm,h0,l,o),EZ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=DA(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],p=this.pixelRatio,y=f4(Array.isArray(e)?e[0]:e,s.textAlign||wC),x=h2[s.textBaseline||u2],B=o&&o.lineWidth?o.lineWidth:0,O=l.width/p-2*s.scale[0],P=y*O+2*(.5-y)*B,F=x*l.height/p+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:F}}execute_(e,t,r,i,s,l,o,p){const y=this.zIndexContext_;let x;this.pixelCoordinates_&&L0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=P0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),qH(this.renderedTransform_,r));let B=0;const O=i.length;let P=0,F,j,N,q,$,oe,te,V,ne,W,ie,he,fe,Ee=0,me=0;const Se=this.coordinateCache_,Ke=this.viewRotation_,xe=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,st={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Ke},Ze=this.instructions!=i||this.overlaps?0:200;let tt,Ne,we,De;for(;B<O;){const He=i[B];switch(He[0]){case qi.BEGIN_GEOMETRY:tt=He[1],De=He[3],tt.getGeometry()?o!==void 0&&!zu(o,De.getExtent())?B=He[2]+1:++B:B=He[2],y&&(y.zIndex=He[4]);break;case qi.BEGIN_PATH:Ee>Ze&&(this.fill_(e),Ee=0),me>Ze&&(e.stroke(),me=0),!Ee&&!me&&(e.beginPath(),$=NaN,oe=NaN),++B;break;case qi.CIRCLE:P=He[1];const Yt=x[P],gt=x[P+1],Ft=x[P+2],Pt=x[P+3],Fe=Ft-Yt,Pe=Pt-gt,Be=Math.sqrt(Fe*Fe+Pe*Pe);e.moveTo(Yt+Be,gt),e.arc(Yt,gt,Be,0,2*Math.PI,!0),++B;break;case qi.CLOSE_PATH:e.closePath(),++B;break;case qi.CUSTOM:P=He[1],F=He[2];const it=He[3],Ct=He[4],pt=He[5];st.geometry=it,st.feature=tt,B in Se||(Se[B]=[]);const Lt=Se[B];pt?pt(x,P,F,2,Lt):(Lt[0]=x[P],Lt[1]=x[P+1],Lt.length=2),y&&(y.zIndex=He[6]),Ct(Lt,st),++B;break;case qi.DRAW_IMAGE:P=He[1],F=He[2],ne=He[3],j=He[4],N=He[5];let tn=He[6];const Rt=He[7],yn=He[8],Yn=He[9],en=He[10];let cr=He[11];const kn=He[12];let hn=He[13];q=He[14]||"declutter";const er=He[15];if(!ne&&He.length>=20){W=He[19],ie=He[20],he=He[21],fe=He[22];const Wt=this.drawLabelWithPointPlacement_(W,ie,he,fe);ne=Wt.label,He[3]=ne;const jt=He[23];j=(Wt.anchorX-jt)*this.pixelRatio,He[4]=j;const nn=He[24];N=(Wt.anchorY-nn)*this.pixelRatio,He[5]=N,tn=ne.height,He[6]=tn,hn=ne.width,He[13]=hn}let hr;He.length>25&&(hr=He[25]);let yr,tr,Ge;He.length>17?(yr=He[16],tr=He[17],Ge=He[18]):(yr=bg,tr=null,Ge=null),en&&xe?cr+=Ke:!en&&!xe&&(cr-=Ke);let ce=0;for(;P<F;P+=2){if(hr&&hr[ce++]<hn/this.pixelRatio)continue;const Wt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],hn,tn,j,N,yn,Yn,cr,kn,s,yr,!!tr||!!Ge,tt),jt=[e,t,ne,Wt,Rt,tr,Ge];if(p){let nn,Dn,Fn;if(er){const $n=F-P;if(!er[$n]){er[$n]={args:jt,declutterMode:q};continue}const xr=er[$n];nn=xr.args,Dn=xr.declutterMode,delete er[$n],Fn=wI(nn)}let on,Sr;if(nn&&(Dn!=="declutter"||!p.collides(Fn))&&(on=!0),(q!=="declutter"||!p.collides(Wt.declutterBox))&&(Sr=!0),Dn==="declutter"&&q==="declutter"){const $n=o Line truncated
`),i=ZJ.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
`),t+=r[s].split("").join(i);return t}return n}let b4;function _U(){return b4||(b4=Bx(1,1).getContext("2d")),b4}function ag(n,e){return _U().measureText(n).width+(n.length-1)*e}const YI={};function y6(n,e,t,r){if(n.indexOf(`
`)!==-1){const l=n.split(`
`),o=[];for(let p=0,y=l.length;p<y;++p)o.push(y6(l[p],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=YI[i];if(!s){const l=n.split(" ");if(l.length>1){const o=_U();o.font=e;const y=o.measureText("M").width*t;let x="";const B=[];for(let O=0,P=l.length;O<P;++O){const F=l[O],j=x+(x?" ":"")+F;ag(j,r)<=y?x=j:(x&&B.push(x),x=F)}x&&B.push(x);for(let O=0,P=B.length;O<P&&P>1;++O){const F=B[O];if(ag(F,r)<y*.35){const j=O>0?ag(B[O-1],r):1/0,N=O<P-1?ag(B[O+1],r):1/0;B.splice(O,1),P-=1,j<N?(B[O-1]+=" "+F,O-=1):B[O]=F+" "+B[O]}}for(let O=0,P=B.length-1;O<P;++O){const F=B[O],j=B[O+1];if(ag(F,r)>y*.7&&ag(j,r)<y*.6){const N=F.split(" "),q=N.pop();ag(q,r)<y*.2&&(B[O]=N.join(" "),B[O+1]=q+" "+j),P-=1}}s=B.join(`
`)}else s=n;s=g6(s,r),YI[i]=s}return s}const XJ=/font-family: ?([^;]*);/,JJ=/("|')/g;let tb;function eee(n){if(!tb){tb={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const s=i.rules||i.cssRules;if(s)for(let l=0,o=s.length;l<o;++l){const p=s[l];if(p.type==5){const y=p.cssText.match(XJ);tb[y[1].replace(JJ,"")]=!0}}}catch{}}}return n in tb}const x4={};function tee(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in x4)return x4[t];const r=[];for(let i=0,s=n.length;i<s;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const l=n[i],o=HE(l,1);DL(o);const p=o.split(" ");r.push([p.slice(3).join(" ").replace(/"/g,""),p[1],p[0]])}for(let i=0,s=r.length;i<s;++i){const l=r[i],o=l[0];if(!eee(o)&&Dp.get(`${l[2]}
${l[1]}
${o}`)!==100){const p=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",l[1]).replace("{-fontstyle}",l[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",l[2]);if(!document.querySelector('link[href="'+p+'"]')){const y=document.createElement("link");y.href=p,y.rel="stylesheet",document.head.appendChild(y)}}}return x4[t]=n,n}const nee={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},ree={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]},iee=function(n,e){const t=ox(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},v6={},v2={zoom:0};let nb,M4;function xi(n,e,t,r,i,s,l){const o=n.id;s||(s={},console.warn("No functionCache provided to getValue()")),s[o]||(s[o]={});const p=s[o];if(!p[t]){let y=(n[e]||v6)[t];const x=Hq[`${e}_${n.type}`][t];y===void 0&&(y=x.default);let B=Py(y);if(!B&&Ty(y)&&(y=uB(y,x),B=!0),B){const O=iee(y,x);p[t]=O.evaluate.bind(O)}else x.type=="color"&&(y=Ol.parse(y)),p[t]=function(){return y}}return v2.zoom=r,p[t](v2,i,l)}function qI(n,e,t,r,i){return xi(n,"layout",`${r}-allow-overlap`,e,t,i)?xi(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function oee(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=vq(e).filter),v2.zoom=r,i[n](v2,t)}function y0(n,e){if(n){if(n.a===0||e===0)return;const 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}const see=/\{[^{}}]*\}/g;function w4(n,e){return n.replace(see,function(t){return e[t.slice(1,-1)]||""})}const aee={};function lee(n,e,t,r=Jp,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");aee[VJ(e,n)]=Array.from(arguments);let p,y,x;s&&Cy(()=>s).then(async W=>{let ie;if(typeof Image<"u"){const he=new Image;if(typeof W=="string")he.crossOrigin="anonymous",he.src=W;else{let fe;W instanceof Request?fe=await fetch(W):W instanceof Response&&(fe=W);const Ee=await fe.blob();ie=URL.createObjectURL(Ee),he.src=ie}he.addEventListener("load",function fe(){he.removeEventListener("load",fe),p=he,y=[he.width,he.height],n.changed(),ie&&URL.revokeObjectURL(ie)}),he.addEventListener("error",function fe(){URL.revokeObjectURL(ie),he.removeEventListener("error",fe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const he=self;he.postMessage({action:"loadImage",src:W}),he.addEventListener("message",function(Ee){Ee.data.action==="imageLoaded"&&Ee.data.src===W&&(p=Ee.data.image,y=[p.width,p.height])})}});const B=W6(e.layers),O={},P=[],F={},j={},N=yU(e),q=$J(e);let $;for(let W=0,ie=B.length;W<ie;++W){const he=B[W],fe=he.id;if(typeof t=="string"&&he.source==t||Array.isArray(t)&&t.indexOf(fe)!==-1){const Ee=he["source-layer"];if($){if(he.source!==$)throw new Error(`Layer "${fe}" does not use source "${$}`)}else{$=he.source;const Se=e.sources[$];if(!Se)throw new Error(`Source "${$}" is not defined`);const Ke=Se.type;if(Ke!=="vector"&&Ke!=="geojson")throw new Error(`Source "${$}" is not of type "vector" or "geojson", but "${Ke}"`)}let me=O[Ee];me||(me=[],O[Ee]=me),me.push({layer:he,index:W}),P.push(fe)}}const oe=new w0,te=new km,V=[],ne=function(W,ie,he){const fe=W.getProperties(),Ee=O[fe.layer];if(!Ee)return;let me=r.indexOf(ie);me==-1&&(me=c8(ie,r));const Se=nee[W.getGeometry().getType()],Ke={id:W.getId(),properties:fe,type:Se},xe=n.get("mapbox-featurestate")[W.getId()];let st=-1;for(let Ze=0,tt=Ee.length;Ze<tt;++Ze){const Ne=Ee[Ze],we=Ne.layer,De=we.id;if(he!==void 0&&he!==De)continue;const He=we.layout||v6,_t=we.paint||v6;if(He.visibility==="none"||"minzoom"in we&&me<we.minzoom||"maxzoom"in we&&me>=we.maxzoom)continue;const Yt=we.filter;if(!Yt||oee(De,Yt,Ke,me,q)){let gt,Ft,Pt,Fe,Pe,Be;const it=Ne.index;if(Se==3&&(we.type=="fill"||we.type=="fill-extrusion"))if(Ft=xi(we,"paint",we.type+"-opacity",me,Ke,N,xe),we.type+"-pattern"in _t){const hr=xi(we,"paint",we.type+"-pattern",me,Ke,N,xe);if(hr){const yr=typeof hr=="string"?w4(hr,fe):hr.toString();if(p&&i&&i[yr]){++st,Be=V[st],(!Be||!Be.getFill()||Be.getStroke()||Be.getText())&&(Be=new Yh({fill:new km}),V[st]=Be),Pt=Be.getFill(),Be.setZIndex(it);const tr=yr+"."+Ft;let Ge=j[tr];if(!Ge){const ce=i[yr],pe=Bx(ce.width,ce.height),rt=pe.getContext("2d");rt.globalAlpha=Ft,rt.drawImage(p,ce.x,ce.y,ce.width,ce.height,0,0,ce.width,ce.height),Ge=rt.createPattern(pe,"repeat"),j[tr]=Ge}Pt.setColor(Ge)}}}else gt=y0(xi(we,"paint",we.type+"-color",me,Ke,N,xe),Ft),we.type+"-outline-color"in _t&&(Pe=y0(xi(we,"paint",we.type+"-outline-color",me,Ke,N,xe),Ft)),Pe||(Pe=gt),(gt||Pe)&&(++st,Be=V[st],(!Be||gt&&!Be.getFill()||!gt&&Be.getFill()||Pe&&!Be.getStroke()||!Pe&&Be.getStroke()||Be.getText())Line truncated
`)return tr.push(`
`,""),tr;if(Se==2)return tr.push(g6(St,hn),rt),tr;St=y6(St,rt,er,hn).split(`
`);for(let Ht=0,sn=St.length;Ht<sn;++Ht)Ht>0&&tr.push(`
`,""),tr.push(St[Ht],rt);return tr},[]):Yn=w4(yr,fe).trim(),Ft=xi(we,"paint","text-opacity",me,Ke,N,xe)}if(Yn&&Ft&&!yn){Ct||(++st,Be=V[st],(!Be||!Be.getText()||Be.getFill()||Be.getStroke())&&(Be=new Yh,V[st]=Be),Be.setImage(void 0),Be.setGeometry(void 0));const hr=qI(we,me,Ke,"text",N);Be.getText()||Be.setText(pt),pt=Be.getText(),(!pt||"getDeclutterMode"in pt&&pt.getDeclutterMode()!==hr)&&(pt=new wx({padding:[2,2,2,2],declutterMode:hr}),Be.setText(pt));const yr=xi(we,"layout","text-transform",me,Ke,N,xe);yr=="uppercase"?Yn=Array.isArray(Yn)?Yn.map((qe,Xe)=>Xe%2?qe:qe.toUpperCase()):Yn.toUpperCase():yr=="lowercase"&&(Yn=Array.isArray(Yn)?Yn.map((qe,Xe)=>Xe%2?qe:qe.toLowerCase()):Yn.toLowerCase());const tr=Array.isArray(Yn)?Yn:Se==2?g6(Yn,hn):y6(Yn,en,er,hn);if(pt.setText(tr),pt.setFont(en),pt.setRotation(_4(xi(we,"layout","text-rotate",me,Ke,N,xe))),typeof pt.setKeepUpright=="function"){const qe=xi(we,"layout","text-keep-upright",me,Ke,N,xe);pt.setKeepUpright(qe)}const Ge=xi(we,"layout","text-anchor",me,Ke,N,xe),ce=Ct||Se==1?"point":xi(we,"layout","symbol-placement",me,Ke,N,xe);let pe;if(ce==="line-center"?(pt.setPlacement("line"),pe="center"):pt.setPlacement(ce),ce==="line"&&typeof pt.setRepeat=="function"){const qe=xi(we,"layout","symbol-spacing",me,Ke,N,xe);pt.setRepeat(qe*2)}pt.setOverflow(ce==="point");let rt=xi(we,"paint","text-halo-width",me,Ke,N,xe);const St=xi(we,"layout","text-offset",me,Ke,N,xe),Ht=xi(we,"paint","text-translate",me,Ke,N,xe);let sn=0,nr=0;if(ce=="point"){pe="center",Ge.indexOf("left")!==-1?(pe="left",nr=rt):Ge.indexOf("right")!==-1&&(pe="right",nr=-rt);const qe=xi(we,"layout","text-rotation-alignment",me,Ke,N,xe);pt.setRotateWithView(qe=="map")}else pt.setMaxAngle(_4(xi(we,"layout","text-max-angle",me,Ke,N,xe))*Yn.length/tr.length),pt.setRotateWithView(!1);pt.setTextAlign(pe);let $e="middle";Ge.indexOf("bottom")==0?($e="bottom",sn=-rt-.5*(cr-1)*kn):Ge.indexOf("top")==0&&($e="top",sn=rt+.5*(cr-1)*kn),pt.setTextBaseline($e);const ae=xi(we,"layout","text-justify",me,Ke,N,xe);pt.setJustify(ae==="auto"?void 0:ae),pt.setOffsetX(St[0]*kn+nr+Ht[0]),pt.setOffsetY(St[1]*kn+sn+Ht[1]),te.setColor(y0(xi(we,"paint","text-color",me,Ke,N,xe),Ft)),pt.setFill(te);const Ce=y0(xi(we,"paint","text-halo-color",me,Ke,N,xe),Ft);if(Ce&&rt>0){oe.setColor(Ce),rt*=2;const qe=.5*kn;oe.setWidth(rt<=qe?rt:qe),pt.setStroke(oe)}else pt.setStroke(void 0);const f=xi(we,"layout","text-padding",me,Ke,N,xe),je=pt.getPadding();f!==je[0]&&(je[0]=f,je[1]=f,je[2]=f,je[3]=f),Be.setZIndex(it)}}}if(st>-1)return V.length=st+1,V};return n.setStyle(ne),n.set("mapbox-source",$),n.set("mapbox-layers",P),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class bU{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=cx,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Ia(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Ia(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return go()}readFeature(e,t){return go()}readFeatures(e,t){return go()}readGeometry(e,t){return go()}readProjection(e){return go()}writeFeature(e,t){return go()}writeFeatures(e,t){return go()}writeGeometry(e,t){return go()}}function Ox(n,e,t){const r=t?Ia(t.featureProjection):null,i=t?Ia(t.dataProjection):null;let s=n;if(r&&i&&!kg(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(gC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(p){for(let y=0,x=p.length;y<x;++y)p[y]=Math.round(p[y]*l)/l;return p};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const uee={Point:Fg,LineString:Dg,Polygon:Um,MultiPoint:$C,MultiLineString:CC,MultiPolygon:_C};function Aee(n,e,t){return Array.isArray(e[0])?(iL(n,0,e,t)||(n=n.slice(),n6(n,0,e,t)),n):(wB(n,0,e,t)||(n=n.slice(),r2(n,0,e,t)),n)}function xU(n,e){var s;const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(l=>xU({...n,geometry:l})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return Ox(new md(r,r==="Polygon"?Aee(t.flatCoordinates,t.ends,i):t.flatCoordinates,(s=t.ends)==null?void 0:s.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function d8(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>d8(i,e));return new a2(r)}const t=uee[n.type];return Ox(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class cee extends bU{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(rb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(rb(e),this.getReadOptions( Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Cte(n,e){const t=RU(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class _te extends NC{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=vte(e,this.onWorkerMessage_.bind(this,i));else r[0]=Cte(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(p){return p.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let p=0;p<s;++p){const y=p*o,x=[];for(let B=0,O=i.length;B<O;++B)x.push(i[B].slice(y,y+o));this.workers_[p].postMessage({buffers:x,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},x)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const p=this.dataLookup_[o].buffer,y=o*l;r.set(new Uint8ClampedArray(p),y),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const r9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class i9 extends Cp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class DU extends kU{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Mte(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(so.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new uU(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:vh(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:xte(this.layers_),pixelRatio:1,pixelToCoordinateTransform:vh(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Ro(this),renderTargets:{}},this.setAttributions(function(r){var s;const i=[];for(let l=0,o=e.sources.length;l<o;++l){const p=e.sources[l],y=p instanceof Dy?p:p.getSource();if(!y)continue;const x=(s=y.getAttributions())==null?void 0:s(r);typeof x=="string"?i.push(x):x!==void 0&&i.push(...x)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new _te({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=Pf(e);i.size[0]=Math.ceil(Ls(e)/t),i.size[1]=Math.ceil(hA(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!Lm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.re Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(FU(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Rte extends Tx{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Dte,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:lU,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!kg(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||kg(t,e)))return this.tileGrid;const r=Ro(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=TU(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],p=this.getTileCoordForTileUrlFunction(o,s),y=p?this.tileUrlFunction(p,i,s):void 0,x=new this.tileClass(o,y!==void 0?Lr.IDLE:Lr.EMPTY,y!==void 0?y:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(so.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||kg(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],p=this.getKey(),y=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),O=new BU(l,y,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,F,j,N)=>this.getTileInternal(P,F,j,N,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return O.key=p,O}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Ia(e);if(r){const i=Ro(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Dte(n,e){n.getImage().src=e}class LU extends Rte{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ia("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)Ste(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Ia("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const y=qC(t,r);i=nH(e.bounds,y)}const s=kx(r),l=e.minzoom||0,o=e.maxzoom||22,p=f8({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=FU(e.tiles,p),e.attribution&&!this.getAttributions()){const y=i!==void 0?i:s;this.setAttributions(function(x){return zu(y,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class UU extends Tx{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||kx(t),i=e.tileGrid||f8({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:zU,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:mU,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Lr.IDLE){r.setState(Lr.LOADING);const i=r.wr Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var l9;function Jte(){return l9||(l9=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(P4)),P4.exports}var ene=Jte();const tm=yl(ene);function mg(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return mg=function(){return l},l}mg();class tne extends sr.Component{render(){mg().f[0]++;const e=(mg().s[0]++,{width:20,height:20,...this.props.style});return mg().s[1]++,this.props.isCollapsed?(mg().b[0][0]++,le.jsx(HV,{style:e})):(mg().b[0][1]++,le.jsx($V,{style:e}))}}function J1(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return J1=function(){return l},l}J1();class nne extends sr.Component{render(){return J1().f[0]++,J1().s[0]++,le.jsx("li",{className:"maputnik-layer-list-group",children:le.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(J1().f[1]++,J1().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[le.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),le.jsx("span",{className:"maputnik-space"}),le.jsx(tne,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function OC(){return OC=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},OC.apply(null,arguments)}function rne(n){if(Array.isArray(n))return n}function ine(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],p=!0,y=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(p=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);p=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HU(n,e){return rne(n)||ine(n,e)||$U(n,e)||one()}function Ey(n){"@babel/helpers - typeof";return Ey=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},Ey(n)}function sne(n,e){if(Ey(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Ey(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function ZU(n){var e=sne(n,"string");return Ey(e)=="symbol"?e:e+""}function ja(n,e,t){return(e=ZU(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function K4(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){ja(n,i,t[i])})}return n}function r_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function ane(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,ZU(r.key),r)}}function i_(n,e,t){return e&&ane(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ss(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function p8(n,e){if(e&&(Ey(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(n)}function IC(n){return IC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IC(n)}function S6(n,e){return S6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},S6(n,e)}function m8(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&&S6(n,e)}var R4,u9;function lne(){if(u9)return R4;u9=1;var n=function(e,t,r,i,s,l,o,p){if(!e){var y;if(t===void 0)y=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[r,i,s,l,o,p],B=0;y=new Error(t.replace(/%s/g,function(){return x[B++]})),y.name="Invariant Violation"}throw y.framesToPop=1,y}};return R4=n,R4}var une=lne();const Ug=yl(une);function Ane(n){if(Array.isArray(n))return w6(n)}function cne(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function dne(){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 hne(n){return Ane(n)||cne(n)||$U(n)||dne()}var fne=function(){function n(){r_(this,n),ja(this,"refs",{})}return i_(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(pne)}}]),n}();function pne(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function XU(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var b1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},JU=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 ab(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function lb(n,e){n.style["".concat(JU,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function D4(n,e){n.style["".concat(JU,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Lv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function A9(n,e,t){return Math.max(n,Math.min(t,e))}function ey(n){return n.substr(-2)==="px"?parseFloat(n):0}function mne(n){var e=window.getComputedStyle(n);return{bottom:ey(e.marginBottom),left:ey(e.marginLeft),right:ey(e.marginRight),top:ey(e.marginTop)}}function g8(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function F4(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function bv(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 gne(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function Eb(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:Eb(n.parentNode,e,r)}}function yne(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function c9(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Ug(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return Ug(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function vne(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Ug(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=HU(i,2),l=s[0],o=s[1];return[c9({height:e,lockOffset:l,width:t}),c9({height:e,lockOffset:o,width:t})]}function Cne(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function ez(n){return n instanceof HTMLElement?Cne(n)?n:ez(n.parentNode):null}function _ne(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:ey(e.gridColumnGap),y:ey(e.gridRowGap)}:{x:0,y:0}}var ug={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},gg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function bne(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=hne(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===gg.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function xne(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){m8(s,i);function s(){var l,o;r_(this,s);for(var p=arguments.length,y=new Array(p),x=0;x<p;x++)y[x]=arguments[x];return o=p8(this,(l=IC(s)).call.apply(l,[this].concat(y))),ja(ss(ss(o)),"wrappedInstance",Ai.createRef()),o}return i_(s,[{key:"componentDidMount",value:function(){var o=ax.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Ug(r.with Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var oz=["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])"],b2=oz.join(","),sz=typeof Element>"u",zg=sz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,x2=!sz&&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},M2=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"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},Dne=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},az=function(e,t,r){if(M2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(b2));return t&&zg.call(e,b2)&&i.unshift(e),i=i.filter(r),i},lz=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!M2(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),p=o.length?o:l.children,y=n(p,!0,r);r.flatten?i.push.apply(i,y):i.push({scopeParent:l,candidates:y})}else{var x=zg.call(l,b2);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),O=!M2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&O){var P=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:l,candidates:P})}else s.unshift.apply(s,l.children)}}return i},uz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},_0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Dne(e))&&!uz(e)?0:e.tabIndex},Fne=function(e,t){var r=_0(e);return r<0&&t&&!uz(e)?0:r},Lne=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Az=function(e){return e.tagName==="INPUT"},Une=function(e){return Az(e)&&e.type==="hidden"},zne=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},jne=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Nne=function(e){if(!e.name)return!0;var t=e.form||x2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},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(l){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",l.message),!1}var s=jne(i,e.form);return!s||s===e},Wne=function(e){return Az(e)&&e.type==="radio"},Gne=function(e){return Wne(e)&&!Nne(e)},Qne=function(e){var t,r=e&&x2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,p;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!s&&i;){var y,x,B;r=x2(i),i=(y=r)===null||y===void 0?void 0:y.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},h9=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Yne=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=zg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(zg.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var p=e.parentElement,y=x2(e);if(p&&!p.shadowRoot&&i(p)===!0)return h9(e);e.assignedSlot?e=e.assignedSlot:!p&&y!==e.ownerDocument?e=y.host:e=p}e=o}if(Qne(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return h9(e);return!1},qne=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 zg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},w2=function(e,t){return!(t.disabled||M2(t)||Une(t)||Yne(t,e)||zne(t)||qne(t))},B6=function(e,t){return!(Gne(t)||_0(t)<0||!w2(e,t))},Vne=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},$ne=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,p=Fne(o,l),y=l?n(i.candidates):o;p===0?l?t.push.apply(t,y):t.push(o):r.push({documentOrder:s,tabIndex:p,item:i,isScope:l,content:y})}),r.sort(Lne).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.pusLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function f9(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 p9(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?f9(Object(t),!0).forEach(function(r){Xne(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):f9(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Xne(n,e,t){return e=ere(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Jne(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 ere(n){var e=Jne(n,"string");return typeof e=="symbol"?e:String(e)}var m9={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()}},tre=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nre=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},nC=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},rre=function(e){return nC(e)&&!e.shiftKey},ire=function(e){return nC(e)&&e.shiftKey},g9=function(e){return setTimeout(e,0)},y9=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},xv=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},ub=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},ore=[],sre=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||ore,s=p9({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:rre,isKeyBackward:ire},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,p=function(me,Se,Ke){return me&&me[Se]!==void 0?me[Se]:s[Ke||Se]},y=function(me,Se){var Ke=typeof(Se==null?void 0:Se.composedPath)=="function"?Se.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var st=xe.container,Ze=xe.tabbableNodes;return st.contains(me)||(Ke==null?void 0:Ke.includes(st))||Ze.find(function(tt){return tt===me})})},x=function(me){var Se=s[me];if(typeof Se=="function"){for(var Ke=arguments.length,xe=new Array(Ke>1?Ke-1:0),st=1;st<Ke;st++)xe[st-1]=arguments[st];Se=Se.apply(void 0,xe)}if(Se===!0&&(Se=void 0),!Se){if(Se===void 0||Se===!1)return Se;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Ze=Se;if(typeof Se=="string"&&(Ze=r.querySelector(Se),!Ze))throw new Error("`".concat(me,"` as selector refers to no known node"));return Ze},B=function(){var me=x("initialFocus");if(me===!1)return!1;if(me===void 0||!Bb(me,s.tabbableOptions))if(y(r.activeElement)>=0)me=r.activeElement;else{var Se=l.tabbableGroups[0],Ke=Se&&Se.firstTabbableNode;me=Ke||x("fallbackFocus")}if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},O=function(){if(l.containerGroups=l.containers.map(function(me){var Se=cz(me,s.tabbableOptions),Ke=dz(me,s.tabbableOptions),xe=Se.length>0?Se[0]:void 0,st=Se.length>0?Se[Se.length-1]:void 0,Ze=Ke.find(function(we){return fg(we)}),tt=Ke.slice().reverse().find(function(we){return fg(we)}),Ne=!!Se.find(function(we){return _0(we)>0});return{container:me,tabbableNodes:Se,focusableNodes:Ke,posTabIndexesFound:Ne,firstTabbableNode:xe,lastTabbableNode:st,firstDomTabbableNode:Ze,lastDomTabbableNode:tt,nextTabbableNode:function(De){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_t=Se.indexOf(De);return _t<0?He?Ke.slice(Ke.indexOf(De)+1).find(function(Yt){return fg(Yt)}):Ke.slice(0,Ke.indexOf(De)).reverse().find(function(Yt){return fg(Yt)}):Se[_t+(He?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!x("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(l.containerGroups.find(function(me){return me.posTabIndexesFound})&&l.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 Ee(me){var Se=me.activeElemeLine truncated
The URL must include:
- \`{fontstack}\` - When requesting glyphs, this token is replaced with a comma separated list of fonts from a font stack specified in the text-font property of a symbol layer.
- \`{range}\` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.
This property is required if any layer uses the \`text-field\` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).`,example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"},transition:{type:"transition",doc:"A global transition definition to use as a default across properties, to be used for timing transitions between one value and the next when no property-specific transition is set. Collision-based symbol fading is controlled independently of the style's `transition` property.",example:{duration:300,delay:0}},layers:{required:!0,type:"array",value:"layer",doc:"A style's `layers` property lists all the layers available in that style. The type of layer is specified by the `type` property, and must be one of `background`, `fill`, `line`, `symbol`, `raster`, `circle`, `fill-extrusion`, `heatmap`, `hillshade`.\n\nExcept for layers of the `background` type, each layer needs to refer to a source. Layers take the data that they get from a source, optionally filter features, and then define how those features are styled.",example:[{id:"coastline",source:"maplibre","source-layer":"countries",type:"line",paint:{"line-color":"#198EC8"}}]}},gre={"*":{type:"source",doc:"Specification of a data source. For vector and raster sources, either TileJSON or a URL to a TileJSON must be provided. For image and video sources, a URL must be provided. For GeoJSON sources, a URL or inline GeoJSON must be provided."}},yre=["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],vre={type:{required:!0,type:"enum",values:{vector:{doc:"A vector tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},attribution:{type:"string",doc:"Contains an attribution to be displayed when the map is shown to a user."},promoteId:{type:"promoteId",doc:"A property to use as a feature id (for feature state). Either a property name, or an object of the form `{<sourceLayer>: <propertyName>}`. If specified as a string for a vector tile source, the same property is used across all its source layers."},volatile:{type:"boolean",default:!1,doc:"A setting to determine whether a source's tiles are cached locally.","sdk-support":{"basic functionality":{android:"9.3.0",ios:"5.10.0",js:"wontfix"}}},"*":{type:"*",doc:"Other keys to configure the data source."}},Cre={type:{required:!0,type:"enum",values:{raster:{doc:"A raster tile source."}},doc:"The type of the source."},url:{type:"string",doc:"A URL to a TileJSON resource. Supported protocols are `http:` and `https:`."},tiles:{type:"array",value:"string",doc:"An array of one or more tile source URLs, as in the TileJSON spec."},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129],doc:"An array containing the longitude and latitude of the southwest and northeast corners of the source's bounding box in the following order: `[sw.lng, sw.lat, ne.lng, ne.lat]`. When this property is included in a source, no tiles outside of the given bounds are requested by MapLibre."},minzoom:{type:"number",default:0,doc:"Minimum zoom level for which tiles are available, as in the TileJSON spec."},maxzoom:{type:"number",default:22,doc:"Maximum zoom level for which tiles are available, as in the TileJSON spec. Data from tiles at the maxzoom are used when displaying the map at higher zoom levels."},tileSize:{type:"number",default:512,units:"pixels",doc:"The minimum visual size to display tiles for this layer. Only configurable for raster layers."},scheme:{type:"enum",values:{xyz:{doc:"Slippy map tilenames scheme."},tms:{doc:"OSGeo spec scheme."}},default:"xyz",doc:"Influences the y direction of the tile coordinates. The global-mercator (aka Spherical Mercator) profile is assumed."},attribution:{type:"string",doc:"Contains an attribution to be displayLine 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:Lre,expression:Ure,expression_name:zre,light:jre,sky:Nre,terrain:Wre,projection:Gre,paint:Qre,paint_fill:Yre,"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"}},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"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.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"}},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"}},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"},"data-driven styling":{js:"0.49.0",android:"6.5.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"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.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"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.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",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:qre,paint_circle:Vre,paint_heatmap:$re,paint_symbol:Hre,paint_raster:Zre,paint_hillshade:Xre,paint_background:Jre,transition:eie,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doc:"Property is interpolable but cannot be represented using a property expression."},constant:{type:"property-type",doc:"Property is constaLine truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kie(){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 Rie=Fx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,p=o===void 0?!1:o;Dx(this,n),Ll(this,"expanded",void 0),Ll(this,"allowMultipleExpanded",void 0),Ll(this,"allowZeroExpanded",void 0),Ll(this,"toggleExpanded",function(y){if(t.isItemDisabled(y))return t;var x=t.isItemExpanded(y);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==y})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Bie(t.expanded),[y]):[y]})}),Ll(this,"isItemDisabled",function(y){var x=t.isItemExpanded(y),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),Ll(this,"isItemExpanded",function(y){return t.expanded.indexOf(y)!==-1}),Ll(this,"getPanelAttributes",function(y,x){var B=x??t.isItemExpanded(y);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(y),id:t.getPanelId(y),hidden:B?void 0:!0}}),Ll(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ll(this,"getButtonAttributes",function(y,x){var B=x??t.isItemExpanded(y),O=t.isItemDisabled(y);return{id:t.getButtonId(y),"aria-disabled":O,"aria-expanded":B,"aria-controls":t.getPanelId(y),role:"button",tabIndex:0}}),Ll(this,"getPanelId",function(y){return"accordion__panel-".concat(y)}),Ll(this,"getButtonId",function(y){return"accordion__heading-".concat(y)}),Ll(this,"augment",function(y){return new n(O6({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},y))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=p}),Mz=Ai.createContext(null),wz=function(n){C8(t,n);var e=_8(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(up(r),"state",new Rie({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Ll(up(r),"toggleExpanded",function(o){r.setState(function(p){return p.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Ll(up(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Ll(up(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Ll(up(r),"getPanelAttributes",function(o,p){return r.state.getPanelAttributes(o,p)}),Ll(up(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Ll(up(r),"getButtonAttributes",function(o,p){return r.state.getButtonAttributes(o,p)}),r}return Fx(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return Ai.createElement(Mz.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Ai.PureComponent);Ll(wz,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Sz=function(n){C8(t,n);var e=_8(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(up(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return Fx(t,[{key:"render",value:function(){return Ai.createElement(Mz.Consumer,null,this.renderChildren)}}]),t}(Ai.PureComponent),Die=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Fie=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,p=Lx(e,Die);return Ai.createElement(wz,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},Ai.createElement("div",nm({"data-accordion-component":"Accordion",className:r},p)))},T6;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(T6||(T6={}));var Ez=T6,i5=0;function Lie(){var n=i5;return i5=i5+1,"raa-".concat(n)}var Uie=Ai.useId||Lie,zie=/[\u0009\u000a\u000c\u000d\u0020]/g;function kC(n){return n===""||zie.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Bz=Ai.createContext(null),jie=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(y){var x=s??y.isItemExpanded(r),B=y.isItemDisabled(r),O=y.getPanelAttributes(r,s),P=y.getHeadingAttributes(r),F=y.getButtonAttributes(r,s);return Ai.createElement(Bz.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:O,headingAttributes:P,buttonAttributes:F}},t)};return Ai.createElement(Sz,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.”
`,kz=function(n){C8(t,n);var e=_8(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(up(r),"ref",void 0),Ll(up(r),"setRef",function(o){r.ref=o}),r}return Fx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Ai.createElement("div",nm({"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(Xie)}}]),t}(Ai.PureComponent);Ll(kz,"defaultProps",Zie);var Tz=function(e){return Ai.createElement(Ux,null,function(t){var r=t.headingAttributes;return e.id&&kC(e.id),Ai.createElement(kz,nm({},e,r))})};Tz.displayName=Ez.AccordionItemHeading;var Jie=["className","region","id"],eoe=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=Lx(e,Jie),o=function(y){var x=y.panelAttributes;s&&kC(s);var B=O6(O6({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return Ai.createElement("div",nm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return Ai.createElement(Ux,null,o)},Ob={exports:{}},toe=Ob.exports,W9;function jx(){return W9||(W9=1,function(n,e){(function(t,r){n.exports=r()})(toe,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),p=s||l||o,y=p&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),O=!o&&/Chrome\/(\d+)/.exec(t),P=O&&+O[1],F=/Opera\//.test(t),j=/Apple Computer/.test(navigator.vendor),N=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),q=/PhantomJS/.test(t),$=j&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),te=$||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=$||/Mac/.test(r),ne=/\bCrOS\b/.test(t),W=/win/i.test(r),ie=F&&t.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(F=!1,x=!0);var he=V&&(B||F&&(ie==null||ie<12.11)),fe=i||p&&y>=9;function Ee(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var me=function(A,g){var E=A.className,S=Ee(g).exec(E);if(S){var K=E.slice(S.index+S[0].length);A.className=E.slice(0,S.index)+(K?S[1]+K:"")}};function Se(A){for(var g=A.childNodes.length;g>0;--g)A.removeChild(A.firstChild);return A}function Ke(A,g){return Se(A).appendChild(g)}function xe(A,g,E,S){var K=document.createElement(A);if(E&&(K.className=E),S&&(K.style.cssText=S),typeof g=="string")K.appendChild(document.createTextNode(g));else if(g)for(var Z=0;Z<g.length;++Z)K.appendChild(g[Z]);return K}function st(A,g,E,S){var K=xe(A,g,E,S);return K.setAttribute("role","presentation"),K}var Ze;document.createRange?Ze=function(A,g,E,S){var K=document.createRange();return K.setEnd(S||A,E),K.setStart(A,g),K}:Ze=function(A,g,E){var S=document.body.createTextRange();try{S.moveToElementText(A.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",g),S};function tt(A,g){if(g.nodeType==3&&(g=g.parentNode),A.contains)return A.contains(g);do if(g.nodeType==11&&(g=g.host),g==A)return!0;while(g=g.parentNode)}function Ne(A){var g=A.ownerDocument||A,E;try{E=A.activeElement}catch{E=g.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function we(A,g){var E=A.className;Ee(g).test(E)||(A.className+=(E?" ":"")+g)}function De(A,g){for(var E=A.split(" "),S=0;S<E.length;S++)E[S]&&!Ee(E[S]).test(g)&&(g+=" "+E[S]);return g}var He=function(A){A.select()};$?He=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:p&&(He=function(A){try{A.select()}catch{}});function _t(A){return A.display.wrapper.ownerDocument}function Yt(A){return gt(A.display.wrapper)}function gt(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Ft(A){return _t(A).defaultView}function Pt(A){var g=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,g)}}function Fe(A,g,E){g||(g={});for(var S in A)A.hasOwnProperty(S)&&(E!==!1||!g.hasOwnProperty(S))&&(g[S]=A[S]);return g}function Pe(A,g,E,S,K){g==null&&(g=A.search(/[^\s\u00a0]/),g==-1&&(g=A.length));for(var Z=S||0,Ae=K||0;;){var _e=A.indexOf(" ",Z);if(_e<0||_e>=g)return Ae+(g-Z);Ae+=_e-Z,Ae+=E-Ae%E,Z=_e+1}}var Be=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Be.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Be.prototype.set=function(A,g){this.f=g;var E=+new Date+A;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=E)};function it(A,g){for(var E=0;E<A.length;++E)if(A[E]==g)return E;return-1}var Line truncated
b`.split(/\n/).length!=3?function(A){for(var g=0,E=[],S=A.length;g<=S;){var K=A.indexOf(`
`,g);K==-1&&(K=A.length);var Z=A.slice(g,A.charAt(K-1)=="\r"?K-1:K),Ae=Z.indexOf("\r");Ae!=-1?(E.push(Z.slice(0,Ae)),g+=Ae+1):(E.push(Z),g=K+1)}return E}:function(A){return A.split(/\r\n?|\n/)},co=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var g;try{g=A.ownerDocument.selection.createRange()}catch{}return!g||g.parentElement()!=A?!1:g.compareEndPoints("StartToEnd",g)!=0},ma=function(){var A=xe("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Mr=null;function wi(A){if(Mr!=null)return Mr;var g=Ke(A,xe("span","x")),E=g.getBoundingClientRect(),S=Ze(g,0,1).getBoundingClientRect();return Mr=Math.abs(E.left-S.left)>1}var Zi={},Ts={};function xs(A,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),Zi[A]=g}function aa(A,g){Ts[A]=g}function ps(A){if(typeof A=="string"&&Ts.hasOwnProperty(A))A=Ts[A];else if(A&&typeof A.name=="string"&&Ts.hasOwnProperty(A.name)){var g=Ts[A.name];typeof g=="string"&&(g={name:g}),A=hr(g,A),A.name=g.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return ps("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return ps("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function bi(A,g){g=ps(g);var E=Zi[g.name];if(!E)return bi(A,"text/plain");var S=E(A,g);if(Il.hasOwnProperty(g.name)){var K=Il[g.name];for(var Z in K)K.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=K[Z])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var Ae in g.modeProps)S[Ae]=g.modeProps[Ae];return S}var Il={};function kl(A,g){var E=Il.hasOwnProperty(A)?Il[A]:Il[A]={};Fe(g,E)}function io(A,g){if(g===!0)return g;if(A.copyState)return A.copyState(g);var E={};for(var S in g){var K=g[S];K instanceof Array&&(K=K.concat([])),E[S]=K}return E}function vl(A,g){for(var E;A.innerMode&&(E=A.innerMode(g),!(!E||E.mode==A));)g=E.state,A=E.mode;return E||{mode:A,state:g}}function ol(A,g,E){return A.startState?A.startState(g,E):!0}var bo=function(A,g,E){this.pos=this.start=0,this.string=A,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};bo.prototype.eol=function(){return this.pos>=this.string.length},bo.prototype.sol=function(){return this.pos==this.lineStart},bo.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},bo.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},bo.prototype.eat=function(A){var g=this.string.charAt(this.pos),E;if(typeof A=="string"?E=g==A:E=g&&(A.test?A.test(g):A(g)),E)return++this.pos,g},bo.prototype.eatWhile=function(A){for(var g=this.pos;this.eat(A););return this.pos>g},bo.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},bo.prototype.skipToEnd=function(){this.pos=this.string.length},bo.prototype.skipTo=function(A){var g=this.string.indexOf(A,this.pos);if(g>-1)return this.pos=g,!0},bo.prototype.backUp=function(A){this.pos-=A},bo.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)},bo.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},bo.prototype.match=function(A,g,E){if(typeof A=="string"){var S=function(Ae){return E?Ae.toLowerCase():Ae},K=this.string.substr(this.pos,A.length);if(S(K)==S(A))return g!==!1&&(this.pos+=A.length),!0}else{var Z=this.string.slice(this.pos).match(A);return Z&&Z.index>0?null:(Z&&g!==!1&&(this.pos+=Z[0].length),Z)}},bo.prototype.current=function(){return this.string.slice(this.start,this.pos)},bo.prototype.hideFirstChars=function(A,g){this.lineStart+=A;try{return g()}finally{this.lineStart-=A}},bo.prototype.lookAhead=function(A){var g=this.lineOracle;return g&&g.lookAhead(A)},bo.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Kr(A,g){if(g-=A.first,g<0||g>=A.size)throw new Error("There is no line "+(g+A.first)+" in the document.");for(var E=A;!E.lines;)for(var S=0;;++S){var K=E.children[S],Z=K.chunkSize();if(g<Z){E=K;break}g-=Z}return E.lines[g]}function Wa(A,g,E){var S=[],K=g.line;return A.iter(g.line,E.line+1,function(Z){var Ae=Z.text;K==E.line&&(Ae=Ae.slice(0,E.ch)),K==g.line&&(Ae=Ae.slice(g.ch)),S.push(Ae),++K}),S}function Vo(A,g,E){var S=[];return A.iter(g,E,function(K){S.push(K.text)}),S}function Gs(A,g){var E=g-A.height;if(E)for(var S=A;S;S=S.parent)S.height+=E}function Ye(A){if(A.parent==null)return null;for(var g=A.parent,E=it(g.lines,A),S=g.parent;S;g=S,S=S.parent)for(var K=0;S.children[K]!=g;++K)E+=S.children[K].chunkSize();return E+g.first}function xt(A,g){var E=A.first;e:do{for(var S=0;S<A.child Line truncated
`?(Ln=yt.appendChild(xe("span",Zt[0]=="\r"?"␍":"␤","cm-invalidchar")),Ln.setAttribute("cm-text",Zt[0]),A.col+=1):(Ln=A.cm.options.specialCharPlaceholder(Zt[0]),Ln.setAttribute("cm-text",Zt[0]),p&&y<9?yt.appendChild(xe("span",[Ln])):yt.appendChild(Ln),A.col+=1);A.map.push(A.pos,A.pos+1,Ln),A.pos++}}if(A.trailingSpace=_e.charCodeAt(g.length-1)==32,E||S||K||Ue||Z||Ae){var _r=E||"";S&&(_r+=S),K&&(_r+=K);var mr=xe("span",[yt],_r,Z);if(Ae)for(var Or in Ae)Ae.hasOwnProperty(Or)&&Or!="style"&&Or!="class"&&mr.setAttribute(Or,Ae[Or]);return A.content.appendChild(mr)}A.content.appendChild(yt)}}function qc(A,g){if(A.length>1&&!/ /.test(A))return A;for(var E=g,S="",K=0;K<A.length;K++){var Z=A.charAt(K);Z==" "&&E&&(K==A.length-1||A.charCodeAt(K+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function ws(A,g){return function(E,S,K,Z,Ae,_e,Ie){K=K?K+" cm-force-border":"cm-force-border";for(var Ue=E.pos,yt=Ue+S.length;;){for(var wt=void 0,Zt=0;Zt<g.length&&(wt=g[Zt],!(wt.to>Ue&&wt.from<=Ue));Zt++);if(wt.to>=yt)return A(E,S,K,Z,Ae,_e,Ie);A(E,S.slice(0,wt.to-Ue),K,Z,null,_e,Ie),Z=null,S=S.slice(wt.to-Ue),Ue=wt.to}}}function LA(A,g,E,S){var K=!S&&E.widgetNode;K&&A.map.push(A.pos,A.pos+g,K),!S&&A.cm.display.input.needsContentAttribute&&(K||(K=A.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",E.id)),K&&(A.cm.display.input.setUneditable(K),A.content.appendChild(K)),A.pos+=g,A.trailingSpace=!1}function pA(A,g,E){var S=A.markedSpans,K=A.text,Z=0;if(!S){for(var Ae=1;Ae<E.length;Ae+=2)g.addToken(g,K.slice(Z,Z=E[Ae]),su(E[Ae+1],g.cm.options));return}for(var _e=K.length,Ie=0,Ue=1,yt="",wt,Zt,Qt=0,bn,Ln,rr,Jn,_r;;){if(Qt==Ie){bn=Ln=rr=Zt="",_r=null,Jn=null,Qt=1/0;for(var mr=[],Or=void 0,oi=0;oi<S.length;++oi){var jr=S[oi],zi=jr.marker;if(zi.type=="bookmark"&&jr.from==Ie&&zi.widgetNode)mr.push(zi);else if(jr.from<=Ie&&(jr.to==null||jr.to>Ie||zi.collapsed&&jr.to==Ie&&jr.from==Ie)){if(jr.to!=null&&jr.to!=Ie&&Qt>jr.to&&(Qt=jr.to,Ln=""),zi.className&&(bn+=" "+zi.className),zi.css&&(Zt=(Zt?Zt+";":"")+zi.css),zi.startStyle&&jr.from==Ie&&(rr+=" "+zi.startStyle),zi.endStyle&&jr.to==Qt&&(Or||(Or=[])).push(zi.endStyle,jr.to),zi.title&&((_r||(_r={})).title=zi.title),zi.attributes)for(var yo in zi.attributes)(_r||(_r={}))[yo]=zi.attributes[yo];zi.collapsed&&(!Jn||at(Jn.marker,zi)<0)&&(Jn=jr)}else jr.from>Ie&&Qt>jr.from&&(Qt=jr.from)}if(Or)for(var Fa=0;Fa<Or.length;Fa+=2)Or[Fa+1]==Qt&&(Ln+=" "+Or[Fa]);if(!Jn||Jn.from==Ie)for(var Zs=0;Zs<mr.length;++Zs)LA(g,0,mr[Zs]);if(Jn&&(Jn.from||0)==Ie){if(LA(g,(Jn.to==null?_e+1:Jn.to)-Ie,Jn.marker,Jn.from==null),Jn.to==null)return;Jn.to==Ie&&(Jn=!1)}}if(Ie>=_e)break;for(var wa=Math.min(_e,Qt);;){if(yt){var Ha=Ie+yt.length;if(!Jn){var Za=Ha>wa?yt.slice(0,wa-Ie):yt;g.addToken(g,Za,wt?wt+bn:bn,rr,Ie+Za.length==Qt?Ln:"",Zt,_r)}if(Ha>=wa){yt=yt.slice(wa-Ie),Ie=wa;break}Ie=Ha,rr=""}yt=K.slice(Z,Z=E[Ue++]),wt=su(E[Ue++],g.cm.options)}}}function Mp(A,g,E){this.line=g,this.rest=Vi(g),this.size=this.rest?Ye(cr(this.rest))-E+1:1,this.node=this.text=null,this.hidden=zr(A,g)}function UA(A,g,E){for(var S=[],K,Z=g;Z<E;Z=K){var Ae=new Mp(A.doc,Kr(A.doc,Z),Z);K=Z+Ae.size,S.push(Ae)}return S}var lc=null;function yd(A){lc?lc.ops.push(A):A.ownsGroup=lc={ops:[A],delayedCallbacks:[]}}function wp(A){var g=A.delayedCallbacks,E=0;do{for(;E<g.length;E++)g[E].call(null);for(var S=0;S<A.ops.length;S++){var K=A.ops[S];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(E<g.length)}function _h(A,g){var E=A.ownsGroup;if(E)try{wp(E)}finally{lc=null,g(E)}}var bc=null;function ms(A,g){var E=qe(A,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),K;lc?K=lc.delayedCallbacks:bc?K=bc:(K=bc=[],setTimeout(Ff,0));for(var Z=function(_e){K.push(function(){return E[_e].apply(null,S)})},Ae=0;Ae<E.length;++Ae)Z(Ae)}}function Ff(){var A=bc;bc=null;for(var g=0;g<A.length;++g)A[g]()}function Xh(A,g,E,S){for(var K=0;K<g.changes.length;K++){var Z=g.changes[K];Z=="text"?ef(A,g):Z=="gutter"?xh(A,g,E,S):Z=="class"?bh(A,g):Z=="widget"&&tf(A,g,S)}g.changes=null}function $d(A){return A.node==A.text&&(A.node=xe("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),p&&y<8&&(A.node.style.zIndex=2)),A.node}function Jh(A,g){var E=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),g.background)E?g.background.className=E:(g.background.parentNode.removeChild(g.background),g.background=null);else if(E){var S=$d(g);g.background=S.insertBefore(xe("div",null,E),S.firstChild),A.display.input.setUneditable(g.background)}}function Vc(A,g){var E=A.display.externalMeasured;return E&&E.line==g.line?(A.display.externalMeasured=null,g.measure=E.measure,E.built):Ch(A,g)}function ef(A,g){var E=g.text.className,S=Vc(A,g);g.text==g.node&&(g.node=S.pre),g.text.parentNode.replaceChild(S.pre,g.text),g.text=S.pre,S.bgClass Line truncated
top: `+Or+"px; width: "+(oi??Ie-mr)+`px;
height: `+(jr-Or)+"px"))}function wt(mr,Or,oi){var jr=Kr(K,mr),zi=jr.text.length,yo,Fa;function Zs(Za,Pu){return Tn(A,dn(mr,Za),"div",jr,Pu)}function wa(Za,Pu,hl){var Sa=ts(A,jr,null,Za),is=Pu=="ltr"==(hl=="after")?"left":"right",gi=hl=="after"?Sa.begin:Sa.end-(/\s/.test(jr.text.charAt(Sa.end-1))?2:1);return Zs(gi,is)[is]}var Ha=Ce(jr,K.direction);return sn(Ha,Or||0,oi??zi,function(Za,Pu,hl,Sa){var is=hl=="ltr",gi=Zs(Za,is?"left":"right"),os=Zs(Pu-1,is?"right":"left"),Xs=Or==null&&Za==0,da=oi==null&&Pu==zi,Is=Sa==0,eu=!Ha||Sa==Ha.length-1;if(os.top-gi.top<=3){var Bo=(Ue?Xs:da)&&Is,sh=(Ue?da:Xs)&&eu,yu=Bo?_e:(is?gi:os).left,aA=sh?Ie:(is?os:gi).right;yt(yu,gi.top,aA-yu,gi.bottom)}else{var sd,Xa,La,Ph;is?(sd=Ue&&Xs&&Is?_e:gi.left,Xa=Ue?Ie:wa(Za,hl,"before"),La=Ue?_e:wa(Pu,hl,"after"),Ph=Ue&&da&&eu?Ie:os.right):(sd=Ue?wa(Za,hl,"before"):_e,Xa=!Ue&&Xs&&Is?Ie:gi.right,La=!Ue&&da&&eu?_e:os.left,Ph=Ue?wa(Pu,hl,"after"):Ie),yt(sd,gi.top,Xa-sd,gi.bottom),gi.bottom<os.top&&yt(_e,gi.bottom,null,os.top),yt(La,os.top,Ph-La,os.bottom)}(!yo||Ec(gi,yo)<0)&&(yo=gi),Ec(os,yo)<0&&(yo=os),(!Fa||Ec(gi,Fa)<0)&&(Fa=gi),Ec(os,Fa)<0&&(Fa=os)}),{start:yo,end:Fa}}var Zt=g.from(),Qt=g.to();if(Zt.line==Qt.line)wt(Zt.line,Zt.ch,Qt.ch);else{var bn=Kr(K,Zt.line),Ln=Kr(K,Qt.line),rr=Br(bn)==Br(Ln),Jn=wt(Zt.line,Zt.ch,rr?bn.text.length+1:null).end,_r=wt(Qt.line,rr?0:null,Qt.ch).start;rr&&(Jn.top<_r.top-2?(yt(Jn.right,Jn.top,null,Jn.bottom),yt(_e,_r.top,_r.left,_r.bottom)):yt(Jn.right,Jn.top,_r.left-Jn.right,Jn.bottom)),Jn.bottom<_r.top&&yt(_e,Jn.bottom,null,_r.top)}E.appendChild(Z)}function _A(A){if(A.state.focused){var g=A.display;clearInterval(g.blinker);var E=!0;g.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?g.blinker=setInterval(function(){A.hasFocus()||us(A),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function jA(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Sd(A))}function NA(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&us(A))},100)}function Sd(A,g){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(At(A,"focus",A,g),A.state.focused=!0,we(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),x&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),_A(A))}function us(A,g){A.state.delayingBlurEvent||(A.state.focused&&(At(A,"blur",A,g),A.state.focused=!1,me(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function $c(A){for(var g=A.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),K=g.lineDiv.getBoundingClientRect().top,Z=0,Ae=0;Ae<g.view.length;Ae++){var _e=g.view[Ae],Ie=A.options.lineWrapping,Ue=void 0,yt=0;if(!_e.hidden){if(K+=_e.line.height,p&&y<8){var wt=_e.node.offsetTop+_e.node.offsetHeight;Ue=wt-E,E=wt}else{var Zt=_e.node.getBoundingClientRect();Ue=Zt.bottom-Zt.top,!Ie&&_e.text.firstChild&&(yt=_e.text.firstChild.getBoundingClientRect().right-Zt.left-1)}var Qt=_e.line.height-Ue;if((Qt>.005||Qt<-.005)&&(K<S&&(Z-=Qt),Gs(_e.line,Ue),Bc(_e.line),_e.rest))for(var bn=0;bn<_e.rest.length;bn++)Bc(_e.rest[bn]);if(yt>A.display.sizerWidth){var Ln=Math.ceil(yt/Wl(A.display));Ln>A.display.maxLineLength&&(A.display.maxLineLength=Ln,A.display.maxLine=_e.line,A.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(g.scroller.scrollTop+=Z)}function Bc(A){if(A.widgets)for(var g=0;g<A.widgets.length;++g){var E=A.widgets[g],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function Zu(A,g,E){var S=E&&E.top!=null?Math.max(0,E.top):A.scroller.scrollTop;S=Math.floor(S-Cd(A));var K=E&&E.bottom!=null?E.bottom:S+A.wrapper.clientHeight,Z=xt(g,S),Ae=xt(g,K);if(E&&E.ensure){var _e=E.ensure.from.line,Ie=E.ensure.to.line;_e<Z?(Z=_e,Ae=xt(g,Gi(Kr(g,_e))+A.wrapper.clientHeight)):Math.min(Ie,g.lastLine())>=Ae&&(Z=xt(g,Gi(Kr(g,Ie))-A.wrapper.clientHeight),Ae=Ie)}return{from:Z,to:Math.max(Ae,Z+1)}}function Hc(A,g){if(!dt(A,"scrollCursorIntoView")){var E=A.display,S=E.sizer.getBoundingClientRect(),K=null,Z=E.wrapper.ownerDocument;if(g.top+S.top<0?K=!0:g.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(K=!1),K!=null&&!q){var Ae=xe("div","​",null,`position: absolute;
top: `+(g.top-E.viewOffset-Cd(A.display))+`px;
height: `+(g.bottom-g.top+Qu(A)+E.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");A.display.lineSpace.appendChild(Ae),Ae.scrollIntoView(K),A.display.lineSpace.removeChild(Ae)}}}function Jd(A,g,E,S){S==null&&(S=0);var K;!A.options.lineWrapping&&g==E&&(E=g.sticky=="before"?dn(g.line,g.ch+1,"before"):g,g=g.ch?dn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var Z=0;Z<5;Z++){var Ae=!1,_e=un(A,g),Ie=!E||E==g?_e:un(A,E);K={left:Math.min(_e.left,Ie.left),top:Math.min(_e.top,Ie.top)-S,right:Math.max(_e.left,Ie.left),bottom:Math.max(_e.bottom,Ie.bottom)+S};var Ue=Ic(A,K),yt=A.doc.scrollTop,wt=A.doc.scrollLeft;if(Ue.scrollTop!=null&&(ul(A,Ue.scrollTop),Math.abs(A.doc.scrollTop-yt)>1&&(Ae=!0)),Ue.scrollLeft!=null&&(Gl(A,Ue.scrollLeft),Math.abs(A.doc.scrollLeft-wt)>1&&(Ae=!0)),!Ae)break}return K}function Oc(A,g){var E=Ic(A,g);E.scrollTop!=null&&ul(A,E.scrollTop),E.scrollLeft!=null&&Gl(A,E.scrollLeft)}function Ic(A,g){var E=A.display,S=Nl(A.display);g.top<0&&(g.top=0);var K=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:E.scroller.scrollTop,Z=Ac(A),Ae={};g.bottom-g.top>Z&&(g.bottom=g.top+Z);var _e=A.doc.height+nf(E),Ie=g.top<S,Ue=g.bottom>_e-S;if(g.top<K)Ae.scrollTop=Ie?0:g.top;else if(g.bottom>K+Z){var yt=Math.min(g.top,(Ue?_e:g.bottom)-Z);yt!=K&&(Ae.scrollTop=yt)}var wt=A.options.fixedGutter?0:E.gutters.offsetWidth,Zt=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:E.scroller.scrollLeft-wt,Qt=uc(A)-E.gutters.offsetWidth,bn=g.right-g.left>Qt;return bn&&(g.right=g.left+Qt),g.left<10?Ae.scrollLeft=0:g.left<Zt?Ae.scrollLeft=Math.max(0,g.left+wt-(bn?0:10)):g.right>Qt+Zt-3&&(Ae.scrollLeft=g.right+(bn?0:10)-Qt),Ae}function Xu(A,g){g!=null&&(js(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+g)}function As(A){js(A);var g=A.getCursor();A.curOp.scrollToPos={from:g,to:g,margin:A.options.cursorScrollMargin}}function Ya(A,g,E){(g!=null||E!=null)&&js(A),g!=null&&(A.curOp.scrollLeft=g),E!=null&&(A.curOp.scrollTop=E)}function Sp(A,g){js(A),A.curOp.scrollToPos=g}function js(A){var g=A.curOp.scrollToPos;if(g){A.curOp.scrollToPos=null;var E=Tr(A,g.from),S=Tr(A,g.to);bA(A,E,S,g.margin)}}function bA(A,g,E,S){var K=Ic(A,{left:Math.min(g.left,E.left),top:Math.min(g.top,E.top)-S,right:Math.max(g.right,E.right),bottom:Math.max(g.bottom,E.bottom)+S});Ya(A,K.scrollLeft,K.scrollTop)}function ul(A,g){Math.abs(A.doc.scrollTop-g)<2||(i||Ca(A,{top:g}),Zc(A,g,!0),i&&Ca(A),Ql(A,100))}function Zc(A,g,E){g=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,g)),!(A.display.scroller.scrollTop==g&&!E)&&(A.doc.scrollTop=g,A.display.scrollbars.setScrollTop(g),A.display.scroller.scrollTop!=g&&(A.display.scroller.scrollTop=g))}function Gl(A,g,E,S){g=Math.max(0,Math.min(g,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((E?g==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-g)<2)&&!S)&&(A.doc.scrollLeft=g,lf(A),A.display.scroller.scrollLeft!=g&&(A.display.scroller.scrollLeft=g),A.display.scrollbars.setScrollLeft(g))}function WA(A){var g=A.display,E=g.gutters.offsetWidth,S=Math.round(A.doc.height+nf(A.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:A.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+Qu(A)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var va=function(A,g,E){this.cm=E;var S=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=K.tabIndex=-1,A(S),A(K),je(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),je(K,"scroll",function(){K.clientWidth&&g(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&y<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};va.prototype.update=function(A){var g=A.scrollWidth>A.clientWidth+1,E=A.scrollHeight>A.clientHeight+1,S=A.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=g?S+"px":"0";var K=A.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(g){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=A.barLeft+"px";var Z=A.viewWidth-A.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:g?S:0}},va.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},va.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),thi Line truncated
`},setDirection:Go(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(g){return g.order=null}),this.cm&&Al(this.cm))})}),qt.prototype.eachLine=qt.prototype.iter;var xn=0;function Sn(A){var g=this;if(jn(g),!(dt(g,A)||wu(g.display,A))){nn(A),p&&(xn=+new Date);var E=Su(g,A,!0),S=A.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var K=S.length,Z=Array(K),Ae=0,_e=function(){++Ae==K&&Ti(g,function(){E=ei(g.doc,E);var Qt={from:E,to:E,text:g.doc.splitLines(Z.filter(function(bn){return bn!=null}).join(g.doc.lineSeparator())),origin:"paste"};I(g.doc,Qt),ql(g.doc,Pa(ei(g.doc,E),ei(g.doc,$a(Qt))))})()},Ie=function(Qt,bn){if(g.options.allowDropFileTypes&&it(g.options.allowDropFileTypes,Qt.type)==-1){_e();return}var Ln=new FileReader;Ln.onerror=function(){return _e()},Ln.onload=function(){var rr=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(rr)){_e();return}Z[bn]=rr,_e()},Ln.readAsText(Qt)},Ue=0;Ue<S.length;Ue++)Ie(S[Ue],Ue);else{if(g.state.draggingText&&g.doc.sel.contains(E)>-1){g.state.draggingText(A),setTimeout(function(){return g.display.input.focus()},20);return}try{var yt=A.dataTransfer.getData("Text");if(yt){var wt;if(g.state.draggingText&&!g.state.draggingText.copy&&(wt=g.listSelections()),Hs(g.doc,Pa(E,E)),wt)for(var Zt=0;Zt<wt.length;++Zt)z(g.doc,"",wt[Zt].anchor,wt[Zt].head,"drag");g.replaceSelection(yt,"around","paste"),g.display.input.focus()}}catch{}}}}function _n(A,g){if(p&&(!A.state.draggingText||+new Date-xn<100)){on(g);return}if(!(dt(A,g)||wu(A.display,g))&&(g.dataTransfer.setData("Text",A.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!j)){var E=xe("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",F&&(E.width=E.height=1,A.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),F&&E.parentNode.removeChild(E)}}function In(A,g){var E=Su(A,g);if(E){var S=document.createDocumentFragment();Sc(A,E,S),A.display.dragCursor||(A.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),Ke(A.display.dragCursor,S)}}function jn(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function Rn(A){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var K=g[S].CodeMirror;K&&E.push(K)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)A(E[Z])})}}var kr=!1;function Ri(){kr||(Xi(),kr=!0)}function Xi(){var A;je(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,Rn(_i)},100))}),je(window,"blur",function(){return Rn(us)})}function _i(A){var g=A.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,A.setSize()}for(var Bi={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"},Qo=0;Qo<10;Qo++)Bi[Qo+48]=Bi[Qo+96]=String(Qo);for(var Lo=65;Lo<=90;Lo++)Bi[Lo]=String.fromCharCode(Lo);for(var So=1;So<=12;So++)Bi[So+111]=Bi[So+63235]="F"+So;var fo={};fo.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"},fo.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"},fo.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 Hl(A,g){var E=Kr(A.doc,g),S=Br(E);return S!=E&&(g=Ye(S)),ku(!0,A,S,g,1)}function Dc(A,g){var E=Kr(A.doc,g),S=Rr(E);return S!=E&&(g=Ye(S)),ku(!0,A,E,g,-1)}function Ns(A,g){var E=Hl(A,g.line),S=Kr(A.doc,E.line),K=Ce(S,A.doc.direction);if(!K||K[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),Ae=g.line==E.line&&g.ch<=Z&&g.ch;return dn(E.line,Ae?0:Z,E.sticky)}return E}function ds(A,g,E){if(typeof g=="string"&&(g=Tu[g],!g))return!1;A.display.input.ensurePolled();var S=A.display.shift,K=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),E&&(A.display.shift=!1),K=g(A)!=pt}finally{A.display.shift=S,A.state.suppressEdits=!1}return K}function Ra(A,g,E){for(var S=0;S<A.state.keyMaps.length;S++){var K=rs(g,A.state.keyMaps[S],E,A);if(K)return K}return A.options.extraKeys&&rs(g,A.options.extraKeys,E,A)||rs(g,A.options.keyMap,E,A)}var Cs=new Be;function oA(A,g,E,S){var K=A.state.keySeq;if(K){if(xl(g))return"handled";if(/\'$/.test(g)?A.state.keySeq=null:Cs.set(50,function(){A.state.keySeq==K&&(A.state.keySeq=null,A.display.input.reset())}),uf(A,K+" "+g,E,S))return!0}return uf(A,g,E,S)}function uf(A,g,E,S){var K=Ra(A,g,S);return K=="multi"&&(A.state.keySeq=g),K=="handled"&&ms(A,"keyHandled",A,g,E),(K=="handled"||K=="multi")&&(nn(E),_A(A)),!!K}function pc(A,g){var E=pu(g,!0);return E?g.shiftKey&&!A.state.keySeq?oA(A,"Shift-"+E,g,function(S){return ds(A,S,!0)})||oA(A,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return ds(A,S)}):oA(A,E,g,function(S){return ds(A,S)}):!1}function am(A,g,E){return oA(A,"'"+E+"'",g,function(S){return ds(A,S,!0)})}var Ih=null;function nh(A){var g=this;if(!(A.target&&A.target!=g.display.input.getField())&&(g.curOp.focus=Ne(Yt(g)),!dt(g,A))){p&&y<11&&A.keyCode==27&&(A.returnValue=!1);var E=A.keyCode;g.display.shift=E==16||A.shiftKey;var S=pc(g,A);F&&(Ih=S?E:null,!S&&E==88&&!ma&&(V?A.metaKey:A.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!V&&!S&&E==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&Ma(g)}}function Ma(A){var g=A.display.lineDiv;we(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(me(g,"CodeMirror-crosshair"),Xe(document,"keyup",E),Xe(document,"mouseover",E))}je(document,"keyup",E),je(document,"mouseover",E)}function cl(A){A.keyCode==16&&(this.doc.sel.shift=!1),dt(this,A)}function BA(A){var g=this;if(!(A.target&&A.target!=g.display.input.getField())&&!(wu(g.display,A)||dt(g,A)||A.ctrlKey&&!A.altKey||V&&A.metaKey)){var E=A.keyCode,S=A.charCode;if(F&&E==Ih){Ih=null,nn(A);return}if(!(F&&(!A.which||A.which<10)&&pc(g,A))){var K=String.fromCharCode(S??E);K!="\b"&&(am(g,A,K)||g.display.input.onKeyPress(A))}}}var Nf=400,rd=function(A,g,E){this.time=A,this.pos=g,this.button=E};rd.prototype.compare=function(A,g,E){return this.time+Nf>A&&ar(g,this.pos)==0&&E==this.button};var sA,dl;function Ep(A,g){var E=+new Date;return dl&&dl.compare(E,A,g)?(sA=dl=null,"triple"):sA&&sA.compare(E,A,g)?(dl=new rd(E,A,g),sA=null,"double"):(sA=new rd(E,A,g),dl=null,"single")}function Af(A){var g=this,E=g.display;if(!(dt(g,A)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=A.shiftKey,wu(E,A)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Fc(g,A)){var S=Su(g,A),K=$n(A),Z=S?Ep(S,K):"single";Ft(g).focus(),K==1&&g.state.selectingText&&g.state.selectingText(A),!(S&&lm(g,K,S,Z,A))&&(K==1?S?cf(g,S,Z,A):Sr(A)==E.scroller&&nn(A):K==2?(S&&HA(g.doc,S),setTimeout(function(){return E.input.focus()},20)):K==3&&(fe?g.display.input.onContextMenu(A):NA(g)))}}}function lm(A,g,E,S,K){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(g==1?"Left":g==2?"Middle":"Right")+Z,oA(A,EA(Z,K),K,function(Ae){if(typeof Ae=="string"&&(Ae=Tu[Ae]),!Ae)return!1;var _e=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),_e=Ae(A,E)!=pt}finally{A.state.suppressEdits=!1}return _e})}function Id(A,g,E){var S=A.getOption("configureMouse"),K=S?S(A,g,E):{};if(K.unit==null){var Z=ne?E.shiftKey&&E.metaKey:E.altKey;K.unit=Z?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(K.extend==null||A.doc.extend)&&(K.extend=A.doc.extend||E.shiftKey),K.addNew==null&&(K.addNew=V?E.metaKey:E.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(V?E.altKey:E.ctrlKey)),K}function cf(A,g,E,S){p?setTimeout(Pt(jA,A),0):A.curOp.focus=Ne(Yt(A));var K=Id(A,E,S),Z=A.doc.sel,Ae;A.options.dragDrop&&xr&&!A.isReadOnly()&&E=="single"&&(Ae=Z.contains(g))>-1&&(ar((Ae=Z.ranges[Ae]).from(),g)<0||g.xRel>0)&&(ar(Ae.to(),g)>0||g.xRel<0)?Wf(A,S,g,K):Gf(A,S,g,K)}function Wf(A,g,E,S){var K=A.display,Z=!1,Ae=Ti(A,function(Ue){x&&(K.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:NA(A)),Xe(K.wrapper.ownerDocument,"mouseup",Ae),Xe(K.wrapper.ownerDocument,"mousemove",_e),Xe(K.scroller,"dragstart",Ie),Xe(K.scro Line truncated
`)==g){if(S.ranges.length%mu.text.length==0){Ue=[];for(var yt=0;yt<mu.text.length;yt++)Ue.push(Z.splitLines(mu.text[yt]))}}else Ie.length==S.ranges.length&&A.options.pasteLinesPerSelection&&(Ue=kn(Ie,function(Jn){return[Jn]}));for(var wt=A.curOp.updateInput,Zt=S.ranges.length-1;Zt>=0;Zt--){var Qt=S.ranges[Zt],bn=Qt.from(),Ln=Qt.to();Qt.empty()&&(E&&E>0?bn=dn(bn.line,bn.ch-E):A.state.overwrite&&!_e?Ln=dn(Ln.line,Math.min(Kr(Z,Ln.line).text.length,Ln.ch+cr(Ie).length)):_e&&mu&&mu.lineWise&&mu.text.join(`
`)==Ie.join(`
`)&&(bn=Ln=dn(bn.line,0)));var rr={from:bn,to:Ln,text:Ue?Ue[Zt%Ue.length]:Ie,origin:K||(_e?"paste":A.state.cutIncoming>Ae?"cut":"+input")};I(A.doc,rr),ms(A,"inputRead",A,rr)}g&&!_e&&hf(A,g),As(A),A.curOp.updateInput<2&&(A.curOp.updateInput=wt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function XA(A,g){var E=A.clipboardData&&A.clipboardData.getData("Text");if(E)return A.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Ss(g,function(){return qf(g,E,0,null,"paste")}),!0}function hf(A,g){if(!(!A.options.electricChars||!A.options.smartIndent))for(var E=A.doc.sel,S=E.ranges.length-1;S>=0;S--){var K=E.ranges[S];if(!(K.head.ch>100||S&&E.ranges[S-1].head.line==K.head.line)){var Z=A.getModeAt(K.head),Ae=!1;if(Z.electricChars){for(var _e=0;_e<Z.electricChars.length;_e++)if(g.indexOf(Z.electricChars.charAt(_e))>-1){Ae=Pd(A,K.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Kr(A.doc,K.head.line).text.slice(0,K.head.ch))&&(Ae=Pd(A,K.head.line,"smart"));Ae&&ms(A,"electricInput",A,K.head.line)}}}function kh(A){for(var g=[],E=[],S=0;S<A.doc.sel.ranges.length;S++){var K=A.doc.sel.ranges[S].head.line,Z={anchor:dn(K,0),head:dn(K+1,0)};E.push(Z),g.push(A.getRange(Z.anchor,Z.head))}return{text:g,ranges:E}}function ff(A,g,E,S){A.setAttribute("autocorrect",E?"on":"off"),A.setAttribute("autocapitalize",S?"on":"off"),A.setAttribute("spellcheck",!!g)}function Th(){var A=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=xe("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?A.style.width="1000px":A.setAttribute("wrap","off"),$&&(A.style.border="1px solid black"),g}function Kd(A){var g=A.optionHandlers,E=A.helpers={};A.prototype={constructor:A,focus:function(){Ft(this).focus(),this.display.input.focus()},setOption:function(S,K){var Z=this.options,Ae=Z[S];Z[S]==K&&S!="mode"||(Z[S]=K,g.hasOwnProperty(S)&&Ti(this,g[S])(this,K,Ae),At(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,K){this.state.keyMaps[K?"push":"unshift"](Vl(S))},removeKeyMap:function(S){for(var K=this.state.keyMaps,Z=0;Z<K.length;++Z)if(K[Z]==S||K[Z].name==S)return K.splice(Z,1),!0},addOverlay:ri(function(S,K){var Z=S.token?S:A.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");hn(this.state.overlays,{mode:Z,modeSpec:S,opaque:K&&K.opaque,priority:K&&K.priority||0},function(Ae){return Ae.priority}),this.state.modeGen++,Tl(this)}),removeOverlay:ri(function(S){for(var K=this.state.overlays,Z=0;Z<K.length;++Z){var Ae=K[Z].modeSpec;if(Ae==S||typeof S=="string"&&Ae.name==S){K.splice(Z,1),this.state.modeGen++,Tl(this);return}}}),indentLine:ri(function(S,K,Z){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),vn(this.doc,S)&&Pd(this,S,K,Z)}),indentSelection:ri(function(S){for(var K=this.doc.sel.ranges,Z=-1,Ae=0;Ae<K.length;Ae++){var _e=K[Ae];if(_e.empty())_e.head.line>Z&&(Pd(this,_e.head.line,S,!0),Z=_e.head.line,Ae==this.doc.sel.primIndex&&As(this));else{var Ie=_e.from(),Ue=_e.to(),yt=Math.max(Z,Ie.line);Z=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var wt=yt;wt<Z;++wt)Pd(this,wt,S);var Zt=this.doc.sel.ranges;Ie.ch==0&&K.length==Zt.length&&Zt[Ae].from().ch>0&&bl(this.doc,Ae,new wo(Ie,Zt[Ae].to()),Lt)}}}),getTokenAt:function(S,K){return Do(this,S,K)},getLineTokens:function(S,K){return Do(this,dn(S),K,!0)},getTokenTypeAt:function(S){S=ei(this.doc,S);var K=Si(this,Kr(this.doc,S.line)),Z=0,Ae=(K.length-1)/2,_e=S.ch,Ie;if(_e==0)Ie=K[2];else for(;;){var Ue=Z+Ae>>1;if((Ue?K[Ue*2-1]:0)>=_e)Ae=Ue;else if(K[Ue*2+1]<_e)Z=Ue+1;else{Ie=K[Ue*2+2];break}}var yt=Ie?Ie.indexOf("overlay "):-1;return yt<0?Ie:yt==0?null:Ie.slice(0,yt-1)},getModeAt:function(S){var K=this.doc.mode;return K.innerMode?A.innerMode(K,this.getTokenAt(S).state).mode:K},getHelper:function(S,K){return this.getHelpers(S,K)[0]},getHelpers:function(S,K){var Z=[];if(!E.hasOwnProperty(K))return Z;var Ae=E[K],_e=this.getModeAt(S);if(typeof _e[K]=="string")Ae[_e[K]]&&Z.push(Ae[_e[K]]);else if(_e[K])for(var Ie=0;Ie<_e[K].length;Ie++){var Ue=Ae[_e[K][Ie]];Ue&&Z.push(Ue)}else _e.helperType&&Ae[_e.helperType]?Z.push(Ae[_e.helperType]):Ae[_e.name]&&Z.push(Ae[_e.name]);for(var yt=0;yt<Ae._global.length;yt++){var wt=Ae._global[yt];wt.pred(_e,this)&&it(Z,wt.val)==-1&&Z.push(wt.val)}return Z},getStateAfter:function(S,K){var Z=this.doc;return S=Nu(Z,S??Z.first+Z.size-1),ti(this,S+1,K).state},cursorCoords:function(S,K){var Z,Ae=this.doc.sel.primary();return S==null?Z=Ae.head:typeof S=="object"?Z=ei(this.doc,S):Z=S?Ae.from():Ae.to(),un(this,Z,K||"page")},charCoords:function(S,K){return Tn(this,ei(this.doc,S),K||"page")},coordsChar:function(S,K){return S=Jt(this,S,K||"page"),To(this,S.left,S.top)},lineAtHeight:function(S,K){return S=Jt(this,{top:S,left:0},K||"page").top,xt(t Line truncated
`,rr=Ge(Ln,Qt)?"w":Zt&&Ln==`
`?"n":!Zt||/\s/.test(Ln)?null:"p";if(Zt&&!bn&&!rr&&(rr="s"),wt&&wt!=rr){E<0&&(E=1,yt(),g.sticky="after");break}if(rr&&(wt=rr),E>0&&!yt(!bn))break}var Jn=Rc(A,g,Z,Ae,!0);return Pi(Z,Jn)&&(Jn.hitSide=!0),Jn}function oh(A,g,E,S){var K=A.doc,Z=g.left,Ae;if(S=="page"){var _e=Math.min(A.display.wrapper.clientHeight,Ft(A).innerHeight||K(A).documentElement.clientHeight),Ie=Math.max(_e-.5*Nl(A.display),3);Ae=(E>0?g.bottom:g.top)+E*Ie}else S=="line"&&(Ae=E>0?g.bottom+3:g.top-3);for(var Ue;Ue=To(A,Z,Ae),!!Ue.outside;){if(E<0?Ae<=0:Ae>=K.height){Ue.hitSide=!0;break}Ae+=E*5}return Ue}var Uo=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Uo.prototype.init=function(A){var g=this,E=this,S=E.cm,K=E.div=A.lineDiv;K.contentEditable=!0,ff(K,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(_e){for(var Ie=_e.target;Ie;Ie=Ie.parentNode){if(Ie==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Ie.className))break}return!1}je(K,"paste",function(_e){!Z(_e)||dt(S,_e)||XA(_e,S)||y<=11&&setTimeout(Ti(S,function(){return g.updateFromDOM()}),20)}),je(K,"compositionstart",function(_e){g.composing={data:_e.data,done:!1}}),je(K,"compositionupdate",function(_e){g.composing||(g.composing={data:_e.data,done:!1})}),je(K,"compositionend",function(_e){g.composing&&(_e.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),je(K,"touchstart",function(){return E.forceCompositionEnd()}),je(K,"input",function(){g.composing||g.readFromDOMSoon()});function Ae(_e){if(!(!Z(_e)||dt(S,_e))){if(S.somethingSelected())Jl({lineWise:!1,text:S.getSelections()}),_e.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var Ie=kh(S);Jl({lineWise:!0,text:Ie.text}),_e.type=="cut"&&S.operation(function(){S.setSelections(Ie.ranges,0,Lt),S.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ue=mu.text.join(`
`);if(_e.clipboardData.setData("Text",Ue),_e.clipboardData.getData("Text")==Ue){_e.preventDefault();return}}var yt=Th(),wt=yt.firstChild;ff(wt),S.display.lineSpace.insertBefore(yt,S.display.lineSpace.firstChild),wt.value=mu.text.join(`
`);var Zt=Ne(gt(K));He(wt),setTimeout(function(){S.display.lineSpace.removeChild(yt),Zt.focus(),Zt==K&&E.showPrimarySelection()},50)}}je(K,"copy",Ae),je(K,"cut",Ae)},Uo.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},Uo.prototype.prepareSelection=function(){var A=wc(this.cm,!1);return A.focus=Ne(gt(this.div))==this.div,A},Uo.prototype.showSelection=function(A,g){!A||!this.cm.display.view.length||((A.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(A))},Uo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Uo.prototype.showPrimarySelection=function(){var A=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),K=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||K.line<g.display.viewFrom){A.removeAllRanges();return}var Z=wl(g,A.anchorNode,A.anchorOffset),Ae=wl(g,A.focusNode,A.focusOffset);if(!(Z&&!Z.bad&&Ae&&!Ae.bad&&ar(la(Z,Ae),S)==0&&ar(as(Z,Ae),K)==0)){var _e=g.display.view,Ie=S.line>=g.display.viewFrom&&id(g,S)||{node:_e[0].measure.map[2],offset:0},Ue=K.line<g.display.viewTo&&id(g,K);if(!Ue){var yt=_e[_e.length-1].measure,wt=yt.maps?yt.maps[yt.maps.length-1]:yt.map;Ue={node:wt[wt.length-1],offset:wt[wt.length-2]-wt[wt.length-3]}}if(!Ie||!Ue){A.removeAllRanges();return}var Zt=A.rangeCount&&A.getRangeAt(0),Qt;try{Qt=Ze(Ie.node,Ie.offset,Ue.offset,Ue.node)}catch{}Qt&&(!i&&g.state.focused?(A.collapse(Ie.node,Ie.offset),Qt.collapsed||(A.removeAllRanges(),A.addRange(Qt))):(A.removeAllRanges(),A.addRange(Qt)),Zt&&A.anchorNode==null?A.addRange(Zt):i&&this.startGracePeriod()),this.rememberSelection()}},Uo.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)},Uo.prototype.showMultipleSelections=function(A){Ke(this.cm.display.cursorDiv,A.cursors),Ke(this.cm.display.selectionDiv,A.selection)},Uo.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},Uo.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var g=A.getRangeAt(0).commonAncestorContainer;return tt(this.div,g)},Uo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Ne(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Uo.prototype.blur=function(){this.div.blur()},Uo.prototype.getField=function(){return this.div},Uo.prototype.supportsTouch=function(){return!0},Uo.prototype.receivedFocus=function(){var A=this,g=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):Ss(this.cm,function(){return g.cm.curOp.selectionChanged=!0});function E(){g.cm.state.focused&&(g.pollSelection(),g.polling.set(g.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Uo.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},Uo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),g=this.cm;if(oe&&O&&this.cm.display.gutterSpecs.length&&od(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=wl(g,A.anchorNode,A.anchorOffset),S=wl(g,A.focusNode,A.focusOffset);E&&S&&Ss(g,function(){ba(g.doc,Pa(E,S),Lt),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Uo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,g=A.display,E=A.doc.sel.primary(),S=E.from(),K=E.to();if(S.ch==0&&S.line>A.firstLine()&&(S=dn(S.line-1,Kr(A.doc,S.line-1).length)),K.ch==Kr(A.doc,K.line).text.length&&K.line<A.lastLine()&&(K=dn(K.line+1,0)),S.line<g.viewFrom||K.line>g.viewTo-1)return!1;var Z,Ae,_e;S.line==g.viewFrom||(Z=vA(A,S.line))==0?(Ae=Ye(g.view[0].line),_e=g.view[0].node):(Ae=Ye(g.view[Z].line),_e=g.view[Z-1].node.nextSibling);var Ie=vA(A,K.line),Ue,yt;if(Ie==g.view.length-1?(Ue=g.viewTo-1,yt=g.lineDiv.lastChild):(Ue=Ye(g.view[Ie+1].line)-1,yt=g.view[Ie+1].node.previousSibling),!_e)return!1;for(var wt=A.doc.splitLines(Wm(A,_e,yt,Ae,Ue)),Zt=Wa(A.doc,dn(Ae,0),dn(Ue,Kr(A.doc,Ue).text.length));wt.length>1&&Zt.length>1;)if(cr(wt)==cr(Zt))wt.pop(),Zt.pop(),Ue--;else if(wt[0]==Zt[0])wt.shift(),Zt.shift(),Ae++;else break;for(var Qt=0,bn=0,Ln=wt[0],rr=Zt[0],Jn=Math.min(Ln.length,rr.length);Qt<Jn&&Ln.charCodeAt(Qt)==rr.charCodeAt(Qt);)++Qt;for(var _r=cr(wt),mr=cr(Zt),Or=Math.min(_r.length-(wt.length==1?Qt:0),mr.length-(Zt. Line truncated
`),He(K))}else return;Ae.type=="cut"&&(S.state.cutIncoming=+new Date)}}je(K,"cut",Z),je(K,"copy",Z),je(A.scroller,"paste",function(Ae){if(!(wu(A,Ae)||dt(S,Ae))){if(!K.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var _e=new Event("paste");_e.clipboardData=Ae.clipboardData,K.dispatchEvent(_e)}}),je(A.lineSpace,"selectstart",function(Ae){wu(A,Ae)||nn(Ae)}),je(K,"compositionstart",function(){var Ae=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:Ae,range:S.markText(Ae,S.getCursor("to"),{className:"CodeMirror-composing"})}}),je(K,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Da.prototype.createField=function(A){this.wrapper=Th(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;ff(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Da.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var A=this.cm,g=A.display,E=A.doc,S=wc(A);if(A.options.moveInputWithCursor){var K=un(A,E.sel.primary().head,"div"),Z=g.wrapper.getBoundingClientRect(),Ae=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,K.top+Ae.top-Z.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,K.left+Ae.left-Z.left))}return S},Da.prototype.showSelection=function(A){var g=this.cm,E=g.display;Ke(E.cursorDiv,A.cursors),Ke(E.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},Da.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var g=this.cm;if(this.resetting=!0,g.somethingSelected()){this.prevInput="";var E=g.getSelection();this.textarea.value=E,g.state.focused&&He(this.textarea),p&&y>=9&&(this.hasSelection=E)}else A||(this.prevInput=this.textarea.value="",p&&y>=9&&(this.hasSelection=null));this.resetting=!1}},Da.prototype.getField=function(){return this.textarea},Da.prototype.supportsTouch=function(){return!1},Da.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Ne(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Da.prototype.blur=function(){this.textarea.blur()},Da.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Da.prototype.receivedFocus=function(){this.slowPoll()},Da.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},Da.prototype.fastPoll=function(){var A=!1,g=this;g.pollingFast=!0;function E(){var S=g.poll();!S&&!A?(A=!0,g.polling.set(60,E)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,E)},Da.prototype.poll=function(){var A=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||co(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var K=E.value;if(K==S&&!g.somethingSelected())return!1;if(p&&y>=9&&this.hasSelection===K||V&&/[\uf700-\uf7ff]/.test(K))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var Z=K.charCodeAt(0);if(Z==8203&&!S&&(S="​"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var Ae=0,_e=Math.min(S.length,K.length);Ae<_e&&S.charCodeAt(Ae)==K.charCodeAt(Ae);)++Ae;return Ss(g,function(){qf(g,K.slice(Ae),S.length-Ae,null,A.composing?"*compose":null),K.length>1e3||K.indexOf(`
`)>-1?E.value=A.prevInput="":A.prevInput=K,A.composing&&(A.composing.range.clear(),A.composing.range=g.markText(A.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Da.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Da.prototype.onKeyPress=function(){p&&y>=9&&(this.hasSelection=null),this.fastPoll()},Da.prototype.onContextMenu=function(A){var g=this,E=g.cm,S=E.display,K=g.textarea;g.contextMenuPending&&g.contextMenuPending();var Z=Su(E,A),Ae=S.scroller.scrollTop;if(!Z||F)return;var _e=E.options.resetSelectionOnContextMenu;_e&&E.doc.sel.contains(Z)==-1&&Ti(E,ba)(E.doc,Pa(Z),Lt);var Ie=K.style.cssText,Ue=g.wrapper.style.cssText,yt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(A.clientY-yt.top-5)+"px; left: "+(A.clientX-yt.left-5)+`px;
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var wt;x&&(wt=K.ownerDocument.defaultView.scrollY),S.input.focus(),x&&K.ownerDocument.defaultView.scrollTo(null,wt),S.input.reset(),E.somethingSelected()||(K.value=g.prevInput=" "),g.contextMenuPending=Qt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function Zt(){if(K.selectionStart!=null){var Ln=E.somethingSelected(),rr="​"+(Ln?K.value:"");K.value="⇚",K.value=rr,g.prevInput=Ln?"":"​",K.selectionStart=1,K.selectionEnd=rr.length,S.selForContextMenu=E.doc.sel}}function Qt(){if(g.contextMenuPending==Qt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ue,K.style.cssText=Ie,p&&y<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=Ae),K.selectionStart!=null)){(!p||p&&y<9)&&Zt();var Ln=0,rr=function(){S.selForContextMenu==E.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&g.prevInput=="​"?Ti(E,Kl)(E):Ln++<10?S.detectingSelectAll=setTimeout(rr,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(rr,200)}}if(p&&y>=9&&Zt(),fe){on(A);var bn=function(){Xe(window,"mouseup",bn),setTimeout(Qt,20)};je(window,"mouseup",bn)}else setTimeout(Qt,50)},Da.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},Da.prototype.setUneditable=function(){},Da.prototype.needsContentAttribute=!1;function dm(A,g){if(g=g?Fe(g):{},g.value=A.value,!g.tabindex&&A.tabIndex&&(g.tabindex=A.tabIndex),!g.placeholder&&A.placeholder&&(g.placeholder=A.placeholder),g.autofocus==null){var E=Ne(gt(A));g.autofocus=E==A||A.getAttribute("autofocus")!=null&&E==document.body}function S(){A.value=_e.getValue()}var K;if(A.form&&(je(A.form,"submit",S),!g.leaveSubmitMethodAlone)){var Z=A.form;K=Z.submit;try{var Ae=Z.submit=function(){S(),Z.submit=K,Z.submit(),Z.submit=Ae}}catch{}}g.finishInit=function(Ie){Ie.save=S,Ie.getTextArea=function(){return A},Ie.toTextArea=function(){Ie.toTextArea=isNaN,S(),A.parentNode.removeChild(Ie.getWrapperElement()),A.style.display="",A.form&&(Xe(A.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=K))}},A.style.display="none";var _e=Zo(function(Ie){return A.parentNode.insertBefore(Ie,A.nextSibling)},g);return _e}function Vf(A){A.off=Xe,A.on=je,A.wheelEventPixels=xA,A.Doc=qt,A.splitLines=Qr,A.countColumn=Pe,A.findColumn=yn,A.isWordChar=tr,A.Pass=pt,A.signal=At,A.Line=Ys,A.changeEnd=$a,A.scrollbarModel=Xc,A.Pos=dn,A.cmpPos=ar,A.modes=Zi,A.mimeModes=Ts,A.resolveMode=ps,A.getMode=bi,A.modeExtensions=Il,A.extendMode=kl,A.copyState=io,A.startState=ol,A.innerMode=vl,A.commands=Tu,A.keyMap=fo,A.keyName=pu,A.isModifierKey=xl,A.lookupKey=rs,A.normalizeKeyMap=Ho,A.StringStream=bo,A.SharedTextMarker=Bt,A.TextMarker=ft,A.LineWidget=Qe,A.e_preventDefault=nn,A.e_stopPropagation=Dn,A.e_stop=on,A.addClass=we,A.contains=tt,A.rmClass=me,A.keyNames=Bi}Xl(Zo),Kd(Zo);var gu="iter insert remove copy getEditor constructor".split(" ");for(var pf in qt.prototype)qt.prototype.hasOwnProperty(pf)&&it(gu,pf)<0&&(Zo.prototype[pf]=function(A){return function(){return A.apply(this.doc,arguments)}}(qt.prototype[pf]));return jt(qt),Zo.inputStyles={textarea:Da,contenteditable:Uo},Zo.defineMode=function(A){!Zo.defaults.mode&&A!="null"&&(Zo.defaults.mode=A),xs.apply(this,arguments)},Zo.defineMIME=aa,Zo.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),Zo.defineMIME("text/plain","null"),Zo.defineExtension=function(A,g){Zo.prototype[A]=g},Zo.defineDocExtension=function(A,g){qt.prototype[A]=g},Zo.fromTextArea=dm,Vf(Zo),Zo.version="5.65.19",Zo})}(Ob)),Ob.exports}var noe=jx();const fp=yl(noe);var G9={exports:{}},Q9;function roe(){return Q9||(Q9=1,function(n,e){(function(t){t(jx())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,p=i.json||o,y=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,O=function(){function Ye(xo){return{type:xo,style:"keyword"}}var xt=Ye("keyword a"),vn=Ye("keyword b"),Hn=Ye("keyword c"),dn=Ye("keyword d"),ar=Ye("operator"),Pi={type:"atom",style:"atom"};return{if:Ye("if"),while:xt,with:xt,else:vn,do:vn,try:vn,finally:vn,return:dn,break:dn,continue:dn,new:Ye("new"),delete:Hn,void:Hn,throw:Hn,debugger:Ye("debugger"),var:Ye("var"),const:Ye("var"),let:Ye("var"),function:Ye("function"),catch:Ye("catch"),for:Ye("for"),switch:Ye("switch"),case:Ye("case"),default:Ye("default"),in:ar,typeof:ar,instanceof:ar,true:Pi,false:Pi,null:Pi,undefined:Pi,NaN:Pi,Infinity:Pi,this:Ye("this"),class:Ye("class"),super:Ye("atom"),yield:Hn,export:Ye("export"),import:Ye("import"),extends:Hn,await:Hn}}(),P=/[+\-*&%=<>!?|~^@]/,F=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function j(Ye){for(var xt=!1,vn,Hn=!1;(vn=Ye.next())!=null;){if(!xt){if(vn=="/"&&!Hn)return;vn=="["?Hn=!0:Hn&&vn=="]"&&(Hn=!1)}xt=!xt&&vn=="\\"}}var N,q;function $(Ye,xt,vn){return N=Ye,q=vn,xt}fun Line truncated
${B}`),j].join(`
${o}`)}return y}(n,"",0)}var Uv={exports:{}},aoe=Uv.exports,H9;function loe(){return H9||(H9=1,function(n,e){(function(t,r){r(e)})(aoe,function(t){const r={isWhiteSpace:function(we){return we===" "||we===" "||we==="\uFEFF"||we>=" "&&we<="\r"||we===" "||we>=" "&&we<=" "||we==="\u2028"||we==="\u2029"||we===" "||we===" "||we===" "},isWhiteSpaceJSON:function(we){return we===" "||we===" "||we===`
`||we==="\r"},isLineTerminator:function(we){return we===`
`||we==="\r"||we==="\u2028"||we==="\u2029"},isLineTerminatorJSON:function(we){return we===`
`||we==="\r"},isIdentifierStart:function(we){return we==="$"||we==="_"||we>="A"&&we<="Z"||we>="a"&&we<="z"||we>="€"&&r.NonAsciiIdentifierStart.test(we)},isIdentifierPart:function(we){return we==="$"||we==="_"||we>="A"&&we<="Z"||we>="a"&&we<="z"||we>="0"&&we<="9"||we>="€"&&r.NonAsciiIdentifierPart.test(we)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
`,r:"\r",t:" ",v:"\v","/":"/"},y=Object.hasOwn,x={};function B(Ne,we){(typeof Ne!="string"||!(Ne instanceof String))&&(Ne=String(Ne));const De=we.mode==="json5",He=we.ignoreBOM,_t=we.ignoreComments||we.mode==="cjson"||De,Yt=we.ignoreTrailingCommas||De,gt=we.ignoreProtoKey,Ft=we.ignorePrototypeKeys,Pt=we.allowSingleQuotedStrings||De,Fe=we.allowDuplicateObjectKeys,Pe=we.reviver,Be=we.tokenize,it=we.rawTokens,Ct=we.tokenLocations,pt=we.tokenPaths,Lt=De?r.isLineTerminator:r.isLineTerminatorJSON,tn=De?r.isWhiteSpace:r.isWhiteSpaceJSON,Rt=Ne.length;let yn=0,Yn=0,en=0;const cr=[];let kn,hn,er;if(Be){let qe=null,Xe,At;kn=function(){if(qe!==null)throw Error("internal error, token overlap");Xe=yn+1,At=en-Yn+1,qe=en},hn=function(dt,Gt){if(qe!==en){const Wt={type:dt};it&&(Wt.raw=Ne.substr(qe,en-qe)),Gt!==void 0&&(Wt.value=Gt),Ct&&(Wt.location={start:{column:At,line:Xe,offset:qe}}),pt&&(Wt.path=er.slice()),cr.push(Wt)}return qe=null,Gt},pt&&(er=[])}function hr(){let qe;return en<Rt?qe=`Unexpected token ${JSON.stringify(Ne[en])}`:qe="Unexpected end of input",qe}function yr(qe){const Xe=en-Yn+1;++yn;const At=Ee(qe,Ne,en,yn,Xe),dt=SyntaxError(At.message);return dt.reason=qe,dt.excerpt=At.excerpt,dt.pointer=At.pointer,dt.location={start:{column:Xe,line:yn,offset:en}},dt}function tr(qe){throw qe||(qe=hr()),yr(qe)}function Ge(qe){qe==="\r"&&Ne[en]===`
`&&++en,Yn=en,++yn}function ce(){if(en<Rt){kn==null||kn();const qe=Ne[en++];if(qe==='"'||qe==="'"&&Pt){const Xe=f(qe);return hn==null||hn("literal",Xe),Xe}if(qe==="{")return hn==null||hn("symbol","{"),nr();if(qe==="[")return hn==null||hn("symbol","["),$e();if(qe==="-"||qe==="."||l(qe)||De&&(qe==="+"||qe==="I"||qe==="N")){const Xe=ae();return hn==null||hn("literal",Xe),Xe}if(qe==="n")return sn("null"),hn==null||hn("literal",null),null;if(qe==="t")return sn("true"),hn==null||hn("literal",!0),!0;if(qe==="f")return sn("false"),hn==null||hn("literal",!1),!1;--en,hn==null||hn();return}}function pe(){let qe;if(en<Rt){kn==null||kn();const Xe=Ne[en++];if(Xe==='"'||Xe==="'"&&Pt){const At=f(Xe);return hn==null||hn("literal",At),At}if(Xe==="{")return hn==null||hn("symbol","{"),nr();if(Xe==="[")return hn==null||hn("symbol","["),$e();if(Xe==="."||l(Xe)){const At=ae();return hn==null||hn("literal",At),At}if(De&&r.isIdentifierStart(Xe)||Xe==="\\"&&Ne[en]==="u"){const At=en-1;if(qe=Ce(),qe===void 0){en=At,hn==null||hn();return}return hn==null||hn("literal",qe),qe}--en,hn==null||hn();return}}function rt(){o(Ne)&&(kn==null||kn(),++en,hn==null||hn("bom"))}function St(){let qe;function Xe(){qe||(qe=!0,--en,kn(),++en)}function At(){qe&&(qe=!1,hn("whitespace"))}for(;en<Rt;){const dt=Ne[en++];if(Lt(dt))kn&&Xe(),Ge(dt);else if(tn(dt))kn&&Xe();else if(dt==="/"&&_t&&(Ne[en]==="/"||Ne[en]==="*"))kn&&(--en,At(),kn(),++en),Ht(Ne[en++]==="*"),hn==null||hn("comment");else{--en;break}}hn&&At()}function Ht(qe){for(;en<Rt;){const Xe=Ne[en++];if(Lt(Xe)){if(!qe){--en;return}Ge(Xe)}else if(Xe==="*"&&qe&&Ne[en]==="/"){++en;return}}qe&&tr("Unclosed multiline comment")}function sn(qe){const Xe=en;for(let At=1,dt=qe.length;At<dt;++At)(en>=Rt||qe[At]!==Ne[en])&&(en=Xe-1,tr()),++en}function nr(){let qe={},Xe=!1;for(;en<Rt;){St();const At=pe();Fe===!1&&y(qe,At)&&tr(`Duplicate key: "${At}"`),St(),kn==null||kn();let dt=Ne[en++];if(hn==null||hn("symbol",dt),dt==="}"&&At===void 0)return!Yt&&Xe&&(--en,tr("Trailing comma in object")),qe;if(dt===":"&&At!==void 0){St(),er==null||er.push(At);let Gt=ce();if(er==null||er.pop(),Gt===void 0&&tr(`No value found for key "${At}"`),typeof At!="string"&&(!De||typeof At!="number")&&tr(`Wrong key type: "${At}"`),Ft&&(At in x||x[At]!=null)||gt&&At==="__proto__"||(Pe&&(Gt=Pe(At,Gt)),Gt!==void 0&&(Xe=!0,At==="__proto__"?qe=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Gt)}}`),qe):qe[At]=Gt)),St(),kn==null||kn(),dt=Ne[en++],hn==null||hn("symbol",dt),dt!==","){if(dt==="}")return qe;tr()}}else--en,tr()}tr()}function $e(){const qe=[];for(;en<Rt;){St(),er==null||er.push(qe.length);let Xe=ce();er==null||er.pop(),St(),kn==null||kn();const At=Ne[en++];if(hn==null||hn("symbol",At),Xe!==void 0&&(Pe&&(Xe=Pe(String(qe.length),Xe)),Xe===void 0?(++qe.length,Xe=!0):qe.push(Xe)),At===",")Xe===void 0&&tr("Elisions are not supported");else{if(At==="]")return!Yt&&Xe===void 0&&qe.length&&(--en,tr("Trailing comma in array")),qe;--en,tr()}}}function ae(){--en;let qe=en,Xe=Ne[en++];const At=function(dt){const Gt=Ne.substr(qe,en-qe);let Wt;if(dt?Wt=Number.parseInt(Gt.replace(/^0o?/,""),8):Wt=Number(Gt),Number.isNaN(Wt))--en,tr(`Bad numeric literal - "${Ne.substr(qe,en-qe+1)}"`);else if(!De&&!Gt.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--en,tr(`Non-json numeric literal - "${Ne.substr(qe,en-qe+1)}"`);else return Wt};if((Xe==="-"||Xe==="+"&&De)&&(Xe=Ne[en++]),Xe==="N"&&De)return sn("NaN"),Number.NaN;if(Xe==="I"&&De)return sn("Infinity"),At();if(Xe>="1"&&Xe<="9"){for(;en<Rt&&l(Ne[en]);)++en;Xe=Ne[en++]}if(Xe==="0"){Xe=Ne[en++];const dt=Xe==="o"||Xe==="O"||s(Xe),Gt=Xe==="x"||Xe==="X";if(De&&(dt||Gt)){for(;en<Rt&&(Gt?i:s)(Ne[en]);)++en;let Wt=1;return Ne[qe]==="-"?(Wt=-1,++qe):Ne[qe]==="+"&&++qe,Wt*At(dt)}}if(Xe==="."){for(;en<Rt&&l(Ne[en]);)++en;Xe=Ne[en++]}if(Xe==="e"||Xe==="E"){for(Xe=Ne[en++],(Xe==="-"||Xe==="+")&&++en;en<Rt&&l(Ne[en]);)++en;Xe=Ne[en++]}return--en,At()}function Ce(){--en;let qe="";for(;en<Rt;){let Xe=Ne[en++];if(Xe==="\\"&&Ne[en]==="u"&&i(Ne[en+1])&&i(Ne[en+2])&&i(Ne[en+3])&&i(Ne[en+4])&&(Xe=String.fromCharCode(Number.parseInt(Ne.substr(en+1,4),16)),en+=5),qe.length)if(r.isIdentifierPart(Xe))qe+=Xe;else return--en,qe;else if(r.isIdentifierStart(Xe))qe+=Xe;else return}tr()}function f(qe){let Xe="";for(;en<Rt;){let At=Ne[en++];if(At===qe)return Xe;if(At==="\\")if(en>=Rt&&tr(),At=Ne[en++],p[At]&&(De||At!=="v"&&(At!=="'"||Pt)))Xe+=p[At];else if(De&&Lt(At))Ge(At);else if(At==="u"||At==="x"&&De){const dt=At==="u"?4:2;for(let Gt=0;Gt<dt;++Gt)en>=Rt&&tr(),i(Ne[en])||tr("Bad escape sequence"),en++;Xe+=String.fromCharCode(Number.parseInt(Ne.substr(en-dt,dt),16))}else if(De&&s(At)){let dt;At<"4"&&s(Ne[en])&&s(Ne[en+1])?dt=3:s(Ne[en])?dt=2:dt=1,en+=dt-1,Xe+=String.fromCharCode(Number.parseInt(Ne.substr(en-dt,dt),8))}else De?Xe+=At:(--en,tr());else Lt(At)?tr():(!De&&At.charCodeAt(0)<32&&(--en,tr("Unexpected control character")),Xe+=At)}tr()}He&&rt(),St();let je=ce();if(je!==void 0||en<Rt){if(St(),en>=Rt)return Pe&&(je=P Line truncated
${gt}
${Pt}
${Ne}`):Ft=`Parse error in JSON input:
${gt}
${Ne}`,{message:Ft,excerpt:gt,pointer:Pt}}function me(Ne,we){let De=W(we);const He=ie(Ne,De)||he(Ne,De)||fe(Ne,De);let _t,Yt,gt;He?(_t=He.offset,Yt=He.line,gt=He.column,De=He.reason):_t=0,we.reason=De;const Ft=Ee(De,Ne,_t,Yt,gt);return we.message=Ft.message,we.excerpt=Ft.excerpt,Ft.pointer&&(we.pointer=Ft.pointer,we.location={start:{column:gt,line:Yt,offset:_t}}),we}function Se(Ne,we){try{return JSON.parse(Ne,we)}catch(De){const He=me(Ne,De);if(De.location)throw He;return O(Ne,we)}}const Ke=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function st(Ne){return Ne.ignoreBOM||Ne.ignoreComments||Ne.ignoreTrailingCommas||Ne.allowSingleQuotedStrings||Ne.allowDuplicateObjectKeys===!1||Ne.ignoreProtoKey||Ne.ignorePrototypeKeys||Ne.mode==="cjson"||Ne.mode==="json5"||Ke||xe}function Ze(Ne){if(typeof Ne=="function")return Ne;if(Ne)return Ne.reviver}function tt(Ne,we){return we||(we={}),st(we)?O(Ne,we):Se(Ne,Ze(we))}t.parse=tt,t.tokenize=P,t.pathToPointer=j,t.pointerToPath=q,t.parseNative=Se,t.parseCustom=O,t.getErrorTexts=Ee,Object.defineProperty(t,"__esModule",{value:!0})})}(Uv,Uv.exports)),Uv.exports}var uoe=loe(),Ib={exports:{}},Aoe=Ib.exports,Z9;function coe(){return Z9||(Z9=1,function(n,e){(function(t,r){n.exports=r()})(Aoe,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Pe,Be){return Be={exports:{}},Pe(Be,Be.exports),Be.exports}var i=r(function(Pe){function Be(){var it=0,Ct=1,pt=2,Lt=3,tn=4,Rt=5,yn=6,Yn=7,en=8,cr=9,kn=10,hn=11,er=12,hr=13,yr=14,tr=15,Ge=16,ce=17,pe=0,rt=1,St=2,Ht=3,sn=4;function nr(f,je){return 55296<=f.charCodeAt(je)&&f.charCodeAt(je)<=56319&&56320<=f.charCodeAt(je+1)&&f.charCodeAt(je+1)<=57343}function $e(f,je){je===void 0&&(je=0);var qe=f.charCodeAt(je);if(55296<=qe&&qe<=56319&&je<f.length-1){var Xe=qe,At=f.charCodeAt(je+1);return 56320<=At&&At<=57343?(Xe-55296)*1024+(At-56320)+65536:Xe}if(56320<=qe&&qe<=57343&&je>=1){var Xe=f.charCodeAt(je-1),At=qe;return 55296<=Xe&&Xe<=56319?(Xe-55296)*1024+(At-56320)+65536:At}return qe}function ae(f,je,qe){var Xe=[f].concat(je).concat([qe]),At=Xe[Xe.length-2],dt=qe,Gt=Xe.lastIndexOf(yr);if(Gt>1&&Xe.slice(1,Gt).every(function(nn){return nn==Lt})&&[Lt,hr,ce].indexOf(f)==-1)return St;var Wt=Xe.lastIndexOf(tn);if(Wt>0&&Xe.slice(1,Wt).every(function(nn){return nn==tn})&&[er,tn].indexOf(At)==-1)return Xe.filter(function(nn){return nn==tn}).length%2==1?Ht:sn;if(At==it&&dt==Ct)return pe;if(At==pt||At==it||At==Ct)return dt==yr&&je.every(function(nn){return nn==Lt})?St:rt;if(dt==pt||dt==it||dt==Ct)return rt;if(At==yn&&(dt==yn||dt==Yn||dt==cr||dt==kn))return pe;if((At==cr||At==Yn)&&(dt==Yn||dt==en))return pe;if((At==kn||At==en)&&dt==en)return pe;if(dt==Lt||dt==tr)return pe;if(dt==Rt)return pe;if(At==er)return pe;var jt=Xe.indexOf(Lt)!=-1?Xe.lastIndexOf(Lt)-1:Xe.length-2;return[hr,ce].indexOf(Xe[jt])!=-1&&Xe.slice(jt+1,-1).every(function(nn){return nn==Lt})&&dt==yr||At==tr&&[Ge,ce].indexOf(dt)!=-1?pe:je.indexOf(tn)!=-1?St:At==tn&&dt==tn?pe:rt}this.nextBreak=function(f,je){if(je===void 0&&(je=0),je<0)return 0;if(je>=f.length-1)return f.length;for(var qe=Ce($e(f,je)),Xe=[],At=je+1;At<f.length;At++)if(!nr(f,At-1)){var dt=Ce($e(f,At));if(ae(qe,Xe,dt))return At;Xe.push(dt)}return f.length},this.splitGraphemes=function(f){for(var je=[],qe=0,Xe;(Xe=this.nextBreak(f,qe))<f.length;)je.push(f.slice(qe,Xe)),qe=Xe;return qe<f.length&&je.push(f.slice(qe)),je},this.iterateGraphemes=function(f){var je=0,qe={next:(function(){var Xe,At;return(At=this.nextBreak(f,je))<f.length?(Xe=f.slice(je,At),je=At,{value:Xe,done:!1}):je<f.length?(Xe=f.slice(je),je=f.length,{value:Xe,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(qe[Symbol.iterator]=function(){return qe}),qe},this.countGraphemes=function(f){for(var je=0,qe=0,Xe;(Xe=this.nextBreak(f,qe))<f.length;)qe=Xe,je++;return qe<f.length&&je++,je};function Ce(f){return 1536<=f&&f<=1541||f==1757||f==1807||f==2274||f==3406||f==69821||70082<=f&&f<=70083||f==72250||72326<=f&&f<=72329||f==73030?er:f==13?it:f==10?Ct:0<=f&&f<=9||11<=f&&f<=12||14<=f&&f<=31||127<=f&&f<=159||f==173||f==1564||f==6158||f==8203||8206<=f&&f<=8207||f==8232||f==8233||8234<=f&&f<=8238||8288<=f&&f<=8292||f==8293||8294<=f&&f<=8303||55296<=f&&f<=57343||f==65279||65520<=f&&f<=65528||65529<=f&&f<=65531||113824<=f&&f<=113827||119155<=f&&f<=119162||f==917504||f==917505||917506<=f&&f<=917535||917632<=f&&f<=917759||918e3<=f&&f<=921599?pt:768<=f&&f<=879||1155<=f&&f<=1159||1160<=f&&f<=1161||1425<=f&&f<=1469||f==1471||1473<=f&&f<=1474||1476<=f&&f<=1477||f==1479||1552<=f&&f<=1562||1611<=f&&f<=1631||f==1648||1750<=f&&f<=1756||1759<=f&&f<=1764||1767<=f&&f<=1768||1770<=f&&f<=1773||f==1809||1840<=f&&f<=1866||1958<=f&&f<=1968||2027<=f&&f<=2035||2070<=f&&f<=2073||2075<=f&&f<=2083||2085<=f&&f<=2087||2089<=f&&f<=2093||2137<=f&&f<=2139||2260<=f&&f<=2273||2275<=f&&f<=2306||f==2362||f==2364||2369<=f&&f<= Line truncated
`)}var en={extraLines:2,tabSize:4},cr=function(hn,er,hr,yr){yr=Rt({},en,yr);var tr=hn.split(/\r\n?|\n|\f/),Ge=Math.max(1,er-yr.extraLines)-1,ce=Math.min(er+yr.extraLines,tr.length),pe=String(ce).length,rt=Yn(tr,Ge,er,pe,yr),St=yn(tr[er-1].substring(0,hr-1),er,pe,yr),Ht=pt(" ",St.length)+"^",sn=Yn(tr,er,ce,pe,yr);return[rt,Ht,sn].filter(Boolean).join(`
`)};return cr})}),y=new Error().stack,x=function(Pe){var Be=Object.create(SyntaxError.prototype);return Object.assign(Be,Pe,{name:"SyntaxError"}),Object.defineProperty(Be,"stack",{get:function(){return y?y.replace(/^(.+\n){1,3}/,String(Be)+`
`):""}}),Be},B=function(Pe,Be,it,Ct,pt){throw x({message:Ct?Pe+`
`+p(Be,Ct,pt):Pe,rawMessage:Pe,source:it,line:Ct,column:pt})},O={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Be){for(var it=arguments.length,Ct=Array(it>1?it-1:0),pt=1;pt<it;pt++)Ct[pt-1]=arguments[pt];return"Unexpected token <"+Be+"> at "+Ct.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Be){for(var it=arguments.length,Ct=Array(it>1?it-1:0),pt=1;pt<it;pt++)Ct[pt-1]=arguments[pt];return"Unexpected symbol <"+Be+"> at "+Ct.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},j={"{":F.LEFT_BRACE,"}":F.RIGHT_BRACE,"[":F.LEFT_BRACKET,"]":F.RIGHT_BRACKET,":":F.COLON,",":F.COMMA},N={true:F.TRUE,false:F.FALSE,null:F.NULL},q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(Pe){return Pe>="1"&&Pe<="9"}function V(Pe){return Pe>="0"&&Pe<="9"}function ne(Pe){return V(Pe)||Pe>="a"&&Pe<="f"||Pe>="A"&&Pe<="F"}function W(Pe){return Pe==="e"||Pe==="E"}function ie(Pe,Be,it,Ct){var pt=Pe.charAt(Be);if(pt==="\r")Be++,it++,Ct=1,Pe.charAt(Be)===`
`&&Be++;else if(pt===`
`)Be++,it++,Ct=1;else if(pt===" "||pt===" ")Be++,Ct++;else return null;return{index:Be,line:it,column:Ct}}function he(Pe,Be,it,Ct){var pt=Pe.charAt(Be);return pt in j?{type:j[pt],line:it,column:Ct+1,index:Be+1,value:null}:null}function fe(Pe,Be,it,Ct){for(var pt in N)if(N.hasOwnProperty(pt)&&Pe.substr(Be,pt.length)===pt)return{type:N[pt],line:it,column:Ct+pt.length,index:Be+pt.length,value:pt};return null}function Ee(Pe,Be,it,Ct){for(var pt=Be,Lt=q._START_;Be<Pe.length;){var tn=Pe.charAt(Be);switch(Lt){case q._START_:{if(tn==='"')Be++,Lt=q.START_QUOTE_OR_CHAR;else return null;break}case q.START_QUOTE_OR_CHAR:{if(tn==="\\")Be++,Lt=q.ESCAPE;else{if(tn==='"')return Be++,{type:F.STRING,line:it,column:Ct+Be-pt,index:Be,value:Pe.slice(pt,Be)};Be++}break}case q.ESCAPE:{if(tn in $){if(Be++,tn==="u")for(var Rt=0;Rt<4;Rt++){var yn=Pe.charAt(Be);if(yn&&ne(yn))Be++;else return null}Lt=q.START_QUOTE_OR_CHAR}else return null;break}}}}function me(Pe,Be,it,Ct){var pt=Be,Lt=Be,tn=oe._START_;e:for(;Be<Pe.length;){var Rt=Pe.charAt(Be);switch(tn){case oe._START_:{if(Rt==="-")tn=oe.MINUS;else if(Rt==="0")Lt=Be+1,tn=oe.ZERO;else if(te(Rt))Lt=Be+1,tn=oe.DIGIT;else return null;break}case oe.MINUS:{if(Rt==="0")Lt=Be+1,tn=oe.ZERO;else if(te(Rt))Lt=Be+1,tn=oe.DIGIT;else return null;break}case oe.ZERO:{if(Rt===".")tn=oe.POINT;else if(W(Rt))tn=oe.EXP;else break e;break}case oe.DIGIT:{if(V(Rt))Lt=Be+1;else if(Rt===".")tn=oe.POINT;else if(W(Rt))tn=oe.EXP;else break e;break}case oe.POINT:{if(V(Rt))Lt=Be+1,tn=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(V(Rt))Lt=Be+1;else if(W(Rt))tn=oe.EXP;else break e;break}case oe.EXP:{if(Rt==="+"||Rt==="-")tn=oe.EXP_DIGIT_OR_SIGN;else if(V(Rt))Lt=Be+1,tn=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(V(Rt))Lt=Be+1;else break e;break}}Be++}return Lt>0?{type:F.NUMBER,line:it,column:Ct+Lt-pt,index:Lt,value:Pe.slice(pt,Lt)}:null}var Se=function(Be,it){for(var Ct=1,pt=1,Lt=0,tn=[];Lt<Be.length;){var Rt=[Be,Lt,Ct,pt],yn=ie.apply(void 0,Rt);if(yn){Lt=yn.index,Ct=yn.line,pt=yn.column;continue}var Yn=he.apply(void 0,Rt)||fe.apply(void 0,Rt)||Ee.apply(void 0,Rt)||me.apply(void 0,Rt);if(Yn){var en={type:Yn.type,value:Yn.value,loc:o(Ct,pt,Lt,Yn.line,Yn.column,Yn.index,it.source)};tn.push(en),Lt=Yn.index,Ct=Yn.line,pt=Yn.column}else B(P.unexpectedSymbol(l(Be,Lt,Lt+1),it.source,Ct,pt),Be,it.source,Ct,pt)}return tn},Ke={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},st={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ze={loc:!0,source:null};function tt(Pe,Be,it){var Ct=Be.length>0?Be[Be.length-1].loc.end:{line:1,column:1};B(O.unexpectedEnd(),Pe,it.source,Ct.line,Ct.column)}function Ne(Pe){for(var Be=0,it=0;it<4;it++)Be=Be*16+parseInt(Pe[it],16);return String.fromCharCode(Be)}var we={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},De=['"',"\\","/"];function He(Pe){for(var Be="",it=0;it<Pe.length;it++){var Ct=Pe.charAt(it);if(Ct==="\\"){it++;var pt=Pe.charAt(it);if(pt==="u")Be+=Ne(Pe.substr(it+1,4)),it+=4;else if(De.indexOf(pt)!==-1)Be+=pt;else if(pt in we)Be+=we[pt];else break}else Be+=Ct}return Be}function _t(Pe,Be,it,Ct){for(var pt=void 0,Lt={type:"Object",children:[]},tn=Ke._START_;it<Be.length;){var Rt=Be[it];switch(tn){case Ke._START_:{if(Rt.type===F.LEFT_BRACE)pt=Rt,tn=Ke.OPEN_OBJECT,it++;else return null;break}case Ke.OPEN_OBJECT:{if(Rt.type===F.RIGHT_BRACE)return Ct.loc&&(Lt.loc=o(pt.loc.start.line,pt.loc.start.column,pt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Lt,index:it+1};var yn=Yt(Pe,Be,it,Ct);Lt.children.push(yn.value),tn=Ke.PROPERTY,it=yn.index;break}case Ke.PROPERTY:{if(Rt.type===F.RIGHT_BRACE)return Ct.loc&&(Lt.loc=o(pt.loc.start.line,pt.loc.start.column,pt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Lt,index:it+1};Rt.type===F.COMMA?(tn=Ke.COMMA,it++):B(O.unexpectedToken(l(Pe,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Pe,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case Ke.COMMA:{var Yn=Yt(Pe,Be,it,Ct);Yn?(it=Yn.index,Lt.children.push(Yn.value),tn=Ke.PROPERTY):B(O.unexpectedToken(l(Pe,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Pe,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}}}tt(Pe,Be,Ct)}function Yt(Pe,Be,it,Ct){for(var pt=void 0,Lt={type:"Property",key:null,value:null},tn=xe._START_;it<Be.length;){var Rt=Be[it];switch(tn){case xe._START_:{if(Rt.type===F.STRING){var yn={type:"Identifier",value:He(Pe.slice(Rt.loc.start.offset+1,Rt.loc.end.offset-1)),raw:Rt.value};Ct.loc&&(yn.loc=Rt.loc),pt=Rt,Lt.key=yn,tn=xe.KEY,it++}else return null;break}case xe.KEY:{Rt.type===F.COLON?(tn=xe.COLON,it++):B(O.unexpectedToken(l(Pe,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Pe,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case xe.COLON:{var Yn=Pt(Pe,Be,it,Ct);return Lt.value=Yn.value,Ct.loc&&(Lt.loc=o(pt.loc.start.line,pt.loc.start.column,pt.loc.start.offset,Yn.value.loc.end.line,Yn.value.loc.end.column,Yn.value.loc.end.offset,Ct.source)),{value:Lt,index:Yn.index}}}}}function gt(Pe,Be,it,Ct){for(var pt=void 0,Lt={type:"Array",children:[]},tn=st._START_,Rt=void 0;it<Be.length;)switch(Rt=Be[it],tn){case st._START_:{if(Rt.type===F.LEFT_BRACKET)pt=Rt,tn=st.OPEN_ARRAY,it++;else return null;break}case st.OPEN_ARRAY:{if(Rt.type===F.RIGHT_BRACKET)return Ct.loc&&(Lt.loc=o(pt.loc.start.line,pt.loc.start.column,pt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Lt,index:it+1};var yn=Pt(Pe,Be,it,Ct);it=yn.index,Lt.children.push(yn.value),tn=st.VALUE;break}case st.VALUE:{if(Rt.type===F.RIGHT_BRACKET)return Ct.loc&&(Lt.loc=o(pt.loc.start.line,pt.loc.start.column,pt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Lt,index:it+1};Rt.type===F.COMMA?(tn=st.COMMA,it++):B(O.unexpectedToken(l(Pe,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Pe,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case st.COMMA:{var Yn=Pt(Pe,Be,it,Ct);it=Yn.index,Lt.children.push(Yn.value),tn=st.VALUE;break}}tt(Pe,Be,Ct)}function Ft(Pe,Be,it,Ct){var pt=Be[it],Lt=null;switch(pt.type){case F.STRING:{Lt=He(Pe.slice(pt.loc.start.offset+1,pt.loc.end.offset-1));break}case F.NUMBER:{Lt=Number(pt.value);break}case F.TRUE:{Lt=!0;break}case F.FALSE:{Lt=!1;break}case F.NULL:{Lt=null;break}default:return null}var tn={type:"Literal",value:Lt,raw:pt.value};return Ct.loc&&(tn.loc=pt.loc),{value:tn,index:it+1}}function Pt(Pe,Be,it,Ct){var pt=Be[it],Lt=Ft.apply(void 0,arguments)||_t.apply(void 0,arguments)||gt.apply(void 0,arguments);if(Lt)return Lt;B(O.unexpectedToken(l(Pe,pt.loc.start.offset,pt.loc.end.offset),Ct.source,pt.loc.start.line,pt.loc.start.column),Pe,Ct.source,pt.loc.start.line,pt.loc.start.column)}var Fe=function(Pe,Be){Be=Object.assign({},Ze,Be);var it=Se(Pe,Be);it.length===0&&tt(Pe,it,Be);var Ct=Pt(Pe,it,0,Be);if(Ct.index===it.length)return Ct.value;var pt=it[Ct.index];B(O.unexpectedToken(l(Pe,pt.loc.start.offset,pt.loc.end.offset),Be.source,pt.loc.start.line,pt.loc.start.column),Pe,Be.source,pt.loc.start.line,pt.loc.start.column)};return Fe})}(Ib)),Ib.exports}var doe=coe();const hoe=yl(doe);function fr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",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:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.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("+te.r+","+te.g+","+te.b+`, 0) 0%,
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:V.alpha},r.default.createElement("div",{style:V.checkboard},r.default.createElement(y.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:V.gradient}),r.default.createElement("div",{style:V.container,ref:function(W){return oe.container=W},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:V.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:V.slider}))))}}]),q}(t.PureComponent||t.Component);return O1.default=j,O1}var k1={},xK;function Kae(){if(xK)return k1;xK=1,Object.defineProperty(k1,"__esModule",{value:!0}),k1.EditableInput=void 0;var n=function(){function $(oe,te){for(var V=0;V<te.length;V++){var ne=te[V];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(oe,ne.key,ne)}}return function(oe,te,V){return te&&$(oe.prototype,te),V&&$(oe,V),oe}}(),e=Na(),t=s(e),r=xp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,oe,te){return oe in $?Object.defineProperty($,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[oe]=te,$}function o($,oe){if(!($ instanceof oe))throw new TypeError("Cannot call a class as a function")}function p($,oe){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:$}function y($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);$.prototype=Object.create(oe&&oe.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf($,oe):$.__proto__=oe)}var x=1,B=38,O=40,P=[B,O],F=function(oe){return P.indexOf(oe)>-1},j=function(oe){return Number(String(oe).replace(/%/g,""))},N=1,q=k1.EditableInput=function($){y(oe,$);function oe(te){o(this,oe);var V=p(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return V.handleBlur=function(){V.state.blurValue&&V.setState({value:V.state.blurValue,blurValue:null})},V.handleChange=function(ne){V.setUpdatedValue(ne.target.value,ne)},V.handleKeyDown=function(ne){var W=j(ne.target.value);if(!isNaN(W)&&F(ne.keyCode)){var ie=V.getArrowOffset(),he=ne.keyCode===B?W+ie:W-ie;V.setUpdatedValue(he,ne)}},V.handleDrag=function(ne){if(V.props.dragLabel){var W=Math.round(V.props.value+ne.movementX);W>=0&&W<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(W),ne)}},V.handleMouseDown=function(ne){V.props.dragLabel&&(ne.preventDefault(),V.handleDrag(ne),window.addEventListener("mousemove",V.handleDrag),window.addEventListener("mouseup",V.handleMouseUp))},V.handleMouseUp=function(){V.unbindEventListeners()},V.unbindEventListeners=function(){window.removeEventListener("mousemove",V.handleDrag),window.removeEventListener("mouseup",V.handleMouseUp)},V.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},V.inputId="rc-editable-input-"+N++,V}return n(oe,[{key:"componentDidUpdate",value:function(V,ne){this.props.value!==this.state.value&&(V.value!==this.props.value||ne.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(V){return l({},this.props.label,V)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||x}},{key:"setUpdatedValue",value:function(V,ne){var W=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(W,ne),this.setState({value:V})}},{key:"render",value:function(){var V=this,ne=(0,i.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 t.default.createElement("div",{style:ne.wrap},t.default.createElement("input",{id:this.inputId,style:ne.input,ref:function(ie){return V.input=ie},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?t.default.createElement("label",{htmlFor:this.inputId,style:ne.label,onMouseDown:this.handleMouseDown},this.props.label):null)} 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%);
}
`),t.default.createElement("div",{style:oe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:oe.slider}))))}}]),F}(e.PureComponent||e.Component);return T1.default=O,T1}var P1={},SK;function Fae(){if(SK)return P1;SK=1,Object.defineProperty(P1,"__esModule",{value:!0}),P1.Raised=void 0;var n=Na(),e=p(n),t=vp(),r=p(t),i=xp(),s=p(i),l=gj(),o=p(l);function p(x){return x&&x.__esModule?x:{default:x}}var y=P1.Raised=function(B){var O=B.zDepth,P=B.radius,F=B.background,j=B.children,N=B.styles,q=N===void 0?{}:N,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+O+"px "+O*4+"px rgba(0,0,0,.24)",borderRadius:P,background:F}},"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%"}}},q),{"zDepth-1":O===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},j))};return y.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},y.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},P1.default=y,P1}var K1={},pS,EK;function Lae(){if(EK)return pS;EK=1;var n=bp(),e=function(){return n.Date.now()};return pS=e,pS}var mS,BK;function Uae(){if(BK)return mS;BK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return mS=e,mS}var gS,OK;function zae(){if(OK)return gS;OK=1;var n=Uae(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return gS=t,gS}var yS,IK;function jae(){if(IK)return yS;IK=1;var n=zae(),e=Df(),t=Zx(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function p(y){if(typeof y=="number")return y;if(t(y))return r;if(e(y)){var x=typeof y.valueOf=="function"?y.valueOf():y;y=e(x)?x+"":x}if(typeof y!="string")return y===0?y:+y;y=n(y);var B=s.test(y);return B||l.test(y)?o(y.slice(2),B?2:8):i.test(y)?r:+y}return yS=p,yS}var vS,kK;function yj(){if(kK)return vS;kK=1;var n=Df(),e=Lae(),t=jae(),r="Expected a function",i=Math.max,s=Math.min;function l(o,p,y){var x,B,O,P,F,j,N=0,q=!1,$=!1,oe=!0;if(typeof o!="function")throw new TypeError(r);p=t(p)||0,n(y)&&(q=!!y.leading,$="maxWait"in y,O=$?i(t(y.maxWait)||0,p):O,oe="trailing"in y?!!y.trailing:oe);function te(Se){var Ke=x,xe=B;return x=B=void 0,N=Se,P=o.apply(xe,Ke),P}function V(Se){return N=Se,F=setTimeout(ie,p),q?te(Se):P}function ne(Se){var Ke=Se-j,xe=Se-N,st=p-Ke;return $?s(st,O-xe):st}function W(Se){var Ke=Se-j,xe=Se-N;return j===void 0||Ke>=p||Ke<0||$&&xe>=O}function ie(){var Se=e();if(W(Se))return he(Se);F=setTimeout(ie,ne(Se))}function he(Se){return F=void 0,oe&&x?te(Se):(x=B=void 0,P)}function fe(){F!==void 0&&clearTimeout(F),N=0,x=j=B=F=void 0}function Ee(){return F===void 0?P:he(e())}function me(){var Se=e(),Ke=W(Se);if(x=arguments,B=this,j=Se,Ke){if(F===void 0)return V(j);if($)return clearTimeout(F),F=setTimeout(ie,p),te(j)}return F===void 0&&(F=setTimeout(ie,p)),P}return me.cancel=fe,me.flush=Ee,me}return vS=l,vS}var CS,TK;function Nae(){if(TK)return CS;TK=1;var n=yj(),e=Df(),t="Expected a function";function r(i,s,l){var o=!0,p=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,p="trailing"in l?!!l.trailing:p),n(i,s,{leading:o,maxWait:s,trailing:p})}return CS=r,CS}var fb={},PK;function Wae(){return PK||(PK=1,Object.defineProperty(fb,"__esModule",{value:!0}),fb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,y=o-(r.getBoundingClientRect().left+window.pageXOffset),x=p-(r.getBoundingClientRect().top+window.pageYOffset);y<0?y=0:y>s&&(y=s),x<0?x=0:x>l&&(x=l);var B=y/s,O=1-x/l;return{h:t.h,s:B,v:O,a:t.a,source:"hsv"}}),fb}var KK;function Gae(){if(KK)return K1;KK=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.Saturation=void 0;var n=function(){function j(N,q){for(var $=0;$<q.length;$++){var oe=q[$];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(N,oe.key,oe)}}return function(N,q,$){return q&&j(N.prototype,q),$&&j(N,$),N}}(),e=Na(),t=x(e),r=xp(),i=x(r),s=Nae(),l=x(s),o=Wae(),p=y(o);function y(j){if(j&&j.__esModule)return j;var N={};if(j!=null)for(var q in j)Object.prototype.hasOwnProperty.call(j,q)&&(N[q]=j[q]);return N.default=j,N}function x(j) Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:V,black:ne,pointer:W,circle:ie}},{custom:!!this.props.style});return t.default.createElement("div",{style:he.color,ref:function(Ee){return $.container=Ee},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.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));
}
`),t.default.createElement("div",{style:he.white,className:"saturation-white"},t.default.createElement("div",{style:he.black,className:"saturation-black"}),t.default.createElement("div",{style:he.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:he.circle}))))}}]),N}(e.PureComponent||e.Component);return K1.default=F,K1}var R1={},Wd={},_S,RK;function Qae(){if(RK)return _S;RK=1;var n=aj(),e=sj(),t=Qz(),r=Zh();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return _S=i,_S}var bS,DK;function Yae(){return DK||(DK=1,bS=Qae()),bS}var kb={exports:{}},qae=kb.exports,FK;function Vae(){return FK||(FK=1,function(n,e){(function(t,r){n.exports=r()})(qae,function(){function t(Fe){"@babel/helpers - typeof";return t=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},t(Fe)}var r=/^\s+/,i=/\s+$/;function s(Fe,Pe){if(Fe=Fe||"",Pe=Pe||{},Fe instanceof s)return Fe;if(!(this instanceof s))return new s(Fe,Pe);var Be=l(Fe);this._originalInput=Fe,this._r=Be.r,this._g=Be.g,this._b=Be.b,this._a=Be.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Be.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=Be.ok}s.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(),Be,it,Ct,pt,Lt,tn;return Be=Pe.r/255,it=Pe.g/255,Ct=Pe.b/255,Be<=.03928?pt=Be/12.92:pt=Math.pow((Be+.055)/1.055,2.4),it<=.03928?Lt=it/12.92:Lt=Math.pow((it+.055)/1.055,2.4),Ct<=.03928?tn=Ct/12.92:tn=Math.pow((Ct+.055)/1.055,2.4),.2126*pt+.7152*Lt+.0722*tn},setAlpha:function(Pe){return this._a=Ke(Pe),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Pe=x(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,v:Pe.v,a:this._a}},toHsvString:function(){var Pe=x(this._r,this._g,this._b),Be=Math.round(Pe.h*360),it=Math.round(Pe.s*100),Ct=Math.round(Pe.v*100);return this._a==1?"hsv("+Be+", "+it+"%, "+Ct+"%)":"hsva("+Be+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHsl:function(){var Pe=p(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=p(this._r,this._g,this._b),Be=Math.round(Pe.h*360),it=Math.round(Pe.s*100),Ct=Math.round(Pe.l*100);return this._a==1?"hsl("+Be+", "+it+"%, "+Ct+"%)":"hsla("+Be+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHex:function(Pe){return O(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(xe(this._r,255)*100)+"%",g:Math.round(xe(this._g,255)*100)+"%",b:Math.round(xe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%)":"rgba("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[O(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Be="#"+F(this._r,this._g,this._b,this._a),it=Be,Ct=this._gradientType?"GradientType = 1, ":"";if(Pe){var pt=s(Pe);it="#"+F(pt._r,pt._g,pt._b,pt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ct+"startColorstr="+Be+",endColorstr="+it+")"},toString:function(Pe){var Be=!!Pe;Pe=Pe||this._format;var it=!1,Ct=this._a<1&&this._a>=0,pt=!Be&&Ct&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return pt?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(it=this.toRgbString()),Pe==="prgb"&&(it=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(it=this.toHexString()),Pe==="hex3"&&(it=this.toHexString(!0)),Pe==="hex4"&&(it=this.toHex8String(!0)),Pe==="hex8"&&(it=this.toHex8String()),Pe==="name"&&(it=this.toName()),Pe==="hsl"&&(it=this.toHslString()),Pe==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Pe,Be){var it=Pe.apply(nu 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@${cR}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${cR}/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=(Gr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Gr().s[10]++,this.exportName());Gr().s[11]++,AR.saveAs(i,s+".html")}async saveStyle(){Gr().f[3]++;const e=(Gr().s[12]++,this.tokenizedStyle());if(Gr().s[13]++,dR)Gr().b[2][1]++;else{Gr().b[2][0]++;const i=(Gr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Gr().s[15]++,this.exportName());Gr().s[16]++,AR.saveAs(i,s+".json"),Gr().s[17]++;return}let t=(Gr().s[18]++,this.props.fileHandle);if(Gr().s[19]++,t==null)if(Gr().b[3][0]++,Gr().s[20]++,t=await this.createFileHandle(),Gr().s[21]++,this.props.onSetFileHandle(t),Gr().s[22]++,t==null){Gr().b[4][0]++,Gr().s[23]++;return}else Gr().b[4][1]++;else Gr().b[3][1]++;const r=(Gr().s[24]++,await t.createWritable());Gr().s[25]++,await r.write(e),Gr().s[26]++,await r.close(),Gr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Gr().f[4]++;const e=(Gr().s[28]++,this.tokenizedStyle()),t=(Gr().s[29]++,await this.createFileHandle());if(Gr().s[30]++,this.props.onSetFileHandle(t),Gr().s[31]++,t==null){Gr().b[5][0]++,Gr().s[32]++;return}else Gr().b[5][1]++;const r=(Gr().s[33]++,await t.createWritable());Gr().s[34]++,await r.write(e),Gr().s[35]++,await r.close(),Gr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Gr().f[5]++;const e=(Gr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Gr().s[38]++,await window.showSaveFilePicker(e));return Gr().s[39]++,this.props.onSetFileHandle(t),Gr().s[40]++,t}changeMetadataProperty(e,t){Gr().f[6]++;const r=(Gr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Gr().s[42]++,this.props.onStyleChanged(r)}render(){Gr().f[7]++;const e=(Gr().s[43]++,this.props.t),t=(Gr().s[44]++,Dj(e));return Gr().s[45]++,le.jsx(U0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:le.jsxs("section",{className:"maputnik-modal-section",children:[le.jsx("h1",{children:e("Save Style")}),le.jsx("p",{children:e("Save the JSON style to your computer.")}),le.jsxs("div",{children:[le.jsx(Np,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Gr().b[6][0]++,this.props.mapStyle.metadata||(Gr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),le.jsx(Np,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Gr().b[7][0]++,this.props.mapStyle.metadata||(Gr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),le.jsx(Np,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Gr().b[8][0]++,this.props.mapStyle.metadata||(Gr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),le.jsxs("div",{className:"maputnik-modal-export-buttons",children:[le.jsxs(il,{onClick:this.saveStyle.bind(this),children:[le.jsx(GE,{}),e("Save")]}),(Gr().b[9][0]++,dR&&(Gr().b[9][1]++,le.jsxs(il,{onClick:this.saveStyleAs.bind(this),children:[le.jsx(GE,{}),e("Save as")]}))),le.jsxs(il,{onClick:this.createHtml.bind(this),children:[le.jsx(VV,{}),e("Create HTML")]})]})]})})}}const Xue=(Gr().s[46]++,Ws()(Zue));function L2(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return L2=function(){return l},l}L2();class zj extends sr.Component{render(){return L2().f[0]++,L2().s[0]++,le.jsx(PC,{label:this.props.label,children:le.jsx(Mj,{...this.props})})}}function U2(){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:{s Line truncated
`)>=0)return!1;return!0}function Ht($e,ae){var Ce;if($e.indent===" ")Ce=" ";else if(typeof $e.indent=="number"&&$e.indent>0)Ce=ie.call(Array($e.indent+1)," ");else return null;return{base:Ce,prev:ie.call(Array(ae+1),Ce)}}function sn($e,ae){if($e.length===0)return"";var Ce=`
`+ae.prev+ae.base;return Ce+ie.call($e,","+Ce)+`
`+ae.prev}function nr($e,ae){var Ce=Ft($e),f=[];if(Ce){f.length=$e.length;for(var je=0;je<$e.length;je++)f[je]=Rt($e,je)?ae($e[je],$e):""}var qe=typeof me=="function"?me($e):[],Xe;if(Ke){Xe={};for(var At=0;At<qe.length;At++)Xe["$"+qe[At]]=qe[At]}for(var dt in $e)Rt($e,dt)&&(Ce&&String(Number(dt))===dt&&dt<$e.length||Ke&&Xe["$"+dt]instanceof Symbol||(ne.call(/[^\w$]/,dt)?f.push(ae(dt,$e)+": "+ae($e[dt],$e)):f.push(dt+": "+ae($e[dt],$e))));if(typeof me=="function")for(var Gt=0;Gt<qe.length;Gt++)st.call($e,qe[Gt])&&f.push("["+ae(qe[Gt])+"]: "+ae($e[qe[Gt]],$e));return f}return IS}var kS,vR;function KAe(){if(vR)return kS;vR=1;var n=e3(),e=Ny(),t=function(o,p,y){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===p)return x.next=B.next,y||(B.next=o.next,o.next=B),B},r=function(o,p){if(o){var y=t(o,p);return y&&y.value}},i=function(o,p,y){var x=t(o,p);x?x.value=y:o.next={key:p,next:o.next,value:y}},s=function(o,p){return o?!!t(o,p):!1},l=function(o,p){if(o)return t(o,p,!0)};return kS=function(){var p,y={assert:function(x){if(!y.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=p&&p.next,O=l(p,x);return O&&B&&B===O&&(p=void 0),!!O},get:function(x){return r(p,x)},has:function(x){return s(p,x)},set:function(x,B){p||(p={next:void 0}),i(p,x,B)}};return y},kS}var TS,CR;function Qj(){return CR||(CR=1,TS=Object),TS}var PS,_R;function RAe(){return _R||(_R=1,PS=Error),PS}var KS,bR;function DAe(){return bR||(bR=1,KS=EvalError),KS}var RS,xR;function FAe(){return xR||(xR=1,RS=RangeError),RS}var DS,MR;function LAe(){return MR||(MR=1,DS=ReferenceError),DS}var FS,wR;function UAe(){return wR||(wR=1,FS=SyntaxError),FS}var LS,SR;function zAe(){return SR||(SR=1,LS=URIError),LS}var US,ER;function jAe(){return ER||(ER=1,US=Math.abs),US}var zS,BR;function NAe(){return BR||(BR=1,zS=Math.floor),zS}var jS,OR;function WAe(){return OR||(OR=1,jS=Math.max),jS}var NS,IR;function GAe(){return IR||(IR=1,NS=Math.min),NS}var WS,kR;function QAe(){return kR||(kR=1,WS=Math.pow),WS}var GS,TR;function YAe(){return TR||(TR=1,GS=Math.round),GS}var QS,PR;function qAe(){return PR||(PR=1,QS=Number.isNaN||function(e){return e!==e}),QS}var YS,KR;function VAe(){if(KR)return YS;KR=1;var n=qAe();return YS=function(t){return n(t)||t===0?t:t<0?-1:1},YS}var qS,RR;function $Ae(){return RR||(RR=1,qS=Object.getOwnPropertyDescriptor),qS}var VS,DR;function Yj(){if(DR)return VS;DR=1;var n=$Ae();if(n)try{n([],"length")}catch{n=null}return VS=n,VS}var $S,FR;function HAe(){if(FR)return $S;FR=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return $S=n,$S}var HS,LR;function ZAe(){return LR||(LR=1,HS=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),HS}var ZS,UR;function XAe(){if(UR)return ZS;UR=1;var n=typeof Symbol<"u"&&Symbol,e=ZAe();return ZS=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},ZS}var XS,zR;function qj(){return zR||(zR=1,XS=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),XS}var JS,jR;function Vj(){if(jR)return JS;jR=1;var n=Qj();return JS=n.getPrototypeOf||null,JS}var eE,NR;function JAe(){if(NR)return eE;NR=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(p,y){for(var x=[],B=0;B<p.length;B+=1)x[B]=p[B];for(var O=0;O<y.length;O+=1)x[O+p.length]=y[O];return x},s=function(p,y){for(var x=[],B=y,O=0;B<p.length;B+=1,O+=1)x[O]=p[B];return x},l=function(o,p){for(var y="",x=0;x<o.length;x+=1)y+=o[x],x+1<o.length&&(y+=p);return y};return eE=function(p){var y=this;if(typeof y!="function"||e.apply(y)!==r)throw new TypeError(n+y);for(var x=s(arguments,1),B,O=function(){if(this instanceof B){var q=y.apply(this,i(x,arguments));return Object(q)===q?q:this}return y.apply(p,i(x,arguments))},P=t(0,y.length-x.length),F=[],j=0;j<P;j++)F[j]="$"+j;if(B=Function("binder","return function ("+l(F,",")+"){ return binder.apply(this,arguments); }")(O),y.prototype){var N=function(){};N.prototype=y.prototype,B.prototype=new N,N.prototype=null}return B},eE}var tE,WR;function t3(){if(WR)return tE;WR=1;var n=JAe();return tE=Function.prototype.bind||n,tE}var nE,GR;function V8(){return GR||(GR=1,nE=Function.prototype.call),nE}var rE,QR;function $Line truncated
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),p=["%","/","?",";","#"].concat(o),y=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,O=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},F={javascript:!0,"javascript:":!0},j={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},N=uce();function q(V,ne,W){if(V&&typeof V=="object"&&V instanceof e)return V;var ie=new e;return ie.parse(V,ne,W),ie}e.prototype.parse=function(V,ne,W){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var ie=V.indexOf("?"),he=ie!==-1&&ie<V.indexOf("#")?"?":"#",fe=V.split(he),Ee=/\\/g;fe[0]=fe[0].replace(Ee,"/"),V=fe.join(he);var me=V;if(me=me.trim(),!W&&V.split("#").length===1){var Se=i.exec(me);if(Se)return this.path=me,this.href=me,this.pathname=Se[1],Se[2]?(this.search=Se[2],ne?this.query=N.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var Ke=t.exec(me);if(Ke){Ke=Ke[0];var xe=Ke.toLowerCase();this.protocol=xe,me=me.substr(Ke.length)}if(W||Ke||me.match(/^\/\/[^@/]+@[^@/]+/)){var st=me.substr(0,2)==="//";st&&!(Ke&&F[Ke])&&(me=me.substr(2),this.slashes=!0)}if(!F[Ke]&&(st||Ke&&!j[Ke])){for(var Ze=-1,tt=0;tt<y.length;tt++){var Ne=me.indexOf(y[tt]);Ne!==-1&&(Ze===-1||Ne<Ze)&&(Ze=Ne)}var we,De;Ze===-1?De=me.lastIndexOf("@"):De=me.lastIndexOf("@",Ze),De!==-1&&(we=me.slice(0,De),me=me.slice(De+1),this.auth=decodeURIComponent(we)),Ze=-1;for(var tt=0;tt<p.length;tt++){var Ne=me.indexOf(p[tt]);Ne!==-1&&(Ze===-1||Ne<Ze)&&(Ze=Ne)}Ze===-1&&(Ze=me.length),this.host=me.slice(0,Ze),me=me.slice(Ze),this.parseHost(),this.hostname=this.hostname||"";var He=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!He)for(var _t=this.hostname.split(/\./),tt=0,Yt=_t.length;tt<Yt;tt++){var gt=_t[tt];if(gt&&!gt.match(B)){for(var Ft="",Pt=0,Fe=gt.length;Pt<Fe;Pt++)gt.charCodeAt(Pt)>127?Ft+="x":Ft+=gt[Pt];if(!Ft.match(B)){var Pe=_t.slice(0,tt),Be=_t.slice(tt+1),it=gt.match(O);it&&(Pe.push(it[1]),Be.unshift(it[2])),Be.length&&(me="/"+Be.join(".")+me),this.hostname=Pe.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),He||(this.hostname=n.toASCII(this.hostname));var Ct=this.port?":"+this.port:"",pt=this.hostname||"";this.host=pt+Ct,this.href+=this.host,He&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),me[0]!=="/"&&(me="/"+me))}if(!P[xe])for(var tt=0,Yt=o.length;tt<Yt;tt++){var Lt=o[tt];if(me.indexOf(Lt)!==-1){var tn=encodeURIComponent(Lt);tn===Lt&&(tn=escape(Lt)),me=me.split(Lt).join(tn)}}var Rt=me.indexOf("#");Rt!==-1&&(this.hash=me.substr(Rt),me=me.slice(0,Rt));var yn=me.indexOf("?");if(yn!==-1?(this.search=me.substr(yn),this.query=me.substr(yn+1),ne&&(this.query=N.parse(this.query)),me=me.slice(0,yn)):ne&&(this.search="",this.query={}),me&&(this.pathname=me),j[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ct=this.pathname||"",Yn=this.search||"";this.path=Ct+Yn}return this.href=this.format(),this};function $(V){return typeof V=="string"&&(V=q(V)),V instanceof e?V.format():e.prototype.format.call(V)}e.prototype.format=function(){var V=this.auth||"";V&&(V=encodeURIComponent(V),V=V.replace(/%3A/i,":"),V+="@");var ne=this.protocol||"",W=this.pathname||"",ie=this.hash||"",he=!1,fe="";this.host?he=V+this.host:this.hostname&&(he=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(he+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(fe=N.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Ee=this.search||fe&&"?"+fe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||j[ne])&&he!==!1?(he="//"+(he||""),W&&W.charAt(0)!=="/"&&(W="/"+W)):he||(he=""),ie&&ie.charAt(0)!=="#"&&(ie="#"+ie),Ee&&Ee.charAt(0)!=="?"&&(Ee="?"+Ee),W=W.replace(/[?#]/g,function(me){return encodeURIComponent(me)}),Ee=Ee.replace("#","%23"),ne+he+W+Ee+ie};function oe(V,ne){return q(V,!1,!0).resolve(ne)}e.prototype.resolve=function(V){return this.resolveObject(q(V,!1,!0)).format()};function te(V,ne){return V?q(V,!1,!0).resolveObject(ne):ne}return e.prototype.resolveObject=function(V){if(typeof V=="string"){var ne=new e;ne.parse(V,!1,!0),V=ne}for(var W=new e,ie=Object.keys(this),he=0;he<ie.length;he++){var fe=ie[he];W[fe]=this[fe]}if(W.hash=V.hash,V.href==="")return W.href=W.format(),W;if(V.slashes&&!V.protocol){for(var Ee=Object.keys(V),me=0;me<Ee.length;me++){var Se=Ee[me];Se!=="protocol"&&(W[Se]=V[Se])}return j[W.protocol]&&W.hostname&&!W.pathname&&(W.pathname="/",W.path=W.pathname),W.href=W.format(),W}if(V.protocol&&V.protocol!==W.protocol){if(!j[V.protocol]){for(var Ke=Object.keys(V),xe=0;xe<Ke.length;xe++){var st=Ke[xe];W[st]=V[st]}return W.href=W.format(),W}if(W.protocol=V.protocol,!V.host&&!F[V.protocol]){for(var Yt=(V.pathname||"").split("/");Yt.length&&!(V.host=Yt.shift()););V.host||(V.host=""),V.hostname 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 K6=function(n,e){return K6=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])},K6(n,e)};function oN(n,e){K6(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Cce(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 _ce(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function bce(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(_ce(arguments[e]));return n}var sN=function(){function n(e,t){this.target=t,this.type=e}return n}(),xce=function(n){oN(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}(sN),Mce=function(n){oN(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(sN);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var wce=function(){if(typeof WebSocket<"u")return WebSocket},Sce=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},dg={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},Ece=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(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?dg.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(p){return i._ws.send(p)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(p){return i._callEventListener(s,p)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},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?dg.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 s=Cce(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListeneLine truncated
//# sourceMappingURL=index-CgRyCzhE.js.map
+969
View File
@@ -0,0 +1,969 @@
var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Pn=(n,e,t)=>DW(n,typeof e!="symbol"?e+"":e,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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function hl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function j6(n){if(Object.prototype.hasOwnProperty.call(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 v3={exports:{}},av={},C3={exports:{}},cs={},s8;function FW(){if(s8)return cs;s8=1;/**
* @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 n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function k(Fe){return Fe===null||typeof Fe!="object"?null:(Fe=B&&Fe[B]||Fe["@@iterator"],typeof Fe=="function"?Fe:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function W(Fe,Ze,_t){this.props=Fe,this.context=Ze,this.refs=N,this.updater=_t||P}W.prototype.isReactComponent={},W.prototype.setState=function(Fe,Ze){if(typeof Fe!="object"&&typeof Fe!="function"&&Fe!=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,Fe,Ze,"setState")},W.prototype.forceUpdate=function(Fe){this.updater.enqueueForceUpdate(this,Fe,"forceUpdate")};function V(){}V.prototype=W.prototype;function $(Fe,Ze,_t){this.props=Fe,this.context=Ze,this.refs=N,this.updater=_t||P}var oe=$.prototype=new V;oe.constructor=$,U(oe,W.prototype),oe.isPureReactComponent=!0;var te=Array.isArray,q=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function ie(Fe,Ze,_t){var Qt,gt={},Ut=null,Pt=null;if(Ze!=null)for(Qt in Ze.ref!==void 0&&(Pt=Ze.ref),Ze.key!==void 0&&(Ut=""+Ze.key),Ze)q.call(Ze,Qt)&&!G.hasOwnProperty(Qt)&&(gt[Qt]=Ze[Qt]);var ze=arguments.length-2;if(ze===1)gt.children=_t;else if(1<ze){for(var Ke=Array(ze),Oe=0;Oe<ze;Oe++)Ke[Oe]=arguments[Oe+2];gt.children=Ke}if(Fe&&Fe.defaultProps)for(Qt in ze=Fe.defaultProps,ze)gt[Qt]===void 0&&(gt[Qt]=ze[Qt]);return{$$typeof:n,type:Fe,key:Ut,ref:Pt,props:gt,_owner:ne.current}}function de(Fe,Ze){return{$$typeof:n,type:Fe.type,key:Ze,ref:Fe.ref,props:Fe.props,_owner:Fe._owner}}function fe(Fe){return typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===n}function Ee(Fe){var Ze={"=":"=0",":":"=2"};return"$"+Fe.replace(/[=:]/g,function(_t){return Ze[_t]})}var me=/\/+/g;function Me(Fe,Ze){return typeof Fe=="object"&&Fe!==null&&Fe.key!=null?Ee(""+Fe.key):Ze.toString(36)}function Le(Fe,Ze,_t,Qt,gt){var Ut=typeof Fe;(Ut==="undefined"||Ut==="boolean")&&(Fe=null);var Pt=!1;if(Fe===null)Pt=!0;else switch(Ut){case"string":case"number":Pt=!0;break;case"object":switch(Fe.$$typeof){case n:case e:Pt=!0}}if(Pt)return Pt=Fe,gt=gt(Pt),Fe=Qt===""?"."+Me(Pt,0):Qt,te(gt)?(_t="",Fe!=null&&(_t=Fe.replace(me,"$&/")+"/"),Le(gt,Ze,_t,"",function(Oe){return Oe})):gt!=null&&(fe(gt)&&(gt=de(gt,_t+(!gt.key||Pt&&Pt.key===gt.key?"":(""+gt.key).replace(me,"$&/")+"/")+Fe)),Ze.push(gt)),1;if(Pt=0,Qt=Qt===""?".":Qt+":",te(Fe))for(var ze=0;ze<Fe.length;ze++){Ut=Fe[ze];var Ke=Qt+Me(Ut,ze);Pt+=Le(Ut,Ze,_t,Ke,gt)}else if(Ke=k(Fe),typeof Ke=="function")for(Fe=Ke.call(Fe),ze=0;!(Ut=Fe.next()).done;)Ut=Ut.value,Ke=Qt+Me(Ut,ze++),Pt+=Le(Ut,Ze,_t,Ke,gt);else if(Ut==="object")throw Ze=String(Fe),Error("Objects are not valid as a React child (found: "+(Ze==="[object Object]"?"object with keys {"+Object.keys(Fe).join(", ")+"}":Ze)+"). If you meant to render a collection of children, use an array instead.");return Pt}function xe(Fe,Ze,_t){if(Fe==null)return Fe;var Qt=[],gt=0;return Le(Fe,Qt,"","",function(Ut){return Ze.call(_t,Ut,gt++)}),Qt}function pt(Fe){if(Fe._status===-1){var Ze=Fe._result;Ze=Ze(),Ze.then(function(_t){(Fe._status===0||Fe._status===-1)&&(Fe._status=1,Fe._result=_t)},function(_t){(Fe._status===0||Fe._status===-1)&&(Fe._status=2,Fe._result=_t)}),Fe._status===-1&&(Fe._status=0,Fe._result=Ze)}if(Fe._status===1)return Fe._result.default;throw Fe._result}var Je={current:null},Ve={transition:null},je={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ve,ReactCurrentOwner:ne};function Se(){throw Error("act(...) is not supported in production builds of React.")}return cs.Children={map:xe,forEach:function(Fe,Ze,_t){xe(Fe,function(){Ze.apply(this,arguments)},_t)},count:function(Fe){var Ze=0;return xe(Fe,function(){Ze++}),Ze},toArray:function(Fe){return xe(Fe,function(Ze){return Ze})||[]},only:function(Fe){if(!fe(Fe))throw Error("React.Children.only expected to receive a single React element child.");return Fe}},cs.Component=W,cs.Fragment=t,cs.Profiler=i,cs.PureComponent=$,cs.StrictMode=r,cs.Suspense=f,cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,cs.act=Se,cs.cloneElement=function(Fe,Ze,_t){if(Fe==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Fe+".");var Qt=U({},Fe.props),gt=Fe.key,Ut=Fe.ref,Pt=Fe._owner;if(Ze!=null){if(Ze.ref!==void 0&&(Ut=Ze.ref,Pt=ne.current),Ze.key!==void 0&&(gt=""+Ze.key),Fe.type&&Fe.type.defaultProps)var ze=Fe.type.defaultProps;for(Ke in Ze)q.call(Ze,Ke)&&!G.hasOwnProperty(Ke)&&(Qt[Ke]=Ze[Ke]===void 0&&ze!==void 0?ze[Ke]:Ze[Ke])}var Ke=arguments.lengthLine 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 l8;function LW(){if(l8)return av;l8=1;var n=Ra(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,f,v){var x,B={},k=null,P=null;v!==void 0&&(k=""+v),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(P=f.ref);for(x in f)r.call(f,x)&&!s.hasOwnProperty(x)&&(B[x]=f[x]);if(o&&o.defaultProps)for(x in f=o.defaultProps,f)B[x]===void 0&&(B[x]=f[x]);return{$$typeof:e,type:o,key:k,ref:P,props:B,_owner:i.current}}return av.Fragment=t,av.jsx=l,av.jsxs=l,av}var A8;function UW(){return A8||(A8=1,v3.exports=LW()),v3.exports}var Ae=UW(),Ai=Ra();const Jn=hl(Ai);var bD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},OE=Jn.createContext&&Jn.createContext(bD),zW=["attr","size","title"];function NW(n,e){if(n==null)return{};var t=WW(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function WW(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function kb(){return kb=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},kb.apply(this,arguments)}function u8(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 Pb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?u8(Object(t),!0).forEach(function(r){jW(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u8(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function jW(n,e,t){return e=GW(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function GW(n){var e=QW(n,"string");return typeof e=="symbol"?e:e+""}function QW(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function xD(n){return n&&n.map((e,t)=>Jn.createElement(e.tag,Pb({key:t},e.attr),xD(e.child)))}function eA(n){return e=>Jn.createElement(YW,kb({attr:Pb({},n.attr)},e),xD(n.child))}function YW(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=NW(n,zW),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),Jn.createElement("svg",kb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:Pb(Pb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&Jn.createElement("title",null,s),n.children)};return OE!==void 0?Jn.createElement(OE.Consumer,null,t=>e(t)):e(bD)}var O_={},_3={exports:{}},ld={},b3={exports:{}},x3={};/**
* @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.
*/var c8;function qW(){return c8||(c8=1,function(n){function e(Ve,je){var Se=Ve.length;Ve.push(je);e:for(;0<Se;){var Fe=Se-1>>>1,Ze=Ve[Fe];if(0<i(Ze,je))Ve[Fe]=je,Ve[Se]=Ze,Se=Fe;else break e}}function t(Ve){return Ve.length===0?null:Ve[0]}function r(Ve){if(Ve.length===0)return null;var je=Ve[0],Se=Ve.pop();if(Se!==je){Ve[0]=Se;e:for(var Fe=0,Ze=Ve.length,_t=Ze>>>1;Fe<_t;){var Qt=2*(Fe+1)-1,gt=Ve[Qt],Ut=Qt+1,Pt=Ve[Ut];if(0>i(gt,Se))Ut<Ze&&0>i(Pt,gt)?(Ve[Fe]=Pt,Ve[Ut]=Se,Fe=Ut):(Ve[Fe]=gt,Ve[Qt]=Se,Fe=Qt);else if(Ut<Ze&&0>i(Pt,Se))Ve[Fe]=Pt,Ve[Ut]=Se,Fe=Ut;else break e}}return je}function i(Ve,je){var Se=Ve.sortIndex-je.sortIndex;return Se!==0?Se:Ve.id-je.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],v=[],x=1,B=null,k=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(Ve){for(var je=t(v);je!==null;){if(je.callback===null)r(v);else if(je.startTime<=Ve)r(v),je.sortIndex=je.expirationTime,e(f,je);else break;je=t(v)}}function te(Ve){if(N=!1,oe(Ve),!U)if(t(f)!==null)U=!0,pt(q);else{var je=t(v);je!==null&&Je(te,je.startTime-Ve)}}function q(Ve,je){U=!1,N&&(N=!1,V(ie),ie=-1),P=!0;var Se=k;try{for(oe(je),B=t(f);B!==null&&(!(B.expirationTime>je)||Ve&&!Ee());){var Fe=B.callback;if(typeof Fe=="function"){B.callback=null,k=B.priorityLevel;var Ze=Fe(B.expirationTime<=je);je=n.unstable_now(),typeof Ze=="function"?B.callback=Ze:B===t(f)&&r(f),oe(je)}else r(f);B=t(f)}if(B!==null)var _t=!0;else{var Qt=t(v);Qt!==null&&Je(te,Qt.startTime-je),_t=!1}return _t}finally{B=null,k=Se,P=!1}}var ne=!1,G=null,ie=-1,de=5,fe=-1;function Ee(){return!(n.unstable_now()-fe<de)}function me(){if(G!==null){var Ve=n.unstable_now();fe=Ve;var je=!0;try{je=G(!0,Ve)}finally{je?Me():(ne=!1,G=null)}}else ne=!1}var Me;if(typeof $=="function")Me=function(){$(me)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,xe=Le.port2;Le.port1.onmessage=me,Me=function(){xe.postMessage(null)}}else Me=function(){W(me,0)};function pt(Ve){G=Ve,ne||(ne=!0,Me())}function Je(Ve,je){ie=W(function(){Ve(n.unstable_now())},je)}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(Ve){Ve.callback=null},n.unstable_continueExecution=function(){U||P||(U=!0,pt(q))},n.unstable_forceFrameRate=function(Ve){0>Ve||125<Ve?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<Ve?Math.floor(1e3/Ve):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(Ve){switch(k){case 1:case 2:case 3:var je=3;break;default:je=k}var Se=k;k=je;try{return Ve()}finally{k=Se}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Ve,je){switch(Ve){case 1:case 2:case 3:case 4:case 5:break;default:Ve=3}var Se=k;k=Ve;try{return je()}finally{k=Se}},n.unstable_scheduleCallback=function(Ve,je,Se){var Fe=n.unstable_now();switch(typeof Se=="object"&&Se!==null?(Se=Se.delay,Se=typeof Se=="number"&&0<Se?Fe+Se:Fe):Se=Fe,Ve){case 1:var Ze=-1;break;case 2:Ze=250;break;case 5:Ze=1073741823;break;case 4:Ze=1e4;break;default:Ze=5e3}return Ze=Se+Ze,Ve={id:x++,callback:je,priorityLevel:Ve,startTime:Se,expirationTime:Ze,sortIndex:-1},Se>Fe?(Ve.sortIndex=Se,e(v,Ve),t(f)===null&&Ve===t(v)&&(N?(V(ie),ie=-1):N=!0,Je(te,Se-Fe))):(Ve.sortIndex=Ze,e(f,Ve),U||P||(U=!0,pt(q))),Ve},n.unstable_shouldYield=Ee,n.unstable_wrapCallback=function(Ve){var je=k;return function(){var Se=k;k=je;try{return Ve.apply(this,arguments)}finally{k=Se}}}}(x3)),x3}var h8;function VW(){return h8||(h8=1,b3.exports=qW()),b3.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 d8;function HW(){if(d8)return ld;d8=1;var n=Ra(),e=VW();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,D=1;D<arguments.length;D++)_+="&args[]="+encodeURIComponent(arguments[D]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){l(m,_),l(m+"Capture",_)}function l(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=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]*$/,x={},B={};function k(m){return f.call(B,m)?!0:f.call(x,m)?!1:v.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,D,Q){if(D!==null&&D.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:D!==null?!D.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,D,Q){if(_===null||typeof _>"u"||P(m,_,D,Q))return!0;if(Q)return!1;if(D!==null)switch(D.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,D,Q,le,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=le,this.mustUseProperty=D,this.propertyName=m,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,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(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function $(m){return m[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(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function oe(m,_,D,Q){var le=W.hasOwnProperty(_)?W[_]:null;(le!==null?le.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Fe+m}var _t=!1;function Qt(m,_){if(!m||_t)return"";_t=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Sn){var Q=Sn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Sn){Q=Sn}m.call(_.prototype)}else{try{throw Error()}catch(Sn){Q=Sn}m()}}catch(Sn){if(Sn&&Q&&typeof Sn.stack=="string"){for(var le=Sn.stack.split(`
`),ye=Q.stack.split(`
`),tt=le.length-1,Ot=ye.length-1;1<=tt&&0<=Ot&&le[tt]!==ye[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(le[tt]!==ye[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||le[tt]!==ye[Ot]){var jt=`
`+le[tt].replace(" at new "," at ");return m.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",m.displayName)),jt}while(1<=tt&&0<=Ot);break}}}finally{_t=!1,Error.prepareStackTrace=D}return(m=m?m.displayName||m.name:"")?Ze(m):""}function gt(m){switch(m.tag){case 5:return Ze(m.type);case 16:return Ze("Lazy");case 13:return Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 2:case 15:return m=Qt(m.type,!1),m;case 11:return m=Qt(m.type.render,!1),m;case 1:return m=Qt(m.type,!0),m;default:return""}}function Ut(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case ne:return"Portal";case de:return"Profiler";case ie:return"StrictMode";case Me:return"Suspense";case Le:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ee:return(m.displayName||"Context")+".Consumer";case fe:return(m._context.displayName||"Context")+".Provider";case me:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case xe:return _=m.displayName||null,_!==null?_:Ut(m.type)||"Memo";case pt:_=m._payload,m=m._init;try{return Ut(m(_))}catch{}}return null}function Pt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ut(_);case 8:return _===ie?"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 _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function ze(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Ke(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Oe(m){var _=Ke(m)?"checked":"value",D=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var le=D.get,ye=D.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return le.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:D.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function it(m){m._valueTracker||(m._valueTracker=Oe(m))}function Ct(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var D=_.getValue(),Q="";return m&&(Q=Ke(m)?m.checked?"true":"false":m.value),m=Q,m!==D?(_.setValue(m),!0):!1}function dt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Dt(m,_){var D=_.checked;return Se({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:D??m._wrapperState.initialChecked})}function $t(m,_){var D=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;D=ze(_.value!=null?_.value:D),m._wrapperState={initialChecked:Q,initialValue:D,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Rt(m,_){_=_.checked,_!=null&&oe(m,"checked",_,!1)}function bn(m,_){Rt(m,_);var D=ze(_.value),Q=_.type;if(D!=null)Q==="number"?(D===0&&m.value===""||m.value!=D)&&(m.value=""+D):m.value!==""+D&&(m.value=""+D);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?rn(m,_.type,D):_.hasOwnProperty("defaultValue")&&rn(m,_.type,ze(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function Yn(m,_,D){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,D||_===m.value||(m.value=_),m.defaultValue=_}D=m.name,D!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,D!==""&&(m.name=D)}function rn(m,_,D){(_!=="number"||dt(m.ownerDocument)!==m)&&(D==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+D&&(m.defaultValue=""+D))}var er=Array.isArray;function Tn(m,_,D,Q){if(m=m.options,_){_={};for(var le=0;le<D.length;le++)_["$"+D[le]]=!0;for(D=0;D<m.length;D++)le=_.hasOwnProperty("$"+m[D].value),m[D].selected!==le&&(m[D].selected=le),le&&Q&&(m[D].defaultSelected=!0)}else{for(D=""+ze(D),_=null,le=0;le<m.length;le++){if(m[le].value===D){m[le].selected=!0,Q&&(m[le].defaultSelected=!0);return}_!==null||m[le].disabled||(_=m[le])}_!==null&&(_.selecte Line truncated
`).replace(Sd,"")}function _h(m,_,D){if(_=eh(_),eh(m)!==_&&D)throw Error(t(425))}function fs(){}var xu=null,Xs=null;function Nu(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Wl=typeof setTimeout=="function"?setTimeout:void 0,Wu=typeof clearTimeout=="function"?clearTimeout:void 0,Ml=typeof Promise=="function"?Promise:void 0,Mu=typeof queueMicrotask=="function"?queueMicrotask:typeof Ml<"u"?function(m){return Ml.resolve(null).then(m).catch(Ic)}:Wl;function Ic(m){setTimeout(function(){throw m})}function Xh(m,_){var D=_,Q=0;do{var le=D.nextSibling;if(m.removeChild(D),le&&le.nodeType===8)if(D=le.data,D==="/$"){if(Q===0){m.removeChild(le),no(_);return}Q--}else D!=="$"&&D!=="$?"&&D!=="$!"||Q++;D=le}while(D);no(_)}function Ac(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function Tc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var D=m.data;if(D==="$"||D==="$!"||D==="$?"){if(_===0)return m;_--}else D==="/$"&&_++}m=m.previousSibling}return null}var OA=Math.random().toString(36).slice(2),wu="__reactFiber$"+OA,pl="__reactProps$"+OA,IA="__reactContainer$"+OA,Ed="__reactEvents$"+OA,at="__reactListeners$"+OA,bh="__reactHandles$"+OA;function Js(m){var _=m[wu];if(_)return _;for(var D=m.parentNode;D;){if(_=D[IA]||D[wu]){if(D=_.alternate,_.child!==null||D!==null&&D.child!==null)for(m=Tc(m);m!==null;){if(D=m[wu])return D;m=Tc(m)}return _}m=D,D=m.parentNode}return null}function Po(m){return m=m[wu]||m[IA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ri(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function ps(m){return m[pl]||null}var Na=[],Wa=-1;function Bs(m){return{current:m}}function Fs(m){0>Wa||(m.current=Na[Wa],Na[Wa]=null,Wa--)}function Ko(m,_){Wa++,Na[Wa]=m.current,m.current=_}var wl={},rl=Bs(wl),Sl=Bs(!1),El=wl;function th(m,_){var D=m.type.contextTypes;if(!D)return wl;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var le={},ye;for(ye in D)le[ye]=_[ye];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=le),le}function Bl(m){return m=m.childContextTypes,m!=null}function TA(){Fs(Sl),Fs(rl)}function ju(m,_,D){if(rl.current!==wl)throw Error(t(168));Ko(rl,_),Ko(Sl,D)}function xr(m,_,D){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return D;Q=Q.getChildContext();for(var le in Q)if(!(le in _))throw Error(t(108,Pt(m)||"Unknown",le));return Se({},D,Q)}function AA(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||wl,El=rl.current,Ko(rl,m),Ko(Sl,Sl.current),!0}function Bd(m,_,D){var Q=m.stateNode;if(!Q)throw Error(t(169));D?(m=xr(m,_,El),Q.__reactInternalMemoizedMergedChildContext=m,Fs(Sl),Fs(rl),Ko(rl,m)):Fs(Sl),Ko(Sl,D)}var Ol=null,nh=!1,Su=!1;function kA(m){Ol===null?Ol=[m]:Ol.push(m)}function Fi(m){nh=!0,kA(m)}function Gu(){if(!Su&&Ol!==null){Su=!0;var m=0,_=di;try{var D=Ol;for(di=1;m<D.length;m++){var Q=D[m];do Q=Q(!0);while(Q!==null)}Ol=null,nh=!1}catch(le){throw Ol!==null&&(Ol=Ol.slice(m+1)),sa(_l,Gu),le}finally{di=_,Su=!1}}return null}var rh=[],rs=0,Bo=null,uA=0,ja=[],ma=0,kc=null,ru=1,iu="";function ih(m,_){rh[rs++]=uA,rh[rs++]=Bo,Bo=m,uA=_}function af(m,_,D){ja[ma++]=ru,ja[ma++]=iu,ja[ma++]=kc,kc=m;var Q=ru;m=iu;var le=32-xn(Q)-1;Q&=~(1<<le),D+=1;var ye=32-xn(_)+le;if(30<ye){var tt=le-le%5;ye=(Q&(1<<tt)-1).toString(32),Q>>=tt,le-=tt,ru=1<<32-xn(_)+le|D<<le|Q,iu=ye+m}else ru=1<<ye|D<<le|Q,iu=m}function jl(m){m.return!==null&&(ih(m,1),af(m,1,0))}function Qo(m){for(;m===Bo;)Bo=rh[--rs],rh[rs]=null,uA=rh[--rs],rh[rs]=null;for(;m===kc;)kc=ja[--ma],ja[ma]=null,iu=ja[--ma],ja[ma]=null,ru=ja[--ma],ja[ma]=null}var ga=null,la=null,Ms=!1,Gl=null;function Qu(m,_){var D=xa(5,null,null,0);D.elementType="DELETED",D.stateNode=_,D.return=m,_=m.deletions,_===null?(m.deletions=[D],m.flags|=16):_.push(D)}function Pc(m,_){switch(m.tag){case 5:var D=m.type;return _=_.nodeType!==1||D.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,ga=m,la=Ac(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,ga=m,la=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(D=kc!==null?{id:ru,overflow:iu}:null,m.memoizedState={dehydrated:_,treeContext:D,retryLane:1073741824},D=xa(18,null,null,0),D.stateNode=_,D.return=m,m.child=D,ga=m,la=null,!0):!1;default:return!1}}function Ga(m){return(m.mode&1)!==0&&(m.flags&128)===0}function ml(m){if(Ms){var _=la;if(_){var D=_;if(!Pc(m,_)){if(Ga(m))throw Error(t(418));_=Ac(D.nextSibling);var Q=ga;_&&Pc(m,_)?Qu(Q,D):(m.flags=m.flags&-4097|2,Ms=!1,ga=m)}}else{if(Ga(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ye.message+`
`+ye.stack}return{value:m,source:_,stack:le,digest:null}}function uf(m,_,D){return{value:m,source:null,stack:D??null,digest:_??null}}function Id(m,_){try{console.error(_.value)}catch(D){setTimeout(function(){throw D})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function qu(m,_,D){D=Au(-1,D),D.tag=3,D.payload={element:null};var Q=_.value;return D.callback=function(){qm||(qm=!0,G0=Q),Id(m,_)},D}function $f(m,_,D){D=Au(-1,D),D.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var le=_.value;D.payload=function(){return Q(le)},D.callback=function(){Id(m,_)}}var ye=m.stateNode;return ye!==null&&typeof ye.componentDidCatch=="function"&&(D.callback=function(){Id(m,_),typeof Q!="function"&&(Pd===null?Pd=new Set([this]):Pd.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),D}function Sh(m,_,D){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new Bp;var le=new Set;Q.set(_,le)}else le=Q.get(_),le===void 0&&(le=new Set,Q.set(_,le));le.has(D)||(le.add(D),m=Y0.bind(null,m,_,D),_.then(m,m))}function cf(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Rc(m,_,D,Q,le){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,D.flags|=131072,D.flags&=-52805,D.tag===1&&(D.alternate===null?D.tag=17:(_=Au(-1,1),_.tag=2,Il(D,_,1))),D.lanes|=1),m):(m.flags|=65536,m.lanes=le,m)}var hf=te.ReactCurrentOwner,kl=!1;function fA(m,_,D,Q){_.child=m===null?Os(_,null,D,Q):ji(_,m.child,D,Q)}function Ym(m,_,D,Q,le){D=D.render;var ye=_.ref;return su(_,le),Q=sr(m,_,D,Q,ye,le),D=Hn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(Ms&&D&&jl(_),_.flags|=1,fA(m,_,Q,le),_.child)}function Op(m,_,D,Q,le){if(m===null){var ye=D.type;return typeof ye=="function"&&!Pp(ye)&&ye.defaultProps===void 0&&D.compare===null&&D.defaultProps===void 0?(_.tag=15,_.type=ye,qo(m,_,ye,Q,le)):(m=tp(D.type,null,Q,_,_.mode,le),m.ref=_.ref,m.return=_,_.child=m)}if(ye=m.child,(m.lanes&le)===0){var tt=ye.memoizedProps;if(D=D.compare,D=D!==null?D:Kr,D(tt,Q)&&m.ref===_.ref)return pA(m,_,le)}return _.flags|=1,m=zA(ye,Q),m.ref=_.ref,m.return=_,_.child=m}function qo(m,_,D,Q,le){if(m!==null){var ye=m.memoizedProps;if(Kr(ye,Q)&&m.ref===_.ref)if(kl=!1,_.pendingProps=Q=ye,(m.lanes&le)!==0)(m.flags&131072)!==0&&(kl=!0);else return _.lanes=m.lanes,pA(m,_,le)}return Eh(m,_,D,Q,le)}function Ip(m,_,D){var Q=_.pendingProps,le=Q.children,ye=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ko(UA,ms),ms|=D;else{if((D&1073741824)===0)return m=ye!==null?ye.baseLanes|D:D,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Ko(UA,ms),ms|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ye!==null?ye.baseLanes:D,Ko(UA,ms),ms|=Q}else ye!==null?(Q=ye.baseLanes|D,_.memoizedState=null):Q=D,Ko(UA,ms),ms|=Q;return fA(m,_,le,D),_.child}function Zf(m,_){var D=_.ref;(m===null&&D!==null||m!==null&&m.ref!==D)&&(_.flags|=512,_.flags|=2097152)}function Eh(m,_,D,Q,le){var ye=Bl(D)?El:rl.current;return ye=th(_,ye),su(_,le),D=sr(m,_,D,Q,ye,le),Q=Hn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(Ms&&Q&&jl(_),_.flags|=1,fA(m,_,D,le),_.child)}function ku(m,_,D,Q,le){if(Bl(D)){var ye=!0;AA(_)}else ye=!1;if(su(_,le),_.stateNode===null)pf(m,_),td(_,D,Q),Hf(_,D,Q,le),Q=!0;else if(m===null){var tt=_.stateNode,Ot=_.memoizedProps;tt.props=Ot;var jt=tt.context,Sn=D.contextType;typeof Sn=="object"&&Sn!==null?Sn=hA(Sn):(Sn=Bl(D)?El:rl.current,Sn=th(_,Sn));var ar=D.getDerivedStateFromProps,cr=typeof ar=="function"||typeof tt.getSnapshotBeforeUpdate=="function";cr||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Ot!==Q||jt!==Sn)&&Af(_,tt,Q,Sn),ol=!1;var rr=_.memoizedState;tt.state=rr,c(_,Q,tt,le),jt=_.memoizedState,Ot!==Q||rr!==jt||Sl.current||ol?(typeof ar=="function"&&(ah(_,D,ar,Q),jt=_.memoizedState),(Ot=ol||Od(_,D,Ot,Q,rr,jt,Sn))?(cr||typeof tt.UNSAFE_componentWillMount!="function"&&typeof tt.componentWillMount!="function"||(typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount()),typeof tt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=jt),tt.props=Q,tt.state=jt,tt.context=Sn,Q=Ot):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,uc(m,_),Ot=_.memoizedProps,Sn=_.type===_.elementType?Ot:Tl(_.type,Ot),tt.props=Sn,cr=_.pendingProps,rr=tt.context,jt=D.contextType,typeof jt=="object"&&jt!==null?jt=hA(jt):(jt=Bl(D)?El:rl.current,jt=th(_,jt));var Ur=D.getDerivedStateFromProps;(ar=typeof Ur=="function"||typeof tt.getSnapshotBeforeUpdate=="function")||typeof tt.UNSAFE_c Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var Y8;function yG(){return Y8||(Y8=1,function(n){const e=mG(),t=gG(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.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 s(){try{const Ye=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf(Ye,ce),Ye.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(Ye){if(Ye>i)throw new RangeError('The value "'+Ye+'" is invalid for option "size"');const ce=new Uint8Array(Ye);return Object.setPrototypeOf(ce,o.prototype),ce}function o(Ye,ce,pe){if(typeof Ye=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ye)}return f(Ye,ce,pe)}o.poolSize=8192;function f(Ye,ce,pe){if(typeof Ye=="string")return k(Ye,ce);if(ArrayBuffer.isView(Ye))return U(Ye);if(Ye==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ye);if(gn(Ye,ArrayBuffer)||Ye&&gn(Ye.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gn(Ye,SharedArrayBuffer)||Ye&&gn(Ye.buffer,SharedArrayBuffer)))return N(Ye,ce,pe);if(typeof Ye=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const nt=Ye.valueOf&&Ye.valueOf();if(nt!=null&&nt!==Ye)return o.from(nt,ce,pe);const wt=W(Ye);if(wt)return wt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ye[Symbol.toPrimitive]=="function")return o.from(Ye[Symbol.toPrimitive]("string"),ce,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ye)}o.from=function(Ye,ce,pe){return f(Ye,ce,pe)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function v(Ye){if(typeof Ye!="number")throw new TypeError('"size" argument must be of type number');if(Ye<0)throw new RangeError('The value "'+Ye+'" is invalid for option "size"')}function x(Ye,ce,pe){return v(Ye),Ye<=0?l(Ye):ce!==void 0?typeof pe=="string"?l(Ye).fill(ce,pe):l(Ye).fill(ce):l(Ye)}o.alloc=function(Ye,ce,pe){return x(Ye,ce,pe)};function B(Ye){return v(Ye),l(Ye<0?0:V(Ye)|0)}o.allocUnsafe=function(Ye){return B(Ye)},o.allocUnsafeSlow=function(Ye){return B(Ye)};function k(Ye,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!o.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const pe=oe(Ye,ce)|0;let nt=l(pe);const wt=nt.write(Ye,ce);return wt!==pe&&(nt=nt.slice(0,wt)),nt}function P(Ye){const ce=Ye.length<0?0:V(Ye.length)|0,pe=l(ce);for(let nt=0;nt<ce;nt+=1)pe[nt]=Ye[nt]&255;return pe}function U(Ye){if(gn(Ye,Uint8Array)){const ce=new Uint8Array(Ye);return N(ce.buffer,ce.byteOffset,ce.byteLength)}return P(Ye)}function N(Ye,ce,pe){if(ce<0||Ye.byteLength<ce)throw new RangeError('"offset" is outside of buffer bounds');if(Ye.byteLength<ce+(pe||0))throw new RangeError('"length" is outside of buffer bounds');let nt;return ce===void 0&&pe===void 0?nt=new Uint8Array(Ye):pe===void 0?nt=new Uint8Array(Ye,ce):nt=new Uint8Array(Ye,ce,pe),Object.setPrototypeOf(nt,o.prototype),nt}function W(Ye){if(o.isBuffer(Ye)){const ce=V(Ye.length)|0,pe=l(ce);return pe.length===0||Ye.copy(pe,0,0,ce),pe}if(Ye.length!==void 0)return typeof Ye.length!="number"||Ln(Ye.length)?l(0):P(Ye);if(Ye.type==="Buffer"&&Array.isArray(Ye.data))return P(Ye.data)}function V(Ye){if(Ye>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ye|0}function $(Ye){return+Ye!=Ye&&(Ye=0),o.alloc(+Ye)}o.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==o.prototype},o.compare=function(ce,pe){if(gn(ce,Uint8Array)&&(ce=o.from(ce,ce.offset,ce.byteLength)),gn(pe,Uint8Array)&&(pe=o.from(pe,pe.offset,pe.byteLength)),!o.isBuffer(ce)||!o.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===pe)return 0;let nt=ce.length,wt=pe.length;for(let qt=0,Jt=Math.min(nt,wt);qt<Jt;++qt)if(ce[qt]!==pe[qt]){nt=ce[qt],wt=pe[qt];break}return nt<wt?-1:wt<nt?1:0},o.isEncoding=function(ce){switch(String(ce).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}},o.concat=function(ce,pe){if(!Array.isArray(ce))throw new TypeError('"list" argument must be an Array of BuLine 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
*/var MG=xv.exports,V8;function wG(){return V8||(V8=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,x="__lodash_placeholder__",B=1,k=2,P=4,U=1,N=2,W=1,V=2,$=4,oe=8,te=16,q=32,ne=64,G=128,ie=256,de=512,fe=30,Ee="...",me=800,Me=16,Le=1,xe=2,pt=3,Je=1/0,Ve=9007199254740991,je=17976931348623157e292,Se=NaN,Fe=4294967295,Ze=Fe-1,_t=Fe>>>1,Qt=[["ary",G],["bind",W],["bindKey",V],["curry",oe],["curryRight",te],["flip",de],["partial",q],["partialRight",ne],["rearg",ie]],gt="[object Arguments]",Ut="[object Array]",Pt="[object AsyncFunction]",ze="[object Boolean]",Ke="[object Date]",Oe="[object DOMException]",it="[object Error]",Ct="[object Function]",dt="[object GeneratorFunction]",Dt="[object Map]",$t="[object Number]",Rt="[object Null]",bn="[object Object]",Yn="[object Promise]",rn="[object Proxy]",er="[object RegExp]",Tn="[object Set]",gn="[object String]",Ln="[object Symbol]",br="[object Undefined]",mr="[object WeakMap]",tr="[object WeakSet]",Ye="[object ArrayBuffer]",ce="[object DataView]",pe="[object Float32Array]",nt="[object Float64Array]",wt="[object Int8Array]",qt="[object Int16Array]",Jt="[object Int32Array]",$n="[object Uint8Array]",Xe="[object Uint8ClampedArray]",ae="[object Uint16Array]",ve="[object Uint32Array]",p=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,Be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,ut=/[&<>"']/g,ot=RegExp(rt.source),zt=RegExp(ut.source),Gt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Xt=RegExp(Tr.source),_r=/^\s+/,Gr=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fr=/\{\n\/\* \[wrapped with (.+)\] \*/,yn=/,? & /,Ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pr=/[()=,{}\[\]\/\s]/,vs=/\\(\\)?/g,Ao=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,Cs=/^0b[01]+$/i,ds=/^\[object .+?Constructor\]$/,Xa=/^0o[0-7]+$/i,sa=/^(?:0|[1-9]\d*)$/,Wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Uo=/($^)/,So=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",tA="\\u0300-\\u036f",_l="\\ufe20-\\ufe2f",Ni="\\u20d0-\\u20ff",Mr=tA+_l+Ni,Da="\\u2700-\\u27bf",_s="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",xn=" \\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",qn="A-Z\\xc0-\\xd6\\xd8-\\xde",dn="\\ufe0e\\ufe0f",dr=Rs+qe+xt+xn,Wi="['’]",Co="["+pi+"]",as="["+dr+"]",fa="["+Mr+"]",nA="\\d+",Ci="["+Da+"]",$A="["+_s+"]",rA="[^"+pi+dr+nA+Da+_s+qn+"]",pa="\\ud83c[\\udffb-\\udfff]",Ea="(?:"+fa+"|"+pa+")",_c="[^"+pi+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",di="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+qn+"]",Ii="\\u200d",bl="(?:"+$A+"|"+rA+")",$o="(?:"+jr+"|"+rA+")",aa="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",js="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",jo=Ea+"?",iA="["+dn+"]?",ts="(?:"+Ii+"(?:"+[_c,Ws,di].join("|")+")"+iA+jo+")*",Qi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fa=iA+jo+ts,Ba="(?:"+[Ci,Ws,di].join("|")+")"+Fa,uo="(?:"+[_c+fa+"?",fa,Ws,di,Co].join("|")+")",Gs=RegExp(Wi,"g"),oA=RegExp(fa,"g"),Ja=RegExp(pa+"(?="+pa+")|"+uo+Fa,"g"),Oa=RegExp([jr+"?"+$A+"+"+aa+"(?="+[as,jr,"$"].join("|")+")",$o+"+"+js+"(?="+[as,jr+bl,"$"].join("|")+")",jr+"?"+bl+"+"+aa,jr+"+"+js,_o,Qi,nA,Ba].join("|"),"g"),MA=RegExp("["+Ii+pi+Mr+dn+"]"),wi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ZA=["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"],eo=-1,Sr={};Sr[pe]=Sr[nt]=Sr[wt]=Sr[qt]=Sr[Jt]=Sr[$n]=Sr[Xe]=Sr[ae]=Sr[ve]=!0,Sr[gt]=Sr[Ut]=Sr[Ye]=Sr[ze]=Sr[ce]=Sr[Ke]=Sr[it]=Sr[Ct]=Sr[Dt]=Sr[$t]=Sr[bn]=Sr[er]=Sr[Tn]=Sr[gn]=Sr[mr]=!1;var no={};no[gt]=no[Ut]=no[Ye]=no[ce]=no[ze]=no[Ke]=no[pe]=no[nt]=no[wt]=no[qt]=no[Jt]=no[Dt]=no[$t]=no[bn]=no[er]=no[Tn]=no[gn]=no[Ln]=no[$n]=no[Xe]=no[ae]=no[ve]=!0,no[it]=no[Ct]=no[mr]=!1;var J={À:"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",Line truncated
/* [wrapped with `+T+`] */
`)}function g(b){return xo(b)||Dp(b)||!!(Zh&&b&&b[Zh])}function E(b,T){var H=typeof b;return T=T??Ve,!!T&&(H=="number"||H!="symbol"&&sa.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,H){if(!yl(H))return!1;var Ce=typeof T;return(Ce=="number"?Lc(H)&&E(T,H.length):Ce=="string"&&T in H)?mc(H[T],b):!1}function K(b,T){if(xo(b))return!1;var H=typeof b;return H=="number"||H=="symbol"||H=="boolean"||b==null||Ah(b)?!0:Dn.test(b)||!Rn.test(b)||T!=null&&b in As(T)}function Z(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ue(b){var T=sd(b),H=at[T];if(typeof H!="function"||!(T in ri.prototype))return!1;if(b===H)return!0;var Ce=df(H);return!!Ce&&b===Ce[0]}function _e(b){return!!vh&&vh in b}var Pe=BA?Kh:y3;function Ne(b){var T=b&&b.constructor,H=typeof T=="function"&&T.prototype||tl;return b===H}function mt(b){return b===b&&!yl(b)}function Mt(b,T){return function(H){return H==null?!1:H[b]===T&&(T!==t||b in As(H))}}function tn(b){var T=fn(b,function(Ce){return H.size===v&&H.clear(),Ce}),H=T.cache;return T}function Yt(b,T){var H=b[1],Ce=T[1],He=H|Ce,ht=He<(W|V|G),Kt=Ce==G&&H==oe||Ce==G&&H==ie&&b[7].length<=T[8]||Ce==(G|ie)&&T[7].length<=T[8]&&H==oe;if(!(ht||Kt))return b;Ce&W&&(b[2]=T[2],He|=H&W?0:$);var Ht=T[3];if(Ht){var ln=b[3];b[3]=ln?hc(ln,Ht,T[4]):Ht,b[4]=ln?za(b[3],x):T[4]}return Ht=T[5],Ht&&(ln=b[5],b[5]=ln?lf(ln,Ht,T[6]):Ht,b[6]=ln?za(b[5],x):T[6]),Ht=T[7],Ht&&(b[7]=Ht),Ce&G&&(b[8]=b[8]==null?T[8]:Qs(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=He,b}function wn(b){var T=[];if(b!=null)for(var H in As(b))T.push(H);return T}function Fn(b){return JA.call(b)}function Zn(b,T,H){return T=xs(T===t?b.length-1:T,0),function(){for(var Ce=arguments,He=-1,ht=xs(Ce.length-T,0),Kt=An(ht);++He<ht;)Kt[He]=Ce[T+He];He=-1;for(var Ht=An(T+1);++He<T;)Ht[He]=Ce[He];return Ht[T]=H(Kt),ls(b,this,Ht)}}function Xn(b,T){return T.length<2?b:ou(b,Vr(T,0,-1))}function gr(b,T){for(var H=b.length,Ce=Qs(T.length,H),He=$l(b);Ce--;){var ht=T[Ce];b[Ce]=E(ht,H)?He[ht]:t}return b}function ur(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Rr=Oo(Hn),ii=Ec||function(b,T){return Or.setTimeout(b,T)},kr=Oo(kn);function ro(b,T,H){var Ce=T+"";return kr(b,u(Ce,Qa(Ta(Ce),H)))}function Oo(b){var T=0,H=0;return function(){var Ce=Sd(),He=Me-(Ce-H);if(H=Ce,He>0){if(++T>=me)return arguments[0]}else T=0;return b.apply(t,arguments)}}function ra(b,T){var H=-1,Ce=b.length,He=Ce-1;for(T=T===t?Ce:T;++H<T;){var ht=Lt(H,He),Kt=b[ht];b[ht]=b[H],b[H]=Kt}return b.length=T,b}var Ls=tn(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(pr,function(H,Ce,He,ht){T.push(He?ht.replace(vs,"$1"):Ce||H)}),T});function Aa(b){if(typeof b=="string"||Ah(b))return b;var T=b+"";return T=="0"&&1/b==-1/0?"-0":T}function ka(b){if(b!=null){try{return Zc.call(b)}catch{}try{return b+""}catch{}}return""}function Qa(b,T){return dl(Qt,function(H){var Ce="_."+H[0];T&H[1]&&!SA(b,Ce)&&b.push(Ce)}),b.sort()}function LA(b){if(b instanceof ri)return b.clone();var T=new Po(b.__wrapped__,b.__chain__);return T.__actions__=$l(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function al(b,T,H){(H?S(b,T,H):T===t)?T=1:T=xs(To(T),0);var Ce=b==null?0:b.length;if(!Ce||T<1)return[];for(var He=0,ht=0,Kt=An(Bc(Ce/T));He<Ce;)Kt[ht++]=Vr(b,He,He+=T);return Kt}function Ya(b){for(var T=-1,H=b==null?0:b.length,Ce=0,He=[];++T<H;){var ht=b[T];ht&&(He[Ce++]=ht)}return He}function us(){var b=arguments.length;if(!b)return[];for(var T=An(b-1),H=arguments[0],Ce=b;Ce--;)T[Ce-1]=arguments[Ce];return yu(xo(H)?$l(H):[H],ji(T,1))}var bi=on(function(b,T){return vA(b)?Eu(b,ji(T,1,vA,!0)):[]}),os=on(function(b,T){var H=Vu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),Pi(H,2)):[]}),Vs=on(function(b,T){var H=Vu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),t,H):[]});function ua(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),Vr(b,T<0?0:T,Ce)):[]}function ms(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),T=Ce-T,Vr(b,0,T<0?0:T)):[]}function UA(b,T){return b&&b.length?Ca(b,Pi(T,3),!0,!0):[]}function Io(b,T){return b&&b.length?Ca(b,Pi(T,3),!0):[]}function lh(b,T,H,Ce){var He=b==null?0:b.length;return He?(H&&typeof H!="number"&&S(b,T,H)&&(H=0,Ce=He),oh(b,T,H,Ce)):[]}function gA(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=H==null?0:To(H);return He<0&&(He=xs(Ce+He,0)),bc(b,Pi(T,3),He)}function dc(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=Ce-1;return H!==t&&(He=To(H),He=H<0?xs(Ce+He,0):Qs(He,Ce-1)),bc(b,Pi(T,3),He,!0)}function Fc(b){var T=b==null?0:b.length;return T?ji(b,1):[]}function ba(b){var T=b==null?0:b.length;return T?ji(b,Je):[]}function Pl(b,T){var H=b==null?0:b.length;return H?(T=T===t?1:To(T),ji(b,T)):[]}function kd(b){for(var T=-1,H=b==null?0:b.length,Ce={};++T<H;){var He=b[T];Ce[He[0]]=He[1]}return Ce}function Oh(b){return b&&b.length?b[0]:t}function Ih(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=H==null?0:To(H);return He<0&&( Line truncated
`;b.replace(Yr,function(oo,ys,Is,Wd,Fh,jd){return Is||(Is=Wd),fr+=b.slice(Qn,jd).replace(So,Mc),ys&&(Ht=!0,fr+=`' +
__e(`+ys+`) +
'`),Fh&&(ln=!0,fr+=`';
`+Fh+`;
__p += '`),Is&&(fr+=`' +
((__t = (`+Is+`)) == null ? '' : __t) +
'`),Qn=jd+oo.length,oo}),fr+=`';
`;var io=mo.call(T,"variable")&&T.variable;if(!io)fr=`with (obj) {
`+fr+`
}
`;else if(Pr.test(io))throw new Ei(o);fr=(ln?fr.replace(p,""):fr).replace(We,"$1").replace(Be,"$1;"),fr="function("+(io||"obj")+`) {
`+(io?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Ht?", __e = _.escape":"")+(ln?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+fr+`return __p
}`;var Jo=B_(function(){return po(ht,ki+"return "+fr).apply(t,Kt)});if(Jo.source=fr,Xy(Jo))throw Jo;return Jo}function b_(b){return Us(b).toLowerCase()}function x_(b){return Us(b).toUpperCase()}function M_(b,T,H){if(b=Us(b),b&&(H||T===t))return tf(b);if(!b||!(T=to(T)))return b;var Ce=aA(b),He=aA(T),ht=EA(Ce,He),Kt=Vh(Ce,He)+1;return Vl(Ce,ht,Kt).join("")}function w_(b,T,H){if(b=Us(b),b&&(H||T===t))return b.slice(0,bd(b)+1);if(!b||!(T=to(T)))return b;var Ce=aA(b),He=Vh(Ce,aA(T))+1;return Vl(Ce,0,He).join("")}function iv(b,T,H){if(b=Us(b),b&&(H||T===t))return b.replace(_r,"");if(!b||!(T=to(T)))return b;var Ce=aA(b),He=EA(Ce,aA(T));return Vl(Ce,He).join("")}function ov(b,T){var H=fe,Ce=Ee;if(yl(T)){var He="separator"in T?T.separator:He;H="length"in T?To(T.length):H,Ce="omission"in T?to(T.omission):Ce}b=Us(b);var ht=b.length;if(Vc(b)){var Kt=aA(b);ht=Kt.length}if(H>=ht)return b;var Ht=H-Zi(Ce);if(Ht<1)return Ce;var ln=Kt?Vl(Kt,0,Ht).join(""):b.slice(0,Ht);if(He===t)return ln+Ce;if(Kt&&(Ht+=ln.length-Ht),i1(He)){if(b.slice(Ht).search(He)){var Qn,Vn=ln;for(He.global||(He=$c(He.source,Us(ui.exec(He))+"g")),He.lastIndex=0;Qn=He.exec(Vn);)var fr=Qn.index;ln=ln.slice(0,fr===t?Ht:fr)}}else if(b.indexOf(to(He),Ht)!=Ht){var Yr=ln.lastIndexOf(He);Yr>-1&&(ln=ln.slice(0,Yr))}return ln+Ce}function rp(b){return b=Us(b),b&&ot.test(b)?b.replace(rt,Gf):b}var S_=td(function(b,T,H){return b+(H?" ":"")+T.toUpperCase()}),l1=Od("toUpperCase");function E_(b,T,H){return b=Us(b),T=H?t:T,T===t?_d(b)?Yf(b):qc(b):b.match(T)||[]}var B_=on(function(b,T){try{return ls(b,t,T)}catch(H){return Xy(H)?H:new Ei(H)}}),A3=Ia(function(b,T){return dl(T,function(H){H=Aa(H),Qu(b,H,cr(b[H],b))}),b});function u3(b){var T=b==null?0:b.length,H=Pi();return b=T?ns(b,function(Ce){if(typeof Ce[1]!="function")throw new fl(l);return[H(Ce[0]),Ce[1]]}):[],on(function(Ce){for(var He=-1;++He<T;){var ht=b[He];if(ls(ht[0],this,Ce))return ls(ht[1],this,Ce)}})}function c3(b){return Qr(ml(b,B))}function sv(b){return function(){return b}}function h3(b,T){return b==null||b!==b?T:b}var d3=uf(),Nd=uf(!0);function Zu(b){return b}function A1(b){return Y(typeof b=="function"?b:ml(b,B))}function f3(b){return ke(ml(b,B))}function p3(b,T){return Ge(b,ml(T,B))}var m3=on(function(b,T){return function(H){return ol(H,b,T)}}),Xu=on(function(b,T){return function(H){return ol(b,H,T)}});function jc(b,T,H){var Ce=Re(T),He=PA(T,Ce);H==null&&!(yl(T)&&(He.length||!Ce.length))&&(H=T,T=b,b=this,He=PA(T,Re(T)));var ht=!(yl(H)&&"chain"in H)||!!H.chain,Kt=Kh(b);return dl(He,function(Ht){var ln=T[Ht];b[Ht]=ln,Kt&&(b.prototype[Ht]=function(){var Qn=this.__chain__;if(ht||Qn){var Vn=b(this.__wrapped__),fr=Vn.__actions__=$l(this.__actions__);return fr.push({func:ln,args:arguments,thisArg:b}),Vn.__chain__=Qn,Vn}return ln.apply(b,yu([this.value()],arguments))})}),b}function Sm(){return Or._===this&&(Or._=nl),this}function Dh(){}function Em(b){return b=To(b),on(function(T){return ct(T,b)})}var bf=$f(ns),AW=$f(ph),uW=$f(sA);function i8(b){return K(b)?ef(Aa(b)):St(b)}function cW(b){return function(T){return b==null?t:ou(b,T)}}var hW=Rc(),dW=Rc(!0);function g3(){return[]}function y3(){return!1}function fW(){return{}}function pW(){return""}function mW(){return!0}function gW(b,T){if(b=To(b),b<1||b>Ve)return[];var H=Fe,Ce=Qs(b,Fe);T=Pi(T),b-=Fe;for(var He=Cd(Ce,T);++H<b;)T(H);return He}function yW(b){return xo(b)?ns(b,Aa):Ah(b)?[b]:$l(Ls(Us(b)))}function vW(b){var T=++bu;return Us(b)+T}var CW=qu(function(b,T){return b+T},0),_W=fA("ceil"),bW=qu(function(b,T){return b/T},1),xW=fA("floor");function MW(b){return b&&b.length?Yl(b,Zu,su):t}function wW(b,T){return b&&b.length?Yl(b,Pi(T,2),su):t}function SW(b){return Qh(b,Zu)}function EW(b,T){return Qh(b,Pi(T,2))}function BW(b){return b&&b.length?Yl(b,Zu,ge):t}function OW(b,T){return b&&b.length?Yl(b,Pi(T,2),ge):t}var IW=qu(function(b,T){return b*T},1),TW=fA("round"),kW=qu(function(b,T){return b-T},0);function PW(b){return b&&b.length?Yh(b,Zu):0}function KW(b,T){return b&&b.length?Yh(b,Pi(T,2)):0}return at.after=jt,at.ary=Sn,at.assign=rv,at.assignIn=__,at.assignInWith=h,at.assignWith=A,at.at=d,at.before=ar,at.bind=cr,at.bindAll=A3,at.bindKey=rr,at.castArray=s_,at.chain=Pp,at.chunk=al,at.compact=Ya,at.concat=us,at.cond=u3,at.conforms=c3,at.constant=sv,at.countBy=V0,at.create=y,at.curry=Ur,at.curryRight=ei,at.debounce=ai,at.defaults=w,at.defaultsDeep=R,at.defer=Rl,at.delay=cn,at.difference=bi,at.differenceBy=os,at.differenceWith=Vs,at.drop=ua,at.dropRight=ms,at.dropRightWhile=UA,at.dropWhile=Io,at.fill=lh,at.filter=mm,at.flatMap=ym,at.flatMapDeep=Hy,at.flatMapDepth=H0,at.flatten=Fc,at.flattenDeep=ba,at.flattenDepth=Pl,at.flip=Zt,at.flow=d3,at.flowRight=Nd,at.fromPairs=kd,at.functions=De,at.functionsIn=Ue,at.groupBy=$0,at.initial=qm,at.intersection=G0,at.intersectionBy=Pd,at.intersectionWith=cm,at.invert=vt,at.invertBy=Wt,at.invokeMap=e1,at.iteratee=A1,at.keyBy=t1,at.keys=Re,at.keysIn=st,at.map=Cf,at.mapKeys=Tt,at.mapValues=hn,at.matches=f3,at.matchesProperty=p3,at.memoiz Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&k.push(new wr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Ky(Eg(l))&&VA(l.type)==="identity"&&k.push(new wr(t,l,'"text-font" does not support identity functions'))),k.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function OF(n){return BF(n,"paint")}function IF(n){return BF(n,"layout")}function TF(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;!t.type&&!t.ref&&e.push(new wr(r,t,'either "type" or "ref" is required'));let l=VA(t.type);const o=VA(t.ref);if(t.id){const f=VA(t.id);for(let v=0;v<n.arrayIndex;v++){const x=i.layers[v];VA(x.id)===f&&e.push(new wr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${x.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(v=>{v in t&&e.push(new wr(r,t[v],`"${v}" is prohibited for ref layers`))});let f;i.layers.forEach(v=>{VA(v.id)===o&&(f=v)}),f?f.ref?e.push(new wr(r,t.ref,"ref cannot reference another ref layer")):l=VA(f.type):e.push(new wr(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new wr(r,t,'missing required property "source"'));else{const f=i.sources&&i.sources[t.source],v=f&&VA(f.type);f?v==="vector"&&l==="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster source`)):v!=="raster-dem"&&l==="hillshade"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):v==="raster"&&l!=="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a vector source`)):v==="vector"&&!t["source-layer"]?e.push(new wr(r,t,`layer "${t.id}" must specify a "source-layer"`)):v==="raster-dem"&&l!=="hillshade"?e.push(new wr(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(v!=="geojson"||!f.lineMetrics)&&e.push(new wr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new wr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Of({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:xB,layout(f){return Of({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return IF(vy({layerType:l},v))}}})},paint(f){return Of({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return OF(vy({layerType:l},v))}}})}}})),e}function Bg(n){const e=n.value,t=n.key,r=Ps(e);return r!=="string"?[new wr(t,e,`string expected, ${r} found`)]:[]}function kq(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const f=Ps(r);if(r===void 0)return o;if(f!=="object")return o.push(new wr("source_raster_dem",r,`object expected, ${f} found`)),o;const x=VA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!x&&B.includes(P)?o.push(new wr(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):s[P]?o=o.concat(n.validateSpec({key:P,value:r[P],valueSpec:s[P],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new wr(P,r[P],`unknown property "${P}"`));return o}const _7={promoteId:Pq};function kF(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new wr(t,e,'"type" is required')];const l=VA(e.type);let o;switch(l){case"vector":case"raster":return o=Of({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:_7,validateSpec:s}),o;case"raster-dem":return o=kq({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Of({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:_7}),e.cluster)for(const f in e.clusterProperties){const[v,x]=e.clusterProperties[f],B=typeof v=="string"?[v,["accumulated"],["get",f]]:v;o.push(..._y({key:`${t}.${f}.map`,value:x,expressionContext:"cluster-map"})),o.push(..._y({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Of({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Of({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new wr(t,null,"Please use runtime APIs to add canvas sources, rather than including them inLine truncated
${B}`),N].join(`
${o}`)}return v}(n,"",0)}function x7(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 UF(n,e=2){return n=x7(n,Es.$root),n.layers&&(n.layers=n.layers.map(t=>x7(t,Es.layer))),jq(n,{indent:e})}function G3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function M7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function qE(n,e){return typeof e=="string"&&e[0]==="@"?qE(n,n.constants[e]):e}function Gq(n){return Array.isArray(n.stops)}function uv(n,e,t){n[t]=n[e],delete n[e]}function Qq(n){n.version=8,Oq(n,i=>{i.type==="video"&&i.url!==void 0&&uv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),Yv(n,i=>{G3(i,s=>{s["symbol-min-distance"]!==void 0&&uv(s,"symbol-min-distance","symbol-spacing")}),M7(i,s=>{s["background-image"]!==void 0&&uv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&uv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&uv(s,"fill-image","fill-pattern")})}),CB(n,{paint:!0,layout:!0},i=>{const s=qE(n,i.value);Gq(s)&&s.stops.forEach(l=>{l[1]=qE(n,l[1])}),i.set(s)}),delete n.constants,Yv(n,i=>{G3(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),M7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}Yv(n,i=>{G3(i,s=>{s["text-font"]&&(s["text-font"]=e(s["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 Yq(n){const e=[];return Yv(n,t=>{t.filter&&(t.filter=Qv(t.filter))}),CB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Ry(r)||(typeof r=="object"&&!Array.isArray(r)?(s(mB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(MF(r)))}),n}function qq(n){return JSON.parse(Vq(JSON.stringify(n)))}function Vq(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(f=>f.endsWith("%")?f:`${parseFloat(f)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function Hq(n){let e=!1;if(n.version===7&&(n=Qq(n),e=!0),n.version===8&&(e=!!Yq(n),e=!0),CB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(qq(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const $q=Es,Zq={StyleExpression:bF,StylePropertyFunction:ox,ZoomConstantExpression:GE,ZoomDependentExpression:QE,createExpression:rx,createPropertyExpression:ix,isExpression:Ry,isExpressionFilter:DC,isZoomExpression:fq,normalizePropertyExpression:pq},Xq={convertFunction:mB,createFunction:pB,isFunction:Ky};var sx=TC();const Jq=hl(sx);var _b={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.4.0/LICENSE.txt
*/var eV=_b.exports,w7;function tV(){return w7||(w7=1,function(n,e){(function(t,r){n.exports=r()})(eV,function(){var t={},r={};function i(l,o,f){if(r[l]=f,l==="index"){var v="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",x={};return r.shared(x),r.index(t,x),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([v],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(h,A,d,y){return new(d||(d=Promise))(function(w,R){function F(re){try{X(y.next(re))}catch(he){R(he)}}function j(re){try{X(y.throw(re))}catch(he){R(he)}}function X(re){var he;re.done?w(re.value):(he=re.value,he instanceof d?he:new d(function(be){be(he)})).then(F,j)}X((y=y.apply(h,A||[])).next())})}function f(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var v,x;function B(){if(x)return v;function h(A,d){this.x=A,this.y=d}return x=1,v=h,h.prototype={clone:function(){return new h(this.x,this.y)},add:function(A){return this.clone()._add(A)},sub:function(A){return this.clone()._sub(A)},multByPoint:function(A){return this.clone()._multByPoint(A)},divByPoint:function(A){return this.clone()._divByPoint(A)},mult:function(A){return this.clone()._mult(A)},div:function(A){return this.clone()._div(A)},rotate:function(A){return this.clone()._rotate(A)},rotateAround:function(A,d){return this.clone()._rotateAround(A,d)},matMult:function(A){return this.clone()._matMult(A)},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(A){return this.x===A.x&&this.y===A.y},dist:function(A){return Math.sqrt(this.distSqr(A))},distSqr:function(A){var d=A.x-this.x,y=A.y-this.y;return d*d+y*y},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(A){return Math.atan2(this.y-A.y,this.x-A.x)},angleWith:function(A){return this.angleWithSep(A.x,A.y)},angleWithSep:function(A,d){return Math.atan2(this.x*d-this.y*A,this.x*A+this.y*d)},_matMult:function(A){var d=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=d,this},_add:function(A){return this.x+=A.x,this.y+=A.y,this},_sub:function(A){return this.x-=A.x,this.y-=A.y,this},_mult:function(A){return this.x*=A,this.y*=A,this},_div:function(A){return this.x/=A,this.y/=A,this},_multByPoint:function(A){return this.x*=A.x,this.y*=A.y,this},_divByPoint:function(A){return this.x/=A.x,this.y/=A.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var A=this.y;return this.y=this.x,this.x=-A,this},_rotate:function(A){var d=Math.cos(A),y=Math.sin(A),w=y*this.x+d*this.y;return this.x=d*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,d){var y=Math.cos(A),w=Math.sin(A),R=d.y+w*(this.x-d.x)+y*(this.y-d.y);return this.x=d.x+y*(this.x-d.x)-w*(this.y-d.y),this.y=R,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},h.convert=function(A){return A instanceof h?A:Array.isArray(A)?new h(A[0],A[1]):A},v}typeof SuppressedError=="function"&&SuppressedError;var k,P,U=f(B()),N=function(){if(P)return k;function h(A,d,y,w){this.cx=3*A,this.bx=3*(y-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(w-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=d,this.p2x=y,this.p2y=w}return P=1,k=h,h.prototype={sampleCurveX:function(A){return((this.ax*A+this.bx)*A+this.cx)*A},sampleCurveY:function(A){return((this.ay*A+this.by)*A+this.cy)*A},sampleCurveDerivativeX:function(A){return(3*this.ax*A+2*this.bx)*A+this.cx},solveCurveX:function(A,d){if(d===void 0&&(d=1e-6),A<0)return 0;if(A>1)return 1;for(var y=A,w=0;w<8;w++){var R=this.sampleCurveX(y)-A;if(Math.abs(R)<d)return y;var F=this.sampleCurveDerivativeX(y);if(Math.abs(F)<1e-6)break;y-=R/F}var j=0,X=1;for(y=A,w=0;w<20&&(R=this.sampleCurveX(y),!(Math.abs(R-A)<d));w++)A>R?j=y:X=y,y=.5*(X-j)+j;return y},solve:function(A,d){return this.sampleCurveY(this.solveCurveX(A,d))}},k}(),W=f(N);let V,$;function oe(){return V==null&&(V=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),V}function te(){if($==null&&($=!1,oe())){const A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let y=0;y<5*5;y++){const w=4*y;A.fillStyle=`rgb(${w},${w+1},${w+2})`,A.fillRect(y%5,Math.floor(y/5),1,1)}const d=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&d[y]!==y){$=!0;break}}}return $||!1}var q=1e-6,ne=typeof Float32Array<"u"?Float32Array:Array;function G(){var h=new ne(9);return ne!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function ie(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function de(){var h=new ne(3);return ne!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function fe(h){return Math.hypot(h[0],h[1],h[2])}function Ee(h,A,d){var y=new neLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(be[1])} }\`.`)];const De=[];return h.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&De.push(new Xt(d,F,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&nl(xu(F))&&fs(F.type)==="identity"&&De.push(new Xt(d,F,'"text-font" does not support identity functions'))),De.concat(y({key:h.key,value:F,valueSpec:he,style:w,styleSpec:R,expressionContext:"property",propertyType:A,propertyKey:j}))}function Tc(h){return Ac(h,"paint")}function OA(h){return Ac(h,"layout")}function wu(h){let A=[];const d=h.value,y=h.key,w=h.style,R=h.styleSpec;d.type||d.ref||A.push(new Xt(y,d,'either "type" or "ref" is required'));let F=fs(d.type);const j=fs(d.ref);if(d.id){const X=fs(d.id);for(let re=0;re<h.arrayIndex;re++){const he=w.layers[re];fs(he.id)===X&&A.push(new Xt(y,d.id,`duplicate layer id "${d.id}", previously used at line ${he.id.__line__}`))}}if("ref"in d){let X;["type","source","source-layer","filter","layout"].forEach(re=>{re in d&&A.push(new Xt(y,d[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{fs(re.id)===j&&(X=re)}),X?X.ref?A.push(new Xt(y,d.ref,"ref cannot reference another ref layer")):F=fs(X.type):A.push(new Xt(y,d.ref,`ref layer "${j}" not found`))}else if(F!=="background")if(d.source){const X=w.sources&&w.sources[d.source],re=X&&fs(X.type);X?re==="vector"&&F==="raster"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a raster source`)):re!=="raster-dem"&&F==="hillshade"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a raster-dem source`)):re==="raster"&&F!=="raster"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a vector source`)):re!=="vector"||d["source-layer"]?re==="raster-dem"&&F!=="hillshade"?A.push(new Xt(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!d.paint||!d.paint["line-gradient"]||re==="geojson"&&X.lineMetrics||A.push(new Xt(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new Xt(y,d,`layer "${d.id}" must specify a "source-layer"`)):A.push(new Xt(y,d.source,`source "${d.source}" not found`))}else A.push(new Xt(y,d,'missing required property "source"'));return A=A.concat(Xs({key:y,value:d,valueSpec:R.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:d.type,valueSpec:R.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:d,objectKey:"type"}),filter:Ic,layout:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>OA(_r({layerType:F},re))}}),paint:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>Tc(_r({layerType:F},re))}})}})),A}function pl(h){const A=h.value,d=h.key,y=Xi(A);return y!=="string"?[new Xt(d,A,`string expected, ${y} found`)]:[]}const IA={promoteId:function({key:h,value:A}){if(Xi(A)==="string")return pl({key:h,value:A});{const d=[];for(const y in A)d.push(...pl({key:`${h}.${y}`,value:A[y]}));return d}}};function Ed(h){const A=h.value,d=h.key,y=h.styleSpec,w=h.style,R=h.validateSpec;if(!A.type)return[new Xt(d,A,'"type" is required')];const F=fs(A.type);let j;switch(F){case"vector":case"raster":return j=Xs({key:d,value:A,valueSpec:y[`source_${F.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:IA,validateSpec:R}),j;case"raster-dem":return j=function(X){var re;const he=(re=X.sourceName)!==null&&re!==void 0?re:"",be=X.value,De=X.styleSpec,Ue=De.source_raster_dem,Qe=X.style;let et=[];const At=Xi(be);if(be===void 0)return et;if(At!=="object")return et.push(new Xt("source_raster_dem",be,`object expected, ${At} found`)),et;const vt=fs(be.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],Et=X.value.encoding?`"${X.value.encoding}"`:"Default";for(const Re in be)!vt&&Wt.includes(Re)?et.push(new Xt(Re,be[Re],`In "${he}": "${Re}" is only valid when "encoding" is set to "custom". ${Et} encoding found`)):Ue[Re]?et=et.concat(X.validateSpec({key:Re,value:be[Re],valueSpec:Ue[Re],validateSpec:X.validateSpec,style:Qe,styleSpec:De})):et.push(new Xt(Re,be[Re],`unknown property "${Re}"`));return et}({sourceName:d,value:A,style:h.style,styleSpec:y,validateSpec:R}),j;case"geojson":if(j=Xs({key:d,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:R,objectElementValidators:IA}),A.cluster)for(const X in A.clusterProperties){const[re,he]=A.clusterProperties[X],be=typeof re=="string"?[re,["accumulated"],["get",X]]:re;j.push(...Ml({key:`${d}.${X}.map`,value:he,expressionContext:"cluster-map"})),j.push(...Ml({key:`${d}.${X}.reduce`,value:be,expressionContext:"cluster-reduce"}))}return j;case"video":return Xs({key:d,value:A,valueSpec:y.source_video,style:w,validateSpec:R,styleSpec:y});case"image":retuLine truncated
precision mediump float;
#else
#if !defined(lowp)
#define lowp
#endif
#if !defined(mediump)
#define mediump
#endif
#if !defined(highp)
#define highp
#endif
#endif
out highp vec4 fragColor;`,`#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;}mat3 rotationMatrixFromAxisAngle(vec3 u,float angle) {float c=cos(angle);float s=sin(angle);float c2=1.0-c;return mat3(u.x*u.x*c2+ c,u.x*u.y*c2-u.z*s,u.x*u.z*c2+u.y*s,u.y*u.x*c2+u.z*s,u.y*u.y*c2+ c,u.y*u.z*c2-u.x*s,u.z*u.x*c2-u.y*s,u.z*u.y*c2+u.x*s,u.z*u.z*c2+ c
);}
#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(texture(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=(texture(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
#ifdef GLOBE
if ((pos.y <-32767.5) || (pos.y > 32766.5)) {return 0.0;}
#endif
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
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:Ii("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:Ii("",`#define GLOBE_RADIUS 6371008.8
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:Ii(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:Ii(`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;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"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;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);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:Ii(`in vec3 v_data;in 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);float antialiased_blur=v_data.z;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));fragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);const float epsilon=0.5/255.0;if (fragColor.r < epsilon && fragColor.g < epsilon && fragColor.b < epsilon && fragColor.a < epsilon) {discard;}
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform highp float u_globe_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;uniform vec2 u_translate;in vec2 a_pos;out vec3 v_data;out 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 pos_raw=a_pos+32768.0;vec2 extrude=vec2(mod(pos_raw,8.0)/7.0*2.0-1.0);vec2 circle_center=floor(pos_raw/8.0)+u_translate;float ele=get_elevation(circle_center);v_visibility=calculate_visibility(projectTileWithElevation(circle_center,ele));if (u_pitch_with_map) {
#ifdef GLOBE
vec3 center_vector=projectToSphere(circle_center);
#endif
float angle_scale=u_globe_extrude_scale;vec2 corner_position=circle_center;if (u_scale_with_map) {angle_scale*=(radius+stroke_width);corner_position+=extrude*u_extrude_scale*(radius+stroke_width);} else {
#ifdef GLOBE
vec4 projected_center=interpolateProjection(circle_center,center_vector,ele);
#else
vec4 projected_center=projectTileWithElevation(circle_center,ele);
#endif
corner_position+=extrude*u_extrude_scale*(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);angle_scale*=(radius+stroke_width)*(projected_center.w/u_camera_to_center_distance);}
#ifdef GLOBE
vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(corner_position,corner_vector,ele);
#else
gl_Position=projectTileWithElevation(corner_position,ele);
#endif
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}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;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Ii(di,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Ii(`uniform highp float u_intensity;in 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);fragColor=vec4(val,1.0,1.0,1.0);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;uniform highp float u_globe_extrude_scale;in vec2 a_pos;out 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 pos_raw=a_pos+32768.0;vec2 unscaled_extrude=vec2(mod(pos_raw,8.0)/7.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;vec2 circle_center=floor(pos_raw/8.0);
#ifdef GLOBE
vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToSphere(circle_center);vec3 corner_vector=globeRotateVector(center_vector,angles);gl_Position=interpolateProjection(circle_center+extrude,corner_vector,0.0);
#else
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
#endif
}`),heatmapTexture:Ii(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(0.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out 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:Ii("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Ii("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;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);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {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;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Ii("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:Ii(di,`in vec2 a_pos;void main() {
#ifdef GLOBE
gl_Position=projectTileFor3D(a_pos,0.0);
#else
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
#endif
}`),fill:Ii(`#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
fragColor=color*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_fill_translate;in vec2 a_pos;
#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=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:Ii(`in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#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);fragColor=outline_color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#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=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillOutlinePattern:Ii(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(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=texture(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);fragColor=mix(color1,color2,u_fade)*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;out vec2 v_pos;
#ifdef GLOBE
out float v_depth;
#endif
#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=projectTile(a_pos+u_fill_translate,a_pos);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;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
}`),fillPattern:Ii(`#ifdef GL_ES
precision highp float;
#endif
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in 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=texture(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=texture(u_image,pos2);fragColor=mix(color1,color2,u_fade)*opacity;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;uniform vec2 u_fill_translate;in vec2 a_pos;out vec2 v_pos_a;out 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=projectTile(a_pos+u_fill_translate,a_pos);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:Ii(`in vec4 v_color;void main() {fragColor=v_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec2 u_fill_translate;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
out 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);float elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
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;vec3 normalForLighting=normal/16384.0;float directional=clamp(dot(normalForLighting,u_lightpos),0.0,1.0);
#ifdef GLOBE
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
#endif
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:Ii(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in 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=texture(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=texture(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);fragColor=mixedColor*v_lighting;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`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 vec2 u_fill_translate;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp vec3 u_lightpos_globe;uniform lowp float u_lightintensity;in vec2 a_pos;in vec4 a_normal_ed;
#ifdef TERRAIN3D
in vec2 a_centroid;
#endif
#ifdef GLOBE
out vec3 v_sphere_pos;
#endif
out vec2 v_pos_a;out vec2 v_pos_b;out 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 elevation=t > 0.0 ? height : base;vec2 posInTile=a_pos+u_fill_translate;
#ifdef GLOBE
vec3 spherePos=projectToSphere(posInTile,a_pos);vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);v_sphere_pos=elevatedPos;gl_Position=interpolateProjectionFor3D(posInTile,spherePos,elevation);
#else
gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
#endif
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
? a_pos
: vec2(edgedistance,elevation*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:Ii(`#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(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));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
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out 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:Ii(`uniform sampler2D u_image;in 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=texture(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);fragColor=accent_color*(1.0-shade_color.a)+shade_color;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:Ii(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#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);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp float v_linesofar;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),lineGradient:Ii(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(u_image,v_uv);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
in vec2 a_pos_normal;in vec4 a_data;in float a_uv_x;in float a_split_index;uniform vec2 u_translation;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;out vec2 v_normal;out vec2 v_width2;out float v_gamma_scale;out highp vec2 v_uv;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
#endif
v_width2=vec2(outset,inset);}`),linePattern:Ii(`#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;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
#ifdef GLOBE
in float v_depth;
#endif
#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(texture(u_image,pos_a),texture(u_image,pos_b),u_fade);fragColor=color*alpha*opacity;
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;out vec2 v_normal;out vec2 v_width2;out float v_linesofar;out float v_gamma_scale;out float v_width;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.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:Ii(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
#ifdef GLOBE
in float v_depth;
#endif
#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=texture(u_image,v_tex_a).a;float sdfdist_b=texture(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);fragColor=color*(alpha*opacity);
#ifdef GLOBE
if (v_depth > 1.0) {discard;}
#endif
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`
#define scale 0.015873016
#define LINE_DISTANCE_SCALE 2.0
in vec2 a_pos_normal;in vec4 a_data;uniform vec2 u_translation;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;out vec2 v_normal;out vec2 v_width2;out vec2 v_tex_a;out vec2 v_tex_b;out float v_gamma_scale;
#ifdef GLOBE
out float v_depth;
#endif
#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);float adjustedThickness=projectLineThickness(pos.y);vec4 projected_no_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation);vec4 projected_with_extrude=projectTile(pos+offset2/u_ratio*adjustedThickness+u_translation+dist/u_ratio*adjustedThickness);gl_Position=projected_with_extrude;
#ifdef GLOBE
v_depth=gl_Position.z/gl_Position.w;
#endif
#ifdef TERRAIN3D
v_gamma_scale=1.0;
#else
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.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:Ii(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in 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=texture(u_image0,v_pos0);vec4 color1=texture(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);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;uniform vec4 u_coords_top;uniform vec4 u_coords_bottom;in vec2 a_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {vec2 fractionalPos=a_pos/8192.0;vec2 position=mix(mix(u_coords_top.xy,u_coords_top.zw,fractionalPos.x),mix(u_coords_bottom.xy,u_coords_bottom.zw,fractionalPos.x),fractionalPos.y);gl_Position=projectTile(position,position);v_pos0=((fractionalPos-0.5)/u_buffer_scale)+0.5;
#ifdef GLOBE
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
#endif
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:Ii(`uniform sampler2D u_texture;in vec2 v_tex;in 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;fragColor=texture(u_texture,v_tex)*alpha;
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in 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_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec2 v_tex;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;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:Ii(`#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;in vec2 v_data0;in 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=texture(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);}fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec4 a_pixeloffset;in vec3 a_projected_pos;in 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_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;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_translation;uniform float u_pitched_scale;out vec2 v_data0;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:Ii(`#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;in vec4 v_data0;in 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;fragColor=texture(u_texture_icon,tex_icon)*alpha;
#ifdef OVERDRAW_INSPECTOR
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=texture(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);fragColor=color*(alpha*opacity*fade_opacity);
#ifdef OVERDRAW_INSPECTOR
fragColor=vec4(1.0);
#endif
}`,`in vec4 a_pos_offset;in vec4 a_data;in vec3 a_projected_pos;in 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_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;uniform bool u_is_along_line;uniform bool u_is_variable_anchor;uniform vec2 u_translation;uniform float u_pitched_scale;out vec4 v_data0;out 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;}vec2 translated_a_pos=a_pos+u_translation;vec4 projectedPoint=projectTileWithElevation(translated_a_pos,ele);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=projectTileWithElevation(translated_a_pos+vec2(1,0),ele);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;if (u_is_along_line || u_is_variable_anchor) {projected_pos=vec4(a_projected_pos.xy,ele,1.0);} else if (u_pitch_with_map) {projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy+u_translation,ele,1.0);} else {projected_pos=u_label_plane_matrix*projectTileWithElevation(a_projected_pos.xy+u_translation,ele);}float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;float projectionScaling=1.0;
#ifdef GLOBE
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
#endif
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;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:Ii("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ii("in 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() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ii("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:Ii("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:Ii(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ii("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ii(O,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=a.match(/in ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=I?I.concat(M):M,Y={};return{fragmentSource:O=O.replace(c,(ee,se,ge,Te,ke)=>(Y[ke]=!0,se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
in ${ge} ${Te} ${ke};
#else
uniform ${ge} ${Te} u_${ke};
#endif
`:`
#ifdef HAS_UNIFORM_u_${ke}
${ge} ${Te} ${ke} = u_${ke};
#endif
`)),vertexSource:a=a.replace(c,(ee,se,ge,Te,ke)=>{const Ge=Te==="float"?"vec2":"vec4",$e=ke.match(/color/)?"color":Ge;return Y[ke]?se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${ge} ${Ge} a_${ke};
out ${ge} ${Te} ${ke};
#else
uniform ${ge} ${Te} u_${ke};
#endif
`:$e==="vec4"?`
#ifndef HAS_UNIFORM_u_${ke}
${ke} = a_${ke};
#else
${ge} ${Te} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${ke}
${ke} = unpack_mix_${$e}(a_${ke}, u_${ke}_t);
#else
${ge} ${Te} ${ke} = u_${ke};
#endif
`:se==="define"?`
#ifndef HAS_UNIFORM_u_${ke}
uniform lowp float u_${ke}_t;
in ${ge} ${Ge} a_${ke};
#else
uniform ${ge} ${Te} u_${ke};
#endif
`:$e==="vec4"?`
#ifndef HAS_UNIFORM_u_${ke}
${ge} ${Te} ${ke} = a_${ke};
#else
${ge} ${Te} ${ke} = u_${ke};
#endif
`:`
#ifndef HAS_UNIFORM_u_${ke}
${ge} ${Te} ${ke} = unpack_mix_${$e}(a_${ke}, u_${ke}_t);
#else
${ge} ${Te} ${ke} = u_${ke};
#endif
`}),staticAttributes:C,staticUniforms:z}}class bl{constructor(a,c,C){this.vertexBuffer=a,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var $o=o.aG([{name:"a_pos",type:"Int16",components:2}]);const aa="#define PROJECTION_MERCATOR",js="mercator";class jo{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return js}get shaderDefine(){return aa}get shaderPreludeCode(){return jr.projectionMercator}get vertexShaderPreludeCode(){return jr.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aH.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,c,C,M,I){if(this._cachedMesh)return this._cachedMesh;const z=new o.aI;z.emplaceBack(0,0),z.emplaceBack(o.Z,0),z.emplaceBack(0,o.Z),z.emplaceBack(o.Z,o.Z);const Y=a.createVertexBuffer(z,$o.members),ee=o.aJ.simpleSegment(0,0,4,2),se=new o.aK;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ge=a.createIndexBuffer(se);return this._cachedMesh=new bl(Y,ge,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class iA{constructor(a=0,c=0,C=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=c,this.left=C,this.right=M}interpolate(a,c,C){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,C)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,C)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,C)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,C)),this}getCenter(a,c){const C=o.ae((this.left+a-this.right)/2,0,a),M=o.ae((this.top+c-this.bottom)/2,0,c);return new o.P(C,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new iA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function ts(O,a){if(!O.renderWorldCopies||O.lngRange)return;const c=a.lng-O.center.lng;a.lng+=c>180?-360:c<-180?360:0}function Qi(O){return Math.max(0,Math.floor(O))}class _o{constructor(a,c,C,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=I??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.Q(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,C){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new iA(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!C&&a.autoCalculateNearFarZ,c&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(a){this._minZoom!==a&&(this._minZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(a){this._minPitch!==a&&(this._minPitch=a,this.setPitch(Math.max(this.pitch,a)))}get maxPitch(){return this._maxPitch}setMax Line truncated
`),It=Bt.concat(jr.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
`);lt(se)||(St=function(an){return an.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(St),It=function(an){return an.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(It));const kt=se.createShader(se.FRAGMENT_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(kt,St),se.compileShader(kt),!se.getShaderParameter(kt,se.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${se.getShaderInfoLog(kt)}`);se.attachShader(this.program,kt);const Lt=se.createShader(se.VERTEX_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Lt,It),se.compileShader(Lt),!se.getShaderParameter(Lt,se.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${se.getShaderInfoLog(Lt)}`);se.attachShader(this.program,Lt),this.attributes={};const sn={};this.numAttributes=ke.length;for(let an=0;an<this.numAttributes;an++)ke[an]&&(se.bindAttribLocation(this.program,an,ke[an]),this.attributes[ke[an]]=an);if(se.linkProgram(this.program),!se.getProgramParameter(this.program,se.LINK_STATUS))throw new Error(`Program failed to link: ${se.getProgramInfoLog(this.program)}`);se.deleteShader(Lt),se.deleteShader(kt);for(let an=0;an<bt.length;an++){const on=bt[an];if(on&&!sn[on]){const Cn=se.getUniformLocation(this.program,on);Cn&&(sn[on]=Cn)}}this.fixedUniforms=M(a,sn),this.terrainUniforms=((an,on)=>({u_depth:new o.bH(an,on.u_depth),u_terrain:new o.bH(an,on.u_terrain),u_terrain_dim:new o.b8(an,on.u_terrain_dim),u_terrain_matrix:new o.bJ(an,on.u_terrain_matrix),u_terrain_unpack:new o.bK(an,on.u_terrain_unpack),u_terrain_exaggeration:new o.b8(an,on.u_terrain_exaggeration)}))(a,sn),this.projectionUniforms=((an,on)=>({u_projection_matrix:new o.bJ(an,on.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(an,on.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(an,on.u_projection_clipping_plane),u_projection_transition:new o.b8(an,on.u_projection_transition),u_projection_fallback_matrix:new o.bJ(an,on.u_projection_fallback_matrix)}))(a,sn),this.binderUniforms=C?C.getUniforms(a,sn):[]}draw(a,c,C,M,I,z,Y,ee,se,ge,Te,ke,Ge,$e,ft,ct,yt,bt,Bt){const St=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(C),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),ee){a.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,ee.texture);for(const kt in this.terrainUniforms)this.terrainUniforms[kt].set(ee[kt])}if(se)for(const kt in se)this.projectionUniforms[Jd[kt]].set(se[kt]);if(Y)for(const kt in this.fixedUniforms)this.fixedUniforms[kt].set(Y[kt]);ct&&ct.setUniforms(a,this.binderUniforms,$e,{zoom:ft});let It=0;switch(c){case St.LINES:It=2;break;case St.TRIANGLES:It=3;break;case St.LINE_STRIP:It=1}for(const kt of Ge.get()){const Lt=kt.vaos||(kt.vaos={});(Lt[ge]||(Lt[ge]=new sA)).bind(a,this,Te,ct?ct.getPaintVertexBuffers():[],ke,kt.vertexOffset,yt,bt,Bt),St.drawElements(c,kt.primitiveLength*It,St.UNSIGNED_SHORT,kt.primitiveOffset*It*2)}}}function bc(O,a,c){const C=1/o.az(c,1,a.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),I=c.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=I*(c.tileID.canonical.x+c.tileID.wrap*M),Y=I*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const bs=(O,a,c,C)=>{const M=O.style.light,I=M.properties.get("position"),z=[I.x,I.y,I.z],Y=o.bN();M.properties.get("anchor")==="viewport"&&o.bO(Y,O.transform.bearingInRadians),o.bP(z,z,Y);const ee=O.transform.transformLightDirection(z),se=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:C}},zf=(O,a,c,C,M,I,z)=>o.e(bs(O,a,c,C),bc(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),xc=(O,a,c,C)=>o.e(bc(a,O,c),{u_fill_translate:C}),Qh=(O,a)=>({u_world:O,u_fill_translate:a}),ef=(O,a,c,C,M)=>o.e(xc(O,a,c,M),{u_world:C}),yd=(O,a,c,C,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const se=o.az(a,1,I.zoom);z=!0,Y=[se,se],ee=se/(o.Z*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=I.pixelsToGLUnits;return{u_camera_to_center_distance:I.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:ee,u_translate:C}},Nf=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),vd=O=>({u_viewport_size:[O.width,O.height]}),Yh=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),Cd=(O,a,c,C)=>{const M=o.az(O,1,a)/(o.Z*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:o.a Line truncated
uniform mat4 u_projection_matrix;
${Ge.shaderPreludeCode.vertexSource}`,define:Ge.shaderDefine},defaultProjectionData:ft},yt=ke.renderingMode?ke.renderingMode:"2d";if(z.renderPass==="offscreen"){const bt=ke.prerender;bt&&(z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),bt.call(ke,Te.gl,ct),Te.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),Te.setStencilMode(J.disabled);const bt=yt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Sr.ReadOnly);Te.setDepthMode(bt),ke.render(Te.gl,ct),Te.setDirty(),z.setBaseState(),Te.bindFramebuffer.set(null)}}(a,0,C,I))}saveTileTexture(a){const c=this._tileTextures[a.size[0]];c?c.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const c=this._tileTextures[a];return c&&c.length>0?c.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const c=this.imageManager.getPattern(a.from.toString()),C=this.imageManager.getPattern(a.to.toString());return!c||!C}useProgram(a,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,I=this.style.projection,z=a+(c?c.cacheKey:"")+`/${C?js:I.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[z]||(this.cache[z]=new Gh(this.context,jr[a],c,el[a],this._showOverdrawInspector,M,C?jr.projectionMercator:I.shaderPreludeCode,C?aa:I.shaderDefine)),this.cache[z]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new ie(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:c}=this.context.gl;return this.width!==a||this.height!==c}}function OA(O,a){let c,C=!1,M=null,I=null;const z=()=>{M=null,C&&(O.apply(I,c),M=setTimeout(z,a),C=!1)};return(...Y)=>(C=!0,I=this,c=Y,M||z(),M)}class wu{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let I=window.location.hash.replace(M,"");I.startsWith("#&")?I=I.slice(0,1)+I.slice(2):I==="#"&&(I="");let z=window.location.href.replace(/(#.+)?$/,I);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=OA(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),z=Math.round(c.lng*I)/I,Y=Math.round(c.lat*I)/I,ee=this._map.getBearing(),se=this._map.getPitch();let ge="";if(ge+=a?`/${z}/${Y}/${C}`:`${C}/${Y}/${z}`,(ee||se)&&(ge+="/"+Math.round(10*ee)/10),se&&(ge+=`/${Math.round(se)}`),this._hashName){const Te=this._hashName;let ke=!1;const Ge=window.location.hash.slice(1).split("&").map($e=>{const ft=$e.split("=")[0];return ft===Te?(ke=!0,`${ft}=${ge}`):$e}).filter($e=>$e);return ke||Ge.push(`${Te}=${ge}`),`#${Ge.join("&")}`}return`#${ge}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.Q(+a[2],+a[1])}catch{return!1}const c=+a[0],C=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=-180&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const pl={linearity:.3,easing:o.cb(0,0,.3,1)},IA=o.e({deceleration:2500,maxSpeed:1400},pl Line truncated
${e} <span></span>
`,Hs().s[12]++,this._textEl=this._container.querySelector("span"),Hs().s[13]++,this.updateZoomLevel()}addEventListeners(){Hs().f[4]++,Hs().s[14]++,this._map.on("render",()=>(Hs().f[5]++,Hs().s[15]++,this.updateZoomLevel())),Hs().s[16]++,this._map.on("zoomIn",()=>(Hs().f[6]++,Hs().s[17]++,this.updateZoomLevel())),Hs().s[18]++,this._map.on("zoomOut",()=>(Hs().f[7]++,Hs().s[19]++,this.updateZoomLevel()))}onRemove(){Hs().f[8]++,Hs().s[20]++,this._container.parentNode.removeChild(this._container),Hs().s[21]++,this._map=void 0}}function e6(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 t6(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 n6(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 yH(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const f=s(l);r.push(e6(f.circle,l)),i.push(n6(f.line,l)),t.push(t6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const v=s(f);r.push(e6(v.circle,l,f)),i.push(n6(v.line,l,f)),t.push(t6(v.polygon,v.polygonOutline,l,f))})}),t.concat(i).concat(r)}function vH(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(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const $3={polygonLayer:t6,lineLayer:n6,circleLayer:e6,generateInspectStyle:vH,generateColoredLayers:yH};function yo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",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:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,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:31,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:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{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:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s Line truncated
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=IH.language(this.options.language.split(",")[0]);return this.options.language&&(cv!=null&&cv[e][t])?cv[e][t]:cv[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=sp({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=sp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=sp({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=sp({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=sp(r,{element:s}));const l=new this._maplibregl.Marker(sp({},r,{element:s}));let o;if(this.options.popup){const v=sp({},{},this.options.popup);o=new this._maplibregl.Popup(v).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function En(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},eLine truncated
`);o(U,N,W)?(LC(y6),V1=null,g6=void 0,Fp.set(P,100)):(Fp.set(P,Fp.get(P)+1,!0),v=!1)}}v&&(clearInterval(s),s=void 0)}return function(v){const x=RL(v);if(!x)return;const B=x.families;for(let k=0,P=B.length;k<P;++k){const U=B[k],N=x.style+`
`+x.weight+`
`+U;Fp.get(N)===void 0&&(Fp.set(N,100,!0),o(x.style,x.weight,U)||(Fp.set(N,0,!0),s===void 0&&(s=setInterval(f,32))))}}}(),IZ=function(){let n;return function(e){let t=y6[e];if(t==null){if(OL){const r=RL(e),i=LL(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(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);y6[e]=t}return t}}();function LL(n,e){return V1||(V1=xA(1,1)),n!=g6&&(V1.font=n,g6=V1.font),V1.measureText(e)}function A2(n,e){return LL(n,e).width}function yI(n,e,t){if(e in t)return t[e];const r=e.split(`
`).reduce((i,s)=>Math.max(i,A2(n,s)),0);return t[e]=r,r}function TZ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,f=0;for(let v=0,x=e.length;v<=x;v+=2){const B=e[v];if(B===`
`||v===x){s=Math.max(s,l),i.push(l),l=0,o+=f,f=0;continue}const k=e[v+1]||n.font,P=A2(k,B);t.push(P),l+=P;const U=IZ(k);r.push(U),f=Math.max(f,U)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function kZ(n,e,t,r,i,s,l,o,f,v,x){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(f,v),n.scale(x[0],x[1]),PZ(r,n)):x[0]<0||x[1]<0?(n.translate(f,v),n.scale(x[0],x[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,f,v,l*x[0],o*x[1]),n.restore()}function PZ(n,e){const t=n.contextInstructions;for(let 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]}function vI(n){return n[0]>0&&n[1]>0}function KZ(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]*e+.5|0,t[1]=n[1]*e+.5|0,t}function fh(n,e){return Array.isArray(n)?n:(e===void 0?e=[n,n]:(e[0]=n,e[1]=n),e)}class xx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=fh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new xx({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return vo()}getImage(e){return vo()}getHitDetectionImage(){return vo()}getPixelRatio(e){return 1}getImageState(){return vo()}getImageSize(){return vo()}getOrigin(){return vo()}getSize(){return vo()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=fh(e)}listenImageChange(e){vo()}load(){vo()}unlistenImageChange(e){vo()}ready(){return Promise.resolve()}}class Mx extends xx{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?fi.LOADING:fi.LOADED,this.imageState_===fi.LOADING&&this.ready().then(()=>this.imageState_=fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Mx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){var s,l;const t=(s=this.fill_)==null?void 0:s.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(l=If.get(r,null,null))==null?void 0:l.getImage(1);if(!i){const o=this.renderOptions_,f=Math.ceil(o.size*e),v=xA(f,f);this.draw_(o,v,e),i=v.canvas,If.set(r,null,null,new KL(i,void 0,null,fi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const ne=i;i=s,s=ne}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,f=s*Math.sin(o),v=Math.sqrt(s*s-f*f),x=i-v,B=Math.sqrt(f*f+x*x),k=B/f;if(e==="miter"&&k<=r)return k*t;const P=t/2/k,U=t/2*(x/B),W=Math.sqrt((i+P)*(i+P)+U*U)-i;if(this.radius2_===void 0||e==="bevel")return W*2;con Line truncated
`,""),n.push(e,""),n}function hX(n,e,t){return t%2===0&&(n+=e),n}class dX{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=md(),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_={},this.zIndexContext_=s?new JB:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,f=this.textStates[t],v=this.pixelRatio,x=[f.scale[0]*v,f.scale[1]*v],B=f.justify?h2[f.justify]:_4(Array.isArray(e)?e[0]:e,f.textAlign||_C),k=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
`).reduce(cX,[]),{width:U,height:N,widths:W,heights:V,lineWidths:$}=TZ(f,P),oe=U+k,te=[],q=(oe+2)*x[0],ne=(N+k)*x[1],G={width:q<0?Math.floor(q):Math.ceil(q),height:ne<0?Math.floor(ne):Math.ceil(ne),contextInstructions:te};(x[0]!=1||x[1]!=1)&&te.push("scale",x),i&&(te.push("strokeStyle",l.strokeStyle),te.push("lineWidth",k),te.push("lineCap",l.lineCap),te.push("lineJoin",l.lineJoin),te.push("miterLimit",l.miterLimit),te.push("setLineDash",[l.lineDash]),te.push("lineDashOffset",l.lineDashOffset)),r&&te.push("fillStyle",o.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const ie=.5-B;let de=B*oe+ie*k;const fe=[],Ee=[];let me=0,Me=0,Le=0,xe=0,pt;for(let Je=0,Ve=P.length;Je<Ve;Je+=2){const je=P[Je];if(je===`
`){Me+=me,me=0,de=B*oe+ie*k,++xe;continue}const Se=P[Je+1]||f.font;Se!==pt&&(i&&fe.push("font",Se),r&&Ee.push("font",Se),pt=Se),me=Math.max(me,V[Le]);const Fe=[je,de+ie*W[Le]+B*(W[Le]-$[xe]),.5*(k+me)+Me];de+=W[Le],i&&fe.push("strokeText",Fe),r&&Ee.push("fillText",Fe),++Le}return Array.prototype.push.apply(te,fe),Array.prototype.push.apply(te,Ee),this.labels_[s]=G,G}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,f,v,x,B,k,P,U,N,W){o*=k[0],f*=k[1];let V=r-o,$=i-f;const oe=s+v>e?e-v:s,te=l+x>t?t-x:l,q=U[3]+oe*k[0]+U[1],ne=U[0]+te*k[1]+U[2],G=V-U[3],ie=$-U[0];(N||B!==0)&&(m0[0]=G,g0[0]=G,m0[1]=ie,Om[1]=ie,Om[0]=G+q,Im[0]=Om[0],Im[1]=ie+ne,g0[1]=Im[1]);let de;return B!==0?(de=nm(md(),r,i,1,1,B,-r,-i),Lu(de,m0),Lu(de,Om),Lu(de,Im),Lu(de,g0),zm(Math.min(m0[0],Om[0],Im[0],g0[0]),Math.min(m0[1],Om[1],Im[1],g0[1]),Math.max(m0[0],Om[0],Im[0],g0[0]),Math.max(m0[1],Om[1],Im[1],g0[1]),y1)):zm(Math.min(G,G+q),Math.min(ie,ie+ne),Math.max(G,G+q),Math.max(ie,ie+ne),y1),P&&(V=Math.round(V),$=Math.round($)),{drawImageX:V,drawImageY:$,drawImageW:oe,drawImageH:te,originX:v,originY:x,declutterBox:{minX:y1[0],minY:y1[1],maxX:y1[2],maxY:y1[3],value:W},canvasTransform:de,scale:k}}replayImageOrLabel_(e,t,r,i,s,l,o){const f=!!(l||o),v=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return v.minX-x<=t[0]&&v.maxX+x>=0&&v.minY-x<=t[1]&&v.maxY+x>=0&&(f&&this.replayTextBackground_(e,m0,Om,Im,g0,l,o),kZ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=Lu(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],f=this.pixelRatio,v=_4(Array.isArray(e)?e[0]:e,s.textAlign||_C),x=h2[s.textBaseline||l2],B=o&&o.lineWidth?o.lineWidth:0,k=l.width/f-2*s.scale[0],P=v*k+2*(.5-v)*B,U=x*l.height/f+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:U}}execute_(e,t,r,i,s,l,o,f){const v=this.zIndexContext_;let x;this.pixelCoordinates_&&W0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=F0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),q$(this.renderedTransform_,r));let B=0;const k=i.length;let P=0,U,N,W,V,$,oe,te,q,ne,G,ie,de,fe,Ee=0,me=0;const Me=this.coordinateCache_,Le=this.viewRotation_,xe=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,pt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Le},Je=this.instructions!=i||this.overlaps?0:200;let Ve,je,Se,Fe;for(;B<k;){const Ze=i[B];switch(Ze[0]){case Hi.BEGIN_GEOMETRY:Ve=Ze[1],Fe=Ze[3],Ve.getGeometry()?o!==void 0&&!HA(o,Fe.getExtent())?B=Ze[2]+1:++B:B=Ze[2],v&&(v.zIndex=Ze[4]);break;case Hi.BEGIN_PATH:Ee>Je&&(this.fill_(e),Ee=0),me>Je&&(e.stroke(),me=0),!Ee&&!me&&(e.beginPath(),$=NaN,oe=NaN),++B;break;case Hi.CIRCLE:P=Ze[1];const Qt=x[P],gt=x[P+1],Ut=x[P+2],Pt=x[P+3],ze=Ut-Qt,Ke=Pt-gt,Oe=Math.sqrt(ze*ze+Ke*Ke);e.moveTo(Qt+Oe,gt),e.arc(Qt,gt,Oe,0,2*Math.PI,!0),++B;break;case Hi.CLOSE_PATH:e.closePath(),++B;break;case Hi.CUSTOM:P=Ze[1],U=Ze[2];const it=Ze[3],Ct=Ze[4],dt=Ze[5];pt.geometry=it,pt.feature=Ve,B in Me||(Me[B]=[]);const Dt=Me[B];dt?dt(x,P,U,2,Dt):(Dt[0]=x[P],Dt[1]=x[P+1],Dt.length=2),v&&(v.zIndex=Ze[6]),Ct(Dt,pt),++B;break;case Hi.DRAW_IMAGE:P=Ze[1],U=Ze[2],ne=Ze[3],N=Ze[4],W=Ze[5];let $t=Ze[6];const Rt=Ze[7],bn=Ze[8],Yn=Ze[9],rn=Ze[10];let er=Ze[11];const Tn=Ze[12];let gn=Ze[13];V=Ze[14]||"declutter";const Ln=Ze[15];if(!ne&&Ze.length>=20){G=Ze[19],ie=Ze[20],de=Ze[21],fe=Ze[22];const Gt=this.drawLabelWithPointPlacement_(G,ie,de,fe);ne=Gt.label,Ze[3]=ne;const Nt=Ze[23];N=(Gt.anchorX-Nt)*this.pixelRatio,Ze[4]=N;const nn=Ze[24];W=(Gt.anchorY-nn)*this.pixelRatio,Ze[5]=W,$t=ne.height,Ze[6]=$t,gn=ne.width,Ze[13]=gn}let br;Ze.length>25&&(br=Ze[25]);let mr,tr,Ye;Ze.length>17?(mr=Ze[16],tr=Ze[17],Ye=Ze[18]):(mr=gg,tr=null,Ye=null),rn&&xe?er+=Le:!rn&&!xe&&(er-=Le);let ce=0;for(;P<U;P+=2){if(br&&br[ce++]<gn/this.pixelRatio)continue;const Gt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],gn,$t,N,W,bn,Yn,er,Tn,s,mr,!!tr||!!Ye,Ve),Nt=[e,t,ne,Gt,Rt,tr,Ye];if(f){let nn,Rn,Dn;if(Ln){const Xt=U-P;if(!Ln[Xt]){Ln[Xt]={args:Nt,declutterMode:V};continue}const _r=Ln[Xt];nn=_r.args,Rn=_r.declutterMode,delete Ln[Xt],Dn=OI(nn)}let pr,Tr;if(nn&&(Rn!=="declutter"||!f.collides(Dn))&&(pr=!0),(V!=="declutter"||!f.collides(Gt.declutterBox))&&(Tr=!0),Rn==="declutter"&&V==="declutter"){const Xt=p Line truncated
`),i=ree.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
`),t+=r[s].split("").join(i);return t}return n}let O4;function bU(){return O4||(O4=Bx(1,1).getContext("2d")),O4}function ng(n,e){return bU().measureText(n).width+(n.length-1)*e}const $I={};function w6(n,e,t,r){if(n.indexOf(`
`)!==-1){const l=n.split(`
`),o=[];for(let f=0,v=l.length;f<v;++f)o.push(w6(l[f],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=$I[i];if(!s){const l=n.split(" ");if(l.length>1){const o=bU();o.font=e;const v=o.measureText("M").width*t;let x="";const B=[];for(let k=0,P=l.length;k<P;++k){const U=l[k],N=x+(x?" ":"")+U;ng(N,r)<=v?x=N:(x&&B.push(x),x=U)}x&&B.push(x);for(let k=0,P=B.length;k<P&&P>1;++k){const U=B[k];if(ng(U,r)<v*.35){const N=k>0?ng(B[k-1],r):1/0,W=k<P-1?ng(B[k+1],r):1/0;B.splice(k,1),P-=1,N<W?(B[k-1]+=" "+U,k-=1):B[k]=U+" "+B[k]}}for(let k=0,P=B.length-1;k<P;++k){const U=B[k],N=B[k+1];if(ng(U,r)>v*.7&&ng(N,r)<v*.6){const W=U.split(" "),V=W.pop();ng(V,r)<v*.2&&(B[k]=W.join(" "),B[k+1]=V+" "+N),P-=1}}s=B.join(`
`)}else s=n;s=M6(s,r),$I[i]=s}return s}const iee=/font-family: ?([^;]*);/,oee=/("|')/g;let J_;function see(n){if(!J_){J_={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const s=i.rules||i.cssRules;if(s)for(let l=0,o=s.length;l<o;++l){const f=s[l];if(f.type==5){const v=f.cssText.match(iee);J_[v[1].replace(oee,"")]=!0}}}catch{}}}return n in J_}const I4={};function aee(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in I4)return I4[t];const r=[];for(let i=0,s=n.length;i<s;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const l=n[i],o=r6(l,1);FL(o);const f=o.split(" ");r.push([f.slice(3).join(" ").replace(/"/g,""),f[1],f[0]])}for(let i=0,s=r.length;i<s;++i){const l=r[i],o=l[0];if(!see(o)&&Fp.get(`${l[2]}
${l[1]}
${o}`)!==100){const f=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",l[1]).replace("{-fontstyle}",l[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",l[2]);if(!document.querySelector('link[href="'+f+'"]')){const v=document.createElement("link");v.href=f,v.rel="stylesheet",document.head.appendChild(v)}}}return I4[t]=n,n}const lee={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Aee={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]},uee=function(n,e){const t=ix(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},S6={},y2={zoom:0};let eb,T4;function Bi(n,e,t,r,i,s,l){const o=n.id;s||(s={},console.warn("No functionCache provided to getValue()")),s[o]||(s[o]={});const f=s[o];if(!f[t]){let v=(n[e]||S6)[t];const x=$q[`${e}_${n.type}`][t];v===void 0&&(v=x.default);let B=Ry(v);if(!B&&Ky(v)&&(v=mB(v,x),B=!0),B){const k=uee(v,x);f[t]=k.evaluate.bind(k)}else x.type=="color"&&(v=Cl.parse(v)),f[t]=function(){return v}}return y2.zoom=r,f[t](y2,i,l)}function ZI(n,e,t,r,i){return Bi(n,"layout",`${r}-allow-overlap`,e,t,i)?Bi(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function cee(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=vq(e).filter),y2.zoom=r,i[n](y2,t)}function b0(n,e){if(n){if(n.a===0||e===0)return;const 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}const hee=/\{[^{}}]*\}/g;function k4(n,e){return n.replace(hee,function(t){return e[t.slice(1,-1)]||""})}const dee={};function fee(n,e,t,r=tm,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");dee[eee(e,n)]=Array.from(arguments);let f,v,x;s&&by(()=>s).then(async G=>{let ie;if(typeof Image<"u"){const de=new Image;if(typeof G=="string")de.crossOrigin="anonymous",de.src=G;else{let fe;G instanceof Request?fe=await fetch(G):G instanceof Response&&(fe=G);const Ee=await fe.blob();ie=URL.createObjectURL(Ee),de.src=ie}de.addEventListener("load",function fe(){de.removeEventListener("load",fe),f=de,v=[de.width,de.height],n.changed(),ie&&URL.revokeObjectURL(ie)}),de.addEventListener("error",function fe(){URL.revokeObjectURL(ie),de.removeEventListener("error",fe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const de=self;de.postMessage({action:"loadImage",src:G}),de.addEventListener("message",function(Ee){Ee.data.action==="imageLoaded"&&Ee.data.src===G&&(f=Ee.data.image,v=[f.width,f.height])})}});const B=$6(e.layers),k={},P=[],U={},N={},W=vU(e),V=tee(e);let $;for(let G=0,ie=B.length;G<ie;++G){const de=B[G],fe=de.id;if(typeof t=="string"&&de.source==t||Array.isArray(t)&&t.indexOf(fe)!==-1){const Ee=de["source-layer"];if($){if(de.source!==$)throw new Error(`Layer "${fe}" does not use source "${$}`)}else{$=de.source;const Me=e.sources[$];if(!Me)throw new Error(`Source "${$}" is not defined`);const Le=Me.type;if(Le!=="vector"&&Le!=="geojson")throw new Error(`Source "${$}" is not of type "vector" or "geojson", but "${Le}"`)}let me=k[Ee];me||(me=[],k[Ee]=me),me.push({layer:de,index:G}),P.push(fe)}}const oe=new O0,te=new Rm,q=[],ne=function(G,ie,de){const fe=G.getProperties(),Ee=k[fe.layer];if(!Ee)return;let me=r.indexOf(ie);me==-1&&(me=gO(ie,r));const Me=lee[G.getGeometry().getType()],Le={id:G.getId(),properties:fe,type:Me},xe=n.get("mapbox-featurestate")[G.getId()];let pt=-1;for(let Je=0,Ve=Ee.length;Je<Ve;++Je){const je=Ee[Je],Se=je.layer,Fe=Se.id;if(de!==void 0&&de!==Fe)continue;const Ze=Se.layout||S6,_t=Se.paint||S6;if(Ze.visibility==="none"||"minzoom"in Se&&me<Se.minzoom||"maxzoom"in Se&&me>=Se.maxzoom)continue;const Qt=Se.filter;if(!Qt||cee(Fe,Qt,Le,me,V)){let gt,Ut,Pt,ze,Ke,Oe;const it=je.index;if(Me==3&&(Se.type=="fill"||Se.type=="fill-extrusion"))if(Ut=Bi(Se,"paint",Se.type+"-opacity",me,Le,W,xe),Se.type+"-pattern"in _t){const br=Bi(Se,"paint",Se.type+"-pattern",me,Le,W,xe);if(br){const mr=typeof br=="string"?k4(br,fe):br.toString();if(f&&i&&i[mr]){++pt,Oe=q[pt],(!Oe||!Oe.getFill()||Oe.getStroke()||Oe.getText())&&(Oe=new Yd({fill:new Rm}),q[pt]=Oe),Pt=Oe.getFill(),Oe.setZIndex(it);const tr=mr+"."+Ut;let Ye=N[tr];if(!Ye){const ce=i[mr],pe=Bx(ce.width,ce.height),nt=pe.getContext("2d");nt.globalAlpha=Ut,nt.drawImage(f,ce.x,ce.y,ce.width,ce.height,0,0,ce.width,ce.height),Ye=nt.createPattern(pe,"repeat"),N[tr]=Ye}Pt.setColor(Ye)}}}else gt=b0(Bi(Se,"paint",Se.type+"-color",me,Le,W,xe),Ut),Se.type+"-outline-color"in _t&&(Ke=b0(Bi(Se,"paint",Se.type+"-outline-color",me,Le,W,xe),Ut)),Ke||(Ke=gt),(gt||Ke)&&(++pt,Oe=q[pt],(!Oe||gt&&!Oe.getFill()||!gt&&Oe.getFill()||Ke&&!Oe.getStroke()||!Ke&&Oe.getStroke()||Oe.getText(Line truncated
`)return tr.push(`
`,""),tr;if(Me==2)return tr.push(M6(wt,gn),nt),tr;wt=w6(wt,nt,Ln,gn).split(`
`);for(let qt=0,Jt=wt.length;qt<Jt;++qt)qt>0&&tr.push(`
`,""),tr.push(wt[qt],nt);return tr},[]):Yn=k4(mr,fe).trim(),Ut=Bi(Se,"paint","text-opacity",me,Le,W,xe)}if(Yn&&Ut&&!bn){Ct||(++pt,Oe=q[pt],(!Oe||!Oe.getText()||Oe.getFill()||Oe.getStroke())&&(Oe=new Yd,q[pt]=Oe),Oe.setImage(void 0),Oe.setGeometry(void 0));const br=ZI(Se,me,Le,"text",W);Oe.getText()||Oe.setText(dt),dt=Oe.getText(),(!dt||"getDeclutterMode"in dt&&dt.getDeclutterMode()!==br)&&(dt=new wx({padding:[2,2,2,2],declutterMode:br}),Oe.setText(dt));const mr=Bi(Se,"layout","text-transform",me,Le,W,xe);mr=="uppercase"?Yn=Array.isArray(Yn)?Yn.map((Be,rt)=>rt%2?Be:Be.toUpperCase()):Yn.toUpperCase():mr=="lowercase"&&(Yn=Array.isArray(Yn)?Yn.map((Be,rt)=>rt%2?Be:Be.toLowerCase()):Yn.toLowerCase());const tr=Array.isArray(Yn)?Yn:Me==2?M6(Yn,gn):w6(Yn,rn,Ln,gn);if(dt.setText(tr),dt.setFont(rn),dt.setRotation(B4(Bi(Se,"layout","text-rotate",me,Le,W,xe))),typeof dt.setKeepUpright=="function"){const Be=Bi(Se,"layout","text-keep-upright",me,Le,W,xe);dt.setKeepUpright(Be)}const Ye=Bi(Se,"layout","text-anchor",me,Le,W,xe),ce=Ct||Me==1?"point":Bi(Se,"layout","symbol-placement",me,Le,W,xe);let pe;if(ce==="line-center"?(dt.setPlacement("line"),pe="center"):dt.setPlacement(ce),ce==="line"&&typeof dt.setRepeat=="function"){const Be=Bi(Se,"layout","symbol-spacing",me,Le,W,xe);dt.setRepeat(Be*2)}dt.setOverflow(ce==="point");let nt=Bi(Se,"paint","text-halo-width",me,Le,W,xe);const wt=Bi(Se,"layout","text-offset",me,Le,W,xe),qt=Bi(Se,"paint","text-translate",me,Le,W,xe);let Jt=0,$n=0;if(ce=="point"){pe="center",Ye.indexOf("left")!==-1?(pe="left",$n=nt):Ye.indexOf("right")!==-1&&(pe="right",$n=-nt);const Be=Bi(Se,"layout","text-rotation-alignment",me,Le,W,xe);dt.setRotateWithView(Be=="map")}else dt.setMaxAngle(B4(Bi(Se,"layout","text-max-angle",me,Le,W,xe))*Yn.length/tr.length),dt.setRotateWithView(!1);dt.setTextAlign(pe);let Xe="middle";Ye.indexOf("bottom")==0?(Xe="bottom",Jt=-nt-.5*(er-1)*Tn):Ye.indexOf("top")==0&&(Xe="top",Jt=nt+.5*(er-1)*Tn),dt.setTextBaseline(Xe);const ae=Bi(Se,"layout","text-justify",me,Le,W,xe);dt.setJustify(ae==="auto"?void 0:ae),dt.setOffsetX(wt[0]*Tn+$n+qt[0]),dt.setOffsetY(wt[1]*Tn+Jt+qt[1]),te.setColor(b0(Bi(Se,"paint","text-color",me,Le,W,xe),Ut)),dt.setFill(te);const ve=b0(Bi(Se,"paint","text-halo-color",me,Le,W,xe),Ut);if(ve&&nt>0){oe.setColor(ve),nt*=2;const Be=.5*Tn;oe.setWidth(nt<=Be?nt:Be),dt.setStroke(oe)}else dt.setStroke(void 0);const p=Bi(Se,"layout","text-padding",me,Le,W,xe),We=dt.getPadding();p!==We[0]&&(We[0]=p,We[1]=p,We[2]=p,We[3]=p),Oe.setZIndex(it)}}}if(pt>-1)return q.length=pt+1,q};return n.setStyle(ne),n.set("mapbox-source",$),n.set("mapbox-layers",P),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class xU{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=ux,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Sa(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Sa(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return vo()}readFeature(e,t){return vo()}readFeatures(e,t){return vo()}readGeometry(e,t){return vo()}readProjection(e){return vo()}writeFeature(e,t){return vo()}writeFeatures(e,t){return vo()}writeGeometry(e,t){return vo()}}function Ox(n,e,t){const r=t?Sa(t.featureProjection):null,i=t?Sa(t.dataProjection):null;let s=n;if(r&&i&&!L0(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(fC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(f){for(let v=0,x=f.length;v<x;++v)f[v]=Math.round(f[v]*l)/l;return f};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const pee={Point:Tg,LineString:Ig,Polygon:Wm,MultiPoint:GC,MultiLineString:gC,MultiPolygon:yC};function mee(n,e,t){return Array.isArray(e[0])?(lL(n,0,e,t)||(n=n.slice(),A6(n,0,e,t)),n):(TB(n,0,e,t)||(n=n.slice(),n2(n,0,e,t)),n)}function MU(n,e){var s;const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(l=>MU({...n,geometry:l})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return Ox(new dh(r,r==="Polygon"?mee(t.flatCoordinates,t.ends,i):t.flatCoordinates,(s=t.ends)==null?void 0:s.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function yO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>yO(i,e));return new s2(r)}const t=pee[n.type];return Ox(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class gee extends xU{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(tb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(tb(e),this.getReadOptions( Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Ste(n,e){const t=DU(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class Ete extends FC{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=wte(e,this.onWorkerMessage_.bind(this,i));else r[0]=Ste(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(f){return f.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let f=0;f<s;++f){const v=f*o,x=[];for(let B=0,k=i.length;B<k;++B)x.push(i[B].slice(v,v+o));this.workers_[f].postMessage({buffers:x,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},x)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const f=this.dataLookup_[o].buffer,v=o*l;r.set(new Uint8ClampedArray(f),v),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const a9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class l9 extends bp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class FU extends kU{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Ite(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(co.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new uU(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:md(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Ote(this.layers_),pixelRatio:1,pixelToCoordinateTransform:md(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Lo(this),renderTargets:{}},this.setAttributions(function(r){var s;const i=[];for(let l=0,o=e.sources.length;l<o;++l){const f=e.sources[l],v=f instanceof Ly?f:f.getSource();if(!v)continue;const x=(s=v.getAttributions())==null?void 0:s(r);typeof x=="string"?i.push(x):x!==void 0&&i.push(...x)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Ete({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=Df(e);i.size[0]=Math.ceil(zs(e)/t),i.size[1]=Math.ceil(Uu(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!Nm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.re Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(LU(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Nte extends kx{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Wte,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:AU,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!L0(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||L0(t,e)))return this.tileGrid;const r=Lo(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=PU(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],f=this.getTileCoordForTileUrlFunction(o,s),v=f?this.tileUrlFunction(f,i,s):void 0,x=new this.tileClass(o,v!==void 0?Lr.IDLE:Lr.EMPTY,v!==void 0?v:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(co.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||L0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],f=this.getKey(),v=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),k=new OU(l,v,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,U,N,W)=>this.getTileInternal(P,U,N,W,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return k.key=f,k}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Sa(e);if(r){const i=Lo(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Wte(n,e){n.getImage().src=e}class UU extends Nte{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Sa("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)kte(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Sa("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const v=WC(t,r);i=n$(e.bounds,v)}const s=Tx(r),l=e.minzoom||0,o=e.maxzoom||22,f=CO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=LU(e.tiles,f),e.attribution&&!this.getAttributions()){const v=i!==void 0?i:s;this.setAttributions(function(x){return HA(v,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class zU extends kx{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||Tx(t),i=e.tileGrid||CO({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:NU,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:gU,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Lr.IDLE){r.setState(Lr.LOADING);const i=r.wr Line truncated
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var h9;function one(){return h9||(h9=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(z4)),z4.exports}var sne=one();const rm=hl(sne);function cg(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return cg=function(){return l},l}cg();class ane extends Jn.Component{render(){cg().f[0]++;const e=(cg().s[0]++,{width:20,height:20,...this.props.style});return cg().s[1]++,this.props.isCollapsed?(cg().b[0][0]++,Ae.jsx($V,{style:e})):(cg().b[0][1]++,Ae.jsx(HV,{style:e}))}}function ny(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return ny=function(){return l},l}ny();class lne extends Jn.Component{render(){return ny().f[0]++,ny().s[0]++,Ae.jsx("li",{className:"maputnik-layer-list-group",children:Ae.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(ny().f[1]++,ny().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[Ae.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),Ae.jsx("span",{className:"maputnik-space"}),Ae.jsx(ane,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function wC(){return wC=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},wC.apply(null,arguments)}function Ane(n){if(Array.isArray(n))return n}function une(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],f=!0,v=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(f=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);f=!Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZU(n,e){return Ane(n)||une(n,e)||$U(n,e)||cne()}function Oy(n){"@babel/helpers - typeof";return Oy=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},Oy(n)}function hne(n,e){if(Oy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Oy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function XU(n){var e=hne(n,"string");return Oy(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=XU(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function N4(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){Ka(n,i,t[i])})}return n}function XC(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function dne(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,XU(r.key),r)}}function JC(n,e,t){return e&&dne(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ss(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _O(n,e){if(e&&(Oy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(n)}function SC(n){return SC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SC(n)}function P6(n,e){return P6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},P6(n,e)}function bO(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&&P6(n,e)}var W4,d9;function fne(){if(d9)return W4;d9=1;var n=function(e,t,r,i,s,l,o,f){if(!e){var v;if(t===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[r,i,s,l,o,f],B=0;v=new Error(t.replace(/%s/g,function(){return x[B++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};return W4=n,W4}var pne=fne();const Kg=hl(pne);function mne(n){if(Array.isArray(n))return k6(n)}function gne(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function yne(){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 vne(n){return mne(n)||gne(n)||$U(n)||yne()}var Cne=function(){function n(){XC(this,n),Ka(this,"refs",{})}return JC(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(_ne)}}]),n}();function _ne(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function JU(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var w1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},ez=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 ob(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function sb(n,e){n.style["".concat(ez,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function j4(n,e){n.style["".concat(ez,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Kv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function f9(n,e,t){return Math.max(n,Math.min(t,e))}function ry(n){return n.substr(-2)==="px"?parseFloat(n):0}function bne(n){var e=window.getComputedStyle(n);return{bottom:ry(e.marginBottom),left:ry(e.marginLeft),right:ry(e.marginRight),top:ry(e.marginTop)}}function xO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function G4(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function yv(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 xne(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function wb(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:wb(n.parentNode,e,r)}}function Mne(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function p9(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Kg(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return Kg(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function wne(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Kg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=ZU(i,2),l=s[0],o=s[1];return[p9({height:e,lockOffset:l,width:t}),p9({height:e,lockOffset:o,width:t})]}function Sne(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function tz(n){return n instanceof HTMLElement?Sne(n)?n:tz(n.parentNode):null}function Ene(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:ry(e.gridColumnGap),y:ry(e.gridRowGap)}:{x:0,y:0}}var ig={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},hg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Bne(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=vne(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===hg.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function One(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){bO(s,i);function s(){var l,o;XC(this,s);for(var f=arguments.length,v=new Array(f),x=0;x<f;x++)v[x]=arguments[x];return o=_O(this,(l=SC(s)).call.apply(l,[this].concat(v))),Ka(ss(ss(o)),"wrappedInstance",Ai.createRef()),o}return JC(s,[{key:"componentDidMount",value:function(){var o=sx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Kg(r.withRef,"T Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var sz=["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])"],_2=sz.join(","),az=typeof Element>"u",Rg=az?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b2=!az&&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},x2=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"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},Wne=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},lz=function(e,t,r){if(x2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(_2));return t&&Rg.call(e,_2)&&i.unshift(e),i=i.filter(r),i},Az=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!x2(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),f=o.length?o:l.children,v=n(f,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else{var x=Rg.call(l,_2);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),k=!x2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&k){var P=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:l,candidates:P})}else s.unshift.apply(s,l.children)}}return i},uz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},w0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Wne(e))&&!uz(e)?0:e.tabIndex},jne=function(e,t){var r=w0(e);return r<0&&t&&!uz(e)?0:r},Gne=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},cz=function(e){return e.tagName==="INPUT"},Qne=function(e){return cz(e)&&e.type==="hidden"},Yne=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},qne=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Vne=function(e){if(!e.name)return!0;var t=e.form||b2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},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(l){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",l.message),!1}var s=qne(i,e.form);return!s||s===e},Hne=function(e){return cz(e)&&e.type==="radio"},$ne=function(e){return Hne(e)&&!Vne(e)},Zne=function(e){var t,r=e&&b2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,f;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&i;){var v,x,B;r=b2(i),i=(v=r)===null||v===void 0?void 0:v.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},g9=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Xne=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Rg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(Rg.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var f=e.parentElement,v=b2(e);if(f&&!f.shadowRoot&&i(f)===!0)return g9(e);e.assignedSlot?e=e.assignedSlot:!f&&v!==e.ownerDocument?e=v.host:e=f}e=o}if(Zne(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return g9(e);return!1},Jne=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 Rg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},M2=function(e,t){return!(t.disabled||x2(t)||Qne(t)||Xne(t,e)||Yne(t)||Jne(t))},R6=function(e,t){return!($ne(t)||w0(t)<0||!M2(e,t))},ere=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=jne(o,l),v=l?n(i.candidates):o;f===0?l?t.push.apply(t,v):t.push(o):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:v})}),r.sort(Gne).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.pusLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function y9(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 v9(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y9(Object(t),!0).forEach(function(r){ire(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y9(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ire(n,e,t){return e=sre(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ore(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);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function sre(n){var e=ore(n,"string");return typeof e=="symbol"?e:String(e)}var C9={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()}},are=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},lre=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Xv=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Are=function(e){return Xv(e)&&!e.shiftKey},ure=function(e){return Xv(e)&&e.shiftKey},_9=function(e){return setTimeout(e,0)},b9=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},vv=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},ab=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},cre=[],hre=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||cre,s=v9({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Are,isKeyBackward:ure},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(me,Me,Le){return me&&me[Me]!==void 0?me[Me]:s[Le||Me]},v=function(me,Me){var Le=typeof(Me==null?void 0:Me.composedPath)=="function"?Me.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var pt=xe.container,Je=xe.tabbableNodes;return pt.contains(me)||(Le==null?void 0:Le.includes(pt))||Je.find(function(Ve){return Ve===me})})},x=function(me){var Me=s[me];if(typeof Me=="function"){for(var Le=arguments.length,xe=new Array(Le>1?Le-1:0),pt=1;pt<Le;pt++)xe[pt-1]=arguments[pt];Me=Me.apply(void 0,xe)}if(Me===!0&&(Me=void 0),!Me){if(Me===void 0||Me===!1)return Me;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Je=Me;if(typeof Me=="string"&&(Je=r.querySelector(Me),!Je))throw new Error("`".concat(me,"` as selector refers to no known node"));return Je},B=function(){var me=x("initialFocus");if(me===!1)return!1;if(me===void 0||!Sb(me,s.tabbableOptions))if(v(r.activeElement)>=0)me=r.activeElement;else{var Me=l.tabbableGroups[0],Le=Me&&Me.firstTabbableNode;me=Le||x("fallbackFocus")}if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},k=function(){if(l.containerGroups=l.containers.map(function(me){var Me=hz(me,s.tabbableOptions),Le=dz(me,s.tabbableOptions),xe=Me.length>0?Me[0]:void 0,pt=Me.length>0?Me[Me.length-1]:void 0,Je=Le.find(function(Se){return Ag(Se)}),Ve=Le.slice().reverse().find(function(Se){return Ag(Se)}),je=!!Me.find(function(Se){return w0(Se)>0});return{container:me,tabbableNodes:Me,focusableNodes:Le,posTabIndexesFound:je,firstTabbableNode:xe,lastTabbableNode:pt,firstDomTabbableNode:Je,lastDomTabbableNode:Ve,nextTabbableNode:function(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_t=Me.indexOf(Fe);return _t<0?Ze?Le.slice(Le.indexOf(Fe)+1).find(function(Qt){return Ag(Qt)}):Le.slice(0,Le.indexOf(Fe)).reverse().find(function(Qt){return Ag(Qt)}):Me[_t+(Ze?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!x("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(l.containerGroups.find(function(me){return me.posTabIndexesFound})&&l.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 Ee(me){var Me=me.activeElement;if(Me)reLine truncated
The URL must include:
- \`{fontstack}\` - When requesting glyphs, this token is replaced with a comma separated list of fonts from a font stack specified in the text-font property of a symbol layer.
- \`{range}\` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.
This property is required if any layer uses the \`text-field\` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).`,example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"}},bre={type:{doc:"The type of the source."}},xre={id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}}},doc:"Rendering type of this layer.",required:!0},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."}},Mre={values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'}}},wre={anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sie(){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 aie=Fx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,f=o===void 0?!1:o;Dx(this,n),Ll(this,"expanded",void 0),Ll(this,"allowMultipleExpanded",void 0),Ll(this,"allowZeroExpanded",void 0),Ll(this,"toggleExpanded",function(v){if(t.isItemDisabled(v))return t;var x=t.isItemExpanded(v);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==v})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(eie(t.expanded),[v]):[v]})}),Ll(this,"isItemDisabled",function(v){var x=t.isItemExpanded(v),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),Ll(this,"isItemExpanded",function(v){return t.expanded.indexOf(v)!==-1}),Ll(this,"getPanelAttributes",function(v,x){var B=x??t.isItemExpanded(v);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(v),id:t.getPanelId(v),hidden:B?void 0:!0}}),Ll(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ll(this,"getButtonAttributes",function(v,x){var B=x??t.isItemExpanded(v),k=t.isItemDisabled(v);return{id:t.getButtonId(v),"aria-disabled":k,"aria-expanded":B,"aria-controls":t.getPanelId(v),role:"button",tabIndex:0}}),Ll(this,"getPanelId",function(v){return"accordion__panel-".concat(v)}),Ll(this,"getButtonId",function(v){return"accordion__heading-".concat(v)}),Ll(this,"augment",function(v){return new n(D6({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},v))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),wz=Ai.createContext(null),Sz=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"state",new aie({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Ll(cp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Ll(cp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Ll(cp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Ll(cp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),Ll(cp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Ll(cp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return Fx(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return Ai.createElement(wz.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Ai.PureComponent);Ll(Sz,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Ez=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return Fx(t,[{key:"render",value:function(){return Ai.createElement(wz.Consumer,null,this.renderChildren)}}]),t}(Ai.PureComponent),lie=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Aie=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,f=Lx(e,lie);return Ai.createElement(Sz,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},Ai.createElement("div",im({"data-accordion-component":"Accordion",className:r},f)))},U6;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(U6||(U6={}));var Bz=U6,cM=0;function uie(){var n=cM;return cM=cM+1,"raa-".concat(n)}var cie=Ai.useId||uie,hie=/[\u0009\u000a\u000c\u000d\u0020]/g;function EC(n){return n===""||hie.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Oz=Ai.createContext(null),die=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(v){var x=s??v.isItemExpanded(r),B=v.isItemDisabled(r),k=v.getPanelAttributes(r,s),P=v.getHeadingAttributes(r),U=v.getButtonAttributes(r,s);return Ai.createElement(Oz.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:k,headingAttributes:P,buttonAttributes:U}},t)};return Ai.createElement(Ez,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.”
`,kz=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"ref",void 0),Ll(cp(r),"setRef",function(o){r.ref=o}),r}return Fx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Ai.createElement("div",im({"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(Mie)}}]),t}(Ai.PureComponent);Ll(kz,"defaultProps",xie);var Pz=function(e){return Ai.createElement(Ux,null,function(t){var r=t.headingAttributes;return e.id&&EC(e.id),Ai.createElement(kz,im({},e,r))})};Pz.displayName=Bz.AccordionItemHeading;var wie=["className","region","id"],Sie=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=Lx(e,wie),o=function(v){var x=v.panelAttributes;s&&EC(s);var B=D6(D6({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return Ai.createElement("div",im({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return Ai.createElement(Ux,null,o)},Eb={exports:{}},Eie=Eb.exports,q9;function Nx(){return q9||(q9=1,function(n,e){(function(t,r){n.exports=r()})(Eie,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),f=s||l||o,v=f&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),k=!o&&/Chrome\/(\d+)/.exec(t),P=k&&+k[1],U=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),V=/PhantomJS/.test(t),$=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),te=$||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),q=$||/Mac/.test(r),ne=/\bCrOS\b/.test(t),G=/win/i.test(r),ie=U&&t.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(U=!1,x=!0);var de=q&&(B||U&&(ie==null||ie<12.11)),fe=i||f&&v>=9;function Ee(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var me=function(u,g){var E=u.className,S=Ee(g).exec(E);if(S){var K=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(K?S[1]+K:"")}};function Me(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function Le(u,g){return Me(u).appendChild(g)}function xe(u,g,E,S){var K=document.createElement(u);if(E&&(K.className=E),S&&(K.style.cssText=S),typeof g=="string")K.appendChild(document.createTextNode(g));else if(g)for(var Z=0;Z<g.length;++Z)K.appendChild(g[Z]);return K}function pt(u,g,E,S){var K=xe(u,g,E,S);return K.setAttribute("role","presentation"),K}var Je;document.createRange?Je=function(u,g,E,S){var K=document.createRange();return K.setEnd(S||u,E),K.setStart(u,g),K}:Je=function(u,g,E){var S=document.body.createTextRange();try{S.moveToElementText(u.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",g),S};function Ve(u,g){if(g.nodeType==3&&(g=g.parentNode),u.contains)return u.contains(g);do if(g.nodeType==11&&(g=g.host),g==u)return!0;while(g=g.parentNode)}function je(u){var g=u.ownerDocument||u,E;try{E=u.activeElement}catch{E=g.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Se(u,g){var E=u.className;Ee(g).test(E)||(u.className+=(E?" ":"")+g)}function Fe(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!Ee(E[S]).test(g)&&(g+=" "+E[S]);return g}var Ze=function(u){u.select()};$?Ze=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&(Ze=function(u){try{u.select()}catch{}});function _t(u){return u.display.wrapper.ownerDocument}function Qt(u){return gt(u.display.wrapper)}function gt(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Ut(u){return _t(u).defaultView}function Pt(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function ze(u,g,E){g||(g={});for(var S in u)u.hasOwnProperty(S)&&(E!==!1||!g.hasOwnProperty(S))&&(g[S]=u[S]);return g}function Ke(u,g,E,S,K){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var Z=S||0,ue=K||0;;){var _e=u.indexOf(" ",Z);if(_e<0||_e>=g)return ue+(g-Z);ue+=_e-Z,ue+=E-ue%E,Z=_e+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Oe.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Oe.prototype.set=function(u,g){this.f=g;var E=+new Date+u;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,u),this.time=E)};function it(u,g){for(var E=0;E<u.length;++E)if(u[E]==g)return E;return-1}var Line truncated
b`.split(/\n/).length!=3?function(u){for(var g=0,E=[],S=u.length;g<=S;){var K=u.indexOf(`
`,g);K==-1&&(K=u.length);var Z=u.slice(g,u.charAt(K-1)=="\r"?K-1:K),ue=Z.indexOf("\r");ue!=-1?(E.push(Z.slice(0,ue)),g+=ue+1):(E.push(Z),g=K+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Pr=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch{return!1}}:function(u){var g;try{g=u.ownerDocument.selection.createRange()}catch{}return!g||g.parentElement()!=u?!1:g.compareEndPoints("StartToEnd",g)!=0},vs=function(){var u=xe("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Ao=null;function ui(u){if(Ao!=null)return Ao;var g=Le(u,xe("span","x")),E=g.getBoundingClientRect(),S=Je(g,0,1).getBoundingClientRect();return Ao=Math.abs(E.left-S.left)>1}var $r={},Cs={};function ds(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),$r[u]=g}function Xa(u,g){Cs[u]=g}function sa(u){if(typeof u=="string"&&Cs.hasOwnProperty(u))u=Cs[u];else if(u&&typeof u.name=="string"&&Cs.hasOwnProperty(u.name)){var g=Cs[u.name];typeof g=="string"&&(g={name:g}),u=br(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return sa("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return sa("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function Wo(u,g){g=sa(g);var E=$r[g.name];if(!E)return Wo(u,"text/plain");var S=E(u,g);if(Uo.hasOwnProperty(g.name)){var K=Uo[g.name];for(var Z in K)K.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=K[Z])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ue in g.modeProps)S[ue]=g.modeProps[ue];return S}var Uo={};function So(u,g){var E=Uo.hasOwnProperty(u)?Uo[u]:Uo[u]={};ze(g,E)}function pi(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var K=g[S];K instanceof Array&&(K=K.concat([])),E[S]=K}return E}function tA(u,g){for(var E;u.innerMode&&(E=u.innerMode(g),!(!E||E.mode==u));)g=E.state,u=E.mode;return E||{mode:u,state:g}}function _l(u,g,E){return u.startState?u.startState(g,E):!0}var Ni=function(u,g,E){this.pos=this.start=0,this.string=u,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};Ni.prototype.eol=function(){return this.pos>=this.string.length},Ni.prototype.sol=function(){return this.pos==this.lineStart},Ni.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ni.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ni.prototype.eat=function(u){var g=this.string.charAt(this.pos),E;if(typeof u=="string"?E=g==u:E=g&&(u.test?u.test(g):u(g)),E)return++this.pos,g},Ni.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},Ni.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Ni.prototype.skipToEnd=function(){this.pos=this.string.length},Ni.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},Ni.prototype.backUp=function(u){this.pos-=u},Ni.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ue){return E?ue.toLowerCase():ue},K=this.string.substr(this.pos,u.length);if(S(K)==S(u))return g!==!1&&(this.pos+=u.length),!0}else{var Z=this.string.slice(this.pos).match(u);return Z&&Z.index>0?null:(Z&&g!==!1&&(this.pos+=Z[0].length),Z)}},Ni.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ni.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},Ni.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},Ni.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function Mr(u,g){if(g-=u.first,g<0||g>=u.size)throw new Error("There is no line "+(g+u.first)+" in the document.");for(var E=u;!E.lines;)for(var S=0;;++S){var K=E.children[S],Z=K.chunkSize();if(g<Z){E=K;break}g-=Z}return E.lines[g]}function Da(u,g,E){var S=[],K=g.line;return u.iter(g.line,E.line+1,function(Z){var ue=Z.text;K==E.line&&(ue=ue.slice(0,E.ch)),K==g.line&&(ue=ue.slice(g.ch)),S.push(ue),++K}),S}function _s(u,g,E){var S=[];return u.iter(g,E,function(K){S.push(K.text)}),S}function Rs(u,g){var E=g-u.height;if(E)for(var S=u;S;S=S.parent)S.height+=E}function qe(u){if(u.parent==null)return null;for(var g=u.parent,E=it(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var K=0;S.children[K]!=g;++K)E+=S.children[K].chunkSize();return E+g.first}function xt(u,g){var E=u.first;e:do{for(var S=0;S<u.child Line truncated
`?(Fn=mt.appendChild(xe("span",tn[0]=="\r"?"␍":"␤","cm-invalidchar")),Fn.setAttribute("cm-text",tn[0]),u.col+=1):(Fn=u.cm.options.specialCharPlaceholder(tn[0]),Fn.setAttribute("cm-text",tn[0]),f&&v<9?mt.appendChild(xe("span",[Fn])):mt.appendChild(Fn),u.col+=1);u.map.push(u.pos,u.pos+1,Fn),u.pos++}}if(u.trailingSpace=_e.charCodeAt(g.length-1)==32,E||S||K||Ne||Z||ue){var gr=E||"";S&&(gr+=S),K&&(gr+=K);var ur=xe("span",[mt],gr,Z);if(ue)for(var Rr in ue)ue.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&ur.setAttribute(Rr,ue[Rr]);return u.content.appendChild(ur)}u.content.appendChild(mt)}}function mh(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",K=0;K<u.length;K++){var Z=u.charAt(K);Z==" "&&E&&(K==u.length-1||u.charCodeAt(K+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function ns(u,g){return function(E,S,K,Z,ue,_e,Pe){K=K?K+" cm-force-border":"cm-force-border";for(var Ne=E.pos,mt=Ne+S.length;;){for(var Mt=void 0,tn=0;tn<g.length&&(Mt=g[tn],!(Mt.to>Ne&&Mt.from<=Ne));tn++);if(Mt.to>=mt)return u(E,S,K,Z,ue,_e,Pe);u(E,S.slice(0,Mt.to-Ne),K,Z,null,_e,Pe),Z=null,S=S.slice(Mt.to-Ne),Ne=Mt.to}}}function yu(u,g,E,S){var K=!S&&E.widgetNode;K&&u.map.push(u.pos,u.pos+g,K),!S&&u.cm.display.input.needsContentAttribute&&(K||(K=u.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",E.id)),K&&(u.cm.display.input.setUneditable(K),u.content.appendChild(K)),u.pos+=g,u.trailingSpace=!1}function gh(u,g,E){var S=u.markedSpans,K=u.text,Z=0;if(!S){for(var ue=1;ue<E.length;ue+=2)g.addToken(g,K.slice(Z,Z=E[ue]),gd(E[ue+1],g.cm.options));return}for(var _e=K.length,Pe=0,Ne=1,mt="",Mt,tn,Yt=0,wn,Fn,Zn,Xn,gr;;){if(Yt==Pe){wn=Fn=Zn=tn="",gr=null,Xn=null,Yt=1/0;for(var ur=[],Rr=void 0,ii=0;ii<S.length;++ii){var kr=S[ii],ro=kr.marker;if(ro.type=="bookmark"&&kr.from==Pe&&ro.widgetNode)ur.push(ro);else if(kr.from<=Pe&&(kr.to==null||kr.to>Pe||ro.collapsed&&kr.to==Pe&&kr.from==Pe)){if(kr.to!=null&&kr.to!=Pe&&Yt>kr.to&&(Yt=kr.to,Fn=""),ro.className&&(wn+=" "+ro.className),ro.css&&(tn=(tn?tn+";":"")+ro.css),ro.startStyle&&kr.from==Pe&&(Zn+=" "+ro.startStyle),ro.endStyle&&kr.to==Yt&&(Rr||(Rr=[])).push(ro.endStyle,kr.to),ro.title&&((gr||(gr={})).title=ro.title),ro.attributes)for(var Oo in ro.attributes)(gr||(gr={}))[Oo]=ro.attributes[Oo];ro.collapsed&&(!Xn||lt(Xn.marker,ro)<0)&&(Xn=kr)}else kr.from>Pe&&Yt>kr.from&&(Yt=kr.from)}if(Rr)for(var ra=0;ra<Rr.length;ra+=2)Rr[ra+1]==Yt&&(Fn+=" "+Rr[ra]);if(!Xn||Xn.from==Pe)for(var Ls=0;Ls<ur.length;++Ls)yu(g,0,ur[Ls]);if(Xn&&(Xn.from||0)==Pe){if(yu(g,(Xn.to==null?_e+1:Xn.to)-Pe,Xn.marker,Xn.from==null),Xn.to==null)return;Xn.to==Pe&&(Xn=!1)}}if(Pe>=_e)break;for(var Aa=Math.min(_e,Yt);;){if(mt){var ka=Pe+mt.length;if(!Xn){var Qa=ka>Aa?mt.slice(0,Aa-Pe):mt;g.addToken(g,Qa,Mt?Mt+wn:wn,Zn,Pe+Qa.length==Yt?Fn:"",tn,gr)}if(ka>=Aa){mt=mt.slice(Aa-Pe),Pe=Aa;break}Pe=ka,Zn=""}mt=K.slice(Z,Z=E[Ne++]),Mt=gd(E[Ne++],g.cm.options)}}}function Xd(u,g,E){this.line=g,this.rest=$i(g),this.size=this.rest?qe(er(this.rest))-E+1:1,this.node=this.text=null,this.hidden=_i(u,g)}function sA(u,g,E){for(var S=[],K,Z=g;Z<E;Z=K){var ue=new Xd(u.doc,Mr(u.doc,Z),Z);K=Z+ue.size,S.push(ue)}return S}var jh=null;function Jd(u){jh?jh.ops.push(u):u.ownsGroup=jh={ops:[u],delayedCallbacks:[]}}function qc(u){var g=u.delayedCallbacks,E=0;do{for(;E<g.length;E++)g[E].call(null);for(var S=0;S<u.ops.length;S++){var K=u.ops[S];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(E<g.length)}function Gh(u,g){var E=u.ownsGroup;if(E)try{qc(E)}finally{jh=null,g(E)}}var bc=null;function bs(u,g){var E=Be(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),K;jh?K=jh.delayedCallbacks:bc?K=bc:(K=bc=[],setTimeout(zf,0));for(var Z=function(_e){K.push(function(){return E[_e].apply(null,S)})},ue=0;ue<E.length;++ue)Z(ue)}}function zf(){var u=bc;bc=null;for(var g=0;g<u.length;++g)u[g]()}function xc(u,g,E,S){for(var K=0;K<g.changes.length;K++){var Z=g.changes[K];Z=="text"?Nf(u,g):Z=="gutter"?Yh(u,g,E,S):Z=="class"?vd(u,g):Z=="widget"&&Cd(u,g,S)}g.changes=null}function Qh(u){return u.node==u.text&&(u.node=xe("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),f&&v<8&&(u.node.style.zIndex=2)),u.node}function ef(u,g){var E=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),g.background)E?g.background.className=E:(g.background.parentNode.removeChild(g.background),g.background=null);else if(E){var S=Qh(g);g.background=S.insertBefore(xe("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function yd(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):ph(u,g)}function Nf(u,g){var E=g.text.className,S=yd(u,g);g.text==g.node&&(g.node=S.pre),g.text.parentNode.replaceChild(S.pre,g.text),g.text=S.pre,S.bgClass Line truncated
top: `+Rr+"px; width: "+(ii??Pe-ur)+`px;
height: `+(kr-Rr)+"px"))}function Mt(ur,Rr,ii){var kr=Mr(K,ur),ro=kr.text.length,Oo,ra;function Ls(Qa,LA){return In(u,dn(ur,Qa),"div",kr,LA)}function Aa(Qa,LA,al){var Ya=As(u,kr,null,Qa),us=LA=="ltr"==(al=="after")?"left":"right",bi=al=="after"?Ya.begin:Ya.end-(/\s/.test(kr.text.charAt(Ya.end-1))?2:1);return Ls(bi,us)[us]}var ka=ve(kr,K.direction);return Jt(ka,Rr||0,ii??ro,function(Qa,LA,al,Ya){var us=al=="ltr",bi=Ls(Qa,us?"left":"right"),os=Ls(LA-1,us?"right":"left"),Vs=Rr==null&&Qa==0,ua=ii==null&&LA==ro,ms=Ya==0,UA=!ka||Ya==ka.length-1;if(os.top-bi.top<=3){var Io=(Ne?Vs:ua)&&ms,lh=(Ne?ua:Vs)&&UA,gA=Io?_e:(us?bi:os).left,dc=lh?Pe:(us?os:bi).right;mt(gA,bi.top,dc-gA,bi.bottom)}else{var Fc,ba,Pl,kd;us?(Fc=Ne&&Vs&&ms?_e:bi.left,ba=Ne?Pe:Aa(Qa,al,"before"),Pl=Ne?_e:Aa(LA,al,"after"),kd=Ne&&ua&&UA?Pe:os.right):(Fc=Ne?Aa(Qa,al,"before"):_e,ba=!Ne&&Vs&&ms?Pe:bi.right,Pl=!Ne&&ua&&UA?_e:os.left,kd=Ne?Aa(LA,al,"after"):Pe),mt(Fc,bi.top,ba-Fc,bi.bottom),bi.bottom<os.top&&mt(_e,bi.bottom,null,os.top),mt(Pl,os.top,kd-Pl,os.bottom)}(!Oo||eu(bi,Oo)<0)&&(Oo=bi),eu(os,Oo)<0&&(Oo=os),(!ra||eu(bi,ra)<0)&&(ra=bi),eu(os,ra)<0&&(ra=os)}),{start:Oo,end:ra}}var tn=g.from(),Yt=g.to();if(tn.line==Yt.line)Mt(tn.line,tn.ch,Yt.ch);else{var wn=Mr(K,tn.line),Fn=Mr(K,Yt.line),Zn=Or(wn)==Or(Fn),Xn=Mt(tn.line,tn.ch,Zn?wn.text.length+1:null).end,gr=Mt(Yt.line,Zn?0:null,Yt.ch).start;Zn&&(Xn.top<gr.top-2?(mt(Xn.right,Xn.top,null,Xn.bottom),mt(_e,gr.top,gr.left,gr.bottom)):mt(Xn.right,Xn.top,gr.left-Xn.right,Xn.bottom)),Xn.bottom<gr.top&&mt(_e,Xn.bottom,null,gr.top)}E.appendChild(Z)}function tu(u){if(u.state.focused){var g=u.display;clearInterval(g.blinker);var E=!0;g.cursorDiv.style.visibility="",u.options.cursorBlinkRate>0?g.blinker=setInterval(function(){u.hasFocus()||Go(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function sc(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Ch(u))}function Jc(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Go(u))},100)}function Ch(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(ut(u,"focus",u,g),u.state.focused=!0,Se(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),x&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),tu(u))}function Go(u,g){u.state.delayingBlurEvent||(u.state.focused&&(ut(u,"blur",u,g),u.state.focused=!1,me(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Ec(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),K=g.lineDiv.getBoundingClientRect().top,Z=0,ue=0;ue<g.view.length;ue++){var _e=g.view[ue],Pe=u.options.lineWrapping,Ne=void 0,mt=0;if(!_e.hidden){if(K+=_e.line.height,f&&v<8){var Mt=_e.node.offsetTop+_e.node.offsetHeight;Ne=Mt-E,E=Mt}else{var tn=_e.node.getBoundingClientRect();Ne=tn.bottom-tn.top,!Pe&&_e.text.firstChild&&(mt=_e.text.firstChild.getBoundingClientRect().right-tn.left-1)}var Yt=_e.line.height-Ne;if((Yt>.005||Yt<-.005)&&(K<S&&(Z-=Yt),Rs(_e.line,Ne),Bc(_e.line),_e.rest))for(var wn=0;wn<_e.rest.length;wn++)Bc(_e.rest[wn]);if(mt>u.display.sizerWidth){var Fn=Math.ceil(mt/BA(u.display));Fn>u.display.maxLineLength&&(u.display.maxLineLength=Fn,u.display.maxLine=_e.line,u.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(g.scroller.scrollTop+=Z)}function Bc(u){if(u.widgets)for(var g=0;g<u.widgets.length;++g){var E=u.widgets[g],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function nu(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-Vh(u));var K=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,Z=xt(g,S),ue=xt(g,K);if(E&&E.ensure){var _e=E.ensure.from.line,Pe=E.ensure.to.line;_e<Z?(Z=_e,ue=xt(g,Yi(Mr(g,_e))+u.wrapper.clientHeight)):Math.min(Pe,g.lastLine())>=ue&&(Z=xt(g,Yi(Mr(g,Pe))-u.wrapper.clientHeight),ue=Pe)}return{from:Z,to:Math.max(ue,Z+1)}}function sf(u,g){if(!ot(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),K=null,Z=E.wrapper.ownerDocument;if(g.top+S.top<0?K=!0:g.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(K=!1),K!=null&&!V){var ue=xe("div","​",null,`position: absolute;
top: `+(g.top-E.viewOffset-Vh(u.display))+`px;
height: `+(g.bottom-g.top+vu(u)+E.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ue),ue.scrollIntoView(K),u.display.lineSpace.removeChild(ue)}}}function wd(u,g,E,S){S==null&&(S=0);var K;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?dn(g.line,g.ch+1,"before"):g,g=g.ch?dn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var Z=0;Z<5;Z++){var ue=!1,_e=An(u,g),Pe=!E||E==g?_e:An(u,E);K={left:Math.min(_e.left,Pe.left),top:Math.min(_e.top,Pe.top)-S,right:Math.max(_e.left,Pe.left),bottom:Math.max(_e.bottom,Pe.bottom)+S};var Ne=Oc(u,K),mt=u.doc.scrollTop,Mt=u.doc.scrollLeft;if(Ne.scrollTop!=null&&(fs(u,Ne.scrollTop),Math.abs(u.doc.scrollTop-mt)>1&&(ue=!0)),Ne.scrollLeft!=null&&(Xs(u,Ne.scrollLeft),Math.abs(u.doc.scrollLeft-Mt)>1&&(ue=!0)),!ue)break}return K}function ac(u,g){var E=Oc(u,g);E.scrollTop!=null&&fs(u,E.scrollTop),E.scrollLeft!=null&&Xs(u,E.scrollLeft)}function Oc(u,g){var E=u.display,S=tl(u.display);g.top<0&&(g.top=0);var K=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,Z=wc(u),ue={};g.bottom-g.top>Z&&(g.bottom=g.top+Z);var _e=u.doc.height+yh(E),Pe=g.top<S,Ne=g.bottom>_e-S;if(g.top<K)ue.scrollTop=Pe?0:g.top;else if(g.bottom>K+Z){var mt=Math.min(g.top,(Ne?_e:g.bottom)-Z);mt!=K&&(ue.scrollTop=mt)}var Mt=u.options.fixedGutter?0:E.gutters.offsetWidth,tn=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-Mt,Yt=Mc(u)-E.gutters.offsetWidth,wn=g.right-g.left>Yt;return wn&&(g.right=g.left+Yt),g.left<10?ue.scrollLeft=0:g.left<tn?ue.scrollLeft=Math.max(0,g.left+Mt-(wn?0:10)):g.right>Yt+tn-3&&(ue.scrollLeft=g.right+(wn?0:10)-Yt),ue}function lc(u,g){g!=null&&(eh(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function xs(u){eh(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function Qs(u,g,E){(g!=null||E!=null)&&eh(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Sd(u,g){eh(u),u.curOp.scrollToPos=g}function eh(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Kr(u,g.from),S=Kr(u,g.to);_h(u,E,S,g.margin)}}function _h(u,g,E,S){var K=Oc(u,{left:Math.min(g.left,E.left),top:Math.min(g.top,E.top)-S,right:Math.max(g.right,E.right),bottom:Math.max(g.bottom,E.bottom)+S});Qs(u,K.scrollLeft,K.scrollTop)}function fs(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||El(u,{top:g}),xu(u,g,!0),i&&El(u),Na(u,100))}function xu(u,g,E){g=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,g)),!(u.display.scroller.scrollTop==g&&!E)&&(u.doc.scrollTop=g,u.display.scrollbars.setScrollTop(g),u.display.scroller.scrollTop!=g&&(u.display.scroller.scrollTop=g))}function Xs(u,g,E,S){g=Math.max(0,Math.min(g,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((E?g==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-g)<2)&&!S)&&(u.doc.scrollLeft=g,ju(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function Nu(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+yh(u.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:u.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+vu(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var Wl=function(u,g,E){this.cm=E;var S=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=K.tabIndex=-1,u(S),u(K),We(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),We(K,"scroll",function(){K.clientWidth&&g(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wl.prototype.update=function(u){var g=u.scrollWidth>u.clientWidth+1,E=u.scrollHeight>u.clientHeight+1,S=u.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=g?S+"px":"0";var K=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(g){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=u.barLeft+"px";var Z=u.viewWidth-u.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:g?S:0}},Wl.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wl.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi Line truncated
`},setDirection:ps(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&Qu(this.cm))})}),kt.prototype.eachLine=kt.prototype.iter;var Lt=0;function sn(u){var g=this;if(Cn(g),!(ot(g,u)||EA(g.display,u))){nn(u),f&&(Lt=+new Date);var E=JA(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var K=S.length,Z=Array(K),ue=0,_e=function(){++ue==K&&Po(g,function(){E=Ci(g.doc,E);var Yt={from:E,to:E,text:g.doc.splitLines(Z.filter(function(wn){return wn!=null}).join(g.doc.lineSeparator())),origin:"paste"};uc(g.doc,Yt),ou(g.doc,ja(Ci(g.doc,E),Ci(g.doc,ma(Yt))))})()},Pe=function(Yt,wn){if(g.options.allowDropFileTypes&&it(g.options.allowDropFileTypes,Yt.type)==-1){_e();return}var Fn=new FileReader;Fn.onerror=function(){return _e()},Fn.onload=function(){var Zn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zn)){_e();return}Z[wn]=Zn,_e()},Fn.readAsText(Yt)},Ne=0;Ne<S.length;Ne++)Pe(S[Ne],Ne);else{if(g.state.draggingText&&g.doc.sel.contains(E)>-1){g.state.draggingText(u),setTimeout(function(){return g.display.input.focus()},20);return}try{var mt=u.dataTransfer.getData("Text");if(mt){var Mt;if(g.state.draggingText&&!g.state.draggingText.copy&&(Mt=g.listSelections()),Ys(g.doc,ja(E,E)),Mt)for(var tn=0;tn<Mt.length;++tn)C(g.doc,"",Mt[tn].anchor,Mt[tn].head,"drag");g.replaceSelection(mt,"around","paste"),g.display.input.focus()}}catch{}}}}function an(u,g){if(f&&(!u.state.draggingText||+new Date-Lt<100)){pr(g);return}if(!(ot(u,g)||EA(u.display,g))&&(g.dataTransfer.setData("Text",u.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!N)){var E=xe("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U&&(E.width=E.height=1,u.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),U&&E.parentNode.removeChild(E)}}function on(u,g){var E=JA(u,g);if(E){var S=document.createDocumentFragment();Xc(u,E,S),u.display.dragCursor||(u.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),Le(u.display.dragCursor,S)}}function Cn(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function Mn(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var K=g[S].CodeMirror;K&&E.push(K)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)u(E[Z])})}}var sr=!1;function Hn(){sr||(kn(),sr=!0)}function kn(){var u;We(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,Mn(Er)},100))}),We(window,"blur",function(){return Mn(Go)})}function Er(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Vr={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"},ci=0;ci<10;ci++)Vr[ci+48]=Vr[ci+96]=String(ci);for(var Yo=65;Yo<=90;Yo++)Vr[Yo]=String.fromCharCode(Yo);for(var bo=1;bo<=12;bo++)Vr[bo+111]=Vr[bo+63235]="F"+bo;var Ro={};Ro.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"},Ro.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"},Ro.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-Line truncated
`,"start")},toggleOverwrite:function(u){return u.toggleOverwrite()}};function Vl(u,g){var E=Mr(u.doc,g),S=Or(E);return S!=E&&(g=qe(S)),DA(!0,u,S,g,1)}function dA(u,g){var E=Mr(u.doc,g),S=ni(E);return S!=E&&(g=qe(S)),DA(!0,u,E,g,-1)}function Yu(u,g){var E=Vl(u,g.line),S=Mr(u.doc,E.line),K=ve(S,u.doc.direction);if(!K||K[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),ue=g.line==E.line&&g.ch<=Z&&g.ch;return dn(E.line,ue?0:Z,E.sticky)}return E}function Hl(u,g,E){if(typeof g=="string"&&(g=Iu[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,K=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),K=g(u)!=dt}finally{u.display.shift=S,u.state.suppressEdits=!1}return K}function cc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var K=qi(g,u.state.keyMaps[S],E,u);if(K)return K}return u.options.extraKeys&&qi(g,u.options.extraKeys,E,u)||qi(g,u.options.keyMap,E,u)}var qs=new Oe;function is(u,g,E,S){var K=u.state.keySeq;if(K){if(ya(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:qs.set(50,function(){u.state.keySeq==K&&(u.state.keySeq=null,u.display.input.reset())}),na(u,K+" "+g,E,S))return!0}return na(u,g,E,S)}function na(u,g,E,S){var K=cc(u,g,S);return K=="multi"&&(u.state.keySeq=g),K=="handled"&&bs(u,"keyHandled",u,g,E),(K=="handled"||K=="multi")&&(nn(E),tu(u)),!!K}function Ss(u,g){var E=Ca(g,!0);return E?g.shiftKey&&!u.state.keySeq?is(u,"Shift-"+E,g,function(S){return Hl(u,S,!0)})||is(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Hl(u,S)}):is(u,E,g,function(S){return Hl(u,S)}):!1}function Ep(u,g,E){return is(u,"'"+E+"'",g,function(S){return Hl(u,S,!0)})}var hc=null;function lf(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=je(Qt(g)),!ot(g,u))){f&&v<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=Ss(g,u);U&&(hc=S?E:null,!S&&E==88&&!vs&&(q?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!q&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&$l(g)}}function $l(u){var g=u.display.lineDiv;Se(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(me(g,"CodeMirror-crosshair"),rt(document,"keyup",E),rt(document,"mouseover",E))}We(document,"keyup",E),We(document,"mouseover",E)}function FA(u){u.keyCode==16&&(this.doc.sel.shift=!1),ot(this,u)}function ed(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(EA(g.display,u)||ot(g,u)||u.ctrlKey&&!u.altKey||q&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(U&&E==hc){hc=null,nn(u);return}if(!(U&&(!u.which||u.which<10)&&Ss(g,u))){var K=String.fromCharCode(S??E);K!="\b"&&(Ep(g,u,K)||g.display.input.onKeyPress(u))}}}var uu=400,cu=function(u,g,E){this.time=u,this.pos=g,this.button=E};cu.prototype.compare=function(u,g,E){return this.time+uu>u&&dr(g,this.pos)==0&&E==this.button};var Tu,Tl;function ah(u,g){var E=+new Date;return Tl&&Tl.compare(E,u,g)?(Tu=Tl=null,"triple"):Tu&&Tu.compare(E,u,g)?(Tl=new cu(E,u,g),Tu=null,"double"):(Tu=new cu(E,u,g),Tl=null,"single")}function wh(u){var g=this,E=g.display;if(!(ot(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,EA(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!qu(g,u)){var S=JA(g,u),K=Xt(u),Z=S?ah(S,K):"single";Ut(g).focus(),K==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Od(g,K,S,Z,u))&&(K==1?S?Af(g,S,Z,u):Tr(u)==E.scroller&&nn(u):K==2?(S&&Os(g.doc,S),setTimeout(function(){return E.input.focus()},20)):K==3&&(fe?g.display.input.onContextMenu(u):Jc(g)))}}}function Od(u,g,E,S,K){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(g==1?"Left":g==2?"Middle":"Right")+Z,is(u,va(Z,K),K,function(ue){if(typeof ue=="string"&&(ue=Iu[ue]),!ue)return!1;var _e=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),_e=ue(u,E)!=dt}finally{u.state.suppressEdits=!1}return _e})}function td(u,g,E){var S=u.getOption("configureMouse"),K=S?S(u,g,E):{};if(K.unit==null){var Z=ne?E.shiftKey&&E.metaKey:E.altKey;K.unit=Z?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(K.extend==null||u.doc.extend)&&(K.extend=u.doc.extend||E.shiftKey),K.addNew==null&&(K.addNew=q?E.metaKey:E.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(q?E.altKey:E.ctrlKey)),K}function Af(u,g,E,S){f?setTimeout(Pt(sc,u),0):u.curOp.focus=je(Qt(u));var K=td(u,E,S),Z=u.doc.sel,ue;u.options.dragDrop&&_r&&!u.isReadOnly()&&E=="single"&&(ue=Z.contains(g))>-1&&(dr((ue=Z.ranges[ue]).from(),g)<0||g.xRel>0)&&(dr(ue.to(),g)>0||g.xRel<0)?Hf(u,S,g,K):uf(u,S,g,K)}function Hf(u,g,E,S){var K=u.display,Z=!1,ue=Po(u,function(Ne){x&&(K.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Jc(u)),rt(K.wrapper.ownerDocument,"mouseup",ue),rt(K.wrapper.ownerDocument,"mousemove",_e),rt(K.scroller,"dragstart",Pe),rt(K.scro Line truncated
`)==g){if(S.ranges.length%ku.text.length==0){Ne=[];for(var mt=0;mt<ku.text.length;mt++)Ne.push(Z.splitLines(ku.text[mt]))}}else Pe.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(Ne=Tn(Pe,function(Xn){return[Xn]}));for(var Mt=u.curOp.updateInput,tn=S.ranges.length-1;tn>=0;tn--){var Yt=S.ranges[tn],wn=Yt.from(),Fn=Yt.to();Yt.empty()&&(E&&E>0?wn=dn(wn.line,wn.ch-E):u.state.overwrite&&!_e?Fn=dn(Fn.line,Math.min(Mr(Z,Fn.line).text.length,Fn.ch+er(Pe).length)):_e&&ku&&ku.lineWise&&ku.text.join(`
`)==Pe.join(`
`)&&(wn=Fn=dn(wn.line,0)));var Zn={from:wn,to:Fn,text:Ne?Ne[tn%Ne.length]:Pe,origin:K||(_e?"paste":u.state.cutIncoming>ue?"cut":"+input")};uc(u.doc,Zn),bs(u,"inputRead",u,Zn)}g&&!_e&&Td(u,g),xs(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Mt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Ia(u,g){var E=u.clipboardData&&u.clipboardData.getData("Text");if(E)return u.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Js(g,function(){return id(g,E,0,null,"paste")}),!0}function Td(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var K=E.ranges[S];if(!(K.head.ch>100||S&&E.ranges[S-1].head.line==K.head.line)){var Z=u.getModeAt(K.head),ue=!1;if(Z.electricChars){for(var _e=0;_e<Z.electricChars.length;_e++)if(g.indexOf(Z.electricChars.charAt(_e))>-1){ue=Eh(u,K.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Mr(u.doc,K.head.line).text.slice(0,K.head.ch))&&(ue=Eh(u,K.head.line,"smart"));ue&&bs(u,"electricInput",u,K.head.line)}}}function od(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var K=u.doc.sel.ranges[S].head.line,Z={anchor:dn(K,0),head:dn(K+1,0)};E.push(Z),g.push(u.getRange(Z.anchor,Z.head))}return{text:g,ranges:E}}function df(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function sd(){var u=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=xe("div",[u],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?u.style.width="1000px":u.setAttribute("wrap","off"),$&&(u.style.border="1px solid black"),g}function Bh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Ut(this).focus(),this.display.input.focus()},setOption:function(S,K){var Z=this.options,ue=Z[S];Z[S]==K&&S!="mode"||(Z[S]=K,g.hasOwnProperty(S)&&Po(this,g[S])(this,K,ue),ut(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,K){this.state.keyMaps[K?"push":"unshift"](ta(S))},removeKeyMap:function(S){for(var K=this.state.keyMaps,Z=0;Z<K.length;++Z)if(K[Z]==S||K[Z].name==S)return K.splice(Z,1),!0},addOverlay:ri(function(S,K){var Z=S.token?S:u.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");gn(this.state.overlays,{mode:Z,modeSpec:S,opaque:K&&K.opaque,priority:K&&K.priority||0},function(ue){return ue.priority}),this.state.modeGen++,nl(this)}),removeOverlay:ri(function(S){for(var K=this.state.overlays,Z=0;Z<K.length;++Z){var ue=K[Z].modeSpec;if(ue==S||typeof S=="string"&&ue.name==S){K.splice(Z,1),this.state.modeGen++,nl(this);return}}}),indentLine:ri(function(S,K,Z){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),xn(this.doc,S)&&Eh(this,S,K,Z)}),indentSelection:ri(function(S){for(var K=this.doc.sel.ranges,Z=-1,ue=0;ue<K.length;ue++){var _e=K[ue];if(_e.empty())_e.head.line>Z&&(Eh(this,_e.head.line,S,!0),Z=_e.head.line,ue==this.doc.sel.primIndex&&xs(this));else{var Pe=_e.from(),Ne=_e.to(),mt=Math.max(Z,Pe.line);Z=Math.min(this.lastLine(),Ne.line-(Ne.ch?0:1))+1;for(var Mt=mt;Mt<Z;++Mt)Eh(this,Mt,S);var tn=this.doc.sel.ranges;Pe.ch==0&&K.length==tn.length&&tn[ue].from().ch>0&&il(this.doc,ue,new Bo(Pe,tn[ue].to()),Dt)}}}),getTokenAt:function(S,K){return aa(this,S,K)},getLineTokens:function(S,K){return aa(this,dn(S),K,!0)},getTokenTypeAt:function(S){S=Ci(this.doc,S);var K=Ws(this,Mr(this.doc,S.line)),Z=0,ue=(K.length-1)/2,_e=S.ch,Pe;if(_e==0)Pe=K[2];else for(;;){var Ne=Z+ue>>1;if((Ne?K[Ne*2-1]:0)>=_e)ue=Ne;else if(K[Ne*2+1]<_e)Z=Ne+1;else{Pe=K[Ne*2+2];break}}var mt=Pe?Pe.indexOf("overlay "):-1;return mt<0?Pe:mt==0?null:Pe.slice(0,mt-1)},getModeAt:function(S){var K=this.doc.mode;return K.innerMode?u.innerMode(K,this.getTokenAt(S).state).mode:K},getHelper:function(S,K){return this.getHelpers(S,K)[0]},getHelpers:function(S,K){var Z=[];if(!E.hasOwnProperty(K))return Z;var ue=E[K],_e=this.getModeAt(S);if(typeof _e[K]=="string")ue[_e[K]]&&Z.push(ue[_e[K]]);else if(_e[K])for(var Pe=0;Pe<_e[K].length;Pe++){var Ne=ue[_e[K][Pe]];Ne&&Z.push(Ne)}else _e.helperType&&ue[_e.helperType]?Z.push(ue[_e.helperType]):ue[_e.name]&&Z.push(ue[_e.name]);for(var mt=0;mt<ue._global.length;mt++){var Mt=ue._global[mt];Mt.pred(_e,this)&&it(Z,Mt.val)==-1&&Z.push(Mt.val)}return Z},getStateAfter:function(S,K){var Z=this.doc;return S=nA(Z,S??Z.first+Z.size-1),di(this,S+1,K).state},cursorCoords:function(S,K){var Z,ue=this.doc.sel.primary();return S==null?Z=ue.head:typeof S=="object"?Z=Ci(this.doc,S):Z=S?ue.from():ue.to(),An(this,Z,K||"page")},charCoords:function(S,K){return In(this,Ci(this.doc,S),K||"page")},coordsChar:function(S,K){return S=en(this,S,K||"page"),po(this,S.left,S.top)},lineAtHeight:function(S,K){return S=en(this,{top:S,left:0},K||"page").top,xt( Line truncated
`,Zn=Ye(Fn,Yt)?"w":tn&&Fn==`
`?"n":!tn||/\s/.test(Fn)?null:"p";if(tn&&!wn&&!Zn&&(Zn="s"),Mt&&Mt!=Zn){E<0&&(E=1,mt(),g.sticky="after");break}if(Zn&&(Mt=Zn),E>0&&!mt(!wn))break}var Xn=Kc(u,g,Z,ue,!0);return Wi(Z,Xn)&&(Xn.hitSide=!0),Xn}function ff(u,g,E,S){var K=u.doc,Z=g.left,ue;if(S=="page"){var _e=Math.min(u.display.wrapper.clientHeight,Ut(u).innerHeight||K(u).documentElement.clientHeight),Pe=Math.max(_e-.5*tl(u.display),3);ue=(E>0?g.bottom:g.top)+E*Pe}else S=="line"&&(ue=E>0?g.bottom+3:g.top-3);for(var Ne;Ne=po(u,Z,ue),!!Ne.outside;){if(E<0?ue<=0:ue>=K.height){Ne.hitSide=!0;break}ue+=E*5}return Ne}var Xo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xo.prototype.init=function(u){var g=this,E=this,S=E.cm,K=E.div=u.lineDiv;K.contentEditable=!0,df(K,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(_e){for(var Pe=_e.target;Pe;Pe=Pe.parentNode){if(Pe==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}We(K,"paste",function(_e){!Z(_e)||ot(S,_e)||Ia(_e,S)||v<=11&&setTimeout(Po(S,function(){return g.updateFromDOM()}),20)}),We(K,"compositionstart",function(_e){g.composing={data:_e.data,done:!1}}),We(K,"compositionupdate",function(_e){g.composing||(g.composing={data:_e.data,done:!1})}),We(K,"compositionend",function(_e){g.composing&&(_e.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),We(K,"touchstart",function(){return E.forceCompositionEnd()}),We(K,"input",function(){g.composing||g.readFromDOMSoon()});function ue(_e){if(!(!Z(_e)||ot(S,_e))){if(S.somethingSelected())rd({lineWise:!1,text:S.getSelections()}),_e.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var Pe=od(S);rd({lineWise:!0,text:Pe.text}),_e.type=="cut"&&S.operation(function(){S.setSelections(Pe.ranges,0,Dt),S.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ne=ku.text.join(`
`);if(_e.clipboardData.setData("Text",Ne),_e.clipboardData.getData("Text")==Ne){_e.preventDefault();return}}var mt=sd(),Mt=mt.firstChild;df(Mt),S.display.lineSpace.insertBefore(mt,S.display.lineSpace.firstChild),Mt.value=ku.text.join(`
`);var tn=je(gt(K));Ze(Mt),setTimeout(function(){S.display.lineSpace.removeChild(mt),tn.focus(),tn==K&&E.showPrimarySelection()},50)}}We(K,"copy",ue),We(K,"cut",ue)},Xo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Xo.prototype.prepareSelection=function(){var u=Md(this.cm,!1);return u.focus=je(gt(this.div))==this.div,u},Xo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Xo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),K=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||K.line<g.display.viewFrom){u.removeAllRanges();return}var Z=_a(g,u.anchorNode,u.anchorOffset),ue=_a(g,u.focusNode,u.focusOffset);if(!(Z&&!Z.bad&&ue&&!ue.bad&&dr(fa(Z,ue),S)==0&&dr(as(Z,ue),K)==0)){var _e=g.display.view,Pe=S.line>=g.display.viewFrom&&Dc(g,S)||{node:_e[0].measure.map[2],offset:0},Ne=K.line<g.display.viewTo&&Dc(g,K);if(!Ne){var mt=_e[_e.length-1].measure,Mt=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ne={node:Mt[Mt.length-1],offset:Mt[Mt.length-2]-Mt[Mt.length-3]}}if(!Pe||!Ne){u.removeAllRanges();return}var tn=u.rangeCount&&u.getRangeAt(0),Yt;try{Yt=Je(Pe.node,Pe.offset,Ne.offset,Ne.node)}catch{}Yt&&(!i&&g.state.focused?(u.collapse(Pe.node,Pe.offset),Yt.collapsed||(u.removeAllRanges(),u.addRange(Yt))):(u.removeAllRanges(),u.addRange(Yt)),tn&&u.anchorNode==null?u.addRange(tn):i&&this.startGracePeriod()),this.rememberSelection()}},Xo.prototype.startGracePeriod=function(){var u=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){u.gracePeriod=!1,u.selectionChanged()&&u.cm.operation(function(){return u.cm.curOp.selectionChanged=!0})},20)},Xo.prototype.showMultipleSelections=function(u){Le(this.cm.display.cursorDiv,u.cursors),Le(this.cm.display.selectionDiv,u.selection)},Xo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Xo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return Ve(this.div,g)},Xo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||je(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xo.prototype.blur=function(){this.div.blur()},Xo.prototype.getField=function(){return this.div},Xo.prototype.supportsTouch=function(){return!0},Xo.prototype.receivedFocus=function(){var u=this,g=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):Js(this.cm,function(){return g.cm.curOp.selectionChanged=!0});function E(){g.cm.state.focused&&(g.pollSelection(),g.polling.set(g.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Xo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Xo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(oe&&k&&this.cm.display.gutterSpecs.length&&pf(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=_a(g,u.anchorNode,u.anchorOffset),S=_a(g,u.focusNode,u.focusOffset);E&&S&&Js(g,function(){ea(g.doc,ja(E,S),Dt),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Xo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var u=this.cm,g=u.display,E=u.doc.sel.primary(),S=E.from(),K=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=dn(S.line-1,Mr(u.doc,S.line-1).length)),K.ch==Mr(u.doc,K.line).text.length&&K.line<u.lastLine()&&(K=dn(K.line+1,0)),S.line<g.viewFrom||K.line>g.viewTo-1)return!1;var Z,ue,_e;S.line==g.viewFrom||(Z=Xi(u,S.line))==0?(ue=qe(g.view[0].line),_e=g.view[0].node):(ue=qe(g.view[Z].line),_e=g.view[Z-1].node.nextSibling);var Pe=Xi(u,K.line),Ne,mt;if(Pe==g.view.length-1?(Ne=g.viewTo-1,mt=g.lineDiv.lastChild):(Ne=qe(g.view[Pe+1].line)-1,mt=g.view[Pe+1].node.previousSibling),!_e)return!1;for(var Mt=u.doc.splitLines(ad(u,_e,mt,ue,Ne)),tn=Da(u.doc,dn(ue,0),dn(Ne,Mr(u.doc,Ne).text.length));Mt.length>1&&tn.length>1;)if(er(Mt)==er(tn))Mt.pop(),tn.pop(),Ne--;else if(Mt[0]==tn[0])Mt.shift(),tn.shift(),ue++;else break;for(var Yt=0,wn=0,Fn=Mt[0],Zn=tn[0],Xn=Math.min(Fn.length,Zn.length);Yt<Xn&&Fn.charCodeAt(Yt)==Zn.charCodeAt(Yt);)++Yt;for(var gr=er(Mt),ur=er(tn),Rr=Math.min(gr.length-(Mt.length==1?Yt:0),ur.length-(tn. Line truncated
`),Ze(K))}else return;ue.type=="cut"&&(S.state.cutIncoming=+new Date)}}We(K,"cut",Z),We(K,"copy",Z),We(u.scroller,"paste",function(ue){if(!(EA(u,ue)||ot(S,ue))){if(!K.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var _e=new Event("paste");_e.clipboardData=ue.clipboardData,K.dispatchEvent(_e)}}),We(u.lineSpace,"selectstart",function(ue){EA(u,ue)||nn(ue)}),We(K,"compositionstart",function(){var ue=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ue,range:S.markText(ue,S.getCursor("to"),{className:"CodeMirror-composing"})}}),We(K,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ta.prototype.createField=function(u){this.wrapper=sd(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;df(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Ta.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Md(u);if(u.options.moveInputWithCursor){var K=An(u,E.sel.primary().head,"div"),Z=g.wrapper.getBoundingClientRect(),ue=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,K.top+ue.top-Z.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,K.left+ue.left-Z.left))}return S},Ta.prototype.showSelection=function(u){var g=this.cm,E=g.display;Le(E.cursorDiv,u.cursors),Le(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Ta.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var g=this.cm;if(this.resetting=!0,g.somethingSelected()){this.prevInput="";var E=g.getSelection();this.textarea.value=E,g.state.focused&&Ze(this.textarea),f&&v>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",f&&v>=9&&(this.hasSelection=null));this.resetting=!1}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||je(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Ta.prototype.fastPoll=function(){var u=!1,g=this;g.pollingFast=!0;function E(){var S=g.poll();!S&&!u?(u=!0,g.polling.set(60,E)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,E)},Ta.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Pr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var K=E.value;if(K==S&&!g.somethingSelected())return!1;if(f&&v>=9&&this.hasSelection===K||q&&/[\uf700-\uf7ff]/.test(K))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var Z=K.charCodeAt(0);if(Z==8203&&!S&&(S="​"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,_e=Math.min(S.length,K.length);ue<_e&&S.charCodeAt(ue)==K.charCodeAt(ue);)++ue;return Js(g,function(){id(g,K.slice(ue),S.length-ue,null,u.composing?"*compose":null),K.length>1e3||K.indexOf(`
`)>-1?E.value=u.prevInput="":u.prevInput=K,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){f&&v>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,K=g.textarea;g.contextMenuPending&&g.contextMenuPending();var Z=JA(E,u),ue=S.scroller.scrollTop;if(!Z||U)return;var _e=E.options.resetSelectionOnContextMenu;_e&&E.doc.sel.contains(Z)==-1&&Po(E,ea)(E.doc,ja(Z),Dt);var Pe=K.style.cssText,Ne=g.wrapper.style.cssText,mt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(u.clientY-mt.top-5)+"px; left: "+(u.clientX-mt.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Mt;x&&(Mt=K.ownerDocument.defaultView.scrollY),S.input.focus(),x&&K.ownerDocument.defaultView.scrollTo(null,Mt),S.input.reset(),E.somethingSelected()||(K.value=g.prevInput=" "),g.contextMenuPending=Yt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function tn(){if(K.selectionStart!=null){var Fn=E.somethingSelected(),Zn="​"+(Fn?K.value:"");K.value="⇚",K.value=Zn,g.prevInput=Fn?"":"​",K.selectionStart=1,K.selectionEnd=Zn.length,S.selForContextMenu=E.doc.sel}}function Yt(){if(g.contextMenuPending==Yt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ne,K.style.cssText=Pe,f&&v<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ue),K.selectionStart!=null)){(!f||f&&v<9)&&tn();var Fn=0,Zn=function(){S.selForContextMenu==E.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&g.prevInput=="​"?Po(E,ol)(E):Fn++<10?S.detectingSelectAll=setTimeout(Zn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Zn,200)}}if(f&&v>=9&&tn(),fe){pr(u);var wn=function(){rt(window,"mouseup",wn),setTimeout(Yt,20)};We(window,"mouseup",wn)}else setTimeout(Yt,50)},Ta.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function um(u,g){if(g=g?ze(g):{},g.value=u.value,!g.tabindex&&u.tabIndex&&(g.tabindex=u.tabIndex),!g.placeholder&&u.placeholder&&(g.placeholder=u.placeholder),g.autofocus==null){var E=je(gt(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=_e.getValue()}var K;if(u.form&&(We(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var Z=u.form;K=Z.submit;try{var ue=Z.submit=function(){S(),Z.submit=K,Z.submit(),Z.submit=ue}}catch{}}g.finishInit=function(Pe){Pe.save=S,Pe.getTextArea=function(){return u},Pe.toTextArea=function(){Pe.toTextArea=isNaN,S(),u.parentNode.removeChild(Pe.getWrapperElement()),u.style.display="",u.form&&(rt(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=K))}},u.style.display="none";var _e=qo(function(Pe){return u.parentNode.insertBefore(Pe,u.nextSibling)},g);return _e}function Xf(u){u.off=rt,u.on=We,u.wheelEventPixels=Gu,u.Doc=kt,u.splitLines=Ar,u.countColumn=Ke,u.findColumn=bn,u.isWordChar=tr,u.Pass=dt,u.signal=ut,u.Line=La,u.changeEnd=ma,u.scrollbarModel=Ic,u.Pos=dn,u.cmpPos=dr,u.modes=$r,u.mimeModes=Cs,u.resolveMode=sa,u.getMode=Wo,u.modeExtensions=Uo,u.extendMode=So,u.copyState=pi,u.startState=_l,u.innerMode=tA,u.commands=Iu,u.keyMap=Ro,u.keyName=Ca,u.isModifierKey=ya,u.lookupKey=qi,u.normalizeKeyMap=to,u.StringStream=Ni,u.SharedTextMarker=ct,u.TextMarker=$e,u.LineWidget=ge,u.e_preventDefault=nn,u.e_stopPropagation=Rn,u.e_stop=pr,u.addClass=Se,u.contains=Ve,u.rmClass=me,u.keyNames=Vr}fA(qo),Bh(qo);var mA="iter insert remove copy getEditor constructor".split(" ");for(var Tp in kt.prototype)kt.prototype.hasOwnProperty(Tp)&&it(mA,Tp)<0&&(qo.prototype[Tp]=function(u){return function(){return u.apply(this.doc,arguments)}}(kt.prototype[Tp]));return Nt(kt),qo.inputStyles={textarea:Ta,contenteditable:Xo},qo.defineMode=function(u){!qo.defaults.mode&&u!="null"&&(qo.defaults.mode=u),ds.apply(this,arguments)},qo.defineMIME=Xa,qo.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),qo.defineMIME("text/plain","null"),qo.defineExtension=function(u,g){qo.prototype[u]=g},qo.defineDocExtension=function(u,g){kt.prototype[u]=g},qo.fromTextArea=um,Xf(qo),qo.version="5.65.19",qo})}(Eb)),Eb.exports}var Bie=Nx();const mp=hl(Bie);var V9={exports:{}},H9;function Oie(){return H9||(H9=1,function(n,e){(function(t){t(Nx())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,f=i.json||o,v=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function qe(Co){return{type:Co,style:"keyword"}}var xt=qe("keyword a"),xn=qe("keyword b"),qn=qe("keyword c"),dn=qe("keyword d"),dr=qe("operator"),Wi={type:"atom",style:"atom"};return{if:qe("if"),while:xt,with:xt,else:xn,do:xn,try:xn,finally:xn,return:dn,break:dn,continue:dn,new:qe("new"),delete:qn,void:qn,throw:qn,debugger:qe("debugger"),var:qe("var"),const:qe("var"),let:qe("var"),function:qe("function"),catch:qe("catch"),for:qe("for"),switch:qe("switch"),case:qe("case"),default:qe("default"),in:dr,typeof:dr,instanceof:dr,true:Wi,false:Wi,null:Wi,undefined:Wi,NaN:Wi,Infinity:Wi,this:qe("this"),class:qe("class"),super:qe("atom"),yield:qn,export:qe("export"),import:qe("import"),extends:qn,await:qn}}(),P=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(qe){for(var xt=!1,xn,qn=!1;(xn=qe.next())!=null;){if(!xt){if(xn=="/"&&!qn)return;xn=="["?qn=!0:qn&&xn=="]"&&(qn=!1)}xt=!xt&&xn=="\\"}}var W,V;function $(qe,xt,xn){return W=qe,V=xn,xt}fun Line truncated
${B}`),N].join(`
${o}`)}return v}(n,"",0)}var Rv={exports:{}},Pie=Rv.exports,eT;function Kie(){return eT||(eT=1,function(n,e){(function(t,r){r(e)})(Pie,function(t){const r={isWhiteSpace:function(Se){return Se===" "||Se===" "||Se==="\uFEFF"||Se>=" "&&Se<="\r"||Se===" "||Se>=" "&&Se<=" "||Se==="\u2028"||Se==="\u2029"||Se===" "||Se===" "||Se===" "},isWhiteSpaceJSON:function(Se){return Se===" "||Se===" "||Se===`
`||Se==="\r"},isLineTerminator:function(Se){return Se===`
`||Se==="\r"||Se==="\u2028"||Se==="\u2029"},isLineTerminatorJSON:function(Se){return Se===`
`||Se==="\r"},isIdentifierStart:function(Se){return Se==="$"||Se==="_"||Se>="A"&&Se<="Z"||Se>="a"&&Se<="z"||Se>="€"&&r.NonAsciiIdentifierStart.test(Se)},isIdentifierPart:function(Se){return Se==="$"||Se==="_"||Se>="A"&&Se<="Z"||Se>="a"&&Se<="z"||Se>="0"&&Se<="9"||Se>="€"&&r.NonAsciiIdentifierPart.test(Se)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
`,r:"\r",t:" ",v:"\v","/":"/"},v=Object.hasOwn,x={};function B(je,Se){(typeof je!="string"||!(je instanceof String))&&(je=String(je));const Fe=Se.mode==="json5",Ze=Se.ignoreBOM,_t=Se.ignoreComments||Se.mode==="cjson"||Fe,Qt=Se.ignoreTrailingCommas||Fe,gt=Se.ignoreProtoKey,Ut=Se.ignorePrototypeKeys,Pt=Se.allowSingleQuotedStrings||Fe,ze=Se.allowDuplicateObjectKeys,Ke=Se.reviver,Oe=Se.tokenize,it=Se.rawTokens,Ct=Se.tokenLocations,dt=Se.tokenPaths,Dt=Fe?r.isLineTerminator:r.isLineTerminatorJSON,$t=Fe?r.isWhiteSpace:r.isWhiteSpaceJSON,Rt=je.length;let bn=0,Yn=0,rn=0;const er=[];let Tn,gn,Ln;if(Oe){let Be=null,rt,ut;Tn=function(){if(Be!==null)throw Error("internal error, token overlap");rt=bn+1,ut=rn-Yn+1,Be=rn},gn=function(ot,zt){if(Be!==rn){const Gt={type:ot};it&&(Gt.raw=je.substr(Be,rn-Be)),zt!==void 0&&(Gt.value=zt),Ct&&(Gt.location={start:{column:ut,line:rt,offset:Be}}),dt&&(Gt.path=Ln.slice()),er.push(Gt)}return Be=null,zt},dt&&(Ln=[])}function br(){let Be;return rn<Rt?Be=`Unexpected token ${JSON.stringify(je[rn])}`:Be="Unexpected end of input",Be}function mr(Be){const rt=rn-Yn+1;++bn;const ut=Ee(Be,je,rn,bn,rt),ot=SyntaxError(ut.message);return ot.reason=Be,ot.excerpt=ut.excerpt,ot.pointer=ut.pointer,ot.location={start:{column:rt,line:bn,offset:rn}},ot}function tr(Be){throw Be||(Be=br()),mr(Be)}function Ye(Be){Be==="\r"&&je[rn]===`
`&&++rn,Yn=rn,++bn}function ce(){if(rn<Rt){Tn==null||Tn();const Be=je[rn++];if(Be==='"'||Be==="'"&&Pt){const rt=p(Be);return gn==null||gn("literal",rt),rt}if(Be==="{")return gn==null||gn("symbol","{"),$n();if(Be==="[")return gn==null||gn("symbol","["),Xe();if(Be==="-"||Be==="."||l(Be)||Fe&&(Be==="+"||Be==="I"||Be==="N")){const rt=ae();return gn==null||gn("literal",rt),rt}if(Be==="n")return Jt("null"),gn==null||gn("literal",null),null;if(Be==="t")return Jt("true"),gn==null||gn("literal",!0),!0;if(Be==="f")return Jt("false"),gn==null||gn("literal",!1),!1;--rn,gn==null||gn();return}}function pe(){let Be;if(rn<Rt){Tn==null||Tn();const rt=je[rn++];if(rt==='"'||rt==="'"&&Pt){const ut=p(rt);return gn==null||gn("literal",ut),ut}if(rt==="{")return gn==null||gn("symbol","{"),$n();if(rt==="[")return gn==null||gn("symbol","["),Xe();if(rt==="."||l(rt)){const ut=ae();return gn==null||gn("literal",ut),ut}if(Fe&&r.isIdentifierStart(rt)||rt==="\\"&&je[rn]==="u"){const ut=rn-1;if(Be=ve(),Be===void 0){rn=ut,gn==null||gn();return}return gn==null||gn("literal",Be),Be}--rn,gn==null||gn();return}}function nt(){o(je)&&(Tn==null||Tn(),++rn,gn==null||gn("bom"))}function wt(){let Be;function rt(){Be||(Be=!0,--rn,Tn(),++rn)}function ut(){Be&&(Be=!1,gn("whitespace"))}for(;rn<Rt;){const ot=je[rn++];if(Dt(ot))Tn&&rt(),Ye(ot);else if($t(ot))Tn&&rt();else if(ot==="/"&&_t&&(je[rn]==="/"||je[rn]==="*"))Tn&&(--rn,ut(),Tn(),++rn),qt(je[rn++]==="*"),gn==null||gn("comment");else{--rn;break}}gn&&ut()}function qt(Be){for(;rn<Rt;){const rt=je[rn++];if(Dt(rt)){if(!Be){--rn;return}Ye(rt)}else if(rt==="*"&&Be&&je[rn]==="/"){++rn;return}}Be&&tr("Unclosed multiline comment")}function Jt(Be){const rt=rn;for(let ut=1,ot=Be.length;ut<ot;++ut)(rn>=Rt||Be[ut]!==je[rn])&&(rn=rt-1,tr()),++rn}function $n(){let Be={},rt=!1;for(;rn<Rt;){wt();const ut=pe();ze===!1&&v(Be,ut)&&tr(`Duplicate key: "${ut}"`),wt(),Tn==null||Tn();let ot=je[rn++];if(gn==null||gn("symbol",ot),ot==="}"&&ut===void 0)return!Qt&&rt&&(--rn,tr("Trailing comma in object")),Be;if(ot===":"&&ut!==void 0){wt(),Ln==null||Ln.push(ut);let zt=ce();if(Ln==null||Ln.pop(),zt===void 0&&tr(`No value found for key "${ut}"`),typeof ut!="string"&&(!Fe||typeof ut!="number")&&tr(`Wrong key type: "${ut}"`),Ut&&(ut in x||x[ut]!=null)||gt&&ut==="__proto__"||(Ke&&(zt=Ke(ut,zt)),zt!==void 0&&(rt=!0,ut==="__proto__"?Be=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(zt)}}`),Be):Be[ut]=zt)),wt(),Tn==null||Tn(),ot=je[rn++],gn==null||gn("symbol",ot),ot!==","){if(ot==="}")return Be;tr()}}else--rn,tr()}tr()}function Xe(){const Be=[];for(;rn<Rt;){wt(),Ln==null||Ln.push(Be.length);let rt=ce();Ln==null||Ln.pop(),wt(),Tn==null||Tn();const ut=je[rn++];if(gn==null||gn("symbol",ut),rt!==void 0&&(Ke&&(rt=Ke(String(Be.length),rt)),rt===void 0?(++Be.length,rt=!0):Be.push(rt)),ut===",")rt===void 0&&tr("Elisions are not supported");else{if(ut==="]")return!Qt&&rt===void 0&&Be.length&&(--rn,tr("Trailing comma in array")),Be;--rn,tr()}}}function ae(){--rn;let Be=rn,rt=je[rn++];const ut=function(ot){const zt=je.substr(Be,rn-Be);let Gt;if(ot?Gt=Number.parseInt(zt.replace(/^0o?/,""),8):Gt=Number(zt),Number.isNaN(Gt))--rn,tr(`Bad numeric literal - "${je.substr(Be,rn-Be+1)}"`);else if(!Fe&&!zt.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--rn,tr(`Non-json numeric literal - "${je.substr(Be,rn-Be+1)}"`);else return Gt};if((rt==="-"||rt==="+"&&Fe)&&(rt=je[rn++]),rt==="N"&&Fe)return Jt("NaN"),Number.NaN;if(rt==="I"&&Fe)return Jt("Infinity"),ut();if(rt>="1"&&rt<="9"){for(;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}if(rt==="0"){rt=je[rn++];const ot=rt==="o"||rt==="O"||s(rt),zt=rt==="x"||rt==="X";if(Fe&&(ot||zt)){for(;rn<Rt&&(zt?i:s)(je[rn]);)++rn;let Gt=1;return je[Be]==="-"?(Gt=-1,++Be):je[Be]==="+"&&++Be,Gt*ut(ot)}}if(rt==="."){for(;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}if(rt==="e"||rt==="E"){for(rt=je[rn++],(rt==="-"||rt==="+")&&++rn;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}return--rn,ut()}function ve(){--rn;let Be="";for(;rn<Rt;){let rt=je[rn++];if(rt==="\\"&&je[rn]==="u"&&i(je[rn+1])&&i(je[rn+2])&&i(je[rn+3])&&i(je[rn+4])&&(rt=String.fromCharCode(Number.parseInt(je.substr(rn+1,4),16)),rn+=5),Be.length)if(r.isIdentifierPart(rt))Be+=rt;else return--rn,Be;else if(r.isIdentifierStart(rt))Be+=rt;else return}tr()}function p(Be){let rt="";for(;rn<Rt;){let ut=je[rn++];if(ut===Be)return rt;if(ut==="\\")if(rn>=Rt&&tr(),ut=je[rn++],f[ut]&&(Fe||ut!=="v"&&(ut!=="'"||Pt)))rt+=f[ut];else if(Fe&&Dt(ut))Ye(ut);else if(ut==="u"||ut==="x"&&Fe){const ot=ut==="u"?4:2;for(let zt=0;zt<ot;++zt)rn>=Rt&&tr(),i(je[rn])||tr("Bad escape sequence"),rn++;rt+=String.fromCharCode(Number.parseInt(je.substr(rn-ot,ot),16))}else if(Fe&&s(ut)){let ot;ut<"4"&&s(je[rn])&&s(je[rn+1])?ot=3:s(je[rn])?ot=2:ot=1,rn+=ot-1,rt+=String.fromCharCode(Number.parseInt(je.substr(rn-ot,ot),8))}else Fe?rt+=ut:(--rn,tr());else Dt(ut)?tr():(!Fe&&ut.charCodeAt(0)<32&&(--rn,tr("Unexpected control character")),rt+=ut)}tr()}Ze&&nt(),wt();let We=ce();if(We!==void 0||rn<Rt){if(wt(),rn>=Rt)return Ke&&(We=K Line truncated
${gt}
${Pt}
${je}`):Ut=`Parse error in JSON input:
${gt}
${je}`,{message:Ut,excerpt:gt,pointer:Pt}}function me(je,Se){let Fe=G(Se);const Ze=ie(je,Fe)||de(je,Fe)||fe(je,Fe);let _t,Qt,gt;Ze?(_t=Ze.offset,Qt=Ze.line,gt=Ze.column,Fe=Ze.reason):_t=0,Se.reason=Fe;const Ut=Ee(Fe,je,_t,Qt,gt);return Se.message=Ut.message,Se.excerpt=Ut.excerpt,Ut.pointer&&(Se.pointer=Ut.pointer,Se.location={start:{column:gt,line:Qt,offset:_t}}),Se}function Me(je,Se){try{return JSON.parse(je,Se)}catch(Fe){const Ze=me(je,Fe);if(Fe.location)throw Ze;return k(je,Se)}}const Le=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function pt(je){return je.ignoreBOM||je.ignoreComments||je.ignoreTrailingCommas||je.allowSingleQuotedStrings||je.allowDuplicateObjectKeys===!1||je.ignoreProtoKey||je.ignorePrototypeKeys||je.mode==="cjson"||je.mode==="json5"||Le||xe}function Je(je){if(typeof je=="function")return je;if(je)return je.reviver}function Ve(je,Se){return Se||(Se={}),pt(Se)?k(je,Se):Me(je,Je(Se))}t.parse=Ve,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=V,t.parseNative=Me,t.parseCustom=k,t.getErrorTexts=Ee,Object.defineProperty(t,"__esModule",{value:!0})})}(Rv,Rv.exports)),Rv.exports}var Rie=Kie(),Bb={exports:{}},Die=Bb.exports,tT;function Fie(){return tT||(tT=1,function(n,e){(function(t,r){n.exports=r()})(Die,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Ke,Oe){return Oe={exports:{}},Ke(Oe,Oe.exports),Oe.exports}var i=r(function(Ke){function Oe(){var it=0,Ct=1,dt=2,Dt=3,$t=4,Rt=5,bn=6,Yn=7,rn=8,er=9,Tn=10,gn=11,Ln=12,br=13,mr=14,tr=15,Ye=16,ce=17,pe=0,nt=1,wt=2,qt=3,Jt=4;function $n(p,We){return 55296<=p.charCodeAt(We)&&p.charCodeAt(We)<=56319&&56320<=p.charCodeAt(We+1)&&p.charCodeAt(We+1)<=57343}function Xe(p,We){We===void 0&&(We=0);var Be=p.charCodeAt(We);if(55296<=Be&&Be<=56319&&We<p.length-1){var rt=Be,ut=p.charCodeAt(We+1);return 56320<=ut&&ut<=57343?(rt-55296)*1024+(ut-56320)+65536:rt}if(56320<=Be&&Be<=57343&&We>=1){var rt=p.charCodeAt(We-1),ut=Be;return 55296<=rt&&rt<=56319?(rt-55296)*1024+(ut-56320)+65536:ut}return Be}function ae(p,We,Be){var rt=[p].concat(We).concat([Be]),ut=rt[rt.length-2],ot=Be,zt=rt.lastIndexOf(mr);if(zt>1&&rt.slice(1,zt).every(function(nn){return nn==Dt})&&[Dt,br,ce].indexOf(p)==-1)return wt;var Gt=rt.lastIndexOf($t);if(Gt>0&&rt.slice(1,Gt).every(function(nn){return nn==$t})&&[Ln,$t].indexOf(ut)==-1)return rt.filter(function(nn){return nn==$t}).length%2==1?qt:Jt;if(ut==it&&ot==Ct)return pe;if(ut==dt||ut==it||ut==Ct)return ot==mr&&We.every(function(nn){return nn==Dt})?wt:nt;if(ot==dt||ot==it||ot==Ct)return nt;if(ut==bn&&(ot==bn||ot==Yn||ot==er||ot==Tn))return pe;if((ut==er||ut==Yn)&&(ot==Yn||ot==rn))return pe;if((ut==Tn||ut==rn)&&ot==rn)return pe;if(ot==Dt||ot==tr)return pe;if(ot==Rt)return pe;if(ut==Ln)return pe;var Nt=rt.indexOf(Dt)!=-1?rt.lastIndexOf(Dt)-1:rt.length-2;return[br,ce].indexOf(rt[Nt])!=-1&&rt.slice(Nt+1,-1).every(function(nn){return nn==Dt})&&ot==mr||ut==tr&&[Ye,ce].indexOf(ot)!=-1?pe:We.indexOf($t)!=-1?wt:ut==$t&&ot==$t?pe:nt}this.nextBreak=function(p,We){if(We===void 0&&(We=0),We<0)return 0;if(We>=p.length-1)return p.length;for(var Be=ve(Xe(p,We)),rt=[],ut=We+1;ut<p.length;ut++)if(!$n(p,ut-1)){var ot=ve(Xe(p,ut));if(ae(Be,rt,ot))return ut;rt.push(ot)}return p.length},this.splitGraphemes=function(p){for(var We=[],Be=0,rt;(rt=this.nextBreak(p,Be))<p.length;)We.push(p.slice(Be,rt)),Be=rt;return Be<p.length&&We.push(p.slice(Be)),We},this.iterateGraphemes=function(p){var We=0,Be={next:(function(){var rt,ut;return(ut=this.nextBreak(p,We))<p.length?(rt=p.slice(We,ut),We=ut,{value:rt,done:!1}):We<p.length?(rt=p.slice(We),We=p.length,{value:rt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Be[Symbol.iterator]=function(){return Be}),Be},this.countGraphemes=function(p){for(var We=0,Be=0,rt;(rt=this.nextBreak(p,Be))<p.length;)Be=rt,We++;return Be<p.length&&We++,We};function ve(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?Ln:p==13?it:p==10?Ct:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?dt:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<=p&&p<=2306||p==2362||p==2364||2369<=p&&p<= Line truncated
`)}var rn={extraLines:2,tabSize:4},er=function(gn,Ln,br,mr){mr=Rt({},rn,mr);var tr=gn.split(/\r\n?|\n|\f/),Ye=Math.max(1,Ln-mr.extraLines)-1,ce=Math.min(Ln+mr.extraLines,tr.length),pe=String(ce).length,nt=Yn(tr,Ye,Ln,pe,mr),wt=bn(tr[Ln-1].substring(0,br-1),Ln,pe,mr),qt=dt(" ",wt.length)+"^",Jt=Yn(tr,Ln,ce,pe,mr);return[nt,qt,Jt].filter(Boolean).join(`
`)};return er})}),v=new Error().stack,x=function(Ke){var Oe=Object.create(SyntaxError.prototype);return Object.assign(Oe,Ke,{name:"SyntaxError"}),Object.defineProperty(Oe,"stack",{get:function(){return v?v.replace(/^(.+\n){1,3}/,String(Oe)+`
`):""}}),Oe},B=function(Ke,Oe,it,Ct,dt){throw x({message:Ct?Ke+`
`+f(Oe,Ct,dt):Ke,rawMessage:Ke,source:it,line:Ct,column:dt})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Oe){for(var it=arguments.length,Ct=Array(it>1?it-1:0),dt=1;dt<it;dt++)Ct[dt-1]=arguments[dt];return"Unexpected token <"+Oe+"> at "+Ct.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Oe){for(var it=arguments.length,Ct=Array(it>1?it-1:0),dt=1;dt<it;dt++)Ct[dt-1]=arguments[dt];return"Unexpected symbol <"+Oe+"> at "+Ct.filter(Boolean).join(":")}},U={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},N={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},V={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(Ke){return Ke>="1"&&Ke<="9"}function q(Ke){return Ke>="0"&&Ke<="9"}function ne(Ke){return q(Ke)||Ke>="a"&&Ke<="f"||Ke>="A"&&Ke<="F"}function G(Ke){return Ke==="e"||Ke==="E"}function ie(Ke,Oe,it,Ct){var dt=Ke.charAt(Oe);if(dt==="\r")Oe++,it++,Ct=1,Ke.charAt(Oe)===`
`&&Oe++;else if(dt===`
`)Oe++,it++,Ct=1;else if(dt===" "||dt===" ")Oe++,Ct++;else return null;return{index:Oe,line:it,column:Ct}}function de(Ke,Oe,it,Ct){var dt=Ke.charAt(Oe);return dt in N?{type:N[dt],line:it,column:Ct+1,index:Oe+1,value:null}:null}function fe(Ke,Oe,it,Ct){for(var dt in W)if(W.hasOwnProperty(dt)&&Ke.substr(Oe,dt.length)===dt)return{type:W[dt],line:it,column:Ct+dt.length,index:Oe+dt.length,value:dt};return null}function Ee(Ke,Oe,it,Ct){for(var dt=Oe,Dt=V._START_;Oe<Ke.length;){var $t=Ke.charAt(Oe);switch(Dt){case V._START_:{if($t==='"')Oe++,Dt=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if($t==="\\")Oe++,Dt=V.ESCAPE;else{if($t==='"')return Oe++,{type:U.STRING,line:it,column:Ct+Oe-dt,index:Oe,value:Ke.slice(dt,Oe)};Oe++}break}case V.ESCAPE:{if($t in $){if(Oe++,$t==="u")for(var Rt=0;Rt<4;Rt++){var bn=Ke.charAt(Oe);if(bn&&ne(bn))Oe++;else return null}Dt=V.START_QUOTE_OR_CHAR}else return null;break}}}}function me(Ke,Oe,it,Ct){var dt=Oe,Dt=Oe,$t=oe._START_;e:for(;Oe<Ke.length;){var Rt=Ke.charAt(Oe);switch($t){case oe._START_:{if(Rt==="-")$t=oe.MINUS;else if(Rt==="0")Dt=Oe+1,$t=oe.ZERO;else if(te(Rt))Dt=Oe+1,$t=oe.DIGIT;else return null;break}case oe.MINUS:{if(Rt==="0")Dt=Oe+1,$t=oe.ZERO;else if(te(Rt))Dt=Oe+1,$t=oe.DIGIT;else return null;break}case oe.ZERO:{if(Rt===".")$t=oe.POINT;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.DIGIT:{if(q(Rt))Dt=Oe+1;else if(Rt===".")$t=oe.POINT;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.POINT:{if(q(Rt))Dt=Oe+1,$t=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(q(Rt))Dt=Oe+1;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.EXP:{if(Rt==="+"||Rt==="-")$t=oe.EXP_DIGIT_OR_SIGN;else if(q(Rt))Dt=Oe+1,$t=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(q(Rt))Dt=Oe+1;else break e;break}}Oe++}return Dt>0?{type:U.NUMBER,line:it,column:Ct+Dt-dt,index:Dt,value:Ke.slice(dt,Dt)}:null}var Me=function(Oe,it){for(var Ct=1,dt=1,Dt=0,$t=[];Dt<Oe.length;){var Rt=[Oe,Dt,Ct,dt],bn=ie.apply(void 0,Rt);if(bn){Dt=bn.index,Ct=bn.line,dt=bn.column;continue}var Yn=de.apply(void 0,Rt)||fe.apply(void 0,Rt)||Ee.apply(void 0,Rt)||me.apply(void 0,Rt);if(Yn){var rn={type:Yn.type,value:Yn.value,loc:o(Ct,dt,Dt,Yn.line,Yn.column,Yn.index,it.source)};$t.push(rn),Dt=Yn.index,Ct=Yn.line,dt=Yn.column}else B(P.unexpectedSymbol(l(Oe,Dt,Dt+1),it.source,Ct,dt),Oe,it.source,Ct,dt)}return $t},Le={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},pt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Je={loc:!0,source:null};function Ve(Ke,Oe,it){var Ct=Oe.length>0?Oe[Oe.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),Ke,it.source,Ct.line,Ct.column)}function je(Ke){for(var Oe=0,it=0;it<4;it++)Oe=Oe*16+parseInt(Ke[it],16);return String.fromCharCode(Oe)}var Se={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Fe=['"',"\\","/"];function Ze(Ke){for(var Oe="",it=0;it<Ke.length;it++){var Ct=Ke.charAt(it);if(Ct==="\\"){it++;var dt=Ke.charAt(it);if(dt==="u")Oe+=je(Ke.substr(it+1,4)),it+=4;else if(Fe.indexOf(dt)!==-1)Oe+=dt;else if(dt in Se)Oe+=Se[dt];else break}else Oe+=Ct}return Oe}function _t(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Object",children:[]},$t=Le._START_;it<Oe.length;){var Rt=Oe[it];switch($t){case Le._START_:{if(Rt.type===U.LEFT_BRACE)dt=Rt,$t=Le.OPEN_OBJECT,it++;else return null;break}case Le.OPEN_OBJECT:{if(Rt.type===U.RIGHT_BRACE)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};var bn=Qt(Ke,Oe,it,Ct);Dt.children.push(bn.value),$t=Le.PROPERTY,it=bn.index;break}case Le.PROPERTY:{if(Rt.type===U.RIGHT_BRACE)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};Rt.type===U.COMMA?($t=Le.COMMA,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case Le.COMMA:{var Yn=Qt(Ke,Oe,it,Ct);Yn?(it=Yn.index,Dt.children.push(Yn.value),$t=Le.PROPERTY):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}}}Ve(Ke,Oe,Ct)}function Qt(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Property",key:null,value:null},$t=xe._START_;it<Oe.length;){var Rt=Oe[it];switch($t){case xe._START_:{if(Rt.type===U.STRING){var bn={type:"Identifier",value:Ze(Ke.slice(Rt.loc.start.offset+1,Rt.loc.end.offset-1)),raw:Rt.value};Ct.loc&&(bn.loc=Rt.loc),dt=Rt,Dt.key=bn,$t=xe.KEY,it++}else return null;break}case xe.KEY:{Rt.type===U.COLON?($t=xe.COLON,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case xe.COLON:{var Yn=Pt(Ke,Oe,it,Ct);return Dt.value=Yn.value,Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Yn.value.loc.end.line,Yn.value.loc.end.column,Yn.value.loc.end.offset,Ct.source)),{value:Dt,index:Yn.index}}}}}function gt(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Array",children:[]},$t=pt._START_,Rt=void 0;it<Oe.length;)switch(Rt=Oe[it],$t){case pt._START_:{if(Rt.type===U.LEFT_BRACKET)dt=Rt,$t=pt.OPEN_ARRAY,it++;else return null;break}case pt.OPEN_ARRAY:{if(Rt.type===U.RIGHT_BRACKET)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};var bn=Pt(Ke,Oe,it,Ct);it=bn.index,Dt.children.push(bn.value),$t=pt.VALUE;break}case pt.VALUE:{if(Rt.type===U.RIGHT_BRACKET)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};Rt.type===U.COMMA?($t=pt.COMMA,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case pt.COMMA:{var Yn=Pt(Ke,Oe,it,Ct);it=Yn.index,Dt.children.push(Yn.value),$t=pt.VALUE;break}}Ve(Ke,Oe,Ct)}function Ut(Ke,Oe,it,Ct){var dt=Oe[it],Dt=null;switch(dt.type){case U.STRING:{Dt=Ze(Ke.slice(dt.loc.start.offset+1,dt.loc.end.offset-1));break}case U.NUMBER:{Dt=Number(dt.value);break}case U.TRUE:{Dt=!0;break}case U.FALSE:{Dt=!1;break}case U.NULL:{Dt=null;break}default:return null}var $t={type:"Literal",value:Dt,raw:dt.value};return Ct.loc&&($t.loc=dt.loc),{value:$t,index:it+1}}function Pt(Ke,Oe,it,Ct){var dt=Oe[it],Dt=Ut.apply(void 0,arguments)||_t.apply(void 0,arguments)||gt.apply(void 0,arguments);if(Dt)return Dt;B(k.unexpectedToken(l(Ke,dt.loc.start.offset,dt.loc.end.offset),Ct.source,dt.loc.start.line,dt.loc.start.column),Ke,Ct.source,dt.loc.start.line,dt.loc.start.column)}var ze=function(Ke,Oe){Oe=Object.assign({},Je,Oe);var it=Me(Ke,Oe);it.length===0&&Ve(Ke,it,Oe);var Ct=Pt(Ke,it,0,Oe);if(Ct.index===it.length)return Ct.value;var dt=it[Ct.index];B(k.unexpectedToken(l(Ke,dt.loc.start.offset,dt.loc.end.offset),Oe.source,dt.loc.start.line,dt.loc.start.column),Ke,Oe.source,dt.loc.start.line,dt.loc.start.column)};return ze})}(Bb)),Bb.exports}var Lie=Fie();const Uie=hl(Lie);function hr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",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:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}} Line truncated
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.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("+te.r+","+te.g+","+te.b+`, 0) 0%,
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:q.alpha},r.default.createElement("div",{style:q.checkboard},r.default.createElement(v.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:q.gradient}),r.default.createElement("div",{style:q.container,ref:function(G){return oe.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:q.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:q.slider}))))}}]),V}(t.PureComponent||t.Component);return k1.default=N,k1}var K1={},EK;function sae(){if(EK)return K1;EK=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.EditableInput=void 0;var n=function(){function $(oe,te){for(var q=0;q<te.length;q++){var ne=te[q];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(oe,ne.key,ne)}}return function(oe,te,q){return te&&$(oe.prototype,te),q&&$(oe,q),oe}}(),e=Ra(),t=s(e),r=wp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,oe,te){return oe in $?Object.defineProperty($,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[oe]=te,$}function o($,oe){if(!($ instanceof oe))throw new TypeError("Cannot call a class as a function")}function f($,oe){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:$}function v($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);$.prototype=Object.create(oe&&oe.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf($,oe):$.__proto__=oe)}var x=1,B=38,k=40,P=[B,k],U=function(oe){return P.indexOf(oe)>-1},N=function(oe){return Number(String(oe).replace(/%/g,""))},W=1,V=K1.EditableInput=function($){v(oe,$);function oe(te){o(this,oe);var q=f(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return q.handleBlur=function(){q.state.blurValue&&q.setState({value:q.state.blurValue,blurValue:null})},q.handleChange=function(ne){q.setUpdatedValue(ne.target.value,ne)},q.handleKeyDown=function(ne){var G=N(ne.target.value);if(!isNaN(G)&&U(ne.keyCode)){var ie=q.getArrowOffset(),de=ne.keyCode===B?G+ie:G-ie;q.setUpdatedValue(de,ne)}},q.handleDrag=function(ne){if(q.props.dragLabel){var G=Math.round(q.props.value+ne.movementX);G>=0&&G<=q.props.dragMax&&q.props.onChange&&q.props.onChange(q.getValueObjectWithLabel(G),ne)}},q.handleMouseDown=function(ne){q.props.dragLabel&&(ne.preventDefault(),q.handleDrag(ne),window.addEventListener("mousemove",q.handleDrag),window.addEventListener("mouseup",q.handleMouseUp))},q.handleMouseUp=function(){q.unbindEventListeners()},q.unbindEventListeners=function(){window.removeEventListener("mousemove",q.handleDrag),window.removeEventListener("mouseup",q.handleMouseUp)},q.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},q.inputId="rc-editable-input-"+W++,q}return n(oe,[{key:"componentDidUpdate",value:function(q,ne){this.props.value!==this.state.value&&(q.value!==this.props.value||ne.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(q){return l({},this.props.label,q)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||x}},{key:"setUpdatedValue",value:function(q,ne){var G=this.props.label?this.getValueObjectWithLabel(q):q;this.props.onChange&&this.props.onChange(G,ne),this.setState({value:q})}},{key:"render",value:function(){var q=this,ne=(0,i.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 t.default.createElement("div",{style:ne.wrap},t.default.createElement("input",{id:this.inputId,style:ne.input,ref:function(ie){return q.input=ie},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?t.default.createElement("label",{htmlFor:this.inputId,style:ne.label,onMouseDown:this.handleMouseDown},this.props.label):null)} 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%);
}
`),t.default.createElement("div",{style:oe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:oe.slider}))))}}]),U}(e.PureComponent||e.Component);return R1.default=k,R1}var D1={},IK;function Aae(){if(IK)return D1;IK=1,Object.defineProperty(D1,"__esModule",{value:!0}),D1.Raised=void 0;var n=Ra(),e=f(n),t=_p(),r=f(t),i=wp(),s=f(i),l=yN(),o=f(l);function f(x){return x&&x.__esModule?x:{default:x}}var v=D1.Raised=function(B){var k=B.zDepth,P=B.radius,U=B.background,N=B.children,W=B.styles,V=W===void 0?{}:W,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+k+"px "+k*4+"px rgba(0,0,0,.24)",borderRadius:P,background:U}},"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%"}}},V),{"zDepth-1":k===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},N))};return v.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},v.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},D1.default=v,D1}var F1={},bS,TK;function uae(){if(TK)return bS;TK=1;var n=Mp(),e=function(){return n.Date.now()};return bS=e,bS}var xS,kK;function cae(){if(kK)return xS;kK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return xS=e,xS}var MS,PK;function hae(){if(PK)return MS;PK=1;var n=cae(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return MS=t,MS}var wS,KK;function dae(){if(KK)return wS;KK=1;var n=hae(),e=Uf(),t=Zx(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function f(v){if(typeof v=="number")return v;if(t(v))return r;if(e(v)){var x=typeof v.valueOf=="function"?v.valueOf():v;v=e(x)?x+"":x}if(typeof v!="string")return v===0?v:+v;v=n(v);var B=s.test(v);return B||l.test(v)?o(v.slice(2),B?2:8):i.test(v)?r:+v}return wS=f,wS}var SS,RK;function vN(){if(RK)return SS;RK=1;var n=Uf(),e=uae(),t=dae(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,v){var x,B,k,P,U,N,W=0,V=!1,$=!1,oe=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(v)&&(V=!!v.leading,$="maxWait"in v,k=$?i(t(v.maxWait)||0,f):k,oe="trailing"in v?!!v.trailing:oe);function te(Me){var Le=x,xe=B;return x=B=void 0,W=Me,P=o.apply(xe,Le),P}function q(Me){return W=Me,U=setTimeout(ie,f),V?te(Me):P}function ne(Me){var Le=Me-N,xe=Me-W,pt=f-Le;return $?s(pt,k-xe):pt}function G(Me){var Le=Me-N,xe=Me-W;return N===void 0||Le>=f||Le<0||$&&xe>=k}function ie(){var Me=e();if(G(Me))return de(Me);U=setTimeout(ie,ne(Me))}function de(Me){return U=void 0,oe&&x?te(Me):(x=B=void 0,P)}function fe(){U!==void 0&&clearTimeout(U),W=0,x=N=B=U=void 0}function Ee(){return U===void 0?P:de(e())}function me(){var Me=e(),Le=G(Me);if(x=arguments,B=this,N=Me,Le){if(U===void 0)return q(N);if($)return clearTimeout(U),U=setTimeout(ie,f),te(N)}return U===void 0&&(U=setTimeout(ie,f)),P}return me.cancel=fe,me.flush=Ee,me}return SS=l,SS}var ES,DK;function fae(){if(DK)return ES;DK=1;var n=vN(),e=Uf(),t="Expected a function";function r(i,s,l){var o=!0,f=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,f="trailing"in l?!!l.trailing:f),n(i,s,{leading:o,maxWait:s,trailing:f})}return ES=r,ES}var hb={},FK;function pae(){return FK||(FK=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,f=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,v=o-(r.getBoundingClientRect().left+window.pageXOffset),x=f-(r.getBoundingClientRect().top+window.pageYOffset);v<0?v=0:v>s&&(v=s),x<0?x=0:x>l&&(x=l);var B=v/s,k=1-x/l;return{h:t.h,s:B,v:k,a:t.a,source:"hsv"}}),hb}var LK;function mae(){if(LK)return F1;LK=1,Object.defineProperty(F1,"__esModule",{value:!0}),F1.Saturation=void 0;var n=function(){function N(W,V){for(var $=0;$<V.length;$++){var oe=V[$];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(W,oe.key,oe)}}return function(W,V,$){return V&&N(W.prototype,V),$&&N(W,$),W}}(),e=Ra(),t=x(e),r=wp(),i=x(r),s=fae(),l=x(s),o=pae(),f=v(o);function v(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var V in N)Object.prototype.hasOwnProperty.call(N,V)&&(W[V]=N[V]);return W.default=N,W}function x(N) Line truncated
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:q,black:ne,pointer:G,circle:ie}},{custom:!!this.props.style});return t.default.createElement("div",{style:de.color,ref:function(Ee){return $.container=Ee},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.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));
}
`),t.default.createElement("div",{style:de.white,className:"saturation-white"},t.default.createElement("div",{style:de.black,className:"saturation-black"}),t.default.createElement("div",{style:de.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:de.circle}))))}}]),W}(e.PureComponent||e.Component);return F1.default=U,F1}var L1={},Lh={},BS,UK;function gae(){if(UK)return BS;UK=1;var n=lN(),e=aN(),t=Yz(),r=Zd();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return BS=i,BS}var OS,zK;function yae(){return zK||(zK=1,OS=gae()),OS}var Ob={exports:{}},vae=Ob.exports,NK;function Cae(){return NK||(NK=1,function(n,e){(function(t,r){n.exports=r()})(vae,function(){function t(ze){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},t(ze)}var r=/^\s+/,i=/\s+$/;function s(ze,Ke){if(ze=ze||"",Ke=Ke||{},ze instanceof s)return ze;if(!(this instanceof s))return new s(ze,Ke);var Oe=l(ze);this._originalInput=ze,this._r=Oe.r,this._g=Oe.g,this._b=Oe.b,this._a=Oe.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Oe.format,this._gradientType=Ke.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=Oe.ok}s.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 Ke=this.toRgb();return(Ke.r*299+Ke.g*587+Ke.b*114)/1e3},getLuminance:function(){var Ke=this.toRgb(),Oe,it,Ct,dt,Dt,$t;return Oe=Ke.r/255,it=Ke.g/255,Ct=Ke.b/255,Oe<=.03928?dt=Oe/12.92:dt=Math.pow((Oe+.055)/1.055,2.4),it<=.03928?Dt=it/12.92:Dt=Math.pow((it+.055)/1.055,2.4),Ct<=.03928?$t=Ct/12.92:$t=Math.pow((Ct+.055)/1.055,2.4),.2126*dt+.7152*Dt+.0722*$t},setAlpha:function(Ke){return this._a=Le(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=x(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=x(this._r,this._g,this._b),Oe=Math.round(Ke.h*360),it=Math.round(Ke.s*100),Ct=Math.round(Ke.v*100);return this._a==1?"hsv("+Oe+", "+it+"%, "+Ct+"%)":"hsva("+Oe+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHsl:function(){var Ke=f(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=f(this._r,this._g,this._b),Oe=Math.round(Ke.h*360),it=Math.round(Ke.s*100),Ct=Math.round(Ke.l*100);return this._a==1?"hsl("+Oe+", "+it+"%, "+Ct+"%)":"hsla("+Oe+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHex:function(Ke){return k(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return P(this._r,this._g,this._b,this._a,Ke)},toHex8String:function(Ke){return"#"+this.toHex8(Ke)},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(xe(this._r,255)*100)+"%",g:Math.round(xe(this._g,255)*100)+"%",b:Math.round(xe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%)":"rgba("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Oe="#"+U(this._r,this._g,this._b,this._a),it=Oe,Ct=this._gradientType?"GradientType = 1, ":"";if(Ke){var dt=s(Ke);it="#"+U(dt._r,dt._g,dt._b,dt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ct+"startColorstr="+Oe+",endColorstr="+it+")"},toString:function(Ke){var Oe=!!Ke;Ke=Ke||this._format;var it=!1,Ct=this._a<1&&this._a>=0,dt=!Oe&&Ct&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return dt?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(it=this.toRgbString()),Ke==="prgb"&&(it=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(it=this.toHexString()),Ke==="hex3"&&(it=this.toHexString(!0)),Ke==="hex4"&&(it=this.toHex8String(!0)),Ke==="hex8"&&(it=this.toHex8String()),Ke==="name"&&(it=this.toName()),Ke==="hsl"&&(it=this.toHslString()),Ke==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Ke,Oe){var it=Ke.apply(nu 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@${pR}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${pR}/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=(Wr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Wr().s[10]++,this.exportName());Wr().s[11]++,fR.saveAs(i,s+".html")}async saveStyle(){Wr().f[3]++;const e=(Wr().s[12]++,this.tokenizedStyle());if(Wr().s[13]++,mR)Wr().b[2][1]++;else{Wr().b[2][0]++;const i=(Wr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Wr().s[15]++,this.exportName());Wr().s[16]++,fR.saveAs(i,s+".json"),Wr().s[17]++;return}let t=(Wr().s[18]++,this.props.fileHandle);if(Wr().s[19]++,t==null)if(Wr().b[3][0]++,Wr().s[20]++,t=await this.createFileHandle(),Wr().s[21]++,this.props.onSetFileHandle(t),Wr().s[22]++,t==null){Wr().b[4][0]++,Wr().s[23]++;return}else Wr().b[4][1]++;else Wr().b[3][1]++;const r=(Wr().s[24]++,await t.createWritable());Wr().s[25]++,await r.write(e),Wr().s[26]++,await r.close(),Wr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Wr().f[4]++;const e=(Wr().s[28]++,this.tokenizedStyle()),t=(Wr().s[29]++,await this.createFileHandle());if(Wr().s[30]++,this.props.onSetFileHandle(t),Wr().s[31]++,t==null){Wr().b[5][0]++,Wr().s[32]++;return}else Wr().b[5][1]++;const r=(Wr().s[33]++,await t.createWritable());Wr().s[34]++,await r.write(e),Wr().s[35]++,await r.close(),Wr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Wr().f[5]++;const e=(Wr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Wr().s[38]++,await window.showSaveFilePicker(e));return Wr().s[39]++,this.props.onSetFileHandle(t),Wr().s[40]++,t}changeMetadataProperty(e,t){Wr().f[6]++;const r=(Wr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Wr().s[42]++,this.props.onStyleChanged(r)}render(){Wr().f[7]++;const e=(Wr().s[43]++,this.props.t),t=(Wr().s[44]++,FN(e));return Wr().s[45]++,Ae.jsx(j0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(jp,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Wr().b[6][0]++,this.props.mapStyle.metadata||(Wr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(jp,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Wr().b[7][0]++,this.props.mapStyle.metadata||(Wr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(jp,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Wr().b[8][0]++,this.props.mapStyle.metadata||(Wr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Za,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(ZE,{}),e("Save")]}),(Wr().b[9][0]++,mR&&(Wr().b[9][1]++,Ae.jsxs(Za,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(ZE,{}),e("Save as")]}))),Ae.jsxs(Za,{onClick:this.createHtml.bind(this),children:[Ae.jsx(VV,{}),e("Create HTML")]})]})]})})}}const hAe=(Wr().s[46]++,Ns()(cAe));function F2(){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"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return F2=function(){return l},l}F2();class NN extends Jn.Component{render(){return F2().f[0]++,F2().s[0]++,Ae.jsx(OC,{label:this.props.label,children:Ae.jsx(wN,{...this.props})})}}function L2(){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:{s Line truncated
`)>=0)return!1;return!0}function qt(Xe,ae){var ve;if(Xe.indent===" ")ve=" ";else if(typeof Xe.indent=="number"&&Xe.indent>0)ve=ie.call(Array(Xe.indent+1)," ");else return null;return{base:ve,prev:ie.call(Array(ae+1),ve)}}function Jt(Xe,ae){if(Xe.length===0)return"";var ve=`
`+ae.prev+ae.base;return ve+ie.call(Xe,","+ve)+`
`+ae.prev}function $n(Xe,ae){var ve=Ut(Xe),p=[];if(ve){p.length=Xe.length;for(var We=0;We<Xe.length;We++)p[We]=Rt(Xe,We)?ae(Xe[We],Xe):""}var Be=typeof me=="function"?me(Xe):[],rt;if(Le){rt={};for(var ut=0;ut<Be.length;ut++)rt["$"+Be[ut]]=Be[ut]}for(var ot in Xe)Rt(Xe,ot)&&(ve&&String(Number(ot))===ot&&ot<Xe.length||Le&&rt["$"+ot]instanceof Symbol||(ne.call(/[^\w$]/,ot)?p.push(ae(ot,Xe)+": "+ae(Xe[ot],Xe)):p.push(ot+": "+ae(Xe[ot],Xe))));if(typeof me=="function")for(var zt=0;zt<Be.length;zt++)pt.call(Xe,Be[zt])&&p.push("["+ae(Be[zt])+"]: "+ae(Xe[Be[zt]],Xe));return p}return FS}var LS,xR;function VAe(){if(xR)return LS;xR=1;var n=e3(),e=Gy(),t=function(o,f,v){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===f)return x.next=B.next,v||(B.next=o.next,o.next=B),B},r=function(o,f){if(o){var v=t(o,f);return v&&v.value}},i=function(o,f,v){var x=t(o,f);x?x.value=v:o.next={key:f,next:o.next,value:v}},s=function(o,f){return o?!!t(o,f):!1},l=function(o,f){if(o)return t(o,f,!0)};return LS=function(){var f,v={assert:function(x){if(!v.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=f&&f.next,k=l(f,x);return k&&B&&B===k&&(f=void 0),!!k},get:function(x){return r(f,x)},has:function(x){return s(f,x)},set:function(x,B){f||(f={next:void 0}),i(f,x,B)}};return v},LS}var US,MR;function YN(){return MR||(MR=1,US=Object),US}var zS,wR;function HAe(){return wR||(wR=1,zS=Error),zS}var NS,SR;function $Ae(){return SR||(SR=1,NS=EvalError),NS}var WS,ER;function ZAe(){return ER||(ER=1,WS=RangeError),WS}var jS,BR;function XAe(){return BR||(BR=1,jS=ReferenceError),jS}var GS,OR;function JAe(){return OR||(OR=1,GS=SyntaxError),GS}var QS,IR;function eue(){return IR||(IR=1,QS=URIError),QS}var YS,TR;function tue(){return TR||(TR=1,YS=Math.abs),YS}var qS,kR;function nue(){return kR||(kR=1,qS=Math.floor),qS}var VS,PR;function rue(){return PR||(PR=1,VS=Math.max),VS}var HS,KR;function iue(){return KR||(KR=1,HS=Math.min),HS}var $S,RR;function oue(){return RR||(RR=1,$S=Math.pow),$S}var ZS,DR;function sue(){return DR||(DR=1,ZS=Math.round),ZS}var XS,FR;function aue(){return FR||(FR=1,XS=Number.isNaN||function(e){return e!==e}),XS}var JS,LR;function lue(){if(LR)return JS;LR=1;var n=aue();return JS=function(t){return n(t)||t===0?t:t<0?-1:1},JS}var eE,UR;function Aue(){return UR||(UR=1,eE=Object.getOwnPropertyDescriptor),eE}var tE,zR;function qN(){if(zR)return tE;zR=1;var n=Aue();if(n)try{n([],"length")}catch{n=null}return tE=n,tE}var nE,NR;function uue(){if(NR)return nE;NR=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return nE=n,nE}var rE,WR;function cue(){return WR||(WR=1,rE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),rE}var iE,jR;function hue(){if(jR)return iE;jR=1;var n=typeof Symbol<"u"&&Symbol,e=cue();return iE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},iE}var oE,GR;function VN(){return GR||(GR=1,oE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),oE}var sE,QR;function HN(){if(QR)return sE;QR=1;var n=YN();return sE=n.getPrototypeOf||null,sE}var aE,YR;function due(){if(YR)return aE;YR=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(f,v){for(var x=[],B=0;B<f.length;B+=1)x[B]=f[B];for(var k=0;k<v.length;k+=1)x[k+f.length]=v[k];return x},s=function(f,v){for(var x=[],B=v,k=0;B<f.length;B+=1,k+=1)x[k]=f[B];return x},l=function(o,f){for(var v="",x=0;x<o.length;x+=1)v+=o[x],x+1<o.length&&(v+=f);return v};return aE=function(f){var v=this;if(typeof v!="function"||e.apply(v)!==r)throw new TypeError(n+v);for(var x=s(arguments,1),B,k=function(){if(this instanceof B){var V=v.apply(this,i(x,arguments));return Object(V)===V?V:this}return v.apply(f,i(x,arguments))},P=t(0,v.length-x.length),U=[],N=0;N<P;N++)U[N]="$"+N;if(B=Function("binder","return function ("+l(U,",")+"){ return binder.apply(this,arguments); }")(k),v.prototype){var W=function(){};W.prototype=v.prototype,B.prototype=new W,W.prototype=null}return B},aE}var lE,qR;function t3(){if(qR)return lE;qR=1;var n=due();return lE=Function.prototype.bind||n,lE}var AE,VR;function e8(){return VR||(VR=1,AE=Function.prototype.call),AE}var uE,HR;function $Line truncated
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),f=["%","/","?",";","#"].concat(o),v=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},U={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=xue();function V(q,ne,G){if(q&&typeof q=="object"&&q instanceof e)return q;var ie=new e;return ie.parse(q,ne,G),ie}e.prototype.parse=function(q,ne,G){if(typeof q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof q);var ie=q.indexOf("?"),de=ie!==-1&&ie<q.indexOf("#")?"?":"#",fe=q.split(de),Ee=/\\/g;fe[0]=fe[0].replace(Ee,"/"),q=fe.join(de);var me=q;if(me=me.trim(),!G&&q.split("#").length===1){var Me=i.exec(me);if(Me)return this.path=me,this.href=me,this.pathname=Me[1],Me[2]?(this.search=Me[2],ne?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var Le=t.exec(me);if(Le){Le=Le[0];var xe=Le.toLowerCase();this.protocol=xe,me=me.substr(Le.length)}if(G||Le||me.match(/^\/\/[^@/]+@[^@/]+/)){var pt=me.substr(0,2)==="//";pt&&!(Le&&U[Le])&&(me=me.substr(2),this.slashes=!0)}if(!U[Le]&&(pt||Le&&!N[Le])){for(var Je=-1,Ve=0;Ve<v.length;Ve++){var je=me.indexOf(v[Ve]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}var Se,Fe;Je===-1?Fe=me.lastIndexOf("@"):Fe=me.lastIndexOf("@",Je),Fe!==-1&&(Se=me.slice(0,Fe),me=me.slice(Fe+1),this.auth=decodeURIComponent(Se)),Je=-1;for(var Ve=0;Ve<f.length;Ve++){var je=me.indexOf(f[Ve]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}Je===-1&&(Je=me.length),this.host=me.slice(0,Je),me=me.slice(Je),this.parseHost(),this.hostname=this.hostname||"";var Ze=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ze)for(var _t=this.hostname.split(/\./),Ve=0,Qt=_t.length;Ve<Qt;Ve++){var gt=_t[Ve];if(gt&&!gt.match(B)){for(var Ut="",Pt=0,ze=gt.length;Pt<ze;Pt++)gt.charCodeAt(Pt)>127?Ut+="x":Ut+=gt[Pt];if(!Ut.match(B)){var Ke=_t.slice(0,Ve),Oe=_t.slice(Ve+1),it=gt.match(k);it&&(Ke.push(it[1]),Oe.unshift(it[2])),Oe.length&&(me="/"+Oe.join(".")+me),this.hostname=Ke.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ze||(this.hostname=n.toASCII(this.hostname));var Ct=this.port?":"+this.port:"",dt=this.hostname||"";this.host=dt+Ct,this.href+=this.host,Ze&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),me[0]!=="/"&&(me="/"+me))}if(!P[xe])for(var Ve=0,Qt=o.length;Ve<Qt;Ve++){var Dt=o[Ve];if(me.indexOf(Dt)!==-1){var $t=encodeURIComponent(Dt);$t===Dt&&($t=escape(Dt)),me=me.split(Dt).join($t)}}var Rt=me.indexOf("#");Rt!==-1&&(this.hash=me.substr(Rt),me=me.slice(0,Rt));var bn=me.indexOf("?");if(bn!==-1?(this.search=me.substr(bn),this.query=me.substr(bn+1),ne&&(this.query=W.parse(this.query)),me=me.slice(0,bn)):ne&&(this.search="",this.query={}),me&&(this.pathname=me),N[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ct=this.pathname||"",Yn=this.search||"";this.path=Ct+Yn}return this.href=this.format(),this};function $(q){return typeof q=="string"&&(q=V(q)),q instanceof e?q.format():e.prototype.format.call(q)}e.prototype.format=function(){var q=this.auth||"";q&&(q=encodeURIComponent(q),q=q.replace(/%3A/i,":"),q+="@");var ne=this.protocol||"",G=this.pathname||"",ie=this.hash||"",de=!1,fe="";this.host?de=q+this.host:this.hostname&&(de=q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(de+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(fe=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Ee=this.search||fe&&"?"+fe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||N[ne])&&de!==!1?(de="//"+(de||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):de||(de=""),ie&&ie.charAt(0)!=="#"&&(ie="#"+ie),Ee&&Ee.charAt(0)!=="?"&&(Ee="?"+Ee),G=G.replace(/[?#]/g,function(me){return encodeURIComponent(me)}),Ee=Ee.replace("#","%23"),ne+de+G+Ee+ie};function oe(q,ne){return V(q,!1,!0).resolve(ne)}e.prototype.resolve=function(q){return this.resolveObject(V(q,!1,!0)).format()};function te(q,ne){return q?V(q,!1,!0).resolveObject(ne):ne}return e.prototype.resolveObject=function(q){if(typeof q=="string"){var ne=new e;ne.parse(q,!1,!0),q=ne}for(var G=new e,ie=Object.keys(this),de=0;de<ie.length;de++){var fe=ie[de];G[fe]=this[fe]}if(G.hash=q.hash,q.href==="")return G.href=G.format(),G;if(q.slashes&&!q.protocol){for(var Ee=Object.keys(q),me=0;me<Ee.length;me++){var Me=Ee[me];Me!=="protocol"&&(G[Me]=q[Me])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(q.protocol&&q.protocol!==G.protocol){if(!N[q.protocol]){for(var Le=Object.keys(q),xe=0;xe<Le.length;xe++){var pt=Le[xe];G[pt]=q[pt]}return G.href=G.format(),G}if(G.protocol=q.protocol,!q.host&&!U[q.protocol]){for(var Qt=(q.pathname||"").split("/");Qt.length&&!(q.host=Qt.shift()););q.host||(q.host=""),q.hostname 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 N6=function(n,e){return N6=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])},N6(n,e)};function sW(n,e){N6(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Kue(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 Rue(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function Due(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Rue(arguments[e]));return n}var aW=function(){function n(e,t){this.target=t,this.type=e}return n}(),Fue=function(n){sW(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}(aW),Lue=function(n){sW(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(aW);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var Uue=function(){if(typeof WebSocket<"u")return WebSocket},zue=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},ag={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Nue=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(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?ag.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(f){return i._ws.send(f)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(f){return i._callEventListener(s,f)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},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?ag.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 s=Kue(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._liLine truncated
//# sourceMappingURL=index-DXSkBE4g.js.map
@@ -1 +1 @@
{"version":3,"mappings":"mhDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
{"version":3,"mappings":"mhDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
-2
View File
@@ -1,2 +0,0 @@
const e="Basis",t="Standard",n="Stopps",r="Zoom",o="Untersuchen",i="Öffnen",s="Speichern",a="Ansicht",l="Hilfe",u="Kommentare",c="Quelle",d="Typ",h="Filter",p="Ebene",f="Löschen",S="Duplizieren",m="Anzeigen",g="Verstecken",y="Ebenen",b="Einklappen",L="Ausklappen",k="Suche",R="Debug",v="Optionen",U="Abbrechen",D="Name",M="Besitzer",T="Mittelpunkt",z="Ausrichtung",E="Neigung",O="Shortcuts",C="Bild",w="Video",A="Quellen",I="GeoJSON",N="Cluster",P="Kodierung",F="Sprache",x={"Input value":"Eingabewert","Data value":"Datenwert","Output value":"Ausgabewert",Function:"Funktion","Select a type of data scale (default is 'categorical').":"Wähle eine Art Datenskala (Standard ist 'kategorisch').",Base:e,"Input a data property to base styles off of.":"Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.",Default:t,Stops:n,Zoom:r,"Add stop":"Stopp hinzufügen","Convert to expression":"In Ausdruck umwandeln","Remove zoom level from stop":"Zoom-Stufe vom Stopp entfernen","Revert from expression":"Vom Ausdruck zurücksetzen","Delete expression":"Ausdruck löschen","Convert property into a zoom function":"Eigenschaft in eine Zoom-Funktion umwandeln","Convert property to data function":"Eigenschaft in eine Datenfunktion umwandeln","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Ebene <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"zur Ebene wechseln",Map:"Karte",Inspect:o,"Deuteranopia filter":"Deuteranopie-Filter","Protanopia filter":"Protanopie-Filter","Tritanopia filter":"Tritanopie-Filter","Achromatopsia filter":"Achromatopsie-Filter","Layers list":"Ebenenliste","Layer editor":"Ebenen-Editor","Map view":"Kartenansicht","Maputnik on GitHub":"Maputnik auf GitHub",Open:i,Save:s,"Data Sources":"Datenquellen","Style Settings":"Stileinstellungen",View:a,"Color accessibility":"Farbzugänglichkeit",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.",Comments:u,"Comment...":"Dein Kommentar...","Max Zoom":"Max-Zoom","Min Zoom":"Min-Zoom",Source:c,"Source Layer":"Quellenebene",Type:d,"Nested filters are not supported.":"Verschachtelte Filter werden nicht unterstützt.","Upgrade to expression":"Aufrüsten zu Ausdruck",Filter:h,"every filter matches":"alle Filter passen","no filter matches":"kein Filter passt","any filter matches":"irgendein Filter passt","Add filter":"Filter hinzufügen","You've entered an old style filter.":"Du hast einen alten Filter-Stil eingegeben.","Switch to filter editor.":"Zum Filter-Editor wechseln.","Delete filter block":"Filterblock löschen","Add value":"Wert hinzufügen","Remove array item":"Element aus Array entfernen","Press <1>ESC</1> to lose focus":"Drück <1>ESC</1>, um den Fokus zu verlieren","Must provide protocol: <1>https://</1>":"Protokoll erforderlich: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protokoll erforderlich: <1>http://</1> oder <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain",Layer:p,"JSON Editor":"JSON-Editor",Delete:f,Duplicate:S,Show:m,Hide:g,"Move layer up":"Ebene nach oben verschieben","Move layer down":"Ebene nach unten verschieben","Layer: {{layerId}}":"Ebene: {{layerId}}",Layers:y,Collapse:b,Expand:L,"Add Layer":"Ebene hinzufügen",Search:k,"Zoom:":"Zoom:","Close popup":"Popup schließen","cursor:":"Mauszeiger:","center:":"Zentrum:","rotation:":"Rotation:","Close modal":"Modale Fenster schließen",Debug:R,Options:v,"Save Style":"Stil Speichern","Save the JSON style to your computer.":"Speichere den JSON Stil auf deinem Computer.","Save as":"Speichern unter","Create HTML":"HTML erstellen",Cancel:U,"Open Style":"Stil öffnen","Open local Style":"Lokalen Stil öffnen","Open a local JSON style from your computer.":"Öffne einen lokalen JSON Stil von deinem Computer.","Load from URL":"Von URL laden","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Von einer URL laden. Beachte, dass die URL <1>CORS aktiviert</1> haben muss.","Style URL":"Stil-URL","Enter URL...":"URL eingeben...","Gallery Styles":"Galerie-Stile","Open one of the publicly available styles to start from.":"Öffne einen der öffentlich verfügbaren Stile, um zu starten.","Loading style":"Stil wird geladen","Loading: {{requestUrl}}":"Lädt: {{requestUrl}}",Name:D,Owner:M,"Owner ID of the style. Used by Mapbox or future style APIs.":"Besitzer-ID des Stils. Wird von Mapbox oder zukünftigen Style-APIs verwendet.","Sprite URL":"Sprite-URL","Glyphs URL":"Glyphen-URL",Center:T,Bearing:z,Pitch:E,"Light anchor":"Lichtanker","Light color":"Lichtfarbe","Light intensity":"Lichtintensität","Light position":"Lichtposition","Terrain source":"Geländequelle","Terrain exaggeration":"Gelände-Übertreibung","Transition deLine truncated
//# sourceMappingURL=translation-BA-hEPLm.js.map
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-BA-hEPLm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2
View File
@@ -0,0 +1,2 @@
const e="Basis",t="Standard",n="Stopps",o="Zoom",r="Untersuchen",i="Öffnen",s="Speichern",a="Ansicht",l="Hilfe",u="Kommentare",c="Quelle",d="Typ",h="Filter",p="Ebene",f="Löschen",S="Duplizieren",m="Anzeigen",g="Verstecken",y="Ebenen",b="Einklappen",L="Ausklappen",k="Suche",R="Debug",v="Optionen",U="Abbrechen",D="Name",T="Besitzer",M="Mittelpunkt",z="Ausrichtung",O="Neigung",E="Shortcuts",I="Bild",C="Video",w="Quellen",A="GeoJSON",N="Cluster",F="Kodierung",P="Deckkraft",x="Radius",J="Farbe",G="Sprache",Z="Breite",V="Höhe",K="Feld",Q="Größe",B={"Input value":"Eingabewert","Data value":"Datenwert","Output value":"Ausgabewert",Function:"Funktion","Select a type of data scale (default is 'categorical').":"Wähle eine Art Datenskala (Standard ist 'kategorisch').",Base:e,"Input a data property to base styles off of.":"Gib eine Dateneigenschaft ein, um Stile darauf zu basieren.",Default:t,Stops:n,Zoom:o,"Add stop":"Stopp hinzufügen","Convert to expression":"In Ausdruck umwandeln","Remove zoom level from stop":"Zoom-Stufe vom Stopp entfernen","Revert from expression":"Vom Ausdruck zurücksetzen","Delete expression":"Ausdruck löschen","Convert property into a zoom function":"Eigenschaft in eine Zoom-Funktion umwandeln","Convert property to data function":"Eigenschaft in eine Datenfunktion umwandeln","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Ebene <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"zur Ebene wechseln",Map:"Karte",Inspect:r,"Deuteranopia filter":"Deuteranopie-Filter","Protanopia filter":"Protanopie-Filter","Tritanopia filter":"Tritanopie-Filter","Achromatopsia filter":"Achromatopsie-Filter","Layers list":"Ebenenliste","Layer editor":"Ebenen-Editor","Map view":"Kartenansicht","Maputnik on GitHub":"Maputnik auf GitHub",Open:i,Save:s,"Data Sources":"Datenquellen","Style Settings":"Stileinstellungen",View:a,"Color accessibility":"Farbzugänglichkeit",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Kommentare zur aktuellen Ebene. Das ist nicht standardmäßig und nicht in der Spezifikation.",Comments:u,"Comment...":"Dein Kommentar...","Max Zoom":"Max-Zoom","Min Zoom":"Min-Zoom",Source:c,"Source Layer":"Quellenebene",Type:d,"Nested filters are not supported.":"Verschachtelte Filter werden nicht unterstützt.","Upgrade to expression":"Aufrüsten zu Ausdruck",Filter:h,"every filter matches":"alle Filter passen","no filter matches":"kein Filter passt","any filter matches":"irgendein Filter passt","Add filter":"Filter hinzufügen","You've entered an old style filter.":"Du hast einen alten Filter-Stil eingegeben.","Switch to filter editor.":"Zum Filter-Editor wechseln.","Delete filter block":"Filterblock löschen","Add value":"Wert hinzufügen","Remove array item":"Element aus Array entfernen","Press <1>ESC</1> to lose focus":"Drück <1>ESC</1>, um den Fokus zu verlieren","Must provide protocol: <1>https://</1>":"Protokoll erforderlich: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protokoll erforderlich: <1>http://</1> oder <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"Die CORS-Politik erlaubt es nicht, Ressourcen über http von https zu laden, benutze eine <1>https://</1>-Domain",Layer:p,"JSON Editor":"JSON-Editor",Delete:f,Duplicate:S,Show:m,Hide:g,"Move layer up":"Ebene nach oben verschieben","Move layer down":"Ebene nach unten verschieben","Layer: {{layerId}}":"Ebene: {{layerId}}",Layers:y,Collapse:b,Expand:L,"Add Layer":"Ebene hinzufügen",Search:k,"Zoom:":"Zoom:","Close popup":"Popup schließen","cursor:":"Mauszeiger:","center:":"Zentrum:","rotation:":"Rotation:","Close modal":"Modale Fenster schließen",Debug:R,Options:v,"Save Style":"Stil Speichern","Save the JSON style to your computer.":"Speichere den JSON Stil auf deinem Computer.","Save as":"Speichern unter","Create HTML":"HTML erstellen",Cancel:U,"Open Style":"Stil öffnen","Open local Style":"Lokalen Stil öffnen","Open a local JSON style from your computer.":"Öffne einen lokalen JSON Stil von deinem Computer.","Load from URL":"Von URL laden","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Von einer URL laden. Beachte, dass die URL <1>CORS aktiviert</1> haben muss.","Style URL":"Stil-URL","Enter URL...":"URL eingeben...","Gallery Styles":"Galerie-Stile","Open one of the publicly available styles to start from.":"Öffne einen der öffentlich verfügbaren Stile, um zu starten.","Loading style":"Stil wird geladen","Loading: {{requestUrl}}":"Lädt: {{requestUrl}}",Name:D,Owner:T,"Owner ID of the style. Used by Mapbox or future style APIs.":"Besitzer-ID des Stils. Wird von Mapbox oder zukünftigen Style-APIs verwendet.","Sprite URL":"Sprite-URL","Glyphs URL":"Glyphen-URL",Center:M,Bearing:z,Pitch:O,"Light anchor":"Lichtanker","Light color":"Lichtfarbe","Light intensity":"Lichtintensität","Light position":"Lichtposition","Terrain source":"GLine truncated
//# sourceMappingURL=translation-bfGlUGle.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-bfGlUGle.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+1 -1
View File
@@ -37,7 +37,7 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-CgRyCzhE.js"></script>
<script type="module" crossorigin src="/maputnik/assets/index-DXSkBE4g.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-__g11m4y.css">
</head>
<body>