mirror of
https://github.com/maputnik/editor.git
synced 2026-12-05 16:24:20 +00:00
deploy: 69143ea5d6
This commit is contained in:
1 parent
12c5dd912b
commit
542e7777d8
3 files changed
+136
-136
No files matched your search
@@ -1,4 +1,4 @@
|
||||
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function t(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=t(r);fetch(r.href,a)}})();function AA(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function SB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return 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(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var e4={exports:{}},hC={};/**
|
||||
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const l of a.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&i(l)}).observe(document,{childList:!0,subtree:!0});function t(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=t(r);fetch(r.href,a)}})();function cu(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function OB(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var e=n.default;if(typeof e=="function"){var t=function i(){var r=!1;try{r=this instanceof i}catch{}return 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(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),t}var i4={exports:{}},dC={};/**
|
||||
* @license React
|
||||
* react-jsx-runtime.production.js
|
||||
*
|
||||
@@ -6,7 +6,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var s7;function HG(){if(s7)return hC;s7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:n,type:i,key:l,ref:r!==void 0?r:null,props:a}}return hC.Fragment=e,hC.jsx=t,hC.jsxs=t,hC}var l7;function VG(){return l7||(l7=1,e4.exports=HG()),e4.exports}var Ae=VG(),t4={exports:{}},ia={};/**
|
||||
*/var l7;function VG(){if(l7)return dC;l7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(i,r,a){var l=null;if(a!==void 0&&(l=""+a),r.key!==void 0&&(l=""+r.key),"key"in r){a={};for(var o in r)o!=="key"&&(a[o]=r[o])}else a=r;return r=a.ref,{$$typeof:n,type:i,key:l,ref:r!==void 0?r:null,props:a}}return dC.Fragment=e,dC.jsx=t,dC.jsxs=t,dC}var A7;function $G(){return A7||(A7=1,i4.exports=VG()),i4.exports}var Ae=$G(),r4={exports:{}},oa={};/**
|
||||
* @license React
|
||||
* react.production.js
|
||||
*
|
||||
@@ -14,7 +14,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var u7;function $G(){if(u7)return ia;u7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),O=Symbol.iterator;function U(be){return be===null||typeof be!="object"?null:(be=O&&be[O]||be["@@iterator"],typeof be=="function"?be:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,W={};function Y(be,Ne,tt){this.props=be,this.context=Ne,this.refs=W,this.updater=tt||K}Y.prototype.isReactComponent={},Y.prototype.setState=function(be,Ne){if(typeof be!="object"&&typeof be!="function"&&be!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,be,Ne,"setState")},Y.prototype.forceUpdate=function(be){this.updater.enqueueForceUpdate(this,be,"forceUpdate")};function te(){}te.prototype=Y.prototype;function J(be,Ne,tt){this.props=be,this.context=Ne,this.refs=W,this.updater=tt||K}var oe=J.prototype=new te;oe.constructor=J,j(oe,Y.prototype),oe.isPureReactComponent=!0;var ne=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},ae=Object.prototype.hasOwnProperty;function G(be,Ne,tt,lt,kt,gt){return tt=gt.ref,{$$typeof:n,type:be,key:Ne,ref:tt!==void 0?tt:null,props:gt}}function ce(be,Ne){return G(be.type,Ne,void 0,void 0,void 0,be.props)}function ge(be){return typeof be=="object"&&be!==null&&be.$$typeof===n}function ye(be){var Ne={"=":"=0",":":"=2"};return"$"+be.replace(/[=:]/g,function(tt){return Ne[tt]})}var we=/\/+/g;function Oe(be,Ne){return typeof be=="object"&&be!==null&&be.key!=null?ye(""+be.key):Ne.toString(36)}function Se(){}function Ve(be){switch(be.status){case"fulfilled":return be.value;case"rejected":throw be.reason;default:switch(typeof be.status=="string"?be.then(Se,Se):(be.status="pending",be.then(function(Ne){be.status==="pending"&&(be.status="fulfilled",be.value=Ne)},function(Ne){be.status==="pending"&&(be.status="rejected",be.reason=Ne)})),be.status){case"fulfilled":return be.value;case"rejected":throw be.reason}}throw be}function xe(be,Ne,tt,lt,kt){var gt=typeof be;(gt==="undefined"||gt==="boolean")&&(be=null);var St=!1;if(be===null)St=!0;else switch(gt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(be.$$typeof){case n:case e:St=!0;break;case w:return St=be._init,xe(St(be._payload),Ne,tt,lt,kt)}}if(St)return kt=kt(be),St=lt===""?"."+Oe(be,0):lt,ne(kt)?(tt="",St!=null&&(tt=St.replace(we,"$&/")+"/"),xe(kt,Ne,tt,"",function(Ke){return Ke})):kt!=null&&(ge(kt)&&(kt=ce(kt,tt+(kt.key==null||be&&be.key===kt.key?"":(""+kt.key).replace(we,"$&/")+"/")+St)),Ne.push(kt)),1;St=0;var Ut=lt===""?".":lt+":";if(ne(be))for(var Fe=0;Fe<be.length;Fe++)lt=be[Fe],gt=Ut+Oe(lt,Fe),St+=xe(lt,Ne,tt,gt,kt);else if(Fe=U(be),typeof Fe=="function")for(be=Fe.call(be),Fe=0;!(lt=be.next()).done;)lt=lt.value,gt=Ut+Oe(lt,Fe++),St+=xe(lt,Ne,tt,gt,kt);else if(gt==="object"){if(typeof be.then=="function")return xe(Ve(be),Ne,tt,lt,kt);throw Ne=String(be),Error("Objects are not valid as a React child (found: "+(Ne==="[object Object]"?"object with keys {"+Object.keys(be).join(", ")+"}":Ne)+"). If you meant to render a collection of children, use an array instead.")}return St}function ze(be,Ne,tt){if(be==null)return be;var lt=[],kt=0;return xe(be,lt,"","",function(gt){return Ne.call(tt,gt,kt++)}),lt}function st(be){if(be._status===-1){var Ne=be._result;Ne=Ne(),Ne.then(function(tt){(be._status===0||be._status===-1)&&(be._status=1,be._result=tt)},function(tt){(be._status===0||be._status===-1)&&(be._status=2,be._result=tt)}),be._status===-1&&(be._status=0,be._result=Ne)}if(be._status===1)return be._result.default;throw be._result}var Ct=typeof reportError=="function"?reportError:function(be){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof be=="object"&&be!==null&&typeof be.message=="string"?String(be.message):String(be),error:be});if(!window.dispatchEvent(Ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",be);return}console.error(be)};function nt(){}return ia.Children={map:ze,forEach:function(be,Ne,tt){ze(be,function(){Ne.apply(this,arguments)},tt)},count:function(be){var Ne=0;return ze(be,function(){Ne++}),Ne},toArray:function(be){return ze(be,function(Ne){return Ne})||[]},only:function(be){if(!ge(be))throw Error("React.Children.only expected to receive a single React element child.");return be}},ia.Component=Y,ia.Fragment=t,ia.Profiler=r,ia.PureComponent=J,ia.StrictMode=i,ia.Suspense=p,ia.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,ia.__COMPILER_RUNTIMELine truncated
|
||||
*/var u7;function ZG(){if(u7)return oa;u7=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),C=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),O=Symbol.iterator;function U(be){return be===null||typeof be!="object"?null:(be=O&&be[O]||be["@@iterator"],typeof be=="function"?be:null)}var K={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,W={};function Y(be,Ne,tt){this.props=be,this.context=Ne,this.refs=W,this.updater=tt||K}Y.prototype.isReactComponent={},Y.prototype.setState=function(be,Ne){if(typeof be!="object"&&typeof be!="function"&&be!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,be,Ne,"setState")},Y.prototype.forceUpdate=function(be){this.updater.enqueueForceUpdate(this,be,"forceUpdate")};function te(){}te.prototype=Y.prototype;function J(be,Ne,tt){this.props=be,this.context=Ne,this.refs=W,this.updater=tt||K}var oe=J.prototype=new te;oe.constructor=J,j(oe,Y.prototype),oe.isPureReactComponent=!0;var ne=Array.isArray,$={H:null,A:null,T:null,S:null,V:null},ae=Object.prototype.hasOwnProperty;function G(be,Ne,tt,lt,kt,gt){return tt=gt.ref,{$$typeof:n,type:be,key:Ne,ref:tt!==void 0?tt:null,props:gt}}function ce(be,Ne){return G(be.type,Ne,void 0,void 0,void 0,be.props)}function ge(be){return typeof be=="object"&&be!==null&&be.$$typeof===n}function ye(be){var Ne={"=":"=0",":":"=2"};return"$"+be.replace(/[=:]/g,function(tt){return Ne[tt]})}var we=/\/+/g;function Ie(be,Ne){return typeof be=="object"&&be!==null&&be.key!=null?ye(""+be.key):Ne.toString(36)}function Se(){}function Ve(be){switch(be.status){case"fulfilled":return be.value;case"rejected":throw be.reason;default:switch(typeof be.status=="string"?be.then(Se,Se):(be.status="pending",be.then(function(Ne){be.status==="pending"&&(be.status="fulfilled",be.value=Ne)},function(Ne){be.status==="pending"&&(be.status="rejected",be.reason=Ne)})),be.status){case"fulfilled":return be.value;case"rejected":throw be.reason}}throw be}function xe(be,Ne,tt,lt,kt){var gt=typeof be;(gt==="undefined"||gt==="boolean")&&(be=null);var St=!1;if(be===null)St=!0;else switch(gt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(be.$$typeof){case n:case e:St=!0;break;case M:return St=be._init,xe(St(be._payload),Ne,tt,lt,kt)}}if(St)return kt=kt(be),St=lt===""?"."+Ie(be,0):lt,ne(kt)?(tt="",St!=null&&(tt=St.replace(we,"$&/")+"/"),xe(kt,Ne,tt,"",function(Ke){return Ke})):kt!=null&&(ge(kt)&&(kt=ce(kt,tt+(kt.key==null||be&&be.key===kt.key?"":(""+kt.key).replace(we,"$&/")+"/")+St)),Ne.push(kt)),1;St=0;var Ut=lt===""?".":lt+":";if(ne(be))for(var Fe=0;Fe<be.length;Fe++)lt=be[Fe],gt=Ut+Ie(lt,Fe),St+=xe(lt,Ne,tt,gt,kt);else if(Fe=U(be),typeof Fe=="function")for(be=Fe.call(be),Fe=0;!(lt=be.next()).done;)lt=lt.value,gt=Ut+Ie(lt,Fe++),St+=xe(lt,Ne,tt,gt,kt);else if(gt==="object"){if(typeof be.then=="function")return xe(Ve(be),Ne,tt,lt,kt);throw Ne=String(be),Error("Objects are not valid as a React child (found: "+(Ne==="[object Object]"?"object with keys {"+Object.keys(be).join(", ")+"}":Ne)+"). If you meant to render a collection of children, use an array instead.")}return St}function ze(be,Ne,tt){if(be==null)return be;var lt=[],kt=0;return xe(be,lt,"","",function(gt){return Ne.call(tt,gt,kt++)}),lt}function st(be){if(be._status===-1){var Ne=be._result;Ne=Ne(),Ne.then(function(tt){(be._status===0||be._status===-1)&&(be._status=1,be._result=tt)},function(tt){(be._status===0||be._status===-1)&&(be._status=2,be._result=tt)}),be._status===-1&&(be._status=0,be._result=Ne)}if(be._status===1)return be._result.default;throw be._result}var Ct=typeof reportError=="function"?reportError:function(be){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Ne=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof be=="object"&&be!==null&&typeof be.message=="string"?String(be.message):String(be),error:be});if(!window.dispatchEvent(Ne))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",be);return}console.error(be)};function nt(){}return oa.Children={map:ze,forEach:function(be,Ne,tt){ze(be,function(){Ne.apply(this,arguments)},tt)},count:function(be){var Ne=0;return ze(be,function(){Ne++}),Ne},toArray:function(be){return ze(be,function(Ne){return Ne})||[]},only:function(be){if(!ge(be))throw Error("React.Children.only expected to receive a single React element child.");return be}},oa.Component=Y,oa.Fragment=t,oa.Profiler=r,oa.PureComponent=J,oa.StrictMode=i,oa.Suspense=p,oa.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=$,oa.__COMPILER_RUNTIMELine truncated
|
||||
* @license React
|
||||
* scheduler.production.js
|
||||
*
|
||||
@@ -22,7 +22,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var h7;function rW(){return h7||(h7=1,function(n){function e(ze,st){var Ct=ze.length;ze.push(st);e:for(;0<Ct;){var nt=Ct-1>>>1,be=ze[nt];if(0<r(be,st))ze[nt]=st,ze[Ct]=be,Ct=nt;else break e}}function t(ze){return ze.length===0?null:ze[0]}function i(ze){if(ze.length===0)return null;var st=ze[0],Ct=ze.pop();if(Ct!==st){ze[0]=Ct;e:for(var nt=0,be=ze.length,Ne=be>>>1;nt<Ne;){var tt=2*(nt+1)-1,lt=ze[tt],kt=tt+1,gt=ze[kt];if(0>r(lt,Ct))kt<be&&0>r(gt,lt)?(ze[nt]=gt,ze[kt]=Ct,nt=kt):(ze[nt]=lt,ze[tt]=Ct,nt=tt);else if(kt<be&&0>r(gt,Ct))ze[nt]=gt,ze[kt]=Ct,nt=kt;else break e}}return st}function r(ze,st){var Ct=ze.sortIndex-st.sortIndex;return Ct!==0?Ct:ze.id-st.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var p=[],C=[],w=1,O=null,U=3,K=!1,j=!1,W=!1,Y=!1,te=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function ne(ze){for(var st=t(C);st!==null;){if(st.callback===null)i(C);else if(st.startTime<=ze)i(C),st.sortIndex=st.expirationTime,e(p,st);else break;st=t(C)}}function $(ze){if(W=!1,ne(ze),!j)if(t(p)!==null)j=!0,ae||(ae=!0,Oe());else{var st=t(C);st!==null&&xe($,st.startTime-ze)}}var ae=!1,G=-1,ce=5,ge=-1;function ye(){return Y?!0:!(n.unstable_now()-ge<ce)}function we(){if(Y=!1,ae){var ze=n.unstable_now();ge=ze;var st=!0;try{e:{j=!1,W&&(W=!1,J(G),G=-1),K=!0;var Ct=U;try{t:{for(ne(ze),O=t(p);O!==null&&!(O.expirationTime>ze&&ye());){var nt=O.callback;if(typeof nt=="function"){O.callback=null,U=O.priorityLevel;var be=nt(O.expirationTime<=ze);if(ze=n.unstable_now(),typeof be=="function"){O.callback=be,ne(ze),st=!0;break t}O===t(p)&&i(p),ne(ze)}else i(p);O=t(p)}if(O!==null)st=!0;else{var Ne=t(C);Ne!==null&&xe($,Ne.startTime-ze),st=!1}}break e}finally{O=null,U=Ct,K=!1}st=void 0}}finally{st?Oe():ae=!1}}}var Oe;if(typeof oe=="function")Oe=function(){oe(we)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Ve=Se.port2;Se.port1.onmessage=we,Oe=function(){Ve.postMessage(null)}}else Oe=function(){te(we,0)};function xe(ze,st){G=te(function(){ze(n.unstable_now())},st)}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(ze){ze.callback=null},n.unstable_forceFrameRate=function(ze){0>ze||125<ze?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<ze?Math.floor(1e3/ze):5},n.unstable_getCurrentPriorityLevel=function(){return U},n.unstable_next=function(ze){switch(U){case 1:case 2:case 3:var st=3;break;default:st=U}var Ct=U;U=st;try{return ze()}finally{U=Ct}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(ze,st){switch(ze){case 1:case 2:case 3:case 4:case 5:break;default:ze=3}var Ct=U;U=ze;try{return st()}finally{U=Ct}},n.unstable_scheduleCallback=function(ze,st,Ct){var nt=n.unstable_now();switch(typeof Ct=="object"&&Ct!==null?(Ct=Ct.delay,Ct=typeof Ct=="number"&&0<Ct?nt+Ct:nt):Ct=nt,ze){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Ct+be,ze={id:w++,callback:st,priorityLevel:ze,startTime:Ct,expirationTime:be,sortIndex:-1},Ct>nt?(ze.sortIndex=Ct,e(C,ze),t(p)===null&&ze===t(C)&&(W?(J(G),G=-1):W=!0,xe($,Ct-nt))):(ze.sortIndex=be,e(p,ze),j||K||(j=!0,ae||(ae=!0,Oe()))),ze},n.unstable_shouldYield=ye,n.unstable_wrapCallback=function(ze){var st=U;return function(){var Ct=U;U=st;try{return ze.apply(this,arguments)}finally{U=Ct}}}}(r4)),r4}var d7;function oW(){return d7||(d7=1,i4.exports=rW()),i4.exports}var o4={exports:{}},Ph={};/**
|
||||
*/var d7;function oW(){return d7||(d7=1,function(n){function e(ze,st){var Ct=ze.length;ze.push(st);e:for(;0<Ct;){var nt=Ct-1>>>1,be=ze[nt];if(0<r(be,st))ze[nt]=st,ze[Ct]=be,Ct=nt;else break e}}function t(ze){return ze.length===0?null:ze[0]}function i(ze){if(ze.length===0)return null;var st=ze[0],Ct=ze.pop();if(Ct!==st){ze[0]=Ct;e:for(var nt=0,be=ze.length,Ne=be>>>1;nt<Ne;){var tt=2*(nt+1)-1,lt=ze[tt],kt=tt+1,gt=ze[kt];if(0>r(lt,Ct))kt<be&&0>r(gt,lt)?(ze[nt]=gt,ze[kt]=Ct,nt=kt):(ze[nt]=lt,ze[tt]=Ct,nt=tt);else if(kt<be&&0>r(gt,Ct))ze[nt]=gt,ze[kt]=Ct,nt=kt;else break e}}return st}function r(ze,st){var Ct=ze.sortIndex-st.sortIndex;return Ct!==0?Ct:ze.id-st.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;n.unstable_now=function(){return a.now()}}else{var l=Date,o=l.now();n.unstable_now=function(){return l.now()-o}}var p=[],C=[],M=1,O=null,U=3,K=!1,j=!1,W=!1,Y=!1,te=typeof setTimeout=="function"?setTimeout:null,J=typeof clearTimeout=="function"?clearTimeout:null,oe=typeof setImmediate<"u"?setImmediate:null;function ne(ze){for(var st=t(C);st!==null;){if(st.callback===null)i(C);else if(st.startTime<=ze)i(C),st.sortIndex=st.expirationTime,e(p,st);else break;st=t(C)}}function $(ze){if(W=!1,ne(ze),!j)if(t(p)!==null)j=!0,ae||(ae=!0,Ie());else{var st=t(C);st!==null&&xe($,st.startTime-ze)}}var ae=!1,G=-1,ce=5,ge=-1;function ye(){return Y?!0:!(n.unstable_now()-ge<ce)}function we(){if(Y=!1,ae){var ze=n.unstable_now();ge=ze;var st=!0;try{e:{j=!1,W&&(W=!1,J(G),G=-1),K=!0;var Ct=U;try{t:{for(ne(ze),O=t(p);O!==null&&!(O.expirationTime>ze&&ye());){var nt=O.callback;if(typeof nt=="function"){O.callback=null,U=O.priorityLevel;var be=nt(O.expirationTime<=ze);if(ze=n.unstable_now(),typeof be=="function"){O.callback=be,ne(ze),st=!0;break t}O===t(p)&&i(p),ne(ze)}else i(p);O=t(p)}if(O!==null)st=!0;else{var Ne=t(C);Ne!==null&&xe($,Ne.startTime-ze),st=!1}}break e}finally{O=null,U=Ct,K=!1}st=void 0}}finally{st?Ie():ae=!1}}}var Ie;if(typeof oe=="function")Ie=function(){oe(we)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Ve=Se.port2;Se.port1.onmessage=we,Ie=function(){Ve.postMessage(null)}}else Ie=function(){te(we,0)};function xe(ze,st){G=te(function(){ze(n.unstable_now())},st)}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(ze){ze.callback=null},n.unstable_forceFrameRate=function(ze){0>ze||125<ze?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<ze?Math.floor(1e3/ze):5},n.unstable_getCurrentPriorityLevel=function(){return U},n.unstable_next=function(ze){switch(U){case 1:case 2:case 3:var st=3;break;default:st=U}var Ct=U;U=st;try{return ze()}finally{U=Ct}},n.unstable_requestPaint=function(){Y=!0},n.unstable_runWithPriority=function(ze,st){switch(ze){case 1:case 2:case 3:case 4:case 5:break;default:ze=3}var Ct=U;U=ze;try{return st()}finally{U=Ct}},n.unstable_scheduleCallback=function(ze,st,Ct){var nt=n.unstable_now();switch(typeof Ct=="object"&&Ct!==null?(Ct=Ct.delay,Ct=typeof Ct=="number"&&0<Ct?nt+Ct:nt):Ct=nt,ze){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Ct+be,ze={id:M++,callback:st,priorityLevel:ze,startTime:Ct,expirationTime:be,sortIndex:-1},Ct>nt?(ze.sortIndex=Ct,e(C,ze),t(p)===null&&ze===t(C)&&(W?(J(G),G=-1):W=!0,xe($,Ct-nt))):(ze.sortIndex=be,e(p,ze),j||K||(j=!0,ae||(ae=!0,Ie()))),ze},n.unstable_shouldYield=ye,n.unstable_wrapCallback=function(ze){var st=U;return function(){var Ct=U;U=st;try{return ze.apply(this,arguments)}finally{U=Ct}}}}(s4)),s4}var f7;function aW(){return f7||(f7=1,a4.exports=oW()),a4.exports}var l4={exports:{}},Kh={};/**
|
||||
* @license React
|
||||
* react-dom.production.js
|
||||
*
|
||||
@@ -30,7 +30,7 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var f7;function aW(){if(f7)return Ph;f7=1;var n=Ol();function e(p){var C="https://react.dev/errors/"+p;if(1<arguments.length){C+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)C+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+p+"; visit "+C+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function a(p,C,w){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:O==null?null:""+O,children:p,containerInfo:C,implementation:w}}var l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(p,C){if(p==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return Ph.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Ph.createPortal=function(p,C){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(e(299));return a(p,C,null,w)},Ph.flushSync=function(p){var C=l.T,w=i.p;try{if(l.T=null,i.p=2,p)return p()}finally{l.T=C,i.p=w,i.d.f()}},Ph.preconnect=function(p,C){typeof p=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,i.d.C(p,C))},Ph.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Ph.preinit=function(p,C){if(typeof p=="string"&&C&&typeof C.as=="string"){var w=C.as,O=o(w,C.crossOrigin),U=typeof C.integrity=="string"?C.integrity:void 0,K=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;w==="style"?i.d.S(p,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:O,integrity:U,fetchPriority:K}):w==="script"&&i.d.X(p,{crossOrigin:O,integrity:U,fetchPriority:K,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},Ph.preinitModule=function(p,C){if(typeof p=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var w=o(C.as,C.crossOrigin);i.d.M(p,{crossOrigin:w,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0})}}else C==null&&i.d.M(p)},Ph.preload=function(p,C){if(typeof p=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var w=C.as,O=o(w,C.crossOrigin);i.d.L(p,w,{crossOrigin:O,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0,type:typeof C.type=="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority=="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy=="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet=="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes=="string"?C.imageSizes:void 0,media:typeof C.media=="string"?C.media:void 0})}},Ph.preloadModule=function(p,C){if(typeof p=="string")if(C){var w=o(C.as,C.crossOrigin);i.d.m(p,{as:typeof C.as=="string"&&C.as!=="script"?C.as:void 0,crossOrigin:w,integrity:typeof C.integrity=="string"?C.integrity:void 0})}else i.d.m(p)},Ph.requestFormReset=function(p){i.d.r(p)},Ph.unstable_batchedUpdates=function(p,C){return p(C)},Ph.useFormState=function(p,C,w){return l.H.useFormState(p,C,w)},Ph.useFormStatus=function(){return l.H.useHostTransitionStatus()},Ph.version="19.1.1",Ph}var p7;function O3(){if(p7)return o4.exports;p7=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),o4.exports=aW(),o4.exports}var m7;function sW(){if(m7)return dC;m7=1;/**
|
||||
*/var p7;function sW(){if(p7)return Kh;p7=1;var n=Il();function e(p){var C="https://react.dev/errors/"+p;if(1<arguments.length){C+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)C+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+p+"; visit "+C+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var i={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},r=Symbol.for("react.portal");function a(p,C,M){var O=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:O==null?null:""+O,children:p,containerInfo:C,implementation:M}}var l=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(p,C){if(p==="font")return"";if(typeof C=="string")return C==="use-credentials"?C:""}return Kh.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Kh.createPortal=function(p,C){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!C||C.nodeType!==1&&C.nodeType!==9&&C.nodeType!==11)throw Error(e(299));return a(p,C,null,M)},Kh.flushSync=function(p){var C=l.T,M=i.p;try{if(l.T=null,i.p=2,p)return p()}finally{l.T=C,i.p=M,i.d.f()}},Kh.preconnect=function(p,C){typeof p=="string"&&(C?(C=C.crossOrigin,C=typeof C=="string"?C==="use-credentials"?C:"":void 0):C=null,i.d.C(p,C))},Kh.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Kh.preinit=function(p,C){if(typeof p=="string"&&C&&typeof C.as=="string"){var M=C.as,O=o(M,C.crossOrigin),U=typeof C.integrity=="string"?C.integrity:void 0,K=typeof C.fetchPriority=="string"?C.fetchPriority:void 0;M==="style"?i.d.S(p,typeof C.precedence=="string"?C.precedence:void 0,{crossOrigin:O,integrity:U,fetchPriority:K}):M==="script"&&i.d.X(p,{crossOrigin:O,integrity:U,fetchPriority:K,nonce:typeof C.nonce=="string"?C.nonce:void 0})}},Kh.preinitModule=function(p,C){if(typeof p=="string")if(typeof C=="object"&&C!==null){if(C.as==null||C.as==="script"){var M=o(C.as,C.crossOrigin);i.d.M(p,{crossOrigin:M,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0})}}else C==null&&i.d.M(p)},Kh.preload=function(p,C){if(typeof p=="string"&&typeof C=="object"&&C!==null&&typeof C.as=="string"){var M=C.as,O=o(M,C.crossOrigin);i.d.L(p,M,{crossOrigin:O,integrity:typeof C.integrity=="string"?C.integrity:void 0,nonce:typeof C.nonce=="string"?C.nonce:void 0,type:typeof C.type=="string"?C.type:void 0,fetchPriority:typeof C.fetchPriority=="string"?C.fetchPriority:void 0,referrerPolicy:typeof C.referrerPolicy=="string"?C.referrerPolicy:void 0,imageSrcSet:typeof C.imageSrcSet=="string"?C.imageSrcSet:void 0,imageSizes:typeof C.imageSizes=="string"?C.imageSizes:void 0,media:typeof C.media=="string"?C.media:void 0})}},Kh.preloadModule=function(p,C){if(typeof p=="string")if(C){var M=o(C.as,C.crossOrigin);i.d.m(p,{as:typeof C.as=="string"&&C.as!=="script"?C.as:void 0,crossOrigin:M,integrity:typeof C.integrity=="string"?C.integrity:void 0})}else i.d.m(p)},Kh.requestFormReset=function(p){i.d.r(p)},Kh.unstable_batchedUpdates=function(p,C){return p(C)},Kh.useFormState=function(p,C,M){return l.H.useFormState(p,C,M)},Kh.useFormStatus=function(){return l.H.useHostTransitionStatus()},Kh.version="19.1.1",Kh}var m7;function I3(){if(m7)return l4.exports;m7=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),l4.exports=sW(),l4.exports}var g7;function lW(){if(g7)return fC;g7=1;/**
|
||||
* @license React
|
||||
* react-dom-client.production.js
|
||||
*
|
||||
@@ -38,49 +38,49 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var n=oW(),e=Ol(),t=O3();function i(A){var m="https://react.dev/errors/"+A;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+A+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(A){return!(!A||A.nodeType!==1&&A.nodeType!==9&&A.nodeType!==11)}function a(A){var m=A,b=A;if(A.alternate)for(;m.return;)m=m.return;else{A=m;do m=A,(m.flags&4098)!==0&&(b=m.return),A=m.return;while(A)}return m.tag===3?b:null}function l(A){if(A.tag===13){var m=A.memoizedState;if(m===null&&(A=A.alternate,A!==null&&(m=A.memoizedState)),m!==null)return m.dehydrated}return null}function o(A){if(a(A)!==A)throw Error(i(188))}function p(A){var m=A.alternate;if(!m){if(m=a(A),m===null)throw Error(i(188));return m!==A?null:A}for(var b=A,T=m;;){var Q=b.return;if(Q===null)break;var se=Q.alternate;if(se===null){if(T=Q.return,T!==null){b=T;continue}break}if(Q.child===se.child){for(se=Q.child;se;){if(se===b)return o(Q),A;if(se===T)return o(Q),m;se=se.sibling}throw Error(i(188))}if(b.return!==T.return)b=Q,T=se;else{for(var Ge=!1,ot=Q.child;ot;){if(ot===b){Ge=!0,b=Q,T=se;break}if(ot===T){Ge=!0,T=Q,b=se;break}ot=ot.sibling}if(!Ge){for(ot=se.child;ot;){if(ot===b){Ge=!0,b=se,T=Q;break}if(ot===T){Ge=!0,T=se,b=Q;break}ot=ot.sibling}if(!Ge)throw Error(i(189))}}if(b.alternate!==T)throw Error(i(190))}if(b.tag!==3)throw Error(i(188));return b.stateNode.current===b?A:m}function C(A){var m=A.tag;if(m===5||m===26||m===27||m===6)return A;for(A=A.child;A!==null;){if(m=C(A),m!==null)return m;A=A.sibling}return null}var w=Object.assign,O=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),J=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function Oe(A){return A===null||typeof A!="object"?null:(A=we&&A[we]||A["@@iterator"],typeof A=="function"?A:null)}var Se=Symbol.for("react.client.reference");function Ve(A){if(A==null)return null;if(typeof A=="function")return A.$$typeof===Se?null:A.displayName||A.name||null;if(typeof A=="string")return A;switch(A){case j:return"Fragment";case Y:return"Profiler";case W:return"StrictMode";case $:return"Suspense";case ae:return"SuspenseList";case ge:return"Activity"}if(typeof A=="object")switch(A.$$typeof){case K:return"Portal";case oe:return(A.displayName||"Context")+".Provider";case J:return(A._context.displayName||"Context")+".Consumer";case ne:var m=A.render;return A=A.displayName,A||(A=m.displayName||m.name||"",A=A!==""?"ForwardRef("+A+")":"ForwardRef"),A;case G:return m=A.displayName||null,m!==null?m:Ve(A.type)||"Memo";case ce:m=A._payload,A=A._init;try{return Ve(A(m))}catch{}}return null}var xe=Array.isArray,ze=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},nt=[],be=-1;function Ne(A){return{current:A}}function tt(A){0>be||(A.current=nt[be],nt[be]=null,be--)}function lt(A,m){be++,nt[be]=A.current,A.current=m}var kt=Ne(null),gt=Ne(null),St=Ne(null),Ut=Ne(null);function Fe(A,m){switch(lt(St,m),lt(gt,A),lt(kt,null),m.nodeType){case 9:case 11:A=(A=m.documentElement)&&(A=A.namespaceURI)?ll(A):0;break;default:if(A=m.tagName,m=m.namespaceURI)m=ll(m),A=ul(m,A);else switch(A){case"svg":A=1;break;case"math":A=2;break;default:A=0}}tt(kt),lt(kt,A)}function Ke(){tt(kt),tt(gt),tt(St)}function Re(A){A.memoizedState!==null&<(Ut,A);var m=kt.current,b=ul(m,A.type);m!==b&&(lt(gt,A),lt(kt,b))}function He(A){gt.current===A&&(tt(kt),tt(gt)),Ut.current===A&&(tt(Ut),Qt._currentValue=Ct)}var bt=Object.prototype.hasOwnProperty,_t=n.unstable_scheduleCallback,Ot=n.unstable_cancelCallback,qt=n.unstable_shouldYield,Kt=n.unstable_requestPaint,on=n.unstable_now,Jn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,$n=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,In=n.unstable_IdlePriority,Oi=n.log,ei=n.unstable_setDisableYieldValue,Kn=null,je=null;function de(A){if(typeof Oi=="function"&&ei(A),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(Kn,A)}catch{}}var re=Math.clz32?Math.clz32:Te,le=Math.log,pe=Math.LN2;function Te(A){return A>>>=0,A===0?32:31-(le(A)/pe|0)|0}var We=256,dt=4194304;function Ye(A){var m=A&42;if(m!==0)return m;switch(A&-A){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:caLine truncated
|
||||
*/var n=aW(),e=Il(),t=I3();function i(u){var m="https://react.dev/errors/"+u;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)m+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+u+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var m=u,b=u;if(u.alternate)for(;m.return;)m=m.return;else{u=m;do m=u,(m.flags&4098)!==0&&(b=m.return),u=m.return;while(u)}return m.tag===3?b:null}function l(u){if(u.tag===13){var m=u.memoizedState;if(m===null&&(u=u.alternate,u!==null&&(m=u.memoizedState)),m!==null)return m.dehydrated}return null}function o(u){if(a(u)!==u)throw Error(i(188))}function p(u){var m=u.alternate;if(!m){if(m=a(u),m===null)throw Error(i(188));return m!==u?null:u}for(var b=u,T=m;;){var Q=b.return;if(Q===null)break;var se=Q.alternate;if(se===null){if(T=Q.return,T!==null){b=T;continue}break}if(Q.child===se.child){for(se=Q.child;se;){if(se===b)return o(Q),u;if(se===T)return o(Q),m;se=se.sibling}throw Error(i(188))}if(b.return!==T.return)b=Q,T=se;else{for(var Ge=!1,ot=Q.child;ot;){if(ot===b){Ge=!0,b=Q,T=se;break}if(ot===T){Ge=!0,T=Q,b=se;break}ot=ot.sibling}if(!Ge){for(ot=se.child;ot;){if(ot===b){Ge=!0,b=se,T=Q;break}if(ot===T){Ge=!0,T=se,b=Q;break}ot=ot.sibling}if(!Ge)throw Error(i(189))}}if(b.alternate!==T)throw Error(i(190))}if(b.tag!==3)throw Error(i(188));return b.stateNode.current===b?u:m}function C(u){var m=u.tag;if(m===5||m===26||m===27||m===6)return u;for(u=u.child;u!==null;){if(m=C(u),m!==null)return m;u=u.sibling}return null}var M=Object.assign,O=Symbol.for("react.element"),U=Symbol.for("react.transitional.element"),K=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),te=Symbol.for("react.provider"),J=Symbol.for("react.consumer"),oe=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),ye=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function Ie(u){return u===null||typeof u!="object"?null:(u=we&&u[we]||u["@@iterator"],typeof u=="function"?u:null)}var Se=Symbol.for("react.client.reference");function Ve(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===Se?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case j:return"Fragment";case Y:return"Profiler";case W:return"StrictMode";case $:return"Suspense";case ae:return"SuspenseList";case ge:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case K:return"Portal";case oe:return(u.displayName||"Context")+".Provider";case J:return(u._context.displayName||"Context")+".Consumer";case ne:var m=u.render;return u=u.displayName,u||(u=m.displayName||m.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case G:return m=u.displayName||null,m!==null?m:Ve(u.type)||"Memo";case ce:m=u._payload,u=u._init;try{return Ve(u(m))}catch{}}return null}var xe=Array.isArray,ze=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,st=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ct={pending:!1,data:null,method:null,action:null},nt=[],be=-1;function Ne(u){return{current:u}}function tt(u){0>be||(u.current=nt[be],nt[be]=null,be--)}function lt(u,m){be++,nt[be]=u.current,u.current=m}var kt=Ne(null),gt=Ne(null),St=Ne(null),Ut=Ne(null);function Fe(u,m){switch(lt(St,m),lt(gt,u),lt(kt,null),m.nodeType){case 9:case 11:u=(u=m.documentElement)&&(u=u.namespaceURI)?Al(u):0;break;default:if(u=m.tagName,m=m.namespaceURI)m=Al(m),u=ul(m,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}tt(kt),lt(kt,u)}function Ke(){tt(kt),tt(gt),tt(St)}function Re(u){u.memoizedState!==null&<(Ut,u);var m=kt.current,b=ul(m,u.type);m!==b&&(lt(gt,u),lt(kt,b))}function He(u){gt.current===u&&(tt(kt),tt(gt)),Ut.current===u&&(tt(Ut),Qt._currentValue=Ct)}var bt=Object.prototype.hasOwnProperty,_t=n.unstable_scheduleCallback,Ot=n.unstable_cancelCallback,qt=n.unstable_shouldYield,Kt=n.unstable_requestPaint,on=n.unstable_now,Jn=n.unstable_getCurrentPriorityLevel,Wt=n.unstable_ImmediatePriority,$n=n.unstable_UserBlockingPriority,On=n.unstable_NormalPriority,Bn=n.unstable_LowPriority,In=n.unstable_IdlePriority,Oi=n.log,ei=n.unstable_setDisableYieldValue,Kn=null,je=null;function de(u){if(typeof Oi=="function"&&ei(u),je&&typeof je.setStrictMode=="function")try{je.setStrictMode(Kn,u)}catch{}}var re=Math.clz32?Math.clz32:Te,le=Math.log,pe=Math.LN2;function Te(u){return u>>>=0,u===0?32:31-(le(u)/pe|0)|0}var We=256,dt=4194304;function Ye(u){var m=u&42;if(m!==0)return m;switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:caLine truncated
|
||||
at`)?" (<anonymous>)":-1<b.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||||
`+us+A+Ma}var $e=!1;function Et(A,m){if(!A||$e)return"";$e=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(m){var Nn=function(){throw Error()};if(Object.defineProperty(Nn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Nn,[])}catch(fn){var pn=fn}Reflect.construct(A,[],Nn)}else{try{Nn.call()}catch(fn){pn=fn}A.call(Nn.prototype)}}else{try{throw Error()}catch(fn){pn=fn}(Nn=A())&&typeof Nn.catch=="function"&&Nn.catch(function(){})}}catch(fn){if(fn&&pn&&typeof fn.stack=="string")return[fn.stack,pn.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=T.DetermineComponentFrameRoot(),Ge=se[0],ot=se[1];if(Ge&&ot){var zt=Ge.split(`
|
||||
`+cs+u+Sa}var $e=!1;function Et(u,m){if(!u||$e)return"";$e=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var T={DetermineComponentFrameRoot:function(){try{if(m){var Nn=function(){throw Error()};if(Object.defineProperty(Nn.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Nn,[])}catch(fn){var pn=fn}Reflect.construct(u,[],Nn)}else{try{Nn.call()}catch(fn){pn=fn}u.call(Nn.prototype)}}else{try{throw Error()}catch(fn){pn=fn}(Nn=u())&&typeof Nn.catch=="function"&&Nn.catch(function(){})}}catch(fn){if(fn&&pn&&typeof fn.stack=="string")return[fn.stack,pn.stack]}return[null,null]}};T.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var Q=Object.getOwnPropertyDescriptor(T.DetermineComponentFrameRoot,"name");Q&&Q.configurable&&Object.defineProperty(T.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var se=T.DetermineComponentFrameRoot(),Ge=se[0],ot=se[1];if(Ge&&ot){var zt=Ge.split(`
|
||||
`),hn=ot.split(`
|
||||
`);for(Q=T=0;T<zt.length&&!zt[T].includes("DetermineComponentFrameRoot");)T++;for(;Q<hn.length&&!hn[Q].includes("DetermineComponentFrameRoot");)Q++;if(T===zt.length||Q===hn.length)for(T=zt.length-1,Q=hn.length-1;1<=T&&0<=Q&&zt[T]!==hn[Q];)Q--;for(;1<=T&&0<=Q;T--,Q--)if(zt[T]!==hn[Q]){if(T!==1||Q!==1)do if(T--,Q--,0>Q||zt[T]!==hn[Q]){var kn=`
|
||||
`+zt[T].replace(" at new "," at ");return A.displayName&&kn.includes("<anonymous>")&&(kn=kn.replace("<anonymous>",A.displayName)),kn}while(1<=T&&0<=Q);break}}}finally{$e=!1,Error.prepareStackTrace=b}return(b=A?A.displayName||A.name:"")?Vo(b):""}function xn(A){switch(A.tag){case 26:case 27:case 5:return Vo(A.type);case 16:return Vo("Lazy");case 13:return Vo("Suspense");case 19:return Vo("SuspenseList");case 0:case 15:return Et(A.type,!1);case 11:return Et(A.type.render,!1);case 1:return Et(A.type,!0);case 31:return Vo("Activity");default:return""}}function Gn(A){try{var m="";do m+=xn(A),A=A.return;while(A);return m}catch(b){return`
|
||||
`+zt[T].replace(" at new "," at ");return u.displayName&&kn.includes("<anonymous>")&&(kn=kn.replace("<anonymous>",u.displayName)),kn}while(1<=T&&0<=Q);break}}}finally{$e=!1,Error.prepareStackTrace=b}return(b=u?u.displayName||u.name:"")?Zo(b):""}function xn(u){switch(u.tag){case 26:case 27:case 5:return Zo(u.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 15:return Et(u.type,!1);case 11:return Et(u.type.render,!1);case 1:return Et(u.type,!0);case 31:return Zo("Activity");default:return""}}function Gn(u){try{var m="";do m+=xn(u),u=u.return;while(u);return m}catch(b){return`
|
||||
Error generating stack: `+b.message+`
|
||||
`+b.stack}}function rn(A){switch(typeof A){case"bigint":case"boolean":case"number":case"string":case"undefined":return A;case"object":return A;default:return""}}function si(A){var m=A.type;return(A=A.nodeName)&&A.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function eo(A){var m=si(A)?"checked":"value",b=Object.getOwnPropertyDescriptor(A.constructor.prototype,m),T=""+A[m];if(!A.hasOwnProperty(m)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var Q=b.get,se=b.set;return Object.defineProperty(A,m,{configurable:!0,get:function(){return Q.call(this)},set:function(Ge){T=""+Ge,se.call(this,Ge)}}),Object.defineProperty(A,m,{enumerable:b.enumerable}),{getValue:function(){return T},setValue:function(Ge){T=""+Ge},stopTracking:function(){A._valueTracker=null,delete A[m]}}}}function So(A){A._valueTracker||(A._valueTracker=eo(A))}function As(A){if(!A)return!1;var m=A._valueTracker;if(!m)return!0;var b=m.getValue(),T="";return A&&(T=si(A)?A.checked?"true":"false":A.value),A=T,A!==b?(m.setValue(A),!0):!1}function Ls(A){if(A=A||(typeof document<"u"?document:void 0),typeof A>"u")return null;try{return A.activeElement||A.body}catch{return A.body}}var Qu=/[\n"\\]/g;function Qi(A){return A.replace(Qu,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function RA(A,m,b,T,Q,se,Ge,ot){A.name="",Ge!=null&&typeof Ge!="function"&&typeof Ge!="symbol"&&typeof Ge!="boolean"?A.type=Ge:A.removeAttribute("type"),m!=null?Ge==="number"?(m===0&&A.value===""||A.value!=m)&&(A.value=""+rn(m)):A.value!==""+rn(m)&&(A.value=""+rn(m)):Ge!=="submit"&&Ge!=="reset"||A.removeAttribute("value"),m!=null?yl(A,Ge,rn(m)):b!=null?yl(A,Ge,rn(b)):T!=null&&A.removeAttribute("value"),Q==null&&se!=null&&(A.defaultChecked=!!se),Q!=null&&(A.checked=Q&&typeof Q!="function"&&typeof Q!="symbol"),ot!=null&&typeof ot!="function"&&typeof ot!="symbol"&&typeof ot!="boolean"?A.name=""+rn(ot):A.removeAttribute("name")}function _u(A,m,b,T,Q,se,Ge,ot){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(A.type=se),m!=null||b!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;b=b!=null?""+rn(b):"",m=m!=null?""+rn(m):b,ot||m===A.value||(A.value=m),A.defaultValue=m}T=T??Q,T=typeof T!="function"&&typeof T!="symbol"&&!!T,A.checked=ot?A.checked:!!T,A.defaultChecked=!!T,Ge!=null&&typeof Ge!="function"&&typeof Ge!="symbol"&&typeof Ge!="boolean"&&(A.name=Ge)}function yl(A,m,b){m==="number"&&Ls(A.ownerDocument)===A||A.defaultValue===""+b||(A.defaultValue=""+b)}function Ss(A,m,b,T){if(A=A.options,m){m={};for(var Q=0;Q<b.length;Q++)m["$"+b[Q]]=!0;for(b=0;b<A.length;b++)Q=m.hasOwnProperty("$"+A[b].value),A[b].selected!==Q&&(A[b].selected=Q),Q&&T&&(A[b].defaultSelected=!0)}else{for(b=""+rn(b),m=null,Q=0;Q<A.length;Q++){if(A[Q].value===b){A[Q].selected=!0,T&&(A[Q].defaultSelected=!0);return}m!==null||A[Q].disabled||(m=A[Q])}m!==null&&(m.selected=!0)}}function xc(A,m,b){if(m!=null&&(m=""+rn(m),m!==A.value&&(A.value=m),b==null)){A.defaultValue!==m&&(A.defaultValue=m);return}A.defaultValue=b!=null?""+rn(b):""}function Ys(A,m,b,T){if(m==null){if(T!=null){if(b!=null)throw Error(i(92));if(xe(T)){if(1<T.length)throw Error(i(93));T=T[0]}b=T}b==null&&(b=""),m=b}b=rn(m),A.defaultValue=b,T=A.textContent,T===b&&T!==""&&T!==null&&(A.value=T)}function $o(A,m){if(m){var b=A.firstChild;if(b&&b===A.lastChild&&b.nodeType===3){b.nodeValue=m;return}}A.textContent=m}var ko=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function dr(A,m,b){var T=m.indexOf("--")===0;b==null||typeof b=="boolean"||b===""?T?A.setProperty(m,""):m==="float"?A.cssFloat="":A[m]="":T?A.setProperty(m,b):typeof b!="number"||b===0||ko.has(m)?m==="float"?A.cssFloat=b:A[m]=(""+b).trim():A[m]=b+"px"}function Kl(A,m,b){if(m!=null&&typeof m!="object")throw Error(i(62));if(A=A.style,b!=null){for(var T in b)!b.hasOwnProperty(T)||m!=null&&m.hasOwnProperty(T)||(T.indexOf("--")===0?A.setProperty(T,""):T==="float"?A.cssFloat="":A[T]="");for(var Q in m)T=m[Q],m.hasOwnProperty(Q)&&b[Q]!==T&&dr(A,Q,T)}else for(var se in m)m.hasOwnProperty(se)&&dr(A,se,m[se])}function ga(A){if(A.indexOf("-")===
Line truncated
|
||||
`).replace(ff,"")}function o1(A,m){return m=ng(m),ng(A)===m}function XA(){}function Ba(A,m,b,T,Q,se){switch(b){case"children":typeof T=="string"?m==="body"||m==="textarea"&&T===""||$o(A,T):(typeof T=="number"||typeof T=="bigint")&&m!=="body"&&$o(A,""+T);break;case"className":Vi(A,"class",T);break;case"tabIndex":Vi(A,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":Vi(A,b,T);break;case"style":Kl(A,T,se);break;case"data":if(m!=="object"){Vi(A,"data",T);break}case"src":case"href":if(T===""&&(m!=="a"||b!=="href")){A.removeAttribute(b);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){A.removeAttribute(b);break}T=xr(""+T),A.setAttribute(b,T);break;case"action":case"formAction":if(typeof T=="function"){A.setAttribute(b,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(b==="formAction"?(m!=="input"&&Ba(A,m,"name",Q.name,Q,null),Ba(A,m,"formEncType",Q.formEncType,Q,null),Ba(A,m,"formMethod",Q.formMethod,Q,null),Ba(A,m,"formTarget",Q.formTarget,Q,null)):(Ba(A,m,"encType",Q.encType,Q,null),Ba(A,m,"method",Q.method,Q,null),Ba(A,m,"target",Q.target,Q,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){A.removeAttribute(b);break}T=xr(""+T),A.setAttribute(b,T);break;case"onClick":T!=null&&(A.onclick=XA);break;case"onScroll":T!=null&&na("scroll",A);break;case"onScrollEnd":T!=null&&na("scrollend",A);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Q.children!=null)throw Error(i(60));A.innerHTML=b}}break;case"multiple":A.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":A.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){A.removeAttribute("xlink:href");break}b=xr(""+T),A.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?A.setAttribute(b,""+T):A.removeAttribute(b);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":T&&typeof T!="function"&&typeof T!="symbol"?A.setAttribute(b,""):A.removeAttribute(b);break;case"capture":case"download":T===!0?A.setAttribute(b,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?A.setAttribute(b,T):A.removeAttribute(b);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?A.setAttribute(b,T):A.removeAttribute(b);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?A.removeAttribute(b):A.setAttribute(b,T);break;case"popover":na("beforetoggle",A),na("toggle",A),Da(A,"popover",T);break;case"xlinkActuate":Mi(A,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":Mi(A,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":Mi(A,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":Mi(A,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":Mi(A,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":Mi(A,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":Mi(A,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":Mi(A,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":Mi(A,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":Da(A,"is",T);break;case"innerText":case"textContent":break;default:(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(b=Ul.get(b)||b,Da(A,b,T))}}function Pp(A,m,b,T,Q,se){switch(b){case"style":Kl(A,T,se);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Q.children!=null)throw Error(i(60));A.innerHTML=b}}break;case"children":typeof T=="string"?$o(A,T):(typeof T=="number"||typeof T=="bigint")&&$o(A,""+T);break;case"onScroll":T!=null&&na("scroll",A);break;case"onScrollEnd":T!=null&&na("scrollend",A);break;case"onClick":T!=null&&(A.onclick=XA);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
|
||||
`+b.stack}}function rn(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function si(u){var m=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function to(u){var m=si(u)?"checked":"value",b=Object.getOwnPropertyDescriptor(u.constructor.prototype,m),T=""+u[m];if(!u.hasOwnProperty(m)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var Q=b.get,se=b.set;return Object.defineProperty(u,m,{configurable:!0,get:function(){return Q.call(this)},set:function(Ge){T=""+Ge,se.call(this,Ge)}}),Object.defineProperty(u,m,{enumerable:b.enumerable}),{getValue:function(){return T},setValue:function(Ge){T=""+Ge},stopTracking:function(){u._valueTracker=null,delete u[m]}}}}function Eo(u){u._valueTracker||(u._valueTracker=to(u))}function hs(u){if(!u)return!1;var m=u._valueTracker;if(!m)return!0;var b=m.getValue(),T="";return u&&(T=si(u)?u.checked?"true":"false":u.value),u=T,u!==b?(m.setValue(u),!0):!1}function zs(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var YA=/[\n"\\]/g;function Yi(u){return u.replace(YA,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function Pu(u,m,b,T,Q,se,Ge,ot){u.name="",Ge!=null&&typeof Ge!="function"&&typeof Ge!="symbol"&&typeof Ge!="boolean"?u.type=Ge:u.removeAttribute("type"),m!=null?Ge==="number"?(m===0&&u.value===""||u.value!=m)&&(u.value=""+rn(m)):u.value!==""+rn(m)&&(u.value=""+rn(m)):Ge!=="submit"&&Ge!=="reset"||u.removeAttribute("value"),m!=null?vl(u,Ge,rn(m)):b!=null?vl(u,Ge,rn(b)):T!=null&&u.removeAttribute("value"),Q==null&&se!=null&&(u.defaultChecked=!!se),Q!=null&&(u.checked=Q&&typeof Q!="function"&&typeof Q!="symbol"),ot!=null&&typeof ot!="function"&&typeof ot!="symbol"&&typeof ot!="boolean"?u.name=""+rn(ot):u.removeAttribute("name")}function bA(u,m,b,T,Q,se,Ge,ot){if(se!=null&&typeof se!="function"&&typeof se!="symbol"&&typeof se!="boolean"&&(u.type=se),m!=null||b!=null){if(!(se!=="submit"&&se!=="reset"||m!=null))return;b=b!=null?""+rn(b):"",m=m!=null?""+rn(m):b,ot||m===u.value||(u.value=m),u.defaultValue=m}T=T??Q,T=typeof T!="function"&&typeof T!="symbol"&&!!T,u.checked=ot?u.checked:!!T,u.defaultChecked=!!T,Ge!=null&&typeof Ge!="function"&&typeof Ge!="symbol"&&typeof Ge!="boolean"&&(u.name=Ge)}function vl(u,m,b){m==="number"&&zs(u.ownerDocument)===u||u.defaultValue===""+b||(u.defaultValue=""+b)}function Es(u,m,b,T){if(u=u.options,m){m={};for(var Q=0;Q<b.length;Q++)m["$"+b[Q]]=!0;for(b=0;b<u.length;b++)Q=m.hasOwnProperty("$"+u[b].value),u[b].selected!==Q&&(u[b].selected=Q),Q&&T&&(u[b].defaultSelected=!0)}else{for(b=""+rn(b),m=null,Q=0;Q<u.length;Q++){if(u[Q].value===b){u[Q].selected=!0,T&&(u[Q].defaultSelected=!0);return}m!==null||u[Q].disabled||(m=u[Q])}m!==null&&(m.selected=!0)}}function Mc(u,m,b){if(m!=null&&(m=""+rn(m),m!==u.value&&(u.value=m),b==null)){u.defaultValue!==m&&(u.defaultValue=m);return}u.defaultValue=b!=null?""+rn(b):""}function Hs(u,m,b,T){if(m==null){if(T!=null){if(b!=null)throw Error(i(92));if(xe(T)){if(1<T.length)throw Error(i(93));T=T[0]}b=T}b==null&&(b=""),m=b}b=rn(m),u.defaultValue=b,T=u.textContent,T===b&&T!==""&&T!==null&&(u.value=T)}function Xo(u,m){if(m){var b=u.firstChild;if(b&&b===u.lastChild&&b.nodeType===3){b.nodeValue=m;return}}u.textContent=m}var Do=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function fr(u,m,b){var T=m.indexOf("--")===0;b==null||typeof b=="boolean"||b===""?T?u.setProperty(m,""):m==="float"?u.cssFloat="":u[m]="":T?u.setProperty(m,b):typeof b!="number"||b===0||Do.has(m)?m==="float"?u.cssFloat=b:u[m]=(""+b).trim():u[m]=b+"px"}function Ul(u,m,b){if(m!=null&&typeof m!="object")throw Error(i(62));if(u=u.style,b!=null){for(var T in b)!b.hasOwnProperty(T)||m!=null&&m.hasOwnProperty(T)||(T.indexOf("--")===0?u.setProperty(T,""):T==="float"?u.cssFloat="":u[T]="");for(var Q in m)T=m[Q],m.hasOwnProperty(Q)&&b[Q]!==T&&fr(u,Q,T)}else for(var se in m)m.hasOwnProperty(se)&&fr(u,se,m[se])}function va(u){if(u.indexOf("-")===
Line truncated
|
||||
`).replace(mf,"")}function s1(u,m){return m=rg(m),rg(u)===m}function Ju(){}function Ia(u,m,b,T,Q,se){switch(b){case"children":typeof T=="string"?m==="body"||m==="textarea"&&T===""||Xo(u,T):(typeof T=="number"||typeof T=="bigint")&&m!=="body"&&Xo(u,""+T);break;case"className":$i(u,"class",T);break;case"tabIndex":$i(u,"tabindex",T);break;case"dir":case"role":case"viewBox":case"width":case"height":$i(u,b,T);break;case"style":Ul(u,T,se);break;case"data":if(m!=="object"){$i(u,"data",T);break}case"src":case"href":if(T===""&&(m!=="a"||b!=="href")){u.removeAttribute(b);break}if(T==null||typeof T=="function"||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=Mr(""+T),u.setAttribute(b,T);break;case"action":case"formAction":if(typeof T=="function"){u.setAttribute(b,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof se=="function"&&(b==="formAction"?(m!=="input"&&Ia(u,m,"name",Q.name,Q,null),Ia(u,m,"formEncType",Q.formEncType,Q,null),Ia(u,m,"formMethod",Q.formMethod,Q,null),Ia(u,m,"formTarget",Q.formTarget,Q,null)):(Ia(u,m,"encType",Q.encType,Q,null),Ia(u,m,"method",Q.method,Q,null),Ia(u,m,"target",Q.target,Q,null)));if(T==null||typeof T=="symbol"||typeof T=="boolean"){u.removeAttribute(b);break}T=Mr(""+T),u.setAttribute(b,T);break;case"onClick":T!=null&&(u.onclick=Ju);break;case"onScroll":T!=null&&ra("scroll",u);break;case"onScrollEnd":T!=null&&ra("scrollend",u);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Q.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"multiple":u.multiple=T&&typeof T!="function"&&typeof T!="symbol";break;case"muted":u.muted=T&&typeof T!="function"&&typeof T!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(T==null||typeof T=="function"||typeof T=="boolean"||typeof T=="symbol"){u.removeAttribute("xlink:href");break}b=Mr(""+T),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",b);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""+T):u.removeAttribute(b);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":T&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,""):u.removeAttribute(b);break;case"capture":case"download":T===!0?u.setAttribute(b,""):T!==!1&&T!=null&&typeof T!="function"&&typeof T!="symbol"?u.setAttribute(b,T):u.removeAttribute(b);break;case"cols":case"rows":case"size":case"span":T!=null&&typeof T!="function"&&typeof T!="symbol"&&!isNaN(T)&&1<=T?u.setAttribute(b,T):u.removeAttribute(b);break;case"rowSpan":case"start":T==null||typeof T=="function"||typeof T=="symbol"||isNaN(T)?u.removeAttribute(b):u.setAttribute(b,T);break;case"popover":ra("beforetoggle",u),ra("toggle",u),Ka(u,"popover",T);break;case"xlinkActuate":Mi(u,"http://www.w3.org/1999/xlink","xlink:actuate",T);break;case"xlinkArcrole":Mi(u,"http://www.w3.org/1999/xlink","xlink:arcrole",T);break;case"xlinkRole":Mi(u,"http://www.w3.org/1999/xlink","xlink:role",T);break;case"xlinkShow":Mi(u,"http://www.w3.org/1999/xlink","xlink:show",T);break;case"xlinkTitle":Mi(u,"http://www.w3.org/1999/xlink","xlink:title",T);break;case"xlinkType":Mi(u,"http://www.w3.org/1999/xlink","xlink:type",T);break;case"xmlBase":Mi(u,"http://www.w3.org/XML/1998/namespace","xml:base",T);break;case"xmlLang":Mi(u,"http://www.w3.org/XML/1998/namespace","xml:lang",T);break;case"xmlSpace":Mi(u,"http://www.w3.org/XML/1998/namespace","xml:space",T);break;case"is":Ka(u,"is",T);break;case"innerText":case"textContent":break;default:(!(2<b.length)||b[0]!=="o"&&b[0]!=="O"||b[1]!=="n"&&b[1]!=="N")&&(b=Ll.get(b)||b,Ka(u,b,T))}}function Kp(u,m,b,T,Q,se){switch(b){case"style":Ul(u,T,se);break;case"dangerouslySetInnerHTML":if(T!=null){if(typeof T!="object"||!("__html"in T))throw Error(i(61));if(b=T.__html,b!=null){if(Q.children!=null)throw Error(i(60));u.innerHTML=b}}break;case"children":typeof T=="string"?Xo(u,T):(typeof T=="number"||typeof T=="bigint")&&Xo(u,""+T);break;case"onScroll":T!=null&&ra("scroll",u);break;case"onScrollEnd":T!=null&&ra("scrollend",u);break;case"onClick":T!=null&&(u.onclick=Ju);break;case"suppressContentEditableWarning":case"suppressHydrati
Line truncated
|
||||
* The buffer module from node.js, for the browser.
|
||||
*
|
||||
* @author Feross Aboukhadijeh <https://feross.org>
|
||||
* @license MIT
|
||||
*/var q7;function OQ(){return q7||(q7=1,function(n){const e=EQ(),t=BQ(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=J,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=a(),!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 a(){try{const je=new Uint8Array(1),de={foo:function(){return 42}};return Object.setPrototypeOf(de,Uint8Array.prototype),Object.setPrototypeOf(je,de),je.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(je){if(je>r)throw new RangeError('The value "'+je+'" is invalid for option "size"');const de=new Uint8Array(je);return Object.setPrototypeOf(de,o.prototype),de}function o(je,de,re){if(typeof je=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(je)}return p(je,de,re)}o.poolSize=8192;function p(je,de,re){if(typeof je=="string")return U(je,de);if(ArrayBuffer.isView(je))return j(je);if(je==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof je);if(Bn(je,ArrayBuffer)||je&&Bn(je.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bn(je,SharedArrayBuffer)||je&&Bn(je.buffer,SharedArrayBuffer)))return W(je,de,re);if(typeof je=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=je.valueOf&&je.valueOf();if(le!=null&&le!==je)return o.from(le,de,re);const pe=Y(je);if(pe)return pe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof je[Symbol.toPrimitive]=="function")return o.from(je[Symbol.toPrimitive]("string"),de,re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof je)}o.from=function(je,de,re){return p(je,de,re)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function C(je){if(typeof je!="number")throw new TypeError('"size" argument must be of type number');if(je<0)throw new RangeError('The value "'+je+'" is invalid for option "size"')}function w(je,de,re){return C(je),je<=0?l(je):de!==void 0?typeof re=="string"?l(je).fill(de,re):l(je).fill(de):l(je)}o.alloc=function(je,de,re){return w(je,de,re)};function O(je){return C(je),l(je<0?0:te(je)|0)}o.allocUnsafe=function(je){return O(je)},o.allocUnsafeSlow=function(je){return O(je)};function U(je,de){if((typeof de!="string"||de==="")&&(de="utf8"),!o.isEncoding(de))throw new TypeError("Unknown encoding: "+de);const re=oe(je,de)|0;let le=l(re);const pe=le.write(je,de);return pe!==re&&(le=le.slice(0,pe)),le}function K(je){const de=je.length<0?0:te(je.length)|0,re=l(de);for(let le=0;le<de;le+=1)re[le]=je[le]&255;return re}function j(je){if(Bn(je,Uint8Array)){const de=new Uint8Array(je);return W(de.buffer,de.byteOffset,de.byteLength)}return K(je)}function W(je,de,re){if(de<0||je.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(je.byteLength<de+(re||0))throw new RangeError('"length" is outside of buffer bounds');let le;return de===void 0&&re===void 0?le=new Uint8Array(je):re===void 0?le=new Uint8Array(je,de):le=new Uint8Array(je,de,re),Object.setPrototypeOf(le,o.prototype),le}function Y(je){if(o.isBuffer(je)){const de=te(je.length)|0,re=l(de);return re.length===0||je.copy(re,0,0,de),re}if(je.length!==void 0)return typeof je.length!="number"||In(je.length)?l(0):K(je);if(je.type==="Buffer"&&Array.isArray(je.data))return K(je.data)}function te(je){if(je>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return je|0}function J(je){return+je!=je&&(je=0),o.alloc(+je)}o.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==o.prototype},o.compare=function(de,re){if(Bn(de,Uint8Array)&&(de=o.from(de,de.offset,de.byteLength)),Bn(re,Uint8Array)&&(re=o.from(re,re.offset,re.byteLength)),!o.isBuffer(de)||!o.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===re)return 0;let le=de.length,pe=re.length;for(let Te=0,We=Math.min(le,pe);Te<We;++Te)if(de[Te]!==re[Te]){le=de[Te],pe=re[Te];break}return le<pe?-1:pe<le?1:0},o.isEncoding=function(de){switch(String(de).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(de,re){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array oLine truncated
|
||||
*/var H7;function IQ(){return H7||(H7=1,function(n){const e=BQ(),t=OQ(),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=o,n.SlowBuffer=J,n.INSPECT_MAX_BYTES=50;const r=2147483647;n.kMaxLength=r,o.TYPED_ARRAY_SUPPORT=a(),!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 a(){try{const je=new Uint8Array(1),de={foo:function(){return 42}};return Object.setPrototypeOf(de,Uint8Array.prototype),Object.setPrototypeOf(je,de),je.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(je){if(je>r)throw new RangeError('The value "'+je+'" is invalid for option "size"');const de=new Uint8Array(je);return Object.setPrototypeOf(de,o.prototype),de}function o(je,de,re){if(typeof je=="number"){if(typeof de=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return O(je)}return p(je,de,re)}o.poolSize=8192;function p(je,de,re){if(typeof je=="string")return U(je,de);if(ArrayBuffer.isView(je))return j(je);if(je==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof je);if(Bn(je,ArrayBuffer)||je&&Bn(je.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Bn(je,SharedArrayBuffer)||je&&Bn(je.buffer,SharedArrayBuffer)))return W(je,de,re);if(typeof je=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=je.valueOf&&je.valueOf();if(le!=null&&le!==je)return o.from(le,de,re);const pe=Y(je);if(pe)return pe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof je[Symbol.toPrimitive]=="function")return o.from(je[Symbol.toPrimitive]("string"),de,re);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof je)}o.from=function(je,de,re){return p(je,de,re)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function C(je){if(typeof je!="number")throw new TypeError('"size" argument must be of type number');if(je<0)throw new RangeError('The value "'+je+'" is invalid for option "size"')}function M(je,de,re){return C(je),je<=0?l(je):de!==void 0?typeof re=="string"?l(je).fill(de,re):l(je).fill(de):l(je)}o.alloc=function(je,de,re){return M(je,de,re)};function O(je){return C(je),l(je<0?0:te(je)|0)}o.allocUnsafe=function(je){return O(je)},o.allocUnsafeSlow=function(je){return O(je)};function U(je,de){if((typeof de!="string"||de==="")&&(de="utf8"),!o.isEncoding(de))throw new TypeError("Unknown encoding: "+de);const re=oe(je,de)|0;let le=l(re);const pe=le.write(je,de);return pe!==re&&(le=le.slice(0,pe)),le}function K(je){const de=je.length<0?0:te(je.length)|0,re=l(de);for(let le=0;le<de;le+=1)re[le]=je[le]&255;return re}function j(je){if(Bn(je,Uint8Array)){const de=new Uint8Array(je);return W(de.buffer,de.byteOffset,de.byteLength)}return K(je)}function W(je,de,re){if(de<0||je.byteLength<de)throw new RangeError('"offset" is outside of buffer bounds');if(je.byteLength<de+(re||0))throw new RangeError('"length" is outside of buffer bounds');let le;return de===void 0&&re===void 0?le=new Uint8Array(je):re===void 0?le=new Uint8Array(je,de):le=new Uint8Array(je,de,re),Object.setPrototypeOf(le,o.prototype),le}function Y(je){if(o.isBuffer(je)){const de=te(je.length)|0,re=l(de);return re.length===0||je.copy(re,0,0,de),re}if(je.length!==void 0)return typeof je.length!="number"||In(je.length)?l(0):K(je);if(je.type==="Buffer"&&Array.isArray(je.data))return K(je.data)}function te(je){if(je>=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return je|0}function J(je){return+je!=je&&(je=0),o.alloc(+je)}o.isBuffer=function(de){return de!=null&&de._isBuffer===!0&&de!==o.prototype},o.compare=function(de,re){if(Bn(de,Uint8Array)&&(de=o.from(de,de.offset,de.byteLength)),Bn(re,Uint8Array)&&(re=o.from(re,re.offset,re.byteLength)),!o.isBuffer(de)||!o.isBuffer(re))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(de===re)return 0;let le=de.length,pe=re.length;for(let Te=0,We=Math.min(le,pe);Te<We;++Te)if(de[Te]!==re[Te]){le=de[Te],pe=re[Te];break}return le<pe?-1:pe<le?1:0},o.isEncoding=function(de){switch(String(de).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(de,re){if(!Array.isArray(de))throw new TypeError('"list" argument must be an Array oLine 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 PQ=OC.exports,V7;function KQ(){return V7||(V7=1,function(n,e){(function(){var t,i="4.17.21",r=200,a="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__",C=500,w="__lodash_placeholder__",O=1,U=2,K=4,j=1,W=2,Y=1,te=2,J=4,oe=8,ne=16,$=32,ae=64,G=128,ce=256,ge=512,ye=30,we="...",Oe=800,Se=16,Ve=1,xe=2,ze=3,st=1/0,Ct=9007199254740991,nt=17976931348623157e292,be=NaN,Ne=4294967295,tt=Ne-1,lt=Ne>>>1,kt=[["ary",G],["bind",Y],["bindKey",te],["curry",oe],["curryRight",ne],["flip",ge],["partial",$],["partialRight",ae],["rearg",ce]],gt="[object Arguments]",St="[object Array]",Ut="[object AsyncFunction]",Fe="[object Boolean]",Ke="[object Date]",Re="[object DOMException]",He="[object Error]",bt="[object Function]",_t="[object GeneratorFunction]",Ot="[object Map]",qt="[object Number]",Kt="[object Null]",on="[object Object]",Jn="[object Promise]",Wt="[object Proxy]",$n="[object RegExp]",On="[object Set]",Bn="[object String]",In="[object Symbol]",Oi="[object Undefined]",ei="[object WeakMap]",Kn="[object WeakSet]",je="[object ArrayBuffer]",de="[object DataView]",re="[object Float32Array]",le="[object Float64Array]",pe="[object Int8Array]",Te="[object Int16Array]",We="[object Int32Array]",dt="[object Uint8Array]",Ye="[object Uint8ClampedArray]",De="[object Uint16Array]",Ze="[object Uint32Array]",g=/\b__p \+= '';/g,mt=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,en=RegExp(Tt.source),Dn=RegExp(it.source),Mn=/<%-([\s\S]+?)%>/g,ii=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,qi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,er=/^\w*$/,Ei=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/[\\^$.*+?()[\]{}|]/g,ti=RegExp(hi.source),Wi=/^\s+/,wn=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Hi=/\{\n\/\* \[wrapped with (.+)\] \*/,ma=/,? & /,To=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zn=/[()=,{}\[\]\/\s]/,lr=/\\(\\)?/g,zi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vr=/\w*$/,Fa=/^[-+]0x[0-9a-f]+$/i,Tr=/^0b[01]+$/i,ji=/^\[object .+?Constructor\]$/,gl=/^0o[0-7]+$/i,ka=/^(?:0|[1-9]\d*)$/,wo=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xa=/($^)/,Il=/['\n\r\u2028\u2029\\]/g,Ao="\\ud800-\\udfff",Wu="\\u0300-\\u036f",Da="\\ufe20-\\ufe2f",Vi="\\u20d0-\\u20ff",Mi=Wu+Da+Vi,us="\\u2700-\\u27bf",Ma="a-z\\xdf-\\xf6\\xf8-\\xff",Vo="\\xac\\xb1\\xd7\\xf7",$e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Et="\\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",Gn="A-Z\\xc0-\\xd6\\xd8-\\xde",rn="\\ufe0e\\ufe0f",si=Vo+$e+Et+xn,eo="['’]",So="["+Ao+"]",As="["+si+"]",Ls="["+Mi+"]",Qu="\\d+",Qi="["+us+"]",RA="["+Ma+"]",_u="[^"+Ao+si+Qu+us+Ma+Gn+"]",yl="\\ud83c[\\udffb-\\udfff]",Ss="(?:"+Ls+"|"+yl+")",xc="[^"+Ao+"]",Ys="(?:\\ud83c[\\udde6-\\uddff]){2}",$o="[\\ud800-\\udbff][\\udc00-\\udfff]",ko="["+Gn+"]",dr="\\u200d",Kl="(?:"+RA+"|"+_u+")",ga="(?:"+ko+"|"+_u+")",Ul="(?:"+eo+"(?:d|ll|m|re|s|t|ve))?",bu="(?:"+eo+"(?:D|LL|M|RE|S|T|VE))?",xr=Ss+"?",iu="["+rn+"]?",cA="(?:"+dr+"(?:"+[xc,Ys,$o].join("|")+")"+iu+xr+")*",jo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Eo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",za=iu+xr+cA,wa="(?:"+[Qi,Ys,$o].join("|")+")"+za,aa="(?:"+[xc+Ls+"?",Ls,Ys,$o,So].join("|")+")",Dr=RegExp(eo,"g"),ru=RegExp(Ls,"g"),ja=RegExp(yl+"(?="+yl+")|"+aa+za,"g"),Ja=RegExp([ko+"?"+RA+"+"+Ul+"(?="+[As,ko,"$"].join("|")+")",ga+"+"+bu+"(?="+[As,ko+Kl,"$"].join("|")+")",ko+"?"+Kl+"+"+Ul,ko+"+"+bu,Eo,jo,Qu,wa].join("|"),"g"),ya=RegExp("["+dr+Ao+Mi+rn+"]"),Rr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vl=["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"],Zi=-1,wi={};wi[re]=wi[le]=wi[pe]=wi[Te]=wi[We]=wi[dt]=wi[Ye]=wi[De]=wi[Ze]=!0,wi[gt]=wi[St]=wi[je]=wi[Fe]=wi[de]=wi[Ke]=wi[He]=wi[bt]=wi[Ot]=wi[qt]=wi[on]=wi[$n]=wi[On]=wi[Bn]=wi[ei]=!1;var Yr={};Yr[gt]=Yr[St]=Yr[je]=Yr[de]=Yr[Fe]=Yr[Ke]=Yr[re]=Yr[le]=Yr[pe]=Yr[Te]=Yr[We]=Yr[Ot]=Yr[qt]=Yr[on]=Yr[$n]=Yr[On]=Yr[Bn]=Yr[In]=Yr[dt]=Yr[Ye]=Yr[De]=Yr[Ze]=!0,Yr[He]=Yr[bt]=Yr[ei]=!1;var ee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"aLine truncated
|
||||
*/var KQ=TC.exports,$7;function UQ(){return $7||($7=1,function(n,e){(function(){var t,i="4.17.21",r=200,a="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__",C=500,M="__lodash_placeholder__",O=1,U=2,K=4,j=1,W=2,Y=1,te=2,J=4,oe=8,ne=16,$=32,ae=64,G=128,ce=256,ge=512,ye=30,we="...",Ie=800,Se=16,Ve=1,xe=2,ze=3,st=1/0,Ct=9007199254740991,nt=17976931348623157e292,be=NaN,Ne=4294967295,tt=Ne-1,lt=Ne>>>1,kt=[["ary",G],["bind",Y],["bindKey",te],["curry",oe],["curryRight",ne],["flip",ge],["partial",$],["partialRight",ae],["rearg",ce]],gt="[object Arguments]",St="[object Array]",Ut="[object AsyncFunction]",Fe="[object Boolean]",Ke="[object Date]",Re="[object DOMException]",He="[object Error]",bt="[object Function]",_t="[object GeneratorFunction]",Ot="[object Map]",qt="[object Number]",Kt="[object Null]",on="[object Object]",Jn="[object Promise]",Wt="[object Proxy]",$n="[object RegExp]",On="[object Set]",Bn="[object String]",In="[object Symbol]",Oi="[object Undefined]",ei="[object WeakMap]",Kn="[object WeakSet]",je="[object ArrayBuffer]",de="[object DataView]",re="[object Float32Array]",le="[object Float64Array]",pe="[object Int8Array]",Te="[object Int16Array]",We="[object Int32Array]",dt="[object Uint8Array]",Ye="[object Uint8ClampedArray]",De="[object Uint16Array]",Ze="[object Uint32Array]",g=/\b__p \+= '';/g,mt=/\b(__p \+=) '' \+/g,ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Tt=/&(?:amp|lt|gt|quot|#39);/g,it=/[&<>"']/g,en=RegExp(Tt.source),Dn=RegExp(it.source),Mn=/<%-([\s\S]+?)%>/g,ii=/<%([\s\S]+?)%>/g,Wn=/<%=([\s\S]+?)%>/g,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tr=/^\w*$/,Ei=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hi=/[\\^$.*+?()[\]{}|]/g,ti=RegExp(hi.source),Qi=/^\s+/,wn=/\s/,uo=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Vi=/\{\n\/\* \[wrapped with (.+)\] \*/,ya=/,? & /,ko=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Zn=/[()=,{}\[\]\/\s]/,Ar=/\\(\\)?/g,zi=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cr=/\w*$/,ja=/^[-+]0x[0-9a-f]+$/i,kr=/^0b[01]+$/i,ji=/^\[object .+?Constructor\]$/,yl=/^0o[0-7]+$/i,Pa=/^(?:0|[1-9]\d*)$/,So=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ts=/($^)/,Tl=/['\n\r\u2028\u2029\\]/g,co="\\ud800-\\udfff",QA="\\u0300-\\u036f",Ka="\\ufe20-\\ufe2f",$i="\\u20d0-\\u20ff",Mi=QA+Ka+$i,cs="\\u2700-\\u27bf",Sa="a-z\\xdf-\\xf6\\xf8-\\xff",Zo="\\xac\\xb1\\xd7\\xf7",$e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Et="\\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",Gn="A-Z\\xc0-\\xd6\\xd8-\\xde",rn="\\ufe0e\\ufe0f",si=Zo+$e+Et+xn,to="['’]",Eo="["+co+"]",hs="["+si+"]",zs="["+Mi+"]",YA="\\d+",Yi="["+cs+"]",Pu="["+Sa+"]",bA="[^"+co+si+YA+cs+Sa+Gn+"]",vl="\\ud83c[\\udffb-\\udfff]",Es="(?:"+zs+"|"+vl+")",Mc="[^"+co+"]",Hs="(?:\\ud83c[\\udde6-\\uddff]){2}",Xo="[\\ud800-\\udbff][\\udc00-\\udfff]",Do="["+Gn+"]",fr="\\u200d",Ul="(?:"+Pu+"|"+bA+")",va="(?:"+Do+"|"+bA+")",Ll="(?:"+to+"(?:d|ll|m|re|s|t|ve))?",xA="(?:"+to+"(?:D|LL|M|RE|S|T|VE))?",Mr=Es+"?",rA="["+rn+"]?",hu="(?:"+fr+"(?:"+[Mc,Hs,Xo].join("|")+")"+rA+Mr+")*",No="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Bo="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Na=rA+Mr+hu,Ea="(?:"+[Yi,Hs,Xo].join("|")+")"+Na,sa="(?:"+[Mc+zs+"?",zs,Hs,Xo,Eo].join("|")+")",Rr=RegExp(to,"g"),oA=RegExp(zs,"g"),Ga=RegExp(vl+"(?="+vl+")|"+sa+Na,"g"),ns=RegExp([Do+"?"+Pu+"+"+Ll+"(?="+[hs,Do,"$"].join("|")+")",va+"+"+xA+"(?="+[hs,Do+Ul,"$"].join("|")+")",Do+"?"+Ul+"+"+Ll,Do+"+"+xA,Bo,No,YA,Ea].join("|"),"g"),Ca=RegExp("["+fr+co+Mi+rn+"]"),Pr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Cl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Xi=-1,wi={};wi[re]=wi[le]=wi[pe]=wi[Te]=wi[We]=wi[dt]=wi[Ye]=wi[De]=wi[Ze]=!0,wi[gt]=wi[St]=wi[je]=wi[Fe]=wi[de]=wi[Ke]=wi[He]=wi[bt]=wi[Ot]=wi[qt]=wi[on]=wi[$n]=wi[On]=wi[Bn]=wi[ei]=!1;var qr={};qr[gt]=qr[St]=qr[je]=qr[de]=qr[Fe]=qr[Ke]=qr[re]=qr[le]=qr[pe]=qr[Te]=qr[We]=qr[Ot]=qr[qt]=qr[on]=qr[$n]=qr[On]=qr[Bn]=qr[In]=qr[dt]=qr[Ye]=qr[De]=qr[Ze]=!0,qr[He]=qr[bt]=qr[ei]=!1;var ee={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"aLine truncated
|
||||
/* [wrapped with `+D+`] */
|
||||
`)}function v(x){return Hr(x)||Ud(x)||!!(Xu&&x&&x[Xu])}function B(x,D){var V=typeof x;return D=D??Ct,!!D&&(V=="number"||V!="symbol"&&ka.test(x))&&x>-1&&x%1==0&&x<D}function E(x,D,V){if(!ll(V))return!1;var Ce=typeof D;return(Ce=="number"?Xl(V)&&B(D,V.length):Ce=="string"&&D in V)?Zl(V[D],x):!1}function F(x,D){if(Hr(x))return!1;var V=typeof x;return V=="number"||V=="symbol"||V=="boolean"||x==null||rA(x)?!0:er.test(x)||!qi.test(x)||D!=null&&x in Do(D)}function Z(x){var D=typeof x;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?x!=="__proto__":x===null}function fe(x){var D=sf(x),V=rt[D];if(typeof V!="function"||!(D in gr.prototype))return!1;if(x===V)return!0;var Ce=Yf(V);return!!Ce&&x===Ce[0]}function _e(x){return!!qh&&qh in x}var ke=Su?Dh:jp;function Le(x){var D=x&&x.constructor,V=typeof D=="function"&&D.prototype||wu;return x===V}function vt(x){return x===x&&!ll(x)}function It(x,D){return function(V){return V==null?!1:V[x]===D&&(D!==t||x in Do(V))}}function Jt(x){var D=kp(x,function(Ce){return V.size===C&&V.clear(),Ce}),V=D.cache;return D}function Ht(x,D){var V=x[1],Ce=D[1],Je=V|Ce,pt=Je<(Y|te|G),Lt=Ce==G&&V==oe||Ce==G&&V==ce&&x[7].length<=D[8]||Ce==(G|ce)&&D[7].length<=D[8]&&V==oe;if(!(pt||Lt))return x;Ce&Y&&(x[2]=D[2],Je|=V&Y?0:J);var Vt=D[3];if(Vt){var sn=x[3];x[3]=sn?xl(sn,Vt,D[4]):Vt,x[4]=sn?hA(x[3],w):D[4]}return Vt=D[5],Vt&&(sn=x[5],x[5]=sn?Kc(sn,Vt,D[6]):Vt,x[6]=sn?hA(x[5],w):D[6]),Vt=D[7],Vt&&(x[7]=Vt),Ce&G&&(x[8]=x[8]==null?D[8]:sa(x[8],D[8])),x[9]==null&&(x[9]=D[9]),x[0]=D[0],x[1]=Je,x}function _n(x){var D=[];if(x!=null)for(var V in Do(x))D.push(V);return D}function Rn(x){return Na.call(x)}function oi(x,D,V){return D=Wo(D===t?x.length-1:D,0),function(){for(var Ce=arguments,Je=-1,pt=Wo(Ce.length-D,0),Lt=vn(pt);++Je<pt;)Lt[Je]=Ce[D+Je];Je=-1;for(var Vt=vn(D+1);++Je<D;)Vt[Je]=Ce[Je];return Vt[D]=V(Lt),ps(x,this,Vt)}}function mi(x,D){return D.length<2?x:Au(x,Xt(D,0,-1))}function Ci(x,D){for(var V=x.length,Ce=sa(D.length,V),Je=_o(x);Ce--;){var pt=D[Ce];x[Ce]=B(pt,V)?Je[pt]:t}return x}function gi(x,D){if(!(D==="constructor"&&typeof x[D]=="function")&&D!="__proto__")return x[D]}var Di=Mr(Bt),ar=Bd||function(x,D){return Ri.setTimeout(x,D)},Yi=Mr(Yt);function Jr(x,D,V){var Ce=D+"";return Yi(x,d(Ce,Cs(js(Ce),V)))}function Mr(x){var D=0,V=0;return function(){var Ce=FA(),Je=Se-(Ce-V);if(V=Ce,Je>0){if(++D>=Oe)return arguments[0]}else D=0;return x.apply(t,arguments)}}function rs(x,D){var V=-1,Ce=x.length,Je=Ce-1;for(D=D===t?Ce:D;++V<D;){var pt=ct(V,Je),Lt=x[pt];x[pt]=x[V],x[V]=Lt}return x.length=D,x}var ca=Jt(function(x){var D=[];return x.charCodeAt(0)===46&&D.push(""),x.replace(Ei,function(V,Ce,Je,pt){D.push(Je?pt.replace(lr,"$1"):Ce||V)}),D});function qr(x){if(typeof x=="string"||rA(x))return x;var D=x+"";return D=="0"&&1/x==-st?"-0":D}function vs(x){if(x!=null){try{return Tl.call(x)}catch{}try{return x+""}catch{}}return""}function Cs(x,D){return Ra(kt,function(V){var Ce="_."+V[0];D&V[1]&&!gh(x,Ce)&&x.push(Ce)}),x.sort()}function ha(x){if(x instanceof gr)return x.clone();var D=new Zo(x.__wrapped__,x.__chain__);return D.__actions__=_o(x.__actions__),D.__index__=x.__index__,D.__values__=x.__values__,D}function Vl(x,D,V){(V?E(x,D,V):D===t)?D=1:D=Wo(ro(D),0);var Ce=x==null?0:x.length;if(!Ce||D<1)return[];for(var Je=0,pt=0,Lt=vn($c(Ce/D));Je<Ce;)Lt[pt++]=Xt(x,Je,Je+=D);return Lt}function Ts(x){for(var D=-1,V=x==null?0:x.length,Ce=0,Je=[];++D<V;){var pt=x[D];pt&&(Je[Ce++]=pt)}return Je}function Ns(){var x=arguments.length;if(!x)return[];for(var D=vn(x-1),V=arguments[0],Ce=x;Ce--;)D[Ce-1]=arguments[Ce];return rc(Hr(V)?_o(V):[V],Pr(D,1))}var Or=yt(function(x,D){return Sl(x)?Po(x,Pr(D,1,Sl,!0)):[]}),Ea=yt(function(x,D){var V=SA(D);return Sl(V)&&(V=t),Sl(x)?Po(x,Pr(D,1,Sl,!0),pr(V,2)):[]}),$l=yt(function(x,D){var V=SA(D);return Sl(V)&&(V=t),Sl(x)?Po(x,Pr(D,1,Sl,!0),t,V):[]});function pc(x,D,V){var Ce=x==null?0:x.length;return Ce?(D=V||D===t?1:ro(D),Xt(x,D<0?0:D,Ce)):[]}function pu(x,D,V){var Ce=x==null?0:x.length;return Ce?(D=V||D===t?1:ro(D),D=Ce-D,Xt(x,0,D<0?0:D)):[]}function oh(x,D){return x&&x.length?Lo(x,pr(D,3),!0,!0):[]}function hs(x,D){return x&&x.length?Lo(x,pr(D,3),!0):[]}function wA(x,D,V,Ce){var Je=x==null?0:x.length;return Je?(V&&typeof V!="number"&&E(x,D,V)&&(V=0,Ce=Je),io(x,D,V,Ce)):[]}function Ml(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=V==null?0:ro(V);return Je<0&&(Je=Wo(Ce+Je,0)),Hu(x,pr(D,3),Je)}function mc(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=Ce-1;return V!==t&&(Je=ro(V),Je=V<0?Wo(Ce+Je,0):sa(Je,Ce-1)),Hu(x,pr(D,3),Je,!0)}function sl(x){var D=x==null?0:x.length;return D?Pr(x,1):[]}function mu(x){var D=x==null?0:x.length;return D?Pr(x,st):[]}function $A(x,D){var V=x==null?0:x.length;return V?(D=D===t?1:ro(D),Pr(x,D)):[]}function od(x){for(var D=-1,V=x==null?0:x.length,Ce={};++D<V;){var Je=x[D];Ce[Je[0]]=Je[1]}return Ce}function Af(x){return x&&x.length?x[0]:t}function Ng(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=V==null?0:ro(V);return Je<0&&(
Line truncated
|
||||
`;x.replace(Ni,function(ao,Ia,Ha,mf,Ad,gf){return Ha||(Ha=mf),Ai+=x.slice(Yn,gf).replace(Il,Vu),Ia&&(Vt=!0,Ai+=`' +
|
||||
__e(`+Ia+`) +
|
||||
'`),Ad&&(sn=!0,Ai+=`';
|
||||
`+Ad+`;
|
||||
__p += '`),Ha&&(Ai+=`' +
|
||||
((__t = (`+Ha+`)) == null ? '' : __t) +
|
||||
'`),Yn=gf+ao.length,ao}),Ai+=`';
|
||||
`;var oo=Go.call(D,"variable")&&D.variable;if(!oo)Ai=`with (obj) {
|
||||
`+Ai+`
|
||||
`)}function v(x){return Vr(x)||Ld(x)||!!(JA&&x&&x[JA])}function B(x,D){var V=typeof x;return D=D??Ct,!!D&&(V=="number"||V!="symbol"&&Pa.test(x))&&x>-1&&x%1==0&&x<D}function E(x,D,V){if(!Al(V))return!1;var Ce=typeof D;return(Ce=="number"?Jl(V)&&B(D,V.length):Ce=="string"&&D in V)?Xl(V[D],x):!1}function F(x,D){if(Vr(x))return!1;var V=typeof x;return V=="number"||V=="symbol"||V=="boolean"||x==null||ou(x)?!0:tr.test(x)||!Hi.test(x)||D!=null&&x in Ro(D)}function Z(x){var D=typeof x;return D=="string"||D=="number"||D=="symbol"||D=="boolean"?x!=="__proto__":x===null}function fe(x){var D=Af(x),V=rt[D];if(typeof V!="function"||!(D in yr.prototype))return!1;if(x===V)return!0;var Ce=Hf(V);return!!Ce&&x===Ce[0]}function _e(x){return!!Hh&&Hh in x}var ke=EA?Rh:Np;function Le(x){var D=x&&x.constructor,V=typeof D=="function"&&D.prototype||SA;return x===V}function vt(x){return x===x&&!Al(x)}function It(x,D){return function(V){return V==null?!1:V[x]===D&&(D!==t||x in Ro(V))}}function Jt(x){var D=Dp(x,function(Ce){return V.size===C&&V.clear(),Ce}),V=D.cache;return D}function Ht(x,D){var V=x[1],Ce=D[1],Je=V|Ce,pt=Je<(Y|te|G),Lt=Ce==G&&V==oe||Ce==G&&V==ce&&x[7].length<=D[8]||Ce==(G|ce)&&D[7].length<=D[8]&&V==oe;if(!(pt||Lt))return x;Ce&Y&&(x[2]=D[2],Je|=V&Y?0:J);var Vt=D[3];if(Vt){var sn=x[3];x[3]=sn?Ml(sn,Vt,D[4]):Vt,x[4]=sn?du(x[3],M):D[4]}return Vt=D[5],Vt&&(sn=x[5],x[5]=sn?Uc(sn,Vt,D[6]):Vt,x[6]=sn?du(x[5],M):D[6]),Vt=D[7],Vt&&(x[7]=Vt),Ce&G&&(x[8]=x[8]==null?D[8]:la(x[8],D[8])),x[9]==null&&(x[9]=D[9]),x[0]=D[0],x[1]=Je,x}function _n(x){var D=[];if(x!=null)for(var V in Ro(x))D.push(V);return D}function Rn(x){return Wa.call(x)}function oi(x,D,V){return D=Qo(D===t?x.length-1:D,0),function(){for(var Ce=arguments,Je=-1,pt=Qo(Ce.length-D,0),Lt=vn(pt);++Je<pt;)Lt[Je]=Ce[D+Je];Je=-1;for(var Vt=vn(D+1);++Je<D;)Vt[Je]=Ce[Je];return Vt[D]=V(Lt),gs(x,this,Vt)}}function mi(x,D){return D.length<2?x:cA(x,Xt(D,0,-1))}function Ci(x,D){for(var V=x.length,Ce=la(D.length,V),Je=bo(x);Ce--;){var pt=D[Ce];x[Ce]=B(pt,V)?Je[pt]:t}return x}function gi(x,D){if(!(D==="constructor"&&typeof x[D]=="function")&&D!="__proto__")return x[D]}var Di=wr(Bt),sr=Od||function(x,D){return Ri.setTimeout(x,D)},qi=wr(Yt);function eo(x,D,V){var Ce=D+"";return qi(x,d(Ce,bs(Gs(Ce),V)))}function wr(x){var D=0,V=0;return function(){var Ce=zu(),Je=Se-(Ce-V);if(V=Ce,Je>0){if(++D>=Ie)return arguments[0]}else D=0;return x.apply(t,arguments)}}function ss(x,D){var V=-1,Ce=x.length,Je=Ce-1;for(D=D===t?Ce:D;++V<D;){var pt=ct(V,Je),Lt=x[pt];x[pt]=x[V],x[V]=Lt}return x.length=D,x}var ha=Jt(function(x){var D=[];return x.charCodeAt(0)===46&&D.push(""),x.replace(Ei,function(V,Ce,Je,pt){D.push(Je?pt.replace(Ar,"$1"):Ce||V)}),D});function Hr(x){if(typeof x=="string"||ou(x))return x;var D=x+"";return D=="0"&&1/x==-st?"-0":D}function _s(x){if(x!=null){try{return kl.call(x)}catch{}try{return x+""}catch{}}return""}function bs(x,D){return Ua(kt,function(V){var Ce="_."+V[0];D&V[1]&&!yh(x,Ce)&&x.push(Ce)}),x.sort()}function da(x){if(x instanceof yr)return x.clone();var D=new Jo(x.__wrapped__,x.__chain__);return D.__actions__=bo(x.__actions__),D.__index__=x.__index__,D.__values__=x.__values__,D}function $l(x,D,V){(V?E(x,D,V):D===t)?D=1:D=Qo(oo(D),0);var Ce=x==null?0:x.length;if(!Ce||D<1)return[];for(var Je=0,pt=0,Lt=vn(Zc(Ce/D));Je<Ce;)Lt[pt++]=Xt(x,Je,Je+=D);return Lt}function ks(x){for(var D=-1,V=x==null?0:x.length,Ce=0,Je=[];++D<V;){var pt=x[D];pt&&(Je[Ce++]=pt)}return Je}function Ws(){var x=arguments.length;if(!x)return[];for(var D=vn(x-1),V=arguments[0],Ce=x;Ce--;)D[Ce-1]=arguments[Ce];return oc(Vr(V)?bo(V):[V],Kr(D,1))}var Ir=yt(function(x,D){return El(x)?Ko(x,Kr(D,1,El,!0)):[]}),Oa=yt(function(x,D){var V=Eu(D);return El(V)&&(V=t),El(x)?Ko(x,Kr(D,1,El,!0),mr(V,2)):[]}),Zl=yt(function(x,D){var V=Eu(D);return El(V)&&(V=t),El(x)?Ko(x,Kr(D,1,El,!0),t,V):[]});function mc(x,D,V){var Ce=x==null?0:x.length;return Ce?(D=V||D===t?1:oo(D),Xt(x,D<0?0:D,Ce)):[]}function mA(x,D,V){var Ce=x==null?0:x.length;return Ce?(D=V||D===t?1:oo(D),D=Ce-D,Xt(x,0,D<0?0:D)):[]}function ah(x,D){return x&&x.length?Fo(x,mr(D,3),!0,!0):[]}function fs(x,D){return x&&x.length?Fo(x,mr(D,3),!0):[]}function Su(x,D,V,Ce){var Je=x==null?0:x.length;return Je?(V&&typeof V!="number"&&E(x,D,V)&&(V=0,Ce=Je),ro(x,D,V,Ce)):[]}function wl(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=V==null?0:oo(V);return Je<0&&(Je=Qo(Ce+Je,0)),VA(x,mr(D,3),Je)}function gc(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=Ce-1;return V!==t&&(Je=oo(V),Je=V<0?Qo(Ce+Je,0):la(Je,Ce-1)),VA(x,mr(D,3),Je,!0)}function ll(x){var D=x==null?0:x.length;return D?Kr(x,1):[]}function gA(x){var D=x==null?0:x.length;return D?Kr(x,st):[]}function Zu(x,D){var V=x==null?0:x.length;return V?(D=D===t?1:oo(D),Kr(x,D)):[]}function ad(x){for(var D=-1,V=x==null?0:x.length,Ce={};++D<V;){var Je=x[D];Ce[Je[0]]=Je[1]}return Ce}function hf(x){return x&&x.length?x[0]:t}function Wg(x,D,V){var Ce=x==null?0:x.length;if(!Ce)return-1;var Je=V==null?0:oo(V);return Je<0&&(
Line truncated
|
||||
`;x.replace(Ni,function(so,ka,$a,yf,cd,vf){return $a||($a=yf),ui+=x.slice(Yn,vf).replace(Tl,$A),ka&&(Vt=!0,ui+=`' +
|
||||
__e(`+ka+`) +
|
||||
'`),cd&&(sn=!0,ui+=`';
|
||||
`+cd+`;
|
||||
__p += '`),$a&&(ui+=`' +
|
||||
((__t = (`+$a+`)) == null ? '' : __t) +
|
||||
'`),Yn=vf+so.length,so}),ui+=`';
|
||||
`;var ao=Wo.call(D,"variable")&&D.variable;if(!ao)ui=`with (obj) {
|
||||
`+ui+`
|
||||
}
|
||||
`;else if(Zn.test(oo))throw new Sr(o);Ai=(sn?Ai.replace(g,""):Ai).replace(mt,"$1").replace(ht,"$1;"),Ai="function("+(oo||"obj")+`) {
|
||||
`+(oo?"":`obj || (obj = {});
|
||||
`;else if(Zn.test(ao))throw new Er(o);ui=(sn?ui.replace(g,""):ui).replace(mt,"$1").replace(ht,"$1;"),ui="function("+(ao||"obj")+`) {
|
||||
`+(ao?"":`obj || (obj = {});
|
||||
`)+"var __t, __p = ''"+(Vt?", __e = _.escape":"")+(sn?`, __j = Array.prototype.join;
|
||||
function print() { __p += __j.call(arguments, '') }
|
||||
`:`;
|
||||
`)+Ai+`return __p
|
||||
}`;var da=se(function(){return Oo(pt,wr+"return "+Ai).apply(t,Lt)});if(da.source=Ai,el(da))throw da;return da}function dl(x){return Ka(x).toLowerCase()}function qa(x){return Ka(x).toUpperCase()}function Rh(x,D,V){if(x=Ka(x),x&&(V||D===t))return Rf(x);if(!x||!(D=xi(D)))return x;var Ce=Mu(x),Je=Mu(D),pt=au(Ce,Je),Lt=Mc(Ce,Je)+1;return Is(Ce,pt,Lt).join("")}function Km(x,D,V){if(x=Ka(x),x&&(V||D===t))return x.slice(0,UA(x)+1);if(!x||!(D=xi(D)))return x;var Ce=Mu(x),Je=Mc(Ce,Mu(D))+1;return Is(Ce,0,Je).join("")}function jc(x,D,V){if(x=Ka(x),x&&(V||D===t))return x.replace(Wi,"");if(!x||!(D=xi(D)))return x;var Ce=Mu(x),Je=au(Ce,Mu(D));return Is(Ce,Je).join("")}function A(x,D){var V=ye,Ce=we;if(ll(D)){var Je="separator"in D?D.separator:Je;V="length"in D?ro(D.length):V,Ce="omission"in D?xi(D.omission):Ce}x=Ka(x);var pt=x.length;if(wc(x)){var Lt=Mu(x);pt=Lt.length}if(V>=pt)return x;var Vt=V-ac(Ce);if(Vt<1)return Ce;var sn=Lt?Is(Lt,0,Vt).join(""):x.slice(0,Vt);if(Je===t)return sn+Ce;if(Lt&&(Vt+=sn.length-Vt),Kp(Je)){if(x.slice(Vt).search(Je)){var Yn,Hn=sn;for(Je.global||(Je=Vc(Je.source,Ka(vr.exec(Je))+"g")),Je.lastIndex=0;Yn=Je.exec(Hn);)var Ai=Yn.index;sn=sn.slice(0,Ai===t?Vt:Ai)}}else if(x.indexOf(xi(Je),Vt)!=Vt){var Ni=sn.lastIndexOf(Je);Ni>-1&&(sn=sn.slice(0,Ni))}return sn+Ce}function m(x){return x=Ka(x),x&&en.test(x)?x.replace(Tt,Bo):x}var b=Ya(function(x,D,V){return x+(V?" ":"")+D.toUpperCase()}),T=tA("toUpperCase");function Q(x,D,V){return x=Ka(x),D=V?t:D,D===t?Yh(x)?wp(x):Tf(x):x.match(D)||[]}var se=yt(function(x,D){try{return ps(x,t,D)}catch(V){return el(V)?V:new Sr(V)}}),Ge=cs(function(x,D){return Ra(D,function(V){V=qr(V),yA(x,V,ZA(x[V],x))}),x});function ot(x){var D=x==null?0:x.length,V=pr();return x=D?po(x,function(Ce){if(typeof Ce[1]!="function")throw new su(l);return[V(Ce[0]),Ce[1]]}):[],yt(function(Ce){for(var Je=-1;++Je<D;){var pt=x[Je];if(ps(pt[0],this,Ce))return ps(pt[1],this,Ce)}})}function zt(x){return Ep(_l(x,O))}function hn(x){return function(){return x}}function kn(x,D){return x==null||x!==x?D:x}var Nn=MA(),pn=MA(!0);function fn(x){return x}function Kr(x){return I(typeof x=="function"?x:_l(x,O))}function Ur(x){return k(_l(x,O))}function xs(x,D){return z(x,_l(D,O))}var tn=yt(function(x,D){return function(V){return CA(V,x,D)}}),$t=yt(function(x,D){return function(V){return CA(x,V,D)}});function An(x,D,V){var Ce=ie(D),Je=Du(D,Ce);V==null&&!(ll(D)&&(Je.length||!Ce.length))&&(V=D,D=x,x=this,Je=Du(D,ie(D)));var pt=!(ll(V)&&"chain"in V)||!!V.chain,Lt=Dh(x);return Ra(Je,function(Vt){var sn=D[Vt];x[Vt]=sn,Lt&&(x.prototype[Vt]=function(){var Yn=this.__chain__;if(pt||Yn){var Hn=x(this.__wrapped__),Ai=Hn.__actions__=_o(this.__actions__);return Ai.push({func:sn,args:arguments,thisArg:x}),Hn.__chain__=Yn,Hn}return sn.apply(x,rc([this.value()],arguments))})}),x}function Ln(){return Ri._===this&&(Ri._=Es),this}function ir(){}function qo(x){return x=ro(x),yt(function(D){return he(D,x)})}var nr=jf(po),Ir=jf(PA),Fu=jf(yh);function Oa(x){return F(x)?Nh(qr(x)):Ue(x)}function ap(x){return function(D){return x==null?t:Au(x,D)}}var cC=fc(),gc=fc(!0);function hh(){return[]}function jp(){return!1}function pf(){return{}}function b0(){return""}function sp(){return!0}function IG(x,D){if(x=ro(x),x<1||x>Ct)return[];var V=Ne,Ce=sa(x,Ne);D=pr(D),x-=Ne;for(var Je=Ch(Ce,D);++V<x;)D(V);return Je}function TG(x){return Hr(x)?po(x,qr):rA(x)?[x]:_o(ca(Ka(x)))}function kG(x){var D=++fA;return Ka(x)+D}var DG=id(function(x,D){return x+D},0),RG=Gf("ceil"),PG=id(function(x,D){return x/D},1),KG=Gf("floor");function UG(x){return x&&x.length?vA(x,fn,Ql):t}function LG(x,D){return x&&x.length?vA(x,pr(D,2),Ql):t}function FG(x){return bd(x,fn)}function zG(x,D){return bd(x,pr(D,2))}function jG(x){return x&&x.length?vA(x,fn,_):t}function NG(x,D){return x&&x.length?vA(x,pr(D,2),_):t}var GG=id(function(x,D){return x*D},1),WG=Gf("round"),QG=id(function(x,D){return x-D},0);function YG(x){return x&&x.length?vh(x,fn):0}function qG(x,D){return x&&x.length?vh(x,pr(D,2)):0}return rt.after=aC,rt.ary=Jg,rt.assign=A1,rt.assignIn=og,rt.assignInWith=v0,rt.assignWith=C0,rt.at=c1,rt.before=Om,rt.bind=ZA,rt.bindAll=Ge,rt.bindKey=ad,rt.castArray=lC,rt.chain=Jf,rt.chunk=Vl,rt.compact=Ts,rt.concat=Ns,rt.cond=ot,rt.conforms=zt,rt.constant=hn,rt.countBy=wm,rt.create=My,rt.curry=Im,rt.curryRight=Tm,rt.debounce=rp,rt.defaults=h1,rt.defaultsDeep=_0,rt.defer=uh,rt.delay=Tp,rt.difference=Or,rt.differenceBy=Ea,rt.differenceWith=$l,rt.drop=pc,rt.dropRight=pu,rt.dropRightWhile=oh,rt.dropWhile=hs,rt.fill=wA,rt.filter=Ay,rt.flatMap=A0,rt.flatMapDeep=hy,rt.flatMapDepth=np,rt.flatten=sl,rt.flattenDeep=mu,rt.flattenDepth=$A,rt.flip=sC,rt.flow=Nn,rt.flowRight=pn,rt.fromPairs=od,rt.functions=u,rt.functionsIn=c,rt.groupBy=c0,rt.initial=Gg,rt.intersection=Rd,rt.intersectionBy=Ip,rt.intersectionWith=ym,rt.invert=P,rt.invertBy=N,rt.invokeMap=Z0,rt.iteratee=Kr,rt.keyBy=dy,rt.keys=ie,rt.keysIn=ue,rt.map=Em,rt.mapKeys=ve,rt.mapValues=Pe,rt.matches=Ur,rt.matchesProperty=xs,rt.memoize=kp,rt
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(O[1])} }\`.`)];const U=[];return n.layerType==="symbol"&&(o==="text-field"&&r&&!r.glyphs&&U.push(new _i(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Wv(N1(l))&&lA(l.type)==="identity"&&U.push(new _i(t,l,'"text-font" does not support identity functions'))),U.concat(i({key:n.key,value:l,valueSpec:w,style:r,styleSpec:a,expressionContext:"property",propertyType:e,propertyKey:o}))}function NL(n){return jL(n,"paint")}function GL(n){return jL(n,"layout")}function WL(n){let e=[];const t=n.value,i=n.key,r=n.style,a=n.styleSpec;if(pa(t)!=="object")return[new _i(i,t,`object expected, ${pa(t)} found`)];!t.type&&!t.ref&&e.push(new _i(i,t,'either "type" or "ref" is required'));let l=lA(t.type);const o=lA(t.ref);if(t.id){const p=lA(t.id);for(let C=0;C<n.arrayIndex;C++){const w=r.layers[C];lA(w.id)===p&&e.push(new _i(i,t.id,`duplicate layer id "${t.id}", previously used at line ${w.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(C=>{C in t&&e.push(new _i(i,t[C],`"${C}" is prohibited for ref layers`))});let p;r.layers.forEach(C=>{lA(C.id)===o&&(p=C)}),p?p.ref?e.push(new _i(i,t.ref,"ref cannot reference another ref layer")):l=lA(p.type):e.push(new _i(i,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new _i(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],C=p&&lA(p.type);p?C==="vector"&&l==="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster source`)):C!=="raster-dem"&&l==="hillshade"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):C!=="raster-dem"&&l==="color-relief"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):C==="raster"&&l!=="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a vector source`)):C==="vector"&&!t["source-layer"]?e.push(new _i(i,t,`layer "${t.id}" must specify a "source-layer"`)):C==="raster-dem"&&l!=="hillshade"&&l!=="color-relief"?e.push(new _i(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(C!=="geojson"||!p.lineMetrics)&&e.push(new _i(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new _i(i,t.source,`source "${t.source}" not found`))}return e=e.concat(mp({key:i,value:t,valueSpec:a.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:a.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:rO,layout(p){return mp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(C){return GL(Ev({layerType:l},C))}}})},paint(p){return mp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(C){return NL(Ev({layerType:l},C))}}})}}})),e}function G1(n){const e=n.value,t=n.key,i=pa(e);return i!=="string"?[new _i(t,e,`string expected, ${i} found`)]:[]}function QH(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,a=r.source_raster_dem,l=n.style;let o=[];const p=pa(i);if(i===void 0)return o;if(p!=="object")return o.push(new _i("source_raster_dem",i,`object expected, ${p} found`)),o;const w=lA(i.encoding)==="custom",O=["redFactor","greenFactor","blueFactor","baseShift"],U=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const K in i)!w&&O.includes(K)?o.push(new _i(K,i[K],`In "${t}": "${K}" is only valid when "encoding" is set to "custom". ${U} encoding found`)):a[K]?o=o.concat(n.validateSpec({key:K,value:i[K],valueSpec:a[K],validateSpec:n.validateSpec,style:l,styleSpec:r})):o.push(new _i(K,i[K],`unknown property "${K}"`));return o}const _I={promoteId:YH};function QL(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,a=n.validateSpec;if(!e.type)return[new _i(t,e,'"type" is required')];const l=lA(e.type);let o;switch(l){case"vector":case"raster":return o=mp({key:t,value:e,valueSpec:i[`source_${l.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:_I,validateSpec:a}),o;case"raster-dem":return o=QH({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=mp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:a,objectElementValidators:_I}),e.cluster)for(const p in e.clusterProperties){const[C,w]=e.clusterProperties[p],O=typeof C=="string"?[C,["accumulated"],["get",p]]:C;o.push(...Iv({key:`${t}.${p}.map`,value:w,expressionContext:"cluster-map"})),o.push(...Iv({key:`${t}.${p}.reduce`,value:O,expressionContext:"cluster-reduce"}))}return o;case"video":return mp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:a,sLine truncated
|
||||
`)+ui+`return __p
|
||||
}`;var fa=se(function(){return Io(pt,Sr+"return "+ui).apply(t,Lt)});if(fa.source=ui,nl(fa))throw fa;return fa}function fl(x){return Fa(x).toLowerCase()}function Va(x){return Fa(x).toUpperCase()}function Ph(x,D,V){if(x=Fa(x),x&&(V||D===t))return Kf(x);if(!x||!(D=xi(D)))return x;var Ce=wA(x),Je=wA(D),pt=sA(Ce,Je),Lt=wc(Ce,Je)+1;return Ts(Ce,pt,Lt).join("")}function Um(x,D,V){if(x=Fa(x),x&&(V||D===t))return x.slice(0,Lu(x)+1);if(!x||!(D=xi(D)))return x;var Ce=wA(x),Je=wc(Ce,wA(D))+1;return Ts(Ce,0,Je).join("")}function Nc(x,D,V){if(x=Fa(x),x&&(V||D===t))return x.replace(Qi,"");if(!x||!(D=xi(D)))return x;var Ce=wA(x),Je=sA(Ce,wA(D));return Ts(Ce,Je).join("")}function u(x,D){var V=ye,Ce=we;if(Al(D)){var Je="separator"in D?D.separator:Je;V="length"in D?oo(D.length):V,Ce="omission"in D?xi(D.omission):Ce}x=Fa(x);var pt=x.length;if(Sc(x)){var Lt=wA(x);pt=Lt.length}if(V>=pt)return x;var Vt=V-sc(Ce);if(Vt<1)return Ce;var sn=Lt?Ts(Lt,0,Vt).join(""):x.slice(0,Vt);if(Je===t)return sn+Ce;if(Lt&&(Vt+=sn.length-Vt),Up(Je)){if(x.slice(Vt).search(Je)){var Yn,Hn=sn;for(Je.global||(Je=$c(Je.source,Fa(Cr.exec(Je))+"g")),Je.lastIndex=0;Yn=Je.exec(Hn);)var ui=Yn.index;sn=sn.slice(0,ui===t?Vt:ui)}}else if(x.indexOf(xi(Je),Vt)!=Vt){var Ni=sn.lastIndexOf(Je);Ni>-1&&(sn=sn.slice(0,Ni))}return sn+Ce}function m(x){return x=Fa(x),x&&en.test(x)?x.replace(Tt,Oo):x}var b=Ha(function(x,D,V){return x+(V?" ":"")+D.toUpperCase()}),T=nu("toUpperCase");function Q(x,D,V){return x=Fa(x),D=V?t:D,D===t?qh(x)?Sp(x):Df(x):x.match(D)||[]}var se=yt(function(x,D){try{return gs(x,t,D)}catch(V){return nl(V)?V:new Er(V)}}),Ge=ds(function(x,D){return Ua(D,function(V){V=Hr(V),vu(x,V,Xu(x[V],x))}),x});function ot(x){var D=x==null?0:x.length,V=mr();return x=D?mo(x,function(Ce){if(typeof Ce[1]!="function")throw new lA(l);return[V(Ce[0]),Ce[1]]}):[],yt(function(Ce){for(var Je=-1;++Je<D;){var pt=x[Je];if(gs(pt[0],this,Ce))return gs(pt[1],this,Ce)}})}function zt(x){return Bp(bl(x,O))}function hn(x){return function(){return x}}function kn(x,D){return x==null||x!==x?D:x}var Nn=wu(),pn=wu(!0);function fn(x){return x}function Ur(x){return I(typeof x=="function"?x:bl(x,O))}function Lr(x){return k(bl(x,O))}function ws(x,D){return z(x,bl(D,O))}var tn=yt(function(x,D){return function(V){return _u(V,x,D)}}),$t=yt(function(x,D){return function(V){return _u(x,V,D)}});function un(x,D,V){var Ce=ie(D),Je=RA(D,Ce);V==null&&!(Al(D)&&(Je.length||!Ce.length))&&(V=D,D=x,x=this,Je=RA(D,ie(D)));var pt=!(Al(V)&&"chain"in V)||!!V.chain,Lt=Rh(x);return Ua(Je,function(Vt){var sn=D[Vt];x[Vt]=sn,Lt&&(x.prototype[Vt]=function(){var Yn=this.__chain__;if(pt||Yn){var Hn=x(this.__wrapped__),ui=Hn.__actions__=bo(this.__actions__);return ui.push({func:sn,args:arguments,thisArg:x}),Hn.__chain__=Yn,Hn}return sn.apply(x,oc([this.value()],arguments))})}),x}function Ln(){return Ri._===this&&(Ri._=Bs),this}function rr(){}function Ho(x){return x=oo(x),yt(function(D){return he(D,x)})}var ir=Gf(mo),Tr=Gf(Ku),zA=Gf(vh);function Ta(x){return F(x)?Gh(Hr(x)):Ue(x)}function lp(x){return function(D){return x==null?t:cA(x,D)}}var hC=pc(),yc=pc(!0);function dh(){return[]}function Np(){return!1}function gf(){return{}}function x0(){return""}function Ap(){return!0}function TG(x,D){if(x=oo(x),x<1||x>Ct)return[];var V=Ne,Ce=la(x,Ne);D=mr(D),x-=Ne;for(var Je=_h(Ce,D);++V<x;)D(V);return Je}function kG(x){return Vr(x)?mo(x,Hr):ou(x)?[x]:bo(ha(Fa(x)))}function DG(x){var D=++pu;return Fa(x)+D}var RG=rd(function(x,D){return x+D},0),PG=Qf("ceil"),KG=rd(function(x,D){return x/D},1),UG=Qf("floor");function LG(x){return x&&x.length?Cu(x,fn,Yl):t}function FG(x,D){return x&&x.length?Cu(x,mr(D,2),Yl):t}function zG(x){return xd(x,fn)}function jG(x,D){return xd(x,mr(D,2))}function NG(x){return x&&x.length?Cu(x,fn,_):t}function GG(x,D){return x&&x.length?Cu(x,mr(D,2),_):t}var WG=rd(function(x,D){return x*D},1),QG=Qf("round"),YG=rd(function(x,D){return x-D},0);function qG(x){return x&&x.length?Ch(x,fn):0}function HG(x,D){return x&&x.length?Ch(x,mr(D,2)):0}return rt.after=sC,rt.ary=t1,rt.assign=h1,rt.assignIn=sg,rt.assignInWith=C0,rt.assignWith=_0,rt.at=d1,rt.before=Im,rt.bind=Xu,rt.bindAll=Ge,rt.bindKey=sd,rt.castArray=AC,rt.chain=tp,rt.chunk=$l,rt.compact=ks,rt.concat=Ws,rt.cond=ot,rt.conforms=zt,rt.constant=hn,rt.countBy=Sm,rt.create=Sy,rt.curry=Tm,rt.curryRight=km,rt.debounce=ap,rt.defaults=f1,rt.defaultsDeep=b0,rt.defer=uh,rt.delay=kp,rt.difference=Ir,rt.differenceBy=Oa,rt.differenceWith=Zl,rt.drop=mc,rt.dropRight=mA,rt.dropRightWhile=ah,rt.dropWhile=fs,rt.fill=Su,rt.filter=hy,rt.flatMap=c0,rt.flatMapDeep=fy,rt.flatMapDepth=rp,rt.flatten=ll,rt.flattenDeep=gA,rt.flattenDepth=Zu,rt.flip=lC,rt.flow=Nn,rt.flowRight=pn,rt.fromPairs=ad,rt.functions=A,rt.functionsIn=c,rt.groupBy=h0,rt.initial=Qg,rt.intersection=Pd,rt.intersectionBy=Tp,rt.intersectionWith=vm,rt.invert=P,rt.invertBy=N,rt.invokeMap=J0,rt.iteratee=Ur,rt.keyBy=py,rt.keys=ie,rt.keysIn=ue,rt.map=Bm,rt.mapKeys=ve,rt.mapValues=Pe,rt.matches=Lr,rt.matchesProperty=ws,rt.memoize=Dp,rt
Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(O[1])} }\`.`)];const U=[];return n.layerType==="symbol"&&(o==="text-field"&&r&&!r.glyphs&&U.push(new _i(t,l,'use of "text-field" requires a style "glyphs" property')),o==="text-font"&&Yv(G1(l))&&Au(l.type)==="identity"&&U.push(new _i(t,l,'"text-font" does not support identity functions'))),U.concat(i({key:n.key,value:l,valueSpec:M,style:r,styleSpec:a,expressionContext:"property",propertyType:e,propertyKey:o}))}function GL(n){return NL(n,"paint")}function WL(n){return NL(n,"layout")}function QL(n){let e=[];const t=n.value,i=n.key,r=n.style,a=n.styleSpec;if(ga(t)!=="object")return[new _i(i,t,`object expected, ${ga(t)} found`)];!t.type&&!t.ref&&e.push(new _i(i,t,'either "type" or "ref" is required'));let l=Au(t.type);const o=Au(t.ref);if(t.id){const p=Au(t.id);for(let C=0;C<n.arrayIndex;C++){const M=r.layers[C];Au(M.id)===p&&e.push(new _i(i,t.id,`duplicate layer id "${t.id}", previously used at line ${M.id.__line__}`))}}if("ref"in t){["type","source","source-layer","filter","layout"].forEach(C=>{C in t&&e.push(new _i(i,t[C],`"${C}" is prohibited for ref layers`))});let p;r.layers.forEach(C=>{Au(C.id)===o&&(p=C)}),p?p.ref?e.push(new _i(i,t.ref,"ref cannot reference another ref layer")):l=Au(p.type):e.push(new _i(i,t.ref,`ref layer "${o}" not found`))}else if(l!=="background")if(!t.source)e.push(new _i(i,t,'missing required property "source"'));else{const p=r.sources&&r.sources[t.source],C=p&&Au(p.type);p?C==="vector"&&l==="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster source`)):C!=="raster-dem"&&l==="hillshade"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):C!=="raster-dem"&&l==="color-relief"?e.push(new _i(i,t.source,`layer "${t.id}" requires a raster-dem source`)):C==="raster"&&l!=="raster"?e.push(new _i(i,t.source,`layer "${t.id}" requires a vector source`)):C==="vector"&&!t["source-layer"]?e.push(new _i(i,t,`layer "${t.id}" must specify a "source-layer"`)):C==="raster-dem"&&l!=="hillshade"&&l!=="color-relief"?e.push(new _i(i,t.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):l==="line"&&t.paint&&t.paint["line-gradient"]&&(C!=="geojson"||!p.lineMetrics)&&e.push(new _i(i,t,`layer "${t.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new _i(i,t.source,`source "${t.source}" not found`))}return e=e.concat(gp({key:i,value:t,valueSpec:a.layer,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,objectElementValidators:{"*"(){return[]},type(){return n.validateSpec({key:`${i}.type`,value:t.type,valueSpec:a.layer.type,style:n.style,styleSpec:n.styleSpec,validateSpec:n.validateSpec,object:t,objectKey:"type"})},filter:sO,layout(p){return gp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(C){return WL(Ov({layerType:l},C))}}})},paint(p){return gp({layer:t,key:p.key,value:p.value,style:p.style,styleSpec:p.styleSpec,validateSpec:p.validateSpec,objectElementValidators:{"*"(C){return GL(Ov({layerType:l},C))}}})}}})),e}function W1(n){const e=n.value,t=n.key,i=ga(e);return i!=="string"?[new _i(t,e,`string expected, ${i} found`)]:[]}function YH(n){var e;const t=(e=n.sourceName)!==null&&e!==void 0?e:"",i=n.value,r=n.styleSpec,a=r.source_raster_dem,l=n.style;let o=[];const p=ga(i);if(i===void 0)return o;if(p!=="object")return o.push(new _i("source_raster_dem",i,`object expected, ${p} found`)),o;const M=Au(i.encoding)==="custom",O=["redFactor","greenFactor","blueFactor","baseShift"],U=n.value.encoding?`"${n.value.encoding}"`:"Default";for(const K in i)!M&&O.includes(K)?o.push(new _i(K,i[K],`In "${t}": "${K}" is only valid when "encoding" is set to "custom". ${U} encoding found`)):a[K]?o=o.concat(n.validateSpec({key:K,value:i[K],valueSpec:a[K],validateSpec:n.validateSpec,style:l,styleSpec:r})):o.push(new _i(K,i[K],`unknown property "${K}"`));return o}const bI={promoteId:qH};function YL(n){const e=n.value,t=n.key,i=n.styleSpec,r=n.style,a=n.validateSpec;if(!e.type)return[new _i(t,e,'"type" is required')];const l=Au(e.type);let o;switch(l){case"vector":case"raster":return o=gp({key:t,value:e,valueSpec:i[`source_${l.replace("-","_")}`],style:n.style,styleSpec:i,objectElementValidators:bI,validateSpec:a}),o;case"raster-dem":return o=YH({sourceName:t,value:e,style:n.style,styleSpec:i,validateSpec:a}),o;case"geojson":if(o=gp({key:t,value:e,valueSpec:i.source_geojson,style:r,styleSpec:i,validateSpec:a,objectElementValidators:bI}),e.cluster)for(const p in e.clusterProperties){const[C,M]=e.clusterProperties[p],O=typeof C=="string"?[C,["accumulated"],["get",p]]:C;o.push(...kv({key:`${t}.${p}.map`,value:M,expressionContext:"cluster-map"})),o.push(...kv({key:`${t}.${p}.reduce`,value:O,expressionContext:"cluster-reduce"}))}return o;case"video":return gp({key:t,value:e,valueSpec:i.source_video,style:r,validateSpec:a,sLine truncated
|
||||
${O}`),W].join(`
|
||||
${o}`)}return C}(n,"",0)}function xI(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function aV(n,e=2){return n=xI(n,$a.$root),n.layers&&(n.layers=n.layers.map(t=>xI(t,$a.layer))),oV(n,{indent:e})}function w4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function MI(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function x6(n,e){return typeof e=="string"&&e[0]==="@"?x6(n,n.constants[e]):e}function sV(n){return Array.isArray(n.stops)}function mC(n,e,t){n[t]=n[e],delete n[e]}function lV(n){n.version=8,GH(n,r=>{r.type==="video"&&r.url!==void 0&&mC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(a=>a.reverse())}),JC(n,r=>{w4(r,a=>{a["symbol-min-distance"]!==void 0&&mC(a,"symbol-min-distance","symbol-spacing")}),MI(r,a=>{a["background-image"]!==void 0&&mC(a,"background-image","background-pattern"),a["line-image"]!==void 0&&mC(a,"line-image","line-pattern"),a["fill-image"]!==void 0&&mC(a,"fill-image","fill-pattern")})}),nO(n,{paint:!0,layout:!0},r=>{const a=x6(n,r.value);sV(a)&&a.stops.forEach(l=>{l[1]=x6(n,l[1])}),r.set(a)}),delete n.constants,JC(n,r=>{w4(r,a=>{delete a["text-max-size"],delete a["icon-max-size"]}),MI(r,a=>{a["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=a["text-size"],delete a["text-size"]),a["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=a["icon-size"],delete a["icon-size"])})});function e(r){function a(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return a(r);if(typeof r=="object")return r.stops.forEach(l=>{l[1]=a(l[1])}),r;throw new Error("unexpected font value")}JC(n,r=>{w4(r,a=>{a["text-font"]&&(a["text-font"]=e(a["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function uV(n){const e=[];return JC(n,t=>{t.filter&&(t.filter=XC(t.filter))}),nO(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:a})=>{Qv(i)||(typeof i=="object"&&!Array.isArray(i)?(a(XB(i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&a(UL(i)))}),n}function AV(n){return JSON.parse(cV(JSON.stringify(n)))}function cV(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,a,l,o]=i.slice(1);return[a,l]=[a,l].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[r,a,l,o].filter(Boolean).join(",")})"`}return e})}function hV(n){let e=!1;if(n.version===7&&(n=lV(n),e=!0),n.version===8&&(e=!!uV(n),e=!0),nO(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(AV(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const xf=$a,dV={StyleExpression:PL,StylePropertyFunction:Z3,ZoomConstantExpression:v6,ZoomDependentExpression:C6,createExpression:V3,createPropertyExpression:$3,isExpression:Qv,isExpressionFilter:ab,isZoomExpression:BH,normalizePropertyExpression:OH},fV={convertFunction:XB,createFunction:ZB,isFunction:Wv},pV=8,mV={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},centerAltitude:{type:"number",doc:"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:123.4,"sdk-support":{"basic functionality":{js:"5.0.0",android:"https://github.com/maplibre/maplibre-native/issues/2980",ios:"https://github.com/maplibre/maplibre-native/issues/2980"}}},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to
Line truncated
|
||||
${o}`)}return C}(n,"",0)}function MI(n,e){const t={};for(const i in e)n[i]!==void 0&&(t[i]=n[i]);for(const i in n)t[i]===void 0&&(t[i]=n[i]);return t}function sV(n,e=2){return n=MI(n,Xa.$root),n.layers&&(n.layers=n.layers.map(t=>MI(t,Xa.layer))),aV(n,{indent:e})}function B4(n,e){for(const t in n)t.indexOf("layout")===0&&e(n[t],t)}function wI(n,e){for(const t in n)t.indexOf("paint")===0&&e(n[t],t)}function S6(n,e){return typeof e=="string"&&e[0]==="@"?S6(n,n.constants[e]):e}function lV(n){return Array.isArray(n.stops)}function gC(n,e,t){n[t]=n[e],delete n[e]}function AV(n){n.version=8,WH(n,r=>{r.type==="video"&&r.url!==void 0&&gC(r,"url","urls"),r.type==="video"&&r.coordinates.forEach(a=>a.reverse())}),t_(n,r=>{B4(r,a=>{a["symbol-min-distance"]!==void 0&&gC(a,"symbol-min-distance","symbol-spacing")}),wI(r,a=>{a["background-image"]!==void 0&&gC(a,"background-image","background-pattern"),a["line-image"]!==void 0&&gC(a,"line-image","line-pattern"),a["fill-image"]!==void 0&&gC(a,"fill-image","fill-pattern")})}),oO(n,{paint:!0,layout:!0},r=>{const a=S6(n,r.value);lV(a)&&a.stops.forEach(l=>{l[1]=S6(n,l[1])}),r.set(a)}),delete n.constants,t_(n,r=>{B4(r,a=>{delete a["text-max-size"],delete a["icon-max-size"]}),wI(r,a=>{a["text-size"]&&(r.layout||(r.layout={}),r.layout["text-size"]=a["text-size"],delete a["text-size"]),a["icon-size"]&&(r.layout||(r.layout={}),r.layout["icon-size"]=a["icon-size"],delete a["icon-size"])})});function e(r){function a(l){return l.split(",").map(o=>o.trim())}if(Array.isArray(r))return r;if(typeof r=="string")return a(r);if(typeof r=="object")return r.stops.forEach(l=>{l[1]=a(l[1])}),r;throw new Error("unexpected font value")}t_(n,r=>{B4(r,a=>{a["text-font"]&&(a["text-font"]=e(a["text-font"]))})});let t=0;for(let r=n.layers.length-1;r>=0;r--)if(n.layers[r].type!=="symbol"){t=r+1;break}const i=n.layers.splice(t);return i.reverse(),n.layers=n.layers.concat(i),n}function uV(n){const e=[];return t_(n,t=>{t.filter&&(t.filter=e_(t.filter))}),oO(n,{paint:!0,layout:!0},({path:t,value:i,reference:r,set:a})=>{qv(i)||(typeof i=="object"&&!Array.isArray(i)?(a(tO(i,r)),e.push(t.join("."))):r.tokens&&typeof i=="string"&&a(LL(i)))}),n}function cV(n){return JSON.parse(hV(JSON.stringify(n)))}function hV(n){return n.replace(/"hsla?\((.+?)\)"/gi,(e,t)=>{const i=t.match(/^(.+?)\s*,\s*(.+?)\s*,\s*(.+?)(?:\s*,\s*(.+))?$/i);if(i){let[r,a,l,o]=i.slice(1);return[a,l]=[a,l].map(p=>p.endsWith("%")?p:`${parseFloat(p)*100}%`),`"hsl${typeof o=="string"?"a":""}(${[r,a,l,o].filter(Boolean).join(",")})"`}return e})}function dV(n){let e=!1;if(n.version===7&&(n=AV(n),e=!0),n.version===8&&(e=!!uV(n),e=!0),oO(n,{paint:!0,layout:!0},({value:t,reference:i,set:r})=>{i.type==="color"&&r(cV(t))}),!e)throw new Error(`Cannot migrate from ${n.version}`);return n}const wf=Xa,fV={StyleExpression:KL,StylePropertyFunction:X3,ZoomConstantExpression:b6,ZoomDependentExpression:x6,createExpression:$3,createPropertyExpression:Z3,isExpression:qv,isExpressionFilter:lb,isZoomExpression:OH,normalizePropertyExpression:IH},pV={convertFunction:tO,createFunction:eO,isFunction:Yv},mV=8,gV={version:{required:!0,type:"enum",values:[8],doc:"Style specification version number. Must be 8.",example:8},name:{type:"string",doc:"A human-readable name for the style.",example:"Bright"},metadata:{type:"*",doc:"Arbitrary properties useful to track with the stylesheet, but do not influence rendering. Properties should be prefixed to avoid collisions, like 'maplibre:'.",example:{"styleeditor:slimmode":!0,"styleeditor:comment":"Style generated 1677776383","styleeditor:version":"3.14.159265","example:object":{String:"one",Number:2,Boolean:!1}}},center:{type:"array",value:"number",doc:"Default map center in longitude and latitude. The style center will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:[-73.9749,40.7736]},centerAltitude:{type:"number",doc:"Default map center altitude in meters above sea level. The style center altitude defines the altitude where the camera is looking at and will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:123.4,"sdk-support":{"basic functionality":{js:"5.0.0",android:"https://github.com/maplibre/maplibre-native/issues/2980",ios:"https://github.com/maplibre/maplibre-native/issues/2980"}}},zoom:{type:"number",doc:"Default zoom level. The style zoom will be used only if the map has not been positioned by other means (e.g. map options or user interaction).",example:12.5},bearing:{type:"number",default:0,period:360,units:"degrees",doc:'Default bearing, in degrees. The bearing is the compass direction that is "up"; for example, a bearing of 90° orients the map so that east is up. This value will be used only if the map has not been positioned by other means (e.g. map options or user interaction).',example:29},pitch:{type:"number",default:0,units:"degrees",doc:"Default pitch, in degrees. Zero is perpendicular to
Line truncated
|
||||
|
||||
* In categorical functions, when the feature value does not match any of the stop domain values.
|
||||
|
||||
@@ -90,11 +90,11 @@ ${o}`)}return C}(n,"",0)}function xI(n,e){const t={};for(const i in e)n[i]!==voi
|
||||
|
||||
* In interval or exponential property and zoom-and-property functions, when the feature value is not numeric.
|
||||
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:LV,expression:FV,expression_name:zV,light:jV,sky:NV,terrain:GV,projection:WV,paint:QV,paint_fill:YV,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:qV,paint_circle:HV,paint_heatmap:VV,paint_symbol:$V,paint_raster:ZV,paint_hillshade:XV,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre
Line truncated
|
||||
If no default is provided, the style property's default is used in these circumstances.`}},function_stop:FV,expression:zV,expression_name:jV,light:NV,sky:GV,terrain:WV,projection:QV,paint:YV,paint_fill:qV,"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity of the entire fill extrusion layer. This is rendered on a per-layer, not per-feature, basis, and data-driven styling is not available.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",doc:"The base color of the extruded fill. The extrusion's surfaces will be shaded differently based on this color in combination with the root `light` settings. If this color is specified as `rgba` with an alpha component, the alpha component will be ignored; use `fill-extrusion-opacity` to set layer opacity.",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",doc:"The geometry's offset. Values are [x, y] where negatives indicate left and up (on the flat plane), respectively.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{doc:"The fill extrusion is translated relative to the map."},viewport:{doc:"The fill extrusion is translated relative to the viewport."}},doc:"Controls the frame of reference for `fill-extrusion-translate`.",default:"map",requires:["fill-extrusion-translate"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,doc:"Name of image in sprite to use for drawing images on extruded fills. For seamless patterns, image width and height must be a factor of two (2, 4, 8, ..., 512). Note that zoom-dependent expressions will be evaluated only at integer zoom levels.","sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.49.0",android:"6.5.0",ios:"4.4.0"}},expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude this layer.",transition:!0,"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",doc:"The height with which to extrude the base of this layer. Must be less than or equal to `fill-extrusion-height`.",transition:!0,requires:["fill-extrusion-height"],"sdk-support":{"basic functionality":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"},"data-driven styling":{js:"0.27.0",android:"5.1.0",ios:"3.6.0"}},expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,doc:"Whether to apply a vertical gradient to the sides of a fill-extrusion layer. If true, sides will be shaded slightly darker farther down.",transition:!1,"sdk-support":{"basic functionality":{js:"0.50.0",ios:"4.7.0",android:"7.0.0"}},expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:HV,paint_circle:VV,paint_heatmap:$V,paint_symbol:ZV,paint_raster:XV,paint_hillshade:JV,"paint_color-relief":{"color-relief-opacity":{type:"number",default:1,minimum:0,maximum:1,doc:"The opacity at which the color-relief will be drawn.",transition:!0,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre/maplibre-native/issues/3408"}},expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"color-relief-color":{type:"color",doc:'Defines the color of each pixel based on its elevation. Should be an expression that uses `["elevation"]` as input.',example:["interpolate",["linear"],["elevation"],0,"black",8849,"white"],transition:!1,"sdk-support":{"basic functionality":{js:"https://github.com/maplibre/maplibre-gl-js/issues/5666",android:"https://github.com/maplibre/maplibre-native/issues/3408",ios:"https://github.com/maplibre
Line truncated
|
||||
* MapLibre GL JS
|
||||
* @license 3-Clause BSD. Full text of license: https://github.com/maplibre/maplibre-gl-js/blob/v5.7.1/LICENSE.txt
|
||||
*/var n$=xx.exports,wI;function i$(){return wI||(wI=1,function(n,e){(function(t,i){n.exports=i()})(n$,function(){var t={},i={};function r(l,o,p){if(i[l]=p,l==="index"){var C="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",w={};return i.shared(w),i.index(t,w),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([C],{type:"text/javascript"}))),t}}r("shared",["exports"],function(l){function o(h,u,c,y){return new(c||(c=Promise))(function(M,R){function P(ie){try{H(y.next(ie))}catch(ue){R(ue)}}function N(ie){try{H(y.throw(ie))}catch(ue){R(ue)}}function H(ie){var ue;ie.done?M(ie.value):(ue=ie.value,ue instanceof c?ue:new c(function(ve){ve(ue)})).then(P,N)}H((y=y.apply(h,u||[])).next())})}function p(h,u){this.x=h,this.y=u}function C(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var w,O;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,u){return this.clone()._rotateAround(h,u)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const u=h.x-this.x,c=h.y-this.y;return u*u+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,u){return Math.atan2(this.x*u-this.y*h,this.x*h+this.y*u)},_matMult(h){const u=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=u,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const u=Math.cos(h),c=Math.sin(h),y=c*this.x+u*this.y;return this.x=u*this.x-c*this.y,this.y=y,this},_rotateAround(h,u){const c=Math.cos(h),y=Math.sin(h),M=u.y+y*(this.x-u.x)+c*(this.y-u.y);return this.x=u.x+c*(this.x-u.x)-y*(this.y-u.y),this.y=M,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var U=function(){if(O)return w;function h(u,c,y,M){this.cx=3*u,this.bx=3*(y-u)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(M-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=u,this.p1y=c,this.p2x=y,this.p2y=M}return O=1,w=h,h.prototype={sampleCurveX:function(u){return((this.ax*u+this.bx)*u+this.cx)*u},sampleCurveY:function(u){return((this.ay*u+this.by)*u+this.cy)*u},sampleCurveDerivativeX:function(u){return(3*this.ax*u+2*this.bx)*u+this.cx},solveCurveX:function(u,c){if(c===void 0&&(c=1e-6),u<0)return 0;if(u>1)return 1;for(var y=u,M=0;M<8;M++){var R=this.sampleCurveX(y)-u;if(Math.abs(R)<c)return y;var P=this.sampleCurveDerivativeX(y);if(Math.abs(P)<1e-6)break;y-=R/P}var N=0,H=1;for(y=u,M=0;M<20&&(R=this.sampleCurveX(y),!(Math.abs(R-u)<c));M++)u>R?N=y:H=y,y=.5*(H-N)+N;return y},solve:function(u,c){return this.sampleCurveY(this.solveCurveX(u,c))}},w}(),K=C(U);let j,W;function Y(){return j==null&&(j=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),j}function te(){if(W==null&&(W=!1,Y())){const u=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(u){for(let y=0;y<5*5;y++){const M=4*y;u.fillStyle=`rgb(${M},${M+1},${M+2})`,u.fillRect(y%5,Math.floor(y/5),1,1)}const c=u.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&c[y]!==y){W=!0;break}}}return W||!1}var J=1e-6,oe=typeof Float32Array<"u"?Float32Array:Array;function ne(){var h=new oe(9);return oe!=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 $(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 ae(){var h=new oe(3);return oe!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function G(h){var u=h[0],c=h[1],y=h[2];return Math.sqrt(u*u+c*c+y*y)}function ce(h,u,c){var y=new oe(3);return y[0]=h,y[1]=u,y[2]=c,y}function ge(h,u,c){return h[0]=u[0]+c[0],h[1]=u[1]+c[1],h[2]=u[2]+c[2],h}function ye(h,u,c){return h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c,h}function we(h,u,Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ve[1])} }\`.`)];const Pe=[];return h.layerType==="symbol"&&(N==="text-field"&&M&&!M.glyphs&&Pe.push(new wn(c,P,'use of "text-field" requires a style "glyphs" property')),N==="text-font"&&lc(rl(P))&&ms(P.type)==="identity"&&Pe.push(new wn(c,P,'"text-font" does not support identity functions'))),Pe.concat(y({key:h.key,value:P,valueSpec:ue,style:M,styleSpec:R,expressionContext:"property",propertyType:u,propertyKey:N}))}function gs(h){return gr(h,"paint")}function eh(h){return gr(h,"layout")}function Sh(h){let u=[];const c=h.value,y=h.key,M=h.style,R=h.styleSpec;if(kr(c)!=="object")return[new wn(y,c,`object expected, ${kr(c)} found`)];c.type||c.ref||u.push(new wn(y,c,'either "type" or "ref" is required'));let P=ms(c.type);const N=ms(c.ref);if(c.id){const H=ms(c.id);for(let ie=0;ie<h.arrayIndex;ie++){const ue=M.layers[ie];ms(ue.id)===H&&u.push(new wn(y,c.id,`duplicate layer id "${c.id}", previously used at line ${ue.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ie=>{ie in c&&u.push(new wn(y,c[ie],`"${ie}" is prohibited for ref layers`))}),M.layers.forEach(ie=>{ms(ie.id)===N&&(H=ie)}),H?H.ref?u.push(new wn(y,c.ref,"ref cannot reference another ref layer")):P=ms(H.type):u.push(new wn(y,c.ref,`ref layer "${N}" not found`))}else if(P!=="background")if(c.source){const H=M.sources&&M.sources[c.source],ie=H&&ms(H.type);H?ie==="vector"&&P==="raster"?u.push(new wn(y,c.source,`layer "${c.id}" requires a raster source`)):ie!=="raster-dem"&&P==="hillshade"||ie!=="raster-dem"&&P==="color-relief"?u.push(new wn(y,c.source,`layer "${c.id}" requires a raster-dem source`)):ie==="raster"&&P!=="raster"?u.push(new wn(y,c.source,`layer "${c.id}" requires a vector source`)):ie!=="vector"||c["source-layer"]?ie==="raster-dem"&&P!=="hillshade"&&P!=="color-relief"?u.push(new wn(y,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):P!=="line"||!c.paint||!c.paint["line-gradient"]||ie==="geojson"&&H.lineMetrics||u.push(new wn(y,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):u.push(new wn(y,c,`layer "${c.id}" must specify a "source-layer"`)):u.push(new wn(y,c.source,`source "${c.source}" not found`))}else u.push(new wn(y,c,'missing required property "source"'));return u=u.concat(zs({key:y,value:c,valueSpec:R.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:c.type,valueSpec:R.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Ga,layout:H=>zs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ie=>eh(uo({layerType:P},ie))}}),paint:H=>zs({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ie=>gs(uo({layerType:P},ie))}})}})),u}function Ro(h){const u=h.value,c=h.key,y=kr(u);return y!=="string"?[new wn(c,u,`string expected, ${y} found`)]:[]}const th={promoteId:function({key:h,value:u}){if(kr(u)==="string")return Ro({key:h,value:u});{const c=[];for(const y in u)c.push(...Ro({key:`${h}.${y}`,value:u[y]}));return c}}};function Tu(h){const u=h.value,c=h.key,y=h.styleSpec,M=h.style,R=h.validateSpec;if(!u.type)return[new wn(c,u,'"type" is required')];const P=ms(u.type);let N;switch(P){case"vector":case"raster":return N=zs({key:c,value:u,valueSpec:y[`source_${P.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:th,validateSpec:R}),N;case"raster-dem":return N=function(H){var ie;const ue=(ie=H.sourceName)!==null&&ie!==void 0?ie:"",ve=H.value,Pe=H.styleSpec,Qe=Pe.source_raster_dem,qe=H.style;let et=[];const At=kr(ve);if(ve===void 0)return et;if(At!=="object")return et.push(new wn("source_raster_dem",ve,`object expected, ${At} found`)),et;const Mt=ms(ve.encoding)==="custom",Qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const jt in ve)!Mt&&Qt.includes(jt)?et.push(new wn(jt,ve[jt],`In "${ue}": "${jt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):Qe[jt]?et=et.concat(H.validateSpec({key:jt,value:ve[jt],valueSpec:Qe[jt],validateSpec:H.validateSpec,style:qe,styleSpec:Pe})):et.push(new wn(jt,ve[jt],`unknown property "${jt}"`));return et}({sourceName:c,value:u,style:h.style,styleSpec:y,validateSpec:R}),N;case"geojson":if(N=zs({key:c,value:u,valueSpec:y.source_geojson,style:M,styleSpec:y,validateSpec:R,objectElementValidators:th}),u.cluster)for(const H in u.clusterProperties){const[ie,ue]=u.clusterProperties[H],ve=typeof ie=="string"?[ie,["accumulated"],["get",H]]:ie;N.push(...Ju({key:`${c}.${H}.map`,value:ue,expressionContext:"cluster-map"})),N.push(...Ju({key:`${c}.${H}.reduce`,value:ve,expressionCLine truncated
|
||||
*/var i$=Mx.exports,SI;function r$(){return SI||(SI=1,function(n,e){(function(t,i){n.exports=i()})(i$,function(){var t={},i={};function r(l,o,p){if(i[l]=p,l==="index"){var C="var sharedModule = {}; ("+i.shared+")(sharedModule); ("+i.worker+")(sharedModule);",M={};return i.shared(M),i.index(t,M),typeof window<"u"&&t.setWorkerUrl(window.URL.createObjectURL(new Blob([C],{type:"text/javascript"}))),t}}r("shared",["exports"],function(l){function o(h,A,c,y){return new(c||(c=Promise))(function(w,R){function P(ie){try{H(y.next(ie))}catch(ue){R(ue)}}function N(ie){try{H(y.throw(ie))}catch(ue){R(ue)}}function H(ie){var ue;ie.done?w(ie.value):(ue=ie.value,ue instanceof c?ue:new c(function(ve){ve(ue)})).then(P,N)}H((y=y.apply(h,A||[])).next())})}function p(h,A){this.x=h,this.y=A}function C(h){return h&&h.__esModule&&Object.prototype.hasOwnProperty.call(h,"default")?h.default:h}var M,O;typeof SuppressedError=="function"&&SuppressedError,p.prototype={clone(){return new p(this.x,this.y)},add(h){return this.clone()._add(h)},sub(h){return this.clone()._sub(h)},multByPoint(h){return this.clone()._multByPoint(h)},divByPoint(h){return this.clone()._divByPoint(h)},mult(h){return this.clone()._mult(h)},div(h){return this.clone()._div(h)},rotate(h){return this.clone()._rotate(h)},rotateAround(h,A){return this.clone()._rotateAround(h,A)},matMult(h){return this.clone()._matMult(h)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(h){return this.x===h.x&&this.y===h.y},dist(h){return Math.sqrt(this.distSqr(h))},distSqr(h){const A=h.x-this.x,c=h.y-this.y;return A*A+c*c},angle(){return Math.atan2(this.y,this.x)},angleTo(h){return Math.atan2(this.y-h.y,this.x-h.x)},angleWith(h){return this.angleWithSep(h.x,h.y)},angleWithSep(h,A){return Math.atan2(this.x*A-this.y*h,this.x*h+this.y*A)},_matMult(h){const A=h[2]*this.x+h[3]*this.y;return this.x=h[0]*this.x+h[1]*this.y,this.y=A,this},_add(h){return this.x+=h.x,this.y+=h.y,this},_sub(h){return this.x-=h.x,this.y-=h.y,this},_mult(h){return this.x*=h,this.y*=h,this},_div(h){return this.x/=h,this.y/=h,this},_multByPoint(h){return this.x*=h.x,this.y*=h.y,this},_divByPoint(h){return this.x/=h.x,this.y/=h.y,this},_unit(){return this._div(this.mag()),this},_perp(){const h=this.y;return this.y=this.x,this.x=-h,this},_rotate(h){const A=Math.cos(h),c=Math.sin(h),y=c*this.x+A*this.y;return this.x=A*this.x-c*this.y,this.y=y,this},_rotateAround(h,A){const c=Math.cos(h),y=Math.sin(h),w=A.y+y*(this.x-A.x)+c*(this.y-A.y);return this.x=A.x+c*(this.x-A.x)-y*(this.y-A.y),this.y=w,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:p},p.convert=function(h){if(h instanceof p)return h;if(Array.isArray(h))return new p(+h[0],+h[1]);if(h.x!==void 0&&h.y!==void 0)return new p(+h.x,+h.y);throw new Error("Expected [x, y] or {x, y} point format")};var U=function(){if(O)return M;function h(A,c,y,w){this.cx=3*A,this.bx=3*(y-A)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*c,this.by=3*(w-c)-this.cy,this.ay=1-this.cy-this.by,this.p1x=A,this.p1y=c,this.p2x=y,this.p2y=w}return O=1,M=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,c){if(c===void 0&&(c=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)<c)return y;var P=this.sampleCurveDerivativeX(y);if(Math.abs(P)<1e-6)break;y-=R/P}var N=0,H=1;for(y=A,w=0;w<20&&(R=this.sampleCurveX(y),!(Math.abs(R-A)<c));w++)A>R?N=y:H=y,y=.5*(H-N)+N;return y},solve:function(A,c){return this.sampleCurveY(this.solveCurveX(A,c))}},M}(),K=C(U);let j,W;function Y(){return j==null&&(j=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")&&typeof createImageBitmap=="function"),j}function te(){if(W==null&&(W=!1,Y())){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 c=A.getImageData(0,0,5,5).data;for(let y=0;y<5*5*4;y++)if(y%4!=3&&c[y]!==y){W=!0;break}}}return W||!1}var J=1e-6,oe=typeof Float32Array<"u"?Float32Array:Array;function ne(){var h=new oe(9);return oe!=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 $(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 ae(){var h=new oe(3);return oe!=Float32Array&&(h[0]=0,h[1]=0,h[2]=0),h}function G(h){var A=h[0],c=h[1],y=h[2];return Math.sqrt(A*A+c*c+y*y)}function ce(h,A,c){var y=new oe(3);return y[0]=h,y[1]=A,y[2]=c,y}function ge(h,A,c){return h[0]=A[0]+c[0],h[1]=A[1]+c[1],h[2]=A[2]+c[2],h}function ye(h,A,c){return h[0]=A[0]*c,h[1]=A[1]*c,h[2]=A[2]*c,h}function we(h,A,Line truncated
|
||||
Use an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(ve[1])} }\`.`)];const Pe=[];return h.layerType==="symbol"&&(N==="text-field"&&w&&!w.glyphs&&Pe.push(new wn(c,P,'use of "text-field" requires a style "glyphs" property')),N==="text-font"&&Ac(ol(P))&&ys(P.type)==="identity"&&Pe.push(new wn(c,P,'"text-font" does not support identity functions'))),Pe.concat(y({key:h.key,value:P,valueSpec:ue,style:w,styleSpec:R,expressionContext:"property",propertyType:A,propertyKey:N}))}function vs(h){return yr(h,"paint")}function th(h){return yr(h,"layout")}function Eh(h){let A=[];const c=h.value,y=h.key,w=h.style,R=h.styleSpec;if(Dr(c)!=="object")return[new wn(y,c,`object expected, ${Dr(c)} found`)];c.type||c.ref||A.push(new wn(y,c,'either "type" or "ref" is required'));let P=ys(c.type);const N=ys(c.ref);if(c.id){const H=ys(c.id);for(let ie=0;ie<h.arrayIndex;ie++){const ue=w.layers[ie];ys(ue.id)===H&&A.push(new wn(y,c.id,`duplicate layer id "${c.id}", previously used at line ${ue.id.__line__}`))}}if("ref"in c){let H;["type","source","source-layer","filter","layout"].forEach(ie=>{ie in c&&A.push(new wn(y,c[ie],`"${ie}" is prohibited for ref layers`))}),w.layers.forEach(ie=>{ys(ie.id)===N&&(H=ie)}),H?H.ref?A.push(new wn(y,c.ref,"ref cannot reference another ref layer")):P=ys(H.type):A.push(new wn(y,c.ref,`ref layer "${N}" not found`))}else if(P!=="background")if(c.source){const H=w.sources&&w.sources[c.source],ie=H&&ys(H.type);H?ie==="vector"&&P==="raster"?A.push(new wn(y,c.source,`layer "${c.id}" requires a raster source`)):ie!=="raster-dem"&&P==="hillshade"||ie!=="raster-dem"&&P==="color-relief"?A.push(new wn(y,c.source,`layer "${c.id}" requires a raster-dem source`)):ie==="raster"&&P!=="raster"?A.push(new wn(y,c.source,`layer "${c.id}" requires a vector source`)):ie!=="vector"||c["source-layer"]?ie==="raster-dem"&&P!=="hillshade"&&P!=="color-relief"?A.push(new wn(y,c.source,"raster-dem source can only be used with layer type 'hillshade' or 'color-relief'.")):P!=="line"||!c.paint||!c.paint["line-gradient"]||ie==="geojson"&&H.lineMetrics||A.push(new wn(y,c,`layer "${c.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):A.push(new wn(y,c,`layer "${c.id}" must specify a "source-layer"`)):A.push(new wn(y,c.source,`source "${c.source}" not found`))}else A.push(new wn(y,c,'missing required property "source"'));return A=A.concat(Ns({key:y,value:c,valueSpec:R.layer,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,objectElementValidators:{"*":()=>[],type:()=>h.validateSpec({key:`${y}.type`,value:c.type,valueSpec:R.layer.type,style:h.style,styleSpec:h.styleSpec,validateSpec:h.validateSpec,object:c,objectKey:"type"}),filter:Qa,layout:H=>Ns({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ie=>th(uo({layerType:P},ie))}}),paint:H=>Ns({layer:c,key:H.key,value:H.value,style:H.style,styleSpec:H.styleSpec,validateSpec:H.validateSpec,objectElementValidators:{"*":ie=>vs(uo({layerType:P},ie))}})}})),A}function Po(h){const A=h.value,c=h.key,y=Dr(A);return y!=="string"?[new wn(c,A,`string expected, ${y} found`)]:[]}const nh={promoteId:function({key:h,value:A}){if(Dr(A)==="string")return Po({key:h,value:A});{const c=[];for(const y in A)c.push(...Po({key:`${h}.${y}`,value:A[y]}));return c}}};function kA(h){const A=h.value,c=h.key,y=h.styleSpec,w=h.style,R=h.validateSpec;if(!A.type)return[new wn(c,A,'"type" is required')];const P=ys(A.type);let N;switch(P){case"vector":case"raster":return N=Ns({key:c,value:A,valueSpec:y[`source_${P.replace("-","_")}`],style:h.style,styleSpec:y,objectElementValidators:nh,validateSpec:R}),N;case"raster-dem":return N=function(H){var ie;const ue=(ie=H.sourceName)!==null&&ie!==void 0?ie:"",ve=H.value,Pe=H.styleSpec,Qe=Pe.source_raster_dem,qe=H.style;let et=[];const ut=Dr(ve);if(ve===void 0)return et;if(ut!=="object")return et.push(new wn("source_raster_dem",ve,`object expected, ${ut} found`)),et;const Mt=ys(ve.encoding)==="custom",Qt=["redFactor","greenFactor","blueFactor","baseShift"],Dt=H.value.encoding?`"${H.value.encoding}"`:"Default";for(const jt in ve)!Mt&&Qt.includes(jt)?et.push(new wn(jt,ve[jt],`In "${ue}": "${jt}" is only valid when "encoding" is set to "custom". ${Dt} encoding found`)):Qe[jt]?et=et.concat(H.validateSpec({key:jt,value:ve[jt],valueSpec:Qe[jt],validateSpec:H.validateSpec,style:qe,styleSpec:Pe})):et.push(new wn(jt,ve[jt],`unknown property "${jt}"`));return et}({sourceName:c,value:A,style:h.style,styleSpec:y,validateSpec:R}),N;case"geojson":if(N=Ns({key:c,value:A,valueSpec:y.source_geojson,style:w,styleSpec:y,validateSpec:R,objectElementValidators:nh}),A.cluster)for(const H in A.clusterProperties){const[ie,ue]=A.clusterProperties[H],ve=typeof ie=="string"?[ie,["accumulated"],["get",H]]:ie;N.push(...eu({key:`${c}.${H}.map`,value:ue,expressionContext:"cluster-map"})),N.push(...eu({key:`${c}.${H}.reduce`,value:ve,expressionCLine truncated
|
||||
precision mediump float;
|
||||
#else
|
||||
#if !defined(lowp)
|
||||
@@ -153,19 +153,19 @@ vec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=frac
|
||||
#else
|
||||
return 0.0;
|
||||
#endif
|
||||
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:dr("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:dr("",`#define GLOBE_RADIUS 6371008.8
|
||||
}const float PI=3.141592653589793;uniform mat4 u_projection_matrix;`),projectionMercator:fr("","float projectLineThickness(float tileY) {return 1.0;}float projectCircleRadius(float tileY) {return 1.0;}vec4 projectTile(vec2 p) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);return result;}vec4 projectTile(vec2 p,vec2 rawPos) {vec4 result=u_projection_matrix*vec4(p,0.0,1.0);if (rawPos.y <-32767.5 || rawPos.y > 32766.5) {result.z=-10000000.0;}return result;}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return u_projection_matrix*vec4(posInTile,elevation,1.0);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {return projectTileWithElevation(posInTile,elevation);}"),projectionGlobe:fr("",`#define GLOBE_RADIUS 6371008.8
|
||||
uniform highp vec4 u_projection_tile_mercator_coords;uniform highp vec4 u_projection_clipping_plane;uniform highp float u_projection_transition;uniform mat4 u_projection_fallback_matrix;vec3 globeRotateVector(vec3 vec,vec2 angles) {vec3 axisRight=vec3(vec.z,0.0,-vec.x);vec3 axisUp=cross(axisRight,vec);axisRight=normalize(axisRight);axisUp=normalize(axisUp);vec2 t=tan(angles);return normalize(vec+axisRight*t.x+axisUp*t.y);}mat3 globeGetRotationMatrix(vec3 spherePos) {vec3 axisRight=vec3(spherePos.z,0.0,-spherePos.x);vec3 axisDown=cross(axisRight,spherePos);axisRight=normalize(axisRight);axisDown=normalize(axisDown);return mat3(axisRight,axisDown,spherePos
|
||||
);}float circumferenceRatioAtTileY(float tileY) {float mercator_pos_y=u_projection_tile_mercator_coords.y+u_projection_tile_mercator_coords.w*tileY;float spherical_y=2.0*atan(exp(PI-(mercator_pos_y*PI*2.0)))-PI*0.5;return cos(spherical_y);}float projectLineThickness(float tileY) {float thickness=1.0/circumferenceRatioAtTileY(tileY);
|
||||
if (u_projection_transition < 0.999) {return mix(1.0,thickness,u_projection_transition);} else {return thickness;}}vec3 projectToSphere(vec2 translatedPos,vec2 rawPos) {vec2 mercator_pos=u_projection_tile_mercator_coords.xy+u_projection_tile_mercator_coords.zw*translatedPos;vec2 spherical;spherical.x=mercator_pos.x*PI*2.0+PI;spherical.y=2.0*atan(exp(PI-(mercator_pos.y*PI*2.0)))-PI*0.5;float len=cos(spherical.y);vec3 pos=vec3(sin(spherical.x)*len,sin(spherical.y),cos(spherical.x)*len
|
||||
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:dr(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
|
||||
);if (rawPos.y <-32767.5) {pos=vec3(0.0,1.0,0.0);}if (rawPos.y > 32766.5) {pos=vec3(0.0,-1.0,0.0);}return pos;}vec3 projectToSphere(vec2 posInTile) {return projectToSphere(posInTile,vec2(0.0,0.0));}float globeComputeClippingZ(vec3 spherePos) {return (1.0-(dot(spherePos,u_projection_clipping_plane.xyz)+u_projection_clipping_plane.w));}vec4 interpolateProjection(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);globePosition.z=globeComputeClippingZ(elevatedPos)*globePosition.w;if (u_projection_transition > 0.999) {return globePosition;}vec4 flatPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);const float z_globeness_threshold=0.2;vec4 result=globePosition;result.z=mix(0.0,globePosition.z,clamp((u_projection_transition-z_globeness_threshold)/(1.0-z_globeness_threshold),0.0,1.0));result.xyw=mix(flatPosition.xyw,globePosition.xyw,u_projection_transition);if ((posInTile.y <-32767.5) || (posInTile.y > 32766.5)) {result=globePosition;const float poles_hidden_anim_percentage=0.02;result.z=mix(globePosition.z,100.0,pow(max((1.0-u_projection_transition)/poles_hidden_anim_percentage,0.0),8.0));}return result;}vec4 interpolateProjectionFor3D(vec2 posInTile,vec3 spherePos,float elevation) {vec3 elevatedPos=spherePos*(1.0+elevation/GLOBE_RADIUS);vec4 globePosition=u_projection_matrix*vec4(elevatedPos,1.0);if (u_projection_transition > 0.999) {return globePosition;}vec4 fallbackPosition=u_projection_fallback_matrix*vec4(posInTile,elevation,1.0);return mix(fallbackPosition,globePosition,u_projection_transition);}vec4 projectTile(vec2 posInTile) {return interpolateProjection(posInTile,projectToSphere(posInTile),0.0);}vec4 projectTile(vec2 posInTile,vec2 rawPos) {return interpolateProjection(posInTile,projectToSphere(posInTile,rawPos),0.0);}vec4 projectTileWithElevation(vec2 posInTile,float elevation) {return interpolateProjection(posInTile,projectToSphere(posInTile),elevation);}vec4 projectTileFor3D(vec2 posInTile,float elevation) {vec3 spherePos=projectToSphere(posInTile,posInTile);return interpolateProjectionFor3D(posInTile,spherePos,elevation);}`),background:fr(`uniform vec4 u_color;uniform float u_opacity;void main() {fragColor=u_color*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:dr(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
}`,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),backgroundPattern:fr(`uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture(u_image,pos2);fragColor=mix(color1,color2,u_mix)*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:dr(`in vec3 v_data;in float v_visibility;
|
||||
}`,"uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;in vec2 a_pos;out vec2 v_pos_a;out vec2 v_pos_b;void main() {gl_Position=projectTile(a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:fr(`in vec3 v_data;in float v_visibility;
|
||||
#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define mediump float radius
|
||||
#pragma mapbox: define lowp float blur
|
||||
@@ -217,7 +217,7 @@ vec2 angles=extrude*angle_scale;vec3 corner_vector=globeRotateVector(center_vect
|
||||
#else
|
||||
gl_Position=projectTileWithElevation(corner_position,ele);
|
||||
#endif
|
||||
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:dr($o,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:dr(`uniform highp float u_intensity;in vec2 v_extrude;
|
||||
} else {gl_Position=projectTileWithElevation(circle_center,ele);if (gl_Position.z/gl_Position.w > 1.0) {gl_Position.xy=vec2(10000.0);}if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}float antialiasblur=-max(1.0/u_device_pixel_ratio/(radius+stroke_width),blur);v_data=vec3(extrude.x,extrude.y,antialiasblur);}`),clippingMask:fr(Xo,"in vec2 a_pos;void main() {gl_Position=projectTile(a_pos);}"),heatmap:fr(`uniform highp float u_intensity;in vec2 v_extrude;
|
||||
#pragma mapbox: define highp float weight
|
||||
#define GAUSS_COEF 0.3989422804014327
|
||||
void main() {
|
||||
@@ -240,11 +240,11 @@ vec2 angles=v_extrude*radius*u_globe_extrude_scale;vec3 center_vector=projectToS
|
||||
#else
|
||||
gl_Position=projectTileFor3D(circle_center+extrude,get_elevation(circle_center));
|
||||
#endif
|
||||
}`),heatmapTexture:dr(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
|
||||
}`),heatmapTexture:fr(`uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));fragColor=color*u_opacity;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(0.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:dr("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:dr("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:dr(`#ifdef GL_ES
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_world;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:fr("in float v_placed;in float v_notUsed;void main() {float alpha=0.5;fragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {fragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {fragColor*=.1;}}","in vec2 a_anchor_pos;in vec2 a_placed;in vec2 a_box_real;uniform vec2 u_pixel_extrude_scale;out float v_placed;out float v_notUsed;void main() {gl_Position=projectTileWithElevation(a_anchor_pos,get_elevation(a_anchor_pos));gl_Position.xy=((a_box_real+0.5)*u_pixel_extrude_scale*2.0-1.0)*vec2(1.0,-1.0)*gl_Position.w;if (gl_Position.z/gl_Position.w < 1.1) {gl_Position.z=0.5;}v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:fr("in float v_radius;in vec2 v_extrude;in float v_collision;void main() {float alpha=0.5;float stroke_radius=0.9;float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);fragColor=color*alpha*opacity_t;}","in vec2 a_pos;in float a_radius;in vec2 a_flags;uniform vec2 u_viewport_size;out float v_radius;out vec2 v_extrude;out float v_collision;void main() {float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_collision=collision;gl_Position=vec4((a_pos/u_viewport_size*2.0-1.0)*vec2(1.0,-1.0),0.0,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),colorRelief:fr(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_stops;uniform sampler2D u_color_stops;uniform int u_color_ramp_size;uniform float u_opacity;in vec2 v_pos;float getElevation(vec2 coord) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}float getElevationStop(int stop) {float x=(float(stop)+0.5)/float(u_color_ramp_size);vec4 data=texture(u_elevation_stops,vec2(x,0))*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {float el=getElevation(v_pos);int r=(u_color_ramp_size-1);int l=0;float el_l=getElevationStop(l);float el_r=getElevationStop(r);while(r-l > 1){int m=(r+l)/2;float el_m=getElevationStop(m);if(el < el_m){r=m;el_r=el_m;}else
|
||||
@@ -252,13 +252,13 @@ uniform sampler2D u_image;uniform vec4 u_unpack;uniform sampler2D u_elevation_st
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:dr("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:dr($o,`in vec2 a_pos;void main() {
|
||||
}`,"uniform vec2 u_dimension;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_pos/8192.0)*scale+epsilon;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),debug:fr("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);fragColor=mix(u_color,overlay_color,overlay_color.a);}","in vec2 a_pos;out vec2 v_uv;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=projectTileWithElevation(a_pos*u_overlay_scale,get_elevation(a_pos));}"),depth:fr(Xo,`in vec2 a_pos;void main() {
|
||||
#ifdef GLOBE
|
||||
gl_Position=projectTileFor3D(a_pos,0.0);
|
||||
#else
|
||||
gl_Position=u_projection_matrix*vec4(a_pos,0.0,1.0);
|
||||
#endif
|
||||
}`),fill:dr(`#pragma mapbox: define highp vec4 color
|
||||
}`),fill:fr(`#pragma mapbox: define highp vec4 color
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
@@ -273,7 +273,7 @@ fragColor=vec4(1.0);
|
||||
void main() {
|
||||
#pragma mapbox: initialize highp vec4 color
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:dr(`in vec2 v_pos;
|
||||
gl_Position=projectTile(a_pos+u_fill_translate,a_pos);}`),fillOutline:fr(`in vec2 v_pos;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -302,7 +302,7 @@ gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos=(gl_Position.xy/gl_P
|
||||
#ifdef GLOBE
|
||||
v_depth=gl_Position.z/gl_Position.w;
|
||||
#endif
|
||||
}`),fillOutlinePattern:dr(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
|
||||
}`),fillOutlinePattern:fr(`uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;in vec2 v_pos_a;in vec2 v_pos_b;in vec2 v_pos;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -339,7 +339,7 @@ vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern
|
||||
#ifdef GLOBE
|
||||
v_depth=gl_Position.z/gl_Position.w;
|
||||
#endif
|
||||
}`),fillPattern:dr(`#ifdef GL_ES
|
||||
}`),fillPattern:fr(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;
|
||||
@@ -366,7 +366,7 @@ void main() {
|
||||
#pragma mapbox: initialize mediump vec4 pattern_to
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_from
|
||||
#pragma mapbox: initialize lowp float pixel_ratio_to
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:dr(`in vec4 v_color;void main() {fragColor=v_color;
|
||||
vec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=projectTile(a_pos+u_fill_translate,a_pos);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}`),fillExtrusion:fr(`in vec4 v_color;void main() {fragColor=v_color;
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
@@ -398,7 +398,7 @@ float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0
|
||||
#ifdef GLOBE
|
||||
mat3 rotMatrix=globeGetRotationMatrix(spherePos);normalForLighting=rotMatrix*normalForLighting;directional=mix(directional,clamp(dot(normalForLighting,u_lightpos_globe),0.0,1.0),u_projection_transition);
|
||||
#endif
|
||||
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:dr(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
|
||||
directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}`),fillExtrusionPattern:fr(`uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;in vec2 v_pos_a;in vec2 v_pos_b;in vec4 v_lighting;
|
||||
#pragma mapbox: define lowp float base
|
||||
#pragma mapbox: define lowp float height
|
||||
#pragma mapbox: define lowp vec4 pattern_from
|
||||
@@ -451,14 +451,14 @@ gl_Position=u_projection_matrix*vec4(posInTile,elevation,1.0);
|
||||
#endif
|
||||
vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0
|
||||
? a_pos
|
||||
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:dr(`#ifdef GL_ES
|
||||
: vec2(edgedistance,elevation*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}`),hillshadePrepare:fr(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack);}void main() {vec2 epsilon=1.0/u_dimension;float tileSize=u_dimension.x-2.0;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))*tileSize/pow(2.0,exaggeration+(28.2562-u_zoom));fragColor=clamp(vec4(deriv.x/8.0+0.5,deriv.y/8.0+0.5,1.0,1.0),0.0,1.0);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:dr(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
|
||||
}`,"uniform mat4 u_matrix;uniform vec2 u_dimension;in vec2 a_pos;in vec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:fr(`uniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform float u_exaggeration;uniform vec4 u_accent;uniform int u_method;uniform float u_altitudes[NUM_ILLUMINATION_SOURCES];uniform float u_azimuths[NUM_ILLUMINATION_SOURCES];uniform vec4 u_shadows[NUM_ILLUMINATION_SOURCES];uniform vec4 u_highlights[NUM_ILLUMINATION_SOURCES];
|
||||
#define PI 3.141592653589793
|
||||
#define STANDARD 0
|
||||
#define COMBINED 1
|
||||
@@ -471,7 +471,7 @@ float get_aspect(vec2 deriv){return deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:dr(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
|
||||
}`,"uniform mat4 u_matrix;in vec2 a_pos;out vec2 v_pos;void main() {gl_Position=projectTile(a_pos,a_pos);v_pos=a_pos/8192.0;if (a_pos.y <-32767.5) {v_pos.y=0.0;}if (a_pos.y > 32766.5) {v_pos.y=1.0;}}"),line:fr(`uniform lowp float u_device_pixel_ratio;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -517,7 +517,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),lineGradient:dr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
|
||||
v_width2=vec2(outset,inset);}`),lineGradient:fr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;in vec2 v_width2;in vec2 v_normal;in float v_gamma_scale;in highp vec2 v_uv;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -559,7 +559,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_width2=vec2(outset,inset);}`),linePattern:dr(`#ifdef GL_ES
|
||||
v_width2=vec2(outset,inset);}`),linePattern:fr(`#ifdef GL_ES
|
||||
precision highp float;
|
||||
#endif
|
||||
uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;in vec2 v_normal;in vec2 v_width2;in float v_linesofar;in float v_gamma_scale;in float v_width;
|
||||
@@ -623,7 +623,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:dr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
|
||||
v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}`),lineSDF:fr(`uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;in vec2 v_normal;in vec2 v_width2;in vec2 v_tex_a;in vec2 v_tex_b;in float v_gamma_scale;
|
||||
#ifdef GLOBE
|
||||
in float v_depth;
|
||||
#endif
|
||||
@@ -676,7 +676,7 @@ v_gamma_scale=1.0;
|
||||
#else
|
||||
float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length((projected_with_extrude.xy-projected_no_extrude.xy)/projected_with_extrude.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;
|
||||
#endif
|
||||
v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:dr(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
|
||||
v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}`),raster:fr(`uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;in vec2 v_pos0;in vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture(u_image0,v_pos0);vec4 color1=texture(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);fragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);
|
||||
#ifdef OVERDRAW_INSPECTOR
|
||||
fragColor=vec4(1.0);
|
||||
#endif
|
||||
@@ -684,7 +684,7 @@ fragColor=vec4(1.0);
|
||||
#ifdef GLOBE
|
||||
if (a_pos.y <-32767.5) {v_pos0.y=0.0;}if (a_pos.y > 32766.5) {v_pos0.y=1.0;}
|
||||
#endif
|
||||
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:dr(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
|
||||
v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}`),symbolIcon:fr(`uniform sampler2D u_texture;in vec2 v_tex;in float v_fade_opacity;
|
||||
#pragma mapbox: define lowp float opacity
|
||||
void main() {
|
||||
#pragma mapbox: initialize lowp float opacity
|
||||
@@ -702,7 +702,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:dr(`#define SDF_PX 8.0
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}gl_Position=finalPos;v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}`),symbolSDF:fr(`#define SDF_PX 8.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;in vec2 v_data0;in vec3 v_data1;
|
||||
#pragma mapbox: define highp vec4 fill_color
|
||||
#pragma mapbox: define highp vec4 halo_color
|
||||
@@ -737,7 +737,7 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:dr(`#define SDF_PX 8.0
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}`),symbolTextAndIcon:fr(`#define SDF_PX 8.0
|
||||
#define SDF 1.0
|
||||
#define ICON 0.0
|
||||
uniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;in vec4 v_data0;in vec4 v_data1;
|
||||
@@ -778,95 +778,95 @@ u_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ra
|
||||
#ifdef GLOBE
|
||||
if(u_pitch_with_map && !u_is_along_line) {float anchor_pos_tile_y=(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w,z,1.0)).y;projectionScaling=mix(projectionScaling,1.0/circumferenceRatioAtTileY(anchor_pos_tile_y)*u_pitched_scale,u_projection_transition);}
|
||||
#endif
|
||||
vec4 finalPos=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale)*projectionScaling,z,1.0);if(u_pitch_with_map) {finalPos=projectTileWithElevation(finalPos.xy,finalPos.z);}float gamma_scale=finalPos.w;gl_Position=finalPos;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}`),terrain:dr("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:dr("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:dr("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:dr("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:dr(`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:dr("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 dr(I,s){const f=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=s.match(/in ([\w]+) ([\w]+)/g),S=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=s.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=k?k.concat(S):S,q={};return{fragmentSource:I=I.replace(f,(X,he,me,Ee,Me)=>(q[Me]=!0,he==="define"?`
|
||||
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:fr("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:fr("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:fr("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:fr("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:fr(`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:fr("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 fr(I,s){const f=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,_=s.match(/in ([\w]+) ([\w]+)/g),S=I.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),k=s.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),z=k?k.concat(S):S,q={};return{fragmentSource:I=I.replace(f,(X,he,me,Be,Me)=>(q[Me]=!0,he==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
in ${me} ${Ee} ${Me};
|
||||
in ${me} ${Be} ${Me};
|
||||
#else
|
||||
uniform ${me} ${Ee} u_${Me};
|
||||
uniform ${me} ${Be} u_${Me};
|
||||
#endif
|
||||
`:`
|
||||
#ifdef HAS_UNIFORM_u_${Me}
|
||||
${me} ${Ee} ${Me} = u_${Me};
|
||||
${me} ${Be} ${Me} = u_${Me};
|
||||
#endif
|
||||
`)),vertexSource:s=s.replace(f,(X,he,me,Ee,Me)=>{const Ue=Ee==="float"?"vec2":"vec4",Xe=Me.match(/color/)?"color":Ue;return q[Me]?he==="define"?`
|
||||
`)),vertexSource:s=s.replace(f,(X,he,me,Be,Me)=>{const Ue=Be==="float"?"vec2":"vec4",Xe=Me.match(/color/)?"color":Ue;return q[Me]?he==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
uniform lowp float u_${Me}_t;
|
||||
in ${me} ${Ue} a_${Me};
|
||||
out ${me} ${Ee} ${Me};
|
||||
out ${me} ${Be} ${Me};
|
||||
#else
|
||||
uniform ${me} ${Ee} u_${Me};
|
||||
uniform ${me} ${Be} u_${Me};
|
||||
#endif
|
||||
`:Xe==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
${Me} = a_${Me};
|
||||
#else
|
||||
${me} ${Ee} ${Me} = u_${Me};
|
||||
${me} ${Be} ${Me} = u_${Me};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
${Me} = unpack_mix_${Xe}(a_${Me}, u_${Me}_t);
|
||||
#else
|
||||
${me} ${Ee} ${Me} = u_${Me};
|
||||
${me} ${Be} ${Me} = u_${Me};
|
||||
#endif
|
||||
`:he==="define"?`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
uniform lowp float u_${Me}_t;
|
||||
in ${me} ${Ue} a_${Me};
|
||||
#else
|
||||
uniform ${me} ${Ee} u_${Me};
|
||||
uniform ${me} ${Be} u_${Me};
|
||||
#endif
|
||||
`:Xe==="vec4"?`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
${me} ${Ee} ${Me} = a_${Me};
|
||||
${me} ${Be} ${Me} = a_${Me};
|
||||
#else
|
||||
${me} ${Ee} ${Me} = u_${Me};
|
||||
${me} ${Be} ${Me} = u_${Me};
|
||||
#endif
|
||||
`:`
|
||||
#ifndef HAS_UNIFORM_u_${Me}
|
||||
${me} ${Ee} ${Me} = unpack_mix_${Xe}(a_${Me}, u_${Me}_t);
|
||||
${me} ${Be} ${Me} = unpack_mix_${Xe}(a_${Me}, u_${Me}_t);
|
||||
#else
|
||||
${me} ${Ee} ${Me} = u_${Me};
|
||||
${me} ${Be} ${Me} = u_${Me};
|
||||
#endif
|
||||
`}),staticAttributes:_,staticUniforms:z}}class Kl{constructor(s,f,_){this.vertexBuffer=s,this.indexBuffer=f,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var ga=o.aJ([{name:"a_pos",type:"Int16",components:2}]);const Ul="#define PROJECTION_MERCATOR",bu="mercator";class xr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return bu}get shaderDefine(){return Ul}get shaderPreludeCode(){return ko.projectionMercator}get vertexShaderPreludeCode(){return ko.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(s){}getMeshFromTileID(s,f,_,S,k){if(this._cachedMesh)return this._cachedMesh;const z=new o.aL;z.emplaceBack(0,0),z.emplaceBack(o.$,0),z.emplaceBack(0,o.$),z.emplaceBack(o.$,o.$);const q=s.createVertexBuffer(z,ga.members),X=o.aM.simpleSegment(0,0,4,2),he=new o.aN;he.emplaceBack(1,0,2),he.emplaceBack(1,2,3);const me=s.createIndexBuffer(he);return this._cachedMesh=new Kl(q,me,X),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(s){}}class iu{constructor(s=0,f=0,_=0,S=0){if(isNaN(s)||s<0||isNaN(f)||f<0||isNaN(_)||_<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=s,this.bottom=f,this.left=_,this.right=S}interpolate(s,f,_){return f.top!=null&&s.top!=null&&(this.top=o.C.number(s.top,f.top,_)),f.bottom!=null&&s.bottom!=null&&(this.bottom=o.C.number(s.bottom,f.bottom,_)),f.left!=null&&s.left!=null&&(this.left=o.C.number(s.left,f.left,_)),f.right!=null&&s.right!=null&&(this.right=o.C.number(s.right,f.right,_)),this}getCenter(s,f){const _=o.ah((this.left+s-this.right)/2,0,s),S=o.ah((this.top+f-this.bottom)/2,0,f);return new o.P(_,S)}equals(s){return this.top===s.top&&this.bottom===s.bottom&&this.left===s.left&&this.right===s.right}clone(){return new iu(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function cA(I,s){if(!I.renderWorldCopies||I.lngRange)return;const f=s.lng-I.center.lng;s.lng+=f>180?-360:f<-180?360:0}function jo(I){return Math.max(0,Math.floor(I))}class Eo{constructor(s,f,_,S,k,z){this._callbacks=s,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=f||0,this._maxZoom=_||22,this._minPitch=S??0,this._maxPitch=k??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=jo(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new iu,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(s,f,_){this._latRange=s.latRange,this._lngRange=s.lngRange,this._width=s.width,this._height=s.height,this._center=s.center,this._elevation=s.elevation,this._minElevationForCurrentTile=s.minElevationForCurrentTile,this._zoom=s.zoom,this._tileZoom=jo(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=s.bearingInRadians,this._fovInRadians=s.fovInRadians,this._pitchInRadians=s.pitchInRadians,this._rollInRadians=s.rollInRadians,this._unmodified=s.unmodified,this._edgeInsets=new iu(s.padding.top,s.padding.bottom,s.padding.left,s.padding.right),this._minZoom=s.minZoom,this._maxZoom=s.maxZoom,this._minPitch=s.minPitch,this._maxPitch=s.maxPitch,this._renderWorldCopies=s.renderWorldCopies,this._cameraToCenterDistance=s.cameraToCenterDistance,this._nearZ=s.nearZ,this._farZ=s.farZ,this._autoCalculateNearFarZ=!_&&s.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(s){this._minElevationForCurrentTile=s}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(s){this._minZoom!==s&&(this._minZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(s){this._maxZoom!==s&&(this._maxZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(s){this._minPitch!==s&&(this._minPitch=s,this.setPitch(Math.max(this.pitch,s)))}get maxPitch(){return this._maxPitch}setMaxPi
Line truncated
|
||||
`),Ft=wt.concat(ko.prelude.vertexSource,q.vertexSource,f.vertexSource).join(`
|
||||
`);at(me)||(Pt=function(Xt){return Xt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),Ft=function(Xt){return Xt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Ft));const Bt=me.createShader(me.FRAGMENT_SHADER);if(me.isContextLost())return void(this.failedToCreate=!0);if(me.shaderSource(Bt,Pt),me.compileShader(Bt),!me.getShaderParameter(Bt,me.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${me.getShaderInfoLog(Bt)}`);me.attachShader(this.program,Bt);const Yt=me.createShader(me.VERTEX_SHADER);if(me.isContextLost())return void(this.failedToCreate=!0);if(me.shaderSource(Yt,Ft),me.compileShader(Yt),!me.getShaderParameter(Yt,me.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${me.getShaderInfoLog(Yt)}`);me.attachShader(this.program,Yt),this.attributes={};const dn={};this.numAttributes=Ue.length;for(let Xt=0;Xt<this.numAttributes;Xt++)Ue[Xt]&&(me.bindAttribLocation(this.program,Xt,Ue[Xt]),this.attributes[Ue[Xt]]=Xt);if(me.linkProgram(this.program),!me.getProgramParameter(this.program,me.LINK_STATUS))throw new Error(`Program failed to link: ${me.getProgramInfoLog(this.program)}`);me.deleteShader(Yt),me.deleteShader(Bt);for(let Xt=0;Xt<yt.length;Xt++){const nn=yt[Xt];if(nn&&!dn[nn]){const un=me.getUniformLocation(this.program,nn);un&&(dn[nn]=un)}}this.fixedUniforms=S(s,dn),this.terrainUniforms=((Xt,nn)=>({u_depth:new o.bP(Xt,nn.u_depth),u_terrain:new o.bP(Xt,nn.u_terrain),u_terrain_dim:new o.bg(Xt,nn.u_terrain_dim),u_terrain_matrix:new o.bR(Xt,nn.u_terrain_matrix),u_terrain_unpack:new o.bS(Xt,nn.u_terrain_unpack),u_terrain_exaggeration:new o.bg(Xt,nn.u_terrain_exaggeration)}))(s,dn),this.projectionUniforms=((Xt,nn)=>({u_projection_matrix:new o.bR(Xt,nn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bS(Xt,nn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bS(Xt,nn.u_projection_clipping_plane),u_projection_transition:new o.bg(Xt,nn.u_projection_transition),u_projection_fallback_matrix:new o.bR(Xt,nn.u_projection_fallback_matrix)}))(s,dn),this.binderUniforms=_?_.getUniforms(s,dn):[]}draw(s,f,_,S,k,z,q,X,he,me,Ee,Me,Ue,Xe,ut,ct,ft,xt,yt){const wt=s.gl;if(this.failedToCreate)return;if(s.program.set(this.program),s.setDepthMode(_),s.setStencilMode(S),s.setColorMode(k),s.setCullFace(z),X){s.activeTexture.set(wt.TEXTURE2),wt.bindTexture(wt.TEXTURE_2D,X.depthTexture),s.activeTexture.set(wt.TEXTURE3),wt.bindTexture(wt.TEXTURE_2D,X.texture);for(const Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(X[Ft])}if(he)for(const Ft in he)this.projectionUniforms[kf[Ft]].set(he[Ft]);if(q)for(const Ft in this.fixedUniforms)this.fixedUniforms[Ft].set(q[Ft]);ct&&ct.setUniforms(s,this.binderUniforms,Xe,{zoom:ut});let Pt=0;switch(f){case wt.LINES:Pt=2;break;case wt.TRIANGLES:Pt=3;break;case wt.LINE_STRIP:Pt=1}for(const Ft of Ue.get()){const Bt=Ft.vaos||(Ft.vaos={});(Bt[me]||(Bt[me]=new r0)).bind(s,this,Ee,ct?ct.getPaintVertexBuffers():[],Me,Ft.vertexOffset,ft,xt,yt),wt.drawElements(f,Ft.primitiveLength*Pt,wt.UNSIGNED_SHORT,Ft.primitiveOffset*Pt*2)}}}function _d(I,s,f){const _=1/o.aC(f,1,s.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),k=f.tileSize*Math.pow(2,s.transform.tileZoom)/S,z=k*(f.tileID.canonical.x+f.tileID.wrap*S),q=k*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[z>>16,q>>16],u_pixel_coord_lower:[65535&z,65535&q]}}const Fl=(I,s,f,_)=>{const S=I.style.light,k=S.properties.get("position"),z=[k.x,k.y,k.z],q=o.bV();S.properties.get("anchor")==="viewport"&&o.bW(q,I.transform.bearingInRadians),o.bX(z,z,q);const X=I.transform.transformLightDirection(z),he=S.properties.get("color");return{u_lightpos:z,u_lightpos_globe:X,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[he.r,he.g,he.b],u_vertical_gradient:+s,u_opacity:f,u_fill_translate:_}},bd=(I,s,f,_,S,k,z)=>o.e(Fl(I,s,f,_),_d(k,I,z),{u_height_factor:-Math.pow(2,S.overscaledZ)/z.tileSize/8}),Nh=(I,s,f,_)=>o.e(_d(s,I,f),{u_fill_translate:_}),qc=(I,s)=>({u_world:I,u_fill_translate:s}),Gh=(I,s,f,_,S)=>o.e(Nh(I,s,f,S),{u_world:_}),Df=(I,s,f,_,S)=>{const k=I.transform;let z,q,X=0;if(f.paint.get("circle-pitch-alignment")==="map"){const he=o.aC(s,1,k.zoom);z=!0,q=[he,he],X=he/(o.$*Math.pow(2,s.tileID.overscaledZ))*2*Math.PI*S}else z=!1,q=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:X,u_translate:_}},vh=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),Ch=I=>({u_viewport_size:[I.width,I.height]}),Wh=(I,s=1)=>({u_color:I,u_overlay:0,u_overlay_scale:s}),Rf=(I,s,f,_)=>{const S=o.aC(I,1,s)/(o.$*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:o.aC(I,1,s),u
Line truncated
|
||||
`}),staticAttributes:_,staticUniforms:z}}class Ul{constructor(s,f,_){this.vertexBuffer=s,this.indexBuffer=f,this.segments=_}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.vertexBuffer=null,this.indexBuffer=null,this.segments=null}}var va=o.aJ([{name:"a_pos",type:"Int16",components:2}]);const Ll="#define PROJECTION_MERCATOR",xA="mercator";class Mr{constructor(){this._cachedMesh=null}get name(){return"mercator"}get useSubdivision(){return!1}get shaderVariantName(){return xA}get shaderDefine(){return Ll}get shaderPreludeCode(){return Do.projectionMercator}get vertexShaderPreludeCode(){return Do.projectionMercator.vertexSource}get subdivisionGranularity(){return o.aK.noSubdivision}get useGlobeControls(){return!1}get transitionState(){return 0}get latitudeErrorCorrectionRadians(){return 0}destroy(){}updateGPUdependent(s){}getMeshFromTileID(s,f,_,S,k){if(this._cachedMesh)return this._cachedMesh;const z=new o.aL;z.emplaceBack(0,0),z.emplaceBack(o.$,0),z.emplaceBack(0,o.$),z.emplaceBack(o.$,o.$);const q=s.createVertexBuffer(z,va.members),X=o.aM.simpleSegment(0,0,4,2),he=new o.aN;he.emplaceBack(1,0,2),he.emplaceBack(1,2,3);const me=s.createIndexBuffer(he);return this._cachedMesh=new Ul(q,me,X),this._cachedMesh}recalculate(){}hasTransition(){return!1}setErrorQueryLatitudeDegrees(s){}}class rA{constructor(s=0,f=0,_=0,S=0){if(isNaN(s)||s<0||isNaN(f)||f<0||isNaN(_)||_<0||isNaN(S)||S<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=s,this.bottom=f,this.left=_,this.right=S}interpolate(s,f,_){return f.top!=null&&s.top!=null&&(this.top=o.C.number(s.top,f.top,_)),f.bottom!=null&&s.bottom!=null&&(this.bottom=o.C.number(s.bottom,f.bottom,_)),f.left!=null&&s.left!=null&&(this.left=o.C.number(s.left,f.left,_)),f.right!=null&&s.right!=null&&(this.right=o.C.number(s.right,f.right,_)),this}getCenter(s,f){const _=o.ah((this.left+s-this.right)/2,0,s),S=o.ah((this.top+f-this.bottom)/2,0,f);return new o.P(_,S)}equals(s){return this.top===s.top&&this.bottom===s.bottom&&this.left===s.left&&this.right===s.right}clone(){return new rA(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function hu(I,s){if(!I.renderWorldCopies||I.lngRange)return;const f=s.lng-I.center.lng;s.lng+=f>180?-360:f<-180?360:0}function No(I){return Math.max(0,Math.floor(I))}class Bo{constructor(s,f,_,S,k,z){this._callbacks=s,this._tileSize=512,this._renderWorldCopies=z===void 0||!!z,this._minZoom=f||0,this._maxZoom=_||22,this._minPitch=S??0,this._maxPitch=k??60,this.setMaxBounds(),this._width=0,this._height=0,this._center=new o.S(0,0),this._elevation=0,this._zoom=0,this._tileZoom=No(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=0,this._fovInRadians=.6435011087932844,this._pitchInRadians=0,this._rollInRadians=0,this._unmodified=!0,this._edgeInsets=new rA,this._minElevationForCurrentTile=0,this._autoCalculateNearFarZ=!0}apply(s,f,_){this._latRange=s.latRange,this._lngRange=s.lngRange,this._width=s.width,this._height=s.height,this._center=s.center,this._elevation=s.elevation,this._minElevationForCurrentTile=s.minElevationForCurrentTile,this._zoom=s.zoom,this._tileZoom=No(this._zoom),this._scale=o.af(this._zoom),this._bearingInRadians=s.bearingInRadians,this._fovInRadians=s.fovInRadians,this._pitchInRadians=s.pitchInRadians,this._rollInRadians=s.rollInRadians,this._unmodified=s.unmodified,this._edgeInsets=new rA(s.padding.top,s.padding.bottom,s.padding.left,s.padding.right),this._minZoom=s.minZoom,this._maxZoom=s.maxZoom,this._minPitch=s.minPitch,this._maxPitch=s.maxPitch,this._renderWorldCopies=s.renderWorldCopies,this._cameraToCenterDistance=s.cameraToCenterDistance,this._nearZ=s.nearZ,this._farZ=s.farZ,this._autoCalculateNearFarZ=!_&&s.autoCalculateNearFarZ,f&&this._constrain(),this._calcMatrices()}get pixelsToClipSpaceMatrix(){return this._pixelsToClipSpaceMatrix}get clipSpaceToPixelsMatrix(){return this._clipSpaceToPixelsMatrix}get minElevationForCurrentTile(){return this._minElevationForCurrentTile}setMinElevationForCurrentTile(s){this._minElevationForCurrentTile=s}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(s){this._minZoom!==s&&(this._minZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get maxZoom(){return this._maxZoom}setMaxZoom(s){this._maxZoom!==s&&(this._maxZoom=s,this.setZoom(this.getConstrained(this._center,this.zoom).zoom))}get minPitch(){return this._minPitch}setMinPitch(s){this._minPitch!==s&&(this._minPitch=s,this.setPitch(Math.max(this.pitch,s)))}get maxPitch(){return this._maxPitch}setMaxPi
Line truncated
|
||||
`),Ft=wt.concat(Do.prelude.vertexSource,q.vertexSource,f.vertexSource).join(`
|
||||
`);at(me)||(Pt=function(Xt){return Xt.replace(/\bin\s/g,"varying ").replace("out highp vec4 fragColor;","").replace(/fragColor/g,"gl_FragColor").replace(/texture\(/g,"texture2D(")}(Pt),Ft=function(Xt){return Xt.replace(/\bin\s/g,"attribute ").replace(/\bout\s/g,"varying ").replace(/texture\(/g,"texture2D(")}(Ft));const Bt=me.createShader(me.FRAGMENT_SHADER);if(me.isContextLost())return void(this.failedToCreate=!0);if(me.shaderSource(Bt,Pt),me.compileShader(Bt),!me.getShaderParameter(Bt,me.COMPILE_STATUS))throw new Error(`Could not compile fragment shader: ${me.getShaderInfoLog(Bt)}`);me.attachShader(this.program,Bt);const Yt=me.createShader(me.VERTEX_SHADER);if(me.isContextLost())return void(this.failedToCreate=!0);if(me.shaderSource(Yt,Ft),me.compileShader(Yt),!me.getShaderParameter(Yt,me.COMPILE_STATUS))throw new Error(`Could not compile vertex shader: ${me.getShaderInfoLog(Yt)}`);me.attachShader(this.program,Yt),this.attributes={};const dn={};this.numAttributes=Ue.length;for(let Xt=0;Xt<this.numAttributes;Xt++)Ue[Xt]&&(me.bindAttribLocation(this.program,Xt,Ue[Xt]),this.attributes[Ue[Xt]]=Xt);if(me.linkProgram(this.program),!me.getProgramParameter(this.program,me.LINK_STATUS))throw new Error(`Program failed to link: ${me.getProgramInfoLog(this.program)}`);me.deleteShader(Yt),me.deleteShader(Bt);for(let Xt=0;Xt<yt.length;Xt++){const nn=yt[Xt];if(nn&&!dn[nn]){const An=me.getUniformLocation(this.program,nn);An&&(dn[nn]=An)}}this.fixedUniforms=S(s,dn),this.terrainUniforms=((Xt,nn)=>({u_depth:new o.bP(Xt,nn.u_depth),u_terrain:new o.bP(Xt,nn.u_terrain),u_terrain_dim:new o.bg(Xt,nn.u_terrain_dim),u_terrain_matrix:new o.bR(Xt,nn.u_terrain_matrix),u_terrain_unpack:new o.bS(Xt,nn.u_terrain_unpack),u_terrain_exaggeration:new o.bg(Xt,nn.u_terrain_exaggeration)}))(s,dn),this.projectionUniforms=((Xt,nn)=>({u_projection_matrix:new o.bR(Xt,nn.u_projection_matrix),u_projection_tile_mercator_coords:new o.bS(Xt,nn.u_projection_tile_mercator_coords),u_projection_clipping_plane:new o.bS(Xt,nn.u_projection_clipping_plane),u_projection_transition:new o.bg(Xt,nn.u_projection_transition),u_projection_fallback_matrix:new o.bR(Xt,nn.u_projection_fallback_matrix)}))(s,dn),this.binderUniforms=_?_.getUniforms(s,dn):[]}draw(s,f,_,S,k,z,q,X,he,me,Be,Me,Ue,Xe,At,ct,ft,xt,yt){const wt=s.gl;if(this.failedToCreate)return;if(s.program.set(this.program),s.setDepthMode(_),s.setStencilMode(S),s.setColorMode(k),s.setCullFace(z),X){s.activeTexture.set(wt.TEXTURE2),wt.bindTexture(wt.TEXTURE_2D,X.depthTexture),s.activeTexture.set(wt.TEXTURE3),wt.bindTexture(wt.TEXTURE_2D,X.texture);for(const Ft in this.terrainUniforms)this.terrainUniforms[Ft].set(X[Ft])}if(he)for(const Ft in he)this.projectionUniforms[Rf[Ft]].set(he[Ft]);if(q)for(const Ft in this.fixedUniforms)this.fixedUniforms[Ft].set(q[Ft]);ct&&ct.setUniforms(s,this.binderUniforms,Xe,{zoom:At});let Pt=0;switch(f){case wt.LINES:Pt=2;break;case wt.TRIANGLES:Pt=3;break;case wt.LINE_STRIP:Pt=1}for(const Ft of Ue.get()){const Bt=Ft.vaos||(Ft.vaos={});(Bt[me]||(Bt[me]=new o0)).bind(s,this,Be,ct?ct.getPaintVertexBuffers():[],Me,Ft.vertexOffset,ft,xt,yt),wt.drawElements(f,Ft.primitiveLength*Pt,wt.UNSIGNED_SHORT,Ft.primitiveOffset*Pt*2)}}}function bd(I,s,f){const _=1/o.aC(f,1,s.transform.tileZoom),S=Math.pow(2,f.tileID.overscaledZ),k=f.tileSize*Math.pow(2,s.transform.tileZoom)/S,z=k*(f.tileID.canonical.x+f.tileID.wrap*S),q=k*f.tileID.canonical.y;return{u_image:0,u_texsize:f.imageAtlasTexture.size,u_scale:[_,I.fromScale,I.toScale],u_fade:I.t,u_pixel_coord_upper:[z>>16,q>>16],u_pixel_coord_lower:[65535&z,65535&q]}}const zl=(I,s,f,_)=>{const S=I.style.light,k=S.properties.get("position"),z=[k.x,k.y,k.z],q=o.bV();S.properties.get("anchor")==="viewport"&&o.bW(q,I.transform.bearingInRadians),o.bX(z,z,q);const X=I.transform.transformLightDirection(z),he=S.properties.get("color");return{u_lightpos:z,u_lightpos_globe:X,u_lightintensity:S.properties.get("intensity"),u_lightcolor:[he.r,he.g,he.b],u_vertical_gradient:+s,u_opacity:f,u_fill_translate:_}},xd=(I,s,f,_,S,k,z)=>o.e(zl(I,s,f,_),bd(k,I,z),{u_height_factor:-Math.pow(2,S.overscaledZ)/z.tileSize/8}),Gh=(I,s,f,_)=>o.e(bd(s,I,f),{u_fill_translate:_}),Hc=(I,s)=>({u_world:I,u_fill_translate:s}),Wh=(I,s,f,_,S)=>o.e(Gh(I,s,f,S),{u_world:_}),Pf=(I,s,f,_,S)=>{const k=I.transform;let z,q,X=0;if(f.paint.get("circle-pitch-alignment")==="map"){const he=o.aC(s,1,k.zoom);z=!0,q=[he,he],X=he/(o.$*Math.pow(2,s.tileID.overscaledZ))*2*Math.PI*S}else z=!1,q=k.pixelsToGLUnits;return{u_camera_to_center_distance:k.cameraToCenterDistance,u_scale_with_map:+(f.paint.get("circle-pitch-scale")==="map"),u_pitch_with_map:+z,u_device_pixel_ratio:I.pixelRatio,u_extrude_scale:q,u_globe_extrude_scale:X,u_translate:_}},Ch=I=>({u_pixel_extrude_scale:[1/I.width,1/I.height]}),_h=I=>({u_viewport_size:[I.width,I.height]}),Qh=(I,s=1)=>({u_color:I,u_overlay:0,u_overlay_scale:s}),Kf=(I,s,f,_)=>{const S=o.aC(I,1,s)/(o.$*Math.pow(2,I.tileID.overscaledZ))*2*Math.PI*_;return{u_extrude_scale:o.aC(I,1,s),u
Line truncated
|
||||
uniform mat4 u_projection_matrix;
|
||||
${Ue.shaderPreludeCode.vertexSource}`,define:Ue.shaderDefine},defaultProjectionData:ut},ft=Me.renderingMode?Me.renderingMode:"2d";if(z.renderPass==="offscreen"){const xt=Me.prerender;xt&&(z.setCustomLayerDefaults(),Ee.setColorMode(z.colorModeForRenderPass()),xt.call(Me,Ee.gl,ct),Ee.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Ee.setColorMode(z.colorModeForRenderPass()),Ee.setStencilMode(ee.disabled);const xt=ft==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,wi.ReadOnly);Ee.setDepthMode(xt),Me.render(Ee.gl,ct),Ee.setDirty(),z.setBaseState(),Ee.bindFramebuffer.set(null)}}(s,0,_,k))}saveTileTexture(s){const f=this._tileTextures[s.size[0]];f?f.push(s):this._tileTextures[s.size[0]]=[s]}getTileTexture(s){const f=this._tileTextures[s];return f&&f.length>0?f.pop():null}isPatternMissing(s){if(!s)return!1;if(!s.from||!s.to)return!0;const f=this.imageManager.getPattern(s.from.toString()),_=this.imageManager.getPattern(s.to.toString());return!f||!_}useProgram(s,f,_=!1,S=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,z=this.style.projection,q=_?ko.projectionMercator:z.shaderPreludeCode,X=_?Ul:z.shaderDefine,he=s+(f?f.cacheKey:"")+`/${_?bu:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[he]||(this.cache[he]=new es(this.context,ko[s],f,xu[s],this._showOverdrawInspector,k,q,X,S)),this.cache[he]}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 s=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(s.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:s,drawingBufferHeight:f}=this.context.gl;return this.width!==s||this.height!==f}}function Ju(I,s){let f,_=!1,S=null,k=null;const z=()=>{S=null,_&&(I.apply(k,f),S=setTimeout(z,s),_=!1)};return(...q)=>(_=!0,k=this,f=q,S||z(),S)}class rt{constructor(s){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let _;return f.split("&").map(S=>S.split("=")).forEach(S=>{S[0]===this._hashName&&(_=S)}),(_&&_[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const _=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:_,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const _=f.join("/");let S=_;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${_}`);let k=window.location.hash.replace(S,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let z=window.location.href.replace(/(#.+)?$/,k);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=Ju(this._updateHashUnthrottled,300),this._hashName=s&&encodeURIComponent(s)}addTo(s){return this._map=s,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(s){const f=this._map.getCenter(),_=Math.round(100*this._map.getZoom())/100,S=Math.ceil((_*Math.LN2+Math.log(512/360/.5))/Math.LN10),k=Math.pow(10,S),z=Math.round(f.lng*k)/k,q=Math.round(f.lat*k)/k,X=this._map.getBearing(),he=this._map.getPitch();let me="";if(me+=s?`/${z}/${q}/${_}`:`${_}/${q}/${z}`,(X||he)&&(me+="/"+Math.round(10*X)/10),he&&(me+=`/${Math.round(he)}`),this._hashName){const Ee=this._hashName;let Me=!1;const Ue=window.location.hash.slice(1).split("&").map(Xe=>{const ut=Xe.split("=")[0];return ut===Ee?(Me=!0,`${ut}=${me}`):Xe}).filter(Xe=>Xe);return Me||Ue.push(`${Ee}=${me}`),`#${Ue.join("&")}`}return`#${me}`}_isValidHash(s){if(s.length<3||s.some(isNaN))return!1;try{new o.S(+s[2],+s[1])}catch{return!1}const f=+s[0],_=+(s[3]||0),S=+(s[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&_>=-180&&_<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const $s={linearity:.3,easing:o.cm(0,0,.3,1)},
Line truncated
|
||||
${Ue.shaderPreludeCode.vertexSource}`,define:Ue.shaderDefine},defaultProjectionData:At},ft=Me.renderingMode?Me.renderingMode:"2d";if(z.renderPass==="offscreen"){const xt=Me.prerender;xt&&(z.setCustomLayerDefaults(),Be.setColorMode(z.colorModeForRenderPass()),xt.call(Me,Be.gl,ct),Be.setDirty(),z.setBaseState())}else if(z.renderPass==="translucent"){z.setCustomLayerDefaults(),Be.setColorMode(z.colorModeForRenderPass()),Be.setStencilMode(ee.disabled);const xt=ft==="3d"?z.getDepthModeFor3D():z.getDepthModeForSublayer(0,wi.ReadOnly);Be.setDepthMode(xt),Me.render(Be.gl,ct),Be.setDirty(),z.setBaseState(),Be.bindFramebuffer.set(null)}}(s,0,_,k))}saveTileTexture(s){const f=this._tileTextures[s.size[0]];f?f.push(s):this._tileTextures[s.size[0]]=[s]}getTileTexture(s){const f=this._tileTextures[s];return f&&f.length>0?f.pop():null}isPatternMissing(s){if(!s)return!1;if(!s.from||!s.to)return!0;const f=this.imageManager.getPattern(s.from.toString()),_=this.imageManager.getPattern(s.to.toString());return!f||!_}useProgram(s,f,_=!1,S=[]){this.cache=this.cache||{};const k=!!this.style.map.terrain,z=this.style.projection,q=_?Do.projectionMercator:z.shaderPreludeCode,X=_?Ll:z.shaderDefine,he=s+(f?f.cacheKey:"")+`/${_?xA:z.shaderVariantName}`+(this._showOverdrawInspector?"/overdraw":"")+(k?"/terrain":"")+(S?`/${S.join("/")}`:"");return this.cache[he]||(this.cache[he]=new is(this.context,Do[s],f,MA[s],this._showOverdrawInspector,k,q,X,S)),this.cache[he]}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 s=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(s.FUNC_ADD)}initDebugOverlayCanvas(){this.debugOverlayCanvas==null&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new o.T(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){const{drawingBufferWidth:s,drawingBufferHeight:f}=this.context.gl;return this.width!==s||this.height!==f}}function eu(I,s){let f,_=!1,S=null,k=null;const z=()=>{S=null,_&&(I.apply(k,f),S=setTimeout(z,s),_=!1)};return(...q)=>(_=!0,k=this,f=q,S||z(),S)}class rt{constructor(s){this._getCurrentHash=()=>{const f=window.location.hash.replace("#","");if(this._hashName){let _;return f.split("&").map(S=>S.split("=")).forEach(S=>{S[0]===this._hashName&&(_=S)}),(_&&_[1]||"").split("/")}return f.split("/")},this._onHashChange=()=>{const f=this._getCurrentHash();if(!this._isValidHash(f))return!1;const _=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(f[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+f[2],+f[1]],zoom:+f[0],bearing:_,pitch:+(f[4]||0)}),!0},this._updateHashUnthrottled=()=>{const f=window.location.href.replace(/(#.*)?$/,this.getHashString());window.history.replaceState(window.history.state,null,f)},this._removeHash=()=>{const f=this._getCurrentHash();if(f.length===0)return;const _=f.join("/");let S=_;S.split("&").length>0&&(S=S.split("&")[0]),this._hashName&&(S=`${this._hashName}=${_}`);let k=window.location.hash.replace(S,"");k.startsWith("#&")?k=k.slice(0,1)+k.slice(2):k==="#"&&(k="");let z=window.location.href.replace(/(#.+)?$/,k);z=z.replace("&&","&"),window.history.replaceState(window.history.state,null,z)},this._updateHash=eu(this._updateHashUnthrottled,300),this._hashName=s&&encodeURIComponent(s)}addTo(s){return this._map=s,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(s){const f=this._map.getCenter(),_=Math.round(100*this._map.getZoom())/100,S=Math.ceil((_*Math.LN2+Math.log(512/360/.5))/Math.LN10),k=Math.pow(10,S),z=Math.round(f.lng*k)/k,q=Math.round(f.lat*k)/k,X=this._map.getBearing(),he=this._map.getPitch();let me="";if(me+=s?`/${z}/${q}/${_}`:`${_}/${q}/${z}`,(X||he)&&(me+="/"+Math.round(10*X)/10),he&&(me+=`/${Math.round(he)}`),this._hashName){const Be=this._hashName;let Me=!1;const Ue=window.location.hash.slice(1).split("&").map(Xe=>{const At=Xe.split("=")[0];return At===Be?(Me=!0,`${At}=${me}`):Xe}).filter(Xe=>Xe);return Me||Ue.push(`${Be}=${me}`),`#${Ue.join("&")}`}return`#${me}`}_isValidHash(s){if(s.length<3||s.some(isNaN))return!1;try{new o.S(+s[2],+s[1])}catch{return!1}const f=+s[0],_=+(s[3]||0),S=+(s[4]||0);return f>=this._map.getMinZoom()&&f<=this._map.getMaxZoom()&&_>=-180&&_<=180&&S>=this._map.getMinPitch()&&S<=this._map.getMaxPitch()}}const Xs={linearity:.3,easing:o.cm(0,0,.3,1)},
Line truncated
|
||||
${e} <span></span>
|
||||
`,ds().s[12]++,this._textEl=this._container.querySelector("span"),ds().s[13]++,this.updateZoomLevel()}addEventListeners(){ds().f[4]++,ds().s[14]++,this._map.on("render",()=>(ds().f[5]++,ds().s[15]++,this.updateZoomLevel())),ds().s[16]++,this._map.on("zoomIn",()=>(ds().f[6]++,ds().s[17]++,this.updateZoomLevel())),ds().s[18]++,this._map.on("zoomOut",()=>(ds().f[7]++,ds().s[19]++,this.updateZoomLevel()))}onRemove(){ds().f[8]++,ds().s[20]++,this._container.parentNode.removeChild(this._container),ds().s[21]++,this._map=void 0}}function T6(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function k6(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function D6(n,e,t){const i={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&&(i["source-layer"]=t),i}function vZ(n,e){const t=[],i=[],r=[];function a(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=a(l);i.push(T6(p.circle,l)),r.push(D6(p.line,l)),t.push(k6(p.polygon,p.polygonOutline,l))}else o.forEach(p=>{const C=a(p);i.push(T6(C.circle,l,p)),r.push(D6(C.line,l,p)),t.push(k6(C.polygon,C.polygonOutline,l,p))})}),t.concat(r).concat(i)}function CZ(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(a=>{const l=n.sources[a];(l.type==="vector"||l.type==="geojson")&&(r[a]=l)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const B4={polygonLayer:k6,lineLayer:D6,circleLayer:T6,generateInspectStyle:CZ,generateColoredLayers:vZ};function yo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={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=TZ.language(this.options.language.split(",")[0]);return this.options.language&&gC?.[e][t]?gC[e][t]:gC[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 i=Wp({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const a of e)r.extend(a.geometry.coordinates);this._map.fitBounds(r,i)}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 i=Wp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const l=Wp({},{},this.options.popup);r=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(r)):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(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=Wp({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let a;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(a=this.options.showResultMarkers.element.cloneNode(!0),i=Wp(i,{element:a}));const l=new this._maplibregl.Marker(Wp({},i,{element:a}));let o;if(this.options.popup){const C=Wp({},{},this.options.popup);o=new this._maplibregl.Popup(C).setHTML(this.options.popupRender(r))}r.center?(l.setLngLat(r.center).addTo(this._map),this.options.popup&&l.setPopup(o)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(l.setLngLat(r.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 bn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:3Line truncated
|
||||
`).reduce((r,a)=>Math.max(r,lz(n,a)),0);return t[e]=i,i}function Jee(n,e){const t=[],i=[],r=[];let a=0,l=0,o=0,p=0;for(let C=0,w=e.length;C<=w;C+=2){const O=e[C];if(O===`
|
||||
`||C===w){a=Math.max(a,l),r.push(l),l=0,o+=p,p=0;continue}const U=e[C+1]||n.font,K=lz(U,O);t.push(K),l+=K;const j=Xee(U);i.push(j),p=Math.max(p,j)}return{width:a,height:o,widths:t,heights:i,lineWidths:r}}function ete(n,e,t,i,r,a,l,o,p,C,w){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=O=>O.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,C),n.scale(w[0],w[1]),tte(i,n)):w[0]<0||w[1]<0?(n.translate(p,C),n.scale(w[0],w[1]),n.drawImage(i,r,a,l,o,0,0,l,o)):n.drawImage(i,r,a,l,o,p,C,l*w[0],o*w[1]),n.restore()}function tte(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class p2{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=zh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new p2({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_=zh(e)}listenImageChange(e){vo()}load(){vo()}unlistenImageChange(e){vo()}ready(){return Promise.resolve()}}class m2 extends p2{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()?hr.LOADING:hr.LOADED,this.imageState_===hr.LOADING&&this.ready().then(()=>this.imageState_=hr.LOADED),this.render()}clone(){const e=this.getScale(),t=new m2({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(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=yp.get(i,null,null)?.getImage(1);if(!r){const a=this.renderOptions_,l=Math.ceil(a.size*e),o=Gu(l,l);this.draw_(a,o,e),r=o.canvas,yp.set(i,null,null,new oz(r,void 0,null,hr.LOADED,null))}return r}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,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,a=this.radius2_===void 0?r:this.radius2_;if(r<a){const ae=r;r=a,a=ae}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,p=a*Math.sin(o),C=Math.sqrt(a*a-p*p),w=r-C,O=Math.sqrt(p*p+w*w),U=O/p;if(e==="miter"&&U<=i)return U*t;const K=t/2/U,j=t/2*(w/O),Y=Math.sqrt((r+K)*(r+K)+j*j)-r;if(this.radius2_===void 0||e==="bevel")return Y*2;const te=r*Math.sin(o),J=Math.sqrt(r*r-te*te),oe=a-J,$=Math.sqrt(te*te+oe*oe)/te;if($<=i){const ae=$*t/2-a-r;return 2*Math.max(Y,ae)}return Y*2}createRenderOptions(){let e=Pv,t=Kv,i=0,r=null,a=0,l,o=0;this.stroke_&&(l=Ym(this.stroke_.getColor()??
Line truncated
|
||||
`,""),n.push(e,""),n}function Hte(n,e,t){return t%2===0&&(n+=e),n}class Vte{constructor(e,t,i,r,a){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Yd(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=a?new YO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const a=e+t+i+r;if(this.labels_[a])return this.labels_[a];const l=r?this.strokeStates[r]:null,o=i?this.fillStates[i]:null,p=this.textStates[t],C=this.pixelRatio,w=[p.scale[0]*C,p.scale[1]*C],O=p.justify?A3[p.justify]:r5(Array.isArray(e)?e[0]:e,p.textAlign||T_),U=r&&l.lineWidth?l.lineWidth:0,K=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(qte,[]),{width:j,height:W,widths:Y,heights:te,lineWidths:J}=Jee(p,K),oe=j+U,ne=[],$=(oe+2)*w[0],ae=(W+U)*w[1],G={width:$<0?Math.floor($):Math.ceil($),height:ae<0?Math.floor(ae):Math.ceil(ae),contextInstructions:ne};(w[0]!=1||w[1]!=1)&&ne.push("scale",w),r&&(ne.push("strokeStyle",l.strokeStyle),ne.push("lineWidth",U),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)),i&&ne.push("fillStyle",o.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const ce=.5-O;let ge=O*oe+ce*U;const ye=[],we=[];let Oe=0,Se=0,Ve=0,xe=0,ze;for(let st=0,Ct=K.length;st<Ct;st+=2){const nt=K[st];if(nt===`
|
||||
`){Se+=Oe,Oe=0,ge=O*oe+ce*U,++xe;continue}const be=K[st+1]||p.font;be!==ze&&(r&&ye.push("font",be),i&&we.push("font",be),ze=be),Oe=Math.max(Oe,te[Ve]);const Ne=[nt,ge+ce*Y[Ve]+O*(Y[Ve]-J[xe]),.5*(U+Oe)+Se];ge+=Y[Ve],r&&ye.push("strokeText",Ne),i&&we.push("fillText",Ne),++Ve}return Array.prototype.push.apply(ne,ye),Array.prototype.push.apply(ne,we),this.labels_[a]=G,G}replayTextBackground_(e,t,i,r,a,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,a),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,i,r,a,l,o,p,C,w,O,U,K,j,W,Y){o*=U[0],p*=U[1];let te=i-o,J=r-p;const oe=a+C>e?e-C:a,ne=l+w>t?t-w:l,$=j[3]+oe*U[0]+j[1],ae=j[0]+ne*U[1]+j[2],G=te-j[3],ce=J-j[0];(W||O!==0)&&(cg[0]=G,hg[0]=G,cg[1]=ce,M0[1]=ce,M0[0]=G+$,w0[0]=M0[0],w0[1]=ce+ae,hg[1]=w0[1]);let ge;return O!==0?(ge=Jm(Yd(),i,r,1,1,O,-i,-r),tc(ge,cg),tc(ge,M0),tc(ge,w0),tc(ge,hg),K0(Math.min(cg[0],M0[0],w0[0],hg[0]),Math.min(cg[1],M0[1],w0[1],hg[1]),Math.max(cg[0],M0[0],w0[0],hg[0]),Math.max(cg[1],M0[1],w0[1],hg[1]),Dy)):K0(Math.min(G,G+$),Math.min(ce,ce+ae),Math.max(G,G+$),Math.max(ce,ce+ae),Dy),K&&(te=Math.round(te),J=Math.round(J)),{drawImageX:te,drawImageY:J,drawImageW:oe,drawImageH:ne,originX:C,originY:w,declutterBox:{minX:Dy[0],minY:Dy[1],maxX:Dy[2],maxY:Dy[3],value:Y},canvasTransform:ge,scale:U}}replayImageOrLabel_(e,t,i,r,a,l,o){const p=!!(l||o),C=r.declutterBox,w=o?o[2]*r.scale[0]/2:0;return C.minX-w<=t[0]&&C.maxX+w>=0&&C.minY-w<=t[1]&&C.maxY+w>=0&&(p&&this.replayTextBackground_(e,cg,M0,w0,hg,l,o),ete(e,r.canvasTransform,a,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=tc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const a=this.textStates[t],l=this.createLabel(e,t,r,i),o=this.strokeStates[i],p=this.pixelRatio,C=r5(Array.isArray(e)?e[0]:e,a.textAlign||T_),w=A3[a.textBaseline||r3],O=o&&o.lineWidth?o.lineWidth:0,U=l.width/p-2*a.scale[0],K=C*U+2*(.5-C)*O,j=w*l.height/p+2*(.5-w)*O;return{label:l,anchorX:K,anchorY:j}}execute_(e,t,i,r,a,l,o,p){const C=this.zIndexContext_;let w;this.pixelCoordinates_&&zg(i,this.renderedTransform_)?w=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),w=Kg(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),XX(this.renderedTransform_,i));let O=0;const U=r.length;let K=0,j,W,Y,te,J,oe,ne,$,ae,G,ce,ge,ye,we=0,Oe=0;const Se=this.coordinateCache_,Ve=this.viewRotation_,xe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,ze={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Ve},st=this.instructions!=r||this.overlaps?0:200;let Ct,nt,be,Ne;for(;O<U;){const tt=r[O];switch(tt[0]){case Qr.BEGIN_GEOMETRY:Ct=tt[1],Ne=tt[3],Ct.getGeometry()?o!==void 0&&!uA(o,Ne.getExtent())?O=tt[2]+1:++O:O=tt[2],C&&(C.zIndex=tt[4]);break;case Qr.BEGIN_PATH:we>st&&(this.fill_(e),we=0),Oe>st&&(e.stroke(),Oe=0),!we&&!Oe&&(e.beginPath(),J=NaN,oe=NaN),++O;break;case Qr.CIRCLE:K=tt[1];const kt=w[K],gt=w[K+1],St=w[K+2],Ut=w[K+3],Fe=St-kt,Ke=Ut-gt,Re=Math.sqrt(Fe*Fe+Ke*Ke);e.moveTo(kt+Re,gt),e.arc(kt,gt,Re,0,2*Math.PI,!0),++O;break;case Qr.CLOSE_PATH:e.closePath(),++O;break;case Qr.CUSTOM:K=tt[1],j=tt[2];const He=tt[3],bt=tt[4],_t=tt[5];ze.geometry=He,ze.feature=Ct,O in Se||(Se[O]=[]);const Ot=Se[O];_t?_t(w,K,j,2,Ot):(Ot[0]=w[K],Ot[1]=w[K+1],Ot.length=2),C&&(C.zIndex=tt[6]),bt(Ot,ze),++O;break;case Qr.DRAW_IMAGE:K=tt[1],j=tt[2],ae=tt[3],W=tt[4],Y=tt[5];let qt=tt[6];const Kt=tt[7],on=tt[8],Jn=tt[9],Wt=tt[10];let $n=tt[11];const On=tt[12];let Bn=tt[13];te=tt[14]||"declutter";const In=tt[15];if(!ae&&tt.length>=20){G=tt[19],ce=tt[20],ge=tt[21],ye=tt[22];const Mn=this.drawLabelWithPointPlacement_(G,ce,ge,ye);ae=Mn.label,tt[3]=ae;const ii=tt[23];W=(Mn.anchorX-ii)*this.pixelRatio,tt[4]=W;const Wn=tt[24];Y=(Mn.anchorY-Wn)*this.pixelRatio,tt[5]=Y,qt=ae.height,tt[6]=qt,Bn=ae.width,tt[13]=Bn}let Oi;tt.length>25&&(Oi=tt[25]);let ei,Kn,je;tt.length>17?(ei=tt[16],Kn=tt[17],je=tt[18]):(ei=I1,Kn=null,je=null),Wt&&xe?$n+=Ve:!Wt&&!xe&&($n-=Ve);let de=0;for(;K<j;K+=2){if(Oi&&Oi[de++]<Bn/this.pixelRatio)continue;const Mn=this.calculateImageOrLabelDimensions_(ae.width,ae.height,w[K],w[K+1],Bn,qt,W,Y,on,Jn,$n,On,a,ei,!!Kn||!!je,Ct),ii=[e,t,ae,Mn,Kt,Kn,je];if(p){let Wn,qi,er;if(In){const ti=j-K;if(!In[ti]){In[ti]={args:ii,declutterMode:te};continue}const Wi=In[ti];Wn=Wi.args,qi=Wi.declutterMode,delete In[ti],er=U9(Wn)}let Ei,hi;if(Wn&&(qi!=="declutter"||!p.collides(er))&&(Ei=!0),(te!=="declutter"||!p.collides(Mn.declutterBox))&&(hi=!0),qi==="declutter"&&te==="de
Line truncated
|
||||
`),r=hne.slice(0,Math.round(e/.1));for(let a=0,l=i.length;a<l;++a)a>0&&(t+=`
|
||||
`),t+=i[a].split("").join(r);return t}return n}let s5;function Dz(){return s5||(s5=b2(1,1).getContext("2d")),s5}function g1(n,e){return Dz().measureText(n).width+(n.length-1)*e}const d3={};M1.on("propertychange",()=>{for(const n in d3)delete d3[n]});function iB(n,e,t,i){if(n.indexOf(`
|
||||
`,ps().s[12]++,this._textEl=this._container.querySelector("span"),ps().s[13]++,this.updateZoomLevel()}addEventListeners(){ps().f[4]++,ps().s[14]++,this._map.on("render",()=>(ps().f[5]++,ps().s[15]++,this.updateZoomLevel())),ps().s[16]++,this._map.on("zoomIn",()=>(ps().f[6]++,ps().s[17]++,this.updateZoomLevel())),ps().s[18]++,this._map.on("zoomOut",()=>(ps().f[7]++,ps().s[19]++,this.updateZoomLevel()))}onRemove(){ps().f[8]++,ps().s[20]++,this._container.parentNode.removeChild(this._container),ps().s[21]++,this._map=void 0}}function R6(n,e,t){const i={id:[e,t,"circle"].join("_"),source:e,type:"circle",paint:{"circle-color":n,"circle-radius":2},filter:["==","$type","Point"]};return t&&(i["source-layer"]=t),i}function P6(n,e,t,i){const r={id:[t,i,"polygon"].join("_"),source:t,type:"fill",paint:{"fill-color":n,"fill-antialias":!0,"fill-outline-color":n},filter:["==","$type","Polygon"]};return i&&(r["source-layer"]=i),r}function K6(n,e,t){const i={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&&(i["source-layer"]=t),i}function _Z(n,e){const t=[],i=[],r=[];function a(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=a(l);i.push(R6(p.circle,l)),r.push(K6(p.line,l)),t.push(P6(p.polygon,p.polygonOutline,l))}else o.forEach(p=>{const C=a(p);i.push(R6(C.circle,l,p)),r.push(K6(C.line,l,p)),t.push(P6(C.polygon,C.polygonOutline,l,p))})}),t.concat(r).concat(i)}function bZ(n,e,t){t=Object.assign({backgroundColor:"#fff"},t);const i={id:"background",type:"background",paint:{"background-color":t.backgroundColor}},r={};return Object.keys(n.sources).forEach(a=>{const l=n.sources[a];(l.type==="vector"||l.type==="geojson")&&(r[a]=l)}),Object.assign(n,{layers:[i].concat(e),sources:r})}const T4={polygonLayer:P6,lineLayer:K6,circleLayer:R6,generateInspectStyle:bZ,generateColoredLayers:_Z};function vo(){var n="/home/runner/work/maputnik/maputnik/src/libs/highlight.ts",e="aec0f701e803624fae461cc89b5fc887ff556587",t=globalThis,i="__coverage__",r={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=DZ.language(this.options.language.split(",")[0]);return this.options.language&&yC?.[e][t]?yC[e][t]:yC[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 i=Qp({},{padding:100},this.options.flyTo),r=new this._maplibregl.LngLatBounds;for(const a of e)r.extend(a.geometry.coordinates);this._map.fitBounds(r,i)}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 i=Qp({},{color:"#4668F2"},this.options.marker);this.mapMarker=new this._maplibregl.Marker(i);let r;if(this.options.popup){const l=Qp({},{},this.options.popup);r=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(r)):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(r)),this}_removeMarker(){this.mapMarker&&(this.mapMarker.remove(),this.mapMarker=null)}_handleResultMarkers(e){if(!this._map)return;this._removeResultMarkers();let i=Qp({},{color:"#4668F2"},this.options.showResultMarkers);for(const r of e){let a;if(this.options.showResultMarkers){this.options.showResultMarkers&&this.options.showResultMarkers.element&&(a=this.options.showResultMarkers.element.cloneNode(!0),i=Qp(i,{element:a}));const l=new this._maplibregl.Marker(Qp({},i,{element:a}));let o;if(this.options.popup){const C=Qp({},{},this.options.popup);o=new this._maplibregl.Popup(C).setHTML(this.options.popupRender(r))}r.center?(l.setLngLat(r.center).addTo(this._map),this.options.popup&&l.setPopup(o)):r.geometry&&r.geometry.type&&r.geometry.type==="Point"&&r.geometry.coordinates&&(l.setLngLat(r.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 bn(){var n="/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",e="1655c5d10102378b1e2627d777374c6f3c3f21a7",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/MapMaplibreGl.tsx",statementMap:{0:{start:{line:21,column:26},end:{line:27,column:3}},1:{start:{line:28,column:16},end:{line:28,column:55}},2:{start:{line:29,column:2},end:{line:31,column:3}},3:{start:{line:30,column:4},end:{line:30,column:30}},4:{start:{line:32,column:18},end:{line:32,column:20}},5:{start:{line:33,column:2},end:{line:38,column:5}},6:{start:{line:34,column:19},end:{line:34,column:53}},7:{start:{line:35,column:4},end:{line:3Line truncated
|
||||
`).reduce((r,a)=>Math.max(r,Az(n,a)),0);return t[e]=i,i}function tte(n,e){const t=[],i=[],r=[];let a=0,l=0,o=0,p=0;for(let C=0,M=e.length;C<=M;C+=2){const O=e[C];if(O===`
|
||||
`||C===M){a=Math.max(a,l),r.push(l),l=0,o+=p,p=0;continue}const U=e[C+1]||n.font,K=Az(U,O);t.push(K),l+=K;const j=ete(U);i.push(j),p=Math.max(p,j)}return{width:a,height:o,widths:t,heights:i,lineWidths:r}}function nte(n,e,t,i,r,a,l,o,p,C,M){n.save(),t!==1&&(n.globalAlpha===void 0?n.globalAlpha=O=>O.globalAlpha*=t:n.globalAlpha*=t),e&&n.transform.apply(n,e),i.contextInstructions?(n.translate(p,C),n.scale(M[0],M[1]),ite(i,n)):M[0]<0||M[1]<0?(n.translate(p,C),n.scale(M[0],M[1]),n.drawImage(i,r,a,l,o,0,0,l,o)):n.drawImage(i,r,a,l,o,p,C,l*M[0],o*M[1]),n.restore()}function ite(n,e){const t=n.contextInstructions;for(let i=0,r=t.length;i<r;i+=2)Array.isArray(t[i+1])?e[t[i]].apply(e,t[i+1]):e[t[i]]=t[i+1]}class m2{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=jh(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){const e=this.getScale();return new m2({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 Co()}getImage(e){return Co()}getHitDetectionImage(){return Co()}getPixelRatio(e){return 1}getImageState(){return Co()}getImageSize(){return Co()}getOrigin(){return Co()}getSize(){return Co()}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_=jh(e)}listenImageChange(e){Co()}load(){Co()}unlistenImageChange(e){Co()}ready(){return Promise.resolve()}}class g2 extends m2{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()?dr.LOADING:dr.LOADED,this.imageState_===dr.LOADING&&this.ready().then(()=>this.imageState_=dr.LOADED),this.render()}clone(){const e=this.getScale(),t=new g2({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(),i=this.getScaleArray();return[e[0]/2-t[0]/i[0],e[1]/2+t[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){const t=this.fill_?.getKey(),i=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(",");let r=vp.get(i,null,null)?.getImage(1);if(!r){const a=this.renderOptions_,l=Math.ceil(a.size*e),o=WA(l,l);this.draw_(a,o,e),r=o.canvas,vp.set(i,null,null,new az(r,void 0,null,dr.LOADED,null))}return r}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,i){if(t===0||this.points_===1/0||e!=="bevel"&&e!=="miter")return t;let r=this.radius,a=this.radius2_===void 0?r:this.radius2_;if(r<a){const ae=r;r=a,a=ae}const l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,p=a*Math.sin(o),C=Math.sqrt(a*a-p*p),M=r-C,O=Math.sqrt(p*p+M*M),U=O/p;if(e==="miter"&&U<=i)return U*t;const K=t/2/U,j=t/2*(M/O),Y=Math.sqrt((r+K)*(r+K)+j*j)-r;if(this.radius2_===void 0||e==="bevel")return Y*2;const te=r*Math.sin(o),J=Math.sqrt(r*r-te*te),oe=a-J,$=Math.sqrt(te*te+oe*oe)/te;if($<=i){const ae=$*t/2-a-r;return 2*Math.max(Y,ae)}return Y*2}createRenderOptions(){let e=Uv,t=Lv,i=0,r=null,a=0,l,o=0;this.stroke_&&(l=qm(this.stroke_.getColor()??
Line truncated
|
||||
`,""),n.push(e,""),n}function $te(n,e,t){return t%2===0&&(n+=e),n}class Zte{constructor(e,t,i,r,a){this.overlaps=i,this.pixelRatio=t,this.resolution=e,this.alignAndScaleFill_,this.instructions=r.instructions,this.coordinates=r.coordinates,this.coordinateCache_={},this.renderedTransform_=Hd(),this.hitDetectionInstructions=r.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=r.fillStates||{},this.strokeStates=r.strokeStates||{},this.textStates=r.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=a?new VO:null}getZIndexContext(){return this.zIndexContext_}createLabel(e,t,i,r){const a=e+t+i+r;if(this.labels_[a])return this.labels_[a];const l=r?this.strokeStates[r]:null,o=i?this.fillStates[i]:null,p=this.textStates[t],C=this.pixelRatio,M=[p.scale[0]*C,p.scale[1]*C],O=p.justify?c3[p.justify]:s5(Array.isArray(e)?e[0]:e,p.textAlign||D_),U=r&&l.lineWidth?l.lineWidth:0,K=Array.isArray(e)?e:String(e).split(`
|
||||
`).reduce(Vte,[]),{width:j,height:W,widths:Y,heights:te,lineWidths:J}=tte(p,K),oe=j+U,ne=[],$=(oe+2)*M[0],ae=(W+U)*M[1],G={width:$<0?Math.floor($):Math.ceil($),height:ae<0?Math.floor(ae):Math.ceil(ae),contextInstructions:ne};(M[0]!=1||M[1]!=1)&&ne.push("scale",M),r&&(ne.push("strokeStyle",l.strokeStyle),ne.push("lineWidth",U),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)),i&&ne.push("fillStyle",o.fillStyle),ne.push("textBaseline","middle"),ne.push("textAlign","center");const ce=.5-O;let ge=O*oe+ce*U;const ye=[],we=[];let Ie=0,Se=0,Ve=0,xe=0,ze;for(let st=0,Ct=K.length;st<Ct;st+=2){const nt=K[st];if(nt===`
|
||||
`){Se+=Ie,Ie=0,ge=O*oe+ce*U,++xe;continue}const be=K[st+1]||p.font;be!==ze&&(r&&ye.push("font",be),i&&we.push("font",be),ze=be),Ie=Math.max(Ie,te[Ve]);const Ne=[nt,ge+ce*Y[Ve]+O*(Y[Ve]-J[xe]),.5*(U+Ie)+Se];ge+=Y[Ve],r&&ye.push("strokeText",Ne),i&&we.push("fillText",Ne),++Ve}return Array.prototype.push.apply(ne,ye),Array.prototype.push.apply(ne,we),this.labels_[a]=G,G}replayTextBackground_(e,t,i,r,a,l,o){e.beginPath(),e.moveTo.apply(e,t),e.lineTo.apply(e,i),e.lineTo.apply(e,r),e.lineTo.apply(e,a),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,i,r,a,l,o,p,C,M,O,U,K,j,W,Y){o*=U[0],p*=U[1];let te=i-o,J=r-p;const oe=a+C>e?e-C:a,ne=l+M>t?t-M:l,$=j[3]+oe*U[0]+j[1],ae=j[0]+ne*U[1]+j[2],G=te-j[3],ce=J-j[0];(W||O!==0)&&(dg[0]=G,fg[0]=G,dg[1]=ce,w0[1]=ce,w0[0]=G+$,S0[0]=w0[0],S0[1]=ce+ae,fg[1]=S0[1]);let ge;return O!==0?(ge=e0(Hd(),i,r,1,1,O,-i,-r),nc(ge,dg),nc(ge,w0),nc(ge,S0),nc(ge,fg),U0(Math.min(dg[0],w0[0],S0[0],fg[0]),Math.min(dg[1],w0[1],S0[1],fg[1]),Math.max(dg[0],w0[0],S0[0],fg[0]),Math.max(dg[1],w0[1],S0[1],fg[1]),Py)):U0(Math.min(G,G+$),Math.min(ce,ce+ae),Math.max(G,G+$),Math.max(ce,ce+ae),Py),K&&(te=Math.round(te),J=Math.round(J)),{drawImageX:te,drawImageY:J,drawImageW:oe,drawImageH:ne,originX:C,originY:M,declutterBox:{minX:Py[0],minY:Py[1],maxX:Py[2],maxY:Py[3],value:Y},canvasTransform:ge,scale:U}}replayImageOrLabel_(e,t,i,r,a,l,o){const p=!!(l||o),C=r.declutterBox,M=o?o[2]*r.scale[0]/2:0;return C.minX-M<=t[0]&&C.maxX+M>=0&&C.minY-M<=t[1]&&C.maxY+M>=0&&(p&&this.replayTextBackground_(e,dg,w0,S0,fg,l,o),nte(e,r.canvasTransform,a,i,r.originX,r.originY,r.drawImageW,r.drawImageH,r.drawImageX,r.drawImageY,r.scale)),!0}fill_(e){const t=this.alignAndScaleFill_;if(t){const i=nc(this.renderedTransform_,[0,0]),r=512*this.pixelRatio;e.save(),e.translate(i[0]%r,i[1]%r),t!==1&&e.scale(t,t),e.rotate(this.viewRotation_)}e.fill(),t&&e.restore()}setStrokeStyle_(e,t){e.strokeStyle=t[1],t[1]&&(e.lineWidth=t[2],e.lineCap=t[3],e.lineJoin=t[4],e.miterLimit=t[5],e.lineDashOffset=t[7],e.setLineDash(t[6]))}drawLabelWithPointPlacement_(e,t,i,r){const a=this.textStates[t],l=this.createLabel(e,t,r,i),o=this.strokeStates[i],p=this.pixelRatio,C=s5(Array.isArray(e)?e[0]:e,a.textAlign||D_),M=c3[a.textBaseline||o3],O=o&&o.lineWidth?o.lineWidth:0,U=l.width/p-2*a.scale[0],K=C*U+2*(.5-C)*O,j=M*l.height/p+2*(.5-M)*O;return{label:l,anchorX:K,anchorY:j}}execute_(e,t,i,r,a,l,o,p){const C=this.zIndexContext_;let M;this.pixelCoordinates_&&Gg(i,this.renderedTransform_)?M=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),M=Fg(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),eJ(this.renderedTransform_,i));let O=0;const U=r.length;let K=0,j,W,Y,te,J,oe,ne,$,ae,G,ce,ge,ye,we=0,Ie=0;const Se=this.coordinateCache_,Ve=this.viewRotation_,xe=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,ze={context:e,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:Ve},st=this.instructions!=r||this.overlaps?0:200;let Ct,nt,be,Ne;for(;O<U;){const tt=r[O];switch(tt[0]){case Yr.BEGIN_GEOMETRY:Ct=tt[1],Ne=tt[3],Ct.getGeometry()?o!==void 0&&!uu(o,Ne.getExtent())?O=tt[2]+1:++O:O=tt[2],C&&(C.zIndex=tt[4]);break;case Yr.BEGIN_PATH:we>st&&(this.fill_(e),we=0),Ie>st&&(e.stroke(),Ie=0),!we&&!Ie&&(e.beginPath(),J=NaN,oe=NaN),++O;break;case Yr.CIRCLE:K=tt[1];const kt=M[K],gt=M[K+1],St=M[K+2],Ut=M[K+3],Fe=St-kt,Ke=Ut-gt,Re=Math.sqrt(Fe*Fe+Ke*Ke);e.moveTo(kt+Re,gt),e.arc(kt,gt,Re,0,2*Math.PI,!0),++O;break;case Yr.CLOSE_PATH:e.closePath(),++O;break;case Yr.CUSTOM:K=tt[1],j=tt[2];const He=tt[3],bt=tt[4],_t=tt[5];ze.geometry=He,ze.feature=Ct,O in Se||(Se[O]=[]);const Ot=Se[O];_t?_t(M,K,j,2,Ot):(Ot[0]=M[K],Ot[1]=M[K+1],Ot.length=2),C&&(C.zIndex=tt[6]),bt(Ot,ze),++O;break;case Yr.DRAW_IMAGE:K=tt[1],j=tt[2],ae=tt[3],W=tt[4],Y=tt[5];let qt=tt[6];const Kt=tt[7],on=tt[8],Jn=tt[9],Wt=tt[10];let $n=tt[11];const On=tt[12];let Bn=tt[13];te=tt[14]||"declutter";const In=tt[15];if(!ae&&tt.length>=20){G=tt[19],ce=tt[20],ge=tt[21],ye=tt[22];const Mn=this.drawLabelWithPointPlacement_(G,ce,ge,ye);ae=Mn.label,tt[3]=ae;const ii=tt[23];W=(Mn.anchorX-ii)*this.pixelRatio,tt[4]=W;const Wn=tt[24];Y=(Mn.anchorY-Wn)*this.pixelRatio,tt[5]=Y,qt=ae.height,tt[6]=qt,Bn=ae.width,tt[13]=Bn}let Oi;tt.length>25&&(Oi=tt[25]);let ei,Kn,je;tt.length>17?(ei=tt[16],Kn=tt[17],je=tt[18]):(ei=T1,Kn=null,je=null),Wt&&xe?$n+=Ve:!Wt&&!xe&&($n-=Ve);let de=0;for(;K<j;K+=2){if(Oi&&Oi[de++]<Bn/this.pixelRatio)continue;const Mn=this.calculateImageOrLabelDimensions_(ae.width,ae.height,M[K],M[K+1],Bn,qt,W,Y,on,Jn,$n,On,a,ei,!!Kn||!!je,Ct),ii=[e,t,ae,Mn,Kt,Kn,je];if(p){let Wn,Hi,tr;if(In){const ti=j-K;if(!In[ti]){In[ti]={args:ii,declutterMode:te};continue}const Qi=In[ti];Wn=Qi.args,Hi=Qi.declutterMode,delete In[ti],tr=L9(Wn)}let Ei,hi;if(Wn&&(Hi!=="declutter"||!p.collides(tr))&&(Ei=!0),(te!=="declutter"||!p.collides(Mn.declutterBox))&&(hi=!0),Hi==="declutter"&&te==="de
Line truncated
|
||||
`),r=fne.slice(0,Math.round(e/.1));for(let a=0,l=i.length;a<l;++a)a>0&&(t+=`
|
||||
`),t+=i[a].split("").join(r);return t}return n}let u5;function Rz(){return u5||(u5=x2(1,1).getContext("2d")),u5}function v1(n,e){return Rz().measureText(n).width+(n.length-1)*e}const f3={};w1.on("propertychange",()=>{for(const n in f3)delete f3[n]});function aB(n,e,t,i){if(n.indexOf(`
|
||||
`)!==-1){const l=n.split(`
|
||||
`),o=[];for(let p=0,C=l.length;p<C;++p)o.push(iB(l[p],e,t,i));return o.join(`
|
||||
`)}const r=t+","+e+","+n+","+i;let a=d3[r];if(!a){const l=n.split(" ");if(l.length>1){const o=Dz();o.font=e;const C=o.measureText("M").width*t;let w="";const O=[];for(let U=0,K=l.length;U<K;++U){const j=l[U],W=w+(w?" ":"")+j;g1(W,i)<=C?w=W:(w&&O.push(w),w=j)}w&&O.push(w);for(let U=0,K=O.length;U<K&&K>1;++U){const j=O[U];if(g1(j,i)<C*.35){const W=U>0?g1(O[U-1],i):1/0,Y=U<K-1?g1(O[U+1],i):1/0;O.splice(U,1),K-=1,W<Y?(O[U-1]+=" "+j,U-=1):O[U]=j+" "+O[U]}}for(let U=0,K=O.length-1;U<K;++U){const j=O[U],W=O[U+1];if(g1(j,i)>C*.7&&g1(W,i)<C*.6){const Y=j.split(" "),te=Y.pop();g1(te,i)<C*.2&&(O[U]=Y.join(" "),O[U+1]=te+" "+W),K-=1}}a=O.join(`
|
||||
`)}else a=n;a=nB(a,i),d3[r]=a}return a}const dne=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],q9={};function fne(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const a=n[i];if(a in q9)continue;q9[a]=!0;const o=R6(a,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const a=t[i],l=a[0];if(dne.includes(l))continue;const o=a[1],p=a[2];if(!(await document.fonts.load(`${p} ${o} 16px "${l}"`)).some(w=>w.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&w.weight==o&&w.style===p)){const w=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+w+'"]')){const O=document.createElement("link");O.href=w,O.rel="stylesheet",document.head.appendChild(O)}}}})(),n}const pne={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},mne={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]},gne=function(n,e){const t=$3(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Ef={zoom:0,distanceFromCenter:0};wf.register(Y3,{...wf.definitions,pitch:[{kind:"number"},[],n=>Ef.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Ef.distanceFromCenter||0]});let Xb,l5;function _r(n,e,t,i,r,a){const l=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[l]||(r[l]={});const o=r[l];if(!o[t]){let p=(n[e]||em)[t];const C=xf[`${e}_${n.type}`][t];p===void 0&&(p=C.default);let w=Qv(p);if(!w&&Wv(p)&&(p=XB(p,C),w=!0),w){const O=gne(p,C);o[t]=O.evaluate.bind(O)}else C.type=="color"&&(p=il.parse(p)),o[t]=function(){return p}}return o[t](Ef,i,a)}function H9(n,e,t,i){return _r(n,"layout",`${t}-allow-overlap`,e,i)?_r(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function yne(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=DH(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Ef,t)}function mg(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 vne=/\{[^{}}]*\}/g;function u5(n,e){return n.replace(vne,function(t){return e[t.slice(1,-1)]||""})}function V9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const Cne={};function _ne(n,e,t,i=Xm,r=void 0,a=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.");Cne[une(e,n)]=Array.from(arguments);const p={};(typeof a=="string"||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(const $ in a){const ae=a[$];kv(()=>ae).then(async G=>{let ce;if(typeof Image<"u"){const ge=new Image;if(typeof G=="string")ge.crossOrigin="anonymous",ge.src=G;else{let ye;G instanceof Request?ye=await fetch(G):G instanceof Response&&(ye=G);const we=await ye.blob();ce=URL.createObjectURL(we),ge.src=ce}ge.addEventListener("load",function ye(){ge.removeEventListener("load",ye),p[$]={image:ge,size:[ge.width,ge.height]},n.changed(),ce&&URL.revokeObjectURL(ce)}),ge.addEventListener("error",function ye(){URL.revokeObjectURL(ce),ge.removeEventListener("error",ye)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:G}),ge.addEventListener("message",function(we){we.data.action==="imageLoaded"&&we.data.src===G&&(p[$]={image:we.data.image,size:[we.data.image.width,we.data.image.height]})})}})}const C=DB(e.layers),w={},O=[],U={},K={},j=Iz(e),W=Ane(e);let Y;for(let $=0,ae=C.length;$<ae;++$){const G=C[$],ce=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(ce)!==-1){const ge=G["source-layer"];if(Y){if(G.source!==Y)throw new Error(`Layer "${ce}" does not use source "${Y}`)}else{Y=G.source;const we=e.sources[Y];if(!we)throw new Error(`Source "${Y}" is not defined`);const Oe=we.type;if(Oe!=="vector"&&Oe!=="geojson")throw new Error(`Source "${Y}" is not of type "vector" or "geojson", but "${Oe}"`)}let ye=w[ge];ye||(ye=[],w[ge]=ye),ye.push({layer:G,index:$}),O.push(ce)}}const te=new Sg,J=new T0,oe=[],ne=function($,ae,G){const ce=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=$.getProperties(),ye=w[ge[ce]];if(!ye)return;let we=i.indexOf(ae);we==-1&&(we=XO(ae,i)),Ef.zoom=we,Ef.distanceFromCenter=0;const Oe=$.getGeometry(),Se=pne[Oe.getType()],Ve=n.get("map");if(Ve&&Ve instanceof C2&&Se===1){const Ct=Ve.Line truncated
|
||||
`),o=[];for(let p=0,C=l.length;p<C;++p)o.push(aB(l[p],e,t,i));return o.join(`
|
||||
`)}const r=t+","+e+","+n+","+i;let a=f3[r];if(!a){const l=n.split(" ");if(l.length>1){const o=Rz();o.font=e;const C=o.measureText("M").width*t;let M="";const O=[];for(let U=0,K=l.length;U<K;++U){const j=l[U],W=M+(M?" ":"")+j;v1(W,i)<=C?M=W:(M&&O.push(M),M=j)}M&&O.push(M);for(let U=0,K=O.length;U<K&&K>1;++U){const j=O[U];if(v1(j,i)<C*.35){const W=U>0?v1(O[U-1],i):1/0,Y=U<K-1?v1(O[U+1],i):1/0;O.splice(U,1),K-=1,W<Y?(O[U-1]+=" "+j,U-=1):O[U]=j+" "+O[U]}}for(let U=0,K=O.length-1;U<K;++U){const j=O[U],W=O[U+1];if(v1(j,i)>C*.7&&v1(W,i)<C*.6){const Y=j.split(" "),te=Y.pop();v1(te,i)<C*.2&&(O[U]=Y.join(" "),O[U+1]=te+" "+W),K-=1}}a=O.join(`
|
||||
`)}else a=n;a=oB(a,i),f3[r]=a}return a}const pne=["Arial","Courier New","Times New Roman","Verdana","sans-serif","serif","monospace","cursive","fantasy"],H9={};function mne(n,e="https://cdn.jsdelivr.net/npm/@fontsource/{font-family}/{fontweight}{-fontstyle}.css"){let t;for(let i=0,r=n.length;i<r;++i){const a=n[i];if(a in H9)continue;H9[a]=!0;const o=U6(a,16).split(" ");t||(t=[]),t.push([o.slice(3).join(" ").replace(/"/g,""),o[1],o[0]])}return t&&(async()=>{await document.fonts.ready;for(let i=0,r=t.length;i<r;++i){const a=t[i],l=a[0];if(pne.includes(l))continue;const o=a[1],p=a[2];if(!(await document.fonts.load(`${p} ${o} 16px "${l}"`)).some(M=>M.family.replace(/^['"]|['"]$/g,"").toLowerCase()===l.toLowerCase()&&M.weight==o&&M.style===p)){const M=e.replace("{font-family}",l.replace(/ /g,"-").toLowerCase()).replace("{Font+Family}",l.replace(/ /g,"+")).replace("{fontweight}",o).replace("{-fontstyle}",p.replace("normal","").replace(/(.+)/,"-$1")).replace("{fontstyle}",p);if(!document.querySelector('link[href="'+M+'"]')){const O=document.createElement("link");O.href=M,O.rel="stylesheet",document.head.appendChild(O)}}}})(),n}const gne={Point:1,MultiPoint:1,LineString:2,MultiLineString:2,Polygon:3,MultiPolygon:3},yne={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]},vne=function(n,e){const t=Z3(n,e);if(t.result==="error")throw new Error(t.value.map(i=>`${i.key}: ${i.message}`).join(", "));return t.value},Of={zoom:0,distanceFromCenter:0};Ef.register(q3,{...Ef.definitions,pitch:[{kind:"number"},[],n=>Of.pitch||90],"distance-from-center":[{kind:"number"},[],n=>Of.distanceFromCenter||0]});let ex,c5;function br(n,e,t,i,r,a){const l=n.id;r||(r={},console.warn("No functionCache provided to getValue()")),r[l]||(r[l]={});const o=r[l];if(!o[t]){let p=(n[e]||tm)[t];const C=wf[`${e}_${n.type}`][t];p===void 0&&(p=C.default);let M=qv(p);if(!M&&Yv(p)&&(p=tO(p,C),M=!0),M){const O=vne(p,C);o[t]=O.evaluate.bind(O)}else C.type=="color"&&(p=rl.parse(p)),o[t]=function(){return p}}return o[t](Of,i,a)}function V9(n,e,t,i){return br(n,"layout",`${t}-allow-overlap`,e,i)?br(n,"layout",`${t}-ignore-placement`,e,i)?"none":"obstacle":"declutter"}function Cne(n,e,t,i){if(i||console.warn("No filterCache provided to evaluateFilter()"),!(n in i))try{i[n]=RH(e).filter}catch(r){console.warn("Filter will evaluate to false: "+r.message),i[n]=function(){return!1}}return i[n](Of,t)}function vg(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 _ne=/\{[^{}}]*\}/g;function h5(n,e){return n.replace(_ne,function(t){return e[t.slice(1,-1)]||""})}function $9(n,e){let t=n.split(":")[0];return t===n&&(t="default"),e[t]}const bne={};function xne(n,e,t,i=Jm,r=void 0,a=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.");bne[cne(e,n)]=Array.from(arguments);const p={};(typeof a=="string"||a instanceof Request||a instanceof Response||a instanceof Promise)&&(a={default:a});for(const $ in a){const ae=a[$];Rv(()=>ae).then(async G=>{let ce;if(typeof Image<"u"){const ge=new Image;if(typeof G=="string")ge.crossOrigin="anonymous",ge.src=G;else{let ye;G instanceof Request?ye=await fetch(G):G instanceof Response&&(ye=G);const we=await ye.blob();ce=URL.createObjectURL(we),ge.src=ce}ge.addEventListener("load",function ye(){ge.removeEventListener("load",ye),p[$]={image:ge,size:[ge.width,ge.height]},n.changed(),ce&&URL.revokeObjectURL(ce)}),ge.addEventListener("error",function ye(){URL.revokeObjectURL(ce),ge.removeEventListener("error",ye)})}else if(typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope){const ge=self;ge.postMessage({action:"loadImage",src:G}),ge.addEventListener("message",function(we){we.data.action==="imageLoaded"&&we.data.src===G&&(p[$]={image:we.data.image,size:[we.data.image.width,we.data.image.height]})})}})}const C=KB(e.layers),M={},O=[],U={},K={},j=Tz(e),W=hne(e);let Y;for(let $=0,ae=C.length;$<ae;++$){const G=C[$],ce=G.id;if(typeof t=="string"&&G.source==t||Array.isArray(t)&&t.indexOf(ce)!==-1){const ge=G["source-layer"];if(Y){if(G.source!==Y)throw new Error(`Layer "${ce}" does not use source "${Y}`)}else{Y=G.source;const we=e.sources[Y];if(!we)throw new Error(`Source "${Y}" is not defined`);const Ie=we.type;if(Ie!=="vector"&&Ie!=="geojson")throw new Error(`Source "${Y}" is not of type "vector" or "geojson", but "${Ie}"`)}let ye=M[ge];ye||(ye=[],M[ge]=ye),ye.push({layer:G,index:$}),O.push(ce)}}const te=new Og,J=new k0,oe=[],ne=function($,ae,G){const ce=n.getSource?.()?.format_?.layerName_??"mvt:layer",ge=$.getProperties(),ye=M[ge[ce]];if(!ye)return;let we=i.indexOf(ae);we==-1&&(we=t8(ae,i)),Of.zoom=we,Of.distanceFromCenter=0;const Ie=$.getGeometry(),Se=gne[Ie.getType()],Ve=n.get("map");if(Ve&&Ve instanceof _2&&Se===1){const Ct=Ve.Line truncated
|
||||
`)return je.push(`
|
||||
`,""),je;if(Se==2)return je.push(nB(Te,In),pe),je;Te=iB(Te,pe,Oi,In).split(`
|
||||
`,""),je;if(Se==2)return je.push(oB(Te,In),pe),je;Te=aB(Te,pe,Oi,In).split(`
|
||||
`);for(let We=0,dt=Te.length;We<dt;++We)We>0&&je.push(`
|
||||
`,""),je.push(Te[We],pe);return je},[]):Wt=u5(Kn,ge).trim(),Ut=_r(Ne,"paint","text-opacity",xe,j,ze)}if(Wt&&Ut&&!Jn){_t||(++st,He=oe[st],(!He||!He.getText()||He.getFill()||He.getStroke())&&(He=new Cf,oe[st]=He),He.setImage(void 0),He.setGeometry(void 0));const ei=H9(Ne,xe,"text",j);He.getText()||He.setText(Ot),Ot=He.getText(),(!Ot||"getDeclutterMode"in Ot&&Ot.getDeclutterMode()!==ei)&&(Ot=new g2({padding:[2,2,2,2],declutterMode:ei}),He.setText(Ot));const Kn=_r(Ne,"layout","text-transform",xe,j,ze);Kn=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((Tt,it)=>it%2?Tt:Tt.toUpperCase()):Wt.toUpperCase():Kn=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((Tt,it)=>it%2?Tt:Tt.toLowerCase()):Wt.toLowerCase());const je=Array.isArray(Wt)?Wt:Se==2?nB(Wt,In):iB(Wt,$n,Oi,In);if(Ot.setText(je),Ot.setFont($n),Ot.setRotation(a5(_r(Ne,"layout","text-rotate",xe,j,ze))),typeof Ot.setKeepUpright=="function"){const Tt=_r(Ne,"layout","text-keep-upright",xe,j,ze);Ot.setKeepUpright(Tt)}const de=_r(Ne,"layout","text-anchor",xe,j,ze),re=_t||Se==1?"point":_r(Ne,"layout","symbol-placement",xe,j,ze);let le;if(re==="line-center"?(Ot.setPlacement("line"),le="center"):Ot.setPlacement(re),re==="line"&&typeof Ot.setRepeat=="function"){const Tt=_r(Ne,"layout","symbol-spacing",xe,j,ze);Ot.setRepeat(Tt*2)}Ot.setOverflow(re==="point");let pe=_r(Ne,"paint","text-halo-width",xe,j,ze);const Te=_r(Ne,"layout","text-offset",xe,j,ze),We=_r(Ne,"paint","text-translate",xe,j,ze);let dt=0,Ye=0;if(re=="point"){le="center",de.indexOf("left")!==-1?(le="left",Ye=pe):de.indexOf("right")!==-1&&(le="right",Ye=-pe);const Tt=_r(Ne,"layout","text-rotation-alignment",xe,j,ze);Ot.setRotateWithView(Tt=="map")}else Ot.setMaxAngle(a5(_r(Ne,"layout","text-max-angle",xe,j,ze))*Wt.length/je.length),Ot.setRotateWithView(!1);Ot.setTextAlign(le);let De="middle";de.indexOf("bottom")==0?(De="bottom",dt=-pe-.5*(On-1)*Bn):de.indexOf("top")==0&&(De="top",dt=pe+.5*(On-1)*Bn),Ot.setTextBaseline(De);const Ze=_r(Ne,"layout","text-justify",xe,j,ze);Ot.setJustify(Ze==="auto"?void 0:Ze),Ot.setOffsetX(Te[0]*Bn+Ye+We[0]),Ot.setOffsetY(Te[1]*Bn+dt+We[1]),J.setColor(mg(_r(Ne,"paint","text-color",xe,j,ze),Ut)),Ot.setFill(J);const g=mg(_r(Ne,"paint","text-halo-color",xe,j,ze),Ut);if(g&&pe>0){te.setColor(g),pe*=2;const Tt=.5*Bn;te.setWidth(pe<=Tt?pe:Tt),Ot.setStroke(te)}else Ot.setStroke(void 0);const mt=_r(Ne,"layout","text-padding",xe,j,ze),ht=Ot.getPadding();mt!==ht[0]&&(ht[0]=mt,ht[1]=mt,ht[2]=mt,ht[3]=mt),He.setZIndex(bt)}}}if(st>-1)return oe.length=st+1,oe};return n.setStyle(ne),n.set("mapbox-layers",O),n.set("mapbox-source",Y),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class Rz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=_2,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?Qs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=Qs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,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 x2(n,e,t){const i=t?Qs(t.featureProjection):null,r=t?Qs(t.dataProjection):null;let a=n;if(i&&r&&!Pg(i,r)){e&&(a=n.clone());const l=e?i:r,o=e?r:i;l.getUnits()==="tile-pixels"?a.transform(l,o):a.applyTransform(S_(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(p){for(let C=0,w=p.length;C<w;++C)p[C]=Math.round(p[C]*l)/l;return p};a===n&&(a=n.clone()),a.applyTransform(o)}return a}const bne={Point:Y1,LineString:H1,Polygon:L0,MultiPoint:vb,MultiLineString:P_,MultiPolygon:K_};function xne(n,e,t){return Array.isArray(e[0])?(WF(n,0,e,t)||(n=n.slice(),q6(n,0,e,t)),n):(EO(n,0,e,t)||(n=n.slice(),n3(n,0,e,t)),n)}function Pz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(a=>Pz({...n,geometry:a})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return x2(new Fh(i,i==="Polygon"?xne(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function JO(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>JO(r,e));return new l3(i)}const t=bne[n.type];return x2(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Mne extends Rz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(Jb(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(Jb(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return vo()}readFeaturesFromObject(e,
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function kie(n,e){const t=Hz(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}class Die extends sb{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Tie(e,this.onWorkerMessage_.bind(this,r));else i[0]=kie(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),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,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),a=this.workers_.length;if(this.running_=a,a===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/a);for(let p=0;p<a;++p){const C=p*o,w=[];for(let O=0,U=r.length;O<U;++O)w.push(r[O].slice(C,C+o));this.workers_[p].postMessage({buffers:w,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},w)}}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 i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const a=e.inputs[0].data.length;i=new Uint8ClampedArray(a),r=new Array(t);const l=4*Math.ceil(a/4/t);for(let o=0;o<t;++o){const p=this.dataLookup_[o].buffer,C=o*l;i.set(new Uint8ClampedArray(p),C),r[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const oT={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class aT extends um{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class Vz extends Wz{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_=Kie(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(fo.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new pF(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:Pie(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Yd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:Io(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let a=0,l=e.sources.length;a<l;++a){const o=e.sources[a],p=o instanceof Zv?o:o.getSource();if(!p)continue;const C=p.getAttributions()?.(i);typeof C=="string"?r.push(C):C!==void 0&&r.push(...C)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Die({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const a=Bf(e);r.size[0]=Math.ceil(ss(e)/t),r.size[1]=Math.ceil(ic(e)/t),r.extent=[a[0]-r.size[0]*t/2,a[1]-r.size[1]*t/2,a[0]+r.size[0]*t/2,a[1]+r.size[1]*t/2],r.time=Date.now();const l=r.viewState;return l.center=a,l.projection=i,l.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!U0(a.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),a.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction($z(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class qie extends S2{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Hie,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:Ez,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Pg(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||Pg(t,e)))return this.tileGrid;const i=Io(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Qz(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,a,l){const o=[e,t,i],p=this.getTileCoordForTileUrlFunction(o,a),C=p?this.tileUrlFunction(p,r,a):void 0,w=new this.tileClass(o,C!==void 0?Pi.IDLE:Pi.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return w.key=l,w.addEventListener(fo.CHANGE,this.handleTileChange.bind(this)),w}getTile(e,t,i,r,a){const l=this.getProjection();if(!l||!a||Pg(l,a))return this.getTileInternal(e,t,i,r,l||a);const o=[e,t,i],p=this.getKey(),C=this.getTileGridForProjection(l),w=this.getTileGridForProjection(a),O=this.getTileCoordForTileUrlFunction(o,a),U=new jz(l,C,a,w,o,O,this.getTilePixelRatio(r),this.getGutter(),(K,j,W,Y)=>this.getTileInternal(K,j,W,Y,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return U.key=p,U}getTileInternal(e,t,i,r,a){const l=this.getKey();return this.createTile_(e,t,i,r,a,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=Qs(e);if(i){const r=Io(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function Hie(n,e){n.getImage().src=e}class Zz extends qie{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:Qs("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)Lie(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 i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=Qs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const C=hb(t,i);r=dX(e.bounds,C)}const a=w2(i),l=e.minzoom||0,o=e.maxzoom||22,p=t8({extent:a,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=$z(e.tiles,p),e.attribution&&!this.getAttributions()){const C=r!==void 0?r:a;this.setAttributions(function(w){return uA(C,w.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class n8 extends S2{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||w2(t),r=e.tileGrid||t8({extent:i,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:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Xz,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:Bz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Pi.IDLE){i.setState(Pi.LOADING);const r=i.wr
Line truncated
|
||||
`,""),je.push(Te[We],pe);return je},[]):Wt=h5(Kn,ge).trim(),Ut=br(Ne,"paint","text-opacity",xe,j,ze)}if(Wt&&Ut&&!Jn){_t||(++st,He=oe[st],(!He||!He.getText()||He.getFill()||He.getStroke())&&(He=new bf,oe[st]=He),He.setImage(void 0),He.setGeometry(void 0));const ei=V9(Ne,xe,"text",j);He.getText()||He.setText(Ot),Ot=He.getText(),(!Ot||"getDeclutterMode"in Ot&&Ot.getDeclutterMode()!==ei)&&(Ot=new y2({padding:[2,2,2,2],declutterMode:ei}),He.setText(Ot));const Kn=br(Ne,"layout","text-transform",xe,j,ze);Kn=="uppercase"?Wt=Array.isArray(Wt)?Wt.map((Tt,it)=>it%2?Tt:Tt.toUpperCase()):Wt.toUpperCase():Kn=="lowercase"&&(Wt=Array.isArray(Wt)?Wt.map((Tt,it)=>it%2?Tt:Tt.toLowerCase()):Wt.toLowerCase());const je=Array.isArray(Wt)?Wt:Se==2?oB(Wt,In):aB(Wt,$n,Oi,In);if(Ot.setText(je),Ot.setFont($n),Ot.setRotation(A5(br(Ne,"layout","text-rotate",xe,j,ze))),typeof Ot.setKeepUpright=="function"){const Tt=br(Ne,"layout","text-keep-upright",xe,j,ze);Ot.setKeepUpright(Tt)}const de=br(Ne,"layout","text-anchor",xe,j,ze),re=_t||Se==1?"point":br(Ne,"layout","symbol-placement",xe,j,ze);let le;if(re==="line-center"?(Ot.setPlacement("line"),le="center"):Ot.setPlacement(re),re==="line"&&typeof Ot.setRepeat=="function"){const Tt=br(Ne,"layout","symbol-spacing",xe,j,ze);Ot.setRepeat(Tt*2)}Ot.setOverflow(re==="point");let pe=br(Ne,"paint","text-halo-width",xe,j,ze);const Te=br(Ne,"layout","text-offset",xe,j,ze),We=br(Ne,"paint","text-translate",xe,j,ze);let dt=0,Ye=0;if(re=="point"){le="center",de.indexOf("left")!==-1?(le="left",Ye=pe):de.indexOf("right")!==-1&&(le="right",Ye=-pe);const Tt=br(Ne,"layout","text-rotation-alignment",xe,j,ze);Ot.setRotateWithView(Tt=="map")}else Ot.setMaxAngle(A5(br(Ne,"layout","text-max-angle",xe,j,ze))*Wt.length/je.length),Ot.setRotateWithView(!1);Ot.setTextAlign(le);let De="middle";de.indexOf("bottom")==0?(De="bottom",dt=-pe-.5*(On-1)*Bn):de.indexOf("top")==0&&(De="top",dt=pe+.5*(On-1)*Bn),Ot.setTextBaseline(De);const Ze=br(Ne,"layout","text-justify",xe,j,ze);Ot.setJustify(Ze==="auto"?void 0:Ze),Ot.setOffsetX(Te[0]*Bn+Ye+We[0]),Ot.setOffsetY(Te[1]*Bn+dt+We[1]),J.setColor(vg(br(Ne,"paint","text-color",xe,j,ze),Ut)),Ot.setFill(J);const g=vg(br(Ne,"paint","text-halo-color",xe,j,ze),Ut);if(g&&pe>0){te.setColor(g),pe*=2;const Tt=.5*Bn;te.setWidth(pe<=Tt?pe:Tt),Ot.setStroke(te)}else Ot.setStroke(void 0);const mt=br(Ne,"layout","text-padding",xe,j,ze),ht=Ot.getPadding();mt!==ht[0]&&(ht[0]=mt,ht[1]=mt,ht[2]=mt,ht[3]=mt),He.setZIndex(bt)}}}if(st>-1)return oe.length=st+1,oe};return n.setStyle(ne),n.set("mapbox-layers",O),n.set("mapbox-source",Y),n.set("mapbox-featurestate",n.get("mapbox-featurestate")||{}),ne}class Pz{constructor(){this.dataProjection=void 0,this.defaultFeatureProjection=void 0,this.featureClass=b2,this.supportedMediaTypes=null}getReadOptions(e,t){if(t){let i=t.dataProjection?qs(t.dataProjection):this.readProjection(e);t.extent&&i&&i.getUnits()==="tile-pixels"&&(i=qs(i),i.setWorldExtent(t.extent)),t={dataProjection:i,featureProjection:t.featureProjection}}return this.adaptOptions(t)}adaptOptions(e){return Object.assign({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection,featureClass:this.featureClass},e)}getType(){return Co()}readFeature(e,t){return Co()}readFeatures(e,t){return Co()}readGeometry(e,t){return Co()}readProjection(e){return Co()}writeFeature(e,t){return Co()}writeFeatures(e,t){return Co()}writeGeometry(e,t){return Co()}}function M2(n,e,t){const i=t?qs(t.featureProjection):null,r=t?qs(t.dataProjection):null;let a=n;if(i&&r&&!Lg(i,r)){e&&(a=n.clone());const l=e?i:r,o=e?r:i;l.getUnits()==="tile-pixels"?a.transform(l,o):a.applyTransform(B_(l,o))}if(e&&t&&t.decimals!==void 0){const l=Math.pow(10,t.decimals),o=function(p){for(let C=0,M=p.length;C<M;++C)p[C]=Math.round(p[C]*l)/l;return p};a===n&&(a=n.clone()),a.applyTransform(o)}return a}const Mne={Point:q1,LineString:V1,Polygon:F0,MultiPoint:_b,MultiLineString:U_,MultiPolygon:L_};function wne(n,e,t){return Array.isArray(e[0])?(QF(n,0,e,t)||(n=n.slice(),$6(n,0,e,t)),n):(IO(n,0,e,t)||(n=n.slice(),i3(n,0,e,t)),n)}function Kz(n,e){const t=n.geometry;if(!t)return[];if(Array.isArray(t))return t.map(a=>Kz({...n,geometry:a})).flat();const i=t.type==="MultiPolygon"?"Polygon":t.type;if(i==="GeometryCollection"||i==="Circle")throw new Error("Unsupported geometry type: "+i);const r=t.layout.length;return M2(new zh(i,i==="Polygon"?wne(t.flatCoordinates,t.ends,r):t.flatCoordinates,t.ends?.flat(),r,n.properties||{},n.id).enableSimplifyTransformed(),!1,e)}function n8(n,e){if(!n)return null;if(Array.isArray(n)){const i=n.map(r=>n8(r,e));return new A3(i)}const t=Mne[n.type];return M2(new t(n.flatCoordinates,n.layout||"XY",n.ends),!1,e)}class Sne extends Pz{constructor(){super()}getType(){return"json"}readFeature(e,t){return this.readFeatureFromObject(tx(e),this.getReadOptions(e,t))}readFeatures(e,t){return this.readFeaturesFromObject(tx(e),this.getReadOptions(e,t))}readFeatureFromObject(e,t){return Co()}readFeaturesFromObject(e,
Line truncated
|
||||
`),"binary").toString("base64"):URL.createObjectURL(new Blob(i,{type:"text/javascript"})));return r.addEventListener("message",e),r}function Rie(n,e){const t=Vz(n.operation);let i=!1;return{postMessage:function(r){setTimeout(function(){i||e({data:{buffer:t(r),meta:r.meta}})},0)},terminate:function(){i=!0}}}class Pie extends Ab{constructor(e){super(),this.imageOps_=!!e.imageOps;let t;e.threads===0?t=0:this.imageOps_?t=1:t=e.threads||1;const i=new Array(t);if(t)for(let r=0;r<t;++r)i[r]=Die(e,this.onWorkerMessage_.bind(this,r));else i[0]=Rie(e,this.onWorkerMessage_.bind(this,0));this.workers_=i,this.queue_=[],this.maxQueueLength_=e.queue||1/0,this.running_=0,this.dataLookup_={},this.job_=null}process(e,t,i){this.enqueue_({inputs:e,meta:t,callback:i}),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,i=e.inputs[0].height,r=e.inputs.map(function(p){return p.data.buffer}),a=this.workers_.length;if(this.running_=a,a===1){this.workers_[0].postMessage({buffers:r,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},r);return}const l=e.inputs[0].data.length,o=4*Math.ceil(l/4/a);for(let p=0;p<a;++p){const C=p*o,M=[];for(let O=0,U=r.length;O<U;++O)M.push(r[O].slice(C,C+o));this.workers_[p].postMessage({buffers:M,meta:e.meta,imageOps:this.imageOps_,width:t,height:i},M)}}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 i,r;if(t===1)i=new Uint8ClampedArray(this.dataLookup_[0].buffer),r=this.dataLookup_[0].meta;else{const a=e.inputs[0].data.length;i=new Uint8ClampedArray(a),r=new Array(t);const l=4*Math.ceil(a/4/t);for(let o=0;o<t;++o){const p=this.dataLookup_[o].buffer,C=o*l;i.set(new Uint8ClampedArray(p),C),r[o]=this.dataLookup_[o].meta}}this.job_=null,this.dataLookup_={},e.callback(null,new ImageData(i,e.inputs[0].width,e.inputs[0].height),r),this.dispatch_()}disposeInternal(){for(let e=0;e<this.workers_.length;++e)this.workers_[e].terminate();this.workers_.length=0}}const aT={BEFOREOPERATIONS:"beforeoperations",AFTEROPERATIONS:"afteroperations"};class sT extends um{constructor(e,t,i){super(e),this.extent=t.extent,this.resolution=t.viewState.resolution/t.pixelRatio,this.data=i}}class $z extends Qz{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_=Lie(e.sources);const t=this.changed.bind(this);for(let i=0,r=this.layers_.length;i<r;++i)this.layers_[i].addEventListener(po.CHANGE,t);this.useResolutions_=e.resolutions!==null,this.tileQueue_=new mF(function(){return 1},this.processSources_.bind(this)),this.requestedFrameState_,this.renderedImageCanvas_=null,this.renderedRevision_,this.frameState_={animate:!1,coordinateToPixelTransform:Hd(),declutter:null,extent:null,index:0,layerIndex:0,layerStatesArray:Uie(this.layers_),pixelRatio:1,pixelToCoordinateTransform:Hd(),postRenderFunctions:[],size:[0,0],tileQueue:this.tileQueue_,time:Date.now(),usedTiles:{},viewState:{rotation:0},viewHints:[],wantedTiles:{},mapId:To(this),renderTargets:{}},this.setAttributions(function(i){const r=[];for(let a=0,l=e.sources.length;a<l;++a){const o=e.sources[a],p=o instanceof Xv?o:o.getSource();if(!p)continue;const C=p.getAttributions()?.(i);typeof C=="string"?r.push(C):C!==void 0&&r.push(...C)}return r}),e.operation!==void 0&&this.setOperation(e.operation,e.lib)}setOperation(e,t){this.processor_&&this.processor_.dispose(),this.processor_=new Pie({operation:e,imageOps:this.operationType_==="image",queue:1,lib:t,threads:this.threads_}),this.changed()}updateFrameState_(e,t,i){const r=Object.assign({},this.frameState_);r.viewState=Object.assign({},r.viewState);const a=If(e);r.size[0]=Math.ceil(us(e)/t),r.size[1]=Math.ceil(rc(e)/t),r.extent=[a[0]-r.size[0]*t/2,a[1]-r.size[1]*t/2,a[0]+r.size[0]*t/2,a[1]+r.size[1]*t/2],r.time=Date.now();const l=r.viewState;return l.center=a,l.projection=i,l.resolution=t,r}allSourcesReady_(){let e=!0,t;for(let i=0,r=this.layers_.length;i<r;++i)if(t=this.layers_[i].getSource(),!t||t.getState()!=="ready"){e=!1;break}return e}getImage(e,t,i,r){if(!this.allSourcesReady_())return null;this.tileQueue_.loadMoreTiles(16,16),t=this.findNearestResolution(t);const a=this.updateFrameState_(e,t,r);if(this.requestedFrameState_=a,this.renderedImageCanvas_){const l=this.renderedImageCanvas_.getResolution(),o=this.renderedImageCanvas_.getExtent();(t!==l||!L0(a.extent,o))&&(this.renderedImageCanvas_=null)}return(!this.renderedImageCanvas_||this.getRevision()!==this.renderedRevision_)&&this.processSources_(),a.animate&&requestAnimationFrame(this.changed.bind(this)),this.renderedImageCanvas_}processSources_(){const e=this.requestedFrameState_,t=th
Line truncated
|
||||
`);this.generateTileUrlFunction_?this.setTileUrlFunction(Zz(e,this.tileGrid),t):this.setKey(t)}tileUrlFunction(e,t,i){}}class Vie extends E2{constructor(e){super({attributions:e.attributions,cacheSize:e.cacheSize,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:$ie,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:Bz,this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}getGutterForProjection(e){return this.getProjection()&&e&&!Lg(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||Lg(t,e)))return this.tileGrid;const i=To(e);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=Yz(e)),this.tileGridForProjection[i]}createTile_(e,t,i,r,a,l){const o=[e,t,i],p=this.getTileCoordForTileUrlFunction(o,a),C=p?this.tileUrlFunction(p,r,a):void 0,M=new this.tileClass(o,C!==void 0?Pi.IDLE:Pi.EMPTY,C!==void 0?C:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return M.key=l,M.addEventListener(po.CHANGE,this.handleTileChange.bind(this)),M}getTile(e,t,i,r,a){const l=this.getProjection();if(!l||!a||Lg(l,a))return this.getTileInternal(e,t,i,r,l||a);const o=[e,t,i],p=this.getKey(),C=this.getTileGridForProjection(l),M=this.getTileGridForProjection(a),O=this.getTileCoordForTileUrlFunction(o,a),U=new Nz(l,C,a,M,o,O,this.getTilePixelRatio(r),this.getGutter(),(K,j,W,Y)=>this.getTileInternal(K,j,W,Y,l),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return U.key=p,U}getTileInternal(e,t,i,r,a){const l=this.getKey();return this.createTile_(e,t,i,r,a,l)}setRenderReprojectionEdges(e){this.renderReprojectionEdges_!=e&&(this.renderReprojectionEdges_=e,this.changed())}setTileGridForProjection(e,t){const i=qs(e);if(i){const r=To(i);r in this.tileGridForProjection||(this.tileGridForProjection[r]=t)}}}function $ie(n,e){n.getImage().src=e}class Xz extends Vie{constructor(e){if(super({attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,interpolate:e.interpolate,projection:qs("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)zie(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 i;try{i=JSON.parse(t.responseText)}catch{this.handleTileJSONError();return}this.handleTileJSONResponse(i)}else this.handleTileJSONError()}onXHRError_(e){this.handleTileJSONError()}getTileJSON(){return this.tileJSON_}handleTileJSONResponse(e){const t=qs("EPSG:4326"),i=this.getProjection();let r;if(e.bounds!==void 0){const C=fb(t,i);r=pX(e.bounds,C)}const a=S2(i),l=e.minzoom||0,o=e.maxzoom||22,p=r8({extent:a,maxZoom:o,minZoom:l,tileSize:this.tileSize_});if(this.tileGrid=p,this.tileUrlFunction=Zz(e.tiles,p),e.attribution&&!this.getAttributions()){const C=r!==void 0?r:a;this.setAttributions(function(M){return uu(C,M.extent)?[e.attribution]:null})}this.tileJSON_=e,this.setState("ready")}handleTileJSONError(){this.setState("error")}}class o8 extends E2{constructor(e){const t=e.projection||"EPSG:3857",i=e.extent||S2(t),r=e.tileGrid||r8({extent:i,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:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:Jz,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:Oz,this.tileGrids_={}}getOverlaps(){return this.overlaps_}getSourceTiles(e,t,i){if(i.getState()===Pi.IDLE){i.setState(Pi.LOADING);const r=i.wr
Line truncated
|
||||
Copyright (c) 2018 Jed Watson.
|
||||
Licensed under the MIT License (MIT), see
|
||||
http://jedwatson.github.io/classnames
|
||||
*/var AT;function hre(){return AT||(AT=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var a="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(a=r(a,i(o)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var o in a)e.call(a,o)&&a[o]&&(l=r(l,o));return l}function r(a,l){return l?a?a+" "+l:a+l:a}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(g5)),g5.exports}var dre=hre();const e0=AA(dre);var zC=O3();function fre(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Nt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const E2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xv(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function i8(n){return"nodeType"in n}function Hd(n){var e,t;return n?Xv(n)?n:i8(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function r8(n){const{Document:e}=Hd(n);return n instanceof e}function bb(n){return Xv(n)?!1:n instanceof Hd(n).HTMLElement}function aj(n){return n instanceof Hd(n).SVGElement}function Jv(n){return n?Xv(n)?n.document:i8(n)?r8(n)?n:bb(n)||aj(n)?n.ownerDocument:document:document:document}const t0=E2?Nt.useLayoutEffect:Nt.useEffect;function o8(n){const e=Nt.useRef(n);return t0(()=>{e.current=n}),Nt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function pre(){const n=Nt.useRef(null),e=Nt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Nt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function U_(n,e){e===void 0&&(e=[n]);const t=Nt.useRef(n);return t0(()=>{t.current!==n&&(t.current=n)},e),t}function xb(n,e){const t=Nt.useRef();return Nt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function p3(n){const e=o8(n),t=Nt.useRef(null),i=Nt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function uB(n){const e=Nt.useRef();return Nt.useEffect(()=>{e.current=n},[n]),e.current}let y5={};function Mb(n,e){return Nt.useMemo(()=>{if(e)return e;const t=y5[n]==null?0:y5[n]+1;return y5[n]=t,n+"-"+t},[n,e])}function sj(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((a,l)=>{const o=Object.entries(l);for(const[p,C]of o){const w=a[p];w!=null&&(a[p]=w+n*C)}return a},{...e})}}const _v=sj(1),m3=sj(-1);function mre(n){return"clientX"in n&&"clientY"in n}function a8(n){if(!n)return!1;const{KeyboardEvent:e}=Hd(n.target);return e&&n instanceof e}function gre(n){if(!n)return!1;const{TouchEvent:e}=Hd(n.target);return e&&n instanceof e}function AB(n){if(gre(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return mre(n)?{x:n.clientX,y:n.clientY}:null}const L_=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[L_.Translate.toString(n),L_.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),cT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function yre(n){return n.matches(cT)?n:n.querySelector(cT)}const vre={display:"none"};function Cre(n){let{id:e,value:t}=n;return ni.createElement("div",{id:e,style:vre},t)}function _re(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ni.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function bre(){const[n,e]=Nt.useState("");return{announce:Nt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const lj=Nt.createContext(null);function xre(n){const e=Nt.useContext(lj);Nt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function Mre(){const[n]=Nt.useState(()=>new Set),e=Nt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Nt.useCallback(i=>{let{type:r,event:a}=i;n.forEach(l=>{var o;return(o=l[r])==null?void 0:o.call(l,a)})},[n]),e]}const wre={draggable:`
|
||||
*/var cT;function fre(){return cT||(cT=1,function(n){(function(){var e={}.hasOwnProperty;function t(){for(var a="",l=0;l<arguments.length;l++){var o=arguments[l];o&&(a=r(a,i(o)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return t.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var o in a)e.call(a,o)&&a[o]&&(l=r(l,o));return l}function r(a,l){return l?a?a+" "+l:a+l:a}n.exports?(t.default=t,n.exports=t):window.classNames=t})()}(C5)),C5.exports}var pre=fre();const t0=cu(pre);var NC=I3();function mre(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Nt.useMemo(()=>i=>{e.forEach(r=>r(i))},e)}const B2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jv(n){const e=Object.prototype.toString.call(n);return e==="[object Window]"||e==="[object global]"}function a8(n){return"nodeType"in n}function $d(n){var e,t;return n?Jv(n)?n:a8(n)&&(e=(t=n.ownerDocument)==null?void 0:t.defaultView)!=null?e:window:window}function s8(n){const{Document:e}=$d(n);return n instanceof e}function Mb(n){return Jv(n)?!1:n instanceof $d(n).HTMLElement}function sj(n){return n instanceof $d(n).SVGElement}function eC(n){return n?Jv(n)?n.document:a8(n)?s8(n)?n:Mb(n)||sj(n)?n.ownerDocument:document:document:document}const n0=B2?Nt.useLayoutEffect:Nt.useEffect;function l8(n){const e=Nt.useRef(n);return n0(()=>{e.current=n}),Nt.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current==null?void 0:e.current(...i)},[])}function gre(){const n=Nt.useRef(null),e=Nt.useCallback((i,r)=>{n.current=setInterval(i,r)},[]),t=Nt.useCallback(()=>{n.current!==null&&(clearInterval(n.current),n.current=null)},[]);return[e,t]}function F_(n,e){e===void 0&&(e=[n]);const t=Nt.useRef(n);return n0(()=>{t.current!==n&&(t.current=n)},e),t}function wb(n,e){const t=Nt.useRef();return Nt.useMemo(()=>{const i=n(t.current);return t.current=i,i},[...e])}function m3(n){const e=l8(n),t=Nt.useRef(null),i=Nt.useCallback(r=>{r!==t.current&&e?.(r,t.current),t.current=r},[]);return[t,i]}function hB(n){const e=Nt.useRef();return Nt.useEffect(()=>{e.current=n},[n]),e.current}let _5={};function Sb(n,e){return Nt.useMemo(()=>{if(e)return e;const t=_5[n]==null?0:_5[n]+1;return _5[n]=t,n+"-"+t},[n,e])}function lj(n){return function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return i.reduce((a,l)=>{const o=Object.entries(l);for(const[p,C]of o){const M=a[p];M!=null&&(a[p]=M+n*C)}return a},{...e})}}const xv=lj(1),g3=lj(-1);function yre(n){return"clientX"in n&&"clientY"in n}function A8(n){if(!n)return!1;const{KeyboardEvent:e}=$d(n.target);return e&&n instanceof e}function vre(n){if(!n)return!1;const{TouchEvent:e}=$d(n.target);return e&&n instanceof e}function dB(n){if(vre(n)){if(n.touches&&n.touches.length){const{clientX:e,clientY:t}=n.touches[0];return{x:e,y:t}}else if(n.changedTouches&&n.changedTouches.length){const{clientX:e,clientY:t}=n.changedTouches[0];return{x:e,y:t}}}return yre(n)?{x:n.clientX,y:n.clientY}:null}const z_=Object.freeze({Translate:{toString(n){if(!n)return;const{x:e,y:t}=n;return"translate3d("+(e?Math.round(e):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(n){if(!n)return;const{scaleX:e,scaleY:t}=n;return"scaleX("+e+") scaleY("+t+")"}},Transform:{toString(n){if(n)return[z_.Translate.toString(n),z_.Scale.toString(n)].join(" ")}},Transition:{toString(n){let{property:e,duration:t,easing:i}=n;return e+" "+t+"ms "+i}}}),hT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Cre(n){return n.matches(hT)?n:n.querySelector(hT)}const _re={display:"none"};function bre(n){let{id:e,value:t}=n;return ni.createElement("div",{id:e,style:_re},t)}function xre(n){let{id:e,announcement:t,ariaLiveType:i="assertive"}=n;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ni.createElement("div",{id:e,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function Mre(){const[n,e]=Nt.useState("");return{announce:Nt.useCallback(i=>{i!=null&&e(i)},[]),announcement:n}}const Aj=Nt.createContext(null);function wre(n){const e=Nt.useContext(Aj);Nt.useEffect(()=>{if(!e)throw new Error("useDndMonitor must be used within a children of <DndContext>");return e(n)},[n,e])}function Sre(){const[n]=Nt.useState(()=>new Set),e=Nt.useCallback(i=>(n.add(i),()=>n.delete(i)),[n]);return[Nt.useCallback(i=>{let{type:r,event:a}=i;n.forEach(l=>{var o;return(o=l[r])==null?void 0:o.call(l,a)})},[n]),e]}const Ere={draggable:`
|
||||
To pick up a draggable item, press the space bar.
|
||||
While dragging, use the arrow keys to move the item.
|
||||
Press space again to drop the item in its new position, or press escape to cancel.
|
||||
`},Sre={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Ere(n){let{announcements:e=Sre,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=wre}=n;const{announce:a,announcement:l}=bre(),o=Mb("DndLiveRegion"),[p,C]=Nt.useState(!1);if(Nt.useEffect(()=>{C(!0)},[]),xre(Nt.useMemo(()=>({onDragStart(O){let{active:U}=O;a(e.onDragStart({active:U}))},onDragMove(O){let{active:U,over:K}=O;e.onDragMove&&a(e.onDragMove({active:U,over:K}))},onDragOver(O){let{active:U,over:K}=O;a(e.onDragOver({active:U,over:K}))},onDragEnd(O){let{active:U,over:K}=O;a(e.onDragEnd({active:U,over:K}))},onDragCancel(O){let{active:U,over:K}=O;a(e.onDragCancel({active:U,over:K}))}}),[a,e])),!p)return null;const w=ni.createElement(ni.Fragment,null,ni.createElement(Cre,{id:i,value:r.draggable}),ni.createElement(_re,{id:o,announcement:l}));return t?zC.createPortal(w,t):w}var _c;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(_c||(_c={}));function g3(){}function Bre(n,e){return Nt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Ore(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Nt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const om=Object.freeze({x:0,y:0});function Ire(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Tre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function kre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Dre(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function hT(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Rre=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=hT(e,e.left,e.top),a=[];for(const l of i){const{id:o}=l,p=t.get(o);if(p){const C=Ire(hT(p),r);a.push({id:o,data:{droppableContainer:l,value:C}})}}return a.sort(Tre)};function Pre(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),a=Math.min(e.top+e.height,n.top+n.height),l=r-i,o=a-t;if(i<r&&t<a){const p=e.width*e.height,C=n.width*n.height,w=l*o,O=w/(p+C-w);return Number(O.toFixed(4))}return 0}const Kre=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const a of i){const{id:l}=a,o=t.get(l);if(o){const p=Pre(o,e);p>0&&r.push({id:l,data:{droppableContainer:a,value:p}})}}return r.sort(kre)};function Ure(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function uj(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:om}function Lre(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return r.reduce((l,o)=>({...l,top:l.top+n*o.y,bottom:l.bottom+n*o.y,left:l.left+n*o.x,right:l.right+n*o.x}),{...t})}}const Fre=Lre(1);function zre(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function jre(n,e,t){const i=zre(e);if(!i)return n;const{scaleX:r,scaleY:a,x:l,y:o}=i,p=n.left-l-(1-r)*parseFloat(t),C=n.top-o-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),w=r?n.width/r:n.width,O=a?n.height/a:n.height;return{width:w,height:O,top:C,right:p+w,bottom:C+O,left:p}}const Nre={ignoreTransform:!1};function eC(n,e){e===void 0&&(e=Nre);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:C,transformOrigin:w}=Hd(n).getComputedStyle(n);C&&(t=jre(t,C,w))}const{top:i,left:r,width:a,height:l,bottom:o,right:p}=t;return{top:i,left:r,width:a,height:l,bottom:o,right:p}}function dT(n){return eC(n,{ignoreTransform:!0})}function Gre(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Wre(n,e){return e===void 0&&(e=Hd(n).getComputedStyle(n)),e.position==="fixed"}function Qre(n,e){e===void 0&&(e=Hd(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=e[r];return typeof a=="string"?t.test(a):!1})}function s8(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(r8(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!bb(r)||aj(r)||t.includes(r))return t;const a=Hd(n).getComputedStyle(r);return r!==n&&Qre(
Line truncated
|
||||
`},Bre={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function Ore(n){let{announcements:e=Bre,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=Ere}=n;const{announce:a,announcement:l}=Mre(),o=Sb("DndLiveRegion"),[p,C]=Nt.useState(!1);if(Nt.useEffect(()=>{C(!0)},[]),wre(Nt.useMemo(()=>({onDragStart(O){let{active:U}=O;a(e.onDragStart({active:U}))},onDragMove(O){let{active:U,over:K}=O;e.onDragMove&&a(e.onDragMove({active:U,over:K}))},onDragOver(O){let{active:U,over:K}=O;a(e.onDragOver({active:U,over:K}))},onDragEnd(O){let{active:U,over:K}=O;a(e.onDragEnd({active:U,over:K}))},onDragCancel(O){let{active:U,over:K}=O;a(e.onDragCancel({active:U,over:K}))}}),[a,e])),!p)return null;const M=ni.createElement(ni.Fragment,null,ni.createElement(bre,{id:i,value:r.draggable}),ni.createElement(xre,{id:o,announcement:l}));return t?NC.createPortal(M,t):M}var bc;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(bc||(bc={}));function y3(){}function Ire(n,e){return Nt.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function Tre(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return Nt.useMemo(()=>[...e].filter(i=>i!=null),[...e])}const am=Object.freeze({x:0,y:0});function kre(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function Dre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return t-i}function Rre(n,e){let{data:{value:t}}=n,{data:{value:i}}=e;return i-t}function Pre(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function dT(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const Kre=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=dT(e,e.left,e.top),a=[];for(const l of i){const{id:o}=l,p=t.get(o);if(p){const C=kre(dT(p),r);a.push({id:o,data:{droppableContainer:l,value:C}})}}return a.sort(Dre)};function Ure(n,e){const t=Math.max(e.top,n.top),i=Math.max(e.left,n.left),r=Math.min(e.left+e.width,n.left+n.width),a=Math.min(e.top+e.height,n.top+n.height),l=r-i,o=a-t;if(i<r&&t<a){const p=e.width*e.height,C=n.width*n.height,M=l*o,O=M/(p+C-M);return Number(O.toFixed(4))}return 0}const Lre=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:i}=n;const r=[];for(const a of i){const{id:l}=a,o=t.get(l);if(o){const p=Ure(o,e);p>0&&r.push({id:l,data:{droppableContainer:a,value:p}})}}return r.sort(Rre)};function Fre(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function uj(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:am}function zre(n){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return r.reduce((l,o)=>({...l,top:l.top+n*o.y,bottom:l.bottom+n*o.y,left:l.left+n*o.x,right:l.right+n*o.x}),{...t})}}const jre=zre(1);function Nre(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function Gre(n,e,t){const i=Nre(e);if(!i)return n;const{scaleX:r,scaleY:a,x:l,y:o}=i,p=n.left-l-(1-r)*parseFloat(t),C=n.top-o-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),M=r?n.width/r:n.width,O=a?n.height/a:n.height;return{width:M,height:O,top:C,right:p+M,bottom:C+O,left:p}}const Wre={ignoreTransform:!1};function tC(n,e){e===void 0&&(e=Wre);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:C,transformOrigin:M}=$d(n).getComputedStyle(n);C&&(t=Gre(t,C,M))}const{top:i,left:r,width:a,height:l,bottom:o,right:p}=t;return{top:i,left:r,width:a,height:l,bottom:o,right:p}}function fT(n){return tC(n,{ignoreTransform:!0})}function Qre(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function Yre(n,e){return e===void 0&&(e=$d(n).getComputedStyle(n)),e.position==="fixed"}function qre(n,e){e===void 0&&(e=$d(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=e[r];return typeof a=="string"?t.test(a):!1})}function u8(n,e){const t=[];function i(r){if(e!=null&&t.length>=e||!r)return t;if(s8(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!Mb(r)||sj(r)||t.includes(r))return t;const a=$d(n).getComputedStyle(r);return r!==n&&qre(
Line truncated
|
||||
* tabbable 6.2.0
|
||||
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
||||
*/var Ej=["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])"],C3=Ej.join(","),Bj=typeof Element>"u",V1=Bj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,_3=!Bj&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},b3=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),a=r===""||r==="true",l=a||t&&e&&n(e.parentNode);return l},sae=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},Oj=function(e,t,i){if(b3(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(C3));return t&&V1.call(e,C3)&&r.unshift(e),r=r.filter(i),r},Ij=function n(e,t,i){for(var r=[],a=Array.from(e);a.length;){var l=a.shift();if(!b3(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),p=o.length?o:l.children,C=n(p,!0,i);i.flatten?r.push.apply(r,C):r.push({scopeParent:l,candidates:C})}else{var w=V1.call(l,C3);w&&i.filter(l)&&(t||!e.includes(l))&&r.push(l);var O=l.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(l),U=!b3(O,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(l));if(O&&U){var K=n(O===!0?l.children:O.children,!0,i);i.flatten?r.push.apply(r,K):r.push({scopeParent:l,candidates:K})}else a.unshift.apply(a,l.children)}}return r},Tj=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},vg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||sae(e))&&!Tj(e)?0:e.tabIndex},lae=function(e,t){var i=vg(e);return i<0&&t&&!Tj(e)?0:i},uae=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},kj=function(e){return e.tagName==="INPUT"},Aae=function(e){return kj(e)&&e.type==="hidden"},cae=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},hae=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},dae=function(e){if(!e.name)return!0;var t=e.form||_3(e),i=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(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 a=hae(r,e.form);return!a||a===e},fae=function(e){return kj(e)&&e.type==="radio"},pae=function(e){return fae(e)&&!dae(e)},mae=function(e){var t,i=e&&_3(e),r=(t=i)===null||t===void 0?void 0:t.host,a=!1;if(i&&i!==e){var l,o,p;for(a=!!((l=r)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(r)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!a&&r;){var C,w,O;i=_3(r),r=(C=i)===null||C===void 0?void 0:C.host,a=!!((w=r)!==null&&w!==void 0&&(O=w.ownerDocument)!==null&&O!==void 0&&O.contains(r))}}return a},ST=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},gae=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=V1.call(e,"details>summary:first-of-type"),l=a?e.parentElement:e;if(V1.call(l,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var o=e;e;){var p=e.parentElement,C=_3(e);if(p&&!p.shadowRoot&&r(p)===!0)return ST(e);e.assignedSlot?e=e.assignedSlot:!p&&C!==e.ownerDocument?e=C.host:e=p}e=o}if(mae(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return ST(e);return!1},yae=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return V1.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},x3=function(e,t){return!(t.disabled||b3(t)||Aae(t)||gae(t,e)||cae(t)||yae(t))},fB=function(e,t){return!(pae(t)||vg(t)<0||!x3(e,t))},vae=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Cae=function n(e){var t=[],i=[];return e.forEach(function(r,a){var l=!!r.scopeParent,o=l?r.scopeParent:r,p=lae(o,l),C=l?n(r.candidates):o;p===0?l?t.push.apply(t,C):t.push(o):i.push({documentOrder:a,tabIndex:p,item:r,isScope:l,content:C})}),i.sort(uae).reduce(function(r,a){return a.isScope?r.push.apply(r,a.content):r.push(a.content),rLine truncated
|
||||
*/var Bj=["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])"],_3=Bj.join(","),Oj=typeof Element>"u",$1=Oj?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,b3=!Oj&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},x3=function n(e,t){var i;t===void 0&&(t=!0);var r=e==null||(i=e.getAttribute)===null||i===void 0?void 0:i.call(e,"inert"),a=r===""||r==="true",l=a||t&&e&&n(e.parentNode);return l},Aae=function(e){var t,i=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return i===""||i==="true"},Ij=function(e,t,i){if(x3(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(_3));return t&&$1.call(e,_3)&&r.unshift(e),r=r.filter(i),r},Tj=function n(e,t,i){for(var r=[],a=Array.from(e);a.length;){var l=a.shift();if(!x3(l,!1))if(l.tagName==="SLOT"){var o=l.assignedElements(),p=o.length?o:l.children,C=n(p,!0,i);i.flatten?r.push.apply(r,C):r.push({scopeParent:l,candidates:C})}else{var M=$1.call(l,_3);M&&i.filter(l)&&(t||!e.includes(l))&&r.push(l);var O=l.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(l),U=!x3(O,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(l));if(O&&U){var K=n(O===!0?l.children:O.children,!0,i);i.flatten?r.push.apply(r,K):r.push({scopeParent:l,candidates:K})}else a.unshift.apply(a,l.children)}}return r},kj=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},bg=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Aae(e))&&!kj(e)?0:e.tabIndex},uae=function(e,t){var i=bg(e);return i<0&&t&&!kj(e)?0:i},cae=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Dj=function(e){return e.tagName==="INPUT"},hae=function(e){return Dj(e)&&e.type==="hidden"},dae=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(i){return i.tagName==="SUMMARY"});return t},fae=function(e,t){for(var i=0;i<e.length;i++)if(e[i].checked&&e[i].form===t)return e[i]},pae=function(e){if(!e.name)return!0;var t=e.form||b3(e),i=function(o){return t.querySelectorAll('input[type="radio"][name="'+o+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=i(window.CSS.escape(e.name));else try{r=i(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 a=fae(r,e.form);return!a||a===e},mae=function(e){return Dj(e)&&e.type==="radio"},gae=function(e){return mae(e)&&!pae(e)},yae=function(e){var t,i=e&&b3(e),r=(t=i)===null||t===void 0?void 0:t.host,a=!1;if(i&&i!==e){var l,o,p;for(a=!!((l=r)!==null&&l!==void 0&&(o=l.ownerDocument)!==null&&o!==void 0&&o.contains(r)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!a&&r;){var C,M,O;i=b3(r),r=(C=i)===null||C===void 0?void 0:C.host,a=!!((M=r)!==null&&M!==void 0&&(O=M.ownerDocument)!==null&&O!==void 0&&O.contains(r))}}return a},ET=function(e){var t=e.getBoundingClientRect(),i=t.width,r=t.height;return i===0&&r===0},vae=function(e,t){var i=t.displayCheck,r=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var a=$1.call(e,"details>summary:first-of-type"),l=a?e.parentElement:e;if($1.call(l,"details:not([open]) *"))return!0;if(!i||i==="full"||i==="legacy-full"){if(typeof r=="function"){for(var o=e;e;){var p=e.parentElement,C=b3(e);if(p&&!p.shadowRoot&&r(p)===!0)return ET(e);e.assignedSlot?e=e.assignedSlot:!p&&C!==e.ownerDocument?e=C.host:e=p}e=o}if(yae(e))return!e.getClientRects().length;if(i!=="legacy-full")return!0}else if(i==="non-zero-area")return ET(e);return!1},Cae=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var i=0;i<t.children.length;i++){var r=t.children.item(i);if(r.tagName==="LEGEND")return $1.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},M3=function(e,t){return!(t.disabled||x3(t)||hae(t)||vae(t,e)||dae(t)||Cae(t))},gB=function(e,t){return!(gae(t)||bg(t)<0||!M3(e,t))},_ae=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},bae=function n(e){var t=[],i=[];return e.forEach(function(r,a){var l=!!r.scopeParent,o=l?r.scopeParent:r,p=uae(o,l),C=l?n(r.candidates):o;p===0?l?t.push.apply(t,C):t.push(o):i.push({documentOrder:a,tabIndex:p,item:r,isScope:l,content:C})}),i.sort(cae).reduce(function(r,a){return a.isScope?r.push.apply(r,a.content):r.push(a.content),rLine truncated
|
||||
* focus-trap 7.5.4
|
||||
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
||||
*/function ET(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function BT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ET(Object(t),!0).forEach(function(i){xae(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ET(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function xae(n,e,t){return e=wae(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Mae(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function wae(n){var e=Mae(n,"string");return typeof e=="symbol"?e:String(e)}var OT={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},Sae=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Eae=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},s_=function(e){return e?.key==="Tab"||e?.keyCode===9},Bae=function(e){return s_(e)&&!e.shiftKey},Oae=function(e){return s_(e)&&e.shiftKey},IT=function(e){return setTimeout(e,0)},TT=function(e,t){var i=-1;return e.every(function(r,a){return t(r)?(i=a,!1):!0}),i},wC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},ox=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Iae=[],Tae=function(e,t){var i=t?.document||document,r=t?.trapStack||Iae,a=BT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Bae,isKeyBackward:Oae},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,p=function(Oe,Se,Ve){return Oe&&Oe[Se]!==void 0?Oe[Se]:a[Ve||Se]},C=function(Oe,Se){var Ve=typeof Se?.composedPath=="function"?Se.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var ze=xe.container,st=xe.tabbableNodes;return ze.contains(Oe)||Ve?.includes(ze)||st.find(function(Ct){return Ct===Oe})})},w=function(Oe){var Se=a[Oe];if(typeof Se=="function"){for(var Ve=arguments.length,xe=new Array(Ve>1?Ve-1:0),ze=1;ze<Ve;ze++)xe[ze-1]=arguments[ze];Se=Se.apply(void 0,xe)}if(Se===!0&&(Se=void 0),!Se){if(Se===void 0||Se===!1)return Se;throw new Error("`".concat(Oe,"` was specified but was not a node, or did not return a node"))}var st=Se;if(typeof Se=="string"&&(st=i.querySelector(Se),!st))throw new Error("`".concat(Oe,"` as selector refers to no known node"));return st},O=function(){var Oe=w("initialFocus");if(Oe===!1)return!1;if(Oe===void 0||!Bx(Oe,a.tabbableOptions))if(C(i.activeElement)>=0)Oe=i.activeElement;else{var Se=l.tabbableGroups[0],Ve=Se&&Se.firstTabbableNode;Oe=Ve||w("fallbackFocus")}if(!Oe)throw new Error("Your focus-trap needs to have at least one focusable element");return Oe},U=function(){if(l.containerGroups=l.containers.map(function(Oe){var Se=Dj(Oe,a.tabbableOptions),Ve=Rj(Oe,a.tabbableOptions),xe=Se.length>0?Se[0]:void 0,ze=Se.length>0?Se[Se.length-1]:void 0,st=Ve.find(function(be){return x1(be)}),Ct=Ve.slice().reverse().find(function(be){return x1(be)}),nt=!!Se.find(function(be){return vg(be)>0});return{container:Oe,tabbableNodes:Se,focusableNodes:Ve,posTabIndexesFound:nt,firstTabbableNode:xe,lastTabbableNode:ze,firstDomTabbableNode:st,lastDomTabbableNode:Ct,nextTabbableNode:function(Ne){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,lt=Se.indexOf(Ne);return lt<0?tt?Ve.slice(Ve.indexOf(Ne)+1).find(function(kt){return x1(kt)}):Ve.slice(0,Ve.indexOf(Ne)).reverse().find(function(kt){return x1(kt)}):Se[lt+(tt?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(Oe){return Oe.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!w("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(Oe){return Oe.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.")},K=function we(Oe){var Se=Oe.activeElement;if(Se)return Se.shadowRoot&&Se.shadowRoot.activeElement!==null?we(Se.shadowRoot):Se},j=function we(Oe){if(Oe!==!1&&Oe!==K(document)){if(!Oe||!Oe.focus)Line truncated
|
||||
*/function BT(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,i)}return t}function OT(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?BT(Object(t),!0).forEach(function(i){wae(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):BT(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function wae(n,e,t){return e=Eae(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Sae(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var i=t.call(n,e);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function Eae(n){var e=Sae(n,"string");return typeof e=="symbol"?e:String(e)}var IT={activateTrap:function(e,t){if(e.length>0){var i=e[e.length-1];i!==t&&i.pause()}var r=e.indexOf(t);r===-1||e.splice(r,1),e.push(t)},deactivateTrap:function(e,t){var i=e.indexOf(t);i!==-1&&e.splice(i,1),e.length>0&&e[e.length-1].unpause()}},Bae=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Oae=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},A_=function(e){return e?.key==="Tab"||e?.keyCode===9},Iae=function(e){return A_(e)&&!e.shiftKey},Tae=function(e){return A_(e)&&e.shiftKey},TT=function(e){return setTimeout(e,0)},kT=function(e,t){var i=-1;return e.every(function(r,a){return t(r)?(i=a,!1):!0}),i},SC=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r<t;r++)i[r-1]=arguments[r];return typeof e=="function"?e.apply(void 0,i):e},sx=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},kae=[],Dae=function(e,t){var i=t?.document||document,r=t?.trapStack||kae,a=OT({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Iae,isKeyBackward:Tae},t),l={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},o,p=function(Ie,Se,Ve){return Ie&&Ie[Se]!==void 0?Ie[Se]:a[Ve||Se]},C=function(Ie,Se){var Ve=typeof Se?.composedPath=="function"?Se.composedPath():void 0;return l.containerGroups.findIndex(function(xe){var ze=xe.container,st=xe.tabbableNodes;return ze.contains(Ie)||Ve?.includes(ze)||st.find(function(Ct){return Ct===Ie})})},M=function(Ie){var Se=a[Ie];if(typeof Se=="function"){for(var Ve=arguments.length,xe=new Array(Ve>1?Ve-1:0),ze=1;ze<Ve;ze++)xe[ze-1]=arguments[ze];Se=Se.apply(void 0,xe)}if(Se===!0&&(Se=void 0),!Se){if(Se===void 0||Se===!1)return Se;throw new Error("`".concat(Ie,"` was specified but was not a node, or did not return a node"))}var st=Se;if(typeof Se=="string"&&(st=i.querySelector(Se),!st))throw new Error("`".concat(Ie,"` as selector refers to no known node"));return st},O=function(){var Ie=M("initialFocus");if(Ie===!1)return!1;if(Ie===void 0||!Ox(Ie,a.tabbableOptions))if(C(i.activeElement)>=0)Ie=i.activeElement;else{var Se=l.tabbableGroups[0],Ve=Se&&Se.firstTabbableNode;Ie=Ve||M("fallbackFocus")}if(!Ie)throw new Error("Your focus-trap needs to have at least one focusable element");return Ie},U=function(){if(l.containerGroups=l.containers.map(function(Ie){var Se=Rj(Ie,a.tabbableOptions),Ve=Pj(Ie,a.tabbableOptions),xe=Se.length>0?Se[0]:void 0,ze=Se.length>0?Se[Se.length-1]:void 0,st=Ve.find(function(be){return M1(be)}),Ct=Ve.slice().reverse().find(function(be){return M1(be)}),nt=!!Se.find(function(be){return bg(be)>0});return{container:Ie,tabbableNodes:Se,focusableNodes:Ve,posTabIndexesFound:nt,firstTabbableNode:xe,lastTabbableNode:ze,firstDomTabbableNode:st,lastDomTabbableNode:Ct,nextTabbableNode:function(Ne){var tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,lt=Se.indexOf(Ne);return lt<0?tt?Ve.slice(Ve.indexOf(Ne)+1).find(function(kt){return M1(kt)}):Ve.slice(0,Ve.indexOf(Ne)).reverse().find(function(kt){return M1(kt)}):Se[lt+(tt?1:-1)]}}}),l.tabbableGroups=l.containerGroups.filter(function(Ie){return Ie.tabbableNodes.length>0}),l.tabbableGroups.length<=0&&!M("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(Ie){return Ie.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.")},K=function we(Ie){var Se=Ie.activeElement;if(Se)return Se.shadowRoot&&Se.shadowRoot.activeElement!==null?we(Se.shadowRoot):Se},j=function we(Ie){if(Ie!==!1&&Ie!==K(document)){if(!Ie||!Ie.focus)Line truncated
|
||||
* @license React
|
||||
* react-is.production.min.js
|
||||
*
|
||||
@@ -874,59 +874,59 @@ ${Ue.shaderPreludeCode.vertexSource}`,define:Ue.shaderDefine},defaultProjectionD
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/var KT;function Gae(){if(KT)return Ws;KT=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function W(Y){if(typeof Y=="object"&&Y!==null){var te=Y.$$typeof;switch(te){case n:switch(Y=Y.type,Y){case t:case r:case i:case C:case w:return Y;default:switch(Y=Y&&Y.$$typeof,Y){case o:case l:case p:case U:case O:case a:return Y;default:return te}}case e:return te}}}return Ws.ContextConsumer=l,Ws.ContextProvider=a,Ws.Element=n,Ws.ForwardRef=p,Ws.Fragment=t,Ws.Lazy=U,Ws.Memo=O,Ws.Portal=e,Ws.Profiler=r,Ws.StrictMode=i,Ws.Suspense=C,Ws.SuspenseList=w,Ws.isAsyncMode=function(){return!1},Ws.isConcurrentMode=function(){return!1},Ws.isContextConsumer=function(Y){return W(Y)===l},Ws.isContextProvider=function(Y){return W(Y)===a},Ws.isElement=function(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===n},Ws.isForwardRef=function(Y){return W(Y)===p},Ws.isFragment=function(Y){return W(Y)===t},Ws.isLazy=function(Y){return W(Y)===U},Ws.isMemo=function(Y){return W(Y)===O},Ws.isPortal=function(Y){return W(Y)===e},Ws.isProfiler=function(Y){return W(Y)===r},Ws.isStrictMode=function(Y){return W(Y)===i},Ws.isSuspense=function(Y){return W(Y)===C},Ws.isSuspenseList=function(Y){return W(Y)===w},Ws.isValidElementType=function(Y){return typeof Y=="string"||typeof Y=="function"||Y===t||Y===r||Y===i||Y===C||Y===w||Y===K||typeof Y=="object"&&Y!==null&&(Y.$$typeof===U||Y.$$typeof===O||Y.$$typeof===a||Y.$$typeof===l||Y.$$typeof===p||Y.$$typeof===j||Y.getModuleId!==void 0)},Ws.typeOf=W,Ws}var UT;function Wae(){return UT||(UT=1,O5.exports=Gae()),O5.exports}Wae();const LT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,FT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",sx=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return FT(t.overflowY,e)||FT(t.overflowX,e)||(i=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},lx=(n,e,t,i,r,a,l,o)=>a<n&&l>e||a>n&&l<e?0:a<=n&&o<=t||l>=e&&o>=t?a-n-i:l>e&&o<t||a<n&&o>t?l-e+r:0,Qae=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Yae=(n,e)=>{var t,i,r,a;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:p}=e,C=typeof o=="function"?o:Se=>Se!==o;if(!LT(n))throw new TypeError("Invalid target");const w=document.scrollingElement||document.documentElement,O=[];let U=n;for(;LT(U)&&C(U);){if(U=Qae(U),U===w){O.push(U);break}U!=null&&U===document.body&&sx(U)&&!sx(document.documentElement)||U!=null&&sx(U,p)&&O.push(U)}const K=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,j=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:W,scrollY:Y}=window,{height:te,width:J,top:oe,right:ne,bottom:$,left:ae}=n.getBoundingClientRect(),{top:G,right:ce,left:ge}=(Se=>{const Ve=window.getComputedStyle(Se);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(n);let ye=oe-G,we=l==="center"?ae+J/2-ge+ce:l==="end"?ne+ce:ae-ge;const Oe=[];for(let Se=0;Se<O.length;Se++){const Ve=O[Se],{height:xe,width:ze,top:st,right:Ct,bottom:nt,left:be}=Ve.getBoundingClientRect();if(oe>=0&&ae>=0&&$<=j&&ne<=K&&(Ve===w&&!sx(Ve)||oe>=st&&$<=nt&&ae>=be&&ne<=Ct))return Oe;const Ne=getComputedStyle(Ve),tt=parseInt(Ne.borderLeftWidth,10),lt=parseInt(Ne.borderTopWidth,10),kt=parseInt(Ne.borderRightWidth,10),gt=parseInt(Ne.borderBottomWidth,10);let St=0,Ut=0;const Fe="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-tt-kt:0,Ke="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-lt-gt:0,Re="offsetWidth"in Ve?Ve.offsetWidth===0?0:ze/Ve.offsetWidth:0,He="offsetHeight"in Ve?Ve.offsetHeight===0?0:xe/Ve.offsetHeight:0;if(w===Ve)St=lx(Y,Y+j,j,lt,gt,Y+ye,Y+ye+te,te),Ut=l==="start"?we:l==="center"?we-K/2:l==="end"?we-K:lx(W,W+K,K,tt,kt,W+we,W+we+J,J),St=Math.max(0,St+Y),Ut=Math.max(0,Ut+W);else{St=lx(st,nt,xe,lt,gt+Ke,ye,ye+te,te),Ut=l==="start"?we-be-tt:l==="center"?we-(be+ze/2)+Fe/2:l==="end"?we-Ct+kt+Fe:lx(be,Ct,ze,tt,kt+Fe,we,we+J,J);const{scrollLeft:bt,scrollTop:_t}=Ve;St=He===0?0:Math.max(0,Math.min(_t+St/He,Ve.scrollHeight-xe/He+Ke)),Ut=Re===0?0:Math.max(0,Math.min(bt+Ut/Re,Ve.scrollWidth-ze/Re+Fe)),ye+=_t-St,we+=bt-Ut}Oe.push({el:Ve,top:St,left:Ut})}return Oe};var Fv=function(){return Fv=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i]Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zse(){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 Xse=R2(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,a=e.allowMultipleExpanded,l=a===void 0?!1:a,o=e.allowZeroExpanded,p=o===void 0?!1:o;D2(this,n),tu(this,"expanded",void 0),tu(this,"allowMultipleExpanded",void 0),tu(this,"allowZeroExpanded",void 0),tu(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var w=t.isItemExpanded(C);return w?t.augment({expanded:t.expanded.filter(function(O){return O!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(Qse(t.expanded),[C]):[C]})}),tu(this,"isItemDisabled",function(C){var w=t.isItemExpanded(C),O=t.expanded.length===1;return!!(w&&!t.allowZeroExpanded&&O)}),tu(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),tu(this,"getPanelAttributes",function(C,w){var O=w??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:O?void 0:!0}}),tu(this,"getHeadingAttributes",function(){return{role:"heading"}}),tu(this,"getButtonAttributes",function(C,w){var O=w??t.isItemExpanded(C),U=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":U,"aria-expanded":O,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),tu(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),tu(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),tu(this,"augment",function(C){return new n(vB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=r,this.allowMultipleExpanded=l,this.allowZeroExpanded=p}),rN=Nt.createContext(null),oN=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tu(Vp(i),"state",new Xse({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),tu(Vp(i),"toggleExpanded",function(o){i.setState(function(p){return p.toggleExpanded(o)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),tu(Vp(i),"isItemDisabled",function(o){return i.state.isItemDisabled(o)}),tu(Vp(i),"isItemExpanded",function(o){return i.state.isItemExpanded(o)}),tu(Vp(i),"getPanelAttributes",function(o,p){return i.state.getPanelAttributes(o,p)}),tu(Vp(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),tu(Vp(i),"getButtonAttributes",function(o,p){return i.state.getButtonAttributes(o,p)}),i}return R2(t,[{key:"render",value:function(){var r=this.state,a=r.allowZeroExpanded,l=r.allowMultipleExpanded;return Nt.createElement(rN.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:a,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Nt.PureComponent);tu(oN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var aN=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tu(Vp(i),"renderChildren",function(o){return o?i.props.children(o):null}),i}return R2(t,[{key:"render",value:function(){return Nt.createElement(rN.Consumer,null,this.renderChildren)}}]),t}(Nt.PureComponent),Jse=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],ele=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,a=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,p=P2(e,Jse);return Nt.createElement(oN,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:a,onChange:l},Nt.createElement("div",n0({"data-accordion-component":"Accordion",className:i},p)))},bB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(bB||(bB={}));var sN=bB,N5=0;function tle(){var n=N5;return N5=N5+1,"raa-".concat(n)}var nle=Nt.useId||tle,ile=/[\u0009\u000a\u000c\u000d\u0020]/g;function j_(n){return n===""||ile.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var lN=Nt.createContext(null),rle=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,a=e.dangerouslySetExpanded,l=function(){r.toggleExpanded(i)},o=function(C){var w=a??C.isItemExpanded(i),O=C.isItemDisabled(i),U=C.getPanelAttributes(i,a),K=C.getHeadingAttributes(i),j=C.getButtonAttributes(i,a);return Nt.createElement(lN.Provider,{value:{uuid:i,expanded:w,disabled:O,toggleExpanded:l,panelAttributes:U,headingAttributes:K,buttonAttributes:j}},t)};return Nt.createElement(aN,nu
Line truncated
|
||||
*/var UT;function Qae(){if(UT)return Ys;UT=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),o=Symbol.for("react.server_context"),p=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),j;j=Symbol.for("react.module.reference");function W(Y){if(typeof Y=="object"&&Y!==null){var te=Y.$$typeof;switch(te){case n:switch(Y=Y.type,Y){case t:case r:case i:case C:case M:return Y;default:switch(Y=Y&&Y.$$typeof,Y){case o:case l:case p:case U:case O:case a:return Y;default:return te}}case e:return te}}}return Ys.ContextConsumer=l,Ys.ContextProvider=a,Ys.Element=n,Ys.ForwardRef=p,Ys.Fragment=t,Ys.Lazy=U,Ys.Memo=O,Ys.Portal=e,Ys.Profiler=r,Ys.StrictMode=i,Ys.Suspense=C,Ys.SuspenseList=M,Ys.isAsyncMode=function(){return!1},Ys.isConcurrentMode=function(){return!1},Ys.isContextConsumer=function(Y){return W(Y)===l},Ys.isContextProvider=function(Y){return W(Y)===a},Ys.isElement=function(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===n},Ys.isForwardRef=function(Y){return W(Y)===p},Ys.isFragment=function(Y){return W(Y)===t},Ys.isLazy=function(Y){return W(Y)===U},Ys.isMemo=function(Y){return W(Y)===O},Ys.isPortal=function(Y){return W(Y)===e},Ys.isProfiler=function(Y){return W(Y)===r},Ys.isStrictMode=function(Y){return W(Y)===i},Ys.isSuspense=function(Y){return W(Y)===C},Ys.isSuspenseList=function(Y){return W(Y)===M},Ys.isValidElementType=function(Y){return typeof Y=="string"||typeof Y=="function"||Y===t||Y===r||Y===i||Y===C||Y===M||Y===K||typeof Y=="object"&&Y!==null&&(Y.$$typeof===U||Y.$$typeof===O||Y.$$typeof===a||Y.$$typeof===l||Y.$$typeof===p||Y.$$typeof===j||Y.getModuleId!==void 0)},Ys.typeOf=W,Ys}var LT;function Yae(){return LT||(LT=1,k5.exports=Qae()),k5.exports}Yae();const FT=n=>typeof n=="object"&&n!=null&&n.nodeType===1,zT=(n,e)=>(!e||n!=="hidden")&&n!=="visible"&&n!=="clip",Ax=(n,e)=>{if(n.clientHeight<n.scrollHeight||n.clientWidth<n.scrollWidth){const t=getComputedStyle(n,null);return zT(t.overflowY,e)||zT(t.overflowX,e)||(i=>{const r=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(i);return!!r&&(r.clientHeight<i.scrollHeight||r.clientWidth<i.scrollWidth)})(n)}return!1},ux=(n,e,t,i,r,a,l,o)=>a<n&&l>e||a>n&&l<e?0:a<=n&&o<=t||l>=e&&o>=t?a-n-i:l>e&&o<t||a<n&&o>t?l-e+r:0,qae=n=>{const e=n.parentElement;return e??(n.getRootNode().host||null)},Hae=(n,e)=>{var t,i,r,a;if(typeof document>"u")return[];const{inline:l,boundary:o,skipOverflowHiddenElements:p}=e,C=typeof o=="function"?o:Se=>Se!==o;if(!FT(n))throw new TypeError("Invalid target");const M=document.scrollingElement||document.documentElement,O=[];let U=n;for(;FT(U)&&C(U);){if(U=qae(U),U===M){O.push(U);break}U!=null&&U===document.body&&Ax(U)&&!Ax(document.documentElement)||U!=null&&Ax(U,p)&&O.push(U)}const K=(i=(t=window.visualViewport)==null?void 0:t.width)!=null?i:innerWidth,j=(a=(r=window.visualViewport)==null?void 0:r.height)!=null?a:innerHeight,{scrollX:W,scrollY:Y}=window,{height:te,width:J,top:oe,right:ne,bottom:$,left:ae}=n.getBoundingClientRect(),{top:G,right:ce,left:ge}=(Se=>{const Ve=window.getComputedStyle(Se);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(n);let ye=oe-G,we=l==="center"?ae+J/2-ge+ce:l==="end"?ne+ce:ae-ge;const Ie=[];for(let Se=0;Se<O.length;Se++){const Ve=O[Se],{height:xe,width:ze,top:st,right:Ct,bottom:nt,left:be}=Ve.getBoundingClientRect();if(oe>=0&&ae>=0&&$<=j&&ne<=K&&(Ve===M&&!Ax(Ve)||oe>=st&&$<=nt&&ae>=be&&ne<=Ct))return Ie;const Ne=getComputedStyle(Ve),tt=parseInt(Ne.borderLeftWidth,10),lt=parseInt(Ne.borderTopWidth,10),kt=parseInt(Ne.borderRightWidth,10),gt=parseInt(Ne.borderBottomWidth,10);let St=0,Ut=0;const Fe="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-tt-kt:0,Ke="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-lt-gt:0,Re="offsetWidth"in Ve?Ve.offsetWidth===0?0:ze/Ve.offsetWidth:0,He="offsetHeight"in Ve?Ve.offsetHeight===0?0:xe/Ve.offsetHeight:0;if(M===Ve)St=ux(Y,Y+j,j,lt,gt,Y+ye,Y+ye+te,te),Ut=l==="start"?we:l==="center"?we-K/2:l==="end"?we-K:ux(W,W+K,K,tt,kt,W+we,W+we+J,J),St=Math.max(0,St+Y),Ut=Math.max(0,Ut+W);else{St=ux(st,nt,xe,lt,gt+Ke,ye,ye+te,te),Ut=l==="start"?we-be-tt:l==="center"?we-(be+ze/2)+Fe/2:l==="end"?we-Ct+kt+Fe:ux(be,Ct,ze,tt,kt+Fe,we,we+J,J);const{scrollLeft:bt,scrollTop:_t}=Ve;St=He===0?0:Math.max(0,Math.min(_t+St/He,Ve.scrollHeight-xe/He+Ke)),Ut=Re===0?0:Math.max(0,Math.min(bt+Ut/Re,Ve.scrollWidth-ze/Re+Fe)),ye+=_t-St,we+=bt-Ut}Ie.push({el:Ve,top:St,left:Ut})}return Ie};var jv=function(){return jv=Object.assign||function(e){for(var t,i=1,r=arguments.length;i<r;i++){t=arguments[i]Line truncated
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jse(){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 ele=K2(function n(e){var t=this,i=e.expanded,r=i===void 0?[]:i,a=e.allowMultipleExpanded,l=a===void 0?!1:a,o=e.allowZeroExpanded,p=o===void 0?!1:o;P2(this,n),nA(this,"expanded",void 0),nA(this,"allowMultipleExpanded",void 0),nA(this,"allowZeroExpanded",void 0),nA(this,"toggleExpanded",function(C){if(t.isItemDisabled(C))return t;var M=t.isItemExpanded(C);return M?t.augment({expanded:t.expanded.filter(function(O){return O!==C})}):t.augment({expanded:t.allowMultipleExpanded?[].concat(qse(t.expanded),[C]):[C]})}),nA(this,"isItemDisabled",function(C){var M=t.isItemExpanded(C),O=t.expanded.length===1;return!!(M&&!t.allowZeroExpanded&&O)}),nA(this,"isItemExpanded",function(C){return t.expanded.indexOf(C)!==-1}),nA(this,"getPanelAttributes",function(C,M){var O=M??t.isItemExpanded(C);return{role:t.allowMultipleExpanded?void 0:"region","aria-hidden":t.allowMultipleExpanded?!O:void 0,"aria-labelledby":t.getButtonId(C),id:t.getPanelId(C),hidden:O?void 0:!0}}),nA(this,"getHeadingAttributes",function(){return{role:"heading"}}),nA(this,"getButtonAttributes",function(C,M){var O=M??t.isItemExpanded(C),U=t.isItemDisabled(C);return{id:t.getButtonId(C),"aria-disabled":U,"aria-expanded":O,"aria-controls":t.getPanelId(C),role:"button",tabIndex:0}}),nA(this,"getPanelId",function(C){return"accordion__panel-".concat(C)}),nA(this,"getButtonId",function(C){return"accordion__heading-".concat(C)}),nA(this,"augment",function(C){return new n(bB({expanded:t.expanded,allowMultipleExpanded:t.allowMultipleExpanded,allowZeroExpanded:t.allowZeroExpanded},C))}),this.expanded=r,this.allowMultipleExpanded=l,this.allowZeroExpanded=p}),oN=Nt.createContext(null),aN=function(n){T8(t,n);var e=k8(t);function t(){var i;P2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),nA($p(i),"state",new ele({expanded:i.props.preExpanded,allowMultipleExpanded:i.props.allowMultipleExpanded,allowZeroExpanded:i.props.allowZeroExpanded})),nA($p(i),"toggleExpanded",function(o){i.setState(function(p){return p.toggleExpanded(o)},function(){i.props.onChange&&i.props.onChange(i.state.expanded)})}),nA($p(i),"isItemDisabled",function(o){return i.state.isItemDisabled(o)}),nA($p(i),"isItemExpanded",function(o){return i.state.isItemExpanded(o)}),nA($p(i),"getPanelAttributes",function(o,p){return i.state.getPanelAttributes(o,p)}),nA($p(i),"getHeadingAttributes",function(){return i.state.getHeadingAttributes()}),nA($p(i),"getButtonAttributes",function(o,p){return i.state.getButtonAttributes(o,p)}),i}return K2(t,[{key:"render",value:function(){var r=this.state,a=r.allowZeroExpanded,l=r.allowMultipleExpanded;return Nt.createElement(oN.Provider,{value:{allowMultipleExpanded:l,allowZeroExpanded:a,toggleExpanded:this.toggleExpanded,isItemDisabled:this.isItemDisabled,isItemExpanded:this.isItemExpanded,getPanelAttributes:this.getPanelAttributes,getHeadingAttributes:this.getHeadingAttributes,getButtonAttributes:this.getButtonAttributes}},this.props.children||null)}}]),t}(Nt.PureComponent);nA(aN,"defaultProps",{allowMultipleExpanded:!1,allowZeroExpanded:!1});var sN=function(n){T8(t,n);var e=k8(t);function t(){var i;P2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),nA($p(i),"renderChildren",function(o){return o?i.props.children(o):null}),i}return K2(t,[{key:"render",value:function(){return Nt.createElement(oN.Consumer,null,this.renderChildren)}}]),t}(Nt.PureComponent),tle=["className","allowMultipleExpanded","allowZeroExpanded","onChange","preExpanded"],nle=function(e){var t=e.className,i=t===void 0?"accordion":t,r=e.allowMultipleExpanded,a=e.allowZeroExpanded,l=e.onChange,o=e.preExpanded,p=U2(e,tle);return Nt.createElement(aN,{preExpanded:o,allowMultipleExpanded:r,allowZeroExpanded:a,onChange:l},Nt.createElement("div",i0({"data-accordion-component":"Accordion",className:i},p)))},wB;(function(n){n.Accordion="Accordion",n.AccordionItem="AccordionItem",n.AccordionItemButton="AccordionItemButton",n.AccordionItemHeading="AccordionItemHeading",n.AccordionItemPanel="AccordionItemPanel"})(wB||(wB={}));var lN=wB,Q5=0;function ile(){var n=Q5;return Q5=Q5+1,"raa-".concat(n)}var rle=Nt.useId||ile,ole=/[\u0009\u000a\u000c\u000d\u0020]/g;function G_(n){return n===""||ole.test(n)?(console.error('uuid must be a valid HTML5 id but was given "'.concat(n,'", ASCII whitespaces are forbidden')),!1):!0}var AN=Nt.createContext(null),ale=function(e){var t=e.children,i=e.uuid,r=e.accordionContext,a=e.dangerouslySetExpanded,l=function(){r.toggleExpanded(i)},o=function(C){var M=a??C.isItemExpanded(i),O=C.isItemDisabled(i),U=C.getPanelAttributes(i,a),K=C.getHeadingAttributes(i),j=C.getButtonAttributes(i,a);return Nt.createElement(AN.Provider,{value:{uuid:i,expanded:M,disabled:O,toggleExpanded:l,panelAttributes:U,headingAttributes:K,buttonAttributes:j}},t)};return Nt.createElement(sN,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.”
|
||||
|
||||
`,cN=function(n){O8(t,n);var e=I8(t);function t(){var i;D2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),tu(Vp(i),"ref",void 0),tu(Vp(i),"setRef",function(o){i.ref=o}),i}return R2(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Nt.createElement("div",n0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(ple)}}]),t}(Nt.PureComponent);tu(cN,"defaultProps",fle);var hN=function(e){return Nt.createElement(K2,null,function(t){var i=t.headingAttributes;return e.id&&j_(e.id),Nt.createElement(cN,n0({},e,i))})};hN.displayName=sN.AccordionItemHeading;var mle=["className","region","id"],gle=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,a=e.id,l=P2(e,mle),o=function(C){var w=C.panelAttributes;a&&j_(a);var O=vB(vB({},w),{},{"aria-labelledby":r?w["aria-labelledby"]:void 0});return Nt.createElement("div",n0({"data-accordion-component":"AccordionItemPanel",className:i},l,O,{role:r?"region":void 0}))};return Nt.createElement(K2,null,o)},Ix={exports:{}},yle=Ix.exports,ak;function L2(){return ak||(ak=1,function(n,e){(function(t,i){n.exports=i()})(yle,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko\/\d/i.test(t),a=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),p=a||l||o,C=p&&(a?document.documentMode||6:+(o||l)[1]),w=!o&&/WebKit\//.test(t),O=w&&/Qt\/\d+\.\d+/.test(t),U=!o&&/Chrome\/(\d+)/.exec(t),K=U&&+U[1],j=/Opera\//.test(t),W=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),te=/PhantomJS/.test(t),J=W&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),ne=J||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),$=J||/Mac/.test(i),ae=/\bCrOS\b/.test(t),G=/win/i.test(i),ce=j&&t.match(/Version\/(\d*\.\d*)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(j=!1,w=!0);var ge=$&&(O||j&&(ce==null||ce<12.11)),ye=r||p&&C>=9;function we(d){return new RegExp("(^|\\s)"+d+"(?:$|\\s)\\s*")}var Oe=function(d,v){var B=d.className,E=we(v).exec(B);if(E){var F=B.slice(E.index+E[0].length);d.className=B.slice(0,E.index)+(F?E[1]+F:"")}};function Se(d){for(var v=d.childNodes.length;v>0;--v)d.removeChild(d.firstChild);return d}function Ve(d,v){return Se(d).appendChild(v)}function xe(d,v,B,E){var F=document.createElement(d);if(B&&(F.className=B),E&&(F.style.cssText=E),typeof v=="string")F.appendChild(document.createTextNode(v));else if(v)for(var Z=0;Z<v.length;++Z)F.appendChild(v[Z]);return F}function ze(d,v,B,E){var F=xe(d,v,B,E);return F.setAttribute("role","presentation"),F}var st;document.createRange?st=function(d,v,B,E){var F=document.createRange();return F.setEnd(E||d,B),F.setStart(d,v),F}:st=function(d,v,B){var E=document.body.createTextRange();try{E.moveToElementText(d.parentNode)}catch{return E}return E.collapse(!0),E.moveEnd("character",B),E.moveStart("character",v),E};function Ct(d,v){if(v.nodeType==3&&(v=v.parentNode),d.contains)return d.contains(v);do if(v.nodeType==11&&(v=v.host),v==d)return!0;while(v=v.parentNode)}function nt(d){var v=d.ownerDocument||d,B;try{B=d.activeElement}catch{B=v.body||null}for(;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;return B}function be(d,v){var B=d.className;we(v).test(B)||(d.className+=(B?" ":"")+v)}function Ne(d,v){for(var B=d.split(" "),E=0;E<B.length;E++)B[E]&&!we(B[E]).test(v)&&(v+=" "+B[E]);return v}var tt=function(d){d.select()};J?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:p&&(tt=function(d){try{d.select()}catch{}});function lt(d){return d.display.wrapper.ownerDocument}function kt(d){return gt(d.display.wrapper)}function gt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function St(d){return lt(d).defaultView}function Ut(d){var v=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,v)}}function Fe(d,v,B){v||(v={});for(var E in d)d.hasOwnProperty(E)&&(B!==!1||!v.hasOwnProperty(E))&&(v[E]=d[E]);return v}function Ke(d,v,B,E,F){v==null&&(v=d.search(/[^\s\u00a0]/),v==-1&&(v=d.length));for(var Z=E||0,fe=F||0;;){var _e=d.indexOf(" ",Z);if(_e<0||_e>=v)return fe+(v-Z);fe+=_e-Z,fe+=B-fe%B,Z=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Ut(this.onTimeout,this)};Re.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Re.prototype.set=function(d,v){this.f=v;var B=+new Date+d;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=B)};function He(d,v){for(var B=0;B<d.length;++B)if(d[B]==v)return B;return-1}var
Line truncated
|
||||
`,hN=function(n){T8(t,n);var e=k8(t);function t(){var i;P2(this,t);for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return i=e.call.apply(e,[this].concat(a)),nA($p(i),"ref",void 0),nA($p(i),"setRef",function(o){i.ref=o}),i}return K2(t,[{key:"componentDidUpdate",value:function(){t.VALIDATE(this.ref)}},{key:"componentDidMount",value:function(){t.VALIDATE(this.ref)}},{key:"render",value:function(){return Nt.createElement("div",i0({"data-accordion-component":"AccordionItemHeading"},this.props,{ref:this.setRef}))}}],[{key:"VALIDATE",value:function(r){if(r===void 0)throw new Error("ref is undefined");if(!(r.childElementCount===1&&r.firstElementChild&&r.firstElementChild.getAttribute("data-accordion-component")==="AccordionItemButton"))throw new Error(gle)}}]),t}(Nt.PureComponent);nA(hN,"defaultProps",mle);var dN=function(e){return Nt.createElement(L2,null,function(t){var i=t.headingAttributes;return e.id&&G_(e.id),Nt.createElement(hN,i0({},e,i))})};dN.displayName=lN.AccordionItemHeading;var yle=["className","region","id"],vle=function(e){var t=e.className,i=t===void 0?"accordion__panel":t,r=e.region,a=e.id,l=U2(e,yle),o=function(C){var M=C.panelAttributes;a&&G_(a);var O=bB(bB({},M),{},{"aria-labelledby":r?M["aria-labelledby"]:void 0});return Nt.createElement("div",i0({"data-accordion-component":"AccordionItemPanel",className:i},l,O,{role:r?"region":void 0}))};return Nt.createElement(L2,null,o)},Tx={exports:{}},Cle=Tx.exports,sk;function z2(){return sk||(sk=1,function(n,e){(function(t,i){n.exports=i()})(Cle,function(){var t=navigator.userAgent,i=navigator.platform,r=/gecko\/\d/i.test(t),a=/MSIE \d/.test(t),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),p=a||l||o,C=p&&(a?document.documentMode||6:+(o||l)[1]),M=!o&&/WebKit\//.test(t),O=M&&/Qt\/\d+\.\d+/.test(t),U=!o&&/Chrome\/(\d+)/.exec(t),K=U&&+U[1],j=/Opera\//.test(t),W=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),te=/PhantomJS/.test(t),J=W&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),oe=/Android/.test(t),ne=J||oe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),$=J||/Mac/.test(i),ae=/\bCrOS\b/.test(t),G=/win/i.test(i),ce=j&&t.match(/Version\/(\d*\.\d*)/);ce&&(ce=Number(ce[1])),ce&&ce>=15&&(j=!1,M=!0);var ge=$&&(O||j&&(ce==null||ce<12.11)),ye=r||p&&C>=9;function we(d){return new RegExp("(^|\\s)"+d+"(?:$|\\s)\\s*")}var Ie=function(d,v){var B=d.className,E=we(v).exec(B);if(E){var F=B.slice(E.index+E[0].length);d.className=B.slice(0,E.index)+(F?E[1]+F:"")}};function Se(d){for(var v=d.childNodes.length;v>0;--v)d.removeChild(d.firstChild);return d}function Ve(d,v){return Se(d).appendChild(v)}function xe(d,v,B,E){var F=document.createElement(d);if(B&&(F.className=B),E&&(F.style.cssText=E),typeof v=="string")F.appendChild(document.createTextNode(v));else if(v)for(var Z=0;Z<v.length;++Z)F.appendChild(v[Z]);return F}function ze(d,v,B,E){var F=xe(d,v,B,E);return F.setAttribute("role","presentation"),F}var st;document.createRange?st=function(d,v,B,E){var F=document.createRange();return F.setEnd(E||d,B),F.setStart(d,v),F}:st=function(d,v,B){var E=document.body.createTextRange();try{E.moveToElementText(d.parentNode)}catch{return E}return E.collapse(!0),E.moveEnd("character",B),E.moveStart("character",v),E};function Ct(d,v){if(v.nodeType==3&&(v=v.parentNode),d.contains)return d.contains(v);do if(v.nodeType==11&&(v=v.host),v==d)return!0;while(v=v.parentNode)}function nt(d){var v=d.ownerDocument||d,B;try{B=d.activeElement}catch{B=v.body||null}for(;B&&B.shadowRoot&&B.shadowRoot.activeElement;)B=B.shadowRoot.activeElement;return B}function be(d,v){var B=d.className;we(v).test(B)||(d.className+=(B?" ":"")+v)}function Ne(d,v){for(var B=d.split(" "),E=0;E<B.length;E++)B[E]&&!we(B[E]).test(v)&&(v+=" "+B[E]);return v}var tt=function(d){d.select()};J?tt=function(d){d.selectionStart=0,d.selectionEnd=d.value.length}:p&&(tt=function(d){try{d.select()}catch{}});function lt(d){return d.display.wrapper.ownerDocument}function kt(d){return gt(d.display.wrapper)}function gt(d){return d.getRootNode?d.getRootNode():d.ownerDocument}function St(d){return lt(d).defaultView}function Ut(d){var v=Array.prototype.slice.call(arguments,1);return function(){return d.apply(null,v)}}function Fe(d,v,B){v||(v={});for(var E in d)d.hasOwnProperty(E)&&(B!==!1||!v.hasOwnProperty(E))&&(v[E]=d[E]);return v}function Ke(d,v,B,E,F){v==null&&(v=d.search(/[^\s\u00a0]/),v==-1&&(v=d.length));for(var Z=E||0,fe=F||0;;){var _e=d.indexOf(" ",Z);if(_e<0||_e>=v)return fe+(v-Z);fe+=_e-Z,fe+=B-fe%B,Z=_e+1}}var Re=function(){this.id=null,this.f=null,this.time=0,this.handler=Ut(this.onTimeout,this)};Re.prototype.onTimeout=function(d){d.id=0,d.time<=+new Date?d.f():setTimeout(d.handler,d.time-+new Date)},Re.prototype.set=function(d,v){this.f=v;var B=+new Date+d;(!this.id||B<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,d),this.time=B)};function He(d,v){for(var B=0;B<d.length;++B)if(d[B]==v)return B;return-1}var
Line truncated
|
||||
|
||||
b`.split(/\n/).length!=3?function(d){for(var v=0,B=[],E=d.length;v<=E;){var F=d.indexOf(`
|
||||
`,v);F==-1&&(F=d.length);var Z=d.slice(v,d.charAt(F-1)=="\r"?F-1:F),fe=Z.indexOf("\r");fe!=-1?(B.push(Z.slice(0,fe)),v+=fe+1):(B.push(Z),v=F+1)}return B}:function(d){return d.split(/\r\n?|\n/)},Zn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var v;try{v=d.ownerDocument.selection.createRange()}catch{}return!v||v.parentElement()!=d?!1:v.compareEndPoints("StartToEnd",v)!=0},lr=function(){var d=xe("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),zi=null;function vr(d){if(zi!=null)return zi;var v=Ve(d,xe("span","x")),B=v.getBoundingClientRect(),E=st(v,0,1).getBoundingClientRect();return zi=Math.abs(B.left-E.left)>1}var Fa={},Tr={};function ji(d,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),Fa[d]=v}function gl(d,v){Tr[d]=v}function ka(d){if(typeof d=="string"&&Tr.hasOwnProperty(d))d=Tr[d];else if(d&&typeof d.name=="string"&&Tr.hasOwnProperty(d.name)){var v=Tr[d.name];typeof v=="string"&&(v={name:v}),d=Oi(v,d),d.name=v.name}else{if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(d))return ka("application/xml");if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(d))return ka("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function wo(d,v){v=ka(v);var B=Fa[v.name];if(!B)return wo(d,"text/plain");var E=B(d,v);if(Xa.hasOwnProperty(v.name)){var F=Xa[v.name];for(var Z in F)F.hasOwnProperty(Z)&&(E.hasOwnProperty(Z)&&(E["_"+Z]=E[Z]),E[Z]=F[Z])}if(E.name=v.name,v.helperType&&(E.helperType=v.helperType),v.modeProps)for(var fe in v.modeProps)E[fe]=v.modeProps[fe];return E}var Xa={};function Il(d,v){var B=Xa.hasOwnProperty(d)?Xa[d]:Xa[d]={};Fe(v,B)}function Ao(d,v){if(v===!0)return v;if(d.copyState)return d.copyState(v);var B={};for(var E in v){var F=v[E];F instanceof Array&&(F=F.concat([])),B[E]=F}return B}function Wu(d,v){for(var B;d.innerMode&&(B=d.innerMode(v),!(!B||B.mode==d));)v=B.state,d=B.mode;return B||{mode:d,state:v}}function Da(d,v,B){return d.startState?d.startState(v,B):!0}var Vi=function(d,v,B){this.pos=this.start=0,this.string=d,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};Vi.prototype.eol=function(){return this.pos>=this.string.length},Vi.prototype.sol=function(){return this.pos==this.lineStart},Vi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Vi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Vi.prototype.eat=function(d){var v=this.string.charAt(this.pos),B;if(typeof d=="string"?B=v==d:B=v&&(d.test?d.test(v):d(v)),B)return++this.pos,v},Vi.prototype.eatWhile=function(d){for(var v=this.pos;this.eat(d););return this.pos>v},Vi.prototype.eatSpace=function(){for(var d=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},Vi.prototype.skipToEnd=function(){this.pos=this.string.length},Vi.prototype.skipTo=function(d){var v=this.string.indexOf(d,this.pos);if(v>-1)return this.pos=v,!0},Vi.prototype.backUp=function(d){this.pos-=d},Vi.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)},Vi.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},Vi.prototype.match=function(d,v,B){if(typeof d=="string"){var E=function(fe){return B?fe.toLowerCase():fe},F=this.string.substr(this.pos,d.length);if(E(F)==E(d))return v!==!1&&(this.pos+=d.length),!0}else{var Z=this.string.slice(this.pos).match(d);return Z&&Z.index>0?null:(Z&&v!==!1&&(this.pos+=Z[0].length),Z)}},Vi.prototype.current=function(){return this.string.slice(this.start,this.pos)},Vi.prototype.hideFirstChars=function(d,v){this.lineStart+=d;try{return v()}finally{this.lineStart-=d}},Vi.prototype.lookAhead=function(d){var v=this.lineOracle;return v&&v.lookAhead(d)},Vi.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function Mi(d,v){if(v-=d.first,v<0||v>=d.size)throw new Error("There is no line "+(v+d.first)+" in the document.");for(var B=d;!B.lines;)for(var E=0;;++E){var F=B.children[E],Z=F.chunkSize();if(v<Z){B=F;break}v-=Z}return B.lines[v]}function us(d,v,B){var E=[],F=v.line;return d.iter(v.line,B.line+1,function(Z){var fe=Z.text;F==B.line&&(fe=fe.slice(0,B.ch)),F==v.line&&(fe=fe.slice(v.ch)),E.push(fe),++F}),E}function Ma(d,v,B){var E=[];return d.iter(v,B,function(F){E.push(F.text)}),E}function Vo(d,v){var B=v-d.height;if(B)for(var E=d;E;E=E.parent)E.height+=B}function $e(d){if(d.parent==null)return null;for(var v=d.parent,B=He(v.lines,d),E=v.parent;E;v=E,E=E.parent)for(var F=0;E.children[F]!=v;++F)B+=E.children[F].chunkSize();return B+v.first}function Et(d,v){var B=d.first;e:do{for(var E=0;E<d.child
Line truncated
|
||||
`?(Rn=vt.appendChild(xe("span",Jt[0]=="\r"?"␍":"","cm-invalidchar")),Rn.setAttribute("cm-text",Jt[0]),d.col+=1):(Rn=d.cm.options.specialCharPlaceholder(Jt[0]),Rn.setAttribute("cm-text",Jt[0]),p&&C<9?vt.appendChild(xe("span",[Rn])):vt.appendChild(Rn),d.col+=1);d.map.push(d.pos,d.pos+1,Rn),d.pos++}}if(d.trailingSpace=_e.charCodeAt(v.length-1)==32,B||E||F||Le||Z||fe){var Ci=B||"";E&&(Ci+=E),F&&(Ci+=F);var gi=xe("span",[vt],Ci,Z);if(fe)for(var Di in fe)fe.hasOwnProperty(Di)&&Di!="style"&&Di!="class"&&gi.setAttribute(Di,fe[Di]);return d.content.appendChild(gi)}d.content.appendChild(vt)}}function jh(d,v){if(d.length>1&&!/ /.test(d))return d;for(var B=v,E="",F=0;F<d.length;F++){var Z=d.charAt(F);Z==" "&&B&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(Z=" "),E+=Z,B=Z==" "}return E}function po(d,v){return function(B,E,F,Z,fe,_e,ke){F=F?F+" cm-force-border":"cm-force-border";for(var Le=B.pos,vt=Le+E.length;;){for(var It=void 0,Jt=0;Jt<v.length&&(It=v[Jt],!(It.to>Le&&It.from<=Le));Jt++);if(It.to>=vt)return d(B,E,F,Z,fe,_e,ke);d(B,E.slice(0,It.to-Le),F,Z,null,_e,ke),Z=null,E=E.slice(It.to-Le),Le=It.to}}}function rc(d,v,B,E){var F=!E&&B.widgetNode;F&&d.map.push(d.pos,d.pos+v,F),!E&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",B.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=v,d.trailingSpace=!1}function vd(d,v,B){var E=d.markedSpans,F=d.text,Z=0;if(!E){for(var fe=1;fe<B.length;fe+=2)v.addToken(v,F.slice(Z,Z=B[fe]),yd(B[fe+1],v.cm.options));return}for(var _e=F.length,ke=0,Le=1,vt="",It,Jt,Ht=0,_n,Rn,oi,mi,Ci;;){if(Ht==ke){_n=Rn=oi=Jt="",Ci=null,mi=null,Ht=1/0;for(var gi=[],Di=void 0,ar=0;ar<E.length;++ar){var Yi=E[ar],Jr=Yi.marker;if(Jr.type=="bookmark"&&Yi.from==ke&&Jr.widgetNode)gi.push(Jr);else if(Yi.from<=ke&&(Yi.to==null||Yi.to>ke||Jr.collapsed&&Yi.to==ke&&Yi.from==ke)){if(Yi.to!=null&&Yi.to!=ke&&Ht>Yi.to&&(Ht=Yi.to,Rn=""),Jr.className&&(_n+=" "+Jr.className),Jr.css&&(Jt=(Jt?Jt+";":"")+Jr.css),Jr.startStyle&&Yi.from==ke&&(oi+=" "+Jr.startStyle),Jr.endStyle&&Yi.to==Ht&&(Di||(Di=[])).push(Jr.endStyle,Yi.to),Jr.title&&((Ci||(Ci={})).title=Jr.title),Jr.attributes)for(var Mr in Jr.attributes)(Ci||(Ci={}))[Mr]=Jr.attributes[Mr];Jr.collapsed&&(!mi||at(mi.marker,Jr)<0)&&(mi=Yi)}else Yi.from>ke&&Ht>Yi.from&&(Ht=Yi.from)}if(Di)for(var rs=0;rs<Di.length;rs+=2)Di[rs+1]==Ht&&(Rn+=" "+Di[rs]);if(!mi||mi.from==ke)for(var ca=0;ca<gi.length;++ca)rc(v,0,gi[ca]);if(mi&&(mi.from||0)==ke){if(rc(v,(mi.to==null?_e+1:mi.to)-ke,mi.marker,mi.from==null),mi.to==null)return;mi.to==ke&&(mi=!1)}}if(ke>=_e)break;for(var qr=Math.min(_e,Ht);;){if(vt){var vs=ke+vt.length;if(!mi){var Cs=vs>qr?vt.slice(0,qr-ke):vt;v.addToken(v,Cs,It?It+_n:_n,oi,ke+Cs.length==Ht?Rn:"",Jt,Ci)}if(vs>=qr){vt=vt.slice(qr-ke),ke=qr;break}ke=vs,oi=""}vt=F.slice(Z,Z=B[Le++]),It=yd(B[Le++],v.cm.options)}}}function dm(d,v,B){this.line=v,this.rest=to(v),this.size=this.rest?$e($n(this.rest))-B+1:1,this.node=this.text=null,this.hidden=mr(d,v)}function yh(d,v,B){for(var E=[],F,Z=v;Z<B;Z=F){var fe=new dm(d.doc,Mi(d.doc,Z),Z);F=Z+fe.size,E.push(fe)}return E}var Cd=null;function r0(d){Cd?Cd.ops.push(d):d.ownsGroup=Cd={ops:[d],delayedCallbacks:[]}}function Tf(d){var v=d.delayedCallbacks,B=0;do{for(;B<v.length;B++)v[B].call(null);for(var E=0;E<d.ops.length;E++){var F=d.ops[E];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(B<v.length)}function kf(d,v){var B=d.ownsGroup;if(B)try{Tf(B)}finally{Cd=null,v(B)}}var Hu=null;function es(d,v){var B=ht(d,v);if(B.length){var E=Array.prototype.slice.call(arguments,2),F;Cd?F=Cd.delayedCallbacks:Hu?F=Hu:(F=Hu=[],setTimeout(_d,0));for(var Z=function(_e){F.push(function(){return B[_e].apply(null,E)})},fe=0;fe<B.length;++fe)Z(fe)}}function _d(){var d=Hu;Hu=null;for(var v=0;v<d.length;++v)d[v]()}function Fl(d,v,B,E){for(var F=0;F<v.changes.length;F++){var Z=v.changes[F];Z=="text"?Gh(d,v):Z=="gutter"?vh(d,v,B,E):Z=="class"?Df(d,v):Z=="widget"&&Ch(d,v,E)}v.changes=null}function bd(d){return d.node==d.text&&(d.node=xe("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&C<8&&(d.node.style.zIndex=2)),d.node}function Nh(d,v){var B=v.bgClass?v.bgClass+" "+(v.line.bgClass||""):v.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),v.background)B?v.background.className=B:(v.background.parentNode.removeChild(v.background),v.background=null);else if(B){var E=bd(v);v.background=E.insertBefore(xe("div",null,B),E.firstChild),d.display.input.setUneditable(v.background)}}function qc(d,v){var B=d.display.externalMeasured;return B&&B.line==v.line?(d.display.externalMeasured=null,v.measure=B.measure,B.built):PA(d,v)}function Gh(d,v){var B=v.text.className,E=qc(d,v);v.text==v.node&&(v.node=E.pre),v.text.parentNode.replaceChild(E.pre,v.text),v.text=E.pre,E.bgClass
Line truncated
|
||||
top: `+Di+"px; width: "+(ar??ke-gi)+`px;
|
||||
height: `+(Yi-Di)+"px"))}function It(gi,Di,ar){var Yi=Mi(F,gi),Jr=Yi.text.length,Mr,rs;function ca(Cs,ha){return Sn(d,rn(gi,Cs),"div",Yi,ha)}function qr(Cs,ha,Vl){var Ts=Do(d,Yi,null,Cs),Ns=ha=="ltr"==(Vl=="after")?"left":"right",Or=Vl=="after"?Ts.begin:Ts.end-(/\s/.test(Yi.text.charAt(Ts.end-1))?2:1);return ca(Or,Ns)[Ns]}var vs=Ze(Yi,F.direction);return We(vs,Di||0,ar??Jr,function(Cs,ha,Vl,Ts){var Ns=Vl=="ltr",Or=ca(Cs,Ns?"left":"right"),Ea=ca(ha-1,Ns?"right":"left"),$l=Di==null&&Cs==0,pc=ar==null&&ha==Jr,pu=Ts==0,oh=!vs||Ts==vs.length-1;if(Ea.top-Or.top<=3){var hs=(Le?$l:pc)&&pu,wA=(Le?pc:$l)&&oh,Ml=hs?_e:(Ns?Or:Ea).left,mc=wA?ke:(Ns?Ea:Or).right;vt(Ml,Or.top,mc-Ml,Or.bottom)}else{var sl,mu,$A,od;Ns?(sl=Le&&$l&&pu?_e:Or.left,mu=Le?ke:qr(Cs,Vl,"before"),$A=Le?_e:qr(ha,Vl,"after"),od=Le&&pc&&oh?ke:Ea.right):(sl=Le?qr(Cs,Vl,"before"):_e,mu=!Le&&$l&&pu?ke:Or.right,$A=!Le&&pc&&oh?_e:Ea.left,od=Le?qr(ha,Vl,"after"):ke),vt(sl,Or.top,mu-sl,Or.bottom),Or.bottom<Ea.top&&vt(_e,Or.bottom,null,Ea.top),vt($A,Ea.top,od-$A,Ea.bottom)}(!Mr||lc(Or,Mr)<0)&&(Mr=Or),lc(Ea,Mr)<0&&(Mr=Ea),(!rs||lc(Or,rs)<0)&&(rs=Or),lc(Ea,rs)<0&&(rs=Ea)}),{start:Mr,end:rs}}var Jt=v.from(),Ht=v.to();if(Jt.line==Ht.line)It(Jt.line,Jt.ch,Ht.ch);else{var _n=Mi(F,Jt.line),Rn=Mi(F,Ht.line),oi=Ri(_n)==Ri(Rn),mi=It(Jt.line,Jt.ch,oi?_n.text.length+1:null).end,Ci=It(Ht.line,oi?0:null,Ht.ch).start;oi&&(mi.top<Ci.top-2?(vt(mi.right,mi.top,null,mi.bottom),vt(_e,Ci.top,Ci.left,Ci.bottom)):vt(mi.right,mi.top,Ci.left-mi.right,mi.bottom)),mi.bottom<Ci.top&&vt(_e,mi.bottom,null,Ci.top)}B.appendChild(Z)}function Bc(d){if(d.state.focused){var v=d.display;clearInterval(v.blinker);var B=!0;v.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?v.blinker=setInterval(function(){d.hasFocus()||pA(d),v.cursorDiv.style.visibility=(B=!B)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}}function Bs(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Ed(d))}function xh(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&pA(d))},100)}function Ed(d,v){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(it(d,"focus",d,v),d.state.focused=!0,be(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),w&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Bc(d))}function pA(d,v){d.state.delayingBlurEvent||(d.state.focused&&(it(d,"blur",d,v),d.state.focused=!1,Oe(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Bd(d){for(var v=d.display,B=v.lineDiv.offsetTop,E=Math.max(0,v.scroller.getBoundingClientRect().top),F=v.lineDiv.getBoundingClientRect().top,Z=0,fe=0;fe<v.view.length;fe++){var _e=v.view[fe],ke=d.options.lineWrapping,Le=void 0,vt=0;if(!_e.hidden){if(F+=_e.line.height,p&&C<8){var It=_e.node.offsetTop+_e.node.offsetHeight;Le=It-B,B=It}else{var Jt=_e.node.getBoundingClientRect();Le=Jt.bottom-Jt.top,!ke&&_e.text.firstChild&&(vt=_e.text.firstChild.getBoundingClientRect().right-Jt.left-1)}var Ht=_e.line.height-Le;if((Ht>.005||Ht<-.005)&&(F<E&&(Z-=Ht),Vo(_e.line,Le),$c(_e.line),_e.rest))for(var _n=0;_n<_e.rest.length;_n++)$c(_e.rest[_n]);if(vt>d.display.sizerWidth){var Rn=Math.ceil(vt/Su(d.display));Rn>d.display.maxLineLength&&(d.display.maxLineLength=Rn,d.display.maxLine=_e.line,d.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(v.scroller.scrollTop+=Z)}function $c(d){if(d.widgets)for(var v=0;v<d.widgets.length;++v){var B=d.widgets[v],E=B.node.parentNode;E&&(B.height=E.offsetHeight)}}function Ou(d,v,B){var E=B&&B.top!=null?Math.max(0,B.top):d.scroller.scrollTop;E=Math.floor(E-Mc(d));var F=B&&B.bottom!=null?B.bottom:E+d.wrapper.clientHeight,Z=Et(v,E),fe=Et(v,F);if(B&&B.ensure){var _e=B.ensure.from.line,ke=B.ensure.to.line;_e<Z?(Z=_e,fe=Et(v,No(Mi(v,_e))+d.wrapper.clientHeight)):Math.min(ke,v.lastLine())>=fe&&(Z=Et(v,No(Mi(v,ke))-d.wrapper.clientHeight),fe=ke)}return{from:Z,to:Math.max(fe,Z+1)}}function LA(d,v){if(!en(d,"scrollCursorIntoView")){var B=d.display,E=B.sizer.getBoundingClientRect(),F=null,Z=B.wrapper.ownerDocument;if(v.top+E.top<0?F=!0:v.bottom+E.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(F=!1),F!=null&&!te){var fe=xe("div","",null,`position: absolute;
|
||||
top: `+(v.top-B.viewOffset-Mc(d.display))+`px;
|
||||
height: `+(v.bottom-v.top+KA(d)+B.barHeight)+`px;
|
||||
left: `+v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");d.display.lineSpace.appendChild(fe),fe.scrollIntoView(F),d.display.lineSpace.removeChild(fe)}}}function Mh(d,v,B,E){E==null&&(E=0);var F;!d.options.lineWrapping&&v==B&&(B=v.sticky=="before"?rn(v.line,v.ch+1,"before"):v,v=v.ch?rn(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v);for(var Z=0;Z<5;Z++){var fe=!1,_e=vn(d,v),ke=!B||B==v?_e:vn(d,B);F={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-E,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+E};var Le=Iu(d,F),vt=d.doc.scrollTop,It=d.doc.scrollLeft;if(Le.scrollTop!=null&&(Zc(d,Le.scrollTop),Math.abs(d.doc.scrollTop-vt)>1&&(fe=!0)),Le.scrollLeft!=null&&(va(d,Le.scrollLeft),Math.abs(d.doc.scrollLeft-It)>1&&(fe=!0)),!fe)break}return F}function Hh(d,v){var B=Iu(d,v);B.scrollTop!=null&&Zc(d,B.scrollTop),B.scrollLeft!=null&&va(d,B.scrollLeft)}function Iu(d,v){var B=d.display,E=wu(d.display);v.top<0&&(v.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:B.scroller.scrollTop,Z=Qh(d),fe={};v.bottom-v.top>Z&&(v.bottom=v.top+Z);var _e=d.doc.height+xd(B),ke=v.top<E,Le=v.bottom>_e-E;if(v.top<F)fe.scrollTop=ke?0:v.top;else if(v.bottom>F+Z){var vt=Math.min(v.top,(Le?_e:v.bottom)-Z);vt!=F&&(fe.scrollTop=vt)}var It=d.options.fixedGutter?0:B.gutters.offsetWidth,Jt=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:B.scroller.scrollLeft-It,Ht=Vu(d)-B.gutters.offsetWidth,_n=v.right-v.left>Ht;return _n&&(v.right=v.left+Ht),v.left<10?fe.scrollLeft=0:v.left<Jt?fe.scrollLeft=Math.max(0,v.left+It-(_n?0:10)):v.right>Ht+Jt-3&&(fe.scrollLeft=v.right+(_n?0:10)-Ht),fe}function kl(d,v){v!=null&&(zA(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+v)}function Wo(d){zA(d);var v=d.getCursor();d.curOp.scrollToPos={from:v,to:v,margin:d.options.cursorScrollMargin}}function sa(d,v,B){(v!=null||B!=null)&&zA(d),v!=null&&(d.curOp.scrollLeft=v),B!=null&&(d.curOp.scrollTop=B)}function FA(d,v){zA(d),d.curOp.scrollToPos=v}function zA(d){var v=d.curOp.scrollToPos;if(v){d.curOp.scrollToPos=null;var B=Ti(d,v.from),E=Ti(d,v.to);Oc(d,B,E,v.margin)}}function Oc(d,v,B,E){var F=Iu(d,{left:Math.min(v.left,B.left),top:Math.min(v.top,B.top)-E,right:Math.max(v.right,B.right),bottom:Math.max(v.bottom,B.bottom)+E});sa(d,F.scrollLeft,F.scrollTop)}function Zc(d,v){Math.abs(d.doc.scrollTop-v)<2||(r||ba(d,{top:v}),Xc(d,v,!0),r&&ba(d),eh(d,100))}function Xc(d,v,B){v=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,v)),!(d.display.scroller.scrollTop==v&&!B)&&(d.doc.scrollTop=v,d.display.scrollbars.setScrollTop(v),d.display.scroller.scrollTop!=v&&(d.display.scroller.scrollTop=v))}function va(d,v,B,E){v=Math.max(0,Math.min(v,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((B?v==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-v)<2)&&!E)&&(d.doc.scrollLeft=v,ef(d),d.display.scroller.scrollLeft!=v&&(d.display.scroller.scrollLeft=v),d.display.scrollbars.setScrollLeft(v))}function _a(d){var v=d.display,B=v.gutters.offsetWidth,E=Math.round(d.doc.height+xd(d.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:d.options.fixedGutter?B:0,docHeight:E,scrollHeight:E+KA(d)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:B}}var Zr=function(d,v,B){this.cm=B;var E=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=F.tabIndex=-1,d(E),d(F),mt(E,"scroll",function(){E.clientHeight&&v(E.scrollTop,"vertical")}),mt(F,"scroll",function(){F.clientWidth&&v(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Zr.prototype.update=function(d){var v=d.scrollWidth>d.clientWidth+1,B=d.scrollHeight>d.clientHeight+1,E=d.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=v?E+"px":"0";var F=d.viewHeight-(v?E:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=B?E+"px":"0",this.horiz.style.left=d.barLeft+"px";var Z=d.viewWidth-d.barLeft-(B?E:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?E:0,bottom:v?E:0}},Zr.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Zr.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scrollTop=d),thi
Line truncated
|
||||
`},setDirection:gs(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(v){return v.order=null}),this.cm&&yA(this.cm))})}),ut.prototype.eachLine=ut.prototype.iter;var ct=0;function ft(d){var v=this;if(wt(v),!(en(v,d)||au(v.display,d))){Wn(d),p&&(ct=+new Date);var B=Na(v,d,!0),E=d.dataTransfer.files;if(!(!B||v.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var F=E.length,Z=Array(F),fe=0,_e=function(){++fe==F&&Zo(v,function(){B=Qi(v.doc,B);var Ht={from:B,to:B,text:v.doc.splitLines(Z.filter(function(_n){return _n!=null}).join(v.doc.lineSeparator())),origin:"paste"};Zs(v.doc,Ht),Au(v.doc,GA(Qi(v.doc,B),Qi(v.doc,WA(Ht))))})()},ke=function(Ht,_n){if(v.options.allowDropFileTypes&&He(v.options.allowDropFileTypes,Ht.type)==-1){_e();return}var Rn=new FileReader;Rn.onerror=function(){return _e()},Rn.onload=function(){var oi=Rn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(oi)){_e();return}Z[_n]=oi,_e()},Rn.readAsText(Ht)},Le=0;Le<E.length;Le++)ke(E[Le],Le);else{if(v.state.draggingText&&v.doc.sel.contains(B)>-1){v.state.draggingText(d),setTimeout(function(){return v.display.input.focus()},20);return}try{var vt=d.dataTransfer.getData("Text");if(vt){var It;if(v.state.draggingText&&!v.state.draggingText.copy&&(It=v.listSelections()),mo(v.doc,GA(B,B)),It)for(var Jt=0;Jt<It.length;++Jt)Yl(v.doc,"",It[Jt].anchor,It[Jt].head,"drag");v.replaceSelection(vt,"around","paste"),v.display.input.focus()}}catch{}}}}function xt(d,v){if(p&&(!d.state.draggingText||+new Date-ct<100)){Ei(v);return}if(!(en(d,v)||au(d.display,v))&&(v.dataTransfer.setData("Text",d.getSelection()),v.dataTransfer.effectAllowed="copyMove",v.dataTransfer.setDragImage&&!W)){var B=xe("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",j&&(B.width=B.height=1,d.display.wrapper.appendChild(B),B._top=B.offsetTop),v.dataTransfer.setDragImage(B,0,0),j&&B.parentNode.removeChild(B)}}function yt(d,v){var B=Na(d,v);if(B){var E=document.createDocumentFragment();kr(d,B,E),d.display.dragCursor||(d.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),Ve(d.display.dragCursor,E)}}function wt(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var v=document.getElementsByClassName("CodeMirror"),B=[],E=0;E<v.length;E++){var F=v[E].CodeMirror;F&&B.push(F)}B.length&&B[0].operation(function(){for(var Z=0;Z<B.length;Z++)d(B[Z])})}}var Ft=!1;function Bt(){Ft||(Yt(),Ft=!0)}function Yt(){var d;mt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(dn)},100))}),mt(window,"blur",function(){return Pt(pA)})}function dn(d){var v=d.display;v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.scrollbarsClipped=!1,d.setSize()}for(var Xt={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"},nn=0;nn<10;nn++)Xt[nn+48]=Xt[nn+96]=String(nn);for(var un=65;un<=90;un++)Xt[un]=String.fromCharCode(un);for(var qn=1;qn<=12;qn++)Xt[qn+111]=Xt[qn+63235]="F"+qn;var Qn={};Qn.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"},Qn.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"},Qn.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","CtrlLine truncated
|
||||
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Is(d,v){var B=Mi(d.doc,v),E=Ri(B);return E!=B&&(v=$e(E)),is(!0,d,E,v,1)}function YA(d,v){var B=Mi(d.doc,v),E=Xi(B);return E!=B&&(v=$e(E)),is(!0,d,B,v,-1)}function dc(d,v){var B=Is(d,v.line),E=Mi(d.doc,B.line),F=Ze(E,d.doc.direction);if(!F||F[0].level==0){var Z=Math.max(B.ch,E.text.search(/\S/)),fe=v.line==B.line&&v.ch<=Z&&v.ch;return rn(B.line,fe?0:Z,B.sticky)}return B}function ql(d,v,B){if(typeof v=="string"&&(v=Os[v],!v))return!1;d.display.input.ensurePolled();var E=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),B&&(d.display.shift=!1),F=v(d)!=_t}finally{d.display.shift=E,d.state.suppressEdits=!1}return F}function Ih(d,v,B){for(var E=0;E<d.state.keyMaps.length;E++){var F=cr(v,d.state.keyMaps[E],B,d);if(F)return F}return d.options.extraKeys&&cr(v,d.options.extraKeys,B,d)||cr(v,d.options.keyMap,B,d)}var rh=new Re;function qA(d,v,B,E){var F=d.state.keySeq;if(F){if(Co(v))return"handled";if(/\'$/.test(v)?d.state.keySeq=null:rh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Pc(d,F+" "+v,B,E))return!0}return Pc(d,v,B,E)}function Pc(d,v,B,E){var F=Ih(d,v,E);return F=="multi"&&(d.state.keySeq=v),F=="handled"&&es(d,"keyHandled",d,v,B),(F=="handled"||F=="multi")&&(Wn(B),Bc(d)),!!F}function bl(d,v){var B=Lo(v,!0);return B?v.shiftKey&&!d.state.keySeq?qA(d,"Shift-"+B,v,function(E){return ql(d,E,!0)})||qA(d,B,v,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return ql(d,E)}):qA(d,B,v,function(E){return ql(d,E)}):!1}function HA(d,v,B){return qA(d,"'"+B+"'",v,function(E){return ql(d,E,!0)})}var xl=null;function Kc(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&(v.curOp.focus=nt(kt(v)),!en(v,d))){p&&C<11&&d.keyCode==27&&(d.returnValue=!1);var B=d.keyCode;v.display.shift=B==16||d.shiftKey;var E=bl(v,d);j&&(xl=E?B:null,!E&&B==88&&!lr&&($?d.metaKey:d.ctrlKey)&&v.replaceSelection("",null,"cut")),r&&!$&&!E&&B==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/\bCodeMirror-crosshair\b/.test(v.display.lineDiv.className)&&_o(v)}}function _o(d){var v=d.display.lineDiv;be(v,"CodeMirror-crosshair");function B(E){(E.keyCode==18||!E.altKey)&&(Oe(v,"CodeMirror-crosshair"),Tt(document,"keyup",B),Tt(document,"mouseover",B))}mt(document,"keyup",B),mt(document,"mouseover",B)}function Xo(d){d.keyCode==16&&(this.doc.sel.shift=!1),en(this,d)}function hu(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&!(au(v.display,d)||en(v,d)||d.ctrlKey&&!d.altKey||$&&d.metaKey)){var B=d.keyCode,E=d.charCode;if(j&&B==xl){xl=null,Wn(d);return}if(!(j&&(!d.which||d.which<10)&&bl(v,d))){var F=String.fromCharCode(E??B);F!="\b"&&(HA(v,d,F)||v.display.input.onKeyPress(d))}}}var ys=400,_A=function(d,v,B){this.time=d,this.pos=v,this.button=B};_A.prototype.compare=function(d,v,B){return this.time+ys>d&&si(v,this.pos)==0&&B==this.button};var du,Ru;function Hl(d,v){var B=+new Date;return Ru&&Ru.compare(B,d,v)?(du=Ru=null,"triple"):du&&du.compare(B,d,v)?(Ru=new _A(B,d,v),du=null,"double"):(du=new _A(B,d,v),Ru=null,"single")}function Uc(d){var v=this,B=v.display;if(!(en(v,d)||B.activeTouch&&B.input.supportsTouch())){if(B.input.ensurePolled(),B.shift=d.shiftKey,au(B,d)){w||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(!id(v,d)){var E=Na(v,d),F=ti(d),Z=E?Hl(E,F):"single";St(v).focus(),F==1&&v.state.selectingText&&v.state.selectingText(d),!(E&&tA(v,F,E,Z,d))&&(F==1?E?bA(v,E,Z,d):hi(d)==B.scroller&&Wn(d):F==2?(E&&QA(v.doc,E),setTimeout(function(){return B.input.focus()},20)):F==3&&(ye?v.display.input.onContextMenu(d):xh(v)))}}}function tA(d,v,B,E,F){var Z="Click";return E=="double"?Z="Double"+Z:E=="triple"&&(Z="Triple"+Z),Z=(v==1?"Left":v==2?"Middle":"Right")+Z,qA(d,ua(Z,F),F,function(fe){if(typeof fe=="string"&&(fe=Os[fe]),!fe)return!1;var _e=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),_e=fe(d,B)!=_t}finally{d.state.suppressEdits=!1}return _e})}function Ya(d,v,B){var E=d.getOption("configureMouse"),F=E?E(d,v,B):{};if(F.unit==null){var Z=ae?B.shiftKey&&B.metaKey:B.altKey;F.unit=Z?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||B.shiftKey),F.addNew==null&&(F.addNew=$?B.metaKey:B.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!($?B.altKey:B.ctrlKey)),F}function bA(d,v,B,E){p?setTimeout(Ut(Bs,d),0):d.curOp.focus=nt(kt(d));var F=Ya(d,B,E),Z=d.doc.sel,fe;d.options.dragDrop&&Wi&&!d.isReadOnly()&&B=="single"&&(fe=Z.contains(v))>-1&&(si((fe=Z.ranges[fe]).from(),v)<0||v.xRel>0)&&(si(fe.to(),v)>0||v.xRel<0)?zf(d,E,v,F):MA(d,E,v,F)}function zf(d,v,B,E){var F=d.display,Z=!1,fe=Zo(d,function(Le){w&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:xh(d)),Tt(F.wrapper.ownerDocument,"mouseup",fe),Tt(F.wrapper.ownerDocument,"mousemove",_e),Tt(F.scroller,"dragstart",ke),Tt(F.scro
Line truncated
|
||||
`)==v){if(E.ranges.length%iA.text.length==0){Le=[];for(var vt=0;vt<iA.text.length;vt++)Le.push(Z.splitLines(iA.text[vt]))}}else ke.length==E.ranges.length&&d.options.pasteLinesPerSelection&&(Le=On(ke,function(mi){return[mi]}));for(var It=d.curOp.updateInput,Jt=E.ranges.length-1;Jt>=0;Jt--){var Ht=E.ranges[Jt],_n=Ht.from(),Rn=Ht.to();Ht.empty()&&(B&&B>0?_n=rn(_n.line,_n.ch-B):d.state.overwrite&&!_e?Rn=rn(Rn.line,Math.min(Mi(Z,Rn.line).text.length,Rn.ch+$n(ke).length)):_e&&iA&&iA.lineWise&&iA.text.join(`
|
||||
`,v);F==-1&&(F=d.length);var Z=d.slice(v,d.charAt(F-1)=="\r"?F-1:F),fe=Z.indexOf("\r");fe!=-1?(B.push(Z.slice(0,fe)),v+=fe+1):(B.push(Z),v=F+1)}return B}:function(d){return d.split(/\r\n?|\n/)},Zn=window.getSelection?function(d){try{return d.selectionStart!=d.selectionEnd}catch{return!1}}:function(d){var v;try{v=d.ownerDocument.selection.createRange()}catch{}return!v||v.parentElement()!=d?!1:v.compareEndPoints("StartToEnd",v)!=0},Ar=function(){var d=xe("div");return"oncopy"in d?!0:(d.setAttribute("oncopy","return;"),typeof d.oncopy=="function")}(),zi=null;function Cr(d){if(zi!=null)return zi;var v=Ve(d,xe("span","x")),B=v.getBoundingClientRect(),E=st(v,0,1).getBoundingClientRect();return zi=Math.abs(B.left-E.left)>1}var ja={},kr={};function ji(d,v){arguments.length>2&&(v.dependencies=Array.prototype.slice.call(arguments,2)),ja[d]=v}function yl(d,v){kr[d]=v}function Pa(d){if(typeof d=="string"&&kr.hasOwnProperty(d))d=kr[d];else if(d&&typeof d.name=="string"&&kr.hasOwnProperty(d.name)){var v=kr[d.name];typeof v=="string"&&(v={name:v}),d=Oi(v,d),d.name=v.name}else{if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(d))return Pa("application/xml");if(typeof d=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(d))return Pa("application/json")}return typeof d=="string"?{name:d}:d||{name:"null"}}function So(d,v){v=Pa(v);var B=ja[v.name];if(!B)return So(d,"text/plain");var E=B(d,v);if(ts.hasOwnProperty(v.name)){var F=ts[v.name];for(var Z in F)F.hasOwnProperty(Z)&&(E.hasOwnProperty(Z)&&(E["_"+Z]=E[Z]),E[Z]=F[Z])}if(E.name=v.name,v.helperType&&(E.helperType=v.helperType),v.modeProps)for(var fe in v.modeProps)E[fe]=v.modeProps[fe];return E}var ts={};function Tl(d,v){var B=ts.hasOwnProperty(d)?ts[d]:ts[d]={};Fe(v,B)}function co(d,v){if(v===!0)return v;if(d.copyState)return d.copyState(v);var B={};for(var E in v){var F=v[E];F instanceof Array&&(F=F.concat([])),B[E]=F}return B}function QA(d,v){for(var B;d.innerMode&&(B=d.innerMode(v),!(!B||B.mode==d));)v=B.state,d=B.mode;return B||{mode:d,state:v}}function Ka(d,v,B){return d.startState?d.startState(v,B):!0}var $i=function(d,v,B){this.pos=this.start=0,this.string=d,this.tabSize=v||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=B};$i.prototype.eol=function(){return this.pos>=this.string.length},$i.prototype.sol=function(){return this.pos==this.lineStart},$i.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$i.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$i.prototype.eat=function(d){var v=this.string.charAt(this.pos),B;if(typeof d=="string"?B=v==d:B=v&&(d.test?d.test(v):d(v)),B)return++this.pos,v},$i.prototype.eatWhile=function(d){for(var v=this.pos;this.eat(d););return this.pos>v},$i.prototype.eatSpace=function(){for(var d=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>d},$i.prototype.skipToEnd=function(){this.pos=this.string.length},$i.prototype.skipTo=function(d){var v=this.string.indexOf(d,this.pos);if(v>-1)return this.pos=v,!0},$i.prototype.backUp=function(d){this.pos-=d},$i.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)},$i.prototype.indentation=function(){return Ke(this.string,null,this.tabSize)-(this.lineStart?Ke(this.string,this.lineStart,this.tabSize):0)},$i.prototype.match=function(d,v,B){if(typeof d=="string"){var E=function(fe){return B?fe.toLowerCase():fe},F=this.string.substr(this.pos,d.length);if(E(F)==E(d))return v!==!1&&(this.pos+=d.length),!0}else{var Z=this.string.slice(this.pos).match(d);return Z&&Z.index>0?null:(Z&&v!==!1&&(this.pos+=Z[0].length),Z)}},$i.prototype.current=function(){return this.string.slice(this.start,this.pos)},$i.prototype.hideFirstChars=function(d,v){this.lineStart+=d;try{return v()}finally{this.lineStart-=d}},$i.prototype.lookAhead=function(d){var v=this.lineOracle;return v&&v.lookAhead(d)},$i.prototype.baseToken=function(){var d=this.lineOracle;return d&&d.baseToken(this.pos)};function Mi(d,v){if(v-=d.first,v<0||v>=d.size)throw new Error("There is no line "+(v+d.first)+" in the document.");for(var B=d;!B.lines;)for(var E=0;;++E){var F=B.children[E],Z=F.chunkSize();if(v<Z){B=F;break}v-=Z}return B.lines[v]}function cs(d,v,B){var E=[],F=v.line;return d.iter(v.line,B.line+1,function(Z){var fe=Z.text;F==B.line&&(fe=fe.slice(0,B.ch)),F==v.line&&(fe=fe.slice(v.ch)),E.push(fe),++F}),E}function Sa(d,v,B){var E=[];return d.iter(v,B,function(F){E.push(F.text)}),E}function Zo(d,v){var B=v-d.height;if(B)for(var E=d;E;E=E.parent)E.height+=B}function $e(d){if(d.parent==null)return null;for(var v=d.parent,B=He(v.lines,d),E=v.parent;E;v=E,E=E.parent)for(var F=0;E.children[F]!=v;++F)B+=E.children[F].chunkSize();return B+v.first}function Et(d,v){var B=d.first;e:do{for(var E=0;E<d.child
Line truncated
|
||||
`?(Rn=vt.appendChild(xe("span",Jt[0]=="\r"?"␍":"","cm-invalidchar")),Rn.setAttribute("cm-text",Jt[0]),d.col+=1):(Rn=d.cm.options.specialCharPlaceholder(Jt[0]),Rn.setAttribute("cm-text",Jt[0]),p&&C<9?vt.appendChild(xe("span",[Rn])):vt.appendChild(Rn),d.col+=1);d.map.push(d.pos,d.pos+1,Rn),d.pos++}}if(d.trailingSpace=_e.charCodeAt(v.length-1)==32,B||E||F||Le||Z||fe){var Ci=B||"";E&&(Ci+=E),F&&(Ci+=F);var gi=xe("span",[vt],Ci,Z);if(fe)for(var Di in fe)fe.hasOwnProperty(Di)&&Di!="style"&&Di!="class"&&gi.setAttribute(Di,fe[Di]);return d.content.appendChild(gi)}d.content.appendChild(vt)}}function Nh(d,v){if(d.length>1&&!/ /.test(d))return d;for(var B=v,E="",F=0;F<d.length;F++){var Z=d.charAt(F);Z==" "&&B&&(F==d.length-1||d.charCodeAt(F+1)==32)&&(Z=" "),E+=Z,B=Z==" "}return E}function mo(d,v){return function(B,E,F,Z,fe,_e,ke){F=F?F+" cm-force-border":"cm-force-border";for(var Le=B.pos,vt=Le+E.length;;){for(var It=void 0,Jt=0;Jt<v.length&&(It=v[Jt],!(It.to>Le&&It.from<=Le));Jt++);if(It.to>=vt)return d(B,E,F,Z,fe,_e,ke);d(B,E.slice(0,It.to-Le),F,Z,null,_e,ke),Z=null,E=E.slice(It.to-Le),Le=It.to}}}function oc(d,v,B,E){var F=!E&&B.widgetNode;F&&d.map.push(d.pos,d.pos+v,F),!E&&d.cm.display.input.needsContentAttribute&&(F||(F=d.content.appendChild(document.createElement("span"))),F.setAttribute("cm-marker",B.id)),F&&(d.cm.display.input.setUneditable(F),d.content.appendChild(F)),d.pos+=v,d.trailingSpace=!1}function Cd(d,v,B){var E=d.markedSpans,F=d.text,Z=0;if(!E){for(var fe=1;fe<B.length;fe+=2)v.addToken(v,F.slice(Z,Z=B[fe]),vd(B[fe+1],v.cm.options));return}for(var _e=F.length,ke=0,Le=1,vt="",It,Jt,Ht=0,_n,Rn,oi,mi,Ci;;){if(Ht==ke){_n=Rn=oi=Jt="",Ci=null,mi=null,Ht=1/0;for(var gi=[],Di=void 0,sr=0;sr<E.length;++sr){var qi=E[sr],eo=qi.marker;if(eo.type=="bookmark"&&qi.from==ke&&eo.widgetNode)gi.push(eo);else if(qi.from<=ke&&(qi.to==null||qi.to>ke||eo.collapsed&&qi.to==ke&&qi.from==ke)){if(qi.to!=null&&qi.to!=ke&&Ht>qi.to&&(Ht=qi.to,Rn=""),eo.className&&(_n+=" "+eo.className),eo.css&&(Jt=(Jt?Jt+";":"")+eo.css),eo.startStyle&&qi.from==ke&&(oi+=" "+eo.startStyle),eo.endStyle&&qi.to==Ht&&(Di||(Di=[])).push(eo.endStyle,qi.to),eo.title&&((Ci||(Ci={})).title=eo.title),eo.attributes)for(var wr in eo.attributes)(Ci||(Ci={}))[wr]=eo.attributes[wr];eo.collapsed&&(!mi||at(mi.marker,eo)<0)&&(mi=qi)}else qi.from>ke&&Ht>qi.from&&(Ht=qi.from)}if(Di)for(var ss=0;ss<Di.length;ss+=2)Di[ss+1]==Ht&&(Rn+=" "+Di[ss]);if(!mi||mi.from==ke)for(var ha=0;ha<gi.length;++ha)oc(v,0,gi[ha]);if(mi&&(mi.from||0)==ke){if(oc(v,(mi.to==null?_e+1:mi.to)-ke,mi.marker,mi.from==null),mi.to==null)return;mi.to==ke&&(mi=!1)}}if(ke>=_e)break;for(var Hr=Math.min(_e,Ht);;){if(vt){var _s=ke+vt.length;if(!mi){var bs=_s>Hr?vt.slice(0,Hr-ke):vt;v.addToken(v,bs,It?It+_n:_n,oi,ke+bs.length==Ht?Rn:"",Jt,Ci)}if(_s>=Hr){vt=vt.slice(Hr-ke),ke=Hr;break}ke=_s,oi=""}vt=F.slice(Z,Z=B[Le++]),It=vd(B[Le++],v.cm.options)}}}function fm(d,v,B){this.line=v,this.rest=no(v),this.size=this.rest?$e($n(this.rest))-B+1:1,this.node=this.text=null,this.hidden=gr(d,v)}function vh(d,v,B){for(var E=[],F,Z=v;Z<B;Z=F){var fe=new fm(d.doc,Mi(d.doc,Z),Z);F=Z+fe.size,E.push(fe)}return E}var _d=null;function o0(d){_d?_d.ops.push(d):d.ownsGroup=_d={ops:[d],delayedCallbacks:[]}}function Df(d){var v=d.delayedCallbacks,B=0;do{for(;B<v.length;B++)v[B].call(null);for(var E=0;E<d.ops.length;E++){var F=d.ops[E];if(F.cursorActivityHandlers)for(;F.cursorActivityCalled<F.cursorActivityHandlers.length;)F.cursorActivityHandlers[F.cursorActivityCalled++].call(null,F.cm)}}while(B<v.length)}function Rf(d,v){var B=d.ownsGroup;if(B)try{Df(B)}finally{_d=null,v(B)}}var VA=null;function is(d,v){var B=ht(d,v);if(B.length){var E=Array.prototype.slice.call(arguments,2),F;_d?F=_d.delayedCallbacks:VA?F=VA:(F=VA=[],setTimeout(bd,0));for(var Z=function(_e){F.push(function(){return B[_e].apply(null,E)})},fe=0;fe<B.length;++fe)Z(fe)}}function bd(){var d=VA;VA=null;for(var v=0;v<d.length;++v)d[v]()}function zl(d,v,B,E){for(var F=0;F<v.changes.length;F++){var Z=v.changes[F];Z=="text"?Wh(d,v):Z=="gutter"?Ch(d,v,B,E):Z=="class"?Pf(d,v):Z=="widget"&&_h(d,v,E)}v.changes=null}function xd(d){return d.node==d.text&&(d.node=xe("div",null,null,"position: relative"),d.text.parentNode&&d.text.parentNode.replaceChild(d.node,d.text),d.node.appendChild(d.text),p&&C<8&&(d.node.style.zIndex=2)),d.node}function Gh(d,v){var B=v.bgClass?v.bgClass+" "+(v.line.bgClass||""):v.line.bgClass;if(B&&(B+=" CodeMirror-linebackground"),v.background)B?v.background.className=B:(v.background.parentNode.removeChild(v.background),v.background=null);else if(B){var E=xd(v);v.background=E.insertBefore(xe("div",null,B),E.firstChild),d.display.input.setUneditable(v.background)}}function Hc(d,v){var B=d.display.externalMeasured;return B&&B.line==v.line?(d.display.externalMeasured=null,v.measure=B.measure,B.built):Ku(d,v)}function Wh(d,v){var B=v.text.className,E=Hc(d,v);v.text==v.node&&(v.node=E.pre),v.text.parentNode.replaceChild(E.pre,v.text),v.text=E.pre,E.bgClass
Line truncated
|
||||
top: `+Di+"px; width: "+(sr??ke-gi)+`px;
|
||||
height: `+(qi-Di)+"px"))}function It(gi,Di,sr){var qi=Mi(F,gi),eo=qi.text.length,wr,ss;function ha(bs,da){return Sn(d,rn(gi,bs),"div",qi,da)}function Hr(bs,da,$l){var ks=Ro(d,qi,null,bs),Ws=da=="ltr"==($l=="after")?"left":"right",Ir=$l=="after"?ks.begin:ks.end-(/\s/.test(qi.text.charAt(ks.end-1))?2:1);return ha(Ir,Ws)[Ws]}var _s=Ze(qi,F.direction);return We(_s,Di||0,sr??eo,function(bs,da,$l,ks){var Ws=$l=="ltr",Ir=ha(bs,Ws?"left":"right"),Oa=ha(da-1,Ws?"right":"left"),Zl=Di==null&&bs==0,mc=sr==null&&da==eo,mA=ks==0,ah=!_s||ks==_s.length-1;if(Oa.top-Ir.top<=3){var fs=(Le?Zl:mc)&&mA,Su=(Le?mc:Zl)&&ah,wl=fs?_e:(Ws?Ir:Oa).left,gc=Su?ke:(Ws?Oa:Ir).right;vt(wl,Ir.top,gc-wl,Ir.bottom)}else{var ll,gA,Zu,ad;Ws?(ll=Le&&Zl&&mA?_e:Ir.left,gA=Le?ke:Hr(bs,$l,"before"),Zu=Le?_e:Hr(da,$l,"after"),ad=Le&&mc&&ah?ke:Oa.right):(ll=Le?Hr(bs,$l,"before"):_e,gA=!Le&&Zl&&mA?ke:Ir.right,Zu=!Le&&mc&&ah?_e:Oa.left,ad=Le?Hr(da,$l,"after"):ke),vt(ll,Ir.top,gA-ll,Ir.bottom),Ir.bottom<Oa.top&&vt(_e,Ir.bottom,null,Oa.top),vt(Zu,Oa.top,ad-Zu,Oa.bottom)}(!wr||Ac(Ir,wr)<0)&&(wr=Ir),Ac(Oa,wr)<0&&(wr=Oa),(!ss||Ac(Ir,ss)<0)&&(ss=Ir),Ac(Oa,ss)<0&&(ss=Oa)}),{start:wr,end:ss}}var Jt=v.from(),Ht=v.to();if(Jt.line==Ht.line)It(Jt.line,Jt.ch,Ht.ch);else{var _n=Mi(F,Jt.line),Rn=Mi(F,Ht.line),oi=Ri(_n)==Ri(Rn),mi=It(Jt.line,Jt.ch,oi?_n.text.length+1:null).end,Ci=It(Ht.line,oi?0:null,Ht.ch).start;oi&&(mi.top<Ci.top-2?(vt(mi.right,mi.top,null,mi.bottom),vt(_e,Ci.top,Ci.left,Ci.bottom)):vt(mi.right,mi.top,Ci.left-mi.right,mi.bottom)),mi.bottom<Ci.top&&vt(_e,mi.bottom,null,Ci.top)}B.appendChild(Z)}function Oc(d){if(d.state.focused){var v=d.display;clearInterval(v.blinker);var B=!0;v.cursorDiv.style.visibility="",d.options.cursorBlinkRate>0?v.blinker=setInterval(function(){d.hasFocus()||mu(d),v.cursorDiv.style.visibility=(B=!B)?"":"hidden"},d.options.cursorBlinkRate):d.options.cursorBlinkRate<0&&(v.cursorDiv.style.visibility="hidden")}}function Os(d){d.hasFocus()||(d.display.input.focus(),d.state.focused||Bd(d))}function Mh(d){d.state.delayingBlurEvent=!0,setTimeout(function(){d.state.delayingBlurEvent&&(d.state.delayingBlurEvent=!1,d.state.focused&&mu(d))},100)}function Bd(d,v){d.state.delayingBlurEvent&&!d.state.draggingText&&(d.state.delayingBlurEvent=!1),d.options.readOnly!="nocursor"&&(d.state.focused||(it(d,"focus",d,v),d.state.focused=!0,be(d.display.wrapper,"CodeMirror-focused"),!d.curOp&&d.display.selForContextMenu!=d.doc.sel&&(d.display.input.reset(),M&&setTimeout(function(){return d.display.input.reset(!0)},20)),d.display.input.receivedFocus()),Oc(d))}function mu(d,v){d.state.delayingBlurEvent||(d.state.focused&&(it(d,"blur",d,v),d.state.focused=!1,Ie(d.display.wrapper,"CodeMirror-focused")),clearInterval(d.display.blinker),setTimeout(function(){d.state.focused||(d.display.shift=!1)},150))}function Od(d){for(var v=d.display,B=v.lineDiv.offsetTop,E=Math.max(0,v.scroller.getBoundingClientRect().top),F=v.lineDiv.getBoundingClientRect().top,Z=0,fe=0;fe<v.view.length;fe++){var _e=v.view[fe],ke=d.options.lineWrapping,Le=void 0,vt=0;if(!_e.hidden){if(F+=_e.line.height,p&&C<8){var It=_e.node.offsetTop+_e.node.offsetHeight;Le=It-B,B=It}else{var Jt=_e.node.getBoundingClientRect();Le=Jt.bottom-Jt.top,!ke&&_e.text.firstChild&&(vt=_e.text.firstChild.getBoundingClientRect().right-Jt.left-1)}var Ht=_e.line.height-Le;if((Ht>.005||Ht<-.005)&&(F<E&&(Z-=Ht),Zo(_e.line,Le),Zc(_e.line),_e.rest))for(var _n=0;_n<_e.rest.length;_n++)Zc(_e.rest[_n]);if(vt>d.display.sizerWidth){var Rn=Math.ceil(vt/EA(d.display));Rn>d.display.maxLineLength&&(d.display.maxLineLength=Rn,d.display.maxLine=_e.line,d.display.maxLineChanged=!0)}}}Math.abs(Z)>2&&(v.scroller.scrollTop+=Z)}function Zc(d){if(d.widgets)for(var v=0;v<d.widgets.length;++v){var B=d.widgets[v],E=B.node.parentNode;E&&(B.height=E.offsetHeight)}}function IA(d,v,B){var E=B&&B.top!=null?Math.max(0,B.top):d.scroller.scrollTop;E=Math.floor(E-wc(d));var F=B&&B.bottom!=null?B.bottom:E+d.wrapper.clientHeight,Z=Et(v,E),fe=Et(v,F);if(B&&B.ensure){var _e=B.ensure.from.line,ke=B.ensure.to.line;_e<Z?(Z=_e,fe=Et(v,Go(Mi(v,_e))+d.wrapper.clientHeight)):Math.min(ke,v.lastLine())>=fe&&(Z=Et(v,Go(Mi(v,ke))-d.wrapper.clientHeight),fe=ke)}return{from:Z,to:Math.max(fe,Z+1)}}function Fu(d,v){if(!en(d,"scrollCursorIntoView")){var B=d.display,E=B.sizer.getBoundingClientRect(),F=null,Z=B.wrapper.ownerDocument;if(v.top+E.top<0?F=!0:v.bottom+E.top>(Z.defaultView.innerHeight||Z.documentElement.clientHeight)&&(F=!1),F!=null&&!te){var fe=xe("div","",null,`position: absolute;
|
||||
top: `+(v.top-B.viewOffset-wc(d.display))+`px;
|
||||
height: `+(v.bottom-v.top+Uu(d)+B.barHeight)+`px;
|
||||
left: `+v.left+"px; width: "+Math.max(2,v.right-v.left)+"px;");d.display.lineSpace.appendChild(fe),fe.scrollIntoView(F),d.display.lineSpace.removeChild(fe)}}}function wh(d,v,B,E){E==null&&(E=0);var F;!d.options.lineWrapping&&v==B&&(B=v.sticky=="before"?rn(v.line,v.ch+1,"before"):v,v=v.ch?rn(v.line,v.sticky=="before"?v.ch-1:v.ch,"after"):v);for(var Z=0;Z<5;Z++){var fe=!1,_e=vn(d,v),ke=!B||B==v?_e:vn(d,B);F={left:Math.min(_e.left,ke.left),top:Math.min(_e.top,ke.top)-E,right:Math.max(_e.left,ke.left),bottom:Math.max(_e.bottom,ke.bottom)+E};var Le=TA(d,F),vt=d.doc.scrollTop,It=d.doc.scrollLeft;if(Le.scrollTop!=null&&(Xc(d,Le.scrollTop),Math.abs(d.doc.scrollTop-vt)>1&&(fe=!0)),Le.scrollLeft!=null&&(_a(d,Le.scrollLeft),Math.abs(d.doc.scrollLeft-It)>1&&(fe=!0)),!fe)break}return F}function Vh(d,v){var B=TA(d,v);B.scrollTop!=null&&Xc(d,B.scrollTop),B.scrollLeft!=null&&_a(d,B.scrollLeft)}function TA(d,v){var B=d.display,E=SA(d.display);v.top<0&&(v.top=0);var F=d.curOp&&d.curOp.scrollTop!=null?d.curOp.scrollTop:B.scroller.scrollTop,Z=Yh(d),fe={};v.bottom-v.top>Z&&(v.bottom=v.top+Z);var _e=d.doc.height+Md(B),ke=v.top<E,Le=v.bottom>_e-E;if(v.top<F)fe.scrollTop=ke?0:v.top;else if(v.bottom>F+Z){var vt=Math.min(v.top,(Le?_e:v.bottom)-Z);vt!=F&&(fe.scrollTop=vt)}var It=d.options.fixedGutter?0:B.gutters.offsetWidth,Jt=d.curOp&&d.curOp.scrollLeft!=null?d.curOp.scrollLeft:B.scroller.scrollLeft-It,Ht=$A(d)-B.gutters.offsetWidth,_n=v.right-v.left>Ht;return _n&&(v.right=v.left+Ht),v.left<10?fe.scrollLeft=0:v.left<Jt?fe.scrollLeft=Math.max(0,v.left+It-(_n?0:10)):v.right>Ht+Jt-3&&(fe.scrollLeft=v.right+(_n?0:10)-Ht),fe}function Dl(d,v){v!=null&&(ju(d),d.curOp.scrollTop=(d.curOp.scrollTop==null?d.doc.scrollTop:d.curOp.scrollTop)+v)}function Qo(d){ju(d);var v=d.getCursor();d.curOp.scrollToPos={from:v,to:v,margin:d.options.cursorScrollMargin}}function la(d,v,B){(v!=null||B!=null)&&ju(d),v!=null&&(d.curOp.scrollLeft=v),B!=null&&(d.curOp.scrollTop=B)}function zu(d,v){ju(d),d.curOp.scrollToPos=v}function ju(d){var v=d.curOp.scrollToPos;if(v){d.curOp.scrollToPos=null;var B=Ti(d,v.from),E=Ti(d,v.to);Ic(d,B,E,v.margin)}}function Ic(d,v,B,E){var F=TA(d,{left:Math.min(v.left,B.left),top:Math.min(v.top,B.top)-E,right:Math.max(v.right,B.right),bottom:Math.max(v.bottom,B.bottom)+E});la(d,F.scrollLeft,F.scrollTop)}function Xc(d,v){Math.abs(d.doc.scrollTop-v)<2||(r||Ma(d,{top:v}),Jc(d,v,!0),r&&Ma(d),th(d,100))}function Jc(d,v,B){v=Math.max(0,Math.min(d.display.scroller.scrollHeight-d.display.scroller.clientHeight,v)),!(d.display.scroller.scrollTop==v&&!B)&&(d.doc.scrollTop=v,d.display.scrollbars.setScrollTop(v),d.display.scroller.scrollTop!=v&&(d.display.scroller.scrollTop=v))}function _a(d,v,B,E){v=Math.max(0,Math.min(v,d.display.scroller.scrollWidth-d.display.scroller.clientWidth)),!((B?v==d.doc.scrollLeft:Math.abs(d.doc.scrollLeft-v)<2)&&!E)&&(d.doc.scrollLeft=v,nf(d),d.display.scroller.scrollLeft!=v&&(d.display.scroller.scrollLeft=v),d.display.scrollbars.setScrollLeft(v))}function xa(d){var v=d.display,B=v.gutters.offsetWidth,E=Math.round(d.doc.height+Md(d.display));return{clientHeight:v.scroller.clientHeight,viewHeight:v.wrapper.clientHeight,scrollWidth:v.scroller.scrollWidth,clientWidth:v.scroller.clientWidth,viewWidth:v.wrapper.clientWidth,barLeft:d.options.fixedGutter?B:0,docHeight:E,scrollHeight:E+Uu(d)+v.barHeight,nativeBarWidth:v.nativeBarWidth,gutterWidth:B}}var Xr=function(d,v,B){this.cm=B;var E=this.vert=xe("div",[xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),F=this.horiz=xe("div",[xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");E.tabIndex=F.tabIndex=-1,d(E),d(F),mt(E,"scroll",function(){E.clientHeight&&v(E.scrollTop,"vertical")}),mt(F,"scroll",function(){F.clientWidth&&v(F.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&C<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Xr.prototype.update=function(d){var v=d.scrollWidth>d.clientWidth+1,B=d.scrollHeight>d.clientHeight+1,E=d.nativeBarWidth;if(B){this.vert.style.display="block",this.vert.style.bottom=v?E+"px":"0";var F=d.viewHeight-(v?E:0);this.vert.firstChild.style.height=Math.max(0,d.scrollHeight-d.clientHeight+F)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(v){this.horiz.style.display="block",this.horiz.style.right=B?E+"px":"0",this.horiz.style.left=d.barLeft+"px";var Z=d.viewWidth-d.barLeft-(B?E:0);this.horiz.firstChild.style.width=Math.max(0,d.scrollWidth-d.clientWidth+Z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&d.clientHeight>0&&(E==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:B?E:0,bottom:v?E:0}},Xr.prototype.setScrollLeft=function(d){this.horiz.scrollLeft!=d&&(this.horiz.scrollLeft=d),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Xr.prototype.setScrollTop=function(d){this.vert.scrollTop!=d&&(this.vert.scrollTop=d),thi
Line truncated
|
||||
`},setDirection:vs(function(d){d!="rtl"&&(d="ltr"),d!=this.direction&&(this.direction=d,this.iter(function(v){return v.order=null}),this.cm&&vu(this.cm))})}),At.prototype.eachLine=At.prototype.iter;var ct=0;function ft(d){var v=this;if(wt(v),!(en(v,d)||sA(v.display,d))){Wn(d),p&&(ct=+new Date);var B=Wa(v,d,!0),E=d.dataTransfer.files;if(!(!B||v.isReadOnly()))if(E&&E.length&&window.FileReader&&window.File)for(var F=E.length,Z=Array(F),fe=0,_e=function(){++fe==F&&Jo(v,function(){B=Yi(v.doc,B);var Ht={from:B,to:B,text:v.doc.splitLines(Z.filter(function(_n){return _n!=null}).join(v.doc.lineSeparator())),origin:"paste"};Js(v.doc,Ht),cA(v.doc,Wu(Yi(v.doc,B),Yi(v.doc,Qu(Ht))))})()},ke=function(Ht,_n){if(v.options.allowDropFileTypes&&He(v.options.allowDropFileTypes,Ht.type)==-1){_e();return}var Rn=new FileReader;Rn.onerror=function(){return _e()},Rn.onload=function(){var oi=Rn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(oi)){_e();return}Z[_n]=oi,_e()},Rn.readAsText(Ht)},Le=0;Le<E.length;Le++)ke(E[Le],Le);else{if(v.state.draggingText&&v.doc.sel.contains(B)>-1){v.state.draggingText(d),setTimeout(function(){return v.display.input.focus()},20);return}try{var vt=d.dataTransfer.getData("Text");if(vt){var It;if(v.state.draggingText&&!v.state.draggingText.copy&&(It=v.listSelections()),go(v.doc,Wu(B,B)),It)for(var Jt=0;Jt<It.length;++Jt)ql(v.doc,"",It[Jt].anchor,It[Jt].head,"drag");v.replaceSelection(vt,"around","paste"),v.display.input.focus()}}catch{}}}}function xt(d,v){if(p&&(!d.state.draggingText||+new Date-ct<100)){Ei(v);return}if(!(en(d,v)||sA(d.display,v))&&(v.dataTransfer.setData("Text",d.getSelection()),v.dataTransfer.effectAllowed="copyMove",v.dataTransfer.setDragImage&&!W)){var B=xe("img",null,null,"position: fixed; left: 0; top: 0;");B.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",j&&(B.width=B.height=1,d.display.wrapper.appendChild(B),B._top=B.offsetTop),v.dataTransfer.setDragImage(B,0,0),j&&B.parentNode.removeChild(B)}}function yt(d,v){var B=Wa(d,v);if(B){var E=document.createDocumentFragment();Dr(d,B,E),d.display.dragCursor||(d.display.dragCursor=xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),d.display.lineSpace.insertBefore(d.display.dragCursor,d.display.cursorDiv)),Ve(d.display.dragCursor,E)}}function wt(d){d.display.dragCursor&&(d.display.lineSpace.removeChild(d.display.dragCursor),d.display.dragCursor=null)}function Pt(d){if(document.getElementsByClassName){for(var v=document.getElementsByClassName("CodeMirror"),B=[],E=0;E<v.length;E++){var F=v[E].CodeMirror;F&&B.push(F)}B.length&&B[0].operation(function(){for(var Z=0;Z<B.length;Z++)d(B[Z])})}}var Ft=!1;function Bt(){Ft||(Yt(),Ft=!0)}function Yt(){var d;mt(window,"resize",function(){d==null&&(d=setTimeout(function(){d=null,Pt(dn)},100))}),mt(window,"blur",function(){return Pt(mu)})}function dn(d){var v=d.display;v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.scrollbarsClipped=!1,d.setSize()}for(var Xt={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"},nn=0;nn<10;nn++)Xt[nn+48]=Xt[nn+96]=String(nn);for(var An=65;An<=90;An++)Xt[An]=String.fromCharCode(An);for(var qn=1;qn<=12;qn++)Xt[qn+111]=Xt[qn+63235]="F"+qn;var Qn={};Qn.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"},Qn.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"},Qn.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","CtrlLine truncated
|
||||
`,"start")},toggleOverwrite:function(d){return d.toggleOverwrite()}};function Ts(d,v){var B=Mi(d.doc,v),E=Ri(B);return E!=B&&(v=$e(E)),as(!0,d,E,v,1)}function qu(d,v){var B=Mi(d.doc,v),E=Ji(B);return E!=B&&(v=$e(E)),as(!0,d,B,v,-1)}function fc(d,v){var B=Ts(d,v.line),E=Mi(d.doc,B.line),F=Ze(E,d.doc.direction);if(!F||F[0].level==0){var Z=Math.max(B.ch,E.text.search(/\S/)),fe=v.line==B.line&&v.ch<=Z&&v.ch;return rn(B.line,fe?0:Z,B.sticky)}return B}function Hl(d,v,B){if(typeof v=="string"&&(v=Is[v],!v))return!1;d.display.input.ensurePolled();var E=d.display.shift,F=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),B&&(d.display.shift=!1),F=v(d)!=_t}finally{d.display.shift=E,d.state.suppressEdits=!1}return F}function Th(d,v,B){for(var E=0;E<d.state.keyMaps.length;E++){var F=hr(v,d.state.keyMaps[E],B,d);if(F)return F}return d.options.extraKeys&&hr(v,d.options.extraKeys,B,d)||hr(v,d.options.keyMap,B,d)}var oh=new Re;function Hu(d,v,B,E){var F=d.state.keySeq;if(F){if(_o(v))return"handled";if(/\'$/.test(v)?d.state.keySeq=null:oh.set(50,function(){d.state.keySeq==F&&(d.state.keySeq=null,d.display.input.reset())}),Kc(d,F+" "+v,B,E))return!0}return Kc(d,v,B,E)}function Kc(d,v,B,E){var F=Th(d,v,E);return F=="multi"&&(d.state.keySeq=v),F=="handled"&&is(d,"keyHandled",d,v,B),(F=="handled"||F=="multi")&&(Wn(B),Oc(d)),!!F}function xl(d,v){var B=Fo(v,!0);return B?v.shiftKey&&!d.state.keySeq?Hu(d,"Shift-"+B,v,function(E){return Hl(d,E,!0)})||Hu(d,B,v,function(E){if(typeof E=="string"?/^go[A-Z]/.test(E):E.motion)return Hl(d,E)}):Hu(d,B,v,function(E){return Hl(d,E)}):!1}function Vu(d,v,B){return Hu(d,"'"+B+"'",v,function(E){return Hl(d,E,!0)})}var Ml=null;function Uc(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&(v.curOp.focus=nt(kt(v)),!en(v,d))){p&&C<11&&d.keyCode==27&&(d.returnValue=!1);var B=d.keyCode;v.display.shift=B==16||d.shiftKey;var E=xl(v,d);j&&(Ml=E?B:null,!E&&B==88&&!Ar&&($?d.metaKey:d.ctrlKey)&&v.replaceSelection("",null,"cut")),r&&!$&&!E&&B==46&&d.shiftKey&&!d.ctrlKey&&document.execCommand&&document.execCommand("cut"),B==18&&!/\bCodeMirror-crosshair\b/.test(v.display.lineDiv.className)&&bo(v)}}function bo(d){var v=d.display.lineDiv;be(v,"CodeMirror-crosshair");function B(E){(E.keyCode==18||!E.altKey)&&(Ie(v,"CodeMirror-crosshair"),Tt(document,"keyup",B),Tt(document,"mouseover",B))}mt(document,"keyup",B),mt(document,"mouseover",B)}function ea(d){d.keyCode==16&&(this.doc.sel.shift=!1),en(this,d)}function dA(d){var v=this;if(!(d.target&&d.target!=v.display.input.getField())&&!(sA(v.display,d)||en(v,d)||d.ctrlKey&&!d.altKey||$&&d.metaKey)){var B=d.keyCode,E=d.charCode;if(j&&B==Ml){Ml=null,Wn(d);return}if(!(j&&(!d.which||d.which<10)&&xl(v,d))){var F=String.fromCharCode(E??B);F!="\b"&&(Vu(v,d,F)||v.display.input.onKeyPress(d))}}}var Cs=400,bu=function(d,v,B){this.time=d,this.pos=v,this.button=B};bu.prototype.compare=function(d,v,B){return this.time+Cs>d&&si(v,this.pos)==0&&B==this.button};var fA,PA;function Vl(d,v){var B=+new Date;return PA&&PA.compare(B,d,v)?(fA=PA=null,"triple"):fA&&fA.compare(B,d,v)?(PA=new bu(B,d,v),fA=null,"double"):(fA=new bu(B,d,v),PA=null,"single")}function Lc(d){var v=this,B=v.display;if(!(en(v,d)||B.activeTouch&&B.input.supportsTouch())){if(B.input.ensurePolled(),B.shift=d.shiftKey,sA(B,d)){M||(B.scroller.draggable=!1,setTimeout(function(){return B.scroller.draggable=!0},100));return}if(!rd(v,d)){var E=Wa(v,d),F=ti(d),Z=E?Vl(E,F):"single";St(v).focus(),F==1&&v.state.selectingText&&v.state.selectingText(d),!(E&&nu(v,F,E,Z,d))&&(F==1?E?xu(v,E,Z,d):hi(d)==B.scroller&&Wn(d):F==2?(E&&Yu(v.doc,E),setTimeout(function(){return B.input.focus()},20)):F==3&&(ye?v.display.input.onContextMenu(d):Mh(v)))}}}function nu(d,v,B,E,F){var Z="Click";return E=="double"?Z="Double"+Z:E=="triple"&&(Z="Triple"+Z),Z=(v==1?"Left":v==2?"Middle":"Right")+Z,Hu(d,ua(Z,F),F,function(fe){if(typeof fe=="string"&&(fe=Is[fe]),!fe)return!1;var _e=!1;try{d.isReadOnly()&&(d.state.suppressEdits=!0),_e=fe(d,B)!=_t}finally{d.state.suppressEdits=!1}return _e})}function Ha(d,v,B){var E=d.getOption("configureMouse"),F=E?E(d,v,B):{};if(F.unit==null){var Z=ae?B.shiftKey&&B.metaKey:B.altKey;F.unit=Z?"rectangle":v=="single"?"char":v=="double"?"word":"line"}return(F.extend==null||d.doc.extend)&&(F.extend=d.doc.extend||B.shiftKey),F.addNew==null&&(F.addNew=$?B.metaKey:B.ctrlKey),F.moveOnDrag==null&&(F.moveOnDrag=!($?B.altKey:B.ctrlKey)),F}function xu(d,v,B,E){p?setTimeout(Ut(Os,d),0):d.curOp.focus=nt(kt(d));var F=Ha(d,B,E),Z=d.doc.sel,fe;d.options.dragDrop&&Qi&&!d.isReadOnly()&&B=="single"&&(fe=Z.contains(v))>-1&&(si((fe=Z.ranges[fe]).from(),v)<0||v.xRel>0)&&(si(fe.to(),v)>0||v.xRel<0)?Nf(d,E,v,F):wu(d,E,v,F)}function Nf(d,v,B,E){var F=d.display,Z=!1,fe=Jo(d,function(Le){M&&(F.scroller.draggable=!1),d.state.draggingText=!1,d.state.delayingBlurEvent&&(d.hasFocus()?d.state.delayingBlurEvent=!1:Mh(d)),Tt(F.wrapper.ownerDocument,"mouseup",fe),Tt(F.wrapper.ownerDocument,"mousemove",_e),Tt(F.scroller,"dragstart",ke),Tt(F.scro
Line truncated
|
||||
`)==v){if(E.ranges.length%ru.text.length==0){Le=[];for(var vt=0;vt<ru.text.length;vt++)Le.push(Z.splitLines(ru.text[vt]))}}else ke.length==E.ranges.length&&d.options.pasteLinesPerSelection&&(Le=On(ke,function(mi){return[mi]}));for(var It=d.curOp.updateInput,Jt=E.ranges.length-1;Jt>=0;Jt--){var Ht=E.ranges[Jt],_n=Ht.from(),Rn=Ht.to();Ht.empty()&&(B&&B>0?_n=rn(_n.line,_n.ch-B):d.state.overwrite&&!_e?Rn=rn(Rn.line,Math.min(Mi(Z,Rn.line).text.length,Rn.ch+$n(ke).length)):_e&&ru&&ru.lineWise&&ru.text.join(`
|
||||
`)==ke.join(`
|
||||
`)&&(_n=Rn=rn(_n.line,0)));var oi={from:_n,to:Rn,text:Le?Le[Jt%Le.length]:ke,origin:F||(_e?"paste":d.state.cutIncoming>fe?"cut":"+input")};Zs(d.doc,oi),es(d,"inputRead",d,oi)}v&&!_e&&Qf(d,v),Wo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=It),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function cs(d,v){var B=d.clipboardData&&d.clipboardData.getData("Text");if(B)return d.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&v.hasFocus()&&Ga(v,function(){return Xs(v,B,0,null,"paste")}),!0}function Qf(d,v){if(!(!d.options.electricChars||!d.options.smartIndent))for(var B=d.doc.sel,E=B.ranges.length-1;E>=0;E--){var F=B.ranges[E];if(!(F.head.ch>100||E&&B.ranges[E-1].head.line==F.head.line)){var Z=d.getModeAt(F.head),fe=!1;if(Z.electricChars){for(var _e=0;_e<Z.electricChars.length;_e++)if(v.indexOf(Z.electricChars.charAt(_e))>-1){fe=Wf(d,F.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Mi(d.doc,F.head.line).text.slice(0,F.head.ch))&&(fe=Wf(d,F.head.line,"smart"));fe&&es(d,"electricInput",d,F.head.line)}}}function Op(d){for(var v=[],B=[],E=0;E<d.doc.sel.ranges.length;E++){var F=d.doc.sel.ranges[E].head.line,Z={anchor:rn(F,0),head:rn(F+1,0)};B.push(Z),v.push(d.getRange(Z.anchor,Z.head))}return{text:v,ranges:B}}function Yf(d,v,B,E){d.setAttribute("autocorrect",B?"on":"off"),d.setAttribute("autocapitalize",E?"on":"off"),d.setAttribute("spellcheck",!!v)}function sf(){var d=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),v=xe("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return w?d.style.width="1000px":d.setAttribute("wrap","off"),J&&(d.style.border="1px solid black"),v}function Dd(d){var v=d.optionHandlers,B=d.helpers={};d.prototype={constructor:d,focus:function(){St(this).focus(),this.display.input.focus()},setOption:function(E,F){var Z=this.options,fe=Z[E];Z[E]==F&&E!="mode"||(Z[E]=F,v.hasOwnProperty(E)&&Zo(this,v[E])(this,F,fe),it(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,F){this.state.keyMaps[F?"push":"unshift"](Pa(E))},removeKeyMap:function(E){for(var F=this.state.keyMaps,Z=0;Z<F.length;++Z)if(F[Z]==E||F[Z].name==E)return F.splice(Z,1),!0},addOverlay:gr(function(E,F){var Z=E.token?E:d.getMode(this.options,E);if(Z.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:Z,modeSpec:E,opaque:F&&F.opaque,priority:F&&F.priority||0},function(fe){return fe.priority}),this.state.modeGen++,Es(this)}),removeOverlay:gr(function(E){for(var F=this.state.overlays,Z=0;Z<F.length;++Z){var fe=F[Z].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){F.splice(Z,1),this.state.modeGen++,Es(this);return}}}),indentLine:gr(function(E,F,Z){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),xn(this.doc,E)&&Wf(this,E,F,Z)}),indentSelection:gr(function(E){for(var F=this.doc.sel.ranges,Z=-1,fe=0;fe<F.length;fe++){var _e=F[fe];if(_e.empty())_e.head.line>Z&&(Wf(this,_e.head.line,E,!0),Z=_e.head.line,fe==this.doc.sel.primIndex&&Wo(this));else{var ke=_e.from(),Le=_e.to(),vt=Math.max(Z,ke.line);Z=Math.min(this.lastLine(),Le.line-(Le.ch?0:1))+1;for(var It=vt;It<Z;++It)Wf(this,It,E);var Jt=this.doc.sel.ranges;ke.ch==0&&F.length==Jt.length&&Jt[fe].from().ch>0&&ki(this.doc,fe,new Xr(ke,Jt[fe].to()),Ot)}}}),getTokenAt:function(E,F){return Ul(this,E,F)},getLineTokens:function(E,F){return Ul(this,rn(E),F,!0)},getTokenTypeAt:function(E){E=Qi(this.doc,E);var F=Ys(this,Mi(this.doc,E.line)),Z=0,fe=(F.length-1)/2,_e=E.ch,ke;if(_e==0)ke=F[2];else for(;;){var Le=Z+fe>>1;if((Le?F[Le*2-1]:0)>=_e)fe=Le;else if(F[Le*2+1]<_e)Z=Le+1;else{ke=F[Le*2+2];break}}var vt=ke?ke.indexOf("overlay "):-1;return vt<0?ke:vt==0?null:ke.slice(0,vt-1)},getModeAt:function(E){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(E).state).mode:F},getHelper:function(E,F){return this.getHelpers(E,F)[0]},getHelpers:function(E,F){var Z=[];if(!B.hasOwnProperty(F))return Z;var fe=B[F],_e=this.getModeAt(E);if(typeof _e[F]=="string")fe[_e[F]]&&Z.push(fe[_e[F]]);else if(_e[F])for(var ke=0;ke<_e[F].length;ke++){var Le=fe[_e[F][ke]];Le&&Z.push(Le)}else _e.helperType&&fe[_e.helperType]?Z.push(fe[_e.helperType]):fe[_e.name]&&Z.push(fe[_e.name]);for(var vt=0;vt<fe._global.length;vt++){var It=fe._global[vt];It.pred(_e,this)&&He(Z,It.val)==-1&&Z.push(It.val)}return Z},getStateAfter:function(E,F){var Z=this.doc;return E=Qu(Z,E??Z.first+Z.size-1),$o(this,E+1,F).state},cursorCoords:function(E,F){var Z,fe=this.doc.sel.primary();return E==null?Z=fe.head:typeof E=="object"?Z=Qi(this.doc,E):Z=E?fe.from():fe.to(),vn(this,Z,F||"page")},charCoords:function(E,F){return Sn(this,Qi(this.doc,E),F||"page")},coordsChar:function(E,F){return E=Zt(this,E,F||"page"),Oo(this,E.left,E.top)},lineAtHeight:function(E,F){return E=Zt(this,{top:E,left:0},F||"page").top,Et(
Line truncated
|
||||
`)&&(_n=Rn=rn(_n.line,0)));var oi={from:_n,to:Rn,text:Le?Le[Jt%Le.length]:ke,origin:F||(_e?"paste":d.state.cutIncoming>fe?"cut":"+input")};Js(d.doc,oi),is(d,"inputRead",d,oi)}v&&!_e&&qf(d,v),Qo(d),d.curOp.updateInput<2&&(d.curOp.updateInput=It),d.curOp.typing=!0,d.state.pasteIncoming=d.state.cutIncoming=-1}function ds(d,v){var B=d.clipboardData&&d.clipboardData.getData("Text");if(B)return d.preventDefault(),!v.isReadOnly()&&!v.options.disableInput&&v.hasFocus()&&Qa(v,function(){return el(v,B,0,null,"paste")}),!0}function qf(d,v){if(!(!d.options.electricChars||!d.options.smartIndent))for(var B=d.doc.sel,E=B.ranges.length-1;E>=0;E--){var F=B.ranges[E];if(!(F.head.ch>100||E&&B.ranges[E-1].head.line==F.head.line)){var Z=d.getModeAt(F.head),fe=!1;if(Z.electricChars){for(var _e=0;_e<Z.electricChars.length;_e++)if(v.indexOf(Z.electricChars.charAt(_e))>-1){fe=Yf(d,F.head.line,"smart");break}}else Z.electricInput&&Z.electricInput.test(Mi(d.doc,F.head.line).text.slice(0,F.head.ch))&&(fe=Yf(d,F.head.line,"smart"));fe&&is(d,"electricInput",d,F.head.line)}}}function Ip(d){for(var v=[],B=[],E=0;E<d.doc.sel.ranges.length;E++){var F=d.doc.sel.ranges[E].head.line,Z={anchor:rn(F,0),head:rn(F+1,0)};B.push(Z),v.push(d.getRange(Z.anchor,Z.head))}return{text:v,ranges:B}}function Hf(d,v,B,E){d.setAttribute("autocorrect",B?"on":"off"),d.setAttribute("autocapitalize",E?"on":"off"),d.setAttribute("spellcheck",!!v)}function Af(){var d=xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),v=xe("div",[d],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?d.style.width="1000px":d.setAttribute("wrap","off"),J&&(d.style.border="1px solid black"),v}function Rd(d){var v=d.optionHandlers,B=d.helpers={};d.prototype={constructor:d,focus:function(){St(this).focus(),this.display.input.focus()},setOption:function(E,F){var Z=this.options,fe=Z[E];Z[E]==F&&E!="mode"||(Z[E]=F,v.hasOwnProperty(E)&&Jo(this,v[E])(this,F,fe),it(this,"optionChange",this,E))},getOption:function(E){return this.options[E]},getDoc:function(){return this.doc},addKeyMap:function(E,F){this.state.keyMaps[F?"push":"unshift"](La(E))},removeKeyMap:function(E){for(var F=this.state.keyMaps,Z=0;Z<F.length;++Z)if(F[Z]==E||F[Z].name==E)return F.splice(Z,1),!0},addOverlay:yr(function(E,F){var Z=E.token?E:d.getMode(this.options,E);if(Z.startState)throw new Error("Overlays may not be stateful.");Bn(this.state.overlays,{mode:Z,modeSpec:E,opaque:F&&F.opaque,priority:F&&F.priority||0},function(fe){return fe.priority}),this.state.modeGen++,Bs(this)}),removeOverlay:yr(function(E){for(var F=this.state.overlays,Z=0;Z<F.length;++Z){var fe=F[Z].modeSpec;if(fe==E||typeof E=="string"&&fe.name==E){F.splice(Z,1),this.state.modeGen++,Bs(this);return}}}),indentLine:yr(function(E,F,Z){typeof F!="string"&&typeof F!="number"&&(F==null?F=this.options.smartIndent?"smart":"prev":F=F?"add":"subtract"),xn(this.doc,E)&&Yf(this,E,F,Z)}),indentSelection:yr(function(E){for(var F=this.doc.sel.ranges,Z=-1,fe=0;fe<F.length;fe++){var _e=F[fe];if(_e.empty())_e.head.line>Z&&(Yf(this,_e.head.line,E,!0),Z=_e.head.line,fe==this.doc.sel.primIndex&&Qo(this));else{var ke=_e.from(),Le=_e.to(),vt=Math.max(Z,ke.line);Z=Math.min(this.lastLine(),Le.line-(Le.ch?0:1))+1;for(var It=vt;It<Z;++It)Yf(this,It,E);var Jt=this.doc.sel.ranges;ke.ch==0&&F.length==Jt.length&&Jt[fe].from().ch>0&&ki(this.doc,fe,new Jr(ke,Jt[fe].to()),Ot)}}}),getTokenAt:function(E,F){return Ll(this,E,F)},getLineTokens:function(E,F){return Ll(this,rn(E),F,!0)},getTokenTypeAt:function(E){E=Yi(this.doc,E);var F=Hs(this,Mi(this.doc,E.line)),Z=0,fe=(F.length-1)/2,_e=E.ch,ke;if(_e==0)ke=F[2];else for(;;){var Le=Z+fe>>1;if((Le?F[Le*2-1]:0)>=_e)fe=Le;else if(F[Le*2+1]<_e)Z=Le+1;else{ke=F[Le*2+2];break}}var vt=ke?ke.indexOf("overlay "):-1;return vt<0?ke:vt==0?null:ke.slice(0,vt-1)},getModeAt:function(E){var F=this.doc.mode;return F.innerMode?d.innerMode(F,this.getTokenAt(E).state).mode:F},getHelper:function(E,F){return this.getHelpers(E,F)[0]},getHelpers:function(E,F){var Z=[];if(!B.hasOwnProperty(F))return Z;var fe=B[F],_e=this.getModeAt(E);if(typeof _e[F]=="string")fe[_e[F]]&&Z.push(fe[_e[F]]);else if(_e[F])for(var ke=0;ke<_e[F].length;ke++){var Le=fe[_e[F][ke]];Le&&Z.push(Le)}else _e.helperType&&fe[_e.helperType]?Z.push(fe[_e.helperType]):fe[_e.name]&&Z.push(fe[_e.name]);for(var vt=0;vt<fe._global.length;vt++){var It=fe._global[vt];It.pred(_e,this)&&He(Z,It.val)==-1&&Z.push(It.val)}return Z},getStateAfter:function(E,F){var Z=this.doc;return E=YA(Z,E??Z.first+Z.size-1),Xo(this,E+1,F).state},cursorCoords:function(E,F){var Z,fe=this.doc.sel.primary();return E==null?Z=fe.head:typeof E=="object"?Z=Yi(this.doc,E):Z=E?fe.from():fe.to(),vn(this,Z,F||"page")},charCoords:function(E,F){return Sn(this,Yi(this.doc,E),F||"page")},coordsChar:function(E,F){return E=Zt(this,E,F||"page"),Io(this,E.left,E.top)},lineAtHeight:function(E,F){return E=Zt(this,{top:E,left:0},F||"page").top,Et(
Line truncated
|
||||
`,oi=je(Rn,Ht)?"w":Jt&&Rn==`
|
||||
`?"n":!Jt||/\s/.test(Rn)?null:"p";if(Jt&&!_n&&!oi&&(oi="s"),It&&It!=oi){B<0&&(B=1,vt(),v.sticky="after");break}if(oi&&(It=oi),B>0&&!vt(!_n))break}var mi=Wa(d,v,Z,fe,!0);return eo(Z,mi)&&(mi.hitSide=!0),mi}function lf(d,v,B,E){var F=d.doc,Z=v.left,fe;if(E=="page"){var _e=Math.min(d.display.wrapper.clientHeight,St(d).innerHeight||F(d).documentElement.clientHeight),ke=Math.max(_e-.5*wu(d.display),3);fe=(B>0?v.bottom:v.top)+B*ke}else E=="line"&&(fe=B>0?v.bottom+3:v.top-3);for(var Le;Le=Oo(d,Z,fe),!!Le.outside;){if(B<0?fe<=0:fe>=F.height){Le.hitSide=!0;break}fe+=B*5}return Le}var ea=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ea.prototype.init=function(d){var v=this,B=this,E=B.cm,F=B.div=d.lineDiv;F.contentEditable=!0,Yf(F,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function Z(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}mt(F,"paste",function(_e){!Z(_e)||en(E,_e)||cs(_e,E)||C<=11&&setTimeout(Zo(E,function(){return v.updateFromDOM()}),20)}),mt(F,"compositionstart",function(_e){v.composing={data:_e.data,done:!1}}),mt(F,"compositionupdate",function(_e){v.composing||(v.composing={data:_e.data,done:!1})}),mt(F,"compositionend",function(_e){v.composing&&(_e.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),mt(F,"touchstart",function(){return B.forceCompositionEnd()}),mt(F,"input",function(){v.composing||v.readFromDOMSoon()});function fe(_e){if(!(!Z(_e)||en(E,_e))){if(E.somethingSelected())kd({lineWise:!1,text:E.getSelections()}),_e.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=Op(E);kd({lineWise:!0,text:ke.text}),_e.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,Ot),E.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Le=iA.text.join(`
|
||||
`);if(_e.clipboardData.setData("Text",Le),_e.clipboardData.getData("Text")==Le){_e.preventDefault();return}}var vt=sf(),It=vt.firstChild;Yf(It),E.display.lineSpace.insertBefore(vt,E.display.lineSpace.firstChild),It.value=iA.text.join(`
|
||||
`);var Jt=nt(gt(F));tt(It),setTimeout(function(){E.display.lineSpace.removeChild(vt),Jt.focus(),Jt==F&&B.showPrimarySelection()},50)}}mt(F,"copy",fe),mt(F,"cut",fe)},ea.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var d=bh(this.cm,!1);return d.focus=nt(gt(this.div))==this.div,d},ea.prototype.showSelection=function(d,v){!d||!this.cm.display.view.length||((d.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(d))},ea.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ea.prototype.showPrimarySelection=function(){var d=this.getSelection(),v=this.cm,B=v.doc.sel.primary(),E=B.from(),F=B.to();if(v.display.viewTo==v.display.viewFrom||E.line>=v.display.viewTo||F.line<v.display.viewFrom){d.removeAllRanges();return}var Z=al(v,d.anchorNode,d.anchorOffset),fe=al(v,d.focusNode,d.focusOffset);if(!(Z&&!Z.bad&&fe&&!fe.bad&&si(Ls(Z,fe),E)==0&&si(As(Z,fe),F)==0)){var _e=v.display.view,ke=E.line>=v.display.viewFrom&&kh(v,E)||{node:_e[0].measure.map[2],offset:0},Le=F.line<v.display.viewTo&&kh(v,F);if(!Le){var vt=_e[_e.length-1].measure,It=vt.maps?vt.maps[vt.maps.length-1]:vt.map;Le={node:It[It.length-1],offset:It[It.length-2]-It[It.length-3]}}if(!ke||!Le){d.removeAllRanges();return}var Jt=d.rangeCount&&d.getRangeAt(0),Ht;try{Ht=st(ke.node,ke.offset,Le.offset,Le.node)}catch{}Ht&&(!r&&v.state.focused?(d.collapse(ke.node,ke.offset),Ht.collapsed||(d.removeAllRanges(),d.addRange(Ht))):(d.removeAllRanges(),d.addRange(Ht)),Jt&&d.anchorNode==null?d.addRange(Jt):r&&this.startGracePeriod()),this.rememberSelection()}},ea.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},ea.prototype.showMultipleSelections=function(d){Ve(this.cm.display.cursorDiv,d.cursors),Ve(this.cm.display.selectionDiv,d.selection)},ea.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},ea.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var v=d.getRangeAt(0).commonAncestorContainer;return Ct(this.div,v)},ea.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},ea.prototype.blur=function(){this.div.blur()},ea.prototype.getField=function(){return this.div},ea.prototype.supportsTouch=function(){return!0},ea.prototype.receivedFocus=function(){var d=this,v=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Ga(this.cm,function(){return v.cm.curOp.selectionChanged=!0});function B(){v.cm.state.focused&&(v.pollSelection(),v.polling.set(v.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},ea.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},ea.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),v=this.cm;if(oe&&U&&this.cm.display.gutterSpecs.length&&mm(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var B=al(v,d.anchorNode,d.anchorOffset),E=al(v,d.focusNode,d.focusOffset);B&&E&&Ga(v,function(){la(v.doc,GA(B,E),Ot),(B.bad||E.bad)&&(v.curOp.selectionChanged=!0)})}}},ea.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,v=d.display,B=d.doc.sel.primary(),E=B.from(),F=B.to();if(E.ch==0&&E.line>d.firstLine()&&(E=rn(E.line-1,Mi(d.doc,E.line-1).length)),F.ch==Mi(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=rn(F.line+1,0)),E.line<v.viewFrom||F.line>v.viewTo-1)return!1;var Z,fe,_e;E.line==v.viewFrom||(Z=Vs(d,E.line))==0?(fe=$e(v.view[0].line),_e=v.view[0].node):(fe=$e(v.view[Z].line),_e=v.view[Z-1].node.nextSibling);var ke=Vs(d,F.line),Le,vt;if(ke==v.view.length-1?(Le=v.viewTo-1,vt=v.lineDiv.lastChild):(Le=$e(v.view[ke+1].line)-1,vt=v.view[ke+1].node.previousSibling),!_e)return!1;for(var It=d.doc.splitLines(fu(d,_e,vt,fe,Le)),Jt=us(d.doc,rn(fe,0),rn(Le,Mi(d.doc,Le).text.length));It.length>1&&Jt.length>1;)if($n(It)==$n(Jt))It.pop(),Jt.pop(),Le--;else if(It[0]==Jt[0])It.shift(),Jt.shift(),fe++;else break;for(var Ht=0,_n=0,Rn=It[0],oi=Jt[0],mi=Math.min(Rn.length,oi.length);Ht<mi&&Rn.charCodeAt(Ht)==oi.charCodeAt(Ht);)++Ht;for(var Ci=$n(It),gi=$n(Jt),Di=Math.min(Ci.length-(It.length==1?Ht:0),gi.length-(Jt.
Line truncated
|
||||
`),tt(F))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}mt(F,"cut",Z),mt(F,"copy",Z),mt(d.scroller,"paste",function(fe){if(!(au(d,fe)||en(E,fe))){if(!F.dispatchEvent){E.state.pasteIncoming=+new Date,B.focus();return}var _e=new Event("paste");_e.clipboardData=fe.clipboardData,F.dispatchEvent(_e)}}),mt(d.lineSpace,"selectstart",function(fe){au(d,fe)||Wn(fe)}),mt(F,"compositionstart",function(){var fe=E.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:fe,range:E.markText(fe,E.getCursor("to"),{className:"CodeMirror-composing"})}}),mt(F,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},js.prototype.createField=function(d){this.wrapper=sf(),this.textarea=this.wrapper.firstChild;var v=this.cm.options;Yf(this.textarea,v.spellcheck,v.autocorrect,v.autocapitalize)},js.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},js.prototype.prepareSelection=function(){var d=this.cm,v=d.display,B=d.doc,E=bh(d);if(d.options.moveInputWithCursor){var F=vn(d,B.sel.primary().head,"div"),Z=v.wrapper.getBoundingClientRect(),fe=v.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,F.top+fe.top-Z.top)),E.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,F.left+fe.left-Z.left))}return E},js.prototype.showSelection=function(d){var v=this.cm,B=v.display;Ve(B.cursorDiv,d.cursors),Ve(B.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},js.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var v=this.cm;if(this.resetting=!0,v.somethingSelected()){this.prevInput="";var B=v.getSelection();this.textarea.value=B,v.state.focused&&tt(this.textarea),p&&C>=9&&(this.hasSelection=B)}else d||(this.prevInput=this.textarea.value="",p&&C>=9&&(this.hasSelection=null));this.resetting=!1}},js.prototype.getField=function(){return this.textarea},js.prototype.supportsTouch=function(){return!1},js.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||nt(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},js.prototype.blur=function(){this.textarea.blur()},js.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},js.prototype.receivedFocus=function(){this.slowPoll()},js.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},js.prototype.fastPoll=function(){var d=!1,v=this;v.pollingFast=!0;function B(){var E=v.poll();!E&&!d?(d=!0,v.polling.set(60,B)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,B)},js.prototype.poll=function(){var d=this,v=this.cm,B=this.textarea,E=this.prevInput;if(this.contextMenuPending||this.resetting||!v.state.focused||Zn(B)&&!E&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var F=B.value;if(F==E&&!v.somethingSelected())return!1;if(p&&C>=9&&this.hasSelection===F||$&&/[\uf700-\uf7ff]/.test(F))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var Z=F.charCodeAt(0);if(Z==8203&&!E&&(E=""),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,_e=Math.min(E.length,F.length);fe<_e&&E.charCodeAt(fe)==F.charCodeAt(fe);)++fe;return Ga(v,function(){Xs(v,F.slice(fe),E.length-fe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf(`
|
||||
`)>-1?B.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=v.markText(d.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},js.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},js.prototype.onKeyPress=function(){p&&C>=9&&(this.hasSelection=null),this.fastPoll()},js.prototype.onContextMenu=function(d){var v=this,B=v.cm,E=B.display,F=v.textarea;v.contextMenuPending&&v.contextMenuPending();var Z=Na(B,d),fe=E.scroller.scrollTop;if(!Z||j)return;var _e=B.options.resetSelectionOnContextMenu;_e&&B.doc.sel.contains(Z)==-1&&Zo(B,la)(B.doc,GA(Z),Ot);var ke=F.style.cssText,Le=v.wrapper.style.cssText,vt=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
`?"n":!Jt||/\s/.test(Rn)?null:"p";if(Jt&&!_n&&!oi&&(oi="s"),It&&It!=oi){B<0&&(B=1,vt(),v.sticky="after");break}if(oi&&(It=oi),B>0&&!vt(!_n))break}var mi=Ya(d,v,Z,fe,!0);return to(Z,mi)&&(mi.hitSide=!0),mi}function uf(d,v,B,E){var F=d.doc,Z=v.left,fe;if(E=="page"){var _e=Math.min(d.display.wrapper.clientHeight,St(d).innerHeight||F(d).documentElement.clientHeight),ke=Math.max(_e-.5*SA(d.display),3);fe=(B>0?v.bottom:v.top)+B*ke}else E=="line"&&(fe=B>0?v.bottom+3:v.top-3);for(var Le;Le=Io(d,Z,fe),!!Le.outside;){if(B<0?fe<=0:fe>=F.height){Le.hitSide=!0;break}fe+=B*5}return Le}var na=function(d){this.cm=d,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Re,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};na.prototype.init=function(d){var v=this,B=this,E=B.cm,F=B.div=d.lineDiv;F.contentEditable=!0,Hf(F,E.options.spellcheck,E.options.autocorrect,E.options.autocapitalize);function Z(_e){for(var ke=_e.target;ke;ke=ke.parentNode){if(ke==F)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ke.className))break}return!1}mt(F,"paste",function(_e){!Z(_e)||en(E,_e)||ds(_e,E)||C<=11&&setTimeout(Jo(E,function(){return v.updateFromDOM()}),20)}),mt(F,"compositionstart",function(_e){v.composing={data:_e.data,done:!1}}),mt(F,"compositionupdate",function(_e){v.composing||(v.composing={data:_e.data,done:!1})}),mt(F,"compositionend",function(_e){v.composing&&(_e.data!=v.composing.data&&v.readFromDOMSoon(),v.composing.done=!0)}),mt(F,"touchstart",function(){return B.forceCompositionEnd()}),mt(F,"input",function(){v.composing||v.readFromDOMSoon()});function fe(_e){if(!(!Z(_e)||en(E,_e))){if(E.somethingSelected())Dd({lineWise:!1,text:E.getSelections()}),_e.type=="cut"&&E.replaceSelection("",null,"cut");else if(E.options.lineWiseCopyCut){var ke=Ip(E);Dd({lineWise:!0,text:ke.text}),_e.type=="cut"&&E.operation(function(){E.setSelections(ke.ranges,0,Ot),E.replaceSelection("",null,"cut")})}else return;if(_e.clipboardData){_e.clipboardData.clearData();var Le=ru.text.join(`
|
||||
`);if(_e.clipboardData.setData("Text",Le),_e.clipboardData.getData("Text")==Le){_e.preventDefault();return}}var vt=Af(),It=vt.firstChild;Hf(It),E.display.lineSpace.insertBefore(vt,E.display.lineSpace.firstChild),It.value=ru.text.join(`
|
||||
`);var Jt=nt(gt(F));tt(It),setTimeout(function(){E.display.lineSpace.removeChild(vt),Jt.focus(),Jt==F&&B.showPrimarySelection()},50)}}mt(F,"copy",fe),mt(F,"cut",fe)},na.prototype.screenReaderLabelChanged=function(d){d?this.div.setAttribute("aria-label",d):this.div.removeAttribute("aria-label")},na.prototype.prepareSelection=function(){var d=xh(this.cm,!1);return d.focus=nt(gt(this.div))==this.div,d},na.prototype.showSelection=function(d,v){!d||!this.cm.display.view.length||((d.focus||v)&&this.showPrimarySelection(),this.showMultipleSelections(d))},na.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},na.prototype.showPrimarySelection=function(){var d=this.getSelection(),v=this.cm,B=v.doc.sel.primary(),E=B.from(),F=B.to();if(v.display.viewTo==v.display.viewFrom||E.line>=v.display.viewTo||F.line<v.display.viewFrom){d.removeAllRanges();return}var Z=sl(v,d.anchorNode,d.anchorOffset),fe=sl(v,d.focusNode,d.focusOffset);if(!(Z&&!Z.bad&&fe&&!fe.bad&&si(zs(Z,fe),E)==0&&si(hs(Z,fe),F)==0)){var _e=v.display.view,ke=E.line>=v.display.viewFrom&&Dh(v,E)||{node:_e[0].measure.map[2],offset:0},Le=F.line<v.display.viewTo&&Dh(v,F);if(!Le){var vt=_e[_e.length-1].measure,It=vt.maps?vt.maps[vt.maps.length-1]:vt.map;Le={node:It[It.length-1],offset:It[It.length-2]-It[It.length-3]}}if(!ke||!Le){d.removeAllRanges();return}var Jt=d.rangeCount&&d.getRangeAt(0),Ht;try{Ht=st(ke.node,ke.offset,Le.offset,Le.node)}catch{}Ht&&(!r&&v.state.focused?(d.collapse(ke.node,ke.offset),Ht.collapsed||(d.removeAllRanges(),d.addRange(Ht))):(d.removeAllRanges(),d.addRange(Ht)),Jt&&d.anchorNode==null?d.addRange(Jt):r&&this.startGracePeriod()),this.rememberSelection()}},na.prototype.startGracePeriod=function(){var d=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){d.gracePeriod=!1,d.selectionChanged()&&d.cm.operation(function(){return d.cm.curOp.selectionChanged=!0})},20)},na.prototype.showMultipleSelections=function(d){Ve(this.cm.display.cursorDiv,d.cursors),Ve(this.cm.display.selectionDiv,d.selection)},na.prototype.rememberSelection=function(){var d=this.getSelection();this.lastAnchorNode=d.anchorNode,this.lastAnchorOffset=d.anchorOffset,this.lastFocusNode=d.focusNode,this.lastFocusOffset=d.focusOffset},na.prototype.selectionInEditor=function(){var d=this.getSelection();if(!d.rangeCount)return!1;var v=d.getRangeAt(0).commonAncestorContainer;return Ct(this.div,v)},na.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||nt(gt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},na.prototype.blur=function(){this.div.blur()},na.prototype.getField=function(){return this.div},na.prototype.supportsTouch=function(){return!0},na.prototype.receivedFocus=function(){var d=this,v=this;this.selectionInEditor()?setTimeout(function(){return d.pollSelection()},20):Qa(this.cm,function(){return v.cm.curOp.selectionChanged=!0});function B(){v.cm.state.focused&&(v.pollSelection(),v.polling.set(v.cm.options.pollInterval,B))}this.polling.set(this.cm.options.pollInterval,B)},na.prototype.selectionChanged=function(){var d=this.getSelection();return d.anchorNode!=this.lastAnchorNode||d.anchorOffset!=this.lastAnchorOffset||d.focusNode!=this.lastFocusNode||d.focusOffset!=this.lastFocusOffset},na.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var d=this.getSelection(),v=this.cm;if(oe&&U&&this.cm.display.gutterSpecs.length&&gm(d.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var B=sl(v,d.anchorNode,d.anchorOffset),E=sl(v,d.focusNode,d.focusOffset);B&&E&&Qa(v,function(){Aa(v.doc,Wu(B,E),Ot),(B.bad||E.bad)&&(v.curOp.selectionChanged=!0)})}}},na.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var d=this.cm,v=d.display,B=d.doc.sel.primary(),E=B.from(),F=B.to();if(E.ch==0&&E.line>d.firstLine()&&(E=rn(E.line-1,Mi(d.doc,E.line-1).length)),F.ch==Mi(d.doc,F.line).text.length&&F.line<d.lastLine()&&(F=rn(F.line+1,0)),E.line<v.viewFrom||F.line>v.viewTo-1)return!1;var Z,fe,_e;E.line==v.viewFrom||(Z=Zs(d,E.line))==0?(fe=$e(v.view[0].line),_e=v.view[0].node):(fe=$e(v.view[Z].line),_e=v.view[Z-1].node.nextSibling);var ke=Zs(d,F.line),Le,vt;if(ke==v.view.length-1?(Le=v.viewTo-1,vt=v.lineDiv.lastChild):(Le=$e(v.view[ke+1].line)-1,vt=v.view[ke+1].node.previousSibling),!_e)return!1;for(var It=d.doc.splitLines(pA(d,_e,vt,fe,Le)),Jt=cs(d.doc,rn(fe,0),rn(Le,Mi(d.doc,Le).text.length));It.length>1&&Jt.length>1;)if($n(It)==$n(Jt))It.pop(),Jt.pop(),Le--;else if(It[0]==Jt[0])It.shift(),Jt.shift(),fe++;else break;for(var Ht=0,_n=0,Rn=It[0],oi=Jt[0],mi=Math.min(Rn.length,oi.length);Ht<mi&&Rn.charCodeAt(Ht)==oi.charCodeAt(Ht);)++Ht;for(var Ci=$n(It),gi=$n(Jt),Di=Math.min(Ci.length-(It.length==1?Ht:0),gi.length-(Jt.
Line truncated
|
||||
`),tt(F))}else return;fe.type=="cut"&&(E.state.cutIncoming=+new Date)}}mt(F,"cut",Z),mt(F,"copy",Z),mt(d.scroller,"paste",function(fe){if(!(sA(d,fe)||en(E,fe))){if(!F.dispatchEvent){E.state.pasteIncoming=+new Date,B.focus();return}var _e=new Event("paste");_e.clipboardData=fe.clipboardData,F.dispatchEvent(_e)}}),mt(d.lineSpace,"selectstart",function(fe){sA(d,fe)||Wn(fe)}),mt(F,"compositionstart",function(){var fe=E.getCursor("from");B.composing&&B.composing.range.clear(),B.composing={start:fe,range:E.markText(fe,E.getCursor("to"),{className:"CodeMirror-composing"})}}),mt(F,"compositionend",function(){B.composing&&(B.poll(),B.composing.range.clear(),B.composing=null)})},Gs.prototype.createField=function(d){this.wrapper=Af(),this.textarea=this.wrapper.firstChild;var v=this.cm.options;Hf(this.textarea,v.spellcheck,v.autocorrect,v.autocapitalize)},Gs.prototype.screenReaderLabelChanged=function(d){d?this.textarea.setAttribute("aria-label",d):this.textarea.removeAttribute("aria-label")},Gs.prototype.prepareSelection=function(){var d=this.cm,v=d.display,B=d.doc,E=xh(d);if(d.options.moveInputWithCursor){var F=vn(d,B.sel.primary().head,"div"),Z=v.wrapper.getBoundingClientRect(),fe=v.lineDiv.getBoundingClientRect();E.teTop=Math.max(0,Math.min(v.wrapper.clientHeight-10,F.top+fe.top-Z.top)),E.teLeft=Math.max(0,Math.min(v.wrapper.clientWidth-10,F.left+fe.left-Z.left))}return E},Gs.prototype.showSelection=function(d){var v=this.cm,B=v.display;Ve(B.cursorDiv,d.cursors),Ve(B.selectionDiv,d.selection),d.teTop!=null&&(this.wrapper.style.top=d.teTop+"px",this.wrapper.style.left=d.teLeft+"px")},Gs.prototype.reset=function(d){if(!(this.contextMenuPending||this.composing&&d)){var v=this.cm;if(this.resetting=!0,v.somethingSelected()){this.prevInput="";var B=v.getSelection();this.textarea.value=B,v.state.focused&&tt(this.textarea),p&&C>=9&&(this.hasSelection=B)}else d||(this.prevInput=this.textarea.value="",p&&C>=9&&(this.hasSelection=null));this.resetting=!1}},Gs.prototype.getField=function(){return this.textarea},Gs.prototype.supportsTouch=function(){return!1},Gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ne||nt(gt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Gs.prototype.blur=function(){this.textarea.blur()},Gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Gs.prototype.receivedFocus=function(){this.slowPoll()},Gs.prototype.slowPoll=function(){var d=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){d.poll(),d.cm.state.focused&&d.slowPoll()})},Gs.prototype.fastPoll=function(){var d=!1,v=this;v.pollingFast=!0;function B(){var E=v.poll();!E&&!d?(d=!0,v.polling.set(60,B)):(v.pollingFast=!1,v.slowPoll())}v.polling.set(20,B)},Gs.prototype.poll=function(){var d=this,v=this.cm,B=this.textarea,E=this.prevInput;if(this.contextMenuPending||this.resetting||!v.state.focused||Zn(B)&&!E&&!this.composing||v.isReadOnly()||v.options.disableInput||v.state.keySeq)return!1;var F=B.value;if(F==E&&!v.somethingSelected())return!1;if(p&&C>=9&&this.hasSelection===F||$&&/[\uf700-\uf7ff]/.test(F))return v.display.input.reset(),!1;if(v.doc.sel==v.display.selForContextMenu){var Z=F.charCodeAt(0);if(Z==8203&&!E&&(E=""),Z==8666)return this.reset(),this.cm.execCommand("undo")}for(var fe=0,_e=Math.min(E.length,F.length);fe<_e&&E.charCodeAt(fe)==F.charCodeAt(fe);)++fe;return Qa(v,function(){el(v,F.slice(fe),E.length-fe,null,d.composing?"*compose":null),F.length>1e3||F.indexOf(`
|
||||
`)>-1?B.value=d.prevInput="":d.prevInput=F,d.composing&&(d.composing.range.clear(),d.composing.range=v.markText(d.composing.start,v.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Gs.prototype.onKeyPress=function(){p&&C>=9&&(this.hasSelection=null),this.fastPoll()},Gs.prototype.onContextMenu=function(d){var v=this,B=v.cm,E=B.display,F=v.textarea;v.contextMenuPending&&v.contextMenuPending();var Z=Wa(B,d),fe=E.scroller.scrollTop;if(!Z||j)return;var _e=B.options.resetSelectionOnContextMenu;_e&&B.doc.sel.contains(Z)==-1&&Jo(B,Aa)(B.doc,Wu(Z),Ot);var ke=F.style.cssText,Le=v.wrapper.style.cssText,vt=v.wrapper.offsetParent.getBoundingClientRect();v.wrapper.style.cssText="position: static",F.style.cssText=`position: absolute; width: 30px; height: 30px;
|
||||
top: `+(d.clientY-vt.top-5)+"px; left: "+(d.clientX-vt.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 It;w&&(It=F.ownerDocument.defaultView.scrollY),E.input.focus(),w&&F.ownerDocument.defaultView.scrollTo(null,It),E.input.reset(),B.somethingSelected()||(F.value=v.prevInput=" "),v.contextMenuPending=Ht,E.selForContextMenu=B.doc.sel,clearTimeout(E.detectingSelectAll);function Jt(){if(F.selectionStart!=null){var Rn=B.somethingSelected(),oi=""+(Rn?F.value:"");F.value="⇚",F.value=oi,v.prevInput=Rn?"":"",F.selectionStart=1,F.selectionEnd=oi.length,E.selForContextMenu=B.doc.sel}}function Ht(){if(v.contextMenuPending==Ht&&(v.contextMenuPending=!1,v.wrapper.style.cssText=Le,F.style.cssText=ke,p&&C<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),F.selectionStart!=null)){(!p||p&&C<9)&&Jt();var Rn=0,oi=function(){E.selForContextMenu==B.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&v.prevInput==""?Zo(B,CA)(B):Rn++<10?E.detectingSelectAll=setTimeout(oi,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(oi,200)}}if(p&&C>=9&&Jt(),ye){Ei(d);var _n=function(){Tt(window,"mouseup",_n),setTimeout(Ht,20)};mt(window,"mouseup",_n)}else setTimeout(Ht,50)},js.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},js.prototype.setUneditable=function(){},js.prototype.needsContentAttribute=!1;function qf(d,v){if(v=v?Fe(v):{},v.value=d.value,!v.tabindex&&d.tabIndex&&(v.tabindex=d.tabIndex),!v.placeholder&&d.placeholder&&(v.placeholder=d.placeholder),v.autofocus==null){var B=nt(gt(d));v.autofocus=B==d||d.getAttribute("autofocus")!=null&&B==document.body}function E(){d.value=_e.getValue()}var F;if(d.form&&(mt(d.form,"submit",E),!v.leaveSubmitMethodAlone)){var Z=d.form;F=Z.submit;try{var fe=Z.submit=function(){E(),Z.submit=F,Z.submit(),Z.submit=fe}}catch{}}v.finishInit=function(ke){ke.save=E,ke.getTextArea=function(){return d},ke.toTextArea=function(){ke.toTextArea=isNaN,E(),d.parentNode.removeChild(ke.getWrapperElement()),d.style.display="",d.form&&(Tt(d.form,"submit",E),!v.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var _e=Jo(function(ke){return d.parentNode.insertBefore(ke,d.nextSibling)},v);return _e}function o0(d){d.off=Tt,d.on=mt,d.wheelEventPixels=Uf,d.Doc=ut,d.splitLines=To,d.countColumn=Ke,d.findColumn=on,d.isWordChar=Kn,d.Pass=_t,d.signal=it,d.Line=Ll,d.changeEnd=WA,d.scrollbarModel=mA,d.Pos=rn,d.cmpPos=si,d.modes=Fa,d.mimeModes=Tr,d.resolveMode=ka,d.getMode=wo,d.modeExtensions=Xa,d.extendMode=Il,d.copyState=Ao,d.startState=Da,d.innerMode=Wu,d.commands=Os,d.keyMap=Qn,d.keyName=Lo,d.isModifierKey=Co,d.lookupKey=cr,d.normalizeKeyMap=xi,d.StringStream=Vi,d.SharedTextMarker=he,d.TextMarker=q,d.LineWidget=_,d.e_preventDefault=Wn,d.e_stopPropagation=qi,d.e_stop=Ei,d.addClass=be,d.contains=Ct,d.rmClass=Oe,d.keyNames=Xt}Gf(Jo),Dd(Jo);var a0="iter insert remove copy getEditor constructor".split(" ");for(var uf in ut.prototype)ut.prototype.hasOwnProperty(uf)&&He(a0,uf)<0&&(Jo.prototype[uf]=function(d){return function(){return d.apply(this.doc,arguments)}}(ut.prototype[uf]));return ii(ut),Jo.inputStyles={textarea:js,contenteditable:ea},Jo.defineMode=function(d){!Jo.defaults.mode&&d!="null"&&(Jo.defaults.mode=d),ji.apply(this,arguments)},Jo.defineMIME=gl,Jo.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),Jo.defineMIME("text/plain","null"),Jo.defineExtension=function(d,v){Jo.prototype[d]=v},Jo.defineDocExtension=function(d,v){ut.prototype[d]=v},Jo.fromTextArea=qf,o0(Jo),Jo.version="5.65.20",Jo})}(Ix)),Ix.exports}var vle=L2();const tm=AA(vle);var sk={exports:{}},lk;function Cle(){return lk||(lk=1,function(n,e){(function(t){t(L2())})(function(t){t.defineMode("javascript",function(i,r){var a=i.indentUnit,l=r.statementIndent,o=r.jsonld,p=r.json||o,C=r.trackScope!==!1,w=r.typescript,O=r.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function $e(So){return{type:So,style:"keyword"}}var Et=$e("keyword a"),xn=$e("keyword b"),Gn=$e("keyword c"),rn=$e("keyword d"),si=$e("operator"),eo={type:"atom",style:"atom"};return{if:$e("if"),while:Et,with:Et,else:xn,do:xn,try:xn,finally:xn,return:rn,break:rn,continue:rn,new:$e("new"),delete:Gn,void:Gn,throw:Gn,debugger:$e("debugger"),var:$e("var"),const:$e("var"),let:$e("var"),function:$e("function"),catch:$e("catch"),for:$e("for"),switch:$e("switch"),case:$e("case"),default:$e("default"),in:si,typeof:si,instanceof:si,true:eo,false:eo,null:eo,undefined:eo,NaN:eo,Infinity:eo,this:$e("this"),class:$e("class"),super:$e("atom"),yield:Gn,export:$e("export"),import:$e("import"),extends:Gn,await:Gn}}(),K=/[+\-*&%=<>!?|~^@]/,j=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function W($e){for(var Et=!1,xn,Gn=!1;(xn=$e.next())!=null;){if(!Et){if(xn=="/"&&!Gn)return;xn=="["?Gn=!0:Gn&&xn=="]"&&(Gn=!1)}Et=!Et&&xn=="\\"}}var Y,te;function J($e,Et,xn){return Y=$e,te=xn,Et}fun
Line truncated
|
||||
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var It;M&&(It=F.ownerDocument.defaultView.scrollY),E.input.focus(),M&&F.ownerDocument.defaultView.scrollTo(null,It),E.input.reset(),B.somethingSelected()||(F.value=v.prevInput=" "),v.contextMenuPending=Ht,E.selForContextMenu=B.doc.sel,clearTimeout(E.detectingSelectAll);function Jt(){if(F.selectionStart!=null){var Rn=B.somethingSelected(),oi=""+(Rn?F.value:"");F.value="⇚",F.value=oi,v.prevInput=Rn?"":"",F.selectionStart=1,F.selectionEnd=oi.length,E.selForContextMenu=B.doc.sel}}function Ht(){if(v.contextMenuPending==Ht&&(v.contextMenuPending=!1,v.wrapper.style.cssText=Le,F.style.cssText=ke,p&&C<9&&E.scrollbars.setScrollTop(E.scroller.scrollTop=fe),F.selectionStart!=null)){(!p||p&&C<9)&&Jt();var Rn=0,oi=function(){E.selForContextMenu==B.doc.sel&&F.selectionStart==0&&F.selectionEnd>0&&v.prevInput==""?Jo(B,_u)(B):Rn++<10?E.detectingSelectAll=setTimeout(oi,500):(E.selForContextMenu=null,E.input.reset())};E.detectingSelectAll=setTimeout(oi,200)}}if(p&&C>=9&&Jt(),ye){Ei(d);var _n=function(){Tt(window,"mouseup",_n),setTimeout(Ht,20)};mt(window,"mouseup",_n)}else setTimeout(Ht,50)},Gs.prototype.readOnlyChanged=function(d){d||this.reset(),this.textarea.disabled=d=="nocursor",this.textarea.readOnly=!!d},Gs.prototype.setUneditable=function(){},Gs.prototype.needsContentAttribute=!1;function Vf(d,v){if(v=v?Fe(v):{},v.value=d.value,!v.tabindex&&d.tabIndex&&(v.tabindex=d.tabIndex),!v.placeholder&&d.placeholder&&(v.placeholder=d.placeholder),v.autofocus==null){var B=nt(gt(d));v.autofocus=B==d||d.getAttribute("autofocus")!=null&&B==document.body}function E(){d.value=_e.getValue()}var F;if(d.form&&(mt(d.form,"submit",E),!v.leaveSubmitMethodAlone)){var Z=d.form;F=Z.submit;try{var fe=Z.submit=function(){E(),Z.submit=F,Z.submit(),Z.submit=fe}}catch{}}v.finishInit=function(ke){ke.save=E,ke.getTextArea=function(){return d},ke.toTextArea=function(){ke.toTextArea=isNaN,E(),d.parentNode.removeChild(ke.getWrapperElement()),d.style.display="",d.form&&(Tt(d.form,"submit",E),!v.leaveSubmitMethodAlone&&typeof d.form.submit=="function"&&(d.form.submit=F))}},d.style.display="none";var _e=ta(function(ke){return d.parentNode.insertBefore(ke,d.nextSibling)},v);return _e}function a0(d){d.off=Tt,d.on=mt,d.wheelEventPixels=Ff,d.Doc=At,d.splitLines=ko,d.countColumn=Ke,d.findColumn=on,d.isWordChar=Kn,d.Pass=_t,d.signal=it,d.Line=Fl,d.changeEnd=Qu,d.scrollbarModel=gu,d.Pos=rn,d.cmpPos=si,d.modes=ja,d.mimeModes=kr,d.resolveMode=Pa,d.getMode=So,d.modeExtensions=ts,d.extendMode=Tl,d.copyState=co,d.startState=Ka,d.innerMode=QA,d.commands=Is,d.keyMap=Qn,d.keyName=Fo,d.isModifierKey=_o,d.lookupKey=hr,d.normalizeKeyMap=xi,d.StringStream=$i,d.SharedTextMarker=he,d.TextMarker=q,d.LineWidget=_,d.e_preventDefault=Wn,d.e_stopPropagation=Hi,d.e_stop=Ei,d.addClass=be,d.contains=Ct,d.rmClass=Ie,d.keyNames=Xt}Qf(ta),Rd(ta);var s0="iter insert remove copy getEditor constructor".split(" ");for(var cf in At.prototype)At.prototype.hasOwnProperty(cf)&&He(s0,cf)<0&&(ta.prototype[cf]=function(d){return function(){return d.apply(this.doc,arguments)}}(At.prototype[cf]));return ii(At),ta.inputStyles={textarea:Gs,contenteditable:na},ta.defineMode=function(d){!ta.defaults.mode&&d!="null"&&(ta.defaults.mode=d),ji.apply(this,arguments)},ta.defineMIME=yl,ta.defineMode("null",function(){return{token:function(d){return d.skipToEnd()}}}),ta.defineMIME("text/plain","null"),ta.defineExtension=function(d,v){ta.prototype[d]=v},ta.defineDocExtension=function(d,v){At.prototype[d]=v},ta.fromTextArea=Vf,a0(ta),ta.version="5.65.20",ta})}(Tx)),Tx.exports}var _le=z2();const nm=cu(_le);var lk={exports:{}},Ak;function ble(){return Ak||(Ak=1,function(n,e){(function(t){t(z2())})(function(t){t.defineMode("javascript",function(i,r){var a=i.indentUnit,l=r.statementIndent,o=r.jsonld,p=r.json||o,C=r.trackScope!==!1,M=r.typescript,O=r.wordCharacters||/[\w$\xa1-\uffff]/,U=function(){function $e(Eo){return{type:Eo,style:"keyword"}}var Et=$e("keyword a"),xn=$e("keyword b"),Gn=$e("keyword c"),rn=$e("keyword d"),si=$e("operator"),to={type:"atom",style:"atom"};return{if:$e("if"),while:Et,with:Et,else:xn,do:xn,try:xn,finally:xn,return:rn,break:rn,continue:rn,new:$e("new"),delete:Gn,void:Gn,throw:Gn,debugger:$e("debugger"),var:$e("var"),const:$e("var"),let:$e("var"),function:$e("function"),catch:$e("catch"),for:$e("for"),switch:$e("switch"),case:$e("case"),default:$e("default"),in:si,typeof:si,instanceof:si,true:to,false:to,null:to,undefined:to,NaN:to,Infinity:to,this:$e("this"),class:$e("class"),super:$e("atom"),yield:Gn,export:$e("export"),import:$e("import"),extends:Gn,await:Gn}}(),K=/[+\-*&%=<>!?|~^@]/,j=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function W($e){for(var Et=!1,xn,Gn=!1;(xn=$e.next())!=null;){if(!Et){if(xn=="/"&&!Gn)return;xn=="["?Gn=!0:Gn&&xn=="]"&&(Gn=!1)}Et=!Et&&xn=="\\"}}var Y,te;function J($e,Et,xn){return Y=$e,te=xn,Et}fun
Line truncated
|
||||
${O}`),W].join(`
|
||||
${o}`)}return C}(n,"",0)}var jC={exports:{}},Mle=jC.exports,dk;function wle(){return dk||(dk=1,function(n,e){(function(t,i){i(e)})(Mle,function(t){const i={isWhiteSpace:function(be){return be===" "||be===" "||be==="\uFEFF"||be>=" "&&be<="\r"||be===" "||be>=" "&&be<=" "||be==="\u2028"||be==="\u2029"||be===" "||be===" "||be===" "},isWhiteSpaceJSON:function(be){return be===" "||be===" "||be===`
|
||||
${o}`)}return C}(n,"",0)}var GC={exports:{}},Sle=GC.exports,fk;function Ele(){return fk||(fk=1,function(n,e){(function(t,i){i(e)})(Sle,function(t){const i={isWhiteSpace:function(be){return be===" "||be===" "||be==="\uFEFF"||be>=" "&&be<="\r"||be===" "||be>=" "&&be<=" "||be==="\u2028"||be==="\u2029"||be===" "||be===" "||be===" "},isWhiteSpaceJSON:function(be){return be===" "||be===" "||be===`
|
||||
`||be==="\r"},isLineTerminator:function(be){return be===`
|
||||
`||be==="\r"||be==="\u2028"||be==="\u2029"},isLineTerminatorJSON:function(be){return be===`
|
||||
`||be==="\r"},isIdentifierStart:function(be){return be==="$"||be==="_"||be>="A"&&be<="Z"||be>="a"&&be<="z"||be>=""&&i.NonAsciiIdentifierStart.test(be)},isIdentifierPart:function(be){return be==="$"||be==="_"||be>="A"&&be<="Z"||be>="a"&&be<="z"||be>="0"&&be<="9"||be>=""&&i.NonAsciiIdentifierPart.test(be)},NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\uLine truncated
|
||||
`,r:"\r",t:" ",v:"\v","/":"/"},C=Object.hasOwn,w={};function O(nt,be){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const Ne=be.mode==="json5",tt=be.ignoreBOM,lt=be.ignoreComments||be.mode==="cjson"||Ne,kt=be.ignoreTrailingCommas||Ne,gt=be.ignoreProtoKey,St=be.ignorePrototypeKeys,Ut=be.allowSingleQuotedStrings||Ne,Fe=be.allowDuplicateObjectKeys,Ke=be.reviver,Re=be.tokenize,He=be.rawTokens,bt=be.tokenLocations,_t=be.tokenPaths,Ot=Ne?i.isLineTerminator:i.isLineTerminatorJSON,qt=Ne?i.isWhiteSpace:i.isWhiteSpaceJSON,Kt=nt.length;let on=0,Jn=0,Wt=0;const $n=[];let On,Bn,In;if(Re){let ht=null,Tt,it;On=function(){if(ht!==null)throw Error("internal error, token overlap");Tt=on+1,it=Wt-Jn+1,ht=Wt},Bn=function(en,Dn){if(ht!==Wt){const Mn={type:en};He&&(Mn.raw=nt.substr(ht,Wt-ht)),Dn!==void 0&&(Mn.value=Dn),bt&&(Mn.location={start:{column:it,line:Tt,offset:ht}}),_t&&(Mn.path=In.slice()),$n.push(Mn)}return ht=null,Dn},_t&&(In=[])}function Oi(){let ht;return Wt<Kt?ht=`Unexpected token ${JSON.stringify(nt[Wt])}`:ht="Unexpected end of input",ht}function ei(ht){const Tt=Wt-Jn+1;++on;const it=we(ht,nt,Wt,on,Tt),en=SyntaxError(it.message);return en.reason=ht,en.excerpt=it.excerpt,en.pointer=it.pointer,en.location={start:{column:Tt,line:on,offset:Wt}},en}function Kn(ht){throw ht||(ht=Oi()),ei(ht)}function je(ht){ht==="\r"&&nt[Wt]===`
|
||||
`&&++Wt,Jn=Wt,++on}function de(){if(Wt<Kt){On?.();const ht=nt[Wt++];if(ht==='"'||ht==="'"&&Ut){const Tt=g(ht);return Bn?.("literal",Tt),Tt}if(ht==="{")return Bn?.("symbol","{"),dt();if(ht==="[")return Bn?.("symbol","["),Ye();if(ht==="-"||ht==="."||l(ht)||Ne&&(ht==="+"||ht==="I"||ht==="N")){const Tt=De();return Bn?.("literal",Tt),Tt}if(ht==="n")return We("null"),Bn?.("literal",null),null;if(ht==="t")return We("true"),Bn?.("literal",!0),!0;if(ht==="f")return We("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function re(){let ht;if(Wt<Kt){On?.();const Tt=nt[Wt++];if(Tt==='"'||Tt==="'"&&Ut){const it=g(Tt);return Bn?.("literal",it),it}if(Tt==="{")return Bn?.("symbol","{"),dt();if(Tt==="[")return Bn?.("symbol","["),Ye();if(Tt==="."||l(Tt)){const it=De();return Bn?.("literal",it),it}if(Ne&&i.isIdentifierStart(Tt)||Tt==="\\"&&nt[Wt]==="u"){const it=Wt-1;if(ht=Ze(),ht===void 0){Wt=it,Bn?.();return}return Bn?.("literal",ht),ht}--Wt,Bn?.();return}}function le(){o(nt)&&(On?.(),++Wt,Bn?.("bom"))}function pe(){let ht;function Tt(){ht||(ht=!0,--Wt,On(),++Wt)}function it(){ht&&(ht=!1,Bn("whitespace"))}for(;Wt<Kt;){const en=nt[Wt++];if(Ot(en))On&&Tt(),je(en);else if(qt(en))On&&Tt();else if(en==="/"&<&&(nt[Wt]==="/"||nt[Wt]==="*"))On&&(--Wt,it(),On(),++Wt),Te(nt[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&it()}function Te(ht){for(;Wt<Kt;){const Tt=nt[Wt++];if(Ot(Tt)){if(!ht){--Wt;return}je(Tt)}else if(Tt==="*"&&ht&&nt[Wt]==="/"){++Wt;return}}ht&&Kn("Unclosed multiline comment")}function We(ht){const Tt=Wt;for(let it=1,en=ht.length;it<en;++it)(Wt>=Kt||ht[it]!==nt[Wt])&&(Wt=Tt-1,Kn()),++Wt}function dt(){let ht={},Tt=!1;for(;Wt<Kt;){pe();const it=re();Fe===!1&&C(ht,it)&&Kn(`Duplicate key: "${it}"`),pe(),On?.();let en=nt[Wt++];if(Bn?.("symbol",en),en==="}"&&it===void 0)return!kt&&Tt&&(--Wt,Kn("Trailing comma in object")),ht;if(en===":"&&it!==void 0){pe(),In?.push(it);let Dn=de();if(In?.pop(),Dn===void 0&&Kn(`No value found for key "${it}"`),typeof it!="string"&&(!Ne||typeof it!="number")&&Kn(`Wrong key type: "${it}"`),St&&(it in w||w[it]!=null)||gt&&it==="__proto__"||(Ke&&(Dn=Ke(it,Dn)),Dn!==void 0&&(Tt=!0,it==="__proto__"?ht=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Dn)}}`),ht):ht[it]=Dn)),pe(),On?.(),en=nt[Wt++],Bn?.("symbol",en),en!==","){if(en==="}")return ht;Kn()}}else--Wt,Kn()}Kn()}function Ye(){const ht=[];for(;Wt<Kt;){pe(),In?.push(ht.length);let Tt=de();In?.pop(),pe(),On?.();const it=nt[Wt++];if(Bn?.("symbol",it),Tt!==void 0&&(Ke&&(Tt=Ke(String(ht.length),Tt)),Tt===void 0?(++ht.length,Tt=!0):ht.push(Tt)),it===",")Tt===void 0&&Kn("Elisions are not supported");else{if(it==="]")return!kt&&Tt===void 0&&ht.length&&(--Wt,Kn("Trailing comma in array")),ht;--Wt,Kn()}}}function De(){--Wt;let ht=Wt,Tt=nt[Wt++];const it=function(en){const Dn=nt.substr(ht,Wt-ht);let Mn;if(en?Mn=Number.parseInt(Dn.replace(/^0o?/,""),8):Mn=Number(Dn),Number.isNaN(Mn))--Wt,Kn(`Bad numeric literal - "${nt.substr(ht,Wt-ht+1)}"`);else if(!Ne&&!Dn.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Wt,Kn(`Non-json numeric literal - "${nt.substr(ht,Wt-ht+1)}"`);else return Mn};if((Tt==="-"||Tt==="+"&&Ne)&&(Tt=nt[Wt++]),Tt==="N"&&Ne)return We("NaN"),Number.NaN;if(Tt==="I"&&Ne)return We("Infinity"),it();if(Tt>="1"&&Tt<="9"){for(;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}if(Tt==="0"){Tt=nt[Wt++];const en=Tt==="o"||Tt==="O"||a(Tt),Dn=Tt==="x"||Tt==="X";if(Ne&&(en||Dn)){for(;Wt<Kt&&(Dn?r:a)(nt[Wt]);)++Wt;let Mn=1;return nt[ht]==="-"?(Mn=-1,++ht):nt[ht]==="+"&&++ht,Mn*it(en)}}if(Tt==="."){for(;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}if(Tt==="e"||Tt==="E"){for(Tt=nt[Wt++],(Tt==="-"||Tt==="+")&&++Wt;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}return--Wt,it()}function Ze(){--Wt;let ht="";for(;Wt<Kt;){let Tt=nt[Wt++];if(Tt==="\\"&&nt[Wt]==="u"&&r(nt[Wt+1])&&r(nt[Wt+2])&&r(nt[Wt+3])&&r(nt[Wt+4])&&(Tt=String.fromCharCode(Number.parseInt(nt.substr(Wt+1,4),16)),Wt+=5),ht.length)if(i.isIdentifierPart(Tt))ht+=Tt;else return--Wt,ht;else if(i.isIdentifierStart(Tt))ht+=Tt;else return}Kn()}function g(ht){let Tt="";for(;Wt<Kt;){let it=nt[Wt++];if(it===ht)return Tt;if(it==="\\")if(Wt>=Kt&&Kn(),it=nt[Wt++],p[it]&&(Ne||it!=="v"&&(it!=="'"||Ut)))Tt+=p[it];else if(Ne&&Ot(it))je(it);else if(it==="u"||it==="x"&&Ne){const en=it==="u"?4:2;for(let Dn=0;Dn<en;++Dn)Wt>=Kt&&Kn(),r(nt[Wt])||Kn("Bad escape sequence"),Wt++;Tt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),16))}else if(Ne&&a(it)){let en;it<"4"&&a(nt[Wt])&&a(nt[Wt+1])?en=3:a(nt[Wt])?en=2:en=1,Wt+=en-1,Tt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),8))}else Ne?Tt+=it:(--Wt,Kn());else Ot(it)?Kn():(!Ne&&it.charCodeAt(0)<32&&(--Wt,Kn("Unexpected control character")),Tt+=it)}Kn()}tt&&le(),pe();let mt=de();if(mt!==void 0||Wt<Kt){if(pe(),Wt>=Kt)return Ke&&(mt=Ke("",mt)),Re?$n:mt;Kn()}else Kn(Wt?"No data, only a whitespace":"No data, empty input")}function U(nt,be){return typeof be=="function"?be={reviver:be}:be||(be={}),O(nt,be)}function K(nt,be){be||(be={});const Ne=be.tokenize;be.tokenize=!0;const
Line truncated
|
||||
`,r:"\r",t:" ",v:"\v","/":"/"},C=Object.hasOwn,M={};function O(nt,be){(typeof nt!="string"||!(nt instanceof String))&&(nt=String(nt));const Ne=be.mode==="json5",tt=be.ignoreBOM,lt=be.ignoreComments||be.mode==="cjson"||Ne,kt=be.ignoreTrailingCommas||Ne,gt=be.ignoreProtoKey,St=be.ignorePrototypeKeys,Ut=be.allowSingleQuotedStrings||Ne,Fe=be.allowDuplicateObjectKeys,Ke=be.reviver,Re=be.tokenize,He=be.rawTokens,bt=be.tokenLocations,_t=be.tokenPaths,Ot=Ne?i.isLineTerminator:i.isLineTerminatorJSON,qt=Ne?i.isWhiteSpace:i.isWhiteSpaceJSON,Kt=nt.length;let on=0,Jn=0,Wt=0;const $n=[];let On,Bn,In;if(Re){let ht=null,Tt,it;On=function(){if(ht!==null)throw Error("internal error, token overlap");Tt=on+1,it=Wt-Jn+1,ht=Wt},Bn=function(en,Dn){if(ht!==Wt){const Mn={type:en};He&&(Mn.raw=nt.substr(ht,Wt-ht)),Dn!==void 0&&(Mn.value=Dn),bt&&(Mn.location={start:{column:it,line:Tt,offset:ht}}),_t&&(Mn.path=In.slice()),$n.push(Mn)}return ht=null,Dn},_t&&(In=[])}function Oi(){let ht;return Wt<Kt?ht=`Unexpected token ${JSON.stringify(nt[Wt])}`:ht="Unexpected end of input",ht}function ei(ht){const Tt=Wt-Jn+1;++on;const it=we(ht,nt,Wt,on,Tt),en=SyntaxError(it.message);return en.reason=ht,en.excerpt=it.excerpt,en.pointer=it.pointer,en.location={start:{column:Tt,line:on,offset:Wt}},en}function Kn(ht){throw ht||(ht=Oi()),ei(ht)}function je(ht){ht==="\r"&&nt[Wt]===`
|
||||
`&&++Wt,Jn=Wt,++on}function de(){if(Wt<Kt){On?.();const ht=nt[Wt++];if(ht==='"'||ht==="'"&&Ut){const Tt=g(ht);return Bn?.("literal",Tt),Tt}if(ht==="{")return Bn?.("symbol","{"),dt();if(ht==="[")return Bn?.("symbol","["),Ye();if(ht==="-"||ht==="."||l(ht)||Ne&&(ht==="+"||ht==="I"||ht==="N")){const Tt=De();return Bn?.("literal",Tt),Tt}if(ht==="n")return We("null"),Bn?.("literal",null),null;if(ht==="t")return We("true"),Bn?.("literal",!0),!0;if(ht==="f")return We("false"),Bn?.("literal",!1),!1;--Wt,Bn?.();return}}function re(){let ht;if(Wt<Kt){On?.();const Tt=nt[Wt++];if(Tt==='"'||Tt==="'"&&Ut){const it=g(Tt);return Bn?.("literal",it),it}if(Tt==="{")return Bn?.("symbol","{"),dt();if(Tt==="[")return Bn?.("symbol","["),Ye();if(Tt==="."||l(Tt)){const it=De();return Bn?.("literal",it),it}if(Ne&&i.isIdentifierStart(Tt)||Tt==="\\"&&nt[Wt]==="u"){const it=Wt-1;if(ht=Ze(),ht===void 0){Wt=it,Bn?.();return}return Bn?.("literal",ht),ht}--Wt,Bn?.();return}}function le(){o(nt)&&(On?.(),++Wt,Bn?.("bom"))}function pe(){let ht;function Tt(){ht||(ht=!0,--Wt,On(),++Wt)}function it(){ht&&(ht=!1,Bn("whitespace"))}for(;Wt<Kt;){const en=nt[Wt++];if(Ot(en))On&&Tt(),je(en);else if(qt(en))On&&Tt();else if(en==="/"&<&&(nt[Wt]==="/"||nt[Wt]==="*"))On&&(--Wt,it(),On(),++Wt),Te(nt[Wt++]==="*"),Bn?.("comment");else{--Wt;break}}Bn&&it()}function Te(ht){for(;Wt<Kt;){const Tt=nt[Wt++];if(Ot(Tt)){if(!ht){--Wt;return}je(Tt)}else if(Tt==="*"&&ht&&nt[Wt]==="/"){++Wt;return}}ht&&Kn("Unclosed multiline comment")}function We(ht){const Tt=Wt;for(let it=1,en=ht.length;it<en;++it)(Wt>=Kt||ht[it]!==nt[Wt])&&(Wt=Tt-1,Kn()),++Wt}function dt(){let ht={},Tt=!1;for(;Wt<Kt;){pe();const it=re();Fe===!1&&C(ht,it)&&Kn(`Duplicate key: "${it}"`),pe(),On?.();let en=nt[Wt++];if(Bn?.("symbol",en),en==="}"&&it===void 0)return!kt&&Tt&&(--Wt,Kn("Trailing comma in object")),ht;if(en===":"&&it!==void 0){pe(),In?.push(it);let Dn=de();if(In?.pop(),Dn===void 0&&Kn(`No value found for key "${it}"`),typeof it!="string"&&(!Ne||typeof it!="number")&&Kn(`Wrong key type: "${it}"`),St&&(it in M||M[it]!=null)||gt&&it==="__proto__"||(Ke&&(Dn=Ke(it,Dn)),Dn!==void 0&&(Tt=!0,it==="__proto__"?ht=Object.assign(JSON.parse(`{"__proto__":${JSON.stringify(Dn)}}`),ht):ht[it]=Dn)),pe(),On?.(),en=nt[Wt++],Bn?.("symbol",en),en!==","){if(en==="}")return ht;Kn()}}else--Wt,Kn()}Kn()}function Ye(){const ht=[];for(;Wt<Kt;){pe(),In?.push(ht.length);let Tt=de();In?.pop(),pe(),On?.();const it=nt[Wt++];if(Bn?.("symbol",it),Tt!==void 0&&(Ke&&(Tt=Ke(String(ht.length),Tt)),Tt===void 0?(++ht.length,Tt=!0):ht.push(Tt)),it===",")Tt===void 0&&Kn("Elisions are not supported");else{if(it==="]")return!kt&&Tt===void 0&&ht.length&&(--Wt,Kn("Trailing comma in array")),ht;--Wt,Kn()}}}function De(){--Wt;let ht=Wt,Tt=nt[Wt++];const it=function(en){const Dn=nt.substr(ht,Wt-ht);let Mn;if(en?Mn=Number.parseInt(Dn.replace(/^0o?/,""),8):Mn=Number(Dn),Number.isNaN(Mn))--Wt,Kn(`Bad numeric literal - "${nt.substr(ht,Wt-ht+1)}"`);else if(!Ne&&!Dn.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))--Wt,Kn(`Non-json numeric literal - "${nt.substr(ht,Wt-ht+1)}"`);else return Mn};if((Tt==="-"||Tt==="+"&&Ne)&&(Tt=nt[Wt++]),Tt==="N"&&Ne)return We("NaN"),Number.NaN;if(Tt==="I"&&Ne)return We("Infinity"),it();if(Tt>="1"&&Tt<="9"){for(;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}if(Tt==="0"){Tt=nt[Wt++];const en=Tt==="o"||Tt==="O"||a(Tt),Dn=Tt==="x"||Tt==="X";if(Ne&&(en||Dn)){for(;Wt<Kt&&(Dn?r:a)(nt[Wt]);)++Wt;let Mn=1;return nt[ht]==="-"?(Mn=-1,++ht):nt[ht]==="+"&&++ht,Mn*it(en)}}if(Tt==="."){for(;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}if(Tt==="e"||Tt==="E"){for(Tt=nt[Wt++],(Tt==="-"||Tt==="+")&&++Wt;Wt<Kt&&l(nt[Wt]);)++Wt;Tt=nt[Wt++]}return--Wt,it()}function Ze(){--Wt;let ht="";for(;Wt<Kt;){let Tt=nt[Wt++];if(Tt==="\\"&&nt[Wt]==="u"&&r(nt[Wt+1])&&r(nt[Wt+2])&&r(nt[Wt+3])&&r(nt[Wt+4])&&(Tt=String.fromCharCode(Number.parseInt(nt.substr(Wt+1,4),16)),Wt+=5),ht.length)if(i.isIdentifierPart(Tt))ht+=Tt;else return--Wt,ht;else if(i.isIdentifierStart(Tt))ht+=Tt;else return}Kn()}function g(ht){let Tt="";for(;Wt<Kt;){let it=nt[Wt++];if(it===ht)return Tt;if(it==="\\")if(Wt>=Kt&&Kn(),it=nt[Wt++],p[it]&&(Ne||it!=="v"&&(it!=="'"||Ut)))Tt+=p[it];else if(Ne&&Ot(it))je(it);else if(it==="u"||it==="x"&&Ne){const en=it==="u"?4:2;for(let Dn=0;Dn<en;++Dn)Wt>=Kt&&Kn(),r(nt[Wt])||Kn("Bad escape sequence"),Wt++;Tt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),16))}else if(Ne&&a(it)){let en;it<"4"&&a(nt[Wt])&&a(nt[Wt+1])?en=3:a(nt[Wt])?en=2:en=1,Wt+=en-1,Tt+=String.fromCharCode(Number.parseInt(nt.substr(Wt-en,en),8))}else Ne?Tt+=it:(--Wt,Kn());else Ot(it)?Kn():(!Ne&&it.charCodeAt(0)<32&&(--Wt,Kn("Unexpected control character")),Tt+=it)}Kn()}tt&&le(),pe();let mt=de();if(mt!==void 0||Wt<Kt){if(pe(),Wt>=Kt)return Ke&&(mt=Ke("",mt)),Re?$n:mt;Kn()}else Kn(Wt?"No data, only a whitespace":"No data, empty input")}function U(nt,be){return typeof be=="function"?be={reviver:be}:be||(be={}),O(nt,be)}function K(nt,be){be||(be={});const Ne=be.tokenize;be.tokenize=!0;const
Line truncated
|
||||
${gt}
|
||||
${Ut}
|
||||
${nt}`):St=`Parse error in JSON input:
|
||||
${gt}
|
||||
${nt}`,{message:St,excerpt:gt,pointer:Ut}}function Oe(nt,be){let Ne=G(be);const tt=ce(nt,Ne)||ge(nt,Ne)||ye(nt,Ne);let lt,kt,gt;tt?(lt=tt.offset,kt=tt.line,gt=tt.column,Ne=tt.reason):lt=0,be.reason=Ne;const St=we(Ne,nt,lt,kt,gt);return be.message=St.message,be.excerpt=St.excerpt,St.pointer&&(be.pointer=St.pointer,be.location={start:{column:gt,line:kt,offset:lt}}),be}function Se(nt,be){try{return JSON.parse(nt,be)}catch(Ne){const tt=Oe(nt,Ne);if(Ne.location)throw tt;return U(nt,be)}}const Ve=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function ze(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||Ve||xe}function st(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function Ct(nt,be){return be||(be={}),ze(be)?U(nt,be):Se(nt,st(be))}t.parse=Ct,t.tokenize=K,t.pathToPointer=W,t.pointerToPath=te,t.parseNative=Se,t.parseCustom=U,t.getErrorTexts=we,Object.defineProperty(t,"__esModule",{value:!0})})}(jC,jC.exports)),jC.exports}var Sle=wle(),Tx={exports:{}},Ele=Tx.exports,fk;function Ble(){return fk||(fk=1,function(n,e){(function(t,i){n.exports=i()})(Ele,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Ke,Re){return Re={exports:{}},Ke(Re,Re.exports),Re.exports}var r=i(function(Ke){function Re(){var He=0,bt=1,_t=2,Ot=3,qt=4,Kt=5,on=6,Jn=7,Wt=8,$n=9,On=10,Bn=11,In=12,Oi=13,ei=14,Kn=15,je=16,de=17,re=0,le=1,pe=2,Te=3,We=4;function dt(g,mt){return 55296<=g.charCodeAt(mt)&&g.charCodeAt(mt)<=56319&&56320<=g.charCodeAt(mt+1)&&g.charCodeAt(mt+1)<=57343}function Ye(g,mt){mt===void 0&&(mt=0);var ht=g.charCodeAt(mt);if(55296<=ht&&ht<=56319&&mt<g.length-1){var Tt=ht,it=g.charCodeAt(mt+1);return 56320<=it&&it<=57343?(Tt-55296)*1024+(it-56320)+65536:Tt}if(56320<=ht&&ht<=57343&&mt>=1){var Tt=g.charCodeAt(mt-1),it=ht;return 55296<=Tt&&Tt<=56319?(Tt-55296)*1024+(it-56320)+65536:it}return ht}function De(g,mt,ht){var Tt=[g].concat(mt).concat([ht]),it=Tt[Tt.length-2],en=ht,Dn=Tt.lastIndexOf(ei);if(Dn>1&&Tt.slice(1,Dn).every(function(Wn){return Wn==Ot})&&[Ot,Oi,de].indexOf(g)==-1)return pe;var Mn=Tt.lastIndexOf(qt);if(Mn>0&&Tt.slice(1,Mn).every(function(Wn){return Wn==qt})&&[In,qt].indexOf(it)==-1)return Tt.filter(function(Wn){return Wn==qt}).length%2==1?Te:We;if(it==He&&en==bt)return re;if(it==_t||it==He||it==bt)return en==ei&&mt.every(function(Wn){return Wn==Ot})?pe:le;if(en==_t||en==He||en==bt)return le;if(it==on&&(en==on||en==Jn||en==$n||en==On))return re;if((it==$n||it==Jn)&&(en==Jn||en==Wt))return re;if((it==On||it==Wt)&&en==Wt)return re;if(en==Ot||en==Kn)return re;if(en==Kt)return re;if(it==In)return re;var ii=Tt.indexOf(Ot)!=-1?Tt.lastIndexOf(Ot)-1:Tt.length-2;return[Oi,de].indexOf(Tt[ii])!=-1&&Tt.slice(ii+1,-1).every(function(Wn){return Wn==Ot})&&en==ei||it==Kn&&[je,de].indexOf(en)!=-1?re:mt.indexOf(qt)!=-1?pe:it==qt&&en==qt?re:le}this.nextBreak=function(g,mt){if(mt===void 0&&(mt=0),mt<0)return 0;if(mt>=g.length-1)return g.length;for(var ht=Ze(Ye(g,mt)),Tt=[],it=mt+1;it<g.length;it++)if(!dt(g,it-1)){var en=Ze(Ye(g,it));if(De(ht,Tt,en))return it;Tt.push(en)}return g.length},this.splitGraphemes=function(g){for(var mt=[],ht=0,Tt;(Tt=this.nextBreak(g,ht))<g.length;)mt.push(g.slice(ht,Tt)),ht=Tt;return ht<g.length&&mt.push(g.slice(ht)),mt},this.iterateGraphemes=function(g){var mt=0,ht={next:(function(){var Tt,it;return(it=this.nextBreak(g,mt))<g.length?(Tt=g.slice(mt,it),mt=it,{value:Tt,done:!1}):mt<g.length?(Tt=g.slice(mt),mt=g.length,{value:Tt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(ht[Symbol.iterator]=function(){return ht}),ht},this.countGraphemes=function(g){for(var mt=0,ht=0,Tt;(Tt=this.nextBreak(g,ht))<g.length;)ht=Tt,mt++;return ht<g.length&&mt++,mt};function Ze(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?In:g==13?He:g==10?bt:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?_t:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<
Line truncated
|
||||
${nt}`,{message:St,excerpt:gt,pointer:Ut}}function Ie(nt,be){let Ne=G(be);const tt=ce(nt,Ne)||ge(nt,Ne)||ye(nt,Ne);let lt,kt,gt;tt?(lt=tt.offset,kt=tt.line,gt=tt.column,Ne=tt.reason):lt=0,be.reason=Ne;const St=we(Ne,nt,lt,kt,gt);return be.message=St.message,be.excerpt=St.excerpt,St.pointer&&(be.pointer=St.pointer,be.location={start:{column:gt,line:kt,offset:lt}}),be}function Se(nt,be){try{return JSON.parse(nt,be)}catch(Ne){const tt=Ie(nt,Ne);if(Ne.location)throw tt;return U(nt,be)}}const Ve=typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),xe=typeof process<"u"&&process.version.startsWith("v4.");function ze(nt){return nt.ignoreBOM||nt.ignoreComments||nt.ignoreTrailingCommas||nt.allowSingleQuotedStrings||nt.allowDuplicateObjectKeys===!1||nt.ignoreProtoKey||nt.ignorePrototypeKeys||nt.mode==="cjson"||nt.mode==="json5"||Ve||xe}function st(nt){if(typeof nt=="function")return nt;if(nt)return nt.reviver}function Ct(nt,be){return be||(be={}),ze(be)?U(nt,be):Se(nt,st(be))}t.parse=Ct,t.tokenize=K,t.pathToPointer=W,t.pointerToPath=te,t.parseNative=Se,t.parseCustom=U,t.getErrorTexts=we,Object.defineProperty(t,"__esModule",{value:!0})})}(GC,GC.exports)),GC.exports}var Ble=Ele(),kx={exports:{}},Ole=kx.exports,pk;function Ile(){return pk||(pk=1,function(n,e){(function(t,i){n.exports=i()})(Ole,function(){var t=typeof window<"u"||typeof window<"u"?window:typeof self<"u"?self:{};function i(Ke,Re){return Re={exports:{}},Ke(Re,Re.exports),Re.exports}var r=i(function(Ke){function Re(){var He=0,bt=1,_t=2,Ot=3,qt=4,Kt=5,on=6,Jn=7,Wt=8,$n=9,On=10,Bn=11,In=12,Oi=13,ei=14,Kn=15,je=16,de=17,re=0,le=1,pe=2,Te=3,We=4;function dt(g,mt){return 55296<=g.charCodeAt(mt)&&g.charCodeAt(mt)<=56319&&56320<=g.charCodeAt(mt+1)&&g.charCodeAt(mt+1)<=57343}function Ye(g,mt){mt===void 0&&(mt=0);var ht=g.charCodeAt(mt);if(55296<=ht&&ht<=56319&&mt<g.length-1){var Tt=ht,it=g.charCodeAt(mt+1);return 56320<=it&&it<=57343?(Tt-55296)*1024+(it-56320)+65536:Tt}if(56320<=ht&&ht<=57343&&mt>=1){var Tt=g.charCodeAt(mt-1),it=ht;return 55296<=Tt&&Tt<=56319?(Tt-55296)*1024+(it-56320)+65536:it}return ht}function De(g,mt,ht){var Tt=[g].concat(mt).concat([ht]),it=Tt[Tt.length-2],en=ht,Dn=Tt.lastIndexOf(ei);if(Dn>1&&Tt.slice(1,Dn).every(function(Wn){return Wn==Ot})&&[Ot,Oi,de].indexOf(g)==-1)return pe;var Mn=Tt.lastIndexOf(qt);if(Mn>0&&Tt.slice(1,Mn).every(function(Wn){return Wn==qt})&&[In,qt].indexOf(it)==-1)return Tt.filter(function(Wn){return Wn==qt}).length%2==1?Te:We;if(it==He&&en==bt)return re;if(it==_t||it==He||it==bt)return en==ei&&mt.every(function(Wn){return Wn==Ot})?pe:le;if(en==_t||en==He||en==bt)return le;if(it==on&&(en==on||en==Jn||en==$n||en==On))return re;if((it==$n||it==Jn)&&(en==Jn||en==Wt))return re;if((it==On||it==Wt)&&en==Wt)return re;if(en==Ot||en==Kn)return re;if(en==Kt)return re;if(it==In)return re;var ii=Tt.indexOf(Ot)!=-1?Tt.lastIndexOf(Ot)-1:Tt.length-2;return[Oi,de].indexOf(Tt[ii])!=-1&&Tt.slice(ii+1,-1).every(function(Wn){return Wn==Ot})&&en==ei||it==Kn&&[je,de].indexOf(en)!=-1?re:mt.indexOf(qt)!=-1?pe:it==qt&&en==qt?re:le}this.nextBreak=function(g,mt){if(mt===void 0&&(mt=0),mt<0)return 0;if(mt>=g.length-1)return g.length;for(var ht=Ze(Ye(g,mt)),Tt=[],it=mt+1;it<g.length;it++)if(!dt(g,it-1)){var en=Ze(Ye(g,it));if(De(ht,Tt,en))return it;Tt.push(en)}return g.length},this.splitGraphemes=function(g){for(var mt=[],ht=0,Tt;(Tt=this.nextBreak(g,ht))<g.length;)mt.push(g.slice(ht,Tt)),ht=Tt;return ht<g.length&&mt.push(g.slice(ht)),mt},this.iterateGraphemes=function(g){var mt=0,ht={next:(function(){var Tt,it;return(it=this.nextBreak(g,mt))<g.length?(Tt=g.slice(mt,it),mt=it,{value:Tt,done:!1}):mt<g.length?(Tt=g.slice(mt),mt=g.length,{value:Tt,done:!1}):{value:void 0,done:!0}}).bind(this)};return typeof Symbol<"u"&&Symbol.iterator&&(ht[Symbol.iterator]=function(){return ht}),ht},this.countGraphemes=function(g){for(var mt=0,ht=0,Tt;(Tt=this.nextBreak(g,ht))<g.length;)ht=Tt,mt++;return ht<g.length&&mt++,mt};function Ze(g){return 1536<=g&&g<=1541||g==1757||g==1807||g==2274||g==3406||g==69821||70082<=g&&g<=70083||g==72250||72326<=g&&g<=72329||g==73030?In:g==13?He:g==10?bt:0<=g&&g<=9||11<=g&&g<=12||14<=g&&g<=31||127<=g&&g<=159||g==173||g==1564||g==6158||g==8203||8206<=g&&g<=8207||g==8232||g==8233||8234<=g&&g<=8238||8288<=g&&g<=8292||g==8293||8294<=g&&g<=8303||55296<=g&&g<=57343||g==65279||65520<=g&&g<=65528||65529<=g&&g<=65531||113824<=g&&g<=113827||119155<=g&&g<=119162||g==917504||g==917505||917506<=g&&g<=917535||917632<=g&&g<=917759||918e3<=g&&g<=921599?_t:768<=g&&g<=879||1155<=g&&g<=1159||1160<=g&&g<=1161||1425<=g&&g<=1469||g==1471||1473<=g&&g<=1474||1476<=g&&g<=1477||g==1479||1552<=g&&g<=1562||1611<=g&&g<=1631||g==1648||1750<=g&&g<=1756||1759<=g&&g<=1764||1767<=g&&g<=1768||1770<=g&&g<=1773||g==1809||1840<=g&&g<=1866||1958<=g&&g<=1968||2027<=g&&g<=2035||2070<=g&&g<=2073||2075<=g&&g<=2083||2085<=g&&g<=2087||2089<=g&&g<=2093||2137<=g&&g<=2139||2260<=g&&g<=2273||2275<=g&&g<=2306||g==2362||g==2364||2369<=g&&g<
Line truncated
|
||||
`)}var Wt={extraLines:2,tabSize:4},$n=function(Bn,In,Oi,ei){ei=Kt({},Wt,ei);var Kn=Bn.split(/\r\n?|\n|\f/),je=Math.max(1,In-ei.extraLines)-1,de=Math.min(In+ei.extraLines,Kn.length),re=String(de).length,le=Jn(Kn,je,In,re,ei),pe=on(Kn[In-1].substring(0,Oi-1),In,re,ei),Te=_t(" ",pe.length)+"^",We=Jn(Kn,In,de,re,ei);return[le,Te,We].filter(Boolean).join(`
|
||||
`)};return $n})}),C=new Error().stack,w=function(Ke){var Re=Object.create(SyntaxError.prototype);return Object.assign(Re,Ke,{name:"SyntaxError"}),Object.defineProperty(Re,"stack",{get:function(){return C?C.replace(/^(.+\n){1,3}/,String(Re)+`
|
||||
`):""}}),Re},O=function(Ke,Re,He,bt,_t){throw w({message:bt?Ke+`
|
||||
`)};return $n})}),C=new Error().stack,M=function(Ke){var Re=Object.create(SyntaxError.prototype);return Object.assign(Re,Ke,{name:"SyntaxError"}),Object.defineProperty(Re,"stack",{get:function(){return C?C.replace(/^(.+\n){1,3}/,String(Re)+`
|
||||
`):""}}),Re},O=function(Ke,Re,He,bt,_t){throw M({message:bt?Ke+`
|
||||
`+p(Re,bt,_t):Ke,rawMessage:Ke,source:He,line:bt,column:_t})},U={unexpectedEnd:function(){return"Unexpected end of input"},unexpectedToken:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),_t=1;_t<He;_t++)bt[_t-1]=arguments[_t];return"Unexpected token <"+Re+"> at "+bt.filter(Boolean).join(":")}},K={unexpectedSymbol:function(Re){for(var He=arguments.length,bt=Array(He>1?He-1:0),_t=1;_t<He;_t++)bt[_t-1]=arguments[_t];return"Unexpected symbol <"+Re+"> at "+bt.filter(Boolean).join(":")}},j={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},W={"{":j.LEFT_BRACE,"}":j.RIGHT_BRACE,"[":j.LEFT_BRACKET,"]":j.RIGHT_BRACKET,":":j.COLON,",":j.COMMA},Y={true:j.TRUE,false:j.FALSE,null:j.NULL},te={_START_:0,START_QUOTE_OR_CHAR:1,ESCAPE:2},J={'"':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 ne(Ke){return Ke>="1"&&Ke<="9"}function $(Ke){return Ke>="0"&&Ke<="9"}function ae(Ke){return $(Ke)||Ke>="a"&&Ke<="f"||Ke>="A"&&Ke<="F"}function G(Ke){return Ke==="e"||Ke==="E"}function ce(Ke,Re,He,bt){var _t=Ke.charAt(Re);if(_t==="\r")Re++,He++,bt=1,Ke.charAt(Re)===`
|
||||
`&&Re++;else if(_t===`
|
||||
`)Re++,He++,bt=1;else if(_t===" "||_t===" ")Re++,bt++;else return null;return{index:Re,line:He,column:bt}}function ge(Ke,Re,He,bt){var _t=Ke.charAt(Re);return _t in W?{type:W[_t],line:He,column:bt+1,index:Re+1,value:null}:null}function ye(Ke,Re,He,bt){for(var _t in Y)if(Y.hasOwnProperty(_t)&&Ke.substr(Re,_t.length)===_t)return{type:Y[_t],line:He,column:bt+_t.length,index:Re+_t.length,value:_t};return null}function we(Ke,Re,He,bt){for(var _t=Re,Ot=te._START_;Re<Ke.length;){var qt=Ke.charAt(Re);switch(Ot){case te._START_:{if(qt==='"')Re++,Ot=te.START_QUOTE_OR_CHAR;else return null;break}case te.START_QUOTE_OR_CHAR:{if(qt==="\\")Re++,Ot=te.ESCAPE;else{if(qt==='"')return Re++,{type:j.STRING,line:He,column:bt+Re-_t,index:Re,value:Ke.slice(_t,Re)};Re++}break}case te.ESCAPE:{if(qt in J){if(Re++,qt==="u")for(var Kt=0;Kt<4;Kt++){var on=Ke.charAt(Re);if(on&&ae(on))Re++;else return null}Ot=te.START_QUOTE_OR_CHAR}else return null;break}}}}function Oe(Ke,Re,He,bt){var _t=Re,Ot=Re,qt=oe._START_;e:for(;Re<Ke.length;){var Kt=Ke.charAt(Re);switch(qt){case oe._START_:{if(Kt==="-")qt=oe.MINUS;else if(Kt==="0")Ot=Re+1,qt=oe.ZERO;else if(ne(Kt))Ot=Re+1,qt=oe.DIGIT;else return null;break}case oe.MINUS:{if(Kt==="0")Ot=Re+1,qt=oe.ZERO;else if(ne(Kt))Ot=Re+1,qt=oe.DIGIT;else return null;break}case oe.ZERO:{if(Kt===".")qt=oe.POINT;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.DIGIT:{if($(Kt))Ot=Re+1;else if(Kt===".")qt=oe.POINT;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.POINT:{if($(Kt))Ot=Re+1,qt=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if($(Kt))Ot=Re+1;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.EXP:{if(Kt==="+"||Kt==="-")qt=oe.EXP_DIGIT_OR_SIGN;else if($(Kt))Ot=Re+1,qt=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if($(Kt))Ot=Re+1;else break e;break}}Re++}return Ot>0?{type:j.NUMBER,line:He,column:bt+Ot-_t,index:Ot,value:Ke.slice(_t,Ot)}:null}var Se=function(Re,He){for(var bt=1,_t=1,Ot=0,qt=[];Ot<Re.length;){var Kt=[Re,Ot,bt,_t],on=ce.apply(void 0,Kt);if(on){Ot=on.index,bt=on.line,_t=on.column;continue}var Jn=ge.apply(void 0,Kt)||ye.apply(void 0,Kt)||we.apply(void 0,Kt)||Oe.apply(void 0,Kt);if(Jn){var Wt={type:Jn.type,value:Jn.value,loc:o(bt,_t,Ot,Jn.line,Jn.column,Jn.index,He.source)};qt.push(Wt),Ot=Jn.index,bt=Jn.line,_t=Jn.column}else O(K.unexpectedSymbol(l(Re,Ot,Ot+1),He.source,bt,_t),Re,He.source,bt,_t)}return qt},Ve={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},ze={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},st={loc:!0,source:null};function Ct(Ke,Re,He){var bt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};O(U.unexpectedEnd(),Ke,He.source,bt.line,bt.column)}function nt(Ke){for(var Re=0,He=0;He<4;He++)Re=Re*16+parseInt(Ke[He],16);return String.fromCharCode(Re)}var be={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Ne=['"',"\\","/"];function tt(Ke){for(var Re="",He=0;He<Ke.length;He++){var bt=Ke.charAt(He);if(bt==="\\"){He++;var _t=Ke.charAt(He);if(_t==="u")Re+=nt(Ke.substr(He+1,4)),He+=4;else if(Ne.indexOf(_t)!==-1)Re+=_t;else if(_t in be)Re+=be[_t];else break}else Re+=bt}return Re}function lt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Object",children:[]},qt=Ve._START_;He<Re.length;){var Kt=Re[He];switch(qt){case Ve._START_:{if(Kt.type===j.LEFT_BRACE)_t=Kt,qt=Ve.OPEN_OBJECT,He++;else return null;break}case Ve.OPEN_OBJECT:{if(Kt.type===j.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=kt(Ke,Re,He,bt);Ot.children.push(on.value),qt=Ve.PROPERTY,He=on.index;break}case Ve.PROPERTY:{if(Kt.type===j.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===j.COMMA?(qt=Ve.COMMA,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case Ve.COMMA:{var Jn=kt(Ke,Re,He,bt);Jn?(He=Jn.index,Ot.children.push(Jn.value),qt=Ve.PROPERTY):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}Ct(Ke,Re,bt)}function kt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Property",key:null,value:null},qt=xe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case xe._START_:{if(Kt.type===j.STRING){var on={type:"Identifier",value:tt(Ke.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(on.loc=Kt.loc),_t=Kt,Ot.key=on,qt=xe.KEY,He++}else return null;break}case xe.KEY:{Kt.type===j.COLON?(qt=xe.COLON,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case xe.COLON:{var Jn=Ut(Ke,Re,He,bt);return Ot.value=Jn.value,bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Jn.value.loc.end.line,Jn.value.loc.end.column,Jn.value.loc.end.offset,bt.source)),{value:Ot,index:Jn.index}}}}}function gt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Array",children:[]},qt=ze._START_,Kt=void 0;He<Re.length;)switch(Kt=Re[He],qt){case ze._START_:{if(Kt.type===j.LEFT_BRACKET)_t=Kt,qt=ze.OPEN_ARRAY,He++;else return null;break}case ze.OPEN_ARRAY:{if(Kt.type===j.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=Ut(Ke,Re,He,bt);He=on.index,Ot.children.push(on.value),qt=ze.VALUE;break}case ze.VALUE:{if(Kt.type===j.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===j.COMMA?(qt=ze.COMMA,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case ze.COMMA:{var Jn=Ut(Ke,Re,He,bt);He=Jn.index,Ot.children.push(Jn.value),qt=ze.VALUE;break}}Ct(Ke,Re,bt)}function St(Ke,Re,He,bt){var _t=Re[He],Ot=null;switch(_t.type){case j.STRING:{Ot=tt(Ke.slice(_t.loc.start.offset+1,_t.loc.end.offset-1));break}case j.NUMBER:{Ot=Number(_t.value);break}case j.TRUE:{Ot=!0;break}case j.FALSE:{Ot=!1;break}case j.NULL:{Ot=null;break}default:return null}var qt={type:"Literal",value:Ot,raw:_t.value};return bt.loc&&(qt.loc=_t.loc),{value:qt,index:He+1}}function Ut(Ke,Re,He,bt){var _t=Re[He],Ot=St.apply(void 0,arguments)||lt.apply(void 0,arguments)||gt.apply(void 0,arguments);if(Ot)return Ot;O(U.unexpectedToken(l(Ke,_t.loc.start.offset,_t.loc.end.offset),bt.source,_t.loc.start.line,_t.loc.start.column),Ke,bt.source,_t.loc.start.line,_t.loc.start.column)}var Fe=function(Ke,Re){Re=Object.assign({},st,Re);var He=Se(Ke,Re);He.length===0&&Ct(Ke,He,Re);var bt=Ut(Ke,He,0,Re);if(bt.index===He.length)return bt.value;var _t=He[bt.index];O(U.unexpectedToken(l(Ke,_t.loc.start.offset,_t.loc.end.offset),Re.source,_t.loc.start.line,_t.loc.start.column),Ke,Re.source,_t.loc.start.line,_t.loc.start.column)};return Fe})}(Tx)),Tx.exports}var Ole=Ble();const Ile=AA(Ole);function li(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={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
|
||||
`)Re++,He++,bt=1;else if(_t===" "||_t===" ")Re++,bt++;else return null;return{index:Re,line:He,column:bt}}function ge(Ke,Re,He,bt){var _t=Ke.charAt(Re);return _t in W?{type:W[_t],line:He,column:bt+1,index:Re+1,value:null}:null}function ye(Ke,Re,He,bt){for(var _t in Y)if(Y.hasOwnProperty(_t)&&Ke.substr(Re,_t.length)===_t)return{type:Y[_t],line:He,column:bt+_t.length,index:Re+_t.length,value:_t};return null}function we(Ke,Re,He,bt){for(var _t=Re,Ot=te._START_;Re<Ke.length;){var qt=Ke.charAt(Re);switch(Ot){case te._START_:{if(qt==='"')Re++,Ot=te.START_QUOTE_OR_CHAR;else return null;break}case te.START_QUOTE_OR_CHAR:{if(qt==="\\")Re++,Ot=te.ESCAPE;else{if(qt==='"')return Re++,{type:j.STRING,line:He,column:bt+Re-_t,index:Re,value:Ke.slice(_t,Re)};Re++}break}case te.ESCAPE:{if(qt in J){if(Re++,qt==="u")for(var Kt=0;Kt<4;Kt++){var on=Ke.charAt(Re);if(on&&ae(on))Re++;else return null}Ot=te.START_QUOTE_OR_CHAR}else return null;break}}}}function Ie(Ke,Re,He,bt){var _t=Re,Ot=Re,qt=oe._START_;e:for(;Re<Ke.length;){var Kt=Ke.charAt(Re);switch(qt){case oe._START_:{if(Kt==="-")qt=oe.MINUS;else if(Kt==="0")Ot=Re+1,qt=oe.ZERO;else if(ne(Kt))Ot=Re+1,qt=oe.DIGIT;else return null;break}case oe.MINUS:{if(Kt==="0")Ot=Re+1,qt=oe.ZERO;else if(ne(Kt))Ot=Re+1,qt=oe.DIGIT;else return null;break}case oe.ZERO:{if(Kt===".")qt=oe.POINT;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.DIGIT:{if($(Kt))Ot=Re+1;else if(Kt===".")qt=oe.POINT;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.POINT:{if($(Kt))Ot=Re+1,qt=oe.DIGIT_FRACTION;else break e;break}case oe.DIGIT_FRACTION:{if($(Kt))Ot=Re+1;else if(G(Kt))qt=oe.EXP;else break e;break}case oe.EXP:{if(Kt==="+"||Kt==="-")qt=oe.EXP_DIGIT_OR_SIGN;else if($(Kt))Ot=Re+1,qt=oe.EXP_DIGIT_OR_SIGN;else break e;break}case oe.EXP_DIGIT_OR_SIGN:{if($(Kt))Ot=Re+1;else break e;break}}Re++}return Ot>0?{type:j.NUMBER,line:He,column:bt+Ot-_t,index:Ot,value:Ke.slice(_t,Ot)}:null}var Se=function(Re,He){for(var bt=1,_t=1,Ot=0,qt=[];Ot<Re.length;){var Kt=[Re,Ot,bt,_t],on=ce.apply(void 0,Kt);if(on){Ot=on.index,bt=on.line,_t=on.column;continue}var Jn=ge.apply(void 0,Kt)||ye.apply(void 0,Kt)||we.apply(void 0,Kt)||Ie.apply(void 0,Kt);if(Jn){var Wt={type:Jn.type,value:Jn.value,loc:o(bt,_t,Ot,Jn.line,Jn.column,Jn.index,He.source)};qt.push(Wt),Ot=Jn.index,bt=Jn.line,_t=Jn.column}else O(K.unexpectedSymbol(l(Re,Ot,Ot+1),He.source,bt,_t),Re,He.source,bt,_t)}return qt},Ve={_START_:0,OPEN_OBJECT:1,PROPERTY:2,COMMA:3},xe={_START_:0,KEY:1,COLON:2},ze={_START_:0,OPEN_ARRAY:1,VALUE:2,COMMA:3},st={loc:!0,source:null};function Ct(Ke,Re,He){var bt=Re.length>0?Re[Re.length-1].loc.end:{line:1,column:1};O(U.unexpectedEnd(),Ke,He.source,bt.line,bt.column)}function nt(Ke){for(var Re=0,He=0;He<4;He++)Re=Re*16+parseInt(Ke[He],16);return String.fromCharCode(Re)}var be={b:"\b",f:"\f",n:`
|
||||
`,r:"\r",t:" "},Ne=['"',"\\","/"];function tt(Ke){for(var Re="",He=0;He<Ke.length;He++){var bt=Ke.charAt(He);if(bt==="\\"){He++;var _t=Ke.charAt(He);if(_t==="u")Re+=nt(Ke.substr(He+1,4)),He+=4;else if(Ne.indexOf(_t)!==-1)Re+=_t;else if(_t in be)Re+=be[_t];else break}else Re+=bt}return Re}function lt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Object",children:[]},qt=Ve._START_;He<Re.length;){var Kt=Re[He];switch(qt){case Ve._START_:{if(Kt.type===j.LEFT_BRACE)_t=Kt,qt=Ve.OPEN_OBJECT,He++;else return null;break}case Ve.OPEN_OBJECT:{if(Kt.type===j.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=kt(Ke,Re,He,bt);Ot.children.push(on.value),qt=Ve.PROPERTY,He=on.index;break}case Ve.PROPERTY:{if(Kt.type===j.RIGHT_BRACE)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===j.COMMA?(qt=Ve.COMMA,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case Ve.COMMA:{var Jn=kt(Ke,Re,He,bt);Jn?(He=Jn.index,Ot.children.push(Jn.value),qt=Ve.PROPERTY):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}}}Ct(Ke,Re,bt)}function kt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Property",key:null,value:null},qt=xe._START_;He<Re.length;){var Kt=Re[He];switch(qt){case xe._START_:{if(Kt.type===j.STRING){var on={type:"Identifier",value:tt(Ke.slice(Kt.loc.start.offset+1,Kt.loc.end.offset-1)),raw:Kt.value};bt.loc&&(on.loc=Kt.loc),_t=Kt,Ot.key=on,qt=xe.KEY,He++}else return null;break}case xe.KEY:{Kt.type===j.COLON?(qt=xe.COLON,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case xe.COLON:{var Jn=Ut(Ke,Re,He,bt);return Ot.value=Jn.value,bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Jn.value.loc.end.line,Jn.value.loc.end.column,Jn.value.loc.end.offset,bt.source)),{value:Ot,index:Jn.index}}}}}function gt(Ke,Re,He,bt){for(var _t=void 0,Ot={type:"Array",children:[]},qt=ze._START_,Kt=void 0;He<Re.length;)switch(Kt=Re[He],qt){case ze._START_:{if(Kt.type===j.LEFT_BRACKET)_t=Kt,qt=ze.OPEN_ARRAY,He++;else return null;break}case ze.OPEN_ARRAY:{if(Kt.type===j.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};var on=Ut(Ke,Re,He,bt);He=on.index,Ot.children.push(on.value),qt=ze.VALUE;break}case ze.VALUE:{if(Kt.type===j.RIGHT_BRACKET)return bt.loc&&(Ot.loc=o(_t.loc.start.line,_t.loc.start.column,_t.loc.start.offset,Kt.loc.end.line,Kt.loc.end.column,Kt.loc.end.offset,bt.source)),{value:Ot,index:He+1};Kt.type===j.COMMA?(qt=ze.COMMA,He++):O(U.unexpectedToken(l(Ke,Kt.loc.start.offset,Kt.loc.end.offset),bt.source,Kt.loc.start.line,Kt.loc.start.column),Ke,bt.source,Kt.loc.start.line,Kt.loc.start.column);break}case ze.COMMA:{var Jn=Ut(Ke,Re,He,bt);He=Jn.index,Ot.children.push(Jn.value),qt=ze.VALUE;break}}Ct(Ke,Re,bt)}function St(Ke,Re,He,bt){var _t=Re[He],Ot=null;switch(_t.type){case j.STRING:{Ot=tt(Ke.slice(_t.loc.start.offset+1,_t.loc.end.offset-1));break}case j.NUMBER:{Ot=Number(_t.value);break}case j.TRUE:{Ot=!0;break}case j.FALSE:{Ot=!1;break}case j.NULL:{Ot=null;break}default:return null}var qt={type:"Literal",value:Ot,raw:_t.value};return bt.loc&&(qt.loc=_t.loc),{value:qt,index:He+1}}function Ut(Ke,Re,He,bt){var _t=Re[He],Ot=St.apply(void 0,arguments)||lt.apply(void 0,arguments)||gt.apply(void 0,arguments);if(Ot)return Ot;O(U.unexpectedToken(l(Ke,_t.loc.start.offset,_t.loc.end.offset),bt.source,_t.loc.start.line,_t.loc.start.column),Ke,bt.source,_t.loc.start.line,_t.loc.start.column)}var Fe=function(Ke,Re){Re=Object.assign({},st,Re);var He=Se(Ke,Re);He.length===0&&Ct(Ke,He,Re);var bt=Ut(Ke,He,0,Re);if(bt.index===He.length)return bt.value;var _t=He[bt.index];O(U.unexpectedToken(l(Ke,_t.loc.start.offset,_t.loc.end.offset),Re.source,_t.loc.start.line,_t.loc.start.column),Ke,Re.source,_t.loc.start.line,_t.loc.start.column)};return Fe})}(kx)),kx.exports}var Tle=Ile();const kle=cu(Tle);function li(){var n="/home/runner/work/maputnik/maputnik/src/libs/codemirror-mgl.ts",e="799818f2992b2f8307763d856702ede3cf326f4d",t=globalThis,i="__coverage__",r={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 i.default.createElement("div",{style:$.alpha},i.default.createElement("div",{style:$.checkboard},i.default.createElement(C.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:$.gradient}),i.default.createElement("div",{style:$.container,ref:function(G){return oe.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:$.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:$.slider}))))}}]),te}(t.PureComponent||t.Component);return Wy.default=W,Wy}var Yy={},zP;function JAe(){if(zP)return Yy;zP=1,Object.defineProperty(Yy,"__esModule",{value:!0}),Yy.EditableInput=void 0;var n=function(){function J(oe,ne){for(var $=0;$<ne.length;$++){var ae=ne[$];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(oe,ae.key,ae)}}return function(oe,ne,$){return ne&&J(oe.prototype,ne),$&&J(oe,$),oe}}(),e=Ol(),t=a(e),i=hm(),r=a(i);function a(J){return J&&J.__esModule?J:{default:J}}function l(J,oe,ne){return oe in J?Object.defineProperty(J,oe,{value:ne,enumerable:!0,configurable:!0,writable:!0}):J[oe]=ne,J}function o(J,oe){if(!(J instanceof oe))throw new TypeError("Cannot call a class as a function")}function p(J,oe){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:J}function C(J,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);J.prototype=Object.create(oe&&oe.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(J,oe):J.__proto__=oe)}var w=1,O=38,U=40,K=[O,U],j=function(oe){return K.indexOf(oe)>-1},W=function(oe){return Number(String(oe).replace(/%/g,""))},Y=1,te=Yy.EditableInput=function(J){C(oe,J);function oe(ne){o(this,oe);var $=p(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return $.handleBlur=function(){$.state.blurValue&&$.setState({value:$.state.blurValue,blurValue:null})},$.handleChange=function(ae){$.setUpdatedValue(ae.target.value,ae)},$.handleKeyDown=function(ae){var G=W(ae.target.value);if(!isNaN(G)&&j(ae.keyCode)){var ce=$.getArrowOffset(),ge=ae.keyCode===O?G+ce:G-ce;$.setUpdatedValue(ge,ae)}},$.handleDrag=function(ae){if($.props.dragLabel){var G=Math.round($.props.value+ae.movementX);G>=0&&G<=$.props.dragMax&&$.props.onChange&&$.props.onChange($.getValueObjectWithLabel(G),ae)}},$.handleMouseDown=function(ae){$.props.dragLabel&&(ae.preventDefault(),$.handleDrag(ae),window.addEventListener("mousemove",$.handleDrag),window.addEventListener("mouseup",$.handleMouseUp))},$.handleMouseUp=function(){$.unbindEventListeners()},$.unbindEventListeners=function(){window.removeEventListener("mousemove",$.handleDrag),window.removeEventListener("mouseup",$.handleMouseUp)},$.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},$.inputId="rc-editable-input-"+Y++,$}return n(oe,[{key:"componentDidUpdate",value:function($,ae){this.props.value!==this.state.value&&($.value!==this.props.value||ae.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($){return l({},this.props.label,$)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||w}},{key:"setUpdatedValue",value:function($,ae){var G=this.props.label?this.getValueObjectWithLabel($):$;this.props.onChange&&this.props.onChange(G,ae),this.setState({value:$})}},{key:"render",value:function(){var $=this,ae=(0,r.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:ae.wrap},t.default.createElement("input",{id:this.inputId,style:ae.input,ref:function(ce){return $.input=ce},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:ae.label,onMouseDown:this.handleMouseDown},this.props.label):null
Line truncated
|
||||
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 i.default.createElement("div",{style:$.alpha},i.default.createElement("div",{style:$.checkboard},i.default.createElement(C.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:$.gradient}),i.default.createElement("div",{style:$.container,ref:function(G){return oe.container=G},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:$.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:$.slider}))))}}]),te}(t.PureComponent||t.Component);return Yy.default=W,Yy}var Hy={},jP;function tce(){if(jP)return Hy;jP=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.EditableInput=void 0;var n=function(){function J(oe,ne){for(var $=0;$<ne.length;$++){var ae=ne[$];ae.enumerable=ae.enumerable||!1,ae.configurable=!0,"value"in ae&&(ae.writable=!0),Object.defineProperty(oe,ae.key,ae)}}return function(oe,ne,$){return ne&&J(oe.prototype,ne),$&&J(oe,$),oe}}(),e=Il(),t=a(e),i=dm(),r=a(i);function a(J){return J&&J.__esModule?J:{default:J}}function l(J,oe,ne){return oe in J?Object.defineProperty(J,oe,{value:ne,enumerable:!0,configurable:!0,writable:!0}):J[oe]=ne,J}function o(J,oe){if(!(J instanceof oe))throw new TypeError("Cannot call a class as a function")}function p(J,oe){if(!J)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return oe&&(typeof oe=="object"||typeof oe=="function")?oe:J}function C(J,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof oe);J.prototype=Object.create(oe&&oe.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),oe&&(Object.setPrototypeOf?Object.setPrototypeOf(J,oe):J.__proto__=oe)}var M=1,O=38,U=40,K=[O,U],j=function(oe){return K.indexOf(oe)>-1},W=function(oe){return Number(String(oe).replace(/%/g,""))},Y=1,te=Hy.EditableInput=function(J){C(oe,J);function oe(ne){o(this,oe);var $=p(this,(oe.__proto__||Object.getPrototypeOf(oe)).call(this));return $.handleBlur=function(){$.state.blurValue&&$.setState({value:$.state.blurValue,blurValue:null})},$.handleChange=function(ae){$.setUpdatedValue(ae.target.value,ae)},$.handleKeyDown=function(ae){var G=W(ae.target.value);if(!isNaN(G)&&j(ae.keyCode)){var ce=$.getArrowOffset(),ge=ae.keyCode===O?G+ce:G-ce;$.setUpdatedValue(ge,ae)}},$.handleDrag=function(ae){if($.props.dragLabel){var G=Math.round($.props.value+ae.movementX);G>=0&&G<=$.props.dragMax&&$.props.onChange&&$.props.onChange($.getValueObjectWithLabel(G),ae)}},$.handleMouseDown=function(ae){$.props.dragLabel&&(ae.preventDefault(),$.handleDrag(ae),window.addEventListener("mousemove",$.handleDrag),window.addEventListener("mouseup",$.handleMouseUp))},$.handleMouseUp=function(){$.unbindEventListeners()},$.unbindEventListeners=function(){window.removeEventListener("mousemove",$.handleDrag),window.removeEventListener("mouseup",$.handleMouseUp)},$.state={value:String(ne.value).toUpperCase(),blurValue:String(ne.value).toUpperCase()},$.inputId="rc-editable-input-"+Y++,$}return n(oe,[{key:"componentDidUpdate",value:function($,ae){this.props.value!==this.state.value&&($.value!==this.props.value||ae.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($){return l({},this.props.label,$)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||M}},{key:"setUpdatedValue",value:function($,ae){var G=this.props.label?this.getValueObjectWithLabel($):$;this.props.onChange&&this.props.onChange(G,ae),this.setState({value:$})}},{key:"render",value:function(){var $=this,ae=(0,r.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:ae.wrap},t.default.createElement("input",{id:this.inputId,style:ae.input,ref:function(ce){return $.input=ce},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:ae.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%);
|
||||
@@ -940,7 +940,7 @@ ${nt}`,{message:St,excerpt:gt,pointer:Ut}}function Oe(nt,be){let Ne=G(be);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}))))}}]),j}(e.PureComponent||e.Component);return qy.default=U,qy}var Hy={},GP;function nce(){if(GP)return Hy;GP=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.Raised=void 0;var n=Ol(),e=p(n),t=G0(),i=p(t),r=hm(),a=p(r),l=qN(),o=p(l);function p(w){return w&&w.__esModule?w:{default:w}}var C=Hy.Raised=function(O){var U=O.zDepth,K=O.radius,j=O.background,W=O.children,Y=O.styles,te=Y===void 0?{}:Y,J=(0,a.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+U+"px "+U*4+"px rgba(0,0,0,.24)",borderRadius:K,background:j}},"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%"}}},te),{"zDepth-1":U===1});return e.default.createElement("div",{style:J.wrap},e.default.createElement("div",{style:J.bg}),e.default.createElement("div",{style:J.content},W))};return C.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},Hy.default=C,Hy}var Vy={},JS,WP;function ice(){if(WP)return JS;WP=1;var n=cm(),e=function(){return n.Date.now()};return JS=e,JS}var eE,QP;function rce(){if(QP)return eE;QP=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return eE=e,eE}var tE,YP;function oce(){if(YP)return tE;YP=1;var n=rce(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return tE=t,tE}var nE,qP;function ace(){if(qP)return nE;qP=1;var n=oce(),e=xp(),t=H2(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function p(C){if(typeof C=="number")return C;if(t(C))return i;if(e(C)){var w=typeof C.valueOf=="function"?C.valueOf():C;C=e(w)?w+"":w}if(typeof C!="string")return C===0?C:+C;C=n(C);var O=a.test(C);return O||l.test(C)?o(C.slice(2),O?2:8):r.test(C)?i:+C}return nE=p,nE}var iE,HP;function HN(){if(HP)return iE;HP=1;var n=xp(),e=ice(),t=ace(),i="Expected a function",r=Math.max,a=Math.min;function l(o,p,C){var w,O,U,K,j,W,Y=0,te=!1,J=!1,oe=!0;if(typeof o!="function")throw new TypeError(i);p=t(p)||0,n(C)&&(te=!!C.leading,J="maxWait"in C,U=J?r(t(C.maxWait)||0,p):U,oe="trailing"in C?!!C.trailing:oe);function ne(Se){var Ve=w,xe=O;return w=O=void 0,Y=Se,K=o.apply(xe,Ve),K}function $(Se){return Y=Se,j=setTimeout(ce,p),te?ne(Se):K}function ae(Se){var Ve=Se-W,xe=Se-Y,ze=p-Ve;return J?a(ze,U-xe):ze}function G(Se){var Ve=Se-W,xe=Se-Y;return W===void 0||Ve>=p||Ve<0||J&&xe>=U}function ce(){var Se=e();if(G(Se))return ge(Se);j=setTimeout(ce,ae(Se))}function ge(Se){return j=void 0,oe&&w?ne(Se):(w=O=void 0,K)}function ye(){j!==void 0&&clearTimeout(j),Y=0,w=W=O=j=void 0}function we(){return j===void 0?K:ge(e())}function Oe(){var Se=e(),Ve=G(Se);if(w=arguments,O=this,W=Se,Ve){if(j===void 0)return $(W);if(J)return clearTimeout(j),j=setTimeout(ce,p),ne(W)}return j===void 0&&(j=setTimeout(ce,p)),K}return Oe.cancel=ye,Oe.flush=we,Oe}return iE=l,iE}var rE,VP;function sce(){if(VP)return rE;VP=1;var n=HN(),e=xp(),t="Expected a function";function i(r,a,l){var o=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,p="trailing"in l?!!l.trailing:p),n(r,a,{leading:o,maxWait:a,trailing:p})}return rE=i,rE}var px={},$P;function lce(){return $P||($P=1,Object.defineProperty(px,"__esModule",{value:!0}),px.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),a=r.width,l=r.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(i.getBoundingClientRect().left+window.pageXOffset),w=p-(i.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>a&&(C=a),w<0?w=0:w>l&&(w=l);var O=C/a,U=1-w/l;return{h:t.h,s:O,v:U,a:t.a,source:"hsv"}}),px}var ZP;function uce(){if(ZP)return Vy;ZP=1,Object.defineProperty(Vy,"__esModule",{value:!0}),Vy.Saturation=void 0;var n=function(){function W(Y,te){for(var J=0;J<te.length;J++){var oe=te[J];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(Y,oe.key,oe)}}return function(Y,te,J){return te&&W(Y.prototype,te),J&&W(Y,J),Y}}(),e=Ol(),t=w(e),i=hm(),r=w(i),a=sce(),l=w(a),o=lce(),p=C(o);function C(W){if(W&&W.__esModule)return W;var Y={};if(W!=null)for(var te in W)Object.prototype.hasOwnProperty.call(W,te)&&(Y[te]=W[te]);return Y.default=W,
Line truncated
|
||||
`),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}))))}}]),j}(e.PureComponent||e.Component);return Vy.default=U,Vy}var $y={},WP;function rce(){if(WP)return $y;WP=1,Object.defineProperty($y,"__esModule",{value:!0}),$y.Raised=void 0;var n=Il(),e=p(n),t=W0(),i=p(t),r=dm(),a=p(r),l=HN(),o=p(l);function p(M){return M&&M.__esModule?M:{default:M}}var C=$y.Raised=function(O){var U=O.zDepth,K=O.radius,j=O.background,W=O.children,Y=O.styles,te=Y===void 0?{}:Y,J=(0,a.default)((0,o.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+U+"px "+U*4+"px rgba(0,0,0,.24)",borderRadius:K,background:j}},"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%"}}},te),{"zDepth-1":U===1});return e.default.createElement("div",{style:J.wrap},e.default.createElement("div",{style:J.bg}),e.default.createElement("div",{style:J.content},W))};return C.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},C.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},$y.default=C,$y}var Zy={},nE,QP;function oce(){if(QP)return nE;QP=1;var n=hm(),e=function(){return n.Date.now()};return nE=e,nE}var iE,YP;function ace(){if(YP)return iE;YP=1;var n=/\s/;function e(t){for(var i=t.length;i--&&n.test(t.charAt(i)););return i}return iE=e,iE}var rE,qP;function sce(){if(qP)return rE;qP=1;var n=ace(),e=/^\s+/;function t(i){return i&&i.slice(0,n(i)+1).replace(e,"")}return rE=t,rE}var oE,HP;function lce(){if(HP)return oE;HP=1;var n=sce(),e=Mp(),t=Z2(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,o=parseInt;function p(C){if(typeof C=="number")return C;if(t(C))return i;if(e(C)){var M=typeof C.valueOf=="function"?C.valueOf():C;C=e(M)?M+"":M}if(typeof C!="string")return C===0?C:+C;C=n(C);var O=a.test(C);return O||l.test(C)?o(C.slice(2),O?2:8):r.test(C)?i:+C}return oE=p,oE}var aE,VP;function VN(){if(VP)return aE;VP=1;var n=Mp(),e=oce(),t=lce(),i="Expected a function",r=Math.max,a=Math.min;function l(o,p,C){var M,O,U,K,j,W,Y=0,te=!1,J=!1,oe=!0;if(typeof o!="function")throw new TypeError(i);p=t(p)||0,n(C)&&(te=!!C.leading,J="maxWait"in C,U=J?r(t(C.maxWait)||0,p):U,oe="trailing"in C?!!C.trailing:oe);function ne(Se){var Ve=M,xe=O;return M=O=void 0,Y=Se,K=o.apply(xe,Ve),K}function $(Se){return Y=Se,j=setTimeout(ce,p),te?ne(Se):K}function ae(Se){var Ve=Se-W,xe=Se-Y,ze=p-Ve;return J?a(ze,U-xe):ze}function G(Se){var Ve=Se-W,xe=Se-Y;return W===void 0||Ve>=p||Ve<0||J&&xe>=U}function ce(){var Se=e();if(G(Se))return ge(Se);j=setTimeout(ce,ae(Se))}function ge(Se){return j=void 0,oe&&M?ne(Se):(M=O=void 0,K)}function ye(){j!==void 0&&clearTimeout(j),Y=0,M=W=O=j=void 0}function we(){return j===void 0?K:ge(e())}function Ie(){var Se=e(),Ve=G(Se);if(M=arguments,O=this,W=Se,Ve){if(j===void 0)return $(W);if(J)return clearTimeout(j),j=setTimeout(ce,p),ne(W)}return j===void 0&&(j=setTimeout(ce,p)),K}return Ie.cancel=ye,Ie.flush=we,Ie}return aE=l,aE}var sE,$P;function Ace(){if($P)return sE;$P=1;var n=VN(),e=Mp(),t="Expected a function";function i(r,a,l){var o=!0,p=!0;if(typeof r!="function")throw new TypeError(t);return e(l)&&(o="leading"in l?!!l.leading:o,p="trailing"in l?!!l.trailing:p),n(r,a,{leading:o,maxWait:a,trailing:p})}return sE=i,sE}var gx={},ZP;function uce(){return ZP||(ZP=1,Object.defineProperty(gx,"__esModule",{value:!0}),gx.calculateChange=function(e,t,i){var r=i.getBoundingClientRect(),a=r.width,l=r.height,o=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,p=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,C=o-(i.getBoundingClientRect().left+window.pageXOffset),M=p-(i.getBoundingClientRect().top+window.pageYOffset);C<0?C=0:C>a&&(C=a),M<0?M=0:M>l&&(M=l);var O=C/a,U=1-M/l;return{h:t.h,s:O,v:U,a:t.a,source:"hsv"}}),gx}var XP;function cce(){if(XP)return Zy;XP=1,Object.defineProperty(Zy,"__esModule",{value:!0}),Zy.Saturation=void 0;var n=function(){function W(Y,te){for(var J=0;J<te.length;J++){var oe=te[J];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(Y,oe.key,oe)}}return function(Y,te,J){return te&&W(Y.prototype,te),J&&W(Y,J),Y}}(),e=Il(),t=M(e),i=dm(),r=M(i),a=Ace(),l=M(a),o=uce(),p=C(o);function C(W){if(W&&W.__esModule)return W;var Y={};if(W!=null)for(var te in W)Object.prototype.hasOwnProperty.call(W,te)&&(Y[te]=W[te]);return Y.default=W,
Line truncated
|
||||
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:ne,white:$,black:ae,pointer:G,circle:ce}},{custom:!!this.props.style});return t.default.createElement("div",{style:ge.color,ref:function(we){return J.container=we},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},t.default.createElement("style",null,`
|
||||
.saturation-white {
|
||||
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
||||
@@ -950,14 +950,14 @@ ${nt}`,{message:St,excerpt:gt,pointer:Ut}}function Oe(nt,be){let Ne=G(be);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:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Y}(e.PureComponent||e.Component);return Vy.default=j,Vy}var $y={},cd={},oE,XP;function Ace(){if(XP)return oE;XP=1;var n=UN(),e=KN(),t=_N(),i=If();function r(a,l){var o=i(a)?n:e;return o(a,t(l))}return oE=r,oE}var aE,JP;function cce(){return JP||(JP=1,aE=Ace()),aE}var kx={exports:{}},hce=kx.exports,eK;function dce(){return eK||(eK=1,function(n,e){(function(t,i){n.exports=i()})(hce,function(){function t(Fe){"@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(Fe)}var i=/^\s+/,r=/\s+$/;function a(Fe,Ke){if(Fe=Fe||"",Ke=Ke||{},Fe instanceof a)return Fe;if(!(this instanceof a))return new a(Fe,Ke);var Re=l(Fe);this._originalInput=Fe,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Re.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=Re.ok}a.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(),Re,He,bt,_t,Ot,qt;return Re=Ke.r/255,He=Ke.g/255,bt=Ke.b/255,Re<=.03928?_t=Re/12.92:_t=Math.pow((Re+.055)/1.055,2.4),He<=.03928?Ot=He/12.92:Ot=Math.pow((He+.055)/1.055,2.4),bt<=.03928?qt=bt/12.92:qt=Math.pow((bt+.055)/1.055,2.4),.2126*_t+.7152*Ot+.0722*qt},setAlpha:function(Ke){return this._a=Ve(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=w(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=w(this._r,this._g,this._b),Re=Math.round(Ke.h*360),He=Math.round(Ke.s*100),bt=Math.round(Ke.v*100);return this._a==1?"hsv("+Re+", "+He+"%, "+bt+"%)":"hsva("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ke=p(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=p(this._r,this._g,this._b),Re=Math.round(Ke.h*360),He=Math.round(Ke.s*100),bt=Math.round(Ke.l*100);return this._a==1?"hsl("+Re+", "+He+"%, "+bt+"%)":"hsla("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ke){return U(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return K(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:Oe[U(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Re="#"+j(this._r,this._g,this._b,this._a),He=Re,bt=this._gradientType?"GradientType = 1, ":"";if(Ke){var _t=a(Ke);He="#"+j(_t._r,_t._g,_t._b,_t._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Re+",endColorstr="+He+")"},toString:function(Ke){var Re=!!Ke;Ke=Ke||this._format;var He=!1,bt=this._a<1&&this._a>=0,_t=!Re&&bt&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return _t?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(He=this.toRgbString()),Ke==="prgb"&&(He=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(He=this.toHexString()),Ke==="hex3"&&(He=this.toHexString(!0)),Ke==="hex4"&&(He=this.toHex8String(!0)),Ke==="hex8"&&(He=this.toHex8String()),Ke==="name"&&(He=this.toName()),Ke==="hsl"&&(He=this.toHslString()),Ke==="hsv"&&(He=this.toHsvString()),He||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(Ke,Re){var He=Ke.apply(nu
Line truncated
|
||||
`),t.default.createElement("div",{style:ge.white,className:"saturation-white"},t.default.createElement("div",{style:ge.black,className:"saturation-black"}),t.default.createElement("div",{style:ge.pointer},this.props.pointer?t.default.createElement(this.props.pointer,this.props):t.default.createElement("div",{style:ge.circle}))))}}]),Y}(e.PureComponent||e.Component);return Zy.default=j,Zy}var Xy={},hd={},lE,JP;function hce(){if(JP)return lE;JP=1;var n=LN(),e=UN(),t=bN(),i=kf();function r(a,l){var o=i(a)?n:e;return o(a,t(l))}return lE=r,lE}var AE,eK;function dce(){return eK||(eK=1,AE=hce()),AE}var Dx={exports:{}},fce=Dx.exports,tK;function pce(){return tK||(tK=1,function(n,e){(function(t,i){n.exports=i()})(fce,function(){function t(Fe){"@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(Fe)}var i=/^\s+/,r=/\s+$/;function a(Fe,Ke){if(Fe=Fe||"",Ke=Ke||{},Fe instanceof a)return Fe;if(!(this instanceof a))return new a(Fe,Ke);var Re=l(Fe);this._originalInput=Fe,this._r=Re.r,this._g=Re.g,this._b=Re.b,this._a=Re.a,this._roundA=Math.round(100*this._a)/100,this._format=Ke.format||Re.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=Re.ok}a.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(),Re,He,bt,_t,Ot,qt;return Re=Ke.r/255,He=Ke.g/255,bt=Ke.b/255,Re<=.03928?_t=Re/12.92:_t=Math.pow((Re+.055)/1.055,2.4),He<=.03928?Ot=He/12.92:Ot=Math.pow((He+.055)/1.055,2.4),bt<=.03928?qt=bt/12.92:qt=Math.pow((bt+.055)/1.055,2.4),.2126*_t+.7152*Ot+.0722*qt},setAlpha:function(Ke){return this._a=Ve(Ke),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Ke=M(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,v:Ke.v,a:this._a}},toHsvString:function(){var Ke=M(this._r,this._g,this._b),Re=Math.round(Ke.h*360),He=Math.round(Ke.s*100),bt=Math.round(Ke.v*100);return this._a==1?"hsv("+Re+", "+He+"%, "+bt+"%)":"hsva("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHsl:function(){var Ke=p(this._r,this._g,this._b);return{h:Ke.h*360,s:Ke.s,l:Ke.l,a:this._a}},toHslString:function(){var Ke=p(this._r,this._g,this._b),Re=Math.round(Ke.h*360),He=Math.round(Ke.s*100),bt=Math.round(Ke.l*100);return this._a==1?"hsl("+Re+", "+He+"%, "+bt+"%)":"hsla("+Re+", "+He+"%, "+bt+"%, "+this._roundA+")"},toHex:function(Ke){return U(this._r,this._g,this._b,Ke)},toHexString:function(Ke){return"#"+this.toHex(Ke)},toHex8:function(Ke){return K(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:Ie[U(this._r,this._g,this._b,!0)]||!1},toFilter:function(Ke){var Re="#"+j(this._r,this._g,this._b,this._a),He=Re,bt=this._gradientType?"GradientType = 1, ":"";if(Ke){var _t=a(Ke);He="#"+j(_t._r,_t._g,_t._b,_t._a)}return"progid:DXImageTransform.Microsoft.gradient("+bt+"startColorstr="+Re+",endColorstr="+He+")"},toString:function(Ke){var Re=!!Ke;Ke=Ke||this._format;var He=!1,bt=this._a<1&&this._a>=0,_t=!Re&&bt&&(Ke==="hex"||Ke==="hex6"||Ke==="hex3"||Ke==="hex4"||Ke==="hex8"||Ke==="name");return _t?Ke==="name"&&this._a===0?this.toName():this.toRgbString():(Ke==="rgb"&&(He=this.toRgbString()),Ke==="prgb"&&(He=this.toPercentageRgbString()),(Ke==="hex"||Ke==="hex6")&&(He=this.toHexString()),Ke==="hex3"&&(He=this.toHexString(!0)),Ke==="hex4"&&(He=this.toHex8String(!0)),Ke==="hex8"&&(He=this.toHex8String()),Ke==="name"&&(He=this.toName()),Ke==="hsl"&&(He=this.toHslString()),Ke==="hsv"&&(He=this.toHsvString()),He||this.toHexString())},clone:function(){return a(this.toString())},_applyModification:function(Ke,Re){var He=Ke.apply(nu
Line truncated
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>${t}</title>
|
||||
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${EK}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${EK}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<script src="https://unpkg.com/maplibre-gl@${BK}/dist/maplibre-gl.js"><\/script>
|
||||
<link href="https://unpkg.com/maplibre-gl@${BK}/dist/maplibre-gl.css" rel="stylesheet" />
|
||||
<style>
|
||||
body { margin: 0; padding: 0; }
|
||||
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
|
||||
@@ -974,11 +974,11 @@ ${nt}`,{message:St,excerpt:gt,pointer:Ut}}function Oe(nt,be){let Ne=G(be);const
|
||||
<\/script>
|
||||
</body>
|
||||
</html>
|
||||
`),r=(Ki().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),a=(Ki().s[10]++,this.exportName());Ki().s[11]++,SK.saveAs(r,a+".html")}async saveStyle(){Ki().f[3]++;const e=(Ki().s[12]++,this.tokenizedStyle());if(Ki().s[13]++,BK)Ki().b[2][1]++;else{Ki().b[2][0]++;const r=(Ki().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),a=(Ki().s[15]++,this.exportName());Ki().s[16]++,SK.saveAs(r,a+".json"),Ki().s[17]++;return}let t=(Ki().s[18]++,this.props.fileHandle);if(Ki().s[19]++,t==null)if(Ki().b[3][0]++,Ki().s[20]++,t=await this.createFileHandle(),Ki().s[21]++,this.props.onSetFileHandle(t),Ki().s[22]++,t==null){Ki().b[4][0]++,Ki().s[23]++;return}else Ki().b[4][1]++;else Ki().b[3][1]++;const i=(Ki().s[24]++,await t.createWritable());Ki().s[25]++,await i.write(e),Ki().s[26]++,await i.close(),Ki().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ki().f[4]++;const e=(Ki().s[28]++,this.tokenizedStyle()),t=(Ki().s[29]++,await this.createFileHandle());if(Ki().s[30]++,this.props.onSetFileHandle(t),Ki().s[31]++,t==null){Ki().b[5][0]++,Ki().s[32]++;return}else Ki().b[5][1]++;const i=(Ki().s[33]++,await t.createWritable());Ki().s[34]++,await i.write(e),Ki().s[35]++,await i.close(),Ki().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ki().f[5]++;const e=(Ki().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ki().s[38]++,await window.showSaveFilePicker(e));return Ki().s[39]++,this.props.onSetFileHandle(t),Ki().s[40]++,t}changeMetadataProperty(e,t){Ki().f[6]++;const i=(Ki().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ki().s[42]++,this.props.onStyleChanged(i)}render(){Ki().f[7]++;const e=(Ki().s[43]++,this.props.t),t=(Ki().s[44]++,rG(e));return Ki().s[45]++,Ae.jsx(jg,{"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(fp,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ki().b[6][0]++,this.props.mapStyle.metadata||(Ki().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(fp,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ki().b[7][0]++,this.props.mapStyle.metadata||(Ki().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(fp,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ki().b[8][0]++,this.props.mapStyle.metadata||(Ki().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(fp,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ki().b[9][0]++,this.props.mapStyle.metadata||(Ki().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(nl,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(E6,{}),e("Save")]}),(Ki().b[10][0]++,BK&&(Ki().b[10][1]++,Ae.jsxs(nl,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(E6,{}),e("Save as")]}))),Ae.jsxs(nl,{onClick:this.createHtml.bind(this),children:[Ae.jsx(V$,{}),e("Create HTML")]})]})]})})}}const nde=(Ki().s[46]++,ls()(tde));function X_(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},a=t[i]||(t[i]={});(!a[n]||a[n].hash!==e)&&(a[n]=r);var l=a[n];return X_=function(){return l},l}X_();X_().s[0]++;const lG=n=>(X_().f[0]++,X_().s[1]++,Ae.jsx(Cg,{label:n.label,children:Ae.jsx(Dx,{...n})}));function J_(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
|
||||
`),r=(Ki().s[9]++,new Blob([i],{type:"text/html;charset=utf-8"})),a=(Ki().s[10]++,this.exportName());Ki().s[11]++,EK.saveAs(r,a+".html")}async saveStyle(){Ki().f[3]++;const e=(Ki().s[12]++,this.tokenizedStyle());if(Ki().s[13]++,OK)Ki().b[2][1]++;else{Ki().b[2][0]++;const r=(Ki().s[14]++,new Blob([e],{type:"application/json;charset=utf-8"})),a=(Ki().s[15]++,this.exportName());Ki().s[16]++,EK.saveAs(r,a+".json"),Ki().s[17]++;return}let t=(Ki().s[18]++,this.props.fileHandle);if(Ki().s[19]++,t==null)if(Ki().b[3][0]++,Ki().s[20]++,t=await this.createFileHandle(),Ki().s[21]++,this.props.onSetFileHandle(t),Ki().s[22]++,t==null){Ki().b[4][0]++,Ki().s[23]++;return}else Ki().b[4][1]++;else Ki().b[3][1]++;const i=(Ki().s[24]++,await t.createWritable());Ki().s[25]++,await i.write(e),Ki().s[26]++,await i.close(),Ki().s[27]++,this.props.onOpenToggle()}async saveStyleAs(){Ki().f[4]++;const e=(Ki().s[28]++,this.tokenizedStyle()),t=(Ki().s[29]++,await this.createFileHandle());if(Ki().s[30]++,this.props.onSetFileHandle(t),Ki().s[31]++,t==null){Ki().b[5][0]++,Ki().s[32]++;return}else Ki().b[5][1]++;const i=(Ki().s[33]++,await t.createWritable());Ki().s[34]++,await i.write(e),Ki().s[35]++,await i.close(),Ki().s[36]++,this.props.onOpenToggle()}async createFileHandle(){Ki().f[5]++;const e=(Ki().s[37]++,{types:[{description:"json",accept:{"application/json":[".json"]}}],suggestedName:this.exportName()}),t=(Ki().s[38]++,await window.showSaveFilePicker(e));return Ki().s[39]++,this.props.onSetFileHandle(t),Ki().s[40]++,t}changeMetadataProperty(e,t){Ki().f[6]++;const i=(Ki().s[41]++,{...this.props.mapStyle,metadata:{...this.props.mapStyle.metadata,[e]:t}});Ki().s[42]++,this.props.onStyleChanged(i)}render(){Ki().f[7]++;const e=(Ki().s[43]++,this.props.t),t=(Ki().s[44]++,oG(e));return Ki().s[45]++,Ae.jsx(Q0,{"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(Gd,{label:t.maputnik.maptiler_access_token.label,fieldSpec:t.maputnik.maptiler_access_token,value:(Ki().b[6][0]++,this.props.mapStyle.metadata||(Ki().b[6][1]++,{}))["maputnik:openmaptiles_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:openmaptiles_access_token")}),Ae.jsx(Gd,{label:t.maputnik.thunderforest_access_token.label,fieldSpec:t.maputnik.thunderforest_access_token,value:(Ki().b[7][0]++,this.props.mapStyle.metadata||(Ki().b[7][1]++,{}))["maputnik:thunderforest_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:thunderforest_access_token")}),Ae.jsx(Gd,{label:t.maputnik.stadia_access_token.label,fieldSpec:t.maputnik.stadia_access_token,value:(Ki().b[8][0]++,this.props.mapStyle.metadata||(Ki().b[8][1]++,{}))["maputnik:stadia_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:stadia_access_token")}),Ae.jsx(Gd,{label:t.maputnik.locationiq_access_token.label,fieldSpec:t.maputnik.locationiq_access_token,value:(Ki().b[9][0]++,this.props.mapStyle.metadata||(Ki().b[9][1]++,{}))["maputnik:locationiq_access_token"],onChange:this.changeMetadataProperty.bind(this,"maputnik:locationiq_access_token")})]}),Ae.jsxs("div",{className:"maputnik-modal-export-buttons",children:[Ae.jsxs(Fs,{onClick:this.saveStyle.bind(this),children:[Ae.jsx(I6,{}),e("Save")]}),(Ki().b[10][0]++,OK&&(Ki().b[10][1]++,Ae.jsxs(Fs,{onClick:this.saveStyleAs.bind(this),children:[Ae.jsx(I6,{}),e("Save as")]}))),Ae.jsxs(Fs,{onClick:this.createHtml.bind(this),children:[Ae.jsx($$,{}),e("Create HTML")]})]})]})})}}const rde=(Ki().s[46]++,es()(ide));function eb(){var n="/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",e="d4204cb1114c57682afd09034f9cc8268e27db52",t=globalThis,i="__coverage__",r={path:"/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx",statementMap:{0:{start:{line:4,column:26},end:{line:6,column:1}},1:{start:{line:5,column:2},end:{line:5,column:127}}},fnMap:{0:{name:"(anonymous_0)",decl:{start:{line:4,column:26},end:{line:4,column:27}},loc:{start:{line:4,column:37},end:{line:6,column:1}},line:4}},branchMap:{},s:{0:0,1:0},f:{0:0},b:{},inputSourceMap:{version:3,file:null,sources:["/home/runner/work/maputnik/maputnik/src/components/FieldDynamicArray.tsx"],names:[],mappings:"AAUM;AAVN,OAAO,uBAAsD;AAC7D,OAAO,cAAc;AAMrB,MAAM,oBAAsD,CAAC,UAAU;AACrE,SACE,oBAAC,YAAS,OAAO,MAAM,OACrB,8BAAC,qBAAmB,GAAG,OAAO,GAChC;AAEJ;AAEA,eAAe;"},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"d4204cb1114c57682afd09034f9cc8268e27db52"},a=t[i]||(t[i]={});(!a[n]||a[n].hash!==e)&&(a[n]=r);var l=a[n];return eb=function(){return l},l}eb();eb().s[0]++;const AG=n=>(eb().f[0]++,eb().s[1]++,Ae.jsx(xg,{label:n.label,children:Ae.jsx(Rx,{...n})}));function tb(){var n="/home/runner/work/maputnik/maputnik/src/components/Field
Line truncated
|
||||
`)>=0)return!1;return!0}function Te(Ye,De){var Ze;if(Ye.indent===" ")Ze=" ";else if(typeof Ye.indent=="number"&&Ye.indent>0)Ze=ce.call(Array(Ye.indent+1)," ");else return null;return{base:Ze,prev:ce.call(Array(De+1),Ze)}}function We(Ye,De){if(Ye.length===0)return"";var Ze=`
|
||||
`+De.prev+De.base;return Ze+ce.call(Ye,","+Ze)+`
|
||||
`+De.prev}function dt(Ye,De){var Ze=St(Ye),g=[];if(Ze){g.length=Ye.length;for(var mt=0;mt<Ye.length;mt++)g[mt]=Kt(Ye,mt)?De(Ye[mt],Ye):""}var ht=typeof Oe=="function"?Oe(Ye):[],Tt;if(Ve){Tt={};for(var it=0;it<ht.length;it++)Tt["$"+ht[it]]=ht[it]}for(var en in Ye)Kt(Ye,en)&&(Ze&&String(Number(en))===en&&en<Ye.length||Ve&&Tt["$"+en]instanceof Symbol||(ae.call(/[^\w$]/,en)?g.push(De(en,Ye)+": "+De(Ye[en],Ye)):g.push(en+": "+De(Ye[en],Ye))));if(typeof Oe=="function")for(var Dn=0;Dn<ht.length;Dn++)ze.call(Ye,ht[Dn])&&g.push("["+De(ht[Dn])+"]: "+De(Ye[ht[Dn]],Ye));return g}return dE}var fE,PK;function Fde(){if(PK)return fE;PK=1;var n=Z2(),e=nC(),t=function(o,p,C){for(var w=o,O;(O=w.next)!=null;w=O)if(O.key===p)return w.next=O.next,C||(O.next=o.next,o.next=O),O},i=function(o,p){if(o){var C=t(o,p);return C&&C.value}},r=function(o,p,C){var w=t(o,p);w?w.value=C:o.next={key:p,next:o.next,value:C}},a=function(o,p){return o?!!t(o,p):!1},l=function(o,p){if(o)return t(o,p,!0)};return fE=function(){var p,C={assert:function(w){if(!C.has(w))throw new e("Side channel does not contain "+n(w))},delete:function(w){var O=p&&p.next,U=l(p,w);return U&&O&&O===U&&(p=void 0),!!U},get:function(w){return i(p,w)},has:function(w){return a(p,w)},set:function(w,O){p||(p={next:void 0}),r(p,w,O)}};return C},fE}var pE,KK;function dG(){return KK||(KK=1,pE=Object),pE}var mE,UK;function zde(){return UK||(UK=1,mE=Error),mE}var gE,LK;function jde(){return LK||(LK=1,gE=EvalError),gE}var yE,FK;function Nde(){return FK||(FK=1,yE=RangeError),yE}var vE,zK;function Gde(){return zK||(zK=1,vE=ReferenceError),vE}var CE,jK;function Wde(){return jK||(jK=1,CE=SyntaxError),CE}var _E,NK;function Qde(){return NK||(NK=1,_E=URIError),_E}var bE,GK;function Yde(){return GK||(GK=1,bE=Math.abs),bE}var xE,WK;function qde(){return WK||(WK=1,xE=Math.floor),xE}var ME,QK;function Hde(){return QK||(QK=1,ME=Math.max),ME}var wE,YK;function Vde(){return YK||(YK=1,wE=Math.min),wE}var SE,qK;function $de(){return qK||(qK=1,SE=Math.pow),SE}var EE,HK;function Zde(){return HK||(HK=1,EE=Math.round),EE}var BE,VK;function Xde(){return VK||(VK=1,BE=Number.isNaN||function(e){return e!==e}),BE}var OE,$K;function Jde(){if($K)return OE;$K=1;var n=Xde();return OE=function(t){return n(t)||t===0?t:t<0?-1:1},OE}var IE,ZK;function efe(){return ZK||(ZK=1,IE=Object.getOwnPropertyDescriptor),IE}var TE,XK;function fG(){if(XK)return TE;XK=1;var n=efe();if(n)try{n([],"length")}catch{n=null}return TE=n,TE}var kE,JK;function tfe(){if(JK)return kE;JK=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return kE=n,kE}var DE,eU;function nfe(){return eU||(eU=1,DE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var a 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!==r||o.enumerable!==!0)return!1}return!0}),DE}var RE,tU;function ife(){if(tU)return RE;tU=1;var n=typeof Symbol<"u"&&Symbol,e=nfe();return RE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},RE}var PE,nU;function pG(){return nU||(nU=1,PE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),PE}var KE,iU;function mG(){if(iU)return KE;iU=1;var n=dG();return KE=n.getPrototypeOf||null,KE}var UE,rU;function rfe(){if(rU)return UE;rU=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(p,C){for(var w=[],O=0;O<p.length;O+=1)w[O]=p[O];for(var U=0;U<C.length;U+=1)w[U+p.length]=C[U];return w},a=function(p,C){for(var w=[],O=C,U=0;O<p.length;O+=1,U+=1)w[U]=p[O];return w},l=function(o,p){for(var C="",w=0;w<o.length;w+=1)C+=o[w],w+1<o.length&&(C+=p);return C};return UE=function(p){var C=this;if(typeof C!="function"||e.apply(C)!==i)throw new TypeError(n+C);for(var w=a(arguments,1),O,U=function(){if(this instanceof O){var te=C.apply(this,r(w,arguments));return Object(te)===te?te:this}return C.apply(p,r(w,arguments))},K=t(0,C.length-w.length),j=[],W=0;W<K;W++)j[W]="$"+W;if(O=Function("binder","return function ("+l(j,",")+"){ return binder.apply(this,arguments); }")(U),C.prototype){var Y=function(){};Y.prototype=C.prototype,O.prototype=new Y,Y.prototype=null}return O},UE}var LE,oU;function X2(){if(oU)return LE;oU=1;var n=rfe();return LE=Function.prototype.bind||n,LE}var FE,aU;function i7(){return aU||(aU=1,FE=Function.prototype.call),FE}var zE,sU;functi
Line truncated
|
||||
`," "],l=["{","}","|","\\","^","`"].concat(a),o=["'"].concat(l),p=["%","/","?",";","#"].concat(o),C=["/","?","#"],w=255,O=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},j={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Y=ffe();function te($,ae,G){if($&&typeof $=="object"&&$ instanceof e)return $;var ce=new e;return ce.parse($,ae,G),ce}e.prototype.parse=function($,ae,G){if(typeof $!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof $);var ce=$.indexOf("?"),ge=ce!==-1&&ce<$.indexOf("#")?"?":"#",ye=$.split(ge),we=/\\/g;ye[0]=ye[0].replace(we,"/"),$=ye.join(ge);var Oe=$;if(Oe=Oe.trim(),!G&&$.split("#").length===1){var Se=r.exec(Oe);if(Se)return this.path=Oe,this.href=Oe,this.pathname=Se[1],Se[2]?(this.search=Se[2],ae?this.query=Y.parse(this.search.substr(1)):this.query=this.search.substr(1)):ae&&(this.search="",this.query={}),this}var Ve=t.exec(Oe);if(Ve){Ve=Ve[0];var xe=Ve.toLowerCase();this.protocol=xe,Oe=Oe.substr(Ve.length)}if(G||Ve||Oe.match(/^\/\/[^@/]+@[^@/]+/)){var ze=Oe.substr(0,2)==="//";ze&&!(Ve&&j[Ve])&&(Oe=Oe.substr(2),this.slashes=!0)}if(!j[Ve]&&(ze||Ve&&!W[Ve])){for(var st=-1,Ct=0;Ct<C.length;Ct++){var nt=Oe.indexOf(C[Ct]);nt!==-1&&(st===-1||nt<st)&&(st=nt)}var be,Ne;st===-1?Ne=Oe.lastIndexOf("@"):Ne=Oe.lastIndexOf("@",st),Ne!==-1&&(be=Oe.slice(0,Ne),Oe=Oe.slice(Ne+1),this.auth=decodeURIComponent(be)),st=-1;for(var Ct=0;Ct<p.length;Ct++){var nt=Oe.indexOf(p[Ct]);nt!==-1&&(st===-1||nt<st)&&(st=nt)}st===-1&&(st=Oe.length),this.host=Oe.slice(0,st),Oe=Oe.slice(st),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var lt=this.hostname.split(/\./),Ct=0,kt=lt.length;Ct<kt;Ct++){var gt=lt[Ct];if(gt&&!gt.match(O)){for(var St="",Ut=0,Fe=gt.length;Ut<Fe;Ut++)gt.charCodeAt(Ut)>127?St+="x":St+=gt[Ut];if(!St.match(O)){var Ke=lt.slice(0,Ct),Re=lt.slice(Ct+1),He=gt.match(U);He&&(Ke.push(He[1]),Re.unshift(He[2])),Re.length&&(Oe="/"+Re.join(".")+Oe),this.hostname=Ke.join(".");break}}}this.hostname.length>w?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",_t=this.hostname||"";this.host=_t+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Oe[0]!=="/"&&(Oe="/"+Oe))}if(!K[xe])for(var Ct=0,kt=o.length;Ct<kt;Ct++){var Ot=o[Ct];if(Oe.indexOf(Ot)!==-1){var qt=encodeURIComponent(Ot);qt===Ot&&(qt=escape(Ot)),Oe=Oe.split(Ot).join(qt)}}var Kt=Oe.indexOf("#");Kt!==-1&&(this.hash=Oe.substr(Kt),Oe=Oe.slice(0,Kt));var on=Oe.indexOf("?");if(on!==-1?(this.search=Oe.substr(on),this.query=Oe.substr(on+1),ae&&(this.query=Y.parse(this.query)),Oe=Oe.slice(0,on)):ae&&(this.search="",this.query={}),Oe&&(this.pathname=Oe),W[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Jn=this.search||"";this.path=bt+Jn}return this.href=this.format(),this};function J($){return typeof $=="string"&&($=te($)),$ instanceof e?$.format():e.prototype.format.call($)}e.prototype.format=function(){var $=this.auth||"";$&&($=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@");var ae=this.protocol||"",G=this.pathname||"",ce=this.hash||"",ge=!1,ye="";this.host?ge=$+this.host:this.hostname&&(ge=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ye=Y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||ye&&"?"+ye||"";return ae&&ae.substr(-1)!==":"&&(ae+=":"),this.slashes||(!ae||W[ae])&&ge!==!1?(ge="//"+(ge||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):ge||(ge=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),we&&we.charAt(0)!=="?"&&(we="?"+we),G=G.replace(/[?#]/g,function(Oe){return encodeURIComponent(Oe)}),we=we.replace("#","%23"),ae+ge+G+we+ce};function oe($,ae){return te($,!1,!0).resolve(ae)}e.prototype.resolve=function($){return this.resolveObject(te($,!1,!0)).format()};function ne($,ae){return $?te($,!1,!0).resolveObject(ae):ae}return e.prototype.resolveObject=function($){if(typeof $=="string"){var ae=new e;ae.parse($,!1,!0),$=ae}for(var G=new e,ce=Object.keys(this),ge=0;ge<ce.length;ge++){var ye=ce[ge];G[ye]=this[ye]}if(G.hash=$.hash,$.href==="")return G.href=G.format(),G;if($.slashes&&!$.protocol){for(var we=Object.keys($),Oe=0;Oe<we.length;Oe++){var Se=we[Oe];Se!=="protocol"&&(G[Se]=$[Se])}return W[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if($.protocol&&$.protocol!==G.protocol){if(!W[$.protocol]){for(var Ve=Object.keys($),xe=0;xe<Ve.length;xe++){var ze=Ve[xe];G[ze]=$[ze]}return G.href=G.format(),G}if(G.protocol=$.protocol,!$.host&&!j[$.protocol]){for(var kt=($.pathname||"").split("/");kt.length&&!($.host=kt.shift()););$.host||($.host=""),$.hos
Line truncated
|
||||
`+De.prev}function dt(Ye,De){var Ze=St(Ye),g=[];if(Ze){g.length=Ye.length;for(var mt=0;mt<Ye.length;mt++)g[mt]=Kt(Ye,mt)?De(Ye[mt],Ye):""}var ht=typeof Ie=="function"?Ie(Ye):[],Tt;if(Ve){Tt={};for(var it=0;it<ht.length;it++)Tt["$"+ht[it]]=ht[it]}for(var en in Ye)Kt(Ye,en)&&(Ze&&String(Number(en))===en&&en<Ye.length||Ve&&Tt["$"+en]instanceof Symbol||(ae.call(/[^\w$]/,en)?g.push(De(en,Ye)+": "+De(Ye[en],Ye)):g.push(en+": "+De(Ye[en],Ye))));if(typeof Ie=="function")for(var Dn=0;Dn<ht.length;Dn++)ze.call(Ye,ht[Dn])&&g.push("["+De(ht[Dn])+"]: "+De(Ye[ht[Dn]],Ye));return g}return mE}var gE,KK;function Gde(){if(KK)return gE;KK=1;var n=e4(),e=iC(),t=function(o,p,C){for(var M=o,O;(O=M.next)!=null;M=O)if(O.key===p)return M.next=O.next,C||(O.next=o.next,o.next=O),O},i=function(o,p){if(o){var C=t(o,p);return C&&C.value}},r=function(o,p,C){var M=t(o,p);M?M.value=C:o.next={key:p,next:o.next,value:C}},a=function(o,p){return o?!!t(o,p):!1},l=function(o,p){if(o)return t(o,p,!0)};return gE=function(){var p,C={assert:function(M){if(!C.has(M))throw new e("Side channel does not contain "+n(M))},delete:function(M){var O=p&&p.next,U=l(p,M);return U&&O&&O===U&&(p=void 0),!!U},get:function(M){return i(p,M)},has:function(M){return a(p,M)},set:function(M,O){p||(p={next:void 0}),r(p,M,O)}};return C},gE}var yE,UK;function fG(){return UK||(UK=1,yE=Object),yE}var vE,LK;function Wde(){return LK||(LK=1,vE=Error),vE}var CE,FK;function Qde(){return FK||(FK=1,CE=EvalError),CE}var _E,zK;function Yde(){return zK||(zK=1,_E=RangeError),_E}var bE,jK;function qde(){return jK||(jK=1,bE=ReferenceError),bE}var xE,NK;function Hde(){return NK||(NK=1,xE=SyntaxError),xE}var ME,GK;function Vde(){return GK||(GK=1,ME=URIError),ME}var wE,WK;function $de(){return WK||(WK=1,wE=Math.abs),wE}var SE,QK;function Zde(){return QK||(QK=1,SE=Math.floor),SE}var EE,YK;function Xde(){return YK||(YK=1,EE=Math.max),EE}var BE,qK;function Jde(){return qK||(qK=1,BE=Math.min),BE}var OE,HK;function efe(){return HK||(HK=1,OE=Math.pow),OE}var IE,VK;function tfe(){return VK||(VK=1,IE=Math.round),IE}var TE,$K;function nfe(){return $K||($K=1,TE=Number.isNaN||function(e){return e!==e}),TE}var kE,ZK;function ife(){if(ZK)return kE;ZK=1;var n=nfe();return kE=function(t){return n(t)||t===0?t:t<0?-1:1},kE}var DE,XK;function rfe(){return XK||(XK=1,DE=Object.getOwnPropertyDescriptor),DE}var RE,JK;function pG(){if(JK)return RE;JK=1;var n=rfe();if(n)try{n([],"length")}catch{n=null}return RE=n,RE}var PE,eU;function ofe(){if(eU)return PE;eU=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return PE=n,PE}var KE,tU;function afe(){return tU||(tU=1,KE=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),i=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var r=42;e[t]=r;for(var a 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!==r||o.enumerable!==!0)return!1}return!0}),KE}var UE,nU;function sfe(){if(nU)return UE;nU=1;var n=typeof Symbol<"u"&&Symbol,e=afe();return UE=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},UE}var LE,iU;function mG(){return iU||(iU=1,LE=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),LE}var FE,rU;function gG(){if(rU)return FE;rU=1;var n=fG();return FE=n.getPrototypeOf||null,FE}var zE,oU;function lfe(){if(oU)return zE;oU=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,i="[object Function]",r=function(p,C){for(var M=[],O=0;O<p.length;O+=1)M[O]=p[O];for(var U=0;U<C.length;U+=1)M[U+p.length]=C[U];return M},a=function(p,C){for(var M=[],O=C,U=0;O<p.length;O+=1,U+=1)M[U]=p[O];return M},l=function(o,p){for(var C="",M=0;M<o.length;M+=1)C+=o[M],M+1<o.length&&(C+=p);return C};return zE=function(p){var C=this;if(typeof C!="function"||e.apply(C)!==i)throw new TypeError(n+C);for(var M=a(arguments,1),O,U=function(){if(this instanceof O){var te=C.apply(this,r(M,arguments));return Object(te)===te?te:this}return C.apply(p,r(M,arguments))},K=t(0,C.length-M.length),j=[],W=0;W<K;W++)j[W]="$"+W;if(O=Function("binder","return function ("+l(j,",")+"){ return binder.apply(this,arguments); }")(U),C.prototype){var Y=function(){};Y.prototype=C.prototype,O.prototype=new Y,Y.prototype=null}return O},zE}var jE,aU;function t4(){if(aU)return jE;aU=1;var n=lfe();return jE=Function.prototype.bind||n,jE}var NE,sU;function r7(){return sU||(sU=1,NE=Function.prototype.call),NE}var GE,lU;functi
Line truncated
|
||||
`," "],l=["{","}","|","\\","^","`"].concat(a),o=["'"].concat(l),p=["%","/","?",";","#"].concat(o),C=["/","?","#"],M=255,O=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,K={javascript:!0,"javascript:":!0},j={javascript:!0,"javascript:":!0},W={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Y=yfe();function te($,ae,G){if($&&typeof $=="object"&&$ instanceof e)return $;var ce=new e;return ce.parse($,ae,G),ce}e.prototype.parse=function($,ae,G){if(typeof $!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof $);var ce=$.indexOf("?"),ge=ce!==-1&&ce<$.indexOf("#")?"?":"#",ye=$.split(ge),we=/\\/g;ye[0]=ye[0].replace(we,"/"),$=ye.join(ge);var Ie=$;if(Ie=Ie.trim(),!G&&$.split("#").length===1){var Se=r.exec(Ie);if(Se)return this.path=Ie,this.href=Ie,this.pathname=Se[1],Se[2]?(this.search=Se[2],ae?this.query=Y.parse(this.search.substr(1)):this.query=this.search.substr(1)):ae&&(this.search="",this.query={}),this}var Ve=t.exec(Ie);if(Ve){Ve=Ve[0];var xe=Ve.toLowerCase();this.protocol=xe,Ie=Ie.substr(Ve.length)}if(G||Ve||Ie.match(/^\/\/[^@/]+@[^@/]+/)){var ze=Ie.substr(0,2)==="//";ze&&!(Ve&&j[Ve])&&(Ie=Ie.substr(2),this.slashes=!0)}if(!j[Ve]&&(ze||Ve&&!W[Ve])){for(var st=-1,Ct=0;Ct<C.length;Ct++){var nt=Ie.indexOf(C[Ct]);nt!==-1&&(st===-1||nt<st)&&(st=nt)}var be,Ne;st===-1?Ne=Ie.lastIndexOf("@"):Ne=Ie.lastIndexOf("@",st),Ne!==-1&&(be=Ie.slice(0,Ne),Ie=Ie.slice(Ne+1),this.auth=decodeURIComponent(be)),st=-1;for(var Ct=0;Ct<p.length;Ct++){var nt=Ie.indexOf(p[Ct]);nt!==-1&&(st===-1||nt<st)&&(st=nt)}st===-1&&(st=Ie.length),this.host=Ie.slice(0,st),Ie=Ie.slice(st),this.parseHost(),this.hostname=this.hostname||"";var tt=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!tt)for(var lt=this.hostname.split(/\./),Ct=0,kt=lt.length;Ct<kt;Ct++){var gt=lt[Ct];if(gt&&!gt.match(O)){for(var St="",Ut=0,Fe=gt.length;Ut<Fe;Ut++)gt.charCodeAt(Ut)>127?St+="x":St+=gt[Ut];if(!St.match(O)){var Ke=lt.slice(0,Ct),Re=lt.slice(Ct+1),He=gt.match(U);He&&(Ke.push(He[1]),Re.unshift(He[2])),Re.length&&(Ie="/"+Re.join(".")+Ie),this.hostname=Ke.join(".");break}}}this.hostname.length>M?this.hostname="":this.hostname=this.hostname.toLowerCase(),tt||(this.hostname=n.toASCII(this.hostname));var bt=this.port?":"+this.port:"",_t=this.hostname||"";this.host=_t+bt,this.href+=this.host,tt&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Ie[0]!=="/"&&(Ie="/"+Ie))}if(!K[xe])for(var Ct=0,kt=o.length;Ct<kt;Ct++){var Ot=o[Ct];if(Ie.indexOf(Ot)!==-1){var qt=encodeURIComponent(Ot);qt===Ot&&(qt=escape(Ot)),Ie=Ie.split(Ot).join(qt)}}var Kt=Ie.indexOf("#");Kt!==-1&&(this.hash=Ie.substr(Kt),Ie=Ie.slice(0,Kt));var on=Ie.indexOf("?");if(on!==-1?(this.search=Ie.substr(on),this.query=Ie.substr(on+1),ae&&(this.query=Y.parse(this.query)),Ie=Ie.slice(0,on)):ae&&(this.search="",this.query={}),Ie&&(this.pathname=Ie),W[xe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",Jn=this.search||"";this.path=bt+Jn}return this.href=this.format(),this};function J($){return typeof $=="string"&&($=te($)),$ instanceof e?$.format():e.prototype.format.call($)}e.prototype.format=function(){var $=this.auth||"";$&&($=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@");var ae=this.protocol||"",G=this.pathname||"",ce=this.hash||"",ge=!1,ye="";this.host?ge=$+this.host:this.hostname&&(ge=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ge+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(ye=Y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var we=this.search||ye&&"?"+ye||"";return ae&&ae.substr(-1)!==":"&&(ae+=":"),this.slashes||(!ae||W[ae])&&ge!==!1?(ge="//"+(ge||""),G&&G.charAt(0)!=="/"&&(G="/"+G)):ge||(ge=""),ce&&ce.charAt(0)!=="#"&&(ce="#"+ce),we&&we.charAt(0)!=="?"&&(we="?"+we),G=G.replace(/[?#]/g,function(Ie){return encodeURIComponent(Ie)}),we=we.replace("#","%23"),ae+ge+G+we+ce};function oe($,ae){return te($,!1,!0).resolve(ae)}e.prototype.resolve=function($){return this.resolveObject(te($,!1,!0)).format()};function ne($,ae){return $?te($,!1,!0).resolveObject(ae):ae}return e.prototype.resolveObject=function($){if(typeof $=="string"){var ae=new e;ae.parse($,!1,!0),$=ae}for(var G=new e,ce=Object.keys(this),ge=0;ge<ce.length;ge++){var ye=ce[ge];G[ye]=this[ye]}if(G.hash=$.hash,$.href==="")return G.href=G.format(),G;if($.slashes&&!$.protocol){for(var we=Object.keys($),Ie=0;Ie<we.length;Ie++){var Se=we[Ie];Se!=="protocol"&&(G[Se]=$[Se])}return W[G.protocol]&&G.hostname&&!G.pathname&&(G.pathname="/",G.path=G.pathname),G.href=G.format(),G}if($.protocol&&$.protocol!==G.protocol){if(!W[$.protocol]){for(var Ve=Object.keys($),xe=0;xe<Ve.length;xe++){var ze=Ve[xe];G[ze]=$[ze]}return G.href=G.format(),G}if(G.protocol=$.protocol,!$.host&&!j[$.protocol]){for(var kt=($.pathname||"").split("/");kt.length&&!($.host=kt.shift()););$.host||($.host=""),$.hos
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
|
||||
@@ -991,10 +991,10 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
||||
|
||||
See the Apache Version 2.0 License for specific language governing permissions
|
||||
and limitations under the License.
|
||||
***************************************************************************** */var MB=function(n,e){return MB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])},MB(n,e)};function wG(n,e){MB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function bfe(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 xfe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),r,a=[],l;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){l={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function Mfe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(xfe(arguments[e]));return n}var SG=function(){function n(e,t){this.target=t,this.type=e}return n}(),wfe=function(n){wG(e,n);function e(t,i){var r=n.call(this,"error",i)||this;return r.message=t.message,r.error=t,r}return e}(SG),Sfe=function(n){wG(e,n);function e(t,i,r){t===void 0&&(t=1e3),i===void 0&&(i="");var a=n.call(this,"close",r)||this;return a.wasClean=!0,a.code=t,a.reason=i,a}return e}(SG);/*!
|
||||
***************************************************************************** */var EB=function(n,e){return EB=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var r in i)i.hasOwnProperty(r)&&(t[r]=i[r])},EB(n,e)};function SG(n,e){EB(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function Sfe(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 Efe(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var i=t.call(n),r,a=[],l;try{for(;(e===void 0||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(o){l={error:o}}finally{try{r&&!r.done&&(t=i.return)&&t.call(i)}finally{if(l)throw l.error}}return a}function Bfe(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(Efe(arguments[e]));return n}var EG=function(){function n(e,t){this.target=t,this.type=e}return n}(),Ofe=function(n){SG(e,n);function e(t,i){var r=n.call(this,"error",i)||this;return r.message=t.message,r.error=t,r}return e}(EG),Ife=function(n){SG(e,n);function e(t,i,r){t===void 0&&(t=1e3),i===void 0&&(i="");var a=n.call(this,"close",r)||this;return a.wasClean=!0,a.code=t,a.reason=i,a}return e}(EG);/*!
|
||||
* Reconnecting WebSocket
|
||||
* by Pedro Ladaria <pedro.ladaria@gmail.com>
|
||||
* https://github.com/pladaria/reconnecting-websocket
|
||||
* License MIT
|
||||
*/var Efe=function(){if(typeof WebSocket<"u")return WebSocket},Bfe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},_1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),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(a){r._debug("open event");var l=r._options.minUptime,o=l===void 0?_1.minUptime:l;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},o),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(a),r._listeners.open.forEach(function(p){return r._callEventListener(a,p)})},this._handleMessage=function(a){r._debug("message event"),r.onmessage&&r.onmessage(a),r._listeners.message.forEach(function(l){return r._callEventListener(a,l)})},this._handleError=function(a){r._debug("error event",a.message),r._disconnect(void 0,a.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(a),r._debug("exec error listeners"),r._listeners.error.forEach(function(l){return r._callEventListener(a,l)}),r._connect()},this._handleClose=function(a){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(a),r._listeners.close.forEach(function(l){return r._callEventListener(a,l)})},this._url=e,this._protocols=t,this._options=i,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,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.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,i=t===void 0?_1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(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,i,r=this._listeners[e.type];if(r)try{for(var a=bfe(r),l=a.next();!l.done;l=a.next()){var o=l.value;this._callEventListener(e,o)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index--khXh1ZU.js.map
|
||||
*/var Tfe=function(){if(typeof WebSocket<"u")return WebSocket},kfe=function(n){return typeof n<"u"&&!!n&&n.CLOSING===2},b1={maxReconnectionDelay:1e4,minReconnectionDelay:1e3+Math.random()*4e3,minUptime:5e3,reconnectionDelayGrowFactor:1.3,connectionTimeout:4e3,maxRetries:1/0,maxEnqueuedMessages:1/0};(function(){function n(e,t,i){var r=this;i===void 0&&(i={}),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(a){r._debug("open event");var l=r._options.minUptime,o=l===void 0?b1.minUptime:l;clearTimeout(r._connectTimeout),r._uptimeTimeout=setTimeout(function(){return r._acceptOpen()},o),r._ws.binaryType=r._binaryType,r._messageQueue.forEach(function(p){return r._ws.send(p)}),r._messageQueue=[],r.onopen&&r.onopen(a),r._listeners.open.forEach(function(p){return r._callEventListener(a,p)})},this._handleMessage=function(a){r._debug("message event"),r.onmessage&&r.onmessage(a),r._listeners.message.forEach(function(l){return r._callEventListener(a,l)})},this._handleError=function(a){r._debug("error event",a.message),r._disconnect(void 0,a.message==="TIMEOUT"?"timeout":void 0),r.onerror&&r.onerror(a),r._debug("exec error listeners"),r._listeners.error.forEach(function(l){return r._callEventListener(a,l)}),r._connect()},this._handleClose=function(a){r._debug("close event"),r._clearTimeouts(),r._shouldReconnect&&r._connect(),r.onclose&&r.onclose(a),r._listeners.close.forEach(function(l){return r._callEventListener(a,l)})},this._url=e,this._protocols=t,this._options=i,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,i){return typeof i=="string"?t+=i.length:i instanceof Blob?t+=i.size:t+=i.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,i=t===void 0?b1.maxEnqueuedMessages:t;this._messageQueue.length<i&&(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,i,r=this._listeners[e.type];if(r)try{for(var a=Sfe(r),l=a.next();!l.done;l=a.next()){var o=l.value;this._callEventListener(e,o)}}catch(p){t={error:p}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(t)throw t.error}}return!0},n.prototype.removeEventListener=function(e,t){this._listeLine truncated
|
||||
//# sourceMappingURL=index-ixDJwGBb.js.map
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,IAAiB,EAC1BA,GAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,GAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
|
||||
{"version":3,"mappings":";;;;;;;;6CAWA,IAAIA,EAAqB,OAAO,IAAI,4BAA4B,EAC9DC,EAAsB,OAAO,IAAI,gBAAgB,EACnD,SAASC,EAAQC,EAAMC,EAAQC,EAAU,CACvC,IAAIC,EAAM,KAGV,GAFWD,IAAX,SAAwBC,EAAM,GAAKD,GACxBD,EAAO,MAAlB,SAA0BE,EAAM,GAAKF,EAAO,KACxC,QAASA,EAAQ,CACnBC,EAAW,GACX,QAASE,KAAYH,EACTG,IAAV,QAAuBF,EAASE,CAAQ,EAAIH,EAAOG,CAAQ,EACjE,MAASF,EAAWD,EAClB,OAAAA,EAASC,EAAS,IACX,CACL,SAAUL,EACV,KAAMG,EACN,IAAKG,EACL,IAAgBF,IAAX,OAAoBA,EAAS,KAClC,MAAOC,EAEX,CACA,OAAAG,GAAA,SAAmBP,EACnBO,GAAA,IAAcN,EACdM,GAAA,KAAeN,2CC9BbO,GAAA,QAAiBC,GAAA;;;;;;;;6CCQnB,IAAIV,EAAqB,OAAO,IAAI,4BAA4B,EAC9DW,EAAoB,OAAO,IAAI,cAAc,EAC7CV,EAAsB,OAAO,IAAI,gBAAgB,EACjDW,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAqB,OAAO,IAAI,eAAe,EAC/CC,EAAyB,OAAO,IAAI,mBAAmB,EACvDC,EAAsB,OAAO,IAAI,gBAAgB,EACjDC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAkB,OAAO,IAAI,YAAY,EACzCC,EAAwB,OAAO,SACjC,SAASC,EAAcC,GAAe,CACpC,OAAaA,KAAT,MAAuC,OAAOA,IAApB,SAA0C,MACxEA,GACGF,GAAyBE,GAAcF,CAAqB,GAC7DE,GAAc,YAAY,EACN,OAAOA,IAAtB,WAAsCA,GAAgB,KAC/D,CACA,IAAIC,EAAuB,CACvB,UAAW,UAAY,CACrB,MAAO,EACb,EACI,mBAAoB,UAAY,GAChC,oBAAqB,UAAY,GACjC,gBAAiB,UAAY,IAE/BC,EAAS,OAAO,OAChBC,EAAc,GAChB,SAASC,EAAUC,GAAOC,GAASC,GAAS,CAC1C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACAG,EAAU,UAAU,iBAAmB,GACvCA,EAAU,UAAU,SAAW,SAAUI,GAAcC,GAAU,CAC/D,GACe,OAAOD,IAApB,UACe,OAAOA,IAAtB,YACQA,IAAR,KAEA,MAAM,MACJ,0GAEJ,KAAK,QAAQ,gBAAgB,KAAMA,GAAcC,GAAU,UAAU,CACvE,EACAL,EAAU,UAAU,YAAc,SAAUK,GAAU,CACpD,KAAK,QAAQ,mBAAmB,KAAMA,GAAU,aAAa,CAC/D,EACA,SAASC,IAAiB,EAC1BA,GAAe,UAAYN,EAAU,UACrC,SAASO,EAAcN,GAAOC,GAASC,GAAS,CAC9C,KAAK,MAAQF,GACb,KAAK,QAAUC,GACf,KAAK,KAAOH,EACZ,KAAK,QAAUI,IAAWN,CAC5B,CACA,IAAIW,GAA0BD,EAAc,UAAY,IAAID,GAC5DE,GAAuB,YAAcD,EACrCT,EAAOU,GAAwBR,EAAU,SAAS,EAClDQ,GAAuB,qBAAuB,GAC9C,IAAIC,GAAc,MAAM,QACtBC,EAAuB,CAAE,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,KAAM,EAAG,IAAI,EACpEC,GAAiB,OAAO,UAAU,eACpC,SAASC,EAAanC,GAAMG,GAAKiC,GAAMC,GAAQC,GAAOd,GAAO,CAC3D,OAAAY,GAAOZ,GAAM,IACN,CACL,SAAU3B,EACV,KAAMG,GACN,IAAKG,GACL,IAAgBiC,KAAX,OAAkBA,GAAO,KAC9B,MAAOZ,GAEX,CACA,SAASe,GAAmBC,GAAYC,GAAQ,CAC9C,OAAON,EACLK,GAAW,KACXC,GACA,OACA,OACA,OACAD,GAAW,MAEf,CACA,SAASE,GAAeC,GAAQ,CAC9B,OACe,OAAOA,IAApB,UACSA,KAAT,MACAA,GAAO,WAAa9C,CAExB,CACA,SAAS+C,GAAOzC,GAAK,CACnB,IAAI0C,GAAgB,CAAE,IAAK,KAAM,IAAK,IAAI,EAC1C,MACE,IACA1C,GAAI,QAAQ,QAAS,SAAU2C,GAAO,CACpC,OAAOD,GAAcC,EAAK,CAChC,CAAK,CAEL,CACA,IAAIC,GAA6B,OACjC,SAASC,GAAcC,GAASC,GAAO,CACrC,OAAoB,OAAOD,IAApB,UAAwCA,KAAT,MAA4BA,GAAQ,KAAhB,KACtDL,GAAO,GAAKK,GAAQ,GAAG,EACvBC,GAAM,SAAS,EAAE,CACvB,CACA,SAASC,IAAS,EAClB,SAASC,GAAgBC,GAAU,CACjC,OAAQA,GAAS,OAAM,CACrB,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,OACjB,QACE,OACgB,OAAOA,GAAS,QAA7B,SACGA,GAAS,KAAKF,GAAQA,EAAM,GAC1BE,GAAS,OAAS,UACpBA,GAAS,KACP,SAAUC,GAAgB,CACVD,GAAS,SAAvB,YACIA,GAAS,OAAS,YACnBA,GAAS,MAAQC,GACpC,EACc,SAAUC,GAAO,CACDF,GAAS,SAAvB,YACIA,GAAS,OAAS,WAAcA,GAAS,OAASE,GACtE,CACA,GACQF,GAAS,OACjB,CACQ,IAAK,YACH,OAAOA,GAAS,MAClB,IAAK,WACH,MAAMA,GAAS,MACzB,CACA,CACE,MAAMA,EACR,CACA,SAASG,GAAaC,GAAUC,GAAOC,GAAeC,GAAWhC,GAAU,CACzE,IAAI5B,GAAO,OAAOyD,IACEzD,KAAhB,aAAsCA,KAAd,aAAoByD,GAAW,MAC3D,IAAII,GAAiB,GACrB,GAAaJ,KAAT,KAAmBI,GAAiB,OAEtC,QAAQ7D,GAAI,CACV,IAAK,SACL,IAAK,SACL,IAAK,SACH6D,GAAiB,GACjB,MACF,IAAK,SACH,OAAQJ,GAAS,SAAQ,CACvB,KAAK5D,EACL,KAAKW,EACHqD,GAAiB,GACjB,MACF,KAAK7C,EACH,OACG6C,GAAiBJ,GAAS,MAC3BD,GACEK,GAAeJ,GAAS,QAAQ,EAChCC,GACAC,GACAC,GACAhC,EAChB,CAEA,CACA,CACE,GAAIiC,GACF,OACGjC,GAAWA,GAAS6B,EAAQ,EAC5BI,GACQD,KAAP,GAAmB,IAAMZ,GAAcS,GAAU,CAAC,EAAIG,GACxD5B,GAAYJ,EAAQ,GACd+B,GAAgB,GACVE,IAAR,OACGF,GACCE,GAAe,QAAQd,GAA4B,KAAK,EAAI,KAChES,GAAa5B,GAAU8B,GAAOC,GAAe,GAAI,SAAUG,GAAG,CAC5D,OAAOA,EACnB,CAAW,GACOlC,IAAR,OACCc,GAAed,EAAQ,IACrBA,GAAWW,GACVX,GACA+B,IACW/B,GAAS,KAAjB,MACA6B,IAAYA,GAAS,MAAQ7B,GAAS,IACnC,IACC,GAAKA,GAAS,KAAK,QAClBmB,GACA,OACE,KACRc,EAChB,GACUH,GAAM,KAAK9B,EAAQ,GACvB,EAEJiC,GAAiB,EACjB,IAAIE,GAAwBH,KAAP,GAAmB,IAAMA,GAAY,IAC1D,GAAI5B,GAAYyB,EAAQ,EACtB,QAASO,GAAI,EAAGA,GAAIP,GAAS,OAAQO,KAClCJ,GAAYH,GAASO,EAAC,EACpBhE,GAAO+D,GAAiBf,GAAcY,GAAWI,EAAC,EAClDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACaoC,GAAI9C,EAAcuC,EAAQ,EAAmB,OAAOO,IAAtB,WACvC,IACEP,GAAWO,GAAE,KAAKP,EAAQ,EAAGO,GAAI,EACjC,EAAEJ,GAAYH,GAAS,KAAI,GAAI,MAG9BG,GAAYA,GAAU,MACpB5D,GAAO+D,GAAiBf,GAAcY,GAAWI,IAAG,EACpDH,IAAkBL,GACjBI,GACAF,GACAC,GACA3D,GACA4B,EACV,UACwB5B,KAAb,SAAmB,CAC1B,GAAmB,OAAOyD,GAAS,MAA/B,WACF,OAAOD,GACLJ,GAAgBK,EAAQ,EACxBC,GACAC,GACAC,GACAhC,IAEJ,MAAA8B,GAAQ,OAAOD,EAAQ,EACjB,MACJ,mDACyBC,KAAtB,kBACG,qBAAuB,OAAO,KAAKD,EAAQ,EAAE,KAAK,IAAI,EAAI,IAC1DC,IACJ,4EAER,CACE,OAAOG,EACT,CACA,SAASI,GAAYR,GAAUS,GAAMzC,GAAS,CAC5C,GAAYgC,IAAR,KAAkB,OAAOA,GAC7B,IAAIU,GAAS,GACXC,GAAQ,EACV,OAAAZ,GAAaC,GAAUU,GAAQ,GAAI,GAAI,SAAUE,GAAO,CACtD,OAAOH,GAAK,KAAKzC,GAAS4C,GAAOD,IAAO,CAC5C,CAAG,EACMD,EACT,CACA,SAASG,GAAgBC,GAAS,CAChC,GAAWA,GAAQ,UAAf,GAAwB,CAC1B,IAAIC,GAAOD,GAAQ,QACnBC,GAAOA,GAAI,EACXA,GAAK,KACH,SAAUC,GAAc,EACZF,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QAAU,EAAKA,GAAQ,QAAUE,GACpD,EACM,SAAUlB,GAAO,EACLgB,GAAQ,UAAd,GAAgCA,GAAQ,UAAf,MAC1BA,GAAQ,QLine truncated
|
||||
+1
-1
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
</style>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index--khXh1ZU.js"></script>
|
||||
<script type="module" crossorigin src="/maputnik/assets/index-ixDJwGBb.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/maputnik/assets/index-bjjKS4qc.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user