This commit is contained in:
HarelM committed 2025-08-17 08:07:25 +00:00
1 parent 3deb491306
commit e9966e5a20
24 files changed
+999 -999

No files matched your search

-977
View File
@@ -1,977 +0,0 @@
var Kj=Object.defineProperty;var Fj=(n,e,t)=>e in n?Kj(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var $n=(n,e,t)=>Fj(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 jl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function mB(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 H3={exports:{}},Mv={},Z3={exports:{}},ds={},QI;function Lj(){if(QI)return ds;QI=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(je){return je===null||typeof je!="object"?null:(je=B&&je[B]||je["@@iterator"],typeof je=="function"?je:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F=Object.assign,N={};function W(je,$e,yt){this.props=je,this.context=$e,this.refs=N,this.updater=yt||P}W.prototype.isReactComponent={},W.prototype.setState=function(je,$e){if(typeof je!="object"&&typeof je!="function"&&je!=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,je,$e,"setState")},W.prototype.forceUpdate=function(je){this.updater.enqueueForceUpdate(this,je,"forceUpdate")};function H(){}H.prototype=W.prototype;function q(je,$e,yt){this.props=je,this.context=$e,this.refs=N,this.updater=yt||P}var ie=q.prototype=new H;ie.constructor=q,F(ie,W.prototype),ie.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function oe(je,$e,yt){var Kt,at={},Rt=null,Et=null;if($e!=null)for(Kt in $e.ref!==void 0&&(Et=$e.ref),$e.key!==void 0&&(Rt=""+$e.key),$e)V.call($e,Kt)&&!G.hasOwnProperty(Kt)&&(at[Kt]=$e[Kt]);var Fe=arguments.length-2;if(Fe===1)at.children=yt;else if(1<Fe){for(var Pe=Array(Fe),Ee=0;Ee<Fe;Ee++)Pe[Ee]=arguments[Ee+2];at.children=Pe}if(je&&je.defaultProps)for(Kt in Fe=je.defaultProps,Fe)at[Kt]===void 0&&(at[Kt]=Fe[Kt]);return{$$typeof:n,type:je,key:Rt,ref:Et,props:at,_owner:ne.current}}function de(je,$e){return{$$typeof:n,type:je.type,key:$e,ref:je.ref,props:je.props,_owner:je._owner}}function pe(je){return typeof je=="object"&&je!==null&&je.$$typeof===n}function Se(je){var $e={"=":"=0",":":"=2"};return"$"+je.replace(/[=:]/g,function(yt){return $e[yt]})}var we=/\/+/g;function Ce(je,$e){return typeof je=="object"&&je!==null&&je.key!=null?Se(""+je.key):$e.toString(36)}function De(je,$e,yt,Kt,at){var Rt=typeof je;(Rt==="undefined"||Rt==="boolean")&&(je=null);var Et=!1;if(je===null)Et=!0;else switch(Rt){case"string":case"number":Et=!0;break;case"object":switch(je.$$typeof){case n:case e:Et=!0}}if(Et)return Et=je,at=at(Et),je=Kt===""?"."+Ce(Et,0):Kt,te(at)?(yt="",je!=null&&(yt=je.replace(we,"$&/")+"/"),De(at,$e,yt,"",function(Ee){return Ee})):at!=null&&(pe(at)&&(at=de(at,yt+(!at.key||Et&&Et.key===at.key?"":(""+at.key).replace(we,"$&/")+"/")+je)),$e.push(at)),1;if(Et=0,Kt=Kt===""?".":Kt+":",te(je))for(var Fe=0;Fe<je.length;Fe++){Rt=je[Fe];var Pe=Kt+Ce(Rt,Fe);Et+=De(Rt,$e,yt,Pe,at)}else if(Pe=k(je),typeof Pe=="function")for(je=Pe.call(je),Fe=0;!(Rt=je.next()).done;)Rt=Rt.value,Pe=Kt+Ce(Rt,Fe++),Et+=De(Rt,$e,yt,Pe,at);else if(Rt==="object")throw $e=String(je),Error("Objects are not valid as a React child (found: "+($e==="[object Object]"?"object with keys {"+Object.keys(je).join(", ")+"}":$e)+"). If you meant to render a collection of children, use an array instead.");return Et}function xe(je,$e,yt){if(je==null)return je;var Kt=[],at=0;return De(je,Kt,"","",function(Rt){return $e.call(yt,Rt,at++)}),Kt}function dt(je){if(je._status===-1){var $e=je._result;$e=$e(),$e.then(function(yt){(je._status===0||je._status===-1)&&(je._status=1,je._result=yt)},function(yt){(je._status===0||je._status===-1)&&(je._status=2,je._result=yt)}),je._status===-1&&(je._status=0,je._result=$e)}if(je._status===1)return je._result.default;throw je._result}var vt={current:null},rt={transition:null},tt={ReactCurrentDispatcher:vt,ReactCurrentBatchConfig:rt,ReactCurrentOwner:ne};function Te(){throw Error("act(...) is not supported in production builds of React.")}return ds.Children={map:xe,forEach:function(je,$e,yt){xe(je,function(){$e.apply(this,arguments)},yt)},count:function(je){var $e=0;return xe(je,function(){$e++}),$e},toArray:function(je){return xe(je,function($e){return $e})||[]},only:function(je){if(!pe(je))throw Error("React.Children.only expected to receive a single React element child.");return je}},ds.Component=W,ds.Fragment=t,ds.Profiler=i,ds.PureComponent=q,ds.StrictMode=r,ds.Suspense=f,ds.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tt,ds.act=Te,ds.cloneElement=function(je,$e,yt){if(je==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+je+".");var Kt=F({},je.props),at=je.key,Rt=je.ref,Et=je._owner;if($e!=null){if($e.ref!==void 0&&(Rt=$e.ref,Et=ne.current),$e.key!==void 0&&(at=""+$e.key),je.type&&je.type.defaultProps)var Fe=je.type.defaultProps;for(Pe in $e)V.call($e,Pe)&&!G.hasOwnProperty(Pe)&&(Kt[Pe]=$e[Pe]===void 0&&Fe!==void 0?Fe[Pe]:$e[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 qI;function Uj(){if(qI)return Mv;qI=1;var n=nl(),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 Mv.Fragment=t,Mv.jsx=l,Mv.jsxs=l,Mv}var $I;function zj(){return $I||($I=1,H3.exports=Uj()),H3.exports}var se=zj(),ir=nl();const hr=jl(ir);var hF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},By=hr.createContext&&hr.createContext(hF),Nj=["attr","size","title"];function Gj(n,e){if(n==null)return{};var t=jj(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 jj(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 p2(){return p2=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},p2.apply(this,arguments)}function VI(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 m2(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?VI(Object(t),!0).forEach(function(r){Wj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):VI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Wj(n,e,t){return e=Qj(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Qj(n){var e=Yj(n,"string");return typeof e=="symbol"?e:e+""}function Yj(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 dF(n){return n&&n.map((e,t)=>hr.createElement(e.tag,m2({key:t},e.attr),dF(e.child)))}function iA(n){return e=>hr.createElement(qj,p2({attr:m2({},n.attr)},e),dF(n.child))}function qj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Gj(n,Nj),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),hr.createElement("svg",p2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:m2(m2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&hr.createElement("title",null,s),n.children)};return By!==void 0?hr.createElement(By.Consumer,null,t=>e(t)):e(hF)}var lb={},X3={exports:{}},ld={},J3={exports:{}},e4={};/**
* @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 HI;function $j(){return HI||(HI=1,function(n){function e(rt,tt){var Te=rt.length;rt.push(tt);e:for(;0<Te;){var je=Te-1>>>1,$e=rt[je];if(0<i($e,tt))rt[je]=tt,rt[Te]=$e,Te=je;else break e}}function t(rt){return rt.length===0?null:rt[0]}function r(rt){if(rt.length===0)return null;var tt=rt[0],Te=rt.pop();if(Te!==tt){rt[0]=Te;e:for(var je=0,$e=rt.length,yt=$e>>>1;je<yt;){var Kt=2*(je+1)-1,at=rt[Kt],Rt=Kt+1,Et=rt[Rt];if(0>i(at,Te))Rt<$e&&0>i(Et,at)?(rt[je]=Et,rt[Rt]=Te,je=Rt):(rt[je]=at,rt[Kt]=Te,je=Kt);else if(Rt<$e&&0>i(Et,Te))rt[je]=Et,rt[Rt]=Te,je=Rt;else break e}}return tt}function i(rt,tt){var Te=rt.sortIndex-tt.sortIndex;return Te!==0?Te:rt.id-tt.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,F=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ie(rt){for(var tt=t(v);tt!==null;){if(tt.callback===null)r(v);else if(tt.startTime<=rt)r(v),tt.sortIndex=tt.expirationTime,e(f,tt);else break;tt=t(v)}}function te(rt){if(N=!1,ie(rt),!F)if(t(f)!==null)F=!0,dt(V);else{var tt=t(v);tt!==null&&vt(te,tt.startTime-rt)}}function V(rt,tt){F=!1,N&&(N=!1,H(oe),oe=-1),P=!0;var Te=k;try{for(ie(tt),B=t(f);B!==null&&(!(B.expirationTime>tt)||rt&&!Se());){var je=B.callback;if(typeof je=="function"){B.callback=null,k=B.priorityLevel;var $e=je(B.expirationTime<=tt);tt=n.unstable_now(),typeof $e=="function"?B.callback=$e:B===t(f)&&r(f),ie(tt)}else r(f);B=t(f)}if(B!==null)var yt=!0;else{var Kt=t(v);Kt!==null&&vt(te,Kt.startTime-tt),yt=!1}return yt}finally{B=null,k=Te,P=!1}}var ne=!1,G=null,oe=-1,de=5,pe=-1;function Se(){return!(n.unstable_now()-pe<de)}function we(){if(G!==null){var rt=n.unstable_now();pe=rt;var tt=!0;try{tt=G(!0,rt)}finally{tt?Ce():(ne=!1,G=null)}}else ne=!1}var Ce;if(typeof q=="function")Ce=function(){q(we)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,xe=De.port2;De.port1.onmessage=we,Ce=function(){xe.postMessage(null)}}else Ce=function(){W(we,0)};function dt(rt){G=rt,ne||(ne=!0,Ce())}function vt(rt,tt){oe=W(function(){rt(n.unstable_now())},tt)}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(rt){rt.callback=null},n.unstable_continueExecution=function(){F||P||(F=!0,dt(V))},n.unstable_forceFrameRate=function(rt){0>rt||125<rt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<rt?Math.floor(1e3/rt):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(rt){switch(k){case 1:case 2:case 3:var tt=3;break;default:tt=k}var Te=k;k=tt;try{return rt()}finally{k=Te}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(rt,tt){switch(rt){case 1:case 2:case 3:case 4:case 5:break;default:rt=3}var Te=k;k=rt;try{return tt()}finally{k=Te}},n.unstable_scheduleCallback=function(rt,tt,Te){var je=n.unstable_now();switch(typeof Te=="object"&&Te!==null?(Te=Te.delay,Te=typeof Te=="number"&&0<Te?je+Te:je):Te=je,rt){case 1:var $e=-1;break;case 2:$e=250;break;case 5:$e=1073741823;break;case 4:$e=1e4;break;default:$e=5e3}return $e=Te+$e,rt={id:x++,callback:tt,priorityLevel:rt,startTime:Te,expirationTime:$e,sortIndex:-1},Te>je?(rt.sortIndex=Te,e(v,rt),t(f)===null&&rt===t(v)&&(N?(H(oe),oe=-1):N=!0,vt(te,Te-je))):(rt.sortIndex=$e,e(f,rt),F||P||(F=!0,dt(V))),rt},n.unstable_shouldYield=Se,n.unstable_wrapCallback=function(rt){var tt=k;return function(){var Te=k;k=tt;try{return rt.apply(this,arguments)}finally{k=Te}}}}(e4)),e4}var ZI;function Vj(){return ZI||(ZI=1,J3.exports=$j()),J3.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 XI;function Hj(){if(XI)return ld;XI=1;var n=nl(),e=Vj();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,K=1;K<arguments.length;K++)_+="&args[]="+encodeURIComponent(arguments[K]);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,_,K,Q){if(K!==null&&K.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:K!==null?!K.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function F(m,_,K,Q){if(_===null||typeof _>"u"||P(m,_,K,Q))return!0;if(Q)return!1;if(K!==null)switch(K.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,K,Q,ae,ve,Je){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=ae,this.mustUseProperty=K,this.propertyName=m,this.type=_,this.sanitizeURL=ve,this.removeEmptyString=Je}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 H=/[\-:]([a-z])/g;function q(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(H,q);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(H,q);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(H,q);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 ie(m,_,K,Q){var ae=W.hasOwnProperty(_)?W[_]:null;(ae!==null?ae.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+je+m}var yt=!1;function Kt(m,_){if(!m||yt)return"";yt=!0;var K=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(wn){var Q=wn}Reflect.construct(m,[],_)}else{try{_.call()}catch(wn){Q=wn}m.call(_.prototype)}else{try{throw Error()}catch(wn){Q=wn}m()}}catch(wn){if(wn&&Q&&typeof wn.stack=="string"){for(var ae=wn.stack.split(`
`),ve=Q.stack.split(`
`),Je=ae.length-1,Bt=ve.length-1;1<=Je&&0<=Bt&&ae[Je]!==ve[Bt];)Bt--;for(;1<=Je&&0<=Bt;Je--,Bt--)if(ae[Je]!==ve[Bt]){if(Je!==1||Bt!==1)do if(Je--,Bt--,0>Bt||ae[Je]!==ve[Bt]){var Qt=`
`+ae[Je].replace(" at new "," at ");return m.displayName&&Qt.includes("<anonymous>")&&(Qt=Qt.replace("<anonymous>",m.displayName)),Qt}while(1<=Je&&0<=Bt);break}}}finally{yt=!1,Error.prepareStackTrace=K}return(m=m?m.displayName||m.name:"")?$e(m):""}function at(m){switch(m.tag){case 5:return $e(m.type);case 16:return $e("Lazy");case 13:return $e("Suspense");case 19:return $e("SuspenseList");case 0:case 2:case 15:return m=Kt(m.type,!1),m;case 11:return m=Kt(m.type.render,!1),m;case 1:return m=Kt(m.type,!0),m;default:return""}}function Rt(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 oe:return"StrictMode";case Ce:return"Suspense";case De:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Se:return(m.displayName||"Context")+".Consumer";case pe:return(m._context.displayName||"Context")+".Provider";case we:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case xe:return _=m.displayName||null,_!==null?_:Rt(m.type)||"Memo";case dt:_=m._payload,m=m._init;try{return Rt(m(_))}catch{}}return null}function Et(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 Rt(_);case 8:return _===oe?"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 Ee(m){var _=Pe(m)?"checked":"value",K=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof K<"u"&&typeof K.get=="function"&&typeof K.set=="function"){var ae=K.get,ve=K.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return ae.call(this)},set:function(Je){Q=""+Je,ve.call(this,Je)}}),Object.defineProperty(m,_,{enumerable:K.enumerable}),{getValue:function(){return Q},setValue:function(Je){Q=""+Je},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function nt(m){m._valueTracker||(m._valueTracker=Ee(m))}function Ct(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var K=_.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==K?(_.setValue(m),!0):!1}function ut(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 K=_.checked;return Te({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:K??m._wrapperState.initialChecked})}function $t(m,_){var K=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;K=Fe(_.value!=null?_.value:K),m._wrapperState={initialChecked:Q,initialValue:K,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Dt(m,_){_=_.checked,_!=null&&ie(m,"checked",_,!1)}function yn(m,_){Dt(m,_);var K=Fe(_.value),Q=_.type;if(K!=null)Q==="number"?(K===0&&m.value===""||m.value!=K)&&(m.value=""+K):m.value!==""+K&&(m.value=""+K);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Jt(m,_.type,K):_.hasOwnProperty("defaultValue")&&Jt(m,_.type,Fe(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function jn(m,_,K){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,K||_===m.value||(m.value=_),m.defaultValue=_}K=m.name,K!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,K!==""&&(m.name=K)}function Jt(m,_,K){(_!=="number"||ut(m.ownerDocument)!==m)&&(K==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+K&&(m.defaultValue=""+K))}var Hn=Array.isArray;function Bn(m,_,K,Q){if(m=m.options,_){_={};for(var ae=0;ae<K.length;ae++)_["$"+K[ae]]=!0;for(K=0;K<m.length;K++)ae=_.hasOwnProperty("$"+m[K].value),m[K].selected!==ae&&(m[K].selected=ae),ae&&Q&&(m[K].defaultSelected=!0)}else{for(K=""+Fe(K),_=null,ae=0;ae<m.length;ae++){if(m[ae].value===K){m[ae].selected=!0,Q&&(m[ae].defaultSelected=!0);return}_!==null||m[ae].disabled||(_=m[ae])}_!==null&&(_.selecte Line truncated
`).replace(Bd,"")}function Eh(m,_,K){if(_=lh(_),lh(m)!==_&&K)throw Error(t(425))}function Yu(){}var Ah=null,RA=null;function pc(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var El=typeof setTimeout=="function"?setTimeout:void 0,Mu=typeof clearTimeout=="function"?clearTimeout:void 0,wu=typeof Promise=="function"?Promise:void 0,Nc=typeof queueMicrotask=="function"?queueMicrotask:typeof wu<"u"?function(m){return wu.resolve(null).then(m).catch(xs)}:El;function xs(m){setTimeout(function(){throw m})}function qu(m,_){var K=_,Q=0;do{var ae=K.nextSibling;if(m.removeChild(K),ae&&ae.nodeType===8)if(K=ae.data,K==="/$"){if(Q===0){m.removeChild(ae),no(_);return}Q--}else K!=="$"&&K!=="$?"&&K!=="$!"||Q++;K=ae}while(K);no(_)}function Ya(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 mc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var K=m.data;if(K==="$"||K==="$!"||K==="$?"){if(_===0)return m;_--}else K==="/$"&&_++}m=m.previousSibling}return null}var Yl=Math.random().toString(36).slice(2),Su="__reactFiber$"+Yl,Bl="__reactProps$"+Yl,hA="__reactContainer$"+Yl,uh="__reactEvents$"+Yl,it="__reactListeners$"+Yl,Bh="__reactHandles$"+Yl;function Js(m){var _=m[Su];if(_)return _;for(var K=m.parentNode;K;){if(_=K[hA]||K[Su]){if(K=_.alternate,_.child!==null||K!==null&&K.child!==null)for(m=mc(m);m!==null;){if(K=m[Su])return K;m=mc(m)}return _}m=K,K=m.parentNode}return null}function Do(m){return m=m[Su]||m[hA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function li(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Os(m){return m[Bl]||null}var Ws=[],$u=-1;function ol(m){return{current:m}}function Rs(m){0>$u||(m.current=Ws[$u],Ws[$u]=null,$u--)}function Is(m,_){$u++,Ws[$u]=m.current,m.current=_}var ru={},qa=ol(ru),yl=ol(!1),vl=ru;function Vu(m,_){var K=m.type.contextTypes;if(!K)return ru;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var ae={},ve;for(ve in K)ae[ve]=_[ve];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=ae),ae}function Ol(m){return m=m.childContextTypes,m!=null}function Ia(){Rs(yl),Rs(qa)}function iu(m,_,K){if(qa.current!==ru)throw Error(t(168));Is(qa,_),Is(yl,K)}function ch(m,_,K){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return K;Q=Q.getChildContext();for(var ae in Q)if(!(ae in _))throw Error(t(108,Et(m)||"Unknown",ae));return Te({},K,Q)}function ea(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||ru,vl=qa.current,Is(qa,m),Is(yl,yl.current),!0}function hh(m,_,K){var Q=m.stateNode;if(!Q)throw Error(t(169));K?(m=ch(m,_,vl),Q.__reactInternalMemoizedMergedChildContext=m,Rs(yl),Rs(qa),Is(qa,m)):Rs(yl),Is(yl,K)}var ql=null,yf=!1,dh=!1;function ou(m){ql===null?ql=[m]:ql.push(m)}function gc(m){yf=!0,ou(m)}function su(){if(!dh&&ql!==null){dh=!0;var m=0,_=xi;try{var K=ql;for(xi=1;m<K.length;m++){var Q=K[m];do Q=Q(!0);while(Q!==null)}ql=null,yf=!1}catch(ae){throw ql!==null&&(ql=ql.slice(m+1)),fa(xo,su),ae}finally{xi=_,dh=!1}}return null}var $l=[],Jn=0,wo=null,Il=0,$a=[],ta=0,Eu=null,DA=1,ki="";function yc(m,_){$l[Jn++]=Il,$l[Jn++]=wo,wo=m,Il=_}function vf(m,_,K){$a[ta++]=DA,$a[ta++]=ki,$a[ta++]=Eu,Eu=m;var Q=DA;m=ki;var ae=32-bn(Q)-1;Q&=~(1<<ae),K+=1;var ve=32-bn(_)+ae;if(30<ve){var Je=ae-ae%5;ve=(Q&(1<<Je)-1).toString(32),Q>>=Je,ae-=Je,DA=1<<32-bn(_)+ae|K<<ae|Q,ki=ve+m}else DA=1<<ve|K<<ae|Q,ki=m}function Hu(m){m.return!==null&&(yc(m,1),vf(m,1,0))}function Gc(m){for(;m===wo;)wo=$l[--Jn],$l[Jn]=null,Il=$l[--Jn],$l[Jn]=null;for(;m===Eu;)Eu=$a[--ta],$a[ta]=null,ki=$a[--ta],$a[ta]=null,DA=$a[--ta],$a[ta]=null}var sl=null,Ca=null,ys=!1,Vl=null;function vc(m,_){var K=Mc(5,null,null,0);K.elementType="DELETED",K.stateNode=_,K.return=m,_=m.deletions,_===null?(m.deletions=[K],m.flags|=16):_.push(K)}function Cc(m,_){switch(m.tag){case 5:var K=m.type;return _=_.nodeType!==1||K.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,sl=m,Ca=Ya(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,sl=m,Ca=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(K=Eu!==null?{id:DA,overflow:ki}:null,m.memoizedState={dehydrated:_,treeContext:K,retryLane:1073741824},K=Mc(18,null,null,0),K.stateNode=_,K.return=m,m.child=K,sl=m,Ca=null,!0):!1;default:return!1}}function Zu(m){return(m.mode&1)!==0&&(m.flags&128)===0}function dA(m){if(ys){var _=Ca;if(_){var K=_;if(!Cc(m,_)){if(Zu(m))throw Error(t(418));_=Ya(K.nextSibling);var Q=sl;_&&Cc(m,_)?vc(Q,K):(m.flags=m.flags&-4097|2,ys=!1,sl=m)}}else{if(Zu(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ve.message+`
`+ve.stack}return{value:m,source:_,stack:ae,digest:null}}function fh(m,_,K){return{value:m,source:null,stack:K??null,digest:_??null}}function kd(m,_){try{console.error(_.value)}catch(K){setTimeout(function(){throw K})}}var vm=typeof WeakMap=="function"?WeakMap:Map;function Ph(m,_,K){K=pA(-1,K),K.tag=3,K.payload={element:null};var Q=_.value;return K.callback=function(){xm||(xm=!0,Gp=Q),kd(m,_)},K}function bf(m,_,K){K=pA(-1,K),K.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var ae=_.value;K.payload=function(){return Q(ae)},K.callback=function(){kd(m,_)}}var ve=m.stateNode;return ve!==null&&typeof ve.componentDidCatch=="function"&&(K.callback=function(){kd(m,_),typeof Q!="function"&&(zd===null?zd=new Set([this]):zd.add(this));var Je=_.stack;this.componentDidCatch(_.value,{componentStack:Je!==null?Je:""})}),K}function Hf(m,_,K){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new vm;var ae=new Set;Q.set(_,ae)}else ae=Q.get(_),ae===void 0&&(ae=new Set,Q.set(_,ae));ae.has(K)||(ae.add(K),m=iv.bind(null,m,_,K),_.then(m,m))}function Lp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function id(m,_,K,Q,ae){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,K.flags|=131072,K.flags&=-52805,K.tag===1&&(K.alternate===null?K.tag=17:(_=pA(-1,1),_.tag=2,Pl(K,_,1))),K.lanes|=1),m):(m.flags|=65536,m.lanes=ae,m)}var Pd=te.ReactCurrentOwner,eA=!1;function Dl(m,_,K,Q){_.child=m===null?ii(_,null,K,Q):_r(_,m.child,K,Q)}function Cm(m,_,K,Q,ae){K=K.render;var ve=_.ref;return fA(_,ae),Q=cr(m,_,K,Q,ve,ae),K=dr(),m!==null&&!eA?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ae,CA(m,_,ae)):(ys&&K&&Hu(_),_.flags|=1,Dl(m,_,Q,ae),_.child)}function Up(m,_,K,Q,ae){if(m===null){var ve=K.type;return typeof ve=="function"&&!i0(ve)&&ve.defaultProps===void 0&&K.compare===null&&K.defaultProps===void 0?(_.tag=15,_.type=ve,So(m,_,ve,Q,ae)):(m=Wp(K.type,null,Q,_,_.mode,ae),m.ref=_.ref,m.return=_,_.child=m)}if(ve=m.child,(m.lanes&ae)===0){var Je=ve.memoizedProps;if(K=K.compare,K=K!==null?K:Ur,K(Je,Q)&&m.ref===_.ref)return CA(m,_,ae)}return _.flags|=1,m=$c(ve,Q),m.ref=_.ref,m.return=_,_.child=m}function So(m,_,K,Q,ae){if(m!==null){var ve=m.memoizedProps;if(Ur(ve,Q)&&m.ref===_.ref)if(eA=!1,_.pendingProps=Q=ve,(m.lanes&ae)!==0)(m.flags&131072)!==0&&(eA=!0);else return _.lanes=m.lanes,CA(m,_,ae)}return ph(m,_,K,Q,ae)}function _m(m,_,K){var Q=_.pendingProps,ae=Q.children,ve=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Is(Au,Ms),Ms|=K;else{if((K&1073741824)===0)return m=ve!==null?ve.baseLanes|K:K,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Is(Au,Ms),Ms|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ve!==null?ve.baseLanes:K,Is(Au,Ms),Ms|=Q}else ve!==null?(Q=ve.baseLanes|K,_.memoizedState=null):Q=K,Is(Au,Ms),Ms|=Q;return Dl(m,_,ae,K),_.child}function Rh(m,_){var K=_.ref;(m===null&&K!==null||m!==null&&m.ref!==K)&&(_.flags|=512,_.flags|=2097152)}function ph(m,_,K,Q,ae){var ve=Ol(K)?vl:qa.current;return ve=Vu(_,ve),fA(_,ae),K=cr(m,_,K,Q,ve,ae),Q=dr(),m!==null&&!eA?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~ae,CA(m,_,ae)):(ys&&Q&&Hu(_),_.flags|=1,Dl(m,_,K,ae),_.child)}function zA(m,_,K,Q,ae){if(Ol(K)){var ve=!0;ea(_)}else ve=!1;if(fA(_,ae),_.stateNode===null)NA(m,_),nd(_,K,Q),Fp(_,K,Q,ae),Q=!0;else if(m===null){var Je=_.stateNode,Bt=_.memoizedProps;Je.props=Bt;var Qt=Je.context,wn=K.contextType;typeof wn=="object"&&wn!==null?wn=Ko(wn):(wn=Ol(K)?vl:qa.current,wn=Vu(_,wn));var ar=K.getDerivedStateFromProps,Cr=typeof ar=="function"||typeof Je.getSnapshotBeforeUpdate=="function";Cr||typeof Je.UNSAFE_componentWillReceiveProps!="function"&&typeof Je.componentWillReceiveProps!="function"||(Bt!==Q||Qt!==wn)&&rd(_,Je,Q,wn),al=!1;var lr=_.memoizedState;Je.state=lr,c(_,Q,Je,ae),Qt=_.memoizedState,Bt!==Q||lr!==Qt||yl.current||al?(typeof ar=="function"&&(kh(_,K,ar,Q),Qt=_.memoizedState),(Bt=al||Td(_,K,Bt,Q,lr,Qt,wn))?(Cr||typeof Je.UNSAFE_componentWillMount!="function"&&typeof Je.componentWillMount!="function"||(typeof Je.componentWillMount=="function"&&Je.componentWillMount(),typeof Je.UNSAFE_componentWillMount=="function"&&Je.UNSAFE_componentWillMount()),typeof Je.componentDidMount=="function"&&(_.flags|=4194308)):(typeof Je.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=Qt),Je.props=Q,Je.state=Qt,Je.context=wn,Q=Bt):(typeof Je.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{Je=_.stateNode,jc(m,_),Bt=_.memoizedProps,wn=_.type===_.elementType?Bt:na(_.type,Bt),Je.props=wn,Cr=_.pendingProps,lr=Je.context,Qt=K.contextType,typeof Qt=="object"&&Qt!==null?Qt=Ko(Qt):(Qt=Ol(K)?vl:qa.current,Qt=Vu(_,Qt));var Wr=K.getDerivedStateFromProps;(ar=typeof Wr=="function"||typeof Je.getSnapshotBeforeUpdate=="function")||typeof Je.UNSAFE_c Line truncated
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var I8;function yQ(){return I8||(I8=1,function(n){const e=mQ(),t=gQ(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=q,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 We=new Uint8Array(1),he={foo:function(){return 42}};return Object.setPrototypeOf(he,Uint8Array.prototype),Object.setPrototypeOf(We,he),We.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(We){if(We>i)throw new RangeError('The value "'+We+'" is invalid for option "size"');const he=new Uint8Array(We);return Object.setPrototypeOf(he,o.prototype),he}function o(We,he,me){if(typeof We=="number"){if(typeof he=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(We)}return f(We,he,me)}o.poolSize=8192;function f(We,he,me){if(typeof We=="string")return k(We,he);if(ArrayBuffer.isView(We))return F(We);if(We==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We);if(dn(We,ArrayBuffer)||We&&dn(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(dn(We,SharedArrayBuffer)||We&&dn(We.buffer,SharedArrayBuffer)))return N(We,he,me);if(typeof We=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=We.valueOf&&We.valueOf();if(et!=null&&et!==We)return o.from(et,he,me);const St=W(We);if(St)return St;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof We[Symbol.toPrimitive]=="function")return o.from(We[Symbol.toPrimitive]("string"),he,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}o.from=function(We,he,me){return f(We,he,me)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function v(We){if(typeof We!="number")throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function x(We,he,me){return v(We),We<=0?l(We):he!==void 0?typeof me=="string"?l(We).fill(he,me):l(We).fill(he):l(We)}o.alloc=function(We,he,me){return x(We,he,me)};function B(We){return v(We),l(We<0?0:H(We)|0)}o.allocUnsafe=function(We){return B(We)},o.allocUnsafeSlow=function(We){return B(We)};function k(We,he){if((typeof he!="string"||he==="")&&(he="utf8"),!o.isEncoding(he))throw new TypeError("Unknown encoding: "+he);const me=ie(We,he)|0;let et=l(me);const St=et.write(We,he);return St!==me&&(et=et.slice(0,St)),et}function P(We){const he=We.length<0?0:H(We.length)|0,me=l(he);for(let et=0;et<he;et+=1)me[et]=We[et]&255;return me}function F(We){if(dn(We,Uint8Array)){const he=new Uint8Array(We);return N(he.buffer,he.byteOffset,he.byteLength)}return P(We)}function N(We,he,me){if(he<0||We.byteLength<he)throw new RangeError('"offset" is outside of buffer bounds');if(We.byteLength<he+(me||0))throw new RangeError('"length" is outside of buffer bounds');let et;return he===void 0&&me===void 0?et=new Uint8Array(We):me===void 0?et=new Uint8Array(We,he):et=new Uint8Array(We,he,me),Object.setPrototypeOf(et,o.prototype),et}function W(We){if(o.isBuffer(We)){const he=H(We.length)|0,me=l(he);return me.length===0||We.copy(me,0,0,he),me}if(We.length!==void 0)return typeof We.length!="number"||Rn(We.length)?l(0):P(We);if(We.type==="Buffer"&&Array.isArray(We.data))return P(We.data)}function H(We){if(We>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return We|0}function q(We){return+We!=We&&(We=0),o.alloc(+We)}o.isBuffer=function(he){return he!=null&&he._isBuffer===!0&&he!==o.prototype},o.compare=function(he,me){if(dn(he,Uint8Array)&&(he=o.from(he,he.offset,he.byteLength)),dn(me,Uint8Array)&&(me=o.from(me,me.offset,me.byteLength)),!o.isBuffer(he)||!o.isBuffer(me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(he===me)return 0;let et=he.length,St=me.length;for(let Yt=0,tn=Math.min(et,St);Yt<tn;++Yt)if(he[Yt]!==me[Yt]){et=he[Yt],St=me[Yt];break}return et<St?-1:St<et?1:0},o.isEncoding=function(he){switch(String(he).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(he,me){if(!Array.isArray(he))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 MQ=Nv.exports,k8;function wQ(){return k8||(k8=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,F=1,N=2,W=1,H=2,q=4,ie=8,te=16,V=32,ne=64,G=128,oe=256,de=512,pe=30,Se="...",we=800,Ce=16,De=1,xe=2,dt=3,vt=1/0,rt=9007199254740991,tt=17976931348623157e292,Te=NaN,je=4294967295,$e=je-1,yt=je>>>1,Kt=[["ary",G],["bind",W],["bindKey",H],["curry",ie],["curryRight",te],["flip",de],["partial",V],["partialRight",ne],["rearg",oe]],at="[object Arguments]",Rt="[object Array]",Et="[object AsyncFunction]",Fe="[object Boolean]",Pe="[object Date]",Ee="[object DOMException]",nt="[object Error]",Ct="[object Function]",ut="[object GeneratorFunction]",Lt="[object Map]",$t="[object Number]",Dt="[object Null]",yn="[object Object]",jn="[object Promise]",Jt="[object Proxy]",Hn="[object RegExp]",Bn="[object Set]",dn="[object String]",Rn="[object Symbol]",fr="[object Undefined]",nr="[object WeakMap]",Yn="[object WeakSet]",We="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",et="[object Float64Array]",St="[object Int8Array]",Yt="[object Int16Array]",tn="[object Int32Array]",or="[object Uint8Array]",Ze="[object Uint8ClampedArray]",le="[object Uint16Array]",ge="[object Uint32Array]",p=/\b__p \+= '';/g,Ge=/\b(__p \+=) '' \+/g,Ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Re=/&(?:amp|lt|gt|quot|#39);/g,At=/[&<>"']/g,ct=RegExp(Re.source),Ft=RegExp(At.source),jt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,rn=/<%=([\s\S]+?)%>/g,Tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kn=/^\w*$/,pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kr=/[\\^$.*+?()[\]{}|]/g,sr=RegExp(kr.source),on=/^\s+/,ni=/\s/,Ai=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jr=/\{\n\/\* \[wrapped with (.+)\] \*/,Lr=/,? & /,Sn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Kr=/[()=,{}\[\]\/\s]/,ci=/\\(\\)?/g,Ri=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vi=/\w*$/,us=/^[-+]0x[0-9a-f]+$/i,$r=/^0b[01]+$/i,bs=/^\[object .+?Constructor\]$/,Ua=/^0o[0-7]+$/i,fa=/^(?:0|[1-9]\d*)$/,Go=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ns=/($^)/,dl=/['\n\r\u2028\u2029\\]/g,hi="\\ud800-\\udfff",sa="\\u0300-\\u036f",xo="\\ufe20-\\ufe2f",Ao="\\u20d0-\\u20ff",Or=sa+xo+Ao,Sa="\\u2700-\\u27bf",$o="a-z\\xdf-\\xf6\\xf8-\\xff",es="\\xac\\xb1\\xd7\\xf7",qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bt="\\u2000-\\u206f",bn=" \\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",Wn="A-Z\\xc0-\\xd6\\xd8-\\xde",fn="\\ufe0e\\ufe0f",vr=es+qe+bt+bn,Yi="['’]",To="["+hi+"]",ps="["+vr+"]",pa="["+Or+"]",oA="\\d+",Ci="["+Sa+"]",Nu="["+$o+"]",Wl="[^"+hi+vr+oA+Sa+$o+Wn+"]",rl="\\ud83c[\\udffb-\\udfff]",za="(?:"+pa+"|"+rl+")",eu="[^"+hi+"]",Ea="(?:\\ud83c[\\udde6-\\uddff]){2}",xi="[\\ud800-\\udbff][\\udc00-\\udfff]",uo="["+Wn+"]",Ii="\\u200d",Ml="(?:"+Nu+"|"+Wl+")",Io="(?:"+uo+"|"+Wl+")",Ql="(?:"+Yi+"(?:d|ll|m|re|s|t|ve))?",Ki="(?:"+Yi+"(?:D|LL|M|RE|S|T|VE))?",sA=za+"?",aA="["+fn+"]?",Na="(?:"+Ii+"(?:"+[eu,Ea,xi].join("|")+")"+aA+sA+")*",Gi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",co="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Vo=aA+sA+Na,Ho="(?:"+[Ci,Ea,xi].join("|")+")"+Vo,Zi="(?:"+[eu+pa+"?",pa,Ea,xi,To].join("|")+")",Ba=RegExp(Yi,"g"),ma=RegExp(pa,"g"),Es=RegExp(rl+"(?="+rl+")|"+Zi+Vo,"g"),aa=RegExp([uo+"?"+Nu+"+"+Ql+"(?="+[ps,uo,"$"].join("|")+")",Io+"+"+Ki+"(?="+[ps,uo+Ml,"$"].join("|")+")",uo+"?"+Ml+"+"+Ql,uo+"+"+Ki,co,Gi,oA,Ho].join("|"),"g"),BA=RegExp("["+Ii+hi+Or+fn+"]"),Ti=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Zo=["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"],ji=-1,Br={};Br[me]=Br[et]=Br[St]=Br[Yt]=Br[tn]=Br[or]=Br[Ze]=Br[le]=Br[ge]=!0,Br[at]=Br[Rt]=Br[We]=Br[Fe]=Br[he]=Br[Pe]=Br[nt]=Br[Ct]=Br[Lt]=Br[$t]=Br[yn]=Br[Hn]=Br[Bn]=Br[dn]=Br[nr]=!1;var no={};no[at]=no[Rt]=no[We]=no[he]=no[Fe]=no[Pe]=no[me]=no[et]=no[St]=no[Yt]=no[tn]=no[Lt]=no[$t]=no[yn]=no[Hn]=no[Bn]=no[dn]=no[Rn]=no[or]=no[Ze]=no[le]=no[ge]=!0,no[nt]=no[Ct]=no[nr]=!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 Eo(b)||sp(b)||!!(gf&&b&&b[gf])}function E(b,T){var $=typeof b;return T=T??rt,!!T&&($=="number"||$!="symbol"&&fa.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,$){if(!_l($))return!1;var _e=typeof T;return(_e=="number"?Vc($)&&E(T,$.length):_e=="string"&&T in $)?ad($[T],b):!1}function D(b,T){if(Eo(b))return!1;var $=typeof b;return $=="number"||$=="symbol"||$=="boolean"||b==null||Kh(b)?!0:Kn.test(b)||!Tn.test(b)||T!=null&&b in ts(T)}function Z(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ce(b){var T=od(b),$=it[T];if(typeof $!="function"||!(T in li.prototype))return!1;if(b===$)return!0;var _e=Kd($);return!!_e&&b===_e[0]}function be(b){return!!Cu&&Cu in b}var ke=ya?ap:Nh;function ze(b){var T=b&&b.constructor,$=typeof T=="function"&&T.prototype||Wa;return b===$}function gt(b){return b===b&&!_l(b)}function wt(b,T){return function($){return $==null?!1:$[b]===T&&(T!==t||b in ts($))}}function en(b){var T=pn(b,function(_e){return $.size===v&&$.clear(),_e}),$=T.cache;return T}function qt(b,T){var $=b[1],_e=T[1],He=$|_e,ht=He<(W|H|G),Ut=_e==G&&$==ie||_e==G&&$==oe&&b[7].length<=T[8]||_e==(G|oe)&&T[7].length<=T[8]&&$==ie;if(!(ht||Ut))return b;_e&W&&(b[2]=T[2],He|=$&W?0:q);var Vt=T[3];if(Vt){var an=b[3];b[3]=an?Od(an,Vt,T[4]):Vt,b[4]=an?il(b[3],x):T[4]}return Vt=T[5],Vt&&(an=b[5],b[5]=an?Id(an,Vt,T[6]):Vt,b[6]=an?il(b[5],x):T[6]),Vt=T[7],Vt&&(b[7]=Vt),_e&G&&(b[8]=b[8]==null?T[8]:va(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=He,b}function Mn(b){var T=[];if(b!=null)for(var $ in ts(b))T.push($);return T}function Ln(b){return kA.call(b)}function Fn(b,T,$){return T=gs(T===t?b.length-1:T,0),function(){for(var _e=arguments,He=-1,ht=gs(_e.length-T,0),Ut=hn(ht);++He<ht;)Ut[He]=_e[T+He];He=-1;for(var Vt=hn(T+1);++He<T;)Vt[He]=_e[He];return Vt[T]=$(Ut),js(b,this,Vt)}}function Zn(b,T){return T.length<2?b:Ou(b,Zr(T,0,-1))}function Mr(b,T){for(var $=b.length,_e=va(T.length,$),He=yA(b);_e--;){var ht=T[_e];b[_e]=E(ht,$)?He[ht]:t}return b}function mr(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Rr=po(dr),ei=zc||function(b,T){return Dr.setTimeout(b,T)},Nr=po(Dn);function to(b,T,$){var _e=T+"";return Nr(b,u(_e,ra(Da(_e),$)))}function po(b){var T=0,$=0;return function(){var _e=Bd(),He=Ce-(_e-$);if($=_e,He>0){if(++T>=we)return arguments[0]}else T=0;return b.apply(t,arguments)}}function ba(b,T){var $=-1,_e=b.length,He=_e-1;for(T=T===t?_e:T;++$<T;){var ht=zt($,He),Ut=b[ht];b[ht]=b[$],b[$]=Ut}return b.length=T,b}var Cs=en(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(pr,function($,_e,He,ht){T.push(He?ht.replace(ci,"$1"):_e||$)}),T});function qs(b){if(typeof b=="string"||Kh(b))return b;var T=b+"";return T=="0"&&1/b==-1/0?"-0":T}function $s(b){if(b!=null){try{return oh.call(b)}catch{}try{return b+""}catch{}}return""}function ra(b,T){return ja(Kt,function($){var _e="_."+$[0];T&$[1]&&!lA(b,_e)&&b.push(_e)}),b.sort()}function GA(b){if(b instanceof li)return b.clone();var T=new Do(b.__wrapped__,b.__chain__);return T.__actions__=yA(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function Va(b,T,$){($?S(b,T,$):T===t)?T=1:T=gs(Uo(T),0);var _e=b==null?0:b.length;if(!_e||T<1)return[];for(var He=0,ht=0,Ut=hn(bu(_e/T));He<_e;)Ut[ht++]=Zr(b,He,He+=T);return Ut}function Ks(b){for(var T=-1,$=b==null?0:b.length,_e=0,He=[];++T<$;){var ht=b[T];ht&&(He[_e++]=ht)}return He}function hs(){var b=arguments.length;if(!b)return[];for(var T=hn(b-1),$=arguments[0],_e=b;_e--;)T[_e-1]=arguments[_e];return kc(Eo($)?yA($):[$],_r(T,1))}var Mi=Xt(function(b,T){return Fl(b)?Bu(b,_r(T,1,Fl,!0)):[]}),Yo=Xt(function(b,T){var $=bA(T);return Fl($)&&($=t),Fl(b)?Bu(b,_r(T,1,Fl,!0),wi($,2)):[]}),Vs=Xt(function(b,T){var $=bA(T);return Fl($)&&($=t),Fl(b)?Bu(b,_r(T,1,Fl,!0),t,$):[]});function Aa(b,T,$){var _e=b==null?0:b.length;return _e?(T=$||T===t?1:Uo(T),Zr(b,T<0?0:T,_e)):[]}function Ms(b,T,$){var _e=b==null?0:b.length;return _e?(T=$||T===t?1:Uo(T),T=_e-T,Zr(b,0,T<0?0:T)):[]}function Au(b,T){return b&&b.length?_a(b,wi(T,3),!0,!0):[]}function Lo(b,T){return b&&b.length?_a(b,wi(T,3),!0):[]}function Ld(b,T,$,_e){var He=b==null?0:b.length;return He?($&&typeof $!="number"&&S(b,T,$)&&($=0,_e=He),Tl(b,T,$,_e)):[]}function jA(b,T,$){var _e=b==null?0:b.length;if(!_e)return-1;var He=$==null?0:Uo($);return He<0&&(He=gs(_e+He,0)),Gu(b,wi(T,3),He)}function qc(b,T,$){var _e=b==null?0:b.length;if(!_e)return-1;var He=_e-1;return $!==t&&(He=Uo($),He=$<0?gs(_e+He,0):va(He,_e-1)),Gu(b,wi(T,3),He,!0)}function xc(b){var T=b==null?0:b.length;return T?_r(b,1):[]}function ll(b){var T=b==null?0:b.length;return T?_r(b,vt):[]}function Al(b,T){var $=b==null?0:b.length;return $?(T=T===t?1:Uo(T),_r(b,T)):[]}function wf(b){for(var T=-1,$=b==null?0:b.length,_e={};++T<$;){var He=b[T];_e[He[0]]=He[1]}return _e}function Ud(b){return b&&b.length?b[0]:t}function sd(b,T,$){var _e=b==null?0:b.length;if(!_e)return-1;var He=$==null?0:Uo($);return He<0&&( Line truncated
`;b.replace(Vr,function(io,_s,Ts,Hd,Gh,Zd){return Ts||(Ts=Hd),yr+=b.slice(Vn,Zd).replace(dl,Dc),_s&&(Vt=!0,yr+=`' +
__e(`+_s+`) +
'`),Gh&&(an=!0,yr+=`';
`+Gh+`;
__p += '`),Ts&&(yr+=`' +
((__t = (`+Ts+`)) == null ? '' : __t) +
'`),Vn=Zd+io.length,io}),yr+=`';
`;var ro=Ro.call(T,"variable")&&T.variable;if(!ro)yr=`with (obj) {
`+yr+`
}
`;else if(Kr.test(ro))throw new Di(o);yr=(an?yr.replace(p,""):yr).replace(Ge,"$1").replace(Ye,"$1;"),yr="function("+(ro||"obj")+`) {
`+(ro?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Vt?", __e = _.escape":"")+(an?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+yr+`return __p
}`;var rs=vv(function(){return jo(ht,Oi+"return "+yr).apply(t,Ut)});if(rs.source=yr,_g(rs))throw rs;return rs}function xa(b){return Fs(b).toLowerCase()}function qd(b){return Fs(b).toUpperCase()}function m0(b,T,$){if(b=Fs(b),b&&($||T===t))return hf(b);if(!b||!(T=fo(T)))return b;var _e=Oa(b),He=Oa(T),ht=ju(_e,He),Ut=xh(_e,He)+1;return Xl(_e,ht,Ut).join("")}function $d(b,T,$){if(b=Fs(b),b&&($||T===t))return b.slice(0,wh(b)+1);if(!b||!(T=fo(T)))return b;var _e=Oa(b),He=xh(_e,Oa(T))+1;return Xl(_e,0,He).join("")}function G3(b,T,$){if(b=Fs(b),b&&($||T===t))return b.replace(on,"");if(!b||!(T=fo(T)))return b;var _e=Oa(b),He=ju(_e,Oa(T));return Xl(_e,He).join("")}function g0(b,T){var $=pe,_e=Se;if(_l(T)){var He="separator"in T?T.separator:He;$="length"in T?Uo(T.length):$,_e="omission"in T?fo(T.omission):_e}b=Fs(b);var ht=b.length;if(Wu(b)){var Ut=Oa(b);ht=Ut.length}if($>=ht)return b;var Vt=$-ao(_e);if(Vt<1)return _e;var an=Ut?Xl(Ut,0,Vt).join(""):b.slice(0,Vt);if(He===t)return an+_e;if(Ut&&(Vt+=an.length-Vt),d0(He)){if(b.slice(Vt).search(He)){var Vn,Xn=an;for(He.global||(He=cc(He.source,Fs(vi.exec(He))+"g")),He.lastIndex=0;Vn=He.exec(Xn);)var yr=Vn.index;an=an.slice(0,yr===t?Vt:yr)}}else if(b.indexOf(fo(He),Vt)!=Vt){var Vr=an.lastIndexOf(He);Vr>-1&&(an=an.slice(0,Vr))}return an+_e}function Tm(b){return b=Fs(b),b&&ct.test(b)?b.replace(Re,wd):b}var y0=nd(function(b,T,$){return b+($?" ":"")+T.toUpperCase()}),Hp=Td("toUpperCase");function km(b,T,$){return b=Fs(b),T=$?t:T,T===t?$f(b)?pf(b):Hh(b):b.match(T)||[]}var vv=Xt(function(b,T){try{return js(b,t,T)}catch($){return _g($)?$:new Di($)}}),nb=Yc(function(b,T){return ja(T,function($){$=qs($),vc(b,$,Cr(b[$],b))}),b});function rb(b){var T=b==null?0:b.length,$=wi();return b=T?ms(b,function(_e){if(typeof _e[1]!="function")throw new TA(l);return[$(_e[0]),_e[1]]}):[],Xt(function(_e){for(var He=-1;++He<T;){var ht=b[He];if(js(ht[0],this,_e))return js(ht[1],this,_e)}})}function ib(b){return _c(dA(b,B))}function p1(b){return function(){return b}}function Cv(b,T){return b==null||b!==b?T:b}var lp=fh(),ob=fh(!0);function Xc(b){return b}function _v(b){return Y(typeof b=="function"?b:dA(b,B))}function j3(b){return Oe(dA(b,B))}function W3(b,T){return Ne(b,dA(T,B))}var Q3=Xt(function(b,T){return function($){return al($,b,T)}}),Y3=Xt(function(b,T){return function($){return al(b,$,T)}});function bv(b,T,$){var _e=ue(T),He=Qs(T,_e);$==null&&!(_l(T)&&(He.length||!_e.length))&&($=T,T=b,b=this,He=Qs(T,ue(T)));var ht=!(_l($)&&"chain"in $)||!!$.chain,Ut=ap(b);return ja(He,function(Vt){var an=T[Vt];b[Vt]=an,Ut&&(b.prototype[Vt]=function(){var Vn=this.__chain__;if(ht||Vn){var Xn=b(this.__wrapped__),yr=Xn.__actions__=yA(this.__actions__);return yr.push({func:an,args:arguments,thisArg:b}),Xn.__chain__=Vn,Xn}return an.apply(b,kc([this.value()],arguments))})}),b}function q3(){return Dr._===this&&(Dr._=Qa),this}function xv(){}function Vd(b){return b=Uo(b),Xt(function(T){return ft(T,b)})}var wg=bf(ms),sb=bf(uc),$3=bf($h);function ab(b){return D(b)?bh(qs(b)):xt(b)}function V3(b){return function(T){return b==null?t:Ou(b,T)}}var oc=id(),zh=id(!0);function Ap(){return[]}function Nh(){return!1}function Pm(){return{}}function Tf(){return""}function gj(){return!0}function yj(b,T){if(b=Uo(b),b<1||b>rt)return[];var $=je,_e=va(b,je);T=wi(T),b-=je;for(var He=Rc(_e,T);++$<b;)T($);return He}function vj(b){return Eo(b)?ms(b,qs):Kh(b)?[b]:yA(Cs(Fs(b)))}function Cj(b){var T=++Lc;return Fs(b)+T}var _j=Ph(function(b,T){return b+T},0),bj=Dl("ceil"),xj=Ph(function(b,T){return b/T},1),Mj=Dl("floor");function wj(b){return b&&b.length?Ih(b,Xc,fA):t}function Sj(b,T){return b&&b.length?Ih(b,wi(T,2),fA):t}function Ej(b){return rh(b,Xc)}function Bj(b,T){return rh(b,wi(T,2))}function Oj(b){return b&&b.length?Ih(b,Xc,fe):t}function Ij(b,T){return b&&b.length?Ih(b,wi(T,2),fe):t}var Tj=Ph(function(b,T){return b*T},1),kj=Dl("round"),Pj=Ph(function(b,T){return b-T},0);function Rj(b){return b&&b.length?Cd(b,Xc):0}function Dj(b,T){return b&&b.length?Cd(b,wi(T,2)):0}return it.after=Qt,it.ary=wn,it.assign=hv,it.assignIn=dv,it.assignInWith=Vp,it.assignWith=fv,it.at=tb,it.before=ar,it.bind=Cr,it.bindAll=nb,it.bindKey=lr,it.castArray=F3,it.chain=i0,it.chunk=Va,it.compact=Ks,it.concat=hs,it.cond=rb,it.conforms=ib,it.constant=p1,it.countBy=a1,it.create=pv,it.curry=Wr,it.curryRight=oi,it.debounce=di,it.defaults=Mg,it.defaultsDeep=f1,it.defer=ul,it.delay=An,it.difference=Mi,it.differenceBy=Yo,it.differenceWith=Vs,it.drop=Aa,it.dropRight=Ms,it.dropRightWhile=Au,it.dropWhile=Lo,it.fill=Ld,it.filter=ip,it.flatMap=Qp,it.flatMapDeep=s0,it.flatMapDepth=yg,it.flatten=xc,it.flattenDeep=ll,it.flattenDepth=Al,it.flip=Zt,it.flow=lp,it.flowRight=ob,it.fromPairs=wf,it.functions=h,it.functionsIn=y,it.groupBy=l0,it.initial=xm,it.intersection=Gp,it.intersectionBy=zd,it.intersectionWith=Mm,it.invert=j,it.invertBy=X,it.invokeMap=l1,it.iteratee=_v,it.keyBy=vg,it.keys=ue,it.keysIn=ye,it.map=jd,it.mapKeys=Ke,it.mapValues=Ue,it.matches=j3,it.matchesProperty=W3,it.memo 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 Er(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Yy(q1(l))&&XA(l.type)==="identity"&&k.push(new Er(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 CL(n){return vL(n,"paint")}function _L(n){return vL(n,"layout")}function bL(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;if(os(t)!=="object")return[new Er(r,t,`object expected, ${os(t)} found`)];!t.type&&!t.ref&&e.push(new Er(r,t,'either "type" or "ref" is required'));let l=XA(t.type);const o=XA(t.ref);if(t.id){const f=XA(t.id);for(let v=0;v<n.arrayIndex;v++){const x=i.layers[v];XA(x.id)===f&&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(v=>{v in t&&e.push(new Er(r,t[v],`"${v}" is prohibited for ref layers`))});let f;i.layers.forEach(v=>{XA(v.id)===o&&(f=v)}),f?f.ref?e.push(new Er(r,t.ref,"ref cannot reference another ref layer")):l=XA(f.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 f=i.sources&&i.sources[t.source],v=f&&XA(f.type);f?v==="vector"&&l==="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster source`)):v!=="raster-dem"&&l==="hillshade"?e.push(new Er(r,t.source,`layer "${t.id}" requires a raster-dem source`)):v==="raster"&&l!=="raster"?e.push(new Er(r,t.source,`layer "${t.id}" requires a vector source`)):v==="vector"&&!t["source-layer"]?e.push(new Er(r,t,`layer "${t.id}" must specify a "source-layer"`)):v==="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"]&&(v!=="geojson"||!f.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(Uf({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:$B,layout(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return _L(Oy({layerType:l},v))}}})},paint(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return CL(Oy({layerType:l},v))}}})}}})),e}function $1(n){const e=n.value,t=n.key,r=os(e);return r!=="string"?[new Er(t,e,`string expected, ${r} found`)]:[]}function R$(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=os(r);if(r===void 0)return o;if(f!=="object")return o.push(new Er("source_raster_dem",r,`object expected, ${f} found`)),o;const x=XA(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 Er(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 Er(P,r[P],`unknown property "${P}"`));return o}const i7={promoteId:D$};function xL(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=XA(e.type);let o;switch(l){case"vector":case"raster":return o=Uf({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:i7,validateSpec:s}),o;case"raster-dem":return o=R$({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Uf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:i7}),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(...ky({key:`${t}.${f}.map`,value:x,expressionContext:"cluster-map"})),o.push(...ky({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Uf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Uf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new Er(t,null,"PlLine truncated
${B}`),N].join(`
${o}`)}return v}(n,"",0)}function s7(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 TL(n,e=2){return n=s7(n,Ss.$root),n.layers&&(n.layers=n.layers.map(t=>s7(t,Ss.layer))),$$(n,{indent:e})}function C4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function a7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function v6(n,e){return typeof e=="string"&&e[0]==="@"?v6(n,n.constants[e]):e}function V$(n){return Array.isArray(n.stops)}function Ev(n,e,t){n[t]=n[e],delete n[e]}function H$(n){n.version=8,k$(n,i=>{i.type==="video"&&i.url!==void 0&&Ev(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),cC(n,i=>{C4(i,s=>{s["symbol-min-distance"]!==void 0&&Ev(s,"symbol-min-distance","symbol-spacing")}),a7(i,s=>{s["background-image"]!==void 0&&Ev(s,"background-image","background-pattern"),s["line-image"]!==void 0&&Ev(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&Ev(s,"fill-image","fill-pattern")})}),YB(n,{paint:!0,layout:!0},i=>{const s=v6(n,i.value);V$(s)&&s.stops.forEach(l=>{l[1]=v6(n,l[1])}),i.set(s)}),delete n.constants,cC(n,i=>{C4(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),a7(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")}cC(n,i=>{C4(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 Z$(n){const e=[];return cC(n,t=>{t.filter&&(t.filter=uC(t.filter))}),YB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{qy(r)||(typeof r=="object"&&!Array.isArray(r)?(s(GB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(pL(r)))}),n}function X$(n){return JSON.parse(J$(JSON.stringify(n)))}function J$(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 eV(n){let e=!1;if(n.version===7&&(n=H$(n),e=!0),n.version===8&&(e=!!Z$(n),e=!0),YB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(X$(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const tV=Ss,nV={StyleExpression:dL,StylePropertyFunction:Rx,ZoomConstantExpression:p6,ZoomDependentExpression:m6,createExpression:kx,createPropertyExpression:Px,isExpression:qy,isExpressionFilter:p_,isZoomExpression:g$,normalizePropertyExpression:y$},rV={convertFunction:GB,createFunction:NB,isFunction:Yy};var Fx=cx();const iV=jl(Fx);var r2={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.5.0/LICENSE.txt
*/var oV=r2.exports,l7;function sV(){return l7||(l7=1,function(n,e){(function(t,r){n.exports=r()})(oV,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(d,A,h,y){return new(h||(h=Promise))(function(w,R){function U(re){try{X(y.next(re))}catch(ue){R(ue)}}function j(re){try{X(y.throw(re))}catch(ue){R(ue)}}function X(re){var ue;re.done?w(re.value):(ue=re.value,ue instanceof h?ue:new h(function(ye){ye(ue)})).then(U,j)}X((y=y.apply(d,A||[])).next())})}function f(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var v,x;function B(){if(x)return v;function d(A,h){this.x=A,this.y=h}return x=1,v=d,d.prototype={clone:function(){return new d(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,h){return this.clone()._rotateAround(A,h)},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 h=A.x-this.x,y=A.y-this.y;return h*h+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,h){return Math.atan2(this.x*h-this.y*A,this.x*A+this.y*h)},_matMult:function(A){var h=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=h,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 h=Math.cos(A),y=Math.sin(A),w=y*this.x+h*this.y;return this.x=h*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,h){var y=Math.cos(A),w=Math.sin(A),R=h.y+w*(this.x-h.x)+y*(this.y-h.y);return this.x=h.x+y*(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(A){return A instanceof d?A:Array.isArray(A)?new d(A[0],A[1]):A},v}typeof SuppressedError=="function"&&SuppressedError;var k,P,F=f(B()),N=function(){if(P)return k;function d(A,h,y,w){this.cx=3*A,this.bx=3*(y-A)-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=A,this.p1y=h,this.p2x=y,this.p2y=w}return P=1,k=d,d.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,h){if(h===void 0&&(h=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)<h)return y;var U=this.sampleCurveDerivativeX(y);if(Math.abs(U)<1e-6)break;y-=R/U}var j=0,X=1;for(y=A,w=0;w<20&&(R=this.sampleCurveX(y),!(Math.abs(R-A)<h));w++)A>R?j=y:X=y,y=.5*(X-j)+j;return y},solve:function(A,h){return this.sampleCurveY(this.solveCurveX(A,h))}},k}(),W=f(N);let H,q;function ie(){return H==null&&(H=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),H}function te(){if(q==null&&(q=!1,ie())){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 h=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&h[y]!==y){q=!0;break}}}return q||!1}var V=1e-6,ne=typeof Float32Array<"u"?Float32Array:Array;function G(){var d=new ne(9);return ne!=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 oe(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 de(){var d=new ne(3);return ne!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d}function pe(d){return Math.hypot(d[0],d[1],d[2])}function Se(d,A,h){var y=new neLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ye[1])} }\`.`)];const Ke=[];return d.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&Ke.push(new on(h,U,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&Uc(qu(U))&&xs(U.type)==="identity"&&Ke.push(new on(h,U,'"text-font" does not support identity functions'))),Ke.concat(y({key:d.key,value:U,valueSpec:ue,style:w,styleSpec:R,expressionContext:"property",propertyType:A,propertyKey:j}))}function Do(d){return Js(d,"paint")}function li(d){return Js(d,"layout")}function Os(d){let A=[];const h=d.value,y=d.key,w=d.style,R=d.styleSpec;if(Xi(h)!=="object")return[new on(y,h,`object expected, ${Xi(h)} found`)];h.type||h.ref||A.push(new on(y,h,'either "type" or "ref" is required'));let U=xs(h.type);const j=xs(h.ref);if(h.id){const X=xs(h.id);for(let re=0;re<d.arrayIndex;re++){const ue=w.layers[re];xs(ue.id)===X&&A.push(new on(y,h.id,`duplicate layer id "${h.id}", previously used at line ${ue.id.__line__}`))}}if("ref"in h){let X;["type","source","source-layer","filter","layout"].forEach(re=>{re in h&&A.push(new on(y,h[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{xs(re.id)===j&&(X=re)}),X?X.ref?A.push(new on(y,h.ref,"ref cannot reference another ref layer")):U=xs(X.type):A.push(new on(y,h.ref,`ref layer "${j}" not found`))}else if(U!=="background")if(h.source){const X=w.sources&&w.sources[h.source],re=X&&xs(X.type);X?re==="vector"&&U==="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster source`)):re!=="raster-dem"&&U==="hillshade"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster-dem source`)):re==="raster"&&U!=="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a vector source`)):re!=="vector"||h["source-layer"]?re==="raster-dem"&&U!=="hillshade"?A.push(new on(y,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||A.push(new on(y,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new on(y,h,`layer "${h.id}" must specify a "source-layer"`)):A.push(new on(y,h.source,`source "${h.source}" not found`))}else A.push(new on(y,h,'missing required property "source"'));return A=A.concat(Ya({key:y,value:h,valueSpec:R.layer,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*":()=>[],type:()=>d.validateSpec({key:`${y}.type`,value:h.type,valueSpec:R.layer.type,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,object:h,objectKey:"type"}),filter:it,layout:X=>Ya({layer:h,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>li(ni({layerType:U},re))}}),paint:X=>Ya({layer:h,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>Do(ni({layerType:U},re))}})}})),A}function Ws(d){const A=d.value,h=d.key,y=Xi(A);return y!=="string"?[new on(h,A,`string expected, ${y} found`)]:[]}const $u={promoteId:function({key:d,value:A}){if(Xi(A)==="string")return Ws({key:d,value:A});{const h=[];for(const y in A)h.push(...Ws({key:`${d}.${y}`,value:A[y]}));return h}}};function ol(d){const A=d.value,h=d.key,y=d.styleSpec,w=d.style,R=d.validateSpec;if(!A.type)return[new on(h,A,'"type" is required')];const U=xs(A.type);let j;switch(U){case"vector":case"raster":return j=Ya({key:h,value:A,valueSpec:y[`source_${U.replace("-","_")}`],style:d.style,styleSpec:y,objectElementValidators:$u,validateSpec:R}),j;case"raster-dem":return j=function(X){var re;const ue=(re=X.sourceName)!==null&&re!==void 0?re:"",ye=X.value,Ke=X.styleSpec,Ue=Ke.source_raster_dem,Qe=X.style;let Xe=[];const lt=Xi(ye);if(ye===void 0)return Xe;if(lt!=="object")return Xe.push(new on("source_raster_dem",ye,`object expected, ${lt} found`)),Xe;const _t=xs(ye.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],Ot=X.value.encoding?`"${X.value.encoding}"`:"Default";for(const Le in ye)!_t&&Wt.includes(Le)?Xe.push(new on(Le,ye[Le],`In "${ue}": "${Le}" is only valid when "encoding" is set to "custom". ${Ot} encoding found`)):Ue[Le]?Xe=Xe.concat(X.validateSpec({key:Le,value:ye[Le],valueSpec:Ue[Le],validateSpec:X.validateSpec,style:Qe,styleSpec:Ke})):Xe.push(new on(Le,ye[Le],`unknown property "${Le}"`));return Xe}({sourceName:h,value:A,style:d.style,styleSpec:y,validateSpec:R}),j;case"geojson":if(j=Ya({key:h,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:R,objectElementValidators:$u}),A.cluster)for(const X in A.clusterProperties){const[re,ue]=A.clusterProperties[X],ye=typeof re=="string"?[re,["accumulated"],["get",X]]:re;j.push(...Bl({key:`${h}.${X}.map`,value:ue,expressionContext:"cluster-map"})),j.push(...Bl({key:`${h}.${X}.reduce`,value:ye,expressionContext:"cluster-reduce"}))}return j;case"video":return Ya({key:h,value:A,valuLine 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(xi,"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(xi,`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);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;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))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.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 float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;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_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;switch(u_method){case BASIC:
basic_hillshade(deriv);break;case COMBINED:
combined_hillshade(deriv);break;case IGOR:
igor_hillshade(deriv);break;case MULTIDIRECTIONAL:
multidirectional_hillshade(deriv);break;case STANDARD:
default:
standard_hillshade(deriv);break;}
#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,Ae,fe,Ie,Oe)=>(Y[Oe]=!0,Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
in ${fe} ${Ie} ${Oe};
#else
uniform ${fe} ${Ie} u_${Oe};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Oe}
${fe} ${Ie} ${Oe} = u_${Oe};
#endif
`)),vertexSource:a=a.replace(c,(ee,Ae,fe,Ie,Oe)=>{const Ne=Ie==="float"?"vec2":"vec4",Ve=Oe.match(/color/)?"color":Ne;return Y[Oe]?Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
in ${fe} ${Ne} a_${Oe};
out ${fe} ${Ie} ${Oe};
#else
uniform ${fe} ${Ie} u_${Oe};
#endif
`:Ve==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = a_${Oe};
#else
${fe} ${Ie} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${Oe} = unpack_mix_${Ve}(a_${Oe}, u_${Oe}_t);
#else
${fe} ${Ie} ${Oe} = u_${Oe};
#endif
`:Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Oe}
uniform lowp float u_${Oe}_t;
in ${fe} ${Ne} a_${Oe};
#else
uniform ${fe} ${Ie} u_${Oe};
#endif
`:Ve==="vec4"?`
#ifndef HAS_UNIFORM_u_${Oe}
${fe} ${Ie} ${Oe} = a_${Oe};
#else
${fe} ${Ie} ${Oe} = u_${Oe};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Oe}
${fe} ${Ie} ${Oe} = unpack_mix_${Ve}(a_${Oe}, u_${Oe}_t);
#else
${fe} ${Ie} ${Oe} = u_${Oe};
#endif
`}),staticAttributes:C,staticUniforms:z}}class Ml{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 Io=o.aG([{name:"a_pos",type:"Int16",components:2}]);const Ql="#define PROJECTION_MERCATOR",Ki="mercator";class sA{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Ki}get shaderDefine(){return Ql}get shaderPreludeCode(){return uo.projectionMercator}get vertexShaderPreludeCode(){return uo.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,Io.members),ee=o.aJ.simpleSegment(0,0,4,2),Ae=new o.aK;Ae.emplaceBack(1,0,2),Ae.emplaceBack(1,2,3);const fe=a.createIndexBuffer(Ae);return this._cachedMesh=new Ml(Y,fe,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class aA{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 aA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Na(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 Gi(O){return Math.max(0,Math.floor(O))}class co{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=Gi(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 aA,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=Gi(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 aA(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
`),Pt=xt.concat(uo.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
`);ot(fe)||(Tt=function(Xt){return Xt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Tt),Pt=function(Xt){return Xt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Pt));const zt=fe.createShader(fe.FRAGMENT_SHADER);if(fe.isContextLost())return void(this.failedToCreate=!0);if(fe.shaderSource(zt,Tt),fe.compileShader(zt),!fe.getShaderParameter(zt,fe.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${fe.getShaderInfoLog(zt)}`);fe.attachShader(this.program,zt);const sn=fe.createShader(fe.VERTEX_SHADER);if(fe.isContextLost())return void(this.failedToCreate=!0);if(fe.shaderSource(sn,Pt),fe.compileShader(sn),!fe.getShaderParameter(sn,fe.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${fe.getShaderInfoLog(sn)}`);fe.attachShader(this.program,sn),this.attributes={};const xn={};this.numAttributes=Ne.length;for(let Xt=0;Xt<this.numAttributes;Xt++)Ne[Xt]&&(fe.bindAttribLocation(this.program,Xt,Ne[Xt]),this.attributes[Ne[Xt]]=Xt);if(fe.linkProgram(this.program),!fe.getProgramParameter(this.program,fe.LINK_STATUS))throw new Error(`Program failed to link: ${fe.getProgramInfoLog(this.program)}`);fe.deleteShader(sn),fe.deleteShader(zt);for(let Xt=0;Xt<It.length;Xt++){const ln=It[Xt];if(ln&&!xn[ln]){const _n=fe.getUniformLocation(this.program,ln);_n&&(xn[ln]=_n)}}this.fixedUniforms=M(a,xn),this.terrainUniforms=((Xt,ln)=>({u_depth:new o.bH(Xt,ln.u_depth),u_terrain:new o.bH(Xt,ln.u_terrain),u_terrain_dim:new o.b8(Xt,ln.u_terrain_dim),u_terrain_matrix:new o.bJ(Xt,ln.u_terrain_matrix),u_terrain_unpack:new o.bK(Xt,ln.u_terrain_unpack),u_terrain_exaggeration:new o.b8(Xt,ln.u_terrain_exaggeration)}))(a,xn),this.projectionUniforms=((Xt,ln)=>({u_projection_matrix:new o.bJ(Xt,ln.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(Xt,ln.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(Xt,ln.u_projection_clipping_plane),u_projection_transition:new o.b8(Xt,ln.u_projection_transition),u_projection_fallback_matrix:new o.bJ(Xt,ln.u_projection_fallback_matrix)}))(a,xn),this.binderUniforms=C?C.getUniforms(a,xn):[]}draw(a,c,C,M,I,z,Y,ee,Ae,fe,Ie,Oe,Ne,Ve,pt,ft,mt,Mt,It){const xt=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(xt.TEXTURE2),xt.bindTexture(xt.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(xt.TEXTURE3),xt.bindTexture(xt.TEXTURE_2D,ee.texture);for(const Pt in this.terrainUniforms)this.terrainUniforms[Pt].set(ee[Pt])}if(Ae)for(const Pt in Ae)this.projectionUniforms[yd[Pt]].set(Ae[Pt]);if(Y)for(const Pt in this.fixedUniforms)this.fixedUniforms[Pt].set(Y[Pt]);ft&&ft.setUniforms(a,this.binderUniforms,Ve,{zoom:pt});let Tt=0;switch(c){case xt.LINES:Tt=2;break;case xt.TRIANGLES:Tt=3;break;case xt.LINE_STRIP:Tt=1}for(const Pt of Ne.get()){const zt=Pt.vaos||(Pt.vaos={});(zt[fe]||(zt[fe]=new $h)).bind(a,this,Ie,ft?ft.getPaintVertexBuffers():[],Oe,Pt.vertexOffset,mt,Mt,It),xt.drawElements(c,Pt.primitiveLength*Tt,xt.UNSIGNED_SHORT,Pt.primitiveOffset*Tt*2)}}}function Gu(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),Ae=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[Ae.r,Ae.g,Ae.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:C}},yu=(O,a,c,C,M,I,z)=>o.e(Bs(O,a,c,C),Gu(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),cf=(O,a,c,C)=>o.e(Gu(a,O,c),{u_fill_translate:C}),rh=(O,a)=>({u_world:O,u_fill_translate:a}),bh=(O,a,c,C,M)=>o.e(cf(O,a,c,M),{u_world:C}),Pc=(O,a,c,C,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const Ae=o.az(a,1,I.zoom);z=!0,Y=[Ae,Ae],ee=Ae/(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}},Rp=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Zh=O=>({u_viewport_size:[O.width,O.height]}),Cd=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),Rc=(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;
${Ne.shaderPreludeCode.vertexSource}`,define:Ne.shaderDefine},defaultProjectionData:pt},mt=Oe.renderingMode?Oe.renderingMode:"2d";if(z.renderPass==="offscreen"){const Mt=Oe.prerender;Mt&&(z.setCustomLayerDefaults(),Ie.setColorMode(z.colorModeForRenderPass()),Mt.call(Oe,Ie.gl,ft),Ie.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Ie.setColorMode(z.colorModeForRenderPass()),Ie.setStencilMode(J.disabled);const Mt=mt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Br.ReadOnly);Ie.setDepthMode(Mt),Oe.render(Ie.gl,ft),Ie.setDirty(),z.setBaseState(),Ie.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,M=[]){this.cache=this.cache||{};const I=!!this.style.map.terrain,z=this.style.projection,Y=C?uo.projectionMercator:z.shaderPreludeCode,ee=C?Ql:z.shaderDefine,Ae=a+(c?c.cacheKey:"")+`/${C?Ki:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(I?"/terrain":"")+(M?`/${M.join("/")}`:"");return this.cache[Ae]||(this.cache[Ae]=new vd(this.context,uo[a],c,ml[a],this._showOverdrawInspector,I,Y,ee,M)),this.cache[Ae]}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 oe(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 Yl(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 Su{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=Yl(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(),Ae=this._map.getPitch();let fe="";if(fe+=a?`/${z}/${Y}/${C}`:`${C}/${Y}/${z}`,(ee||Ae)&&(fe+="/"+Math.round(10*ee)/10),Ae&&(fe+=`/${Math.round(Ae)}`),this._hashName){const Ie=this._hashName;let Oe=!1;const Ne=window.location.hash.slice(1).split("&").map(Ve=>{const pt=Ve.split("=")[0];return pt===Ie?(Oe=!0,`${pt}=${fe}`):Ve}).filter(Ve=>Ve);return Oe||Ne.push(`${Ie}=${fe}`),`#${Ne.join("&")}`}return`#${fe}`}_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 Bl={linearity:.3,easing:o.cd(0,0,.3,1 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 S6(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 E6(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 B6(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 xH(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(S6(f.circle,l)),i.push(B6(f.line,l)),t.push(E6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const v=s(f);r.push(S6(v.circle,l,f)),i.push(B6(v.line,l,f)),t.push(E6(v.polygon,v.polygonOutline,l,f))})}),t.concat(i).concat(r)}function MH(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 S4={polygonLayer:E6,lineLayer:B6,circleLayer:S6,generateInspectStyle:MH,generateColoredLayers:xH};function Co(){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=DH.language(this.options.language.split(",")[0]);return this.options.language&&(Bv!=null&&Bv[e][t])?Bv[e][t]:Bv[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=hp({},{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=hp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=hp({},{},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=hp({},{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=hp(r,{element:s}));const l=new this._maplibregl.Marker(hp({},r,{element:s}));let o;if(this.options.popup){const v=hp({},{},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
`).reduce((i,s)=>Math.max(i,zU(n,s)),0);return t[e]=r,r}function nee(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=zU(k,B);t.push(P),l+=P;const F=tee(k);r.push(F),f=Math.max(f,F)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function ree(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]),iee(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 iee(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]}class Jx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=_h(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Jx({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 bo()}getImage(e){return bo()}getHitDetectionImage(){return bo()}getPixelRatio(e){return 1}getImageState(){return bo()}getImageSize(){return bo()}getOrigin(){return bo()}getSize(){return bo()}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_=_h(e)}listenImageChange(e){bo()}load(){bo()}unlistenImageChange(e){bo()}ready(){return Promise.resolve()}}class e3 extends Jx{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()?yi.LOADING:yi.LOADED,this.imageState_===yi.LOADING&&this.ready().then(()=>this.imageState_=yi.LOADED),this.render()}clone(){const e=this.getScale(),t=new e3({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=Nf.get(r,null,null))==null?void 0:l.getImage(1);if(!i){const o=this.renderOptions_,f=Math.ceil(o.size*e),v=EA(f,f);this.draw_(o,v,e),i=v.canvas,Nf.set(r,null,null,new FU(i,void 0,null,yi.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,F=t/2*(x/B),W=Math.sqrt((i+P)*(i+P)+F*F)-i;if(this.radius2_===void 0||e==="bevel")return W*2;const H=i*Math.sin(o),q=Math.sqrt(i*i-H*H),ie=s-q,V=Math.sqrt(H*H+ie*ie)/H;if(V<=r){const ne=V*t/2-s-i;return 2*Math.max(W,ne)}return W*2}createRenderOptions(){let e=Fy,t=Ly,r=0,i=null,s=0,l,o=0;this.st Line truncated
`,""),n.push(e,""),n}function Zee(n,e,t){return t%2===0&&(n+=e),n}class Xee{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 KO: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]:nM(Array.isArray(e)?e[0]:e,f.textAlign||GC),k=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
`).reduce(Hee,[]),{width:F,height:N,widths:W,heights:H,lineWidths:q}=nee(f,P),ie=F+k,te=[],V=(ie+2)*x[0],ne=(N+k)*x[1],G={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",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 oe=.5-B;let de=B*ie+oe*k;const pe=[],Se=[];let we=0,Ce=0,De=0,xe=0,dt;for(let vt=0,rt=P.length;vt<rt;vt+=2){const tt=P[vt];if(tt===`
`){Ce+=we,we=0,de=B*ie+oe*k,++xe;continue}const Te=P[vt+1]||f.font;Te!==dt&&(i&&pe.push("font",Te),r&&Se.push("font",Te),dt=Te),we=Math.max(we,H[De]);const je=[tt,de+oe*W[De]+B*(W[De]-q[xe]),.5*(k+we)+Ce];de+=W[De],i&&pe.push("strokeText",je),r&&Se.push("fillText",je),++De}return Array.prototype.push.apply(te,pe),Array.prototype.push.apply(te,Se),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,F,N,W){o*=k[0],f*=k[1];let H=r-o,q=i-f;const ie=s+v>e?e-v:s,te=l+x>t?t-x:l,V=F[3]+ie*k[0]+F[1],ne=F[0]+te*k[1]+F[2],G=H-F[3],oe=q-F[0];(N||B!==0)&&(x0[0]=G,M0[0]=G,x0[1]=oe,Dm[1]=oe,Dm[0]=G+V,Km[0]=Dm[0],Km[1]=oe+ne,M0[1]=Km[1]);let de;return B!==0?(de=dm(md(),r,i,1,1,B,-r,-i),Lu(de,x0),Lu(de,Dm),Lu(de,Km),Lu(de,M0),qm(Math.min(x0[0],Dm[0],Km[0],M0[0]),Math.min(x0[1],Dm[1],Km[1],M0[1]),Math.max(x0[0],Dm[0],Km[0],M0[0]),Math.max(x0[1],Dm[1],Km[1],M0[1]),Rg)):qm(Math.min(G,G+V),Math.min(oe,oe+ne),Math.max(G,G+V),Math.max(oe,oe+ne),Rg),P&&(H=Math.round(H),q=Math.round(q)),{drawImageX:H,drawImageY:q,drawImageW:ie,drawImageH:te,originX:v,originY:x,declutterBox:{minX:Rg[0],minY:Rg[1],maxX:Rg[2],maxY:Rg[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,x0,Dm,Km,M0,l,o),ree(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],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=nM(Array.isArray(e)?e[0]:e,s.textAlign||GC),x=H2[s.textBaseline||j2],B=o&&o.lineWidth?o.lineWidth:0,k=l.width/f-2*s.scale[0],P=v*k+2*(.5-v)*B,F=x*l.height/f+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:F}}execute_(e,t,r,i,s,l,o,f){const v=this.zIndexContext_;let x;this.pixelCoordinates_&&Z0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=Y0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),tX(this.renderedTransform_,r));let B=0;const k=i.length;let P=0,F,N,W,H,q,ie,te,V,ne,G,oe,de,pe,Se=0,we=0;const Ce=this.coordinateCache_,De=this.viewRotation_,xe=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,dt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:De},vt=this.instructions!=i||this.overlaps?0:200;let rt,tt,Te,je;for(;B<k;){const $e=i[B];switch($e[0]){case Hi.BEGIN_GEOMETRY:rt=$e[1],je=$e[3],rt.getGeometry()?o!==void 0&&!JA(o,je.getExtent())?B=$e[2]+1:++B:B=$e[2],v&&(v.zIndex=$e[4]);break;case Hi.BEGIN_PATH:Se>vt&&(this.fill_(e),Se=0),we>vt&&(e.stroke(),we=0),!Se&&!we&&(e.beginPath(),q=NaN,ie=NaN),++B;break;case Hi.CIRCLE:P=$e[1];const Kt=x[P],at=x[P+1],Rt=x[P+2],Et=x[P+3],Fe=Rt-Kt,Pe=Et-at,Ee=Math.sqrt(Fe*Fe+Pe*Pe);e.moveTo(Kt+Ee,at),e.arc(Kt,at,Ee,0,2*Math.PI,!0),++B;break;case Hi.CLOSE_PATH:e.closePath(),++B;break;case Hi.CUSTOM:P=$e[1],F=$e[2];const nt=$e[3],Ct=$e[4],ut=$e[5];dt.geometry=nt,dt.feature=rt,B in Ce||(Ce[B]=[]);const Lt=Ce[B];ut?ut(x,P,F,2,Lt):(Lt[0]=x[P],Lt[1]=x[P+1],Lt.length=2),v&&(v.zIndex=$e[6]),Ct(Lt,dt),++B;break;case Hi.DRAW_IMAGE:P=$e[1],F=$e[2],ne=$e[3],N=$e[4],W=$e[5];let $t=$e[6];const Dt=$e[7],yn=$e[8],jn=$e[9],Jt=$e[10];let Hn=$e[11];const Bn=$e[12];let dn=$e[13];H=$e[14]||"declutter";const Rn=$e[15];if(!ne&&$e.length>=20){G=$e[19],oe=$e[20],de=$e[21],pe=$e[22];const jt=this.drawLabelWithPointPlacement_(G,oe,de,pe);ne=jt.label,$e[3]=ne;const Gt=$e[23];N=(jt.anchorX-Gt)*this.pixelRatio,$e[4]=N;const rn=$e[24];W=(jt.anchorY-rn)*this.pixelRatio,$e[5]=W,$t=ne.height,$e[6]=$t,dn=ne.width,$e[13]=dn}let fr;$e.length>25&&(fr=$e[25]);let nr,Yn,We;$e.length>17?(nr=$e[16],Yn=$e[17],We=$e[18]):(nr=D1,Yn=null,We=null),Jt&&xe?Hn+=De:!Jt&&!xe&&(Hn-=De);let he=0;for(;P<F;P+=2){if(fr&&fr[he++]<dn/this.pixelRatio)continue;const jt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],dn,$t,N,W,yn,jn,Hn,Bn,s,nr,!!Yn||!!We,rt),Gt=[e,t,ne,jt,Dt,Yn,We];if(f){let rn,Tn,Kn;if(Rn){const sr=F-P;if(!Rn[sr]){Rn[sr]={args:Gt,declutterMode:H};continue}const on=Rn[sr];rn=on.args,Tn=on.declutterMode,delete Rn[sr],Kn=w9(rn)}let pr,kr;if(rn&&(Tn!=="declutter"||!f.collides(Kn))&&(pr=!0),(H!=="declutter"||!f.collides(jt.declutterBox))&&(kr=!0),Tn==="declutter"&&H==="declutter"){c Line truncated
`),i=pte.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 oM;function hz(){return oM||(oM=s3(1,1).getContext("2d")),oM}function v1(n,e){return hz().measureText(n).width+(n.length-1)*e}const J2={};B1.on("propertychange",()=>{for(const n in J2)delete J2[n]});function X6(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(X6(l[f],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=J2[i];if(!s){const l=n.split(" ");if(l.length>1){const o=hz();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 F=l[k],N=x+(x?" ":"")+F;v1(N,r)<=v?x=N:(x&&B.push(x),x=F)}x&&B.push(x);for(let k=0,P=B.length;k<P&&P>1;++k){const F=B[k];if(v1(F,r)<v*.35){const N=k>0?v1(B[k-1],r):1/0,W=k<P-1?v1(B[k+1],r):1/0;B.splice(k,1),P-=1,N<W?(B[k-1]+=" "+F,k-=1):B[k]=F+" "+B[k]}}for(let k=0,P=B.length-1;k<P;++k){const F=B[k],N=B[k+1];if(v1(F,r)>v*.7&&v1(N,r)<v*.6){const W=F.split(" "),H=W.pop();v1(H,r)<v*.2&&(B[k]=W.join(" "),B[k+1]=H+" "+N),P-=1}}s=B.join(`
`)}else s=n;s=Z6(s,r),J2[i]=s}return s}const mte=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],D9={};function gte(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let r=0,i=n.length;r<i;++r){const s=n[r];if(s in D9)continue;D9[s]=!0;const o=O6(s,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let r=0,i=t.length;r<i;++r){const s=t[r],l=s[0];if(mte.includes(l))continue;const o=s[1],f=s[2];if(!(await document.fonts.load(`${f} ${o} 16px "${l}"`)).some(x=>x.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&x.weight==o&&x.style===f)){const x=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",f.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",f);if(!document.querySelector('link[href="'+x+'"]')){const B=document.createElement("link");B.href=x,B.rel="stylesheet",document.head.appendChild(B)}}}})(),n}const yte={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},vte={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]},Cte=function(n,e){const t=Px(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},af={zoom:0,distanceFromCenter:0};of.register(Ox,{...of.definitions,pitch:[{kind:"number"},[],n=>af.pitch||90],"distance-from-center":[{kind:"number"},[],n=>af.distanceFromCenter||0]});let Tb,sM;function Ei(n,e,t,r,i,s){const l=n.id;i||(i={},console.warn("No functionCache provided to getValue()")),i[l]||(i[l]={});const o=i[l];if(!o[t]){let f=(n[e]||Cp)[t];const v=tV[`${e}_${n.type}`][t];f===void 0&&(f=v.default);let x=qy(f);if(!x&&Yy(f)&&(f=GB(f,v),x=!0),x){const B=Cte(f,v);o[t]=B.evaluate.bind(B)}else v.type=="color"&&(f=La.parse(f)),o[t]=function(){return f}}return o[t](af,r,s)}function K9(n,e,t,r){return Ei(n,"layout",`${t}-allow-overlap`,e,r)?Ei(n,"layout",`${t}-ignore-placement`,e,r)?"none":"obstacle":"declutter"}function _te(n,e,t,r){if(r||console.warn("No filterCache provided to evaluateFilter()"),!(n in r))try{r[n]=b$(e).filter}catch(i){console.warn("Filter will evaluate to false: "+i.message),r[n]=function(){return!1}}return r[n](af,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 bte=/\{[^{}}]*\}/g;function aM(n,e){return n.replace(bte,function(t){return e[t.slice(1,-1)]||""})}function F9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const xte={};function Mte(n,e,t,r=hm,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.");xte[hte(e,n)]=Array.from(arguments);const f={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const V in s){const ne=s[V];Ry(()=>ne).then(async G=>{let oe;if(typeof Image<"u"){const de=new Image;if(typeof G=="string")de.crossOrigin="anonymous",de.src=G;else{let pe;G instanceof Request?pe=await fetch(G):G instanceof Response&&(pe=G);const Se=await pe.blob();oe=URL.createObjectURL(Se),de.src=oe}de.addEventListener("load",function pe(){de.removeEventListener("load",pe),f[V]={image:de,size:[de.width,de.height]},n.changed(),oe&&URL.revokeObjectURL(oe)}),de.addEventListener("error",function pe(){URL.revokeObjectURL(oe),de.removeEventListener("error",pe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const de=self;de.postMessage({action:"loadImage",src:G}),de.addEventListener("message",function(Se){Se.data.action==="imageLoaded"&&Se.data.src===G&&(f[V]={image:Se.data.image,size:[Se.data.image.width,Se.data.image.height]})})}})}const v=xB(e.layers),x={},B=[],k={},P={},F=Az(e),N=dte(e);let W;for(let V=0,ne=v.length;V<ne;++V){const G=v[V],oe=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(oe)!==-1){const de=G["source-layer"];if(W){if(G.source!==W)throw new Error(`Layer "${oe}" does not use source "${W}`)}else{W=G.source;const Se=e.sources[W];if(!Se)throw new Error(`Source "${W}" is not defined`);const we=Se.type;if(we!=="vector"&&we!=="geojson")throw new Error(`Source "${W}" is not of type "vector" or "geojson", but "${we}"`)}let pe=x[de];pe||(pe=[],x[de]=pe),pe.push({layer:G,index:V}),B.push(oe)}}const H=new K0,q=new Gm,ie=[],te=function(V,ne,G){const oe=V.getProperties(),de=x[oe["mvt:layer"]];if(!de)return;let pe=r.indexOf(ne);pe==-1&&(pe=GO(ne,r)),af.zoom=pe,af.distanceFromCenter=0;const Se=V.getGeometry(),we=yte[Se.getType()],Ce=n.get("map");if(Ce&&Ce instanceof i3&&we===1){const vt=Ce.getSize();if(vt){const rt=Ce.getView().getCenLine truncated
`)return Yn.push(`
`,""),Yn;if(we==2)return Yn.push(Z6(St,dn),et),Yn;St=X6(St,et,Rn,dn).split(`
`);for(let Yt=0,tn=St.length;Yt<tn;++Yt)Yt>0&&Yn.push(`
`,""),Yn.push(St[Yt],et);return Yn},[]):jn=aM(nr,oe).trim(),Rt=Ei(Te,"paint","text-opacity",De,F,xe)}if(jn&&Rt&&!yn){Ct||(++dt,Ee=ie[dt],(!Ee||!Ee.getText()||Ee.getFill()||Ee.getStroke())&&(Ee=new ef,ie[dt]=Ee),Ee.setImage(void 0),Ee.setGeometry(void 0));const fr=K9(Te,De,"text",F);Ee.getText()||Ee.setText(ut),ut=Ee.getText(),(!ut||"getDeclutterMode"in ut&&ut.getDeclutterMode()!==fr)&&(ut=new t3({padding:[2,2,2,2],declutterMode:fr}),Ee.setText(ut));const nr=Ei(Te,"layout","text-transform",De,F,xe);nr=="uppercase"?jn=Array.isArray(jn)?jn.map((Ye,Re)=>Re%2?Ye:Ye.toUpperCase()):jn.toUpperCase():nr=="lowercase"&&(jn=Array.isArray(jn)?jn.map((Ye,Re)=>Re%2?Ye:Ye.toLowerCase()):jn.toLowerCase());const Yn=Array.isArray(jn)?jn:we==2?Z6(jn,dn):X6(jn,Jt,Rn,dn);if(ut.setText(Yn),ut.setFont(Jt),ut.setRotation(iM(Ei(Te,"layout","text-rotate",De,F,xe))),typeof ut.setKeepUpright=="function"){const Ye=Ei(Te,"layout","text-keep-upright",De,F,xe);ut.setKeepUpright(Ye)}const We=Ei(Te,"layout","text-anchor",De,F,xe),he=Ct||we==1?"point":Ei(Te,"layout","symbol-placement",De,F,xe);let me;if(he==="line-center"?(ut.setPlacement("line"),me="center"):ut.setPlacement(he),he==="line"&&typeof ut.setRepeat=="function"){const Ye=Ei(Te,"layout","symbol-spacing",De,F,xe);ut.setRepeat(Ye*2)}ut.setOverflow(he==="point");let et=Ei(Te,"paint","text-halo-width",De,F,xe);const St=Ei(Te,"layout","text-offset",De,F,xe),Yt=Ei(Te,"paint","text-translate",De,F,xe);let tn=0,or=0;if(he=="point"){me="center",We.indexOf("left")!==-1?(me="left",or=et):We.indexOf("right")!==-1&&(me="right",or=-et);const Ye=Ei(Te,"layout","text-rotation-alignment",De,F,xe);ut.setRotateWithView(Ye=="map")}else ut.setMaxAngle(iM(Ei(Te,"layout","text-max-angle",De,F,xe))*jn.length/Yn.length),ut.setRotateWithView(!1);ut.setTextAlign(me);let Ze="middle";We.indexOf("bottom")==0?(Ze="bottom",tn=-et-.5*(Hn-1)*Bn):We.indexOf("top")==0&&(Ze="top",tn=et+.5*(Hn-1)*Bn),ut.setTextBaseline(Ze);const le=Ei(Te,"layout","text-justify",De,F,xe);ut.setJustify(le==="auto"?void 0:le),ut.setOffsetX(St[0]*Bn+or+Yt[0]),ut.setOffsetY(St[1]*Bn+tn+Yt[1]),q.setColor(B0(Ei(Te,"paint","text-color",De,F,xe),Rt)),ut.setFill(q);const ge=B0(Ei(Te,"paint","text-halo-color",De,F,xe),Rt);if(ge&&et>0){H.setColor(ge),et*=2;const Ye=.5*Bn;H.setWidth(et<=Ye?et:Ye),ut.setStroke(H)}else ut.setStroke(void 0);const p=Ei(Te,"layout","text-padding",De,F,xe),Ge=ut.getPadding();p!==Ge[0]&&(Ge[0]=p,Ge[1]=p,Ge[2]=p,Ge[3]=p),Ee.setZIndex(nt)}}}if(dt>-1)return ie.length=dt+1,ie};return n.setStyle(te),n.set("mapbox-layers",B),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),te}class dz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=o3,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?wa(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=wa(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 bo()}readFeature(e,t){return bo()}readFeatures(e,t){return bo()}readGeometry(e,t){return bo()}readProjection(e){return bo()}writeFeature(e,t){return bo()}writeFeatures(e,t){return bo()}writeGeometry(e,t){return bo()}}function a3(n,e,t){const r=t?wa(t.featureProjection):null,i=t?wa(t.dataProjection):null;let s=n;if(r&&i&&!Q0(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 wte={Point:Z1,LineString:J1,Polygon:Vm,MultiPoint:B_,MultiLineString:YC,MultiPolygon:qC};function Ste(n,e,t){return Array.isArray(e[0])?(bU(n,0,e,t)||(n=n.slice(),G6(n,0,e,t)),n):(gO(n,0,e,t)||(n=n.slice(),N2(n,0,e,t)),n)}function fz(n,e){var s;const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(l=>fz({...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 a3(new Ch(r,r==="Polygon"?Ste(t.flatCoordinates,t.ends,i):t.flatCoordinates,(s=t.ends)==null?void 0:s.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function jO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>jO(i,e));return new $2(r)}const t=wte[n.type];return a3(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Ete extends dz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(kb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(kb(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return bo()}readFea Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Kne(n,e){const t=Sz(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 Fne extends m_{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]=Dne(e,this.onWorkerMessage_.bind(this,i));else r[0]=Kne(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 q9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class $9 extends Op{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class Ez extends bz{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_=zne(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(yo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new qL(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:Une(this.layers_),pixelRatio:1,pixelToCoordinateTransform:md(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Po(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 Jy?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 Fne({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=lf(e);i.size[0]=Math.ceil(Us(e)/t),i.size[1]=Math.ceil(zu(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||!$m(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(Bz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Zne extends u3{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Xne,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:sz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Q0(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||Q0(t,e)))return this.tileGrid;const r=Po(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=xz(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?zr.IDLE:zr.EMPTY,v!==void 0?v:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(yo.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||Q0(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 vz(l,v,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,F,N,W)=>this.getTileInternal(P,F,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=wa(e);if(r){const i=Po(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Xne(n,e){n.getImage().src=e}class Oz extends Zne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:wa("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)Gne(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=wa("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const v=__(t,r);i=mZ(e.bounds,v)}const s=A3(r),l=e.minzoom||0,o=e.maxzoom||22,f=QO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Bz(e.tiles,f),e.attribution&&!this.getAttributions()){const v=i!==void 0?i:s;this.setAttributions(function(x){return JA(v,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class Iz extends u3{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||A3(t),i=e.tileGrid||QO({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:Tz,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:az,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===zr.IDLE){r.setState(zr.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 X9;function pre(){return X9||(X9=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})()}(pM)),pM.exports}var mre=pre();const fm=jl(mre);function I1(){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 I1=function(){return l},l}I1();class gre extends hr.Component{render(){I1().f[0]++;const e=(I1().s[0]++,{width:20,height:20,...this.props.style});return I1().s[1]++,this.props.isCollapsed?(I1().b[0][0]++,se.jsx(tH,{style:e})):(I1().b[0][1]++,se.jsx(eH,{style:e}))}}function fy(){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 fy=function(){return l},l}fy();class yre extends hr.Component{render(){return fy().f[0]++,fy().s[0]++,se.jsx("li",{className:"maputnik-layer-list-group",children:se.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(fy().f[1]++,fy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[se.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),se.jsx("span",{className:"maputnik-space"}),se.jsx(gre,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function xl(){return xl=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},xl.apply(null,arguments)}function vre(n){if(Array.isArray(n))return n}function Cre(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 Nz(n,e){return vre(n)||Cre(n,e)||zz(n,e)||_re()}function zy(n){"@babel/helpers - typeof";return zy=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},zy(n)}function bre(n,e){if(zy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(zy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Gz(n){var e=bre(n,"string");return zy(e)=="symbol"?e:e+""}function Fa(n,e,t){return(e=Gz(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function mM(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){Fa(n,i,t[i])})}return n}function T_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function xre(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,Gz(r.key),r)}}function k_(n,e,t){return e&&xre(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function As(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function YO(n,e){if(e&&(zy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return As(n)}function $C(n){return $C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$C(n)}function oB(n,e){return oB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},oB(n,e)}function qO(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&&oB(n,e)}var gM,J9;function Mre(){if(J9)return gM;J9=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 gM=n,gM}var wre=Mre();const eg=jl(wre);function Sre(n){if(Array.isArray(n))return iB(n)}function Ere(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Bre(){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 Ore(n){return Sre(n)||Ere(n)||zz(n)||Bre()}var Ire=function(){function n(){T_(this,n),Fa(this,"refs",{})}return k_(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(Tre)}}]),n}();function Tre(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function jz(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var Ug={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Wz=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 Kb(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function Fb(n,e){n.style["".concat(Wz,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function yM(n,e){n.style["".concat(Wz,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Xv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function eT(n,e,t){return Math.max(n,Math.min(t,e))}function py(n){return n.substr(-2)==="px"?parseFloat(n):0}function kre(n){var e=window.getComputedStyle(n);return{bottom:py(e.marginBottom),left:py(e.marginLeft),right:py(e.marginRight),top:py(e.marginTop)}}function $O(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function vM(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function Kv(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 Pre(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function a2(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:a2(n.parentNode,e,r)}}function Rre(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function tT(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);eg(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 eg(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 Dre(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];eg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Nz(i,2),l=s[0],o=s[1];return[tT({height:e,lockOffset:l,width:t}),tT({height:e,lockOffset:o,width:t})]}function Kre(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function Qz(n){return n instanceof HTMLElement?Kre(n)?n:Qz(n.parentNode):null}function Fre(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:py(e.gridColumnGap),y:py(e.gridRowGap)}:{x:0,y:0}}var _1={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},T1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Lre(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=Ore(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===T1.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function Ure(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){qO(s,i);function s(){var l,o;T_(this,s);for(var f=arguments.length,v=new Array(f),x=0;x<f;x++)v[x]=arguments[x];return o=YO(this,(l=$C(s)).call.apply(l,[this].concat(v))),Fa(As(As(o)),"wrappedInstance",ir.createRef()),o}return k_(s,[{key:"componentDidMount",value:function(){var o=Fx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return eg(r.withRef,"T Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Zz=["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])"],nx=Zz.join(","),Xz=typeof Element>"u",tg=Xz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,rx=!Xz&&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},ix=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},Xre=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},Jz=function(e,t,r){if(ix(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(nx));return t&&tg.call(e,nx)&&i.unshift(e),i=i.filter(r),i},eN=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!ix(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=tg.call(l,nx);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),k=!ix(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},tN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},I0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Xre(e))&&!tN(e)?0:e.tabIndex},Jre=function(e,t){var r=I0(e);return r<0&&t&&!tN(e)?0:r},eie=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},nN=function(e){return e.tagName==="INPUT"},tie=function(e){return nN(e)&&e.type==="hidden"},nie=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},rie=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},iie=function(e){if(!e.name)return!0;var t=e.form||rx(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=rie(i,e.form);return!s||s===e},oie=function(e){return nN(e)&&e.type==="radio"},sie=function(e){return oie(e)&&!iie(e)},aie=function(e){var t,r=e&&rx(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=rx(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},rT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},lie=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=tg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(tg.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=rx(e);if(f&&!f.shadowRoot&&i(f)===!0)return rT(e);e.assignedSlot?e=e.assignedSlot:!f&&v!==e.ownerDocument?e=v.host:e=f}e=o}if(aie(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return rT(e);return!1},Aie=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 tg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},ox=function(e,t){return!(t.disabled||ix(t)||tie(t)||lie(t,e)||nie(t)||Aie(t))},sB=function(e,t){return!(sie(t)||I0(t)<0||!ox(e,t))},uie=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},cie=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=Jre(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(eie).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 iT(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 oT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?iT(Object(t),!0).forEach(function(r){fie(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):iT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function fie(n,e,t){return e=mie(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function pie(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 mie(n){var e=pie(n,"string");return typeof e=="symbol"?e:String(e)}var sT={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()}},gie=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},yie=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},gC=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},vie=function(e){return gC(e)&&!e.shiftKey},Cie=function(e){return gC(e)&&e.shiftKey},aT=function(e){return setTimeout(e,0)},lT=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},Fv=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},Lb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},_ie=[],bie=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||_ie,s=oT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:vie,isKeyBackward:Cie},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(we,Ce,De){return we&&we[Ce]!==void 0?we[Ce]:s[De||Ce]},v=function(we,Ce){var De=typeof(Ce==null?void 0:Ce.composedPath)=="function"?Ce.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var dt=xe.container,vt=xe.tabbableNodes;return dt.contains(we)||(De==null?void 0:De.includes(dt))||vt.find(function(rt){return rt===we})})},x=function(we){var Ce=s[we];if(typeof Ce=="function"){for(var De=arguments.length,xe=new Array(De>1?De-1:0),dt=1;dt<De;dt++)xe[dt-1]=arguments[dt];Ce=Ce.apply(void 0,xe)}if(Ce===!0&&(Ce=void 0),!Ce){if(Ce===void 0||Ce===!1)return Ce;throw new Error("`".concat(we,"` was specified but was not a node, or did not return a node"))}var vt=Ce;if(typeof Ce=="string"&&(vt=r.querySelector(Ce),!vt))throw new Error("`".concat(we,"` as selector refers to no known node"));return vt},B=function(){var we=x("initialFocus");if(we===!1)return!1;if(we===void 0||!l2(we,s.tabbableOptions))if(v(r.activeElement)>=0)we=r.activeElement;else{var Ce=l.tabbableGroups[0],De=Ce&&Ce.firstTabbableNode;we=De||x("fallbackFocus")}if(!we)throw new Error("Your focus-trap needs to have at least one focusable element");return we},k=function(){if(l.containerGroups=l.containers.map(function(we){var Ce=rN(we,s.tabbableOptions),De=iN(we,s.tabbableOptions),xe=Ce.length>0?Ce[0]:void 0,dt=Ce.length>0?Ce[Ce.length-1]:void 0,vt=De.find(function(Te){return S1(Te)}),rt=De.slice().reverse().find(function(Te){return S1(Te)}),tt=!!Ce.find(function(Te){return I0(Te)>0});return{container:we,tabbableNodes:Ce,focusableNodes:De,posTabIndexesFound:tt,firstTabbableNode:xe,lastTabbableNode:dt,firstDomTabbableNode:vt,lastDomTabbableNode:rt,nextTabbableNode:function(je){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,yt=Ce.indexOf(je);return yt<0?$e?De.slice(De.indexOf(je)+1).find(function(Kt){return S1(Kt)}):De.slice(0,De.indexOf(je)).reverse().find(function(Kt){return S1(Kt)}):Ce[yt+($e?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(we){return we.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(we){return we.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 Se(we){var Ce=we.activeElement;if(Ce)reLine truncated
* @license React
* react-is.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 dT;function Lie(){if(dT)return Ma;dT=1;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.server_context"),f=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),F;F=Symbol.for("react.module.reference");function N(W){if(typeof W=="object"&&W!==null){var H=W.$$typeof;switch(H){case n:switch(W=W.type,W){case t:case i:case r:case v:case x:return W;default:switch(W=W&&W.$$typeof,W){case o:case l:case f:case k:case B:case s:return W;default:return H}}case e:return H}}}return Ma.ContextConsumer=l,Ma.ContextProvider=s,Ma.Element=n,Ma.ForwardRef=f,Ma.Fragment=t,Ma.Lazy=k,Ma.Memo=B,Ma.Portal=e,Ma.Profiler=i,Ma.StrictMode=r,Ma.Suspense=v,Ma.SuspenseList=x,Ma.isAsyncMode=function(){return!1},Ma.isConcurrentMode=function(){return!1},Ma.isContextConsumer=function(W){return N(W)===l},Ma.isContextProvider=function(W){return N(W)===s},Ma.isElement=function(W){return typeof W=="object"&&W!==null&&W.$$typeof===n},Ma.isForwardRef=function(W){return N(W)===f},Ma.isFragment=function(W){return N(W)===t},Ma.isLazy=function(W){return N(W)===k},Ma.isMemo=function(W){return N(W)===B},Ma.isPortal=function(W){return N(W)===e},Ma.isProfiler=function(W){return N(W)===i},Ma.isStrictMode=function(W){return N(W)===r},Ma.isSuspense=function(W){return N(W)===v},Ma.isSuspenseList=function(W){return N(W)===x},Ma.isValidElementType=function(W){return typeof W=="string"||typeof W=="function"||W===t||W===i||W===r||W===v||W===x||W===P||typeof W=="object"&&W!==null&&(W.$$typeof===k||W.$$typeof===B||W.$$typeof===s||W.$$typeof===l||W.$$typeof===f||W.$$typeof===F||W.getModuleId!==void 0)},Ma.typeOf=N,Ma}var fT;function Uie(){return fT||(fT=1,MM.exports=Lie()),MM.exports}Uie();const pT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,mT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",zb=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return mT(t.overflowY,e)||mT(t.overflowX,e)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(n)}return!1},Nb=(n,e,t,r,i,s,l,o)=>s<n&&l>e||s>n&&l<e?0:s<=n&&o<=t||l>=e&&o>=t?s-n-r:l>e&&o<t||s<n&&o>t?l-e+i:0,zie=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Nie=(n,e)=>{var t,r,i,s;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:f}=e,v=typeof o=="function"?o:Ce=>Ce!==o;if(!pT(n))throw new TypeError("Invalid target");const x=document.scrollingElement||document.documentElement,B=[];let k=n;for(;pT(k)&&v(k);){if(k=zie(k),k===x){B.push(k);break}k!=null&&k===document.body&&zb(k)&&!zb(document.documentElement)||k!=null&&zb(k,f)&&B.push(k)}const P=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,F=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:N,scrollY:W}=window,{height:H,width:q,top:ie,right:te,bottom:V,left:ne}=n.getBoundingClientRect(),{top:G,right:oe,left:de}=(Ce=>{const De=window.getComputedStyle(Ce);return{top:parseFloat(De.scrollMarginTop)||0,right:parseFloat(De.scrollMarginRight)||0,bottom:parseFloat(De.scrollMarginBottom)||0,left:parseFloat(De.scrollMarginLeft)||0}})(n);let pe=ie-G,Se=l==="center"?ne+q/2-de+oe:l==="end"?te+oe:ne-de;const we=[];for(let Ce=0;Ce<B.length;Ce++){const De=B[Ce],{height:xe,width:dt,top:vt,right:rt,bottom:tt,left:Te}=De.getBoundingClientRect();if(ie>=0&&ne>=0&&V<=F&&te<=P&&(De===x&&!zb(De)||ie>=vt&&V<=tt&&ne>=Te&&te<=rt))return we;const je=getComputedStyle(De),$e=parseInt(je.borderLeftWidth,10),yt=parseInt(je.borderTopWidth,10),Kt=parseInt(je.borderRightWidth,10),at=parseInt(je.borderBottomWidth,10);let Rt=0,Et=0;const Fe="offsetWidth"in De?De.offsetWidth-De.clientWidth-$e-Kt:0,Pe="offsetHeight"in De?De.offsetHeight-De.clientHeight-yt-at:0,Ee="offsetWidth"in De?De.offsetWidth===0?0:dt/De.offsetWidth:0,nt="offsetHeight"in De?De.offsetHeight===0?0:xe/De.offsetHeight:0;if(x===De)Rt=Nb(W,W+F,F,yt,at,W+pe,W+pe+H,H),Et=l==="start"?Se:l==="center"?Se-P/2:l==="end"?Se-P:Nb(N,N+P,P,$e,Kt,N+Se,N+Se+q,q),Rt=Math.max(0,Rt+W),Et=Math.max(0,Et+N);else{Rt=Nb(vt,tt,xe,yt,at+Pe,pe,pe+H,H),Et=l==="start"?Se-Te-$e:l==="center"?Se-(Te+dt/2)+Fe/2:l==="end"?Se-rt+Kt+Fe:Nb(Te,rt,dt,$e,Kt+Fe,Se,Se+q,q);const{scrollLeft:Ct,scrollTop:ut}=De;Rt=nt===0?0:Math.max(0,Math.min(ut+Rt/nt,De.scrollHeight-xe/nt+Pe)),Et=Ee===0?0:Math.max(0,Math.min(Ct+Et/Ee,De.scrollWidth-dt/Ee+Fe)),pe+=ut-Rt,Se+=Ct-Et}we.push({el:De,top:Rt,left:Et})}return we};var Ny=function(){return Ny=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Woe(){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 Qoe=p3(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;f3(this,n),Nl(this,"expanded",void 0),Nl(this,"allowMultipleExpanded",void 0),Nl(this,"allowZeroExpanded",void 0),Nl(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(Loe(t.expanded),[v]):[v]})}),Nl(this,"isItemDisabled",function(v){var x=t.isItemExpanded(v),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),Nl(this,"isItemExpanded",function(v){return t.expanded.indexOf(v)!==-1}),Nl(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}}),Nl(this,"getHeadingAttributes",function(){return{role:"heading"}}),Nl(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}}),Nl(this,"getPanelId",function(v){return"accordion__panel-".concat(v)}),Nl(this,"getButtonId",function(v){return"accordion__heading-".concat(v)}),Nl(this,"augment",function(v){return new n(uB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},v))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),PN=ir.createContext(null),RN=function(n){hI(t,n);var e=dI(t);function t(){var r;f3(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)),Nl(pp(r),"state",new Qoe({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Nl(pp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Nl(pp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Nl(pp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Nl(pp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),Nl(pp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Nl(pp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return p3(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return ir.createElement(PN.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}(ir.PureComponent);Nl(RN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var DN=function(n){hI(t,n);var e=dI(t);function t(){var r;f3(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)),Nl(pp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return p3(t,[{key:"render",value:function(){return ir.createElement(PN.Consumer,null,this.renderChildren)}}]),t}(ir.PureComponent),Yoe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],qoe=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=m3(e,Yoe);return ir.createElement(RN,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},ir.createElement("div",pm({"data-accordion-component":"Accordion",className:r},f)))},dB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(dB||(dB={}));var KN=dB,FM=0;function $oe(){var n=FM;return FM=FM+1,"raa-".concat(n)}var Voe=ir.useId||$oe,Hoe=/[\u0009\u000a\u000c\u000d\u0020]/g;function HC(n){return n===""||Hoe.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var FN=ir.createContext(null),Zoe=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),F=v.getButtonAttributes(r,s);return ir.createElement(FN.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:k,headingAttributes:P,buttonAttributes:F}},t)};return ir.createElement(DN,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.”
`,zN=function(n){hI(t,n);var e=dI(t);function t(){var r;f3(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)),Nl(pp(r),"ref",void 0),Nl(pp(r),"setRef",function(o){r.ref=o}),r}return p3(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return ir.createElement("div",pm({"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(lse)}}]),t}(ir.PureComponent);Nl(zN,"defaultProps",ase);var NN=function(e){return ir.createElement(g3,null,function(t){var r=t.headingAttributes;return e.id&&HC(e.id),ir.createElement(zN,pm({},e,r))})};NN.displayName=KN.AccordionItemHeading;var Ase=["className","region","id"],use=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=m3(e,Ase),o=function(v){var x=v.panelAttributes;s&&HC(s);var B=uB(uB({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return ir.createElement("div",pm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return ir.createElement(g3,null,o)},u2={exports:{}},cse=u2.exports,FT;function v3(){return FT||(FT=1,function(n,e){(function(t,r){n.exports=r()})(cse,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],F=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),H=/PhantomJS/.test(t),q=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),ie=/Android/.test(t),te=q||ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=q||/Mac/.test(r),ne=/\bCrOS\b/.test(t),G=/win/i.test(r),oe=F&&t.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(F=!1,x=!0);var de=V&&(B||F&&(oe==null||oe<12.11)),pe=i||f&&v>=9;function Se(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var we=function(u,g){var E=u.className,S=Se(g).exec(E);if(S){var D=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(D?S[1]+D:"")}};function Ce(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function De(u,g){return Ce(u).appendChild(g)}function xe(u,g,E,S){var D=document.createElement(u);if(E&&(D.className=E),S&&(D.style.cssText=S),typeof g=="string")D.appendChild(document.createTextNode(g));else if(g)for(var Z=0;Z<g.length;++Z)D.appendChild(g[Z]);return D}function dt(u,g,E,S){var D=xe(u,g,E,S);return D.setAttribute("role","presentation"),D}var vt;document.createRange?vt=function(u,g,E,S){var D=document.createRange();return D.setEnd(S||u,E),D.setStart(u,g),D}:vt=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 rt(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 tt(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 Te(u,g){var E=u.className;Se(g).test(E)||(u.className+=(E?" ":"")+g)}function je(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!Se(E[S]).test(g)&&(g+=" "+E[S]);return g}var $e=function(u){u.select()};q?$e=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&($e=function(u){try{u.select()}catch{}});function yt(u){return u.display.wrapper.ownerDocument}function Kt(u){return at(u.display.wrapper)}function at(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Rt(u){return yt(u).defaultView}function Et(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function Fe(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 Pe(u,g,E,S,D){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var Z=S||0,ce=D||0;;){var be=u.indexOf(" ",Z);if(be<0||be>=g)return ce+(g-Z);ce+=be-Z,ce+=E-ce%E,Z=be+1}}var Ee=function(){this.id=null,this.f=null,this.time=0,this.handler=Et(this.onTimeout,this)};Ee.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Ee.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 nt(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 D=u.indexOf(`
`,g);D==-1&&(D=u.length);var Z=u.slice(g,u.charAt(D-1)=="\r"?D-1:D),ce=Z.indexOf("\r");ce!=-1?(E.push(Z.slice(0,ce)),g+=ce+1):(E.push(Z),g=D+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Kr=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},ci=function(){var u=xe("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Ri=null;function vi(u){if(Ri!=null)return Ri;var g=De(u,xe("span","x")),E=g.getBoundingClientRect(),S=vt(g,0,1).getBoundingClientRect();return Ri=Math.abs(E.left-S.left)>1}var us={},$r={};function bs(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),us[u]=g}function Ua(u,g){$r[u]=g}function fa(u){if(typeof u=="string"&&$r.hasOwnProperty(u))u=$r[u];else if(u&&typeof u.name=="string"&&$r.hasOwnProperty(u.name)){var g=$r[u.name];typeof g=="string"&&(g={name:g}),u=fr(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return fa("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return fa("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function Go(u,g){g=fa(g);var E=us[g.name];if(!E)return Go(u,"text/plain");var S=E(u,g);if(Ns.hasOwnProperty(g.name)){var D=Ns[g.name];for(var Z in D)D.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=D[Z])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ce in g.modeProps)S[ce]=g.modeProps[ce];return S}var Ns={};function dl(u,g){var E=Ns.hasOwnProperty(u)?Ns[u]:Ns[u]={};Fe(g,E)}function hi(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var D=g[S];D instanceof Array&&(D=D.concat([])),E[S]=D}return E}function sa(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 xo(u,g,E){return u.startState?u.startState(g,E):!0}var Ao=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};Ao.prototype.eol=function(){return this.pos>=this.string.length},Ao.prototype.sol=function(){return this.pos==this.lineStart},Ao.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ao.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ao.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},Ao.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},Ao.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Ao.prototype.skipToEnd=function(){this.pos=this.string.length},Ao.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},Ao.prototype.backUp=function(u){this.pos-=u},Ao.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)},Ao.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},Ao.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ce){return E?ce.toLowerCase():ce},D=this.string.substr(this.pos,u.length);if(S(D)==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)}},Ao.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ao.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},Ao.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},Ao.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function Or(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 D=E.children[S],Z=D.chunkSize();if(g<Z){E=D;break}g-=Z}return E.lines[g]}function Sa(u,g,E){var S=[],D=g.line;return u.iter(g.line,E.line+1,function(Z){var ce=Z.text;D==E.line&&(ce=ce.slice(0,E.ch)),D==g.line&&(ce=ce.slice(g.ch)),S.push(ce),++D}),S}function $o(u,g,E){var S=[];return u.iter(g,E,function(D){S.push(D.text)}),S}function es(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=nt(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var D=0;S.children[D]!=g;++D)E+=S.children[D].chunkSize();return E+g.first}function bt(u,g){var E=u.first;e:do{for(var S=0;S<u.child Line truncated
`?(Ln=gt.appendChild(xe("span",en[0]=="\r"?"␍":"␤","cm-invalidchar")),Ln.setAttribute("cm-text",en[0]),u.col+=1):(Ln=u.cm.options.specialCharPlaceholder(en[0]),Ln.setAttribute("cm-text",en[0]),f&&v<9?gt.appendChild(xe("span",[Ln])):gt.appendChild(Ln),u.col+=1);u.map.push(u.pos,u.pos+1,Ln),u.pos++}}if(u.trailingSpace=be.charCodeAt(g.length-1)==32,E||S||D||ze||Z||ce){var Mr=E||"";S&&(Mr+=S),D&&(Mr+=D);var mr=xe("span",[gt],Mr,Z);if(ce)for(var Rr in ce)ce.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&mr.setAttribute(Rr,ce[Rr]);return u.content.appendChild(mr)}u.content.appendChild(gt)}}function Tc(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",D=0;D<u.length;D++){var Z=u.charAt(D);Z==" "&&E&&(D==u.length-1||u.charCodeAt(D+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function ms(u,g){return function(E,S,D,Z,ce,be,ke){D=D?D+" cm-force-border":"cm-force-border";for(var ze=E.pos,gt=ze+S.length;;){for(var wt=void 0,en=0;en<g.length&&(wt=g[en],!(wt.to>ze&&wt.from<=ze));en++);if(wt.to>=gt)return u(E,S,D,Z,ce,be,ke);u(E,S.slice(0,wt.to-ze),D,Z,null,be,ke),Z=null,S=S.slice(wt.to-ze),ze=wt.to}}}function kc(u,g,E,S){var D=!S&&E.widgetNode;D&&u.map.push(u.pos,u.pos+g,D),!S&&u.cm.display.input.needsContentAttribute&&(D||(D=u.content.appendChild(document.createElement("span"))),D.setAttribute("cm-marker",E.id)),D&&(u.cm.display.input.setUneditable(D),u.content.appendChild(D)),u.pos+=g,u.trailingSpace=!1}function gd(u,g,E){var S=u.markedSpans,D=u.text,Z=0;if(!S){for(var ce=1;ce<E.length;ce+=2)g.addToken(g,D.slice(Z,Z=E[ce]),OA(E[ce+1],g.cm.options));return}for(var be=D.length,ke=0,ze=1,gt="",wt,en,qt=0,Mn,Ln,Fn,Zn,Mr;;){if(qt==ke){Mn=Ln=Fn=en="",Mr=null,Zn=null,qt=1/0;for(var mr=[],Rr=void 0,ei=0;ei<S.length;++ei){var Nr=S[ei],to=Nr.marker;if(to.type=="bookmark"&&Nr.from==ke&&to.widgetNode)mr.push(to);else if(Nr.from<=ke&&(Nr.to==null||Nr.to>ke||to.collapsed&&Nr.to==ke&&Nr.from==ke)){if(Nr.to!=null&&Nr.to!=ke&&qt>Nr.to&&(qt=Nr.to,Ln=""),to.className&&(Mn+=" "+to.className),to.css&&(en=(en?en+";":"")+to.css),to.startStyle&&Nr.from==ke&&(Fn+=" "+to.startStyle),to.endStyle&&Nr.to==qt&&(Rr||(Rr=[])).push(to.endStyle,Nr.to),to.title&&((Mr||(Mr={})).title=to.title),to.attributes)for(var po in to.attributes)(Mr||(Mr={}))[po]=to.attributes[po];to.collapsed&&(!Zn||ot(Zn.marker,to)<0)&&(Zn=Nr)}else Nr.from>ke&&qt>Nr.from&&(qt=Nr.from)}if(Rr)for(var ba=0;ba<Rr.length;ba+=2)Rr[ba+1]==qt&&(Ln+=" "+Rr[ba]);if(!Zn||Zn.from==ke)for(var Cs=0;Cs<mr.length;++Cs)kc(g,0,mr[Cs]);if(Zn&&(Zn.from||0)==ke){if(kc(g,(Zn.to==null?be+1:Zn.to)-ke,Zn.marker,Zn.from==null),Zn.to==null)return;Zn.to==ke&&(Zn=!1)}}if(ke>=be)break;for(var qs=Math.min(be,qt);;){if(gt){var $s=ke+gt.length;if(!Zn){var ra=$s>qs?gt.slice(0,qs-ke):gt;g.addToken(g,ra,wt?wt+Mn:Mn,Fn,ke+ra.length==qt?Ln:"",en,Mr)}if($s>=qs){gt=gt.slice(qs-ke),ke=qs;break}ke=$s,Fn=""}gt=D.slice(Z,Z=E[ze++]),wt=OA(E[ze++],g.cm.options)}}}function Pp(u,g,E){this.line=g,this.rest=qi(g),this.size=this.rest?qe(Hn(this.rest))-E+1:1,this.node=this.text=null,this.hidden=pi(u,g)}function $h(u,g,E){for(var S=[],D,Z=g;Z<E;Z=D){var ce=new Pp(u.doc,Or(u.doc,Z),Z);D=Z+ce.size,S.push(ce)}return S}var Vh=null;function yd(u){Vh?Vh.ops.push(u):u.ownsGroup=Vh={ops:[u],delayedCallbacks:[]}}function Hh(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 D=u.ops[S];if(D.cursorActivityHandlers)for(;D.cursorActivityCalled<D.cursorActivityHandlers.length;)D.cursorActivityHandlers[D.cursorActivityCalled++].call(null,D.cm)}}while(E<g.length)}function vd(u,g){var E=u.ownsGroup;if(E)try{Hh(E)}finally{Vh=null,g(E)}}var Gu=null;function Bs(u,g){var E=Ye(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),D;Vh?D=Vh.delayedCallbacks:Gu?D=Gu:(D=Gu=[],setTimeout(yu,0));for(var Z=function(be){D.push(function(){return E[be].apply(null,S)})},ce=0;ce<E.length;++ce)Z(ce)}}function yu(){var u=Gu;Gu=null;for(var g=0;g<u.length;++g)u[g]()}function cf(u,g,E,S){for(var D=0;D<g.changes.length;D++){var Z=g.changes[D];Z=="text"?Rp(u,g):Z=="gutter"?Cd(u,g,E,S):Z=="class"?Zh(u,g):Z=="widget"&&Rc(u,g,S)}g.changes=null}function rh(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 bh(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=rh(g);g.background=S.insertBefore(xe("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function Pc(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):uc(u,g)}function Rp(u,g){var E=g.text.className,S=Pc(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: "+(ei??ke-mr)+`px;
height: `+(Nr-Rr)+"px"))}function wt(mr,Rr,ei){var Nr=Or(D,mr),to=Nr.text.length,po,ba;function Cs(ra,GA){return kn(u,fn(mr,ra),"div",Nr,GA)}function qs(ra,GA,Va){var Ks=ts(u,Nr,null,ra),hs=GA=="ltr"==(Va=="after")?"left":"right",Mi=Va=="after"?Ks.begin:Ks.end-(/\s/.test(Nr.text.charAt(Ks.end-1))?2:1);return Cs(Mi,hs)[hs]}var $s=ge(Nr,D.direction);return tn($s,Rr||0,ei??to,function(ra,GA,Va,Ks){var hs=Va=="ltr",Mi=Cs(ra,hs?"left":"right"),Yo=Cs(GA-1,hs?"right":"left"),Vs=Rr==null&&ra==0,Aa=ei==null&&GA==to,Ms=Ks==0,Au=!$s||Ks==$s.length-1;if(Yo.top-Mi.top<=3){var Lo=(ze?Vs:Aa)&&Ms,Ld=(ze?Aa:Vs)&&Au,jA=Lo?be:(hs?Mi:Yo).left,qc=Ld?ke:(hs?Yo:Mi).right;gt(jA,Mi.top,qc-jA,Mi.bottom)}else{var xc,ll,Al,wf;hs?(xc=ze&&Vs&&Ms?be:Mi.left,ll=ze?ke:qs(ra,Va,"before"),Al=ze?be:qs(GA,Va,"after"),wf=ze&&Aa&&Au?ke:Yo.right):(xc=ze?qs(ra,Va,"before"):be,ll=!ze&&Vs&&Ms?ke:Mi.right,Al=!ze&&Aa&&Au?be:Yo.left,wf=ze?qs(GA,Va,"after"):ke),gt(xc,Mi.top,ll-xc,Mi.bottom),Mi.bottom<Yo.top&&gt(be,Mi.bottom,null,Yo.top),gt(Al,Yo.top,wf-Al,Yo.bottom)}(!po||dc(Mi,po)<0)&&(po=Mi),dc(Yo,po)<0&&(po=Yo),(!ba||dc(Mi,ba)<0)&&(ba=Mi),dc(Yo,ba)<0&&(ba=Yo)}),{start:po,end:ba}}var en=g.from(),qt=g.to();if(en.line==qt.line)wt(en.line,en.ch,qt.ch);else{var Mn=Or(D,en.line),Ln=Or(D,qt.line),Fn=Dr(Mn)==Dr(Ln),Zn=wt(en.line,en.ch,Fn?Mn.text.length+1:null).end,Mr=wt(qt.line,Fn?0:null,qt.ch).start;Fn&&(Zn.top<Mr.top-2?(gt(Zn.right,Zn.top,null,Zn.bottom),gt(be,Mr.top,Mr.left,Mr.bottom)):gt(Zn.right,Zn.top,Mr.left-Zn.right,Zn.bottom)),Zn.bottom<Mr.top&&gt(be,Zn.bottom,null,Mr.top)}E.appendChild(Z)}function cA(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()||cs(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function sh(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Ed(u))}function Sh(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&cs(u))},100)}function Ed(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(At(u,"focus",u,g),u.state.focused=!0,Te(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()),cA(u))}function cs(u,g){u.state.delayingBlurEvent||(u.state.focused&&(At(u,"blur",u,g),u.state.focused=!1,we(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function zc(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),D=g.lineDiv.getBoundingClientRect().top,Z=0,ce=0;ce<g.view.length;ce++){var be=g.view[ce],ke=u.options.lineWrapping,ze=void 0,gt=0;if(!be.hidden){if(D+=be.line.height,f&&v<8){var wt=be.node.offsetTop+be.node.offsetHeight;ze=wt-E,E=wt}else{var en=be.node.getBoundingClientRect();ze=en.bottom-en.top,!ke&&be.text.firstChild&&(gt=be.text.firstChild.getBoundingClientRect().right-en.left-1)}var qt=be.line.height-ze;if((qt>.005||qt<-.005)&&(D<S&&(Z-=qt),es(be.line,ze),bu(be.line),be.rest))for(var Mn=0;Mn<be.rest.length;Mn++)bu(be.rest[Mn]);if(gt>u.display.sizerWidth){var Ln=Math.ceil(gt/ya(u.display));Ln>u.display.maxLineLength&&(u.display.maxLineLength=Ln,u.display.maxLine=be.line,u.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(g.scroller.scrollTop+=Z)}function bu(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 PA(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-xh(u));var D=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,Z=bt(g,S),ce=bt(g,D);if(E&&E.ensure){var be=E.ensure.from.line,ke=E.ensure.to.line;be<Z?(Z=be,ce=bt(g,Fi(Or(g,be))+u.wrapper.clientHeight)):Math.min(ke,g.lastLine())>=ce&&(Z=bt(g,Fi(Or(g,ke))-u.wrapper.clientHeight),ce=ke)}return{from:Z,to:Math.max(ce,Z+1)}}function Jh(u,g){if(!ct(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),D=null,Z=E.wrapper.ownerDocument;if(g.top+S.top<0?D=!0:g.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(D=!1),D!=null&&!H){var ce=xe("div","​",null,`position: absolute;
top: `+(g.top-E.viewOffset-xh(u.display))+`px;
height: `+(g.bottom-g.top+pl(u)+E.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ce),ce.scrollIntoView(D),u.display.lineSpace.removeChild(ce)}}}function ed(u,g,E,S){S==null&&(S=0);var D;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?fn(g.line,g.ch+1,"before"):g,g=g.ch?fn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var Z=0;Z<5;Z++){var ce=!1,be=hn(u,g),ke=!E||E==g?be:hn(u,E);D={left:Math.min(be.left,ke.left),top:Math.min(be.top,ke.top)-S,right:Math.max(be.left,ke.left),bottom:Math.max(be.bottom,ke.bottom)+S};var ze=fc(u,D),gt=u.doc.scrollTop,wt=u.doc.scrollLeft;if(ze.scrollTop!=null&&(Yu(u,ze.scrollTop),Math.abs(u.doc.scrollTop-gt)>1&&(ce=!0)),ze.scrollLeft!=null&&(RA(u,ze.scrollLeft),Math.abs(u.doc.scrollLeft-wt)>1&&(ce=!0)),!ce)break}return D}function ah(u,g){var E=fc(u,g);E.scrollTop!=null&&Yu(u,E.scrollTop),E.scrollLeft!=null&&RA(u,E.scrollLeft)}function fc(u,g){var E=u.display,S=Wa(u.display);g.top<0&&(g.top=0);var D=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,Z=Kc(u),ce={};g.bottom-g.top>Z&&(g.bottom=g.top+Z);var be=u.doc.height+_d(E),ke=g.top<S,ze=g.bottom>be-S;if(g.top<D)ce.scrollTop=ke?0:g.top;else if(g.bottom>D+Z){var gt=Math.min(g.top,(ze?be:g.bottom)-Z);gt!=D&&(ce.scrollTop=gt)}var wt=u.options.fixedGutter?0:E.gutters.offsetWidth,en=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-wt,qt=Dc(u)-E.gutters.offsetWidth,Mn=g.right-g.left>qt;return Mn&&(g.right=g.left+qt),g.left<10?ce.scrollLeft=0:g.left<en?ce.scrollLeft=Math.max(0,g.left+wt-(Mn?0:10)):g.right>qt+en-3&&(ce.scrollLeft=g.right+(Mn?0:10)-qt),ce}function xu(u,g){g!=null&&(lh(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function gs(u){lh(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function va(u,g,E){(g!=null||E!=null)&&lh(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Bd(u,g){lh(u),u.curOp.scrollToPos=g}function lh(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Ur(u,g.from),S=Ur(u,g.to);Eh(u,E,S,g.margin)}}function Eh(u,g,E,S){var D=fc(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});va(u,D.scrollLeft,D.scrollTop)}function Yu(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||vl(u,{top:g}),Ah(u,g,!0),i&&vl(u),Ws(u,100))}function Ah(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 RA(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,iu(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function pc(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+_d(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+pl(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var El=function(u,g,E){this.cm=E;var S=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),D=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=D.tabIndex=-1,u(S),u(D),Ge(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),Ge(D,"scroll",function(){D.clientWidth&&g(D.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};El.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 D=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+D)+"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}},El.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},El.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi Line truncated
`},setDirection:Os(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&vc(this.cm))})}),Pt.prototype.eachLine=Pt.prototype.iter;var zt=0;function sn(u){var g=this;if(ln(g),!(ct(g,u)||ju(g.display,u))){rn(u),f&&(zt=+new Date);var E=kA(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var D=S.length,Z=Array(D),ce=0,be=function(){++ce==D&&Do(g,function(){E=Ci(g.doc,E);var qt={from:E,to:E,text:g.doc.splitLines(Z.filter(function(Mn){return Mn!=null}).join(g.doc.lineSeparator())),origin:"paste"};jc(g.doc,qt),Ou(g.doc,$a(Ci(g.doc,E),Ci(g.doc,ta(qt))))})()},ke=function(qt,Mn){if(g.options.allowDropFileTypes&&nt(g.options.allowDropFileTypes,qt.type)==-1){be();return}var Ln=new FileReader;Ln.onerror=function(){return be()},Ln.onload=function(){var Fn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Fn)){be();return}Z[Mn]=Fn,be()},Ln.readAsText(qt)},ze=0;ze<S.length;ze++)ke(S[ze],ze);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 gt=u.dataTransfer.getData("Text");if(gt){var wt;if(g.state.draggingText&&!g.state.draggingText.copy&&(wt=g.listSelections()),Ta(g.doc,$a(E,E)),wt)for(var en=0;en<wt.length;++en)C(g.doc,"",wt[en].anchor,wt[en].head,"drag");g.replaceSelection(gt,"around","paste"),g.display.input.focus()}}catch{}}}}function xn(u,g){if(f&&(!u.state.draggingText||+new Date-zt<100)){pr(g);return}if(!(ct(u,g)||ju(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==",F&&(E.width=E.height=1,u.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),F&&E.parentNode.removeChild(E)}}function Xt(u,g){var E=kA(u,g);if(E){var S=document.createDocumentFragment();Uc(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)),De(u.display.dragCursor,S)}}function ln(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function _n(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var D=g[S].CodeMirror;D&&E.push(D)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)u(E[Z])})}}var cr=!1;function dr(){cr||(Dn(),cr=!0)}function Dn(){var u;Ge(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,_n(Ir)},100))}),Ge(window,"blur",function(){return _n(cs)})}function Ir(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Zr={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"},Ji=0;Ji<10;Ji++)Zr[Ji+48]=Zr[Ji+96]=String(Ji);for(var ns=65;ns<=90;ns++)Zr[ns]=String.fromCharCode(ns);for(var Fo=1;Fo<=12;Fo++)Zr[Fo+111]=Zr[Fo+63235]="F"+Fo;var Wo={};Wo.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"},Wo.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"},Wo.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 Xl(u,g){var E=Or(u.doc,g),S=Dr(E);return S!=E&&(g=qe(S)),Iu(!0,u,S,g,1)}function gA(u,g){var E=Or(u.doc,g),S=ri(E);return S!=E&&(g=qe(S)),Iu(!0,u,E,g,-1)}function tc(u,g){var E=Xl(u,g.line),S=Or(u.doc,E.line),D=ge(S,u.doc.direction);if(!D||D[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),ce=g.line==E.line&&g.ch<=Z&&g.ch;return fn(E.line,ce?0:Z,E.sticky)}return E}function Jl(u,g,E){if(typeof g=="string"&&(g=lu[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,D=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),D=g(u)!=ut}finally{u.display.shift=S,u.state.suppressEdits=!1}return D}function Wc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var D=Wi(g,u.state.keyMaps[S],E,u);if(D)return D}return u.options.extraKeys&&Wi(g,u.options.extraKeys,E,u)||Wi(g,u.options.keyMap,E,u)}var Pa=new Ee;function Ys(u,g,E,S){var D=u.state.keySeq;if(D){if(la(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:Pa.set(50,function(){u.state.keySeq==D&&(u.state.keySeq=null,u.display.input.reset())}),Rl(u,D+" "+g,E,S))return!0}return Rl(u,g,E,S)}function Rl(u,g,E,S){var D=Wc(u,g,S);return D=="multi"&&(u.state.keySeq=g),D=="handled"&&Bs(u,"keyHandled",u,g,E),(D=="handled"||D=="multi")&&(rn(E),cA(u)),!!D}function vs(u,g){var E=_a(g,!0);return E?g.shiftKey&&!u.state.keySeq?Ys(u,"Shift-"+E,g,function(S){return Jl(u,S,!0)})||Ys(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Jl(u,S)}):Ys(u,E,g,function(S){return Jl(u,S)}):!1}function _f(u,g,E){return Ys(u,"'"+E+"'",g,function(S){return Jl(u,S,!0)})}var Od=null;function Id(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=tt(Kt(g)),!ct(g,u))){f&&v<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=vs(g,u);F&&(Od=S?E:null,!S&&E==88&&!ci&&(V?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!V&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&yA(g)}}function yA(u){var g=u.display.lineDiv;Te(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(we(g,"CodeMirror-crosshair"),Re(document,"keyup",E),Re(document,"mouseover",E))}Ge(document,"keyup",E),Ge(document,"mouseover",E)}function UA(u){u.keyCode==16&&(this.doc.sel.shift=!1),ct(this,u)}function Qc(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(ju(g.display,u)||ct(g,u)||u.ctrlKey&&!u.altKey||V&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(F&&E==Od){Od=null,rn(u);return}if(!(F&&(!u.which||u.which<10)&&vs(g,u))){var D=String.fromCharCode(S??E);D!="\b"&&(_f(g,u,D)||g.display.input.onKeyPress(u))}}}var Tu=400,vA=function(u,g,E){this.time=u,this.pos=g,this.button=E};vA.prototype.compare=function(u,g,E){return this.time+Tu>u&&vr(g,this.pos)==0&&E==this.button};var Ra,na;function kh(u,g){var E=+new Date;return na&&na.compare(E,u,g)?(Ra=na=null,"triple"):Ra&&Ra.compare(E,u,g)?(na=new vA(E,u,g),Ra=null,"double"):(Ra=new vA(E,u,g),na=null,"single")}function ku(u){var g=this,E=g.display;if(!(ct(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,ju(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Ph(g,u)){var S=kA(g,u),D=sr(u),Z=S?kh(S,D):"single";Rt(g).focus(),D==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Td(g,D,S,Z,u))&&(D==1?S?rd(g,S,Z,u):kr(u)==E.scroller&&rn(u):D==2?(S&&ii(g.doc,S),setTimeout(function(){return E.input.focus()},20)):D==3&&(pe?g.display.input.onContextMenu(u):Sh(g)))}}}function Td(u,g,E,S,D){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(g==1?"Left":g==2?"Middle":"Right")+Z,Ys(u,ka(Z,D),D,function(ce){if(typeof ce=="string"&&(ce=lu[ce]),!ce)return!1;var be=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),be=ce(u,E)!=ut}finally{u.state.suppressEdits=!1}return be})}function nd(u,g,E){var S=u.getOption("configureMouse"),D=S?S(u,g,E):{};if(D.unit==null){var Z=ne?E.shiftKey&&E.metaKey:E.altKey;D.unit=Z?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(D.extend==null||u.doc.extend)&&(D.extend=u.doc.extend||E.shiftKey),D.addNew==null&&(D.addNew=V?E.metaKey:E.ctrlKey),D.moveOnDrag==null&&(D.moveOnDrag=!(V?E.altKey:E.ctrlKey)),D}function rd(u,g,E,S){f?setTimeout(Et(sh,u),0):u.curOp.focus=tt(Kt(u));var D=nd(u,E,S),Z=u.doc.sel,ce;u.options.dragDrop&&on&&!u.isReadOnly()&&E=="single"&&(ce=Z.contains(g))>-1&&(vr((ce=Z.ranges[ce]).from(),g)<0||g.xRel>0)&&(vr(ce.to(),g)>0||g.xRel<0)?Fp(u,S,g,D):fh(u,S,g,D)}function Fp(u,g,E,S){var D=u.display,Z=!1,ce=Do(u,function(ze){x&&(D.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Sh(u)),Re(D.wrapper.ownerDocument,"mouseup",ce),Re(D.wrapper.ownerDocument,"mousemove",be),Re(D.scroller,"dragstart",ke),Re(D.scro Line truncated
`)==g){if(S.ranges.length%zA.text.length==0){ze=[];for(var gt=0;gt<zA.text.length;gt++)ze.push(Z.splitLines(zA.text[gt]))}}else ke.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(ze=Bn(ke,function(Zn){return[Zn]}));for(var wt=u.curOp.updateInput,en=S.ranges.length-1;en>=0;en--){var qt=S.ranges[en],Mn=qt.from(),Ln=qt.to();qt.empty()&&(E&&E>0?Mn=fn(Mn.line,Mn.ch-E):u.state.overwrite&&!be?Ln=fn(Ln.line,Math.min(Or(Z,Ln.line).text.length,Ln.ch+Hn(ke).length)):be&&zA&&zA.lineWise&&zA.text.join(`
`)==ke.join(`
`)&&(Mn=Ln=fn(Mn.line,0)));var Fn={from:Mn,to:Ln,text:ze?ze[en%ze.length]:ke,origin:D||(be?"paste":u.state.cutIncoming>ce?"cut":"+input")};jc(u.doc,Fn),Bs(u,"inputRead",u,Fn)}g&&!be&&xf(u,g),gs(u),u.curOp.updateInput<2&&(u.curOp.updateInput=wt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Yc(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 Zf(g,E,0,null,"paste")}),!0}function xf(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var D=E.ranges[S];if(!(D.head.ch>100||S&&E.ranges[S-1].head.line==D.head.line)){var Z=u.getModeAt(D.head),ce=!1;if(Z.electricChars){for(var be=0;be<Z.electricChars.length;be++)if(g.indexOf(Z.electricChars.charAt(be))>-1){ce=ph(u,D.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Or(u.doc,D.head.line).text.slice(0,D.head.ch))&&(ce=ph(u,D.head.line,"smart"));ce&&Bs(u,"electricInput",u,D.head.line)}}}function Dd(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var D=u.doc.sel.ranges[S].head.line,Z={anchor:fn(D,0),head:fn(D+1,0)};E.push(Z),g.push(u.getRange(Z.anchor,Z.head))}return{text:g,ranges:E}}function Kd(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function od(){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"),q&&(u.style.border="1px solid black"),g}function Dh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Rt(this).focus(),this.display.input.focus()},setOption:function(S,D){var Z=this.options,ce=Z[S];Z[S]==D&&S!="mode"||(Z[S]=D,g.hasOwnProperty(S)&&Do(this,g[S])(this,D,ce),At(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,D){this.state.keyMaps[D?"push":"unshift"](lo(S))},removeKeyMap:function(S){for(var D=this.state.keyMaps,Z=0;Z<D.length;++Z)if(D[Z]==S||D[Z].name==S)return D.splice(Z,1),!0},addOverlay:li(function(S,D){var Z=S.token?S:u.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");dn(this.state.overlays,{mode:Z,modeSpec:S,opaque:D&&D.opaque,priority:D&&D.priority||0},function(ce){return ce.priority}),this.state.modeGen++,Qa(this)}),removeOverlay:li(function(S){for(var D=this.state.overlays,Z=0;Z<D.length;++Z){var ce=D[Z].modeSpec;if(ce==S||typeof S=="string"&&ce.name==S){D.splice(Z,1),this.state.modeGen++,Qa(this);return}}}),indentLine:li(function(S,D,Z){typeof D!="string"&&typeof D!="number"&&(D==null?D=this.options.smartIndent?"smart":"prev":D=D?"add":"subtract"),bn(this.doc,S)&&ph(this,S,D,Z)}),indentSelection:li(function(S){for(var D=this.doc.sel.ranges,Z=-1,ce=0;ce<D.length;ce++){var be=D[ce];if(be.empty())be.head.line>Z&&(ph(this,be.head.line,S,!0),Z=be.head.line,ce==this.doc.sel.primIndex&&gs(this));else{var ke=be.from(),ze=be.to(),gt=Math.max(Z,ke.line);Z=Math.min(this.lastLine(),ze.line-(ze.ch?0:1))+1;for(var wt=gt;wt<Z;++wt)ph(this,wt,S);var en=this.doc.sel.ranges;ke.ch==0&&D.length==en.length&&en[ce].from().ch>0&&kl(this.doc,ce,new wo(ke,en[ce].to()),Lt)}}}),getTokenAt:function(S,D){return Ql(this,S,D)},getLineTokens:function(S,D){return Ql(this,fn(S),D,!0)},getTokenTypeAt:function(S){S=Ci(this.doc,S);var D=Ea(this,Or(this.doc,S.line)),Z=0,ce=(D.length-1)/2,be=S.ch,ke;if(be==0)ke=D[2];else for(;;){var ze=Z+ce>>1;if((ze?D[ze*2-1]:0)>=be)ce=ze;else if(D[ze*2+1]<be)Z=ze+1;else{ke=D[ze*2+2];break}}var gt=ke?ke.indexOf("overlay "):-1;return gt<0?ke:gt==0?null:ke.slice(0,gt-1)},getModeAt:function(S){var D=this.doc.mode;return D.innerMode?u.innerMode(D,this.getTokenAt(S).state).mode:D},getHelper:function(S,D){return this.getHelpers(S,D)[0]},getHelpers:function(S,D){var Z=[];if(!E.hasOwnProperty(D))return Z;var ce=E[D],be=this.getModeAt(S);if(typeof be[D]=="string")ce[be[D]]&&Z.push(ce[be[D]]);else if(be[D])for(var ke=0;ke<be[D].length;ke++){var ze=ce[be[D][ke]];ze&&Z.push(ze)}else be.helperType&&ce[be.helperType]?Z.push(ce[be.helperType]):ce[be.name]&&Z.push(ce[be.name]);for(var gt=0;gt<ce._global.length;gt++){var wt=ce._global[gt];wt.pred(be,this)&&nt(Z,wt.val)==-1&&Z.push(wt.val)}return Z},getStateAfter:function(S,D){var Z=this.doc;return S=oA(Z,S??Z.first+Z.size-1),xi(this,S+1,D).state},cursorCoords:function(S,D){var Z,ce=this.doc.sel.primary();return S==null?Z=ce.head:typeof S=="object"?Z=Ci(this.doc,S):Z=S?ce.from():ce.to(),hn(this,Z,D||"page")},charCoords:function(S,D){return kn(this,Ci(this.doc,S),D||"page")},coordsChar:function(S,D){return S=nn(this,S,D||"page"),jo(this,S.left,S.top)},lineAtHeight:function(S,D){return S=nn(this,{top:S,left:0},D||"page").top,bt( Line truncated
`,Fn=We(Ln,qt)?"w":en&&Ln==`
`?"n":!en||/\s/.test(Ln)?null:"p";if(en&&!Mn&&!Fn&&(Fn="s"),wt&&wt!=Fn){E<0&&(E=1,gt(),g.sticky="after");break}if(Fn&&(wt=Fn),E>0&&!gt(!Mn))break}var Zn=ec(u,g,Z,ce,!0);return Yi(Z,Zn)&&(Zn.hitSide=!0),Zn}function Fd(u,g,E,S){var D=u.doc,Z=g.left,ce;if(S=="page"){var be=Math.min(u.display.wrapper.clientHeight,Rt(u).innerHeight||D(u).documentElement.clientHeight),ke=Math.max(be-.5*Wa(u.display),3);ce=(E>0?g.bottom:g.top)+E*ke}else S=="line"&&(ce=E>0?g.bottom+3:g.top-3);for(var ze;ze=jo(u,Z,ce),!!ze.outside;){if(E<0?ce<=0:ce>=D.height){ze.hitSide=!0;break}ce+=E*5}return ze}var Qo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ee,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Qo.prototype.init=function(u){var g=this,E=this,S=E.cm,D=E.div=u.lineDiv;D.contentEditable=!0,Kd(D,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(be){for(var ke=be.target;ke;ke=ke.parentNode){if(ke==D)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Ge(D,"paste",function(be){!Z(be)||ct(S,be)||Yc(be,S)||v<=11&&setTimeout(Do(S,function(){return g.updateFromDOM()}),20)}),Ge(D,"compositionstart",function(be){g.composing={data:be.data,done:!1}}),Ge(D,"compositionupdate",function(be){g.composing||(g.composing={data:be.data,done:!1})}),Ge(D,"compositionend",function(be){g.composing&&(be.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),Ge(D,"touchstart",function(){return E.forceCompositionEnd()}),Ge(D,"input",function(){g.composing||g.readFromDOMSoon()});function ce(be){if(!(!Z(be)||ct(S,be))){if(S.somethingSelected())Rd({lineWise:!1,text:S.getSelections()}),be.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var ke=Dd(S);Rd({lineWise:!0,text:ke.text}),be.type=="cut"&&S.operation(function(){S.setSelections(ke.ranges,0,Lt),S.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var ze=zA.text.join(`
`);if(be.clipboardData.setData("Text",ze),be.clipboardData.getData("Text")==ze){be.preventDefault();return}}var gt=od(),wt=gt.firstChild;Kd(wt),S.display.lineSpace.insertBefore(gt,S.display.lineSpace.firstChild),wt.value=zA.text.join(`
`);var en=tt(at(D));$e(wt),setTimeout(function(){S.display.lineSpace.removeChild(gt),en.focus(),en==D&&E.showPrimarySelection()},50)}}Ge(D,"copy",ce),Ge(D,"cut",ce)},Qo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Qo.prototype.prepareSelection=function(){var u=Xi(this.cm,!1);return u.focus=tt(at(this.div))==this.div,u},Qo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Qo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Qo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),D=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||D.line<g.display.viewFrom){u.removeAllRanges();return}var Z=Cl(g,u.anchorNode,u.anchorOffset),ce=Cl(g,u.focusNode,u.focusOffset);if(!(Z&&!Z.bad&&ce&&!ce.bad&&vr(pa(Z,ce),S)==0&&vr(ps(Z,ce),D)==0)){var be=g.display.view,ke=S.line>=g.display.viewFrom&&nc(g,S)||{node:be[0].measure.map[2],offset:0},ze=D.line<g.display.viewTo&&nc(g,D);if(!ze){var gt=be[be.length-1].measure,wt=gt.maps?gt.maps[gt.maps.length-1]:gt.map;ze={node:wt[wt.length-1],offset:wt[wt.length-2]-wt[wt.length-3]}}if(!ke||!ze){u.removeAllRanges();return}var en=u.rangeCount&&u.getRangeAt(0),qt;try{qt=vt(ke.node,ke.offset,ze.offset,ze.node)}catch{}qt&&(!i&&g.state.focused?(u.collapse(ke.node,ke.offset),qt.collapsed||(u.removeAllRanges(),u.addRange(qt))):(u.removeAllRanges(),u.addRange(qt)),en&&u.anchorNode==null?u.addRange(en):i&&this.startGracePeriod()),this.rememberSelection()}},Qo.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)},Qo.prototype.showMultipleSelections=function(u){De(this.cm.display.cursorDiv,u.cursors),De(this.cm.display.selectionDiv,u.selection)},Qo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Qo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return rt(this.div,g)},Qo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||tt(at(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Qo.prototype.blur=function(){this.div.blur()},Qo.prototype.getField=function(){return this.div},Qo.prototype.supportsTouch=function(){return!0},Qo.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)},Qo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Qo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(ie&&k&&this.cm.display.gutterSpecs.length&&NA(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=Cl(g,u.anchorNode,u.anchorOffset),S=Cl(g,u.focusNode,u.focusOffset);E&&S&&Js(g,function(){as(g.doc,$a(E,S),Lt),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Qo.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(),D=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=fn(S.line-1,Or(u.doc,S.line-1).length)),D.ch==Or(u.doc,D.line).text.length&&D.line<u.lastLine()&&(D=fn(D.line+1,0)),S.line<g.viewFrom||D.line>g.viewTo-1)return!1;var Z,ce,be;S.line==g.viewFrom||(Z=nu(u,S.line))==0?(ce=qe(g.view[0].line),be=g.view[0].node):(ce=qe(g.view[Z].line),be=g.view[Z-1].node.nextSibling);var ke=nu(u,D.line),ze,gt;if(ke==g.view.length-1?(ze=g.viewTo-1,gt=g.lineDiv.lastChild):(ze=qe(g.view[ke+1].line)-1,gt=g.view[ke+1].node.previousSibling),!be)return!1;for(var wt=u.doc.splitLines(zp(u,be,gt,ce,ze)),en=Sa(u.doc,fn(ce,0),fn(ze,Or(u.doc,ze).text.length));wt.length>1&&en.length>1;)if(Hn(wt)==Hn(en))wt.pop(),en.pop(),ze--;else if(wt[0]==en[0])wt.shift(),en.shift(),ce++;else break;for(var qt=0,Mn=0,Ln=wt[0],Fn=en[0],Zn=Math.min(Ln.length,Fn.length);qt<Zn&&Ln.charCodeAt(qt)==Fn.charCodeAt(qt);)++qt;for(var Mr=Hn(wt),mr=Hn(en),Rr=Math.min(Mr.length-(wt.length==1?qt:0),mr.length-(en. Line truncated
`),$e(D))}else return;ce.type=="cut"&&(S.state.cutIncoming=+new Date)}}Ge(D,"cut",Z),Ge(D,"copy",Z),Ge(u.scroller,"paste",function(ce){if(!(ju(u,ce)||ct(S,ce))){if(!D.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var be=new Event("paste");be.clipboardData=ce.clipboardData,D.dispatchEvent(be)}}),Ge(u.lineSpace,"selectstart",function(ce){ju(u,ce)||rn(ce)}),Ge(D,"compositionstart",function(){var ce=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ce,range:S.markText(ce,S.getCursor("to"),{className:"CodeMirror-composing"})}}),Ge(D,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Da.prototype.createField=function(u){this.wrapper=od(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;Kd(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Da.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Xi(u);if(u.options.moveInputWithCursor){var D=hn(u,E.sel.primary().head,"div"),Z=g.wrapper.getBoundingClientRect(),ce=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,D.top+ce.top-Z.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,D.left+ce.left-Z.left))}return S},Da.prototype.showSelection=function(u){var g=this.cm,E=g.display;De(E.cursorDiv,u.cursors),De(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Da.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&&$e(this.textarea),f&&v>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",f&&v>=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||tt(at(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 u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Da.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)},Da.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Kr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var D=E.value;if(D==S&&!g.somethingSelected())return!1;if(f&&v>=9&&this.hasSelection===D||V&&/[\uf700-\uf7ff]/.test(D))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var Z=D.charCodeAt(0);if(Z==8203&&!S&&(S="​"),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,be=Math.min(S.length,D.length);ce<be&&S.charCodeAt(ce)==D.charCodeAt(ce);)++ce;return Js(g,function(){Zf(g,D.slice(ce),S.length-ce,null,u.composing?"*compose":null),D.length>1e3||D.indexOf(`
`)>-1?E.value=u.prevInput="":u.prevInput=D,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Da.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Da.prototype.onKeyPress=function(){f&&v>=9&&(this.hasSelection=null),this.fastPoll()},Da.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,D=g.textarea;g.contextMenuPending&&g.contextMenuPending();var Z=kA(E,u),ce=S.scroller.scrollTop;if(!Z||F)return;var be=E.options.resetSelectionOnContextMenu;be&&E.doc.sel.contains(Z)==-1&&Do(E,as)(E.doc,$a(Z),Lt);var ke=D.style.cssText,ze=g.wrapper.style.cssText,gt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",D.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(u.clientY-gt.top-5)+"px; left: "+(u.clientX-gt.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 wt;x&&(wt=D.ownerDocument.defaultView.scrollY),S.input.focus(),x&&D.ownerDocument.defaultView.scrollTo(null,wt),S.input.reset(),E.somethingSelected()||(D.value=g.prevInput=" "),g.contextMenuPending=qt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function en(){if(D.selectionStart!=null){var Ln=E.somethingSelected(),Fn="​"+(Ln?D.value:"");D.value="⇚",D.value=Fn,g.prevInput=Ln?"":"​",D.selectionStart=1,D.selectionEnd=Fn.length,S.selForContextMenu=E.doc.sel}}function qt(){if(g.contextMenuPending==qt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=ze,D.style.cssText=ke,f&&v<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ce),D.selectionStart!=null)){(!f||f&&v<9)&&en();var Ln=0,Fn=function(){S.selForContextMenu==E.doc.sel&&D.selectionStart==0&&D.selectionEnd>0&&g.prevInput=="​"?Do(E,al)(E):Ln++<10?S.detectingSelectAll=setTimeout(Fn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Fn,200)}}if(f&&v>=9&&en(),pe){pr(u);var Mn=function(){Re(window,"mouseup",Mn),setTimeout(qt,20)};Ge(window,"mouseup",Mn)}else setTimeout(qt,50)},Da.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Da.prototype.setUneditable=function(){},Da.prototype.needsContentAttribute=!1;function bm(u,g){if(g=g?Fe(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=tt(at(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=be.getValue()}var D;if(u.form&&(Ge(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var Z=u.form;D=Z.submit;try{var ce=Z.submit=function(){S(),Z.submit=D,Z.submit(),Z.submit=ce}}catch{}}g.finishInit=function(ke){ke.save=S,ke.getTextArea=function(){return u},ke.toTextArea=function(){ke.toTextArea=isNaN,S(),u.parentNode.removeChild(ke.getWrapperElement()),u.style.display="",u.form&&(Re(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=D))}},u.style.display="none";var be=So(function(ke){return u.parentNode.insertBefore(ke,u.nextSibling)},g);return be}function Xf(u){u.off=Re,u.on=Ge,u.wheelEventPixels=su,u.Doc=Pt,u.splitLines=Sn,u.countColumn=Pe,u.findColumn=yn,u.isWordChar=Yn,u.Pass=ut,u.signal=At,u.Line=Ga,u.changeEnd=ta,u.scrollbarModel=xs,u.Pos=fn,u.cmpPos=vr,u.modes=us,u.mimeModes=$r,u.resolveMode=fa,u.getMode=Go,u.modeExtensions=Ns,u.extendMode=dl,u.copyState=hi,u.startState=xo,u.innerMode=sa,u.commands=lu,u.keyMap=Wo,u.keyName=_a,u.isModifierKey=la,u.lookupKey=Wi,u.normalizeKeyMap=fo,u.StringStream=Ao,u.SharedTextMarker=ft,u.TextMarker=Ve,u.LineWidget=fe,u.e_preventDefault=rn,u.e_stopPropagation=Tn,u.e_stop=pr,u.addClass=Te,u.contains=rt,u.rmClass=we,u.keyNames=Zr}Dl(So),Dh(So);var _A="iter insert remove copy getEditor constructor".split(" ");for(var Mf in Pt.prototype)Pt.prototype.hasOwnProperty(Mf)&&nt(_A,Mf)<0&&(So.prototype[Mf]=function(u){return function(){return u.apply(this.doc,arguments)}}(Pt.prototype[Mf]));return Gt(Pt),So.inputStyles={textarea:Da,contenteditable:Qo},So.defineMode=function(u){!So.defaults.mode&&u!="null"&&(So.defaults.mode=u),bs.apply(this,arguments)},So.defineMIME=Ua,So.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),So.defineMIME("text/plain","null"),So.defineExtension=function(u,g){So.prototype[u]=g},So.defineDocExtension=function(u,g){Pt.prototype[u]=g},So.fromTextArea=bm,Xf(So),So.version="5.65.19",So})}(u2)),u2.exports}var hse=v3();const xp=jl(hse);var LT={exports:{}},UT;function dse(){return UT||(UT=1,function(n,e){(function(t){t(v3())})(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(To){return{type:To,style:"keyword"}}var bt=qe("keyword a"),bn=qe("keyword b"),Wn=qe("keyword c"),fn=qe("keyword d"),vr=qe("operator"),Yi={type:"atom",style:"atom"};return{if:qe("if"),while:bt,with:bt,else:bn,do:bn,try:bn,finally:bn,return:fn,break:fn,continue:fn,new:qe("new"),delete:Wn,void:Wn,throw:Wn,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:vr,typeof:vr,instanceof:vr,true:Yi,false:Yi,null:Yi,undefined:Yi,NaN:Yi,Infinity:Yi,this:qe("this"),class:qe("class"),super:qe("atom"),yield:Wn,export:qe("export"),import:qe("import"),extends:Wn,await:Wn}}(),P=/[+\-*&%=<>!?|~^@]/,F=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(qe){for(var bt=!1,bn,Wn=!1;(bn=qe.next())!=null;){if(!bt){if(bn=="/"&&!Wn)return;bn=="["?Wn=!0:Wn&&bn=="]"&&(Wn=!1)}bt=!bt&&bn=="\\"}}var W,H;function q(qe,bt,bn){return W=qe,H=bn,bt}fun Line truncated
${B}`),N].join(`
${o}`)}return v}(n,"",0)}var Jv={exports:{}},gse=Jv.exports,WT;function yse(){return WT||(WT=1,function(n,e){(function(t,r){r(e)})(gse,function(t){const r={isWhiteSpace:function(Te){return Te===" "||Te===" "||Te==="\uFEFF"||Te>=" "&&Te<="\r"||Te===" "||Te>=" "&&Te<=" "||Te==="\u2028"||Te==="\u2029"||Te===" "||Te===" "||Te===" "},isWhiteSpaceJSON:function(Te){return Te===" "||Te===" "||Te===`
`||Te==="\r"},isLineTerminator:function(Te){return Te===`
`||Te==="\r"||Te==="\u2028"||Te==="\u2029"},isLineTerminatorJSON:function(Te){return Te===`
`||Te==="\r"},isIdentifierStart:function(Te){return Te==="$"||Te==="_"||Te>="A"&&Te<="Z"||Te>="a"&&Te<="z"||Te>="€"&&r.NonAsciiIdentifierStart.test(Te)},isIdentifierPart:function(Te){return Te==="$"||Te==="_"||Te>="A"&&Te<="Z"||Te>="a"&&Te<="z"||Te>="0"&&Te<="9"||Te>="€"&&r.NonAsciiIdentifierPart.test(Te)},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(tt,Te){(typeof tt!="string"||!(tt instanceof String))&&(tt=String(tt));const je=Te.mode==="json5",$e=Te.ignoreBOM,yt=Te.ignoreComments||Te.mode==="cjson"||je,Kt=Te.ignoreTrailingCommas||je,at=Te.ignoreProtoKey,Rt=Te.ignorePrototypeKeys,Et=Te.allowSingleQuotedStrings||je,Fe=Te.allowDuplicateObjectKeys,Pe=Te.reviver,Ee=Te.tokenize,nt=Te.rawTokens,Ct=Te.tokenLocations,ut=Te.tokenPaths,Lt=je?r.isLineTerminator:r.isLineTerminatorJSON,$t=je?r.isWhiteSpace:r.isWhiteSpaceJSON,Dt=tt.length;let yn=0,jn=0,Jt=0;const Hn=[];let Bn,dn,Rn;if(Ee){let Ye=null,Re,At;Bn=function(){if(Ye!==null)throw Error("internal error, token overlap");Re=yn+1,At=Jt-jn+1,Ye=Jt},dn=function(ct,Ft){if(Ye!==Jt){const jt={type:ct};nt&&(jt.raw=tt.substr(Ye,Jt-Ye)),Ft!==void 0&&(jt.value=Ft),Ct&&(jt.location={start:{column:At,line:Re,offset:Ye}}),ut&&(jt.path=Rn.slice()),Hn.push(jt)}return Ye=null,Ft},ut&&(Rn=[])}function fr(){let Ye;return Jt<Dt?Ye=`Unexpected token ${JSON.stringify(tt[Jt])}`:Ye="Unexpected end of input",Ye}function nr(Ye){const Re=Jt-jn+1;++yn;const At=Se(Ye,tt,Jt,yn,Re),ct=SyntaxError(At.message);return ct.reason=Ye,ct.excerpt=At.excerpt,ct.pointer=At.pointer,ct.location={start:{column:Re,line:yn,offset:Jt}},ct}function Yn(Ye){throw Ye||(Ye=fr()),nr(Ye)}function We(Ye){Ye==="\r"&&tt[Jt]===`
`&&++Jt,jn=Jt,++yn}function he(){if(Jt<Dt){Bn==null||Bn();const Ye=tt[Jt++];if(Ye==='"'||Ye==="'"&&Et){const Re=p(Ye);return dn==null||dn("literal",Re),Re}if(Ye==="{")return dn==null||dn("symbol","{"),or();if(Ye==="[")return dn==null||dn("symbol","["),Ze();if(Ye==="-"||Ye==="."||l(Ye)||je&&(Ye==="+"||Ye==="I"||Ye==="N")){const Re=le();return dn==null||dn("literal",Re),Re}if(Ye==="n")return tn("null"),dn==null||dn("literal",null),null;if(Ye==="t")return tn("true"),dn==null||dn("literal",!0),!0;if(Ye==="f")return tn("false"),dn==null||dn("literal",!1),!1;--Jt,dn==null||dn();return}}function me(){let Ye;if(Jt<Dt){Bn==null||Bn();const Re=tt[Jt++];if(Re==='"'||Re==="'"&&Et){const At=p(Re);return dn==null||dn("literal",At),At}if(Re==="{")return dn==null||dn("symbol","{"),or();if(Re==="[")return dn==null||dn("symbol","["),Ze();if(Re==="."||l(Re)){const At=le();return dn==null||dn("literal",At),At}if(je&&r.isIdentifierStart(Re)||Re==="\\"&&tt[Jt]==="u"){const At=Jt-1;if(Ye=ge(),Ye===void 0){Jt=At,dn==null||dn();return}return dn==null||dn("literal",Ye),Ye}--Jt,dn==null||dn();return}}function et(){o(tt)&&(Bn==null||Bn(),++Jt,dn==null||dn("bom"))}function St(){let Ye;function Re(){Ye||(Ye=!0,--Jt,Bn(),++Jt)}function At(){Ye&&(Ye=!1,dn("whitespace"))}for(;Jt<Dt;){const ct=tt[Jt++];if(Lt(ct))Bn&&Re(),We(ct);else if($t(ct))Bn&&Re();else if(ct==="/"&&yt&&(tt[Jt]==="/"||tt[Jt]==="*"))Bn&&(--Jt,At(),Bn(),++Jt),Yt(tt[Jt++]==="*"),dn==null||dn("comment");else{--Jt;break}}dn&&At()}function Yt(Ye){for(;Jt<Dt;){const Re=tt[Jt++];if(Lt(Re)){if(!Ye){--Jt;return}We(Re)}else if(Re==="*"&&Ye&&tt[Jt]==="/"){++Jt;return}}Ye&&Yn("Unclosed multiline comment")}function tn(Ye){const Re=Jt;for(let At=1,ct=Ye.length;At<ct;++At)(Jt>=Dt||Ye[At]!==tt[Jt])&&(Jt=Re-1,Yn()),++Jt}function or(){let Ye={},Re=!1;for(;Jt<Dt;){St();const At=me();Fe===!1&&v(Ye,At)&&Yn(`Duplicate key: "${At}"`),St(),Bn==null||Bn();let ct=tt[Jt++];if(dn==null||dn("symbol",ct),ct==="}"&&At===void 0)return!Kt&&Re&&(--Jt,Yn("Trailing comma in object")),Ye;if(ct===":"&&At!==void 0){St(),Rn==null||Rn.push(At);let Ft=he();if(Rn==null||Rn.pop(),Ft===void 0&&Yn(`No value found for key "${At}"`),typeof At!="string"&&(!je||typeof At!="number")&&Yn(`Wrong key type: "${At}"`),Rt&&(At in x||x[At]!=null)||at&&At==="__proto__"||(Pe&&(Ft=Pe(At,Ft)),Ft!==void 0&&(Re=!0,At==="__proto__"?Ye=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Ft)}}`),Ye):Ye[At]=Ft)),St(),Bn==null||Bn(),ct=tt[Jt++],dn==null||dn("symbol",ct),ct!==","){if(ct==="}")return Ye;Yn()}}else--Jt,Yn()}Yn()}function Ze(){const Ye=[];for(;Jt<Dt;){St(),Rn==null||Rn.push(Ye.length);let Re=he();Rn==null||Rn.pop(),St(),Bn==null||Bn();const At=tt[Jt++];if(dn==null||dn("symbol",At),Re!==void 0&&(Pe&&(Re=Pe(String(Ye.length),Re)),Re===void 0?(++Ye.length,Re=!0):Ye.push(Re)),At===",")Re===void 0&&Yn("Elisions are not supported");else{if(At==="]")return!Kt&&Re===void 0&&Ye.length&&(--Jt,Yn("Trailing comma in array")),Ye;--Jt,Yn()}}}function le(){--Jt;let Ye=Jt,Re=tt[Jt++];const At=function(ct){const Ft=tt.substr(Ye,Jt-Ye);let jt;if(ct?jt=Number.parseInt(Ft.replace(/^0o?/,""),8):jt=Number(Ft),Number.isNaN(jt))--Jt,Yn(`Bad numeric literal - "${tt.substr(Ye,Jt-Ye+1)}"`);else if(!je&&!Ft.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Jt,Yn(`Non-json numeric literal - "${tt.substr(Ye,Jt-Ye+1)}"`);else return jt};if((Re==="-"||Re==="+"&&je)&&(Re=tt[Jt++]),Re==="N"&&je)return tn("NaN"),Number.NaN;if(Re==="I"&&je)return tn("Infinity"),At();if(Re>="1"&&Re<="9"){for(;Jt<Dt&&l(tt[Jt]);)++Jt;Re=tt[Jt++]}if(Re==="0"){Re=tt[Jt++];const ct=Re==="o"||Re==="O"||s(Re),Ft=Re==="x"||Re==="X";if(je&&(ct||Ft)){for(;Jt<Dt&&(Ft?i:s)(tt[Jt]);)++Jt;let jt=1;return tt[Ye]==="-"?(jt=-1,++Ye):tt[Ye]==="+"&&++Ye,jt*At(ct)}}if(Re==="."){for(;Jt<Dt&&l(tt[Jt]);)++Jt;Re=tt[Jt++]}if(Re==="e"||Re==="E"){for(Re=tt[Jt++],(Re==="-"||Re==="+")&&++Jt;Jt<Dt&&l(tt[Jt]);)++Jt;Re=tt[Jt++]}return--Jt,At()}function ge(){--Jt;let Ye="";for(;Jt<Dt;){let Re=tt[Jt++];if(Re==="\\"&&tt[Jt]==="u"&&i(tt[Jt+1])&&i(tt[Jt+2])&&i(tt[Jt+3])&&i(tt[Jt+4])&&(Re=String.fromCharCode(Number.parseInt(tt.substr(Jt+1,4),16)),Jt+=5),Ye.length)if(r.isIdentifierPart(Re))Ye+=Re;else return--Jt,Ye;else if(r.isIdentifierStart(Re))Ye+=Re;else return}Yn()}function p(Ye){let Re="";for(;Jt<Dt;){let At=tt[Jt++];if(At===Ye)return Re;if(At==="\\")if(Jt>=Dt&&Yn(),At=tt[Jt++],f[At]&&(je||At!=="v"&&(At!=="'"||Et)))Re+=f[At];else if(je&&Lt(At))We(At);else if(At==="u"||At==="x"&&je){const ct=At==="u"?4:2;for(let Ft=0;Ft<ct;++Ft)Jt>=Dt&&Yn(),i(tt[Jt])||Yn("Bad escape sequence"),Jt++;Re+=String.fromCharCode(Number.parseInt(tt.substr(Jt-ct,ct),16))}else if(je&&s(At)){let ct;At<"4"&&s(tt[Jt])&&s(tt[Jt+1])?ct=3:s(tt[Jt])?ct=2:ct=1,Jt+=ct-1,Re+=String.fromCharCode(Number.parseInt(tt.substr(Jt-ct,ct),8))}else je?Re+=At:(--Jt,Yn());else Lt(At)?Yn():(!je&&At.charCodeAt(0)<32&&(--Jt,Yn("Unexpected control character")),Re+=At)}Yn()}$e&&et(),St();let Ge=he();if(Ge!==void 0||Jt<Dt){if(St(),Jt>=Dt)return Pe&&(Ge=P Line truncated
${at}
${Et}
${tt}`):Rt=`Parse error in JSON input:
${at}
${tt}`,{message:Rt,excerpt:at,pointer:Et}}function we(tt,Te){let je=G(Te);const $e=oe(tt,je)||de(tt,je)||pe(tt,je);let yt,Kt,at;$e?(yt=$e.offset,Kt=$e.line,at=$e.column,je=$e.reason):yt=0,Te.reason=je;const Rt=Se(je,tt,yt,Kt,at);return Te.message=Rt.message,Te.excerpt=Rt.excerpt,Rt.pointer&&(Te.pointer=Rt.pointer,Te.location={start:{column:at,line:Kt,offset:yt}}),Te}function Ce(tt,Te){try{return JSON.parse(tt,Te)}catch(je){const $e=we(tt,je);if(je.location)throw $e;return k(tt,Te)}}const De=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function dt(tt){return tt.ignoreBOM||tt.ignoreComments||tt.ignoreTrailingCommas||tt.allowSingleQuotedStrings||tt.allowDuplicateObjectKeys===!1||tt.ignoreProtoKey||tt.ignorePrototypeKeys||tt.mode==="cjson"||tt.mode==="json5"||De||xe}function vt(tt){if(typeof tt=="function")return tt;if(tt)return tt.reviver}function rt(tt,Te){return Te||(Te={}),dt(Te)?k(tt,Te):Ce(tt,vt(Te))}t.parse=rt,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=H,t.parseNative=Ce,t.parseCustom=k,t.getErrorTexts=Se,Object.defineProperty(t,"__esModule",{value:!0})})}(Jv,Jv.exports)),Jv.exports}var vse=yse(),c2={exports:{}},Cse=c2.exports,QT;function _se(){return QT||(QT=1,function(n,e){(function(t,r){n.exports=r()})(Cse,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Pe,Ee){return Ee={exports:{}},Pe(Ee,Ee.exports),Ee.exports}var i=r(function(Pe){function Ee(){var nt=0,Ct=1,ut=2,Lt=3,$t=4,Dt=5,yn=6,jn=7,Jt=8,Hn=9,Bn=10,dn=11,Rn=12,fr=13,nr=14,Yn=15,We=16,he=17,me=0,et=1,St=2,Yt=3,tn=4;function or(p,Ge){return 55296<=p.charCodeAt(Ge)&&p.charCodeAt(Ge)<=56319&&56320<=p.charCodeAt(Ge+1)&&p.charCodeAt(Ge+1)<=57343}function Ze(p,Ge){Ge===void 0&&(Ge=0);var Ye=p.charCodeAt(Ge);if(55296<=Ye&&Ye<=56319&&Ge<p.length-1){var Re=Ye,At=p.charCodeAt(Ge+1);return 56320<=At&&At<=57343?(Re-55296)*1024+(At-56320)+65536:Re}if(56320<=Ye&&Ye<=57343&&Ge>=1){var Re=p.charCodeAt(Ge-1),At=Ye;return 55296<=Re&&Re<=56319?(Re-55296)*1024+(At-56320)+65536:At}return Ye}function le(p,Ge,Ye){var Re=[p].concat(Ge).concat([Ye]),At=Re[Re.length-2],ct=Ye,Ft=Re.lastIndexOf(nr);if(Ft>1&&Re.slice(1,Ft).every(function(rn){return rn==Lt})&&[Lt,fr,he].indexOf(p)==-1)return St;var jt=Re.lastIndexOf($t);if(jt>0&&Re.slice(1,jt).every(function(rn){return rn==$t})&&[Rn,$t].indexOf(At)==-1)return Re.filter(function(rn){return rn==$t}).length%2==1?Yt:tn;if(At==nt&&ct==Ct)return me;if(At==ut||At==nt||At==Ct)return ct==nr&&Ge.every(function(rn){return rn==Lt})?St:et;if(ct==ut||ct==nt||ct==Ct)return et;if(At==yn&&(ct==yn||ct==jn||ct==Hn||ct==Bn))return me;if((At==Hn||At==jn)&&(ct==jn||ct==Jt))return me;if((At==Bn||At==Jt)&&ct==Jt)return me;if(ct==Lt||ct==Yn)return me;if(ct==Dt)return me;if(At==Rn)return me;var Gt=Re.indexOf(Lt)!=-1?Re.lastIndexOf(Lt)-1:Re.length-2;return[fr,he].indexOf(Re[Gt])!=-1&&Re.slice(Gt+1,-1).every(function(rn){return rn==Lt})&&ct==nr||At==Yn&&[We,he].indexOf(ct)!=-1?me:Ge.indexOf($t)!=-1?St:At==$t&&ct==$t?me:et}this.nextBreak=function(p,Ge){if(Ge===void 0&&(Ge=0),Ge<0)return 0;if(Ge>=p.length-1)return p.length;for(var Ye=ge(Ze(p,Ge)),Re=[],At=Ge+1;At<p.length;At++)if(!or(p,At-1)){var ct=ge(Ze(p,At));if(le(Ye,Re,ct))return At;Re.push(ct)}return p.length},this.splitGraphemes=function(p){for(var Ge=[],Ye=0,Re;(Re=this.nextBreak(p,Ye))<p.length;)Ge.push(p.slice(Ye,Re)),Ye=Re;return Ye<p.length&&Ge.push(p.slice(Ye)),Ge},this.iterateGraphemes=function(p){var Ge=0,Ye={next:(function(){var Re,At;return(At=this.nextBreak(p,Ge))<p.length?(Re=p.slice(Ge,At),Ge=At,{value:Re,done:!1}):Ge<p.length?(Re=p.slice(Ge),Ge=p.length,{value:Re,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Ye[Symbol.iterator]=function(){return Ye}),Ye},this.countGraphemes=function(p){for(var Ge=0,Ye=0,Re;(Re=this.nextBreak(p,Ye))<p.length;)Ye=Re,Ge++;return Ye<p.length&&Ge++,Ge};function ge(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?Rn:p==13?nt: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?ut: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 Jt={extraLines:2,tabSize:4},Hn=function(dn,Rn,fr,nr){nr=Dt({},Jt,nr);var Yn=dn.split(/\r\n?|\n|\f/),We=Math.max(1,Rn-nr.extraLines)-1,he=Math.min(Rn+nr.extraLines,Yn.length),me=String(he).length,et=jn(Yn,We,Rn,me,nr),St=yn(Yn[Rn-1].substring(0,fr-1),Rn,me,nr),Yt=ut(" ",St.length)+"^",tn=jn(Yn,Rn,he,me,nr);return[et,Yt,tn].filter(Boolean).join(`
`)};return Hn})}),v=new Error().stack,x=function(Pe){var Ee=Object.create(SyntaxError.prototype);return Object.assign(Ee,Pe,{name:"SyntaxError"}),Object.defineProperty(Ee,"stack",{get:function(){return v?v.replace(/^(.+\n){1,3}/,String(Ee)+`
`):""}}),Ee},B=function(Pe,Ee,nt,Ct,ut){throw x({message:Ct?Pe+`
`+f(Ee,Ct,ut):Pe,rawMessage:Pe,source:nt,line:Ct,column:ut})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ee){for(var nt=arguments.length,Ct=Array(nt>1?nt-1:0),ut=1;ut<nt;ut++)Ct[ut-1]=arguments[ut];return"Unexpected token <"+Ee+"> at "+Ct.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Ee){for(var nt=arguments.length,Ct=Array(nt>1?nt-1:0),ut=1;ut<nt;ut++)Ct[ut-1]=arguments[ut];return"Unexpected symbol <"+Ee+"> 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},N={"{":F.LEFT_BRACE,"}":F.RIGHT_BRACE,"[":F.LEFT_BRACKET,"]":F.RIGHT_BRACKET,":":F.COLON,",":F.COMMA},W={true:F.TRUE,false:F.FALSE,null:F.NULL},H={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ie={_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 G(Pe){return Pe==="e"||Pe==="E"}function oe(Pe,Ee,nt,Ct){var ut=Pe.charAt(Ee);if(ut==="\r")Ee++,nt++,Ct=1,Pe.charAt(Ee)===`
`&&Ee++;else if(ut===`
`)Ee++,nt++,Ct=1;else if(ut===" "||ut===" ")Ee++,Ct++;else return null;return{index:Ee,line:nt,column:Ct}}function de(Pe,Ee,nt,Ct){var ut=Pe.charAt(Ee);return ut in N?{type:N[ut],line:nt,column:Ct+1,index:Ee+1,value:null}:null}function pe(Pe,Ee,nt,Ct){for(var ut in W)if(W.hasOwnProperty(ut)&&Pe.substr(Ee,ut.length)===ut)return{type:W[ut],line:nt,column:Ct+ut.length,index:Ee+ut.length,value:ut};return null}function Se(Pe,Ee,nt,Ct){for(var ut=Ee,Lt=H._START_;Ee<Pe.length;){var $t=Pe.charAt(Ee);switch(Lt){case H._START_:{if($t==='"')Ee++,Lt=H.START_QUOTE_OR_CHAR;else return null;break}case H.START_QUOTE_OR_CHAR:{if($t==="\\")Ee++,Lt=H.ESCAPE;else{if($t==='"')return Ee++,{type:F.STRING,line:nt,column:Ct+Ee-ut,index:Ee,value:Pe.slice(ut,Ee)};Ee++}break}case H.ESCAPE:{if($t in q){if(Ee++,$t==="u")for(var Dt=0;Dt<4;Dt++){var yn=Pe.charAt(Ee);if(yn&&ne(yn))Ee++;else return null}Lt=H.START_QUOTE_OR_CHAR}else return null;break}}}}function we(Pe,Ee,nt,Ct){var ut=Ee,Lt=Ee,$t=ie._START_;e:for(;Ee<Pe.length;){var Dt=Pe.charAt(Ee);switch($t){case ie._START_:{if(Dt==="-")$t=ie.MINUS;else if(Dt==="0")Lt=Ee+1,$t=ie.ZERO;else if(te(Dt))Lt=Ee+1,$t=ie.DIGIT;else return null;break}case ie.MINUS:{if(Dt==="0")Lt=Ee+1,$t=ie.ZERO;else if(te(Dt))Lt=Ee+1,$t=ie.DIGIT;else return null;break}case ie.ZERO:{if(Dt===".")$t=ie.POINT;else if(G(Dt))$t=ie.EXP;else break e;break}case ie.DIGIT:{if(V(Dt))Lt=Ee+1;else if(Dt===".")$t=ie.POINT;else if(G(Dt))$t=ie.EXP;else break e;break}case ie.POINT:{if(V(Dt))Lt=Ee+1,$t=ie.DIGIT_FRACTION;else break e;break}case ie.DIGIT_FRACTION:{if(V(Dt))Lt=Ee+1;else if(G(Dt))$t=ie.EXP;else break e;break}case ie.EXP:{if(Dt==="+"||Dt==="-")$t=ie.EXP_DIGIT_OR_SIGN;else if(V(Dt))Lt=Ee+1,$t=ie.EXP_DIGIT_OR_SIGN;else break e;break}case ie.EXP_DIGIT_OR_SIGN:{if(V(Dt))Lt=Ee+1;else break e;break}}Ee++}return Lt>0?{type:F.NUMBER,line:nt,column:Ct+Lt-ut,index:Lt,value:Pe.slice(ut,Lt)}:null}var Ce=function(Ee,nt){for(var Ct=1,ut=1,Lt=0,$t=[];Lt<Ee.length;){var Dt=[Ee,Lt,Ct,ut],yn=oe.apply(void 0,Dt);if(yn){Lt=yn.index,Ct=yn.line,ut=yn.column;continue}var jn=de.apply(void 0,Dt)||pe.apply(void 0,Dt)||Se.apply(void 0,Dt)||we.apply(void 0,Dt);if(jn){var Jt={type:jn.type,value:jn.value,loc:o(Ct,ut,Lt,jn.line,jn.column,jn.index,nt.source)};$t.push(Jt),Lt=jn.index,Ct=jn.line,ut=jn.column}else B(P.unexpectedSymbol(l(Ee,Lt,Lt+1),nt.source,Ct,ut),Ee,nt.source,Ct,ut)}return $t},De={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},dt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},vt={loc:!0,source:null};function rt(Pe,Ee,nt){var Ct=Ee.length>0?Ee[Ee.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),Pe,nt.source,Ct.line,Ct.column)}function tt(Pe){for(var Ee=0,nt=0;nt<4;nt++)Ee=Ee*16+parseInt(Pe[nt],16);return String.fromCharCode(Ee)}var Te={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},je=['"',"\\","/"];function $e(Pe){for(var Ee="",nt=0;nt<Pe.length;nt++){var Ct=Pe.charAt(nt);if(Ct==="\\"){nt++;var ut=Pe.charAt(nt);if(ut==="u")Ee+=tt(Pe.substr(nt+1,4)),nt+=4;else if(je.indexOf(ut)!==-1)Ee+=ut;else if(ut in Te)Ee+=Te[ut];else break}else Ee+=Ct}return Ee}function yt(Pe,Ee,nt,Ct){for(var ut=void 0,Lt={type:"Object",children:[]},$t=De._START_;nt<Ee.length;){var Dt=Ee[nt];switch($t){case De._START_:{if(Dt.type===F.LEFT_BRACE)ut=Dt,$t=De.OPEN_OBJECT,nt++;else return null;break}case De.OPEN_OBJECT:{if(Dt.type===F.RIGHT_BRACE)return Ct.loc&&(Lt.loc=o(ut.loc.start.line,ut.loc.start.column,ut.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ct.source)),{value:Lt,index:nt+1};var yn=Kt(Pe,Ee,nt,Ct);Lt.children.push(yn.value),$t=De.PROPERTY,nt=yn.index;break}case De.PROPERTY:{if(Dt.type===F.RIGHT_BRACE)return Ct.loc&&(Lt.loc=o(ut.loc.start.line,ut.loc.start.column,ut.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ct.source)),{value:Lt,index:nt+1};Dt.type===F.COMMA?($t=De.COMMA,nt++):B(k.unexpectedToken(l(Pe,Dt.loc.start.offset,Dt.loc.end.offset),Ct.source,Dt.loc.start.line,Dt.loc.start.column),Pe,Ct.source,Dt.loc.start.line,Dt.loc.start.column);break}case De.COMMA:{var jn=Kt(Pe,Ee,nt,Ct);jn?(nt=jn.index,Lt.children.push(jn.value),$t=De.PROPERTY):B(k.unexpectedToken(l(Pe,Dt.loc.start.offset,Dt.loc.end.offset),Ct.source,Dt.loc.start.line,Dt.loc.start.column),Pe,Ct.source,Dt.loc.start.line,Dt.loc.start.column);break}}}rt(Pe,Ee,Ct)}function Kt(Pe,Ee,nt,Ct){for(var ut=void 0,Lt={type:"Property",key:null,value:null},$t=xe._START_;nt<Ee.length;){var Dt=Ee[nt];switch($t){case xe._START_:{if(Dt.type===F.STRING){var yn={type:"Identifier",value:$e(Pe.slice(Dt.loc.start.offset+1,Dt.loc.end.offset-1)),raw:Dt.value};Ct.loc&&(yn.loc=Dt.loc),ut=Dt,Lt.key=yn,$t=xe.KEY,nt++}else return null;break}case xe.KEY:{Dt.type===F.COLON?($t=xe.COLON,nt++):B(k.unexpectedToken(l(Pe,Dt.loc.start.offset,Dt.loc.end.offset),Ct.source,Dt.loc.start.line,Dt.loc.start.column),Pe,Ct.source,Dt.loc.start.line,Dt.loc.start.column);break}case xe.COLON:{var jn=Et(Pe,Ee,nt,Ct);return Lt.value=jn.value,Ct.loc&&(Lt.loc=o(ut.loc.start.line,ut.loc.start.column,ut.loc.start.offset,jn.value.loc.end.line,jn.value.loc.end.column,jn.value.loc.end.offset,Ct.source)),{value:Lt,index:jn.index}}}}}function at(Pe,Ee,nt,Ct){for(var ut=void 0,Lt={type:"Array",children:[]},$t=dt._START_,Dt=void 0;nt<Ee.length;)switch(Dt=Ee[nt],$t){case dt._START_:{if(Dt.type===F.LEFT_BRACKET)ut=Dt,$t=dt.OPEN_ARRAY,nt++;else return null;break}case dt.OPEN_ARRAY:{if(Dt.type===F.RIGHT_BRACKET)return Ct.loc&&(Lt.loc=o(ut.loc.start.line,ut.loc.start.column,ut.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ct.source)),{value:Lt,index:nt+1};var yn=Et(Pe,Ee,nt,Ct);nt=yn.index,Lt.children.push(yn.value),$t=dt.VALUE;break}case dt.VALUE:{if(Dt.type===F.RIGHT_BRACKET)return Ct.loc&&(Lt.loc=o(ut.loc.start.line,ut.loc.start.column,ut.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ct.source)),{value:Lt,index:nt+1};Dt.type===F.COMMA?($t=dt.COMMA,nt++):B(k.unexpectedToken(l(Pe,Dt.loc.start.offset,Dt.loc.end.offset),Ct.source,Dt.loc.start.line,Dt.loc.start.column),Pe,Ct.source,Dt.loc.start.line,Dt.loc.start.column);break}case dt.COMMA:{var jn=Et(Pe,Ee,nt,Ct);nt=jn.index,Lt.children.push(jn.value),$t=dt.VALUE;break}}rt(Pe,Ee,Ct)}function Rt(Pe,Ee,nt,Ct){var ut=Ee[nt],Lt=null;switch(ut.type){case F.STRING:{Lt=$e(Pe.slice(ut.loc.start.offset+1,ut.loc.end.offset-1));break}case F.NUMBER:{Lt=Number(ut.value);break}case F.TRUE:{Lt=!0;break}case F.FALSE:{Lt=!1;break}case F.NULL:{Lt=null;break}default:return null}var $t={type:"Literal",value:Lt,raw:ut.value};return Ct.loc&&($t.loc=ut.loc),{value:$t,index:nt+1}}function Et(Pe,Ee,nt,Ct){var ut=Ee[nt],Lt=Rt.apply(void 0,arguments)||yt.apply(void 0,arguments)||at.apply(void 0,arguments);if(Lt)return Lt;B(k.unexpectedToken(l(Pe,ut.loc.start.offset,ut.loc.end.offset),Ct.source,ut.loc.start.line,ut.loc.start.column),Pe,Ct.source,ut.loc.start.line,ut.loc.start.column)}var Fe=function(Pe,Ee){Ee=Object.assign({},vt,Ee);var nt=Ce(Pe,Ee);nt.length===0&&rt(Pe,nt,Ee);var Ct=Et(Pe,nt,0,Ee);if(Ct.index===nt.length)return Ct.value;var ut=nt[Ct.index];B(k.unexpectedToken(l(Pe,ut.loc.start.offset,ut.loc.end.offset),Ee.source,ut.loc.start.line,ut.loc.start.column),Pe,Ee.source,ut.loc.start.line,ut.loc.start.column)};return Fe})}(c2)),c2.exports}var bse=_se();const xse=jl(bse);function gr(){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(v.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:V.gradient}),r.default.createElement("div",{style:V.container,ref:function(G){return ie.container=G},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}))))}}]),H}(t.PureComponent||t.Component);return Yg.default=N,Yg}var $g={},gD;function Wle(){if(gD)return $g;gD=1,Object.defineProperty($g,"__esModule",{value:!0}),$g.EditableInput=void 0;var n=function(){function q(ie,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(ie,ne.key,ne)}}return function(ie,te,V){return te&&q(ie.prototype,te),V&&q(ie,V),ie}}(),e=nl(),t=s(e),r=kp(),i=s(r);function s(q){return q&&q.__esModule?q:{default:q}}function l(q,ie,te){return ie in q?Object.defineProperty(q,ie,{value:te,enumerable:!0,configurable:!0,writable:!0}):q[ie]=te,q}function o(q,ie){if(!(q instanceof ie))throw new TypeError("Cannot call a class as a function")}function f(q,ie){if(!q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:q}function v(q,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);q.prototype=Object.create(ie&&ie.prototype,{constructor:{value:q,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf(q,ie):q.__proto__=ie)}var x=1,B=38,k=40,P=[B,k],F=function(ie){return P.indexOf(ie)>-1},N=function(ie){return Number(String(ie).replace(/%/g,""))},W=1,H=$g.EditableInput=function(q){v(ie,q);function ie(te){o(this,ie);var V=f(this,(ie.__proto__||Object.getPrototypeOf(ie)).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 G=N(ne.target.value);if(!isNaN(G)&&F(ne.keyCode)){var oe=V.getArrowOffset(),de=ne.keyCode===B?G+oe:G-oe;V.setUpdatedValue(de,ne)}},V.handleDrag=function(ne){if(V.props.dragLabel){var G=Math.round(V.props.value+ne.movementX);G>=0&&G<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(G),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-"+W++,V}return n(ie,[{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 G=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(G,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(oe){return V.input=oe},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:ie.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ie.slider}))))}}]),F}(e.PureComponent||e.Component);return Vg.default=k,Vg}var Hg={},CD;function qle(){if(CD)return Hg;CD=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.Raised=void 0;var n=nl(),e=f(n),t=gm(),r=f(t),i=kp(),s=f(i),l=SG(),o=f(l);function f(x){return x&&x.__esModule?x:{default:x}}var v=Hg.Raised=function(B){var k=B.zDepth,P=B.radius,F=B.background,N=B.children,W=B.styles,H=W===void 0?{}:W,q=(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: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%"}}},H),{"zDepth-1":k===1});return e.default.createElement("div",{style:q.wrap},e.default.createElement("div",{style:q.bg}),e.default.createElement("div",{style:q.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:{}},Hg.default=v,Hg}var Zg={},$S,_D;function $le(){if(_D)return $S;_D=1;var n=Tp(),e=function(){return n.Date.now()};return $S=e,$S}var VS,bD;function Vle(){if(bD)return VS;bD=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return VS=e,VS}var HS,xD;function Hle(){if(xD)return HS;xD=1;var n=Vle(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return HS=t,HS}var ZS,MD;function Zle(){if(MD)return ZS;MD=1;var n=Hle(),e=qf(),t=O3(),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 ZS=f,ZS}var XS,wD;function EG(){if(wD)return XS;wD=1;var n=qf(),e=$le(),t=Zle(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,v){var x,B,k,P,F,N,W=0,H=!1,q=!1,ie=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(v)&&(H=!!v.leading,q="maxWait"in v,k=q?i(t(v.maxWait)||0,f):k,ie="trailing"in v?!!v.trailing:ie);function te(Ce){var De=x,xe=B;return x=B=void 0,W=Ce,P=o.apply(xe,De),P}function V(Ce){return W=Ce,F=setTimeout(oe,f),H?te(Ce):P}function ne(Ce){var De=Ce-N,xe=Ce-W,dt=f-De;return q?s(dt,k-xe):dt}function G(Ce){var De=Ce-N,xe=Ce-W;return N===void 0||De>=f||De<0||q&&xe>=k}function oe(){var Ce=e();if(G(Ce))return de(Ce);F=setTimeout(oe,ne(Ce))}function de(Ce){return F=void 0,ie&&x?te(Ce):(x=B=void 0,P)}function pe(){F!==void 0&&clearTimeout(F),W=0,x=N=B=F=void 0}function Se(){return F===void 0?P:de(e())}function we(){var Ce=e(),De=G(Ce);if(x=arguments,B=this,N=Ce,De){if(F===void 0)return V(N);if(q)return clearTimeout(F),F=setTimeout(oe,f),te(N)}return F===void 0&&(F=setTimeout(oe,f)),P}return we.cancel=pe,we.flush=Se,we}return XS=l,XS}var JS,SD;function Xle(){if(SD)return JS;SD=1;var n=EG(),e=qf(),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 JS=r,JS}var $b={},ED;function Jle(){return ED||(ED=1,Object.defineProperty($b,"__esModule",{value:!0}),$b.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"}}),$b}var BD;function eAe(){if(BD)return Zg;BD=1,Object.defineProperty(Zg,"__esModule",{value:!0}),Zg.Saturation=void 0;var n=function(){function N(W,H){for(var q=0;q<H.length;q++){var ie=H[q];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(W,ie.key,ie)}}return function(W,H,q){return H&&N(W.prototype,H),q&&N(W,q),W}}(),e=nl(),t=x(e),r=kp(),i=x(r),s=Xle(),l=x(s),o=Jle(),f=v(o);function v(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var H in N)Object.prototype.hasOwnProperty.call(N,H)&&(W[H]=N[H]);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:V,black:ne,pointer:G,circle:oe}},{custom:!!this.props.style});return t.default.createElement("div",{style:de.color,ref:function(Se){return q.container=Se},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 Zg.default=F,Zg}var Xg={},jh={},eE,OD;function tAe(){if(OD)return eE;OD=1;var n=mG(),e=pG(),t=eG(),r=uf();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return eE=i,eE}var tE,ID;function nAe(){return ID||(ID=1,tE=tAe()),tE}var h2={exports:{}},rAe=h2.exports,TD;function iAe(){return TD||(TD=1,function(n,e){(function(t,r){n.exports=r()})(rAe,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 Ee=l(Fe);this._originalInput=Fe,this._r=Ee.r,this._g=Ee.g,this._b=Ee.b,this._a=Ee.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Ee.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=Ee.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(),Ee,nt,Ct,ut,Lt,$t;return Ee=Pe.r/255,nt=Pe.g/255,Ct=Pe.b/255,Ee<=.03928?ut=Ee/12.92:ut=Math.pow((Ee+.055)/1.055,2.4),nt<=.03928?Lt=nt/12.92:Lt=Math.pow((nt+.055)/1.055,2.4),Ct<=.03928?$t=Ct/12.92:$t=Math.pow((Ct+.055)/1.055,2.4),.2126*ut+.7152*Lt+.0722*$t},setAlpha:function(Pe){return this._a=De(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),Ee=Math.round(Pe.h*360),nt=Math.round(Pe.s*100),Ct=Math.round(Pe.v*100);return this._a==1?"hsv("+Ee+", "+nt+"%, "+Ct+"%)":"hsva("+Ee+", "+nt+"%, "+Ct+"%, "+this._roundA+")"},toHsl:function(){var Pe=f(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=f(this._r,this._g,this._b),Ee=Math.round(Pe.h*360),nt=Math.round(Pe.s*100),Ct=Math.round(Pe.l*100);return this._a==1?"hsl("+Ee+", "+nt+"%, "+Ct+"%)":"hsla("+Ee+", "+nt+"%, "+Ct+"%, "+this._roundA+")"},toHex:function(Pe){return k(this._r,this._g,this._b,Pe)},toHexString:function(Pe){return"#"+this.toHex(Pe)},toHex8:function(Pe){return P(this._r,this._g,this._b,this._a,Pe)},toHex8String:function(Pe){return"#"+this.toHex8(Pe)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(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:we[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Ee="#"+F(this._r,this._g,this._b,this._a),nt=Ee,Ct=this._gradientType?"GradientType = 1, ":"";if(Pe){var ut=s(Pe);nt="#"+F(ut._r,ut._g,ut._b,ut._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ct+"startColorstr="+Ee+",endColorstr="+nt+")"},toString:function(Pe){var Ee=!!Pe;Pe=Pe||this._format;var nt=!1,Ct=this._a<1&&this._a>=0,ut=!Ee&&Ct&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return ut?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(nt=this.toRgbString()),Pe==="prgb"&&(nt=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(nt=this.toHexString()),Pe==="hex3"&&(nt=this.toHexString(!0)),Pe==="hex4"&&(nt=this.toHex8String(!0)),Pe==="hex8"&&(nt=this.toHex8String()),Pe==="name"&&(nt=this.toName()),Pe==="hsl"&&(nt=this.toHslString()),Pe==="hsv"&&(nt=this.toHsvString()),nt||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Pe,Ee){var nt=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@${oK}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${oK}/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=(qr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(qr().s[10]++,this.exportName());qr().s[11]++,iK.saveAs(i,s+".html")}async saveStyle(){qr().f[3]++;const e=(qr().s[12]++,this.tokenizedStyle());if(qr().s[13]++,sK)qr().b[2][1]++;else{qr().b[2][0]++;const i=(qr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(qr().s[15]++,this.exportName());qr().s[16]++,iK.saveAs(i,s+".json"),qr().s[17]++;return}let t=(qr().s[18]++,this.props.fileHandle);if(qr().s[19]++,t==null)if(qr().b[3][0]++,qr().s[20]++,t=await this.createFileHandle(),qr().s[21]++,this.props.onSetFileHandle(t),qr().s[22]++,t==null){qr().b[4][0]++,qr().s[23]++;return}else qr().b[4][1]++;else qr().b[3][1]++;const r=(qr().s[24]++,await t.createWritable());qr().s[25]++,await r.write(e),qr().s[26]++,await r.close(),qr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){qr().f[4]++;const e=(qr().s[28]++,this.tokenizedStyle()),t=(qr().s[29]++,await this.createFileHandle());if(qr().s[30]++,this.props.onSetFileHandle(t),qr().s[31]++,t==null){qr().b[5][0]++,qr().s[32]++;return}else qr().b[5][1]++;const r=(qr().s[33]++,await t.createWritable());qr().s[34]++,await r.write(e),qr().s[35]++,await r.close(),qr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){qr().f[5]++;const e=(qr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(qr().s[38]++,await window.showSaveFilePicker(e));return qr().s[39]++,this.props.onSetFileHandle(t),qr().s[40]++,t}changeMetadataProperty(e,t){qr().f[6]++;const r=(qr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});qr().s[42]++,this.props.onStyleChanged(r)}render(){qr().f[7]++;const e=(qr().s[43]++,this.props.t),t=(qr().s[44]++,QG(e));return qr().s[45]++,se.jsx(X0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:se.jsxs("section",{className:"maputnik-modal-section",children:[se.jsx("h1",{children:e("Save Style")}),se.jsx("p",{children:e("Save the JSON style to your computer.")}),se.jsxs("div",{children:[se.jsx(em,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(qr().b[6][0]++,this.props.mapStyle.metadata||(qr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),se.jsx(em,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(qr().b[7][0]++,this.props.mapStyle.metadata||(qr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),se.jsx(em,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(qr().b[8][0]++,this.props.mapStyle.metadata||(qr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),se.jsxs("div",{className:"maputnik-modal-export-buttons",children:[se.jsxs(tl,{onClick:this.saveStyle.bind(this),children:[se.jsx(x6,{}),e("Save")]}),(qr().b[9][0]++,sK&&(qr().b[9][1]++,se.jsxs(tl,{onClick:this.saveStyleAs.bind(this),children:[se.jsx(x6,{}),e("Save as")]}))),se.jsxs(tl,{onClick:this.createHtml.bind(this),children:[se.jsx(JV,{}),e("Create HTML")]})]})]})})}}const Zue=(qr().s[46]++,zs()(Hue));function l_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="008bf7f932014e13eee4379e3554a3bc406336ab",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"008bf7f932014e13eee4379e3554a3bc406336ab"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return l_=function(){return l},l}l_();l_().s[0]++;const VG=n=>(l_().f[0]++,l_().s[1]++,se.jsx(JC,{label:n.label,children:se.jsx(PG,{...n})}));function A_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="c125b14cc26e01a4ebcfb9f19e77a3d5d28023c7",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:4,column:22},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:120}}},fnMap:{0:{nam Line truncated
`)>=0)return!1;return!0}function Yt(Ze,le){var ge;if(Ze.indent===" ")ge=" ";else if(typeof Ze.indent=="number"&&Ze.indent>0)ge=oe.call(Array(Ze.indent+1)," ");else return null;return{base:ge,prev:oe.call(Array(le+1),ge)}}function tn(Ze,le){if(Ze.length===0)return"";var ge=`
`+le.prev+le.base;return ge+oe.call(Ze,","+ge)+`
`+le.prev}function or(Ze,le){var ge=Rt(Ze),p=[];if(ge){p.length=Ze.length;for(var Ge=0;Ge<Ze.length;Ge++)p[Ge]=Dt(Ze,Ge)?le(Ze[Ge],Ze):""}var Ye=typeof we=="function"?we(Ze):[],Re;if(De){Re={};for(var At=0;At<Ye.length;At++)Re["$"+Ye[At]]=Ye[At]}for(var ct in Ze)Dt(Ze,ct)&&(ge&&String(Number(ct))===ct&&ct<Ze.length||De&&Re["$"+ct]instanceof Symbol||(ne.call(/[^\w$]/,ct)?p.push(le(ct,Ze)+": "+le(Ze[ct],Ze)):p.push(ct+": "+le(Ze[ct],Ze))));if(typeof we=="function")for(var Ft=0;Ft<Ye.length;Ft++)dt.call(Ze,Ye[Ft])&&p.push("["+le(Ye[Ft])+"]: "+le(Ze[Ye[Ft]],Ze));return p}return AE}var uE,dK;function Pce(){if(dK)return uE;dK=1;var n=k3(),e=tv(),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 uE=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},uE}var cE,fK;function ej(){return fK||(fK=1,cE=Object),cE}var hE,pK;function Rce(){return pK||(pK=1,hE=Error),hE}var dE,mK;function Dce(){return mK||(mK=1,dE=EvalError),dE}var fE,gK;function Kce(){return gK||(gK=1,fE=RangeError),fE}var pE,yK;function Fce(){return yK||(yK=1,pE=ReferenceError),pE}var mE,vK;function Lce(){return vK||(vK=1,mE=SyntaxError),mE}var gE,CK;function Uce(){return CK||(CK=1,gE=URIError),gE}var yE,_K;function zce(){return _K||(_K=1,yE=Math.abs),yE}var vE,bK;function Nce(){return bK||(bK=1,vE=Math.floor),vE}var CE,xK;function Gce(){return xK||(xK=1,CE=Math.max),CE}var _E,MK;function jce(){return MK||(MK=1,_E=Math.min),_E}var bE,wK;function Wce(){return wK||(wK=1,bE=Math.pow),bE}var xE,SK;function Qce(){return SK||(SK=1,xE=Math.round),xE}var ME,EK;function Yce(){return EK||(EK=1,ME=Number.isNaN||function(e){return e!==e}),ME}var wE,BK;function qce(){if(BK)return wE;BK=1;var n=Yce();return wE=function(t){return n(t)||t===0?t:t<0?-1:1},wE}var SE,OK;function $ce(){return OK||(OK=1,SE=Object.getOwnPropertyDescriptor),SE}var EE,IK;function tj(){if(IK)return EE;IK=1;var n=$ce();if(n)try{n([],"length")}catch{n=null}return EE=n,EE}var BE,TK;function Vce(){if(TK)return BE;TK=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return BE=n,BE}var OE,kK;function Hce(){return kK||(kK=1,OE=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}),OE}var IE,PK;function Zce(){if(PK)return IE;PK=1;var n=typeof Symbol<"u"&&Symbol,e=Hce();return IE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},IE}var TE,RK;function nj(){return RK||(RK=1,TE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),TE}var kE,DK;function rj(){if(DK)return kE;DK=1;var n=ej();return kE=n.getPrototypeOf||null,kE}var PE,KK;function Xce(){if(KK)return PE;KK=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 PE=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 H=v.apply(this,i(x,arguments));return Object(H)===H?H:this}return v.apply(f,i(x,arguments))},P=t(0,v.length-x.length),F=[],N=0;N<P;N++)F[N]="$"+N;if(B=Function("binder","return function ("+l(F,",")+"){ return binder.apply(this,arguments); }")(k),v.prototype){var W=function(){};W.prototype=v.prototype,B.prototype=new W,W.prototype=null}return B},PE}var RE,FK;function P3(){if(FK)return RE;FK=1;var n=Xce();return RE=Function.prototype.bind||n,RE}var DE,LK;function zI(){return LK||(LK=1,DE=Function.prototype.call),DE}var KE,UK;function i 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},F={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=lhe();function H(V,ne,G){if(V&&typeof V=="object"&&V instanceof e)return V;var oe=new e;return oe.parse(V,ne,G),oe}e.prototype.parse=function(V,ne,G){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var oe=V.indexOf("?"),de=oe!==-1&&oe<V.indexOf("#")?"?":"#",pe=V.split(de),Se=/\\/g;pe[0]=pe[0].replace(Se,"/"),V=pe.join(de);var we=V;if(we=we.trim(),!G&&V.split("#").length===1){var Ce=i.exec(we);if(Ce)return this.path=we,this.href=we,this.pathname=Ce[1],Ce[2]?(this.search=Ce[2],ne?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var De=t.exec(we);if(De){De=De[0];var xe=De.toLowerCase();this.protocol=xe,we=we.substr(De.length)}if(G||De||we.match(/^\/\/[^@/]+@[^@/]+/)){var dt=we.substr(0,2)==="//";dt&&!(De&&F[De])&&(we=we.substr(2),this.slashes=!0)}if(!F[De]&&(dt||De&&!N[De])){for(var vt=-1,rt=0;rt<v.length;rt++){var tt=we.indexOf(v[rt]);tt!==-1&&(vt===-1||tt<vt)&&(vt=tt)}var Te,je;vt===-1?je=we.lastIndexOf("@"):je=we.lastIndexOf("@",vt),je!==-1&&(Te=we.slice(0,je),we=we.slice(je+1),this.auth=decodeURIComponent(Te)),vt=-1;for(var rt=0;rt<f.length;rt++){var tt=we.indexOf(f[rt]);tt!==-1&&(vt===-1||tt<vt)&&(vt=tt)}vt===-1&&(vt=we.length),this.host=we.slice(0,vt),we=we.slice(vt),this.parseHost(),this.hostname=this.hostname||"";var $e=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$e)for(var yt=this.hostname.split(/\./),rt=0,Kt=yt.length;rt<Kt;rt++){var at=yt[rt];if(at&&!at.match(B)){for(var Rt="",Et=0,Fe=at.length;Et<Fe;Et++)at.charCodeAt(Et)>127?Rt+="x":Rt+=at[Et];if(!Rt.match(B)){var Pe=yt.slice(0,rt),Ee=yt.slice(rt+1),nt=at.match(k);nt&&(Pe.push(nt[1]),Ee.unshift(nt[2])),Ee.length&&(we="/"+Ee.join(".")+we),this.hostname=Pe.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),$e||(this.hostname=n.toASCII(this.hostname));var Ct=this.port?":"+this.port:"",ut=this.hostname||"";this.host=ut+Ct,this.href+=this.host,$e&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),we[0]!=="/"&&(we="/"+we))}if(!P[xe])for(var rt=0,Kt=o.length;rt<Kt;rt++){var Lt=o[rt];if(we.indexOf(Lt)!==-1){var $t=encodeURIComponent(Lt);$t===Lt&&($t=escape(Lt)),we=we.split(Lt).join($t)}}var Dt=we.indexOf("#");Dt!==-1&&(this.hash=we.substr(Dt),we=we.slice(0,Dt));var yn=we.indexOf("?");if(yn!==-1?(this.search=we.substr(yn),this.query=we.substr(yn+1),ne&&(this.query=W.parse(this.query)),we=we.slice(0,yn)):ne&&(this.search="",this.query={}),we&&(this.pathname=we),N[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ct=this.pathname||"",jn=this.search||"";this.path=Ct+jn}return this.href=this.format(),this};function q(V){return typeof V=="string"&&(V=H(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||"",G=this.pathname||"",oe=this.hash||"",de=!1,pe="";this.host?de=V+this.host:this.hostname&&(de=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(de+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(pe=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Se=this.search||pe&&"?"+pe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||N[ne])&&de!==!1?(de="//"+(de||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):de||(de=""),oe&&oe.charAt(0)!=="#"&&(oe="#"+oe),Se&&Se.charAt(0)!=="?"&&(Se="?"+Se),G=G.replace(/[?#]/g,function(we){return encodeURIComponent(we)}),Se=Se.replace("#","%23"),ne+de+G+Se+oe};function ie(V,ne){return H(V,!1,!0).resolve(ne)}e.prototype.resolve=function(V){return this.resolveObject(H(V,!1,!0)).format()};function te(V,ne){return V?H(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 G=new e,oe=Object.keys(this),de=0;de<oe.length;de++){var pe=oe[de];G[pe]=this[pe]}if(G.hash=V.hash,V.href==="")return G.href=G.format(),G;if(V.slashes&&!V.protocol){for(var Se=Object.keys(V),we=0;we<Se.length;we++){var Ce=Se[we];Ce!=="protocol"&&(G[Ce]=V[Ce])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(V.protocol&&V.protocol!==G.protocol){if(!N[V.protocol]){for(var De=Object.keys(V),xe=0;xe<De.length;xe++){var dt=De[xe];G[dt]=V[dt]}return G.href=G.format(),G}if(G.protocol=V.protocol,!V.host&&!F[V.protocol]){for(var Kt=(V.pathname||"").split("/");Kt.length&&!(V.host=Kt.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 fB=function(n,e){return fB=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])},fB(n,e)};function fj(n,e){fB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function vhe(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 Che(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 _he(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Che(arguments[e]));return n}var pj=function(){function n(e,t){this.target=t,this.type=e}return n}(),bhe=function(n){fj(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}(pj),xhe=function(n){fj(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}(pj);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var Mhe=function(){if(typeof WebSocket<"u")return WebSocket},whe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},M1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},She=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?M1.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?M1.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=vhe(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-BCveuT7B.js.map
+977
View File
@@ -0,0 +1,977 @@
(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 Gl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function fB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){var i=!1;try{i=this instanceof r}catch{}return i?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 $3={exports:{}},xv={},V3={exports:{}},hs={},jI;function Cj(){if(jI)return hs;jI=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"),C=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function R(Ie){return Ie===null||typeof Ie!="object"?null:(Ie=B&&Ie[B]||Ie["@@iterator"],typeof Ie=="function"?Ie:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function W(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}W.prototype.isReactComponent={},W.prototype.setState=function(Ie,$e){if(typeof Ie!="object"&&typeof Ie!="function"&&Ie!=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,Ie,$e,"setState")},W.prototype.forceUpdate=function(Ie){this.updater.enqueueForceUpdate(this,Ie,"forceUpdate")};function X(){}X.prototype=W.prototype;function $(Ie,$e,gt){this.props=Ie,this.context=$e,this.refs=N,this.updater=gt||P}var re=$.prototype=new X;re.constructor=$,U(re,W.prototype),re.isPureReactComponent=!0;var te=Array.isArray,V=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function le(Ie,$e,gt){var Dt,ut={},Rt=null,St=null;if($e!=null)for(Dt in $e.ref!==void 0&&(St=$e.ref),$e.key!==void 0&&(Rt=""+$e.key),$e)V.call($e,Dt)&&!G.hasOwnProperty(Dt)&&(ut[Dt]=$e[Dt]);var Ke=arguments.length-2;if(Ke===1)ut.children=gt;else if(1<Ke){for(var Pe=Array(Ke),Re=0;Re<Ke;Re++)Pe[Re]=arguments[Re+2];ut.children=Pe}if(Ie&&Ie.defaultProps)for(Dt in Ke=Ie.defaultProps,Ke)ut[Dt]===void 0&&(ut[Dt]=Ke[Dt]);return{$$typeof:n,type:Ie,key:Rt,ref:St,props:ut,_owner:ne.current}}function fe(Ie,$e){return{$$typeof:n,type:Ie.type,key:$e,ref:Ie.ref,props:Ie.props,_owner:Ie._owner}}function pe(Ie){return typeof Ie=="object"&&Ie!==null&&Ie.$$typeof===n}function we(Ie){var $e={"=":"=0",":":"=2"};return"$"+Ie.replace(/[=:]/g,function(gt){return $e[gt]})}var Se=/\/+/g;function xe(Ie,$e){return typeof Ie=="object"&&Ie!==null&&Ie.key!=null?we(""+Ie.key):$e.toString(36)}function je(Ie,$e,gt,Dt,ut){var Rt=typeof Ie;(Rt==="undefined"||Rt==="boolean")&&(Ie=null);var St=!1;if(Ie===null)St=!0;else switch(Rt){case"string":case"number":St=!0;break;case"object":switch(Ie.$$typeof){case n:case e:St=!0}}if(St)return St=Ie,ut=ut(St),Ie=Dt===""?"."+xe(St,0):Dt,te(ut)?(gt="",Ie!=null&&(gt=Ie.replace(Se,"$&/")+"/"),je(ut,$e,gt,"",function(Re){return Re})):ut!=null&&(pe(ut)&&(ut=fe(ut,gt+(!ut.key||St&&St.key===ut.key?"":(""+ut.key).replace(Se,"$&/")+"/")+Ie)),$e.push(ut)),1;if(St=0,Dt=Dt===""?".":Dt+":",te(Ie))for(var Ke=0;Ke<Ie.length;Ke++){Rt=Ie[Ke];var Pe=Dt+xe(Rt,Ke);St+=je(Rt,$e,gt,Pe,ut)}else if(Pe=R(Ie),typeof Pe=="function")for(Ie=Pe.call(Ie),Ke=0;!(Rt=Ie.next()).done;)Rt=Rt.value,Pe=Dt+xe(Rt,Ke++),St+=je(Rt,$e,gt,Pe,ut);else if(Rt==="object")throw $e=String(Ie),Error("Objects are not valid as a React child (found: "+($e==="[object Object]"?"object with keys {"+Object.keys(Ie).join(", ")+"}":$e)+"). If you meant to render a collection of children, use an array instead.");return St}function Me(Ie,$e,gt){if(Ie==null)return Ie;var Dt=[],ut=0;return je(Ie,Dt,"","",function(Rt){return $e.call(gt,Rt,ut++)}),Dt}function rt(Ie){if(Ie._status===-1){var $e=Ie._result;$e=$e(),$e.then(function(gt){(Ie._status===0||Ie._status===-1)&&(Ie._status=1,Ie._result=gt)},function(gt){(Ie._status===0||Ie._status===-1)&&(Ie._status=2,Ie._result=gt)}),Ie._status===-1&&(Ie._status=0,Ie._result=$e)}if(Ie._status===1)return Ie._result.default;throw Ie._result}var Ct={current:null},it={transition:null},nt={ReactCurrentDispatcher:Ct,ReactCurrentBatchConfig:it,ReactCurrentOwner:ne};function Ge(){throw Error("act(...) is not supported in production builds of React.")}return hs.Children={map:Me,forEach:function(Ie,$e,gt){Me(Ie,function(){$e.apply(this,arguments)},gt)},count:function(Ie){var $e=0;return Me(Ie,function(){$e++}),$e},toArray:function(Ie){return Me(Ie,function($e){return $e})||[]},only:function(Ie){if(!pe(Ie))throw Error("React.Children.only expected to receive a single React element child.");return Ie}},hs.Component=W,hs.Fragment=t,hs.Profiler=i,hs.PureComponent=$,hs.StrictMode=r,hs.Suspense=f,hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nt,hs.act=Ge,hs.cloneElement=function(Ie,$e,gt){if(Ie==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ie+".");var Dt=U({},Ie.props),ut=Ie.key,Rt=Ie.ref,St=Ie._owner;if($e!=null){if($e.ref!==void 0&&(Rt=$e.ref,St=ne.current),$e.key!==void 0&&(ut=""+$e.key),Ie.type&&Ie.type.defaultProps)var Ke=Ie.type.defaultProps;for(Pe in $e)V.call($e,Pe)&&!G.hasOwnProperty(Pe)&&(Dt[Pe]=$e[Pe]===void 0&&Ke!==void 0?Ke[Pe]:$e[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 QI;function _j(){if(QI)return xv;QI=1;var n=tl(),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,C){var x,B={},R=null,P=null;C!==void 0&&(R=""+C),f.key!==void 0&&(R=""+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:R,ref:P,props:B,_owner:i.current}}return xv.Fragment=t,xv.jsx=l,xv.jsxs=l,xv}var YI;function bj(){return YI||(YI=1,$3.exports=_j()),$3.exports}var oe=bj(),nr=tl();const ur=Gl(nr);var uF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ey=ur.createContext&&ur.createContext(uF),xj=["attr","size","title"];function Mj(n,e){if(n==null)return{};var t=wj(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 wj(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 d2(){return d2=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},d2.apply(this,arguments)}function qI(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 f2(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?qI(Object(t),!0).forEach(function(r){Sj(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):qI(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Sj(n,e,t){return e=Ej(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ej(n){var e=Bj(n,"string");return typeof e=="symbol"?e:e+""}function Bj(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 cF(n){return n&&n.map((e,t)=>ur.createElement(e.tag,f2({key:t},e.attr),cF(e.child)))}function rA(n){return e=>ur.createElement(Oj,d2({attr:f2({},n.attr)},e),cF(n.child))}function Oj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=Mj(n,xj),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),ur.createElement("svg",d2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:f2(f2({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&ur.createElement("title",null,s),n.children)};return Ey!==void 0?ur.createElement(Ey.Consumer,null,t=>e(t)):e(uF)}var sb={},H3={exports:{}},ad={},Z3={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 $I;function Ij(){return $I||($I=1,function(n){function e(it,nt){var Ge=it.length;it.push(nt);e:for(;0<Ge;){var Ie=Ge-1>>>1,$e=it[Ie];if(0<i($e,nt))it[Ie]=nt,it[Ge]=$e,Ge=Ie;else break e}}function t(it){return it.length===0?null:it[0]}function r(it){if(it.length===0)return null;var nt=it[0],Ge=it.pop();if(Ge!==nt){it[0]=Ge;e:for(var Ie=0,$e=it.length,gt=$e>>>1;Ie<gt;){var Dt=2*(Ie+1)-1,ut=it[Dt],Rt=Dt+1,St=it[Rt];if(0>i(ut,Ge))Rt<$e&&0>i(St,ut)?(it[Ie]=St,it[Rt]=Ge,Ie=Rt):(it[Ie]=ut,it[Dt]=Ge,Ie=Dt);else if(Rt<$e&&0>i(St,Ge))it[Ie]=St,it[Rt]=Ge,Ie=Rt;else break e}}return nt}function i(it,nt){var Ge=it.sortIndex-nt.sortIndex;return Ge!==0?Ge:it.id-nt.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=[],C=[],x=1,B=null,R=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,X=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 re(it){for(var nt=t(C);nt!==null;){if(nt.callback===null)r(C);else if(nt.startTime<=it)r(C),nt.sortIndex=nt.expirationTime,e(f,nt);else break;nt=t(C)}}function te(it){if(N=!1,re(it),!U)if(t(f)!==null)U=!0,rt(V);else{var nt=t(C);nt!==null&&Ct(te,nt.startTime-it)}}function V(it,nt){U=!1,N&&(N=!1,X(le),le=-1),P=!0;var Ge=R;try{for(re(nt),B=t(f);B!==null&&(!(B.expirationTime>nt)||it&&!we());){var Ie=B.callback;if(typeof Ie=="function"){B.callback=null,R=B.priorityLevel;var $e=Ie(B.expirationTime<=nt);nt=n.unstable_now(),typeof $e=="function"?B.callback=$e:B===t(f)&&r(f),re(nt)}else r(f);B=t(f)}if(B!==null)var gt=!0;else{var Dt=t(C);Dt!==null&&Ct(te,Dt.startTime-nt),gt=!1}return gt}finally{B=null,R=Ge,P=!1}}var ne=!1,G=null,le=-1,fe=5,pe=-1;function we(){return!(n.unstable_now()-pe<fe)}function Se(){if(G!==null){var it=n.unstable_now();pe=it;var nt=!0;try{nt=G(!0,it)}finally{nt?xe():(ne=!1,G=null)}}else ne=!1}var xe;if(typeof $=="function")xe=function(){$(Se)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Me=je.port2;je.port1.onmessage=Se,xe=function(){Me.postMessage(null)}}else xe=function(){W(Se,0)};function rt(it){G=it,ne||(ne=!0,xe())}function Ct(it,nt){le=W(function(){it(n.unstable_now())},nt)}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(it){it.callback=null},n.unstable_continueExecution=function(){U||P||(U=!0,rt(V))},n.unstable_forceFrameRate=function(it){0>it||125<it?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<it?Math.floor(1e3/it):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(it){switch(R){case 1:case 2:case 3:var nt=3;break;default:nt=R}var Ge=R;R=nt;try{return it()}finally{R=Ge}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(it,nt){switch(it){case 1:case 2:case 3:case 4:case 5:break;default:it=3}var Ge=R;R=it;try{return nt()}finally{R=Ge}},n.unstable_scheduleCallback=function(it,nt,Ge){var Ie=n.unstable_now();switch(typeof Ge=="object"&&Ge!==null?(Ge=Ge.delay,Ge=typeof Ge=="number"&&0<Ge?Ie+Ge:Ie):Ge=Ie,it){case 1:var $e=-1;break;case 2:$e=250;break;case 5:$e=1073741823;break;case 4:$e=1e4;break;default:$e=5e3}return $e=Ge+$e,it={id:x++,callback:nt,priorityLevel:it,startTime:Ge,expirationTime:$e,sortIndex:-1},Ge>Ie?(it.sortIndex=Ge,e(C,it),t(f)===null&&it===t(C)&&(N?(X(le),le=-1):N=!0,Ct(te,Ge-Ie))):(it.sortIndex=$e,e(f,it),U||P||(U=!0,rt(V))),it},n.unstable_shouldYield=we,n.unstable_wrapCallback=function(it){var nt=R;return function(){var Ge=R;R=nt;try{return it.apply(this,arguments)}finally{R=Ge}}}}(X3)),X3}var VI;function Tj(){return VI||(VI=1,Z3.exports=Ij()),Z3.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 HI;function kj(){if(HI)return ad;HI=1;var n=tl(),e=Tj();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,K=1;K<arguments.length;K++)_+="&args[]="+encodeURIComponent(arguments[K]);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,C=/^[: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 R(m){return f.call(B,m)?!0:f.call(x,m)?!1:C.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,K,Q){if(K!==null&&K.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:K!==null?!K.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,K,Q){if(_===null||typeof _>"u"||P(m,_,K,Q))return!0;if(Q)return!1;if(K!==null)switch(K.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,K,Q,se,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=se,this.mustUseProperty=K,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 X=/[\-:]([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(X,$);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(X,$);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(X,$);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 re(m,_,K,Q){var se=W.hasOwnProperty(_)?W[_]:null;(se!==null?se.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!==" Line truncated
`+Ie+m}var gt=!1;function Dt(m,_){if(!m||gt)return"";gt=!0;var K=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 se=Mn.stack.split(`
`),ye=Q.stack.split(`
`),tt=se.length-1,Ot=ye.length-1;1<=tt&&0<=Ot&&se[tt]!==ye[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(se[tt]!==ye[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||se[tt]!==ye[Ot]){var Qt=`
`+se[tt].replace(" at new "," at ");return m.displayName&&Qt.includes("<anonymous>")&&(Qt=Qt.replace("<anonymous>",m.displayName)),Qt}while(1<=tt&&0<=Ot);break}}}finally{gt=!1,Error.prepareStackTrace=K}return(m=m?m.displayName||m.name:"")?$e(m):""}function ut(m){switch(m.tag){case 5:return $e(m.type);case 16:return $e("Lazy");case 13:return $e("Suspense");case 19:return $e("SuspenseList");case 0:case 2:case 15:return m=Dt(m.type,!1),m;case 11:return m=Dt(m.type.render,!1),m;case 1:return m=Dt(m.type,!0),m;default:return""}}function Rt(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 fe:return"Profiler";case le:return"StrictMode";case xe:return"Suspense";case je:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case we:return(m.displayName||"Context")+".Consumer";case pe:return(m._context.displayName||"Context")+".Provider";case Se:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case Me:return _=m.displayName||null,_!==null?_:Rt(m.type)||"Memo";case rt:_=m._payload,m=m._init;try{return Rt(m(_))}catch{}}return null}function St(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 Rt(_);case 8:return _===le?"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 Ke(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 Re(m){var _=Pe(m)?"checked":"value",K=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof K<"u"&&typeof K.get=="function"&&typeof K.set=="function"){var se=K.get,ye=K.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return se.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:K.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function Ye(m){m._valueTracker||(m._valueTracker=Re(m))}function vt(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var K=_.getValue(),Q="";return m&&(Q=Pe(m)?m.checked?"true":"false":m.value),m=Q,m!==K?(_.setValue(m),!0):!1}function yt(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 Et(m,_){var K=_.checked;return Ge({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:K??m._wrapperState.initialChecked})}function Zt(m,_){var K=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;K=Ke(_.value!=null?_.value:K),m._wrapperState={initialChecked:Q,initialValue:K,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Ut(m,_){_=_.checked,_!=null&&re(m,"checked",_,!1)}function An(m,_){Ut(m,_);var K=Ke(_.value),Q=_.type;if(K!=null)Q==="number"?(K===0&&m.value===""||m.value!=K)&&(m.value=""+K):m.value!==""+K&&(m.value=""+K);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?Vt(m,_.type,K):_.hasOwnProperty("defaultValue")&&Vt(m,_.type,Ke(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function hr(m,_,K){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,K||_===m.value||(m.value=_),m.defaultValue=_}K=m.name,K!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,K!==""&&(m.name=K)}function Vt(m,_,K){(_!=="number"||yt(m.ownerDocument)!==m)&&(K==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+K&&(m.defaultValue=""+K))}var Vn=Array.isArray;function Pn(m,_,K,Q){if(m=m.options,_){_={};for(var se=0;se<K.length;se++)_["$"+K[se]]=!0;for(K=0;K<m.length;K++)se=_.hasOwnProperty("$"+m[K].value),m[K].selected!==se&&(m[K].selected=se),se&&Q&&(m[K].defaultSelected=!0)}else{for(K=""+Ke(K),_=null,se=0;se<m.length;se++){if(m[se].value===K){m[se].selected=!0,Q&&(m[se].defaultSelected=!0);return}_!==null||m[se].disabled||(_=m[se])}_!==null&&(_.selecte Line truncated
`).replace(Ed,"")}function Sh(m,_,K){if(_=ah(_),ah(m)!==_&&K)throw Error(t(425))}function Qu(){}var lh=null,PA=null;function pc(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Sl=typeof setTimeout=="function"?setTimeout:void 0,xu=typeof clearTimeout=="function"?clearTimeout:void 0,Mu=typeof Promise=="function"?Promise:void 0,zc=typeof queueMicrotask=="function"?queueMicrotask:typeof Mu<"u"?function(m){return Mu.resolve(null).then(m).catch(bs)}:Sl;function bs(m){setTimeout(function(){throw m})}function Yu(m,_){var K=_,Q=0;do{var se=K.nextSibling;if(m.removeChild(K),se&&se.nodeType===8)if(K=se.data,K==="/$"){if(Q===0){m.removeChild(se),to(_);return}Q--}else K!=="$"&&K!=="$?"&&K!=="$!"||Q++;K=se}while(K);to(_)}function Qa(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 mc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var K=m.data;if(K==="$"||K==="$!"||K==="$?"){if(_===0)return m;_--}else K==="/$"&&_++}m=m.previousSibling}return null}var Ql=Math.random().toString(36).slice(2),wu="__reactFiber$"+Ql,El="__reactProps$"+Ql,cA="__reactContainer$"+Ql,Ah="__reactEvents$"+Ql,ot="__reactListeners$"+Ql,Eh="__reactHandles$"+Ql;function Xs(m){var _=m[wu];if(_)return _;for(var K=m.parentNode;K;){if(_=K[cA]||K[wu]){if(K=_.alternate,_.child!==null||K!==null&&K.child!==null)for(m=mc(m);m!==null;){if(K=m[wu])return K;m=mc(m)}return _}m=K,K=m.parentNode}return null}function Ro(m){return m=m[wu]||m[cA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ai(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function Bs(m){return m[El]||null}var js=[],qu=-1;function il(m){return{current:m}}function Ps(m){0>qu||(m.current=js[qu],js[qu]=null,qu--)}function Os(m,_){qu++,js[qu]=m.current,m.current=_}var nu={},Ya=il(nu),gl=il(!1),yl=nu;function $u(m,_){var K=m.type.contextTypes;if(!K)return nu;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var se={},ye;for(ye in K)se[ye]=_[ye];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=se),se}function Bl(m){return m=m.childContextTypes,m!=null}function Oa(){Ps(gl),Ps(Ya)}function ru(m,_,K){if(Ya.current!==nu)throw Error(t(168));Os(Ya,_),Os(gl,K)}function uh(m,_,K){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return K;Q=Q.getChildContext();for(var se in Q)if(!(se in _))throw Error(t(108,St(m)||"Unknown",se));return Ge({},K,Q)}function Js(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||nu,yl=Ya.current,Os(Ya,m),Os(gl,gl.current),!0}function ch(m,_,K){var Q=m.stateNode;if(!Q)throw Error(t(169));K?(m=uh(m,_,yl),Q.__reactInternalMemoizedMergedChildContext=m,Ps(gl),Ps(Ya),Os(Ya,m)):Ps(gl),Os(gl,K)}var Yl=null,gf=!1,hh=!1;function iu(m){Yl===null?Yl=[m]:Yl.push(m)}function gc(m){gf=!0,iu(m)}function ou(){if(!hh&&Yl!==null){hh=!0;var m=0,_=bi;try{var K=Yl;for(bi=1;m<K.length;m++){var Q=K[m];do Q=Q(!0);while(Q!==null)}Yl=null,gf=!1}catch(se){throw Yl!==null&&(Yl=Yl.slice(m+1)),da(bo,ou),se}finally{bi=_,hh=!1}}return null}var ql=[],Xn=0,Mo=null,Ol=0,qa=[],ea=0,Su=null,RA=1,Ti="";function yc(m,_){ql[Xn++]=Ol,ql[Xn++]=Mo,Mo=m,Ol=_}function yf(m,_,K){qa[ea++]=RA,qa[ea++]=Ti,qa[ea++]=Su,Su=m;var Q=RA;m=Ti;var se=32-_n(Q)-1;Q&=~(1<<se),K+=1;var ye=32-_n(_)+se;if(30<ye){var tt=se-se%5;ye=(Q&(1<<tt)-1).toString(32),Q>>=tt,se-=tt,RA=1<<32-_n(_)+se|K<<se|Q,Ti=ye+m}else RA=1<<ye|K<<se|Q,Ti=m}function Vu(m){m.return!==null&&(yc(m,1),yf(m,1,0))}function Nc(m){for(;m===Mo;)Mo=ql[--Xn],ql[Xn]=null,Ol=ql[--Xn],ql[Xn]=null;for(;m===Su;)Su=qa[--ea],qa[ea]=null,Ti=qa[--ea],qa[ea]=null,RA=qa[--ea],qa[ea]=null}var ol=null,va=null,gs=!1,$l=null;function vc(m,_){var K=Mc(5,null,null,0);K.elementType="DELETED",K.stateNode=_,K.return=m,_=m.deletions,_===null?(m.deletions=[K],m.flags|=16):_.push(K)}function Cc(m,_){switch(m.tag){case 5:var K=m.type;return _=_.nodeType!==1||K.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,ol=m,va=Qa(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,ol=m,va=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(K=Su!==null?{id:RA,overflow:Ti}:null,m.memoizedState={dehydrated:_,treeContext:K,retryLane:1073741824},K=Mc(18,null,null,0),K.stateNode=_,K.return=m,m.child=K,ol=m,va=null,!0):!1;default:return!1}}function Hu(m){return(m.mode&1)!==0&&(m.flags&128)===0}function hA(m){if(gs){var _=va;if(_){var K=_;if(!Cc(m,_)){if(Hu(m))throw Error(t(418));_=Qa(K.nextSibling);var Q=ol;_&&Cc(m,_)?vc(Q,K):(m.flags=m.flags&-4097|2,gs=!1,ol=m)}}else{if(Hu(m))throw Error(t(418));m.flags=m.flags&-4097| Line truncated
Error generating stack: `+ye.message+`
`+ye.stack}return{value:m,source:_,stack:se,digest:null}}function dh(m,_,K){return{value:m,source:null,stack:K??null,digest:_??null}}function Td(m,_){try{console.error(_.value)}catch(K){setTimeout(function(){throw K})}}var gm=typeof WeakMap=="function"?WeakMap:Map;function kh(m,_,K){K=fA(-1,K),K.tag=3,K.payload={element:null};var Q=_.value;return K.callback=function(){_m||(_m=!0,Gp=Q),Td(m,_)},K}function _f(m,_,K){K=fA(-1,K),K.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var se=_.value;K.payload=function(){return Q(se)},K.callback=function(){Td(m,_)}}var ye=m.stateNode;return ye!==null&&typeof ye.componentDidCatch=="function"&&(K.callback=function(){Td(m,_),typeof Q!="function"&&(Ud===null?Ud=new Set([this]):Ud.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),K}function Vf(m,_,K){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new gm;var se=new Set;Q.set(_,se)}else se=Q.get(_),se===void 0&&(se=new Set,Q.set(_,se));se.has(K)||(se.add(K),m=rv.bind(null,m,_,K),_.then(m,m))}function Lp(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function rd(m,_,K,Q,se){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,K.flags|=131072,K.flags&=-52805,K.tag===1&&(K.alternate===null?K.tag=17:(_=fA(-1,1),_.tag=2,kl(K,_,1))),K.lanes|=1),m):(m.flags|=65536,m.lanes=se,m)}var kd=te.ReactCurrentOwner,Jl=!1;function Rl(m,_,K,Q){_.child=m===null?ri(_,null,K,Q):vr(_,m.child,K,Q)}function ym(m,_,K,Q,se){K=K.render;var ye=_.ref;return dA(_,se),Q=Ar(m,_,K,Q,ye,se),K=cr(),m!==null&&!Jl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,vA(m,_,se)):(gs&&K&&Vu(_),_.flags|=1,Rl(m,_,Q,se),_.child)}function Up(m,_,K,Q,se){if(m===null){var ye=K.type;return typeof ye=="function"&&!r0(ye)&&ye.defaultProps===void 0&&K.compare===null&&K.defaultProps===void 0?(_.tag=15,_.type=ye,wo(m,_,ye,Q,se)):(m=Wp(K.type,null,Q,_,_.mode,se),m.ref=_.ref,m.return=_,_.child=m)}if(ye=m.child,(m.lanes&se)===0){var tt=ye.memoizedProps;if(K=K.compare,K=K!==null?K:Lr,K(tt,Q)&&m.ref===_.ref)return vA(m,_,se)}return _.flags|=1,m=qc(ye,Q),m.ref=_.ref,m.return=_,_.child=m}function wo(m,_,K,Q,se){if(m!==null){var ye=m.memoizedProps;if(Lr(ye,Q)&&m.ref===_.ref)if(Jl=!1,_.pendingProps=Q=ye,(m.lanes&se)!==0)(m.flags&131072)!==0&&(Jl=!0);else return _.lanes=m.lanes,vA(m,_,se)}return fh(m,_,K,Q,se)}function vm(m,_,K){var Q=_.pendingProps,se=Q.children,ye=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Os(lu,xs),xs|=K;else{if((K&1073741824)===0)return m=ye!==null?ye.baseLanes|K:K,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Os(lu,xs),xs|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ye!==null?ye.baseLanes:K,Os(lu,xs),xs|=Q}else ye!==null?(Q=ye.baseLanes|K,_.memoizedState=null):Q=K,Os(lu,xs),xs|=Q;return Rl(m,_,se,K),_.child}function Ph(m,_){var K=_.ref;(m===null&&K!==null||m!==null&&m.ref!==K)&&(_.flags|=512,_.flags|=2097152)}function fh(m,_,K,Q,se){var ye=Bl(K)?yl:Ya.current;return ye=$u(_,ye),dA(_,se),K=Ar(m,_,K,Q,ye,se),Q=cr(),m!==null&&!Jl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~se,vA(m,_,se)):(gs&&Q&&Vu(_),_.flags|=1,Rl(m,_,K,se),_.child)}function UA(m,_,K,Q,se){if(Bl(K)){var ye=!0;Js(_)}else ye=!1;if(dA(_,se),_.stateNode===null)zA(m,_),td(_,K,Q),Fp(_,K,Q,se),Q=!0;else if(m===null){var tt=_.stateNode,Ot=_.memoizedProps;tt.props=Ot;var Qt=tt.context,Mn=K.contextType;typeof Mn=="object"&&Mn!==null?Mn=Do(Mn):(Mn=Bl(K)?yl:Ya.current,Mn=$u(_,Mn));var sr=K.getDerivedStateFromProps,yr=typeof sr=="function"||typeof tt.getSnapshotBeforeUpdate=="function";yr||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Ot!==Q||Qt!==Mn)&&nd(_,tt,Q,Mn),sl=!1;var ar=_.memoizedState;tt.state=ar,c(_,Q,tt,se),Qt=_.memoizedState,Ot!==Q||ar!==Qt||gl.current||sl?(typeof sr=="function"&&(Th(_,K,sr,Q),Qt=_.memoizedState),(Ot=sl||Id(_,K,Ot,Q,ar,Qt,Mn))?(yr||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=Qt),tt.props=Q,tt.state=Qt,tt.context=Mn,Q=Ot):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,Gc(m,_),Ot=_.memoizedProps,Mn=_.type===_.elementType?Ot:ta(_.type,Ot),tt.props=Mn,yr=_.pendingProps,ar=tt.context,Qt=K.contextType,typeof Qt=="object"&&Qt!==null?Qt=Do(Qt):(Qt=Bl(K)?yl:Ya.current,Qt=$u(_,Qt));var Wr=K.getDerivedStateFromProps;(sr=typeof Wr=="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 B8;function eQ(){return B8||(B8=1,function(n){const e=XW(),t=JW(),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 We=new Uint8Array(1),he={foo:function(){return 42}};return Object.setPrototypeOf(he,Uint8Array.prototype),Object.setPrototypeOf(We,he),We.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(We){if(We>i)throw new RangeError('The value "'+We+'" is invalid for option "size"');const he=new Uint8Array(We);return Object.setPrototypeOf(he,o.prototype),he}function o(We,he,me){if(typeof We=="number"){if(typeof he=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(We)}return f(We,he,me)}o.poolSize=8192;function f(We,he,me){if(typeof We=="string")return R(We,he);if(ArrayBuffer.isView(We))return U(We);if(We==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We);if(Dn(We,ArrayBuffer)||We&&Dn(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Dn(We,SharedArrayBuffer)||We&&Dn(We.buffer,SharedArrayBuffer)))return N(We,he,me);if(typeof We=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const et=We.valueOf&&We.valueOf();if(et!=null&&et!==We)return o.from(et,he,me);const bt=W(We);if(bt)return bt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof We[Symbol.toPrimitive]=="function")return o.from(We[Symbol.toPrimitive]("string"),he,me);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}o.from=function(We,he,me){return f(We,he,me)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function C(We){if(typeof We!="number")throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function x(We,he,me){return C(We),We<=0?l(We):he!==void 0?typeof me=="string"?l(We).fill(he,me):l(We).fill(he):l(We)}o.alloc=function(We,he,me){return x(We,he,me)};function B(We){return C(We),l(We<0?0:X(We)|0)}o.allocUnsafe=function(We){return B(We)},o.allocUnsafeSlow=function(We){return B(We)};function R(We,he){if((typeof he!="string"||he==="")&&(he="utf8"),!o.isEncoding(he))throw new TypeError("Unknown encoding: "+he);const me=re(We,he)|0;let et=l(me);const bt=et.write(We,he);return bt!==me&&(et=et.slice(0,bt)),et}function P(We){const he=We.length<0?0:X(We.length)|0,me=l(he);for(let et=0;et<he;et+=1)me[et]=We[et]&255;return me}function U(We){if(Dn(We,Uint8Array)){const he=new Uint8Array(We);return N(he.buffer,he.byteOffset,he.byteLength)}return P(We)}function N(We,he,me){if(he<0||We.byteLength<he)throw new RangeError('"offset" is outside of buffer bounds');if(We.byteLength<he+(me||0))throw new RangeError('"length" is outside of buffer bounds');let et;return he===void 0&&me===void 0?et=new Uint8Array(We):me===void 0?et=new Uint8Array(We,he):et=new Uint8Array(We,he,me),Object.setPrototypeOf(et,o.prototype),et}function W(We){if(o.isBuffer(We)){const he=X(We.length)|0,me=l(he);return me.length===0||We.copy(me,0,0,he),me}if(We.length!==void 0)return typeof We.length!="number"||Ln(We.length)?l(0):P(We);if(We.type==="Buffer"&&Array.isArray(We.data))return P(We.data)}function X(We){if(We>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return We|0}function $(We){return+We!=We&&(We=0),o.alloc(+We)}o.isBuffer=function(he){return he!=null&&he._isBuffer===!0&&he!==o.prototype},o.compare=function(he,me){if(Dn(he,Uint8Array)&&(he=o.from(he,he.offset,he.byteLength)),Dn(me,Uint8Array)&&(me=o.from(me,me.offset,me.byteLength)),!o.isBuffer(he)||!o.isBuffer(me))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(he===me)return 0;let et=he.length,bt=me.length;for(let Yt=0,Jt=Math.min(et,bt);Yt<Jt;++Yt)if(he[Yt]!==me[Yt]){et=he[Yt],bt=me[Yt];break}return et<bt?-1:bt<et?1:0},o.isEncoding=function(he){switch(String(he).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(he,me){if(!Array.isArray(he))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 sQ=zv.exports,I8;function aQ(){return I8||(I8=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__",C=500,x="__lodash_placeholder__",B=1,R=2,P=4,U=1,N=2,W=1,X=2,$=4,re=8,te=16,V=32,ne=64,G=128,le=256,fe=512,pe=30,we="...",Se=800,xe=16,je=1,Me=2,rt=3,Ct=1/0,it=9007199254740991,nt=17976931348623157e292,Ge=NaN,Ie=4294967295,$e=Ie-1,gt=Ie>>>1,Dt=[["ary",G],["bind",W],["bindKey",X],["curry",re],["curryRight",te],["flip",fe],["partial",V],["partialRight",ne],["rearg",le]],ut="[object Arguments]",Rt="[object Array]",St="[object AsyncFunction]",Ke="[object Boolean]",Pe="[object Date]",Re="[object DOMException]",Ye="[object Error]",vt="[object Function]",yt="[object GeneratorFunction]",Et="[object Map]",Zt="[object Number]",Ut="[object Null]",An="[object Object]",hr="[object Promise]",Vt="[object Proxy]",Vn="[object RegExp]",Pn="[object Set]",Dn="[object String]",Ln="[object Symbol]",Ir="[object Undefined]",rr="[object WeakMap]",Yn="[object WeakSet]",We="[object ArrayBuffer]",he="[object DataView]",me="[object Float32Array]",et="[object Float64Array]",bt="[object Int8Array]",Yt="[object Int16Array]",Jt="[object Int32Array]",ir="[object Uint8Array]",Xe="[object Uint8ClampedArray]",ae="[object Uint16Array]",ve="[object Uint32Array]",p=/\b__p \+= '';/g,Ne=/\b(__p \+=) '' \+/g,Ve=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Te=/&(?:amp|lt|gt|quot|#39);/g,lt=/[&<>"']/g,ct=RegExp(Te.source),Ft=RegExp(lt.source),jt=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,On=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Rn=/^\w*$/,dr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,or=RegExp(Tr.source),on=/^\s+/,ti=/\s/,li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jr=/\{\n\/\* \[wrapped with (.+)\] \*/,Fr=/,? & /,wn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Dr=/[()=,{}\[\]\/\s]/,ui=/\\(\\)?/g,Pi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yi=/\w*$/,As=/^[-+]0x[0-9a-f]+$/i,qr=/^0b[01]+$/i,_s=/^\[object .+?Constructor\]$/,La=/^0o[0-7]+$/i,da=/^(?:0|[1-9]\d*)$/,No=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zs=/($^)/,hl=/['\n\r\u2028\u2029\\]/g,ci="\\ud800-\\udfff",oa="\\u0300-\\u036f",bo="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",Er=oa+bo+lo,wa="\\u2700-\\u27bf",qo="a-z\\xdf-\\xf6\\xf8-\\xff",Jo="\\xac\\xb1\\xd7\\xf7",qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",_n=" \\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",jn="A-Z\\xc0-\\xd6\\xd8-\\xde",fn="\\ufe0e\\ufe0f",gr=Jo+qe+xt+_n,Qi="['’]",Io="["+ci+"]",fs="["+gr+"]",fa="["+Er+"]",iA="\\d+",vi="["+wa+"]",zu="["+qo+"]",jl="[^"+ci+gr+iA+wa+qo+jn+"]",nl="\\ud83c[\\udffb-\\udfff]",Ua="(?:"+fa+"|"+nl+")",JA="[^"+ci+"]",Sa="(?:\\ud83c[\\udde6-\\uddff]){2}",bi="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+jn+"]",Oi="\\u200d",xl="(?:"+zu+"|"+jl+")",Oo="(?:"+Ao+"|"+jl+")",Wl="(?:"+Qi+"(?:d|ll|m|re|s|t|ve))?",Di="(?:"+Qi+"(?:D|LL|M|RE|S|T|VE))?",oA=Ua+"?",sA="["+fn+"]?",za="(?:"+Oi+"(?:"+[JA,Sa,bi].join("|")+")"+sA+oA+")*",Ni="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",uo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",$o=sA+oA+za,Vo="(?:"+[vi,Sa,bi].join("|")+")"+$o,Hi="(?:"+[JA+fa+"?",fa,Sa,bi,Io].join("|")+")",Ea=RegExp(Qi,"g"),pa=RegExp(fa,"g"),Ss=RegExp(nl+"(?="+nl+")|"+Hi+$o,"g"),sa=RegExp([Ao+"?"+zu+"+"+Wl+"(?="+[fs,Ao,"$"].join("|")+")",Oo+"+"+Di+"(?="+[fs,Ao+xl,"$"].join("|")+")",Ao+"?"+xl+"+"+Wl,Ao+"+"+Di,uo,Ni,iA,Vo].join("|"),"g"),EA=RegExp("["+Oi+ci+Er+fn+"]"),Ii=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ho=["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"],Gi=-1,Sr={};Sr[me]=Sr[et]=Sr[bt]=Sr[Yt]=Sr[Jt]=Sr[ir]=Sr[Xe]=Sr[ae]=Sr[ve]=!0,Sr[ut]=Sr[Rt]=Sr[We]=Sr[Ke]=Sr[he]=Sr[Pe]=Sr[Ye]=Sr[vt]=Sr[Et]=Sr[Zt]=Sr[An]=Sr[Vn]=Sr[Pn]=Sr[Dn]=Sr[rr]=!1;var to={};to[ut]=to[Rt]=to[We]=to[he]=to[Ke]=to[Pe]=to[me]=to[et]=to[bt]=to[Yt]=to[Jt]=to[Et]=to[Zt]=to[An]=to[Vn]=to[Pn]=to[Dn]=to[Ln]=to[ir]=to[Xe]=to[ae]=to[ve]=!0,to[Ye]=to[vt]=to[rr]=!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 So(b)||op(b)||!!(mf&&b&&b[mf])}function E(b,T){var q=typeof b;return T=T??it,!!T&&(q=="number"||q!="symbol"&&da.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,q){if(!Cl(q))return!1;var Ce=typeof T;return(Ce=="number"?$c(q)&&E(T,q.length):Ce=="string"&&T in q)?sd(q[T],b):!1}function D(b,T){if(So(b))return!1;var q=typeof b;return q=="number"||q=="symbol"||q=="boolean"||b==null||Dh(b)?!0:Rn.test(b)||!On.test(b)||T!=null&&b in es(T)}function H(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ce(b){var T=id(b),q=ot[T];if(typeof q!="function"||!(T in ai.prototype))return!1;if(b===q)return!0;var Ce=Dd(q);return!!Ce&&b===Ce[0]}function _e(b){return!!vu&&vu in b}var ke=ga?sp:zh;function Ue(b){var T=b&&b.constructor,q=typeof T=="function"&&T.prototype||ja;return b===q}function mt(b){return b===b&&!Cl(b)}function Bt(b,T){return function(q){return q==null?!1:q[b]===T&&(T!==t||b in es(q))}}function tn(b){var T=pn(b,function(Ce){return q.size===C&&q.clear(),Ce}),q=T.cache;return T}function qt(b,T){var q=b[1],Ce=T[1],Ze=q|Ce,ht=Ze<(W|X|G),Lt=Ce==G&&q==re||Ce==G&&q==le&&b[7].length<=T[8]||Ce==(G|le)&&T[7].length<=T[8]&&q==re;if(!(ht||Lt))return b;Ce&W&&(b[2]=T[2],Ze|=q&W?0:$);var $t=T[3];if($t){var an=b[3];b[3]=an?Bd(an,$t,T[4]):$t,b[4]=an?rl(b[3],x):T[4]}return $t=T[5],$t&&(an=b[5],b[5]=an?Od(an,$t,T[6]):$t,b[6]=an?rl(b[5],x):T[6]),$t=T[7],$t&&(b[7]=$t),Ce&G&&(b[8]=b[8]==null?T[8]:ya(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=Ze,b}function xn(b){var T=[];if(b!=null)for(var q in es(b))T.push(q);return T}function Fn(b){return TA.call(b)}function Kn(b,T,q){return T=ms(T===t?b.length-1:T,0),function(){for(var Ce=arguments,Ze=-1,ht=ms(Ce.length-T,0),Lt=dn(ht);++Ze<ht;)Lt[Ze]=Ce[T+Ze];Ze=-1;for(var $t=dn(T+1);++Ze<T;)$t[Ze]=Ce[Ze];return $t[T]=q(Lt),Gs(b,this,$t)}}function Hn(b,T){return T.length<2?b:Bu(b,Hr(T,0,-1))}function br(b,T){for(var q=b.length,Ce=ya(T.length,q),Ze=gA(b);Ce--;){var ht=T[Ce];b[Ce]=E(ht,q)?Ze[ht]:t}return b}function fr(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Pr=fo(cr),Jr=Uc||function(b,T){return Rr.setTimeout(b,T)},zr=fo(kn);function eo(b,T,q){var Ce=T+"";return zr(b,u(Ce,na(Ra(Ce),q)))}function fo(b){var T=0,q=0;return function(){var Ce=Ed(),Ze=xe-(Ce-q);if(q=Ce,Ze>0){if(++T>=Se)return arguments[0]}else T=0;return b.apply(t,arguments)}}function _a(b,T){var q=-1,Ce=b.length,Ze=Ce-1;for(T=T===t?Ce:T;++q<T;){var ht=zt(q,Ze),Lt=b[ht];b[ht]=b[q],b[q]=Lt}return b.length=T,b}var vs=tn(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(dr,function(q,Ce,Ze,ht){T.push(Ze?ht.replace(ui,"$1"):Ce||q)}),T});function Ys(b){if(typeof b=="string"||Dh(b))return b;var T=b+"";return T=="0"&&1/b==-Ct?"-0":T}function qs(b){if(b!=null){try{return ih.call(b)}catch{}try{return b+""}catch{}}return""}function na(b,T){return Ga(Dt,function(q){var Ce="_."+q[0];T&q[1]&&!aA(b,Ce)&&b.push(Ce)}),b.sort()}function NA(b){if(b instanceof ai)return b.clone();var T=new Ro(b.__wrapped__,b.__chain__);return T.__actions__=gA(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function $a(b,T,q){(q?S(b,T,q):T===t)?T=1:T=ms(Lo(T),0);var Ce=b==null?0:b.length;if(!Ce||T<1)return[];for(var Ze=0,ht=0,Lt=dn(_u(Ce/T));Ze<Ce;)Lt[ht++]=Hr(b,Ze,Ze+=T);return Lt}function Ds(b){for(var T=-1,q=b==null?0:b.length,Ce=0,Ze=[];++T<q;){var ht=b[T];ht&&(Ze[Ce++]=ht)}return Ze}function cs(){var b=arguments.length;if(!b)return[];for(var T=dn(b-1),q=arguments[0],Ce=b;Ce--;)T[Ce-1]=arguments[Ce];return Tc(So(q)?gA(q):[q],vr(T,1))}var xi=en(function(b,T){return Kl(b)?Eu(b,vr(T,1,Kl,!0)):[]}),Qo=en(function(b,T){var q=_A(T);return Kl(q)&&(q=t),Kl(b)?Eu(b,vr(T,1,Kl,!0),Mi(q,2)):[]}),$s=en(function(b,T){var q=_A(T);return Kl(q)&&(q=t),Kl(b)?Eu(b,vr(T,1,Kl,!0),t,q):[]});function la(b,T,q){var Ce=b==null?0:b.length;return Ce?(T=q||T===t?1:Lo(T),Hr(b,T<0?0:T,Ce)):[]}function xs(b,T,q){var Ce=b==null?0:b.length;return Ce?(T=q||T===t?1:Lo(T),T=Ce-T,Hr(b,0,T<0?0:T)):[]}function lu(b,T){return b&&b.length?Ca(b,Mi(T,3),!0,!0):[]}function Fo(b,T){return b&&b.length?Ca(b,Mi(T,3),!0):[]}function Fd(b,T,q,Ce){var Ze=b==null?0:b.length;return Ze?(q&&typeof q!="number"&&S(b,T,q)&&(q=0,Ce=Ze),Il(b,T,q,Ce)):[]}function GA(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=q==null?0:Lo(q);return Ze<0&&(Ze=ms(Ce+Ze,0)),Nu(b,Mi(T,3),Ze)}function Yc(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=Ce-1;return q!==t&&(Ze=Lo(q),Ze=q<0?ms(Ce+Ze,0):ya(Ze,Ce-1)),Nu(b,Mi(T,3),Ze,!0)}function xc(b){var T=b==null?0:b.length;return T?vr(b,1):[]}function al(b){var T=b==null?0:b.length;return T?vr(b,Ct):[]}function ll(b,T){var q=b==null?0:b.length;return q?(T=T===t?1:Lo(T),vr(b,T)):[]}function Mf(b){for(var T=-1,q=b==null?0:b.length,Ce={};++T<q;){var Ze=b[T];Ce[Ze[0]]=Ze[1]}return Ce}function Ld(b){return b&&b.length?b[0]:t}function od(b,T,q){var Ce=b==null?0:b.length;if(!Ce)return-1;var Ze=q==null?0:Lo(q);return Ze<0&&(Z Line truncated
`;b.replace($r,function(ro,Cs,Is,Vd,Nh,Hd){return Is||(Is=Vd),mr+=b.slice(qn,Hd).replace(hl,Rc),Cs&&($t=!0,mr+=`' +
__e(`+Cs+`) +
'`),Nh&&(an=!0,mr+=`';
`+Nh+`;
__p += '`),Is&&(mr+=`' +
((__t = (`+Is+`)) == null ? '' : __t) +
'`),qn=Hd+ro.length,ro}),mr+=`';
`;var no=Po.call(T,"variable")&&T.variable;if(!no)mr=`with (obj) {
`+mr+`
}
`;else if(Dr.test(no))throw new Ri(o);mr=(an?mr.replace(p,""):mr).replace(Ne,"$1").replace(Ve,"$1;"),mr="function("+(no||"obj")+`) {
`+(no?"":`obj || (obj = {});
`)+"var __t, __p = ''"+($t?", __e = _.escape":"")+(an?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mr+`return __p
}`;var ns=yv(function(){return Go(ht,Bi+"return "+mr).apply(t,Lt)});if(ns.source=mr,Cg(ns))throw ns;return ns}function ba(b){return Ks(b).toLowerCase()}function Yd(b){return Ks(b).toUpperCase()}function p0(b,T,q){if(b=Ks(b),b&&(q||T===t))return cf(b);if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=Ba(T),ht=Gu(Ce,Ze),Lt=bh(Ce,Ze)+1;return Zl(Ce,ht,Lt).join("")}function qd(b,T,q){if(b=Ks(b),b&&(q||T===t))return b.slice(0,Mh(b)+1);if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=bh(Ce,Ba(T))+1;return Zl(Ce,0,Ze).join("")}function z3(b,T,q){if(b=Ks(b),b&&(q||T===t))return b.replace(on,"");if(!b||!(T=ho(T)))return b;var Ce=Ba(b),Ze=Gu(Ce,Ba(T));return Zl(Ce,Ze).join("")}function m0(b,T){var q=pe,Ce=we;if(Cl(T)){var Ze="separator"in T?T.separator:Ze;q="length"in T?Lo(T.length):q,Ce="omission"in T?ho(T.omission):Ce}b=Ks(b);var ht=b.length;if(ju(b)){var Lt=Ba(b);ht=Lt.length}if(q>=ht)return b;var $t=q-so(Ce);if($t<1)return Ce;var an=Lt?Zl(Lt,0,$t).join(""):b.slice(0,$t);if(Ze===t)return an+Ce;if(Lt&&($t+=an.length-$t),h0(Ze)){if(b.slice($t).search(Ze)){var qn,Zn=an;for(Ze.global||(Ze=cc(Ze.source,Ks(yi.exec(Ze))+"g")),Ze.lastIndex=0;qn=Ze.exec(Zn);)var mr=qn.index;an=an.slice(0,mr===t?$t:mr)}}else if(b.indexOf(ho(Ze),$t)!=$t){var $r=an.lastIndexOf(Ze);$r>-1&&(an=an.slice(0,$r))}return an+Ce}function Om(b){return b=Ks(b),b&&ct.test(b)?b.replace(Te,Md):b}var g0=td(function(b,T,q){return b+(q?" ":"")+T.toUpperCase()}),Hp=Id("toUpperCase");function Im(b,T,q){return b=Ks(b),T=q?t:T,T===t?qf(b)?ff(b):Vh(b):b.match(T)||[]}var yv=en(function(b,T){try{return Gs(b,t,T)}catch(q){return Cg(q)?q:new Ri(q)}}),eb=Qc(function(b,T){return Ga(T,function(q){q=Ys(q),vc(b,q,yr(b[q],b))}),b});function tb(b){var T=b==null?0:b.length,q=Mi();return b=T?ps(b,function(Ce){if(typeof Ce[1]!="function")throw new IA(l);return[q(Ce[0]),Ce[1]]}):[],en(function(Ce){for(var Ze=-1;++Ze<T;){var ht=b[Ze];if(Gs(ht[0],this,Ce))return Gs(ht[1],this,Ce)}})}function nb(b){return _c(hA(b,B))}function f1(b){return function(){return b}}function vv(b,T){return b==null||b!==b?T:b}var ap=dh(),rb=dh(!0);function Zc(b){return b}function Cv(b){return Y(typeof b=="function"?b:hA(b,B))}function N3(b){return Be(hA(b,B))}function G3(b,T){return ze(b,hA(T,B))}var j3=en(function(b,T){return function(q){return sl(q,b,T)}}),W3=en(function(b,T){return function(q){return sl(b,q,T)}});function _v(b,T,q){var Ce=ue(T),Ze=Ws(T,Ce);q==null&&!(Cl(T)&&(Ze.length||!Ce.length))&&(q=T,T=b,b=this,Ze=Ws(T,ue(T)));var ht=!(Cl(q)&&"chain"in q)||!!q.chain,Lt=sp(b);return Ga(Ze,function($t){var an=T[$t];b[$t]=an,Lt&&(b.prototype[$t]=function(){var qn=this.__chain__;if(ht||qn){var Zn=b(this.__wrapped__),mr=Zn.__actions__=gA(this.__actions__);return mr.push({func:an,args:arguments,thisArg:b}),Zn.__chain__=qn,Zn}return an.apply(b,Tc([this.value()],arguments))})}),b}function Q3(){return Rr._===this&&(Rr._=Wa),this}function bv(){}function $d(b){return b=Lo(b),en(function(T){return dt(T,b)})}var Mg=_f(ps),ib=_f(uc),Y3=_f(qh);function ob(b){return D(b)?_h(Ys(b)):Mt(b)}function q3(b){return function(T){return b==null?t:Bu(b,T)}}var ic=rd(),Uh=rd(!0);function lp(){return[]}function zh(){return!1}function Tm(){return{}}function If(){return""}function tj(){return!0}function nj(b,T){if(b=Lo(b),b<1||b>it)return[];var q=Ie,Ce=ya(b,Ie);T=Mi(T),b-=Ie;for(var Ze=Pc(Ce,T);++q<b;)T(q);return Ze}function rj(b){return So(b)?ps(b,Ys):Dh(b)?[b]:gA(vs(Ks(b)))}function ij(b){var T=++Fc;return Ks(b)+T}var oj=kh(function(b,T){return b+T},0),sj=Rl("ceil"),aj=kh(function(b,T){return b/T},1),lj=Rl("floor");function Aj(b){return b&&b.length?Oh(b,Zc,dA):t}function uj(b,T){return b&&b.length?Oh(b,Mi(T,2),dA):t}function cj(b){return nh(b,Zc)}function hj(b,T){return nh(b,Mi(T,2))}function dj(b){return b&&b.length?Oh(b,Zc,de):t}function fj(b,T){return b&&b.length?Oh(b,Mi(T,2),de):t}var pj=kh(function(b,T){return b*T},1),mj=Rl("round"),gj=kh(function(b,T){return b-T},0);function yj(b){return b&&b.length?vd(b,Zc):0}function vj(b,T){return b&&b.length?vd(b,Mi(T,2)):0}return ot.after=Qt,ot.ary=Mn,ot.assign=cv,ot.assignIn=hv,ot.assignInWith=Vp,ot.assignWith=dv,ot.at=J_,ot.before=sr,ot.bind=yr,ot.bindAll=eb,ot.bindKey=ar,ot.castArray=D3,ot.chain=r0,ot.chunk=$a,ot.compact=Ds,ot.concat=cs,ot.cond=tb,ot.conforms=nb,ot.constant=f1,ot.countBy=s1,ot.create=fv,ot.curry=Wr,ot.curryRight=ii,ot.debounce=hi,ot.defaults=xg,ot.defaultsDeep=d1,ot.defer=Al,ot.delay=un,ot.difference=xi,ot.differenceBy=Qo,ot.differenceWith=$s,ot.drop=la,ot.dropRight=xs,ot.dropRightWhile=lu,ot.dropWhile=Fo,ot.fill=Fd,ot.filter=rp,ot.flatMap=Qp,ot.flatMapDeep=o0,ot.flatMapDepth=gg,ot.flatten=xc,ot.flattenDeep=al,ot.flattenDepth=ll,ot.flip=Xt,ot.flow=ap,ot.flowRight=rb,ot.fromPairs=Mf,ot.functions=h,ot.functionsIn=y,ot.groupBy=a0,ot.initial=_m,ot.intersection=Gp,ot.intersectionBy=Ud,ot.intersectionWith=bm,ot.invert=j,ot.invertBy=Z,ot.invokeMap=a1,ot.iteratee=Cv,ot.keyBy=yg,ot.keys=ue,ot.keysIn=ge,ot.map=Gd,ot.mapKeys=De,ot.mapValues=Le,ot.matches=N3,ot.matchesProperty=G3,ot.memo Line truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const R=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&R.push(new wr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Qy(Y1(l))&&ZA(l.type)==="identity"&&R.push(new wr(t,l,'"text-font" does not support identity functions'))),R.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function yL(n){return gL(n,"paint")}function vL(n){return gL(n,"layout")}function CL(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;if(is(t)!=="object")return[new wr(r,t,`object expected, ${is(t)} found`)];!t.type&&!t.ref&&e.push(new wr(r,t,'either "type" or "ref" is required'));let l=ZA(t.type);const o=ZA(t.ref);if(t.id){const f=ZA(t.id);for(let C=0;C<n.arrayIndex;C++){const x=i.layers[C];ZA(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(C=>{C in t&&e.push(new wr(r,t[C],`"${C}" is prohibited for ref layers`))});let f;i.layers.forEach(C=>{ZA(C.id)===o&&(f=C)}),f?f.ref?e.push(new wr(r,t.ref,"ref cannot reference another ref layer")):l=ZA(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],C=f&&ZA(f.type);f?C==="vector"&&l==="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster source`)):C!=="raster-dem"&&l==="hillshade"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):C==="raster"&&l!=="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a vector source`)):C==="vector"&&!t["source-layer"]?e.push(new wr(r,t,`layer "${t.id}" must specify a "source-layer"`)):C==="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"]&&(C!=="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(Uf({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:YB,layout(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return vL(By({layerType:l},C))}}})},paint(f){return Uf({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(C){return yL(By({layerType:l},C))}}})}}})),e}function q1(n){const e=n.value,t=n.key,r=is(e);return r!=="string"?[new wr(t,e,`string expected, ${r} found`)]:[]}function m$(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=is(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=ZA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],R=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". ${R} 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 n7={promoteId:g$};function _L(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=ZA(e.type);let o;switch(l){case"vector":case"raster":return o=Uf({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:n7,validateSpec:s}),o;case"raster-dem":return o=m$({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Uf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:n7}),e.cluster)for(const f in e.clusterProperties){const[C,x]=e.clusterProperties[f],B=typeof C=="string"?[C,["accumulated"],["get",f]]:C;o.push(...Ty({key:`${t}.${f}.map`,value:x,expressionContext:"cluster-map"})),o.push(...Ty({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Uf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Uf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new wr(t,null,"PlLine truncated
${B}`),N].join(`
${o}`)}return C}(n,"",0)}function i7(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 OL(n,e=2){return n=i7(n,ws.$root),n.layers&&(n.layers=n.layers.map(t=>i7(t,ws.layer))),I$(n,{indent:e})}function y4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function o7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function m6(n,e){return typeof e=="string"&&e[0]==="@"?m6(n,n.constants[e]):e}function T$(n){return Array.isArray(n.stops)}function Sv(n,e,t){n[t]=n[e],delete n[e]}function k$(n){n.version=8,f$(n,i=>{i.type==="video"&&i.url!==void 0&&Sv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),uC(n,i=>{y4(i,s=>{s["symbol-min-distance"]!==void 0&&Sv(s,"symbol-min-distance","symbol-spacing")}),o7(i,s=>{s["background-image"]!==void 0&&Sv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&Sv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&Sv(s,"fill-image","fill-pattern")})}),WB(n,{paint:!0,layout:!0},i=>{const s=m6(n,i.value);T$(s)&&s.stops.forEach(l=>{l[1]=m6(n,l[1])}),i.set(s)}),delete n.constants,uC(n,i=>{y4(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),o7(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")}uC(n,i=>{y4(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 P$(n){const e=[];return uC(n,t=>{t.filter&&(t.filter=AC(t.filter))}),WB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Yy(r)||(typeof r=="object"&&!Array.isArray(r)?(s(zB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(dL(r)))}),n}function R$(n){return JSON.parse(D$(JSON.stringify(n)))}function D$(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 K$(n){let e=!1;if(n.version===7&&(n=k$(n),e=!0),n.version===8&&(e=!!P$(n),e=!0),WB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(R$(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const F$=ws,L$={StyleExpression:cL,StylePropertyFunction:kx,ZoomConstantExpression:h6,ZoomDependentExpression:d6,createExpression:Ix,createPropertyExpression:Tx,isExpression:Yy,isExpressionFilter:d_,isZoomExpression:Jq,normalizePropertyExpression:e$},U$={convertFunction:zB,createFunction:UB,isFunction:Qy};var Dx=Ax();const z$=Gl(Dx);var t2={exports:{}};/**
* MapLibre GL JS
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.5.0/LICENSE.txt
*/var N$=t2.exports,s7;function G$(){return s7||(s7=1,function(n,e){(function(t,r){n.exports=r()})(N$,function(){var t={},r={};function i(l,o,f){if(r[l]=f,l==="index"){var C="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([C],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(d,A,h,y){return new(h||(h=Promise))(function(w,k){function F(ie){try{Z(y.next(ie))}catch(ue){k(ue)}}function j(ie){try{Z(y.throw(ie))}catch(ue){k(ue)}}function Z(ie){var ue;ie.done?w(ie.value):(ue=ie.value,ue instanceof h?ue:new h(function(ge){ge(ue)})).then(F,j)}Z((y=y.apply(d,A||[])).next())})}function f(d){return d&&d.__esModule&&Object.prototype.hasOwnProperty.call(d,"default")?d.default:d}var C,x;function B(){if(x)return C;function d(A,h){this.x=A,this.y=h}return x=1,C=d,d.prototype={clone:function(){return new d(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,h){return this.clone()._rotateAround(A,h)},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 h=A.x-this.x,y=A.y-this.y;return h*h+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,h){return Math.atan2(this.x*h-this.y*A,this.x*A+this.y*h)},_matMult:function(A){var h=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=h,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 h=Math.cos(A),y=Math.sin(A),w=y*this.x+h*this.y;return this.x=h*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,h){var y=Math.cos(A),w=Math.sin(A),k=h.y+w*(this.x-h.x)+y*(this.y-h.y);return this.x=h.x+y*(this.x-h.x)-w*(this.y-h.y),this.y=k,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},d.convert=function(A){return A instanceof d?A:Array.isArray(A)?new d(A[0],A[1]):A},C}typeof SuppressedError=="function"&&SuppressedError;var R,P,U=f(B()),N=function(){if(P)return R;function d(A,h,y,w){this.cx=3*A,this.bx=3*(y-A)-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=A,this.p1y=h,this.p2x=y,this.p2y=w}return P=1,R=d,d.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,h){if(h===void 0&&(h=1e-6),A<0)return 0;if(A>1)return 1;for(var y=A,w=0;w<8;w++){var k=this.sampleCurveX(y)-A;if(Math.abs(k)<h)return y;var F=this.sampleCurveDerivativeX(y);if(Math.abs(F)<1e-6)break;y-=k/F}var j=0,Z=1;for(y=A,w=0;w<20&&(k=this.sampleCurveX(y),!(Math.abs(k-A)<h));w++)A>k?j=y:Z=y,y=.5*(Z-j)+j;return y},solve:function(A,h){return this.sampleCurveY(this.solveCurveX(A,h))}},R}(),W=f(N);let X,$;function re(){return X==null&&(X=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),X}function te(){if($==null&&($=!1,re())){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 h=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&h[y]!==y){$=!0;break}}}return $||!1}var V=1e-6,ne=typeof Float32Array<"u"?Float32Array:Array;function G(){var d=new ne(9);return ne!=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 le(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 ne(3);return ne!=Float32Array&&(d[0]=0,d[1]=0,d[2]=0),d}function pe(d){return Math.hypot(d[0],d[1],d[2])}function we(d,A,h){var y=new neLine truncated
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ge[1])} }\`.`)];const De=[];return d.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&De.push(new on(h,F,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&Lc(Yu(F))&&bs(F.type)==="identity"&&De.push(new on(h,F,'"text-font" does not support identity functions'))),De.concat(y({key:d.key,value:F,valueSpec:ue,style:w,styleSpec:k,expressionContext:"property",propertyType:A,propertyKey:j}))}function Ro(d){return Xs(d,"paint")}function ai(d){return Xs(d,"layout")}function Bs(d){let A=[];const h=d.value,y=d.key,w=d.style,k=d.styleSpec;if(Zi(h)!=="object")return[new on(y,h,`object expected, ${Zi(h)} found`)];h.type||h.ref||A.push(new on(y,h,'either "type" or "ref" is required'));let F=bs(h.type);const j=bs(h.ref);if(h.id){const Z=bs(h.id);for(let ie=0;ie<d.arrayIndex;ie++){const ue=w.layers[ie];bs(ue.id)===Z&&A.push(new on(y,h.id,`duplicate layer id "${h.id}", previously used at line ${ue.id.__line__}`))}}if("ref"in h){let Z;["type","source","source-layer","filter","layout"].forEach(ie=>{ie in h&&A.push(new on(y,h[ie],`"${ie}" is prohibited for ref layers`))}),w.layers.forEach(ie=>{bs(ie.id)===j&&(Z=ie)}),Z?Z.ref?A.push(new on(y,h.ref,"ref cannot reference another ref layer")):F=bs(Z.type):A.push(new on(y,h.ref,`ref layer "${j}" not found`))}else if(F!=="background")if(h.source){const Z=w.sources&&w.sources[h.source],ie=Z&&bs(Z.type);Z?ie==="vector"&&F==="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster source`)):ie!=="raster-dem"&&F==="hillshade"?A.push(new on(y,h.source,`layer "${h.id}" requires a raster-dem source`)):ie==="raster"&&F!=="raster"?A.push(new on(y,h.source,`layer "${h.id}" requires a vector source`)):ie!=="vector"||h["source-layer"]?ie==="raster-dem"&&F!=="hillshade"?A.push(new on(y,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!h.paint||!h.paint["line-gradient"]||ie==="geojson"&&Z.lineMetrics||A.push(new on(y,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new on(y,h,`layer "${h.id}" must specify a "source-layer"`)):A.push(new on(y,h.source,`source "${h.source}" not found`))}else A.push(new on(y,h,'missing required property "source"'));return A=A.concat(Qa({key:y,value:h,valueSpec:k.layer,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*":()=>[],type:()=>d.validateSpec({key:`${y}.type`,value:h.type,valueSpec:k.layer.type,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,object:h,objectKey:"type"}),filter:ot,layout:Z=>Qa({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ie=>ai(ti({layerType:F},ie))}}),paint:Z=>Qa({layer:h,key:Z.key,value:Z.value,style:Z.style,styleSpec:Z.styleSpec,validateSpec:Z.validateSpec,objectElementValidators:{"*":ie=>Ro(ti({layerType:F},ie))}})}})),A}function js(d){const A=d.value,h=d.key,y=Zi(A);return y!=="string"?[new on(h,A,`string expected, ${y} found`)]:[]}const qu={promoteId:function({key:d,value:A}){if(Zi(A)==="string")return js({key:d,value:A});{const h=[];for(const y in A)h.push(...js({key:`${d}.${y}`,value:A[y]}));return h}}};function il(d){const A=d.value,h=d.key,y=d.styleSpec,w=d.style,k=d.validateSpec;if(!A.type)return[new on(h,A,'"type" is required')];const F=bs(A.type);let j;switch(F){case"vector":case"raster":return j=Qa({key:h,value:A,valueSpec:y[`source_${F.replace("-","_")}`],style:d.style,styleSpec:y,objectElementValidators:qu,validateSpec:k}),j;case"raster-dem":return j=function(Z){var ie;const ue=(ie=Z.sourceName)!==null&&ie!==void 0?ie:"",ge=Z.value,De=Z.styleSpec,Le=De.source_raster_dem,Qe=Z.style;let Je=[];const At=Zi(ge);if(ge===void 0)return Je;if(At!=="object")return Je.push(new on("source_raster_dem",ge,`object expected, ${At} found`)),Je;const _t=bs(ge.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],It=Z.value.encoding?`"${Z.value.encoding}"`:"Default";for(const Fe in ge)!_t&&Wt.includes(Fe)?Je.push(new on(Fe,ge[Fe],`In "${ue}": "${Fe}" is only valid when "encoding" is set to "custom". ${It} encoding found`)):Le[Fe]?Je=Je.concat(Z.validateSpec({key:Fe,value:ge[Fe],valueSpec:Le[Fe],validateSpec:Z.validateSpec,style:Qe,styleSpec:De})):Je.push(new on(Fe,ge[Fe],`unknown property "${Fe}"`));return Je}({sourceName:h,value:A,style:d.style,styleSpec:y,validateSpec:k}),j;case"geojson":if(j=Qa({key:h,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:k,objectElementValidators:qu}),A.cluster)for(const Z in A.clusterProperties){const[ie,ue]=A.clusterProperties[Z],ge=typeof ie=="string"?[ie,["accumulated"],["get",Z]]:ie;j.push(...El({key:`${h}.${Z}.map`,value:ue,expressionContext:"cluster-map"})),j.push(...El({key:`${h}.${Z}.reduce`,value:ge,expressionContext:"cluster-reduce"}))}return j;case"video":return Qa({key:h,value:A,valuLine 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:Oi("","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:Oi("",`#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:Oi(`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:Oi(`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:Oi(`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:Oi(bi,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:Oi(`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:Oi(`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:Oi("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:Oi("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:Oi("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:Oi(bi,`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:Oi(`#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:Oi(`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:Oi(`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:Oi(`#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:Oi(`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:Oi(`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:Oi(`#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);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;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))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.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:Oi(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
#define PI 3.141592653589793
#define STANDARD 0
#define COMBINED 1
#define IGOR 2
#define MULTIDIRECTIONAL 3
#define BASIC 4
float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);}void igor_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float aspect=get_aspect(deriv);float azimuth=u_azimuths[0]+PI;float slope_stength=atan(length(deriv))*2.0/PI;float aspect_strength=1.0-abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);float shadow_strength=slope_stength*aspect_strength;float highlight_strength=slope_stength*(1.0-aspect_strength);fragColor=u_shadows[0]*shadow_strength+u_highlights[0]*highlight_strength;}void standard_hillshade(vec2 deriv){float azimuth=u_azimuths[0]+PI;float slope=atan(0.625*length(deriv));float aspect=get_aspect(deriv);float intensity=u_exaggeration;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_shadows[0],u_highlights[0],shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);fragColor=accent_color*(1.0-shade_color.a)+shade_color;}void basic_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor=u_highlights[0]*(2.0*shade-1.0);}else
{fragColor=u_shadows[0]*(1.0-2.0*shade);}}void multidirectional_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;fragColor=vec4(0,0,0,0);for(int i=0; i < NUM_ILLUMINATION_SOURCES; i++){float cos_alt=cos(u_altitudes[i]);float sin_alt=sin(u_altitudes[i]);float cos_az=-cos(u_azimuths[i]);float sin_az=-sin(u_azimuths[i]);float cang=(sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv));float shade=clamp(cang,0.0,1.0);if(shade > 0.5){fragColor+=u_highlights[i]*(2.0*shade-1.0)/float(NUM_ILLUMINATION_SOURCES);}else
{fragColor+=u_shadows[i]*(1.0-2.0*shade)/float(NUM_ILLUMINATION_SOURCES);}}}void combined_hillshade(vec2 deriv){deriv=deriv*u_exaggeration*2.0;float azimuth=u_azimuths[0]+PI;float cos_az=cos(azimuth);float sin_az=sin(azimuth);float cos_alt=cos(u_altitudes[0]);float sin_alt=sin(u_altitudes[0]);float cang=acos((sin_alt-(deriv.y*cos_az*cos_alt-deriv.x*sin_az*cos_alt))/sqrt(1.0+dot(deriv,deriv)));cang=clamp(cang,0.0,PI/2.0);float shade=cang*atan(length(deriv))*4.0/PI/PI;float highlight=(PI/2.0-cang)*atan(length(deriv))*4.0/PI/PI;fragColor=u_shadows[0]*shade+u_highlights[0]*highlight;}void main() {vec4 pixel=texture(u_image,v_pos);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));vec2 deriv=((pixel.rg*8.0)-4.0)/scaleFactor;switch(u_method){case BASIC:
basic_hillshade(deriv);break;case COMBINED:
combined_hillshade(deriv);break;case IGOR:
igor_hillshade(deriv);break;case MULTIDIRECTIONAL:
multidirectional_hillshade(deriv);break;case STANDARD:
default:
standard_hillshade(deriv);break;}
#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:Oi(`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:Oi(`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:Oi(`#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:Oi(`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:Oi(`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:Oi(`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:Oi(`#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:Oi(`#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:Oi("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:Oi("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:Oi("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:Oi("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:Oi(`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:Oi("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 Oi(O,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,v=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,Ae,de,Oe,Be)=>(Y[Be]=!0,Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
in ${de} ${Oe} ${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:`
#ifdef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = u_${Be};
#endif
`)),vertexSource:a=a.replace(c,(ee,Ae,de,Oe,Be)=>{const ze=Oe==="float"?"vec2":"vec4",He=Be.match(/color/)?"color":ze;return Y[Be]?Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
uniform lowp float u_${Be}_t;
in ${de} ${ze} a_${Be};
out ${de} ${Oe} ${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:He==="vec4"?`
#ifndef HAS_UNIFORM_u_${Be}
${Be} = a_${Be};
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Be}
${Be} = unpack_mix_${He}(a_${Be}, u_${Be}_t);
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:Ae==="define"?`
#ifndef HAS_UNIFORM_u_${Be}
uniform lowp float u_${Be}_t;
in ${de} ${ze} a_${Be};
#else
uniform ${de} ${Oe} u_${Be};
#endif
`:He==="vec4"?`
#ifndef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = a_${Be};
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`:`
#ifndef HAS_UNIFORM_u_${Be}
${de} ${Oe} ${Be} = unpack_mix_${He}(a_${Be}, u_${Be}_t);
#else
${de} ${Oe} ${Be} = u_${Be};
#endif
`}),staticAttributes:v,staticUniforms:z}}class xl{constructor(a,c,v){this.vertexBuffer=a,this.indexBuffer=c,this.segments=v}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var Oo=o.aG([{name:"a_pos",type:"Int16",components:2}]);const Wl="#define PROJECTION_MERCATOR",Di="mercator";class oA{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return Di}get shaderDefine(){return Wl}get shaderPreludeCode(){return Ao.projectionMercator}get vertexShaderPreludeCode(){return Ao.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,v,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,Oo.members),ee=o.aJ.simpleSegment(0,0,4,2),Ae=new o.aK;Ae.emplaceBack(1,0,2),Ae.emplaceBack(1,2,3);const de=a.createIndexBuffer(Ae);return this._cachedMesh=new xl(Y,de,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class sA{constructor(a=0,c=0,v=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(v)||v<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=v,this.right=M}interpolate(a,c,v){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,v)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,v)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,v)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,v)),this}getCenter(a,c){const v=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(v,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new sA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function za(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 Ni(O){return Math.max(0,Math.floor(O))}class uo{constructor(a,c,v,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=v||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=Ni(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 sA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,v){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=Ni(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 sA(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=!v&&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
`),Kt=Mt.concat(Ao.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
`);st(de)||(kt=function(en){return en.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(kt),Kt=function(en){return en.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Kt));const zt=de.createShader(de.FRAGMENT_SHADER);if(de.isContextLost())return void(this.failedToCreate=!0);if(de.shaderSource(zt,kt),de.compileShader(zt),!de.getShaderParameter(zt,de.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${de.getShaderInfoLog(zt)}`);de.attachShader(this.program,zt);const sn=de.createShader(de.VERTEX_SHADER);if(de.isContextLost())return void(this.failedToCreate=!0);if(de.shaderSource(sn,Kt),de.compileShader(sn),!de.getShaderParameter(sn,de.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${de.getShaderInfoLog(sn)}`);de.attachShader(this.program,sn),this.attributes={};const bn={};this.numAttributes=ze.length;for(let en=0;en<this.numAttributes;en++)ze[en]&&(de.bindAttribLocation(this.program,en,ze[en]),this.attributes[ze[en]]=en);if(de.linkProgram(this.program),!de.getProgramParameter(this.program,de.LINK_STATUS))throw new Error(`Program failed to link: ${de.getProgramInfoLog(this.program)}`);de.deleteShader(sn),de.deleteShader(zt);for(let en=0;en<Tt.length;en++){const ln=Tt[en];if(ln&&!bn[ln]){const Cn=de.getUniformLocation(this.program,ln);Cn&&(bn[ln]=Cn)}}this.fixedUniforms=M(a,bn),this.terrainUniforms=((en,ln)=>({u_depth:new o.bH(en,ln.u_depth),u_terrain:new o.bH(en,ln.u_terrain),u_terrain_dim:new o.b8(en,ln.u_terrain_dim),u_terrain_matrix:new o.bJ(en,ln.u_terrain_matrix),u_terrain_unpack:new o.bK(en,ln.u_terrain_unpack),u_terrain_exaggeration:new o.b8(en,ln.u_terrain_exaggeration)}))(a,bn),this.projectionUniforms=((en,ln)=>({u_projection_matrix:new o.bJ(en,ln.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(en,ln.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(en,ln.u_projection_clipping_plane),u_projection_transition:new o.b8(en,ln.u_projection_transition),u_projection_fallback_matrix:new o.bJ(en,ln.u_projection_fallback_matrix)}))(a,bn),this.binderUniforms=v?v.getUniforms(a,bn):[]}draw(a,c,v,M,I,z,Y,ee,Ae,de,Oe,Be,ze,He,ft,dt,pt,wt,Tt){const Mt=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(v),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),ee){a.activeTexture.set(Mt.TEXTURE2),Mt.bindTexture(Mt.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(Mt.TEXTURE3),Mt.bindTexture(Mt.TEXTURE_2D,ee.texture);for(const Kt in this.terrainUniforms)this.terrainUniforms[Kt].set(ee[Kt])}if(Ae)for(const Kt in Ae)this.projectionUniforms[gd[Kt]].set(Ae[Kt]);if(Y)for(const Kt in this.fixedUniforms)this.fixedUniforms[Kt].set(Y[Kt]);dt&&dt.setUniforms(a,this.binderUniforms,He,{zoom:ft});let kt=0;switch(c){case Mt.LINES:kt=2;break;case Mt.TRIANGLES:kt=3;break;case Mt.LINE_STRIP:kt=1}for(const Kt of ze.get()){const zt=Kt.vaos||(Kt.vaos={});(zt[de]||(zt[de]=new qh)).bind(a,this,Oe,dt?dt.getPaintVertexBuffers():[],Be,Kt.vertexOffset,pt,wt,Tt),Mt.drawElements(c,Kt.primitiveLength*kt,Mt.UNSIGNED_SHORT,Kt.primitiveOffset*kt*2)}}}function Nu(O,a,c){const v=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:[v,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 Es=(O,a,c,v)=>{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),Ae=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[Ae.r,Ae.g,Ae.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:v}},gu=(O,a,c,v,M,I,z)=>o.e(Es(O,a,c,v),Nu(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),uf=(O,a,c,v)=>o.e(Nu(a,O,c),{u_fill_translate:v}),nh=(O,a)=>({u_world:O,u_fill_translate:a}),_h=(O,a,c,v,M)=>o.e(uf(O,a,c,M),{u_world:v}),kc=(O,a,c,v,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const Ae=o.az(a,1,I.zoom);z=!0,Y=[Ae,Ae],ee=Ae/(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:v}},Rp=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),Hh=O=>({u_viewport_size:[O.width,O.height]}),vd=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),Pc=(O,a,c,v)=>{const M=o.az(O,1,a)/(o.Z*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*v;return{u_extrude_scale:o.a Line truncated
uniform mat4 u_projection_matrix;
${ze.shaderPreludeCode.vertexSource}`,define:ze.shaderDefine},defaultProjectionData:ft},pt=Be.renderingMode?Be.renderingMode:"2d";if(z.renderPass==="offscreen"){const wt=Be.prerender;wt&&(z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),wt.call(Be,Oe.gl,dt),Oe.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),Oe.setStencilMode(J.disabled);const wt=pt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Sr.ReadOnly);Oe.setDepthMode(wt),Be.render(Oe.gl,dt),Oe.setDirty(),z.setBaseState(),Oe.bindFramebuffer.set(null)}}(a,0,v,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()),v=this.imageManager.getPattern(a.to.toString());return!c||!v}useProgram(a,c,v=!1,M=[]){this.cache=this.cache||{};const I=!!this.style.map.terrain,z=this.style.projection,Y=v?Ao.projectionMercator:z.shaderPreludeCode,ee=v?Wl:z.shaderDefine,Ae=a+(c?c.cacheKey:"")+`/${v?Di:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(I?"/terrain":"")+(M?`/${M.join("/")}`:"");return this.cache[Ae]||(this.cache[Ae]=new yd(this.context,Ao[a],c,pl[a],this._showOverdrawInspector,I,Y,ee,M)),this.cache[Ae]}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 le(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 Ql(O,a){let c,v=!1,M=null,I=null;const z=()=>{M=null,v&&(O.apply(I,c),M=setTimeout(z,a),v=!1)};return(...Y)=>(v=!0,I=this,c=Y,M||z(),M)}class wu{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let v;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(v=M)}),(v&&v[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const v=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:v,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 v=c.join("/");let M=v;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${v}`);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=Ql(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(),v=Math.round(100*this._map.getZoom())/100,M=Math.ceil((v*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(),Ae=this._map.getPitch();let de="";if(de+=a?`/${z}/${Y}/${v}`:`${v}/${Y}/${z}`,(ee||Ae)&&(de+="/"+Math.round(10*ee)/10),Ae&&(de+=`/${Math.round(Ae)}`),this._hashName){const Oe=this._hashName;let Be=!1;const ze=window.location.hash.slice(1).split("&").map(He=>{const ft=He.split("=")[0];return ft===Oe?(Be=!0,`${ft}=${de}`):He}).filter(He=>He);return Be||ze.push(`${Oe}=${de}`),`#${ze.join("&")}`}return`#${de}`}_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],v=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&v>=-180&&v<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const El={linearity:.3,easing:o.cd(0,0,.3,1 Line truncated
${e} <span></span>
`,Vs().s[12]++,this._textEl=this._container.querySelector("span"),Vs().s[13]++,this.updateZoomLevel()}addEventListeners(){Vs().f[4]++,Vs().s[14]++,this._map.on("render",()=>(Vs().f[5]++,Vs().s[15]++,this.updateZoomLevel())),Vs().s[16]++,this._map.on("zoomIn",()=>(Vs().f[6]++,Vs().s[17]++,this.updateZoomLevel())),Vs().s[18]++,this._map.on("zoomOut",()=>(Vs().f[7]++,Vs().s[19]++,this.updateZoomLevel()))}onRemove(){Vs().f[8]++,Vs().s[20]++,this._container.parentNode.removeChild(this._container),Vs().s[21]++,this._map=void 0}}function M6(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 w6(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 S6(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 oH(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(M6(f.circle,l)),i.push(S6(f.line,l)),t.push(w6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const C=s(f);r.push(M6(C.circle,l,f)),i.push(S6(C.line,l,f)),t.push(w6(C.polygon,C.polygonOutline,l,f))})}),t.concat(i).concat(r)}function sH(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 M4={polygonLayer:w6,lineLayer:S6,circleLayer:M6,generateInspectStyle:sH,generateColoredLayers:oH};function vo(){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=gH.language(this.options.language.split(",")[0]);return this.options.language&&Ev?.[e][t]?Ev[e][t]:Ev[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=cp({},{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=cp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=cp({},{},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=cp({},{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=cp(r,{element:s}));const l=new this._maplibregl.Marker(cp({},r,{element:s}));let o;if(this.options.popup){const C=cp({},{},this.options.popup);o=new this._maplibregl.Popup(C).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 Sn(){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},end:{line:4Line truncated
`).reduce((i,s)=>Math.max(i,FU(n,s)),0);return t[e]=r,r}function UJ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,f=0;for(let C=0,x=e.length;C<=x;C+=2){const B=e[C];if(B===`
`||C===x){s=Math.max(s,l),i.push(l),l=0,o+=f,f=0;continue}const R=e[C+1]||n.font,P=FU(R,B);t.push(P),l+=P;const U=LJ(R);r.push(U),f=Math.max(f,U)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function zJ(n,e,t,r,i,s,l,o,f,C,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,C),n.scale(x[0],x[1]),NJ(r,n)):x[0]<0||x[1]<0?(n.translate(f,C),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,C,l*x[0],o*x[1]),n.restore()}function NJ(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]}class Zx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=Ch(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Zx({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 _o()}getImage(e){return _o()}getHitDetectionImage(){return _o()}getPixelRatio(e){return 1}getImageState(){return _o()}getImageSize(){return _o()}getOrigin(){return _o()}getSize(){return _o()}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_=Ch(e)}listenImageChange(e){_o()}load(){_o()}unlistenImageChange(e){_o()}ready(){return Promise.resolve()}}class Xx extends Zx{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()?gi.LOADING:gi.LOADED,this.imageState_===gi.LOADING&&this.ready().then(()=>this.imageState_=gi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Xx({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){const t=this.fill_?.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=Nf.get(r,null,null)?.getImage(1);if(!i){const s=this.renderOptions_,l=Math.ceil(s.size*e),o=SA(l,l);this.draw_(s,o,e),i=o.canvas,Nf.set(r,null,null,new RU(i,void 0,null,gi.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),C=Math.sqrt(s*s-f*f),x=i-C,B=Math.sqrt(f*f+x*x),R=B/f;if(e==="miter"&&R<=r)return R*t;const P=t/2/R,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;const X=i*Math.sin(o),$=Math.sqrt(i*i-X*X),re=s-$,V=Math.sqrt(X*X+re*re)/X;if(V<=r){const ne=V*t/2-s-i;return 2*Math.max(W,ne)}return W*2}createRenderOptions(){let e=Ky,t=Fy,r=0,i=null,s=0,l,o=0;this.stroke_&&(l=om(this.stroke_.getColor()??UC),o=this Line truncated
`,""),n.push(e,""),n}function Ree(n,e,t){return t%2===0&&(n+=e),n}class Dee{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_=pd(),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 RO: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],C=this.pixelRatio,x=[f.scale[0]*C,f.scale[1]*C],B=f.justify?$2[f.justify]:eM(Array.isArray(e)?e[0]:e,f.textAlign||zC),R=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
`).reduce(Pee,[]),{width:U,height:N,widths:W,heights:X,lineWidths:$}=UJ(f,P),re=U+R,te=[],V=(re+2)*x[0],ne=(N+R)*x[1],G={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",R),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 le=.5-B;let fe=B*re+le*R;const pe=[],we=[];let Se=0,xe=0,je=0,Me=0,rt;for(let Ct=0,it=P.length;Ct<it;Ct+=2){const nt=P[Ct];if(nt===`
`){xe+=Se,Se=0,fe=B*re+le*R,++Me;continue}const Ge=P[Ct+1]||f.font;Ge!==rt&&(i&&pe.push("font",Ge),r&&we.push("font",Ge),rt=Ge),Se=Math.max(Se,X[je]);const Ie=[nt,fe+le*W[je]+B*(W[je]-$[Me]),.5*(R+Se)+xe];fe+=W[je],i&&pe.push("strokeText",Ie),r&&we.push("fillText",Ie),++je}return Array.prototype.push.apply(te,pe),Array.prototype.push.apply(te,we),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,C,x,B,R,P,U,N,W){o*=R[0],f*=R[1];let X=r-o,$=i-f;const re=s+C>e?e-C:s,te=l+x>t?t-x:l,V=U[3]+re*R[0]+U[1],ne=U[0]+te*R[1]+U[2],G=X-U[3],le=$-U[0];(N||B!==0)&&(b0[0]=G,x0[0]=G,b0[1]=le,Pm[1]=le,Pm[0]=G+V,Rm[0]=Pm[0],Rm[1]=le+ne,x0[1]=Rm[1]);let fe;return B!==0?(fe=hm(pd(),r,i,1,1,B,-r,-i),Fu(fe,b0),Fu(fe,Pm),Fu(fe,Rm),Fu(fe,x0),Qm(Math.min(b0[0],Pm[0],Rm[0],x0[0]),Math.min(b0[1],Pm[1],Rm[1],x0[1]),Math.max(b0[0],Pm[0],Rm[0],x0[0]),Math.max(b0[1],Pm[1],Rm[1],x0[1]),Pg)):Qm(Math.min(G,G+V),Math.min(le,le+ne),Math.max(G,G+V),Math.max(le,le+ne),Pg),P&&(X=Math.round(X),$=Math.round($)),{drawImageX:X,drawImageY:$,drawImageW:re,drawImageH:te,originX:C,originY:x,declutterBox:{minX:Pg[0],minY:Pg[1],maxX:Pg[2],maxY:Pg[3],value:W},canvasTransform:fe,scale:R}}replayImageOrLabel_(e,t,r,i,s,l,o){const f=!!(l||o),C=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return C.minX-x<=t[0]&&C.maxX+x>=0&&C.minY-x<=t[1]&&C.maxY+x>=0&&(f&&this.replayTextBackground_(e,b0,Pm,Rm,x0,l,o),zJ(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=Fu(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],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,C=eM(Array.isArray(e)?e[0]:e,s.textAlign||zC),x=$2[s.textBaseline||N2],B=o&&o.lineWidth?o.lineWidth:0,R=l.width/f-2*s.scale[0],P=C*R+2*(.5-C)*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 C=this.zIndexContext_;let x;this.pixelCoordinates_&&H0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=Q0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),LZ(this.renderedTransform_,r));let B=0;const R=i.length;let P=0,U,N,W,X,$,re,te,V,ne,G,le,fe,pe,we=0,Se=0;const xe=this.coordinateCache_,je=this.viewRotation_,Me=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,rt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:je},Ct=this.instructions!=i||this.overlaps?0:200;let it,nt,Ge,Ie;for(;B<R;){const $e=i[B];switch($e[0]){case Vi.BEGIN_GEOMETRY:it=$e[1],Ie=$e[3],it.getGeometry()?o!==void 0&&!XA(o,Ie.getExtent())?B=$e[2]+1:++B:B=$e[2],C&&(C.zIndex=$e[4]);break;case Vi.BEGIN_PATH:we>Ct&&(this.fill_(e),we=0),Se>Ct&&(e.stroke(),Se=0),!we&&!Se&&(e.beginPath(),$=NaN,re=NaN),++B;break;case Vi.CIRCLE:P=$e[1];const Dt=x[P],ut=x[P+1],Rt=x[P+2],St=x[P+3],Ke=Rt-Dt,Pe=St-ut,Re=Math.sqrt(Ke*Ke+Pe*Pe);e.moveTo(Dt+Re,ut),e.arc(Dt,ut,Re,0,2*Math.PI,!0),++B;break;case Vi.CLOSE_PATH:e.closePath(),++B;break;case Vi.CUSTOM:P=$e[1],U=$e[2];const Ye=$e[3],vt=$e[4],yt=$e[5];rt.geometry=Ye,rt.feature=it,B in xe||(xe[B]=[]);const Et=xe[B];yt?yt(x,P,U,2,Et):(Et[0]=x[P],Et[1]=x[P+1],Et.length=2),C&&(C.zIndex=$e[6]),vt(Et,rt),++B;break;case Vi.DRAW_IMAGE:P=$e[1],U=$e[2],ne=$e[3],N=$e[4],W=$e[5];let Zt=$e[6];const Ut=$e[7],An=$e[8],hr=$e[9],Vt=$e[10];let Vn=$e[11];const Pn=$e[12];let Dn=$e[13];X=$e[14]||"declutter";const Ln=$e[15];if(!ne&&$e.length>=20){G=$e[19],le=$e[20],fe=$e[21],pe=$e[22];const jt=this.drawLabelWithPointPlacement_(G,le,fe,pe);ne=jt.label,$e[3]=ne;const Gt=$e[23];N=(jt.anchorX-Gt)*this.pixelRatio,$e[4]=N;const nn=$e[24];W=(jt.anchorY-nn)*this.pixelRatio,$e[5]=W,Zt=ne.height,$e[6]=Zt,Dn=ne.width,$e[13]=Dn}let Ir;$e.length>25&&(Ir=$e[25]);let rr,Yn,We;$e.length>17?(rr=$e[16],Yn=$e[17],We=$e[18]):(rr=R1,Yn=null,We=null),Vt&&Me?Vn+=je:!Vt&&!Me&&(Vn-=je);let he=0;for(;P<U;P+=2){if(Ir&&Ir[he++]<Dn/this.pixelRatio)continue;const jt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],Dn,Zt,N,W,An,hr,Vn,Pn,s,rr,!!Yn||!!We,it),Gt=[e,t,ne,jt,Ut,Yn,We];if(f){let nn,On,Rn;if(Ln){const or=U-P;if(!Ln[or]){Ln[or]={args:Gt,declutterMode:X};continue}const on=Ln[or];nn=on.args,On=on.declutterMode,delete Ln[or],Rn=x9(nn)}let dr,Tr;if(nn&&(On!=="declutter"||!f.collides(Rn))&&(dr=!0),(X!=="declutter"||!f.collides(jt.declutterBox))&&(Tr=!0),On==="declutter"&&X==="declutter"){co Line truncated
`),i=Xee.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 rM;function Az(){return rM||(rM=i3(1,1).getContext("2d")),rM}function y1(n,e){return Az().measureText(n).width+(n.length-1)*e}const Z2={};E1.on("propertychange",()=>{for(const n in Z2)delete Z2[n]});function H6(n,e,t,r){if(n.indexOf(`
`)!==-1){const l=n.split(`
`),o=[];for(let f=0,C=l.length;f<C;++f)o.push(H6(l[f],e,t,r));return o.join(`
`)}const i=t+","+e+","+n+","+r;let s=Z2[i];if(!s){const l=n.split(" ");if(l.length>1){const o=Az();o.font=e;const C=o.measureText("M").width*t;let x="";const B=[];for(let R=0,P=l.length;R<P;++R){const U=l[R],N=x+(x?" ":"")+U;y1(N,r)<=C?x=N:(x&&B.push(x),x=U)}x&&B.push(x);for(let R=0,P=B.length;R<P&&P>1;++R){const U=B[R];if(y1(U,r)<C*.35){const N=R>0?y1(B[R-1],r):1/0,W=R<P-1?y1(B[R+1],r):1/0;B.splice(R,1),P-=1,N<W?(B[R-1]+=" "+U,R-=1):B[R]=U+" "+B[R]}}for(let R=0,P=B.length-1;R<P;++R){const U=B[R],N=B[R+1];if(y1(U,r)>C*.7&&y1(N,r)<C*.6){const W=U.split(" "),X=W.pop();y1(X,r)<C*.2&&(B[R]=W.join(" "),B[R+1]=X+" "+N),P-=1}}s=B.join(`
`)}else s=n;s=V6(s,r),Z2[i]=s}return s}const Jee=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],P9={};function ete(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let r=0,i=n.length;r<i;++r){const s=n[r];if(s in P9)continue;P9[s]=!0;const o=E6(s,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let r=0,i=t.length;r<i;++r){const s=t[r],l=s[0];if(Jee.includes(l))continue;const o=s[1],f=s[2];if(!(await document.fonts.load(`${f} ${o} 16px "${l}"`)).some(x=>x.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&x.weight==o&&x.style===f)){const x=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",f.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",f);if(!document.querySelector('link[href="'+x+'"]')){const B=document.createElement("link");B.href=x,B.rel="stylesheet",document.head.appendChild(B)}}}})(),n}const tte={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},nte={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]},rte=function(n,e){const t=Tx(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},sf={zoom:0,distanceFromCenter:0};rf.register(Ex,{...rf.definitions,pitch:[{kind:"number"},[],n=>sf.pitch||90],"distance-from-center":[{kind:"number"},[],n=>sf.distanceFromCenter||0]});let Ob,iM;function Si(n,e,t,r,i,s){const l=n.id;i||(i={},console.warn("No functionCache provided to getValue()")),i[l]||(i[l]={});const o=i[l];if(!o[t]){let f=(n[e]||vp)[t];const C=F$[`${e}_${n.type}`][t];f===void 0&&(f=C.default);let x=Yy(f);if(!x&&Qy(f)&&(f=zB(f,C),x=!0),x){const B=rte(f,C);o[t]=B.evaluate.bind(B)}else C.type=="color"&&(f=Fa.parse(f)),o[t]=function(){return f}}return o[t](sf,r,s)}function R9(n,e,t,r){return Si(n,"layout",`${t}-allow-overlap`,e,r)?Si(n,"layout",`${t}-ignore-placement`,e,r)?"none":"obstacle":"declutter"}function ite(n,e,t,r){if(r||console.warn("No filterCache provided to evaluateFilter()"),!(n in r))try{r[n]=i$(e).filter}catch(i){console.warn("Filter will evaluate to false: "+i.message),r[n]=function(){return!1}}return r[n](sf,t)}function E0(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 ote=/\{[^{}}]*\}/g;function oM(n,e){return n.replace(ote,function(t){return e[t.slice(1,-1)]||""})}function D9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const ste={};function ate(n,e,t,r=cm,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.");ste[Vee(e,n)]=Array.from(arguments);const f={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const V in s){const ne=s[V];Py(()=>ne).then(async G=>{let le;if(typeof Image<"u"){const fe=new Image;if(typeof G=="string")fe.crossOrigin="anonymous",fe.src=G;else{let pe;G instanceof Request?pe=await fetch(G):G instanceof Response&&(pe=G);const we=await pe.blob();le=URL.createObjectURL(we),fe.src=le}fe.addEventListener("load",function pe(){fe.removeEventListener("load",pe),f[V]={image:fe,size:[fe.width,fe.height]},n.changed(),le&&URL.revokeObjectURL(le)}),fe.addEventListener("error",function pe(){URL.revokeObjectURL(le),fe.removeEventListener("error",pe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const fe=self;fe.postMessage({action:"loadImage",src:G}),fe.addEventListener("message",function(we){we.data.action==="imageLoaded"&&we.data.src===G&&(f[V]={image:we.data.image,size:[we.data.image.width,we.data.image.height]})})}})}const C=_B(e.layers),x={},B=[],R={},P={},U=sz(e),N=Hee(e);let W;for(let V=0,ne=C.length;V<ne;++V){const G=C[V],le=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(le)!==-1){const fe=G["source-layer"];if(W){if(G.source!==W)throw new Error(`Layer "${le}" does not use source "${W}`)}else{W=G.source;const we=e.sources[W];if(!we)throw new Error(`Source "${W}" is not defined`);const Se=we.type;if(Se!=="vector"&&Se!=="geojson")throw new Error(`Source "${W}" is not of type "vector" or "geojson", but "${Se}"`)}let pe=x[fe];pe||(pe=[],x[fe]=pe),pe.push({layer:G,index:V}),B.push(le)}}const X=new D0,$=new zm,re=[],te=function(V,ne,G){const le=n.getSource?.()?.format_?.layerName_??"mvt:layer",fe=V.getProperties(),pe=x[fe[le]];if(!pe)return;let we=r.indexOf(ne);we==-1&&(we=zO(ne,r)),sf.zoom=we,sf.distanceFromCenter=0;const Se=V.getGeometry(),xe=tte[Se.getType()],je=n.get("map");if(je&&je instanceof n3&&xe===1){const it=je.gLine truncated
`)return We.push(`
`,""),We;if(xe==2)return We.push(V6(Yt,Ln),bt),We;Yt=H6(Yt,bt,Ir,Ln).split(`
`);for(let Jt=0,ir=Yt.length;Jt<ir;++Jt)Jt>0&&We.push(`
`,""),We.push(Yt[Jt],bt);return We},[]):Vt=oM(Yn,fe).trim(),St=Si(Ie,"paint","text-opacity",Me,U,rt)}if(Vt&&St&&!hr){yt||(++Ct,Ye=re[Ct],(!Ye||!Ye.getText()||Ye.getFill()||Ye.getStroke())&&(Ye=new Jd,re[Ct]=Ye),Ye.setImage(void 0),Ye.setGeometry(void 0));const rr=R9(Ie,Me,"text",U);Ye.getText()||Ye.setText(Et),Et=Ye.getText(),(!Et||"getDeclutterMode"in Et&&Et.getDeclutterMode()!==rr)&&(Et=new Jx({padding:[2,2,2,2],declutterMode:rr}),Ye.setText(Et));const Yn=Si(Ie,"layout","text-transform",Me,U,rt);Yn=="uppercase"?Vt=Array.isArray(Vt)?Vt.map((Te,lt)=>lt%2?Te:Te.toUpperCase()):Vt.toUpperCase():Yn=="lowercase"&&(Vt=Array.isArray(Vt)?Vt.map((Te,lt)=>lt%2?Te:Te.toLowerCase()):Vt.toLowerCase());const We=Array.isArray(Vt)?Vt:xe==2?V6(Vt,Ln):H6(Vt,Vn,Ir,Ln);if(Et.setText(We),Et.setFont(Vn),Et.setRotation(nM(Si(Ie,"layout","text-rotate",Me,U,rt))),typeof Et.setKeepUpright=="function"){const Te=Si(Ie,"layout","text-keep-upright",Me,U,rt);Et.setKeepUpright(Te)}const he=Si(Ie,"layout","text-anchor",Me,U,rt),me=yt||xe==1?"point":Si(Ie,"layout","symbol-placement",Me,U,rt);let et;if(me==="line-center"?(Et.setPlacement("line"),et="center"):Et.setPlacement(me),me==="line"&&typeof Et.setRepeat=="function"){const Te=Si(Ie,"layout","symbol-spacing",Me,U,rt);Et.setRepeat(Te*2)}Et.setOverflow(me==="point");let bt=Si(Ie,"paint","text-halo-width",Me,U,rt);const Yt=Si(Ie,"layout","text-offset",Me,U,rt),Jt=Si(Ie,"paint","text-translate",Me,U,rt);let ir=0,Xe=0;if(me=="point"){et="center",he.indexOf("left")!==-1?(et="left",Xe=bt):he.indexOf("right")!==-1&&(et="right",Xe=-bt);const Te=Si(Ie,"layout","text-rotation-alignment",Me,U,rt);Et.setRotateWithView(Te=="map")}else Et.setMaxAngle(nM(Si(Ie,"layout","text-max-angle",Me,U,rt))*Vt.length/We.length),Et.setRotateWithView(!1);Et.setTextAlign(et);let ae="middle";he.indexOf("bottom")==0?(ae="bottom",ir=-bt-.5*(Pn-1)*Dn):he.indexOf("top")==0&&(ae="top",ir=bt+.5*(Pn-1)*Dn),Et.setTextBaseline(ae);const ve=Si(Ie,"layout","text-justify",Me,U,rt);Et.setJustify(ve==="auto"?void 0:ve),Et.setOffsetX(Yt[0]*Dn+Xe+Jt[0]),Et.setOffsetY(Yt[1]*Dn+ir+Jt[1]),$.setColor(E0(Si(Ie,"paint","text-color",Me,U,rt),St)),Et.setFill($);const p=E0(Si(Ie,"paint","text-halo-color",Me,U,rt),St);if(p&&bt>0){X.setColor(p),bt*=2;const Te=.5*Dn;X.setWidth(bt<=Te?bt:Te),Et.setStroke(X)}else Et.setStroke(void 0);const Ne=Si(Ie,"layout","text-padding",Me,U,rt),Ve=Et.getPadding();Ne!==Ve[0]&&(Ve[0]=Ne,Ve[1]=Ne,Ve[2]=Ne,Ve[3]=Ne),Ye.setZIndex(vt)}}}if(Ct>-1)return re.length=Ct+1,re};return n.setStyle(te),n.set("mapbox-layers",B),n.set("mapbox-source",W),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),te}class uz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=r3,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Ma(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Ma(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 _o()}readFeature(e,t){return _o()}readFeatures(e,t){return _o()}readGeometry(e,t){return _o()}readProjection(e){return _o()}writeFeature(e,t){return _o()}writeFeatures(e,t){return _o()}writeGeometry(e,t){return _o()}}function o3(n,e,t){const r=t?Ma(t.featureProjection):null,i=t?Ma(t.dataProjection):null;let s=n;if(r&&i&&!W0(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(DC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(f){for(let C=0,x=f.length;C<x;++C)f[C]=Math.round(f[C]*l)/l;return f};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const lte={Point:H1,LineString:X1,Polygon:qm,MultiPoint:S_,MultiLineString:WC,MultiPolygon:QC};function Ate(n,e,t){return Array.isArray(e[0])?(vU(n,0,e,t)||(n=n.slice(),z6(n,0,e,t)),n):(pO(n,0,e,t)||(n=n.slice(),U2(n,0,e,t)),n)}function cz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(s=>cz({...n,geometry:s})).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 o3(new vh(r,r==="Polygon"?Ate(t.flatCoordinates,t.ends,i):t.flatCoordinates,t.ends?.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function NO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>NO(i,e));return new Y2(r)}const t=lte[n.type];return o3(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class ute extends uz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Ib(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Ib(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return _o()}readFeaturesFromObject(e,t){ Line truncated
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function yne(n,e){const t=Mz(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 vne extends f_{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]=gne(e,this.onWorkerMessage_.bind(this,i));else r[0]=yne(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 C=f*o,x=[];for(let B=0,R=i.length;B<R;++B)x.push(i[B].slice(C,C+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,C=o*l;r.set(new Uint8ClampedArray(f),C),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 Q9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class Y9 extends Op{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class wz extends Cz{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_=bne(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(go.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new WL(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:pd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:_ne(this.layers_),pixelRatio:1,pixelToCoordinateTransform:pd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:ko(this),renderTargets:{}},this.setAttributions(function(r){const i=[];for(let s=0,l=e.sources.length;s<l;++s){const o=e.sources[s],f=o instanceof Xy?o:o.getSource();if(!f)continue;const C=f.getAttributions()?.(r);typeof C=="string"?i.push(C):C!==void 0&&i.push(...C)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new vne({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=af(e);i.size[0]=Math.ceil(Ls(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||!Ym(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.requestedFrameState_,t=th Line truncated
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Sz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Pne extends l3{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Rne,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:rz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!W0(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||W0(t,e)))return this.tileGrid;const r=ko(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=_z(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],f=this.getTileCoordForTileUrlFunction(o,s),C=f?this.tileUrlFunction(f,i,s):void 0,x=new this.tileClass(o,C!==void 0?Ur.IDLE:Ur.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(go.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||W0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],f=this.getKey(),C=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),R=new gz(l,C,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 R.key=f,R}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=Ma(e);if(r){const i=ko(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Rne(n,e){n.getImage().src=e}class Ez extends Pne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Ma("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)Mne(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=Ma("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const C=v_(t,r);i=JH(e.bounds,C)}const s=a3(r),l=e.minzoom||0,o=e.maxzoom||22,f=jO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=Sz(e.tiles,f),e.attribution&&!this.getAttributions()){const C=i!==void 0?i:s;this.setAttributions(function(x){return XA(C,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class WO extends l3{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||a3(t),i=e.tileGrid||jO({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:Bz,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:iz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Ur.IDLE){r.setState(Ur.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 Xne(){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})()}(dM)),dM.exports}var Jne=Xne();const dm=Gl(Jne);function O1(){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 O1=function(){return l},l}O1();class ere extends ur.Component{render(){O1().f[0]++;const e=(O1().s[0]++,{width:20,height:20,...this.props.style});return O1().s[1]++,this.props.isCollapsed?(O1().b[0][0]++,oe.jsx(FV,{style:e})):(O1().b[0][1]++,oe.jsx(KV,{style:e}))}}function dy(){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 dy=function(){return l},l}dy();class tre extends ur.Component{render(){return dy().f[0]++,dy().s[0]++,oe.jsx("li",{className:"maputnik-layer-list-group",children:oe.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(dy().f[1]++,dy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[oe.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),oe.jsx("span",{className:"maputnik-space"}),oe.jsx(ere,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function bl(){return bl=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},bl.apply(null,arguments)}function nre(n){if(Array.isArray(n))return n}function rre(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,C=!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 Fz(n,e){return nre(n)||rre(n,e)||Kz(n,e)||ire()}function Uy(n){"@babel/helpers - typeof";return Uy=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},Uy(n)}function ore(n,e){if(Uy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Uy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Lz(n){var e=ore(n,"string");return Uy(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=Lz(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function fM(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 O_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function sre(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,Lz(r.key),r)}}function I_(n,e,t){return e&&sre(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ls(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function QO(n,e){if(e&&(Uy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ls(n)}function YC(n){return YC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YC(n)}function rB(n,e){return rB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},rB(n,e)}function YO(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&&rB(n,e)}var pM,Z9;function are(){if(Z9)return pM;Z9=1;var n=function(e,t,r,i,s,l,o,f){if(!e){var C;if(t===void 0)C=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;C=new Error(t.replace(/%s/g,function(){return x[B++]})),C.name="Invariant Violation"}throw C.framesToPop=1,C}};return pM=n,pM}var lre=are();const J1=Gl(lre);function Are(n){if(Array.isArray(n))return nB(n)}function ure(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function cre(){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 hre(n){return Are(n)||ure(n)||Kz(n)||cre()}var dre=function(){function n(){O_(this,n),Ka(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(fre)}}]),n}();function fre(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function Uz(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var Lg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},zz=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 Rb(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function Db(n,e){n.style["".concat(zz,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function mM(n,e){n.style["".concat(zz,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Zv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function X9(n,e,t){return Math.max(n,Math.min(t,e))}function fy(n){return n.substr(-2)==="px"?parseFloat(n):0}function pre(n){var e=window.getComputedStyle(n);return{bottom:fy(e.marginBottom),left:fy(e.marginLeft),right:fy(e.marginRight),top:fy(e.marginTop)}}function qO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function gM(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function Dv(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 mre(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function o2(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:o2(n.parentNode,e,r)}}function gre(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function J9(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);J1(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 J1(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 yre(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];J1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=Fz(i,2),l=s[0],o=s[1];return[J9({height:e,lockOffset:l,width:t}),J9({height:e,lockOffset:o,width:t})]}function vre(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function Nz(n){return n instanceof HTMLElement?vre(n)?n:Nz(n.parentNode):null}function Cre(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:fy(e.gridColumnGap),y:fy(e.gridRowGap)}:{x:0,y:0}}var C1={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},I1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function _re(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=hre(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===I1.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function bre(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){YO(s,i);function s(){var l,o;O_(this,s);for(var f=arguments.length,C=new Array(f),x=0;x<f;x++)C[x]=arguments[x];return o=QO(this,(l=YC(s)).call.apply(l,[this].concat(C))),Ka(ls(ls(o)),"wrappedInstance",nr.createRef()),o}return I_(s,[{key:"componentDidMount",value:function(){var o=Dx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return J1(r.withRef,"T Line truncated
* tabbable 6.2.0
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
*/var Yz=["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])"],ex=Yz.join(","),qz=typeof Element>"u",eg=qz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tx=!qz&&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?.ownerDocument},nx=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},Kre=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},$z=function(e,t,r){if(nx(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ex));return t&&eg.call(e,ex)&&i.unshift(e),i=i.filter(r),i},Vz=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!nx(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),f=o.length?o:l.children,C=n(f,!0,r);r.flatten?i.push.apply(i,C):i.push({scopeParent:l,candidates:C})}else{var x=eg.call(l,ex);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),R=!nx(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&R){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},Hz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},O0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Kre(e))&&!Hz(e)?0:e.tabIndex},Fre=function(e,t){var r=O0(e);return r<0&&t&&!Hz(e)?0:r},Lre=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Zz=function(e){return e.tagName==="INPUT"},Ure=function(e){return Zz(e)&&e.type==="hidden"},zre=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},Nre=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Gre=function(e){if(!e.name)return!0;var t=e.form||tx(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=Nre(i,e.form);return!s||s===e},jre=function(e){return Zz(e)&&e.type==="radio"},Wre=function(e){return jre(e)&&!Gre(e)},Qre=function(e){var t,r=e&&tx(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 C,x,B;r=tx(i),i=(C=r)===null||C===void 0?void 0:C.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},tT=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Yre=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=eg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(eg.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,C=tx(e);if(f&&!f.shadowRoot&&i(f)===!0)return tT(e);e.assignedSlot?e=e.assignedSlot:!f&&C!==e.ownerDocument?e=C.host:e=f}e=o}if(Qre(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return tT(e);return!1},qre=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 eg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},rx=function(e,t){return!(t.disabled||nx(t)||Ure(t)||Yre(t,e)||zre(t)||qre(t))},iB=function(e,t){return!(Wre(t)||O0(t)<0||!rx(e,t))},$re=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Vre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=Fre(o,l),C=l?n(i.candidates):o;f===0?l?t.push.apply(t,C):t.push(o):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:C})}),r.sort(Lre).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.push(s.content),iLine truncated
* focus-trap 7.5.4
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
*/function nT(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 rT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?nT(Object(t),!0).forEach(function(r){Xre(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):nT(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Xre(n,e,t){return e=eie(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Jre(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 eie(n){var e=Jre(n,"string");return typeof e=="symbol"?e:String(e)}var iT={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()}},tie=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nie=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},pC=function(e){return e?.key==="Tab"||e?.keyCode===9},rie=function(e){return pC(e)&&!e.shiftKey},iie=function(e){return pC(e)&&e.shiftKey},oT=function(e){return setTimeout(e,0)},sT=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},Kv=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},Kb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},oie=[],sie=function(e,t){var r=t?.document||document,i=t?.trapStack||oie,s=rT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:rie,isKeyBackward:iie},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(Se,xe,je){return Se&&Se[xe]!==void 0?Se[xe]:s[je||xe]},C=function(Se,xe){var je=typeof xe?.composedPath=="function"?xe.composedPath():void 0;return l.containerGroups.findIndex(function(Me){var rt=Me.container,Ct=Me.tabbableNodes;return rt.contains(Se)||je?.includes(rt)||Ct.find(function(it){return it===Se})})},x=function(Se){var xe=s[Se];if(typeof xe=="function"){for(var je=arguments.length,Me=new Array(je>1?je-1:0),rt=1;rt<je;rt++)Me[rt-1]=arguments[rt];xe=xe.apply(void 0,Me)}if(xe===!0&&(xe=void 0),!xe){if(xe===void 0||xe===!1)return xe;throw new Error("`".concat(Se,"` was specified but was not a node, or did not return a node"))}var Ct=xe;if(typeof xe=="string"&&(Ct=r.querySelector(xe),!Ct))throw new Error("`".concat(Se,"` as selector refers to no known node"));return Ct},B=function(){var Se=x("initialFocus");if(Se===!1)return!1;if(Se===void 0||!s2(Se,s.tabbableOptions))if(C(r.activeElement)>=0)Se=r.activeElement;else{var xe=l.tabbableGroups[0],je=xe&&xe.firstTabbableNode;Se=je||x("fallbackFocus")}if(!Se)throw new Error("Your focus-trap needs to have at least one focusable element");return Se},R=function(){if(l.containerGroups=l.containers.map(function(Se){var xe=Xz(Se,s.tabbableOptions),je=Jz(Se,s.tabbableOptions),Me=xe.length>0?xe[0]:void 0,rt=xe.length>0?xe[xe.length-1]:void 0,Ct=je.find(function(Ge){return w1(Ge)}),it=je.slice().reverse().find(function(Ge){return w1(Ge)}),nt=!!xe.find(function(Ge){return O0(Ge)>0});return{container:Se,tabbableNodes:xe,focusableNodes:je,posTabIndexesFound:nt,firstTabbableNode:Me,lastTabbableNode:rt,firstDomTabbableNode:Ct,lastDomTabbableNode:it,nextTabbableNode:function(Ie){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,gt=xe.indexOf(Ie);return gt<0?$e?je.slice(je.indexOf(Ie)+1).find(function(Dt){return w1(Dt)}):je.slice(0,je.indexOf(Ie)).reverse().find(function(Dt){return w1(Dt)}):xe[gt+($e?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(Se){return Se.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(Se){return Se.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 we(Se){var xe=Se.activeElement;if(xe)return xe.shadowRoot&&xe.shadowRoot.activeElement!==null?we(xe.shadowRoot):xe},U=function we(Se){if(Se!==!1&&Se!==P(document)){if(!Se||!Se.focus)Line truncated
* @license React
* react-is.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 cT;function xie(){if(cT)return xa;cT=1;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.server_context"),f=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),U;U=Symbol.for("react.module.reference");function N(W){if(typeof W=="object"&&W!==null){var X=W.$$typeof;switch(X){case n:switch(W=W.type,W){case t:case i:case r:case C:case x:return W;default:switch(W=W&&W.$$typeof,W){case o:case l:case f:case R:case B:case s:return W;default:return X}}case e:return X}}}return xa.ContextConsumer=l,xa.ContextProvider=s,xa.Element=n,xa.ForwardRef=f,xa.Fragment=t,xa.Lazy=R,xa.Memo=B,xa.Portal=e,xa.Profiler=i,xa.StrictMode=r,xa.Suspense=C,xa.SuspenseList=x,xa.isAsyncMode=function(){return!1},xa.isConcurrentMode=function(){return!1},xa.isContextConsumer=function(W){return N(W)===l},xa.isContextProvider=function(W){return N(W)===s},xa.isElement=function(W){return typeof W=="object"&&W!==null&&W.$$typeof===n},xa.isForwardRef=function(W){return N(W)===f},xa.isFragment=function(W){return N(W)===t},xa.isLazy=function(W){return N(W)===R},xa.isMemo=function(W){return N(W)===B},xa.isPortal=function(W){return N(W)===e},xa.isProfiler=function(W){return N(W)===i},xa.isStrictMode=function(W){return N(W)===r},xa.isSuspense=function(W){return N(W)===C},xa.isSuspenseList=function(W){return N(W)===x},xa.isValidElementType=function(W){return typeof W=="string"||typeof W=="function"||W===t||W===i||W===r||W===C||W===x||W===P||typeof W=="object"&&W!==null&&(W.$$typeof===R||W.$$typeof===B||W.$$typeof===s||W.$$typeof===l||W.$$typeof===f||W.$$typeof===U||W.getModuleId!==void 0)},xa.typeOf=N,xa}var hT;function Mie(){return hT||(hT=1,bM.exports=xie()),bM.exports}Mie();const dT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,fT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Lb=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return fT(t.overflowY,e)||fT(t.overflowX,e)||(r=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)})(n)}return!1},Ub=(n,e,t,r,i,s,l,o)=>s<n&&l>e||s>n&&l<e?0:s<=n&&o<=t||l>=e&&o>=t?s-n-r:l>e&&o<t||s<n&&o>t?l-e+i:0,wie=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Sie=(n,e)=>{var t,r,i,s;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:f}=e,C=typeof o=="function"?o:xe=>xe!==o;if(!dT(n))throw new TypeError("Invalid target");const x=document.scrollingElement||document.documentElement,B=[];let R=n;for(;dT(R)&&C(R);){if(R=wie(R),R===x){B.push(R);break}R!=null&&R===document.body&&Lb(R)&&!Lb(document.documentElement)||R!=null&&Lb(R,f)&&B.push(R)}const P=(r=(t=window.visualViewport)==null?void 0:t.width)!=null?r:innerWidth,U=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:N,scrollY:W}=window,{height:X,width:$,top:re,right:te,bottom:V,left:ne}=n.getBoundingClientRect(),{top:G,right:le,left:fe}=(xe=>{const je=window.getComputedStyle(xe);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(n);let pe=re-G,we=l==="center"?ne+$/2-fe+le:l==="end"?te+le:ne-fe;const Se=[];for(let xe=0;xe<B.length;xe++){const je=B[xe],{height:Me,width:rt,top:Ct,right:it,bottom:nt,left:Ge}=je.getBoundingClientRect();if(re>=0&&ne>=0&&V<=U&&te<=P&&(je===x&&!Lb(je)||re>=Ct&&V<=nt&&ne>=Ge&&te<=it))return Se;const Ie=getComputedStyle(je),$e=parseInt(Ie.borderLeftWidth,10),gt=parseInt(Ie.borderTopWidth,10),Dt=parseInt(Ie.borderRightWidth,10),ut=parseInt(Ie.borderBottomWidth,10);let Rt=0,St=0;const Ke="offsetWidth"in je?je.offsetWidth-je.clientWidth-$e-Dt:0,Pe="offsetHeight"in je?je.offsetHeight-je.clientHeight-gt-ut:0,Re="offsetWidth"in je?je.offsetWidth===0?0:rt/je.offsetWidth:0,Ye="offsetHeight"in je?je.offsetHeight===0?0:Me/je.offsetHeight:0;if(x===je)Rt=Ub(W,W+U,U,gt,ut,W+pe,W+pe+X,X),St=l==="start"?we:l==="center"?we-P/2:l==="end"?we-P:Ub(N,N+P,P,$e,Dt,N+we,N+we+$,$),Rt=Math.max(0,Rt+W),St=Math.max(0,St+N);else{Rt=Ub(Ct,nt,Me,gt,ut+Pe,pe,pe+X,X),St=l==="start"?we-Ge-$e:l==="center"?we-(Ge+rt/2)+Ke/2:l==="end"?we-it+Dt+Ke:Ub(Ge,it,rt,$e,Dt+Ke,we,we+$,$);const{scrollLeft:vt,scrollTop:yt}=je;Rt=Ye===0?0:Math.max(0,Math.min(yt+Rt/Ye,je.scrollHeight-Me/Ye+Pe)),St=Re===0?0:Math.max(0,Math.min(vt+St/Re,je.scrollWidth-rt/Re+Ke)),pe+=yt-Rt,we+=vt-St}Se.push({el:je,top:Rt,left:St})}return Se};var zy=function(){return zy=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ioe(){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 Toe=d3(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;h3(this,n),zl(this,"expanded",void 0),zl(this,"allowMultipleExpanded",void 0),zl(this,"allowZeroExpanded",void 0),zl(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var x=t.isItemExpanded(C);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Moe(t.expanded),[C]):[C]})}),zl(this,"isItemDisabled",function(C){var x=t.isItemExpanded(C),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),zl(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),zl(this,"getPanelAttributes",function(C,x){var B=x??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:B?void 0:!0}}),zl(this,"getHeadingAttributes",function(){return{role:"heading"}}),zl(this,"getButtonAttributes",function(C,x){var B=x??t.isItemExpanded(C),R=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":R,"aria-expanded":B,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),zl(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),zl(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),zl(this,"augment",function(C){return new n(lB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),SN=nr.createContext(null),EN=function(n){cI(t,n);var e=hI(t);function t(){var r;h3(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)),zl(fp(r),"state",new Toe({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),zl(fp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),zl(fp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),zl(fp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),zl(fp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),zl(fp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),zl(fp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return d3(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return nr.createElement(SN.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}(nr.PureComponent);zl(EN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var BN=function(n){cI(t,n);var e=hI(t);function t(){var r;h3(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)),zl(fp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return d3(t,[{key:"render",value:function(){return nr.createElement(SN.Consumer,null,this.renderChildren)}}]),t}(nr.PureComponent),koe=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Poe=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=f3(e,koe);return nr.createElement(EN,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},nr.createElement("div",fm({"data-accordion-component":"Accordion",className:r},f)))},cB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(cB||(cB={}));var ON=cB,DM=0;function Roe(){var n=DM;return DM=DM+1,"raa-".concat(n)}var Doe=nr.useId||Roe,Koe=/[\u0009\u000a\u000c\u000d\u0020]/g;function $C(n){return n===""||Koe.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var IN=nr.createContext(null),Foe=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(C){var x=s??C.isItemExpanded(r),B=C.isItemDisabled(r),R=C.getPanelAttributes(r,s),P=C.getHeadingAttributes(r),U=C.getButtonAttributes(r,s);return nr.createElement(IN.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:R,headingAttributes:P,buttonAttributes:U}},t)};return nr.createElement(BN,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.”
`,PN=function(n){cI(t,n);var e=hI(t);function t(){var r;h3(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)),zl(fp(r),"ref",void 0),zl(fp(r),"setRef",function(o){r.ref=o}),r}return d3(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return nr.createElement("div",fm({"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($oe)}}]),t}(nr.PureComponent);zl(PN,"defaultProps",qoe);var RN=function(e){return nr.createElement(p3,null,function(t){var r=t.headingAttributes;return e.id&&$C(e.id),nr.createElement(PN,fm({},e,r))})};RN.displayName=ON.AccordionItemHeading;var Voe=["className","region","id"],Hoe=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=f3(e,Voe),o=function(C){var x=C.panelAttributes;s&&$C(s);var B=lB(lB({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return nr.createElement("div",fm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return nr.createElement(p3,null,o)},l2={exports:{}},Zoe=l2.exports,DT;function g3(){return DT||(DT=1,function(n,e){(function(t,r){n.exports=r()})(Zoe,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,C=f&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),R=!o&&/Chrome\/(\d+)/.exec(t),P=R&&+R[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),X=/PhantomJS/.test(t),$=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),re=/Android/.test(t),te=$||re||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),V=$||/Mac/.test(r),ne=/\bCrOS\b/.test(t),G=/win/i.test(r),le=U&&t.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(U=!1,x=!0);var fe=V&&(B||U&&(le==null||le<12.11)),pe=i||f&&C>=9;function we(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var Se=function(u,g){var E=u.className,S=we(g).exec(E);if(S){var D=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(D?S[1]+D:"")}};function xe(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function je(u,g){return xe(u).appendChild(g)}function Me(u,g,E,S){var D=document.createElement(u);if(E&&(D.className=E),S&&(D.style.cssText=S),typeof g=="string")D.appendChild(document.createTextNode(g));else if(g)for(var H=0;H<g.length;++H)D.appendChild(g[H]);return D}function rt(u,g,E,S){var D=Me(u,g,E,S);return D.setAttribute("role","presentation"),D}var Ct;document.createRange?Ct=function(u,g,E,S){var D=document.createRange();return D.setEnd(S||u,E),D.setStart(u,g),D}:Ct=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 it(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 nt(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 Ge(u,g){var E=u.className;we(g).test(E)||(u.className+=(E?" ":"")+g)}function Ie(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!we(E[S]).test(g)&&(g+=" "+E[S]);return g}var $e=function(u){u.select()};$?$e=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&($e=function(u){try{u.select()}catch{}});function gt(u){return u.display.wrapper.ownerDocument}function Dt(u){return ut(u.display.wrapper)}function ut(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Rt(u){return gt(u).defaultView}function St(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function Ke(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 Pe(u,g,E,S,D){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var H=S||0,ce=D||0;;){var _e=u.indexOf(" ",H);if(_e<0||_e>=g)return ce+(g-H);ce+=_e-H,ce+=E-ce%E,H=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=St(this.onTimeout,this)};Re.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Re.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 Ye(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 D=u.indexOf(`
`,g);D==-1&&(D=u.length);var H=u.slice(g,u.charAt(D-1)=="\r"?D-1:D),ce=H.indexOf("\r");ce!=-1?(E.push(H.slice(0,ce)),g+=ce+1):(E.push(H),g=D+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Dr=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},ui=function(){var u=Me("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Pi=null;function yi(u){if(Pi!=null)return Pi;var g=je(u,Me("span","x")),E=g.getBoundingClientRect(),S=Ct(g,0,1).getBoundingClientRect();return Pi=Math.abs(E.left-S.left)>1}var As={},qr={};function _s(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),As[u]=g}function La(u,g){qr[u]=g}function da(u){if(typeof u=="string"&&qr.hasOwnProperty(u))u=qr[u];else if(u&&typeof u.name=="string"&&qr.hasOwnProperty(u.name)){var g=qr[u.name];typeof g=="string"&&(g={name:g}),u=Ir(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return da("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return da("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function No(u,g){g=da(g);var E=As[g.name];if(!E)return No(u,"text/plain");var S=E(u,g);if(zs.hasOwnProperty(g.name)){var D=zs[g.name];for(var H in D)D.hasOwnProperty(H)&&(S.hasOwnProperty(H)&&(S["_"+H]=S[H]),S[H]=D[H])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ce in g.modeProps)S[ce]=g.modeProps[ce];return S}var zs={};function hl(u,g){var E=zs.hasOwnProperty(u)?zs[u]:zs[u]={};Ke(g,E)}function ci(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var D=g[S];D instanceof Array&&(D=D.concat([])),E[S]=D}return E}function oa(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 bo(u,g,E){return u.startState?u.startState(g,E):!0}var lo=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};lo.prototype.eol=function(){return this.pos>=this.string.length},lo.prototype.sol=function(){return this.pos==this.lineStart},lo.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},lo.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},lo.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},lo.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},lo.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},lo.prototype.skipToEnd=function(){this.pos=this.string.length},lo.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},lo.prototype.backUp=function(u){this.pos-=u},lo.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)},lo.prototype.indentation=function(){return Pe(this.string,null,this.tabSize)-(this.lineStart?Pe(this.string,this.lineStart,this.tabSize):0)},lo.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ce){return E?ce.toLowerCase():ce},D=this.string.substr(this.pos,u.length);if(S(D)==S(u))return g!==!1&&(this.pos+=u.length),!0}else{var H=this.string.slice(this.pos).match(u);return H&&H.index>0?null:(H&&g!==!1&&(this.pos+=H[0].length),H)}},lo.prototype.current=function(){return this.string.slice(this.start,this.pos)},lo.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},lo.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},lo.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function Er(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 D=E.children[S],H=D.chunkSize();if(g<H){E=D;break}g-=H}return E.lines[g]}function wa(u,g,E){var S=[],D=g.line;return u.iter(g.line,E.line+1,function(H){var ce=H.text;D==E.line&&(ce=ce.slice(0,E.ch)),D==g.line&&(ce=ce.slice(g.ch)),S.push(ce),++D}),S}function qo(u,g,E){var S=[];return u.iter(g,E,function(D){S.push(D.text)}),S}function Jo(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=Ye(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var D=0;S.children[D]!=g;++D)E+=S.children[D].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(Me("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&&C<9?mt.appendChild(Me("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||D||Ue||H||ce){var br=E||"";S&&(br+=S),D&&(br+=D);var fr=Me("span",[mt],br,H);if(ce)for(var Pr in ce)ce.hasOwnProperty(Pr)&&Pr!="style"&&Pr!="class"&&fr.setAttribute(Pr,ce[Pr]);return u.content.appendChild(fr)}u.content.appendChild(mt)}}function Ic(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",D=0;D<u.length;D++){var H=u.charAt(D);H==" "&&E&&(D==u.length-1||u.charCodeAt(D+1)==32)&&(H=" "),S+=H,E=H==" "}return S}function ps(u,g){return function(E,S,D,H,ce,_e,ke){D=D?D+" cm-force-border":"cm-force-border";for(var Ue=E.pos,mt=Ue+S.length;;){for(var Bt=void 0,tn=0;tn<g.length&&(Bt=g[tn],!(Bt.to>Ue&&Bt.from<=Ue));tn++);if(Bt.to>=mt)return u(E,S,D,H,ce,_e,ke);u(E,S.slice(0,Bt.to-Ue),D,H,null,_e,ke),H=null,S=S.slice(Bt.to-Ue),Ue=Bt.to}}}function Tc(u,g,E,S){var D=!S&&E.widgetNode;D&&u.map.push(u.pos,u.pos+g,D),!S&&u.cm.display.input.needsContentAttribute&&(D||(D=u.content.appendChild(document.createElement("span"))),D.setAttribute("cm-marker",E.id)),D&&(u.cm.display.input.setUneditable(D),u.content.appendChild(D)),u.pos+=g,u.trailingSpace=!1}function md(u,g,E){var S=u.markedSpans,D=u.text,H=0;if(!S){for(var ce=1;ce<E.length;ce+=2)g.addToken(g,D.slice(H,H=E[ce]),BA(E[ce+1],g.cm.options));return}for(var _e=D.length,ke=0,Ue=1,mt="",Bt,tn,qt=0,xn,Fn,Kn,Hn,br;;){if(qt==ke){xn=Fn=Kn=tn="",br=null,Hn=null,qt=1/0;for(var fr=[],Pr=void 0,Jr=0;Jr<S.length;++Jr){var zr=S[Jr],eo=zr.marker;if(eo.type=="bookmark"&&zr.from==ke&&eo.widgetNode)fr.push(eo);else if(zr.from<=ke&&(zr.to==null||zr.to>ke||eo.collapsed&&zr.to==ke&&zr.from==ke)){if(zr.to!=null&&zr.to!=ke&&qt>zr.to&&(qt=zr.to,Fn=""),eo.className&&(xn+=" "+eo.className),eo.css&&(tn=(tn?tn+";":"")+eo.css),eo.startStyle&&zr.from==ke&&(Kn+=" "+eo.startStyle),eo.endStyle&&zr.to==qt&&(Pr||(Pr=[])).push(eo.endStyle,zr.to),eo.title&&((br||(br={})).title=eo.title),eo.attributes)for(var fo in eo.attributes)(br||(br={}))[fo]=eo.attributes[fo];eo.collapsed&&(!Hn||st(Hn.marker,eo)<0)&&(Hn=zr)}else zr.from>ke&&qt>zr.from&&(qt=zr.from)}if(Pr)for(var _a=0;_a<Pr.length;_a+=2)Pr[_a+1]==qt&&(Fn+=" "+Pr[_a]);if(!Hn||Hn.from==ke)for(var vs=0;vs<fr.length;++vs)Tc(g,0,fr[vs]);if(Hn&&(Hn.from||0)==ke){if(Tc(g,(Hn.to==null?_e+1:Hn.to)-ke,Hn.marker,Hn.from==null),Hn.to==null)return;Hn.to==ke&&(Hn=!1)}}if(ke>=_e)break;for(var Ys=Math.min(_e,qt);;){if(mt){var qs=ke+mt.length;if(!Hn){var na=qs>Ys?mt.slice(0,Ys-ke):mt;g.addToken(g,na,Bt?Bt+xn:xn,Kn,ke+na.length==qt?Fn:"",tn,br)}if(qs>=Ys){mt=mt.slice(Ys-ke),ke=Ys;break}ke=qs,Kn=""}mt=D.slice(H,H=E[Ue++]),Bt=BA(E[Ue++],g.cm.options)}}}function Pp(u,g,E){this.line=g,this.rest=Yi(g),this.size=this.rest?qe(Vn(this.rest))-E+1:1,this.node=this.text=null,this.hidden=fi(u,g)}function qh(u,g,E){for(var S=[],D,H=g;H<E;H=D){var ce=new Pp(u.doc,Er(u.doc,H),H);D=H+ce.size,S.push(ce)}return S}var $h=null;function gd(u){$h?$h.ops.push(u):u.ownsGroup=$h={ops:[u],delayedCallbacks:[]}}function Vh(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 D=u.ops[S];if(D.cursorActivityHandlers)for(;D.cursorActivityCalled<D.cursorActivityHandlers.length;)D.cursorActivityHandlers[D.cursorActivityCalled++].call(null,D.cm)}}while(E<g.length)}function yd(u,g){var E=u.ownsGroup;if(E)try{Vh(E)}finally{$h=null,g(E)}}var Nu=null;function Es(u,g){var E=Ve(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),D;$h?D=$h.delayedCallbacks:Nu?D=Nu:(D=Nu=[],setTimeout(gu,0));for(var H=function(_e){D.push(function(){return E[_e].apply(null,S)})},ce=0;ce<E.length;++ce)H(ce)}}function gu(){var u=Nu;Nu=null;for(var g=0;g<u.length;++g)u[g]()}function uf(u,g,E,S){for(var D=0;D<g.changes.length;D++){var H=g.changes[D];H=="text"?Rp(u,g):H=="gutter"?vd(u,g,E,S):H=="class"?Hh(u,g):H=="widget"&&Pc(u,g,S)}g.changes=null}function nh(u){return u.node==u.text&&(u.node=Me("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),f&&C<8&&(u.node.style.zIndex=2)),u.node}function _h(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=nh(g);g.background=S.insertBefore(Me("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function kc(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):uc(u,g)}function Rp(u,g){var E=g.text.className,S=kc(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: `+Pr+"px; width: "+(Jr??ke-fr)+`px;
height: `+(zr-Pr)+"px"))}function Bt(fr,Pr,Jr){var zr=Er(D,fr),eo=zr.text.length,fo,_a;function vs(na,NA){return In(u,fn(fr,na),"div",zr,NA)}function Ys(na,NA,$a){var Ds=es(u,zr,null,na),cs=NA=="ltr"==($a=="after")?"left":"right",xi=$a=="after"?Ds.begin:Ds.end-(/\s/.test(zr.text.charAt(Ds.end-1))?2:1);return vs(xi,cs)[cs]}var qs=ve(zr,D.direction);return Jt(qs,Pr||0,Jr??eo,function(na,NA,$a,Ds){var cs=$a=="ltr",xi=vs(na,cs?"left":"right"),Qo=vs(NA-1,cs?"right":"left"),$s=Pr==null&&na==0,la=Jr==null&&NA==eo,xs=Ds==0,lu=!qs||Ds==qs.length-1;if(Qo.top-xi.top<=3){var Fo=(Ue?$s:la)&&xs,Fd=(Ue?la:$s)&&lu,GA=Fo?_e:(cs?xi:Qo).left,Yc=Fd?ke:(cs?Qo:xi).right;mt(GA,xi.top,Yc-GA,xi.bottom)}else{var xc,al,ll,Mf;cs?(xc=Ue&&$s&&xs?_e:xi.left,al=Ue?ke:Ys(na,$a,"before"),ll=Ue?_e:Ys(NA,$a,"after"),Mf=Ue&&la&&lu?ke:Qo.right):(xc=Ue?Ys(na,$a,"before"):_e,al=!Ue&&$s&&xs?ke:xi.right,ll=!Ue&&la&&lu?_e:Qo.left,Mf=Ue?Ys(NA,$a,"after"):ke),mt(xc,xi.top,al-xc,xi.bottom),xi.bottom<Qo.top&&mt(_e,xi.bottom,null,Qo.top),mt(ll,Qo.top,Mf-ll,Qo.bottom)}(!fo||dc(xi,fo)<0)&&(fo=xi),dc(Qo,fo)<0&&(fo=Qo),(!_a||dc(xi,_a)<0)&&(_a=xi),dc(Qo,_a)<0&&(_a=Qo)}),{start:fo,end:_a}}var tn=g.from(),qt=g.to();if(tn.line==qt.line)Bt(tn.line,tn.ch,qt.ch);else{var xn=Er(D,tn.line),Fn=Er(D,qt.line),Kn=Rr(xn)==Rr(Fn),Hn=Bt(tn.line,tn.ch,Kn?xn.text.length+1:null).end,br=Bt(qt.line,Kn?0:null,qt.ch).start;Kn&&(Hn.top<br.top-2?(mt(Hn.right,Hn.top,null,Hn.bottom),mt(_e,br.top,br.left,br.bottom)):mt(Hn.right,Hn.top,br.left-Hn.right,Hn.bottom)),Hn.bottom<br.top&&mt(_e,Hn.bottom,null,br.top)}E.appendChild(H)}function uA(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()||us(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function oh(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Sd(u))}function wh(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&us(u))},100)}function Sd(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(lt(u,"focus",u,g),u.state.focused=!0,Ge(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()),uA(u))}function us(u,g){u.state.delayingBlurEvent||(u.state.focused&&(lt(u,"blur",u,g),u.state.focused=!1,Se(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Uc(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),D=g.lineDiv.getBoundingClientRect().top,H=0,ce=0;ce<g.view.length;ce++){var _e=g.view[ce],ke=u.options.lineWrapping,Ue=void 0,mt=0;if(!_e.hidden){if(D+=_e.line.height,f&&C<8){var Bt=_e.node.offsetTop+_e.node.offsetHeight;Ue=Bt-E,E=Bt}else{var tn=_e.node.getBoundingClientRect();Ue=tn.bottom-tn.top,!ke&&_e.text.firstChild&&(mt=_e.text.firstChild.getBoundingClientRect().right-tn.left-1)}var qt=_e.line.height-Ue;if((qt>.005||qt<-.005)&&(D<S&&(H-=qt),Jo(_e.line,Ue),_u(_e.line),_e.rest))for(var xn=0;xn<_e.rest.length;xn++)_u(_e.rest[xn]);if(mt>u.display.sizerWidth){var Fn=Math.ceil(mt/ga(u.display));Fn>u.display.maxLineLength&&(u.display.maxLineLength=Fn,u.display.maxLine=_e.line,u.display.maxLineChanged=!0)}}}Math.abs(H)>2&&(g.scroller.scrollTop+=H)}function _u(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 kA(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-bh(u));var D=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,H=xt(g,S),ce=xt(g,D);if(E&&E.ensure){var _e=E.ensure.from.line,ke=E.ensure.to.line;_e<H?(H=_e,ce=xt(g,Ki(Er(g,_e))+u.wrapper.clientHeight)):Math.min(ke,g.lastLine())>=ce&&(H=xt(g,Ki(Er(g,ke))-u.wrapper.clientHeight),ce=ke)}return{from:H,to:Math.max(ce,H+1)}}function Xh(u,g){if(!ct(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),D=null,H=E.wrapper.ownerDocument;if(g.top+S.top<0?D=!0:g.bottom+S.top>(H.defaultView.innerHeight||H.documentElement.clientHeight)&&(D=!1),D!=null&&!X){var ce=Me("div","​",null,`position: absolute;
top: `+(g.top-E.viewOffset-bh(u.display))+`px;
height: `+(g.bottom-g.top+fl(u)+E.barHeight)+`px;
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ce),ce.scrollIntoView(D),u.display.lineSpace.removeChild(ce)}}}function Jh(u,g,E,S){S==null&&(S=0);var D;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?fn(g.line,g.ch+1,"before"):g,g=g.ch?fn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var H=0;H<5;H++){var ce=!1,_e=dn(u,g),ke=!E||E==g?_e:dn(u,E);D={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-S,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+S};var Ue=fc(u,D),mt=u.doc.scrollTop,Bt=u.doc.scrollLeft;if(Ue.scrollTop!=null&&(Qu(u,Ue.scrollTop),Math.abs(u.doc.scrollTop-mt)>1&&(ce=!0)),Ue.scrollLeft!=null&&(PA(u,Ue.scrollLeft),Math.abs(u.doc.scrollLeft-Bt)>1&&(ce=!0)),!ce)break}return D}function sh(u,g){var E=fc(u,g);E.scrollTop!=null&&Qu(u,E.scrollTop),E.scrollLeft!=null&&PA(u,E.scrollLeft)}function fc(u,g){var E=u.display,S=ja(u.display);g.top<0&&(g.top=0);var D=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,H=Dc(u),ce={};g.bottom-g.top>H&&(g.bottom=g.top+H);var _e=u.doc.height+Cd(E),ke=g.top<S,Ue=g.bottom>_e-S;if(g.top<D)ce.scrollTop=ke?0:g.top;else if(g.bottom>D+H){var mt=Math.min(g.top,(Ue?_e:g.bottom)-H);mt!=D&&(ce.scrollTop=mt)}var Bt=u.options.fixedGutter?0:E.gutters.offsetWidth,tn=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-Bt,qt=Rc(u)-E.gutters.offsetWidth,xn=g.right-g.left>qt;return xn&&(g.right=g.left+qt),g.left<10?ce.scrollLeft=0:g.left<tn?ce.scrollLeft=Math.max(0,g.left+Bt-(xn?0:10)):g.right>qt+tn-3&&(ce.scrollLeft=g.right+(xn?0:10)-qt),ce}function bu(u,g){g!=null&&(ah(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function ms(u){ah(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function ya(u,g,E){(g!=null||E!=null)&&ah(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Ed(u,g){ah(u),u.curOp.scrollToPos=g}function ah(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Lr(u,g.from),S=Lr(u,g.to);Sh(u,E,S,g.margin)}}function Sh(u,g,E,S){var D=fc(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});ya(u,D.scrollLeft,D.scrollTop)}function Qu(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||yl(u,{top:g}),lh(u,g,!0),i&&yl(u),js(u,100))}function lh(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 PA(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,ru(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function pc(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+Cd(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+fl(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var Sl=function(u,g,E){this.cm=E;var S=this.vert=Me("div",[Me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),D=this.horiz=Me("div",[Me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=D.tabIndex=-1,u(S),u(D),Ne(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),Ne(D,"scroll",function(){D.clientWidth&&g(D.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Sl.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 D=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+D)+"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 H=u.viewWidth-u.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+H)+"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}},Sl.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Sl.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi Line truncated
`},setDirection:Bs(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&vc(this.cm))})}),Kt.prototype.eachLine=Kt.prototype.iter;var zt=0;function sn(u){var g=this;if(ln(g),!(ct(g,u)||Gu(g.display,u))){nn(u),f&&(zt=+new Date);var E=TA(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var D=S.length,H=Array(D),ce=0,_e=function(){++ce==D&&Ro(g,function(){E=vi(g.doc,E);var qt={from:E,to:E,text:g.doc.splitLines(H.filter(function(xn){return xn!=null}).join(g.doc.lineSeparator())),origin:"paste"};Gc(g.doc,qt),Bu(g.doc,qa(vi(g.doc,E),vi(g.doc,ea(qt))))})()},ke=function(qt,xn){if(g.options.allowDropFileTypes&&Ye(g.options.allowDropFileTypes,qt.type)==-1){_e();return}var Fn=new FileReader;Fn.onerror=function(){return _e()},Fn.onload=function(){var Kn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Kn)){_e();return}H[xn]=Kn,_e()},Fn.readAsText(qt)},Ue=0;Ue<S.length;Ue++)ke(S[Ue],Ue);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 Bt;if(g.state.draggingText&&!g.state.draggingText.copy&&(Bt=g.listSelections()),Ia(g.doc,qa(E,E)),Bt)for(var tn=0;tn<Bt.length;++tn)v(g.doc,"",Bt[tn].anchor,Bt[tn].head,"drag");g.replaceSelection(mt,"around","paste"),g.display.input.focus()}}catch{}}}}function bn(u,g){if(f&&(!u.state.draggingText||+new Date-zt<100)){dr(g);return}if(!(ct(u,g)||Gu(u.display,g))&&(g.dataTransfer.setData("Text",u.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!N)){var E=Me("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 en(u,g){var E=TA(u,g);if(E){var S=document.createDocumentFragment();Lc(u,E,S),u.display.dragCursor||(u.display.dragCursor=Me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),je(u.display.dragCursor,S)}}function ln(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function Cn(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var D=g[S].CodeMirror;D&&E.push(D)}E.length&&E[0].operation(function(){for(var H=0;H<E.length;H++)u(E[H])})}}var Ar=!1;function cr(){Ar||(kn(),Ar=!0)}function kn(){var u;Ne(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,Cn(Br)},100))}),Ne(window,"blur",function(){return Cn(us)})}function Br(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Hr={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"},Xi=0;Xi<10;Xi++)Hr[Xi+48]=Hr[Xi+96]=String(Xi);for(var ts=65;ts<=90;ts++)Hr[ts]=String.fromCharCode(ts);for(var Ko=1;Ko<=12;Ko++)Hr[Ko+111]=Hr[Ko+63235]="F"+Ko;var jo={};jo.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"},jo.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"},jo.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 Zl(u,g){var E=Er(u.doc,g),S=Rr(E);return S!=E&&(g=qe(S)),Ou(!0,u,S,g,1)}function mA(u,g){var E=Er(u.doc,g),S=ni(E);return S!=E&&(g=qe(S)),Ou(!0,u,E,g,-1)}function ec(u,g){var E=Zl(u,g.line),S=Er(u.doc,E.line),D=ve(S,u.doc.direction);if(!D||D[0].level==0){var H=Math.max(E.ch,S.text.search(/\S/)),ce=g.line==E.line&&g.ch<=H&&g.ch;return fn(E.line,ce?0:H,E.sticky)}return E}function Xl(u,g,E){if(typeof g=="string"&&(g=au[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,D=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),D=g(u)!=yt}finally{u.display.shift=S,u.state.suppressEdits=!1}return D}function jc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var D=ji(g,u.state.keyMaps[S],E,u);if(D)return D}return u.options.extraKeys&&ji(g,u.options.extraKeys,E,u)||ji(g,u.options.keyMap,E,u)}var ka=new Re;function Qs(u,g,E,S){var D=u.state.keySeq;if(D){if(aa(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:ka.set(50,function(){u.state.keySeq==D&&(u.state.keySeq=null,u.display.input.reset())}),Pl(u,D+" "+g,E,S))return!0}return Pl(u,g,E,S)}function Pl(u,g,E,S){var D=jc(u,g,S);return D=="multi"&&(u.state.keySeq=g),D=="handled"&&Es(u,"keyHandled",u,g,E),(D=="handled"||D=="multi")&&(nn(E),uA(u)),!!D}function ys(u,g){var E=Ca(g,!0);return E?g.shiftKey&&!u.state.keySeq?Qs(u,"Shift-"+E,g,function(S){return Xl(u,S,!0)})||Qs(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Xl(u,S)}):Qs(u,E,g,function(S){return Xl(u,S)}):!1}function Cf(u,g,E){return Qs(u,"'"+E+"'",g,function(S){return Xl(u,S,!0)})}var Bd=null;function Od(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=nt(Dt(g)),!ct(g,u))){f&&C<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=ys(g,u);U&&(Bd=S?E:null,!S&&E==88&&!ui&&(V?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!V&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&gA(g)}}function gA(u){var g=u.display.lineDiv;Ge(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(Se(g,"CodeMirror-crosshair"),Te(document,"keyup",E),Te(document,"mouseover",E))}Ne(document,"keyup",E),Ne(document,"mouseover",E)}function LA(u){u.keyCode==16&&(this.doc.sel.shift=!1),ct(this,u)}function Wc(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(Gu(g.display,u)||ct(g,u)||u.ctrlKey&&!u.altKey||V&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(U&&E==Bd){Bd=null,nn(u);return}if(!(U&&(!u.which||u.which<10)&&ys(g,u))){var D=String.fromCharCode(S??E);D!="\b"&&(Cf(g,u,D)||g.display.input.onKeyPress(u))}}}var Iu=400,yA=function(u,g,E){this.time=u,this.pos=g,this.button=E};yA.prototype.compare=function(u,g,E){return this.time+Iu>u&&gr(g,this.pos)==0&&E==this.button};var Pa,ta;function Th(u,g){var E=+new Date;return ta&&ta.compare(E,u,g)?(Pa=ta=null,"triple"):Pa&&Pa.compare(E,u,g)?(ta=new yA(E,u,g),Pa=null,"double"):(Pa=new yA(E,u,g),ta=null,"single")}function Tu(u){var g=this,E=g.display;if(!(ct(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,Gu(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!kh(g,u)){var S=TA(g,u),D=or(u),H=S?Th(S,D):"single";Rt(g).focus(),D==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Id(g,D,S,H,u))&&(D==1?S?nd(g,S,H,u):Tr(u)==E.scroller&&nn(u):D==2?(S&&ri(g.doc,S),setTimeout(function(){return E.input.focus()},20)):D==3&&(pe?g.display.input.onContextMenu(u):wh(g)))}}}function Id(u,g,E,S,D){var H="Click";return S=="double"?H="Double"+H:S=="triple"&&(H="Triple"+H),H=(g==1?"Left":g==2?"Middle":"Right")+H,Qs(u,Ta(H,D),D,function(ce){if(typeof ce=="string"&&(ce=au[ce]),!ce)return!1;var _e=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),_e=ce(u,E)!=yt}finally{u.state.suppressEdits=!1}return _e})}function td(u,g,E){var S=u.getOption("configureMouse"),D=S?S(u,g,E):{};if(D.unit==null){var H=ne?E.shiftKey&&E.metaKey:E.altKey;D.unit=H?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(D.extend==null||u.doc.extend)&&(D.extend=u.doc.extend||E.shiftKey),D.addNew==null&&(D.addNew=V?E.metaKey:E.ctrlKey),D.moveOnDrag==null&&(D.moveOnDrag=!(V?E.altKey:E.ctrlKey)),D}function nd(u,g,E,S){f?setTimeout(St(oh,u),0):u.curOp.focus=nt(Dt(u));var D=td(u,E,S),H=u.doc.sel,ce;u.options.dragDrop&&on&&!u.isReadOnly()&&E=="single"&&(ce=H.contains(g))>-1&&(gr((ce=H.ranges[ce]).from(),g)<0||g.xRel>0)&&(gr(ce.to(),g)>0||g.xRel<0)?Fp(u,S,g,D):dh(u,S,g,D)}function Fp(u,g,E,S){var D=u.display,H=!1,ce=Ro(u,function(Ue){x&&(D.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:wh(u)),Te(D.wrapper.ownerDocument,"mouseup",ce),Te(D.wrapper.ownerDocument,"mousemove",_e),Te(D.scroller,"dragstart",ke),Te(D.scro Line truncated
`)==g){if(S.ranges.length%UA.text.length==0){Ue=[];for(var mt=0;mt<UA.text.length;mt++)Ue.push(H.splitLines(UA.text[mt]))}}else ke.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(Ue=Pn(ke,function(Hn){return[Hn]}));for(var Bt=u.curOp.updateInput,tn=S.ranges.length-1;tn>=0;tn--){var qt=S.ranges[tn],xn=qt.from(),Fn=qt.to();qt.empty()&&(E&&E>0?xn=fn(xn.line,xn.ch-E):u.state.overwrite&&!_e?Fn=fn(Fn.line,Math.min(Er(H,Fn.line).text.length,Fn.ch+Vn(ke).length)):_e&&UA&&UA.lineWise&&UA.text.join(`
`)==ke.join(`
`)&&(xn=Fn=fn(xn.line,0)));var Kn={from:xn,to:Fn,text:Ue?Ue[tn%Ue.length]:ke,origin:D||(_e?"paste":u.state.cutIncoming>ce?"cut":"+input")};Gc(u.doc,Kn),Es(u,"inputRead",u,Kn)}g&&!_e&&bf(u,g),ms(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Bt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Qc(u,g){var E=u.clipboardData&&u.clipboardData.getData("Text");if(E)return u.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Xs(g,function(){return Hf(g,E,0,null,"paste")}),!0}function bf(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var D=E.ranges[S];if(!(D.head.ch>100||S&&E.ranges[S-1].head.line==D.head.line)){var H=u.getModeAt(D.head),ce=!1;if(H.electricChars){for(var _e=0;_e<H.electricChars.length;_e++)if(g.indexOf(H.electricChars.charAt(_e))>-1){ce=fh(u,D.head.line,"smart");break}}else H.electricInput&&H.electricInput.test(Er(u.doc,D.head.line).text.slice(0,D.head.ch))&&(ce=fh(u,D.head.line,"smart"));ce&&Es(u,"electricInput",u,D.head.line)}}}function Rd(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var D=u.doc.sel.ranges[S].head.line,H={anchor:fn(D,0),head:fn(D+1,0)};E.push(H),g.push(u.getRange(H.anchor,H.head))}return{text:g,ranges:E}}function Dd(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function id(){var u=Me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=Me("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 Rh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Rt(this).focus(),this.display.input.focus()},setOption:function(S,D){var H=this.options,ce=H[S];H[S]==D&&S!="mode"||(H[S]=D,g.hasOwnProperty(S)&&Ro(this,g[S])(this,D,ce),lt(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,D){this.state.keyMaps[D?"push":"unshift"](ao(S))},removeKeyMap:function(S){for(var D=this.state.keyMaps,H=0;H<D.length;++H)if(D[H]==S||D[H].name==S)return D.splice(H,1),!0},addOverlay:ai(function(S,D){var H=S.token?S:u.getMode(this.options,S);if(H.startState)throw new Error("Overlays may not be stateful.");Dn(this.state.overlays,{mode:H,modeSpec:S,opaque:D&&D.opaque,priority:D&&D.priority||0},function(ce){return ce.priority}),this.state.modeGen++,Wa(this)}),removeOverlay:ai(function(S){for(var D=this.state.overlays,H=0;H<D.length;++H){var ce=D[H].modeSpec;if(ce==S||typeof S=="string"&&ce.name==S){D.splice(H,1),this.state.modeGen++,Wa(this);return}}}),indentLine:ai(function(S,D,H){typeof D!="string"&&typeof D!="number"&&(D==null?D=this.options.smartIndent?"smart":"prev":D=D?"add":"subtract"),_n(this.doc,S)&&fh(this,S,D,H)}),indentSelection:ai(function(S){for(var D=this.doc.sel.ranges,H=-1,ce=0;ce<D.length;ce++){var _e=D[ce];if(_e.empty())_e.head.line>H&&(fh(this,_e.head.line,S,!0),H=_e.head.line,ce==this.doc.sel.primIndex&&ms(this));else{var ke=_e.from(),Ue=_e.to(),mt=Math.max(H,ke.line);H=Math.min(this.lastLine(),Ue.line-(Ue.ch?0:1))+1;for(var Bt=mt;Bt<H;++Bt)fh(this,Bt,S);var tn=this.doc.sel.ranges;ke.ch==0&&D.length==tn.length&&tn[ce].from().ch>0&&Tl(this.doc,ce,new Mo(ke,tn[ce].to()),Et)}}}),getTokenAt:function(S,D){return Wl(this,S,D)},getLineTokens:function(S,D){return Wl(this,fn(S),D,!0)},getTokenTypeAt:function(S){S=vi(this.doc,S);var D=Sa(this,Er(this.doc,S.line)),H=0,ce=(D.length-1)/2,_e=S.ch,ke;if(_e==0)ke=D[2];else for(;;){var Ue=H+ce>>1;if((Ue?D[Ue*2-1]:0)>=_e)ce=Ue;else if(D[Ue*2+1]<_e)H=Ue+1;else{ke=D[Ue*2+2];break}}var mt=ke?ke.indexOf("overlay "):-1;return mt<0?ke:mt==0?null:ke.slice(0,mt-1)},getModeAt:function(S){var D=this.doc.mode;return D.innerMode?u.innerMode(D,this.getTokenAt(S).state).mode:D},getHelper:function(S,D){return this.getHelpers(S,D)[0]},getHelpers:function(S,D){var H=[];if(!E.hasOwnProperty(D))return H;var ce=E[D],_e=this.getModeAt(S);if(typeof _e[D]=="string")ce[_e[D]]&&H.push(ce[_e[D]]);else if(_e[D])for(var ke=0;ke<_e[D].length;ke++){var Ue=ce[_e[D][ke]];Ue&&H.push(Ue)}else _e.helperType&&ce[_e.helperType]?H.push(ce[_e.helperType]):ce[_e.name]&&H.push(ce[_e.name]);for(var mt=0;mt<ce._global.length;mt++){var Bt=ce._global[mt];Bt.pred(_e,this)&&Ye(H,Bt.val)==-1&&H.push(Bt.val)}return H},getStateAfter:function(S,D){var H=this.doc;return S=iA(H,S??H.first+H.size-1),bi(this,S+1,D).state},cursorCoords:function(S,D){var H,ce=this.doc.sel.primary();return S==null?H=ce.head:typeof S=="object"?H=vi(this.doc,S):H=S?ce.from():ce.to(),dn(this,H,D||"page")},charCoords:function(S,D){return In(this,vi(this.doc,S),D||"page")},coordsChar:function(S,D){return S=rn(this,S,D||"page"),Go(this,S.left,S.top)},lineAtHeight:function(S,D){return S=rn(this,{top:S,left:0},D||"page").top,xt( Line truncated
`,Kn=We(Fn,qt)?"w":tn&&Fn==`
`?"n":!tn||/\s/.test(Fn)?null:"p";if(tn&&!xn&&!Kn&&(Kn="s"),Bt&&Bt!=Kn){E<0&&(E=1,mt(),g.sticky="after");break}if(Kn&&(Bt=Kn),E>0&&!mt(!xn))break}var Hn=Ju(u,g,H,ce,!0);return Qi(H,Hn)&&(Hn.hitSide=!0),Hn}function Kd(u,g,E,S){var D=u.doc,H=g.left,ce;if(S=="page"){var _e=Math.min(u.display.wrapper.clientHeight,Rt(u).innerHeight||D(u).documentElement.clientHeight),ke=Math.max(_e-.5*ja(u.display),3);ce=(E>0?g.bottom:g.top)+E*ke}else S=="line"&&(ce=E>0?g.bottom+3:g.top-3);for(var Ue;Ue=Go(u,H,ce),!!Ue.outside;){if(E<0?ce<=0:ce>=D.height){Ue.hitSide=!0;break}ce+=E*5}return Ue}var Wo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Wo.prototype.init=function(u){var g=this,E=this,S=E.cm,D=E.div=u.lineDiv;D.contentEditable=!0,Dd(D,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function H(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==D)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Ne(D,"paste",function(_e){!H(_e)||ct(S,_e)||Qc(_e,S)||C<=11&&setTimeout(Ro(S,function(){return g.updateFromDOM()}),20)}),Ne(D,"compositionstart",function(_e){g.composing={data:_e.data,done:!1}}),Ne(D,"compositionupdate",function(_e){g.composing||(g.composing={data:_e.data,done:!1})}),Ne(D,"compositionend",function(_e){g.composing&&(_e.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),Ne(D,"touchstart",function(){return E.forceCompositionEnd()}),Ne(D,"input",function(){g.composing||g.readFromDOMSoon()});function ce(_e){if(!(!H(_e)||ct(S,_e))){if(S.somethingSelected())Pd({lineWise:!1,text:S.getSelections()}),_e.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var ke=Rd(S);Pd({lineWise:!0,text:ke.text}),_e.type=="cut"&&S.operation(function(){S.setSelections(ke.ranges,0,Et),S.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ue=UA.text.join(`
`);if(_e.clipboardData.setData("Text",Ue),_e.clipboardData.getData("Text")==Ue){_e.preventDefault();return}}var mt=id(),Bt=mt.firstChild;Dd(Bt),S.display.lineSpace.insertBefore(mt,S.display.lineSpace.firstChild),Bt.value=UA.text.join(`
`);var tn=nt(ut(D));$e(Bt),setTimeout(function(){S.display.lineSpace.removeChild(mt),tn.focus(),tn==D&&E.showPrimarySelection()},50)}}Ne(D,"copy",ce),Ne(D,"cut",ce)},Wo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Wo.prototype.prepareSelection=function(){var u=Zi(this.cm,!1);return u.focus=nt(ut(this.div))==this.div,u},Wo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Wo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Wo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),D=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||D.line<g.display.viewFrom){u.removeAllRanges();return}var H=vl(g,u.anchorNode,u.anchorOffset),ce=vl(g,u.focusNode,u.focusOffset);if(!(H&&!H.bad&&ce&&!ce.bad&&gr(fa(H,ce),S)==0&&gr(fs(H,ce),D)==0)){var _e=g.display.view,ke=S.line>=g.display.viewFrom&&tc(g,S)||{node:_e[0].measure.map[2],offset:0},Ue=D.line<g.display.viewTo&&tc(g,D);if(!Ue){var mt=_e[_e.length-1].measure,Bt=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ue={node:Bt[Bt.length-1],offset:Bt[Bt.length-2]-Bt[Bt.length-3]}}if(!ke||!Ue){u.removeAllRanges();return}var tn=u.rangeCount&&u.getRangeAt(0),qt;try{qt=Ct(ke.node,ke.offset,Ue.offset,Ue.node)}catch{}qt&&(!i&&g.state.focused?(u.collapse(ke.node,ke.offset),qt.collapsed||(u.removeAllRanges(),u.addRange(qt))):(u.removeAllRanges(),u.addRange(qt)),tn&&u.anchorNode==null?u.addRange(tn):i&&this.startGracePeriod()),this.rememberSelection()}},Wo.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)},Wo.prototype.showMultipleSelections=function(u){je(this.cm.display.cursorDiv,u.cursors),je(this.cm.display.selectionDiv,u.selection)},Wo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Wo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return it(this.div,g)},Wo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(ut(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Wo.prototype.blur=function(){this.div.blur()},Wo.prototype.getField=function(){return this.div},Wo.prototype.supportsTouch=function(){return!0},Wo.prototype.receivedFocus=function(){var u=this,g=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):Xs(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)},Wo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Wo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(re&&R&&this.cm.display.gutterSpecs.length&&zA(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=vl(g,u.anchorNode,u.anchorOffset),S=vl(g,u.focusNode,u.focusOffset);E&&S&&Xs(g,function(){ss(g.doc,qa(E,S),Et),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Wo.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(),D=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=fn(S.line-1,Er(u.doc,S.line-1).length)),D.ch==Er(u.doc,D.line).text.length&&D.line<u.lastLine()&&(D=fn(D.line+1,0)),S.line<g.viewFrom||D.line>g.viewTo-1)return!1;var H,ce,_e;S.line==g.viewFrom||(H=tu(u,S.line))==0?(ce=qe(g.view[0].line),_e=g.view[0].node):(ce=qe(g.view[H].line),_e=g.view[H-1].node.nextSibling);var ke=tu(u,D.line),Ue,mt;if(ke==g.view.length-1?(Ue=g.viewTo-1,mt=g.lineDiv.lastChild):(Ue=qe(g.view[ke+1].line)-1,mt=g.view[ke+1].node.previousSibling),!_e)return!1;for(var Bt=u.doc.splitLines(zp(u,_e,mt,ce,Ue)),tn=wa(u.doc,fn(ce,0),fn(Ue,Er(u.doc,Ue).text.length));Bt.length>1&&tn.length>1;)if(Vn(Bt)==Vn(tn))Bt.pop(),tn.pop(),Ue--;else if(Bt[0]==tn[0])Bt.shift(),tn.shift(),ce++;else break;for(var qt=0,xn=0,Fn=Bt[0],Kn=tn[0],Hn=Math.min(Fn.length,Kn.length);qt<Hn&&Fn.charCodeAt(qt)==Kn.charCodeAt(qt);)++qt;for(var br=Vn(Bt),fr=Vn(tn),Pr=Math.min(br.length-(Bt.length==1?qt:0),fr.length-(tn. Line truncated
`),$e(D))}else return;ce.type=="cut"&&(S.state.cutIncoming=+new Date)}}Ne(D,"cut",H),Ne(D,"copy",H),Ne(u.scroller,"paste",function(ce){if(!(Gu(u,ce)||ct(S,ce))){if(!D.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var _e=new Event("paste");_e.clipboardData=ce.clipboardData,D.dispatchEvent(_e)}}),Ne(u.lineSpace,"selectstart",function(ce){Gu(u,ce)||nn(ce)}),Ne(D,"compositionstart",function(){var ce=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ce,range:S.markText(ce,S.getCursor("to"),{className:"CodeMirror-composing"})}}),Ne(D,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ra.prototype.createField=function(u){this.wrapper=id(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;Dd(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Ra.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Ra.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Zi(u);if(u.options.moveInputWithCursor){var D=dn(u,E.sel.primary().head,"div"),H=g.wrapper.getBoundingClientRect(),ce=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,D.top+ce.top-H.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,D.left+ce.left-H.left))}return S},Ra.prototype.showSelection=function(u){var g=this.cm,E=g.display;je(E.cursorDiv,u.cursors),je(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Ra.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&&$e(this.textarea),f&&C>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",f&&C>=9&&(this.hasSelection=null));this.resetting=!1}},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||nt(ut(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Ra.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)},Ra.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Dr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var D=E.value;if(D==S&&!g.somethingSelected())return!1;if(f&&C>=9&&this.hasSelection===D||V&&/[\uf700-\uf7ff]/.test(D))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var H=D.charCodeAt(0);if(H==8203&&!S&&(S="​"),H==8666)return this.reset(),this.cm.execCommand("undo")}for(var ce=0,_e=Math.min(S.length,D.length);ce<_e&&S.charCodeAt(ce)==D.charCodeAt(ce);)++ce;return Xs(g,function(){Hf(g,D.slice(ce),S.length-ce,null,u.composing?"*compose":null),D.length>1e3||D.indexOf(`
`)>-1?E.value=u.prevInput="":u.prevInput=D,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){f&&C>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,D=g.textarea;g.contextMenuPending&&g.contextMenuPending();var H=TA(E,u),ce=S.scroller.scrollTop;if(!H||U)return;var _e=E.options.resetSelectionOnContextMenu;_e&&E.doc.sel.contains(H)==-1&&Ro(E,ss)(E.doc,qa(H),Et);var ke=D.style.cssText,Ue=g.wrapper.style.cssText,mt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",D.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 Bt;x&&(Bt=D.ownerDocument.defaultView.scrollY),S.input.focus(),x&&D.ownerDocument.defaultView.scrollTo(null,Bt),S.input.reset(),E.somethingSelected()||(D.value=g.prevInput=" "),g.contextMenuPending=qt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function tn(){if(D.selectionStart!=null){var Fn=E.somethingSelected(),Kn="​"+(Fn?D.value:"");D.value="⇚",D.value=Kn,g.prevInput=Fn?"":"​",D.selectionStart=1,D.selectionEnd=Kn.length,S.selForContextMenu=E.doc.sel}}function qt(){if(g.contextMenuPending==qt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ue,D.style.cssText=ke,f&&C<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ce),D.selectionStart!=null)){(!f||f&&C<9)&&tn();var Fn=0,Kn=function(){S.selForContextMenu==E.doc.sel&&D.selectionStart==0&&D.selectionEnd>0&&g.prevInput=="​"?Ro(E,sl)(E):Fn++<10?S.detectingSelectAll=setTimeout(Kn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Kn,200)}}if(f&&C>=9&&tn(),pe){dr(u);var xn=function(){Te(window,"mouseup",xn),setTimeout(qt,20)};Ne(window,"mouseup",xn)}else setTimeout(qt,50)},Ra.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Ra.prototype.setUneditable=function(){},Ra.prototype.needsContentAttribute=!1;function Cm(u,g){if(g=g?Ke(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=nt(ut(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=_e.getValue()}var D;if(u.form&&(Ne(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var H=u.form;D=H.submit;try{var ce=H.submit=function(){S(),H.submit=D,H.submit(),H.submit=ce}}catch{}}g.finishInit=function(ke){ke.save=S,ke.getTextArea=function(){return u},ke.toTextArea=function(){ke.toTextArea=isNaN,S(),u.parentNode.removeChild(ke.getWrapperElement()),u.style.display="",u.form&&(Te(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=D))}},u.style.display="none";var _e=wo(function(ke){return u.parentNode.insertBefore(ke,u.nextSibling)},g);return _e}function Zf(u){u.off=Te,u.on=Ne,u.wheelEventPixels=ou,u.Doc=Kt,u.splitLines=wn,u.countColumn=Pe,u.findColumn=An,u.isWordChar=Yn,u.Pass=yt,u.signal=lt,u.Line=Na,u.changeEnd=ea,u.scrollbarModel=bs,u.Pos=fn,u.cmpPos=gr,u.modes=As,u.mimeModes=qr,u.resolveMode=da,u.getMode=No,u.modeExtensions=zs,u.extendMode=hl,u.copyState=ci,u.startState=bo,u.innerMode=oa,u.commands=au,u.keyMap=jo,u.keyName=Ca,u.isModifierKey=aa,u.lookupKey=ji,u.normalizeKeyMap=ho,u.StringStream=lo,u.SharedTextMarker=dt,u.TextMarker=He,u.LineWidget=de,u.e_preventDefault=nn,u.e_stopPropagation=On,u.e_stop=dr,u.addClass=Ge,u.contains=it,u.rmClass=Se,u.keyNames=Hr}Rl(wo),Rh(wo);var CA="iter insert remove copy getEditor constructor".split(" ");for(var xf in Kt.prototype)Kt.prototype.hasOwnProperty(xf)&&Ye(CA,xf)<0&&(wo.prototype[xf]=function(u){return function(){return u.apply(this.doc,arguments)}}(Kt.prototype[xf]));return Gt(Kt),wo.inputStyles={textarea:Ra,contenteditable:Wo},wo.defineMode=function(u){!wo.defaults.mode&&u!="null"&&(wo.defaults.mode=u),_s.apply(this,arguments)},wo.defineMIME=La,wo.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),wo.defineMIME("text/plain","null"),wo.defineExtension=function(u,g){wo.prototype[u]=g},wo.defineDocExtension=function(u,g){Kt.prototype[u]=g},wo.fromTextArea=Cm,Zf(wo),wo.version="5.65.20",wo})}(l2)),l2.exports}var Xoe=g3();const bp=Gl(Xoe);var KT={exports:{}},FT;function Joe(){return FT||(FT=1,function(n,e){(function(t){t(g3())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,f=i.json||o,C=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,R=function(){function qe(Io){return{type:Io,style:"keyword"}}var xt=qe("keyword a"),_n=qe("keyword b"),jn=qe("keyword c"),fn=qe("keyword d"),gr=qe("operator"),Qi={type:"atom",style:"atom"};return{if:qe("if"),while:xt,with:xt,else:_n,do:_n,try:_n,finally:_n,return:fn,break:fn,continue:fn,new:qe("new"),delete:jn,void:jn,throw:jn,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:gr,typeof:gr,instanceof:gr,true:Qi,false:Qi,null:Qi,undefined:Qi,NaN:Qi,Infinity:Qi,this:qe("this"),class:qe("class"),super:qe("atom"),yield:jn,export:qe("export"),import:qe("import"),extends:jn,await:jn}}(),P=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(qe){for(var xt=!1,_n,jn=!1;(_n=qe.next())!=null;){if(!xt){if(_n=="/"&&!jn)return;_n=="["?jn=!0:jn&&_n=="]"&&(jn=!1)}xt=!xt&&_n=="\\"}}var W,X;function $(qe,xt,_n){return W=qe,X=_n,xt}fun Line truncated
${B}`),N].join(`
${o}`)}return C}(n,"",0)}var Xv={exports:{}},rse=Xv.exports,GT;function ise(){return GT||(GT=1,function(n,e){(function(t,r){r(e)})(rse,function(t){const r={isWhiteSpace:function(Ge){return Ge===" "||Ge===" "||Ge==="\uFEFF"||Ge>=" "&&Ge<="\r"||Ge===" "||Ge>=" "&&Ge<=" "||Ge==="\u2028"||Ge==="\u2029"||Ge===" "||Ge===" "||Ge===" "},isWhiteSpaceJSON:function(Ge){return Ge===" "||Ge===" "||Ge===`
`||Ge==="\r"},isLineTerminator:function(Ge){return Ge===`
`||Ge==="\r"||Ge==="\u2028"||Ge==="\u2029"},isLineTerminatorJSON:function(Ge){return Ge===`
`||Ge==="\r"},isIdentifierStart:function(Ge){return Ge==="$"||Ge==="_"||Ge>="A"&&Ge<="Z"||Ge>="a"&&Ge<="z"||Ge>="€"&&r.NonAsciiIdentifierStart.test(Ge)},isIdentifierPart:function(Ge){return Ge==="$"||Ge==="_"||Ge>="A"&&Ge<="Z"||Ge>="a"&&Ge<="z"||Ge>="0"&&Ge<="9"||Ge>="€"&&r.NonAsciiIdentifierPart.test(Ge)},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","/":"/"},C=Object.hasOwn,x={};function B(nt,Ge){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const Ie=Ge.mode==="json5",$e=Ge.ignoreBOM,gt=Ge.ignoreComments||Ge.mode==="cjson"||Ie,Dt=Ge.ignoreTrailingCommas||Ie,ut=Ge.ignoreProtoKey,Rt=Ge.ignorePrototypeKeys,St=Ge.allowSingleQuotedStrings||Ie,Ke=Ge.allowDuplicateObjectKeys,Pe=Ge.reviver,Re=Ge.tokenize,Ye=Ge.rawTokens,vt=Ge.tokenLocations,yt=Ge.tokenPaths,Et=Ie?r.isLineTerminator:r.isLineTerminatorJSON,Zt=Ie?r.isWhiteSpace:r.isWhiteSpaceJSON,Ut=nt.length;let An=0,hr=0,Vt=0;const Vn=[];let Pn,Dn,Ln;if(Re){let Ve=null,Te,lt;Pn=function(){if(Ve!==null)throw Error("internal error, token overlap");Te=An+1,lt=Vt-hr+1,Ve=Vt},Dn=function(ct,Ft){if(Ve!==Vt){const jt={type:ct};Ye&&(jt.raw=nt.substr(Ve,Vt-Ve)),Ft!==void 0&&(jt.value=Ft),vt&&(jt.location={start:{column:lt,line:Te,offset:Ve}}),yt&&(jt.path=Ln.slice()),Vn.push(jt)}return Ve=null,Ft},yt&&(Ln=[])}function Ir(){let Ve;return Vt<Ut?Ve=`Unexpected token ${JSON.stringify(nt[Vt])}`:Ve="Unexpected end of input",Ve}function rr(Ve){const Te=Vt-hr+1;++An;const lt=we(Ve,nt,Vt,An,Te),ct=SyntaxError(lt.message);return ct.reason=Ve,ct.excerpt=lt.excerpt,ct.pointer=lt.pointer,ct.location={start:{column:Te,line:An,offset:Vt}},ct}function Yn(Ve){throw Ve||(Ve=Ir()),rr(Ve)}function We(Ve){Ve==="\r"&&nt[Vt]===`
`&&++Vt,hr=Vt,++An}function he(){if(Vt<Ut){Pn?.();const Ve=nt[Vt++];if(Ve==='"'||Ve==="'"&&St){const Te=p(Ve);return Dn?.("literal",Te),Te}if(Ve==="{")return Dn?.("symbol","{"),ir();if(Ve==="[")return Dn?.("symbol","["),Xe();if(Ve==="-"||Ve==="."||l(Ve)||Ie&&(Ve==="+"||Ve==="I"||Ve==="N")){const Te=ae();return Dn?.("literal",Te),Te}if(Ve==="n")return Jt("null"),Dn?.("literal",null),null;if(Ve==="t")return Jt("true"),Dn?.("literal",!0),!0;if(Ve==="f")return Jt("false"),Dn?.("literal",!1),!1;--Vt,Dn?.();return}}function me(){let Ve;if(Vt<Ut){Pn?.();const Te=nt[Vt++];if(Te==='"'||Te==="'"&&St){const lt=p(Te);return Dn?.("literal",lt),lt}if(Te==="{")return Dn?.("symbol","{"),ir();if(Te==="[")return Dn?.("symbol","["),Xe();if(Te==="."||l(Te)){const lt=ae();return Dn?.("literal",lt),lt}if(Ie&&r.isIdentifierStart(Te)||Te==="\\"&&nt[Vt]==="u"){const lt=Vt-1;if(Ve=ve(),Ve===void 0){Vt=lt,Dn?.();return}return Dn?.("literal",Ve),Ve}--Vt,Dn?.();return}}function et(){o(nt)&&(Pn?.(),++Vt,Dn?.("bom"))}function bt(){let Ve;function Te(){Ve||(Ve=!0,--Vt,Pn(),++Vt)}function lt(){Ve&&(Ve=!1,Dn("whitespace"))}for(;Vt<Ut;){const ct=nt[Vt++];if(Et(ct))Pn&&Te(),We(ct);else if(Zt(ct))Pn&&Te();else if(ct==="/"&&gt&&(nt[Vt]==="/"||nt[Vt]==="*"))Pn&&(--Vt,lt(),Pn(),++Vt),Yt(nt[Vt++]==="*"),Dn?.("comment");else{--Vt;break}}Dn&&lt()}function Yt(Ve){for(;Vt<Ut;){const Te=nt[Vt++];if(Et(Te)){if(!Ve){--Vt;return}We(Te)}else if(Te==="*"&&Ve&&nt[Vt]==="/"){++Vt;return}}Ve&&Yn("Unclosed multiline comment")}function Jt(Ve){const Te=Vt;for(let lt=1,ct=Ve.length;lt<ct;++lt)(Vt>=Ut||Ve[lt]!==nt[Vt])&&(Vt=Te-1,Yn()),++Vt}function ir(){let Ve={},Te=!1;for(;Vt<Ut;){bt();const lt=me();Ke===!1&&C(Ve,lt)&&Yn(`Duplicate key: "${lt}"`),bt(),Pn?.();let ct=nt[Vt++];if(Dn?.("symbol",ct),ct==="}"&&lt===void 0)return!Dt&&Te&&(--Vt,Yn("Trailing comma in object")),Ve;if(ct===":"&&lt!==void 0){bt(),Ln?.push(lt);let Ft=he();if(Ln?.pop(),Ft===void 0&&Yn(`No value found for key "${lt}"`),typeof lt!="string"&&(!Ie||typeof lt!="number")&&Yn(`Wrong key type: "${lt}"`),Rt&&(lt in x||x[lt]!=null)||ut&&lt==="__proto__"||(Pe&&(Ft=Pe(lt,Ft)),Ft!==void 0&&(Te=!0,lt==="__proto__"?Ve=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Ft)}}`),Ve):Ve[lt]=Ft)),bt(),Pn?.(),ct=nt[Vt++],Dn?.("symbol",ct),ct!==","){if(ct==="}")return Ve;Yn()}}else--Vt,Yn()}Yn()}function Xe(){const Ve=[];for(;Vt<Ut;){bt(),Ln?.push(Ve.length);let Te=he();Ln?.pop(),bt(),Pn?.();const lt=nt[Vt++];if(Dn?.("symbol",lt),Te!==void 0&&(Pe&&(Te=Pe(String(Ve.length),Te)),Te===void 0?(++Ve.length,Te=!0):Ve.push(Te)),lt===",")Te===void 0&&Yn("Elisions are not supported");else{if(lt==="]")return!Dt&&Te===void 0&&Ve.length&&(--Vt,Yn("Trailing comma in array")),Ve;--Vt,Yn()}}}function ae(){--Vt;let Ve=Vt,Te=nt[Vt++];const lt=function(ct){const Ft=nt.substr(Ve,Vt-Ve);let jt;if(ct?jt=Number.parseInt(Ft.replace(/^0o?/,""),8):jt=Number(Ft),Number.isNaN(jt))--Vt,Yn(`Bad numeric literal - "${nt.substr(Ve,Vt-Ve+1)}"`);else if(!Ie&&!Ft.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Vt,Yn(`Non-json numeric literal - "${nt.substr(Ve,Vt-Ve+1)}"`);else return jt};if((Te==="-"||Te==="+"&&Ie)&&(Te=nt[Vt++]),Te==="N"&&Ie)return Jt("NaN"),Number.NaN;if(Te==="I"&&Ie)return Jt("Infinity"),lt();if(Te>="1"&&Te<="9"){for(;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}if(Te==="0"){Te=nt[Vt++];const ct=Te==="o"||Te==="O"||s(Te),Ft=Te==="x"||Te==="X";if(Ie&&(ct||Ft)){for(;Vt<Ut&&(Ft?i:s)(nt[Vt]);)++Vt;let jt=1;return nt[Ve]==="-"?(jt=-1,++Ve):nt[Ve]==="+"&&++Ve,jt*lt(ct)}}if(Te==="."){for(;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}if(Te==="e"||Te==="E"){for(Te=nt[Vt++],(Te==="-"||Te==="+")&&++Vt;Vt<Ut&&l(nt[Vt]);)++Vt;Te=nt[Vt++]}return--Vt,lt()}function ve(){--Vt;let Ve="";for(;Vt<Ut;){let Te=nt[Vt++];if(Te==="\\"&&nt[Vt]==="u"&&i(nt[Vt+1])&&i(nt[Vt+2])&&i(nt[Vt+3])&&i(nt[Vt+4])&&(Te=String.fromCharCode(Number.parseInt(nt.substr(Vt+1,4),16)),Vt+=5),Ve.length)if(r.isIdentifierPart(Te))Ve+=Te;else return--Vt,Ve;else if(r.isIdentifierStart(Te))Ve+=Te;else return}Yn()}function p(Ve){let Te="";for(;Vt<Ut;){let lt=nt[Vt++];if(lt===Ve)return Te;if(lt==="\\")if(Vt>=Ut&&Yn(),lt=nt[Vt++],f[lt]&&(Ie||lt!=="v"&&(lt!=="'"||St)))Te+=f[lt];else if(Ie&&Et(lt))We(lt);else if(lt==="u"||lt==="x"&&Ie){const ct=lt==="u"?4:2;for(let Ft=0;Ft<ct;++Ft)Vt>=Ut&&Yn(),i(nt[Vt])||Yn("Bad escape sequence"),Vt++;Te+=String.fromCharCode(Number.parseInt(nt.substr(Vt-ct,ct),16))}else if(Ie&&s(lt)){let ct;lt<"4"&&s(nt[Vt])&&s(nt[Vt+1])?ct=3:s(nt[Vt])?ct=2:ct=1,Vt+=ct-1,Te+=String.fromCharCode(Number.parseInt(nt.substr(Vt-ct,ct),8))}else Ie?Te+=lt:(--Vt,Yn());else Et(lt)?Yn():(!Ie&&lt.charCodeAt(0)<32&&(--Vt,Yn("Unexpected control character")),Te+=lt)}Yn()}$e&&et(),bt();let Ne=he();if(Ne!==void 0||Vt<Ut){if(bt(),Vt>=Ut)return Pe&&(Ne=Pe("",Ne)),Re?Vn:Ne;Yn()}else Yn(Vt?"No data, only a whitespace":"No data, empty input")}function R(nt,Ge){return typeof Ge=="function"?Ge={reviver:Ge}:Ge||(Ge={}),B(nt,Ge)}function P(nt,Ge){Ge||(Ge={});const Ie=Ge.tokenize;Ge.tokenize=!0;const Line truncated
${ut}
${St}
${nt}`):Rt=`Parse error in JSON input:
${ut}
${nt}`,{message:Rt,excerpt:ut,pointer:St}}function Se(nt,Ge){let Ie=G(Ge);const $e=le(nt,Ie)||fe(nt,Ie)||pe(nt,Ie);let gt,Dt,ut;$e?(gt=$e.offset,Dt=$e.line,ut=$e.column,Ie=$e.reason):gt=0,Ge.reason=Ie;const Rt=we(Ie,nt,gt,Dt,ut);return Ge.message=Rt.message,Ge.excerpt=Rt.excerpt,Rt.pointer&&(Ge.pointer=Rt.pointer,Ge.location={start:{column:ut,line:Dt,offset:gt}}),Ge}function xe(nt,Ge){try{return JSON.parse(nt,Ge)}catch(Ie){const $e=Se(nt,Ie);if(Ie.location)throw $e;return R(nt,Ge)}}const je=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),Me=typeof process<"u"&&process.version.startsWith("v4.");function rt(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||je||Me}function Ct(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function it(nt,Ge){return Ge||(Ge={}),rt(Ge)?R(nt,Ge):xe(nt,Ct(Ge))}t.parse=it,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=X,t.parseNative=xe,t.parseCustom=R,t.getErrorTexts=we,Object.defineProperty(t,"__esModule",{value:!0})})}(Xv,Xv.exports)),Xv.exports}var ose=ise(),A2={exports:{}},sse=A2.exports,jT;function ase(){return jT||(jT=1,function(n,e){(function(t,r){n.exports=r()})(sse,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Pe,Re){return Re={exports:{}},Pe(Re,Re.exports),Re.exports}var i=r(function(Pe){function Re(){var Ye=0,vt=1,yt=2,Et=3,Zt=4,Ut=5,An=6,hr=7,Vt=8,Vn=9,Pn=10,Dn=11,Ln=12,Ir=13,rr=14,Yn=15,We=16,he=17,me=0,et=1,bt=2,Yt=3,Jt=4;function ir(p,Ne){return 55296<=p.charCodeAt(Ne)&&p.charCodeAt(Ne)<=56319&&56320<=p.charCodeAt(Ne+1)&&p.charCodeAt(Ne+1)<=57343}function Xe(p,Ne){Ne===void 0&&(Ne=0);var Ve=p.charCodeAt(Ne);if(55296<=Ve&&Ve<=56319&&Ne<p.length-1){var Te=Ve,lt=p.charCodeAt(Ne+1);return 56320<=lt&&lt<=57343?(Te-55296)*1024+(lt-56320)+65536:Te}if(56320<=Ve&&Ve<=57343&&Ne>=1){var Te=p.charCodeAt(Ne-1),lt=Ve;return 55296<=Te&&Te<=56319?(Te-55296)*1024+(lt-56320)+65536:lt}return Ve}function ae(p,Ne,Ve){var Te=[p].concat(Ne).concat([Ve]),lt=Te[Te.length-2],ct=Ve,Ft=Te.lastIndexOf(rr);if(Ft>1&&Te.slice(1,Ft).every(function(nn){return nn==Et})&&[Et,Ir,he].indexOf(p)==-1)return bt;var jt=Te.lastIndexOf(Zt);if(jt>0&&Te.slice(1,jt).every(function(nn){return nn==Zt})&&[Ln,Zt].indexOf(lt)==-1)return Te.filter(function(nn){return nn==Zt}).length%2==1?Yt:Jt;if(lt==Ye&&ct==vt)return me;if(lt==yt||lt==Ye||lt==vt)return ct==rr&&Ne.every(function(nn){return nn==Et})?bt:et;if(ct==yt||ct==Ye||ct==vt)return et;if(lt==An&&(ct==An||ct==hr||ct==Vn||ct==Pn))return me;if((lt==Vn||lt==hr)&&(ct==hr||ct==Vt))return me;if((lt==Pn||lt==Vt)&&ct==Vt)return me;if(ct==Et||ct==Yn)return me;if(ct==Ut)return me;if(lt==Ln)return me;var Gt=Te.indexOf(Et)!=-1?Te.lastIndexOf(Et)-1:Te.length-2;return[Ir,he].indexOf(Te[Gt])!=-1&&Te.slice(Gt+1,-1).every(function(nn){return nn==Et})&&ct==rr||lt==Yn&&[We,he].indexOf(ct)!=-1?me:Ne.indexOf(Zt)!=-1?bt:lt==Zt&&ct==Zt?me:et}this.nextBreak=function(p,Ne){if(Ne===void 0&&(Ne=0),Ne<0)return 0;if(Ne>=p.length-1)return p.length;for(var Ve=ve(Xe(p,Ne)),Te=[],lt=Ne+1;lt<p.length;lt++)if(!ir(p,lt-1)){var ct=ve(Xe(p,lt));if(ae(Ve,Te,ct))return lt;Te.push(ct)}return p.length},this.splitGraphemes=function(p){for(var Ne=[],Ve=0,Te;(Te=this.nextBreak(p,Ve))<p.length;)Ne.push(p.slice(Ve,Te)),Ve=Te;return Ve<p.length&&Ne.push(p.slice(Ve)),Ne},this.iterateGraphemes=function(p){var Ne=0,Ve={next:(function(){var Te,lt;return(lt=this.nextBreak(p,Ne))<p.length?(Te=p.slice(Ne,lt),Ne=lt,{value:Te,done:!1}):Ne<p.length?(Te=p.slice(Ne),Ne=p.length,{value:Te,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Ve[Symbol.iterator]=function(){return Ve}),Ve},this.countGraphemes=function(p){for(var Ne=0,Ve=0,Te;(Te=this.nextBreak(p,Ve))<p.length;)Ve=Te,Ne++;return Ve<p.length&&Ne++,Ne};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?Ye:p==10?vt: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?yt: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 Vt={extraLines:2,tabSize:4},Vn=function(Dn,Ln,Ir,rr){rr=Ut({},Vt,rr);var Yn=Dn.split(/\r\n?|\n|\f/),We=Math.max(1,Ln-rr.extraLines)-1,he=Math.min(Ln+rr.extraLines,Yn.length),me=String(he).length,et=hr(Yn,We,Ln,me,rr),bt=An(Yn[Ln-1].substring(0,Ir-1),Ln,me,rr),Yt=yt(" ",bt.length)+"^",Jt=hr(Yn,Ln,he,me,rr);return[et,Yt,Jt].filter(Boolean).join(`
`)};return Vn})}),C=new Error().stack,x=function(Pe){var Re=Object.create(SyntaxError.prototype);return Object.assign(Re,Pe,{name:"SyntaxError"}),Object.defineProperty(Re,"stack",{get:function(){return C?C.replace(/^(.+\n){1,3}/,String(Re)+`
`):""}}),Re},B=function(Pe,Re,Ye,vt,yt){throw x({message:vt?Pe+`
`+f(Re,vt,yt):Pe,rawMessage:Pe,source:Ye,line:vt,column:yt})},R={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Re){for(var Ye=arguments.length,vt=Array(Ye>1?Ye-1:0),yt=1;yt<Ye;yt++)vt[yt-1]=arguments[yt];return"Unexpected token <"+Re+"> at "+vt.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Re){for(var Ye=arguments.length,vt=Array(Ye>1?Ye-1:0),yt=1;yt<Ye;yt++)vt[yt-1]=arguments[yt];return"Unexpected symbol <"+Re+"> at "+vt.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},X={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},re={_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 G(Pe){return Pe==="e"||Pe==="E"}function le(Pe,Re,Ye,vt){var yt=Pe.charAt(Re);if(yt==="\r")Re++,Ye++,vt=1,Pe.charAt(Re)===`
`&&Re++;else if(yt===`
`)Re++,Ye++,vt=1;else if(yt===" "||yt===" ")Re++,vt++;else return null;return{index:Re,line:Ye,column:vt}}function fe(Pe,Re,Ye,vt){var yt=Pe.charAt(Re);return yt in N?{type:N[yt],line:Ye,column:vt+1,index:Re+1,value:null}:null}function pe(Pe,Re,Ye,vt){for(var yt in W)if(W.hasOwnProperty(yt)&&Pe.substr(Re,yt.length)===yt)return{type:W[yt],line:Ye,column:vt+yt.length,index:Re+yt.length,value:yt};return null}function we(Pe,Re,Ye,vt){for(var yt=Re,Et=X._START_;Re<Pe.length;){var Zt=Pe.charAt(Re);switch(Et){case X._START_:{if(Zt==='"')Re++,Et=X.START_QUOTE_OR_CHAR;else return null;break}case X.START_QUOTE_OR_CHAR:{if(Zt==="\\")Re++,Et=X.ESCAPE;else{if(Zt==='"')return Re++,{type:U.STRING,line:Ye,column:vt+Re-yt,index:Re,value:Pe.slice(yt,Re)};Re++}break}case X.ESCAPE:{if(Zt in $){if(Re++,Zt==="u")for(var Ut=0;Ut<4;Ut++){var An=Pe.charAt(Re);if(An&&ne(An))Re++;else return null}Et=X.START_QUOTE_OR_CHAR}else return null;break}}}}function Se(Pe,Re,Ye,vt){var yt=Re,Et=Re,Zt=re._START_;e:for(;Re<Pe.length;){var Ut=Pe.charAt(Re);switch(Zt){case re._START_:{if(Ut==="-")Zt=re.MINUS;else if(Ut==="0")Et=Re+1,Zt=re.ZERO;else if(te(Ut))Et=Re+1,Zt=re.DIGIT;else return null;break}case re.MINUS:{if(Ut==="0")Et=Re+1,Zt=re.ZERO;else if(te(Ut))Et=Re+1,Zt=re.DIGIT;else return null;break}case re.ZERO:{if(Ut===".")Zt=re.POINT;else if(G(Ut))Zt=re.EXP;else break e;break}case re.DIGIT:{if(V(Ut))Et=Re+1;else if(Ut===".")Zt=re.POINT;else if(G(Ut))Zt=re.EXP;else break e;break}case re.POINT:{if(V(Ut))Et=Re+1,Zt=re.DIGIT_FRACTION;else break e;break}case re.DIGIT_FRACTION:{if(V(Ut))Et=Re+1;else if(G(Ut))Zt=re.EXP;else break e;break}case re.EXP:{if(Ut==="+"||Ut==="-")Zt=re.EXP_DIGIT_OR_SIGN;else if(V(Ut))Et=Re+1,Zt=re.EXP_DIGIT_OR_SIGN;else break e;break}case re.EXP_DIGIT_OR_SIGN:{if(V(Ut))Et=Re+1;else break e;break}}Re++}return Et>0?{type:U.NUMBER,line:Ye,column:vt+Et-yt,index:Et,value:Pe.slice(yt,Et)}:null}var xe=function(Re,Ye){for(var vt=1,yt=1,Et=0,Zt=[];Et<Re.length;){var Ut=[Re,Et,vt,yt],An=le.apply(void 0,Ut);if(An){Et=An.index,vt=An.line,yt=An.column;continue}var hr=fe.apply(void 0,Ut)||pe.apply(void 0,Ut)||we.apply(void 0,Ut)||Se.apply(void 0,Ut);if(hr){var Vt={type:hr.type,value:hr.value,loc:o(vt,yt,Et,hr.line,hr.column,hr.index,Ye.source)};Zt.push(Vt),Et=hr.index,vt=hr.line,yt=hr.column}else B(P.unexpectedSymbol(l(Re,Et,Et+1),Ye.source,vt,yt),Re,Ye.source,vt,yt)}return Zt},je={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Me={_START_:0,KEY:1,COLON:2},rt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Ct={loc:!0,source:null};function it(Pe,Re,Ye){var vt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};B(R.unexpectedEnd(),Pe,Ye.source,vt.line,vt.column)}function nt(Pe){for(var Re=0,Ye=0;Ye<4;Ye++)Re=Re*16+parseInt(Pe[Ye],16);return String.fromCharCode(Re)}var Ge={b:"\b",f:"\f",n:`
`,r:"\r",t:" "},Ie=['"',"\\","/"];function $e(Pe){for(var Re="",Ye=0;Ye<Pe.length;Ye++){var vt=Pe.charAt(Ye);if(vt==="\\"){Ye++;var yt=Pe.charAt(Ye);if(yt==="u")Re+=nt(Pe.substr(Ye+1,4)),Ye+=4;else if(Ie.indexOf(yt)!==-1)Re+=yt;else if(yt in Ge)Re+=Ge[yt];else break}else Re+=vt}return Re}function gt(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Object",children:[]},Zt=je._START_;Ye<Re.length;){var Ut=Re[Ye];switch(Zt){case je._START_:{if(Ut.type===U.LEFT_BRACE)yt=Ut,Zt=je.OPEN_OBJECT,Ye++;else return null;break}case je.OPEN_OBJECT:{if(Ut.type===U.RIGHT_BRACE)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};var An=Dt(Pe,Re,Ye,vt);Et.children.push(An.value),Zt=je.PROPERTY,Ye=An.index;break}case je.PROPERTY:{if(Ut.type===U.RIGHT_BRACE)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};Ut.type===U.COMMA?(Zt=je.COMMA,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case je.COMMA:{var hr=Dt(Pe,Re,Ye,vt);hr?(Ye=hr.index,Et.children.push(hr.value),Zt=je.PROPERTY):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}}}it(Pe,Re,vt)}function Dt(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Property",key:null,value:null},Zt=Me._START_;Ye<Re.length;){var Ut=Re[Ye];switch(Zt){case Me._START_:{if(Ut.type===U.STRING){var An={type:"Identifier",value:$e(Pe.slice(Ut.loc.start.offset+1,Ut.loc.end.offset-1)),raw:Ut.value};vt.loc&&(An.loc=Ut.loc),yt=Ut,Et.key=An,Zt=Me.KEY,Ye++}else return null;break}case Me.KEY:{Ut.type===U.COLON?(Zt=Me.COLON,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case Me.COLON:{var hr=St(Pe,Re,Ye,vt);return Et.value=hr.value,vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,hr.value.loc.end.line,hr.value.loc.end.column,hr.value.loc.end.offset,vt.source)),{value:Et,index:hr.index}}}}}function ut(Pe,Re,Ye,vt){for(var yt=void 0,Et={type:"Array",children:[]},Zt=rt._START_,Ut=void 0;Ye<Re.length;)switch(Ut=Re[Ye],Zt){case rt._START_:{if(Ut.type===U.LEFT_BRACKET)yt=Ut,Zt=rt.OPEN_ARRAY,Ye++;else return null;break}case rt.OPEN_ARRAY:{if(Ut.type===U.RIGHT_BRACKET)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};var An=St(Pe,Re,Ye,vt);Ye=An.index,Et.children.push(An.value),Zt=rt.VALUE;break}case rt.VALUE:{if(Ut.type===U.RIGHT_BRACKET)return vt.loc&&(Et.loc=o(yt.loc.start.line,yt.loc.start.column,yt.loc.start.offset,Ut.loc.end.line,Ut.loc.end.column,Ut.loc.end.offset,vt.source)),{value:Et,index:Ye+1};Ut.type===U.COMMA?(Zt=rt.COMMA,Ye++):B(R.unexpectedToken(l(Pe,Ut.loc.start.offset,Ut.loc.end.offset),vt.source,Ut.loc.start.line,Ut.loc.start.column),Pe,vt.source,Ut.loc.start.line,Ut.loc.start.column);break}case rt.COMMA:{var hr=St(Pe,Re,Ye,vt);Ye=hr.index,Et.children.push(hr.value),Zt=rt.VALUE;break}}it(Pe,Re,vt)}function Rt(Pe,Re,Ye,vt){var yt=Re[Ye],Et=null;switch(yt.type){case U.STRING:{Et=$e(Pe.slice(yt.loc.start.offset+1,yt.loc.end.offset-1));break}case U.NUMBER:{Et=Number(yt.value);break}case U.TRUE:{Et=!0;break}case U.FALSE:{Et=!1;break}case U.NULL:{Et=null;break}default:return null}var Zt={type:"Literal",value:Et,raw:yt.value};return vt.loc&&(Zt.loc=yt.loc),{value:Zt,index:Ye+1}}function St(Pe,Re,Ye,vt){var yt=Re[Ye],Et=Rt.apply(void 0,arguments)||gt.apply(void 0,arguments)||ut.apply(void 0,arguments);if(Et)return Et;B(R.unexpectedToken(l(Pe,yt.loc.start.offset,yt.loc.end.offset),vt.source,yt.loc.start.line,yt.loc.start.column),Pe,vt.source,yt.loc.start.line,yt.loc.start.column)}var Ke=function(Pe,Re){Re=Object.assign({},Ct,Re);var Ye=xe(Pe,Re);Ye.length===0&&it(Pe,Ye,Re);var vt=St(Pe,Ye,0,Re);if(vt.index===Ye.length)return vt.value;var yt=Ye[vt.index];B(R.unexpectedToken(l(Pe,yt.loc.start.offset,yt.loc.end.offset),Re.source,yt.loc.start.line,yt.loc.start.column),Pe,Re.source,yt.loc.start.line,yt.loc.start.column)};return Ke})}(A2)),A2.exports}var lse=ase();const Ase=Gl(lse);function pr(){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(C.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:V.gradient}),r.default.createElement("div",{style:V.container,ref:function(G){return re.container=G},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}))))}}]),X}(t.PureComponent||t.Component);return Qg.default=N,Qg}var qg={},pD;function Rle(){if(pD)return qg;pD=1,Object.defineProperty(qg,"__esModule",{value:!0}),qg.EditableInput=void 0;var n=function(){function $(re,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(re,ne.key,ne)}}return function(re,te,V){return te&&$(re.prototype,te),V&&$(re,V),re}}(),e=tl(),t=s(e),r=kp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,re,te){return re in $?Object.defineProperty($,re,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[re]=te,$}function o($,re){if(!($ instanceof re))throw new TypeError("Cannot call a class as a function")}function f($,re){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return re&&(typeof re=="object"||typeof re=="function")?re:$}function C($,re){if(typeof re!="function"&&re!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof re);$.prototype=Object.create(re&&re.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),re&&(Object.setPrototypeOf?Object.setPrototypeOf($,re):$.__proto__=re)}var x=1,B=38,R=40,P=[B,R],U=function(re){return P.indexOf(re)>-1},N=function(re){return Number(String(re).replace(/%/g,""))},W=1,X=qg.EditableInput=function($){C(re,$);function re(te){o(this,re);var V=f(this,(re.__proto__||Object.getPrototypeOf(re)).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 G=N(ne.target.value);if(!isNaN(G)&&U(ne.keyCode)){var le=V.getArrowOffset(),fe=ne.keyCode===B?G+le:G-le;V.setUpdatedValue(fe,ne)}},V.handleDrag=function(ne){if(V.props.dragLabel){var G=Math.round(V.props.value+ne.movementX);G>=0&&G<=V.props.dragMax&&V.props.onChange&&V.props.onChange(V.getValueObjectWithLabel(G),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-"+W++,V}return n(re,[{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 G=this.props.label?this.getValueObjectWithLabel(V):V;this.props.onChange&&this.props.onChange(G,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(le){return V.input=le},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:re.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:re.slider}))))}}]),U}(e.PureComponent||e.Component);return $g.default=R,$g}var Vg={},yD;function Fle(){if(yD)return Vg;yD=1,Object.defineProperty(Vg,"__esModule",{value:!0}),Vg.Raised=void 0;var n=tl(),e=f(n),t=pm(),r=f(t),i=kp(),s=f(i),l=pG(),o=f(l);function f(x){return x&&x.__esModule?x:{default:x}}var C=Vg.Raised=function(B){var R=B.zDepth,P=B.radius,U=B.background,N=B.children,W=B.styles,X=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 "+R+"px "+R*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%"}}},X),{"zDepth-1":R===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},N))};return C.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},Vg.default=C,Vg}var Hg={},YS,vD;function Lle(){if(vD)return YS;vD=1;var n=Tp(),e=function(){return n.Date.now()};return YS=e,YS}var qS,CD;function Ule(){if(CD)return qS;CD=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return qS=e,qS}var $S,_D;function zle(){if(_D)return $S;_D=1;var n=Ule(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return $S=t,$S}var VS,bD;function Nle(){if(bD)return VS;bD=1;var n=zle(),e=Yf(),t=E3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function f(C){if(typeof C=="number")return C;if(t(C))return r;if(e(C)){var x=typeof C.valueOf=="function"?C.valueOf():C;C=e(x)?x+"":x}if(typeof C!="string")return C===0?C:+C;C=n(C);var B=s.test(C);return B||l.test(C)?o(C.slice(2),B?2:8):i.test(C)?r:+C}return VS=f,VS}var HS,xD;function mG(){if(xD)return HS;xD=1;var n=Yf(),e=Lle(),t=Nle(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,C){var x,B,R,P,U,N,W=0,X=!1,$=!1,re=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(C)&&(X=!!C.leading,$="maxWait"in C,R=$?i(t(C.maxWait)||0,f):R,re="trailing"in C?!!C.trailing:re);function te(xe){var je=x,Me=B;return x=B=void 0,W=xe,P=o.apply(Me,je),P}function V(xe){return W=xe,U=setTimeout(le,f),X?te(xe):P}function ne(xe){var je=xe-N,Me=xe-W,rt=f-je;return $?s(rt,R-Me):rt}function G(xe){var je=xe-N,Me=xe-W;return N===void 0||je>=f||je<0||$&&Me>=R}function le(){var xe=e();if(G(xe))return fe(xe);U=setTimeout(le,ne(xe))}function fe(xe){return U=void 0,re&&x?te(xe):(x=B=void 0,P)}function pe(){U!==void 0&&clearTimeout(U),W=0,x=N=B=U=void 0}function we(){return U===void 0?P:fe(e())}function Se(){var xe=e(),je=G(xe);if(x=arguments,B=this,N=xe,je){if(U===void 0)return V(N);if($)return clearTimeout(U),U=setTimeout(le,f),te(N)}return U===void 0&&(U=setTimeout(le,f)),P}return Se.cancel=pe,Se.flush=we,Se}return HS=l,HS}var ZS,MD;function Gle(){if(MD)return ZS;MD=1;var n=mG(),e=Yf(),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 ZS=r,ZS}var Yb={},wD;function jle(){return wD||(wD=1,Object.defineProperty(Yb,"__esModule",{value:!0}),Yb.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,C=o-(r.getBoundingClientRect().left+window.pageXOffset),x=f-(r.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>s&&(C=s),x<0?x=0:x>l&&(x=l);var B=C/s,R=1-x/l;return{h:t.h,s:B,v:R,a:t.a,source:"hsv"}}),Yb}var SD;function Wle(){if(SD)return Hg;SD=1,Object.defineProperty(Hg,"__esModule",{value:!0}),Hg.Saturation=void 0;var n=function(){function N(W,X){for(var $=0;$<X.length;$++){var re=X[$];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(W,re.key,re)}}return function(W,X,$){return X&&N(W.prototype,X),$&&N(W,$),W}}(),e=tl(),t=x(e),r=kp(),i=x(r),s=Gle(),l=x(s),o=jle(),f=C(o);function C(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var X in N)Object.prototype.hasOwnProperty.call(N,X)&&(W[X]=N[X]);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:V,black:ne,pointer:G,circle:le}},{custom:!!this.props.style});return t.default.createElement("div",{style:fe.color,ref:function(we){return $.container=we},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:fe.white,className:"saturation-white"},t.default.createElement("div",{style:fe.black,className:"saturation-black"}),t.default.createElement("div",{style:fe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:fe.circle}))))}}]),W}(e.PureComponent||e.Component);return Hg.default=U,Hg}var Zg={},Gh={},XS,ED;function Qle(){if(ED)return XS;ED=1;var n=oG(),e=iG(),t=jN(),r=Af();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return XS=i,XS}var JS,BD;function Yle(){return BD||(BD=1,JS=Qle()),JS}var u2={exports:{}},qle=u2.exports,OD;function $le(){return OD||(OD=1,function(n,e){(function(t,r){n.exports=r()})(qle,function(){function t(Ke){"@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(Ke)}var r=/^\s+/,i=/\s+$/;function s(Ke,Pe){if(Ke=Ke||"",Pe=Pe||{},Ke instanceof s)return Ke;if(!(this instanceof s))return new s(Ke,Pe);var Re=l(Ke);this._originalInput=Ke,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Pe.format||Re.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=Re.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(),Re,Ye,vt,yt,Et,Zt;return Re=Pe.r/255,Ye=Pe.g/255,vt=Pe.b/255,Re<=.03928?yt=Re/12.92:yt=Math.pow((Re+.055)/1.055,2.4),Ye<=.03928?Et=Ye/12.92:Et=Math.pow((Ye+.055)/1.055,2.4),vt<=.03928?Zt=vt/12.92:Zt=Math.pow((vt+.055)/1.055,2.4),.2126*yt+.7152*Et+.0722*Zt},setAlpha:function(Pe){return this._a=je(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),Re=Math.round(Pe.h*360),Ye=Math.round(Pe.s*100),vt=Math.round(Pe.v*100);return this._a==1?"hsv("+Re+", "+Ye+"%, "+vt+"%)":"hsva("+Re+", "+Ye+"%, "+vt+"%, "+this._roundA+")"},toHsl:function(){var Pe=f(this._r,this._g,this._b);return{h:Pe.h*360,s:Pe.s,l:Pe.l,a:this._a}},toHslString:function(){var Pe=f(this._r,this._g,this._b),Re=Math.round(Pe.h*360),Ye=Math.round(Pe.s*100),vt=Math.round(Pe.l*100);return this._a==1?"hsl("+Re+", "+Ye+"%, "+vt+"%)":"hsla("+Re+", "+Ye+"%, "+vt+"%, "+this._roundA+")"},toHex:function(Pe){return R(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(Me(this._r,255)*100)+"%",g:Math.round(Me(this._g,255)*100)+"%",b:Math.round(Me(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Me(this._r,255)*100)+"%, "+Math.round(Me(this._g,255)*100)+"%, "+Math.round(Me(this._b,255)*100)+"%)":"rgba("+Math.round(Me(this._r,255)*100)+"%, "+Math.round(Me(this._g,255)*100)+"%, "+Math.round(Me(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Se[R(this._r,this._g,this._b,!0)]||!1},toFilter:function(Pe){var Re="#"+U(this._r,this._g,this._b,this._a),Ye=Re,vt=this._gradientType?"GradientType = 1, ":"";if(Pe){var yt=s(Pe);Ye="#"+U(yt._r,yt._g,yt._b,yt._a)}return"progid:DXImageTransform.Microsoft.gradient("+vt+"startColorstr="+Re+",endColorstr="+Ye+")"},toString:function(Pe){var Re=!!Pe;Pe=Pe||this._format;var Ye=!1,vt=this._a<1&&this._a>=0,yt=!Re&&vt&&(Pe==="hex"||Pe==="hex6"||Pe==="hex3"||Pe==="hex4"||Pe==="hex8"||Pe==="name");return yt?Pe==="name"&&this._a===0?this.toName():this.toRgbString():(Pe==="rgb"&&(Ye=this.toRgbString()),Pe==="prgb"&&(Ye=this.toPercentageRgbString()),(Pe==="hex"||Pe==="hex6")&&(Ye=this.toHexString()),Pe==="hex3"&&(Ye=this.toHexString(!0)),Pe==="hex4"&&(Ye=this.toHex8String(!0)),Pe==="hex8"&&(Ye=this.toHex8String()),Pe==="name"&&(Ye=this.toName()),Pe==="hsl"&&(Ye=this.toHslString()),Pe==="hsv"&&(Ye=this.toHsvString()),Ye||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Pe,Re){var Ye=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@${rK}/dist/maplibre-gl.js"><\/script>
<link href="https://unpkg.com/maplibre-gl@${rK}/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=(Nr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Nr().s[10]++,this.exportName());Nr().s[11]++,nK.saveAs(i,s+".html")}async saveStyle(){Nr().f[3]++;const e=(Nr().s[12]++,this.tokenizedStyle());if(Nr().s[13]++,iK)Nr().b[2][1]++;else{Nr().b[2][0]++;const i=(Nr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Nr().s[15]++,this.exportName());Nr().s[16]++,nK.saveAs(i,s+".json"),Nr().s[17]++;return}let t=(Nr().s[18]++,this.props.fileHandle);if(Nr().s[19]++,t==null)if(Nr().b[3][0]++,Nr().s[20]++,t=await this.createFileHandle(),Nr().s[21]++,this.props.onSetFileHandle(t),Nr().s[22]++,t==null){Nr().b[4][0]++,Nr().s[23]++;return}else Nr().b[4][1]++;else Nr().b[3][1]++;const r=(Nr().s[24]++,await t.createWritable());Nr().s[25]++,await r.write(e),Nr().s[26]++,await r.close(),Nr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Nr().f[4]++;const e=(Nr().s[28]++,this.tokenizedStyle()),t=(Nr().s[29]++,await this.createFileHandle());if(Nr().s[30]++,this.props.onSetFileHandle(t),Nr().s[31]++,t==null){Nr().b[5][0]++,Nr().s[32]++;return}else Nr().b[5][1]++;const r=(Nr().s[33]++,await t.createWritable());Nr().s[34]++,await r.write(e),Nr().s[35]++,await r.close(),Nr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Nr().f[5]++;const e=(Nr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Nr().s[38]++,await window.showSaveFilePicker(e));return Nr().s[39]++,this.props.onSetFileHandle(t),Nr().s[40]++,t}changeMetadataProperty(e,t){Nr().f[6]++;const r=(Nr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Nr().s[42]++,this.props.onStyleChanged(r)}render(){Nr().f[7]++;const e=(Nr().s[43]++,this.props.t),t=(Nr().s[44]++,OG(e));return Nr().s[45]++,oe.jsx(Z0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:oe.jsxs("section",{className:"maputnik-modal-section",children:[oe.jsx("h1",{children:e("Save Style")}),oe.jsx("p",{children:e("Save the JSON style to your computer.")}),oe.jsxs("div",{children:[oe.jsx(Ff,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Nr().b[6][0]++,this.props.mapStyle.metadata||(Nr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),oe.jsx(Ff,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Nr().b[7][0]++,this.props.mapStyle.metadata||(Nr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),oe.jsx(Ff,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Nr().b[8][0]++,this.props.mapStyle.metadata||(Nr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),oe.jsx(Ff,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Nr().b[9][0]++,this.props.mapStyle.metadata||(Nr().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),oe.jsxs("div",{className:"maputnik-modal-export-buttons",children:[oe.jsxs(el,{onClick:this.saveStyle.bind(this),children:[oe.jsx(C6,{}),e("Save")]}),(Nr().b[10][0]++,iK&&(Nr().b[10][1]++,oe.jsxs(el,{onClick:this.saveStyleAs.bind(this),children:[oe.jsx(C6,{}),e("Save as")]}))),oe.jsxs(el,{onClick:this.createHtml.bind(this),children:[oe.jsx(DV,{}),e("Create HTML")]})]})]})})}}const $ue=(Nr().s[46]++,Us()(que));function s_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="008bf7f932014e13eee4379e3554a3bc406336ab",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"008bf7f932014e13eee4379e3554a3bc406336ab"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return s_=function(){return l},l}s_();s_().s[0]++;const PG=n=>(s_().f[0]++,s_().s[1]++,oe.jsx(ZC,{label:n.label,children:oe.jsx(bG,{...n})}));function a_(){var n="/home/runner/work/maputnik/maputnik/src/components/Field Line truncated
`)>=0)return!1;return!0}function Yt(Xe,ae){var ve;if(Xe.indent===" ")ve=" ";else if(typeof Xe.indent=="number"&&Xe.indent>0)ve=le.call(Array(Xe.indent+1)," ");else return null;return{base:ve,prev:le.call(Array(ae+1),ve)}}function Jt(Xe,ae){if(Xe.length===0)return"";var ve=`
`+ae.prev+ae.base;return ve+le.call(Xe,","+ve)+`
`+ae.prev}function ir(Xe,ae){var ve=Rt(Xe),p=[];if(ve){p.length=Xe.length;for(var Ne=0;Ne<Xe.length;Ne++)p[Ne]=Ut(Xe,Ne)?ae(Xe[Ne],Xe):""}var Ve=typeof Se=="function"?Se(Xe):[],Te;if(je){Te={};for(var lt=0;lt<Ve.length;lt++)Te["$"+Ve[lt]]=Ve[lt]}for(var ct in Xe)Ut(Xe,ct)&&(ve&&String(Number(ct))===ct&&ct<Xe.length||je&&Te["$"+ct]instanceof Symbol||(ne.call(/[^\w$]/,ct)?p.push(ae(ct,Xe)+": "+ae(Xe[ct],Xe)):p.push(ct+": "+ae(Xe[ct],Xe))));if(typeof Se=="function")for(var Ft=0;Ft<Ve.length;Ft++)rt.call(Xe,Ve[Ft])&&p.push("["+ae(Ve[Ft])+"]: "+ae(Xe[Ve[Ft]],Xe));return p}return aE}var lE,cK;function Tce(){if(cK)return lE;cK=1;var n=I3(),e=ev(),t=function(o,f,C){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===f)return x.next=B.next,C||(B.next=o.next,o.next=B),B},r=function(o,f){if(o){var C=t(o,f);return C&&C.value}},i=function(o,f,C){var x=t(o,f);x?x.value=C:o.next={key:f,next:o.next,value:C}},s=function(o,f){return o?!!t(o,f):!1},l=function(o,f){if(o)return t(o,f,!0)};return lE=function(){var f,C={assert:function(x){if(!C.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=f&&f.next,R=l(f,x);return R&&B&&B===R&&(f=void 0),!!R},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 C},lE}var AE,hK;function LG(){return hK||(hK=1,AE=Object),AE}var uE,dK;function kce(){return dK||(dK=1,uE=Error),uE}var cE,fK;function Pce(){return fK||(fK=1,cE=EvalError),cE}var hE,pK;function Rce(){return pK||(pK=1,hE=RangeError),hE}var dE,mK;function Dce(){return mK||(mK=1,dE=ReferenceError),dE}var fE,gK;function Kce(){return gK||(gK=1,fE=SyntaxError),fE}var pE,yK;function Fce(){return yK||(yK=1,pE=URIError),pE}var mE,vK;function Lce(){return vK||(vK=1,mE=Math.abs),mE}var gE,CK;function Uce(){return CK||(CK=1,gE=Math.floor),gE}var yE,_K;function zce(){return _K||(_K=1,yE=Math.max),yE}var vE,bK;function Nce(){return bK||(bK=1,vE=Math.min),vE}var CE,xK;function Gce(){return xK||(xK=1,CE=Math.pow),CE}var _E,MK;function jce(){return MK||(MK=1,_E=Math.round),_E}var bE,wK;function Wce(){return wK||(wK=1,bE=Number.isNaN||function(e){return e!==e}),bE}var xE,SK;function Qce(){if(SK)return xE;SK=1;var n=Wce();return xE=function(t){return n(t)||t===0?t:t<0?-1:1},xE}var ME,EK;function Yce(){return EK||(EK=1,ME=Object.getOwnPropertyDescriptor),ME}var wE,BK;function UG(){if(BK)return wE;BK=1;var n=Yce();if(n)try{n([],"length")}catch{n=null}return wE=n,wE}var SE,OK;function qce(){if(OK)return SE;OK=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return SE=n,SE}var EE,IK;function $ce(){return IK||(IK=1,EE=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}),EE}var BE,TK;function Vce(){if(TK)return BE;TK=1;var n=typeof Symbol<"u"&&Symbol,e=$ce();return BE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},BE}var OE,kK;function zG(){return kK||(kK=1,OE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),OE}var IE,PK;function NG(){if(PK)return IE;PK=1;var n=LG();return IE=n.getPrototypeOf||null,IE}var TE,RK;function Hce(){if(RK)return TE;RK=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(f,C){for(var x=[],B=0;B<f.length;B+=1)x[B]=f[B];for(var R=0;R<C.length;R+=1)x[R+f.length]=C[R];return x},s=function(f,C){for(var x=[],B=C,R=0;B<f.length;B+=1,R+=1)x[R]=f[B];return x},l=function(o,f){for(var C="",x=0;x<o.length;x+=1)C+=o[x],x+1<o.length&&(C+=f);return C};return TE=function(f){var C=this;if(typeof C!="function"||e.apply(C)!==r)throw new TypeError(n+C);for(var x=s(arguments,1),B,R=function(){if(this instanceof B){var X=C.apply(this,i(x,arguments));return Object(X)===X?X:this}return C.apply(f,i(x,arguments))},P=t(0,C.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); }")(R),C.prototype){var W=function(){};W.prototype=C.prototype,B.prototype=new W,W.prototype=null}return B},TE}var kE,DK;function T3(){if(DK)return kE;DK=1;var n=Hce();return kE=Function.prototype.bind||n,kE}var PE,KK;function LI(){return KK||(KK=1,PE=Function.prototype.call),PE}var RE,FK;function G Line truncated
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),f=["%","/","?",";","#"].concat(o),C=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,R=/^([+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=she();function X(V,ne,G){if(V&&typeof V=="object"&&V instanceof e)return V;var le=new e;return le.parse(V,ne,G),le}e.prototype.parse=function(V,ne,G){if(typeof V!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof V);var le=V.indexOf("?"),fe=le!==-1&&le<V.indexOf("#")?"?":"#",pe=V.split(fe),we=/\\/g;pe[0]=pe[0].replace(we,"/"),V=pe.join(fe);var Se=V;if(Se=Se.trim(),!G&&V.split("#").length===1){var xe=i.exec(Se);if(xe)return this.path=Se,this.href=Se,this.pathname=xe[1],xe[2]?(this.search=xe[2],ne?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var je=t.exec(Se);if(je){je=je[0];var Me=je.toLowerCase();this.protocol=Me,Se=Se.substr(je.length)}if(G||je||Se.match(/^\/\/[^@/]+@[^@/]+/)){var rt=Se.substr(0,2)==="//";rt&&!(je&&U[je])&&(Se=Se.substr(2),this.slashes=!0)}if(!U[je]&&(rt||je&&!N[je])){for(var Ct=-1,it=0;it<C.length;it++){var nt=Se.indexOf(C[it]);nt!==-1&&(Ct===-1||nt<Ct)&&(Ct=nt)}var Ge,Ie;Ct===-1?Ie=Se.lastIndexOf("@"):Ie=Se.lastIndexOf("@",Ct),Ie!==-1&&(Ge=Se.slice(0,Ie),Se=Se.slice(Ie+1),this.auth=decodeURIComponent(Ge)),Ct=-1;for(var it=0;it<f.length;it++){var nt=Se.indexOf(f[it]);nt!==-1&&(Ct===-1||nt<Ct)&&(Ct=nt)}Ct===-1&&(Ct=Se.length),this.host=Se.slice(0,Ct),Se=Se.slice(Ct),this.parseHost(),this.hostname=this.hostname||"";var $e=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$e)for(var gt=this.hostname.split(/\./),it=0,Dt=gt.length;it<Dt;it++){var ut=gt[it];if(ut&&!ut.match(B)){for(var Rt="",St=0,Ke=ut.length;St<Ke;St++)ut.charCodeAt(St)>127?Rt+="x":Rt+=ut[St];if(!Rt.match(B)){var Pe=gt.slice(0,it),Re=gt.slice(it+1),Ye=ut.match(R);Ye&&(Pe.push(Ye[1]),Re.unshift(Ye[2])),Re.length&&(Se="/"+Re.join(".")+Se),this.hostname=Pe.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),$e||(this.hostname=n.toASCII(this.hostname));var vt=this.port?":"+this.port:"",yt=this.hostname||"";this.host=yt+vt,this.href+=this.host,$e&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Se[0]!=="/"&&(Se="/"+Se))}if(!P[Me])for(var it=0,Dt=o.length;it<Dt;it++){var Et=o[it];if(Se.indexOf(Et)!==-1){var Zt=encodeURIComponent(Et);Zt===Et&&(Zt=escape(Et)),Se=Se.split(Et).join(Zt)}}var Ut=Se.indexOf("#");Ut!==-1&&(this.hash=Se.substr(Ut),Se=Se.slice(0,Ut));var An=Se.indexOf("?");if(An!==-1?(this.search=Se.substr(An),this.query=Se.substr(An+1),ne&&(this.query=W.parse(this.query)),Se=Se.slice(0,An)):ne&&(this.search="",this.query={}),Se&&(this.pathname=Se),N[Me]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var vt=this.pathname||"",hr=this.search||"";this.path=vt+hr}return this.href=this.format(),this};function $(V){return typeof V=="string"&&(V=X(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||"",G=this.pathname||"",le=this.hash||"",fe=!1,pe="";this.host?fe=V+this.host:this.hostname&&(fe=V+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(pe=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||pe&&"?"+pe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||N[ne])&&fe!==!1?(fe="//"+(fe||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):fe||(fe=""),le&&le.charAt(0)!=="#"&&(le="#"+le),we&&we.charAt(0)!=="?"&&(we="?"+we),G=G.replace(/[?#]/g,function(Se){return encodeURIComponent(Se)}),we=we.replace("#","%23"),ne+fe+G+we+le};function re(V,ne){return X(V,!1,!0).resolve(ne)}e.prototype.resolve=function(V){return this.resolveObject(X(V,!1,!0)).format()};function te(V,ne){return V?X(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 G=new e,le=Object.keys(this),fe=0;fe<le.length;fe++){var pe=le[fe];G[pe]=this[pe]}if(G.hash=V.hash,V.href==="")return G.href=G.format(),G;if(V.slashes&&!V.protocol){for(var we=Object.keys(V),Se=0;Se<we.length;Se++){var xe=we[Se];xe!=="protocol"&&(G[xe]=V[xe])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(V.protocol&&V.protocol!==G.protocol){if(!N[V.protocol]){for(var je=Object.keys(V),Me=0;Me<je.length;Me++){var rt=je[Me];G[rt]=V[rt]}return G.href=G.format(),G}if(G.protocol=V.protocol,!V.host&&!U[V.protocol]){for(var Dt=(V.pathname||"").split("/");Dt.length&&!(V.host=Dt.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 hB=function(n,e){return hB=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])},hB(n,e)};function XG(n,e){hB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ghe(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 yhe(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 vhe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(yhe(arguments[e]));return n}var JG=function(){function n(e,t){this.target=t,this.type=e}return n}(),Che=function(n){XG(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}(JG),_he=function(n){XG(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}(JG);/*!
* Reconnecting WebSocket
* by Pedro Ladaria <pedro.ladaria@gmail.com>
* https://github.com/pladaria/reconnecting-websocket
* License MIT
*/var bhe=function(){if(typeof WebSocket<"u")return WebSocket},xhe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},x1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Mhe=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?x1.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?x1.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=ghe(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-DvAEUNsS.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":"k4CAAA;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,CAAC,MAAM,EAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,GAAG,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,GACnQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAC,GAAc,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAQ,MAAM,MAAM,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,IACtK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAQ,IAAIU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAEM,EAAE,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAG,IAAII,GAAE,UAAU,OAAO,EAAE,GAAOA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAID,GAAEC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAa,IAAIe,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,QAAQ,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,OAAO,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,MAAM,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,aAAcjB,GAAE,MAAK,IAAIkB,GAAE,GAAG,GAAUlB,KAAP,KAASkB,GAAE,eAAeD,GAAA,CAAG,IAAK,SAAS,IAAK,SAASC,GAAE,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,UAAU,KAAKb,EAAE,KAAKC,EAAE8B,GAAE,GAAE,CAAE,GAAGA,GAAE,OAAOA,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,CAAC,OAAOA,EAAA,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,EAAyB,GAAvBE,GAAE,EAAEH,GAAOA,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,QAAQ,MAAMiB,GAAEA,GAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAa,MAAMZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAE,OAAOa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAC,GAASN,IAAN,KAAQ,OAAOA,GAAE,IAAIe,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,CAAC,GAAQA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAA,EAAIA,GAAE,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,EAAG,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAeA,GAAE,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,MAAMC,GAAE,CAAC,WAAW,MAAMC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAA,EAAG,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAACK,GAAE,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,CAAC,OAAO4B,GAAE5B,GAAE,SAASA,GAAE,CAAC,OAAOA,EAAA,CAAE,GAAG,EAAE,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAAC,EAAE,MAAM,MAAM,uEAAuE,EAAE,Line truncated
-1
View File
@@ -1 +0,0 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
+1
View File
@@ -0,0 +1 @@
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button{background-color:transparent}.maputnik-icon-button:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg{fill:#f0f0f0}.maputnik-input-block{margin:10px;display:flex;flex-wrap:wrap}.maputnik-input-block-label{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:32%;vertical-align:top;font-size:12px}.maputnik-input-block-action{color:#a4a4a4;-webkit-user-select:none;user-select:none;width:18%;vertical-align:top;font-size:12px;text-align:right}.maputnik-input-block-content{width:50%}.maputnik-action-block .maputnik-input-block-label{display:inline-block;width:32%;margin-bottom:10px}.maputnik-action-block .maputnik-input-block-action{vertical-align:top;display:inline-block;width:18%}.maputnik-action-block .maputnik-input-block-action>div{text-align:right}.maputnik-data-spec-block .maputnik-inline-error,.maputnik-zoom-spec-property .maputnik-inline-error{margin-left:32%}.maputnik-space{-webkit-flex-grow:1;-ms-flex-grow:1;-moz-flex-grow:1;-o-flex-grow:1;flex-grow:1}.maputnik-message-panel{padding:5px}.maputnik-message-panel-error{color:#cf4a4a}.maputnik-message-panel__switch-button{all:unset;text-decoration:underline;cursor:pointer}.maputnik-dialog__buttons{text-align:right}.map-state-menu{display:inline-block}.map-staLine truncated
@@ -1,2 +1,2 @@
const e="Base",r="Par défaut",t="Arrêts",o="Zoom",s="Inspecter",a="Ouvrir",i="Enregistrer",n="Vue",l="Aide",u="Commentaires",c="Source",d="Type",p="Filtre",m="Calque",y="Supprimer",h="Dupliquer",S="Afficher",f="Cacher",v="Calques",g="Réduire",L="Développer",R="Recherche",C="Déboguer",b="Options",O="Annuler",T="Nom",U="Propriétaire",D="Centre",A="Orientation",I="Inclinaison",M="Raccourcis",P="Image",x="Vidéo",N="Sources",q="GeoJSON",z="Cluster",J="Encodage",E="Langue",V={"Input value":"Valeur d'entrée","Data value":"Valeur des données","Output value":"Valeur de sortie",Function:"Fonction","Select a type of data scale (default is 'categorical').":"Sélectionnez un type d'échelle de données (par défaut 'categorical').",Base:e,"Input a data property to base styles off of.":"Entrez une propriété de données pour baser les styles.",Default:r,Stops:t,Zoom:o,"Add stop":"Ajouter un arrêt","Convert to expression":"Convertir en expression","Remove zoom level from stop":"Supprimer le niveau de zoom de l'arrêt","Revert from expression":"Annuler l'expression","Delete expression":"Supprimer l'expression","Convert property into a zoom function":"Convertir la propriété en fonction de zoom","Convert property to data function":"Convertir la propriété en fonction de données","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Calque <1>{formatLayerId(layerId)}</1> : {parsed.data.message}","switch to layer":"changer de calque",Map:"Carte",Inspect:s,"Deuteranopia filter":"Filtre Deutéranopie","Protanopia filter":"Filtre Protanopie","Tritanopia filter":"Filtre Tritanopie","Achromatopsia filter":"Filtre Achromatopsie","Layers list":"Liste des calques","Layer editor":"Éditeur de calque","Map view":"Vue de la carte","Maputnik on GitHub":"Maputnik sur GitHub",Open:a,Save:i,"Data Sources":"Sources de données","Style Settings":"Paramètres du style",View:n,"Color accessibility":"Accessibilité des couleurs",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.",Comments:u,"Comment...":"Votre commentaire...","Max Zoom":"Zoom max","Min Zoom":"Zoom min",Source:c,"Source Layer":"Calque Source",Type:d,"Nested filters are not supported.":"Les filtres imbriqués ne sont pas pris en charge.","Upgrade to expression":"Mettre à niveau vers une expression",Filter:p,"every filter matches":"tous les filtres correspondent","no filter matches":"aucun filtre ne correspond","any filter matches":"l'un des filtres correspond","Add filter":"Ajouter un filtre","You've entered an old style filter.":"Vous avez entré un ancien style de filtre.","Switch to filter editor.":"Passer à l'éditeur de filtre.","Delete filter block":"Supprimer le bloc de filtre","Add value":"Ajouter une valeur","Remove array item":"Supprimer l'élément de tableau","Press <1>ESC</1> to lose focus":"Appuyez sur <1>Échap</1> pour perdre le focus","Must provide protocol: <1>https://</1>":"Protocole requis : <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocole requis : <1>http://</1> ou <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>",Layer:m,"JSON Editor":"Éditeur JSON",Delete:y,Duplicate:h,Show:S,Hide:f,"Move layer up":"Monter le calque","Move layer down":"Descendre le calque","Layer: {{layerId}}":"Calque : {{layerId}}",Layers:v,Collapse:g,Expand:L,"Add Layer":"Ajouter un calque","Layer ID already exists":"L'identifiant du calque existe déjà",Search:R,"Zoom:":"Zoom :","Close popup":"Fermer la fenêtre","cursor:":"curseur :","center:":"centre :","rotation:":"rotation :","Close modal":"Fermer la fenêtre modale",Debug:C,Options:b,"Save Style":"Enregistrer le style","Save the JSON style to your computer.":"Enregistrer le style JSON sur votre ordinateur.","Save as":"Enregistrer sous","Create HTML":"Créer le HTML",Cancel:O,"Open Style":"Ouvrir le style","Open local Style":"Ouvrir un style local","Open a local JSON style from your computer.":"Ouvrir un style JSON local depuis votre ordinateur.","Load from URL":"Charger depuis une URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Charger depuis une URL. Notez que l'URL doit avoir les <1>CORS activés</1>.","Style URL":"URL du style","Enter URL...":"Entrez l'URL...","Gallery Styles":"Styles de la galerie","Open one of the publicly available styles to start from.":"Ouvrez l'un des styles publics disponibles pour commencer.","Loading style":"Chargement du style","Loading: {{requestUrl}}":"Chargement : {{requestUrl}}",Name:T,Owner:U,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID du propriétaire du style. Utilisé par Mapbox ou les futures API de style.","Sprite URL":"URL du sprite","Glyphs URL":"URL deLine truncated
//# sourceMappingURL=translation-Bo50ifok.js.map
const e="Base",r="Par défaut",t="Arrêts",o="Zoom",s="Inspecter",a="Ouvrir",i="Enregistrer",n="Vue",l="Aide",u="Commentaires",c="Source",d="Type",p="Filtre",m="Calque",y="Supprimer",h="Dupliquer",S="Afficher",f="Cacher",v="Calques",L="Réduire",g="Développer",R="Recherche",C="Déboguer",b="Options",O="Annuler",T="Nom",U="Propriétaire",D="Centre",A="Orientation",I="Inclinaison",P="Raccourcis",M="Image",x="Vidéo",J="Sources",N="GeoJSON",q="Cluster",z="Encodage",E="Langue",V={"Input value":"Valeur d'entrée","Data value":"Valeur des données","Output value":"Valeur de sortie",Function:"Fonction","Select a type of data scale (default is 'categorical').":"Sélectionnez un type d'échelle de données (par défaut 'categorical').",Base:e,"Input a data property to base styles off of.":"Entrez une propriété de données pour baser les styles.",Default:r,Stops:t,Zoom:o,"Add stop":"Ajouter un arrêt","Convert to expression":"Convertir en expression","Remove zoom level from stop":"Supprimer le niveau de zoom de l'arrêt","Revert from expression":"Annuler l'expression","Delete expression":"Supprimer l'expression","Convert property into a zoom function":"Convertir la propriété en fonction de zoom","Convert property to data function":"Convertir la propriété en fonction de données","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Calque <1>{formatLayerId(layerId)}</1> : {parsed.data.message}","switch to layer":"changer de calque",Map:"Carte",Inspect:s,"Deuteranopia filter":"Filtre Deutéranopie","Protanopia filter":"Filtre Protanopie","Tritanopia filter":"Filtre Tritanopie","Achromatopsia filter":"Filtre Achromatopsie","Layers list":"Liste des calques","Layer editor":"Éditeur de calque","Map view":"Vue de la carte","Maputnik on GitHub":"Maputnik sur GitHub",Open:a,Save:i,"Data Sources":"Sources de données","Style Settings":"Paramètres du style",View:n,"Color accessibility":"Accessibilité des couleurs",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"Commentaires pour le calque actuel. Ceci n'est pas standard et n'est pas dans la spécification.",Comments:u,"Comment...":"Votre commentaire...","Max Zoom":"Zoom max","Min Zoom":"Zoom min",Source:c,"Source Layer":"Calque Source",Type:d,"Nested filters are not supported.":"Les filtres imbriqués ne sont pas pris en charge.","Upgrade to expression":"Mettre à niveau vers une expression",Filter:p,"every filter matches":"tous les filtres correspondent","no filter matches":"aucun filtre ne correspond","any filter matches":"l'un des filtres correspond","Add filter":"Ajouter un filtre","You've entered an old style filter.":"Vous avez entré un ancien style de filtre.","Switch to filter editor.":"Passer à l'éditeur de filtre.","Delete filter block":"Supprimer le bloc de filtre","Add value":"Ajouter une valeur","Remove array item":"Supprimer l'élément de tableau","Press <1>ESC</1> to lose focus":"Appuyez sur <1>Échap</1> pour perdre le focus","Must provide protocol: <1>https://</1>":"Protocole requis : <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocole requis : <1>http://</1> ou <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politique CORS ne permet pas de récupérer des ressources servies sur http depuis https, utilisez un protocole <1>https://</1>",Layer:m,"JSON Editor":"Éditeur JSON",Delete:y,Duplicate:h,Show:S,Hide:f,"Move layer up":"Monter le calque","Move layer down":"Descendre le calque","Layer: {{layerId}}":"Calque : {{layerId}}",Layers:v,Collapse:L,Expand:g,"Add Layer":"Ajouter un calque","Layer ID already exists":"L'identifiant du calque existe déjà",Search:R,"Zoom:":"Zoom :","Close popup":"Fermer la fenêtre","cursor:":"curseur :","center:":"centre :","rotation:":"rotation :","Close modal":"Fermer la fenêtre modale",Debug:C,Options:b,"Save Style":"Enregistrer le style","Save the JSON style to your computer.":"Enregistrer le style JSON sur votre ordinateur.","Save as":"Enregistrer sous","Create HTML":"Créer le HTML",Cancel:O,"Open Style":"Ouvrir le style","Open local Style":"Ouvrir un style local","Open a local JSON style from your computer.":"Ouvrir un style JSON local depuis votre ordinateur.","Load from URL":"Charger depuis une URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Charger depuis une URL. Notez que l'URL doit avoir les <1>CORS activés</1>.","Style URL":"URL du style","Enter URL...":"Entrez l'URL...","Gallery Styles":"Styles de la galerie","Open one of the publicly available styles to start from.":"Ouvrez l'un des styles publics disponibles pour commencer.","Loading style":"Chargement du style","Loading: {{requestUrl}}":"Chargement : {{requestUrl}}",Name:T,Owner:U,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID du propriétaire du style. Utilisé par Mapbox ou les futures API de style.","Sprite URL":"URL du sprite","Glyphs URL":"URL deLine truncated
//# sourceMappingURL=translation-BJ5cSZoo.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BJ5cSZoo.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
const e="Base",o="Predefinito",i="Fermate",t="Zoom",a="Esamina",r="Apri",s="Salva",l="Vista",n="Aiuto",c="Commenti",d="Sorgente",p="Tipo",u="Filtro",m="Livello",g="Elimina",S="Duplica",f="Mostra",y="Nascondi",h="Livelli",v="Coprimi",L="Espandi",R="Cerca",C="Debug",b="Opzioni",z="Annulla",T="Nome",A="Proprietario",I="Centro",U="Direzione",O="Inclinazione",M="Scorciatoie",D="Immagine",P="Video",N="Sorgenti",E="GeoJSON",J="Cluster",x="Codifica",V="Lingua",k={"Input value":"Valore di input","Data value":"Valore dei dati","Output value":"Valore di output",Function:"Funzione","Select a type of data scale (default is 'categorical').":"Seleziona un tipo di scala dati (predefinito 'categorical').",Base:e,"Input a data property to base styles off of.":"Inserisci una proprietà dati su cui basare gli stili.",Default:o,Stops:i,Zoom:t,"Add stop":"Aggiungi fermata","Convert to expression":"Converti in espressione","Remove zoom level from stop":"Rimuovi il livello di zoom dalla fermata","Revert from expression":"Ripristina dall'espressione","Delete expression":"Elimina espressione","Convert property into a zoom function":"Converti proprietà in una funzione di zoom","Convert property to data function":"Converti proprietà in una funzione dati","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Livello <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"passa al livello",Map:"Mappa",Inspect:a,"Deuteranopia filter":"Filtro deuteranopia","Protanopia filter":"Filtro protanopia","Tritanopia filter":"Filtro tritanopia","Achromatopsia filter":"Filtro acromatopsia","Layers list":"Elenco livelli","Layer editor":"Editor livelli","Map view":"Vista mappa","Maputnik on GitHub":"Maputnik su GitHub",Open:r,Save:s,"Data Sources":"Fonti dati","Style Settings":"Impostazioni stile",View:l,"Color accessibility":"Accessibilità colori",Help:n,"Comments for the current layer. This is non-standard and not in the spec.":"Commenti per il livello attuale. Questo non è standard e non è nella specifica.",Comments:c,"Comment...":"Il tuo commento...","Max Zoom":"Zoom massimo","Min Zoom":"Zoom minimo",Source:d,"Source Layer":"Livello sorgente",Type:p,"Nested filters are not supported.":"I filtri nidificati non sono supportati.","Upgrade to expression":"Aggiorna a espressione",Filter:u,"every filter matches":"tutti i filtri corrispondono","no filter matches":"nessun filtro corrisponde","any filter matches":"qualsiasi filtro corrisponde","Add filter":"Aggiungi filtro","You've entered an old style filter.":"Hai inserito uno stile filtro obsoleto.","Switch to filter editor.":"Passa all'editor dei filtri.","Delete filter block":"Elimina blocco filtro","Add value":"Aggiungi valore","Remove array item":"Rimuovi elemento dall'array","Press <1>ESC</1> to lose focus":"Premi <1>ESC</1> per perdere il focus","Must provide protocol: <1>https://</1>":"Protocollo richiesto: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocollo richiesto: <1>http://</1> o <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.",Layer:m,"JSON Editor":"Editor JSON",Delete:g,Duplicate:S,Show:f,Hide:y,"Move layer up":"Sposta il livello in su","Move layer down":"Sposta il livello in giù","Layer: {{layerId}}":"Livello: {{layerId}}",Layers:h,Collapse:v,Expand:L,"Add Layer":"Aggiungi Livello","Layer ID already exists":"L'ID del layer esiste già",Search:R,"Zoom:":"Zoom:","Close popup":"Chiudi popup","cursor:":"cursore:","center:":"centro:","rotation:":"rotazione:","Close modal":"Chiudi finestra modale",Debug:C,Options:b,"Save Style":"Opzioni stile","Save the JSON style to your computer.":"Salva lo style JSON nel tuo computer.","Save as":"Salva con nome","Create HTML":"Crea HTML",Cancel:z,"Open Style":"Apri stile","Open local Style":"Apri stile locale","Open a local JSON style from your computer.":"Apri uno stile JSON dal tuo computer.","Load from URL":"Carica da URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Carica da URL. Nota che l'URL deve avere l'abilitazione <1>CORS attivata</1>.","Style URL":"Stile URL","Enter URL...":"Inserisci URL...","Gallery Styles":"Galleria degli stili","Open one of the publicly available styles to start from.":"Apro uno degli stili pubblici a partire da.","Loading style":"Caricamento stile","Loading: {{requestUrl}}":"Caricamento: {{requestUrl}}",Name:T,Owner:A,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID del proprietario dello stile. Utilizzato da Mapbox o dalle future API di stile.","Sprite URL":"URL Sprite","Glyphs URL":"URL Glyphs",Center:I,Bearing:U,Pitch:O,"Light anchor":"Ancora della luce","Light color":"Colore della luce","Light intensity":"Intensità della luce","Light position":"Posizione della luce","Terrain source":"Sorgente del terreno","Terrain exaggeration":Line truncated
//# sourceMappingURL=translation-DcOMBLwT.js.map
const e="Base",o="Predefinito",i="Fermate",t="Zoom",a="Esamina",r="Apri",s="Salva",l="Vista",n="Aiuto",c="Commenti",d="Sorgente",p="Tipo",u="Filtro",m="Livello",g="Elimina",S="Duplica",f="Mostra",y="Nascondi",h="Livelli",v="Coprimi",L="Espandi",R="Cerca",b="Debug",C="Opzioni",z="Annulla",I="Nome",T="Proprietario",A="Centro",U="Direzione",O="Inclinazione",M="Scorciatoie",D="Immagine",P="Video",N="Sorgenti",E="GeoJSON",J="Cluster",x="Codifica",k="Lingua",V={"Input value":"Valore di input","Data value":"Valore dei dati","Output value":"Valore di output",Function:"Funzione","Select a type of data scale (default is 'categorical').":"Seleziona un tipo di scala dati (predefinito 'categorical').",Base:e,"Input a data property to base styles off of.":"Inserisci una proprietà dati su cui basare gli stili.",Default:o,Stops:i,Zoom:t,"Add stop":"Aggiungi fermata","Convert to expression":"Converti in espressione","Remove zoom level from stop":"Rimuovi il livello di zoom dalla fermata","Revert from expression":"Ripristina dall'espressione","Delete expression":"Elimina espressione","Convert property into a zoom function":"Converti proprietà in una funzione di zoom","Convert property to data function":"Converti proprietà in una funzione dati","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"Livello <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"passa al livello",Map:"Mappa",Inspect:a,"Deuteranopia filter":"Filtro deuteranopia","Protanopia filter":"Filtro protanopia","Tritanopia filter":"Filtro tritanopia","Achromatopsia filter":"Filtro acromatopsia","Layers list":"Elenco livelli","Layer editor":"Editor livelli","Map view":"Vista mappa","Maputnik on GitHub":"Maputnik su GitHub",Open:r,Save:s,"Data Sources":"Fonti dati","Style Settings":"Impostazioni stile",View:l,"Color accessibility":"Accessibilità colori",Help:n,"Comments for the current layer. This is non-standard and not in the spec.":"Commenti per il livello attuale. Questo non è standard e non è nella specifica.",Comments:c,"Comment...":"Il tuo commento...","Max Zoom":"Zoom massimo","Min Zoom":"Zoom minimo",Source:d,"Source Layer":"Livello sorgente",Type:p,"Nested filters are not supported.":"I filtri nidificati non sono supportati.","Upgrade to expression":"Aggiorna a espressione",Filter:u,"every filter matches":"tutti i filtri corrispondono","no filter matches":"nessun filtro corrisponde","any filter matches":"qualsiasi filtro corrisponde","Add filter":"Aggiungi filtro","You've entered an old style filter.":"Hai inserito uno stile filtro obsoleto.","Switch to filter editor.":"Passa all'editor dei filtri.","Delete filter block":"Elimina blocco filtro","Add value":"Aggiungi valore","Remove array item":"Rimuovi elemento dall'array","Press <1>ESC</1> to lose focus":"Premi <1>ESC</1> per perdere il focus","Must provide protocol: <1>https://</1>":"Protocollo richiesto: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"Protocollo richiesto: <1>http://</1> o <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"La politica CORS non permette di caricare risorse tramite http da https, utilizza un dominio <1>https://</1>.",Layer:m,"JSON Editor":"Editor JSON",Delete:g,Duplicate:S,Show:f,Hide:y,"Move layer up":"Sposta il livello in su","Move layer down":"Sposta il livello in giù","Layer: {{layerId}}":"Livello: {{layerId}}",Layers:h,Collapse:v,Expand:L,"Add Layer":"Aggiungi Livello","Layer ID already exists":"L'ID del layer esiste già",Search:R,"Zoom:":"Zoom:","Close popup":"Chiudi popup","cursor:":"cursore:","center:":"centro:","rotation:":"rotazione:","Close modal":"Chiudi finestra modale",Debug:b,Options:C,"Save Style":"Opzioni stile","Save the JSON style to your computer.":"Salva lo style JSON nel tuo computer.","Save as":"Salva con nome","Create HTML":"Crea HTML",Cancel:z,"Open Style":"Apri stile","Open local Style":"Apri stile locale","Open a local JSON style from your computer.":"Apri uno stile JSON dal tuo computer.","Load from URL":"Carica da URL","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"Carica da URL. Nota che l'URL deve avere l'abilitazione <1>CORS attivata</1>.","Style URL":"Stile URL","Enter URL...":"Inserisci URL...","Gallery Styles":"Galleria degli stili","Open one of the publicly available styles to start from.":"Apro uno degli stili pubblici a partire da.","Loading style":"Caricamento stile","Loading: {{requestUrl}}":"Caricamento: {{requestUrl}}",Name:I,Owner:T,"Owner ID of the style. Used by Mapbox or future style APIs.":"ID del proprietario dello stile. Utilizzato da Mapbox o dalle future API di stile.","Sprite URL":"URL Sprite","Glyphs URL":"URL Glyphs",Center:A,Bearing:U,Pitch:O,"Light anchor":"Ancora della luce","Light color":"Colore della luce","Light intensity":"Intensità della luce","Light position":"Posizione della luce","Terrain source":"Sorgente del terreno","Terrain exaggeration":Line truncated
//# sourceMappingURL=translation-BYOLCo4p.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-BYOLCo4p.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-Bo50ifok.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-C_Jft-s8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
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",D="Abbrechen",U="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: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","Layer ID already exists":"Layer-ID existiert bereits",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:D,"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:U,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äLine truncated
//# sourceMappingURL=translation-CjM-NcCg.js.map
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",D="Abbrechen",U="Name",T="Besitzer",M="Mittelpunkt",z="Ausrichtung",I="Neigung",O="Shortcuts",E="Bild",C="Video",A="Quellen",w="GeoJSON",N="Cluster",P="Kodierung",F="Deckkraft",x="Radius",J="Farbe",Z="Sprache",G="Breite",Q="Höhe",V="Feld",K="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","Layer ID already exists":"Layer-ID existiert bereits",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:D,"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:U,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:I,"Light anchor":"Lichtanker","Light color":"Lichtfarbe","Light intensity":"LichtintensitäLine truncated
//# sourceMappingURL=translation-CaB-Jdko.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-CaB-Jdko.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-CjM-NcCg.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-DMPnRn7E.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-DcOMBLwT.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"translation-DpAntLax.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
const e="ベース",t="デフォルト",o="ストップ",r="ズーム",s="検査",a="開く",n="保存",i="表示",l="ヘルプ",c="コメント",p="ソース",u="タイプ",d="フィルタ",y="レイヤー",h="削除",S="複製",L="表示",m="非表示",f="レイヤー",R="畳む",U="展開",O="検索",T="デバッグ",g="設定",v="キャンセル",I="名前",M="所有者",b="中央",C="方位",D="ピッチ",N="ショートカット",J="画像",P="動画",x="ソース一覧",A="GeoJSON",w="クラスタ",E="エンコーディング",G="言語",k={"Input value":"入力値","Data value":"データ値","Output value":"値",Function:"関数","Select a type of data scale (default is 'categorical').":"データスケールの種類を選択してください(デフォルトは「categorical」です)。",Base:e,"Input a data property to base styles off of.":"スタイルのベースとなるデータプロパティを入力してください。",Default:t,Stops:o,Zoom:r,"Add stop":"ストップを追加","Convert to expression":"フィルタ式に変換","Remove zoom level from stop":"ズームレベルをストップから削除","Revert from expression":"式から戻す","Delete expression":"式を削除","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"レイヤ<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"レイヤへ切替",Map:"地図",Inspect:s,"Deuteranopia filter":"緑色盲フィルタ","Protanopia filter":"赤色盲フィルタ","Tritanopia filter":"青色盲フィルタ","Achromatopsia filter":"全色盲フィルタ","Layers list":"レイヤー一覧","Layer editor":"レイヤーエディタ","Map view":"地図画面","Maputnik on GitHub":"GitHubのMaputnik",Open:a,Save:n,"Data Sources":"データソース","Style Settings":"スタイル設定",View:i,"Color accessibility":"色のアクセシビリティ",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。",Comments:c,"Comment...":"コメントを書く","Max Zoom":"最大ズーム","Min Zoom":"最小ズーム",Source:p,"Source Layer":"ソースレイヤ",Type:u,"Nested filters are not supported.":"ネストされたフィルタはサポートされていません。","Upgrade to expression":"式にアップグレード",Filter:d,"every filter matches":"全てのフィルタが一致","no filter matches":"フィルタが一致しない","any filter matches":"いずれかのフィルタが一致","Add filter":"フィルタを追加","You've entered an old style filter.":"旧型フィルタを使用しております。","Switch to filter editor.":"新型に変換","Delete filter block":"フィルタブロックを削除","Add value":"値を追加する","Remove array item":"配列の項目を削除","Press <1>ESC</1> to lose focus":"<1>ESC</1>を押すとフォーカスが外れます","Must provide protocol: <1>https://</1>":"プロトコルを指定してください: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"プロトコルを指定してください: <1>http://</1> または <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。",Layer:y,"JSON Editor":"JSONエディタ",Delete:h,Duplicate:S,Show:L,Hide:m,"Move layer up":"上に移動","Move layer down":"下に移動","Layer: {{layerId}}":"レイヤー {{layerId}}",Layers:f,Collapse:R,Expand:U,"Add Layer":"レイヤー追加","Layer ID already exists":"レイヤーIDは既に存在します",Search:O,"Zoom:":"ズーム:","Close popup":"ポップアップを閉じる","cursor:":"カーソル","center:":"中央:","rotation:":"回転角度:","Close modal":"モーダルを閉じる",Debug:T,Options:g,"Save Style":"スタイルを保存","Save the JSON style to your computer.":"JSONスタイルをコンピュータに保存します。","Save as":"名前を付けて保存","Create HTML":"HTMLを作成",Cancel:v,"Open Style":"スタイルを開く","Open local Style":"ローカルスタイルを開く","Open a local JSON style from your computer.":"コンピュータからローカルJSONスタイルを開きます。","Load from URL":"URLから読み込む","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"URLから読み込む。注意: URLは <1>CORSを有効にする</1> 必要があります。","Style URL":"スタイルURL","Enter URL...":"URLを入力","Gallery Styles":"ギャラリースタイル","OpenLine truncated
//# sourceMappingURL=translation-DpAntLax.js.map
const e="ベース",t="デフォルト",o="ストップ",r="ズーム",s="検査",a="開く",n="保存",i="表示",l="ヘルプ",c="コメント",p="ソース",u="タイプ",d="フィルタ",y="レイヤー",h="削除",S="複製",L="表示",f="非表示",m="レイヤー",R="畳む",U="展開",O="検索",T="デバッグ",I="設定",v="キャンセル",g="名前",M="所有者",b="中央",C="方位",D="ピッチ",N="ショートカット",J="画像",P="動画",x="ソース一覧",A="GeoJSON",w="クラスタ",E="エンコーディング",G="言語",k={"Input value":"入力値","Data value":"データ値","Output value":"値",Function:"関数","Select a type of data scale (default is 'categorical').":"データスケールの種類を選択してください(デフォルトは「categorical」です)。",Base:e,"Input a data property to base styles off of.":"スタイルのベースとなるデータプロパティを入力してください。",Default:t,Stops:o,Zoom:r,"Add stop":"ストップを追加","Convert to expression":"フィルタ式に変換","Remove zoom level from stop":"ズームレベルをストップから削除","Revert from expression":"式から戻す","Delete expression":"式を削除","Convert property into a zoom function":"プロパティをズーム関数に変換する","Convert property to data function":"プロパティをデータ関数に変換する","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"レイヤ<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"レイヤへ切替",Map:"地図",Inspect:s,"Deuteranopia filter":"緑色盲フィルタ","Protanopia filter":"赤色盲フィルタ","Tritanopia filter":"青色盲フィルタ","Achromatopsia filter":"全色盲フィルタ","Layers list":"レイヤー一覧","Layer editor":"レイヤーエディタ","Map view":"地図画面","Maputnik on GitHub":"GitHubのMaputnik",Open:a,Save:n,"Data Sources":"データソース","Style Settings":"スタイル設定",View:i,"Color accessibility":"色のアクセシビリティ",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"現在のレイヤーのコメント。注意:この機能は標準ではないため、他のライブラリとの互換性状況はわかりません。",Comments:c,"Comment...":"コメントを書く","Max Zoom":"最大ズーム","Min Zoom":"最小ズーム",Source:p,"Source Layer":"ソースレイヤ",Type:u,"Nested filters are not supported.":"ネストされたフィルタはサポートされていません。","Upgrade to expression":"式にアップグレード",Filter:d,"every filter matches":"全てのフィルタが一致","no filter matches":"フィルタが一致しない","any filter matches":"いずれかのフィルタが一致","Add filter":"フィルタを追加","You've entered an old style filter.":"旧型フィルタを使用しております。","Switch to filter editor.":"新型に変換","Delete filter block":"フィルタブロックを削除","Add value":"値を追加する","Remove array item":"配列の項目を削除","Press <1>ESC</1> to lose focus":"<1>ESC</1>を押すとフォーカスが外れます","Must provide protocol: <1>https://</1>":"プロトコルを指定してください: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"プロトコルを指定してください: <1>http://</1> または <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS使用時は、http経由で提供されるリソースをhttpsから取得することはできません。<1>https://</1> ドメインを使用してください。",Layer:y,"JSON Editor":"JSONエディタ",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"上に移動","Move layer down":"下に移動","Layer: {{layerId}}":"レイヤー {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"レイヤー追加","Layer ID already exists":"レイヤーIDは既に存在します",Search:O,"Zoom:":"ズーム:","Close popup":"ポップアップを閉じる","cursor:":"カーソル","center:":"中央:","rotation:":"回転角度:","Close modal":"モーダルを閉じる",Debug:T,Options:I,"Save Style":"スタイルを保存","Save the JSON style to your computer.":"JSONスタイルをコンピュータに保存します。","Save as":"名前を付けて保存","Create HTML":"HTMLを作成",Cancel:v,"Open Style":"スタイルを開く","Open local Style":"ローカルスタイルを開く","Open a local JSON style from your computer.":"コンピュータからローカルJSONスタイルを開きます。","Load from URL":"URLから読み込む","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"URLから読み込む。注意: URLは <1>CORSを有効にする</1> 必要があります。","Style URL":"スタイルURL","Enter URL...":"URLを入力","Gallery Styles":"ギャラリースタイル","OpenLine truncated
//# sourceMappingURL=translation-J5Mg3mnT.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-J5Mg3mnT.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
const e="בסיס",t="ברירת המחדל",o="עצירות",r="זום",s="בדיקה",a="פתיחה",n="שמור",i="תצוגה",l="עזרה",c="הערות",p="מקור",d="סוג",u="סינון",y="שכבה",h="מחיקה",S="שכפול",f="הצגה",m="הסתרה",L="שכבות",O="הקטנה",R="הגדלה",T="חיפוש",v="דיבאג",g="אפשרויות",M="ביטול",b="שם",U="שייך ל",C="מרכז",N="כיוון",I="זווית",D="קיצורי דרך",J="תמונה",P="וידאו",A="מקורות",w="GeoJSON",x="קיבוץ",E="קידוד",k="שפה",G={"Input value":"ערך קבלה","Data value":"ערך מידע","Output value":"ערך החזרה",Function:"פונקציה","Select a type of data scale (default is 'categorical').":"בחרו סוג מידע לטובת הגדלה (ברירת המחדל היא קטגוריה)",Base:e,"Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל",Default:t,Stops:o,Zoom:r,"Add stop":"הוספת עצירה","Convert to expression":"המחרה לביטוי","Remove zoom level from stop":"הסרת רמת זום מעצירה","Revert from expression":"החזרה מביטוי","Delete expression":"מחיקת ביטוי","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"שכבה <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"שינוי לשכבה",Map:"מפה",Inspect:s,"Deuteranopia filter":"Deuteranopia filter","Protanopia filter":"Protanopia filter","Tritanopia filter":"Tritanopia filter","Achromatopsia filter":"Achromatopsia filter","Layers list":"רשימת שכבות","Layer editor":"עורך השכבות","Map view":"תצוגת מפה","Maputnik on GitHub":"מפוטניק בגיטהב",Open:a,Save:n,"Data Sources":"מקורות מידע","Style Settings":"הגדרות הסטייל",View:i,"Color accessibility":"נגישות צבעים",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות",Comments:c,"Comment...":"הערה...","Max Zoom":"זום מקסימאלי","Min Zoom":"זום מינימאלי",Source:p,"Source Layer":"שכבת מקור",Type:d,"Nested filters are not supported.":"סינונים מקוננים אינם נתמכים","Upgrade to expression":"שדרוג לביטוי",Filter:u,"every filter matches":"כל הסינונים מתאימים","no filter matches":"אף סינון אינו מתאים","any filter matches":"אחד הסינוים מתאימים","Add filter":"הוספת סינון","You've entered an old style filter.":"הכנסתם סינון מסוג ישן,","Switch to filter editor.":"עברו לעורך הסינונים","Delete filter block":"מחיקת גוש מסנן","Add value":"הוספת ערך","Remove array item":"הסרת איבר מערך","Press <1>ESC</1> to lose focus":"לחצו על <1>ESC</1> על מנת לאבד פוקוס","Must provide protocol: <1>https://</1>":"נדרש פרוטוקול: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"נדרשים פרוטוקולים: <1>http://</1> או <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain",Layer:y,"JSON Editor":"עורך JSON",Delete:h,Duplicate:S,Show:f,Hide:m,"Move layer up":"העלה שכבה","Move layer down":"הורד שכבה","Layer: {{layerId}}":"שכבה: {{layerId}}",Layers:L,Collapse:O,Expand:R,"Add Layer":"הוספת שכבה","Layer ID already exists":"מזהה השכבה כבר קיים",Search:T,"Zoom:":"זום:","Close popup":"סגירת החלון","cursor:":"סמן","center:":"מרכז:","rotation:":"סיבוב:","Close modal":"סגירת חלונית",Debug:v,Options:g,"Save Style":"שמירת הסטייל","Save the JSON style to your computer.":"שמירת הסטייל JSON במחשב שלך.","Save as":"שמירה בשם","Create HTML":"צור HTML",Cancel:M,"Open Style":"פתיחת סטייל","Open local Style":"פתיחת סטייל מקומי","Open a local JSON style from your computer.":"פתיחת סטייל JSON מקומי מהמחשב שלך.","Load from URL":"פתיחה מתוך כתובת","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"פתיחה מכתובת, שימו לב: הכתובת צריכה לתמוך ב- CORS","Style URL":"כתוסת סטייל","Enter URL...":"הכנסו כתובת","Gallery Styles":"גלריית סטיילים","Open one of the publicly available styles to start from.":"פתיחת אחד הסטייליםפ הציבוריים על מנת להתחיל מהם.","Loading style":"טוען סטייל","Loading: {{reqLine truncated
//# sourceMappingURL=translation-DMPnRn7E.js.map
const e="בסיס",t="ברירת המחדל",o="עצירות",s="זום",r="בדיקה",a="פתיחה",n="שמור",c="תצוגה",i="עזרה",l="הערות",p="מקור",d="סוג",u="סינון",y="שכבה",h="מחיקה",S="שכפול",f="הצגה",m="הסתרה",L="שכבות",T="הקטנה",O="הגדלה",R="חיפוש",v="דיבאג",g="אפשרויות",b="ביטול",M="שם",U="שייך ל",I="מרכז",C="כיוון",N="זווית",P="קיצורי דרך",D="תמונה",J="וידאו",A="מקורות",k="GeoJSON",w="קיבוץ",x="קידוד",E="שפה",G={"Input value":"ערך קבלה","Data value":"ערך מידע","Output value":"ערך החזרה",Function:"פונקציה","Select a type of data scale (default is 'categorical').":"בחרו סוג מידע לטובת הגדלה (ברירת המחדל היא קטגוריה)",Base:e,"Input a data property to base styles off of.":"הכניסו מידע עליו יש לבסס את הסטייל",Default:t,Stops:o,Zoom:s,"Add stop":"הוספת עצירה","Convert to expression":"המחרה לביטוי","Remove zoom level from stop":"הסרת רמת זום מעצירה","Revert from expression":"החזרה מביטוי","Delete expression":"מחיקת ביטוי","Convert property into a zoom function":"המרה לפונקציית זום","Convert property to data function":"המרה לפונקציית מידע","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"שכבה <1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"שינוי לשכבה",Map:"מפה",Inspect:r,"Deuteranopia filter":"Deuteranopia filter","Protanopia filter":"Protanopia filter","Tritanopia filter":"Tritanopia filter","Achromatopsia filter":"Achromatopsia filter","Layers list":"רשימת שכבות","Layer editor":"עורך השכבות","Map view":"תצוגת מפה","Maputnik on GitHub":"מפוטניק בגיטהב",Open:a,Save:n,"Data Sources":"מקורות מידע","Style Settings":"הגדרות הסטייל",View:c,"Color accessibility":"נגישות צבעים",Help:i,"Comments for the current layer. This is non-standard and not in the spec.":"הערות על השכבה הנוכחית. זה לא חלק מהספסיפיקציות",Comments:l,"Comment...":"הערה...","Max Zoom":"זום מקסימאלי","Min Zoom":"זום מינימאלי",Source:p,"Source Layer":"שכבת מקור",Type:d,"Nested filters are not supported.":"סינונים מקוננים אינם נתמכים","Upgrade to expression":"שדרוג לביטוי",Filter:u,"every filter matches":"כל הסינונים מתאימים","no filter matches":"אף סינון אינו מתאים","any filter matches":"אחד הסינוים מתאימים","Add filter":"הוספת סינון","You've entered an old style filter.":"הכנסתם סינון מסוג ישן,","Switch to filter editor.":"עברו לעורך הסינונים","Delete filter block":"מחיקת גוש מסנן","Add value":"הוספת ערך","Remove array item":"הסרת איבר מערך","Press <1>ESC</1> to lose focus":"לחצו על <1>ESC</1> על מנת לאבד פוקוס","Must provide protocol: <1>https://</1>":"נדרש פרוטוקול: <1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"נדרשים פרוטוקולים: <1>http://</1> או <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain",Layer:y,"JSON Editor":"עורך JSON",Delete:h,Duplicate:S,Show:f,Hide:m,"Move layer up":"העלה שכבה","Move layer down":"הורד שכבה","Layer: {{layerId}}":"שכבה: {{layerId}}",Layers:L,Collapse:T,Expand:O,"Add Layer":"הוספת שכבה","Layer ID already exists":"מזהה השכבה כבר קיים",Search:R,"Zoom:":"זום:","Close popup":"סגירת החלון","cursor:":"סמן","center:":"מרכז:","rotation:":"סיבוב:","Close modal":"סגירת חלונית",Debug:v,Options:g,"Save Style":"שמירת הסטייל","Save the JSON style to your computer.":"שמירת הסטייל JSON במחשב שלך.","Save as":"שמירה בשם","Create HTML":"צור HTML",Cancel:b,"Open Style":"פתיחת סטייל","Open local Style":"פתיחת סטייל מקומי","Open a local JSON style from your computer.":"פתיחת סטייל JSON מקומי מהמחשב שלך.","Load from URL":"פתיחה מתוך כתובת","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"פתיחה מכתובת, שימו לב: הכתובת צריכה לתמוך ב- CORS","Style URL":"כתוסת סטייל","Enter URL...":"הכנסו כתובת","Gallery Styles":"גלריית סטיילים","Open one of the publicly available styles to start from.":"פתיחת אחד הסטייליםפ הציבוריים על מנת להתחיל מהם.","Loading style":"טוען סטייל","Loading: {{reqLine truncated
//# sourceMappingURL=translation-VlVlGlnr.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-VlVlGlnr.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
const e="基础",t="默认",o="停靠点",r="缩放",s="检查",a="打开",n="保存",i="视图",l="帮助",c="注释",p="源",u="类型",d="过滤器",y="图层",h="删除",S="复制",L="显示",m="隐藏",f="图层",R="折叠",U="展开",O="搜索",T="调试",v="选项",g="取消",I="名称",M="所有者",b="中心",C="方位",N="俯仰角",D="快捷键",J="图像",P="视频",x="源列表",A="GeoJSON",w="聚合",G="编码",E="语言",k={"Input value":"输入值","Data value":"数据值","Output value":"输出值",Function:"函数","Select a type of data scale (default is 'categorical').":"选择数据尺度的类型(默认为“分类”)。",Base:e,"Input a data property to base styles off of.":"输入一个数据属性作为样式的基础。",Default:t,Stops:o,Zoom:r,"Add stop":"添加停靠点","Convert to expression":"转换为表达式","Remove zoom level from stop":"从停靠点移除缩放级别","Revert from expression":"从表达式恢复","Delete expression":"删除表达式","Convert property into a zoom function":"将属性转换为缩放函数","Convert property to data function":"将属性转换为数据函数","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"图层<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"切换到图层",Map:"地图",Inspect:s,"Deuteranopia filter":"绿色盲滤镜","Protanopia filter":"红色盲滤镜","Tritanopia filter":"蓝色盲滤镜","Achromatopsia filter":"全色盲滤镜","Layers list":"图层列表","Layer editor":"图层编辑器","Map view":"地图视图","Maputnik on GitHub":"GitHub上的Maputnik",Open:a,Save:n,"Data Sources":"数据源","Style Settings":"样式设置",View:i,"Color accessibility":"颜色可访问性",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。",Comments:c,"Comment...":"写注释...","Max Zoom":"最大缩放","Min Zoom":"最小缩放",Source:p,"Source Layer":"源图层",Type:u,"Nested filters are not supported.":"不支持嵌套过滤器。","Upgrade to expression":"升级为表达式",Filter:d,"every filter matches":"每个过滤器都匹配","no filter matches":"没有过滤器匹配","any filter matches":"任何过滤器匹配","Add filter":"添加过滤器","You've entered an old style filter.":"您输入了一个旧风格的过滤器。","Switch to filter editor.":"切换到过滤器编辑器。","Delete filter block":"删除过滤器块","Add value":"添加值","Remove array item":"移除数组项目","Press <1>ESC</1> to lose focus":"按 <1>ESC</1> 键退出焦点","Must provide protocol: <1>https://</1>":"必须提供协议:<1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"必须提供协议:<1>http://</1> 或 <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。",Layer:y,"JSON Editor":"JSON编辑器",Delete:h,Duplicate:S,Show:L,Hide:m,"Move layer up":"向上移动图层","Move layer down":"向下移动图层","Layer: {{layerId}}":"图层: {{layerId}}",Layers:f,Collapse:R,Expand:U,"Add Layer":"添加图层","Layer ID already exists":"图层ID已存在",Search:O,"Zoom:":"缩放:","Close popup":"关闭弹出窗口","cursor:":"光标:","center:":"中心:","rotation:":"旋转:","Close modal":"关闭模态框",Debug:T,Options:v,"Save Style":"保存样式","Save the JSON style to your computer.":"将JSON样式保存到您的计算机。","Save as":"另存为","Create HTML":"创建HTML",Cancel:g,"Open Style":"打开样式","Open local Style":"打开本地样式","Open a local JSON style from your computer.":"从您的计算机打开本地JSON样式。","Load from URL":"从URL加载","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"从URL加载。注意:URL必须启用 <1>CORS</1>。","Style URL":"样式URL","Enter URL...":"输入URL...","Gallery Styles":"画廊样式","Open one of the publicly available styles to start from.":"打开一个公开可用的样式开始。","Loading style":"正在加载样式","Loading: {{requestUrl}}":"正在加载: {{requestUrl}}",Name:I,Owner:M,"Owner ID of the style. Used by Mapbox or future style APIs.":"样式的所有者ID。由Mapbox或未来的样式API使用。","Sprite URL":"精灵URL","Glyphs URL":"字形URL",Center:b,Bearing:C,Pitch:N,"Light anchor":"光源锚点","Light color":"光源颜色","Light intensity":"光源强度","Light position":"光源位置","Terrain source":"地形源","Terrain exaggeration":"地形夸张","Transition delay":"过渡延迟","Transition duration":"过渡持续时间","Open Layers (experimental)":"开放图层(实验性)","Shortcuts menu":"快捷方式菜单","Open modal":"打开模态框","Export modal":"导出模态框","Data Sources modal":"数据源模态框","Style Line truncated
//# sourceMappingURL=translation-C_Jft-s8.js.map
const e="基础",t="默认",o="停靠点",s="缩放",r="检查",a="打开",n="保存",i="视图",l="帮助",c="注释",p="源",u="类型",d="过滤器",y="图层",h="删除",S="复制",L="显示",f="隐藏",m="图层",R="折叠",U="展开",T="搜索",O="调试",I="选项",v="取消",g="名称",b="所有者",M="中心",C="方位",N="俯仰角",D="快捷键",J="图像",P="视频",x="源列表",A="GeoJSON",w="聚合",G="编码",k="语言",E={"Input value":"输入值","Data value":"数据值","Output value":"输出值",Function:"函数","Select a type of data scale (default is 'categorical').":"选择数据尺度的类型(默认为“分类”)。",Base:e,"Input a data property to base styles off of.":"输入一个数据属性作为样式的基础。",Default:t,Stops:o,Zoom:s,"Add stop":"添加停靠点","Convert to expression":"转换为表达式","Remove zoom level from stop":"从停靠点移除缩放级别","Revert from expression":"从表达式恢复","Delete expression":"删除表达式","Convert property into a zoom function":"将属性转换为缩放函数","Convert property to data function":"将属性转换为数据函数","Layer <1>{formatLayerId(layerId)}</1>: {parsed.data.message}":"图层<1>{formatLayerId(layerId)}</1>: {parsed.data.message}","switch to layer":"切换到图层",Map:"地图",Inspect:r,"Deuteranopia filter":"绿色盲滤镜","Protanopia filter":"红色盲滤镜","Tritanopia filter":"蓝色盲滤镜","Achromatopsia filter":"全色盲滤镜","Layers list":"图层列表","Layer editor":"图层编辑器","Map view":"地图视图","Maputnik on GitHub":"GitHub上的Maputnik",Open:a,Save:n,"Data Sources":"数据源","Style Settings":"样式设置",View:i,"Color accessibility":"颜色可访问性",Help:l,"Comments for the current layer. This is non-standard and not in the spec.":"当前图层的注释。注意:这不是标准功能,可能与其他库不兼容。",Comments:c,"Comment...":"写注释...","Max Zoom":"最大缩放","Min Zoom":"最小缩放",Source:p,"Source Layer":"源图层",Type:u,"Nested filters are not supported.":"不支持嵌套过滤器。","Upgrade to expression":"升级为表达式",Filter:d,"every filter matches":"每个过滤器都匹配","no filter matches":"没有过滤器匹配","any filter matches":"任何过滤器匹配","Add filter":"添加过滤器","You've entered an old style filter.":"您输入了一个旧风格的过滤器。","Switch to filter editor.":"切换到过滤器编辑器。","Delete filter block":"删除过滤器块","Add value":"添加值","Remove array item":"移除数组项目","Press <1>ESC</1> to lose focus":"按 <1>ESC</1> 键退出焦点","Must provide protocol: <1>https://</1>":"必须提供协议:<1>https://</1>","Must provide protocol: <1>http://</1> or <3>https://</3>":"必须提供协议:<1>http://</1> 或 <3>https://</3>","CORS policy won't allow fetching resources served over http from https, use a <1>https://</1> domain":"CORS 策略不允许从 https 访问通过 http 提供的资源,请使用 <1>https://</1> 域名。",Layer:y,"JSON Editor":"JSON编辑器",Delete:h,Duplicate:S,Show:L,Hide:f,"Move layer up":"向上移动图层","Move layer down":"向下移动图层","Layer: {{layerId}}":"图层: {{layerId}}",Layers:m,Collapse:R,Expand:U,"Add Layer":"添加图层","Layer ID already exists":"图层ID已存在",Search:T,"Zoom:":"缩放:","Close popup":"关闭弹出窗口","cursor:":"光标:","center:":"中心:","rotation:":"旋转:","Close modal":"关闭模态框",Debug:O,Options:I,"Save Style":"保存样式","Save the JSON style to your computer.":"将JSON样式保存到您的计算机。","Save as":"另存为","Create HTML":"创建HTML",Cancel:v,"Open Style":"打开样式","Open local Style":"打开本地样式","Open a local JSON style from your computer.":"从您的计算机打开本地JSON样式。","Load from URL":"从URL加载","Load from a URL. Note that the URL must have <1>CORS enabled</1>.":"从URL加载。注意:URL必须启用 <1>CORS</1>。","Style URL":"样式URL","Enter URL...":"输入URL...","Gallery Styles":"画廊样式","Open one of the publicly available styles to start from.":"打开一个公开可用的样式开始。","Loading style":"正在加载样式","Loading: {{requestUrl}}":"正在加载: {{requestUrl}}",Name:g,Owner:b,"Owner ID of the style. Used by Mapbox or future style APIs.":"样式的所有者ID。由Mapbox或未来的样式API使用。","Sprite URL":"精灵URL","Glyphs URL":"字形URL",Center:M,Bearing:C,Pitch:N,"Light anchor":"光源锚点","Light color":"光源颜色","Light intensity":"光源强度","Light position":"光源位置","Terrain source":"地形源","Terrain exaggeration":"地形夸张","Transition delay":"过渡延迟","Transition duration":"过渡持续时间","Open Layers (experimental)":"开放图层(实验性)","Shortcuts menu":"快捷方式菜单","Open modal":"打开模态框","Export modal":"导出模态框","Data Sources modal":"数据源模态框","Style Line truncated
//# sourceMappingURL=translation-xuFaS6_2.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"translation-xuFaS6_2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
+2 -2
View File
@@ -37,8 +37,8 @@
}
</style>
<script type="module" crossorigin src="/maputnik/assets/index-BCveuT7B.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-__g11m4y.css">
<script type="module" crossorigin src="/maputnik/assets/index-DvAEUNsS.js"></script>
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-egN5o-fX.css">
</head>
<body>
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->