mirror of
https://github.com/maputnik/editor.git
synced 2026-12-06 00:34:22 +00:00
deploy: 4f52df7c3b
This commit is contained in:
1 parent
ea4c3f4e3e
commit
2e62b1802a
3 files changed
+145
-153
No files matched your search
@@ -1,4 +1,4 @@
|
||||
var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Pn=(n,e,t)=>DW(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function hl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function j6(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var v3={exports:{}},av={},C3={exports:{}},cs={},s8;function FW(){if(s8)return cs;s8=1;/**
|
||||
var QW=Object.defineProperty;var YW=(n,e,t)=>e in n?QW(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Pn=(n,e,t)=>YW(n,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function t(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=t(i);fetch(i.href,s)}})();function dl(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Z6(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var S3={exports:{}},uv={},E3={exports:{}},hs={},d8;function qW(){if(d8)return hs;d8=1;/**
|
||||
* @license React
|
||||
* react.production.min.js
|
||||
*
|
||||
@@ -6,7 +6,7 @@ var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,config
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function k(Fe){return Fe===null||typeof Fe!="object"?null:(Fe=B&&Fe[B]||Fe["@@iterator"],typeof Fe=="function"?Fe:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,N={};function W(Fe,Ze,_t){this.props=Fe,this.context=Ze,this.refs=N,this.updater=_t||P}W.prototype.isReactComponent={},W.prototype.setState=function(Fe,Ze){if(typeof Fe!="object"&&typeof Fe!="function"&&Fe!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Fe,Ze,"setState")},W.prototype.forceUpdate=function(Fe){this.updater.enqueueForceUpdate(this,Fe,"forceUpdate")};function V(){}V.prototype=W.prototype;function $(Fe,Ze,_t){this.props=Fe,this.context=Ze,this.refs=N,this.updater=_t||P}var oe=$.prototype=new V;oe.constructor=$,U(oe,W.prototype),oe.isPureReactComponent=!0;var te=Array.isArray,q=Object.prototype.hasOwnProperty,ne={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function ie(Fe,Ze,_t){var Qt,gt={},Ut=null,Pt=null;if(Ze!=null)for(Qt in Ze.ref!==void 0&&(Pt=Ze.ref),Ze.key!==void 0&&(Ut=""+Ze.key),Ze)q.call(Ze,Qt)&&!G.hasOwnProperty(Qt)&&(gt[Qt]=Ze[Qt]);var ze=arguments.length-2;if(ze===1)gt.children=_t;else if(1<ze){for(var Ke=Array(ze),Oe=0;Oe<ze;Oe++)Ke[Oe]=arguments[Oe+2];gt.children=Ke}if(Fe&&Fe.defaultProps)for(Qt in ze=Fe.defaultProps,ze)gt[Qt]===void 0&&(gt[Qt]=ze[Qt]);return{$$typeof:n,type:Fe,key:Ut,ref:Pt,props:gt,_owner:ne.current}}function de(Fe,Ze){return{$$typeof:n,type:Fe.type,key:Ze,ref:Fe.ref,props:Fe.props,_owner:Fe._owner}}function fe(Fe){return typeof Fe=="object"&&Fe!==null&&Fe.$$typeof===n}function Ee(Fe){var Ze={"=":"=0",":":"=2"};return"$"+Fe.replace(/[=:]/g,function(_t){return Ze[_t]})}var me=/\/+/g;function Me(Fe,Ze){return typeof Fe=="object"&&Fe!==null&&Fe.key!=null?Ee(""+Fe.key):Ze.toString(36)}function Le(Fe,Ze,_t,Qt,gt){var Ut=typeof Fe;(Ut==="undefined"||Ut==="boolean")&&(Fe=null);var Pt=!1;if(Fe===null)Pt=!0;else switch(Ut){case"string":case"number":Pt=!0;break;case"object":switch(Fe.$$typeof){case n:case e:Pt=!0}}if(Pt)return Pt=Fe,gt=gt(Pt),Fe=Qt===""?"."+Me(Pt,0):Qt,te(gt)?(_t="",Fe!=null&&(_t=Fe.replace(me,"$&/")+"/"),Le(gt,Ze,_t,"",function(Oe){return Oe})):gt!=null&&(fe(gt)&&(gt=de(gt,_t+(!gt.key||Pt&&Pt.key===gt.key?"":(""+gt.key).replace(me,"$&/")+"/")+Fe)),Ze.push(gt)),1;if(Pt=0,Qt=Qt===""?".":Qt+":",te(Fe))for(var ze=0;ze<Fe.length;ze++){Ut=Fe[ze];var Ke=Qt+Me(Ut,ze);Pt+=Le(Ut,Ze,_t,Ke,gt)}else if(Ke=k(Fe),typeof Ke=="function")for(Fe=Ke.call(Fe),ze=0;!(Ut=Fe.next()).done;)Ut=Ut.value,Ke=Qt+Me(Ut,ze++),Pt+=Le(Ut,Ze,_t,Ke,gt);else if(Ut==="object")throw Ze=String(Fe),Error("Objects are not valid as a React child (found: "+(Ze==="[object Object]"?"object with keys {"+Object.keys(Fe).join(", ")+"}":Ze)+"). If you meant to render a collection of children, use an array instead.");return Pt}function xe(Fe,Ze,_t){if(Fe==null)return Fe;var Qt=[],gt=0;return Le(Fe,Qt,"","",function(Ut){return Ze.call(_t,Ut,gt++)}),Qt}function pt(Fe){if(Fe._status===-1){var Ze=Fe._result;Ze=Ze(),Ze.then(function(_t){(Fe._status===0||Fe._status===-1)&&(Fe._status=1,Fe._result=_t)},function(_t){(Fe._status===0||Fe._status===-1)&&(Fe._status=2,Fe._result=_t)}),Fe._status===-1&&(Fe._status=0,Fe._result=Ze)}if(Fe._status===1)return Fe._result.default;throw Fe._result}var Je={current:null},Ve={transition:null},je={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ve,ReactCurrentOwner:ne};function Se(){throw Error("act(...) is not supported in production builds of React.")}return cs.Children={map:xe,forEach:function(Fe,Ze,_t){xe(Fe,function(){Ze.apply(this,arguments)},_t)},count:function(Fe){var Ze=0;return xe(Fe,function(){Ze++}),Ze},toArray:function(Fe){return xe(Fe,function(Ze){return Ze})||[]},only:function(Fe){if(!fe(Fe))throw Error("React.Children.only expected to receive a single React element child.");return Fe}},cs.Component=W,cs.Fragment=t,cs.Profiler=i,cs.PureComponent=$,cs.StrictMode=r,cs.Suspense=f,cs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,cs.act=Se,cs.cloneElement=function(Fe,Ze,_t){if(Fe==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Fe+".");var Qt=U({},Fe.props),gt=Fe.key,Ut=Fe.ref,Pt=Fe._owner;if(Ze!=null){if(Ze.ref!==void 0&&(Ut=Ze.ref,Pt=ne.current),Ze.key!==void 0&&(gt=""+Ze.key),Fe.type&&Fe.type.defaultProps)var ze=Fe.type.defaultProps;for(Ke in Ze)q.call(Ze,Ke)&&!G.hasOwnProperty(Ke)&&(Qt[Ke]=Ze[Ke]===void 0&&ze!==void 0?ze[Ke]:Ze[Ke])}var Ke=arguments.lengthLine truncated
|
||||
*/var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),B=Symbol.iterator;function k(Le){return Le===null||typeof Le!="object"?null:(Le=B&&Le[B]||Le["@@iterator"],typeof Le=="function"?Le:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,N={};function W(Le,Xe,Ct){this.props=Le,this.context=Xe,this.refs=N,this.updater=Ct||P}W.prototype.isReactComponent={},W.prototype.setState=function(Le,Xe){if(typeof Le!="object"&&typeof Le!="function"&&Le!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Le,Xe,"setState")},W.prototype.forceUpdate=function(Le){this.updater.enqueueForceUpdate(this,Le,"forceUpdate")};function V(){}V.prototype=W.prototype;function $(Le,Xe,Ct){this.props=Le,this.context=Xe,this.refs=N,this.updater=Ct||P}var ie=$.prototype=new V;ie.constructor=$,D(ie,W.prototype),ie.isPureReactComponent=!0;var ne=Array.isArray,q=Object.prototype.hasOwnProperty,te={current:null},G={key:!0,ref:!0,__self:!0,__source:!0};function oe(Le,Xe,Ct){var Gt,mt={},Ut=null,kt=null;if(Xe!=null)for(Gt in Xe.ref!==void 0&&(kt=Xe.ref),Xe.key!==void 0&&(Ut=""+Xe.key),Xe)q.call(Xe,Gt)&&!G.hasOwnProperty(Gt)&&(mt[Gt]=Xe[Gt]);var Te=arguments.length-2;if(Te===1)mt.children=Ct;else if(1<Te){for(var Re=Array(Te),Ue=0;Ue<Te;Ue++)Re[Ue]=arguments[Ue+2];mt.children=Re}if(Le&&Le.defaultProps)for(Gt in Te=Le.defaultProps,Te)mt[Gt]===void 0&&(mt[Gt]=Te[Gt]);return{$$typeof:n,type:Le,key:Ut,ref:kt,props:mt,_owner:te.current}}function fe(Le,Xe){return{$$typeof:n,type:Le.type,key:Xe,ref:Le.ref,props:Le.props,_owner:Le._owner}}function he(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===n}function Me(Le){var Xe={"=":"=0",":":"=2"};return"$"+Le.replace(/[=:]/g,function(Ct){return Xe[Ct]})}var me=/\/+/g;function pe(Le,Xe){return typeof Le=="object"&&Le!==null&&Le.key!=null?Me(""+Le.key):Xe.toString(36)}function qe(Le,Xe,Ct,Gt,mt){var Ut=typeof Le;(Ut==="undefined"||Ut==="boolean")&&(Le=null);var kt=!1;if(Le===null)kt=!0;else switch(Ut){case"string":case"number":kt=!0;break;case"object":switch(Le.$$typeof){case n:case e:kt=!0}}if(kt)return kt=Le,mt=mt(kt),Le=Gt===""?"."+pe(kt,0):Gt,ne(mt)?(Ct="",Le!=null&&(Ct=Le.replace(me,"$&/")+"/"),qe(mt,Xe,Ct,"",function(Ue){return Ue})):mt!=null&&(he(mt)&&(mt=fe(mt,Ct+(!mt.key||kt&&kt.key===mt.key?"":(""+mt.key).replace(me,"$&/")+"/")+Le)),Xe.push(mt)),1;if(kt=0,Gt=Gt===""?".":Gt+":",ne(Le))for(var Te=0;Te<Le.length;Te++){Ut=Le[Te];var Re=Gt+pe(Ut,Te);kt+=qe(Ut,Xe,Ct,Re,mt)}else if(Re=k(Le),typeof Re=="function")for(Le=Re.call(Le),Te=0;!(Ut=Le.next()).done;)Ut=Ut.value,Re=Gt+pe(Ut,Te++),kt+=qe(Ut,Xe,Ct,Re,mt);else if(Ut==="object")throw Xe=String(Le),Error("Objects are not valid as a React child (found: "+(Xe==="[object Object]"?"object with keys {"+Object.keys(Le).join(", ")+"}":Xe)+"). If you meant to render a collection of children, use an array instead.");return kt}function Se(Le,Xe,Ct){if(Le==null)return Le;var Gt=[],mt=0;return qe(Le,Gt,"","",function(Ut){return Xe.call(Ct,Ut,mt++)}),Gt}function vt(Le){if(Le._status===-1){var Xe=Le._result;Xe=Xe(),Xe.then(function(Ct){(Le._status===0||Le._status===-1)&&(Le._status=1,Le._result=Ct)},function(Ct){(Le._status===0||Le._status===-1)&&(Le._status=2,Le._result=Ct)}),Le._status===-1&&(Le._status=0,Le._result=Xe)}if(Le._status===1)return Le._result.default;throw Le._result}var Je={current:null},Ke={transition:null},je={ReactCurrentDispatcher:Je,ReactCurrentBatchConfig:Ke,ReactCurrentOwner:te};function Pe(){throw Error("act(...) is not supported in production builds of React.")}return hs.Children={map:Se,forEach:function(Le,Xe,Ct){Se(Le,function(){Xe.apply(this,arguments)},Ct)},count:function(Le){var Xe=0;return Se(Le,function(){Xe++}),Xe},toArray:function(Le){return Se(Le,function(Xe){return Xe})||[]},only:function(Le){if(!he(Le))throw Error("React.Children.only expected to receive a single React element child.");return Le}},hs.Component=W,hs.Fragment=t,hs.Profiler=i,hs.PureComponent=$,hs.StrictMode=r,hs.Suspense=p,hs.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=je,hs.act=Pe,hs.cloneElement=function(Le,Xe,Ct){if(Le==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Le+".");var Gt=D({},Le.props),mt=Le.key,Ut=Le.ref,kt=Le._owner;if(Xe!=null){if(Xe.ref!==void 0&&(Ut=Xe.ref,kt=te.current),Xe.key!==void 0&&(mt=""+Xe.key),Le.type&&Le.type.defaultProps)var Te=Le.type.defaultProps;for(Re in Xe)q.call(Xe,Re)&&!G.hasOwnProperty(Re)&&(Gt[Re]=Xe[Re]===void 0&&Te!==void 0?Te[Re]:Xe[Re])}var Re=arguments.lengthLine truncated
|
||||
* @license React
|
||||
* react-jsx-runtime.production.min.js
|
||||
*
|
||||
@@ -14,7 +14,7 @@ var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,config
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var l8;function LW(){if(l8)return av;l8=1;var n=Ra(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,f,v){var x,B={},k=null,P=null;v!==void 0&&(k=""+v),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(P=f.ref);for(x in f)r.call(f,x)&&!s.hasOwnProperty(x)&&(B[x]=f[x]);if(o&&o.defaultProps)for(x in f=o.defaultProps,f)B[x]===void 0&&(B[x]=f[x]);return{$$typeof:e,type:o,key:k,ref:P,props:B,_owner:i.current}}return av.Fragment=t,av.jsx=l,av.jsxs=l,av}var A8;function UW(){return A8||(A8=1,v3.exports=LW()),v3.exports}var Ae=UW(),Ai=Ra();const Jn=hl(Ai);var bD={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},OE=Jn.createContext&&Jn.createContext(bD),zW=["attr","size","title"];function NW(n,e){if(n==null)return{};var t=WW(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function WW(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function kb(){return kb=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},kb.apply(this,arguments)}function u8(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Pb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?u8(Object(t),!0).forEach(function(r){jW(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u8(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function jW(n,e,t){return e=GW(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function GW(n){var e=QW(n,"string");return typeof e=="symbol"?e:e+""}function QW(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function xD(n){return n&&n.map((e,t)=>Jn.createElement(e.tag,Pb({key:t},e.attr),xD(e.child)))}function eA(n){return e=>Jn.createElement(YW,kb({attr:Pb({},n.attr)},e),xD(n.child))}function YW(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=NW(n,zW),o=i||t.size||"1em",f;return t.className&&(f=t.className),n.className&&(f=(f?f+" ":"")+n.className),Jn.createElement("svg",kb({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:f,style:Pb(Pb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&Jn.createElement("title",null,s),n.children)};return OE!==void 0?Jn.createElement(OE.Consumer,null,t=>e(t)):e(bD)}var O_={},_3={exports:{}},ld={},b3={exports:{}},x3={};/**
|
||||
*/var p8;function VW(){if(p8)return uv;p8=1;var n=Da(),e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(o,p,v){var x,B={},k=null,P=null;v!==void 0&&(k=""+v),p.key!==void 0&&(k=""+p.key),p.ref!==void 0&&(P=p.ref);for(x in p)r.call(p,x)&&!s.hasOwnProperty(x)&&(B[x]=p[x]);if(o&&o.defaultProps)for(x in p=o.defaultProps,p)B[x]===void 0&&(B[x]=p[x]);return{$$typeof:e,type:o,key:k,ref:P,props:B,_owner:i.current}}return uv.Fragment=t,uv.jsx=l,uv.jsxs=l,uv}var m8;function HW(){return m8||(m8=1,S3.exports=VW()),S3.exports}var Ae=HW(),Ai=Da();const Zn=dl(Ai);var ID={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},DE=Zn.createContext&&Zn.createContext(ID),$W=["attr","size","title"];function ZW(n,e){if(n==null)return{};var t=XW(n,e),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(i=0;i<s.length;i++)r=s[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function XW(n,e){if(n==null)return{};var t={};for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Db(){return Db=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Db.apply(this,arguments)}function g8(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Fb(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?g8(Object(t),!0).forEach(function(r){JW(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):g8(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function JW(n,e,t){return e=ej(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ej(n){var e=tj(n,"string");return typeof e=="symbol"?e:e+""}function tj(n,e){if(typeof n!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function TD(n){return n&&n.map((e,t)=>Zn.createElement(e.tag,Fb({key:t},e.attr),TD(e.child)))}function eA(n){return e=>Zn.createElement(nj,Db({attr:Fb({},n.attr)},e),TD(n.child))}function nj(n){var e=t=>{var{attr:r,size:i,title:s}=n,l=ZW(n,$W),o=i||t.size||"1em",p;return t.className&&(p=t.className),n.className&&(p=(p?p+" ":"")+n.className),Zn.createElement("svg",Db({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,r,l,{className:p,style:Fb(Fb({color:n.color||t.color},t.style),n.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),s&&Zn.createElement("title",null,s),n.children)};return DE!==void 0?Zn.createElement(DE.Consumer,null,t=>e(t)):e(ID)}var P_={},B3={exports:{}},ud={},O3={exports:{}},I3={};/**
|
||||
* @license React
|
||||
* scheduler.production.min.js
|
||||
*
|
||||
@@ -22,7 +22,7 @@ var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,config
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var c8;function qW(){return c8||(c8=1,function(n){function e(Ve,je){var Se=Ve.length;Ve.push(je);e:for(;0<Se;){var Fe=Se-1>>>1,Ze=Ve[Fe];if(0<i(Ze,je))Ve[Fe]=je,Ve[Se]=Ze,Se=Fe;else break e}}function t(Ve){return Ve.length===0?null:Ve[0]}function r(Ve){if(Ve.length===0)return null;var je=Ve[0],Se=Ve.pop();if(Se!==je){Ve[0]=Se;e:for(var Fe=0,Ze=Ve.length,_t=Ze>>>1;Fe<_t;){var Qt=2*(Fe+1)-1,gt=Ve[Qt],Ut=Qt+1,Pt=Ve[Ut];if(0>i(gt,Se))Ut<Ze&&0>i(Pt,gt)?(Ve[Fe]=Pt,Ve[Ut]=Se,Fe=Ut):(Ve[Fe]=gt,Ve[Qt]=Se,Fe=Qt);else if(Ut<Ze&&0>i(Pt,Se))Ve[Fe]=Pt,Ve[Ut]=Se,Fe=Ut;else break e}}return je}function i(Ve,je){var Se=Ve.sortIndex-je.sortIndex;return Se!==0?Se:Ve.id-je.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var f=[],v=[],x=1,B=null,k=3,P=!1,U=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function oe(Ve){for(var je=t(v);je!==null;){if(je.callback===null)r(v);else if(je.startTime<=Ve)r(v),je.sortIndex=je.expirationTime,e(f,je);else break;je=t(v)}}function te(Ve){if(N=!1,oe(Ve),!U)if(t(f)!==null)U=!0,pt(q);else{var je=t(v);je!==null&&Je(te,je.startTime-Ve)}}function q(Ve,je){U=!1,N&&(N=!1,V(ie),ie=-1),P=!0;var Se=k;try{for(oe(je),B=t(f);B!==null&&(!(B.expirationTime>je)||Ve&&!Ee());){var Fe=B.callback;if(typeof Fe=="function"){B.callback=null,k=B.priorityLevel;var Ze=Fe(B.expirationTime<=je);je=n.unstable_now(),typeof Ze=="function"?B.callback=Ze:B===t(f)&&r(f),oe(je)}else r(f);B=t(f)}if(B!==null)var _t=!0;else{var Qt=t(v);Qt!==null&&Je(te,Qt.startTime-je),_t=!1}return _t}finally{B=null,k=Se,P=!1}}var ne=!1,G=null,ie=-1,de=5,fe=-1;function Ee(){return!(n.unstable_now()-fe<de)}function me(){if(G!==null){var Ve=n.unstable_now();fe=Ve;var je=!0;try{je=G(!0,Ve)}finally{je?Me():(ne=!1,G=null)}}else ne=!1}var Me;if(typeof $=="function")Me=function(){$(me)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,xe=Le.port2;Le.port1.onmessage=me,Me=function(){xe.postMessage(null)}}else Me=function(){W(me,0)};function pt(Ve){G=Ve,ne||(ne=!0,Me())}function Je(Ve,je){ie=W(function(){Ve(n.unstable_now())},je)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ve){Ve.callback=null},n.unstable_continueExecution=function(){U||P||(U=!0,pt(q))},n.unstable_forceFrameRate=function(Ve){0>Ve||125<Ve?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):de=0<Ve?Math.floor(1e3/Ve):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return t(f)},n.unstable_next=function(Ve){switch(k){case 1:case 2:case 3:var je=3;break;default:je=k}var Se=k;k=je;try{return Ve()}finally{k=Se}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Ve,je){switch(Ve){case 1:case 2:case 3:case 4:case 5:break;default:Ve=3}var Se=k;k=Ve;try{return je()}finally{k=Se}},n.unstable_scheduleCallback=function(Ve,je,Se){var Fe=n.unstable_now();switch(typeof Se=="object"&&Se!==null?(Se=Se.delay,Se=typeof Se=="number"&&0<Se?Fe+Se:Fe):Se=Fe,Ve){case 1:var Ze=-1;break;case 2:Ze=250;break;case 5:Ze=1073741823;break;case 4:Ze=1e4;break;default:Ze=5e3}return Ze=Se+Ze,Ve={id:x++,callback:je,priorityLevel:Ve,startTime:Se,expirationTime:Ze,sortIndex:-1},Se>Fe?(Ve.sortIndex=Se,e(v,Ve),t(f)===null&&Ve===t(v)&&(N?(V(ie),ie=-1):N=!0,Je(te,Se-Fe))):(Ve.sortIndex=Ze,e(f,Ve),U||P||(U=!0,pt(q))),Ve},n.unstable_shouldYield=Ee,n.unstable_wrapCallback=function(Ve){var je=k;return function(){var Se=k;k=je;try{return Ve.apply(this,arguments)}finally{k=Se}}}}(x3)),x3}var h8;function VW(){return h8||(h8=1,b3.exports=qW()),b3.exports}/**
|
||||
*/var y8;function rj(){return y8||(y8=1,function(n){function e(Ke,je){var Pe=Ke.length;Ke.push(je);e:for(;0<Pe;){var Le=Pe-1>>>1,Xe=Ke[Le];if(0<i(Xe,je))Ke[Le]=je,Ke[Pe]=Xe,Pe=Le;else break e}}function t(Ke){return Ke.length===0?null:Ke[0]}function r(Ke){if(Ke.length===0)return null;var je=Ke[0],Pe=Ke.pop();if(Pe!==je){Ke[0]=Pe;e:for(var Le=0,Xe=Ke.length,Ct=Xe>>>1;Le<Ct;){var Gt=2*(Le+1)-1,mt=Ke[Gt],Ut=Gt+1,kt=Ke[Ut];if(0>i(mt,Pe))Ut<Xe&&0>i(kt,mt)?(Ke[Le]=kt,Ke[Ut]=Pe,Le=Ut):(Ke[Le]=mt,Ke[Gt]=Pe,Le=Gt);else if(Ut<Xe&&0>i(kt,Pe))Ke[Le]=kt,Ke[Ut]=Pe,Le=Ut;else break e}}return je}function i(Ke,je){var Pe=Ke.sortIndex-je.sortIndex;return Pe!==0?Pe:Ke.id-je.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var p=[],v=[],x=1,B=null,k=3,P=!1,D=!1,N=!1,W=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ie(Ke){for(var je=t(v);je!==null;){if(je.callback===null)r(v);else if(je.startTime<=Ke)r(v),je.sortIndex=je.expirationTime,e(p,je);else break;je=t(v)}}function ne(Ke){if(N=!1,ie(Ke),!D)if(t(p)!==null)D=!0,vt(q);else{var je=t(v);je!==null&&Je(ne,je.startTime-Ke)}}function q(Ke,je){D=!1,N&&(N=!1,V(oe),oe=-1),P=!0;var Pe=k;try{for(ie(je),B=t(p);B!==null&&(!(B.expirationTime>je)||Ke&&!Me());){var Le=B.callback;if(typeof Le=="function"){B.callback=null,k=B.priorityLevel;var Xe=Le(B.expirationTime<=je);je=n.unstable_now(),typeof Xe=="function"?B.callback=Xe:B===t(p)&&r(p),ie(je)}else r(p);B=t(p)}if(B!==null)var Ct=!0;else{var Gt=t(v);Gt!==null&&Je(ne,Gt.startTime-je),Ct=!1}return Ct}finally{B=null,k=Pe,P=!1}}var te=!1,G=null,oe=-1,fe=5,he=-1;function Me(){return!(n.unstable_now()-he<fe)}function me(){if(G!==null){var Ke=n.unstable_now();he=Ke;var je=!0;try{je=G(!0,Ke)}finally{je?pe():(te=!1,G=null)}}else te=!1}var pe;if(typeof $=="function")pe=function(){$(me)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Se=qe.port2;qe.port1.onmessage=me,pe=function(){Se.postMessage(null)}}else pe=function(){W(me,0)};function vt(Ke){G=Ke,te||(te=!0,pe())}function Je(Ke,je){oe=W(function(){Ke(n.unstable_now())},je)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(Ke){Ke.callback=null},n.unstable_continueExecution=function(){D||P||(D=!0,vt(q))},n.unstable_forceFrameRate=function(Ke){0>Ke||125<Ke?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fe=0<Ke?Math.floor(1e3/Ke):5},n.unstable_getCurrentPriorityLevel=function(){return k},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(Ke){switch(k){case 1:case 2:case 3:var je=3;break;default:je=k}var Pe=k;k=je;try{return Ke()}finally{k=Pe}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(Ke,je){switch(Ke){case 1:case 2:case 3:case 4:case 5:break;default:Ke=3}var Pe=k;k=Ke;try{return je()}finally{k=Pe}},n.unstable_scheduleCallback=function(Ke,je,Pe){var Le=n.unstable_now();switch(typeof Pe=="object"&&Pe!==null?(Pe=Pe.delay,Pe=typeof Pe=="number"&&0<Pe?Le+Pe:Le):Pe=Le,Ke){case 1:var Xe=-1;break;case 2:Xe=250;break;case 5:Xe=1073741823;break;case 4:Xe=1e4;break;default:Xe=5e3}return Xe=Pe+Xe,Ke={id:x++,callback:je,priorityLevel:Ke,startTime:Pe,expirationTime:Xe,sortIndex:-1},Pe>Le?(Ke.sortIndex=Pe,e(v,Ke),t(p)===null&&Ke===t(v)&&(N?(V(oe),oe=-1):N=!0,Je(ne,Pe-Le))):(Ke.sortIndex=Xe,e(p,Ke),D||P||(D=!0,vt(q))),Ke},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(Ke){var je=k;return function(){var Pe=k;k=je;try{return Ke.apply(this,arguments)}finally{k=Pe}}}}(I3)),I3}var v8;function ij(){return v8||(v8=1,O3.exports=rj()),O3.exports}/**
|
||||
* @license React
|
||||
* react-dom.production.min.js
|
||||
*
|
||||
@@ -30,52 +30,52 @@ var RW=Object.defineProperty;var DW=(n,e,t)=>e in n?RW(n,e,{enumerable:!0,config
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var d8;function HW(){if(d8)return ld;d8=1;var n=Ra(),e=VW();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,D=1;D<arguments.length;D++)_+="&args[]="+encodeURIComponent(arguments[D]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){l(m,_),l(m+"Capture",_)}function l(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},B={};function k(m){return f.call(B,m)?!0:f.call(x,m)?!1:v.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,D,Q){if(D!==null&&D.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:D!==null?!D.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function U(m,_,D,Q){if(_===null||typeof _>"u"||P(m,_,D,Q))return!0;if(Q)return!1;if(D!==null)switch(D.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,D,Q,le,ye,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=le,this.mustUseProperty=D,this.propertyName=m,this.type=_,this.sanitizeURL=ye,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function $(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function oe(m,_,D,Q){var le=W.hasOwnProperty(_)?W[_]:null;(le!==null?le.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="
Line truncated
|
||||
`+Fe+m}var _t=!1;function Qt(m,_){if(!m||_t)return"";_t=!0;var D=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Sn){var Q=Sn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Sn){Q=Sn}m.call(_.prototype)}else{try{throw Error()}catch(Sn){Q=Sn}m()}}catch(Sn){if(Sn&&Q&&typeof Sn.stack=="string"){for(var le=Sn.stack.split(`
|
||||
`),ye=Q.stack.split(`
|
||||
`),tt=le.length-1,Ot=ye.length-1;1<=tt&&0<=Ot&&le[tt]!==ye[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(le[tt]!==ye[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||le[tt]!==ye[Ot]){var jt=`
|
||||
`+le[tt].replace(" at new "," at ");return m.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",m.displayName)),jt}while(1<=tt&&0<=Ot);break}}}finally{_t=!1,Error.prepareStackTrace=D}return(m=m?m.displayName||m.name:"")?Ze(m):""}function gt(m){switch(m.tag){case 5:return Ze(m.type);case 16:return Ze("Lazy");case 13:return Ze("Suspense");case 19:return Ze("SuspenseList");case 0:case 2:case 15:return m=Qt(m.type,!1),m;case 11:return m=Qt(m.type.render,!1),m;case 1:return m=Qt(m.type,!0),m;default:return""}}function Ut(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case ne:return"Portal";case de:return"Profiler";case ie:return"StrictMode";case Me:return"Suspense";case Le:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Ee:return(m.displayName||"Context")+".Consumer";case fe:return(m._context.displayName||"Context")+".Provider";case me:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case xe:return _=m.displayName||null,_!==null?_:Ut(m.type)||"Memo";case pt:_=m._payload,m=m._init;try{return Ut(m(_))}catch{}}return null}function Pt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ut(_);case 8:return _===ie?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function ze(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Ke(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Oe(m){var _=Ke(m)?"checked":"value",D=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof D<"u"&&typeof D.get=="function"&&typeof D.set=="function"){var le=D.get,ye=D.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return le.call(this)},set:function(tt){Q=""+tt,ye.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:D.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function it(m){m._valueTracker||(m._valueTracker=Oe(m))}function Ct(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var D=_.getValue(),Q="";return m&&(Q=Ke(m)?m.checked?"true":"false":m.value),m=Q,m!==D?(_.setValue(m),!0):!1}function dt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Dt(m,_){var D=_.checked;return Se({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:D??m._wrapperState.initialChecked})}function $t(m,_){var D=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;D=ze(_.value!=null?_.value:D),m._wrapperState={initialChecked:Q,initialValue:D,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Rt(m,_){_=_.checked,_!=null&&oe(m,"checked",_,!1)}function bn(m,_){Rt(m,_);var D=ze(_.value),Q=_.type;if(D!=null)Q==="number"?(D===0&&m.value===""||m.value!=D)&&(m.value=""+D):m.value!==""+D&&(m.value=""+D);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?rn(m,_.type,D):_.hasOwnProperty("defaultValue")&&rn(m,_.type,ze(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function Yn(m,_,D){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,D||_===m.value||(m.value=_),m.defaultValue=_}D=m.name,D!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,D!==""&&(m.name=D)}function rn(m,_,D){(_!=="number"||dt(m.ownerDocument)!==m)&&(D==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+D&&(m.defaultValue=""+D))}var er=Array.isArray;function Tn(m,_,D,Q){if(m=m.options,_){_={};for(var le=0;le<D.length;le++)_["$"+D[le]]=!0;for(D=0;D<m.length;D++)le=_.hasOwnProperty("$"+m[D].value),m[D].selected!==le&&(m[D].selected=le),le&&Q&&(m[D].defaultSelected=!0)}else{for(D=""+ze(D),_=null,le=0;le<m.length;le++){if(m[le].value===D){m[le].selected=!0,Q&&(m[le].defaultSelected=!0);return}_!==null||m[le].disabled||(_=m[le])}_!==null&&(_.selecte
Line truncated
|
||||
`).replace(Sd,"")}function _h(m,_,D){if(_=eh(_),eh(m)!==_&&D)throw Error(t(425))}function fs(){}var xu=null,Xs=null;function Nu(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Wl=typeof setTimeout=="function"?setTimeout:void 0,Wu=typeof clearTimeout=="function"?clearTimeout:void 0,Ml=typeof Promise=="function"?Promise:void 0,Mu=typeof queueMicrotask=="function"?queueMicrotask:typeof Ml<"u"?function(m){return Ml.resolve(null).then(m).catch(Ic)}:Wl;function Ic(m){setTimeout(function(){throw m})}function Xh(m,_){var D=_,Q=0;do{var le=D.nextSibling;if(m.removeChild(D),le&&le.nodeType===8)if(D=le.data,D==="/$"){if(Q===0){m.removeChild(le),no(_);return}Q--}else D!=="$"&&D!=="$?"&&D!=="$!"||Q++;D=le}while(D);no(_)}function Ac(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function Tc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var D=m.data;if(D==="$"||D==="$!"||D==="$?"){if(_===0)return m;_--}else D==="/$"&&_++}m=m.previousSibling}return null}var OA=Math.random().toString(36).slice(2),wu="__reactFiber$"+OA,pl="__reactProps$"+OA,IA="__reactContainer$"+OA,Ed="__reactEvents$"+OA,at="__reactListeners$"+OA,bh="__reactHandles$"+OA;function Js(m){var _=m[wu];if(_)return _;for(var D=m.parentNode;D;){if(_=D[IA]||D[wu]){if(D=_.alternate,_.child!==null||D!==null&&D.child!==null)for(m=Tc(m);m!==null;){if(D=m[wu])return D;m=Tc(m)}return _}m=D,D=m.parentNode}return null}function Po(m){return m=m[wu]||m[IA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ri(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function ps(m){return m[pl]||null}var Na=[],Wa=-1;function Bs(m){return{current:m}}function Fs(m){0>Wa||(m.current=Na[Wa],Na[Wa]=null,Wa--)}function Ko(m,_){Wa++,Na[Wa]=m.current,m.current=_}var wl={},rl=Bs(wl),Sl=Bs(!1),El=wl;function th(m,_){var D=m.type.contextTypes;if(!D)return wl;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var le={},ye;for(ye in D)le[ye]=_[ye];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=le),le}function Bl(m){return m=m.childContextTypes,m!=null}function TA(){Fs(Sl),Fs(rl)}function ju(m,_,D){if(rl.current!==wl)throw Error(t(168));Ko(rl,_),Ko(Sl,D)}function xr(m,_,D){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return D;Q=Q.getChildContext();for(var le in Q)if(!(le in _))throw Error(t(108,Pt(m)||"Unknown",le));return Se({},D,Q)}function AA(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||wl,El=rl.current,Ko(rl,m),Ko(Sl,Sl.current),!0}function Bd(m,_,D){var Q=m.stateNode;if(!Q)throw Error(t(169));D?(m=xr(m,_,El),Q.__reactInternalMemoizedMergedChildContext=m,Fs(Sl),Fs(rl),Ko(rl,m)):Fs(Sl),Ko(Sl,D)}var Ol=null,nh=!1,Su=!1;function kA(m){Ol===null?Ol=[m]:Ol.push(m)}function Fi(m){nh=!0,kA(m)}function Gu(){if(!Su&&Ol!==null){Su=!0;var m=0,_=di;try{var D=Ol;for(di=1;m<D.length;m++){var Q=D[m];do Q=Q(!0);while(Q!==null)}Ol=null,nh=!1}catch(le){throw Ol!==null&&(Ol=Ol.slice(m+1)),sa(_l,Gu),le}finally{di=_,Su=!1}}return null}var rh=[],rs=0,Bo=null,uA=0,ja=[],ma=0,kc=null,ru=1,iu="";function ih(m,_){rh[rs++]=uA,rh[rs++]=Bo,Bo=m,uA=_}function af(m,_,D){ja[ma++]=ru,ja[ma++]=iu,ja[ma++]=kc,kc=m;var Q=ru;m=iu;var le=32-xn(Q)-1;Q&=~(1<<le),D+=1;var ye=32-xn(_)+le;if(30<ye){var tt=le-le%5;ye=(Q&(1<<tt)-1).toString(32),Q>>=tt,le-=tt,ru=1<<32-xn(_)+le|D<<le|Q,iu=ye+m}else ru=1<<ye|D<<le|Q,iu=m}function jl(m){m.return!==null&&(ih(m,1),af(m,1,0))}function Qo(m){for(;m===Bo;)Bo=rh[--rs],rh[rs]=null,uA=rh[--rs],rh[rs]=null;for(;m===kc;)kc=ja[--ma],ja[ma]=null,iu=ja[--ma],ja[ma]=null,ru=ja[--ma],ja[ma]=null}var ga=null,la=null,Ms=!1,Gl=null;function Qu(m,_){var D=xa(5,null,null,0);D.elementType="DELETED",D.stateNode=_,D.return=m,_=m.deletions,_===null?(m.deletions=[D],m.flags|=16):_.push(D)}function Pc(m,_){switch(m.tag){case 5:var D=m.type;return _=_.nodeType!==1||D.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,ga=m,la=Ac(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,ga=m,la=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(D=kc!==null?{id:ru,overflow:iu}:null,m.memoizedState={dehydrated:_,treeContext:D,retryLane:1073741824},D=xa(18,null,null,0),D.stateNode=_,D.return=m,m.child=D,ga=m,la=null,!0):!1;default:return!1}}function Ga(m){return(m.mode&1)!==0&&(m.flags&128)===0}function ml(m){if(Ms){var _=la;if(_){var D=_;if(!Pc(m,_)){if(Ga(m))throw Error(t(418));_=Ac(D.nextSibling);var Q=ga;_&&Pc(m,_)?Qu(Q,D):(m.flags=m.flags&-4097|2,Ms=!1,ga=m)}}else{if(Ga(m))throw Error(t(418));m.flags=m.flags&-4097|
Line truncated
|
||||
Error generating stack: `+ye.message+`
|
||||
`+ye.stack}return{value:m,source:_,stack:le,digest:null}}function uf(m,_,D){return{value:m,source:null,stack:D??null,digest:_??null}}function Id(m,_){try{console.error(_.value)}catch(D){setTimeout(function(){throw D})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function qu(m,_,D){D=Au(-1,D),D.tag=3,D.payload={element:null};var Q=_.value;return D.callback=function(){qm||(qm=!0,G0=Q),Id(m,_)},D}function $f(m,_,D){D=Au(-1,D),D.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var le=_.value;D.payload=function(){return Q(le)},D.callback=function(){Id(m,_)}}var ye=m.stateNode;return ye!==null&&typeof ye.componentDidCatch=="function"&&(D.callback=function(){Id(m,_),typeof Q!="function"&&(Pd===null?Pd=new Set([this]):Pd.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),D}function Sh(m,_,D){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new Bp;var le=new Set;Q.set(_,le)}else le=Q.get(_),le===void 0&&(le=new Set,Q.set(_,le));le.has(D)||(le.add(D),m=Y0.bind(null,m,_,D),_.then(m,m))}function cf(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Rc(m,_,D,Q,le){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,D.flags|=131072,D.flags&=-52805,D.tag===1&&(D.alternate===null?D.tag=17:(_=Au(-1,1),_.tag=2,Il(D,_,1))),D.lanes|=1),m):(m.flags|=65536,m.lanes=le,m)}var hf=te.ReactCurrentOwner,kl=!1;function fA(m,_,D,Q){_.child=m===null?Os(_,null,D,Q):ji(_,m.child,D,Q)}function Ym(m,_,D,Q,le){D=D.render;var ye=_.ref;return su(_,le),Q=sr(m,_,D,Q,ye,le),D=Hn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(Ms&&D&&jl(_),_.flags|=1,fA(m,_,Q,le),_.child)}function Op(m,_,D,Q,le){if(m===null){var ye=D.type;return typeof ye=="function"&&!Pp(ye)&&ye.defaultProps===void 0&&D.compare===null&&D.defaultProps===void 0?(_.tag=15,_.type=ye,qo(m,_,ye,Q,le)):(m=tp(D.type,null,Q,_,_.mode,le),m.ref=_.ref,m.return=_,_.child=m)}if(ye=m.child,(m.lanes&le)===0){var tt=ye.memoizedProps;if(D=D.compare,D=D!==null?D:Kr,D(tt,Q)&&m.ref===_.ref)return pA(m,_,le)}return _.flags|=1,m=zA(ye,Q),m.ref=_.ref,m.return=_,_.child=m}function qo(m,_,D,Q,le){if(m!==null){var ye=m.memoizedProps;if(Kr(ye,Q)&&m.ref===_.ref)if(kl=!1,_.pendingProps=Q=ye,(m.lanes&le)!==0)(m.flags&131072)!==0&&(kl=!0);else return _.lanes=m.lanes,pA(m,_,le)}return Eh(m,_,D,Q,le)}function Ip(m,_,D){var Q=_.pendingProps,le=Q.children,ye=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ko(UA,ms),ms|=D;else{if((D&1073741824)===0)return m=ye!==null?ye.baseLanes|D:D,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Ko(UA,ms),ms|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ye!==null?ye.baseLanes:D,Ko(UA,ms),ms|=Q}else ye!==null?(Q=ye.baseLanes|D,_.memoizedState=null):Q=D,Ko(UA,ms),ms|=Q;return fA(m,_,le,D),_.child}function Zf(m,_){var D=_.ref;(m===null&&D!==null||m!==null&&m.ref!==D)&&(_.flags|=512,_.flags|=2097152)}function Eh(m,_,D,Q,le){var ye=Bl(D)?El:rl.current;return ye=th(_,ye),su(_,le),D=sr(m,_,D,Q,ye,le),Q=Hn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(Ms&&Q&&jl(_),_.flags|=1,fA(m,_,D,le),_.child)}function ku(m,_,D,Q,le){if(Bl(D)){var ye=!0;AA(_)}else ye=!1;if(su(_,le),_.stateNode===null)pf(m,_),td(_,D,Q),Hf(_,D,Q,le),Q=!0;else if(m===null){var tt=_.stateNode,Ot=_.memoizedProps;tt.props=Ot;var jt=tt.context,Sn=D.contextType;typeof Sn=="object"&&Sn!==null?Sn=hA(Sn):(Sn=Bl(D)?El:rl.current,Sn=th(_,Sn));var ar=D.getDerivedStateFromProps,cr=typeof ar=="function"||typeof tt.getSnapshotBeforeUpdate=="function";cr||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Ot!==Q||jt!==Sn)&&Af(_,tt,Q,Sn),ol=!1;var rr=_.memoizedState;tt.state=rr,c(_,Q,tt,le),jt=_.memoizedState,Ot!==Q||rr!==jt||Sl.current||ol?(typeof ar=="function"&&(ah(_,D,ar,Q),jt=_.memoizedState),(Ot=ol||Od(_,D,Ot,Q,rr,jt,Sn))?(cr||typeof tt.UNSAFE_componentWillMount!="function"&&typeof tt.componentWillMount!="function"||(typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount()),typeof tt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=jt),tt.props=Q,tt.state=jt,tt.context=Sn,Q=Ot):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,uc(m,_),Ot=_.memoizedProps,Sn=_.type===_.elementType?Ot:Tl(_.type,Ot),tt.props=Sn,cr=_.pendingProps,rr=tt.context,jt=D.contextType,typeof jt=="object"&&jt!==null?jt=hA(jt):(jt=Bl(D)?El:rl.current,jt=th(_,jt));var Ur=D.getDerivedStateFromProps;(ar=typeof Ur=="function"||typeof tt.getSnapshotBeforeUpdate=="function")||typeof tt.UNSAFE_c
Line truncated
|
||||
*/var C8;function oj(){if(C8)return ud;C8=1;var n=Da(),e=ij();function t(m){for(var _="https://reactjs.org/docs/error-decoder.html?invariant="+m,F=1;F<arguments.length;F++)_+="&args[]="+encodeURIComponent(arguments[F]);return"Minified React error #"+m+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,i={};function s(m,_){l(m,_),l(m+"Capture",_)}function l(m,_){for(i[m]=_,m=0;m<_.length;m++)r.add(_[m])}var o=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x={},B={};function k(m){return p.call(B,m)?!0:p.call(x,m)?!1:v.test(m)?B[m]=!0:(x[m]=!0,!1)}function P(m,_,F,Q){if(F!==null&&F.type===0)return!1;switch(typeof _){case"function":case"symbol":return!0;case"boolean":return Q?!1:F!==null?!F.acceptsBooleans:(m=m.toLowerCase().slice(0,5),m!=="data-"&&m!=="aria-");default:return!1}}function D(m,_,F,Q){if(_===null||typeof _>"u"||P(m,_,F,Q))return!0;if(Q)return!1;if(F!==null)switch(F.type){case 3:return!_;case 4:return _===!1;case 5:return isNaN(_);case 6:return isNaN(_)||1>_}return!1}function N(m,_,F,Q,le,ve,tt){this.acceptsBooleans=_===2||_===3||_===4,this.attributeName=Q,this.attributeNamespace=le,this.mustUseProperty=F,this.propertyName=m,this.type=_,this.sanitizeURL=ve,this.removeEmptyString=tt}var W={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(m){W[m]=new N(m,0,!1,m,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(m){var _=m[0];W[_]=new N(_,1,!1,m[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(m){W[m]=new N(m,2,!1,m.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(m){W[m]=new N(m,2,!1,m,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(m){W[m]=new N(m,3,!1,m.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(m){W[m]=new N(m,3,!0,m,null,!1,!1)}),["capture","download"].forEach(function(m){W[m]=new N(m,4,!1,m,null,!1,!1)}),["cols","rows","size","span"].forEach(function(m){W[m]=new N(m,6,!1,m,null,!1,!1)}),["rowSpan","start"].forEach(function(m){W[m]=new N(m,5,!1,m.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function $(m){return m[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(m){var _=m.replace(V,$);W[_]=new N(_,1,!1,m,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!1,!1)}),W.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(m){W[m]=new N(m,1,!1,m.toLowerCase(),null,!0,!0)});function ie(m,_,F,Q){var le=W.hasOwnProperty(_)?W[_]:null;(le!==null?le.type!==0:Q||!(2<_.length)||_[0]!=="o"&&_[0]!=="O"||_[1]!=="
Line truncated
|
||||
`+Le+m}var Ct=!1;function Gt(m,_){if(!m||Ct)return"";Ct=!0;var F=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_)if(_=function(){throw Error()},Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(Sn){var Q=Sn}Reflect.construct(m,[],_)}else{try{_.call()}catch(Sn){Q=Sn}m.call(_.prototype)}else{try{throw Error()}catch(Sn){Q=Sn}m()}}catch(Sn){if(Sn&&Q&&typeof Sn.stack=="string"){for(var le=Sn.stack.split(`
|
||||
`),ve=Q.stack.split(`
|
||||
`),tt=le.length-1,Ot=ve.length-1;1<=tt&&0<=Ot&&le[tt]!==ve[Ot];)Ot--;for(;1<=tt&&0<=Ot;tt--,Ot--)if(le[tt]!==ve[Ot]){if(tt!==1||Ot!==1)do if(tt--,Ot--,0>Ot||le[tt]!==ve[Ot]){var jt=`
|
||||
`+le[tt].replace(" at new "," at ");return m.displayName&&jt.includes("<anonymous>")&&(jt=jt.replace("<anonymous>",m.displayName)),jt}while(1<=tt&&0<=Ot);break}}}finally{Ct=!1,Error.prepareStackTrace=F}return(m=m?m.displayName||m.name:"")?Xe(m):""}function mt(m){switch(m.tag){case 5:return Xe(m.type);case 16:return Xe("Lazy");case 13:return Xe("Suspense");case 19:return Xe("SuspenseList");case 0:case 2:case 15:return m=Gt(m.type,!1),m;case 11:return m=Gt(m.type.render,!1),m;case 1:return m=Gt(m.type,!0),m;default:return""}}function Ut(m){if(m==null)return null;if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m;switch(m){case G:return"Fragment";case te:return"Portal";case fe:return"Profiler";case oe:return"StrictMode";case pe:return"Suspense";case qe:return"SuspenseList"}if(typeof m=="object")switch(m.$$typeof){case Me:return(m.displayName||"Context")+".Consumer";case he:return(m._context.displayName||"Context")+".Provider";case me:var _=m.render;return m=m.displayName,m||(m=_.displayName||_.name||"",m=m!==""?"ForwardRef("+m+")":"ForwardRef"),m;case Se:return _=m.displayName||null,_!==null?_:Ut(m.type)||"Memo";case vt:_=m._payload,m=m._init;try{return Ut(m(_))}catch{}}return null}function kt(m){var _=m.type;switch(m.tag){case 24:return"Cache";case 9:return(_.displayName||"Context")+".Consumer";case 10:return(_._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return m=_.render,m=m.displayName||m.name||"",_.displayName||(m!==""?"ForwardRef("+m+")":"ForwardRef");case 7:return"Fragment";case 5:return _;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ut(_);case 8:return _===oe?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _}return null}function Te(m){switch(typeof m){case"boolean":case"number":case"string":case"undefined":return m;case"object":return m;default:return""}}function Re(m){var _=m.type;return(m=m.nodeName)&&m.toLowerCase()==="input"&&(_==="checkbox"||_==="radio")}function Ue(m){var _=Re(m)?"checked":"value",F=Object.getOwnPropertyDescriptor(m.constructor.prototype,_),Q=""+m[_];if(!m.hasOwnProperty(_)&&typeof F<"u"&&typeof F.get=="function"&&typeof F.set=="function"){var le=F.get,ve=F.set;return Object.defineProperty(m,_,{configurable:!0,get:function(){return le.call(this)},set:function(tt){Q=""+tt,ve.call(this,tt)}}),Object.defineProperty(m,_,{enumerable:F.enumerable}),{getValue:function(){return Q},setValue:function(tt){Q=""+tt},stopTracking:function(){m._valueTracker=null,delete m[_]}}}}function nt(m){m._valueTracker||(m._valueTracker=Ue(m))}function _t(m){if(!m)return!1;var _=m._valueTracker;if(!_)return!0;var F=_.getValue(),Q="";return m&&(Q=Re(m)?m.checked?"true":"false":m.value),m=Q,m!==F?(_.setValue(m),!0):!1}function gt(m){if(m=m||(typeof document<"u"?document:void 0),typeof m>"u")return null;try{return m.activeElement||m.body}catch{return m.body}}function Kt(m,_){var F=_.checked;return Pe({},_,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:F??m._wrapperState.initialChecked})}function $t(m,_){var F=_.defaultValue==null?"":_.defaultValue,Q=_.checked!=null?_.checked:_.defaultChecked;F=Te(_.value!=null?_.value:F),m._wrapperState={initialChecked:Q,initialValue:F,controlled:_.type==="checkbox"||_.type==="radio"?_.checked!=null:_.value!=null}}function Rt(m,_){_=_.checked,_!=null&&ie(m,"checked",_,!1)}function _n(m,_){Rt(m,_);var F=Te(_.value),Q=_.type;if(F!=null)Q==="number"?(F===0&&m.value===""||m.value!=F)&&(m.value=""+F):m.value!==""+F&&(m.value=""+F);else if(Q==="submit"||Q==="reset"){m.removeAttribute("value");return}_.hasOwnProperty("value")?nn(m,_.type,F):_.hasOwnProperty("defaultValue")&&nn(m,_.type,Te(_.defaultValue)),_.checked==null&&_.defaultChecked!=null&&(m.defaultChecked=!!_.defaultChecked)}function pr(m,_,F){if(_.hasOwnProperty("value")||_.hasOwnProperty("defaultValue")){var Q=_.type;if(!(Q!=="submit"&&Q!=="reset"||_.value!==void 0&&_.value!==null))return;_=""+m._wrapperState.initialValue,F||_===m.value||(m.value=_),m.defaultValue=_}F=m.name,F!==""&&(m.name=""),m.defaultChecked=!!m._wrapperState.initialChecked,F!==""&&(m.name=F)}function nn(m,_,F){(_!=="number"||gt(m.ownerDocument)!==m)&&(F==null?m.defaultValue=""+m._wrapperState.initialValue:m.defaultValue!==""+F&&(m.defaultValue=""+F))}var Xn=Array.isArray;function Fn(m,_,F,Q){if(m=m.options,_){_={};for(var le=0;le<F.length;le++)_["$"+F[le]]=!0;for(F=0;F<m.length;F++)le=_.hasOwnProperty("$"+m[F].value),m[F].selected!==le&&(m[F].selected=le),le&&Q&&(m[F].defaultSelected=!0)}else{for(F=""+Te(F),_=null,le=0;le<m.length;le++){if(m[le].value===F){m[le].selected=!0,Q&&(m[le].defaultSelected=!0);return}_!==null||m[le].disabled||(_=m[le])}_!==null&&(_.selecte
Line truncated
|
||||
`).replace(Bd,"")}function bh(m,_,F){if(_=th(_),th(m)!==_&&F)throw Error(t(425))}function ps(){}var xu=null,Xs=null;function Wu(m,_){return m==="textarea"||m==="noscript"||typeof _.children=="string"||typeof _.children=="number"||typeof _.dangerouslySetInnerHTML=="object"&&_.dangerouslySetInnerHTML!==null&&_.dangerouslySetInnerHTML.__html!=null}var Wl=typeof setTimeout=="function"?setTimeout:void 0,ju=typeof clearTimeout=="function"?clearTimeout:void 0,Ml=typeof Promise=="function"?Promise:void 0,Mu=typeof queueMicrotask=="function"?queueMicrotask:typeof Ml<"u"?function(m){return Ml.resolve(null).then(m).catch(Ic)}:Wl;function Ic(m){setTimeout(function(){throw m})}function ed(m,_){var F=_,Q=0;do{var le=F.nextSibling;if(m.removeChild(F),le&&le.nodeType===8)if(F=le.data,F==="/$"){if(Q===0){m.removeChild(le),no(_);return}Q--}else F!=="$"&&F!=="$?"&&F!=="$!"||Q++;F=le}while(F);no(_)}function Ac(m){for(;m!=null;m=m.nextSibling){var _=m.nodeType;if(_===1||_===3)break;if(_===8){if(_=m.data,_==="$"||_==="$!"||_==="$?")break;if(_==="/$")return null}}return m}function Tc(m){m=m.previousSibling;for(var _=0;m;){if(m.nodeType===8){var F=m.data;if(F==="$"||F==="$!"||F==="$?"){if(_===0)return m;_--}else F==="/$"&&_++}m=m.previousSibling}return null}var IA=Math.random().toString(36).slice(2),wu="__reactFiber$"+IA,ml="__reactProps$"+IA,TA="__reactContainer$"+IA,Od="__reactEvents$"+IA,st="__reactListeners$"+IA,xh="__reactHandles$"+IA;function Js(m){var _=m[wu];if(_)return _;for(var F=m.parentNode;F;){if(_=F[TA]||F[wu]){if(F=_.alternate,_.child!==null||F!==null&&F.child!==null)for(m=Tc(m);m!==null;){if(F=m[wu])return F;m=Tc(m)}return _}m=F,F=m.parentNode}return null}function Po(m){return m=m[wu]||m[TA],!m||m.tag!==5&&m.tag!==6&&m.tag!==13&&m.tag!==3?null:m}function ri(m){if(m.tag===5||m.tag===6)return m.stateNode;throw Error(t(33))}function ms(m){return m[ml]||null}var Wa=[],ja=-1;function Os(m){return{current:m}}function Fs(m){0>ja||(m.current=Wa[ja],Wa[ja]=null,ja--)}function Ko(m,_){ja++,Wa[ja]=m.current,m.current=_}var wl={},il=Os(wl),Sl=Os(!1),El=wl;function nh(m,_){var F=m.type.contextTypes;if(!F)return wl;var Q=m.stateNode;if(Q&&Q.__reactInternalMemoizedUnmaskedChildContext===_)return Q.__reactInternalMemoizedMaskedChildContext;var le={},ve;for(ve in F)le[ve]=_[ve];return Q&&(m=m.stateNode,m.__reactInternalMemoizedUnmaskedChildContext=_,m.__reactInternalMemoizedMaskedChildContext=le),le}function Bl(m){return m=m.childContextTypes,m!=null}function kA(){Fs(Sl),Fs(il)}function Gu(m,_,F){if(il.current!==wl)throw Error(t(168));Ko(il,_),Ko(Sl,F)}function Mr(m,_,F){var Q=m.stateNode;if(_=_.childContextTypes,typeof Q.getChildContext!="function")return F;Q=Q.getChildContext();for(var le in Q)if(!(le in _))throw Error(t(108,kt(m)||"Unknown",le));return Pe({},F,Q)}function AA(m){return m=(m=m.stateNode)&&m.__reactInternalMemoizedMergedChildContext||wl,El=il.current,Ko(il,m),Ko(Sl,Sl.current),!0}function Id(m,_,F){var Q=m.stateNode;if(!Q)throw Error(t(169));F?(m=Mr(m,_,El),Q.__reactInternalMemoizedMergedChildContext=m,Fs(Sl),Fs(il),Ko(il,m)):Fs(Sl),Ko(Sl,F)}var Ol=null,rh=!1,Su=!1;function PA(m){Ol===null?Ol=[m]:Ol.push(m)}function Fi(m){rh=!0,PA(m)}function Qu(){if(!Su&&Ol!==null){Su=!0;var m=0,_=di;try{var F=Ol;for(di=1;m<F.length;m++){var Q=F[m];do Q=Q(!0);while(Q!==null)}Ol=null,rh=!1}catch(le){throw Ol!==null&&(Ol=Ol.slice(m+1)),sa(_l,Qu),le}finally{di=_,Su=!1}}return null}var ih=[],is=0,Bo=null,uA=0,Ga=[],ga=0,kc=null,iu=1,ou="";function oh(m,_){ih[is++]=uA,ih[is++]=Bo,Bo=m,uA=_}function uf(m,_,F){Ga[ga++]=iu,Ga[ga++]=ou,Ga[ga++]=kc,kc=m;var Q=iu;m=ou;var le=32-xn(Q)-1;Q&=~(1<<le),F+=1;var ve=32-xn(_)+le;if(30<ve){var tt=le-le%5;ve=(Q&(1<<tt)-1).toString(32),Q>>=tt,le-=tt,iu=1<<32-xn(_)+le|F<<le|Q,ou=ve+m}else iu=1<<ve|F<<le|Q,ou=m}function jl(m){m.return!==null&&(oh(m,1),uf(m,1,0))}function Qo(m){for(;m===Bo;)Bo=ih[--is],ih[is]=null,uA=ih[--is],ih[is]=null;for(;m===kc;)kc=Ga[--ga],Ga[ga]=null,ou=Ga[--ga],Ga[ga]=null,iu=Ga[--ga],Ga[ga]=null}var ya=null,la=null,ws=!1,Gl=null;function Yu(m,_){var F=Ma(5,null,null,0);F.elementType="DELETED",F.stateNode=_,F.return=m,_=m.deletions,_===null?(m.deletions=[F],m.flags|=16):_.push(F)}function Pc(m,_){switch(m.tag){case 5:var F=m.type;return _=_.nodeType!==1||F.toLowerCase()!==_.nodeName.toLowerCase()?null:_,_!==null?(m.stateNode=_,ya=m,la=Ac(_.firstChild),!0):!1;case 6:return _=m.pendingProps===""||_.nodeType!==3?null:_,_!==null?(m.stateNode=_,ya=m,la=null,!0):!1;case 13:return _=_.nodeType!==8?null:_,_!==null?(F=kc!==null?{id:iu,overflow:ou}:null,m.memoizedState={dehydrated:_,treeContext:F,retryLane:1073741824},F=Ma(18,null,null,0),F.stateNode=_,F.return=m,m.child=F,ya=m,la=null,!0):!1;default:return!1}}function Qa(m){return(m.mode&1)!==0&&(m.flags&128)===0}function gl(m){if(ws){var _=la;if(_){var F=_;if(!Pc(m,_)){if(Qa(m))throw Error(t(418));_=Ac(F.nextSibling);var Q=ya;_&&Pc(m,_)?Yu(Q,F):(m.flags=m.flags&-4097|2,ws=!1,ya=m)}}else{if(Qa(m))throw Error(t(418));m.flags=m.flags&-4097|
Line truncated
|
||||
Error generating stack: `+ve.message+`
|
||||
`+ve.stack}return{value:m,source:_,stack:le,digest:null}}function df(m,_,F){return{value:m,source:null,stack:F??null,digest:_??null}}function kd(m,_){try{console.error(_.value)}catch(F){setTimeout(function(){throw F})}}var kp=typeof WeakMap=="function"?WeakMap:Map;function Vu(m,_,F){F=uu(-1,F),F.tag=3,F.payload={element:null};var Q=_.value;return F.callback=function(){Hm||(Hm=!0,q0=Q),kd(m,_)},F}function Xf(m,_,F){F=uu(-1,F),F.tag=3;var Q=m.type.getDerivedStateFromError;if(typeof Q=="function"){var le=_.value;F.payload=function(){return Q(le)},F.callback=function(){kd(m,_)}}var ve=m.stateNode;return ve!==null&&typeof ve.componentDidCatch=="function"&&(F.callback=function(){kd(m,_),typeof Q!="function"&&(Rd===null?Rd=new Set([this]):Rd.add(this));var tt=_.stack;this.componentDidCatch(_.value,{componentStack:tt!==null?tt:""})}),F}function Eh(m,_,F){var Q=m.pingCache;if(Q===null){Q=m.pingCache=new kp;var le=new Set;Q.set(_,le)}else le=Q.get(_),le===void 0&&(le=new Set,Q.set(_,le));le.has(F)||(le.add(F),m=H0.bind(null,m,_,F),_.then(m,m))}function ff(m){do{var _;if((_=m.tag===13)&&(_=m.memoizedState,_=_!==null?_.dehydrated!==null:!0),_)return m;m=m.return}while(m!==null);return null}function Rc(m,_,F,Q,le){return(m.mode&1)===0?(m===_?m.flags|=65536:(m.flags|=128,F.flags|=131072,F.flags&=-52805,F.tag===1&&(F.alternate===null?F.tag=17:(_=uu(-1,1),_.tag=2,Il(F,_,1))),F.lanes|=1),m):(m.flags|=65536,m.lanes=le,m)}var pf=ne.ReactCurrentOwner,kl=!1;function fA(m,_,F,Q){_.child=m===null?Is(_,null,F,Q):ji(_,m.child,F,Q)}function Vm(m,_,F,Q,le){F=F.render;var ve=_.ref;return au(_,le),Q=ir(m,_,F,Q,ve,le),F=Vn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(ws&&F&&jl(_),_.flags|=1,fA(m,_,Q,le),_.child)}function Pp(m,_,F,Q,le){if(m===null){var ve=F.type;return typeof ve=="function"&&!Fp(ve)&&ve.defaultProps===void 0&&F.compare===null&&F.defaultProps===void 0?(_.tag=15,_.type=ve,qo(m,_,ve,Q,le)):(m=rp(F.type,null,Q,_,_.mode,le),m.ref=_.ref,m.return=_,_.child=m)}if(ve=m.child,(m.lanes&le)===0){var tt=ve.memoizedProps;if(F=F.compare,F=F!==null?F:Kr,F(tt,Q)&&m.ref===_.ref)return pA(m,_,le)}return _.flags|=1,m=NA(ve,Q),m.ref=_.ref,m.return=_,_.child=m}function qo(m,_,F,Q,le){if(m!==null){var ve=m.memoizedProps;if(Kr(ve,Q)&&m.ref===_.ref)if(kl=!1,_.pendingProps=Q=ve,(m.lanes&le)!==0)(m.flags&131072)!==0&&(kl=!0);else return _.lanes=m.lanes,pA(m,_,le)}return Bh(m,_,F,Q,le)}function Kp(m,_,F){var Q=_.pendingProps,le=Q.children,ve=m!==null?m.memoizedState:null;if(Q.mode==="hidden")if((_.mode&1)===0)_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ko(zA,gs),gs|=F;else{if((F&1073741824)===0)return m=ve!==null?ve.baseLanes|F:F,_.lanes=_.childLanes=1073741824,_.memoizedState={baseLanes:m,cachePool:null,transitions:null},_.updateQueue=null,Ko(zA,gs),gs|=m,null;_.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q=ve!==null?ve.baseLanes:F,Ko(zA,gs),gs|=Q}else ve!==null?(Q=ve.baseLanes|F,_.memoizedState=null):Q=F,Ko(zA,gs),gs|=Q;return fA(m,_,le,F),_.child}function Jf(m,_){var F=_.ref;(m===null&&F!==null||m!==null&&m.ref!==F)&&(_.flags|=512,_.flags|=2097152)}function Bh(m,_,F,Q,le){var ve=Bl(F)?El:il.current;return ve=nh(_,ve),au(_,le),F=ir(m,_,F,Q,ve,le),Q=Vn(),m!==null&&!kl?(_.updateQueue=m.updateQueue,_.flags&=-2053,m.lanes&=~le,pA(m,_,le)):(ws&&Q&&jl(_),_.flags|=1,fA(m,_,F,le),_.child)}function ku(m,_,F,Q,le){if(Bl(F)){var ve=!0;AA(_)}else ve=!1;if(au(_,le),_.stateNode===null)yf(m,_),rd(_,F,Q),Zf(_,F,Q,le),Q=!0;else if(m===null){var tt=_.stateNode,Ot=_.memoizedProps;tt.props=Ot;var jt=tt.context,Sn=F.contextType;typeof Sn=="object"&&Sn!==null?Sn=hA(Sn):(Sn=Bl(F)?El:il.current,Sn=nh(_,Sn));var or=F.getDerivedStateFromProps,ur=typeof or=="function"||typeof tt.getSnapshotBeforeUpdate=="function";ur||typeof tt.UNSAFE_componentWillReceiveProps!="function"&&typeof tt.componentWillReceiveProps!="function"||(Ot!==Q||jt!==Sn)&&hf(_,tt,Q,Sn),sl=!1;var tr=_.memoizedState;tt.state=tr,c(_,Q,tt,le),jt=_.memoizedState,Ot!==Q||tr!==jt||Sl.current||sl?(typeof or=="function"&&(lh(_,F,or,Q),jt=_.memoizedState),(Ot=sl||Td(_,F,Ot,Q,tr,jt,Sn))?(ur||typeof tt.UNSAFE_componentWillMount!="function"&&typeof tt.componentWillMount!="function"||(typeof tt.componentWillMount=="function"&&tt.componentWillMount(),typeof tt.UNSAFE_componentWillMount=="function"&&tt.UNSAFE_componentWillMount()),typeof tt.componentDidMount=="function"&&(_.flags|=4194308)):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),_.memoizedProps=Q,_.memoizedState=jt),tt.props=Q,tt.state=jt,tt.context=Sn,Q=Ot):(typeof tt.componentDidMount=="function"&&(_.flags|=4194308),Q=!1)}else{tt=_.stateNode,uc(m,_),Ot=_.memoizedProps,Sn=_.type===_.elementType?Ot:Tl(_.type,Ot),tt.props=Sn,ur=_.pendingProps,tr=tt.context,jt=F.contextType,typeof jt=="object"&&jt!==null?jt=hA(jt):(jt=Bl(F)?El:il.current,jt=nh(_,jt));var Ur=F.getDerivedStateFromProps;(or=typeof Ur=="function"||typeof tt.getSnapshotBeforeUpdate=="function")||typeof tt.UNSAFE_c
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var Y8;function yG(){return Y8||(Y8=1,function(n){const e=mG(),t=gG(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const Ye=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf(Ye,ce),Ye.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(Ye){if(Ye>i)throw new RangeError('The value "'+Ye+'" is invalid for option "size"');const ce=new Uint8Array(Ye);return Object.setPrototypeOf(ce,o.prototype),ce}function o(Ye,ce,pe){if(typeof Ye=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(Ye)}return f(Ye,ce,pe)}o.poolSize=8192;function f(Ye,ce,pe){if(typeof Ye=="string")return k(Ye,ce);if(ArrayBuffer.isView(Ye))return U(Ye);if(Ye==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ye);if(gn(Ye,ArrayBuffer)||Ye&&gn(Ye.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gn(Ye,SharedArrayBuffer)||Ye&&gn(Ye.buffer,SharedArrayBuffer)))return N(Ye,ce,pe);if(typeof Ye=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const nt=Ye.valueOf&&Ye.valueOf();if(nt!=null&&nt!==Ye)return o.from(nt,ce,pe);const wt=W(Ye);if(wt)return wt;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ye[Symbol.toPrimitive]=="function")return o.from(Ye[Symbol.toPrimitive]("string"),ce,pe);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ye)}o.from=function(Ye,ce,pe){return f(Ye,ce,pe)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function v(Ye){if(typeof Ye!="number")throw new TypeError('"size" argument must be of type number');if(Ye<0)throw new RangeError('The value "'+Ye+'" is invalid for option "size"')}function x(Ye,ce,pe){return v(Ye),Ye<=0?l(Ye):ce!==void 0?typeof pe=="string"?l(Ye).fill(ce,pe):l(Ye).fill(ce):l(Ye)}o.alloc=function(Ye,ce,pe){return x(Ye,ce,pe)};function B(Ye){return v(Ye),l(Ye<0?0:V(Ye)|0)}o.allocUnsafe=function(Ye){return B(Ye)},o.allocUnsafeSlow=function(Ye){return B(Ye)};function k(Ye,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!o.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const pe=oe(Ye,ce)|0;let nt=l(pe);const wt=nt.write(Ye,ce);return wt!==pe&&(nt=nt.slice(0,wt)),nt}function P(Ye){const ce=Ye.length<0?0:V(Ye.length)|0,pe=l(ce);for(let nt=0;nt<ce;nt+=1)pe[nt]=Ye[nt]&255;return pe}function U(Ye){if(gn(Ye,Uint8Array)){const ce=new Uint8Array(Ye);return N(ce.buffer,ce.byteOffset,ce.byteLength)}return P(Ye)}function N(Ye,ce,pe){if(ce<0||Ye.byteLength<ce)throw new RangeError('"offset" is outside of buffer bounds');if(Ye.byteLength<ce+(pe||0))throw new RangeError('"length" is outside of buffer bounds');let nt;return ce===void 0&&pe===void 0?nt=new Uint8Array(Ye):pe===void 0?nt=new Uint8Array(Ye,ce):nt=new Uint8Array(Ye,ce,pe),Object.setPrototypeOf(nt,o.prototype),nt}function W(Ye){if(o.isBuffer(Ye)){const ce=V(Ye.length)|0,pe=l(ce);return pe.length===0||Ye.copy(pe,0,0,ce),pe}if(Ye.length!==void 0)return typeof Ye.length!="number"||Ln(Ye.length)?l(0):P(Ye);if(Ye.type==="Buffer"&&Array.isArray(Ye.data))return P(Ye.data)}function V(Ye){if(Ye>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return Ye|0}function $(Ye){return+Ye!=Ye&&(Ye=0),o.alloc(+Ye)}o.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==o.prototype},o.compare=function(ce,pe){if(gn(ce,Uint8Array)&&(ce=o.from(ce,ce.offset,ce.byteLength)),gn(pe,Uint8Array)&&(pe=o.from(pe,pe.offset,pe.byteLength)),!o.isBuffer(ce)||!o.isBuffer(pe))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===pe)return 0;let nt=ce.length,wt=pe.length;for(let qt=0,Jt=Math.min(nt,wt);qt<Jt;++qt)if(ce[qt]!==pe[qt]){nt=ce[qt],wt=pe[qt];break}return nt<wt?-1:wt<nt?1:0},o.isEncoding=function(ce){switch(String(ce).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(ce,pe){if(!Array.isArray(ce))throw new TypeError('"list" argument must be an Array of BuLine truncated
|
||||
*/var J8;function BG(){return J8||(J8=1,function(n){const e=SG(),t=EG(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=$,n.INSPECT_MAX_BYTES=50;const i=2147483647;n.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const We=new Uint8Array(1),ce={foo:function(){return 42}};return Object.setPrototypeOf(ce,Uint8Array.prototype),Object.setPrototypeOf(We,ce),We.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function l(We){if(We>i)throw new RangeError('The value "'+We+'" is invalid for option "size"');const ce=new Uint8Array(We);return Object.setPrototypeOf(ce,o.prototype),ce}function o(We,ce,ye){if(typeof We=="number"){if(typeof ce=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return B(We)}return p(We,ce,ye)}o.poolSize=8192;function p(We,ce,ye){if(typeof We=="string")return k(We,ce);if(ArrayBuffer.isView(We))return D(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(an(We,ArrayBuffer)||We&&an(We.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(an(We,SharedArrayBuffer)||We&&an(We.buffer,SharedArrayBuffer)))return N(We,ce,ye);if(typeof We=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const rt=We.valueOf&&We.valueOf();if(rt!=null&&rt!==We)return o.from(rt,ce,ye);const Et=W(We);if(Et)return Et;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof We[Symbol.toPrimitive]=="function")return o.from(We[Symbol.toPrimitive]("string"),ce,ye);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof We)}o.from=function(We,ce,ye){return p(We,ce,ye)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function v(We){if(typeof We!="number")throw new TypeError('"size" argument must be of type number');if(We<0)throw new RangeError('The value "'+We+'" is invalid for option "size"')}function x(We,ce,ye){return v(We),We<=0?l(We):ce!==void 0?typeof ye=="string"?l(We).fill(ce,ye):l(We).fill(ce):l(We)}o.alloc=function(We,ce,ye){return x(We,ce,ye)};function B(We){return v(We),l(We<0?0:V(We)|0)}o.allocUnsafe=function(We){return B(We)},o.allocUnsafeSlow=function(We){return B(We)};function k(We,ce){if((typeof ce!="string"||ce==="")&&(ce="utf8"),!o.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce);const ye=ie(We,ce)|0;let rt=l(ye);const Et=rt.write(We,ce);return Et!==ye&&(rt=rt.slice(0,Et)),rt}function P(We){const ce=We.length<0?0:V(We.length)|0,ye=l(ce);for(let rt=0;rt<ce;rt+=1)ye[rt]=We[rt]&255;return ye}function D(We){if(an(We,Uint8Array)){const ce=new Uint8Array(We);return N(ce.buffer,ce.byteOffset,ce.byteLength)}return P(We)}function N(We,ce,ye){if(ce<0||We.byteLength<ce)throw new RangeError('"offset" is outside of buffer bounds');if(We.byteLength<ce+(ye||0))throw new RangeError('"length" is outside of buffer bounds');let rt;return ce===void 0&&ye===void 0?rt=new Uint8Array(We):ye===void 0?rt=new Uint8Array(We,ce):rt=new Uint8Array(We,ce,ye),Object.setPrototypeOf(rt,o.prototype),rt}function W(We){if(o.isBuffer(We)){const ce=V(We.length)|0,ye=l(ce);return ye.length===0||We.copy(ye,0,0,ce),ye}if(We.length!==void 0)return typeof We.length!="number"||Bn(We.length)?l(0):P(We);if(We.type==="Buffer"&&Array.isArray(We.data))return P(We.data)}function V(We){if(We>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return We|0}function $(We){return+We!=We&&(We=0),o.alloc(+We)}o.isBuffer=function(ce){return ce!=null&&ce._isBuffer===!0&&ce!==o.prototype},o.compare=function(ce,ye){if(an(ce,Uint8Array)&&(ce=o.from(ce,ce.offset,ce.byteLength)),an(ye,Uint8Array)&&(ye=o.from(ye,ye.offset,ye.byteLength)),!o.isBuffer(ce)||!o.isBuffer(ye))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(ce===ye)return 0;let rt=ce.length,Et=ye.length;for(let Ht=0,Zt=Math.min(rt,Et);Ht<Zt;++Ht)if(ce[Ht]!==ye[Ht]){rt=ce[Ht],Et=ye[Ht];break}return rt<Et?-1:Et<rt?1:0},o.isEncoding=function(ce){switch(String(ce).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(ce,ye){if(!Array.isArray(ce))throw new TypeError('"list" argument must be an Array of BuLine truncated
|
||||
* @license
|
||||
* Lodash <https://lodash.com/>
|
||||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||
* Released under MIT license <https://lodash.com/license>
|
||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||
*/var MG=xv.exports,V8;function wG(){return V8||(V8=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,x="__lodash_placeholder__",B=1,k=2,P=4,U=1,N=2,W=1,V=2,$=4,oe=8,te=16,q=32,ne=64,G=128,ie=256,de=512,fe=30,Ee="...",me=800,Me=16,Le=1,xe=2,pt=3,Je=1/0,Ve=9007199254740991,je=17976931348623157e292,Se=NaN,Fe=4294967295,Ze=Fe-1,_t=Fe>>>1,Qt=[["ary",G],["bind",W],["bindKey",V],["curry",oe],["curryRight",te],["flip",de],["partial",q],["partialRight",ne],["rearg",ie]],gt="[object Arguments]",Ut="[object Array]",Pt="[object AsyncFunction]",ze="[object Boolean]",Ke="[object Date]",Oe="[object DOMException]",it="[object Error]",Ct="[object Function]",dt="[object GeneratorFunction]",Dt="[object Map]",$t="[object Number]",Rt="[object Null]",bn="[object Object]",Yn="[object Promise]",rn="[object Proxy]",er="[object RegExp]",Tn="[object Set]",gn="[object String]",Ln="[object Symbol]",br="[object Undefined]",mr="[object WeakMap]",tr="[object WeakSet]",Ye="[object ArrayBuffer]",ce="[object DataView]",pe="[object Float32Array]",nt="[object Float64Array]",wt="[object Int8Array]",qt="[object Int16Array]",Jt="[object Int32Array]",$n="[object Uint8Array]",Xe="[object Uint8ClampedArray]",ae="[object Uint16Array]",ve="[object Uint32Array]",p=/\b__p \+= '';/g,We=/\b(__p \+=) '' \+/g,Be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,rt=/&(?:amp|lt|gt|quot|#39);/g,ut=/[&<>"']/g,ot=RegExp(rt.source),zt=RegExp(ut.source),Gt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Xt=RegExp(Tr.source),_r=/^\s+/,Gr=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fr=/\{\n\/\* \[wrapped with (.+)\] \*/,yn=/,? & /,Ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pr=/[()=,{}\[\]\/\s]/,vs=/\\(\\)?/g,Ao=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,Cs=/^0b[01]+$/i,ds=/^\[object .+?Constructor\]$/,Xa=/^0o[0-7]+$/i,sa=/^(?:0|[1-9]\d*)$/,Wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Uo=/($^)/,So=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",tA="\\u0300-\\u036f",_l="\\ufe20-\\ufe2f",Ni="\\u20d0-\\u20ff",Mr=tA+_l+Ni,Da="\\u2700-\\u27bf",_s="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",qe="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",xn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",qn="A-Z\\xc0-\\xd6\\xd8-\\xde",dn="\\ufe0e\\ufe0f",dr=Rs+qe+xt+xn,Wi="['’]",Co="["+pi+"]",as="["+dr+"]",fa="["+Mr+"]",nA="\\d+",Ci="["+Da+"]",$A="["+_s+"]",rA="[^"+pi+dr+nA+Da+_s+qn+"]",pa="\\ud83c[\\udffb-\\udfff]",Ea="(?:"+fa+"|"+pa+")",_c="[^"+pi+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",di="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+qn+"]",Ii="\\u200d",bl="(?:"+$A+"|"+rA+")",$o="(?:"+jr+"|"+rA+")",aa="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",js="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",jo=Ea+"?",iA="["+dn+"]?",ts="(?:"+Ii+"(?:"+[_c,Ws,di].join("|")+")"+iA+jo+")*",Qi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Fa=iA+jo+ts,Ba="(?:"+[Ci,Ws,di].join("|")+")"+Fa,uo="(?:"+[_c+fa+"?",fa,Ws,di,Co].join("|")+")",Gs=RegExp(Wi,"g"),oA=RegExp(fa,"g"),Ja=RegExp(pa+"(?="+pa+")|"+uo+Fa,"g"),Oa=RegExp([jr+"?"+$A+"+"+aa+"(?="+[as,jr,"$"].join("|")+")",$o+"+"+js+"(?="+[as,jr+bl,"$"].join("|")+")",jr+"?"+bl+"+"+aa,jr+"+"+js,_o,Qi,nA,Ba].join("|"),"g"),MA=RegExp("["+Ii+pi+Mr+dn+"]"),wi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ZA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eo=-1,Sr={};Sr[pe]=Sr[nt]=Sr[wt]=Sr[qt]=Sr[Jt]=Sr[$n]=Sr[Xe]=Sr[ae]=Sr[ve]=!0,Sr[gt]=Sr[Ut]=Sr[Ye]=Sr[ze]=Sr[ce]=Sr[Ke]=Sr[it]=Sr[Ct]=Sr[Dt]=Sr[$t]=Sr[bn]=Sr[er]=Sr[Tn]=Sr[gn]=Sr[mr]=!1;var no={};no[gt]=no[Ut]=no[Ye]=no[ce]=no[ze]=no[Ke]=no[pe]=no[nt]=no[wt]=no[qt]=no[Jt]=no[Dt]=no[$t]=no[bn]=no[er]=no[Tn]=no[gn]=no[Ln]=no[$n]=no[Xe]=no[ae]=no[ve]=!0,no[it]=no[Ct]=no[mr]=!1;var J={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
|
||||
*/var KG=Sv.exports,t7;function RG(){return t7||(t7=1,function(n,e){(function(){var t,r="4.17.21",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",o="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",v=500,x="__lodash_placeholder__",B=1,k=2,P=4,D=1,N=2,W=1,V=2,$=4,ie=8,ne=16,q=32,te=64,G=128,oe=256,fe=512,he=30,Me="...",me=800,pe=16,qe=1,Se=2,vt=3,Je=1/0,Ke=9007199254740991,je=17976931348623157e292,Pe=NaN,Le=4294967295,Xe=Le-1,Ct=Le>>>1,Gt=[["ary",G],["bind",W],["bindKey",V],["curry",ie],["curryRight",ne],["flip",fe],["partial",q],["partialRight",te],["rearg",oe]],mt="[object Arguments]",Ut="[object Array]",kt="[object AsyncFunction]",Te="[object Boolean]",Re="[object Date]",Ue="[object DOMException]",nt="[object Error]",_t="[object Function]",gt="[object GeneratorFunction]",Kt="[object Map]",$t="[object Number]",Rt="[object Null]",_n="[object Object]",pr="[object Promise]",nn="[object Proxy]",Xn="[object RegExp]",Fn="[object Set]",an="[object String]",Bn="[object Symbol]",Cr="[object Undefined]",lr="[object WeakMap]",hr="[object WeakSet]",We="[object ArrayBuffer]",ce="[object DataView]",ye="[object Float32Array]",rt="[object Float64Array]",Et="[object Int8Array]",Ht="[object Int16Array]",Zt="[object Int32Array]",Jn="[object Uint8Array]",He="[object Uint8ClampedArray]",ae="[object Uint16Array]",_e="[object Uint32Array]",f=/\b__p \+= '';/g,Qe=/\b(__p \+=) '' \+/g,Ee=/(__e\(.*?\)|\b__t\)) \+\n'';/g,it=/&(?:amp|lt|gt|quot|#39);/g,ut=/[&<>"']/g,at=RegExp(it.source),zt=RegExp(ut.source),Qt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,rn=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Dn=/^\w*$/,mr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tr=/[\\^$.*+?()[\]{}|]/g,Jt=RegExp(Tr.source),br=/^\s+/,Gr=/\s/,Si=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fr=/\{\n\/\* \[wrapped with (.+)\] \*/,yn=/,? & /,ar=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pr=/[()=,{}\[\]\/\s]/,Cs=/\\(\\)?/g,Ao=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ui=/\w*$/,$r=/^[-+]0x[0-9a-f]+$/i,_s=/^0b[01]+$/i,fs=/^\[object .+?Constructor\]$/,Ja=/^0o[0-7]+$/i,sa=/^(?:0|[1-9]\d*)$/,Wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zo=/($^)/,So=/['\n\r\u2028\u2029\\]/g,pi="\\ud800-\\udfff",tA="\\u0300-\\u036f",_l="\\ufe20-\\ufe2f",Ni="\\u20d0-\\u20ff",wr=tA+_l+Ni,Fa="\\u2700-\\u27bf",bs="a-z\\xdf-\\xf6\\xf8-\\xff",Rs="\\xac\\xb1\\xd7\\xf7",Ve="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",xt="\\u2000-\\u206f",xn=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Yn="A-Z\\xc0-\\xd6\\xd8-\\xde",fn="\\ufe0e\\ufe0f",dr=Rs+Ve+xt+xn,Wi="['’]",Co="["+pi+"]",ls="["+dr+"]",pa="["+wr+"]",nA="\\d+",Ci="["+Fa+"]",ZA="["+bs+"]",rA="[^"+pi+dr+nA+Fa+bs+Yn+"]",ma="\\ud83c[\\udffb-\\udfff]",Ea="(?:"+pa+"|"+ma+")",_c="[^"+pi+"]",Ws="(?:\\ud83c[\\udde6-\\uddff]){2}",di="[\\ud800-\\udbff][\\udc00-\\udfff]",jr="["+Yn+"]",Ii="\\u200d",bl="(?:"+ZA+"|"+rA+")",$o="(?:"+jr+"|"+rA+")",aa="(?:"+Wi+"(?:d|ll|m|re|s|t|ve))?",js="(?:"+Wi+"(?:D|LL|M|RE|S|T|VE))?",jo=Ea+"?",iA="["+fn+"]?",ns="(?:"+Ii+"(?:"+[_c,Ws,di].join("|")+")"+iA+jo+")*",Qi="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",_o="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",La=iA+jo+ns,Ba="(?:"+[Ci,Ws,di].join("|")+")"+La,uo="(?:"+[_c+pa+"?",pa,Ws,di,Co].join("|")+")",Gs=RegExp(Wi,"g"),oA=RegExp(pa,"g"),el=RegExp(ma+"(?="+ma+")|"+uo+La,"g"),Oa=RegExp([jr+"?"+ZA+"+"+aa+"(?="+[ls,jr,"$"].join("|")+")",$o+"+"+js+"(?="+[ls,jr+bl,"$"].join("|")+")",jr+"?"+bl+"+"+aa,jr+"+"+js,_o,Qi,nA,Ba].join("|"),"g"),wA=RegExp("["+Ii+pi+wr+fn+"]"),wi=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,XA=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eo=-1,Sr={};Sr[ye]=Sr[rt]=Sr[Et]=Sr[Ht]=Sr[Zt]=Sr[Jn]=Sr[He]=Sr[ae]=Sr[_e]=!0,Sr[mt]=Sr[Ut]=Sr[We]=Sr[Te]=Sr[ce]=Sr[Re]=Sr[nt]=Sr[_t]=Sr[Kt]=Sr[$t]=Sr[_n]=Sr[Xn]=Sr[Fn]=Sr[an]=Sr[lr]=!1;var no={};no[mt]=no[Ut]=no[We]=no[ce]=no[Te]=no[Re]=no[ye]=no[rt]=no[Et]=no[Ht]=no[Zt]=no[Kt]=no[$t]=no[_n]=no[Xn]=no[Fn]=no[an]=no[Bn]=no[Jn]=no[He]=no[ae]=no[_e]=!0,no[nt]=no[_t]=no[lr]=!1;var J={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",Line truncated
|
||||
/* [wrapped with `+T+`] */
|
||||
`)}function g(b){return xo(b)||Dp(b)||!!(Zh&&b&&b[Zh])}function E(b,T){var H=typeof b;return T=T??Ve,!!T&&(H=="number"||H!="symbol"&&sa.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,H){if(!yl(H))return!1;var Ce=typeof T;return(Ce=="number"?Lc(H)&&E(T,H.length):Ce=="string"&&T in H)?mc(H[T],b):!1}function K(b,T){if(xo(b))return!1;var H=typeof b;return H=="number"||H=="symbol"||H=="boolean"||b==null||Ah(b)?!0:Dn.test(b)||!Rn.test(b)||T!=null&&b in As(T)}function Z(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ue(b){var T=sd(b),H=at[T];if(typeof H!="function"||!(T in ri.prototype))return!1;if(b===H)return!0;var Ce=df(H);return!!Ce&&b===Ce[0]}function _e(b){return!!vh&&vh in b}var Pe=BA?Kh:y3;function Ne(b){var T=b&&b.constructor,H=typeof T=="function"&&T.prototype||tl;return b===H}function mt(b){return b===b&&!yl(b)}function Mt(b,T){return function(H){return H==null?!1:H[b]===T&&(T!==t||b in As(H))}}function tn(b){var T=fn(b,function(Ce){return H.size===v&&H.clear(),Ce}),H=T.cache;return T}function Yt(b,T){var H=b[1],Ce=T[1],He=H|Ce,ht=He<(W|V|G),Kt=Ce==G&&H==oe||Ce==G&&H==ie&&b[7].length<=T[8]||Ce==(G|ie)&&T[7].length<=T[8]&&H==oe;if(!(ht||Kt))return b;Ce&W&&(b[2]=T[2],He|=H&W?0:$);var Ht=T[3];if(Ht){var ln=b[3];b[3]=ln?hc(ln,Ht,T[4]):Ht,b[4]=ln?za(b[3],x):T[4]}return Ht=T[5],Ht&&(ln=b[5],b[5]=ln?lf(ln,Ht,T[6]):Ht,b[6]=ln?za(b[5],x):T[6]),Ht=T[7],Ht&&(b[7]=Ht),Ce&G&&(b[8]=b[8]==null?T[8]:Qs(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=He,b}function wn(b){var T=[];if(b!=null)for(var H in As(b))T.push(H);return T}function Fn(b){return JA.call(b)}function Zn(b,T,H){return T=xs(T===t?b.length-1:T,0),function(){for(var Ce=arguments,He=-1,ht=xs(Ce.length-T,0),Kt=An(ht);++He<ht;)Kt[He]=Ce[T+He];He=-1;for(var Ht=An(T+1);++He<T;)Ht[He]=Ce[He];return Ht[T]=H(Kt),ls(b,this,Ht)}}function Xn(b,T){return T.length<2?b:ou(b,Vr(T,0,-1))}function gr(b,T){for(var H=b.length,Ce=Qs(T.length,H),He=$l(b);Ce--;){var ht=T[Ce];b[Ce]=E(ht,H)?He[ht]:t}return b}function ur(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Rr=Oo(Hn),ii=Ec||function(b,T){return Or.setTimeout(b,T)},kr=Oo(kn);function ro(b,T,H){var Ce=T+"";return kr(b,u(Ce,Qa(Ta(Ce),H)))}function Oo(b){var T=0,H=0;return function(){var Ce=Sd(),He=Me-(Ce-H);if(H=Ce,He>0){if(++T>=me)return arguments[0]}else T=0;return b.apply(t,arguments)}}function ra(b,T){var H=-1,Ce=b.length,He=Ce-1;for(T=T===t?Ce:T;++H<T;){var ht=Lt(H,He),Kt=b[ht];b[ht]=b[H],b[H]=Kt}return b.length=T,b}var Ls=tn(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(pr,function(H,Ce,He,ht){T.push(He?ht.replace(vs,"$1"):Ce||H)}),T});function Aa(b){if(typeof b=="string"||Ah(b))return b;var T=b+"";return T=="0"&&1/b==-1/0?"-0":T}function ka(b){if(b!=null){try{return Zc.call(b)}catch{}try{return b+""}catch{}}return""}function Qa(b,T){return dl(Qt,function(H){var Ce="_."+H[0];T&H[1]&&!SA(b,Ce)&&b.push(Ce)}),b.sort()}function LA(b){if(b instanceof ri)return b.clone();var T=new Po(b.__wrapped__,b.__chain__);return T.__actions__=$l(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function al(b,T,H){(H?S(b,T,H):T===t)?T=1:T=xs(To(T),0);var Ce=b==null?0:b.length;if(!Ce||T<1)return[];for(var He=0,ht=0,Kt=An(Bc(Ce/T));He<Ce;)Kt[ht++]=Vr(b,He,He+=T);return Kt}function Ya(b){for(var T=-1,H=b==null?0:b.length,Ce=0,He=[];++T<H;){var ht=b[T];ht&&(He[Ce++]=ht)}return He}function us(){var b=arguments.length;if(!b)return[];for(var T=An(b-1),H=arguments[0],Ce=b;Ce--;)T[Ce-1]=arguments[Ce];return yu(xo(H)?$l(H):[H],ji(T,1))}var bi=on(function(b,T){return vA(b)?Eu(b,ji(T,1,vA,!0)):[]}),os=on(function(b,T){var H=Vu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),Pi(H,2)):[]}),Vs=on(function(b,T){var H=Vu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),t,H):[]});function ua(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),Vr(b,T<0?0:T,Ce)):[]}function ms(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),T=Ce-T,Vr(b,0,T<0?0:T)):[]}function UA(b,T){return b&&b.length?Ca(b,Pi(T,3),!0,!0):[]}function Io(b,T){return b&&b.length?Ca(b,Pi(T,3),!0):[]}function lh(b,T,H,Ce){var He=b==null?0:b.length;return He?(H&&typeof H!="number"&&S(b,T,H)&&(H=0,Ce=He),oh(b,T,H,Ce)):[]}function gA(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=H==null?0:To(H);return He<0&&(He=xs(Ce+He,0)),bc(b,Pi(T,3),He)}function dc(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=Ce-1;return H!==t&&(He=To(H),He=H<0?xs(Ce+He,0):Qs(He,Ce-1)),bc(b,Pi(T,3),He,!0)}function Fc(b){var T=b==null?0:b.length;return T?ji(b,1):[]}function ba(b){var T=b==null?0:b.length;return T?ji(b,Je):[]}function Pl(b,T){var H=b==null?0:b.length;return H?(T=T===t?1:To(T),ji(b,T)):[]}function kd(b){for(var T=-1,H=b==null?0:b.length,Ce={};++T<H;){var He=b[T];Ce[He[0]]=He[1]}return Ce}function Oh(b){return b&&b.length?b[0]:t}function Ih(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var He=H==null?0:To(H);return He<0&&(
Line truncated
|
||||
`;b.replace(Yr,function(oo,ys,Is,Wd,Fh,jd){return Is||(Is=Wd),fr+=b.slice(Qn,jd).replace(So,Mc),ys&&(Ht=!0,fr+=`' +
|
||||
__e(`+ys+`) +
|
||||
'`),Fh&&(ln=!0,fr+=`';
|
||||
`+Fh+`;
|
||||
__p += '`),Is&&(fr+=`' +
|
||||
((__t = (`+Is+`)) == null ? '' : __t) +
|
||||
'`),Qn=jd+oo.length,oo}),fr+=`';
|
||||
`)}function g(b){return xo(b)||zp(b)||!!(Jh&&b&&b[Jh])}function E(b,T){var H=typeof b;return T=T??Ke,!!T&&(H=="number"||H!="symbol"&&sa.test(b))&&b>-1&&b%1==0&&b<T}function S(b,T,H){if(!vl(H))return!1;var Ce=typeof T;return(Ce=="number"?Lc(H)&&E(T,H.length):Ce=="string"&&T in H)?mc(H[T],b):!1}function K(b,T){if(xo(b))return!1;var H=typeof b;return H=="number"||H=="symbol"||H=="boolean"||b==null||uh(b)?!0:Dn.test(b)||!Rn.test(b)||T!=null&&b in us(T)}function Z(b){var T=typeof b;return T=="string"||T=="number"||T=="symbol"||T=="boolean"?b!=="__proto__":b===null}function ue(b){var T=ld(b),H=st[T];if(typeof H!="function"||!(T in ri.prototype))return!1;if(b===H)return!0;var Ce=mf(H);return!!Ce&&b===Ce[0]}function be(b){return!!Ch&&Ch in b}var ke=OA?Rh:w3;function Ne(b){var T=b&&b.constructor,H=typeof T=="function"&&T.prototype||nl;return b===H}function ft(b){return b===b&&!vl(b)}function Mt(b,T){return function(H){return H==null?!1:H[b]===T&&(T!==t||b in us(H))}}function tn(b){var T=pn(b,function(Ce){return H.size===v&&H.clear(),Ce}),H=T.cache;return T}function Yt(b,T){var H=b[1],Ce=T[1],$e=H|Ce,ht=$e<(W|V|G),Dt=Ce==G&&H==ie||Ce==G&&H==oe&&b[7].length<=T[8]||Ce==(G|oe)&&T[7].length<=T[8]&&H==ie;if(!(ht||Dt))return b;Ce&W&&(b[2]=T[2],$e|=H&W?0:$);var Vt=T[3];if(Vt){var An=b[3];b[3]=An?hc(An,Vt,T[4]):Vt,b[4]=An?Na(b[3],x):T[4]}return Vt=T[5],Vt&&(An=b[5],b[5]=An?cf(An,Vt,T[6]):Vt,b[6]=An?Na(b[5],x):T[6]),Vt=T[7],Vt&&(b[7]=Vt),Ce&G&&(b[8]=b[8]==null?T[8]:Qs(b[8],T[8])),b[9]==null&&(b[9]=T[9]),b[0]=T[0],b[1]=$e,b}function wn(b){var T=[];if(b!=null)for(var H in us(b))T.push(H);return T}function Ln(b){return eu.call(b)}function Hn(b,T,H){return T=Ms(T===t?b.length-1:T,0),function(){for(var Ce=arguments,$e=-1,ht=Ms(Ce.length-T,0),Dt=un(ht);++$e<ht;)Dt[$e]=Ce[T+$e];$e=-1;for(var Vt=un(T+1);++$e<T;)Vt[$e]=Ce[$e];return Vt[T]=H(Dt),As(b,this,Vt)}}function $n(b,T){return T.length<2?b:su(b,Vr(T,0,-1))}function gr(b,T){for(var H=b.length,Ce=Qs(T.length,H),$e=$l(b);Ce--;){var ht=T[Ce];b[Ce]=E(ht,H)?$e[ht]:t}return b}function Ar(b,T){if(!(T==="constructor"&&typeof b[T]=="function")&&T!="__proto__")return b[T]}var Rr=Oo(Vn),ii=Ec||function(b,T){return Or.setTimeout(b,T)},kr=Oo(kn);function ro(b,T,H){var Ce=T+"";return kr(b,u(Ce,Ya(Ta(Ce),H)))}function Oo(b){var T=0,H=0;return function(){var Ce=Bd(),$e=pe-(Ce-H);if(H=Ce,$e>0){if(++T>=me)return arguments[0]}else T=0;return b.apply(t,arguments)}}function ra(b,T){var H=-1,Ce=b.length,$e=Ce-1;for(T=T===t?Ce:T;++H<T;){var ht=Lt(H,$e),Dt=b[ht];b[ht]=b[H],b[H]=Dt}return b.length=T,b}var Ls=tn(function(b){var T=[];return b.charCodeAt(0)===46&&T.push(""),b.replace(mr,function(H,Ce,$e,ht){T.push($e?ht.replace(Cs,"$1"):Ce||H)}),T});function Aa(b){if(typeof b=="string"||uh(b))return b;var T=b+"";return T=="0"&&1/b==-1/0?"-0":T}function ka(b){if(b!=null){try{return Xc.call(b)}catch{}try{return b+""}catch{}}return""}function Ya(b,T){return fl(Gt,function(H){var Ce="_."+H[0];T&H[1]&&!EA(b,Ce)&&b.push(Ce)}),b.sort()}function UA(b){if(b instanceof ri)return b.clone();var T=new Po(b.__wrapped__,b.__chain__);return T.__actions__=$l(b.__actions__),T.__index__=b.__index__,T.__values__=b.__values__,T}function ll(b,T,H){(H?S(b,T,H):T===t)?T=1:T=Ms(To(T),0);var Ce=b==null?0:b.length;if(!Ce||T<1)return[];for(var $e=0,ht=0,Dt=un(Bc(Ce/T));$e<Ce;)Dt[ht++]=Vr(b,$e,$e+=T);return Dt}function qa(b){for(var T=-1,H=b==null?0:b.length,Ce=0,$e=[];++T<H;){var ht=b[T];ht&&($e[Ce++]=ht)}return $e}function cs(){var b=arguments.length;if(!b)return[];for(var T=un(b-1),H=arguments[0],Ce=b;Ce--;)T[Ce-1]=arguments[Ce];return yu(xo(H)?$l(H):[H],ji(T,1))}var bi=on(function(b,T){return vA(b)?Eu(b,ji(T,1,vA,!0)):[]}),ss=on(function(b,T){var H=Hu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),Pi(H,2)):[]}),Vs=on(function(b,T){var H=Hu(T);return vA(H)&&(H=t),vA(b)?Eu(b,ji(T,1,vA,!0),t,H):[]});function ua(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),Vr(b,T<0?0:T,Ce)):[]}function gs(b,T,H){var Ce=b==null?0:b.length;return Ce?(T=H||T===t?1:To(T),T=Ce-T,Vr(b,0,T<0?0:T)):[]}function zA(b,T){return b&&b.length?_a(b,Pi(T,3),!0,!0):[]}function Io(b,T){return b&&b.length?_a(b,Pi(T,3),!0):[]}function Ah(b,T,H,Ce){var $e=b==null?0:b.length;return $e?(H&&typeof H!="number"&&S(b,T,H)&&(H=0,Ce=$e),sh(b,T,H,Ce)):[]}function gA(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var $e=H==null?0:To(H);return $e<0&&($e=Ms(Ce+$e,0)),bc(b,Pi(T,3),$e)}function dc(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var $e=Ce-1;return H!==t&&($e=To(H),$e=H<0?Ms(Ce+$e,0):Qs($e,Ce-1)),bc(b,Pi(T,3),$e,!0)}function Fc(b){var T=b==null?0:b.length;return T?ji(b,1):[]}function xa(b){var T=b==null?0:b.length;return T?ji(b,Je):[]}function Pl(b,T){var H=b==null?0:b.length;return H?(T=T===t?1:To(T),ji(b,T)):[]}function Kd(b){for(var T=-1,H=b==null?0:b.length,Ce={};++T<H;){var $e=b[T];Ce[$e[0]]=$e[1]}return Ce}function Ih(b){return b&&b.length?b[0]:t}function Th(b,T,H){var Ce=b==null?0:b.length;if(!Ce)return-1;var $e=H==null?0:To(H);return $e<0&&(
Line truncated
|
||||
`;b.replace(Yr,function(oo,vs,Ts,Gd,Lh,Qd){return Ts||(Ts=Gd),fr+=b.slice(Qn,Qd).replace(So,Mc),vs&&(Vt=!0,fr+=`' +
|
||||
__e(`+vs+`) +
|
||||
'`),Lh&&(An=!0,fr+=`';
|
||||
`+Lh+`;
|
||||
__p += '`),Ts&&(fr+=`' +
|
||||
((__t = (`+Ts+`)) == null ? '' : __t) +
|
||||
'`),Qn=Qd+oo.length,oo}),fr+=`';
|
||||
`;var io=mo.call(T,"variable")&&T.variable;if(!io)fr=`with (obj) {
|
||||
`+fr+`
|
||||
}
|
||||
`;else if(Pr.test(io))throw new Ei(o);fr=(ln?fr.replace(p,""):fr).replace(We,"$1").replace(Be,"$1;"),fr="function("+(io||"obj")+`) {
|
||||
`;else if(Pr.test(io))throw new Ei(o);fr=(An?fr.replace(f,""):fr).replace(Qe,"$1").replace(Ee,"$1;"),fr="function("+(io||"obj")+`) {
|
||||
`+(io?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(Ht?", __e = _.escape":"")+(ln?`, __j = Array.prototype.join;
|
||||
`)+"var __t, __p = ''"+(Vt?", __e = _.escape":"")+(An?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+fr+`return __p
|
||||
}`;var Jo=B_(function(){return po(ht,ki+"return "+fr).apply(t,Kt)});if(Jo.source=fr,Xy(Jo))throw Jo;return Jo}function b_(b){return Us(b).toLowerCase()}function x_(b){return Us(b).toUpperCase()}function M_(b,T,H){if(b=Us(b),b&&(H||T===t))return tf(b);if(!b||!(T=to(T)))return b;var Ce=aA(b),He=aA(T),ht=EA(Ce,He),Kt=Vh(Ce,He)+1;return Vl(Ce,ht,Kt).join("")}function w_(b,T,H){if(b=Us(b),b&&(H||T===t))return b.slice(0,bd(b)+1);if(!b||!(T=to(T)))return b;var Ce=aA(b),He=Vh(Ce,aA(T))+1;return Vl(Ce,0,He).join("")}function iv(b,T,H){if(b=Us(b),b&&(H||T===t))return b.replace(_r,"");if(!b||!(T=to(T)))return b;var Ce=aA(b),He=EA(Ce,aA(T));return Vl(Ce,He).join("")}function ov(b,T){var H=fe,Ce=Ee;if(yl(T)){var He="separator"in T?T.separator:He;H="length"in T?To(T.length):H,Ce="omission"in T?to(T.omission):Ce}b=Us(b);var ht=b.length;if(Vc(b)){var Kt=aA(b);ht=Kt.length}if(H>=ht)return b;var Ht=H-Zi(Ce);if(Ht<1)return Ce;var ln=Kt?Vl(Kt,0,Ht).join(""):b.slice(0,Ht);if(He===t)return ln+Ce;if(Kt&&(Ht+=ln.length-Ht),i1(He)){if(b.slice(Ht).search(He)){var Qn,Vn=ln;for(He.global||(He=$c(He.source,Us(ui.exec(He))+"g")),He.lastIndex=0;Qn=He.exec(Vn);)var fr=Qn.index;ln=ln.slice(0,fr===t?Ht:fr)}}else if(b.indexOf(to(He),Ht)!=Ht){var Yr=ln.lastIndexOf(He);Yr>-1&&(ln=ln.slice(0,Yr))}return ln+Ce}function rp(b){return b=Us(b),b&&ot.test(b)?b.replace(rt,Gf):b}var S_=td(function(b,T,H){return b+(H?" ":"")+T.toUpperCase()}),l1=Od("toUpperCase");function E_(b,T,H){return b=Us(b),T=H?t:T,T===t?_d(b)?Yf(b):qc(b):b.match(T)||[]}var B_=on(function(b,T){try{return ls(b,t,T)}catch(H){return Xy(H)?H:new Ei(H)}}),A3=Ia(function(b,T){return dl(T,function(H){H=Aa(H),Qu(b,H,cr(b[H],b))}),b});function u3(b){var T=b==null?0:b.length,H=Pi();return b=T?ns(b,function(Ce){if(typeof Ce[1]!="function")throw new fl(l);return[H(Ce[0]),Ce[1]]}):[],on(function(Ce){for(var He=-1;++He<T;){var ht=b[He];if(ls(ht[0],this,Ce))return ls(ht[1],this,Ce)}})}function c3(b){return Qr(ml(b,B))}function sv(b){return function(){return b}}function h3(b,T){return b==null||b!==b?T:b}var d3=uf(),Nd=uf(!0);function Zu(b){return b}function A1(b){return Y(typeof b=="function"?b:ml(b,B))}function f3(b){return ke(ml(b,B))}function p3(b,T){return Ge(b,ml(T,B))}var m3=on(function(b,T){return function(H){return ol(H,b,T)}}),Xu=on(function(b,T){return function(H){return ol(b,H,T)}});function jc(b,T,H){var Ce=Re(T),He=PA(T,Ce);H==null&&!(yl(T)&&(He.length||!Ce.length))&&(H=T,T=b,b=this,He=PA(T,Re(T)));var ht=!(yl(H)&&"chain"in H)||!!H.chain,Kt=Kh(b);return dl(He,function(Ht){var ln=T[Ht];b[Ht]=ln,Kt&&(b.prototype[Ht]=function(){var Qn=this.__chain__;if(ht||Qn){var Vn=b(this.__wrapped__),fr=Vn.__actions__=$l(this.__actions__);return fr.push({func:ln,args:arguments,thisArg:b}),Vn.__chain__=Qn,Vn}return ln.apply(b,yu([this.value()],arguments))})}),b}function Sm(){return Or._===this&&(Or._=nl),this}function Dh(){}function Em(b){return b=To(b),on(function(T){return ct(T,b)})}var bf=$f(ns),AW=$f(ph),uW=$f(sA);function i8(b){return K(b)?ef(Aa(b)):St(b)}function cW(b){return function(T){return b==null?t:ou(b,T)}}var hW=Rc(),dW=Rc(!0);function g3(){return[]}function y3(){return!1}function fW(){return{}}function pW(){return""}function mW(){return!0}function gW(b,T){if(b=To(b),b<1||b>Ve)return[];var H=Fe,Ce=Qs(b,Fe);T=Pi(T),b-=Fe;for(var He=Cd(Ce,T);++H<b;)T(H);return He}function yW(b){return xo(b)?ns(b,Aa):Ah(b)?[b]:$l(Ls(Us(b)))}function vW(b){var T=++bu;return Us(b)+T}var CW=qu(function(b,T){return b+T},0),_W=fA("ceil"),bW=qu(function(b,T){return b/T},1),xW=fA("floor");function MW(b){return b&&b.length?Yl(b,Zu,su):t}function wW(b,T){return b&&b.length?Yl(b,Pi(T,2),su):t}function SW(b){return Qh(b,Zu)}function EW(b,T){return Qh(b,Pi(T,2))}function BW(b){return b&&b.length?Yl(b,Zu,ge):t}function OW(b,T){return b&&b.length?Yl(b,Pi(T,2),ge):t}var IW=qu(function(b,T){return b*T},1),TW=fA("round"),kW=qu(function(b,T){return b-T},0);function PW(b){return b&&b.length?Yh(b,Zu):0}function KW(b,T){return b&&b.length?Yh(b,Pi(T,2)):0}return at.after=jt,at.ary=Sn,at.assign=rv,at.assignIn=__,at.assignInWith=h,at.assignWith=A,at.at=d,at.before=ar,at.bind=cr,at.bindAll=A3,at.bindKey=rr,at.castArray=s_,at.chain=Pp,at.chunk=al,at.compact=Ya,at.concat=us,at.cond=u3,at.conforms=c3,at.constant=sv,at.countBy=V0,at.create=y,at.curry=Ur,at.curryRight=ei,at.debounce=ai,at.defaults=w,at.defaultsDeep=R,at.defer=Rl,at.delay=cn,at.difference=bi,at.differenceBy=os,at.differenceWith=Vs,at.drop=ua,at.dropRight=ms,at.dropRightWhile=UA,at.dropWhile=Io,at.fill=lh,at.filter=mm,at.flatMap=ym,at.flatMapDeep=Hy,at.flatMapDepth=H0,at.flatten=Fc,at.flattenDeep=ba,at.flattenDepth=Pl,at.flip=Zt,at.flow=d3,at.flowRight=Nd,at.fromPairs=kd,at.functions=De,at.functionsIn=Ue,at.groupBy=$0,at.initial=qm,at.intersection=G0,at.intersectionBy=Pd,at.intersectionWith=cm,at.invert=vt,at.invertBy=Wt,at.invokeMap=e1,at.iteratee=A1,at.keyBy=t1,at.keys=Re,at.keysIn=st,at.map=Cf,at.mapKeys=Tt,at.mapValues=hn,at.matches=f3,at.matchesProperty=p3,at.memoiz
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&k.push(new wr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Ky(Eg(l))&&VA(l.type)==="identity"&&k.push(new wr(t,l,'"text-font" does not support identity functions'))),k.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function OF(n){return BF(n,"paint")}function IF(n){return BF(n,"layout")}function TF(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;!t.type&&!t.ref&&e.push(new wr(r,t,'either "type" or "ref" is required'));let l=VA(t.type);const o=VA(t.ref);if(t.id){const f=VA(t.id);for(let v=0;v<n.arrayIndex;v++){const x=i.layers[v];VA(x.id)===f&&e.push(new wr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${x.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(v=>{v in t&&e.push(new wr(r,t[v],`"${v}" is prohibited for ref layers`))});let f;i.layers.forEach(v=>{VA(v.id)===o&&(f=v)}),f?f.ref?e.push(new wr(r,t.ref,"ref cannot reference another ref layer")):l=VA(f.type):e.push(new wr(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new wr(r,t,'missing required property "source"'));else{const f=i.sources&&i.sources[t.source],v=f&&VA(f.type);f?v==="vector"&&l==="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster source`)):v!=="raster-dem"&&l==="hillshade"?e.push(new wr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):v==="raster"&&l!=="raster"?e.push(new wr(r,t.source,`layer "${t.id}" requires a vector source`)):v==="vector"&&!t["source-layer"]?e.push(new wr(r,t,`layer "${t.id}" must specify a "source-layer"`)):v==="raster-dem"&&l!=="hillshade"?e.push(new wr(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(v!=="geojson"||!f.lineMetrics)&&e.push(new wr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new wr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(Of({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:xB,layout(f){return Of({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return IF(vy({layerType:l},v))}}})},paint(f){return Of({layer:t,key:f.key,value:f.value,style:f.style,styleSpec:f.styleSpec,validateSpec:f.validateSpec,objectElementValidators:{"*"(v){return OF(vy({layerType:l},v))}}})}}})),e}function Bg(n){const e=n.value,t=n.key,r=Ps(e);return r!=="string"?[new wr(t,e,`string expected, ${r} found`)]:[]}function kq(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const f=Ps(r);if(r===void 0)return o;if(f!=="object")return o.push(new wr("source_raster_dem",r,`object expected, ${f} found`)),o;const x=VA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!x&&B.includes(P)?o.push(new wr(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):s[P]?o=o.concat(n.validateSpec({key:P,value:r[P],valueSpec:s[P],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new wr(P,r[P],`unknown property "${P}"`));return o}const _7={promoteId:Pq};function kF(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new wr(t,e,'"type" is required')];const l=VA(e.type);let o;switch(l){case"vector":case"raster":return o=Of({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:_7,validateSpec:s}),o;case"raster-dem":return o=kq({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=Of({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:_7}),e.cluster)for(const f in e.clusterProperties){const[v,x]=e.clusterProperties[f],B=typeof v=="string"?[v,["accumulated"],["get",f]]:v;o.push(..._y({key:`${t}.${f}.map`,value:x,expressionContext:"cluster-map"})),o.push(..._y({key:`${t}.${f}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return Of({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return Of({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new wr(t,null,"Please use runtime APIs to add canvas sources, rather than including them inLine truncated
|
||||
}`;var Jo=k_(function(){return po(ht,ki+"return "+fr).apply(t,Dt)});if(Jo.source=fr,tv(Jo))throw Jo;return Jo}function S_(b){return Us(b).toLowerCase()}function E_(b){return Us(b).toUpperCase()}function B_(b,T,H){if(b=Us(b),b&&(H||T===t))return of(b);if(!b||!(T=to(T)))return b;var Ce=aA(b),$e=aA(T),ht=BA(Ce,$e),Dt=$h(Ce,$e)+1;return Vl(Ce,ht,Dt).join("")}function O_(b,T,H){if(b=Us(b),b&&(H||T===t))return b.slice(0,Md(b)+1);if(!b||!(T=to(T)))return b;var Ce=aA(b),$e=$h(Ce,aA(T))+1;return Vl(Ce,0,$e).join("")}function av(b,T,H){if(b=Us(b),b&&(H||T===t))return b.replace(br,"");if(!b||!(T=to(T)))return b;var Ce=aA(b),$e=BA(Ce,aA(T));return Vl(Ce,$e).join("")}function lv(b,T){var H=he,Ce=Me;if(vl(T)){var $e="separator"in T?T.separator:$e;H="length"in T?To(T.length):H,Ce="omission"in T?to(T.omission):Ce}b=Us(b);var ht=b.length;if(Hc(b)){var Dt=aA(b);ht=Dt.length}if(H>=ht)return b;var Vt=H-Zi(Ce);if(Vt<1)return Ce;var An=Dt?Vl(Dt,0,Vt).join(""):b.slice(0,Vt);if($e===t)return An+Ce;if(Dt&&(Vt+=An.length-Vt),l1($e)){if(b.slice(Vt).search($e)){var Qn,qn=An;for($e.global||($e=Zc($e.source,Us(ui.exec($e))+"g")),$e.lastIndex=0;Qn=$e.exec(qn);)var fr=Qn.index;An=An.slice(0,fr===t?Vt:fr)}}else if(b.indexOf(to($e),Vt)!=Vt){var Yr=An.lastIndexOf($e);Yr>-1&&(An=An.slice(0,Yr))}return An+Ce}function op(b){return b=Us(b),b&&at.test(b)?b.replace(it,Yf):b}var I_=rd(function(b,T,H){return b+(H?" ":"")+T.toUpperCase()}),h1=Td("toUpperCase");function T_(b,T,H){return b=Us(b),T=H?t:T,T===t?xd(b)?Vf(b):Vc(b):b.match(T)||[]}var k_=on(function(b,T){try{return As(b,t,T)}catch(H){return tv(H)?H:new Ei(H)}}),m3=Ia(function(b,T){return fl(T,function(H){H=Aa(H),Yu(b,H,ur(b[H],b))}),b});function g3(b){var T=b==null?0:b.length,H=Pi();return b=T?rs(b,function(Ce){if(typeof Ce[1]!="function")throw new pl(l);return[H(Ce[0]),Ce[1]]}):[],on(function(Ce){for(var $e=-1;++$e<T;){var ht=b[$e];if(As(ht[0],this,Ce))return As(ht[1],this,Ce)}})}function y3(b){return Qr(gl(b,B))}function Av(b){return function(){return b}}function v3(b,T){return b==null||b!==b?T:b}var C3=df(),jd=df(!0);function Xu(b){return b}function d1(b){return Y(typeof b=="function"?b:gl(b,B))}function _3(b){return Ie(gl(b,B))}function b3(b,T){return Ge(b,gl(T,B))}var x3=on(function(b,T){return function(H){return sl(H,b,T)}}),Ju=on(function(b,T){return function(H){return sl(b,H,T)}});function jc(b,T,H){var Ce=De(T),$e=KA(T,Ce);H==null&&!(vl(T)&&($e.length||!Ce.length))&&(H=T,T=b,b=this,$e=KA(T,De(T)));var ht=!(vl(H)&&"chain"in H)||!!H.chain,Dt=Rh(b);return fl($e,function(Vt){var An=T[Vt];b[Vt]=An,Dt&&(b.prototype[Vt]=function(){var Qn=this.__chain__;if(ht||Qn){var qn=b(this.__wrapped__),fr=qn.__actions__=$l(this.__actions__);return fr.push({func:An,args:arguments,thisArg:b}),qn.__chain__=Qn,qn}return An.apply(b,yu([this.value()],arguments))})}),b}function Bm(){return Or._===this&&(Or._=rl),this}function Fh(){}function Om(b){return b=To(b),on(function(T){return ct(T,b)})}var wf=Xf(rs),vW=Xf(mh),CW=Xf(sA);function c8(b){return K(b)?rf(Aa(b)):wt(b)}function _W(b){return function(T){return b==null?t:su(b,T)}}var bW=Rc(),xW=Rc(!0);function M3(){return[]}function w3(){return!1}function MW(){return{}}function wW(){return""}function SW(){return!0}function EW(b,T){if(b=To(b),b<1||b>Ke)return[];var H=Le,Ce=Qs(b,Le);T=Pi(T),b-=Le;for(var $e=bd(Ce,T);++H<b;)T(H);return $e}function BW(b){return xo(b)?rs(b,Aa):uh(b)?[b]:$l(Ls(Us(b)))}function OW(b){var T=++bu;return Us(b)+T}var IW=Vu(function(b,T){return b+T},0),TW=fA("ceil"),kW=Vu(function(b,T){return b/T},1),PW=fA("floor");function KW(b){return b&&b.length?Yl(b,Xu,au):t}function RW(b,T){return b&&b.length?Yl(b,Pi(T,2),au):t}function DW(b){return qh(b,Xu)}function FW(b,T){return qh(b,Pi(T,2))}function LW(b){return b&&b.length?Yl(b,Xu,ge):t}function UW(b,T){return b&&b.length?Yl(b,Pi(T,2),ge):t}var zW=Vu(function(b,T){return b*T},1),NW=fA("round"),WW=Vu(function(b,T){return b-T},0);function jW(b){return b&&b.length?Vh(b,Xu):0}function GW(b,T){return b&&b.length?Vh(b,Pi(T,2)):0}return st.after=jt,st.ary=Sn,st.assign=sv,st.assignIn=w_,st.assignInWith=h,st.assignWith=A,st.at=d,st.before=or,st.bind=ur,st.bindAll=m3,st.bindKey=tr,st.castArray=u_,st.chain=Fp,st.chunk=ll,st.compact=qa,st.concat=cs,st.cond=g3,st.conforms=y3,st.constant=Av,st.countBy=Z0,st.create=y,st.curry=Ur,st.curryRight=ei,st.debounce=ai,st.defaults=w,st.defaultsDeep=R,st.defer=Rl,st.delay=hn,st.difference=bi,st.differenceBy=ss,st.differenceWith=Vs,st.drop=ua,st.dropRight=gs,st.dropRightWhile=zA,st.dropWhile=Io,st.fill=Ah,st.filter=ym,st.flatMap=Cm,st.flatMapDeep=Xy,st.flatMapDepth=X0,st.flatten=Fc,st.flattenDeep=xa,st.flattenDepth=Pl,st.flip=Xt,st.flow=C3,st.flowRight=jd,st.fromPairs=Kd,st.functions=Fe,st.functionsIn=ze,st.groupBy=J0,st.initial=Hm,st.intersection=q0,st.intersectionBy=Rd,st.intersectionWith=dm,st.invert=yt,st.invertBy=Wt,st.invokeMap=i1,st.iteratee=d1,st.keyBy=o1,st.keys=De,st.keysIn=ot,st.map=xf,st.mapKeys=Tt,st.mapValues=dn,st.matches=_3,st.matchesProperty=b3,st.memoiz
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(B[1])} }\`.`)];const k=[];return n.layerType==="symbol"&&(o==="text-field"&&i&&!i.glyphs&&k.push(new xr(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Fy(Tg(l))&&HA(l.type)==="identity"&&k.push(new xr(t,l,'"text-font" does not support identity functions'))),k.concat(r({key:n.key,value:l,valueSpec:x,style:i,styleSpec:s,expressionContext:"property",propertyType:e,propertyKey:o}))}function LF(n){return FF(n,"paint")}function UF(n){return FF(n,"layout")}function zF(n){let e=[];const t=n.value,r=n.key,i=n.style,s=n.styleSpec;if(ts(t)!=="object")return[new xr(r,t,`object expected, ${ts(t)} found`)];!t.type&&!t.ref&&e.push(new xr(r,t,'either "type" or "ref" is required'));let l=HA(t.type);const o=HA(t.ref);if(t.id){const p=HA(t.id);for(let v=0;v<n.arrayIndex;v++){const x=i.layers[v];HA(x.id)===p&&e.push(new xr(r,t.id,`duplicate layer id "${t.id}", previously used at line ${x.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(v=>{v in t&&e.push(new xr(r,t[v],`"${v}" is prohibited for ref layers`))});let p;i.layers.forEach(v=>{HA(v.id)===o&&(p=v)}),p?p.ref?e.push(new xr(r,t.ref,"ref cannot reference another ref layer")):l=HA(p.type):e.push(new xr(r,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new xr(r,t,'missing required property "source"'));else{const p=i.sources&&i.sources[t.source],v=p&&HA(p.type);p?v==="vector"&&l==="raster"?e.push(new xr(r,t.source,`layer "${t.id}" requires a raster source`)):v!=="raster-dem"&&l==="hillshade"?e.push(new xr(r,t.source,`layer "${t.id}" requires a raster-dem source`)):v==="raster"&&l!=="raster"?e.push(new xr(r,t.source,`layer "${t.id}" requires a vector source`)):v==="vector"&&!t["source-layer"]?e.push(new xr(r,t,`layer "${t.id}" must specify a "source-layer"`)):v==="raster-dem"&&l!=="hillshade"?e.push(new xr(r,t.source,"raster-dem source can only be used with layer type 'hillshade'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(v!=="geojson"||!p.lineMetrics)&&e.push(new xr(r,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new xr(r,t.source,`source "${t.source}" not found`))}return e=e.concat(kf({key:r,value:t,valueSpec:s.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${r}.type`,value:t.type,valueSpec:s.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:IB,layout(p){return kf({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(v){return UF(_y({layerType:l},v))}}})},paint(p){return kf({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(v){return LF(_y({layerType:l},v))}}})}}})),e}function kg(n){const e=n.value,t=n.key,r=ts(e);return r!=="string"?[new xr(t,e,`string expected, ${r} found`)]:[]}function Gq(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",r=n.value,i=n.styleSpec,s=i.source_raster_dem,l=n.style;let o=[];const p=ts(r);if(r===void 0)return o;if(p!=="object")return o.push(new xr("source_raster_dem",r,`object expected, ${p} found`)),o;const x=HA(r.encoding)==="custom",B=["redFactor","greenFactor","blueFactor","baseShift"],k=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const P in r)!x&&B.includes(P)?o.push(new xr(P,r[P],`In "${t}": "${P}" is only valid when "encoding" is set to "custom". ${k} encoding found`)):s[P]?o=o.concat(n.validateSpec({key:P,value:r[P],valueSpec:s[P],validateSpec:n.validateSpec,style:l,styleSpec:i})):o.push(new xr(P,r[P],`unknown property "${P}"`));return o}const E7={promoteId:Qq};function NF(n){const e=n.value,t=n.key,r=n.styleSpec,i=n.style,s=n.validateSpec;if(!e.type)return[new xr(t,e,'"type" is required')];const l=HA(e.type);let o;switch(l){case"vector":case"raster":return o=kf({key:t,value:e,valueSpec:r[`source_${l.replace("-","_")}`],style:n.style,styleSpec:r,objectElementValidators:E7,validateSpec:s}),o;case"raster-dem":return o=Gq({sourceName:t,value:e,style:n.style,styleSpec:r,validateSpec:s}),o;case"geojson":if(o=kf({key:t,value:e,valueSpec:r.source_geojson,style:i,styleSpec:r,validateSpec:s,objectElementValidators:E7}),e.cluster)for(const p in e.clusterProperties){const[v,x]=e.clusterProperties[p],B=typeof v=="string"?[v,["accumulated"],["get",p]]:v;o.push(...My({key:`${t}.${p}.map`,value:x,expressionContext:"cluster-map"})),o.push(...My({key:`${t}.${p}.reduce`,value:B,expressionContext:"cluster-reduce"}))}return o;case"video":return kf({key:t,value:e,valueSpec:r.source_video,style:i,validateSpec:s,styleSpec:r});case"image":return kf({key:t,value:e,valueSpec:r.source_image,style:i,validateSpec:s,styleSpec:r});case"canvas":return[new xr(t,null,"PlLine truncated
|
||||
${B}`),N].join(`
|
||||
${o}`)}return v}(n,"",0)}function x7(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function UF(n,e=2){return n=x7(n,Es.$root),n.layers&&(n.layers=n.layers.map(t=>x7(t,Es.layer))),jq(n,{indent:e})}function G3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function M7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function qE(n,e){return typeof e=="string"&&e[0]==="@"?qE(n,n.constants[e]):e}function Gq(n){return Array.isArray(n.stops)}function uv(n,e,t){n[t]=n[e],delete n[e]}function Qq(n){n.version=8,Oq(n,i=>{i.type==="video"&&i.url!==void 0&&uv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),Yv(n,i=>{G3(i,s=>{s["symbol-min-distance"]!==void 0&&uv(s,"symbol-min-distance","symbol-spacing")}),M7(i,s=>{s["background-image"]!==void 0&&uv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&uv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&uv(s,"fill-image","fill-pattern")})}),CB(n,{paint:!0,layout:!0},i=>{const s=qE(n,i.value);Gq(s)&&s.stops.forEach(l=>{l[1]=qE(n,l[1])}),i.set(s)}),delete n.constants,Yv(n,i=>{G3(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),M7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}Yv(n,i=>{G3(i,s=>{s["text-font"]&&(s["text-font"]=e(s["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function Yq(n){const e=[];return Yv(n,t=>{t.filter&&(t.filter=Qv(t.filter))}),CB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Ry(r)||(typeof r=="object"&&!Array.isArray(r)?(s(mB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(MF(r)))}),n}function qq(n){return JSON.parse(Vq(JSON.stringify(n)))}function Vq(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(f=>f.endsWith("%")?f:`${parseFloat(f)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function Hq(n){let e=!1;if(n.version===7&&(n=Qq(n),e=!0),n.version===8&&(e=!!Yq(n),e=!0),CB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(qq(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const $q=Es,Zq={StyleExpression:bF,StylePropertyFunction:ox,ZoomConstantExpression:GE,ZoomDependentExpression:QE,createExpression:rx,createPropertyExpression:ix,isExpression:Ry,isExpressionFilter:DC,isZoomExpression:fq,normalizePropertyExpression:pq},Xq={convertFunction:mB,createFunction:pB,isFunction:Ky};var sx=TC();const Jq=hl(sx);var _b={exports:{}};/**
|
||||
${o}`)}return v}(n,"",0)}function O7(n,e){const t={};for(const r in e)n[r]!==void 0&&(t[r]=n[r]);for(const r in n)t[r]===void 0&&(t[r]=n[r]);return t}function HF(n,e=2){return n=O7(n,Bs.$root),n.layers&&(n.layers=n.layers.map(t=>O7(t,Bs.layer))),iV(n,{indent:e})}function Z3(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function I7(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function t6(n,e){return typeof e=="string"&&e[0]==="@"?t6(n,n.constants[e]):e}function oV(n){return Array.isArray(n.stops)}function dv(n,e,t){n[t]=n[e],delete n[e]}function sV(n){n.version=8,Wq(n,i=>{i.type==="video"&&i.url!==void 0&&dv(i,"url","urls"),i.type==="video"&&i.coordinates.forEach(s=>s.reverse())}),$v(n,i=>{Z3(i,s=>{s["symbol-min-distance"]!==void 0&&dv(s,"symbol-min-distance","symbol-spacing")}),I7(i,s=>{s["background-image"]!==void 0&&dv(s,"background-image","background-pattern"),s["line-image"]!==void 0&&dv(s,"line-image","line-pattern"),s["fill-image"]!==void 0&&dv(s,"fill-image","fill-pattern")})}),BB(n,{paint:!0,layout:!0},i=>{const s=t6(n,i.value);oV(s)&&s.stops.forEach(l=>{l[1]=t6(n,l[1])}),i.set(s)}),delete n.constants,$v(n,i=>{Z3(i,s=>{delete s["text-max-size"],delete s["icon-max-size"]}),I7(i,s=>{s["text-size"]&&(i.layout||(i.layout={}),i.layout["text-size"]=s["text-size"],delete s["text-size"]),s["icon-size"]&&(i.layout||(i.layout={}),i.layout["icon-size"]=s["icon-size"],delete s["icon-size"])})});function e(i){function s(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(i))return i;if(typeof i=="string")return s(i);if(typeof i=="object")return i.stops.forEach(l=>{l[1]=s(l[1])}),i;throw new Error("unexpected font value")}$v(n,i=>{Z3(i,s=>{s["text-font"]&&(s["text-font"]=e(s["text-font"]))})});let t=0;for(let i=n.layers.length-1;i>=0;i--)if(n.layers[i].type!=="symbol"){t=i+1;break}const r=n.layers.splice(t);return r.reverse(),n.layers=n.layers.concat(r),n}function aV(n){const e=[];return $v(n,t=>{t.filter&&(t.filter=Hv(t.filter))}),BB(n,{paint:!0,layout:!0},({path:t,value:r,reference:i,set:s})=>{Ly(r)||(typeof r=="object"&&!Array.isArray(r)?(s(MB(r,i)),e.push(t.join("."))):i.tokens&&typeof r=="string"&&s(PF(r)))}),n}function lV(n){return JSON.parse(AV(JSON.stringify(n)))}function AV(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const r=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(r){let[i,s,l,o]=r.slice(1);return[s,l]=[s,l].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[i,s,l,o].filter(Boolean).join(",")})"`}return e})}function uV(n){let e=!1;if(n.version===7&&(n=sV(n),e=!0),n.version===8&&(e=!!aV(n),e=!0),BB(n,{paint:!0,layout:!0},({value:t,reference:r,set:i})=>{r.type==="color"&&i(lV(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const cV=Bs,hV={StyleExpression:TF,StylePropertyFunction:cx,ZoomConstantExpression:ZE,ZoomDependentExpression:XE,createExpression:Ax,createPropertyExpression:ux,isExpression:Ly,isExpressionFilter:zC,isZoomExpression:Eq,normalizePropertyExpression:Bq},dV={convertFunction:MB,createFunction:xB,isFunction:Fy};var dx=RC();const fV=dl(dx);var wb={exports:{}};/**
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.4.0/LICENSE.txt
|
||||
*/var eV=_b.exports,w7;function tV(){return w7||(w7=1,function(n,e){(function(t,r){n.exports=r()})(eV,function(){var t={},r={};function i(l,o,f){if(r[l]=f,l==="index"){var v="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",x={};return r.shared(x),r.index(t,x),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([v],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(h,A,d,y){return new(d||(d=Promise))(function(w,R){function F(re){try{X(y.next(re))}catch(he){R(he)}}function j(re){try{X(y.throw(re))}catch(he){R(he)}}function X(re){var he;re.done?w(re.value):(he=re.value,he instanceof d?he:new d(function(be){be(he)})).then(F,j)}X((y=y.apply(h,A||[])).next())})}function f(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var v,x;function B(){if(x)return v;function h(A,d){this.x=A,this.y=d}return x=1,v=h,h.prototype={clone:function(){return new h(this.x,this.y)},add:function(A){return this.clone()._add(A)},sub:function(A){return this.clone()._sub(A)},multByPoint:function(A){return this.clone()._multByPoint(A)},divByPoint:function(A){return this.clone()._divByPoint(A)},mult:function(A){return this.clone()._mult(A)},div:function(A){return this.clone()._div(A)},rotate:function(A){return this.clone()._rotate(A)},rotateAround:function(A,d){return this.clone()._rotateAround(A,d)},matMult:function(A){return this.clone()._matMult(A)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(A){return this.x===A.x&&this.y===A.y},dist:function(A){return Math.sqrt(this.distSqr(A))},distSqr:function(A){var d=A.x-this.x,y=A.y-this.y;return d*d+y*y},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(A){return Math.atan2(this.y-A.y,this.x-A.x)},angleWith:function(A){return this.angleWithSep(A.x,A.y)},angleWithSep:function(A,d){return Math.atan2(this.x*d-this.y*A,this.x*A+this.y*d)},_matMult:function(A){var d=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=d,this},_add:function(A){return this.x+=A.x,this.y+=A.y,this},_sub:function(A){return this.x-=A.x,this.y-=A.y,this},_mult:function(A){return this.x*=A,this.y*=A,this},_div:function(A){return this.x/=A,this.y/=A,this},_multByPoint:function(A){return this.x*=A.x,this.y*=A.y,this},_divByPoint:function(A){return this.x/=A.x,this.y/=A.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var A=this.y;return this.y=this.x,this.x=-A,this},_rotate:function(A){var d=Math.cos(A),y=Math.sin(A),w=y*this.x+d*this.y;return this.x=d*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,d){var y=Math.cos(A),w=Math.sin(A),R=d.y+w*(this.x-d.x)+y*(this.y-d.y);return this.x=d.x+y*(this.x-d.x)-w*(this.y-d.y),this.y=R,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},h.convert=function(A){return A instanceof h?A:Array.isArray(A)?new h(A[0],A[1]):A},v}typeof SuppressedError=="function"&&SuppressedError;var k,P,U=f(B()),N=function(){if(P)return k;function h(A,d,y,w){this.cx=3*A,this.bx=3*(y-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(w-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=d,this.p2x=y,this.p2y=w}return P=1,k=h,h.prototype={sampleCurveX:function(A){return((this.ax*A+this.bx)*A+this.cx)*A},sampleCurveY:function(A){return((this.ay*A+this.by)*A+this.cy)*A},sampleCurveDerivativeX:function(A){return(3*this.ax*A+2*this.bx)*A+this.cx},solveCurveX:function(A,d){if(d===void 0&&(d=1e-6),A<0)return 0;if(A>1)return 1;for(var y=A,w=0;w<8;w++){var R=this.sampleCurveX(y)-A;if(Math.abs(R)<d)return y;var F=this.sampleCurveDerivativeX(y);if(Math.abs(F)<1e-6)break;y-=R/F}var j=0,X=1;for(y=A,w=0;w<20&&(R=this.sampleCurveX(y),!(Math.abs(R-A)<d));w++)A>R?j=y:X=y,y=.5*(X-j)+j;return y},solve:function(A,d){return this.sampleCurveY(this.solveCurveX(A,d))}},k}(),W=f(N);let V,$;function oe(){return V==null&&(V=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),V}function te(){if($==null&&($=!1,oe())){const A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let y=0;y<5*5;y++){const w=4*y;A.fillStyle=`rgb(${w},${w+1},${w+2})`,A.fillRect(y%5,Math.floor(y/5),1,1)}const d=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&d[y]!==y){$=!0;break}}}return $||!1}var q=1e-6,ne=typeof Float32Array<"u"?Float32Array:Array;function G(){var h=new ne(9);return ne!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function ie(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function de(){var h=new ne(3);return ne!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function fe(h){return Math.hypot(h[0],h[1],h[2])}function Ee(h,A,d){var y=new neLine truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(be[1])} }\`.`)];const De=[];return h.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&De.push(new Xt(d,F,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&nl(xu(F))&&fs(F.type)==="identity"&&De.push(new Xt(d,F,'"text-font" does not support identity functions'))),De.concat(y({key:h.key,value:F,valueSpec:he,style:w,styleSpec:R,expressionContext:"property",propertyType:A,propertyKey:j}))}function Tc(h){return Ac(h,"paint")}function OA(h){return Ac(h,"layout")}function wu(h){let A=[];const d=h.value,y=h.key,w=h.style,R=h.styleSpec;d.type||d.ref||A.push(new Xt(y,d,'either "type" or "ref" is required'));let F=fs(d.type);const j=fs(d.ref);if(d.id){const X=fs(d.id);for(let re=0;re<h.arrayIndex;re++){const he=w.layers[re];fs(he.id)===X&&A.push(new Xt(y,d.id,`duplicate layer id "${d.id}", previously used at line ${he.id.__line__}`))}}if("ref"in d){let X;["type","source","source-layer","filter","layout"].forEach(re=>{re in d&&A.push(new Xt(y,d[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{fs(re.id)===j&&(X=re)}),X?X.ref?A.push(new Xt(y,d.ref,"ref cannot reference another ref layer")):F=fs(X.type):A.push(new Xt(y,d.ref,`ref layer "${j}" not found`))}else if(F!=="background")if(d.source){const X=w.sources&&w.sources[d.source],re=X&&fs(X.type);X?re==="vector"&&F==="raster"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a raster source`)):re!=="raster-dem"&&F==="hillshade"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a raster-dem source`)):re==="raster"&&F!=="raster"?A.push(new Xt(y,d.source,`layer "${d.id}" requires a vector source`)):re!=="vector"||d["source-layer"]?re==="raster-dem"&&F!=="hillshade"?A.push(new Xt(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):F!=="line"||!d.paint||!d.paint["line-gradient"]||re==="geojson"&&X.lineMetrics||A.push(new Xt(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new Xt(y,d,`layer "${d.id}" must specify a "source-layer"`)):A.push(new Xt(y,d.source,`source "${d.source}" not found`))}else A.push(new Xt(y,d,'missing required property "source"'));return A=A.concat(Xs({key:y,value:d,valueSpec:R.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:d.type,valueSpec:R.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:d,objectKey:"type"}),filter:Ic,layout:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>OA(_r({layerType:F},re))}}),paint:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>Tc(_r({layerType:F},re))}})}})),A}function pl(h){const A=h.value,d=h.key,y=Xi(A);return y!=="string"?[new Xt(d,A,`string expected, ${y} found`)]:[]}const IA={promoteId:function({key:h,value:A}){if(Xi(A)==="string")return pl({key:h,value:A});{const d=[];for(const y in A)d.push(...pl({key:`${h}.${y}`,value:A[y]}));return d}}};function Ed(h){const A=h.value,d=h.key,y=h.styleSpec,w=h.style,R=h.validateSpec;if(!A.type)return[new Xt(d,A,'"type" is required')];const F=fs(A.type);let j;switch(F){case"vector":case"raster":return j=Xs({key:d,value:A,valueSpec:y[`source_${F.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:IA,validateSpec:R}),j;case"raster-dem":return j=function(X){var re;const he=(re=X.sourceName)!==null&&re!==void 0?re:"",be=X.value,De=X.styleSpec,Ue=De.source_raster_dem,Qe=X.style;let et=[];const At=Xi(be);if(be===void 0)return et;if(At!=="object")return et.push(new Xt("source_raster_dem",be,`object expected, ${At} found`)),et;const vt=fs(be.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],Et=X.value.encoding?`"${X.value.encoding}"`:"Default";for(const Re in be)!vt&&Wt.includes(Re)?et.push(new Xt(Re,be[Re],`In "${he}": "${Re}" is only valid when "encoding" is set to "custom". ${Et} encoding found`)):Ue[Re]?et=et.concat(X.validateSpec({key:Re,value:be[Re],valueSpec:Ue[Re],validateSpec:X.validateSpec,style:Qe,styleSpec:De})):et.push(new Xt(Re,be[Re],`unknown property "${Re}"`));return et}({sourceName:d,value:A,style:h.style,styleSpec:y,validateSpec:R}),j;case"geojson":if(j=Xs({key:d,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:R,objectElementValidators:IA}),A.cluster)for(const X in A.clusterProperties){const[re,he]=A.clusterProperties[X],be=typeof re=="string"?[re,["accumulated"],["get",X]]:re;j.push(...Ml({key:`${d}.${X}.map`,value:he,expressionContext:"cluster-map"})),j.push(...Ml({key:`${d}.${X}.reduce`,value:be,expressionContext:"cluster-reduce"}))}return j;case"video":return Xs({key:d,value:A,valueSpec:y.source_video,style:w,validateSpec:R,styleSpec:y});case"image":retuLine truncated
|
||||
*/var pV=wb.exports,T7;function mV(){return T7||(T7=1,function(n,e){(function(t,r){n.exports=r()})(pV,function(){var t={},r={};function i(l,o,p){if(r[l]=p,l==="index"){var v="var sharedModule = {}; ("+r.shared+")(sharedModule); ("+r.worker+")(sharedModule);",x={};return r.shared(x),r.index(t,x),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([v],{type:"text/javascript"}))),t}}i("shared",["exports"],function(l){function o(h,A,d,y){return new(d||(d=Promise))(function(w,R){function U(re){try{X(y.next(re))}catch(de){R(de)}}function j(re){try{X(y.throw(re))}catch(de){R(de)}}function X(re){var de;re.done?w(re.value):(de=re.value,de instanceof d?de:new d(function(xe){xe(de)})).then(U,j)}X((y=y.apply(h,A||[])).next())})}function p(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var v,x;function B(){if(x)return v;function h(A,d){this.x=A,this.y=d}return x=1,v=h,h.prototype={clone:function(){return new h(this.x,this.y)},add:function(A){return this.clone()._add(A)},sub:function(A){return this.clone()._sub(A)},multByPoint:function(A){return this.clone()._multByPoint(A)},divByPoint:function(A){return this.clone()._divByPoint(A)},mult:function(A){return this.clone()._mult(A)},div:function(A){return this.clone()._div(A)},rotate:function(A){return this.clone()._rotate(A)},rotateAround:function(A,d){return this.clone()._rotateAround(A,d)},matMult:function(A){return this.clone()._matMult(A)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(A){return this.x===A.x&&this.y===A.y},dist:function(A){return Math.sqrt(this.distSqr(A))},distSqr:function(A){var d=A.x-this.x,y=A.y-this.y;return d*d+y*y},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(A){return Math.atan2(this.y-A.y,this.x-A.x)},angleWith:function(A){return this.angleWithSep(A.x,A.y)},angleWithSep:function(A,d){return Math.atan2(this.x*d-this.y*A,this.x*A+this.y*d)},_matMult:function(A){var d=A[2]*this.x+A[3]*this.y;return this.x=A[0]*this.x+A[1]*this.y,this.y=d,this},_add:function(A){return this.x+=A.x,this.y+=A.y,this},_sub:function(A){return this.x-=A.x,this.y-=A.y,this},_mult:function(A){return this.x*=A,this.y*=A,this},_div:function(A){return this.x/=A,this.y/=A,this},_multByPoint:function(A){return this.x*=A.x,this.y*=A.y,this},_divByPoint:function(A){return this.x/=A.x,this.y/=A.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var A=this.y;return this.y=this.x,this.x=-A,this},_rotate:function(A){var d=Math.cos(A),y=Math.sin(A),w=y*this.x+d*this.y;return this.x=d*this.x-y*this.y,this.y=w,this},_rotateAround:function(A,d){var y=Math.cos(A),w=Math.sin(A),R=d.y+w*(this.x-d.x)+y*(this.y-d.y);return this.x=d.x+y*(this.x-d.x)-w*(this.y-d.y),this.y=R,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},h.convert=function(A){return A instanceof h?A:Array.isArray(A)?new h(A[0],A[1]):A},v}typeof SuppressedError=="function"&&SuppressedError;var k,P,D=p(B()),N=function(){if(P)return k;function h(A,d,y,w){this.cx=3*A,this.bx=3*(y-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*d,this.by=3*(w-d)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=d,this.p2x=y,this.p2y=w}return P=1,k=h,h.prototype={sampleCurveX:function(A){return((this.ax*A+this.bx)*A+this.cx)*A},sampleCurveY:function(A){return((this.ay*A+this.by)*A+this.cy)*A},sampleCurveDerivativeX:function(A){return(3*this.ax*A+2*this.bx)*A+this.cx},solveCurveX:function(A,d){if(d===void 0&&(d=1e-6),A<0)return 0;if(A>1)return 1;for(var y=A,w=0;w<8;w++){var R=this.sampleCurveX(y)-A;if(Math.abs(R)<d)return y;var U=this.sampleCurveDerivativeX(y);if(Math.abs(U)<1e-6)break;y-=R/U}var j=0,X=1;for(y=A,w=0;w<20&&(R=this.sampleCurveX(y),!(Math.abs(R-A)<d));w++)A>R?j=y:X=y,y=.5*(X-j)+j;return y},solve:function(A,d){return this.sampleCurveY(this.solveCurveX(A,d))}},k}(),W=p(N);let V,$;function ie(){return V==null&&(V=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),V}function ne(){if($==null&&($=!1,ie())){const A=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(A){for(let y=0;y<5*5;y++){const w=4*y;A.fillStyle=`rgb(${w},${w+1},${w+2})`,A.fillRect(y%5,Math.floor(y/5),1,1)}const d=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&d[y]!==y){$=!0;break}}}return $||!1}var q=1e-6,te=typeof Float32Array<"u"?Float32Array:Array;function G(){var h=new te(9);return te!=Float32Array&&(h[1]=0,h[2]=0,h[3]=0,h[5]=0,h[6]=0,h[7]=0),h[0]=1,h[4]=1,h[8]=1,h}function oe(h){return h[0]=1,h[1]=0,h[2]=0,h[3]=0,h[4]=0,h[5]=1,h[6]=0,h[7]=0,h[8]=0,h[9]=0,h[10]=1,h[11]=0,h[12]=0,h[13]=0,h[14]=0,h[15]=1,h}function fe(){var h=new te(3);return te!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function he(h){return Math.hypot(h[0],h[1],h[2])}function Me(h,A,d){var y=new teLine truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(xe[1])} }\`.`)];const Fe=[];return h.layerType==="symbol"&&(j==="text-field"&&w&&!w.glyphs&&Fe.push(new Jt(d,U,'use of "text-field" requires a style "glyphs" property')),j==="text-font"&&rl(xu(U))&&ps(U.type)==="identity"&&Fe.push(new Jt(d,U,'"text-font" does not support identity functions'))),Fe.concat(y({key:h.key,value:U,valueSpec:de,style:w,styleSpec:R,expressionContext:"property",propertyType:A,propertyKey:j}))}function Tc(h){return Ac(h,"paint")}function IA(h){return Ac(h,"layout")}function wu(h){let A=[];const d=h.value,y=h.key,w=h.style,R=h.styleSpec;d.type||d.ref||A.push(new Jt(y,d,'either "type" or "ref" is required'));let U=ps(d.type);const j=ps(d.ref);if(d.id){const X=ps(d.id);for(let re=0;re<h.arrayIndex;re++){const de=w.layers[re];ps(de.id)===X&&A.push(new Jt(y,d.id,`duplicate layer id "${d.id}", previously used at line ${de.id.__line__}`))}}if("ref"in d){let X;["type","source","source-layer","filter","layout"].forEach(re=>{re in d&&A.push(new Jt(y,d[re],`"${re}" is prohibited for ref layers`))}),w.layers.forEach(re=>{ps(re.id)===j&&(X=re)}),X?X.ref?A.push(new Jt(y,d.ref,"ref cannot reference another ref layer")):U=ps(X.type):A.push(new Jt(y,d.ref,`ref layer "${j}" not found`))}else if(U!=="background")if(d.source){const X=w.sources&&w.sources[d.source],re=X&&ps(X.type);X?re==="vector"&&U==="raster"?A.push(new Jt(y,d.source,`layer "${d.id}" requires a raster source`)):re!=="raster-dem"&&U==="hillshade"?A.push(new Jt(y,d.source,`layer "${d.id}" requires a raster-dem source`)):re==="raster"&&U!=="raster"?A.push(new Jt(y,d.source,`layer "${d.id}" requires a vector source`)):re!=="vector"||d["source-layer"]?re==="raster-dem"&&U!=="hillshade"?A.push(new Jt(y,d.source,"raster-dem source can only be used with layer type 'hillshade'.")):U!=="line"||!d.paint||!d.paint["line-gradient"]||re==="geojson"&&X.lineMetrics||A.push(new Jt(y,d,`layer "${d.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new Jt(y,d,`layer "${d.id}" must specify a "source-layer"`)):A.push(new Jt(y,d.source,`source "${d.source}" not found`))}else A.push(new Jt(y,d,'missing required property "source"'));return A=A.concat(Xs({key:y,value:d,valueSpec:R.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:d.type,valueSpec:R.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:d,objectKey:"type"}),filter:Ic,layout:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>IA(br({layerType:U},re))}}),paint:X=>Xs({layer:d,key:X.key,value:X.value,style:X.style,styleSpec:X.styleSpec,validateSpec:X.validateSpec,objectElementValidators:{"*":re=>Tc(br({layerType:U},re))}})}})),A}function ml(h){const A=h.value,d=h.key,y=Xi(A);return y!=="string"?[new Jt(d,A,`string expected, ${y} found`)]:[]}const TA={promoteId:function({key:h,value:A}){if(Xi(A)==="string")return ml({key:h,value:A});{const d=[];for(const y in A)d.push(...ml({key:`${h}.${y}`,value:A[y]}));return d}}};function Od(h){const A=h.value,d=h.key,y=h.styleSpec,w=h.style,R=h.validateSpec;if(!A.type)return[new Jt(d,A,'"type" is required')];const U=ps(A.type);let j;switch(U){case"vector":case"raster":return j=Xs({key:d,value:A,valueSpec:y[`source_${U.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:TA,validateSpec:R}),j;case"raster-dem":return j=function(X){var re;const de=(re=X.sourceName)!==null&&re!==void 0?re:"",xe=X.value,Fe=X.styleSpec,ze=Fe.source_raster_dem,Ye=X.style;let et=[];const At=Xi(xe);if(xe===void 0)return et;if(At!=="object")return et.push(new Jt("source_raster_dem",xe,`object expected, ${At} found`)),et;const yt=ps(xe.encoding)==="custom",Wt=["redFactor","greenFactor","blueFactor","baseShift"],St=X.value.encoding?`"${X.value.encoding}"`:"Default";for(const De in xe)!yt&&Wt.includes(De)?et.push(new Jt(De,xe[De],`In "${de}": "${De}" is only valid when "encoding" is set to "custom". ${St} encoding found`)):ze[De]?et=et.concat(X.validateSpec({key:De,value:xe[De],valueSpec:ze[De],validateSpec:X.validateSpec,style:Ye,styleSpec:Fe})):et.push(new Jt(De,xe[De],`unknown property "${De}"`));return et}({sourceName:d,value:A,style:h.style,styleSpec:y,validateSpec:R}),j;case"geojson":if(j=Xs({key:d,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:R,objectElementValidators:TA}),A.cluster)for(const X in A.clusterProperties){const[re,de]=A.clusterProperties[X],xe=typeof re=="string"?[re,["accumulated"],["get",X]]:re;j.push(...Ml({key:`${d}.${X}.map`,value:de,expressionContext:"cluster-map"})),j.push(...Ml({key:`${d}.${X}.reduce`,value:xe,expressionContext:"cluster-reduce"}))}return j;case"video":return Xs({key:d,value:A,valueSpec:y.source_video,style:w,validateSpec:R,styleSpec:y});case"image":retuLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -745,157 +745,149 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:Ii("uniform sampler2D u_texture;uniform vec4 u_fog_color;uniform vec4 u_horizon_color;uniform float u_fog_ground_blend;uniform float u_fog_ground_blend_opacity;uniform float u_horizon_fog_blend;uniform bool u_is_globe_mode;in vec2 v_texture_pos;in float v_fog_depth;const float gamma=2.2;vec4 gammaToLinear(vec4 color) {return pow(color,vec4(gamma));}vec4 linearToGamma(vec4 color) {return pow(color,vec4(1.0/gamma));}void main() {vec4 surface_color=texture(u_texture,vec2(v_texture_pos.x,1.0-v_texture_pos.y));if (!u_is_globe_mode && v_fog_depth > u_fog_ground_blend) {vec4 surface_color_linear=gammaToLinear(surface_color);float blend_color=smoothstep(0.0,1.0,max((v_fog_depth-u_horizon_fog_blend)/(1.0-u_horizon_fog_blend),0.0));vec4 fog_horizon_color_linear=mix(gammaToLinear(u_fog_color),gammaToLinear(u_horizon_color),blend_color);float factor_fog=max(v_fog_depth-u_fog_ground_blend,0.0)/(1.0-u_fog_ground_blend);fragColor=linearToGamma(mix(surface_color_linear,fog_horizon_color_linear,pow(factor_fog,2.0)*u_fog_ground_blend_opacity));} else {fragColor=surface_color;}}","in vec3 a_pos3d;uniform mat4 u_fog_matrix;uniform float u_ele_delta;out vec2 v_texture_pos;out float v_fog_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta);vec4 pos=u_fog_matrix*vec4(a_pos3d.xy,ele,1.0);v_fog_depth=pos.z/pos.w*0.5+0.5;}"),terrainDepth:Ii("in float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {fragColor=pack(v_depth);}","in vec3 a_pos3d;uniform float u_ele_delta;out float v_depth;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);v_depth=gl_Position.z/gl_Position.w;}"),terrainCoords:Ii("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;in vec2 v_texture_pos;void main() {vec4 rgba=texture(u_texture,v_texture_pos);fragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}","in vec3 a_pos3d;uniform float u_ele_delta;out vec2 v_texture_pos;void main() {float ele=get_elevation(a_pos3d.xy);float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/8192.0;gl_Position=projectTileFor3D(a_pos3d.xy,ele-ele_delta);}"),projectionErrorMeasurement:Ii("in vec4 v_output_error_encoded;void main() {fragColor=v_output_error_encoded;}","in vec2 a_pos;uniform highp float u_input;uniform highp float u_output_expected;out vec4 v_output_error_encoded;void main() {float real_output=2.0*atan(exp(PI-(u_input*PI*2.0)))-PI*0.5;float error=real_output-u_output_expected;float abs_error=abs(error)*128.0;v_output_error_encoded.x=min(floor(abs_error*256.0),255.0)/255.0;abs_error-=v_output_error_encoded.x;v_output_error_encoded.y=min(floor(abs_error*65536.0),255.0)/255.0;abs_error-=v_output_error_encoded.x/255.0;v_output_error_encoded.z=min(floor(abs_error*16777216.0),255.0)/255.0;v_output_error_encoded.w=error >=0.0 ? 1.0 : 0.0;gl_Position=vec4(a_pos,0.0,1.0);}"),atmosphere:Ii(`in vec3 view_direction;uniform vec3 u_sun_pos;uniform vec3 u_globe_position;uniform float u_globe_radius;uniform float u_atmosphere_blend;/**Shader use from https:*Made some change to adapt to MapLibre Globe geometry*/const float PI=3.141592653589793;const int iSteps=5;const int jSteps=3;/*radius of the planet*/const float EARTH_RADIUS=6371e3;/*radius of the atmosphere*/const float ATMOS_RADIUS=6471e3;vec2 rsi(vec3 r0,vec3 rd,float sr) {float a=dot(rd,rd);float b=2.0*dot(rd,r0);float c=dot(r0,r0)-(sr*sr);float d=(b*b)-4.0*a*c;if (d < 0.0) return vec2(1e5,-1e5);return vec2((-b-sqrt(d))/(2.0*a),(-b+sqrt(d))/(2.0*a));}vec4 atmosphere(vec3 r,vec3 r0,vec3 pSun,float iSun,float rPlanet,float rAtmos,vec3 kRlh,float kMie,float shRlh,float shMie,float g) {pSun=normalize(pSun);r=normalize(r);vec2 p=rsi(r0,r,rAtmos);if (p.x > p.y) {return vec4(0.0,0.0,0.0,1.0);}if (p.x < 0.0) {p.x=0.0;}vec3 pos=r0+r*p.x;vec2 p2=rsi(r0,r,rPlanet);if (p2.x <=p2.y && p2.x > 0.0) {p.y=min(p.y,p2.x);}float iStepSize=(p.y-p.x)/float(iSteps);float iTime=p.x+iStepSize*0.5;vec3Line truncated
|
||||
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ii("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ii(O,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=a.match(/in ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=I?I.concat(M):M,Y={};return{fragmentSource:O=O.replace(c,(ee,se,ge,Te,ke)=>(Y[ke]=!0,se==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
in ${ge} ${Te} ${ke};
|
||||
);color.rgb=1.0-exp(-1.0*color.rgb);color=pow(color,vec4(1.0/2.2));fragColor=vec4(color.rgb,1.0-color.a)*u_atmosphere_blend;}`,"in vec2 a_pos;uniform mat4 u_inv_proj_matrix;out vec3 view_direction;void main() {view_direction=(u_inv_proj_matrix*vec4(a_pos,0.0,1.0)).xyz;gl_Position=vec4(a_pos,0.0,1.0);}"),sky:Ii("uniform vec4 u_sky_color;uniform vec4 u_horizon_color;uniform vec2 u_horizon;uniform vec2 u_horizon_normal;uniform float u_sky_horizon_blend;uniform float u_sky_blend;void main() {float x=gl_FragCoord.x;float y=gl_FragCoord.y;float blend=(y-u_horizon.y)*u_horizon_normal.y+(x-u_horizon.x)*u_horizon_normal.x;if (blend > 0.0) {if (blend < u_sky_horizon_blend) {fragColor=mix(u_sky_color,u_horizon_color,pow(1.0-blend/u_sky_horizon_blend,2.0));} else {fragColor=u_sky_color;}}fragColor=mix(fragColor,vec4(vec3(0.0),0.0),u_sky_blend);}","in vec2 a_pos;void main() {gl_Position=vec4(a_pos,1.0,1.0);}")};function Ii(O,a){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,C=a.match(/in ([\w]+) ([\w]+)/g),M=O.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),I=a.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=I?I.concat(M):M,Y={};return{fragmentSource:O=O.replace(c,(ee,se,ge,Oe,Ie)=>(Y[Ie]=!0,se==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
in ${ge} ${Oe} ${Ie};
|
||||
#else
|
||||
uniform ${ge} ${Te} u_${ke};
|
||||
uniform ${ge} ${Oe} u_${Ie};
|
||||
#endif
|
||||
`:`
|
||||
#ifdef HAS_UNIFORM_u_${ke}
|
||||
${ge} ${Te} ${ke} = u_${ke};
|
||||
#ifdef HAS_UNIFORM_u_${Ie}
|
||||
${ge} ${Oe} ${Ie} = u_${Ie};
|
||||
#endif
|
||||
`)),vertexSource:a=a.replace(c,(ee,se,ge,Te,ke)=>{const Ge=Te==="float"?"vec2":"vec4",$e=ke.match(/color/)?"color":Ge;return Y[ke]?se==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
uniform lowp float u_${ke}_t;
|
||||
in ${ge} ${Ge} a_${ke};
|
||||
out ${ge} ${Te} ${ke};
|
||||
`)),vertexSource:a=a.replace(c,(ee,se,ge,Oe,Ie)=>{const Ge=Oe==="float"?"vec2":"vec4",Ze=Ie.match(/color/)?"color":Ge;return Y[Ie]?se==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
uniform lowp float u_${Ie}_t;
|
||||
in ${ge} ${Ge} a_${Ie};
|
||||
out ${ge} ${Oe} ${Ie};
|
||||
#else
|
||||
uniform ${ge} ${Te} u_${ke};
|
||||
uniform ${ge} ${Oe} u_${Ie};
|
||||
#endif
|
||||
`:$e==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
${ke} = a_${ke};
|
||||
`:Ze==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
${Ie} = a_${Ie};
|
||||
#else
|
||||
${ge} ${Te} ${ke} = u_${ke};
|
||||
${ge} ${Oe} ${Ie} = u_${Ie};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
${ke} = unpack_mix_${$e}(a_${ke}, u_${ke}_t);
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
${Ie} = unpack_mix_${Ze}(a_${Ie}, u_${Ie}_t);
|
||||
#else
|
||||
${ge} ${Te} ${ke} = u_${ke};
|
||||
${ge} ${Oe} ${Ie} = u_${Ie};
|
||||
#endif
|
||||
`:se==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
uniform lowp float u_${ke}_t;
|
||||
in ${ge} ${Ge} a_${ke};
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
uniform lowp float u_${Ie}_t;
|
||||
in ${ge} ${Ge} a_${Ie};
|
||||
#else
|
||||
uniform ${ge} ${Te} u_${ke};
|
||||
uniform ${ge} ${Oe} u_${Ie};
|
||||
#endif
|
||||
`:$e==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
${ge} ${Te} ${ke} = a_${ke};
|
||||
`:Ze==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
${ge} ${Oe} ${Ie} = a_${Ie};
|
||||
#else
|
||||
${ge} ${Te} ${ke} = u_${ke};
|
||||
${ge} ${Oe} ${Ie} = u_${Ie};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${ke}
|
||||
${ge} ${Te} ${ke} = unpack_mix_${$e}(a_${ke}, u_${ke}_t);
|
||||
#ifndef HAS_UNIFORM_u_${Ie}
|
||||
${ge} ${Oe} ${Ie} = unpack_mix_${Ze}(a_${Ie}, u_${Ie}_t);
|
||||
#else
|
||||
${ge} ${Te} ${ke} = u_${ke};
|
||||
${ge} ${Oe} ${Ie} = u_${Ie};
|
||||
#endif
|
||||
`}),staticAttributes:C,staticUniforms:z}}class bl{constructor(a,c,C){this.vertexBuffer=a,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var $o=o.aG([{name:"a_pos",type:"Int16",components:2}]);const aa="#define PROJECTION_MERCATOR",js="mercator";class jo{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return js}get shaderDefine(){return aa}get shaderPreludeCode(){return jr.projectionMercator}get vertexShaderPreludeCode(){return jr.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aH.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,c,C,M,I){if(this._cachedMesh)return this._cachedMesh;const z=new o.aI;z.emplaceBack(0,0),z.emplaceBack(o.Z,0),z.emplaceBack(0,o.Z),z.emplaceBack(o.Z,o.Z);const Y=a.createVertexBuffer(z,$o.members),ee=o.aJ.simpleSegment(0,0,4,2),se=new o.aK;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ge=a.createIndexBuffer(se);return this._cachedMesh=new bl(Y,ge,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class iA{constructor(a=0,c=0,C=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=c,this.left=C,this.right=M}interpolate(a,c,C){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,C)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,C)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,C)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,C)),this}getCenter(a,c){const C=o.ae((this.left+a-this.right)/2,0,a),M=o.ae((this.top+c-this.bottom)/2,0,c);return new o.P(C,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new iA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function ts(O,a){if(!O.renderWorldCopies||O.lngRange)return;const c=a.lng-O.center.lng;a.lng+=c>180?-360:c<-180?360:0}function Qi(O){return Math.max(0,Math.floor(O))}class _o{constructor(a,c,C,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=I??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.Q(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,C){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new iA(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!C&&a.autoCalculateNearFarZ,c&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(a){this._minZoom!==a&&(this._minZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(a){this._minPitch!==a&&(this._minPitch=a,this.setPitch(Math.max(this.pitch,a)))}get maxPitch(){return this._maxPitch}setMax
Line truncated
|
||||
`}),staticAttributes:C,staticUniforms:z}}class bl{constructor(a,c,C){this.vertexBuffer=a,this.indexBuffer=c,this.segments=C}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var $o=o.aG([{name:"a_pos",type:"Int16",components:2}]);const aa="#define PROJECTION_MERCATOR",js="mercator";class jo{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return js}get shaderDefine(){return aa}get shaderPreludeCode(){return jr.projectionMercator}get vertexShaderPreludeCode(){return jr.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aH.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(a){}getMeshFromTileID(a,c,C,M,I){if(this._cachedMesh)return this._cachedMesh;const z=new o.aI;z.emplaceBack(0,0),z.emplaceBack(o.Z,0),z.emplaceBack(0,o.Z),z.emplaceBack(o.Z,o.Z);const Y=a.createVertexBuffer(z,$o.members),ee=o.aJ.simpleSegment(0,0,4,2),se=new o.aK;se.emplaceBack(1,0,2),se.emplaceBack(1,2,3);const ge=a.createIndexBuffer(se);return this._cachedMesh=new bl(Y,ge,ee),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(a){}}class iA{constructor(a=0,c=0,C=0,M=0){if(isNaN(a)||a<0||isNaN(c)||c<0||isNaN(C)||C<0||isNaN(M)||M<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=a,this.bottom=c,this.left=C,this.right=M}interpolate(a,c,C){return c.top!=null&&a.top!=null&&(this.top=o.B.number(a.top,c.top,C)),c.bottom!=null&&a.bottom!=null&&(this.bottom=o.B.number(a.bottom,c.bottom,C)),c.left!=null&&a.left!=null&&(this.left=o.B.number(a.left,c.left,C)),c.right!=null&&a.right!=null&&(this.right=o.B.number(a.right,c.right,C)),this}getCenter(a,c){const C=o.ae((this.left+a-this.right)/2,0,a),M=o.ae((this.top+c-this.bottom)/2,0,c);return new o.P(C,M)}equals(a){return this.top===a.top&&this.bottom===a.bottom&&this.left===a.left&&this.right===a.right}clone(){return new iA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function ns(O,a){if(!O.renderWorldCopies||O.lngRange)return;const c=a.lng-O.center.lng;a.lng+=c>180?-360:c<-180?360:0}function Qi(O){return Math.max(0,Math.floor(O))}class _o{constructor(a,c,C,M,I,z){this._callbacks=a,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=c||0,this._maxZoom=C||22,this._minPitch=M??0,this._maxPitch=I??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.Q(0,0),this._elevation=0,this._zoom=0,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(a,c,C){this._latRange=a.latRange,this._lngRange=a.lngRange,this._width=a.width,this._height=a.height,this._center=a.center,this._elevation=a.elevation,this._minElevationForCurrentTile=a.minElevationForCurrentTile,this._zoom=a.zoom,this._tileZoom=Qi(this._zoom),this._scale=o.ac(this._zoom),this._bearingInRadians=a.bearingInRadians,this._fovInRadians=a.fovInRadians,this._pitchInRadians=a.pitchInRadians,this._rollInRadians=a.rollInRadians,this._unmodified=a.unmodified,this._edgeInsets=new iA(a.padding.top,a.padding.bottom,a.padding.left,a.padding.right),this._minZoom=a.minZoom,this._maxZoom=a.maxZoom,this._minPitch=a.minPitch,this._maxPitch=a.maxPitch,this._renderWorldCopies=a.renderWorldCopies,this._cameraToCenterDistance=a.cameraToCenterDistance,this._nearZ=a.nearZ,this._farZ=a.farZ,this._autoCalculateNearFarZ=!C&&a.autoCalculateNearFarZ,c&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(a){this._minElevationForCurrentTile=a}get tileSize(){return this._tileSize}get tileZoom(){return this._tileZoom}get scale(){return this._scale}get width(){return this._width}get height(){return this._height}get bearingInRadians(){return this._bearingInRadians}get lngRange(){return this._lngRange}get latRange(){return this._latRange}get pixelsToGLUnits(){return this._pixelsToGLUnits}get minZoom(){return this._minZoom}setMinZoom(a){this._minZoom!==a&&(this._minZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(a){this._maxZoom!==a&&(this._maxZoom=a,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(a){this._minPitch!==a&&(this._minPitch=a,this.setPitch(Math.max(this.pitch,a)))}get maxPitch(){return this._maxPitch}setMax
Line truncated
|
||||
`),It=Bt.concat(jr.prelude.vertexSource,Y.vertexSource,c.vertexSource).join(`
|
||||
`);lt(se)||(St=function(an){return an.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(St),It=function(an){return an.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(It));const kt=se.createShader(se.FRAGMENT_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(kt,St),se.compileShader(kt),!se.getShaderParameter(kt,se.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${se.getShaderInfoLog(kt)}`);se.attachShader(this.program,kt);const Lt=se.createShader(se.VERTEX_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Lt,It),se.compileShader(Lt),!se.getShaderParameter(Lt,se.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${se.getShaderInfoLog(Lt)}`);se.attachShader(this.program,Lt),this.attributes={};const sn={};this.numAttributes=ke.length;for(let an=0;an<this.numAttributes;an++)ke[an]&&(se.bindAttribLocation(this.program,an,ke[an]),this.attributes[ke[an]]=an);if(se.linkProgram(this.program),!se.getProgramParameter(this.program,se.LINK_STATUS))throw new Error(`Program failed to link: ${se.getProgramInfoLog(this.program)}`);se.deleteShader(Lt),se.deleteShader(kt);for(let an=0;an<bt.length;an++){const on=bt[an];if(on&&!sn[on]){const Cn=se.getUniformLocation(this.program,on);Cn&&(sn[on]=Cn)}}this.fixedUniforms=M(a,sn),this.terrainUniforms=((an,on)=>({u_depth:new o.bH(an,on.u_depth),u_terrain:new o.bH(an,on.u_terrain),u_terrain_dim:new o.b8(an,on.u_terrain_dim),u_terrain_matrix:new o.bJ(an,on.u_terrain_matrix),u_terrain_unpack:new o.bK(an,on.u_terrain_unpack),u_terrain_exaggeration:new o.b8(an,on.u_terrain_exaggeration)}))(a,sn),this.projectionUniforms=((an,on)=>({u_projection_matrix:new o.bJ(an,on.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(an,on.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(an,on.u_projection_clipping_plane),u_projection_transition:new o.b8(an,on.u_projection_transition),u_projection_fallback_matrix:new o.bJ(an,on.u_projection_fallback_matrix)}))(a,sn),this.binderUniforms=C?C.getUniforms(a,sn):[]}draw(a,c,C,M,I,z,Y,ee,se,ge,Te,ke,Ge,$e,ft,ct,yt,bt,Bt){const St=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(C),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),ee){a.activeTexture.set(St.TEXTURE2),St.bindTexture(St.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(St.TEXTURE3),St.bindTexture(St.TEXTURE_2D,ee.texture);for(const kt in this.terrainUniforms)this.terrainUniforms[kt].set(ee[kt])}if(se)for(const kt in se)this.projectionUniforms[Jd[kt]].set(se[kt]);if(Y)for(const kt in this.fixedUniforms)this.fixedUniforms[kt].set(Y[kt]);ct&&ct.setUniforms(a,this.binderUniforms,$e,{zoom:ft});let It=0;switch(c){case St.LINES:It=2;break;case St.TRIANGLES:It=3;break;case St.LINE_STRIP:It=1}for(const kt of Ge.get()){const Lt=kt.vaos||(kt.vaos={});(Lt[ge]||(Lt[ge]=new sA)).bind(a,this,Te,ct?ct.getPaintVertexBuffers():[],ke,kt.vertexOffset,yt,bt,Bt),St.drawElements(c,kt.primitiveLength*It,St.UNSIGNED_SHORT,kt.primitiveOffset*It*2)}}}function bc(O,a,c){const C=1/o.az(c,1,a.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),I=c.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=I*(c.tileID.canonical.x+c.tileID.wrap*M),Y=I*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const bs=(O,a,c,C)=>{const M=O.style.light,I=M.properties.get("position"),z=[I.x,I.y,I.z],Y=o.bN();M.properties.get("anchor")==="viewport"&&o.bO(Y,O.transform.bearingInRadians),o.bP(z,z,Y);const ee=O.transform.transformLightDirection(z),se=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:C}},zf=(O,a,c,C,M,I,z)=>o.e(bs(O,a,c,C),bc(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),xc=(O,a,c,C)=>o.e(bc(a,O,c),{u_fill_translate:C}),Qh=(O,a)=>({u_world:O,u_fill_translate:a}),ef=(O,a,c,C,M)=>o.e(xc(O,a,c,M),{u_world:C}),yd=(O,a,c,C,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const se=o.az(a,1,I.zoom);z=!0,Y=[se,se],ee=se/(o.Z*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=I.pixelsToGLUnits;return{u_camera_to_center_distance:I.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:ee,u_translate:C}},Nf=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),vd=O=>({u_viewport_size:[O.width,O.height]}),Yh=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),Cd=(O,a,c,C)=>{const M=o.az(O,1,a)/(o.Z*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:o.a
Line truncated
|
||||
`);lt(se)||(wt=function(ln){return ln.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(wt),It=function(ln){return ln.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(It));const Pt=se.createShader(se.FRAGMENT_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Pt,wt),se.compileShader(Pt),!se.getShaderParameter(Pt,se.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${se.getShaderInfoLog(Pt)}`);se.attachShader(this.program,Pt);const Lt=se.createShader(se.VERTEX_SHADER);if(se.isContextLost())return void(this.failedToCreate=!0);if(se.shaderSource(Lt,It),se.compileShader(Lt),!se.getShaderParameter(Lt,se.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${se.getShaderInfoLog(Lt)}`);se.attachShader(this.program,Lt),this.attributes={};const sn={};this.numAttributes=Ie.length;for(let ln=0;ln<this.numAttributes;ln++)Ie[ln]&&(se.bindAttribLocation(this.program,ln,Ie[ln]),this.attributes[Ie[ln]]=ln);if(se.linkProgram(this.program),!se.getProgramParameter(this.program,se.LINK_STATUS))throw new Error(`Program failed to link: ${se.getProgramInfoLog(this.program)}`);se.deleteShader(Lt),se.deleteShader(Pt);for(let ln=0;ln<bt.length;ln++){const on=bt[ln];if(on&&!sn[on]){const Cn=se.getUniformLocation(this.program,on);Cn&&(sn[on]=Cn)}}this.fixedUniforms=M(a,sn),this.terrainUniforms=((ln,on)=>({u_depth:new o.bH(ln,on.u_depth),u_terrain:new o.bH(ln,on.u_terrain),u_terrain_dim:new o.b8(ln,on.u_terrain_dim),u_terrain_matrix:new o.bJ(ln,on.u_terrain_matrix),u_terrain_unpack:new o.bK(ln,on.u_terrain_unpack),u_terrain_exaggeration:new o.b8(ln,on.u_terrain_exaggeration)}))(a,sn),this.projectionUniforms=((ln,on)=>({u_projection_matrix:new o.bJ(ln,on.u_projection_matrix),u_projection_tile_mercator_coords:new o.bK(ln,on.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bK(ln,on.u_projection_clipping_plane),u_projection_transition:new o.b8(ln,on.u_projection_transition),u_projection_fallback_matrix:new o.bJ(ln,on.u_projection_fallback_matrix)}))(a,sn),this.binderUniforms=C?C.getUniforms(a,sn):[]}draw(a,c,C,M,I,z,Y,ee,se,ge,Oe,Ie,Ge,Ze,dt,ct,pt,bt,Bt){const wt=a.gl;if(this.failedToCreate)return;if(a.program.set(this.program),a.setDepthMode(C),a.setStencilMode(M),a.setColorMode(I),a.setCullFace(z),ee){a.activeTexture.set(wt.TEXTURE2),wt.bindTexture(wt.TEXTURE_2D,ee.depthTexture),a.activeTexture.set(wt.TEXTURE3),wt.bindTexture(wt.TEXTURE_2D,ee.texture);for(const Pt in this.terrainUniforms)this.terrainUniforms[Pt].set(ee[Pt])}if(se)for(const Pt in se)this.projectionUniforms[nf[Pt]].set(se[Pt]);if(Y)for(const Pt in this.fixedUniforms)this.fixedUniforms[Pt].set(Y[Pt]);ct&&ct.setUniforms(a,this.binderUniforms,Ze,{zoom:dt});let It=0;switch(c){case wt.LINES:It=2;break;case wt.TRIANGLES:It=3;break;case wt.LINE_STRIP:It=1}for(const Pt of Ge.get()){const Lt=Pt.vaos||(Pt.vaos={});(Lt[ge]||(Lt[ge]=new sA)).bind(a,this,Oe,ct?ct.getPaintVertexBuffers():[],Ie,Pt.vertexOffset,pt,bt,Bt),wt.drawElements(c,Pt.primitiveLength*It,wt.UNSIGNED_SHORT,Pt.primitiveOffset*It*2)}}}function bc(O,a,c){const C=1/o.az(c,1,a.transform.tileZoom),M=Math.pow(2,c.tileID.overscaledZ),I=c.tileSize*Math.pow(2,a.transform.tileZoom)/M,z=I*(c.tileID.canonical.x+c.tileID.wrap*M),Y=I*c.tileID.canonical.y;return{u_image:0,u_texsize:c.imageAtlasTexture.size,u_scale:[C,O.fromScale,O.toScale],u_fade:O.t,u_pixel_coord_upper:[z>>16,Y>>16],u_pixel_coord_lower:[65535&z,65535&Y]}}const xs=(O,a,c,C)=>{const M=O.style.light,I=M.properties.get("position"),z=[I.x,I.y,I.z],Y=o.bN();M.properties.get("anchor")==="viewport"&&o.bO(Y,O.transform.bearingInRadians),o.bP(z,z,Y);const ee=O.transform.transformLightDirection(z),se=M.properties.get("color");return{u_lightpos:z,u_lightpos_globe:ee,u_lightintensity:M.properties.get("intensity"),u_lightcolor:[se.r,se.g,se.b],u_vertical_gradient:+a,u_opacity:c,u_fill_translate:C}},Wf=(O,a,c,C,M,I,z)=>o.e(xs(O,a,c,C),bc(I,O,z),{u_height_factor:-Math.pow(2,M.overscaledZ)/z.tileSize/8}),xc=(O,a,c,C)=>o.e(bc(a,O,c),{u_fill_translate:C}),qh=(O,a)=>({u_world:O,u_fill_translate:a}),rf=(O,a,c,C,M)=>o.e(xc(O,a,c,M),{u_world:C}),Cd=(O,a,c,C,M)=>{const I=O.transform;let z,Y,ee=0;if(c.paint.get("circle-pitch-alignment")==="map"){const se=o.az(a,1,I.zoom);z=!0,Y=[se,se],ee=se/(o.Z*Math.pow(2,a.tileID.overscaledZ))*2*Math.PI*M}else z=!1,Y=I.pixelsToGLUnits;return{u_camera_to_center_distance:I.cameraToCenterDistance,u_scale_with_map:+(c.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:O.pixelRatio,u_extrude_scale:Y,u_globe_extrude_scale:ee,u_translate:C}},jf=O=>({u_pixel_extrude_scale:[1/O.width,1/O.height]}),_d=O=>({u_viewport_size:[O.width,O.height]}),Vh=(O,a=1)=>({u_color:O,u_overlay:0,u_overlay_scale:a}),bd=(O,a,c,C)=>{const M=o.az(O,1,a)/(o.Z*Math.pow(2,O.tileID.overscaledZ))*2*Math.PI*C;return{u_extrude_scale:o.a
Line truncated
|
||||
uniform mat4 u_projection_matrix;
|
||||
${Ge.shaderPreludeCode.vertexSource}`,define:Ge.shaderDefine},defaultProjectionData:ft},yt=ke.renderingMode?ke.renderingMode:"2d";if(z.renderPass==="offscreen"){const bt=ke.prerender;bt&&(z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),bt.call(ke,Te.gl,ct),Te.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Te.setColorMode(z.colorModeForRenderPass()),Te.setStencilMode(J.disabled);const bt=yt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Sr.ReadOnly);Te.setDepthMode(bt),ke.render(Te.gl,ct),Te.setDirty(),z.setBaseState(),Te.bindFramebuffer.set(null)}}(a,0,C,I))}saveTileTexture(a){const c=this._tileTextures[a.size[0]];c?c.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const c=this._tileTextures[a];return c&&c.length>0?c.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const c=this.imageManager.getPattern(a.from.toString()),C=this.imageManager.getPattern(a.to.toString());return!c||!C}useProgram(a,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,I=this.style.projection,z=a+(c?c.cacheKey:"")+`/${C?js:I.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[z]||(this.cache[z]=new Gh(this.context,jr[a],c,el[a],this._showOverdrawInspector,M,C?jr.projectionMercator:I.shaderPreludeCode,C?aa:I.shaderDefine)),this.cache[z]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new ie(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:c}=this.context.gl;return this.width!==a||this.height!==c}}function OA(O,a){let c,C=!1,M=null,I=null;const z=()=>{M=null,C&&(O.apply(I,c),M=setTimeout(z,a),C=!1)};return(...Y)=>(C=!0,I=this,c=Y,M||z(),M)}class wu{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let I=window.location.hash.replace(M,"");I.startsWith("#&")?I=I.slice(0,1)+I.slice(2):I==="#"&&(I="");let z=window.location.href.replace(/(#.+)?$/,I);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=OA(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),z=Math.round(c.lng*I)/I,Y=Math.round(c.lat*I)/I,ee=this._map.getBearing(),se=this._map.getPitch();let ge="";if(ge+=a?`/${z}/${Y}/${C}`:`${C}/${Y}/${z}`,(ee||se)&&(ge+="/"+Math.round(10*ee)/10),se&&(ge+=`/${Math.round(se)}`),this._hashName){const Te=this._hashName;let ke=!1;const Ge=window.location.hash.slice(1).split("&").map($e=>{const ft=$e.split("=")[0];return ft===Te?(ke=!0,`${ft}=${ge}`):$e}).filter($e=>$e);return ke||Ge.push(`${Te}=${ge}`),`#${Ge.join("&")}`}return`#${ge}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.Q(+a[2],+a[1])}catch{return!1}const c=+a[0],C=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=-180&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const pl={linearity:.3,easing:o.cb(0,0,.3,1)},IA=o.e({deceleration:2500,maxSpeed:1400},pl
Line truncated
|
||||
${Ge.shaderPreludeCode.vertexSource}`,define:Ge.shaderDefine},defaultProjectionData:dt},pt=Ie.renderingMode?Ie.renderingMode:"2d";if(z.renderPass==="offscreen"){const bt=Ie.prerender;bt&&(z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),bt.call(Ie,Oe.gl,ct),Oe.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Oe.setColorMode(z.colorModeForRenderPass()),Oe.setStencilMode(J.disabled);const bt=pt==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,Sr.ReadOnly);Oe.setDepthMode(bt),Ie.render(Oe.gl,ct),Oe.setDirty(),z.setBaseState(),Oe.bindFramebuffer.set(null)}}(a,0,C,I))}saveTileTexture(a){const c=this._tileTextures[a.size[0]];c?c.push(a):this._tileTextures[a.size[0]]=[a]}getTileTexture(a){const c=this._tileTextures[a];return c&&c.length>0?c.pop():null}isPatternMissing(a){if(!a)return!1;if(!a.from||!a.to)return!0;const c=this.imageManager.getPattern(a.from.toString()),C=this.imageManager.getPattern(a.to.toString());return!c||!C}useProgram(a,c,C=!1){this.cache=this.cache||{};const M=!!this.style.map.terrain,I=this.style.projection,z=a+(c?c.cacheKey:"")+`/${C?js:I.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(M?"/terrain":"");return this.cache[z]||(this.cache[z]=new Yh(this.context,jr[a],c,tl[a],this._showOverdrawInspector,M,C?jr.projectionMercator:I.shaderPreludeCode,C?aa:I.shaderDefine)),this.cache[z]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const a=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(a.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new oe(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:a,drawingBufferHeight:c}=this.context.gl;return this.width!==a||this.height!==c}}function IA(O,a){let c,C=!1,M=null,I=null;const z=()=>{M=null,C&&(O.apply(I,c),M=setTimeout(z,a),C=!1)};return(...Y)=>(C=!0,I=this,c=Y,M||z(),M)}class wu{constructor(a){this._getCurrentHash=()=>{const c=window.location.hash.replace("#","");if(this._hashName){let C;return c.split("&").map(M=>M.split("=")).forEach(M=>{M[0]===this._hashName&&(C=M)}),(C&&C[1]||"").split("/")}return c.split("/")},this._onHashChange=()=>{const c=this._getCurrentHash();if(!this._isValidHash(c))return!1;const C=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(c[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:C,pitch:+(c[4]||0)}),!0},this._updateHashUnthrottled=()=>{const c=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,c)},this._removeHash=()=>{const c=this._getCurrentHash();if(c.length===0)return;const C=c.join("/");let M=C;M.split("&").length>0&&(M=M.split("&")[0]),this._hashName&&(M=`${this._hashName}=${C}`);let I=window.location.hash.replace(M,"");I.startsWith("#&")?I=I.slice(0,1)+I.slice(2):I==="#"&&(I="");let z=window.location.href.replace(/(#.+)?$/,I);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=IA(this._updateHashUnthrottled,300),this._hashName=a&&encodeURIComponent(a)}addTo(a){return this._map=a,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),this._removeHash(),delete this._map,this}getHashString(a){const c=this._map.getCenter(),C=Math.round(100*this._map.getZoom())/100,M=Math.ceil((C*Math.LN2+Math.log(512/360/.5))/Math.LN10),I=Math.pow(10,M),z=Math.round(c.lng*I)/I,Y=Math.round(c.lat*I)/I,ee=this._map.getBearing(),se=this._map.getPitch();let ge="";if(ge+=a?`/${z}/${Y}/${C}`:`${C}/${Y}/${z}`,(ee||se)&&(ge+="/"+Math.round(10*ee)/10),se&&(ge+=`/${Math.round(se)}`),this._hashName){const Oe=this._hashName;let Ie=!1;const Ge=window.location.hash.slice(1).split("&").map(Ze=>{const dt=Ze.split("=")[0];return dt===Oe?(Ie=!0,`${dt}=${ge}`):Ze}).filter(Ze=>Ze);return Ie||Ge.push(`${Oe}=${ge}`),`#${Ge.join("&")}`}return`#${ge}`}_isValidHash(a){if(a.length<3||a.some(isNaN))return!1;try{new o.Q(+a[2],+a[1])}catch{return!1}const c=+a[0],C=+(a[3]||0),M=+(a[4]||0);return c>=this._map.getMinZoom()&&c<=this._map.getMaxZoom()&&C>=-180&&C<=180&&M>=this._map.getMinPitch()&&M<=this._map.getMaxPitch()}}const ml={linearity:.3,easing:o.cb(0,0,.3,1)},TA=o.e({deceleration:2500,maxSpeed:1400},ml
Line truncated
|
||||
${e} <span></span>
|
||||
`,Hs().s[12]++,this._textEl=this._container.querySelector("span"),Hs().s[13]++,this.updateZoomLevel()}addEventListeners(){Hs().f[4]++,Hs().s[14]++,this._map.on("render",()=>(Hs().f[5]++,Hs().s[15]++,this.updateZoomLevel())),Hs().s[16]++,this._map.on("zoomIn",()=>(Hs().f[6]++,Hs().s[17]++,this.updateZoomLevel())),Hs().s[18]++,this._map.on("zoomOut",()=>(Hs().f[7]++,Hs().s[19]++,this.updateZoomLevel()))}onRemove(){Hs().f[8]++,Hs().s[20]++,this._container.parentNode.removeChild(this._container),Hs().s[21]++,this._map=void 0}}function e6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function t6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function n6(n,e,t){const r={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function yH(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const f=s(l);r.push(e6(f.circle,l)),i.push(n6(f.line,l)),t.push(t6(f.polygon,f.polygonOutline,l))}else o.forEach(f=>{const v=s(f);r.push(e6(v.circle,l,f)),i.push(n6(v.line,l,f)),t.push(t6(v.polygon,v.polygonOutline,l,f))})}),t.concat(i).concat(r)}function vH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const $3={polygonLayer:t6,lineLayer:n6,circleLayer:e6,generateInspectStyle:vH,generateColoredLayers:yH};function yo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s
Line truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=IH.language(this.options.language.split(",")[0]);return this.options.language&&(cv!=null&&cv[e][t])?cv[e][t]:cv[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=sp({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=sp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=sp({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=sp({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=sp(r,{element:s}));const l=new this._maplibregl.Marker(sp({},r,{element:s}));let o;if(this.options.popup){const v=sp({},{},this.options.popup);o=new this._maplibregl.Popup(v).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function En(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},eLine truncated
|
||||
`);o(U,N,W)?(LC(y6),V1=null,g6=void 0,Fp.set(P,100)):(Fp.set(P,Fp.get(P)+1,!0),v=!1)}}v&&(clearInterval(s),s=void 0)}return function(v){const x=RL(v);if(!x)return;const B=x.families;for(let k=0,P=B.length;k<P;++k){const U=B[k],N=x.style+`
|
||||
`,Hs().s[12]++,this._textEl=this._container.querySelector("span"),Hs().s[13]++,this.updateZoomLevel()}addEventListeners(){Hs().f[4]++,Hs().s[14]++,this._map.on("render",()=>(Hs().f[5]++,Hs().s[15]++,this.updateZoomLevel())),Hs().s[16]++,this._map.on("zoomIn",()=>(Hs().f[6]++,Hs().s[17]++,this.updateZoomLevel())),Hs().s[18]++,this._map.on("zoomOut",()=>(Hs().f[7]++,Hs().s[19]++,this.updateZoomLevel()))}onRemove(){Hs().f[8]++,Hs().s[20]++,this._container.parentNode.removeChild(this._container),Hs().s[21]++,this._map=void 0}}function l6(n,e,t){const r={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(r["source-layer"]=t),r}function A6(n,e,t,r){const i={id:[t,r,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return r&&(i["source-layer"]=r),i}function u6(n,e,t){const r={id:[e,t,"line"].join("_"),source:e,layout:{"line-join":"round","line-cap":"round"},type:"line",paint:{"line-color":n},filter:["==","$type","LineString"]};return t&&(r["source-layer"]=t),r}function PH(n,e){const t=[],r=[],i=[];function s(l){return{circle:e(l,.8),line:e(l,.6),polygon:e(l,.3),polygonOutline:e(l,.6),default:e(l,1)}}return Object.keys(n).forEach(l=>{const o=n[l];if(!o||o.length===0){const p=s(l);r.push(l6(p.circle,l)),i.push(u6(p.line,l)),t.push(A6(p.polygon,p.polygonOutline,l))}else o.forEach(p=>{const v=s(p);r.push(l6(v.circle,l,p)),i.push(u6(v.line,l,p)),t.push(A6(v.polygon,v.polygonOutline,l,p))})}),t.concat(i).concat(r)}function KH(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const r={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},i={};return Object.keys(n.sources).forEach(s=>{const l=n.sources[s];(l.type==="vector"||l.type==="geojson")&&(i[s]=l)}),Object.assign(n,{layers:[r].concat(e),sources:i})}const r4={polygonLayer:A6,lineLayer:u6,circleLayer:l6,generateInspectStyle:KH,generateColoredLayers:PH};function yo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",statementMap:{0:{start:{line:4,column:2},end:{line:8,column:3}},1:{start:{line:5,column:4},end:{line:5,column:33}},2:{start:{line:6,column:9},end:{line:8,column:3}},3:{start:{line:7,column:4},end:{line:7,column:30}},4:{start:{line:9,column:2},end:{line:13,column:3}},5:{start:{line:10,column:4},end:{line:10,column:28}},6:{start:{line:12,column:4},end:{line:12,column:23}},7:{start:{line:14,column:2},end:{line:14,column:29}},8:{start:{line:15,column:2},end:{line:15,column:11}},9:{start:{line:18,column:2},end:{line:18,column:84}},10:{start:{line:18,column:72},end:{line:18,column:84}},11:{start:{line:19,column:24},end:{line:19,column:51}},12:{start:{line:20,column:16},end:{line:20,column:52}},13:{start:{line:21,column:2},end:{line:23,column:3}},14:{start:{line:22,column:4},end:{line:22,column:104}},15:{start:{line:24,column:2},end:{line:26,column:3}},16:{start:{line:25,column:4},end:{line:25,column:96}},17:{start:{line:27,column:2},end:{line:29,column:3}},18:{start:{line:28,column:4},end:{line:28,column:94}},19:{start:{line:30,column:2},end:{line:30,column:14}}},fnMap:{0:{name:"changeLayer",decl:{start:{line:3,column:9},end:{line:3,column:20}},loc:{start:{line:3,column:31},end:{line:16,column:1}},line:3},1:{name:"colorHighlightedLayer",decl:{start:{line:17,column:16},end:{line:17,column:37}},loc:{start:{line:17,column:45},end:{line:31,column:1}},line:17}},branchMap:{0:{loc:{start:{line:4,column:2},end:{line:8,column:3}},type:"if",locations:[{start:{line:4,column:2},end:{line:8,column:3}},{start:{line:6,column:9},end:{line:8,column:3}}],line:4},1:{loc:{start:{line:6,column:9},end:{line:8,column:3}},type:"if",locations:[{start:{line:6,column:9},end:{line:8,column:3}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:6},2:{loc:{start:{line:9,column:2},end:{line:13,column:3}},type:"if",locations:[{start:{line:9,column:2},end:{line:13,column:3}},{start:{line:11,column:9},end:{line:13,column:3}}],line:9},3:{loc:{start:{line:18,column:2},end:{line:18,column:84}},type:"if",locations:[{start:{line:18,column:2},end:{line:18,column:84}},{start:{line:void 0,column:void 0},end:{line:void 0,column:void 0}}],line:18},4:{loc:{start:{line:18,column:6},end:{line:18,column:70}},type:"binary-expr",locations:[{start:{line:18,column:6},end:{line:18,column:12}},{start:{line:18,column:16},end:{line:18,column:43}},{start:{line:18,column:47},end:{line:18,column:70}}],line:18},5:{loc:{start:{line:19,column:24},end:{line:19,column:51}},type:"binary-expr",locations:[{start:{line:19,column:24},end:{line:19,column:45}},{start:{line:19,column:49},end:{line:19,column:51}}],line:19},6:{loc:{start:{line:21,column:2},end:{line:23,column:3}},type:"if",locations:[{start:{line:21,column:2},end:{line:23,column:3}},{s
Line truncated
|
||||
${this._localize("errorNoResults")}</div>`;this._renderMessage(e)}_renderMessage(e){this._typeahead.update([]),this._typeahead.selected=null,this._typeahead.clear(),this._typeahead.renderError(e)}_localize(e){const t=QH.language(this.options.language.split(",")[0]);return this.options.language&&(fv!=null&&fv[e][t])?fv[e][t]:fv[e].en}_fitBoundsForMarkers(){if(this._typeahead.data.length<1)return;const e=this._typeahead.data.filter(t=>typeof t!="string").slice(0,this.options.limit);if(this._clearEl.style.display="none",this.options.flyTo&&this._maplibregl&&this._map){const r=lp({},{padding:100},this.options.flyTo),i=new this._maplibregl.LngLatBounds;for(const s of e)i.extend(s.geometry.coordinates);this._map.fitBounds(i,r)}return e.length>0&&this._maplibregl&&this._handleResultMarkers(e),this}setInput(e){return this._inputEl.value=e,this._typeahead.selected=null,this._typeahead.clear(),e.length>=this.options.minLength&&this.options.showResultsWhileTyping&&this._geocode(e),this}setProximity(e){return this.options.proximity=e,this}getProximity(){return this.options.proximity}setRenderFunction(e){return e&&typeof e=="function"&&(this._typeahead.render=e),this}getRenderFunction(){return this._typeahead.render}setLanguage(e){return this.options.language=e||this.options.language||navigator.language,this}getLanguage(){return this.options.language}getZoom(){return this.options.zoom}setZoom(e){return this.options.zoom=e,this}getFlyTo(){return this.options.flyTo}setFlyTo(e){return this.options.flyTo=e,this}getPlaceholder(){return this.options.placeholder}setPlaceholder(e){return this.placeholder=e||this.options.placeholder||this._localize("placeholder"),this._inputEl.placeholder=this.placeholder,this._inputEl.setAttribute("aria-label",this.placeholder),this}getBbox(){return this.options.bbox}setBbox(e){return this.options.bbox=e,this}getCountries(){return this.options.countries}setCountries(e){return this.options.countries=e,this}getTypes(){return this.options.types}setTypes(e){return this.options.types=e,this}getMinLength(){return this.options.minLength}setMinLength(e){return this.options.minLength=e,this._typeahead&&(this._typeahead.options.minLength=e),this}getLimit(){return this.options.limit}setLimit(e){return this.options.limit=e,this._typeahead&&(this._typeahead.options.limit=e),this}getFilter(){return this.options.filter}setFilter(e){return this.options.filter=e,this}setGeocoderApi(e){return this.geocoderApi=e,this}getGeocoderApi(){return this.geocoderApi}_handleMarker(e){if(!this._map)return;this._removeMarker();const r=lp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(r);let i;if(this.options.popup){const l=lp({},{},this.options.popup);i=new this._maplibregl.Popup(l).setHTML(this.options.popupRender(e))}return e.center?(this.mapMarker.setLngLat(e.center).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)):e.geometry&&e.geometry.type&&e.geometry.type==="Point"&&e.geometry.coordinates&&(this.mapMarker.setLngLat(e.geometry.coordinates).addTo(this._map),this.options.popup&&this.mapMarker.setPopup(i)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let r=lp({},{color:"#4668F2"},this.options.showResultMarkers);for(const i of e){let s;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(s=this.options.showResultMarkers.element.cloneNode(!0),r=lp(r,{element:s}));const l=new this._maplibregl.Marker(lp({},r,{element:s}));let o;if(this.options.popup){const v=lp({},{},this.options.popup);o=new this._maplibregl.Popup(v).setHTML(this.options.popupRender(i))}i.center?(l.setLngLat(i.center).addTo(this._map),this.options.popup&&l.setPopup(o)):i.geometry&&i.geometry.type&&i.geometry.type==="Point"&&i.geometry.coordinates&&(l.setLngLat(i.geometry.coordinates).addTo(this._map),this.options.popup&&l.setPopup(o)),this.resultMarkers.push(l)}}return this}_removeResultMarkers(){this.resultMarkers&&this.resultMarkers.length>0&&(this.resultMarkers.forEach(function(e){e.remove()}),this.resultMarkers=[])}on(e,t){return this._eventEmitter.on(e,t),this}once(e){return new Promise(t=>{this._eventEmitter.once(e,t)})}off(e,t){return this._eventEmitter.removeListener(e,t),this}}function En(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="300acb3537cd75ba7433c8df32ce2e40c6bb2cf5",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:2},end:{line:21,column:36}},1:{start:{line:22,column:2},end:{line:22,column:19}},2:{start:{line:25,column:26},end:{line:31,column:3}},3:{start:{line:32,column:16},end:{line:32,column:55}},4:{start:{line:33,column:2},end:{line:35,column:3}},5:{start:{line:34,column:4},end:{line:34,column:30}},6:{start:{line:36,column:18},end:{line:36,column:20}},7:{start:{line:37,column:2},eLine truncated
|
||||
`);o(D,N,W)?(WC(S6),Z1=null,w6=void 0,Np.set(P,100)):(Np.set(P,Np.get(P)+1,!0),v=!1)}}v&&(clearInterval(s),s=void 0)}return function(v){const x=QL(v);if(!x)return;const B=x.families;for(let k=0,P=B.length;k<P;++k){const D=B[k],N=x.style+`
|
||||
`+x.weight+`
|
||||
`+U;Fp.get(N)===void 0&&(Fp.set(N,100,!0),o(x.style,x.weight,U)||(Fp.set(N,0,!0),s===void 0&&(s=setInterval(f,32))))}}}(),IZ=function(){let n;return function(e){let t=y6[e];if(t==null){if(OL){const r=RL(e),i=LL(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);y6[e]=t}return t}}();function LL(n,e){return V1||(V1=xA(1,1)),n!=g6&&(V1.font=n,g6=V1.font),V1.measureText(e)}function A2(n,e){return LL(n,e).width}function yI(n,e,t){if(e in t)return t[e];const r=e.split(`
|
||||
`).reduce((i,s)=>Math.max(i,A2(n,s)),0);return t[e]=r,r}function TZ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,f=0;for(let v=0,x=e.length;v<=x;v+=2){const B=e[v];if(B===`
|
||||
`||v===x){s=Math.max(s,l),i.push(l),l=0,o+=f,f=0;continue}const k=e[v+1]||n.font,P=A2(k,B);t.push(P),l+=P;const U=IZ(k);r.push(U),f=Math.max(f,U)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function kZ(n,e,t,r,i,s,l,o,f,v,x){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(f,v),n.scale(x[0],x[1]),PZ(r,n)):x[0]<0||x[1]<0?(n.translate(f,v),n.scale(x[0],x[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,f,v,l*x[0],o*x[1]),n.restore()}function PZ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}function vI(n){return n[0]>0&&n[1]>0}function KZ(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]*e+.5|0,t[1]=n[1]*e+.5|0,t}function fh(n,e){return Array.isArray(n)?n:(e===void 0?e=[n,n]:(e[0]=n,e[1]=n),e)}class xx{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=fh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new xx({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return vo()}getImage(e){return vo()}getHitDetectionImage(){return vo()}getPixelRatio(e){return 1}getImageState(){return vo()}getImageSize(){return vo()}getOrigin(){return vo()}getSize(){return vo()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=fh(e)}listenImageChange(e){vo()}load(){vo()}unlistenImageChange(e){vo()}ready(){return Promise.resolve()}}class Mx extends xx{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?fi.LOADING:fi.LOADED,this.imageState_===fi.LOADING&&this.ready().then(()=>this.imageState_=fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Mx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){var s,l;const t=(s=this.fill_)==null?void 0:s.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(l=If.get(r,null,null))==null?void 0:l.getImage(1);if(!i){const o=this.renderOptions_,f=Math.ceil(o.size*e),v=xA(f,f);this.draw_(o,v,e),i=v.canvas,If.set(r,null,null,new KL(i,void 0,null,fi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const ne=i;i=s,s=ne}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,f=s*Math.sin(o),v=Math.sqrt(s*s-f*f),x=i-v,B=Math.sqrt(f*f+x*x),k=B/f;if(e==="miter"&&k<=r)return k*t;const P=t/2/k,U=t/2*(x/B),W=Math.sqrt((i+P)*(i+P)+U*U)-i;if(this.radius2_===void 0||e==="bevel")return W*2;con
Line truncated
|
||||
`,""),n.push(e,""),n}function hX(n,e,t){return t%2===0&&(n+=e),n}class dX{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=md(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new JB:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,f=this.textStates[t],v=this.pixelRatio,x=[f.scale[0]*v,f.scale[1]*v],B=f.justify?h2[f.justify]:_4(Array.isArray(e)?e[0]:e,f.textAlign||_C),k=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(cX,[]),{width:U,height:N,widths:W,heights:V,lineWidths:$}=TZ(f,P),oe=U+k,te=[],q=(oe+2)*x[0],ne=(N+k)*x[1],G={width:q<0?Math.floor(q):Math.ceil(q),height:ne<0?Math.floor(ne):Math.ceil(ne),contextInstructions:te};(x[0]!=1||x[1]!=1)&&te.push("scale",x),i&&(te.push("strokeStyle",l.strokeStyle),te.push("lineWidth",k),te.push("lineCap",l.lineCap),te.push("lineJoin",l.lineJoin),te.push("miterLimit",l.miterLimit),te.push("setLineDash",[l.lineDash]),te.push("lineDashOffset",l.lineDashOffset)),r&&te.push("fillStyle",o.fillStyle),te.push("textBaseline","middle"),te.push("textAlign","center");const ie=.5-B;let de=B*oe+ie*k;const fe=[],Ee=[];let me=0,Me=0,Le=0,xe=0,pt;for(let Je=0,Ve=P.length;Je<Ve;Je+=2){const je=P[Je];if(je===`
|
||||
`){Me+=me,me=0,de=B*oe+ie*k,++xe;continue}const Se=P[Je+1]||f.font;Se!==pt&&(i&&fe.push("font",Se),r&&Ee.push("font",Se),pt=Se),me=Math.max(me,V[Le]);const Fe=[je,de+ie*W[Le]+B*(W[Le]-$[xe]),.5*(k+me)+Me];de+=W[Le],i&&fe.push("strokeText",Fe),r&&Ee.push("fillText",Fe),++Le}return Array.prototype.push.apply(te,fe),Array.prototype.push.apply(te,Ee),this.labels_[s]=G,G}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,f,v,x,B,k,P,U,N,W){o*=k[0],f*=k[1];let V=r-o,$=i-f;const oe=s+v>e?e-v:s,te=l+x>t?t-x:l,q=U[3]+oe*k[0]+U[1],ne=U[0]+te*k[1]+U[2],G=V-U[3],ie=$-U[0];(N||B!==0)&&(m0[0]=G,g0[0]=G,m0[1]=ie,Om[1]=ie,Om[0]=G+q,Im[0]=Om[0],Im[1]=ie+ne,g0[1]=Im[1]);let de;return B!==0?(de=nm(md(),r,i,1,1,B,-r,-i),Lu(de,m0),Lu(de,Om),Lu(de,Im),Lu(de,g0),zm(Math.min(m0[0],Om[0],Im[0],g0[0]),Math.min(m0[1],Om[1],Im[1],g0[1]),Math.max(m0[0],Om[0],Im[0],g0[0]),Math.max(m0[1],Om[1],Im[1],g0[1]),y1)):zm(Math.min(G,G+q),Math.min(ie,ie+ne),Math.max(G,G+q),Math.max(ie,ie+ne),y1),P&&(V=Math.round(V),$=Math.round($)),{drawImageX:V,drawImageY:$,drawImageW:oe,drawImageH:te,originX:v,originY:x,declutterBox:{minX:y1[0],minY:y1[1],maxX:y1[2],maxY:y1[3],value:W},canvasTransform:de,scale:k}}replayImageOrLabel_(e,t,r,i,s,l,o){const f=!!(l||o),v=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return v.minX-x<=t[0]&&v.maxX+x>=0&&v.minY-x<=t[1]&&v.maxY+x>=0&&(f&&this.replayTextBackground_(e,m0,Om,Im,g0,l,o),kZ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=Lu(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],f=this.pixelRatio,v=_4(Array.isArray(e)?e[0]:e,s.textAlign||_C),x=h2[s.textBaseline||l2],B=o&&o.lineWidth?o.lineWidth:0,k=l.width/f-2*s.scale[0],P=v*k+2*(.5-v)*B,U=x*l.height/f+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:U}}execute_(e,t,r,i,s,l,o,f){const v=this.zIndexContext_;let x;this.pixelCoordinates_&&W0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=F0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),q$(this.renderedTransform_,r));let B=0;const k=i.length;let P=0,U,N,W,V,$,oe,te,q,ne,G,ie,de,fe,Ee=0,me=0;const Me=this.coordinateCache_,Le=this.viewRotation_,xe=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,pt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Le},Je=this.instructions!=i||this.overlaps?0:200;let Ve,je,Se,Fe;for(;B<k;){const Ze=i[B];switch(Ze[0]){case Hi.BEGIN_GEOMETRY:Ve=Ze[1],Fe=Ze[3],Ve.getGeometry()?o!==void 0&&!HA(o,Fe.getExtent())?B=Ze[2]+1:++B:B=Ze[2],v&&(v.zIndex=Ze[4]);break;case Hi.BEGIN_PATH:Ee>Je&&(this.fill_(e),Ee=0),me>Je&&(e.stroke(),me=0),!Ee&&!me&&(e.beginPath(),$=NaN,oe=NaN),++B;break;case Hi.CIRCLE:P=Ze[1];const Qt=x[P],gt=x[P+1],Ut=x[P+2],Pt=x[P+3],ze=Ut-Qt,Ke=Pt-gt,Oe=Math.sqrt(ze*ze+Ke*Ke);e.moveTo(Qt+Oe,gt),e.arc(Qt,gt,Oe,0,2*Math.PI,!0),++B;break;case Hi.CLOSE_PATH:e.closePath(),++B;break;case Hi.CUSTOM:P=Ze[1],U=Ze[2];const it=Ze[3],Ct=Ze[4],dt=Ze[5];pt.geometry=it,pt.feature=Ve,B in Me||(Me[B]=[]);const Dt=Me[B];dt?dt(x,P,U,2,Dt):(Dt[0]=x[P],Dt[1]=x[P+1],Dt.length=2),v&&(v.zIndex=Ze[6]),Ct(Dt,pt),++B;break;case Hi.DRAW_IMAGE:P=Ze[1],U=Ze[2],ne=Ze[3],N=Ze[4],W=Ze[5];let $t=Ze[6];const Rt=Ze[7],bn=Ze[8],Yn=Ze[9],rn=Ze[10];let er=Ze[11];const Tn=Ze[12];let gn=Ze[13];V=Ze[14]||"declutter";const Ln=Ze[15];if(!ne&&Ze.length>=20){G=Ze[19],ie=Ze[20],de=Ze[21],fe=Ze[22];const Gt=this.drawLabelWithPointPlacement_(G,ie,de,fe);ne=Gt.label,Ze[3]=ne;const Nt=Ze[23];N=(Gt.anchorX-Nt)*this.pixelRatio,Ze[4]=N;const nn=Ze[24];W=(Gt.anchorY-nn)*this.pixelRatio,Ze[5]=W,$t=ne.height,Ze[6]=$t,gn=ne.width,Ze[13]=gn}let br;Ze.length>25&&(br=Ze[25]);let mr,tr,Ye;Ze.length>17?(mr=Ze[16],tr=Ze[17],Ye=Ze[18]):(mr=gg,tr=null,Ye=null),rn&&xe?er+=Le:!rn&&!xe&&(er-=Le);let ce=0;for(;P<U;P+=2){if(br&&br[ce++]<gn/this.pixelRatio)continue;const Gt=this.calculateImageOrLabelDimensions_(ne.width,ne.height,x[P],x[P+1],gn,$t,N,W,bn,Yn,er,Tn,s,mr,!!tr||!!Ye,Ve),Nt=[e,t,ne,Gt,Rt,tr,Ye];if(f){let nn,Rn,Dn;if(Ln){const Xt=U-P;if(!Ln[Xt]){Ln[Xt]={args:Nt,declutterMode:V};continue}const _r=Ln[Xt];nn=_r.args,Rn=_r.declutterMode,delete Ln[Xt],Dn=OI(nn)}let pr,Tr;if(nn&&(Rn!=="declutter"||!f.collides(Dn))&&(pr=!0),(V!=="declutter"||!f.collides(Gt.declutterBox))&&(Tr=!0),Rn==="declutter"&&V==="declutter"){const Xt=p
Line truncated
|
||||
`),i=ree.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
|
||||
`),t+=r[s].split("").join(i);return t}return n}let O4;function bU(){return O4||(O4=Bx(1,1).getContext("2d")),O4}function ng(n,e){return bU().measureText(n).width+(n.length-1)*e}const $I={};function w6(n,e,t,r){if(n.indexOf(`
|
||||
`+D;Np.get(N)===void 0&&(Np.set(N,100,!0),o(x.style,x.weight,D)||(Np.set(N,0,!0),s===void 0&&(s=setInterval(p,32))))}}}(),QZ=function(){let n;return function(e){let t=S6[e];if(t==null){if(UL){const r=QL(e),i=VL(e,"Žg");t=(isNaN(Number(r.lineHeight))?1.2:Number(r.lineHeight))*(i.actualBoundingBoxAscent+i.actualBoundingBoxDescent)}else n||(n=document.createElement("div"),n.innerHTML="M",n.style.minHeight="0",n.style.maxHeight="none",n.style.height="auto",n.style.padding="0",n.style.border="none",n.style.position="absolute",n.style.display="block",n.style.left="-99999px"),n.style.font=e,document.body.appendChild(n),t=n.offsetHeight,document.body.removeChild(n);S6[e]=t}return t}}();function VL(n,e){return Z1||(Z1=MA(1,1)),n!=w6&&(Z1.font=n,w6=Z1.font),Z1.measureText(e)}function d2(n,e){return VL(n,e).width}function MI(n,e,t){if(e in t)return t[e];const r=e.split(`
|
||||
`).reduce((i,s)=>Math.max(i,d2(n,s)),0);return t[e]=r,r}function YZ(n,e){const t=[],r=[],i=[];let s=0,l=0,o=0,p=0;for(let v=0,x=e.length;v<=x;v+=2){const B=e[v];if(B===`
|
||||
`||v===x){s=Math.max(s,l),i.push(l),l=0,o+=p,p=0;continue}const k=e[v+1]||n.font,P=d2(k,B);t.push(P),l+=P;const D=QZ(k);r.push(D),p=Math.max(p,D)}return{width:s,height:o,widths:t,heights:r,lineWidths:i}}function qZ(n,e,t,r,i,s,l,o,p,v,x){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=B=>B.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),r.contextInstructions?(n.translate(p,v),n.scale(x[0],x[1]),VZ(r,n)):x[0]<0||x[1]<0?(n.translate(p,v),n.scale(x[0],x[1]),n.drawImage(r,i,s,l,o,0,0,l,o)):n.drawImage(r,i,s,l,o,p,v,l*x[0],o*x[1]),n.restore()}function VZ(n,e){const t=n.contextInstructions;for(let r=0,i=t.length;r<i;r+=2)Array.isArray(t[r+1])?e[t[r]].apply(e,t[r+1]):e[t[r]]=t[r+1]}function wI(n){return n[0]>0&&n[1]>0}function HZ(n,e,t){return t===void 0&&(t=[0,0]),t[0]=n[0]*e+.5|0,t[1]=n[1]*e+.5|0,t}function ph(n,e){return Array.isArray(n)?n:(e===void 0?e=[n,n]:(e[0]=n,e[1]=n),e)}class Ix{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=ph(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new Ix({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return vo()}getImage(e){return vo()}getHitDetectionImage(){return vo()}getPixelRatio(e){return 1}getImageState(){return vo()}getImageSize(){return vo()}getOrigin(){return vo()}getSize(){return vo()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=ph(e)}listenImageChange(e){vo()}load(){vo()}unlistenImageChange(e){vo()}ready(){return Promise.resolve()}}class Tx extends Ix{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?fi.LOADING:fi.LOADED,this.imageState_===fi.LOADING&&this.ready().then(()=>this.imageState_=fi.LOADED),this.render()}clone(){const e=this.getScale(),t=new Tx({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){const e=this.size_,t=this.getDisplacement(),r=this.getScaleArray();return[e[0]/2-t[0]/r[0],e[1]/2+t[1]/r[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){var s,l;const t=(s=this.fill_)==null?void 0:s.getKey(),r=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let i=(l=Pf.get(r,null,null))==null?void 0:l.getImage(1);if(!i){const o=this.renderOptions_,p=Math.ceil(o.size*e),v=MA(p,p);this.draw_(o,v,e),i=v.canvas,Pf.set(r,null,null,new GL(i,void 0,null,fi.LOADED,null))}return i}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}calculateLineJoinSize_(e,t,r){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let i=this.radius,s=this.radius2_===void 0?i:this.radius2_;if(i<s){const te=i;i=s,s=te}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,p=s*Math.sin(o),v=Math.sqrt(s*s-p*p),x=i-v,B=Math.sqrt(p*p+x*x),k=B/p;if(e==="miter"&&k<=r)return k*t;const P=t/2/k,D=t/2*(x/B),W=Math.sqrt((i+P)*(i+P)+D*D)-i;if(this.radius2_===void 0||e==="bevel")return W*2;con
Line truncated
|
||||
`,""),n.push(e,""),n}function EX(n,e,t){return t%2===0&&(n+=e),n}class BX{constructor(e,t,r,i,s){this.overlaps=r,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=yd(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new sO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,r,i){const s=e+t+r+i;if(this.labels_[s])return this.labels_[s];const l=i?this.strokeStates[i]:null,o=r?this.fillStates[r]:null,p=this.textStates[t],v=this.pixelRatio,x=[p.scale[0]*v,p.scale[1]*v],B=p.justify?m2[p.justify]:B4(Array.isArray(e)?e[0]:e,p.textAlign||wC),k=i&&l.lineWidth?l.lineWidth:0,P=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(SX,[]),{width:D,height:N,widths:W,heights:V,lineWidths:$}=YZ(p,P),ie=D+k,ne=[],q=(ie+2)*x[0],te=(N+k)*x[1],G={width:q<0?Math.floor(q):Math.ceil(q),height:te<0?Math.floor(te):Math.ceil(te),contextInstructions:ne};(x[0]!=1||x[1]!=1)&&ne.push("scale",x),i&&(ne.push("strokeStyle",l.strokeStyle),ne.push("lineWidth",k),ne.push("lineCap",l.lineCap),ne.push("lineJoin",l.lineJoin),ne.push("miterLimit",l.miterLimit),ne.push("setLineDash",[l.lineDash]),ne.push("lineDashOffset",l.lineDashOffset)),r&&ne.push("fillStyle",o.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const oe=.5-B;let fe=B*ie+oe*k;const he=[],Me=[];let me=0,pe=0,qe=0,Se=0,vt;for(let Je=0,Ke=P.length;Je<Ke;Je+=2){const je=P[Je];if(je===`
|
||||
`){pe+=me,me=0,fe=B*ie+oe*k,++Se;continue}const Pe=P[Je+1]||p.font;Pe!==vt&&(i&&he.push("font",Pe),r&&Me.push("font",Pe),vt=Pe),me=Math.max(me,V[qe]);const Le=[je,fe+oe*W[qe]+B*(W[qe]-$[Se]),.5*(k+me)+pe];fe+=W[qe],i&&he.push("strokeText",Le),r&&Me.push("fillText",Le),++qe}return Array.prototype.push.apply(ne,he),Array.prototype.push.apply(ne,Me),this.labels_[s]=G,G}replayTextBackground_(e,t,r,i,s,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,r),e.lineTo.apply(e,i),e.lineTo.apply(e,s),e.lineTo.apply(e,t),l&&(this.alignAndScaleFill_=l[2],e.fillStyle=l[1],this.fill_(e)),o&&(this.setStrokeStyle_(e,o),e.stroke())}calculateImageOrLabelDimensions_(e,t,r,i,s,l,o,p,v,x,B,k,P,D,N,W){o*=k[0],p*=k[1];let V=r-o,$=i-p;const ie=s+v>e?e-v:s,ne=l+x>t?t-x:l,q=D[3]+ie*k[0]+D[1],te=D[0]+ne*k[1]+D[2],G=V-D[3],oe=$-D[0];(N||B!==0)&&(v0[0]=G,C0[0]=G,v0[1]=oe,Tm[1]=oe,Tm[0]=G+q,km[0]=Tm[0],km[1]=oe+te,C0[1]=km[1]);let fe;return B!==0?(fe=sm(yd(),r,i,1,1,B,-r,-i),Lu(fe,v0),Lu(fe,Tm),Lu(fe,km),Lu(fe,C0),Wm(Math.min(v0[0],Tm[0],km[0],C0[0]),Math.min(v0[1],Tm[1],km[1],C0[1]),Math.max(v0[0],Tm[0],km[0],C0[0]),Math.max(v0[1],Tm[1],km[1],C0[1]),_1)):Wm(Math.min(G,G+q),Math.min(oe,oe+te),Math.max(G,G+q),Math.max(oe,oe+te),_1),P&&(V=Math.round(V),$=Math.round($)),{drawImageX:V,drawImageY:$,drawImageW:ie,drawImageH:ne,originX:v,originY:x,declutterBox:{minX:_1[0],minY:_1[1],maxX:_1[2],maxY:_1[3],value:W},canvasTransform:fe,scale:k}}replayImageOrLabel_(e,t,r,i,s,l,o){const p=!!(l||o),v=i.declutterBox,x=o?o[2]*i.scale[0]/2:0;return v.minX-x<=t[0]&&v.maxX+x>=0&&v.minY-x<=t[1]&&v.maxY+x>=0&&(p&&this.replayTextBackground_(e,v0,Tm,km,C0,l,o),qZ(e,i.canvasTransform,s,r,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const r=Lu(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;e.save(),e.translate(r[0]%i,r[1]%i),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6])}drawLabelWithPointPlacement_(e,t,r,i){const s=this.textStates[t],l=this.createLabel(e,t,i,r),o=this.strokeStates[r],p=this.pixelRatio,v=B4(Array.isArray(e)?e[0]:e,s.textAlign||wC),x=m2[s.textBaseline||h2],B=o&&o.lineWidth?o.lineWidth:0,k=l.width/p-2*s.scale[0],P=v*k+2*(.5-v)*B,D=x*l.height/p+2*(.5-x)*B;return{label:l,anchorX:P,anchorY:D}}execute_(e,t,r,i,s,l,o,p){const v=this.zIndexContext_;let x;this.pixelCoordinates_&&Q0(r,this.renderedTransform_)?x=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),x=z0(this.coordinates,0,this.coordinates.length,2,r,this.pixelCoordinates_),lZ(this.renderedTransform_,r));let B=0;const k=i.length;let P=0,D,N,W,V,$,ie,ne,q,te,G,oe,fe,he,Me=0,me=0;const pe=this.coordinateCache_,qe=this.viewRotation_,Se=Math.round(Math.atan2(-r[1],r[0])*1e12)/1e12,vt={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:qe},Je=this.instructions!=i||this.overlaps?0:200;let Ke,je,Pe,Le;for(;B<k;){const Xe=i[B];switch(Xe[0]){case Hi.BEGIN_GEOMETRY:Ke=Xe[1],Le=Xe[3],Ke.getGeometry()?o!==void 0&&!$A(o,Le.getExtent())?B=Xe[2]+1:++B:B=Xe[2],v&&(v.zIndex=Xe[4]);break;case Hi.BEGIN_PATH:Me>Je&&(this.fill_(e),Me=0),me>Je&&(e.stroke(),me=0),!Me&&!me&&(e.beginPath(),$=NaN,ie=NaN),++B;break;case Hi.CIRCLE:P=Xe[1];const Gt=x[P],mt=x[P+1],Ut=x[P+2],kt=x[P+3],Te=Ut-Gt,Re=kt-mt,Ue=Math.sqrt(Te*Te+Re*Re);e.moveTo(Gt+Ue,mt),e.arc(Gt,mt,Ue,0,2*Math.PI,!0),++B;break;case Hi.CLOSE_PATH:e.closePath(),++B;break;case Hi.CUSTOM:P=Xe[1],D=Xe[2];const nt=Xe[3],_t=Xe[4],gt=Xe[5];vt.geometry=nt,vt.feature=Ke,B in pe||(pe[B]=[]);const Kt=pe[B];gt?gt(x,P,D,2,Kt):(Kt[0]=x[P],Kt[1]=x[P+1],Kt.length=2),v&&(v.zIndex=Xe[6]),_t(Kt,vt),++B;break;case Hi.DRAW_IMAGE:P=Xe[1],D=Xe[2],te=Xe[3],N=Xe[4],W=Xe[5];let $t=Xe[6];const Rt=Xe[7],_n=Xe[8],pr=Xe[9],nn=Xe[10];let Xn=Xe[11];const Fn=Xe[12];let an=Xe[13];V=Xe[14]||"declutter";const Bn=Xe[15];if(!te&&Xe.length>=20){G=Xe[19],oe=Xe[20],fe=Xe[21],he=Xe[22];const Qt=this.drawLabelWithPointPlacement_(G,oe,fe,he);te=Qt.label,Xe[3]=te;const Nt=Xe[23];N=(Qt.anchorX-Nt)*this.pixelRatio,Xe[4]=N;const rn=Xe[24];W=(Qt.anchorY-rn)*this.pixelRatio,Xe[5]=W,$t=te.height,Xe[6]=$t,an=te.width,Xe[13]=an}let Cr;Xe.length>25&&(Cr=Xe[25]);let lr,hr,We;Xe.length>17?(lr=Xe[16],hr=Xe[17],We=Xe[18]):(lr=Cg,hr=null,We=null),nn&&Se?Xn+=qe:!nn&&!Se&&(Xn-=qe);let ce=0;for(;P<D;P+=2){if(Cr&&Cr[ce++]<an/this.pixelRatio)continue;const Qt=this.calculateImageOrLabelDimensions_(te.width,te.height,x[P],x[P+1],an,$t,N,W,_n,pr,Xn,Fn,s,lr,!!hr||!!We,Ke),Nt=[e,t,te,Qt,Rt,hr,We];if(p){let rn,Rn,Dn;if(Bn){const Jt=D-P;if(!Bn[Jt]){Bn[Jt]={args:Nt,declutterMode:V};continue}const br=Bn[Jt];rn=br.args,Rn=br.declutterMode,delete Bn[Jt],Dn=RI(rn)}let mr,Tr;if(rn&&(Rn!=="declutter"||!p.collides(Dn))&&(mr=!0),(V!=="declutter"||!p.collides(Qt.declutterBox))&&(Tr=!0),Rn==="declutter"&&V==="declutter"){const Jt=m
Line truncated
|
||||
`),i=yee.slice(0,Math.round(e/.1));for(let s=0,l=r.length;s<l;++s)s>0&&(t+=`
|
||||
`),t+=r[s].split("").join(i);return t}return n}let D4;function kU(){return D4||(D4=Rx(1,1).getContext("2d")),D4}function og(n,e){return kU().measureText(n).width+(n.length-1)*e}const r9={};function P6(n,e,t,r){if(n.indexOf(`
|
||||
`)!==-1){const l=n.split(`
|
||||
`),o=[];for(let f=0,v=l.length;f<v;++f)o.push(w6(l[f],e,t,r));return o.join(`
|
||||
`)}const i=t+","+e+","+n+","+r;let s=$I[i];if(!s){const l=n.split(" ");if(l.length>1){const o=bU();o.font=e;const v=o.measureText("M").width*t;let x="";const B=[];for(let k=0,P=l.length;k<P;++k){const U=l[k],N=x+(x?" ":"")+U;ng(N,r)<=v?x=N:(x&&B.push(x),x=U)}x&&B.push(x);for(let k=0,P=B.length;k<P&&P>1;++k){const U=B[k];if(ng(U,r)<v*.35){const N=k>0?ng(B[k-1],r):1/0,W=k<P-1?ng(B[k+1],r):1/0;B.splice(k,1),P-=1,N<W?(B[k-1]+=" "+U,k-=1):B[k]=U+" "+B[k]}}for(let k=0,P=B.length-1;k<P;++k){const U=B[k],N=B[k+1];if(ng(U,r)>v*.7&&ng(N,r)<v*.6){const W=U.split(" "),V=W.pop();ng(V,r)<v*.2&&(B[k]=W.join(" "),B[k+1]=V+" "+N),P-=1}}s=B.join(`
|
||||
`)}else s=n;s=M6(s,r),$I[i]=s}return s}const iee=/font-family: ?([^;]*);/,oee=/("|')/g;let J_;function see(n){if(!J_){J_={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const s=i.rules||i.cssRules;if(s)for(let l=0,o=s.length;l<o;++l){const f=s[l];if(f.type==5){const v=f.cssText.match(iee);J_[v[1].replace(oee,"")]=!0}}}catch{}}}return n in J_}const I4={};function aee(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in I4)return I4[t];const r=[];for(let i=0,s=n.length;i<s;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const l=n[i],o=r6(l,1);FL(o);const f=o.split(" ");r.push([f.slice(3).join(" ").replace(/"/g,""),f[1],f[0]])}for(let i=0,s=r.length;i<s;++i){const l=r[i],o=l[0];if(!see(o)&&Fp.get(`${l[2]}
|
||||
`),o=[];for(let p=0,v=l.length;p<v;++p)o.push(P6(l[p],e,t,r));return o.join(`
|
||||
`)}const i=t+","+e+","+n+","+r;let s=r9[i];if(!s){const l=n.split(" ");if(l.length>1){const o=kU();o.font=e;const v=o.measureText("M").width*t;let x="";const B=[];for(let k=0,P=l.length;k<P;++k){const D=l[k],N=x+(x?" ":"")+D;og(N,r)<=v?x=N:(x&&B.push(x),x=D)}x&&B.push(x);for(let k=0,P=B.length;k<P&&P>1;++k){const D=B[k];if(og(D,r)<v*.35){const N=k>0?og(B[k-1],r):1/0,W=k<P-1?og(B[k+1],r):1/0;B.splice(k,1),P-=1,N<W?(B[k-1]+=" "+D,k-=1):B[k]=D+" "+B[k]}}for(let k=0,P=B.length-1;k<P;++k){const D=B[k],N=B[k+1];if(og(D,r)>v*.7&&og(N,r)<v*.6){const W=D.split(" "),V=W.pop();og(V,r)<v*.2&&(B[k]=W.join(" "),B[k+1]=V+" "+N),P-=1}}s=B.join(`
|
||||
`)}else s=n;s=k6(s,r),r9[i]=s}return s}const vee=/font-family: ?([^;]*);/,Cee=/("|')/g;let rb;function _ee(n){if(!rb){rb={};const e=document.styleSheets;for(let t=0,r=e.length;t<r;++t){const i=e[t];try{const s=i.rules||i.cssRules;if(s)for(let l=0,o=s.length;l<o;++l){const p=s[l];if(p.type==5){const v=p.cssText.match(vee);rb[v[1].replace(Cee,"")]=!0}}}catch{}}}return n in rb}const F4={};function bee(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){const t=n.toString();if(t in F4)return F4[t];const r=[];for(let i=0,s=n.length;i<s;++i){n[i]=n[i].replace("Arial Unicode MS","Arial");const l=n[i],o=c6(l,1);qL(o);const p=o.split(" ");r.push([p.slice(3).join(" ").replace(/"/g,""),p[1],p[0]])}for(let i=0,s=r.length;i<s;++i){const l=r[i],o=l[0];if(!_ee(o)&&Np.get(`${l[2]}
|
||||
${l[1]}
|
||||
${o}`)!==100){const f=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",l[1]).replace("{-fontstyle}",l[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",l[2]);if(!document.querySelector('link[href="'+f+'"]')){const v=document.createElement("link");v.href=f,v.rel="stylesheet",document.head.appendChild(v)}}}return I4[t]=n,n}const lee={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Aee={center:[.5,.5],left:[0,.5],right:[1,.5],top:[.5,0],bottom:[.5,1],"top-left":[0,0],"top-right":[1,0],"bottom-left":[0,1],"bottom-right":[1,1]},uee=function(n,e){const t=ix(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},S6={},y2={zoom:0};let eb,T4;function Bi(n,e,t,r,i,s,l){const o=n.id;s||(s={},console.warn("No functionCache provided to getValue()")),s[o]||(s[o]={});const f=s[o];if(!f[t]){let v=(n[e]||S6)[t];const x=$q[`${e}_${n.type}`][t];v===void 0&&(v=x.default);let B=Ry(v);if(!B&&Ky(v)&&(v=mB(v,x),B=!0),B){const k=uee(v,x);f[t]=k.evaluate.bind(k)}else x.type=="color"&&(v=Cl.parse(v)),f[t]=function(){return v}}return y2.zoom=r,f[t](y2,i,l)}function ZI(n,e,t,r,i){return Bi(n,"layout",`${r}-allow-overlap`,e,t,i)?Bi(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function cee(n,e,t,r,i){return i||console.warn("No filterCache provided to evaluateFilter()"),n in i||(i[n]=vq(e).filter),y2.zoom=r,i[n](y2,t)}function b0(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const hee=/\{[^{}}]*\}/g;function k4(n,e){return n.replace(hee,function(t){return e[t.slice(1,-1)]||""})}const dee={};function fee(n,e,t,r=tm,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");dee[eee(e,n)]=Array.from(arguments);let f,v,x;s&&by(()=>s).then(async G=>{let ie;if(typeof Image<"u"){const de=new Image;if(typeof G=="string")de.crossOrigin="anonymous",de.src=G;else{let fe;G instanceof Request?fe=await fetch(G):G instanceof Response&&(fe=G);const Ee=await fe.blob();ie=URL.createObjectURL(Ee),de.src=ie}de.addEventListener("load",function fe(){de.removeEventListener("load",fe),f=de,v=[de.width,de.height],n.changed(),ie&&URL.revokeObjectURL(ie)}),de.addEventListener("error",function fe(){URL.revokeObjectURL(ie),de.removeEventListener("error",fe)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const de=self;de.postMessage({action:"loadImage",src:G}),de.addEventListener("message",function(Ee){Ee.data.action==="imageLoaded"&&Ee.data.src===G&&(f=Ee.data.image,v=[f.width,f.height])})}});const B=$6(e.layers),k={},P=[],U={},N={},W=vU(e),V=tee(e);let $;for(let G=0,ie=B.length;G<ie;++G){const de=B[G],fe=de.id;if(typeof t=="string"&&de.source==t||Array.isArray(t)&&t.indexOf(fe)!==-1){const Ee=de["source-layer"];if($){if(de.source!==$)throw new Error(`Layer "${fe}" does not use source "${$}`)}else{$=de.source;const Me=e.sources[$];if(!Me)throw new Error(`Source "${$}" is not defined`);const Le=Me.type;if(Le!=="vector"&&Le!=="geojson")throw new Error(`Source "${$}" is not of type "vector" or "geojson", but "${Le}"`)}let me=k[Ee];me||(me=[],k[Ee]=me),me.push({layer:de,index:G}),P.push(fe)}}const oe=new O0,te=new Rm,q=[],ne=function(G,ie,de){const fe=G.getProperties(),Ee=k[fe.layer];if(!Ee)return;let me=r.indexOf(ie);me==-1&&(me=gO(ie,r));const Me=lee[G.getGeometry().getType()],Le={id:G.getId(),properties:fe,type:Me},xe=n.get("mapbox-featurestate")[G.getId()];let pt=-1;for(let Je=0,Ve=Ee.length;Je<Ve;++Je){const je=Ee[Je],Se=je.layer,Fe=Se.id;if(de!==void 0&&de!==Fe)continue;const Ze=Se.layout||S6,_t=Se.paint||S6;if(Ze.visibility==="none"||"minzoom"in Se&&me<Se.minzoom||"maxzoom"in Se&&me>=Se.maxzoom)continue;const Qt=Se.filter;if(!Qt||cee(Fe,Qt,Le,me,V)){let gt,Ut,Pt,ze,Ke,Oe;const it=je.index;if(Me==3&&(Se.type=="fill"||Se.type=="fill-extrusion"))if(Ut=Bi(Se,"paint",Se.type+"-opacity",me,Le,W,xe),Se.type+"-pattern"in _t){const br=Bi(Se,"paint",Se.type+"-pattern",me,Le,W,xe);if(br){const mr=typeof br=="string"?k4(br,fe):br.toString();if(f&&i&&i[mr]){++pt,Oe=q[pt],(!Oe||!Oe.getFill()||Oe.getStroke()||Oe.getText())&&(Oe=new Yd({fill:new Rm}),q[pt]=Oe),Pt=Oe.getFill(),Oe.setZIndex(it);const tr=mr+"."+Ut;let Ye=N[tr];if(!Ye){const ce=i[mr],pe=Bx(ce.width,ce.height),nt=pe.getContext("2d");nt.globalAlpha=Ut,nt.drawImage(f,ce.x,ce.y,ce.width,ce.height,0,0,ce.width,ce.height),Ye=nt.createPattern(pe,"repeat"),N[tr]=Ye}Pt.setColor(Ye)}}}else gt=b0(Bi(Se,"paint",Se.type+"-color",me,Le,W,xe),Ut),Se.type+"-outline-color"in _t&&(Ke=b0(Bi(Se,"paint",Se.type+"-outline-color",me,Le,W,xe),Ut)),Ke||(Ke=gt),(gt||Ke)&&(++pt,Oe=q[pt],(!Oe||gt&&!Oe.getFill()||!gt&&Oe.getFill()||Ke&&!Oe.getStroke()||!Ke&&Oe.getStroke()||Oe.getText(Line truncated
|
||||
`)return tr.push(`
|
||||
`,""),tr;if(Me==2)return tr.push(M6(wt,gn),nt),tr;wt=w6(wt,nt,Ln,gn).split(`
|
||||
`);for(let qt=0,Jt=wt.length;qt<Jt;++qt)qt>0&&tr.push(`
|
||||
`,""),tr.push(wt[qt],nt);return tr},[]):Yn=k4(mr,fe).trim(),Ut=Bi(Se,"paint","text-opacity",me,Le,W,xe)}if(Yn&&Ut&&!bn){Ct||(++pt,Oe=q[pt],(!Oe||!Oe.getText()||Oe.getFill()||Oe.getStroke())&&(Oe=new Yd,q[pt]=Oe),Oe.setImage(void 0),Oe.setGeometry(void 0));const br=ZI(Se,me,Le,"text",W);Oe.getText()||Oe.setText(dt),dt=Oe.getText(),(!dt||"getDeclutterMode"in dt&&dt.getDeclutterMode()!==br)&&(dt=new wx({padding:[2,2,2,2],declutterMode:br}),Oe.setText(dt));const mr=Bi(Se,"layout","text-transform",me,Le,W,xe);mr=="uppercase"?Yn=Array.isArray(Yn)?Yn.map((Be,rt)=>rt%2?Be:Be.toUpperCase()):Yn.toUpperCase():mr=="lowercase"&&(Yn=Array.isArray(Yn)?Yn.map((Be,rt)=>rt%2?Be:Be.toLowerCase()):Yn.toLowerCase());const tr=Array.isArray(Yn)?Yn:Me==2?M6(Yn,gn):w6(Yn,rn,Ln,gn);if(dt.setText(tr),dt.setFont(rn),dt.setRotation(B4(Bi(Se,"layout","text-rotate",me,Le,W,xe))),typeof dt.setKeepUpright=="function"){const Be=Bi(Se,"layout","text-keep-upright",me,Le,W,xe);dt.setKeepUpright(Be)}const Ye=Bi(Se,"layout","text-anchor",me,Le,W,xe),ce=Ct||Me==1?"point":Bi(Se,"layout","symbol-placement",me,Le,W,xe);let pe;if(ce==="line-center"?(dt.setPlacement("line"),pe="center"):dt.setPlacement(ce),ce==="line"&&typeof dt.setRepeat=="function"){const Be=Bi(Se,"layout","symbol-spacing",me,Le,W,xe);dt.setRepeat(Be*2)}dt.setOverflow(ce==="point");let nt=Bi(Se,"paint","text-halo-width",me,Le,W,xe);const wt=Bi(Se,"layout","text-offset",me,Le,W,xe),qt=Bi(Se,"paint","text-translate",me,Le,W,xe);let Jt=0,$n=0;if(ce=="point"){pe="center",Ye.indexOf("left")!==-1?(pe="left",$n=nt):Ye.indexOf("right")!==-1&&(pe="right",$n=-nt);const Be=Bi(Se,"layout","text-rotation-alignment",me,Le,W,xe);dt.setRotateWithView(Be=="map")}else dt.setMaxAngle(B4(Bi(Se,"layout","text-max-angle",me,Le,W,xe))*Yn.length/tr.length),dt.setRotateWithView(!1);dt.setTextAlign(pe);let Xe="middle";Ye.indexOf("bottom")==0?(Xe="bottom",Jt=-nt-.5*(er-1)*Tn):Ye.indexOf("top")==0&&(Xe="top",Jt=nt+.5*(er-1)*Tn),dt.setTextBaseline(Xe);const ae=Bi(Se,"layout","text-justify",me,Le,W,xe);dt.setJustify(ae==="auto"?void 0:ae),dt.setOffsetX(wt[0]*Tn+$n+qt[0]),dt.setOffsetY(wt[1]*Tn+Jt+qt[1]),te.setColor(b0(Bi(Se,"paint","text-color",me,Le,W,xe),Ut)),dt.setFill(te);const ve=b0(Bi(Se,"paint","text-halo-color",me,Le,W,xe),Ut);if(ve&&nt>0){oe.setColor(ve),nt*=2;const Be=.5*Tn;oe.setWidth(nt<=Be?nt:Be),dt.setStroke(oe)}else dt.setStroke(void 0);const p=Bi(Se,"layout","text-padding",me,Le,W,xe),We=dt.getPadding();p!==We[0]&&(We[0]=p,We[1]=p,We[2]=p,We[3]=p),Oe.setZIndex(it)}}}if(pt>-1)return q.length=pt+1,q};return n.setStyle(ne),n.set("mapbox-source",$),n.set("mapbox-layers",P),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class xU{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=ux,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Sa(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Sa(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return vo()}readFeature(e,t){return vo()}readFeatures(e,t){return vo()}readGeometry(e,t){return vo()}readProjection(e){return vo()}writeFeature(e,t){return vo()}writeFeatures(e,t){return vo()}writeGeometry(e,t){return vo()}}function Ox(n,e,t){const r=t?Sa(t.featureProjection):null,i=t?Sa(t.dataProjection):null;let s=n;if(r&&i&&!L0(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(fC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(f){for(let v=0,x=f.length;v<x;++v)f[v]=Math.round(f[v]*l)/l;return f};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const pee={Point:Tg,LineString:Ig,Polygon:Wm,MultiPoint:GC,MultiLineString:gC,MultiPolygon:yC};function mee(n,e,t){return Array.isArray(e[0])?(lL(n,0,e,t)||(n=n.slice(),A6(n,0,e,t)),n):(TB(n,0,e,t)||(n=n.slice(),n2(n,0,e,t)),n)}function MU(n,e){var s;const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(l=>MU({...n,geometry:l})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return Ox(new dh(r,r==="Polygon"?mee(t.flatCoordinates,t.ends,i):t.flatCoordinates,(s=t.ends)==null?void 0:s.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function yO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>yO(i,e));return new s2(r)}const t=pee[n.type];return Ox(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class gee extends xU{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(tb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(tb(e),this.getReadOptions(
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Ste(n,e){const t=DU(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class Ete extends FC{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=wte(e,this.onWorkerMessage_.bind(this,i));else r[0]=Ste(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(f){return f.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let f=0;f<s;++f){const v=f*o,x=[];for(let B=0,k=i.length;B<k;++B)x.push(i[B].slice(v,v+o));this.workers_[f].postMessage({buffers:x,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},x)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const f=this.dataLookup_[o].buffer,v=o*l;r.set(new Uint8ClampedArray(f),v),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const a9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class l9 extends bp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class FU extends kU{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Ite(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(co.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new uU(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:md(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Ote(this.layers_),pixelRatio:1,pixelToCoordinateTransform:md(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Lo(this),renderTargets:{}},this.setAttributions(function(r){var s;const i=[];for(let l=0,o=e.sources.length;l<o;++l){const f=e.sources[l],v=f instanceof Ly?f:f.getSource();if(!v)continue;const x=(s=v.getAttributions())==null?void 0:s(r);typeof x=="string"?i.push(x):x!==void 0&&i.push(...x)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Ete({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=Df(e);i.size[0]=Math.ceil(zs(e)/t),i.size[1]=Math.ceil(Uu(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!Nm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.re
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(LU(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class Nte extends kx{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Wte,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:AU,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!L0(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||L0(t,e)))return this.tileGrid;const r=Lo(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=PU(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],f=this.getTileCoordForTileUrlFunction(o,s),v=f?this.tileUrlFunction(f,i,s):void 0,x=new this.tileClass(o,v!==void 0?Lr.IDLE:Lr.EMPTY,v!==void 0?v:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(co.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||L0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],f=this.getKey(),v=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),k=new OU(l,v,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,U,N,W)=>this.getTileInternal(P,U,N,W,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return k.key=f,k}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Sa(e);if(r){const i=Lo(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function Wte(n,e){n.getImage().src=e}class UU extends Nte{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Sa("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)kte(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Sa("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const v=WC(t,r);i=n$(e.bounds,v)}const s=Tx(r),l=e.minzoom||0,o=e.maxzoom||22,f=CO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=f,this.tileUrlFunction=LU(e.tiles,f),e.attribution&&!this.getAttributions()){const v=i!==void 0?i:s;this.setAttributions(function(x){return HA(v,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class zU extends kx{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||Tx(t),i=e.tileGrid||CO({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:NU,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:gU,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Lr.IDLE){r.setState(Lr.LOADING);const i=r.wr
Line truncated
|
||||
${o}`)!==100){const p=e.replace("{font-family}",o.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",o.replace(/ /g,"+")).replace("{fontweight}",l[1]).replace("{-fontstyle}",l[2].replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",l[2]);if(!document.querySelector('link[href="'+p+'"]')){const v=document.createElement("link");v.href=p,v.rel="stylesheet",document.head.appendChild(v)}}}return F4[t]=n,n}const xee={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},Mee={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]},wee=function(n,e){const t=ux(n,e);if(t.result==="error")throw new Error(t.value.map(r=>`${r.key}: ${r.message}`).join(", "));return t.value},K6={},b2={zoom:0};let ib,L4;function Bi(n,e,t,r,i,s,l){const o=n.id;s||(s={},console.warn("No functionCache provided to getValue()")),s[o]||(s[o]={});const p=s[o];if(!p[t]){let v=(n[e]||K6)[t];const x=cV[`${e}_${n.type}`][t];v===void 0&&(v=x.default);let B=Ly(v);if(!B&&Fy(v)&&(v=MB(v,x),B=!0),B){const k=wee(v,x);p[t]=k.evaluate.bind(k)}else x.type=="color"&&(v=Ra.parse(v)),p[t]=function(){return v}}return b2.zoom=r,p[t](b2,i,l)}function i9(n,e,t,r,i){return Bi(n,"layout",`${r}-allow-overlap`,e,t,i)?Bi(n,"layout",`${r}-ignore-placement`,e,t,i)?"none":"obstacle":"declutter"}function See(n,e,t,r,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=kq(e).filter}catch(s){console.warn("Filter will evaluate to false: "+s.message),i[n]=function(){return!1}}return b2.zoom=r,i[n](b2,t)}function w0(n,e){if(n){if(n.a===0||e===0)return;const t=n.a;return e=e===void 0?1:e,t===0?"transparent":"rgba("+Math.round(n.r*255/t)+","+Math.round(n.g*255/t)+","+Math.round(n.b*255/t)+","+t*e+")"}return n}const Eee=/\{[^{}}]*\}/g;function U4(n,e){return n.replace(Eee,function(t){return e[t.slice(1,-1)]||""})}function o9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Bee={};function Oee(n,e,t,r=om,i=void 0,s=void 0,l=void 0,o=void 0){if(typeof e=="string"&&(e=JSON.parse(e)),e.version!=8)throw new Error("glStyle version 8 required.");Bee[pee(e,n)]=Array.from(arguments);const p={};(typeof s=="string"||s instanceof Request||s instanceof Response||s instanceof Promise)&&(s={default:s});for(const q in s){const te=s[q];wy(()=>te).then(async G=>{let oe;if(typeof Image<"u"){const fe=new Image;if(typeof G=="string")fe.crossOrigin="anonymous",fe.src=G;else{let he;G instanceof Request?he=await fetch(G):G instanceof Response&&(he=G);const Me=await he.blob();oe=URL.createObjectURL(Me),fe.src=oe}fe.addEventListener("load",function he(){fe.removeEventListener("load",he),p[q]={image:fe,size:[fe.width,fe.height]},n.changed(),oe&&URL.revokeObjectURL(oe)}),fe.addEventListener("error",function he(){URL.revokeObjectURL(oe),fe.removeEventListener("error",he)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const fe=self;fe.postMessage({action:"loadImage",src:G}),fe.addEventListener("message",function(Me){Me.data.action==="imageLoaded"&&Me.data.src===G&&(p[q]={image:Me.data.image,size:[Me.data.image.width,Me.data.image.height]})})}})}const v=iB(e.layers),x={},B=[],k={},P={},D=OU(e),N=mee(e);let W;for(let q=0,te=v.length;q<te;++q){const G=v[q],oe=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(oe)!==-1){const fe=G["source-layer"];if(W){if(G.source!==W)throw new Error(`Layer "${oe}" does not use source "${W}`)}else{W=G.source;const Me=e.sources[W];if(!Me)throw new Error(`Source "${W}" is not defined`);const me=Me.type;if(me!=="vector"&&me!=="geojson")throw new Error(`Source "${W}" is not of type "vector" or "geojson", but "${me}"`)}let he=x[fe];he||(he=[],x[fe]=he),he.push({layer:G,index:q}),B.push(oe)}}const V=new k0,$=new Fm,ie=[],ne=function(q,te,G){const oe=q.getProperties(),fe=x[oe.layer];if(!fe)return;let he=r.indexOf(te);he==-1&&(he=MO(te,r));const Me=xee[q.getGeometry().getType()],me={id:q.getId(),properties:oe,type:Me},pe=n.get("mapbox-featurestate")[q.getId()];let qe=-1;for(let Se=0,vt=fe.length;Se<vt;++Se){const Je=fe[Se],Ke=Je.layer,je=Ke.id;if(G!==void 0&&G!==je)continue;const Pe=Ke.layout||K6,Le=Ke.paint||K6;if(Pe.visibility==="none"||"minzoom"in Ke&&he<Ke.minzoom||"maxzoom"in Ke&&he>=Ke.maxzoom)continue;const Xe=Ke.filter;if(!Xe||See(je,Xe,me,he,N)){let Ct,Gt,mt,Ut,kt,Te;const Re=Je.index;if(Me==3&&(Ke.type=="fill"||Ke.type=="fill-extrusion"))if(Gt=Bi(Ke,"paint",Ke.type+"-opacity",he,me,D,pe),Ke.type+"-pattern"in Le){const an=Bi(Ke,"paint",Ke.type+"-pattern",he,me,D,pe);if(an){const Bn=typeof an=="string"?U4(an,oe):an.toString(),Cr=o9(Bn,p);if(i&&i[Bn]&&Cr){++qe,Te=ie[qe],(!Te||!Te.getFill()||Te.getStroke()||Te.getText())&&(Te=new Vd({fill:new Fm}),ie[qe]=Te),mt=Te.getFill(),Te.setZIndex(Re);const lr=Bn+"."+Gt;let hr=P[lr];if(!hr){const We=i[Bn],ce=Rx(We.width,We.height),ye=ce.getContext("2d");ye.globalAlpha=Gt,ye.drawImage(Cr.image,We.x,We.y,We.width,We.heightLine truncated
|
||||
`)return Cr.push(`
|
||||
`,""),Cr;if(Me==2)return Cr.push(k6(ye,Xn),ce),Cr;ye=P6(ye,ce,Fn,Xn).split(`
|
||||
`);for(let rt=0,Et=ye.length;rt<Et;++rt)rt>0&&Cr.push(`
|
||||
`,""),Cr.push(ye[rt],ce);return Cr},[]):Rt=U4(Bn,oe).trim(),Gt=Bi(Ke,"paint","text-opacity",he,me,D,pe)}if(Rt&&Gt&&!$t){Ue||(++qe,Te=ie[qe],(!Te||!Te.getText()||Te.getFill()||Te.getStroke())&&(Te=new Vd,ie[qe]=Te),Te.setImage(void 0),Te.setGeometry(void 0));const an=i9(Ke,he,me,"text",D);Te.getText()||Te.setText(nt),nt=Te.getText(),(!nt||"getDeclutterMode"in nt&&nt.getDeclutterMode()!==an)&&(nt=new kx({padding:[2,2,2,2],declutterMode:an}),Te.setText(nt));const Bn=Bi(Ke,"layout","text-transform",he,me,D,pe);Bn=="uppercase"?Rt=Array.isArray(Rt)?Rt.map((f,Qe)=>Qe%2?f:f.toUpperCase()):Rt.toUpperCase():Bn=="lowercase"&&(Rt=Array.isArray(Rt)?Rt.map((f,Qe)=>Qe%2?f:f.toLowerCase()):Rt.toLowerCase());const Cr=Array.isArray(Rt)?Rt:Me==2?k6(Rt,Xn):P6(Rt,_n,Fn,Xn);if(nt.setText(Cr),nt.setFont(_n),nt.setRotation(R4(Bi(Ke,"layout","text-rotate",he,me,D,pe))),typeof nt.setKeepUpright=="function"){const f=Bi(Ke,"layout","text-keep-upright",he,me,D,pe);nt.setKeepUpright(f)}const lr=Bi(Ke,"layout","text-anchor",he,me,D,pe),hr=Ue||Me==1?"point":Bi(Ke,"layout","symbol-placement",he,me,D,pe);let We;if(hr==="line-center"?(nt.setPlacement("line"),We="center"):nt.setPlacement(hr),hr==="line"&&typeof nt.setRepeat=="function"){const f=Bi(Ke,"layout","symbol-spacing",he,me,D,pe);nt.setRepeat(f*2)}nt.setOverflow(hr==="point");let ce=Bi(Ke,"paint","text-halo-width",he,me,D,pe);const ye=Bi(Ke,"layout","text-offset",he,me,D,pe),rt=Bi(Ke,"paint","text-translate",he,me,D,pe);let Et=0,Ht=0;if(hr=="point"){We="center",lr.indexOf("left")!==-1?(We="left",Ht=ce):lr.indexOf("right")!==-1&&(We="right",Ht=-ce);const f=Bi(Ke,"layout","text-rotation-alignment",he,me,D,pe);nt.setRotateWithView(f=="map")}else nt.setMaxAngle(R4(Bi(Ke,"layout","text-max-angle",he,me,D,pe))*Rt.length/Cr.length),nt.setRotateWithView(!1);nt.setTextAlign(We);let Zt="middle";lr.indexOf("bottom")==0?(Zt="bottom",Et=-ce-.5*(pr-1)*nn):lr.indexOf("top")==0&&(Zt="top",Et=ce+.5*(pr-1)*nn),nt.setTextBaseline(Zt);const Jn=Bi(Ke,"layout","text-justify",he,me,D,pe);nt.setJustify(Jn==="auto"?void 0:Jn),nt.setOffsetX(ye[0]*nn+Ht+rt[0]),nt.setOffsetY(ye[1]*nn+Et+rt[1]),$.setColor(w0(Bi(Ke,"paint","text-color",he,me,D,pe),Gt)),nt.setFill($);const He=w0(Bi(Ke,"paint","text-halo-color",he,me,D,pe),Gt);if(He&&ce>0){V.setColor(He),ce*=2;const f=.5*nn;V.setWidth(ce<=f?ce:f),nt.setStroke(V)}else nt.setStroke(void 0);const ae=Bi(Ke,"layout","text-padding",he,me,D,pe),_e=nt.getPadding();ae!==_e[0]&&(_e[0]=ae,_e[1]=ae,_e[2]=ae,_e[3]=ae),Te.setZIndex(Re)}}}if(qe>-1)return ie.length=qe+1,ie};return n.setStyle(ne),n.set("mapbox-source",W),n.set("mapbox-layers",B),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class PU{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=gx,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let r=t.dataProjection?Sa(t.dataProjection):this.readProjection(e);t.extent&&r&&r.getUnits()==="tile-pixels"&&(r=Sa(r),r.setWorldExtent(t.extent)),t={dataProjection:r,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return vo()}readFeature(e,t){return vo()}readFeatures(e,t){return vo()}readGeometry(e,t){return vo()}readProjection(e){return vo()}writeFeature(e,t){return vo()}writeFeatures(e,t){return vo()}writeGeometry(e,t){return vo()}}function Dx(n,e,t){const r=t?Sa(t.featureProjection):null,i=t?Sa(t.dataProjection):null;let s=n;if(r&&i&&!N0(r,i)){e&&(s=n.clone());const l=e?r:i,o=e?i:r;l.getUnits()==="tile-pixels"?s.transform(l,o):s.applyTransform(yC(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(p){for(let v=0,x=p.length;v<x;++v)p[v]=Math.round(p[v]*l)/l;return p};s===n&&(s=n.clone()),s.applyTransform(o)}return s}const Iee={Point:Rg,LineString:Kg,Polygon:Gm,MultiPoint:VC,MultiLineString:_C,MultiPolygon:bC};function Tee(n,e,t){return Array.isArray(e[0])?(yL(n,0,e,t)||(n=n.slice(),g6(n,0,e,t)),n):(LB(n,0,e,t)||(n=n.slice(),s2(n,0,e,t)),n)}function KU(n,e){var s;const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(l=>KU({...n,geometry:l})).flat();const r=t.type==="MultiPolygon"?"Polygon":t.type;if(r==="GeometryCollection"||r==="Circle")throw new Error("Unsupported geometry type: "+r);const i=t.layout.length;return Dx(new fh(r,r==="Polygon"?Tee(t.flatCoordinates,t.ends,i):t.flatCoordinates,(s=t.ends)==null?void 0:s.flat(),i,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function wO(n,e){if(!n)return null;if(Array.isArray(n)){const r=n.map(i=>wO(i,e));return new u2(r)}const t=Iee[n.type];return Dx(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class kee extends PU{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(ob(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(ob(e),this.getReadOptions(e,t))}read
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(r,{type:"text/javascript"})));return i.addEventListener("message",e),i}function Nte(n,e){const t=YU(n.operation);let r=!1;return{postMessage:function(i){setTimeout(function(){r||e({data:{buffer:t(i),meta:i.meta}})},0)},terminate:function(){r=!0}}}class Wte extends NC{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const r=new Array(t);if(t)for(let i=0;i<t;++i)r[i]=zte(e,this.onWorkerMessage_.bind(this,i));else r[0]=Nte(e,this.onWorkerMessage_.bind(this,0));this.workers_=r,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,r){this.enqueue_({inputs:e,meta:t,callback:r}),this.dispatch_()}enqueue_(e){for(this.queue_.push(e);this.queue_.length>this.maxQueueLength_;)this.queue_.shift().callback(null,null)}dispatch_(){if(this.running_||this.queue_.length===0)return;const e=this.queue_.shift();this.job_=e;const t=e.inputs[0].width,r=e.inputs[0].height,i=e.inputs.map(function(p){return p.data.buffer}),s=this.workers_.length;if(this.running_=s,s===1){this.workers_[0].postMessage({buffers:i,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},i);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/s);for(let p=0;p<s;++p){const v=p*o,x=[];for(let B=0,k=i.length;B<k;++B)x.push(i[B].slice(v,v+o));this.workers_[p].postMessage({buffers:x,meta:e.meta,imageOps:this.imageOps_,width:t,height:r},x)}}onWorkerMessage_(e,t){this.disposed||(this.dataLookup_[e]=t.data,--this.running_,this.running_===0&&this.resolveJob_())}resolveJob_(){const e=this.job_,t=this.workers_.length;let r,i;if(t===1)r=new Uint8ClampedArray(this.dataLookup_[0].buffer),i=this.dataLookup_[0].meta;else{const s=e.inputs[0].data.length;r=new Uint8ClampedArray(s),i=new Array(t);const l=4*Math.ceil(s/4/t);for(let o=0;o<t;++o){const p=this.dataLookup_[o].buffer,v=o*l;r.set(new Uint8ClampedArray(p),v),i[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(r,e.inputs[0].width,e.inputs[0].height),i),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const p9={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class m9 extends Sp{constructor(e,t,r){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=r}}class qU extends WU{constructor(e){super({projection:null}),this.on,this.once,this.un,this.processor_=null,this.operationType_=e.operationType!==void 0?e.operationType:"pixel",this.threads_=e.threads!==void 0?e.threads:1,this.layers_=Qte(e.sources);const t=this.changed.bind(this);for(let r=0,i=this.layers_.length;r<i;++r)this.layers_[r].addEventListener(co.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new CU(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:yd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Gte(this.layers_),pixelRatio:1,pixelToCoordinateTransform:yd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Uo(this),renderTargets:{}},this.setAttributions(function(r){var s;const i=[];for(let l=0,o=e.sources.length;l<o;++l){const p=e.sources[l],v=p instanceof Ny?p:p.getSource();if(!v)continue;const x=(s=v.getAttributions())==null?void 0:s(r);typeof x=="string"?i.push(x):x!==void 0&&i.push(...x)}return i}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Wte({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,r){const i=Object.assign({},this.frameState_);i.viewState=Object.assign({},i.viewState);const s=Uf(e);i.size[0]=Math.ceil(zs(e)/t),i.size[1]=Math.ceil(zu(e)/t),i.extent=[s[0]-i.size[0]*t/2,s[1]-i.size[1]*t/2,s[0]+i.size[0]*t/2,s[1]+i.size[1]*t/2],i.time=Date.now();const l=i.viewState;return l.center=s,l.projection=r,l.resolution=t,i}allSourcesReady_(){let e=!0,t;for(let r=0,i=this.layers_.length;r<i;++r)if(t=this.layers_[r].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,r,i){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const s=this.updateFrameState_(e,t,i);if(this.requestedFrameState_=s,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!jm(s.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),s.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.re
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(VU(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,r){}}class nne extends Ux{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:rne,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,interpolate:e.interpolate!==void 0?e.interpolate:!0,key:e.key,attributionsCollapsible:e.attributionsCollapsible,zDirection:e.zDirection}),this.crossOrigin=e.crossOrigin!==void 0?e.crossOrigin:null,this.tileClass=e.tileClass!==void 0?e.tileClass:vU,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!N0(this.getProjection(),e)?0:this.getGutter()}getGutter(){return 0}getKey(){let e=super.getKey();return this.getInterpolate()||(e+=":disable-interpolation"),e}getTileGridForProjection(e){const t=this.getProjection();if(this.tileGrid&&(!t||N0(t,e)))return this.tileGrid;const r=Uo(e);return r in this.tileGridForProjection||(this.tileGridForProjection[r]=jU(e)),this.tileGridForProjection[r]}createTile_(e,t,r,i,s,l){const o=[e,t,r],p=this.getTileCoordForTileUrlFunction(o,s),v=p?this.tileUrlFunction(p,i,s):void 0,x=new this.tileClass(o,v!==void 0?Lr.IDLE:Lr.EMPTY,v!==void 0?v:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return x.key=l,x.addEventListener(co.CHANGE,this.handleTileChange.bind(this)),x}getTile(e,t,r,i,s){const l=this.getProjection();if(!l||!s||N0(l,s))return this.getTileInternal(e,t,r,i,l||s);const o=[e,t,r],p=this.getKey(),v=this.getTileGridForProjection(l),x=this.getTileGridForProjection(s),B=this.getTileCoordForTileUrlFunction(o,s),k=new UU(l,v,s,x,o,B,this.getTilePixelRatio(i),this.getGutter(),(P,D,N,W)=>this.getTileInternal(P,D,N,W,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return k.key=p,k}getTileInternal(e,t,r,i,s){const l=this.getKey();return this.createTile_(e,t,r,i,s,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const r=Sa(e);if(r){const i=Uo(r);i in this.tileGridForProjection||(this.tileGridForProjection[i]=t)}}}function rne(n,e){n.getImage().src=e}class HU extends nne{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Sa("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:"loading",tileLoadFunction:e.tileLoadFunction,wrapX:e.wrapX!==void 0?e.wrapX:!0,transition:e.transition,zDirection:e.zDirection}),this.tileJSON_=null,this.tileSize_=e.tileSize,e.url)if(e.jsonp)qte(e.url,this.handleTileJSONResponse.bind(this),this.handleTileJSONError.bind(this));else{const t=new XMLHttpRequest;t.addEventListener("load",this.onXHRLoad_.bind(this)),t.addEventListener("error",this.onXHRError_.bind(this)),t.open("GET",e.url),t.send()}else if(e.tileJSON)this.handleTileJSONResponse(e.tileJSON);else throw new Error("Either `url` or `tileJSON` options must be provided")}onXHRLoad_(e){const t=e.target;if(!t.status||t.status>=200&&t.status<300){let r;try{r=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(r)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Sa("EPSG:4326"),r=this.getProjection();let i;if(e.bounds!==void 0){const v=YC(t,r);i=g$(e.bounds,v)}const s=Lx(r),l=e.minzoom||0,o=e.maxzoom||22,p=EO({extent:s,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=VU(e.tiles,p),e.attribution&&!this.getAttributions()){const v=i!==void 0?i:s;this.setAttributions(function(x){return $A(v,x.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class $U extends Ux{constructor(e){const t=e.projection||"EPSG:3857",r=e.extent||Lx(t),i=e.tileGrid||EO({extent:r,maxResolution:e.maxResolution,maxZoom:e.maxZoom!==void 0?e.maxZoom:22,minZoom:e.minZoom,tileSize:e.tileSize||512});super({attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,cacheSize:e.cacheSize,interpolate:!0,projection:t,state:e.state,tileGrid:i,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:ZU,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX===void 0?!0:e.wrapX,transition:e.transition,zDirection:e.zDirection===void 0?1:e.zDirection}),this.format_=e.format?e.format:null,this.tileKeysBySourceTileUrl_={},this.sourceTiles_={},this.overlaps_=e.overlaps==null?!0:e.overlaps,this.tileClass=e.tileClass?e.tileClass:EU,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,r){if(r.getState()===Lr.IDLE){r.setState(Lr.LOADING);const i=r.wr
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/var h9;function one(){return h9||(h9=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(z4)),z4.exports}var sne=one();const rm=hl(sne);function cg(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return cg=function(){return l},l}cg();class ane extends Jn.Component{render(){cg().f[0]++;const e=(cg().s[0]++,{width:20,height:20,...this.props.style});return cg().s[1]++,this.props.isCollapsed?(cg().b[0][0]++,Ae.jsx($V,{style:e})):(cg().b[0][1]++,Ae.jsx(HV,{style:e}))}}function ny(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return ny=function(){return l},l}ny();class lne extends Jn.Component{render(){return ny().f[0]++,ny().s[0]++,Ae.jsx("li",{className:"maputnik-layer-list-group",children:Ae.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(ny().f[1]++,ny().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[Ae.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),Ae.jsx("span",{className:"maputnik-space"}),Ae.jsx(ane,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function wC(){return wC=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},wC.apply(null,arguments)}function Ane(n){if(Array.isArray(n))return n}function une(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],f=!0,v=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(f=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);f=!Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZU(n,e){return Ane(n)||une(n,e)||$U(n,e)||cne()}function Oy(n){"@babel/helpers - typeof";return Oy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oy(n)}function hne(n,e){if(Oy(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(Oy(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function XU(n){var e=hne(n,"string");return Oy(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=XU(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function N4(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ka(n,i,t[i])})}return n}function XC(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function dne(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,XU(r.key),r)}}function JC(n,e,t){return e&&dne(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ss(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _O(n,e){if(e&&(Oy(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ss(n)}function SC(n){return SC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SC(n)}function P6(n,e){return P6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},P6(n,e)}function bO(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&P6(n,e)}var W4,d9;function fne(){if(d9)return W4;d9=1;var n=function(e,t,r,i,s,l,o,f){if(!e){var v;if(t===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[r,i,s,l,o,f],B=0;v=new Error(t.replace(/%s/g,function(){return x[B++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};return W4=n,W4}var pne=fne();const Kg=hl(pne);function mne(n){if(Array.isArray(n))return k6(n)}function gne(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function yne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vne(n){return mne(n)||gne(n)||$U(n)||yne()}var Cne=function(){function n(){XC(this,n),Ka(this,"refs",{})}return JC(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(_ne)}}]),n}();function _ne(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function JU(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var w1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},ez=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function ob(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function sb(n,e){n.style["".concat(ez,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function j4(n,e){n.style["".concat(ez,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Kv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function f9(n,e,t){return Math.max(n,Math.min(t,e))}function ry(n){return n.substr(-2)==="px"?parseFloat(n):0}function bne(n){var e=window.getComputedStyle(n);return{bottom:ry(e.marginBottom),left:ry(e.marginLeft),right:ry(e.marginRight),top:ry(e.marginTop)}}function xO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function G4(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function yv(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function xne(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function wb(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:wb(n.parentNode,e,r)}}function Mne(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function p9(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Kg(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return Kg(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function wne(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Kg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=ZU(i,2),l=s[0],o=s[1];return[p9({height:e,lockOffset:l,width:t}),p9({height:e,lockOffset:o,width:t})]}function Sne(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function tz(n){return n instanceof HTMLElement?Sne(n)?n:tz(n.parentNode):null}function Ene(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:ry(e.gridColumnGap),y:ry(e.gridRowGap)}:{x:0,y:0}}var ig={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},hg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Bne(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=vne(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===hg.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function One(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){bO(s,i);function s(){var l,o;XC(this,s);for(var f=arguments.length,v=new Array(f),x=0;x<f;x++)v[x]=arguments[x];return o=_O(this,(l=SC(s)).call.apply(l,[this].concat(v))),Ka(ss(ss(o)),"wrappedInstance",Ai.createRef()),o}return JC(s,[{key:"componentDidMount",value:function(){var o=sx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Kg(r.withRef,"T
Line truncated
|
||||
*/var C9;function Cne(){return C9||(C9=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var s="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(s=i(s,r(o)))}return s}function r(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var o in s)e.call(s,o)&&s[o]&&(l=i(l,o));return l}function i(s,l){return l?s?s+" "+l:s+l:s}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(q4)),q4.exports}var _ne=Cne();const am=dl(_ne);function fg(){var n="/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",e="e73e8fb606fcd7318a8222b2e50c576ed3ad8702",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx",statementMap:{0:{start:{line:6,column:22},end:{line:10,column:5}},1:{start:{line:11,column:4},end:{line:11,column:154}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:12,column:3}},line:5}},branchMap:{0:{loc:{start:{line:11,column:11},end:{line:11,column:153}},type:"cond-expr",locations:[{start:{line:11,column:52},end:{line:11,column:92}},{start:{line:11,column:111},end:{line:11,column:153}}],line:11}},s:{0:0,1:0},f:{0:0},b:{0:[0,0]},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/Collapser.tsx"],names:[],mappings:"AAeoC;AAfpC,OAAO,WAAW;AAClB,SAAQ,iBAAiB,qBAAoB;AAO7C,qBAAqB,kBAAkB,MAAM,UAA0B;AAAA,EACrE,SAAS;AACP,UAAM,YAAY;AAAA,MAChB,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,GAAG,KAAK,MAAM;AAAA,IAChB;AACA,WAAO,KAAK,MAAM,cAAc,oBAAC,iBAAc,OAAO,WAAU,IAAK,oBAAC,mBAAgB,OAAO,WAAW;AAAA,EAC1G;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"e73e8fb606fcd7318a8222b2e50c576ed3ad8702"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return fg=function(){return l},l}fg();class bne extends Zn.Component{render(){fg().f[0]++;const e=(fg().s[0]++,{width:20,height:20,...this.props.style});return fg().s[1]++,this.props.isCollapsed?(fg().b[0][0]++,Ae.jsx(cH,{style:e})):(fg().b[0][1]++,Ae.jsx(uH,{style:e}))}}function oy(){var n="/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",e="b04bfec534013c327fd210571832bbd2813a944a",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx",statementMap:{0:{start:{line:6,column:4},end:{line:32,column:9}},1:{start:{line:11,column:25},end:{line:11,column:72}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:5,column:2},end:{line:5,column:3}},loc:{start:{line:5,column:11},end:{line:33,column:3}},line:5},1:{name:"(anonymous_1)",decl:{start:{line:11,column:17},end:{line:11,column:18}},loc:{start:{line:11,column:25},end:{line:11,column:72}},line:11}},branchMap:{},s:{0:0,1:0},f:{0:0,1:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/LayerListGroup.tsx"],names:[],mappings:"AAcM,SAIE,KAJF;AAdN,OAAO,WAAW;AAClB,OAAO,eAAe;AAUtB,qBAAqB,uBAAuB,MAAM,UAA+B;AAAA,EAC/E,SAAS;AACP,WAAO,oBAAC,QAAG,WAAU,6BACnB;AAAA,MAAC;AAAA;AAAA,QAAI,WAAU;AAAA,QACb,eAAa,sBAAoB,KAAK,MAAM,aAAa;AAAA,QACzD,SAAS,QAAM,KAAK,MAAM,eAAe,CAAC,KAAK,MAAM,QAAQ;AAAA,QAE7D;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAU;AAAA,cACV,iBAAe,KAAK,MAAM,eAAe;AAAA,cACzC,iBAAe,KAAK,MAAM;AAAA,cAEzB,eAAK,MAAM;AAAA;AAAA,UACd;AAAA,UACA,oBAAC,UAAK,WAAU,kBAAiB;AAAA,UACjC;AAAA,YAAC;AAAA;AAAA,cACC,OAAO,EAAE,QAAQ,IAAI,OAAO,GAAG;AAAA,cAC/B,aAAa,KAAK,MAAM;AAAA;AAAA,UAC1B;AAAA;AAAA;AAAA,IACF,GACF;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"b04bfec534013c327fd210571832bbd2813a944a"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return oy=function(){return l},l}oy();class xne extends Zn.Component{render(){return oy().f[0]++,oy().s[0]++,Ae.jsx("li",{className:"maputnik-layer-list-group",children:Ae.jsxs("div",{className:"maputnik-layer-list-group-header","data-wd-key":"layer-list-group:"+this.props["data-wd-key"],onClick:e=>(oy().f[1]++,oy().s[1]++,this.props.onActiveToggle(!this.props.isActive)),children:[Ae.jsx("button",{className:"maputnik-layer-list-group-title","aria-controls":this.props["aria-controls"],"aria-expanded":this.props.isActive,children:this.props.title}),Ae.jsx("span",{className:"maputnik-space"}),Ae.jsx(bne,{style:{height:14,width:14},isCollapsed:this.props.isActive})]})})}}function OC(){return OC=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},OC.apply(null,arguments)}function Mne(n){if(Array.isArray(n))return n}function wne(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,i,s,l,o=[],p=!0,v=!1;try{if(s=(t=t.call(n)).next,e!==0)for(;!(p=(r=s.call(t)).done)&&(o.push(r.value),o.length!==e);p=!Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function az(n,e){return Mne(n)||wne(n,e)||sz(n,e)||Sne()}function ky(n){"@babel/helpers - typeof";return ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ky(n)}function Ene(n,e){if(ky(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(ky(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function lz(n){var e=Ene(n,"string");return ky(e)=="symbol"?e:e+""}function Ka(n,e,t){return(e=lz(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function V4(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&r.push.apply(r,Object.getOwnPropertySymbols(t).filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.forEach(function(i){Ka(n,i,t[i])})}return n}function n_(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Bne(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,lz(r.key),r)}}function r_(n,e,t){return e&&Bne(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function as(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function BO(n,e){if(e&&(ky(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return as(n)}function IC(n){return IC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IC(n)}function N6(n,e){return N6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},N6(n,e)}function OO(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&N6(n,e)}var H4,_9;function One(){if(_9)return H4;_9=1;var n=function(e,t,r,i,s,l,o,p){if(!e){var v;if(t===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[r,i,s,l,o,p],B=0;v=new Error(t.replace(/%s/g,function(){return x[B++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};return H4=n,H4}var Ine=One();const Lg=dl(Ine);function Tne(n){if(Array.isArray(n))return z6(n)}function kne(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Pne(){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 Kne(n){return Tne(n)||kne(n)||sz(n)||Pne()}var Rne=function(){function n(){n_(this,n),Ka(this,"refs",{})}return r_(n,[{key:"add",value:function(t,r){this.refs[t]||(this.refs[t]=[]),this.refs[t].push(r)}},{key:"remove",value:function(t,r){var i=this.getIndex(t,r);i!==-1&&this.refs[t].splice(i,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var t=this;return this.refs[this.active.collection].find(function(r){var i=r.node;return i.sortableInfo.index==t.active.index})}},{key:"getIndex",value:function(t,r){return this.refs[t].indexOf(r)}},{key:"getOrderedRefs",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[t].sort(Dne)}}]),n}();function Dne(n,e){var t=n.node.sortableInfo.index,r=e.node.sortableInfo.index;return t-r}function Az(n,e){return Object.keys(n).reduce(function(t,r){return e.indexOf(r)===-1&&(t[r]=n[r]),t},{})}var B1={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},uz=function(){if(typeof window>"u"||typeof document>"u")return"";var n=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],e=(Array.prototype.slice.call(n).join("").match(/-(moz|webkit|ms)-/)||n.OLink===""&&["","o"])[1];switch(e){case"ms":return"ms";default:return e&&e.length?e[0].toUpperCase()+e.substr(1):""}}();function Ab(n,e){Object.keys(e).forEach(function(t){n.style[t]=e[t]})}function ub(n,e){n.style["".concat(uz,"Transform")]=e==null?"":"translate3d(".concat(e.x,"px,").concat(e.y,"px,0)")}function $4(n,e){n.style["".concat(uz,"TransitionDuration")]=e==null?"":"".concat(e,"ms")}function Fv(n,e){for(;n;){if(e(n))return n;n=n.parentNode}return null}function b9(n,e,t){return Math.max(n,Math.min(t,e))}function sy(n){return n.substr(-2)==="px"?parseFloat(n):0}function Fne(n){var e=window.getComputedStyle(n);return{bottom:sy(e.marginBottom),left:sy(e.marginLeft),right:sy(e.marginRight),top:sy(e.marginTop)}}function IO(n,e){var t=e.displayName||e.name;return t?"".concat(n,"(").concat(t,")"):n}function Z4(n,e){var t=n.getBoundingClientRect();return{top:t.top+e.top,left:t.left+e.left}}function _v(n){return n.touches&&n.touches.length?{x:n.touches[0].pageX,y:n.touches[0].pageY}:n.changedTouches&&n.changedTouches.length?{x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY}:{x:n.pageX,y:n.pageY}}function Lne(n){return n.touches&&n.touches.length||n.changedTouches&&n.changedTouches.length}function Ob(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(n){var r={left:t.left+n.offsetLeft,top:t.top+n.offsetTop};return n.parentNode===e?r:Ob(n.parentNode,e,r)}}function Une(n,e,t){return n<t&&n>e?n-1:n>t&&n<e?n+1:n}function x9(n){var e=n.lockOffset,t=n.width,r=n.height,i=e,s=e,l="px";if(typeof e=="string"){var o=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(e);Lg(o!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',e),i=parseFloat(e),s=parseFloat(e),l=o[1]}return Lg(isFinite(i)&&isFinite(s),"lockOffset value should be a finite. Given %s",e),l==="%"&&(i=i*t/100,s=s*r/100),{x:i,y:s}}function zne(n){var e=n.height,t=n.width,r=n.lockOffset,i=Array.isArray(r)?r:[r,r];Lg(i.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var s=az(i,2),l=s[0],o=s[1];return[x9({height:e,lockOffset:l,width:t}),x9({height:e,lockOffset:o,width:t})]}function Nne(n){var e=window.getComputedStyle(n),t=/(auto|scroll)/,r=["overflow","overflowX","overflowY"];return r.find(function(i){return t.test(e[i])})}function cz(n){return n instanceof HTMLElement?Nne(n)?n:cz(n.parentNode):null}function Wne(n){var e=window.getComputedStyle(n);return e.display==="grid"?{x:sy(e.gridColumnGap),y:sy(e.gridRowGap)}:{x:0,y:0}}var ag={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},pg={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function jne(n){var e="input, textarea, select, canvas, [contenteditable]",t=n.querySelectorAll(e),r=n.cloneNode(!0),i=Kne(r.querySelectorAll(e));return i.forEach(function(s,l){if(s.type!=="file"&&(s.value=t[l].value),s.type==="radio"&&s.name&&(s.name="__sortableClone__".concat(s.name)),s.tagName===pg.Canvas&&t[l].width>0&&t[l].height>0){var o=s.getContext("2d");o.drawImage(t[l],0,0)}}),r}function Gne(n){var e,t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return t=e=function(i){OO(s,i);function s(){var l,o;n_(this,s);for(var p=arguments.length,v=new Array(p),x=0;x<p;x++)v[x]=arguments[x];return o=BO(this,(l=IC(s)).call.apply(l,[this].concat(v))),Ka(as(as(o)),"wrappedInstance",Ai.createRef()),o}return r_(s,[{key:"componentDidMount",value:function(){var o=dx.findDOMNode(this);o.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Lg(r.withRef,"T
Line truncated
|
||||
* tabbable 6.2.0
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var sz=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],_2=sz.join(","),az=typeof Element>"u",Rg=az?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b2=!az&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},x2=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},Wne=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},lz=function(e,t,r){if(x2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(_2));return t&&Rg.call(e,_2)&&i.unshift(e),i=i.filter(r),i},Az=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!x2(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),f=o.length?o:l.children,v=n(f,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else{var x=Rg.call(l,_2);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),k=!x2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&k){var P=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:l,candidates:P})}else s.unshift.apply(s,l.children)}}return i},uz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},w0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Wne(e))&&!uz(e)?0:e.tabIndex},jne=function(e,t){var r=w0(e);return r<0&&t&&!uz(e)?0:r},Gne=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},cz=function(e){return e.tagName==="INPUT"},Qne=function(e){return cz(e)&&e.type==="hidden"},Yne=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},qne=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Vne=function(e){if(!e.name)return!0;var t=e.form||b2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=qne(i,e.form);return!s||s===e},Hne=function(e){return cz(e)&&e.type==="radio"},$ne=function(e){return Hne(e)&&!Vne(e)},Zne=function(e){var t,r=e&&b2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,f;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(f=e.ownerDocument)!==null&&f!==void 0&&f.contains(e));!s&&i;){var v,x,B;r=b2(i),i=(v=r)===null||v===void 0?void 0:v.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},g9=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},Xne=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Rg.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(Rg.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var f=e.parentElement,v=b2(e);if(f&&!f.shadowRoot&&i(f)===!0)return g9(e);e.assignedSlot?e=e.assignedSlot:!f&&v!==e.ownerDocument?e=v.host:e=f}e=o}if(Zne(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return g9(e);return!1},Jne=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return Rg.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},M2=function(e,t){return!(t.disabled||x2(t)||Qne(t)||Xne(t,e)||Yne(t)||Jne(t))},R6=function(e,t){return!($ne(t)||w0(t)<0||!M2(e,t))},ere=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},tre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,f=jne(o,l),v=l?n(i.candidates):o;f===0?l?t.push.apply(t,v):t.push(o):r.push({documentOrder:s,tabIndex:f,item:i,isScope:l,content:v})}),r.sort(Gne).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.pusLine truncated
|
||||
*/var mz=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],w2=mz.join(","),gz=typeof Element>"u",Ug=gz?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,S2=!gz&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},E2=function n(e,t){var r;t===void 0&&(t=!0);var i=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=i===""||i==="true",l=s||t&&e&&n(e.parentNode);return l},rre=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},yz=function(e,t,r){if(E2(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(w2));return t&&Ug.call(e,w2)&&i.unshift(e),i=i.filter(r),i},vz=function n(e,t,r){for(var i=[],s=Array.from(e);s.length;){var l=s.shift();if(!E2(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),p=o.length?o:l.children,v=n(p,!0,r);r.flatten?i.push.apply(i,v):i.push({scopeParent:l,candidates:v})}else{var x=Ug.call(l,w2);x&&r.filter(l)&&(t||!e.includes(l))&&i.push(l);var B=l.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(l),k=!E2(B,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(l));if(B&&k){var P=n(B===!0?l.children:B.children,!0,r);r.flatten?i.push.apply(i,P):i.push({scopeParent:l,candidates:P})}else s.unshift.apply(s,l.children)}}return i},Cz=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},B0=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||rre(e))&&!Cz(e)?0:e.tabIndex},ire=function(e,t){var r=B0(e);return r<0&&t&&!Cz(e)?0:r},ore=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},_z=function(e){return e.tagName==="INPUT"},sre=function(e){return _z(e)&&e.type==="hidden"},are=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},lre=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},Are=function(e){if(!e.name)return!0;var t=e.form||S2(e),r=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=r(window.CSS.escape(e.name));else try{i=r(e.name)}catch(l){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",l.message),!1}var s=lre(i,e.form);return!s||s===e},ure=function(e){return _z(e)&&e.type==="radio"},cre=function(e){return ure(e)&&!Are(e)},hre=function(e){var t,r=e&&S2(e),i=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var l,o,p;for(s=!!((l=i)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(i)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!s&&i;){var v,x,B;r=S2(i),i=(v=r)===null||v===void 0?void 0:v.host,s=!!((x=i)!==null&&x!==void 0&&(B=x.ownerDocument)!==null&&B!==void 0&&B.contains(i))}}return s},w9=function(e){var t=e.getBoundingClientRect(),r=t.width,i=t.height;return r===0&&i===0},dre=function(e,t){var r=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=Ug.call(e,"details>summary:first-of-type"),l=s?e.parentElement:e;if(Ug.call(l,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var p=e.parentElement,v=S2(e);if(p&&!p.shadowRoot&&i(p)===!0)return w9(e);e.assignedSlot?e=e.assignedSlot:!p&&v!==e.ownerDocument?e=v.host:e=p}e=o}if(hre(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return w9(e);return!1},fre=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var i=t.children.item(r);if(i.tagName==="LEGEND")return Ug.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},B2=function(e,t){return!(t.disabled||E2(t)||sre(t)||dre(t,e)||are(t)||fre(t))},j6=function(e,t){return!(cre(t)||B0(t)<0||!B2(e,t))},pre=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},mre=function n(e){var t=[],r=[];return e.forEach(function(i,s){var l=!!i.scopeParent,o=l?i.scopeParent:i,p=ire(o,l),v=l?n(i.candidates):o;p===0?l?t.push.apply(t,v):t.push(o):r.push({documentOrder:s,tabIndex:p,item:i,isScope:l,content:v})}),r.sort(ore).reduce(function(i,s){return s.isScope?i.push.apply(i,s.content):i.pusLine truncated
|
||||
* focus-trap 7.5.4
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function y9(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function v9(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?y9(Object(t),!0).forEach(function(r){ire(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):y9(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ire(n,e,t){return e=sre(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ore(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function sre(n){var e=ore(n,"string");return typeof e=="symbol"?e:String(e)}var C9={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},are=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},lre=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},Xv=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Are=function(e){return Xv(e)&&!e.shiftKey},ure=function(e){return Xv(e)&&e.shiftKey},_9=function(e){return setTimeout(e,0)},b9=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},vv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},ab=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},cre=[],hre=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||cre,s=v9({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Are,isKeyBackward:ure},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,f=function(me,Me,Le){return me&&me[Me]!==void 0?me[Me]:s[Le||Me]},v=function(me,Me){var Le=typeof(Me==null?void 0:Me.composedPath)=="function"?Me.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var pt=xe.container,Je=xe.tabbableNodes;return pt.contains(me)||(Le==null?void 0:Le.includes(pt))||Je.find(function(Ve){return Ve===me})})},x=function(me){var Me=s[me];if(typeof Me=="function"){for(var Le=arguments.length,xe=new Array(Le>1?Le-1:0),pt=1;pt<Le;pt++)xe[pt-1]=arguments[pt];Me=Me.apply(void 0,xe)}if(Me===!0&&(Me=void 0),!Me){if(Me===void 0||Me===!1)return Me;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Je=Me;if(typeof Me=="string"&&(Je=r.querySelector(Me),!Je))throw new Error("`".concat(me,"` as selector refers to no known node"));return Je},B=function(){var me=x("initialFocus");if(me===!1)return!1;if(me===void 0||!Sb(me,s.tabbableOptions))if(v(r.activeElement)>=0)me=r.activeElement;else{var Me=l.tabbableGroups[0],Le=Me&&Me.firstTabbableNode;me=Le||x("fallbackFocus")}if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},k=function(){if(l.containerGroups=l.containers.map(function(me){var Me=hz(me,s.tabbableOptions),Le=dz(me,s.tabbableOptions),xe=Me.length>0?Me[0]:void 0,pt=Me.length>0?Me[Me.length-1]:void 0,Je=Le.find(function(Se){return Ag(Se)}),Ve=Le.slice().reverse().find(function(Se){return Ag(Se)}),je=!!Me.find(function(Se){return w0(Se)>0});return{container:me,tabbableNodes:Me,focusableNodes:Le,posTabIndexesFound:je,firstTabbableNode:xe,lastTabbableNode:pt,firstDomTabbableNode:Je,lastDomTabbableNode:Ve,nextTabbableNode:function(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,_t=Me.indexOf(Fe);return _t<0?Ze?Le.slice(Le.indexOf(Fe)+1).find(function(Qt){return Ag(Qt)}):Le.slice(0,Le.indexOf(Fe)).reverse().find(function(Qt){return Ag(Qt)}):Me[_t+(Ze?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(me){return me.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function Ee(me){var Me=me.activeElement;if(Me)reLine truncated
|
||||
|
||||
The URL must include:
|
||||
|
||||
- \`{fontstack}\` - When requesting glyphs, this token is replaced with a comma separated list of fonts from a font stack specified in the text-font property of a symbol layer.
|
||||
|
||||
- \`{range}\` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.
|
||||
|
||||
This property is required if any layer uses the \`text-field\` layout property. The URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).`,example:"https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"}},bre={type:{doc:"The type of the source."}},xre={id:{type:"string",doc:"Unique layer name.",required:!0},type:{type:"enum",values:{fill:{doc:"A filled polygon with an optional stroked border.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},line:{doc:"A stroked line.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},symbol:{doc:"An icon or a text label.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},circle:{doc:"A filled circle.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},heatmap:{doc:"A heatmap.","sdk-support":{"basic functionality":{js:"0.41.0",android:"6.0.0",ios:"4.0.0"}}},"fill-extrusion":{doc:"An extruded (3D) polygon.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},raster:{doc:"Raster map textures such as satellite imagery.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}},hillshade:{doc:"Client-side hillshading visualization based on DEM data. The implementation supports Mapbox Terrain RGB, Mapzen Terrarium tiles and custom encodings.","sdk-support":{"basic functionality":{js:"0.43.0",android:"6.0.0",ios:"4.0.0"}}},background:{doc:"The background color or pattern of the map.","sdk-support":{"basic functionality":{js:"0.10.0",android:"2.0.1",ios:"2.0.0"}}}},doc:"Rendering type of this layer.",required:!0},source:{type:"string",doc:"Name of a source description to be used for this layer. Required for all layer types except `background`."},minzoom:{type:"number",minimum:0,maximum:24,doc:"The minimum zoom level for the layer. At zoom levels less than the minzoom, the layer will be hidden."},maxzoom:{type:"number",minimum:0,maximum:24,doc:"The maximum zoom level for the layer. At zoom levels equal to or greater than the maxzoom, the layer will be hidden."}},Mre={values:{"==":{doc:'`["==", key, value]` equality: `feature[key] = value`'},"!=":{doc:'`["!=", key, value]` inequality: `feature[key] ≠ value`'},">":{doc:'`[">", key, value]` greater than: `feature[key] > value`'},">=":{doc:'`[">=", key, value]` greater than or equal: `feature[key] ≥ value`'},"<":{doc:'`["<", key, value]` less than: `feature[key] < value`'},"<=":{doc:'`["<=", key, value]` less than or equal: `feature[key] ≤ value`'},in:{doc:'`["in", key, v0, ..., vn]` set inclusion: `feature[key] ∈ {v0, ..., vn}`'},"!in":{doc:'`["!in", key, v0, ..., vn]` set exclusion: `feature[key] ∉ {v0, ..., vn}`'},all:{doc:'`["all", f0, ..., fn]` logical `AND`: `f0 ∧ ... ∧ fn`'},any:{doc:'`["any", f0, ..., fn]` logical `OR`: `f0 ∨ ... ∨ fn`'},none:{doc:'`["none", f0, ..., fn]` logical `NOR`: `¬f0 ∧ ... ∧ ¬fn`'},has:{doc:'`["has", key]` `feature[key]` exists'},"!has":{doc:'`["!has", key]` `feature[key]` does not exist'}}},wre={anchor:{type:"enum",default:"viewport",values:{map:{doc:"The position of the light source is aligned to the rotation of the map."},viewport:{doc:"The position of the light source is aligned to the rotation of the viewport."}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]},doc:"Whether extruded geometries are lit relative to the map or viewport.",example:"map","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},doc:"Position of the light source relative to lit (extruded) geometries, in [r radial coordinate, a azimuthal angle, p polar angle] where r indicates the distance from the center of the base of an object to its light, a indicates the position of the light relative to 0° (0° when `light.anchor` is set to `viewport` corresponds to the top of the viewport, or 0° when `light.anchor` is set to `map` corresponds to due north, and degrees proceed clockwise), and p indicates the height of the light (from 0°, directly above, to 180°, directly below).",example:[1.5,90,80],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Color tint for lighting extruded geometries.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}}},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0,doc:"Intensity of lighting (on a scale from 0 to 1). Higher numbers will present as more extreme contrast.","sdk-support":{"basic functionality":{js:Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var aie=Fx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,f=o===void 0?!1:o;Dx(this,n),Ll(this,"expanded",void 0),Ll(this,"allowMultipleExpanded",void 0),Ll(this,"allowZeroExpanded",void 0),Ll(this,"toggleExpanded",function(v){if(t.isItemDisabled(v))return t;var x=t.isItemExpanded(v);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==v})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(eie(t.expanded),[v]):[v]})}),Ll(this,"isItemDisabled",function(v){var x=t.isItemExpanded(v),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),Ll(this,"isItemExpanded",function(v){return t.expanded.indexOf(v)!==-1}),Ll(this,"getPanelAttributes",function(v,x){var B=x??t.isItemExpanded(v);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(v),id:t.getPanelId(v),hidden:B?void 0:!0}}),Ll(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ll(this,"getButtonAttributes",function(v,x){var B=x??t.isItemExpanded(v),k=t.isItemDisabled(v);return{id:t.getButtonId(v),"aria-disabled":k,"aria-expanded":B,"aria-controls":t.getPanelId(v),role:"button",tabIndex:0}}),Ll(this,"getPanelId",function(v){return"accordion__panel-".concat(v)}),Ll(this,"getButtonId",function(v){return"accordion__heading-".concat(v)}),Ll(this,"augment",function(v){return new n(D6({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},v))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=f}),wz=Ai.createContext(null),Sz=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"state",new aie({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Ll(cp(r),"toggleExpanded",function(o){r.setState(function(f){return f.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Ll(cp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Ll(cp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Ll(cp(r),"getPanelAttributes",function(o,f){return r.state.getPanelAttributes(o,f)}),Ll(cp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Ll(cp(r),"getButtonAttributes",function(o,f){return r.state.getButtonAttributes(o,f)}),r}return Fx(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return Ai.createElement(wz.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Ai.PureComponent);Ll(Sz,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Ez=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return Fx(t,[{key:"render",value:function(){return Ai.createElement(wz.Consumer,null,this.renderChildren)}}]),t}(Ai.PureComponent),lie=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Aie=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,f=Lx(e,lie);return Ai.createElement(Sz,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},Ai.createElement("div",im({"data-accordion-component":"Accordion",className:r},f)))},U6;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(U6||(U6={}));var Bz=U6,cM=0;function uie(){var n=cM;return cM=cM+1,"raa-".concat(n)}var cie=Ai.useId||uie,hie=/[\u0009\u000a\u000c\u000d\u0020]/g;function EC(n){return n===""||hie.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Oz=Ai.createContext(null),die=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(v){var x=s??v.isItemExpanded(r),B=v.isItemDisabled(r),k=v.getPanelAttributes(r,s),P=v.getHeadingAttributes(r),U=v.getButtonAttributes(r,s);return Ai.createElement(Oz.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:k,headingAttributes:P,buttonAttributes:U}},t)};return Ai.createElement(Ez,nu
Line truncated
|
||||
*/function S9(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function E9(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?S9(Object(t),!0).forEach(function(r){vre(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):S9(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function vre(n,e,t){return e=_re(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Cre(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function _re(n){var e=Cre(n,"string");return typeof e=="symbol"?e:String(e)}var B9={activateTrap:function(e,t){if(e.length>0){var r=e[e.length-1];r!==t&&r.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1),e.length>0&&e[e.length-1].unpause()}},bre=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},xre=function(e){return(e==null?void 0:e.key)==="Escape"||(e==null?void 0:e.key)==="Esc"||(e==null?void 0:e.keyCode)===27},nC=function(e){return(e==null?void 0:e.key)==="Tab"||(e==null?void 0:e.keyCode)===9},Mre=function(e){return nC(e)&&!e.shiftKey},wre=function(e){return nC(e)&&e.shiftKey},O9=function(e){return setTimeout(e,0)},I9=function(e,t){var r=-1;return e.every(function(i,s){return t(i)?(r=s,!1):!0}),r},bv=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,r):e},cb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Sre=[],Ere=function(e,t){var r=(t==null?void 0:t.document)||document,i=(t==null?void 0:t.trapStack)||Sre,s=E9({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Mre,isKeyBackward:wre},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,p=function(me,pe,qe){return me&&me[pe]!==void 0?me[pe]:s[qe||pe]},v=function(me,pe){var qe=typeof(pe==null?void 0:pe.composedPath)=="function"?pe.composedPath():void 0;return l.containerGroups.findIndex(function(Se){var vt=Se.container,Je=Se.tabbableNodes;return vt.contains(me)||(qe==null?void 0:qe.includes(vt))||Je.find(function(Ke){return Ke===me})})},x=function(me){var pe=s[me];if(typeof pe=="function"){for(var qe=arguments.length,Se=new Array(qe>1?qe-1:0),vt=1;vt<qe;vt++)Se[vt-1]=arguments[vt];pe=pe.apply(void 0,Se)}if(pe===!0&&(pe=void 0),!pe){if(pe===void 0||pe===!1)return pe;throw new Error("`".concat(me,"` was specified but was not a node, or did not return a node"))}var Je=pe;if(typeof pe=="string"&&(Je=r.querySelector(pe),!Je))throw new Error("`".concat(me,"` as selector refers to no known node"));return Je},B=function(){var me=x("initialFocus");if(me===!1)return!1;if(me===void 0||!Ib(me,s.tabbableOptions))if(v(r.activeElement)>=0)me=r.activeElement;else{var pe=l.tabbableGroups[0],qe=pe&&pe.firstTabbableNode;me=qe||x("fallbackFocus")}if(!me)throw new Error("Your focus-trap needs to have at least one focusable element");return me},k=function(){if(l.containerGroups=l.containers.map(function(me){var pe=bz(me,s.tabbableOptions),qe=xz(me,s.tabbableOptions),Se=pe.length>0?pe[0]:void 0,vt=pe.length>0?pe[pe.length-1]:void 0,Je=qe.find(function(Pe){return hg(Pe)}),Ke=qe.slice().reverse().find(function(Pe){return hg(Pe)}),je=!!pe.find(function(Pe){return B0(Pe)>0});return{container:me,tabbableNodes:pe,focusableNodes:qe,posTabIndexesFound:je,firstTabbableNode:Se,lastTabbableNode:vt,firstDomTabbableNode:Je,lastDomTabbableNode:Ke,nextTabbableNode:function(Le){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Ct=pe.indexOf(Le);return Ct<0?Xe?qe.slice(qe.indexOf(Le)+1).find(function(Gt){return hg(Gt)}):qe.slice(0,qe.indexOf(Le)).reverse().find(function(Gt){return hg(Gt)}):pe[Ct+(Xe?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(me){return me.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!x("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(l.containerGroups.find(function(me){return me.posTabIndexesFound})&&l.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},P=function Me(me){var pe=me.activeElement;if(pe)reLine truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ie(){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 bie=Gx(function n(e){var t=this,r=e.expanded,i=r===void 0?[]:r,s=e.allowMultipleExpanded,l=s===void 0?!1:s,o=e.allowZeroExpanded,p=o===void 0?!1:o;jx(this,n),Ll(this,"expanded",void 0),Ll(this,"allowMultipleExpanded",void 0),Ll(this,"allowZeroExpanded",void 0),Ll(this,"toggleExpanded",function(v){if(t.isItemDisabled(v))return t;var x=t.isItemExpanded(v);return x?t.augment({expanded:t.expanded.filter(function(B){return B!==v})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(pie(t.expanded),[v]):[v]})}),Ll(this,"isItemDisabled",function(v){var x=t.isItemExpanded(v),B=t.expanded.length===1;return!!(x&&!t.allowZeroExpanded&&B)}),Ll(this,"isItemExpanded",function(v){return t.expanded.indexOf(v)!==-1}),Ll(this,"getPanelAttributes",function(v,x){var B=x??t.isItemExpanded(v);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!B:void 0,"aria-labelledby":t.getButtonId(v),id:t.getPanelId(v),hidden:B?void 0:!0}}),Ll(this,"getHeadingAttributes",function(){return{role:"heading"}}),Ll(this,"getButtonAttributes",function(v,x){var B=x??t.isItemExpanded(v),k=t.isItemDisabled(v);return{id:t.getButtonId(v),"aria-disabled":k,"aria-expanded":B,"aria-controls":t.getPanelId(v),role:"button",tabIndex:0}}),Ll(this,"getPanelId",function(v){return"accordion__panel-".concat(v)}),Ll(this,"getButtonId",function(v){return"accordion__heading-".concat(v)}),Ll(this,"augment",function(v){return new n(G6({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},v))}),this.expanded=i,this.allowMultipleExpanded=l,this.allowZeroExpanded=p}),Rz=Ai.createContext(null),Dz=function(n){PO(t,n);var e=KO(t);function t(){var r;jx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(dp(r),"state",new bie({expanded:r.props.preExpanded,allowMultipleExpanded:r.props.allowMultipleExpanded,allowZeroExpanded:r.props.allowZeroExpanded})),Ll(dp(r),"toggleExpanded",function(o){r.setState(function(p){return p.toggleExpanded(o)},function(){r.props.onChange&&r.props.onChange(r.state.expanded)})}),Ll(dp(r),"isItemDisabled",function(o){return r.state.isItemDisabled(o)}),Ll(dp(r),"isItemExpanded",function(o){return r.state.isItemExpanded(o)}),Ll(dp(r),"getPanelAttributes",function(o,p){return r.state.getPanelAttributes(o,p)}),Ll(dp(r),"getHeadingAttributes",function(){return r.state.getHeadingAttributes()}),Ll(dp(r),"getButtonAttributes",function(o,p){return r.state.getButtonAttributes(o,p)}),r}return Gx(t,[{key:"render",value:function(){var i=this.state,s=i.allowZeroExpanded,l=i.allowMultipleExpanded;return Ai.createElement(Rz.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:s,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Ai.PureComponent);Ll(Dz,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var Fz=function(n){PO(t,n);var e=KO(t);function t(){var r;jx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(dp(r),"renderChildren",function(o){return o?r.props.children(o):null}),r}return Gx(t,[{key:"render",value:function(){return Ai.createElement(Rz.Consumer,null,this.renderChildren)}}]),t}(Ai.PureComponent),xie=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],Mie=function(e){var t=e.className,r=t===void 0?"accordion":t,i=e.allowMultipleExpanded,s=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,p=Qx(e,xie);return Ai.createElement(Dz,{preExpanded:o,allowMultipleExpanded:i,allowZeroExpanded:s,onChange:l},Ai.createElement("div",lm({"data-accordion-component":"Accordion",className:r},p)))},q6;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(q6||(q6={}));var Lz=q6,yM=0;function wie(){var n=yM;return yM=yM+1,"raa-".concat(n)}var Sie=Ai.useId||wie,Eie=/[\u0009\u000a\u000c\u000d\u0020]/g;function TC(n){return n===""||Eie.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var Uz=Ai.createContext(null),Bie=function(e){var t=e.children,r=e.uuid,i=e.accordionContext,s=e.dangerouslySetExpanded,l=function(){i.toggleExpanded(r)},o=function(v){var x=s??v.isItemExpanded(r),B=v.isItemDisabled(r),k=v.getPanelAttributes(r,s),P=v.getHeadingAttributes(r),D=v.getButtonAttributes(r,s);return Ai.createElement(Uz.Provider,{value:{uuid:r,expanded:x,disabled:B,toggleExpanded:l,panelAttributes:k,headingAttributes:P,buttonAttributes:D}},t)};return Ai.createElement(Fz,nu
Line truncated
|
||||
|
||||
From the WAI-ARIA spec (https://www.w3.org/TR/wai-aria-practices-1.1/#accordion):
|
||||
|
||||
“The button element is the only element inside the heading element. That is, if there are other visually persistent elements, they are not included inside the heading element.”
|
||||
|
||||
`,kz=function(n){SO(t,n);var e=EO(t);function t(){var r;Dx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(cp(r),"ref",void 0),Ll(cp(r),"setRef",function(o){r.ref=o}),r}return Fx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Ai.createElement("div",im({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(i){if(i===void 0)throw new Error("ref is undefined");if(!(i.childElementCount===1&&i.firstElementChild&&i.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(Mie)}}]),t}(Ai.PureComponent);Ll(kz,"defaultProps",xie);var Pz=function(e){return Ai.createElement(Ux,null,function(t){var r=t.headingAttributes;return e.id&&EC(e.id),Ai.createElement(kz,im({},e,r))})};Pz.displayName=Bz.AccordionItemHeading;var wie=["className","region","id"],Sie=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=Lx(e,wie),o=function(v){var x=v.panelAttributes;s&&EC(s);var B=D6(D6({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return Ai.createElement("div",im({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return Ai.createElement(Ux,null,o)},Eb={exports:{}},Eie=Eb.exports,q9;function Nx(){return q9||(q9=1,function(n,e){(function(t,r){n.exports=r()})(Eie,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),f=s||l||o,v=f&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),k=!o&&/Chrome\/(\d+)/.exec(t),P=k&&+k[1],U=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),V=/PhantomJS/.test(t),$=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),te=$||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),q=$||/Mac/.test(r),ne=/\bCrOS\b/.test(t),G=/win/i.test(r),ie=U&&t.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&(U=!1,x=!0);var de=q&&(B||U&&(ie==null||ie<12.11)),fe=i||f&&v>=9;function Ee(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var me=function(u,g){var E=u.className,S=Ee(g).exec(E);if(S){var K=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(K?S[1]+K:"")}};function Me(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function Le(u,g){return Me(u).appendChild(g)}function xe(u,g,E,S){var K=document.createElement(u);if(E&&(K.className=E),S&&(K.style.cssText=S),typeof g=="string")K.appendChild(document.createTextNode(g));else if(g)for(var Z=0;Z<g.length;++Z)K.appendChild(g[Z]);return K}function pt(u,g,E,S){var K=xe(u,g,E,S);return K.setAttribute("role","presentation"),K}var Je;document.createRange?Je=function(u,g,E,S){var K=document.createRange();return K.setEnd(S||u,E),K.setStart(u,g),K}:Je=function(u,g,E){var S=document.body.createTextRange();try{S.moveToElementText(u.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",g),S};function Ve(u,g){if(g.nodeType==3&&(g=g.parentNode),u.contains)return u.contains(g);do if(g.nodeType==11&&(g=g.host),g==u)return!0;while(g=g.parentNode)}function je(u){var g=u.ownerDocument||u,E;try{E=u.activeElement}catch{E=g.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Se(u,g){var E=u.className;Ee(g).test(E)||(u.className+=(E?" ":"")+g)}function Fe(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!Ee(E[S]).test(g)&&(g+=" "+E[S]);return g}var Ze=function(u){u.select()};$?Ze=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&(Ze=function(u){try{u.select()}catch{}});function _t(u){return u.display.wrapper.ownerDocument}function Qt(u){return gt(u.display.wrapper)}function gt(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Ut(u){return _t(u).defaultView}function Pt(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function ze(u,g,E){g||(g={});for(var S in u)u.hasOwnProperty(S)&&(E!==!1||!g.hasOwnProperty(S))&&(g[S]=u[S]);return g}function Ke(u,g,E,S,K){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var Z=S||0,ue=K||0;;){var _e=u.indexOf(" ",Z);if(_e<0||_e>=g)return ue+(g-Z);ue+=_e-Z,ue+=E-ue%E,Z=_e+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Oe.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Oe.prototype.set=function(u,g){this.f=g;var E=+new Date+u;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,u),this.time=E)};function it(u,g){for(var E=0;E<u.length;++E)if(u[E]==g)return E;return-1}var
Line truncated
|
||||
`,Wz=function(n){PO(t,n);var e=KO(t);function t(){var r;jx(this,t);for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return r=e.call.apply(e,[this].concat(s)),Ll(dp(r),"ref",void 0),Ll(dp(r),"setRef",function(o){r.ref=o}),r}return Gx(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Ai.createElement("div",lm({"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(Uie)}}]),t}(Ai.PureComponent);Ll(Wz,"defaultProps",Lie);var jz=function(e){return Ai.createElement(Yx,null,function(t){var r=t.headingAttributes;return e.id&&TC(e.id),Ai.createElement(Wz,lm({},e,r))})};jz.displayName=Lz.AccordionItemHeading;var zie=["className","region","id"],Nie=function(e){var t=e.className,r=t===void 0?"accordion__panel":t,i=e.region,s=e.id,l=Qx(e,zie),o=function(v){var x=v.panelAttributes;s&&TC(s);var B=G6(G6({},x),{},{"aria-labelledby":i?x["aria-labelledby"]:void 0});return Ai.createElement("div",lm({"data-accordion-component":"AccordionItemPanel",className:r},l,B,{role:i?"region":void 0}))};return Ai.createElement(Yx,null,o)},Tb={exports:{}},Wie=Tb.exports,tT;function Vx(){return tT||(tT=1,function(n,e){(function(t,r){n.exports=r()})(Wie,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),s=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),p=s||l||o,v=p&&(s?document.documentMode||6:+(o||l)[1]),x=!o&&/WebKit\//.test(t),B=x&&/Qt\/\d+\.\d+/.test(t),k=!o&&/Chrome\/(\d+)/.exec(t),P=k&&+k[1],D=/Opera\//.test(t),N=/Apple Computer/.test(navigator.vendor),W=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),V=/PhantomJS/.test(t),$=N&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),ie=/Android/.test(t),ne=$||ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),q=$||/Mac/.test(r),te=/\bCrOS\b/.test(t),G=/win/i.test(r),oe=D&&t.match(/Version\/(\d*\.\d*)/);oe&&(oe=Number(oe[1])),oe&&oe>=15&&(D=!1,x=!0);var fe=q&&(B||D&&(oe==null||oe<12.11)),he=i||p&&v>=9;function Me(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var me=function(u,g){var E=u.className,S=Me(g).exec(E);if(S){var K=E.slice(S.index+S[0].length);u.className=E.slice(0,S.index)+(K?S[1]+K:"")}};function pe(u){for(var g=u.childNodes.length;g>0;--g)u.removeChild(u.firstChild);return u}function qe(u,g){return pe(u).appendChild(g)}function Se(u,g,E,S){var K=document.createElement(u);if(E&&(K.className=E),S&&(K.style.cssText=S),typeof g=="string")K.appendChild(document.createTextNode(g));else if(g)for(var Z=0;Z<g.length;++Z)K.appendChild(g[Z]);return K}function vt(u,g,E,S){var K=Se(u,g,E,S);return K.setAttribute("role","presentation"),K}var Je;document.createRange?Je=function(u,g,E,S){var K=document.createRange();return K.setEnd(S||u,E),K.setStart(u,g),K}:Je=function(u,g,E){var S=document.body.createTextRange();try{S.moveToElementText(u.parentNode)}catch{return S}return S.collapse(!0),S.moveEnd("character",E),S.moveStart("character",g),S};function Ke(u,g){if(g.nodeType==3&&(g=g.parentNode),u.contains)return u.contains(g);do if(g.nodeType==11&&(g=g.host),g==u)return!0;while(g=g.parentNode)}function je(u){var g=u.ownerDocument||u,E;try{E=u.activeElement}catch{E=g.body||null}for(;E&&E.shadowRoot&&E.shadowRoot.activeElement;)E=E.shadowRoot.activeElement;return E}function Pe(u,g){var E=u.className;Me(g).test(E)||(u.className+=(E?" ":"")+g)}function Le(u,g){for(var E=u.split(" "),S=0;S<E.length;S++)E[S]&&!Me(E[S]).test(g)&&(g+=" "+E[S]);return g}var Xe=function(u){u.select()};$?Xe=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:p&&(Xe=function(u){try{u.select()}catch{}});function Ct(u){return u.display.wrapper.ownerDocument}function Gt(u){return mt(u.display.wrapper)}function mt(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function Ut(u){return Ct(u).defaultView}function kt(u){var g=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,g)}}function Te(u,g,E){g||(g={});for(var S in u)u.hasOwnProperty(S)&&(E!==!1||!g.hasOwnProperty(S))&&(g[S]=u[S]);return g}function Re(u,g,E,S,K){g==null&&(g=u.search(/[^\s\u00a0]/),g==-1&&(g=u.length));for(var Z=S||0,ue=K||0;;){var be=u.indexOf(" ",Z);if(be<0||be>=g)return ue+(g-Z);ue+=be-Z,ue+=E-ue%E,Z=be+1}}var Ue=function(){this.id=null,this.f=null,this.time=0,this.handler=kt(this.onTimeout,this)};Ue.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Ue.prototype.set=function(u,g){this.f=g;var E=+new Date+u;(!this.id||E<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,u),this.time=E)};function nt(u,g){for(var E=0;E<u.length;++E)if(u[E]==g)return E;return-1}var
Line truncated
|
||||
|
||||
b`.split(/\n/).length!=3?function(u){for(var g=0,E=[],S=u.length;g<=S;){var K=u.indexOf(`
|
||||
`,g);K==-1&&(K=u.length);var Z=u.slice(g,u.charAt(K-1)=="\r"?K-1:K),ue=Z.indexOf("\r");ue!=-1?(E.push(Z.slice(0,ue)),g+=ue+1):(E.push(Z),g=K+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Pr=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch{return!1}}:function(u){var g;try{g=u.ownerDocument.selection.createRange()}catch{}return!g||g.parentElement()!=u?!1:g.compareEndPoints("StartToEnd",g)!=0},vs=function(){var u=xe("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Ao=null;function ui(u){if(Ao!=null)return Ao;var g=Le(u,xe("span","x")),E=g.getBoundingClientRect(),S=Je(g,0,1).getBoundingClientRect();return Ao=Math.abs(E.left-S.left)>1}var $r={},Cs={};function ds(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),$r[u]=g}function Xa(u,g){Cs[u]=g}function sa(u){if(typeof u=="string"&&Cs.hasOwnProperty(u))u=Cs[u];else if(u&&typeof u.name=="string"&&Cs.hasOwnProperty(u.name)){var g=Cs[u.name];typeof g=="string"&&(g={name:g}),u=br(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return sa("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return sa("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function Wo(u,g){g=sa(g);var E=$r[g.name];if(!E)return Wo(u,"text/plain");var S=E(u,g);if(Uo.hasOwnProperty(g.name)){var K=Uo[g.name];for(var Z in K)K.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=K[Z])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ue in g.modeProps)S[ue]=g.modeProps[ue];return S}var Uo={};function So(u,g){var E=Uo.hasOwnProperty(u)?Uo[u]:Uo[u]={};ze(g,E)}function pi(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var K=g[S];K instanceof Array&&(K=K.concat([])),E[S]=K}return E}function tA(u,g){for(var E;u.innerMode&&(E=u.innerMode(g),!(!E||E.mode==u));)g=E.state,u=E.mode;return E||{mode:u,state:g}}function _l(u,g,E){return u.startState?u.startState(g,E):!0}var Ni=function(u,g,E){this.pos=this.start=0,this.string=u,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};Ni.prototype.eol=function(){return this.pos>=this.string.length},Ni.prototype.sol=function(){return this.pos==this.lineStart},Ni.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ni.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ni.prototype.eat=function(u){var g=this.string.charAt(this.pos),E;if(typeof u=="string"?E=g==u:E=g&&(u.test?u.test(g):u(g)),E)return++this.pos,g},Ni.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},Ni.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Ni.prototype.skipToEnd=function(){this.pos=this.string.length},Ni.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},Ni.prototype.backUp=function(u){this.pos-=u},Ni.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ke(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ue){return E?ue.toLowerCase():ue},K=this.string.substr(this.pos,u.length);if(S(K)==S(u))return g!==!1&&(this.pos+=u.length),!0}else{var Z=this.string.slice(this.pos).match(u);return Z&&Z.index>0?null:(Z&&g!==!1&&(this.pos+=Z[0].length),Z)}},Ni.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ni.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},Ni.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},Ni.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function Mr(u,g){if(g-=u.first,g<0||g>=u.size)throw new Error("There is no line "+(g+u.first)+" in the document.");for(var E=u;!E.lines;)for(var S=0;;++S){var K=E.children[S],Z=K.chunkSize();if(g<Z){E=K;break}g-=Z}return E.lines[g]}function Da(u,g,E){var S=[],K=g.line;return u.iter(g.line,E.line+1,function(Z){var ue=Z.text;K==E.line&&(ue=ue.slice(0,E.ch)),K==g.line&&(ue=ue.slice(g.ch)),S.push(ue),++K}),S}function _s(u,g,E){var S=[];return u.iter(g,E,function(K){S.push(K.text)}),S}function Rs(u,g){var E=g-u.height;if(E)for(var S=u;S;S=S.parent)S.height+=E}function qe(u){if(u.parent==null)return null;for(var g=u.parent,E=it(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var K=0;S.children[K]!=g;++K)E+=S.children[K].chunkSize();return E+g.first}function xt(u,g){var E=u.first;e:do{for(var S=0;S<u.child
Line truncated
|
||||
`?(Fn=mt.appendChild(xe("span",tn[0]=="\r"?"␍":"","cm-invalidchar")),Fn.setAttribute("cm-text",tn[0]),u.col+=1):(Fn=u.cm.options.specialCharPlaceholder(tn[0]),Fn.setAttribute("cm-text",tn[0]),f&&v<9?mt.appendChild(xe("span",[Fn])):mt.appendChild(Fn),u.col+=1);u.map.push(u.pos,u.pos+1,Fn),u.pos++}}if(u.trailingSpace=_e.charCodeAt(g.length-1)==32,E||S||K||Ne||Z||ue){var gr=E||"";S&&(gr+=S),K&&(gr+=K);var ur=xe("span",[mt],gr,Z);if(ue)for(var Rr in ue)ue.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&ur.setAttribute(Rr,ue[Rr]);return u.content.appendChild(ur)}u.content.appendChild(mt)}}function mh(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",K=0;K<u.length;K++){var Z=u.charAt(K);Z==" "&&E&&(K==u.length-1||u.charCodeAt(K+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function ns(u,g){return function(E,S,K,Z,ue,_e,Pe){K=K?K+" cm-force-border":"cm-force-border";for(var Ne=E.pos,mt=Ne+S.length;;){for(var Mt=void 0,tn=0;tn<g.length&&(Mt=g[tn],!(Mt.to>Ne&&Mt.from<=Ne));tn++);if(Mt.to>=mt)return u(E,S,K,Z,ue,_e,Pe);u(E,S.slice(0,Mt.to-Ne),K,Z,null,_e,Pe),Z=null,S=S.slice(Mt.to-Ne),Ne=Mt.to}}}function yu(u,g,E,S){var K=!S&&E.widgetNode;K&&u.map.push(u.pos,u.pos+g,K),!S&&u.cm.display.input.needsContentAttribute&&(K||(K=u.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",E.id)),K&&(u.cm.display.input.setUneditable(K),u.content.appendChild(K)),u.pos+=g,u.trailingSpace=!1}function gh(u,g,E){var S=u.markedSpans,K=u.text,Z=0;if(!S){for(var ue=1;ue<E.length;ue+=2)g.addToken(g,K.slice(Z,Z=E[ue]),gd(E[ue+1],g.cm.options));return}for(var _e=K.length,Pe=0,Ne=1,mt="",Mt,tn,Yt=0,wn,Fn,Zn,Xn,gr;;){if(Yt==Pe){wn=Fn=Zn=tn="",gr=null,Xn=null,Yt=1/0;for(var ur=[],Rr=void 0,ii=0;ii<S.length;++ii){var kr=S[ii],ro=kr.marker;if(ro.type=="bookmark"&&kr.from==Pe&&ro.widgetNode)ur.push(ro);else if(kr.from<=Pe&&(kr.to==null||kr.to>Pe||ro.collapsed&&kr.to==Pe&&kr.from==Pe)){if(kr.to!=null&&kr.to!=Pe&&Yt>kr.to&&(Yt=kr.to,Fn=""),ro.className&&(wn+=" "+ro.className),ro.css&&(tn=(tn?tn+";":"")+ro.css),ro.startStyle&&kr.from==Pe&&(Zn+=" "+ro.startStyle),ro.endStyle&&kr.to==Yt&&(Rr||(Rr=[])).push(ro.endStyle,kr.to),ro.title&&((gr||(gr={})).title=ro.title),ro.attributes)for(var Oo in ro.attributes)(gr||(gr={}))[Oo]=ro.attributes[Oo];ro.collapsed&&(!Xn||lt(Xn.marker,ro)<0)&&(Xn=kr)}else kr.from>Pe&&Yt>kr.from&&(Yt=kr.from)}if(Rr)for(var ra=0;ra<Rr.length;ra+=2)Rr[ra+1]==Yt&&(Fn+=" "+Rr[ra]);if(!Xn||Xn.from==Pe)for(var Ls=0;Ls<ur.length;++Ls)yu(g,0,ur[Ls]);if(Xn&&(Xn.from||0)==Pe){if(yu(g,(Xn.to==null?_e+1:Xn.to)-Pe,Xn.marker,Xn.from==null),Xn.to==null)return;Xn.to==Pe&&(Xn=!1)}}if(Pe>=_e)break;for(var Aa=Math.min(_e,Yt);;){if(mt){var ka=Pe+mt.length;if(!Xn){var Qa=ka>Aa?mt.slice(0,Aa-Pe):mt;g.addToken(g,Qa,Mt?Mt+wn:wn,Zn,Pe+Qa.length==Yt?Fn:"",tn,gr)}if(ka>=Aa){mt=mt.slice(Aa-Pe),Pe=Aa;break}Pe=ka,Zn=""}mt=K.slice(Z,Z=E[Ne++]),Mt=gd(E[Ne++],g.cm.options)}}}function Xd(u,g,E){this.line=g,this.rest=$i(g),this.size=this.rest?qe(er(this.rest))-E+1:1,this.node=this.text=null,this.hidden=_i(u,g)}function sA(u,g,E){for(var S=[],K,Z=g;Z<E;Z=K){var ue=new Xd(u.doc,Mr(u.doc,Z),Z);K=Z+ue.size,S.push(ue)}return S}var jh=null;function Jd(u){jh?jh.ops.push(u):u.ownsGroup=jh={ops:[u],delayedCallbacks:[]}}function qc(u){var g=u.delayedCallbacks,E=0;do{for(;E<g.length;E++)g[E].call(null);for(var S=0;S<u.ops.length;S++){var K=u.ops[S];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(E<g.length)}function Gh(u,g){var E=u.ownsGroup;if(E)try{qc(E)}finally{jh=null,g(E)}}var bc=null;function bs(u,g){var E=Be(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),K;jh?K=jh.delayedCallbacks:bc?K=bc:(K=bc=[],setTimeout(zf,0));for(var Z=function(_e){K.push(function(){return E[_e].apply(null,S)})},ue=0;ue<E.length;++ue)Z(ue)}}function zf(){var u=bc;bc=null;for(var g=0;g<u.length;++g)u[g]()}function xc(u,g,E,S){for(var K=0;K<g.changes.length;K++){var Z=g.changes[K];Z=="text"?Nf(u,g):Z=="gutter"?Yh(u,g,E,S):Z=="class"?vd(u,g):Z=="widget"&&Cd(u,g,S)}g.changes=null}function Qh(u){return u.node==u.text&&(u.node=xe("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),f&&v<8&&(u.node.style.zIndex=2)),u.node}function ef(u,g){var E=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),g.background)E?g.background.className=E:(g.background.parentNode.removeChild(g.background),g.background=null);else if(E){var S=Qh(g);g.background=S.insertBefore(xe("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function yd(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):ph(u,g)}function Nf(u,g){var E=g.text.className,S=yd(u,g);g.text==g.node&&(g.node=S.pre),g.text.parentNode.replaceChild(S.pre,g.text),g.text=S.pre,S.bgClass
Line truncated
|
||||
top: `+Rr+"px; width: "+(ii??Pe-ur)+`px;
|
||||
height: `+(kr-Rr)+"px"))}function Mt(ur,Rr,ii){var kr=Mr(K,ur),ro=kr.text.length,Oo,ra;function Ls(Qa,LA){return In(u,dn(ur,Qa),"div",kr,LA)}function Aa(Qa,LA,al){var Ya=As(u,kr,null,Qa),us=LA=="ltr"==(al=="after")?"left":"right",bi=al=="after"?Ya.begin:Ya.end-(/\s/.test(kr.text.charAt(Ya.end-1))?2:1);return Ls(bi,us)[us]}var ka=ve(kr,K.direction);return Jt(ka,Rr||0,ii??ro,function(Qa,LA,al,Ya){var us=al=="ltr",bi=Ls(Qa,us?"left":"right"),os=Ls(LA-1,us?"right":"left"),Vs=Rr==null&&Qa==0,ua=ii==null&&LA==ro,ms=Ya==0,UA=!ka||Ya==ka.length-1;if(os.top-bi.top<=3){var Io=(Ne?Vs:ua)&&ms,lh=(Ne?ua:Vs)&&UA,gA=Io?_e:(us?bi:os).left,dc=lh?Pe:(us?os:bi).right;mt(gA,bi.top,dc-gA,bi.bottom)}else{var Fc,ba,Pl,kd;us?(Fc=Ne&&Vs&&ms?_e:bi.left,ba=Ne?Pe:Aa(Qa,al,"before"),Pl=Ne?_e:Aa(LA,al,"after"),kd=Ne&&ua&&UA?Pe:os.right):(Fc=Ne?Aa(Qa,al,"before"):_e,ba=!Ne&&Vs&&ms?Pe:bi.right,Pl=!Ne&&ua&&UA?_e:os.left,kd=Ne?Aa(LA,al,"after"):Pe),mt(Fc,bi.top,ba-Fc,bi.bottom),bi.bottom<os.top&&mt(_e,bi.bottom,null,os.top),mt(Pl,os.top,kd-Pl,os.bottom)}(!Oo||eu(bi,Oo)<0)&&(Oo=bi),eu(os,Oo)<0&&(Oo=os),(!ra||eu(bi,ra)<0)&&(ra=bi),eu(os,ra)<0&&(ra=os)}),{start:Oo,end:ra}}var tn=g.from(),Yt=g.to();if(tn.line==Yt.line)Mt(tn.line,tn.ch,Yt.ch);else{var wn=Mr(K,tn.line),Fn=Mr(K,Yt.line),Zn=Or(wn)==Or(Fn),Xn=Mt(tn.line,tn.ch,Zn?wn.text.length+1:null).end,gr=Mt(Yt.line,Zn?0:null,Yt.ch).start;Zn&&(Xn.top<gr.top-2?(mt(Xn.right,Xn.top,null,Xn.bottom),mt(_e,gr.top,gr.left,gr.bottom)):mt(Xn.right,Xn.top,gr.left-Xn.right,Xn.bottom)),Xn.bottom<gr.top&&mt(_e,Xn.bottom,null,gr.top)}E.appendChild(Z)}function tu(u){if(u.state.focused){var g=u.display;clearInterval(g.blinker);var E=!0;g.cursorDiv.style.visibility="",u.options.cursorBlinkRate>0?g.blinker=setInterval(function(){u.hasFocus()||Go(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function sc(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Ch(u))}function Jc(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Go(u))},100)}function Ch(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(ut(u,"focus",u,g),u.state.focused=!0,Se(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),x&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),tu(u))}function Go(u,g){u.state.delayingBlurEvent||(u.state.focused&&(ut(u,"blur",u,g),u.state.focused=!1,me(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Ec(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),K=g.lineDiv.getBoundingClientRect().top,Z=0,ue=0;ue<g.view.length;ue++){var _e=g.view[ue],Pe=u.options.lineWrapping,Ne=void 0,mt=0;if(!_e.hidden){if(K+=_e.line.height,f&&v<8){var Mt=_e.node.offsetTop+_e.node.offsetHeight;Ne=Mt-E,E=Mt}else{var tn=_e.node.getBoundingClientRect();Ne=tn.bottom-tn.top,!Pe&&_e.text.firstChild&&(mt=_e.text.firstChild.getBoundingClientRect().right-tn.left-1)}var Yt=_e.line.height-Ne;if((Yt>.005||Yt<-.005)&&(K<S&&(Z-=Yt),Rs(_e.line,Ne),Bc(_e.line),_e.rest))for(var wn=0;wn<_e.rest.length;wn++)Bc(_e.rest[wn]);if(mt>u.display.sizerWidth){var Fn=Math.ceil(mt/BA(u.display));Fn>u.display.maxLineLength&&(u.display.maxLineLength=Fn,u.display.maxLine=_e.line,u.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(g.scroller.scrollTop+=Z)}function Bc(u){if(u.widgets)for(var g=0;g<u.widgets.length;++g){var E=u.widgets[g],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function nu(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-Vh(u));var K=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,Z=xt(g,S),ue=xt(g,K);if(E&&E.ensure){var _e=E.ensure.from.line,Pe=E.ensure.to.line;_e<Z?(Z=_e,ue=xt(g,Yi(Mr(g,_e))+u.wrapper.clientHeight)):Math.min(Pe,g.lastLine())>=ue&&(Z=xt(g,Yi(Mr(g,Pe))-u.wrapper.clientHeight),ue=Pe)}return{from:Z,to:Math.max(ue,Z+1)}}function sf(u,g){if(!ot(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),K=null,Z=E.wrapper.ownerDocument;if(g.top+S.top<0?K=!0:g.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(K=!1),K!=null&&!V){var ue=xe("div","",null,`position: absolute;
|
||||
top: `+(g.top-E.viewOffset-Vh(u.display))+`px;
|
||||
`,g);K==-1&&(K=u.length);var Z=u.slice(g,u.charAt(K-1)=="\r"?K-1:K),ue=Z.indexOf("\r");ue!=-1?(E.push(Z.slice(0,ue)),g+=ue+1):(E.push(Z),g=K+1)}return E}:function(u){return u.split(/\r\n?|\n/)},Pr=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch{return!1}}:function(u){var g;try{g=u.ownerDocument.selection.createRange()}catch{}return!g||g.parentElement()!=u?!1:g.compareEndPoints("StartToEnd",g)!=0},Cs=function(){var u=Se("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),Ao=null;function ui(u){if(Ao!=null)return Ao;var g=qe(u,Se("span","x")),E=g.getBoundingClientRect(),S=Je(g,0,1).getBoundingClientRect();return Ao=Math.abs(E.left-S.left)>1}var $r={},_s={};function fs(u,g){arguments.length>2&&(g.dependencies=Array.prototype.slice.call(arguments,2)),$r[u]=g}function Ja(u,g){_s[u]=g}function sa(u){if(typeof u=="string"&&_s.hasOwnProperty(u))u=_s[u];else if(u&&typeof u.name=="string"&&_s.hasOwnProperty(u.name)){var g=_s[u.name];typeof g=="string"&&(g={name:g}),u=Cr(g,u),u.name=g.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return sa("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return sa("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function Wo(u,g){g=sa(g);var E=$r[g.name];if(!E)return Wo(u,"text/plain");var S=E(u,g);if(zo.hasOwnProperty(g.name)){var K=zo[g.name];for(var Z in K)K.hasOwnProperty(Z)&&(S.hasOwnProperty(Z)&&(S["_"+Z]=S[Z]),S[Z]=K[Z])}if(S.name=g.name,g.helperType&&(S.helperType=g.helperType),g.modeProps)for(var ue in g.modeProps)S[ue]=g.modeProps[ue];return S}var zo={};function So(u,g){var E=zo.hasOwnProperty(u)?zo[u]:zo[u]={};Te(g,E)}function pi(u,g){if(g===!0)return g;if(u.copyState)return u.copyState(g);var E={};for(var S in g){var K=g[S];K instanceof Array&&(K=K.concat([])),E[S]=K}return E}function tA(u,g){for(var E;u.innerMode&&(E=u.innerMode(g),!(!E||E.mode==u));)g=E.state,u=E.mode;return E||{mode:u,state:g}}function _l(u,g,E){return u.startState?u.startState(g,E):!0}var Ni=function(u,g,E){this.pos=this.start=0,this.string=u,this.tabSize=g||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=E};Ni.prototype.eol=function(){return this.pos>=this.string.length},Ni.prototype.sol=function(){return this.pos==this.lineStart},Ni.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ni.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ni.prototype.eat=function(u){var g=this.string.charAt(this.pos),E;if(typeof u=="string"?E=g==u:E=g&&(u.test?u.test(g):u(g)),E)return++this.pos,g},Ni.prototype.eatWhile=function(u){for(var g=this.pos;this.eat(u););return this.pos>g},Ni.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Ni.prototype.skipToEnd=function(){this.pos=this.string.length},Ni.prototype.skipTo=function(u){var g=this.string.indexOf(u,this.pos);if(g>-1)return this.pos=g,!0},Ni.prototype.backUp=function(u){this.pos-=u},Ni.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Ni.prototype.match=function(u,g,E){if(typeof u=="string"){var S=function(ue){return E?ue.toLowerCase():ue},K=this.string.substr(this.pos,u.length);if(S(K)==S(u))return g!==!1&&(this.pos+=u.length),!0}else{var Z=this.string.slice(this.pos).match(u);return Z&&Z.index>0?null:(Z&&g!==!1&&(this.pos+=Z[0].length),Z)}},Ni.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ni.prototype.hideFirstChars=function(u,g){this.lineStart+=u;try{return g()}finally{this.lineStart-=u}},Ni.prototype.lookAhead=function(u){var g=this.lineOracle;return g&&g.lookAhead(u)},Ni.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function wr(u,g){if(g-=u.first,g<0||g>=u.size)throw new Error("There is no line "+(g+u.first)+" in the document.");for(var E=u;!E.lines;)for(var S=0;;++S){var K=E.children[S],Z=K.chunkSize();if(g<Z){E=K;break}g-=Z}return E.lines[g]}function Fa(u,g,E){var S=[],K=g.line;return u.iter(g.line,E.line+1,function(Z){var ue=Z.text;K==E.line&&(ue=ue.slice(0,E.ch)),K==g.line&&(ue=ue.slice(g.ch)),S.push(ue),++K}),S}function bs(u,g,E){var S=[];return u.iter(g,E,function(K){S.push(K.text)}),S}function Rs(u,g){var E=g-u.height;if(E)for(var S=u;S;S=S.parent)S.height+=E}function Ve(u){if(u.parent==null)return null;for(var g=u.parent,E=nt(g.lines,u),S=g.parent;S;g=S,S=S.parent)for(var K=0;S.children[K]!=g;++K)E+=S.children[K].chunkSize();return E+g.first}function xt(u,g){var E=u.first;e:do{for(var S=0;S<u.child
Line truncated
|
||||
`?(Ln=ft.appendChild(Se("span",tn[0]=="\r"?"␍":"","cm-invalidchar")),Ln.setAttribute("cm-text",tn[0]),u.col+=1):(Ln=u.cm.options.specialCharPlaceholder(tn[0]),Ln.setAttribute("cm-text",tn[0]),p&&v<9?ft.appendChild(Se("span",[Ln])):ft.appendChild(Ln),u.col+=1);u.map.push(u.pos,u.pos+1,Ln),u.pos++}}if(u.trailingSpace=be.charCodeAt(g.length-1)==32,E||S||K||Ne||Z||ue){var gr=E||"";S&&(gr+=S),K&&(gr+=K);var Ar=Se("span",[ft],gr,Z);if(ue)for(var Rr in ue)ue.hasOwnProperty(Rr)&&Rr!="style"&&Rr!="class"&&Ar.setAttribute(Rr,ue[Rr]);return u.content.appendChild(Ar)}u.content.appendChild(ft)}}function gh(u,g){if(u.length>1&&!/ /.test(u))return u;for(var E=g,S="",K=0;K<u.length;K++){var Z=u.charAt(K);Z==" "&&E&&(K==u.length-1||u.charCodeAt(K+1)==32)&&(Z=" "),S+=Z,E=Z==" "}return S}function rs(u,g){return function(E,S,K,Z,ue,be,ke){K=K?K+" cm-force-border":"cm-force-border";for(var Ne=E.pos,ft=Ne+S.length;;){for(var Mt=void 0,tn=0;tn<g.length&&(Mt=g[tn],!(Mt.to>Ne&&Mt.from<=Ne));tn++);if(Mt.to>=ft)return u(E,S,K,Z,ue,be,ke);u(E,S.slice(0,Mt.to-Ne),K,Z,null,be,ke),Z=null,S=S.slice(Mt.to-Ne),Ne=Mt.to}}}function yu(u,g,E,S){var K=!S&&E.widgetNode;K&&u.map.push(u.pos,u.pos+g,K),!S&&u.cm.display.input.needsContentAttribute&&(K||(K=u.content.appendChild(document.createElement("span"))),K.setAttribute("cm-marker",E.id)),K&&(u.cm.display.input.setUneditable(K),u.content.appendChild(K)),u.pos+=g,u.trailingSpace=!1}function yh(u,g,E){var S=u.markedSpans,K=u.text,Z=0;if(!S){for(var ue=1;ue<E.length;ue+=2)g.addToken(g,K.slice(Z,Z=E[ue]),vd(E[ue+1],g.cm.options));return}for(var be=K.length,ke=0,Ne=1,ft="",Mt,tn,Yt=0,wn,Ln,Hn,$n,gr;;){if(Yt==ke){wn=Ln=Hn=tn="",gr=null,$n=null,Yt=1/0;for(var Ar=[],Rr=void 0,ii=0;ii<S.length;++ii){var kr=S[ii],ro=kr.marker;if(ro.type=="bookmark"&&kr.from==ke&&ro.widgetNode)Ar.push(ro);else if(kr.from<=ke&&(kr.to==null||kr.to>ke||ro.collapsed&&kr.to==ke&&kr.from==ke)){if(kr.to!=null&&kr.to!=ke&&Yt>kr.to&&(Yt=kr.to,Ln=""),ro.className&&(wn+=" "+ro.className),ro.css&&(tn=(tn?tn+";":"")+ro.css),ro.startStyle&&kr.from==ke&&(Hn+=" "+ro.startStyle),ro.endStyle&&kr.to==Yt&&(Rr||(Rr=[])).push(ro.endStyle,kr.to),ro.title&&((gr||(gr={})).title=ro.title),ro.attributes)for(var Oo in ro.attributes)(gr||(gr={}))[Oo]=ro.attributes[Oo];ro.collapsed&&(!$n||lt($n.marker,ro)<0)&&($n=kr)}else kr.from>ke&&Yt>kr.from&&(Yt=kr.from)}if(Rr)for(var ra=0;ra<Rr.length;ra+=2)Rr[ra+1]==Yt&&(Ln+=" "+Rr[ra]);if(!$n||$n.from==ke)for(var Ls=0;Ls<Ar.length;++Ls)yu(g,0,Ar[Ls]);if($n&&($n.from||0)==ke){if(yu(g,($n.to==null?be+1:$n.to)-ke,$n.marker,$n.from==null),$n.to==null)return;$n.to==ke&&($n=!1)}}if(ke>=be)break;for(var Aa=Math.min(be,Yt);;){if(ft){var ka=ke+ft.length;if(!$n){var Ya=ka>Aa?ft.slice(0,Aa-ke):ft;g.addToken(g,Ya,Mt?Mt+wn:wn,Hn,ke+Ya.length==Yt?Ln:"",tn,gr)}if(ka>=Aa){ft=ft.slice(Aa-ke),ke=Aa;break}ke=ka,Hn=""}ft=K.slice(Z,Z=E[Ne++]),Mt=vd(E[Ne++],g.cm.options)}}}function tf(u,g,E){this.line=g,this.rest=$i(g),this.size=this.rest?Ve(Xn(this.rest))-E+1:1,this.node=this.text=null,this.hidden=_i(u,g)}function sA(u,g,E){for(var S=[],K,Z=g;Z<E;Z=K){var ue=new tf(u.doc,wr(u.doc,Z),Z);K=Z+ue.size,S.push(ue)}return S}var Qh=null;function nf(u){Qh?Qh.ops.push(u):u.ownsGroup=Qh={ops:[u],delayedCallbacks:[]}}function Vc(u){var g=u.delayedCallbacks,E=0;do{for(;E<g.length;E++)g[E].call(null);for(var S=0;S<u.ops.length;S++){var K=u.ops[S];if(K.cursorActivityHandlers)for(;K.cursorActivityCalled<K.cursorActivityHandlers.length;)K.cursorActivityHandlers[K.cursorActivityCalled++].call(null,K.cm)}}while(E<g.length)}function Yh(u,g){var E=u.ownsGroup;if(E)try{Vc(E)}finally{Qh=null,g(E)}}var bc=null;function xs(u,g){var E=Ee(u,g);if(E.length){var S=Array.prototype.slice.call(arguments,2),K;Qh?K=Qh.delayedCallbacks:bc?K=bc:(K=bc=[],setTimeout(Wf,0));for(var Z=function(be){K.push(function(){return E[be].apply(null,S)})},ue=0;ue<E.length;++ue)Z(ue)}}function Wf(){var u=bc;bc=null;for(var g=0;g<u.length;++g)u[g]()}function xc(u,g,E,S){for(var K=0;K<g.changes.length;K++){var Z=g.changes[K];Z=="text"?jf(u,g):Z=="gutter"?Vh(u,g,E,S):Z=="class"?_d(u,g):Z=="widget"&&bd(u,g,S)}g.changes=null}function qh(u){return u.node==u.text&&(u.node=Se("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),p&&v<8&&(u.node.style.zIndex=2)),u.node}function rf(u,g){var E=g.bgClass?g.bgClass+" "+(g.line.bgClass||""):g.line.bgClass;if(E&&(E+=" CodeMirror-linebackground"),g.background)E?g.background.className=E:(g.background.parentNode.removeChild(g.background),g.background=null);else if(E){var S=qh(g);g.background=S.insertBefore(Se("div",null,E),S.firstChild),u.display.input.setUneditable(g.background)}}function Cd(u,g){var E=u.display.externalMeasured;return E&&E.line==g.line?(u.display.externalMeasured=null,g.measure=E.measure,E.built):mh(u,g)}function jf(u,g){var E=g.text.className,S=Cd(u,g);g.text==g.node&&(g.node=S.pre),g.text.parentNode.replaceChild(S.pre,g.text),g.text=S.pre,S.bgClass
Line truncated
|
||||
top: `+Rr+"px; width: "+(ii??ke-Ar)+`px;
|
||||
height: `+(kr-Rr)+"px"))}function Mt(Ar,Rr,ii){var kr=wr(K,Ar),ro=kr.text.length,Oo,ra;function Ls(Ya,UA){return Tn(u,fn(Ar,Ya),"div",kr,UA)}function Aa(Ya,UA,ll){var qa=us(u,kr,null,Ya),cs=UA=="ltr"==(ll=="after")?"left":"right",bi=ll=="after"?qa.begin:qa.end-(/\s/.test(kr.text.charAt(qa.end-1))?2:1);return Ls(bi,cs)[cs]}var ka=_e(kr,K.direction);return Zt(ka,Rr||0,ii??ro,function(Ya,UA,ll,qa){var cs=ll=="ltr",bi=Ls(Ya,cs?"left":"right"),ss=Ls(UA-1,cs?"right":"left"),Vs=Rr==null&&Ya==0,ua=ii==null&&UA==ro,gs=qa==0,zA=!ka||qa==ka.length-1;if(ss.top-bi.top<=3){var Io=(Ne?Vs:ua)&&gs,Ah=(Ne?ua:Vs)&&zA,gA=Io?be:(cs?bi:ss).left,dc=Ah?ke:(cs?ss:bi).right;ft(gA,bi.top,dc-gA,bi.bottom)}else{var Fc,xa,Pl,Kd;cs?(Fc=Ne&&Vs&&gs?be:bi.left,xa=Ne?ke:Aa(Ya,ll,"before"),Pl=Ne?be:Aa(UA,ll,"after"),Kd=Ne&&ua&&zA?ke:ss.right):(Fc=Ne?Aa(Ya,ll,"before"):be,xa=!Ne&&Vs&&gs?ke:bi.right,Pl=!Ne&&ua&&zA?be:ss.left,Kd=Ne?Aa(UA,ll,"after"):ke),ft(Fc,bi.top,xa-Fc,bi.bottom),bi.bottom<ss.top&&ft(be,bi.bottom,null,ss.top),ft(Pl,ss.top,Kd-Pl,ss.bottom)}(!Oo||tu(bi,Oo)<0)&&(Oo=bi),tu(ss,Oo)<0&&(Oo=ss),(!ra||tu(bi,ra)<0)&&(ra=bi),tu(ss,ra)<0&&(ra=ss)}),{start:Oo,end:ra}}var tn=g.from(),Yt=g.to();if(tn.line==Yt.line)Mt(tn.line,tn.ch,Yt.ch);else{var wn=wr(K,tn.line),Ln=wr(K,Yt.line),Hn=Or(wn)==Or(Ln),$n=Mt(tn.line,tn.ch,Hn?wn.text.length+1:null).end,gr=Mt(Yt.line,Hn?0:null,Yt.ch).start;Hn&&($n.top<gr.top-2?(ft($n.right,$n.top,null,$n.bottom),ft(be,gr.top,gr.left,gr.bottom)):ft($n.right,$n.top,gr.left-$n.right,$n.bottom)),$n.bottom<gr.top&&ft(be,$n.bottom,null,gr.top)}E.appendChild(Z)}function nu(u){if(u.state.focused){var g=u.display;clearInterval(g.blinker);var E=!0;g.cursorDiv.style.visibility="",u.options.cursorBlinkRate>0?g.blinker=setInterval(function(){u.hasFocus()||Go(u),g.cursorDiv.style.visibility=(E=!E)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(g.cursorDiv.style.visibility="hidden")}}function sc(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||_h(u))}function eh(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Go(u))},100)}function _h(u,g){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(ut(u,"focus",u,g),u.state.focused=!0,Pe(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),x&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),nu(u))}function Go(u,g){u.state.delayingBlurEvent||(u.state.focused&&(ut(u,"blur",u,g),u.state.focused=!1,me(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Ec(u){for(var g=u.display,E=g.lineDiv.offsetTop,S=Math.max(0,g.scroller.getBoundingClientRect().top),K=g.lineDiv.getBoundingClientRect().top,Z=0,ue=0;ue<g.view.length;ue++){var be=g.view[ue],ke=u.options.lineWrapping,Ne=void 0,ft=0;if(!be.hidden){if(K+=be.line.height,p&&v<8){var Mt=be.node.offsetTop+be.node.offsetHeight;Ne=Mt-E,E=Mt}else{var tn=be.node.getBoundingClientRect();Ne=tn.bottom-tn.top,!ke&&be.text.firstChild&&(ft=be.text.firstChild.getBoundingClientRect().right-tn.left-1)}var Yt=be.line.height-Ne;if((Yt>.005||Yt<-.005)&&(K<S&&(Z-=Yt),Rs(be.line,Ne),Bc(be.line),be.rest))for(var wn=0;wn<be.rest.length;wn++)Bc(be.rest[wn]);if(ft>u.display.sizerWidth){var Ln=Math.ceil(ft/OA(u.display));Ln>u.display.maxLineLength&&(u.display.maxLineLength=Ln,u.display.maxLine=be.line,u.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(g.scroller.scrollTop+=Z)}function Bc(u){if(u.widgets)for(var g=0;g<u.widgets.length;++g){var E=u.widgets[g],S=E.node.parentNode;S&&(E.height=S.offsetHeight)}}function ru(u,g,E){var S=E&&E.top!=null?Math.max(0,E.top):u.scroller.scrollTop;S=Math.floor(S-$h(u));var K=E&&E.bottom!=null?E.bottom:S+u.wrapper.clientHeight,Z=xt(g,S),ue=xt(g,K);if(E&&E.ensure){var be=E.ensure.from.line,ke=E.ensure.to.line;be<Z?(Z=be,ue=xt(g,Yi(wr(g,be))+u.wrapper.clientHeight)):Math.min(ke,g.lastLine())>=ue&&(Z=xt(g,Yi(wr(g,ke))-u.wrapper.clientHeight),ue=ke)}return{from:Z,to:Math.max(ue,Z+1)}}function Af(u,g){if(!at(u,"scrollCursorIntoView")){var E=u.display,S=E.sizer.getBoundingClientRect(),K=null,Z=E.wrapper.ownerDocument;if(g.top+S.top<0?K=!0:g.bottom+S.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(K=!1),K!=null&&!V){var ue=Se("div","",null,`position: absolute;
|
||||
top: `+(g.top-E.viewOffset-$h(u.display))+`px;
|
||||
height: `+(g.bottom-g.top+vu(u)+E.barHeight)+`px;
|
||||
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ue),ue.scrollIntoView(K),u.display.lineSpace.removeChild(ue)}}}function wd(u,g,E,S){S==null&&(S=0);var K;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?dn(g.line,g.ch+1,"before"):g,g=g.ch?dn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var Z=0;Z<5;Z++){var ue=!1,_e=An(u,g),Pe=!E||E==g?_e:An(u,E);K={left:Math.min(_e.left,Pe.left),top:Math.min(_e.top,Pe.top)-S,right:Math.max(_e.left,Pe.left),bottom:Math.max(_e.bottom,Pe.bottom)+S};var Ne=Oc(u,K),mt=u.doc.scrollTop,Mt=u.doc.scrollLeft;if(Ne.scrollTop!=null&&(fs(u,Ne.scrollTop),Math.abs(u.doc.scrollTop-mt)>1&&(ue=!0)),Ne.scrollLeft!=null&&(Xs(u,Ne.scrollLeft),Math.abs(u.doc.scrollLeft-Mt)>1&&(ue=!0)),!ue)break}return K}function ac(u,g){var E=Oc(u,g);E.scrollTop!=null&&fs(u,E.scrollTop),E.scrollLeft!=null&&Xs(u,E.scrollLeft)}function Oc(u,g){var E=u.display,S=tl(u.display);g.top<0&&(g.top=0);var K=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,Z=wc(u),ue={};g.bottom-g.top>Z&&(g.bottom=g.top+Z);var _e=u.doc.height+yh(E),Pe=g.top<S,Ne=g.bottom>_e-S;if(g.top<K)ue.scrollTop=Pe?0:g.top;else if(g.bottom>K+Z){var mt=Math.min(g.top,(Ne?_e:g.bottom)-Z);mt!=K&&(ue.scrollTop=mt)}var Mt=u.options.fixedGutter?0:E.gutters.offsetWidth,tn=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-Mt,Yt=Mc(u)-E.gutters.offsetWidth,wn=g.right-g.left>Yt;return wn&&(g.right=g.left+Yt),g.left<10?ue.scrollLeft=0:g.left<tn?ue.scrollLeft=Math.max(0,g.left+Mt-(wn?0:10)):g.right>Yt+tn-3&&(ue.scrollLeft=g.right+(wn?0:10)-Yt),ue}function lc(u,g){g!=null&&(eh(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function xs(u){eh(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function Qs(u,g,E){(g!=null||E!=null)&&eh(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Sd(u,g){eh(u),u.curOp.scrollToPos=g}function eh(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Kr(u,g.from),S=Kr(u,g.to);_h(u,E,S,g.margin)}}function _h(u,g,E,S){var K=Oc(u,{left:Math.min(g.left,E.left),top:Math.min(g.top,E.top)-S,right:Math.max(g.right,E.right),bottom:Math.max(g.bottom,E.bottom)+S});Qs(u,K.scrollLeft,K.scrollTop)}function fs(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||El(u,{top:g}),xu(u,g,!0),i&&El(u),Na(u,100))}function xu(u,g,E){g=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,g)),!(u.display.scroller.scrollTop==g&&!E)&&(u.doc.scrollTop=g,u.display.scrollbars.setScrollTop(g),u.display.scroller.scrollTop!=g&&(u.display.scroller.scrollTop=g))}function Xs(u,g,E,S){g=Math.max(0,Math.min(g,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((E?g==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-g)<2)&&!S)&&(u.doc.scrollLeft=g,ju(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function Nu(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+yh(u.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:u.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+vu(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var Wl=function(u,g,E){this.cm=E;var S=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=K.tabIndex=-1,u(S),u(K),We(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),We(K,"scroll",function(){K.clientWidth&&g(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wl.prototype.update=function(u){var g=u.scrollWidth>u.clientWidth+1,E=u.scrollHeight>u.clientHeight+1,S=u.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=g?S+"px":"0";var K=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(g){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=u.barLeft+"px";var Z=u.viewWidth-u.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:g?S:0}},Wl.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wl.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi
Line truncated
|
||||
`},setDirection:ps(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&Qu(this.cm))})}),kt.prototype.eachLine=kt.prototype.iter;var Lt=0;function sn(u){var g=this;if(Cn(g),!(ot(g,u)||EA(g.display,u))){nn(u),f&&(Lt=+new Date);var E=JA(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var K=S.length,Z=Array(K),ue=0,_e=function(){++ue==K&&Po(g,function(){E=Ci(g.doc,E);var Yt={from:E,to:E,text:g.doc.splitLines(Z.filter(function(wn){return wn!=null}).join(g.doc.lineSeparator())),origin:"paste"};uc(g.doc,Yt),ou(g.doc,ja(Ci(g.doc,E),Ci(g.doc,ma(Yt))))})()},Pe=function(Yt,wn){if(g.options.allowDropFileTypes&&it(g.options.allowDropFileTypes,Yt.type)==-1){_e();return}var Fn=new FileReader;Fn.onerror=function(){return _e()},Fn.onload=function(){var Zn=Fn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Zn)){_e();return}Z[wn]=Zn,_e()},Fn.readAsText(Yt)},Ne=0;Ne<S.length;Ne++)Pe(S[Ne],Ne);else{if(g.state.draggingText&&g.doc.sel.contains(E)>-1){g.state.draggingText(u),setTimeout(function(){return g.display.input.focus()},20);return}try{var mt=u.dataTransfer.getData("Text");if(mt){var Mt;if(g.state.draggingText&&!g.state.draggingText.copy&&(Mt=g.listSelections()),Ys(g.doc,ja(E,E)),Mt)for(var tn=0;tn<Mt.length;++tn)C(g.doc,"",Mt[tn].anchor,Mt[tn].head,"drag");g.replaceSelection(mt,"around","paste"),g.display.input.focus()}}catch{}}}}function an(u,g){if(f&&(!u.state.draggingText||+new Date-Lt<100)){pr(g);return}if(!(ot(u,g)||EA(u.display,g))&&(g.dataTransfer.setData("Text",u.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!N)){var E=xe("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",U&&(E.width=E.height=1,u.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),U&&E.parentNode.removeChild(E)}}function on(u,g){var E=JA(u,g);if(E){var S=document.createDocumentFragment();Xc(u,E,S),u.display.dragCursor||(u.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),Le(u.display.dragCursor,S)}}function Cn(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function Mn(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var K=g[S].CodeMirror;K&&E.push(K)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)u(E[Z])})}}var sr=!1;function Hn(){sr||(kn(),sr=!0)}function kn(){var u;We(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,Mn(Er)},100))}),We(window,"blur",function(){return Mn(Go)})}function Er(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Vr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ci=0;ci<10;ci++)Vr[ci+48]=Vr[ci+96]=String(ci);for(var Yo=65;Yo<=90;Yo++)Vr[Yo]=String.fromCharCode(Yo);for(var bo=1;bo<=12;bo++)Vr[bo+111]=Vr[bo+63235]="F"+bo;var Ro={};Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-Line truncated
|
||||
`,"start")},toggleOverwrite:function(u){return u.toggleOverwrite()}};function Vl(u,g){var E=Mr(u.doc,g),S=Or(E);return S!=E&&(g=qe(S)),DA(!0,u,S,g,1)}function dA(u,g){var E=Mr(u.doc,g),S=ni(E);return S!=E&&(g=qe(S)),DA(!0,u,E,g,-1)}function Yu(u,g){var E=Vl(u,g.line),S=Mr(u.doc,E.line),K=ve(S,u.doc.direction);if(!K||K[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),ue=g.line==E.line&&g.ch<=Z&&g.ch;return dn(E.line,ue?0:Z,E.sticky)}return E}function Hl(u,g,E){if(typeof g=="string"&&(g=Iu[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,K=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),K=g(u)!=dt}finally{u.display.shift=S,u.state.suppressEdits=!1}return K}function cc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var K=qi(g,u.state.keyMaps[S],E,u);if(K)return K}return u.options.extraKeys&&qi(g,u.options.extraKeys,E,u)||qi(g,u.options.keyMap,E,u)}var qs=new Oe;function is(u,g,E,S){var K=u.state.keySeq;if(K){if(ya(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:qs.set(50,function(){u.state.keySeq==K&&(u.state.keySeq=null,u.display.input.reset())}),na(u,K+" "+g,E,S))return!0}return na(u,g,E,S)}function na(u,g,E,S){var K=cc(u,g,S);return K=="multi"&&(u.state.keySeq=g),K=="handled"&&bs(u,"keyHandled",u,g,E),(K=="handled"||K=="multi")&&(nn(E),tu(u)),!!K}function Ss(u,g){var E=Ca(g,!0);return E?g.shiftKey&&!u.state.keySeq?is(u,"Shift-"+E,g,function(S){return Hl(u,S,!0)})||is(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Hl(u,S)}):is(u,E,g,function(S){return Hl(u,S)}):!1}function Ep(u,g,E){return is(u,"'"+E+"'",g,function(S){return Hl(u,S,!0)})}var hc=null;function lf(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=je(Qt(g)),!ot(g,u))){f&&v<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=Ss(g,u);U&&(hc=S?E:null,!S&&E==88&&!vs&&(q?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!q&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&$l(g)}}function $l(u){var g=u.display.lineDiv;Se(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(me(g,"CodeMirror-crosshair"),rt(document,"keyup",E),rt(document,"mouseover",E))}We(document,"keyup",E),We(document,"mouseover",E)}function FA(u){u.keyCode==16&&(this.doc.sel.shift=!1),ot(this,u)}function ed(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(EA(g.display,u)||ot(g,u)||u.ctrlKey&&!u.altKey||q&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(U&&E==hc){hc=null,nn(u);return}if(!(U&&(!u.which||u.which<10)&&Ss(g,u))){var K=String.fromCharCode(S??E);K!="\b"&&(Ep(g,u,K)||g.display.input.onKeyPress(u))}}}var uu=400,cu=function(u,g,E){this.time=u,this.pos=g,this.button=E};cu.prototype.compare=function(u,g,E){return this.time+uu>u&&dr(g,this.pos)==0&&E==this.button};var Tu,Tl;function ah(u,g){var E=+new Date;return Tl&&Tl.compare(E,u,g)?(Tu=Tl=null,"triple"):Tu&&Tu.compare(E,u,g)?(Tl=new cu(E,u,g),Tu=null,"double"):(Tu=new cu(E,u,g),Tl=null,"single")}function wh(u){var g=this,E=g.display;if(!(ot(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,EA(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!qu(g,u)){var S=JA(g,u),K=Xt(u),Z=S?ah(S,K):"single";Ut(g).focus(),K==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Od(g,K,S,Z,u))&&(K==1?S?Af(g,S,Z,u):Tr(u)==E.scroller&&nn(u):K==2?(S&&Os(g.doc,S),setTimeout(function(){return E.input.focus()},20)):K==3&&(fe?g.display.input.onContextMenu(u):Jc(g)))}}}function Od(u,g,E,S,K){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(g==1?"Left":g==2?"Middle":"Right")+Z,is(u,va(Z,K),K,function(ue){if(typeof ue=="string"&&(ue=Iu[ue]),!ue)return!1;var _e=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),_e=ue(u,E)!=dt}finally{u.state.suppressEdits=!1}return _e})}function td(u,g,E){var S=u.getOption("configureMouse"),K=S?S(u,g,E):{};if(K.unit==null){var Z=ne?E.shiftKey&&E.metaKey:E.altKey;K.unit=Z?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(K.extend==null||u.doc.extend)&&(K.extend=u.doc.extend||E.shiftKey),K.addNew==null&&(K.addNew=q?E.metaKey:E.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(q?E.altKey:E.ctrlKey)),K}function Af(u,g,E,S){f?setTimeout(Pt(sc,u),0):u.curOp.focus=je(Qt(u));var K=td(u,E,S),Z=u.doc.sel,ue;u.options.dragDrop&&_r&&!u.isReadOnly()&&E=="single"&&(ue=Z.contains(g))>-1&&(dr((ue=Z.ranges[ue]).from(),g)<0||g.xRel>0)&&(dr(ue.to(),g)>0||g.xRel<0)?Hf(u,S,g,K):uf(u,S,g,K)}function Hf(u,g,E,S){var K=u.display,Z=!1,ue=Po(u,function(Ne){x&&(K.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Jc(u)),rt(K.wrapper.ownerDocument,"mouseup",ue),rt(K.wrapper.ownerDocument,"mousemove",_e),rt(K.scroller,"dragstart",Pe),rt(K.scro
Line truncated
|
||||
`)==g){if(S.ranges.length%ku.text.length==0){Ne=[];for(var mt=0;mt<ku.text.length;mt++)Ne.push(Z.splitLines(ku.text[mt]))}}else Pe.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(Ne=Tn(Pe,function(Xn){return[Xn]}));for(var Mt=u.curOp.updateInput,tn=S.ranges.length-1;tn>=0;tn--){var Yt=S.ranges[tn],wn=Yt.from(),Fn=Yt.to();Yt.empty()&&(E&&E>0?wn=dn(wn.line,wn.ch-E):u.state.overwrite&&!_e?Fn=dn(Fn.line,Math.min(Mr(Z,Fn.line).text.length,Fn.ch+er(Pe).length)):_e&&ku&&ku.lineWise&&ku.text.join(`
|
||||
`)==Pe.join(`
|
||||
`)&&(wn=Fn=dn(wn.line,0)));var Zn={from:wn,to:Fn,text:Ne?Ne[tn%Ne.length]:Pe,origin:K||(_e?"paste":u.state.cutIncoming>ue?"cut":"+input")};uc(u.doc,Zn),bs(u,"inputRead",u,Zn)}g&&!_e&&Td(u,g),xs(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Mt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Ia(u,g){var E=u.clipboardData&&u.clipboardData.getData("Text");if(E)return u.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Js(g,function(){return id(g,E,0,null,"paste")}),!0}function Td(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var K=E.ranges[S];if(!(K.head.ch>100||S&&E.ranges[S-1].head.line==K.head.line)){var Z=u.getModeAt(K.head),ue=!1;if(Z.electricChars){for(var _e=0;_e<Z.electricChars.length;_e++)if(g.indexOf(Z.electricChars.charAt(_e))>-1){ue=Eh(u,K.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Mr(u.doc,K.head.line).text.slice(0,K.head.ch))&&(ue=Eh(u,K.head.line,"smart"));ue&&bs(u,"electricInput",u,K.head.line)}}}function od(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var K=u.doc.sel.ranges[S].head.line,Z={anchor:dn(K,0),head:dn(K+1,0)};E.push(Z),g.push(u.getRange(Z.anchor,Z.head))}return{text:g,ranges:E}}function df(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function sd(){var u=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=xe("div",[u],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?u.style.width="1000px":u.setAttribute("wrap","off"),$&&(u.style.border="1px solid black"),g}function Bh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Ut(this).focus(),this.display.input.focus()},setOption:function(S,K){var Z=this.options,ue=Z[S];Z[S]==K&&S!="mode"||(Z[S]=K,g.hasOwnProperty(S)&&Po(this,g[S])(this,K,ue),ut(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,K){this.state.keyMaps[K?"push":"unshift"](ta(S))},removeKeyMap:function(S){for(var K=this.state.keyMaps,Z=0;Z<K.length;++Z)if(K[Z]==S||K[Z].name==S)return K.splice(Z,1),!0},addOverlay:ri(function(S,K){var Z=S.token?S:u.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");gn(this.state.overlays,{mode:Z,modeSpec:S,opaque:K&&K.opaque,priority:K&&K.priority||0},function(ue){return ue.priority}),this.state.modeGen++,nl(this)}),removeOverlay:ri(function(S){for(var K=this.state.overlays,Z=0;Z<K.length;++Z){var ue=K[Z].modeSpec;if(ue==S||typeof S=="string"&&ue.name==S){K.splice(Z,1),this.state.modeGen++,nl(this);return}}}),indentLine:ri(function(S,K,Z){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),xn(this.doc,S)&&Eh(this,S,K,Z)}),indentSelection:ri(function(S){for(var K=this.doc.sel.ranges,Z=-1,ue=0;ue<K.length;ue++){var _e=K[ue];if(_e.empty())_e.head.line>Z&&(Eh(this,_e.head.line,S,!0),Z=_e.head.line,ue==this.doc.sel.primIndex&&xs(this));else{var Pe=_e.from(),Ne=_e.to(),mt=Math.max(Z,Pe.line);Z=Math.min(this.lastLine(),Ne.line-(Ne.ch?0:1))+1;for(var Mt=mt;Mt<Z;++Mt)Eh(this,Mt,S);var tn=this.doc.sel.ranges;Pe.ch==0&&K.length==tn.length&&tn[ue].from().ch>0&&il(this.doc,ue,new Bo(Pe,tn[ue].to()),Dt)}}}),getTokenAt:function(S,K){return aa(this,S,K)},getLineTokens:function(S,K){return aa(this,dn(S),K,!0)},getTokenTypeAt:function(S){S=Ci(this.doc,S);var K=Ws(this,Mr(this.doc,S.line)),Z=0,ue=(K.length-1)/2,_e=S.ch,Pe;if(_e==0)Pe=K[2];else for(;;){var Ne=Z+ue>>1;if((Ne?K[Ne*2-1]:0)>=_e)ue=Ne;else if(K[Ne*2+1]<_e)Z=Ne+1;else{Pe=K[Ne*2+2];break}}var mt=Pe?Pe.indexOf("overlay "):-1;return mt<0?Pe:mt==0?null:Pe.slice(0,mt-1)},getModeAt:function(S){var K=this.doc.mode;return K.innerMode?u.innerMode(K,this.getTokenAt(S).state).mode:K},getHelper:function(S,K){return this.getHelpers(S,K)[0]},getHelpers:function(S,K){var Z=[];if(!E.hasOwnProperty(K))return Z;var ue=E[K],_e=this.getModeAt(S);if(typeof _e[K]=="string")ue[_e[K]]&&Z.push(ue[_e[K]]);else if(_e[K])for(var Pe=0;Pe<_e[K].length;Pe++){var Ne=ue[_e[K][Pe]];Ne&&Z.push(Ne)}else _e.helperType&&ue[_e.helperType]?Z.push(ue[_e.helperType]):ue[_e.name]&&Z.push(ue[_e.name]);for(var mt=0;mt<ue._global.length;mt++){var Mt=ue._global[mt];Mt.pred(_e,this)&&it(Z,Mt.val)==-1&&Z.push(Mt.val)}return Z},getStateAfter:function(S,K){var Z=this.doc;return S=nA(Z,S??Z.first+Z.size-1),di(this,S+1,K).state},cursorCoords:function(S,K){var Z,ue=this.doc.sel.primary();return S==null?Z=ue.head:typeof S=="object"?Z=Ci(this.doc,S):Z=S?ue.from():ue.to(),An(this,Z,K||"page")},charCoords:function(S,K){return In(this,Ci(this.doc,S),K||"page")},coordsChar:function(S,K){return S=en(this,S,K||"page"),po(this,S.left,S.top)},lineAtHeight:function(S,K){return S=en(this,{top:S,left:0},K||"page").top,xt(
Line truncated
|
||||
`,Zn=Ye(Fn,Yt)?"w":tn&&Fn==`
|
||||
`?"n":!tn||/\s/.test(Fn)?null:"p";if(tn&&!wn&&!Zn&&(Zn="s"),Mt&&Mt!=Zn){E<0&&(E=1,mt(),g.sticky="after");break}if(Zn&&(Mt=Zn),E>0&&!mt(!wn))break}var Xn=Kc(u,g,Z,ue,!0);return Wi(Z,Xn)&&(Xn.hitSide=!0),Xn}function ff(u,g,E,S){var K=u.doc,Z=g.left,ue;if(S=="page"){var _e=Math.min(u.display.wrapper.clientHeight,Ut(u).innerHeight||K(u).documentElement.clientHeight),Pe=Math.max(_e-.5*tl(u.display),3);ue=(E>0?g.bottom:g.top)+E*Pe}else S=="line"&&(ue=E>0?g.bottom+3:g.top-3);for(var Ne;Ne=po(u,Z,ue),!!Ne.outside;){if(E<0?ue<=0:ue>=K.height){Ne.hitSide=!0;break}ue+=E*5}return Ne}var Xo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xo.prototype.init=function(u){var g=this,E=this,S=E.cm,K=E.div=u.lineDiv;K.contentEditable=!0,df(K,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(_e){for(var Pe=_e.target;Pe;Pe=Pe.parentNode){if(Pe==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}We(K,"paste",function(_e){!Z(_e)||ot(S,_e)||Ia(_e,S)||v<=11&&setTimeout(Po(S,function(){return g.updateFromDOM()}),20)}),We(K,"compositionstart",function(_e){g.composing={data:_e.data,done:!1}}),We(K,"compositionupdate",function(_e){g.composing||(g.composing={data:_e.data,done:!1})}),We(K,"compositionend",function(_e){g.composing&&(_e.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),We(K,"touchstart",function(){return E.forceCompositionEnd()}),We(K,"input",function(){g.composing||g.readFromDOMSoon()});function ue(_e){if(!(!Z(_e)||ot(S,_e))){if(S.somethingSelected())rd({lineWise:!1,text:S.getSelections()}),_e.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var Pe=od(S);rd({lineWise:!0,text:Pe.text}),_e.type=="cut"&&S.operation(function(){S.setSelections(Pe.ranges,0,Dt),S.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Ne=ku.text.join(`
|
||||
`);if(_e.clipboardData.setData("Text",Ne),_e.clipboardData.getData("Text")==Ne){_e.preventDefault();return}}var mt=sd(),Mt=mt.firstChild;df(Mt),S.display.lineSpace.insertBefore(mt,S.display.lineSpace.firstChild),Mt.value=ku.text.join(`
|
||||
`);var tn=je(gt(K));Ze(Mt),setTimeout(function(){S.display.lineSpace.removeChild(mt),tn.focus(),tn==K&&E.showPrimarySelection()},50)}}We(K,"copy",ue),We(K,"cut",ue)},Xo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Xo.prototype.prepareSelection=function(){var u=Md(this.cm,!1);return u.focus=je(gt(this.div))==this.div,u},Xo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Xo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),K=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||K.line<g.display.viewFrom){u.removeAllRanges();return}var Z=_a(g,u.anchorNode,u.anchorOffset),ue=_a(g,u.focusNode,u.focusOffset);if(!(Z&&!Z.bad&&ue&&!ue.bad&&dr(fa(Z,ue),S)==0&&dr(as(Z,ue),K)==0)){var _e=g.display.view,Pe=S.line>=g.display.viewFrom&&Dc(g,S)||{node:_e[0].measure.map[2],offset:0},Ne=K.line<g.display.viewTo&&Dc(g,K);if(!Ne){var mt=_e[_e.length-1].measure,Mt=mt.maps?mt.maps[mt.maps.length-1]:mt.map;Ne={node:Mt[Mt.length-1],offset:Mt[Mt.length-2]-Mt[Mt.length-3]}}if(!Pe||!Ne){u.removeAllRanges();return}var tn=u.rangeCount&&u.getRangeAt(0),Yt;try{Yt=Je(Pe.node,Pe.offset,Ne.offset,Ne.node)}catch{}Yt&&(!i&&g.state.focused?(u.collapse(Pe.node,Pe.offset),Yt.collapsed||(u.removeAllRanges(),u.addRange(Yt))):(u.removeAllRanges(),u.addRange(Yt)),tn&&u.anchorNode==null?u.addRange(tn):i&&this.startGracePeriod()),this.rememberSelection()}},Xo.prototype.startGracePeriod=function(){var u=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){u.gracePeriod=!1,u.selectionChanged()&&u.cm.operation(function(){return u.cm.curOp.selectionChanged=!0})},20)},Xo.prototype.showMultipleSelections=function(u){Le(this.cm.display.cursorDiv,u.cursors),Le(this.cm.display.selectionDiv,u.selection)},Xo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Xo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return Ve(this.div,g)},Xo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||je(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xo.prototype.blur=function(){this.div.blur()},Xo.prototype.getField=function(){return this.div},Xo.prototype.supportsTouch=function(){return!0},Xo.prototype.receivedFocus=function(){var u=this,g=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):Js(this.cm,function(){return g.cm.curOp.selectionChanged=!0});function E(){g.cm.state.focused&&(g.pollSelection(),g.polling.set(g.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Xo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Xo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(oe&&k&&this.cm.display.gutterSpecs.length&&pf(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=_a(g,u.anchorNode,u.anchorOffset),S=_a(g,u.focusNode,u.focusOffset);E&&S&&Js(g,function(){ea(g.doc,ja(E,S),Dt),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Xo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var u=this.cm,g=u.display,E=u.doc.sel.primary(),S=E.from(),K=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=dn(S.line-1,Mr(u.doc,S.line-1).length)),K.ch==Mr(u.doc,K.line).text.length&&K.line<u.lastLine()&&(K=dn(K.line+1,0)),S.line<g.viewFrom||K.line>g.viewTo-1)return!1;var Z,ue,_e;S.line==g.viewFrom||(Z=Xi(u,S.line))==0?(ue=qe(g.view[0].line),_e=g.view[0].node):(ue=qe(g.view[Z].line),_e=g.view[Z-1].node.nextSibling);var Pe=Xi(u,K.line),Ne,mt;if(Pe==g.view.length-1?(Ne=g.viewTo-1,mt=g.lineDiv.lastChild):(Ne=qe(g.view[Pe+1].line)-1,mt=g.view[Pe+1].node.previousSibling),!_e)return!1;for(var Mt=u.doc.splitLines(ad(u,_e,mt,ue,Ne)),tn=Da(u.doc,dn(ue,0),dn(Ne,Mr(u.doc,Ne).text.length));Mt.length>1&&tn.length>1;)if(er(Mt)==er(tn))Mt.pop(),tn.pop(),Ne--;else if(Mt[0]==tn[0])Mt.shift(),tn.shift(),ue++;else break;for(var Yt=0,wn=0,Fn=Mt[0],Zn=tn[0],Xn=Math.min(Fn.length,Zn.length);Yt<Xn&&Fn.charCodeAt(Yt)==Zn.charCodeAt(Yt);)++Yt;for(var gr=er(Mt),ur=er(tn),Rr=Math.min(gr.length-(Mt.length==1?Yt:0),ur.length-(tn.
Line truncated
|
||||
`),Ze(K))}else return;ue.type=="cut"&&(S.state.cutIncoming=+new Date)}}We(K,"cut",Z),We(K,"copy",Z),We(u.scroller,"paste",function(ue){if(!(EA(u,ue)||ot(S,ue))){if(!K.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var _e=new Event("paste");_e.clipboardData=ue.clipboardData,K.dispatchEvent(_e)}}),We(u.lineSpace,"selectstart",function(ue){EA(u,ue)||nn(ue)}),We(K,"compositionstart",function(){var ue=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ue,range:S.markText(ue,S.getCursor("to"),{className:"CodeMirror-composing"})}}),We(K,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ta.prototype.createField=function(u){this.wrapper=sd(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;df(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Ta.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Md(u);if(u.options.moveInputWithCursor){var K=An(u,E.sel.primary().head,"div"),Z=g.wrapper.getBoundingClientRect(),ue=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,K.top+ue.top-Z.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,K.left+ue.left-Z.left))}return S},Ta.prototype.showSelection=function(u){var g=this.cm,E=g.display;Le(E.cursorDiv,u.cursors),Le(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Ta.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var g=this.cm;if(this.resetting=!0,g.somethingSelected()){this.prevInput="";var E=g.getSelection();this.textarea.value=E,g.state.focused&&Ze(this.textarea),f&&v>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",f&&v>=9&&(this.hasSelection=null));this.resetting=!1}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||je(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Ta.prototype.fastPoll=function(){var u=!1,g=this;g.pollingFast=!0;function E(){var S=g.poll();!S&&!u?(u=!0,g.polling.set(60,E)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,E)},Ta.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Pr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var K=E.value;if(K==S&&!g.somethingSelected())return!1;if(f&&v>=9&&this.hasSelection===K||q&&/[\uf700-\uf7ff]/.test(K))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var Z=K.charCodeAt(0);if(Z==8203&&!S&&(S=""),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,_e=Math.min(S.length,K.length);ue<_e&&S.charCodeAt(ue)==K.charCodeAt(ue);)++ue;return Js(g,function(){id(g,K.slice(ue),S.length-ue,null,u.composing?"*compose":null),K.length>1e3||K.indexOf(`
|
||||
`)>-1?E.value=u.prevInput="":u.prevInput=K,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){f&&v>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,K=g.textarea;g.contextMenuPending&&g.contextMenuPending();var Z=JA(E,u),ue=S.scroller.scrollTop;if(!Z||U)return;var _e=E.options.resetSelectionOnContextMenu;_e&&E.doc.sel.contains(Z)==-1&&Po(E,ea)(E.doc,ja(Z),Dt);var Pe=K.style.cssText,Ne=g.wrapper.style.cssText,mt=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(u.clientY-mt.top-5)+"px; left: "+(u.clientX-mt.left-5)+`px;
|
||||
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
|
||||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Mt;x&&(Mt=K.ownerDocument.defaultView.scrollY),S.input.focus(),x&&K.ownerDocument.defaultView.scrollTo(null,Mt),S.input.reset(),E.somethingSelected()||(K.value=g.prevInput=" "),g.contextMenuPending=Yt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function tn(){if(K.selectionStart!=null){var Fn=E.somethingSelected(),Zn=""+(Fn?K.value:"");K.value="⇚",K.value=Zn,g.prevInput=Fn?"":"",K.selectionStart=1,K.selectionEnd=Zn.length,S.selForContextMenu=E.doc.sel}}function Yt(){if(g.contextMenuPending==Yt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ne,K.style.cssText=Pe,f&&v<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ue),K.selectionStart!=null)){(!f||f&&v<9)&&tn();var Fn=0,Zn=function(){S.selForContextMenu==E.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&g.prevInput==""?Po(E,ol)(E):Fn++<10?S.detectingSelectAll=setTimeout(Zn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Zn,200)}}if(f&&v>=9&&tn(),fe){pr(u);var wn=function(){rt(window,"mouseup",wn),setTimeout(Yt,20)};We(window,"mouseup",wn)}else setTimeout(Yt,50)},Ta.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function um(u,g){if(g=g?ze(g):{},g.value=u.value,!g.tabindex&&u.tabIndex&&(g.tabindex=u.tabIndex),!g.placeholder&&u.placeholder&&(g.placeholder=u.placeholder),g.autofocus==null){var E=je(gt(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=_e.getValue()}var K;if(u.form&&(We(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var Z=u.form;K=Z.submit;try{var ue=Z.submit=function(){S(),Z.submit=K,Z.submit(),Z.submit=ue}}catch{}}g.finishInit=function(Pe){Pe.save=S,Pe.getTextArea=function(){return u},Pe.toTextArea=function(){Pe.toTextArea=isNaN,S(),u.parentNode.removeChild(Pe.getWrapperElement()),u.style.display="",u.form&&(rt(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=K))}},u.style.display="none";var _e=qo(function(Pe){return u.parentNode.insertBefore(Pe,u.nextSibling)},g);return _e}function Xf(u){u.off=rt,u.on=We,u.wheelEventPixels=Gu,u.Doc=kt,u.splitLines=Ar,u.countColumn=Ke,u.findColumn=bn,u.isWordChar=tr,u.Pass=dt,u.signal=ut,u.Line=La,u.changeEnd=ma,u.scrollbarModel=Ic,u.Pos=dn,u.cmpPos=dr,u.modes=$r,u.mimeModes=Cs,u.resolveMode=sa,u.getMode=Wo,u.modeExtensions=Uo,u.extendMode=So,u.copyState=pi,u.startState=_l,u.innerMode=tA,u.commands=Iu,u.keyMap=Ro,u.keyName=Ca,u.isModifierKey=ya,u.lookupKey=qi,u.normalizeKeyMap=to,u.StringStream=Ni,u.SharedTextMarker=ct,u.TextMarker=$e,u.LineWidget=ge,u.e_preventDefault=nn,u.e_stopPropagation=Rn,u.e_stop=pr,u.addClass=Se,u.contains=Ve,u.rmClass=me,u.keyNames=Vr}fA(qo),Bh(qo);var mA="iter insert remove copy getEditor constructor".split(" ");for(var Tp in kt.prototype)kt.prototype.hasOwnProperty(Tp)&&it(mA,Tp)<0&&(qo.prototype[Tp]=function(u){return function(){return u.apply(this.doc,arguments)}}(kt.prototype[Tp]));return Nt(kt),qo.inputStyles={textarea:Ta,contenteditable:Xo},qo.defineMode=function(u){!qo.defaults.mode&&u!="null"&&(qo.defaults.mode=u),ds.apply(this,arguments)},qo.defineMIME=Xa,qo.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),qo.defineMIME("text/plain","null"),qo.defineExtension=function(u,g){qo.prototype[u]=g},qo.defineDocExtension=function(u,g){kt.prototype[u]=g},qo.fromTextArea=um,Xf(qo),qo.version="5.65.19",qo})}(Eb)),Eb.exports}var Bie=Nx();const mp=hl(Bie);var V9={exports:{}},H9;function Oie(){return H9||(H9=1,function(n,e){(function(t){t(Nx())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,f=i.json||o,v=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function qe(Co){return{type:Co,style:"keyword"}}var xt=qe("keyword a"),xn=qe("keyword b"),qn=qe("keyword c"),dn=qe("keyword d"),dr=qe("operator"),Wi={type:"atom",style:"atom"};return{if:qe("if"),while:xt,with:xt,else:xn,do:xn,try:xn,finally:xn,return:dn,break:dn,continue:dn,new:qe("new"),delete:qn,void:qn,throw:qn,debugger:qe("debugger"),var:qe("var"),const:qe("var"),let:qe("var"),function:qe("function"),catch:qe("catch"),for:qe("for"),switch:qe("switch"),case:qe("case"),default:qe("default"),in:dr,typeof:dr,instanceof:dr,true:Wi,false:Wi,null:Wi,undefined:Wi,NaN:Wi,Infinity:Wi,this:qe("this"),class:qe("class"),super:qe("atom"),yield:qn,export:qe("export"),import:qe("import"),extends:qn,await:qn}}(),P=/[+\-*&%=<>!?|~^@]/,U=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(qe){for(var xt=!1,xn,qn=!1;(xn=qe.next())!=null;){if(!xt){if(xn=="/"&&!qn)return;xn=="["?qn=!0:qn&&xn=="]"&&(qn=!1)}xt=!xt&&xn=="\\"}}var W,V;function $(qe,xt,xn){return W=qe,V=xn,xt}fun
Line truncated
|
||||
left: `+g.left+"px; width: "+Math.max(2,g.right-g.left)+"px;");u.display.lineSpace.appendChild(ue),ue.scrollIntoView(K),u.display.lineSpace.removeChild(ue)}}}function Ed(u,g,E,S){S==null&&(S=0);var K;!u.options.lineWrapping&&g==E&&(E=g.sticky=="before"?fn(g.line,g.ch+1,"before"):g,g=g.ch?fn(g.line,g.sticky=="before"?g.ch-1:g.ch,"after"):g);for(var Z=0;Z<5;Z++){var ue=!1,be=un(u,g),ke=!E||E==g?be:un(u,E);K={left:Math.min(be.left,ke.left),top:Math.min(be.top,ke.top)-S,right:Math.max(be.left,ke.left),bottom:Math.max(be.bottom,ke.bottom)+S};var Ne=Oc(u,K),ft=u.doc.scrollTop,Mt=u.doc.scrollLeft;if(Ne.scrollTop!=null&&(ps(u,Ne.scrollTop),Math.abs(u.doc.scrollTop-ft)>1&&(ue=!0)),Ne.scrollLeft!=null&&(Xs(u,Ne.scrollLeft),Math.abs(u.doc.scrollLeft-Mt)>1&&(ue=!0)),!ue)break}return K}function ac(u,g){var E=Oc(u,g);E.scrollTop!=null&&ps(u,E.scrollTop),E.scrollLeft!=null&&Xs(u,E.scrollLeft)}function Oc(u,g){var E=u.display,S=nl(u.display);g.top<0&&(g.top=0);var K=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:E.scroller.scrollTop,Z=wc(u),ue={};g.bottom-g.top>Z&&(g.bottom=g.top+Z);var be=u.doc.height+vh(E),ke=g.top<S,Ne=g.bottom>be-S;if(g.top<K)ue.scrollTop=ke?0:g.top;else if(g.bottom>K+Z){var ft=Math.min(g.top,(Ne?be:g.bottom)-Z);ft!=K&&(ue.scrollTop=ft)}var Mt=u.options.fixedGutter?0:E.gutters.offsetWidth,tn=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:E.scroller.scrollLeft-Mt,Yt=Mc(u)-E.gutters.offsetWidth,wn=g.right-g.left>Yt;return wn&&(g.right=g.left+Yt),g.left<10?ue.scrollLeft=0:g.left<tn?ue.scrollLeft=Math.max(0,g.left+Mt-(wn?0:10)):g.right>Yt+tn-3&&(ue.scrollLeft=g.right+(wn?0:10)-Yt),ue}function lc(u,g){g!=null&&(th(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+g)}function Ms(u){th(u);var g=u.getCursor();u.curOp.scrollToPos={from:g,to:g,margin:u.options.cursorScrollMargin}}function Qs(u,g,E){(g!=null||E!=null)&&th(u),g!=null&&(u.curOp.scrollLeft=g),E!=null&&(u.curOp.scrollTop=E)}function Bd(u,g){th(u),u.curOp.scrollToPos=g}function th(u){var g=u.curOp.scrollToPos;if(g){u.curOp.scrollToPos=null;var E=Kr(u,g.from),S=Kr(u,g.to);bh(u,E,S,g.margin)}}function bh(u,g,E,S){var K=Oc(u,{left:Math.min(g.left,E.left),top:Math.min(g.top,E.top)-S,right:Math.max(g.right,E.right),bottom:Math.max(g.bottom,E.bottom)+S});Qs(u,K.scrollLeft,K.scrollTop)}function ps(u,g){Math.abs(u.doc.scrollTop-g)<2||(i||El(u,{top:g}),xu(u,g,!0),i&&El(u),Wa(u,100))}function xu(u,g,E){g=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,g)),!(u.display.scroller.scrollTop==g&&!E)&&(u.doc.scrollTop=g,u.display.scrollbars.setScrollTop(g),u.display.scroller.scrollTop!=g&&(u.display.scroller.scrollTop=g))}function Xs(u,g,E,S){g=Math.max(0,Math.min(g,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((E?g==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-g)<2)&&!S)&&(u.doc.scrollLeft=g,Gu(u),u.display.scroller.scrollLeft!=g&&(u.display.scroller.scrollLeft=g),u.display.scrollbars.setScrollLeft(g))}function Wu(u){var g=u.display,E=g.gutters.offsetWidth,S=Math.round(u.doc.height+vh(u.display));return{clientHeight:g.scroller.clientHeight,viewHeight:g.wrapper.clientHeight,scrollWidth:g.scroller.scrollWidth,clientWidth:g.scroller.clientWidth,viewWidth:g.wrapper.clientWidth,barLeft:u.options.fixedGutter?E:0,docHeight:S,scrollHeight:S+vu(u)+g.barHeight,nativeBarWidth:g.nativeBarWidth,gutterWidth:E}}var Wl=function(u,g,E){this.cm=E;var S=this.vert=Se("div",[Se("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),K=this.horiz=Se("div",[Se("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");S.tabIndex=K.tabIndex=-1,u(S),u(K),Qe(S,"scroll",function(){S.clientHeight&&g(S.scrollTop,"vertical")}),Qe(K,"scroll",function(){K.clientWidth&&g(K.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&v<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Wl.prototype.update=function(u){var g=u.scrollWidth>u.clientWidth+1,E=u.scrollHeight>u.clientHeight+1,S=u.nativeBarWidth;if(E){this.vert.style.display="block",this.vert.style.bottom=g?S+"px":"0";var K=u.viewHeight-(g?S:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+K)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(g){this.horiz.style.display="block",this.horiz.style.right=E?S+"px":"0",this.horiz.style.left=u.barLeft+"px";var Z=u.viewWidth-u.barLeft-(E?S:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(S==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:E?S:0,bottom:g?S:0}},Wl.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Wl.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),thi
Line truncated
|
||||
`},setDirection:ms(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(g){return g.order=null}),this.cm&&Yu(this.cm))})}),Pt.prototype.eachLine=Pt.prototype.iter;var Lt=0;function sn(u){var g=this;if(Cn(g),!(at(g,u)||BA(g.display,u))){rn(u),p&&(Lt=+new Date);var E=eu(g,u,!0),S=u.dataTransfer.files;if(!(!E||g.isReadOnly()))if(S&&S.length&&window.FileReader&&window.File)for(var K=S.length,Z=Array(K),ue=0,be=function(){++ue==K&&Po(g,function(){E=Ci(g.doc,E);var Yt={from:E,to:E,text:g.doc.splitLines(Z.filter(function(wn){return wn!=null}).join(g.doc.lineSeparator())),origin:"paste"};uc(g.doc,Yt),su(g.doc,Ga(Ci(g.doc,E),Ci(g.doc,ga(Yt))))})()},ke=function(Yt,wn){if(g.options.allowDropFileTypes&&nt(g.options.allowDropFileTypes,Yt.type)==-1){be();return}var Ln=new FileReader;Ln.onerror=function(){return be()},Ln.onload=function(){var Hn=Ln.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hn)){be();return}Z[wn]=Hn,be()},Ln.readAsText(Yt)},Ne=0;Ne<S.length;Ne++)ke(S[Ne],Ne);else{if(g.state.draggingText&&g.doc.sel.contains(E)>-1){g.state.draggingText(u),setTimeout(function(){return g.display.input.focus()},20);return}try{var ft=u.dataTransfer.getData("Text");if(ft){var Mt;if(g.state.draggingText&&!g.state.draggingText.copy&&(Mt=g.listSelections()),Ys(g.doc,Ga(E,E)),Mt)for(var tn=0;tn<Mt.length;++tn)C(g.doc,"",Mt[tn].anchor,Mt[tn].head,"drag");g.replaceSelection(ft,"around","paste"),g.display.input.focus()}}catch{}}}}function ln(u,g){if(p&&(!u.state.draggingText||+new Date-Lt<100)){mr(g);return}if(!(at(u,g)||BA(u.display,g))&&(g.dataTransfer.setData("Text",u.getSelection()),g.dataTransfer.effectAllowed="copyMove",g.dataTransfer.setDragImage&&!N)){var E=Se("img",null,null,"position: fixed; left: 0; top: 0;");E.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",D&&(E.width=E.height=1,u.display.wrapper.appendChild(E),E._top=E.offsetTop),g.dataTransfer.setDragImage(E,0,0),D&&E.parentNode.removeChild(E)}}function on(u,g){var E=eu(u,g);if(E){var S=document.createDocumentFragment();Jc(u,E,S),u.display.dragCursor||(u.display.dragCursor=Se("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),qe(u.display.dragCursor,S)}}function Cn(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function Mn(u){if(document.getElementsByClassName){for(var g=document.getElementsByClassName("CodeMirror"),E=[],S=0;S<g.length;S++){var K=g[S].CodeMirror;K&&E.push(K)}E.length&&E[0].operation(function(){for(var Z=0;Z<E.length;Z++)u(E[Z])})}}var ir=!1;function Vn(){ir||(kn(),ir=!0)}function kn(){var u;Qe(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,Mn(Er)},100))}),Qe(window,"blur",function(){return Mn(Go)})}function Er(u){var g=u.display;g.cachedCharWidth=g.cachedTextHeight=g.cachedPaddingH=null,g.scrollbarsClipped=!1,u.setSize()}for(var Vr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ci=0;ci<10;ci++)Vr[ci+48]=Vr[ci+96]=String(ci);for(var Yo=65;Yo<=90;Yo++)Vr[Yo]=String.fromCharCode(Yo);for(var bo=1;bo<=12;bo++)Vr[bo+111]=Vr[bo+63235]="F"+bo;var Ro={};Ro.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ro.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ro.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-Line truncated
|
||||
`,"start")},toggleOverwrite:function(u){return u.toggleOverwrite()}};function Vl(u,g){var E=wr(u.doc,g),S=Or(E);return S!=E&&(g=Ve(S)),FA(!0,u,S,g,1)}function dA(u,g){var E=wr(u.doc,g),S=ni(E);return S!=E&&(g=Ve(S)),FA(!0,u,E,g,-1)}function qu(u,g){var E=Vl(u,g.line),S=wr(u.doc,E.line),K=_e(S,u.doc.direction);if(!K||K[0].level==0){var Z=Math.max(E.ch,S.text.search(/\S/)),ue=g.line==E.line&&g.ch<=Z&&g.ch;return fn(E.line,ue?0:Z,E.sticky)}return E}function Hl(u,g,E){if(typeof g=="string"&&(g=Iu[g],!g))return!1;u.display.input.ensurePolled();var S=u.display.shift,K=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),E&&(u.display.shift=!1),K=g(u)!=gt}finally{u.display.shift=S,u.state.suppressEdits=!1}return K}function cc(u,g,E){for(var S=0;S<u.state.keyMaps.length;S++){var K=qi(g,u.state.keyMaps[S],E,u);if(K)return K}return u.options.extraKeys&&qi(g,u.options.extraKeys,E,u)||qi(g,u.options.keyMap,E,u)}var qs=new Ue;function os(u,g,E,S){var K=u.state.keySeq;if(K){if(va(g))return"handled";if(/\'$/.test(g)?u.state.keySeq=null:qs.set(50,function(){u.state.keySeq==K&&(u.state.keySeq=null,u.display.input.reset())}),na(u,K+" "+g,E,S))return!0}return na(u,g,E,S)}function na(u,g,E,S){var K=cc(u,g,S);return K=="multi"&&(u.state.keySeq=g),K=="handled"&&xs(u,"keyHandled",u,g,E),(K=="handled"||K=="multi")&&(rn(E),nu(u)),!!K}function Es(u,g){var E=_a(g,!0);return E?g.shiftKey&&!u.state.keySeq?os(u,"Shift-"+E,g,function(S){return Hl(u,S,!0)})||os(u,E,g,function(S){if(typeof S=="string"?/^go[A-Z]/.test(S):S.motion)return Hl(u,S)}):os(u,E,g,function(S){return Hl(u,S)}):!1}function Tp(u,g,E){return os(u,"'"+E+"'",g,function(S){return Hl(u,S,!0)})}var hc=null;function cf(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&(g.curOp.focus=je(Gt(g)),!at(g,u))){p&&v<11&&u.keyCode==27&&(u.returnValue=!1);var E=u.keyCode;g.display.shift=E==16||u.shiftKey;var S=Es(g,u);D&&(hc=S?E:null,!S&&E==88&&!Cs&&(q?u.metaKey:u.ctrlKey)&&g.replaceSelection("",null,"cut")),i&&!q&&!S&&E==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),E==18&&!/\bCodeMirror-crosshair\b/.test(g.display.lineDiv.className)&&$l(g)}}function $l(u){var g=u.display.lineDiv;Pe(g,"CodeMirror-crosshair");function E(S){(S.keyCode==18||!S.altKey)&&(me(g,"CodeMirror-crosshair"),it(document,"keyup",E),it(document,"mouseover",E))}Qe(document,"keyup",E),Qe(document,"mouseover",E)}function LA(u){u.keyCode==16&&(this.doc.sel.shift=!1),at(this,u)}function nd(u){var g=this;if(!(u.target&&u.target!=g.display.input.getField())&&!(BA(g.display,u)||at(g,u)||u.ctrlKey&&!u.altKey||q&&u.metaKey)){var E=u.keyCode,S=u.charCode;if(D&&E==hc){hc=null,rn(u);return}if(!(D&&(!u.which||u.which<10)&&Es(g,u))){var K=String.fromCharCode(S??E);K!="\b"&&(Tp(g,u,K)||g.display.input.onKeyPress(u))}}}var cu=400,hu=function(u,g,E){this.time=u,this.pos=g,this.button=E};hu.prototype.compare=function(u,g,E){return this.time+cu>u&&dr(g,this.pos)==0&&E==this.button};var Tu,Tl;function lh(u,g){var E=+new Date;return Tl&&Tl.compare(E,u,g)?(Tu=Tl=null,"triple"):Tu&&Tu.compare(E,u,g)?(Tl=new hu(E,u,g),Tu=null,"double"):(Tu=new hu(E,u,g),Tl=null,"single")}function Sh(u){var g=this,E=g.display;if(!(at(g,u)||E.activeTouch&&E.input.supportsTouch())){if(E.input.ensurePolled(),E.shift=u.shiftKey,BA(E,u)){x||(E.scroller.draggable=!1,setTimeout(function(){return E.scroller.draggable=!0},100));return}if(!Vu(g,u)){var S=eu(g,u),K=Jt(u),Z=S?lh(S,K):"single";Ut(g).focus(),K==1&&g.state.selectingText&&g.state.selectingText(u),!(S&&Td(g,K,S,Z,u))&&(K==1?S?hf(g,S,Z,u):Tr(u)==E.scroller&&rn(u):K==2?(S&&Is(g.doc,S),setTimeout(function(){return E.input.focus()},20)):K==3&&(he?g.display.input.onContextMenu(u):eh(g)))}}}function Td(u,g,E,S,K){var Z="Click";return S=="double"?Z="Double"+Z:S=="triple"&&(Z="Triple"+Z),Z=(g==1?"Left":g==2?"Middle":"Right")+Z,os(u,Ca(Z,K),K,function(ue){if(typeof ue=="string"&&(ue=Iu[ue]),!ue)return!1;var be=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),be=ue(u,E)!=gt}finally{u.state.suppressEdits=!1}return be})}function rd(u,g,E){var S=u.getOption("configureMouse"),K=S?S(u,g,E):{};if(K.unit==null){var Z=te?E.shiftKey&&E.metaKey:E.altKey;K.unit=Z?"rectangle":g=="single"?"char":g=="double"?"word":"line"}return(K.extend==null||u.doc.extend)&&(K.extend=u.doc.extend||E.shiftKey),K.addNew==null&&(K.addNew=q?E.metaKey:E.ctrlKey),K.moveOnDrag==null&&(K.moveOnDrag=!(q?E.altKey:E.ctrlKey)),K}function hf(u,g,E,S){p?setTimeout(kt(sc,u),0):u.curOp.focus=je(Gt(u));var K=rd(u,E,S),Z=u.doc.sel,ue;u.options.dragDrop&&br&&!u.isReadOnly()&&E=="single"&&(ue=Z.contains(g))>-1&&(dr((ue=Z.ranges[ue]).from(),g)<0||g.xRel>0)&&(dr(ue.to(),g)>0||g.xRel<0)?Zf(u,S,g,K):df(u,S,g,K)}function Zf(u,g,E,S){var K=u.display,Z=!1,ue=Po(u,function(Ne){x&&(K.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:eh(u)),it(K.wrapper.ownerDocument,"mouseup",ue),it(K.wrapper.ownerDocument,"mousemove",be),it(K.scroller,"dragstart",ke),it(K.scro
Line truncated
|
||||
`)==g){if(S.ranges.length%ku.text.length==0){Ne=[];for(var ft=0;ft<ku.text.length;ft++)Ne.push(Z.splitLines(ku.text[ft]))}}else ke.length==S.ranges.length&&u.options.pasteLinesPerSelection&&(Ne=Fn(ke,function($n){return[$n]}));for(var Mt=u.curOp.updateInput,tn=S.ranges.length-1;tn>=0;tn--){var Yt=S.ranges[tn],wn=Yt.from(),Ln=Yt.to();Yt.empty()&&(E&&E>0?wn=fn(wn.line,wn.ch-E):u.state.overwrite&&!be?Ln=fn(Ln.line,Math.min(wr(Z,Ln.line).text.length,Ln.ch+Xn(ke).length)):be&&ku&&ku.lineWise&&ku.text.join(`
|
||||
`)==ke.join(`
|
||||
`)&&(wn=Ln=fn(wn.line,0)));var Hn={from:wn,to:Ln,text:Ne?Ne[tn%Ne.length]:ke,origin:K||(be?"paste":u.state.cutIncoming>ue?"cut":"+input")};uc(u.doc,Hn),xs(u,"inputRead",u,Hn)}g&&!be&&Pd(u,g),Ms(u),u.curOp.updateInput<2&&(u.curOp.updateInput=Mt),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function Ia(u,g){var E=u.clipboardData&&u.clipboardData.getData("Text");if(E)return u.preventDefault(),!g.isReadOnly()&&!g.options.disableInput&&g.hasFocus()&&Js(g,function(){return sd(g,E,0,null,"paste")}),!0}function Pd(u,g){if(!(!u.options.electricChars||!u.options.smartIndent))for(var E=u.doc.sel,S=E.ranges.length-1;S>=0;S--){var K=E.ranges[S];if(!(K.head.ch>100||S&&E.ranges[S-1].head.line==K.head.line)){var Z=u.getModeAt(K.head),ue=!1;if(Z.electricChars){for(var be=0;be<Z.electricChars.length;be++)if(g.indexOf(Z.electricChars.charAt(be))>-1){ue=Bh(u,K.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(wr(u.doc,K.head.line).text.slice(0,K.head.ch))&&(ue=Bh(u,K.head.line,"smart"));ue&&xs(u,"electricInput",u,K.head.line)}}}function ad(u){for(var g=[],E=[],S=0;S<u.doc.sel.ranges.length;S++){var K=u.doc.sel.ranges[S].head.line,Z={anchor:fn(K,0),head:fn(K+1,0)};E.push(Z),g.push(u.getRange(Z.anchor,Z.head))}return{text:g,ranges:E}}function mf(u,g,E,S){u.setAttribute("autocorrect",E?"on":"off"),u.setAttribute("autocapitalize",S?"on":"off"),u.setAttribute("spellcheck",!!g)}function ld(){var u=Se("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),g=Se("div",[u],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return x?u.style.width="1000px":u.setAttribute("wrap","off"),$&&(u.style.border="1px solid black"),g}function Oh(u){var g=u.optionHandlers,E=u.helpers={};u.prototype={constructor:u,focus:function(){Ut(this).focus(),this.display.input.focus()},setOption:function(S,K){var Z=this.options,ue=Z[S];Z[S]==K&&S!="mode"||(Z[S]=K,g.hasOwnProperty(S)&&Po(this,g[S])(this,K,ue),ut(this,"optionChange",this,S))},getOption:function(S){return this.options[S]},getDoc:function(){return this.doc},addKeyMap:function(S,K){this.state.keyMaps[K?"push":"unshift"](ta(S))},removeKeyMap:function(S){for(var K=this.state.keyMaps,Z=0;Z<K.length;++Z)if(K[Z]==S||K[Z].name==S)return K.splice(Z,1),!0},addOverlay:ri(function(S,K){var Z=S.token?S:u.getMode(this.options,S);if(Z.startState)throw new Error("Overlays may not be stateful.");an(this.state.overlays,{mode:Z,modeSpec:S,opaque:K&&K.opaque,priority:K&&K.priority||0},function(ue){return ue.priority}),this.state.modeGen++,rl(this)}),removeOverlay:ri(function(S){for(var K=this.state.overlays,Z=0;Z<K.length;++Z){var ue=K[Z].modeSpec;if(ue==S||typeof S=="string"&&ue.name==S){K.splice(Z,1),this.state.modeGen++,rl(this);return}}}),indentLine:ri(function(S,K,Z){typeof K!="string"&&typeof K!="number"&&(K==null?K=this.options.smartIndent?"smart":"prev":K=K?"add":"subtract"),xn(this.doc,S)&&Bh(this,S,K,Z)}),indentSelection:ri(function(S){for(var K=this.doc.sel.ranges,Z=-1,ue=0;ue<K.length;ue++){var be=K[ue];if(be.empty())be.head.line>Z&&(Bh(this,be.head.line,S,!0),Z=be.head.line,ue==this.doc.sel.primIndex&&Ms(this));else{var ke=be.from(),Ne=be.to(),ft=Math.max(Z,ke.line);Z=Math.min(this.lastLine(),Ne.line-(Ne.ch?0:1))+1;for(var Mt=ft;Mt<Z;++Mt)Bh(this,Mt,S);var tn=this.doc.sel.ranges;ke.ch==0&&K.length==tn.length&&tn[ue].from().ch>0&&ol(this.doc,ue,new Bo(ke,tn[ue].to()),Kt)}}}),getTokenAt:function(S,K){return aa(this,S,K)},getLineTokens:function(S,K){return aa(this,fn(S),K,!0)},getTokenTypeAt:function(S){S=Ci(this.doc,S);var K=Ws(this,wr(this.doc,S.line)),Z=0,ue=(K.length-1)/2,be=S.ch,ke;if(be==0)ke=K[2];else for(;;){var Ne=Z+ue>>1;if((Ne?K[Ne*2-1]:0)>=be)ue=Ne;else if(K[Ne*2+1]<be)Z=Ne+1;else{ke=K[Ne*2+2];break}}var ft=ke?ke.indexOf("overlay "):-1;return ft<0?ke:ft==0?null:ke.slice(0,ft-1)},getModeAt:function(S){var K=this.doc.mode;return K.innerMode?u.innerMode(K,this.getTokenAt(S).state).mode:K},getHelper:function(S,K){return this.getHelpers(S,K)[0]},getHelpers:function(S,K){var Z=[];if(!E.hasOwnProperty(K))return Z;var ue=E[K],be=this.getModeAt(S);if(typeof be[K]=="string")ue[be[K]]&&Z.push(ue[be[K]]);else if(be[K])for(var ke=0;ke<be[K].length;ke++){var Ne=ue[be[K][ke]];Ne&&Z.push(Ne)}else be.helperType&&ue[be.helperType]?Z.push(ue[be.helperType]):ue[be.name]&&Z.push(ue[be.name]);for(var ft=0;ft<ue._global.length;ft++){var Mt=ue._global[ft];Mt.pred(be,this)&&nt(Z,Mt.val)==-1&&Z.push(Mt.val)}return Z},getStateAfter:function(S,K){var Z=this.doc;return S=nA(Z,S??Z.first+Z.size-1),di(this,S+1,K).state},cursorCoords:function(S,K){var Z,ue=this.doc.sel.primary();return S==null?Z=ue.head:typeof S=="object"?Z=Ci(this.doc,S):Z=S?ue.from():ue.to(),un(this,Z,K||"page")},charCoords:function(S,K){return Tn(this,Ci(this.doc,S),K||"page")},coordsChar:function(S,K){return S=en(this,S,K||"page"),po(this,S.left,S.top)},lineAtHeight:function(S,K){return S=en(this,{top:S,left:0},K||"page").top,xt(
Line truncated
|
||||
`,Hn=We(Ln,Yt)?"w":tn&&Ln==`
|
||||
`?"n":!tn||/\s/.test(Ln)?null:"p";if(tn&&!wn&&!Hn&&(Hn="s"),Mt&&Mt!=Hn){E<0&&(E=1,ft(),g.sticky="after");break}if(Hn&&(Mt=Hn),E>0&&!ft(!wn))break}var $n=Kc(u,g,Z,ue,!0);return Wi(Z,$n)&&($n.hitSide=!0),$n}function gf(u,g,E,S){var K=u.doc,Z=g.left,ue;if(S=="page"){var be=Math.min(u.display.wrapper.clientHeight,Ut(u).innerHeight||K(u).documentElement.clientHeight),ke=Math.max(be-.5*nl(u.display),3);ue=(E>0?g.bottom:g.top)+E*ke}else S=="line"&&(ue=E>0?g.bottom+3:g.top-3);for(var Ne;Ne=po(u,Z,ue),!!Ne.outside;){if(E<0?ue<=0:ue>=K.height){Ne.hitSide=!0;break}ue+=E*5}return Ne}var Xo=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ue,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Xo.prototype.init=function(u){var g=this,E=this,S=E.cm,K=E.div=u.lineDiv;K.contentEditable=!0,mf(K,S.options.spellcheck,S.options.autocorrect,S.options.autocapitalize);function Z(be){for(var ke=be.target;ke;ke=ke.parentNode){if(ke==K)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}Qe(K,"paste",function(be){!Z(be)||at(S,be)||Ia(be,S)||v<=11&&setTimeout(Po(S,function(){return g.updateFromDOM()}),20)}),Qe(K,"compositionstart",function(be){g.composing={data:be.data,done:!1}}),Qe(K,"compositionupdate",function(be){g.composing||(g.composing={data:be.data,done:!1})}),Qe(K,"compositionend",function(be){g.composing&&(be.data!=g.composing.data&&g.readFromDOMSoon(),g.composing.done=!0)}),Qe(K,"touchstart",function(){return E.forceCompositionEnd()}),Qe(K,"input",function(){g.composing||g.readFromDOMSoon()});function ue(be){if(!(!Z(be)||at(S,be))){if(S.somethingSelected())od({lineWise:!1,text:S.getSelections()}),be.type=="cut"&&S.replaceSelection("",null,"cut");else if(S.options.lineWiseCopyCut){var ke=ad(S);od({lineWise:!0,text:ke.text}),be.type=="cut"&&S.operation(function(){S.setSelections(ke.ranges,0,Kt),S.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var Ne=ku.text.join(`
|
||||
`);if(be.clipboardData.setData("Text",Ne),be.clipboardData.getData("Text")==Ne){be.preventDefault();return}}var ft=ld(),Mt=ft.firstChild;mf(Mt),S.display.lineSpace.insertBefore(ft,S.display.lineSpace.firstChild),Mt.value=ku.text.join(`
|
||||
`);var tn=je(mt(K));Xe(Mt),setTimeout(function(){S.display.lineSpace.removeChild(ft),tn.focus(),tn==K&&E.showPrimarySelection()},50)}}Qe(K,"copy",ue),Qe(K,"cut",ue)},Xo.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Xo.prototype.prepareSelection=function(){var u=Sd(this.cm,!1);return u.focus=je(mt(this.div))==this.div,u},Xo.prototype.showSelection=function(u,g){!u||!this.cm.display.view.length||((u.focus||g)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Xo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Xo.prototype.showPrimarySelection=function(){var u=this.getSelection(),g=this.cm,E=g.doc.sel.primary(),S=E.from(),K=E.to();if(g.display.viewTo==g.display.viewFrom||S.line>=g.display.viewTo||K.line<g.display.viewFrom){u.removeAllRanges();return}var Z=ba(g,u.anchorNode,u.anchorOffset),ue=ba(g,u.focusNode,u.focusOffset);if(!(Z&&!Z.bad&&ue&&!ue.bad&&dr(pa(Z,ue),S)==0&&dr(ls(Z,ue),K)==0)){var be=g.display.view,ke=S.line>=g.display.viewFrom&&Dc(g,S)||{node:be[0].measure.map[2],offset:0},Ne=K.line<g.display.viewTo&&Dc(g,K);if(!Ne){var ft=be[be.length-1].measure,Mt=ft.maps?ft.maps[ft.maps.length-1]:ft.map;Ne={node:Mt[Mt.length-1],offset:Mt[Mt.length-2]-Mt[Mt.length-3]}}if(!ke||!Ne){u.removeAllRanges();return}var tn=u.rangeCount&&u.getRangeAt(0),Yt;try{Yt=Je(ke.node,ke.offset,Ne.offset,Ne.node)}catch{}Yt&&(!i&&g.state.focused?(u.collapse(ke.node,ke.offset),Yt.collapsed||(u.removeAllRanges(),u.addRange(Yt))):(u.removeAllRanges(),u.addRange(Yt)),tn&&u.anchorNode==null?u.addRange(tn):i&&this.startGracePeriod()),this.rememberSelection()}},Xo.prototype.startGracePeriod=function(){var u=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){u.gracePeriod=!1,u.selectionChanged()&&u.cm.operation(function(){return u.cm.curOp.selectionChanged=!0})},20)},Xo.prototype.showMultipleSelections=function(u){qe(this.cm.display.cursorDiv,u.cursors),qe(this.cm.display.selectionDiv,u.selection)},Xo.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Xo.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var g=u.getRangeAt(0).commonAncestorContainer;return Ke(this.div,g)},Xo.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||je(mt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Xo.prototype.blur=function(){this.div.blur()},Xo.prototype.getField=function(){return this.div},Xo.prototype.supportsTouch=function(){return!0},Xo.prototype.receivedFocus=function(){var u=this,g=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):Js(this.cm,function(){return g.cm.curOp.selectionChanged=!0});function E(){g.cm.state.focused&&(g.pollSelection(),g.polling.set(g.cm.options.pollInterval,E))}this.polling.set(this.cm.options.pollInterval,E)},Xo.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Xo.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),g=this.cm;if(ie&&k&&this.cm.display.gutterSpecs.length&&yf(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var E=ba(g,u.anchorNode,u.anchorOffset),S=ba(g,u.focusNode,u.focusOffset);E&&S&&Js(g,function(){ea(g.doc,Ga(E,S),Kt),(E.bad||S.bad)&&(g.curOp.selectionChanged=!0)})}}},Xo.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var u=this.cm,g=u.display,E=u.doc.sel.primary(),S=E.from(),K=E.to();if(S.ch==0&&S.line>u.firstLine()&&(S=fn(S.line-1,wr(u.doc,S.line-1).length)),K.ch==wr(u.doc,K.line).text.length&&K.line<u.lastLine()&&(K=fn(K.line+1,0)),S.line<g.viewFrom||K.line>g.viewTo-1)return!1;var Z,ue,be;S.line==g.viewFrom||(Z=Xi(u,S.line))==0?(ue=Ve(g.view[0].line),be=g.view[0].node):(ue=Ve(g.view[Z].line),be=g.view[Z-1].node.nextSibling);var ke=Xi(u,K.line),Ne,ft;if(ke==g.view.length-1?(Ne=g.viewTo-1,ft=g.lineDiv.lastChild):(Ne=Ve(g.view[ke+1].line)-1,ft=g.view[ke+1].node.previousSibling),!be)return!1;for(var Mt=u.doc.splitLines(Ad(u,be,ft,ue,Ne)),tn=Fa(u.doc,fn(ue,0),fn(Ne,wr(u.doc,Ne).text.length));Mt.length>1&&tn.length>1;)if(Xn(Mt)==Xn(tn))Mt.pop(),tn.pop(),Ne--;else if(Mt[0]==tn[0])Mt.shift(),tn.shift(),ue++;else break;for(var Yt=0,wn=0,Ln=Mt[0],Hn=tn[0],$n=Math.min(Ln.length,Hn.length);Yt<$n&&Ln.charCodeAt(Yt)==Hn.charCodeAt(Yt);)++Yt;for(var gr=Xn(Mt),Ar=Xn(tn),Rr=Math.min(gr.length-(Mt.length==1?Yt:0),Ar.length-(tn.
Line truncated
|
||||
`),Xe(K))}else return;ue.type=="cut"&&(S.state.cutIncoming=+new Date)}}Qe(K,"cut",Z),Qe(K,"copy",Z),Qe(u.scroller,"paste",function(ue){if(!(BA(u,ue)||at(S,ue))){if(!K.dispatchEvent){S.state.pasteIncoming=+new Date,E.focus();return}var be=new Event("paste");be.clipboardData=ue.clipboardData,K.dispatchEvent(be)}}),Qe(u.lineSpace,"selectstart",function(ue){BA(u,ue)||rn(ue)}),Qe(K,"compositionstart",function(){var ue=S.getCursor("from");E.composing&&E.composing.range.clear(),E.composing={start:ue,range:S.markText(ue,S.getCursor("to"),{className:"CodeMirror-composing"})}}),Qe(K,"compositionend",function(){E.composing&&(E.poll(),E.composing.range.clear(),E.composing=null)})},Ta.prototype.createField=function(u){this.wrapper=ld(),this.textarea=this.wrapper.firstChild;var g=this.cm.options;mf(this.textarea,g.spellcheck,g.autocorrect,g.autocapitalize)},Ta.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},Ta.prototype.prepareSelection=function(){var u=this.cm,g=u.display,E=u.doc,S=Sd(u);if(u.options.moveInputWithCursor){var K=un(u,E.sel.primary().head,"div"),Z=g.wrapper.getBoundingClientRect(),ue=g.lineDiv.getBoundingClientRect();S.teTop=Math.max(0,Math.min(g.wrapper.clientHeight-10,K.top+ue.top-Z.top)),S.teLeft=Math.max(0,Math.min(g.wrapper.clientWidth-10,K.left+ue.left-Z.left))}return S},Ta.prototype.showSelection=function(u){var g=this.cm,E=g.display;qe(E.cursorDiv,u.cursors),qe(E.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},Ta.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var g=this.cm;if(this.resetting=!0,g.somethingSelected()){this.prevInput="";var E=g.getSelection();this.textarea.value=E,g.state.focused&&Xe(this.textarea),p&&v>=9&&(this.hasSelection=E)}else u||(this.prevInput=this.textarea.value="",p&&v>=9&&(this.hasSelection=null));this.resetting=!1}},Ta.prototype.getField=function(){return this.textarea},Ta.prototype.supportsTouch=function(){return!1},Ta.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||je(mt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Ta.prototype.blur=function(){this.textarea.blur()},Ta.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ta.prototype.receivedFocus=function(){this.slowPoll()},Ta.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},Ta.prototype.fastPoll=function(){var u=!1,g=this;g.pollingFast=!0;function E(){var S=g.poll();!S&&!u?(u=!0,g.polling.set(60,E)):(g.pollingFast=!1,g.slowPoll())}g.polling.set(20,E)},Ta.prototype.poll=function(){var u=this,g=this.cm,E=this.textarea,S=this.prevInput;if(this.contextMenuPending||this.resetting||!g.state.focused||Pr(E)&&!S&&!this.composing||g.isReadOnly()||g.options.disableInput||g.state.keySeq)return!1;var K=E.value;if(K==S&&!g.somethingSelected())return!1;if(p&&v>=9&&this.hasSelection===K||q&&/[\uf700-\uf7ff]/.test(K))return g.display.input.reset(),!1;if(g.doc.sel==g.display.selForContextMenu){var Z=K.charCodeAt(0);if(Z==8203&&!S&&(S=""),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ue=0,be=Math.min(S.length,K.length);ue<be&&S.charCodeAt(ue)==K.charCodeAt(ue);)++ue;return Js(g,function(){sd(g,K.slice(ue),S.length-ue,null,u.composing?"*compose":null),K.length>1e3||K.indexOf(`
|
||||
`)>-1?E.value=u.prevInput="":u.prevInput=K,u.composing&&(u.composing.range.clear(),u.composing.range=g.markText(u.composing.start,g.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ta.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ta.prototype.onKeyPress=function(){p&&v>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(u){var g=this,E=g.cm,S=E.display,K=g.textarea;g.contextMenuPending&&g.contextMenuPending();var Z=eu(E,u),ue=S.scroller.scrollTop;if(!Z||D)return;var be=E.options.resetSelectionOnContextMenu;be&&E.doc.sel.contains(Z)==-1&&Po(E,ea)(E.doc,Ga(Z),Kt);var ke=K.style.cssText,Ne=g.wrapper.style.cssText,ft=g.wrapper.offsetParent.getBoundingClientRect();g.wrapper.style.cssText="position: static",K.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(u.clientY-ft.top-5)+"px; left: "+(u.clientX-ft.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 Mt;x&&(Mt=K.ownerDocument.defaultView.scrollY),S.input.focus(),x&&K.ownerDocument.defaultView.scrollTo(null,Mt),S.input.reset(),E.somethingSelected()||(K.value=g.prevInput=" "),g.contextMenuPending=Yt,S.selForContextMenu=E.doc.sel,clearTimeout(S.detectingSelectAll);function tn(){if(K.selectionStart!=null){var Ln=E.somethingSelected(),Hn=""+(Ln?K.value:"");K.value="⇚",K.value=Hn,g.prevInput=Ln?"":"",K.selectionStart=1,K.selectionEnd=Hn.length,S.selForContextMenu=E.doc.sel}}function Yt(){if(g.contextMenuPending==Yt&&(g.contextMenuPending=!1,g.wrapper.style.cssText=Ne,K.style.cssText=ke,p&&v<9&&S.scrollbars.setScrollTop(S.scroller.scrollTop=ue),K.selectionStart!=null)){(!p||p&&v<9)&&tn();var Ln=0,Hn=function(){S.selForContextMenu==E.doc.sel&&K.selectionStart==0&&K.selectionEnd>0&&g.prevInput==""?Po(E,sl)(E):Ln++<10?S.detectingSelectAll=setTimeout(Hn,500):(S.selForContextMenu=null,S.input.reset())};S.detectingSelectAll=setTimeout(Hn,200)}}if(p&&v>=9&&tn(),he){mr(u);var wn=function(){it(window,"mouseup",wn),setTimeout(Yt,20)};Qe(window,"mouseup",wn)}else setTimeout(Yt,50)},Ta.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},Ta.prototype.setUneditable=function(){},Ta.prototype.needsContentAttribute=!1;function hm(u,g){if(g=g?Te(g):{},g.value=u.value,!g.tabindex&&u.tabIndex&&(g.tabindex=u.tabIndex),!g.placeholder&&u.placeholder&&(g.placeholder=u.placeholder),g.autofocus==null){var E=je(mt(u));g.autofocus=E==u||u.getAttribute("autofocus")!=null&&E==document.body}function S(){u.value=be.getValue()}var K;if(u.form&&(Qe(u.form,"submit",S),!g.leaveSubmitMethodAlone)){var Z=u.form;K=Z.submit;try{var ue=Z.submit=function(){S(),Z.submit=K,Z.submit(),Z.submit=ue}}catch{}}g.finishInit=function(ke){ke.save=S,ke.getTextArea=function(){return u},ke.toTextArea=function(){ke.toTextArea=isNaN,S(),u.parentNode.removeChild(ke.getWrapperElement()),u.style.display="",u.form&&(it(u.form,"submit",S),!g.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=K))}},u.style.display="none";var be=qo(function(ke){return u.parentNode.insertBefore(ke,u.nextSibling)},g);return be}function ep(u){u.off=it,u.on=Qe,u.wheelEventPixels=Qu,u.Doc=Pt,u.splitLines=ar,u.countColumn=Re,u.findColumn=_n,u.isWordChar=hr,u.Pass=gt,u.signal=ut,u.Line=Ua,u.changeEnd=ga,u.scrollbarModel=Ic,u.Pos=fn,u.cmpPos=dr,u.modes=$r,u.mimeModes=_s,u.resolveMode=sa,u.getMode=Wo,u.modeExtensions=zo,u.extendMode=So,u.copyState=pi,u.startState=_l,u.innerMode=tA,u.commands=Iu,u.keyMap=Ro,u.keyName=_a,u.isModifierKey=va,u.lookupKey=qi,u.normalizeKeyMap=to,u.StringStream=Ni,u.SharedTextMarker=ct,u.TextMarker=Ze,u.LineWidget=ge,u.e_preventDefault=rn,u.e_stopPropagation=Rn,u.e_stop=mr,u.addClass=Pe,u.contains=Ke,u.rmClass=me,u.keyNames=Vr}fA(qo),Oh(qo);var mA="iter insert remove copy getEditor constructor".split(" ");for(var Rp in Pt.prototype)Pt.prototype.hasOwnProperty(Rp)&&nt(mA,Rp)<0&&(qo.prototype[Rp]=function(u){return function(){return u.apply(this.doc,arguments)}}(Pt.prototype[Rp]));return Nt(Pt),qo.inputStyles={textarea:Ta,contenteditable:Xo},qo.defineMode=function(u){!qo.defaults.mode&&u!="null"&&(qo.defaults.mode=u),fs.apply(this,arguments)},qo.defineMIME=Ja,qo.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),qo.defineMIME("text/plain","null"),qo.defineExtension=function(u,g){qo.prototype[u]=g},qo.defineDocExtension=function(u,g){Pt.prototype[u]=g},qo.fromTextArea=hm,ep(qo),qo.version="5.65.19",qo})}(Tb)),Tb.exports}var jie=Vx();const yp=dl(jie);var nT={exports:{}},rT;function Gie(){return rT||(rT=1,function(n,e){(function(t){t(Vx())})(function(t){t.defineMode("javascript",function(r,i){var s=r.indentUnit,l=i.statementIndent,o=i.jsonld,p=i.json||o,v=i.trackScope!==!1,x=i.typescript,B=i.wordCharacters||/[\w$\xa1-\uffff]/,k=function(){function Ve(Co){return{type:Co,style:"keyword"}}var xt=Ve("keyword a"),xn=Ve("keyword b"),Yn=Ve("keyword c"),fn=Ve("keyword d"),dr=Ve("operator"),Wi={type:"atom",style:"atom"};return{if:Ve("if"),while:xt,with:xt,else:xn,do:xn,try:xn,finally:xn,return:fn,break:fn,continue:fn,new:Ve("new"),delete:Yn,void:Yn,throw:Yn,debugger:Ve("debugger"),var:Ve("var"),const:Ve("var"),let:Ve("var"),function:Ve("function"),catch:Ve("catch"),for:Ve("for"),switch:Ve("switch"),case:Ve("case"),default:Ve("default"),in:dr,typeof:dr,instanceof:dr,true:Wi,false:Wi,null:Wi,undefined:Wi,NaN:Wi,Infinity:Wi,this:Ve("this"),class:Ve("class"),super:Ve("atom"),yield:Yn,export:Ve("export"),import:Ve("import"),extends:Yn,await:Yn}}(),P=/[+\-*&%=<>!?|~^@]/,D=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(Ve){for(var xt=!1,xn,Yn=!1;(xn=Ve.next())!=null;){if(!xt){if(xn=="/"&&!Yn)return;xn=="["?Yn=!0:Yn&&xn=="]"&&(Yn=!1)}xt=!xt&&xn=="\\"}}var W,V;function $(Ve,xt,xn){return W=Ve,V=xn,xt}fun
Line truncated
|
||||
${B}`),N].join(`
|
||||
${o}`)}return v}(n,"",0)}var Rv={exports:{}},Pie=Rv.exports,eT;function Kie(){return eT||(eT=1,function(n,e){(function(t,r){r(e)})(Pie,function(t){const r={isWhiteSpace:function(Se){return Se===" "||Se===" "||Se==="\uFEFF"||Se>=" "&&Se<="\r"||Se===" "||Se>=" "&&Se<=" "||Se==="\u2028"||Se==="\u2029"||Se===" "||Se===" "||Se===" "},isWhiteSpaceJSON:function(Se){return Se===" "||Se===" "||Se===`
|
||||
`||Se==="\r"},isLineTerminator:function(Se){return Se===`
|
||||
`||Se==="\r"||Se==="\u2028"||Se==="\u2029"},isLineTerminatorJSON:function(Se){return Se===`
|
||||
`||Se==="\r"},isIdentifierStart:function(Se){return Se==="$"||Se==="_"||Se>="A"&&Se<="Z"||Se>="a"&&Se<="z"||Se>=""&&r.NonAsciiIdentifierStart.test(Se)},isIdentifierPart:function(Se){return Se==="$"||Se==="_"||Se>="A"&&Se<="Z"||Se>="a"&&Se<="z"||Se>="0"&&Se<="9"||Se>=""&&r.NonAsciiIdentifierPart.test(Se)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
|
||||
`,r:"\r",t:" ",v:"\v","/":"/"},v=Object.hasOwn,x={};function B(je,Se){(typeof je!="string"||!(je instanceof String))&&(je=String(je));const Fe=Se.mode==="json5",Ze=Se.ignoreBOM,_t=Se.ignoreComments||Se.mode==="cjson"||Fe,Qt=Se.ignoreTrailingCommas||Fe,gt=Se.ignoreProtoKey,Ut=Se.ignorePrototypeKeys,Pt=Se.allowSingleQuotedStrings||Fe,ze=Se.allowDuplicateObjectKeys,Ke=Se.reviver,Oe=Se.tokenize,it=Se.rawTokens,Ct=Se.tokenLocations,dt=Se.tokenPaths,Dt=Fe?r.isLineTerminator:r.isLineTerminatorJSON,$t=Fe?r.isWhiteSpace:r.isWhiteSpaceJSON,Rt=je.length;let bn=0,Yn=0,rn=0;const er=[];let Tn,gn,Ln;if(Oe){let Be=null,rt,ut;Tn=function(){if(Be!==null)throw Error("internal error, token overlap");rt=bn+1,ut=rn-Yn+1,Be=rn},gn=function(ot,zt){if(Be!==rn){const Gt={type:ot};it&&(Gt.raw=je.substr(Be,rn-Be)),zt!==void 0&&(Gt.value=zt),Ct&&(Gt.location={start:{column:ut,line:rt,offset:Be}}),dt&&(Gt.path=Ln.slice()),er.push(Gt)}return Be=null,zt},dt&&(Ln=[])}function br(){let Be;return rn<Rt?Be=`Unexpected token ${JSON.stringify(je[rn])}`:Be="Unexpected end of input",Be}function mr(Be){const rt=rn-Yn+1;++bn;const ut=Ee(Be,je,rn,bn,rt),ot=SyntaxError(ut.message);return ot.reason=Be,ot.excerpt=ut.excerpt,ot.pointer=ut.pointer,ot.location={start:{column:rt,line:bn,offset:rn}},ot}function tr(Be){throw Be||(Be=br()),mr(Be)}function Ye(Be){Be==="\r"&&je[rn]===`
|
||||
`&&++rn,Yn=rn,++bn}function ce(){if(rn<Rt){Tn==null||Tn();const Be=je[rn++];if(Be==='"'||Be==="'"&&Pt){const rt=p(Be);return gn==null||gn("literal",rt),rt}if(Be==="{")return gn==null||gn("symbol","{"),$n();if(Be==="[")return gn==null||gn("symbol","["),Xe();if(Be==="-"||Be==="."||l(Be)||Fe&&(Be==="+"||Be==="I"||Be==="N")){const rt=ae();return gn==null||gn("literal",rt),rt}if(Be==="n")return Jt("null"),gn==null||gn("literal",null),null;if(Be==="t")return Jt("true"),gn==null||gn("literal",!0),!0;if(Be==="f")return Jt("false"),gn==null||gn("literal",!1),!1;--rn,gn==null||gn();return}}function pe(){let Be;if(rn<Rt){Tn==null||Tn();const rt=je[rn++];if(rt==='"'||rt==="'"&&Pt){const ut=p(rt);return gn==null||gn("literal",ut),ut}if(rt==="{")return gn==null||gn("symbol","{"),$n();if(rt==="[")return gn==null||gn("symbol","["),Xe();if(rt==="."||l(rt)){const ut=ae();return gn==null||gn("literal",ut),ut}if(Fe&&r.isIdentifierStart(rt)||rt==="\\"&&je[rn]==="u"){const ut=rn-1;if(Be=ve(),Be===void 0){rn=ut,gn==null||gn();return}return gn==null||gn("literal",Be),Be}--rn,gn==null||gn();return}}function nt(){o(je)&&(Tn==null||Tn(),++rn,gn==null||gn("bom"))}function wt(){let Be;function rt(){Be||(Be=!0,--rn,Tn(),++rn)}function ut(){Be&&(Be=!1,gn("whitespace"))}for(;rn<Rt;){const ot=je[rn++];if(Dt(ot))Tn&&rt(),Ye(ot);else if($t(ot))Tn&&rt();else if(ot==="/"&&_t&&(je[rn]==="/"||je[rn]==="*"))Tn&&(--rn,ut(),Tn(),++rn),qt(je[rn++]==="*"),gn==null||gn("comment");else{--rn;break}}gn&&ut()}function qt(Be){for(;rn<Rt;){const rt=je[rn++];if(Dt(rt)){if(!Be){--rn;return}Ye(rt)}else if(rt==="*"&&Be&&je[rn]==="/"){++rn;return}}Be&&tr("Unclosed multiline comment")}function Jt(Be){const rt=rn;for(let ut=1,ot=Be.length;ut<ot;++ut)(rn>=Rt||Be[ut]!==je[rn])&&(rn=rt-1,tr()),++rn}function $n(){let Be={},rt=!1;for(;rn<Rt;){wt();const ut=pe();ze===!1&&v(Be,ut)&&tr(`Duplicate key: "${ut}"`),wt(),Tn==null||Tn();let ot=je[rn++];if(gn==null||gn("symbol",ot),ot==="}"&&ut===void 0)return!Qt&&rt&&(--rn,tr("Trailing comma in object")),Be;if(ot===":"&&ut!==void 0){wt(),Ln==null||Ln.push(ut);let zt=ce();if(Ln==null||Ln.pop(),zt===void 0&&tr(`No value found for key "${ut}"`),typeof ut!="string"&&(!Fe||typeof ut!="number")&&tr(`Wrong key type: "${ut}"`),Ut&&(ut in x||x[ut]!=null)||gt&&ut==="__proto__"||(Ke&&(zt=Ke(ut,zt)),zt!==void 0&&(rt=!0,ut==="__proto__"?Be=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(zt)}}`),Be):Be[ut]=zt)),wt(),Tn==null||Tn(),ot=je[rn++],gn==null||gn("symbol",ot),ot!==","){if(ot==="}")return Be;tr()}}else--rn,tr()}tr()}function Xe(){const Be=[];for(;rn<Rt;){wt(),Ln==null||Ln.push(Be.length);let rt=ce();Ln==null||Ln.pop(),wt(),Tn==null||Tn();const ut=je[rn++];if(gn==null||gn("symbol",ut),rt!==void 0&&(Ke&&(rt=Ke(String(Be.length),rt)),rt===void 0?(++Be.length,rt=!0):Be.push(rt)),ut===",")rt===void 0&&tr("Elisions are not supported");else{if(ut==="]")return!Qt&&rt===void 0&&Be.length&&(--rn,tr("Trailing comma in array")),Be;--rn,tr()}}}function ae(){--rn;let Be=rn,rt=je[rn++];const ut=function(ot){const zt=je.substr(Be,rn-Be);let Gt;if(ot?Gt=Number.parseInt(zt.replace(/^0o?/,""),8):Gt=Number(zt),Number.isNaN(Gt))--rn,tr(`Bad numeric literal - "${je.substr(Be,rn-Be+1)}"`);else if(!Fe&&!zt.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--rn,tr(`Non-json numeric literal - "${je.substr(Be,rn-Be+1)}"`);else return Gt};if((rt==="-"||rt==="+"&&Fe)&&(rt=je[rn++]),rt==="N"&&Fe)return Jt("NaN"),Number.NaN;if(rt==="I"&&Fe)return Jt("Infinity"),ut();if(rt>="1"&&rt<="9"){for(;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}if(rt==="0"){rt=je[rn++];const ot=rt==="o"||rt==="O"||s(rt),zt=rt==="x"||rt==="X";if(Fe&&(ot||zt)){for(;rn<Rt&&(zt?i:s)(je[rn]);)++rn;let Gt=1;return je[Be]==="-"?(Gt=-1,++Be):je[Be]==="+"&&++Be,Gt*ut(ot)}}if(rt==="."){for(;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}if(rt==="e"||rt==="E"){for(rt=je[rn++],(rt==="-"||rt==="+")&&++rn;rn<Rt&&l(je[rn]);)++rn;rt=je[rn++]}return--rn,ut()}function ve(){--rn;let Be="";for(;rn<Rt;){let rt=je[rn++];if(rt==="\\"&&je[rn]==="u"&&i(je[rn+1])&&i(je[rn+2])&&i(je[rn+3])&&i(je[rn+4])&&(rt=String.fromCharCode(Number.parseInt(je.substr(rn+1,4),16)),rn+=5),Be.length)if(r.isIdentifierPart(rt))Be+=rt;else return--rn,Be;else if(r.isIdentifierStart(rt))Be+=rt;else return}tr()}function p(Be){let rt="";for(;rn<Rt;){let ut=je[rn++];if(ut===Be)return rt;if(ut==="\\")if(rn>=Rt&&tr(),ut=je[rn++],f[ut]&&(Fe||ut!=="v"&&(ut!=="'"||Pt)))rt+=f[ut];else if(Fe&&Dt(ut))Ye(ut);else if(ut==="u"||ut==="x"&&Fe){const ot=ut==="u"?4:2;for(let zt=0;zt<ot;++zt)rn>=Rt&&tr(),i(je[rn])||tr("Bad escape sequence"),rn++;rt+=String.fromCharCode(Number.parseInt(je.substr(rn-ot,ot),16))}else if(Fe&&s(ut)){let ot;ut<"4"&&s(je[rn])&&s(je[rn+1])?ot=3:s(je[rn])?ot=2:ot=1,rn+=ot-1,rt+=String.fromCharCode(Number.parseInt(je.substr(rn-ot,ot),8))}else Fe?rt+=ut:(--rn,tr());else Dt(ut)?tr():(!Fe&&ut.charCodeAt(0)<32&&(--rn,tr("Unexpected control character")),rt+=ut)}tr()}Ze&&nt(),wt();let We=ce();if(We!==void 0||rn<Rt){if(wt(),rn>=Rt)return Ke&&(We=K
Line truncated
|
||||
${gt}
|
||||
${Pt}
|
||||
${o}`)}return v}(n,"",0)}var Lv={exports:{}},Vie=Lv.exports,lT;function Hie(){return lT||(lT=1,function(n,e){(function(t,r){r(e)})(Vie,function(t){const r={isWhiteSpace:function(Pe){return Pe===" "||Pe===" "||Pe==="\uFEFF"||Pe>=" "&&Pe<="\r"||Pe===" "||Pe>=" "&&Pe<=" "||Pe==="\u2028"||Pe==="\u2029"||Pe===" "||Pe===" "||Pe===" "},isWhiteSpaceJSON:function(Pe){return Pe===" "||Pe===" "||Pe===`
|
||||
`||Pe==="\r"},isLineTerminator:function(Pe){return Pe===`
|
||||
`||Pe==="\r"||Pe==="\u2028"||Pe==="\u2029"},isLineTerminatorJSON:function(Pe){return Pe===`
|
||||
`||Pe==="\r"},isIdentifierStart:function(Pe){return Pe==="$"||Pe==="_"||Pe>="A"&&Pe<="Z"||Pe>="a"&&Pe<="z"||Pe>=""&&r.NonAsciiIdentifierStart.test(Pe)},isIdentifierPart:function(Pe){return Pe==="$"||Pe==="_"||Pe>="A"&&Pe<="Z"||Pe>="a"&&Pe<="z"||Pe>="0"&&Pe<="9"||Pe>=""&&r.NonAsciiIdentifierPart.test(Pe)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
|
||||
`,r:"\r",t:" ",v:"\v","/":"/"},v=Object.hasOwn,x={};function B(je,Pe){(typeof je!="string"||!(je instanceof String))&&(je=String(je));const Le=Pe.mode==="json5",Xe=Pe.ignoreBOM,Ct=Pe.ignoreComments||Pe.mode==="cjson"||Le,Gt=Pe.ignoreTrailingCommas||Le,mt=Pe.ignoreProtoKey,Ut=Pe.ignorePrototypeKeys,kt=Pe.allowSingleQuotedStrings||Le,Te=Pe.allowDuplicateObjectKeys,Re=Pe.reviver,Ue=Pe.tokenize,nt=Pe.rawTokens,_t=Pe.tokenLocations,gt=Pe.tokenPaths,Kt=Le?r.isLineTerminator:r.isLineTerminatorJSON,$t=Le?r.isWhiteSpace:r.isWhiteSpaceJSON,Rt=je.length;let _n=0,pr=0,nn=0;const Xn=[];let Fn,an,Bn;if(Ue){let Ee=null,it,ut;Fn=function(){if(Ee!==null)throw Error("internal error, token overlap");it=_n+1,ut=nn-pr+1,Ee=nn},an=function(at,zt){if(Ee!==nn){const Qt={type:at};nt&&(Qt.raw=je.substr(Ee,nn-Ee)),zt!==void 0&&(Qt.value=zt),_t&&(Qt.location={start:{column:ut,line:it,offset:Ee}}),gt&&(Qt.path=Bn.slice()),Xn.push(Qt)}return Ee=null,zt},gt&&(Bn=[])}function Cr(){let Ee;return nn<Rt?Ee=`Unexpected token ${JSON.stringify(je[nn])}`:Ee="Unexpected end of input",Ee}function lr(Ee){const it=nn-pr+1;++_n;const ut=Me(Ee,je,nn,_n,it),at=SyntaxError(ut.message);return at.reason=Ee,at.excerpt=ut.excerpt,at.pointer=ut.pointer,at.location={start:{column:it,line:_n,offset:nn}},at}function hr(Ee){throw Ee||(Ee=Cr()),lr(Ee)}function We(Ee){Ee==="\r"&&je[nn]===`
|
||||
`&&++nn,pr=nn,++_n}function ce(){if(nn<Rt){Fn==null||Fn();const Ee=je[nn++];if(Ee==='"'||Ee==="'"&&kt){const it=f(Ee);return an==null||an("literal",it),it}if(Ee==="{")return an==null||an("symbol","{"),Jn();if(Ee==="[")return an==null||an("symbol","["),He();if(Ee==="-"||Ee==="."||l(Ee)||Le&&(Ee==="+"||Ee==="I"||Ee==="N")){const it=ae();return an==null||an("literal",it),it}if(Ee==="n")return Zt("null"),an==null||an("literal",null),null;if(Ee==="t")return Zt("true"),an==null||an("literal",!0),!0;if(Ee==="f")return Zt("false"),an==null||an("literal",!1),!1;--nn,an==null||an();return}}function ye(){let Ee;if(nn<Rt){Fn==null||Fn();const it=je[nn++];if(it==='"'||it==="'"&&kt){const ut=f(it);return an==null||an("literal",ut),ut}if(it==="{")return an==null||an("symbol","{"),Jn();if(it==="[")return an==null||an("symbol","["),He();if(it==="."||l(it)){const ut=ae();return an==null||an("literal",ut),ut}if(Le&&r.isIdentifierStart(it)||it==="\\"&&je[nn]==="u"){const ut=nn-1;if(Ee=_e(),Ee===void 0){nn=ut,an==null||an();return}return an==null||an("literal",Ee),Ee}--nn,an==null||an();return}}function rt(){o(je)&&(Fn==null||Fn(),++nn,an==null||an("bom"))}function Et(){let Ee;function it(){Ee||(Ee=!0,--nn,Fn(),++nn)}function ut(){Ee&&(Ee=!1,an("whitespace"))}for(;nn<Rt;){const at=je[nn++];if(Kt(at))Fn&&it(),We(at);else if($t(at))Fn&&it();else if(at==="/"&&Ct&&(je[nn]==="/"||je[nn]==="*"))Fn&&(--nn,ut(),Fn(),++nn),Ht(je[nn++]==="*"),an==null||an("comment");else{--nn;break}}an&&ut()}function Ht(Ee){for(;nn<Rt;){const it=je[nn++];if(Kt(it)){if(!Ee){--nn;return}We(it)}else if(it==="*"&&Ee&&je[nn]==="/"){++nn;return}}Ee&&hr("Unclosed multiline comment")}function Zt(Ee){const it=nn;for(let ut=1,at=Ee.length;ut<at;++ut)(nn>=Rt||Ee[ut]!==je[nn])&&(nn=it-1,hr()),++nn}function Jn(){let Ee={},it=!1;for(;nn<Rt;){Et();const ut=ye();Te===!1&&v(Ee,ut)&&hr(`Duplicate key: "${ut}"`),Et(),Fn==null||Fn();let at=je[nn++];if(an==null||an("symbol",at),at==="}"&&ut===void 0)return!Gt&&it&&(--nn,hr("Trailing comma in object")),Ee;if(at===":"&&ut!==void 0){Et(),Bn==null||Bn.push(ut);let zt=ce();if(Bn==null||Bn.pop(),zt===void 0&&hr(`No value found for key "${ut}"`),typeof ut!="string"&&(!Le||typeof ut!="number")&&hr(`Wrong key type: "${ut}"`),Ut&&(ut in x||x[ut]!=null)||mt&&ut==="__proto__"||(Re&&(zt=Re(ut,zt)),zt!==void 0&&(it=!0,ut==="__proto__"?Ee=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(zt)}}`),Ee):Ee[ut]=zt)),Et(),Fn==null||Fn(),at=je[nn++],an==null||an("symbol",at),at!==","){if(at==="}")return Ee;hr()}}else--nn,hr()}hr()}function He(){const Ee=[];for(;nn<Rt;){Et(),Bn==null||Bn.push(Ee.length);let it=ce();Bn==null||Bn.pop(),Et(),Fn==null||Fn();const ut=je[nn++];if(an==null||an("symbol",ut),it!==void 0&&(Re&&(it=Re(String(Ee.length),it)),it===void 0?(++Ee.length,it=!0):Ee.push(it)),ut===",")it===void 0&&hr("Elisions are not supported");else{if(ut==="]")return!Gt&&it===void 0&&Ee.length&&(--nn,hr("Trailing comma in array")),Ee;--nn,hr()}}}function ae(){--nn;let Ee=nn,it=je[nn++];const ut=function(at){const zt=je.substr(Ee,nn-Ee);let Qt;if(at?Qt=Number.parseInt(zt.replace(/^0o?/,""),8):Qt=Number(zt),Number.isNaN(Qt))--nn,hr(`Bad numeric literal - "${je.substr(Ee,nn-Ee+1)}"`);else if(!Le&&!zt.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--nn,hr(`Non-json numeric literal - "${je.substr(Ee,nn-Ee+1)}"`);else return Qt};if((it==="-"||it==="+"&&Le)&&(it=je[nn++]),it==="N"&&Le)return Zt("NaN"),Number.NaN;if(it==="I"&&Le)return Zt("Infinity"),ut();if(it>="1"&&it<="9"){for(;nn<Rt&&l(je[nn]);)++nn;it=je[nn++]}if(it==="0"){it=je[nn++];const at=it==="o"||it==="O"||s(it),zt=it==="x"||it==="X";if(Le&&(at||zt)){for(;nn<Rt&&(zt?i:s)(je[nn]);)++nn;let Qt=1;return je[Ee]==="-"?(Qt=-1,++Ee):je[Ee]==="+"&&++Ee,Qt*ut(at)}}if(it==="."){for(;nn<Rt&&l(je[nn]);)++nn;it=je[nn++]}if(it==="e"||it==="E"){for(it=je[nn++],(it==="-"||it==="+")&&++nn;nn<Rt&&l(je[nn]);)++nn;it=je[nn++]}return--nn,ut()}function _e(){--nn;let Ee="";for(;nn<Rt;){let it=je[nn++];if(it==="\\"&&je[nn]==="u"&&i(je[nn+1])&&i(je[nn+2])&&i(je[nn+3])&&i(je[nn+4])&&(it=String.fromCharCode(Number.parseInt(je.substr(nn+1,4),16)),nn+=5),Ee.length)if(r.isIdentifierPart(it))Ee+=it;else return--nn,Ee;else if(r.isIdentifierStart(it))Ee+=it;else return}hr()}function f(Ee){let it="";for(;nn<Rt;){let ut=je[nn++];if(ut===Ee)return it;if(ut==="\\")if(nn>=Rt&&hr(),ut=je[nn++],p[ut]&&(Le||ut!=="v"&&(ut!=="'"||kt)))it+=p[ut];else if(Le&&Kt(ut))We(ut);else if(ut==="u"||ut==="x"&&Le){const at=ut==="u"?4:2;for(let zt=0;zt<at;++zt)nn>=Rt&&hr(),i(je[nn])||hr("Bad escape sequence"),nn++;it+=String.fromCharCode(Number.parseInt(je.substr(nn-at,at),16))}else if(Le&&s(ut)){let at;ut<"4"&&s(je[nn])&&s(je[nn+1])?at=3:s(je[nn])?at=2:at=1,nn+=at-1,it+=String.fromCharCode(Number.parseInt(je.substr(nn-at,at),8))}else Le?it+=ut:(--nn,hr());else Kt(ut)?hr():(!Le&&ut.charCodeAt(0)<32&&(--nn,hr("Unexpected control character")),it+=ut)}hr()}Xe&&rt(),Et();let Qe=ce();if(Qe!==void 0||nn<Rt){if(Et(),nn>=Rt)return Re&&(Qe=R
Line truncated
|
||||
${mt}
|
||||
${kt}
|
||||
${je}`):Ut=`Parse error in JSON input:
|
||||
${gt}
|
||||
${je}`,{message:Ut,excerpt:gt,pointer:Pt}}function me(je,Se){let Fe=G(Se);const Ze=ie(je,Fe)||de(je,Fe)||fe(je,Fe);let _t,Qt,gt;Ze?(_t=Ze.offset,Qt=Ze.line,gt=Ze.column,Fe=Ze.reason):_t=0,Se.reason=Fe;const Ut=Ee(Fe,je,_t,Qt,gt);return Se.message=Ut.message,Se.excerpt=Ut.excerpt,Ut.pointer&&(Se.pointer=Ut.pointer,Se.location={start:{column:gt,line:Qt,offset:_t}}),Se}function Me(je,Se){try{return JSON.parse(je,Se)}catch(Fe){const Ze=me(je,Fe);if(Fe.location)throw Ze;return k(je,Se)}}const Le=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function pt(je){return je.ignoreBOM||je.ignoreComments||je.ignoreTrailingCommas||je.allowSingleQuotedStrings||je.allowDuplicateObjectKeys===!1||je.ignoreProtoKey||je.ignorePrototypeKeys||je.mode==="cjson"||je.mode==="json5"||Le||xe}function Je(je){if(typeof je=="function")return je;if(je)return je.reviver}function Ve(je,Se){return Se||(Se={}),pt(Se)?k(je,Se):Me(je,Je(Se))}t.parse=Ve,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=V,t.parseNative=Me,t.parseCustom=k,t.getErrorTexts=Ee,Object.defineProperty(t,"__esModule",{value:!0})})}(Rv,Rv.exports)),Rv.exports}var Rie=Kie(),Bb={exports:{}},Die=Bb.exports,tT;function Fie(){return tT||(tT=1,function(n,e){(function(t,r){n.exports=r()})(Die,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Ke,Oe){return Oe={exports:{}},Ke(Oe,Oe.exports),Oe.exports}var i=r(function(Ke){function Oe(){var it=0,Ct=1,dt=2,Dt=3,$t=4,Rt=5,bn=6,Yn=7,rn=8,er=9,Tn=10,gn=11,Ln=12,br=13,mr=14,tr=15,Ye=16,ce=17,pe=0,nt=1,wt=2,qt=3,Jt=4;function $n(p,We){return 55296<=p.charCodeAt(We)&&p.charCodeAt(We)<=56319&&56320<=p.charCodeAt(We+1)&&p.charCodeAt(We+1)<=57343}function Xe(p,We){We===void 0&&(We=0);var Be=p.charCodeAt(We);if(55296<=Be&&Be<=56319&&We<p.length-1){var rt=Be,ut=p.charCodeAt(We+1);return 56320<=ut&&ut<=57343?(rt-55296)*1024+(ut-56320)+65536:rt}if(56320<=Be&&Be<=57343&&We>=1){var rt=p.charCodeAt(We-1),ut=Be;return 55296<=rt&&rt<=56319?(rt-55296)*1024+(ut-56320)+65536:ut}return Be}function ae(p,We,Be){var rt=[p].concat(We).concat([Be]),ut=rt[rt.length-2],ot=Be,zt=rt.lastIndexOf(mr);if(zt>1&&rt.slice(1,zt).every(function(nn){return nn==Dt})&&[Dt,br,ce].indexOf(p)==-1)return wt;var Gt=rt.lastIndexOf($t);if(Gt>0&&rt.slice(1,Gt).every(function(nn){return nn==$t})&&[Ln,$t].indexOf(ut)==-1)return rt.filter(function(nn){return nn==$t}).length%2==1?qt:Jt;if(ut==it&&ot==Ct)return pe;if(ut==dt||ut==it||ut==Ct)return ot==mr&&We.every(function(nn){return nn==Dt})?wt:nt;if(ot==dt||ot==it||ot==Ct)return nt;if(ut==bn&&(ot==bn||ot==Yn||ot==er||ot==Tn))return pe;if((ut==er||ut==Yn)&&(ot==Yn||ot==rn))return pe;if((ut==Tn||ut==rn)&&ot==rn)return pe;if(ot==Dt||ot==tr)return pe;if(ot==Rt)return pe;if(ut==Ln)return pe;var Nt=rt.indexOf(Dt)!=-1?rt.lastIndexOf(Dt)-1:rt.length-2;return[br,ce].indexOf(rt[Nt])!=-1&&rt.slice(Nt+1,-1).every(function(nn){return nn==Dt})&&ot==mr||ut==tr&&[Ye,ce].indexOf(ot)!=-1?pe:We.indexOf($t)!=-1?wt:ut==$t&&ot==$t?pe:nt}this.nextBreak=function(p,We){if(We===void 0&&(We=0),We<0)return 0;if(We>=p.length-1)return p.length;for(var Be=ve(Xe(p,We)),rt=[],ut=We+1;ut<p.length;ut++)if(!$n(p,ut-1)){var ot=ve(Xe(p,ut));if(ae(Be,rt,ot))return ut;rt.push(ot)}return p.length},this.splitGraphemes=function(p){for(var We=[],Be=0,rt;(rt=this.nextBreak(p,Be))<p.length;)We.push(p.slice(Be,rt)),Be=rt;return Be<p.length&&We.push(p.slice(Be)),We},this.iterateGraphemes=function(p){var We=0,Be={next:(function(){var rt,ut;return(ut=this.nextBreak(p,We))<p.length?(rt=p.slice(We,ut),We=ut,{value:rt,done:!1}):We<p.length?(rt=p.slice(We),We=p.length,{value:rt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Be[Symbol.iterator]=function(){return Be}),Be},this.countGraphemes=function(p){for(var We=0,Be=0,rt;(rt=this.nextBreak(p,Be))<p.length;)Be=rt,We++;return Be<p.length&&We++,We};function ve(p){return 1536<=p&&p<=1541||p==1757||p==1807||p==2274||p==3406||p==69821||70082<=p&&p<=70083||p==72250||72326<=p&&p<=72329||p==73030?Ln:p==13?it:p==10?Ct:0<=p&&p<=9||11<=p&&p<=12||14<=p&&p<=31||127<=p&&p<=159||p==173||p==1564||p==6158||p==8203||8206<=p&&p<=8207||p==8232||p==8233||8234<=p&&p<=8238||8288<=p&&p<=8292||p==8293||8294<=p&&p<=8303||55296<=p&&p<=57343||p==65279||65520<=p&&p<=65528||65529<=p&&p<=65531||113824<=p&&p<=113827||119155<=p&&p<=119162||p==917504||p==917505||917506<=p&&p<=917535||917632<=p&&p<=917759||918e3<=p&&p<=921599?dt:768<=p&&p<=879||1155<=p&&p<=1159||1160<=p&&p<=1161||1425<=p&&p<=1469||p==1471||1473<=p&&p<=1474||1476<=p&&p<=1477||p==1479||1552<=p&&p<=1562||1611<=p&&p<=1631||p==1648||1750<=p&&p<=1756||1759<=p&&p<=1764||1767<=p&&p<=1768||1770<=p&&p<=1773||p==1809||1840<=p&&p<=1866||1958<=p&&p<=1968||2027<=p&&p<=2035||2070<=p&&p<=2073||2075<=p&&p<=2083||2085<=p&&p<=2087||2089<=p&&p<=2093||2137<=p&&p<=2139||2260<=p&&p<=2273||2275<=p&&p<=2306||p==2362||p==2364||2369<=p&&p<=
Line truncated
|
||||
`)}var rn={extraLines:2,tabSize:4},er=function(gn,Ln,br,mr){mr=Rt({},rn,mr);var tr=gn.split(/\r\n?|\n|\f/),Ye=Math.max(1,Ln-mr.extraLines)-1,ce=Math.min(Ln+mr.extraLines,tr.length),pe=String(ce).length,nt=Yn(tr,Ye,Ln,pe,mr),wt=bn(tr[Ln-1].substring(0,br-1),Ln,pe,mr),qt=dt(" ",wt.length)+"^",Jt=Yn(tr,Ln,ce,pe,mr);return[nt,qt,Jt].filter(Boolean).join(`
|
||||
`)};return er})}),v=new Error().stack,x=function(Ke){var Oe=Object.create(SyntaxError.prototype);return Object.assign(Oe,Ke,{name:"SyntaxError"}),Object.defineProperty(Oe,"stack",{get:function(){return v?v.replace(/^(.+\n){1,3}/,String(Oe)+`
|
||||
`):""}}),Oe},B=function(Ke,Oe,it,Ct,dt){throw x({message:Ct?Ke+`
|
||||
`+f(Oe,Ct,dt):Ke,rawMessage:Ke,source:it,line:Ct,column:dt})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Oe){for(var it=arguments.length,Ct=Array(it>1?it-1:0),dt=1;dt<it;dt++)Ct[dt-1]=arguments[dt];return"Unexpected token <"+Oe+"> at "+Ct.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Oe){for(var it=arguments.length,Ct=Array(it>1?it-1:0),dt=1;dt<it;dt++)Ct[dt-1]=arguments[dt];return"Unexpected symbol <"+Oe+"> at "+Ct.filter(Boolean).join(":")}},U={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},N={"{":U.LEFT_BRACE,"}":U.RIGHT_BRACE,"[":U.LEFT_BRACKET,"]":U.RIGHT_BRACKET,":":U.COLON,",":U.COMMA},W={true:U.TRUE,false:U.FALSE,null:U.NULL},V={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},oe={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function te(Ke){return Ke>="1"&&Ke<="9"}function q(Ke){return Ke>="0"&&Ke<="9"}function ne(Ke){return q(Ke)||Ke>="a"&&Ke<="f"||Ke>="A"&&Ke<="F"}function G(Ke){return Ke==="e"||Ke==="E"}function ie(Ke,Oe,it,Ct){var dt=Ke.charAt(Oe);if(dt==="\r")Oe++,it++,Ct=1,Ke.charAt(Oe)===`
|
||||
`&&Oe++;else if(dt===`
|
||||
`)Oe++,it++,Ct=1;else if(dt===" "||dt===" ")Oe++,Ct++;else return null;return{index:Oe,line:it,column:Ct}}function de(Ke,Oe,it,Ct){var dt=Ke.charAt(Oe);return dt in N?{type:N[dt],line:it,column:Ct+1,index:Oe+1,value:null}:null}function fe(Ke,Oe,it,Ct){for(var dt in W)if(W.hasOwnProperty(dt)&&Ke.substr(Oe,dt.length)===dt)return{type:W[dt],line:it,column:Ct+dt.length,index:Oe+dt.length,value:dt};return null}function Ee(Ke,Oe,it,Ct){for(var dt=Oe,Dt=V._START_;Oe<Ke.length;){var $t=Ke.charAt(Oe);switch(Dt){case V._START_:{if($t==='"')Oe++,Dt=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if($t==="\\")Oe++,Dt=V.ESCAPE;else{if($t==='"')return Oe++,{type:U.STRING,line:it,column:Ct+Oe-dt,index:Oe,value:Ke.slice(dt,Oe)};Oe++}break}case V.ESCAPE:{if($t in $){if(Oe++,$t==="u")for(var Rt=0;Rt<4;Rt++){var bn=Ke.charAt(Oe);if(bn&&ne(bn))Oe++;else return null}Dt=V.START_QUOTE_OR_CHAR}else return null;break}}}}function me(Ke,Oe,it,Ct){var dt=Oe,Dt=Oe,$t=oe._START_;e:for(;Oe<Ke.length;){var Rt=Ke.charAt(Oe);switch($t){case oe._START_:{if(Rt==="-")$t=oe.MINUS;else if(Rt==="0")Dt=Oe+1,$t=oe.ZERO;else if(te(Rt))Dt=Oe+1,$t=oe.DIGIT;else return null;break}case oe.MINUS:{if(Rt==="0")Dt=Oe+1,$t=oe.ZERO;else if(te(Rt))Dt=Oe+1,$t=oe.DIGIT;else return null;break}case oe.ZERO:{if(Rt===".")$t=oe.POINT;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.DIGIT:{if(q(Rt))Dt=Oe+1;else if(Rt===".")$t=oe.POINT;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.POINT:{if(q(Rt))Dt=Oe+1,$t=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if(q(Rt))Dt=Oe+1;else if(G(Rt))$t=oe.EXP;else break e;break}case oe.EXP:{if(Rt==="+"||Rt==="-")$t=oe.EXP_DIGIT_OR_SIGN;else if(q(Rt))Dt=Oe+1,$t=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if(q(Rt))Dt=Oe+1;else break e;break}}Oe++}return Dt>0?{type:U.NUMBER,line:it,column:Ct+Dt-dt,index:Dt,value:Ke.slice(dt,Dt)}:null}var Me=function(Oe,it){for(var Ct=1,dt=1,Dt=0,$t=[];Dt<Oe.length;){var Rt=[Oe,Dt,Ct,dt],bn=ie.apply(void 0,Rt);if(bn){Dt=bn.index,Ct=bn.line,dt=bn.column;continue}var Yn=de.apply(void 0,Rt)||fe.apply(void 0,Rt)||Ee.apply(void 0,Rt)||me.apply(void 0,Rt);if(Yn){var rn={type:Yn.type,value:Yn.value,loc:o(Ct,dt,Dt,Yn.line,Yn.column,Yn.index,it.source)};$t.push(rn),Dt=Yn.index,Ct=Yn.line,dt=Yn.column}else B(P.unexpectedSymbol(l(Oe,Dt,Dt+1),it.source,Ct,dt),Oe,it.source,Ct,dt)}return $t},Le={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},pt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Je={loc:!0,source:null};function Ve(Ke,Oe,it){var Ct=Oe.length>0?Oe[Oe.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),Ke,it.source,Ct.line,Ct.column)}function je(Ke){for(var Oe=0,it=0;it<4;it++)Oe=Oe*16+parseInt(Ke[it],16);return String.fromCharCode(Oe)}var Se={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Fe=['"',"\\","/"];function Ze(Ke){for(var Oe="",it=0;it<Ke.length;it++){var Ct=Ke.charAt(it);if(Ct==="\\"){it++;var dt=Ke.charAt(it);if(dt==="u")Oe+=je(Ke.substr(it+1,4)),it+=4;else if(Fe.indexOf(dt)!==-1)Oe+=dt;else if(dt in Se)Oe+=Se[dt];else break}else Oe+=Ct}return Oe}function _t(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Object",children:[]},$t=Le._START_;it<Oe.length;){var Rt=Oe[it];switch($t){case Le._START_:{if(Rt.type===U.LEFT_BRACE)dt=Rt,$t=Le.OPEN_OBJECT,it++;else return null;break}case Le.OPEN_OBJECT:{if(Rt.type===U.RIGHT_BRACE)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};var bn=Qt(Ke,Oe,it,Ct);Dt.children.push(bn.value),$t=Le.PROPERTY,it=bn.index;break}case Le.PROPERTY:{if(Rt.type===U.RIGHT_BRACE)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};Rt.type===U.COMMA?($t=Le.COMMA,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case Le.COMMA:{var Yn=Qt(Ke,Oe,it,Ct);Yn?(it=Yn.index,Dt.children.push(Yn.value),$t=Le.PROPERTY):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}}}Ve(Ke,Oe,Ct)}function Qt(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Property",key:null,value:null},$t=xe._START_;it<Oe.length;){var Rt=Oe[it];switch($t){case xe._START_:{if(Rt.type===U.STRING){var bn={type:"Identifier",value:Ze(Ke.slice(Rt.loc.start.offset+1,Rt.loc.end.offset-1)),raw:Rt.value};Ct.loc&&(bn.loc=Rt.loc),dt=Rt,Dt.key=bn,$t=xe.KEY,it++}else return null;break}case xe.KEY:{Rt.type===U.COLON?($t=xe.COLON,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case xe.COLON:{var Yn=Pt(Ke,Oe,it,Ct);return Dt.value=Yn.value,Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Yn.value.loc.end.line,Yn.value.loc.end.column,Yn.value.loc.end.offset,Ct.source)),{value:Dt,index:Yn.index}}}}}function gt(Ke,Oe,it,Ct){for(var dt=void 0,Dt={type:"Array",children:[]},$t=pt._START_,Rt=void 0;it<Oe.length;)switch(Rt=Oe[it],$t){case pt._START_:{if(Rt.type===U.LEFT_BRACKET)dt=Rt,$t=pt.OPEN_ARRAY,it++;else return null;break}case pt.OPEN_ARRAY:{if(Rt.type===U.RIGHT_BRACKET)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};var bn=Pt(Ke,Oe,it,Ct);it=bn.index,Dt.children.push(bn.value),$t=pt.VALUE;break}case pt.VALUE:{if(Rt.type===U.RIGHT_BRACKET)return Ct.loc&&(Dt.loc=o(dt.loc.start.line,dt.loc.start.column,dt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,Ct.source)),{value:Dt,index:it+1};Rt.type===U.COMMA?($t=pt.COMMA,it++):B(k.unexpectedToken(l(Ke,Rt.loc.start.offset,Rt.loc.end.offset),Ct.source,Rt.loc.start.line,Rt.loc.start.column),Ke,Ct.source,Rt.loc.start.line,Rt.loc.start.column);break}case pt.COMMA:{var Yn=Pt(Ke,Oe,it,Ct);it=Yn.index,Dt.children.push(Yn.value),$t=pt.VALUE;break}}Ve(Ke,Oe,Ct)}function Ut(Ke,Oe,it,Ct){var dt=Oe[it],Dt=null;switch(dt.type){case U.STRING:{Dt=Ze(Ke.slice(dt.loc.start.offset+1,dt.loc.end.offset-1));break}case U.NUMBER:{Dt=Number(dt.value);break}case U.TRUE:{Dt=!0;break}case U.FALSE:{Dt=!1;break}case U.NULL:{Dt=null;break}default:return null}var $t={type:"Literal",value:Dt,raw:dt.value};return Ct.loc&&($t.loc=dt.loc),{value:$t,index:it+1}}function Pt(Ke,Oe,it,Ct){var dt=Oe[it],Dt=Ut.apply(void 0,arguments)||_t.apply(void 0,arguments)||gt.apply(void 0,arguments);if(Dt)return Dt;B(k.unexpectedToken(l(Ke,dt.loc.start.offset,dt.loc.end.offset),Ct.source,dt.loc.start.line,dt.loc.start.column),Ke,Ct.source,dt.loc.start.line,dt.loc.start.column)}var ze=function(Ke,Oe){Oe=Object.assign({},Je,Oe);var it=Me(Ke,Oe);it.length===0&&Ve(Ke,it,Oe);var Ct=Pt(Ke,it,0,Oe);if(Ct.index===it.length)return Ct.value;var dt=it[Ct.index];B(k.unexpectedToken(l(Ke,dt.loc.start.offset,dt.loc.end.offset),Oe.source,dt.loc.start.line,dt.loc.start.column),Ke,Oe.source,dt.loc.start.line,dt.loc.start.column)};return ze})}(Bb)),Bb.exports}var Lie=Fie();const Uie=hl(Lie);function hr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
|
||||
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:te.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+te.r+","+te.g+","+te.b+`, 0) 0%,
|
||||
rgba(`+te.r+","+te.g+","+te.b+", 1) 100%)"},pointer:{left:0,top:te.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:q.alpha},r.default.createElement("div",{style:q.checkboard},r.default.createElement(v.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:q.gradient}),r.default.createElement("div",{style:q.container,ref:function(G){return oe.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:q.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:q.slider}))))}}]),V}(t.PureComponent||t.Component);return k1.default=N,k1}var K1={},EK;function sae(){if(EK)return K1;EK=1,Object.defineProperty(K1,"__esModule",{value:!0}),K1.EditableInput=void 0;var n=function(){function $(oe,te){for(var q=0;q<te.length;q++){var ne=te[q];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(oe,ne.key,ne)}}return function(oe,te,q){return te&&$(oe.prototype,te),q&&$(oe,q),oe}}(),e=Ra(),t=s(e),r=wp(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,oe,te){return oe in $?Object.defineProperty($,oe,{value:te,enumerable:!0,configurable:!0,writable:!0}):$[oe]=te,$}function o($,oe){if(!($ instanceof oe))throw new TypeError("Cannot call a class as a function")}function f($,oe){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:$}function v($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);$.prototype=Object.create(oe&&oe.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf($,oe):$.__proto__=oe)}var x=1,B=38,k=40,P=[B,k],U=function(oe){return P.indexOf(oe)>-1},N=function(oe){return Number(String(oe).replace(/%/g,""))},W=1,V=K1.EditableInput=function($){v(oe,$);function oe(te){o(this,oe);var q=f(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return q.handleBlur=function(){q.state.blurValue&&q.setState({value:q.state.blurValue,blurValue:null})},q.handleChange=function(ne){q.setUpdatedValue(ne.target.value,ne)},q.handleKeyDown=function(ne){var G=N(ne.target.value);if(!isNaN(G)&&U(ne.keyCode)){var ie=q.getArrowOffset(),de=ne.keyCode===B?G+ie:G-ie;q.setUpdatedValue(de,ne)}},q.handleDrag=function(ne){if(q.props.dragLabel){var G=Math.round(q.props.value+ne.movementX);G>=0&&G<=q.props.dragMax&&q.props.onChange&&q.props.onChange(q.getValueObjectWithLabel(G),ne)}},q.handleMouseDown=function(ne){q.props.dragLabel&&(ne.preventDefault(),q.handleDrag(ne),window.addEventListener("mousemove",q.handleDrag),window.addEventListener("mouseup",q.handleMouseUp))},q.handleMouseUp=function(){q.unbindEventListeners()},q.unbindEventListeners=function(){window.removeEventListener("mousemove",q.handleDrag),window.removeEventListener("mouseup",q.handleMouseUp)},q.state={value:String(te.value).toUpperCase(),blurValue:String(te.value).toUpperCase()},q.inputId="rc-editable-input-"+W++,q}return n(oe,[{key:"componentDidUpdate",value:function(q,ne){this.props.value!==this.state.value&&(q.value!==this.props.value||ne.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(q){return l({},this.props.label,q)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||x}},{key:"setUpdatedValue",value:function(q,ne){var G=this.props.label?this.getValueObjectWithLabel(q):q;this.props.onChange&&this.props.onChange(G,ne),this.setState({value:q})}},{key:"render",value:function(){var q=this,ne=(0,i.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:ne.wrap},t.default.createElement("input",{id:this.inputId,style:ne.input,ref:function(ie){return q.input=ie},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:ne.label,onMouseDown:this.handleMouseDown},this.props.label):null)}
Line truncated
|
||||
${mt}
|
||||
${je}`,{message:Ut,excerpt:mt,pointer:kt}}function me(je,Pe){let Le=G(Pe);const Xe=oe(je,Le)||fe(je,Le)||he(je,Le);let Ct,Gt,mt;Xe?(Ct=Xe.offset,Gt=Xe.line,mt=Xe.column,Le=Xe.reason):Ct=0,Pe.reason=Le;const Ut=Me(Le,je,Ct,Gt,mt);return Pe.message=Ut.message,Pe.excerpt=Ut.excerpt,Ut.pointer&&(Pe.pointer=Ut.pointer,Pe.location={start:{column:mt,line:Gt,offset:Ct}}),Pe}function pe(je,Pe){try{return JSON.parse(je,Pe)}catch(Le){const Xe=me(je,Le);if(Le.location)throw Xe;return k(je,Pe)}}const qe=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),Se=typeof process<"u"&&process.version.startsWith("v4.");function vt(je){return je.ignoreBOM||je.ignoreComments||je.ignoreTrailingCommas||je.allowSingleQuotedStrings||je.allowDuplicateObjectKeys===!1||je.ignoreProtoKey||je.ignorePrototypeKeys||je.mode==="cjson"||je.mode==="json5"||qe||Se}function Je(je){if(typeof je=="function")return je;if(je)return je.reviver}function Ke(je,Pe){return Pe||(Pe={}),vt(Pe)?k(je,Pe):pe(je,Je(Pe))}t.parse=Ke,t.tokenize=P,t.pathToPointer=N,t.pointerToPath=V,t.parseNative=pe,t.parseCustom=k,t.getErrorTexts=Me,Object.defineProperty(t,"__esModule",{value:!0})})}(Lv,Lv.exports)),Lv.exports}var $ie=Hie(),kb={exports:{}},Zie=kb.exports,AT;function Xie(){return AT||(AT=1,function(n,e){(function(t,r){n.exports=r()})(Zie,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function r(Re,Ue){return Ue={exports:{}},Re(Ue,Ue.exports),Ue.exports}var i=r(function(Re){function Ue(){var nt=0,_t=1,gt=2,Kt=3,$t=4,Rt=5,_n=6,pr=7,nn=8,Xn=9,Fn=10,an=11,Bn=12,Cr=13,lr=14,hr=15,We=16,ce=17,ye=0,rt=1,Et=2,Ht=3,Zt=4;function Jn(f,Qe){return 55296<=f.charCodeAt(Qe)&&f.charCodeAt(Qe)<=56319&&56320<=f.charCodeAt(Qe+1)&&f.charCodeAt(Qe+1)<=57343}function He(f,Qe){Qe===void 0&&(Qe=0);var Ee=f.charCodeAt(Qe);if(55296<=Ee&&Ee<=56319&&Qe<f.length-1){var it=Ee,ut=f.charCodeAt(Qe+1);return 56320<=ut&&ut<=57343?(it-55296)*1024+(ut-56320)+65536:it}if(56320<=Ee&&Ee<=57343&&Qe>=1){var it=f.charCodeAt(Qe-1),ut=Ee;return 55296<=it&&it<=56319?(it-55296)*1024+(ut-56320)+65536:ut}return Ee}function ae(f,Qe,Ee){var it=[f].concat(Qe).concat([Ee]),ut=it[it.length-2],at=Ee,zt=it.lastIndexOf(lr);if(zt>1&&it.slice(1,zt).every(function(rn){return rn==Kt})&&[Kt,Cr,ce].indexOf(f)==-1)return Et;var Qt=it.lastIndexOf($t);if(Qt>0&&it.slice(1,Qt).every(function(rn){return rn==$t})&&[Bn,$t].indexOf(ut)==-1)return it.filter(function(rn){return rn==$t}).length%2==1?Ht:Zt;if(ut==nt&&at==_t)return ye;if(ut==gt||ut==nt||ut==_t)return at==lr&&Qe.every(function(rn){return rn==Kt})?Et:rt;if(at==gt||at==nt||at==_t)return rt;if(ut==_n&&(at==_n||at==pr||at==Xn||at==Fn))return ye;if((ut==Xn||ut==pr)&&(at==pr||at==nn))return ye;if((ut==Fn||ut==nn)&&at==nn)return ye;if(at==Kt||at==hr)return ye;if(at==Rt)return ye;if(ut==Bn)return ye;var Nt=it.indexOf(Kt)!=-1?it.lastIndexOf(Kt)-1:it.length-2;return[Cr,ce].indexOf(it[Nt])!=-1&&it.slice(Nt+1,-1).every(function(rn){return rn==Kt})&&at==lr||ut==hr&&[We,ce].indexOf(at)!=-1?ye:Qe.indexOf($t)!=-1?Et:ut==$t&&at==$t?ye:rt}this.nextBreak=function(f,Qe){if(Qe===void 0&&(Qe=0),Qe<0)return 0;if(Qe>=f.length-1)return f.length;for(var Ee=_e(He(f,Qe)),it=[],ut=Qe+1;ut<f.length;ut++)if(!Jn(f,ut-1)){var at=_e(He(f,ut));if(ae(Ee,it,at))return ut;it.push(at)}return f.length},this.splitGraphemes=function(f){for(var Qe=[],Ee=0,it;(it=this.nextBreak(f,Ee))<f.length;)Qe.push(f.slice(Ee,it)),Ee=it;return Ee<f.length&&Qe.push(f.slice(Ee)),Qe},this.iterateGraphemes=function(f){var Qe=0,Ee={next:(function(){var it,ut;return(ut=this.nextBreak(f,Qe))<f.length?(it=f.slice(Qe,ut),Qe=ut,{value:it,done:!1}):Qe<f.length?(it=f.slice(Qe),Qe=f.length,{value:it,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(Ee[Symbol.iterator]=function(){return Ee}),Ee},this.countGraphemes=function(f){for(var Qe=0,Ee=0,it;(it=this.nextBreak(f,Ee))<f.length;)Ee=it,Qe++;return Ee<f.length&&Qe++,Qe};function _e(f){return 1536<=f&&f<=1541||f==1757||f==1807||f==2274||f==3406||f==69821||70082<=f&&f<=70083||f==72250||72326<=f&&f<=72329||f==73030?Bn:f==13?nt:f==10?_t:0<=f&&f<=9||11<=f&&f<=12||14<=f&&f<=31||127<=f&&f<=159||f==173||f==1564||f==6158||f==8203||8206<=f&&f<=8207||f==8232||f==8233||8234<=f&&f<=8238||8288<=f&&f<=8292||f==8293||8294<=f&&f<=8303||55296<=f&&f<=57343||f==65279||65520<=f&&f<=65528||65529<=f&&f<=65531||113824<=f&&f<=113827||119155<=f&&f<=119162||f==917504||f==917505||917506<=f&&f<=917535||917632<=f&&f<=917759||918e3<=f&&f<=921599?gt:768<=f&&f<=879||1155<=f&&f<=1159||1160<=f&&f<=1161||1425<=f&&f<=1469||f==1471||1473<=f&&f<=1474||1476<=f&&f<=1477||f==1479||1552<=f&&f<=1562||1611<=f&&f<=1631||f==1648||1750<=f&&f<=1756||1759<=f&&f<=1764||1767<=f&&f<=1768||1770<=f&&f<=1773||f==1809||1840<=f&&f<=1866||1958<=f&&f<=1968||2027<=f&&f<=2035||2070<=f&&f<=2073||2075<=f&&f<=2083||2085<=f&&f<=2087||2089<=f&&f<=2093||2137<=f&&f<=2139||2260<=f&&f<=2273||2275<=f&&f<=2306||f==2362||f==2364||2369<=f&&f<=
Line truncated
|
||||
`)}var nn={extraLines:2,tabSize:4},Xn=function(an,Bn,Cr,lr){lr=Rt({},nn,lr);var hr=an.split(/\r\n?|\n|\f/),We=Math.max(1,Bn-lr.extraLines)-1,ce=Math.min(Bn+lr.extraLines,hr.length),ye=String(ce).length,rt=pr(hr,We,Bn,ye,lr),Et=_n(hr[Bn-1].substring(0,Cr-1),Bn,ye,lr),Ht=gt(" ",Et.length)+"^",Zt=pr(hr,Bn,ce,ye,lr);return[rt,Ht,Zt].filter(Boolean).join(`
|
||||
`)};return Xn})}),v=new Error().stack,x=function(Re){var Ue=Object.create(SyntaxError.prototype);return Object.assign(Ue,Re,{name:"SyntaxError"}),Object.defineProperty(Ue,"stack",{get:function(){return v?v.replace(/^(.+\n){1,3}/,String(Ue)+`
|
||||
`):""}}),Ue},B=function(Re,Ue,nt,_t,gt){throw x({message:_t?Re+`
|
||||
`+p(Ue,_t,gt):Re,rawMessage:Re,source:nt,line:_t,column:gt})},k={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Ue){for(var nt=arguments.length,_t=Array(nt>1?nt-1:0),gt=1;gt<nt;gt++)_t[gt-1]=arguments[gt];return"Unexpected token <"+Ue+"> at "+_t.filter(Boolean).join(":")}},P={unexpectedSymbol:function(Ue){for(var nt=arguments.length,_t=Array(nt>1?nt-1:0),gt=1;gt<nt;gt++)_t[gt-1]=arguments[gt];return"Unexpected symbol <"+Ue+"> at "+_t.filter(Boolean).join(":")}},D={LEFT_BRACE:0,RIGHT_BRACE:1,LEFT_BRACKET:2,RIGHT_BRACKET:3,COLON:4,COMMA:5,STRING:6,NUMBER:7,TRUE:8,FALSE:9,NULL:10},N={"{":D.LEFT_BRACE,"}":D.RIGHT_BRACE,"[":D.LEFT_BRACKET,"]":D.RIGHT_BRACKET,":":D.COLON,",":D.COMMA},W={true:D.TRUE,false:D.FALSE,null:D.NULL},V={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},$={'"':0,"\\":1,"/":2,b:3,f:4,n:5,r:6,t:7,u:8},ie={_START_:0,MINUS:1,ZERO:2,DIGIT:3,POINT:4,DIGIT_FRACTION:5,EXP:6,EXP_DIGIT_OR_SIGN:7};function ne(Re){return Re>="1"&&Re<="9"}function q(Re){return Re>="0"&&Re<="9"}function te(Re){return q(Re)||Re>="a"&&Re<="f"||Re>="A"&&Re<="F"}function G(Re){return Re==="e"||Re==="E"}function oe(Re,Ue,nt,_t){var gt=Re.charAt(Ue);if(gt==="\r")Ue++,nt++,_t=1,Re.charAt(Ue)===`
|
||||
`&&Ue++;else if(gt===`
|
||||
`)Ue++,nt++,_t=1;else if(gt===" "||gt===" ")Ue++,_t++;else return null;return{index:Ue,line:nt,column:_t}}function fe(Re,Ue,nt,_t){var gt=Re.charAt(Ue);return gt in N?{type:N[gt],line:nt,column:_t+1,index:Ue+1,value:null}:null}function he(Re,Ue,nt,_t){for(var gt in W)if(W.hasOwnProperty(gt)&&Re.substr(Ue,gt.length)===gt)return{type:W[gt],line:nt,column:_t+gt.length,index:Ue+gt.length,value:gt};return null}function Me(Re,Ue,nt,_t){for(var gt=Ue,Kt=V._START_;Ue<Re.length;){var $t=Re.charAt(Ue);switch(Kt){case V._START_:{if($t==='"')Ue++,Kt=V.START_QUOTE_OR_CHAR;else return null;break}case V.START_QUOTE_OR_CHAR:{if($t==="\\")Ue++,Kt=V.ESCAPE;else{if($t==='"')return Ue++,{type:D.STRING,line:nt,column:_t+Ue-gt,index:Ue,value:Re.slice(gt,Ue)};Ue++}break}case V.ESCAPE:{if($t in $){if(Ue++,$t==="u")for(var Rt=0;Rt<4;Rt++){var _n=Re.charAt(Ue);if(_n&&te(_n))Ue++;else return null}Kt=V.START_QUOTE_OR_CHAR}else return null;break}}}}function me(Re,Ue,nt,_t){var gt=Ue,Kt=Ue,$t=ie._START_;e:for(;Ue<Re.length;){var Rt=Re.charAt(Ue);switch($t){case ie._START_:{if(Rt==="-")$t=ie.MINUS;else if(Rt==="0")Kt=Ue+1,$t=ie.ZERO;else if(ne(Rt))Kt=Ue+1,$t=ie.DIGIT;else return null;break}case ie.MINUS:{if(Rt==="0")Kt=Ue+1,$t=ie.ZERO;else if(ne(Rt))Kt=Ue+1,$t=ie.DIGIT;else return null;break}case ie.ZERO:{if(Rt===".")$t=ie.POINT;else if(G(Rt))$t=ie.EXP;else break e;break}case ie.DIGIT:{if(q(Rt))Kt=Ue+1;else if(Rt===".")$t=ie.POINT;else if(G(Rt))$t=ie.EXP;else break e;break}case ie.POINT:{if(q(Rt))Kt=Ue+1,$t=ie.DIGIT_FRACTION;else break e;break}case ie.DIGIT_FRACTION:{if(q(Rt))Kt=Ue+1;else if(G(Rt))$t=ie.EXP;else break e;break}case ie.EXP:{if(Rt==="+"||Rt==="-")$t=ie.EXP_DIGIT_OR_SIGN;else if(q(Rt))Kt=Ue+1,$t=ie.EXP_DIGIT_OR_SIGN;else break e;break}case ie.EXP_DIGIT_OR_SIGN:{if(q(Rt))Kt=Ue+1;else break e;break}}Ue++}return Kt>0?{type:D.NUMBER,line:nt,column:_t+Kt-gt,index:Kt,value:Re.slice(gt,Kt)}:null}var pe=function(Ue,nt){for(var _t=1,gt=1,Kt=0,$t=[];Kt<Ue.length;){var Rt=[Ue,Kt,_t,gt],_n=oe.apply(void 0,Rt);if(_n){Kt=_n.index,_t=_n.line,gt=_n.column;continue}var pr=fe.apply(void 0,Rt)||he.apply(void 0,Rt)||Me.apply(void 0,Rt)||me.apply(void 0,Rt);if(pr){var nn={type:pr.type,value:pr.value,loc:o(_t,gt,Kt,pr.line,pr.column,pr.index,nt.source)};$t.push(nn),Kt=pr.index,_t=pr.line,gt=pr.column}else B(P.unexpectedSymbol(l(Ue,Kt,Kt+1),nt.source,_t,gt),Ue,nt.source,_t,gt)}return $t},qe={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},Se={_START_:0,KEY:1,COLON:2},vt={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},Je={loc:!0,source:null};function Ke(Re,Ue,nt){var _t=Ue.length>0?Ue[Ue.length-1].loc.end:{line:1,column:1};B(k.unexpectedEnd(),Re,nt.source,_t.line,_t.column)}function je(Re){for(var Ue=0,nt=0;nt<4;nt++)Ue=Ue*16+parseInt(Re[nt],16);return String.fromCharCode(Ue)}var Pe={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Le=['"',"\\","/"];function Xe(Re){for(var Ue="",nt=0;nt<Re.length;nt++){var _t=Re.charAt(nt);if(_t==="\\"){nt++;var gt=Re.charAt(nt);if(gt==="u")Ue+=je(Re.substr(nt+1,4)),nt+=4;else if(Le.indexOf(gt)!==-1)Ue+=gt;else if(gt in Pe)Ue+=Pe[gt];else break}else Ue+=_t}return Ue}function Ct(Re,Ue,nt,_t){for(var gt=void 0,Kt={type:"Object",children:[]},$t=qe._START_;nt<Ue.length;){var Rt=Ue[nt];switch($t){case qe._START_:{if(Rt.type===D.LEFT_BRACE)gt=Rt,$t=qe.OPEN_OBJECT,nt++;else return null;break}case qe.OPEN_OBJECT:{if(Rt.type===D.RIGHT_BRACE)return _t.loc&&(Kt.loc=o(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,_t.source)),{value:Kt,index:nt+1};var _n=Gt(Re,Ue,nt,_t);Kt.children.push(_n.value),$t=qe.PROPERTY,nt=_n.index;break}case qe.PROPERTY:{if(Rt.type===D.RIGHT_BRACE)return _t.loc&&(Kt.loc=o(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,_t.source)),{value:Kt,index:nt+1};Rt.type===D.COMMA?($t=qe.COMMA,nt++):B(k.unexpectedToken(l(Re,Rt.loc.start.offset,Rt.loc.end.offset),_t.source,Rt.loc.start.line,Rt.loc.start.column),Re,_t.source,Rt.loc.start.line,Rt.loc.start.column);break}case qe.COMMA:{var pr=Gt(Re,Ue,nt,_t);pr?(nt=pr.index,Kt.children.push(pr.value),$t=qe.PROPERTY):B(k.unexpectedToken(l(Re,Rt.loc.start.offset,Rt.loc.end.offset),_t.source,Rt.loc.start.line,Rt.loc.start.column),Re,_t.source,Rt.loc.start.line,Rt.loc.start.column);break}}}Ke(Re,Ue,_t)}function Gt(Re,Ue,nt,_t){for(var gt=void 0,Kt={type:"Property",key:null,value:null},$t=Se._START_;nt<Ue.length;){var Rt=Ue[nt];switch($t){case Se._START_:{if(Rt.type===D.STRING){var _n={type:"Identifier",value:Xe(Re.slice(Rt.loc.start.offset+1,Rt.loc.end.offset-1)),raw:Rt.value};_t.loc&&(_n.loc=Rt.loc),gt=Rt,Kt.key=_n,$t=Se.KEY,nt++}else return null;break}case Se.KEY:{Rt.type===D.COLON?($t=Se.COLON,nt++):B(k.unexpectedToken(l(Re,Rt.loc.start.offset,Rt.loc.end.offset),_t.source,Rt.loc.start.line,Rt.loc.start.column),Re,_t.source,Rt.loc.start.line,Rt.loc.start.column);break}case Se.COLON:{var pr=kt(Re,Ue,nt,_t);return Kt.value=pr.value,_t.loc&&(Kt.loc=o(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,pr.value.loc.end.line,pr.value.loc.end.column,pr.value.loc.end.offset,_t.source)),{value:Kt,index:pr.index}}}}}function mt(Re,Ue,nt,_t){for(var gt=void 0,Kt={type:"Array",children:[]},$t=vt._START_,Rt=void 0;nt<Ue.length;)switch(Rt=Ue[nt],$t){case vt._START_:{if(Rt.type===D.LEFT_BRACKET)gt=Rt,$t=vt.OPEN_ARRAY,nt++;else return null;break}case vt.OPEN_ARRAY:{if(Rt.type===D.RIGHT_BRACKET)return _t.loc&&(Kt.loc=o(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,_t.source)),{value:Kt,index:nt+1};var _n=kt(Re,Ue,nt,_t);nt=_n.index,Kt.children.push(_n.value),$t=vt.VALUE;break}case vt.VALUE:{if(Rt.type===D.RIGHT_BRACKET)return _t.loc&&(Kt.loc=o(gt.loc.start.line,gt.loc.start.column,gt.loc.start.offset,Rt.loc.end.line,Rt.loc.end.column,Rt.loc.end.offset,_t.source)),{value:Kt,index:nt+1};Rt.type===D.COMMA?($t=vt.COMMA,nt++):B(k.unexpectedToken(l(Re,Rt.loc.start.offset,Rt.loc.end.offset),_t.source,Rt.loc.start.line,Rt.loc.start.column),Re,_t.source,Rt.loc.start.line,Rt.loc.start.column);break}case vt.COMMA:{var pr=kt(Re,Ue,nt,_t);nt=pr.index,Kt.children.push(pr.value),$t=vt.VALUE;break}}Ke(Re,Ue,_t)}function Ut(Re,Ue,nt,_t){var gt=Ue[nt],Kt=null;switch(gt.type){case D.STRING:{Kt=Xe(Re.slice(gt.loc.start.offset+1,gt.loc.end.offset-1));break}case D.NUMBER:{Kt=Number(gt.value);break}case D.TRUE:{Kt=!0;break}case D.FALSE:{Kt=!1;break}case D.NULL:{Kt=null;break}default:return null}var $t={type:"Literal",value:Kt,raw:gt.value};return _t.loc&&($t.loc=gt.loc),{value:$t,index:nt+1}}function kt(Re,Ue,nt,_t){var gt=Ue[nt],Kt=Ut.apply(void 0,arguments)||Ct.apply(void 0,arguments)||mt.apply(void 0,arguments);if(Kt)return Kt;B(k.unexpectedToken(l(Re,gt.loc.start.offset,gt.loc.end.offset),_t.source,gt.loc.start.line,gt.loc.start.column),Re,_t.source,gt.loc.start.line,gt.loc.start.column)}var Te=function(Re,Ue){Ue=Object.assign({},Je,Ue);var nt=pe(Re,Ue);nt.length===0&&Ke(Re,nt,Ue);var _t=kt(Re,nt,0,Ue);if(_t.index===nt.length)return _t.value;var gt=nt[_t.index];B(k.unexpectedToken(l(Re,gt.loc.start.offset,gt.loc.end.offset),Ue.source,gt.loc.start.line,gt.loc.start.column),Re,Ue.source,gt.loc.start.line,gt.loc.start.column)};return Te})}(kb)),kb.exports}var Jie=Xie();const eoe=dl(Jie);function cr(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="89c156e637b20b434cfb214df7fad7d710253070",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",statementMap:{0:{start:{line:5,column:0},end:{line:10,column:3}},1:{start:{line:6,column:2},end:{line:9,column:4}},2:{start:{line:12,column:16},end:{line:12,column:18}},3:{start:{line:13,column:2},end:{line:30,column:3}},4:{start:{line:14,column:4},end:{line:14,column:16}}
Line truncated
|
||||
rgba(`+ne.r+","+ne.g+","+ne.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ne.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("+ne.r+","+ne.g+","+ne.b+`, 0) 0%,
|
||||
rgba(`+ne.r+","+ne.g+","+ne.b+", 1) 100%)"},pointer:{left:0,top:ne.a*100+"%"}},overwrite:n({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return r.default.createElement("div",{style:q.alpha},r.default.createElement("div",{style:q.checkboard},r.default.createElement(v.default,{renderers:this.props.renderers})),r.default.createElement("div",{style:q.gradient}),r.default.createElement("div",{style:q.container,ref:function(G){return ie.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},r.default.createElement("div",{style:q.pointer},this.props.pointer?r.default.createElement(this.props.pointer,this.props):r.default.createElement("div",{style:q.slider}))))}}]),V}(t.PureComponent||t.Component);return R1.default=N,R1}var F1={},RK;function _ae(){if(RK)return F1;RK=1,Object.defineProperty(F1,"__esModule",{value:!0}),F1.EditableInput=void 0;var n=function(){function $(ie,ne){for(var q=0;q<ne.length;q++){var te=ne[q];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(ie,te.key,te)}}return function(ie,ne,q){return ne&&$(ie.prototype,ne),q&&$(ie,q),ie}}(),e=Da(),t=s(e),r=Op(),i=s(r);function s($){return $&&$.__esModule?$:{default:$}}function l($,ie,ne){return ie in $?Object.defineProperty($,ie,{value:ne,enumerable:!0,configurable:!0,writable:!0}):$[ie]=ne,$}function o($,ie){if(!($ instanceof ie))throw new TypeError("Cannot call a class as a function")}function p($,ie){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ie&&(typeof ie=="object"||typeof ie=="function")?ie:$}function v($,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ie);$.prototype=Object.create(ie&&ie.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),ie&&(Object.setPrototypeOf?Object.setPrototypeOf($,ie):$.__proto__=ie)}var x=1,B=38,k=40,P=[B,k],D=function(ie){return P.indexOf(ie)>-1},N=function(ie){return Number(String(ie).replace(/%/g,""))},W=1,V=F1.EditableInput=function($){v(ie,$);function ie(ne){o(this,ie);var q=p(this,(ie.__proto__||Object.getPrototypeOf(ie)).call(this));return q.handleBlur=function(){q.state.blurValue&&q.setState({value:q.state.blurValue,blurValue:null})},q.handleChange=function(te){q.setUpdatedValue(te.target.value,te)},q.handleKeyDown=function(te){var G=N(te.target.value);if(!isNaN(G)&&D(te.keyCode)){var oe=q.getArrowOffset(),fe=te.keyCode===B?G+oe:G-oe;q.setUpdatedValue(fe,te)}},q.handleDrag=function(te){if(q.props.dragLabel){var G=Math.round(q.props.value+te.movementX);G>=0&&G<=q.props.dragMax&&q.props.onChange&&q.props.onChange(q.getValueObjectWithLabel(G),te)}},q.handleMouseDown=function(te){q.props.dragLabel&&(te.preventDefault(),q.handleDrag(te),window.addEventListener("mousemove",q.handleDrag),window.addEventListener("mouseup",q.handleMouseUp))},q.handleMouseUp=function(){q.unbindEventListeners()},q.unbindEventListeners=function(){window.removeEventListener("mousemove",q.handleDrag),window.removeEventListener("mouseup",q.handleMouseUp)},q.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},q.inputId="rc-editable-input-"+W++,q}return n(ie,[{key:"componentDidUpdate",value:function(q,te){this.props.value!==this.state.value&&(q.value!==this.props.value||te.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(q){return l({},this.props.label,q)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||x}},{key:"setUpdatedValue",value:function(q,te){var G=this.props.label?this.getValueObjectWithLabel(q):q;this.props.onChange&&this.props.onChange(G,te),this.setState({value:q})}},{key:"render",value:function(){var q=this,te=(0,i.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return t.default.createElement("div",{style:te.wrap},t.default.createElement("input",{id:this.inputId,style:te.input,ref:function(oe){return q.input=oe},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?t.default.createElement("label",{htmlFor:this.inputId,style:te.label,onMouseDown:this.handleMouseDown},this.props.label):null)}
Line truncated
|
||||
.hue-horizontal {
|
||||
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
||||
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
@@ -909,8 +901,8 @@ ${je}`,{message:Ut,excerpt:gt,pointer:Pt}}function me(je,Se){let Fe=G(Se);const
|
||||
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
||||
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
||||
}
|
||||
`),t.default.createElement("div",{style:oe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:oe.slider}))))}}]),U}(e.PureComponent||e.Component);return R1.default=k,R1}var D1={},IK;function Aae(){if(IK)return D1;IK=1,Object.defineProperty(D1,"__esModule",{value:!0}),D1.Raised=void 0;var n=Ra(),e=f(n),t=_p(),r=f(t),i=wp(),s=f(i),l=yN(),o=f(l);function f(x){return x&&x.__esModule?x:{default:x}}var v=D1.Raised=function(B){var k=B.zDepth,P=B.radius,U=B.background,N=B.children,W=B.styles,V=W===void 0?{}:W,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+k+"px "+k*4+"px rgba(0,0,0,.24)",borderRadius:P,background:U}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},V),{"zDepth-1":k===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},N))};return v.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},v.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},D1.default=v,D1}var F1={},bS,TK;function uae(){if(TK)return bS;TK=1;var n=Mp(),e=function(){return n.Date.now()};return bS=e,bS}var xS,kK;function cae(){if(kK)return xS;kK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return xS=e,xS}var MS,PK;function hae(){if(PK)return MS;PK=1;var n=cae(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return MS=t,MS}var wS,KK;function dae(){if(KK)return wS;KK=1;var n=hae(),e=Uf(),t=Zx(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function f(v){if(typeof v=="number")return v;if(t(v))return r;if(e(v)){var x=typeof v.valueOf=="function"?v.valueOf():v;v=e(x)?x+"":x}if(typeof v!="string")return v===0?v:+v;v=n(v);var B=s.test(v);return B||l.test(v)?o(v.slice(2),B?2:8):i.test(v)?r:+v}return wS=f,wS}var SS,RK;function vN(){if(RK)return SS;RK=1;var n=Uf(),e=uae(),t=dae(),r="Expected a function",i=Math.max,s=Math.min;function l(o,f,v){var x,B,k,P,U,N,W=0,V=!1,$=!1,oe=!0;if(typeof o!="function")throw new TypeError(r);f=t(f)||0,n(v)&&(V=!!v.leading,$="maxWait"in v,k=$?i(t(v.maxWait)||0,f):k,oe="trailing"in v?!!v.trailing:oe);function te(Me){var Le=x,xe=B;return x=B=void 0,W=Me,P=o.apply(xe,Le),P}function q(Me){return W=Me,U=setTimeout(ie,f),V?te(Me):P}function ne(Me){var Le=Me-N,xe=Me-W,pt=f-Le;return $?s(pt,k-xe):pt}function G(Me){var Le=Me-N,xe=Me-W;return N===void 0||Le>=f||Le<0||$&&xe>=k}function ie(){var Me=e();if(G(Me))return de(Me);U=setTimeout(ie,ne(Me))}function de(Me){return U=void 0,oe&&x?te(Me):(x=B=void 0,P)}function fe(){U!==void 0&&clearTimeout(U),W=0,x=N=B=U=void 0}function Ee(){return U===void 0?P:de(e())}function me(){var Me=e(),Le=G(Me);if(x=arguments,B=this,N=Me,Le){if(U===void 0)return q(N);if($)return clearTimeout(U),U=setTimeout(ie,f),te(N)}return U===void 0&&(U=setTimeout(ie,f)),P}return me.cancel=fe,me.flush=Ee,me}return SS=l,SS}var ES,DK;function fae(){if(DK)return ES;DK=1;var n=vN(),e=Uf(),t="Expected a function";function r(i,s,l){var o=!0,f=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,f="trailing"in l?!!l.trailing:f),n(i,s,{leading:o,maxWait:s,trailing:f})}return ES=r,ES}var hb={},FK;function pae(){return FK||(FK=1,Object.defineProperty(hb,"__esModule",{value:!0}),hb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,f=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,v=o-(r.getBoundingClientRect().left+window.pageXOffset),x=f-(r.getBoundingClientRect().top+window.pageYOffset);v<0?v=0:v>s&&(v=s),x<0?x=0:x>l&&(x=l);var B=v/s,k=1-x/l;return{h:t.h,s:B,v:k,a:t.a,source:"hsv"}}),hb}var LK;function mae(){if(LK)return F1;LK=1,Object.defineProperty(F1,"__esModule",{value:!0}),F1.Saturation=void 0;var n=function(){function N(W,V){for(var $=0;$<V.length;$++){var oe=V[$];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(W,oe.key,oe)}}return function(W,V,$){return V&&N(W.prototype,V),$&&N(W,$),W}}(),e=Ra(),t=x(e),r=wp(),i=x(r),s=fae(),l=x(s),o=pae(),f=v(o);function v(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var V in N)Object.prototype.hasOwnProperty.call(N,V)&&(W[V]=N[V]);return W.default=N,W}function x(N)
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:te,white:q,black:ne,pointer:G,circle:ie}},{custom:!!this.props.style});return t.default.createElement("div",{style:de.color,ref:function(Ee){return $.container=Ee},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
|
||||
`),t.default.createElement("div",{style:ie.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ie.slider}))))}}]),D}(e.PureComponent||e.Component);return L1.default=k,L1}var U1={},LK;function Mae(){if(LK)return U1;LK=1,Object.defineProperty(U1,"__esModule",{value:!0}),U1.Raised=void 0;var n=Da(),e=p(n),t=wp(),r=p(t),i=Op(),s=p(i),l=BN(),o=p(l);function p(x){return x&&x.__esModule?x:{default:x}}var v=U1.Raised=function(B){var k=B.zDepth,P=B.radius,D=B.background,N=B.children,W=B.styles,V=W===void 0?{}:W,$=(0,s.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+k+"px "+k*4+"px rgba(0,0,0,.24)",borderRadius:P,background:D}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},V),{"zDepth-1":k===1});return e.default.createElement("div",{style:$.wrap},e.default.createElement("div",{style:$.bg}),e.default.createElement("div",{style:$.content},N))};return v.propTypes={background:r.default.string,zDepth:r.default.oneOf([0,1,2,3,4,5]),radius:r.default.number,styles:r.default.object},v.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},U1.default=v,U1}var z1={},OS,UK;function wae(){if(UK)return OS;UK=1;var n=Bp(),e=function(){return n.Date.now()};return OS=e,OS}var IS,zK;function Sae(){if(zK)return IS;zK=1;var n=/\s/;function e(t){for(var r=t.length;r--&&n.test(t.charAt(r)););return r}return IS=e,IS}var TS,NK;function Eae(){if(NK)return TS;NK=1;var n=Sae(),e=/^\s+/;function t(r){return r&&r.slice(0,n(r)+1).replace(e,"")}return TS=t,TS}var kS,WK;function Bae(){if(WK)return kS;WK=1;var n=Eae(),e=Nf(),t=i3(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function p(v){if(typeof v=="number")return v;if(t(v))return r;if(e(v)){var x=typeof v.valueOf=="function"?v.valueOf():v;v=e(x)?x+"":x}if(typeof v!="string")return v===0?v:+v;v=n(v);var B=s.test(v);return B||l.test(v)?o(v.slice(2),B?2:8):i.test(v)?r:+v}return kS=p,kS}var PS,jK;function ON(){if(jK)return PS;jK=1;var n=Nf(),e=wae(),t=Bae(),r="Expected a function",i=Math.max,s=Math.min;function l(o,p,v){var x,B,k,P,D,N,W=0,V=!1,$=!1,ie=!0;if(typeof o!="function")throw new TypeError(r);p=t(p)||0,n(v)&&(V=!!v.leading,$="maxWait"in v,k=$?i(t(v.maxWait)||0,p):k,ie="trailing"in v?!!v.trailing:ie);function ne(pe){var qe=x,Se=B;return x=B=void 0,W=pe,P=o.apply(Se,qe),P}function q(pe){return W=pe,D=setTimeout(oe,p),V?ne(pe):P}function te(pe){var qe=pe-N,Se=pe-W,vt=p-qe;return $?s(vt,k-Se):vt}function G(pe){var qe=pe-N,Se=pe-W;return N===void 0||qe>=p||qe<0||$&&Se>=k}function oe(){var pe=e();if(G(pe))return fe(pe);D=setTimeout(oe,te(pe))}function fe(pe){return D=void 0,ie&&x?ne(pe):(x=B=void 0,P)}function he(){D!==void 0&&clearTimeout(D),W=0,x=N=B=D=void 0}function Me(){return D===void 0?P:fe(e())}function me(){var pe=e(),qe=G(pe);if(x=arguments,B=this,N=pe,qe){if(D===void 0)return q(N);if($)return clearTimeout(D),D=setTimeout(oe,p),ne(N)}return D===void 0&&(D=setTimeout(oe,p)),P}return me.cancel=he,me.flush=Me,me}return PS=l,PS}var KS,GK;function Oae(){if(GK)return KS;GK=1;var n=ON(),e=Nf(),t="Expected a function";function r(i,s,l){var o=!0,p=!0;if(typeof i!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,p="trailing"in l?!!l.trailing:p),n(i,s,{leading:o,maxWait:s,trailing:p})}return KS=r,KS}var mb={},QK;function Iae(){return QK||(QK=1,Object.defineProperty(mb,"__esModule",{value:!0}),mb.calculateChange=function(e,t,r){var i=r.getBoundingClientRect(),s=i.width,l=i.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,v=o-(r.getBoundingClientRect().left+window.pageXOffset),x=p-(r.getBoundingClientRect().top+window.pageYOffset);v<0?v=0:v>s&&(v=s),x<0?x=0:x>l&&(x=l);var B=v/s,k=1-x/l;return{h:t.h,s:B,v:k,a:t.a,source:"hsv"}}),mb}var YK;function Tae(){if(YK)return z1;YK=1,Object.defineProperty(z1,"__esModule",{value:!0}),z1.Saturation=void 0;var n=function(){function N(W,V){for(var $=0;$<V.length;$++){var ie=V[$];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(W,ie.key,ie)}}return function(W,V,$){return V&&N(W.prototype,V),$&&N(W,$),W}}(),e=Da(),t=x(e),r=Op(),i=x(r),s=Oae(),l=x(s),o=Iae(),p=v(o);function v(N){if(N&&N.__esModule)return N;var W={};if(N!=null)for(var V in N)Object.prototype.hasOwnProperty.call(N,V)&&(W[V]=N[V]);return W.default=N,W}function x(N)
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ne,white:q,black:te,pointer:G,circle:oe}},{custom:!!this.props.style});return t.default.createElement("div",{style:fe.color,ref:function(Me){return $.container=Me},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
|
||||
.saturation-white {
|
||||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
@@ -919,14 +911,14 @@ ${je}`,{message:Ut,excerpt:gt,pointer:Pt}}function me(je,Se){let Fe=G(Se);const
|
||||
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
||||
}
|
||||
`),t.default.createElement("div",{style:de.white,className:"saturation-white"},t.default.createElement("div",{style:de.black,className:"saturation-black"}),t.default.createElement("div",{style:de.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:de.circle}))))}}]),W}(e.PureComponent||e.Component);return F1.default=U,F1}var L1={},Lh={},BS,UK;function gae(){if(UK)return BS;UK=1;var n=lN(),e=aN(),t=Yz(),r=Zd();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return BS=i,BS}var OS,zK;function yae(){return zK||(zK=1,OS=gae()),OS}var Ob={exports:{}},vae=Ob.exports,NK;function Cae(){return NK||(NK=1,function(n,e){(function(t,r){n.exports=r()})(vae,function(){function t(ze){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ke){return typeof Ke}:function(Ke){return Ke&&typeof Symbol=="function"&&Ke.constructor===Symbol&&Ke!==Symbol.prototype?"symbol":typeof Ke},t(ze)}var r=/^\s+/,i=/\s+$/;function s(ze,Ke){if(ze=ze||"",Ke=Ke||{},ze instanceof s)return ze;if(!(this instanceof s))return new s(ze,Ke);var Oe=l(ze);this._originalInput=ze,this._r=Oe.r,this._g=Oe.g,this._b=Oe.b,this._a=Oe.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Oe.format,this._gradientType=Ke.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=Oe.ok}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Ke=this.toRgb();return(Ke.r*299+Ke.g*587+Ke.b*114)/1e3},getLuminance:function(){var Ke=this.toRgb(),Oe,it,Ct,dt,Dt,$t;return Oe=Ke.r/255,it=Ke.g/255,Ct=Ke.b/255,Oe<=.03928?dt=Oe/12.92:dt=Math.pow((Oe+.055)/1.055,2.4),it<=.03928?Dt=it/12.92:Dt=Math.pow((it+.055)/1.055,2.4),Ct<=.03928?$t=Ct/12.92:$t=Math.pow((Ct+.055)/1.055,2.4),.2126*dt+.7152*Dt+.0722*$t},setAlpha:function(Ke){return this._a=Le(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=x(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=x(this._r,this._g,this._b),Oe=Math.round(Ke.h*360),it=Math.round(Ke.s*100),Ct=Math.round(Ke.v*100);return this._a==1?"hsv("+Oe+", "+it+"%, "+Ct+"%)":"hsva("+Oe+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHsl:function(){var Ke=f(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=f(this._r,this._g,this._b),Oe=Math.round(Ke.h*360),it=Math.round(Ke.s*100),Ct=Math.round(Ke.l*100);return this._a==1?"hsl("+Oe+", "+it+"%, "+Ct+"%)":"hsla("+Oe+", "+it+"%, "+Ct+"%, "+this._roundA+")"},toHex:function(Ke){return k(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return P(this._r,this._g,this._b,this._a,Ke)},toHex8String:function(Ke){return"#"+this.toHex8(Ke)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(xe(this._r,255)*100)+"%",g:Math.round(xe(this._g,255)*100)+"%",b:Math.round(xe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%)":"rgba("+Math.round(xe(this._r,255)*100)+"%, "+Math.round(xe(this._g,255)*100)+"%, "+Math.round(xe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Oe="#"+U(this._r,this._g,this._b,this._a),it=Oe,Ct=this._gradientType?"GradientType = 1, ":"";if(Ke){var dt=s(Ke);it="#"+U(dt._r,dt._g,dt._b,dt._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ct+"startColorstr="+Oe+",endColorstr="+it+")"},toString:function(Ke){var Oe=!!Ke;Ke=Ke||this._format;var it=!1,Ct=this._a<1&&this._a>=0,dt=!Oe&&Ct&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return dt?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(it=this.toRgbString()),Ke==="prgb"&&(it=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(it=this.toHexString()),Ke==="hex3"&&(it=this.toHexString(!0)),Ke==="hex4"&&(it=this.toHex8String(!0)),Ke==="hex8"&&(it=this.toHex8String()),Ke==="name"&&(it=this.toName()),Ke==="hsl"&&(it=this.toHslString()),Ke==="hsv"&&(it=this.toHsvString()),it||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Ke,Oe){var it=Ke.apply(nu
Line truncated
|
||||
`),t.default.createElement("div",{style:fe.white,className:"saturation-white"},t.default.createElement("div",{style:fe.black,className:"saturation-black"}),t.default.createElement("div",{style:fe.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:fe.circle}))))}}]),W}(e.PureComponent||e.Component);return z1.default=D,z1}var N1={},Uh={},RS,qK;function kae(){if(qK)return RS;qK=1;var n=yN(),e=gN(),t=nN(),r=ef();function i(s,l){var o=r(s)?n:e;return o(s,t(l))}return RS=i,RS}var DS,VK;function Pae(){return VK||(VK=1,DS=kae()),DS}var Pb={exports:{}},Kae=Pb.exports,HK;function Rae(){return HK||(HK=1,function(n,e){(function(t,r){n.exports=r()})(Kae,function(){function t(Te){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},t(Te)}var r=/^\s+/,i=/\s+$/;function s(Te,Re){if(Te=Te||"",Re=Re||{},Te instanceof s)return Te;if(!(this instanceof s))return new s(Te,Re);var Ue=l(Te);this._originalInput=Te,this._r=Ue.r,this._g=Ue.g,this._b=Ue.b,this._a=Ue.a,this._roundA=Math.round(100*this._a)/100,this._format=Re.format||Ue.format,this._gradientType=Re.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=Ue.ok}s.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Re=this.toRgb();return(Re.r*299+Re.g*587+Re.b*114)/1e3},getLuminance:function(){var Re=this.toRgb(),Ue,nt,_t,gt,Kt,$t;return Ue=Re.r/255,nt=Re.g/255,_t=Re.b/255,Ue<=.03928?gt=Ue/12.92:gt=Math.pow((Ue+.055)/1.055,2.4),nt<=.03928?Kt=nt/12.92:Kt=Math.pow((nt+.055)/1.055,2.4),_t<=.03928?$t=_t/12.92:$t=Math.pow((_t+.055)/1.055,2.4),.2126*gt+.7152*Kt+.0722*$t},setAlpha:function(Re){return this._a=qe(Re),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Re=x(this._r,this._g,this._b);return{h:Re.h*360,s:Re.s,v:Re.v,a:this._a}},toHsvString:function(){var Re=x(this._r,this._g,this._b),Ue=Math.round(Re.h*360),nt=Math.round(Re.s*100),_t=Math.round(Re.v*100);return this._a==1?"hsv("+Ue+", "+nt+"%, "+_t+"%)":"hsva("+Ue+", "+nt+"%, "+_t+"%, "+this._roundA+")"},toHsl:function(){var Re=p(this._r,this._g,this._b);return{h:Re.h*360,s:Re.s,l:Re.l,a:this._a}},toHslString:function(){var Re=p(this._r,this._g,this._b),Ue=Math.round(Re.h*360),nt=Math.round(Re.s*100),_t=Math.round(Re.l*100);return this._a==1?"hsl("+Ue+", "+nt+"%, "+_t+"%)":"hsla("+Ue+", "+nt+"%, "+_t+"%, "+this._roundA+")"},toHex:function(Re){return k(this._r,this._g,this._b,Re)},toHexString:function(Re){return"#"+this.toHex(Re)},toHex8:function(Re){return P(this._r,this._g,this._b,this._a,Re)},toHex8String:function(Re){return"#"+this.toHex8(Re)},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(Se(this._r,255)*100)+"%",g:Math.round(Se(this._g,255)*100)+"%",b:Math.round(Se(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Se(this._r,255)*100)+"%, "+Math.round(Se(this._g,255)*100)+"%, "+Math.round(Se(this._b,255)*100)+"%)":"rgba("+Math.round(Se(this._r,255)*100)+"%, "+Math.round(Se(this._g,255)*100)+"%, "+Math.round(Se(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:me[k(this._r,this._g,this._b,!0)]||!1},toFilter:function(Re){var Ue="#"+D(this._r,this._g,this._b,this._a),nt=Ue,_t=this._gradientType?"GradientType = 1, ":"";if(Re){var gt=s(Re);nt="#"+D(gt._r,gt._g,gt._b,gt._a)}return"progid:DXImageTransform.Microsoft.gradient("+_t+"startColorstr="+Ue+",endColorstr="+nt+")"},toString:function(Re){var Ue=!!Re;Re=Re||this._format;var nt=!1,_t=this._a<1&&this._a>=0,gt=!Ue&&_t&&(Re==="hex"||Re==="hex6"||Re==="hex3"||Re==="hex4"||Re==="hex8"||Re==="name");return gt?Re==="name"&&this._a===0?this.toName():this.toRgbString():(Re==="rgb"&&(nt=this.toRgbString()),Re==="prgb"&&(nt=this.toPercentageRgbString()),(Re==="hex"||Re==="hex6")&&(nt=this.toHexString()),Re==="hex3"&&(nt=this.toHexString(!0)),Re==="hex4"&&(nt=this.toHex8String(!0)),Re==="hex8"&&(nt=this.toHex8String()),Re==="name"&&(nt=this.toName()),Re==="hsl"&&(nt=this.toHslString()),Re==="hsv"&&(nt=this.toHsvString()),nt||this.toHexString())},clone:function(){return s(this.toString())},_applyModification:function(Re,Ue){var nt=Re.apply(nu
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>${t}</title>
|
||||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${pR}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${pR}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${xR}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${xR}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<style>
|
||||
body { margin: 0; padding: 0; }
|
||||
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
|
||||
@@ -943,11 +935,11 @@ ${je}`,{message:Ut,excerpt:gt,pointer:Pt}}function me(je,Se){let Fe=G(Se);const
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),i=(Wr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Wr().s[10]++,this.exportName());Wr().s[11]++,fR.saveAs(i,s+".html")}async saveStyle(){Wr().f[3]++;const e=(Wr().s[12]++,this.tokenizedStyle());if(Wr().s[13]++,mR)Wr().b[2][1]++;else{Wr().b[2][0]++;const i=(Wr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Wr().s[15]++,this.exportName());Wr().s[16]++,fR.saveAs(i,s+".json"),Wr().s[17]++;return}let t=(Wr().s[18]++,this.props.fileHandle);if(Wr().s[19]++,t==null)if(Wr().b[3][0]++,Wr().s[20]++,t=await this.createFileHandle(),Wr().s[21]++,this.props.onSetFileHandle(t),Wr().s[22]++,t==null){Wr().b[4][0]++,Wr().s[23]++;return}else Wr().b[4][1]++;else Wr().b[3][1]++;const r=(Wr().s[24]++,await t.createWritable());Wr().s[25]++,await r.write(e),Wr().s[26]++,await r.close(),Wr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Wr().f[4]++;const e=(Wr().s[28]++,this.tokenizedStyle()),t=(Wr().s[29]++,await this.createFileHandle());if(Wr().s[30]++,this.props.onSetFileHandle(t),Wr().s[31]++,t==null){Wr().b[5][0]++,Wr().s[32]++;return}else Wr().b[5][1]++;const r=(Wr().s[33]++,await t.createWritable());Wr().s[34]++,await r.write(e),Wr().s[35]++,await r.close(),Wr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Wr().f[5]++;const e=(Wr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Wr().s[38]++,await window.showSaveFilePicker(e));return Wr().s[39]++,this.props.onSetFileHandle(t),Wr().s[40]++,t}changeMetadataProperty(e,t){Wr().f[6]++;const r=(Wr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Wr().s[42]++,this.props.onStyleChanged(r)}render(){Wr().f[7]++;const e=(Wr().s[43]++,this.props.t),t=(Wr().s[44]++,FN(e));return Wr().s[45]++,Ae.jsx(j0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(jp,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Wr().b[6][0]++,this.props.mapStyle.metadata||(Wr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(jp,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Wr().b[7][0]++,this.props.mapStyle.metadata||(Wr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(jp,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Wr().b[8][0]++,this.props.mapStyle.metadata||(Wr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Za,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(ZE,{}),e("Save")]}),(Wr().b[9][0]++,mR&&(Wr().b[9][1]++,Ae.jsxs(Za,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(ZE,{}),e("Save as")]}))),Ae.jsxs(Za,{onClick:this.createHtml.bind(this),children:[Ae.jsx(VV,{}),e("Create HTML")]})]})]})})}}const hAe=(Wr().s[46]++,Ns()(cAe));function F2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return F2=function(){return l},l}F2();class NN extends Jn.Component{render(){return F2().f[0]++,F2().s[0]++,Ae.jsx(OC,{label:this.props.label,children:Ae.jsx(wN,{...this.props})})}}function L2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{s
Line truncated
|
||||
`)>=0)return!1;return!0}function qt(Xe,ae){var ve;if(Xe.indent===" ")ve=" ";else if(typeof Xe.indent=="number"&&Xe.indent>0)ve=ie.call(Array(Xe.indent+1)," ");else return null;return{base:ve,prev:ie.call(Array(ae+1),ve)}}function Jt(Xe,ae){if(Xe.length===0)return"";var ve=`
|
||||
`+ae.prev+ae.base;return ve+ie.call(Xe,","+ve)+`
|
||||
`+ae.prev}function $n(Xe,ae){var ve=Ut(Xe),p=[];if(ve){p.length=Xe.length;for(var We=0;We<Xe.length;We++)p[We]=Rt(Xe,We)?ae(Xe[We],Xe):""}var Be=typeof me=="function"?me(Xe):[],rt;if(Le){rt={};for(var ut=0;ut<Be.length;ut++)rt["$"+Be[ut]]=Be[ut]}for(var ot in Xe)Rt(Xe,ot)&&(ve&&String(Number(ot))===ot&&ot<Xe.length||Le&&rt["$"+ot]instanceof Symbol||(ne.call(/[^\w$]/,ot)?p.push(ae(ot,Xe)+": "+ae(Xe[ot],Xe)):p.push(ot+": "+ae(Xe[ot],Xe))));if(typeof me=="function")for(var zt=0;zt<Be.length;zt++)pt.call(Xe,Be[zt])&&p.push("["+ae(Be[zt])+"]: "+ae(Xe[Be[zt]],Xe));return p}return FS}var LS,xR;function VAe(){if(xR)return LS;xR=1;var n=e3(),e=Gy(),t=function(o,f,v){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===f)return x.next=B.next,v||(B.next=o.next,o.next=B),B},r=function(o,f){if(o){var v=t(o,f);return v&&v.value}},i=function(o,f,v){var x=t(o,f);x?x.value=v:o.next={key:f,next:o.next,value:v}},s=function(o,f){return o?!!t(o,f):!1},l=function(o,f){if(o)return t(o,f,!0)};return LS=function(){var f,v={assert:function(x){if(!v.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=f&&f.next,k=l(f,x);return k&&B&&B===k&&(f=void 0),!!k},get:function(x){return r(f,x)},has:function(x){return s(f,x)},set:function(x,B){f||(f={next:void 0}),i(f,x,B)}};return v},LS}var US,MR;function YN(){return MR||(MR=1,US=Object),US}var zS,wR;function HAe(){return wR||(wR=1,zS=Error),zS}var NS,SR;function $Ae(){return SR||(SR=1,NS=EvalError),NS}var WS,ER;function ZAe(){return ER||(ER=1,WS=RangeError),WS}var jS,BR;function XAe(){return BR||(BR=1,jS=ReferenceError),jS}var GS,OR;function JAe(){return OR||(OR=1,GS=SyntaxError),GS}var QS,IR;function eue(){return IR||(IR=1,QS=URIError),QS}var YS,TR;function tue(){return TR||(TR=1,YS=Math.abs),YS}var qS,kR;function nue(){return kR||(kR=1,qS=Math.floor),qS}var VS,PR;function rue(){return PR||(PR=1,VS=Math.max),VS}var HS,KR;function iue(){return KR||(KR=1,HS=Math.min),HS}var $S,RR;function oue(){return RR||(RR=1,$S=Math.pow),$S}var ZS,DR;function sue(){return DR||(DR=1,ZS=Math.round),ZS}var XS,FR;function aue(){return FR||(FR=1,XS=Number.isNaN||function(e){return e!==e}),XS}var JS,LR;function lue(){if(LR)return JS;LR=1;var n=aue();return JS=function(t){return n(t)||t===0?t:t<0?-1:1},JS}var eE,UR;function Aue(){return UR||(UR=1,eE=Object.getOwnPropertyDescriptor),eE}var tE,zR;function qN(){if(zR)return tE;zR=1;var n=Aue();if(n)try{n([],"length")}catch{n=null}return tE=n,tE}var nE,NR;function uue(){if(NR)return nE;NR=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return nE=n,nE}var rE,WR;function cue(){return WR||(WR=1,rE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),rE}var iE,jR;function hue(){if(jR)return iE;jR=1;var n=typeof Symbol<"u"&&Symbol,e=cue();return iE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},iE}var oE,GR;function VN(){return GR||(GR=1,oE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),oE}var sE,QR;function HN(){if(QR)return sE;QR=1;var n=YN();return sE=n.getPrototypeOf||null,sE}var aE,YR;function due(){if(YR)return aE;YR=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(f,v){for(var x=[],B=0;B<f.length;B+=1)x[B]=f[B];for(var k=0;k<v.length;k+=1)x[k+f.length]=v[k];return x},s=function(f,v){for(var x=[],B=v,k=0;B<f.length;B+=1,k+=1)x[k]=f[B];return x},l=function(o,f){for(var v="",x=0;x<o.length;x+=1)v+=o[x],x+1<o.length&&(v+=f);return v};return aE=function(f){var v=this;if(typeof v!="function"||e.apply(v)!==r)throw new TypeError(n+v);for(var x=s(arguments,1),B,k=function(){if(this instanceof B){var V=v.apply(this,i(x,arguments));return Object(V)===V?V:this}return v.apply(f,i(x,arguments))},P=t(0,v.length-x.length),U=[],N=0;N<P;N++)U[N]="$"+N;if(B=Function("binder","return function ("+l(U,",")+"){ return binder.apply(this,arguments); }")(k),v.prototype){var W=function(){};W.prototype=v.prototype,B.prototype=new W,W.prototype=null}return B},aE}var lE,qR;function t3(){if(qR)return lE;qR=1;var n=due();return lE=Function.prototype.bind||n,lE}var AE,VR;function e8(){return VR||(VR=1,AE=Function.prototype.call),AE}var uE,HR;function $Line truncated
|
||||
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),f=["%","/","?",";","#"].concat(o),v=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},U={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=xue();function V(q,ne,G){if(q&&typeof q=="object"&&q instanceof e)return q;var ie=new e;return ie.parse(q,ne,G),ie}e.prototype.parse=function(q,ne,G){if(typeof q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof q);var ie=q.indexOf("?"),de=ie!==-1&&ie<q.indexOf("#")?"?":"#",fe=q.split(de),Ee=/\\/g;fe[0]=fe[0].replace(Ee,"/"),q=fe.join(de);var me=q;if(me=me.trim(),!G&&q.split("#").length===1){var Me=i.exec(me);if(Me)return this.path=me,this.href=me,this.pathname=Me[1],Me[2]?(this.search=Me[2],ne?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):ne&&(this.search="",this.query={}),this}var Le=t.exec(me);if(Le){Le=Le[0];var xe=Le.toLowerCase();this.protocol=xe,me=me.substr(Le.length)}if(G||Le||me.match(/^\/\/[^@/]+@[^@/]+/)){var pt=me.substr(0,2)==="//";pt&&!(Le&&U[Le])&&(me=me.substr(2),this.slashes=!0)}if(!U[Le]&&(pt||Le&&!N[Le])){for(var Je=-1,Ve=0;Ve<v.length;Ve++){var je=me.indexOf(v[Ve]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}var Se,Fe;Je===-1?Fe=me.lastIndexOf("@"):Fe=me.lastIndexOf("@",Je),Fe!==-1&&(Se=me.slice(0,Fe),me=me.slice(Fe+1),this.auth=decodeURIComponent(Se)),Je=-1;for(var Ve=0;Ve<f.length;Ve++){var je=me.indexOf(f[Ve]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}Je===-1&&(Je=me.length),this.host=me.slice(0,Je),me=me.slice(Je),this.parseHost(),this.hostname=this.hostname||"";var Ze=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Ze)for(var _t=this.hostname.split(/\./),Ve=0,Qt=_t.length;Ve<Qt;Ve++){var gt=_t[Ve];if(gt&&!gt.match(B)){for(var Ut="",Pt=0,ze=gt.length;Pt<ze;Pt++)gt.charCodeAt(Pt)>127?Ut+="x":Ut+=gt[Pt];if(!Ut.match(B)){var Ke=_t.slice(0,Ve),Oe=_t.slice(Ve+1),it=gt.match(k);it&&(Ke.push(it[1]),Oe.unshift(it[2])),Oe.length&&(me="/"+Oe.join(".")+me),this.hostname=Ke.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),Ze||(this.hostname=n.toASCII(this.hostname));var Ct=this.port?":"+this.port:"",dt=this.hostname||"";this.host=dt+Ct,this.href+=this.host,Ze&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),me[0]!=="/"&&(me="/"+me))}if(!P[xe])for(var Ve=0,Qt=o.length;Ve<Qt;Ve++){var Dt=o[Ve];if(me.indexOf(Dt)!==-1){var $t=encodeURIComponent(Dt);$t===Dt&&($t=escape(Dt)),me=me.split(Dt).join($t)}}var Rt=me.indexOf("#");Rt!==-1&&(this.hash=me.substr(Rt),me=me.slice(0,Rt));var bn=me.indexOf("?");if(bn!==-1?(this.search=me.substr(bn),this.query=me.substr(bn+1),ne&&(this.query=W.parse(this.query)),me=me.slice(0,bn)):ne&&(this.search="",this.query={}),me&&(this.pathname=me),N[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ct=this.pathname||"",Yn=this.search||"";this.path=Ct+Yn}return this.href=this.format(),this};function $(q){return typeof q=="string"&&(q=V(q)),q instanceof e?q.format():e.prototype.format.call(q)}e.prototype.format=function(){var q=this.auth||"";q&&(q=encodeURIComponent(q),q=q.replace(/%3A/i,":"),q+="@");var ne=this.protocol||"",G=this.pathname||"",ie=this.hash||"",de=!1,fe="";this.host?de=q+this.host:this.hostname&&(de=q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(de+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(fe=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Ee=this.search||fe&&"?"+fe||"";return ne&&ne.substr(-1)!==":"&&(ne+=":"),this.slashes||(!ne||N[ne])&&de!==!1?(de="//"+(de||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):de||(de=""),ie&&ie.charAt(0)!=="#"&&(ie="#"+ie),Ee&&Ee.charAt(0)!=="?"&&(Ee="?"+Ee),G=G.replace(/[?#]/g,function(me){return encodeURIComponent(me)}),Ee=Ee.replace("#","%23"),ne+de+G+Ee+ie};function oe(q,ne){return V(q,!1,!0).resolve(ne)}e.prototype.resolve=function(q){return this.resolveObject(V(q,!1,!0)).format()};function te(q,ne){return q?V(q,!1,!0).resolveObject(ne):ne}return e.prototype.resolveObject=function(q){if(typeof q=="string"){var ne=new e;ne.parse(q,!1,!0),q=ne}for(var G=new e,ie=Object.keys(this),de=0;de<ie.length;de++){var fe=ie[de];G[fe]=this[fe]}if(G.hash=q.hash,q.href==="")return G.href=G.format(),G;if(q.slashes&&!q.protocol){for(var Ee=Object.keys(q),me=0;me<Ee.length;me++){var Me=Ee[me];Me!=="protocol"&&(G[Me]=q[Me])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(q.protocol&&q.protocol!==G.protocol){if(!N[q.protocol]){for(var Le=Object.keys(q),xe=0;xe<Le.length;xe++){var pt=Le[xe];G[pt]=q[pt]}return G.href=G.format(),G}if(G.protocol=q.protocol,!q.host&&!U[q.protocol]){for(var Qt=(q.pathname||"").split("/");Qt.length&&!(q.host=Qt.shift()););q.host||(q.host=""),q.hostname
Line truncated
|
||||
`),i=(Wr().s[9]++,new Blob([r],{type:"text/html;charset=utf-8"})),s=(Wr().s[10]++,this.exportName());Wr().s[11]++,bR.saveAs(i,s+".html")}async saveStyle(){Wr().f[3]++;const e=(Wr().s[12]++,this.tokenizedStyle());if(Wr().s[13]++,MR)Wr().b[2][1]++;else{Wr().b[2][0]++;const i=(Wr().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),s=(Wr().s[15]++,this.exportName());Wr().s[16]++,bR.saveAs(i,s+".json"),Wr().s[17]++;return}let t=(Wr().s[18]++,this.props.fileHandle);if(Wr().s[19]++,t==null)if(Wr().b[3][0]++,Wr().s[20]++,t=await this.createFileHandle(),Wr().s[21]++,this.props.onSetFileHandle(t),Wr().s[22]++,t==null){Wr().b[4][0]++,Wr().s[23]++;return}else Wr().b[4][1]++;else Wr().b[3][1]++;const r=(Wr().s[24]++,await t.createWritable());Wr().s[25]++,await r.write(e),Wr().s[26]++,await r.close(),Wr().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Wr().f[4]++;const e=(Wr().s[28]++,this.tokenizedStyle()),t=(Wr().s[29]++,await this.createFileHandle());if(Wr().s[30]++,this.props.onSetFileHandle(t),Wr().s[31]++,t==null){Wr().b[5][0]++,Wr().s[32]++;return}else Wr().b[5][1]++;const r=(Wr().s[33]++,await t.createWritable());Wr().s[34]++,await r.write(e),Wr().s[35]++,await r.close(),Wr().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Wr().f[5]++;const e=(Wr().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Wr().s[38]++,await window.showSaveFilePicker(e));return Wr().s[39]++,this.props.onSetFileHandle(t),Wr().s[40]++,t}changeMetadataProperty(e,t){Wr().f[6]++;const r=(Wr().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Wr().s[42]++,this.props.onStyleChanged(r)}render(){Wr().f[7]++;const e=(Wr().s[43]++,this.props.t),t=(Wr().s[44]++,qN(e));return Wr().s[45]++,Ae.jsx(Y0,{"data-wd-key":"modal:export",isOpen:this.props.isOpen,onOpenToggle:this.props.onOpenToggle,title:e("Save Style"),className:"maputnik-export-modal",children:Ae.jsxs("section",{className:"maputnik-modal-section",children:[Ae.jsx("h1",{children:e("Save Style")}),Ae.jsx("p",{children:e("Save the JSON style to your computer.")}),Ae.jsxs("div",{children:[Ae.jsx(qp,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Wr().b[6][0]++,this.props.mapStyle.metadata||(Wr().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(qp,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Wr().b[7][0]++,this.props.mapStyle.metadata||(Wr().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(qp,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Wr().b[8][0]++,this.props.mapStyle.metadata||(Wr().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Xa,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(o6,{}),e("Save")]}),(Wr().b[9][0]++,MR&&(Wr().b[9][1]++,Ae.jsxs(Xa,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(o6,{}),e("Save as")]}))),Ae.jsxs(Xa,{onClick:this.createHtml.bind(this),children:[Ae.jsx(AH,{}),e("Create HTML")]})]})]})})}}const EAe=(Wr().s[46]++,Ns()(SAe));function N2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="950dd35e62562a3439b74678b95f406e749c6958",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:139}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:6,column:2},end:{line:6,column:3}},loc:{start:{line:6,column:11},end:{line:8,column:3}},line:6}},branchMap:{},s:{0:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAWM;AAXN,OAAO,WAAW;AAClB,OAAO,uBAA2E;AAClF,OAAO,cAAc;AAMrB,qBAAqB,0BAA0B,MAAM,UAAkC;AAAA,EACrF,SAAS;AACP,WAAO,oBAAC,YAAS,OAAO,KAAK,MAAM,OACjC,8BAAC,qBAAmB,GAAG,KAAK,OAAO,GACrC;AAAA,EACF;AACF;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"950dd35e62562a3439b74678b95f406e749c6958"},s=t[r]||(t[r]={});(!s[n]||s[n].hash!==e)&&(s[n]=i);var l=s[n];return N2=function(){return l},l}N2();class ZN extends Zn.Component{render(){return N2().f[0]++,N2().s[0]++,Ae.jsx(PC,{label:this.props.label,children:Ae.jsx(RN,{...this.props})})}}function W2(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",e="a27c35e986d22656fa80c276efb67df518853ac2",t=globalThis,r="__coverage__",i={path:"/home/runner/work/maputnik/maputnik/src/components/FieldCheckbox.tsx",statementMap:{0:{start:{line:7,column:4},end:{line:7,column:132}}},fnMap:{0:{name:"(anonymous_0)",decl:{s
Line truncated
|
||||
`)>=0)return!1;return!0}function Ht(He,ae){var _e;if(He.indent===" ")_e=" ";else if(typeof He.indent=="number"&&He.indent>0)_e=oe.call(Array(He.indent+1)," ");else return null;return{base:_e,prev:oe.call(Array(ae+1),_e)}}function Zt(He,ae){if(He.length===0)return"";var _e=`
|
||||
`+ae.prev+ae.base;return _e+oe.call(He,","+_e)+`
|
||||
`+ae.prev}function Jn(He,ae){var _e=Ut(He),f=[];if(_e){f.length=He.length;for(var Qe=0;Qe<He.length;Qe++)f[Qe]=Rt(He,Qe)?ae(He[Qe],He):""}var Ee=typeof me=="function"?me(He):[],it;if(qe){it={};for(var ut=0;ut<Ee.length;ut++)it["$"+Ee[ut]]=Ee[ut]}for(var at in He)Rt(He,at)&&(_e&&String(Number(at))===at&&at<He.length||qe&&it["$"+at]instanceof Symbol||(te.call(/[^\w$]/,at)?f.push(ae(at,He)+": "+ae(He[at],He)):f.push(at+": "+ae(He[at],He))));if(typeof me=="function")for(var zt=0;zt<Ee.length;zt++)vt.call(He,Ee[zt])&&f.push("["+ae(Ee[zt])+"]: "+ae(He[Ee[zt]],He));return f}return GS}var QS,TR;function Aue(){if(TR)return QS;TR=1;var n=a3(),e=qy(),t=function(o,p,v){for(var x=o,B;(B=x.next)!=null;x=B)if(B.key===p)return x.next=B.next,v||(B.next=o.next,o.next=B),B},r=function(o,p){if(o){var v=t(o,p);return v&&v.value}},i=function(o,p,v){var x=t(o,p);x?x.value=v:o.next={key:p,next:o.next,value:v}},s=function(o,p){return o?!!t(o,p):!1},l=function(o,p){if(o)return t(o,p,!0)};return QS=function(){var p,v={assert:function(x){if(!v.has(x))throw new e("Side channel does not contain "+n(x))},delete:function(x){var B=p&&p.next,k=l(p,x);return k&&B&&B===k&&(p=void 0),!!k},get:function(x){return r(p,x)},has:function(x){return s(p,x)},set:function(x,B){p||(p={next:void 0}),i(p,x,B)}};return v},QS}var YS,kR;function nW(){return kR||(kR=1,YS=Object),YS}var qS,PR;function uue(){return PR||(PR=1,qS=Error),qS}var VS,KR;function cue(){return KR||(KR=1,VS=EvalError),VS}var HS,RR;function hue(){return RR||(RR=1,HS=RangeError),HS}var $S,DR;function due(){return DR||(DR=1,$S=ReferenceError),$S}var ZS,FR;function fue(){return FR||(FR=1,ZS=SyntaxError),ZS}var XS,LR;function pue(){return LR||(LR=1,XS=URIError),XS}var JS,UR;function mue(){return UR||(UR=1,JS=Math.abs),JS}var eE,zR;function gue(){return zR||(zR=1,eE=Math.floor),eE}var tE,NR;function yue(){return NR||(NR=1,tE=Math.max),tE}var nE,WR;function vue(){return WR||(WR=1,nE=Math.min),nE}var rE,jR;function Cue(){return jR||(jR=1,rE=Math.pow),rE}var iE,GR;function _ue(){return GR||(GR=1,iE=Math.round),iE}var oE,QR;function bue(){return QR||(QR=1,oE=Number.isNaN||function(e){return e!==e}),oE}var sE,YR;function xue(){if(YR)return sE;YR=1;var n=bue();return sE=function(t){return n(t)||t===0?t:t<0?-1:1},sE}var aE,qR;function Mue(){return qR||(qR=1,aE=Object.getOwnPropertyDescriptor),aE}var lE,VR;function rW(){if(VR)return lE;VR=1;var n=Mue();if(n)try{n([],"length")}catch{n=null}return lE=n,lE}var AE,HR;function wue(){if(HR)return AE;HR=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return AE=n,AE}var uE,$R;function Sue(){return $R||($R=1,uE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),uE}var cE,ZR;function Eue(){if(ZR)return cE;ZR=1;var n=typeof Symbol<"u"&&Symbol,e=Sue();return cE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},cE}var hE,XR;function iW(){return XR||(XR=1,hE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hE}var dE,JR;function oW(){if(JR)return dE;JR=1;var n=nW();return dE=n.getPrototypeOf||null,dE}var fE,eD;function Bue(){if(eD)return fE;eD=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(p,v){for(var x=[],B=0;B<p.length;B+=1)x[B]=p[B];for(var k=0;k<v.length;k+=1)x[k+p.length]=v[k];return x},s=function(p,v){for(var x=[],B=v,k=0;B<p.length;B+=1,k+=1)x[k]=p[B];return x},l=function(o,p){for(var v="",x=0;x<o.length;x+=1)v+=o[x],x+1<o.length&&(v+=p);return v};return fE=function(p){var v=this;if(typeof v!="function"||e.apply(v)!==r)throw new TypeError(n+v);for(var x=s(arguments,1),B,k=function(){if(this instanceof B){var V=v.apply(this,i(x,arguments));return Object(V)===V?V:this}return v.apply(p,i(x,arguments))},P=t(0,v.length-x.length),D=[],N=0;N<P;N++)D[N]="$"+N;if(B=Function("binder","return function ("+l(D,",")+"){ return binder.apply(this,arguments); }")(k),v.prototype){var W=function(){};W.prototype=v.prototype,B.prototype=new W,W.prototype=null}return B},fE}var pE,tD;function l3(){if(tD)return pE;tD=1;var n=Bue();return pE=Function.prototype.bind||n,pE}var mE,nD;function a8(){return nD||(nD=1,mE=Function.prototype.call),mE}var gE,rD;function s
Line truncated
|
||||
`," "],l=["{","}","|","\\","^","`"].concat(s),o=["'"].concat(l),p=["%","/","?",";","#"].concat(o),v=["/","?","#"],x=255,B=/^[+a-z0-9A-Z_-]{0,63}$/,k=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P={javascript:!0,"javascript:":!0},D={javascript:!0,"javascript:":!0},N={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},W=Lue();function V(q,te,G){if(q&&typeof q=="object"&&q instanceof e)return q;var oe=new e;return oe.parse(q,te,G),oe}e.prototype.parse=function(q,te,G){if(typeof q!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof q);var oe=q.indexOf("?"),fe=oe!==-1&&oe<q.indexOf("#")?"?":"#",he=q.split(fe),Me=/\\/g;he[0]=he[0].replace(Me,"/"),q=he.join(fe);var me=q;if(me=me.trim(),!G&&q.split("#").length===1){var pe=i.exec(me);if(pe)return this.path=me,this.href=me,this.pathname=pe[1],pe[2]?(this.search=pe[2],te?this.query=W.parse(this.search.substr(1)):this.query=this.search.substr(1)):te&&(this.search="",this.query={}),this}var qe=t.exec(me);if(qe){qe=qe[0];var Se=qe.toLowerCase();this.protocol=Se,me=me.substr(qe.length)}if(G||qe||me.match(/^\/\/[^@/]+@[^@/]+/)){var vt=me.substr(0,2)==="//";vt&&!(qe&&D[qe])&&(me=me.substr(2),this.slashes=!0)}if(!D[qe]&&(vt||qe&&!N[qe])){for(var Je=-1,Ke=0;Ke<v.length;Ke++){var je=me.indexOf(v[Ke]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}var Pe,Le;Je===-1?Le=me.lastIndexOf("@"):Le=me.lastIndexOf("@",Je),Le!==-1&&(Pe=me.slice(0,Le),me=me.slice(Le+1),this.auth=decodeURIComponent(Pe)),Je=-1;for(var Ke=0;Ke<p.length;Ke++){var je=me.indexOf(p[Ke]);je!==-1&&(Je===-1||je<Je)&&(Je=je)}Je===-1&&(Je=me.length),this.host=me.slice(0,Je),me=me.slice(Je),this.parseHost(),this.hostname=this.hostname||"";var Xe=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!Xe)for(var Ct=this.hostname.split(/\./),Ke=0,Gt=Ct.length;Ke<Gt;Ke++){var mt=Ct[Ke];if(mt&&!mt.match(B)){for(var Ut="",kt=0,Te=mt.length;kt<Te;kt++)mt.charCodeAt(kt)>127?Ut+="x":Ut+=mt[kt];if(!Ut.match(B)){var Re=Ct.slice(0,Ke),Ue=Ct.slice(Ke+1),nt=mt.match(k);nt&&(Re.push(nt[1]),Ue.unshift(nt[2])),Ue.length&&(me="/"+Ue.join(".")+me),this.hostname=Re.join(".");break}}}this.hostname.length>x?this.hostname="":this.hostname=this.hostname.toLowerCase(),Xe||(this.hostname=n.toASCII(this.hostname));var _t=this.port?":"+this.port:"",gt=this.hostname||"";this.host=gt+_t,this.href+=this.host,Xe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),me[0]!=="/"&&(me="/"+me))}if(!P[Se])for(var Ke=0,Gt=o.length;Ke<Gt;Ke++){var Kt=o[Ke];if(me.indexOf(Kt)!==-1){var $t=encodeURIComponent(Kt);$t===Kt&&($t=escape(Kt)),me=me.split(Kt).join($t)}}var Rt=me.indexOf("#");Rt!==-1&&(this.hash=me.substr(Rt),me=me.slice(0,Rt));var _n=me.indexOf("?");if(_n!==-1?(this.search=me.substr(_n),this.query=me.substr(_n+1),te&&(this.query=W.parse(this.query)),me=me.slice(0,_n)):te&&(this.search="",this.query={}),me&&(this.pathname=me),N[Se]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var _t=this.pathname||"",pr=this.search||"";this.path=_t+pr}return this.href=this.format(),this};function $(q){return typeof q=="string"&&(q=V(q)),q instanceof e?q.format():e.prototype.format.call(q)}e.prototype.format=function(){var q=this.auth||"";q&&(q=encodeURIComponent(q),q=q.replace(/%3A/i,":"),q+="@");var te=this.protocol||"",G=this.pathname||"",oe=this.hash||"",fe=!1,he="";this.host?fe=q+this.host:this.hostname&&(fe=q+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(fe+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(he=W.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var Me=this.search||he&&"?"+he||"";return te&&te.substr(-1)!==":"&&(te+=":"),this.slashes||(!te||N[te])&&fe!==!1?(fe="//"+(fe||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):fe||(fe=""),oe&&oe.charAt(0)!=="#"&&(oe="#"+oe),Me&&Me.charAt(0)!=="?"&&(Me="?"+Me),G=G.replace(/[?#]/g,function(me){return encodeURIComponent(me)}),Me=Me.replace("#","%23"),te+fe+G+Me+oe};function ie(q,te){return V(q,!1,!0).resolve(te)}e.prototype.resolve=function(q){return this.resolveObject(V(q,!1,!0)).format()};function ne(q,te){return q?V(q,!1,!0).resolveObject(te):te}return e.prototype.resolveObject=function(q){if(typeof q=="string"){var te=new e;te.parse(q,!1,!0),q=te}for(var G=new e,oe=Object.keys(this),fe=0;fe<oe.length;fe++){var he=oe[fe];G[he]=this[he]}if(G.hash=q.hash,q.href==="")return G.href=G.format(),G;if(q.slashes&&!q.protocol){for(var Me=Object.keys(q),me=0;me<Me.length;me++){var pe=Me[me];pe!=="protocol"&&(G[pe]=q[pe])}return N[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if(q.protocol&&q.protocol!==G.protocol){if(!N[q.protocol]){for(var qe=Object.keys(q),Se=0;Se<qe.length;Se++){var vt=qe[Se];G[vt]=q[vt]}return G.href=G.format(),G}if(G.protocol=q.protocol,!q.host&&!D[q.protocol]){for(var Gt=(q.pathname||"").split("/");Gt.length&&!(q.host=Gt.shift()););q.host||(q.host=""),q.hostname
Line truncated
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||||
this file except in compliance with the License. You may obtain a copy of the
|
||||
@@ -960,10 +952,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */var N6=function(n,e){return N6=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},N6(n,e)};function sW(n,e){N6(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Kue(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function Rue(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function Due(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Rue(arguments[e]));return n}var aW=function(){function n(e,t){this.target=t,this.type=e}return n}(),Fue=function(n){sW(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(aW),Lue=function(n){sW(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(aW);/*!
|
||||
***************************************************************************** */var H6=function(n,e){return H6=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])},H6(n,e)};function mW(n,e){H6(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Hue(n){var e=typeof Symbol=="function"&&n[Symbol.iterator],t=0;return e?e.call(n):{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}function $ue(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,s=[],l;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)s.push(i.value)}catch(o){l={error:o}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(l)throw l.error}}return s}function Zue(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat($ue(arguments[e]));return n}var gW=function(){function n(e,t){this.target=t,this.type=e}return n}(),Xue=function(n){mW(e,n);function e(t,r){var i=n.call(this,"error",r)||this;return i.message=t.message,i.error=t,i}return e}(gW),Jue=function(n){mW(e,n);function e(t,r,i){t===void 0&&(t=1e3),r===void 0&&(r="");var s=n.call(this,"close",i)||this;return s.wasClean=!0,s.code=t,s.reason=r,s}return e}(gW);/*!
|
||||
* Reconnecting WebSocket
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var Uue=function(){if(typeof WebSocket<"u")return WebSocket},zue=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},ag={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},Nue=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?ag.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(f){return i._ws.send(f)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(f){return i._callEventListener(s,f)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?ag.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var s=Kue(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(f){t={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._liLine truncated
|
||||
//# sourceMappingURL=index-DXSkBE4g.js.map
|
||||
*/var ece=function(){if(typeof WebSocket<"u")return WebSocket},tce=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},ug={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0},nce=function(){function n(e,t,r){var i=this;r===void 0&&(r={}),this._listeners={error:[],message:[],open:[],close:[]},this._retryCount=-1,this._shouldReconnect=!0,this._connectLock=!1,this._binaryType="blob",this._closeCalled=!1,this._messageQueue=[],this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this._handleOpen=function(s){i._debug("open event");var l=i._options.minUptime,o=l===void 0?ug.minUptime:l;clearTimeout(i._connectTimeout),i._uptimeTimeout=setTimeout(function(){return i._acceptOpen()},o),i._ws.binaryType=i._binaryType,i._messageQueue.forEach(function(p){return i._ws.send(p)}),i._messageQueue=[],i.onopen&&i.onopen(s),i._listeners.open.forEach(function(p){return i._callEventListener(s,p)})},this._handleMessage=function(s){i._debug("message event"),i.onmessage&&i.onmessage(s),i._listeners.message.forEach(function(l){return i._callEventListener(s,l)})},this._handleError=function(s){i._debug("error event",s.message),i._disconnect(void 0,s.message==="TIMEOUT"?"timeout":void 0),i.onerror&&i.onerror(s),i._debug("exec error listeners"),i._listeners.error.forEach(function(l){return i._callEventListener(s,l)}),i._connect()},this._handleClose=function(s){i._debug("close event"),i._clearTimeouts(),i._shouldReconnect&&i._connect(),i.onclose&&i.onclose(s),i._listeners.close.forEach(function(l){return i._callEventListener(s,l)})},this._url=e,this._protocols=t,this._options=r,this._options.startClosed&&(this._shouldReconnect=!1),this._connect()}return Object.defineProperty(n,"CONNECTING",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(n,"OPEN",{get:function(){return 1},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSING",{get:function(){return 2},enumerable:!0,configurable:!0}),Object.defineProperty(n,"CLOSED",{get:function(){return 3},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CONNECTING",{get:function(){return n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"OPEN",{get:function(){return n.OPEN},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSING",{get:function(){return n.CLOSING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"CLOSED",{get:function(){return n.CLOSED},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"binaryType",{get:function(){return this._ws?this._ws.binaryType:this._binaryType},set:function(e){this._binaryType=e,this._ws&&(this._ws.binaryType=e)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"retryCount",{get:function(){return Math.max(this._retryCount,0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"bufferedAmount",{get:function(){var e=this._messageQueue.reduce(function(t,r){return typeof r=="string"?t+=r.length:r instanceof Blob?t+=r.size:t+=r.byteLength,t},0);return e+(this._ws?this._ws.bufferedAmount:0)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"extensions",{get:function(){return this._ws?this._ws.extensions:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"protocol",{get:function(){return this._ws?this._ws.protocol:""},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"readyState",{get:function(){return this._ws?this._ws.readyState:this._options.startClosed?n.CLOSED:n.CONNECTING},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"url",{get:function(){return this._ws?this._ws.url:""},enumerable:!0,configurable:!0}),n.prototype.close=function(e,t){if(e===void 0&&(e=1e3),this._closeCalled=!0,this._shouldReconnect=!1,this._clearTimeouts(),!this._ws){this._debug("close enqueued: no ws instance");return}if(this._ws.readyState===this.CLOSED){this._debug("close: already closed");return}this._ws.close(e,t)},n.prototype.reconnect=function(e,t){this._shouldReconnect=!0,this._closeCalled=!1,this._retryCount=-1,!this._ws||this._ws.readyState===this.CLOSED?this._connect():(this._disconnect(e,t),this._connect())},n.prototype.send=function(e){if(this._ws&&this._ws.readyState===this.OPEN)this._debug("send",e),this._ws.send(e);else{var t=this._options.maxEnqueuedMessages,r=t===void 0?ug.maxEnqueuedMessages:t;this._messageQueue.length<r&&(this._debug("enqueue",e),this._messageQueue.push(e))}},n.prototype.addEventListener=function(e,t){this._listeners[e]&&this._listeners[e].push(t)},n.prototype.dispatchEvent=function(e){var t,r,i=this._listeners[e.type];if(i)try{for(var s=Hue(i),l=s.next();!l.done;l=s.next()){var o=l.value;this._callEventListener(e,o)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._liLine truncated
|
||||
//# sourceMappingURL=index-DLBoRPQN.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"mappings":"mhDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
|
||||
{"version":3,"mappings":"mhDAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASa,IAAIA,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,cAAc,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,eAAe,EAAEC,EAAE,OAAO,IAAI,mBAAmB,EAAEC,EAAE,OAAO,IAAI,gBAAgB,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,IAAI,YAAY,EAAEC,EAAE,OAAO,SAAS,SAASC,EAAEC,GAAE,CAAC,OAAUA,KAAP,MAAqB,OAAOA,IAAlB,SAA2B,MAAKA,GAAEF,GAAGE,GAAEF,CAAC,GAAGE,GAAE,YAAY,EAAqB,OAAOA,IAApB,WAAsBA,GAAE,KAAI,CAC1e,IAAIC,EAAE,CAAC,UAAU,UAAU,CAAO,QAAE,EAAE,mBAAmB,UAAU,CAAC,EAAE,oBAAoB,UAAU,CAAC,EAAE,gBAAgB,UAAU,CAAC,GAAGC,EAAE,OAAO,OAAOC,EAAE,CAAC,EAAE,SAASC,EAAEJ,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAACG,EAAE,UAAU,iBAAiB,CAAC,EACpQA,EAAE,UAAU,SAAS,SAASJ,GAAEK,GAAE,CAAI,GAAW,OAAOL,IAAlB,UAAkC,OAAOA,IAApB,YAA6BA,IAAN,KAAc,YAAM,uHAAuH,EAAE,KAAK,QAAQ,gBAAgB,KAAKA,GAAEK,GAAE,UAAU,CAAC,EAAED,EAAE,UAAU,YAAY,SAASJ,GAAE,CAAC,KAAK,QAAQ,mBAAmB,KAAKA,GAAE,aAAa,CAAC,EAAE,SAASO,GAAG,CAAC,CAACA,EAAE,UAAUH,EAAE,UAAU,SAASI,EAAER,GAAEK,GAAEC,GAAE,CAAC,KAAK,MAAMN,GAAE,KAAK,QAAQK,GAAE,KAAK,KAAKF,EAAE,KAAK,QAAQG,IAAGL,CAAC,CAAC,IAAIQ,GAAED,EAAE,UAAU,IAAID,EACrfE,GAAE,YAAYD,EAAEN,EAAEO,GAAEL,EAAE,SAAS,EAAEK,GAAE,qBAAqB,GAAG,IAAIC,GAAE,MAAM,QAAQC,EAAE,OAAO,UAAU,eAAeC,GAAE,CAAC,QAAQ,MAAMC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,SAAS,EAAE,EACxK,SAASC,GAAEd,GAAEK,GAAEC,GAAE,CAAC,IAAIS,GAAEC,GAAE,GAAGC,GAAE,KAAKC,GAAE,KAAK,GAASb,IAAN,KAAY,IAAAU,MAAcV,GAAE,MAAX,SAAiBa,GAAEb,GAAE,KAAcA,GAAE,MAAX,SAAiBY,GAAE,GAAGZ,GAAE,KAAKA,GAAIM,EAAA,KAAKN,GAAEU,EAAC,GAAG,CAACF,EAAE,eAAeE,EAAC,IAAIC,GAAED,EAAC,EAAEV,GAAEU,EAAC,GAAO,IAAAI,GAAE,UAAU,OAAO,EAAK,GAAIA,KAAJ,EAAMH,GAAE,SAASV,WAAU,EAAEa,GAAE,CAAC,QAAQC,GAAE,MAAMD,EAAC,EAAEE,GAAE,EAAEA,GAAEF,GAAEE,KAAMD,GAAAC,EAAC,EAAE,UAAUA,GAAE,CAAC,EAAEL,GAAE,SAASI,EAAA,CAAE,GAAGpB,IAAGA,GAAE,aAAiB,IAAAe,MAAKI,GAAEnB,GAAE,aAAamB,GAAWH,GAAED,EAAC,IAAZ,SAAgBC,GAAED,EAAC,EAAEI,GAAEJ,EAAC,GAAG,MAAM,CAAC,SAAS5B,EAAE,KAAKa,GAAE,IAAIiB,GAAE,IAAIC,GAAE,MAAMF,GAAE,OAAOJ,GAAE,OAAO,CAAC,CAC7a,SAASU,GAAEtB,GAAEK,GAAE,CAAC,MAAM,CAAC,SAASlB,EAAE,KAAKa,GAAE,KAAK,IAAIK,GAAE,IAAIL,GAAE,IAAI,MAAMA,GAAE,MAAM,OAAOA,GAAE,MAAM,CAAC,CAAC,SAASuB,GAAEvB,GAAE,CAAC,OAAiB,OAAOA,IAAlB,UAA4BA,KAAP,MAAUA,GAAE,WAAWb,CAAC,CAAC,SAASqC,GAAOxB,GAAE,CAAC,IAAIK,GAAE,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE,MAAM,IAAIL,GAAE,QAAQ,QAAQ,SAASA,GAAE,CAAC,OAAOK,GAAEL,EAAC,EAAE,CAAC,CAAC,IAAIyB,GAAE,OAAO,SAASC,GAAE1B,GAAEK,GAAE,CAAC,OAAiB,OAAOL,IAAlB,UAA4BA,KAAP,MAAgBA,GAAE,KAAR,KAAYwB,GAAO,GAAGxB,GAAE,GAAG,EAAEK,GAAE,SAAS,EAAE,CAAC,CAC/W,SAASsB,GAAE3B,GAAEK,GAAEC,GAAES,GAAEC,GAAE,CAAC,IAAIC,GAAE,OAAOjB,IAAmBiB,KAAd,aAA6BA,KAAZ,aAAgBjB,GAAA,MAAK,IAAIkB,GAAE,GAAM,GAAOlB,KAAP,KAAWkB,GAAA,eAAeD,GAAE,CAAC,IAAK,SAAS,IAAK,SAAWC,GAAA,GAAG,MAAM,IAAK,SAAS,OAAOlB,GAAE,SAAS,CAAC,KAAKb,EAAE,KAAKC,EAAI8B,GAAA,GAAE,CAAE,GAAGA,GAAS,OAAAA,GAAElB,GAAEgB,GAAEA,GAAEE,EAAC,EAAElB,GAAOe,KAAL,GAAO,IAAIW,GAAER,GAAE,CAAC,EAAEH,GAAEL,GAAEM,EAAC,GAAGV,GAAE,GAASN,IAAN,OAAUM,GAAEN,GAAE,QAAQyB,GAAE,KAAK,EAAE,KAAKE,GAAEX,GAAEX,GAAEC,GAAE,GAAG,SAASN,GAAE,CAAQA,SAAA,CAAE,GAASgB,IAAN,OAAUO,GAAEP,EAAC,IAAIA,GAAEM,GAAEN,GAAEV,IAAG,CAACU,GAAE,KAAKE,IAAGA,GAAE,MAAMF,GAAE,IAAI,IAAI,GAAGA,GAAE,KAAK,QAAQS,GAAE,KAAK,EAAE,KAAKzB,EAAC,GAAGK,GAAE,KAAKW,EAAC,GAAG,EAA4B,GAAxBE,GAAA,EAAIH,GAAKA,KAAL,GAAO,IAAIA,GAAE,IAAOL,GAAEV,EAAC,EAAE,QAAQmB,GAAE,EAAEA,GAAEnB,GAAE,OAAOmB,KAAI,CAACF,GACrfjB,GAAEmB,EAAC,EAAE,IAAIC,GAAEL,GAAEW,GAAET,GAAEE,EAAC,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAUI,GAAErB,EAAEC,EAAC,EAAe,OAAOoB,IAApB,WAAsB,IAAIpB,GAAEoB,GAAE,KAAKpB,EAAC,EAAEmB,GAAE,EAAE,EAAEF,GAAEjB,GAAE,KAAK,GAAG,MAAQiB,MAAE,MAAMG,GAAEL,GAAEW,GAAET,GAAEE,IAAG,EAAED,IAAGS,GAAEV,GAAEZ,GAAEC,GAAEc,GAAEJ,EAAC,UAAqBC,KAAX,SAAmB,MAAAZ,GAAE,OAAOL,EAAC,EAAE,MAAM,mDAAuEK,KAApB,kBAAsB,qBAAqB,OAAO,KAAKL,EAAC,EAAE,KAAK,IAAI,EAAE,IAAIK,IAAG,2EAA2E,EAAS,OAAAa,EAAC,CACzZ,SAASU,GAAE5B,GAAEK,GAAEC,GAAE,CAAI,GAAMN,IAAN,KAAe,OAAAA,GAAM,IAAAe,GAAE,GAAGC,GAAE,EAAE,OAAAW,GAAE3B,GAAEe,GAAE,GAAG,GAAG,SAASf,GAAE,CAAC,OAAOK,GAAE,KAAKC,GAAEN,GAAEgB,IAAG,EAAE,EAASD,EAAC,CAAC,SAASc,GAAE7B,GAAE,CAAI,GAAKA,GAAE,UAAP,GAAe,CAAC,IAAIK,GAAEL,GAAE,QAAQK,GAAEA,GAAE,EAAIA,GAAA,KAAK,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAC,EAAE,SAASA,GAAE,EAAQL,GAAE,UAAN,GAAoBA,GAAE,UAAP,MAAiBA,GAAA,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAE,EAAOL,GAAE,UAAP,KAAiBA,GAAE,QAAQ,EAAEA,GAAE,QAAQK,GAAA,CAAG,GAAOL,GAAE,UAAN,EAAc,OAAOA,GAAE,QAAQ,QAAQ,MAAMA,GAAE,OAAQ,CAC5Z,IAAI8B,GAAE,CAAC,QAAQ,IAAI,EAAEC,GAAE,CAAC,WAAW,IAAI,EAAEC,GAAE,CAAC,uBAAuBF,GAAE,wBAAwBC,GAAE,kBAAkBnB,EAAC,EAAE,SAASqB,IAAG,CAAC,MAAM,MAAM,0DAA0D,CAAE,CACzM,OAAAC,GAAA,SAAiB,CAAC,IAAIN,GAAE,QAAQ,SAAS5B,GAAEK,GAAEC,GAAE,CAACsB,GAAE5B,GAAE,UAAU,CAAGK,GAAA,MAAM,KAAK,SAAS,GAAGC,EAAC,CAAC,EAAE,MAAM,SAASN,GAAE,CAAC,IAAIK,GAAE,EAAE,OAAAuB,GAAE5B,GAAE,UAAU,CAACK,IAAA,CAAI,EAASA,EAAC,EAAE,QAAQ,SAASL,GAAE,CAAQ,OAAA4B,GAAE5B,GAAE,SAASA,GAAE,CAAQA,SAAE,IAAG,CAAC,CAAC,EAAE,KAAK,SAASA,GAAE,CAAC,GAAG,CAACuB,GAAEvB,EAALine truncated
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-DXSkBE4g.js"></script>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-DLBoRPQN.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-__g11m4y.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user