mirror of
https://github.com/maputnik/editor.git
synced 2026-11-30 13:54:20 +00:00
deploy: 69124d0752
This commit is contained in:
1 parent
3108b88e59
commit
2fc5ab4509
6 files changed
+1051
-831
No files matched your search
@@ -1,827 +0,0 @@
|
||||
var Rq=Object.defineProperty;var zq=(n,e,t)=>e in n?Rq(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var an=(n,e,t)=>zq(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 o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();var Vf=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function Ba(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function $B(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var rL={exports:{}},L5={},iL={exports:{}},Bo={};/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var kb=Symbol.for("react.element"),jq=Symbol.for("react.portal"),Nq=Symbol.for("react.fragment"),Wq=Symbol.for("react.strict_mode"),Gq=Symbol.for("react.profiler"),Qq=Symbol.for("react.provider"),$q=Symbol.for("react.context"),Yq=Symbol.for("react.forward_ref"),qq=Symbol.for("react.suspense"),Hq=Symbol.for("react.memo"),Vq=Symbol.for("react.lazy"),Wk=Symbol.iterator;function Zq(n){return n===null||typeof n!="object"?null:(n=Wk&&n[Wk]||n["@@iterator"],typeof n=="function"?n:null)}var oL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aL=Object.assign,sL={};function Sv(n,e,t){this.props=n,this.context=e,this.refs=sL,this.updater=t||oL}Sv.prototype.isReactComponent={};Sv.prototype.setState=function(n,e){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,e,"setState")};Sv.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function lL(){}lL.prototype=Sv.prototype;function YB(n,e,t){this.props=n,this.context=e,this.refs=sL,this.updater=t||oL}var qB=YB.prototype=new lL;qB.constructor=YB;aL(qB,Sv.prototype);qB.isPureReactComponent=!0;var Gk=Array.isArray,uL=Object.prototype.hasOwnProperty,HB={current:null},AL={key:!0,ref:!0,__self:!0,__source:!0};function cL(n,e,t){var r,i={},o=null,a=null;if(e!=null)for(r in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(o=""+e.key),e)uL.call(e,r)&&!AL.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=t;else if(1<s){for(var d=Array(s),f=0;f<s;f++)d[f]=arguments[f+2];i.children=d}if(n&&n.defaultProps)for(r in s=n.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:kb,type:n,key:o,ref:a,props:i,_owner:HB.current}}function Xq(n,e){return{$$typeof:kb,type:n.type,key:e,ref:n.ref,props:n.props,_owner:n._owner}}function VB(n){return typeof n=="object"&&n!==null&&n.$$typeof===kb}function Jq(n){var e={"=":"=0",":":"=2"};return"$"+n.replace(/[=:]/g,function(t){return e[t]})}var Qk=/\/+/g;function $M(n,e){return typeof n=="object"&&n!==null&&n.key!=null?Jq(""+n.key):e.toString(36)}function s3(n,e,t,r,i){var o=typeof n;(o==="undefined"||o==="boolean")&&(n=null);var a=!1;if(n===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(n.$$typeof){case kb:case jq:a=!0}}if(a)return a=n,i=i(a),n=r===""?"."+$M(a,0):r,Gk(i)?(t="",n!=null&&(t=n.replace(Qk,"$&/")+"/"),s3(i,e,t,"",function(f){return f})):i!=null&&(VB(i)&&(i=Xq(i,t+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(Qk,"$&/")+"/")+n)),e.push(i)),1;if(a=0,r=r===""?".":r+":",Gk(n))for(var s=0;s<n.length;s++){o=n[s];var d=r+$M(o,s);a+=s3(o,e,t,d,i)}else if(d=Zq(n),typeof d=="function")for(n=d.call(n),s=0;!(o=n.next()).done;)o=o.value,d=r+$M(o,s++),a+=s3(o,e,t,d,i);else if(o==="object")throw e=String(n),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function i2(n,e,t){if(n==null)return n;var r=[],i=0;return s3(n,r,"","",function(o){return e.call(t,o,i++)}),r}function eH(n){if(n._status===-1){var e=n._result;e=e(),e.then(function(t){(n._status===0||n._status===-1)&&(n._status=1,n._result=t)},function(t){(n._status===0||n._status===-1)&&(n._status=2,n._result=t)}),n._status===-1&&(n._status=0,n._result=e)}if(n._status===1)return n._result.default;throw n._result}var QA={current:null},l3={transition:null},tH={ReactCurrentDispatcher:QA,ReactCurrentBatchConfig:l3,ReactCurrentOwner:HB};Bo.Children={map:i2,forEach:function(n,e,t){i2(n,function(){e.apply(this,arguments)},t)},count:function(n){var e=0;return i2(n,function(){e++}),e},toArray:function(n){return i2(n,function(e){return e})||[]},only:function(n){if(!VB(n))throw Error("React.Children.only expected to receive a single React element child.");return n}};Bo.Component=Sv;Bo.Fragment=Nq;Bo.Profiler=Gq;Bo.PureComponent=YB;Bo.StrictMode=Wq;Bo.Suspense=qq;Bo.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tH;Bo.cloneElement=function(n,e,t){if(n==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+n+".");var r=aL({},n.props),i=n.key,o=n.ref,a=n._owner;if(e!=null){if(e.ref!==void 0&&(o=e.ref,a=HB.current),e.key!==void 0&&(i=""+e.key),n.type&&n.type.defaultProps)var s=n.type.defaultProps;for(d in e)uL.call(e,d)&&!AL.hasOwnProperty(d)&&(r[d]=e[d]===void 0&&s!==void 0?s[d]:e[d])}var d=arguments.length-2;if(d===1)r.children=t;else if(1<d){s=Array(d);for(var f=0;f<d;f++)s[f]=arguments[f+2];r.children=s}return{$$typeof:kb,type:n.type,key:i,ref:o,props:r,_owner:a}};Bo.createContext=function(n){return n={$$typeof:$q,_currentValue:n,_currentValue2:n,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},n.Provider={$$typeof:Qq,_conLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var nH=Gn,rH=Symbol.for("react.element"),iH=Symbol.for("react.fragment"),oH=Object.prototype.hasOwnProperty,aH=nH.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sH={key:!0,ref:!0,__self:!0,__source:!0};function dL(n,e,t){var r,i={},o=null,a=null;t!==void 0&&(o=""+t),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(a=e.ref);for(r in e)oH.call(e,r)&&!sH.hasOwnProperty(r)&&(i[r]=e[r]);if(n&&n.defaultProps)for(r in e=n.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:rH,type:n,key:o,ref:a,props:i,_owner:aH.current}}L5.Fragment=iH;L5.jsx=dL;L5.jsxs=dL;rL.exports=L5;var G=rL.exports,hL={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},V6=Sn.createContext&&Sn.createContext(hL),lH=["attr","size","title"];function uH(n,e){if(n==null)return{};var t=AH(n,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function AH(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}function D3(){return D3=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},D3.apply(this,arguments)}function $k(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 F3(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?$k(Object(t),!0).forEach(function(r){cH(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):$k(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function cH(n,e,t){return e=dH(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function dH(n){var e=hH(n,"string");return typeof e=="symbol"?e:String(e)}function hH(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function fL(n){return n&&n.map((e,t)=>Sn.createElement(e.tag,F3({key:t},e.attr),fL(e.child)))}function Us(n){return e=>Sn.createElement(fH,D3({attr:F3({},n.attr)},e),fL(n.child))}function fH(n){var e=t=>{var{attr:r,size:i,title:o}=n,a=uH(n,lH),s=i||t.size||"1em",d;return t.className&&(d=t.className),n.className&&(d=(d?d+" ":"")+n.className),Sn.createElement("svg",D3({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,a,{className:d,style:F3(F3({color:n.color||t.color},t.style),n.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),o&&Sn.createElement("title",null,o),n.children)};return V6!==void 0?Sn.createElement(V6.Consumer,null,t=>e(t)):e(hL)}var pL={exports:{}},od={},mL={exports:{}},gL={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/(function(n){function e(st,ft){var Re=st.length;st.push(ft);e:for(;0<Re;){var He=Re-1>>>1,Xe=st[He];if(0<i(Xe,ft))st[He]=ft,st[Re]=Xe,Re=He;else break e}}function t(st){return st.length===0?null:st[0]}function r(st){if(st.length===0)return null;var ft=st[0],Re=st.pop();if(Re!==ft){st[0]=Re;e:for(var He=0,Xe=st.length,Jt=Xe>>>1;He<Jt;){var Vt=2*(He+1)-1,bt=st[Vt],Yt=Vt+1,qt=st[Yt];if(0>i(bt,Re))Yt<Xe&&0>i(qt,bt)?(st[He]=qt,st[Yt]=Re,He=Yt):(st[He]=bt,st[Vt]=Re,He=Vt);else if(Yt<Xe&&0>i(qt,Re))st[He]=qt,st[Yt]=Re,He=Yt;else break e}}return ft}function i(st,ft){var Re=st.sortIndex-ft.sortIndex;return Re!==0?Re:st.id-ft.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;n.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();n.unstable_now=function(){return a.now()-s}}var d=[],f=[],C=1,O=null,E=3,P=!1,D=!1,Q=!1,V=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Z(st){for(var ft=t(f);ft!==null;){if(ft.callback===null)r(f);else if(ft.startTime<=st)r(f),ft.sortIndex=ft.expirationTime,e(d,ft);else break;ft=t(f)}}function se(st){if(Q=!1,Z(st),!D)if(t(d)!==null)D=!0,gt(pe);else{var ft=t(f);ft!==null&&yt(se,ft.startTime-st)}}function pe(st,ft){D=!1,Q&&(Q=!1,$(oe),oe=-1),P=!0;var Re=E;try{for(Z(ft),O=t(d);O!==null&&(!(O.expirationTime>ft)||st&&!Te());){var He=O.callback;if(typeof He=="function"){O.callback=null,E=O.priorityLevel;var Xe=He(O.expirationTime<=ft);ft=n.unstable_now(),typeof Xe=="function"?O.callback=Xe:O===t(d)&&r(d),Z(ft)}else r(d);O=t(d)}if(O!==null)var Jt=!0;else{var Vt=t(f);Vt!==null&&yt(se,Vt.startTime-ft),Jt=!1}return Jt}finally{O=null,E=Re,P=!1}}var fe=!1,X=null,oe=-1,Ce=5,we=-1;function Te(){return!(n.unstable_now()-we<Ce)}function Pe(){if(X!==null){var st=n.unstable_now();we=st;var ft=!0;try{ft=X(!0,st)}finally{ft?he():(fe=!1,X=null)}}else fe=!1}var he;if(typeof N=="function")he=function(){N(Pe)};else if(typeof MessageChannel<"u"){var Qe=new MessageChannel,ye=Qe.port2;Qe.port1.onmessage=Pe,he=function(){ye.postMessage(null)}}else he=function(){V(Pe,0)};function gt(st){X=st,fe||(fe=!0,he())}function yt(st,ft){oe=V(function(){st(n.unstable_now())},ft)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(st){st.callback=null},n.unstable_continueExecution=function(){D||P||(D=!0,gt(pe))},n.unstable_forceFrameRate=function(st){0>st||125<st?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ce=0<st?Math.floor(1e3/st):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_getFirstCallbackNode=function(){return t(d)},n.unstable_next=function(st){switch(E){case 1:case 2:case 3:var ft=3;break;default:ft=E}var Re=E;E=ft;try{return st()}finally{E=Re}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(st,ft){switch(st){case 1:case 2:case 3:case 4:case 5:break;default:st=3}var Re=E;E=st;try{return ft()}finally{E=Re}},n.unstable_scheduleCallback=function(st,ft,Re){var He=n.unstable_now();switch(typeof Re=="object"&&Re!==null?(Re=Re.delay,Re=typeof Re=="number"&&0<Re?He+Re:He):Re=He,st){case 1:var Xe=-1;break;case 2:Xe=250;break;case 5:Xe=1073741823;break;case 4:Xe=1e4;break;default:Xe=5e3}return Xe=Re+Xe,st={id:C++,callback:ft,priorityLevel:st,startTime:Re,expirationTime:Xe,sortIndex:-1},Re>He?(st.sortIndex=Re,e(f,st),t(d)===null&&st===t(f)&&(Q?($(oe),oe=-1):Q=!0,yt(se,Re-He))):(st.sortIndex=Xe,e(d,st),D||P||(D=!0,gt(pe))),st},n.unstable_shouldYield=Te,n.unstable_wrapCallback=function(st){var ft=E;return function(){var Re=E;E=ft;try{return st.apply(this,arguments)}finally{E=Re}}}})(gL);mL.exports=gL;var pH=mL.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 yL=Gn,id=pH;function Yn(n){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+n,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+n+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var vL=new Set,R_={};function G1(n,e){av(n,e),av(n+"Capture",e)}function av(n,e){for(R_[n]=e,n=0;n<e.length;n++)vL.add(e[n])}var Yp=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Z6=Object.prototype.hasOwnProperty,mH=/^[: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]*$/,Yk={},qk={};function gH(n){return Z6.call(qk,n)?!0:Z6.call(Yk,n)?!1:mH.test(n)?qk[n]=!0:(Yk[n]=!0,!1)}function yH(n,e,t,r){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function vH(n,e,t,r){if(e===null||typeof e>"u"||yH(n,e,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function $A(n,e,t,r,i,o,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=n,this.type=e,this.sanitizeURL=o,this.removeEmptyString=a}var Nu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){Nu[n]=new $A(n,0,!1,n,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var e=n[0];Nu[e]=new $A(e,1,!1,n[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(n){Nu[n]=new $A(n,2,!1,n.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){Nu[n]=new $A(n,2,!1,n,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){Nu[n]=new $A(n,3,!1,n.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(n){Nu[n]=new $A(n,3,!0,n,null,!1,!1)});["capture","download"].forEach(function(n){Nu[n]=new $A(n,4,!1,n,null,!1,!1)});["cols","rows","size","span"].forEach(function(n){Nu[n]=new $A(n,6,!1,n,null,!1,!1)});["rowSpan","start"].forEach(function(n){Nu[n]=new $A(n,5,!1,n.toLowerCase(),null,!1,!1)});var ZB=/[\-:]([a-z])/g;function XB(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var e=n.replace(ZB,XB);Nu[e]=new $A(e,1,!1,n,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var e=n.replace(ZB,XB);Nu[e]=new $A(e,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(n){var e=n.replace(ZB,XB);Nu[e]=new $A(e,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(n){Nu[n]=new $A(n,1,!1,n.toLowerCase(),null,!1,!1)});Nu.xlinkHref=new $A("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(n){Nu[n]=new $A(n,1,!1,n.toLowerCase(),null,!0,!0)});function JB(n,e,t,r){var i=Nu.hasOwnProperty(e)?Nu[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=
Line truncated
|
||||
`+YM+n}var qM=!1;function HM(n,e){if(!n||qM)return"";qM=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(f){var r=f}Reflect.construct(n,[],e)}else{try{e.call()}catch(f){r=f}n.call(e.prototype)}else{try{throw Error()}catch(f){r=f}n()}}catch(f){if(f&&r&&typeof f.stack=="string"){for(var i=f.stack.split(`
|
||||
`),o=r.stack.split(`
|
||||
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var d=`
|
||||
`+i[a].replace(" at new "," at ");return n.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",n.displayName)),d}while(1<=a&&0<=s);break}}}finally{qM=!1,Error.prepareStackTrace=t}return(n=n?n.displayName||n.name:"")?qC(n):""}function CH(n){switch(n.tag){case 5:return qC(n.type);case 16:return qC("Lazy");case 13:return qC("Suspense");case 19:return qC("SuspenseList");case 0:case 2:case 15:return n=HM(n.type,!1),n;case 11:return n=HM(n.type.render,!1),n;case 1:return n=HM(n.type,!0),n;default:return""}}function tE(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case ay:return"Fragment";case oy:return"Portal";case X6:return"Profiler";case e7:return"StrictMode";case J6:return"Suspense";case eE:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case _L:return(n.displayName||"Context")+".Consumer";case CL:return(n._context.displayName||"Context")+".Provider";case t7:var e=n.render;return n=n.displayName,n||(n=e.displayName||e.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case n7:return e=n.displayName||null,e!==null?e:tE(n.type)||"Memo";case Bm:e=n._payload,n=n._init;try{return tE(n(e))}catch{}}return null}function _H(n){var e=n.type;switch(n.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=e.render,n=n.displayName||n.name||"",e.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tE(e);case 8:return e===e7?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function a0(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function xL(n){var e=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function bH(n){var e=xL(n)?"checked":"value",t=Object.getOwnPropertyDescriptor(n.constructor.prototype,e),r=""+n[e];if(!n.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(n,e,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(n,e,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){n._valueTracker=null,delete n[e]}}}}function a2(n){n._valueTracker||(n._valueTracker=bH(n))}function wL(n){if(!n)return!1;var e=n._valueTracker;if(!e)return!0;var t=e.getValue(),r="";return n&&(r=xL(n)?n.checked?"true":"false":n.value),n=r,n!==t?(e.setValue(n),!0):!1}function L3(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function nE(n,e){var t=e.checked;return Js({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??n._wrapperState.initialChecked})}function Vk(n,e){var t=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;t=a0(e.value!=null?e.value:t),n._wrapperState={initialChecked:r,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function ML(n,e){e=e.checked,e!=null&&JB(n,"checked",e,!1)}function rE(n,e){ML(n,e);var t=a0(e.value),r=e.type;if(t!=null)r==="number"?(t===0&&n.value===""||n.value!=t)&&(n.value=""+t):n.value!==""+t&&(n.value=""+t);else if(r==="submit"||r==="reset"){n.removeAttribute("value");return}e.hasOwnProperty("value")?iE(n,e.type,t):e.hasOwnProperty("defaultValue")&&iE(n,e.type,a0(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(n.defaultChecked=!!e.defaultChecked)}function Zk(n,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+n._wrapperState.initialValue,t||e===n.value||(n.value=e),n.defaultValue=e}t=n.name,t!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,t!==""&&(n.name=t)}function iE(n,e,t){(e!=="number"||L3(n.ownerDocument)!==n)&&(t==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+t&&(n.defaultValue=""+t))}var HC=Array.isArray;function Iy(n,e,t,r){if(n=n.options,e){e={};for(var i=0;i<t.length;i++)e["$"+t[i]]=!0;for(t=0;t<n.length;t++)i=e.hasOwnProperty("$"+n[t].value),n[t].selected!==i&&(n[t].selected=i),i&&r&&(n[t].defaultSelected=!0)}else{for(t=""+a0(t),e=null,i=0;i<n.length;i++){if(n[i].value===t){n[i].selected=!0,r&&(n[i].defaultSelected=!0);return}e!==null||n[i].disabled||(e=n[i])}e!==null&&(e.selected=!0)}}function oE(n,e){if(e.dan
Line truncated
|
||||
`).replace(TV,"")}function f2(n,e,t){if(e=C9(e),C9(n)!==e&&t)throw Error(Yn(425))}function Q3(){}var yE=null,vE=null;function CE(n,e){return n==="textarea"||n==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var _E=typeof setTimeout=="function"?setTimeout:void 0,KV=typeof clearTimeout=="function"?clearTimeout:void 0,_9=typeof Promise=="function"?Promise:void 0,PV=typeof queueMicrotask=="function"?queueMicrotask:typeof _9<"u"?function(n){return _9.resolve(null).then(n).catch(DV)}:_E;function DV(n){setTimeout(function(){throw n})}function lS(n,e){var t=e,r=0;do{var i=t.nextSibling;if(n.removeChild(t),i&&i.nodeType===8)if(t=i.data,t==="/$"){if(r===0){n.removeChild(i),G_(e);return}r--}else t!=="$"&&t!=="$?"&&t!=="$!"||r++;t=i}while(t);G_(e)}function qm(n){for(;n!=null;n=n.nextSibling){var e=n.nodeType;if(e===1||e===3)break;if(e===8){if(e=n.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return n}function b9(n){n=n.previousSibling;for(var e=0;n;){if(n.nodeType===8){var t=n.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return n;e--}else t==="/$"&&e++}n=n.previousSibling}return null}var Ov=Math.random().toString(36).slice(2),Kf="__reactFiber$"+Ov,H_="__reactProps$"+Ov,qp="__reactContainer$"+Ov,bE="__reactEvents$"+Ov,FV="__reactListeners$"+Ov,LV="__reactHandles$"+Ov;function u1(n){var e=n[Kf];if(e)return e;for(var t=n.parentNode;t;){if(e=t[qp]||t[Kf]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(n=b9(n);n!==null;){if(t=n[Kf])return t;n=b9(n)}return e}n=t,t=n.parentNode}return null}function Pb(n){return n=n[Kf]||n[qp],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function Ay(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(Yn(33))}function N5(n){return n[H_]||null}var xE=[],cy=-1;function d0(n){return{current:n}}function bs(n){0>cy||(n.current=xE[cy],xE[cy]=null,cy--)}function is(n,e){cy++,xE[cy]=n.current,n.current=e}var s0={},yA=d0(s0),wc=d0(!1),O1=s0;function sv(n,e){var t=n.type.contextTypes;if(!t)return s0;var r=n.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in t)i[o]=e[o];return r&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=e,n.__reactInternalMemoizedMaskedChildContext=i),i}function Mc(n){return n=n.childContextTypes,n!=null}function $3(){bs(wc),bs(yA)}function x9(n,e,t){if(yA.current!==s0)throw Error(Yn(168));is(yA,e),is(wc,t)}function hU(n,e,t){var r=n.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return t;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(Yn(108,_H(n)||"Unknown",i));return Js({},t,r)}function Y3(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||s0,O1=yA.current,is(yA,n),is(wc,wc.current),!0}function w9(n,e,t){var r=n.stateNode;if(!r)throw Error(Yn(169));t?(n=hU(n,e,O1),r.__reactInternalMemoizedMergedChildContext=n,bs(wc),bs(yA),is(yA,n)):bs(wc),is(wc,t)}var Kp=null,W5=!1,uS=!1;function fU(n){Kp===null?Kp=[n]:Kp.push(n)}function UV(n){W5=!0,fU(n)}function h0(){if(!uS&&Kp!==null){uS=!0;var n=0,e=Oa;try{var t=Kp;for(Oa=1;n<t.length;n++){var r=t[n];do r=r(!0);while(r!==null)}Kp=null,W5=!1}catch(i){throw Kp!==null&&(Kp=Kp.slice(n+1)),RL(i7,h0),i}finally{Oa=e,uS=!1}}return null}var dy=[],hy=0,q3=null,H3=0,Pd=[],Dd=0,B1=null,Rp=1,zp="";function V0(n,e){dy[hy++]=H3,dy[hy++]=q3,q3=n,H3=e}function pU(n,e,t){Pd[Dd++]=Rp,Pd[Dd++]=zp,Pd[Dd++]=B1,B1=n;var r=Rp;n=zp;var i=32-Kh(r)-1;r&=~(1<<i),t+=1;var o=32-Kh(e)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Rp=1<<32-Kh(e)+i|t<<i|r,zp=o+n}else Rp=1<<o|t<<i|r,zp=n}function h7(n){n.return!==null&&(V0(n,1),pU(n,1,0))}function f7(n){for(;n===q3;)q3=dy[--hy],dy[hy]=null,H3=dy[--hy],dy[hy]=null;for(;n===B1;)B1=Pd[--Dd],Pd[Dd]=null,zp=Pd[--Dd],Pd[Dd]=null,Rp=Pd[--Dd],Pd[Dd]=null}var td=null,Xc=null,Ps=!1,kh=null;function mU(n,e){var t=Ld(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=n,e=n.deletions,e===null?(n.deletions=[t],n.flags|=16):e.push(t)}function M9(n,e){switch(n.tag){case 5:var t=n.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(n.stateNode=e,td=n,Xc=qm(e.firstChild),!0):!1;case 6:return e=n.pendingProps===""||e.nodeType!==3?null:e,e!==null?(n.stateNode=e,td=n,Xc=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=B1!==null?{id:Rp,overflow:zp}:null,n.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=Ld(18,null,null,0),t.stateNode=e,t.return=n,n.child=t,td=n,Xc=null,!0):!1;default:return!1}}function wE(n){return(n.mode&1)!==0&&(n.flags&128)===0}function ME(n){if(Ps){var e=Xc;if(e){var t=e;if(!M9(n,e)){if(wE(n))throw Error(Yn(418));e=qm(t.nextSibling);var r=td;e&&M9(n,e)?mU(r,t):(n.flags=n.flags&-4097|2,Ps=!1,td=n)}}else{if(wE(n))throw Error(Yn(418));n.flags=n.flags&-4097|2,Ps=!1,td=n}}}function S9(n){
Line truncated
|
||||
Error generating stack: `+o.message+`
|
||||
`+o.stack}return{value:n,source:e,stack:i,digest:null}}function fS(n,e,t){return{value:n,source:null,stack:t??null,digest:e??null}}function BE(n,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var YV=typeof WeakMap=="function"?WeakMap:Map;function GU(n,e,t){t=jp(-1,t),t.tag=3,t.payload={element:null};var r=e.value;return t.callback=function(){r4||(r4=!0,RE=r),BE(n,e)},t}function QU(n,e,t){t=jp(-1,t),t.tag=3;var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;t.payload=function(){return r(i)},t.callback=function(){BE(n,e)}}var o=n.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){BE(n,e),typeof r!="function"&&(Vm===null?Vm=new Set([this]):Vm.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),t}function P9(n,e,t){var r=n.pingCache;if(r===null){r=n.pingCache=new YV;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(t)||(i.add(t),n=sZ.bind(null,n,e,t),e.then(n,n))}function D9(n){do{var e;if((e=n.tag===13)&&(e=n.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return n;n=n.return}while(n!==null);return null}function F9(n,e,t,r,i){return n.mode&1?(n.flags|=65536,n.lanes=i,n):(n===e?n.flags|=65536:(n.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=jp(-1,1),e.tag=2,Hm(t,e,1))),t.lanes|=1),n)}var qV=Zp.ReactCurrentOwner,xc=!1;function RA(n,e,t,r){e.child=n===null?xU(e,null,t,r):uv(e,n.child,t,r)}function L9(n,e,t,r,i){t=t.render;var o=e.ref;return Py(e,i),r=M7(n,e,t,r,o,i),t=S7(),n!==null&&!xc?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,Vp(n,e,i)):(Ps&&t&&h7(e),e.flags|=1,RA(n,e,r,i),e.child)}function U9(n,e,t,r,i){if(n===null){var o=t.type;return typeof o=="function"&&!F7(o)&&o.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=o,$U(n,e,o,r,i)):(n=y3(t.type,null,r,e,e.mode,i),n.ref=e.ref,n.return=e,e.child=n)}if(o=n.child,!(n.lanes&i)){var a=o.memoizedProps;if(t=t.compare,t=t!==null?t:$_,t(a,r)&&n.ref===e.ref)return Vp(n,e,i)}return e.flags|=1,n=Xm(o,r),n.ref=e.ref,n.return=e,e.child=n}function $U(n,e,t,r,i){if(n!==null){var o=n.memoizedProps;if($_(o,r)&&n.ref===e.ref)if(xc=!1,e.pendingProps=r=o,(n.lanes&i)!==0)n.flags&131072&&(xc=!0);else return e.lanes=n.lanes,Vp(n,e,i)}return IE(n,e,t,r,i)}function YU(n,e,t){var r=e.pendingProps,i=r.children,o=n!==null?n.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},is(my,Yc),Yc|=t;else{if(!(t&1073741824))return n=o!==null?o.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:n,cachePool:null,transitions:null},e.updateQueue=null,is(my,Yc),Yc|=n,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:t,is(my,Yc),Yc|=r}else o!==null?(r=o.baseLanes|t,e.memoizedState=null):r=t,is(my,Yc),Yc|=r;return RA(n,e,i,t),e.child}function qU(n,e){var t=e.ref;(n===null&&t!==null||n!==null&&n.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function IE(n,e,t,r,i){var o=Mc(t)?O1:yA.current;return o=sv(e,o),Py(e,i),t=M7(n,e,t,r,o,i),r=S7(),n!==null&&!xc?(e.updateQueue=n.updateQueue,e.flags&=-2053,n.lanes&=~i,Vp(n,e,i)):(Ps&&r&&h7(e),e.flags|=1,RA(n,e,t,i),e.child)}function R9(n,e,t,r,i){if(Mc(t)){var o=!0;Y3(e)}else o=!1;if(Py(e,i),e.stateNode===null)p3(n,e),_U(e,t,r),OE(e,t,r,i),r=!0;else if(n===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var d=a.context,f=t.contextType;typeof f=="object"&&f!==null?f=Wd(f):(f=Mc(t)?O1:yA.current,f=sv(e,f));var C=t.getDerivedStateFromProps,O=typeof C=="function"||typeof a.getSnapshotBeforeUpdate=="function";O||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||d!==f)&&I9(e,a,r,f),Im=!1;var E=e.memoizedState;a.state=E,X3(e,r,a,i),d=e.memoizedState,s!==r||E!==d||wc.current||Im?(typeof C=="function"&&(EE(e,t,C,r),d=e.memoizedState),(s=Im||B9(e,t,s,r,E,d,f))?(O||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=f,r=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{a=e.stateNode,vU(n,e),s=e.memoizedProps,f=e.type===e.elementType?s:Mh(e.type,s),a.props=f,O=e.pendingProps,E=a.context,d=t.contextType,typeof d=="object"&&d!==null?d=Wd(d):(d=Mc(t)?O1:yA.current,d=sv(e,d));var P=t.getDerivedStateFromProps;(C=typeof P=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==O||E!==d)&&I9(e,a,r,d),Im=!1,E=e.memoizedState,a.state=E,X3(e,r,a,i);var D=e.memoizedS
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/(function(n){const e=ew,t=tw,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=s,n.SlowBuffer=N,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const Ee=new Uint8Array(1),ee={foo:function(){return 42}};return Object.setPrototypeOf(ee,Uint8Array.prototype),Object.setPrototypeOf(Ee,ee),Ee.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(Ee){if(Ee>i)throw new RangeError('The value "'+Ee+'" is invalid for option "size"');const ee=new Uint8Array(Ee);return Object.setPrototypeOf(ee,s.prototype),ee}function s(Ee,ee,H){if(typeof Ee=="number"){if(typeof ee=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(Ee)}return d(Ee,ee,H)}s.poolSize=8192;function d(Ee,ee,H){if(typeof Ee=="string")return E(Ee,ee);if(ArrayBuffer.isView(Ee))return D(Ee);if(Ee==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee);if(hr(Ee,ArrayBuffer)||Ee&&hr(Ee.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(hr(Ee,SharedArrayBuffer)||Ee&&hr(Ee.buffer,SharedArrayBuffer)))return Q(Ee,ee,H);if(typeof Ee=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Ke=Ee.valueOf&&Ee.valueOf();if(Ke!=null&&Ke!==Ee)return s.from(Ke,ee,H);const At=V(Ee);if(At)return At;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ee[Symbol.toPrimitive]=="function")return s.from(Ee[Symbol.toPrimitive]("string"),ee,H);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ee)}s.from=function(Ee,ee,H){return d(Ee,ee,H)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function f(Ee){if(typeof Ee!="number")throw new TypeError('"size" argument must be of type number');if(Ee<0)throw new RangeError('The value "'+Ee+'" is invalid for option "size"')}function C(Ee,ee,H){return f(Ee),Ee<=0?a(Ee):ee!==void 0?typeof H=="string"?a(Ee).fill(ee,H):a(Ee).fill(ee):a(Ee)}s.alloc=function(Ee,ee,H){return C(Ee,ee,H)};function O(Ee){return f(Ee),a(Ee<0?0:$(Ee)|0)}s.allocUnsafe=function(Ee){return O(Ee)},s.allocUnsafeSlow=function(Ee){return O(Ee)};function E(Ee,ee){if((typeof ee!="string"||ee==="")&&(ee="utf8"),!s.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);const H=Z(Ee,ee)|0;let Ke=a(H);const At=Ke.write(Ee,ee);return At!==H&&(Ke=Ke.slice(0,At)),Ke}function P(Ee){const ee=Ee.length<0?0:$(Ee.length)|0,H=a(ee);for(let Ke=0;Ke<ee;Ke+=1)H[Ke]=Ee[Ke]&255;return H}function D(Ee){if(hr(Ee,Uint8Array)){const ee=new Uint8Array(Ee);return Q(ee.buffer,ee.byteOffset,ee.byteLength)}return P(Ee)}function Q(Ee,ee,H){if(ee<0||Ee.byteLength<ee)throw new RangeError('"offset" is outside of buffer bounds');if(Ee.byteLength<ee+(H||0))throw new RangeError('"length" is outside of buffer bounds');let Ke;return ee===void 0&&H===void 0?Ke=new Uint8Array(Ee):H===void 0?Ke=new Uint8Array(Ee,ee):Ke=new Uint8Array(Ee,ee,H),Object.setPrototypeOf(Ke,s.prototype),Ke}function V(Ee){if(s.isBuffer(Ee)){const ee=$(Ee.length)|0,H=a(ee);return H.length===0||Ee.copy(H,0,0,ee),H}if(Ee.length!==void 0)return typeof Ee.length!="number"||Er(Ee.length)?a(0):P(Ee);if(Ee.type==="Buffer"&&Array.isArray(Ee.data))return P(Ee.data)}function $(Ee){if(Ee>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ee|0}function N(Ee){return+Ee!=Ee&&(Ee=0),s.alloc(+Ee)}s.isBuffer=function(ee){return ee!=null&&ee._isBuffer===!0&&ee!==s.prototype},s.compare=function(ee,H){if(hr(ee,Uint8Array)&&(ee=s.from(ee,ee.offset,ee.byteLength)),hr(H,Uint8Array)&&(H=s.from(H,H.offset,H.byteLength)),!s.isBuffer(ee)||!s.isBuffer(H))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ee===H)return 0;let Ke=ee.length,At=H.length;for(let Bt=0,kt=Math.min(Ke,At);Bt<kt;++Bt)if(ee[Bt]!==H[Bt]){Ke=ee[Bt],At=H[Bt];break}return Ke<At?-1:At<Ke?1:0},s.isEncoding=function(ee){switch(String(ee).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(ee,H){if(!Array.isArray(ee))throw new TypeError('"list" argument must be an Array of Buffers');if(ee.length===0)return s.alloc(0);let Ke;if(H===void 0)for(H=0,Ke=0;Ke<eeLine truncated
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/h4.exports;(function(n,e){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,C="__lodash_placeholder__",O=1,E=2,P=4,D=1,Q=2,V=1,$=2,N=4,Z=8,se=16,pe=32,fe=64,X=128,oe=256,Ce=512,we=30,Te="...",Pe=800,he=16,Qe=1,ye=2,gt=3,yt=1/0,st=9007199254740991,ft=17976931348623157e292,Re=NaN,He=4294967295,Xe=He-1,Jt=He>>>1,Vt=[["ary",X],["bind",V],["bindKey",$],["curry",Z],["curryRight",se],["flip",Ce],["partial",pe],["partialRight",fe],["rearg",oe]],bt="[object Arguments]",Yt="[object Array]",qt="[object AsyncFunction]",ke="[object Boolean]",ge="[object Date]",Se="[object DOMException]",ze="[object Error]",it="[object Function]",ot="[object GeneratorFunction]",St="[object Map]",Rt="[object Number]",zt="[object Null]",mt="[object Object]",or="[object Promise]",gn="[object Proxy]",yn="[object RegExp]",tr="[object Set]",hr="[object String]",Er="[object Symbol]",$r="[object Undefined]",vr="[object WeakMap]",bi="[object WeakSet]",Ee="[object ArrayBuffer]",ee="[object DataView]",H="[object Float32Array]",Ke="[object Float64Array]",At="[object Int8Array]",Bt="[object Int16Array]",kt="[object Int32Array]",Ft="[object Uint8Array]",fn="[object Uint8ClampedArray]",Fn="[object Uint16Array]",kn="[object Uint32Array]",g=/\b__p \+= '';/g,Kt=/\b(__p \+=) '' \+/g,Dr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rr=/&(?:amp|lt|gt|quot|#39);/g,Fe=/[&<>"']/g,ce=RegExp(rr.source),xe=RegExp(Fe.source),Ie=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,rt=/<%=([\s\S]+?)%>/g,lt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pt=/^\w*$/,et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mt=/[\\^$.*+?()[\]{}|]/g,nn=RegExp(Mt.source),Ht=/^\s+/,en=/\s/,Rn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tn=/\{\n\/\* \[wrapped with (.+)\] \*/,Zn=/,? & /,Br=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cr=/[()=,{}\[\]\/\s]/,Yr=/\\(\\)?/g,Ir=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ur=/\w*$/,ar=/^[-+]0x[0-9a-f]+$/i,hi=/^0b[01]+$/i,Ri=/^\[object .+?Constructor\]$/,ro=/^0o[0-7]+$/i,ho=/^(?:0|[1-9]\d*)$/,li=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,fo=/($^)/,Wa=/['\n\r\u2028\u2029\\]/g,Ia="\\ud800-\\udfff",Oi="\\u0300-\\u036f",as="\\ufe20-\\ufe2f",vi="\\u20d0-\\u20ff",Qn=Oi+as+vi,oo="\\u2700-\\u27bf",_o="a-z\\xdf-\\xf6\\xf8-\\xff",zi="\\xac\\xb1\\xd7\\xf7",_e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Je="\\u2000-\\u206f",Zt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ln="A-Z\\xc0-\\xd6\\xd8-\\xde",Lt="\\ufe0e\\ufe0f",wn=zi+_e+Je+Zt,fr="['’]",oi="["+Ia+"]",ui="["+wn+"]",na="["+Qn+"]",Pa="\\d+",Fr="["+oo+"]",Ga="["+_o+"]",Ci="[^"+Ia+wn+Pa+oo+_o+ln+"]",Qa="\\ud83c[\\udffb-\\udfff]",ra="(?:"+na+"|"+Qa+")",wu="[^"+Ia+"]",ss="(?:\\ud83c[\\udde6-\\uddff]){2}",ia="[\\ud800-\\udbff][\\udc00-\\udfff]",oa="["+ln+"]",xs="\\u200d",Mu="(?:"+Ga+"|"+Ci+")",ya="(?:"+oa+"|"+Ci+")",_A="(?:"+fr+"(?:d|ll|m|re|s|t|ve))?",Gu="(?:"+fr+"(?:D|LL|M|RE|S|T|VE))?",bA=ra+"?",Su="["+Lt+"]?",Qu="(?:"+xs+"(?:"+[wu,ss,ia].join("|")+")"+Su+bA+")*",Go="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ws="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nu=Su+bA+Qu,ls="(?:"+[Fr,ss,ia].join("|")+")"+nu,ul="(?:"+[wu+na+"?",na,ss,ia,oi].join("|")+")",Qo=RegExp(fr,"g"),Eu=RegExp(na,"g"),Al=RegExp(Qa+"(?="+Qa+")|"+ul+nu,"g"),Ml=RegExp([oa+"?"+Ga+"+"+_A+"(?="+[ui,oa,"$"].join("|")+")",ya+"+"+Gu+"(?="+[ui,oa+Mu,"$"].join("|")+")",oa+"?"+Mu+"+"+_A,oa+"+"+Gu,ws,Go,Pa,ls].join("|"),"g"),ru=RegExp("["+xs+Ia+Qn+Lt+"]"),ca=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],xA=-1,Co={};Co[H]=Co[Ke]=Co[At]=Co[Bt]=Co[kt]=Co[Ft]=Co[fn]=Co[Fn]=Co[kn]=!0,Co[bt]=Co[Yt]=Co[Ee]=Co[ke]=Co[ee]=Co[ge]=Co[ze]=Co[it]=Co[St]=Co[Rt]=Co[mt]=Co[yn]=Co[tr]=Co[hr]=Co[vr]=!1;var ao={};ao[bt]=ao[Yt]=ao[Ee]=ao[ee]=ao[ke]=ao[ge]=ao[H]=ao[Ke]=ao[At]=ao[Bt]=ao[kt]=ao[St]=ao[Rt]=ao[mt]=ao[yn]=ao[tr]=ao[hr]=ao[Er]=ao[Ft]=ao[fn]=ao[Fn]=ao[kn]=!0,ao[ze]=ao[it]=ao[vr]=!1;var z={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ćLine truncated
|
||||
/* [wrapped with `+S+`] */
|
||||
`)}function p(v){return re(v)||J(v)||!!(rp&&v&&v[rp])}function x(v,S){var F=typeof v;return S=S??st,!!S&&(F=="number"||F!="symbol"&&ho.test(v))&&v>-1&&v%1==0&&v<S}function b(v,S,F){if(!xn(F))return!1;var te=typeof S;return(te=="number"?be(F)&&x(S,F.length):te=="string"&&S in F)?K(F[S],v):!1}function B(v,S){if(re(v))return!1;var F=typeof v;return F=="number"||F=="symbol"||F=="boolean"||v==null||ea(v)?!0:pt.test(v)||!lt.test(v)||S!=null&&v in Ko(S)}function U(v){var S=typeof v;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?v!=="__proto__":v===null}function q(v){var S=hh(v),F=Le[S];if(typeof F!="function"||!(S in qr.prototype))return!1;if(v===F)return!0;var te=zc(F);return!!te&&v===te[0]}function ne(v){return!!$h&&$h in v}var ue=Hu?Nn:QM;function ve(v){var S=v&&v.constructor,F=typeof S=="function"&&S.prototype||Ya;return v===F}function $e(v){return v===v&&!xn(v)}function nt(v,S){return function(F){return F==null?!1:F[v]===S&&(S!==t||v in Ko(F))}}function Ot(v){var S=vm(v,function(te){return F.size===f&&F.clear(),te}),F=S.cache;return S}function Ct(v,S){var F=v[1],te=S[1],Me=F|te,We=Me<(V|$|X),ut=te==X&&F==Z||te==X&&F==oe&&v[7].length<=S[8]||te==(X|oe)&&S[7].length<=S[8]&&F==Z;if(!(We||ut))return v;te&V&&(v[2]=S[2],Me|=F&V?0:N);var _t=S[3];if(_t){var Tt=v[3];v[3]=Tt?sh(Tt,_t,S[4]):_t,v[4]=Tt?Rl(v[3],C):S[4]}return _t=S[5],_t&&(Tt=v[5],v[5]=Tt?lf(Tt,_t,S[6]):_t,v[6]=Tt?Rl(v[5],C):S[6]),_t=S[7],_t&&(v[7]=_t),te&X&&(v[8]=v[8]==null?S[8]:ha(v[8],S[8])),v[9]==null&&(v[9]=S[9]),v[0]=S[0],v[1]=Me,v}function Nt(v){var S=[];if(v!=null)for(var F in Ko(v))S.push(F);return S}function cn(v){return lu.call(v)}function Pn(v,S,F){return S=lo(S===t?v.length-1:S,0),function(){for(var te=arguments,Me=-1,We=lo(te.length-S,0),ut=jt(We);++Me<We;)ut[Me]=te[S+Me];Me=-1;for(var _t=jt(S+1);++Me<S;)_t[Me]=te[Me];return _t[S]=F(ut),va(v,this,_t)}}function Vn(v,S){return S.length<2?v:Es(v,La(S,0,-1))}function bn(v,S){for(var F=v.length,te=ha(S.length,F),Me=tl(v);te--;){var We=S[te];v[te]=x(We,F)?Me[We]:t}return v}function jn(v,S){if(!(S==="constructor"&&typeof v[S]=="function")&&S!="__proto__")return v[S]}var lr=Ro(om),Kr=tA||function(v,S){return Cr.setTimeout(v,S)},br=Ro(rg);function pi(v,S,F){var te=S+"";return br(v,A(te,ds(qa(te),F)))}function Ro(v){var S=0,F=0;return function(){var te=wr(),Me=he-(te-F);if(F=te,Me>0){if(++S>=Pe)return arguments[0]}else S=0;return v.apply(t,arguments)}}function Ha(v,S){var F=-1,te=v.length,Me=te-1;for(S=S===t?te:S;++F<S;){var We=rm(F,Me),ut=v[We];v[We]=v[F],v[F]=ut}return v.length=S,v}var Ma=Ot(function(v){var S=[];return v.charCodeAt(0)===46&&S.push(""),v.replace(et,function(F,te,Me,We){S.push(Me?We.replace(Yr,"$1"):te||F)}),S});function Ua(v){if(typeof v=="string"||ea(v))return v;var S=v+"";return S=="0"&&1/v==-yt?"-0":S}function cs(v){if(v!=null){try{return us.call(v)}catch{}try{return v+""}catch{}}return""}function ds(v,S){return ou(Vt,function(F){var te="_."+F[0];S&F[1]&&!ud(v,te)&&v.push(te)}),v.sort()}function Ol(v){if(v instanceof qr)return v.clone();var S=new $i(v.__wrapped__,v.__chain__);return S.__actions__=tl(v.__actions__),S.__index__=v.__index__,S.__values__=v.__values__,S}function nl(v,S,F){(F?b(v,S,F):S===t)?S=1:S=lo(ei(S),0);var te=v==null?0:v.length;if(!te||S<1)return[];for(var Me=0,We=0,ut=jt(Mo(te/S));Me<te;)ut[We++]=La(v,Me,Me+=S);return ut}function Is(v){for(var S=-1,F=v==null?0:v.length,te=0,Me=[];++S<F;){var We=v[S];We&&(Me[te++]=We)}return Me}function hs(){var v=arguments.length;if(!v)return[];for(var S=jt(v-1),F=arguments[0],te=v;te--;)S[te-1]=arguments[te];return Yu(re(F)?tl(F):[F],uo(S,1))}var pa=Yi(function(v,S){return Be(v)?ti(v,uo(S,1,Be,!0)):[]}),ks=Yi(function(v,S){var F=KA(S);return Be(F)&&(F=t),Be(v)?ti(v,uo(S,1,Be,!0),Jr(F,2)):[]}),fh=Yi(function(v,S){var F=KA(S);return Be(F)&&(F=t),Be(v)?ti(v,uo(S,1,Be,!0),t,F):[]});function dc(v,S,F){var te=v==null?0:v.length;return te?(S=F||S===t?1:ei(S),La(v,S<0?0:S,te)):[]}function Ws(v,S,F){var te=v==null?0:v.length;return te?(S=F||S===t?1:ei(S),S=te-S,La(v,0,S<0?0:S)):[]}function hc(v,S){return v&&v.length?_d(v,Jr(S,3),!0,!0):[]}function Gs(v,S){return v&&v.length?_d(v,Jr(S,3),!0):[]}function K0(v,S,F,te){var Me=v==null?0:v.length;return Me?(F&&typeof F!="number"&&b(v,S,F)&&(F=0,te=Me),Fa(v,S,F,te)):[]}function TA(v,S,F){var te=v==null?0:v.length;if(!te)return-1;var Me=F==null?0:ei(F);return Me<0&&(Me=lo(te+Me,0)),Pi(v,Jr(S,3),Me)}function Nc(v,S,F){var te=v==null?0:v.length;if(!te)return-1;var Me=te-1;return F!==t&&(Me=ei(F),Me=F<0?lo(te+Me,0):ha(Me,te-1)),Pi(v,Jr(S,3),Me,!0)}function Va(v){var S=v==null?0:v.length;return S?uo(v,1):[]}function rl(v){var S=v==null?0:v.length;return S?uo(v,yt):[]}function ph(v,S){var F=v==null?0:v.length;return F?(S=S===t?1:ei(S),uo(v,S)):[]}function fc(v){for(var S=-1,F=v==null?0:v.length,te={};++S<F;){var Me=v[S];te[Me[0]]=Me[1]}return te}function fm(v){return v&&v.length?v[0]:t}function P0(v,S,F){var te=v==null?0:v.length;if(!te)return-1;var Me=F==null?0:ei(F);return Me<0&&(Me=lo(
Line truncated
|
||||
`;v.replace(mr,function(wi,xo,Do,Gc,LA,Qc){return Do||(Do=Gc),Dn+=v.slice(vn,Qc).replace(Wa,wA),xo&&(_t=!0,Dn+=`' +
|
||||
__e(`+xo+`) +
|
||||
'`),LA&&(Tt=!0,Dn+=`';
|
||||
`+LA+`;
|
||||
__p += '`),Do&&(Dn+=`' +
|
||||
((__t = (`+Do+`)) == null ? '' : __t) +
|
||||
'`),vn=Qc+wi.length,wi}),Dn+=`';
|
||||
`;var xi=Xi.call(S,"variable")&&S.variable;if(!xi)Dn=`with (obj) {
|
||||
`+Dn+`
|
||||
}
|
||||
`;else if(cr.test(xi))throw new Ai(s);Dn=(Tt?Dn.replace(g,""):Dn).replace(Kt,"$1").replace(Dr,"$1;"),Dn="function("+(xi||"obj")+`) {
|
||||
`+(xi?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(_t?", __e = _.escape":"")+(Tt?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+Dn+`return __p
|
||||
}`;var Ao=zk(function(){return so(We,Zr+"return "+Dn).apply(t,ut)});if(Ao.source=Dn,rn(Ao))throw Ao;return Ao}function $Y(v){return mi(v).toLowerCase()}function YY(v){return mi(v).toUpperCase()}function qY(v,S,F){if(v=mi(v),v&&(F||S===t))return VA(v);if(!v||!(S=Pu(S)))return v;var te=jl(v),Me=jl(S),We=Ul(te,Me),ut=Tc(te,Me)+1;return Rc(te,We,ut).join("")}function HY(v,S,F){if(v=mi(v),v&&(F||S===t))return v.slice(0,Zd(v)+1);if(!v||!(S=Pu(S)))return v;var te=jl(v),Me=Tc(te,jl(S))+1;return Rc(te,0,Me).join("")}function VY(v,S,F){if(v=mi(v),v&&(F||S===t))return v.replace(Ht,"");if(!v||!(S=Pu(S)))return v;var te=jl(v),Me=Ul(te,jl(S));return Rc(te,Me).join("")}function ZY(v,S){var F=we,te=Te;if(xn(S)){var Me="separator"in S?S.separator:Me;F="length"in S?ei(S.length):F,te="omission"in S?Pu(S.omission):te}v=mi(v);var We=v.length;if(XA(v)){var ut=jl(v);We=ut.length}if(F>=We)return v;var _t=F-Iu(te);if(_t<1)return te;var Tt=ut?Rc(ut,0,_t).join(""):v.slice(0,_t);if(Me===t)return Tt+te;if(ut&&(_t+=Tt.length-_t),fu(Me)){if(v.slice(_t).search(Me)){var vn,_n=Tt;for(Me.global||(Me=SA(Me.source,mi(Ur.exec(Me))+"g")),Me.lastIndex=0;vn=Me.exec(_n);)var Dn=vn.index;Tt=Tt.slice(0,Dn===t?_t:Dn)}}else if(v.indexOf(Pu(Me),_t)!=_t){var mr=Tt.lastIndexOf(Me);mr>-1&&(Tt=Tt.slice(0,mr))}return Tt+te}function XY(v){return v=mi(v),v&&ce.test(v)?v.replace(rr,Pc):v}var JY=Af(function(v,S,F){return v+(F?" ":"")+S.toUpperCase()}),RM=uf("toUpperCase");function Rk(v,S,F){return v=mi(v),S=F?t:S,S===t?np(v)?dd(v):em(v):v.match(S)||[]}var zk=Yi(function(v,S){try{return va(v,t,S)}catch(F){return rn(F)?F:new Ai(F)}}),eq=cc(function(v,S){return ou(S,function(F){F=Ua(F),Hn(v,F,Mg(v[F],v))}),v});function tq(v){var S=v==null?0:v.length,F=Jr();return v=S?aa(v,function(te){if(typeof te[1]!="function")throw new Po(a);return[F(te[0]),te[1]]}):[],Yi(function(te){for(var Me=-1;++Me<S;){var We=v[Me];if(va(We[0],this,te))return va(We[1],this,te)}})}function nq(v){return fi(_r(v,O))}function zM(v){return function(){return v}}function rq(v,S){return v==null||v!==v?S:v}var iq=sm(),oq=sm(!0);function yc(v){return v}function jM(v){return aA(typeof v=="function"?v:_r(v,O))}function aq(v){return tf(_r(v,O))}function sq(v,S){return nf(v,_r(S,O))}var lq=Yi(function(v,S){return function(F){return uc(F,v,S)}}),uq=Yi(function(v,S){return function(F){return uc(v,F,S)}});function NM(v,S,F){var te=Tl(S),Me=Gl(S,te);F==null&&!(xn(S)&&(Me.length||!te.length))&&(F=S,S=v,v=this,Me=Gl(S,Tl(S)));var We=!(xn(F)&&"chain"in F)||!!F.chain,ut=Nn(v);return ou(Me,function(_t){var Tt=S[_t];v[_t]=Tt,ut&&(v.prototype[_t]=function(){var vn=this.__chain__;if(We||vn){var _n=v(this.__wrapped__),Dn=_n.__actions__=tl(this.__actions__);return Dn.push({func:Tt,args:arguments,thisArg:v}),_n.__chain__=vn,_n}return Tt.apply(v,Yu([this.value()],arguments))})}),v}function Aq(){return Cr._===this&&(Cr._=_a),this}function WM(){}function cq(v){return v=ei(v),Yi(function(S){return ih(S,v)})}var dq=um(aa),hq=um(ld),fq=um(kc);function jk(v){return B(v)?ep(Ua(v)):b0(v)}function pq(v){return function(S){return v==null?t:Es(v,S)}}var mq=ch(),gq=ch(!0);function GM(){return[]}function QM(){return!1}function yq(){return{}}function vq(){return""}function Cq(){return!0}function _q(v,S){if(v=ei(v),v<1||v>st)return[];var F=He,te=ha(v,He);S=Jr(S),v-=He;for(var Me=To(te,S);++F<v;)S(F);return Me}function bq(v){return re(v)?aa(v,Ua):ea(v)?[v]:tl(Ma(mi(v)))}function xq(v){var S=++Qh;return mi(v)+S}var wq=Ah(function(v,S){return v+S},0),Mq=I0("ceil"),Sq=Ah(function(v,S){return v/S},1),Eq=I0("floor");function Oq(v){return v&&v.length?js(v,yc,sa):t}function Bq(v,S){return v&&v.length?js(v,Jr(S,2),sa):t}function Iq(v){return qu(v,yc)}function kq(v,S){return qu(v,Jr(S,2))}function Tq(v){return v&&v.length?js(v,yc,sA):t}function Kq(v,S){return v&&v.length?js(v,Jr(S,2),sA):t}var Pq=Ah(function(v,S){return v*S},1),Dq=I0("round"),Fq=Ah(function(v,S){return v-S},0);function Lq(v){return v&&v.length?HA(v,yc):0}function Uq(v,S){return v&&v.length?HA(v,Jr(S,2)):0}return Le.after=Cf,Le.ary=wg,Le.assign=pc,Le.assignIn=mc,Le.assignInWith=cA,Le.assignWith=gh,Le.at=gc,Le.before=AC,Le.bind=Mg,Le.bindAll=eq,Le.bindKey=Sg,Le.castArray=c,Le.chain=aC,Le.chunk=nl,Le.compact=Is,Le.concat=hs,Le.cond=tq,Le.conforms=nq,Le.constant=zM,Le.countBy=jx,Le.create=DA,Le.curry=Zx,Le.curryRight=cC,Le.debounce=dC,Le.defaults=Lu,Le.defaultsDeep=yh,Le.defer=IM,Le.delay=Xx,Le.difference=pa,Le.differenceBy=ks,Le.differenceWith=fh,Le.drop=dc,Le.dropRight=Ws,Le.dropRightWhile=hc,Le.dropWhile=Gs,Le.fill=K0,Le.filter=Wx,Le.flatMap=Qx,Le.flatMapDeep=vf,Le.flatMapDepth=$x,Le.flatten=Va,Le.flattenDeep=rl,Le.flattenDepth=ph,Le.flip=hC,Le.flow=iq,Le.flowRight=oq,Le.fromPairs=fc,Le.functions=t2,Le.functionsIn=TM,Le.groupBy=Yx,Le.initial=pm,Le.intersection=hg,Le.intersectionBy=fg,Le.intersectionWith=cM,Le.invert=PM,Le.invertBy=DM,Le.invokeMap=MM,Le.iteratee=jM,Le.keyBy=qx,Le.keys=Tl,Le.keysIn=Za,Le.map=mh,Le.mapKeys=Ig,Le.mapValues=n2,Le.matches=aq,Le.matchesProperty=sq,Le.
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(O[1])} }\`.`)];const E=[];return n.layerType==="symbol"&&(s==="text-field"&&i&&!i.glyphs&&E.push(new er(t,a,'use of "text-field" requires a style "glyphs" property')),s==="text-font"&&Lb(P1(a))&&ll(a.type)==="identity"&&E.push(new er(t,a,'"text-font" does not support identity functions'))),E.concat(r({key:n.key,value:a,valueSpec:C,style:i,styleSpec:o,expressionContext:"property",propertyType:e,propertyKey:s}))}function Uz(n){return Lz(n,"paint")}function Rz(n){return Lz(n,"layout")}function zz(n){let e=[];const t=n.value,r=n.key,i=n.style,o=n.styleSpec;!t.type&&!t.ref&&e.push(new er(r,t,'either "type" or "ref" is required'));let a=ll(t.type);const s=ll(t.ref);if(t.id){const d=ll(t.id);for(let f=0;f<n.arrayIndex;f++){const C=i.layers[f];ll(C.id)===d&&e.push(new er(r,t.id,`duplicate layer id "${t.id}", previously used at line ${C.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(f=>{f in t&&e.push(new er(r,t[f],`"${f}" is prohibited for ref layers`))});let d;i.layers.forEach(f=>{ll(f.id)===s&&(d=f)}),d?d.ref?e.push(new er(r,t.ref,"ref cannot reference another ref layer")):a=ll(d.type):e.push(new er(r,t.ref,`ref layer "${s}" not found`))}else if(a!=="background")if(!t.source)e.push(new er(r,t,'missing required property "source"'));else{const d=i.sources&&i.sources[t.source],f=d&&ll(d.type);d?f==="vector"&&a==="raster"?e.push(new er(r,t.source,`layer "${t.id}" requires a raster source`)):f!=="raster-dem"&&a==="hillshade"?e.push(new er(r,t.source,`layer "${t.id}" requires a raster-dem source`)):f==="raster"&&a!=="raster"?e.push(new er(r,t.source,`layer "${t.id}" requires a vector source`)):f==="vector"&&!t["source-layer"]?e.push(new er(r,t,`layer "${t.id}" must specify a "source-layer"`)):f==="raster-dem"&&a!=="hillshade"?e.push(new er(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):a==="line"&&t.paint&&t.paint["line-gradient"]&&(f!=="geojson"||!d.lineMetrics)&&e.push(new er(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new er(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Ud({key:r,value:t,valueSpec:o.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:u8,layout(d){return Ud({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(f){return Rz(hv({layerType:a},f))}}})},paint(d){return Ud({layer:t,key:d.key,value:d.value,style:d.style,styleSpec:d.styleSpec,validateSpec:d.validateSpec,objectElementValidators:{"*"(f){return Uz(hv({layerType:a},f))}}})}}})),e}function D1(n){const e=n.value,t=n.key,r=No(e);return r!=="string"?[new er(t,e,`string expected, ${r} found`)]:[]}function bne(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,o=i.source_raster_dem,a=n.style;let s=[];const d=No(r);if(r===void 0)return s;if(d!=="object")return s.push(new er("source_raster_dem",r,`object expected, ${d} found`)),s;const C=ll(r.encoding)==="custom",O=["redFactor","greenFactor","blueFactor","baseShift"],E=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!C&&O.includes(P)?s.push(new er(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${E} encoding found`)):o[P]?s=s.concat(n.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:n.validateSpec,style:a,styleSpec:i})):s.push(new er(P,r[P],`unknown property "${P}"`));return s}const jT={promoteId:xne};function jz(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,o=n.validateSpec;if(!e.type)return[new er(t,e,'"type" is required')];const a=ll(e.type);let s;switch(a){case"vector":case"raster":return s=Ud({key:t,value:e,valueSpec:r[`source_${a.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:jT,validateSpec:o}),s;case"raster-dem":return s=bne({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:o}),s;case"geojson":if(s=Ud({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:jT}),e.cluster)for(const d in e.clusterProperties){const[f,C]=e.clusterProperties[d],O=typeof f=="string"?[f,["accumulated"],["get",d]]:f;s.push(...fv({key:`${t}.${d}.map`,value:C,validateSpec:o,expressionContext:"cluster-map"})),s.push(...fv({key:`${t}.${d}.reduce`,value:O,validateSpec:o,expressionContext:"cluster-reduce"}))}return s;case"video":return Ud({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return Ud({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new er(t,null,"Please use runtime APIs to add canvas sourcLine truncated
|
||||
${O}`),Q].join(`
|
||||
${s}`)}return f}(n,"",0)}function WT(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function qz(n,e=2){return n=WT(n,jo.$root),n.layers&&(n.layers=n.layers.map(t=>WT(t,jo.layer))),Bne(n,{indent:e})}function IS(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function GT(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function rO(n,e){return typeof e=="string"&&e[0]==="@"?rO(n,n.constants[e]):e}function Ine(n){return Array.isArray(n.stops)}function DC(n,e,t){n[t]=n[e],delete n[e]}function kne(n){n.version=8,vne(n,i=>{i.type==="video"&&i.url!==void 0&&DC(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),x_(n,i=>{IS(i,o=>{o["symbol-min-distance"]!==void 0&&DC(o,"symbol-min-distance","symbol-spacing")}),GT(i,o=>{o["background-image"]!==void 0&&DC(o,"background-image","background-pattern"),o["line-image"]!==void 0&&DC(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&DC(o,"fill-image","fill-pattern")})}),a8(n,{paint:!0,layout:!0},i=>{const o=rO(n,i.value);Ine(o)&&o.stops.forEach(a=>{a[1]=rO(n,a[1])}),i.set(o)}),delete n.constants,x_(n,i=>{IS(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),GT(i,o=>{o["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function e(i){function o(a){return a.split(",").map(s=>s.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(a=>{a[1]=o(a[1])}),i;throw new Error("unexpected font value")}x_(n,i=>{IS(i,o=>{o["text-font"]&&(o["text-font"]=e(o["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function Tne(n){const e=[];return x_(n,t=>{t.filter&&(t.filter=b_(t.filter))}),a8(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{Rb(r)||(typeof r=="object"&&!Array.isArray(r)?(o(Tz(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&o(Kz(r)))}),n}function Kne(n){return JSON.parse(Pne(JSON.stringify(n)))}function Pne(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,a,s]=r.slice(1);return[o,a]=[o,a].map(d=>d.endsWith("%")?d:`${parseFloat(d)*100}%`),`"hsl${typeof s=="string"?"a":""}(${[i,o,a,s].filter(Boolean).join(",")})"`}return e})}function Dne(n){let e=!1;if(n.version===7&&(n=kne(n),e=!0),n.version===8&&(e=!!Tne(n),e=!0),a8(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(Kne(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const Fne={StyleExpression:Bz,StylePropertyFunction:Iz,ZoomConstantExpression:eO,ZoomDependentExpression:tO,createExpression:t8,createPropertyExpression:n8,isExpression:Rb,isExpressionFilter:hw,isZoomExpression:lne,normalizePropertyExpression:une},Lne={convertFunction:Tz,createFunction:e8,isFunction:Lb};var Hz={exports:{}};/**
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v4.1.2/LICENSE.txt
|
||||
*/(function(n,e){(function(t,r){n.exports=r()})(Vf,function(){var t={},r={};function i(a,s,d){if(r[a]=d,a==="index"){var f="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",C={};return r.shared(C),r.index(t,C),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([f],{type:"text/javascript"}))),t}}i("shared",["exports"],function(a){function s(c,l,h,y){return new(h||(h=Promise))(function(M,T){function K(J){try{W(y.next(J))}catch(re){T(re)}}function L(J){try{W(y.throw(J))}catch(re){T(re)}}function W(J){var re;J.done?M(J.value):(re=J.value,re instanceof h?re:new h(function(Ae){Ae(re)})).then(K,L)}W((y=y.apply(c,l||[])).next())})}function d(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var f=C;function C(c,l){this.x=c,this.y=l}C.prototype={clone:function(){return new C(this.x,this.y)},add:function(c){return this.clone()._add(c)},sub:function(c){return this.clone()._sub(c)},multByPoint:function(c){return this.clone()._multByPoint(c)},divByPoint:function(c){return this.clone()._divByPoint(c)},mult:function(c){return this.clone()._mult(c)},div:function(c){return this.clone()._div(c)},rotate:function(c){return this.clone()._rotate(c)},rotateAround:function(c,l){return this.clone()._rotateAround(c,l)},matMult:function(c){return this.clone()._matMult(c)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(c){return this.x===c.x&&this.y===c.y},dist:function(c){return Math.sqrt(this.distSqr(c))},distSqr:function(c){var l=c.x-this.x,h=c.y-this.y;return l*l+h*h},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(c){return Math.atan2(this.y-c.y,this.x-c.x)},angleWith:function(c){return this.angleWithSep(c.x,c.y)},angleWithSep:function(c,l){return Math.atan2(this.x*l-this.y*c,this.x*c+this.y*l)},_matMult:function(c){var l=c[2]*this.x+c[3]*this.y;return this.x=c[0]*this.x+c[1]*this.y,this.y=l,this},_add:function(c){return this.x+=c.x,this.y+=c.y,this},_sub:function(c){return this.x-=c.x,this.y-=c.y,this},_mult:function(c){return this.x*=c,this.y*=c,this},_div:function(c){return this.x/=c,this.y/=c,this},_multByPoint:function(c){return this.x*=c.x,this.y*=c.y,this},_divByPoint:function(c){return this.x/=c.x,this.y/=c.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var c=this.y;return this.y=this.x,this.x=-c,this},_rotate:function(c){var l=Math.cos(c),h=Math.sin(c),y=h*this.x+l*this.y;return this.x=l*this.x-h*this.y,this.y=y,this},_rotateAround:function(c,l){var h=Math.cos(c),y=Math.sin(c),M=l.y+y*(this.x-l.x)+h*(this.y-l.y);return this.x=l.x+h*(this.x-l.x)-y*(this.y-l.y),this.y=M,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},C.convert=function(c){return c instanceof C?c:Array.isArray(c)?new C(c[0],c[1]):c};var O=d(f),E=P;function P(c,l,h,y){this.cx=3*c,this.bx=3*(h-c)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*l,this.by=3*(y-l)-this.cy,this.ay=1-this.cy-this.by,this.p1x=c,this.p1y=l,this.p2x=h,this.p2y=y}P.prototype={sampleCurveX:function(c){return((this.ax*c+this.bx)*c+this.cx)*c},sampleCurveY:function(c){return((this.ay*c+this.by)*c+this.cy)*c},sampleCurveDerivativeX:function(c){return(3*this.ax*c+2*this.bx)*c+this.cx},solveCurveX:function(c,l){if(l===void 0&&(l=1e-6),c<0)return 0;if(c>1)return 1;for(var h=c,y=0;y<8;y++){var M=this.sampleCurveX(h)-c;if(Math.abs(M)<l)return h;var T=this.sampleCurveDerivativeX(h);if(Math.abs(T)<1e-6)break;h-=M/T}var K=0,L=1;for(h=c,y=0;y<20&&(M=this.sampleCurveX(h),!(Math.abs(M-c)<l));y++)c>M?K=h:L=h,h=.5*(L-K)+K;return h},solve:function(c,l){return this.sampleCurveY(this.solveCurveX(c,l))}};var D=d(E);let Q,V;function $(){return Q==null&&(Q=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),Q}function N(){if(V==null&&(V=!1,$())){const l=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(l){for(let y=0;y<5*5;y++){const M=4*y;l.fillStyle=`rgb(${M},${M+1},${M+2})`,l.fillRect(y%5,Math.floor(y/5),1,1)}const h=l.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&h[y]!==y){V=!0;break}}}return V||!1}function Z(c,l,h,y){const M=new D(c,l,h,y);return function(T){return M.solve(T)}}const se=Z(.25,.1,.25,1);function pe(c,l,h){return Math.min(h,Math.max(l,c))}function fe(c,l,h){const y=h-l,M=((c-l)%y+y)%y+l;return M===l?h:M}function X(c,...l){for(const h of l)for(const y in h)c[y]=h[y];return c}let oe=1;function Ce(c,l,h){const y={};for(const M in c)y[M]=l.call(h||this,c[M],M,c);return y}function we(c,l,h){const y={};for(const M in c)l.call(h||this,c[M],M,c)&&(y[M]=c[M]);return y}function Te(c){return Array.isArray(c)?c.map(Te):typeof c=="object"&&c?Ce(c,Te):c}const Pe={};function he(c){Pe[c]||(typeof console<"u"&&console.wLine truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const be=[];return c.layerType==="symbol"&&(L==="text-field"&&M&&!M.glyphs&&be.push(new H(h,K,'use of "text-field" requires a style "glyphs" property')),L==="text-font"&&ko(MA(K))&&Ca(K.type)==="identity"&&be.push(new H(h,K,'"text-font" does not support identity functions'))),be.concat(y({key:c.key,value:K,valueSpec:re,style:M,styleSpec:T,expressionContext:"property",propertyType:l,propertyKey:L}))}function su(c){return Xd(c,"paint")}function Et(c){return Xd(c,"layout")}function sn(c){let l=[];const h=c.value,y=c.key,M=c.style,T=c.styleSpec;h.type||h.ref||l.push(new H(y,h,'either "type" or "ref" is required'));let K=Ca(h.type);const L=Ca(h.ref);if(h.id){const W=Ca(h.id);for(let J=0;J<c.arrayIndex;J++){const re=M.layers[J];Ca(re.id)===W&&l.push(new H(y,h.id,`duplicate layer id "${h.id}", previously used at line ${re.id.__line__}`))}}if("ref"in h){let W;["type","source","source-layer","filter","layout"].forEach(J=>{J in h&&l.push(new H(y,h[J],`"${J}" is prohibited for ref layers`))}),M.layers.forEach(J=>{Ca(J.id)===L&&(W=J)}),W?W.ref?l.push(new H(y,h.ref,"ref cannot reference another ref layer")):K=Ca(W.type):l.push(new H(y,h.ref,`ref layer "${L}" not found`))}else if(K!=="background")if(h.source){const W=M.sources&&M.sources[h.source],J=W&&Ca(W.type);W?J==="vector"&&K==="raster"?l.push(new H(y,h.source,`layer "${h.id}" requires a raster source`)):J!=="raster-dem"&&K==="hillshade"?l.push(new H(y,h.source,`layer "${h.id}" requires a raster-dem source`)):J==="raster"&&K!=="raster"?l.push(new H(y,h.source,`layer "${h.id}" requires a vector source`)):J!=="vector"||h["source-layer"]?J==="raster-dem"&&K!=="hillshade"?l.push(new H(y,h.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!h.paint||!h.paint["line-gradient"]||J==="geojson"&&W.lineMetrics||l.push(new H(y,h,`layer "${h.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new H(y,h,`layer "${h.id}" must specify a "source-layer"`)):l.push(new H(y,h.source,`source "${h.source}" not found`))}else l.push(new H(y,h,'missing required property "source"'));return l=l.concat(zl({key:y,value:h,valueSpec:T.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${y}.type`,value:h.type,valueSpec:T.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:h,objectKey:"type"}),filter:Dc,layout:W=>zl({layer:h,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":J=>Et(Ke({layerType:K},J))}}),paint:W=>zl({layer:h,key:W.key,value:W.value,style:W.style,styleSpec:W.styleSpec,validateSpec:W.validateSpec,objectElementValidators:{"*":J=>su(Ke({layerType:K},J))}})}})),l}function jt(c){const l=c.value,h=c.key,y=Pi(l);return y!=="string"?[new H(h,l,`string expected, ${y} found`)]:[]}const pr={promoteId:function({key:c,value:l}){if(Pi(l)==="string")return jt({key:c,value:l});{const h=[];for(const y in l)h.push(...jt({key:`${c}.${y}`,value:l[y]}));return h}}};function Ai(c){const l=c.value,h=c.key,y=c.styleSpec,M=c.style,T=c.validateSpec;if(!l.type)return[new H(h,l,'"type" is required')];const K=Ca(l.type);let L;switch(K){case"vector":case"raster":return L=zl({key:h,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:pr,validateSpec:T}),L;case"raster-dem":return L=function(W){var J;const re=(J=W.sourceName)!==null&&J!==void 0?J:"",Ae=W.value,be=W.styleSpec,Be=be.source_raster_dem,De=W.style;let Ge=[];const Ze=Pi(Ae);if(Ae===void 0)return Ge;if(Ze!=="object")return Ge.push(new H("source_raster_dem",Ae,`object expected, ${Ze} found`)),Ge;const at=Ca(Ae.encoding)==="custom",It=["redFactor","greenFactor","blueFactor","baseShift"],ct=W.value.encoding?`"${W.value.encoding}"`:"Default";for(const wt in Ae)!at&&It.includes(wt)?Ge.push(new H(wt,Ae[wt],`In "${re}": "${wt}" is only valid when "encoding" is set to "custom". ${ct} encoding found`)):Be[wt]?Ge=Ge.concat(W.validateSpec({key:wt,value:Ae[wt],valueSpec:Be[wt],validateSpec:W.validateSpec,style:De,styleSpec:be})):Ge.push(new H(wt,Ae[wt],`unknown property "${wt}"`));return Ge}({sourceName:h,value:l,style:c.style,styleSpec:y,validateSpec:T}),L;case"geojson":if(L=zl({key:h,value:l,valueSpec:y.source_geojson,style:M,styleSpec:y,validateSpec:T,objectElementValidators:pr}),l.cluster)for(const W in l.clusterProperties){const[J,re]=l.clusterProperties[W],Ae=typeof J=="string"?[J,["accumulated"],["get",W]]:J;L.push(...Pc({key:`${h}.${W}.map`,value:re,validateSpec:T,expressionContext:"cluster-map"})),L.push(...Pc({key:`${h}.${W}.reduce`,value:Ae,validateSpec:T,expressionContext:"cluster-reduce"}))}return L;case"video":return zl({key:h,value:l,valueSpec:y.source_video,style:M,validateSpec:T,styleSpec:y});case"image":return zl({key:h,value:lLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
#define lowp
|
||||
#endif
|
||||
#if !defined(mediump)
|
||||
#define mediump
|
||||
#endif
|
||||
#if !defined(highp)
|
||||
#define highp
|
||||
#endif
|
||||
#endif
|
||||
`,`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
#define lowp
|
||||
#endif
|
||||
#if !defined(mediump)
|
||||
#define mediump
|
||||
#endif
|
||||
#if !defined(highp)
|
||||
#define highp
|
||||
#endif
|
||||
#endif
|
||||
vec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0
|
||||
);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}
|
||||
#ifdef TERRAIN3D
|
||||
uniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;
|
||||
#endif
|
||||
const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {
|
||||
#ifdef TERRAIN3D
|
||||
highp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));
|
||||
#else
|
||||
return 1.0;
|
||||
#endif
|
||||
}float calculate_visibility(vec4 pos) {
|
||||
#ifdef TERRAIN3D
|
||||
vec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;
|
||||
#else
|
||||
return 1.0;
|
||||
#endif
|
||||
}float ele(vec2 pos) {
|
||||
#ifdef TERRAIN3D
|
||||
vec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;
|
||||
#else
|
||||
return 0.0;
|
||||
#endif
|
||||
}float get_elevation(vec2 pos) {
|
||||
#ifdef TERRAIN3D
|
||||
vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;
|
||||
#else
|
||||
return 0.0;
|
||||
#endif
|
||||
}`),background:Ci(`uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:Ci(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:Ci(`varying vec3 v_data;varying float v_visibility;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define mediump float radius
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define highp vec4 stroke_color
|
||||
#pragma mapbox: define mediump float stroke_width
|
||||
#pragma mapbox: define lowp float stroke_opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize mediump float radius
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize highp vec4 stroke_color
|
||||
#pragma mapbox: initialize mediump float stroke_width
|
||||
#pragma mapbox: initialize lowp float stroke_opacity
|
||||
vec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define mediump float radius
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define highp vec4 stroke_color
|
||||
#pragma mapbox: define mediump float stroke_width
|
||||
#pragma mapbox: define lowp float stroke_opacity
|
||||
void main(void) {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize mediump float radius
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize highp vec4 stroke_color
|
||||
#pragma mapbox: initialize mediump float stroke_width
|
||||
#pragma mapbox: initialize lowp float stroke_opacity
|
||||
vec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:Ci("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Ci(`uniform highp float u_intensity;varying vec2 v_extrude;
|
||||
#pragma mapbox: define highp float weight
|
||||
#define GAUSS_COEF 0.3989422804014327
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp float weight
|
||||
float d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;
|
||||
#pragma mapbox: define highp float weight
|
||||
#pragma mapbox: define mediump float radius
|
||||
const highp float ZERO=1.0/255.0/16.0;
|
||||
#define GAUSS_COEF 0.3989422804014327
|
||||
void main(void) {
|
||||
#pragma mapbox: initialize highp float weight
|
||||
#pragma mapbox: initialize mediump float radius
|
||||
vec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}`),heatmapTexture:Ci(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(0.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:Ci("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Ci("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Ci("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:Ci(`#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_FragColor=color*opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`attribute vec2 a_pos;uniform mat4 u_matrix;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);}`),fillOutline:Ci(`varying vec2 v_pos;
|
||||
#pragma mapbox: define highp vec4 outline_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 outline_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;
|
||||
#pragma mapbox: define highp vec4 outline_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 outline_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillOutlinePattern:Ci(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}`),fillPattern:Ci(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:Ci(`varying vec4 v_color;void main() {gl_FragColor=v_color;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;
|
||||
#ifdef TERRAIN3D
|
||||
attribute vec2 a_centroid;
|
||||
#endif
|
||||
varying vec4 v_color;
|
||||
#pragma mapbox: define highp float base
|
||||
#pragma mapbox: define highp float height
|
||||
#pragma mapbox: define highp vec4 color
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp float base
|
||||
#pragma mapbox: initialize highp float height
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
vec3 normal=a_normal_ed.xyz;
|
||||
#ifdef TERRAIN3D
|
||||
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
|
||||
#else
|
||||
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
|
||||
#endif
|
||||
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:Ci(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
|
||||
#pragma mapbox: define lowp float base
|
||||
#pragma mapbox: define lowp float height
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float base
|
||||
#pragma mapbox: initialize lowp float height
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;
|
||||
#ifdef TERRAIN3D
|
||||
attribute vec2 a_centroid;
|
||||
#endif
|
||||
varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;
|
||||
#pragma mapbox: define lowp float base
|
||||
#pragma mapbox: define lowp float height
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float base
|
||||
#pragma mapbox: initialize lowp float height
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;
|
||||
#ifdef TERRAIN3D
|
||||
float height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);
|
||||
#else
|
||||
float height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;
|
||||
#endif
|
||||
base=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
|
||||
? a_pos
|
||||
: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:Ci(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Ci(`uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;
|
||||
#define PI 3.141592653589793
|
||||
void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:Ci(`uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`
|
||||
#define scale 0.015873016
|
||||
attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define mediump float gapwidth
|
||||
#pragma mapbox: define lowp float offset
|
||||
#pragma mapbox: define mediump float width
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump float gapwidth
|
||||
#pragma mapbox: initialize lowp float offset
|
||||
#pragma mapbox: initialize mediump float width
|
||||
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
|
||||
#ifdef TERRAIN3D
|
||||
v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),lineGradient:Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`
|
||||
#define scale 0.015873016
|
||||
attribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define mediump float gapwidth
|
||||
#pragma mapbox: define lowp float offset
|
||||
#pragma mapbox: define mediump float width
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump float gapwidth
|
||||
#pragma mapbox: initialize lowp float offset
|
||||
#pragma mapbox: initialize mediump float width
|
||||
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
|
||||
#ifdef TERRAIN3D
|
||||
v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),linePattern:Ci(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`
|
||||
#define scale 0.015873016
|
||||
#define LINE_DISTANCE_SCALE 2.0
|
||||
attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp float offset
|
||||
#pragma mapbox: define mediump float gapwidth
|
||||
#pragma mapbox: define mediump float width
|
||||
#pragma mapbox: define lowp float floorwidth
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
#pragma mapbox: define lowp vec4 pattern_to
|
||||
#pragma mapbox: define lowp float pixel_ratio_from
|
||||
#pragma mapbox: define lowp float pixel_ratio_to
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize lowp float offset
|
||||
#pragma mapbox: initialize mediump float gapwidth
|
||||
#pragma mapbox: initialize mediump float width
|
||||
#pragma mapbox: initialize lowp float floorwidth
|
||||
#pragma mapbox: initialize mediump vec4 pattern_from
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
|
||||
#ifdef TERRAIN3D
|
||||
v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:Ci(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define mediump float width
|
||||
#pragma mapbox: define lowp float floorwidth
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump float width
|
||||
#pragma mapbox: initialize lowp float floorwidth
|
||||
float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`
|
||||
#define scale 0.015873016
|
||||
#define LINE_DISTANCE_SCALE 2.0
|
||||
attribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float blur
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define mediump float gapwidth
|
||||
#pragma mapbox: define lowp float offset
|
||||
#pragma mapbox: define mediump float width
|
||||
#pragma mapbox: define lowp float floorwidth
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float blur
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize mediump float gapwidth
|
||||
#pragma mapbox: initialize lowp float offset
|
||||
#pragma mapbox: initialize mediump float width
|
||||
#pragma mapbox: initialize lowp float floorwidth
|
||||
float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;
|
||||
#ifdef TERRAIN3D
|
||||
v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:Ci(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:Ci(`uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
lowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:Ci(`#define SDF_PX 8.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp float halo_width
|
||||
#pragma mapbox: define lowp float halo_blur
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 fill_color
|
||||
#pragma mapbox: initialize highp vec4 halo_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize lowp float halo_width
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
float EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp float halo_width
|
||||
#pragma mapbox: define lowp float halo_blur
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 fill_color
|
||||
#pragma mapbox: initialize highp vec4 halo_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize lowp float halo_width
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:Ci(`#define SDF_PX 8.0
|
||||
#define SDF 1.0
|
||||
#define ICON 0.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp float halo_width
|
||||
#pragma mapbox: define lowp float halo_blur
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 fill_color
|
||||
#pragma mapbox: initialize highp vec4 halo_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize lowp float halo_width
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
float fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
return;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
gl_FragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,`const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
#pragma mapbox: define lowp float halo_width
|
||||
#pragma mapbox: define lowp float halo_blur
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 fill_color
|
||||
#pragma mapbox: initialize highp vec4 halo_color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
#pragma mapbox: initialize lowp float halo_width
|
||||
#pragma mapbox: initialize lowp float halo_blur
|
||||
vec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?
|
||||
camera_to_anchor_distance/u_camera_to_center_distance :
|
||||
u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ci("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Fr),terrainDepth:Ci("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",Fr),terrainCoords:Ci("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",Fr)};function Ci(I,u){const m=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=u.match(/attribute ([\w]+) ([\w]+)/g),w=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=k?k.concat(w):w,j={};return{fragmentSource:I=I.replace(m,(Y,ie,de,me,Oe)=>(j[Oe]=!0,ie==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
varying ${de} ${me} ${Oe};
|
||||
#else
|
||||
uniform ${de} ${me} u_${Oe};
|
||||
#endif
|
||||
`:`
|
||||
#ifdef HAS_UNIFORM_u_${Oe}
|
||||
${de} ${me} ${Oe} = u_${Oe};
|
||||
#endif
|
||||
`)),vertexSource:u=u.replace(m,(Y,ie,de,me,Oe)=>{const qe=me==="float"?"vec2":"vec4",Ye=Oe.match(/color/)?"color":qe;return j[Oe]?ie==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
uniform lowp float u_${Oe}_t;
|
||||
attribute ${de} ${qe} a_${Oe};
|
||||
varying ${de} ${me} ${Oe};
|
||||
#else
|
||||
uniform ${de} ${me} u_${Oe};
|
||||
#endif
|
||||
`:Ye==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
${Oe} = a_${Oe};
|
||||
#else
|
||||
${de} ${me} ${Oe} = u_${Oe};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
${Oe} = unpack_mix_${Ye}(a_${Oe}, u_${Oe}_t);
|
||||
#else
|
||||
${de} ${me} ${Oe} = u_${Oe};
|
||||
#endif
|
||||
`:ie==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
uniform lowp float u_${Oe}_t;
|
||||
attribute ${de} ${qe} a_${Oe};
|
||||
#else
|
||||
uniform ${de} ${me} u_${Oe};
|
||||
#endif
|
||||
`:Ye==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
${de} ${me} ${Oe} = a_${Oe};
|
||||
#else
|
||||
${de} ${me} ${Oe} = u_${Oe};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${Oe}
|
||||
${de} ${me} ${Oe} = unpack_mix_${Ye}(a_${Oe}, u_${Oe}_t);
|
||||
#else
|
||||
${de} ${me} ${Oe} = u_${Oe};
|
||||
#endif
|
||||
`}),staticAttributes:_,staticUniforms:R}}class Qa{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,m,_,w,k,R,j,Y,ie){this.context=u;let de=this.boundPaintVertexBuffers.length!==w.length;for(let me=0;!de&&me<w.length;me++)this.boundPaintVertexBuffers[me]!==w[me]&&(de=!0);!this.vao||this.boundProgram!==m||this.boundLayoutVertexBuffer!==_||de||this.boundIndexBuffer!==k||this.boundVertexOffset!==R||this.boundDynamicVertexBuffer!==j||this.boundDynamicVertexBuffer2!==Y||this.boundDynamicVertexBuffer3!==ie?this.freshBind(m,_,w,k,R,j,Y,ie):(u.bindVertexArray.set(this.vao),j&&j.bind(),k&&k.dynamicDraw&&k.bind(),Y&&Y.bind(),ie&&ie.bind())}freshBind(u,m,_,w,k,R,j,Y){const ie=u.numAttributes,de=this.context,me=de.gl;this.vao&&this.destroy(),this.vao=de.createVertexArray(),de.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=m,this.boundPaintVertexBuffers=_,this.boundIndexBuffer=w,this.boundVertexOffset=k,this.boundDynamicVertexBuffer=R,this.boundDynamicVertexBuffer2=j,this.boundDynamicVertexBuffer3=Y,m.enableAttributes(me,u);for(const Oe of _)Oe.enableAttributes(me,u);R&&R.enableAttributes(me,u),j&&j.enableAttributes(me,u),Y&&Y.enableAttributes(me,u),m.bind(),m.setVertexAttribPointers(me,u,k);for(const Oe of _)Oe.bind(),Oe.setVertexAttribPointers(me,u,k);R&&(R.bind(),R.setVertexAttribPointers(me,u,k)),w&&w.bind(),j&&(j.bind(),j.setVertexAttribPointers(me,u,k)),Y&&(Y.bind(),Y.setVertexAttribPointers(me,u,k)),de.currentNumAttributes=ie}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function ra(I){const u=[];for(let m=0;m<I.length;m++){if(I[m]===null)continue;const _=I[m].split(" ");u.push(_.pop())}return u}class wu{constructor(u,m,_,w,k,R){const j=u.gl;this.program=j.createProgram();const Y=ra(m.staticAttributes),ie=_?_.getBinderAttributes():[],de=Y.concat(ie),me=Ga.prelude.staticUniforms?ra(Ga.prelude.staticUniforms):[],Oe=m.staticUniforms?ra(m.staticUniforms):[],qe=_?_.getBinderUniforms():[],Ye=me.concat(Oe).concat(qe),Ve=[];for(const Ut of Ye)Ve.indexOf(Ut)<0&&Ve.push(Ut);const Ne=_?_.defines():[];k&&Ne.push("#define OVERDRAW_INSPECTOR;"),R&&Ne.push("#define TERRAIN3D;");const ht=Ne.concat(Ga.prelude.fragmentSource,m.fragmentSource).join(`
|
||||
`),Dt=Ne.concat(Ga.prelude.vertexSource,m.vertexSource).join(`
|
||||
`),tt=j.createShader(j.FRAGMENT_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(tt,ht),j.compileShader(tt),!j.getShaderParameter(tt,j.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${j.getShaderInfoLog(tt)}`);j.attachShader(this.program,tt);const xt=j.createShader(j.VERTEX_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(xt,Dt),j.compileShader(xt),!j.getShaderParameter(xt,j.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${j.getShaderInfoLog(xt)}`);j.attachShader(this.program,xt),this.attributes={};const Pt={};this.numAttributes=de.length;for(let Ut=0;Ut<this.numAttributes;Ut++)de[Ut]&&(j.bindAttribLocation(this.program,Ut,de[Ut]),this.attributes[de[Ut]]=Ut);if(j.linkProgram(this.program),!j.getProgramParameter(this.program,j.LINK_STATUS))throw new Error(`Program failed to link: ${j.getProgramInfoLog(this.program)}`);j.deleteShader(xt),j.deleteShader(tt);for(let Ut=0;Ut<Ve.length;Ut++){const Xt=Ve[Ut];if(Xt&&!Pt[Xt]){const hn=j.getUniformLocation(this.program,Xt);hn&&(Pt[Xt]=hn)}}this.fixedUniforms=w(u,Pt),this.terrainUniforms=((Ut,Xt)=>({u_depth:new s.aG(Ut,Xt.u_depth),u_terrain:new s.aG(Ut,Xt.u_terrain),u_terrain_dim:new s.aH(Ut,Xt.u_terrain_dim),u_terrain_matrix:new s.aI(Ut,Xt.u_terrain_matrix),u_terrain_unpack:new s.aJ(Ut,Xt.u_terrain_unpack),u_terrain_exaggeration:new s.aH(Ut,Xt.u_terrain_exaggeration)}))(u,Pt),this.binderUniforms=_?_.getUniforms(u,Pt):[]}draw(u,m,_,w,k,R,j,Y,ie,de,me,Oe,qe,Ye,Ve,Ne,ht,Dt){const tt=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(w),u.setColorMode(k),u.setCullFace(R),Y){u.activeTexture.set(tt.TEXTURE2),tt.bindTexture(tt.TEXTURE_2D,Y.depthTexture),u.activeTexture.set(tt.TEXTURE3),tt.bindTexture(tt.TEXTURE_2D,Y.texture);for(const Pt in this.terrainUniforms)this.terrainUniforms[Pt].set(Y[Pt])}for(const Pt in this.fixedUniforms)this.fixedUniforms[Pt].set(j[Pt]);Ve&&Ve.setUniforms(u,this.binderUniforms,qe,{zoom:Ye});let xt=0;switch(m){case tt.LINES:xt=2;break;case tt.TRIANGLES:xt=3;break;case tt.LINE_STRIP:xt=1}for(const Pt of Oe.get()){const Ut=Pt.vaos||(Pt.vaos={});(Ut[ie]||(Ut[ie]=new Qa)).bind(u,this,de,Ve?Ve.getPaintVertexBuffers():[],me,Pt.vertexOffset,Ne,ht,Dt),tt.drawElements(m,Pt.primitiveLength*xt,tt.UNSIGNED_SHORT,Pt.primitiveOffset*xt*2)}}}function ss(I,u,m){const _=1/cr(m,1,u.transform.tileZoom),w=Math.pow(2,m.tileID.overscaledZ),k=m.tileSize*Math.pow(2,u.transform.tileZoom)/w,R=k*(m.tileID.canonical.x+m.tileID.wrap*w),j=k*m.tileID.canonical.y;return{u_image:0,u_texsize:m.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[R>>16,j>>16],u_pixel_coord_lower:[65535&R,65535&j]}}const ia=(I,u,m,_)=>{const w=u.style.light,k=w.properties.get("position"),R=[k.x,k.y,k.z],j=function(){var ie=new s.A(9);return s.A!=Float32Array&&(ie[1]=0,ie[2]=0,ie[3]=0,ie[5]=0,ie[6]=0,ie[7]=0),ie[0]=1,ie[4]=1,ie[8]=1,ie}();w.properties.get("anchor")==="viewport"&&function(ie,de){var me=Math.sin(de),Oe=Math.cos(de);ie[0]=Oe,ie[1]=me,ie[2]=0,ie[3]=-me,ie[4]=Oe,ie[5]=0,ie[6]=0,ie[7]=0,ie[8]=1}(j,-u.transform.angle),function(ie,de,me){var Oe=de[0],qe=de[1],Ye=de[2];ie[0]=Oe*me[0]+qe*me[3]+Ye*me[6],ie[1]=Oe*me[1]+qe*me[4]+Ye*me[7],ie[2]=Oe*me[2]+qe*me[5]+Ye*me[8]}(R,R,j);const Y=w.properties.get("color");return{u_matrix:I,u_lightpos:R,u_lightintensity:w.properties.get("intensity"),u_lightcolor:[Y.r,Y.g,Y.b],u_vertical_gradient:+m,u_opacity:_}},oa=(I,u,m,_,w,k,R)=>s.e(ia(I,u,m,_),ss(k,u,R),{u_height_factor:-Math.pow(2,w.overscaledZ)/R.tileSize/8}),xs=I=>({u_matrix:I}),Mu=(I,u,m,_)=>s.e(xs(I),ss(m,u,_)),ya=(I,u)=>({u_matrix:I,u_world:u}),_A=(I,u,m,_,w)=>s.e(Mu(I,u,m,_),{u_world:w}),Gu=(I,u,m,_)=>{const w=I.transform;let k,R;if(_.paint.get("circle-pitch-alignment")==="map"){const j=cr(m,1,w.zoom);k=!0,R=[j,j]}else k=!1,R=w.pixelsToGLUnits;return{u_camera_to_center_distance:w.cameraToCenterDistance,u_scale_with_map:+(_.paint.get("circle-pitch-scale")==="map"),u_matrix:I.translatePosMatrix(u.posMatrix,m,_.paint.get("circle-translate"),_.paint.get("circle-translate-anchor")),u_pitch_with_map:+k,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:R}},bA=(I,u,m)=>{const _=cr(m,1,u.zoom),w=Math.pow(2,u.zoom-m.tileID.overscaledZ),k=m.tileID.overscaleFactor();return{u_matrix:I,u_camera_to_center_distance:u.cameraToCenterDistance,u_pixels_to_tile_units:_,u_extrude_scale:[u.pixelsToGLUnits[0]/(_*w),u.pixelsToGLUnits[1]/(_*w)],u_overscale_factor:k}},Su=(I,u,m=1)=>({u_matrix:I,u_color:u,u_overlay:0,u_overlay_scale:m}),Qu=I=>({u_matrix:I}),Go=(I,u,m,_)=>({u_matrix:I,u_extrude_scale:cr(u,1,m),u_intensity:_});function ws(I,u){const m=Math.pow(2,u.canonical.z),_=u.canonical.y;return[new s.Y(0,_/m).toLngLat().lat,new s.Y(0,(_+1)/m).toLngLat().lat]}const nu=(I,u,m,_)=>{const w=I.transform;return{u_matrix:Al(I,u,m,_),u_ratio:1/cr(u,1,w.zoom),u_device_pixel_ratio:I.pixelRatio,u_units_to_pixels:[1/w.pixelsToGLUnits[0],1/w.p
Line truncated
|
||||
${e} <span></span>
|
||||
`,qo().s[12]++,this._textEl=this._container.querySelector("span"),qo().s[13]++,this.updateZoomLevel()}addEventListeners(){qo().f[4]++,qo().s[14]++,this._map.on("render",()=>(qo().f[5]++,qo().s[15]++,this.updateZoomLevel())),qo().s[16]++,this._map.on("zoomIn",()=>(qo().f[6]++,qo().s[17]++,this.updateZoomLevel())),qo().s[18]++,this._map.on("zoomOut",()=>(qo().f[7]++,qo().s[19]++,this.updateZoomLevel()))}onRemove(){qo().f[8]++,qo().s[20]++,this._container.parentNode.removeChild(this._container),qo().s[21]++,this._map=void 0}}function fO(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 pO(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 mO(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 oie(n,e){const t=[],r=[],i=[];function o(a){return{circle:e(a,.8),line:e(a,.6),polygon:e(a,.3),polygonOutline:e(a,.6),default:e(a,1)}}return Object.keys(n).forEach(a=>{const s=n[a];if(!s||s.length===0){const d=o(a);r.push(fO(d.circle,a)),i.push(mO(d.line,a)),t.push(pO(d.polygon,d.polygonOutline,a))}else s.forEach(d=>{const f=o(d);r.push(fO(f.circle,a,d)),i.push(mO(f.line,a,d)),t.push(pO(f.polygon,f.polygonOutline,a,d))})}),t.concat(i).concat(r)}function aie(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(o=>{const a=n.sources[o];(a.type==="vector"||a.type==="geojson")&&(i[o]=a)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const KS={polygonLayer:pO,lineLayer:mO,circleLayer:fO,generateInspectStyle:aie,generateColoredLayers:oie};function Ui(){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}
Line truncated
|
||||
`))?(jb(DO),Jg=null,PO=void 0,Ip.set(P,n)):(Ip.set(P,Ip.get(P)+1,!0),f=!1))}f&&(clearInterval(o),o=void 0)}return function(f){var C=uN(f);if(C)for(var O=C.families,E=0,P=O.length;E<P;++E){var D=O[E],Q=C.style+`
|
||||
`+C.weight+`
|
||||
`+D;Ip.get(Q)===void 0&&(Ip.set(Q,n,!0),s(C.style,C.weight,D)||(Ip.set(Q,0,!0),o===void 0&&(o=setInterval(d,32))))}}}(),Pse=function(){var n;return function(e){var t=DO[e];if(t==null){if(gw){var r=uN(e),i=dN(e,"Žg"),o=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);t=o*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);DO[e]=t}return t}}();function dN(n,e){return Jg||(Jg=Oc(1,1)),n!=PO&&(Jg.font=n,PO=Jg.font),Jg.measureText(e)}function j4(n,e){return dN(n,e).width}function BK(n,e,t){if(e in t)return t[e];var r=e.split(`
|
||||
`).reduce(function(i,o){return Math.max(i,j4(n,o))},0);return t[e]=r,r}function Dse(n,e){for(var t=[],r=[],i=[],o=0,a=0,s=0,d=0,f=0,C=e.length;f<=C;f+=2){var O=e[f];if(O===`
|
||||
`||f===C){o=Math.max(o,a),i.push(a),a=0,s+=d;continue}var E=e[f+1]||n.font,P=j4(E,O);t.push(P),a+=P;var D=Pse(E);r.push(D),d=Math.max(d,D)}return{width:o,height:s,widths:t,heights:r,lineWidths:i}}function Fse(n,e,t,r,i,o,a,s,d,f,C){n.save(),t!==1&&(n.globalAlpha*=t),e&&n.setTransform.apply(n,e),r.contextInstructions?(n.translate(d,f),n.scale(C[0],C[1]),Lse(r,n)):C[0]<0||C[1]<0?(n.translate(d,f),n.scale(C[0],C[1]),n.drawImage(r,i,o,a,s,0,0,a,s)):n.drawImage(r,i,o,a,s,d,f,a*C[0],s*C[1]),n.restore()}function Lse(n,e){for(var t=n.contextInstructions,r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}var Use=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Rse=function(n){Use(e,n);function e(t){var r=n.call(this,t)||this;r.fontChangeListenerKey_=Oo(Ip,pv.PROPERTYCHANGE,t.redrawText.bind(t)),r.element_=document.createElement("div");var i=r.element_.style;i.position="absolute",i.width="100%",i.height="100%",i.zIndex="0",r.element_.className=xw+" ol-layers";var o=t.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return e.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var o=new lN(t,void 0,r);i.dispatchEvent(o)}},e.prototype.disposeInternal=function(){os(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),n.prototype.disposeInternal.call(this)},e.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(i0.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(P,D){return P.zIndex-D.zIndex}),i=t.viewState;this.children_.length=0;for(var o=[],a=null,s=0,d=r.length;s<d;++s){var f=r[s];t.layerIndex=s;var C=f.layer,O=C.getSourceState();if(!L4(f,i)||O!="ready"&&O!="undefined"){C.unrender();continue}var E=C.render(t,a);E&&(E!==a&&(this.children_.push(E),a=E),"getDeclutter"in C&&o.push(C))}for(var s=o.length-1;s>=0;--s)o[s].renderDeclutter(t);Tse(this.element_,this.children_),this.dispatchRenderEvent(i0.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},e.prototype.forEachLayerAtPixel=function(t,r,i,o,a){for(var s=r.viewState,d=r.layerStatesArray,f=d.length,C=f-1;C>=0;--C){var O=d[C],E=O.layer;if(E.hasRenderer()&&L4(O,s)&&a(E)){var P=E.getRenderer(),D=P.getDataAtPixel(t,r,i);if(D){var Q=o(E,D);if(Q)return Q}}}},e}(Mse);const bc={ADD:"add",REMOVE:"remove"};var hN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),IK={LENGTH:"length"},P2=function(n){hN(e,n);function e(t,r,i){var o=n.call(this,t)||this;return o.element=r,o.index=i,o}return e}(Xp),Rd=function(n){hN(e,n);function e(t,r){var i=n.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=t||[],i.unique_)for(var a=0,s=i.array_.length;a<s;++a)i.assertUnique_(i.array_[a],a);return i.updateLength_(),i}return e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var r=0,i=t.length;r<i;++r)this.push(t[r]);return this},e.prototype.forEach=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)t(r[i],i,r)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(IK.LENGTH)},e.prototype.insertAt=function(t,r){this.unique_&&this.assertUnique_(r),this.array_.splice(t,0,r),this.updateLength_(),this.dispatchEvent(new P2(bc.ADD,r,t))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var r=this.getLength();return this.insertAt(r,t),this.getLength()},e.prototype.remove=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)if(r[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var r=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new P2(bc.REMOVE,r,t)),r},e.prototype.setAt=function(t,r){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(r,t);var o=this.array_[t];this.array_[t]=r,thi
Line truncated
|
||||
`,""),n.push(e,""),n}var Sue=function(){function n(e,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=jd(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return n.prototype.createLabel=function(e,t,r,i){var o=e+t+r+i;if(this.labels_[o])return this.labels_[o];var a=i?this.strokeStates[i]:null,s=r?this.fillStates[r]:null,d=this.textStates[t],f=this.pixelRatio,C=[d.scale[0]*f,d.scale[1]*f],O=Array.isArray(e),E=d.justify?S_[d.justify]:WK(Array.isArray(e)?e[0]:e,d.textAlign||gb),P=i&&a.lineWidth?a.lineWidth:0,D=O?e:e.split(`
|
||||
`).reduce(Mue,[]),Q=Dse(d,D),V=Q.width,$=Q.height,N=Q.widths,Z=Q.heights,se=Q.lineWidths,pe=V+P,fe=[],X=(pe+2)*C[0],oe=($+P)*C[1],Ce={width:X<0?Math.floor(X):Math.ceil(X),height:oe<0?Math.floor(oe):Math.ceil(oe),contextInstructions:fe};if((C[0]!=1||C[1]!=1)&&fe.push("scale",C),i){fe.push("strokeStyle",a.strokeStyle),fe.push("lineWidth",P),fe.push("lineCap",a.lineCap),fe.push("lineJoin",a.lineJoin),fe.push("miterLimit",a.miterLimit);var we=gw?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;we.prototype.setLineDash&&(fe.push("setLineDash",[a.lineDash]),fe.push("lineDashOffset",a.lineDashOffset))}r&&fe.push("fillStyle",s.fillStyle),fe.push("textBaseline","middle"),fe.push("textAlign","center");for(var Te=.5-E,Pe=E*pe+Te*P,he=[],Qe=[],ye=0,gt=0,yt=0,st=0,ft,Re=0,He=D.length;Re<He;Re+=2){var Xe=D[Re];if(Xe===`
|
||||
`){gt+=ye,ye=0,Pe=E*pe+Te*P,++st;continue}var Jt=D[Re+1]||d.font;Jt!==ft&&(i&&he.push("font",Jt),r&&Qe.push("font",Jt),ft=Jt),ye=Math.max(ye,Z[yt]);var Vt=[Xe,Pe+Te*N[yt]+E*(N[yt]-se[st]),.5*(P+ye)+gt];Pe+=N[yt],i&&he.push("strokeText",Vt),r&&Qe.push("fillText",Vt),++yt}return Array.prototype.push.apply(fe,he),Array.prototype.push.apply(fe,Qe),this.labels_[o]=Ce,Ce},n.prototype.replayTextBackground_=function(e,t,r,i,o,a,s){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,o),e.lineTo.apply(e,t),a&&(this.alignFill_=a[2],this.fill_(e)),s&&(this.setStrokeStyle_(e,s),e.stroke())},n.prototype.calculateImageOrLabelDimensions_=function(e,t,r,i,o,a,s,d,f,C,O,E,P,D,Q,V){s*=E[0],d*=E[1];var $=r-s,N=i-d,Z=o+f>e?e-f:o,se=a+C>t?t-C:a,pe=D[3]+Z*E[0]+D[1],fe=D[0]+se*E[1]+D[2],X=$-D[3],oe=N-D[0];(Q||O!==0)&&(_m[0]=X,bm[0]=X,_m[1]=oe,Mp[1]=oe,Mp[0]=X+pe,Sp[0]=Mp[0],Sp[1]=oe+fe,bm[1]=Sp[1]);var Ce;return O!==0?(Ce=Qf(jd(),r,i,1,1,O,-r,-i),Cl(Ce,_m),Cl(Ce,Mp),Cl(Ce,Sp),Cl(Ce,bm),$f(Math.min(_m[0],Mp[0],Sp[0],bm[0]),Math.min(_m[1],Mp[1],Sp[1],bm[1]),Math.max(_m[0],Mp[0],Sp[0],bm[0]),Math.max(_m[1],Mp[1],Sp[1],bm[1]),zg)):$f(Math.min(X,X+pe),Math.min(oe,oe+fe),Math.max(X,X+pe),Math.max(oe,oe+fe),zg),P&&($=Math.round($),N=Math.round(N)),{drawImageX:$,drawImageY:N,drawImageW:Z,drawImageH:se,originX:f,originY:C,declutterBox:{minX:zg[0],minY:zg[1],maxX:zg[2],maxY:zg[3],value:V},canvasTransform:Ce,scale:E}},n.prototype.replayImageOrLabel_=function(e,t,r,i,o,a,s){var d=!!(a||s),f=i.declutterBox,C=e.canvas,O=s?s[2]*i.scale[0]/2:0,E=f.minX-O<=C.width/t&&f.maxX+O>=0&&f.minY-O<=C.height/t&&f.maxY+O>=0;return E&&(d&&this.replayTextBackground_(e,_m,Mp,Sp,bm,a,s),Fse(e,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},n.prototype.fill_=function(e){if(this.alignFill_){var t=Cl(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(t[0]%r,t[1]%r),e.rotate(this.viewRotation_)}e.fill(),this.alignFill_&&e.restore()},n.prototype.setStrokeStyle_=function(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.setLineDash&&(e.lineDashOffset=t[7],e.setLineDash(t[6]))},n.prototype.drawLabelWithPointPlacement_=function(e,t,r,i){var o=this.textStates[t],a=this.createLabel(e,t,i,r),s=this.strokeStates[r],d=this.pixelRatio,f=WK(Array.isArray(e)?e[0]:e,o.textAlign||gb),C=S_[o.textBaseline||z4],O=s&&s.lineWidth?s.lineWidth:0,E=a.width/d-2*o.scale[0],P=f*E+2*(.5-f)*O,D=C*a.height/d+2*(.5-C)*O;return{label:a,anchorX:P,anchorY:D}},n.prototype.execute_=function(e,t,r,i,o,a,s,d){var f;this.pixelCoordinates_&&q1(r,this.renderedTransform_)?f=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),f=r0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),hoe(this.renderedTransform_,r));for(var C=0,O=i.length,E=0,P,D,Q,V,$,N,Z,se,pe,fe,X,oe,Ce=0,we=0,Te=null,Pe=null,he=this.coordinateCache_,Qe=this.viewRotation_,ye=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,gt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Qe},yt=this.instructions!=i||this.overlaps?0:200,st,ft,Re,He;C<O;){var Xe=i[C],Jt=Xe[0];switch(Jt){case di.BEGIN_GEOMETRY:st=Xe[1],He=Xe[3],st.getGeometry()?s!==void 0&&!bl(s,He.getExtent())?C=Xe[2]+1:++C:C=Xe[2];break;case di.BEGIN_PATH:Ce>yt&&(this.fill_(e),Ce=0),we>yt&&(e.stroke(),we=0),!Ce&&!we&&(e.beginPath(),V=NaN,$=NaN),++C;break;case di.CIRCLE:E=Xe[1];var Vt=f[E],bt=f[E+1],Yt=f[E+2],qt=f[E+3],ke=Yt-Vt,ge=qt-bt,Se=Math.sqrt(ke*ke+ge*ge);e.moveTo(Vt+Se,bt),e.arc(Vt,bt,Se,0,2*Math.PI,!0),++C;break;case di.CLOSE_PATH:e.closePath(),++C;break;case di.CUSTOM:E=Xe[1],P=Xe[2];var ze=Xe[3],it=Xe[4],ot=Xe.length==6?Xe[5]:void 0;gt.geometry=ze,gt.feature=st,C in he||(he[C]=[]);var St=he[C];ot?ot(f,E,P,2,St):(St[0]=f[E],St[1]=f[E+1],St.length=2),it(St,gt),++C;break;case di.DRAW_IMAGE:E=Xe[1],P=Xe[2],se=Xe[3],D=Xe[4],Q=Xe[5];var Rt=Xe[6],zt=Xe[7],mt=Xe[8],or=Xe[9],gn=Xe[10],yn=Xe[11],tr=Xe[12],hr=Xe[13],Er=Xe[14],$r=Xe[15];if(!se&&Xe.length>=20){pe=Xe[19],fe=Xe[20],X=Xe[21],oe=Xe[22];var vr=this.drawLabelWithPointPlacement_(pe,fe,X,oe);se=vr.label,Xe[3]=se;var bi=Xe[23];D=(vr.anchorX-bi)*this.pixelRatio,Xe[4]=D;var Ee=Xe[24];Q=(vr.anchorY-Ee)*this.pixelRatio,Xe[5]=Q,Rt=se.height,Xe[6]=Rt,hr=se.width,Xe[13]=hr}var ee=void 0;Xe.length>25&&(ee=Xe[25]);var H=void 0,Ke=void 0,At=void 0;Xe.length>17?(H=Xe[16],Ke=Xe[17],At=Xe[18]):(H=f1,Ke=!1,At=!1),gn&&ye?yn+=Qe:!gn&&!ye&&(yn-=Qe);for(var Bt=0;E<P;E+=2)if(!(ee&&ee[Bt++]<hr/this.pixelRatio)){var kt=this.calculateImageOrLabelDimensions_(se.width,se.height,f[E],f[E+1],hr,Rt,D,Q,mt,or,yn,tr,o,H,Ke||At,st),Ft=[e,t,se,kt,zt,Ke?Te:null,At?Pe:null];if(d){if(Er==="none")continue;if(Er==="obstacle"){d.insert(kt.declutterBox);continue}else{var fn=void 0,Fn=void 0;if($r){var kn=P-E;if(!$r[kn]){$r[kn]=Ft;continue}if(fn=$r[kn],delete $r[kn],Fn=NK(fn),d.collides(Fn))continue}if(d.collides(kt.declutterBox))continue;fn&&(d.
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(ZN(t,this.tileGrid),r):this.setKey(r)},e.prototype.tileUrlFunction=function(t,r,i){},e.prototype.useTile=function(t,r,i){var o=Fv(t,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},e}(wAe),IAe=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),kAe=function(n){IAe(e,n);function e(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),r=n.call(this,{attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:TAe,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:i,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection})||this,r.crossOrigin=t.crossOrigin!==void 0?t.crossOrigin:null,r.tileClass=t.tileClass!==void 0?t.tileClass:QN,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,r){var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?r:{});for(var o in this.tileCacheForProjection){var a=this.tileCacheForProjection[o];a.expireCache(a==i?r:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!r1(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getKey=function(){var t=n.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},e.prototype.getOpaque=function(t){return this.getProjection()&&t&&!r1(this.getProjection(),t)?!1:n.prototype.getOpaque.call(this,t)},e.prototype.getTileGridForProjection=function(t){var r=this.getProjection();if(this.tileGrid&&(!r||r1(r,t)))return this.tileGrid;var i=Vi(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=qN(t)),this.tileGridForProjection[i]},e.prototype.getTileCacheForProjection=function(t){var r=this.getProjection();if(!r||r1(r,t))return this.tileCache;var i=Vi(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new X8(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,r,i,o,a,s){var d=[t,r,i],f=this.getTileCoordForTileUrlFunction(d,a),C=f?this.tileUrlFunction(f,o,a):void 0,O=new this.tileClass(d,C!==void 0?yr.IDLE:yr.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return O.key=s,O.addEventListener(Gi.CHANGE,this.handleTileChange.bind(this)),O},e.prototype.getTile=function(t,r,i,o,a){var s=this.getProjection();if(!s||!a||r1(s,a))return this.getTileInternal(t,r,i,o,s||a);var d=this.getTileCacheForProjection(a),f=[t,r,i],C=void 0,O=WN(f);d.containsKey(O)&&(C=d.get(O));var E=this.getKey();if(C&&C.key==E)return C;var P=this.getTileGridForProjection(s),D=this.getTileGridForProjection(a),Q=this.getTileCoordForTileUrlFunction(f,a),V=new YN(s,P,a,D,f,Q,this.getTilePixelRatio(o),this.getGutter(),(function($,N,Z,se){return this.getTileInternal($,N,Z,se,s)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return V.key=E,C?(V.interimTile=C,V.refreshInterimChain(),d.replace(O,V)):d.set(O,V),V},e.prototype.getTileInternal=function(t,r,i,o,a){var s=null,d=Fv(t,r,i),f=this.getKey();if(!this.tileCache.containsKey(d))s=this.createTile_(t,r,i,o,a,f),this.tileCache.set(d,s);else if(s=this.tileCache.get(d),s.key!=f){var C=s;s=this.createTile_(t,r,i,o,a,f),C.getState()==yr.IDLE?s.interimTile=C.interimTile:s.interimTile=C,s.refreshInterimChain(),this.tileCache.replace(d,s)}return s},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,r){{var i=Zs(t);if(i){var o=Vi(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}}},e}(XN);function TAe(n,e){n.getImage().src=e}var JN=function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]
Line truncated
|
||||
* In categorical functions, when the feature value does not match any of the stop domain values.
|
||||
* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.
|
||||
* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color).
|
||||
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:Ece,expression:Oce,expression_name:Bce,fog:Ice,light:kce,projection:Tce,terrain:Kce,paint:Pce,paint_fill:Dce,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",android:"7.0.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.","sdk-support":{"basic functionality":{js:"2.10.0",android:"10.7.0",ios:"10.7.0"}}},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the moLine truncated
|
||||
`," "],tde=["{","}","|","\\","^","`"].concat(ede),NO=["'"].concat(tde),tP=["%","/","?",";","#"].concat(NO),nP=["/","?","#"],nde=255,rP=/^[+a-z0-9A-Z_-]{0,63}$/,rde=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ide={javascript:!0,"javascript:":!0},WO={javascript:!0,"javascript:":!0},Wy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},GO=vb;function ode(n,e,t){if(n&&Dp.isObject(n)&&n instanceof Gp)return n;var r=new Gp;return r.parse(n,e,t),r}Gp.prototype.parse=function(n,e,t){if(!Dp.isString(n))throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var r=n.indexOf("?"),i=r!==-1&&r<n.indexOf("#")?"?":"#",o=n.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),n=o.join(i);var s=n;if(s=s.trim(),!t&&n.split("#").length===1){var d=Jce.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],e?this.query=GO.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var f=Zce.exec(s);if(f){f=f[0];var C=f.toLowerCase();this.protocol=C,s=s.substr(f.length)}if(t||f||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var O=s.substr(0,2)==="//";O&&!(f&&WO[f])&&(s=s.substr(2),this.slashes=!0)}if(!WO[f]&&(O||f&&!Wy[f])){for(var E=-1,P=0;P<nP.length;P++){var D=s.indexOf(nP[P]);D!==-1&&(E===-1||D<E)&&(E=D)}var Q,V;E===-1?V=s.lastIndexOf("@"):V=s.lastIndexOf("@",E),V!==-1&&(Q=s.slice(0,V),s=s.slice(V+1),this.auth=decodeURIComponent(Q)),E=-1;for(var P=0;P<tP.length;P++){var D=s.indexOf(tP[P]);D!==-1&&(E===-1||D<E)&&(E=D)}E===-1&&(E=s.length),this.host=s.slice(0,E),s=s.slice(E),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var se=N[P];if(se&&!se.match(rP)){for(var pe="",fe=0,X=se.length;fe<X;fe++)se.charCodeAt(fe)>127?pe+="x":pe+=se[fe];if(!pe.match(rP)){var oe=N.slice(0,P),Ce=N.slice(P+1),we=se.match(rde);we&&(oe.push(we[1]),Ce.unshift(we[2])),Ce.length&&(s="/"+Ce.join(".")+s),this.hostname=oe.join(".");break}}}this.hostname.length>nde?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=Vce.toASCII(this.hostname));var Te=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!ide[C])for(var P=0,Z=NO.length;P<Z;P++){var he=NO[P];if(s.indexOf(he)!==-1){var Qe=encodeURIComponent(he);Qe===he&&(Qe=escape(he)),s=s.split(he).join(Qe)}}var ye=s.indexOf("#");ye!==-1&&(this.hash=s.substr(ye),s=s.slice(0,ye));var gt=s.indexOf("?");if(gt!==-1?(this.search=s.substr(gt),this.query=s.substr(gt+1),e&&(this.query=GO.parse(this.query)),s=s.slice(0,gt)):e&&(this.search="",this.query={}),s&&(this.pathname=s),Wy[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Te=this.pathname||"",yt=this.search||"";this.path=Te+yt}return this.href=this.format(),this};Gp.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var e=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=n+this.host:this.hostname&&(i=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&Dp.isObject(this.query)&&Object.keys(this.query).length&&(o=GO.stringify(this.query));var a=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||Wy[e])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),e+i+t+a+r};Gp.prototype.resolve=function(n){return this.resolveObject(ode(n,!1,!0)).format()};Gp.prototype.resolveObject=function(n){if(Dp.isString(n)){var e=new Gp;e.parse(n,!1,!0),n=e}for(var t=new Gp,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=n.hash,n.href==="")return t.href=t.format(),t;if(n.slashes&&!n.protocol){for(var a=Object.keys(n),s=0;s<a.length;s++){var d=a[s];d!=="protocol"&&(t[d]=n[d])}return Wy[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(n.protocol&&n.protocol!==t.protocol){if(!Wy[n.protocol]){for(var f=Object.keys(n),C=0;C<f.length;C++){var O=f[C];t[O]=n[O]}return t.href=t.format(),t}if(t.protocol=n.protocol,!n.host&&!WO[n.protocol]){for(var Z=(n.pathname||"").split("/");Z.length&&!(n.host=Z.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),t.pathname=Z.join("/")}else t.pathname=n.pathname;if(t.search=n.search,t.query=n.query,t.host=n.host||"",t.auth=n.auth,t.hostname=n.hostname||n.host,t.port=n.port,t.pathname||t.search){var E=t.pathname||"",P=t.search||"";t.path=E+P}return t.slashes=t.slashes||n.slashes,t.href=t.format(),t}var D=t.pathname&&t.pathname.charAt(0)==="/",Q=n.host||n.pathname&&n.pathname.charAt(0)===
Line truncated
|
||||
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
|
||||
and paste the contents of this message in the report.
|
||||
Thank you!
|
||||
Filter Expression:
|
||||
${JSON.stringify(t,null,2)}
|
||||
`)}const i=iW[`filter_${e}`],o=J4(r,i);let a=null;if(o.result==="error")throw new Error(o.value.map(C=>`${C.key}: ${C.message}`).join(", "));a=(C,O,E)=>o.value.evaluate(C,O,{},E);let s=null,d=null;if(r!==t){const C=J4(t,i);if(C.result==="error")throw new Error(C.value.map(O=>`${O.key}: ${O.message}`).join(", "));s=(O,E,P,D,Q)=>C.value.evaluate(O,E,{},P,void 0,void 0,D,Q),d=!Kw(C.value.expression)}a=a;const f=LW(r);return{filter:a,dynamicFilter:s||void 0,needGeometry:f,needFeature:!!d}}function Ihe(n){if(!Yy(n))return n;let e=ZO(n);return FW(e),e=DW(e),e}function DW(n){if(!Array.isArray(n))return n;const e=Khe(n);return e===!0?e:e.map(t=>DW(t))}function FW(n){let e=!1;const t=[];if(n[0]==="case"){for(let r=1;r<n.length-1;r+=2)e=e||Yy(n[r]),t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="match"){e=e||Yy(n[1]);for(let r=2;r<n.length-1;r+=2)t.push(n[r+1]);t.push(n[n.length-1])}else if(n[0]==="step"){e=e||Yy(n[1]);for(let r=1;r<n.length-1;r+=2)t.push(n[r+1])}e&&(n.length=0,n.push("any",...t));for(let r=1;r<n.length;r++)FW(n[r])}function Yy(n){if(!Array.isArray(n))return!1;if(khe(n[0]))return!0;for(let e=1;e<n.length;e++){const t=n[e];if(Yy(t))return!0}return!1}function khe(n){return n==="pitch"||n==="distance-from-center"}const The=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Khe(n){if(The.has(n[0]))for(let e=1;e<n.length;e++){const t=n[e];if(Yy(t))return!0}return n}function Phe(n,e){return n<e?-1:n>e?1:0}function LW(n){if(!Array.isArray(n))return!1;if(n[0]==="within")return!0;for(let e=1;e<n.length;e++)if(LW(n[e]))return!0;return!1}function e5(n){if(!n)return!0;const e=n[0];return n.length<=1?e!=="any":e==="=="?l6(n[1],n[2],"=="):e==="!="?j2(l6(n[1],n[2],"==")):e==="<"||e===">"||e==="<="||e===">="?l6(n[1],n[2],e):e==="any"?Dhe(n.slice(1)):e==="all"?["all"].concat(n.slice(1).map(e5)):e==="none"?["all"].concat(n.slice(1).map(e5).map(j2)):e==="in"?fP(n[1],n.slice(2)):e==="!in"?j2(fP(n[1],n.slice(2))):e==="has"?pP(n[1]):e==="!has"?j2(pP(n[1])):e==="within"?n:!0}function l6(n,e,t){switch(n){case"$type":return[`filter-type-${t}`,e];case"$id":return[`filter-id-${t}`,e];default:return[`filter-${t}`,n,e]}}function Dhe(n){return["any"].concat(n.map(e5))}function fP(n,e){if(e.length===0)return!1;switch(n){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(t=>typeof t!=typeof e[0])?["filter-in-large",n,["literal",e.sort(Phe)]]:["filter-in-small",n,["literal",e]]}}function pP(n){switch(n){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",n]}}function j2(n){return["!",n]}var Fhe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Lhe(n,e){const t={};for(const r in n)r!=="ref"&&(t[r]=n[r]);return Fhe.forEach(r=>{r in e&&(t[r]=e[r])}),t}function Uhe(n){n=n.slice();const e=Object.create(null);for(let t=0;t<n.length;t++)e[n[t].id]=n[t];for(let t=0;t<n.length;t++)"ref"in n[t]&&(n[t]=Lhe(n[t],e[n[t].ref]));return n}function Rhe(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var zhe={};(function(n){var e=function(){var t=function(V,$,N,Z){for(N=N||{},Z=V.length;Z--;N[V[Z]]=$);return N},r=[1,12],i=[1,13],o=[1,9],a=[1,10],s=[1,11],d=[1,14],f=[1,15],C=[14,18,22,24],O=[18,22],E=[22,24],P={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function($,N,Z,se,pe,fe,X){var oe=fe.length-1;switch(pe){case 1:this.$=new String($.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number($),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=fe[oe-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=fe[oe-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[fe[oe-2],fe[oe]];break;case 16:this.$={},this.$[fe[oe][0]]=fe[oe][1];break;case 17:this.$=fe[oe-2],fe[oe-2][fe[oe][0]]=fe[oe][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[fe[oe]];break;case 21:this.$=fe[oe-2],fe[oe-2].push(fe[oe]);break}},table:[{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,12:1,13:2,15:7,16:8,17:d,23:f},{1:[3]},{14:[1,16]},t(C,[2,7]),t(C,[2,8]),t(C,[2,9]),t(C,[2,10]),t(C,[2,11]),t(C,[2,12]),t(C,[2,3]),t(C,[2,4]),t(C,[2,5]),t([14,18,21,22,24],[2,1]),t(C,[2,2]),{3:20,4:r,18:[1,17],19:18,20:19},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:23,15:7,16:8,17:d,23:f,24:[1,21],25:22},{1:[2,6]},t(C,[2,13]),{18:[1,24],22:[1,25]},t(O,[2,16]),{21:[1,26]},t(C,[2,18]),{22:[1,28],24:[1,27]},t(E,[2,20]),t(C,[2,14]),{3:20,4:r,20:29},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:30,15:7,16:8,17:d,23:f},t(C,[2,19]),{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:a,11:s,13:31,15:7,16:8,17:d,23:f},t(O,[2,17]),t(O,[2,15]),t(E,[2,21])],defaultActions:{16:[2,6]},parseError:function($,N){if(N.recoverable)this.trace($);else throw new Error($)},parse:function($){var N=this,Z=[0],se=[null],pe=[],fe=this.table,X="",oe=0,Ce=0,we=2,Te=1,Pe=pe.slice.call(arguments,1),he=Object.create(this.lexer),Qe={yy:{}};for(var ye in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ye)&&(Qe.yy[ye]=this.yy[ye]);he.setInput($,Qe.yy),Qe.yy.lexer=he,Qe.yy.parser=this,typeof he.yylloc>"u"&&(he.yylloc={});var gt=he.yylloc;pe.push(gt);var yt=he.options&&he.options.ranges;typeof Qe.yy.parseError=="function"?this.parseError=Qe.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function st(){var ge;return ge=he.lex()||Te,typeof ge!="number"&&(ge=N.symbols_[ge]||ge),ge}for(var ft,Re,He,Xe,Jt={},Vt,bt,Yt,qt;;){if(Re=Z[Z.length-1],this.defaultActions[Re]?He=this.defaultActions[Re]:((ft===null||typeof ft>"u")&&(ft=st()),He=fe[Re]&&fe[Re][ft]),typeof He>"u"||!He.length||!He[0]){var ke="";qt=[];for(Vt in fe[Re])this.terminals_[Vt]&&Vt>we&&qt.push("'"+this.terminals_[Vt]+"'");he.showPosition?ke="Parse error on line "+(oe+1)+`:
|
||||
`+he.showPosition()+`
|
||||
Expecting `+qt.join(", ")+", got '"+(this.terminals_[ft]||ft)+"'":ke="Parse error on line "+(oe+1)+": Unexpected "+(ft==Te?"end of input":"'"+(this.terminals_[ft]||ft)+"'"),this.parseError(ke,{text:he.match,token:this.terminals_[ft]||ft,line:he.yylineno,loc:gt,expected:qt})}if(He[0]instanceof Array&&He.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Re+", token: "+ft);switch(He[0]){case 1:Z.push(ft),se.push(he.yytext),pe.push(he.yylloc),Z.push(He[1]),ft=null,Ce=he.yyleng,X=he.yytext,oe=he.yylineno,gt=he.yylloc;break;case 2:if(bt=this.productions_[He[1]][1],Jt.$=se[se.length-bt],Jt._$={first_line:pe[pe.length-(bt||1)].first_line,last_line:pe[pe.length-1].last_line,first_column:pe[pe.length-(bt||1)].first_column,last_column:pe[pe.length-1].last_column},yt&&(Jt._$.range=[pe[pe.length-(bt||1)].range[0],pe[pe.length-1].range[1]]),Xe=this.performAction.apply(Jt,[X,Ce,oe,Qe.yy,He[1],se,pe].concat(Pe)),typeof Xe<"u")return Xe;bt&&(Z=Z.slice(0,-1*bt*2),se=se.slice(0,-1*bt),pe=pe.slice(0,-1*bt)),Z.push(this.productions_[He[1]][0]),se.push(Jt.$),pe.push(Jt._$),Yt=fe[Z[Z.length-2]][Z[Z.length-1]],Z.push(Yt);break;case 3:return!0}}return!0}},D=function(){var V={EOF:1,parseError:function(N,Z){if(this.yy.parser)this.yy.parser.parseError(N,Z);else throw new Error(N)},setInput:function($,N){return this.yy=N||this.yy||{},this._input=$,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var $=this._input[0];this.yytext+=$,this.yyleng++,this.offset++,this.match+=$,this.matched+=$;var N=$.match(/(?:\r\n?|\n).*/g);return N?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),$},unput:function($){var N=$.length,Z=$.split(/(?:\r\n?|\n)/g);this._input=$+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-N),this.offset-=N;var se=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),Z.length-1&&(this.yylineno-=Z.length-1);var pe=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:Z?(Z.length===se.length?this.yylloc.first_column:0)+se[se.length-Z.length].length-Z[0].length:this.yylloc.first_column-N},this.options.ranges&&(this.yylloc.range=[pe[0],pe[0]+this.yyleng-N]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function($){this.unput(this.match.slice($))},pastInput:function(){var $=this.matched.substr(0,this.matched.length-this.match.length);return($.length>20?"...":"")+$.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var $=this.match;return $.length<20&&($+=this._input.substr(0,20-$.length)),($.substr(0,20)+($.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var $=this.pastInput(),N=new Array($.length+1).join("-");return $+this.upcomingInput()+`
|
||||
`+N+"^"},test_match:function($,N){var Z,se,pe;if(this.options.backtrack_lexer&&(pe={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(pe.yylloc.range=this.yylloc.range.slice(0))),se=$[0].match(/(?:\r\n?|\n).*/g),se&&(this.yylineno+=se.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:se?se[se.length-1].length-se[se.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+$[0].length},this.yytext+=$[0],this.match+=$[0],this.matches=$,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice($[0].length),this.matched+=$[0],Z=this.performAction.call(this,this.yy,this,N,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),Z)return Z;if(this._backtrack){for(var fe in pe)this[fe]=pe[fe];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var $,N,Z,se;this._more||(this.yytext="",this.match="");for(var pe=this._currentRules(),fe=0;fe<pe.length;fe++)if(Z=this._input.match(this.rules[pe[fe]]),Z&&(!N||Z[0].length>N[0].length)){if(N=Z,se=fe,this.options.backtrack_lexer){if($=this.test_match(Z,pe[fe]),$!==!1)return $;if(this._backtrack){N=!1;continue}else return!1}else if(!this.options.flex)break}return N?($=this.test_match(N,pe[se]),$!==!1?$:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var N=this.next();return N||this.lex()},begin:function(N){this.conditionStack.push(N)},popState:function(){var N=this.conditionStack.length-1;return N>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(N){return N=this.conditionStack.length-1-Math.abs(N||0),N>=0?this.conditionStack[N]:"INITIAL"},pushState:function(N){this.begin(N)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(N,Z,se,pe){switch(se){case 0:break;case 1:return 6;case 2:return Z.yytext=Z.yytext.substr(1,Z.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return V}();P.lexer=D;function Q(){this.yy={}}return Q.prototype=P,P.Parser=Q,new Q}();typeof Rhe<"u"&&(n.parser=e,n.Parser=e.Parser,n.parse=function(){return e.parse.apply(e,arguments)})})(zhe);const UW={StyleExpression:TW,isExpression:KW,isExpressionFilter:OI,createExpression:J4,createPropertyExpression:PW,normalizePropertyExpression:vhe,ZoomConstantExpression:qO,ZoomDependentExpression:HO,StylePropertyFunction:Dw},RW={convertFunction:bhe,createFunction:wI,isFunction:xI};var zW=typeof Object.assign=="function"?Object.assign:function(n,e){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(o!=null)for(var a in o)o.hasOwnProperty(a)&&(t[a]=o[a])}return t};function u6(n){return n*Math.PI/180}var vv=function(){for(var n=[],e=78271.51696402048;n.length<=24;e/=2)n.push(e);return n}();function jW(n,e){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(n,e);var t=document.createElement("canvas");return t.width=n,t.height=e,t}function jhe(n,e){for(var t=0,r=e.length;t<r;++t){var i=e[t];if(i<n&&t+1<r){var o=e[t]/e[t+1];return t+Math.log(e[t]/n)/Math.log(o)}}return r-1}var Nhe=Array(256).join(" ");function XO(n,e){if(e>=.05){for(var t="",r=n.split(`
|
||||
`),i=Nhe.slice(0,Math.round(e/.1)),o=0,a=r.length;o<a;++o)o>0&&(t+=`
|
||||
`),t+=r[o].split("").join(i);return t}return n}var A6;function NW(){return A6||(A6=jW(1,1).getContext("2d")),A6}function G0(n,e){return NW().measureText(n).width+(n.length-1)*e}var JO={};KO&&Oo(KO,Gi.CLEAR,function(){JO={}});function eB(n,e,t,r){if(n.indexOf(`
|
||||
`)!==-1){for(var i=n.split(`
|
||||
`),o=[],a=0,s=i.length;a<s;++a)o.push(eB(i[a],e,t,r));return o.join(`
|
||||
`)}var d=t+","+e+","+n+","+r,f=JO[d];if(!f){var C=n.split(" ");if(C.length>1){var O=NW();O.font=e;for(var E=O.measureText("M").width,P=E*t,D="",o=[],a=0,s=C.length;a<s;++a){var Q=C[a],V=D+(D?" ":"")+Q;G0(V,r)<=P?D=V:(D&&o.push(D),D=Q)}D&&o.push(D);for(var a=0,s=o.length;a<s&&s>1;++a){var $=o[a];if(G0($,r)<P*.35){var N=a>0?G0(o[a-1],r):1/0,Z=a<s-1?G0(o[a+1],r):1/0;o.splice(a,1),s-=1,N<Z?(o[a-1]+=" "+$,a-=1):o[a]=$+" "+o[a]}}for(var a=0,s=o.length-1;a<s;++a){var se=o[a],pe=o[a+1];if(G0(se,r)>P*.7&&G0(pe,r)<P*.6){var fe=se.split(" "),X=fe.pop();G0(X,r)<P*.2&&(o[a]=fe.join(" "),o[a+1]=X+" "+pe),s-=1}}f=o.join(`
|
||||
`)}else f=n;f=XO(f,r),JO[d]=f}return f}var Whe=RW.isFunction,Ghe=RW.convertFunction,Qhe=UW.isExpression,$he=UW.createPropertyExpression,Yhe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},qhe={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]},Hhe=function(n,e){var t=$he(n,e);if(t.result==="error")throw new Error(t.value.map(function(r){return"".concat(r.key,": ").concat(r.message)}).join(", "));return t.value},tB={},t5={zoom:0},N2,c6;function Li(n,e,t,r,i,o){var a=n.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[a]||(o[a]={});var s=o[a];if(!s[t]){var d=(n[e]||tB)[t],f=iW["".concat(e,"_").concat(n.type)][t];d===void 0&&(d=f.default);var C=Qhe(d);if(!C&&Whe(d)&&(d=Ghe(d,f),C=!0),C){var O=Hhe(d,f);s[t]=O.evaluate.bind(O)}else f.type=="color"&&(d=tu.parse(d)),s[t]=function(){return d}}return t5.zoom=r,s[t](t5,i)}function Vhe(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=Bhe(e).filter),t5.zoom=r,i[n](t5,t)}function Om(n,e){if(n){if(n.a===0||e===0)return;var t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}var Zhe=/^([^]*)\{(.*)\}([^]*)$/;function d6(n,e){var t;do if(t=n.match(Zhe),t){var r=e[t[2]]||"";n=t[1]+r+t[3]}while(t);return n}function Xhe(n,e,t,r,i,o,a){if(r===void 0&&(r=vv),typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");var s,d;if(o){if(typeof Image<"u"){var f=new Image;f.crossOrigin="anonymous",f.onload=function(){s=f,d=[f.width,f.height],n.changed(),f.onload=null},f.src=o}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){var C=self;C.postMessage({action:"loadImage",src:o}),C.addEventListener("message",function(gt){gt.data.action==="imageLoaded"&>.data.src===o&&(s=gt.data.image,d=[s.width,s.height])})}}for(var O=Uhe(e.layers),E={},P=[],D={},Q={},V={},$={},N,Z=0,se=O.length;Z<se;++Z){var pe=O[Z],fe=pe.id;if(typeof t=="string"&&pe.source==t||t.indexOf(fe)!==-1){var X=pe["source-layer"];if(!N){N=pe.source;var oe=e.sources[N];if(!oe)throw new Error('Source "'.concat(N,'" is not defined'));var Ce=oe.type;if(Ce!=="vector"&&Ce!=="geojson")throw new Error('Source "'.concat(N,'" is not of type "vector" or "geojson", but "').concat(Ce,'"'))}var we=E[X];we||(we=[],E[X]=we),we.push({layer:pe,index:Z}),P.push(fe)}}var Te=new i_,Pe=new _y,he=[],Qe=function(ye,gt){var yt=ye.getProperties(),st=E[yt.layer];if(st){var ft=r.indexOf(gt);ft==-1&&(ft=jhe(gt,r));for(var Re=Yhe[ye.getGeometry().getType()],He={properties:yt,type:Re},Xe=-1,Jt=function(Yt,qt){var ke=st[Yt],ge=ke.layer,Se=ge.id,ze=ge.layout||tB,it=ge.paint||tB;if(ze.visibility==="none"||"minzoom"in ge&&ft<ge.minzoom||"maxzoom"in ge&&ft>=ge.maxzoom)return"continue";var ot=ge.filter;if(!ot||Vhe(Se,ot,He,ft,$)){var St=void 0,Rt=void 0,zt=void 0,mt=void 0,or=void 0,gn=void 0,yn=ke.index;if(Re==3&&(ge.type=="fill"||ge.type=="fill-extrusion"))if(Rt=Li(ge,"paint",ge.type+"-opacity",ft,He,V),ge.type+"-pattern"in it){var tr=Li(ge,"paint",ge.type+"-pattern",ft,He,V);if(tr){var hr=typeof tr=="string"?d6(tr,yt):tr.toString();if(s&&i&&i[hr]){++Xe,gn=he[Xe],(!gn||!gn.getFill()||gn.getStroke()||gn.getText())&&(gn=new J0({fill:new _y}),he[Xe]=gn),zt=gn.getFill(),gn.setZIndex(yn);var Er=hr+"."+Rt,$r=Q[Er];if(!$r){var vr=i[hr],bi=jW(vr.width,vr.height),Ee=bi.getContext("2d");Ee.globalAlpha=Rt,Ee.drawImage(s,vr.x,vr.y,vr.width,vr.height,0,0,vr.width,vr.height),$r=Ee.createPattern(bi,"repeat"),Q[Er]=$r}zt.setColor($r)}}}else St=Om(Li(ge,"paint",ge.type+"-color",ft,He,V),Rt),ge.type+"-outline-color"in it&&(or=Om(Li(ge,"paint",ge.type+"-outline-color",ft,He,V),Rt)),or||(or=St),(St||or)&&(++Xe,gn=he[Xe],(!gn||St&&!gn.getFill()||!St&&gn.getFill()||or&&!gn.getStroke()||!or&&gn.getStroke()||gn.getText())&&(gn=new J0({fill:St?new _y:void 0,stroke:or?new i_:void 0}),he[Xe]=gn),St&&(zt=gn.getFill(),zt.setColor(St)),or&&(mt=gn.getStroke(),mt.setColor(or),mt.setWidth(.5)),gn.setZIndex(yn));if(Re!=1&&ge.type=="line"){St=!("line-pattern"in it)&&"line-color"in it?Om(Li(ge,"paint","line-color",ft,He,V),Li(ge,"paint","line-opacity",ft,He,V)):void 0;var ee=Li(ge,"paint","line-width",ft,He,V);St&&ee>0&&(++Xe,gn=he[Xe],(!gn||!gn.getStroke()||gn.getFill()||gn.getText())&&(gn=new J0({stroke:new i_}),he[Xe]=gn),mt=gn.getStroke(),mt.setLineCap(Li(ge,"layout","line-cap",ft,He,V)),mt.setLineJoin(Li(ge,"layout","line-join",ft,He,V)),mt.setMiterLimit(Li(ge,"layout","line-miter-limit",ft,He,V)),mt.setColor(St),mt.setWidth(ee),mt.setLineDash(it["line-dasharray"]?Li(ge,"paint","line-dasharray",ft,He,V).map(function(oi){return oi*ee}):null),gn.setZIndex(yn))}var H=!1,Ke=null,At=0,Bt=void 0,kt=void 0,Ft=void 0;if((Re==1||Re==2)&&"icon-image"in ze){var fn=Li(ge,"layout","icon-image",ft,He,V);if(fn){Bt=typeof fn=="string"?d6(fn,yt):fn.toString();v
Line truncated
|
||||
`)return oi.push(`
|
||||
`,""),oi;if(Re==2){oi.push(XO(Ga,ho),Fr);return}Ga=eB(Ga,Fr,li,ho).split(`
|
||||
`);for(var Ci=0,Qa=Ga.length;Ci<Qa;++Ci)Ci>0&&oi.push(`
|
||||
`,""),oi.push(Ga[Ci],Fr);return oi},[]):ar=d6(Wa,yt).trim(),Rt=Li(ge,"paint","text-opacity",ft,He,V)}if(ar&&Rt&&!Ft){H||(++Xe,gn=he[Xe],(!gn||!gn.getText()||gn.getFill()||gn.getStroke())&&(gn=new J0,he[Xe]=gn),gn.setImage(void 0),gn.setGeometry(void 0)),gn.getText()||gn.setText(Ke||new Uue({padding:[2,2,2,2]})),Ke=gn.getText();var Ia=ze["text-transform"];Ia=="uppercase"?ar=Array.isArray(ar)?ar.map(function(ui,na){return na%2?ui:ui.toUpperCase()}):ar.toUpperCase():Ia=="lowercase"&&(ar=Array.isArray(ar)?ar.map(function(ui,na){return na%2?ui:ui.toLowerCase()}):ar.toLowerCase());var Oi=Array.isArray(ar)?ar:Re==2?XO(ar,ho):eB(ar,hi,li,ho);Ke.setText(Oi),Ke.setFont(hi),Ke.setRotation(u6(Li(ge,"layout","text-rotate",ft,He,V)));var as=Li(ge,"layout","text-anchor",ft,He,V),Fe=H||Re==1?"point":Li(ge,"layout","symbol-placement",ft,He,V);Ke.setPlacement(Fe),Ke.setOverflow(Fe==="point");var vi=Li(ge,"paint","text-halo-width",ft,He,V),Qn=Li(ge,"layout","text-offset",ft,He,V),oo=Li(ge,"paint","text-translate",ft,He,V),_o=0,zi=0;if(Fe=="point"){var _e="center";as.indexOf("left")!==-1?(_e="left",zi=vi):as.indexOf("right")!==-1&&(_e="right",zi=-vi),Ke.setTextAlign(_e);var Je=Li(ge,"layout","text-rotation-alignment",ft,He,V);Ke.setRotateWithView(Je=="map")}else Ke.setMaxAngle(u6(Li(ge,"layout","text-max-angle",ft,He,V))*ar.length/Oi.length),Ke.setTextAlign(),Ke.setRotateWithView(!1);var Zt="middle";as.indexOf("bottom")==0?(Zt="bottom",_o=-vi-.5*(Ri-1)*ro):as.indexOf("top")==0&&(Zt="top",_o=vi+.5*(Ri-1)*ro),Ke.setTextBaseline(Zt),Ke.setOffsetX(Qn[0]*ro+zi+oo[0]),Ke.setOffsetY(Qn[1]*ro+_o+oo[1]),Pe.setColor(Om(Li(ge,"paint","text-color",ft,He,V),Rt)),Ke.setFill(Pe);var ln=Om(Li(ge,"paint","text-halo-color",ft,He,V),Rt);if(ln){Te.setColor(ln),vi*=2;var Lt=.5*ro;Te.setWidth(vi<=Lt?vi:Lt),Ke.setStroke(Te)}else Ke.setStroke(void 0);var wn=Li(ge,"layout","text-padding",ft,He,V),fr=Ke.getPadding();wn!==fr[0]&&(fr[0]=wn,fr[1]=wn,fr[2]=wn,fr[3]=wn),gn.setZIndex(yn)}}},Vt=0,bt=st.length;Vt<bt;++Vt)Jt(Vt);if(Xe>-1)return he.length=Xe+1,he}};return n.setStyle(Qe),n.set("mapbox-source",N),n.set("mapbox-layers",P),Qe}var WW={exports:{}};(function(){var n;WW.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return n},getLink:function(e){return"https://fonts.google.com/specimen/"+e.replace(/( )/g,"+")},normalizeName:function(e){return e}},n=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Enga
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=i(o,r(s)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)e.call(o,s)&&o[s]&&(a=i(a,s));return a}function i(o,a){return a?o?o+" "+a:o+a:o}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(YW);var mfe=YW.exports;const Yf=Ba(mfe);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"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return i1=function(){return a},a}i1();class gfe extends Sn.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]++,G.jsx(Ore,{style:e})):(i1().b[0][1]++,G.jsx(Ere,{style:e}))}}function wy(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return wy=function(){return a},a}wy();class yfe extends Sn.Component{render(){return wy().f[0]++,wy().s[0]++,G.jsx("li",{className:"maputnik-layer-list-group",children:G.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(wy().f[1]++,wy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[G.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),G.jsx("span",{className:"maputnik-space"}),G.jsx(gfe,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function xb(){return xb=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},xb.apply(null,arguments)}function vfe(n){if(Array.isArray(n))return n}function Cfe(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,o,a,s=[],d=!0,f=!1;try{if(o=(t=t.call(n)).next,e!==0)for(;!(d=(r=o.call(t)).done)&&(s.push(r.value),s.length!==e);d=!0);}catch(C){f=!0,i=C}finally{try{if(!d&&t.returnLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HW(n,e){return vfe(n)||Cfe(n,e)||qW(n,e)||_fe()}function Cv(n){"@babel/helpers - typeof";return Cv=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},Cv(n)}function bfe(n,e){if(Cv(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Cv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function VW(n){var e=bfe(n,"string");return Cv(e)=="symbol"?e:e+""}function Ea(n,e,t){return(e=VW(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function f6(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ea(n,i,t[i])})}return n}function Xb(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function xfe(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,VW(r.key),r)}}function Jb(n,e,t){return e&&xfe(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function go(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function BI(n,e){if(e&&(Cv(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return go(n)}function wb(n){return wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wb(n)}function iB(n,e){return iB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},iB(n,e)}function II(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&iB(n,e)}var wfe=function(n,e,t,r,i,o,a,s){if(!n){var d;if(e===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[t,r,i,o,a,s],C=0;d=new Error(e.replace(/%s/g,function(){return f[C++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},Mfe=wfe;const z1=Ba(Mfe);function Sfe(n){if(Array.isArray(n))return rB(n)}function Efe(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Ofe(){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 Bfe(n){return Sfe(n)||Efe(n)||qW(n)||Ofe()}var Ife=function(){function n(){Xb(this,n),Ea(this,"refs",{})}return Jb(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(kfe)}}]),n}();function kfe(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function ZW(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var Ng={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},XW=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 G2(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function Q2(n,e){n.style["".concat(XW,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function p6(n,e){n.style["".concat(XW,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function s_(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function xP(n,e,t){return Math.max(n,Math.min(t,e))}function My(n){return n.substr(-2)==="px"?parseFloat(n):0}function Tfe(n){var e=window.getComputedStyle(n);return{bottom:My(e.marginBottom),left:My(e.marginLeft),right:My(e.marginRight),top:My(e.marginTop)}}function kI(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function m6(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function zC(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 Kfe(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function E3(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:E3(n.parentNode,e,r)}}function Pfe(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function wP(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,o=e,a="px";if(typeof e=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);z1(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),o=parseFloat(e),a=s[1]}return z1(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",e),a==="%"&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function Dfe(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];z1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=HW(i,2),a=o[0],s=o[1];return[wP({height:e,lockOffset:a,width:t}),wP({height:e,lockOffset:s,width:t})]}function Ffe(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function JW(n){return n instanceof HTMLElement?Ffe(n)?n:JW(n.parentNode):null}function Lfe(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:My(e.gridColumnGap),y:My(e.gridRowGap)}:{x:0,y:0}}var Q0={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},o1={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ufe(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=Bfe(r.querySelectorAll(e));return i.forEach(function(o,a){if(o.type!=="file"&&(o.value=t[a].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===o1.Canvas&&t[a].width>0&&t[a].height>0){var s=o.getContext("2d");s.drawImage(t[a],0,0)}}),r}function Rfe(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){II(o,i);function o(){var a,s;Xb(this,o);for(var d=arguments.length,f=new Array(d),C=0;C<d;C++)f[C]=arguments[C];return s=BI(this,(a=wb(o)).call.apply(a,[this].concat(f))),Ea(go(go(s)),"wrappedInstance",Gn.createRef()),s}return Jb(o,[{key:"componentDidMount",value:function(){var s=f0.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return z1(r.with
Line truncated
|
||||
* tabbable 6.2.0
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var iG=["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])"],i5=iG.join(","),oG=typeof Element>"u",j1=oG?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,o5=!oG&&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},a5=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),o=i===""||i==="true",a=o||t&&e&&n(e.parentNode);return a},Xfe=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},aG=function(e,t,r){if(a5(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(i5));return t&&j1.call(e,i5)&&i.unshift(e),i=i.filter(r),i},sG=function n(e,t,r){for(var i=[],o=Array.from(e);o.length;){var a=o.shift();if(!a5(a,!1))if(a.tagName==="SLOT"){var s=a.assignedElements(),d=s.length?s:a.children,f=n(d,!0,r);r.flatten?i.push.apply(i,f):i.push({scopeParent:a,candidates:f})}else{var C=j1.call(a,i5);C&&r.filter(a)&&(t||!e.includes(a))&&i.push(a);var O=a.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(a),E=!a5(O,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(a));if(O&&E){var P=n(O===!0?a.children:O.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:a,candidates:P})}else o.unshift.apply(o,a.children)}}return i},lG=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Fm=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Xfe(e))&&!lG(e)?0:e.tabIndex},Jfe=function(e,t){var r=Fm(e);return r<0&&t&&!lG(e)?0:r},epe=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},uG=function(e){return e.tagName==="INPUT"},tpe=function(e){return uG(e)&&e.type==="hidden"},npe=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},rpe=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},ipe=function(e){if(!e.name)return!0;var t=e.form||o5(e),r=function(s){return t.querySelectorAll('input[type="radio"][name="'+s+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var o=rpe(i,e.form);return!o||o===e},ope=function(e){return uG(e)&&e.type==="radio"},ape=function(e){return ope(e)&&!ipe(e)},spe=function(e){var t,r=e&&o5(e),i=(t=r)===null||t===void 0?void 0:t.host,o=!1;if(r&&r!==e){var a,s,d;for(o=!!((a=i)!==null&&a!==void 0&&(s=a.ownerDocument)!==null&&s!==void 0&&s.contains(i)||e!=null&&(d=e.ownerDocument)!==null&&d!==void 0&&d.contains(e));!o&&i;){var f,C,O;r=o5(i),i=(f=r)===null||f===void 0?void 0:f.host,o=!!((C=i)!==null&&C!==void 0&&(O=C.ownerDocument)!==null&&O!==void 0&&O.contains(i))}}return o},SP=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},lpe=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=j1.call(e,"details>summary:first-of-type"),a=o?e.parentElement:e;if(j1.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var s=e;e;){var d=e.parentElement,f=o5(e);if(d&&!d.shadowRoot&&i(d)===!0)return SP(e);e.assignedSlot?e=e.assignedSlot:!d&&f!==e.ownerDocument?e=f.host:e=d}e=s}if(spe(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return SP(e);return!1},upe=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 j1.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},s5=function(e,t){return!(t.disabled||a5(t)||tpe(t)||lpe(t,e)||npe(t)||upe(t))},aB=function(e,t){return!(ape(t)||Fm(t)<0||!s5(e,t))},Ape=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},cpe=function n(e){var t=[],r=[];return e.forEach(function(i,o){var a=!!i.scopeParent,s=a?i.scopeParent:i,d=Jfe(s,a),f=a?n(i.candidates):s;d===0?a?t.push.apply(t,f):t.push(s):r.push({documentOrder:o,tabIndex:d,item:i,isScope:a,content:f})}),r.sort(epe).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.pusLine truncated
|
||||
* focus-trap 7.5.4
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function EP(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 OP(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?EP(Object(t),!0).forEach(function(r){fpe(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):EP(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function fpe(n,e,t){return e=mpe(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ppe(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function mpe(n){var e=ppe(n,"string");return typeof e=="symbol"?e:String(e)}var BP={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()}},gpe=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},ype=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},I_=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},vpe=function(e){return I_(e)&&!e.shiftKey},Cpe=function(e){return I_(e)&&e.shiftKey},IP=function(e){return setTimeout(e,0)},kP=function(e,t){var r=-1;return e.every(function(i,o){return t(i)?(r=o,!1):!0}),r},jC=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},$2=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},_pe=[],bpe=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||_pe,o=OP({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:vpe,isKeyBackward:Cpe},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,d=function(Pe,he,Qe){return Pe&&Pe[he]!==void 0?Pe[he]:o[Qe||he]},f=function(Pe,he){var Qe=typeof(he==null?void 0:he.composedPath)=="function"?he.composedPath():void 0;return a.containerGroups.findIndex(function(ye){var gt=ye.container,yt=ye.tabbableNodes;return gt.contains(Pe)||(Qe==null?void 0:Qe.includes(gt))||yt.find(function(st){return st===Pe})})},C=function(Pe){var he=o[Pe];if(typeof he=="function"){for(var Qe=arguments.length,ye=new Array(Qe>1?Qe-1:0),gt=1;gt<Qe;gt++)ye[gt-1]=arguments[gt];he=he.apply(void 0,ye)}if(he===!0&&(he=void 0),!he){if(he===void 0||he===!1)return he;throw new Error("`".concat(Pe,"` was specified but was not a node, or did not return a node"))}var yt=he;if(typeof he=="string"&&(yt=r.querySelector(he),!yt))throw new Error("`".concat(Pe,"` as selector refers to no known node"));return yt},O=function(){var Pe=C("initialFocus");if(Pe===!1)return!1;if(Pe===void 0||!O3(Pe,o.tabbableOptions))if(f(r.activeElement)>=0)Pe=r.activeElement;else{var he=a.tabbableGroups[0],Qe=he&&he.firstTabbableNode;Pe=Qe||C("fallbackFocus")}if(!Pe)throw new Error("Your focus-trap needs to have at least one focusable element");return Pe},E=function(){if(a.containerGroups=a.containers.map(function(Pe){var he=AG(Pe,o.tabbableOptions),Qe=cG(Pe,o.tabbableOptions),ye=he.length>0?he[0]:void 0,gt=he.length>0?he[he.length-1]:void 0,yt=Qe.find(function(Re){return e1(Re)}),st=Qe.slice().reverse().find(function(Re){return e1(Re)}),ft=!!he.find(function(Re){return Fm(Re)>0});return{container:Pe,tabbableNodes:he,focusableNodes:Qe,posTabIndexesFound:ft,firstTabbableNode:ye,lastTabbableNode:gt,firstDomTabbableNode:yt,lastDomTabbableNode:st,nextTabbableNode:function(He){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Jt=he.indexOf(He);return Jt<0?Xe?Qe.slice(Qe.indexOf(He)+1).find(function(Vt){return e1(Vt)}):Qe.slice(0,Qe.indexOf(He)).reverse().find(function(Vt){return e1(Vt)}):he[Jt+(Xe?1:-1)]}}}),a.tabbableGroups=a.containerGroups.filter(function(Pe){return Pe.tabbableNodes.length>0}),a.tabbableGroups.length<=0&&!C("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(a.containerGroups.find(function(Pe){return Pe.posTabIndexesFound})&&a.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function Te(Pe){var he=Pe.activeElemeLine truncated
|
||||
* In categorical functions, when the feature value does not match any of the stop domain values.
|
||||
* In property and zoom-and-property functions, when a feature does not contain a value for the specified property.
|
||||
* In identity functions, when the feature value is not valid for the style property (for example, if the function is being used for a \`circle-color\` property but the feature property value is not a string or not a valid color).
|
||||
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:gme,expression:yme,expression_name:vme,light:Cme,sky:_me,terrain:bme,paint:xme,paint_fill:wme,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Mme,paint_circle:Sme,paint_heatmap:Eme,paint_symbol:Ome,paint_raster:Bme,paint_hillshade:Ime,paint_background:kme,transition:Tme,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m1e(){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 g1e=Nw(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,o=e.allowMultipleExpanded,a=o===void 0?!1:o,s=e.allowZeroExpanded,d=s===void 0?!1:s;jw(this,n),Cs(this,"expanded",void 0),Cs(this,"allowMultipleExpanded",void 0),Cs(this,"allowZeroExpanded",void 0),Cs(this,"toggleExpanded",function(f){if(t.isItemDisabled(f))return t;var C=t.isItemExpanded(f);return C?t.augment({expanded:t.expanded.filter(function(O){return O!==f})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(A1e(t.expanded),[f]):[f]})}),Cs(this,"isItemDisabled",function(f){var C=t.isItemExpanded(f),O=t.expanded.length===1;return!!(C&&!t.allowZeroExpanded&&O)}),Cs(this,"isItemExpanded",function(f){return t.expanded.indexOf(f)!==-1}),Cs(this,"getPanelAttributes",function(f,C){var O=C??t.isItemExpanded(f);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(f),id:t.getPanelId(f),hidden:O?void 0:!0}}),Cs(this,"getHeadingAttributes",function(){return{role:"heading"}}),Cs(this,"getButtonAttributes",function(f,C){var O=C??t.isItemExpanded(f),E=t.isItemDisabled(f);return{id:t.getButtonId(f),"aria-disabled":E,"aria-expanded":O,"aria-controls":t.getPanelId(f),role:"button",tabIndex:0}}),Cs(this,"getPanelId",function(f){return"accordion__panel-".concat(f)}),Cs(this,"getButtonId",function(f){return"accordion__heading-".concat(f)}),Cs(this,"augment",function(f){return new n(mB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},f))}),this.expanded=i,this.allowMultipleExpanded=a,this.allowZeroExpanded=d}),zG=Gn.createContext(null),jG=function(n){jI(t,n);var e=NI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Cs(Bh(r),"state",new g1e({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Cs(Bh(r),"toggleExpanded",function(s){r.setState(function(d){return d.toggleExpanded(s)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Cs(Bh(r),"isItemDisabled",function(s){return r.state.isItemDisabled(s)}),Cs(Bh(r),"isItemExpanded",function(s){return r.state.isItemExpanded(s)}),Cs(Bh(r),"getPanelAttributes",function(s,d){return r.state.getPanelAttributes(s,d)}),Cs(Bh(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Cs(Bh(r),"getButtonAttributes",function(s,d){return r.state.getButtonAttributes(s,d)}),r}return Nw(t,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,a=i.allowMultipleExpanded;return Gn.createElement(zG.Provider,{value:{allowMultipleExpanded:a,allowZeroExpanded:o,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Gn.PureComponent);Cs(jG,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var NG=function(n){jI(t,n);var e=NI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Cs(Bh(r),"renderChildren",function(s){return s?r.props.children(s):null}),r}return Nw(t,[{key:"render",value:function(){return Gn.createElement(zG.Consumer,null,this.renderChildren)}}]),t}(Gn.PureComponent),y1e=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],v1e=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,o=e.allowZeroExpanded,a=e.onChange,s=e.preExpanded,d=Ww(e,y1e);return Gn.createElement(jG,{preExpanded:s,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:a},Gn.createElement("div",qf({"data-accordion-component":"Accordion",className:r},d)))},vB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(vB||(vB={}));var WG=vB,C6=0;function C1e(){var n=C6;return C6=C6+1,"raa-".concat(n)}var _1e=Gn.useId||C1e,b1e=/[\u0009\u000a\u000c\u000d\u0020]/g;function Mb(n){return n===""||b1e.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var GG=Gn.createContext(null),x1e=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,o=e.dangerouslySetExpanded,a=function(){i.toggleExpanded(r)},s=function(f){var C=o??f.isItemExpanded(r),O=f.isItemDisabled(r),E=f.getPanelAttributes(r,o),P=f.getHeadingAttributes(r),D=f.getButtonAttributes(r,o);return Gn.createElement(GG.Provider,{value:{uuid:r,expanded:C,disabled:O,toggleExpanded:a,panelAttributes:E,headingAttributes:P,buttonAttributes:D}},t)};return Gn.createElement(NG,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.”
|
||||
|
||||
`,YG=function(n){jI(t,n);var e=NI(t);function t(){var r;jw(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o)),Cs(Bh(r),"ref",void 0),Cs(Bh(r),"setRef",function(s){r.ref=s}),r}return Nw(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Gn.createElement("div",qf({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(P1e)}}]),t}(Gn.PureComponent);Cs(YG,"defaultProps",K1e);var qG=function(e){return Gn.createElement(Gw,null,function(t){var r=t.headingAttributes;return e.id&&Mb(e.id),Gn.createElement(YG,qf({},e,r))})};qG.displayName=WG.AccordionItemHeading;var D1e=["className","region","id"],F1e=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,o=e.id,a=Ww(e,D1e),s=function(f){var C=f.panelAttributes;o&&Mb(o);var O=mB(mB({},C),{},{"aria-labelledby":i?C["aria-labelledby"]:void 0});return Gn.createElement("div",qf({"data-accordion-component":"AccordionItemPanel",className:r},a,O,{role:i?"region":void 0}))};return Gn.createElement(Gw,null,s)},_6={exports:{}},$P;function $w(){return $P||($P=1,function(n,e){(function(t,r){n.exports=r()})(Vf,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),s=/Edge\/(\d+)/.exec(t),d=o||a||s,f=d&&(o?document.documentMode||6:+(s||a)[1]),C=!s&&/WebKit\//.test(t),O=C&&/Qt\/\d+\.\d+/.test(t),E=!s&&/Chrome\/(\d+)/.exec(t),P=E&&+E[1],D=/Opera\//.test(t),Q=/Apple Computer/.test(navigator.vendor),V=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),$=/PhantomJS/.test(t),N=Q&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),Z=/Android/.test(t),se=N||Z||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),pe=N||/Mac/.test(r),fe=/\bCrOS\b/.test(t),X=/win/i.test(r),oe=D&&t.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(D=!1,C=!0);var Ce=pe&&(O||D&&(oe==null||oe<12.11)),we=i||d&&f>=9;function Te(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var Pe=function(A,p){var x=A.className,b=Te(p).exec(x);if(b){var B=x.slice(b.index+b[0].length);A.className=x.slice(0,b.index)+(B?b[1]+B:"")}};function he(A){for(var p=A.childNodes.length;p>0;--p)A.removeChild(A.firstChild);return A}function Qe(A,p){return he(A).appendChild(p)}function ye(A,p,x,b){var B=document.createElement(A);if(x&&(B.className=x),b&&(B.style.cssText=b),typeof p=="string")B.appendChild(document.createTextNode(p));else if(p)for(var U=0;U<p.length;++U)B.appendChild(p[U]);return B}function gt(A,p,x,b){var B=ye(A,p,x,b);return B.setAttribute("role","presentation"),B}var yt;document.createRange?yt=function(A,p,x,b){var B=document.createRange();return B.setEnd(b||A,x),B.setStart(A,p),B}:yt=function(A,p,x){var b=document.body.createTextRange();try{b.moveToElementText(A.parentNode)}catch{return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",p),b};function st(A,p){if(p.nodeType==3&&(p=p.parentNode),A.contains)return A.contains(p);do if(p.nodeType==11&&(p=p.host),p==A)return!0;while(p=p.parentNode)}function ft(A){var p=A.ownerDocument||A,x;try{x=A.activeElement}catch{x=p.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function Re(A,p){var x=A.className;Te(p).test(x)||(A.className+=(x?" ":"")+p)}function He(A,p){for(var x=A.split(" "),b=0;b<x.length;b++)x[b]&&!Te(x[b]).test(p)&&(p+=" "+x[b]);return p}var Xe=function(A){A.select()};N?Xe=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:d&&(Xe=function(A){try{A.select()}catch{}});function Jt(A){return A.display.wrapper.ownerDocument}function Vt(A){return bt(A.display.wrapper)}function bt(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function Yt(A){return Jt(A).defaultView}function qt(A){var p=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,p)}}function ke(A,p,x){p||(p={});for(var b in A)A.hasOwnProperty(b)&&(x!==!1||!p.hasOwnProperty(b))&&(p[b]=A[b]);return p}function ge(A,p,x,b,B){p==null&&(p=A.search(/[^\s\u00a0]/),p==-1&&(p=A.length));for(var U=b||0,q=B||0;;){var ne=A.indexOf(" ",U);if(ne<0||ne>=p)return q+(p-U);q+=ne-U,q+=x-q%x,U=ne+1}}var Se=function(){this.id=null,this.f=null,this.time=0,this.handler=qt(this.onTimeout,this)};Se.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},Se.prototype.set=function(A,p){this.f=p;var x=+new Date+A;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=x)};function ze(A,p){for(var x=0;x<A.length;++x)if(A[x]==p)return x;return-1}var it=50,ot={toString:fu
Line truncated
|
||||
|
||||
b`.split(/\n/).length!=3?function(A){for(var p=0,x=[],b=A.length;p<=b;){var B=A.indexOf(`
|
||||
`,p);B==-1&&(B=A.length);var U=A.slice(p,A.charAt(B-1)=="\r"?B-1:B),q=U.indexOf("\r");q!=-1?(x.push(U.slice(0,q)),p+=q+1):(x.push(U),p=B+1)}return x}:function(A){return A.split(/\r\n?|\n/)},cr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var p;try{p=A.ownerDocument.selection.createRange()}catch{}return!p||p.parentElement()!=A?!1:p.compareEndPoints("StartToEnd",p)!=0},Yr=function(){var A=ye("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Ir=null;function Ur(A){if(Ir!=null)return Ir;var p=Qe(A,ye("span","x")),x=p.getBoundingClientRect(),b=yt(p,0,1).getBoundingClientRect();return Ir=Math.abs(x.left-b.left)>1}var ar={},hi={};function Ri(A,p){arguments.length>2&&(p.dependencies=Array.prototype.slice.call(arguments,2)),ar[A]=p}function ro(A,p){hi[A]=p}function ho(A){if(typeof A=="string"&&hi.hasOwnProperty(A))A=hi[A];else if(A&&typeof A.name=="string"&&hi.hasOwnProperty(A.name)){var p=hi[A.name];typeof p=="string"&&(p={name:p}),A=$r(p,A),A.name=p.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return ho("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return ho("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function li(A,p){p=ho(p);var x=ar[p.name];if(!x)return li(A,"text/plain");var b=x(A,p);if(fo.hasOwnProperty(p.name)){var B=fo[p.name];for(var U in B)B.hasOwnProperty(U)&&(b.hasOwnProperty(U)&&(b["_"+U]=b[U]),b[U]=B[U])}if(b.name=p.name,p.helperType&&(b.helperType=p.helperType),p.modeProps)for(var q in p.modeProps)b[q]=p.modeProps[q];return b}var fo={};function Wa(A,p){var x=fo.hasOwnProperty(A)?fo[A]:fo[A]={};ke(p,x)}function Ia(A,p){if(p===!0)return p;if(A.copyState)return A.copyState(p);var x={};for(var b in p){var B=p[b];B instanceof Array&&(B=B.concat([])),x[b]=B}return x}function Oi(A,p){for(var x;A.innerMode&&(x=A.innerMode(p),!(!x||x.mode==A));)p=x.state,A=x.mode;return x||{mode:A,state:p}}function as(A,p,x){return A.startState?A.startState(p,x):!0}var vi=function(A,p,x){this.pos=this.start=0,this.string=A,this.tabSize=p||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};vi.prototype.eol=function(){return this.pos>=this.string.length},vi.prototype.sol=function(){return this.pos==this.lineStart},vi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vi.prototype.eat=function(A){var p=this.string.charAt(this.pos),x;if(typeof A=="string"?x=p==A:x=p&&(A.test?A.test(p):A(p)),x)return++this.pos,p},vi.prototype.eatWhile=function(A){for(var p=this.pos;this.eat(A););return this.pos>p},vi.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},vi.prototype.skipToEnd=function(){this.pos=this.string.length},vi.prototype.skipTo=function(A){var p=this.string.indexOf(A,this.pos);if(p>-1)return this.pos=p,!0},vi.prototype.backUp=function(A){this.pos-=A},vi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},vi.prototype.indentation=function(){return ge(this.string,null,this.tabSize)-(this.lineStart?ge(this.string,this.lineStart,this.tabSize):0)},vi.prototype.match=function(A,p,x){if(typeof A=="string"){var b=function(q){return x?q.toLowerCase():q},B=this.string.substr(this.pos,A.length);if(b(B)==b(A))return p!==!1&&(this.pos+=A.length),!0}else{var U=this.string.slice(this.pos).match(A);return U&&U.index>0?null:(U&&p!==!1&&(this.pos+=U[0].length),U)}},vi.prototype.current=function(){return this.string.slice(this.start,this.pos)},vi.prototype.hideFirstChars=function(A,p){this.lineStart+=A;try{return p()}finally{this.lineStart-=A}},vi.prototype.lookAhead=function(A){var p=this.lineOracle;return p&&p.lookAhead(A)},vi.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Qn(A,p){if(p-=A.first,p<0||p>=A.size)throw new Error("There is no line "+(p+A.first)+" in the document.");for(var x=A;!x.lines;)for(var b=0;;++b){var B=x.children[b],U=B.chunkSize();if(p<U){x=B;break}p-=U}return x.lines[p]}function oo(A,p,x){var b=[],B=p.line;return A.iter(p.line,x.line+1,function(U){var q=U.text;B==x.line&&(q=q.slice(0,x.ch)),B==p.line&&(q=q.slice(p.ch)),b.push(q),++B}),b}function _o(A,p,x){var b=[];return A.iter(p,x,function(B){b.push(B.text)}),b}function zi(A,p){var x=p-A.height;if(x)for(var b=A;b;b=b.parent)b.height+=x}function _e(A){if(A.parent==null)return null;for(var p=A.parent,x=ze(p.lines,A),b=p.parent;b;p=b,b=b.parent)for(var B=0;b.children[B]!=p;++B)x+=b.children[B].chunkSize();return x+p.first}function Je(A,p){var x=A.first;e:do{for(var b=0;b<A.children.length;++b){
Line truncated
|
||||
`?(cn=$e.appendChild(ye("span",Ot[0]=="\r"?"␍":"","cm-invalidchar")),cn.setAttribute("cm-text",Ot[0]),A.col+=1):(cn=A.cm.options.specialCharPlaceholder(Ot[0]),cn.setAttribute("cm-text",Ot[0]),d&&f<9?$e.appendChild(ye("span",[cn])):$e.appendChild(cn),A.col+=1);A.map.push(A.pos,A.pos+1,cn),A.pos++}}if(A.trailingSpace=ne.charCodeAt(p.length-1)==32,x||b||B||ve||U||q){var bn=x||"";b&&(bn+=b),B&&(bn+=B);var jn=ye("span",[$e],bn,U);if(q)for(var lr in q)q.hasOwnProperty(lr)&&lr!="style"&&lr!="class"&&jn.setAttribute(lr,q[lr]);return A.content.appendChild(jn)}A.content.appendChild($e)}}function YA(A,p){if(A.length>1&&!/ /.test(A))return A;for(var x=p,b="",B=0;B<A.length;B++){var U=A.charAt(B);U==" "&&x&&(B==A.length-1||A.charCodeAt(B+1)==32)&&(U=" "),b+=U,x=U==" "}return b}function aa(A,p){return function(x,b,B,U,q,ne,ue){B=B?B+" cm-force-border":"cm-force-border";for(var ve=x.pos,$e=ve+b.length;;){for(var nt=void 0,Ot=0;Ot<p.length&&(nt=p[Ot],!(nt.to>ve&&nt.from<=ve));Ot++);if(nt.to>=$e)return A(x,b,B,U,q,ne,ue);A(x,b.slice(0,nt.to-ve),B,U,null,ne,ue),U=null,b=b.slice(nt.to-ve),ve=nt.to}}}function Yu(A,p,x,b){var B=!b&&x.widgetNode;B&&A.map.push(A.pos,A.pos+p,B),!b&&A.cm.display.input.needsContentAttribute&&(B||(B=A.content.appendChild(document.createElement("span"))),B.setAttribute("cm-marker",x.id)),B&&(A.cm.display.input.setUneditable(B),A.content.appendChild(B)),A.pos+=p,A.trailingSpace=!1}function Hd(A,p,x){var b=A.markedSpans,B=A.text,U=0;if(!b){for(var q=1;q<x.length;q+=2)p.addToken(p,B.slice(U,U=x[q]),zh(x[q+1],p.cm.options));return}for(var ne=B.length,ue=0,ve=1,$e="",nt,Ot,Ct=0,Nt,cn,Pn,Vn,bn;;){if(Ct==ue){Nt=cn=Pn=Ot="",bn=null,Vn=null,Ct=1/0;for(var jn=[],lr=void 0,Kr=0;Kr<b.length;++Kr){var br=b[Kr],pi=br.marker;if(pi.type=="bookmark"&&br.from==ue&&pi.widgetNode)jn.push(pi);else if(br.from<=ue&&(br.to==null||br.to>ue||pi.collapsed&&br.to==ue&&br.from==ue)){if(br.to!=null&&br.to!=ue&&Ct>br.to&&(Ct=br.to,cn=""),pi.className&&(Nt+=" "+pi.className),pi.css&&(Ot=(Ot?Ot+";":"")+pi.css),pi.startStyle&&br.from==ue&&(Pn+=" "+pi.startStyle),pi.endStyle&&br.to==Ct&&(lr||(lr=[])).push(pi.endStyle,br.to),pi.title&&((bn||(bn={})).title=pi.title),pi.attributes)for(var Ro in pi.attributes)(bn||(bn={}))[Ro]=pi.attributes[Ro];pi.collapsed&&(!Vn||Ue(Vn.marker,pi)<0)&&(Vn=br)}else br.from>ue&&Ct>br.from&&(Ct=br.from)}if(lr)for(var Ha=0;Ha<lr.length;Ha+=2)lr[Ha+1]==Ct&&(cn+=" "+lr[Ha]);if(!Vn||Vn.from==ue)for(var Ma=0;Ma<jn.length;++Ma)Yu(p,0,jn[Ma]);if(Vn&&(Vn.from||0)==ue){if(Yu(p,(Vn.to==null?ne+1:Vn.to)-ue,Vn.marker,Vn.from==null),Vn.to==null)return;Vn.to==ue&&(Vn=!1)}}if(ue>=ne)break;for(var Ua=Math.min(ne,Ct);;){if($e){var cs=ue+$e.length;if(!Vn){var ds=cs>Ua?$e.slice(0,Ua-ue):$e;p.addToken(p,ds,nt?nt+Nt:Nt,Pn,ue+ds.length==Ct?cn:"",Ot,bn)}if(cs>=Ua){$e=$e.slice(Ua-ue),ue=Ua;break}ue=cs,Pn=""}$e=B.slice(U,U=x[ve++]),nt=zh(x[ve++],p.cm.options)}}}function qA(A,p,x){this.line=p,this.rest=Ki(p),this.size=this.rest?_e(yn(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Xr(A,p)}function kc(A,p,x){for(var b=[],B,U=p;U<x;U=B){var q=new qA(A.doc,Qn(A.doc,U),U);B=U+q.size,b.push(q)}return b}var Ou=null;function Ad(A){Ou?Ou.ops.push(A):A.ownsGroup=Ou={ops:[A],delayedCallbacks:[]}}function em(A){var p=A.delayedCallbacks,x=0;do{for(;x<p.length;x++)p[x].call(null);for(var b=0;b<A.ops.length;b++){var B=A.ops[b];if(B.cursorActivityHandlers)for(;B.cursorActivityCalled<B.cursorActivityHandlers.length;)B.cursorActivityHandlers[B.cursorActivityCalled++].call(null,B.cm)}}while(x<p.length)}function jh(A,p){var x=A.ownsGroup;if(x)try{em(x)}finally{Ou=null,p(x)}}var Pi=null;function ko(A,p){var x=Dr(A,p);if(x.length){var b=Array.prototype.slice.call(arguments,2),B;Ou?B=Ou.delayedCallbacks:Pi?B=Pi:(B=Pi=[],setTimeout(C0,0));for(var U=function(ne){B.push(function(){return x[ne].apply(null,b)})},q=0;q<x.length;++q)U(q)}}function C0(){var A=Pi;Pi=null;for(var p=0;p<A.length;++p)A[p]()}function Nh(A,p,x,b){for(var B=0;B<p.changes.length;B++){var U=p.changes[B];U=="text"?tp(A,p):U=="gutter"?HA(A,p,x,b):U=="class"?Qi(A,p):U=="widget"&&To(A,p,b)}p.changes=null}function qu(A){return A.node==A.text&&(A.node=ye("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),d&&f<8&&(A.node.style.zIndex=2)),A.node}function ep(A,p){var x=p.bgClass?p.bgClass+" "+(p.line.bgClass||""):p.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),p.background)x?p.background.className=x:(p.background.parentNode.removeChild(p.background),p.background=null);else if(x){var b=qu(p);p.background=b.insertBefore(ye("div",null,x),b.firstChild),A.display.input.setUneditable(p.background)}}function da(A,p){var x=A.display.externalMeasured;return x&&x.line==p.line?(A.display.externalMeasured=null,p.measure=x.measure,x.built):ld(A,p)}function tp(A,p){var x=p.text.className,b=da(A,p);p.text==p.node&&(p.node=b.pre),p.text.parentNode.replaceChild(b.pre,p.text),p.text=b.pre,b.bgClass!=p.bgClass||b.text
Line truncated
|
||||
top: `+lr+"px; width: "+(Kr??ue-jn)+`px;
|
||||
height: `+(br-lr)+"px"))}function nt(jn,lr,Kr){var br=Qn(B,jn),pi=br.text.length,Ro,Ha;function Ma(ds,Ol){return sn(A,Lt(jn,ds),"div",br,Ol)}function Ua(ds,Ol,nl){var Is=Ko(A,br,null,ds),hs=Ol=="ltr"==(nl=="after")?"left":"right",pa=nl=="after"?Is.begin:Is.end-(/\s/.test(br.text.charAt(Is.end-1))?2:1);return Ma(pa,hs)[hs]}var cs=kn(br,B.direction);return kt(cs,lr||0,Kr??pi,function(ds,Ol,nl,Is){var hs=nl=="ltr",pa=Ma(ds,hs?"left":"right"),ks=Ma(Ol-1,hs?"right":"left"),fh=lr==null&&ds==0,dc=Kr==null&&Ol==pi,Ws=Is==0,hc=!cs||Is==cs.length-1;if(ks.top-pa.top<=3){var Gs=(ve?fh:dc)&&Ws,K0=(ve?dc:fh)&&hc,TA=Gs?ne:(hs?pa:ks).left,Nc=K0?ue:(hs?ks:pa).right;$e(TA,pa.top,Nc-TA,pa.bottom)}else{var Va,rl,ph,fc;hs?(Va=ve&&fh&&Ws?ne:pa.left,rl=ve?ue:Ua(ds,nl,"before"),ph=ve?ne:Ua(Ol,nl,"after"),fc=ve&&dc&&hc?ue:ks.right):(Va=ve?Ua(ds,nl,"before"):ne,rl=!ve&&fh&&Ws?ue:pa.right,ph=!ve&&dc&&hc?ne:ks.left,fc=ve?Ua(Ol,nl,"after"):ue),$e(Va,pa.top,rl-Va,pa.bottom),pa.bottom<ks.top&&$e(ne,pa.bottom,null,ks.top),$e(ph,ks.top,fc-ph,ks.bottom)}(!Ro||Xu(pa,Ro)<0)&&(Ro=pa),Xu(ks,Ro)<0&&(Ro=ks),(!Ha||Xu(pa,Ha)<0)&&(Ha=pa),Xu(ks,Ha)<0&&(Ha=ks)}),{start:Ro,end:Ha}}var Ot=p.from(),Ct=p.to();if(Ot.line==Ct.line)nt(Ot.line,Ot.ch,Ct.ch);else{var Nt=Qn(B,Ot.line),cn=Qn(B,Ct.line),Pn=Cr(Nt)==Cr(cn),Vn=nt(Ot.line,Ot.ch,Pn?Nt.text.length+1:null).end,bn=nt(Ct.line,Pn?0:null,Ct.ch).start;Pn&&(Vn.top<bn.top-2?($e(Vn.right,Vn.top,null,Vn.bottom),$e(ne,bn.top,bn.left,bn.bottom)):$e(Vn.right,Vn.top,bn.left-Vn.right,Vn.bottom)),Vn.bottom<bn.top&&$e(ne,Vn.bottom,null,bn.top)}x.appendChild(U)}function Ju(A){if(A.state.focused){var p=A.display;clearInterval(p.blinker);var x=!0;p.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?p.blinker=setInterval(function(){A.hasFocus()||Fc(A),p.cursorDiv.style.visibility=(x=!x)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(p.cursorDiv.style.visibility="hidden")}}function eA(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||eh(A))}function nc(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&Fc(A))},100)}function eh(A,p){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Fe(A,"focus",A,p),A.state.focused=!0,Re(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),C&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),Ju(A))}function Fc(A,p){A.state.delayingBlurEvent||(A.state.focused&&(Fe(A,"blur",A,p),A.state.focused=!1,Pe(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function tA(A){for(var p=A.display,x=p.lineDiv.offsetTop,b=Math.max(0,p.scroller.getBoundingClientRect().top),B=p.lineDiv.getBoundingClientRect().top,U=0,q=0;q<p.view.length;q++){var ne=p.view[q],ue=A.options.lineWrapping,ve=void 0,$e=0;if(!ne.hidden){if(B+=ne.line.height,d&&f<8){var nt=ne.node.offsetTop+ne.node.offsetHeight;ve=nt-x,x=nt}else{var Ot=ne.node.getBoundingClientRect();ve=Ot.bottom-Ot.top,!ue&&ne.text.firstChild&&($e=ne.text.firstChild.getBoundingClientRect().right-Ot.left-1)}var Ct=ne.line.height-ve;if((Ct>.005||Ct<-.005)&&(B<b&&(U-=Ct),zi(ne.line,ve),Mo(ne.line),ne.rest))for(var Nt=0;Nt<ne.rest.length;Nt++)Mo(ne.rest[Nt]);if($e>A.display.sizerWidth){var cn=Math.ceil($e/Hu(A.display));cn>A.display.maxLineLength&&(A.display.maxLineLength=cn,A.display.maxLine=ne.line,A.display.maxLineChanged=!0)}}}Math.abs(U)>2&&(p.scroller.scrollTop+=U)}function Mo(A){if(A.widgets)for(var p=0;p<A.widgets.length;++p){var x=A.widgets[p],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function nA(A,p,x){var b=x&&x.top!=null?Math.max(0,x.top):A.scroller.scrollTop;b=Math.floor(b-Tc(A));var B=x&&x.bottom!=null?x.bottom:b+A.wrapper.clientHeight,U=Je(p,b),q=Je(p,B);if(x&&x.ensure){var ne=x.ensure.from.line,ue=x.ensure.to.line;ne<U?(U=ne,q=Je(p,Io(Qn(p,ne))+A.wrapper.clientHeight)):Math.min(ue,p.lastLine())>=q&&(U=Je(p,Io(Qn(p,ue))-A.wrapper.clientHeight),q=ue)}return{from:U,to:Math.max(q,U+1)}}function hd(A,p){if(!ce(A,"scrollCursorIntoView")){var x=A.display,b=x.sizer.getBoundingClientRect(),B=null,U=x.wrapper.ownerDocument;if(p.top+b.top<0?B=!0:p.bottom+b.top>(U.defaultView.innerHeight||U.documentElement.clientHeight)&&(B=!1),B!=null&&!$){var q=ye("div","",null,`position: absolute;
|
||||
top: `+(p.top-x.viewOffset-Tc(A.display))+`px;
|
||||
height: `+(p.bottom-p.top+Bu(A)+x.barHeight)+`px;
|
||||
left: `+p.left+"px; width: "+Math.max(2,p.right-p.left)+"px;");A.display.lineSpace.appendChild(q),q.scrollIntoView(B),A.display.lineSpace.removeChild(q)}}}function ip(A,p,x,b){b==null&&(b=0);var B;!A.options.lineWrapping&&p==x&&(x=p.sticky=="before"?Lt(p.line,p.ch+1,"before"):p,p=p.ch?Lt(p.line,p.sticky=="before"?p.ch-1:p.ch,"after"):p);for(var U=0;U<5;U++){var q=!1,ne=jt(A,p),ue=!x||x==p?ne:jt(A,x);B={left:Math.min(ne.left,ue.left),top:Math.min(ne.top,ue.top)-b,right:Math.max(ne.left,ue.left),bottom:Math.max(ne.bottom,ue.bottom)+b};var ve=qh(A,B),$e=A.doc.scrollTop,nt=A.doc.scrollLeft;if(ve.scrollTop!=null&&(Lc(A,ve.scrollTop),Math.abs(A.doc.scrollTop-$e)>1&&(q=!0)),ve.scrollLeft!=null&&(fa(A,ve.scrollLeft),Math.abs(A.doc.scrollLeft-nt)>1&&(q=!0)),!q)break}return B}function Yh(A,p){var x=qh(A,p);x.scrollTop!=null&&Lc(A,x.scrollTop),x.scrollLeft!=null&&fa(A,x.scrollLeft)}function qh(A,p){var x=A.display,b=Ya(A.display);p.top<0&&(p.top=0);var B=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:x.scroller.scrollTop,U=ZA(A),q={};p.bottom-p.top>U&&(p.bottom=p.top+U);var ne=A.doc.height+Gh(x),ue=p.top<b,ve=p.bottom>ne-b;if(p.top<B)q.scrollTop=ue?0:p.top;else if(p.bottom>B+U){var $e=Math.min(p.top,(ve?ne:p.bottom)-U);$e!=B&&(q.scrollTop=$e)}var nt=A.options.fixedGutter?0:x.gutters.offsetWidth,Ot=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:x.scroller.scrollLeft-nt,Ct=wA(A)-x.gutters.offsetWidth,Nt=p.right-p.left>Ct;return Nt&&(p.right=p.left+Ct),p.left<10?q.scrollLeft=0:p.left<Ot?q.scrollLeft=Math.max(0,p.left+nt-(Nt?0:10)):p.right>Ct+Ot-3&&(q.scrollLeft=p.right+(Nt?0:10)-Ct),q}function op(A,p){p!=null&&(kr(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+p)}function lo(A){kr(A);var p=A.getCursor();A.curOp.scrollToPos={from:p,to:p,margin:A.options.cursorScrollMargin}}function ha(A,p,x){(p!=null||x!=null)&&kr(A),p!=null&&(A.curOp.scrollLeft=p),x!=null&&(A.curOp.scrollTop=x)}function wr(A,p){kr(A),A.curOp.scrollToPos=p}function kr(A){var p=A.curOp.scrollToPos;if(p){A.curOp.scrollToPos=null;var x=pr(A,p.from),b=pr(A,p.to);OA(A,x,b,p.margin)}}function OA(A,p,x,b){var B=qh(A,{left:Math.min(p.left,x.left),top:Math.min(p.top,x.top)-b,right:Math.max(p.right,x.right),bottom:Math.max(p.bottom,x.bottom)+b});ha(A,B.scrollLeft,B.scrollTop)}function Lc(A,p){Math.abs(A.doc.scrollTop-p)<2||(i||Wl(A,{top:p}),rc(A,p,!0),i&&Wl(A),ac(A,100))}function rc(A,p,x){p=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,p)),!(A.display.scroller.scrollTop==p&&!x)&&(A.doc.scrollTop=p,A.display.scrollbars.setScrollTop(p),A.display.scroller.scrollTop!=p&&(A.display.scroller.scrollTop=p))}function fa(A,p,x,b){p=Math.max(0,Math.min(p,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((x?p==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-p)<2)&&!b)&&(A.doc.scrollLeft=p,I(A),A.display.scroller.scrollLeft!=p&&(A.display.scroller.scrollLeft=p),A.display.scrollbars.setScrollLeft(p))}function ic(A){var p=A.display,x=p.gutters.offsetWidth,b=Math.round(A.doc.height+Gh(A.display));return{clientHeight:p.scroller.clientHeight,viewHeight:p.wrapper.clientHeight,scrollWidth:p.scroller.scrollWidth,clientWidth:p.scroller.clientWidth,viewWidth:p.wrapper.clientWidth,barLeft:A.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Bu(A)+p.barHeight,nativeBarWidth:p.nativeBarWidth,gutterWidth:x}}var ka=function(A,p,x){this.cm=x;var b=this.vert=ye("div",[ye("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),B=this.horiz=ye("div",[ye("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=B.tabIndex=-1,A(b),A(B),Kt(b,"scroll",function(){b.clientHeight&&p(b.scrollTop,"vertical")}),Kt(B,"scroll",function(){B.clientWidth&&p(B.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ka.prototype.update=function(A){var p=A.scrollWidth>A.clientWidth+1,x=A.scrollHeight>A.clientHeight+1,b=A.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=p?b+"px":"0";var B=A.viewHeight-(p?b:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+B)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(p){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=A.barLeft+"px";var U=A.viewWidth-A.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+U)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:p?b:0}},ka.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ka.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&&
Line truncated
|
||||
`},setDirection:ba(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(p){return p.order=null}),this.cm&&Hn(this.cm))})}),Bs.prototype.eachLine=Bs.prototype.iter;var rm=0;function im(A){var p=this;if(w0(p),!(ce(p,A)||Ul(p.display,A))){rt(A),d&&(rm=+new Date);var x=lu(p,A,!0),b=A.dataTransfer.files;if(!(!x||p.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var B=b.length,U=Array(B),q=0,ne=function(){++q==B&&$i(p,function(){x=Fr(p.doc,x);var Ct={from:x,to:x,text:p.doc.splitLines(U.filter(function(Nt){return Nt!=null}).join(p.doc.lineSeparator())),origin:"paste"};cu(p.doc,Ct),Es(p.doc,Ye(Fr(p.doc,x),Fr(p.doc,Ve(Ct))))})()},ue=function(Ct,Nt){if(p.options.allowDropFileTypes&&ze(p.options.allowDropFileTypes,Ct.type)==-1){ne();return}var cn=new FileReader;cn.onerror=function(){return ne()},cn.onload=function(){var Pn=cn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Pn)){ne();return}U[Nt]=Pn,ne()},cn.readAsText(Ct)},ve=0;ve<b.length;ve++)ue(b[ve],ve);else{if(p.state.draggingText&&p.doc.sel.contains(x)>-1){p.state.draggingText(A),setTimeout(function(){return p.display.input.focus()},20);return}try{var $e=A.dataTransfer.getData("Text");if($e){var nt;if(p.state.draggingText&&!p.state.draggingText.copy&&(nt=p.listSelections()),Ii(p.doc,Ye(x,x)),nt)for(var Ot=0;Ot<nt.length;++Ot)IA(p.doc,"",nt[Ot].anchor,nt[Ot].head,"drag");p.replaceSelection($e,"around","paste"),p.display.input.focus()}}catch{}}}}function x0(A,p){if(d&&(!A.state.draggingText||+new Date-rm<100)){et(p);return}if(!(ce(A,p)||Ul(A.display,p))&&(p.dataTransfer.setData("Text",A.getSelection()),p.dataTransfer.effectAllowed="copyMove",p.dataTransfer.setDragImage&&!Q)){var x=ye("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",D&&(x.width=x.height=1,A.display.wrapper.appendChild(x),x._top=x.offsetTop),p.dataTransfer.setDragImage(x,0,0),D&&x.parentNode.removeChild(x)}}function Yi(A,p){var x=lu(A,p);if(x){var b=document.createDocumentFragment();tc(A,x,b),A.display.dragCursor||(A.display.dragCursor=ye("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),Qe(A.display.dragCursor,b)}}function w0(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function M0(A){if(document.getElementsByClassName){for(var p=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<p.length;b++){var B=p[b].CodeMirror;B&&x.push(B)}x.length&&x[0].operation(function(){for(var U=0;U<x.length;U++)A(x[U])})}}var rf=!1;function om(){rf||(rg(),rf=!0)}function rg(){var A;Kt(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,M0(S0)},100))}),Kt(window,"blur",function(){return M0(Fc)})}function S0(A){var p=A.display;p.cachedCharWidth=p.cachedTextHeight=p.cachedPaddingH=null,p.scrollbarsClipped=!1,A.setSize()}for(var La={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"},pl=0;pl<10;pl++)La[pl+48]=La[pl+96]=String(pl);for(var Cd=65;Cd<=90;Cd++)La[Cd]=String.fromCharCode(Cd);for(var ah=1;ah<=12;ah++)La[ah+111]=La[ah+63235]="F"+ah;var kA={};kA.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},kA.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},kA.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-KLine truncated
|
||||
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function Rc(A,p){var x=Qn(A.doc,p),b=Cr(x);return b!=x&&(p=_e(b)),fp(!0,A,b,p,1)}function og(A,p){var x=Qn(A.doc,p),b=Tr(x);return b!=x&&(p=_e(b)),fp(!0,A,x,p,-1)}function E0(A,p){var x=Rc(A,p.line),b=Qn(A.doc,x.line),B=kn(b,A.doc.direction);if(!B||B[0].level==0){var U=Math.max(x.ch,b.text.search(/\S/)),q=p.line==x.line&&p.ch<=U&&p.ch;return Lt(x.line,q?0:U,x.sticky)}return x}function wd(A,p,x){if(typeof p=="string"&&(p=pp[p],!p))return!1;A.display.input.ensurePolled();var b=A.display.shift,B=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),x&&(A.display.shift=!1),B=p(A)!=ot}finally{A.display.shift=b,A.state.suppressEdits=!1}return B}function Hv(A,p,x){for(var b=0;b<A.state.keyMaps.length;b++){var B=Du(p,A.state.keyMaps[b],x,A);if(B)return B}return A.options.extraKeys&&Du(p,A.options.extraKeys,x,A)||Du(p,A.options.keyMap,x,A)}var af=new Se;function mp(A,p,x,b){var B=A.state.keySeq;if(B){if(am(p))return"handled";if(/\'$/.test(p)?A.state.keySeq=null:af.set(50,function(){A.state.keySeq==B&&(A.state.keySeq=null,A.display.input.reset())}),wa(A,B+" "+p,x,b))return!0}return wa(A,p,x,b)}function wa(A,p,x,b){var B=Hv(A,p,b);return B=="multi"&&(A.state.keySeq=p),B=="handled"&&ko(A,"keyHandled",A,p,x),(B=="handled"||B=="multi")&&(rt(x),Ju(A)),!!B}function sf(A,p){var x=_d(p,!0);return x?p.shiftKey&&!A.state.keySeq?mp(A,"Shift-"+x,p,function(b){return wd(A,b,!0)})||mp(A,x,p,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return wd(A,b)}):mp(A,x,p,function(b){return wd(A,b)}):!1}function ag(A,p,x){return mp(A,"'"+x+"'",p,function(b){return wd(A,b,!0)})}var sh=null;function lf(A){var p=this;if(!(A.target&&A.target!=p.display.input.getField())&&(p.curOp.focus=ft(Vt(p)),!ce(p,A))){d&&f<11&&A.keyCode==27&&(A.returnValue=!1);var x=A.keyCode;p.display.shift=x==16||A.shiftKey;var b=sf(p,A);D&&(sh=b?x:null,!b&&x==88&&!Yr&&(pe?A.metaKey:A.ctrlKey)&&p.replaceSelection("",null,"cut")),i&&!pe&&!b&&x==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(p.display.lineDiv.className)&&tl(p)}}function tl(A){var p=A.display.lineDiv;Re(p,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(Pe(p,"CodeMirror-crosshair"),rr(document,"keyup",x),rr(document,"mouseover",x))}Kt(document,"keyup",x),Kt(document,"mouseover",x)}function lA(A){A.keyCode==16&&(this.doc.sel.shift=!1),ce(this,A)}function O0(A){var p=this;if(!(A.target&&A.target!=p.display.input.getField())&&!(Ul(p.display,A)||ce(p,A)||A.ctrlKey&&!A.altKey||pe&&A.metaKey)){var x=A.keyCode,b=A.charCode;if(D&&x==sh){sh=null,rt(A);return}if(!(D&&(!A.which||A.which<10)&&sf(p,A))){var B=String.fromCharCode(b??x);B!="\b"&&(ag(p,A,B)||p.display.input.onKeyPress(A))}}}var gp=400,Md=function(A,p,x){this.time=A,this.pos=p,this.button=x};Md.prototype.compare=function(A,p,x){return this.time+gp>A&&wn(p,this.pos)==0&&x==this.button};var uA,lh;function sg(A,p){var x=+new Date;return lh&&lh.compare(x,A,p)?(uA=lh=null,"triple"):uA&&uA.compare(x,A,p)?(lh=new Md(x,A,p),uA=null,"double"):(uA=new Md(x,A,p),lh=null,"single")}function B0(A){var p=this,x=p.display;if(!(ce(p,A)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=A.shiftKey,Ul(x,A)){C||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Ah(p,A)){var b=lu(p,A),B=nn(A),U=b?sg(b,B):"single";Yt(p).focus(),B==1&&p.state.selectingText&&p.state.selectingText(A),!(b&&uf(p,B,b,U,A))&&(B==1?b?uh(p,b,U,A):Mt(A)==x.scroller&&rt(A):B==2?(b&&el(p.doc,b),setTimeout(function(){return x.input.focus()},20)):B==3&&(we?p.display.input.onContextMenu(A):nc(p)))}}}function uf(A,p,x,b,B){var U="Click";return b=="double"?U="Double"+U:b=="triple"&&(U="Triple"+U),U=(p==1?"Left":p==2?"Middle":"Right")+U,mp(A,dp(U,B),B,function(q){if(typeof q=="string"&&(q=pp[q]),!q)return!1;var ne=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),ne=q(A,x)!=ot}finally{A.state.suppressEdits=!1}return ne})}function Af(A,p,x){var b=A.getOption("configureMouse"),B=b?b(A,p,x):{};if(B.unit==null){var U=fe?x.shiftKey&&x.metaKey:x.altKey;B.unit=U?"rectangle":p=="single"?"char":p=="double"?"word":"line"}return(B.extend==null||A.doc.extend)&&(B.extend=A.doc.extend||x.shiftKey),B.addNew==null&&(B.addNew=pe?x.metaKey:x.ctrlKey),B.moveOnDrag==null&&(B.moveOnDrag=!(pe?x.altKey:x.ctrlKey)),B}function uh(A,p,x,b){d?setTimeout(qt(eA,A),0):A.curOp.focus=ft(Vt(A));var B=Af(A,x,b),U=A.doc.sel,q;A.options.dragDrop&&Ht&&!A.isReadOnly()&&x=="single"&&(q=U.contains(p))>-1&&(wn((q=U.ranges[q]).from(),p)<0||p.xRel>0)&&(wn(q.to(),p)>0||p.xRel<0)?Vv(A,b,p,B):sm(A,b,p,B)}function Vv(A,p,x,b){var B=A.display,U=!1,q=$i(A,function(ve){C&&(B.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:nc(A)),rr(B.wrapper.ownerDocument,"mouseup",q),rr(B.wrapper.ownerDocument,"mousemove",ne),rr(B.scroller,"dragstart",ue),rr(B.scroller,"drop
Line truncated
|
||||
`)==p){if(b.ranges.length%Fu.text.length==0){ve=[];for(var $e=0;$e<Fu.text.length;$e++)ve.push(U.splitLines(Fu.text[$e]))}}else ue.length==b.ranges.length&&A.options.pasteLinesPerSelection&&(ve=tr(ue,function(Vn){return[Vn]}));for(var nt=A.curOp.updateInput,Ot=b.ranges.length-1;Ot>=0;Ot--){var Ct=b.ranges[Ot],Nt=Ct.from(),cn=Ct.to();Ct.empty()&&(x&&x>0?Nt=Lt(Nt.line,Nt.ch-x):A.state.overwrite&&!ne?cn=Lt(cn.line,Math.min(Qn(U,cn.line).text.length,cn.ch+yn(ue).length)):ne&&Fu&&Fu.lineWise&&Fu.text.join(`
|
||||
`)==ue.join(`
|
||||
`)&&(Nt=cn=Lt(Nt.line,0)));var Pn={from:Nt,to:cn,text:ve?ve[Ot%ve.length]:ue,origin:B||(ne?"paste":A.state.cutIncoming>q?"cut":"+input")};cu(A.doc,Pn),ko(A,"inputRead",A,Pn)}p&&!ne&&hm(A,p),lo(A),A.curOp.updateInput<2&&(A.curOp.updateInput=nt),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function cc(A,p){var x=A.clipboardData&&A.clipboardData.getData("Text");if(x)return A.preventDefault(),!p.isReadOnly()&&!p.options.disableInput&&p.hasFocus()&&As(p,function(){return k0(p,x,0,null,"paste")}),!0}function hm(A,p){if(!(!A.options.electricChars||!A.options.smartIndent))for(var x=A.doc.sel,b=x.ranges.length-1;b>=0;b--){var B=x.ranges[b];if(!(B.head.ch>100||b&&x.ranges[b-1].head.line==B.head.line)){var U=A.getModeAt(B.head),q=!1;if(U.electricChars){for(var ne=0;ne<U.electricChars.length;ne++)if(p.indexOf(U.electricChars.charAt(ne))>-1){q=df(A,B.head.line,"smart");break}}else U.electricInput&&U.electricInput.test(Qn(A.doc,B.head.line).text.slice(0,B.head.ch))&&(q=df(A,B.head.line,"smart"));q&&ko(A,"electricInput",A,B.head.line)}}}function hf(A){for(var p=[],x=[],b=0;b<A.doc.sel.ranges.length;b++){var B=A.doc.sel.ranges[b].head.line,U={anchor:Lt(B,0),head:Lt(B+1,0)};x.push(U),p.push(A.getRange(U.anchor,U.head))}return{text:p,ranges:x}}function zc(A,p,x,b){A.setAttribute("autocorrect",x?"on":"off"),A.setAttribute("autocapitalize",b?"on":"off"),A.setAttribute("spellcheck",!!p)}function hh(){var A=ye("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),p=ye("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return C?A.style.width="1000px":A.setAttribute("wrap","off"),N&&(A.style.border="1px solid black"),p}function ff(A){var p=A.optionHandlers,x=A.helpers={};A.prototype={constructor:A,focus:function(){Yt(this).focus(),this.display.input.focus()},setOption:function(b,B){var U=this.options,q=U[b];U[b]==B&&b!="mode"||(U[b]=B,p.hasOwnProperty(b)&&$i(this,p[b])(this,B,q),Fe(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,B){this.state.keyMaps[B?"push":"unshift"](of(b))},removeKeyMap:function(b){for(var B=this.state.keyMaps,U=0;U<B.length;++U)if(B[U]==b||B[U].name==b)return B.splice(U,1),!0},addOverlay:qr(function(b,B){var U=b.token?b:A.getMode(this.options,b);if(U.startState)throw new Error("Overlays may not be stateful.");hr(this.state.overlays,{mode:U,modeSpec:b,opaque:B&&B.opaque,priority:B&&B.priority||0},function(q){return q.priority}),this.state.modeGen++,_a(this)}),removeOverlay:qr(function(b){for(var B=this.state.overlays,U=0;U<B.length;++U){var q=B[U].modeSpec;if(q==b||typeof b=="string"&&q.name==b){B.splice(U,1),this.state.modeGen++,_a(this);return}}}),indentLine:qr(function(b,B,U){typeof B!="string"&&typeof B!="number"&&(B==null?B=this.options.smartIndent?"smart":"prev":B=B?"add":"subtract"),Zt(this.doc,b)&&df(this,b,B,U)}),indentSelection:qr(function(b){for(var B=this.doc.sel.ranges,U=-1,q=0;q<B.length;q++){var ne=B[q];if(ne.empty())ne.head.line>U&&(df(this,ne.head.line,b,!0),U=ne.head.line,q==this.doc.sel.primIndex&&lo(this));else{var ue=ne.from(),ve=ne.to(),$e=Math.max(U,ue.line);U=Math.min(this.lastLine(),ve.line-(ve.ch?0:1))+1;for(var nt=$e;nt<U;++nt)df(this,nt,b);var Ot=this.doc.sel.ranges;ue.ch==0&&B.length==Ot.length&&Ot[q].from().ch>0&&Ss(this.doc,q,new Oe(ue,Ot[q].to()),St)}}}),getTokenAt:function(b,B){return _A(this,b,B)},getLineTokens:function(b,B){return _A(this,Lt(b),B,!0)},getTokenTypeAt:function(b){b=Fr(this.doc,b);var B=ss(this,Qn(this.doc,b.line)),U=0,q=(B.length-1)/2,ne=b.ch,ue;if(ne==0)ue=B[2];else for(;;){var ve=U+q>>1;if((ve?B[ve*2-1]:0)>=ne)q=ve;else if(B[ve*2+1]<ne)U=ve+1;else{ue=B[ve*2+2];break}}var $e=ue?ue.indexOf("overlay "):-1;return $e<0?ue:$e==0?null:ue.slice(0,$e-1)},getModeAt:function(b){var B=this.doc.mode;return B.innerMode?A.innerMode(B,this.getTokenAt(b).state).mode:B},getHelper:function(b,B){return this.getHelpers(b,B)[0]},getHelpers:function(b,B){var U=[];if(!x.hasOwnProperty(B))return U;var q=x[B],ne=this.getModeAt(b);if(typeof ne[B]=="string")q[ne[B]]&&U.push(q[ne[B]]);else if(ne[B])for(var ue=0;ue<ne[B].length;ue++){var ve=q[ne[B][ue]];ve&&U.push(ve)}else ne.helperType&&q[ne.helperType]?U.push(q[ne.helperType]):q[ne.name]&&U.push(q[ne.name]);for(var $e=0;$e<q._global.length;$e++){var nt=q._global[$e];nt.pred(ne,this)&&ze(U,nt.val)==-1&&U.push(nt.val)}return U},getStateAfter:function(b,B){var U=this.doc;return b=Pa(U,b??U.first+U.size-1),ia(this,b+1,B).state},cursorCoords:function(b,B){var U,q=this.doc.sel.primary();return b==null?U=q.head:typeof b=="object"?U=Fr(this.doc,b):U=b?q.from():q.to(),jt(this,U,B||"page")},charCoords:function(b,B){return sn(this,Fr(this.doc,b),B||"page")},coordsChar:function(b,B){return b=Et(this,b,B||"page"),so(this,b.left,b.top)},lineAtHeight:function(b,B){return b=Et(this,{top:b,left:0},B||"page").top,Je(this.doc,b+this.display.viewOffset)},
Line truncated
|
||||
`,Pn=Ee(cn,Ct)?"w":Ot&&cn==`
|
||||
`?"n":!Ot||/\s/.test(cn)?null:"p";if(Ot&&!Nt&&!Pn&&(Pn="s"),nt&&nt!=Pn){x<0&&(x=1,$e(),p.sticky="after");break}if(Pn&&(nt=Pn),x>0&&!$e(!Nt))break}var Vn=Os(A,p,U,q,!0);return fr(U,Vn)&&(Vn.hitSide=!0),Vn}function pf(A,p,x,b){var B=A.doc,U=p.left,q;if(b=="page"){var ne=Math.min(A.display.wrapper.clientHeight,Yt(A).innerHeight||B(A).documentElement.clientHeight),ue=Math.max(ne-.5*Ya(A.display),3);q=(x>0?p.bottom:p.top)+x*ue}else b=="line"&&(q=x>0?p.bottom+3:p.top-3);for(var ve;ve=so(A,U,q),!!ve.outside;){if(x<0?q<=0:q>=B.height){ve.hitSide=!0;break}q+=x*5}return ve}var So=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(A){var p=this,x=this,b=x.cm,B=x.div=A.lineDiv;B.contentEditable=!0,zc(B,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function U(ne){for(var ue=ne.target;ue;ue=ue.parentNode){if(ue==B)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ue.className))break}return!1}Kt(B,"paste",function(ne){!U(ne)||ce(b,ne)||cc(ne,b)||f<=11&&setTimeout($i(b,function(){return p.updateFromDOM()}),20)}),Kt(B,"compositionstart",function(ne){p.composing={data:ne.data,done:!1}}),Kt(B,"compositionupdate",function(ne){p.composing||(p.composing={data:ne.data,done:!1})}),Kt(B,"compositionend",function(ne){p.composing&&(ne.data!=p.composing.data&&p.readFromDOMSoon(),p.composing.done=!0)}),Kt(B,"touchstart",function(){return x.forceCompositionEnd()}),Kt(B,"input",function(){p.composing||p.readFromDOMSoon()});function q(ne){if(!(!U(ne)||ce(b,ne))){if(b.somethingSelected())dm({lineWise:!1,text:b.getSelections()}),ne.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ue=hf(b);dm({lineWise:!0,text:ue.text}),ne.type=="cut"&&b.operation(function(){b.setSelections(ue.ranges,0,St),b.replaceSelection("",null,"cut")})}else return;if(ne.clipboardData){ne.clipboardData.clearData();var ve=Fu.text.join(`
|
||||
`);if(ne.clipboardData.setData("Text",ve),ne.clipboardData.getData("Text")==ve){ne.preventDefault();return}}var $e=hh(),nt=$e.firstChild;zc(nt),b.display.lineSpace.insertBefore($e,b.display.lineSpace.firstChild),nt.value=Fu.text.join(`
|
||||
`);var Ot=ft(bt(B));Xe(nt),setTimeout(function(){b.display.lineSpace.removeChild($e),Ot.focus(),Ot==B&&x.showPrimarySelection()},50)}}Kt(B,"copy",q),Kt(B,"cut",q)},So.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},So.prototype.prepareSelection=function(){var A=Jn(this.cm,!1);return A.focus=ft(bt(this.div))==this.div,A},So.prototype.showSelection=function(A,p){!A||!this.cm.display.view.length||((A.focus||p)&&this.showPrimarySelection(),this.showMultipleSelections(A))},So.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},So.prototype.showPrimarySelection=function(){var A=this.getSelection(),p=this.cm,x=p.doc.sel.primary(),b=x.from(),B=x.to();if(p.display.viewTo==p.display.viewFrom||b.line>=p.display.viewTo||B.line<p.display.viewFrom){A.removeAllRanges();return}var U=Ns(p,A.anchorNode,A.anchorOffset),q=Ns(p,A.focusNode,A.focusOffset);if(!(U&&!U.bad&&q&&!q.bad&&wn(na(U,q),b)==0&&wn(ui(U,q),B)==0)){var ne=p.display.view,ue=b.line>=p.display.viewFrom&&Sd(p,b)||{node:ne[0].measure.map[2],offset:0},ve=B.line<p.display.viewTo&&Sd(p,B);if(!ve){var $e=ne[ne.length-1].measure,nt=$e.maps?$e.maps[$e.maps.length-1]:$e.map;ve={node:nt[nt.length-1],offset:nt[nt.length-2]-nt[nt.length-3]}}if(!ue||!ve){A.removeAllRanges();return}var Ot=A.rangeCount&&A.getRangeAt(0),Ct;try{Ct=yt(ue.node,ue.offset,ve.offset,ve.node)}catch{}Ct&&(!i&&p.state.focused?(A.collapse(ue.node,ue.offset),Ct.collapsed||(A.removeAllRanges(),A.addRange(Ct))):(A.removeAllRanges(),A.addRange(Ct)),Ot&&A.anchorNode==null?A.addRange(Ot):i&&this.startGracePeriod()),this.rememberSelection()}},So.prototype.startGracePeriod=function(){var A=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){A.gracePeriod=!1,A.selectionChanged()&&A.cm.operation(function(){return A.cm.curOp.selectionChanged=!0})},20)},So.prototype.showMultipleSelections=function(A){Qe(this.cm.display.cursorDiv,A.cursors),Qe(this.cm.display.selectionDiv,A.selection)},So.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},So.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var p=A.getRangeAt(0).commonAncestorContainer;return st(this.div,p)},So.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ft(bt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},So.prototype.blur=function(){this.div.blur()},So.prototype.getField=function(){return this.div},So.prototype.supportsTouch=function(){return!0},So.prototype.receivedFocus=function(){var A=this,p=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):As(this.cm,function(){return p.cm.curOp.selectionChanged=!0});function x(){p.cm.state.focused&&(p.pollSelection(),p.polling.set(p.cm.options.pollInterval,x))}this.polling.set(this.cm.options.pollInterval,x)},So.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},So.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),p=this.cm;if(Z&&E&&this.cm.display.gutterSpecs.length&&Cp(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Ns(p,A.anchorNode,A.anchorOffset),b=Ns(p,A.focusNode,A.focusOffset);x&&b&&As(p,function(){ji(p.doc,Ye(x,b),St),(x.bad||b.bad)&&(p.curOp.selectionChanged=!0)})}}},So.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,p=A.display,x=A.doc.sel.primary(),b=x.from(),B=x.to();if(b.ch==0&&b.line>A.firstLine()&&(b=Lt(b.line-1,Qn(A.doc,b.line-1).length)),B.ch==Qn(A.doc,B.line).text.length&&B.line<A.lastLine()&&(B=Lt(B.line+1,0)),b.line<p.viewFrom||B.line>p.viewTo-1)return!1;var U,q,ne;b.line==p.viewFrom||(U=JA(A,b.line))==0?(q=_e(p.view[0].line),ne=p.view[0].node):(q=_e(p.view[U].line),ne=p.view[U-1].node.nextSibling);var ue=JA(A,B.line),ve,$e;if(ue==p.view.length-1?(ve=p.viewTo-1,$e=p.lineDiv.lastChild):(ve=_e(p.view[ue+1].line)-1,$e=p.view[ue+1].node.previousSibling),!ne)return!1;for(var nt=A.doc.splitLines(cg(A,ne,$e,q,ve)),Ot=oo(A.doc,Lt(q,0),Lt(ve,Qn(A.doc,ve).text.length));nt.length>1&&Ot.length>1;)if(yn(nt)==yn(Ot))nt.pop(),Ot.pop(),ve--;else if(nt[0]==Ot[0])nt.shift(),Ot.shift(),q++;else break;for(var Ct=0,Nt=0,cn=nt[0],Pn=Ot[0],Vn=Math.min(cn.length,Pn.length);Ct<Vn&&cn.charCodeAt(Ct)==Pn.charCodeAt(Ct);)++Ct;for(var bn=yn(nt),jn=yn(Ot),lr=Math.min(bn.length-(nt.length==1?Ct:0),jn.length-(Ot.length==1?Ct:0
Line truncated
|
||||
`),Xe(B))}else return;q.type=="cut"&&(b.state.cutIncoming=+new Date)}}Kt(B,"cut",U),Kt(B,"copy",U),Kt(A.scroller,"paste",function(q){if(!(Ul(A,q)||ce(b,q))){if(!B.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ne=new Event("paste");ne.clipboardData=q.clipboardData,B.dispatchEvent(ne)}}),Kt(A.lineSpace,"selectstart",function(q){Ul(A,q)||rt(q)}),Kt(B,"compositionstart",function(){var q=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:q,range:b.markText(q,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Kt(B,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},qa.prototype.createField=function(A){this.wrapper=hh(),this.textarea=this.wrapper.firstChild;var p=this.cm.options;zc(this.textarea,p.spellcheck,p.autocorrect,p.autocapitalize)},qa.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},qa.prototype.prepareSelection=function(){var A=this.cm,p=A.display,x=A.doc,b=Jn(A);if(A.options.moveInputWithCursor){var B=jt(A,x.sel.primary().head,"div"),U=p.wrapper.getBoundingClientRect(),q=p.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(p.wrapper.clientHeight-10,B.top+q.top-U.top)),b.teLeft=Math.max(0,Math.min(p.wrapper.clientWidth-10,B.left+q.left-U.left))}return b},qa.prototype.showSelection=function(A){var p=this.cm,x=p.display;Qe(x.cursorDiv,A.cursors),Qe(x.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},qa.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var p=this.cm;if(this.resetting=!0,p.somethingSelected()){this.prevInput="";var x=p.getSelection();this.textarea.value=x,p.state.focused&&Xe(this.textarea),d&&f>=9&&(this.hasSelection=x)}else A||(this.prevInput=this.textarea.value="",d&&f>=9&&(this.hasSelection=null));this.resetting=!1}},qa.prototype.getField=function(){return this.textarea},qa.prototype.supportsTouch=function(){return!1},qa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!se||ft(bt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},qa.prototype.blur=function(){this.textarea.blur()},qa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},qa.prototype.receivedFocus=function(){this.slowPoll()},qa.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},qa.prototype.fastPoll=function(){var A=!1,p=this;p.pollingFast=!0;function x(){var b=p.poll();!b&&!A?(A=!0,p.polling.set(60,x)):(p.pollingFast=!1,p.slowPoll())}p.polling.set(20,x)},qa.prototype.poll=function(){var A=this,p=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||this.resetting||!p.state.focused||cr(x)&&!b&&!this.composing||p.isReadOnly()||p.options.disableInput||p.state.keySeq)return!1;var B=x.value;if(B==b&&!p.somethingSelected())return!1;if(d&&f>=9&&this.hasSelection===B||pe&&/[\uf700-\uf7ff]/.test(B))return p.display.input.reset(),!1;if(p.doc.sel==p.display.selForContextMenu){var U=B.charCodeAt(0);if(U==8203&&!b&&(b=""),U==8666)return this.reset(),this.cm.execCommand("undo")}for(var q=0,ne=Math.min(b.length,B.length);q<ne&&b.charCodeAt(q)==B.charCodeAt(q);)++q;return As(p,function(){k0(p,B.slice(q),b.length-q,null,A.composing?"*compose":null),B.length>1e3||B.indexOf(`
|
||||
`)>-1?x.value=A.prevInput="":A.prevInput=B,A.composing&&(A.composing.range.clear(),A.composing.range=p.markText(A.composing.start,p.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qa.prototype.onKeyPress=function(){d&&f>=9&&(this.hasSelection=null),this.fastPoll()},qa.prototype.onContextMenu=function(A){var p=this,x=p.cm,b=x.display,B=p.textarea;p.contextMenuPending&&p.contextMenuPending();var U=lu(x,A),q=b.scroller.scrollTop;if(!U||D)return;var ne=x.options.resetSelectionOnContextMenu;ne&&x.doc.sel.contains(U)==-1&&$i(x,ji)(x.doc,Ye(U),St);var ue=B.style.cssText,ve=p.wrapper.style.cssText,$e=p.wrapper.offsetParent.getBoundingClientRect();p.wrapper.style.cssText="position: static",B.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(A.clientY-$e.top-5)+"px; left: "+(A.clientX-$e.left-5)+`px;
|
||||
z-index: 1000; background: `+(d?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nt;C&&(nt=B.ownerDocument.defaultView.scrollY),b.input.focus(),C&&B.ownerDocument.defaultView.scrollTo(null,nt),b.input.reset(),x.somethingSelected()||(B.value=p.prevInput=" "),p.contextMenuPending=Ct,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Ot(){if(B.selectionStart!=null){var cn=x.somethingSelected(),Pn=""+(cn?B.value:"");B.value="⇚",B.value=Pn,p.prevInput=cn?"":"",B.selectionStart=1,B.selectionEnd=Pn.length,b.selForContextMenu=x.doc.sel}}function Ct(){if(p.contextMenuPending==Ct&&(p.contextMenuPending=!1,p.wrapper.style.cssText=ve,B.style.cssText=ue,d&&f<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=q),B.selectionStart!=null)){(!d||d&&f<9)&&Ot();var cn=0,Pn=function(){b.selForContextMenu==x.doc.sel&&B.selectionStart==0&&B.selectionEnd>0&&p.prevInput==""?$i(x,uc)(x):cn++<10?b.detectingSelectAll=setTimeout(Pn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Pn,200)}}if(d&&f>=9&&Ot(),we){et(A);var Nt=function(){rr(window,"mouseup",Nt),setTimeout(Ct,20)};Kt(window,"mouseup",Nt)}else setTimeout(Ct,50)},qa.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},qa.prototype.setUneditable=function(){},qa.prototype.needsContentAttribute=!1;function dg(A,p){if(p=p?ke(p):{},p.value=A.value,!p.tabindex&&A.tabIndex&&(p.tabindex=A.tabIndex),!p.placeholder&&A.placeholder&&(p.placeholder=A.placeholder),p.autofocus==null){var x=ft(bt(A));p.autofocus=x==A||A.getAttribute("autofocus")!=null&&x==document.body}function b(){A.value=ne.getValue()}var B;if(A.form&&(Kt(A.form,"submit",b),!p.leaveSubmitMethodAlone)){var U=A.form;B=U.submit;try{var q=U.submit=function(){b(),U.submit=B,U.submit(),U.submit=q}}catch{}}p.finishInit=function(ue){ue.save=b,ue.getTextArea=function(){return A},ue.toTextArea=function(){ue.toTextArea=isNaN,b(),A.parentNode.removeChild(ue.getWrapperElement()),A.style.display="",A.form&&(rr(A.form,"submit",b),!p.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=B))}},A.style.display="none";var ne=bo(function(ue){return A.parentNode.insertBefore(ue,A.nextSibling)},p);return ne}function Xv(A){A.off=rr,A.on=Kt,A.wheelEventPixels=ie,A.Doc=Bs,A.splitLines=Br,A.countColumn=ge,A.findColumn=mt,A.isWordChar=bi,A.Pass=ot,A.signal=Fe,A.Line=Ll,A.changeEnd=Ve,A.scrollbarModel=Yo,A.Pos=Lt,A.cmpPos=wn,A.modes=ar,A.mimeModes=hi,A.resolveMode=ho,A.getMode=li,A.modeExtensions=fo,A.extendMode=Wa,A.copyState=Ia,A.startState=as,A.innerMode=Oi,A.commands=pp,A.keyMap=kA,A.keyName=_d,A.isModifierKey=am,A.lookupKey=Du,A.normalizeKeyMap=Pu,A.StringStream=vi,A.SharedTextMarker=ih,A.TextMarker=du,A.LineWidget=sA,A.e_preventDefault=rt,A.e_stopPropagation=lt,A.e_stop=et,A.addClass=Re,A.contains=st,A.rmClass=Pe,A.keyNames=La}I0(bo),ff(bo);var T0="iter insert remove copy getEditor constructor".split(" ");for(var mf in Bs.prototype)Bs.prototype.hasOwnProperty(mf)&&ze(T0,mf)<0&&(bo.prototype[mf]=function(A){return function(){return A.apply(this.doc,arguments)}}(Bs.prototype[mf]));return je(Bs),bo.inputStyles={textarea:qa,contenteditable:So},bo.defineMode=function(A){!bo.defaults.mode&&A!="null"&&(bo.defaults.mode=A),Ri.apply(this,arguments)},bo.defineMIME=ro,bo.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),bo.defineMIME("text/plain","null"),bo.defineExtension=function(A,p){bo.prototype[A]=p},bo.defineDocExtension=function(A,p){Bs.prototype[A]=p},bo.fromTextArea=dg,Xv(bo),bo.version="5.65.16",bo})}(_6)),_6.exports}var L1e=$w();const qc=Ba(L1e);(function(n,e){(function(t){t($w())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,s=i.jsonld,d=i.json||s,f=i.trackScope!==!1,C=i.typescript,O=i.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function _e(oi){return{type:oi,style:"keyword"}}var Je=_e("keyword a"),Zt=_e("keyword b"),ln=_e("keyword c"),Lt=_e("keyword d"),wn=_e("operator"),fr={type:"atom",style:"atom"};return{if:_e("if"),while:Je,with:Je,else:Zt,do:Zt,try:Zt,finally:Zt,return:Lt,break:Lt,continue:Lt,new:_e("new"),delete:ln,void:ln,throw:ln,debugger:_e("debugger"),var:_e("var"),const:_e("var"),let:_e("var"),function:_e("function"),catch:_e("catch"),for:_e("for"),switch:_e("switch"),case:_e("case"),default:_e("default"),in:wn,typeof:wn,instanceof:wn,true:fr,false:fr,null:fr,undefined:fr,NaN:fr,Infinity:fr,this:_e("this"),class:_e("class"),super:_e("atom"),yield:ln,export:_e("export"),import:_e("import"),extends:ln,await:ln}}(),P=/[+\-*&%=<>!?|~^@]/,D=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Q(_e){for(var Je=!1,Zt,ln=!1;(Zt=_e.next())!=null;){if(!Je){if(Zt=="/"&&!ln)return;Zt=="["?ln=!0:ln&&Zt=="]"&&(ln=!1)}Je=!Je&&Zt=="\\"}}var V,$;function N(_e,Je,Zt){return V=_e,$=Zt,Je}function Z(_e,Je){var Zt=_e.next();if(Zt=='"'||Zt=="'")retur
Line truncated
|
||||
${O}`),Q].join(`
|
||||
${s}`)}return f}(n,"",0)}function R1e(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var VG={};(function(n){var e=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(o,a,s,d,f,C,O){var E=C.length-1;switch(f){case 1:this.$=o.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(o);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=C[E-1];case 13:this.$={};break;case 14:this.$=C[E-1];break;case 15:this.$=[C[E-2],C[E]];break;case 16:this.$={},this.$[C[E][0]]=C[E][1];break;case 17:this.$=C[E-2],C[E-2][C[E][0]]=C[E][1];break;case 18:this.$=[];break;case 19:this.$=C[E-1];break;case 20:this.$=[C[E]];break;case 21:this.$=C[E-2],C[E-2].push(C[E]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(o,a){throw new Error(o)},parse:function(o){var a=this,s=[0],d=[null],f=[],C=this.table,O="",E=0,P=0,D=0,Q=2,V=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var $=this.lexer.yylloc;f.push($),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function N(ye){s.length=s.length-2*ye,d.length=d.length-ye,f.length=f.length-ye}function Z(){var ye;return ye=a.lexer.lex()||1,typeof ye!="number"&&(ye=a.symbols_[ye]||ye),ye}for(var se,pe,fe,X,oe,Ce={},we,Te,Pe,he;;){if(fe=s[s.length-1],this.defaultActions[fe]?X=this.defaultActions[fe]:(se==null&&(se=Z()),X=C[fe]&&C[fe][se]),typeof X>"u"||!X.length||!X[0]){if(!D){he=[];for(we in C[fe])this.terminals_[we]&&we>2&&he.push("'"+this.terminals_[we]+"'");var Qe="";this.lexer.showPosition?Qe="Parse error on line "+(E+1)+`:
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+he.join(", ")+", got '"+this.terminals_[se]+"'":Qe="Parse error on line "+(E+1)+": Unexpected "+(se==1?"end of input":"'"+(this.terminals_[se]||se)+"'"),this.parseError(Qe,{text:this.lexer.match,token:this.terminals_[se]||se,line:this.lexer.yylineno,loc:$,expected:he})}if(D==3){if(se==V)throw new Error(Qe||"Parsing halted.");P=this.lexer.yyleng,O=this.lexer.yytext,E=this.lexer.yylineno,$=this.lexer.yylloc,se=Z()}for(;!(Q.toString()in C[fe]);){if(fe==0)throw new Error(Qe||"Parsing halted.");N(1),fe=s[s.length-1]}pe=se,se=Q,fe=s[s.length-1],X=C[fe]&&C[fe][Q],D=3}if(X[0]instanceof Array&&X.length>1)throw new Error("Parse Error: multiple actions possible at state: "+fe+", token: "+se);switch(X[0]){case 1:s.push(se),d.push(this.lexer.yytext),f.push(this.lexer.yylloc),s.push(X[1]),se=null,pe?(se=pe,pe=null):(P=this.lexer.yyleng,O=this.lexer.yytext,E=this.lexer.yylineno,$=this.lexer.yylloc,D>0&&D--);break;case 2:if(Te=this.productions_[X[1]][1],Ce.$=d[d.length-Te],Ce._$={first_line:f[f.length-(Te||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(Te||1)].first_column,last_column:f[f.length-1].last_column},oe=this.performAction.call(Ce,O,P,E,this.yy,X[1],d,f),typeof oe<"u")return oe;Te&&(s=s.slice(0,-1*Te*2),d=d.slice(0,-1*Te),f=f.slice(0,-1*Te)),s.push(this.productions_[X[1]][0]),d.push(Ce.$),f.push(Ce._$),Pe=C[s[s.length-2]][s[s.length-1]],s.push(Pe);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(a,s){if(this.yy.parseError)this.yy.parseError(a,s);else throw new Error(a)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var a=o.match(/\n/);return a&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
||||
`+a+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,a,s,d,f;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),O=0;O<C.length&&(s=this._input.match(this.rules[C[O]]),!(s&&(!a||s[0].length>a[0].length)&&(a=s,d=O,!this.options.flex)));O++);if(a)return f=a[0].match(/\n.*/g),f&&(this.yylineno+=f.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-1:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],o=this.performAction.call(this,this.yy,this,C[d],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return typeof a<"u"?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)}};return i.options={},i.performAction=function(a,s,d,f){switch(d){case 0:break;case 1:return 6;case 2:return s.yytext=s.yytext.substr(1,s.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof R1e<"u"&&(n.parser=e,n.parse=e.parse.bind(e))})(VG);const CB=Ba(VG);var ZG={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Vf,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(ge,Se){return Se={exports:{}},ge(Se,Se.exports),Se.exports}var i=r(function(ge){function Se(){var ze=0,it=1,ot=2,St=3,Rt=4,zt=5,mt=6,or=7,gn=8,yn=9,tr=10,hr=11,Er=12,$r=13,vr=14,bi=15,Ee=16,ee=17,H=0,Ke=1,At=2,Bt=3,kt=4;function Ft(g,Kt){return 55296<=g.charCodeAt(Kt)&&g.charCodeAt(Kt)<=56319&&56320<=g.charCodeAt(Kt+1)&&g.charCodeAt(Kt+1)<=57343}function fn(g,Kt){Kt===void 0&&(Kt=0);var Dr=g.charCodeAt(Kt);if(55296<=Dr&&Dr<=56319&&Kt<g.length-1){var rr=Dr,Fe=g.charCodeAt(Kt+1);return 56320<=Fe&&Fe<=57343?(rr-55296)*1024+(Fe-56320)+65536:rr}if(56320<=Dr&&Dr<=57343&&Kt>=1){var rr=g.charCodeAt(Kt-1),Fe=Dr;return 55296<=rr&&rr<=56319?(rr-55296)*1024+(Fe-56320)+65536:Fe}return Dr}function Fn(g,Kt,Dr){var rr=[g].concat(Kt).concat([Dr]),Fe=rr[rr.length-2],ce=Dr,xe=rr.lastIndexOf(vr);if(xe>1&&rr.slice(1,xe).every(function(rt){return rt==St})&&[St,$r,ee].indexOf(g)==-1)return At;var Ie=rr.lastIndexOf(Rt);if(Ie>0&&rr.slice(1,Ie).every(function(rt){return rt==Rt})&&[Er,Rt].indexOf(Fe)==-1)return rr.filter(function(rt){return rt==Rt}).length%2==1?Bt:kt;if(Fe==ze&&ce==it)return H;if(Fe==ot||Fe==ze||Fe==it)return ce==vr&&Kt.every(function(rt){return rt==St})?At:Ke;if(ce==ot||ce==ze||ce==it)return Ke;if(Fe==mt&&(ce==mt||ce==or||ce==yn||ce==tr))return H;if((Fe==yn||Fe==or)&&(ce==or||ce==gn))return H;if((Fe==tr||Fe==gn)&&ce==gn)return H;if(ce==St||ce==bi)return H;if(ce==zt)return H;if(Fe==Er)return H;var je=rr.indexOf(St)!=-1?rr.lastIndexOf(St)-1:rr.length-2;return[$r,ee].indexOf(rr[je])!=-1&&rr.slice(je+1,-1).every(function(rt){return rt==St})&&ce==vr||Fe==bi&&[Ee,ee].indexOf(ce)!=-1?H:Kt.indexOf(Rt)!=-1?At:Fe==Rt&&ce==Rt?H:Ke}this.nextBreak=function(g,Kt){if(Kt===void 0&&(Kt=0),Kt<0)return 0;if(Kt>=g.length-1)return g.length;for(var Dr=kn(fn(g,Kt)),rr=[],Fe=Kt+1;Fe<g.length;Fe++)if(!Ft(g,Fe-1)){var ce=kn(fn(g,Fe));if(Fn(Dr,rr,ce))return Fe;rr.push(ce)}return g.length},this.splitGraphemes=function(g){for(var Kt=[],Dr=0,rr;(rr=this.nextBreak(g,Dr))<g.length;)Kt.push(g.slice(Dr,rr)),Dr=rr;return Dr<g.length&&Kt.push(g.slice(Dr)),Kt},this.iterateGraphemes=function(g){var Kt=0,Dr={next:(function(){var rr,Fe;return(Fe=this.nextBreak(g,Kt))<g.length?(rr=g.slice(Kt,Fe),Kt=Fe,{value:rr,done:!1}):Kt<g.length?(rr=g.slice(Kt),Kt=g.length,{value:rr,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Dr[Symbol.iterator]=function(){return Dr}),Dr},this.countGraphemes=function(g){for(var Kt=0,Dr=0,rr;(rr=this.nextBreak(g,Dr))<g.length;)Dr=rr,Kt++;return Dr<g.length&&Kt++,Kt};function kn(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?Er:g==13?ze:g==10?it:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?ot:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<=2376||g==2381||2385<=g&&g<=2391||240
Line truncated
|
||||
`)}var gn={extraLines:2,tabSize:4},yn=function(hr,Er,$r,vr){vr=zt({},gn,vr);var bi=hr.split(/\r\n?|\n|\f/),Ee=Math.max(1,Er-vr.extraLines)-1,ee=Math.min(Er+vr.extraLines,bi.length),H=String(ee).length,Ke=or(bi,Ee,Er,H,vr),At=mt(bi[Er-1].substring(0,$r-1),Er,H,vr),Bt=ot(" ",At.length)+"^",kt=or(bi,Er,ee,H,vr);return[Ke,Bt,kt].filter(Boolean).join(`
|
||||
`)};return yn})}),f=new Error().stack,C=function(ge){var Se=Object.create(SyntaxError.prototype);return Object.assign(Se,ge,{name:"SyntaxError"}),Object.defineProperty(Se,"stack",{get:function(){return f?f.replace(/^(.+\n){1,3}/,String(Se)+`
|
||||
`):""}}),Se},O=function(ge,Se,ze,it,ot){throw C({message:it?ge+`
|
||||
`+d(Se,it,ot):ge,rawMessage:ge,source:ze,line:it,column:ot})},E={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Se){for(var ze=arguments.length,it=Array(ze>1?ze-1:0),ot=1;ot<ze;ot++)it[ot-1]=arguments[ot];return"Unexpected token <"+Se+"> at "+it.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Se){for(var ze=arguments.length,it=Array(ze>1?ze-1:0),ot=1;ot<ze;ot++)it[ot-1]=arguments[ot];return"Unexpected symbol <"+Se+"> at "+it.filter(Boolean).join(":")}},D={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},Q={"{":D.LEFT_BRACE,"}":D.RIGHT_BRACE,"[":D.LEFT_BRACKET,"]":D.RIGHT_BRACKET,":":D.COLON,",":D.COMMA},V={true:D.TRUE,false:D.FALSE,null:D.NULL},$={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},N={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},Z={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function se(ge){return ge>="1"&&ge<="9"}function pe(ge){return ge>="0"&&ge<="9"}function fe(ge){return pe(ge)||ge>="a"&&ge<="f"||ge>="A"&&ge<="F"}function X(ge){return ge==="e"||ge==="E"}function oe(ge,Se,ze,it){var ot=ge.charAt(Se);if(ot==="\r")Se++,ze++,it=1,ge.charAt(Se)===`
|
||||
`&&Se++;else if(ot===`
|
||||
`)Se++,ze++,it=1;else if(ot===" "||ot===" ")Se++,it++;else return null;return{index:Se,line:ze,column:it}}function Ce(ge,Se,ze,it){var ot=ge.charAt(Se);return ot in Q?{type:Q[ot],line:ze,column:it+1,index:Se+1,value:null}:null}function we(ge,Se,ze,it){for(var ot in V)if(V.hasOwnProperty(ot)&&ge.substr(Se,ot.length)===ot)return{type:V[ot],line:ze,column:it+ot.length,index:Se+ot.length,value:ot};return null}function Te(ge,Se,ze,it){for(var ot=Se,St=$._START_;Se<ge.length;){var Rt=ge.charAt(Se);switch(St){case $._START_:{if(Rt==='"')Se++,St=$.START_QUOTE_OR_CHAR;else return null;break}case $.START_QUOTE_OR_CHAR:{if(Rt==="\\")Se++,St=$.ESCAPE;else{if(Rt==='"')return Se++,{type:D.STRING,line:ze,column:it+Se-ot,index:Se,value:ge.slice(ot,Se)};Se++}break}case $.ESCAPE:{if(Rt in N){if(Se++,Rt==="u")for(var zt=0;zt<4;zt++){var mt=ge.charAt(Se);if(mt&&fe(mt))Se++;else return null}St=$.START_QUOTE_OR_CHAR}else return null;break}}}}function Pe(ge,Se,ze,it){var ot=Se,St=Se,Rt=Z._START_;e:for(;Se<ge.length;){var zt=ge.charAt(Se);switch(Rt){case Z._START_:{if(zt==="-")Rt=Z.MINUS;else if(zt==="0")St=Se+1,Rt=Z.ZERO;else if(se(zt))St=Se+1,Rt=Z.DIGIT;else return null;break}case Z.MINUS:{if(zt==="0")St=Se+1,Rt=Z.ZERO;else if(se(zt))St=Se+1,Rt=Z.DIGIT;else return null;break}case Z.ZERO:{if(zt===".")Rt=Z.POINT;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.DIGIT:{if(pe(zt))St=Se+1;else if(zt===".")Rt=Z.POINT;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.POINT:{if(pe(zt))St=Se+1,Rt=Z.DIGIT_FRACTION;else break e;break}case Z.DIGIT_FRACTION:{if(pe(zt))St=Se+1;else if(X(zt))Rt=Z.EXP;else break e;break}case Z.EXP:{if(zt==="+"||zt==="-")Rt=Z.EXP_DIGIT_OR_SIGN;else if(pe(zt))St=Se+1,Rt=Z.EXP_DIGIT_OR_SIGN;else break e;break}case Z.EXP_DIGIT_OR_SIGN:{if(pe(zt))St=Se+1;else break e;break}}Se++}return St>0?{type:D.NUMBER,line:ze,column:it+St-ot,index:St,value:ge.slice(ot,St)}:null}var he=function(Se,ze){for(var it=1,ot=1,St=0,Rt=[];St<Se.length;){var zt=[Se,St,it,ot],mt=oe.apply(void 0,zt);if(mt){St=mt.index,it=mt.line,ot=mt.column;continue}var or=Ce.apply(void 0,zt)||we.apply(void 0,zt)||Te.apply(void 0,zt)||Pe.apply(void 0,zt);if(or){var gn={type:or.type,value:or.value,loc:s(it,ot,St,or.line,or.column,or.index,ze.source)};Rt.push(gn),St=or.index,it=or.line,ot=or.column}else O(P.unexpectedSymbol(a(Se,St,St+1),ze.source,it,ot),Se,ze.source,it,ot)}return Rt},Qe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},ye={_START_:0,KEY:1,COLON:2},gt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},yt={loc:!0,source:null};function st(ge,Se,ze){var it=Se.length>0?Se[Se.length-1].loc.end:{line:1,column:1};O(E.unexpectedEnd(),ge,ze.source,it.line,it.column)}function ft(ge){for(var Se=0,ze=0;ze<4;ze++)Se=Se*16+parseInt(ge[ze],16);return String.fromCharCode(Se)}var Re={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},He=['"',"\\","/"];function Xe(ge){for(var Se="",ze=0;ze<ge.length;ze++){var it=ge.charAt(ze);if(it==="\\"){ze++;var ot=ge.charAt(ze);if(ot==="u")Se+=ft(ge.substr(ze+1,4)),ze+=4;else if(He.indexOf(ot)!==-1)Se+=ot;else if(ot in Re)Se+=Re[ot];else break}else Se+=it}return Se}function Jt(ge,Se,ze,it){for(var ot=void 0,St={type:"Object",children:[]},Rt=Qe._START_;ze<Se.length;){var zt=Se[ze];switch(Rt){case Qe._START_:{if(zt.type===D.LEFT_BRACE)ot=zt,Rt=Qe.OPEN_OBJECT,ze++;else return null;break}case Qe.OPEN_OBJECT:{if(zt.type===D.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};var mt=Vt(ge,Se,ze,it);St.children.push(mt.value),Rt=Qe.PROPERTY,ze=mt.index;break}case Qe.PROPERTY:{if(zt.type===D.RIGHT_BRACE)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};zt.type===D.COMMA?(Rt=Qe.COMMA,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case Qe.COMMA:{var or=Vt(ge,Se,ze,it);or?(ze=or.index,St.children.push(or.value),Rt=Qe.PROPERTY):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}}}st(ge,Se,it)}function Vt(ge,Se,ze,it){for(var ot=void 0,St={type:"Property",key:null,value:null},Rt=ye._START_;ze<Se.length;){var zt=Se[ze];switch(Rt){case ye._START_:{if(zt.type===D.STRING){var mt={type:"Identifier",value:Xe(ge.slice(zt.loc.start.offset+1,zt.loc.end.offset-1)),raw:zt.value};it.loc&&(mt.loc=zt.loc),ot=zt,St.key=mt,Rt=ye.KEY,ze++}else return null;break}case ye.KEY:{zt.type===D.COLON?(Rt=ye.COLON,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case ye.COLON:{var or=qt(ge,Se,ze,it);return St.value=or.value,it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,or.value.loc.end.line,or.value.loc.end.column,or.value.loc.end.offset,it.source)),{value:St,index:or.index}}}}}function bt(ge,Se,ze,it){for(var ot=void 0,St={type:"Array",children:[]},Rt=gt._START_,zt=void 0;ze<Se.length;)switch(zt=Se[ze],Rt){case gt._START_:{if(zt.type===D.LEFT_BRACKET)ot=zt,Rt=gt.OPEN_ARRAY,ze++;else return null;break}case gt.OPEN_ARRAY:{if(zt.type===D.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};var mt=qt(ge,Se,ze,it);ze=mt.index,St.children.push(mt.value),Rt=gt.VALUE;break}case gt.VALUE:{if(zt.type===D.RIGHT_BRACKET)return it.loc&&(St.loc=s(ot.loc.start.line,ot.loc.start.column,ot.loc.start.offset,zt.loc.end.line,zt.loc.end.column,zt.loc.end.offset,it.source)),{value:St,index:ze+1};zt.type===D.COMMA?(Rt=gt.COMMA,ze++):O(E.unexpectedToken(a(ge,zt.loc.start.offset,zt.loc.end.offset),it.source,zt.loc.start.line,zt.loc.start.column),ge,it.source,zt.loc.start.line,zt.loc.start.column);break}case gt.COMMA:{var or=qt(ge,Se,ze,it);ze=or.index,St.children.push(or.value),Rt=gt.VALUE;break}}st(ge,Se,it)}function Yt(ge,Se,ze,it){var ot=Se[ze],St=null;switch(ot.type){case D.STRING:{St=Xe(ge.slice(ot.loc.start.offset+1,ot.loc.end.offset-1));break}case D.NUMBER:{St=Number(ot.value);break}case D.TRUE:{St=!0;break}case D.FALSE:{St=!1;break}case D.NULL:{St=null;break}default:return null}var Rt={type:"Literal",value:St,raw:ot.value};return it.loc&&(Rt.loc=ot.loc),{value:Rt,index:ze+1}}function qt(ge,Se,ze,it){var ot=Se[ze],St=Yt.apply(void 0,arguments)||Jt.apply(void 0,arguments)||bt.apply(void 0,arguments);if(St)return St;O(E.unexpectedToken(a(ge,ot.loc.start.offset,ot.loc.end.offset),it.source,ot.loc.start.line,ot.loc.start.column),ge,it.source,ot.loc.start.line,ot.loc.start.column)}var ke=function(ge,Se){Se=Object.assign({},yt,Se);var ze=he(ge,Se);ze.length===0&&st(ge,ze,Se);var it=qt(ge,ze,0,Se);if(it.index===ze.length)return it.value;var ot=ze[it.index];O(E.unexpectedToken(a(ge,ot.loc.start.offset,ot.loc.end.offset),Se.source,ot.loc.start.line,ot.loc.start.column),ge,Se.source,ot.loc.start.line,ot.loc.start.column)};return ke})})(ZG);var z1e=ZG.exports;const j1e=Ba(z1e);function In(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="a994e12e3e6547813b669a430e6cb42da5d99bba",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:11,column:0},end:{line:26,column:3}},3:{start:{line:12,column:16},end:{line:12,column:18}},4:{start:{line:13,column:2},end:{line:20,column:4}},5:{sta
Line truncated
|
||||
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:i.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+i.r+","+i.g+","+i.b+`, 0) 0%,
|
||||
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:Y6e({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return Sm.default.createElement("div",{style:o.alpha},Sm.default.createElement("div",{style:o.checkboard},Sm.default.createElement(eEe.default,{renderers:this.props.renderers})),Sm.default.createElement("div",{style:o.gradient}),Sm.default.createElement("div",{style:o.container,ref:function(s){return r.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Sm.default.createElement("div",{style:o.pointer},this.props.pointer?Sm.default.createElement(this.props.pointer,this.props):Sm.default.createElement("div",{style:o.slider}))))}}]),e}(OB.PureComponent||OB.Component);Ax.default=iEe;var cx={};Object.defineProperty(cx,"__esModule",{value:!0});cx.EditableInput=void 0;var oEe=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),BB=Gn,O6=l$(BB),aEe=Vs,sEe=l$(aEe);function l$(n){return n&&n.__esModule?n:{default:n}}function lEe(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function uEe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function AEe(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function cEe(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}var dEe=1,u$=38,hEe=40,fEe=[u$,hEe],pEe=function(e){return fEe.indexOf(e)>-1},mEe=function(e){return Number(String(e).replace(/%/g,""))},gEe=1,yEe=cx.EditableInput=function(n){cEe(e,n);function e(t){uEe(this,e);var r=AEe(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(i){r.setUpdatedValue(i.target.value,i)},r.handleKeyDown=function(i){var o=mEe(i.target.value);if(!isNaN(o)&&pEe(i.keyCode)){var a=r.getArrowOffset(),s=i.keyCode===u$?o+a:o-a;r.setUpdatedValue(s,i)}},r.handleDrag=function(i){if(r.props.dragLabel){var o=Math.round(r.props.value+i.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),i)}},r.handleMouseDown=function(i){r.props.dragLabel&&(i.preventDefault(),r.handleDrag(i),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+gEe++,r}return oEe(e,[{key:"componentDidUpdate",value:function(r,i){this.props.value!==this.state.value&&(r.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return lEe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||dEe}},{key:"setUpdatedValue",value:function(r,i){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,i),this.setState({value:r})}},{key:"render",value:function(){var r=this,i=(0,sEe.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 O6.default.createElement("div",{style:i.wrap},O6.default.createElement("input",{id:this.inputId,style:i.input,ref:function(a){return r.input=a},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?O6.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(BB.PureComponent||BB.Component);cx.default=yEe;var dx=
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%);
|
||||
}
|
||||
`),Gg.default.createElement("div",{style:a.pointer},this.props.pointer?Gg.default.createElement(this.props.pointer,this.props):Gg.default.createElement("div",{style:a.slider}))))}}]),e}(IB.PureComponent||IB.Component);dx.default=EEe;var hx={};Object.defineProperty(hx,"__esModule",{value:!0});hx.Raised=void 0;var OEe=Gn,B6=sM(OEe),BEe=Lh,J2=sM(BEe),IEe=Vs,kEe=sM(IEe),TEe=i$,KEe=sM(TEe);function sM(n){return n&&n.__esModule?n:{default:n}}var mk=hx.Raised=function(e){var t=e.zDepth,r=e.radius,i=e.background,o=e.children,a=e.styles,s=a===void 0?{}:a,d=(0,kEe.default)((0,KEe.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+t*4+"px rgba(0,0,0,.24)",borderRadius:r,background:i}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},s),{"zDepth-1":t===1});return B6.default.createElement("div",{style:d.wrap},B6.default.createElement("div",{style:d.bg}),B6.default.createElement("div",{style:d.content},o))};mk.propTypes={background:J2.default.string,zDepth:J2.default.oneOf([0,1,2,3,4,5]),radius:J2.default.number,styles:J2.default.object};mk.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};hx.default=mk;var fx={},PEe=Rh,DEe=function(){return PEe.Date.now()},FEe=DEe,LEe=/\s/;function UEe(n){for(var e=n.length;e--&&LEe.test(n.charAt(e)););return e}var REe=UEe,zEe=REe,jEe=/^\s+/;function NEe(n){return n&&n.slice(0,zEe(n)+1).replace(jEe,"")}var WEe=NEe,GEe=WEe,VD=qd,QEe=rM,ZD=NaN,$Ee=/^[-+]0x[0-9a-f]+$/i,YEe=/^0b[01]+$/i,qEe=/^0o[0-7]+$/i,HEe=parseInt;function VEe(n){if(typeof n=="number")return n;if(QEe(n))return ZD;if(VD(n)){var e=typeof n.valueOf=="function"?n.valueOf():n;n=VD(e)?e+"":e}if(typeof n!="string")return n===0?n:+n;n=GEe(n);var t=YEe.test(n);return t||qEe.test(n)?HEe(n.slice(2),t?2:8):$Ee.test(n)?ZD:+n}var ZEe=VEe,XEe=qd,I6=FEe,XD=ZEe,JEe="Expected a function",eOe=Math.max,tOe=Math.min;function nOe(n,e,t){var r,i,o,a,s,d,f=0,C=!1,O=!1,E=!0;if(typeof n!="function")throw new TypeError(JEe);e=XD(e)||0,XEe(t)&&(C=!!t.leading,O="maxWait"in t,o=O?eOe(XD(t.maxWait)||0,e):o,E="trailing"in t?!!t.trailing:E);function P(fe){var X=r,oe=i;return r=i=void 0,f=fe,a=n.apply(oe,X),a}function D(fe){return f=fe,s=setTimeout($,e),C?P(fe):a}function Q(fe){var X=fe-d,oe=fe-f,Ce=e-X;return O?tOe(Ce,o-oe):Ce}function V(fe){var X=fe-d,oe=fe-f;return d===void 0||X>=e||X<0||O&&oe>=o}function $(){var fe=I6();if(V(fe))return N(fe);s=setTimeout($,Q(fe))}function N(fe){return s=void 0,E&&r?P(fe):(r=i=void 0,a)}function Z(){s!==void 0&&clearTimeout(s),f=0,r=d=i=s=void 0}function se(){return s===void 0?a:N(I6())}function pe(){var fe=I6(),X=V(fe);if(r=arguments,i=this,d=fe,X){if(s===void 0)return D(d);if(O)return clearTimeout(s),s=setTimeout($,e),P(d)}return s===void 0&&(s=setTimeout($,e)),a}return pe.cancel=Z,pe.flush=se,pe}var c$=nOe,rOe=c$,iOe=qd,oOe="Expected a function";function aOe(n,e,t){var r=!0,i=!0;if(typeof n!="function")throw new TypeError(oOe);return iOe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),rOe(n,e,{leading:r,maxWait:e,trailing:i})}var sOe=aOe,gk={};Object.defineProperty(gk,"__esModule",{value:!0});gk.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),o=i.width,a=i.height,s=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,d=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,f=s-(r.getBoundingClientRect().left+window.pageXOffset),C=d-(r.getBoundingClientRect().top+window.pageYOffset);f<0?f=0:f>o&&(f=o),C<0?C=0:C>a&&(C=a);var O=f/o,E=1-C/a;return{h:t.h,s:O,v:E,a:t.a,source:"hsv"}};Object.defineProperty(fx,"__esModule",{value:!0});fx.Saturation=void 0;var lOe=function(){function n(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),kB=Gn,Y0=yk(kB),uOe=Vs,AOe=yk(uOe),cOe=sOe,dOe=yk(cOe),hOe=gk,fOe=pOe(hOe);function pOe(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e.default=n,e}function yk(n){return n&&n.__esModule?n:{default:n}}function mOe(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function gOe(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:n}function yOe(n,e){if(typeof e!="function"&&e!==null)throw new Typ
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:a,black:s,pointer:d,circle:f}},{custom:!!this.props.style});return Y0.default.createElement("div",{style:C.color,ref:function(E){return r.container=E},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},Y0.default.createElement("style",null,`
|
||||
.saturation-white {
|
||||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
}
|
||||
.saturation-black {
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),Y0.default.createElement("div",{style:C.white,className:"saturation-white"},Y0.default.createElement("div",{style:C.black,className:"saturation-black"}),Y0.default.createElement("div",{style:C.pointer},this.props.pointer?Y0.default.createElement(this.props.pointer,this.props):Y0.default.createElement("div",{style:C.circle}))))}}]),e}(kB.PureComponent||kB.Component);fx.default=vOe;var px={},zA={},COe=NQ,_Oe=jQ,bOe=_Q,xOe=sd;function wOe(n,e){var t=xOe(n)?COe:_Oe;return t(n,bOe(e))}var MOe=wOe,SOe=MOe,d$={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(Vf,function(){function t(ke){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},t(ke)}var r=/^\s+/,i=/\s+$/;function o(ke,ge){if(ke=ke||"",ge=ge||{},ke instanceof o)return ke;if(!(this instanceof o))return new o(ke,ge);var Se=a(ke);this._originalInput=ke,this._r=Se.r,this._g=Se.g,this._b=Se.b,this._a=Se.a,this._roundA=Math.round(100*this._a)/100,this._format=ge.format||Se.format,this._gradientType=ge.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Se.ok}o.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var ge=this.toRgb();return(ge.r*299+ge.g*587+ge.b*114)/1e3},getLuminance:function(){var ge=this.toRgb(),Se,ze,it,ot,St,Rt;return Se=ge.r/255,ze=ge.g/255,it=ge.b/255,Se<=.03928?ot=Se/12.92:ot=Math.pow((Se+.055)/1.055,2.4),ze<=.03928?St=ze/12.92:St=Math.pow((ze+.055)/1.055,2.4),it<=.03928?Rt=it/12.92:Rt=Math.pow((it+.055)/1.055,2.4),.2126*ot+.7152*St+.0722*Rt},setAlpha:function(ge){return this._a=Qe(ge),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var ge=C(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,v:ge.v,a:this._a}},toHsvString:function(){var ge=C(this._r,this._g,this._b),Se=Math.round(ge.h*360),ze=Math.round(ge.s*100),it=Math.round(ge.v*100);return this._a==1?"hsv("+Se+", "+ze+"%, "+it+"%)":"hsva("+Se+", "+ze+"%, "+it+"%, "+this._roundA+")"},toHsl:function(){var ge=d(this._r,this._g,this._b);return{h:ge.h*360,s:ge.s,l:ge.l,a:this._a}},toHslString:function(){var ge=d(this._r,this._g,this._b),Se=Math.round(ge.h*360),ze=Math.round(ge.s*100),it=Math.round(ge.l*100);return this._a==1?"hsl("+Se+", "+ze+"%, "+it+"%)":"hsla("+Se+", "+ze+"%, "+it+"%, "+this._roundA+")"},toHex:function(ge){return E(this._r,this._g,this._b,ge)},toHexString:function(ge){return"#"+this.toHex(ge)},toHex8:function(ge){return P(this._r,this._g,this._b,this._a,ge)},toHex8String:function(ge){return"#"+this.toHex8(ge)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(ye(this._r,255)*100)+"%",g:Math.round(ye(this._g,255)*100)+"%",b:Math.round(ye(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(ye(this._r,255)*100)+"%, "+Math.round(ye(this._g,255)*100)+"%, "+Math.round(ye(this._b,255)*100)+"%)":"rgba("+Math.round(ye(this._r,255)*100)+"%, "+Math.round(ye(this._g,255)*100)+"%, "+Math.round(ye(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Pe[E(this._r,this._g,this._b,!0)]||!1},toFilter:function(ge){var Se="#"+D(this._r,this._g,this._b,this._a),ze=Se,it=this._gradientType?"GradientType = 1, ":"";if(ge){var ot=o(ge);ze="#"+D(ot._r,ot._g,ot._b,ot._a)}return"progid:DXImageTransform.Microsoft.gradient("+it+"startColorstr="+Se+",endColorstr="+ze+")"},toString:function(ge){var Se=!!ge;ge=ge||this._format;var ze=!1,it=this._a<1&&this._a>=0,ot=!Se&&it&&(ge==="hex"||ge==="hex6"||ge==="hex3"||ge==="hex4"||ge==="hex8"||ge==="name");return ot?ge==="name"&&this._a===0?this.toName():this.toRgbString():(ge==="rgb"&&(ze=this.toRgbString()),ge==="prgb"&&(ze=this.toPercentageRgbString()),(ge==="hex"||ge==="hex6")&&(ze=this.toHexString()),ge==="hex3"&&(ze=this.toHexString(!0)),ge==="hex4"&&(ze=this.toHex8String(!0)),ge==="hex8"&&(ze=this.toHex8String()),ge==="name"&&(ze=this.toName()),ge==="hsl"&&(ze=this.toHslString()),ge==="hsv"&&(ze=this.toHsvString()),ze||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(ge,Se){var ze=ge.apply(null,[this].concat([].slice.call(Se)));return this._r=ze._r,this._g=ze._g,this._b=ze._b,this.setAlpha(ze._a),this},lighten:function(){return this._
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>${t}</title>
|
||||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${vF}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${vF}/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=(dr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(dr().s[10]++,this.exportName());dr().s[11]++,yF.saveAs(i,o+".html")}async saveStyle(){dr().f[3]++;const e=(dr().s[12]++,this.tokenizedStyle());if(dr().s[13]++,CF)dr().b[2][1]++;else{dr().b[2][0]++;const i=(dr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),o=(dr().s[15]++,this.exportName());dr().s[16]++,yF.saveAs(i,o+".json"),dr().s[17]++;return}let t=(dr().s[18]++,this.props.fileHandle);if(dr().s[19]++,t==null)if(dr().b[3][0]++,dr().s[20]++,t=await this.createFileHandle(),dr().s[21]++,this.props.onSetFileHandle(t),dr().s[22]++,t==null){dr().b[4][0]++,dr().s[23]++;return}else dr().b[4][1]++;else dr().b[3][1]++;const r=(dr().s[24]++,await t.createWritable());dr().s[25]++,await r.write(e),dr().s[26]++,await r.close(),dr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){dr().f[4]++;const e=(dr().s[28]++,this.tokenizedStyle()),t=(dr().s[29]++,await this.createFileHandle());if(dr().s[30]++,this.props.onSetFileHandle(t),dr().s[31]++,t==null){dr().b[5][0]++,dr().s[32]++;return}else dr().b[5][1]++;const r=(dr().s[33]++,await t.createWritable());dr().s[34]++,await r.write(e),dr().s[35]++,await r.close(),dr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){dr().f[5]++;const e=(dr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(dr().s[38]++,await window.showSaveFilePicker(e));return dr().s[39]++,this.props.onSetFileHandle(t),dr().s[40]++,t}changeMetadataProperty(e,t){dr().f[6]++;const r=(dr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});dr().s[42]++,this.props.onStyleChanged(r)}render(){dr().f[7]++;const e=(dr().s[43]++,this.props.t),t=(dr().s[44]++,K$(e));return dr().s[45]++,G.jsx(g0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:G.jsxs("section",{className:"maputnik-modal-section",children:[G.jsx("h1",{children:e("Save Style")}),G.jsx("p",{children:e("Save the JSON style to your computer.")}),G.jsxs("div",{children:[G.jsx(kf,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(dr().b[6][0]++,this.props.mapStyle.metadata||(dr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),G.jsx(kf,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(dr().b[7][0]++,this.props.mapStyle.metadata||(dr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),G.jsx(kf,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(dr().b[8][0]++,this.props.mapStyle.metadata||(dr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),G.jsxs("div",{className:"maputnik-modal-export-buttons",children:[G.jsxs(Ta,{onClick:this.saveStyle.bind(this),children:[G.jsx(uO,{}),e("Save")]}),(dr().b[9][0]++,CF&&(dr().b[9][1]++,G.jsxs(Ta,{onClick:this.saveStyleAs.bind(this),children:[G.jsx(uO,{}),e("Save as")]}))),G.jsxs(Ta,{onClick:this.createHtml.bind(this),children:[G.jsx(Sre,{}),e("Create HTML")]})]})]})})}}const B8e=(dr().s[46]++,Wo()(O8e));function O5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},o=t[r]||(t[r]={});(!o[n]||o[n].hash!==e)&&(o[n]=i);var a=o[n];return O5=function(){return a},a}O5();class R$ extends Sn.Component{render(){return O5().f[0]++,O5().s[0]++,G.jsx(Eb,{label:this.props.label,children:G.jsx(_$,{...this.props})})}}function B5(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,col
Line truncated
|
||||
`)>=0)return!1;return!0}function Wke(n,e){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=Tf.call(Array(n.indent+1)," ");else return null;return{base:t,prev:Tf.call(Array(e+1),t)}}function RB(n,e){if(n.length===0)return"";var t=`
|
||||
`+e.prev+e.base;return t+Tf.call(n,","+t)+`
|
||||
`+e.prev}function i3(n,e){var t=UB(n),r=[];if(t){r.length=n.length;for(var i=0;i<n.length;i++)r[i]=Km(n,i)?e(n[i],n):""}var o=typeof W6=="function"?W6(n):[],a;if(wv){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var d in n)Km(n,d)&&(t&&String(Number(d))===d&&d<n.length||wv&&a["$"+d]instanceof Symbol||(X$.call(/[^\w$]/,d)?r.push(e(d,n)+": "+e(n[d],n)):r.push(d+": "+e(n[d],n))));if(typeof W6=="function")for(var f=0;f<o.length;f++)J$.call(n,o[f])&&r.push("["+e(o[f])+"]: "+e(n[o[f]],n));return r}var iY=Yv,qv=dke,Gke=Mke,Qke=Cx,o3=iY("%WeakMap%",!0),a3=iY("%Map%",!0),$ke=qv("WeakMap.prototype.get",!0),Yke=qv("WeakMap.prototype.set",!0),qke=qv("WeakMap.prototype.has",!0),Hke=qv("Map.prototype.get",!0),Vke=qv("Map.prototype.set",!0),Zke=qv("Map.prototype.has",!0),Tk=function(n,e){for(var t=n,r;(r=t.next)!==null;t=r)if(r.key===e)return t.next=r.next,r.next=n.next,n.next=r,r},Xke=function(n,e){var t=Tk(n,e);return t&&t.value},Jke=function(n,e,t){var r=Tk(n,e);r?r.value=t:n.next={key:e,next:n.next,value:t}},e9e=function(n,e){return!!Tk(n,e)},t9e=function(){var e,t,r,i={assert:function(o){if(!i.has(o))throw new Qke("Side channel does not contain "+Gke(o))},get:function(o){if(o3&&o&&(typeof o=="object"||typeof o=="function")){if(e)return $ke(e,o)}else if(a3){if(t)return Hke(t,o)}else if(r)return Xke(r,o)},has:function(o){if(o3&&o&&(typeof o=="object"||typeof o=="function")){if(e)return qke(e,o)}else if(a3){if(t)return Zke(t,o)}else if(r)return e9e(r,o);return!1},set:function(o,a){o3&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new o3),Yke(e,o,a)):a3?(t||(t=new a3),Vke(t,o,a)):(r||(r={key:{},next:null}),Jke(r,o,a))}};return i},n9e=String.prototype.replace,r9e=/%20/g,Q6={RFC1738:"RFC1738",RFC3986:"RFC3986"},Kk={default:Q6.RFC3986,formatters:{RFC1738:function(n){return n9e.call(n,r9e,"+")},RFC3986:function(n){return String(n)}},RFC1738:Q6.RFC1738,RFC3986:Q6.RFC3986},i9e=Kk,$6=Object.prototype.hasOwnProperty,l1=Array.isArray,xf=function(){for(var n=[],e=0;e<256;++e)n.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return n}(),o9e=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(l1(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);t.obj[t.prop]=i}}},oY=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<e.length;++i)typeof e[i]<"u"&&(r[i]=e[i]);return r},a9e=function n(e,t,r){if(!t)return e;if(typeof t!="object"){if(l1(e))e.push(t);else if(e&&typeof e=="object")(r&&(r.plainObjects||r.allowPrototypes)||!$6.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var i=e;return l1(e)&&!l1(t)&&(i=oY(e,r)),l1(e)&&l1(t)?(t.forEach(function(o,a){if($6.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=n(s,o,r):e.push(o)}else e[a]=o}),e):Object.keys(t).reduce(function(o,a){var s=t[a];return $6.call(o,a)?o[a]=n(o[a],s,r):o[a]=s,o},i)},s9e=function(e,t){return Object.keys(t).reduce(function(r,i){return r[i]=t[i],r},e)},l9e=function(n,e,t){var r=n.replace(/\+/g," ");if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},u9e=function(e,t,r,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),r==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var s="",d=0;d<a.length;++d){var f=a.charCodeAt(d);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===i9e.RFC1738&&(f===40||f===41)){s+=a.charAt(d);continue}if(f<128){s=s+xf[f];continue}if(f<2048){s=s+(xf[192|f>>6]+xf[128|f&63]);continue}if(f<55296||f>=57344){s=s+(xf[224|f>>12]+xf[128|f>>6&63]+xf[128|f&63]);continue}d+=1,f=65536+((f&1023)<<10|a.charCodeAt(d)&1023),s+=xf[240|f>>18]+xf[128|f>>12&63]+xf[128|f>>6&63]+xf[128|f&63]}return s},A9e=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],a=o.obj[o.prop],s=Object.keys(a),d=0;d<s.length;++d){var f=s[d],C=a[f];typeof C=="object"&&C!==null&&r.indexOf(C)===-1&&(t.push({obj:a,prop:f}),r.push(C))}return o9e(t),e},c9e=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},d9e=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},h9e=function(e,t){return[].concat(e,t)},f9e=function(e,t){if(l1(e)){for(var r=[],i=0;i<e.length;i+=1)r.push(t(e[i]));return r}return t(e)},aY={arrayToObject:oY,assign:s9e,combine:h9e,compact:A9e,decode:l9e,encode:u9e,isBuffer:d9e,isRegExp:c9e,maybeMap:f9e,merge:a9e},sY=t9e,P3=aY,L_=Kk,p9e=Object.prototype.hasOwnProperty,lY={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},If=Array.isArray,m9e=Array.prototype.push,uY=function(n,e){m9e.apply(n,If(e)?e:[e])},g9e=Date.prototype.toISOString,QF=L_.default,Hl={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"in
Line truncated
|
||||
`," "],z9e=["{","}","|","\\","^","`"].concat(R9e),jB=["'"].concat(z9e),$F=["%","/","?",";","#"].concat(jB),YF=["/","?","#"],j9e=255,qF=/^[+a-z0-9A-Z_-]{0,63}$/,N9e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,W9e={javascript:!0,"javascript:":!0},NB={javascript:!0,"javascript:":!0},ov={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},WB=P9e;function bx(n,e,t){if(n&&typeof n=="object"&&n instanceof Nd)return n;var r=new Nd;return r.parse(n,e,t),r}Nd.prototype.parse=function(n,e,t){if(typeof n!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var r=n.indexOf("?"),i=r!==-1&&r<n.indexOf("#")?"?":"#",o=n.split(i),a=/\\/g;o[0]=o[0].replace(a,"/"),n=o.join(i);var s=n;if(s=s.trim(),!t&&n.split("#").length===1){var d=U9e.exec(s);if(d)return this.path=s,this.href=s,this.pathname=d[1],d[2]?(this.search=d[2],e?this.query=WB.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var f=F9e.exec(s);if(f){f=f[0];var C=f.toLowerCase();this.protocol=C,s=s.substr(f.length)}if(t||f||s.match(/^\/\/[^@/]+@[^@/]+/)){var O=s.substr(0,2)==="//";O&&!(f&&NB[f])&&(s=s.substr(2),this.slashes=!0)}if(!NB[f]&&(O||f&&!ov[f])){for(var E=-1,P=0;P<YF.length;P++){var D=s.indexOf(YF[P]);D!==-1&&(E===-1||D<E)&&(E=D)}var Q,V;E===-1?V=s.lastIndexOf("@"):V=s.lastIndexOf("@",E),V!==-1&&(Q=s.slice(0,V),s=s.slice(V+1),this.auth=decodeURIComponent(Q)),E=-1;for(var P=0;P<$F.length;P++){var D=s.indexOf($F[P]);D!==-1&&(E===-1||D<E)&&(E=D)}E===-1&&(E=s.length),this.host=s.slice(0,E),s=s.slice(E),this.parseHost(),this.hostname=this.hostname||"";var $=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!$)for(var N=this.hostname.split(/\./),P=0,Z=N.length;P<Z;P++){var se=N[P];if(se&&!se.match(qF)){for(var pe="",fe=0,X=se.length;fe<X;fe++)se.charCodeAt(fe)>127?pe+="x":pe+=se[fe];if(!pe.match(qF)){var oe=N.slice(0,P),Ce=N.slice(P+1),we=se.match(N9e);we&&(oe.push(we[1]),Ce.unshift(we[2])),Ce.length&&(s="/"+Ce.join(".")+s),this.hostname=oe.join(".");break}}}this.hostname.length>j9e?this.hostname="":this.hostname=this.hostname.toLowerCase(),$||(this.hostname=D9e.toASCII(this.hostname));var Te=this.port?":"+this.port:"",Pe=this.hostname||"";this.host=Pe+Te,this.href+=this.host,$&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),s[0]!=="/"&&(s="/"+s))}if(!W9e[C])for(var P=0,Z=jB.length;P<Z;P++){var he=jB[P];if(s.indexOf(he)!==-1){var Qe=encodeURIComponent(he);Qe===he&&(Qe=escape(he)),s=s.split(he).join(Qe)}}var ye=s.indexOf("#");ye!==-1&&(this.hash=s.substr(ye),s=s.slice(0,ye));var gt=s.indexOf("?");if(gt!==-1?(this.search=s.substr(gt),this.query=s.substr(gt+1),e&&(this.query=WB.parse(this.query)),s=s.slice(0,gt)):e&&(this.search="",this.query={}),s&&(this.pathname=s),ov[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Te=this.pathname||"",yt=this.search||"";this.path=Te+yt}return this.href=this.format(),this};function G9e(n){return typeof n=="string"&&(n=bx(n)),n instanceof Nd?n.format():Nd.prototype.format.call(n)}Nd.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var e=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=n+this.host:this.hostname&&(i=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=WB.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||o&&"?"+o||"";return e&&e.substr(-1)!==":"&&(e+=":"),this.slashes||(!e||ov[e])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),a&&a.charAt(0)!=="?"&&(a="?"+a),t=t.replace(/[?#]/g,function(s){return encodeURIComponent(s)}),a=a.replace("#","%23"),e+i+t+a+r};function Q9e(n,e){return bx(n,!1,!0).resolve(e)}Nd.prototype.resolve=function(n){return this.resolveObject(bx(n,!1,!0)).format()};function $9e(n,e){return n?bx(n,!1,!0).resolveObject(e):e}Nd.prototype.resolveObject=function(n){if(typeof n=="string"){var e=new Nd;e.parse(n,!1,!0),n=e}for(var t=new Nd,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=n.hash,n.href==="")return t.href=t.format(),t;if(n.slashes&&!n.protocol){for(var a=Object.keys(n),s=0;s<a.length;s++){var d=a[s];d!=="protocol"&&(t[d]=n[d])}return ov[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(n.protocol&&n.protocol!==t.protocol){if(!ov[n.protocol]){for(var f=Object.keys(n),C=0;C<f.length;C++){var O=f[C];t[O]=n[O]}return t.href=t.format(),t}if(t.protocol=n.protocol,!n.host&&!NB[n.protocol]){for(var Z=(n.pathname||"").split("/");Z.length&&!(n.host=Z.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),Z[0]!==""&&Z.unshift(""),Z.length<2&&Z.unshift(""),t.pathname=Z.join("/")}else t.pathname=n.pathname;if(t.search=n.search,t.query=n.query,t.host=n.host||
Line truncated
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */var GB=function(n,e){return GB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},GB(n,e)};function mY(n,e){GB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function tTe(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 nTe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,o=[],a;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(a)throw a.error}}return o}function rTe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(nTe(arguments[e]));return n}var gY=function(){function n(e,t){this.target=t,this.type=e}return n}(),iTe=function(n){mY(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}(gY),oTe=function(n){mY(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var o=n.call(this,"close",i)||this;return o.wasClean=!0,o.code=t,o.reason=r,o}return e}(gY);/*!
|
||||
* Reconnecting WebSocket
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var aTe=function(){if(typeof WebSocket<"u")return WebSocket},sTe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},H0={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},lTe=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(o){i._debug("open event");var a=i._options.minUptime,s=a===void 0?H0.minUptime:a;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},s),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(d){return i._ws.send(d)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(d){return i._callEventListener(o,d)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(a){return i._callEventListener(o,a)})},this._handleError=function(o){i._debug("error event",o.message),i._disconnect(void 0,o.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(o),i._debug("exec error listeners"),i._listeners.error.forEach(function(a){return i._callEventListener(o,a)}),i._connect()},this._handleClose=function(o){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(o),i._listeners.close.forEach(function(a){return i._callEventListener(o,a)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?H0.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var o=tTe(i),a=o.next();!a.done;a=o.next()){var s=a.value;this._callEventListener(e,s)}}catch(d){t={error:d}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListeneLine truncated
|
||||
//# sourceMappingURL=index-B2XuuGjW.js.map
|
||||
@@ -0,0 +1 @@
|
||||
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:Line truncated
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1 +1 @@
|
||||
{"version":3,"mappings":"ijDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,cAAc,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,SAAS,SAASC,GAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,IAAGE,EAAEF,EAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,GAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,GAAE,OAAO,OAAOC,GAAE,GAAG,SAASC,GAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAACG,GAAE,UAAU,iBAAiB,GACnQA,GAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAI,GAAW,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,GAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,IAAG,CAAC,CAACA,GAAE,UAAUH,GAAE,UAAU,SAASI,GAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAAC,IAAIQ,GAAED,GAAE,UAAU,IAAID,GACrfE,GAAE,YAAYD,GAAEN,GAAEO,GAAEL,GAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,GAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,IAAM,EAAAC,GAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,IACtK,SAASC,GAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,EAAEC,EAAE,CAAG,EAAAC,EAAE,KAAKC,EAAE,KAAK,GAASb,GAAN,KAAY,IAAAU,KAAcV,EAAE,MAAX,SAAiBa,EAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,EAAE,GAAGZ,EAAE,KAAKA,EAAIM,GAAA,KAAKN,EAAEU,CAAC,GAAG,CAACF,GAAE,eAAeE,CAAC,IAAIC,EAAED,CAAC,EAAEV,EAAEU,CAAC,GAAO,IAAAI,EAAE,UAAU,OAAO,EAAK,GAAIA,IAAJ,EAAMH,EAAE,SAASV,UAAU,EAAEa,EAAE,CAAC,QAAQC,EAAE,MAAMD,CAAC,EAAEE,EAAE,EAAEA,EAAEF,EAAEE,IAAMD,EAAAC,CAAC,EAAE,UAAUA,EAAE,CAAC,EAAEL,EAAE,SAASI,CAAC,CAAC,GAAGpB,GAAGA,EAAE,aAAiB,IAAAe,KAAKI,EAAEnB,EAAE,aAAamB,EAAWH,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEI,EAAEJ,CAAC,GAAG,MAAM,CAAC,SAAS5B,GAAE,KAAKa,EAAE,IAAIiB,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,GAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,OAAO,CAAC,SAASuB,GAAEvB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,EAAC,CAAC,SAASqC,GAAOxB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYwB,GAAO,GAAGxB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,EAAEK,EAAEC,EAAES,EAAEC,EAAE,CAAC,IAAIC,EAAE,OAAOjB,GAAmBiB,IAAd,aAA6BA,IAAZ,aAAgBjB,EAAA,MAAK,IAAIkB,EAAE,GAAM,GAAOlB,IAAP,KAAWkB,EAAA,eAAeD,EAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,EAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAS,CAAC,KAAKb,GAAE,KAAKC,GAAI8B,EAAA,EAAE,CAAC,CAAC,GAAGA,EAAS,OAAAA,EAAElB,EAAEgB,EAAEA,EAAEE,CAAC,EAAElB,EAAOe,IAAL,GAAO,IAAIW,GAAER,EAAE,CAAC,EAAEH,EAAEL,GAAEM,CAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,EAAEX,EAAEC,EAAE,GAAG,SAASN,EAAE,CAAQA,QAAA,CAAE,GAASgB,GAAN,OAAUO,GAAEP,CAAC,IAAIA,EAAEM,GAAEN,EAAEV,GAAG,CAACU,EAAE,KAAKE,GAAGA,EAAE,MAAMF,EAAE,IAAI,IAAI,GAAGA,EAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,CAAC,GAAGK,EAAE,KAAKW,CAAC,GAAG,EAA4B,GAAxBE,EAAA,EAAIH,EAAKA,IAAL,GAAO,IAAIA,EAAE,IAAOL,GAAEV,CAAC,EAAE,QAAQmB,EAAE,EAAEA,EAAEnB,EAAE,OAAOmB,IAAI,CAACF,EACrfjB,EAAEmB,CAAC,EAAE,IAAIC,EAAEL,EAAEW,GAAET,EAAEE,CAAC,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,CAAC,SAASI,EAAErB,GAAEC,CAAC,EAAe,OAAOoB,GAApB,WAAsB,IAAIpB,EAAEoB,EAAE,KAAKpB,CAAC,EAAEmB,EAAE,EAAE,EAAEF,EAAEjB,EAAE,KAAK,GAAG,MAAQiB,IAAE,MAAMG,EAAEL,EAAEW,GAAET,EAAEE,GAAG,EAAED,GAAGS,GAAEV,EAAEZ,EAAEC,EAAEc,EAAEJ,CAAC,UAAqBC,IAAX,SAAmB,MAAAZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAS,OAAAa,CAAC,CACzZ,SAASU,GAAE5B,EAAEK,EAAEC,EAAE,CAAI,GAAMN,GAAN,KAAe,OAAAA,EAAM,IAAAe,EAAE,GAAGC,EAAE,EAAEW,UAAE3B,EAAEe,EAAE,GAAG,GAAG,SAASf,EAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,EAAEgB,GAAG,EAAE,EAASD,CAAC,CAAC,SAASc,GAAE7B,EAAE,CAAI,GAAKA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAE,EAAIA,EAAA,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAA,CAAE,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,IAAGqB,GAAA,SAAiB,CAAC,IAAIL,GAAE,QAAQ,SAAS5B,EAAEK,EAAEC,EAAE,CAACsB,GAAE5B,EAAE,UAAU,CAAGK,EAAA,MAAM,KAAK,SAAS,GAAGC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAEuB,UAAE5B,EAAE,UAAU,CAACK,GAAA,CAAI,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAQ,OAAA4B,GAAE5B,EAAE,SAASA,EAAE,CAAQA,QAAE,IAAG,EAAE,EAAE,KAAK,SAASA,EAAE,CAAC,GAAG,CAACuB,GAAEvB,CAAC,EAAE,MAAM,MAAM,uEAAuE,EAAS,OAAAA,CAAC,CAAC,EAAoBiC,GAAA,UAAA7B,GAAmLine truncated
|
||||
{"version":3,"mappings":"ijDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,cAAc,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,eAAe,EAAEC,GAAE,OAAO,IAAI,mBAAmB,EAAEC,GAAE,OAAO,IAAI,gBAAgB,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,IAAI,YAAY,EAAEC,GAAE,OAAO,SAAS,SAASC,GAAEC,EAAE,CAAC,OAAUA,IAAP,MAAqB,OAAOA,GAAlB,SAA2B,MAAKA,EAAEF,IAAGE,EAAEF,EAAC,GAAGE,EAAE,YAAY,EAAqB,OAAOA,GAApB,WAAsBA,EAAE,KAAI,CAC1e,IAAIC,GAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,GAAE,OAAO,OAAOC,GAAE,GAAG,SAASC,GAAEJ,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAACG,GAAE,UAAU,iBAAiB,GACnQA,GAAE,UAAU,SAAS,SAASJ,EAAEK,EAAE,CAAI,GAAW,OAAOL,GAAlB,UAAkC,OAAOA,GAApB,YAA6BA,GAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,EAAEK,EAAE,UAAU,CAAC,EAAED,GAAE,UAAU,YAAY,SAASJ,EAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,EAAE,aAAa,CAAC,EAAE,SAASO,IAAG,CAAC,CAACA,GAAE,UAAUH,GAAE,UAAU,SAASI,GAAER,EAAEK,EAAEC,EAAE,CAAC,KAAK,MAAMN,EAAE,KAAK,QAAQK,EAAE,KAAK,KAAKF,GAAE,KAAK,QAAQG,GAAGL,EAAC,CAAC,IAAIQ,GAAED,GAAE,UAAU,IAAID,GACrfE,GAAE,YAAYD,GAAEN,GAAEO,GAAEL,GAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,GAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,IAAM,EAAAC,GAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,IACtK,SAASC,GAAEd,EAAEK,EAAEC,EAAE,CAAC,IAAIS,EAAEC,EAAE,CAAG,EAAAC,EAAE,KAAKC,EAAE,KAAK,GAASb,GAAN,KAAY,IAAAU,KAAcV,EAAE,MAAX,SAAiBa,EAAEb,EAAE,KAAcA,EAAE,MAAX,SAAiBY,EAAE,GAAGZ,EAAE,KAAKA,EAAIM,GAAA,KAAKN,EAAEU,CAAC,GAAG,CAACF,GAAE,eAAeE,CAAC,IAAIC,EAAED,CAAC,EAAEV,EAAEU,CAAC,GAAO,IAAAI,EAAE,UAAU,OAAO,EAAK,GAAIA,IAAJ,EAAMH,EAAE,SAASV,UAAU,EAAEa,EAAE,CAAC,QAAQ,EAAE,MAAMA,CAAC,EAAE,EAAE,EAAE,EAAEA,EAAE,IAAM,GAAC,EAAE,UAAU,EAAE,CAAC,EAAEH,EAAE,SAAS,CAAC,CAAC,GAAGhB,GAAGA,EAAE,aAAiB,IAAAe,KAAKI,EAAEnB,EAAE,aAAamB,EAAWH,EAAED,CAAC,IAAZ,SAAgBC,EAAED,CAAC,EAAEI,EAAEJ,CAAC,GAAG,MAAM,CAAC,SAAS5B,GAAE,KAAKa,EAAE,IAAIiB,EAAE,IAAIC,EAAE,MAAMF,EAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASQ,GAAEpB,EAAEK,EAAE,CAAC,MAAM,CAAC,SAASlB,GAAE,KAAKa,EAAE,KAAK,IAAIK,EAAE,IAAIL,EAAE,IAAI,MAAMA,EAAE,MAAM,OAAOA,EAAE,OAAO,CAAC,SAASqB,GAAErB,EAAE,CAAC,OAAiB,OAAOA,GAAlB,UAA4BA,IAAP,MAAUA,EAAE,WAAWb,EAAC,CAAC,SAASmC,GAAOtB,EAAE,CAAC,IAAIK,EAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,EAAE,QAAQ,QAAQ,SAASA,EAAE,CAAC,OAAOK,EAAEL,CAAC,EAAE,CAAC,CAAC,IAAIuB,GAAE,OAAO,SAASC,GAAExB,EAAEK,EAAE,CAAC,OAAiB,OAAOL,GAAlB,UAA4BA,IAAP,MAAgBA,EAAE,KAAR,KAAYsB,GAAO,GAAGtB,EAAE,GAAG,EAAEK,EAAE,SAAS,EAAE,CAAC,CAC/W,SAASoB,GAAEzB,EAAEK,EAAEC,EAAES,EAAEC,EAAE,CAAC,IAAIC,EAAE,OAAOjB,GAAmBiB,IAAd,aAA6BA,IAAZ,aAAgBjB,EAAA,MAAK,IAAIkB,EAAE,GAAM,GAAOlB,IAAP,KAAWkB,EAAA,eAAeD,EAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,EAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,EAAE,SAAS,CAAC,KAAKb,GAAE,KAAKC,GAAI8B,EAAA,EAAE,CAAC,CAAC,GAAGA,EAAS,OAAAA,EAAElB,EAAEgB,EAAEA,EAAEE,CAAC,EAAElB,EAAOe,IAAL,GAAO,IAAIS,GAAEN,EAAE,CAAC,EAAEH,EAAEL,GAAEM,CAAC,GAAGV,EAAE,GAASN,GAAN,OAAUM,EAAEN,EAAE,QAAQuB,GAAE,KAAK,EAAE,KAAKE,GAAET,EAAEX,EAAEC,EAAE,GAAG,SAASN,EAAE,CAAQA,QAAA,CAAE,GAASgB,GAAN,OAAUK,GAAEL,CAAC,IAAIA,EAAEI,GAAEJ,EAAEV,GAAG,CAACU,EAAE,KAAKE,GAAGA,EAAE,MAAMF,EAAE,IAAI,IAAI,GAAGA,EAAE,KAAK,QAAQO,GAAE,KAAK,EAAE,KAAKvB,CAAC,GAAGK,EAAE,KAAKW,CAAC,GAAG,EAA4B,GAAxBE,EAAA,EAAIH,EAAKA,IAAL,GAAO,IAAIA,EAAE,IAAOL,GAAEV,CAAC,EAAE,QAAQmB,EAAE,EAAEA,EAAEnB,EAAE,OAAOmB,IAAI,CAACF,EACrfjB,EAAEmB,CAAC,EAAE,IAAI,EAAEJ,EAAES,GAAEP,EAAEE,CAAC,EAAED,GAAGO,GAAER,EAAEZ,EAAEC,EAAE,EAAEU,CAAC,CAAC,SAAS,EAAEjB,GAAEC,CAAC,EAAe,OAAO,GAApB,WAAsB,IAAIA,EAAE,EAAE,KAAKA,CAAC,EAAEmB,EAAE,EAAE,EAAEF,EAAEjB,EAAE,KAAK,GAAG,MAAQiB,IAAE,MAAM,EAAEF,EAAES,GAAEP,EAAEE,GAAG,EAAED,GAAGO,GAAER,EAAEZ,EAAEC,EAAE,EAAEU,CAAC,UAAqBC,IAAX,SAAmB,MAAAZ,EAAE,OAAOL,CAAC,EAAE,MAAM,mDAAuEK,IAApB,kBAAsB,qBAAqB,OAAO,KAAKL,CAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,GAAG,2EAA2E,EAAS,OAAAa,CAAC,CACzZ,SAASQ,GAAE1B,EAAEK,EAAEC,EAAE,CAAI,GAAMN,GAAN,KAAe,OAAAA,EAAM,IAAAe,EAAE,GAAGC,EAAE,EAAES,UAAEzB,EAAEe,EAAE,GAAG,GAAG,SAASf,EAAE,CAAC,OAAOK,EAAE,KAAKC,EAAEN,EAAEgB,GAAG,EAAE,EAASD,CAAC,CAAC,SAASY,GAAE3B,EAAE,CAAI,GAAKA,EAAE,UAAP,GAAe,CAAC,IAAIK,EAAEL,EAAE,QAAQK,EAAEA,EAAE,EAAIA,EAAA,KAAK,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAC,EAAE,SAASA,EAAE,EAAQL,EAAE,UAAN,GAAoBA,EAAE,UAAP,MAAiBA,EAAA,QAAQ,EAAEA,EAAE,QAAQK,EAAA,CAAE,EAAOL,EAAE,UAAP,KAAiBA,EAAE,QAAQ,EAAEA,EAAE,QAAQK,EAAE,CAAC,GAAOL,EAAE,UAAN,EAAc,OAAOA,EAAE,QAAQ,QAAQ,MAAMA,EAAE,OAAQ,CAC5Z,IAAI4B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBjB,IAAGmB,GAAA,SAAiB,CAAC,IAAIL,GAAE,QAAQ,SAAS1B,EAAEK,EAAEC,EAAE,CAACoB,GAAE1B,EAAE,UAAU,CAAGK,EAAA,MAAM,KAAK,SAAS,GAAGC,CAAC,CAAC,EAAE,MAAM,SAASN,EAAE,CAAC,IAAIK,EAAE,EAAEqB,UAAE1B,EAAE,UAAU,CAACK,GAAA,CAAI,EAASA,CAAC,EAAE,QAAQ,SAASL,EAAE,CAAQ,OAAA0B,GAAE1B,EAAE,SAASA,EAAE,CAAQA,QAAE,IAAG,EAAE,EAAE,KAAK,SAASA,EAAE,CAAC,GAAG,CAACqB,GAAErB,CAAC,EAAE,MAAM,MAAM,uEAAuE,EAAS,OAAAA,CAAC,CAAC,EAAoB+B,GAAA,UAAA3B,GAAmB2B,GAAA,SAAA1C,GACld0C,Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
html{background-color:#1c1f24}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}table{border-collapse:collapse;border-spacing:0}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Regular-B-HLW1rL.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-C0z2xw0d.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:Line truncated
|
||||
+2
-2
@@ -37,8 +37,8 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-B2XuuGjW.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-DPkkFSSg.css">
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-CscRlP6Y.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-CmS0o0kb.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->
|
||||
|
||||
Reference in new issue
Block a user