mirror of
https://github.com/maputnik/editor.git
synced 2026-11-29 05:14:20 +00:00
deploy: cb77c6b4e2
This commit is contained in:
1 parent
c948814efc
commit
1c1b5cd208
4 files changed
+110
-110
No files matched your search
@@ -1,74 +1,74 @@
|
||||
var i$=Object.defineProperty;var o$=(e,n,t)=>n in e?i$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var nn=(e,n,t)=>(o$(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();var _f=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function hO(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}var aF={exports:{}},M_={},sF={exports:{}},ga={};/*
|
||||
var T$=Object.defineProperty;var K$=(e,n,t)=>n in e?T$(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var rn=(e,n,t)=>(K$(e,typeof n!="symbol"?n+"":n,t),t);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=t(i);fetch(i.href,o)}})();var dh=typeof globalThis<"u"?globalThis:typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function oa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function bO(e){if(e.__esModule)return e;var n=e.default;if(typeof n=="function"){var t=function r(){return this instanceof r?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};t.prototype=n.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),t}var CF={exports:{}},IC={},bF={exports:{}},ga={};/*
|
||||
object-assign
|
||||
(c) Sindre Sorhus
|
||||
@license MIT
|
||||
*/var fk=Object.getOwnPropertySymbols,a$=Object.prototype.hasOwnProperty,s$=Object.prototype.propertyIsEnumerable;function l$(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function u$(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;var r=Object.getOwnPropertyNames(n).map(function(o){return n[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var lF=u$()?Object.assign:function(e,n){for(var t,r=l$(e),i,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var s in t)a$.call(t,s)&&(r[s]=t[s]);if(fk){i=fk(t);for(var a=0;a<i.length;a++)s$.call(t,i[a])&&(r[i[a]]=t[i[a]])}}return r};/** @license React v16.14.0
|
||||
*/var wk=Object.getOwnPropertySymbols,P$=Object.prototype.hasOwnProperty,F$=Object.prototype.propertyIsEnumerable;function D$(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function L$(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var n={},t=0;t<10;t++)n["_"+String.fromCharCode(t)]=t;var r=Object.getOwnPropertyNames(n).map(function(o){return n[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var xF=L$()?Object.assign:function(e,n){for(var t,r=D$(e),i,o=1;o<arguments.length;o++){t=Object(arguments[o]);for(var s in t)P$.call(t,s)&&(r[s]=t[s]);if(wk){i=wk(t);for(var a=0;a<i.length;a++)F$.call(t,i[a])&&(r[i[a]]=t[i[a]])}}return r};/** @license React v16.14.0
|
||||
* 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 fO=lF,lh=typeof Symbol=="function"&&Symbol.for,S_=lh?Symbol.for("react.element"):60103,A$=lh?Symbol.for("react.portal"):60106,c$=lh?Symbol.for("react.fragment"):60107,d$=lh?Symbol.for("react.strict_mode"):60108,h$=lh?Symbol.for("react.profiler"):60114,f$=lh?Symbol.for("react.provider"):60109,p$=lh?Symbol.for("react.context"):60110,m$=lh?Symbol.for("react.forward_ref"):60112,g$=lh?Symbol.for("react.suspense"):60113,y$=lh?Symbol.for("react.memo"):60115,v$=lh?Symbol.for("react.lazy"):60116,pk=typeof Symbol=="function"&&Symbol.iterator;function E_(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var uF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},AF={};function Ky(e,n,t){this.props=e,this.context=n,this.refs=AF,this.updater=t||uF}Ky.prototype.isReactComponent={};Ky.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(E_(85));this.updater.enqueueSetState(this,e,n,"setState")};Ky.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function cF(){}cF.prototype=Ky.prototype;function pO(e,n,t){this.props=e,this.context=n,this.refs=AF,this.updater=t||uF}var mO=pO.prototype=new cF;mO.constructor=pO;fO(mO,Ky.prototype);mO.isPureReactComponent=!0;var gO={current:null},dF=Object.prototype.hasOwnProperty,hF={key:!0,ref:!0,__self:!0,__source:!0};function fF(e,n,t){var r,i={},o=null,s=null;if(n!=null)for(r in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=""+n.key),n)dF.call(n,r)&&!hF.hasOwnProperty(r)&&(i[r]=n[r]);var a=arguments.length-2;if(a===1)i.children=t;else if(1<a){for(var p=Array(a),g=0;g<a;g++)p[g]=arguments[g+2];i.children=p}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:S_,type:e,key:o,ref:s,props:i,_owner:gO.current}}function C$(e,n){return{$$typeof:S_,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function yO(e){return typeof e=="object"&&e!==null&&e.$$typeof===S_}function _$(e){var n={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(t){return n[t]})}var pF=/\/+/g,S2=[];function mF(e,n,t,r){if(S2.length){var i=S2.pop();return i.result=e,i.keyPrefix=n,i.func=t,i.context=r,i.count=0,i}return{result:e,keyPrefix:n,func:t,context:r,count:0}}function gF(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>S2.length&&S2.push(e)}function CS(e,n,t,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case S_:case A$:o=!0}}if(o)return t(r,e,n===""?"."+Tw(e,0):n),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var a=n+Tw(i,s);o+=CS(i,a,t,r)}else if(e===null||typeof e!="object"?a=null:(a=pk&&e[pk]||e["@@iterator"],a=typeof a=="function"?a:null),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=n+Tw(i,s++),o+=CS(i,a,t,r);else if(i==="object")throw t=""+e,Error(E_(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t,""));return o}function _S(e,n,t){return e==null?0:CS(e,"",n,t)}function Tw(e,n){return typeof e=="object"&&e!==null&&e.key!=null?_$(e.key):n.toString(36)}function b$(e,n){e.func.call(e.context,n,e.count++)}function x$(e,n,t){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,n,e.count++),Array.isArray(e)?bS(e,r,t,function(o){return o}):e!=null&&(yO(e)&&(e=C$(e,i+(!e.key||n&&n.key===e.key?"":(""+e.key).replace(pF,"$&/")+"/")+t)),r.push(e))}function bS(e,n,t,r,i){var o="";t!=null&&(o=(""+t).replace(pF,"$&/")+"/"),n=mF(n,o,r,i),_S(e,x$,n),gF(n)}var yF={current:null};function Sp(){var e=yF.current;if(e===null)throw Error(E_(321));return e}var w$={ReactCurrentDispatcher:yF,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:gO,IsSomeRendererActing:{current:!1},assign:fO};ga.Children={map:function(e,n,t){if(e==null)return e;var r=[];return bS(e,r,null,n,t),r},forEach:function(e,n,t){if(e==null)return e;n=mF(null,null,n,t),_S(e,b$,n),gF(n)},count:function(e){return _S(e,function(){return null},null)},toArray:function(e){var n=[];return bS(e,n,null,function(t){return t}),n},only:function(e){if(!yO(e))throw Error(E_(143));return e}};ga.Component=Ky;ga.Fragment=c$;ga.Profiler=h$;ga.PureComponent=pO;ga.StrictMode=d$;ga.Suspense=g$;ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w$;ga.cloneElement=function(e,n,t){if(e==null)throw Error(E_(267,e));var r=fO({},e.props),i=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=gO.current),n.key!==void 0&&(i=""+n.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(p in n)dF.call(n,p)&&!hF.hasOwnProperty(p)&&(r[p]=n[p]===void 0&&a!==void 0?a[p]Line truncated
|
||||
*/var xO=xF,hh=typeof Symbol=="function"&&Symbol.for,TC=hh?Symbol.for("react.element"):60103,U$=hh?Symbol.for("react.portal"):60106,R$=hh?Symbol.for("react.fragment"):60107,z$=hh?Symbol.for("react.strict_mode"):60108,j$=hh?Symbol.for("react.profiler"):60114,W$=hh?Symbol.for("react.provider"):60109,N$=hh?Symbol.for("react.context"):60110,G$=hh?Symbol.for("react.forward_ref"):60112,Q$=hh?Symbol.for("react.suspense"):60113,$$=hh?Symbol.for("react.memo"):60115,Y$=hh?Symbol.for("react.lazy"):60116,Mk=typeof Symbol=="function"&&Symbol.iterator;function KC(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var wF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},MF={};function Uy(e,n,t){this.props=e,this.context=n,this.refs=MF,this.updater=t||wF}Uy.prototype.isReactComponent={};Uy.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(KC(85));this.updater.enqueueSetState(this,e,n,"setState")};Uy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function SF(){}SF.prototype=Uy.prototype;function wO(e,n,t){this.props=e,this.context=n,this.refs=MF,this.updater=t||wF}var MO=wO.prototype=new SF;MO.constructor=wO;xO(MO,Uy.prototype);MO.isPureReactComponent=!0;var SO={current:null},EF=Object.prototype.hasOwnProperty,OF={key:!0,ref:!0,__self:!0,__source:!0};function BF(e,n,t){var r,i={},o=null,s=null;if(n!=null)for(r in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=""+n.key),n)EF.call(n,r)&&!OF.hasOwnProperty(r)&&(i[r]=n[r]);var a=arguments.length-2;if(a===1)i.children=t;else if(1<a){for(var h=Array(a),g=0;g<a;g++)h[g]=arguments[g+2];i.children=h}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:TC,type:e,key:o,ref:s,props:i,_owner:SO.current}}function q$(e,n){return{$$typeof:TC,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function EO(e){return typeof e=="object"&&e!==null&&e.$$typeof===TC}function V$(e){var n={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(t){return n[t]})}var kF=/\/+/g,T2=[];function IF(e,n,t,r){if(T2.length){var i=T2.pop();return i.result=e,i.keyPrefix=n,i.func=t,i.context=r,i.count=0,i}return{result:e,keyPrefix:n,func:t,context:r,count:0}}function TF(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>T2.length&&T2.push(e)}function OS(e,n,t,r){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case TC:case U$:o=!0}}if(o)return t(r,e,n===""?"."+Rw(e,0):n),1;if(o=0,n=n===""?".":n+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var a=n+Rw(i,s);o+=OS(i,a,t,r)}else if(e===null||typeof e!="object"?a=null:(a=Mk&&e[Mk]||e["@@iterator"],a=typeof a=="function"?a:null),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=n+Rw(i,s++),o+=OS(i,a,t,r);else if(i==="object")throw t=""+e,Error(KC(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t,""));return o}function BS(e,n,t){return e==null?0:OS(e,"",n,t)}function Rw(e,n){return typeof e=="object"&&e!==null&&e.key!=null?V$(e.key):n.toString(36)}function H$(e,n){e.func.call(e.context,n,e.count++)}function Z$(e,n,t){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,n,e.count++),Array.isArray(e)?kS(e,r,t,function(o){return o}):e!=null&&(EO(e)&&(e=q$(e,i+(!e.key||n&&n.key===e.key?"":(""+e.key).replace(kF,"$&/")+"/")+t)),r.push(e))}function kS(e,n,t,r,i){var o="";t!=null&&(o=(""+t).replace(kF,"$&/")+"/"),n=IF(n,o,r,i),BS(e,Z$,n),TF(n)}var KF={current:null};function kp(){var e=KF.current;if(e===null)throw Error(KC(321));return e}var X$={ReactCurrentDispatcher:KF,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:SO,IsSomeRendererActing:{current:!1},assign:xO};ga.Children={map:function(e,n,t){if(e==null)return e;var r=[];return kS(e,r,null,n,t),r},forEach:function(e,n,t){if(e==null)return e;n=IF(null,null,n,t),BS(e,H$,n),TF(n)},count:function(e){return BS(e,function(){return null},null)},toArray:function(e){var n=[];return kS(e,n,null,function(t){return t}),n},only:function(e){if(!EO(e))throw Error(KC(143));return e}};ga.Component=Uy;ga.Fragment=R$;ga.Profiler=j$;ga.PureComponent=wO;ga.StrictMode=z$;ga.Suspense=Q$;ga.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X$;ga.cloneElement=function(e,n,t){if(e==null)throw Error(KC(267,e));var r=xO({},e.props),i=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=SO.current),n.key!==void 0&&(i=""+n.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(h in n)EF.call(n,h)&&!OF.hasOwnProperty(h)&&(r[h]=n[h]===void 0&&a!==void 0?a[h]Line truncated
|
||||
* 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 M$=Sr,vF=60103;M_.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var mk=Symbol.for;vF=mk("react.element"),M_.Fragment=mk("react.fragment")}var S$=M$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E$=Object.prototype.hasOwnProperty,O$={key:!0,ref:!0,__self:!0,__source:!0};function CF(e,n,t){var r,i={},o=null,s=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(s=n.ref);for(r in n)E$.call(n,r)&&!O$.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:vF,type:e,key:o,ref:s,props:i,_owner:S$.current}}M_.jsx=CF;M_.jsxs=CF;aF.exports=M_;var N=aF.exports,_F={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xS=xn.createContext&&xn.createContext(_F),bm=function(){return bm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bm.apply(this,arguments)},B$=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};function bF(e){return e&&e.map(function(n,t){return xn.createElement(n.tag,bm({key:t},n.attr),bF(n.child))})}function nl(e){return function(n){return xn.createElement(k$,bm({attr:bm({},e.attr)},n),bF(e.child))}}function k$(e){var n=function(t){var r=e.attr,i=e.size,o=e.title,s=B$(e,["attr","size","title"]),a=i||t.size||"1em",p;return t.className&&(p=t.className),e.className&&(p=(p?p+" ":"")+e.className),xn.createElement("svg",bm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,s,{className:p,style:bm(bm({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&xn.createElement("title",null,o),e.children)};return xS!==void 0?xn.createElement(xS.Consumer,null,function(t){return n(t)}):n(_F)}var xF={exports:{}},_d={},wF={exports:{}},MF={};/** @license React v0.19.1
|
||||
*/var J$=Sr,PF=60103;IC.Fragment=60107;if(typeof Symbol=="function"&&Symbol.for){var Sk=Symbol.for;PF=Sk("react.element"),IC.Fragment=Sk("react.fragment")}var eY=J$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tY=Object.prototype.hasOwnProperty,nY={key:!0,ref:!0,__self:!0,__source:!0};function FF(e,n,t){var r,i={},o=null,s=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(s=n.ref);for(r in n)tY.call(n,r)&&!nY.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:PF,type:e,key:o,ref:s,props:i,_owner:eY.current}}IC.jsx=FF;IC.jsxs=FF;CF.exports=IC;var N=CF.exports,DF={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IS=xn.createContext&&xn.createContext(DF),Sm=function(){return Sm=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sm.apply(this,arguments)},rY=function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};function LF(e){return e&&e.map(function(n,t){return xn.createElement(n.tag,Sm({key:t},n.attr),LF(n.child))})}function rl(e){return function(n){return xn.createElement(iY,Sm({attr:Sm({},e.attr)},n),LF(e.child))}}function iY(e){var n=function(t){var r=e.attr,i=e.size,o=e.title,s=rY(e,["attr","size","title"]),a=i||t.size||"1em",h;return t.className&&(h=t.className),e.className&&(h=(h?h+" ":"")+e.className),xn.createElement("svg",Sm({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,s,{className:h,style:Sm(Sm({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),o&&xn.createElement("title",null,o),e.children)};return IS!==void 0?xn.createElement(IS.Consumer,null,function(t){return n(t)}):n(DF)}var UF={exports:{}},Md={},RF={exports:{}},zF={};/** @license React v0.19.1
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/(function(e){var n,t,r,i,o;if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,a=null,p=function(){if(s!==null)try{var mt=e.unstable_now();s(!0,mt),s=null}catch(dt){throw setTimeout(p,0),dt}},g=Date.now();e.unstable_now=function(){return Date.now()-g},n=function(mt){s!==null?setTimeout(n,0,mt):(s=mt,setTimeout(p,0))},t=function(mt,dt){a=setTimeout(mt,dt)},r=function(){clearTimeout(a)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var b=window.performance,B=window.Date,k=window.setTimeout,P=window.clearTimeout;if(typeof console<"u"){var R=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof R!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof b=="object"&&typeof b.now=="function")e.unstable_now=function(){return b.now()};else{var Z=B.now();e.unstable_now=function(){return B.now()-Z}}var W=!1,Q=null,q=-1,oe=5,re=0;i=function(){return e.unstable_now()>=re},o=function(){},e.unstable_forceFrameRate=function(mt){0>mt||125<mt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):oe=0<mt?Math.floor(1e3/mt):5};var ce=new MessageChannel,se=ce.port2;ce.port1.onmessage=function(){if(Q!==null){var mt=e.unstable_now();re=mt+oe;try{Q(!0,mt)?se.postMessage(null):(W=!1,Q=null)}catch(dt){throw se.postMessage(null),dt}}else W=!1},n=function(mt){Q=mt,W||(W=!0,se.postMessage(null))},t=function(mt,dt){q=k(function(){mt(e.unstable_now())},dt)},r=function(){P(q),q=-1}}function le(mt,dt){var kt=mt.length;mt.push(dt);e:for(;;){var Pt=kt-1>>>1,Me=mt[Pt];if(Me!==void 0&&0<Ne(Me,dt))mt[Pt]=dt,mt[kt]=Me,kt=Pt;else break e}}function ye(mt){return mt=mt[0],mt===void 0?null:mt}function De(mt){var dt=mt[0];if(dt!==void 0){var kt=mt.pop();if(kt!==dt){mt[0]=kt;e:for(var Pt=0,Me=mt.length;Pt<Me;){var he=2*(Pt+1)-1,be=mt[he],Pe=he+1,Ze=mt[Pe];if(be!==void 0&&0>Ne(be,kt))Ze!==void 0&&0>Ne(Ze,be)?(mt[Pt]=Ze,mt[Pe]=kt,Pt=Pe):(mt[Pt]=be,mt[he]=kt,Pt=he);else if(Ze!==void 0&&0>Ne(Ze,kt))mt[Pt]=Ze,mt[Pe]=kt,Pt=Pe;else break e}}return dt}return null}function Ne(mt,dt){var kt=mt.sortIndex-dt.sortIndex;return kt!==0?kt:mt.id-dt.id}var et=[],ft=[],Ke=1,rt=null,Ce=3,Rt=!1,jt=!1,tn=!1;function Qt(mt){for(var dt=ye(ft);dt!==null;){if(dt.callback===null)De(ft);else if(dt.startTime<=mt)De(ft),dt.sortIndex=dt.expirationTime,le(et,dt);else break;dt=ye(ft)}}function He(mt){if(tn=!1,Qt(mt),!jt)if(ye(et)!==null)jt=!0,n(Je);else{var dt=ye(ft);dt!==null&&t(He,dt.startTime-mt)}}function Je(mt,dt){jt=!1,tn&&(tn=!1,r()),Rt=!0;var kt=Ce;try{for(Qt(dt),rt=ye(et);rt!==null&&(!(rt.expirationTime>dt)||mt&&!i());){var Pt=rt.callback;if(Pt!==null){rt.callback=null,Ce=rt.priorityLevel;var Me=Pt(rt.expirationTime<=dt);dt=e.unstable_now(),typeof Me=="function"?rt.callback=Me:rt===ye(et)&&De(et),Qt(dt)}else De(et);rt=ye(et)}if(rt!==null)var he=!0;else{var be=ye(ft);be!==null&&t(He,be.startTime-dt),he=!1}return he}finally{rt=null,Ce=kt,Rt=!1}}function tt(mt){switch(mt){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var rn=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(mt){mt.callback=null},e.unstable_continueExecution=function(){jt||Rt||(jt=!0,n(Je))},e.unstable_getCurrentPriorityLevel=function(){return Ce},e.unstable_getFirstCallbackNode=function(){return ye(et)},e.unstable_next=function(mt){switch(Ce){case 1:case 2:case 3:var dt=3;break;default:dt=Ce}var kt=Ce;Ce=dt;try{return mt()}finally{Ce=kt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=rn,e.unstable_runWithPriority=function(mt,dt){switch(mt){case 1:case 2:case 3:case 4:case 5:break;default:mt=3}var kt=Ce;Ce=mt;try{return dt()}finally{Ce=kt}},e.unstable_scheduleCallback=function(mt,dt,kt){var Pt=e.unstable_now();if(typeof kt=="object"&&kt!==null){var Me=kt.delay;Me=typeof Me=="number"&&0<Me?Pt+Me:Pt,kt=typeof kt.timeout=="number"?kt.timeout:tt(mt)}else kt=tt(mt),Me=Pt;return kt=Me+kt,mt={id:Ke++,callback:dt,priorityLevel:mt,startTime:Me,expirationTime:kt,sortIndex:-1},Me>Pt?(mt.sortIndex=Me,le(ft,mt),ye(et)===null&&mt===ye(ft)&&(tn?r():tn=!0,t(He,Me-Pt))):(mt.sortIndex=kt,le(et,mt),jt||Rt||(jt=!0,n(Je))),mt},e.unstable_shouldYield=function(){var mt=e.unstable_now();Qt(mt);var dt=ye(et);return dt!==rt&&rt!==null&&dt!==null&&dt.callback!==null&&dt.startTime<=mt&&dt.expirationTime<rt.expirationTime||i()},e.unstable_wrapCallback=function(mt){var dt=Ce;return function(){var kt=Ce;Ce=dt;try{return mt.apply(this,arguments)}finally{Ce=kt}}}})(MF);wF.exports=MF;var I$=wF.exports;/** @licens
Line truncated
|
||||
*/(function(e){var n,t,r,i,o;if(typeof window>"u"||typeof MessageChannel!="function"){var s=null,a=null,h=function(){if(s!==null)try{var mt=e.unstable_now();s(!0,mt),s=null}catch(dt){throw setTimeout(h,0),dt}},g=Date.now();e.unstable_now=function(){return Date.now()-g},n=function(mt){s!==null?setTimeout(n,0,mt):(s=mt,setTimeout(h,0))},t=function(mt,dt){a=setTimeout(mt,dt)},r=function(){clearTimeout(a)},i=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var C=window.performance,B=window.Date,k=window.setTimeout,P=window.clearTimeout;if(typeof console<"u"){var U=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),typeof U!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if(typeof C=="object"&&typeof C.now=="function")e.unstable_now=function(){return C.now()};else{var Z=B.now();e.unstable_now=function(){return B.now()-Z}}var W=!1,Q=null,q=-1,oe=5,re=0;i=function(){return e.unstable_now()>=re},o=function(){},e.unstable_forceFrameRate=function(mt){0>mt||125<mt?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):oe=0<mt?Math.floor(1e3/mt):5};var Ae=new MessageChannel,ae=Ae.port2;Ae.port1.onmessage=function(){if(Q!==null){var mt=e.unstable_now();re=mt+oe;try{Q(!0,mt)?ae.postMessage(null):(W=!1,Q=null)}catch(dt){throw ae.postMessage(null),dt}}else W=!1},n=function(mt){Q=mt,W||(W=!0,ae.postMessage(null))},t=function(mt,dt){q=k(function(){mt(e.unstable_now())},dt)},r=function(){P(q),q=-1}}function se(mt,dt){var kt=mt.length;mt.push(dt);e:for(;;){var Pt=kt-1>>>1,Me=mt[Pt];if(Me!==void 0&&0<Ne(Me,dt))mt[Pt]=dt,mt[kt]=Me,kt=Pt;else break e}}function ye(mt){return mt=mt[0],mt===void 0?null:mt}function De(mt){var dt=mt[0];if(dt!==void 0){var kt=mt.pop();if(kt!==dt){mt[0]=kt;e:for(var Pt=0,Me=mt.length;Pt<Me;){var he=2*(Pt+1)-1,be=mt[he],Pe=he+1,Ze=mt[Pe];if(be!==void 0&&0>Ne(be,kt))Ze!==void 0&&0>Ne(Ze,be)?(mt[Pt]=Ze,mt[Pe]=kt,Pt=Pe):(mt[Pt]=be,mt[he]=kt,Pt=he);else if(Ze!==void 0&&0>Ne(Ze,kt))mt[Pt]=Ze,mt[Pe]=kt,Pt=Pe;else break e}}return dt}return null}function Ne(mt,dt){var kt=mt.sortIndex-dt.sortIndex;return kt!==0?kt:mt.id-dt.id}var et=[],ft=[],Ke=1,rt=null,_e=3,Ut=!1,jt=!1,nn=!1;function Qt(mt){for(var dt=ye(ft);dt!==null;){if(dt.callback===null)De(ft);else if(dt.startTime<=mt)De(ft),dt.sortIndex=dt.expirationTime,se(et,dt);else break;dt=ye(ft)}}function He(mt){if(nn=!1,Qt(mt),!jt)if(ye(et)!==null)jt=!0,n(Je);else{var dt=ye(ft);dt!==null&&t(He,dt.startTime-mt)}}function Je(mt,dt){jt=!1,nn&&(nn=!1,r()),Ut=!0;var kt=_e;try{for(Qt(dt),rt=ye(et);rt!==null&&(!(rt.expirationTime>dt)||mt&&!i());){var Pt=rt.callback;if(Pt!==null){rt.callback=null,_e=rt.priorityLevel;var Me=Pt(rt.expirationTime<=dt);dt=e.unstable_now(),typeof Me=="function"?rt.callback=Me:rt===ye(et)&&De(et),Qt(dt)}else De(et);rt=ye(et)}if(rt!==null)var he=!0;else{var be=ye(ft);be!==null&&t(He,be.startTime-dt),he=!1}return he}finally{rt=null,_e=kt,Ut=!1}}function tt(mt){switch(mt){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var on=o;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(mt){mt.callback=null},e.unstable_continueExecution=function(){jt||Ut||(jt=!0,n(Je))},e.unstable_getCurrentPriorityLevel=function(){return _e},e.unstable_getFirstCallbackNode=function(){return ye(et)},e.unstable_next=function(mt){switch(_e){case 1:case 2:case 3:var dt=3;break;default:dt=_e}var kt=_e;_e=dt;try{return mt()}finally{_e=kt}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=on,e.unstable_runWithPriority=function(mt,dt){switch(mt){case 1:case 2:case 3:case 4:case 5:break;default:mt=3}var kt=_e;_e=mt;try{return dt()}finally{_e=kt}},e.unstable_scheduleCallback=function(mt,dt,kt){var Pt=e.unstable_now();if(typeof kt=="object"&&kt!==null){var Me=kt.delay;Me=typeof Me=="number"&&0<Me?Pt+Me:Pt,kt=typeof kt.timeout=="number"?kt.timeout:tt(mt)}else kt=tt(mt),Me=Pt;return kt=Me+kt,mt={id:Ke++,callback:dt,priorityLevel:mt,startTime:Me,expirationTime:kt,sortIndex:-1},Me>Pt?(mt.sortIndex=Me,se(ft,mt),ye(et)===null&&mt===ye(ft)&&(nn?r():nn=!0,t(He,Me-Pt))):(mt.sortIndex=kt,se(et,mt),jt||Ut||(jt=!0,n(Je))),mt},e.unstable_shouldYield=function(){var mt=e.unstable_now();Qt(mt);var dt=ye(et);return dt!==rt&&rt!==null&&dt!==null&&dt.callback!==null&&dt.startTime<=mt&&dt.expirationTime<rt.expirationTime||i()},e.unstable_wrapCallback=function(mt){var dt=_e;return function(){var kt=_e;_e=dt;try{return mt.apply(this,arguments)}finally{_e=kt}}}})(zF);RF.exports=zF;var oY=RF.exports;/** @licens
Line truncated
|
||||
* 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 S4=Sr,vA=lF,Su=I$;function jn(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!S4)throw Error(jn(227));function T$(e,n,t,r,i,o,s,a,p){var g=Array.prototype.slice.call(arguments,3);try{n.apply(t,g)}catch(b){this.onError(b)}}var hC=!1,E2=null,O2=!1,wS=null,K$={onError:function(e){hC=!0,E2=e}};function P$(e,n,t,r,i,o,s,a,p){hC=!1,E2=null,T$.apply(K$,arguments)}function F$(e,n,t,r,i,o,s,a,p){if(P$.apply(this,arguments),hC){if(hC){var g=E2;hC=!1,E2=null}else throw Error(jn(198));O2||(O2=!0,wS=g)}}var vO=null,SF=null,EF=null;function gk(e,n,t){var r=e.type||"unknown-event";e.currentTarget=EF(t),F$(r,n,void 0,e),e.currentTarget=null}var B2=null,Bg={};function OF(){if(B2)for(var e in Bg){var n=Bg[e],t=B2.indexOf(e);if(!(-1<t))throw Error(jn(96,e));if(!k2[t]){if(!n.extractEvents)throw Error(jn(97,e));k2[t]=n,t=n.eventTypes;for(var r in t){var i=void 0,o=t[r],s=n,a=r;if(MS.hasOwnProperty(a))throw Error(jn(99,a));MS[a]=o;var p=o.phasedRegistrationNames;if(p){for(i in p)p.hasOwnProperty(i)&&yk(p[i],s,a);i=!0}else o.registrationName?(yk(o.registrationName,s,a),i=!0):i=!1;if(!i)throw Error(jn(98,r,e))}}}}function yk(e,n,t){if(my[e])throw Error(jn(100,e));my[e]=n,CO[e]=n.eventTypes[t].dependencies}var k2=[],MS={},my={},CO={};function BF(e){var n=!1,t;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!Bg.hasOwnProperty(t)||Bg[t]!==r){if(Bg[t])throw Error(jn(102,t));Bg[t]=r,n=!0}}n&&OF()}var Wm=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),SS=null,$g=null,Yg=null;function vk(e){if(e=SF(e)){if(typeof SS!="function")throw Error(jn(280));var n=e.stateNode;n&&(n=vO(n),SS(e.stateNode,e.type,n))}}function kF(e){$g?Yg?Yg.push(e):Yg=[e]:$g=e}function IF(){if($g){var e=$g,n=Yg;if(Yg=$g=null,vk(e),n)for(e=0;e<n.length;e++)vk(n[e])}}function _O(e,n){return e(n)}function TF(e,n,t,r,i){return e(n,t,r,i)}function bO(){}var KF=_O,K0=!1,Kw=!1;function xO(){($g!==null||Yg!==null)&&(bO(),IF())}function PF(e,n,t){if(Kw)return e(n,t);Kw=!0;try{return KF(e,n,t)}finally{Kw=!1,xO()}}var D$=/^[: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]*$/,Ck=Object.prototype.hasOwnProperty,_k={},bk={};function U$(e){return Ck.call(bk,e)?!0:Ck.call(_k,e)?!1:D$.test(e)?bk[e]=!0:(_k[e]=!0,!1)}function R$(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L$(e,n,t,r){if(n===null||typeof n>"u"||R$(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function CA(e,n,t,r,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o}var Eu={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Eu[e]=new CA(e,0,!1,e,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Eu[n]=new CA(n,1,!1,e[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Eu[e]=new CA(e,2,!1,e.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Eu[e]=new CA(e,2,!1,e,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Eu[e]=new CA(e,3,!1,e.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(e){Eu[e]=new CA(e,3,!0,e,null,!1)});["capture","download"].forEach(function(e){Eu[e]=new CA(e,4,!1,e,null,!1)});["cols","rows","size","span"].forEach(function(e){Eu[e]=new CA(e,6,!1,e,null,!1)});["rowSpan","start"].forEach(function(e){Eu[e]=new CA(e,5,!1,e.toLowerCase(),null,!1)});var wO=/[\-:]([a-z])/g;function MO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-faLine truncated
|
||||
in `+(r||"Unknown")+o}n+=t,e=e.return}while(e);return n}function Dm(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function zF(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function N$(e){var n=zF(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function nx(e){e._valueTracker||(e._valueTracker=N$(e))}function jF(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=zF(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function OS(e,n){var t=n.checked;return vA({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function wk(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=Dm(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function WF(e,n){n=n.checked,n!=null&&SO(e,"checked",n,!1)}function BS(e,n){WF(e,n);var t=Dm(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?kS(e,n.type,t):n.hasOwnProperty("defaultValue")&&kS(e,n.type,Dm(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Mk(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function kS(e,n,t){(n!=="number"||e.ownerDocument.activeElement!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function G$(e){var n="";return S4.Children.forEach(e,function(t){t!=null&&(n+=t)}),n}function IS(e,n){return e=vA({children:void 0},n),(n=G$(n.children))&&(e.children=n),e}function qg(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+Dm(t),n=null,i=0;i<e.length;i++){if(e[i].value===t){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}n!==null||e[i].disabled||(n=e[i])}n!==null&&(n.selected=!0)}}function TS(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(jn(91));return vA({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sk(e,n){var t=n.value;if(t==null){if(t=n.children,n=n.defaultValue,t!=null){if(n!=null)throw Error(jn(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(jn(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:Dm(t)}}function NF(e,n){var t=Dm(n.value),r=Dm(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function Ek(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}var GF={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function QF(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function KS(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?QF(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var rx,$F=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,i){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,i)})}:e}(function(e,n){if(e.namespaceURI!==GF.svg||"innerHTML"in e)e.innerHTML=n;else{for(rx=rx||document.createElement("div"),rx.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=rx.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function zC(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}function ix(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Ig={animationend:ix("Animation","AnimationEnd"),animationiteration:ix("Animation","AnimationIteration"),animationstart:ix("Animation","AnimationStart")
Line truncated
|
||||
*/var T4=Sr,CA=xF,Eu=oY;function jn(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)n+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!T4)throw Error(jn(227));function aY(e,n,t,r,i,o,s,a,h){var g=Array.prototype.slice.call(arguments,3);try{n.apply(t,g)}catch(C){this.onError(C)}}var v_=!1,K2=null,P2=!1,TS=null,sY={onError:function(e){v_=!0,K2=e}};function lY(e,n,t,r,i,o,s,a,h){v_=!1,K2=null,aY.apply(sY,arguments)}function uY(e,n,t,r,i,o,s,a,h){if(lY.apply(this,arguments),v_){if(v_){var g=K2;v_=!1,K2=null}else throw Error(jn(198));P2||(P2=!0,TS=g)}}var OO=null,jF=null,WF=null;function Ek(e,n,t){var r=e.type||"unknown-event";e.currentTarget=WF(t),uY(r,n,void 0,e),e.currentTarget=null}var F2=null,Kg={};function NF(){if(F2)for(var e in Kg){var n=Kg[e],t=F2.indexOf(e);if(!(-1<t))throw Error(jn(96,e));if(!D2[t]){if(!n.extractEvents)throw Error(jn(97,e));D2[t]=n,t=n.eventTypes;for(var r in t){var i=void 0,o=t[r],s=n,a=r;if(KS.hasOwnProperty(a))throw Error(jn(99,a));KS[a]=o;var h=o.phasedRegistrationNames;if(h){for(i in h)h.hasOwnProperty(i)&&Ok(h[i],s,a);i=!0}else o.registrationName?(Ok(o.registrationName,s,a),i=!0):i=!1;if(!i)throw Error(jn(98,r,e))}}}}function Ok(e,n,t){if(Cy[e])throw Error(jn(100,e));Cy[e]=n,BO[e]=n.eventTypes[t].dependencies}var D2=[],KS={},Cy={},BO={};function GF(e){var n=!1,t;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!Kg.hasOwnProperty(t)||Kg[t]!==r){if(Kg[t])throw Error(jn(102,t));Kg[t]=r,n=!0}}n&&NF()}var $m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),PS=null,Hg=null,Zg=null;function Bk(e){if(e=jF(e)){if(typeof PS!="function")throw Error(jn(280));var n=e.stateNode;n&&(n=OO(n),PS(e.stateNode,e.type,n))}}function QF(e){Hg?Zg?Zg.push(e):Zg=[e]:Hg=e}function $F(){if(Hg){var e=Hg,n=Zg;if(Zg=Hg=null,Bk(e),n)for(e=0;e<n.length;e++)Bk(n[e])}}function kO(e,n){return e(n)}function YF(e,n,t,r,i){return e(n,t,r,i)}function IO(){}var qF=kO,L0=!1,zw=!1;function TO(){(Hg!==null||Zg!==null)&&(IO(),$F())}function VF(e,n,t){if(zw)return e(n,t);zw=!0;try{return qF(e,n,t)}finally{zw=!1,TO()}}var AY=/^[: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]*$/,kk=Object.prototype.hasOwnProperty,Ik={},Tk={};function cY(e){return kk.call(Tk,e)?!0:kk.call(Ik,e)?!1:AY.test(e)?Tk[e]=!0:(Ik[e]=!0,!1)}function dY(e,n,t,r){if(t!==null&&t.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return r?!1:t!==null?!t.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function hY(e,n,t,r){if(n===null||typeof n>"u"||dY(e,n,t,r))return!0;if(r)return!1;if(t!==null)switch(t.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function bA(e,n,t,r,i,o){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=t,this.propertyName=e,this.type=n,this.sanitizeURL=o}var Ou={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ou[e]=new bA(e,0,!1,e,null,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];Ou[n]=new bA(n,1,!1,e[1],null,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ou[e]=new bA(e,2,!1,e.toLowerCase(),null,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ou[e]=new bA(e,2,!1,e,null,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ou[e]=new bA(e,3,!1,e.toLowerCase(),null,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ou[e]=new bA(e,3,!0,e,null,!1)});["capture","download"].forEach(function(e){Ou[e]=new bA(e,4,!1,e,null,!1)});["cols","rows","size","span"].forEach(function(e){Ou[e]=new bA(e,6,!1,e,null,!1)});["rowSpan","start"].forEach(function(e){Ou[e]=new bA(e,5,!1,e.toLowerCase(),null,!1)});var KO=/[\-:]([a-z])/g;function PO(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-faLine truncated
|
||||
in `+(r||"Unknown")+o}n+=t,e=e.return}while(e);return n}function zm(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function tD(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function gY(e){var n=tD(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var i=t.get,o=t.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,n,{enumerable:t.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function lx(e){e._valueTracker||(e._valueTracker=gY(e))}function nD(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue(),r="";return e&&(r=tD(e)?e.checked?"true":"false":e.value),e=r,e!==t?(n.setValue(e),!0):!1}function DS(e,n){var t=n.checked;return CA({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??e._wrapperState.initialChecked})}function Pk(e,n){var t=n.defaultValue==null?"":n.defaultValue,r=n.checked!=null?n.checked:n.defaultChecked;t=zm(n.value!=null?n.value:t),e._wrapperState={initialChecked:r,initialValue:t,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function rD(e,n){n=n.checked,n!=null&&FO(e,"checked",n,!1)}function LS(e,n){rD(e,n);var t=zm(n.value),r=n.type;if(t!=null)r==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+t):e.value!==""+t&&(e.value=""+t);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?US(e,n.type,t):n.hasOwnProperty("defaultValue")&&US(e,n.type,zm(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Fk(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!(r!=="submit"&&r!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,t||n===e.value||(e.value=n),e.defaultValue=n}t=e.name,t!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,t!==""&&(e.name=t)}function US(e,n,t){(n!=="number"||e.ownerDocument.activeElement!==e)&&(t==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t))}function yY(e){var n="";return T4.Children.forEach(e,function(t){t!=null&&(n+=t)}),n}function RS(e,n){return e=CA({children:void 0},n),(n=yY(n.children))&&(e.children=n),e}function Xg(e,n,t,r){if(e=e.options,n){n={};for(var i=0;i<t.length;i++)n["$"+t[i]]=!0;for(t=0;t<e.length;t++)i=n.hasOwnProperty("$"+e[t].value),e[t].selected!==i&&(e[t].selected=i),i&&r&&(e[t].defaultSelected=!0)}else{for(t=""+zm(t),n=null,i=0;i<e.length;i++){if(e[i].value===t){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}n!==null||e[i].disabled||(n=e[i])}n!==null&&(n.selected=!0)}}function zS(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(jn(91));return CA({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Dk(e,n){var t=n.value;if(t==null){if(t=n.children,n=n.defaultValue,t!=null){if(n!=null)throw Error(jn(92));if(Array.isArray(t)){if(!(1>=t.length))throw Error(jn(93));t=t[0]}n=t}n==null&&(n=""),t=n}e._wrapperState={initialValue:zm(t)}}function iD(e,n){var t=zm(n.value),r=zm(n.defaultValue);t!=null&&(t=""+t,t!==e.value&&(e.value=t),n.defaultValue==null&&e.defaultValue!==t&&(e.defaultValue=t)),r!=null&&(e.defaultValue=""+r)}function Lk(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}var oD={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function aD(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function jS(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?aD(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ux,sD=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,t,r,i){MSApp.execUnsafeLocalFunction(function(){return e(n,t,r,i)})}:e}(function(e,n){if(e.namespaceURI!==oD.svg||"innerHTML"in e)e.innerHTML=n;else{for(ux=ux||document.createElement("div"),ux.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=ux.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function $_(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=n;return}}e.textContent=n}function Ax(e,n){var t={};return t[e.toLowerCase()]=n.toLowerCase(),t["Webkit"+e]="webkit"+n,t["Moz"+e]="moz"+n,t}var Fg={animationend:Ax("Animation","AnimationEnd"),animationiteration:Ax("Animation","AnimationIteration"),animationstart:Ax("Animation","AnimationStart")
Line truncated
|
||||
|
||||
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+BO(s))}au!==oB&&(au=aU),a=rB(a,s),B=o;do{switch(B.tag){case 3:p=a,B.effectTag|=4096,B.expirationTime=n;var re=rU(B,p,n);Xk(B,re);break e;case 1:p=a;var ce=B.type,se=B.stateNode;if(!(B.effectTag&64)&&(typeof ce.getDerivedStateFromError=="function"||se!==null&&typeof se.componentDidCatch=="function"&&(Om===null||!Om.has(se)))){B.effectTag|=4096,B.expirationTime=n;var le=iU(B,p,n);Xk(B,le);break e}}B=B.return}while(B!==null)}Zi=pU(Zi)}catch(ye){n=ye;continue}break}while(!0)}function dU(){var e=Q2.current;return Q2.current=G2,e===null?G2:e}function hU(e,n){e<hp&&2<e&&(hp=e),n!==null&&e<qC&&2<e&&(qC=e,q2=n)}function U4(e){e>VC&&(VC=e)}function sq(){for(;Zi!==null;)Zi=fU(Zi)}function lq(){for(;Zi!==null&&!$Y();)Zi=fU(Zi)}function fU(e){var n=mU(e.alternate,e,HA);return e.memoizedProps=e.pendingProps,n===null&&(n=pU(e)),oU.current=null,n}function pU(e){Zi=e;do{var n=Zi.alternate;if(e=Zi.return,Zi.effectTag&2048){if(n=JY(Zi),n!==null)return n.effectTag&=2047,n;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(n=XY(n,Zi,HA),HA===1||Zi.childExpirationTime!==1){for(var t=0,r=Zi.child;r!==null;){var i=r.expirationTime,o=r.childExpirationTime;i>t&&(t=i),o>t&&(t=o),r=r.sibling}Zi.childExpirationTime=t}if(n!==null)return n;e!==null&&!(e.effectTag&2048)&&(e.firstEffect===null&&(e.firstEffect=Zi.firstEffect),Zi.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=Zi.firstEffect),e.lastEffect=Zi.lastEffect),1<Zi.effectTag&&(e.lastEffect!==null?e.lastEffect.nextEffect=Zi:e.firstEffect=Zi,e.lastEffect=Zi))}if(n=Zi.sibling,n!==null)return n;Zi=e}while(Zi!==null);return au===Q0&&(au=oB),null}function u6(e){var n=e.expirationTime;return e=e.childExpirationTime,n>e?n:e}function b0(e){var n=T4();return Rm(99,uq.bind(null,e,n)),null}function uq(e,n){do Fy();while(vC!==null);if((Li&(sh|hf))!==su)throw Error(jn(327));var t=e.finishedWork,r=e.finishedExpirationTime;if(t===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,t===e.current)throw Error(jn(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=u6(t);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Kc&&(Zi=Kc=null,HA=0),1<t.effectTag?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){var o=Li;Li|=hf,oU.current=null,Dw=e2;var s=Dk();if(jS(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var p=a.getSelection&&a.getSelection();if(p&&p.rangeCount!==0){a=p.anchorNode;var g=p.anchorOffset,b=p.focusNode;p=p.focusOffset;try{a.nodeType,b.nodeType}catch{a=null;break e}var B=0,k=-1,P=-1,R=0,Z=0,W=s,Q=null;t:for(;;){for(var q;W!==a||g!==0&&W.nodeType!==3||(k=B+g),W!==b||p!==0&&W.nodeType!==3||(P=B+p),W.nodeType===3&&(B+=W.nodeValue.length),(q=W.firstChild)!==null;)Q=W,W=q;for(;;){if(W===s)break t;if(Q===a&&++R===g&&(k=B),Q===b&&++Z===p&&(P=B),(q=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=q}a=k===-1||P===-1?null:{start:k,end:P}}else a=null}a=a||{start:0,end:0}}else a=null;Uw={activeElementDetached:null,focusedElem:s,selectionRange:a},e2=!1,Gr=i;do try{Aq()}catch(De){if(Gr===null)throw Error(jn(330));Y0(Gr,De),Gr=Gr.nextEffect}while(Gr!==null);Gr=i;do try{for(s=e,a=n;Gr!==null;){var oe=Gr.effectTag;if(oe&16&&zC(Gr.stateNode,""),oe&128){var re=Gr.alternate;if(re!==null){var ce=re.ref;ce!==null&&(typeof ce=="function"?ce(null):ce.current=null)}}switch(oe&1038){case 2:gI(Gr),Gr.effectTag&=-3;break;case 6:gI(Gr),Gr.effectTag&=-3,Gw(Gr.alternate,Gr);break;case 1024:Gr.effectTag&=-1025;break;case 1028:Gr.effectTag&=-1025,Gw(Gr.alternate,Gr);break;case 4:Gw(Gr.alternate,Gr);break;case 8:g=Gr,nU(s,g,a),tU(g)}Gr=Gr.nextEffect}}catch(De){if(Gr===null)throw Error(jn(330));Y0(Gr,De),Gr=Gr.nextEffect}while(Gr!==null);if(ce=Uw,re=Dk(),oe=ce.focusedElem,a=ce.selectionRange,re!==oe&&oe&&oe.ownerDocument&&cD(oe.ownerDocument.documentElement,oe)){for(a!==null&&jS(oe)&&(re=a.start,ce=a.end,ce===void 0&&(ce=re),"selectionStart"in oe?(oe.selectionStart=re,oe.selectionEnd=Math.min(ce,oe.value.length)):(ce=(re=oe.ownerDocument||document)&&re.defaultView||window,ce.getSelection&&(ce=ce.getSelection(),g=oe.textContent.length,s=Math.min(a.start,g),a=a.end===void 0?s:Math.min(a.end,g),!ce.extend&&s>a&&(g=a,a=s,s=g),g=Fk(oe,s),b=Fk(oe,a),g&&b&&(ce.rangeCount!==1||ce.anchorNode!==g.node||ce.anchorOffset!==g.offset||ce.focusNode!==b.node||ce.focusOffset!==b.offset)&&(re=re.createRange(),re.setStart(g.node,g.offset),ce.removeAllRanges(),s>a?(ce.addRange(re),ce.extend(b.node,b.offset)):(re.setEnd(b.node,b.offset),ce.addRange(re)))))),re=[],ce=oe;ce=ce.parentNode;)ce.nodeTyp
Line truncated
|
||||
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`+UO(s))}su!==fB&&(su=CL),a=dB(a,s),B=o;do{switch(B.tag){case 3:h=a,B.effectTag|=4096,B.expirationTime=n;var re=yL(B,h,n);lI(B,re);break e;case 1:h=a;var Ae=B.type,ae=B.stateNode;if(!(B.effectTag&64)&&(typeof Ae.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(Tm===null||!Tm.has(ae)))){B.effectTag|=4096,B.expirationTime=n;var se=vL(B,h,n);lI(B,se);break e}}B=B.return}while(B!==null)}Zi=kL(Zi)}catch(ye){n=ye;continue}break}while(!0)}function EL(){var e=Z2.current;return Z2.current=H2,e===null?H2:e}function OL(e,n){e<gp&&2<e&&(gp=e),n!==null&&e<eC&&2<e&&(eC=e,e3=n)}function N4(e){e>tC&&(tC=e)}function Fq(){for(;Zi!==null;)Zi=BL(Zi)}function Dq(){for(;Zi!==null&&!_q();)Zi=BL(Zi)}function BL(e){var n=IL(e.alternate,e,XA);return e.memoizedProps=e.pendingProps,n===null&&(n=kL(e)),_L.current=null,n}function kL(e){Zi=e;do{var n=Zi.alternate;if(e=Zi.return,Zi.effectTag&2048){if(n=Eq(Zi),n!==null)return n.effectTag&=2047,n;e!==null&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}else{if(n=Sq(n,Zi,XA),XA===1||Zi.childExpirationTime!==1){for(var t=0,r=Zi.child;r!==null;){var i=r.expirationTime,o=r.childExpirationTime;i>t&&(t=i),o>t&&(t=o),r=r.sibling}Zi.childExpirationTime=t}if(n!==null)return n;e!==null&&!(e.effectTag&2048)&&(e.firstEffect===null&&(e.firstEffect=Zi.firstEffect),Zi.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=Zi.firstEffect),e.lastEffect=Zi.lastEffect),1<Zi.effectTag&&(e.lastEffect!==null?e.lastEffect.nextEffect=Zi:e.firstEffect=Zi,e.lastEffect=Zi))}if(n=Zi.sibling,n!==null)return n;Zi=e}while(Zi!==null);return su===V0&&(su=fB),null}function g6(e){var n=e.expirationTime;return e=e.childExpirationTime,n>e?n:e}function S0(e){var n=U4();return Wm(99,Lq.bind(null,e,n)),null}function Lq(e,n){do zy();while(M_!==null);if((Ri&(ch|yf))!==lu)throw Error(jn(327));var t=e.finishedWork,r=e.finishedExpirationTime;if(t===null)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,t===e.current)throw Error(jn(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=g6(t);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Lc&&(Zi=Lc=null,XA=0),1<t.effectTag?t.lastEffect!==null?(t.lastEffect.nextEffect=t,i=t.firstEffect):i=t:i=t.firstEffect,i!==null){var o=Ri;Ri|=yf,_L.current=null,Nw=a2;var s=$k();if(VS(s)){if("selectionStart"in s)var a={start:s.selectionStart,end:s.selectionEnd};else e:{a=(a=s.ownerDocument)&&a.defaultView||window;var h=a.getSelection&&a.getSelection();if(h&&h.rangeCount!==0){a=h.anchorNode;var g=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{a.nodeType,C.nodeType}catch{a=null;break e}var B=0,k=-1,P=-1,U=0,Z=0,W=s,Q=null;t:for(;;){for(var q;W!==a||g!==0&&W.nodeType!==3||(k=B+g),W!==C||h!==0&&W.nodeType!==3||(P=B+h),W.nodeType===3&&(B+=W.nodeValue.length),(q=W.firstChild)!==null;)Q=W,W=q;for(;;){if(W===s)break t;if(Q===a&&++U===g&&(k=B),Q===C&&++Z===h&&(P=B),(q=W.nextSibling)!==null)break;W=Q,Q=W.parentNode}W=q}a=k===-1||P===-1?null:{start:k,end:P}}else a=null}a=a||{start:0,end:0}}else a=null;Gw={activeElementDetached:null,focusedElem:s,selectionRange:a},a2=!1,Gr=i;do try{Uq()}catch(De){if(Gr===null)throw Error(jn(330));Z0(Gr,De),Gr=Gr.nextEffect}while(Gr!==null);Gr=i;do try{for(s=e,a=n;Gr!==null;){var oe=Gr.effectTag;if(oe&16&&$_(Gr.stateNode,""),oe&128){var re=Gr.alternate;if(re!==null){var Ae=re.ref;Ae!==null&&(typeof Ae=="function"?Ae(null):Ae.current=null)}}switch(oe&1038){case 2:EI(Gr),Gr.effectTag&=-3;break;case 6:EI(Gr),Gr.effectTag&=-3,Zw(Gr.alternate,Gr);break;case 1024:Gr.effectTag&=-1025;break;case 1028:Gr.effectTag&=-1025,Zw(Gr.alternate,Gr);break;case 4:Zw(Gr.alternate,Gr);break;case 8:g=Gr,gL(s,g,a),mL(g)}Gr=Gr.nextEffect}}catch(De){if(Gr===null)throw Error(jn(330));Z0(Gr,De),Gr=Gr.nextEffect}while(Gr!==null);if(Ae=Gw,re=$k(),oe=Ae.focusedElem,a=Ae.selectionRange,re!==oe&&oe&&oe.ownerDocument&&SD(oe.ownerDocument.documentElement,oe)){for(a!==null&&VS(oe)&&(re=a.start,Ae=a.end,Ae===void 0&&(Ae=re),"selectionStart"in oe?(oe.selectionStart=re,oe.selectionEnd=Math.min(Ae,oe.value.length)):(Ae=(re=oe.ownerDocument||document)&&re.defaultView||window,Ae.getSelection&&(Ae=Ae.getSelection(),g=oe.textContent.length,s=Math.min(a.start,g),a=a.end===void 0?s:Math.min(a.end,g),!Ae.extend&&s>a&&(g=a,a=s,s=g),g=Qk(oe,s),C=Qk(oe,a),g&&C&&(Ae.rangeCount!==1||Ae.anchorNode!==g.node||Ae.anchorOffset!==g.offset||Ae.focusNode!==C.node||Ae.focusOffset!==C.offset)&&(re=re.createRange(),re.setStart(g.node,g.offset),Ae.removeAllRanges(),s>a?(Ae.addRange(re),Ae.extend(C.node,C.offset)):(re.setEnd(C.node,C.offset),Ae.addRange(re)))))),re=[],Ae=oe;Ae=Ae.parentNode;)Ae.nodeTyp
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/(function(e){const n=L4,t=z4,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=q,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const we=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(we,H),we.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(we){if(we>i)throw new RangeError('The value "'+we+'" is invalid for option "size"');const H=new Uint8Array(we);return Object.setPrototypeOf(H,a.prototype),H}function a(we,H,Y){if(typeof we=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(we)}return p(we,H,Y)}a.poolSize=8192;function p(we,H,Y){if(typeof we=="string")return k(we,H);if(ArrayBuffer.isView(we))return R(we);if(we==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we);if(mr(we,ArrayBuffer)||we&&mr(we.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(we,SharedArrayBuffer)||we&&mr(we.buffer,SharedArrayBuffer)))return Z(we,H,Y);if(typeof we=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Be=we.valueOf&&we.valueOf();if(Be!=null&&Be!==we)return a.from(Be,H,Y);const st=W(we);if(st)return st;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof we[Symbol.toPrimitive]=="function")return a.from(we[Symbol.toPrimitive]("string"),H,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we)}a.from=function(we,H,Y){return p(we,H,Y)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function g(we){if(typeof we!="number")throw new TypeError('"size" argument must be of type number');if(we<0)throw new RangeError('The value "'+we+'" is invalid for option "size"')}function b(we,H,Y){return g(we),we<=0?s(we):H!==void 0?typeof Y=="string"?s(we).fill(H,Y):s(we).fill(H):s(we)}a.alloc=function(we,H,Y){return b(we,H,Y)};function B(we){return g(we),s(we<0?0:Q(we)|0)}a.allocUnsafe=function(we){return B(we)},a.allocUnsafeSlow=function(we){return B(we)};function k(we,H){if((typeof H!="string"||H==="")&&(H="utf8"),!a.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const Y=oe(we,H)|0;let Be=s(Y);const st=Be.write(we,H);return st!==Y&&(Be=Be.slice(0,st)),Be}function P(we){const H=we.length<0?0:Q(we.length)|0,Y=s(H);for(let Be=0;Be<H;Be+=1)Y[Be]=we[Be]&255;return Y}function R(we){if(mr(we,Uint8Array)){const H=new Uint8Array(we);return Z(H.buffer,H.byteOffset,H.byteLength)}return P(we)}function Z(we,H,Y){if(H<0||we.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(we.byteLength<H+(Y||0))throw new RangeError('"length" is outside of buffer bounds');let Be;return H===void 0&&Y===void 0?Be=new Uint8Array(we):Y===void 0?Be=new Uint8Array(we,H):Be=new Uint8Array(we,H,Y),Object.setPrototypeOf(Be,a.prototype),Be}function W(we){if(a.isBuffer(we)){const H=Q(we.length)|0,Y=s(H);return Y.length===0||we.copy(Y,0,0,H),Y}if(we.length!==void 0)return typeof we.length!="number"||xr(we.length)?s(0):P(we);if(we.type==="Buffer"&&Array.isArray(we.data))return P(we.data)}function Q(we){if(we>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return we|0}function q(we){return+we!=we&&(we=0),a.alloc(+we)}a.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==a.prototype},a.compare=function(H,Y){if(mr(H,Uint8Array)&&(H=a.from(H,H.offset,H.byteLength)),mr(Y,Uint8Array)&&(Y=a.from(Y,Y.offset,Y.byteLength)),!a.isBuffer(H)||!a.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===Y)return 0;let Be=H.length,st=Y.length;for(let St=0,Et=Math.min(Be,st);St<Et;++St)if(H[St]!==Y[St]){Be=H[St],st=Y[St];break}return Be<st?-1:st<Be?1:0},a.isEncoding=function(H){switch(String(H).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}},a.concat=function(H,Y){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return a.alloc(0);let Be;if(Y===void 0)for(Y=0,Be=0;Be<H.length;++Be)Y+=H[Be].length;const st=a.allocUnsafe(Y);let St=0;forLine truncated
|
||||
*/(function(e){const n=Q4,t=$4,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=q,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const we=new Uint8Array(1),H={foo:function(){return 42}};return Object.setPrototypeOf(H,Uint8Array.prototype),Object.setPrototypeOf(we,H),we.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(we){if(we>i)throw new RangeError('The value "'+we+'" is invalid for option "size"');const H=new Uint8Array(we);return Object.setPrototypeOf(H,a.prototype),H}function a(we,H,Y){if(typeof we=="number"){if(typeof H=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(we)}return h(we,H,Y)}a.poolSize=8192;function h(we,H,Y){if(typeof we=="string")return k(we,H);if(ArrayBuffer.isView(we))return U(we);if(we==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we);if(mr(we,ArrayBuffer)||we&&mr(we.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(mr(we,SharedArrayBuffer)||we&&mr(we.buffer,SharedArrayBuffer)))return Z(we,H,Y);if(typeof we=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Be=we.valueOf&&we.valueOf();if(Be!=null&&Be!==we)return a.from(Be,H,Y);const st=W(we);if(st)return st;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof we[Symbol.toPrimitive]=="function")return a.from(we[Symbol.toPrimitive]("string"),H,Y);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof we)}a.from=function(we,H,Y){return h(we,H,Y)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function g(we){if(typeof we!="number")throw new TypeError('"size" argument must be of type number');if(we<0)throw new RangeError('The value "'+we+'" is invalid for option "size"')}function C(we,H,Y){return g(we),we<=0?s(we):H!==void 0?typeof Y=="string"?s(we).fill(H,Y):s(we).fill(H):s(we)}a.alloc=function(we,H,Y){return C(we,H,Y)};function B(we){return g(we),s(we<0?0:Q(we)|0)}a.allocUnsafe=function(we){return B(we)},a.allocUnsafeSlow=function(we){return B(we)};function k(we,H){if((typeof H!="string"||H==="")&&(H="utf8"),!a.isEncoding(H))throw new TypeError("Unknown encoding: "+H);const Y=oe(we,H)|0;let Be=s(Y);const st=Be.write(we,H);return st!==Y&&(Be=Be.slice(0,st)),Be}function P(we){const H=we.length<0?0:Q(we.length)|0,Y=s(H);for(let Be=0;Be<H;Be+=1)Y[Be]=we[Be]&255;return Y}function U(we){if(mr(we,Uint8Array)){const H=new Uint8Array(we);return Z(H.buffer,H.byteOffset,H.byteLength)}return P(we)}function Z(we,H,Y){if(H<0||we.byteLength<H)throw new RangeError('"offset" is outside of buffer bounds');if(we.byteLength<H+(Y||0))throw new RangeError('"length" is outside of buffer bounds');let Be;return H===void 0&&Y===void 0?Be=new Uint8Array(we):Y===void 0?Be=new Uint8Array(we,H):Be=new Uint8Array(we,H,Y),Object.setPrototypeOf(Be,a.prototype),Be}function W(we){if(a.isBuffer(we)){const H=Q(we.length)|0,Y=s(H);return Y.length===0||we.copy(Y,0,0,H),Y}if(we.length!==void 0)return typeof we.length!="number"||xr(we.length)?s(0):P(we);if(we.type==="Buffer"&&Array.isArray(we.data))return P(we.data)}function Q(we){if(we>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return we|0}function q(we){return+we!=we&&(we=0),a.alloc(+we)}a.isBuffer=function(H){return H!=null&&H._isBuffer===!0&&H!==a.prototype},a.compare=function(H,Y){if(mr(H,Uint8Array)&&(H=a.from(H,H.offset,H.byteLength)),mr(Y,Uint8Array)&&(Y=a.from(Y,Y.offset,Y.byteLength)),!a.isBuffer(H)||!a.isBuffer(Y))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(H===Y)return 0;let Be=H.length,st=Y.length;for(let St=0,Et=Math.min(Be,st);St<Et;++St)if(H[St]!==Y[St]){Be=H[St],st=Y[St];break}return Be<st?-1:st<Be?1:0},a.isEncoding=function(H){switch(String(H).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}},a.concat=function(H,Y){if(!Array.isArray(H))throw new TypeError('"list" argument must be an Array of Buffers');if(H.length===0)return a.alloc(0);let Be;if(Y===void 0)for(Y=0,Be=0;Be<H.length;++Be)Y+=H[Be].length;const st=a.allocUnsafe(Y);let St=0;forLine 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
|
||||
*/e3.exports;(function(e,n){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",g=500,b="__lodash_placeholder__",B=1,k=2,P=4,R=1,Z=2,W=1,Q=2,q=4,oe=8,re=16,ce=32,se=64,le=128,ye=256,De=512,Ne=30,et="...",ft=800,Ke=16,rt=1,Ce=2,Rt=3,jt=1/0,tn=9007199254740991,Qt=17976931348623157e292,He=NaN,Je=4294967295,tt=Je-1,rn=Je>>>1,mt=[["ary",le],["bind",W],["bindKey",Q],["curry",oe],["curryRight",re],["flip",De],["partial",ce],["partialRight",se],["rearg",ye]],dt="[object Arguments]",kt="[object Array]",Pt="[object AsyncFunction]",Me="[object Boolean]",he="[object Date]",be="[object DOMException]",Pe="[object Error]",Ze="[object Function]",nt="[object GeneratorFunction]",xt="[object Map]",Ft="[object Number]",Dt="[object Null]",pt="[object Object]",nr="[object Promise]",pn="[object Proxy]",bn="[object RegExp]",Jn="[object Set]",mr="[object String]",xr="[object Symbol]",Nr="[object Undefined]",Cr="[object WeakMap]",fi="[object WeakSet]",we="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",Be="[object Float64Array]",st="[object Int8Array]",St="[object Int16Array]",Et="[object Int32Array]",Nt="[object Uint8Array]",mn="[object Uint8ClampedArray]",Kn="[object Uint16Array]",En="[object Uint32Array]",m=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Ur=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,de=RegExp(Wn.source),ve=RegExp(Te.source),Se=/<%-([\s\S]+?)%>/g,Re=/<%([\s\S]+?)%>/g,Xe=/<%=([\s\S]+?)%>/g,at=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ht=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_t=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(_t.source),Ht=/^\s+/,qt=/\s/,Vn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,On=/\{\n\/\* \[wrapped with (.+)\] \*/,ir=/,? & /,or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tr=/[()=,{}\[\]\/\s]/,Rr=/\\(\\)?/g,Dr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ei=/\w*$/,rr=/^[-+]0x[0-9a-f]+$/i,li=/^0b[01]+$/i,ki=/^\[object .+?Constructor\]$/,Xi=/^0o[0-7]+$/i,xo=/^(?:0|[1-9]\d*)$/,pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Oo=/($^)/,us=/['\n\r\u2028\u2029\\]/g,ka="\\ud800-\\udfff",Ci="\\u0300-\\u036f",Ms="\\ufe20-\\ufe2f",Si="\\u20d0-\\u20ff",Qn=Ci+Ms+Si,so="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",Ji="\\xac\\xb1\\xd7\\xf7",ge="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$e="\\u2000-\\u206f",Xt=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sn="A-Z\\xc0-\\xd6\\xd8-\\xde",Kt="\\ufe0e\\ufe0f",Mn=Ji+ge+$e+Xt,cr="['’]",Ii="["+ka+"]",ii="["+Mn+"]",ya="["+Qn+"]",$a="\\d+",Br="["+so+"]",mi="["+Go+"]",rl="[^"+ka+Mn+$a+so+Go+sn+"]",Ya="\\ud83c[\\udffb-\\udfff]",ba="(?:"+ya+"|"+Ya+")",Ou="[^"+ka+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",qa="[\\ud800-\\udbff][\\udc00-\\udfff]",Va="["+sn+"]",Ns="\\u200d",_A="(?:"+mi+"|"+rl+")",fl="(?:"+Va+"|"+rl+")",tc="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",bA="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",xA=ba+"?",Ju="["+Kt+"]?",nc="(?:"+Ns+"(?:"+[Ou,Ws,qa].join("|")+")"+Ju+xA+")*",Ha="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ss="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wA=Ju+xA+nc,pl="(?:"+[Br,Ws,qa].join("|")+")"+wA,kl="(?:"+[Ou+ya+"?",ya,Ws,qa,Ii].join("|")+")",Ho=RegExp(cr,"g"),eA=RegExp(ya,"g"),lu=RegExp(Ya+"(?="+Ya+")|"+kl+wA,"g"),uu=RegExp([Va+"?"+mi+"+"+tc+"(?="+[ii,Va,"$"].join("|")+")",fl+"+"+bA+"(?="+[ii,Va+_A,"$"].join("|")+")",Va+"?"+_A+"+"+tc,Va+"+"+bA,Ss,Ha,$a,pl].join("|"),"g"),Bu=RegExp("["+Ns+ka+Qn+Kt+"]"),As=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Au=["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"],rc=-1,mo={};mo[Y]=mo[Be]=mo[st]=mo[St]=mo[Et]=mo[Nt]=mo[mn]=mo[Kn]=mo[En]=!0,mo[dt]=mo[kt]=mo[we]=mo[Me]=mo[H]=mo[he]=mo[Pe]=mo[Ze]=mo[xt]=mo[Ft]=mo[pt]=mo[bn]=mo[Jn]=mo[mr]=mo[Cr]=!1;var Ao={};Ao[dt]=Ao[kt]=Ao[we]=Ao[H]=Ao[Me]=Ao[he]=Ao[Y]=Ao[Be]=Ao[st]=Ao[St]=Ao[Et]=Ao[xt]=Ao[Ft]=Ao[pt]=Ao[bn]=Ao[Jn]=Ao[mr]=Ao[xr]=Ao[Nt]=Ao[mn]=Ao[Kn]=Ao[En]=!0,Ao[Pe]=Ao[Ze]=Ao[Cr]=!1;var ne={À:"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
|
||||
*/a3.exports;(function(e,n){(function(){var t,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",h="__lodash_hash_undefined__",g=500,C="__lodash_placeholder__",B=1,k=2,P=4,U=1,Z=2,W=1,Q=2,q=4,oe=8,re=16,Ae=32,ae=64,se=128,ye=256,De=512,Ne=30,et="...",ft=800,Ke=16,rt=1,_e=2,Ut=3,jt=1/0,nn=9007199254740991,Qt=17976931348623157e292,He=NaN,Je=4294967295,tt=Je-1,on=Je>>>1,mt=[["ary",se],["bind",W],["bindKey",Q],["curry",oe],["curryRight",re],["flip",De],["partial",Ae],["partialRight",ae],["rearg",ye]],dt="[object Arguments]",kt="[object Array]",Pt="[object AsyncFunction]",Me="[object Boolean]",he="[object Date]",be="[object DOMException]",Pe="[object Error]",Ze="[object Function]",nt="[object GeneratorFunction]",xt="[object Map]",Ft="[object Number]",Dt="[object Null]",pt="[object Object]",nr="[object Promise]",pn="[object Proxy]",bn="[object RegExp]",Jn="[object Set]",mr="[object String]",xr="[object Symbol]",Nr="[object Undefined]",_r="[object WeakMap]",fi="[object WeakSet]",we="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",Be="[object Float64Array]",st="[object Int8Array]",St="[object Int16Array]",Et="[object Int32Array]",Nt="[object Uint8Array]",mn="[object Uint8ClampedArray]",Kn="[object Uint16Array]",En="[object Uint32Array]",m=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Lr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Wn=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,de=RegExp(Wn.source),ve=RegExp(Te.source),Se=/<%-([\s\S]+?)%>/g,Ue=/<%([\s\S]+?)%>/g,Xe=/<%=([\s\S]+?)%>/g,at=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ht=/^\w*$/,Ve=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ct=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(Ct.source),Ht=/^\s+/,qt=/\s/,Vn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,On=/\{\n\/\* \[wrapped with (.+)\] \*/,ir=/,? & /,or=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tr=/[()=,{}\[\]\/\s]/,Ur=/\\(\\)?/g,Dr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ei=/\w*$/,rr=/^[-+]0x[0-9a-f]+$/i,li=/^0b[01]+$/i,ki=/^\[object .+?Constructor\]$/,Xi=/^0o[0-7]+$/i,xo=/^(?:0|[1-9]\d*)$/,pi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Oo=/($^)/,As=/['\n\r\u2028\u2029\\]/g,Ia="\\ud800-\\udfff",_i="\\u0300-\\u036f",Ss="\\ufe20-\\ufe2f",Si="\\u20d0-\\u20ff",Qn=_i+Ss+Si,so="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",Ji="\\xac\\xb1\\xd7\\xf7",ge="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$e="\\u2000-\\u206f",Xt=" \\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",Kt="\\ufe0e\\ufe0f",Mn=Ji+ge+$e+Xt,cr="['’]",Ii="["+Ia+"]",ii="["+Mn+"]",ya="["+Qn+"]",Ya="\\d+",Br="["+so+"]",mi="["+Go+"]",il="[^"+Ia+Mn+Ya+so+Go+ln+"]",qa="\\ud83c[\\udffb-\\udfff]",xa="(?:"+ya+"|"+qa+")",Bu="[^"+Ia+"]",Ns="(?:\\ud83c[\\udde6-\\uddff]){2}",Va="[\\ud800-\\udbff][\\udc00-\\udfff]",Ha="["+ln+"]",Gs="\\u200d",xA="(?:"+mi+"|"+il+")",pl="(?:"+Ha+"|"+il+")",ic="(?:"+cr+"(?:d|ll|m|re|s|t|ve))?",wA="(?:"+cr+"(?:D|LL|M|RE|S|T|VE))?",MA=xa+"?",tA="["+Kt+"]?",oc="(?:"+Gs+"(?:"+[Bu,Ns,Va].join("|")+")"+tA+MA+")*",Za="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Es="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",SA=tA+MA+oc,ml="(?:"+[Br,Ns,Va].join("|")+")"+SA,Il="(?:"+[Bu+ya+"?",ya,Ns,Va,Ii].join("|")+")",Ho=RegExp(cr,"g"),nA=RegExp(ya,"g"),uu=RegExp(qa+"(?="+qa+")|"+Il+SA,"g"),Au=RegExp([Ha+"?"+mi+"+"+ic+"(?="+[ii,Ha,"$"].join("|")+")",pl+"+"+wA+"(?="+[ii,Ha+xA,"$"].join("|")+")",Ha+"?"+xA+"+"+ic,Ha+"+"+wA,Es,Za,Ya,ml].join("|"),"g"),ku=RegExp("["+Gs+Ia+Qn+Kt+"]"),cs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,cu=["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"],ac=-1,mo={};mo[Y]=mo[Be]=mo[st]=mo[St]=mo[Et]=mo[Nt]=mo[mn]=mo[Kn]=mo[En]=!0,mo[dt]=mo[kt]=mo[we]=mo[Me]=mo[H]=mo[he]=mo[Pe]=mo[Ze]=mo[xt]=mo[Ft]=mo[pt]=mo[bn]=mo[Jn]=mo[mr]=mo[_r]=!1;var Ao={};Ao[dt]=Ao[kt]=Ao[we]=Ao[H]=Ao[Me]=Ao[he]=Ao[Y]=Ao[Be]=Ao[st]=Ao[St]=Ao[Et]=Ao[xt]=Ao[Ft]=Ao[pt]=Ao[bn]=Ao[Jn]=Ao[mr]=Ao[xr]=Ao[Nt]=Ao[mn]=Ao[Kn]=Ao[En]=!0,Ao[Pe]=Ao[Ze]=Ao[_r]=!1;var ne={À:"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 h(v){return ee(v)||V(v)||!!(Bf&&v&&v[Bf])}function x(v,S){var F=typeof v;return S=S??tn,!!S&&(F=="number"||F!="symbol"&&xo.test(v))&&v>-1&&v%1==0&&v<S}function _(v,S,F){if(!_n(F))return!1;var X=typeof S;return(X=="number"?me(F)&&x(S,F.length):X=="string"&&S in F)?K(F[S],v):!1}function E(v,S){if(ee(v))return!1;var F=typeof v;return F=="number"||F=="symbol"||F=="boolean"||v==null||No(v)?!0:ht.test(v)||!at.test(v)||S!=null&&v in co(S)}function U(v){var S=typeof v;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?v!=="__proto__":v===null}function $(v){var S=Gd(v),F=ke[S];if(typeof F!="function"||!(S in jr.prototype))return!1;if(v===F)return!0;var X=vc(F);return!!X&&v===X[0]}function J(v){return!!Ch&&Ch in v}var ae=fu?Dn:Iw;function pe(v){var S=v&&v.constructor,F=typeof S=="function"&&S.prototype||Jo;return v===F}function We(v){return v===v&&!_n(v)}function qe(v,S){return function(F){return F==null?!1:F[v]===S&&(S!==t||v in co(F))}}function wt(v){var S=Vp(v,function(X){return F.size===g&&F.clear(),X}),F=S.cache;return S}function gt(v,S){var F=v[1],X=S[1],_e=F|X,Ue=_e<(W|Q|le),ot=X==le&&F==oe||X==le&&F==ye&&v[7].length<=S[8]||X==(le|ye)&&S[7].length<=S[8]&&F==oe;if(!(Ue||ot))return v;X&W&&(v[2]=S[2],_e|=F&W?0:q);var yt=S[3];if(yt){var Bt=v[3];v[3]=Bt?Rd(Bt,yt,S[4]):yt,v[4]=Bt?Tl(v[3],b):S[4]}return yt=S[5],yt&&(Bt=v[5],v[5]=Bt?Kh(Bt,yt,S[6]):yt,v[6]=Bt?Tl(v[5],b):S[6]),yt=S[7],yt&&(v[7]=yt),X&le&&(v[8]=v[8]==null?S[8]:ea(v[8],S[8])),v[9]==null&&(v[9]=S[9]),v[0]=S[0],v[1]=_e,v}function Ut(v){var S=[];if(v!=null)for(var F in co(v))S.push(F);return S}function cn(v){return yl.call(v)}function Bn(v,S,F){return S=to(S===t?v.length-1:S,0),function(){for(var X=arguments,_e=-1,Ue=to(X.length-S,0),ot=Lt(Ue);++_e<Ue;)ot[_e]=X[S+_e];_e=-1;for(var yt=Lt(S+1);++_e<S;)yt[_e]=X[_e];return yt[S]=F(ot),cs(v,this,yt)}}function Gn(v,S){return S.length<2?v:Bo(v,Ma(S,0,-1))}function Cn(v,S){for(var F=v.length,X=ea(S.length,F),_e=qs(v);X--;){var Ue=S[X];v[X]=x(Ue,F)?_e[Ue]:t}return v}function Fn(v,S){if(!(S==="constructor"&&typeof v[S]=="function")&&S!="__proto__")return v[S]}var ar=ko(Fp),Or=Du||function(v,S){return Yr.setTimeout(v,S)},yr=ko(B1);function oi(v,S,F){var X=S+"";return yr(v,A(X,Ja(Fa(X),F)))}function ko(v){var S=0,F=0;return function(){var X=gr(),_e=Ke-(X-F);if(F=X,_e>0){if(++S>=ft)return arguments[0]}else S=0;return v.apply(t,arguments)}}function Da(v,S){var F=-1,X=v.length,_e=X-1;for(S=S===t?X:S;++F<S;){var Ue=Kp(F,_e),ot=v[Ue];v[Ue]=v[F],v[F]=ot}return v.length=S,v}var Aa=wt(function(v){var S=[];return v.charCodeAt(0)===46&&S.push(""),v.replace(Ve,function(F,X,_e,Ue){S.push(_e?Ue.replace(Rr,"$1"):X||F)}),S});function Sa(v){if(typeof v=="string"||No(v))return v;var S=v+"";return S=="0"&&1/v==-jt?"-0":S}function Xa(v){if(v!=null){try{return Os.call(v)}catch{}try{return v+""}catch{}}return""}function Ja(v,S){return Ql(mt,function(F){var X="_."+F[0];S&F[1]&&!Lc(v,X)&&v.push(X)}),v.sort()}function bl(v){if(v instanceof jr)return v.clone();var S=new no(v.__wrapped__,v.__chain__);return S.__actions__=qs(v.__actions__),S.__index__=v.__index__,S.__values__=v.__values__,S}function Vs(v,S,F){(F?_(v,S,F):S===t)?S=1:S=to($r(S),0);var X=v==null?0:v.length;if(!X||S<1)return[];for(var _e=0,Ue=0,ot=Lt(yo(X/S));_e<X;)ot[Ue++]=Ma(v,_e,_e+=S);return ot}function ms(v){for(var S=-1,F=v==null?0:v.length,X=0,_e=[];++S<F;){var Ue=v[S];Ue&&(_e[X++]=Ue)}return _e}function es(){var v=arguments.length;if(!v)return[];for(var S=Lt(v-1),F=arguments[0],X=v;X--;)S[X-1]=arguments[X];return Tu(ee(F)?qs(F):[F],vo(S,1))}var na=ji(function(v,S){return xe(v)?Yo(v,vo(S,1,xe,!0)):[]}),gs=ji(function(v,S){var F=uA(S);return xe(F)&&(F=t),xe(v)?Yo(v,vo(S,1,xe,!0),Qr(F,2)):[]}),Qd=ji(function(v,S){var F=uA(S);return xe(F)&&(F=t),xe(v)?Yo(v,vo(S,1,xe,!0),t,F):[]});function RA(v,S,F){var X=v==null?0:v.length;return X?(S=F||S===t?1:$r(S),Ma(v,S<0?0:S,X)):[]}function Ks(v,S,F){var X=v==null?0:v.length;return X?(S=F||S===t?1:$r(S),S=X-S,Ma(v,0,S<0?0:S)):[]}function LA(v,S){return v&&v.length?Xc(v,Qr(S,3),!0,!0):[]}function Ps(v,S){return v&&v.length?Xc(v,Qr(S,3),!0):[]}function a0(v,S,F,X){var _e=v==null?0:v.length;return _e?(F&&typeof F!="number"&&_(v,S,F)&&(F=0,X=_e),ks(v,S,F,X)):[]}function lA(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var _e=F==null?0:$r(F);return _e<0&&(_e=to(X+_e,0)),hi(v,Qr(S,3),_e)}function _c(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var _e=X-1;return F!==t&&(_e=$r(F),_e=F<0?to(X+_e,0):ea(_e,X-1)),hi(v,Qr(S,3),_e,!0)}function Ua(v){var S=v==null?0:v.length;return S?vo(v,1):[]}function Hs(v){var S=v==null?0:v.length;return S?vo(v,jt):[]}function $d(v,S){var F=v==null?0:v.length;return F?(S=S===t?1:$r(S),vo(v,S)):[]}function zA(v){for(var S=-1,F=v==null?0:v.length,X={};++S<F;){var _e=v[S];X[_e[0]]=_e[1]}return X}function Gp(v){return v&&v.length?v[0]:t}function s0(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var _e=F==null?0:$r(F);return _e<0&&(_e=to(X+_e,0)),Do(v,S,_e)}function Qp(v){var S=v==null?0:v.length;ret
Line truncated
|
||||
`;v.replace(hr,function(Ai,po,So,xc,hA,wc){return So||(So=xc),kn+=v.slice(gn,wc).replace(us,Pu),po&&(yt=!0,kn+=`' +
|
||||
`)}function f(v){return ee(v)||V(v)||!!(Kf&&v&&v[Kf])}function x(v,S){var F=typeof v;return S=S??nn,!!S&&(F=="number"||F!="symbol"&&xo.test(v))&&v>-1&&v%1==0&&v<S}function b(v,S,F){if(!Cn(F))return!1;var X=typeof S;return(X=="number"?me(F)&&x(S,F.length):X=="string"&&S in F)?K(F[S],v):!1}function E(v,S){if(ee(v))return!1;var F=typeof v;return F=="number"||F=="symbol"||F=="boolean"||v==null||No(v)?!0:ht.test(v)||!at.test(v)||S!=null&&v in co(S)}function L(v){var S=typeof v;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?v!=="__proto__":v===null}function $(v){var S=qd(v),F=ke[S];if(typeof F!="function"||!(S in jr.prototype))return!1;if(v===F)return!0;var X=bc(F);return!!X&&v===X[0]}function J(v){return!!Mh&&Mh in v}var le=pu?Dn:Uw;function pe(v){var S=v&&v.constructor,F=typeof S=="function"&&S.prototype||Jo;return v===F}function We(v){return v===v&&!Cn(v)}function qe(v,S){return function(F){return F==null?!1:F[v]===S&&(S!==t||v in co(F))}}function wt(v){var S=Jp(v,function(X){return F.size===g&&F.clear(),X}),F=S.cache;return S}function gt(v,S){var F=v[1],X=S[1],Ce=F|X,Le=Ce<(W|Q|se),ot=X==se&&F==oe||X==se&&F==ye&&v[7].length<=S[8]||X==(se|ye)&&S[7].length<=S[8]&&F==oe;if(!(Le||ot))return v;X&W&&(v[2]=S[2],Ce|=F&W?0:q);var yt=S[3];if(yt){var Bt=v[3];v[3]=Bt?Wd(Bt,yt,S[4]):yt,v[4]=Bt?Kl(v[3],C):S[4]}return yt=S[5],yt&&(Bt=v[5],v[5]=Bt?Uh(Bt,yt,S[6]):yt,v[6]=Bt?Kl(v[5],C):S[6]),yt=S[7],yt&&(v[7]=yt),X&se&&(v[8]=v[8]==null?S[8]:ea(v[8],S[8])),v[9]==null&&(v[9]=S[9]),v[0]=S[0],v[1]=Ce,v}function Lt(v){var S=[];if(v!=null)for(var F in co(v))S.push(F);return S}function dn(v){return vl.call(v)}function Bn(v,S,F){return S=to(S===t?v.length-1:S,0),function(){for(var X=arguments,Ce=-1,Le=to(X.length-S,0),ot=Rt(Le);++Ce<Le;)ot[Ce]=X[S+Ce];Ce=-1;for(var yt=Rt(S+1);++Ce<S;)yt[Ce]=X[Ce];return yt[S]=F(ot),ds(v,this,yt)}}function Gn(v,S){return S.length<2?v:Bo(v,Sa(S,0,-1))}function _n(v,S){for(var F=v.length,X=ea(S.length,F),Ce=Vs(v);X--;){var Le=S[X];v[X]=x(Le,F)?Ce[Le]:t}return v}function Fn(v,S){if(!(S==="constructor"&&typeof v[S]=="function")&&S!="__proto__")return v[S]}var ar=ko(Rp),Or=Lu||function(v,S){return Yr.setTimeout(v,S)},yr=ko(K1);function oi(v,S,F){var X=S+"";return yr(v,A(X,es(Da(X),F)))}function ko(v){var S=0,F=0;return function(){var X=gr(),Ce=Ke-(X-F);if(F=X,Ce>0){if(++S>=ft)return arguments[0]}else S=0;return v.apply(t,arguments)}}function La(v,S){var F=-1,X=v.length,Ce=X-1;for(S=S===t?X:S;++F<S;){var Le=Lp(F,Ce),ot=v[Le];v[Le]=v[F],v[F]=ot}return v.length=S,v}var ca=wt(function(v){var S=[];return v.charCodeAt(0)===46&&S.push(""),v.replace(Ve,function(F,X,Ce,Le){S.push(Ce?Le.replace(Ur,"$1"):X||F)}),S});function Ea(v){if(typeof v=="string"||No(v))return v;var S=v+"";return S=="0"&&1/v==-jt?"-0":S}function Ja(v){if(v!=null){try{return Bs.call(v)}catch{}try{return v+""}catch{}}return""}function es(v,S){return $l(mt,function(F){var X="_."+F[0];S&F[1]&&!Nc(v,X)&&v.push(X)}),v.sort()}function xl(v){if(v instanceof jr)return v.clone();var S=new no(v.__wrapped__,v.__chain__);return S.__actions__=Vs(v.__actions__),S.__index__=v.__index__,S.__values__=v.__values__,S}function Hs(v,S,F){(F?b(v,S,F):S===t)?S=1:S=to($r(S),0);var X=v==null?0:v.length;if(!X||S<1)return[];for(var Ce=0,Le=0,ot=Rt(yo(X/S));Ce<X;)ot[Le++]=Sa(v,Ce,Ce+=S);return ot}function gs(v){for(var S=-1,F=v==null?0:v.length,X=0,Ce=[];++S<F;){var Le=v[S];Le&&(Ce[X++]=Le)}return Ce}function ts(){var v=arguments.length;if(!v)return[];for(var S=Rt(v-1),F=arguments[0],X=v;X--;)S[X-1]=arguments[X];return Ku(ee(F)?Vs(F):[F],vo(S,1))}var na=ji(function(v,S){return xe(v)?Yo(v,vo(S,1,xe,!0)):[]}),ys=ji(function(v,S){var F=cA(S);return xe(F)&&(F=t),xe(v)?Yo(v,vo(S,1,xe,!0),Qr(F,2)):[]}),Vd=ji(function(v,S){var F=cA(S);return xe(F)&&(F=t),xe(v)?Yo(v,vo(S,1,xe,!0),t,F):[]});function zA(v,S,F){var X=v==null?0:v.length;return X?(S=F||S===t?1:$r(S),Sa(v,S<0?0:S,X)):[]}function Ps(v,S,F){var X=v==null?0:v.length;return X?(S=F||S===t?1:$r(S),S=X-S,Sa(v,0,S<0?0:S)):[]}function jA(v,S){return v&&v.length?nd(v,Qr(S,3),!0,!0):[]}function Fs(v,S){return v&&v.length?nd(v,Qr(S,3),!0):[]}function A0(v,S,F,X){var Ce=v==null?0:v.length;return Ce?(F&&typeof F!="number"&&b(v,S,F)&&(F=0,X=Ce),Is(v,S,F,X)):[]}function AA(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var Ce=F==null?0:$r(F);return Ce<0&&(Ce=to(X+Ce,0)),hi(v,Qr(S,3),Ce)}function wc(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var Ce=X-1;return F!==t&&(Ce=$r(F),Ce=F<0?to(X+Ce,0):ea(Ce,X-1)),hi(v,Qr(S,3),Ce,!0)}function Ua(v){var S=v==null?0:v.length;return S?vo(v,1):[]}function Zs(v){var S=v==null?0:v.length;return S?vo(v,jt):[]}function Hd(v,S){var F=v==null?0:v.length;return F?(S=S===t?1:$r(S),vo(v,S)):[]}function WA(v){for(var S=-1,F=v==null?0:v.length,X={};++S<F;){var Ce=v[S];X[Ce[0]]=Ce[1]}return X}function qp(v){return v&&v.length?v[0]:t}function c0(v,S,F){var X=v==null?0:v.length;if(!X)return-1;var Ce=F==null?0:$r(F);return Ce<0&&(Ce=to(X+Ce,0)),Do(v,S,Ce)}function Vp(v){var S=v==null?0:v.length;ret
Line truncated
|
||||
`;v.replace(hr,function(Ai,po,So,Sc,pA,Ec){return So||(So=Sc),kn+=v.slice(gn,Ec).replace(As,Fu),po&&(yt=!0,kn+=`' +
|
||||
__e(`+po+`) +
|
||||
'`),hA&&(Bt=!0,kn+=`';
|
||||
`+hA+`;
|
||||
'`),pA&&(Bt=!0,kn+=`';
|
||||
`+pA+`;
|
||||
__p += '`),So&&(kn+=`' +
|
||||
((__t = (`+So+`)) == null ? '' : __t) +
|
||||
'`),gn=wc+Ai.length,Ai}),kn+=`';
|
||||
'`),gn=Ec+Ai.length,Ai}),kn+=`';
|
||||
`;var ui=Vi.call(S,"variable")&&S.variable;if(!ui)kn=`with (obj) {
|
||||
`+kn+`
|
||||
}
|
||||
`;else if(Tr.test(ui))throw new ti(a);kn=(Bt?kn.replace(m,""):kn).replace(Tt,"$1").replace(Ur,"$1;"),kn="function("+(ui||"obj")+`) {
|
||||
`;else if(Tr.test(ui))throw new ti(a);kn=(Bt?kn.replace(m,""):kn).replace(Tt,"$1").replace(Lr,"$1;"),kn="function("+(ui||"obj")+`) {
|
||||
`+(ui?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(yt?", __e = _.escape":"")+(Bt?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+kn+`return __p
|
||||
}`;var ro=ck(function(){return eo(Ue,Wr+"return "+kn).apply(t,ot)});if(ro.source=kn,en(ro))throw ro;return ro}function cQ(v){return ai(v).toLowerCase()}function dQ(v){return ai(v).toUpperCase()}function hQ(v,S,F){if(v=ai(v),v&&(F||S===t))return jc(v);if(!v||!(S=vu(S)))return v;var X=gl(v),_e=gl(S),Ue=Il(X,_e),ot=EA(X,_e)+1;return yc(X,Ue,ot).join("")}function fQ(v,S,F){if(v=ai(v),v&&(F||S===t))return v.slice(0,yh(v)+1);if(!v||!(S=vu(S)))return v;var X=gl(v),_e=EA(X,gl(S))+1;return yc(X,0,_e).join("")}function pQ(v,S,F){if(v=ai(v),v&&(F||S===t))return v.replace(Ht,"");if(!v||!(S=vu(S)))return v;var X=gl(v),_e=Il(X,gl(S));return yc(X,_e).join("")}function mQ(v,S){var F=Ne,X=et;if(_n(S)){var _e="separator"in S?S.separator:_e;F="length"in S?$r(S.length):F,X="omission"in S?vu(S.omission):X}v=ai(v);var Ue=v.length;if(OA(v)){var ot=gl(v);Ue=ot.length}if(F>=Ue)return v;var yt=F-BA(X);if(yt<1)return X;var Bt=ot?yc(ot,0,yt).join(""):v.slice(0,yt);if(_e===t)return Bt+X;if(ot&&(yt+=Bt.length-yt),Zl(_e)){if(v.slice(yt).search(_e)){var gn,yn=Bt;for(_e.global||(_e=ds(_e.source,ai(ei.exec(_e))+"g")),_e.lastIndex=0;gn=_e.exec(yn);)var kn=gn.index;Bt=Bt.slice(0,kn===t?yt:kn)}}else if(v.indexOf(vu(_e),yt)!=yt){var hr=Bt.lastIndexOf(_e);hr>-1&&(Bt=Bt.slice(0,hr))}return Bt+X}function gQ(v){return v=ai(v),v&&de.test(v)?v.replace(Wn,nA):v}var yQ=Fh(function(v,S,F){return v+(F?" ":"")+S.toUpperCase()}),Mw=Ph("toUpperCase");function Ak(v,S,F){return v=ai(v),S=F?t:S,S===t?Of(v)?Ed(v):Bp(v):v.match(S)||[]}var ck=ji(function(v,S){try{return cs(v,t,S)}catch(F){return en(F)?F:new ti(F)}}),vQ=UA(function(v,S){return Ql(S,function(F){F=Sa(F),In(v,F,Z1(v[F],v))}),v});function CQ(v){var S=v==null?0:v.length,F=Qr();return v=S?Qo(v,function(X){if(typeof X[1]!="function")throw new hs(s);return[F(X[0]),X[1]]}):[],ji(function(X){for(var _e=-1;++_e<S;){var Ue=v[_e];if(cs(Ue[0],this,X))return cs(Ue[1],this,X)}})}function _Q(v){return bi(zi(v,B))}function Sw(v){return function(){return v}}function bQ(v,S){return v==null||v!==v?S:v}var xQ=Up(),wQ=Up(!0);function GA(v){return v}function Ew(v){return Vc(typeof v=="function"?v:zi(v,B))}function MQ(v){return Eh(zi(v,B))}function SQ(v,S){return Oh(v,zi(S,B))}var EQ=ji(function(v,S){return function(F){return FA(F,v,S)}}),OQ=ji(function(v,S){return function(F){return FA(v,F,S)}});function Ow(v,S,F){var X=Sl(S),_e=_a(S,X);F==null&&!(_n(S)&&(_e.length||!X.length))&&(F=S,S=v,v=this,_e=_a(S,Sl(S)));var Ue=!(_n(F)&&"chain"in F)||!!F.chain,ot=Dn(v);return Ql(_e,function(yt){var Bt=S[yt];v[yt]=Bt,ot&&(v.prototype[yt]=function(){var gn=this.__chain__;if(Ue||gn){var yn=v(this.__wrapped__),kn=yn.__actions__=qs(this.__actions__);return kn.push({func:Bt,args:arguments,thisArg:v}),yn.__chain__=gn,yn}return Bt.apply(v,Tu([this.value()],arguments))})}),v}function BQ(){return Yr._===this&&(Yr._=wa),this}function Bw(){}function kQ(v){return v=$r(v),ji(function(S){return Fd(S,v)})}var IQ=Lp(Qo),TQ=Lp(Rc),KQ=Lp(oc);function dk(v){return E(v)?aa(Sa(v)):Vm(v)}function PQ(v){return function(S){return v==null?t:Bo(v,S)}}var FQ=Wd(),DQ=Wd(!0);function kw(){return[]}function Iw(){return!1}function UQ(){return{}}function RQ(){return""}function LQ(){return!0}function zQ(v,S){if(v=$r(v),v<1||v>tn)return[];var F=Je,X=ea(v,Je);S=Qr(S),v-=Je;for(var _e=go(X,S);++F<v;)S(F);return _e}function jQ(v){return ee(v)?Qo(v,Sa):No(v)?[v]:qs(Aa(ai(v)))}function WQ(v){var S=++vh;return ai(v)+S}var NQ=jd(function(v,S){return v+S},0),GQ=r0("ceil"),QQ=jd(function(v,S){return v/S},1),$Q=r0("floor");function YQ(v){return v&&v.length?Wo(v,GA,Mo):t}function qQ(v,S){return v&&v.length?Wo(v,Qr(S,2),Mo):t}function VQ(v){return Ku(v,GA)}function HQ(v,S){return Ku(v,Qr(S,2))}function ZQ(v){return v&&v.length?Wo(v,GA,ju):t}function XQ(v,S){return v&&v.length?Wo(v,Qr(S,2),ju):t}var JQ=jd(function(v,S){return v*S},1),e$=r0("round"),t$=jd(function(v,S){return v-S},0);function n$(v){return v&&v.length?wo(v,GA):0}function r$(v,S){return v&&v.length?wo(v,Qr(S,2)):0}return ke.after=Qh,ke.ary=H1,ke.assign=jA,ke.assignIn=WA,ke.assignInWith=Qu,ke.assignWith=qd,ke.at=NA,ke.before=mv,ke.bind=Z1,ke.bindAll=vQ,ke.bindKey=X1,ke.castArray=c,ke.chain=dv,ke.chunk=Vs,ke.compact=ms,ke.concat=es,ke.cond=CQ,ke.conforms=_Q,ke.constant=Sw,ke.countBy=Rb,ke.create=cA,ke.curry=qb,ke.curryRight=gv,ke.debounce=yv,ke.defaults=bu,ke.defaultsDeep=Vd,ke.defer=mw,ke.delay=Vb,ke.difference=na,ke.differenceBy=gs,ke.differenceWith=Qd,ke.drop=RA,ke.dropRight=Ks,ke.dropRightWhile=LA,ke.dropWhile=Ps,ke.fill=a0,ke.filter=zb,ke.flatMap=Wb,ke.flatMapDeep=Gh,ke.flatMapDepth=Nb,ke.flatten=Ua,ke.flattenDeep=Hs,ke.flattenDepth=$d,ke.flip=vv,ke.flow=xQ,ke.flowRight=wQ,ke.fromPairs=zA,ke.functions=Xb,ke.functionsIn=yw,ke.groupBy=Gb,ke.initial=Qp,ke.intersection=L1,ke.intersectionBy=z1,ke.intersectionWith=Z5,ke.invert=Cw,ke.invertBy=_w,ke.invokeMap=cw,ke.iteratee=Ew,ke.keyBy=Qb,ke.keys=Sl,ke.keysIn=Ra,ke.map=Yd,ke.mapKeys=ng,ke.mapValues=Jb,ke.matches=MQ,ke.matchesProperty=SQ,ke.memoize=Vp,ke.merge=xw,ke.mer
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return e.layerType==="symbol"&&(a==="text-field"&&i&&!i.glyphs&&k.push(new Hn(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&D_(a1(s))&&tl(s.type)==="identity"&&k.push(new Hn(t,s,'"text-font" does not support identity functions'))),k.concat(r({key:e.key,value:s,valueSpec:b,style:i,styleSpec:o,expressionContext:"property",propertyType:n,propertyKey:a}))}function kR(e){return BR(e,"paint")}function IR(e){return BR(e,"layout")}function TR(e){let n=[];const t=e.value,r=e.key,i=e.style,o=e.styleSpec;!t.type&&!t.ref&&n.push(new Hn(r,t,'either "type" or "ref" is required'));let s=tl(t.type);const a=tl(t.ref);if(t.id){const p=tl(t.id);for(let g=0;g<e.arrayIndex;g++){const b=i.layers[g];tl(b.id)===p&&n.push(new Hn(r,t.id,`duplicate layer id "${t.id}", previously used at line ${b.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(g=>{g in t&&n.push(new Hn(r,t[g],`"${g}" is prohibited for ref layers`))});let p;i.layers.forEach(g=>{tl(g.id)===a&&(p=g)}),p?p.ref?n.push(new Hn(r,t.ref,"ref cannot reference another ref layer")):s=tl(p.type):n.push(new Hn(r,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)n.push(new Hn(r,t,'missing required property "source"'));else{const p=i.sources&&i.sources[t.source],g=p&&tl(p.type);p?g==="vector"&&s==="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?n.push(new Hn(r,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"?n.push(new Hn(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!p.lineMetrics)&&n.push(new Hn(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):n.push(new Hn(r,t.source,`source "${t.source}" not found`))}return n=n.concat(hd({key:r,value:t,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:t,objectKey:"type"})},filter:IB,layout(p){return hd({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return IR(by({layerType:s},g))}}})},paint(p){return hd({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(g){return kR(by({layerType:s},g))}}})}}})),n}function s1(e){const n=e.value,t=e.key,r=Ko(n);return r!=="string"?[new Hn(t,n,`string expected, ${r} found`)]:[]}function fX(e){var n;const t=(n=e.sourceName)!==null&&n!==void 0?n:"",r=e.value,i=e.styleSpec,o=i.source_raster_dem,s=e.style;let a=[];const p=Ko(r);if(r===void 0)return a;if(p!=="object")return a.push(new Hn("source_raster_dem",r,`object expected, ${p} found`)),a;const b=tl(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const P in r)!b&&B.includes(P)?a.push(new Hn(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):o[P]?a=a.concat(e.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:e.validateSpec,style:s,styleSpec:i})):a.push(new Hn(P,r[P],`unknown property "${P}"`));return a}const QI={promoteId:pX};function KR(e){const n=e.value,t=e.key,r=e.styleSpec,i=e.style,o=e.validateSpec;if(!n.type)return[new Hn(t,n,'"type" is required')];const s=tl(n.type);let a;switch(s){case"vector":case"raster":return a=hd({key:t,value:n,valueSpec:r[`source_${s.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:QI,validateSpec:o}),a;case"raster-dem":return a=fX({sourceName:t,value:n,style:e.style,styleSpec:r,validateSpec:o}),a;case"geojson":if(a=hd({key:t,value:n,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:QI}),n.cluster)for(const p in n.clusterProperties){const[g,b]=n.clusterProperties[p],B=typeof g=="string"?[g,["accumulated"],["get",p]]:g;a.push(...xy({key:`${t}.${p}.map`,value:b,validateSpec:o,expressionContext:"cluster-map"})),a.push(...xy({key:`${t}.${p}.reduce`,value:B,validateSpec:o,expressionContext:"cluster-reduce"}))}return a;case"video":return hd({key:t,value:n,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return hd({key:t,value:n,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new Hn(t,null,"Please use runtime APIs to add canvas sources,Line truncated
|
||||
}`;var ro=Ck(function(){return eo(Le,Wr+"return "+kn).apply(t,ot)});if(ro.source=kn,tn(ro))throw ro;return ro}function RQ(v){return ai(v).toLowerCase()}function zQ(v){return ai(v).toUpperCase()}function jQ(v,S,F){if(v=ai(v),v&&(F||S===t))return Qc(v);if(!v||!(S=_u(S)))return v;var X=yl(v),Ce=yl(S),Le=Tl(X,Ce),ot=BA(X,Ce)+1;return Cc(X,Le,ot).join("")}function WQ(v,S,F){if(v=ai(v),v&&(F||S===t))return v.slice(0,xh(v)+1);if(!v||!(S=_u(S)))return v;var X=yl(v),Ce=BA(X,yl(S))+1;return Cc(X,0,Ce).join("")}function NQ(v,S,F){if(v=ai(v),v&&(F||S===t))return v.replace(Ht,"");if(!v||!(S=_u(S)))return v;var X=yl(v),Ce=Tl(X,yl(S));return Cc(X,Ce).join("")}function GQ(v,S){var F=Ne,X=et;if(Cn(S)){var Ce="separator"in S?S.separator:Ce;F="length"in S?$r(S.length):F,X="omission"in S?_u(S.omission):X}v=ai(v);var Le=v.length;if(kA(v)){var ot=yl(v);Le=ot.length}if(F>=Le)return v;var yt=F-IA(X);if(yt<1)return X;var Bt=ot?Cc(ot,0,yt).join(""):v.slice(0,yt);if(Ce===t)return Bt+X;if(ot&&(yt+=Bt.length-yt),Xl(Ce)){if(v.slice(yt).search(Ce)){var gn,yn=Bt;for(Ce.global||(Ce=hs(Ce.source,ai(ei.exec(Ce))+"g")),Ce.lastIndex=0;gn=Ce.exec(yn);)var kn=gn.index;Bt=Bt.slice(0,kn===t?yt:kn)}}else if(v.indexOf(_u(Ce),yt)!=yt){var hr=Bt.lastIndexOf(Ce);hr>-1&&(Bt=Bt.slice(0,hr))}return Bt+X}function QQ(v){return v=ai(v),v&&de.test(v)?v.replace(Wn,iA):v}var $Q=zh(function(v,S,F){return v+(F?" ":"")+S.toUpperCase()}),Tw=Rh("toUpperCase");function _k(v,S,F){return v=ai(v),S=F?t:S,S===t?Tf(v)?Id(v):Kp(v):v.match(S)||[]}var Ck=ji(function(v,S){try{return ds(v,t,S)}catch(F){return tn(F)?F:new ti(F)}}),YQ=RA(function(v,S){return $l(S,function(F){F=Ea(F),In(v,F,tg(v[F],v))}),v});function qQ(v){var S=v==null?0:v.length,F=Qr();return v=S?Qo(v,function(X){if(typeof X[1]!="function")throw new fs(s);return[F(X[0]),X[1]]}):[],ji(function(X){for(var Ce=-1;++Ce<S;){var Le=v[Ce];if(ds(Le[0],this,X))return ds(Le[1],this,X)}})}function VQ(v){return bi(zi(v,B))}function Kw(v){return function(){return v}}function HQ(v,S){return v==null||v!==v?S:v}var ZQ=jp(),XQ=jp(!0);function $A(v){return v}function Pw(v){return Jc(typeof v=="function"?v:zi(v,B))}function JQ(v){return Th(zi(v,B))}function e$(v,S){return Kh(v,zi(S,B))}var t$=ji(function(v,S){return function(F){return LA(F,v,S)}}),n$=ji(function(v,S){return function(F){return LA(v,F,S)}});function Fw(v,S,F){var X=El(S),Ce=Ca(S,X);F==null&&!(Cn(S)&&(Ce.length||!X.length))&&(F=S,S=v,v=this,Ce=Ca(S,El(S)));var Le=!(Cn(F)&&"chain"in F)||!!F.chain,ot=Dn(v);return $l(Ce,function(yt){var Bt=S[yt];v[yt]=Bt,ot&&(v.prototype[yt]=function(){var gn=this.__chain__;if(Le||gn){var yn=v(this.__wrapped__),kn=yn.__actions__=Vs(this.__actions__);return kn.push({func:Bt,args:arguments,thisArg:v}),yn.__chain__=gn,yn}return Bt.apply(v,Ku([this.value()],arguments))})}),v}function r$(){return Yr._===this&&(Yr._=Ma),this}function Dw(){}function i$(v){return v=$r(v),ji(function(S){return Rd(S,v)})}var o$=Np(Qo),a$=Np(Wc),s$=Np(lc);function bk(v){return E(v)?sa(Ea(v)):Jm(v)}function l$(v){return function(S){return v==null?t:Bo(v,S)}}var u$=$d(),A$=$d(!0);function Lw(){return[]}function Uw(){return!1}function c$(){return{}}function d$(){return""}function h$(){return!0}function f$(v,S){if(v=$r(v),v<1||v>nn)return[];var F=Je,X=ea(v,Je);S=Qr(S),v-=Je;for(var Ce=go(X,S);++F<v;)S(F);return Ce}function p$(v){return ee(v)?Qo(v,Ea):No(v)?[v]:Vs(ca(ai(v)))}function m$(v){var S=++wh;return ai(v)+S}var g$=Qd(function(v,S){return v+S},0),y$=s0("ceil"),v$=Qd(function(v,S){return v/S},1),_$=s0("floor");function C$(v){return v&&v.length?Wo(v,$A,Mo):t}function b$(v,S){return v&&v.length?Wo(v,Qr(S,2),Mo):t}function x$(v){return Pu(v,$A)}function w$(v,S){return Pu(v,Qr(S,2))}function M$(v){return v&&v.length?Wo(v,$A,Wu):t}function S$(v,S){return v&&v.length?Wo(v,Qr(S,2),Wu):t}var E$=Qd(function(v,S){return v*S},1),O$=s0("round"),B$=Qd(function(v,S){return v-S},0);function k$(v){return v&&v.length?wo(v,$A):0}function I$(v,S){return v&&v.length?wo(v,Qr(S,2)):0}return ke.after=Hh,ke.ary=eg,ke.assign=NA,ke.assignIn=GA,ke.assignInWith=$u,ke.assignWith=Xd,ke.at=QA,ke.before=Cv,ke.bind=tg,ke.bindAll=YQ,ke.bindKey=ng,ke.castArray=c,ke.chain=gv,ke.chunk=Hs,ke.compact=gs,ke.concat=ts,ke.cond=qQ,ke.conforms=VQ,ke.constant=Kw,ke.countBy=Gb,ke.create=hA,ke.curry=ex,ke.curryRight=bv,ke.debounce=xv,ke.defaults=xu,ke.defaultsDeep=Jd,ke.defer=xw,ke.delay=tx,ke.difference=na,ke.differenceBy=ys,ke.differenceWith=Vd,ke.drop=zA,ke.dropRight=Ps,ke.dropRightWhile=jA,ke.dropWhile=Fs,ke.fill=A0,ke.filter=$b,ke.flatMap=qb,ke.flatMapDeep=Vh,ke.flatMapDepth=Vb,ke.flatten=Ua,ke.flattenDeep=Zs,ke.flattenDepth=Hd,ke.flip=wv,ke.flow=ZQ,ke.flowRight=XQ,ke.fromPairs=WA,ke.functions=ix,ke.functionsIn=Mw,ke.groupBy=Hb,ke.initial=Vp,ke.intersection=N1,ke.intersectionBy=G1,ke.intersectionWith=iw,ke.invert=Ew,ke.invertBy=Ow,ke.invokeMap=yw,ke.iteratee=Pw,ke.keyBy=Zb,ke.keys=El,ke.keysIn=Ra,ke.map=Zd,ke.mapKeys=ag,ke.mapValues=ox,ke.matches=JQ,ke.matchesProperty=e$,ke.memoize=Jp,ke.merge=kw,ke.mer
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return e.layerType==="symbol"&&(a==="text-field"&&i&&!i.glyphs&&k.push(new Hn(t,s,'use of "text-field" requires a style "glyphs" property')),a==="text-font"&&WC(A1(s))&&nl(s.type)==="identity"&&k.push(new Hn(t,s,'"text-font" does not support identity functions'))),k.concat(r({key:e.key,value:s,valueSpec:C,style:i,styleSpec:o,expressionContext:"property",propertyType:n,propertyKey:a}))}function QU(e){return GU(e,"paint")}function $U(e){return GU(e,"layout")}function YU(e){let n=[];const t=e.value,r=e.key,i=e.style,o=e.styleSpec;!t.type&&!t.ref&&n.push(new Hn(r,t,'either "type" or "ref" is required'));let s=nl(t.type);const a=nl(t.ref);if(t.id){const h=nl(t.id);for(let g=0;g<e.arrayIndex;g++){const C=i.layers[g];nl(C.id)===h&&n.push(new Hn(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(g=>{g in t&&n.push(new Hn(r,t[g],`"${g}" is prohibited for ref layers`))});let h;i.layers.forEach(g=>{nl(g.id)===a&&(h=g)}),h?h.ref?n.push(new Hn(r,t.ref,"ref cannot reference another ref layer")):s=nl(h.type):n.push(new Hn(r,t.ref,`ref layer "${a}" not found`))}else if(s!=="background")if(!t.source)n.push(new Hn(r,t,'missing required property "source"'));else{const h=i.sources&&i.sources[t.source],g=h&&nl(h.type);h?g==="vector"&&s==="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster source`)):g!=="raster-dem"&&s==="hillshade"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a raster-dem source`)):g==="raster"&&s!=="raster"?n.push(new Hn(r,t.source,`layer "${t.id}" requires a vector source`)):g==="vector"&&!t["source-layer"]?n.push(new Hn(r,t,`layer "${t.id}" must specify a "source-layer"`)):g==="raster-dem"&&s!=="hillshade"?n.push(new Hn(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):s==="line"&&t.paint&&t.paint["line-gradient"]&&(g!=="geojson"||!h.lineMetrics)&&n.push(new Hn(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):n.push(new Hn(r,t.source,`source "${t.source}" not found`))}return n=n.concat(gd({key:r,value:t,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*"(){return[]},type(){return e.validateSpec({key:`${r}.type`,value:t.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:t,objectKey:"type"})},filter:zB,layout(h){return gd({layer:t,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return $U(Ey({layerType:s},g))}}})},paint(h){return gd({layer:t,key:h.key,value:h.value,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*"(g){return QU(Ey({layerType:s},g))}}})}}})),n}function c1(e){const n=e.value,t=e.key,r=Ko(n);return r!=="string"?[new Hn(t,n,`string expected, ${r} found`)]:[]}function WX(e){var n;const t=(n=e.sourceName)!==null&&n!==void 0?n:"",r=e.value,i=e.styleSpec,o=i.source_raster_dem,s=e.style;let a=[];const h=Ko(r);if(r===void 0)return a;if(h!=="object")return a.push(new Hn("source_raster_dem",r,`object expected, ${h} found`)),a;const C=nl(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=e.value.encoding?`"${e.value.encoding}"`:"Default";for(const P in r)!C&&B.includes(P)?a.push(new Hn(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):o[P]?a=a.concat(e.validateSpec({key:P,value:r[P],valueSpec:o[P],validateSpec:e.validateSpec,style:s,styleSpec:i})):a.push(new Hn(P,r[P],`unknown property "${P}"`));return a}const t9={promoteId:NX};function qU(e){const n=e.value,t=e.key,r=e.styleSpec,i=e.style,o=e.validateSpec;if(!n.type)return[new Hn(t,n,'"type" is required')];const s=nl(n.type);let a;switch(s){case"vector":case"raster":return a=gd({key:t,value:n,valueSpec:r[`source_${s.replace("-","_")}`],style:e.style,styleSpec:r,objectElementValidators:t9,validateSpec:o}),a;case"raster-dem":return a=WX({sourceName:t,value:n,style:e.style,styleSpec:r,validateSpec:o}),a;case"geojson":if(a=gd({key:t,value:n,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:o,objectElementValidators:t9}),n.cluster)for(const h in n.clusterProperties){const[g,C]=n.clusterProperties[h],B=typeof g=="string"?[g,["accumulated"],["get",h]]:g;a.push(...Oy({key:`${t}.${h}.map`,value:C,validateSpec:o,expressionContext:"cluster-map"})),a.push(...Oy({key:`${t}.${h}.reduce`,value:B,validateSpec:o,expressionContext:"cluster-reduce"}))}return a;case"video":return gd({key:t,value:n,valueSpec:r.source_video,style:i,validateSpec:o,styleSpec:r});case"image":return gd({key:t,value:n,valueSpec:r.source_image,style:i,validateSpec:o,styleSpec:r});case"canvas":return[new Hn(t,null,"Please use runtime APIs to add canvas sources,Line truncated
|
||||
${B}`),Z].join(`
|
||||
${a}`)}return g}(e,"",0)}function YI(e,n){const t={};for(const r in n)e[r]!==void 0&&(t[r]=e[r]);for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function zR(e,n=2){return e=YI(e,pa.$root),e.layers&&(e.layers=e.layers.map(t=>YI(t,pa.layer))),_X(e,{indent:n})}function rM(e,n){for(const t in e)t.indexOf("layout")===0&&n(e[t],t)}function qI(e,n){for(const t in e)t.indexOf("paint")===0&&n(e[t],t)}function M6(e,n){return typeof n=="string"&&n[0]==="@"?M6(e,e.constants[n]):n}function bX(e){return Array.isArray(e.stops)}function Dv(e,n,t){e[t]=e[n],delete e[n]}function xX(e){e.version=8,cX(e,i=>{i.type==="video"&&i.url!==void 0&&Dv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),xC(e,i=>{rM(i,o=>{o["symbol-min-distance"]!==void 0&&Dv(o,"symbol-min-distance","symbol-spacing")}),qI(i,o=>{o["background-image"]!==void 0&&Dv(o,"background-image","background-pattern"),o["line-image"]!==void 0&&Dv(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&Dv(o,"fill-image","fill-pattern")})}),OB(e,{paint:!0,layout:!0},i=>{const o=M6(e,i.value);bX(o)&&o.stops.forEach(s=>{s[1]=M6(e,s[1])}),i.set(o)}),delete e.constants,xC(e,i=>{rM(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),qI(i,o=>{o["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function n(i){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(s=>{s[1]=o(s[1])}),i;throw new Error("unexpected font value")}xC(e,i=>{rM(i,o=>{o["text-font"]&&(o["text-font"]=n(o["text-font"]))})});let t=0;for(let i=e.layers.length-1;i>=0;i--)if(e.layers[i].type!=="symbol"){t=i+1;break}const r=e.layers.splice(t);return r.reverse(),e.layers=e.layers.concat(r),e}function wX(e){const n=[];return xC(e,t=>{t.filter&&(t.filter=bC(t.filter))}),OB(e,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{R_(r)||(typeof r=="object"&&!Array.isArray(r)?(o(wR(r,i)),n.push(t.join("."))):i.tokens&&typeof r=="string"&&o(MR(r)))}),e}function MX(e){return JSON.parse(SX(JSON.stringify(e)))}function SX(e){return e.replace(/"hsla?\((.+?)\)"/gi,(n,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,s,a]=r.slice(1);return[o,s]=[o,s].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[i,o,s,a].filter(Boolean).join(",")})"`}return n})}function EX(e){let n=!1;if(e.version===7&&(e=xX(e),n=!0),e.version===8&&(n=!!wX(e),n=!0),OB(e,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(MX(t))}),!n)throw new Error(`Cannot migrate from ${e.version}`);return e}const OX={StyleExpression:_R,StylePropertyFunction:bR,ZoomConstantExpression:b6,ZoomDependentExpression:x6,createExpression:xB,createPropertyExpression:wB,isExpression:R_,isExpressionFilter:X4,isZoomExpression:eX,normalizePropertyExpression:tX},BX={convertFunction:wR,createFunction:bB,isFunction:D_};var jR={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(_f,function(){var t={},r={};function i(s,a,p){if(r[s]=p,s==="index"){var g="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",b={};return r.shared(b),r.index(t,b),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([g],{type:"text/javascript"}))),t}}i("shared",["exports"],function(s){function a(c,l,d,y){return new(d||(d=Promise))(function(w,T){function K(V){try{z(y.next(V))}catch(ee){T(ee)}}function D(V){try{z(y.throw(V))}catch(ee){T(ee)}}function z(V){var ee;V.done?w(V.value):(ee=V.value,ee instanceof d?ee:new d(function(Ae){Ae(ee)})).then(K,D)}z((y=y.apply(c,l||[])).next())})}function p(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var g=b;function b(c,l){this.x=c,this.y=l}b.prototype={clone:function(){return new b(this.x,this.y)},add:function(c){return this.clone()._add(c)},sub:function(c){return this.clone()._sub(c)},multByPoint:function(c){return this.clone()._multByPoint(c)},divByPoint:function(c){return this.clone()._divByPoint(c)},mult:function(c){return this.clone()._mult(c)},div:function(c){return this.clone()._div(c)},rotate:function(c){return this.clone()._rotate(c)},rotateAround:function(c,l){return this.clone()._rotateAround(c,l)},matMult:function(c){return this.clone()._matMult(c)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(c){return this.x===c.x&&this.y===c.y},dist:function(c){return Math.sqrt(this.distSqr(c))},distSqr:function(c){var l=c.x-this.x,d=c.y-this.y;return l*l+d*d},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(c){return Math.atan2(this.y-c.y,this.x-c.x)},
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(Ae[1])} }\`.`)];const me=[];return c.layerType==="symbol"&&(D==="text-field"&&w&&!w.glyphs&&me.push(new Y(d,K,'use of "text-field" requires a style "glyphs" property')),D==="text-font"&&Do(tA(K))&&Zo(K.type)==="identity"&&me.push(new Y(d,K,'"text-font" does not support identity functions'))),me.concat(y({key:c.key,value:K,valueSpec:ee,style:w,styleSpec:T,expressionContext:"property",propertyType:l,propertyKey:D}))}function hu(c){return Od(c,"paint")}function bt(c){return Od(c,"layout")}function on(c){let l=[];const d=c.value,y=c.key,w=c.style,T=c.styleSpec;d.type||d.ref||l.push(new Y(y,d,'either "type" or "ref" is required'));let K=Zo(d.type);const D=Zo(d.ref);if(d.id){const z=Zo(d.id);for(let V=0;V<c.arrayIndex;V++){const ee=w.layers[V];Zo(ee.id)===z&&l.push(new Y(y,d.id,`duplicate layer id "${d.id}", previously used at line ${ee.id.__line__}`))}}if("ref"in d){let z;["type","source","source-layer","filter","layout"].forEach(V=>{V in d&&l.push(new Y(y,d[V],`"${V}" is prohibited for ref layers`))}),w.layers.forEach(V=>{Zo(V.id)===D&&(z=V)}),z?z.ref?l.push(new Y(y,d.ref,"ref cannot reference another ref layer")):K=Zo(z.type):l.push(new Y(y,d.ref,`ref layer "${D}" not found`))}else if(K!=="background")if(d.source){const z=w.sources&&w.sources[d.source],V=z&&Zo(z.type);z?V==="vector"&&K==="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster source`)):V!=="raster-dem"&&K==="hillshade"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster-dem source`)):V==="raster"&&K!=="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a vector source`)):V!=="vector"||d["source-layer"]?V==="raster-dem"&&K!=="hillshade"?l.push(new Y(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!d.paint||!d.paint["line-gradient"]||V==="geojson"&&z.lineMetrics||l.push(new Y(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new Y(y,d,`layer "${d.id}" must specify a "source-layer"`)):l.push(new Y(y,d.source,`source "${d.source}" not found`))}else l.push(new Y(y,d,'missing required property "source"'));return l=l.concat(il({key:y,value:d,valueSpec:T.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${y}.type`,value:d.type,valueSpec:T.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:d,objectKey:"type"}),filter:lc,layout:z=>il({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":V=>bt(Be({layerType:K},V))}}),paint:z=>il({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":V=>hu(Be({layerType:K},V))}})}})),l}function Lt(c){const l=c.value,d=c.key,y=hi(l);return y!=="string"?[new Y(d,l,`string expected, ${y} found`)]:[]}const dr={promoteId:function({key:c,value:l}){if(hi(l)==="string")return Lt({key:c,value:l});{const d=[];for(const y in l)d.push(...Lt({key:`${c}.${y}`,value:l[y]}));return d}}};function ti(c){const l=c.value,d=c.key,y=c.styleSpec,w=c.style,T=c.validateSpec;if(!l.type)return[new Y(d,l,'"type" is required')];const K=Zo(l.type);let D;switch(K){case"vector":case"raster":return D=il({key:d,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:dr,validateSpec:T}),D;case"raster-dem":return D=function(z){var V;const ee=(V=z.sourceName)!==null&&V!==void 0?V:"",Ae=z.value,me=z.styleSpec,xe=me.source_raster_dem,Oe=z.style;let Le=[];const Qe=hi(Ae);if(Ae===void 0)return Le;if(Qe!=="object")return Le.push(new Y("source_raster_dem",Ae,`object expected, ${Qe} found`)),Le;const it=Zo(Ae.encoding)==="custom",Mt=["redFactor","greenFactor","blueFactor","baseShift"],lt=z.value.encoding?`"${z.value.encoding}"`:"Default";for(const vt in Ae)!it&&Mt.includes(vt)?Le.push(new Y(vt,Ae[vt],`In "${ee}": "${vt}" is only valid when "encoding" is set to "custom". ${lt} encoding found`)):xe[vt]?Le=Le.concat(z.validateSpec({key:vt,value:Ae[vt],valueSpec:xe[vt],validateSpec:z.validateSpec,style:Oe,styleSpec:me})):Le.push(new Y(vt,Ae[vt],`unknown property "${vt}"`));return Le}({sourceName:d,value:l,style:c.style,styleSpec:y,validateSpec:T}),D;case"geojson":if(D=il({key:d,value:l,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:T,objectElementValidators:dr}),l.cluster)for(const z in l.clusterProperties){const[V,ee]=l.clusterProperties[z],Ae=typeof V=="string"?[V,["accumulated"],["get",z]]:V;D.push(...nA({key:`${d}.${z}.map`,value:ee,validateSpec:T,expressionContext:"cluster-map"})),D.push(...nA({key:`${d}.${z}.reduce`,value:Ae,validateSpec:T,expressionContext:"cluster-reduce"}))}return D;case"video":return il({key:d,value:l,valueSpec:y.source_video,style:w,validateSpec:T,styleSpec:y});case"image":return il({key:d,value:lLine truncated
|
||||
${a}`)}return g}(e,"",0)}function r9(e,n){const t={};for(const r in n)e[r]!==void 0&&(t[r]=e[r]);for(const r in e)t[r]===void 0&&(t[r]=e[r]);return t}function tR(e,n=2){return e=r9(e,ma.$root),e.layers&&(e.layers=e.layers.map(t=>r9(t,ma.layer))),VX(e,{indent:n})}function AM(e,n){for(const t in e)t.indexOf("layout")===0&&n(e[t],t)}function i9(e,n){for(const t in e)t.indexOf("paint")===0&&n(e[t],t)}function K6(e,n){return typeof n=="string"&&n[0]==="@"?K6(e,e.constants[n]):n}function HX(e){return Array.isArray(e.stops)}function jv(e,n,t){e[t]=e[n],delete e[n]}function ZX(e){e.version=8,RX(e,i=>{i.type==="video"&&i.url!==void 0&&jv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(o=>o.reverse())}),B_(e,i=>{AM(i,o=>{o["symbol-min-distance"]!==void 0&&jv(o,"symbol-min-distance","symbol-spacing")}),i9(i,o=>{o["background-image"]!==void 0&&jv(o,"background-image","background-pattern"),o["line-image"]!==void 0&&jv(o,"line-image","line-pattern"),o["fill-image"]!==void 0&&jv(o,"fill-image","fill-pattern")})}),LB(e,{paint:!0,layout:!0},i=>{const o=K6(e,i.value);HX(o)&&o.stops.forEach(s=>{s[1]=K6(e,s[1])}),i.set(o)}),delete e.constants,B_(e,i=>{AM(i,o=>{delete o["text-max-size"],delete o["icon-max-size"]}),i9(i,o=>{o["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=o["text-size"],delete o["text-size"]),o["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=o["icon-size"],delete o["icon-size"])})});function n(i){function o(s){return s.split(",").map(a=>a.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return o(i);if(typeof i=="object")return i.stops.forEach(s=>{s[1]=o(s[1])}),i;throw new Error("unexpected font value")}B_(e,i=>{AM(i,o=>{o["text-font"]&&(o["text-font"]=n(o["text-font"]))})});let t=0;for(let i=e.layers.length-1;i>=0;i--)if(e.layers[i].type!=="symbol"){t=i+1;break}const r=e.layers.splice(t);return r.reverse(),e.layers=e.layers.concat(r),e}function XX(e){const n=[];return B_(e,t=>{t.filter&&(t.filter=O_(t.filter))}),LB(e,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:o})=>{GC(r)||(typeof r=="object"&&!Array.isArray(r)?(o(RU(r,i)),n.push(t.join("."))):i.tokens&&typeof r=="string"&&o(zU(r)))}),e}function JX(e){return JSON.parse(eJ(JSON.stringify(e)))}function eJ(e){return e.replace(/"hsla?\((.+?)\)"/gi,(n,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,o,s,a]=r.slice(1);return[o,s]=[o,s].map(h=>h.endsWith("%")?h:`${parseFloat(h)*100}%`),`"hsl${typeof a=="string"?"a":""}(${[i,o,s,a].filter(Boolean).join(",")})"`}return n})}function tJ(e){let n=!1;if(e.version===7&&(e=ZX(e),n=!0),e.version===8&&(n=!!XX(e),n=!0),LB(e,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(JX(t))}),!n)throw new Error(`Cannot migrate from ${e.version}`);return e}const nJ={StyleExpression:DU,StylePropertyFunction:LU,ZoomConstantExpression:k6,ZoomDependentExpression:I6,createExpression:TB,createPropertyExpression:KB,isExpression:GC,isExpressionFilter:i5,isZoomExpression:OX,normalizePropertyExpression:BX},rJ={convertFunction:RU,createFunction:IB,isFunction:WC};var nR={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(dh,function(){var t={},r={};function i(s,a,h){if(r[s]=h,s==="index"){var g="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([g],{type:"text/javascript"}))),t}}i("shared",["exports"],function(s){function a(c,l,d,y){return new(d||(d=Promise))(function(w,T){function K(V){try{z(y.next(V))}catch(ee){T(ee)}}function D(V){try{z(y.throw(V))}catch(ee){T(ee)}}function z(V){var ee;V.done?w(V.value):(ee=V.value,ee instanceof d?ee:new d(function(ce){ce(ee)})).then(K,D)}z((y=y.apply(c,l||[])).next())})}function h(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}typeof SuppressedError=="function"&&SuppressedError;var g=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,d=c.y-this.y;return l*l+d*d},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(c){return Math.atan2(this.y-c.y,this.x-c.x)},
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ce[1])} }\`.`)];const me=[];return c.layerType==="symbol"&&(D==="text-field"&&w&&!w.glyphs&&me.push(new Y(d,K,'use of "text-field" requires a style "glyphs" property')),D==="text-font"&&Do(rA(K))&&Zo(K.type)==="identity"&&me.push(new Y(d,K,'"text-font" does not support identity functions'))),me.concat(y({key:c.key,value:K,valueSpec:ee,style:w,styleSpec:T,expressionContext:"property",propertyType:l,propertyKey:D}))}function fu(c){return Td(c,"paint")}function bt(c){return Td(c,"layout")}function an(c){let l=[];const d=c.value,y=c.key,w=c.style,T=c.styleSpec;d.type||d.ref||l.push(new Y(y,d,'either "type" or "ref" is required'));let K=Zo(d.type);const D=Zo(d.ref);if(d.id){const z=Zo(d.id);for(let V=0;V<c.arrayIndex;V++){const ee=w.layers[V];Zo(ee.id)===z&&l.push(new Y(y,d.id,`duplicate layer id "${d.id}", previously used at line ${ee.id.__line__}`))}}if("ref"in d){let z;["type","source","source-layer","filter","layout"].forEach(V=>{V in d&&l.push(new Y(y,d[V],`"${V}" is prohibited for ref layers`))}),w.layers.forEach(V=>{Zo(V.id)===D&&(z=V)}),z?z.ref?l.push(new Y(y,d.ref,"ref cannot reference another ref layer")):K=Zo(z.type):l.push(new Y(y,d.ref,`ref layer "${D}" not found`))}else if(K!=="background")if(d.source){const z=w.sources&&w.sources[d.source],V=z&&Zo(z.type);z?V==="vector"&&K==="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster source`)):V!=="raster-dem"&&K==="hillshade"?l.push(new Y(y,d.source,`layer "${d.id}" requires a raster-dem source`)):V==="raster"&&K!=="raster"?l.push(new Y(y,d.source,`layer "${d.id}" requires a vector source`)):V!=="vector"||d["source-layer"]?V==="raster-dem"&&K!=="hillshade"?l.push(new Y(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):K!=="line"||!d.paint||!d.paint["line-gradient"]||V==="geojson"&&z.lineMetrics||l.push(new Y(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):l.push(new Y(y,d,`layer "${d.id}" must specify a "source-layer"`)):l.push(new Y(y,d.source,`source "${d.source}" not found`))}else l.push(new Y(y,d,'missing required property "source"'));return l=l.concat(ol({key:y,value:d,valueSpec:T.layer,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,objectElementValidators:{"*":()=>[],type:()=>c.validateSpec({key:`${y}.type`,value:d.type,valueSpec:T.layer.type,style:c.style,styleSpec:c.styleSpec,validateSpec:c.validateSpec,object:d,objectKey:"type"}),filter:cc,layout:z=>ol({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":V=>bt(Be({layerType:K},V))}}),paint:z=>ol({layer:d,key:z.key,value:z.value,style:z.style,styleSpec:z.styleSpec,validateSpec:z.validateSpec,objectElementValidators:{"*":V=>fu(Be({layerType:K},V))}})}})),l}function Rt(c){const l=c.value,d=c.key,y=hi(l);return y!=="string"?[new Y(d,l,`string expected, ${y} found`)]:[]}const dr={promoteId:function({key:c,value:l}){if(hi(l)==="string")return Rt({key:c,value:l});{const d=[];for(const y in l)d.push(...Rt({key:`${c}.${y}`,value:l[y]}));return d}}};function ti(c){const l=c.value,d=c.key,y=c.styleSpec,w=c.style,T=c.validateSpec;if(!l.type)return[new Y(d,l,'"type" is required')];const K=Zo(l.type);let D;switch(K){case"vector":case"raster":return D=ol({key:d,value:l,valueSpec:y[`source_${K.replace("-","_")}`],style:c.style,styleSpec:y,objectElementValidators:dr,validateSpec:T}),D;case"raster-dem":return D=function(z){var V;const ee=(V=z.sourceName)!==null&&V!==void 0?V:"",ce=z.value,me=z.styleSpec,xe=me.source_raster_dem,Oe=z.style;let Re=[];const Qe=hi(ce);if(ce===void 0)return Re;if(Qe!=="object")return Re.push(new Y("source_raster_dem",ce,`object expected, ${Qe} found`)),Re;const it=Zo(ce.encoding)==="custom",Mt=["redFactor","greenFactor","blueFactor","baseShift"],lt=z.value.encoding?`"${z.value.encoding}"`:"Default";for(const vt in ce)!it&&Mt.includes(vt)?Re.push(new Y(vt,ce[vt],`In "${ee}": "${vt}" is only valid when "encoding" is set to "custom". ${lt} encoding found`)):xe[vt]?Re=Re.concat(z.validateSpec({key:vt,value:ce[vt],valueSpec:xe[vt],validateSpec:z.validateSpec,style:Oe,styleSpec:me})):Re.push(new Y(vt,ce[vt],`unknown property "${vt}"`));return Re}({sourceName:d,value:l,style:c.style,styleSpec:y,validateSpec:T}),D;case"geojson":if(D=ol({key:d,value:l,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:T,objectElementValidators:dr}),l.cluster)for(const z in l.clusterProperties){const[V,ee]=l.clusterProperties[z],ce=typeof V=="string"?[V,["accumulated"],["get",z]]:V;D.push(...iA({key:`${d}.${z}.map`,value:ee,validateSpec:T,expressionContext:"cluster-map"})),D.push(...iA({key:`${d}.${z}.reduce`,value:ce,validateSpec:T,expressionContext:"cluster-reduce"}))}return D;case"video":return ol({key:d,value:l,valueSpec:y.source_video,style:w,validateSpec:T,styleSpec:y});case"image":return ol({key:d,value:lLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -592,7 +592,7 @@ void main() {
|
||||
#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:mi("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",$a),terrainDepth:mi("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);}",$a),terrainCoords:mi("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);}",$a)};function mi(O,u){const f=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=u.match(/attribute ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),L=I?I.concat(M):M,j={};return{fragmentSource:O=O.replace(f,(G,te,ue,fe,Ee)=>(j[Ee]=!0,te==="define"?`
|
||||
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:mi("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",Ya),terrainDepth:mi("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);}",Ya),terrainCoords:mi("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);}",Ya)};function mi(O,u){const p=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=u.match(/attribute ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=u.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),R=I?I.concat(M):M,j={};return{fragmentSource:O=O.replace(p,(G,te,ue,fe,Ee)=>(j[Ee]=!0,te==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ee}
|
||||
varying ${ue} ${fe} ${Ee};
|
||||
#else
|
||||
@@ -602,7 +602,7 @@ uniform ${ue} ${fe} u_${Ee};
|
||||
#ifdef HAS_UNIFORM_u_${Ee}
|
||||
${ue} ${fe} ${Ee} = u_${Ee};
|
||||
#endif
|
||||
`)),vertexSource:u=u.replace(f,(G,te,ue,fe,Ee)=>{const ze=fe==="float"?"vec2":"vec4",Fe=Ee.match(/color/)?"color":ze;return j[Ee]?te==="define"?`
|
||||
`)),vertexSource:u=u.replace(p,(G,te,ue,fe,Ee)=>{const ze=fe==="float"?"vec2":"vec4",Fe=Ee.match(/color/)?"color":ze;return j[Ee]?te==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ee}
|
||||
uniform lowp float u_${Ee}_t;
|
||||
attribute ${ue} ${ze} a_${Ee};
|
||||
@@ -641,112 +641,112 @@ uniform ${ue} ${fe} u_${Ee};
|
||||
#else
|
||||
${ue} ${fe} ${Ee} = u_${Ee};
|
||||
#endif
|
||||
`}),staticAttributes:C,staticUniforms:L}}class rl{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,f,C,M,I,L,j,G,te){this.context=u;let ue=this.boundPaintVertexBuffers.length!==M.length;for(let fe=0;!ue&&fe<M.length;fe++)this.boundPaintVertexBuffers[fe]!==M[fe]&&(ue=!0);!this.vao||this.boundProgram!==f||this.boundLayoutVertexBuffer!==C||ue||this.boundIndexBuffer!==I||this.boundVertexOffset!==L||this.boundDynamicVertexBuffer!==j||this.boundDynamicVertexBuffer2!==G||this.boundDynamicVertexBuffer3!==te?this.freshBind(f,C,M,I,L,j,G,te):(u.bindVertexArray.set(this.vao),j&&j.bind(),I&&I.dynamicDraw&&I.bind(),G&&G.bind(),te&&te.bind())}freshBind(u,f,C,M,I,L,j,G){const te=u.numAttributes,ue=this.context,fe=ue.gl;this.vao&&this.destroy(),this.vao=ue.createVertexArray(),ue.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=f,this.boundPaintVertexBuffers=C,this.boundIndexBuffer=M,this.boundVertexOffset=I,this.boundDynamicVertexBuffer=L,this.boundDynamicVertexBuffer2=j,this.boundDynamicVertexBuffer3=G,f.enableAttributes(fe,u);for(const Ee of C)Ee.enableAttributes(fe,u);L&&L.enableAttributes(fe,u),j&&j.enableAttributes(fe,u),G&&G.enableAttributes(fe,u),f.bind(),f.setVertexAttribPointers(fe,u,I);for(const Ee of C)Ee.bind(),Ee.setVertexAttribPointers(fe,u,I);L&&(L.bind(),L.setVertexAttribPointers(fe,u,I)),M&&M.bind(),j&&(j.bind(),j.setVertexAttribPointers(fe,u,I)),G&&(G.bind(),G.setVertexAttribPointers(fe,u,I)),ue.currentNumAttributes=te}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function Ya(O){const u=[];for(let f=0;f<O.length;f++){if(O[f]===null)continue;const C=O[f].split(" ");u.push(C.pop())}return u}class ba{constructor(u,f,C,M,I,L){const j=u.gl;this.program=j.createProgram();const G=Ya(f.staticAttributes),te=C?C.getBinderAttributes():[],ue=G.concat(te),fe=Br.prelude.staticUniforms?Ya(Br.prelude.staticUniforms):[],Ee=f.staticUniforms?Ya(f.staticUniforms):[],ze=C?C.getBinderUniforms():[],Fe=fe.concat(Ee).concat(ze),Ge=[];for(const It of Fe)Ge.indexOf(It)<0&&Ge.push(It);const je=C?C.defines():[];I&&je.push("#define OVERDRAW_INSPECTOR;"),L&&je.push("#define TERRAIN3D;");const ct=je.concat(Br.prelude.fragmentSource,f.fragmentSource).join(`
|
||||
`),Ot=je.concat(Br.prelude.vertexSource,f.vertexSource).join(`
|
||||
`),Ye=j.createShader(j.FRAGMENT_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(Ye,ct),j.compileShader(Ye),!j.getShaderParameter(Ye,j.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${j.getShaderInfoLog(Ye)}`);j.attachShader(this.program,Ye);const Ct=j.createShader(j.VERTEX_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(Ct,Ot),j.compileShader(Ct),!j.getShaderParameter(Ct,j.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${j.getShaderInfoLog(Ct)}`);j.attachShader(this.program,Ct),this.attributes={};const Gt={};this.numAttributes=ue.length;for(let It=0;It<this.numAttributes;It++)ue[It]&&(j.bindAttribLocation(this.program,It,ue[It]),this.attributes[ue[It]]=It);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(Ct),j.deleteShader(Ye);for(let It=0;It<Ge.length;It++){const Jt=Ge[It];if(Jt&&!Gt[Jt]){const An=j.getUniformLocation(this.program,Jt);An&&(Gt[Jt]=An)}}this.fixedUniforms=M(u,Gt),this.terrainUniforms=((It,Jt)=>({u_depth:new a.aG(It,Jt.u_depth),u_terrain:new a.aG(It,Jt.u_terrain),u_terrain_dim:new a.aH(It,Jt.u_terrain_dim),u_terrain_matrix:new a.aI(It,Jt.u_terrain_matrix),u_terrain_unpack:new a.aJ(It,Jt.u_terrain_unpack),u_terrain_exaggeration:new a.aH(It,Jt.u_terrain_exaggeration)}))(u,Gt),this.binderUniforms=C?C.getUniforms(u,Gt):[]}draw(u,f,C,M,I,L,j,G,te,ue,fe,Ee,ze,Fe,Ge,je,ct,Ot){const Ye=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(C),u.setStencilMode(M),u.setColorMode(I),u.setCullFace(L),G){u.activeTexture.set(Ye.TEXTURE2),Ye.bindTexture(Ye.TEXTURE_2D,G.depthTexture),u.activeTexture.set(Ye.TEXTURE3),Ye.bindTexture(Ye.TEXTURE_2D,G.texture);for(const Gt in this.terrainUniforms)this.terrainUniforms[Gt].set(G[Gt])}for(const Gt in this.fixedUniforms)this.fixedUniforms[Gt].set(j[Gt]);Ge&&Ge.setUniforms(u,this.binderUniforms,ze,{zoom:Fe});let Ct=0;switch(f){case Ye.LINES:Ct=2;break;case Ye.TRIANGLES:Ct=3;break;case Ye.LINE_STRIP:Ct=1}for(const Gt of Ee.get()){const It=Gt.vaos||(Gt.vaos={});(It[te]||(It[te]=new rl)).bind(u,this,ue,Ge?Ge.getPaintVertexBuffers():[],fe,Gt.vertexOffset,je,ct,Ot),Ye.drawElements(f,Gt.primitiveLength*Ct,Ye.UNSIGNED_SHORT,Gt.primitiveOffset*Ct*2)}}}function Ou(O,u,f){const C=1/or(f,1,u.transform.tileZoom),M=Math.pow(2,f.tileID.overscaledZ),I=f.tileSize*Math.pow(2,u.transform.tileZoom)/M,L=I*(f.tileID.canonical.x+f.tileID.wrap*M),j=I*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[L>>16,j>>16],u_pixel_coord_lower:[65535&L,65535&j]}}const Ws=(O,u,f,C)=>{const M=u.style.light,I=M.properties.get("position"),L=[I.x,I.y,I.z],j=function(){var te=new a.A(9);return a.A!=Float32Array&&(te[1]=0,te[2]=0,te[3]=0,te[5]=0,te[6]=0,te[7]=0),te[0]=1,te[4]=1,te[8]=1,te}();M.properties.get("anchor")==="viewport"&&function(te,ue){var fe=Math.sin(ue),Ee=Math.cos(ue);te[0]=Ee,te[1]=fe,te[2]=0,te[3]=-fe,te[4]=Ee,te[5]=0,te[6]=0,te[7]=0,te[8]=1}(j,-u.transform.angle),function(te,ue,fe){var Ee=ue[0],ze=ue[1],Fe=ue[2];te[0]=Ee*fe[0]+ze*fe[3]+Fe*fe[6],te[1]=Ee*fe[1]+ze*fe[4]+Fe*fe[7],te[2]=Ee*fe[2]+ze*fe[5]+Fe*fe[8]}(L,L,j);const G=M.properties.get("color");return{u_matrix:O,u_lightpos:L,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[G.r,G.g,G.b],u_vertical_gradient:+f,u_opacity:C}},qa=(O,u,f,C,M,I,L)=>a.e(Ws(O,u,f,C),Ou(I,u,L),{u_height_factor:-Math.pow(2,M.overscaledZ)/L.tileSize/8}),Va=O=>({u_matrix:O}),Ns=(O,u,f,C)=>a.e(Va(O),Ou(f,u,C)),_A=(O,u)=>({u_matrix:O,u_world:u}),fl=(O,u,f,C,M)=>a.e(Ns(O,u,f,C),{u_world:M}),tc=(O,u,f,C)=>{const M=O.transform;let I,L;if(C.paint.get("circle-pitch-alignment")==="map"){const j=or(f,1,M.zoom);I=!0,L=[j,j]}else I=!1,L=M.pixelsToGLUnits;return{u_camera_to_center_distance:M.cameraToCenterDistance,u_scale_with_map:+(C.paint.get("circle-pitch-scale")==="map"),u_matrix:O.translatePosMatrix(u.posMatrix,f,C.paint.get("circle-translate"),C.paint.get("circle-translate-anchor")),u_pitch_with_map:+I,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:L}},bA=(O,u,f)=>{const C=or(f,1,u.zoom),M=Math.pow(2,u.zoom-f.tileID.overscaledZ),I=f.tileID.overscaleFactor();return{u_matrix:O,u_camera_to_center_distance:u.cameraToCenterDistance,u_pixels_to_tile_units:C,u_extrude_scale:[u.pixelsToGLUnits[0]/(C*M),u.pixelsToGLUnits[1]/(C*M)],u_overscale_factor:I}},xA=(O,u,f=1)=>({u_matrix:O,u_color:u,u_overlay:0,u_overlay_scale:f}),Ju=O=>({u_matrix:O}),nc=(O,u,f,C)=>({u_matrix:O,u_extrude_scale:or(u,1,f),u_intensity:C});function Ha(O,u){const f=Math.pow(2,u.canonical.z),C=u.canonical.y;return[new a.Y(0,C/f).toLngLat().lat,new a.Y(0,(C+1)/f).toLngLat().lat]}const Ss=(O,u,f,C)=>{const M=O.transform;return{u_matrix:eA(O,u,f,C),u_ratio:1/or(u,1,M.zoom),u_device_pixel_ratio:O.pixelRatio,u_units_to_pixels:[1/M.pixelsToGLUnits[0],1/M.p
Line truncated
|
||||
`}),staticAttributes:_,staticUniforms:R}}class il{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(u,p,_,M,I,R,j,G,te){this.context=u;let ue=this.boundPaintVertexBuffers.length!==M.length;for(let fe=0;!ue&&fe<M.length;fe++)this.boundPaintVertexBuffers[fe]!==M[fe]&&(ue=!0);!this.vao||this.boundProgram!==p||this.boundLayoutVertexBuffer!==_||ue||this.boundIndexBuffer!==I||this.boundVertexOffset!==R||this.boundDynamicVertexBuffer!==j||this.boundDynamicVertexBuffer2!==G||this.boundDynamicVertexBuffer3!==te?this.freshBind(p,_,M,I,R,j,G,te):(u.bindVertexArray.set(this.vao),j&&j.bind(),I&&I.dynamicDraw&&I.bind(),G&&G.bind(),te&&te.bind())}freshBind(u,p,_,M,I,R,j,G){const te=u.numAttributes,ue=this.context,fe=ue.gl;this.vao&&this.destroy(),this.vao=ue.createVertexArray(),ue.bindVertexArray.set(this.vao),this.boundProgram=u,this.boundLayoutVertexBuffer=p,this.boundPaintVertexBuffers=_,this.boundIndexBuffer=M,this.boundVertexOffset=I,this.boundDynamicVertexBuffer=R,this.boundDynamicVertexBuffer2=j,this.boundDynamicVertexBuffer3=G,p.enableAttributes(fe,u);for(const Ee of _)Ee.enableAttributes(fe,u);R&&R.enableAttributes(fe,u),j&&j.enableAttributes(fe,u),G&&G.enableAttributes(fe,u),p.bind(),p.setVertexAttribPointers(fe,u,I);for(const Ee of _)Ee.bind(),Ee.setVertexAttribPointers(fe,u,I);R&&(R.bind(),R.setVertexAttribPointers(fe,u,I)),M&&M.bind(),j&&(j.bind(),j.setVertexAttribPointers(fe,u,I)),G&&(G.bind(),G.setVertexAttribPointers(fe,u,I)),ue.currentNumAttributes=te}destroy(){this.vao&&(this.context.deleteVertexArray(this.vao),this.vao=null)}}function qa(O){const u=[];for(let p=0;p<O.length;p++){if(O[p]===null)continue;const _=O[p].split(" ");u.push(_.pop())}return u}class xa{constructor(u,p,_,M,I,R){const j=u.gl;this.program=j.createProgram();const G=qa(p.staticAttributes),te=_?_.getBinderAttributes():[],ue=G.concat(te),fe=Br.prelude.staticUniforms?qa(Br.prelude.staticUniforms):[],Ee=p.staticUniforms?qa(p.staticUniforms):[],ze=_?_.getBinderUniforms():[],Fe=fe.concat(Ee).concat(ze),Ge=[];for(const It of Fe)Ge.indexOf(It)<0&&Ge.push(It);const je=_?_.defines():[];I&&je.push("#define OVERDRAW_INSPECTOR;"),R&&je.push("#define TERRAIN3D;");const ct=je.concat(Br.prelude.fragmentSource,p.fragmentSource).join(`
|
||||
`),Ot=je.concat(Br.prelude.vertexSource,p.vertexSource).join(`
|
||||
`),Ye=j.createShader(j.FRAGMENT_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(Ye,ct),j.compileShader(Ye),!j.getShaderParameter(Ye,j.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${j.getShaderInfoLog(Ye)}`);j.attachShader(this.program,Ye);const _t=j.createShader(j.VERTEX_SHADER);if(j.isContextLost())return void(this.failedToCreate=!0);if(j.shaderSource(_t,Ot),j.compileShader(_t),!j.getShaderParameter(_t,j.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${j.getShaderInfoLog(_t)}`);j.attachShader(this.program,_t),this.attributes={};const Gt={};this.numAttributes=ue.length;for(let It=0;It<this.numAttributes;It++)ue[It]&&(j.bindAttribLocation(this.program,It,ue[It]),this.attributes[ue[It]]=It);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(_t),j.deleteShader(Ye);for(let It=0;It<Ge.length;It++){const en=Ge[It];if(en&&!Gt[en]){const cn=j.getUniformLocation(this.program,en);cn&&(Gt[en]=cn)}}this.fixedUniforms=M(u,Gt),this.terrainUniforms=((It,en)=>({u_depth:new a.aG(It,en.u_depth),u_terrain:new a.aG(It,en.u_terrain),u_terrain_dim:new a.aH(It,en.u_terrain_dim),u_terrain_matrix:new a.aI(It,en.u_terrain_matrix),u_terrain_unpack:new a.aJ(It,en.u_terrain_unpack),u_terrain_exaggeration:new a.aH(It,en.u_terrain_exaggeration)}))(u,Gt),this.binderUniforms=_?_.getUniforms(u,Gt):[]}draw(u,p,_,M,I,R,j,G,te,ue,fe,Ee,ze,Fe,Ge,je,ct,Ot){const Ye=u.gl;if(this.failedToCreate)return;if(u.program.set(this.program),u.setDepthMode(_),u.setStencilMode(M),u.setColorMode(I),u.setCullFace(R),G){u.activeTexture.set(Ye.TEXTURE2),Ye.bindTexture(Ye.TEXTURE_2D,G.depthTexture),u.activeTexture.set(Ye.TEXTURE3),Ye.bindTexture(Ye.TEXTURE_2D,G.texture);for(const Gt in this.terrainUniforms)this.terrainUniforms[Gt].set(G[Gt])}for(const Gt in this.fixedUniforms)this.fixedUniforms[Gt].set(j[Gt]);Ge&&Ge.setUniforms(u,this.binderUniforms,ze,{zoom:Fe});let _t=0;switch(p){case Ye.LINES:_t=2;break;case Ye.TRIANGLES:_t=3;break;case Ye.LINE_STRIP:_t=1}for(const Gt of Ee.get()){const It=Gt.vaos||(Gt.vaos={});(It[te]||(It[te]=new il)).bind(u,this,ue,Ge?Ge.getPaintVertexBuffers():[],fe,Gt.vertexOffset,je,ct,Ot),Ye.drawElements(p,Gt.primitiveLength*_t,Ye.UNSIGNED_SHORT,Gt.primitiveOffset*_t*2)}}}function Bu(O,u,p){const _=1/or(p,1,u.transform.tileZoom),M=Math.pow(2,p.tileID.overscaledZ),I=p.tileSize*Math.pow(2,u.transform.tileZoom)/M,R=I*(p.tileID.canonical.x+p.tileID.wrap*M),j=I*p.tileID.canonical.y;return{u_image:0,u_texsize:p.imageAtlasTexture.size,u_scale:[_,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[R>>16,j>>16],u_pixel_coord_lower:[65535&R,65535&j]}}const Ns=(O,u,p,_)=>{const M=u.style.light,I=M.properties.get("position"),R=[I.x,I.y,I.z],j=function(){var te=new a.A(9);return a.A!=Float32Array&&(te[1]=0,te[2]=0,te[3]=0,te[5]=0,te[6]=0,te[7]=0),te[0]=1,te[4]=1,te[8]=1,te}();M.properties.get("anchor")==="viewport"&&function(te,ue){var fe=Math.sin(ue),Ee=Math.cos(ue);te[0]=Ee,te[1]=fe,te[2]=0,te[3]=-fe,te[4]=Ee,te[5]=0,te[6]=0,te[7]=0,te[8]=1}(j,-u.transform.angle),function(te,ue,fe){var Ee=ue[0],ze=ue[1],Fe=ue[2];te[0]=Ee*fe[0]+ze*fe[3]+Fe*fe[6],te[1]=Ee*fe[1]+ze*fe[4]+Fe*fe[7],te[2]=Ee*fe[2]+ze*fe[5]+Fe*fe[8]}(R,R,j);const G=M.properties.get("color");return{u_matrix:O,u_lightpos:R,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[G.r,G.g,G.b],u_vertical_gradient:+p,u_opacity:_}},Va=(O,u,p,_,M,I,R)=>a.e(Ns(O,u,p,_),Bu(I,u,R),{u_height_factor:-Math.pow(2,M.overscaledZ)/R.tileSize/8}),Ha=O=>({u_matrix:O}),Gs=(O,u,p,_)=>a.e(Ha(O),Bu(p,u,_)),xA=(O,u)=>({u_matrix:O,u_world:u}),pl=(O,u,p,_,M)=>a.e(Gs(O,u,p,_),{u_world:M}),ic=(O,u,p,_)=>{const M=O.transform;let I,R;if(_.paint.get("circle-pitch-alignment")==="map"){const j=or(p,1,M.zoom);I=!0,R=[j,j]}else I=!1,R=M.pixelsToGLUnits;return{u_camera_to_center_distance:M.cameraToCenterDistance,u_scale_with_map:+(_.paint.get("circle-pitch-scale")==="map"),u_matrix:O.translatePosMatrix(u.posMatrix,p,_.paint.get("circle-translate"),_.paint.get("circle-translate-anchor")),u_pitch_with_map:+I,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:R}},wA=(O,u,p)=>{const _=or(p,1,u.zoom),M=Math.pow(2,u.zoom-p.tileID.overscaledZ),I=p.tileID.overscaleFactor();return{u_matrix:O,u_camera_to_center_distance:u.cameraToCenterDistance,u_pixels_to_tile_units:_,u_extrude_scale:[u.pixelsToGLUnits[0]/(_*M),u.pixelsToGLUnits[1]/(_*M)],u_overscale_factor:I}},MA=(O,u,p=1)=>({u_matrix:O,u_color:u,u_overlay:0,u_overlay_scale:p}),tA=O=>({u_matrix:O}),oc=(O,u,p,_)=>({u_matrix:O,u_extrude_scale:or(u,1,p),u_intensity:_});function Za(O,u){const p=Math.pow(2,u.canonical.z),_=u.canonical.y;return[new a.Y(0,_/p).toLngLat().lat,new a.Y(0,(_+1)/p).toLngLat().lat]}const Es=(O,u,p,_)=>{const M=O.transform;return{u_matrix:nA(O,u,p,_),u_ratio:1/or(u,1,M.zoom),u_device_pixel_ratio:O.pixelRatio,u_units_to_pixels:[1/M.pixelsToGLUnits[0],1/M.p
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}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 s="";for(var a in o)n.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(ZR);var TJ=ZR.exports;const pf=ma(TJ);function Eo(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx",n="3158bd93bbefd1bd0e63d26617da070781685c25",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:17}},1:{start:{line:7,column:4},end:{line:9,column:6}},2:{start:{line:11,column:16},end:{line:19,column:3}},3:{start:{line:12,column:4},end:{line:18,column:7}},4:{start:{line:15,column:6},end:{line:17,column:7}},5:{start:{line:16,column:8},end:{line:16,column:48}},6:{start:{line:21,column:33},end:{line:21,column:43}},7:{start:{line:22,column:20},end:{line:22,column:35}},8:{start:{line:23,column:4},end:{line:42,column:5}},9:{start:{line:24,column:6},end:{line:37,column:14}},10:{start:{line:32,column:27},end:{line:32,column:61}},11:{start:{line:38,column:11},end:{line:42,column:5}},12:{start:{line:39,column:6},end:{line:39,column:174}},13:{start:{line:41,column:22},end:{line:41,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:21},end:{line:10,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:16},end:{line:11,column:17}},loc:{start:{line:11,column:26},end:{line:19,column:3}},line:11},2:{name:"(anonymous_2)",decl:{start:{line:14,column:7},end:{line:14,column:8}},loc:{start:{line:14,column:13},end:{line:18,column:5}},line:14},3:{name:"(anonymous_3)",decl:{start:{line:20,column:2},end:{line:20,column:3}},loc:{start:{line:20,column:11},end:{line:43,column:3}},line:20},4:{name:"(anonymous_4)",decl:{start:{line:32,column:21},end:{line:32,column:22}},loc:{start:{line:32,column:27},end:{line:32,column:61}},line:32}},branchMap:{0:{loc:{start:{line:15,column:6},end:{line:17,column:7}},type:"if",locations:[{start:{line:15,column:6},end:{line:17,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},1:{loc:{start:{line:22,column:20},end:{line:22,column:35}},type:"binary-expr",locations:[{start:{line:22,column:20},end:{line:22,column:29}},{start:{line:22,column:33},end:{line:22,column:35}}],line:22},2:{loc:{start:{line:23,column:4},end:{line:42,column:5}},type:"if",locations:[{start:{line:23,column:4},end:{line:42,column:5}},{start:{line:38,column:11},end:{line:42,column:5}}],line:23},3:{loc:{start:{line:30,column:26},end:{line:30,column:106}},type:"cond-expr",locations:[{start:{line:30,column:44},end:{line:30,column:74}},{start:{line:30,column:77},end:{line:30,column:106}}],line:30},4:{loc:{start:{line:31,column:67},end:{line:31,column:102}},type:"cond-expr",locations:[{start:{line:31,column:85},end:{line:31,column:91}},{start:{line:31,column:94},end:{line:31,column:102}}],line:31},5:{loc:{start:{line:34,column:22},end:{line:34,column:120}},type:"cond-expr",locations:[{start:{line:34,column:56},end:{line:34,column:79}},{start:{line:34,column:98},end:{line:34,column:120}}],line:34},6:{loc:{start:{line:38,column:11},end:{line:42,column:5}},type:"if",locations:[{start:{line:38,column:11},end:{line:42,column:5}},{start:{line:40,column:11},end:{line:42,column:5}}],line:38}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx"],names:[],mappings:"AAuCQ,SASuB,KATvB;AAvCR,OAAO,WAAW;AAClB,SAAQ,eAAe,sBAAqB;AAc5C,qBAAqB,sBAAsB,MAAM,UAAkD;AAAA,EACjG,YAAa,OAA2B;AACtC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,cAAc,CAAC,SAAkB;AAC/B,SAAK,SAAS;AAAA,MACZ;AAAA,IACF,GAAG,MAAM;AACP,UAAI,KAAK,MAAM,aAAa;AAC1B,aAAK,MAAM,YAAY,KAAK,MAAM,IAAI;AAAA,MACxC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,OAAO,UAAS,IAAI,KAAK;AAChC,UAAM,EAAC,IAAG,IAAI,aAAa,CAAC;AAE5B,QAAI,KAAK;AACP,aAAO,oBAAC,WAAM,WAAU,wBACtB,+BAAC,SAAI,WAAU,uBACZ;AAAA;AAAA,QACA;AAAA,QACD;AAAA,UAAC;AAAA;AAAA,YACC,cAAY,KAAK,MAAM,OAAO,iCAAiC;AAAA,YAC/D,WAAW,4CAA4C,KAAK,MAAM,OAAO,SAAS,QAAQ;AAAA,YAC1F,SAAS,MAAM,KAAK,YAAY,CAAC,KAAK,MAAM,IAAI;AAAA,YAChD,eAAa,sBAAoB;AAAA,YAEhC,eAAK,MAAM,OAAO,oBAAC,kBAAe,IAAK,oBAAC,iBAAc;AAAA;AAAA,QACzD;AAAA,SACF,GACF;AAAA,IACF,WACS,OAAO;AACd,aAAO,oBAAC,WAAM,WAAU,wBACtB,8BAAC,SAAI,WAAU,uBACZ,iBACH,GACF;AAAA,IACF,OACK;AACH,0BAAC,SAAI;AAAA,IACP;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e902Line truncated
|
||||
*/(function(e){(function(){var n={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}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 s="";for(var a in o)n.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(dR);var aee=dR.exports;const _f=oa(aee);function Eo(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx",n="3158bd93bbefd1bd0e63d26617da070781685c25",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:6,column:17}},1:{start:{line:7,column:4},end:{line:9,column:6}},2:{start:{line:11,column:16},end:{line:19,column:3}},3:{start:{line:12,column:4},end:{line:18,column:7}},4:{start:{line:15,column:6},end:{line:17,column:7}},5:{start:{line:16,column:8},end:{line:16,column:48}},6:{start:{line:21,column:33},end:{line:21,column:43}},7:{start:{line:22,column:20},end:{line:22,column:35}},8:{start:{line:23,column:4},end:{line:42,column:5}},9:{start:{line:24,column:6},end:{line:37,column:14}},10:{start:{line:32,column:27},end:{line:32,column:61}},11:{start:{line:38,column:11},end:{line:42,column:5}},12:{start:{line:39,column:6},end:{line:39,column:174}},13:{start:{line:41,column:22},end:{line:41,column:37}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:21},end:{line:10,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:16},end:{line:11,column:17}},loc:{start:{line:11,column:26},end:{line:19,column:3}},line:11},2:{name:"(anonymous_2)",decl:{start:{line:14,column:7},end:{line:14,column:8}},loc:{start:{line:14,column:13},end:{line:18,column:5}},line:14},3:{name:"(anonymous_3)",decl:{start:{line:20,column:2},end:{line:20,column:3}},loc:{start:{line:20,column:11},end:{line:43,column:3}},line:20},4:{name:"(anonymous_4)",decl:{start:{line:32,column:21},end:{line:32,column:22}},loc:{start:{line:32,column:27},end:{line:32,column:61}},line:32}},branchMap:{0:{loc:{start:{line:15,column:6},end:{line:17,column:7}},type:"if",locations:[{start:{line:15,column:6},end:{line:17,column:7}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:15},1:{loc:{start:{line:22,column:20},end:{line:22,column:35}},type:"binary-expr",locations:[{start:{line:22,column:20},end:{line:22,column:29}},{start:{line:22,column:33},end:{line:22,column:35}}],line:22},2:{loc:{start:{line:23,column:4},end:{line:42,column:5}},type:"if",locations:[{start:{line:23,column:4},end:{line:42,column:5}},{start:{line:38,column:11},end:{line:42,column:5}}],line:23},3:{loc:{start:{line:30,column:26},end:{line:30,column:106}},type:"cond-expr",locations:[{start:{line:30,column:44},end:{line:30,column:74}},{start:{line:30,column:77},end:{line:30,column:106}}],line:30},4:{loc:{start:{line:31,column:67},end:{line:31,column:102}},type:"cond-expr",locations:[{start:{line:31,column:85},end:{line:31,column:91}},{start:{line:31,column:94},end:{line:31,column:102}}],line:31},5:{loc:{start:{line:34,column:22},end:{line:34,column:120}},type:"cond-expr",locations:[{start:{line:34,column:56},end:{line:34,column:79}},{start:{line:34,column:98},end:{line:34,column:120}}],line:34},6:{loc:{start:{line:38,column:11},end:{line:42,column:5}},type:"if",locations:[{start:{line:38,column:11},end:{line:42,column:5}},{start:{line:40,column:11},end:{line:42,column:5}}],line:38}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0},f:{0:0,1:0,2:0,3:0,4:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0],5:[0,0],6:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDocLabel.tsx"],names:[],mappings:"AAuCQ,SASuB,KATvB;AAvCR,OAAO,WAAW;AAClB,SAAQ,eAAe,sBAAqB;AAc5C,qBAAqB,sBAAsB,MAAM,UAAkD;AAAA,EACjG,YAAa,OAA2B;AACtC,UAAM,KAAK;AACX,SAAK,QAAQ;AAAA,MACX,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,cAAc,CAAC,SAAkB;AAC/B,SAAK,SAAS;AAAA,MACZ;AAAA,IACF,GAAG,MAAM;AACP,UAAI,KAAK,MAAM,aAAa;AAC1B,aAAK,MAAM,YAAY,KAAK,MAAM,IAAI;AAAA,MACxC;AAAA,IACF,CAAC;AAAA,EACH;AAAA,EAEA,SAAS;AACP,UAAM,EAAC,OAAO,UAAS,IAAI,KAAK;AAChC,UAAM,EAAC,IAAG,IAAI,aAAa,CAAC;AAE5B,QAAI,KAAK;AACP,aAAO,oBAAC,WAAM,WAAU,wBACtB,+BAAC,SAAI,WAAU,uBACZ;AAAA;AAAA,QACA;AAAA,QACD;AAAA,UAAC;AAAA;AAAA,YACC,cAAY,KAAK,MAAM,OAAO,iCAAiC;AAAA,YAC/D,WAAW,4CAA4C,KAAK,MAAM,OAAO,SAAS,QAAQ;AAAA,YAC1F,SAAS,MAAM,KAAK,YAAY,CAAC,KAAK,MAAM,IAAI;AAAA,YAChD,eAAa,sBAAoB;AAAA,YAEhC,eAAK,MAAM,OAAO,oBAAC,kBAAe,IAAK,oBAAC,iBAAc;AAAA;AAAA,QACzD;AAAA,SACF,GACF;AAAA,IACF,WACS,OAAO;AACd,aAAO,oBAAC,WAAM,WAAU,wBACtB,8BAAC,SAAI,WAAU,uBACZ,iBACH,GACF;AAAA,IACF,OACK;AACH,0BAAC,SAAI;AAAA,IACP;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e9Line truncated
|
||||
Zoom: <span></span>
|
||||
`,ca().s[8]++,this._textEl=this._container.querySelector("span"),ca().s[9]++,this.addEventListeners(),ca().s[10]++,this._container}updateZoomLevel(){ca().f[1]++,ca().s[11]++,this._textEl.innerHTML=this._map.getZoom().toFixed(2)}addEventListeners(){ca().f[2]++,ca().s[12]++,this._map.on("render",()=>(ca().f[3]++,ca().s[13]++,this.updateZoomLevel())),ca().s[14]++,this._map.on("zoomIn",()=>(ca().f[4]++,ca().s[15]++,this.updateZoomLevel())),ca().s[16]++,this._map.on("zoomOut",()=>(ca().f[5]++,ca().s[17]++,this.updateZoomLevel()))}onRemove(){ca().f[6]++,ca().s[18]++,this._container.parentNode.removeChild(this._container),ca().s[19]++,this._map=void 0}}function wi(){var e="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",n="a1afd3a6454022c4d7be658acdbd4aecf51f38d3",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:19,column:16}},10:{start:{line:19,column:4},end:{line:19,column:16}},11:{start:{line:20,column:24},end:{line:20,column:51}},12:{start:{line:21,column:16},end:{line:21,column:52}},13:{start:{line:22,column:2},end:{line:24,column:3}},14:{start:{line:23,column:4},end:{line:23,column:104}},15:{start:{line:25,column:2},end:{line:27,column:3}},16:{start:{line:26,column:4},end:{line:26,column:96}},17:{start:{line:28,column:2},end:{line:30,column:3}},18:{start:{line:29,column:4},end:{line:29,column:94}},19:{start:{line:31,column:2},end:{line:31,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:32,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:19,column:16}},type:"if",locations:[{start:{line:18,column:2},end:{line:19,column:16}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:20,column:24},end:{line:20,column:51}},type:"binary-expr",locations:[{start:{line:20,column:24},end:{line:20,column:45}},{start:{line:20,column:49},end:{line:20,column:51}}],line:20},6:{loc:{start:{line:22,column:2},end:{line:24,column:3}},type:"if",locations:[{start:{line:22,column:2},end:{line:24,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22},7:{loc:{start:{line:22,column:6},end:{line:22,column:62}},type:"binary-expr",locations:[{start:{line:22,column:6},end:{line:22,column:27}},{start:{line:22,column:31},end:{line:22,column:62}}],line:22},8:{loc:{start:{line:25,column:2},end:{line:27,column:3}},type:"if",locations:[{start:{line:25,column:2},end:{line:27,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:25},9:{loc:{start:{line:25,column:6},end:{line:25,column:56}},type:"binary-expr",locations:[{start:{line:25,column:6},end:{line:25,column:29}},{start:{line:25,column:33},end:{line:25,column:56}}],line:25},10:{loc:{start:{line:28,column:2},end:{line:30,column:3}},type:"if",locations:[{start:{line:28,column:2},end:{line:30,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/highlight.ts"],names:[],mappings:"AACA,OAAO,cAAc;AAErB,OAAO,YAAY;AAKnB,SAAS,YAAY,GAAqB,OAA2B;AACnE,MAAG,EAAE,SAAS,UAAU;AACtB,MAAE,MAAO,eAAe,IAAI;AAAA,EAC9B,WAAU,EAAE,SAAS,QAAQ;AAC3B,MAAE,MAA
Line truncated
|
||||
`))?(z_(eE),bg=null,J6=void 0,ip.set(P,e)):(ip.set(P,ip.get(P)+1,!0),g=!1))}g&&(clearInterval(o),o=void 0)}return function(g){var b=$L(g);if(b)for(var B=b.families,k=0,P=B.length;k<P;++k){var R=B[k],Z=b.style+`
|
||||
`+b.weight+`
|
||||
`+R;ip.get(Z)===void 0&&(ip.set(Z,e,!0),a(b.style,b.weight,R)||(ip.set(Z,0,!0),o===void 0&&(o=setInterval(p,32))))}}}(),cre=function(){var e;return function(n){var t=eE[n];if(t==null){if(n5){var r=$L(n),i=VL(n,"Žg"),o=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);t=o*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=n,document.body.appendChild(e),t=e.offsetHeight,document.body.removeChild(e);eE[n]=t}return t}}();function VL(e,n){return bg||(bg=XA(1,1)),e!=J6&&(bg.font=e,J6=bg.font),bg.measureText(n)}function B3(e,n){return VL(e,n).width}function E9(e,n,t){if(n in t)return t[n];var r=n.split(`
|
||||
`).reduce(function(i,o){return Math.max(i,B3(e,o))},0);return t[n]=r,r}function dre(e,n){for(var t=[],r=[],i=[],o=0,s=0,a=0,p=0,g=0,b=n.length;g<=b;g+=2){var B=n[g];if(B===`
|
||||
`||g===b){o=Math.max(o,s),i.push(s),s=0,a+=p;continue}var k=n[g+1]||e.font,P=B3(k,B);t.push(P),s+=P;var R=cre(k);r.push(R),p=Math.max(p,R)}return{width:o,height:a,widths:t,heights:r,lineWidths:i}}function hre(e,n,t,r,i,o,s,a,p,g,b){e.save(),t!==1&&(e.globalAlpha*=t),n&&e.setTransform.apply(e,n),r.contextInstructions?(e.translate(p,g),e.scale(b[0],b[1]),fre(r,e)):b[0]<0||b[1]<0?(e.translate(p,g),e.scale(b[0],b[1]),e.drawImage(r,i,o,s,a,0,0,s,a)):e.drawImage(r,i,o,s,a,p,g,s*b[0],a*b[1]),e.restore()}function fre(e,n){for(var t=e.contextInstructions,r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?n[t[r]].apply(n,t[r+1]):n[t[r]]=t[r+1]}var pre=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),mre=function(e){pre(n,e);function n(t){var r=e.call(this,t)||this;r.fontChangeListenerKey_=bo(ip,wy.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=c5+" ol-layers";var o=t.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return n.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var o=new QL(t,void 0,r);i.dispatchEvent(o)}},n.prototype.disposeInternal=function(){Qa(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},n.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(Pm.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(P,R){return P.zIndex-R.zIndex}),i=t.viewState;this.children_.length=0;for(var o=[],s=null,a=0,p=r.length;a<p;++a){var g=r[a];t.layerIndex=a;var b=g.layer,B=b.getSourceState();if(!M3(g,i)||B!="ready"&&B!="undefined"){b.unrender();continue}var k=b.render(t,s);k&&(k!==s&&(this.children_.push(k),s=k),"getDeclutter"in b&&o.push(b))}for(var a=o.length-1;a>=0;--a)o[a].renderDeclutter(t);ure(this.element_,this.children_),this.dispatchRenderEvent(Pm.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},n.prototype.forEachLayerAtPixel=function(t,r,i,o,s){for(var a=r.viewState,p=r.layerStatesArray,g=p.length,b=g-1;b>=0;--b){var B=p[b],k=B.layer;if(k.hasRenderer()&&M3(B,a)&&s(k)){var P=k.getRenderer(),R=P.getDataAtPixel(t,r,i);if(R){var Z=o(k,R);if(Z)return Z}}}},n}(rre);const gre=mre,YA={ADD:"add",REMOVE:"remove"};var HL=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),O9={LENGTH:"length"},xx=function(e){HL(n,e);function n(t,r,i){var o=e.call(this,t)||this;return o.element=r,o.index=i,o}return n}(Ep),fd=function(e){HL(n,e);function n(t,r){var i=e.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=t||[],i.unique_)for(var s=0,a=i.array_.length;s<a;++s)i.assertUnique_(i.array_[s],s);return i.updateLength_(),i}return n.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},n.prototype.extend=function(t){for(var r=0,i=t.length;r<i;++r)this.push(t[r]);return this},n.prototype.forEach=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)t(r[i],i,r)},n.prototype.getArray=function(){return this.array_},n.prototype.item=function(t){return this.array_[t]},n.prototype.getLength=function(){return this.get(O9.LENGTH)},n.prototype.insertAt=function(t,r){this.unique_&&this.assertUnique_(r),this.array_.splice(t,0,r),this.updateLength_(),this.dispatchEvent(new xx(YA.ADD,r,t))},n.prototype.pop=function(){return this.removeAt(this.getLength()-1)},n.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var r=this.getLength();return this.insertAt(r,t),this.getLength()},n.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)},n.prototype.removeAt=function(t){var r=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new xx(YA.REMOVE,r,t)),r},n.prototype.setAt=function(t,r){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(r,t);var o=this.array_[t];this.array_[
Line truncated
|
||||
`,""),e.push(n,""),e}var Koe=function(){function e(n,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=n,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=md(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(n,t,r,i){var o=n+t+r+i;if(this.labels_[o])return this.labels_[o];var s=i?this.strokeStates[i]:null,a=r?this.fillStates[r]:null,p=this.textStates[t],g=this.pixelRatio,b=[p.scale[0]*g,p.scale[1]*g],B=Array.isArray(n),k=p.justify?SC[p.justify]:j9(Array.isArray(n)?n[0]:n,p.textAlign||d_),P=i&&s.lineWidth?s.lineWidth:0,R=B?n:n.split(`
|
||||
`).reduce(Toe,[]),Z=dre(p,R),W=Z.width,Q=Z.height,q=Z.widths,oe=Z.heights,re=Z.lineWidths,ce=W+P,se=[],le=(ce+2)*b[0],ye=(Q+P)*b[1],De={width:le<0?Math.floor(le):Math.ceil(le),height:ye<0?Math.floor(ye):Math.ceil(ye),contextInstructions:se};if((b[0]!=1||b[1]!=1)&&se.push("scale",b),i){se.push("strokeStyle",s.strokeStyle),se.push("lineWidth",P),se.push("lineCap",s.lineCap),se.push("lineJoin",s.lineJoin),se.push("miterLimit",s.miterLimit);var Ne=n5?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;Ne.prototype.setLineDash&&(se.push("setLineDash",[s.lineDash]),se.push("lineDashOffset",s.lineDashOffset))}r&&se.push("fillStyle",a.fillStyle),se.push("textBaseline","middle"),se.push("textAlign","center");for(var et=.5-k,ft=k*ce+et*P,Ke=[],rt=[],Ce=0,Rt=0,jt=0,tn=0,Qt,He=0,Je=R.length;He<Je;He+=2){var tt=R[He];if(tt===`
|
||||
`){Rt+=Ce,Ce=0,ft=k*ce+et*P,++tn;continue}var rn=R[He+1]||p.font;rn!==Qt&&(i&&Ke.push("font",rn),r&&rt.push("font",rn),Qt=rn),Ce=Math.max(Ce,oe[jt]);var mt=[tt,ft+et*q[jt]+k*(q[jt]-re[tn]),.5*(P+Ce)+Rt];ft+=q[jt],i&&Ke.push("strokeText",mt),r&&rt.push("fillText",mt),++jt}return Array.prototype.push.apply(se,Ke),Array.prototype.push.apply(se,rt),this.labels_[o]=De,De},e.prototype.replayTextBackground_=function(n,t,r,i,o,s,a){n.beginPath(),n.moveTo.apply(n,t),n.lineTo.apply(n,r),n.lineTo.apply(n,i),n.lineTo.apply(n,o),n.lineTo.apply(n,t),s&&(this.alignFill_=s[2],this.fill_(n)),a&&(this.setStrokeStyle_(n,a),n.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(n,t,r,i,o,s,a,p,g,b,B,k,P,R,Z,W){a*=k[0],p*=k[1];var Q=r-a,q=i-p,oe=o+g>n?n-g:o,re=s+b>t?t-b:s,ce=R[3]+oe*k[0]+R[1],se=R[0]+re*k[1]+R[2],le=Q-R[3],ye=q-R[0];(Z||B!==0)&&(Hp[0]=le,Zp[0]=le,Hp[1]=ye,Zf[1]=ye,Zf[0]=le+ce,Xf[0]=Zf[0],Xf[1]=ye+se,Zp[1]=Xf[1]);var De;return B!==0?(De=gf(md(),r,i,1,1,B,-r,-i),ul(De,Hp),ul(De,Zf),ul(De,Xf),ul(De,Zp),yf(Math.min(Hp[0],Zf[0],Xf[0],Zp[0]),Math.min(Hp[1],Zf[1],Xf[1],Zp[1]),Math.max(Hp[0],Zf[0],Xf[0],Zp[0]),Math.max(Hp[1],Zf[1],Xf[1],Zp[1]),ug)):yf(Math.min(le,le+ce),Math.min(ye,ye+se),Math.max(le,le+ce),Math.max(ye,ye+se),ug),P&&(Q=Math.round(Q),q=Math.round(q)),{drawImageX:Q,drawImageY:q,drawImageW:oe,drawImageH:re,originX:g,originY:b,declutterBox:{minX:ug[0],minY:ug[1],maxX:ug[2],maxY:ug[3],value:W},canvasTransform:De,scale:k}},e.prototype.replayImageOrLabel_=function(n,t,r,i,o,s,a){var p=!!(s||a),g=i.declutterBox,b=n.canvas,B=a?a[2]*i.scale[0]/2:0,k=g.minX-B<=b.width/t&&g.maxX+B>=0&&g.minY-B<=b.height/t&&g.maxY+B>=0;return k&&(p&&this.replayTextBackground_(n,Hp,Zf,Xf,Zp,s,a),hre(n,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},e.prototype.fill_=function(n){if(this.alignFill_){var t=ul(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;n.save(),n.translate(t[0]%r,t[1]%r),n.rotate(this.viewRotation_)}n.fill(),this.alignFill_&&n.restore()},e.prototype.setStrokeStyle_=function(n,t){n.strokeStyle=t[1],n.lineWidth=t[2],n.lineCap=t[3],n.lineJoin=t[4],n.miterLimit=t[5],n.setLineDash&&(n.lineDashOffset=t[7],n.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(n,t,r,i){var o=this.textStates[t],s=this.createLabel(n,t,i,r),a=this.strokeStates[r],p=this.pixelRatio,g=j9(Array.isArray(n)?n[0]:n,o.textAlign||d_),b=SC[o.textBaseline||O3],B=a&&a.lineWidth?a.lineWidth:0,k=s.width/p-2*o.scale[0],P=g*k+2*(.5-g)*B,R=b*s.height/p+2*(.5-b)*B;return{label:s,anchorX:P,anchorY:R}},e.prototype.execute_=function(n,t,r,i,o,s,a,p){var g;this.pixelCoordinates_&&y1(r,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=Km(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),kee(this.renderedTransform_,r));for(var b=0,B=i.length,k=0,P,R,Z,W,Q,q,oe,re,ce,se,le,ye,De=0,Ne=0,et=null,ft=null,Ke=this.coordinateCache_,rt=this.viewRotation_,Ce=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,Rt={context:n,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:rt},jt=this.instructions!=i||this.overlaps?0:200,tn,Qt,He,Je;b<B;){var tt=i[b],rn=tt[0];switch(rn){case ri.BEGIN_GEOMETRY:tn=tt[1],Je=tt[3],tn.getGeometry()?a!==void 0&&!Al(a,Je.getExtent())?b=tt[2]+1:++b:b=tt[2];break;case ri.BEGIN_PATH:De>jt&&(this.fill_(n),De=0),Ne>jt&&(n.stroke(),Ne=0),!De&&!Ne&&(n.beginPath(),W=NaN,Q=NaN),++b;break;case ri.CIRCLE:k=tt[1];var mt=g[k],dt=g[k+1],kt=g[k+2],Pt=g[k+3],Me=kt-mt,he=Pt-dt,be=Math.sqrt(Me*Me+he*he);n.moveTo(mt+be,dt),n.arc(mt,dt,be,0,2*Math.PI,!0),++b;break;case ri.CLOSE_PATH:n.closePath(),++b;break;case ri.CUSTOM:k=tt[1],P=tt[2];var Pe=tt[3],Ze=tt[4],nt=tt.length==6?tt[5]:void 0;Rt.geometry=Pe,Rt.feature=tn,b in Ke||(Ke[b]=[]);var xt=Ke[b];nt?nt(g,k,P,2,xt):(xt[0]=g[k],xt[1]=g[k+1],xt.length=2),Ze(xt,Rt),++b;break;case ri.DRAW_IMAGE:k=tt[1],P=tt[2],re=tt[3],R=tt[4],Z=tt[5];var Ft=tt[6],Dt=tt[7],pt=tt[8],nr=tt[9],pn=tt[10],bn=tt[11],Jn=tt[12],mr=tt[13],xr=tt[14],Nr=tt[15];if(!re&&tt.length>=20){ce=tt[19],se=tt[20],le=tt[21],ye=tt[22];var Cr=this.drawLabelWithPointPlacement_(ce,se,le,ye);re=Cr.label,tt[3]=re;var fi=tt[23];R=(Cr.anchorX-fi)*this.pixelRatio,tt[4]=R;var we=tt[24];Z=(Cr.anchorY-we)*this.pixelRatio,tt[5]=Z,Ft=re.height,tt[6]=Ft,mr=re.width,tt[13]=mr}var H=void 0;tt.length>25&&(H=tt[25]);var Y=void 0,Be=void 0,st=void 0;tt.length>17?(Y=tt[16],Be=tt[17],st=tt[18]):(Y=z0,Be=!1,st=!1),pn&&Ce?bn+=rt:!pn&&!Ce&&(bn-=rt);for(var St=0;k<P;k+=2)if(!(H&&H[St++]<mr/this.pixelRatio)){var Et=this.calculateImageOrLabelDimensions_(re.width,re.height,g[k],g[k+1],mr,Ft,R,Z,pt,nr,bn,Jn,o,Y,Be||st,tn),Nt=[n,t,re,Et,Dt,Be?et:null,st?ft:null];if(p){if(xr==="none")continue;if(xr==="obstacle"){p.insert(Et.declutterBox);continue}else{var mn=void 0,Kn=void 0;if(Nr){var En=P-k;if(!Nr[En]){Nr[En]=Nt;continue}if(mn=Nr[En],delete Nr[En],Kn=z9(mn),p.collides(Kn))continue}if(p.collides(Et.declutterBox))cont
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Dz(t,this.tileGrid),r):this.setKey(r)},n.prototype.tileUrlFunction=function(t,r,i){},n.prototype.useTile=function(t,r,i){var o=Ny(t,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},n}(Yae);const Uz=Xae;var Jae=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),ese=function(e){Jae(n,e);function n(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),r=e.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:tse,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:kz,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return n.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},n.prototype.expireCache=function(t,r){var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?r:{});for(var o in this.tileCacheForProjection){var s=this.tileCacheForProjection[o];s.expireCache(s==i?r:{})}},n.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!O0(this.getProjection(),t)?0:this.getGutter()},n.prototype.getGutter=function(){return 0},n.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},n.prototype.getOpaque=function(t){return this.getProjection()&&t&&!O0(this.getProjection(),t)?!1:e.prototype.getOpaque.call(this,t)},n.prototype.getTileGridForProjection=function(t){var r=this.getProjection();if(this.tileGrid&&(!r||O0(r,t)))return this.tileGrid;var i=Ni(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Kz(t)),this.tileGridForProjection[i]},n.prototype.getTileCacheForProjection=function(t){var r=this.getProjection();if(!r||O0(r,t))return this.tileCache;var i=Ni(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new g7(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},n.prototype.createTile_=function(t,r,i,o,s,a){var p=[t,r,i],g=this.getTileCoordForTileUrlFunction(p,s),b=g?this.tileUrlFunction(g,o,s):void 0,B=new this.tileClass(p,b!==void 0?pr.IDLE:pr.EMPTY,b!==void 0?b:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return B.key=a,B.addEventListener(Bi.CHANGE,this.handleTileChange.bind(this)),B},n.prototype.getTile=function(t,r,i,o,s){var a=this.getProjection();if(!a||!s||O0(a,s))return this.getTileInternal(t,r,i,o,a||s);var p=this.getTileCacheForProjection(s),g=[t,r,i],b=void 0,B=Oz(g);p.containsKey(B)&&(b=p.get(B));var k=this.getKey();if(b&&b.key==k)return b;var P=this.getTileGridForProjection(a),R=this.getTileGridForProjection(s),Z=this.getTileCoordForTileUrlFunction(g,s),W=new Tz(a,P,s,R,g,Z,this.getTilePixelRatio(o),this.getGutter(),(function(Q,q,oe,re){return this.getTileInternal(Q,q,oe,re,a)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return W.key=k,b?(W.interimTile=b,W.refreshInterimChain(),p.replace(B,W)):p.set(B,W),W},n.prototype.getTileInternal=function(t,r,i,o,s){var a=null,p=Ny(t,r,i),g=this.getKey();if(!this.tileCache.containsKey(p))a=this.createTile_(t,r,i,o,s,g),this.tileCache.set(p,a);else if(a=this.tileCache.get(p),a.key!=g){var b=a;a=this.createTile_(t,r,i,o,s,g),b.getState()==pr.IDLE?a.interimTile=b.interimTile:a.interimTile=b,a.refreshInterimChain(),this.tileCache.replace(p,a)}return a},n.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},n.prototype.setTileGridForProjection=function(t,r){{var i=js(t);if(i){var o=Ni(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}}},n}(Uz);function tse(e,n){e.getImage().src=n}const nse=ese;var Rz=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototyp
Line truncated
|
||||
`,da().s[8]++,this._textEl=this._container.querySelector("span"),da().s[9]++,this.addEventListeners(),da().s[10]++,this._container}updateZoomLevel(){da().f[1]++,da().s[11]++,this._textEl.innerHTML=this._map.getZoom().toFixed(2)}addEventListeners(){da().f[2]++,da().s[12]++,this._map.on("render",()=>(da().f[3]++,da().s[13]++,this.updateZoomLevel())),da().s[14]++,this._map.on("zoomIn",()=>(da().f[4]++,da().s[15]++,this.updateZoomLevel())),da().s[16]++,this._map.on("zoomOut",()=>(da().f[5]++,da().s[17]++,this.updateZoomLevel()))}onRemove(){da().f[6]++,da().s[18]++,this._container.parentNode.removeChild(this._container),da().s[19]++,this._map=void 0}}function wi(){var e="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",n="a1afd3a6454022c4d7be658acdbd4aecf51f38d3",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:19,column:16}},10:{start:{line:19,column:4},end:{line:19,column:16}},11:{start:{line:20,column:24},end:{line:20,column:51}},12:{start:{line:21,column:16},end:{line:21,column:52}},13:{start:{line:22,column:2},end:{line:24,column:3}},14:{start:{line:23,column:4},end:{line:23,column:104}},15:{start:{line:25,column:2},end:{line:27,column:3}},16:{start:{line:26,column:4},end:{line:26,column:96}},17:{start:{line:28,column:2},end:{line:30,column:3}},18:{start:{line:29,column:4},end:{line:29,column:94}},19:{start:{line:31,column:2},end:{line:31,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:32,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:19,column:16}},type:"if",locations:[{start:{line:18,column:2},end:{line:19,column:16}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:20,column:24},end:{line:20,column:51}},type:"binary-expr",locations:[{start:{line:20,column:24},end:{line:20,column:45}},{start:{line:20,column:49},end:{line:20,column:51}}],line:20},6:{loc:{start:{line:22,column:2},end:{line:24,column:3}},type:"if",locations:[{start:{line:22,column:2},end:{line:24,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:22},7:{loc:{start:{line:22,column:6},end:{line:22,column:62}},type:"binary-expr",locations:[{start:{line:22,column:6},end:{line:22,column:27}},{start:{line:22,column:31},end:{line:22,column:62}}],line:22},8:{loc:{start:{line:25,column:2},end:{line:27,column:3}},type:"if",locations:[{start:{line:25,column:2},end:{line:27,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:25},9:{loc:{start:{line:25,column:6},end:{line:25,column:56}},type:"binary-expr",locations:[{start:{line:25,column:6},end:{line:25,column:29}},{start:{line:25,column:33},end:{line:25,column:56}}],line:25},10:{loc:{start:{line:28,column:2},end:{line:30,column:3}},type:"if",locations:[{start:{line:28,column:2},end:{line:30,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:28}},s:{0:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0},f:{0:0,1:0},b:{0:[0,0],1:[0,0],2:[0,0],3:[0,0],4:[0,0,0],5:[0,0],6:[0,0],7:[0,0],8:[0,0],9:[0,0],10:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/libs/highlight.ts"],names:[],mappings:"AACA,OAAO,cAAc;AAErB,OAAO,YAAY;AAKnB,SAAS,YAAY,GAAqB,OAA2B;AACnE,MAAG,EAAE,SAAS,UAAU;AACtB,MAAE,MAAO,eAAe,IAAI;AAAA,EAC9B,WAAU,EAAE,SAAS,QAAQ;AAC3B,MAAE,MAA
Line truncated
|
||||
`))?($C(uE),Sg=null,lE=void 0,lp.set(P,e)):(lp.set(P,lp.get(P)+1,!0),g=!1))}g&&(clearInterval(o),o=void 0)}return function(g){var C=_z(g);if(C)for(var B=C.families,k=0,P=B.length;k<P;++k){var U=B[k],Z=C.style+`
|
||||
`+C.weight+`
|
||||
`+U;lp.get(Z)===void 0&&(lp.set(Z,e,!0),a(C.style,C.weight,U)||(lp.set(Z,0,!0),o===void 0&&(o=setInterval(h,32))))}}}(),kie=function(){var e;return function(n){var t=uE[n];if(t==null){if(u5){var r=_z(n),i=xz(n,"Žg"),o=isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight);t=o*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else e||(e=document.createElement("div"),e.innerHTML="M",e.style.minHeight="0",e.style.maxHeight="none",e.style.height="auto",e.style.padding="0",e.style.border="none",e.style.position="absolute",e.style.display="block",e.style.left="-99999px"),e.style.font=n,document.body.appendChild(e),t=e.offsetHeight,document.body.removeChild(e);uE[n]=t}return t}}();function xz(e,n){return Sg||(Sg=ec(1,1)),e!=lE&&(Sg.font=e,lE=Sg.font),Sg.measureText(n)}function F3(e,n){return xz(e,n).width}function W9(e,n,t){if(n in t)return t[n];var r=n.split(`
|
||||
`).reduce(function(i,o){return Math.max(i,F3(e,o))},0);return t[n]=r,r}function Iie(e,n){for(var t=[],r=[],i=[],o=0,s=0,a=0,h=0,g=0,C=n.length;g<=C;g+=2){var B=n[g];if(B===`
|
||||
`||g===C){o=Math.max(o,s),i.push(s),s=0,a+=h;continue}var k=n[g+1]||e.font,P=F3(k,B);t.push(P),s+=P;var U=kie(k);r.push(U),h=Math.max(h,U)}return{width:o,height:a,widths:t,heights:r,lineWidths:i}}function Tie(e,n,t,r,i,o,s,a,h,g,C){e.save(),t!==1&&(e.globalAlpha*=t),n&&e.setTransform.apply(e,n),r.contextInstructions?(e.translate(h,g),e.scale(C[0],C[1]),Kie(r,e)):C[0]<0||C[1]<0?(e.translate(h,g),e.scale(C[0],C[1]),e.drawImage(r,i,o,s,a,0,0,s,a)):e.drawImage(r,i,o,s,a,h,g,s*C[0],a*C[1]),e.restore()}function Kie(e,n){for(var t=e.contextInstructions,r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?n[t[r]].apply(n,t[r+1]):n[t[r]]=t[r+1]}var Pie=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Fie=function(e){Pie(n,e);function n(t){var r=e.call(this,t)||this;r.fontChangeListenerKey_=bo(lp,By.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=y5+" ol-layers";var o=t.getViewport();return o.insertBefore(r.element_,o.firstChild||null),r.children_=[],r.renderedVisible_=!0,r}return n.prototype.dispatchRenderEvent=function(t,r){var i=this.getMap();if(i.hasListener(t)){var o=new vz(t,void 0,r);i.dispatchEvent(o)}},n.prototype.disposeInternal=function(){$a(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),e.prototype.disposeInternal.call(this)},n.prototype.renderFrame=function(t){if(!t){this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1);return}this.calculateMatrices2D(t),this.dispatchRenderEvent(Um.PRECOMPOSE,t);var r=t.layerStatesArray.sort(function(P,U){return P.zIndex-U.zIndex}),i=t.viewState;this.children_.length=0;for(var o=[],s=null,a=0,h=r.length;a<h;++a){var g=r[a];t.layerIndex=a;var C=g.layer,B=C.getSourceState();if(!I3(g,i)||B!="ready"&&B!="undefined"){C.unrender();continue}var k=C.render(t,s);k&&(k!==s&&(this.children_.push(k),s=k),"getDeclutter"in C&&o.push(C))}for(var a=o.length-1;a>=0;--a)o[a].renderDeclutter(t);Oie(this.element_,this.children_),this.dispatchRenderEvent(Um.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)},n.prototype.forEachLayerAtPixel=function(t,r,i,o,s){for(var a=r.viewState,h=r.layerStatesArray,g=h.length,C=g-1;C>=0;--C){var B=h[C],k=B.layer;if(k.hasRenderer()&&I3(B,a)&&s(k)){var P=k.getRenderer(),U=P.getDataAtPixel(t,r,i);if(U){var Z=o(k,U);if(Z)return Z}}}},n}(bie);const Die=Fie,VA={ADD:"add",REMOVE:"remove"};var wz=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),N9={LENGTH:"length"},Bx=function(e){wz(n,e);function n(t,r,i){var o=e.call(this,t)||this;return o.element=r,o.index=i,o}return n}(Ip),yd=function(e){wz(n,e);function n(t,r){var i=e.call(this)||this;i.on,i.once,i.un;var o=r||{};if(i.unique_=!!o.unique,i.array_=t||[],i.unique_)for(var s=0,a=i.array_.length;s<a;++s)i.assertUnique_(i.array_[s],s);return i.updateLength_(),i}return n.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},n.prototype.extend=function(t){for(var r=0,i=t.length;r<i;++r)this.push(t[r]);return this},n.prototype.forEach=function(t){for(var r=this.array_,i=0,o=r.length;i<o;++i)t(r[i],i,r)},n.prototype.getArray=function(){return this.array_},n.prototype.item=function(t){return this.array_[t]},n.prototype.getLength=function(){return this.get(N9.LENGTH)},n.prototype.insertAt=function(t,r){this.unique_&&this.assertUnique_(r),this.array_.splice(t,0,r),this.updateLength_(),this.dispatchEvent(new Bx(VA.ADD,r,t))},n.prototype.pop=function(){return this.removeAt(this.getLength()-1)},n.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var r=this.getLength();return this.insertAt(r,t),this.getLength()},n.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)},n.prototype.removeAt=function(t){var r=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Bx(VA.REMOVE,r,t)),r},n.prototype.setAt=function(t,r){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(r,t);var o=this.array_[t];this.array_[
Line truncated
|
||||
`,""),e.push(n,""),e}var Xae=function(){function e(n,t,r,i){this.overlaps=r,this.pixelRatio=t,this.resolution=n,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=_d(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}return e.prototype.createLabel=function(n,t,r,i){var o=n+t+r+i;if(this.labels_[o])return this.labels_[o];var s=i?this.strokeStates[i]:null,a=r?this.fillStates[r]:null,h=this.textStates[t],g=this.pixelRatio,C=[h.scale[0]*g,h.scale[1]*g],B=Array.isArray(n),k=h.justify?T_[h.justify]:nT(Array.isArray(n)?n[0]:n,h.textAlign||yC),P=i&&s.lineWidth?s.lineWidth:0,U=B?n:n.split(`
|
||||
`).reduce(Zae,[]),Z=Iie(h,U),W=Z.width,Q=Z.height,q=Z.widths,oe=Z.heights,re=Z.lineWidths,Ae=W+P,ae=[],se=(Ae+2)*C[0],ye=(Q+P)*C[1],De={width:se<0?Math.floor(se):Math.ceil(se),height:ye<0?Math.floor(ye):Math.ceil(ye),contextInstructions:ae};if((C[0]!=1||C[1]!=1)&&ae.push("scale",C),i){ae.push("strokeStyle",s.strokeStyle),ae.push("lineWidth",P),ae.push("lineCap",s.lineCap),ae.push("lineJoin",s.lineJoin),ae.push("miterLimit",s.miterLimit);var Ne=u5?OffscreenCanvasRenderingContext2D:CanvasRenderingContext2D;Ne.prototype.setLineDash&&(ae.push("setLineDash",[s.lineDash]),ae.push("lineDashOffset",s.lineDashOffset))}r&&ae.push("fillStyle",a.fillStyle),ae.push("textBaseline","middle"),ae.push("textAlign","center");for(var et=.5-k,ft=k*Ae+et*P,Ke=[],rt=[],_e=0,Ut=0,jt=0,nn=0,Qt,He=0,Je=U.length;He<Je;He+=2){var tt=U[He];if(tt===`
|
||||
`){Ut+=_e,_e=0,ft=k*Ae+et*P,++nn;continue}var on=U[He+1]||h.font;on!==Qt&&(i&&Ke.push("font",on),r&&rt.push("font",on),Qt=on),_e=Math.max(_e,oe[jt]);var mt=[tt,ft+et*q[jt]+k*(q[jt]-re[nn]),.5*(P+_e)+Ut];ft+=q[jt],i&&Ke.push("strokeText",mt),r&&rt.push("fillText",mt),++jt}return Array.prototype.push.apply(ae,Ke),Array.prototype.push.apply(ae,rt),this.labels_[o]=De,De},e.prototype.replayTextBackground_=function(n,t,r,i,o,s,a){n.beginPath(),n.moveTo.apply(n,t),n.lineTo.apply(n,r),n.lineTo.apply(n,i),n.lineTo.apply(n,o),n.lineTo.apply(n,t),s&&(this.alignFill_=s[2],this.fill_(n)),a&&(this.setStrokeStyle_(n,a),n.stroke())},e.prototype.calculateImageOrLabelDimensions_=function(n,t,r,i,o,s,a,h,g,C,B,k,P,U,Z,W){a*=k[0],h*=k[1];var Q=r-a,q=i-h,oe=o+g>n?n-g:o,re=s+C>t?t-C:s,Ae=U[3]+oe*k[0]+U[1],ae=U[0]+re*k[1]+U[2],se=Q-U[3],ye=q-U[0];(Z||B!==0)&&(em[0]=se,tm[0]=se,em[1]=ye,tp[1]=ye,tp[0]=se+Ae,np[0]=tp[0],np[1]=ye+ae,tm[1]=np[1]);var De;return B!==0?(De=bf(_d(),r,i,1,1,B,-r,-i),Al(De,em),Al(De,tp),Al(De,np),Al(De,tm),xf(Math.min(em[0],tp[0],np[0],tm[0]),Math.min(em[1],tp[1],np[1],tm[1]),Math.max(em[0],tp[0],np[0],tm[0]),Math.max(em[1],tp[1],np[1],tm[1]),hg)):xf(Math.min(se,se+Ae),Math.min(ye,ye+ae),Math.max(se,se+Ae),Math.max(ye,ye+ae),hg),P&&(Q=Math.round(Q),q=Math.round(q)),{drawImageX:Q,drawImageY:q,drawImageW:oe,drawImageH:re,originX:g,originY:C,declutterBox:{minX:hg[0],minY:hg[1],maxX:hg[2],maxY:hg[3],value:W},canvasTransform:De,scale:k}},e.prototype.replayImageOrLabel_=function(n,t,r,i,o,s,a){var h=!!(s||a),g=i.declutterBox,C=n.canvas,B=a?a[2]*i.scale[0]/2:0,k=g.minX-B<=C.width/t&&g.maxX+B>=0&&g.minY-B<=C.height/t&&g.maxY+B>=0;return k&&(h&&this.replayTextBackground_(n,em,tp,np,tm,s,a),Tie(n,i.canvasTransform,o,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0},e.prototype.fill_=function(n){if(this.alignFill_){var t=Al(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;n.save(),n.translate(t[0]%r,t[1]%r),n.rotate(this.viewRotation_)}n.fill(),this.alignFill_&&n.restore()},e.prototype.setStrokeStyle_=function(n,t){n.strokeStyle=t[1],n.lineWidth=t[2],n.lineCap=t[3],n.lineJoin=t[4],n.miterLimit=t[5],n.setLineDash&&(n.lineDashOffset=t[7],n.setLineDash(t[6]))},e.prototype.drawLabelWithPointPlacement_=function(n,t,r,i){var o=this.textStates[t],s=this.createLabel(n,t,i,r),a=this.strokeStates[r],h=this.pixelRatio,g=nT(Array.isArray(n)?n[0]:n,o.textAlign||yC),C=T_[o.textBaseline||P3],B=a&&a.lineWidth?a.lineWidth:0,k=s.width/h-2*o.scale[0],P=g*k+2*(.5-g)*B,U=C*s.height/h+2*(.5-C)*B;return{label:s,anchorX:P,anchorY:U}},e.prototype.execute_=function(n,t,r,i,o,s,a,h){var g;this.pixelCoordinates_&&b1(r,this.renderedTransform_)?g=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),g=Lm(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),Vte(this.renderedTransform_,r));for(var C=0,B=i.length,k=0,P,U,Z,W,Q,q,oe,re,Ae,ae,se,ye,De=0,Ne=0,et=null,ft=null,Ke=this.coordinateCache_,rt=this.viewRotation_,_e=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,Ut={context:n,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:rt},jt=this.instructions!=i||this.overlaps?0:200,nn,Qt,He,Je;C<B;){var tt=i[C],on=tt[0];switch(on){case ri.BEGIN_GEOMETRY:nn=tt[1],Je=tt[3],nn.getGeometry()?a!==void 0&&!cl(a,Je.getExtent())?C=tt[2]+1:++C:C=tt[2];break;case ri.BEGIN_PATH:De>jt&&(this.fill_(n),De=0),Ne>jt&&(n.stroke(),Ne=0),!De&&!Ne&&(n.beginPath(),W=NaN,Q=NaN),++C;break;case ri.CIRCLE:k=tt[1];var mt=g[k],dt=g[k+1],kt=g[k+2],Pt=g[k+3],Me=kt-mt,he=Pt-dt,be=Math.sqrt(Me*Me+he*he);n.moveTo(mt+be,dt),n.arc(mt,dt,be,0,2*Math.PI,!0),++C;break;case ri.CLOSE_PATH:n.closePath(),++C;break;case ri.CUSTOM:k=tt[1],P=tt[2];var Pe=tt[3],Ze=tt[4],nt=tt.length==6?tt[5]:void 0;Ut.geometry=Pe,Ut.feature=nn,C in Ke||(Ke[C]=[]);var xt=Ke[C];nt?nt(g,k,P,2,xt):(xt[0]=g[k],xt[1]=g[k+1],xt.length=2),Ze(xt,Ut),++C;break;case ri.DRAW_IMAGE:k=tt[1],P=tt[2],re=tt[3],U=tt[4],Z=tt[5];var Ft=tt[6],Dt=tt[7],pt=tt[8],nr=tt[9],pn=tt[10],bn=tt[11],Jn=tt[12],mr=tt[13],xr=tt[14],Nr=tt[15];if(!re&&tt.length>=20){Ae=tt[19],ae=tt[20],se=tt[21],ye=tt[22];var _r=this.drawLabelWithPointPlacement_(Ae,ae,se,ye);re=_r.label,tt[3]=re;var fi=tt[23];U=(_r.anchorX-fi)*this.pixelRatio,tt[4]=U;var we=tt[24];Z=(_r.anchorY-we)*this.pixelRatio,tt[5]=Z,Ft=re.height,tt[6]=Ft,mr=re.width,tt[13]=mr}var H=void 0;tt.length>25&&(H=tt[25]);var Y=void 0,Be=void 0,st=void 0;tt.length>17?(Y=tt[16],Be=tt[17],st=tt[18]):(Y=G0,Be=!1,st=!1),pn&&_e?bn+=rt:!pn&&!_e&&(bn-=rt);for(var St=0;k<P;k+=2)if(!(H&&H[St++]<mr/this.pixelRatio)){var Et=this.calculateImageOrLabelDimensions_(re.width,re.height,g[k],g[k+1],mr,Ft,U,Z,pt,nr,bn,Jn,o,Y,Be||st,nn),Nt=[n,t,re,Et,Dt,Be?et:null,st?ft:null];if(h){if(xr==="none")continue;if(xr==="obstacle"){h.insert(Et.declutterBox);continue}else{var mn=void 0,Kn=void 0;if(Nr){var En=P-k;if(!Nr[En]){Nr[En]=Nt;continue}if(mn=Nr[En],delete Nr[En],Kn=tT(mn),h.collides(Kn))continue}if(h.collides(Et.declutterBox))cont
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Aj(t,this.tileGrid),r):this.setKey(r)},n.prototype.tileUrlFunction=function(t,r,i){},n.prototype.useTile=function(t,r,i){var o=qy(t,r,i);this.tileCache.containsKey(o)&&this.tileCache.get(o)},n}(dle);const cj=gle;var yle=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},e(n,t)};return function(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),vle=function(e){yle(n,e);function n(t){var r=this,i=t.imageSmoothing!==void 0?t.imageSmoothing:!0;return t.interpolate!==void 0&&(i=t.interpolate),r=e.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:_le,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:ij,r.tileCacheForProjection={},r.tileGridForProjection={},r.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,r.renderReprojectionEdges_=!1,r}return n.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},n.prototype.expireCache=function(t,r){var i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?r:{});for(var o in this.tileCacheForProjection){var s=this.tileCacheForProjection[o];s.expireCache(s==i?r:{})}},n.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!T0(this.getProjection(),t)?0:this.getGutter()},n.prototype.getGutter=function(){return 0},n.prototype.getKey=function(){var t=e.prototype.getKey.call(this);return this.getInterpolate()||(t+=":disable-interpolation"),t},n.prototype.getOpaque=function(t){return this.getProjection()&&t&&!T0(this.getProjection(),t)?!1:e.prototype.getOpaque.call(this,t)},n.prototype.getTileGridForProjection=function(t){var r=this.getProjection();if(this.tileGrid&&(!r||T0(r,t)))return this.tileGrid;var i=Ni(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=sj(t)),this.tileGridForProjection[i]},n.prototype.getTileCacheForProjection=function(t){var r=this.getProjection();if(!r||T0(r,t))return this.tileCache;var i=Ni(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new E7(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},n.prototype.createTile_=function(t,r,i,o,s,a){var h=[t,r,i],g=this.getTileCoordForTileUrlFunction(h,s),C=g?this.tileUrlFunction(g,o,s):void 0,B=new this.tileClass(h,C!==void 0?pr.IDLE:pr.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return B.key=a,B.addEventListener(Bi.CHANGE,this.handleTileChange.bind(this)),B},n.prototype.getTile=function(t,r,i,o,s){var a=this.getProjection();if(!a||!s||T0(a,s))return this.getTileInternal(t,r,i,o,a||s);var h=this.getTileCacheForProjection(s),g=[t,r,i],C=void 0,B=nj(g);h.containsKey(B)&&(C=h.get(B));var k=this.getKey();if(C&&C.key==k)return C;var P=this.getTileGridForProjection(a),U=this.getTileGridForProjection(s),Z=this.getTileCoordForTileUrlFunction(g,s),W=new aj(a,P,s,U,g,Z,this.getTilePixelRatio(o),this.getGutter(),(function(Q,q,oe,re){return this.getTileInternal(Q,q,oe,re,a)}).bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return W.key=k,C?(W.interimTile=C,W.refreshInterimChain(),h.replace(B,W)):h.set(B,W),W},n.prototype.getTileInternal=function(t,r,i,o,s){var a=null,h=qy(t,r,i),g=this.getKey();if(!this.tileCache.containsKey(h))a=this.createTile_(t,r,i,o,s,g),this.tileCache.set(h,a);else if(a=this.tileCache.get(h),a.key!=g){var C=a;a=this.createTile_(t,r,i,o,s,g),C.getState()==pr.IDLE?a.interimTile=C.interimTile:a.interimTile=C,a.refreshInterimChain(),this.tileCache.replace(h,a)}return a},n.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(var r in this.tileCacheForProjection)this.tileCacheForProjection[r].clear();this.changed()}},n.prototype.setTileGridForProjection=function(t,r){{var i=Ws(t);if(i){var o=Ni(i);o in this.tileGridForProjection||(this.tileGridForProjection[o]=r)}}},n}(cj);function _le(e,n){e.getImage().src=n}const Cle=vle;var dj=function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototyp
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:ile,expression:ole,expression_name:ale,fog:sle,light:lle,projection:ule,terrain:Ale,paint:cle,paint_fill:dle,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!1,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",android:"7.0.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant",type:"number",private:!0,default:0,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Controls the intensity of shading near ground and concave angles between walls. Default value 0.0 disables ambient occlusion and values around 0.3 provide the most plausible results for buildings.","sdk-support":{"basic functionality":{js:"2.10.0",android:"10.7.0",ios:"10.7.0"}}},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant",type:"number",private:!0,default:3,minimum:0,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Shades area near ground and concave angles between walls where the radius defines only vertical impact. Default value 3.0 corresponds to height of one floor and brings the moLine truncated
|
||||
`," "],Tle=["{","}","|","\\","^","`"].concat(Ile),sE=["'"].concat(Tle),J9=["%","/","?",";","#"].concat(sE),eT=["/","?","#"],Kle=255,tT=/^[+a-z0-9A-Z_-]{0,63}$/,Ple=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Fle={javascript:!0,"javascript:":!0},lE={javascript:!0,"javascript:":!0},iy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},uE=f_;function Dle(e,n,t){if(e&&cp.isObject(e)&&e instanceof xp)return e;var r=new xp;return r.parse(e,n,t),r}xp.prototype.parse=function(e,n,t){if(!cp.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!t&&e.split("#").length===1){var p=kle.exec(a);if(p)return this.path=a,this.href=a,this.pathname=p[1],p[2]?(this.search=p[2],n?this.query=uE.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search="",this.query={}),this}var g=Ole.exec(a);if(g){g=g[0];var b=g.toLowerCase();this.protocol=b,a=a.substr(g.length)}if(t||g||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var B=a.substr(0,2)==="//";B&&!(g&&lE[g])&&(a=a.substr(2),this.slashes=!0)}if(!lE[g]&&(B||g&&!iy[g])){for(var k=-1,P=0;P<eT.length;P++){var R=a.indexOf(eT[P]);R!==-1&&(k===-1||R<k)&&(k=R)}var Z,W;k===-1?W=a.lastIndexOf("@"):W=a.lastIndexOf("@",k),W!==-1&&(Z=a.slice(0,W),a=a.slice(W+1),this.auth=decodeURIComponent(Z)),k=-1;for(var P=0;P<J9.length;P++){var R=a.indexOf(J9[P]);R!==-1&&(k===-1||R<k)&&(k=R)}k===-1&&(k=a.length),this.host=a.slice(0,k),a=a.slice(k),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var q=this.hostname.split(/\./),P=0,oe=q.length;P<oe;P++){var re=q[P];if(re&&!re.match(tT)){for(var ce="",se=0,le=re.length;se<le;se++)re.charCodeAt(se)>127?ce+="x":ce+=re[se];if(!ce.match(tT)){var ye=q.slice(0,P),De=q.slice(P+1),Ne=re.match(Ple);Ne&&(ye.push(Ne[1]),De.unshift(Ne[2])),De.length&&(a="/"+De.join(".")+a),this.hostname=ye.join(".");break}}}this.hostname.length>Kle?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=Ele.toASCII(this.hostname));var et=this.port?":"+this.port:"",ft=this.hostname||"";this.host=ft+et,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!Fle[b])for(var P=0,oe=sE.length;P<oe;P++){var Ke=sE[P];if(a.indexOf(Ke)!==-1){var rt=encodeURIComponent(Ke);rt===Ke&&(rt=escape(Ke)),a=a.split(Ke).join(rt)}}var Ce=a.indexOf("#");Ce!==-1&&(this.hash=a.substr(Ce),a=a.slice(0,Ce));var Rt=a.indexOf("?");if(Rt!==-1?(this.search=a.substr(Rt),this.query=a.substr(Rt+1),n&&(this.query=uE.parse(this.query)),a=a.slice(0,Rt)):n&&(this.search="",this.query={}),a&&(this.pathname=a),iy[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var et=this.pathname||"",jt=this.search||"";this.path=et+jt}return this.href=this.format(),this};xp.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var n=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&cp.isObject(this.query)&&Object.keys(this.query).length&&(o=uE.stringify(this.query));var s=this.search||o&&"?"+o||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||iy[n])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),t=t.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),n+i+t+s+r};xp.prototype.resolve=function(e){return this.resolveObject(Dle(e,!1,!0)).format()};xp.prototype.resolveObject=function(e){if(cp.isString(e)){var n=new xp;n.parse(e,!1,!0),e=n}for(var t=new xp,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var p=s[a];p!=="protocol"&&(t[p]=e[p])}return iy[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!iy[e.protocol]){for(var g=Object.keys(e),b=0;b<g.length;b++){var B=g[b];t[B]=e[B]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!lE[e.protocol]){for(var oe=(e.pathname||"").split("/");oe.length&&!(e.host=oe.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),t.pathname=oe.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var k=t.pathname||"",P=t.search||"";t.path=k+P}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var R=t.pathname&&t.pathname.charAt(0)==="/",Z=e.host||e.pathname&&e.pathnam
Line truncated
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:xue,expression:wue,expression_name:Mue,fog:Sue,light:Eue,projection:Oue,terrain:Bue,paint:kue,paint_fill:Iue,"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
|
||||
`," "],Zue=["{","}","|","\\","^","`"].concat(Hue),mE=["'"].concat(Zue),fT=["%","/","?",";","#"].concat(mE),pT=["/","?","#"],Xue=255,mT=/^[+a-z0-9A-Z_-]{0,63}$/,Jue=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,eAe={javascript:!0,"javascript:":!0},gE={javascript:!0,"javascript:":!0},uy={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},yE=_C;function tAe(e,n,t){if(e&&pp.isObject(e)&&e instanceof Ep)return e;var r=new Ep;return r.parse(e,n,t),r}Ep.prototype.parse=function(e,n,t){if(!pp.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!t&&e.split("#").length===1){var h=Vue.exec(a);if(h)return this.path=a,this.href=a,this.pathname=h[1],h[2]?(this.search=h[2],n?this.query=yE.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search="",this.query={}),this}var g=Yue.exec(a);if(g){g=g[0];var C=g.toLowerCase();this.protocol=C,a=a.substr(g.length)}if(t||g||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var B=a.substr(0,2)==="//";B&&!(g&&gE[g])&&(a=a.substr(2),this.slashes=!0)}if(!gE[g]&&(B||g&&!uy[g])){for(var k=-1,P=0;P<pT.length;P++){var U=a.indexOf(pT[P]);U!==-1&&(k===-1||U<k)&&(k=U)}var Z,W;k===-1?W=a.lastIndexOf("@"):W=a.lastIndexOf("@",k),W!==-1&&(Z=a.slice(0,W),a=a.slice(W+1),this.auth=decodeURIComponent(Z)),k=-1;for(var P=0;P<fT.length;P++){var U=a.indexOf(fT[P]);U!==-1&&(k===-1||U<k)&&(k=U)}k===-1&&(k=a.length),this.host=a.slice(0,k),a=a.slice(k),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var q=this.hostname.split(/\./),P=0,oe=q.length;P<oe;P++){var re=q[P];if(re&&!re.match(mT)){for(var Ae="",ae=0,se=re.length;ae<se;ae++)re.charCodeAt(ae)>127?Ae+="x":Ae+=re[ae];if(!Ae.match(mT)){var ye=q.slice(0,P),De=q.slice(P+1),Ne=re.match(Jue);Ne&&(ye.push(Ne[1]),De.unshift(Ne[2])),De.length&&(a="/"+De.join(".")+a),this.hostname=ye.join(".");break}}}this.hostname.length>Xue?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=$ue.toASCII(this.hostname));var et=this.port?":"+this.port:"",ft=this.hostname||"";this.host=ft+et,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!eAe[C])for(var P=0,oe=mE.length;P<oe;P++){var Ke=mE[P];if(a.indexOf(Ke)!==-1){var rt=encodeURIComponent(Ke);rt===Ke&&(rt=escape(Ke)),a=a.split(Ke).join(rt)}}var _e=a.indexOf("#");_e!==-1&&(this.hash=a.substr(_e),a=a.slice(0,_e));var Ut=a.indexOf("?");if(Ut!==-1?(this.search=a.substr(Ut),this.query=a.substr(Ut+1),n&&(this.query=yE.parse(this.query)),a=a.slice(0,Ut)):n&&(this.search="",this.query={}),a&&(this.pathname=a),uy[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var et=this.pathname||"",jt=this.search||"";this.path=et+jt}return this.href=this.format(),this};Ep.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var n=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&pp.isObject(this.query)&&Object.keys(this.query).length&&(o=yE.stringify(this.query));var s=this.search||o&&"?"+o||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||uy[n])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),t=t.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),n+i+t+s+r};Ep.prototype.resolve=function(e){return this.resolveObject(tAe(e,!1,!0)).format()};Ep.prototype.resolveObject=function(e){if(pp.isString(e)){var n=new Ep;n.parse(e,!1,!0),e=n}for(var t=new Ep,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var h=s[a];h!=="protocol"&&(t[h]=e[h])}return uy[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!uy[e.protocol]){for(var g=Object.keys(e),C=0;C<g.length;C++){var B=g[C];t[B]=e[B]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!gE[e.protocol]){for(var oe=(e.pathname||"").split("/");oe.length&&!(e.host=oe.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),t.pathname=oe.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var k=t.pathname||"",P=t.search||"";t.path=k+P}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var U=t.pathname&&t.pathname.charAt(0)==="/",Z=e.host||e.pathname&&e.pathnam
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=Nz[`filter_${n}`],o=j3(r,i);let s=null;if(o.result==="error")throw new Error(o.value.map(b=>`${b.key}: ${b.message}`).join(", "));s=(b,B,k)=>o.value.evaluate(b,B,{},k);let a=null,p=null;if(r!==t){const b=j3(t,i);if(b.result==="error")throw new Error(b.value.map(B=>`${B.key}: ${B.message}`).join(", "));a=(B,k,P,R,Z)=>b.value.evaluate(B,k,{},P,void 0,void 0,R,Z),p=!_5(b.value.expression)}s=s;const g=bj(r);return{filter:s,dynamicFilter:a||void 0,needGeometry:g,needFeature:!!p}}function sAe(e){if(!ly(e))return e;let n=mE(e);return _j(n),n=Cj(n),n}function Cj(e){if(!Array.isArray(e))return e;const n=AAe(e);return n===!0?n:n.map(t=>Cj(t))}function _j(e){let n=!1;const t=[];if(e[0]==="case"){for(let r=1;r<e.length-1;r+=2)n=n||ly(e[r]),t.push(e[r+1]);t.push(e[e.length-1])}else if(e[0]==="match"){n=n||ly(e[1]);for(let r=2;r<e.length-1;r+=2)t.push(e[r+1]);t.push(e[e.length-1])}else if(e[0]==="step"){n=n||ly(e[1]);for(let r=1;r<e.length-1;r+=2)t.push(e[r+1])}n&&(e.length=0,e.push("any",...t));for(let r=1;r<e.length;r++)_j(e[r])}function ly(e){if(!Array.isArray(e))return!1;if(lAe(e[0]))return!0;for(let n=1;n<e.length;n++){const t=e[n];if(ly(t))return!0}return!1}function lAe(e){return e==="pitch"||e==="distance-from-center"}const uAe=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function AAe(e){if(uAe.has(e[0]))for(let n=1;n<e.length;n++){const t=e[n];if(ly(t))return!0}return e}function cAe(e,n){return e<n?-1:e>n?1:0}function bj(e){if(!Array.isArray(e))return!1;if(e[0]==="within")return!0;for(let n=1;n<e.length;n++)if(bj(e[n]))return!0;return!1}function W3(e){if(!e)return!0;const n=e[0];return e.length<=1?n!=="any":n==="=="?TM(e[1],e[2],"=="):n==="!="?kx(TM(e[1],e[2],"==")):n==="<"||n===">"||n==="<="||n===">="?TM(e[1],e[2],n):n==="any"?dAe(e.slice(1)):n==="all"?["all"].concat(e.slice(1).map(W3)):n==="none"?["all"].concat(e.slice(1).map(W3).map(kx)):n==="in"?dT(e[1],e.slice(2)):n==="!in"?kx(dT(e[1],e.slice(2))):n==="has"?hT(e[1]):n==="!has"?kx(hT(e[1])):n==="within"?e:!0}function TM(e,n,t){switch(e){case"$type":return[`filter-type-${t}`,n];case"$id":return[`filter-id-${t}`,n];default:return[`filter-${t}`,e,n]}}function dAe(e){return["any"].concat(e.map(W3))}function dT(e,n){if(n.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",n]];case"$id":return["filter-id-in",["literal",n]];default:return n.length>200&&!n.some(t=>typeof t!=typeof n[0])?["filter-in-large",e,["literal",n.sort(cAe)]]:["filter-in-small",e,["literal",n]]}}function hT(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function kx(e){return["!",e]}var hAe=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function fAe(e,n){const t={};for(const r in e)r!=="ref"&&(t[r]=e[r]);return hAe.forEach(r=>{r in n&&(t[r]=n[r])}),t}function pAe(e){e=e.slice();const n=Object.create(null);for(let t=0;t<e.length;t++)n[e[t].id]=e[t];for(let t=0;t<e.length;t++)"ref"in e[t]&&(e[t]=fAe(e[t],n[e[t].ref]));return e}function mAe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var gAe={};(function(e){var n=function(){var t=function(W,Q,q,oe){for(q=q||{},oe=W.length;oe--;q[W[oe]]=Q);return q},r=[1,12],i=[1,13],o=[1,9],s=[1,10],a=[1,11],p=[1,14],g=[1,15],b=[14,18,22,24],B=[18,22],k=[22,24],P={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(Q,q,oe,re,ce,se,le){var ye=se.length-1;switch(ce){case 1:this.$=new String(Q.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(Q),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=se[ye-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=se[ye-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[se[ye-2],se[ye]];break;case 16:this.$={},this.$[se[ye][0]]=se[ye][1];break;case 17:this.$=se[ye-2],se[ye-2][se[ye][0]]=se[ye][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[se[ye]];break;case 21:this.$=se[ye-2],se[ye-2].push(se[ye]);break}},table:[{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:s,11:a,12:1,13:2,15:7,16:8,17:p,23:g},{1:[3]},{14:[1,16]},t(b,[2,7]),t(b,[2,8]),t(b,[2,9]),t(b,[2,10]),t(b,[2,11]),t(b,[2,12]),t(b,[2,3]),t(b,[2,4]),t(b,[2,5]),t([14,18,21,22,24],[2,1]),t(b,[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:s,11:a,13:23,15:7,16:8,17:p,23:g,24:[1,21],25:22},{1:[2,6]},t(b,[2,13]),{18:[1,24],22:[1,25]},t(B,[2,16]),{21:[1,26]},t(b,[2,18]),{22:[1,28],24:[1,27]},t(k,[2,20]),t(b,[2,14]),{3:20,4:r,20:29},{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:s,11:a,13:30,15:7,16:8,17:p,23:g},t(b,[2,19]),{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:s,11:a,13:31,15:7,16:8,17:p,23:g},t(B,[2,17]),t(B,[2,15]),t(k,[2,21])],defaultActions:{16:[2,6]},parseError:function(Q,q){if(q.recoverable)this.trace(Q);else throw new Error(Q)},parse:function(Q){var q=this,oe=[0],re=[null],ce=[],se=this.table,le="",ye=0,De=0,Ne=2,et=1,ft=ce.slice.call(arguments,1),Ke=Object.create(this.lexer),rt={yy:{}};for(var Ce in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ce)&&(rt.yy[Ce]=this.yy[Ce]);Ke.setInput(Q,rt.yy),rt.yy.lexer=Ke,rt.yy.parser=this,typeof Ke.yylloc>"u"&&(Ke.yylloc={});var Rt=Ke.yylloc;ce.push(Rt);var jt=Ke.options&&Ke.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function tn(){var he;return he=Ke.lex()||et,typeof he!="number"&&(he=q.symbols_[he]||he),he}for(var Qt,He,Je,tt,rn={},mt,dt,kt,Pt;;){if(He=oe[oe.length-1],this.defaultActions[He]?Je=this.defaultActions[He]:((Qt===null||typeof Qt>"u")&&(Qt=tn()),Je=se[He]&&se[He][Qt]),typeof Je>"u"||!Je.length||!Je[0]){var Me="";Pt=[];for(mt in se[He])this.terminals_[mt]&&mt>Ne&&Pt.push("'"+this.terminals_[mt]+"'");Ke.showPosition?Me="Parse error on line "+(ye+1)+`:
|
||||
`)}const i=gj[`filter_${n}`],o=Y3(r,i);let s=null;if(o.result==="error")throw new Error(o.value.map(C=>`${C.key}: ${C.message}`).join(", "));s=(C,B,k)=>o.value.evaluate(C,B,{},k);let a=null,h=null;if(r!==t){const C=Y3(t,i);if(C.result==="error")throw new Error(C.value.map(B=>`${B.key}: ${B.message}`).join(", "));a=(B,k,P,U,Z)=>C.value.evaluate(B,k,{},P,void 0,void 0,U,Z),h=!O5(C.value.expression)}s=s;const g=Hj(r);return{filter:s,dynamicFilter:a||void 0,needGeometry:g,needFeature:!!h}}function Sce(e){if(!hy(e))return e;let n=ME(e);return Vj(n),n=qj(n),n}function qj(e){if(!Array.isArray(e))return e;const n=Bce(e);return n===!0?n:n.map(t=>qj(t))}function Vj(e){let n=!1;const t=[];if(e[0]==="case"){for(let r=1;r<e.length-1;r+=2)n=n||hy(e[r]),t.push(e[r+1]);t.push(e[e.length-1])}else if(e[0]==="match"){n=n||hy(e[1]);for(let r=2;r<e.length-1;r+=2)t.push(e[r+1]);t.push(e[e.length-1])}else if(e[0]==="step"){n=n||hy(e[1]);for(let r=1;r<e.length-1;r+=2)t.push(e[r+1])}n&&(e.length=0,e.push("any",...t));for(let r=1;r<e.length;r++)Vj(e[r])}function hy(e){if(!Array.isArray(e))return!1;if(Ece(e[0]))return!0;for(let n=1;n<e.length;n++){const t=e[n];if(hy(t))return!0}return!1}function Ece(e){return e==="pitch"||e==="distance-from-center"}const Oce=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function Bce(e){if(Oce.has(e[0]))for(let n=1;n<e.length;n++){const t=e[n];if(hy(t))return!0}return e}function kce(e,n){return e<n?-1:e>n?1:0}function Hj(e){if(!Array.isArray(e))return!1;if(e[0]==="within")return!0;for(let n=1;n<e.length;n++)if(Hj(e[n]))return!0;return!1}function q3(e){if(!e)return!0;const n=e[0];return e.length<=1?n!=="any":n==="=="?zM(e[1],e[2],"=="):n==="!="?Dx(zM(e[1],e[2],"==")):n==="<"||n===">"||n==="<="||n===">="?zM(e[1],e[2],n):n==="any"?Ice(e.slice(1)):n==="all"?["all"].concat(e.slice(1).map(q3)):n==="none"?["all"].concat(e.slice(1).map(q3).map(Dx)):n==="in"?ET(e[1],e.slice(2)):n==="!in"?Dx(ET(e[1],e.slice(2))):n==="has"?OT(e[1]):n==="!has"?Dx(OT(e[1])):n==="within"?e:!0}function zM(e,n,t){switch(e){case"$type":return[`filter-type-${t}`,n];case"$id":return[`filter-id-${t}`,n];default:return[`filter-${t}`,e,n]}}function Ice(e){return["any"].concat(e.map(q3))}function ET(e,n){if(n.length===0)return!1;switch(e){case"$type":return["filter-type-in",["literal",n]];case"$id":return["filter-id-in",["literal",n]];default:return n.length>200&&!n.some(t=>typeof t!=typeof n[0])?["filter-in-large",e,["literal",n.sort(kce)]]:["filter-in-small",e,["literal",n]]}}function OT(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Dx(e){return["!",e]}var Tce=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Kce(e,n){const t={};for(const r in e)r!=="ref"&&(t[r]=e[r]);return Tce.forEach(r=>{r in n&&(t[r]=n[r])}),t}function Pce(e){e=e.slice();const n=Object.create(null);for(let t=0;t<e.length;t++)n[e[t].id]=e[t];for(let t=0;t<e.length;t++)"ref"in e[t]&&(e[t]=Kce(e[t],n[e[t].ref]));return e}function Fce(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Dce={};(function(e){var n=function(){var t=function(W,Q,q,oe){for(q=q||{},oe=W.length;oe--;q[W[oe]]=Q);return q},r=[1,12],i=[1,13],o=[1,9],s=[1,10],a=[1,11],h=[1,14],g=[1,15],C=[14,18,22,24],B=[18,22],k=[22,24],P={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(Q,q,oe,re,Ae,ae,se){var ye=ae.length-1;switch(Ae){case 1:this.$=new String(Q.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b")),this.$.__line__=this._$.first_line;break;case 2:this.$=new Number(Q),this.$.__line__=this._$.first_line;break;case 3:this.$=null;break;case 4:this.$=new Boolean(!0),this.$.__line__=this._$.first_line;break;case 5:this.$=new Boolean(!1),this.$.__line__=this._$.first_line;break;case 6:return this.$=ae[ye-1];case 13:this.$={},Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 14:case 19:this.$=ae[ye-1],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 15:this.$=[ae[ye-2],ae[ye]];break;case 16:this.$={},this.$[ae[ye][0]]=ae[ye][1];break;case 17:this.$=ae[ye-2],ae[ye-2][ae[ye][0]]=ae[ye][1];break;case 18:this.$=[],Object.defineProperty(this.$,"__line__",{value:this._$.first_line,enumerable:!1});break;case 20:this.$=[ae[ye]];break;case 21:this.$=ae[ye-2],ae[ye-2].push(ae[ye]);break}},table:[{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:s,11:a,12:1,13:2,15:7,16:8,17:h,23:g},{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:s,11:a,13:23,15:7,16:8,17:h,23:g,24:[1,21],25:22},{1:[2,6]},t(C,[2,13]),{18:[1,24],22:[1,25]},t(B,[2,16]),{21:[1,26]},t(C,[2,18]),{22:[1,28],24:[1,27]},t(k,[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:s,11:a,13:30,15:7,16:8,17:h,23:g},t(C,[2,19]),{3:5,4:r,5:6,6:i,7:3,8:o,9:4,10:s,11:a,13:31,15:7,16:8,17:h,23:g},t(B,[2,17]),t(B,[2,15]),t(k,[2,21])],defaultActions:{16:[2,6]},parseError:function(Q,q){if(q.recoverable)this.trace(Q);else throw new Error(Q)},parse:function(Q){var q=this,oe=[0],re=[null],Ae=[],ae=this.table,se="",ye=0,De=0,Ne=2,et=1,ft=Ae.slice.call(arguments,1),Ke=Object.create(this.lexer),rt={yy:{}};for(var _e in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_e)&&(rt.yy[_e]=this.yy[_e]);Ke.setInput(Q,rt.yy),rt.yy.lexer=Ke,rt.yy.parser=this,typeof Ke.yylloc>"u"&&(Ke.yylloc={});var Ut=Ke.yylloc;Ae.push(Ut);var jt=Ke.options&&Ke.options.ranges;typeof rt.yy.parseError=="function"?this.parseError=rt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function nn(){var he;return he=Ke.lex()||et,typeof he!="number"&&(he=q.symbols_[he]||he),he}for(var Qt,He,Je,tt,on={},mt,dt,kt,Pt;;){if(He=oe[oe.length-1],this.defaultActions[He]?Je=this.defaultActions[He]:((Qt===null||typeof Qt>"u")&&(Qt=nn()),Je=ae[He]&&ae[He][Qt]),typeof Je>"u"||!Je.length||!Je[0]){var Me="";Pt=[];for(mt in ae[He])this.terminals_[mt]&&mt>Ne&&Pt.push("'"+this.terminals_[mt]+"'");Ke.showPosition?Me="Parse error on line "+(ye+1)+`:
|
||||
`+Ke.showPosition()+`
|
||||
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":Me="Parse error on line "+(ye+1)+": Unexpected "+(Qt==et?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(Me,{text:Ke.match,token:this.terminals_[Qt]||Qt,line:Ke.yylineno,loc:Rt,expected:Pt})}if(Je[0]instanceof Array&&Je.length>1)throw new Error("Parse Error: multiple actions possible at state: "+He+", token: "+Qt);switch(Je[0]){case 1:oe.push(Qt),re.push(Ke.yytext),ce.push(Ke.yylloc),oe.push(Je[1]),Qt=null,De=Ke.yyleng,le=Ke.yytext,ye=Ke.yylineno,Rt=Ke.yylloc;break;case 2:if(dt=this.productions_[Je[1]][1],rn.$=re[re.length-dt],rn._$={first_line:ce[ce.length-(dt||1)].first_line,last_line:ce[ce.length-1].last_line,first_column:ce[ce.length-(dt||1)].first_column,last_column:ce[ce.length-1].last_column},jt&&(rn._$.range=[ce[ce.length-(dt||1)].range[0],ce[ce.length-1].range[1]]),tt=this.performAction.apply(rn,[le,De,ye,rt.yy,Je[1],re,ce].concat(ft)),typeof tt<"u")return tt;dt&&(oe=oe.slice(0,-1*dt*2),re=re.slice(0,-1*dt),ce=ce.slice(0,-1*dt)),oe.push(this.productions_[Je[1]][0]),re.push(rn.$),ce.push(rn._$),kt=se[oe[oe.length-2]][oe[oe.length-1]],oe.push(kt);break;case 3:return!0}}return!0}},R=function(){var W={EOF:1,parseError:function(q,oe){if(this.yy.parser)this.yy.parser.parseError(q,oe);else throw new Error(q)},setInput:function(Q,q){return this.yy=q||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var q=Q.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var q=Q.length,oe=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1&&(this.yylineno-=oe.length-1);var ce=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===re.length?this.yylloc.first_column:0)+re[re.length-oe.length].length-oe[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[ce[0],ce[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||||
Expecting `+Pt.join(", ")+", got '"+(this.terminals_[Qt]||Qt)+"'":Me="Parse error on line "+(ye+1)+": Unexpected "+(Qt==et?"end of input":"'"+(this.terminals_[Qt]||Qt)+"'"),this.parseError(Me,{text:Ke.match,token:this.terminals_[Qt]||Qt,line:Ke.yylineno,loc:Ut,expected:Pt})}if(Je[0]instanceof Array&&Je.length>1)throw new Error("Parse Error: multiple actions possible at state: "+He+", token: "+Qt);switch(Je[0]){case 1:oe.push(Qt),re.push(Ke.yytext),Ae.push(Ke.yylloc),oe.push(Je[1]),Qt=null,De=Ke.yyleng,se=Ke.yytext,ye=Ke.yylineno,Ut=Ke.yylloc;break;case 2:if(dt=this.productions_[Je[1]][1],on.$=re[re.length-dt],on._$={first_line:Ae[Ae.length-(dt||1)].first_line,last_line:Ae[Ae.length-1].last_line,first_column:Ae[Ae.length-(dt||1)].first_column,last_column:Ae[Ae.length-1].last_column},jt&&(on._$.range=[Ae[Ae.length-(dt||1)].range[0],Ae[Ae.length-1].range[1]]),tt=this.performAction.apply(on,[se,De,ye,rt.yy,Je[1],re,Ae].concat(ft)),typeof tt<"u")return tt;dt&&(oe=oe.slice(0,-1*dt*2),re=re.slice(0,-1*dt),Ae=Ae.slice(0,-1*dt)),oe.push(this.productions_[Je[1]][0]),re.push(on.$),Ae.push(on._$),kt=ae[oe[oe.length-2]][oe[oe.length-1]],oe.push(kt);break;case 3:return!0}}return!0}},U=function(){var W={EOF:1,parseError:function(q,oe){if(this.yy.parser)this.yy.parser.parseError(q,oe);else throw new Error(q)},setInput:function(Q,q){return this.yy=q||this.yy||{},this._input=Q,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var Q=this._input[0];this.yytext+=Q,this.yyleng++,this.offset++,this.match+=Q,this.matched+=Q;var q=Q.match(/(?:\r\n?|\n).*/g);return q?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),Q},unput:function(Q){var q=Q.length,oe=Q.split(/(?:\r\n?|\n)/g);this._input=Q+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-q),this.offset-=q;var re=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),oe.length-1&&(this.yylineno-=oe.length-1);var Ae=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:oe?(oe.length===re.length?this.yylloc.first_column:0)+re[re.length-oe.length].length-oe[0].length:this.yylloc.first_column-q},this.options.ranges&&(this.yylloc.range=[Ae[0],Ae[0]+this.yyleng-q]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(Q){this.unput(this.match.slice(Q))},pastInput:function(){var Q=this.matched.substr(0,this.matched.length-this.match.length);return(Q.length>20?"...":"")+Q.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var Q=this.match;return Q.length<20&&(Q+=this._input.substr(0,20-Q.length)),(Q.substr(0,20)+(Q.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var Q=this.pastInput(),q=new Array(Q.length+1).join("-");return Q+this.upcomingInput()+`
|
||||
`+q+"^"},test_match:function(Q,q){var oe,re,ce;if(this.options.backtrack_lexer&&(ce={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(ce.yylloc.range=this.yylloc.range.slice(0))),re=Q[0].match(/(?:\r\n?|\n).*/g),re&&(this.yylineno+=re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:re?re[re.length-1].length-re[re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],oe=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var se in ce)this[se]=ce[se];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,q,oe,re;this._more||(this.yytext="",this.match="");for(var ce=this._currentRules(),se=0;se<ce.length;se++)if(oe=this._input.match(this.rules[ce[se]]),oe&&(!q||oe[0].length>q[0].length)){if(q=oe,re=se,this.options.backtrack_lexer){if(Q=this.test_match(oe,ce[se]),Q!==!1)return Q;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?(Q=this.test_match(q,ce[re]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(q,oe,re,ce){switch(re){case 0:break;case 1:return 6;case 2:return oe.yytext=oe.yytext.substr(1,oe.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return W}();P.lexer=R;function Z(){this.yy={}}return Z.prototype=P,P.Parser=Z,new Z}();typeof mAe<"u"&&(e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)})})(gAe);const xj={StyleExpression:gj,isExpression:yj,isExpressionFilter:Y7,createExpression:j3,createPropertyExpression:vj,normalizePropertyExpression:Hue,ZoomConstantExpression:hE,ZoomDependentExpression:fE,StylePropertyFunction:x5},wj={convertFunction:Jue,createFunction:N7,isFunction:W7};var Mj=typeof Object.assign=="function"?Object.assign:function(e,n){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(o!=null)for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t};function KM(e){return e*Math.PI/180}var Ey=function(){for(var e=[],n=78271.51696402048;e.length<=24;n/=2)e.push(n);return e}();function Sj(e,n){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,n);var t=document.createElement("canvas");return t.width=e,t.height=n,t}function yAe(e,n){for(var t=0,r=n.length;t<r;++t){var i=n[t];if(i<e&&t+1<r){var o=n[t]/n[t+1];return t+Math.log(n[t]/e)/Math.log(o)}}return r-1}var vAe=Array(256).join(" ");function gE(e,n){if(n>=.05){for(var t="",r=e.split(`
|
||||
`),i=vAe.slice(0,Math.round(n/.1)),o=0,s=r.length;o<s;++o)o>0&&(t+=`
|
||||
`),t+=r[o].split("").join(i);return t}return e}var PM;function Ej(){return PM||(PM=Sj(1,1).getContext("2d")),PM}function g0(e,n){return Ej().measureText(e).width+(e.length-1)*n}var yE={};X6&&bo(X6,Bi.CLEAR,function(){yE={}});function vE(e,n,t,r){if(e.indexOf(`
|
||||
`+q+"^"},test_match:function(Q,q){var oe,re,Ae;if(this.options.backtrack_lexer&&(Ae={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&&(Ae.yylloc.range=this.yylloc.range.slice(0))),re=Q[0].match(/(?:\r\n?|\n).*/g),re&&(this.yylineno+=re.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:re?re[re.length-1].length-re[re.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+Q[0].length},this.yytext+=Q[0],this.match+=Q[0],this.matches=Q,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(Q[0].length),this.matched+=Q[0],oe=this.performAction.call(this,this.yy,this,q,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),oe)return oe;if(this._backtrack){for(var ae in Ae)this[ae]=Ae[ae];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var Q,q,oe,re;this._more||(this.yytext="",this.match="");for(var Ae=this._currentRules(),ae=0;ae<Ae.length;ae++)if(oe=this._input.match(this.rules[Ae[ae]]),oe&&(!q||oe[0].length>q[0].length)){if(q=oe,re=ae,this.options.backtrack_lexer){if(Q=this.test_match(oe,Ae[ae]),Q!==!1)return Q;if(this._backtrack){q=!1;continue}else return!1}else if(!this.options.flex)break}return q?(Q=this.test_match(q,Ae[re]),Q!==!1?Q:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var q=this.next();return q||this.lex()},begin:function(q){this.conditionStack.push(q)},popState:function(){var q=this.conditionStack.length-1;return q>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(q){return q=this.conditionStack.length-1-Math.abs(q||0),q>=0?this.conditionStack[q]:"INITIAL"},pushState:function(q){this.begin(q)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(q,oe,re,Ae){switch(re){case 0:break;case 1:return 6;case 2:return oe.yytext=oe.yytext.substr(1,oe.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},rules:[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return W}();P.lexer=U;function Z(){this.yy={}}return Z.prototype=P,P.Parser=Z,new Z}();typeof Fce<"u"&&(e.parser=n,e.Parser=n.Parser,e.parse=function(){return n.parse.apply(n,arguments)})})(Dce);const Zj={StyleExpression:Qj,isExpression:$j,isExpressionFilter:r8,createExpression:Y3,createPropertyExpression:Yj,normalizePropertyExpression:pce,ZoomConstantExpression:bE,ZoomDependentExpression:xE,StylePropertyFunction:k5},Xj={convertFunction:yce,createFunction:J7,isFunction:X7};var Jj=typeof Object.assign=="function"?Object.assign:function(e,n){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1,i=arguments.length;r<i;++r){var o=arguments[r];if(o!=null)for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t};function jM(e){return e*Math.PI/180}var Ty=function(){for(var e=[],n=78271.51696402048;e.length<=24;n/=2)e.push(n);return e}();function eW(e,n){if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof OffscreenCanvas<"u")return new OffscreenCanvas(e,n);var t=document.createElement("canvas");return t.width=e,t.height=n,t}function Lce(e,n){for(var t=0,r=n.length;t<r;++t){var i=n[t];if(i<e&&t+1<r){var o=n[t]/n[t+1];return t+Math.log(n[t]/e)/Math.log(o)}}return r-1}var Uce=Array(256).join(" ");function SE(e,n){if(n>=.05){for(var t="",r=e.split(`
|
||||
`),i=Uce.slice(0,Math.round(n/.1)),o=0,s=r.length;o<s;++o)o>0&&(t+=`
|
||||
`),t+=r[o].split("").join(i);return t}return e}var WM;function tW(){return WM||(WM=eW(1,1).getContext("2d")),WM}function C0(e,n){return tW().measureText(e).width+(e.length-1)*n}var EE={};sE&&bo(sE,Bi.CLEAR,function(){EE={}});function OE(e,n,t,r){if(e.indexOf(`
|
||||
`)!==-1){for(var i=e.split(`
|
||||
`),o=[],s=0,a=i.length;s<a;++s)o.push(vE(i[s],n,t,r));return o.join(`
|
||||
`)}var p=t+","+n+","+e+","+r,g=yE[p];if(!g){var b=e.split(" ");if(b.length>1){var B=Ej();B.font=n;for(var k=B.measureText("M").width,P=k*t,R="",o=[],s=0,a=b.length;s<a;++s){var Z=b[s],W=R+(R?" ":"")+Z;g0(W,r)<=P?R=W:(R&&o.push(R),R=Z)}R&&o.push(R);for(var s=0,a=o.length;s<a&&a>1;++s){var Q=o[s];if(g0(Q,r)<P*.35){var q=s>0?g0(o[s-1],r):1/0,oe=s<a-1?g0(o[s+1],r):1/0;o.splice(s,1),a-=1,q<oe?(o[s-1]+=" "+Q,s-=1):o[s]=Q+" "+o[s]}}for(var s=0,a=o.length-1;s<a;++s){var re=o[s],ce=o[s+1];if(g0(re,r)>P*.7&&g0(ce,r)<P*.6){var se=re.split(" "),le=se.pop();g0(le,r)<P*.2&&(o[s]=se.join(" "),o[s+1]=le+" "+ce),a-=1}}g=o.join(`
|
||||
`)}else g=e;g=gE(g,r),yE[p]=g}return g}var CAe=wj.isFunction,_Ae=wj.convertFunction,bAe=xj.isExpression,xAe=xj.createPropertyExpression,wAe={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},MAe={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]},SAe=function(e,n){var t=xAe(e,n);if(t.result==="error")throw new Error(t.value.map(function(r){return"".concat(r.key,": ").concat(r.message)}).join(", "));return t.value},CE={},N3={zoom:0},Ix,FM;function xi(e,n,t,r,i,o){var s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var a=o[s];if(!a[t]){var p=(e[n]||CE)[t],g=Nz["".concat(n,"_").concat(e.type)][t];p===void 0&&(p=g.default);var b=bAe(p);if(!b&&CAe(p)&&(p=_Ae(p,g),b=!0),b){var B=SAe(p,g);a[t]=B.evaluate.bind(B)}else g.type=="color"&&(p=Nl.parse(p)),a[t]=function(){return p}}return N3.zoom=r,a[t](N3,i)}function EAe(e,n,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=aAe(n).filter),N3.zoom=r,i[e](N3,t)}function rm(e,n){if(e){if(e.a===0||n===0)return;var t=e.a;return n=n===void 0?1:n,t===0?"transparent":"rgba("+Math.round(e.r*255/t)+","+Math.round(e.g*255/t)+","+Math.round(e.b*255/t)+","+t*n+")"}return e}var OAe=/^([^]*)\{(.*)\}([^]*)$/;function DM(e,n){var t;do if(t=e.match(OAe),t){var r=n[t[2]]||"";e=t[1]+r+t[3]}while(t);return e}function BAe(e,n,t,r,i,o,s){if(r===void 0&&(r=Ey),typeof n=="string"&&(n=JSON.parse(n)),n.version!=8)throw new Error("glStyle version 8 required.");var a,p;if(o){if(typeof Image<"u"){var g=new Image;g.crossOrigin="anonymous",g.onload=function(){a=g,p=[g.width,g.height],e.changed(),g.onload=null},g.src=o}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){var b=self;b.postMessage({action:"loadImage",src:o}),b.addEventListener("message",function(Rt){Rt.data.action==="imageLoaded"&&Rt.data.src===o&&(a=Rt.data.image,p=[a.width,a.height])})}}for(var B=pAe(n.layers),k={},P=[],R={},Z={},W={},Q={},q,oe=0,re=B.length;oe<re;++oe){var ce=B[oe],se=ce.id;if(typeof t=="string"&&ce.source==t||t.indexOf(se)!==-1){var le=ce["source-layer"];if(!q){q=ce.source;var ye=n.sources[q];if(!ye)throw new Error('Source "'.concat(q,'" is not defined'));var De=ye.type;if(De!=="vector"&&De!=="geojson")throw new Error('Source "'.concat(q,'" is not of type "vector" or "geojson", but "').concat(De,'"'))}var Ne=k[le];Ne||(Ne=[],k[le]=Ne),Ne.push({layer:ce,index:oe}),P.push(se)}}var et=new rC,ft=new Rg,Ke=[],rt=function(Ce,Rt){var jt=Ce.getProperties(),tn=k[jt.layer];if(tn){var Qt=r.indexOf(Rt);Qt==-1&&(Qt=yAe(Rt,r));for(var He=wAe[Ce.getGeometry().getType()],Je={properties:jt,type:He},tt=-1,rn=function(kt,Pt){var Me=tn[kt],he=Me.layer,be=he.id,Pe=he.layout||CE,Ze=he.paint||CE;if(Pe.visibility==="none"||"minzoom"in he&&Qt<he.minzoom||"maxzoom"in he&&Qt>=he.maxzoom)return"continue";var nt=he.filter;if(!nt||EAe(be,nt,Je,Qt,Q)){var xt=void 0,Ft=void 0,Dt=void 0,pt=void 0,nr=void 0,pn=void 0,bn=Me.index;if(He==3&&(he.type=="fill"||he.type=="fill-extrusion"))if(Ft=xi(he,"paint",he.type+"-opacity",Qt,Je,W),he.type+"-pattern"in Ze){var Jn=xi(he,"paint",he.type+"-pattern",Qt,Je,W);if(Jn){var mr=typeof Jn=="string"?DM(Jn,jt):Jn.toString();if(a&&i&&i[mr]){++tt,pn=Ke[tt],(!pn||!pn.getFill()||pn.getStroke()||pn.getText())&&(pn=new w0({fill:new Rg}),Ke[tt]=pn),Dt=pn.getFill(),pn.setZIndex(bn);var xr=mr+"."+Ft,Nr=Z[xr];if(!Nr){var Cr=i[mr],fi=Sj(Cr.width,Cr.height),we=fi.getContext("2d");we.globalAlpha=Ft,we.drawImage(a,Cr.x,Cr.y,Cr.width,Cr.height,0,0,Cr.width,Cr.height),Nr=we.createPattern(fi,"repeat"),Z[xr]=Nr}Dt.setColor(Nr)}}}else xt=rm(xi(he,"paint",he.type+"-color",Qt,Je,W),Ft),he.type+"-outline-color"in Ze&&(nr=rm(xi(he,"paint",he.type+"-outline-color",Qt,Je,W),Ft)),nr||(nr=xt),(xt||nr)&&(++tt,pn=Ke[tt],(!pn||xt&&!pn.getFill()||!xt&&pn.getFill()||nr&&!pn.getStroke()||!nr&&pn.getStroke()||pn.getText())&&(pn=new w0({fill:xt?new Rg:void 0,stroke:nr?new rC:void 0}),Ke[tt]=pn),xt&&(Dt=pn.getFill(),Dt.setColor(xt)),nr&&(pt=pn.getStroke(),pt.setColor(nr),pt.setWidth(.5)),pn.setZIndex(bn));if(He!=1&&he.type=="line"){xt=!("line-pattern"in Ze)&&"line-color"in Ze?rm(xi(he,"paint","line-color",Qt,Je,W),xi(he,"paint","line-opacity",Qt,Je,W)):void 0;var H=xi(he,"paint","line-width",Qt,Je,W);xt&&H>0&&(++tt,pn=Ke[tt],(!pn||!pn.getStroke()||pn.getFill()||pn.getText())&&(pn=new w0({stroke:new rC}),Ke[tt]=pn),pt=pn.getStroke(),pt.setLineCap(xi(he,"layout","line-cap",Qt,Je,W)),pt.setLineJoin(xi(he,"layout","line-join",Qt,Je,W)),pt.setMiterLimit(xi(he,"layout","line-miter-limit",Qt,Je,W)),pt.setColor(xt),pt.setWidth(H),pt.setLineDash(Ze["line-dasharray"]?xi(he,"paint","line-dasharray",Qt,Je,W).map(function(Ii){return Ii*H}):null),pn.setZIndex(bn))}var Y=!1,Be=null,st=0,St=void 0,Et=void 0,Nt=void 0;if((He==1||He==2)&&"icon-image"in Pe){var mn=xi(he,"layout","icon-image",Qt,Je,W);if(mn){St=typeof mn=="string"?DM(mn,jt):mn.toString
Line truncated
|
||||
`),o=[],s=0,a=i.length;s<a;++s)o.push(OE(i[s],n,t,r));return o.join(`
|
||||
`)}var h=t+","+n+","+e+","+r,g=EE[h];if(!g){var C=e.split(" ");if(C.length>1){var B=tW();B.font=n;for(var k=B.measureText("M").width,P=k*t,U="",o=[],s=0,a=C.length;s<a;++s){var Z=C[s],W=U+(U?" ":"")+Z;C0(W,r)<=P?U=W:(U&&o.push(U),U=Z)}U&&o.push(U);for(var s=0,a=o.length;s<a&&a>1;++s){var Q=o[s];if(C0(Q,r)<P*.35){var q=s>0?C0(o[s-1],r):1/0,oe=s<a-1?C0(o[s+1],r):1/0;o.splice(s,1),a-=1,q<oe?(o[s-1]+=" "+Q,s-=1):o[s]=Q+" "+o[s]}}for(var s=0,a=o.length-1;s<a;++s){var re=o[s],Ae=o[s+1];if(C0(re,r)>P*.7&&C0(Ae,r)<P*.6){var ae=re.split(" "),se=ae.pop();C0(se,r)<P*.2&&(o[s]=ae.join(" "),o[s+1]=se+" "+Ae),a-=1}}g=o.join(`
|
||||
`)}else g=e;g=SE(g,r),EE[h]=g}return g}var Rce=Xj.isFunction,zce=Xj.convertFunction,jce=Zj.isExpression,Wce=Zj.createPropertyExpression,Nce={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Gce={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]},Qce=function(e,n){var t=Wce(e,n);if(t.result==="error")throw new Error(t.value.map(function(r){return"".concat(r.key,": ").concat(r.message)}).join(", "));return t.value},BE={},V3={zoom:0},Lx,NM;function xi(e,n,t,r,i,o){var s=e.id;o||(o={},console.warn("No functionCache provided to getValue()")),o[s]||(o[s]={});var a=o[s];if(!a[t]){var h=(e[n]||BE)[t],g=gj["".concat(n,"_").concat(e.type)][t];h===void 0&&(h=g.default);var C=jce(h);if(!C&&Rce(h)&&(h=zce(h,g),C=!0),C){var B=Qce(h,g);a[t]=B.evaluate.bind(B)}else g.type=="color"&&(h=Gl.parse(h)),a[t]=function(){return h}}return V3.zoom=r,a[t](V3,i)}function $ce(e,n,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),e in i||(i[e]=Mce(n).filter),V3.zoom=r,i[e](V3,t)}function sm(e,n){if(e){if(e.a===0||n===0)return;var t=e.a;return n=n===void 0?1:n,t===0?"transparent":"rgba("+Math.round(e.r*255/t)+","+Math.round(e.g*255/t)+","+Math.round(e.b*255/t)+","+t*n+")"}return e}var Yce=/^([^]*)\{(.*)\}([^]*)$/;function GM(e,n){var t;do if(t=e.match(Yce),t){var r=n[t[2]]||"";e=t[1]+r+t[3]}while(t);return e}function qce(e,n,t,r,i,o,s){if(r===void 0&&(r=Ty),typeof n=="string"&&(n=JSON.parse(n)),n.version!=8)throw new Error("glStyle version 8 required.");var a,h;if(o){if(typeof Image<"u"){var g=new Image;g.crossOrigin="anonymous",g.onload=function(){a=g,h=[g.width,g.height],e.changed(),g.onload=null},g.src=o}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){var C=self;C.postMessage({action:"loadImage",src:o}),C.addEventListener("message",function(Ut){Ut.data.action==="imageLoaded"&&Ut.data.src===o&&(a=Ut.data.image,h=[a.width,a.height])})}}for(var B=Pce(n.layers),k={},P=[],U={},Z={},W={},Q={},q,oe=0,re=B.length;oe<re;++oe){var Ae=B[oe],ae=Ae.id;if(typeof t=="string"&&Ae.source==t||t.indexOf(ae)!==-1){var se=Ae["source-layer"];if(!q){q=Ae.source;var ye=n.sources[q];if(!ye)throw new Error('Source "'.concat(q,'" is not defined'));var De=ye.type;if(De!=="vector"&&De!=="geojson")throw new Error('Source "'.concat(q,'" is not of type "vector" or "geojson", but "').concat(De,'"'))}var Ne=k[se];Ne||(Ne=[],k[se]=Ne),Ne.push({layer:Ae,index:oe}),P.push(ae)}}var et=new u_,ft=new Wg,Ke=[],rt=function(_e,Ut){var jt=_e.getProperties(),nn=k[jt.layer];if(nn){var Qt=r.indexOf(Ut);Qt==-1&&(Qt=Lce(Ut,r));for(var He=Nce[_e.getGeometry().getType()],Je={properties:jt,type:He},tt=-1,on=function(kt,Pt){var Me=nn[kt],he=Me.layer,be=he.id,Pe=he.layout||BE,Ze=he.paint||BE;if(Pe.visibility==="none"||"minzoom"in he&&Qt<he.minzoom||"maxzoom"in he&&Qt>=he.maxzoom)return"continue";var nt=he.filter;if(!nt||$ce(be,nt,Je,Qt,Q)){var xt=void 0,Ft=void 0,Dt=void 0,pt=void 0,nr=void 0,pn=void 0,bn=Me.index;if(He==3&&(he.type=="fill"||he.type=="fill-extrusion"))if(Ft=xi(he,"paint",he.type+"-opacity",Qt,Je,W),he.type+"-pattern"in Ze){var Jn=xi(he,"paint",he.type+"-pattern",Qt,Je,W);if(Jn){var mr=typeof Jn=="string"?GM(Jn,jt):Jn.toString();if(a&&i&&i[mr]){++tt,pn=Ke[tt],(!pn||!pn.getFill()||pn.getStroke()||pn.getText())&&(pn=new O0({fill:new Wg}),Ke[tt]=pn),Dt=pn.getFill(),pn.setZIndex(bn);var xr=mr+"."+Ft,Nr=Z[xr];if(!Nr){var _r=i[mr],fi=eW(_r.width,_r.height),we=fi.getContext("2d");we.globalAlpha=Ft,we.drawImage(a,_r.x,_r.y,_r.width,_r.height,0,0,_r.width,_r.height),Nr=we.createPattern(fi,"repeat"),Z[xr]=Nr}Dt.setColor(Nr)}}}else xt=sm(xi(he,"paint",he.type+"-color",Qt,Je,W),Ft),he.type+"-outline-color"in Ze&&(nr=sm(xi(he,"paint",he.type+"-outline-color",Qt,Je,W),Ft)),nr||(nr=xt),(xt||nr)&&(++tt,pn=Ke[tt],(!pn||xt&&!pn.getFill()||!xt&&pn.getFill()||nr&&!pn.getStroke()||!nr&&pn.getStroke()||pn.getText())&&(pn=new O0({fill:xt?new Wg:void 0,stroke:nr?new u_:void 0}),Ke[tt]=pn),xt&&(Dt=pn.getFill(),Dt.setColor(xt)),nr&&(pt=pn.getStroke(),pt.setColor(nr),pt.setWidth(.5)),pn.setZIndex(bn));if(He!=1&&he.type=="line"){xt=!("line-pattern"in Ze)&&"line-color"in Ze?sm(xi(he,"paint","line-color",Qt,Je,W),xi(he,"paint","line-opacity",Qt,Je,W)):void 0;var H=xi(he,"paint","line-width",Qt,Je,W);xt&&H>0&&(++tt,pn=Ke[tt],(!pn||!pn.getStroke()||pn.getFill()||pn.getText())&&(pn=new O0({stroke:new u_}),Ke[tt]=pn),pt=pn.getStroke(),pt.setLineCap(xi(he,"layout","line-cap",Qt,Je,W)),pt.setLineJoin(xi(he,"layout","line-join",Qt,Je,W)),pt.setMiterLimit(xi(he,"layout","line-miter-limit",Qt,Je,W)),pt.setColor(xt),pt.setWidth(H),pt.setLineDash(Ze["line-dasharray"]?xi(he,"paint","line-dasharray",Qt,Je,W).map(function(Ii){return Ii*H}):null),pn.setZIndex(bn))}var Y=!1,Be=null,st=0,St=void 0,Et=void 0,Nt=void 0;if((He==1||He==2)&&"icon-image"in Pe){var mn=xi(he,"layout","icon-image",Qt,Je,W);if(mn){St=typeof mn=="string"?GM(mn,jt):mn.toString
Line truncated
|
||||
`)return Ii.push(`
|
||||
`,""),Ii;if(He==2){Ii.push(gE(mi,xo),Br);return}mi=vE(mi,Br,pi,xo).split(`
|
||||
`);for(var rl=0,Ya=mi.length;rl<Ya;++rl)rl>0&&Ii.push(`
|
||||
`,""),Ii.push(mi[rl],Br);return Ii},[]):rr=DM(us,jt).trim(),Ft=xi(he,"paint","text-opacity",Qt,Je,W)}if(rr&&Ft&&!Nt){Y||(++tt,pn=Ke[tt],(!pn||!pn.getText()||pn.getFill()||pn.getStroke())&&(pn=new w0,Ke[tt]=pn),pn.setImage(void 0),pn.setGeometry(void 0)),pn.getText()||pn.setText(Be||new Voe({padding:[2,2,2,2]})),Be=pn.getText();var ka=Pe["text-transform"];ka=="uppercase"?rr=Array.isArray(rr)?rr.map(function(ii,ya){return ya%2?ii:ii.toUpperCase()}):rr.toUpperCase():ka=="lowercase"&&(rr=Array.isArray(rr)?rr.map(function(ii,ya){return ya%2?ii:ii.toLowerCase()}):rr.toLowerCase());var Ci=Array.isArray(rr)?rr:He==2?gE(rr,xo):vE(rr,li,pi,xo);Be.setText(Ci),Be.setFont(li),Be.setRotation(KM(xi(he,"layout","text-rotate",Qt,Je,W)));var Ms=xi(he,"layout","text-anchor",Qt,Je,W),Te=Y||He==1?"point":xi(he,"layout","symbol-placement",Qt,Je,W);Be.setPlacement(Te),Be.setOverflow(Te==="point");var Si=xi(he,"paint","text-halo-width",Qt,Je,W),Qn=xi(he,"layout","text-offset",Qt,Je,W),so=xi(he,"paint","text-translate",Qt,Je,W),Go=0,Ji=0;if(Te=="point"){var ge="center";Ms.indexOf("left")!==-1?(ge="left",Ji=Si):Ms.indexOf("right")!==-1&&(ge="right",Ji=-Si),Be.setTextAlign(ge);var $e=xi(he,"layout","text-rotation-alignment",Qt,Je,W);Be.setRotateWithView($e=="map")}else Be.setMaxAngle(KM(xi(he,"layout","text-max-angle",Qt,Je,W))*rr.length/Ci.length),Be.setTextAlign(),Be.setRotateWithView(!1);var Xt="middle";Ms.indexOf("bottom")==0?(Xt="bottom",Go=-Si-.5*(ki-1)*Xi):Ms.indexOf("top")==0&&(Xt="top",Go=Si+.5*(ki-1)*Xi),Be.setTextBaseline(Xt),Be.setOffsetX(Qn[0]*Xi+Ji+so[0]),Be.setOffsetY(Qn[1]*Xi+Go+so[1]),ft.setColor(rm(xi(he,"paint","text-color",Qt,Je,W),Ft)),Be.setFill(ft);var sn=rm(xi(he,"paint","text-halo-color",Qt,Je,W),Ft);if(sn){et.setColor(sn),Si*=2;var Kt=.5*Xi;et.setWidth(Si<=Kt?Si:Kt),Be.setStroke(et)}else Be.setStroke(void 0);var Mn=xi(he,"layout","text-padding",Qt,Je,W),cr=Be.getPadding();Mn!==cr[0]&&(cr[0]=Mn,cr[1]=Mn,cr[2]=Mn,cr[3]=Mn),pn.setZIndex(bn)}}},mt=0,dt=tn.length;mt<dt;++mt)rn(mt);if(tt>-1)return Ke.length=tt+1,Ke}};return e.setStyle(rt),e.set("mapbox-source",q),e.set("mapbox-layers",P),rt}var Oj={exports:{}};(function(){var e;Oj.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(n){return"https://fonts.google.com/specimen/"+n.replace(/( )/g,"+")},normalizeName:function(n){return n}},e=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Enga
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kj(e,n){return qAe(e)||VAe(e,n)||Tj(e,n)||HAe()}function Oy(e){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Oy(e)}function ZAe(e,n){if(Oy(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(Oy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function Pj(e){var n=ZAe(e,"string");return Oy(n)=="symbol"?n:String(n)}function fa(e,n,t){return n=Pj(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function RM(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){fa(e,i,t[i])})}return e}function H_(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function _T(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Pj(r.key),r)}}function Z_(e,n,t){return n&&_T(e.prototype,n),t&&_T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q7(e,n){if(n&&(Oy(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lo(e)}function v_(e){return v_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},v_(e)}function xE(e,n){return xE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xE(e,n)}function V7(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&xE(e,n)}var XAe=function(e,n,t,r,i,o,s,a){if(!e){var p;if(n===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[t,r,i,o,s,a],b=0;p=new Error(n.replace(/%s/g,function(){return g[b++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}},JAe=XAe;const c1=ma(JAe);function ece(e){if(Array.isArray(e))return bE(e)}function tce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nce(){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 rce(e){return ece(e)||tce(e)||Tj(e)||nce()}var ice=function(){function e(){H_(this,e),fa(this,"refs",{})}return Z_(e,[{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(oce)}}]),e}();function oce(e,n){var t=e.node.sortableInfo.index,r=n.node.sortableInfo.index;return t-r}function Fj(e,n){return Object.keys(e).reduce(function(t,r){return n.indexOf(r)===-1&&(t[r]=e[r]),t},{})}var cg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Dj=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],n=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(n){case"ms":return"ms";default:return n&&n.length?n[0].toUpperCase()+n.substr(1):""}}();function Kx(e,n){Object.keys(n).forEach(function(t){e.style[t]=n[t]})}function Px(e,n){e.style["".concat(Dj,"Transform")]=n==null?"":"translate3d(".concat(n.x,"px,").concat(n.y,"px,0)")}function LM(e,n){e.style["".concat(Dj,"TransitionDuration")]=n==null?"":"".concat(n,"ms")}function aC(e,n){for(;e;){if(n(e))return e;e=e.parentNode}return null}function bT(e,n,t){return Math.max(e,Math.min(t,n))}function Wg(e){return e.substr(-2)==="px"?parseFloat(e):0}function ace(e){var n=window.getComputedStyle(e);return{bottom:Wg(n.marginBottom),left:Wg(n.marginLeft),right:Wg(n.marginRight),top:Wg(n.marginTop)}}function H7(e,n){var t=n.displayName||n.name;return t?"".concat(e,"(").concat(t,")"):e}function zM(e,n){var t=e.getBoundingClientRect();return{top:t.top+n.top,left:t.left+n.left}}function jv(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function sce(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function y2(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var r={left:t.left+e.offsetLeft,top:t.top+e.offsetTop};return e.parentNode===n?r:y2(e.parentNode,n,r)}}function lce(e,n,t){return e<t&&e>n?e-1:e>t&&e<n?e+1:e}function xT(e){var n=e.lockOffset,t=e.width,r=e.height,i=n,o=n,s="px";if(typeof n=="string"){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(n);c1(a!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',n),i=parseFloat(n),o=parseFloat(n),s=a[1]}return c1(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",n),s==="%"&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function uce(e){var n=e.height,t=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];c1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=Kj(i,2),s=o[0],a=o[1];return[xT({height:n,lockOffset:s,width:t}),xT({height:n,lockOffset:a,width:t})]}function Ace(e){var n=window.getComputedStyle(e),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(n[i])})}function Uj(e){return e instanceof HTMLElement?Ace(e)?e:Uj(e.parentNode):null}function cce(e){var n=window.getComputedStyle(e);return n.display==="grid"?{x:Wg(n.gridColumnGap),y:Wg(n.gridRowGap)}:{x:0,y:0}}var y0={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},k0={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function dce(e){var n="input, textarea, select, canvas, [contenteditable]",t=e.querySelectorAll(n),r=e.cloneNode(!0),i=rce(r.querySelectorAll(n));return i.forEach(function(o,s){if(o.type!=="file"&&(o.value=t[s].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===k0.Canvas&&t[s].width>0&&t[s].height>0){var a=o.getContext("2d");a.drawImage(t[s],0,0)}}),r}function hce(e){var n,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=n=function(i){V7(o,i);function o(){var s,a;H_(this,o);for(var p=arguments.length,g=new Array(p),b=0;b<p;b++)g[b]=arguments[b];return a=q7(this,(s=v_(o)).call.apply(s,[this].concat(g))),fa(lo(lo(a)),"wrappedInstance",Sr.createRef()),a}return Z_(o,[{key:"componentDidMount",value:function(){var a=Nm.findDOMNode(this);a.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return c1(r.with
Line truncated
|
||||
`,""),Ii;if(He==2){Ii.push(SE(mi,xo),Br);return}mi=OE(mi,Br,pi,xo).split(`
|
||||
`);for(var il=0,qa=mi.length;il<qa;++il)il>0&&Ii.push(`
|
||||
`,""),Ii.push(mi[il],Br);return Ii},[]):rr=GM(As,jt).trim(),Ft=xi(he,"paint","text-opacity",Qt,Je,W)}if(rr&&Ft&&!Nt){Y||(++tt,pn=Ke[tt],(!pn||!pn.getText()||pn.getFill()||pn.getStroke())&&(pn=new O0,Ke[tt]=pn),pn.setImage(void 0),pn.setGeometry(void 0)),pn.getText()||pn.setText(Be||new fse({padding:[2,2,2,2]})),Be=pn.getText();var Ia=Pe["text-transform"];Ia=="uppercase"?rr=Array.isArray(rr)?rr.map(function(ii,ya){return ya%2?ii:ii.toUpperCase()}):rr.toUpperCase():Ia=="lowercase"&&(rr=Array.isArray(rr)?rr.map(function(ii,ya){return ya%2?ii:ii.toLowerCase()}):rr.toLowerCase());var _i=Array.isArray(rr)?rr:He==2?SE(rr,xo):OE(rr,li,pi,xo);Be.setText(_i),Be.setFont(li),Be.setRotation(jM(xi(he,"layout","text-rotate",Qt,Je,W)));var Ss=xi(he,"layout","text-anchor",Qt,Je,W),Te=Y||He==1?"point":xi(he,"layout","symbol-placement",Qt,Je,W);Be.setPlacement(Te),Be.setOverflow(Te==="point");var Si=xi(he,"paint","text-halo-width",Qt,Je,W),Qn=xi(he,"layout","text-offset",Qt,Je,W),so=xi(he,"paint","text-translate",Qt,Je,W),Go=0,Ji=0;if(Te=="point"){var ge="center";Ss.indexOf("left")!==-1?(ge="left",Ji=Si):Ss.indexOf("right")!==-1&&(ge="right",Ji=-Si),Be.setTextAlign(ge);var $e=xi(he,"layout","text-rotation-alignment",Qt,Je,W);Be.setRotateWithView($e=="map")}else Be.setMaxAngle(jM(xi(he,"layout","text-max-angle",Qt,Je,W))*rr.length/_i.length),Be.setTextAlign(),Be.setRotateWithView(!1);var Xt="middle";Ss.indexOf("bottom")==0?(Xt="bottom",Go=-Si-.5*(ki-1)*Xi):Ss.indexOf("top")==0&&(Xt="top",Go=Si+.5*(ki-1)*Xi),Be.setTextBaseline(Xt),Be.setOffsetX(Qn[0]*Xi+Ji+so[0]),Be.setOffsetY(Qn[1]*Xi+Go+so[1]),ft.setColor(sm(xi(he,"paint","text-color",Qt,Je,W),Ft)),Be.setFill(ft);var ln=sm(xi(he,"paint","text-halo-color",Qt,Je,W),Ft);if(ln){et.setColor(ln),Si*=2;var Kt=.5*Xi;et.setWidth(Si<=Kt?Si:Kt),Be.setStroke(et)}else Be.setStroke(void 0);var Mn=xi(he,"layout","text-padding",Qt,Je,W),cr=Be.getPadding();Mn!==cr[0]&&(cr[0]=Mn,cr[1]=Mn,cr[2]=Mn,cr[3]=Mn),pn.setZIndex(bn)}}},mt=0,dt=nn.length;mt<dt;++mt)on(mt);if(tt>-1)return Ke.length=tt+1,Ke}};return e.setStyle(rt),e.set("mapbox-source",q),e.set("mapbox-layers",P),rt}var nW={exports:{}};(function(){var e;nW.exports={icon:"icons/google.svg",name:"google",title:"Google Fonts",link:"google.com/fonts",getNames:function(){return e},getLink:function(n){return"https://fonts.google.com/specimen/"+n.replace(/( )/g,"+")},normalizeName:function(n){return n}},e=["ABeeZee","Abel","Abril Fatface","Aclonica","Acme","Actor","Adamina","Advent Pro","Aguafina Script","Akronim","Aladin","Aldrich","Alef","Alegreya","Alegreya SC","Alegreya Sans","Alegreya Sans SC","Alex Brush","Alfa Slab One","Alice","Alike","Alike Angular","Allan","Allerta","Allerta Stencil","Allura","Almendra","Almendra Display","Almendra SC","Amarante","Amaranth","Amatic SC","Amethysta","Amiri","Amita","Anaheim","Andada","Andika","Angkor","Annie Use Your Telescope","Anonymous Pro","Antic","Antic Didone","Antic Slab","Anton","Arapey","Arbutus","Arbutus Slab","Architects Daughter","Archivo Black","Archivo Narrow","Arimo","Arizonia","Armata","Artifika","Arvo","Arya","Asap","Asar","Asset","Astloch","Asul","Atomic Age","Aubrey","Audiowide","Autour One","Average","Average Sans","Averia Gruesa Libre","Averia Libre","Averia Sans Libre","Averia Serif Libre","Bad Script","Balthazar","Bangers","Basic","Battambang","Baumans","Bayon","Belgrano","Belleza","BenchNine","Bentham","Berkshire Swash","Bevan","Bigelow Rules","Bigshot One","Bilbo","Bilbo Swash Caps","Biryani","Bitter","Black Ops One","Bokor","Bonbon","Boogaloo","Bowlby One","Bowlby One SC","Brawler","Bree Serif","Bubblegum Sans","Bubbler One","Buda","Buenard","Butcherman","Butterfly Kids","Cabin","Cabin Condensed","Cabin Sketch","Caesar Dressing","Cagliostro","Calligraffitti","Cambay","Cambo","Candal","Cantarell","Cantata One","Cantora One","Capriola","Cardo","Carme","Carrois Gothic","Carrois Gothic SC","Carter One","Catamaran","Caudex","Caveat","Caveat Brush","Cedarville Cursive","Ceviche One","Changa One","Chango","Chau Philomene One","Chela One","Chelsea Market","Chenla","Cherry Cream Soda","Cherry Swash","Chewy","Chicle","Chivo","Chonburi","Cinzel","Cinzel Decorative","Clicker Script","Coda","Coda Caption","Codystar","Combo","Comfortaa","Coming Soon","Concert One","Condiment","Content","Contrail One","Convergence","Cookie","Copse","Corben","Courgette","Cousine","Coustard","Covered By Your Grace","Crafty Girls","Creepster","Crete Round","Crimson Text","Croissant One","Crushed","Cuprum","Cutive","Cutive Mono","Damion","Dancing Script","Dangrek","Dawning of a New Day","Days One","Dekko","Delius","Delius Swash Caps","Delius Unicase","Della Respira","Denk One","Devonshire","Dhurjati","Didact Gothic","Diplomata","Diplomata SC","Domine","Donegal One","Doppio One","Dorsa","Dosis","Dr Sugiyama","Droid Sans","Droid Sans Mono","Droid Serif","Duru Sans","Dynalight","EB Garamond","Eagle Lake","Eater","Economica","Eczar","Ek Mukta","Electrolize","Elsie","Elsie Swash Caps","Emblema One","Emilys Candy","Enga
Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sW(e,n){return hde(e)||fde(e,n)||aW(e,n)||pde()}function Ky(e){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Ky(e)}function mde(e,n){if(Ky(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(Ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function lW(e){var n=mde(e,"string");return Ky(n)=="symbol"?n:String(n)}function pa(e,n,t){return n=lW(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function $M(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},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){pa(e,i,t[i])})}return e}function nb(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function DT(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,lW(r.key),r)}}function rb(e,n,t){return n&&DT(e.prototype,n),t&&DT(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lo(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i8(e,n){if(n&&(Ky(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lo(e)}function MC(e){return MC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},MC(e)}function TE(e,n){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},TE(e,n)}function o8(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&TE(e,n)}var gde=function(e,n,t,r,i,o,s,a){if(!e){var h;if(n===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[t,r,i,o,s,a],C=0;h=new Error(n.replace(/%s/g,function(){return g[C++]})),h.name="Invariant Violation"}throw h.framesToPop=1,h}},yde=gde;const p1=oa(yde);function vde(e){if(Array.isArray(e))return IE(e)}function _de(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cde(){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 bde(e){return vde(e)||_de(e)||aW(e)||Cde()}var xde=function(){function e(){nb(this,e),pa(this,"refs",{})}return rb(e,[{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(wde)}}]),e}();function wde(e,n){var t=e.node.sortableInfo.index,r=n.node.sortableInfo.index;return t-r}function uW(e,n){return Object.keys(e).reduce(function(t,r){return n.indexOf(r)===-1&&(t[r]=e[r]),t},{})}var pg={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},AW=function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],n=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(n){case"ms":return"ms";default:return n&&n.length?n[0].toUpperCase()+n.substr(1):""}}();function Rx(e,n){Object.keys(n).forEach(function(t){e.style[t]=n[t]})}function zx(e,n){e.style["".concat(AW,"Transform")]=n==null?"":"translate3d(".concat(n.x,"px,").concat(n.y,"px,0)")}function YM(e,n){e.style["".concat(AW,"TransitionDuration")]=n==null?"":"".concat(n,"ms")}function d_(e,n){for(;e;){if(n(e))return e;e=e.parentNode}return null}function LT(e,n,t){return Math.max(e,Math.min(t,n))}function $g(e){return e.substr(-2)==="px"?parseFloat(e):0}function Mde(e){var n=window.getComputedStyle(e);return{bottom:$g(n.marginBottom),left:$g(n.marginLeft),right:$g(n.marginRight),top:$g(n.marginTop)}}function a8(e,n){var t=n.displayName||n.name;return t?"".concat(e,"(").concat(t,")"):e}function qM(e,n){var t=e.getBoundingClientRect();return{top:t.top+n.top,left:t.left+n.left}}function $v(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Sde(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function w2(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var r={left:t.left+e.offsetLeft,top:t.top+e.offsetTop};return e.parentNode===n?r:w2(e.parentNode,n,r)}}function Ede(e,n,t){return e<t&&e>n?e-1:e>t&&e<n?e+1:e}function UT(e){var n=e.lockOffset,t=e.width,r=e.height,i=n,o=n,s="px";if(typeof n=="string"){var a=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(n);p1(a!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',n),i=parseFloat(n),o=parseFloat(n),s=a[1]}return p1(isFinite(i)&&isFinite(o),"lockOffset value should be a finite. Given %s",n),s==="%"&&(i=i*t/100,o=o*r/100),{x:i,y:o}}function Ode(e){var n=e.height,t=e.width,r=e.lockOffset,i=Array.isArray(r)?r:[r,r];p1(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var o=sW(i,2),s=o[0],a=o[1];return[UT({height:n,lockOffset:s,width:t}),UT({height:n,lockOffset:a,width:t})]}function Bde(e){var n=window.getComputedStyle(e),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(n[i])})}function cW(e){return e instanceof HTMLElement?Bde(e)?e:cW(e.parentNode):null}function kde(e){var n=window.getComputedStyle(e);return n.display==="grid"?{x:$g(n.gridColumnGap),y:$g(n.gridRowGap)}:{x:0,y:0}}var b0={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},P0={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Ide(e){var n="input, textarea, select, canvas, [contenteditable]",t=e.querySelectorAll(n),r=e.cloneNode(!0),i=bde(r.querySelectorAll(n));return i.forEach(function(o,s){if(o.type!=="file"&&(o.value=t[s].value),o.type==="radio"&&o.name&&(o.name="__sortableClone__".concat(o.name)),o.tagName===P0.Canvas&&t[s].width>0&&t[s].height>0){var a=o.getContext("2d");a.drawImage(t[s],0,0)}}),r}function Tde(e){var n,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=n=function(i){o8(o,i);function o(){var s,a;nb(this,o);for(var h=arguments.length,g=new Array(h),C=0;C<h;C++)g[C]=arguments[C];return a=i8(this,(s=MC(o)).call.apply(s,[this].concat(g))),pa(lo(lo(a)),"wrappedInstance",Sr.createRef()),a}return rb(o,[{key:"componentDidMount",value:function(){var a=Ym.findDOMNode(this);a.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return p1(r.with
Line truncated
|
||||
* tabbable 5.3.3
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var Wj=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],$3=Wj.join(","),Nj=typeof Element>"u",d1=Nj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ME=!Nj&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Gj=function(n,t,r){var i=Array.prototype.slice.apply(n.querySelectorAll($3));return t&&d1.call(n,$3)&&i.unshift(n),i=i.filter(r),i},Qj=function e(n,t,r){for(var i=[],o=Array.from(n);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),p=a.length?a:s.children,g=e(p,!0,r);r.flatten?i.push.apply(i,g):i.push({scope:s,candidates:g})}else{var b=d1.call(s,$3);b&&r.filter(s)&&(t||!n.includes(s))&&i.push(s);var B=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),k=!r.shadowRootFilter||r.shadowRootFilter(s);if(B&&k){var P=e(B===!0?s.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scope:s,candidates:P})}else o.unshift.apply(o,s.children)}}return i},$j=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Sce=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},Yj=function(n){return n.tagName==="INPUT"},Ece=function(n){return Yj(n)&&n.type==="hidden"},Oce=function(n){var t=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(r){return r.tagName==="SUMMARY"});return t},Bce=function(n,t){for(var r=0;r<n.length;r++)if(n[r].checked&&n[r].form===t)return n[r]},kce=function(n){if(!n.name)return!0;var t=n.form||ME(n),r=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(n.name));else try{i=r(n.name)}catch(s){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",s.message),!1}var o=Bce(i,n.form);return!o||o===n},Ice=function(n){return Yj(n)&&n.type==="radio"},Tce=function(n){return Ice(n)&&!kce(n)},MT=function(n){var t=n.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Kce=function(n,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var o=d1.call(n,"details>summary:first-of-type"),s=o?n.parentElement:n;if(d1.call(s,"details:not([open]) *"))return!0;var a=ME(n).host,p=(a==null?void 0:a.ownerDocument.contains(a))||n.ownerDocument.contains(n);if(!r||r==="full"){if(typeof i=="function"){for(var g=n;n;){var b=n.parentElement,B=ME(n);if(b&&!b.shadowRoot&&i(b)===!0)return MT(n);n.assignedSlot?n=n.assignedSlot:!b&&B!==n.ownerDocument?n=B.host:n=b}n=g}if(p)return!n.getClientRects().length}else if(r==="non-zero-area")return MT(n);return!1},Pce=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return d1.call(t,"fieldset[disabled] *")?!0:!i.contains(n)}return!0}t=t.parentElement}return!1},Y3=function(n,t){return!(t.disabled||Ece(t)||Kce(t,n)||Oce(t)||Pce(t))},SE=function(n,t){return!(Tce(t)||$j(t)<0||!Y3(n,t))},Fce=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Dce=function e(n){var t=[],r=[];return n.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,p=$j(a,s),g=s?e(i.candidates):a;p===0?s?t.push.apply(t,g):t.push(a):r.push({documentOrder:o,tabIndex:p,item:i,isScope:s,content:g})}),r.sort(Sce).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},qj=function(n,t){t=t||{};var r;return t.getShadowRoot?r=Qj([n],t.includeContainer,{filter:SE.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Fce}):r=Gj(n,t.includeContainer,SE.bind(null,t)),Dce(r)},Vj=function(n,t){t=t||{};var r;return t.getShadowRoot?r=Qj([n],t.includeContainer,{filter:Y3.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=Gj(n,t.includeContainer,Y3.bind(null,t)),r},sC=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return d1.call(n,$3)===!1?!1:SE(t,n)},Uce=Wj.concat("iframe").join(","),v2=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return d1.call(n,Uce)===!1?!1:Y3(t,n)};const Rce=Object.freeze(Object.defineProperty({__proto__:null,focusable:Vj,isFocusable:v2,isTabbable:sC,tabbable:qj},Symbol.toStringTag,{value:"Module"}));/*!
|
||||
*/var mW=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],X3=mW.join(","),gW=typeof Element>"u",m1=gW?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,PE=!gW&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},yW=function(n,t,r){var i=Array.prototype.slice.apply(n.querySelectorAll(X3));return t&&m1.call(n,X3)&&i.unshift(n),i=i.filter(r),i},vW=function e(n,t,r){for(var i=[],o=Array.from(n);o.length;){var s=o.shift();if(s.tagName==="SLOT"){var a=s.assignedElements(),h=a.length?a:s.children,g=e(h,!0,r);r.flatten?i.push.apply(i,g):i.push({scope:s,candidates:g})}else{var C=m1.call(s,X3);C&&r.filter(s)&&(t||!n.includes(s))&&i.push(s);var B=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),k=!r.shadowRootFilter||r.shadowRootFilter(s);if(B&&k){var P=e(B===!0?s.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scope:s,candidates:P})}else o.unshift.apply(o,s.children)}}return i},_W=function(n,t){return n.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(n.tagName)||n.isContentEditable)&&isNaN(parseInt(n.getAttribute("tabindex"),10))?0:n.tabIndex},Qde=function(n,t){return n.tabIndex===t.tabIndex?n.documentOrder-t.documentOrder:n.tabIndex-t.tabIndex},CW=function(n){return n.tagName==="INPUT"},$de=function(n){return CW(n)&&n.type==="hidden"},Yde=function(n){var t=n.tagName==="DETAILS"&&Array.prototype.slice.apply(n.children).some(function(r){return r.tagName==="SUMMARY"});return t},qde=function(n,t){for(var r=0;r<n.length;r++)if(n[r].checked&&n[r].form===t)return n[r]},Vde=function(n){if(!n.name)return!0;var t=n.form||PE(n),r=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(n.name));else try{i=r(n.name)}catch(s){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",s.message),!1}var o=qde(i,n.form);return!o||o===n},Hde=function(n){return CW(n)&&n.type==="radio"},Zde=function(n){return Hde(n)&&!Vde(n)},zT=function(n){var t=n.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Xde=function(n,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(n).visibility==="hidden")return!0;var o=m1.call(n,"details>summary:first-of-type"),s=o?n.parentElement:n;if(m1.call(s,"details:not([open]) *"))return!0;var a=PE(n).host,h=(a==null?void 0:a.ownerDocument.contains(a))||n.ownerDocument.contains(n);if(!r||r==="full"){if(typeof i=="function"){for(var g=n;n;){var C=n.parentElement,B=PE(n);if(C&&!C.shadowRoot&&i(C)===!0)return zT(n);n.assignedSlot?n=n.assignedSlot:!C&&B!==n.ownerDocument?n=B.host:n=C}n=g}if(h)return!n.getClientRects().length}else if(r==="non-zero-area")return zT(n);return!1},Jde=function(n){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(n.tagName))for(var t=n.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return m1.call(t,"fieldset[disabled] *")?!0:!i.contains(n)}return!0}t=t.parentElement}return!1},J3=function(n,t){return!(t.disabled||$de(t)||Xde(t,n)||Yde(t)||Jde(t))},FE=function(n,t){return!(Zde(t)||_W(t)<0||!J3(n,t))},ehe=function(n){var t=parseInt(n.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},the=function e(n){var t=[],r=[];return n.forEach(function(i,o){var s=!!i.scope,a=s?i.scope:i,h=_W(a,s),g=s?e(i.candidates):a;h===0?s?t.push.apply(t,g):t.push(a):r.push({documentOrder:o,tabIndex:h,item:i,isScope:s,content:g})}),r.sort(Qde).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(t)},bW=function(n,t){t=t||{};var r;return t.getShadowRoot?r=vW([n],t.includeContainer,{filter:FE.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:ehe}):r=yW(n,t.includeContainer,FE.bind(null,t)),the(r)},xW=function(n,t){t=t||{};var r;return t.getShadowRoot?r=vW([n],t.includeContainer,{filter:J3.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):r=yW(n,t.includeContainer,J3.bind(null,t)),r},h_=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return m1.call(n,X3)===!1?!1:FE(t,n)},nhe=mW.concat("iframe").join(","),M2=function(n,t){if(t=t||{},!n)throw new Error("No node provided");return m1.call(n,nhe)===!1?!1:J3(t,n)};const rhe=Object.freeze(Object.defineProperty({__proto__:null,focusable:xW,isFocusable:M2,isTabbable:h_,tabbable:bW},Symbol.toStringTag,{value:"Module"}));/*!
|
||||
* focus-trap 6.9.4
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function ST(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function ET(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?ST(Object(t),!0).forEach(function(r){Lce(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ST(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function Lce(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var OT=function(){var e=[];return{activateTrap:function(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(t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),zce=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},jce=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},Wce=function(n){return n.key==="Tab"||n.keyCode===9},BT=function(n){return setTimeout(n,0)},kT=function(n,t){var r=-1;return n.every(function(i,o){return t(i)?(r=o,!1):!0}),r},Wv=function(n){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 n=="function"?n.apply(void 0,r):n},Fx=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},Nce=function(n,t){var r=(t==null?void 0:t.document)||document,i=ET({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(se,le,ye){return se&&se[le]!==void 0?se[le]:i[ye||le]},p=function(se){return o.containerGroups.findIndex(function(le){var ye=le.container,De=le.tabbableNodes;return ye.contains(se)||De.find(function(Ne){return Ne===se})})},g=function(se){var le=i[se];if(typeof le=="function"){for(var ye=arguments.length,De=new Array(ye>1?ye-1:0),Ne=1;Ne<ye;Ne++)De[Ne-1]=arguments[Ne];le=le.apply(void 0,De)}if(le===!0&&(le=void 0),!le){if(le===void 0||le===!1)return le;throw new Error("`".concat(se,"` was specified but was not a node, or did not return a node"))}var et=le;if(typeof le=="string"&&(et=r.querySelector(le),!et))throw new Error("`".concat(se,"` as selector refers to no known node"));return et},b=function(){var se=g("initialFocus");if(se===!1)return!1;if(se===void 0)if(p(r.activeElement)>=0)se=r.activeElement;else{var le=o.tabbableGroups[0],ye=le&&le.firstTabbableNode;se=ye||g("fallbackFocus")}if(!se)throw new Error("Your focus-trap needs to have at least one focusable element");return se},B=function(){if(o.containerGroups=o.containers.map(function(se){var le=qj(se,i.tabbableOptions),ye=Vj(se,i.tabbableOptions);return{container:se,tabbableNodes:le,focusableNodes:ye,firstTabbableNode:le.length>0?le[0]:null,lastTabbableNode:le.length>0?le[le.length-1]:null,nextTabbableNode:function(Ne){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ft=ye.findIndex(function(Ke){return Ke===Ne});if(!(ft<0))return et?ye.slice(ft+1).find(function(Ke){return sC(Ke,i.tabbableOptions)}):ye.slice(0,ft).reverse().find(function(Ke){return sC(Ke,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(se){return se.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},k=function ce(se){if(se!==!1&&se!==r.activeElement){if(!se||!se.focus){ce(b());return}se.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=se,zce(se)&&se.select()}},P=function(se){var le=g("setReturnFocus",se);return le||(le===!1?!1:se)},R=function(se){var le=Fx(se);if(!(p(le)>=0)){if(Wv(i.clickOutsideDeactivates,se)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!v2(le,i.tabbableOptions)});return}Wv(i.allowOutsideClick,se)||se.preventDefault()}},Z=function(se){var le=Fx(se),ye=p(le)>=0;ye||le instanceof Document?ye&&(o.mostRecentlyFocusedNode=le):(se.stopImmediatePropagation(),k(o.mostRecentlyFocusedNode||b()))},W=function(se){var le=Fx(se);B();var ye=null;if(o.tabbableGroups.length>0){var De=p(le),Ne=De>=0?o.containerGroups[De]:void 0;if(De<0)se.shiftKey?ye=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:ye=o.tabbableGroups[0].firstTabbableNode;else if(se.shiftKey){var et=kT(o.tabbableGroups,function(jt){var tn=jt.firstTabbableNode;return le===tn});if(et<0&&(Ne.container===le||v2(le,i.tabbableOptions)&&!sC(le,i.tabbableOptions)&&!Ne.nextTabbableNode(le,!1))&&(et=De),et>=0){var ft=et===0?o.tabbableGroups.length-1:et-1,Ke=o.tabbableGroups[ft];ye=Ke.lastTabbableNode}}else{var rt=kT(o.tabbableGroups,function(jt){var tLine truncated
|
||||
*/function jT(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,r)}return t}function WT(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?jT(Object(t),!0).forEach(function(r){ihe(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jT(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function ihe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var NT=function(){var e=[];return{activateTrap:function(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(t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}}}(),ohe=function(n){return n.tagName&&n.tagName.toLowerCase()==="input"&&typeof n.select=="function"},ahe=function(n){return n.key==="Escape"||n.key==="Esc"||n.keyCode===27},she=function(n){return n.key==="Tab"||n.keyCode===9},GT=function(n){return setTimeout(n,0)},QT=function(n,t){var r=-1;return n.every(function(i,o){return t(i)?(r=o,!1):!0}),r},Yv=function(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof n=="function"?n.apply(void 0,r):n},jx=function(n){return n.target.shadowRoot&&typeof n.composedPath=="function"?n.composedPath()[0]:n.target},lhe=function(n,t){var r=(t==null?void 0:t.document)||document,i=WT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},s,a=function(ae,se,ye){return ae&&ae[se]!==void 0?ae[se]:i[ye||se]},h=function(ae){return o.containerGroups.findIndex(function(se){var ye=se.container,De=se.tabbableNodes;return ye.contains(ae)||De.find(function(Ne){return Ne===ae})})},g=function(ae){var se=i[ae];if(typeof se=="function"){for(var ye=arguments.length,De=new Array(ye>1?ye-1:0),Ne=1;Ne<ye;Ne++)De[Ne-1]=arguments[Ne];se=se.apply(void 0,De)}if(se===!0&&(se=void 0),!se){if(se===void 0||se===!1)return se;throw new Error("`".concat(ae,"` was specified but was not a node, or did not return a node"))}var et=se;if(typeof se=="string"&&(et=r.querySelector(se),!et))throw new Error("`".concat(ae,"` as selector refers to no known node"));return et},C=function(){var ae=g("initialFocus");if(ae===!1)return!1;if(ae===void 0)if(h(r.activeElement)>=0)ae=r.activeElement;else{var se=o.tabbableGroups[0],ye=se&&se.firstTabbableNode;ae=ye||g("fallbackFocus")}if(!ae)throw new Error("Your focus-trap needs to have at least one focusable element");return ae},B=function(){if(o.containerGroups=o.containers.map(function(ae){var se=bW(ae,i.tabbableOptions),ye=xW(ae,i.tabbableOptions);return{container:ae,tabbableNodes:se,focusableNodes:ye,firstTabbableNode:se.length>0?se[0]:null,lastTabbableNode:se.length>0?se[se.length-1]:null,nextTabbableNode:function(Ne){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,ft=ye.findIndex(function(Ke){return Ke===Ne});if(!(ft<0))return et?ye.slice(ft+1).find(function(Ke){return h_(Ke,i.tabbableOptions)}):ye.slice(0,ft).reverse().find(function(Ke){return h_(Ke,i.tabbableOptions)})}}}),o.tabbableGroups=o.containerGroups.filter(function(ae){return ae.tabbableNodes.length>0}),o.tabbableGroups.length<=0&&!g("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},k=function Ae(ae){if(ae!==!1&&ae!==r.activeElement){if(!ae||!ae.focus){Ae(C());return}ae.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=ae,ohe(ae)&&ae.select()}},P=function(ae){var se=g("setReturnFocus",ae);return se||(se===!1?!1:ae)},U=function(ae){var se=jx(ae);if(!(h(se)>=0)){if(Yv(i.clickOutsideDeactivates,ae)){s.deactivate({returnFocus:i.returnFocusOnDeactivate&&!M2(se,i.tabbableOptions)});return}Yv(i.allowOutsideClick,ae)||ae.preventDefault()}},Z=function(ae){var se=jx(ae),ye=h(se)>=0;ye||se instanceof Document?ye&&(o.mostRecentlyFocusedNode=se):(ae.stopImmediatePropagation(),k(o.mostRecentlyFocusedNode||C()))},W=function(ae){var se=jx(ae);B();var ye=null;if(o.tabbableGroups.length>0){var De=h(se),Ne=De>=0?o.containerGroups[De]:void 0;if(De<0)ae.shiftKey?ye=o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:ye=o.tabbableGroups[0].firstTabbableNode;else if(ae.shiftKey){var et=QT(o.tabbableGroups,function(jt){var nn=jt.firstTabbableNode;return se===nn});if(et<0&&(Ne.container===se||M2(se,i.tabbableOptions)&&!h_(se,i.tabbableOptions)&&!Ne.nextTabbableNode(se,!1))&&(et=De),et>=0){var ft=et===0?o.tabbableGroups.length-1:et-1,Ke=o.tabbableGroups[ft];ye=Ke.lastTabbableNode}}else{var rt=QT(o.tabbableGroups,function(jt){var nLine 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:jde,expression:Wde,expression_name:Nde,light:Gde,sky:Qde,terrain:$de,paint:Yde,paint_fill:qde,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",macos:"0.11.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0",macos:"0.5.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",macos:"0.13.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:Vde,paint_circle:Hde,paint_heatmap:Zde,paint_symbol:Xde,paint_raster:Jde,paint_hillshade:ehe,paint_background:the,transition:nhe,"property-type":{"data-driven":{type:"property-type",doc:"Property is interpolable and can be represented using a property expression."},"cross-faded":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms."},"cross-faded-data-driven":{type:"property-type",doc:"Property is non-interpolable; rather, its values will be cross-faded to smoothly transition between integer zooms. It can be represented using a property expression."},"color-ramp":{type:"property-type",doc:"Property should be specified using a color ramp from which the output color can be sampled based on a property calculation."},"data-constant":{type:"property-type",doLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rfe(){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 Lfe=function e(n){var t=this,r=n.expanded,i=r===void 0?[]:r,o=n.allowMultipleExpanded,s=o===void 0?!1:o,a=n.allowZeroExpanded,p=a===void 0?!1:a;B5(this,e),ss(this,"expanded",void 0),ss(this,"allowMultipleExpanded",void 0),ss(this,"allowZeroExpanded",void 0),ss(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var b=t.isItemExpanded(g);return b?t.augment({expanded:t.expanded.filter(function(B){return B!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Tfe(t.expanded),[g]):[g]})}),ss(this,"isItemDisabled",function(g){var b=t.isItemExpanded(g),B=t.expanded.length===1;return!!(b&&!t.allowZeroExpanded&&B)}),ss(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),ss(this,"getPanelAttributes",function(g,b){var B=b??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:B?void 0:!0}}),ss(this,"getHeadingAttributes",function(){return{role:"heading"}}),ss(this,"getButtonAttributes",function(g,b){var B=b??t.isItemExpanded(g),k=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":k,"aria-expanded":B,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),ss(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),ss(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),ss(this,"augment",function(g){return new e(UE({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=i,this.allowMultipleExpanded=s,this.allowZeroExpanded=p},dW=Sr.createContext(null),hW=function(e){l8(t,e);var n=u8(t);function t(){var r;B5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ss(nh(r),"state",new Lfe({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),ss(nh(r),"toggleExpanded",function(a){r.setState(function(p){return p.toggleExpanded(a)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),ss(nh(r),"isItemDisabled",function(a){return r.state.isItemDisabled(a)}),ss(nh(r),"isItemExpanded",function(a){return r.state.isItemExpanded(a)}),ss(nh(r),"getPanelAttributes",function(a,p){return r.state.getPanelAttributes(a,p)}),ss(nh(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),ss(nh(r),"getButtonAttributes",function(a,p){return r.state.getButtonAttributes(a,p)}),r}return s8(t,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,s=i.allowMultipleExpanded;return Sr.createElement(dW.Provider,{value:{allowMultipleExpanded:s,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}(Sr.PureComponent);ss(hW,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var fW=function(e){l8(t,e);var n=u8(t);function t(){var r;B5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ss(nh(r),"renderChildren",function(a){return a?r.props.children(a):null}),r}return s8(t,[{key:"render",value:function(){return Sr.createElement(dW.Consumer,null,this.renderChildren)}}]),t}(Sr.PureComponent),zfe=function(n){var t=n.className,r=t===void 0?"accordion":t,i=n.allowMultipleExpanded,o=n.allowZeroExpanded,s=n.onChange,a=n.preExpanded,p=k5(n,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return Sr.createElement(hW,{preExpanded:a,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:s},Sr.createElement("div",vf({"data-accordion-component":"Accordion",className:r},p)))},zE;(function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"})(zE||(zE={}));var pW=zE,jfe=0,QM=jfe;function Wfe(){var e=QM;return QM=QM+1,"raa-".concat(e)}var Nfe=/[\u0009\u000a\u000c\u000d\u0020]/g;function C_(e){return e===""||Nfe.test(e)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1):!0}var mW=Sr.createContext(null),Gfe=function(n){var t=n.children,r=n.uuid,i=n.accordionContext,o=n.dangerouslySetExpanded,s=function(){i.toggleExpanded(r)},a=function(g){var b=o??g.isItemExpanded(r),B=g.isItemDisabled(r),k=g.getPanelAttributes(r,o),P=g.getHeadingAttributes(r),R=g.getButtonAttributes(r,o);return Sr.createElement(mW.Provider,{value:{uuid:r,expanded:b,disabled:B,toggleExpanded:s,panelAttributes:k,headingAttributes:P,buttonAttributes:R}},t)};return Sr.createElement(fW,null,a)},Qfe=function(n)
Line truncated
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:afe,expression:sfe,expression_name:lfe,light:ufe,sky:Afe,terrain:cfe,paint:dfe,paint_fill:hfe,"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:ffe,paint_circle:pfe,paint_heatmap:mfe,paint_symbol:gfe,paint_raster:yfe,paint_hillshade:vfe,paint_background:_fe,transition:Cfe,"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 rme(){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 ime=function e(n){var t=this,r=n.expanded,i=r===void 0?[]:r,o=n.allowMultipleExpanded,s=o===void 0?!1:o,a=n.allowZeroExpanded,h=a===void 0?!1:a;D5(this,e),ls(this,"expanded",void 0),ls(this,"allowMultipleExpanded",void 0),ls(this,"allowZeroExpanded",void 0),ls(this,"toggleExpanded",function(g){if(t.isItemDisabled(g))return t;var C=t.isItemExpanded(g);return C?t.augment({expanded:t.expanded.filter(function(B){return B!==g})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Zpe(t.expanded),[g]):[g]})}),ls(this,"isItemDisabled",function(g){var C=t.isItemExpanded(g),B=t.expanded.length===1;return!!(C&&!t.allowZeroExpanded&&B)}),ls(this,"isItemExpanded",function(g){return t.expanded.indexOf(g)!==-1}),ls(this,"getPanelAttributes",function(g,C){var B=C??t.isItemExpanded(g);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(g),id:t.getPanelId(g),hidden:B?void 0:!0}}),ls(this,"getHeadingAttributes",function(){return{role:"heading"}}),ls(this,"getButtonAttributes",function(g,C){var B=C??t.isItemExpanded(g),k=t.isItemDisabled(g);return{id:t.getButtonId(g),"aria-disabled":k,"aria-expanded":B,"aria-controls":t.getPanelId(g),role:"button",tabIndex:0}}),ls(this,"getPanelId",function(g){return"accordion__panel-".concat(g)}),ls(this,"getButtonId",function(g){return"accordion__heading-".concat(g)}),ls(this,"augment",function(g){return new e($E({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},g))}),this.expanded=i,this.allowMultipleExpanded=s,this.allowZeroExpanded=h},zW=Sr.createContext(null),jW=function(e){y8(t,e);var n=v8(t);function t(){var r;D5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ls(ah(r),"state",new ime({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),ls(ah(r),"toggleExpanded",function(a){r.setState(function(h){return h.toggleExpanded(a)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),ls(ah(r),"isItemDisabled",function(a){return r.state.isItemDisabled(a)}),ls(ah(r),"isItemExpanded",function(a){return r.state.isItemExpanded(a)}),ls(ah(r),"getPanelAttributes",function(a,h){return r.state.getPanelAttributes(a,h)}),ls(ah(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),ls(ah(r),"getButtonAttributes",function(a,h){return r.state.getButtonAttributes(a,h)}),r}return g8(t,[{key:"render",value:function(){var i=this.state,o=i.allowZeroExpanded,s=i.allowMultipleExpanded;return Sr.createElement(zW.Provider,{value:{allowMultipleExpanded:s,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}(Sr.PureComponent);ls(jW,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var WW=function(e){y8(t,e);var n=v8(t);function t(){var r;D5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ls(ah(r),"renderChildren",function(a){return a?r.props.children(a):null}),r}return g8(t,[{key:"render",value:function(){return Sr.createElement(zW.Consumer,null,this.renderChildren)}}]),t}(Sr.PureComponent),ome=function(n){var t=n.className,r=t===void 0?"accordion":t,i=n.allowMultipleExpanded,o=n.allowZeroExpanded,s=n.onChange,a=n.preExpanded,h=L5(n,["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"]);return Sr.createElement(jW,{preExpanded:a,allowMultipleExpanded:i,allowZeroExpanded:o,onChange:s},Sr.createElement("div",wf({"data-accordion-component":"Accordion",className:r},h)))},VE;(function(e){e.Accordion="Accordion",e.AccordionItem="AccordionItem",e.AccordionItemButton="AccordionItemButton",e.AccordionItemHeading="AccordionItemHeading",e.AccordionItemPanel="AccordionItemPanel"})(VE||(VE={}));var NW=VE,ame=0,JM=ame;function sme(){var e=JM;return JM=JM+1,"raa-".concat(e)}var lme=/[\u0009\u000a\u000c\u000d\u0020]/g;function SC(e){return e===""||lme.test(e)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(e,'", ASCII whitespaces are forbidden')),!1):!0}var GW=Sr.createContext(null),ume=function(n){var t=n.children,r=n.uuid,i=n.accordionContext,o=n.dangerouslySetExpanded,s=function(){i.toggleExpanded(r)},a=function(g){var C=o??g.isItemExpanded(r),B=g.isItemDisabled(r),k=g.getPanelAttributes(r,o),P=g.getHeadingAttributes(r),U=g.getButtonAttributes(r,o);return Sr.createElement(GW.Provider,{value:{uuid:r,expanded:C,disabled:B,toggleExpanded:s,panelAttributes:k,headingAttributes:P,buttonAttributes:U}},t)};return Sr.createElement(WW,null,a)},Ame=function(n)
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.”
|
||||
|
||||
`,vW=function(e){l8(t,e);var n=u8(t);function t(){var r;B5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ss(nh(r),"ref",void 0),ss(nh(r),"setRef",function(a){r.ref=a}),r}return s8(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Sr.createElement("div",vf({"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(Jfe)}}]),t}(Sr.PureComponent);ss(vW,"defaultProps",Xfe);var CW=function(n){return Sr.createElement(I5,null,function(t){var r=t.headingAttributes;return n.id&&C_(n.id),Sr.createElement(vW,vf({},n,r))})};CW.displayName=pW.AccordionItemHeading;var epe=function(n){var t=n.className,r=t===void 0?"accordion__panel":t,i=n.region,o=n.id,s=k5(n,["className","region","id"]),a=function(g){var b=g.panelAttributes;o&&C_(o);var B=UE(UE({},b),{},{"aria-labelledby":i?b["aria-labelledby"]:void 0});return Sr.createElement("div",vf({"data-accordion-component":"AccordionItemPanel",className:r},s,B,{role:i?"region":void 0}))};return Sr.createElement(I5,null,a)},$M={exports:{}},VT;function K5(){return VT||(VT=1,function(e,n){(function(t,r){e.exports=r()})(_f,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),p=o||s||a,g=p&&(o?document.documentMode||6:+(a||s)[1]),b=!a&&/WebKit\//.test(t),B=b&&/Qt\/\d+\.\d+/.test(t),k=!a&&/Chrome\/(\d+)/.exec(t),P=k&&+k[1],R=/Opera\//.test(t),Z=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),Q=/PhantomJS/.test(t),q=Z&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),re=q||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),ce=q||/Mac/.test(r),se=/\bCrOS\b/.test(t),le=/win/i.test(r),ye=R&&t.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(R=!1,b=!0);var De=ce&&(B||R&&(ye==null||ye<12.11)),Ne=i||p&&g>=9;function et(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var ft=function(A,h){var x=A.className,_=et(h).exec(x);if(_){var E=x.slice(_.index+_[0].length);A.className=x.slice(0,_.index)+(E?_[1]+E:"")}};function Ke(A){for(var h=A.childNodes.length;h>0;--h)A.removeChild(A.firstChild);return A}function rt(A,h){return Ke(A).appendChild(h)}function Ce(A,h,x,_){var E=document.createElement(A);if(x&&(E.className=x),_&&(E.style.cssText=_),typeof h=="string")E.appendChild(document.createTextNode(h));else if(h)for(var U=0;U<h.length;++U)E.appendChild(h[U]);return E}function Rt(A,h,x,_){var E=Ce(A,h,x,_);return E.setAttribute("role","presentation"),E}var jt;document.createRange?jt=function(A,h,x,_){var E=document.createRange();return E.setEnd(_||A,x),E.setStart(A,h),E}:jt=function(A,h,x){var _=document.body.createTextRange();try{_.moveToElementText(A.parentNode)}catch{return _}return _.collapse(!0),_.moveEnd("character",x),_.moveStart("character",h),_};function tn(A,h){if(h.nodeType==3&&(h=h.parentNode),A.contains)return A.contains(h);do if(h.nodeType==11&&(h=h.host),h==A)return!0;while(h=h.parentNode)}function Qt(A){var h=A.ownerDocument||A,x;try{x=A.activeElement}catch{x=h.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function He(A,h){var x=A.className;et(h).test(x)||(A.className+=(x?" ":"")+h)}function Je(A,h){for(var x=A.split(" "),_=0;_<x.length;_++)x[_]&&!et(x[_]).test(h)&&(h+=" "+x[_]);return h}var tt=function(A){A.select()};q?tt=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:p&&(tt=function(A){try{A.select()}catch{}});function rn(A){return A.display.wrapper.ownerDocument}function mt(A){return dt(A.display.wrapper)}function dt(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function kt(A){return rn(A).defaultView}function Pt(A){var h=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,h)}}function Me(A,h,x){h||(h={});for(var _ in A)A.hasOwnProperty(_)&&(x!==!1||!h.hasOwnProperty(_))&&(h[_]=A[_]);return h}function he(A,h,x,_,E){h==null&&(h=A.search(/[^\s\u00a0]/),h==-1&&(h=A.length));for(var U=_||0,$=E||0;;){var J=A.indexOf(" ",U);if(J<0||J>=h)return $+(h-U);$+=J-U,$+=x-$%x,U=J+1}}var be=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};be.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},be.prototype.set=function(A,h){this.f=h;var x=+new Date+A;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=x)};function Pe(A,h){for(var x=0;x<A.length;++x)if(A[x]==h)return x;return-1}var Ze=50,nt={toString:function(){r
Line truncated
|
||||
`,YW=function(e){y8(t,e);var n=v8(t);function t(){var r;D5(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=n.call.apply(n,[this].concat(o)),ls(ah(r),"ref",void 0),ls(ah(r),"setRef",function(a){r.ref=a}),r}return g8(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Sr.createElement("div",wf({"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(yme)}}]),t}(Sr.PureComponent);ls(YW,"defaultProps",gme);var qW=function(n){return Sr.createElement(U5,null,function(t){var r=t.headingAttributes;return n.id&&SC(n.id),Sr.createElement(YW,wf({},n,r))})};qW.displayName=NW.AccordionItemHeading;var vme=function(n){var t=n.className,r=t===void 0?"accordion__panel":t,i=n.region,o=n.id,s=L5(n,["className","region","id"]),a=function(g){var C=g.panelAttributes;o&&SC(o);var B=$E($E({},C),{},{"aria-labelledby":i?C["aria-labelledby"]:void 0});return Sr.createElement("div",wf({"data-accordion-component":"AccordionItemPanel",className:r},s,B,{role:i?"region":void 0}))};return Sr.createElement(U5,null,a)},eS={exports:{}},AK;function z5(){return AK||(AK=1,function(e,n){(function(t,r){e.exports=r()})(dh,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),o=/MSIE \d/.test(t),s=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),h=o||s||a,g=h&&(o?document.documentMode||6:+(a||s)[1]),C=!a&&/WebKit\//.test(t),B=C&&/Qt\/\d+\.\d+/.test(t),k=!a&&/Chrome\/(\d+)/.exec(t),P=k&&+k[1],U=/Opera\//.test(t),Z=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),Q=/PhantomJS/.test(t),q=Z&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),re=q||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),Ae=q||/Mac/.test(r),ae=/\bCrOS\b/.test(t),se=/win/i.test(r),ye=U&&t.match(/Version\/(\d*\.\d*)/);ye&&(ye=Number(ye[1])),ye&&ye>=15&&(U=!1,C=!0);var De=Ae&&(B||U&&(ye==null||ye<12.11)),Ne=i||h&&g>=9;function et(A){return new RegExp("(^|\\s)"+A+"(?:$|\\s)\\s*")}var ft=function(A,f){var x=A.className,b=et(f).exec(x);if(b){var E=x.slice(b.index+b[0].length);A.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function Ke(A){for(var f=A.childNodes.length;f>0;--f)A.removeChild(A.firstChild);return A}function rt(A,f){return Ke(A).appendChild(f)}function _e(A,f,x,b){var E=document.createElement(A);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof f=="string")E.appendChild(document.createTextNode(f));else if(f)for(var L=0;L<f.length;++L)E.appendChild(f[L]);return E}function Ut(A,f,x,b){var E=_e(A,f,x,b);return E.setAttribute("role","presentation"),E}var jt;document.createRange?jt=function(A,f,x,b){var E=document.createRange();return E.setEnd(b||A,x),E.setStart(A,f),E}:jt=function(A,f,x){var b=document.body.createTextRange();try{b.moveToElementText(A.parentNode)}catch{return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",f),b};function nn(A,f){if(f.nodeType==3&&(f=f.parentNode),A.contains)return A.contains(f);do if(f.nodeType==11&&(f=f.host),f==A)return!0;while(f=f.parentNode)}function Qt(A){var f=A.ownerDocument||A,x;try{x=A.activeElement}catch{x=f.body||null}for(;x&&x.shadowRoot&&x.shadowRoot.activeElement;)x=x.shadowRoot.activeElement;return x}function He(A,f){var x=A.className;et(f).test(x)||(A.className+=(x?" ":"")+f)}function Je(A,f){for(var x=A.split(" "),b=0;b<x.length;b++)x[b]&&!et(x[b]).test(f)&&(f+=" "+x[b]);return f}var tt=function(A){A.select()};q?tt=function(A){A.selectionStart=0,A.selectionEnd=A.value.length}:h&&(tt=function(A){try{A.select()}catch{}});function on(A){return A.display.wrapper.ownerDocument}function mt(A){return dt(A.display.wrapper)}function dt(A){return A.getRootNode?A.getRootNode():A.ownerDocument}function kt(A){return on(A).defaultView}function Pt(A){var f=Array.prototype.slice.call(arguments,1);return function(){return A.apply(null,f)}}function Me(A,f,x){f||(f={});for(var b in A)A.hasOwnProperty(b)&&(x!==!1||!f.hasOwnProperty(b))&&(f[b]=A[b]);return f}function he(A,f,x,b,E){f==null&&(f=A.search(/[^\s\u00a0]/),f==-1&&(f=A.length));for(var L=b||0,$=E||0;;){var J=A.indexOf(" ",L);if(J<0||J>=f)return $+(f-L);$+=J-L,$+=x-$%x,L=J+1}}var be=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};be.prototype.onTimeout=function(A){A.id=0,A.time<=+new Date?A.f():setTimeout(A.handler,A.time-+new Date)},be.prototype.set=function(A,f){this.f=f;var x=+new Date+A;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,A),this.time=x)};function Pe(A,f){for(var x=0;x<A.length;++x)if(A[x]==f)return x;return-1}var Ze=50,nt={toString:function(){r
Line truncated
|
||||
|
||||
b`.split(/\n/).length!=3?function(A){for(var h=0,x=[],_=A.length;h<=_;){var E=A.indexOf(`
|
||||
`,h);E==-1&&(E=A.length);var U=A.slice(h,A.charAt(E-1)=="\r"?E-1:E),$=U.indexOf("\r");$!=-1?(x.push(U.slice(0,$)),h+=$+1):(x.push(U),h=E+1)}return x}:function(A){return A.split(/\r\n?|\n/)},Tr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var h;try{h=A.ownerDocument.selection.createRange()}catch{}return!h||h.parentElement()!=A?!1:h.compareEndPoints("StartToEnd",h)!=0},Rr=function(){var A=Ce("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Dr=null;function ei(A){if(Dr!=null)return Dr;var h=rt(A,Ce("span","x")),x=h.getBoundingClientRect(),_=jt(h,0,1).getBoundingClientRect();return Dr=Math.abs(x.left-_.left)>1}var rr={},li={};function ki(A,h){arguments.length>2&&(h.dependencies=Array.prototype.slice.call(arguments,2)),rr[A]=h}function Xi(A,h){li[A]=h}function xo(A){if(typeof A=="string"&&li.hasOwnProperty(A))A=li[A];else if(A&&typeof A.name=="string"&&li.hasOwnProperty(A.name)){var h=li[A.name];typeof h=="string"&&(h={name:h}),A=Nr(h,A),A.name=h.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return xo("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return xo("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function pi(A,h){h=xo(h);var x=rr[h.name];if(!x)return pi(A,"text/plain");var _=x(A,h);if(Oo.hasOwnProperty(h.name)){var E=Oo[h.name];for(var U in E)E.hasOwnProperty(U)&&(_.hasOwnProperty(U)&&(_["_"+U]=_[U]),_[U]=E[U])}if(_.name=h.name,h.helperType&&(_.helperType=h.helperType),h.modeProps)for(var $ in h.modeProps)_[$]=h.modeProps[$];return _}var Oo={};function us(A,h){var x=Oo.hasOwnProperty(A)?Oo[A]:Oo[A]={};Me(h,x)}function ka(A,h){if(h===!0)return h;if(A.copyState)return A.copyState(h);var x={};for(var _ in h){var E=h[_];E instanceof Array&&(E=E.concat([])),x[_]=E}return x}function Ci(A,h){for(var x;A.innerMode&&(x=A.innerMode(h),!(!x||x.mode==A));)h=x.state,A=x.mode;return x||{mode:A,state:h}}function Ms(A,h,x){return A.startState?A.startState(h,x):!0}var Si=function(A,h,x){this.pos=this.start=0,this.string=A,this.tabSize=h||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Si.prototype.eol=function(){return this.pos>=this.string.length},Si.prototype.sol=function(){return this.pos==this.lineStart},Si.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Si.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Si.prototype.eat=function(A){var h=this.string.charAt(this.pos),x;if(typeof A=="string"?x=h==A:x=h&&(A.test?A.test(h):A(h)),x)return++this.pos,h},Si.prototype.eatWhile=function(A){for(var h=this.pos;this.eat(A););return this.pos>h},Si.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},Si.prototype.skipToEnd=function(){this.pos=this.string.length},Si.prototype.skipTo=function(A){var h=this.string.indexOf(A,this.pos);if(h>-1)return this.pos=h,!0},Si.prototype.backUp=function(A){this.pos-=A},Si.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Si.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Si.prototype.match=function(A,h,x){if(typeof A=="string"){var _=function($){return x?$.toLowerCase():$},E=this.string.substr(this.pos,A.length);if(_(E)==_(A))return h!==!1&&(this.pos+=A.length),!0}else{var U=this.string.slice(this.pos).match(A);return U&&U.index>0?null:(U&&h!==!1&&(this.pos+=U[0].length),U)}},Si.prototype.current=function(){return this.string.slice(this.start,this.pos)},Si.prototype.hideFirstChars=function(A,h){this.lineStart+=A;try{return h()}finally{this.lineStart-=A}},Si.prototype.lookAhead=function(A){var h=this.lineOracle;return h&&h.lookAhead(A)},Si.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Qn(A,h){if(h-=A.first,h<0||h>=A.size)throw new Error("There is no line "+(h+A.first)+" in the document.");for(var x=A;!x.lines;)for(var _=0;;++_){var E=x.children[_],U=E.chunkSize();if(h<U){x=E;break}h-=U}return x.lines[h]}function so(A,h,x){var _=[],E=h.line;return A.iter(h.line,x.line+1,function(U){var $=U.text;E==x.line&&($=$.slice(0,x.ch)),E==h.line&&($=$.slice(h.ch)),_.push($),++E}),_}function Go(A,h,x){var _=[];return A.iter(h,x,function(E){_.push(E.text)}),_}function Ji(A,h){var x=h-A.height;if(x)for(var _=A;_;_=_.parent)_.height+=x}function ge(A){if(A.parent==null)return null;for(var h=A.parent,x=Pe(h.lines,A),_=h.parent;_;h=_,_=_.parent)for(var E=0;_.children[E]!=h;++E)x+=_.children[E].chunkSize();return x+h.first}function $e(A,h){var x=A.first;e:do{for(var _=0;_<A.children.length;++_){
Line truncated
|
||||
`?(cn=We.appendChild(Ce("span",wt[0]=="\r"?"␍":"","cm-invalidchar")),cn.setAttribute("cm-text",wt[0]),A.col+=1):(cn=A.cm.options.specialCharPlaceholder(wt[0]),cn.setAttribute("cm-text",wt[0]),p&&g<9?We.appendChild(Ce("span",[cn])):We.appendChild(cn),A.col+=1);A.map.push(A.pos,A.pos+1,cn),A.pos++}}if(A.trailingSpace=J.charCodeAt(h.length-1)==32,x||_||E||pe||U||$){var Cn=x||"";_&&(Cn+=_),E&&(Cn+=E);var Fn=Ce("span",[We],Cn,U);if($)for(var ar in $)$.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Fn.setAttribute(ar,$[ar]);return A.content.appendChild(Fn)}A.content.appendChild(We)}}function MA(A,h){if(A.length>1&&!/ /.test(A))return A;for(var x=h,_="",E=0;E<A.length;E++){var U=A.charAt(E);U==" "&&x&&(E==A.length-1||A.charCodeAt(E+1)==32)&&(U=" "),_+=U,x=U==" "}return _}function Qo(A,h){return function(x,_,E,U,$,J,ae){E=E?E+" cm-force-border":"cm-force-border";for(var pe=x.pos,We=pe+_.length;;){for(var qe=void 0,wt=0;wt<h.length&&(qe=h[wt],!(qe.to>pe&&qe.from<=pe));wt++);if(qe.to>=We)return A(x,_,E,U,$,J,ae);A(x,_.slice(0,qe.to-pe),E,U,null,J,ae),U=null,_=_.slice(qe.to-pe),pe=qe.to}}}function Tu(A,h,x,_){var E=!_&&x.widgetNode;E&&A.map.push(A.pos,A.pos+h,E),!_&&A.cm.display.input.needsContentAttribute&&(E||(E=A.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(A.cm.display.input.setUneditable(E),A.content.appendChild(E)),A.pos+=h,A.trailingSpace=!1}function wd(A,h,x){var _=A.markedSpans,E=A.text,U=0;if(!_){for(var $=1;$<x.length;$+=2)h.addToken(h,E.slice(U,U=x[$]),dh(x[$+1],h.cm.options));return}for(var J=E.length,ae=0,pe=1,We="",qe,wt,gt=0,Ut,cn,Bn,Gn,Cn;;){if(gt==ae){Ut=cn=Bn=wt="",Cn=null,Gn=null,gt=1/0;for(var Fn=[],ar=void 0,Or=0;Or<_.length;++Or){var yr=_[Or],oi=yr.marker;if(oi.type=="bookmark"&&yr.from==ae&&oi.widgetNode)Fn.push(oi);else if(yr.from<=ae&&(yr.to==null||yr.to>ae||oi.collapsed&&yr.to==ae&&yr.from==ae)){if(yr.to!=null&&yr.to!=ae&>>yr.to&&(gt=yr.to,cn=""),oi.className&&(Ut+=" "+oi.className),oi.css&&(wt=(wt?wt+";":"")+oi.css),oi.startStyle&&yr.from==ae&&(Bn+=" "+oi.startStyle),oi.endStyle&&yr.to==gt&&(ar||(ar=[])).push(oi.endStyle,yr.to),oi.title&&((Cn||(Cn={})).title=oi.title),oi.attributes)for(var ko in oi.attributes)(Cn||(Cn={}))[ko]=oi.attributes[ko];oi.collapsed&&(!Gn||At(Gn.marker,oi)<0)&&(Gn=yr)}else yr.from>ae&>>yr.from&&(gt=yr.from)}if(ar)for(var Da=0;Da<ar.length;Da+=2)ar[Da+1]==gt&&(cn+=" "+ar[Da]);if(!Gn||Gn.from==ae)for(var Aa=0;Aa<Fn.length;++Aa)Tu(h,0,Fn[Aa]);if(Gn&&(Gn.from||0)==ae){if(Tu(h,(Gn.to==null?J+1:Gn.to)-ae,Gn.marker,Gn.from==null),Gn.to==null)return;Gn.to==ae&&(Gn=!1)}}if(ae>=J)break;for(var Sa=Math.min(J,gt);;){if(We){var Xa=ae+We.length;if(!Gn){var Ja=Xa>Sa?We.slice(0,Sa-ae):We;h.addToken(h,Ja,qe?qe+Ut:Ut,Bn,ae+Ja.length==gt?cn:"",wt,Cn)}if(Xa>=Sa){We=We.slice(Sa-ae),ae=Sa;break}ae=Xa,Bn=""}We=E.slice(U,U=x[pe++]),qe=dh(x[pe++],h.cm.options)}}}function SA(A,h,x){this.line=h,this.rest=Fo(h),this.size=this.rest?ge(bn(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Ki(A,h)}function oc(A,h,x){for(var _=[],E,U=h;U<x;U=E){var $=new SA(A.doc,Qn(A.doc,U),U);E=U+$.size,_.push($)}return _}var cu=null;function zc(A){cu?cu.ops.push(A):A.ownsGroup=cu={ops:[A],delayedCallbacks:[]}}function Bp(A){var h=A.delayedCallbacks,x=0;do{for(;x<h.length;x++)h[x].call(null);for(var _=0;_<A.ops.length;_++){var E=A.ops[_];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<h.length)}function hh(A,h){var x=A.ownsGroup;if(x)try{Bp(x)}finally{cu=null,h(x)}}var hi=null;function Do(A,h){var x=Ur(A,h);if(x.length){var _=Array.prototype.slice.call(arguments,2),E;cu?E=cu.delayedCallbacks:hi?E=hi:(E=hi=[],setTimeout(Ym,0));for(var U=function(J){E.push(function(){return x[J].apply(null,_)})},$=0;$<x.length;++$)U($)}}function Ym(){var A=hi;hi=null;for(var h=0;h<A.length;++h)A[h]()}function fh(A,h,x,_){for(var E=0;E<h.changes.length;E++){var U=h.changes[E];U=="text"?Pi(A,h):U=="gutter"?wo(A,h,x,_):U=="class"?Md(A,h):U=="widget"&&go(A,h,_)}h.changes=null}function Ku(A){return A.node==A.text&&(A.node=Ce("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),p&&g<8&&(A.node.style.zIndex=2)),A.node}function aa(A,h){var x=h.bgClass?h.bgClass+" "+(h.line.bgClass||""):h.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),h.background)x?h.background.className=x:(h.background.parentNode.removeChild(h.background),h.background=null);else if(x){var _=Ku(h);h.background=_.insertBefore(Ce("div",null,x),_.firstChild),A.display.input.setUneditable(h.background)}}function ph(A,h){var x=A.display.externalMeasured;return x&&x.line==h.line?(A.display.externalMeasured=null,h.measure=x.measure,x.built):Rc(A,h)}function Pi(A,h){var x=h.text.className,_=ph(A,h);h.text==h.node&&(h.node=_.pre),h.text.parentNode.replaceChild(_.pre,h.text),h.text=_.pre,_.bgClass!=h.bgClass||_.textClass!=h.t
Line truncated
|
||||
top: `+ar+"px; width: "+(Or??ae-Fn)+`px;
|
||||
height: `+(yr-ar)+"px"))}function qe(Fn,ar,Or){var yr=Qn(E,Fn),oi=yr.text.length,ko,Da;function Aa(Ja,bl){return on(A,Kt(Fn,Ja),"div",yr,bl)}function Sa(Ja,bl,Vs){var ms=co(A,yr,null,Ja),es=bl=="ltr"==(Vs=="after")?"left":"right",na=Vs=="after"?ms.begin:ms.end-(/\s/.test(yr.text.charAt(ms.end-1))?2:1);return Aa(na,es)[es]}var Xa=En(yr,E.direction);return Et(Xa,ar||0,Or??oi,function(Ja,bl,Vs,ms){var es=Vs=="ltr",na=Aa(Ja,es?"left":"right"),gs=Aa(bl-1,es?"right":"left"),Qd=ar==null&&Ja==0,RA=Or==null&&bl==oi,Ks=ms==0,LA=!Xa||ms==Xa.length-1;if(gs.top-na.top<=3){var Ps=(pe?Qd:RA)&&Ks,a0=(pe?RA:Qd)&&LA,lA=Ps?J:(es?na:gs).left,_c=a0?ae:(es?gs:na).right;We(lA,na.top,_c-lA,na.bottom)}else{var Ua,Hs,$d,zA;es?(Ua=pe&&Qd&&Ks?J:na.left,Hs=pe?ae:Sa(Ja,Vs,"before"),$d=pe?J:Sa(bl,Vs,"after"),zA=pe&&RA&&LA?ae:gs.right):(Ua=pe?Sa(Ja,Vs,"before"):J,Hs=!pe&&Qd&&Ks?ae:na.right,$d=!pe&&RA&&LA?J:gs.left,zA=pe?Sa(bl,Vs,"after"):ae),We(Ua,na.top,Hs-Ua,na.bottom),na.bottom<gs.top&&We(J,na.bottom,null,gs.top),We($d,gs.top,zA-$d,gs.bottom)}(!ko||IA(na,ko)<0)&&(ko=na),IA(gs,ko)<0&&(ko=gs),(!Da||IA(na,Da)<0)&&(Da=na),IA(gs,Da)<0&&(Da=gs)}),{start:ko,end:Da}}var wt=h.from(),gt=h.to();if(wt.line==gt.line)qe(wt.line,wt.ch,gt.ch);else{var Ut=Qn(E,wt.line),cn=Qn(E,gt.line),Bn=Yr(Ut)==Yr(cn),Gn=qe(wt.line,wt.ch,Bn?Ut.text.length+1:null).end,Cn=qe(gt.line,Bn?0:null,gt.ch).start;Bn&&(Gn.top<Cn.top-2?(We(Gn.right,Gn.top,null,Gn.bottom),We(J,Cn.top,Cn.left,Cn.bottom)):We(Gn.right,Gn.top,Cn.left-Gn.right,Gn.bottom)),Gn.bottom<Cn.top&&We(J,Gn.bottom,null,Cn.top)}x.appendChild(U)}function Fu(A){if(A.state.focused){var h=A.display;clearInterval(h.blinker);var x=!0;h.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?h.blinker=setInterval(function(){A.hasFocus()||cc(A),h.cursorDiv.style.visibility=(x=!x)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(h.cursorDiv.style.visibility="hidden")}}function mu(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||kf(A))}function TA(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&cc(A))},100)}function kf(A,h){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Te(A,"focus",A,h),A.state.focused=!0,He(A.display.wrapper,"CodeMirror-focused"),!A.curOp&&A.display.selForContextMenu!=A.doc.sel&&(A.display.input.reset(),b&&setTimeout(function(){return A.display.input.reset(!0)},20)),A.display.input.receivedFocus()),Fu(A))}function cc(A,h){A.state.delayingBlurEvent||(A.state.focused&&(Te(A,"blur",A,h),A.state.focused=!1,ft(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Du(A){for(var h=A.display,x=h.lineDiv.offsetTop,_=Math.max(0,h.scroller.getBoundingClientRect().top),E=h.lineDiv.getBoundingClientRect().top,U=0,$=0;$<h.view.length;$++){var J=h.view[$],ae=A.options.lineWrapping,pe=void 0,We=0;if(!J.hidden){if(E+=J.line.height,p&&g<8){var qe=J.node.offsetTop+J.node.offsetHeight;pe=qe-x,x=qe}else{var wt=J.node.getBoundingClientRect();pe=wt.bottom-wt.top,!ae&&J.text.firstChild&&(We=J.text.firstChild.getBoundingClientRect().right-wt.left-1)}var gt=J.line.height-pe;if((gt>.005||gt<-.005)&&(E<_&&(U-=gt),Ji(J.line,pe),yo(J.line),J.rest))for(var Ut=0;Ut<J.rest.length;Ut++)yo(J.rest[Ut]);if(We>A.display.sizerWidth){var cn=Math.ceil(We/fu(A.display));cn>A.display.maxLineLength&&(A.display.maxLineLength=cn,A.display.maxLine=J.line,A.display.maxLineChanged=!0)}}}Math.abs(U)>2&&(h.scroller.scrollTop+=U)}function yo(A){if(A.widgets)for(var h=0;h<A.widgets.length;++h){var x=A.widgets[h],_=x.node.parentNode;_&&(x.height=_.offsetHeight)}}function gu(A,h,x){var _=x&&x.top!=null?Math.max(0,x.top):A.scroller.scrollTop;_=Math.floor(_-EA(A));var E=x&&x.bottom!=null?x.bottom:_+A.wrapper.clientHeight,U=$e(h,_),$=$e(h,E);if(x&&x.ensure){var J=x.ensure.from.line,ae=x.ensure.to.line;J<U?(U=J,$=$e(h,Ia(Qn(h,J))+A.wrapper.clientHeight)):Math.min(ae,h.lastLine())>=$&&(U=$e(h,Ia(Qn(h,ae))-A.wrapper.clientHeight),$=ae)}return{from:U,to:Math.max($,U+1)}}function Qc(A,h){if(!de(A,"scrollCursorIntoView")){var x=A.display,_=x.sizer.getBoundingClientRect(),E=null,U=x.wrapper.ownerDocument;if(h.top+_.top<0?E=!0:h.bottom+_.top>(U.defaultView.innerHeight||U.documentElement.clientHeight)&&(E=!1),E!=null&&!Q){var $=Ce("div","",null,`position: absolute;
|
||||
top: `+(h.top-x.viewOffset-EA(A.display))+`px;
|
||||
height: `+(h.bottom-h.top+du(A)+x.barHeight)+`px;
|
||||
left: `+h.left+"px; width: "+Math.max(2,h.right-h.left)+"px;");A.display.lineSpace.appendChild($),$.scrollIntoView(E),A.display.lineSpace.removeChild($)}}}function Ip(A,h,x,_){_==null&&(_=0);var E;!A.options.lineWrapping&&h==x&&(x=h.sticky=="before"?Kt(h.line,h.ch+1,"before"):h,h=h.ch?Kt(h.line,h.sticky=="before"?h.ch-1:h.ch,"after"):h);for(var U=0;U<5;U++){var $=!1,J=Lt(A,h),ae=!x||x==h?J:Lt(A,x);E={left:Math.min(J.left,ae.left),top:Math.min(J.top,ae.top)-_,right:Math.max(J.left,ae.left),bottom:Math.max(J.bottom,ae.bottom)+_};var pe=kd(A,E),We=A.doc.scrollTop,qe=A.doc.scrollLeft;if(pe.scrollTop!=null&&(dc(A,pe.scrollTop),Math.abs(A.doc.scrollTop-We)>1&&($=!0)),pe.scrollLeft!=null&&($o(A,pe.scrollLeft),Math.abs(A.doc.scrollLeft-qe)>1&&($=!0)),!$)break}return E}function If(A,h){var x=kd(A,h);x.scrollTop!=null&&dc(A,x.scrollTop),x.scrollLeft!=null&&$o(A,x.scrollLeft)}function kd(A,h){var x=A.display,_=Jo(A.display);h.top<0&&(h.top=0);var E=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:x.scroller.scrollTop,U=Wc(A),$={};h.bottom-h.top>U&&(h.bottom=h.top+U);var J=A.doc.height+gh(x),ae=h.top<_,pe=h.bottom>J-_;if(h.top<E)$.scrollTop=ae?0:h.top;else if(h.bottom>E+U){var We=Math.min(h.top,(pe?J:h.bottom)-U);We!=E&&($.scrollTop=We)}var qe=A.options.fixedGutter?0:x.gutters.offsetWidth,wt=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:x.scroller.scrollLeft-qe,gt=Pu(A)-x.gutters.offsetWidth,Ut=h.right-h.left>gt;return Ut&&(h.right=h.left+gt),h.left<10?$.scrollLeft=0:h.left<wt?$.scrollLeft=Math.max(0,h.left+qe-(Ut?0:10)):h.right>gt+wt-3&&($.scrollLeft=h.right+(Ut?0:10)-gt),$}function _h(A,h){h!=null&&(Er(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+h)}function to(A){Er(A);var h=A.getCursor();A.curOp.scrollToPos={from:h,to:h,margin:A.options.cursorScrollMargin}}function ea(A,h,x){(h!=null||x!=null)&&Er(A),h!=null&&(A.curOp.scrollLeft=h),x!=null&&(A.curOp.scrollTop=x)}function gr(A,h){Er(A),A.curOp.scrollToPos=h}function Er(A){var h=A.curOp.scrollToPos;if(h){A.curOp.scrollToPos=null;var x=dr(A,h.from),_=dr(A,h.to);KA(A,x,_,h.margin)}}function KA(A,h,x,_){var E=kd(A,{left:Math.min(h.left,x.left),top:Math.min(h.top,x.top)-_,right:Math.max(h.right,x.right),bottom:Math.max(h.bottom,x.bottom)+_});ea(A,E.scrollLeft,E.scrollTop)}function dc(A,h){Math.abs(A.doc.scrollTop-h)<2||(i||_l(A,{top:h}),$c(A,h,!0),i&&_l(A),hc(A,100))}function $c(A,h,x){h=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,h)),!(A.display.scroller.scrollTop==h&&!x)&&(A.doc.scrollTop=h,A.display.scrollbars.setScrollTop(h),A.display.scroller.scrollTop!=h&&(A.display.scroller.scrollTop=h))}function $o(A,h,x,_){h=Math.max(0,Math.min(h,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((x?h==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-h)<2)&&!_)&&(A.doc.scrollLeft=h,f(A),A.display.scroller.scrollLeft!=h&&(A.display.scroller.scrollLeft=h),A.display.scrollbars.setScrollLeft(h))}function iA(A){var h=A.display,x=h.gutters.offsetWidth,_=Math.round(A.doc.height+gh(A.display));return{clientHeight:h.scroller.clientHeight,viewHeight:h.wrapper.clientHeight,scrollWidth:h.scroller.scrollWidth,clientWidth:h.scroller.clientWidth,viewWidth:h.wrapper.clientWidth,barLeft:A.options.fixedGutter?x:0,docHeight:_,scrollHeight:_+du(A)+h.barHeight,nativeBarWidth:h.nativeBarWidth,gutterWidth:x}}var va=function(A,h,x){this.cm=x;var _=this.vert=Ce("div",[Ce("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Ce("div",[Ce("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");_.tabIndex=E.tabIndex=-1,A(_),A(E),Tt(_,"scroll",function(){_.clientHeight&&h(_.scrollTop,"vertical")}),Tt(E,"scroll",function(){E.clientWidth&&h(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};va.prototype.update=function(A){var h=A.scrollWidth>A.clientWidth+1,x=A.scrollHeight>A.clientHeight+1,_=A.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=h?_+"px":"0";var E=A.viewHeight-(h?_:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+E)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(h){this.horiz.style.display="block",this.horiz.style.right=x?_+"px":"0",this.horiz.style.left=A.barLeft+"px";var U=A.viewWidth-A.barLeft-(x?_:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+U)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(_==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?_:0,bottom:h?_:0}},va.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},va.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&&this.enab
Line truncated
|
||||
`},setDirection:sa(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(h){return h.order=null}),this.cm&&In(this.cm))})}),ps.prototype.eachLine=ps.prototype.iter;var Kp=0;function Pp(A){var h=this;if(Zm(h),!(de(h,A)||Il(h.display,A))){Xe(A),p&&(Kp=+new Date);var x=yl(h,A,!0),_=A.dataTransfer.files;if(!(!x||h.isReadOnly()))if(_&&_.length&&window.FileReader&&window.File)for(var E=_.length,U=Array(E),$=0,J=function(){++$==E&&no(h,function(){x=Br(h.doc,x);var gt={from:x,to:x,text:h.doc.splitLines(U.filter(function(Ut){return Ut!=null}).join(h.doc.lineSeparator())),origin:"paste"};ql(h.doc,gt),Bo(h.doc,je(Br(h.doc,x),Br(h.doc,ct(gt))))})()},ae=function(gt,Ut){if(h.options.allowDropFileTypes&&Pe(h.options.allowDropFileTypes,gt.type)==-1){J();return}var cn=new FileReader;cn.onerror=function(){return J()},cn.onload=function(){var Bn=cn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Bn)){J();return}U[Ut]=Bn,J()},cn.readAsText(gt)},pe=0;pe<_.length;pe++)ae(_[pe],pe);else{if(h.state.draggingText&&h.doc.sel.contains(x)>-1){h.state.draggingText(A),setTimeout(function(){return h.display.input.focus()},20);return}try{var We=A.dataTransfer.getData("Text");if(We){var qe;if(h.state.draggingText&&!h.state.draggingText.copy&&(qe=h.listSelections()),ho(h.doc,je(x,x)),qe)for(var wt=0;wt<qe.length;++wt)zu(h.doc,"",qe[wt].anchor,qe[wt].head,"drag");h.replaceSelection(We,"around","paste"),h.display.input.focus()}}catch{}}}}function Hm(A,h){if(p&&(!A.state.draggingText||+new Date-Kp<100)){Ve(h);return}if(!(de(A,h)||Il(A.display,h))&&(h.dataTransfer.setData("Text",A.getSelection()),h.dataTransfer.effectAllowed="copyMove",h.dataTransfer.setDragImage&&!Z)){var x=Ce("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",R&&(x.width=x.height=1,A.display.wrapper.appendChild(x),x._top=x.offsetTop),h.dataTransfer.setDragImage(x,0,0),R&&x.parentNode.removeChild(x)}}function ji(A,h){var x=yl(A,h);if(x){var _=document.createDocumentFragment();Ac(A,x,_),A.display.dragCursor||(A.display.dragCursor=Ce("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),rt(A.display.dragCursor,_)}}function Zm(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function Xm(A){if(document.getElementsByClassName){for(var h=document.getElementsByClassName("CodeMirror"),x=[],_=0;_<h.length;_++){var E=h[_].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var U=0;U<x.length;U++)A(x[U])})}}var Bh=!1;function Fp(){Bh||(B1(),Bh=!0)}function B1(){var A;Tt(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,Xm(Jm)},100))}),Tt(window,"blur",function(){return Xm(cc)})}function Jm(A){var h=A.display;h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.scrollbarsClipped=!1,A.setSize()}for(var Ma={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"},al=0;al<10;al++)Ma[al+48]=Ma[al+96]=String(al);for(var Zc=65;Zc<=90;Zc++)Ma[Zc]=String.fromCharCode(Zc);for(var Ud=1;Ud<=12;Ud++)Ma[Ud+111]=Ma[Ud+63235]="F"+Ud;var sA={};sA.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"},sA.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"},sA.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-K":"kiLine truncated
|
||||
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function yc(A,h){var x=Qn(A.doc,h),_=Yr(x);return _!=x&&(h=ge(_)),Lf(!0,A,_,h,1)}function I1(A,h){var x=Qn(A.doc,h),_=Gi(x);return _!=x&&(h=ge(_)),Lf(!0,A,x,h,-1)}function e0(A,h){var x=yc(A,h.line),_=Qn(A.doc,x.line),E=En(_,A.doc.direction);if(!E||E[0].level==0){var U=Math.max(x.ch,_.text.search(/\S/)),$=h.line==x.line&&h.ch<=U&&h.ch;return Kt(x.line,$?0:U,x.sticky)}return x}function td(A,h,x){if(typeof h=="string"&&(h=zf[h],!h))return!1;A.display.input.ensurePolled();var _=A.display.shift,E=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),x&&(A.display.shift=!1),E=h(A)!=nt}finally{A.display.shift=_,A.state.suppressEdits=!1}return E}function tv(A,h,x){for(var _=0;_<A.state.keyMaps.length;_++){var E=Cu(h,A.state.keyMaps[_],x,A);if(E)return E}return A.options.extraKeys&&Cu(h,A.options.extraKeys,x,A)||Cu(h,A.options.keyMap,x,A)}var Ih=new be;function jf(A,h,x,_){var E=A.state.keySeq;if(E){if(Dp(h))return"handled";if(/\'$/.test(h)?A.state.keySeq=null:Ih.set(50,function(){A.state.keySeq==E&&(A.state.keySeq=null,A.display.input.reset())}),ua(A,E+" "+h,x,_))return!0}return ua(A,h,x,_)}function ua(A,h,x,_){var E=tv(A,h,_);return E=="multi"&&(A.state.keySeq=h),E=="handled"&&Do(A,"keyHandled",A,h,x),(E=="handled"||E=="multi")&&(Xe(x),Fu(A)),!!E}function Th(A,h){var x=Xc(h,!0);return x?h.shiftKey&&!A.state.keySeq?jf(A,"Shift-"+x,h,function(_){return td(A,_,!0)})||jf(A,x,h,function(_){if(typeof _=="string"?/^go[A-Z]/.test(_):_.motion)return td(A,_)}):jf(A,x,h,function(_){return td(A,_)}):!1}function T1(A,h,x){return jf(A,"'"+x+"'",h,function(_){return td(A,_,!0)})}var Rd=null;function Kh(A){var h=this;if(!(A.target&&A.target!=h.display.input.getField())&&(h.curOp.focus=Qt(mt(h)),!de(h,A))){p&&g<11&&A.keyCode==27&&(A.returnValue=!1);var x=A.keyCode;h.display.shift=x==16||A.shiftKey;var _=Th(h,A);R&&(Rd=_?x:null,!_&&x==88&&!Rr&&(ce?A.metaKey:A.ctrlKey)&&h.replaceSelection("",null,"cut")),i&&!ce&&!_&&x==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(h.display.lineDiv.className)&&qs(h)}}function qs(A){var h=A.display.lineDiv;He(h,"CodeMirror-crosshair");function x(_){(_.keyCode==18||!_.altKey)&&(ft(h,"CodeMirror-crosshair"),Wn(document,"keyup",x),Wn(document,"mouseover",x))}Tt(document,"keyup",x),Tt(document,"mouseover",x)}function Wu(A){A.keyCode==16&&(this.doc.sel.shift=!1),de(this,A)}function t0(A){var h=this;if(!(A.target&&A.target!=h.display.input.getField())&&!(Il(h.display,A)||de(h,A)||A.ctrlKey&&!A.altKey||ce&&A.metaKey)){var x=A.keyCode,_=A.charCode;if(R&&x==Rd){Rd=null,Xe(A);return}if(!(R&&(!A.which||A.which<10)&&Th(h,A))){var E=String.fromCharCode(_??x);E!="\b"&&(T1(h,A,E)||h.display.input.onKeyPress(A))}}}var Wf=400,nd=function(A,h,x){this.time=A,this.pos=h,this.button=x};nd.prototype.compare=function(A,h,x){return this.time+Wf>A&&Mn(h,this.pos)==0&&x==this.button};var Nu,Ld;function K1(A,h){var x=+new Date;return Ld&&Ld.compare(x,A,h)?(Nu=Ld=null,"triple"):Nu&&Nu.compare(x,A,h)?(Ld=new nd(x,A,h),Nu=null,"double"):(Nu=new nd(x,A,h),Ld=null,"single")}function n0(A){var h=this,x=h.display;if(!(de(h,A)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=A.shiftKey,Il(x,A)){b||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!jd(h,A)){var _=yl(h,A),E=Zt(A),U=_?K1(_,E):"single";kt(h).focus(),E==1&&h.state.selectingText&&h.state.selectingText(A),!(_&&Ph(h,E,_,U,A))&&(E==1?_?zd(h,_,U,A):_t(A)==x.scroller&&Xe(A):E==2?(_&&Pl(h.doc,_),setTimeout(function(){return x.input.focus()},20)):E==3&&(Ne?h.display.input.onContextMenu(A):TA(h)))}}}function Ph(A,h,x,_,E){var U="Click";return _=="double"?U="Double"+U:_=="triple"&&(U="Triple"+U),U=(h==1?"Left":h==2?"Middle":"Right")+U,jf(A,Uf(U,E),E,function($){if(typeof $=="string"&&($=zf[$]),!$)return!1;var J=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),J=$(A,x)!=nt}finally{A.state.suppressEdits=!1}return J})}function Fh(A,h,x){var _=A.getOption("configureMouse"),E=_?_(A,h,x):{};if(E.unit==null){var U=se?x.shiftKey&&x.metaKey:x.altKey;E.unit=U?"rectangle":h=="single"?"char":h=="double"?"word":"line"}return(E.extend==null||A.doc.extend)&&(E.extend=A.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=ce?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(ce?x.altKey:x.ctrlKey)),E}function zd(A,h,x,_){p?setTimeout(Pt(mu,A),0):A.curOp.focus=Qt(mt(A));var E=Fh(A,x,_),U=A.doc.sel,$;A.options.dragDrop&&Ht&&!A.isReadOnly()&&x=="single"&&($=U.contains(h))>-1&&(Mn(($=U.ranges[$]).from(),h)<0||h.xRel>0)&&(Mn($.to(),h)>0||h.xRel<0)?nv(A,_,h,E):Up(A,_,h,E)}function nv(A,h,x,_){var E=A.display,U=!1,$=no(A,function(pe){b&&(E.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:TA(A)),Wn(E.wrapper.ownerDocument,"mouseup",$),Wn(E.wrapper.ownerDocument,"mousemove",J),Wn(E.scroller,"dragstart",ae),Wn(E.scroller,"drop",$)
Line truncated
|
||||
`)==h){if(_.ranges.length%_u.text.length==0){pe=[];for(var We=0;We<_u.text.length;We++)pe.push(U.splitLines(_u.text[We]))}}else ae.length==_.ranges.length&&A.options.pasteLinesPerSelection&&(pe=Jn(ae,function(Gn){return[Gn]}));for(var qe=A.curOp.updateInput,wt=_.ranges.length-1;wt>=0;wt--){var gt=_.ranges[wt],Ut=gt.from(),cn=gt.to();gt.empty()&&(x&&x>0?Ut=Kt(Ut.line,Ut.ch-x):A.state.overwrite&&!J?cn=Kt(cn.line,Math.min(Qn(U,cn.line).text.length,cn.ch+bn(ae).length)):J&&_u&&_u.lineWise&&_u.text.join(`
|
||||
`)==ae.join(`
|
||||
`)&&(Ut=cn=Kt(Ut.line,0)));var Bn={from:Ut,to:cn,text:pe?pe[wt%pe.length]:ae,origin:E||(J?"paste":A.state.cutIncoming>$?"cut":"+input")};ql(A.doc,Bn),Do(A,"inputRead",A,Bn)}h&&!J&&Np(A,h),to(A),A.curOp.updateInput<2&&(A.curOp.updateInput=qe),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function UA(A,h){var x=A.clipboardData&&A.clipboardData.getData("Text");if(x)return A.preventDefault(),!h.isReadOnly()&&!h.options.disableInput&&h.hasFocus()&&Ka(h,function(){return i0(h,x,0,null,"paste")}),!0}function Np(A,h){if(!(!A.options.electricChars||!A.options.smartIndent))for(var x=A.doc.sel,_=x.ranges.length-1;_>=0;_--){var E=x.ranges[_];if(!(E.head.ch>100||_&&x.ranges[_-1].head.line==E.head.line)){var U=A.getModeAt(E.head),$=!1;if(U.electricChars){for(var J=0;J<U.electricChars.length;J++)if(h.indexOf(U.electricChars.charAt(J))>-1){$=Uh(A,E.head.line,"smart");break}}else U.electricInput&&U.electricInput.test(Qn(A.doc,E.head.line).text.slice(0,E.head.ch))&&($=Uh(A,E.head.line,"smart"));$&&Do(A,"electricInput",A,E.head.line)}}}function Rh(A){for(var h=[],x=[],_=0;_<A.doc.sel.ranges.length;_++){var E=A.doc.sel.ranges[_].head.line,U={anchor:Kt(E,0),head:Kt(E+1,0)};x.push(U),h.push(A.getRange(U.anchor,U.head))}return{text:h,ranges:x}}function vc(A,h,x,_){A.setAttribute("autocorrect",x?"on":"off"),A.setAttribute("autocapitalize",_?"on":"off"),A.setAttribute("spellcheck",!!h)}function Gd(){var A=Ce("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),h=Ce("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return b?A.style.width="1000px":A.setAttribute("wrap","off"),q&&(A.style.border="1px solid black"),h}function Lh(A){var h=A.optionHandlers,x=A.helpers={};A.prototype={constructor:A,focus:function(){kt(this).focus(),this.display.input.focus()},setOption:function(_,E){var U=this.options,$=U[_];U[_]==E&&_!="mode"||(U[_]=E,h.hasOwnProperty(_)&&no(this,h[_])(this,E,$),Te(this,"optionChange",this,_))},getOption:function(_){return this.options[_]},getDoc:function(){return this.doc},addKeyMap:function(_,E){this.state.keyMaps[E?"push":"unshift"](kh(_))},removeKeyMap:function(_){for(var E=this.state.keyMaps,U=0;U<E.length;++U)if(E[U]==_||E[U].name==_)return E.splice(U,1),!0},addOverlay:jr(function(_,E){var U=_.token?_:A.getMode(this.options,_);if(U.startState)throw new Error("Overlays may not be stateful.");mr(this.state.overlays,{mode:U,modeSpec:_,opaque:E&&E.opaque,priority:E&&E.priority||0},function($){return $.priority}),this.state.modeGen++,wa(this)}),removeOverlay:jr(function(_){for(var E=this.state.overlays,U=0;U<E.length;++U){var $=E[U].modeSpec;if($==_||typeof _=="string"&&$.name==_){E.splice(U,1),this.state.modeGen++,wa(this);return}}}),indentLine:jr(function(_,E,U){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Xt(this.doc,_)&&Uh(this,_,E,U)}),indentSelection:jr(function(_){for(var E=this.doc.sel.ranges,U=-1,$=0;$<E.length;$++){var J=E[$];if(J.empty())J.head.line>U&&(Uh(this,J.head.line,_,!0),U=J.head.line,$==this.doc.sel.primIndex&&to(this));else{var ae=J.from(),pe=J.to(),We=Math.max(U,ae.line);U=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var qe=We;qe<U;++qe)Uh(this,qe,_);var wt=this.doc.sel.ranges;ae.ch==0&&E.length==wt.length&&wt[$].from().ch>0&&Is(this.doc,$,new Fe(ae,wt[$].to()),xt)}}}),getTokenAt:function(_,E){return tc(this,_,E)},getLineTokens:function(_,E){return tc(this,Kt(_),E,!0)},getTokenTypeAt:function(_){_=Br(this.doc,_);var E=Ws(this,Qn(this.doc,_.line)),U=0,$=(E.length-1)/2,J=_.ch,ae;if(J==0)ae=E[2];else for(;;){var pe=U+$>>1;if((pe?E[pe*2-1]:0)>=J)$=pe;else if(E[pe*2+1]<J)U=pe+1;else{ae=E[pe*2+2];break}}var We=ae?ae.indexOf("overlay "):-1;return We<0?ae:We==0?null:ae.slice(0,We-1)},getModeAt:function(_){var E=this.doc.mode;return E.innerMode?A.innerMode(E,this.getTokenAt(_).state).mode:E},getHelper:function(_,E){return this.getHelpers(_,E)[0]},getHelpers:function(_,E){var U=[];if(!x.hasOwnProperty(E))return U;var $=x[E],J=this.getModeAt(_);if(typeof J[E]=="string")$[J[E]]&&U.push($[J[E]]);else if(J[E])for(var ae=0;ae<J[E].length;ae++){var pe=$[J[E][ae]];pe&&U.push(pe)}else J.helperType&&$[J.helperType]?U.push($[J.helperType]):$[J.name]&&U.push($[J.name]);for(var We=0;We<$._global.length;We++){var qe=$._global[We];qe.pred(J,this)&&Pe(U,qe.val)==-1&&U.push(qe.val)}return U},getStateAfter:function(_,E){var U=this.doc;return _=$a(U,_??U.first+U.size-1),qa(this,_+1,E).state},cursorCoords:function(_,E){var U,$=this.doc.sel.primary();return _==null?U=$.head:typeof _=="object"?U=Br(this.doc,_):U=_?$.from():$.to(),Lt(this,U,E||"page")},charCoords:function(_,E){return on(this,Br(this.doc,_),E||"page")},coordsChar:function(_,E){return _=bt(this,_,E||"page"),eo(this,_.left,_.top)},lineAtHeight:function(_,E){return _=bt(this,{top:_,left:0},E||"page").top,$e(this.doc,_+this.display.viewOffset)},heightAtLine:function(_,E,U){v
Line truncated
|
||||
`,Bn=we(cn,gt)?"w":wt&&cn==`
|
||||
`?"n":!wt||/\s/.test(cn)?null:"p";if(wt&&!Ut&&!Bn&&(Bn="s"),qe&&qe!=Bn){x<0&&(x=1,We(),h.sticky="after");break}if(Bn&&(qe=Bn),x>0&&!We(!Ut))break}var Gn=mc(A,h,U,$,!0);return cr(U,Gn)&&(Gn.hitSide=!0),Gn}function zh(A,h,x,_){var E=A.doc,U=h.left,$;if(_=="page"){var J=Math.min(A.display.wrapper.clientHeight,kt(A).innerHeight||E(A).documentElement.clientHeight),ae=Math.max(J-.5*Jo(A.display),3);$=(x>0?h.bottom:h.top)+x*ae}else _=="line"&&($=x>0?h.bottom+3:h.top-3);for(var pe;pe=eo(A,U,$),!!pe.outside;){if(x<0?$<=0:$>=E.height){pe.hitSide=!0;break}$+=x*5}return pe}var Co=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Co.prototype.init=function(A){var h=this,x=this,_=x.cm,E=x.div=A.lineDiv;E.contentEditable=!0,vc(E,_.options.spellcheck,_.options.autocorrect,_.options.autocapitalize);function U(J){for(var ae=J.target;ae;ae=ae.parentNode){if(ae==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ae.className))break}return!1}Tt(E,"paste",function(J){!U(J)||de(_,J)||UA(J,_)||g<=11&&setTimeout(no(_,function(){return h.updateFromDOM()}),20)}),Tt(E,"compositionstart",function(J){h.composing={data:J.data,done:!1}}),Tt(E,"compositionupdate",function(J){h.composing||(h.composing={data:J.data,done:!1})}),Tt(E,"compositionend",function(J){h.composing&&(J.data!=h.composing.data&&h.readFromDOMSoon(),h.composing.done=!0)}),Tt(E,"touchstart",function(){return x.forceCompositionEnd()}),Tt(E,"input",function(){h.composing||h.readFromDOMSoon()});function $(J){if(!(!U(J)||de(_,J))){if(_.somethingSelected())Wp({lineWise:!1,text:_.getSelections()}),J.type=="cut"&&_.replaceSelection("",null,"cut");else if(_.options.lineWiseCopyCut){var ae=Rh(_);Wp({lineWise:!0,text:ae.text}),J.type=="cut"&&_.operation(function(){_.setSelections(ae.ranges,0,xt),_.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var pe=_u.text.join(`
|
||||
`);if(J.clipboardData.setData("Text",pe),J.clipboardData.getData("Text")==pe){J.preventDefault();return}}var We=Gd(),qe=We.firstChild;vc(qe),_.display.lineSpace.insertBefore(We,_.display.lineSpace.firstChild),qe.value=_u.text.join(`
|
||||
`);var wt=Qt(dt(E));tt(qe),setTimeout(function(){_.display.lineSpace.removeChild(We),wt.focus(),wt==E&&x.showPrimarySelection()},50)}}Tt(E,"copy",$),Tt(E,"cut",$)},Co.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},Co.prototype.prepareSelection=function(){var A=Nn(this.cm,!1);return A.focus=Qt(dt(this.div))==this.div,A},Co.prototype.showSelection=function(A,h){!A||!this.cm.display.view.length||((A.focus||h)&&this.showPrimarySelection(),this.showMultipleSelections(A))},Co.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Co.prototype.showPrimarySelection=function(){var A=this.getSelection(),h=this.cm,x=h.doc.sel.primary(),_=x.from(),E=x.to();if(h.display.viewTo==h.display.viewFrom||_.line>=h.display.viewTo||E.line<h.display.viewFrom){A.removeAllRanges();return}var U=Ts(h,A.anchorNode,A.anchorOffset),$=Ts(h,A.focusNode,A.focusOffset);if(!(U&&!U.bad&&$&&!$.bad&&Mn(ya(U,$),_)==0&&Mn(ii(U,$),E)==0)){var J=h.display.view,ae=_.line>=h.display.viewFrom&&rd(h,_)||{node:J[0].measure.map[2],offset:0},pe=E.line<h.display.viewTo&&rd(h,E);if(!pe){var We=J[J.length-1].measure,qe=We.maps?We.maps[We.maps.length-1]:We.map;pe={node:qe[qe.length-1],offset:qe[qe.length-2]-qe[qe.length-3]}}if(!ae||!pe){A.removeAllRanges();return}var wt=A.rangeCount&&A.getRangeAt(0),gt;try{gt=jt(ae.node,ae.offset,pe.offset,pe.node)}catch{}gt&&(!i&&h.state.focused?(A.collapse(ae.node,ae.offset),gt.collapsed||(A.removeAllRanges(),A.addRange(gt))):(A.removeAllRanges(),A.addRange(gt)),wt&&A.anchorNode==null?A.addRange(wt):i&&this.startGracePeriod()),this.rememberSelection()}},Co.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)},Co.prototype.showMultipleSelections=function(A){rt(this.cm.display.cursorDiv,A.cursors),rt(this.cm.display.selectionDiv,A.selection)},Co.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},Co.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var h=A.getRangeAt(0).commonAncestorContainer;return tn(this.div,h)},Co.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Qt(dt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Co.prototype.blur=function(){this.div.blur()},Co.prototype.getField=function(){return this.div},Co.prototype.supportsTouch=function(){return!0},Co.prototype.receivedFocus=function(){var A=this,h=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):Ka(this.cm,function(){return h.cm.curOp.selectionChanged=!0});function x(){h.cm.state.focused&&(h.pollSelection(),h.polling.set(h.cm.options.pollInterval,x))}this.polling.set(this.cm.options.pollInterval,x)},Co.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},Co.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),h=this.cm;if(oe&&k&&this.cm.display.gutterSpecs.length&&Qf(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Ts(h,A.anchorNode,A.anchorOffset),_=Ts(h,A.focusNode,A.focusOffset);x&&_&&Ka(h,function(){Ei(h.doc,je(x,_),xt),(x.bad||_.bad)&&(h.curOp.selectionChanged=!0)})}}},Co.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,h=A.display,x=A.doc.sel.primary(),_=x.from(),E=x.to();if(_.ch==0&&_.line>A.firstLine()&&(_=Kt(_.line-1,Qn(A.doc,_.line-1).length)),E.ch==Qn(A.doc,E.line).text.length&&E.line<A.lastLine()&&(E=Kt(E.line+1,0)),_.line<h.viewFrom||E.line>h.viewTo-1)return!1;var U,$,J;_.line==h.viewFrom||(U=kA(A,_.line))==0?($=ge(h.view[0].line),J=h.view[0].node):($=ge(h.view[U].line),J=h.view[U-1].node.nextSibling);var ae=kA(A,E.line),pe,We;if(ae==h.view.length-1?(pe=h.viewTo-1,We=h.lineDiv.lastChild):(pe=ge(h.view[ae+1].line)-1,We=h.view[ae+1].node.previousSibling),!J)return!1;for(var qe=A.doc.splitLines(U1(A,J,We,$,pe)),wt=so(A.doc,Kt($,0),Kt(pe,Qn(A.doc,pe).text.length));qe.length>1&&wt.length>1;)if(bn(qe)==bn(wt))qe.pop(),wt.pop(),pe--;else if(qe[0]==wt[0])qe.shift(),wt.shift(),$++;else break;for(var gt=0,Ut=0,cn=qe[0],Bn=wt[0],Gn=Math.min(cn.length,Bn.length);gt<Gn&&cn.charCodeAt(gt)==Bn.charCodeAt(gt);)++gt;for(var Cn=bn(qe),Fn=bn(wt),ar=Math.min(Cn.length-(qe.length==1?gt:0),Fn.length-(wt.length==1?gt:0));Ut<ar
Line truncated
|
||||
`),tt(E))}else return;$.type=="cut"&&(_.state.cutIncoming=+new Date)}}Tt(E,"cut",U),Tt(E,"copy",U),Tt(A.scroller,"paste",function($){if(!(Il(A,$)||de(_,$))){if(!E.dispatchEvent){_.state.pasteIncoming=+new Date,x.focus();return}var J=new Event("paste");J.clipboardData=$.clipboardData,E.dispatchEvent(J)}}),Tt(A.lineSpace,"selectstart",function($){Il(A,$)||Xe($)}),Tt(E,"compositionstart",function(){var $=_.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:$,range:_.markText($,_.getCursor("to"),{className:"CodeMirror-composing"})}}),Tt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Fa.prototype.createField=function(A){this.wrapper=Gd(),this.textarea=this.wrapper.firstChild;var h=this.cm.options;vc(this.textarea,h.spellcheck,h.autocorrect,h.autocapitalize)},Fa.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},Fa.prototype.prepareSelection=function(){var A=this.cm,h=A.display,x=A.doc,_=Nn(A);if(A.options.moveInputWithCursor){var E=Lt(A,x.sel.primary().head,"div"),U=h.wrapper.getBoundingClientRect(),$=h.lineDiv.getBoundingClientRect();_.teTop=Math.max(0,Math.min(h.wrapper.clientHeight-10,E.top+$.top-U.top)),_.teLeft=Math.max(0,Math.min(h.wrapper.clientWidth-10,E.left+$.left-U.left))}return _},Fa.prototype.showSelection=function(A){var h=this.cm,x=h.display;rt(x.cursorDiv,A.cursors),rt(x.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},Fa.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var h=this.cm;if(this.resetting=!0,h.somethingSelected()){this.prevInput="";var x=h.getSelection();this.textarea.value=x,h.state.focused&&tt(this.textarea),p&&g>=9&&(this.hasSelection=x)}else A||(this.prevInput=this.textarea.value="",p&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Fa.prototype.getField=function(){return this.textarea},Fa.prototype.supportsTouch=function(){return!1},Fa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||Qt(dt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Fa.prototype.blur=function(){this.textarea.blur()},Fa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Fa.prototype.receivedFocus=function(){this.slowPoll()},Fa.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},Fa.prototype.fastPoll=function(){var A=!1,h=this;h.pollingFast=!0;function x(){var _=h.poll();!_&&!A?(A=!0,h.polling.set(60,x)):(h.pollingFast=!1,h.slowPoll())}h.polling.set(20,x)},Fa.prototype.poll=function(){var A=this,h=this.cm,x=this.textarea,_=this.prevInput;if(this.contextMenuPending||this.resetting||!h.state.focused||Tr(x)&&!_&&!this.composing||h.isReadOnly()||h.options.disableInput||h.state.keySeq)return!1;var E=x.value;if(E==_&&!h.somethingSelected())return!1;if(p&&g>=9&&this.hasSelection===E||ce&&/[\uf700-\uf7ff]/.test(E))return h.display.input.reset(),!1;if(h.doc.sel==h.display.selForContextMenu){var U=E.charCodeAt(0);if(U==8203&&!_&&(_=""),U==8666)return this.reset(),this.cm.execCommand("undo")}for(var $=0,J=Math.min(_.length,E.length);$<J&&_.charCodeAt($)==E.charCodeAt($);)++$;return Ka(h,function(){i0(h,E.slice($),_.length-$,null,A.composing?"*compose":null),E.length>1e3||E.indexOf(`
|
||||
`)>-1?x.value=A.prevInput="":A.prevInput=E,A.composing&&(A.composing.range.clear(),A.composing.range=h.markText(A.composing.start,h.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Fa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Fa.prototype.onKeyPress=function(){p&&g>=9&&(this.hasSelection=null),this.fastPoll()},Fa.prototype.onContextMenu=function(A){var h=this,x=h.cm,_=x.display,E=h.textarea;h.contextMenuPending&&h.contextMenuPending();var U=yl(x,A),$=_.scroller.scrollTop;if(!U||R)return;var J=x.options.resetSelectionOnContextMenu;J&&x.doc.sel.contains(U)==-1&&no(x,Ei)(x.doc,je(U),xt);var ae=E.style.cssText,pe=h.wrapper.style.cssText,We=h.wrapper.offsetParent.getBoundingClientRect();h.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
b`.split(/\n/).length!=3?function(A){for(var f=0,x=[],b=A.length;f<=b;){var E=A.indexOf(`
|
||||
`,f);E==-1&&(E=A.length);var L=A.slice(f,A.charAt(E-1)=="\r"?E-1:E),$=L.indexOf("\r");$!=-1?(x.push(L.slice(0,$)),f+=$+1):(x.push(L),f=E+1)}return x}:function(A){return A.split(/\r\n?|\n/)},Tr=window.getSelection?function(A){try{return A.selectionStart!=A.selectionEnd}catch{return!1}}:function(A){var f;try{f=A.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=A?!1:f.compareEndPoints("StartToEnd",f)!=0},Ur=function(){var A=_e("div");return"oncopy"in A?!0:(A.setAttribute("oncopy","return;"),typeof A.oncopy=="function")}(),Dr=null;function ei(A){if(Dr!=null)return Dr;var f=rt(A,_e("span","x")),x=f.getBoundingClientRect(),b=jt(f,0,1).getBoundingClientRect();return Dr=Math.abs(x.left-b.left)>1}var rr={},li={};function ki(A,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),rr[A]=f}function Xi(A,f){li[A]=f}function xo(A){if(typeof A=="string"&&li.hasOwnProperty(A))A=li[A];else if(A&&typeof A.name=="string"&&li.hasOwnProperty(A.name)){var f=li[A.name];typeof f=="string"&&(f={name:f}),A=Nr(f,A),A.name=f.name}else{if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(A))return xo("application/xml");if(typeof A=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(A))return xo("application/json")}return typeof A=="string"?{name:A}:A||{name:"null"}}function pi(A,f){f=xo(f);var x=rr[f.name];if(!x)return pi(A,"text/plain");var b=x(A,f);if(Oo.hasOwnProperty(f.name)){var E=Oo[f.name];for(var L in E)E.hasOwnProperty(L)&&(b.hasOwnProperty(L)&&(b["_"+L]=b[L]),b[L]=E[L])}if(b.name=f.name,f.helperType&&(b.helperType=f.helperType),f.modeProps)for(var $ in f.modeProps)b[$]=f.modeProps[$];return b}var Oo={};function As(A,f){var x=Oo.hasOwnProperty(A)?Oo[A]:Oo[A]={};Me(f,x)}function Ia(A,f){if(f===!0)return f;if(A.copyState)return A.copyState(f);var x={};for(var b in f){var E=f[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function _i(A,f){for(var x;A.innerMode&&(x=A.innerMode(f),!(!x||x.mode==A));)f=x.state,A=x.mode;return x||{mode:A,state:f}}function Ss(A,f,x){return A.startState?A.startState(f,x):!0}var Si=function(A,f,x){this.pos=this.start=0,this.string=A,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Si.prototype.eol=function(){return this.pos>=this.string.length},Si.prototype.sol=function(){return this.pos==this.lineStart},Si.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Si.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Si.prototype.eat=function(A){var f=this.string.charAt(this.pos),x;if(typeof A=="string"?x=f==A:x=f&&(A.test?A.test(f):A(f)),x)return++this.pos,f},Si.prototype.eatWhile=function(A){for(var f=this.pos;this.eat(A););return this.pos>f},Si.prototype.eatSpace=function(){for(var A=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>A},Si.prototype.skipToEnd=function(){this.pos=this.string.length},Si.prototype.skipTo=function(A){var f=this.string.indexOf(A,this.pos);if(f>-1)return this.pos=f,!0},Si.prototype.backUp=function(A){this.pos-=A},Si.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=he(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Si.prototype.indentation=function(){return he(this.string,null,this.tabSize)-(this.lineStart?he(this.string,this.lineStart,this.tabSize):0)},Si.prototype.match=function(A,f,x){if(typeof A=="string"){var b=function($){return x?$.toLowerCase():$},E=this.string.substr(this.pos,A.length);if(b(E)==b(A))return f!==!1&&(this.pos+=A.length),!0}else{var L=this.string.slice(this.pos).match(A);return L&&L.index>0?null:(L&&f!==!1&&(this.pos+=L[0].length),L)}},Si.prototype.current=function(){return this.string.slice(this.start,this.pos)},Si.prototype.hideFirstChars=function(A,f){this.lineStart+=A;try{return f()}finally{this.lineStart-=A}},Si.prototype.lookAhead=function(A){var f=this.lineOracle;return f&&f.lookAhead(A)},Si.prototype.baseToken=function(){var A=this.lineOracle;return A&&A.baseToken(this.pos)};function Qn(A,f){if(f-=A.first,f<0||f>=A.size)throw new Error("There is no line "+(f+A.first)+" in the document.");for(var x=A;!x.lines;)for(var b=0;;++b){var E=x.children[b],L=E.chunkSize();if(f<L){x=E;break}f-=L}return x.lines[f]}function so(A,f,x){var b=[],E=f.line;return A.iter(f.line,x.line+1,function(L){var $=L.text;E==x.line&&($=$.slice(0,x.ch)),E==f.line&&($=$.slice(f.ch)),b.push($),++E}),b}function Go(A,f,x){var b=[];return A.iter(f,x,function(E){b.push(E.text)}),b}function Ji(A,f){var x=f-A.height;if(x)for(var b=A;b;b=b.parent)b.height+=x}function ge(A){if(A.parent==null)return null;for(var f=A.parent,x=Pe(f.lines,A),b=f.parent;b;f=b,b=b.parent)for(var E=0;b.children[E]!=f;++E)x+=b.children[E].chunkSize();return x+f.first}function $e(A,f){var x=A.first;e:do{for(var b=0;b<A.children.length;++b){
Line truncated
|
||||
`?(dn=We.appendChild(_e("span",wt[0]=="\r"?"␍":"","cm-invalidchar")),dn.setAttribute("cm-text",wt[0]),A.col+=1):(dn=A.cm.options.specialCharPlaceholder(wt[0]),dn.setAttribute("cm-text",wt[0]),h&&g<9?We.appendChild(_e("span",[dn])):We.appendChild(dn),A.col+=1);A.map.push(A.pos,A.pos+1,dn),A.pos++}}if(A.trailingSpace=J.charCodeAt(f.length-1)==32,x||b||E||pe||L||$){var _n=x||"";b&&(_n+=b),E&&(_n+=E);var Fn=_e("span",[We],_n,L);if($)for(var ar in $)$.hasOwnProperty(ar)&&ar!="style"&&ar!="class"&&Fn.setAttribute(ar,$[ar]);return A.content.appendChild(Fn)}A.content.appendChild(We)}}function EA(A,f){if(A.length>1&&!/ /.test(A))return A;for(var x=f,b="",E=0;E<A.length;E++){var L=A.charAt(E);L==" "&&x&&(E==A.length-1||A.charCodeAt(E+1)==32)&&(L=" "),b+=L,x=L==" "}return b}function Qo(A,f){return function(x,b,E,L,$,J,le){E=E?E+" cm-force-border":"cm-force-border";for(var pe=x.pos,We=pe+b.length;;){for(var qe=void 0,wt=0;wt<f.length&&(qe=f[wt],!(qe.to>pe&&qe.from<=pe));wt++);if(qe.to>=We)return A(x,b,E,L,$,J,le);A(x,b.slice(0,qe.to-pe),E,L,null,J,le),L=null,b=b.slice(qe.to-pe),pe=qe.to}}}function Ku(A,f,x,b){var E=!b&&x.widgetNode;E&&A.map.push(A.pos,A.pos+f,E),!b&&A.cm.display.input.needsContentAttribute&&(E||(E=A.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(A.cm.display.input.setUneditable(E),A.content.appendChild(E)),A.pos+=f,A.trailingSpace=!1}function Od(A,f,x){var b=A.markedSpans,E=A.text,L=0;if(!b){for(var $=1;$<x.length;$+=2)f.addToken(f,E.slice(L,L=x[$]),gh(x[$+1],f.cm.options));return}for(var J=E.length,le=0,pe=1,We="",qe,wt,gt=0,Lt,dn,Bn,Gn,_n;;){if(gt==le){Lt=dn=Bn=wt="",_n=null,Gn=null,gt=1/0;for(var Fn=[],ar=void 0,Or=0;Or<b.length;++Or){var yr=b[Or],oi=yr.marker;if(oi.type=="bookmark"&&yr.from==le&&oi.widgetNode)Fn.push(oi);else if(yr.from<=le&&(yr.to==null||yr.to>le||oi.collapsed&&yr.to==le&&yr.from==le)){if(yr.to!=null&&yr.to!=le&>>yr.to&&(gt=yr.to,dn=""),oi.className&&(Lt+=" "+oi.className),oi.css&&(wt=(wt?wt+";":"")+oi.css),oi.startStyle&&yr.from==le&&(Bn+=" "+oi.startStyle),oi.endStyle&&yr.to==gt&&(ar||(ar=[])).push(oi.endStyle,yr.to),oi.title&&((_n||(_n={})).title=oi.title),oi.attributes)for(var ko in oi.attributes)(_n||(_n={}))[ko]=oi.attributes[ko];oi.collapsed&&(!Gn||At(Gn.marker,oi)<0)&&(Gn=yr)}else yr.from>le&>>yr.from&&(gt=yr.from)}if(ar)for(var La=0;La<ar.length;La+=2)ar[La+1]==gt&&(dn+=" "+ar[La]);if(!Gn||Gn.from==le)for(var ca=0;ca<Fn.length;++ca)Ku(f,0,Fn[ca]);if(Gn&&(Gn.from||0)==le){if(Ku(f,(Gn.to==null?J+1:Gn.to)-le,Gn.marker,Gn.from==null),Gn.to==null)return;Gn.to==le&&(Gn=!1)}}if(le>=J)break;for(var Ea=Math.min(J,gt);;){if(We){var Ja=le+We.length;if(!Gn){var es=Ja>Ea?We.slice(0,Ea-le):We;f.addToken(f,es,qe?qe+Lt:Lt,Bn,le+es.length==gt?dn:"",wt,_n)}if(Ja>=Ea){We=We.slice(Ea-le),le=Ea;break}le=Ja,Bn=""}We=E.slice(L,L=x[pe++]),qe=gh(x[pe++],f.cm.options)}}}function OA(A,f,x){this.line=f,this.rest=Fo(f),this.size=this.rest?ge(bn(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Ki(A,f)}function lc(A,f,x){for(var b=[],E,L=f;L<x;L=E){var $=new OA(A.doc,Qn(A.doc,L),L);E=L+$.size,b.push($)}return b}var du=null;function Gc(A){du?du.ops.push(A):A.ownsGroup=du={ops:[A],delayedCallbacks:[]}}function Kp(A){var f=A.delayedCallbacks,x=0;do{for(;x<f.length;x++)f[x].call(null);for(var b=0;b<A.ops.length;b++){var E=A.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<f.length)}function yh(A,f){var x=A.ownsGroup;if(x)try{Kp(x)}finally{du=null,f(x)}}var hi=null;function Do(A,f){var x=Lr(A,f);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;du?E=du.delayedCallbacks:hi?E=hi:(E=hi=[],setTimeout(Zm,0));for(var L=function(J){E.push(function(){return x[J].apply(null,b)})},$=0;$<x.length;++$)L($)}}function Zm(){var A=hi;hi=null;for(var f=0;f<A.length;++f)A[f]()}function vh(A,f,x,b){for(var E=0;E<f.changes.length;E++){var L=f.changes[E];L=="text"?Pi(A,f):L=="gutter"?wo(A,f,x,b):L=="class"?Bd(A,f):L=="widget"&&go(A,f,b)}f.changes=null}function Pu(A){return A.node==A.text&&(A.node=_e("div",null,null,"position: relative"),A.text.parentNode&&A.text.parentNode.replaceChild(A.node,A.text),A.node.appendChild(A.text),h&&g<8&&(A.node.style.zIndex=2)),A.node}function sa(A,f){var x=f.bgClass?f.bgClass+" "+(f.line.bgClass||""):f.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),f.background)x?f.background.className=x:(f.background.parentNode.removeChild(f.background),f.background=null);else if(x){var b=Pu(f);f.background=b.insertBefore(_e("div",null,x),b.firstChild),A.display.input.setUneditable(f.background)}}function _h(A,f){var x=A.display.externalMeasured;return x&&x.line==f.line?(A.display.externalMeasured=null,f.measure=x.measure,x.built):Wc(A,f)}function Pi(A,f){var x=f.text.className,b=_h(A,f);f.text==f.node&&(f.node=b.pre),f.text.parentNode.replaceChild(b.pre,f.text),f.text=b.pre,b.bgClass!=f.bgClass||b.textClass!=f.t
Line truncated
|
||||
top: `+ar+"px; width: "+(Or??le-Fn)+`px;
|
||||
height: `+(yr-ar)+"px"))}function qe(Fn,ar,Or){var yr=Qn(E,Fn),oi=yr.text.length,ko,La;function ca(es,xl){return an(A,Kt(Fn,es),"div",yr,xl)}function Ea(es,xl,Hs){var gs=co(A,yr,null,es),ts=xl=="ltr"==(Hs=="after")?"left":"right",na=Hs=="after"?gs.begin:gs.end-(/\s/.test(yr.text.charAt(gs.end-1))?2:1);return ca(na,ts)[ts]}var Ja=En(yr,E.direction);return Et(Ja,ar||0,Or??oi,function(es,xl,Hs,gs){var ts=Hs=="ltr",na=ca(es,ts?"left":"right"),ys=ca(xl-1,ts?"right":"left"),Vd=ar==null&&es==0,zA=Or==null&&xl==oi,Ps=gs==0,jA=!Ja||gs==Ja.length-1;if(ys.top-na.top<=3){var Fs=(pe?Vd:zA)&&Ps,A0=(pe?zA:Vd)&&jA,AA=Fs?J:(ts?na:ys).left,wc=A0?le:(ts?ys:na).right;We(AA,na.top,wc-AA,na.bottom)}else{var Ua,Zs,Hd,WA;ts?(Ua=pe&&Vd&&Ps?J:na.left,Zs=pe?le:Ea(es,Hs,"before"),Hd=pe?J:Ea(xl,Hs,"after"),WA=pe&&zA&&jA?le:ys.right):(Ua=pe?Ea(es,Hs,"before"):J,Zs=!pe&&Vd&&Ps?le:na.right,Hd=!pe&&zA&&jA?J:ys.left,WA=pe?Ea(xl,Hs,"after"):le),We(Ua,na.top,Zs-Ua,na.bottom),na.bottom<ys.top&&We(J,na.bottom,null,ys.top),We(Hd,ys.top,WA-Hd,ys.bottom)}(!ko||KA(na,ko)<0)&&(ko=na),KA(ys,ko)<0&&(ko=ys),(!La||KA(na,La)<0)&&(La=na),KA(ys,La)<0&&(La=ys)}),{start:ko,end:La}}var wt=f.from(),gt=f.to();if(wt.line==gt.line)qe(wt.line,wt.ch,gt.ch);else{var Lt=Qn(E,wt.line),dn=Qn(E,gt.line),Bn=Yr(Lt)==Yr(dn),Gn=qe(wt.line,wt.ch,Bn?Lt.text.length+1:null).end,_n=qe(gt.line,Bn?0:null,gt.ch).start;Bn&&(Gn.top<_n.top-2?(We(Gn.right,Gn.top,null,Gn.bottom),We(J,_n.top,_n.left,_n.bottom)):We(Gn.right,Gn.top,_n.left-Gn.right,Gn.bottom)),Gn.bottom<_n.top&&We(J,Gn.bottom,null,_n.top)}x.appendChild(L)}function Du(A){if(A.state.focused){var f=A.display;clearInterval(f.blinker);var x=!0;f.cursorDiv.style.visibility="",A.options.cursorBlinkRate>0?f.blinker=setInterval(function(){A.hasFocus()||fc(A),f.cursorDiv.style.visibility=(x=!x)?"":"hidden"},A.options.cursorBlinkRate):A.options.cursorBlinkRate<0&&(f.cursorDiv.style.visibility="hidden")}}function gu(A){A.hasFocus()||(A.display.input.focus(),A.state.focused||Pf(A))}function PA(A){A.state.delayingBlurEvent=!0,setTimeout(function(){A.state.delayingBlurEvent&&(A.state.delayingBlurEvent=!1,A.state.focused&&fc(A))},100)}function Pf(A,f){A.state.delayingBlurEvent&&!A.state.draggingText&&(A.state.delayingBlurEvent=!1),A.options.readOnly!="nocursor"&&(A.state.focused||(Te(A,"focus",A,f),A.state.focused=!0,He(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()),Du(A))}function fc(A,f){A.state.delayingBlurEvent||(A.state.focused&&(Te(A,"blur",A,f),A.state.focused=!1,ft(A.display.wrapper,"CodeMirror-focused")),clearInterval(A.display.blinker),setTimeout(function(){A.state.focused||(A.display.shift=!1)},150))}function Lu(A){for(var f=A.display,x=f.lineDiv.offsetTop,b=Math.max(0,f.scroller.getBoundingClientRect().top),E=f.lineDiv.getBoundingClientRect().top,L=0,$=0;$<f.view.length;$++){var J=f.view[$],le=A.options.lineWrapping,pe=void 0,We=0;if(!J.hidden){if(E+=J.line.height,h&&g<8){var qe=J.node.offsetTop+J.node.offsetHeight;pe=qe-x,x=qe}else{var wt=J.node.getBoundingClientRect();pe=wt.bottom-wt.top,!le&&J.text.firstChild&&(We=J.text.firstChild.getBoundingClientRect().right-wt.left-1)}var gt=J.line.height-pe;if((gt>.005||gt<-.005)&&(E<b&&(L-=gt),Ji(J.line,pe),yo(J.line),J.rest))for(var Lt=0;Lt<J.rest.length;Lt++)yo(J.rest[Lt]);if(We>A.display.sizerWidth){var dn=Math.ceil(We/pu(A.display));dn>A.display.maxLineLength&&(A.display.maxLineLength=dn,A.display.maxLine=J.line,A.display.maxLineChanged=!0)}}}Math.abs(L)>2&&(f.scroller.scrollTop+=L)}function yo(A){if(A.widgets)for(var f=0;f<A.widgets.length;++f){var x=A.widgets[f],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function yu(A,f,x){var b=x&&x.top!=null?Math.max(0,x.top):A.scroller.scrollTop;b=Math.floor(b-BA(A));var E=x&&x.bottom!=null?x.bottom:b+A.wrapper.clientHeight,L=$e(f,b),$=$e(f,E);if(x&&x.ensure){var J=x.ensure.from.line,le=x.ensure.to.line;J<L?(L=J,$=$e(f,Ta(Qn(f,J))+A.wrapper.clientHeight)):Math.min(le,f.lastLine())>=$&&(L=$e(f,Ta(Qn(f,le))-A.wrapper.clientHeight),$=le)}return{from:L,to:Math.max($,L+1)}}function Vc(A,f){if(!de(A,"scrollCursorIntoView")){var x=A.display,b=x.sizer.getBoundingClientRect(),E=null,L=x.wrapper.ownerDocument;if(f.top+b.top<0?E=!0:f.bottom+b.top>(L.defaultView.innerHeight||L.documentElement.clientHeight)&&(E=!1),E!=null&&!Q){var $=_e("div","",null,`position: absolute;
|
||||
top: `+(f.top-x.viewOffset-BA(A.display))+`px;
|
||||
height: `+(f.bottom-f.top+hu(A)+x.barHeight)+`px;
|
||||
left: `+f.left+"px; width: "+Math.max(2,f.right-f.left)+"px;");A.display.lineSpace.appendChild($),$.scrollIntoView(E),A.display.lineSpace.removeChild($)}}}function Fp(A,f,x,b){b==null&&(b=0);var E;!A.options.lineWrapping&&f==x&&(x=f.sticky=="before"?Kt(f.line,f.ch+1,"before"):f,f=f.ch?Kt(f.line,f.sticky=="before"?f.ch-1:f.ch,"after"):f);for(var L=0;L<5;L++){var $=!1,J=Rt(A,f),le=!x||x==f?J:Rt(A,x);E={left:Math.min(J.left,le.left),top:Math.min(J.top,le.top)-b,right:Math.max(J.left,le.left),bottom:Math.max(J.bottom,le.bottom)+b};var pe=Pd(A,E),We=A.doc.scrollTop,qe=A.doc.scrollLeft;if(pe.scrollTop!=null&&(pc(A,pe.scrollTop),Math.abs(A.doc.scrollTop-We)>1&&($=!0)),pe.scrollLeft!=null&&($o(A,pe.scrollLeft),Math.abs(A.doc.scrollLeft-qe)>1&&($=!0)),!$)break}return E}function Ff(A,f){var x=Pd(A,f);x.scrollTop!=null&&pc(A,x.scrollTop),x.scrollLeft!=null&&$o(A,x.scrollLeft)}function Pd(A,f){var x=A.display,b=Jo(A.display);f.top<0&&(f.top=0);var E=A.curOp&&A.curOp.scrollTop!=null?A.curOp.scrollTop:x.scroller.scrollTop,L=$c(A),$={};f.bottom-f.top>L&&(f.bottom=f.top+L);var J=A.doc.height+bh(x),le=f.top<b,pe=f.bottom>J-b;if(f.top<E)$.scrollTop=le?0:f.top;else if(f.bottom>E+L){var We=Math.min(f.top,(pe?J:f.bottom)-L);We!=E&&($.scrollTop=We)}var qe=A.options.fixedGutter?0:x.gutters.offsetWidth,wt=A.curOp&&A.curOp.scrollLeft!=null?A.curOp.scrollLeft:x.scroller.scrollLeft-qe,gt=Fu(A)-x.gutters.offsetWidth,Lt=f.right-f.left>gt;return Lt&&(f.right=f.left+gt),f.left<10?$.scrollLeft=0:f.left<wt?$.scrollLeft=Math.max(0,f.left+qe-(Lt?0:10)):f.right>gt+wt-3&&($.scrollLeft=f.right+(Lt?0:10)-gt),$}function Sh(A,f){f!=null&&(Er(A),A.curOp.scrollTop=(A.curOp.scrollTop==null?A.doc.scrollTop:A.curOp.scrollTop)+f)}function to(A){Er(A);var f=A.getCursor();A.curOp.scrollToPos={from:f,to:f,margin:A.options.cursorScrollMargin}}function ea(A,f,x){(f!=null||x!=null)&&Er(A),f!=null&&(A.curOp.scrollLeft=f),x!=null&&(A.curOp.scrollTop=x)}function gr(A,f){Er(A),A.curOp.scrollToPos=f}function Er(A){var f=A.curOp.scrollToPos;if(f){A.curOp.scrollToPos=null;var x=dr(A,f.from),b=dr(A,f.to);FA(A,x,b,f.margin)}}function FA(A,f,x,b){var E=Pd(A,{left:Math.min(f.left,x.left),top:Math.min(f.top,x.top)-b,right:Math.max(f.right,x.right),bottom:Math.max(f.bottom,x.bottom)+b});ea(A,E.scrollLeft,E.scrollTop)}function pc(A,f){Math.abs(A.doc.scrollTop-f)<2||(i||bl(A,{top:f}),Hc(A,f,!0),i&&bl(A),mc(A,100))}function Hc(A,f,x){f=Math.max(0,Math.min(A.display.scroller.scrollHeight-A.display.scroller.clientHeight,f)),!(A.display.scroller.scrollTop==f&&!x)&&(A.doc.scrollTop=f,A.display.scrollbars.setScrollTop(f),A.display.scroller.scrollTop!=f&&(A.display.scroller.scrollTop=f))}function $o(A,f,x,b){f=Math.max(0,Math.min(f,A.display.scroller.scrollWidth-A.display.scroller.clientWidth)),!((x?f==A.doc.scrollLeft:Math.abs(A.doc.scrollLeft-f)<2)&&!b)&&(A.doc.scrollLeft=f,p(A),A.display.scroller.scrollLeft!=f&&(A.display.scroller.scrollLeft=f),A.display.scrollbars.setScrollLeft(f))}function aA(A){var f=A.display,x=f.gutters.offsetWidth,b=Math.round(A.doc.height+bh(A.display));return{clientHeight:f.scroller.clientHeight,viewHeight:f.wrapper.clientHeight,scrollWidth:f.scroller.scrollWidth,clientWidth:f.scroller.clientWidth,viewWidth:f.wrapper.clientWidth,barLeft:A.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+hu(A)+f.barHeight,nativeBarWidth:f.nativeBarWidth,gutterWidth:x}}var va=function(A,f,x){this.cm=x;var b=this.vert=_e("div",[_e("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=_e("div",[_e("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,A(b),A(E),Tt(b,"scroll",function(){b.clientHeight&&f(b.scrollTop,"vertical")}),Tt(E,"scroll",function(){E.clientWidth&&f(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&g<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};va.prototype.update=function(A){var f=A.scrollWidth>A.clientWidth+1,x=A.scrollHeight>A.clientHeight+1,b=A.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=f?b+"px":"0";var E=A.viewHeight-(f?b:0);this.vert.firstChild.style.height=Math.max(0,A.scrollHeight-A.clientHeight+E)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(f){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=A.barLeft+"px";var L=A.viewWidth-A.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,A.scrollWidth-A.clientWidth+L)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&A.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:f?b:0}},va.prototype.setScrollLeft=function(A){this.horiz.scrollLeft!=A&&(this.horiz.scrollLeft=A),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},va.prototype.setScrollTop=function(A){this.vert.scrollTop!=A&&(this.vert.scrollTop=A),this.disableVert&&this.enab
Line truncated
|
||||
`},setDirection:la(function(A){A!="rtl"&&(A="ltr"),A!=this.direction&&(this.direction=A,this.iter(function(f){return f.order=null}),this.cm&&In(this.cm))})}),ms.prototype.eachLine=ms.prototype.iter;var Lp=0;function Up(A){var f=this;if(t0(f),!(de(f,A)||Tl(f.display,A))){Xe(A),h&&(Lp=+new Date);var x=vl(f,A,!0),b=A.dataTransfer.files;if(!(!x||f.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,L=Array(E),$=0,J=function(){++$==E&&no(f,function(){x=Br(f.doc,x);var gt={from:x,to:x,text:f.doc.splitLines(L.filter(function(Lt){return Lt!=null}).join(f.doc.lineSeparator())),origin:"paste"};Vl(f.doc,gt),Bo(f.doc,je(Br(f.doc,x),Br(f.doc,ct(gt))))})()},le=function(gt,Lt){if(f.options.allowDropFileTypes&&Pe(f.options.allowDropFileTypes,gt.type)==-1){J();return}var dn=new FileReader;dn.onerror=function(){return J()},dn.onload=function(){var Bn=dn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Bn)){J();return}L[Lt]=Bn,J()},dn.readAsText(gt)},pe=0;pe<b.length;pe++)le(b[pe],pe);else{if(f.state.draggingText&&f.doc.sel.contains(x)>-1){f.state.draggingText(A),setTimeout(function(){return f.display.input.focus()},20);return}try{var We=A.dataTransfer.getData("Text");if(We){var qe;if(f.state.draggingText&&!f.state.draggingText.copy&&(qe=f.listSelections()),ho(f.doc,je(x,x)),qe)for(var wt=0;wt<qe.length;++wt)ju(f.doc,"",qe[wt].anchor,qe[wt].head,"drag");f.replaceSelection(We,"around","paste"),f.display.input.focus()}}catch{}}}}function e0(A,f){if(h&&(!A.state.draggingText||+new Date-Lp<100)){Ve(f);return}if(!(de(A,f)||Tl(A.display,f))&&(f.dataTransfer.setData("Text",A.getSelection()),f.dataTransfer.effectAllowed="copyMove",f.dataTransfer.setDragImage&&!Z)){var x=_e("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U&&(x.width=x.height=1,A.display.wrapper.appendChild(x),x._top=x.offsetTop),f.dataTransfer.setDragImage(x,0,0),U&&x.parentNode.removeChild(x)}}function ji(A,f){var x=vl(A,f);if(x){var b=document.createDocumentFragment();hc(A,x,b),A.display.dragCursor||(A.display.dragCursor=_e("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),A.display.lineSpace.insertBefore(A.display.dragCursor,A.display.cursorDiv)),rt(A.display.dragCursor,b)}}function t0(A){A.display.dragCursor&&(A.display.lineSpace.removeChild(A.display.dragCursor),A.display.dragCursor=null)}function n0(A){if(document.getElementsByClassName){for(var f=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<f.length;b++){var E=f[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var L=0;L<x.length;L++)A(x[L])})}}var Ph=!1;function Rp(){Ph||(K1(),Ph=!0)}function K1(){var A;Tt(window,"resize",function(){A==null&&(A=setTimeout(function(){A=null,n0(r0)},100))}),Tt(window,"blur",function(){return n0(fc)})}function r0(A){var f=A.display;f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.scrollbarsClipped=!1,A.setSize()}for(var Sa={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"},sl=0;sl<10;sl++)Sa[sl+48]=Sa[sl+96]=String(sl);for(var td=65;td<=90;td++)Sa[td]=String.fromCharCode(td);for(var jd=1;jd<=12;jd++)Sa[jd+111]=Sa[jd+63235]="F"+jd;var uA={};uA.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"},uA.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"},uA.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-K":"kiLine truncated
|
||||
`,"start")},toggleOverwrite:function(A){return A.toggleOverwrite()}};function Cc(A,f){var x=Qn(A.doc,f),b=Yr(x);return b!=x&&(f=ge(b)),Nf(!0,A,b,f,1)}function F1(A,f){var x=Qn(A.doc,f),b=Gi(x);return b!=x&&(f=ge(b)),Nf(!0,A,x,f,-1)}function i0(A,f){var x=Cc(A,f.line),b=Qn(A.doc,x.line),E=En(b,A.doc.direction);if(!E||E[0].level==0){var L=Math.max(x.ch,b.text.search(/\S/)),$=f.line==x.line&&f.ch<=L&&f.ch;return Kt(x.line,$?0:L,x.sticky)}return x}function od(A,f,x){if(typeof f=="string"&&(f=Gf[f],!f))return!1;A.display.input.ensurePolled();var b=A.display.shift,E=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),x&&(A.display.shift=!1),E=f(A)!=nt}finally{A.display.shift=b,A.state.suppressEdits=!1}return E}function av(A,f,x){for(var b=0;b<A.state.keyMaps.length;b++){var E=Cu(f,A.state.keyMaps[b],x,A);if(E)return E}return A.options.extraKeys&&Cu(f,A.options.extraKeys,x,A)||Cu(f,A.options.keyMap,x,A)}var Dh=new be;function Qf(A,f,x,b){var E=A.state.keySeq;if(E){if(zp(f))return"handled";if(/\'$/.test(f)?A.state.keySeq=null:Dh.set(50,function(){A.state.keySeq==E&&(A.state.keySeq=null,A.display.input.reset())}),Aa(A,E+" "+f,x,b))return!0}return Aa(A,f,x,b)}function Aa(A,f,x,b){var E=av(A,f,b);return E=="multi"&&(A.state.keySeq=f),E=="handled"&&Do(A,"keyHandled",A,f,x),(E=="handled"||E=="multi")&&(Xe(x),Du(A)),!!E}function Lh(A,f){var x=nd(f,!0);return x?f.shiftKey&&!A.state.keySeq?Qf(A,"Shift-"+x,f,function(b){return od(A,b,!0)})||Qf(A,x,f,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return od(A,b)}):Qf(A,x,f,function(b){return od(A,b)}):!1}function D1(A,f,x){return Qf(A,"'"+x+"'",f,function(b){return od(A,b,!0)})}var Wd=null;function Uh(A){var f=this;if(!(A.target&&A.target!=f.display.input.getField())&&(f.curOp.focus=Qt(mt(f)),!de(f,A))){h&&g<11&&A.keyCode==27&&(A.returnValue=!1);var x=A.keyCode;f.display.shift=x==16||A.shiftKey;var b=Lh(f,A);U&&(Wd=b?x:null,!b&&x==88&&!Ur&&(Ae?A.metaKey:A.ctrlKey)&&f.replaceSelection("",null,"cut")),i&&!Ae&&!b&&x==46&&A.shiftKey&&!A.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(f.display.lineDiv.className)&&Vs(f)}}function Vs(A){var f=A.display.lineDiv;He(f,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(ft(f,"CodeMirror-crosshair"),Wn(document,"keyup",x),Wn(document,"mouseover",x))}Tt(document,"keyup",x),Tt(document,"mouseover",x)}function Nu(A){A.keyCode==16&&(this.doc.sel.shift=!1),de(this,A)}function o0(A){var f=this;if(!(A.target&&A.target!=f.display.input.getField())&&!(Tl(f.display,A)||de(f,A)||A.ctrlKey&&!A.altKey||Ae&&A.metaKey)){var x=A.keyCode,b=A.charCode;if(U&&x==Wd){Wd=null,Xe(A);return}if(!(U&&(!A.which||A.which<10)&&Lh(f,A))){var E=String.fromCharCode(b??x);E!="\b"&&(D1(f,A,E)||f.display.input.onKeyPress(A))}}}var $f=400,ad=function(A,f,x){this.time=A,this.pos=f,this.button=x};ad.prototype.compare=function(A,f,x){return this.time+$f>A&&Mn(f,this.pos)==0&&x==this.button};var Gu,Nd;function L1(A,f){var x=+new Date;return Nd&&Nd.compare(x,A,f)?(Gu=Nd=null,"triple"):Gu&&Gu.compare(x,A,f)?(Nd=new ad(x,A,f),Gu=null,"double"):(Gu=new ad(x,A,f),Nd=null,"single")}function a0(A){var f=this,x=f.display;if(!(de(f,A)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=A.shiftKey,Tl(x,A)){C||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Qd(f,A)){var b=vl(f,A),E=Zt(A),L=b?L1(b,E):"single";kt(f).focus(),E==1&&f.state.selectingText&&f.state.selectingText(A),!(b&&Rh(f,E,b,L,A))&&(E==1?b?Gd(f,b,L,A):Ct(A)==x.scroller&&Xe(A):E==2?(b&&Fl(f.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(Ne?f.display.input.onContextMenu(A):PA(f)))}}}function Rh(A,f,x,b,E){var L="Click";return b=="double"?L="Double"+L:b=="triple"&&(L="Triple"+L),L=(f==1?"Left":f==2?"Middle":"Right")+L,Qf(A,jf(L,E),E,function($){if(typeof $=="string"&&($=Gf[$]),!$)return!1;var J=!1;try{A.isReadOnly()&&(A.state.suppressEdits=!0),J=$(A,x)!=nt}finally{A.state.suppressEdits=!1}return J})}function zh(A,f,x){var b=A.getOption("configureMouse"),E=b?b(A,f,x):{};if(E.unit==null){var L=ae?x.shiftKey&&x.metaKey:x.altKey;E.unit=L?"rectangle":f=="single"?"char":f=="double"?"word":"line"}return(E.extend==null||A.doc.extend)&&(E.extend=A.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Ae?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ae?x.altKey:x.ctrlKey)),E}function Gd(A,f,x,b){h?setTimeout(Pt(gu,A),0):A.curOp.focus=Qt(mt(A));var E=zh(A,x,b),L=A.doc.sel,$;A.options.dragDrop&&Ht&&!A.isReadOnly()&&x=="single"&&($=L.contains(f))>-1&&(Mn(($=L.ranges[$]).from(),f)<0||f.xRel>0)&&(Mn($.to(),f)>0||f.xRel<0)?sv(A,b,f,E):jp(A,b,f,E)}function sv(A,f,x,b){var E=A.display,L=!1,$=no(A,function(pe){C&&(E.scroller.draggable=!1),A.state.draggingText=!1,A.state.delayingBlurEvent&&(A.hasFocus()?A.state.delayingBlurEvent=!1:PA(A)),Wn(E.wrapper.ownerDocument,"mouseup",$),Wn(E.wrapper.ownerDocument,"mousemove",J),Wn(E.scroller,"dragstart",le),Wn(E.scroller,"drop",$)
Line truncated
|
||||
`)==f){if(b.ranges.length%bu.text.length==0){pe=[];for(var We=0;We<bu.text.length;We++)pe.push(L.splitLines(bu.text[We]))}}else le.length==b.ranges.length&&A.options.pasteLinesPerSelection&&(pe=Jn(le,function(Gn){return[Gn]}));for(var qe=A.curOp.updateInput,wt=b.ranges.length-1;wt>=0;wt--){var gt=b.ranges[wt],Lt=gt.from(),dn=gt.to();gt.empty()&&(x&&x>0?Lt=Kt(Lt.line,Lt.ch-x):A.state.overwrite&&!J?dn=Kt(dn.line,Math.min(Qn(L,dn.line).text.length,dn.ch+bn(le).length)):J&&bu&&bu.lineWise&&bu.text.join(`
|
||||
`)==le.join(`
|
||||
`)&&(Lt=dn=Kt(Lt.line,0)));var Bn={from:Lt,to:dn,text:pe?pe[wt%pe.length]:le,origin:E||(J?"paste":A.state.cutIncoming>$?"cut":"+input")};Vl(A.doc,Bn),Do(A,"inputRead",A,Bn)}f&&!J&&Yp(A,f),to(A),A.curOp.updateInput<2&&(A.curOp.updateInput=qe),A.curOp.typing=!0,A.state.pasteIncoming=A.state.cutIncoming=-1}function RA(A,f){var x=A.clipboardData&&A.clipboardData.getData("Text");if(x)return A.preventDefault(),!f.isReadOnly()&&!f.options.disableInput&&f.hasFocus()&&Pa(f,function(){return l0(f,x,0,null,"paste")}),!0}function Yp(A,f){if(!(!A.options.electricChars||!A.options.smartIndent))for(var x=A.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var L=A.getModeAt(E.head),$=!1;if(L.electricChars){for(var J=0;J<L.electricChars.length;J++)if(f.indexOf(L.electricChars.charAt(J))>-1){$=Wh(A,E.head.line,"smart");break}}else L.electricInput&&L.electricInput.test(Qn(A.doc,E.head.line).text.slice(0,E.head.ch))&&($=Wh(A,E.head.line,"smart"));$&&Do(A,"electricInput",A,E.head.line)}}}function Nh(A){for(var f=[],x=[],b=0;b<A.doc.sel.ranges.length;b++){var E=A.doc.sel.ranges[b].head.line,L={anchor:Kt(E,0),head:Kt(E+1,0)};x.push(L),f.push(A.getRange(L.anchor,L.head))}return{text:f,ranges:x}}function bc(A,f,x,b){A.setAttribute("autocorrect",x?"on":"off"),A.setAttribute("autocapitalize",b?"on":"off"),A.setAttribute("spellcheck",!!f)}function qd(){var A=_e("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),f=_e("div",[A],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return C?A.style.width="1000px":A.setAttribute("wrap","off"),q&&(A.style.border="1px solid black"),f}function Gh(A){var f=A.optionHandlers,x=A.helpers={};A.prototype={constructor:A,focus:function(){kt(this).focus(),this.display.input.focus()},setOption:function(b,E){var L=this.options,$=L[b];L[b]==E&&b!="mode"||(L[b]=E,f.hasOwnProperty(b)&&no(this,f[b])(this,E,$),Te(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"](Fh(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,L=0;L<E.length;++L)if(E[L]==b||E[L].name==b)return E.splice(L,1),!0},addOverlay:jr(function(b,E){var L=b.token?b:A.getMode(this.options,b);if(L.startState)throw new Error("Overlays may not be stateful.");mr(this.state.overlays,{mode:L,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function($){return $.priority}),this.state.modeGen++,Ma(this)}),removeOverlay:jr(function(b){for(var E=this.state.overlays,L=0;L<E.length;++L){var $=E[L].modeSpec;if($==b||typeof b=="string"&&$.name==b){E.splice(L,1),this.state.modeGen++,Ma(this);return}}}),indentLine:jr(function(b,E,L){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Xt(this.doc,b)&&Wh(this,b,E,L)}),indentSelection:jr(function(b){for(var E=this.doc.sel.ranges,L=-1,$=0;$<E.length;$++){var J=E[$];if(J.empty())J.head.line>L&&(Wh(this,J.head.line,b,!0),L=J.head.line,$==this.doc.sel.primIndex&&to(this));else{var le=J.from(),pe=J.to(),We=Math.max(L,le.line);L=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var qe=We;qe<L;++qe)Wh(this,qe,b);var wt=this.doc.sel.ranges;le.ch==0&&E.length==wt.length&&wt[$].from().ch>0&&Ts(this.doc,$,new Fe(le,wt[$].to()),xt)}}}),getTokenAt:function(b,E){return ic(this,b,E)},getLineTokens:function(b,E){return ic(this,Kt(b),E,!0)},getTokenTypeAt:function(b){b=Br(this.doc,b);var E=Ns(this,Qn(this.doc,b.line)),L=0,$=(E.length-1)/2,J=b.ch,le;if(J==0)le=E[2];else for(;;){var pe=L+$>>1;if((pe?E[pe*2-1]:0)>=J)$=pe;else if(E[pe*2+1]<J)L=pe+1;else{le=E[pe*2+2];break}}var We=le?le.indexOf("overlay "):-1;return We<0?le:We==0?null:le.slice(0,We-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?A.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var L=[];if(!x.hasOwnProperty(E))return L;var $=x[E],J=this.getModeAt(b);if(typeof J[E]=="string")$[J[E]]&&L.push($[J[E]]);else if(J[E])for(var le=0;le<J[E].length;le++){var pe=$[J[E][le]];pe&&L.push(pe)}else J.helperType&&$[J.helperType]?L.push($[J.helperType]):$[J.name]&&L.push($[J.name]);for(var We=0;We<$._global.length;We++){var qe=$._global[We];qe.pred(J,this)&&Pe(L,qe.val)==-1&&L.push(qe.val)}return L},getStateAfter:function(b,E){var L=this.doc;return b=Ya(L,b??L.first+L.size-1),Va(this,b+1,E).state},cursorCoords:function(b,E){var L,$=this.doc.sel.primary();return b==null?L=$.head:typeof b=="object"?L=Br(this.doc,b):L=b?$.from():$.to(),Rt(this,L,E||"page")},charCoords:function(b,E){return an(this,Br(this.doc,b),E||"page")},coordsChar:function(b,E){return b=bt(this,b,E||"page"),eo(this,b.left,b.top)},lineAtHeight:function(b,E){return b=bt(this,{top:b,left:0},E||"page").top,$e(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,L){v
Line truncated
|
||||
`,Bn=we(dn,gt)?"w":wt&&dn==`
|
||||
`?"n":!wt||/\s/.test(dn)?null:"p";if(wt&&!Lt&&!Bn&&(Bn="s"),qe&&qe!=Bn){x<0&&(x=1,We(),f.sticky="after");break}if(Bn&&(qe=Bn),x>0&&!We(!Lt))break}var Gn=vc(A,f,L,$,!0);return cr(L,Gn)&&(Gn.hitSide=!0),Gn}function Qh(A,f,x,b){var E=A.doc,L=f.left,$;if(b=="page"){var J=Math.min(A.display.wrapper.clientHeight,kt(A).innerHeight||E(A).documentElement.clientHeight),le=Math.max(J-.5*Jo(A.display),3);$=(x>0?f.bottom:f.top)+x*le}else b=="line"&&($=x>0?f.bottom+3:f.top-3);for(var pe;pe=eo(A,L,$),!!pe.outside;){if(x<0?$<=0:$>=E.height){pe.hitSide=!0;break}$+=x*5}return pe}var _o=function(A){this.cm=A,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new be,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_o.prototype.init=function(A){var f=this,x=this,b=x.cm,E=x.div=A.lineDiv;E.contentEditable=!0,bc(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function L(J){for(var le=J.target;le;le=le.parentNode){if(le==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(le.className))break}return!1}Tt(E,"paste",function(J){!L(J)||de(b,J)||RA(J,b)||g<=11&&setTimeout(no(b,function(){return f.updateFromDOM()}),20)}),Tt(E,"compositionstart",function(J){f.composing={data:J.data,done:!1}}),Tt(E,"compositionupdate",function(J){f.composing||(f.composing={data:J.data,done:!1})}),Tt(E,"compositionend",function(J){f.composing&&(J.data!=f.composing.data&&f.readFromDOMSoon(),f.composing.done=!0)}),Tt(E,"touchstart",function(){return x.forceCompositionEnd()}),Tt(E,"input",function(){f.composing||f.readFromDOMSoon()});function $(J){if(!(!L(J)||de(b,J))){if(b.somethingSelected())$p({lineWise:!1,text:b.getSelections()}),J.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var le=Nh(b);$p({lineWise:!0,text:le.text}),J.type=="cut"&&b.operation(function(){b.setSelections(le.ranges,0,xt),b.replaceSelection("",null,"cut")})}else return;if(J.clipboardData){J.clipboardData.clearData();var pe=bu.text.join(`
|
||||
`);if(J.clipboardData.setData("Text",pe),J.clipboardData.getData("Text")==pe){J.preventDefault();return}}var We=qd(),qe=We.firstChild;bc(qe),b.display.lineSpace.insertBefore(We,b.display.lineSpace.firstChild),qe.value=bu.text.join(`
|
||||
`);var wt=Qt(dt(E));tt(qe),setTimeout(function(){b.display.lineSpace.removeChild(We),wt.focus(),wt==E&&x.showPrimarySelection()},50)}}Tt(E,"copy",$),Tt(E,"cut",$)},_o.prototype.screenReaderLabelChanged=function(A){A?this.div.setAttribute("aria-label",A):this.div.removeAttribute("aria-label")},_o.prototype.prepareSelection=function(){var A=Nn(this.cm,!1);return A.focus=Qt(dt(this.div))==this.div,A},_o.prototype.showSelection=function(A,f){!A||!this.cm.display.view.length||((A.focus||f)&&this.showPrimarySelection(),this.showMultipleSelections(A))},_o.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_o.prototype.showPrimarySelection=function(){var A=this.getSelection(),f=this.cm,x=f.doc.sel.primary(),b=x.from(),E=x.to();if(f.display.viewTo==f.display.viewFrom||b.line>=f.display.viewTo||E.line<f.display.viewFrom){A.removeAllRanges();return}var L=Ks(f,A.anchorNode,A.anchorOffset),$=Ks(f,A.focusNode,A.focusOffset);if(!(L&&!L.bad&&$&&!$.bad&&Mn(ya(L,$),b)==0&&Mn(ii(L,$),E)==0)){var J=f.display.view,le=b.line>=f.display.viewFrom&&sd(f,b)||{node:J[0].measure.map[2],offset:0},pe=E.line<f.display.viewTo&&sd(f,E);if(!pe){var We=J[J.length-1].measure,qe=We.maps?We.maps[We.maps.length-1]:We.map;pe={node:qe[qe.length-1],offset:qe[qe.length-2]-qe[qe.length-3]}}if(!le||!pe){A.removeAllRanges();return}var wt=A.rangeCount&&A.getRangeAt(0),gt;try{gt=jt(le.node,le.offset,pe.offset,pe.node)}catch{}gt&&(!i&&f.state.focused?(A.collapse(le.node,le.offset),gt.collapsed||(A.removeAllRanges(),A.addRange(gt))):(A.removeAllRanges(),A.addRange(gt)),wt&&A.anchorNode==null?A.addRange(wt):i&&this.startGracePeriod()),this.rememberSelection()}},_o.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)},_o.prototype.showMultipleSelections=function(A){rt(this.cm.display.cursorDiv,A.cursors),rt(this.cm.display.selectionDiv,A.selection)},_o.prototype.rememberSelection=function(){var A=this.getSelection();this.lastAnchorNode=A.anchorNode,this.lastAnchorOffset=A.anchorOffset,this.lastFocusNode=A.focusNode,this.lastFocusOffset=A.focusOffset},_o.prototype.selectionInEditor=function(){var A=this.getSelection();if(!A.rangeCount)return!1;var f=A.getRangeAt(0).commonAncestorContainer;return nn(this.div,f)},_o.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Qt(dt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_o.prototype.blur=function(){this.div.blur()},_o.prototype.getField=function(){return this.div},_o.prototype.supportsTouch=function(){return!0},_o.prototype.receivedFocus=function(){var A=this,f=this;this.selectionInEditor()?setTimeout(function(){return A.pollSelection()},20):Pa(this.cm,function(){return f.cm.curOp.selectionChanged=!0});function x(){f.cm.state.focused&&(f.pollSelection(),f.polling.set(f.cm.options.pollInterval,x))}this.polling.set(this.cm.options.pollInterval,x)},_o.prototype.selectionChanged=function(){var A=this.getSelection();return A.anchorNode!=this.lastAnchorNode||A.anchorOffset!=this.lastAnchorOffset||A.focusNode!=this.lastFocusNode||A.focusOffset!=this.lastFocusOffset},_o.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var A=this.getSelection(),f=this.cm;if(oe&&k&&this.cm.display.gutterSpecs.length&&Vf(A.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=Ks(f,A.anchorNode,A.anchorOffset),b=Ks(f,A.focusNode,A.focusOffset);x&&b&&Pa(f,function(){Ei(f.doc,je(x,b),xt),(x.bad||b.bad)&&(f.curOp.selectionChanged=!0)})}}},_o.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var A=this.cm,f=A.display,x=A.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>A.firstLine()&&(b=Kt(b.line-1,Qn(A.doc,b.line-1).length)),E.ch==Qn(A.doc,E.line).text.length&&E.line<A.lastLine()&&(E=Kt(E.line+1,0)),b.line<f.viewFrom||E.line>f.viewTo-1)return!1;var L,$,J;b.line==f.viewFrom||(L=TA(A,b.line))==0?($=ge(f.view[0].line),J=f.view[0].node):($=ge(f.view[L].line),J=f.view[L-1].node.nextSibling);var le=TA(A,E.line),pe,We;if(le==f.view.length-1?(pe=f.viewTo-1,We=f.lineDiv.lastChild):(pe=ge(f.view[le+1].line)-1,We=f.view[le+1].node.previousSibling),!J)return!1;for(var qe=A.doc.splitLines(j1(A,J,We,$,pe)),wt=so(A.doc,Kt($,0),Kt(pe,Qn(A.doc,pe).text.length));qe.length>1&&wt.length>1;)if(bn(qe)==bn(wt))qe.pop(),wt.pop(),pe--;else if(qe[0]==wt[0])qe.shift(),wt.shift(),$++;else break;for(var gt=0,Lt=0,dn=qe[0],Bn=wt[0],Gn=Math.min(dn.length,Bn.length);gt<Gn&&dn.charCodeAt(gt)==Bn.charCodeAt(gt);)++gt;for(var _n=bn(qe),Fn=bn(wt),ar=Math.min(_n.length-(qe.length==1?gt:0),Fn.length-(wt.length==1?gt:0));Lt<ar
Line truncated
|
||||
`),tt(E))}else return;$.type=="cut"&&(b.state.cutIncoming=+new Date)}}Tt(E,"cut",L),Tt(E,"copy",L),Tt(A.scroller,"paste",function($){if(!(Tl(A,$)||de(b,$))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var J=new Event("paste");J.clipboardData=$.clipboardData,E.dispatchEvent(J)}}),Tt(A.lineSpace,"selectstart",function($){Tl(A,$)||Xe($)}),Tt(E,"compositionstart",function(){var $=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:$,range:b.markText($,b.getCursor("to"),{className:"CodeMirror-composing"})}}),Tt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Da.prototype.createField=function(A){this.wrapper=qd(),this.textarea=this.wrapper.firstChild;var f=this.cm.options;bc(this.textarea,f.spellcheck,f.autocorrect,f.autocapitalize)},Da.prototype.screenReaderLabelChanged=function(A){A?this.textarea.setAttribute("aria-label",A):this.textarea.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var A=this.cm,f=A.display,x=A.doc,b=Nn(A);if(A.options.moveInputWithCursor){var E=Rt(A,x.sel.primary().head,"div"),L=f.wrapper.getBoundingClientRect(),$=f.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(f.wrapper.clientHeight-10,E.top+$.top-L.top)),b.teLeft=Math.max(0,Math.min(f.wrapper.clientWidth-10,E.left+$.left-L.left))}return b},Da.prototype.showSelection=function(A){var f=this.cm,x=f.display;rt(x.cursorDiv,A.cursors),rt(x.selectionDiv,A.selection),A.teTop!=null&&(this.wrapper.style.top=A.teTop+"px",this.wrapper.style.left=A.teLeft+"px")},Da.prototype.reset=function(A){if(!(this.contextMenuPending||this.composing&&A)){var f=this.cm;if(this.resetting=!0,f.somethingSelected()){this.prevInput="";var x=f.getSelection();this.textarea.value=x,f.state.focused&&tt(this.textarea),h&&g>=9&&(this.hasSelection=x)}else A||(this.prevInput=this.textarea.value="",h&&g>=9&&(this.hasSelection=null));this.resetting=!1}},Da.prototype.getField=function(){return this.textarea},Da.prototype.supportsTouch=function(){return!1},Da.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!re||Qt(dt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Da.prototype.blur=function(){this.textarea.blur()},Da.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Da.prototype.receivedFocus=function(){this.slowPoll()},Da.prototype.slowPoll=function(){var A=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){A.poll(),A.cm.state.focused&&A.slowPoll()})},Da.prototype.fastPoll=function(){var A=!1,f=this;f.pollingFast=!0;function x(){var b=f.poll();!b&&!A?(A=!0,f.polling.set(60,x)):(f.pollingFast=!1,f.slowPoll())}f.polling.set(20,x)},Da.prototype.poll=function(){var A=this,f=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||this.resetting||!f.state.focused||Tr(x)&&!b&&!this.composing||f.isReadOnly()||f.options.disableInput||f.state.keySeq)return!1;var E=x.value;if(E==b&&!f.somethingSelected())return!1;if(h&&g>=9&&this.hasSelection===E||Ae&&/[\uf700-\uf7ff]/.test(E))return f.display.input.reset(),!1;if(f.doc.sel==f.display.selForContextMenu){var L=E.charCodeAt(0);if(L==8203&&!b&&(b=""),L==8666)return this.reset(),this.cm.execCommand("undo")}for(var $=0,J=Math.min(b.length,E.length);$<J&&b.charCodeAt($)==E.charCodeAt($);)++$;return Pa(f,function(){l0(f,E.slice($),b.length-$,null,A.composing?"*compose":null),E.length>1e3||E.indexOf(`
|
||||
`)>-1?x.value=A.prevInput="":A.prevInput=E,A.composing&&(A.composing.range.clear(),A.composing.range=f.markText(A.composing.start,f.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Da.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Da.prototype.onKeyPress=function(){h&&g>=9&&(this.hasSelection=null),this.fastPoll()},Da.prototype.onContextMenu=function(A){var f=this,x=f.cm,b=x.display,E=f.textarea;f.contextMenuPending&&f.contextMenuPending();var L=vl(x,A),$=b.scroller.scrollTop;if(!L||U)return;var J=x.options.resetSelectionOnContextMenu;J&&x.doc.sel.contains(L)==-1&&no(x,Ei)(x.doc,je(L),xt);var le=E.style.cssText,pe=f.wrapper.style.cssText,We=f.wrapper.offsetParent.getBoundingClientRect();f.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(A.clientY-We.top-5)+"px; left: "+(A.clientX-We.left-5)+`px;
|
||||
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qe;b&&(qe=E.ownerDocument.defaultView.scrollY),_.input.focus(),b&&E.ownerDocument.defaultView.scrollTo(null,qe),_.input.reset(),x.somethingSelected()||(E.value=h.prevInput=" "),h.contextMenuPending=gt,_.selForContextMenu=x.doc.sel,clearTimeout(_.detectingSelectAll);function wt(){if(E.selectionStart!=null){var cn=x.somethingSelected(),Bn=""+(cn?E.value:"");E.value="⇚",E.value=Bn,h.prevInput=cn?"":"",E.selectionStart=1,E.selectionEnd=Bn.length,_.selForContextMenu=x.doc.sel}}function gt(){if(h.contextMenuPending==gt&&(h.contextMenuPending=!1,h.wrapper.style.cssText=pe,E.style.cssText=ae,p&&g<9&&_.scrollbars.setScrollTop(_.scroller.scrollTop=$),E.selectionStart!=null)){(!p||p&&g<9)&&wt();var cn=0,Bn=function(){_.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&h.prevInput==""?no(x,FA)(x):cn++<10?_.detectingSelectAll=setTimeout(Bn,500):(_.selForContextMenu=null,_.input.reset())};_.detectingSelectAll=setTimeout(Bn,200)}}if(p&&g>=9&&wt(),Ne){Ve(A);var Ut=function(){Wn(window,"mouseup",Ut),setTimeout(gt,20)};Tt(window,"mouseup",Ut)}else setTimeout(gt,50)},Fa.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},Fa.prototype.setUneditable=function(){},Fa.prototype.needsContentAttribute=!1;function R1(A,h){if(h=h?Me(h):{},h.value=A.value,!h.tabindex&&A.tabIndex&&(h.tabindex=A.tabIndex),!h.placeholder&&A.placeholder&&(h.placeholder=A.placeholder),h.autofocus==null){var x=Qt(dt(A));h.autofocus=x==A||A.getAttribute("autofocus")!=null&&x==document.body}function _(){A.value=J.getValue()}var E;if(A.form&&(Tt(A.form,"submit",_),!h.leaveSubmitMethodAlone)){var U=A.form;E=U.submit;try{var $=U.submit=function(){_(),U.submit=E,U.submit(),U.submit=$}}catch{}}h.finishInit=function(ae){ae.save=_,ae.getTextArea=function(){return A},ae.toTextArea=function(){ae.toTextArea=isNaN,_(),A.parentNode.removeChild(ae.getWrapperElement()),A.style.display="",A.form&&(Wn(A.form,"submit",_),!h.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=E))}},A.style.display="none";var J=fo(function(ae){return A.parentNode.insertBefore(ae,A.nextSibling)},h);return J}function iv(A){A.off=Wn,A.on=Tt,A.wheelEventPixels=fe,A.Doc=ps,A.splitLines=or,A.countColumn=he,A.findColumn=pt,A.isWordChar=fi,A.Pass=nt,A.signal=Te,A.Line=ku,A.changeEnd=ct,A.scrollbarModel=Ro,A.Pos=Kt,A.cmpPos=Mn,A.modes=rr,A.mimeModes=li,A.resolveMode=xo,A.getMode=pi,A.modeExtensions=Oo,A.extendMode=us,A.copyState=ka,A.startState=Ms,A.innerMode=Ci,A.commands=zf,A.keyMap=sA,A.keyName=Xc,A.isModifierKey=Dp,A.lookupKey=Cu,A.normalizeKeyMap=vu,A.StringStream=Si,A.SharedTextMarker=Fd,A.TextMarker=Vl,A.LineWidget=ju,A.e_preventDefault=Xe,A.e_stopPropagation=at,A.e_stop=Ve,A.addClass=He,A.contains=tn,A.rmClass=ft,A.keyNames=Ma}r0(fo),Lh(fo);var o0="iter insert remove copy getEditor constructor".split(" ");for(var jh in ps.prototype)ps.prototype.hasOwnProperty(jh)&&Pe(o0,jh)<0&&(fo.prototype[jh]=function(A){return function(){return A.apply(this.doc,arguments)}}(ps.prototype[jh]));return Re(ps),fo.inputStyles={textarea:Fa,contenteditable:Co},fo.defineMode=function(A){!fo.defaults.mode&&A!="null"&&(fo.defaults.mode=A),ki.apply(this,arguments)},fo.defineMIME=Xi,fo.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),fo.defineMIME("text/plain","null"),fo.defineExtension=function(A,h){fo.prototype[A]=h},fo.defineDocExtension=function(A,h){ps.prototype[A]=h},fo.fromTextArea=R1,iv(fo),fo.version="5.65.16",fo})}($M)),$M.exports}var tpe=K5();const Ec=ma(tpe);(function(e,n){(function(t){t(K5())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,s=i.statementIndent,a=i.jsonld,p=i.json||a,g=i.trackScope!==!1,b=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function ge(Ii){return{type:Ii,style:"keyword"}}var $e=ge("keyword a"),Xt=ge("keyword b"),sn=ge("keyword c"),Kt=ge("keyword d"),Mn=ge("operator"),cr={type:"atom",style:"atom"};return{if:ge("if"),while:$e,with:$e,else:Xt,do:Xt,try:Xt,finally:Xt,return:Kt,break:Kt,continue:Kt,new:ge("new"),delete:sn,void:sn,throw:sn,debugger:ge("debugger"),var:ge("var"),const:ge("var"),let:ge("var"),function:ge("function"),catch:ge("catch"),for:ge("for"),switch:ge("switch"),case:ge("case"),default:ge("default"),in:Mn,typeof:Mn,instanceof:Mn,true:cr,false:cr,null:cr,undefined:cr,NaN:cr,Infinity:cr,this:ge("this"),class:ge("class"),super:ge("atom"),yield:sn,export:ge("export"),import:ge("import"),extends:sn,await:sn}}(),P=/[+\-*&%=<>!?|~^@]/,R=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Z(ge){for(var $e=!1,Xt,sn=!1;(Xt=ge.next())!=null;){if(!$e){if(Xt=="/"&&!sn)return;Xt=="["?sn=!0:sn&&Xt=="]"&&(sn=!1)}$e=!$e&&Xt=="\\"}}var W,Q;function q(ge,$e,Xt){return W=ge,Q=Xt,$e}function oe(ge,$e){var Xt=ge.next();if(Xt=='"'||Xt=="'")return
Line truncated
|
||||
`+Q),b].join(`
|
||||
`+p)}return re}(n,"",0)};const _W=ma(rpe);function ipe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var bW={};(function(e){var n=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(o,s,a,p,g,b,B){var k=b.length-1;switch(g){case 1:this.$=o.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(o);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=b[k-1];case 13:this.$={};break;case 14:this.$=b[k-1];break;case 15:this.$=[b[k-2],b[k]];break;case 16:this.$={},this.$[b[k][0]]=b[k][1];break;case 17:this.$=b[k-2],b[k-2][b[k][0]]=b[k][1];break;case 18:this.$=[];break;case 19:this.$=b[k-1];break;case 20:this.$=[b[k]];break;case 21:this.$=b[k-2],b[k-2].push(b[k]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(o,s){throw new Error(o)},parse:function(o){var s=this,a=[0],p=[null],g=[],b=this.table,B="",k=0,P=0,R=0,Z=2,W=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Q=this.lexer.yylloc;g.push(Q),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function q(Ce){a.length=a.length-2*Ce,p.length=p.length-Ce,g.length=g.length-Ce}function oe(){var Ce;return Ce=s.lexer.lex()||1,typeof Ce!="number"&&(Ce=s.symbols_[Ce]||Ce),Ce}for(var re,ce,se,le,ye,De={},Ne,et,ft,Ke;;){if(se=a[a.length-1],this.defaultActions[se]?le=this.defaultActions[se]:(re==null&&(re=oe()),le=b[se]&&b[se][re]),typeof le>"u"||!le.length||!le[0]){if(!R){Ke=[];for(Ne in b[se])this.terminals_[Ne]&&Ne>2&&Ke.push("'"+this.terminals_[Ne]+"'");var rt="";this.lexer.showPosition?rt="Parse error on line "+(k+1)+`:
|
||||
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var qe;C&&(qe=E.ownerDocument.defaultView.scrollY),b.input.focus(),C&&E.ownerDocument.defaultView.scrollTo(null,qe),b.input.reset(),x.somethingSelected()||(E.value=f.prevInput=" "),f.contextMenuPending=gt,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function wt(){if(E.selectionStart!=null){var dn=x.somethingSelected(),Bn=""+(dn?E.value:"");E.value="⇚",E.value=Bn,f.prevInput=dn?"":"",E.selectionStart=1,E.selectionEnd=Bn.length,b.selForContextMenu=x.doc.sel}}function gt(){if(f.contextMenuPending==gt&&(f.contextMenuPending=!1,f.wrapper.style.cssText=pe,E.style.cssText=le,h&&g<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=$),E.selectionStart!=null)){(!h||h&&g<9)&&wt();var dn=0,Bn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&f.prevInput==""?no(x,LA)(x):dn++<10?b.detectingSelectAll=setTimeout(Bn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Bn,200)}}if(h&&g>=9&&wt(),Ne){Ve(A);var Lt=function(){Wn(window,"mouseup",Lt),setTimeout(gt,20)};Tt(window,"mouseup",Lt)}else setTimeout(gt,50)},Da.prototype.readOnlyChanged=function(A){A||this.reset(),this.textarea.disabled=A=="nocursor",this.textarea.readOnly=!!A},Da.prototype.setUneditable=function(){},Da.prototype.needsContentAttribute=!1;function W1(A,f){if(f=f?Me(f):{},f.value=A.value,!f.tabindex&&A.tabIndex&&(f.tabindex=A.tabIndex),!f.placeholder&&A.placeholder&&(f.placeholder=A.placeholder),f.autofocus==null){var x=Qt(dt(A));f.autofocus=x==A||A.getAttribute("autofocus")!=null&&x==document.body}function b(){A.value=J.getValue()}var E;if(A.form&&(Tt(A.form,"submit",b),!f.leaveSubmitMethodAlone)){var L=A.form;E=L.submit;try{var $=L.submit=function(){b(),L.submit=E,L.submit(),L.submit=$}}catch{}}f.finishInit=function(le){le.save=b,le.getTextArea=function(){return A},le.toTextArea=function(){le.toTextArea=isNaN,b(),A.parentNode.removeChild(le.getWrapperElement()),A.style.display="",A.form&&(Wn(A.form,"submit",b),!f.leaveSubmitMethodAlone&&typeof A.form.submit=="function"&&(A.form.submit=E))}},A.style.display="none";var J=fo(function(le){return A.parentNode.insertBefore(le,A.nextSibling)},f);return J}function uv(A){A.off=Wn,A.on=Tt,A.wheelEventPixels=fe,A.Doc=ms,A.splitLines=or,A.countColumn=he,A.findColumn=pt,A.isWordChar=fi,A.Pass=nt,A.signal=Te,A.Line=Iu,A.changeEnd=ct,A.scrollbarModel=Uo,A.Pos=Kt,A.cmpPos=Mn,A.modes=rr,A.mimeModes=li,A.resolveMode=xo,A.getMode=pi,A.modeExtensions=Oo,A.extendMode=As,A.copyState=Ia,A.startState=Ss,A.innerMode=_i,A.commands=Gf,A.keyMap=uA,A.keyName=nd,A.isModifierKey=zp,A.lookupKey=Cu,A.normalizeKeyMap=_u,A.StringStream=Si,A.SharedTextMarker=Rd,A.TextMarker=Hl,A.LineWidget=Wu,A.e_preventDefault=Xe,A.e_stopPropagation=at,A.e_stop=Ve,A.addClass=He,A.contains=nn,A.rmClass=ft,A.keyNames=Sa}s0(fo),Gh(fo);var u0="iter insert remove copy getEditor constructor".split(" ");for(var $h in ms.prototype)ms.prototype.hasOwnProperty($h)&&Pe(u0,$h)<0&&(fo.prototype[$h]=function(A){return function(){return A.apply(this.doc,arguments)}}(ms.prototype[$h]));return Ue(ms),fo.inputStyles={textarea:Da,contenteditable:_o},fo.defineMode=function(A){!fo.defaults.mode&&A!="null"&&(fo.defaults.mode=A),ki.apply(this,arguments)},fo.defineMIME=Xi,fo.defineMode("null",function(){return{token:function(A){return A.skipToEnd()}}}),fo.defineMIME("text/plain","null"),fo.defineExtension=function(A,f){fo.prototype[A]=f},fo.defineDocExtension=function(A,f){ms.prototype[A]=f},fo.fromTextArea=W1,uv(fo),fo.version="5.65.16",fo})}(eS)),eS.exports}var _me=z5();const Ic=oa(_me);(function(e,n){(function(t){t(z5())})(function(t){t.defineMode("javascript",function(r,i){var o=r.indentUnit,s=i.statementIndent,a=i.jsonld,h=i.json||a,g=i.trackScope!==!1,C=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function ge(Ii){return{type:Ii,style:"keyword"}}var $e=ge("keyword a"),Xt=ge("keyword b"),ln=ge("keyword c"),Kt=ge("keyword d"),Mn=ge("operator"),cr={type:"atom",style:"atom"};return{if:ge("if"),while:$e,with:$e,else:Xt,do:Xt,try:Xt,finally:Xt,return:Kt,break:Kt,continue:Kt,new:ge("new"),delete:ln,void:ln,throw:ln,debugger:ge("debugger"),var:ge("var"),const:ge("var"),let:ge("var"),function:ge("function"),catch:ge("catch"),for:ge("for"),switch:ge("switch"),case:ge("case"),default:ge("default"),in:Mn,typeof:Mn,instanceof:Mn,true:cr,false:cr,null:cr,undefined:cr,NaN:cr,Infinity:cr,this:ge("this"),class:ge("class"),super:ge("atom"),yield:ln,export:ge("export"),import:ge("import"),extends:ln,await:ln}}(),P=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Z(ge){for(var $e=!1,Xt,ln=!1;(Xt=ge.next())!=null;){if(!$e){if(Xt=="/"&&!ln)return;Xt=="["?ln=!0:ln&&Xt=="]"&&(ln=!1)}$e=!$e&&Xt=="\\"}}var W,Q;function q(ge,$e,Xt){return W=ge,Q=Xt,$e}function oe(ge,$e){var Xt=ge.next();if(Xt=='"'||Xt=="'")return
Line truncated
|
||||
`+Q),C].join(`
|
||||
`+h)}return re}(n,"",0)};const VW=oa(bme);function xme(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var HW={};(function(e){var n=function(){var t={trace:function(){},yy:{},symbols_:{error:2,JSONString:3,STRING:4,JSONNumber:5,NUMBER:6,JSONNullLiteral:7,NULL:8,JSONBooleanLiteral:9,TRUE:10,FALSE:11,JSONText:12,JSONValue:13,EOF:14,JSONObject:15,JSONArray:16,"{":17,"}":18,JSONMemberList:19,JSONMember:20,":":21,",":22,"[":23,"]":24,JSONElementList:25,$accept:0,$end:1},terminals_:{2:"error",4:"STRING",6:"NUMBER",8:"NULL",10:"TRUE",11:"FALSE",14:"EOF",17:"{",18:"}",21:":",22:",",23:"[",24:"]"},productions_:[0,[3,1],[5,1],[7,1],[9,1],[9,1],[12,2],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[15,2],[15,3],[20,3],[19,1],[19,3],[16,2],[16,3],[25,1],[25,3]],performAction:function(o,s,a,h,g,C,B){var k=C.length-1;switch(g){case 1:this.$=o.replace(/\\(\\|")/g,"$1").replace(/\\n/g,`
|
||||
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\v/g,"\v").replace(/\\f/g,"\f").replace(/\\b/g,"\b");break;case 2:this.$=Number(o);break;case 3:this.$=null;break;case 4:this.$=!0;break;case 5:this.$=!1;break;case 6:return this.$=C[k-1];case 13:this.$={};break;case 14:this.$=C[k-1];break;case 15:this.$=[C[k-2],C[k]];break;case 16:this.$={},this.$[C[k][0]]=C[k][1];break;case 17:this.$=C[k-2],C[k-2][C[k][0]]=C[k][1];break;case 18:this.$=[];break;case 19:this.$=C[k-1];break;case 20:this.$=[C[k]];break;case 21:this.$=C[k-2],C[k-2].push(C[k]);break}},table:[{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],12:1,13:2,15:7,16:8,17:[1,14],23:[1,15]},{1:[3]},{14:[1,16]},{14:[2,7],18:[2,7],22:[2,7],24:[2,7]},{14:[2,8],18:[2,8],22:[2,8],24:[2,8]},{14:[2,9],18:[2,9],22:[2,9],24:[2,9]},{14:[2,10],18:[2,10],22:[2,10],24:[2,10]},{14:[2,11],18:[2,11],22:[2,11],24:[2,11]},{14:[2,12],18:[2,12],22:[2,12],24:[2,12]},{14:[2,3],18:[2,3],22:[2,3],24:[2,3]},{14:[2,4],18:[2,4],22:[2,4],24:[2,4]},{14:[2,5],18:[2,5],22:[2,5],24:[2,5]},{14:[2,1],18:[2,1],21:[2,1],22:[2,1],24:[2,1]},{14:[2,2],18:[2,2],22:[2,2],24:[2,2]},{3:20,4:[1,12],18:[1,17],19:18,20:19},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:23,15:7,16:8,17:[1,14],23:[1,15],24:[1,21],25:22},{1:[2,6]},{14:[2,13],18:[2,13],22:[2,13],24:[2,13]},{18:[1,24],22:[1,25]},{18:[2,16],22:[2,16]},{21:[1,26]},{14:[2,18],18:[2,18],22:[2,18],24:[2,18]},{22:[1,28],24:[1,27]},{22:[2,20],24:[2,20]},{14:[2,14],18:[2,14],22:[2,14],24:[2,14]},{3:20,4:[1,12],20:29},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:30,15:7,16:8,17:[1,14],23:[1,15]},{14:[2,19],18:[2,19],22:[2,19],24:[2,19]},{3:5,4:[1,12],5:6,6:[1,13],7:3,8:[1,9],9:4,10:[1,10],11:[1,11],13:31,15:7,16:8,17:[1,14],23:[1,15]},{18:[2,17],22:[2,17]},{18:[2,15],22:[2,15]},{22:[2,21],24:[2,21]}],defaultActions:{16:[2,6]},parseError:function(o,s){throw new Error(o)},parse:function(o){var s=this,a=[0],h=[null],g=[],C=this.table,B="",k=0,P=0,U=0,Z=2,W=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var Q=this.lexer.yylloc;g.push(Q),typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function q(_e){a.length=a.length-2*_e,h.length=h.length-_e,g.length=g.length-_e}function oe(){var _e;return _e=s.lexer.lex()||1,typeof _e!="number"&&(_e=s.symbols_[_e]||_e),_e}for(var re,Ae,ae,se,ye,De={},Ne,et,ft,Ke;;){if(ae=a[a.length-1],this.defaultActions[ae]?se=this.defaultActions[ae]:(re==null&&(re=oe()),se=C[ae]&&C[ae][re]),typeof se>"u"||!se.length||!se[0]){if(!U){Ke=[];for(Ne in C[ae])this.terminals_[Ne]&&Ne>2&&Ke.push("'"+this.terminals_[Ne]+"'");var rt="";this.lexer.showPosition?rt="Parse error on line "+(k+1)+`:
|
||||
`+this.lexer.showPosition()+`
|
||||
Expecting `+Ke.join(", ")+", got '"+this.terminals_[re]+"'":rt="Parse error on line "+(k+1)+": Unexpected "+(re==1?"end of input":"'"+(this.terminals_[re]||re)+"'"),this.parseError(rt,{text:this.lexer.match,token:this.terminals_[re]||re,line:this.lexer.yylineno,loc:Q,expected:Ke})}if(R==3){if(re==W)throw new Error(rt||"Parsing halted.");P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,Q=this.lexer.yylloc,re=oe()}for(;!(Z.toString()in b[se]);){if(se==0)throw new Error(rt||"Parsing halted.");q(1),se=a[a.length-1]}ce=re,re=Z,se=a[a.length-1],le=b[se]&&b[se][Z],R=3}if(le[0]instanceof Array&&le.length>1)throw new Error("Parse Error: multiple actions possible at state: "+se+", token: "+re);switch(le[0]){case 1:a.push(re),p.push(this.lexer.yytext),g.push(this.lexer.yylloc),a.push(le[1]),re=null,ce?(re=ce,ce=null):(P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,Q=this.lexer.yylloc,R>0&&R--);break;case 2:if(et=this.productions_[le[1]][1],De.$=p[p.length-et],De._$={first_line:g[g.length-(et||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(et||1)].first_column,last_column:g[g.length-1].last_column},ye=this.performAction.call(De,B,P,k,this.yy,le[1],p,g),typeof ye<"u")return ye;et&&(a=a.slice(0,-1*et*2),p=p.slice(0,-1*et),g=g.slice(0,-1*et)),a.push(this.productions_[le[1]][0]),p.push(De.$),g.push(De._$),ft=b[a[a.length-2]][a[a.length-1]],a.push(ft);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(s,a){if(this.yy.parseError)this.yy.parseError(s,a);else throw new Error(s)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var s=o.match(/\n/);return s&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
||||
`+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,a,p,g;this._more||(this.yytext="",this.match="");for(var b=this._currentRules(),B=0;B<b.length&&(a=this._input.match(this.rules[b[B]]),!(a&&(!s||a[0].length>s[0].length)&&(s=a,p=B,!this.options.flex)));B++);if(s)return g=s[0].match(/\n.*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-1:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,b[p],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,a,p,g){switch(p){case 0:break;case 1:return 6;case 2:return a.yytext=a.yytext.substr(1,a.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof ipe<"u"&&(e.parser=n,e.parse=n.parse.bind(n))})(bW);const jE=ma(bW);var xW={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(_f,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(he,be){return be={exports:{}},he(be,be.exports),be.exports}var i=r(function(he){function be(){var Pe=0,Ze=1,nt=2,xt=3,Ft=4,Dt=5,pt=6,nr=7,pn=8,bn=9,Jn=10,mr=11,xr=12,Nr=13,Cr=14,fi=15,we=16,H=17,Y=0,Be=1,st=2,St=3,Et=4;function Nt(m,Tt){return 55296<=m.charCodeAt(Tt)&&m.charCodeAt(Tt)<=56319&&56320<=m.charCodeAt(Tt+1)&&m.charCodeAt(Tt+1)<=57343}function mn(m,Tt){Tt===void 0&&(Tt=0);var Ur=m.charCodeAt(Tt);if(55296<=Ur&&Ur<=56319&&Tt<m.length-1){var Wn=Ur,Te=m.charCodeAt(Tt+1);return 56320<=Te&&Te<=57343?(Wn-55296)*1024+(Te-56320)+65536:Wn}if(56320<=Ur&&Ur<=57343&&Tt>=1){var Wn=m.charCodeAt(Tt-1),Te=Ur;return 55296<=Wn&&Wn<=56319?(Wn-55296)*1024+(Te-56320)+65536:Te}return Ur}function Kn(m,Tt,Ur){var Wn=[m].concat(Tt).concat([Ur]),Te=Wn[Wn.length-2],de=Ur,ve=Wn.lastIndexOf(Cr);if(ve>1&&Wn.slice(1,ve).every(function(Xe){return Xe==xt})&&[xt,Nr,H].indexOf(m)==-1)return st;var Se=Wn.lastIndexOf(Ft);if(Se>0&&Wn.slice(1,Se).every(function(Xe){return Xe==Ft})&&[xr,Ft].indexOf(Te)==-1)return Wn.filter(function(Xe){return Xe==Ft}).length%2==1?St:Et;if(Te==Pe&&de==Ze)return Y;if(Te==nt||Te==Pe||Te==Ze)return de==Cr&&Tt.every(function(Xe){return Xe==xt})?st:Be;if(de==nt||de==Pe||de==Ze)return Be;if(Te==pt&&(de==pt||de==nr||de==bn||de==Jn))return Y;if((Te==bn||Te==nr)&&(de==nr||de==pn))return Y;if((Te==Jn||Te==pn)&&de==pn)return Y;if(de==xt||de==fi)return Y;if(de==Dt)return Y;if(Te==xr)return Y;var Re=Wn.indexOf(xt)!=-1?Wn.lastIndexOf(xt)-1:Wn.length-2;return[Nr,H].indexOf(Wn[Re])!=-1&&Wn.slice(Re+1,-1).every(function(Xe){return Xe==xt})&&de==Cr||Te==fi&&[we,H].indexOf(de)!=-1?Y:Tt.indexOf(Ft)!=-1?st:Te==Ft&&de==Ft?Y:Be}this.nextBreak=function(m,Tt){if(Tt===void 0&&(Tt=0),Tt<0)return 0;if(Tt>=m.length-1)return m.length;for(var Ur=En(mn(m,Tt)),Wn=[],Te=Tt+1;Te<m.length;Te++)if(!Nt(m,Te-1)){var de=En(mn(m,Te));if(Kn(Ur,Wn,de))return Te;Wn.push(de)}return m.length},this.splitGraphemes=function(m){for(var Tt=[],Ur=0,Wn;(Wn=this.nextBreak(m,Ur))<m.length;)Tt.push(m.slice(Ur,Wn)),Ur=Wn;return Ur<m.length&&Tt.push(m.slice(Ur)),Tt},this.iterateGraphemes=function(m){var Tt=0,Ur={next:(function(){var Wn,Te;return(Te=this.nextBreak(m,Tt))<m.length?(Wn=m.slice(Tt,Te),Tt=Te,{value:Wn,done:!1}):Tt<m.length?(Wn=m.slice(Tt),Tt=m.length,{value:Wn,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Ur[Symbol.iterator]=function(){return Ur}),Ur},this.countGraphemes=function(m){for(var Tt=0,Ur=0,Wn;(Wn=this.nextBreak(m,Ur))<m.length;)Ur=Wn,Tt++;return Ur<m.length&&Tt++,Tt};function En(m){return 1536<=m&&m<=1541||m==1757||m==1807||m==2274||m==3406||m==69821||70082<=m&&m<=70083||m==72250||72326<=m&&m<=72329||m==73030?xr:m==13?Pe:m==10?Ze:0<=m&&m<=9||11<=m&&m<=12||14<=m&&m<=31||127<=m&&m<=159||m==173||m==1564||m==6158||m==8203||8206<=m&&m<=8207||m==8232||m==8233||8234<=m&&m<=8238||8288<=m&&m<=8292||m==8293||8294<=m&&m<=8303||55296<=m&&m<=57343||m==65279||65520<=m&&m<=65528||65529<=m&&m<=65531||113824<=m&&m<=113827||119155<=m&&m<=119162||m==917504||m==917505||917506<=m&&m<=917535||917632<=m&&m<=917759||918e3<=m&&m<=921599?nt:768<=m&&m<=879||1155<=m&&m<=1159||1160<=m&&m<=1161||1425<=m&&m<=1469||m==1471||1473<=m&&m<=1474||1476<=m&&m<=1477||m==1479||1552<=m&&m<=1562||1611<=m&&m<=1631||m==1648||1750<=m&&m<=1756||1759<=m&&m<=1764||1767<=m&&m<=1768||1770<=m&&m<=1773||m==1809||1840<=m&&m<=1866||1958<=m&&m<=1968||2027<=m&&m<=2035||2070<=m&&m<=2073||2075<=m&&m<=2083||2085<=m&&m<=2087||2089<=m&&m<=2093||2137<=m&&m<=2139||2260<=m&&m<=2273||2275<=m&&m<=2306||m==2362||m==2364||2369<=m&&m<=2376||m==2381||2385<=m&&m<=2391||2402<=m
Line truncated
|
||||
`)}var pn={extraLines:2,tabSize:4},bn=function(mr,xr,Nr,Cr){Cr=Dt({},pn,Cr);var fi=mr.split(/\r\n?|\n|\f/),we=Math.max(1,xr-Cr.extraLines)-1,H=Math.min(xr+Cr.extraLines,fi.length),Y=String(H).length,Be=nr(fi,we,xr,Y,Cr),st=pt(fi[xr-1].substring(0,Nr-1),xr,Y,Cr),St=nt(" ",st.length)+"^",Et=nr(fi,xr,H,Y,Cr);return[Be,St,Et].filter(Boolean).join(`
|
||||
`)};return bn})}),g=new Error().stack,b=function(he){var be=Object.create(SyntaxError.prototype);return Object.assign(be,he,{name:"SyntaxError"}),Object.defineProperty(be,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(be)+`
|
||||
`):""}}),be},B=function(he,be,Pe,Ze,nt){throw b({message:Ze?he+`
|
||||
`+p(be,Ze,nt):he,rawMessage:he,source:Pe,line:Ze,column:nt})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(be){for(var Pe=arguments.length,Ze=Array(Pe>1?Pe-1:0),nt=1;nt<Pe;nt++)Ze[nt-1]=arguments[nt];return"Unexpected token <"+be+"> at "+Ze.filter(Boolean).join(":")}},P={unexpectedSymbol:function(be){for(var Pe=arguments.length,Ze=Array(Pe>1?Pe-1:0),nt=1;nt<Pe;nt++)Ze[nt-1]=arguments[nt];return"Unexpected symbol <"+be+"> at "+Ze.filter(Boolean).join(":")}},R={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},Z={"{":R.LEFT_BRACE,"}":R.RIGHT_BRACE,"[":R.LEFT_BRACKET,"]":R.RIGHT_BRACKET,":":R.COLON,",":R.COMMA},W={true:R.TRUE,false:R.FALSE,null:R.NULL},Q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function re(he){return he>="1"&&he<="9"}function ce(he){return he>="0"&&he<="9"}function se(he){return ce(he)||he>="a"&&he<="f"||he>="A"&&he<="F"}function le(he){return he==="e"||he==="E"}function ye(he,be,Pe,Ze){var nt=he.charAt(be);if(nt==="\r")be++,Pe++,Ze=1,he.charAt(be)===`
|
||||
Expecting `+Ke.join(", ")+", got '"+this.terminals_[re]+"'":rt="Parse error on line "+(k+1)+": Unexpected "+(re==1?"end of input":"'"+(this.terminals_[re]||re)+"'"),this.parseError(rt,{text:this.lexer.match,token:this.terminals_[re]||re,line:this.lexer.yylineno,loc:Q,expected:Ke})}if(U==3){if(re==W)throw new Error(rt||"Parsing halted.");P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,Q=this.lexer.yylloc,re=oe()}for(;!(Z.toString()in C[ae]);){if(ae==0)throw new Error(rt||"Parsing halted.");q(1),ae=a[a.length-1]}Ae=re,re=Z,ae=a[a.length-1],se=C[ae]&&C[ae][Z],U=3}if(se[0]instanceof Array&&se.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ae+", token: "+re);switch(se[0]){case 1:a.push(re),h.push(this.lexer.yytext),g.push(this.lexer.yylloc),a.push(se[1]),re=null,Ae?(re=Ae,Ae=null):(P=this.lexer.yyleng,B=this.lexer.yytext,k=this.lexer.yylineno,Q=this.lexer.yylloc,U>0&&U--);break;case 2:if(et=this.productions_[se[1]][1],De.$=h[h.length-et],De._$={first_line:g[g.length-(et||1)].first_line,last_line:g[g.length-1].last_line,first_column:g[g.length-(et||1)].first_column,last_column:g[g.length-1].last_column},ye=this.performAction.call(De,B,P,k,this.yy,se[1],h,g),typeof ye<"u")return ye;et&&(a=a.slice(0,-1*et*2),h=h.slice(0,-1*et),g=g.slice(0,-1*et)),a.push(this.productions_[se[1]][0]),h.push(De.$),g.push(De._$),ft=C[a[a.length-2]][a[a.length-1]],a.push(ft);break;case 3:return!0}}return!0}},r=function(){var i={EOF:1,parseError:function(s,a){if(this.yy.parseError)this.yy.parseError(s,a);else throw new Error(s)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.match+=o,this.matched+=o;var s=o.match(/\n/);return s&&this.yylineno++,this._input=this._input.slice(1),o},unput:function(o){return this._input=o+this._input,this},more:function(){return this._more=!0,this},less:function(o){this._input=this.match.slice(o)+this._input},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
||||
`+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,a,h,g;this._more||(this.yytext="",this.match="");for(var C=this._currentRules(),B=0;B<C.length&&(a=this._input.match(this.rules[C[B]]),!(a&&(!s||a[0].length>s[0].length)&&(s=a,h=B,!this.options.flex)));B++);if(s)return g=s[0].match(/\n.*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-1:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,C[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0;if(this._input==="")return this.EOF;this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
||||
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return typeof s<"u"?s:this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(s){this.begin(s)}};return i.options={},i.performAction=function(s,a,h,g){switch(h){case 0:break;case 1:return 6;case 2:return a.yytext=a.yytext.substr(1,a.yyleng-2),4;case 3:return 17;case 4:return 18;case 5:return 23;case 6:return 24;case 7:return 22;case 8:return 21;case 9:return 10;case 10:return 11;case 11:return 8;case 12:return 14;case 13:return"INVALID"}},i.rules=[/^(?:\s+)/,/^(?:(-?([0-9]|[1-9][0-9]+))(\.[0-9]+)?([eE][-+]?[0-9]+)?\b)/,/^(?:"(?:\\[\\"bfnrt/]|\\u[a-fA-F0-9]{4}|[^\\\0-\x09\x0a-\x1f"])*")/,/^(?:\{)/,/^(?:\})/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?::)/,/^(?:true\b)/,/^(?:false\b)/,/^(?:null\b)/,/^(?:$)/,/^(?:.)/],i.conditions={INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}},i}();return t.lexer=r,t}();typeof xme<"u"&&(e.parser=n,e.parse=n.parse.bind(n))})(HW);const HE=oa(HW);var ZW={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(dh,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(he,be){return be={exports:{}},he(be,be.exports),be.exports}var i=r(function(he){function be(){var Pe=0,Ze=1,nt=2,xt=3,Ft=4,Dt=5,pt=6,nr=7,pn=8,bn=9,Jn=10,mr=11,xr=12,Nr=13,_r=14,fi=15,we=16,H=17,Y=0,Be=1,st=2,St=3,Et=4;function Nt(m,Tt){return 55296<=m.charCodeAt(Tt)&&m.charCodeAt(Tt)<=56319&&56320<=m.charCodeAt(Tt+1)&&m.charCodeAt(Tt+1)<=57343}function mn(m,Tt){Tt===void 0&&(Tt=0);var Lr=m.charCodeAt(Tt);if(55296<=Lr&&Lr<=56319&&Tt<m.length-1){var Wn=Lr,Te=m.charCodeAt(Tt+1);return 56320<=Te&&Te<=57343?(Wn-55296)*1024+(Te-56320)+65536:Wn}if(56320<=Lr&&Lr<=57343&&Tt>=1){var Wn=m.charCodeAt(Tt-1),Te=Lr;return 55296<=Wn&&Wn<=56319?(Wn-55296)*1024+(Te-56320)+65536:Te}return Lr}function Kn(m,Tt,Lr){var Wn=[m].concat(Tt).concat([Lr]),Te=Wn[Wn.length-2],de=Lr,ve=Wn.lastIndexOf(_r);if(ve>1&&Wn.slice(1,ve).every(function(Xe){return Xe==xt})&&[xt,Nr,H].indexOf(m)==-1)return st;var Se=Wn.lastIndexOf(Ft);if(Se>0&&Wn.slice(1,Se).every(function(Xe){return Xe==Ft})&&[xr,Ft].indexOf(Te)==-1)return Wn.filter(function(Xe){return Xe==Ft}).length%2==1?St:Et;if(Te==Pe&&de==Ze)return Y;if(Te==nt||Te==Pe||Te==Ze)return de==_r&&Tt.every(function(Xe){return Xe==xt})?st:Be;if(de==nt||de==Pe||de==Ze)return Be;if(Te==pt&&(de==pt||de==nr||de==bn||de==Jn))return Y;if((Te==bn||Te==nr)&&(de==nr||de==pn))return Y;if((Te==Jn||Te==pn)&&de==pn)return Y;if(de==xt||de==fi)return Y;if(de==Dt)return Y;if(Te==xr)return Y;var Ue=Wn.indexOf(xt)!=-1?Wn.lastIndexOf(xt)-1:Wn.length-2;return[Nr,H].indexOf(Wn[Ue])!=-1&&Wn.slice(Ue+1,-1).every(function(Xe){return Xe==xt})&&de==_r||Te==fi&&[we,H].indexOf(de)!=-1?Y:Tt.indexOf(Ft)!=-1?st:Te==Ft&&de==Ft?Y:Be}this.nextBreak=function(m,Tt){if(Tt===void 0&&(Tt=0),Tt<0)return 0;if(Tt>=m.length-1)return m.length;for(var Lr=En(mn(m,Tt)),Wn=[],Te=Tt+1;Te<m.length;Te++)if(!Nt(m,Te-1)){var de=En(mn(m,Te));if(Kn(Lr,Wn,de))return Te;Wn.push(de)}return m.length},this.splitGraphemes=function(m){for(var Tt=[],Lr=0,Wn;(Wn=this.nextBreak(m,Lr))<m.length;)Tt.push(m.slice(Lr,Wn)),Lr=Wn;return Lr<m.length&&Tt.push(m.slice(Lr)),Tt},this.iterateGraphemes=function(m){var Tt=0,Lr={next:(function(){var Wn,Te;return(Te=this.nextBreak(m,Tt))<m.length?(Wn=m.slice(Tt,Te),Tt=Te,{value:Wn,done:!1}):Tt<m.length?(Wn=m.slice(Tt),Tt=m.length,{value:Wn,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Lr[Symbol.iterator]=function(){return Lr}),Lr},this.countGraphemes=function(m){for(var Tt=0,Lr=0,Wn;(Wn=this.nextBreak(m,Lr))<m.length;)Lr=Wn,Tt++;return Lr<m.length&&Tt++,Tt};function En(m){return 1536<=m&&m<=1541||m==1757||m==1807||m==2274||m==3406||m==69821||70082<=m&&m<=70083||m==72250||72326<=m&&m<=72329||m==73030?xr:m==13?Pe:m==10?Ze:0<=m&&m<=9||11<=m&&m<=12||14<=m&&m<=31||127<=m&&m<=159||m==173||m==1564||m==6158||m==8203||8206<=m&&m<=8207||m==8232||m==8233||8234<=m&&m<=8238||8288<=m&&m<=8292||m==8293||8294<=m&&m<=8303||55296<=m&&m<=57343||m==65279||65520<=m&&m<=65528||65529<=m&&m<=65531||113824<=m&&m<=113827||119155<=m&&m<=119162||m==917504||m==917505||917506<=m&&m<=917535||917632<=m&&m<=917759||918e3<=m&&m<=921599?nt:768<=m&&m<=879||1155<=m&&m<=1159||1160<=m&&m<=1161||1425<=m&&m<=1469||m==1471||1473<=m&&m<=1474||1476<=m&&m<=1477||m==1479||1552<=m&&m<=1562||1611<=m&&m<=1631||m==1648||1750<=m&&m<=1756||1759<=m&&m<=1764||1767<=m&&m<=1768||1770<=m&&m<=1773||m==1809||1840<=m&&m<=1866||1958<=m&&m<=1968||2027<=m&&m<=2035||2070<=m&&m<=2073||2075<=m&&m<=2083||2085<=m&&m<=2087||2089<=m&&m<=2093||2137<=m&&m<=2139||2260<=m&&m<=2273||2275<=m&&m<=2306||m==2362||m==2364||2369<=m&&m<=2376||m==2381||2385<=m&&m<=2391||2402<=m
Line truncated
|
||||
`)}var pn={extraLines:2,tabSize:4},bn=function(mr,xr,Nr,_r){_r=Dt({},pn,_r);var fi=mr.split(/\r\n?|\n|\f/),we=Math.max(1,xr-_r.extraLines)-1,H=Math.min(xr+_r.extraLines,fi.length),Y=String(H).length,Be=nr(fi,we,xr,Y,_r),st=pt(fi[xr-1].substring(0,Nr-1),xr,Y,_r),St=nt(" ",st.length)+"^",Et=nr(fi,xr,H,Y,_r);return[Be,St,Et].filter(Boolean).join(`
|
||||
`)};return bn})}),g=new Error().stack,C=function(he){var be=Object.create(SyntaxError.prototype);return Object.assign(be,he,{name:"SyntaxError"}),Object.defineProperty(be,"stack",{get:function(){return g?g.replace(/^(.+\n){1,3}/,String(be)+`
|
||||
`):""}}),be},B=function(he,be,Pe,Ze,nt){throw C({message:Ze?he+`
|
||||
`+h(be,Ze,nt):he,rawMessage:he,source:Pe,line:Ze,column:nt})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(be){for(var Pe=arguments.length,Ze=Array(Pe>1?Pe-1:0),nt=1;nt<Pe;nt++)Ze[nt-1]=arguments[nt];return"Unexpected token <"+be+"> at "+Ze.filter(Boolean).join(":")}},P={unexpectedSymbol:function(be){for(var Pe=arguments.length,Ze=Array(Pe>1?Pe-1:0),nt=1;nt<Pe;nt++)Ze[nt-1]=arguments[nt];return"Unexpected symbol <"+be+"> at "+Ze.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},Z={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},Q={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},q={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function re(he){return he>="1"&&he<="9"}function Ae(he){return he>="0"&&he<="9"}function ae(he){return Ae(he)||he>="a"&&he<="f"||he>="A"&&he<="F"}function se(he){return he==="e"||he==="E"}function ye(he,be,Pe,Ze){var nt=he.charAt(be);if(nt==="\r")be++,Pe++,Ze=1,he.charAt(be)===`
|
||||
`&&be++;else if(nt===`
|
||||
`)be++,Pe++,Ze=1;else if(nt===" "||nt===" ")be++,Ze++;else return null;return{index:be,line:Pe,column:Ze}}function De(he,be,Pe,Ze){var nt=he.charAt(be);return nt in Z?{type:Z[nt],line:Pe,column:Ze+1,index:be+1,value:null}:null}function Ne(he,be,Pe,Ze){for(var nt in W)if(W.hasOwnProperty(nt)&&he.substr(be,nt.length)===nt)return{type:W[nt],line:Pe,column:Ze+nt.length,index:be+nt.length,value:nt};return null}function et(he,be,Pe,Ze){for(var nt=be,xt=Q._START_;be<he.length;){var Ft=he.charAt(be);switch(xt){case Q._START_:{if(Ft==='"')be++,xt=Q.START_QUOTE_OR_CHAR;else return null;break}case Q.START_QUOTE_OR_CHAR:{if(Ft==="\\")be++,xt=Q.ESCAPE;else{if(Ft==='"')return be++,{type:R.STRING,line:Pe,column:Ze+be-nt,index:be,value:he.slice(nt,be)};be++}break}case Q.ESCAPE:{if(Ft in q){if(be++,Ft==="u")for(var Dt=0;Dt<4;Dt++){var pt=he.charAt(be);if(pt&&se(pt))be++;else return null}xt=Q.START_QUOTE_OR_CHAR}else return null;break}}}}function ft(he,be,Pe,Ze){var nt=be,xt=be,Ft=oe._START_;e:for(;be<he.length;){var Dt=he.charAt(be);switch(Ft){case oe._START_:{if(Dt==="-")Ft=oe.MINUS;else if(Dt==="0")xt=be+1,Ft=oe.ZERO;else if(re(Dt))xt=be+1,Ft=oe.DIGIT;else return null;break}case oe.MINUS:{if(Dt==="0")xt=be+1,Ft=oe.ZERO;else if(re(Dt))xt=be+1,Ft=oe.DIGIT;else return null;break}case oe.ZERO:{if(Dt===".")Ft=oe.POINT;else if(le(Dt))Ft=oe.EXP;else break e;break}case oe.DIGIT:{if(ce(Dt))xt=be+1;else if(Dt===".")Ft=oe.POINT;else if(le(Dt))Ft=oe.EXP;else break e;break}case oe.POINT:{if(ce(Dt))xt=be+1,Ft=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(ce(Dt))xt=be+1;else if(le(Dt))Ft=oe.EXP;else break e;break}case oe.EXP:{if(Dt==="+"||Dt==="-")Ft=oe.EXP_DIGIT_OR_SIGN;else if(ce(Dt))xt=be+1,Ft=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(ce(Dt))xt=be+1;else break e;break}}be++}return xt>0?{type:R.NUMBER,line:Pe,column:Ze+xt-nt,index:xt,value:he.slice(nt,xt)}:null}var Ke=function(be,Pe){for(var Ze=1,nt=1,xt=0,Ft=[];xt<be.length;){var Dt=[be,xt,Ze,nt],pt=ye.apply(void 0,Dt);if(pt){xt=pt.index,Ze=pt.line,nt=pt.column;continue}var nr=De.apply(void 0,Dt)||Ne.apply(void 0,Dt)||et.apply(void 0,Dt)||ft.apply(void 0,Dt);if(nr){var pn={type:nr.type,value:nr.value,loc:a(Ze,nt,xt,nr.line,nr.column,nr.index,Pe.source)};Ft.push(pn),xt=nr.index,Ze=nr.line,nt=nr.column}else B(P.unexpectedSymbol(s(be,xt,xt+1),Pe.source,Ze,nt),be,Pe.source,Ze,nt)}return Ft},rt={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Ce={_START_:0,KEY:1,COLON:2},Rt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},jt={loc:!0,source:null};function tn(he,be,Pe){var Ze=be.length>0?be[be.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),he,Pe.source,Ze.line,Ze.column)}function Qt(he){for(var be=0,Pe=0;Pe<4;Pe++)be=be*16+parseInt(he[Pe],16);return String.fromCharCode(be)}var He={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Je=['"',"\\","/"];function tt(he){for(var be="",Pe=0;Pe<he.length;Pe++){var Ze=he.charAt(Pe);if(Ze==="\\"){Pe++;var nt=he.charAt(Pe);if(nt==="u")be+=Qt(he.substr(Pe+1,4)),Pe+=4;else if(Je.indexOf(nt)!==-1)be+=nt;else if(nt in He)be+=He[nt];else break}else be+=Ze}return be}function rn(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Object",children:[]},Ft=rt._START_;Pe<be.length;){var Dt=be[Pe];switch(Ft){case rt._START_:{if(Dt.type===R.LEFT_BRACE)nt=Dt,Ft=rt.OPEN_OBJECT,Pe++;else return null;break}case rt.OPEN_OBJECT:{if(Dt.type===R.RIGHT_BRACE)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};var pt=mt(he,be,Pe,Ze);xt.children.push(pt.value),Ft=rt.PROPERTY,Pe=pt.index;break}case rt.PROPERTY:{if(Dt.type===R.RIGHT_BRACE)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};Dt.type===R.COMMA?(Ft=rt.COMMA,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case rt.COMMA:{var nr=mt(he,be,Pe,Ze);nr?(Pe=nr.index,xt.children.push(nr.value),Ft=rt.PROPERTY):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}}}tn(he,be,Ze)}function mt(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Property",key:null,value:null},Ft=Ce._START_;Pe<be.length;){var Dt=be[Pe];switch(Ft){case Ce._START_:{if(Dt.type===R.STRING){var pt={type:"Identifier",value:tt(he.slice(Dt.loc.start.offset+1,Dt.loc.end.offset-1)),raw:Dt.value};Ze.loc&&(pt.loc=Dt.loc),nt=Dt,xt.key=pt,Ft=Ce.KEY,Pe++}else return null;break}case Ce.KEY:{Dt.type===R.COLON?(Ft=Ce.COLON,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case Ce.COLON:{var nr=Pt(he,be,Pe,Ze);return xt.value=nr.value,Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,nr.value.loc.end.line,nr.value.loc.end.column,nr.value.loc.end.offset,Ze.source)),{value:xt,index:nr.index}}}}}function dt(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Array",children:[]},Ft=Rt._START_,Dt=void 0;Pe<be.length;)switch(Dt=be[Pe],Ft){case Rt._START_:{if(Dt.type===R.LEFT_BRACKET)nt=Dt,Ft=Rt.OPEN_ARRAY,Pe++;else return null;break}case Rt.OPEN_ARRAY:{if(Dt.type===R.RIGHT_BRACKET)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};var pt=Pt(he,be,Pe,Ze);Pe=pt.index,xt.children.push(pt.value),Ft=Rt.VALUE;break}case Rt.VALUE:{if(Dt.type===R.RIGHT_BRACKET)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};Dt.type===R.COMMA?(Ft=Rt.COMMA,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case Rt.COMMA:{var nr=Pt(he,be,Pe,Ze);Pe=nr.index,xt.children.push(nr.value),Ft=Rt.VALUE;break}}tn(he,be,Ze)}function kt(he,be,Pe,Ze){var nt=be[Pe],xt=null;switch(nt.type){case R.STRING:{xt=tt(he.slice(nt.loc.start.offset+1,nt.loc.end.offset-1));break}case R.NUMBER:{xt=Number(nt.value);break}case R.TRUE:{xt=!0;break}case R.FALSE:{xt=!1;break}case R.NULL:{xt=null;break}default:return null}var Ft={type:"Literal",value:xt,raw:nt.value};return Ze.loc&&(Ft.loc=nt.loc),{value:Ft,index:Pe+1}}function Pt(he,be,Pe,Ze){var nt=be[Pe],xt=kt.apply(void 0,arguments)||rn.apply(void 0,arguments)||dt.apply(void 0,arguments);if(xt)return xt;B(k.unexpectedToken(s(he,nt.loc.start.offset,nt.loc.end.offset),Ze.source,nt.loc.start.line,nt.loc.start.column),he,Ze.source,nt.loc.start.line,nt.loc.start.column)}var Me=function(he,be){be=Object.assign({},jt,be);var Pe=Ke(he,be);Pe.length===0&&tn(he,Pe,be);var Ze=Pt(he,Pe,0,be);if(Ze.index===Pe.length)return Ze.value;var nt=Pe[Ze.index];B(k.unexpectedToken(s(he,nt.loc.start.offset,nt.loc.end.offset),be.source,nt.loc.start.line,nt.loc.start.column),he,be.source,nt.loc.start.line,nt.loc.start.column)};return Me})})(xW);var ope=xW.exports;const ape=ma(ope);function Sn(){var e="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",n="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
|
||||
`)be++,Pe++,Ze=1;else if(nt===" "||nt===" ")be++,Ze++;else return null;return{index:be,line:Pe,column:Ze}}function De(he,be,Pe,Ze){var nt=he.charAt(be);return nt in Z?{type:Z[nt],line:Pe,column:Ze+1,index:be+1,value:null}:null}function Ne(he,be,Pe,Ze){for(var nt in W)if(W.hasOwnProperty(nt)&&he.substr(be,nt.length)===nt)return{type:W[nt],line:Pe,column:Ze+nt.length,index:be+nt.length,value:nt};return null}function et(he,be,Pe,Ze){for(var nt=be,xt=Q._START_;be<he.length;){var Ft=he.charAt(be);switch(xt){case Q._START_:{if(Ft==='"')be++,xt=Q.START_QUOTE_OR_CHAR;else return null;break}case Q.START_QUOTE_OR_CHAR:{if(Ft==="\\")be++,xt=Q.ESCAPE;else{if(Ft==='"')return be++,{type:U.STRING,line:Pe,column:Ze+be-nt,index:be,value:he.slice(nt,be)};be++}break}case Q.ESCAPE:{if(Ft in q){if(be++,Ft==="u")for(var Dt=0;Dt<4;Dt++){var pt=he.charAt(be);if(pt&&ae(pt))be++;else return null}xt=Q.START_QUOTE_OR_CHAR}else return null;break}}}}function ft(he,be,Pe,Ze){var nt=be,xt=be,Ft=oe._START_;e:for(;be<he.length;){var Dt=he.charAt(be);switch(Ft){case oe._START_:{if(Dt==="-")Ft=oe.MINUS;else if(Dt==="0")xt=be+1,Ft=oe.ZERO;else if(re(Dt))xt=be+1,Ft=oe.DIGIT;else return null;break}case oe.MINUS:{if(Dt==="0")xt=be+1,Ft=oe.ZERO;else if(re(Dt))xt=be+1,Ft=oe.DIGIT;else return null;break}case oe.ZERO:{if(Dt===".")Ft=oe.POINT;else if(se(Dt))Ft=oe.EXP;else break e;break}case oe.DIGIT:{if(Ae(Dt))xt=be+1;else if(Dt===".")Ft=oe.POINT;else if(se(Dt))Ft=oe.EXP;else break e;break}case oe.POINT:{if(Ae(Dt))xt=be+1,Ft=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(Ae(Dt))xt=be+1;else if(se(Dt))Ft=oe.EXP;else break e;break}case oe.EXP:{if(Dt==="+"||Dt==="-")Ft=oe.EXP_DIGIT_OR_SIGN;else if(Ae(Dt))xt=be+1,Ft=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(Ae(Dt))xt=be+1;else break e;break}}be++}return xt>0?{type:U.NUMBER,line:Pe,column:Ze+xt-nt,index:xt,value:he.slice(nt,xt)}:null}var Ke=function(be,Pe){for(var Ze=1,nt=1,xt=0,Ft=[];xt<be.length;){var Dt=[be,xt,Ze,nt],pt=ye.apply(void 0,Dt);if(pt){xt=pt.index,Ze=pt.line,nt=pt.column;continue}var nr=De.apply(void 0,Dt)||Ne.apply(void 0,Dt)||et.apply(void 0,Dt)||ft.apply(void 0,Dt);if(nr){var pn={type:nr.type,value:nr.value,loc:a(Ze,nt,xt,nr.line,nr.column,nr.index,Pe.source)};Ft.push(pn),xt=nr.index,Ze=nr.line,nt=nr.column}else B(P.unexpectedSymbol(s(be,xt,xt+1),Pe.source,Ze,nt),be,Pe.source,Ze,nt)}return Ft},rt={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},_e={_START_:0,KEY:1,COLON:2},Ut={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},jt={loc:!0,source:null};function nn(he,be,Pe){var Ze=be.length>0?be[be.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),he,Pe.source,Ze.line,Ze.column)}function Qt(he){for(var be=0,Pe=0;Pe<4;Pe++)be=be*16+parseInt(he[Pe],16);return String.fromCharCode(be)}var He={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Je=['"',"\\","/"];function tt(he){for(var be="",Pe=0;Pe<he.length;Pe++){var Ze=he.charAt(Pe);if(Ze==="\\"){Pe++;var nt=he.charAt(Pe);if(nt==="u")be+=Qt(he.substr(Pe+1,4)),Pe+=4;else if(Je.indexOf(nt)!==-1)be+=nt;else if(nt in He)be+=He[nt];else break}else be+=Ze}return be}function on(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Object",children:[]},Ft=rt._START_;Pe<be.length;){var Dt=be[Pe];switch(Ft){case rt._START_:{if(Dt.type===U.LEFT_BRACE)nt=Dt,Ft=rt.OPEN_OBJECT,Pe++;else return null;break}case rt.OPEN_OBJECT:{if(Dt.type===U.RIGHT_BRACE)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};var pt=mt(he,be,Pe,Ze);xt.children.push(pt.value),Ft=rt.PROPERTY,Pe=pt.index;break}case rt.PROPERTY:{if(Dt.type===U.RIGHT_BRACE)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};Dt.type===U.COMMA?(Ft=rt.COMMA,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case rt.COMMA:{var nr=mt(he,be,Pe,Ze);nr?(Pe=nr.index,xt.children.push(nr.value),Ft=rt.PROPERTY):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}}}nn(he,be,Ze)}function mt(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Property",key:null,value:null},Ft=_e._START_;Pe<be.length;){var Dt=be[Pe];switch(Ft){case _e._START_:{if(Dt.type===U.STRING){var pt={type:"Identifier",value:tt(he.slice(Dt.loc.start.offset+1,Dt.loc.end.offset-1)),raw:Dt.value};Ze.loc&&(pt.loc=Dt.loc),nt=Dt,xt.key=pt,Ft=_e.KEY,Pe++}else return null;break}case _e.KEY:{Dt.type===U.COLON?(Ft=_e.COLON,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case _e.COLON:{var nr=Pt(he,be,Pe,Ze);return xt.value=nr.value,Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,nr.value.loc.end.line,nr.value.loc.end.column,nr.value.loc.end.offset,Ze.source)),{value:xt,index:nr.index}}}}}function dt(he,be,Pe,Ze){for(var nt=void 0,xt={type:"Array",children:[]},Ft=Ut._START_,Dt=void 0;Pe<be.length;)switch(Dt=be[Pe],Ft){case Ut._START_:{if(Dt.type===U.LEFT_BRACKET)nt=Dt,Ft=Ut.OPEN_ARRAY,Pe++;else return null;break}case Ut.OPEN_ARRAY:{if(Dt.type===U.RIGHT_BRACKET)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};var pt=Pt(he,be,Pe,Ze);Pe=pt.index,xt.children.push(pt.value),Ft=Ut.VALUE;break}case Ut.VALUE:{if(Dt.type===U.RIGHT_BRACKET)return Ze.loc&&(xt.loc=a(nt.loc.start.line,nt.loc.start.column,nt.loc.start.offset,Dt.loc.end.line,Dt.loc.end.column,Dt.loc.end.offset,Ze.source)),{value:xt,index:Pe+1};Dt.type===U.COMMA?(Ft=Ut.COMMA,Pe++):B(k.unexpectedToken(s(he,Dt.loc.start.offset,Dt.loc.end.offset),Ze.source,Dt.loc.start.line,Dt.loc.start.column),he,Ze.source,Dt.loc.start.line,Dt.loc.start.column);break}case Ut.COMMA:{var nr=Pt(he,be,Pe,Ze);Pe=nr.index,xt.children.push(nr.value),Ft=Ut.VALUE;break}}nn(he,be,Ze)}function kt(he,be,Pe,Ze){var nt=be[Pe],xt=null;switch(nt.type){case U.STRING:{xt=tt(he.slice(nt.loc.start.offset+1,nt.loc.end.offset-1));break}case U.NUMBER:{xt=Number(nt.value);break}case U.TRUE:{xt=!0;break}case U.FALSE:{xt=!1;break}case U.NULL:{xt=null;break}default:return null}var Ft={type:"Literal",value:xt,raw:nt.value};return Ze.loc&&(Ft.loc=nt.loc),{value:Ft,index:Pe+1}}function Pt(he,be,Pe,Ze){var nt=be[Pe],xt=kt.apply(void 0,arguments)||on.apply(void 0,arguments)||dt.apply(void 0,arguments);if(xt)return xt;B(k.unexpectedToken(s(he,nt.loc.start.offset,nt.loc.end.offset),Ze.source,nt.loc.start.line,nt.loc.start.column),he,Ze.source,nt.loc.start.line,nt.loc.start.column)}var Me=function(he,be){be=Object.assign({},jt,be);var Pe=Ke(he,be);Pe.length===0&&nn(he,Pe,be);var Ze=Pt(he,Pe,0,be);if(Ze.index===Pe.length)return Ze.value;var nt=Pe[Ze.index];B(k.unexpectedToken(s(he,nt.loc.start.offset,nt.loc.end.offset),be.source,nt.loc.start.line,nt.loc.start.column),he,be.source,nt.loc.start.line,nt.loc.start.column)};return Me})})(ZW);var wme=ZW.exports;const Mme=oa(wme);function Sn(){var e="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",n="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:uwe({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return tm.default.createElement("div",{style:o.alpha},tm.default.createElement("div",{style:o.checkboard},tm.default.createElement(mwe.default,{renderers:this.props.renderers})),tm.default.createElement("div",{style:o.gradient}),tm.default.createElement("div",{style:o.container,ref:function(a){return r.container=a},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},tm.default.createElement("div",{style:o.pointer},this.props.pointer?tm.default.createElement(this.props.pointer,this.props):tm.default.createElement("div",{style:o.slider}))))}}]),n}(VE.PureComponent||VE.Component);lb.default=Cwe;var ub={};Object.defineProperty(ub,"__esModule",{value:!0});ub.EditableInput=void 0;var _we=function(){function e(n,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(n,i.key,i)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),HE=Sr,JM=TN(HE),bwe=zs,xwe=TN(bwe);function TN(e){return e&&e.__esModule?e:{default:e}}function wwe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Mwe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Swe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function Ewe(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var Owe=1,KN=38,Bwe=40,kwe=[KN,Bwe],Iwe=function(n){return kwe.indexOf(n)>-1},Twe=function(n){return Number(String(n).replace(/%/g,""))},Kwe=1,Pwe=ub.EditableInput=function(e){Ewe(n,e);function n(t){Mwe(this,n);var r=Swe(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(i){r.setUpdatedValue(i.target.value,i)},r.handleKeyDown=function(i){var o=Twe(i.target.value);if(!isNaN(o)&&Iwe(i.keyCode)){var s=r.getArrowOffset(),a=i.keyCode===KN?o+s:o-s;r.setUpdatedValue(a,i)}},r.handleDrag=function(i){if(r.props.dragLabel){var o=Math.round(r.props.value+i.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),i)}},r.handleMouseDown=function(i){r.props.dragLabel&&(i.preventDefault(),r.handleDrag(i),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+Kwe++,r}return _we(n,[{key:"componentDidUpdate",value:function(r,i){this.props.value!==this.state.value&&(r.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return wwe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Owe}},{key:"setUpdatedValue",value:function(r,i){var o=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(o,i),this.setState({value:r})}},{key:"render",value:function(){var r=this,i=(0,xwe.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return JM.default.createElement("div",{style:i.wrap},JM.default.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return r.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?JM.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(HE.PureComponent||HE.Component);ub.default=Pwe;var Ab=
Line truncated
|
||||
rgba(`+i.r+","+i.g+","+i.b+", 1) 100%)"},pointer:{left:0,top:i.a*100+"%"}},overwrite:OMe({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return om.default.createElement("div",{style:o.alpha},om.default.createElement("div",{style:o.checkboard},om.default.createElement(FMe.default,{renderers:this.props.renderers})),om.default.createElement("div",{style:o.gradient}),om.default.createElement("div",{style:o.container,ref:function(a){return r.container=a},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},om.default.createElement("div",{style:o.pointer},this.props.pointer?om.default.createElement(this.props.pointer,this.props):om.default.createElement("div",{style:o.slider}))))}}]),n}(iO.PureComponent||iO.Component);fb.default=RMe;var pb={};Object.defineProperty(pb,"__esModule",{value:!0});pb.EditableInput=void 0;var zMe=function(){function e(n,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(n,i.key,i)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),oO=Sr,sS=aG(oO),jMe=js,WMe=aG(jMe);function aG(e){return e&&e.__esModule?e:{default:e}}function NMe(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function GMe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function QMe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function $Me(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var YMe=1,sG=38,qMe=40,VMe=[sG,qMe],HMe=function(n){return VMe.indexOf(n)>-1},ZMe=function(n){return Number(String(n).replace(/%/g,""))},XMe=1,JMe=pb.EditableInput=function(e){$Me(n,e);function n(t){GMe(this,n);var r=QMe(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return r.handleBlur=function(){r.state.blurValue&&r.setState({value:r.state.blurValue,blurValue:null})},r.handleChange=function(i){r.setUpdatedValue(i.target.value,i)},r.handleKeyDown=function(i){var o=ZMe(i.target.value);if(!isNaN(o)&&HMe(i.keyCode)){var s=r.getArrowOffset(),a=i.keyCode===sG?o+s:o-s;r.setUpdatedValue(a,i)}},r.handleDrag=function(i){if(r.props.dragLabel){var o=Math.round(r.props.value+i.movementX);o>=0&&o<=r.props.dragMax&&r.props.onChange&&r.props.onChange(r.getValueObjectWithLabel(o),i)}},r.handleMouseDown=function(i){r.props.dragLabel&&(i.preventDefault(),r.handleDrag(i),window.addEventListener("mousemove",r.handleDrag),window.addEventListener("mouseup",r.handleMouseUp))},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleDrag),window.removeEventListener("mouseup",r.handleMouseUp)},r.state={value:String(t.value).toUpperCase(),blurValue:String(t.value).toUpperCase()},r.inputId="rc-editable-input-"+XMe++,r}return zMe(n,[{key:"componentDidUpdate",value:function(r,i){this.props.value!==this.state.value&&(r.value!==this.props.value||i.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return NMe({},this.props.label,r)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||YMe}},{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,WMe.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 sS.default.createElement("div",{style:i.wrap},sS.default.createElement("input",{id:this.inputId,style:i.input,ref:function(s){return r.input=s},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?sS.default.createElement("label",{htmlFor:this.inputId,style:i.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),n}(oO.PureComponent||oO.Component);pb.default=JMe;var mb=
Line truncated
|
||||
.hue-horizontal {
|
||||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
@@ -760,8 +760,8 @@ Expecting `+Ke.join(", ")+", got '"+this.terminals_[re]+"'":rt="Parse error on l
|
||||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
}
|
||||
`),hg.default.createElement("div",{style:s.pointer},this.props.pointer?hg.default.createElement(this.props.pointer,this.props):hg.default.createElement("div",{style:s.slider}))))}}]),n}(ZE.PureComponent||ZE.Component);Ab.default=Nwe;var cb={};Object.defineProperty(cb,"__esModule",{value:!0});cb.Raised=void 0;var Gwe=Sr,eS=q5(Gwe),Qwe=uh,Gx=q5(Qwe),$we=zs,Ywe=q5($we),qwe=ON,Vwe=q5(qwe);function q5(e){return e&&e.__esModule?e:{default:e}}var R8=cb.Raised=function(n){var t=n.zDepth,r=n.radius,i=n.background,o=n.children,s=n.styles,a=s===void 0?{}:s,p=(0,Ywe.default)((0,Vwe.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%"}}},a),{"zDepth-1":t===1});return eS.default.createElement("div",{style:p.wrap},eS.default.createElement("div",{style:p.bg}),eS.default.createElement("div",{style:p.content},o))};R8.propTypes={background:Gx.default.string,zDepth:Gx.default.oneOf([0,1,2,3,4,5]),radius:Gx.default.number,styles:Gx.default.object};R8.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};cb.default=R8;var db={},Hwe=ch,Zwe=function(){return Hwe.Date.now()},Xwe=Zwe,Jwe=/\s/;function eMe(e){for(var n=e.length;n--&&Jwe.test(e.charAt(n)););return n}var tMe=eMe,nMe=tMe,rMe=/^\s+/;function iMe(e){return e&&e.slice(0,nMe(e)+1).replace(rMe,"")}var oMe=iMe,aMe=oMe,JK=xd,sMe=G5,eP=NaN,lMe=/^[-+]0x[0-9a-f]+$/i,uMe=/^0b[01]+$/i,AMe=/^0o[0-7]+$/i,cMe=parseInt;function dMe(e){if(typeof e=="number")return e;if(sMe(e))return eP;if(JK(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=JK(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=aMe(e);var t=uMe.test(e);return t||AMe.test(e)?cMe(e.slice(2),t?2:8):lMe.test(e)?eP:+e}var hMe=dMe,fMe=xd,tS=Xwe,tP=hMe,pMe="Expected a function",mMe=Math.max,gMe=Math.min;function yMe(e,n,t){var r,i,o,s,a,p,g=0,b=!1,B=!1,k=!0;if(typeof e!="function")throw new TypeError(pMe);n=tP(n)||0,fMe(t)&&(b=!!t.leading,B="maxWait"in t,o=B?mMe(tP(t.maxWait)||0,n):o,k="trailing"in t?!!t.trailing:k);function P(se){var le=r,ye=i;return r=i=void 0,g=se,s=e.apply(ye,le),s}function R(se){return g=se,a=setTimeout(Q,n),b?P(se):s}function Z(se){var le=se-p,ye=se-g,De=n-le;return B?gMe(De,o-ye):De}function W(se){var le=se-p,ye=se-g;return p===void 0||le>=n||le<0||B&&ye>=o}function Q(){var se=tS();if(W(se))return q(se);a=setTimeout(Q,Z(se))}function q(se){return a=void 0,k&&r?P(se):(r=i=void 0,s)}function oe(){a!==void 0&&clearTimeout(a),g=0,r=p=i=a=void 0}function re(){return a===void 0?s:q(tS())}function ce(){var se=tS(),le=W(se);if(r=arguments,i=this,p=se,le){if(a===void 0)return R(p);if(B)return clearTimeout(a),a=setTimeout(Q,n),P(p)}return a===void 0&&(a=setTimeout(Q,n)),s}return ce.cancel=oe,ce.flush=re,ce}var FN=yMe,vMe=FN,CMe=xd,_Me="Expected a function";function bMe(e,n,t){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(_Me);return CMe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),vMe(e,n,{leading:r,maxWait:n,trailing:i})}var xMe=bMe,L8={};Object.defineProperty(L8,"__esModule",{value:!0});L8.calculateChange=function(n,t,r){var i=r.getBoundingClientRect(),o=i.width,s=i.height,a=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,p=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,g=a-(r.getBoundingClientRect().left+window.pageXOffset),b=p-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),b<0?b=0:b>s&&(b=s);var B=g/o,k=1-b/s;return{h:t.h,s:B,v:k,a:t.a,source:"hsv"}};Object.defineProperty(db,"__esModule",{value:!0});db.Saturation=void 0;var wMe=function(){function e(n,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(n,i.key,i)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),XE=Sr,C0=z8(XE),MMe=zs,SMe=z8(MMe),EMe=xMe,OMe=z8(EMe),BMe=L8,kMe=IMe(BMe);function IMe(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function z8(e){return e&&e.__esModule?e:{default:e}}function TMe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function KMe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function PMe(e,n){if(typeof n!="function"&&n!==null)th
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:a,pointer:p,circle:g}},{custom:!!this.props.style});return C0.default.createElement("div",{style:b.color,ref:function(k){return r.container=k},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},C0.default.createElement("style",null,`
|
||||
`),gg.default.createElement("div",{style:s.pointer},this.props.pointer?gg.default.createElement(this.props.pointer,this.props):gg.default.createElement("div",{style:s.slider}))))}}]),n}(aO.PureComponent||aO.Component);mb.default=lSe;var gb={};Object.defineProperty(gb,"__esModule",{value:!0});gb.Raised=void 0;var uSe=Sr,lS=tw(uSe),ASe=fh,Hx=tw(ASe),cSe=js,dSe=tw(cSe),hSe=nG,fSe=tw(hSe);function tw(e){return e&&e.__esModule?e:{default:e}}var q8=gb.Raised=function(n){var t=n.zDepth,r=n.radius,i=n.background,o=n.children,s=n.styles,a=s===void 0?{}:s,h=(0,dSe.default)((0,fSe.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%"}}},a),{"zDepth-1":t===1});return lS.default.createElement("div",{style:h.wrap},lS.default.createElement("div",{style:h.bg}),lS.default.createElement("div",{style:h.content},o))};q8.propTypes={background:Hx.default.string,zDepth:Hx.default.oneOf([0,1,2,3,4,5]),radius:Hx.default.number,styles:Hx.default.object};q8.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};gb.default=q8;var yb={},pSe=mh,mSe=function(){return pSe.Date.now()},gSe=mSe,ySe=/\s/;function vSe(e){for(var n=e.length;n--&&ySe.test(e.charAt(n)););return n}var _Se=vSe,CSe=_Se,bSe=/^\s+/;function xSe(e){return e&&e.slice(0,CSe(e)+1).replace(bSe,"")}var wSe=xSe,MSe=wSe,fP=Ed,SSe=Z5,pP=NaN,ESe=/^[-+]0x[0-9a-f]+$/i,OSe=/^0b[01]+$/i,BSe=/^0o[0-7]+$/i,kSe=parseInt;function ISe(e){if(typeof e=="number")return e;if(SSe(e))return pP;if(fP(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=fP(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=MSe(e);var t=OSe.test(e);return t||BSe.test(e)?kSe(e.slice(2),t?2:8):ESe.test(e)?pP:+e}var TSe=ISe,KSe=Ed,uS=gSe,mP=TSe,PSe="Expected a function",FSe=Math.max,DSe=Math.min;function LSe(e,n,t){var r,i,o,s,a,h,g=0,C=!1,B=!1,k=!0;if(typeof e!="function")throw new TypeError(PSe);n=mP(n)||0,KSe(t)&&(C=!!t.leading,B="maxWait"in t,o=B?FSe(mP(t.maxWait)||0,n):o,k="trailing"in t?!!t.trailing:k);function P(ae){var se=r,ye=i;return r=i=void 0,g=ae,s=e.apply(ye,se),s}function U(ae){return g=ae,a=setTimeout(Q,n),C?P(ae):s}function Z(ae){var se=ae-h,ye=ae-g,De=n-se;return B?DSe(De,o-ye):De}function W(ae){var se=ae-h,ye=ae-g;return h===void 0||se>=n||se<0||B&&ye>=o}function Q(){var ae=uS();if(W(ae))return q(ae);a=setTimeout(Q,Z(ae))}function q(ae){return a=void 0,k&&r?P(ae):(r=i=void 0,s)}function oe(){a!==void 0&&clearTimeout(a),g=0,r=h=i=a=void 0}function re(){return a===void 0?s:q(uS())}function Ae(){var ae=uS(),se=W(ae);if(r=arguments,i=this,h=ae,se){if(a===void 0)return U(h);if(B)return clearTimeout(a),a=setTimeout(Q,n),P(h)}return a===void 0&&(a=setTimeout(Q,n)),s}return Ae.cancel=oe,Ae.flush=re,Ae}var uG=LSe,USe=uG,RSe=Ed,zSe="Expected a function";function jSe(e,n,t){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(zSe);return RSe(t)&&(r="leading"in t?!!t.leading:r,i="trailing"in t?!!t.trailing:i),USe(e,n,{leading:r,maxWait:n,trailing:i})}var WSe=jSe,V8={};Object.defineProperty(V8,"__esModule",{value:!0});V8.calculateChange=function(n,t,r){var i=r.getBoundingClientRect(),o=i.width,s=i.height,a=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,h=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,g=a-(r.getBoundingClientRect().left+window.pageXOffset),C=h-(r.getBoundingClientRect().top+window.pageYOffset);g<0?g=0:g>o&&(g=o),C<0?C=0:C>s&&(C=s);var B=g/o,k=1-C/s;return{h:t.h,s:B,v:k,a:t.a,source:"hsv"}};Object.defineProperty(yb,"__esModule",{value:!0});yb.Saturation=void 0;var NSe=function(){function e(n,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(n,i.key,i)}}return function(n,t,r){return t&&e(n.prototype,t),r&&e(n,r),n}}(),sO=Sr,w0=H8(sO),GSe=js,QSe=H8(GSe),$Se=WSe,YSe=H8($Se),qSe=V8,VSe=HSe(qSe);function HSe(e){if(e&&e.__esModule)return e;var n={};if(e!=null)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n}function H8(e){return e&&e.__esModule?e:{default:e}}function ZSe(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function XSe(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n&&(typeof n=="object"||typeof n=="function")?n:e}function JSe(e,n){if(typeof n!="function"&&n!==null)th
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:o,white:s,black:a,pointer:h,circle:g}},{custom:!!this.props.style});return w0.default.createElement("div",{style:C.color,ref:function(k){return r.container=k},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w0.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));
|
||||
@@ -770,14 +770,14 @@ Expecting `+Ke.join(", ")+", got '"+this.terminals_[re]+"'":rt="Parse error on l
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),C0.default.createElement("div",{style:b.white,className:"saturation-white"},C0.default.createElement("div",{style:b.black,className:"saturation-black"}),C0.default.createElement("div",{style:b.pointer},this.props.pointer?C0.default.createElement(this.props.pointer,this.props):C0.default.createElement("div",{style:b.circle}))))}}]),n}(XE.PureComponent||XE.Component);db.default=FMe;var hb={},pA={},DMe=dN,UMe=cN,RMe=QW,LMe=Uc;function zMe(e,n){var t=LMe(e)?DMe:UMe;return t(e,RMe(n))}var jMe=zMe,WMe=jMe,DN={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(_f,function(){function t(Me){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},t(Me)}var r=/^\s+/,i=/\s+$/;function o(Me,he){if(Me=Me||"",he=he||{},Me instanceof o)return Me;if(!(this instanceof o))return new o(Me,he);var be=s(Me);this._originalInput=Me,this._r=be.r,this._g=be.g,this._b=be.b,this._a=be.a,this._roundA=Math.round(100*this._a)/100,this._format=he.format||be.format,this._gradientType=he.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=be.ok}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 he=this.toRgb();return(he.r*299+he.g*587+he.b*114)/1e3},getLuminance:function(){var he=this.toRgb(),be,Pe,Ze,nt,xt,Ft;return be=he.r/255,Pe=he.g/255,Ze=he.b/255,be<=.03928?nt=be/12.92:nt=Math.pow((be+.055)/1.055,2.4),Pe<=.03928?xt=Pe/12.92:xt=Math.pow((Pe+.055)/1.055,2.4),Ze<=.03928?Ft=Ze/12.92:Ft=Math.pow((Ze+.055)/1.055,2.4),.2126*nt+.7152*xt+.0722*Ft},setAlpha:function(he){return this._a=rt(he),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var he=b(this._r,this._g,this._b);return{h:he.h*360,s:he.s,v:he.v,a:this._a}},toHsvString:function(){var he=b(this._r,this._g,this._b),be=Math.round(he.h*360),Pe=Math.round(he.s*100),Ze=Math.round(he.v*100);return this._a==1?"hsv("+be+", "+Pe+"%, "+Ze+"%)":"hsva("+be+", "+Pe+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var he=p(this._r,this._g,this._b);return{h:he.h*360,s:he.s,l:he.l,a:this._a}},toHslString:function(){var he=p(this._r,this._g,this._b),be=Math.round(he.h*360),Pe=Math.round(he.s*100),Ze=Math.round(he.l*100);return this._a==1?"hsl("+be+", "+Pe+"%, "+Ze+"%)":"hsla("+be+", "+Pe+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(he){return k(this._r,this._g,this._b,he)},toHexString:function(he){return"#"+this.toHex(he)},toHex8:function(he){return P(this._r,this._g,this._b,this._a,he)},toHex8String:function(he){return"#"+this.toHex8(he)},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(Ce(this._r,255)*100)+"%",g:Math.round(Ce(this._g,255)*100)+"%",b:Math.round(Ce(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%)":"rgba("+Math.round(Ce(this._r,255)*100)+"%, "+Math.round(Ce(this._g,255)*100)+"%, "+Math.round(Ce(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ft[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(he){var be="#"+R(this._r,this._g,this._b,this._a),Pe=be,Ze=this._gradientType?"GradientType = 1, ":"";if(he){var nt=o(he);Pe="#"+R(nt._r,nt._g,nt._b,nt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+be+",endColorstr="+Pe+")"},toString:function(he){var be=!!he;he=he||this._format;var Pe=!1,Ze=this._a<1&&this._a>=0,nt=!be&&Ze&&(he==="hex"||he==="hex6"||he==="hex3"||he==="hex4"||he==="hex8"||he==="name");return nt?he==="name"&&this._a===0?this.toName():this.toRgbString():(he==="rgb"&&(Pe=this.toRgbString()),he==="prgb"&&(Pe=this.toPercentageRgbString()),(he==="hex"||he==="hex6")&&(Pe=this.toHexString()),he==="hex3"&&(Pe=this.toHexString(!0)),he==="hex4"&&(Pe=this.toHex8String(!0)),he==="hex8"&&(Pe=this.toHex8String()),he==="name"&&(Pe=this.toName()),he==="hsl"&&(Pe=this.toHslString()),he==="hsv"&&(Pe=this.toHsvString()),Pe||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(he,be){var Pe=he.apply(null,[this].concat([].slice.call(be)));return this._r=Pe._r,this._g=Pe._g,this._b=Pe._b,this.setAlpha(Pe._a),this},lighten:function(){return this._
Line truncated
|
||||
`),w0.default.createElement("div",{style:C.white,className:"saturation-white"},w0.default.createElement("div",{style:C.black,className:"saturation-black"}),w0.default.createElement("div",{style:C.pointer},this.props.pointer?w0.default.createElement(this.props.pointer,this.props):w0.default.createElement("div",{style:C.circle}))))}}]),n}(sO.PureComponent||sO.Component);yb.default=e6e;var vb={},gA={},t6e=zN,n6e=RN,r6e=vN,i6e=jc;function o6e(e,n){var t=i6e(e)?t6e:n6e;return t(e,r6e(n))}var a6e=o6e,s6e=a6e,AG={exports:{}};(function(e,n){(function(t,r){e.exports=r()})(dh,function(){function t(Me){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(he){return typeof he}:function(he){return he&&typeof Symbol=="function"&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he},t(Me)}var r=/^\s+/,i=/\s+$/;function o(Me,he){if(Me=Me||"",he=he||{},Me instanceof o)return Me;if(!(this instanceof o))return new o(Me,he);var be=s(Me);this._originalInput=Me,this._r=be.r,this._g=be.g,this._b=be.b,this._a=be.a,this._roundA=Math.round(100*this._a)/100,this._format=he.format||be.format,this._gradientType=he.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=be.ok}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 he=this.toRgb();return(he.r*299+he.g*587+he.b*114)/1e3},getLuminance:function(){var he=this.toRgb(),be,Pe,Ze,nt,xt,Ft;return be=he.r/255,Pe=he.g/255,Ze=he.b/255,be<=.03928?nt=be/12.92:nt=Math.pow((be+.055)/1.055,2.4),Pe<=.03928?xt=Pe/12.92:xt=Math.pow((Pe+.055)/1.055,2.4),Ze<=.03928?Ft=Ze/12.92:Ft=Math.pow((Ze+.055)/1.055,2.4),.2126*nt+.7152*xt+.0722*Ft},setAlpha:function(he){return this._a=rt(he),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var he=C(this._r,this._g,this._b);return{h:he.h*360,s:he.s,v:he.v,a:this._a}},toHsvString:function(){var he=C(this._r,this._g,this._b),be=Math.round(he.h*360),Pe=Math.round(he.s*100),Ze=Math.round(he.v*100);return this._a==1?"hsv("+be+", "+Pe+"%, "+Ze+"%)":"hsva("+be+", "+Pe+"%, "+Ze+"%, "+this._roundA+")"},toHsl:function(){var he=h(this._r,this._g,this._b);return{h:he.h*360,s:he.s,l:he.l,a:this._a}},toHslString:function(){var he=h(this._r,this._g,this._b),be=Math.round(he.h*360),Pe=Math.round(he.s*100),Ze=Math.round(he.l*100);return this._a==1?"hsl("+be+", "+Pe+"%, "+Ze+"%)":"hsla("+be+", "+Pe+"%, "+Ze+"%, "+this._roundA+")"},toHex:function(he){return k(this._r,this._g,this._b,he)},toHexString:function(he){return"#"+this.toHex(he)},toHex8:function(he){return P(this._r,this._g,this._b,this._a,he)},toHex8String:function(he){return"#"+this.toHex8(he)},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(_e(this._r,255)*100)+"%",g:Math.round(_e(this._g,255)*100)+"%",b:Math.round(_e(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(_e(this._r,255)*100)+"%, "+Math.round(_e(this._g,255)*100)+"%, "+Math.round(_e(this._b,255)*100)+"%)":"rgba("+Math.round(_e(this._r,255)*100)+"%, "+Math.round(_e(this._g,255)*100)+"%, "+Math.round(_e(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:ft[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(he){var be="#"+U(this._r,this._g,this._b,this._a),Pe=be,Ze=this._gradientType?"GradientType = 1, ":"";if(he){var nt=o(he);Pe="#"+U(nt._r,nt._g,nt._b,nt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ze+"startColorstr="+be+",endColorstr="+Pe+")"},toString:function(he){var be=!!he;he=he||this._format;var Pe=!1,Ze=this._a<1&&this._a>=0,nt=!be&&Ze&&(he==="hex"||he==="hex6"||he==="hex3"||he==="hex4"||he==="hex8"||he==="name");return nt?he==="name"&&this._a===0?this.toName():this.toRgbString():(he==="rgb"&&(Pe=this.toRgbString()),he==="prgb"&&(Pe=this.toPercentageRgbString()),(he==="hex"||he==="hex6")&&(Pe=this.toHexString()),he==="hex3"&&(Pe=this.toHexString(!0)),he==="hex4"&&(Pe=this.toHex8String(!0)),he==="hex8"&&(Pe=this.toHex8String()),he==="name"&&(Pe=this.toName()),he==="hsl"&&(Pe=this.toHslString()),he==="hsv"&&(Pe=this.toHsvString()),Pe||this.toHexString())},clone:function(){return o(this.toString())},_applyModification:function(he,be){var Pe=he.apply(null,[this].concat([].slice.call(be)));return this._r=Pe._r,this._g=Pe._g,this._b=Pe._b,this.setAlpha(Pe._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@${xP}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${xP}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${UP}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${UP}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<style>
|
||||
body { margin: 0; padding: 0; }
|
||||
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
|
||||
@@ -794,11 +794,11 @@ Expecting `+Ke.join(", ")+", got '"+this.terminals_[re]+"'":rt="Parse error on l
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),i=(Io().s[8]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(Io().s[9]++,this.exportName());Io().s[10]++,bP.saveAs(i,o+".html")}downloadStyle(){Io().f[3]++;const n=(Io().s[11]++,this.tokenizedStyle()),t=(Io().s[12]++,new Blob([n],{type:"application/json;charset=utf-8"})),r=(Io().s[13]++,this.exportName());Io().s[14]++,bP.saveAs(t,r+".json")}changeMetadataProperty(n,t){Io().f[4]++;const r=(Io().s[15]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[n]:t}});Io().s[16]++,this.props.onStyleChanged(r)}render(){return Io().f[5]++,Io().s[17]++,N.jsx(Sf,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:"Export Style",className:"maputnik-export-modal",children:N.jsxs("section",{className:"maputnik-modal-section",children:[N.jsx("h1",{children:"Download Style"}),N.jsx("p",{children:"Download a JSON style to your computer."}),N.jsxs("div",{children:[N.jsx(rh,{label:Xh.maputnik.maptiler_access_token.label,fieldSpec:Xh.maputnik.maptiler_access_token,value:(Io().b[2][0]++,this.props.mapStyle.metadata||(Io().b[2][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),N.jsx(rh,{label:Xh.maputnik.thunderforest_access_token.label,fieldSpec:Xh.maputnik.thunderforest_access_token,value:(Io().b[3][0]++,this.props.mapStyle.metadata||(Io().b[3][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")})]}),N.jsxs("div",{className:"maputnik-modal-export-buttons",children:[N.jsxs(Ba,{onClick:this.downloadStyle.bind(this),children:[N.jsx(I6,{}),"Download Style"]}),N.jsxs(Ba,{onClick:this.downloadHtml.bind(this),children:[N.jsx(I6,{}),"Download HTML"]})]})]})})}}function y4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",n="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[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return y4=function(){return s},s}y4();class sG extends xn.Component{render(){return y4().f[0]++,y4().s[0]++,N.jsx(b_,{label:this.props.label,children:N.jsx(GN,{...this.props})})}}function v4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",n="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx"],names:[],mappings:"AAaM;AAbN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,mBAAyC;AAQhD,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAC9B,8BAAC,iBAAe,GAAG,KAAK,OAAO,GACjC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a27c35e986d22656fa80c276efb67df518853ac2"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return v4=function(){return s},s}v4();class IEe extends xn.Component{render(){return v4().f[0]++,v4().s[0]++,N.jsx(Po,{label:this.props.label,children:N.jsx(G8,{...this.props})})}}function qn(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",n="bd3e4d09ce7131c28fb23a5fc0245fe57c891028",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",statementMap:{0:{start:{line:14,column:4},end:{line:28,column:9}},1:{start:{line:21,column:29},end:{line:24,column:12}},2:{start:{line:33,column:4},end:{line:36,column:7}},3:{start:{line:39,column:18},end:{line:39,column:47}},4:{start:{line:40,column:4},end:{line:49,column:6}},5:{start:{line:52,column:4},end:{line:79,column:9}},6:{start:{line:60,column:33},end:{line:63,column:12}},7:{start:{line:72,column:33},end:{line:75,column:12}},8:{start:{line:84,column:24},end:{line:91,column:5}},9:{start:{line:85,column:26},end:{line:85,column:64}},10:{start:{line:86,column:6},end:{line:8
Line truncated
|
||||
`)>=0)return!1;return!0}function kBe(e,n){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=Jh.call(Array(e.indent+1)," ");else return null;return{base:t,prev:Jh.call(Array(n+1),t)}}function sO(e,n){if(e.length===0)return"";var t=`
|
||||
`+n.prev+n.base;return t+Jh.call(e,","+t)+`
|
||||
`+n.prev}function qx(e,n){var t=aO(e),r=[];if(t){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=Am(e,i)?n(e[i],e):""}var o=typeof dS=="function"?dS(e):[],s;if(Iy){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var p in e)Am(e,p)&&(t&&String(Number(p))===p&&p<e.length||Iy&&s["$"+p]instanceof Symbol||(vG.call(/[^\w$]/,p)?r.push(n(p,e)+": "+n(e[p],e)):r.push(p+": "+n(e[p],e))));if(typeof dS=="function")for(var g=0;g<o.length;g++)CG.call(e,o[g])&&r.push("["+n(o[g])+"]: "+n(e[o[g]],e));return r}var nk=S1,ev=JOe,IBe=dBe,TBe=nk("%TypeError%"),Vx=nk("%WeakMap%",!0),Hx=nk("%Map%",!0),KBe=ev("WeakMap.prototype.get",!0),PBe=ev("WeakMap.prototype.set",!0),FBe=ev("WeakMap.prototype.has",!0),DBe=ev("Map.prototype.get",!0),UBe=ev("Map.prototype.set",!0),RBe=ev("Map.prototype.has",!0),rk=function(e,n){for(var t=e,r;(r=t.next)!==null;t=r)if(r.key===n)return t.next=r.next,r.next=e.next,e.next=r,r},LBe=function(e,n){var t=rk(e,n);return t&&t.value},zBe=function(e,n,t){var r=rk(e,n);r?r.value=t:e.next={key:n,next:e.next,value:t}},jBe=function(e,n){return!!rk(e,n)},WBe=function(){var n,t,r,i={assert:function(o){if(!i.has(o))throw new TBe("Side channel does not contain "+IBe(o))},get:function(o){if(Vx&&o&&(typeof o=="object"||typeof o=="function")){if(n)return KBe(n,o)}else if(Hx){if(t)return DBe(t,o)}else if(r)return LBe(r,o)},has:function(o){if(Vx&&o&&(typeof o=="object"||typeof o=="function")){if(n)return FBe(n,o)}else if(Hx){if(t)return RBe(t,o)}else if(r)return jBe(r,o);return!1},set:function(o,s){Vx&&o&&(typeof o=="object"||typeof o=="function")?(n||(n=new Vx),PBe(n,o,s)):Hx?(t||(t=new Hx),UBe(t,o,s)):(r||(r={key:{},next:null}),zBe(r,o,s))}};return i},NBe=String.prototype.replace,GBe=/%20/g,fS={RFC1738:"RFC1738",RFC3986:"RFC3986"},ik={default:fS.RFC3986,formatters:{RFC1738:function(e){return NBe.call(e,GBe,"+")},RFC3986:function(e){return String(e)}},RFC1738:fS.RFC1738,RFC3986:fS.RFC3986},QBe=ik,pS=Object.prototype.hasOwnProperty,T0=Array.isArray,Yh=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),$Be=function(n){for(;n.length>1;){var t=n.pop(),r=t.obj[t.prop];if(T0(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);t.obj[t.prop]=i}}},MG=function(n,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<n.length;++i)typeof n[i]<"u"&&(r[i]=n[i]);return r},YBe=function e(n,t,r){if(!t)return n;if(typeof t!="object"){if(T0(n))n.push(t);else if(n&&typeof n=="object")(r&&(r.plainObjects||r.allowPrototypes)||!pS.call(Object.prototype,t))&&(n[t]=!0);else return[n,t];return n}if(!n||typeof n!="object")return[n].concat(t);var i=n;return T0(n)&&!T0(t)&&(i=MG(n,r)),T0(n)&&T0(t)?(t.forEach(function(o,s){if(pS.call(n,s)){var a=n[s];a&&typeof a=="object"&&o&&typeof o=="object"?n[s]=e(a,o,r):n.push(o)}else n[s]=o}),n):Object.keys(t).reduce(function(o,s){var a=t[s];return pS.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},qBe=function(n,t){return Object.keys(t).reduce(function(r,i){return r[i]=t[i],r},n)},VBe=function(e,n,t){var r=e.replace(/\+/g," ");if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},HBe=function(n,t,r,i,o){if(n.length===0)return n;var s=n;if(typeof n=="symbol"?s=Symbol.prototype.toString.call(n):typeof n!="string"&&(s=String(n)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(b){return"%26%23"+parseInt(b.slice(2),16)+"%3B"});for(var a="",p=0;p<s.length;++p){var g=s.charCodeAt(p);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||o===QBe.RFC1738&&(g===40||g===41)){a+=s.charAt(p);continue}if(g<128){a=a+Yh[g];continue}if(g<2048){a=a+(Yh[192|g>>6]+Yh[128|g&63]);continue}if(g<55296||g>=57344){a=a+(Yh[224|g>>12]+Yh[128|g>>6&63]+Yh[128|g&63]);continue}p+=1,g=65536+((g&1023)<<10|s.charCodeAt(p)&1023),a+=Yh[240|g>>18]+Yh[128|g>>12&63]+Yh[128|g>>6&63]+Yh[128|g&63]}return a},ZBe=function(n){for(var t=[{obj:{o:n},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),p=0;p<a.length;++p){var g=a[p],b=s[g];typeof b=="object"&&b!==null&&r.indexOf(b)===-1&&(t.push({obj:s,prop:g}),r.push(b))}return $Be(t),n},XBe=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},JBe=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},e7e=function(n,t){return[].concat(n,t)},t7e=function(n,t){if(T0(n)){for(var r=[],i=0;i<n.length;i+=1)r.push(t(n[i]));return r}return t(n)},SG={arrayToObject:MG,assign:qBe,combine:e7e,compact:ZBe,decode:VBe,encode:HBe,isBuffer:JBe,isRegExp:XBe,maybeMap:t7e,merge:YBe},EG=WBe,M2=SG,RC=ik,n7e=Object.prototype.hasOwnProperty,YP={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,t){return n+"["+t+"]"},repeat:function(n){return n}},dp=Array.isArray,r7e=Array.prototype.push,OG=function(e,n){r7e.apply(e,dp(n)?n:[n])},i7e=Date.prototype.toISOString,qP=RC.default,qu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",char
Line truncated
|
||||
`," "],E7e=["{","}","|","\\","^","`"].concat(S7e),uO=["'"].concat(E7e),VP=["%","/","?",";","#"].concat(uO),HP=["/","?","#"],O7e=255,ZP=/^[+a-z0-9A-Z_-]{0,63}$/,B7e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,k7e={javascript:!0,"javascript:":!0},AO={javascript:!0,"javascript:":!0},py={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},cO=_7e;function vb(e,n,t){if(e&&typeof e=="object"&&e instanceof gd)return e;var r=new gd;return r.parse(e,n,t),r}gd.prototype.parse=function(e,n,t){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!t&&e.split("#").length===1){var p=M7e.exec(a);if(p)return this.path=a,this.href=a,this.pathname=p[1],p[2]?(this.search=p[2],n?this.query=cO.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search="",this.query={}),this}var g=x7e.exec(a);if(g){g=g[0];var b=g.toLowerCase();this.protocol=b,a=a.substr(g.length)}if(t||g||a.match(/^\/\/[^@/]+@[^@/]+/)){var B=a.substr(0,2)==="//";B&&!(g&&AO[g])&&(a=a.substr(2),this.slashes=!0)}if(!AO[g]&&(B||g&&!py[g])){for(var k=-1,P=0;P<HP.length;P++){var R=a.indexOf(HP[P]);R!==-1&&(k===-1||R<k)&&(k=R)}var Z,W;k===-1?W=a.lastIndexOf("@"):W=a.lastIndexOf("@",k),W!==-1&&(Z=a.slice(0,W),a=a.slice(W+1),this.auth=decodeURIComponent(Z)),k=-1;for(var P=0;P<VP.length;P++){var R=a.indexOf(VP[P]);R!==-1&&(k===-1||R<k)&&(k=R)}k===-1&&(k=a.length),this.host=a.slice(0,k),a=a.slice(k),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var q=this.hostname.split(/\./),P=0,oe=q.length;P<oe;P++){var re=q[P];if(re&&!re.match(ZP)){for(var ce="",se=0,le=re.length;se<le;se++)re.charCodeAt(se)>127?ce+="x":ce+=re[se];if(!ce.match(ZP)){var ye=q.slice(0,P),De=q.slice(P+1),Ne=re.match(B7e);Ne&&(ye.push(Ne[1]),De.unshift(Ne[2])),De.length&&(a="/"+De.join(".")+a),this.hostname=ye.join(".");break}}}this.hostname.length>O7e?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=b7e.toASCII(this.hostname));var et=this.port?":"+this.port:"",ft=this.hostname||"";this.host=ft+et,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!k7e[b])for(var P=0,oe=uO.length;P<oe;P++){var Ke=uO[P];if(a.indexOf(Ke)!==-1){var rt=encodeURIComponent(Ke);rt===Ke&&(rt=escape(Ke)),a=a.split(Ke).join(rt)}}var Ce=a.indexOf("#");Ce!==-1&&(this.hash=a.substr(Ce),a=a.slice(0,Ce));var Rt=a.indexOf("?");if(Rt!==-1?(this.search=a.substr(Rt),this.query=a.substr(Rt+1),n&&(this.query=cO.parse(this.query)),a=a.slice(0,Rt)):n&&(this.search="",this.query={}),a&&(this.pathname=a),py[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var et=this.pathname||"",jt=this.search||"";this.path=et+jt}return this.href=this.format(),this};function I7e(e){return typeof e=="string"&&(e=vb(e)),e instanceof gd?e.format():gd.prototype.format.call(e)}gd.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var n=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=cO.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||py[n])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),t=t.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),n+i+t+s+r};function T7e(e,n){return vb(e,!1,!0).resolve(n)}gd.prototype.resolve=function(e){return this.resolveObject(vb(e,!1,!0)).format()};function K7e(e,n){return e?vb(e,!1,!0).resolveObject(n):n}gd.prototype.resolveObject=function(e){if(typeof e=="string"){var n=new gd;n.parse(e,!1,!0),e=n}for(var t=new gd,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var p=s[a];p!=="protocol"&&(t[p]=e[p])}return py[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!py[e.protocol]){for(var g=Object.keys(e),b=0;b<g.length;b++){var B=g[b];t[B]=e[B]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!AO[e.protocol]){for(var oe=(e.pathname||"").split("/");oe.length&&!(e.host=oe.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),t.pathname=oe.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t
Line truncated
|
||||
`),i=(Io().s[8]++,new Blob([r],{type:"text/html;charset=utf-8"})),o=(Io().s[9]++,this.exportName());Io().s[10]++,LP.saveAs(i,o+".html")}downloadStyle(){Io().f[3]++;const n=(Io().s[11]++,this.tokenizedStyle()),t=(Io().s[12]++,new Blob([n],{type:"application/json;charset=utf-8"})),r=(Io().s[13]++,this.exportName());Io().s[14]++,LP.saveAs(t,r+".json")}changeMetadataProperty(n,t){Io().f[4]++;const r=(Io().s[15]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[n]:t}});Io().s[16]++,this.props.onStyleChanged(r)}render(){return Io().f[5]++,Io().s[17]++,N.jsx(kf,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:"Export Style",className:"maputnik-export-modal",children:N.jsxs("section",{className:"maputnik-modal-section",children:[N.jsx("h1",{children:"Download Style"}),N.jsx("p",{children:"Download a JSON style to your computer."}),N.jsxs("div",{children:[N.jsx(sh,{label:rf.maputnik.maptiler_access_token.label,fieldSpec:rf.maputnik.maptiler_access_token,value:(Io().b[2][0]++,this.props.mapStyle.metadata||(Io().b[2][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),N.jsx(sh,{label:rf.maputnik.thunderforest_access_token.label,fieldSpec:rf.maputnik.thunderforest_access_token,value:(Io().b[3][0]++,this.props.mapStyle.metadata||(Io().b[3][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")})]}),N.jsxs("div",{className:"maputnik-modal-export-buttons",children:[N.jsxs(ka,{onClick:this.downloadStyle.bind(this),children:[N.jsx(R6,{}),"Download Style"]}),N.jsxs(ka,{onClick:this.downloadHtml.bind(this),children:[N.jsx(R6,{}),"Download HTML"]})]})]})})}}function w4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",n="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[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return w4=function(){return s},s}w4();class FG extends xn.Component{render(){return w4().f[0]++,w4().s[0]++,N.jsx(OC,{label:this.props.label,children:N.jsx(yG,{...this.props})})}}function M4(){var e="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",n="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx"],names:[],mappings:"AAaM;AAbN,OAAO,WAAW;AAClB,OAAO,WAAW;AAClB,OAAO,mBAAyC;AAQhD,qBAAqB,sBAAsB,MAAM,UAA8B;AAAA,EAC7E,SAAS;AACP,WAAO,oBAAC,SAAM,OAAO,KAAK,MAAM,OAC9B,8BAAC,iBAAe,GAAG,KAAK,OAAO,GACjC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"a27c35e986d22656fa80c276efb67df518853ac2"},o=t[r]||(t[r]={});(!o[e]||o[e].hash!==n)&&(o[e]=i);var s=o[e];return M4=function(){return s},s}M4();class HOe extends xn.Component{render(){return M4().f[0]++,M4().s[0]++,N.jsx(Po,{label:this.props.label,children:N.jsx(ek,{...this.props})})}}function qn(){var e="/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",n="bd3e4d09ce7131c28fb23a5fc0245fe57c891028",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/ModalSourcesTypeEditor.tsx",statementMap:{0:{start:{line:14,column:4},end:{line:28,column:9}},1:{start:{line:21,column:29},end:{line:24,column:12}},2:{start:{line:33,column:4},end:{line:36,column:7}},3:{start:{line:39,column:18},end:{line:39,column:47}},4:{start:{line:40,column:4},end:{line:49,column:6}},5:{start:{line:52,column:4},end:{line:79,column:9}},6:{start:{line:60,column:33},end:{line:63,column:12}},7:{start:{line:72,column:33},end:{line:75,column:12}},8:{start:{line:84,column:24},end:{line:91,column:5}},9:{start:{line:85,column:26},end:{line:85,column:64}},10:{start:{line:86,column:6},end:{line:8
Line truncated
|
||||
`)>=0)return!1;return!0}function V7e(e,n){var t;if(e.indent===" ")t=" ";else if(typeof e.indent=="number"&&e.indent>0)t=of.call(Array(e.indent+1)," ");else return null;return{base:t,prev:of.call(Array(n+1),t)}}function mO(e,n){if(e.length===0)return"";var t=`
|
||||
`+n.prev+n.base;return t+of.call(e,","+t)+`
|
||||
`+n.prev}function e2(e,n){var t=pO(e),r=[];if(t){r.length=e.length;for(var i=0;i<e.length;i++)r[i]=fm(e,i)?n(e[i],e):""}var o=typeof _S=="function"?_S(e):[],s;if(Dy){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var h in e)fm(e,h)&&(t&&String(Number(h))===h&&h<e.length||Dy&&s["$"+h]instanceof Symbol||(YG.call(/[^\w$]/,h)?r.push(n(h,e)+": "+n(e[h],e)):r.push(h+": "+n(e[h],e))));if(typeof _S=="function")for(var g=0;g<o.length;g++)qG.call(e,o[g])&&r.push("["+n(o[g])+"]: "+n(e[o[g]],e));return r}var dk=k1,ov=y7e,H7e=I7e,Z7e=dk("%TypeError%"),t2=dk("%WeakMap%",!0),n2=dk("%Map%",!0),X7e=ov("WeakMap.prototype.get",!0),J7e=ov("WeakMap.prototype.set",!0),e8e=ov("WeakMap.prototype.has",!0),t8e=ov("Map.prototype.get",!0),n8e=ov("Map.prototype.set",!0),r8e=ov("Map.prototype.has",!0),hk=function(e,n){for(var t=e,r;(r=t.next)!==null;t=r)if(r.key===n)return t.next=r.next,r.next=e.next,e.next=r,r},i8e=function(e,n){var t=hk(e,n);return t&&t.value},o8e=function(e,n,t){var r=hk(e,n);r?r.value=t:e.next={key:n,next:e.next,value:t}},a8e=function(e,n){return!!hk(e,n)},s8e=function(){var n,t,r,i={assert:function(o){if(!i.has(o))throw new Z7e("Side channel does not contain "+H7e(o))},get:function(o){if(t2&&o&&(typeof o=="object"||typeof o=="function")){if(n)return X7e(n,o)}else if(n2){if(t)return t8e(t,o)}else if(r)return i8e(r,o)},has:function(o){if(t2&&o&&(typeof o=="object"||typeof o=="function")){if(n)return e8e(n,o)}else if(n2){if(t)return r8e(t,o)}else if(r)return a8e(r,o);return!1},set:function(o,s){t2&&o&&(typeof o=="object"||typeof o=="function")?(n||(n=new t2),J7e(n,o,s)):n2?(t||(t=new n2),n8e(t,o,s)):(r||(r={key:{},next:null}),o8e(r,o,s))}};return i},l8e=String.prototype.replace,u8e=/%20/g,bS={RFC1738:"RFC1738",RFC3986:"RFC3986"},fk={default:bS.RFC3986,formatters:{RFC1738:function(e){return l8e.call(e,u8e,"+")},RFC3986:function(e){return String(e)}},RFC1738:bS.RFC1738,RFC3986:bS.RFC3986},A8e=fk,xS=Object.prototype.hasOwnProperty,D0=Array.isArray,Xh=function(){for(var e=[],n=0;n<256;++n)e.push("%"+((n<16?"0":"")+n.toString(16)).toUpperCase());return e}(),c8e=function(n){for(;n.length>1;){var t=n.pop(),r=t.obj[t.prop];if(D0(r)){for(var i=[],o=0;o<r.length;++o)typeof r[o]<"u"&&i.push(r[o]);t.obj[t.prop]=i}}},JG=function(n,t){for(var r=t&&t.plainObjects?Object.create(null):{},i=0;i<n.length;++i)typeof n[i]<"u"&&(r[i]=n[i]);return r},d8e=function e(n,t,r){if(!t)return n;if(typeof t!="object"){if(D0(n))n.push(t);else if(n&&typeof n=="object")(r&&(r.plainObjects||r.allowPrototypes)||!xS.call(Object.prototype,t))&&(n[t]=!0);else return[n,t];return n}if(!n||typeof n!="object")return[n].concat(t);var i=n;return D0(n)&&!D0(t)&&(i=JG(n,r)),D0(n)&&D0(t)?(t.forEach(function(o,s){if(xS.call(n,s)){var a=n[s];a&&typeof a=="object"&&o&&typeof o=="object"?n[s]=e(a,o,r):n.push(o)}else n[s]=o}),n):Object.keys(t).reduce(function(o,s){var a=t[s];return xS.call(o,s)?o[s]=e(o[s],a,r):o[s]=a,o},i)},h8e=function(n,t){return Object.keys(t).reduce(function(r,i){return r[i]=t[i],r},n)},f8e=function(e,n,t){var r=e.replace(/\+/g," ");if(t==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},p8e=function(n,t,r,i,o){if(n.length===0)return n;var s=n;if(typeof n=="symbol"?s=Symbol.prototype.toString.call(n):typeof n!="string"&&(s=String(n)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(C){return"%26%23"+parseInt(C.slice(2),16)+"%3B"});for(var a="",h=0;h<s.length;++h){var g=s.charCodeAt(h);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||o===A8e.RFC1738&&(g===40||g===41)){a+=s.charAt(h);continue}if(g<128){a=a+Xh[g];continue}if(g<2048){a=a+(Xh[192|g>>6]+Xh[128|g&63]);continue}if(g<55296||g>=57344){a=a+(Xh[224|g>>12]+Xh[128|g>>6&63]+Xh[128|g&63]);continue}h+=1,g=65536+((g&1023)<<10|s.charCodeAt(h)&1023),a+=Xh[240|g>>18]+Xh[128|g>>12&63]+Xh[128|g>>6&63]+Xh[128|g&63]}return a},m8e=function(n){for(var t=[{obj:{o:n},prop:"o"}],r=[],i=0;i<t.length;++i)for(var o=t[i],s=o.obj[o.prop],a=Object.keys(s),h=0;h<a.length;++h){var g=a[h],C=s[g];typeof C=="object"&&C!==null&&r.indexOf(C)===-1&&(t.push({obj:s,prop:g}),r.push(C))}return c8e(t),n},g8e=function(n){return Object.prototype.toString.call(n)==="[object RegExp]"},y8e=function(n){return!n||typeof n!="object"?!1:!!(n.constructor&&n.constructor.isBuffer&&n.constructor.isBuffer(n))},v8e=function(n,t){return[].concat(n,t)},_8e=function(n,t){if(D0(n)){for(var r=[],i=0;i<n.length;i+=1)r.push(t(n[i]));return r}return t(n)},eQ={arrayToObject:JG,assign:h8e,combine:v8e,compact:m8e,decode:f8e,encode:p8e,isBuffer:y8e,isRegExp:g8e,maybeMap:_8e,merge:d8e},tQ=s8e,I2=eQ,G_=fk,C8e=Object.prototype.hasOwnProperty,lF={brackets:function(n){return n+"[]"},comma:"comma",indices:function(n,t){return n+"["+t+"]"},repeat:function(n){return n}},mp=Array.isArray,b8e=Array.prototype.push,nQ=function(e,n){b8e.apply(e,mp(n)?n:[n])},x8e=Date.prototype.toISOString,uF=G_.default,Vu={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",char
Line truncated
|
||||
`," "],$8e=["{","}","|","\\","^","`"].concat(Q8e),yO=["'"].concat($8e),AF=["%","/","?",";","#"].concat(yO),cF=["/","?","#"],Y8e=255,dF=/^[+a-z0-9A-Z_-]{0,63}$/,q8e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,V8e={javascript:!0,"javascript:":!0},vO={javascript:!0,"javascript:":!0},_y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_O=z8e;function Mb(e,n,t){if(e&&typeof e=="object"&&e instanceof Cd)return e;var r=new Cd;return r.parse(e,n,t),r}Cd.prototype.parse=function(e,n,t){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r<e.indexOf("#")?"?":"#",o=e.split(i),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(i);var a=e;if(a=a.trim(),!t&&e.split("#").length===1){var h=G8e.exec(a);if(h)return this.path=a,this.href=a,this.pathname=h[1],h[2]?(this.search=h[2],n?this.query=_O.parse(this.search.substr(1)):this.query=this.search.substr(1)):n&&(this.search="",this.query={}),this}var g=W8e.exec(a);if(g){g=g[0];var C=g.toLowerCase();this.protocol=C,a=a.substr(g.length)}if(t||g||a.match(/^\/\/[^@/]+@[^@/]+/)){var B=a.substr(0,2)==="//";B&&!(g&&vO[g])&&(a=a.substr(2),this.slashes=!0)}if(!vO[g]&&(B||g&&!_y[g])){for(var k=-1,P=0;P<cF.length;P++){var U=a.indexOf(cF[P]);U!==-1&&(k===-1||U<k)&&(k=U)}var Z,W;k===-1?W=a.lastIndexOf("@"):W=a.lastIndexOf("@",k),W!==-1&&(Z=a.slice(0,W),a=a.slice(W+1),this.auth=decodeURIComponent(Z)),k=-1;for(var P=0;P<AF.length;P++){var U=a.indexOf(AF[P]);U!==-1&&(k===-1||U<k)&&(k=U)}k===-1&&(k=a.length),this.host=a.slice(0,k),a=a.slice(k),this.parseHost(),this.hostname=this.hostname||"";var Q=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Q)for(var q=this.hostname.split(/\./),P=0,oe=q.length;P<oe;P++){var re=q[P];if(re&&!re.match(dF)){for(var Ae="",ae=0,se=re.length;ae<se;ae++)re.charCodeAt(ae)>127?Ae+="x":Ae+=re[ae];if(!Ae.match(dF)){var ye=q.slice(0,P),De=q.slice(P+1),Ne=re.match(q8e);Ne&&(ye.push(Ne[1]),De.unshift(Ne[2])),De.length&&(a="/"+De.join(".")+a),this.hostname=ye.join(".");break}}}this.hostname.length>Y8e?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=j8e.toASCII(this.hostname));var et=this.port?":"+this.port:"",ft=this.hostname||"";this.host=ft+et,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!V8e[C])for(var P=0,oe=yO.length;P<oe;P++){var Ke=yO[P];if(a.indexOf(Ke)!==-1){var rt=encodeURIComponent(Ke);rt===Ke&&(rt=escape(Ke)),a=a.split(Ke).join(rt)}}var _e=a.indexOf("#");_e!==-1&&(this.hash=a.substr(_e),a=a.slice(0,_e));var Ut=a.indexOf("?");if(Ut!==-1?(this.search=a.substr(Ut),this.query=a.substr(Ut+1),n&&(this.query=_O.parse(this.query)),a=a.slice(0,Ut)):n&&(this.search="",this.query={}),a&&(this.pathname=a),_y[C]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var et=this.pathname||"",jt=this.search||"";this.path=et+jt}return this.href=this.format(),this};function H8e(e){return typeof e=="string"&&(e=Mb(e)),e instanceof Cd?e.format():Cd.prototype.format.call(e)}Cd.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var n=this.protocol||"",t=this.pathname||"",r=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=_O.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return n&&n.substr(-1)!==":"&&(n+=":"),this.slashes||(!n||_y[n])&&i!==!1?(i="//"+(i||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):i||(i=""),r&&r.charAt(0)!=="#"&&(r="#"+r),s&&s.charAt(0)!=="?"&&(s="?"+s),t=t.replace(/[?#]/g,function(a){return encodeURIComponent(a)}),s=s.replace("#","%23"),n+i+t+s+r};function Z8e(e,n){return Mb(e,!1,!0).resolve(n)}Cd.prototype.resolve=function(e){return this.resolveObject(Mb(e,!1,!0)).format()};function X8e(e,n){return e?Mb(e,!1,!0).resolveObject(n):n}Cd.prototype.resolveObject=function(e){if(typeof e=="string"){var n=new Cd;n.parse(e,!1,!0),e=n}for(var t=new Cd,r=Object.keys(this),i=0;i<r.length;i++){var o=r[i];t[o]=this[o]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var s=Object.keys(e),a=0;a<s.length;a++){var h=s[a];h!=="protocol"&&(t[h]=e[h])}return _y[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!_y[e.protocol]){for(var g=Object.keys(e),C=0;C<g.length;C++){var B=g[C];t[B]=e[B]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!vO[e.protocol]){for(var oe=(e.pathname||"").split("/");oe.length&&!(e.host=oe.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),oe[0]!==""&&oe.unshift(""),oe.length<2&&oe.unshift(""),t.pathname=oe.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t
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
|
||||
@@ -811,10 +811,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */var dO=function(e,n){return dO=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])},dO(e,n)};function FG(e,n){dO(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function W7e(e){var n=typeof Symbol=="function"&&e[Symbol.iterator],t=0;return n?n.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}function N7e(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),i,o=[],s;try{for(;(n===void 0||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function G7e(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(N7e(arguments[n]));return e}var DG=function(){function e(n,t){this.target=t,this.type=n}return e}(),Q7e=function(e){FG(n,e);function n(t,r){var i=e.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return n}(DG),$7e=function(e){FG(n,e);function n(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var o=e.call(this,"close",i)||this;return o.wasClean=!0,o.code=t,o.reason=r,o}return n}(DG);/*!
|
||||
***************************************************************************** */var CO=function(e,n){return CO=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])},CO(e,n)};function uQ(e,n){CO(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function ske(e){var n=typeof Symbol=="function"&&e[Symbol.iterator],t=0;return n?n.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}function lke(e,n){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var r=t.call(e),i,o=[],s;try{for(;(n===void 0||n-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return o}function uke(){for(var e=[],n=0;n<arguments.length;n++)e=e.concat(lke(arguments[n]));return e}var AQ=function(){function e(n,t){this.target=t,this.type=n}return e}(),Ake=function(e){uQ(n,e);function n(t,r){var i=e.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return n}(AQ),cke=function(e){uQ(n,e);function n(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var o=e.call(this,"close",i)||this;return o.wasClean=!0,o.code=t,o.reason=r,o}return n}(AQ);/*!
|
||||
* Reconnecting WebSocket
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var Y7e=function(){if(typeof WebSocket<"u")return WebSocket},q7e=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},_0={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},V7e=function(){function e(n,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 s=i._options.minUptime,a=s===void 0?_0.minUptime:s;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},a),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(p){return i._ws.send(p)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(p){return i._callEventListener(o,p)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(s){return i._callEventListener(o,s)})},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(s){return i._callEventListener(o,s)}),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(s){return i._callEventListener(o,s)})},this._url=n,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var n=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 n+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(n,t){if(n===void 0&&(n=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(n,t)},e.prototype.reconnect=function(n,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,t),this._connect())},e.prototype.send=function(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?_0.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}},e.prototype.addEventListener=function(n,t){this._listeners[n]&&this._listeners[n].push(t)},e.prototype.dispatchEvent=function(n){var t,r,i=this._listeners[n.type];if(i)try{for(var o=W7e(i),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(n,a)}}catch(p){t={error:p}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListeneLine truncated
|
||||
//# sourceMappingURL=index-C8UOi5vM.js.map
|
||||
*/var dke=function(){if(typeof WebSocket<"u")return WebSocket},hke=function(e){return typeof e<"u"&&!!e&&e.CLOSING===2},M0={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0,startClosed:!1,debug:!1},fke=function(){function e(n,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 s=i._options.minUptime,a=s===void 0?M0.minUptime:s;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},a),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(h){return i._ws.send(h)}),i._messageQueue=[],i.onopen&&i.onopen(o),i._listeners.open.forEach(function(h){return i._callEventListener(o,h)})},this._handleMessage=function(o){i._debug("message event"),i.onmessage&&i.onmessage(o),i._listeners.message.forEach(function(s){return i._callEventListener(o,s)})},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(s){return i._callEventListener(o,s)}),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(s){return i._callEventListener(o,s)})},this._url=n,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(e,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(e,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(e,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CONNECTING",{get:function(){return e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"OPEN",{get:function(){return e.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSING",{get:function(){return e.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"CLOSED",{get:function(){return e.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(n){this._binaryType=n,this._ws&&(this._ws.binaryType=n)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bufferedAmount",{get:function(){var n=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 n+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?e.CLOSED:e.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),e.prototype.close=function(n,t){if(n===void 0&&(n=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(n,t)},e.prototype.reconnect=function(n,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(n,t),this._connect())},e.prototype.send=function(n){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",n),this._ws.send(n);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?M0.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",n),this._messageQueue.push(n))}},e.prototype.addEventListener=function(n,t){this._listeners[n]&&this._listeners[n].push(t)},e.prototype.dispatchEvent=function(n){var t,r,i=this._listeners[n.type];if(i)try{for(var o=ske(i),s=o.next();!s.done;s=o.next()){var a=s.value;this._callEventListener(n,a)}}catch(h){t={error:h}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0},e.prototype.removeEventListeneLine truncated
|
||||
//# sourceMappingURL=index-WNNEQ5xv.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"index-C8UOi5vM.js","sources":["../../node_modules/object-assign/index.js","../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/react-icons/lib/esm/iconContext.js","../../node_modules/react-icons/lib/esm/iconBase.js","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-autobind/lib/autoBind.js","../../node_modules/react-autobind/index.js","../../node_modules/lodash.clonedeep/index.js","../../node_modules/lodash.clamp/index.js","../../node_modules/base64-js/index.js","../../node_modules/ieee754/index.js","../../node_modules/buffer/index.js","../../node_modules/lodash.get/index.js","../../node_modules/lodash/lodash.js","../../node_modules/array-move/index.js","../../node_modules/string-hash/index.js","../../node_modules/@maplibre/maplibre-gl-style-spec/dist/index.mjs","../../node_modules/maplibre-gl/dist/maplibre-gl.js","../../node_modules/mapbox-gl-inspect/lib/stylegen.js","../../node_modules/mapbox-gl-inspect/lib/InspectButton.js","../../node_modules/lodash.isequal/index.js","../../node_modules/mapbox-gl-inspect/lib/renderPopup.js","../../node_modules/randomcolor/randomColor.js","../../node_modules/mapbox-gl-inspect/lib/colors.js","../../node_modules/mapbox-gl-inspect/lib/MapboxInspect.js","../../node_modules/mapbox-gl-inspect/index.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/react-icon-base/es/index.js","../../src/components/IconLine.tsx","../../src/components/IconFill.tsx","../../src/components/IconSymbol.tsx","../../src/components/IconBackground.tsx","../../src/components/IconCircle.tsx","../../node_modules/react-icons/md/index.esm.js","../../src/components/IconMissing.tsx","../../src/components/IconLayer.tsx","../../src/components/MapMaplibreGlLayerPopup.tsx","../../node_modules/classnames/index.js","../../src/components/FieldDocLabel.tsx","../../src/components/Doc.tsx","../../src/components/Block.tsx","../../src/components/InputString.tsx","../../src/components/FieldString.tsx","../../src/components/MapMaplibreGlFeaturePropertyPopup.tsx","../../node_modules/color-name/index.js","../../node_modules/is-arrayish/index.js","../../node_modules/simple-swizzle/index.js","../../node_modules/color-string/index.js","../../node_modules/color/node_modules/color-name/index.js","../../node_modules/color/node_modules/color-convert/conversions.js","../../node_modules/color/node_modules/color-convert/route.js","../../node_modules/color/node_modules/color-convert/index.js","../../node_modules/color/index.js","../../src/libs/zoomcontrol.ts","../../src/libs/highlight.ts","../../src/libs/maplibre-rtl.ts","../../src/components/MapMaplibreGl.tsx","../../node_modules/ol/events/Event.js","../../node_modules/ol/ObjectEventType.js","../../node_modules/ol/Disposable.js","../../node_modules/ol/array.js","../../node_modules/ol/functions.js","../../node_modules/ol/obj.js","../../node_modules/ol/events/Target.js","../../node_modules/ol/events/EventType.js","../../node_modules/ol/events.js","../../node_modules/ol/Observable.js","../../node_modules/ol/util.js","../../node_modules/ol/Object.js","../../node_modules/ol/AssertionError.js","../../node_modules/ol/asserts.js","../../node_modules/ol/Feature.js","../../node_modules/ol/proj/Units.js","../../node_modules/ol/has.js","../../node_modules/ol/transform.js","../../node_modules/ol/extent/Relationship.js","../../node_modules/ol/extent.js","../../node_modules/ol/proj/Projection.js","../../node_modules/ol/math.js","../../node_modules/ol/proj/epsg3857.js","../../node_modules/ol/proj/epsg4326.js","../../node_modules/ol/proj/projections.js","../../node_modules/ol/proj/transforms.js","../../node_modules/ol/coordinate.js","../../node_modules/ol/sphere.js","../../node_modules/ol/proj.js","../../node_modules/ol/geom/flat/transform.js","../../node_modules/ol/geom/Geometry.js","../../node_modules/ol/geom/GeometryCollection.js","../../node_modules/ol/format/Feature.js","../../node_modules/ol/format/JSONFeature.js","../../node_modules/ol/geom/GeometryLayout.js","../../node_modules/ol/geom/SimpleGeometry.js","../../node_modules/ol/geom/flat/closest.js","../../node_modules/ol/geom/flat/deflate.js","../../node_modules/ol/geom/flat/simplify.js","../../node_modules/ol/geom/flat/segments.js","../../node_modules/ol/geom/flat/inflate.js","../../node_modules/ol/geom/flat/interpolate.js","../../node_modules/ol/geom/flat/contains.js","../../node_modules/ol/geom/flat/intersectsextent.js","../../node_modules/ol/geom/flat/length.js","../../node_modules/ol/geom/LineString.js","../../node_modules/ol/geom/MultiLineStriLine truncated
|
||||
{"version":3,"file":"index-WNNEQ5xv.js","sources":["../../node_modules/object-assign/index.js","../../node_modules/react/cjs/react.production.min.js","../../node_modules/react/index.js","../../node_modules/react/cjs/react-jsx-runtime.production.min.js","../../node_modules/react/jsx-runtime.js","../../node_modules/react-icons/lib/esm/iconContext.js","../../node_modules/react-icons/lib/esm/iconBase.js","../../node_modules/scheduler/cjs/scheduler.production.min.js","../../node_modules/scheduler/index.js","../../node_modules/react-dom/cjs/react-dom.production.min.js","../../node_modules/react-dom/index.js","../../node_modules/react-autobind/lib/autoBind.js","../../node_modules/react-autobind/index.js","../../node_modules/lodash.clonedeep/index.js","../../node_modules/lodash.clamp/index.js","../../node_modules/base64-js/index.js","../../node_modules/ieee754/index.js","../../node_modules/buffer/index.js","../../node_modules/lodash.get/index.js","../../node_modules/lodash/lodash.js","../../node_modules/array-move/index.js","../../node_modules/string-hash/index.js","../../node_modules/@maplibre/maplibre-gl-style-spec/dist/index.mjs","../../node_modules/maplibre-gl/dist/maplibre-gl.js","../../node_modules/mapbox-gl-inspect/lib/stylegen.js","../../node_modules/mapbox-gl-inspect/lib/InspectButton.js","../../node_modules/lodash.isequal/index.js","../../node_modules/mapbox-gl-inspect/lib/renderPopup.js","../../node_modules/randomcolor/randomColor.js","../../node_modules/mapbox-gl-inspect/lib/colors.js","../../node_modules/mapbox-gl-inspect/lib/MapboxInspect.js","../../node_modules/mapbox-gl-inspect/index.js","../../node_modules/prop-types/lib/ReactPropTypesSecret.js","../../node_modules/prop-types/factoryWithThrowingShims.js","../../node_modules/prop-types/index.js","../../node_modules/react-icon-base/es/index.js","../../src/components/IconLine.tsx","../../src/components/IconFill.tsx","../../src/components/IconSymbol.tsx","../../src/components/IconBackground.tsx","../../src/components/IconCircle.tsx","../../node_modules/react-icons/md/index.esm.js","../../src/components/IconMissing.tsx","../../src/components/IconLayer.tsx","../../src/components/MapMaplibreGlLayerPopup.tsx","../../node_modules/classnames/index.js","../../src/components/FieldDocLabel.tsx","../../src/components/Doc.tsx","../../src/components/Block.tsx","../../src/components/InputString.tsx","../../src/components/FieldString.tsx","../../src/components/MapMaplibreGlFeaturePropertyPopup.tsx","../../node_modules/color-name/index.js","../../node_modules/is-arrayish/index.js","../../node_modules/simple-swizzle/index.js","../../node_modules/color-string/index.js","../../node_modules/color/node_modules/color-name/index.js","../../node_modules/color/node_modules/color-convert/conversions.js","../../node_modules/color/node_modules/color-convert/route.js","../../node_modules/color/node_modules/color-convert/index.js","../../node_modules/color/index.js","../../src/libs/zoomcontrol.ts","../../src/libs/highlight.ts","../../src/libs/maplibre-rtl.ts","../../node_modules/xtend/immutable.js","../../node_modules/fuzzy/lib/fuzzy.js","../../node_modules/suggestions-list/src/list.js","../../node_modules/suggestions-list/src/suggestions.js","../../node_modules/suggestions-list/index.js","../../node_modules/lodash.debounce/index.js","../../node_modules/events/events.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/exceptions.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/localization.js","../../node_modules/subtag/subtag.js","../../node_modules/@maplibre/maplibre-gl-geocoder/lib/index.js","../../src/components/MapMaplibreGl.tsx","../../node_modules/ol/events/Event.js","../../node_modules/ol/ObjectEventType.js","../../node_modules/ol/Disposable.js","../../node_modules/ol/array.js","../../node_modules/ol/functions.js","../../node_modules/ol/obj.js","../../node_modules/ol/events/Target.js","../../node_modules/ol/events/EventType.js","../../node_modules/ol/events.js","../../node_modules/ol/Observable.js","../../node_modules/ol/util.js","../../node_modules/ol/Object.js","../../node_modules/ol/AssertionError.js","../../node_modules/ol/asserts.js","../../node_modules/ol/Feature.js","../../node_modules/ol/proj/Units.js","../../node_modules/ol/has.js","../../node_modules/ol/transform.js","../../node_modules/ol/extent/Relationship.js","../../node_modules/ol/extent.js","../../node_modules/ol/proj/Projection.js","../../node_modules/ol/math.js","../../node_modules/ol/proj/epsg3857.js","../../node_modules/ol/proj/epsg4326.js","../../node_modules/ol/proj/projections.js","../../node_modules/ol/proj/transforms.js","../../node_modules/ol/coordinate.js","../../node_modules/ol/sphere.js","../../node_modules/ol/proj.js","../../node_modules/ol/geom/flat/transform.js","../../node_modules/ol/geom/Geometry.js","../../node_modules/ol/geom/GeometryCollection.js","../../node_modules/ol/format/Feature.js","../../node_modules/ol/format/JSONFeature.js","../../node_modules/ol/geom/GeometrLine truncated
|
||||
@@ -1 +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-fhy1tayw.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-tM9scNHW.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;position:fixed!important;top:40px;right:0;bottom:0;height:calc(100% - 40px);width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,Line truncated
|
||||
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-fhy1tayw.ttf) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Roboto;src:url(/maputnik/assets/Roboto-Medium-tM9scNHW.ttf) format("truetype");font-weight:700;font-style:normal;font-display:swap}html{color:#f0f0f0;font-size:14px;box-sizing:border-box}body{overflow:hidden}*,*:before,*:after{box-sizing:inherit}p{font-size:12px;margin-top:5px;margin-bottom:5px;color:#a4a4a4;line-height:1.3}h1{font-size:20px;margin-bottom:10px;font-weight:700}h2{font-size:18px;margin-bottom:10px;font-weight:700}h3{font-size:16px;margin-bottom:10px;font-weight:700}h4{font-size:14px;margin-bottom:10px}input:focus,textarea:focus,*[role=button]:focus,button:focus,.maputnik-toolbar-link:focus,.maputnik-toolbar-select:focus,.maputnik-toolbar-action:focus,select:focus{color:#f0f0f0;outline:#8e8e8e auto 1px}label:hover{color:#f0f0f0}.clearfix:after,.maputnik-zoom-spec-property:after,.maputnik-filter-editor:after,.maputnik-add-source:after,.maputnik-add-layer:after{content:"";display:table;clear:both}a{color:#fff}.hide{display:none!important}.maputnik-map__container{background:#fff;display:flex;position:fixed!important;top:40px;right:0;bottom:0;height:calc(100% - 40px);width:calc(100% - 570px)}.maputnik-map__container--error{align-items:center;justify-content:center}.maputnik-map__container__error-message{margin:16px;text-align:center}.maputnik-map__map{width:100%;height:100%}.maputnik-input-block:hover .maputnik-doc-button,.maputnik-filter-editor-compound-select:hover .maputnik-doc-button{opacity:1;pointer-events:all;cursor:pointer}.maputnik-doc-wrapper{display:inline-block;box-sizing:border-box;font-size:12px;line-height:2;-webkit-user-select:none;user-select:none;position:relative;vertical-align:top}.maputnik-doc-popup{display:none;color:#a4a4a4;background-color:#222429;padding:5px;font-size:10px;position:absolute;top:20px;left:0;width:120px;z-index:10;pointer-events:none}.maputnik-doc-button{opacity:0;pointer-events:none;background:#191b20;color:#fff;border:none;padding:4px}.maputnik-doc-button svg{pointer-events:none}.maputnik-doc-button--open{opacity:1;pointer-events:all}.maputnik-doc-inline{color:#a4a4a4;background-color:#222429;padding:5px;font-size:12px;margin-top:10px;line-height:1.5;flex:1 0}.maputnik-doc-target:hover .maputnik-doc-popup{display:block;text-align:left}.maputnik-button,.maputnik-radio-as-button{display:inline-block;cursor:pointer;background-color:#303237;color:#a4a4a4;font-size:12px;padding:5px;-webkit-user-select:none;user-select:none;border-width:0;border-radius:2px;box-sizing:border-box;text-decoration:none}.maputnik-button:hover,.maputnik-radio-as-button:hover{background-color:#4d5058;color:#f0f0f0}.maputnik-button:disabled,.maputnik-radio-as-button:disabled{background-color:#242629;color:#303237;cursor:not-allowed}.maputnik-big-button,.maputnik-add-source-button,.maputnik-add-layer-button,.maputnik-upload-button{margin-top:10px;display:inline-block;padding:10px;font-size:14px}.maputnik-wide-button{padding:5px 10px}.maputnik-green-button{background-color:#53b972;color:#191b20}.maputnik-white-button{background-color:#f0f0f0;color:#191b20}.maputnik-icon-button,.maputnik-make-data-function,.maputnik-delete-stop,.maputnik-make-zoom-function,.maputnik-delete-filter{background-color:transparent}.maputnik-icon-button:hover:not(:disabled),.maputnik-make-data-function:hover:not(:disabled),.maputnik-delete-stop:hover:not(:disabled),.maputnik-make-zoom-function:hover:not(:disabled),.maputnik-delete-filter:hover:not(:disabled){background-color:transparent}.maputnik-icon-button:hover:not(:disabled) label,.maputnik-make-data-function:hover:not(:disabled) label,.maputnik-delete-stop:hover:not(:disabled) label,.maputnik-make-zoom-function:hover:not(:disabled) label,.maputnik-delete-filter:hover:not(:disabled) label,.maputnik-icon-button:hover:not(:disabled) svg,.maputnik-make-data-function:hover:not(:disabled) svg,.maputnik-delete-stop:hover:not(:disabled) svg,.maputnik-make-zoom-function:hover:not(:disabled) svg,.maputnik-delete-filter:hover:not(:disabled) svg{cursor:pointer}.maputnik-icon-button:hover:not(:disabled) svg,Line truncated
|
||||
+2
-2
@@ -37,8 +37,8 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-C8UOi5vM.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-UCAVqeT-.css">
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-WNNEQ5xv.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-v7XUuyxc.css">
|
||||
</head>
|
||||
<body>
|
||||
<!-- From <https://github.com/hail2u/color-blindness-emulation> -->
|
||||
|
||||
Reference in new issue
Block a user