From 8bb5ee4cba667b5793caee6fb79b3b8013f4b22d Mon Sep 17 00:00:00 2001 From: jiang teng <1348746268@qq.com> Date: Sun, 29 Sep 2024 15:53:01 +0800 Subject: [PATCH] fix(*): fix deploy --- .gitignore | 1 - docs/assets/clean-2b8d49bf.svg | 1 - docs/assets/hide-96ff822e.svg | 1 - docs/assets/import-5c494d28.svg | 1 - .../{index-7761d18a.js => index-6f382a78.js} | 1039 ++++++++--------- docs/assets/index-71dd84b6.css | 1 + docs/assets/index-c712abd4.css | 1 - docs/index.html | 4 +- 8 files changed, 512 insertions(+), 537 deletions(-) delete mode 100644 docs/assets/clean-2b8d49bf.svg delete mode 100644 docs/assets/hide-96ff822e.svg delete mode 100644 docs/assets/import-5c494d28.svg rename docs/assets/{index-7761d18a.js => index-6f382a78.js} (55%) create mode 100644 docs/assets/index-71dd84b6.css delete mode 100644 docs/assets/index-c712abd4.css diff --git a/.gitignore b/.gitignore index dc440b9..38adffa 100644 --- a/.gitignore +++ b/.gitignore @@ -10,7 +10,6 @@ lerna-debug.log* node_modules .DS_Store dist -docs/ dist-ssr coverage *.local diff --git a/docs/assets/clean-2b8d49bf.svg b/docs/assets/clean-2b8d49bf.svg deleted file mode 100644 index 86a56d5..0000000 --- a/docs/assets/clean-2b8d49bf.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/hide-96ff822e.svg b/docs/assets/hide-96ff822e.svg deleted file mode 100644 index c4a9d1b..0000000 --- a/docs/assets/hide-96ff822e.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/import-5c494d28.svg b/docs/assets/import-5c494d28.svg deleted file mode 100644 index 20a51d0..0000000 --- a/docs/assets/import-5c494d28.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/index-7761d18a.js b/docs/assets/index-6f382a78.js similarity index 55% rename from docs/assets/index-7761d18a.js rename to docs/assets/index-6f382a78.js index 7b2da35..271931f 100644 --- a/docs/assets/index-7761d18a.js +++ b/docs/assets/index-6f382a78.js @@ -1,32 +1,19 @@ -var qne=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var eht=qne((ff,hf)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function aN(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Ds(e){if(Yt(e)){const t={};for(let n=0;n{if(n){const i=n.split(Yne);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function st(e){let t="";if(_i(e))t=e;else if(Yt(e))for(let n=0;nRv(n,t))}const Pr=e=>_i(e)?e:e==null?"":Yt(e)||Di(e)&&(e.toString===I6||!En(e.toString))?JSON.stringify(e,v6,2):String(e),v6=(e,t)=>t&&t.__v_isRef?v6(e,t.value):Py(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:Mv(t)?{[`Set(${t.size})`]:[...t.values()]}:Di(t)&&!Yt(t)&&!P6(t)?String(t):t,Eo={},Iy=[],Bi=()=>{},eie=()=>!1,tie=/^on[^a-z]/,Nv=e=>tie.test(e),cN=e=>e.startsWith("onUpdate:"),gs=Object.assign,lN=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},nie=Object.prototype.hasOwnProperty,oi=(e,t)=>nie.call(e,t),Yt=Array.isArray,Py=e=>rT(e)==="[object Map]",Mv=e=>rT(e)==="[object Set]",jF=e=>rT(e)==="[object Date]",En=e=>typeof e=="function",_i=e=>typeof e=="string",eC=e=>typeof e=="symbol",Di=e=>e!==null&&typeof e=="object",D6=e=>Di(e)&&En(e.then)&&En(e.catch),I6=Object.prototype.toString,rT=e=>I6.call(e),iie=e=>rT(e).slice(8,-1),P6=e=>rT(e)==="[object Object]",uN=e=>_i(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,xw=aN(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fv=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oie=/-(\w)/g,lu=Fv(e=>e.replace(oie,(t,n)=>n?n.toUpperCase():"")),rie=/\B([A-Z])/g,G_=Fv(e=>e.replace(rie,"-$1").toLowerCase()),zv=Fv(e=>e.charAt(0).toUpperCase()+e.slice(1)),PI=Fv(e=>e?`on${zv(e)}`:""),tC=(e,t)=>!Object.is(e,t),ww=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},dN=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let qF;const sie=()=>qF||(qF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let tc;class O6{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=tc,!t&&tc&&(this.index=(tc.scopes||(tc.scopes=[])).push(this)-1)}run(t){if(this.active){const n=tc;try{return tc=this,t()}finally{tc=n}}}on(){tc=this}off(){tc=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},B6=e=>(e.w&Tp)>0,R6=e=>(e.n&Tp)>0,uie=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(d==="length"||d>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":Yt(e)?uN(n)&&a.push(s.get("length")):(a.push(s.get(a_)),Py(e)&&a.push(s.get(DL)));break;case"delete":Yt(e)||(a.push(s.get(a_)),Py(e)&&a.push(s.get(DL)));break;case"set":Py(e)&&a.push(s.get(a_));break}if(a.length===1)a[0]&&IL(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);IL(fN(c))}}function IL(e,t){const n=Yt(e)?e:[...e];for(const i of n)i.computed&&YF(i);for(const i of n)i.computed||YF(i)}function YF(e,t){(e!==ql||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const fie=aN("__proto__,__v_isRef,__isVue"),F6=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(eC)),hie=pN(),pie=pN(!1,!0),mie=pN(!0),XF=_ie();function _ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=Ci(this);for(let r=0,s=this.length;r{e[t]=function(...n){x0();const i=Ci(this)[t].apply(this,n);return w0(),i}}),e}function pN(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?Lie:k6:t?V6:H6).get(i))return i;const s=Yt(i);if(!e&&s&&oi(XF,o))return Reflect.get(XF,o,r);const a=Reflect.get(i,o,r);return(eC(o)?F6.has(o):fie(o))||(e||bc(i,"get",o),t)?a:So(a)?s&&uN(o)?a:a.value:Di(a)?e?W6(a):W_(a):a}}const gie=z6(),yie=z6(!0);function z6(e=!1){return function(n,i,o,r){let s=n[i];if(Zy(s)&&So(s)&&!So(o))return!1;if(!e&&(!CS(o)&&!Zy(o)&&(s=Ci(s),o=Ci(o)),!Yt(n)&&So(s)&&!So(o)))return s.value=o,!0;const a=Yt(n)&&uN(i)?Number(i)e,Uv=e=>Reflect.getPrototypeOf(e);function rE(e,t,n=!1,i=!1){e=e.__v_raw;const o=Ci(e),r=Ci(t);n||(t!==r&&bc(o,"get",t),bc(o,"get",r));const{has:s}=Uv(o),a=i?mN:n?AN:nC;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function sE(e,t=!1){const n=this.__v_raw,i=Ci(n),o=Ci(e);return t||(e!==o&&bc(i,"has",e),bc(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function aE(e,t=!1){return e=e.__v_raw,!t&&bc(Ci(e),"iterate",a_),Reflect.get(e,"size",e)}function KF(e){e=Ci(e);const t=Ci(this);return Uv(t).has.call(t,e)||(t.add(e),vf(t,"add",e,e)),this}function JF(e,t){t=Ci(t);const n=Ci(this),{has:i,get:o}=Uv(n);let r=i.call(n,e);r||(e=Ci(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?tC(t,s)&&vf(n,"set",e,t):vf(n,"add",e,t),this}function QF(e){const t=Ci(this),{has:n,get:i}=Uv(t);let o=n.call(t,e);o||(e=Ci(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&vf(t,"delete",e,void 0),r}function ZF(){const e=Ci(this),t=e.size!==0,n=e.clear();return t&&vf(e,"clear",void 0,void 0),n}function cE(e,t){return function(i,o){const r=this,s=r.__v_raw,a=Ci(s),c=t?mN:e?AN:nC;return!e&&bc(a,"iterate",a_),s.forEach((u,d)=>i.call(o,c(u),c(d),r))}}function lE(e,t,n){return function(...i){const o=this.__v_raw,r=Ci(o),s=Py(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),d=n?mN:t?AN:nC;return!t&&bc(r,"iterate",c?DL:a_),{next(){const{value:h,done:m}=u.next();return m?{value:h,done:m}:{value:a?[d(h[0]),d(h[1])]:d(h),done:m}},[Symbol.iterator](){return this}}}}function dh(e){return function(...t){return e==="delete"?!1:this}}function xie(){const e={get(r){return rE(this,r)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!1)},t={get(r){return rE(this,r,!1,!0)},get size(){return aE(this)},has:sE,add:KF,set:JF,delete:QF,clear:ZF,forEach:cE(!1,!0)},n={get(r){return rE(this,r,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!1)},i={get(r){return rE(this,r,!0,!0)},get size(){return aE(this,!0)},has(r){return sE.call(this,r,!0)},add:dh("add"),set:dh("set"),delete:dh("delete"),clear:dh("clear"),forEach:cE(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=lE(r,!1,!1),n[r]=lE(r,!0,!1),t[r]=lE(r,!1,!0),i[r]=lE(r,!0,!0)}),[e,n,t,i]}const[wie,Sie,vie,Die]=xie();function _N(e,t){const n=t?e?Die:vie:e?Sie:wie;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(oi(n,o)&&o in i?n:i,o,r)}const Iie={get:_N(!1,!1)},Pie={get:_N(!1,!0)},Oie={get:_N(!0,!1)},H6=new WeakMap,V6=new WeakMap,k6=new WeakMap,Lie=new WeakMap;function Bie(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Rie(e){return e.__v_skip||!Object.isExtensible(e)?0:Bie(iie(e))}function W_(e){return Zy(e)?e:gN(e,!1,U6,Iie,H6)}function G6(e){return gN(e,!1,Eie,Pie,V6)}function W6(e){return gN(e,!0,Tie,Oie,k6)}function gN(e,t,n,i,o){if(!Di(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=Rie(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function Oy(e){return Zy(e)?Oy(e.__v_raw):!!(e&&e.__v_isReactive)}function Zy(e){return!!(e&&e.__v_isReadonly)}function CS(e){return!!(e&&e.__v_isShallow)}function j6(e){return Oy(e)||Zy(e)}function Ci(e){const t=e&&e.__v_raw;return t?Ci(t):e}function yN(e){return bS(e,"__v_skip",!0),e}const nC=e=>Di(e)?W_(e):e,AN=e=>Di(e)?W6(e):e;function q6(e){sp&&ql&&(e=Ci(e),M6(e.dep||(e.dep=fN())))}function $6(e,t){e=Ci(e),e.dep&&IL(e.dep)}function So(e){return!!(e&&e.__v_isRef===!0)}function bn(e){return Y6(e,!1)}function c_(e){return Y6(e,!0)}function Y6(e,t){return So(e)?e:new Nie(e,t)}class Nie{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ci(t),this._value=n?t:nC(t)}get value(){return q6(this),this._value}set value(t){const n=this.__v_isShallow||CS(t)||Zy(t);t=n?t:Ci(t),tC(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:nC(t),$6(this))}}function pe(e){return So(e)?e.value:e}const Mie={get:(e,t,n)=>pe(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return So(o)&&!So(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function X6(e){return Oy(e)?e:new Proxy(e,Mie)}function K6(e){const t=Yt(e)?new Array(e.length):{};for(const n in e)t[n]=e0(e,n);return t}class Fie{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function e0(e,t,n){const i=e[t];return So(i)?i:new Fie(e,t,n)}var J6;class zie{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[J6]=!1,this._dirty=!0,this.effect=new hN(t,()=>{this._dirty||(this._dirty=!0,$6(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=Ci(this);return q6(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}J6="__v_isReadonly";function Q6(e,t,n=!1){let i,o;const r=En(e);return r?(i=e,o=Bi):(i=e.get,o=e.set),new zie(i,o,r||!o,n)}function Uie(e,...t){}function ap(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){Hv(r,t,n)}return o}function cl(e,t,n,i){if(En(e)){const r=ap(e,t,n,i);return r&&D6(r)&&r.catch(s=>{Hv(s,t,n)}),r}const o=[];for(let r=0;r>>1;oC(Qs[i])Ku&&Qs.splice(t,1)}function Gie(e){Yt(e)?Ly.push(...e):(!Kd||!Kd.includes(e,e.allowRecurse?Gm+1:Gm))&&Ly.push(e),e9()}function e3(e,t=iC?Ku+1:0){for(;toC(n)-oC(i)),Gm=0;Gme.id==null?1/0:e.id,Wie=(e,t)=>{const n=oC(e)-oC(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function n9(e){PL=!1,iC=!0,Qs.sort(Wie);const t=Bi;try{for(Ku=0;Ku_i(g)?g.trim():g)),h&&(o=n.map(dN))}let a,c=i[a=PI(t)]||i[a=PI(lu(t))];!c&&r&&(c=i[a=PI(G_(t))]),c&&cl(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,cl(u,e,6,o)}}function i9(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!En(e)){const c=u=>{const d=i9(u,t,!0);d&&(a=!0,gs(s,d))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(Di(e)&&i.set(e,null),null):(Yt(r)?r.forEach(c=>s[c]=null):gs(s,r),Di(e)&&i.set(e,s),s)}function Vv(e,t){return!e||!Nv(t)?!1:(t=t.slice(2).replace(/Once$/,""),oi(e,t[0].toLowerCase()+t.slice(1))||oi(e,G_(t))||oi(e,t))}let Os=null,o9=null;function TS(e){const t=Os;return Os=e,o9=e&&e.type.__scopeId||null,t}function an(e,t=Os,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&f3(-1);const r=TS(t);let s;try{s=e(...o)}finally{TS(r),i._d&&f3(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function OI(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:d,renderCache:h,data:m,setupState:g,ctx:p,inheritAttrs:y}=e;let b,C;const E=TS(e);try{if(n.shapeFlag&4){const S=o||i;b=ju(d.call(S,S,h,r,g,m,p)),C=c}else{const S=t;b=ju(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),C=t.props?c:qie(c)}}catch(S){Db.length=0,Hv(S,e,1),b=fn(ll)}let w=b;if(C&&y!==!1){const S=Object.keys(C),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(cN)&&(C=$ie(C,s)),w=xp(w,C))}return n.dirs&&(w=xp(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),b=w,TS(E),b}const qie=e=>{let t;for(const n in e)(n==="class"||n==="style"||Nv(n))&&((t||(t={}))[n]=e[n]);return t},$ie=(e,t)=>{const n={};for(const i in e)(!cN(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Yie(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?t3(i,s,u):!!s;if(c&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function Jie(e,t){t&&t.pendingBranch?Yt(e)?t.effects.push(...e):t.effects.push(e):Gie(e)}function nd(e,t){if(ds){let n=ds.provides;const i=ds.parent&&ds.parent.provides;i===n&&(n=ds.provides=Object.create(i)),n[e]=t}}function er(e,t,n=!1){const i=ds||Os;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&En(t)?t.call(i.proxy):t}}function Qie(e,t){return TN(e,null,t)}const uE={};function to(e,t,n){return TN(e,t,n)}function TN(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=Eo){const a=ds;let c,u=!1,d=!1;if(So(e)?(c=()=>e.value,u=CS(e)):Oy(e)?(c=()=>e,i=!0):Yt(e)?(d=!0,u=e.some(w=>Oy(w)||CS(w)),c=()=>e.map(w=>{if(So(w))return w.value;if(Oy(w))return Qm(w);if(En(w))return ap(w,a,2)})):En(e)?t?c=()=>ap(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),cl(e,a,3,[m])}:c=Bi,t&&i){const w=c;c=()=>Qm(w())}let h,m=w=>{h=C.onStop=()=>{ap(w,a,4)}},g;if(cC)if(m=Bi,t?n&&cl(t,a,3,[c(),d?[]:void 0,m]):c(),o==="sync"){const w=Goe();g=w.__watcherHandles||(w.__watcherHandles=[])}else return Bi;let p=d?new Array(e.length).fill(uE):uE;const y=()=>{if(C.active)if(t){const w=C.run();(i||u||(d?w.some((S,P)=>tC(S,p[P])):tC(w,p)))&&(h&&h(),cl(t,a,3,[w,p===uE?void 0:d&&p[0]===uE?[]:p,m]),p=w)}else C.run()};y.allowRecurse=!!t;let b;o==="sync"?b=y:o==="post"?b=()=>Wa(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),b=()=>CN(y));const C=new hN(c,b);t?n?y():p=C.run():o==="post"?Wa(C.run.bind(C),a&&a.suspense):C.run();const E=()=>{C.stop(),a&&a.scope&&lN(a.scope.effects,C)};return g&&g.push(E),E}function Zie(e,t,n){const i=this.proxy,o=_i(e)?e.includes(".")?r9(i,e):()=>i[e]:e.bind(i,i);let r;En(t)?r=t:(r=t.handler,n=t);const s=ds;t0(this);const a=TN(o,r.bind(i),n);return s?t0(s):l_(),a}function r9(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{Qm(n,t)});else if(P6(e))for(const n in e)Qm(e[n],t);return e}function s9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Oc(()=>{e.isMounted=!0}),Wp(()=>{e.isUnmounting=!0}),e}const zc=[Function,Array],eoe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:zc,onEnter:zc,onAfterEnter:zc,onEnterCancelled:zc,onBeforeLeave:zc,onLeave:zc,onAfterLeave:zc,onLeaveCancelled:zc,onBeforeAppear:zc,onAppear:zc,onAfterAppear:zc,onAppearCancelled:zc},setup(e,{slots:t}){const n=Lc(),i=s9();let o;return()=>{const r=t.default&&EN(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const y of r)if(y.type!==ll){s=y;break}}const a=Ci(e),{mode:c}=a;if(i.isLeaving)return LI(s);const u=n3(s);if(!u)return LI(s);const d=rC(u,a,i,n);sC(u,d);const h=n.subTree,m=h&&n3(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const y=p();o===void 0?o=y:y!==o&&(o=y,g=!0)}if(m&&m.type!==ll&&(!Wm(u,m)||g)){const y=rC(m,a,i,n);if(sC(m,y),c==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},LI(s);c==="in-out"&&u.type!==ll&&(y.delayLeave=(b,C,E)=>{const w=c9(i,m);w[String(m.key)]=m,b._leaveCb=()=>{C(),b._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=E})}return s}}},a9=eoe;function c9(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function rC(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:y,onAppear:b,onAfterAppear:C,onAppearCancelled:E}=t,w=String(e.key),S=c9(n,e),P=(R,F)=>{R&&cl(R,i,9,F)},L=(R,F)=>{const U=F[1];P(R,F),Yt(R)?R.every(D=>D.length<=1)&&U():R.length<=1&&U()},z={mode:r,persisted:s,beforeEnter(R){let F=a;if(!n.isMounted)if(o)F=y||a;else return;R._leaveCb&&R._leaveCb(!0);const U=S[w];U&&Wm(e,U)&&U.el._leaveCb&&U.el._leaveCb(),P(F,[R])},enter(R){let F=c,U=u,D=d;if(!n.isMounted)if(o)F=b||c,U=C||u,D=E||d;else return;let I=!1;const _=R._enterCb=v=>{I||(I=!0,v?P(D,[R]):P(U,[R]),z.delayedLeave&&z.delayedLeave(),R._enterCb=void 0)};F?L(F,[R,_]):_()},leave(R,F){const U=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return F();P(h,[R]);let D=!1;const I=R._leaveCb=_=>{D||(D=!0,F(),_?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[U]===e&&delete S[U])};S[U]=e,m?L(m,[R,I]):I()},clone(R){return rC(R,t,n,i)}};return z}function LI(e){if(kv(e))return e=xp(e),e.children=null,e}function n3(e){return kv(e)?e.children?e.children[0]:void 0:e}function sC(e,t){e.shapeFlag&6&&e.component?sC(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function EN(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,kv=e=>e.type.__isKeepAlive;function toe(e,t){l9(e,"a",t)}function noe(e,t){l9(e,"da",t)}function l9(e,t,n=ds){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Gv(t,i,n),n){let o=n.parent;for(;o&&o.parent;)kv(o.parent.vnode)&&ioe(i,t,n,o),o=o.parent}}function ioe(e,t,n,i){const o=Gv(t,e,i,!0);xN(()=>{lN(i[t],o)},n)}function Gv(e,t,n=ds,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;x0(),t0(n);const a=cl(t,n,e,s);return l_(),w0(),a});return i?o.unshift(r):o.push(r),r}}const Hf=e=>(t,n=ds)=>(!cC||e==="sp")&&Gv(e,(...i)=>t(...i),n),ooe=Hf("bm"),Oc=Hf("m"),roe=Hf("bu"),u9=Hf("u"),Wp=Hf("bum"),xN=Hf("um"),soe=Hf("sp"),aoe=Hf("rtg"),coe=Hf("rtc");function loe(e,t=ds){Gv("ec",e,t)}function eu(e,t){const n=Os;if(n===null)return e;const i=jv(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rt(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,c=s.length;a{const r=i.fn(...o);return r&&(r.key=i.key),r}:i.fn)}return e}function Zn(e,t,n={},i,o){if(Os.isCE||Os.parent&&wb(Os.parent)&&Os.parent.isCE)return t!=="default"&&(n.name=t),fn("slot",n,i&&i());let r=e[t];r&&r._c&&(r._d=!1),qe();const s=r&&p9(r(n)),a=Dn(Jo,{key:n.key||s&&s.key||`_${t}`},s||(i?i():[]),s&&e._===1?64:-2);return!o&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function p9(e){return e.some(t=>Ep(t)?!(t.type===ll||t.type===Jo&&!p9(t.children)):!0)?e:null}const OL=e=>e?w9(e)?jv(e)||e.proxy:OL(e.parent):null,Sb=gs(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>OL(e.parent),$root:e=>OL(e.root),$emit:e=>e.emit,$options:e=>SN(e),$forceUpdate:e=>e.f||(e.f=()=>CN(e.update)),$nextTick:e=>e.n||(e.n=us.bind(e.proxy)),$watch:e=>Zie.bind(e)}),BI=(e,t)=>e!==Eo&&!e.__isScriptSetup&&oi(e,t),uoe={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(BI(i,t))return s[t]=1,i[t];if(o!==Eo&&oi(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&oi(u,t))return s[t]=3,r[t];if(n!==Eo&&oi(n,t))return s[t]=4,n[t];LL&&(s[t]=0)}}const d=Sb[t];let h,m;if(d)return t==="$attrs"&&bc(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Eo&&oi(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,oi(m,t))return m[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return BI(o,t)?(o[t]=n,!0):i!==Eo&&oi(i,t)?(i[t]=n,!0):oi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==Eo&&oi(e,s)||BI(t,s)||(a=r[0])&&oi(a,s)||oi(i,s)||oi(Sb,s)||oi(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:oi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let LL=!0;function doe(e){const t=SN(e),n=e.proxy,i=e.ctx;LL=!1,t.beforeCreate&&r3(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:d,beforeMount:h,mounted:m,beforeUpdate:g,updated:p,activated:y,deactivated:b,beforeDestroy:C,beforeUnmount:E,destroyed:w,unmounted:S,render:P,renderTracked:L,renderTriggered:z,errorCaptured:R,serverPrefetch:F,expose:U,inheritAttrs:D,components:I,directives:_,filters:v}=t;if(u&&foe(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];En(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);Di(V)&&(e.data=W_(V))}if(LL=!0,r)for(const V in r){const k=r[V],G=En(k)?k.bind(n,n):En(k.get)?k.get.bind(n,n):Bi,W=!En(k)&&En(k.set)?k.set.bind(n):Bi,K=tt({get:G,set:W});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)m9(a[V],i,n,V);if(c){const V=En(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{nd(k,V[k])})}d&&r3(d,e,"c");function N(V,k){Yt(k)?k.forEach(G=>V(G.bind(n))):k&&V(k.bind(n))}if(N(ooe,h),N(Oc,m),N(roe,g),N(u9,p),N(toe,y),N(noe,b),N(loe,R),N(coe,L),N(aoe,z),N(Wp,E),N(xN,S),N(soe,F),Yt(U))if(U.length){const V=e.exposed||(e.exposed={});U.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:G=>n[k]=G})})}else e.exposed||(e.exposed={});P&&e.render===Bi&&(e.render=P),D!=null&&(e.inheritAttrs=D),I&&(e.components=I),_&&(e.directives=_)}function foe(e,t,n=Bi,i=!1){Yt(e)&&(e=BL(e));for(const o in e){const r=e[o];let s;Di(r)?"default"in r?s=er(r.from||o,r.default,!0):s=er(r.from||o):s=er(r),So(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function r3(e,t,n){cl(Yt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function m9(e,t,n,i){const o=i.includes(".")?r9(n,i):()=>n[i];if(_i(e)){const r=t[e];En(r)&&to(o,r)}else if(En(e))to(o,e.bind(n));else if(Di(e))if(Yt(e))e.forEach(r=>m9(r,t,n,i));else{const r=En(e.handler)?e.handler.bind(n):t[e.handler];En(r)&&to(o,r,e)}}function SN(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>ES(c,u,s,!0)),ES(c,t,s)),Di(t)&&r.set(t,c),c}function ES(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&ES(e,r,n,!0),o&&o.forEach(s=>ES(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=hoe[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const hoe={data:s3,props:Um,emits:Um,methods:Um,computed:Um,beforeCreate:Ea,created:Ea,beforeMount:Ea,mounted:Ea,beforeUpdate:Ea,updated:Ea,beforeDestroy:Ea,beforeUnmount:Ea,destroyed:Ea,unmounted:Ea,activated:Ea,deactivated:Ea,errorCaptured:Ea,serverPrefetch:Ea,components:Um,directives:Um,watch:moe,provide:s3,inject:poe};function s3(e,t){return t?e?function(){return gs(En(e)?e.call(this,this):e,En(t)?t.call(this,this):t)}:t:e}function poe(e,t){return Um(BL(e),BL(t))}function BL(e){if(Yt(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[m,g]=g9(h,t,!0);gs(s,m),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!c)return Di(e)&&i.set(e,Iy),Iy;if(Yt(r))for(let d=0;d-1,g[1]=y<0||p-1||oi(g,"default"))&&a.push(h)}}}const u=[s,a];return Di(e)&&i.set(e,u),u}function a3(e){return e[0]!=="$"}function c3(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function l3(e,t){return c3(e)===c3(t)}function u3(e,t){return Yt(t)?t.findIndex(n=>l3(n,e)):En(t)&&l3(t,e)?0:-1}const y9=e=>e[0]==="_"||e==="$stable",vN=e=>Yt(e)?e.map(ju):[ju(e)],yoe=(e,t,n)=>{if(t._n)return t;const i=an((...o)=>vN(t(...o)),n);return i._c=!1,i},A9=(e,t,n)=>{const i=e._ctx;for(const o in e){if(y9(o))continue;const r=e[o];if(En(r))t[o]=yoe(o,r,i);else if(r!=null){const s=vN(r);t[o]=()=>s}}},b9=(e,t)=>{const n=vN(t);e.slots.default=()=>n},Aoe=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ci(t),bS(t,"_",n)):A9(t,e.slots={})}else e.slots={},t&&b9(e,t);bS(e.slots,Wv,1)},boe=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=Eo;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(gs(o,t),!n&&a===1&&delete o._):(r=!t.$stable,A9(t,o)),s=t}else t&&(b9(e,t),s={default:1});if(r)for(const a in o)!y9(a)&&!(a in s)&&delete o[a]};function C9(){return{app:null,config:{isNativeTag:eie,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Coe=0;function Toe(e,t){return function(i,o=null){En(i)||(i=Object.assign({},i)),o!=null&&!Di(o)&&(o=null);const r=C9(),s=new Set;let a=!1;const c=r.app={_uid:Coe++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Woe,get config(){return r.config},set config(u){},use(u,...d){return s.has(u)||(u&&En(u.install)?(s.add(u),u.install(c,...d)):En(u)&&(s.add(u),u(c,...d))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,d){return d?(r.components[u]=d,c):r.components[u]},directive(u,d){return d?(r.directives[u]=d,c):r.directives[u]},mount(u,d,h){if(!a){const m=fn(i,o);return m.appContext=r,d&&t?t(m,u):e(m,u,h),a=!0,c._container=u,u.__vue_app__=c,jv(m.component)||m.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return r.provides[u]=d,c}};return c}}function NL(e,t,n,i,o=!1){if(Yt(e)){e.forEach((m,g)=>NL(m,t&&(Yt(t)?t[g]:t),n,i,o));return}if(wb(i)&&!o)return;const r=i.shapeFlag&4?jv(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,d=a.refs===Eo?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(_i(u)?(d[u]=null,oi(h,u)&&(h[u]=null)):So(u)&&(u.value=null)),En(c))ap(c,a,12,[s,d]);else{const m=_i(c),g=So(c);if(m||g){const p=()=>{if(e.f){const y=m?oi(h,c)?h[c]:d[c]:c.value;o?Yt(y)&&lN(y,r):Yt(y)?y.includes(r)||y.push(r):m?(d[c]=[r],oi(h,c)&&(h[c]=d[c])):(c.value=[r],e.k&&(d[e.k]=c.value))}else m?(d[c]=s,oi(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(d[e.k]=s))};s?(p.id=-1,Wa(p,n)):p()}}}const Wa=Jie;function Eoe(e){return xoe(e)}function xoe(e,t){const n=sie();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:d,parentNode:h,nextSibling:m,setScopeId:g=Bi,insertStaticContent:p}=e,y=(Q,ne,de,_e=null,Se=null,ve=null,Le=!1,Ee=null,Be=!!ne.dynamicChildren)=>{if(Q===ne)return;Q&&!Wm(Q,ne)&&(_e=se(Q),q(Q,Se,ve,!0),Q=null),ne.patchFlag===-2&&(Be=!1,ne.dynamicChildren=null);const{type:Pe,ref:Ae,shapeFlag:xe}=ne;switch(Pe){case sT:b(Q,ne,de,_e);break;case ll:C(Q,ne,de,_e);break;case RI:Q==null&&E(ne,de,_e,Le);break;case Jo:I(Q,ne,de,_e,Se,ve,Le,Ee,Be);break;default:xe&1?P(Q,ne,de,_e,Se,ve,Le,Ee,Be):xe&6?_(Q,ne,de,_e,Se,ve,Le,Ee,Be):(xe&64||xe&128)&&Pe.process(Q,ne,de,_e,Se,ve,Le,Ee,Be,re)}Ae!=null&&Se&&NL(Ae,Q&&Q.ref,ve,ne||Q,!ne)},b=(Q,ne,de,_e)=>{if(Q==null)i(ne.el=a(ne.children),de,_e);else{const Se=ne.el=Q.el;ne.children!==Q.children&&u(Se,ne.children)}},C=(Q,ne,de,_e)=>{Q==null?i(ne.el=c(ne.children||""),de,_e):ne.el=Q.el},E=(Q,ne,de,_e)=>{[Q.el,Q.anchor]=p(Q.children,ne,de,_e,Q.el,Q.anchor)},w=({el:Q,anchor:ne},de,_e)=>{let Se;for(;Q&&Q!==ne;)Se=m(Q),i(Q,de,_e),Q=Se;i(ne,de,_e)},S=({el:Q,anchor:ne})=>{let de;for(;Q&&Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},P=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Le=Le||ne.type==="svg",Q==null?L(ne,de,_e,Se,ve,Le,Ee,Be):F(Q,ne,Se,ve,Le,Ee,Be)},L=(Q,ne,de,_e,Se,ve,Le,Ee)=>{let Be,Pe;const{type:Ae,props:xe,shapeFlag:Oe,transition:Ve,dirs:Re}=Q;if(Be=Q.el=s(Q.type,ve,xe&&xe.is,xe),Oe&8?d(Be,Q.children):Oe&16&&R(Q.children,Be,null,_e,Se,ve&&Ae!=="foreignObject",Le,Ee),Re&&um(Q,null,_e,"created"),xe){for(const xt in xe)xt!=="value"&&!xw(xt)&&r(Be,xt,null,xe[xt],ve,Q.children,_e,Se,$);"value"in xe&&r(Be,"value",null,xe.value),(Pe=xe.onVnodeBeforeMount)&&Nu(Pe,_e,Q)}z(Be,Q,Q.scopeId,Le,_e),Re&&um(Q,null,_e,"beforeMount");const At=(!Se||Se&&!Se.pendingBranch)&&Ve&&!Ve.persisted;At&&Ve.beforeEnter(Be),i(Be,ne,de),((Pe=xe&&xe.onVnodeMounted)||At||Re)&&Wa(()=>{Pe&&Nu(Pe,_e,Q),At&&Ve.enter(Be),Re&&um(Q,null,_e,"mounted")},Se)},z=(Q,ne,de,_e,Se)=>{if(de&&g(Q,de),_e)for(let ve=0;ve<_e.length;ve++)g(Q,_e[ve]);if(Se){let ve=Se.subTree;if(ne===ve){const Le=Se.vnode;z(Q,Le,Le.scopeId,Le.slotScopeIds,Se.parent)}}},R=(Q,ne,de,_e,Se,ve,Le,Ee,Be=0)=>{for(let Pe=Be;Pe{const Ee=ne.el=Q.el;let{patchFlag:Be,dynamicChildren:Pe,dirs:Ae}=ne;Be|=Q.patchFlag&16;const xe=Q.props||Eo,Oe=ne.props||Eo;let Ve;de&&dm(de,!1),(Ve=Oe.onVnodeBeforeUpdate)&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"beforeUpdate"),de&&dm(de,!0);const Re=Se&&ne.type!=="foreignObject";if(Pe?U(Q.dynamicChildren,Pe,Ee,de,_e,Re,ve):Le||k(Q,ne,Ee,null,de,_e,Re,ve,!1),Be>0){if(Be&16)D(Ee,ne,xe,Oe,de,_e,Se);else if(Be&2&&xe.class!==Oe.class&&r(Ee,"class",null,Oe.class,Se),Be&4&&r(Ee,"style",xe.style,Oe.style,Se),Be&8){const At=ne.dynamicProps;for(let xt=0;xt{Ve&&Nu(Ve,de,ne,Q),Ae&&um(ne,Q,de,"updated")},_e)},U=(Q,ne,de,_e,Se,ve,Le)=>{for(let Ee=0;Ee{if(de!==_e){if(de!==Eo)for(const Ee in de)!xw(Ee)&&!(Ee in _e)&&r(Q,Ee,de[Ee],null,Le,ne.children,Se,ve,$);for(const Ee in _e){if(xw(Ee))continue;const Be=_e[Ee],Pe=de[Ee];Be!==Pe&&Ee!=="value"&&r(Q,Ee,Pe,Be,Le,ne.children,Se,ve,$)}"value"in _e&&r(Q,"value",de.value,_e.value)}},I=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{const Pe=ne.el=Q?Q.el:a(""),Ae=ne.anchor=Q?Q.anchor:a("");let{patchFlag:xe,dynamicChildren:Oe,slotScopeIds:Ve}=ne;Ve&&(Ee=Ee?Ee.concat(Ve):Ve),Q==null?(i(Pe,de,_e),i(Ae,de,_e),R(ne.children,de,Ae,Se,ve,Le,Ee,Be)):xe>0&&xe&64&&Oe&&Q.dynamicChildren?(U(Q.dynamicChildren,Oe,de,Se,ve,Le,Ee),(ne.key!=null||Se&&ne===Se.subTree)&&DN(Q,ne,!0)):k(Q,ne,de,Ae,Se,ve,Le,Ee,Be)},_=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{ne.slotScopeIds=Ee,Q==null?ne.shapeFlag&512?Se.ctx.activate(ne,de,_e,Le,Be):v(ne,de,_e,Se,ve,Le,Be):O(Q,ne,Be)},v=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=Q.component=Noe(Q,_e,Se);if(kv(Q)&&(Ee.ctx.renderer=re),Moe(Ee),Ee.asyncDep){if(Se&&Se.registerDep(Ee,N),!Q.el){const Be=Ee.subTree=fn(ll);C(null,Be,ne,de)}return}N(Ee,Q,ne,de,Se,ve,Le)},O=(Q,ne,de)=>{const _e=ne.component=Q.component;if(Yie(Q,ne,de))if(_e.asyncDep&&!_e.asyncResolved){V(_e,ne,de);return}else _e.next=ne,kie(_e.update),_e.update();else ne.el=Q.el,_e.vnode=ne},N=(Q,ne,de,_e,Se,ve,Le)=>{const Ee=()=>{if(Q.isMounted){let{next:Ae,bu:xe,u:Oe,parent:Ve,vnode:Re}=Q,At=Ae,xt;dm(Q,!1),Ae?(Ae.el=Re.el,V(Q,Ae,Le)):Ae=Re,xe&&ww(xe),(xt=Ae.props&&Ae.props.onVnodeBeforeUpdate)&&Nu(xt,Ve,Ae,Re),dm(Q,!0);const Nt=OI(Q),On=Q.subTree;Q.subTree=Nt,y(On,Nt,h(On.el),se(On),Q,Se,ve),Ae.el=Nt.el,At===null&&Xie(Q,Nt.el),Oe&&Wa(Oe,Se),(xt=Ae.props&&Ae.props.onVnodeUpdated)&&Wa(()=>Nu(xt,Ve,Ae,Re),Se)}else{let Ae;const{el:xe,props:Oe}=ne,{bm:Ve,m:Re,parent:At}=Q,xt=wb(ne);if(dm(Q,!1),Ve&&ww(Ve),!xt&&(Ae=Oe&&Oe.onVnodeBeforeMount)&&Nu(Ae,At,ne),dm(Q,!0),xe&&ce){const Nt=()=>{Q.subTree=OI(Q),ce(xe,Q.subTree,Q,Se,null)};xt?ne.type.__asyncLoader().then(()=>!Q.isUnmounted&&Nt()):Nt()}else{const Nt=Q.subTree=OI(Q);y(null,Nt,de,_e,Q,Se,ve),ne.el=Nt.el}if(Re&&Wa(Re,Se),!xt&&(Ae=Oe&&Oe.onVnodeMounted)){const Nt=ne;Wa(()=>Nu(Ae,At,Nt),Se)}(ne.shapeFlag&256||At&&wb(At.vnode)&&At.vnode.shapeFlag&256)&&Q.a&&Wa(Q.a,Se),Q.isMounted=!0,ne=de=_e=null}},Be=Q.effect=new hN(Ee,()=>CN(Pe),Q.scope),Pe=Q.update=()=>Be.run();Pe.id=Q.uid,dm(Q,!0),Pe()},V=(Q,ne,de)=>{ne.component=Q;const _e=Q.vnode.props;Q.vnode=ne,Q.next=null,goe(Q,ne.props,_e,de),boe(Q,ne.children,de),x0(),e3(),w0()},k=(Q,ne,de,_e,Se,ve,Le,Ee,Be=!1)=>{const Pe=Q&&Q.children,Ae=Q?Q.shapeFlag:0,xe=ne.children,{patchFlag:Oe,shapeFlag:Ve}=ne;if(Oe>0){if(Oe&128){W(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}else if(Oe&256){G(Pe,xe,de,_e,Se,ve,Le,Ee,Be);return}}Ve&8?(Ae&16&&$(Pe,Se,ve),xe!==Pe&&d(de,xe)):Ae&16?Ve&16?W(Pe,xe,de,_e,Se,ve,Le,Ee,Be):$(Pe,Se,ve,!0):(Ae&8&&d(de,""),Ve&16&&R(xe,de,_e,Se,ve,Le,Ee,Be))},G=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{Q=Q||Iy,ne=ne||Iy;const Pe=Q.length,Ae=ne.length,xe=Math.min(Pe,Ae);let Oe;for(Oe=0;OeAe?$(Q,Se,ve,!0,!1,xe):R(ne,de,_e,Se,ve,Le,Ee,Be,xe)},W=(Q,ne,de,_e,Se,ve,Le,Ee,Be)=>{let Pe=0;const Ae=ne.length;let xe=Q.length-1,Oe=Ae-1;for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[Pe],Re=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;Pe++}for(;Pe<=xe&&Pe<=Oe;){const Ve=Q[xe],Re=ne[Oe]=Be?Gh(ne[Oe]):ju(ne[Oe]);if(Wm(Ve,Re))y(Ve,Re,de,null,Se,ve,Le,Ee,Be);else break;xe--,Oe--}if(Pe>xe){if(Pe<=Oe){const Ve=Oe+1,Re=VeOe)for(;Pe<=xe;)q(Q[Pe],Se,ve,!0),Pe++;else{const Ve=Pe,Re=Pe,At=new Map;for(Pe=Re;Pe<=Oe;Pe++){const vn=ne[Pe]=Be?Gh(ne[Pe]):ju(ne[Pe]);vn.key!=null&&At.set(vn.key,Pe)}let xt,Nt=0;const On=Oe-Re+1;let Nn=!1,Sn=0;const un=new Array(On);for(Pe=0;Pe=On){q(vn,Se,ve,!0);continue}let Pn;if(vn.key!=null)Pn=At.get(vn.key);else for(xt=Re;xt<=Oe;xt++)if(un[xt-Re]===0&&Wm(vn,ne[xt])){Pn=xt;break}Pn===void 0?q(vn,Se,ve,!0):(un[Pn-Re]=Pe+1,Pn>=Sn?Sn=Pn:Nn=!0,y(vn,ne[Pn],de,null,Se,ve,Le,Ee,Be),Nt++)}const Ht=Nn?woe(un):Iy;for(xt=Ht.length-1,Pe=On-1;Pe>=0;Pe--){const vn=Re+Pe,Pn=ne[vn],qt=vn+1{const{el:ve,type:Le,transition:Ee,children:Be,shapeFlag:Pe}=Q;if(Pe&6){K(Q.component.subTree,ne,de,_e);return}if(Pe&128){Q.suspense.move(ne,de,_e);return}if(Pe&64){Le.move(Q,ne,de,re);return}if(Le===Jo){i(ve,ne,de);for(let xe=0;xeEe.enter(ve),Se);else{const{leave:xe,delayLeave:Oe,afterLeave:Ve}=Ee,Re=()=>i(ve,ne,de),At=()=>{xe(ve,()=>{Re(),Ve&&Ve()})};Oe?Oe(ve,Re,At):At()}else i(ve,ne,de)},q=(Q,ne,de,_e=!1,Se=!1)=>{const{type:ve,props:Le,ref:Ee,children:Be,dynamicChildren:Pe,shapeFlag:Ae,patchFlag:xe,dirs:Oe}=Q;if(Ee!=null&&NL(Ee,null,de,Q,!0),Ae&256){ne.ctx.deactivate(Q);return}const Ve=Ae&1&&Oe,Re=!wb(Q);let At;if(Re&&(At=Le&&Le.onVnodeBeforeUnmount)&&Nu(At,ne,Q),Ae&6)X(Q.component,de,_e);else{if(Ae&128){Q.suspense.unmount(de,_e);return}Ve&&um(Q,null,ne,"beforeUnmount"),Ae&64?Q.type.remove(Q,ne,de,Se,re,_e):Pe&&(ve!==Jo||xe>0&&xe&64)?$(Pe,ne,de,!1,!0):(ve===Jo&&xe&384||!Se&&Ae&16)&&$(Be,ne,de),_e&&te(Q)}(Re&&(At=Le&&Le.onVnodeUnmounted)||Ve)&&Wa(()=>{At&&Nu(At,ne,Q),Ve&&um(Q,null,ne,"unmounted")},de)},te=Q=>{const{type:ne,el:de,anchor:_e,transition:Se}=Q;if(ne===Jo){Y(de,_e);return}if(ne===RI){S(Q);return}const ve=()=>{o(de),Se&&!Se.persisted&&Se.afterLeave&&Se.afterLeave()};if(Q.shapeFlag&1&&Se&&!Se.persisted){const{leave:Le,delayLeave:Ee}=Se,Be=()=>Le(de,ve);Ee?Ee(Q.el,ve,Be):Be()}else ve()},Y=(Q,ne)=>{let de;for(;Q!==ne;)de=m(Q),o(Q),Q=de;o(ne)},X=(Q,ne,de)=>{const{bum:_e,scope:Se,update:ve,subTree:Le,um:Ee}=Q;_e&&ww(_e),Se.stop(),ve&&(ve.active=!1,q(Le,Q,ne,de)),Ee&&Wa(Ee,ne),Wa(()=>{Q.isUnmounted=!0},ne),ne&&ne.pendingBranch&&!ne.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ne.pendingId&&(ne.deps--,ne.deps===0&&ne.resolve())},$=(Q,ne,de,_e=!1,Se=!1,ve=0)=>{for(let Le=ve;LeQ.shapeFlag&6?se(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():m(Q.anchor||Q.el),ue=(Q,ne,de)=>{Q==null?ne._vnode&&q(ne._vnode,null,null,!0):y(ne._vnode||null,Q,ne,null,null,null,de),e3(),t9(),ne._vnode=Q},re={p:y,um:q,m:K,r:te,mt:v,mc:R,pc:k,pbc:U,n:se,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:Toe(ue,he)}}function dm({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function DN(e,t,n=!1){const i=e.children,o=t.children;if(Yt(i)&&Yt(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Soe=e=>e.__isTeleport,vb=e=>e&&(e.disabled||e.disabled===""),d3=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ML=(e,t)=>{const n=e&&e.to;return _i(n)?t?t(n):null:n},voe={__isTeleport:!0,process(e,t,n,i,o,r,s,a,c,u){const{mc:d,pc:h,pbc:m,o:{insert:g,querySelector:p,createText:y,createComment:b}}=u,C=vb(t.props);let{shapeFlag:E,children:w,dynamicChildren:S}=t;if(e==null){const P=t.el=y(""),L=t.anchor=y("");g(P,n,i),g(L,n,i);const z=t.target=ML(t.props,p),R=t.targetAnchor=y("");z&&(g(R,z),s=s||d3(z));const F=(U,D)=>{E&16&&d(w,U,D,o,r,s,a,c)};C?F(n,L):z&&F(z,R)}else{t.el=e.el;const P=t.anchor=e.anchor,L=t.target=e.target,z=t.targetAnchor=e.targetAnchor,R=vb(e.props),F=R?n:L,U=R?P:z;if(s=s||d3(L),S?(m(e.dynamicChildren,S,F,o,r,s,a),DN(e,t,!0)):c||h(e,t,F,U,o,r,s,a,!1),C)R||dE(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ML(t.props,p);D&&dE(t,D,null,u,0)}else R&&dE(t,L,z,u,1)}T9(t)},remove(e,t,n,i,{um:o,o:{remove:r}},s){const{shapeFlag:a,children:c,anchor:u,targetAnchor:d,target:h,props:m}=e;if(h&&r(d),(s||!vb(m))&&(r(u),a&16))for(let g=0;g0?Yl||Iy:null,Poe(),aC>0&&Yl&&Yl.push(e),e}function Dt(e,t,n,i,o,r){return E9(Vt(e,t,n,i,o,r,!0))}function Dn(e,t,n,i,o){return E9(fn(e,t,n,i,o,!0))}function Ep(e){return e?e.__v_isVNode===!0:!1}function Wm(e,t){return e.type===t.type&&e.key===t.key}const Wv="__vInternal",x9=({key:e})=>e??null,Sw=({ref:e,ref_key:t,ref_for:n})=>e!=null?_i(e)||So(e)||En(e)?{i:Os,r:e,k:t,f:!!n}:e:null;function Vt(e,t=null,n=null,i=0,o=null,r=e===Jo?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&x9(t),ref:t&&Sw(t),scopeId:o9,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Os};return a?(IN(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=_i(n)?8:16),aC>0&&!s&&Yl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Yl.push(c),c}const fn=Ooe;function Ooe(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===d9)&&(e=ll),Ep(e)){const a=xp(e,t,!0);return n&&IN(a,n),aC>0&&!r&&Yl&&(a.shapeFlag&6?Yl[Yl.indexOf(e)]=a:Yl.push(a)),a.patchFlag|=-2,a}if(Hoe(e)&&(e=e.__vccOpts),t){t=Loe(t);let{class:a,style:c}=t;a&&!_i(a)&&(t.class=st(a)),Di(c)&&(j6(c)&&!Yt(c)&&(c=gs({},c)),t.style=Ds(c))}const s=_i(e)?1:Kie(e)?128:Soe(e)?64:Di(e)?4:En(e)?2:0;return Vt(e,t,n,i,o,s,r,!0)}function Loe(e){return e?j6(e)||Wv in e?gs({},e):e:null}function xp(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?cp(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&x9(a),ref:t&&t.ref?n&&o?Yt(o)?o.concat(Sw(t)):[o,Sw(t)]:Sw(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Jo?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&xp(e.ssContent),ssFallback:e.ssFallback&&xp(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function $l(e=" ",t=0){return fn(sT,null,e,t)}function Mt(e="",t=!1){return t?(qe(),Dn(ll,null,e)):fn(ll,null,e)}function ju(e){return e==null||typeof e=="boolean"?fn(ll):Yt(e)?fn(Jo,null,e.slice()):typeof e=="object"?Gh(e):fn(sT,null,String(e))}function Gh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:xp(e)}function IN(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(Yt(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),IN(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Wv in t)?t._ctx=Os:o===3&&Os&&(Os.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else En(t)?(t={default:t,_ctx:Os},n=32):(t=String(t),i&64?(n=16,t=[$l(t)]):n=8);e.children=t,e.shapeFlag|=n}function cp(...e){const t={};for(let n=0;nds||Os,t0=e=>{ds=e,e.scope.on()},l_=()=>{ds&&ds.scope.off(),ds=null};function w9(e){return e.vnode.shapeFlag&4}let cC=!1;function Moe(e,t=!1){cC=t;const{props:n,children:i}=e.vnode,o=w9(e);_oe(e,n,o,t),Aoe(e,i);const r=o?Foe(e,t):void 0;return cC=!1,r}function Foe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=yN(new Proxy(e.ctx,uoe));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?v9(e):null;t0(e),x0();const r=ap(i,e,0,[e.props,o]);if(w0(),l_(),D6(r)){if(r.then(l_,l_),t)return r.then(s=>{h3(e,s,t)}).catch(s=>{Hv(s,e,0)});e.asyncDep=r}else h3(e,r,t)}else S9(e,t)}function h3(e,t,n){En(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Di(t)&&(e.setupState=X6(t)),S9(e,n)}let p3;function S9(e,t,n){const i=e.type;if(!e.render){if(!t&&p3&&!i.render){const o=i.template||SN(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=gs(gs({isCustomElement:r,delimiters:a},s),c);i.render=p3(o,u)}}e.render=i.render||Bi}t0(e),x0(),doe(e),w0(),l_()}function zoe(e){return new Proxy(e.attrs,{get(t,n){return bc(e,"get","$attrs"),t[n]}})}function v9(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=zoe(e))},slots:e.slots,emit:e.emit,expose:t}}function jv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(X6(yN(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Sb)return Sb[n](e)},has(t,n){return n in t||n in Sb}}))}function Uoe(e,t=!0){return En(e)?e.displayName||e.name:e.name||t&&e.__name}function Hoe(e){return En(e)&&"__vccOpts"in e}const tt=(e,t)=>Q6(e,t,cC);function aT(){return D9().slots}function Voe(){return D9().attrs}function D9(){const e=Lc();return e.setupContext||(e.setupContext=v9(e))}function qv(e,t,n){const i=arguments.length;return i===2?Di(t)&&!Yt(t)?Ep(t)?fn(e,null,[t]):fn(e,t):fn(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Ep(n)&&(n=[n]),fn(e,t,n))}const koe=Symbol(""),Goe=()=>er(koe),Woe="3.2.45",joe="http://www.w3.org/2000/svg",jm=typeof document<"u"?document:null,m3=jm&&jm.createElement("template"),qoe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?jm.createElementNS(joe,e):jm.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>jm.createTextNode(e),createComment:e=>jm.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>jm.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{m3.innerHTML=i?`${e}`:e;const a=m3.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function $oe(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Yoe(e,t,n){const i=e.style,o=_i(n);if(n&&!o){for(const r in n)FL(i,r,n[r]);if(t&&!_i(t))for(const r in t)n[r]==null&&FL(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const _3=/\s*!important$/;function FL(e,t,n){if(Yt(n))n.forEach(i=>FL(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Xoe(e,t);_3.test(n)?e.setProperty(G_(i),n.replace(_3,""),"important"):e[i]=n}}const g3=["Webkit","Moz","ms"],NI={};function Xoe(e,t){const n=NI[t];if(n)return n;let i=lu(t);if(i!=="filter"&&i in e)return NI[t]=i;i=zv(i);for(let o=0;oMI||(tre.then(()=>MI=0),MI=Date.now());function ire(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;cl(ore(i,n.value),t,5,[i])};return n.value=e,n.attached=nre(),n}function ore(e,t){if(Yt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const b3=/^on[a-z]/,rre=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?$oe(e,i,o):t==="style"?Yoe(e,n,i):Nv(t)?cN(t)||Zoe(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sre(e,t,i,o))?Joe(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Koe(e,t,i,o))};function sre(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&b3.test(t)&&En(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||b3.test(t)&&_i(n)?!1:t in e}const fh="transition",eA="animation",S0=(e,{slots:t})=>qv(a9,O9(e),t);S0.displayName="Transition";const P9={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},are=S0.props=gs({},a9.props,P9),fm=(e,t=[])=>{Yt(e)?e.forEach(n=>n(...t)):e&&e(...t)},C3=e=>e?Yt(e)?e.some(t=>t.length>1):e.length>1:!1;function O9(e){const t={};for(const I in e)I in P9||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=cre(o),y=p&&p[0],b=p&&p[1],{onBeforeEnter:C,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:L=C,onAppear:z=E,onAppearCancelled:R=w}=t,F=(I,_,v)=>{Mh(I,_?d:a),Mh(I,_?u:s),v&&v()},U=(I,_)=>{I._isLeaving=!1,Mh(I,h),Mh(I,g),Mh(I,m),_&&_()},D=I=>(_,v)=>{const O=I?z:E,N=()=>F(_,I,v);fm(O,[_,N]),T3(()=>{Mh(_,I?c:r),Xd(_,I?d:a),C3(O)||E3(_,i,y,N)})};return gs(t,{onBeforeEnter(I){fm(C,[I]),Xd(I,r),Xd(I,s)},onBeforeAppear(I){fm(L,[I]),Xd(I,c),Xd(I,u)},onEnter:D(!1),onAppear:D(!0),onLeave(I,_){I._isLeaving=!0;const v=()=>U(I,_);Xd(I,h),B9(),Xd(I,m),T3(()=>{I._isLeaving&&(Mh(I,h),Xd(I,g),C3(S)||E3(I,i,b,v))}),fm(S,[I,v])},onEnterCancelled(I){F(I,!1),fm(w,[I])},onAppearCancelled(I){F(I,!0),fm(R,[I])},onLeaveCancelled(I){U(I),fm(P,[I])}})}function cre(e){if(e==null)return null;if(Di(e))return[FI(e.enter),FI(e.leave)];{const t=FI(e);return[t,t]}}function FI(e){return dN(e)}function Xd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Mh(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function T3(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let lre=0;function E3(e,t,n,i){const o=e._endId=++lre,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=L9(e,t);if(!s)return i();const u=s+"end";let d=0;const h=()=>{e.removeEventListener(u,m),r()},m=g=>{g.target===e&&++d>=c&&h()};setTimeout(()=>{d(n[p]||"").split(", "),o=i(`${fh}Delay`),r=i(`${fh}Duration`),s=x3(o,r),a=i(`${eA}Delay`),c=i(`${eA}Duration`),u=x3(a,c);let d=null,h=0,m=0;t===fh?s>0&&(d=fh,h=s,m=r.length):t===eA?u>0&&(d=eA,h=u,m=c.length):(h=Math.max(s,u),d=h>0?s>u?fh:eA:null,m=d?d===fh?r.length:c.length:0);const g=d===fh&&/\b(transform|all)(,|$)/.test(i(`${fh}Property`).toString());return{type:d,timeout:h,propCount:m,hasTransform:g}}function x3(e,t){for(;e.lengthw3(n)+w3(e[i])))}function w3(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function B9(){return document.body.offsetHeight}const R9=new WeakMap,N9=new WeakMap,ure={name:"TransitionGroup",props:gs({},are,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Lc(),i=s9();let o,r;return u9(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!mre(o[0].el,n.vnode.el,s))return;o.forEach(fre),o.forEach(hre);const a=o.filter(pre);B9(),a.forEach(c=>{const u=c.el,d=u.style;Xd(u,s),d.transform=d.webkitTransform=d.transitionDuration="";const h=u._moveCb=m=>{m&&m.target!==u||(!m||/transform$/.test(m.propertyName))&&(u.removeEventListener("transitionend",h),u._moveCb=null,Mh(u,s))};u.addEventListener("transitionend",h)})}),()=>{const s=Ci(e),a=O9(s);let c=s.tag||Jo;o=r,r=t.default?EN(t.default()):[];for(let u=0;u{s.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),n.split(/\s+/).forEach(s=>s&&i.classList.add(s)),i.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(i);const{hasTransform:r}=L9(i);return o.removeChild(i),r}const S3=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Yt(t)?n=>ww(t,n):t},xS={deep:!0,created(e,t,n){e._assign=S3(n),I9(e,"change",()=>{const i=e._modelValue,o=_re(e),r=e.checked,s=e._assign;if(Yt(i)){const a=S6(i,o),c=a!==-1;if(r&&!c)s(i.concat(o));else if(!r&&c){const u=[...i];u.splice(a,1),s(u)}}else if(Mv(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(M9(e,r))})},mounted:v3,beforeUpdate(e,t,n){e._assign=S3(n),v3(e,t,n)}};function v3(e,{value:t,oldValue:n},i){e._modelValue=t,Yt(t)?e.checked=S6(t,i.props.value)>-1:Mv(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=Rv(t,M9(e,!0)))}function _re(e){return"_value"in e?e._value:e.value}function M9(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gre=["ctrl","shift","alt","meta"],yre={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>gre.some(n=>e[`${n}Key`]&&!t.includes(n))},cc=(e,t)=>(n,...i)=>{for(let o=0;on=>{if(!("key"in n))return;const i=G_(n.key);if(t.some(o=>o===i||Are[o]===i))return e(n)},u_={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):tA(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),tA(e,!0),i.enter(e)):i.leave(e,()=>{tA(e,!1)}):tA(e,t))},beforeUnmount(e,{value:t}){tA(e,t)}};function tA(e,t){e.style.display=t?e._vod:"none"}const bre=gs({patchProp:rre},qoe);let D3;function F9(){return D3||(D3=Eoe(bre))}const wS=(...e)=>{F9().render(...e)},Cre=(...e)=>{const t=F9().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=Tre(i);if(!o)return;const r=t._component;!En(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function Tre(e){return _i(e)?document.querySelector(e):e}var Ere=!1;/*! +var Ste=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Hct=Ste(($f,Xf)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerpolicy&&(r.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?r.credentials="include":o.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function gR(e,t){const n=Object.create(null),i=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function Xy(e){if(jt(e)){const t={};for(let n=0;n{if(n){const i=n.split(Dte);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function Mi(e){let t="";if(qi(e))t=e;else if(jt(e))for(let n=0;nJS(n,t))}const qm=e=>qi(e)?e:e==null?"":jt(e)||zi(e)&&(e.toString===v8||!bn(e.toString))?JSON.stringify(e,w8,2):String(e),w8=(e,t)=>t&&t.__v_isRef?w8(e,t.value):ty(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[i,o])=>(n[`${i} =>`]=o,n),{})}:ZS(t)?{[`Set(${t.size})`]:[...t.values()]}:zi(t)&&!jt(t)&&!D8(t)?String(t):t,fo={},ey=[],ya=()=>{},Rte=()=>!1,Nte=/^on[^a-z]/,QS=e=>Nte.test(e),yR=e=>e.startsWith("onUpdate:"),As=Object.assign,AR=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Mte=Object.prototype.hasOwnProperty,ii=(e,t)=>Mte.call(e,t),jt=Array.isArray,ty=e=>ET(e)==="[object Map]",ZS=e=>ET(e)==="[object Set]",QF=e=>ET(e)==="[object Date]",bn=e=>typeof e=="function",qi=e=>typeof e=="string",wC=e=>typeof e=="symbol",zi=e=>e!==null&&typeof e=="object",S8=e=>zi(e)&&bn(e.then)&&bn(e.catch),v8=Object.prototype.toString,ET=e=>v8.call(e),Fte=e=>ET(e).slice(8,-1),D8=e=>ET(e)==="[object Object]",CR=e=>qi(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,kx=gR(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ev=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zte=/-(\w)/g,Wl=ev(e=>e.replace(zte,(t,n)=>n?n.toUpperCase():"")),Ute=/\B([A-Z])/g,Ky=ev(e=>e.replace(Ute,"-$1").toLowerCase()),tv=ev(e=>e.charAt(0).toUpperCase()+e.slice(1)),jD=ev(e=>e?`on${tv(e)}`:""),SC=(e,t)=>!Object.is(e,t),Gx=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},TR=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ZF;const Hte=()=>ZF||(ZF=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let ka;class I8{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=ka,!t&&ka&&(this.index=(ka.scopes||(ka.scopes=[])).push(this)-1)}run(t){if(this.active){const n=ka;try{return ka=this,t()}finally{ka=n}}}on(){ka=this}off(){ka=this.parent}stop(t){if(this.active){let n,i;for(n=0,i=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},O8=e=>(e.w&ep)>0,L8=e=>(e.n&ep)>0,Wte=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let i=0;i{(f==="length"||f>=c)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":jt(e)?CR(n)&&a.push(s.get("length")):(a.push(s.get(Rm)),ty(e)&&a.push(s.get(H1)));break;case"delete":jt(e)||(a.push(s.get(Rm)),ty(e)&&a.push(s.get(H1)));break;case"set":ty(e)&&a.push(s.get(Rm));break}if(a.length===1)a[0]&&V1(a[0]);else{const c=[];for(const u of a)u&&c.push(...u);V1(bR(c))}}function V1(e,t){const n=jt(e)?e:[...e];for(const i of n)i.computed&&t2(i);for(const i of n)i.computed||t2(i)}function t2(e,t){(e!==Il||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const qte=gR("__proto__,__v_isRef,__isVue"),N8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(wC)),Yte=xR(),$te=xR(!1,!0),Xte=xR(!0),n2=Kte();function Kte(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const i=mi(this);for(let r=0,s=this.length;r{e[t]=function(...n){Jy();const i=mi(this)[t].apply(this,n);return Qy(),i}}),e}function xR(e=!1,t=!1){return function(i,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?dne:H8:t?U8:z8).get(i))return i;const s=jt(i);if(!e&&s&&ii(n2,o))return Reflect.get(n2,o,r);const a=Reflect.get(i,o,r);return(wC(o)?N8.has(o):qte(o))||(e||sc(i,"get",o),t)?a:Vo(a)?s&&CR(o)?a:a.value:zi(a)?e?k8(a):xT(a):a}}const Jte=M8(),Qte=M8(!0);function M8(e=!1){return function(n,i,o,r){let s=n[i];if(xy(s)&&Vo(s)&&!Vo(o))return!1;if(!e&&(!Uw(o)&&!xy(o)&&(s=mi(s),o=mi(o)),!jt(n)&&Vo(s)&&!Vo(o)))return s.value=o,!0;const a=jt(n)&&CR(i)?Number(i)e,nv=e=>Reflect.getPrototypeOf(e);function xb(e,t,n=!1,i=!1){e=e.__v_raw;const o=mi(e),r=mi(t);n||(t!==r&&sc(o,"get",t),sc(o,"get",r));const{has:s}=nv(o),a=i?wR:n?IR:vC;if(s.call(o,t))return a(e.get(t));if(s.call(o,r))return a(e.get(r));e!==o&&e.get(t)}function wb(e,t=!1){const n=this.__v_raw,i=mi(n),o=mi(e);return t||(e!==o&&sc(i,"has",e),sc(i,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Sb(e,t=!1){return e=e.__v_raw,!t&&sc(mi(e),"iterate",Rm),Reflect.get(e,"size",e)}function i2(e){e=mi(e);const t=mi(this);return nv(t).has.call(t,e)||(t.add(e),ld(t,"add",e,e)),this}function o2(e,t){t=mi(t);const n=mi(this),{has:i,get:o}=nv(n);let r=i.call(n,e);r||(e=mi(e),r=i.call(n,e));const s=o.call(n,e);return n.set(e,t),r?SC(t,s)&&ld(n,"set",e,t):ld(n,"add",e,t),this}function r2(e){const t=mi(this),{has:n,get:i}=nv(t);let o=n.call(t,e);o||(e=mi(e),o=n.call(t,e)),i&&i.call(t,e);const r=t.delete(e);return o&&ld(t,"delete",e,void 0),r}function s2(){const e=mi(this),t=e.size!==0,n=e.clear();return t&&ld(e,"clear",void 0,void 0),n}function vb(e,t){return function(i,o){const r=this,s=r.__v_raw,a=mi(s),c=t?wR:e?IR:vC;return!e&&sc(a,"iterate",Rm),s.forEach((u,f)=>i.call(o,c(u),c(f),r))}}function Db(e,t,n){return function(...i){const o=this.__v_raw,r=mi(o),s=ty(r),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...i),f=n?wR:t?IR:vC;return!t&&sc(r,"iterate",c?H1:Rm),{next(){const{value:h,done:_}=u.next();return _?{value:h,done:_}:{value:a?[f(h[0]),f(h[1])]:f(h),done:_}},[Symbol.iterator](){return this}}}}function qd(e){return function(...t){return e==="delete"?!1:this}}function one(){const e={get(r){return xb(this,r)},get size(){return Sb(this)},has:wb,add:i2,set:o2,delete:r2,clear:s2,forEach:vb(!1,!1)},t={get(r){return xb(this,r,!1,!0)},get size(){return Sb(this)},has:wb,add:i2,set:o2,delete:r2,clear:s2,forEach:vb(!1,!0)},n={get(r){return xb(this,r,!0)},get size(){return Sb(this,!0)},has(r){return wb.call(this,r,!0)},add:qd("add"),set:qd("set"),delete:qd("delete"),clear:qd("clear"),forEach:vb(!0,!1)},i={get(r){return xb(this,r,!0,!0)},get size(){return Sb(this,!0)},has(r){return wb.call(this,r,!0)},add:qd("add"),set:qd("set"),delete:qd("delete"),clear:qd("clear"),forEach:vb(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=Db(r,!1,!1),n[r]=Db(r,!0,!1),t[r]=Db(r,!1,!0),i[r]=Db(r,!0,!0)}),[e,n,t,i]}const[rne,sne,ane,cne]=one();function SR(e,t){const n=t?e?cne:ane:e?sne:rne;return(i,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?i:Reflect.get(ii(n,o)&&o in i?n:i,o,r)}const lne={get:SR(!1,!1)},une={get:SR(!1,!0)},fne={get:SR(!0,!1)},z8=new WeakMap,U8=new WeakMap,H8=new WeakMap,dne=new WeakMap;function hne(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pne(e){return e.__v_skip||!Object.isExtensible(e)?0:hne(Fte(e))}function xT(e){return xy(e)?e:vR(e,!1,F8,lne,z8)}function V8(e){return vR(e,!1,ine,une,U8)}function k8(e){return vR(e,!0,nne,fne,H8)}function vR(e,t,n,i,o){if(!zi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const s=pne(e);if(s===0)return e;const a=new Proxy(e,s===2?i:n);return o.set(e,a),a}function ny(e){return xy(e)?ny(e.__v_raw):!!(e&&e.__v_isReactive)}function xy(e){return!!(e&&e.__v_isReadonly)}function Uw(e){return!!(e&&e.__v_isShallow)}function G8(e){return ny(e)||xy(e)}function mi(e){const t=e&&e.__v_raw;return t?mi(t):e}function DR(e){return zw(e,"__v_skip",!0),e}const vC=e=>zi(e)?xT(e):e,IR=e=>zi(e)?k8(e):e;function W8(e){zh&&Il&&(e=mi(e),R8(e.dep||(e.dep=bR())))}function j8(e,t){e=mi(e),e.dep&&V1(e.dep)}function Vo(e){return!!(e&&e.__v_isRef===!0)}function Gi(e){return q8(e,!1)}function mne(e){return q8(e,!0)}function q8(e,t){return Vo(e)?e:new _ne(e,t)}class _ne{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:mi(t),this._value=n?t:vC(t)}get value(){return W8(this),this._value}set value(t){const n=this.__v_isShallow||Uw(t)||xy(t);t=n?t:mi(t),SC(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:vC(t),j8(this))}}function ct(e){return Vo(e)?e.value:e}const gne={get:(e,t,n)=>ct(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return Vo(o)&&!Vo(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function Y8(e){return ny(e)?e:new Proxy(e,gne)}function yne(e){const t=jt(e)?new Array(e.length):{};for(const n in e)t[n]=$8(e,n);return t}class Ane{constructor(t,n,i){this._object=t,this._key=n,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function $8(e,t,n){const i=e[t];return Vo(i)?i:new Ane(e,t,n)}var X8;class Cne{constructor(t,n,i,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[X8]=!1,this._dirty=!0,this.effect=new ER(t,()=>{this._dirty||(this._dirty=!0,j8(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=i}get value(){const t=mi(this);return W8(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}X8="__v_isReadonly";function K8(e,t,n=!1){let i,o;const r=bn(e);return r?(i=e,o=ya):(i=e.get,o=e.set),new Cne(i,o,r||!o,n)}function Tne(e,...t){}function Uh(e,t,n,i){let o;try{o=i?e(...i):e()}catch(r){iv(r,t,n)}return o}function Yc(e,t,n,i){if(bn(e)){const r=Uh(e,t,n,i);return r&&S8(r)&&r.catch(s=>{iv(s,t,n)}),r}const o=[];for(let r=0;r>>1;IC(Us[i])Ou&&Us.splice(t,1)}function wne(e){jt(e)?iy.push(...e):(!Bf||!Bf.includes(e,e.allowRecurse?ym+1:ym))&&iy.push(e),Q8()}function a2(e,t=DC?Ou+1:0){for(;tIC(n)-IC(i)),ym=0;yme.id==null?1/0:e.id,Sne=(e,t)=>{const n=IC(e)-IC(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function e6(e){k1=!1,DC=!0,Us.sort(Sne);const t=ya;try{for(Ou=0;Ouqi(g)?g.trim():g)),h&&(o=n.map(TR))}let a,c=i[a=jD(t)]||i[a=jD(Wl(t))];!c&&r&&(c=i[a=jD(Ky(t))]),c&&Yc(c,e,6,o);const u=i[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Yc(u,e,6,o)}}function t6(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!bn(e)){const c=u=>{const f=t6(u,t,!0);f&&(a=!0,As(s,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!a?(zi(e)&&i.set(e,null),null):(jt(r)?r.forEach(c=>s[c]=null):As(s,r),zi(e)&&i.set(e,s),s)}function ov(e,t){return!e||!QS(t)?!1:(t=t.slice(2).replace(/Once$/,""),ii(e,t[0].toLowerCase()+t.slice(1))||ii(e,Ky(t))||ii(e,t))}let ys=null,n6=null;function Hw(e){const t=ys;return ys=e,n6=e&&e.type.__scopeId||null,t}function Ws(e,t=ys,n){if(!t||e._n)return e;const i=(...o)=>{i._d&&y2(-1);const r=Hw(t);let s;try{s=e(...o)}finally{Hw(r),i._d&&y2(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function qD(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:r,propsOptions:[s],slots:a,attrs:c,emit:u,render:f,renderCache:h,data:_,setupState:g,ctx:p,inheritAttrs:y}=e;let C,T;const E=Hw(e);try{if(n.shapeFlag&4){const S=o||i;C=Su(f.call(S,S,h,r,g,_,p)),T=c}else{const S=t;C=Su(S.length>1?S(r,{attrs:c,slots:a,emit:u}):S(r,null)),T=t.props?c:Dne(c)}}catch(S){eC.length=0,iv(S,e,1),C=_o($c)}let w=C;if(T&&y!==!1){const S=Object.keys(T),{shapeFlag:P}=w;S.length&&P&7&&(s&&S.some(yR)&&(T=Ine(T,s)),w=np(w,T))}return n.dirs&&(w=np(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),C=w,Hw(E),C}const Dne=e=>{let t;for(const n in e)(n==="class"||n==="style"||QS(n))&&((t||(t={}))[n]=e[n]);return t},Ine=(e,t)=>{const n={};for(const i in e)(!yR(i)||!(i.slice(9)in t))&&(n[i]=e[i]);return n};function Pne(e,t,n){const{props:i,children:o,component:r}=e,{props:s,children:a,patchFlag:c}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return i?c2(i,s,u):!!s;if(c&8){const f=t.dynamicProps;for(let h=0;he.__isSuspense;function Bne(e,t){t&&t.pendingBranch?jt(e)?t.effects.push(...e):t.effects.push(e):wne(e)}function Hh(e,t){if(Zr){let n=Zr.provides;const i=Zr.parent&&Zr.parent.provides;i===n&&(n=Zr.provides=Object.create(i)),n[e]=t}}function ar(e,t,n=!1){const i=Zr||ys;if(i){const o=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&bn(t)?t.call(i.proxy):t}}const Ib={};function Nr(e,t,n){return i6(e,t,n)}function i6(e,t,{immediate:n,deep:i,flush:o,onTrack:r,onTrigger:s}=fo){const a=Zr;let c,u=!1,f=!1;if(Vo(e)?(c=()=>e.value,u=Uw(e)):ny(e)?(c=()=>e,i=!0):jt(e)?(f=!0,u=e.some(w=>ny(w)||Uw(w)),c=()=>e.map(w=>{if(Vo(w))return w.value;if(ny(w))return vm(w);if(bn(w))return Uh(w,a,2)})):bn(e)?t?c=()=>Uh(e,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),Yc(e,a,3,[_])}:c=ya,t&&i){const w=c;c=()=>vm(w())}let h,_=w=>{h=T.onStop=()=>{Uh(w,a,4)}},g;if(LC)if(_=ya,t?n&&Yc(t,a,3,[c(),f?[]:void 0,_]):c(),o==="sync"){const w=vie();g=w.__watcherHandles||(w.__watcherHandles=[])}else return ya;let p=f?new Array(e.length).fill(Ib):Ib;const y=()=>{if(T.active)if(t){const w=T.run();(i||u||(f?w.some((S,P)=>SC(S,p[P])):SC(w,p)))&&(h&&h(),Yc(t,a,3,[w,p===Ib?void 0:f&&p[0]===Ib?[]:p,_]),p=w)}else T.run()};y.allowRecurse=!!t;let C;o==="sync"?C=y:o==="post"?C=()=>Ba(y,a&&a.suspense):(y.pre=!0,a&&(y.id=a.uid),C=()=>OR(y));const T=new ER(c,C);t?n?y():p=T.run():o==="post"?Ba(T.run.bind(T),a&&a.suspense):T.run();const E=()=>{T.stop(),a&&a.scope&&AR(a.scope.effects,T)};return g&&g.push(E),E}function Rne(e,t,n){const i=this.proxy,o=qi(e)?e.includes(".")?o6(i,e):()=>i[e]:e.bind(i,i);let r;bn(t)?r=t:(r=t.handler,n=t);const s=Zr;Sy(this);const a=i6(o,r.bind(i),n);return s?Sy(s):Nm(),a}function o6(e,t){const n=t.split(".");return()=>{let i=e;for(let o=0;o{vm(n,t)});else if(D8(e))for(const n in e)vm(e[n],t);return e}function Nne(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ef(()=>{e.isMounted=!0}),wT(()=>{e.isUnmounting=!0}),e}const bc=[Function,Array],Mne={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:bc,onEnter:bc,onAfterEnter:bc,onEnterCancelled:bc,onBeforeLeave:bc,onLeave:bc,onAfterLeave:bc,onLeaveCancelled:bc,onBeforeAppear:bc,onAppear:bc,onAfterAppear:bc,onAppearCancelled:bc},setup(e,{slots:t}){const n=tf(),i=Nne();let o;return()=>{const r=t.default&&a6(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const y of r)if(y.type!==$c){s=y;break}}const a=mi(e),{mode:c}=a;if(i.isLeaving)return YD(s);const u=l2(s);if(!u)return YD(s);const f=G1(u,a,i,n);W1(u,f);const h=n.subTree,_=h&&l2(h);let g=!1;const{getTransitionKey:p}=u.type;if(p){const y=p();o===void 0?o=y:y!==o&&(o=y,g=!0)}if(_&&_.type!==$c&&(!Am(u,_)||g)){const y=G1(_,a,i,n);if(W1(_,y),c==="out-in")return i.isLeaving=!0,y.afterLeave=()=>{i.isLeaving=!1,n.update.active!==!1&&n.update()},YD(s);c==="in-out"&&u.type!==$c&&(y.delayLeave=(C,T,E)=>{const w=s6(i,_);w[String(_.key)]=_,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=E})}return s}}},r6=Mne;function s6(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function G1(e,t,n,i){const{appear:o,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:_,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:y,onAppear:C,onAfterAppear:T,onAppearCancelled:E}=t,w=String(e.key),S=s6(n,e),P=(R,F)=>{R&&Yc(R,i,9,F)},O=(R,F)=>{const H=F[1];P(R,F),jt(R)?R.every(v=>v.length<=1)&&H():R.length<=1&&H()},z={mode:r,persisted:s,beforeEnter(R){let F=a;if(!n.isMounted)if(o)F=y||a;else return;R._leaveCb&&R._leaveCb(!0);const H=S[w];H&&Am(e,H)&&H.el._leaveCb&&H.el._leaveCb(),P(F,[R])},enter(R){let F=c,H=u,v=f;if(!n.isMounted)if(o)F=C||c,H=T||u,v=E||f;else return;let I=!1;const m=R._enterCb=D=>{I||(I=!0,D?P(v,[R]):P(H,[R]),z.delayedLeave&&z.delayedLeave(),R._enterCb=void 0)};F?O(F,[R,m]):m()},leave(R,F){const H=String(e.key);if(R._enterCb&&R._enterCb(!0),n.isUnmounting)return F();P(h,[R]);let v=!1;const I=R._leaveCb=m=>{v||(v=!0,F(),m?P(p,[R]):P(g,[R]),R._leaveCb=void 0,S[H]===e&&delete S[H])};S[H]=e,_?O(_,[R,I]):I()},clone(R){return G1(R,t,n,i)}};return z}function YD(e){if(rv(e))return e=np(e),e.children=null,e}function l2(e){return rv(e)?e.children?e.children[0]:void 0:e}function W1(e,t){e.shapeFlag&6&&e.component?W1(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function a6(e,t=!1,n){let i=[],o=0;for(let r=0;r1)for(let r=0;r!!e.type.__asyncLoader,rv=e=>e.type.__isKeepAlive;function Fne(e,t){c6(e,"a",t)}function zne(e,t){c6(e,"da",t)}function c6(e,t,n=Zr){const i=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(sv(t,i,n),n){let o=n.parent;for(;o&&o.parent;)rv(o.parent.vnode)&&Une(i,t,n,o),o=o.parent}}function Une(e,t,n,i){const o=sv(t,e,i,!0);LR(()=>{AR(i[t],o)},n)}function sv(e,t,n=Zr,i=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Jy(),Sy(n);const a=Yc(t,n,e,s);return Nm(),Qy(),a});return i?o.unshift(r):o.push(r),r}}const Td=e=>(t,n=Zr)=>(!LC||e==="sp")&&sv(e,(...i)=>t(...i),n),Hne=Td("bm"),ef=Td("m"),Vne=Td("bu"),kne=Td("u"),wT=Td("bum"),LR=Td("um"),Gne=Td("sp"),Wne=Td("rtg"),jne=Td("rtc");function qne(e,t=Zr){sv("ec",e,t)}function Ym(e,t){const n=ys;if(n===null)return e;const i=uv(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let r=0;rt(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);o=new Array(s.length);for(let a=0,c=s.length;awy(t)?!(t.type===$c||t.type===ms&&!f6(t.children)):!0)?e:null}const j1=e=>e?b6(e)?uv(e)||e.proxy:j1(e.parent):null,QA=As(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>j1(e.parent),$root:e=>j1(e.root),$emit:e=>e.emit,$options:e=>RR(e),$forceUpdate:e=>e.f||(e.f=()=>OR(e.update)),$nextTick:e=>e.n||(e.n=tp.bind(e.proxy)),$watch:e=>Rne.bind(e)}),$D=(e,t)=>e!==fo&&!e.__isScriptSetup&&ii(e,t),$ne={get({_:e},t){const{ctx:n,setupState:i,data:o,props:r,accessCache:s,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return i[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if($D(i,t))return s[t]=1,i[t];if(o!==fo&&ii(o,t))return s[t]=2,o[t];if((u=e.propsOptions[0])&&ii(u,t))return s[t]=3,r[t];if(n!==fo&&ii(n,t))return s[t]=4,n[t];q1&&(s[t]=0)}}const f=QA[t];let h,_;if(f)return t==="$attrs"&&sc(e,"get",t),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==fo&&ii(n,t))return s[t]=4,n[t];if(_=c.config.globalProperties,ii(_,t))return _[t]},set({_:e},t,n){const{data:i,setupState:o,ctx:r}=e;return $D(o,t)?(o[t]=n,!0):i!==fo&&ii(i,t)?(i[t]=n,!0):ii(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:o,propsOptions:r}},s){let a;return!!n[s]||e!==fo&&ii(e,s)||$D(t,s)||(a=r[0])&&ii(a,s)||ii(i,s)||ii(QA,s)||ii(o.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ii(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let q1=!0;function Xne(e){const t=RR(e),n=e.proxy,i=e.ctx;q1=!1,t.beforeCreate&&f2(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:c,inject:u,created:f,beforeMount:h,mounted:_,beforeUpdate:g,updated:p,activated:y,deactivated:C,beforeDestroy:T,beforeUnmount:E,destroyed:w,unmounted:S,render:P,renderTracked:O,renderTriggered:z,errorCaptured:R,serverPrefetch:F,expose:H,inheritAttrs:v,components:I,directives:m,filters:D}=t;if(u&&Kne(u,i,null,e.appContext.config.unwrapInjectedRef),s)for(const V in s){const k=s[V];bn(k)&&(i[V]=k.bind(n))}if(o){const V=o.call(n,n);zi(V)&&(e.data=xT(V))}if(q1=!0,r)for(const V in r){const k=r[V],W=bn(k)?k.bind(n,n):bn(k.get)?k.get.bind(n,n):ya,G=!bn(k)&&bn(k.set)?k.set.bind(n):ya,K=Kt({get:W,set:G});Object.defineProperty(i,V,{enumerable:!0,configurable:!0,get:()=>K.value,set:q=>K.value=q})}if(a)for(const V in a)d6(a[V],i,n,V);if(c){const V=bn(c)?c.call(n):c;Reflect.ownKeys(V).forEach(k=>{Hh(k,V[k])})}f&&f2(f,e,"c");function M(V,k){jt(k)?k.forEach(W=>V(W.bind(n))):k&&V(k.bind(n))}if(M(Hne,h),M(ef,_),M(Vne,g),M(kne,p),M(Fne,y),M(zne,C),M(qne,R),M(jne,O),M(Wne,z),M(wT,E),M(LR,S),M(Gne,F),jt(H))if(H.length){const V=e.exposed||(e.exposed={});H.forEach(k=>{Object.defineProperty(V,k,{get:()=>n[k],set:W=>n[k]=W})})}else e.exposed||(e.exposed={});P&&e.render===ya&&(e.render=P),v!=null&&(e.inheritAttrs=v),I&&(e.components=I),m&&(e.directives=m)}function Kne(e,t,n=ya,i=!1){jt(e)&&(e=Y1(e));for(const o in e){const r=e[o];let s;zi(r)?"default"in r?s=ar(r.from||o,r.default,!0):s=ar(r.from||o):s=ar(r),Vo(s)&&i?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[o]=s}}function f2(e,t,n){Yc(jt(e)?e.map(i=>i.bind(t.proxy)):e.bind(t.proxy),t,n)}function d6(e,t,n,i){const o=i.includes(".")?o6(n,i):()=>n[i];if(qi(e)){const r=t[e];bn(r)&&Nr(o,r)}else if(bn(e))Nr(o,e.bind(n));else if(zi(e))if(jt(e))e.forEach(r=>d6(r,t,n,i));else{const r=bn(e.handler)?e.handler.bind(n):t[e.handler];bn(r)&&Nr(o,r,e)}}function RR(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let c;return a?c=a:!o.length&&!n&&!i?c=t:(c={},o.length&&o.forEach(u=>Vw(c,u,s,!0)),Vw(c,t,s)),zi(t)&&r.set(t,c),c}function Vw(e,t,n,i=!1){const{mixins:o,extends:r}=t;r&&Vw(e,r,n,!0),o&&o.forEach(s=>Vw(e,s,n,!0));for(const s in t)if(!(i&&s==="expose")){const a=Jne[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Jne={data:d2,props:pm,emits:pm,methods:pm,computed:pm,beforeCreate:ua,created:ua,beforeMount:ua,mounted:ua,beforeUpdate:ua,updated:ua,beforeDestroy:ua,beforeUnmount:ua,destroyed:ua,unmounted:ua,activated:ua,deactivated:ua,errorCaptured:ua,serverPrefetch:ua,components:pm,directives:pm,watch:Zne,provide:d2,inject:Qne};function d2(e,t){return t?e?function(){return As(bn(e)?e.call(this,this):e,bn(t)?t.call(this,this):t)}:t:e}function Qne(e,t){return pm(Y1(e),Y1(t))}function Y1(e){if(jt(e)){const t={};for(let n=0;n0)&&!(s&16)){if(s&8){const f=e.vnode.dynamicProps;for(let h=0;h{c=!0;const[_,g]=p6(h,t,!0);As(s,_),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!c)return zi(e)&&i.set(e,ey),ey;if(jt(r))for(let f=0;f-1,g[1]=y<0||p-1||ii(g,"default"))&&a.push(h)}}}const u=[s,a];return zi(e)&&i.set(e,u),u}function h2(e){return e[0]!=="$"}function p2(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function m2(e,t){return p2(e)===p2(t)}function _2(e,t){return jt(t)?t.findIndex(n=>m2(n,e)):bn(t)&&m2(t,e)?0:-1}const m6=e=>e[0]==="_"||e==="$stable",NR=e=>jt(e)?e.map(Su):[Su(e)],nie=(e,t,n)=>{if(t._n)return t;const i=Ws((...o)=>NR(t(...o)),n);return i._c=!1,i},_6=(e,t,n)=>{const i=e._ctx;for(const o in e){if(m6(o))continue;const r=e[o];if(bn(r))t[o]=nie(o,r,i);else if(r!=null){const s=NR(r);t[o]=()=>s}}},g6=(e,t)=>{const n=NR(t);e.slots.default=()=>n},iie=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=mi(t),zw(t,"_",n)):_6(t,e.slots={})}else e.slots={},t&&g6(e,t);zw(e.slots,lv,1)},oie=(e,t,n)=>{const{vnode:i,slots:o}=e;let r=!0,s=fo;if(i.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(As(o,t),!n&&a===1&&delete o._):(r=!t.$stable,_6(t,o)),s=t}else t&&(g6(e,t),s={default:1});if(r)for(const a in o)!m6(a)&&!(a in s)&&delete o[a]};function y6(){return{app:null,config:{isNativeTag:Rte,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let rie=0;function sie(e,t){return function(i,o=null){bn(i)||(i=Object.assign({},i)),o!=null&&!zi(o)&&(o=null);const r=y6(),s=new Set;let a=!1;const c=r.app={_uid:rie++,_component:i,_props:o,_container:null,_context:r,_instance:null,version:Die,get config(){return r.config},set config(u){},use(u,...f){return s.has(u)||(u&&bn(u.install)?(s.add(u),u.install(c,...f)):bn(u)&&(s.add(u),u(c,...f))),c},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),c},component(u,f){return f?(r.components[u]=f,c):r.components[u]},directive(u,f){return f?(r.directives[u]=f,c):r.directives[u]},mount(u,f,h){if(!a){const _=_o(i,o);return _.appContext=r,f&&t?t(_,u):e(_,u,h),a=!0,c._container=u,u.__vue_app__=c,uv(_.component)||_.component.proxy}},unmount(){a&&(e(null,c._container),delete c._container.__vue_app__)},provide(u,f){return r.provides[u]=f,c}};return c}}function X1(e,t,n,i,o=!1){if(jt(e)){e.forEach((_,g)=>X1(_,t&&(jt(t)?t[g]:t),n,i,o));return}if(JA(i)&&!o)return;const r=i.shapeFlag&4?uv(i.component)||i.component.proxy:i.el,s=o?null:r,{i:a,r:c}=e,u=t&&t.r,f=a.refs===fo?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==c&&(qi(u)?(f[u]=null,ii(h,u)&&(h[u]=null)):Vo(u)&&(u.value=null)),bn(c))Uh(c,a,12,[s,f]);else{const _=qi(c),g=Vo(c);if(_||g){const p=()=>{if(e.f){const y=_?ii(h,c)?h[c]:f[c]:c.value;o?jt(y)&&AR(y,r):jt(y)?y.includes(r)||y.push(r):_?(f[c]=[r],ii(h,c)&&(h[c]=f[c])):(c.value=[r],e.k&&(f[e.k]=c.value))}else _?(f[c]=s,ii(h,c)&&(h[c]=s)):g&&(c.value=s,e.k&&(f[e.k]=s))};s?(p.id=-1,Ba(p,n)):p()}}}const Ba=Bne;function aie(e){return cie(e)}function cie(e,t){const n=Hte();n.__VUE__=!0;const{insert:i,remove:o,patchProp:r,createElement:s,createText:a,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:_,setScopeId:g=ya,insertStaticContent:p}=e,y=(Q,ie,de,me=null,Ee=null,xe=null,Pe=!1,Te=null,Oe=!!ie.dynamicChildren)=>{if(Q===ie)return;Q&&!Am(Q,ie)&&(me=ae(Q),q(Q,Ee,xe,!0),Q=null),ie.patchFlag===-2&&(Oe=!1,ie.dynamicChildren=null);const{type:De,ref:Me,shapeFlag:ve}=ie;switch(De){case cv:C(Q,ie,de,me);break;case $c:T(Q,ie,de,me);break;case XD:Q==null&&E(ie,de,me,Pe);break;case ms:I(Q,ie,de,me,Ee,xe,Pe,Te,Oe);break;default:ve&1?P(Q,ie,de,me,Ee,xe,Pe,Te,Oe):ve&6?m(Q,ie,de,me,Ee,xe,Pe,Te,Oe):(ve&64||ve&128)&&De.process(Q,ie,de,me,Ee,xe,Pe,Te,Oe,re)}Me!=null&&Ee&&X1(Me,Q&&Q.ref,xe,ie||Q,!ie)},C=(Q,ie,de,me)=>{if(Q==null)i(ie.el=a(ie.children),de,me);else{const Ee=ie.el=Q.el;ie.children!==Q.children&&u(Ee,ie.children)}},T=(Q,ie,de,me)=>{Q==null?i(ie.el=c(ie.children||""),de,me):ie.el=Q.el},E=(Q,ie,de,me)=>{[Q.el,Q.anchor]=p(Q.children,ie,de,me,Q.el,Q.anchor)},w=({el:Q,anchor:ie},de,me)=>{let Ee;for(;Q&&Q!==ie;)Ee=_(Q),i(Q,de,me),Q=Ee;i(ie,de,me)},S=({el:Q,anchor:ie})=>{let de;for(;Q&&Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},P=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Pe=Pe||ie.type==="svg",Q==null?O(ie,de,me,Ee,xe,Pe,Te,Oe):F(Q,ie,Ee,xe,Pe,Te,Oe)},O=(Q,ie,de,me,Ee,xe,Pe,Te)=>{let Oe,De;const{type:Me,props:ve,shapeFlag:Ie,transition:Ve,dirs:Le}=Q;if(Oe=Q.el=s(Q.type,xe,ve&&ve.is,ve),Ie&8?f(Oe,Q.children):Ie&16&&R(Q.children,Oe,null,me,Ee,xe&&Me!=="foreignObject",Pe,Te),Le&&zp(Q,null,me,"created"),ve){for(const Tt in ve)Tt!=="value"&&!kx(Tt)&&r(Oe,Tt,null,ve[Tt],xe,Q.children,me,Ee,Y);"value"in ve&&r(Oe,"value",null,ve.value),(De=ve.onVnodeBeforeMount)&&gu(De,me,Q)}z(Oe,Q,Q.scopeId,Pe,me),Le&&zp(Q,null,me,"beforeMount");const _t=(!Ee||Ee&&!Ee.pendingBranch)&&Ve&&!Ve.persisted;_t&&Ve.beforeEnter(Oe),i(Oe,ie,de),((De=ve&&ve.onVnodeMounted)||_t||Le)&&Ba(()=>{De&&gu(De,me,Q),_t&&Ve.enter(Oe),Le&&zp(Q,null,me,"mounted")},Ee)},z=(Q,ie,de,me,Ee)=>{if(de&&g(Q,de),me)for(let xe=0;xe{for(let De=Oe;De{const Te=ie.el=Q.el;let{patchFlag:Oe,dynamicChildren:De,dirs:Me}=ie;Oe|=Q.patchFlag&16;const ve=Q.props||fo,Ie=ie.props||fo;let Ve;de&&Up(de,!1),(Ve=Ie.onVnodeBeforeUpdate)&&gu(Ve,de,ie,Q),Me&&zp(ie,Q,de,"beforeUpdate"),de&&Up(de,!0);const Le=Ee&&ie.type!=="foreignObject";if(De?H(Q.dynamicChildren,De,Te,de,me,Le,xe):Pe||k(Q,ie,Te,null,de,me,Le,xe,!1),Oe>0){if(Oe&16)v(Te,ie,ve,Ie,de,me,Ee);else if(Oe&2&&ve.class!==Ie.class&&r(Te,"class",null,Ie.class,Ee),Oe&4&&r(Te,"style",ve.style,Ie.style,Ee),Oe&8){const _t=ie.dynamicProps;for(let Tt=0;Tt<_t.length;Tt++){const Ot=_t[Tt],Tn=ve[Ot],Sn=Ie[Ot];(Sn!==Tn||Ot==="value")&&r(Te,Ot,Tn,Sn,Ee,Q.children,de,me,Y)}}Oe&1&&Q.children!==ie.children&&f(Te,ie.children)}else!Pe&&De==null&&v(Te,ie,ve,Ie,de,me,Ee);((Ve=Ie.onVnodeUpdated)||Me)&&Ba(()=>{Ve&&gu(Ve,de,ie,Q),Me&&zp(ie,Q,de,"updated")},me)},H=(Q,ie,de,me,Ee,xe,Pe)=>{for(let Te=0;Te{if(de!==me){if(de!==fo)for(const Te in de)!kx(Te)&&!(Te in me)&&r(Q,Te,de[Te],null,Pe,ie.children,Ee,xe,Y);for(const Te in me){if(kx(Te))continue;const Oe=me[Te],De=de[Te];Oe!==De&&Te!=="value"&&r(Q,Te,De,Oe,Pe,ie.children,Ee,xe,Y)}"value"in me&&r(Q,"value",de.value,me.value)}},I=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{const De=ie.el=Q?Q.el:a(""),Me=ie.anchor=Q?Q.anchor:a("");let{patchFlag:ve,dynamicChildren:Ie,slotScopeIds:Ve}=ie;Ve&&(Te=Te?Te.concat(Ve):Ve),Q==null?(i(De,de,me),i(Me,de,me),R(ie.children,de,Me,Ee,xe,Pe,Te,Oe)):ve>0&&ve&64&&Ie&&Q.dynamicChildren?(H(Q.dynamicChildren,Ie,de,Ee,xe,Pe,Te),(ie.key!=null||Ee&&ie===Ee.subTree)&&MR(Q,ie,!0)):k(Q,ie,de,Me,Ee,xe,Pe,Te,Oe)},m=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{ie.slotScopeIds=Te,Q==null?ie.shapeFlag&512?Ee.ctx.activate(ie,de,me,Pe,Oe):D(ie,de,me,Ee,xe,Pe,Oe):L(Q,ie,Oe)},D=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=Q.component=Aie(Q,me,Ee);if(rv(Q)&&(Te.ctx.renderer=re),Cie(Te),Te.asyncDep){if(Ee&&Ee.registerDep(Te,M),!Q.el){const Oe=Te.subTree=_o($c);T(null,Oe,ie,de)}return}M(Te,Q,ie,de,Ee,xe,Pe)},L=(Q,ie,de)=>{const me=ie.component=Q.component;if(Pne(Q,ie,de))if(me.asyncDep&&!me.asyncResolved){V(me,ie,de);return}else me.next=ie,xne(me.update),me.update();else ie.el=Q.el,me.vnode=ie},M=(Q,ie,de,me,Ee,xe,Pe)=>{const Te=()=>{if(Q.isMounted){let{next:Me,bu:ve,u:Ie,parent:Ve,vnode:Le}=Q,_t=Me,Tt;Up(Q,!1),Me?(Me.el=Le.el,V(Q,Me,Pe)):Me=Le,ve&&Gx(ve),(Tt=Me.props&&Me.props.onVnodeBeforeUpdate)&&gu(Tt,Ve,Me,Le),Up(Q,!0);const Ot=qD(Q),Tn=Q.subTree;Q.subTree=Ot,y(Tn,Ot,h(Tn.el),ae(Tn),Q,Ee,xe),Me.el=Ot.el,_t===null&&One(Q,Ot.el),Ie&&Ba(Ie,Ee),(Tt=Me.props&&Me.props.onVnodeUpdated)&&Ba(()=>gu(Tt,Ve,Me,Le),Ee)}else{let Me;const{el:ve,props:Ie}=ie,{bm:Ve,m:Le,parent:_t}=Q,Tt=JA(ie);if(Up(Q,!1),Ve&&Gx(Ve),!Tt&&(Me=Ie&&Ie.onVnodeBeforeMount)&&gu(Me,_t,ie),Up(Q,!0),ve&&ce){const Ot=()=>{Q.subTree=qD(Q),ce(ve,Q.subTree,Q,Ee,null)};Tt?ie.type.__asyncLoader().then(()=>!Q.isUnmounted&&Ot()):Ot()}else{const Ot=Q.subTree=qD(Q);y(null,Ot,de,me,Q,Ee,xe),ie.el=Ot.el}if(Le&&Ba(Le,Ee),!Tt&&(Me=Ie&&Ie.onVnodeMounted)){const Ot=ie;Ba(()=>gu(Me,_t,Ot),Ee)}(ie.shapeFlag&256||_t&&JA(_t.vnode)&&_t.vnode.shapeFlag&256)&&Q.a&&Ba(Q.a,Ee),Q.isMounted=!0,ie=de=me=null}},Oe=Q.effect=new ER(Te,()=>OR(De),Q.scope),De=Q.update=()=>Oe.run();De.id=Q.uid,Up(Q,!0),De()},V=(Q,ie,de)=>{ie.component=Q;const me=Q.vnode.props;Q.vnode=ie,Q.next=null,tie(Q,ie.props,me,de),oie(Q,ie.children,de),Jy(),a2(),Qy()},k=(Q,ie,de,me,Ee,xe,Pe,Te,Oe=!1)=>{const De=Q&&Q.children,Me=Q?Q.shapeFlag:0,ve=ie.children,{patchFlag:Ie,shapeFlag:Ve}=ie;if(Ie>0){if(Ie&128){G(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}else if(Ie&256){W(De,ve,de,me,Ee,xe,Pe,Te,Oe);return}}Ve&8?(Me&16&&Y(De,Ee,xe),ve!==De&&f(de,ve)):Me&16?Ve&16?G(De,ve,de,me,Ee,xe,Pe,Te,Oe):Y(De,Ee,xe,!0):(Me&8&&f(de,""),Ve&16&&R(ve,de,me,Ee,xe,Pe,Te,Oe))},W=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{Q=Q||ey,ie=ie||ey;const De=Q.length,Me=ie.length,ve=Math.min(De,Me);let Ie;for(Ie=0;IeMe?Y(Q,Ee,xe,!0,!1,ve):R(ie,de,me,Ee,xe,Pe,Te,Oe,ve)},G=(Q,ie,de,me,Ee,xe,Pe,Te,Oe)=>{let De=0;const Me=ie.length;let ve=Q.length-1,Ie=Me-1;for(;De<=ve&&De<=Ie;){const Ve=Q[De],Le=ie[De]=Oe?bh(ie[De]):Su(ie[De]);if(Am(Ve,Le))y(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;De++}for(;De<=ve&&De<=Ie;){const Ve=Q[ve],Le=ie[Ie]=Oe?bh(ie[Ie]):Su(ie[Ie]);if(Am(Ve,Le))y(Ve,Le,de,null,Ee,xe,Pe,Te,Oe);else break;ve--,Ie--}if(De>ve){if(De<=Ie){const Ve=Ie+1,Le=VeIe)for(;De<=ve;)q(Q[De],Ee,xe,!0),De++;else{const Ve=De,Le=De,_t=new Map;for(De=Le;De<=Ie;De++){const yn=ie[De]=Oe?bh(ie[De]):Su(ie[De]);yn.key!=null&&_t.set(yn.key,De)}let Tt,Ot=0;const Tn=Ie-Le+1;let Sn=!1,gn=0;const on=new Array(Tn);for(De=0;De=Tn){q(yn,Ee,xe,!0);continue}let Cn;if(yn.key!=null)Cn=_t.get(yn.key);else for(Tt=Le;Tt<=Ie;Tt++)if(on[Tt-Le]===0&&Am(yn,ie[Tt])){Cn=Tt;break}Cn===void 0?q(yn,Ee,xe,!0):(on[Cn-Le]=De+1,Cn>=gn?gn=Cn:Sn=!0,y(yn,ie[Cn],de,null,Ee,xe,Pe,Te,Oe),Ot++)}const Nt=Sn?lie(on):ey;for(Tt=Nt.length-1,De=Tn-1;De>=0;De--){const yn=Le+De,Cn=ie[yn],Ht=yn+1{const{el:xe,type:Pe,transition:Te,children:Oe,shapeFlag:De}=Q;if(De&6){K(Q.component.subTree,ie,de,me);return}if(De&128){Q.suspense.move(ie,de,me);return}if(De&64){Pe.move(Q,ie,de,re);return}if(Pe===ms){i(xe,ie,de);for(let ve=0;veTe.enter(xe),Ee);else{const{leave:ve,delayLeave:Ie,afterLeave:Ve}=Te,Le=()=>i(xe,ie,de),_t=()=>{ve(xe,()=>{Le(),Ve&&Ve()})};Ie?Ie(xe,Le,_t):_t()}else i(xe,ie,de)},q=(Q,ie,de,me=!1,Ee=!1)=>{const{type:xe,props:Pe,ref:Te,children:Oe,dynamicChildren:De,shapeFlag:Me,patchFlag:ve,dirs:Ie}=Q;if(Te!=null&&X1(Te,null,de,Q,!0),Me&256){ie.ctx.deactivate(Q);return}const Ve=Me&1&&Ie,Le=!JA(Q);let _t;if(Le&&(_t=Pe&&Pe.onVnodeBeforeUnmount)&&gu(_t,ie,Q),Me&6)X(Q.component,de,me);else{if(Me&128){Q.suspense.unmount(de,me);return}Ve&&zp(Q,null,ie,"beforeUnmount"),Me&64?Q.type.remove(Q,ie,de,Ee,re,me):De&&(xe!==ms||ve>0&&ve&64)?Y(De,ie,de,!1,!0):(xe===ms&&ve&384||!Ee&&Me&16)&&Y(Oe,ie,de),me&&te(Q)}(Le&&(_t=Pe&&Pe.onVnodeUnmounted)||Ve)&&Ba(()=>{_t&&gu(_t,ie,Q),Ve&&zp(Q,null,ie,"unmounted")},de)},te=Q=>{const{type:ie,el:de,anchor:me,transition:Ee}=Q;if(ie===ms){$(de,me);return}if(ie===XD){S(Q);return}const xe=()=>{o(de),Ee&&!Ee.persisted&&Ee.afterLeave&&Ee.afterLeave()};if(Q.shapeFlag&1&&Ee&&!Ee.persisted){const{leave:Pe,delayLeave:Te}=Ee,Oe=()=>Pe(de,xe);Te?Te(Q.el,xe,Oe):Oe()}else xe()},$=(Q,ie)=>{let de;for(;Q!==ie;)de=_(Q),o(Q),Q=de;o(ie)},X=(Q,ie,de)=>{const{bum:me,scope:Ee,update:xe,subTree:Pe,um:Te}=Q;me&&Gx(me),Ee.stop(),xe&&(xe.active=!1,q(Pe,Q,ie,de)),Te&&Ba(Te,ie),Ba(()=>{Q.isUnmounted=!0},ie),ie&&ie.pendingBranch&&!ie.isUnmounted&&Q.asyncDep&&!Q.asyncResolved&&Q.suspenseId===ie.pendingId&&(ie.deps--,ie.deps===0&&ie.resolve())},Y=(Q,ie,de,me=!1,Ee=!1,xe=0)=>{for(let Pe=xe;PeQ.shapeFlag&6?ae(Q.component.subTree):Q.shapeFlag&128?Q.suspense.next():_(Q.anchor||Q.el),ue=(Q,ie,de)=>{Q==null?ie._vnode&&q(ie._vnode,null,null,!0):y(ie._vnode||null,Q,ie,null,null,null,de),a2(),Z8(),ie._vnode=Q},re={p:y,um:q,m:K,r:te,mt:D,mc:R,pc:k,pbc:H,n:ae,o:e};let he,ce;return t&&([he,ce]=t(re)),{render:ue,hydrate:he,createApp:sie(ue,he)}}function Up({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function MR(e,t,n=!1){const i=e.children,o=t.children;if(jt(i)&&jt(o))for(let r=0;r>1,e[n[a]]0&&(t[i]=n[r-1]),n[r]=i)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const uie=e=>e.__isTeleport,ZA=e=>e&&(e.disabled||e.disabled===""),g2=e=>typeof SVGElement<"u"&&e instanceof SVGElement,K1=(e,t)=>{const n=e&&e.to;return qi(n)?t?t(n):null:n},fie={__isTeleport:!0,process(e,t,n,i,o,r,s,a,c,u){const{mc:f,pc:h,pbc:_,o:{insert:g,querySelector:p,createText:y,createComment:C}}=u,T=ZA(t.props);let{shapeFlag:E,children:w,dynamicChildren:S}=t;if(e==null){const P=t.el=y(""),O=t.anchor=y("");g(P,n,i),g(O,n,i);const z=t.target=K1(t.props,p),R=t.targetAnchor=y("");z&&(g(R,z),s=s||g2(z));const F=(H,v)=>{E&16&&f(w,H,v,o,r,s,a,c)};T?F(n,O):z&&F(z,R)}else{t.el=e.el;const P=t.anchor=e.anchor,O=t.target=e.target,z=t.targetAnchor=e.targetAnchor,R=ZA(e.props),F=R?n:O,H=R?P:z;if(s=s||g2(O),S?(_(e.dynamicChildren,S,F,o,r,s,a),MR(e,t,!0)):c||h(e,t,F,H,o,r,s,a,!1),T)R||Ob(t,n,P,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const v=t.target=K1(t.props,p);v&&Ob(t,v,null,u,0)}else R&&Ob(t,O,z,u,1)}A6(t)},remove(e,t,n,i,{um:o,o:{remove:r}},s){const{shapeFlag:a,children:c,anchor:u,targetAnchor:f,target:h,props:_}=e;if(h&&r(f),(s||!ZA(_))&&(r(u),a&16))for(let g=0;g0?Pl||ey:null,pie(),PC>0&&Pl&&Pl.push(e),e}function mo(e,t,n,i,o,r){return C6(rs(e,t,n,i,o,r,!0))}function Ma(e,t,n,i,o){return C6(_o(e,t,n,i,o,!0))}function wy(e){return e?e.__v_isVNode===!0:!1}function Am(e,t){return e.type===t.type&&e.key===t.key}const lv="__vInternal",T6=({key:e})=>e??null,Wx=({ref:e,ref_key:t,ref_for:n})=>e!=null?qi(e)||Vo(e)||bn(e)?{i:ys,r:e,k:t,f:!!n}:e:null;function rs(e,t=null,n=null,i=0,o=null,r=e===ms?0:1,s=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&T6(t),ref:t&&Wx(t),scopeId:n6,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ys};return a?(FR(c,n),r&128&&e.normalize(c)):n&&(c.shapeFlag|=qi(n)?8:16),PC>0&&!s&&Pl&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&Pl.push(c),c}const _o=mie;function mie(e,t=null,n=null,i=0,o=null,r=!1){if((!e||e===l6)&&(e=$c),wy(e)){const a=np(e,t,!0);return n&&FR(a,n),PC>0&&!r&&Pl&&(a.shapeFlag&6?Pl[Pl.indexOf(e)]=a:Pl.push(a)),a.patchFlag|=-2,a}if(xie(e)&&(e=e.__vccOpts),t){t=_ie(t);let{class:a,style:c}=t;a&&!qi(a)&&(t.class=Mi(a)),zi(c)&&(G8(c)&&!jt(c)&&(c=As({},c)),t.style=Xy(c))}const s=qi(e)?1:Lne(e)?128:uie(e)?64:zi(e)?4:bn(e)?2:0;return rs(e,t,n,i,o,s,r,!0)}function _ie(e){return e?G8(e)||lv in e?As({},e):e:null}function np(e,t,n=!1){const{props:i,ref:o,patchFlag:r,children:s}=e,a=t?zR(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&T6(a),ref:t&&t.ref?n&&o?jt(o)?o.concat(Wx(t)):[o,Wx(t)]:Wx(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ms?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&np(e.ssContent),ssFallback:e.ssFallback&&np(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function OC(e=" ",t=0){return _o(cv,null,e,t)}function da(e="",t=!1){return t?(Gn(),Ma($c,null,e)):_o($c,null,e)}function Su(e){return e==null||typeof e=="boolean"?_o($c):jt(e)?_o(ms,null,e.slice()):typeof e=="object"?bh(e):_o(cv,null,String(e))}function bh(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:np(e)}function FR(e,t){let n=0;const{shapeFlag:i}=e;if(t==null)t=null;else if(jt(t))n=16;else if(typeof t=="object")if(i&65){const o=t.default;o&&(o._c&&(o._d=!1),FR(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(lv in t)?t._ctx=ys:o===3&&ys&&(ys.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else bn(t)?(t={default:t,_ctx:ys},n=32):(t=String(t),i&64?(n=16,t=[OC(t)]):n=8);e.children=t,e.shapeFlag|=n}function zR(...e){const t={};for(let n=0;nZr||ys,Sy=e=>{Zr=e,e.scope.on()},Nm=()=>{Zr&&Zr.scope.off(),Zr=null};function b6(e){return e.vnode.shapeFlag&4}let LC=!1;function Cie(e,t=!1){LC=t;const{props:n,children:i}=e.vnode,o=b6(e);eie(e,n,o,t),iie(e,i);const r=o?Tie(e,t):void 0;return LC=!1,r}function Tie(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=DR(new Proxy(e.ctx,$ne));const{setup:i}=n;if(i){const o=e.setupContext=i.length>1?x6(e):null;Sy(e),Jy();const r=Uh(i,e,0,[e.props,o]);if(Qy(),Nm(),S8(r)){if(r.then(Nm,Nm),t)return r.then(s=>{A2(e,s,t)}).catch(s=>{iv(s,e,0)});e.asyncDep=r}else A2(e,r,t)}else E6(e,t)}function A2(e,t,n){bn(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:zi(t)&&(e.setupState=Y8(t)),E6(e,n)}let C2;function E6(e,t,n){const i=e.type;if(!e.render){if(!t&&C2&&!i.render){const o=i.template||RR(e).template;if(o){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:c}=i,u=As(As({isCustomElement:r,delimiters:a},s),c);i.render=C2(o,u)}}e.render=i.render||ya}Sy(e),Jy(),Xne(e),Qy(),Nm()}function bie(e){return new Proxy(e.attrs,{get(t,n){return sc(e,"get","$attrs"),t[n]}})}function x6(e){const t=i=>{e.exposed=i||{}};let n;return{get attrs(){return n||(n=bie(e))},slots:e.slots,emit:e.emit,expose:t}}function uv(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Y8(DR(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in QA)return QA[n](e)},has(t,n){return n in t||n in QA}}))}function Eie(e,t=!0){return bn(e)?e.displayName||e.name:e.name||t&&e.__name}function xie(e){return bn(e)&&"__vccOpts"in e}const Kt=(e,t)=>K8(e,t,LC);function w6(){return wie().slots}function wie(){const e=tf();return e.setupContext||(e.setupContext=x6(e))}function fv(e,t,n){const i=arguments.length;return i===2?zi(t)&&!jt(t)?wy(t)?_o(e,null,[t]):_o(e,t):_o(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&wy(n)&&(n=[n]),_o(e,t,n))}const Sie=Symbol(""),vie=()=>ar(Sie),Die="3.2.45",Iie="http://www.w3.org/2000/svg",Cm=typeof document<"u"?document:null,T2=Cm&&Cm.createElement("template"),Pie={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o=t?Cm.createElementNS(Iie,e):Cm.createElement(e,n?{is:n}:void 0);return e==="select"&&i&&i.multiple!=null&&o.setAttribute("multiple",i.multiple),o},createText:e=>Cm.createTextNode(e),createComment:e=>Cm.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cm.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{T2.innerHTML=i?`${e}`:e;const a=T2.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Oie(e,t,n){const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Lie(e,t,n){const i=e.style,o=qi(n);if(n&&!o){for(const r in n)J1(i,r,n[r]);if(t&&!qi(t))for(const r in t)n[r]==null&&J1(i,r,"")}else{const r=i.display;o?t!==n&&(i.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(i.display=r)}}const b2=/\s*!important$/;function J1(e,t,n){if(jt(n))n.forEach(i=>J1(e,t,i));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const i=Bie(e,t);b2.test(n)?e.setProperty(Ky(i),n.replace(b2,""),"important"):e[i]=n}}const E2=["Webkit","Moz","ms"],KD={};function Bie(e,t){const n=KD[t];if(n)return n;let i=Wl(t);if(i!=="filter"&&i in e)return KD[t]=i;i=tv(i);for(let o=0;oJD||(Uie.then(()=>JD=0),JD=Date.now());function Vie(e,t){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Yc(kie(i,n.value),t,5,[i])};return n.value=e,n.attached=Hie(),n}function kie(e,t){if(jt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(i=>o=>!o._stopped&&i&&i(o))}else return t}const S2=/^on[a-z]/,Gie=(e,t,n,i,o=!1,r,s,a,c)=>{t==="class"?Oie(e,i,o):t==="style"?Lie(e,n,i):QS(t)?yR(t)||Fie(e,t,n,i,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Wie(e,t,i,o))?Nie(e,t,i,r,s,a,c):(t==="true-value"?e._trueValue=i:t==="false-value"&&(e._falseValue=i),Rie(e,t,i,o))};function Wie(e,t,n,i){return i?!!(t==="innerHTML"||t==="textContent"||t in e&&S2.test(t)&&bn(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||S2.test(t)&&qi(n)?!1:t in e}const Yd="transition",S0="animation",ST=(e,{slots:t})=>fv(r6,jie(e),t);ST.displayName="Transition";const v6={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ST.props=As({},r6.props,v6);const Hp=(e,t=[])=>{jt(e)?e.forEach(n=>n(...t)):e&&e(...t)},v2=e=>e?jt(e)?e.some(t=>t.length>1):e.length>1:!1;function jie(e){const t={};for(const I in e)I in v6||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:i,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=r,appearActiveClass:u=s,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:_=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=qie(o),y=p&&p[0],C=p&&p[1],{onBeforeEnter:T,onEnter:E,onEnterCancelled:w,onLeave:S,onLeaveCancelled:P,onBeforeAppear:O=T,onAppear:z=E,onAppearCancelled:R=w}=t,F=(I,m,D)=>{Vp(I,m?f:a),Vp(I,m?u:s),D&&D()},H=(I,m)=>{I._isLeaving=!1,Vp(I,h),Vp(I,g),Vp(I,_),m&&m()},v=I=>(m,D)=>{const L=I?z:E,M=()=>F(m,I,D);Hp(L,[m,M]),D2(()=>{Vp(m,I?c:r),$d(m,I?f:a),v2(L)||I2(m,i,y,M)})};return As(t,{onBeforeEnter(I){Hp(T,[I]),$d(I,r),$d(I,s)},onBeforeAppear(I){Hp(O,[I]),$d(I,c),$d(I,u)},onEnter:v(!1),onAppear:v(!0),onLeave(I,m){I._isLeaving=!0;const D=()=>H(I,m);$d(I,h),Xie(),$d(I,_),D2(()=>{I._isLeaving&&(Vp(I,h),$d(I,g),v2(S)||I2(I,i,C,D))}),Hp(S,[I,D])},onEnterCancelled(I){F(I,!1),Hp(w,[I])},onAppearCancelled(I){F(I,!0),Hp(R,[I])},onLeaveCancelled(I){H(I),Hp(P,[I])}})}function qie(e){if(e==null)return null;if(zi(e))return[QD(e.enter),QD(e.leave)];{const t=QD(e);return[t,t]}}function QD(e){return TR(e)}function $d(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Vp(e,t){t.split(/\s+/).forEach(i=>i&&e.classList.remove(i));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function D2(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Yie=0;function I2(e,t,n,i){const o=e._endId=++Yie,r=()=>{o===e._endId&&i()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:c}=$ie(e,t);if(!s)return i();const u=s+"end";let f=0;const h=()=>{e.removeEventListener(u,_),r()},_=g=>{g.target===e&&++f>=c&&h()};setTimeout(()=>{f(n[p]||"").split(", "),o=i(`${Yd}Delay`),r=i(`${Yd}Duration`),s=P2(o,r),a=i(`${S0}Delay`),c=i(`${S0}Duration`),u=P2(a,c);let f=null,h=0,_=0;t===Yd?s>0&&(f=Yd,h=s,_=r.length):t===S0?u>0&&(f=S0,h=u,_=c.length):(h=Math.max(s,u),f=h>0?s>u?Yd:S0:null,_=f?f===Yd?r.length:c.length:0);const g=f===Yd&&/\b(transform|all)(,|$)/.test(i(`${Yd}Property`).toString());return{type:f,timeout:h,propCount:_,hasTransform:g}}function P2(e,t){for(;e.lengthO2(n)+O2(e[i])))}function O2(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Xie(){return document.body.offsetHeight}const L2=e=>{const t=e.props["onUpdate:modelValue"]||!1;return jt(t)?n=>Gx(t,n):t},kw={deep:!0,created(e,t,n){e._assign=L2(n),S6(e,"change",()=>{const i=e._modelValue,o=Kie(e),r=e.checked,s=e._assign;if(jt(i)){const a=x8(i,o),c=a!==-1;if(r&&!c)s(i.concat(o));else if(!r&&c){const u=[...i];u.splice(a,1),s(u)}}else if(ZS(i)){const a=new Set(i);r?a.add(o):a.delete(o),s(a)}else s(D6(e,r))})},mounted:B2,beforeUpdate(e,t,n){e._assign=L2(n),B2(e,t,n)}};function B2(e,{value:t,oldValue:n},i){e._modelValue=t,jt(t)?e.checked=x8(t,i.props.value)>-1:ZS(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=JS(t,D6(e,!0)))}function Kie(e){return"_value"in e?e._value:e.value}function D6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Jie=["ctrl","shift","alt","meta"],Qie={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Jie.some(n=>e[`${n}Key`]&&!t.includes(n))},I6=(e,t)=>(n,...i)=>{for(let o=0;o{v0(e,!1)}):v0(e,t))},beforeUnmount(e,{value:t}){v0(e,t)}};function v0(e,t){e.style.display=t?e._vod:"none"}const Zie=As({patchProp:Gie},Pie);let R2;function P6(){return R2||(R2=aie(Zie))}const N2=(...e)=>{P6().render(...e)},eoe=(...e)=>{const t=P6().createApp(...e),{mount:n}=t;return t.mount=i=>{const o=toe(i);if(!o)return;const r=t._component;!bn(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t};function toe(e){return qi(e)?document.querySelector(e):e}var noe=!1;/*! * pinia v2.0.28 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const xre=Symbol();var I3;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(I3||(I3={}));function wre(){const e=aie(!0),t=e.run(()=>bn({}));let n=[],i=[];const o=yN({install(r){o._a=r,r.provide(xre,o),r.config.globalProperties.$pinia=o,i.forEach(s=>n.push(s)),i=[]},use(r){return!this._a&&!Ere?i.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}/*! + */const ioe=Symbol();var M2;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(M2||(M2={}));function ooe(){const e=Vte(!0),t=e.run(()=>Gi({}));let n=[],i=[];const o=DR({install(r){o._a=r,r.provide(ioe,o),r.config.globalProperties.$pinia=o,i.forEach(s=>n.push(s)),i=[]},use(r){return!this._a&&!noe?i.push(r):n.push(r),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const iy=typeof window<"u";function Sre(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const eo=Object.assign;function zI(e,t){const n={};for(const i in t){const o=t[i];n[i]=uu(o)?o.map(e):e(o)}return n}const Ib=()=>{},uu=Array.isArray,vre=/\/$/,Dre=e=>e.replace(vre,"");function UI(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=Lre(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function Ire(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function P3(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Pre(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&n0(t.matched[i],n.matched[o])&&z9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function n0(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function z9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ore(e[n],t[n]))return!1;return!0}function Ore(e,t){return uu(e)?O3(e,t):uu(t)?O3(t,e):e===t}function O3(e,t){return uu(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Lre(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var lC;(function(e){e.pop="pop",e.push="push"})(lC||(lC={}));var Pb;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Pb||(Pb={}));function Bre(e){if(!e)if(iy){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Dre(e)}const Rre=/^[^#]+#/;function Nre(e,t){return e.replace(Rre,"#")+t}function Mre(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const $v=()=>({left:window.pageXOffset,top:window.pageYOffset});function Fre(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Mre(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function L3(e,t){return(history.state?history.state.position-t:-1)+e}const zL=new Map;function zre(e,t){zL.set(e,t)}function Ure(e){const t=zL.get(e);return zL.delete(e),t}let Hre=()=>location.protocol+"//"+location.host;function U9(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),P3(c,"")}return P3(n,e)+i+o}function Vre(e,t,n,i){let o=[],r=[],s=null;const a=({state:m})=>{const g=U9(e,location),p=n.value,y=t.value;let b=0;if(m){if(n.value=g,t.value=m,s&&s===p){s=null;return}b=y?m.position-y.position:0}else i(g);o.forEach(C=>{C(n.value,p,{delta:b,type:lC.pop,direction:b?b>0?Pb.forward:Pb.back:Pb.unknown})})};function c(){s=n.value}function u(m){o.push(m);const g=()=>{const p=o.indexOf(m);p>-1&&o.splice(p,1)};return r.push(g),g}function d(){const{history:m}=window;m.state&&m.replaceState(eo({},m.state,{scroll:$v()}),"")}function h(){for(const m of r)m();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:c,listen:u,destroy:h}}function B3(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?$v():null}}function kre(e){const{history:t,location:n}=window,i={value:U9(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Hre()+e+c;try{t[d?"replaceState":"pushState"](u,"",m),o.value=u}catch(g){console.error(g),n[d?"replace":"assign"](m)}}function s(c,u){const d=eo({},t.state,B3(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,d,!0),i.value=c}function a(c,u){const d=eo({},o.value,t.state,{forward:c,scroll:$v()});r(d.current,d,!0);const h=eo({},B3(i.value,c,null),{position:d.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function Gre(e){e=Bre(e);const t=kre(e),n=Vre(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=eo({location:"",base:e,go:i,createHref:Nre.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Wre(e){return typeof e=="string"||e&&typeof e=="object"}function H9(e){return typeof e=="string"||typeof e=="symbol"}const hh={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},V9=Symbol("");var R3;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(R3||(R3={}));function i0(e,t){return eo(new Error,{type:e,[V9]:!0},t)}function zd(e,t){return e instanceof Error&&V9 in e&&(t==null||!!(e.type&t))}const N3="[^/]+?",jre={sensitive:!1,strict:!1,start:!0,end:!0},qre=/[.+*?^${}()[\]/\\]/g;function $re(e,t){const n=eo({},jre,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Xre(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Kre={type:0,value:""},Jre=/[a-zA-Z0-9_]/;function Qre(e){if(!e)return[[]];if(e==="/")return[[Kre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",d="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:d,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function m(){u+=c}for(;a{s(E)}:Ib}function s(d){if(H9(d)){const h=i.get(d);h&&(i.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&i.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function c(d){let h=0;for(;h=0&&(d.record.path!==n[h].record.path||!k9(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!z3(d)&&i.set(d.record.name,d)}function u(d,h){let m,g={},p,y;if("name"in d&&d.name){if(m=i.get(d.name),!m)throw i0(1,{location:d});y=m.record.name,g=eo(F3(h.params,m.keys.filter(E=>!E.optional).map(E=>E.name)),d.params&&F3(d.params,m.keys.map(E=>E.name))),p=m.stringify(g)}else if("path"in d)p=d.path,m=n.find(E=>E.re.test(p)),m&&(g=m.parse(p),y=m.record.name);else{if(m=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!m)throw i0(1,{location:d,currentLocation:h});y=m.record.name,g=eo({},h.params,d.params),p=m.stringify(g)}const b=[];let C=m;for(;C;)b.unshift(C.record),C=C.parent;return{name:y,path:p,params:g,matched:b,meta:ise(b)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function F3(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function tse(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nse(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function nse(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function z3(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ise(e){return e.reduce((t,n)=>eo(t,n.meta),{})}function U3(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function k9(e,t){return t.children.some(n=>n===e||k9(e,n))}const G9=/#/g,ose=/&/g,rse=/\//g,sse=/=/g,ase=/\?/g,W9=/\+/g,cse=/%5B/g,lse=/%5D/g,j9=/%5E/g,use=/%60/g,q9=/%7B/g,dse=/%7C/g,$9=/%7D/g,fse=/%20/g;function PN(e){return encodeURI(""+e).replace(dse,"|").replace(cse,"[").replace(lse,"]")}function hse(e){return PN(e).replace(q9,"{").replace($9,"}").replace(j9,"^")}function UL(e){return PN(e).replace(W9,"%2B").replace(fse,"+").replace(G9,"%23").replace(ose,"%26").replace(use,"`").replace(q9,"{").replace($9,"}").replace(j9,"^")}function pse(e){return UL(e).replace(sse,"%3D")}function mse(e){return PN(e).replace(G9,"%23").replace(ase,"%3F")}function _se(e){return e==null?"":mse(e).replace(rse,"%2F")}function SS(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function gse(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&UL(r)):[i&&UL(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function yse(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=uu(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const Ase=Symbol(""),V3=Symbol(""),ON=Symbol(""),Y9=Symbol(""),HL=Symbol("");function nA(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Wh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(i0(4,{from:n,to:t})):h instanceof Error?a(h):Wre(h)?a(i0(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>a(h))})}function HI(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(bse(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Wh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const d=Sre(u)?u.default:u;r.components[s]=d;const m=(d.__vccOpts||d)[t];return m&&Wh(m,n,i,r,s)()}))}}return o}function bse(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function k3(e){const t=er(ON),n=er(Y9),i=tt(()=>t.resolve(pe(e.to))),o=tt(()=>{const{matched:c}=i.value,{length:u}=c,d=c[u-1],h=n.matched;if(!d||!h.length)return-1;const m=h.findIndex(n0.bind(null,d));if(m>-1)return m;const g=G3(c[u-2]);return u>1&&G3(d)===g&&h[h.length-1].path!==g?h.findIndex(n0.bind(null,c[u-2])):m}),r=tt(()=>o.value>-1&&xse(n.params,i.value.params)),s=tt(()=>o.value>-1&&o.value===n.matched.length-1&&z9(n.params,i.value.params));function a(c={}){return Ese(c)?t[pe(e.replace)?"replace":"push"](pe(e.to)).catch(Ib):Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const Cse=ci({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:k3,setup(e,{slots:t}){const n=W_(k3(e)),{options:i}=er(ON),o=tt(()=>({[W3(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[W3(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:qv("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Tse=Cse;function Ese(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xse(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!uu(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function G3(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const W3=(e,t,n)=>e??t??n,wse=ci({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=er(HL),o=tt(()=>e.route||i.value),r=er(V3,0),s=tt(()=>{let u=pe(r);const{matched:d}=o.value;let h;for(;(h=d[u])&&!h.components;)u++;return u}),a=tt(()=>o.value.matched[s.value]);nd(V3,tt(()=>s.value+1)),nd(Ase,a),nd(HL,o);const c=bn();return to(()=>[c.value,a.value,e.name],([u,d,h],[m,g,p])=>{d&&(d.instances[h]=u,g&&g!==d&&u&&u===m&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),u&&d&&(!g||!n0(d,g)||!m)&&(d.enterCallbacks[h]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=o.value,d=e.name,h=a.value,m=h&&h.components[d];if(!m)return j3(n.default,{Component:m,route:u});const g=h.props[d],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=qv(m,eo({},p,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[d]=null)},ref:c}));return j3(n.default,{Component:b,route:u})||b}}});function j3(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const X9=wse;function Sse(e){const t=ese(e.routes,e),n=e.parseQuery||gse,i=e.stringifyQuery||H3,o=e.history,r=nA(),s=nA(),a=nA(),c=c_(hh);let u=hh;iy&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=zI.bind(null,X=>""+X),h=zI.bind(null,_se),m=zI.bind(null,SS);function g(X,$){let se,ue;return H9(X)?(se=t.getRecordMatcher(X),ue=$):ue=X,t.addRoute(ue,se)}function p(X){const $=t.getRecordMatcher(X);$&&t.removeRoute($)}function y(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function C(X,$){if($=eo({},$||c.value),typeof X=="string"){const Q=UI(n,X,$.path),ne=t.resolve({path:Q.path},$),de=o.createHref(Q.fullPath);return eo(Q,ne,{params:m(ne.params),hash:SS(Q.hash),redirectedFrom:void 0,href:de})}let se;if("path"in X)se=eo({},X,{path:UI(n,X.path,$.path).path});else{const Q=eo({},X.params);for(const ne in Q)Q[ne]==null&&delete Q[ne];se=eo({},X,{params:h(X.params)}),$.params=h($.params)}const ue=t.resolve(se,$),re=X.hash||"";ue.params=d(m(ue.params));const he=Ire(i,eo({},X,{hash:hse(re),path:ue.path})),ce=o.createHref(he);return eo({fullPath:he,hash:re,query:i===H3?yse(X.query):X.query||{}},ue,{redirectedFrom:void 0,href:ce})}function E(X){return typeof X=="string"?UI(n,X,c.value.path):eo({},X)}function w(X,$){if(u!==X)return i0(8,{from:$,to:X})}function S(X){return z(X)}function P(X){return S(eo(E(X),{replace:!0}))}function L(X){const $=X.matched[X.matched.length-1];if($&&$.redirect){const{redirect:se}=$;let ue=typeof se=="function"?se(X):se;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=E(ue):{path:ue},ue.params={}),eo({query:X.query,hash:X.hash,params:"path"in ue?{}:X.params},ue)}}function z(X,$){const se=u=C(X),ue=c.value,re=X.state,he=X.force,ce=X.replace===!0,Q=L(se);if(Q)return z(eo(E(Q),{state:typeof Q=="object"?eo({},re,Q.state):re,force:he,replace:ce}),$||se);const ne=se;ne.redirectedFrom=$;let de;return!he&&Pre(i,ue,se)&&(de=i0(16,{to:ne,from:ue}),W(ue,ue,!0,!1)),(de?Promise.resolve(de):F(ne,ue)).catch(_e=>zd(_e)?zd(_e,2)?_e:G(_e):V(_e,ne,ue)).then(_e=>{if(_e){if(zd(_e,2))return z(eo({replace:ce},E(_e.to),{state:typeof _e.to=="object"?eo({},re,_e.to.state):re,force:he}),$||ne)}else _e=D(ne,ue,!0,ce,re);return U(ne,ue,_e),_e})}function R(X,$){const se=w(X,$);return se?Promise.reject(se):Promise.resolve()}function F(X,$){let se;const[ue,re,he]=vse(X,$);se=HI(ue.reverse(),"beforeRouteLeave",X,$);for(const Q of ue)Q.leaveGuards.forEach(ne=>{se.push(Wh(ne,X,$))});const ce=R.bind(null,X,$);return se.push(ce),Cg(se).then(()=>{se=[];for(const Q of r.list())se.push(Wh(Q,X,$));return se.push(ce),Cg(se)}).then(()=>{se=HI(re,"beforeRouteUpdate",X,$);for(const Q of re)Q.updateGuards.forEach(ne=>{se.push(Wh(ne,X,$))});return se.push(ce),Cg(se)}).then(()=>{se=[];for(const Q of X.matched)if(Q.beforeEnter&&!$.matched.includes(Q))if(uu(Q.beforeEnter))for(const ne of Q.beforeEnter)se.push(Wh(ne,X,$));else se.push(Wh(Q.beforeEnter,X,$));return se.push(ce),Cg(se)}).then(()=>(X.matched.forEach(Q=>Q.enterCallbacks={}),se=HI(he,"beforeRouteEnter",X,$),se.push(ce),Cg(se))).then(()=>{se=[];for(const Q of s.list())se.push(Wh(Q,X,$));return se.push(ce),Cg(se)}).catch(Q=>zd(Q,8)?Q:Promise.reject(Q))}function U(X,$,se){for(const ue of a.list())ue(X,$,se)}function D(X,$,se,ue,re){const he=w(X,$);if(he)return he;const ce=$===hh,Q=iy?history.state:{};se&&(ue||ce?o.replace(X.fullPath,eo({scroll:ce&&Q&&Q.scroll},re)):o.push(X.fullPath,re)),c.value=X,W(X,$,se,ce),G()}let I;function _(){I||(I=o.listen((X,$,se)=>{if(!Y.listening)return;const ue=C(X),re=L(ue);if(re){z(eo(re,{replace:!0}),ue).catch(Ib);return}u=ue;const he=c.value;iy&&zre(L3(he.fullPath,se.delta),$v()),F(ue,he).catch(ce=>zd(ce,12)?ce:zd(ce,2)?(z(ce.to,ue).then(Q=>{zd(Q,20)&&!se.delta&&se.type===lC.pop&&o.go(-1,!1)}).catch(Ib),Promise.reject()):(se.delta&&o.go(-se.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||D(ue,he,!1),ce&&(se.delta&&!zd(ce,8)?o.go(-se.delta,!1):se.type===lC.pop&&zd(ce,20)&&o.go(-1,!1)),U(ue,he,ce)}).catch(Ib)}))}let v=nA(),O=nA(),N;function V(X,$,se){G(X);const ue=O.list();return ue.length?ue.forEach(re=>re(X,$,se)):console.error(X),Promise.reject(X)}function k(){return N&&c.value!==hh?Promise.resolve():new Promise((X,$)=>{v.add([X,$])})}function G(X){return N||(N=!X,_(),v.list().forEach(([$,se])=>X?se(X):$()),v.reset()),X}function W(X,$,se,ue){const{scrollBehavior:re}=e;if(!iy||!re)return Promise.resolve();const he=!se&&Ure(L3(X.fullPath,0))||(ue||!se)&&history.state&&history.state.scroll||null;return us().then(()=>re(X,$,he)).then(ce=>ce&&Fre(ce)).catch(ce=>V(ce,X,$))}const K=X=>o.go(X);let q;const te=new Set,Y={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:b,getRoutes:y,resolve:C,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:O.add,isReady:k,install(X){const $=this;X.component("RouterLink",Tse),X.component("RouterView",X9),X.config.globalProperties.$router=$,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>pe(c)}),iy&&!q&&c.value===hh&&(q=!0,S(o.location).catch(re=>{}));const se={};for(const re in hh)se[re]=tt(()=>c.value[re]);X.provide(ON,$),X.provide(Y9,W_(se)),X.provide(HL,c);const ue=X.unmount;te.add(X),X.unmount=function(){te.delete(X),te.size<1&&(u=hh,I&&I(),I=null,c.value=hh,q=!1,N=!1),ue()}}};return Y}function Cg(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function vse(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sn0(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>n0(u,c))||o.push(c))}return[n,i,o]}const Dse=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},Ise={__name:"App",setup(e){return(t,n)=>(qe(),Dn(pe(X9)))}},Pse=Dse(Ise,[["__scopeId","data-v-0969e94e"]]);var Ose=typeof global=="object"&&global&&global.Object===Object&&global;const K9=Ose;var Lse=typeof self=="object"&&self&&self.Object===Object&&self,Bse=K9||Lse||Function("return this")();const Vf=Bse;var Rse=Vf.Symbol;const ld=Rse;var J9=Object.prototype,Nse=J9.hasOwnProperty,Mse=J9.toString,iA=ld?ld.toStringTag:void 0;function Fse(e){var t=Nse.call(e,iA),n=e[iA];try{e[iA]=void 0;var i=!0}catch{}var o=Mse.call(e);return i&&(t?e[iA]=n:delete e[iA]),o}var zse=Object.prototype,Use=zse.toString;function Hse(e){return Use.call(e)}var Vse="[object Null]",kse="[object Undefined]",q3=ld?ld.toStringTag:void 0;function v0(e){return e==null?e===void 0?kse:Vse:q3&&q3 in Object(e)?Fse(e):Hse(e)}function o0(e){return e!=null&&typeof e=="object"}var Gse="[object Symbol]";function LN(e){return typeof e=="symbol"||o0(e)&&v0(e)==Gse}function Wse(e,t){for(var n=-1,i=e==null?0:e.length,o=Array(i);++n0){if(++t>=hae)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function gae(e){return function(){return e}}var yae=function(){try{var e=q_(Object,"defineProperty");return e({},"",{}),e}catch{}}();const DS=yae;var Aae=DS?function(e,t){return DS(e,"toString",{configurable:!0,enumerable:!1,value:gae(t),writable:!0})}:$se;const bae=Aae;var Cae=_ae(bae);const Tae=Cae;var Eae=9007199254740991,xae=/^(?:0|[1-9]\d*)$/;function BN(e,t){var n=typeof e;return t=t??Eae,!!t&&(n=="number"||n!="symbol"&&xae.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Pae}function Oae(e){return e!=null&&NN(e.length)&&!Z9(e)}var Lae=Object.prototype;function Bae(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lae;return e===n}function Rae(e,t){for(var n=-1,i=Array(e);++n-1}function Xce(e,t){var n=this.__data__,i=Yv(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function kf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?sW(a,t-1,n,i,o):rW(o,a):i||(o[o.length]=a)}return o}function ple(e){var t=e==null?0:e.length;return t?sW(e,1):[]}function mle(e){return Tae(Iae(e,void 0,ple),e+"")}function _le(){this.__data__=new kf,this.size=0}function gle(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yle(e){return this.__data__.get(e)}function Ale(e){return this.__data__.has(e)}var ble=200;function Cle(e,t){var n=this.__data__;if(n instanceof kf){var i=n.__data__;if(!dC||i.lengtha))return!1;var u=r.get(e),d=r.get(t);if(u&&d)return u==t&&d==e;var h=-1,m=!0,g=n&jle?new IS:void 0;for(r.set(e,t),r.set(t,e);++hgetComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,_z=e=>Array.from(e.querySelectorAll(xue)).filter(t=>Sue(t)&&wue(t)),Sue=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}};var gz;const Cc=typeof window<"u",vue=e=>typeof e<"u",PS=e=>typeof e=="boolean",Due=e=>typeof e=="function",wp=e=>typeof e=="number",Iue=e=>typeof e=="string",Pue=()=>{};Cc&&((gz=window==null?void 0:window.navigator)!=null&&gz.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function uW(e){return typeof e=="function"?e():pe(e)}function Oue(e){return e}function UN(e){return lie()?(L6(e),!0):!1}function Lue(e,t=!0){Lc()?Oc(e):t?e():us(e)}function qL(e,t,n={}){const{immediate:i=!0}=n,o=bn(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function a(){o.value=!1,s()}function c(...u){s(),o.value=!0,r=setTimeout(()=>{o.value=!1,r=null,e(...u)},uW(t))}return i&&(o.value=!0,Cc&&c()),UN(a),{isPending:o,start:c,stop:a}}function dW(e){var t;const n=uW(e);return(t=n==null?void 0:n.$el)!=null?t:n}const fW=Cc?window:void 0;function Bue(...e){let t,n,i,o;if(Iue(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=fW):[t,n,i,o]=e,!t)return Pue;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(d=>d()),r.length=0},a=(d,h,m)=>(d.addEventListener(h,m,o),()=>d.removeEventListener(h,m,o)),c=to(()=>dW(t),d=>{s(),d&&r.push(...n.flatMap(h=>i.map(m=>a(d,h,m))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return UN(u),u}function Rue(e,t=!1){const n=bn(),i=()=>n.value=Boolean(e());return i(),Lue(i,t),n}function Nue(e){return JSON.parse(JSON.stringify(e))}const $L=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},YL="__vueuse_ssr_handlers__";$L[YL]=$L[YL]||{};$L[YL];var yz=Object.getOwnPropertySymbols,Mue=Object.prototype.hasOwnProperty,Fue=Object.prototype.propertyIsEnumerable,zue=(e,t)=>{var n={};for(var i in e)Mue.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&yz)for(var i of yz(e))t.indexOf(i)<0&&Fue.call(e,i)&&(n[i]=e[i]);return n};function hW(e,t,n={}){const i=n,{window:o=fW}=i,r=zue(i,["window"]);let s;const a=Rue(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},u=to(()=>dW(e),h=>{c(),a.value&&o&&h&&(s=new ResizeObserver(t),s.observe(h,r))},{immediate:!0,flush:"post"}),d=()=>{c(),u()};return UN(d),{isSupported:a,stop:d}}var Az;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Az||(Az={}));var Uue=Object.defineProperty,bz=Object.getOwnPropertySymbols,Hue=Object.prototype.hasOwnProperty,Vue=Object.prototype.propertyIsEnumerable,Cz=(e,t,n)=>t in e?Uue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kue=(e,t)=>{for(var n in t||(t={}))Hue.call(t,n)&&Cz(e,n,t[n]);if(bz)for(var n of bz(t))Vue.call(t,n)&&Cz(e,n,t[n]);return e};const Gue={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};kue({linear:Oue},Gue);function Wue(e,t,n,i={}){var o,r,s;const{clone:a=!1,passive:c=!1,eventName:u,deep:d=!1,defaultValue:h}=i,m=Lc(),g=n||(m==null?void 0:m.emit)||((o=m==null?void 0:m.$emit)==null?void 0:o.bind(m))||((s=(r=m==null?void 0:m.proxy)==null?void 0:r.$emit)==null?void 0:s.bind(m==null?void 0:m.proxy));let p=u;t||(t="modelValue"),p=u||p||`update:${t.toString()}`;const y=C=>a?Due(a)?a(C):Nue(C):C,b=()=>vue(e[t])?y(e[t]):h;if(c){const C=b(),E=bn(C);return to(()=>e[t],w=>E.value=y(w)),to(E,w=>{(w!==e[t]||d)&&g(p,w)},{deep:d}),E}else return tt({get(){return b()},set(C){g(p,C)}})}const fC=e=>e===void 0,XL=e=>typeof Element>"u"?!1:e instanceof Element,jue=e=>_i(e)?!Number.isNaN(Number(e)):!1,Tz=e=>Object.keys(e),que=e=>Object.entries(e);class $ue extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Qv(e,t){throw new $ue(`[${e}] ${t}`)}const pW=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ez=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Yue=(e,t)=>{!e||!t.trim()||e.classList.add(...pW(t))},Xue=(e,t)=>{!e||!t.trim()||e.classList.remove(...pW(t))},Kue=(e,t)=>{var n;if(!Cc||!e||!t)return"";let i=lu(t);i==="float"&&(i="cssFloat");try{const o=e.style[i];if(o)return o;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function hC(e,t="px"){if(!e)return"";if(wp(e)||jue(e))return`${e}${t}`;if(_i(e))return e}let hE;const Jue=e=>{var t;if(!Cc)return 0;if(hE!==void 0)return hE;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const r=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),hE=i-r,hE};/*! Element Plus Icons Vue v2.0.10 */var Ka=(e,t)=>{let n=e.__vccOpts||e;for(let[i,o]of t)n[i]=o;return n},Que={name:"Check"},Zue={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ede=Vt("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),tde=[ede];function nde(e,t,n,i,o,r){return qe(),Dt("svg",Zue,tde)}var mW=Ka(Que,[["render",nde],["__file","check.vue"]]),ide={name:"CircleCheck"},ode={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},rde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),sde=Vt("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),ade=[rde,sde];function cde(e,t,n,i,o,r){return qe(),Dt("svg",ode,ade)}var HN=Ka(ide,[["render",cde],["__file","circle-check.vue"]]),lde={name:"CircleCloseFilled"},ude={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},dde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),fde=[dde];function hde(e,t,n,i,o,r){return qe(),Dt("svg",ude,fde)}var _W=Ka(lde,[["render",hde],["__file","circle-close-filled.vue"]]),pde={name:"CircleClose"},mde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_de=Vt("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),gde=Vt("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),yde=[_de,gde];function Ade(e,t,n,i,o,r){return qe(),Dt("svg",mde,yde)}var VN=Ka(pde,[["render",Ade],["__file","circle-close.vue"]]),bde={name:"Close"},Cde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tde=Vt("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Ede=[Tde];function xde(e,t,n,i,o,r){return qe(),Dt("svg",Cde,Ede)}var Zv=Ka(bde,[["render",xde],["__file","close.vue"]]),wde={name:"Delete"},Sde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},vde=Vt("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),Dde=[vde];function Ide(e,t,n,i,o,r){return qe(),Dt("svg",Sde,Dde)}var Pde=Ka(wde,[["render",Ide],["__file","delete.vue"]]),Ode={name:"Document"},Lde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bde=Vt("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),Rde=[Bde];function Nde(e,t,n,i,o,r){return qe(),Dt("svg",Lde,Rde)}var Mde=Ka(Ode,[["render",Nde],["__file","document.vue"]]),Fde={name:"Hide"},zde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ude=Vt("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),Hde=Vt("path",{d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),Vde=[Ude,Hde];function kde(e,t,n,i,o,r){return qe(),Dt("svg",zde,Vde)}var Gde=Ka(Fde,[["render",kde],["__file","hide.vue"]]),Wde={name:"InfoFilled"},jde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},qde=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),$de=[qde];function Yde(e,t,n,i,o,r){return qe(),Dt("svg",jde,$de)}var gW=Ka(Wde,[["render",Yde],["__file","info-filled.vue"]]),Xde={name:"Loading"},Kde={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Jde=Vt("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),Qde=[Jde];function Zde(e,t,n,i,o,r){return qe(),Dt("svg",Kde,Qde)}var yW=Ka(Xde,[["render",Zde],["__file","loading.vue"]]),efe={name:"SuccessFilled"},tfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),ife=[nfe];function ofe(e,t,n,i,o,r){return qe(),Dt("svg",tfe,ife)}var AW=Ka(efe,[["render",ofe],["__file","success-filled.vue"]]),rfe={name:"View"},sfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},afe=Vt("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),cfe=[afe];function lfe(e,t,n,i,o,r){return qe(),Dt("svg",sfe,cfe)}var ufe=Ka(rfe,[["render",lfe],["__file","view.vue"]]),dfe={name:"WarningFilled"},ffe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hfe=Vt("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),pfe=[hfe];function mfe(e,t,n,i,o,r){return qe(),Dt("svg",ffe,pfe)}var kN=Ka(dfe,[["render",mfe],["__file","warning-filled.vue"]]),_fe={name:"ZoomIn"},gfe={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},yfe=Vt("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),Afe=[yfe];function bfe(e,t,n,i,o,r){return qe(),Dt("svg",gfe,Afe)}var Cfe=Ka(_fe,[["render",bfe],["__file","zoom-in.vue"]]);const bW="__epPropKey",Qn=e=>e,Tfe=e=>Di(e)&&!!e[bW],CW=(e,t)=>{if(!Di(e)||Tfe(e))return e;const{values:n,required:i,default:o,type:r,validator:s}=e,c={type:r,required:!!i,validator:n||s?u=>{let d=!1,h=[];if(n&&(h=Array.from(n),oi(e,"default")&&h.push(o),d||(d=h.includes(u))),s&&(d||(d=s(u))),!d&&h.length>0){const m=[...new Set(h)].map(g=>JSON.stringify(g)).join(", ");Uie(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${m}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[bW]:!0};return oi(e,"default")&&(c.default=o),c},bs=e=>lW(Object.entries(e).map(([t,n])=>[t,CW(n,t)])),r0=Qn([String,Object,Function]),TW={Close:Zv,SuccessFilled:AW,InfoFilled:gW,WarningFilled:kN,CircleCloseFilled:_W},OS={success:AW,warning:kN,error:_W,info:gW},Efe={validating:yW,success:HN,error:VN},Wf=(e,t)=>{if(e.install=n=>{for(const i of[e,...Object.values(t??{})])n.component(i.name,i)},t)for(const[n,i]of Object.entries(t))e[n]=i;return e},xfe=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),GN=e=>(e.install=Bi,e),eD={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},If="update:modelValue",EW=["","default","small","large"],wfe=e=>["",...EW].includes(e);var vw=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(vw||{});const Sfe=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),pC=e=>e,vfe=["class","style"],Dfe=/^on[A-Z]/,Ife=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,i=tt(()=>((n==null?void 0:n.value)||[]).concat(vfe)),o=Lc();return tt(o?()=>{var r;return lW(Object.entries((r=o.proxy)==null?void 0:r.$attrs).filter(([s])=>!i.value.includes(s)&&!(t&&Dfe.test(s))))}:()=>({}))},xW=Symbol("buttonGroupContextKey"),D0=Symbol("checkboxGroupContextKey"),wW=Symbol(),WN=Symbol("formContextKey"),SW=Symbol("formItemContextKey"),Pfe=Symbol("rowContextKey"),vW=Symbol("uploadContextKey"),DW=e=>{const t=Lc();return tt(()=>{var n,i;return(i=((n=t.proxy)==null?void 0:n.$props)[e])!=null?i:void 0})},LS=bn();function jp(e,t=void 0){const n=Lc()?er(wW,LS):LS;return e?tt(()=>{var i,o;return(o=(i=n.value)==null?void 0:i[e])!=null?o:t}):n}const Ofe=(e,t,n=!1)=>{var i;const o=!!Lc(),r=o?jp():void 0,s=(i=t==null?void 0:t.provide)!=null?i:o?nd:void 0;if(!s)return;const a=tt(()=>{const c=pe(e);return r!=null&&r.value?Lfe(r.value,c):c});return s(wW,a),(n||!LS.value)&&(LS.value=a.value),a},Lfe=(e,t)=>{var n;const i=[...new Set([...Tz(e),...Tz(t)])],o={};for(const r of i)o[r]=(n=t[r])!=null?n:e[r];return o},cT=CW({type:String,values:EW,required:!1}),mC=(e,t={})=>{const n=bn(void 0),i=t.prop?n:DW("size"),o=t.global?n:jp("size"),r=t.form?{size:void 0}:er(WN,void 0),s=t.formItem?{size:void 0}:er(SW,void 0);return tt(()=>i.value||pe(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||o.value||"")},qp=e=>{const t=DW("disabled"),n=er(WN,void 0);return tt(()=>t.value||pe(e)||(n==null?void 0:n.disabled)||!1)},KL=({from:e,replacement:t,scope:n,version:i,ref:o,type:r="API"},s)=>{to(()=>pe(s),a=>{},{immediate:!0})},Bfe=(e,t,n)=>{let i={offsetX:0,offsetY:0};const o=a=>{const c=a.clientX,u=a.clientY,{offsetX:d,offsetY:h}=i,m=e.value.getBoundingClientRect(),g=m.left,p=m.top,y=m.width,b=m.height,C=document.documentElement.clientWidth,E=document.documentElement.clientHeight,w=-g+d,S=-p+h,P=C-g-y+d,L=E-p-b+h,z=F=>{const U=Math.min(Math.max(d+F.clientX-c,w),P),D=Math.min(Math.max(h+F.clientY-u,S),L);i={offsetX:U,offsetY:D},e.value.style.transform=`translate(${hC(U)}, ${hC(D)})`},R=()=>{document.removeEventListener("mousemove",z),document.removeEventListener("mouseup",R)};document.addEventListener("mousemove",z),document.addEventListener("mouseup",R)},r=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",o)},s=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",o)};Oc(()=>{Qie(()=>{n.value?r():s()})}),Wp(()=>{s()})},jN="el",Rfe="is-",hm=(e,t,n,i,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),i&&(r+=`__${i}`),o&&(r+=`--${o}`),r},dr=e=>{const t=jp("namespace",jN);return{namespace:t,b:(p="")=>hm(t.value,e,p,"",""),e:p=>p?hm(t.value,e,"",p,""):"",m:p=>p?hm(t.value,e,"","",p):"",be:(p,y)=>p&&y?hm(t.value,e,p,y,""):"",em:(p,y)=>p&&y?hm(t.value,e,"",p,y):"",bm:(p,y)=>p&&y?hm(t.value,e,p,"",y):"",bem:(p,y,b)=>p&&y&&b?hm(t.value,e,p,y,b):"",is:(p,...y)=>{const b=y.length>=1?y[0]:!0;return p&&b?`${Rfe}${p}`:""},cssVar:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${b}`]=p[b]);return y},cssVarName:p=>`--${t.value}-${p}`,cssVarBlock:p=>{const y={};for(const b in p)p[b]&&(y[`--${t.value}-${e}-${b}`]=p[b]);return y},cssVarBlockName:p=>`--${t.value}-${e}-${p}`}},xz={prefix:Math.floor(Math.random()*1e4),current:0},Nfe=Symbol("elIdInjection"),Mfe=()=>Lc()?er(Nfe,xz):xz,_C=e=>{const t=Mfe(),n=jp("namespace",jN);return tt(()=>pe(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},lT=()=>{const e=er(WN,void 0),t=er(SW,void 0);return{form:e,formItem:t}},qN=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:i})=>{n||(n=bn(!1)),i||(i=bn(!1));const o=bn();let r;const s=tt(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return Oc(()=>{r=to([e0(e,"id"),n],([a,c])=>{const u=a??(c?void 0:_C().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(i!=null&&i.value)&&!c&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),xN(()=>{r&&r(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var Ffe={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const zfe=e=>(t,n)=>Ufe(t,n,pe(e)),Ufe=(e,t,n)=>fle(n,e,e).replace(/\{(\w+)\}/g,(i,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),Hfe=e=>{const t=tt(()=>pe(e).name),n=So(e)?e:bn(e);return{lang:t,locale:n,t:zfe(e)}},$N=()=>{const e=jp("locale");return Hfe(tt(()=>e.value||Ffe))},IW=e=>{So(e)||Qv("[useLockscreen]","You need to pass a ref param to this function");const t=dr("popup"),n=Q6(()=>t.bm("parent","hidden"));if(!Cc||Ez(document.body,n.value))return;let i=0,o=!1,r="0";const s=()=>{setTimeout(()=>{Xue(document.body,n.value),o&&(document.body.style.width=r)},200)};to(e,a=>{if(!a){s();return}o=!Ez(document.body,n.value),o&&(r=document.body.style.width),i=Jue(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),Yue(document.body,n.value)}),L6(()=>s())},Vfe=(e,t)=>{let n;to(()=>e.value,i=>{var o,r;i?(n=document.activeElement,So(t)&&((r=(o=t.value).focus)==null||r.call(o))):n.focus()})},PW=e=>{if(!e)return{onClick:Bi,onMousedown:Bi,onMouseup:Bi};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}};let oy=[];const wz=e=>{const t=e;t.key===eD.esc&&oy.forEach(n=>n(t))},kfe=e=>{Oc(()=>{oy.length===0&&document.addEventListener("keydown",wz),Cc&&oy.push(e)}),Wp(()=>{oy=oy.filter(t=>t!==e),oy.length===0&&Cc&&document.removeEventListener("keydown",wz)})},Sz=bn(0),YN=()=>{const e=jp("zIndex",2e3),t=tt(()=>e.value+Sz.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Sz.value++,t.value)}};function Gfe(e){const t=bn();function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:r,value:s}=e.value;if(o==null||r==null)return;const a=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,r));t.value={selectionStart:o,selectionEnd:r,value:s,beforeTxt:a,afterTxt:c}}function i(){if(e.value==null||t.value==null)return;const{value:o}=e.value,{beforeTxt:r,afterTxt:s,selectionStart:a}=t.value;if(r==null||s==null||a==null)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(r))c=r.length;else{const u=r[a-1],d=o.indexOf(u,a-1);d!==-1&&(c=d+1)}e.value.setSelectionRange(c,c)}return[n,i]}var Cs=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const Wfe=bs({size:{type:Qn([Number,String])},color:{type:String}}),jfe=ci({name:"ElIcon",inheritAttrs:!1}),qfe=ci({...jfe,props:Wfe,setup(e){const t=e,n=dr("icon"),i=tt(()=>{const{size:o,color:r}=t;return!o&&!r?{}:{fontSize:fC(o)?void 0:hC(o),"--color":r}});return(o,r)=>(qe(),Dt("i",cp({class:pe(n).b(),style:pe(i)},o.$attrs),[Zn(o.$slots,"default")],16))}});var $fe=Cs(qfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ss=Wf($fe);let Pl;const Yfe=` - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; -`,Xfe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Kfe(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),i=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:Xfe.map(s=>`${s}:${t.getPropertyValue(s)}`).join(";"),paddingSize:i,borderSize:o,boxSizing:n}}function vz(e,t=1,n){var i;Pl||(Pl=document.createElement("textarea"),document.body.appendChild(Pl));const{paddingSize:o,borderSize:r,boxSizing:s,contextStyle:a}=Kfe(e);Pl.setAttribute("style",`${a};${Yfe}`),Pl.value=e.value||e.placeholder||"";let c=Pl.scrollHeight;const u={};s==="border-box"?c=c+r:s==="content-box"&&(c=c-o),Pl.value="";const d=Pl.scrollHeight-o;if(wp(t)){let h=d*t;s==="border-box"&&(h=h+o+r),c=Math.max(h,c),u.minHeight=`${h}px`}if(wp(n)){let h=d*n;s==="border-box"&&(h=h+o+r),c=Math.min(h,c)}return u.height=`${c}px`,(i=Pl.parentNode)==null||i.removeChild(Pl),Pl=void 0,u}const Jfe=bs({id:{type:String,default:void 0},size:cT,disabled:Boolean,modelValue:{type:Qn([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Qn([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:r0},prefixIcon:{type:r0},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Qn([Object,Array,String]),default:()=>pC({})}}),Qfe={[If]:e=>_i(e),input:e=>_i(e),change:e=>_i(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Zfe=["role"],ehe=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],the=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],nhe=ci({name:"ElInput",inheritAttrs:!1}),ihe=ci({...nhe,props:Jfe,emits:Qfe,setup(e,{expose:t,emit:n}){const i=e,o=Voe(),r=aT(),s=tt(()=>{const Ae={};return i.containerRole==="combobox"&&(Ae["aria-haspopup"]=o["aria-haspopup"],Ae["aria-owns"]=o["aria-owns"],Ae["aria-expanded"]=o["aria-expanded"]),Ae}),a=tt(()=>[i.type==="textarea"?b.b():y.b(),y.m(g.value),y.is("disabled",p.value),y.is("exceed",K.value),{[y.b("group")]:r.prepend||r.append,[y.bm("group","append")]:r.append,[y.bm("group","prepend")]:r.prepend,[y.m("prefix")]:r.prefix||i.prefixIcon,[y.m("suffix")]:r.suffix||i.suffixIcon||i.clearable||i.showPassword,[y.bm("suffix","password-clear")]:V.value&&k.value},o.class]),c=tt(()=>[y.e("wrapper"),y.is("focus",w.value)]),u=Ife({excludeKeys:tt(()=>Object.keys(s.value))}),{form:d,formItem:h}=lT(),{inputId:m}=qN(i,{formItemContext:h}),g=mC(),p=qp(),y=dr("input"),b=dr("textarea"),C=c_(),E=c_(),w=bn(!1),S=bn(!1),P=bn(!1),L=bn(!1),z=bn(),R=c_(i.inputStyle),F=tt(()=>C.value||E.value),U=tt(()=>{var Ae;return(Ae=d==null?void 0:d.statusIcon)!=null?Ae:!1}),D=tt(()=>(h==null?void 0:h.validateState)||""),I=tt(()=>D.value&&Efe[D.value]),_=tt(()=>L.value?ufe:Gde),v=tt(()=>[o.style,i.inputStyle]),O=tt(()=>[i.inputStyle,R.value,{resize:i.resize}]),N=tt(()=>Jv(i.modelValue)?"":String(i.modelValue)),V=tt(()=>i.clearable&&!p.value&&!i.readonly&&!!N.value&&(w.value||S.value)),k=tt(()=>i.showPassword&&!p.value&&!i.readonly&&!!N.value&&(!!N.value||w.value)),G=tt(()=>i.showWordLimit&&!!u.value.maxlength&&(i.type==="text"||i.type==="textarea")&&!p.value&&!i.readonly&&!i.showPassword),W=tt(()=>Array.from(N.value).length),K=tt(()=>!!G.value&&W.value>Number(u.value.maxlength)),q=tt(()=>!!r.suffix||!!i.suffixIcon||V.value||i.showPassword||G.value||!!D.value&&U.value),[te,Y]=Gfe(C);hW(E,Ae=>{if(!G.value||i.resize!=="both")return;const xe=Ae[0],{width:Oe}=xe.contentRect;z.value={right:`calc(100% - ${Oe+15+6}px)`}});const X=()=>{const{type:Ae,autosize:xe}=i;if(!(!Cc||Ae!=="textarea"))if(xe){const Oe=Di(xe)?xe.minRows:void 0,Ve=Di(xe)?xe.maxRows:void 0;R.value={...vz(E.value,Oe,Ve)}}else R.value={minHeight:vz(E.value).minHeight}},$=()=>{const Ae=F.value;!Ae||Ae.value===N.value||(Ae.value=N.value)},se=async Ae=>{te();let{value:xe}=Ae.target;if(i.formatter&&(xe=i.parser?i.parser(xe):xe,xe=i.formatter(xe)),!P.value){if(xe===N.value){$();return}n(If,xe),n("input",xe),await us(),$(),Y()}},ue=Ae=>{n("change",Ae.target.value)},re=Ae=>{n("compositionstart",Ae),P.value=!0},he=Ae=>{var xe;n("compositionupdate",Ae);const Oe=(xe=Ae.target)==null?void 0:xe.value,Ve=Oe[Oe.length-1]||"";P.value=!Sfe(Ve)},ce=Ae=>{n("compositionend",Ae),P.value&&(P.value=!1,se(Ae))},Q=()=>{L.value=!L.value,ne()},ne=async()=>{var Ae;await us(),(Ae=F.value)==null||Ae.focus()},de=()=>{var Ae;return(Ae=F.value)==null?void 0:Ae.blur()},_e=Ae=>{w.value=!0,n("focus",Ae)},Se=Ae=>{var xe;w.value=!1,n("blur",Ae),i.validateEvent&&((xe=h==null?void 0:h.validate)==null||xe.call(h,"blur").catch(Oe=>void 0))},ve=Ae=>{S.value=!1,n("mouseleave",Ae)},Le=Ae=>{S.value=!0,n("mouseenter",Ae)},Ee=Ae=>{n("keydown",Ae)},Be=()=>{var Ae;(Ae=F.value)==null||Ae.select()},Pe=()=>{n(If,""),n("change",""),n("clear"),n("input","")};return to(()=>i.modelValue,()=>{var Ae;us(()=>X()),i.validateEvent&&((Ae=h==null?void 0:h.validate)==null||Ae.call(h,"change").catch(xe=>void 0))}),to(N,()=>$()),to(()=>i.type,async()=>{await us(),$(),X()}),Oc(()=>{!i.formatter&&i.parser,$(),us(X)}),t({input:C,textarea:E,ref:F,textareaStyle:O,autosize:e0(i,"autosize"),focus:ne,blur:de,select:Be,clear:Pe,resizeTextarea:X}),(Ae,xe)=>eu((qe(),Dt("div",cp(pe(s),{class:pe(a),style:pe(v),role:Ae.containerRole,onMouseenter:Le,onMouseleave:ve}),[Mt(" input "),Ae.type!=="textarea"?(qe(),Dt(Jo,{key:0},[Mt(" prepend slot "),Ae.$slots.prepend?(qe(),Dt("div",{key:0,class:st(pe(y).be("group","prepend"))},[Zn(Ae.$slots,"prepend")],2)):Mt("v-if",!0),Vt("div",{class:st(pe(c))},[Mt(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(qe(),Dt("span",{key:0,class:st(pe(y).e("prefix"))},[Vt("span",{class:st(pe(y).e("prefix-inner")),onClick:ne},[Zn(Ae.$slots,"prefix"),Ae.prefixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.prefixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0),Vt("input",cp({id:pe(m),ref_key:"input",ref:C,class:pe(y).e("inner")},pe(u),{type:Ae.showPassword?L.value?"text":"password":Ae.type,disabled:pe(p),formatter:Ae.formatter,parser:Ae.parser,readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.label,placeholder:Ae.placeholder,style:Ae.inputStyle,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,ehe),Mt(" suffix slot "),pe(q)?(qe(),Dt("span",{key:1,class:st(pe(y).e("suffix"))},[Vt("span",{class:st(pe(y).e("suffix-inner")),onClick:ne},[!pe(V)||!pe(k)||!pe(G)?(qe(),Dt(Jo,{key:0},[Zn(Ae.$slots,"suffix"),Ae.suffixIcon?(qe(),Dn(pe(ss),{key:0,class:st(pe(y).e("icon"))},{default:an(()=>[(qe(),Dn(Ia(Ae.suffixIcon)))]),_:1},8,["class"])):Mt("v-if",!0)],64)):Mt("v-if",!0),pe(V)?(qe(),Dn(pe(ss),{key:1,class:st([pe(y).e("icon"),pe(y).e("clear")]),onMousedown:cc(pe(Bi),["prevent"]),onClick:Pe},{default:an(()=>[fn(pe(VN))]),_:1},8,["class","onMousedown"])):Mt("v-if",!0),pe(k)?(qe(),Dn(pe(ss),{key:2,class:st([pe(y).e("icon"),pe(y).e("password")]),onClick:Q},{default:an(()=>[(qe(),Dn(Ia(pe(_))))]),_:1},8,["class"])):Mt("v-if",!0),pe(G)?(qe(),Dt("span",{key:3,class:st(pe(y).e("count"))},[Vt("span",{class:st(pe(y).e("count-inner"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),3)],2)):Mt("v-if",!0),pe(D)&&pe(I)&&pe(U)?(qe(),Dn(pe(ss),{key:4,class:st([pe(y).e("icon"),pe(y).e("validateIcon"),pe(y).is("loading",pe(D)==="validating")])},{default:an(()=>[(qe(),Dn(Ia(pe(I))))]),_:1},8,["class"])):Mt("v-if",!0)],2)],2)):Mt("v-if",!0)],2),Mt(" append slot "),Ae.$slots.append?(qe(),Dt("div",{key:1,class:st(pe(y).be("group","append"))},[Zn(Ae.$slots,"append")],2)):Mt("v-if",!0)],64)):(qe(),Dt(Jo,{key:1},[Mt(" textarea "),Vt("textarea",cp({id:pe(m),ref_key:"textarea",ref:E,class:pe(b).e("inner")},pe(u),{tabindex:Ae.tabindex,disabled:pe(p),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:pe(O),"aria-label":Ae.label,placeholder:Ae.placeholder,form:i.form,onCompositionstart:re,onCompositionupdate:he,onCompositionend:ce,onInput:se,onFocus:_e,onBlur:Se,onChange:ue,onKeydown:Ee}),null,16,the),pe(G)?(qe(),Dt("span",{key:0,style:Ds(z.value),class:st(pe(y).e("count"))},Pr(pe(W))+" / "+Pr(pe(u).maxlength),7)):Mt("v-if",!0)],64))],16,Zfe)),[[u_,Ae.type!=="hidden"]])}});var ohe=Cs(ihe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const OW=Wf(ohe),WI="focus-trap.focus-after-trapped",jI="focus-trap.focus-after-released",rhe="focus-trap.focusout-prevented",Dz={cancelable:!0,bubbles:!1},she={cancelable:!0,bubbles:!1},Iz="focusAfterTrapped",Pz="focusAfterReleased",ahe=Symbol("elFocusTrap"),XN=bn(),tD=bn(0),KN=bn(0);let pE=0;const LW=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Oz=(e,t)=>{for(const n of e)if(!che(n,t))return n},che=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},lhe=e=>{const t=LW(e),n=Oz(t,e),i=Oz(t.reverse(),e);return[n,i]},uhe=e=>e instanceof HTMLInputElement&&"select"in e,Fh=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),KN.value=window.performance.now(),e!==n&&uhe(e)&&t&&e.select()}};function Lz(e,t){const n=[...e],i=e.indexOf(t);return i!==-1&&n.splice(i,1),n}const dhe=()=>{let e=[];return{push:i=>{const o=e[0];o&&i!==o&&o.pause(),e=Lz(e,i),e.unshift(i)},remove:i=>{var o,r;e=Lz(e,i),(r=(o=e[0])==null?void 0:o.resume)==null||r.call(o)}}},fhe=(e,t=!1)=>{const n=document.activeElement;for(const i of e)if(Fh(i,t),document.activeElement!==n)return},Bz=dhe(),hhe=()=>tD.value>KN.value,mE=()=>{XN.value="pointer",tD.value=window.performance.now()},Rz=()=>{XN.value="keyboard",tD.value=window.performance.now()},phe=()=>(Oc(()=>{pE===0&&(document.addEventListener("mousedown",mE),document.addEventListener("touchstart",mE),document.addEventListener("keydown",Rz)),pE++}),Wp(()=>{pE--,pE<=0&&(document.removeEventListener("mousedown",mE),document.removeEventListener("touchstart",mE),document.removeEventListener("keydown",Rz))}),{focusReason:XN,lastUserFocusTimestamp:tD,lastAutomatedFocusTimestamp:KN}),_E=e=>new CustomEvent(rhe,{...she,detail:e}),mhe=ci({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Iz,Pz,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=bn();let i,o;const{focusReason:r}=phe();kfe(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:y,altKey:b,ctrlKey:C,metaKey:E,currentTarget:w,shiftKey:S}=p,{loop:P}=e,L=y===eD.tab&&!b&&!C&&!E,z=document.activeElement;if(L&&z){const R=w,[F,U]=lhe(R);if(F&&U){if(!S&&z===U){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(F,!0))}else if(S&&[F,R].includes(z)){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&Fh(U,!0))}}else if(z===R){const I=_E({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};nd(ahe,{focusTrapRef:n,onKeydown:a}),to(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),to([n],([p],[y])=>{p&&(p.addEventListener("keydown",a),p.addEventListener("focusin",d),p.addEventListener("focusout",h)),y&&(y.removeEventListener("keydown",a),y.removeEventListener("focusin",d),y.removeEventListener("focusout",h))});const c=p=>{t(Iz,p)},u=p=>t(Pz,p),d=p=>{const y=pe(n);if(!y)return;const b=p.target,C=p.relatedTarget,E=b&&y.contains(b);e.trapped||C&&y.contains(C)||(i=C),E&&t("focusin",p),!s.paused&&e.trapped&&(E?o=b:Fh(o,!0))},h=p=>{const y=pe(n);if(!(s.paused||!y))if(e.trapped){const b=p.relatedTarget;!Jv(b)&&!y.contains(b)&&setTimeout(()=>{if(!s.paused&&e.trapped){const C=_E({focusReason:r.value});t("focusout-prevented",C),C.defaultPrevented||Fh(o,!0)}},0)}else{const b=p.target;b&&y.contains(b)||t("focusout",p)}};async function m(){await us();const p=pe(n);if(p){Bz.push(s);const y=p.contains(document.activeElement)?i:document.activeElement;if(i=y,!p.contains(y)){const C=new Event(WI,Dz);p.addEventListener(WI,c),p.dispatchEvent(C),C.defaultPrevented||us(()=>{let E=e.focusStartEl;_i(E)||(Fh(E),document.activeElement!==E&&(E="first")),E==="first"&&fhe(LW(p),!0),(document.activeElement===y||E==="container")&&Fh(p)})}}}function g(){const p=pe(n);if(p){p.removeEventListener(WI,c);const y=new CustomEvent(jI,{...Dz,detail:{focusReason:r.value}});p.addEventListener(jI,u),p.dispatchEvent(y),!y.defaultPrevented&&(r.value=="keyboard"||!hhe())&&Fh(i??document.body),p.removeEventListener(jI,c),Bz.remove(s)}}return Oc(()=>{e.trapped&&m(),to(()=>e.trapped,p=>{p?m():g()})}),Wp(()=>{e.trapped&&g()}),{onKeydown:a}}});function _he(e,t,n,i,o,r){return Zn(e.$slots,"default",{handleKeydown:e.onKeydown})}var BW=Cs(mhe,[["render",_he],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const ghe=bs({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),yhe=["textContent"],Ahe=ci({name:"ElBadge"}),bhe=ci({...Ahe,props:ghe,setup(e,{expose:t}){const n=e,i=dr("badge"),o=tt(()=>n.isDot?"":wp(n.value)&&wp(n.max)?n.max(qe(),Dt("div",{class:st(pe(i).b())},[Zn(r.$slots,"default"),fn(S0,{name:`${pe(i).namespace.value}-zoom-in-center`,persisted:""},{default:an(()=>[eu(Vt("sup",{class:st([pe(i).e("content"),pe(i).em("content",r.type),pe(i).is("fixed",!!r.$slots.default),pe(i).is("dot",r.isDot)]),textContent:Pr(pe(o))},null,10,yhe),[[u_,!r.hidden&&(pe(o)||r.isDot)]])]),_:1},8,["name"])],2))}});var Che=Cs(bhe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const The=Wf(Che),Ehe=(e,t)=>{KL({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},tt(()=>e.type==="text"));const n=er(xW,void 0),i=jp("button"),{form:o}=lT(),r=mC(tt(()=>n==null?void 0:n.size)),s=qp(),a=bn(),c=aT(),u=tt(()=>e.type||(n==null?void 0:n.type)||""),d=tt(()=>{var g,p,y;return(y=(p=e.autoInsertSpace)!=null?p:(g=i.value)==null?void 0:g.autoInsertSpace)!=null?y:!1}),h=tt(()=>{var g;const p=(g=c.default)==null?void 0:g.call(c);if(d.value&&(p==null?void 0:p.length)===1){const y=p[0];if((y==null?void 0:y.type)===sT){const b=y.children;return/^\p{Unified_Ideograph}{2}$/u.test(b.trim())}}return!1});return{_disabled:s,_size:r,_type:u,_ref:a,shouldAddSpace:h,handleClick:g=>{e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",g)}}},xhe=["default","primary","success","warning","info","danger","text",""],whe=["button","submit","reset"],JL=bs({size:cT,disabled:Boolean,type:{type:String,values:xhe,default:""},icon:{type:r0},nativeType:{type:String,values:whe,default:"button"},loading:Boolean,loadingIcon:{type:r0,default:()=>yW},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),She={click:e=>e instanceof MouseEvent};function Ls(e,t){vhe(e)&&(e="100%");var n=Dhe(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function gE(e){return Math.min(1,Math.max(0,e))}function vhe(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Dhe(e){return typeof e=="string"&&e.indexOf("%")!==-1}function RW(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yE(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zm(e){return e.length===1?"0"+e:String(e)}function Ihe(e,t,n){return{r:Ls(e,255)*255,g:Ls(t,255)*255,b:Ls(n,255)*255}}function Nz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=0,a=(i+o)/2;if(i===o)s=0,r=0;else{var c=i-o;switch(s=a>.5?c/(2-i-o):c/(i+o),i){case e:r=(t-n)/c+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Phe(e,t,n){var i,o,r;if(e=Ls(e,360),t=Ls(t,100),n=Ls(n,100),t===0)o=n,r=n,i=n;else{var s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;i=qI(a,s,e+1/3),o=qI(a,s,e),r=qI(a,s,e-1/3)}return{r:i*255,g:o*255,b:r*255}}function Mz(e,t,n){e=Ls(e,255),t=Ls(t,255),n=Ls(n,255);var i=Math.max(e,t,n),o=Math.min(e,t,n),r=0,s=i,a=i-o,c=i===0?0:a/i;if(i===o)r=0;else{switch(i){case e:r=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var QL={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Nhe(e){var t={r:0,g:0,b:0},n=1,i=null,o=null,r=null,s=!1,a=!1;return typeof e=="string"&&(e=zhe(e)),typeof e=="object"&&(Ud(e.r)&&Ud(e.g)&&Ud(e.b)?(t=Ihe(e.r,e.g,e.b),s=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ud(e.h)&&Ud(e.s)&&Ud(e.v)?(i=yE(e.s),o=yE(e.v),t=Ohe(e.h,i,o),s=!0,a="hsv"):Ud(e.h)&&Ud(e.s)&&Ud(e.l)&&(i=yE(e.s),r=yE(e.l),t=Phe(e.h,i,r),s=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=RW(n),{ok:s,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var Mhe="[-\\+]?\\d+%?",Fhe="[-\\+]?\\d*\\.\\d+%?",Kh="(?:".concat(Fhe,")|(?:").concat(Mhe,")"),$I="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),YI="[\\s|\\(]+(".concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")[,|\\s]+(").concat(Kh,")\\s*\\)?"),zl={CSS_UNIT:new RegExp(Kh),rgb:new RegExp("rgb"+$I),rgba:new RegExp("rgba"+YI),hsl:new RegExp("hsl"+$I),hsla:new RegExp("hsla"+YI),hsv:new RegExp("hsv"+$I),hsva:new RegExp("hsva"+YI),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function zhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(QL[e])e=QL[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=zl.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=zl.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=zl.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=zl.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=zl.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=zl.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=zl.hex8.exec(e),n?{r:ec(n[1]),g:ec(n[2]),b:ec(n[3]),a:zz(n[4]),format:t?"name":"hex8"}:(n=zl.hex6.exec(e),n?{r:ec(n[1]),g:ec(n[2]),b:ec(n[3]),format:t?"name":"hex"}:(n=zl.hex4.exec(e),n?{r:ec(n[1]+n[1]),g:ec(n[2]+n[2]),b:ec(n[3]+n[3]),a:zz(n[4]+n[4]),format:t?"name":"hex8"}:(n=zl.hex3.exec(e),n?{r:ec(n[1]+n[1]),g:ec(n[2]+n[2]),b:ec(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Ud(e){return Boolean(zl.CSS_UNIT.exec(String(e)))}var Uhe=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var i;if(t instanceof e)return t;typeof t=="number"&&(t=Rhe(t)),this.originalInput=t;var o=Nhe(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(i=n.format)!==null&&i!==void 0?i:o.format,this.gradientType=n.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.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,i,o,r=t.r/255,s=t.g/255,a=t.b/255;return r<=.03928?n=r/12.92:n=Math.pow((r+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),a<=.03928?o=a/12.92:o=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*i+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=RW(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Mz(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Mz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsva(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Nz(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Nz(this.r,this.g,this.b),n=Math.round(t.h*360),i=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(i,"%, ").concat(o,"%)"):"hsla(".concat(n,", ").concat(i,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Fz(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),Lhe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),i=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(i,")"):"rgba(".concat(t,", ").concat(n,", ").concat(i,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Ls(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Ls(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Fz(this.r,this.g,this.b,!1),n=0,i=Object.entries(QL);n=0,r=!n&&o&&(t.startsWith("hex")||t==="name");return r?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(i=this.toRgbString()),t==="prgb"&&(i=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(i=this.toHexString()),t==="hex3"&&(i=this.toHexString(!0)),t==="hex4"&&(i=this.toHex8String(!0)),t==="hex8"&&(i=this.toHex8String()),t==="name"&&(i=this.toName()),t==="hsl"&&(i=this.toHslString()),t==="hsv"&&(i=this.toHsvString()),i||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=gE(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=gE(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=gE(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=gE(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),i=(n.h+t)%360;return n.h=i<0?360+i:i,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var i=this.toRgb(),o=new e(t).toRgb(),r=n/100,s={r:(o.r-i.r)*r+i.r,g:(o.g-i.g)*r+i.g,b:(o.b-i.b)*r+i.b,a:(o.a-i.a)*r+i.a};return new e(s)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var i=this.toHsl(),o=360/n,r=[this];for(i.h=(i.h-(o*t>>1)+720)%360;--t;)i.h=(i.h+o)%360,r.push(new e(i));return r},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),i=n.h,o=n.s,r=n.v,s=[],a=1/t;t--;)s.push(new e({h:i,s:o,v:r})),r=(r+a)%1;return s},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),i=new e(t).toRgb();return new e({r:i.r+(n.r-i.r)*n.a,g:i.g+(n.g-i.g)*n.a,b:i.b+(n.b-i.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),i=n.h,o=[this],r=360/t,s=1;s{let i={};const o=e.color;if(o){const r=new Uhe(o),s=e.dark?r.tint(20).toString():ph(r,20);if(e.plain)i=n.cssVarBlock({"bg-color":e.dark?ph(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?ph(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(i[n.cssVarBlockName("disabled-bg-color")]=e.dark?ph(r,90):r.tint(90).toString(),i[n.cssVarBlockName("disabled-text-color")]=e.dark?ph(r,50):r.tint(50).toString(),i[n.cssVarBlockName("disabled-border-color")]=e.dark?ph(r,80):r.tint(80).toString());else{const a=e.dark?ph(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(i=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":s,"active-border-color":s}),t.value){const u=e.dark?ph(r,50):r.tint(50).toString();i[n.cssVarBlockName("disabled-bg-color")]=u,i[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,i[n.cssVarBlockName("disabled-border-color")]=u}}}return i})}const Vhe=["aria-disabled","disabled","autofocus","type"],khe=ci({name:"ElButton"}),Ghe=ci({...khe,props:JL,emits:She,setup(e,{expose:t,emit:n}){const i=e,o=Hhe(i),r=dr("button"),{_ref:s,_size:a,_type:c,_disabled:u,shouldAddSpace:d,handleClick:h}=Ehe(i,n);return t({ref:s,size:a,type:c,disabled:u,shouldAddSpace:d}),(m,g)=>(qe(),Dt("button",{ref_key:"_ref",ref:s,class:st([pe(r).b(),pe(r).m(pe(c)),pe(r).m(pe(a)),pe(r).is("disabled",pe(u)),pe(r).is("loading",m.loading),pe(r).is("plain",m.plain),pe(r).is("round",m.round),pe(r).is("circle",m.circle),pe(r).is("text",m.text),pe(r).is("link",m.link),pe(r).is("has-bg",m.bg)]),"aria-disabled":pe(u)||m.loading,disabled:pe(u)||m.loading,autofocus:m.autofocus,type:m.nativeType,style:Ds(pe(o)),onClick:g[0]||(g[0]=(...p)=>pe(h)&&pe(h)(...p))},[m.loading?(qe(),Dt(Jo,{key:0},[m.$slots.loading?Zn(m.$slots,"loading",{key:0}):(qe(),Dn(pe(ss),{key:1,class:st(pe(r).is("loading"))},{default:an(()=>[(qe(),Dn(Ia(m.loadingIcon)))]),_:1},8,["class"]))],64)):m.icon||m.$slots.icon?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[m.icon?(qe(),Dn(Ia(m.icon),{key:0})):Zn(m.$slots,"icon",{key:1})]),_:3})):Mt("v-if",!0),m.$slots.default?(qe(),Dt("span",{key:2,class:st({[pe(r).em("text","expand")]:pe(d)})},[Zn(m.$slots,"default")],2)):Mt("v-if",!0)],14,Vhe))}});var Whe=Cs(Ghe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const jhe={size:JL.size,type:JL.type},qhe=ci({name:"ElButtonGroup"}),$he=ci({...qhe,props:jhe,setup(e){const t=e;nd(xW,W_({size:e0(t,"size"),type:e0(t,"type")}));const n=dr("button");return(i,o)=>(qe(),Dt("div",{class:st(`${pe(n).b("group")}`)},[Zn(i.$slots,"default")],2))}});var NW=Cs($he,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const MW=Wf(Whe,{ButtonGroup:NW});GN(NW);var By=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const ZL="_trap-focus-children",e_=[],Uz=e=>{if(e_.length===0)return;const t=e_[e_.length-1][ZL];if(t.length>0&&e.code===eD.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,i=e.target===t[0],o=e.target===t[t.length-1];i&&n&&(e.preventDefault(),t[t.length-1].focus()),o&&!n&&(e.preventDefault(),t[0].focus())}},Yhe={beforeMount(e){e[ZL]=_z(e),e_.push(e),e_.length<=1&&document.addEventListener("keydown",Uz)},updated(e){us(()=>{e[ZL]=_z(e)})},unmounted(){e_.shift(),e_.length===0&&document.removeEventListener("keydown",Uz)}},FW={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:cT,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},zW={[If]:e=>_i(e)||wp(e)||PS(e),change:e=>_i(e)||wp(e)||PS(e)},Xhe=({model:e,isChecked:t})=>{const n=er(D0,void 0),i=tt(()=>{var r,s;const a=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(s=n==null?void 0:n.min)==null?void 0:s.value;return!fC(a)&&e.value.length>=a&&!t.value||!fC(c)&&e.value.length<=c&&t.value});return{isDisabled:qp(tt(()=>(n==null?void 0:n.disabled.value)||i.value)),isLimitDisabled:i}},Khe=(e,{model:t,isLimitExceeded:n,hasOwnLabel:i,isDisabled:o,isLabeledByFormItem:r})=>{const s=er(D0,void 0),{formItem:a}=lT(),{emit:c}=Lc();function u(p){var y,b;return p===e.trueLabel||p===!0?(y=e.trueLabel)!=null?y:!0:(b=e.falseLabel)!=null?b:!1}function d(p,y){c("change",u(p),y)}function h(p){if(n.value)return;const y=p.target;c("change",u(y.checked),p)}async function m(p){n.value||!i.value&&!o.value&&r.value&&(p.composedPath().some(C=>C.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await us(),d(t.value,p)))}const g=tt(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return to(()=>e.modelValue,()=>{g.value&&(a==null||a.validate("change").catch(p=>void 0))}),{handleChange:h,onClickRoot:m}},Jhe=e=>{const t=bn(!1),{emit:n}=Lc(),i=er(D0,void 0),o=tt(()=>fC(i)===!1),r=bn(!1);return{model:tt({get(){var a,c;return o.value?(a=i==null?void 0:i.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c,u;o.value&&Yt(a)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&a.length>(i==null?void 0:i.max.value),r.value===!1&&((u=i==null?void 0:i.changeEvent)==null||u.call(i,a))):(n(If,a),t.value=a)}}),isGroup:o,isLimitExceeded:r}},Qhe=(e,t,{model:n})=>{const i=er(D0,void 0),o=bn(!1),r=tt(()=>{const u=n.value;return PS(u)?u:Yt(u)?Di(e.label)?u.map(Ci).some(d=>yue(d,e.label)):u.map(Ci).includes(e.label):u!=null?u===e.trueLabel:!!u}),s=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value}),{prop:!0}),a=mC(tt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value})),c=tt(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:r,isFocused:o,checkboxSize:a,hasOwnLabel:c}},Zhe=(e,{model:t})=>{function n(){Yt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},UW=(e,t)=>{const{formItem:n}=lT(),{model:i,isGroup:o,isLimitExceeded:r}=Jhe(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d}=Qhe(e,t,{model:i}),{isDisabled:h}=Xhe({model:i,isChecked:a}),{inputId:m,isLabeledByFormItem:g}=qN(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:p,onClickRoot:y}=Khe(e,{model:i,isLimitExceeded:r,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:g});return Zhe(e,{model:i}),{inputId:m,isLabeledByFormItem:g,isChecked:a,isDisabled:h,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:d,model:i,handleChange:p,onClickRoot:y}},epe=["tabindex","role","aria-checked"],tpe=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],npe=["id","aria-hidden","disabled","value","name","tabindex"],ipe=ci({name:"ElCheckbox"}),ope=ci({...ipe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{inputId:i,isLabeledByFormItem:o,isChecked:r,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:d,handleChange:h,onClickRoot:m}=UW(t,n),g=dr("checkbox"),p=tt(()=>[g.b(),g.m(c.value),g.is("disabled",s.value),g.is("bordered",t.border),g.is("checked",r.value)]),y=tt(()=>[g.e("input"),g.is("disabled",s.value),g.is("checked",r.value),g.is("indeterminate",t.indeterminate),g.is("focus",a.value)]);return(b,C)=>(qe(),Dn(Ia(!pe(u)&&pe(o)?"span":"label"),{class:st(pe(p)),"aria-controls":b.indeterminate?b.controls:null,onClick:pe(m)},{default:an(()=>[Vt("span",{class:st(pe(y)),tabindex:b.indeterminate?0:void 0,role:b.indeterminate?"checkbox":void 0,"aria-checked":b.indeterminate?"mixed":void 0},[b.trueLabel||b.falseLabel?eu((qe(),Dt("input",{key:0,id:pe(i),"onUpdate:modelValue":C[0]||(C[0]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",name:b.name,tabindex:b.tabindex,disabled:pe(s),"true-value":b.trueLabel,"false-value":b.falseLabel,onChange:C[1]||(C[1]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[2]||(C[2]=E=>a.value=!0),onBlur:C[3]||(C[3]=E=>a.value=!1)},null,42,tpe)),[[xS,pe(d)]]):eu((qe(),Dt("input",{key:1,id:pe(i),"onUpdate:modelValue":C[4]||(C[4]=E=>So(d)?d.value=E:null),class:st(pe(g).e("original")),type:"checkbox","aria-hidden":b.indeterminate?"true":"false",disabled:pe(s),value:b.label,name:b.name,tabindex:b.tabindex,onChange:C[5]||(C[5]=(...E)=>pe(h)&&pe(h)(...E)),onFocus:C[6]||(C[6]=E=>a.value=!0),onBlur:C[7]||(C[7]=E=>a.value=!1)},null,42,npe)),[[xS,pe(d)]]),Vt("span",{class:st(pe(g).e("inner"))},null,2)],10,epe),pe(u)?(qe(),Dt("span",{key:0,class:st(pe(g).e("label"))},[Zn(b.$slots,"default"),b.$slots.default?Mt("v-if",!0):(qe(),Dt(Jo,{key:0},[$l(Pr(b.label),1)],64))],2)):Mt("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var rpe=Cs(ope,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const spe=["name","tabindex","disabled","true-value","false-value"],ape=["name","tabindex","disabled","value"],cpe=ci({name:"ElCheckboxButton"}),lpe=ci({...cpe,props:FW,emits:zW,setup(e){const t=e,n=aT(),{isFocused:i,isChecked:o,isDisabled:r,checkboxButtonSize:s,model:a,handleChange:c}=UW(t,n),u=er(D0,void 0),d=dr("checkbox"),h=tt(()=>{var g,p,y,b;const C=(p=(g=u==null?void 0:u.fill)==null?void 0:g.value)!=null?p:"";return{backgroundColor:C,borderColor:C,color:(b=(y=u==null?void 0:u.textColor)==null?void 0:y.value)!=null?b:"",boxShadow:C?`-1px 0 0 0 ${C}`:void 0}}),m=tt(()=>[d.b("button"),d.bm("button",s.value),d.is("disabled",r.value),d.is("checked",o.value),d.is("focus",i.value)]);return(g,p)=>(qe(),Dt("label",{class:st(pe(m))},[g.trueLabel||g.falseLabel?eu((qe(),Dt("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:p[1]||(p[1]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[2]||(p[2]=y=>i.value=!0),onBlur:p[3]||(p[3]=y=>i.value=!1)},null,42,spe)),[[xS,pe(a)]]):eu((qe(),Dt("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=y=>So(a)?a.value=y:null),class:st(pe(d).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:pe(r),value:g.label,onChange:p[5]||(p[5]=(...y)=>pe(c)&&pe(c)(...y)),onFocus:p[6]||(p[6]=y=>i.value=!0),onBlur:p[7]||(p[7]=y=>i.value=!1)},null,42,ape)),[[xS,pe(a)]]),g.$slots.default||g.label?(qe(),Dt("span",{key:2,class:st(pe(d).be("button","inner")),style:Ds(pe(o)?pe(h):void 0)},[Zn(g.$slots,"default",{},()=>[$l(Pr(g.label),1)])],6)):Mt("v-if",!0)],2))}});var HW=Cs(lpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const upe=bs({modelValue:{type:Qn(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:cT,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),dpe={[If]:e=>Yt(e),change:e=>Yt(e)},fpe=ci({name:"ElCheckboxGroup"}),hpe=ci({...fpe,props:upe,emits:dpe,setup(e,{emit:t}){const n=e,i=dr("checkbox"),{formItem:o}=lT(),{inputId:r,isLabeledByFormItem:s}=qN(n,{formItemContext:o}),a=async u=>{t(If,u),await us(),t("change",u)},c=tt({get(){return n.modelValue},set(u){a(u)}});return nd(D0,{...Eue(K6(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),to(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,d)=>{var h;return qe(),Dn(Ia(u.tag),{id:pe(r),class:st(pe(i).b("group")),role:"group","aria-label":pe(s)?void 0:u.label||"checkbox-group","aria-labelledby":pe(s)?(h=pe(o))==null?void 0:h.labelId:void 0},{default:an(()=>[Zn(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var VW=Cs(hpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ppe=Wf(rpe,{CheckboxButton:HW,CheckboxGroup:VW});GN(HW);const mpe=GN(VW),eB={},_pe=bs({a11y:{type:Boolean,default:!0},locale:{type:Qn(Object)},size:cT,button:{type:Qn(Object)},experimentalFeatures:{type:Qn(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Qn(Object)},zIndex:Number,namespace:{type:String,default:"el"}});ci({name:"ElConfigProvider",props:_pe,setup(e,{slots:t}){to(()=>e.message,i=>{Object.assign(eB,i??{})},{immediate:!0,deep:!0});const n=Ofe(e);return()=>Zn(t,"default",{config:n==null?void 0:n.value})}});const gpe=bs({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Qn([String,Array,Object])},zIndex:{type:Qn([String,Number])}}),ype={click:e=>e instanceof MouseEvent};var Ape=ci({name:"ElOverlay",props:gpe,emits:ype,setup(e,{slots:t,emit:n}){const i=dr("overlay"),o=c=>{n("click",c)},{onClick:r,onMousedown:s,onMouseup:a}=PW(e.customMaskEvent?void 0:o);return()=>e.mask?fn("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:a},[Zn(t,"default")],vw.STYLE|vw.CLASS|vw.PROPS,["onClick","onMouseup","onMousedown"]):qv("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Zn(t,"default")])}});const kW=Ape,bpe=bs({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:r0},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Cpe=bs({...bpe,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Qn(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Tpe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[If]:e=>PS(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Epe=(e,t)=>{const i=Lc().emit,{nextZIndex:o}=YN();let r="";const s=_C(),a=_C(),c=bn(!1),u=bn(!1),d=bn(!1),h=bn(e.zIndex||o());let m,g;const p=jp("namespace",jN),y=tt(()=>{const v={},O=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(v[`${O}-margin-top`]=e.top),e.width&&(v[`${O}-width`]=hC(e.width))),v}),b=tt(()=>e.alignCenter?{display:"flex"}:{});function C(){i("opened")}function E(){i("closed"),i(If,!1),e.destroyOnClose&&(d.value=!1)}function w(){i("close")}function S(){g==null||g(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=qL(()=>R(),e.openDelay):R()}function P(){m==null||m(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=qL(()=>F(),e.closeDelay):F()}function L(){function v(O){O||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(v):P()}function z(){e.closeOnClickModal&&L()}function R(){Cc&&(c.value=!0)}function F(){c.value=!1}function U(){i("openAutoFocus")}function D(){i("closeAutoFocus")}function I(v){var O;((O=v.detail)==null?void 0:O.focusReason)==="pointer"&&v.preventDefault()}e.lockScroll&&IW(c);function _(){e.closeOnPressEscape&&L()}return to(()=>e.modelValue,v=>{v?(u.value=!1,S(),d.value=!0,h.value=e.zIndex?h.value++:o(),us(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):c.value&&P()}),to(()=>e.fullscreen,v=>{t.value&&(v?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),Oc(()=>{e.modelValue&&(c.value=!0,d.value=!0,S())}),{afterEnter:C,afterLeave:E,beforeLeave:w,handleClose:L,onModalClick:z,close:P,doClose:F,onOpenAutoFocus:U,onCloseAutoFocus:D,onCloseRequested:_,onFocusoutPrevented:I,titleId:s,bodyId:a,closed:u,style:y,overlayDialogStyle:b,rendered:d,visible:c,zIndex:h}},xpe=bs({...Cpe,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),wpe=Tpe,Spe=ci({name:"ElDrawer",components:{ElOverlay:kW,ElFocusTrap:BW,ElIcon:ss,Close:Zv},inheritAttrs:!1,props:xpe,emits:wpe,setup(e,{slots:t}){KL({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},tt(()=>!!t.title)),KL({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},tt(()=>!!e.customClass));const n=bn(),i=bn(),o=dr("drawer"),{t:r}=$N(),s=tt(()=>e.direction==="rtl"||e.direction==="ltr"),a=tt(()=>hC(e.size));return{...Epe(e,n),drawerRef:n,focusStartRef:i,isHorizontal:s,drawerSize:a,ns:o,t:r}}}),vpe=["aria-label","aria-labelledby","aria-describedby"],Dpe=["id"],Ipe=["aria-label"],Ppe=["id"];function Ope(e,t,n,i,o,r){const s=Wu("close"),a=Wu("el-icon"),c=Wu("el-focus-trap"),u=Wu("el-overlay");return qe(),Dn(Ioe,{to:"body",disabled:!e.appendToBody},[fn(S0,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:an(()=>[eu(fn(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:an(()=>[fn(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",cp({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=cc(()=>{},["stop"]))}),[Vt("span",{ref:"focusStartRef",class:st(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(qe(),Dt("header",{key:0,class:st(e.ns.e("header"))},[e.$slots.title?Zn(e.$slots,"title",{key:1},()=>[Mt(" DEPRECATED SLOT ")]):Zn(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?Mt("v-if",!0):(qe(),Dt("span",{key:0,id:e.titleId,role:"heading",class:st(e.ns.e("title"))},Pr(e.title),11,Dpe))]),e.showClose?(qe(),Dt("button",{key:2,"aria-label":e.t("el.drawer.close"),class:st(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...d)=>e.handleClose&&e.handleClose(...d))},[fn(a,{class:st(e.ns.e("close"))},{default:an(()=>[fn(s)]),_:1},8,["class"])],10,Ipe)):Mt("v-if",!0)],2)):Mt("v-if",!0),e.rendered?(qe(),Dt("div",{key:1,id:e.bodyId,class:st(e.ns.e("body"))},[Zn(e.$slots,"default")],10,Ppe)):Mt("v-if",!0),e.$slots.footer?(qe(),Dt("div",{key:2,class:st(e.ns.e("footer"))},[Zn(e.$slots,"footer")],2)):Mt("v-if",!0)],16,vpe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[u_,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Lpe=Cs(Spe,[["render",Ope],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Bpe=Wf(Lpe),Rpe=bs({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Qn(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Qn([String,Array,Function]),default:""},format:{type:Qn(Function),default:e=>`${e}%`}}),Npe=["aria-valuenow"],Mpe={viewBox:"0 0 100 100"},Fpe=["d","stroke","stroke-width"],zpe=["d","stroke","opacity","stroke-linecap","stroke-width"],Upe={key:0},Hpe=ci({name:"ElProgress"}),Vpe=ci({...Hpe,props:Rpe,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},i=dr("progress"),o=tt(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:E(t.percentage)})),r=tt(()=>(t.strokeWidth/t.width*100).toFixed(1)),s=tt(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(r.value)/2}`,10):0),a=tt(()=>{const w=s.value,S=t.type==="dashboard";return` - M 50 50 - m 0 ${S?"":"-"}${w} - a ${w} ${w} 0 1 1 0 ${S?"-":""}${w*2} - a ${w} ${w} 0 1 1 0 ${S?"":"-"}${w*2} - `}),c=tt(()=>2*Math.PI*s.value),u=tt(()=>t.type==="dashboard"?.75:1),d=tt(()=>`${-1*c.value*(1-u.value)/2}px`),h=tt(()=>({strokeDasharray:`${c.value*u.value}px, ${c.value}px`,strokeDashoffset:d.value})),m=tt(()=>({strokeDasharray:`${c.value*u.value*(t.percentage/100)}px, ${c.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=tt(()=>{let w;return t.color?w=E(t.percentage):w=n[t.status]||n.default,w}),p=tt(()=>t.status==="warning"?kN:t.type==="line"?t.status==="success"?HN:VN:t.status==="success"?mW:Zv),y=tt(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),b=tt(()=>t.format(t.percentage));function C(w){const S=100/w.length;return w.map((L,z)=>_i(L)?{color:L,percentage:(z+1)*S}:L).sort((L,z)=>L.percentage-z.percentage)}const E=w=>{var S;const{color:P}=t;if(En(P))return P(w);if(_i(P))return P;{const L=C(P);for(const z of L)if(z.percentage>w)return z.color;return(S=L[L.length-1])==null?void 0:S.color}};return(w,S)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(w.type),pe(i).is(w.status),{[pe(i).m("without-text")]:!w.showText,[pe(i).m("text-inside")]:w.textInside}]),role:"progressbar","aria-valuenow":w.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[w.type==="line"?(qe(),Dt("div",{key:0,class:st(pe(i).b("bar"))},[Vt("div",{class:st(pe(i).be("bar","outer")),style:Ds({height:`${w.strokeWidth}px`})},[Vt("div",{class:st([pe(i).be("bar","inner"),{[pe(i).bem("bar","inner","indeterminate")]:w.indeterminate}]),style:Ds(pe(o))},[(w.showText||w.$slots.default)&&w.textInside?(qe(),Dt("div",{key:0,class:st(pe(i).be("bar","innerText"))},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[Vt("span",null,Pr(pe(b)),1)])],2)):Mt("v-if",!0)],6)],6)],2)):(qe(),Dt("div",{key:1,class:st(pe(i).b("circle")),style:Ds({height:`${w.width}px`,width:`${w.width}px`})},[(qe(),Dt("svg",Mpe,[Vt("path",{class:st(pe(i).be("circle","track")),d:pe(a),stroke:`var(${pe(i).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":pe(r),fill:"none",style:Ds(pe(h))},null,14,Fpe),Vt("path",{class:st(pe(i).be("circle","path")),d:pe(a),stroke:pe(g),fill:"none",opacity:w.percentage?1:0,"stroke-linecap":w.strokeLinecap,"stroke-width":pe(r),style:Ds(pe(m))},null,14,zpe)]))],6)),(w.showText||w.$slots.default)&&!w.textInside?(qe(),Dt("div",{key:2,class:st(pe(i).e("text")),style:Ds({fontSize:`${pe(y)}px`})},[Zn(w.$slots,"default",{percentage:w.percentage},()=>[w.status?(qe(),Dn(pe(ss),{key:1},{default:an(()=>[(qe(),Dn(Ia(pe(p))))]),_:1})):(qe(),Dt("span",Upe,Pr(pe(b)),1))])],6)):Mt("v-if",!0)],10,Npe))}});var kpe=Cs(Vpe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const Gpe=Wf(kpe),Wpe=["start","center","end","space-around","space-between","space-evenly"],jpe=["top","middle","bottom"],qpe=bs({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Wpe,default:"start"},align:{type:String,values:jpe,default:"top"}}),$pe=ci({name:"ElRow"}),Ype=ci({...$pe,props:qpe,setup(e){const t=e,n=dr("row"),i=tt(()=>t.gutter);nd(Pfe,{gutter:i});const o=tt(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=tt(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(s,a)=>(qe(),Dn(Ia(s.tag),{class:st(pe(r)),style:Ds(pe(o))},{default:an(()=>[Zn(s.$slots,"default")]),_:3},8,["class","style"]))}});var Xpe=Cs(Ype,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Kpe=Wf(Xpe),Jpe="ElUpload";class Qpe extends Error{constructor(t,n,i,o){super(t),this.name="UploadAjaxError",this.status=n,this.method=i,this.url=o}}function Hz(e,t,n){let i;return n.response?i=`${n.response.error||n.response}`:n.responseText?i=`${n.responseText}`:i=`fail to ${t.method} ${e} ${n.status}`,new Qpe(i,n.status,t.method,e)}function Zpe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const eme=e=>{typeof XMLHttpRequest>"u"&&Qv(Jpe,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",r=>{const s=r;s.percent=r.total>0?r.loaded/r.total*100:0,e.onProgress(s)});const i=new FormData;if(e.data)for(const[r,s]of Object.entries(e.data))Array.isArray(s)?i.append(r,...s):i.append(r,s);i.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Hz(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Hz(n,e,t));e.onSuccess(Zpe(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((r,s)=>t.setRequestHeader(s,r));else for(const[r,s]of Object.entries(o))Jv(s)||t.setRequestHeader(r,String(s));return t.send(i),t},GW=["text","picture","picture-card"];let tme=1;const tB=()=>Date.now()+tme++,WW=bs({action:{type:String,default:"#"},headers:{type:Qn(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>pC({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Qn(Array),default:()=>pC([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:GW,default:"text"},httpRequest:{type:Qn(Function),default:eme},disabled:Boolean,limit:Number}),nme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},beforeRemove:{type:Qn(Function)},onRemove:{type:Qn(Function),default:Bi},onChange:{type:Qn(Function),default:Bi},onPreview:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),ime=bs({files:{type:Qn(Array),default:()=>pC([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Qn(Function),default:Bi},listType:{type:String,values:GW,default:"text"}}),ome={remove:e=>!!e},rme=["onKeydown"],sme=["src"],ame=["onClick"],cme=["onClick"],lme=["onClick"],ume=ci({name:"ElUploadList"}),dme=ci({...ume,props:ime,emits:ome,setup(e,{emit:t}){const{t:n}=$N(),i=dr("upload"),o=dr("icon"),r=dr("list"),s=qp(),a=bn(!1),c=u=>{t("remove",u)};return(u,d)=>(qe(),Dn(dre,{tag:"ul",class:st([pe(i).b("list"),pe(i).bm("list",u.listType),pe(i).is("disabled",pe(s))]),name:pe(r).b()},{default:an(()=>[(qe(!0),Dt(Jo,null,h9(u.files,h=>(qe(),Dt("li",{key:h.uid||h.name,class:st([pe(i).be("list","item"),pe(i).is(h.status),{focusing:a.value}]),tabindex:"0",onKeydown:by(m=>!pe(s)&&c(h),["delete"]),onFocus:d[0]||(d[0]=m=>a.value=!0),onBlur:d[1]||(d[1]=m=>a.value=!1),onClick:d[2]||(d[2]=m=>a.value=!1)},[Zn(u.$slots,"default",{file:h},()=>[u.listType==="picture"||h.status!=="uploading"&&u.listType==="picture-card"?(qe(),Dt("img",{key:0,class:st(pe(i).be("list","item-thumbnail")),src:h.url,alt:""},null,10,sme)):Mt("v-if",!0),h.status==="uploading"||u.listType!=="picture-card"?(qe(),Dt("div",{key:1,class:st(pe(i).be("list","item-info"))},[Vt("a",{class:st(pe(i).be("list","item-name")),onClick:cc(m=>u.handlePreview(h),["prevent"])},[fn(pe(ss),{class:st(pe(o).m("document"))},{default:an(()=>[fn(pe(Mde))]),_:1},8,["class"]),Vt("span",{class:st(pe(i).be("list","item-file-name"))},Pr(h.name),3)],10,ame),h.status==="uploading"?(qe(),Dn(pe(Gpe),{key:0,type:u.listType==="picture-card"?"circle":"line","stroke-width":u.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Ds(u.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("label",{class:st(pe(i).be("list","item-status-label"))},[u.listType==="text"?(qe(),Dn(pe(ss),{key:0,class:st([pe(o).m("upload-success"),pe(o).m("circle-check")])},{default:an(()=>[fn(pe(HN))]),_:1},8,["class"])):["picture-card","picture"].includes(u.listType)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).m("upload-success"),pe(o).m("check")])},{default:an(()=>[fn(pe(mW))]),_:1},8,["class"])):Mt("v-if",!0)],2),pe(s)?Mt("v-if",!0):(qe(),Dn(pe(ss),{key:2,class:st(pe(o).m("close")),onClick:m=>c(h)},{default:an(()=>[fn(pe(Zv))]),_:2},1032,["class","onClick"])),Mt(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),Mt(" This is a bug which needs to be fixed "),Mt(" TODO: Fix the incorrect navigation interaction "),pe(s)?Mt("v-if",!0):(qe(),Dt("i",{key:3,class:st(pe(o).m("close-tip"))},Pr(pe(n)("el.upload.deleteTip")),3)),u.listType==="picture-card"?(qe(),Dt("span",{key:4,class:st(pe(i).be("list","item-actions"))},[Vt("span",{class:st(pe(i).be("list","item-preview")),onClick:m=>u.handlePreview(h)},[fn(pe(ss),{class:st(pe(o).m("zoom-in"))},{default:an(()=>[fn(pe(Cfe))]),_:1},8,["class"])],10,cme),pe(s)?Mt("v-if",!0):(qe(),Dt("span",{key:0,class:st(pe(i).be("list","item-delete")),onClick:m=>c(h)},[fn(pe(ss),{class:st(pe(o).m("delete"))},{default:an(()=>[fn(pe(Pde))]),_:1},8,["class"])],10,lme))],2)):Mt("v-if",!0)])],42,rme))),128)),Zn(u.$slots,"append")]),_:3},8,["class","name"]))}});var Vz=Cs(dme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const fme=bs({disabled:{type:Boolean,default:!1}}),hme={file:e=>Yt(e)},pme=["onDrop","onDragover"],jW="ElUploadDrag",mme=ci({name:jW}),_me=ci({...mme,props:fme,emits:hme,setup(e,{emit:t}){const n=er(vW);n||Qv(jW,"usage: ");const i=dr("upload"),o=bn(!1),r=qp(),s=c=>{if(r.value)return;o.value=!1;const u=Array.from(c.dataTransfer.files),d=n.accept.value;if(!d){t("file",u);return}const h=u.filter(m=>{const{type:g,name:p}=m,y=p.includes(".")?`.${p.split(".").pop()}`:"",b=g.replace(/\/.*$/,"");return d.split(",").map(C=>C.trim()).filter(C=>C).some(C=>C.startsWith(".")?y===C:/\/\*$/.test(C)?b===C.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(C)?g===C:!1)});t("file",h)},a=()=>{r.value||(o.value=!0)};return(c,u)=>(qe(),Dt("div",{class:st([pe(i).b("dragger"),pe(i).is("dragover",o.value)]),onDrop:cc(s,["prevent"]),onDragover:cc(a,["prevent"]),onDragleave:u[0]||(u[0]=cc(d=>o.value=!1,["prevent"]))},[Zn(c.$slots,"default")],42,pme))}});var gme=Cs(_me,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const yme=bs({...WW,beforeUpload:{type:Qn(Function),default:Bi},onRemove:{type:Qn(Function),default:Bi},onStart:{type:Qn(Function),default:Bi},onSuccess:{type:Qn(Function),default:Bi},onProgress:{type:Qn(Function),default:Bi},onError:{type:Qn(Function),default:Bi},onExceed:{type:Qn(Function),default:Bi}}),Ame=["onKeydown"],bme=["name","multiple","accept"],Cme=ci({name:"ElUploadContent",inheritAttrs:!1}),Tme=ci({...Cme,props:yme,setup(e,{expose:t}){const n=e,i=dr("upload"),o=qp(),r=c_({}),s=c_(),a=p=>{if(p.length===0)return;const{autoUpload:y,limit:b,fileList:C,multiple:E,onStart:w,onExceed:S}=n;if(b&&C.length+p.length>b){S(p,C);return}E||(p=p.slice(0,1));for(const P of p){const L=P;L.uid=tB(),w(L),y&&c(L)}},c=async p=>{if(s.value.value="",!n.beforeUpload)return u(p);let y;try{y=await n.beforeUpload(p)}catch{y=!1}if(y===!1){n.onRemove(p);return}let b=p;y instanceof Blob&&(y instanceof File?b=y:b=new File([y],p.name,{type:p.type})),u(Object.assign(b,{uid:p.uid}))},u=p=>{const{headers:y,data:b,method:C,withCredentials:E,name:w,action:S,onProgress:P,onSuccess:L,onError:z,httpRequest:R}=n,{uid:F}=p,U={headers:y||{},withCredentials:E,file:p,data:b,method:C,filename:w,action:S,onProgress:I=>{P(I,p)},onSuccess:I=>{L(I,p),delete r.value[F]},onError:I=>{z(I,p),delete r.value[F]}},D=R(U);r.value[F]=D,D instanceof Promise&&D.then(U.onSuccess,U.onError)},d=p=>{const y=p.target.files;y&&a(Array.from(y))},h=()=>{o.value||(s.value.value="",s.value.click())},m=()=>{h()};return t({abort:p=>{que(r.value).filter(p?([b])=>String(p.uid)===b:()=>!0).forEach(([b,C])=>{C instanceof XMLHttpRequest&&C.abort(),delete r.value[b]})},upload:c}),(p,y)=>(qe(),Dt("div",{class:st([pe(i).b(),pe(i).m(p.listType),pe(i).is("drag",p.drag)]),tabindex:"0",onClick:h,onKeydown:by(cc(m,["self"]),["enter","space"])},[p.drag?(qe(),Dn(gme,{key:0,disabled:pe(o),onFile:a},{default:an(()=>[Zn(p.$slots,"default")]),_:3},8,["disabled"])):Zn(p.$slots,"default",{key:1}),Vt("input",{ref_key:"inputRef",ref:s,class:st(pe(i).e("input")),name:p.name,multiple:p.multiple,accept:p.accept,type:"file",onChange:d,onClick:y[0]||(y[0]=cc(()=>{},["stop"]))},null,42,bme)],42,Ame))}});var kz=Cs(Tme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const Gz="ElUpload",Eme=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},xme=(e,t)=>{const n=Wue(e,"fileList",void 0,{passive:!0}),i=m=>n.value.find(g=>g.uid===m.uid);function o(m){var g;(g=t.value)==null||g.abort(m)}function r(m=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!m.includes(g.status))}const s=(m,g)=>{const p=i(g);p&&(console.error(m),p.status="fail",n.value.splice(n.value.indexOf(p),1),e.onError(m,p,n.value),e.onChange(p,n.value))},a=(m,g)=>{const p=i(g);p&&(e.onProgress(m,p,n.value),p.status="uploading",p.percentage=Math.round(m.percent))},c=(m,g)=>{const p=i(g);p&&(p.status="success",p.response=m,e.onSuccess(m,p,n.value),e.onChange(p,n.value))},u=m=>{Jv(m.uid)&&(m.uid=tB());const g={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(m)}catch(p){p.message,e.onError(p,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},d=async m=>{const g=m instanceof File?i(m):m;g||Qv(Gz,"file to be removed not found");const p=y=>{o(y);const b=n.value;b.splice(b.indexOf(y),1),e.onRemove(y,b),Eme(y)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&p(g):p(g)};function h(){n.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var g;return m&&((g=t.value)==null?void 0:g.upload(m))})}return to(()=>e.listType,m=>{m!=="picture-card"&&m!=="picture"||(n.value=n.value.map(g=>{const{raw:p,url:y}=g;if(!y&&p)try{g.url=URL.createObjectURL(p)}catch(b){e.onError(b,g,n.value)}return g}))}),to(n,m=>{for(const g of m)g.uid||(g.uid=tB()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:r,handleError:s,handleProgress:a,handleStart:u,handleSuccess:c,handleRemove:d,submit:h}},wme=ci({name:"ElUpload"}),Sme=ci({...wme,props:nme,setup(e,{expose:t}){const n=e,i=aT(),o=qp(),r=c_(),{abort:s,submit:a,clearFiles:c,uploadFiles:u,handleStart:d,handleError:h,handleRemove:m,handleSuccess:g,handleProgress:p}=xme(n,r),y=tt(()=>n.listType==="picture-card"),b=tt(()=>({...n,fileList:u.value,onStart:d,onProgress:p,onSuccess:g,onError:h,onRemove:m}));return Wp(()=>{u.value.forEach(({url:C})=>{C!=null&&C.startsWith("blob:")&&URL.revokeObjectURL(C)})}),nd(vW,{accept:e0(n,"accept")}),t({abort:s,submit:a,clearFiles:c,handleStart:d,handleRemove:m}),(C,E)=>(qe(),Dt("div",null,[pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:0,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({append:an(()=>[fn(kz,cp({ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)]),_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0),!pe(y)||pe(y)&&!C.showFileList?(qe(),Dn(kz,cp({key:1,ref_key:"uploadRef",ref:r},pe(b)),{default:an(()=>[pe(i).trigger?Zn(C.$slots,"trigger",{key:0}):Mt("v-if",!0),!pe(i).trigger&&pe(i).default?Zn(C.$slots,"default",{key:1}):Mt("v-if",!0)]),_:3},16)):Mt("v-if",!0),C.$slots.trigger?Zn(C.$slots,"default",{key:2}):Mt("v-if",!0),Zn(C.$slots,"tip"),!pe(y)&&C.showFileList?(qe(),Dn(Vz,{key:3,disabled:pe(o),"list-type":C.listType,files:pe(u),"handle-preview":C.onPreview,onRemove:pe(m)},o3({_:2},[C.$slots.file?{name:"default",fn:an(({file:w})=>[Zn(C.$slots,"file",{file:w})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):Mt("v-if",!0)]))}});var vme=Cs(Sme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Dme=Wf(vme),qW=["success","info","warning","error"],Va=pC({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Cc?document.body:void 0}),Ime=bs({customClass:{type:String,default:Va.customClass},center:{type:Boolean,default:Va.center},dangerouslyUseHTMLString:{type:Boolean,default:Va.dangerouslyUseHTMLString},duration:{type:Number,default:Va.duration},icon:{type:r0,default:Va.icon},id:{type:String,default:Va.id},message:{type:Qn([String,Object,Function]),default:Va.message},onClose:{type:Qn(Function),required:!1},showClose:{type:Boolean,default:Va.showClose},type:{type:String,values:qW,default:Va.type},offset:{type:Number,default:Va.offset},zIndex:{type:Number,default:Va.zIndex},grouping:{type:Boolean,default:Va.grouping},repeatNum:{type:Number,default:Va.repeatNum}}),Pme={destroy:()=>!0},Qu=G6([]),Ome=e=>{const t=Qu.findIndex(o=>o.id===e),n=Qu[t];let i;return t>0&&(i=Qu[t-1]),{current:n,prev:i}},Lme=e=>{const{prev:t}=Ome(e);return t?t.vm.exposed.bottom.value:0},Bme=["id"],Rme=["innerHTML"],Nme=ci({name:"ElMessage"}),Mme=ci({...Nme,props:Ime,emits:Pme,setup(e,{expose:t}){const n=e,{Close:i}=TW,o=dr("message"),r=bn(),s=bn(!1),a=bn(0);let c;const u=tt(()=>n.type?n.type==="error"?"danger":n.type:"info"),d=tt(()=>{const S=n.type;return{[o.bm("icon",S)]:S&&OS[S]}}),h=tt(()=>n.icon||OS[n.type]||""),m=tt(()=>Lme(n.id)),g=tt(()=>n.offset+m.value),p=tt(()=>a.value+g.value),y=tt(()=>({top:`${g.value}px`,zIndex:n.zIndex}));function b(){n.duration!==0&&({stop:c}=qL(()=>{E()},n.duration))}function C(){c==null||c()}function E(){s.value=!1}function w({code:S}){S===eD.esc&&E()}return Oc(()=>{b(),s.value=!0}),to(()=>n.repeatNum,()=>{C(),b()}),Bue(document,"keydown",w),hW(r,()=>{a.value=r.value.getBoundingClientRect().height}),t({visible:s,bottom:p,close:E}),(S,P)=>(qe(),Dn(S0,{name:pe(o).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:P[0]||(P[0]=L=>S.$emit("destroy")),persisted:""},{default:an(()=>[eu(Vt("div",{id:S.id,ref_key:"messageRef",ref:r,class:st([pe(o).b(),{[pe(o).m(S.type)]:S.type&&!S.icon},pe(o).is("center",S.center),pe(o).is("closable",S.showClose),S.customClass]),style:Ds(pe(y)),role:"alert",onMouseenter:C,onMouseleave:b},[S.repeatNum>1?(qe(),Dn(pe(The),{key:0,value:S.repeatNum,type:pe(u),class:st(pe(o).e("badge"))},null,8,["value","type","class"])):Mt("v-if",!0),pe(h)?(qe(),Dn(pe(ss),{key:1,class:st([pe(o).e("icon"),pe(d)])},{default:an(()=>[(qe(),Dn(Ia(pe(h))))]),_:1},8,["class"])):Mt("v-if",!0),Zn(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(qe(),Dt(Jo,{key:1},[Mt(" Caution here, message could've been compromised, never use user's input as message "),Vt("p",{class:st(pe(o).e("content")),innerHTML:S.message},null,10,Rme)],2112)):(qe(),Dt("p",{key:0,class:st(pe(o).e("content"))},Pr(S.message),3))]),S.showClose?(qe(),Dn(pe(ss),{key:2,class:st(pe(o).e("closeBtn")),onClick:cc(E,["stop"])},{default:an(()=>[fn(pe(i))]),_:1},8,["class","onClick"])):Mt("v-if",!0)],46,Bme),[[u_,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Fme=Cs(Mme,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let zme=1;const $W=e=>{const t=!e||_i(e)||Ep(e)||En(e)?{message:e}:e,n={...Va,...t};if(!n.appendTo)n.appendTo=document.body;else if(_i(n.appendTo)){let i=document.querySelector(n.appendTo);XL(i)||(i=document.body),n.appendTo=i}return n},Ume=e=>{const t=Qu.indexOf(e);if(t===-1)return;Qu.splice(t,1);const{handler:n}=e;n.close()},Hme=({appendTo:e,...t},n)=>{const{nextZIndex:i}=YN(),o=`message_${zme++}`,r=t.onClose,s=document.createElement("div"),a={...t,zIndex:i()+t.zIndex,id:o,onClose:()=>{r==null||r(),Ume(h)},onDestroy:()=>{wS(null,s)}},c=fn(Fme,a,En(a.message)||Ep(a.message)?{default:En(a.message)?a.message:()=>a.message}:null);c.appContext=n||s0._context,wS(c,s),e.appendChild(s.firstElementChild);const u=c.component,h={id:o,vnode:c,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:c.component.props};return h},s0=(e={},t)=>{if(!Cc)return{close:()=>{}};if(wp(eB.max)&&Qu.length>=eB.max)return{close:()=>{}};const n=$W(e);if(n.grouping&&Qu.length){const o=Qu.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const i=Hme(n,t);return Qu.push(i),i.handler};qW.forEach(e=>{s0[e]=(t={},n)=>{const i=$W(t);return s0({...i,type:e},n)}});function Vme(e){for(const t of Qu)(!e||e===t.props.type)&&t.handler.close()}s0.closeAll=Vme;s0._context=null;const Lb=xfe(s0,"$message"),kme=ci({name:"ElMessageBox",directives:{TrapFocus:Yhe},components:{ElButton:MW,ElFocusTrap:BW,ElInput:OW,ElOverlay:kW,ElIcon:ss,...TW},inheritAttrs:!1,props:{buttonSize:{type:String,validator:wfe},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=$N(),i=dr("message-box"),o=bn(!1),{nextZIndex:r}=YN(),s=W_({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:r()}),a=tt(()=>{const _=s.type;return{[i.bm("icon",_)]:_&&OS[_]}}),c=_C(),u=_C(),d=mC(tt(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),h=tt(()=>s.icon||OS[s.type]||""),m=tt(()=>!!s.message),g=bn(),p=bn(),y=bn(),b=bn(),C=bn(),E=tt(()=>s.confirmButtonClass);to(()=>s.inputValue,async _=>{await us(),e.boxType==="prompt"&&_!==null&&F()},{immediate:!0}),to(()=>o.value,_=>{var v,O;_&&(e.boxType!=="prompt"&&(s.autofocus?y.value=(O=(v=C.value)==null?void 0:v.$el)!=null?O:g.value:y.value=g.value),s.zIndex=r()),e.boxType==="prompt"&&(_?us().then(()=>{var N;b.value&&b.value.$el&&(s.autofocus?y.value=(N=U())!=null?N:g.value:y.value=g.value)}):(s.editorErrorMessage="",s.validateError=!1))});const w=tt(()=>e.draggable);Bfe(g,p,w),Oc(async()=>{await us(),e.closeOnHashChange&&window.addEventListener("hashchange",S)}),Wp(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",S)});function S(){o.value&&(o.value=!1,us(()=>{s.action&&t("action",s.action)}))}const P=()=>{e.closeOnClickModal&&R(s.distinguishCancelAndClose?"close":"cancel")},L=PW(P),z=_=>{if(s.inputType!=="textarea")return _.preventDefault(),R("confirm")},R=_=>{var v;e.boxType==="prompt"&&_==="confirm"&&!F()||(s.action=_,s.beforeClose?(v=s.beforeClose)==null||v.call(s,_,s,S):S())},F=()=>{if(e.boxType==="prompt"){const _=s.inputPattern;if(_&&!_.test(s.inputValue||""))return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;const v=s.inputValidator;if(typeof v=="function"){const O=v(s.inputValue);if(O===!1)return s.editorErrorMessage=s.inputErrorMessage||n("el.messagebox.error"),s.validateError=!0,!1;if(typeof O=="string")return s.editorErrorMessage=O,s.validateError=!0,!1}}return s.editorErrorMessage="",s.validateError=!1,!0},U=()=>{const _=b.value.$refs;return _.input||_.textarea},D=()=>{R("close")},I=()=>{e.closeOnPressEscape&&D()};return e.lockScroll&&IW(o),Vfe(o),{...K6(s),ns:i,overlayEvent:L,visible:o,hasMessage:m,typeClass:a,contentId:c,inputId:u,btnSize:d,iconComponent:h,confirmButtonClasses:E,rootRef:g,focusStartRef:y,headerRef:p,inputRef:b,confirmRef:C,doClose:S,handleClose:D,onCloseRequested:I,handleWrapperClick:P,handleInputEnter:z,handleAction:R,t:n}}}),Gme=["aria-label","aria-describedby"],Wme=["aria-label"],jme=["id"];function qme(e,t,n,i,o,r){const s=Wu("el-icon"),a=Wu("close"),c=Wu("el-input"),u=Wu("el-button"),d=Wu("el-focus-trap"),h=Wu("el-overlay");return qe(),Dn(S0,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=m=>e.$emit("vanish")),persisted:""},{default:an(()=>[eu(fn(h,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:an(()=>[Vt("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:st(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...m)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...m)),onMousedown:t[9]||(t[9]=(...m)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...m)),onMouseup:t[10]||(t[10]=(...m)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...m))},[fn(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:an(()=>[Vt("div",{ref:"rootRef",class:st([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ds(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=cc(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(qe(),Dt("div",{key:0,ref:"headerRef",class:st(e.ns.e("header"))},[Vt("div",{class:st(e.ns.e("title"))},[e.iconComponent&&e.center?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),Vt("span",null,Pr(e.title),1)],2),e.showClose?(qe(),Dt("button",{key:0,type:"button",class:st(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=by(cc(m=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[fn(s,{class:st(e.ns.e("close"))},{default:an(()=>[fn(a)]),_:1},8,["class"])],42,Wme)):Mt("v-if",!0)],2)):Mt("v-if",!0),Vt("div",{id:e.contentId,class:st(e.ns.e("content"))},[Vt("div",{class:st(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(qe(),Dn(s,{key:0,class:st([e.ns.e("status"),e.typeClass])},{default:an(()=>[(qe(),Dn(Ia(e.iconComponent)))]),_:1},8,["class"])):Mt("v-if",!0),e.hasMessage?(qe(),Dt("div",{key:1,class:st(e.ns.e("message"))},[Zn(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(qe(),Dn(Ia(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(qe(),Dn(Ia(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:an(()=>[$l(Pr(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):Mt("v-if",!0)],2),eu(Vt("div",{class:st(e.ns.e("input"))},[fn(c,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=m=>e.inputValue=m),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:st({invalid:e.validateError}),onKeydown:by(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),Vt("div",{class:st(e.ns.e("errormsg")),style:Ds({visibility:e.editorErrorMessage?"visible":"hidden"})},Pr(e.editorErrorMessage),7)],2),[[u_,e.showInput]])],10,jme),Vt("div",{class:st(e.ns.e("btns"))},[e.showCancelButton?(qe(),Dn(u,{key:0,loading:e.cancelButtonLoading,class:st([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=m=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=by(cc(m=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):Mt("v-if",!0),eu(fn(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:st([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=m=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=by(cc(m=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:an(()=>[$l(Pr(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[u_,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,Gme)]),_:3},8,["z-index","overlay-class","mask"]),[[u_,e.visible]])]),_:3})}var $me=Cs(kme,[["render",qme],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const gC=new Map,Yme=e=>{let t=document.body;return e.appendTo&&(_i(e.appendTo)&&(t=document.querySelector(e.appendTo)),XL(e.appendTo)&&(t=e.appendTo),XL(t)||(t=document.body)),t},Xme=(e,t,n=null)=>{const i=fn($me,e,En(e.message)||Ep(e.message)?{default:En(e.message)?e.message:()=>e.message}:null);return i.appContext=n,wS(i,t),Yme(e).appendChild(t.firstElementChild),i.component},Kme=()=>document.createElement("div"),Jme=(e,t)=>{const n=Kme();e.onVanish=()=>{wS(null,n),gC.delete(o)},e.onAction=r=>{const s=gC.get(o);let a;e.showInput?a={value:o.inputValue,action:r}:a=r,e.callback?e.callback(a,i.proxy):r==="cancel"||r==="close"?e.distinguishCancelAndClose&&r!=="cancel"?s.reject("close"):s.reject("cancel"):s.resolve(a)};const i=Xme(e,n,t),o=i.proxy;for(const r in e)oi(e,r)&&!oi(o.$props,r)&&(o[r]=e[r]);return o.visible=!0,o};function I0(e,t=null){if(!Cc)return Promise.reject();let n;return _i(e)||Ep(e)?e={message:e}:n=e.callback,new Promise((i,o)=>{const r=Jme(e,t??I0._context);gC.set(r,{options:e,callback:n,resolve:i,reject:o})})}const Qme=["alert","confirm","prompt"],Zme={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Qme.forEach(e=>{I0[e]=e_e(e)});function e_e(e){return(t,n,i,o)=>{let r="";return Di(n)?(i=n,r=""):fC(n)?r="":r=n,I0(Object.assign({title:r,message:t,type:"",...Zme[e]},i,{boxType:e}),o)}}I0.close=()=>{gC.forEach((e,t)=>{t.doClose()}),gC.clear()};I0._context=null;const zh=I0;zh.install=e=>{zh._context=e._context,e.config.globalProperties.$msgbox=zh,e.config.globalProperties.$messageBox=zh,e.config.globalProperties.$alert=zh.alert,e.config.globalProperties.$confirm=zh.confirm,e.config.globalProperties.$prompt=zh.prompt};const t_e=zh,n_e="/satellite-track/assets/menu-a8f9cd83.svg",i_e="/satellite-track/assets/import-5c494d28.svg",o_e="/satellite-track/assets/clean-2b8d49bf.svg",r_e="/satellite-track/assets/hide-96ff822e.svg";function l(e){return e!=null}function x(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(x.prototype=Object.create(Error.prototype),x.prototype.constructor=x);x.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` -${this.stack.toString()}`),e};x.throwInstantiationError=function(){throw new x("This function defines an interface and should not be called directly.")};const Br={};Br.typeOf={};function s_e(e){return`${e} is required, actual value was undefined`}function P0(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}Br.defined=function(e,t){if(!l(t))throw new x(s_e(e))};Br.typeOf.func=function(e,t){if(typeof t!="function")throw new x(P0(typeof t,"function",e))};Br.typeOf.string=function(e,t){if(typeof t!="string")throw new x(P0(typeof t,"string",e))};Br.typeOf.number=function(e,t){if(typeof t!="number")throw new x(P0(typeof t,"number",e))};Br.typeOf.number.lessThan=function(e,t,n){if(Br.typeOf.number(e,t),t>=n)throw new x(`Expected ${e} to be less than ${n}, actual value was ${t}`)};Br.typeOf.number.lessThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>n)throw new x(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThan=function(e,t,n){if(Br.typeOf.number(e,t),t<=n)throw new x(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};Br.typeOf.number.greaterThanOrEquals=function(e,t,n){if(Br.typeOf.number(e,t),t>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};jf.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};jf.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};jf.prototype.random_int31=function(){return this.random_int()>>>1};jf.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};jf.prototype.random=function(){return this.random_int()*(1/4294967296)};jf.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};jf.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var nD=jf;const Xe={};Xe.EPSILON1=.1;Xe.EPSILON2=.01;Xe.EPSILON3=.001;Xe.EPSILON4=1e-4;Xe.EPSILON5=1e-5;Xe.EPSILON6=1e-6;Xe.EPSILON7=1e-7;Xe.EPSILON8=1e-8;Xe.EPSILON9=1e-9;Xe.EPSILON10=1e-10;Xe.EPSILON11=1e-11;Xe.EPSILON12=1e-12;Xe.EPSILON13=1e-13;Xe.EPSILON14=1e-14;Xe.EPSILON15=1e-15;Xe.EPSILON16=1e-16;Xe.EPSILON17=1e-17;Xe.EPSILON18=1e-18;Xe.EPSILON19=1e-19;Xe.EPSILON20=1e-20;Xe.EPSILON21=1e-21;Xe.GRAVITATIONALPARAMETER=3986004418e5;Xe.SOLAR_RADIUS=6955e5;Xe.LUNAR_RADIUS=1737400;Xe.SIXTY_FOUR_KILOBYTES=64*1024;Xe.FOUR_GIGABYTES=4*1024*1024*1024;Xe.sign=A(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Xe.signNotZero=function(e){return e<0?-1:1};Xe.toSNorm=function(e,t){return t=A(t,255),Math.round((Xe.clamp(e,-1,1)*.5+.5)*t)};Xe.fromSNorm=function(e,t){return t=A(t,255),Xe.clamp(e,0,t)/t*2-1};Xe.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Xe.clamp((e-t)/n,0,1)};Xe.sinh=A(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Xe.cosh=A(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Xe.lerp=function(e,t,n){return(1-n)*e+n*t};Xe.PI=Math.PI;Xe.ONE_OVER_PI=1/Math.PI;Xe.PI_OVER_TWO=Math.PI/2;Xe.PI_OVER_THREE=Math.PI/3;Xe.PI_OVER_FOUR=Math.PI/4;Xe.PI_OVER_SIX=Math.PI/6;Xe.THREE_PI_OVER_TWO=3*Math.PI/2;Xe.TWO_PI=2*Math.PI;Xe.ONE_OVER_TWO_PI=1/(2*Math.PI);Xe.RADIANS_PER_DEGREE=Math.PI/180;Xe.DEGREES_PER_RADIAN=180/Math.PI;Xe.RADIANS_PER_ARCSECOND=Xe.RADIANS_PER_DEGREE/3600;Xe.toRadians=function(e){if(!l(e))throw new x("degrees is required.");return e*Xe.RADIANS_PER_DEGREE};Xe.toDegrees=function(e){if(!l(e))throw new x("radians is required.");return e*Xe.DEGREES_PER_RADIAN};Xe.convertLongitudeRange=function(e){if(!l(e))throw new x("angle is required.");const t=Xe.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Xe.clampToLatitudeRange=function(e){if(!l(e))throw new x("angle is required.");return Xe.clamp(e,-1*Xe.PI_OVER_TWO,Xe.PI_OVER_TWO)};Xe.negativePiToPi=function(e){if(!l(e))throw new x("angle is required.");return e>=-Xe.PI&&e<=Xe.PI?e:Xe.zeroToTwoPi(e+Xe.PI)-Xe.PI};Xe.zeroToTwoPi=function(e){if(!l(e))throw new x("angle is required.");if(e>=0&&e<=Xe.TWO_PI)return e;const t=Xe.mod(e,Xe.TWO_PI);return Math.abs(t)Xe.EPSILON14?Xe.TWO_PI:t};Xe.mod=function(e,t){if(!l(e))throw new x("m is required.");if(!l(t))throw new x("n is required.");if(t===0)throw new x("divisor cannot be 0.");return Xe.sign(e)===Xe.sign(t)&&Math.abs(e)n};Xe.greaterThanOrEquals=function(e,t,n){if(!l(e))throw new x("first is required.");if(!l(t))throw new x("second is required.");if(!l(n))throw new x("absoluteEpsilon is required.");return e-t>-n};const AE=[1];Xe.factorial=function(e){if(typeof e!="number"||e<0)throw new x("A number greater than or equal to 0 is required.");const t=AE.length;if(e>=t){let n=AE[t-1];for(let i=t;i<=e;i++){const o=n*i;AE.push(o),n=o}}return AE[e]};Xe.incrementWrap=function(e,t,n){if(n=A(n,0),!l(e))throw new x("n is required.");if(t<=n)throw new x("maximumValue must be greater than minimumValue.");return++e,e>t&&(e=n),e};Xe.isPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e!==0&&(e&e-1)===0};Xe.nextPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>2147483648)throw new x("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Xe.previousPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Xe.clamp=function(e,t,n){return T.typeOf.number("value",e),T.typeOf.number("min",t),T.typeOf.number("max",n),en?n:e};let YW=new nD;Xe.setRandomNumberSeed=function(e){if(!l(e))throw new x("seed is required.");YW=new nD(e)};Xe.nextRandomNumber=function(){return YW.random()};Xe.randomBetween=function(e,t){return Xe.nextRandomNumber()*(t-e)+e};Xe.acosClamped=function(e){if(!l(e))throw new x("value is required.");return Math.acos(Xe.clamp(e,-1,1))};Xe.asinClamped=function(e){if(!l(e))throw new x("value is required.");return Math.asin(Xe.clamp(e,-1,1))};Xe.chordLength=function(e,t){if(!l(e))throw new x("angle is required.");if(!l(t))throw new x("radius is required.");return 2*t*Math.sin(e*.5)};Xe.logBase=function(e,t){if(!l(e))throw new x("number is required.");if(!l(t))throw new x("base is required.");return Math.log(e)/Math.log(t)};Xe.cbrt=A(Math.cbrt,function(t){const n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Xe.log2=A(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Xe.fog=function(e,t){const n=e*t;return 1-Math.exp(-(n*n))};Xe.fastApproximateAtan=function(e){return T.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Xe.fastApproximateAtan2=function(e,t){T.typeOf.number("x",e),T.typeOf.number("y",t);let n,i=Math.abs(e);n=Math.abs(t);const o=Math.max(i,n);n=Math.min(i,n);const r=n/o;if(isNaN(r))throw new x("either x or y must be nonzero");return i=Xe.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Xe.PI_OVER_TWO-i:i,i=e<0?Xe.PI-i:i,i=t<0?-i:i,i};const M=Xe;function f(e,t,n){this.x=A(e,0),this.y=A(t,0),this.z=A(n,0)}f.fromSpherical=function(e,t){T.typeOf.object("spherical",e),l(t)||(t=new f);const n=e.clock,i=e.cone,o=A(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};f.fromElements=function(e,t,n,i){return l(i)?(i.x=e,i.y=t,i.z=n,i):new f(e,t,n)};f.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new f(e.x,e.y,e.z)};f.fromCartesian4=f.clone;f.packedLength=3;f.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};f.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new f),n.x=e[t++],n.y=e[t++],n.z=e[t],n};f.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*3;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==i&&(t.length=i)}for(let o=0;oi&&(o=u,i=d)}let r=1,s=0;const a=nB[o],c=iB[o];if(Math.abs(e[J.getElementIndex(c,a)])>n){const u=e[J.getElementIndex(c,c)],d=e[J.getElementIndex(a,a)],h=e[J.getElementIndex(c,a)],m=(u-d)/2/h;let g;m<0?g=-1/(-m+Math.sqrt(1+m*m)):g=1/(m+Math.sqrt(1+m*m)),r=1/Math.sqrt(1+g*g),s=g*r}return t=J.clone(J.IDENTITY,t),t[J.getElementIndex(a,a)]=t[J.getElementIndex(c,c)]=r,t[J.getElementIndex(c,a)]=s,t[J.getElementIndex(a,c)]=-s,t}const CE=new J,$z=new J;J.computeEigenDecomposition=function(e,t){T.typeOf.object("matrix",e);const n=M.EPSILON20,i=10;let o=0,r=0;l(t)||(t={});const s=t.unitary=J.clone(J.IDENTITY,t.unitary),a=t.diagonal=J.clone(e,t.diagonal),c=n*__e(a);for(;rc;)y_e(a,CE),J.transpose(CE,$z),J.multiply(a,CE,a),J.multiply($z,a,a),J.multiply(s,CE,s),++o>2&&(++r,o=0);return t};J.abs=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};J.determinant=function(e){T.typeOf.object("matrix",e);const t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],u=e[8];return t*(r*u-c*s)+o*(c*i-n*u)+a*(n*s-r*i)};J.inverse=function(e,t){T.typeOf.object("matrix",e),T.typeOf.object("result",t);const n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],u=e[7],d=e[8],h=J.determinant(e);if(Math.abs(h)<=M.EPSILON15)throw new x("matrix is not invertible");t[0]=s*d-u*a,t[1]=u*o-i*d,t[2]=i*a-s*o,t[3]=c*a-r*d,t[4]=n*d-c*o,t[5]=r*o-n*a,t[6]=r*u-c*s,t[7]=c*i-n*u,t[8]=n*s-r*i;const m=1/h;return J.multiplyByScalar(t,m,t)};const A_e=new J;J.inverseTranspose=function(e,t){return T.typeOf.object("matrix",e),T.typeOf.object("result",t),J.inverse(J.transpose(e,A_e),t)};J.equals=function(e,t){return e===t||l(e)&&l(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};J.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};J.IDENTITY=Object.freeze(new J(1,0,0,0,1,0,0,0,1));J.ZERO=Object.freeze(new J(0,0,0,0,0,0,0,0,0));J.COLUMN0ROW0=0;J.COLUMN0ROW1=1;J.COLUMN0ROW2=2;J.COLUMN1ROW0=3;J.COLUMN1ROW1=4;J.COLUMN1ROW2=5;J.COLUMN2ROW0=6;J.COLUMN2ROW1=7;J.COLUMN2ROW2=8;Object.defineProperties(J.prototype,{length:{get:function(){return J.packedLength}}});J.prototype.clone=function(e){return J.clone(this,e)};J.prototype.equals=function(e){return J.equals(this,e)};J.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};J.prototype.equalsEpsilon=function(e,t){return J.equalsEpsilon(this,e,t)};J.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]}) + */const Ig=typeof window<"u";function roe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ki=Object.assign;function ZD(e,t){const n={};for(const i in t){const o=t[i];n[i]=jl(o)?o.map(e):e(o)}return n}const tC=()=>{},jl=Array.isArray,soe=/\/$/,aoe=e=>e.replace(soe,"");function eI(e,t,n="/"){let i,o={},r="",s="";const a=t.indexOf("#");let c=t.indexOf("?");return a=0&&(c=-1),c>-1&&(i=t.slice(0,c),r=t.slice(c+1,a>-1?a:t.length),o=e(r)),a>-1&&(i=i||t.slice(0,a),s=t.slice(a,t.length)),i=foe(i??t,n),{fullPath:i+(r&&"?")+r+s,path:i,query:o,hash:s}}function coe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function F2(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function loe(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&vy(t.matched[i],n.matched[o])&&O6(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vy(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function O6(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!uoe(e[n],t[n]))return!1;return!0}function uoe(e,t){return jl(e)?z2(e,t):jl(t)?z2(t,e):e===t}function z2(e,t){return jl(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function foe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/");let o=n.length-1,r,s;for(r=0;r1&&o--;else break;return n.slice(0,o).join("/")+"/"+i.slice(r-(r===i.length?1:0)).join("/")}var BC;(function(e){e.pop="pop",e.push="push"})(BC||(BC={}));var nC;(function(e){e.back="back",e.forward="forward",e.unknown=""})(nC||(nC={}));function doe(e){if(!e)if(Ig){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aoe(e)}const hoe=/^[^#]+#/;function poe(e,t){return e.replace(hoe,"#")+t}function moe(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const dv=()=>({left:window.pageXOffset,top:window.pageYOffset});function _oe(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=moe(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function U2(e,t){return(history.state?history.state.position-t:-1)+e}const Q1=new Map;function goe(e,t){Q1.set(e,t)}function yoe(e){const t=Q1.get(e);return Q1.delete(e),t}let Aoe=()=>location.protocol+"//"+location.host;function L6(e,t){const{pathname:n,search:i,hash:o}=t,r=e.indexOf("#");if(r>-1){let a=o.includes(e.slice(r))?e.slice(r).length:1,c=o.slice(a);return c[0]!=="/"&&(c="/"+c),F2(c,"")}return F2(n,e)+i+o}function Coe(e,t,n,i){let o=[],r=[],s=null;const a=({state:_})=>{const g=L6(e,location),p=n.value,y=t.value;let C=0;if(_){if(n.value=g,t.value=_,s&&s===p){s=null;return}C=y?_.position-y.position:0}else i(g);o.forEach(T=>{T(n.value,p,{delta:C,type:BC.pop,direction:C?C>0?nC.forward:nC.back:nC.unknown})})};function c(){s=n.value}function u(_){o.push(_);const g=()=>{const p=o.indexOf(_);p>-1&&o.splice(p,1)};return r.push(g),g}function f(){const{history:_}=window;_.state&&_.replaceState(ki({},_.state,{scroll:dv()}),"")}function h(){for(const _ of r)_();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:u,destroy:h}}function H2(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?dv():null}}function Toe(e){const{history:t,location:n}=window,i={value:L6(e,n)},o={value:t.state};o.value||r(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(c,u,f){const h=e.indexOf("#"),_=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Aoe()+e+c;try{t[f?"replaceState":"pushState"](u,"",_),o.value=u}catch(g){console.error(g),n[f?"replace":"assign"](_)}}function s(c,u){const f=ki({},t.state,H2(o.value.back,c,o.value.forward,!0),u,{position:o.value.position});r(c,f,!0),i.value=c}function a(c,u){const f=ki({},o.value,t.state,{forward:c,scroll:dv()});r(f.current,f,!0);const h=ki({},H2(i.value,c,null),{position:f.position+1},u);r(c,h,!1),i.value=c}return{location:i,state:o,push:a,replace:s}}function boe(e){e=doe(e);const t=Toe(e),n=Coe(e,t.state,t.location,t.replace);function i(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=ki({location:"",base:e,go:i,createHref:poe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Eoe(e){return typeof e=="string"||e&&typeof e=="object"}function B6(e){return typeof e=="string"||typeof e=="symbol"}const Xd={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},R6=Symbol("");var V2;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(V2||(V2={}));function Dy(e,t){return ki(new Error,{type:e,[R6]:!0},t)}function Ef(e,t){return e instanceof Error&&R6 in e&&(t==null||!!(e.type&t))}const k2="[^/]+?",xoe={sensitive:!1,strict:!1,start:!0,end:!0},woe=/[.+*?^${}()[\]/\\]/g;function Soe(e,t){const n=ki({},xoe,t),i=[];let o=n.start?"^":"";const r=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(o+="/");for(let h=0;ht.length?t.length===1&&t[0]===40+40?1:-1:0}function Doe(e,t){let n=0;const i=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Ioe={type:0,value:""},Poe=/[a-zA-Z0-9_]/;function Ooe(e){if(!e)return[[]];if(e==="/")return[[Ioe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=0,i=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,c,u="",f="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function _(){u+=c}for(;a{s(E)}:tC}function s(f){if(B6(f)){const h=i.get(f);h&&(i.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(s),h.alias.forEach(s))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&i.delete(f.record.name),f.children.forEach(s),f.alias.forEach(s))}}function a(){return n}function c(f){let h=0;for(;h=0&&(f.record.path!==n[h].record.path||!N6(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!j2(f)&&i.set(f.record.name,f)}function u(f,h){let _,g={},p,y;if("name"in f&&f.name){if(_=i.get(f.name),!_)throw Dy(1,{location:f});y=_.record.name,g=ki(W2(h.params,_.keys.filter(E=>!E.optional).map(E=>E.name)),f.params&&W2(f.params,_.keys.map(E=>E.name))),p=_.stringify(g)}else if("path"in f)p=f.path,_=n.find(E=>E.re.test(p)),_&&(g=_.parse(p),y=_.record.name);else{if(_=h.name?i.get(h.name):n.find(E=>E.re.test(h.path)),!_)throw Dy(1,{location:f,currentLocation:h});y=_.record.name,g=ki({},h.params,f.params),p=_.stringify(g)}const C=[];let T=_;for(;T;)C.unshift(T.record),T=T.parent;return{name:y,path:p,params:g,matched:C,meta:Moe(C)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:o}}function W2(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function Roe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Noe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Noe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="boolean"?n:n[i];return t}function j2(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Moe(e){return e.reduce((t,n)=>ki(t,n.meta),{})}function q2(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function N6(e,t){return t.children.some(n=>n===e||N6(e,n))}const M6=/#/g,Foe=/&/g,zoe=/\//g,Uoe=/=/g,Hoe=/\?/g,F6=/\+/g,Voe=/%5B/g,koe=/%5D/g,z6=/%5E/g,Goe=/%60/g,U6=/%7B/g,Woe=/%7C/g,H6=/%7D/g,joe=/%20/g;function HR(e){return encodeURI(""+e).replace(Woe,"|").replace(Voe,"[").replace(koe,"]")}function qoe(e){return HR(e).replace(U6,"{").replace(H6,"}").replace(z6,"^")}function Z1(e){return HR(e).replace(F6,"%2B").replace(joe,"+").replace(M6,"%23").replace(Foe,"%26").replace(Goe,"`").replace(U6,"{").replace(H6,"}").replace(z6,"^")}function Yoe(e){return Z1(e).replace(Uoe,"%3D")}function $oe(e){return HR(e).replace(M6,"%23").replace(Hoe,"%3F")}function Xoe(e){return e==null?"":$oe(e).replace(zoe,"%2F")}function Gw(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Koe(e){const t={};if(e===""||e==="?")return t;const i=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&Z1(r)):[i&&Z1(i)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Joe(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=jl(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}const Qoe=Symbol(""),$2=Symbol(""),VR=Symbol(""),V6=Symbol(""),eL=Symbol("");function D0(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Eh(e,t,n,i,o){const r=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((s,a)=>{const c=h=>{h===!1?a(Dy(4,{from:n,to:t})):h instanceof Error?a(h):Eoe(h)?a(Dy(2,{from:t,to:h})):(r&&i.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},u=e.call(i&&i.instances[o],t,n,c);let f=Promise.resolve(u);e.length<3&&(f=f.then(c)),f.catch(h=>a(h))})}function tI(e,t,n,i){const o=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(Zoe(a)){const u=(a.__vccOpts||a)[t];u&&o.push(Eh(u,n,i,r,s))}else{let c=a();o.push(()=>c.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const f=roe(u)?u.default:u;r.components[s]=f;const _=(f.__vccOpts||f)[t];return _&&Eh(_,n,i,r,s)()}))}}return o}function Zoe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function X2(e){const t=ar(VR),n=ar(V6),i=Kt(()=>t.resolve(ct(e.to))),o=Kt(()=>{const{matched:c}=i.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const _=h.findIndex(vy.bind(null,f));if(_>-1)return _;const g=K2(c[u-2]);return u>1&&K2(f)===g&&h[h.length-1].path!==g?h.findIndex(vy.bind(null,c[u-2])):_}),r=Kt(()=>o.value>-1&&ire(n.params,i.value.params)),s=Kt(()=>o.value>-1&&o.value===n.matched.length-1&&O6(n.params,i.value.params));function a(c={}){return nre(c)?t[ct(e.replace)?"replace":"push"](ct(e.to)).catch(tC):Promise.resolve()}return{route:i,href:Kt(()=>i.value.href),isActive:r,isExactActive:s,navigate:a}}const ere=wr({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:X2,setup(e,{slots:t}){const n=xT(X2(e)),{options:i}=ar(VR),o=Kt(()=>({[J2(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[J2(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:fv("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),tre=ere;function nre(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ire(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!jl(o)||o.length!==i.length||i.some((r,s)=>r!==o[s]))return!1}return!0}function K2(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const J2=(e,t,n)=>e??t??n,ore=wr({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=ar(eL),o=Kt(()=>e.route||i.value),r=ar($2,0),s=Kt(()=>{let u=ct(r);const{matched:f}=o.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=Kt(()=>o.value.matched[s.value]);Hh($2,Kt(()=>s.value+1)),Hh(Qoe,a),Hh(eL,o);const c=Gi();return Nr(()=>[c.value,a.value,e.name],([u,f,h],[_,g,p])=>{f&&(f.instances[h]=u,g&&g!==f&&u&&u===_&&(f.leaveGuards.size||(f.leaveGuards=g.leaveGuards),f.updateGuards.size||(f.updateGuards=g.updateGuards))),u&&f&&(!g||!vy(f,g)||!_)&&(f.enterCallbacks[h]||[]).forEach(y=>y(u))},{flush:"post"}),()=>{const u=o.value,f=e.name,h=a.value,_=h&&h.components[f];if(!_)return Q2(n.default,{Component:_,route:u});const g=h.props[f],p=g?g===!0?u.params:typeof g=="function"?g(u):g:null,C=fv(_,ki({},p,t,{onVnodeUnmounted:T=>{T.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return Q2(n.default,{Component:C,route:u})||C}}});function Q2(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const k6=ore;function rre(e){const t=Boe(e.routes,e),n=e.parseQuery||Koe,i=e.stringifyQuery||Y2,o=e.history,r=D0(),s=D0(),a=D0(),c=mne(Xd);let u=Xd;Ig&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=ZD.bind(null,X=>""+X),h=ZD.bind(null,Xoe),_=ZD.bind(null,Gw);function g(X,Y){let ae,ue;return B6(X)?(ae=t.getRecordMatcher(X),ue=Y):ue=X,t.addRoute(ue,ae)}function p(X){const Y=t.getRecordMatcher(X);Y&&t.removeRoute(Y)}function y(){return t.getRoutes().map(X=>X.record)}function C(X){return!!t.getRecordMatcher(X)}function T(X,Y){if(Y=ki({},Y||c.value),typeof X=="string"){const Q=eI(n,X,Y.path),ie=t.resolve({path:Q.path},Y),de=o.createHref(Q.fullPath);return ki(Q,ie,{params:_(ie.params),hash:Gw(Q.hash),redirectedFrom:void 0,href:de})}let ae;if("path"in X)ae=ki({},X,{path:eI(n,X.path,Y.path).path});else{const Q=ki({},X.params);for(const ie in Q)Q[ie]==null&&delete Q[ie];ae=ki({},X,{params:h(X.params)}),Y.params=h(Y.params)}const ue=t.resolve(ae,Y),re=X.hash||"";ue.params=f(_(ue.params));const he=coe(i,ki({},X,{hash:qoe(re),path:ue.path})),ce=o.createHref(he);return ki({fullPath:he,hash:re,query:i===Y2?Joe(X.query):X.query||{}},ue,{redirectedFrom:void 0,href:ce})}function E(X){return typeof X=="string"?eI(n,X,c.value.path):ki({},X)}function w(X,Y){if(u!==X)return Dy(8,{from:Y,to:X})}function S(X){return z(X)}function P(X){return S(ki(E(X),{replace:!0}))}function O(X){const Y=X.matched[X.matched.length-1];if(Y&&Y.redirect){const{redirect:ae}=Y;let ue=typeof ae=="function"?ae(X):ae;return typeof ue=="string"&&(ue=ue.includes("?")||ue.includes("#")?ue=E(ue):{path:ue},ue.params={}),ki({query:X.query,hash:X.hash,params:"path"in ue?{}:X.params},ue)}}function z(X,Y){const ae=u=T(X),ue=c.value,re=X.state,he=X.force,ce=X.replace===!0,Q=O(ae);if(Q)return z(ki(E(Q),{state:typeof Q=="object"?ki({},re,Q.state):re,force:he,replace:ce}),Y||ae);const ie=ae;ie.redirectedFrom=Y;let de;return!he&&loe(i,ue,ae)&&(de=Dy(16,{to:ie,from:ue}),G(ue,ue,!0,!1)),(de?Promise.resolve(de):F(ie,ue)).catch(me=>Ef(me)?Ef(me,2)?me:W(me):V(me,ie,ue)).then(me=>{if(me){if(Ef(me,2))return z(ki({replace:ce},E(me.to),{state:typeof me.to=="object"?ki({},re,me.to.state):re,force:he}),Y||ie)}else me=v(ie,ue,!0,ce,re);return H(ie,ue,me),me})}function R(X,Y){const ae=w(X,Y);return ae?Promise.reject(ae):Promise.resolve()}function F(X,Y){let ae;const[ue,re,he]=sre(X,Y);ae=tI(ue.reverse(),"beforeRouteLeave",X,Y);for(const Q of ue)Q.leaveGuards.forEach(ie=>{ae.push(Eh(ie,X,Y))});const ce=R.bind(null,X,Y);return ae.push(ce),Y_(ae).then(()=>{ae=[];for(const Q of r.list())ae.push(Eh(Q,X,Y));return ae.push(ce),Y_(ae)}).then(()=>{ae=tI(re,"beforeRouteUpdate",X,Y);for(const Q of re)Q.updateGuards.forEach(ie=>{ae.push(Eh(ie,X,Y))});return ae.push(ce),Y_(ae)}).then(()=>{ae=[];for(const Q of X.matched)if(Q.beforeEnter&&!Y.matched.includes(Q))if(jl(Q.beforeEnter))for(const ie of Q.beforeEnter)ae.push(Eh(ie,X,Y));else ae.push(Eh(Q.beforeEnter,X,Y));return ae.push(ce),Y_(ae)}).then(()=>(X.matched.forEach(Q=>Q.enterCallbacks={}),ae=tI(he,"beforeRouteEnter",X,Y),ae.push(ce),Y_(ae))).then(()=>{ae=[];for(const Q of s.list())ae.push(Eh(Q,X,Y));return ae.push(ce),Y_(ae)}).catch(Q=>Ef(Q,8)?Q:Promise.reject(Q))}function H(X,Y,ae){for(const ue of a.list())ue(X,Y,ae)}function v(X,Y,ae,ue,re){const he=w(X,Y);if(he)return he;const ce=Y===Xd,Q=Ig?history.state:{};ae&&(ue||ce?o.replace(X.fullPath,ki({scroll:ce&&Q&&Q.scroll},re)):o.push(X.fullPath,re)),c.value=X,G(X,Y,ae,ce),W()}let I;function m(){I||(I=o.listen((X,Y,ae)=>{if(!$.listening)return;const ue=T(X),re=O(ue);if(re){z(ki(re,{replace:!0}),ue).catch(tC);return}u=ue;const he=c.value;Ig&&goe(U2(he.fullPath,ae.delta),dv()),F(ue,he).catch(ce=>Ef(ce,12)?ce:Ef(ce,2)?(z(ce.to,ue).then(Q=>{Ef(Q,20)&&!ae.delta&&ae.type===BC.pop&&o.go(-1,!1)}).catch(tC),Promise.reject()):(ae.delta&&o.go(-ae.delta,!1),V(ce,ue,he))).then(ce=>{ce=ce||v(ue,he,!1),ce&&(ae.delta&&!Ef(ce,8)?o.go(-ae.delta,!1):ae.type===BC.pop&&Ef(ce,20)&&o.go(-1,!1)),H(ue,he,ce)}).catch(tC)}))}let D=D0(),L=D0(),M;function V(X,Y,ae){W(X);const ue=L.list();return ue.length?ue.forEach(re=>re(X,Y,ae)):console.error(X),Promise.reject(X)}function k(){return M&&c.value!==Xd?Promise.resolve():new Promise((X,Y)=>{D.add([X,Y])})}function W(X){return M||(M=!X,m(),D.list().forEach(([Y,ae])=>X?ae(X):Y()),D.reset()),X}function G(X,Y,ae,ue){const{scrollBehavior:re}=e;if(!Ig||!re)return Promise.resolve();const he=!ae&&yoe(U2(X.fullPath,0))||(ue||!ae)&&history.state&&history.state.scroll||null;return tp().then(()=>re(X,Y,he)).then(ce=>ce&&_oe(ce)).catch(ce=>V(ce,X,Y))}const K=X=>o.go(X);let q;const te=new Set,$={currentRoute:c,listening:!0,addRoute:g,removeRoute:p,hasRoute:C,getRoutes:y,resolve:T,options:e,push:S,replace:P,go:K,back:()=>K(-1),forward:()=>K(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:L.add,isReady:k,install(X){const Y=this;X.component("RouterLink",tre),X.component("RouterView",k6),X.config.globalProperties.$router=Y,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>ct(c)}),Ig&&!q&&c.value===Xd&&(q=!0,S(o.location).catch(re=>{}));const ae={};for(const re in Xd)ae[re]=Kt(()=>c.value[re]);X.provide(VR,Y),X.provide(V6,xT(ae)),X.provide(eL,c);const ue=X.unmount;te.add(X),X.unmount=function(){te.delete(X),te.size<1&&(u=Xd,I&&I(),I=null,c.value=Xd,q=!1,M=!1),ue()}}};return $}function Y_(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function sre(e,t){const n=[],i=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;svy(u,a))?i.push(a):n.push(a));const c=e.matched[s];c&&(t.matched.find(u=>vy(u,c))||o.push(c))}return[n,i,o]}const are=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n},cre={__name:"App",setup(e){return(t,n)=>(Gn(),Ma(ct(k6)))}},lre=are(cre,[["__scopeId","data-v-0969e94e"]]);var ure=typeof global=="object"&&global&&global.Object===Object&&global;const G6=ure;var fre=typeof self=="object"&&self&&self.Object===Object&&self,dre=G6||fre||Function("return this")();const bd=dre;var hre=bd.Symbol;const Gu=hre;var W6=Object.prototype,pre=W6.hasOwnProperty,mre=W6.toString,I0=Gu?Gu.toStringTag:void 0;function _re(e){var t=pre.call(e,I0),n=e[I0];try{e[I0]=void 0;var i=!0}catch{}var o=mre.call(e);return i&&(t?e[I0]=n:delete e[I0]),o}var gre=Object.prototype,yre=gre.toString;function Are(e){return yre.call(e)}var Cre="[object Null]",Tre="[object Undefined]",Z2=Gu?Gu.toStringTag:void 0;function Zy(e){return e==null?e===void 0?Tre:Cre:Z2&&Z2 in Object(e)?_re(e):Are(e)}function Iy(e){return e!=null&&typeof e=="object"}var bre="[object Symbol]";function kR(e){return typeof e=="symbol"||Iy(e)&&Zy(e)==bre}function Ere(e,t){for(var n=-1,i=e==null?0:e.length,o=Array(i);++n0){if(++t>=qre)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Kre(e){return function(){return e}}var Jre=function(){try{var e=g_(Object,"defineProperty");return e({},"",{}),e}catch{}}();const jw=Jre;var Qre=jw?function(e,t){return jw(e,"toString",{configurable:!0,enumerable:!1,value:Kre(t),writable:!0})}:Sre;const Zre=Qre;var ese=Xre(Zre);const tse=ese;var nse=9007199254740991,ise=/^(?:0|[1-9]\d*)$/;function GR(e,t){var n=typeof e;return t=t??nse,!!t&&(n=="number"||n!="symbol"&&ise.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=lse}function use(e){return e!=null&&jR(e.length)&&!q6(e)}var fse=Object.prototype;function dse(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||fse;return e===n}function hse(e,t){for(var n=-1,i=Array(e);++n-1}function Dae(e,t){var n=this.__data__,i=hv(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}function Ed(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(a)?t>1?Z6(a,t-1,n,i,o):Q6(o,a):i||(o[o.length]=a)}return o}function Yae(e){var t=e==null?0:e.length;return t?Z6(e,1):[]}function $ae(e){return tse(cse(e,void 0,Yae),e+"")}function Xae(){this.__data__=new Ed,this.size=0}function Kae(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Jae(e){return this.__data__.get(e)}function Qae(e){return this.__data__.has(e)}var Zae=200;function ece(e,t){var n=this.__data__;if(n instanceof Ed){var i=n.__data__;if(!NC||i.lengtha))return!1;var u=r.get(e),f=r.get(t);if(u&&f)return u==t&&f==e;var h=-1,_=!0,g=n&xce?new qw:void 0;for(r.set(e,t),r.set(t,e);++htypeof e=="boolean",Py=e=>typeof e=="number",rle=e=>typeof e=="string",sle=()=>{};ql&&((E3=window==null?void 0:window.navigator)!=null&&E3.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function n9(e){return typeof e=="function"?e():ct(e)}function ale(e){return e}function XR(e){return Gte()?(P8(e),!0):!1}function cle(e,t=!0){tf()?ef(e):t?e():tp(e)}function sL(e,t,n={}){const{immediate:i=!0}=n,o=Gi(!1);let r=null;function s(){r&&(clearTimeout(r),r=null)}function a(){o.value=!1,s()}function c(...u){s(),o.value=!0,r=setTimeout(()=>{o.value=!1,r=null,e(...u)},n9(t))}return i&&(o.value=!0,ql&&c()),XR(a),{isPending:o,start:c,stop:a}}function i9(e){var t;const n=n9(e);return(t=n==null?void 0:n.$el)!=null?t:n}const o9=ql?window:void 0;function lle(...e){let t,n,i,o;if(rle(e[0])||Array.isArray(e[0])?([n,i,o]=e,t=o9):[t,n,i,o]=e,!t)return sle;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const r=[],s=()=>{r.forEach(f=>f()),r.length=0},a=(f,h,_)=>(f.addEventListener(h,_,o),()=>f.removeEventListener(h,_,o)),c=Nr(()=>i9(t),f=>{s(),f&&r.push(...n.flatMap(h=>i.map(_=>a(f,h,_))))},{immediate:!0,flush:"post"}),u=()=>{c(),s()};return XR(u),u}function ule(e,t=!1){const n=Gi(),i=()=>n.value=Boolean(e());return i(),cle(i,t),n}const aL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},cL="__vueuse_ssr_handlers__";aL[cL]=aL[cL]||{};aL[cL];var x3=Object.getOwnPropertySymbols,fle=Object.prototype.hasOwnProperty,dle=Object.prototype.propertyIsEnumerable,hle=(e,t)=>{var n={};for(var i in e)fle.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&x3)for(var i of x3(e))t.indexOf(i)<0&&dle.call(e,i)&&(n[i]=e[i]);return n};function ple(e,t,n={}){const i=n,{window:o=o9}=i,r=hle(i,["window"]);let s;const a=ule(()=>o&&"ResizeObserver"in o),c=()=>{s&&(s.disconnect(),s=void 0)},u=Nr(()=>i9(e),h=>{c(),a.value&&o&&h&&(s=new ResizeObserver(t),s.observe(h,r))},{immediate:!0,flush:"post"}),f=()=>{c(),u()};return XR(f),{isSupported:a,stop:f}}var w3;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(w3||(w3={}));var mle=Object.defineProperty,S3=Object.getOwnPropertySymbols,_le=Object.prototype.hasOwnProperty,gle=Object.prototype.propertyIsEnumerable,v3=(e,t,n)=>t in e?mle(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,yle=(e,t)=>{for(var n in t||(t={}))_le.call(t,n)&&v3(e,n,t[n]);if(S3)for(var n of S3(t))gle.call(t,n)&&v3(e,n,t[n]);return e};const Ale={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};yle({linear:ale},Ale);const $w=e=>e===void 0,Cle=e=>typeof Element>"u"?!1:e instanceof Element,Tle=e=>qi(e)?!Number.isNaN(Number(e)):!1,D3=e=>Object.keys(e);class ble extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ele(e,t){throw new ble(`[${e}] ${t}`)}const r9=(e="")=>e.split(" ").filter(t=>!!t.trim()),I3=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},xle=(e,t)=>{!e||!t.trim()||e.classList.add(...r9(t))},wle=(e,t)=>{!e||!t.trim()||e.classList.remove(...r9(t))},Sle=(e,t)=>{var n;if(!ql||!e||!t)return"";let i=Wl(t);i==="float"&&(i="cssFloat");try{const o=e.style[i];if(o)return o;const r=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return r?r[i]:""}catch{return e.style[i]}};function KR(e,t="px"){if(!e)return"";if(Py(e)||Tle(e))return`${e}${t}`;if(qi(e))return e}let Bb;const vle=e=>{var t;if(!ql)return 0;if(Bb!==void 0)return Bb;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const i=n.offsetWidth;n.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",n.appendChild(o);const r=o.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Bb=i-r,Bb};/*! Element Plus Icons Vue v2.0.10 */var vT=(e,t)=>{let n=e.__vccOpts||e;for(let[i,o]of t)n[i]=o;return n},Dle={name:"CircleCloseFilled"},Ile={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ple=rs("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),Ole=[Ple];function Lle(e,t,n,i,o,r){return Gn(),mo("svg",Ile,Ole)}var s9=vT(Dle,[["render",Lle],["__file","circle-close-filled.vue"]]),Ble={name:"Close"},Rle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Nle=rs("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),Mle=[Nle];function Fle(e,t,n,i,o,r){return Gn(),mo("svg",Rle,Mle)}var a9=vT(Ble,[["render",Fle],["__file","close.vue"]]),zle={name:"InfoFilled"},Ule={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Hle=rs("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),Vle=[Hle];function kle(e,t,n,i,o,r){return Gn(),mo("svg",Ule,Vle)}var c9=vT(zle,[["render",kle],["__file","info-filled.vue"]]),Gle={name:"SuccessFilled"},Wle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jle=rs("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),qle=[jle];function Yle(e,t,n,i,o,r){return Gn(),mo("svg",Wle,qle)}var l9=vT(Gle,[["render",Yle],["__file","success-filled.vue"]]),$le={name:"WarningFilled"},Xle={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kle=rs("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),Jle=[Kle];function Qle(e,t,n,i,o,r){return Gn(),mo("svg",Xle,Jle)}var u9=vT($le,[["render",Qle],["__file","warning-filled.vue"]]);const f9="__epPropKey",kc=e=>e,Zle=e=>zi(e)&&!!e[f9],d9=(e,t)=>{if(!zi(e)||Zle(e))return e;const{values:n,required:i,default:o,type:r,validator:s}=e,c={type:r,required:!!i,validator:n||s?u=>{let f=!1,h=[];if(n&&(h=Array.from(n),ii(e,"default")&&h.push(o),f||(f=h.includes(u))),s&&(f||(f=s(u))),!f&&h.length>0){const _=[...new Set(h)].map(g=>JSON.stringify(g)).join(", ");Tne(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${_}], got value ${JSON.stringify(u)}.`)}return f}:void 0,[f9]:!0};return ii(e,"default")&&(c.default=o),c},nf=e=>Jce(Object.entries(e).map(([t,n])=>[t,d9(n,t)])),h9=kc([String,Object,Function]),eue={Close:a9,SuccessFilled:l9,InfoFilled:c9,WarningFilled:u9,CircleCloseFilled:s9},P3={success:l9,warning:u9,error:s9,info:c9},DT=(e,t)=>{if(e.install=n=>{for(const i of[e,...Object.values(t??{})])n.component(i.name,i)},t)for(const[n,i]of Object.entries(t))e[n]=i;return e},tue=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),p9=e=>(e.install=ya,e),JR={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},e0="update:modelValue",nue=["","default","small","large"];var jx=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(jx||{});const iue=e=>e,t0=Symbol("checkboxGroupContextKey"),m9=Symbol(),QR=Symbol("formContextKey"),_9=Symbol("formItemContextKey"),oue=Symbol("rowContextKey"),g9=e=>{const t=tf();return Kt(()=>{var n,i;return(i=((n=t.proxy)==null?void 0:n.$props)[e])!=null?i:void 0})},Xw=Gi();function y_(e,t=void 0){const n=tf()?ar(m9,Xw):Xw;return e?Kt(()=>{var i,o;return(o=(i=n.value)==null?void 0:i[e])!=null?o:t}):n}const rue=(e,t,n=!1)=>{var i;const o=!!tf(),r=o?y_():void 0,s=(i=t==null?void 0:t.provide)!=null?i:o?Hh:void 0;if(!s)return;const a=Kt(()=>{const c=ct(e);return r!=null&&r.value?sue(r.value,c):c});return s(m9,a),(n||!Xw.value)&&(Xw.value=a.value),a},sue=(e,t)=>{var n;const i=[...new Set([...D3(e),...D3(t)])],o={};for(const r of i)o[r]=(n=t[r])!=null?n:e[r];return o},ZR=d9({type:String,values:nue,required:!1}),O3=(e,t={})=>{const n=Gi(void 0),i=t.prop?n:g9("size"),o=t.global?n:y_("size"),r=t.form?{size:void 0}:ar(QR,void 0),s=t.formItem?{size:void 0}:ar(_9,void 0);return Kt(()=>i.value||ct(e)||(s==null?void 0:s.size)||(r==null?void 0:r.size)||o.value||"")},aue=e=>{const t=g9("disabled"),n=ar(QR,void 0);return Kt(()=>t.value||ct(e)||(n==null?void 0:n.disabled)||!1)},L3=({from:e,replacement:t,scope:n,version:i,ref:o,type:r="API"},s)=>{Nr(()=>ct(s),a=>{},{immediate:!0})},eN="el",cue="is-",kp=(e,t,n,i,o)=>{let r=`${e}-${t}`;return n&&(r+=`-${n}`),i&&(r+=`__${i}`),o&&(r+=`--${o}`),r},of=e=>{const t=y_("namespace",eN);return{namespace:t,b:(p="")=>kp(t.value,e,p,"",""),e:p=>p?kp(t.value,e,"",p,""):"",m:p=>p?kp(t.value,e,"","",p):"",be:(p,y)=>p&&y?kp(t.value,e,p,y,""):"",em:(p,y)=>p&&y?kp(t.value,e,"",p,y):"",bm:(p,y)=>p&&y?kp(t.value,e,p,"",y):"",bem:(p,y,C)=>p&&y&&C?kp(t.value,e,p,y,C):"",is:(p,...y)=>{const C=y.length>=1?y[0]:!0;return p&&C?`${cue}${p}`:""},cssVar:p=>{const y={};for(const C in p)p[C]&&(y[`--${t.value}-${C}`]=p[C]);return y},cssVarName:p=>`--${t.value}-${p}`,cssVarBlock:p=>{const y={};for(const C in p)p[C]&&(y[`--${t.value}-${e}-${C}`]=p[C]);return y},cssVarBlockName:p=>`--${t.value}-${e}-${p}`}},B3={prefix:Math.floor(Math.random()*1e4),current:0},lue=Symbol("elIdInjection"),uue=()=>tf()?ar(lue,B3):B3,lL=e=>{const t=uue(),n=y_("namespace",eN);return Kt(()=>ct(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},tN=()=>{const e=ar(QR,void 0),t=ar(_9,void 0);return{form:e,formItem:t}},y9=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:i})=>{n||(n=Gi(!1)),i||(i=Gi(!1));const o=Gi();let r;const s=Kt(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return ef(()=>{r=Nr([$8(e,"id"),n],([a,c])=>{const u=a??(c?void 0:lL().value);u!==o.value&&(t!=null&&t.removeInputId&&(o.value&&t.removeInputId(o.value),!(i!=null&&i.value)&&!c&&u&&t.addInputId(u)),o.value=u)},{immediate:!0})}),LR(()=>{r&&r(),t!=null&&t.removeInputId&&o.value&&t.removeInputId(o.value)}),{isLabeledByFormItem:s,inputId:o}};var fue={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const due=e=>(t,n)=>hue(t,n,ct(e)),hue=(e,t,n)=>jae(n,e,e).replace(/\{(\w+)\}/g,(i,o)=>{var r;return`${(r=t==null?void 0:t[o])!=null?r:`{${o}}`}`}),pue=e=>{const t=Kt(()=>ct(e).name),n=Vo(e)?e:Gi(e);return{lang:t,locale:n,t:due(e)}},mue=()=>{const e=y_("locale");return pue(Kt(()=>e.value||fue))},_ue=e=>{Vo(e)||Ele("[useLockscreen]","You need to pass a ref param to this function");const t=of("popup"),n=K8(()=>t.bm("parent","hidden"));if(!ql||I3(document.body,n.value))return;let i=0,o=!1,r="0";const s=()=>{setTimeout(()=>{wle(document.body,n.value),o&&(document.body.style.width=r)},200)};Nr(e,a=>{if(!a){s();return}o=!I3(document.body,n.value),o&&(r=document.body.style.width),i=vle(t.namespace.value);const c=document.documentElement.clientHeight0&&(c||u==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),xle(document.body,n.value)}),P8(()=>s())},gue=e=>{if(!e)return{onClick:ya,onMousedown:ya,onMouseup:ya};let t=!1,n=!1;return{onClick:s=>{t&&n&&e(s),t=n=!1},onMousedown:s=>{t=s.target===s.currentTarget},onMouseup:s=>{n=s.target===s.currentTarget}}};let Pg=[];const R3=e=>{const t=e;t.key===JR.esc&&Pg.forEach(n=>n(t))},yue=e=>{ef(()=>{Pg.length===0&&document.addEventListener("keydown",R3),ql&&Pg.push(e)}),wT(()=>{Pg=Pg.filter(t=>t!==e),Pg.length===0&&ql&&document.removeEventListener("keydown",R3)})},N3=Gi(0),A9=()=>{const e=y_("zIndex",2e3),t=Kt(()=>e.value+N3.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(N3.value++,t.value)}};var wd=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const Aue=nf({size:{type:kc([Number,String])},color:{type:String}}),Cue=wr({name:"ElIcon",inheritAttrs:!1}),Tue=wr({...Cue,props:Aue,setup(e){const t=e,n=of("icon"),i=Kt(()=>{const{size:o,color:r}=t;return!o&&!r?{}:{fontSize:$w(o)?void 0:KR(o),"--color":r}});return(o,r)=>(Gn(),mo("i",zR({class:ct(n).b(),style:ct(i)},o.$attrs),[ga(o.$slots,"default")],16))}});var bue=wd(Tue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const uL=DT(bue),rI="focus-trap.focus-after-trapped",sI="focus-trap.focus-after-released",Eue="focus-trap.focusout-prevented",M3={cancelable:!0,bubbles:!1},xue={cancelable:!0,bubbles:!1},F3="focusAfterTrapped",z3="focusAfterReleased",wue=Symbol("elFocusTrap"),nN=Gi(),_v=Gi(0),iN=Gi(0);let Rb=0;const C9=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0||i===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},U3=(e,t)=>{for(const n of e)if(!Sue(n,t))return n},Sue=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},vue=e=>{const t=C9(e),n=U3(t,e),i=U3(t.reverse(),e);return[n,i]},Due=e=>e instanceof HTMLInputElement&&"select"in e,gh=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),iN.value=window.performance.now(),e!==n&&Due(e)&&t&&e.select()}};function H3(e,t){const n=[...e],i=e.indexOf(t);return i!==-1&&n.splice(i,1),n}const Iue=()=>{let e=[];return{push:i=>{const o=e[0];o&&i!==o&&o.pause(),e=H3(e,i),e.unshift(i)},remove:i=>{var o,r;e=H3(e,i),(r=(o=e[0])==null?void 0:o.resume)==null||r.call(o)}}},Pue=(e,t=!1)=>{const n=document.activeElement;for(const i of e)if(gh(i,t),document.activeElement!==n)return},V3=Iue(),Oue=()=>_v.value>iN.value,Nb=()=>{nN.value="pointer",_v.value=window.performance.now()},k3=()=>{nN.value="keyboard",_v.value=window.performance.now()},Lue=()=>(ef(()=>{Rb===0&&(document.addEventListener("mousedown",Nb),document.addEventListener("touchstart",Nb),document.addEventListener("keydown",k3)),Rb++}),wT(()=>{Rb--,Rb<=0&&(document.removeEventListener("mousedown",Nb),document.removeEventListener("touchstart",Nb),document.removeEventListener("keydown",k3))}),{focusReason:nN,lastUserFocusTimestamp:_v,lastAutomatedFocusTimestamp:iN}),Mb=e=>new CustomEvent(Eue,{...xue,detail:e}),Bue=wr({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[F3,z3,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=Gi();let i,o;const{focusReason:r}=Lue();yue(p=>{e.trapped&&!s.paused&&t("release-requested",p)});const s={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},a=p=>{if(!e.loop&&!e.trapped||s.paused)return;const{key:y,altKey:C,ctrlKey:T,metaKey:E,currentTarget:w,shiftKey:S}=p,{loop:P}=e,O=y===JR.tab&&!C&&!T&&!E,z=document.activeElement;if(O&&z){const R=w,[F,H]=vue(R);if(F&&H){if(!S&&z===H){const I=Mb({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&gh(F,!0))}else if(S&&[F,R].includes(z)){const I=Mb({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||(p.preventDefault(),P&&gh(H,!0))}}else if(z===R){const I=Mb({focusReason:r.value});t("focusout-prevented",I),I.defaultPrevented||p.preventDefault()}}};Hh(wue,{focusTrapRef:n,onKeydown:a}),Nr(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),Nr([n],([p],[y])=>{p&&(p.addEventListener("keydown",a),p.addEventListener("focusin",f),p.addEventListener("focusout",h)),y&&(y.removeEventListener("keydown",a),y.removeEventListener("focusin",f),y.removeEventListener("focusout",h))});const c=p=>{t(F3,p)},u=p=>t(z3,p),f=p=>{const y=ct(n);if(!y)return;const C=p.target,T=p.relatedTarget,E=C&&y.contains(C);e.trapped||T&&y.contains(T)||(i=T),E&&t("focusin",p),!s.paused&&e.trapped&&(E?o=C:gh(o,!0))},h=p=>{const y=ct(n);if(!(s.paused||!y))if(e.trapped){const C=p.relatedTarget;!Zce(C)&&!y.contains(C)&&setTimeout(()=>{if(!s.paused&&e.trapped){const T=Mb({focusReason:r.value});t("focusout-prevented",T),T.defaultPrevented||gh(o,!0)}},0)}else{const C=p.target;C&&y.contains(C)||t("focusout",p)}};async function _(){await tp();const p=ct(n);if(p){V3.push(s);const y=p.contains(document.activeElement)?i:document.activeElement;if(i=y,!p.contains(y)){const T=new Event(rI,M3);p.addEventListener(rI,c),p.dispatchEvent(T),T.defaultPrevented||tp(()=>{let E=e.focusStartEl;qi(E)||(gh(E),document.activeElement!==E&&(E="first")),E==="first"&&Pue(C9(p),!0),(document.activeElement===y||E==="container")&&gh(p)})}}}function g(){const p=ct(n);if(p){p.removeEventListener(rI,c);const y=new CustomEvent(sI,{...M3,detail:{focusReason:r.value}});p.addEventListener(sI,u),p.dispatchEvent(y),!y.defaultPrevented&&(r.value=="keyboard"||!Oue())&&gh(i??document.body),p.removeEventListener(sI,c),V3.remove(s)}}return ef(()=>{e.trapped&&_(),Nr(()=>e.trapped,p=>{p?_():g()})}),wT(()=>{e.trapped&&g()}),{onKeydown:a}}});function Rue(e,t,n,i,o,r){return ga(e.$slots,"default",{handleKeydown:e.onKeydown})}var Nue=wd(Bue,[["render",Rue],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const Mue=nf({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),Fue=["textContent"],zue=wr({name:"ElBadge"}),Uue=wr({...zue,props:Mue,setup(e,{expose:t}){const n=e,i=of("badge"),o=Kt(()=>n.isDot?"":Py(n.value)&&Py(n.max)?n.max(Gn(),mo("div",{class:Mi(ct(i).b())},[ga(r.$slots,"default"),_o(ST,{name:`${ct(i).namespace.value}-zoom-in-center`,persisted:""},{default:Ws(()=>[Ym(rs("sup",{class:Mi([ct(i).e("content"),ct(i).em("content",r.type),ct(i).is("fixed",!!r.$slots.default),ct(i).is("dot",r.isDot)]),textContent:qm(ct(o))},null,10,Fue),[[UR,!r.hidden&&(ct(o)||r.isDot)]])]),_:1},8,["name"])],2))}});var Hue=wd(Uue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const Vue=DT(Hue);var oy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};const T9={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:ZR,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},b9={[e0]:e=>qi(e)||Py(e)||Yw(e),change:e=>qi(e)||Py(e)||Yw(e)},kue=({model:e,isChecked:t})=>{const n=ar(t0,void 0),i=Kt(()=>{var r,s;const a=(r=n==null?void 0:n.max)==null?void 0:r.value,c=(s=n==null?void 0:n.min)==null?void 0:s.value;return!$w(a)&&e.value.length>=a&&!t.value||!$w(c)&&e.value.length<=c&&t.value});return{isDisabled:aue(Kt(()=>(n==null?void 0:n.disabled.value)||i.value)),isLimitDisabled:i}},Gue=(e,{model:t,isLimitExceeded:n,hasOwnLabel:i,isDisabled:o,isLabeledByFormItem:r})=>{const s=ar(t0,void 0),{formItem:a}=tN(),{emit:c}=tf();function u(p){var y,C;return p===e.trueLabel||p===!0?(y=e.trueLabel)!=null?y:!0:(C=e.falseLabel)!=null?C:!1}function f(p,y){c("change",u(p),y)}function h(p){if(n.value)return;const y=p.target;c("change",u(y.checked),p)}async function _(p){n.value||!i.value&&!o.value&&r.value&&(p.composedPath().some(T=>T.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await tp(),f(t.value,p)))}const g=Kt(()=>(s==null?void 0:s.validateEvent)||e.validateEvent);return Nr(()=>e.modelValue,()=>{g.value&&(a==null||a.validate("change").catch(p=>void 0))}),{handleChange:h,onClickRoot:_}},Wue=e=>{const t=Gi(!1),{emit:n}=tf(),i=ar(t0,void 0),o=Kt(()=>$w(i)===!1),r=Gi(!1);return{model:Kt({get(){var a,c;return o.value?(a=i==null?void 0:i.modelValue)==null?void 0:a.value:(c=e.modelValue)!=null?c:t.value},set(a){var c,u;o.value&&jt(a)?(r.value=((c=i==null?void 0:i.max)==null?void 0:c.value)!==void 0&&a.length>(i==null?void 0:i.max.value),r.value===!1&&((u=i==null?void 0:i.changeEvent)==null||u.call(i,a))):(n(e0,a),t.value=a)}}),isGroup:o,isLimitExceeded:r}},jue=(e,t,{model:n})=>{const i=ar(t0,void 0),o=Gi(!1),r=Kt(()=>{const u=n.value;return Yw(u)?u:jt(u)?zi(e.label)?u.map(mi).some(f=>Qce(f,e.label)):u.map(mi).includes(e.label):u!=null?u===e.trueLabel:!!u}),s=O3(Kt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value}),{prop:!0}),a=O3(Kt(()=>{var u;return(u=i==null?void 0:i.size)==null?void 0:u.value})),c=Kt(()=>!!(t.default||e.label));return{checkboxButtonSize:s,isChecked:r,isFocused:o,checkboxSize:a,hasOwnLabel:c}},que=(e,{model:t})=>{function n(){jt(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},E9=(e,t)=>{const{formItem:n}=tN(),{model:i,isGroup:o,isLimitExceeded:r}=Wue(e),{isFocused:s,isChecked:a,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:f}=jue(e,t,{model:i}),{isDisabled:h}=kue({model:i,isChecked:a}),{inputId:_,isLabeledByFormItem:g}=y9(e,{formItemContext:n,disableIdGeneration:f,disableIdManagement:o}),{handleChange:p,onClickRoot:y}=Gue(e,{model:i,isLimitExceeded:r,hasOwnLabel:f,isDisabled:h,isLabeledByFormItem:g});return que(e,{model:i}),{inputId:_,isLabeledByFormItem:g,isChecked:a,isDisabled:h,isFocused:s,checkboxButtonSize:c,checkboxSize:u,hasOwnLabel:f,model:i,handleChange:p,onClickRoot:y}},Yue=["tabindex","role","aria-checked"],$ue=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],Xue=["id","aria-hidden","disabled","value","name","tabindex"],Kue=wr({name:"ElCheckbox"}),Jue=wr({...Kue,props:T9,emits:b9,setup(e){const t=e,n=w6(),{inputId:i,isLabeledByFormItem:o,isChecked:r,isDisabled:s,isFocused:a,checkboxSize:c,hasOwnLabel:u,model:f,handleChange:h,onClickRoot:_}=E9(t,n),g=of("checkbox"),p=Kt(()=>[g.b(),g.m(c.value),g.is("disabled",s.value),g.is("bordered",t.border),g.is("checked",r.value)]),y=Kt(()=>[g.e("input"),g.is("disabled",s.value),g.is("checked",r.value),g.is("indeterminate",t.indeterminate),g.is("focus",a.value)]);return(C,T)=>(Gn(),Ma(av(!ct(u)&&ct(o)?"span":"label"),{class:Mi(ct(p)),"aria-controls":C.indeterminate?C.controls:null,onClick:ct(_)},{default:Ws(()=>[rs("span",{class:Mi(ct(y)),tabindex:C.indeterminate?0:void 0,role:C.indeterminate?"checkbox":void 0,"aria-checked":C.indeterminate?"mixed":void 0},[C.trueLabel||C.falseLabel?Ym((Gn(),mo("input",{key:0,id:ct(i),"onUpdate:modelValue":T[0]||(T[0]=E=>Vo(f)?f.value=E:null),class:Mi(ct(g).e("original")),type:"checkbox","aria-hidden":C.indeterminate?"true":"false",name:C.name,tabindex:C.tabindex,disabled:ct(s),"true-value":C.trueLabel,"false-value":C.falseLabel,onChange:T[1]||(T[1]=(...E)=>ct(h)&&ct(h)(...E)),onFocus:T[2]||(T[2]=E=>a.value=!0),onBlur:T[3]||(T[3]=E=>a.value=!1)},null,42,$ue)),[[kw,ct(f)]]):Ym((Gn(),mo("input",{key:1,id:ct(i),"onUpdate:modelValue":T[4]||(T[4]=E=>Vo(f)?f.value=E:null),class:Mi(ct(g).e("original")),type:"checkbox","aria-hidden":C.indeterminate?"true":"false",disabled:ct(s),value:C.label,name:C.name,tabindex:C.tabindex,onChange:T[5]||(T[5]=(...E)=>ct(h)&&ct(h)(...E)),onFocus:T[6]||(T[6]=E=>a.value=!0),onBlur:T[7]||(T[7]=E=>a.value=!1)},null,42,Xue)),[[kw,ct(f)]]),rs("span",{class:Mi(ct(g).e("inner"))},null,2)],10,Yue),ct(u)?(Gn(),mo("span",{key:0,class:Mi(ct(g).e("label"))},[ga(C.$slots,"default"),C.$slots.default?da("v-if",!0):(Gn(),mo(ms,{key:0},[OC(qm(C.label),1)],64))],2)):da("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Que=wd(Jue,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const Zue=["name","tabindex","disabled","true-value","false-value"],efe=["name","tabindex","disabled","value"],tfe=wr({name:"ElCheckboxButton"}),nfe=wr({...tfe,props:T9,emits:b9,setup(e){const t=e,n=w6(),{isFocused:i,isChecked:o,isDisabled:r,checkboxButtonSize:s,model:a,handleChange:c}=E9(t,n),u=ar(t0,void 0),f=of("checkbox"),h=Kt(()=>{var g,p,y,C;const T=(p=(g=u==null?void 0:u.fill)==null?void 0:g.value)!=null?p:"";return{backgroundColor:T,borderColor:T,color:(C=(y=u==null?void 0:u.textColor)==null?void 0:y.value)!=null?C:"",boxShadow:T?`-1px 0 0 0 ${T}`:void 0}}),_=Kt(()=>[f.b("button"),f.bm("button",s.value),f.is("disabled",r.value),f.is("checked",o.value),f.is("focus",i.value)]);return(g,p)=>(Gn(),mo("label",{class:Mi(ct(_))},[g.trueLabel||g.falseLabel?Ym((Gn(),mo("input",{key:0,"onUpdate:modelValue":p[0]||(p[0]=y=>Vo(a)?a.value=y:null),class:Mi(ct(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:ct(r),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:p[1]||(p[1]=(...y)=>ct(c)&&ct(c)(...y)),onFocus:p[2]||(p[2]=y=>i.value=!0),onBlur:p[3]||(p[3]=y=>i.value=!1)},null,42,Zue)),[[kw,ct(a)]]):Ym((Gn(),mo("input",{key:1,"onUpdate:modelValue":p[4]||(p[4]=y=>Vo(a)?a.value=y:null),class:Mi(ct(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:ct(r),value:g.label,onChange:p[5]||(p[5]=(...y)=>ct(c)&&ct(c)(...y)),onFocus:p[6]||(p[6]=y=>i.value=!0),onBlur:p[7]||(p[7]=y=>i.value=!1)},null,42,efe)),[[kw,ct(a)]]),g.$slots.default||g.label?(Gn(),mo("span",{key:2,class:Mi(ct(f).be("button","inner")),style:Xy(ct(o)?ct(h):void 0)},[ga(g.$slots,"default",{},()=>[OC(qm(g.label),1)])],6)):da("v-if",!0)],2))}});var x9=wd(nfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const ife=nf({modelValue:{type:kc(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ZR,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),ofe={[e0]:e=>jt(e),change:e=>jt(e)},rfe=wr({name:"ElCheckboxGroup"}),sfe=wr({...rfe,props:ife,emits:ofe,setup(e,{emit:t}){const n=e,i=of("checkbox"),{formItem:o}=tN(),{inputId:r,isLabeledByFormItem:s}=y9(n,{formItemContext:o}),a=async u=>{t(e0,u),await tp(),t("change",u)},c=Kt({get(){return n.modelValue},set(u){a(u)}});return Hh(t0,{...ole(yne(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:c,changeEvent:a}),Nr(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(u=>void 0))}),(u,f)=>{var h;return Gn(),Ma(av(u.tag),{id:ct(r),class:Mi(ct(i).b("group")),role:"group","aria-label":ct(s)?void 0:u.label||"checkbox-group","aria-labelledby":ct(s)?(h=ct(o))==null?void 0:h.labelId:void 0},{default:Ws(()=>[ga(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var w9=wd(sfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const afe=DT(Que,{CheckboxButton:x9,CheckboxGroup:w9});p9(x9);const cfe=p9(w9),fL={},lfe=nf({a11y:{type:Boolean,default:!0},locale:{type:kc(Object)},size:ZR,button:{type:kc(Object)},experimentalFeatures:{type:kc(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:kc(Object)},zIndex:Number,namespace:{type:String,default:"el"}});wr({name:"ElConfigProvider",props:lfe,setup(e,{slots:t}){Nr(()=>e.message,i=>{Object.assign(fL,i??{})},{immediate:!0,deep:!0});const n=rue(e);return()=>ga(t,"default",{config:n==null?void 0:n.value})}});const ufe=nf({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:kc([String,Array,Object])},zIndex:{type:kc([String,Number])}}),ffe={click:e=>e instanceof MouseEvent};var dfe=wr({name:"ElOverlay",props:ufe,emits:ffe,setup(e,{slots:t,emit:n}){const i=of("overlay"),o=c=>{n("click",c)},{onClick:r,onMousedown:s,onMouseup:a}=gue(e.customMaskEvent?void 0:o);return()=>e.mask?_o("div",{class:[i.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:r,onMousedown:s,onMouseup:a},[ga(t,"default")],jx.STYLE|jx.CLASS|jx.PROPS,["onClick","onMouseup","onMousedown"]):fv("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ga(t,"default")])}});const hfe=dfe,pfe=nf({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:h9},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),mfe=nf({...pfe,appendToBody:{type:Boolean,default:!1},beforeClose:{type:kc(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),_fe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[e0]:e=>Yw(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},gfe=(e,t)=>{const i=tf().emit,{nextZIndex:o}=A9();let r="";const s=lL(),a=lL(),c=Gi(!1),u=Gi(!1),f=Gi(!1),h=Gi(e.zIndex||o());let _,g;const p=y_("namespace",eN),y=Kt(()=>{const D={},L=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(D[`${L}-margin-top`]=e.top),e.width&&(D[`${L}-width`]=KR(e.width))),D}),C=Kt(()=>e.alignCenter?{display:"flex"}:{});function T(){i("opened")}function E(){i("closed"),i(e0,!1),e.destroyOnClose&&(f.value=!1)}function w(){i("close")}function S(){g==null||g(),_==null||_(),e.openDelay&&e.openDelay>0?{stop:_}=sL(()=>R(),e.openDelay):R()}function P(){_==null||_(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=sL(()=>F(),e.closeDelay):F()}function O(){function D(L){L||(u.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(D):P()}function z(){e.closeOnClickModal&&O()}function R(){ql&&(c.value=!0)}function F(){c.value=!1}function H(){i("openAutoFocus")}function v(){i("closeAutoFocus")}function I(D){var L;((L=D.detail)==null?void 0:L.focusReason)==="pointer"&&D.preventDefault()}e.lockScroll&&_ue(c);function m(){e.closeOnPressEscape&&O()}return Nr(()=>e.modelValue,D=>{D?(u.value=!1,S(),f.value=!0,h.value=e.zIndex?h.value++:o(),tp(()=>{i("open"),t.value&&(t.value.scrollTop=0)})):c.value&&P()}),Nr(()=>e.fullscreen,D=>{t.value&&(D?(r=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=r)}),ef(()=>{e.modelValue&&(c.value=!0,f.value=!0,S())}),{afterEnter:T,afterLeave:E,beforeLeave:w,handleClose:O,onModalClick:z,close:P,doClose:F,onOpenAutoFocus:H,onCloseAutoFocus:v,onCloseRequested:m,onFocusoutPrevented:I,titleId:s,bodyId:a,closed:u,style:y,overlayDialogStyle:C,rendered:f,visible:c,zIndex:h}},yfe=nf({...mfe,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),Afe=_fe,Cfe=wr({name:"ElDrawer",components:{ElOverlay:hfe,ElFocusTrap:Nue,ElIcon:uL,Close:a9},inheritAttrs:!1,props:yfe,emits:Afe,setup(e,{slots:t}){L3({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},Kt(()=>!!t.title)),L3({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},Kt(()=>!!e.customClass));const n=Gi(),i=Gi(),o=of("drawer"),{t:r}=mue(),s=Kt(()=>e.direction==="rtl"||e.direction==="ltr"),a=Kt(()=>KR(e.size));return{...gfe(e,n),drawerRef:n,focusStartRef:i,isHorizontal:s,drawerSize:a,ns:o,t:r}}}),Tfe=["aria-label","aria-labelledby","aria-describedby"],bfe=["id"],Efe=["aria-label"],xfe=["id"];function wfe(e,t,n,i,o,r){const s=Pb("close"),a=Pb("el-icon"),c=Pb("el-focus-trap"),u=Pb("el-overlay");return Gn(),Ma(hie,{to:"body",disabled:!e.appendToBody},[_o(ST,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:Ws(()=>[Ym(_o(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:Ws(()=>[_o(c,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:Ws(()=>[rs("div",zR({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=I6(()=>{},["stop"]))}),[rs("span",{ref:"focusStartRef",class:Mi(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(Gn(),mo("header",{key:0,class:Mi(e.ns.e("header"))},[e.$slots.title?ga(e.$slots,"title",{key:1},()=>[da(" DEPRECATED SLOT ")]):ga(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?da("v-if",!0):(Gn(),mo("span",{key:0,id:e.titleId,role:"heading",class:Mi(e.ns.e("title"))},qm(e.title),11,bfe))]),e.showClose?(Gn(),mo("button",{key:2,"aria-label":e.t("el.drawer.close"),class:Mi(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[_o(a,{class:Mi(e.ns.e("close"))},{default:Ws(()=>[_o(s)]),_:1},8,["class"])],10,Efe)):da("v-if",!0)],2)):da("v-if",!0),e.rendered?(Gn(),mo("div",{key:1,id:e.bodyId,class:Mi(e.ns.e("body"))},[ga(e.$slots,"default")],10,xfe)):da("v-if",!0),e.$slots.footer?(Gn(),mo("div",{key:2,class:Mi(e.ns.e("footer"))},[ga(e.$slots,"footer")],2)):da("v-if",!0)],16,Tfe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[UR,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Sfe=wd(Cfe,[["render",wfe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const vfe=DT(Sfe),Dfe=["start","center","end","space-around","space-between","space-evenly"],Ife=["top","middle","bottom"],Pfe=nf({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Dfe,default:"start"},align:{type:String,values:Ife,default:"top"}}),Ofe=wr({name:"ElRow"}),Lfe=wr({...Ofe,props:Pfe,setup(e){const t=e,n=of("row"),i=Kt(()=>t.gutter);Hh(oue,{gutter:i});const o=Kt(()=>{const s={};return t.gutter&&(s.marginRight=s.marginLeft=`-${t.gutter/2}px`),s}),r=Kt(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,t.align!=="top")]);return(s,a)=>(Gn(),Ma(av(s.tag),{class:Mi(ct(r)),style:Xy(ct(o))},{default:Ws(()=>[ga(s.$slots,"default")]),_:3},8,["class","style"]))}});var Bfe=wd(Lfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const Rfe=DT(Bfe),S9=["success","info","warning","error"],Pa=iue({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ql?document.body:void 0}),Nfe=nf({customClass:{type:String,default:Pa.customClass},center:{type:Boolean,default:Pa.center},dangerouslyUseHTMLString:{type:Boolean,default:Pa.dangerouslyUseHTMLString},duration:{type:Number,default:Pa.duration},icon:{type:h9,default:Pa.icon},id:{type:String,default:Pa.id},message:{type:kc([String,Object,Function]),default:Pa.message},onClose:{type:kc(Function),required:!1},showClose:{type:Boolean,default:Pa.showClose},type:{type:String,values:S9,default:Pa.type},offset:{type:Number,default:Pa.offset},zIndex:{type:Number,default:Pa.zIndex},grouping:{type:Boolean,default:Pa.grouping},repeatNum:{type:Number,default:Pa.repeatNum}}),Mfe={destroy:()=>!0},Bu=V8([]),Ffe=e=>{const t=Bu.findIndex(o=>o.id===e),n=Bu[t];let i;return t>0&&(i=Bu[t-1]),{current:n,prev:i}},zfe=e=>{const{prev:t}=Ffe(e);return t?t.vm.exposed.bottom.value:0},Ufe=["id"],Hfe=["innerHTML"],Vfe=wr({name:"ElMessage"}),kfe=wr({...Vfe,props:Nfe,emits:Mfe,setup(e,{expose:t}){const n=e,{Close:i}=eue,o=of("message"),r=Gi(),s=Gi(!1),a=Gi(0);let c;const u=Kt(()=>n.type?n.type==="error"?"danger":n.type:"info"),f=Kt(()=>{const S=n.type;return{[o.bm("icon",S)]:S&&P3[S]}}),h=Kt(()=>n.icon||P3[n.type]||""),_=Kt(()=>zfe(n.id)),g=Kt(()=>n.offset+_.value),p=Kt(()=>a.value+g.value),y=Kt(()=>({top:`${g.value}px`,zIndex:n.zIndex}));function C(){n.duration!==0&&({stop:c}=sL(()=>{E()},n.duration))}function T(){c==null||c()}function E(){s.value=!1}function w({code:S}){S===JR.esc&&E()}return ef(()=>{C(),s.value=!0}),Nr(()=>n.repeatNum,()=>{T(),C()}),lle(document,"keydown",w),ple(r,()=>{a.value=r.value.getBoundingClientRect().height}),t({visible:s,bottom:p,close:E}),(S,P)=>(Gn(),Ma(ST,{name:ct(o).b("fade"),onBeforeLeave:S.onClose,onAfterLeave:P[0]||(P[0]=O=>S.$emit("destroy")),persisted:""},{default:Ws(()=>[Ym(rs("div",{id:S.id,ref_key:"messageRef",ref:r,class:Mi([ct(o).b(),{[ct(o).m(S.type)]:S.type&&!S.icon},ct(o).is("center",S.center),ct(o).is("closable",S.showClose),S.customClass]),style:Xy(ct(y)),role:"alert",onMouseenter:T,onMouseleave:C},[S.repeatNum>1?(Gn(),Ma(ct(Vue),{key:0,value:S.repeatNum,type:ct(u),class:Mi(ct(o).e("badge"))},null,8,["value","type","class"])):da("v-if",!0),ct(h)?(Gn(),Ma(ct(uL),{key:1,class:Mi([ct(o).e("icon"),ct(f)])},{default:Ws(()=>[(Gn(),Ma(av(ct(h))))]),_:1},8,["class"])):da("v-if",!0),ga(S.$slots,"default",{},()=>[S.dangerouslyUseHTMLString?(Gn(),mo(ms,{key:1},[da(" Caution here, message could've been compromised, never use user's input as message "),rs("p",{class:Mi(ct(o).e("content")),innerHTML:S.message},null,10,Hfe)],2112)):(Gn(),mo("p",{key:0,class:Mi(ct(o).e("content"))},qm(S.message),3))]),S.showClose?(Gn(),Ma(ct(uL),{key:2,class:Mi(ct(o).e("closeBtn")),onClick:I6(E,["stop"])},{default:Ws(()=>[_o(ct(i))]),_:1},8,["class","onClick"])):da("v-if",!0)],46,Ufe),[[UR,s.value]])]),_:3},8,["name","onBeforeLeave"]))}});var Gfe=wd(kfe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Wfe=1;const v9=e=>{const t=!e||qi(e)||wy(e)||bn(e)?{message:e}:e,n={...Pa,...t};if(!n.appendTo)n.appendTo=document.body;else if(qi(n.appendTo)){let i=document.querySelector(n.appendTo);Cle(i)||(i=document.body),n.appendTo=i}return n},jfe=e=>{const t=Bu.indexOf(e);if(t===-1)return;Bu.splice(t,1);const{handler:n}=e;n.close()},qfe=({appendTo:e,...t},n)=>{const{nextZIndex:i}=A9(),o=`message_${Wfe++}`,r=t.onClose,s=document.createElement("div"),a={...t,zIndex:i()+t.zIndex,id:o,onClose:()=>{r==null||r(),jfe(h)},onDestroy:()=>{N2(null,s)}},c=_o(Gfe,a,bn(a.message)||wy(a.message)?{default:bn(a.message)?a.message:()=>a.message}:null);c.appContext=n||Oy._context,N2(c,s),e.appendChild(s.firstElementChild);const u=c.component,h={id:o,vnode:c,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:c.component.props};return h},Oy=(e={},t)=>{if(!ql)return{close:()=>{}};if(Py(fL.max)&&Bu.length>=fL.max)return{close:()=>{}};const n=v9(e);if(n.grouping&&Bu.length){const o=Bu.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(o)return o.props.repeatNum+=1,o.props.type=n.type,o.handler}const i=qfe(n,t);return Bu.push(i),i.handler};S9.forEach(e=>{Oy[e]=(t={},n)=>{const i=v9(t);return Oy({...i,type:e},n)}});function Yfe(e){for(const t of Bu)(!e||e===t.props.type)&&t.handler.close()}Oy.closeAll=Yfe;Oy._context=null;const $fe=tue(Oy,"$message"),Xfe="/satellite-track/assets/menu-a8f9cd83.svg";function l(e){return e!=null}function x(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(x.prototype=Object.create(Error.prototype),x.prototype.constructor=x);x.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` +${this.stack.toString()}`),e};x.throwInstantiationError=function(){throw new x("This function defines an interface and should not be called directly.")};const Tr={};Tr.typeOf={};function Kfe(e){return`${e} is required, actual value was undefined`}function n0(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}Tr.defined=function(e,t){if(!l(t))throw new x(Kfe(e))};Tr.typeOf.func=function(e,t){if(typeof t!="function")throw new x(n0(typeof t,"function",e))};Tr.typeOf.string=function(e,t){if(typeof t!="string")throw new x(n0(typeof t,"string",e))};Tr.typeOf.number=function(e,t){if(typeof t!="number")throw new x(n0(typeof t,"number",e))};Tr.typeOf.number.lessThan=function(e,t,n){if(Tr.typeOf.number(e,t),t>=n)throw new x(`Expected ${e} to be less than ${n}, actual value was ${t}`)};Tr.typeOf.number.lessThanOrEquals=function(e,t,n){if(Tr.typeOf.number(e,t),t>n)throw new x(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};Tr.typeOf.number.greaterThan=function(e,t,n){if(Tr.typeOf.number(e,t),t<=n)throw new x(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};Tr.typeOf.number.greaterThanOrEquals=function(e,t,n){if(Tr.typeOf.number(e,t),t>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(((e&4294901760)>>>16)*1812433253<<16)+(e&65535)*1812433253+this.mti,this.mt[this.mti]>>>=0}};Sd.prototype.init_by_array=function(e,t){var n,i,o;for(this.init_seed(19650218),n=1,i=0,o=this.N>t?this.N:t;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1664525<<16)+(r&65535)*1664525)+e[i]+i,this.mt[n]>>>=0,n++,i++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),i>=t&&(i=0)}for(o=this.N-1;o;o--){var r=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(((r&4294901760)>>>16)*1566083941<<16)+(r&65535)*1566083941)-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648};Sd.prototype.random_int=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^t[e&1];for(;n>>1^t[e&1];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[e&1],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};Sd.prototype.random_int31=function(){return this.random_int()>>>1};Sd.prototype.random_incl=function(){return this.random_int()*(1/4294967295)};Sd.prototype.random=function(){return this.random_int()*(1/4294967296)};Sd.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)};Sd.prototype.random_long=function(){var e=this.random_int()>>>5,t=this.random_int()>>>6;return(e*67108864+t)*(1/9007199254740992)};var gv=Sd;const Ye={};Ye.EPSILON1=.1;Ye.EPSILON2=.01;Ye.EPSILON3=.001;Ye.EPSILON4=1e-4;Ye.EPSILON5=1e-5;Ye.EPSILON6=1e-6;Ye.EPSILON7=1e-7;Ye.EPSILON8=1e-8;Ye.EPSILON9=1e-9;Ye.EPSILON10=1e-10;Ye.EPSILON11=1e-11;Ye.EPSILON12=1e-12;Ye.EPSILON13=1e-13;Ye.EPSILON14=1e-14;Ye.EPSILON15=1e-15;Ye.EPSILON16=1e-16;Ye.EPSILON17=1e-17;Ye.EPSILON18=1e-18;Ye.EPSILON19=1e-19;Ye.EPSILON20=1e-20;Ye.EPSILON21=1e-21;Ye.GRAVITATIONALPARAMETER=3986004418e5;Ye.SOLAR_RADIUS=6955e5;Ye.LUNAR_RADIUS=1737400;Ye.SIXTY_FOUR_KILOBYTES=64*1024;Ye.FOUR_GIGABYTES=4*1024*1024*1024;Ye.sign=A(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Ye.signNotZero=function(e){return e<0?-1:1};Ye.toSNorm=function(e,t){return t=A(t,255),Math.round((Ye.clamp(e,-1,1)*.5+.5)*t)};Ye.fromSNorm=function(e,t){return t=A(t,255),Ye.clamp(e,0,t)/t*2-1};Ye.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Ye.clamp((e-t)/n,0,1)};Ye.sinh=A(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Ye.cosh=A(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Ye.lerp=function(e,t,n){return(1-n)*e+n*t};Ye.PI=Math.PI;Ye.ONE_OVER_PI=1/Math.PI;Ye.PI_OVER_TWO=Math.PI/2;Ye.PI_OVER_THREE=Math.PI/3;Ye.PI_OVER_FOUR=Math.PI/4;Ye.PI_OVER_SIX=Math.PI/6;Ye.THREE_PI_OVER_TWO=3*Math.PI/2;Ye.TWO_PI=2*Math.PI;Ye.ONE_OVER_TWO_PI=1/(2*Math.PI);Ye.RADIANS_PER_DEGREE=Math.PI/180;Ye.DEGREES_PER_RADIAN=180/Math.PI;Ye.RADIANS_PER_ARCSECOND=Ye.RADIANS_PER_DEGREE/3600;Ye.toRadians=function(e){if(!l(e))throw new x("degrees is required.");return e*Ye.RADIANS_PER_DEGREE};Ye.toDegrees=function(e){if(!l(e))throw new x("radians is required.");return e*Ye.DEGREES_PER_RADIAN};Ye.convertLongitudeRange=function(e){if(!l(e))throw new x("angle is required.");const t=Ye.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Ye.clampToLatitudeRange=function(e){if(!l(e))throw new x("angle is required.");return Ye.clamp(e,-1*Ye.PI_OVER_TWO,Ye.PI_OVER_TWO)};Ye.negativePiToPi=function(e){if(!l(e))throw new x("angle is required.");return e>=-Ye.PI&&e<=Ye.PI?e:Ye.zeroToTwoPi(e+Ye.PI)-Ye.PI};Ye.zeroToTwoPi=function(e){if(!l(e))throw new x("angle is required.");if(e>=0&&e<=Ye.TWO_PI)return e;const t=Ye.mod(e,Ye.TWO_PI);return Math.abs(t)Ye.EPSILON14?Ye.TWO_PI:t};Ye.mod=function(e,t){if(!l(e))throw new x("m is required.");if(!l(t))throw new x("n is required.");if(t===0)throw new x("divisor cannot be 0.");return Ye.sign(e)===Ye.sign(t)&&Math.abs(e)n};Ye.greaterThanOrEquals=function(e,t,n){if(!l(e))throw new x("first is required.");if(!l(t))throw new x("second is required.");if(!l(n))throw new x("absoluteEpsilon is required.");return e-t>-n};const Fb=[1];Ye.factorial=function(e){if(typeof e!="number"||e<0)throw new x("A number greater than or equal to 0 is required.");const t=Fb.length;if(e>=t){let n=Fb[t-1];for(let i=t;i<=e;i++){const o=n*i;Fb.push(o),n=o}}return Fb[e]};Ye.incrementWrap=function(e,t,n){if(n=A(n,0),!l(e))throw new x("n is required.");if(t<=n)throw new x("maximumValue must be greater than minimumValue.");return++e,e>t&&(e=n),e};Ye.isPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e!==0&&(e&e-1)===0};Ye.nextPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>2147483648)throw new x("A number between 0 and 2^31 is required.");return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Ye.previousPowerOfTwo=function(e){if(typeof e!="number"||e<0||e>4294967295)throw new x("A number between 0 and (2^32)-1 is required.");return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Ye.clamp=function(e,t,n){return b.typeOf.number("value",e),b.typeOf.number("min",t),b.typeOf.number("max",n),en?n:e};let D9=new gv;Ye.setRandomNumberSeed=function(e){if(!l(e))throw new x("seed is required.");D9=new gv(e)};Ye.nextRandomNumber=function(){return D9.random()};Ye.randomBetween=function(e,t){return Ye.nextRandomNumber()*(t-e)+e};Ye.acosClamped=function(e){if(!l(e))throw new x("value is required.");return Math.acos(Ye.clamp(e,-1,1))};Ye.asinClamped=function(e){if(!l(e))throw new x("value is required.");return Math.asin(Ye.clamp(e,-1,1))};Ye.chordLength=function(e,t){if(!l(e))throw new x("angle is required.");if(!l(t))throw new x("radius is required.");return 2*t*Math.sin(e*.5)};Ye.logBase=function(e,t){if(!l(e))throw new x("number is required.");if(!l(t))throw new x("base is required.");return Math.log(e)/Math.log(t)};Ye.cbrt=A(Math.cbrt,function(t){const n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Ye.log2=A(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Ye.fog=function(e,t){const n=e*t;return 1-Math.exp(-(n*n))};Ye.fastApproximateAtan=function(e){return b.typeOf.number("x",e),e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Ye.fastApproximateAtan2=function(e,t){b.typeOf.number("x",e),b.typeOf.number("y",t);let n,i=Math.abs(e);n=Math.abs(t);const o=Math.max(i,n);n=Math.min(i,n);const r=n/o;if(isNaN(r))throw new x("either x or y must be nonzero");return i=Ye.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Ye.PI_OVER_TWO-i:i,i=e<0?Ye.PI-i:i,i=t<0?-i:i,i};const N=Ye;function d(e,t,n){this.x=A(e,0),this.y=A(t,0),this.z=A(n,0)}d.fromSpherical=function(e,t){b.typeOf.object("spherical",e),l(t)||(t=new d);const n=e.clock,i=e.cone,o=A(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};d.fromElements=function(e,t,n,i){return l(i)?(i.x=e,i.y=t,i.z=n,i):new d(e,t,n)};d.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new d(e.x,e.y,e.z)};d.fromCartesian4=d.clone;d.packedLength=3;d.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};d.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new d),n.x=e[t++],n.y=e[t++],n.z=e[t],n};d.packArray=function(e,t){b.defined("array",e);const n=e.length,i=n*3;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 3 elements");t.length!==i&&(t.length=i)}for(let o=0;oi&&(o=u,i=f)}let r=1,s=0;const a=dL[o],c=hL[o];if(Math.abs(e[J.getElementIndex(c,a)])>n){const u=e[J.getElementIndex(c,c)],f=e[J.getElementIndex(a,a)],h=e[J.getElementIndex(c,a)],_=(u-f)/2/h;let g;_<0?g=-1/(-_+Math.sqrt(1+_*_)):g=1/(_+Math.sqrt(1+_*_)),r=1/Math.sqrt(1+g*g),s=g*r}return t=J.clone(J.IDENTITY,t),t[J.getElementIndex(a,a)]=t[J.getElementIndex(c,c)]=r,t[J.getElementIndex(c,a)]=s,t[J.getElementIndex(a,c)]=-s,t}const Ub=new J,q3=new J;J.computeEigenDecomposition=function(e,t){b.typeOf.object("matrix",e);const n=N.EPSILON20,i=10;let o=0,r=0;l(t)||(t={});const s=t.unitary=J.clone(J.IDENTITY,t.unitary),a=t.diagonal=J.clone(e,t.diagonal),c=n*sde(a);for(;rc;)cde(a,Ub),J.transpose(Ub,q3),J.multiply(a,Ub,a),J.multiply(q3,a,a),J.multiply(s,Ub,s),++o>2&&(++r,o=0);return t};J.abs=function(e,t){return b.typeOf.object("matrix",e),b.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};J.determinant=function(e){b.typeOf.object("matrix",e);const t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],u=e[8];return t*(r*u-c*s)+o*(c*i-n*u)+a*(n*s-r*i)};J.inverse=function(e,t){b.typeOf.object("matrix",e),b.typeOf.object("result",t);const n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],u=e[7],f=e[8],h=J.determinant(e);if(Math.abs(h)<=N.EPSILON15)throw new x("matrix is not invertible");t[0]=s*f-u*a,t[1]=u*o-i*f,t[2]=i*a-s*o,t[3]=c*a-r*f,t[4]=n*f-c*o,t[5]=r*o-n*a,t[6]=r*u-c*s,t[7]=c*i-n*u,t[8]=n*s-r*i;const _=1/h;return J.multiplyByScalar(t,_,t)};const lde=new J;J.inverseTranspose=function(e,t){return b.typeOf.object("matrix",e),b.typeOf.object("result",t),J.inverse(J.transpose(e,lde),t)};J.equals=function(e,t){return e===t||l(e)&&l(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};J.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};J.IDENTITY=Object.freeze(new J(1,0,0,0,1,0,0,0,1));J.ZERO=Object.freeze(new J(0,0,0,0,0,0,0,0,0));J.COLUMN0ROW0=0;J.COLUMN0ROW1=1;J.COLUMN0ROW2=2;J.COLUMN1ROW0=3;J.COLUMN1ROW1=4;J.COLUMN1ROW2=5;J.COLUMN2ROW0=6;J.COLUMN2ROW1=7;J.COLUMN2ROW2=8;Object.defineProperties(J.prototype,{length:{get:function(){return J.packedLength}}});J.prototype.clone=function(e){return J.clone(this,e)};J.prototype.equals=function(e){return J.equals(this,e)};J.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};J.prototype.equalsEpsilon=function(e,t){return J.equalsEpsilon(this,e,t)};J.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]}) (${this[1]}, ${this[4]}, ${this[7]}) -(${this[2]}, ${this[5]}, ${this[8]})`};function Ie(e){this.name="RuntimeError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}l(Object.create)&&(Ie.prototype=Object.create(Error.prototype),Ie.prototype.constructor=Ie);Ie.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return l(this.stack)&&(e+=` -${this.stack.toString()}`),e};function B(e,t,n,i,o,r,s,a,c,u,d,h,m,g,p,y){this[0]=A(e,0),this[1]=A(o,0),this[2]=A(c,0),this[3]=A(m,0),this[4]=A(t,0),this[5]=A(r,0),this[6]=A(u,0),this[7]=A(g,0),this[8]=A(n,0),this[9]=A(s,0),this[10]=A(d,0),this[11]=A(p,0),this[12]=A(i,0),this[13]=A(a,0),this[14]=A(h,0),this[15]=A(y,0)}B.packedLength=16;B.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t[n++]=e[9],t[n++]=e[10],t[n++]=e[11],t[n++]=e[12],t[n++]=e[13],t[n++]=e[14],t[n]=e[15],t};B.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new B),n[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n[9]=e[t++],n[10]=e[t++],n[11]=e[t++],n[12]=e[t++],n[13]=e[t++],n[14]=e[t++],n[15]=e[t],n};B.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*16;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 16 elements");t.length!==i&&(t.length=i)}for(let o=0;o=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};jr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new x("numberOfVertices is required.");if(!l(t))throw new x("sourceArray is required.");if(!l(n))throw new x("byteOffset is required.");return e>=M.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};jr.fromTypedArray=function(e){if(e instanceof Uint8Array)return jr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return jr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return jr.UNSIGNED_INT;throw new x("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const at=Object.freeze(jr),Iw={STREAM_DRAW:ae.STREAM_DRAW,STATIC_DRAW:ae.STATIC_DRAW,DYNAMIC_DRAW:ae.DYNAMIC_DRAW,validate:function(e){return e===Iw.STREAM_DRAW||e===Iw.STATIC_DRAW||e===Iw.DYNAMIC_DRAW}},nt=Object.freeze(Iw);function Tt(e){if(e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new x("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new x("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(T.typeOf.object("options.typedArray",e.typedArray),T.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!nt.validate(e.usage))throw new x("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),T.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=Ms(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}Tt.createVertexBuffer=function(e){return T.defined("options.context",e.context),new Tt({context:e.context,bufferTarget:ae.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};Tt.createIndexBuffer=function(e){if(T.defined("options.context",e.context),!at.validate(e.indexDatatype))throw new x("Invalid indexDatatype.");if(e.indexDatatype===at.UNSIGNED_INT&&!e.context.elementIndexUint)throw new x("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=at.getSizeInBytes(n),o=new Tt({context:t,bufferTarget:ae.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(Tt.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});Tt.prototype._getBuffer=function(){return this._buffer};Tt.prototype.copyFromArrayView=function(e,t){t=A(t,0),T.defined("arrayView",e),T.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};Tt.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new x("A WebGL 2 context is required.");if(!l(e))throw new x("readBuffer must be defined.");if(!l(i)||i<=0)throw new x("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new x("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new x("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new x("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new x("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new x("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new x("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=ae.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};Tt.prototype.isDestroyed=function(){return!1};Tt.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),He(this)};let mh;const Xo={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},ja={};Object.defineProperties(ja,{element:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenElement]}},changeEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenchange}},errorEventName:{get:function(){if(ja.supportsFullscreen())return Xo.fullscreenerror}},enabled:{get:function(){if(ja.supportsFullscreen())return document[Xo.fullscreenEnabled]}},fullscreen:{get:function(){if(ja.supportsFullscreen())return ja.element!==null}}});ja.supportsFullscreen=function(){if(l(mh))return mh;mh=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Xo.requestFullscreen="requestFullscreen",Xo.exitFullscreen="exitFullscreen",Xo.fullscreenEnabled="fullscreenEnabled",Xo.fullscreenElement="fullscreenElement",Xo.fullscreenchange="fullscreenchange",Xo.fullscreenerror="fullscreenerror",mh=!0,mh;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){qs._result=t.width>0&&t.height>0,e(qs._result)},t.onerror=function(){qs._result=!1,e(qs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),qs._promise};Object.defineProperties(qs,{initialized:{get:function(){return l(qs._result)}}});const ry=[];typeof ArrayBuffer<"u"&&(ry.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&ry.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&ry.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&ry.push(BigInt64Array),typeof BigUint64Array<"u"&&ry.push(BigUint64Array));const ud={isChrome:QN,chromeVersion:B_e,isSafari:QW,safariVersion:R_e,isWebkit:ZW,webkitVersion:N_e,isInternetExplorer:ej,internetExplorerVersion:M_e,isEdge:iD,edgeVersion:F_e,isFirefox:ZN,firefoxVersion:H_e,isWindows:z_e,isIPadOrIOS:U_e,hardwareConcurrency:A(ia.hardwareConcurrency,3),supportsPointerEvents:V_e,supportsImageRenderingPixelated:oj,supportsWebP:qs,imageRenderingValue:k_e,typedArrayTypes:ry};ud.supportsBasis=function(e){return ud.supportsWebAssembly()&&e.context.supportsBasis};ud.supportsFullscreen=function(){return os.supportsFullscreen()};ud.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};ud.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};ud.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};ud.supportsBigInt=function(){return typeof BigInt<"u"};ud.supportsWebWorkers=function(){return typeof Worker<"u"};ud.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const gn=ud;function t1(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function H(e,t,n,i){this.red=A(e,1),this.green=A(t,1),this.blue=A(n,1),this.alpha=A(i,1)}H.fromCartesian4=function(e,t){return T.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new H(e.x,e.y,e.z,e.w)};H.fromBytes=function(e,t,n,i,o){return e=H.byteToFloat(A(e,255)),t=H.byteToFloat(A(t,255)),n=H.byteToFloat(A(n,255)),i=H.byteToFloat(A(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new H(e,t,n,i)};H.fromAlpha=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new H(e.red,e.green,e.blue,t)};let n1,eM,sf;gn.supportsTypedArrays()&&(n1=new ArrayBuffer(4),eM=new Uint32Array(n1),sf=new Uint8Array(n1));H.fromRgba=function(e,t){return eM[0]=e,H.fromBytes(sf[0],sf[1],sf[2],sf[3],t)};H.fromHsl=function(e,t,n,i,o){e=A(e,0)%1,t=A(t,0),n=A(n,0),i=A(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=t1(u,c,e+1/3),s=t1(u,c,e),a=t1(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new H(r,s,a,i)};H.fromRandom=function(e,t){e=A(e,A.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=A(e.minimumRed,0),a=A(e.maximumRed,1);T.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+M.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=A(e.minimumGreen,0),a=A(e.maximumGreen,1);T.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+M.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=A(e.minimumBlue,0),a=A(e.maximumBlue,1);T.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+M.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=A(e.minimumAlpha,0),a=A(e.maximumAlpha,1);T.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+M.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new H(n,i,o,r)};const G_e=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,W_e=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,j_e=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,q_e=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;H.fromCssColorString=function(e,t){T.typeOf.string("color",e),l(t)||(t=new H),e=e.replace(/\s/g,"");const n=H[e.toUpperCase()];if(l(n))return H.clone(n,t),t;let i=G_e.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(A(i[4],"f"),16)/15,t):(i=W_e.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(A(i[4],"ff"),16)/255,t):(i=j_e.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(A(i[4],"1.0")),t):(i=q_e.exec(e),i!==null?H.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(A(i[4],"1.0")),t):(t=void 0,t))))};H.packedLength=4;H.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};H.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new H),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};H.byteToFloat=function(e){return e/255};H.floatToByte=function(e){return e===1?255:e*256|0};H.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new H(e.red,e.green,e.blue,e.alpha)};H.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};H.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};H.prototype.clone=function(e){return H.clone(this,e)};H.prototype.equals=function(e){return H.equals(this,e)};H.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};H.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};H.prototype.toCssColorString=function(){const e=H.floatToByte(this.red),t=H.floatToByte(this.green),n=H.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};H.prototype.toCssHexString=function(){let e=H.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=H.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=H.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=H.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};H.prototype.toBytes=function(e){const t=H.floatToByte(this.red),n=H.floatToByte(this.green),i=H.floatToByte(this.blue),o=H.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};H.prototype.toRgba=function(){return sf[0]=H.floatToByte(this.red),sf[1]=H.floatToByte(this.green),sf[2]=H.floatToByte(this.blue),sf[3]=H.floatToByte(this.alpha),eM[0]};H.prototype.brighten=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};H.prototype.darken=function(e,t){return T.typeOf.number("magnitude",e),T.typeOf.number.greaterThanOrEquals("magnitude",e,0),T.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};H.prototype.withAlpha=function(e,t){return H.fromAlpha(this,e,t)};H.add=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};H.subtract=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};H.multiply=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};H.divide=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};H.mod=function(e,t,n){return T.typeOf.object("left",e),T.typeOf.object("right",t),T.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};H.lerp=function(e,t,n,i){return T.typeOf.object("start",e),T.typeOf.object("end",t),T.typeOf.number("t",n),T.typeOf.object("result",i),i.red=M.lerp(e.red,t.red,n),i.green=M.lerp(e.green,t.green,n),i.blue=M.lerp(e.blue,t.blue,n),i.alpha=M.lerp(e.alpha,t.alpha,n),i};H.multiplyByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};H.divideByScalar=function(e,t,n){return T.typeOf.object("color",e),T.typeOf.number("scalar",t),T.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};H.ALICEBLUE=Object.freeze(H.fromCssColorString("#F0F8FF"));H.ANTIQUEWHITE=Object.freeze(H.fromCssColorString("#FAEBD7"));H.AQUA=Object.freeze(H.fromCssColorString("#00FFFF"));H.AQUAMARINE=Object.freeze(H.fromCssColorString("#7FFFD4"));H.AZURE=Object.freeze(H.fromCssColorString("#F0FFFF"));H.BEIGE=Object.freeze(H.fromCssColorString("#F5F5DC"));H.BISQUE=Object.freeze(H.fromCssColorString("#FFE4C4"));H.BLACK=Object.freeze(H.fromCssColorString("#000000"));H.BLANCHEDALMOND=Object.freeze(H.fromCssColorString("#FFEBCD"));H.BLUE=Object.freeze(H.fromCssColorString("#0000FF"));H.BLUEVIOLET=Object.freeze(H.fromCssColorString("#8A2BE2"));H.BROWN=Object.freeze(H.fromCssColorString("#A52A2A"));H.BURLYWOOD=Object.freeze(H.fromCssColorString("#DEB887"));H.CADETBLUE=Object.freeze(H.fromCssColorString("#5F9EA0"));H.CHARTREUSE=Object.freeze(H.fromCssColorString("#7FFF00"));H.CHOCOLATE=Object.freeze(H.fromCssColorString("#D2691E"));H.CORAL=Object.freeze(H.fromCssColorString("#FF7F50"));H.CORNFLOWERBLUE=Object.freeze(H.fromCssColorString("#6495ED"));H.CORNSILK=Object.freeze(H.fromCssColorString("#FFF8DC"));H.CRIMSON=Object.freeze(H.fromCssColorString("#DC143C"));H.CYAN=Object.freeze(H.fromCssColorString("#00FFFF"));H.DARKBLUE=Object.freeze(H.fromCssColorString("#00008B"));H.DARKCYAN=Object.freeze(H.fromCssColorString("#008B8B"));H.DARKGOLDENROD=Object.freeze(H.fromCssColorString("#B8860B"));H.DARKGRAY=Object.freeze(H.fromCssColorString("#A9A9A9"));H.DARKGREEN=Object.freeze(H.fromCssColorString("#006400"));H.DARKGREY=H.DARKGRAY;H.DARKKHAKI=Object.freeze(H.fromCssColorString("#BDB76B"));H.DARKMAGENTA=Object.freeze(H.fromCssColorString("#8B008B"));H.DARKOLIVEGREEN=Object.freeze(H.fromCssColorString("#556B2F"));H.DARKORANGE=Object.freeze(H.fromCssColorString("#FF8C00"));H.DARKORCHID=Object.freeze(H.fromCssColorString("#9932CC"));H.DARKRED=Object.freeze(H.fromCssColorString("#8B0000"));H.DARKSALMON=Object.freeze(H.fromCssColorString("#E9967A"));H.DARKSEAGREEN=Object.freeze(H.fromCssColorString("#8FBC8F"));H.DARKSLATEBLUE=Object.freeze(H.fromCssColorString("#483D8B"));H.DARKSLATEGRAY=Object.freeze(H.fromCssColorString("#2F4F4F"));H.DARKSLATEGREY=H.DARKSLATEGRAY;H.DARKTURQUOISE=Object.freeze(H.fromCssColorString("#00CED1"));H.DARKVIOLET=Object.freeze(H.fromCssColorString("#9400D3"));H.DEEPPINK=Object.freeze(H.fromCssColorString("#FF1493"));H.DEEPSKYBLUE=Object.freeze(H.fromCssColorString("#00BFFF"));H.DIMGRAY=Object.freeze(H.fromCssColorString("#696969"));H.DIMGREY=H.DIMGRAY;H.DODGERBLUE=Object.freeze(H.fromCssColorString("#1E90FF"));H.FIREBRICK=Object.freeze(H.fromCssColorString("#B22222"));H.FLORALWHITE=Object.freeze(H.fromCssColorString("#FFFAF0"));H.FORESTGREEN=Object.freeze(H.fromCssColorString("#228B22"));H.FUCHSIA=Object.freeze(H.fromCssColorString("#FF00FF"));H.GAINSBORO=Object.freeze(H.fromCssColorString("#DCDCDC"));H.GHOSTWHITE=Object.freeze(H.fromCssColorString("#F8F8FF"));H.GOLD=Object.freeze(H.fromCssColorString("#FFD700"));H.GOLDENROD=Object.freeze(H.fromCssColorString("#DAA520"));H.GRAY=Object.freeze(H.fromCssColorString("#808080"));H.GREEN=Object.freeze(H.fromCssColorString("#008000"));H.GREENYELLOW=Object.freeze(H.fromCssColorString("#ADFF2F"));H.GREY=H.GRAY;H.HONEYDEW=Object.freeze(H.fromCssColorString("#F0FFF0"));H.HOTPINK=Object.freeze(H.fromCssColorString("#FF69B4"));H.INDIANRED=Object.freeze(H.fromCssColorString("#CD5C5C"));H.INDIGO=Object.freeze(H.fromCssColorString("#4B0082"));H.IVORY=Object.freeze(H.fromCssColorString("#FFFFF0"));H.KHAKI=Object.freeze(H.fromCssColorString("#F0E68C"));H.LAVENDER=Object.freeze(H.fromCssColorString("#E6E6FA"));H.LAVENDAR_BLUSH=Object.freeze(H.fromCssColorString("#FFF0F5"));H.LAWNGREEN=Object.freeze(H.fromCssColorString("#7CFC00"));H.LEMONCHIFFON=Object.freeze(H.fromCssColorString("#FFFACD"));H.LIGHTBLUE=Object.freeze(H.fromCssColorString("#ADD8E6"));H.LIGHTCORAL=Object.freeze(H.fromCssColorString("#F08080"));H.LIGHTCYAN=Object.freeze(H.fromCssColorString("#E0FFFF"));H.LIGHTGOLDENRODYELLOW=Object.freeze(H.fromCssColorString("#FAFAD2"));H.LIGHTGRAY=Object.freeze(H.fromCssColorString("#D3D3D3"));H.LIGHTGREEN=Object.freeze(H.fromCssColorString("#90EE90"));H.LIGHTGREY=H.LIGHTGRAY;H.LIGHTPINK=Object.freeze(H.fromCssColorString("#FFB6C1"));H.LIGHTSEAGREEN=Object.freeze(H.fromCssColorString("#20B2AA"));H.LIGHTSKYBLUE=Object.freeze(H.fromCssColorString("#87CEFA"));H.LIGHTSLATEGRAY=Object.freeze(H.fromCssColorString("#778899"));H.LIGHTSLATEGREY=H.LIGHTSLATEGRAY;H.LIGHTSTEELBLUE=Object.freeze(H.fromCssColorString("#B0C4DE"));H.LIGHTYELLOW=Object.freeze(H.fromCssColorString("#FFFFE0"));H.LIME=Object.freeze(H.fromCssColorString("#00FF00"));H.LIMEGREEN=Object.freeze(H.fromCssColorString("#32CD32"));H.LINEN=Object.freeze(H.fromCssColorString("#FAF0E6"));H.MAGENTA=Object.freeze(H.fromCssColorString("#FF00FF"));H.MAROON=Object.freeze(H.fromCssColorString("#800000"));H.MEDIUMAQUAMARINE=Object.freeze(H.fromCssColorString("#66CDAA"));H.MEDIUMBLUE=Object.freeze(H.fromCssColorString("#0000CD"));H.MEDIUMORCHID=Object.freeze(H.fromCssColorString("#BA55D3"));H.MEDIUMPURPLE=Object.freeze(H.fromCssColorString("#9370DB"));H.MEDIUMSEAGREEN=Object.freeze(H.fromCssColorString("#3CB371"));H.MEDIUMSLATEBLUE=Object.freeze(H.fromCssColorString("#7B68EE"));H.MEDIUMSPRINGGREEN=Object.freeze(H.fromCssColorString("#00FA9A"));H.MEDIUMTURQUOISE=Object.freeze(H.fromCssColorString("#48D1CC"));H.MEDIUMVIOLETRED=Object.freeze(H.fromCssColorString("#C71585"));H.MIDNIGHTBLUE=Object.freeze(H.fromCssColorString("#191970"));H.MINTCREAM=Object.freeze(H.fromCssColorString("#F5FFFA"));H.MISTYROSE=Object.freeze(H.fromCssColorString("#FFE4E1"));H.MOCCASIN=Object.freeze(H.fromCssColorString("#FFE4B5"));H.NAVAJOWHITE=Object.freeze(H.fromCssColorString("#FFDEAD"));H.NAVY=Object.freeze(H.fromCssColorString("#000080"));H.OLDLACE=Object.freeze(H.fromCssColorString("#FDF5E6"));H.OLIVE=Object.freeze(H.fromCssColorString("#808000"));H.OLIVEDRAB=Object.freeze(H.fromCssColorString("#6B8E23"));H.ORANGE=Object.freeze(H.fromCssColorString("#FFA500"));H.ORANGERED=Object.freeze(H.fromCssColorString("#FF4500"));H.ORCHID=Object.freeze(H.fromCssColorString("#DA70D6"));H.PALEGOLDENROD=Object.freeze(H.fromCssColorString("#EEE8AA"));H.PALEGREEN=Object.freeze(H.fromCssColorString("#98FB98"));H.PALETURQUOISE=Object.freeze(H.fromCssColorString("#AFEEEE"));H.PALEVIOLETRED=Object.freeze(H.fromCssColorString("#DB7093"));H.PAPAYAWHIP=Object.freeze(H.fromCssColorString("#FFEFD5"));H.PEACHPUFF=Object.freeze(H.fromCssColorString("#FFDAB9"));H.PERU=Object.freeze(H.fromCssColorString("#CD853F"));H.PINK=Object.freeze(H.fromCssColorString("#FFC0CB"));H.PLUM=Object.freeze(H.fromCssColorString("#DDA0DD"));H.POWDERBLUE=Object.freeze(H.fromCssColorString("#B0E0E6"));H.PURPLE=Object.freeze(H.fromCssColorString("#800080"));H.RED=Object.freeze(H.fromCssColorString("#FF0000"));H.ROSYBROWN=Object.freeze(H.fromCssColorString("#BC8F8F"));H.ROYALBLUE=Object.freeze(H.fromCssColorString("#4169E1"));H.SADDLEBROWN=Object.freeze(H.fromCssColorString("#8B4513"));H.SALMON=Object.freeze(H.fromCssColorString("#FA8072"));H.SANDYBROWN=Object.freeze(H.fromCssColorString("#F4A460"));H.SEAGREEN=Object.freeze(H.fromCssColorString("#2E8B57"));H.SEASHELL=Object.freeze(H.fromCssColorString("#FFF5EE"));H.SIENNA=Object.freeze(H.fromCssColorString("#A0522D"));H.SILVER=Object.freeze(H.fromCssColorString("#C0C0C0"));H.SKYBLUE=Object.freeze(H.fromCssColorString("#87CEEB"));H.SLATEBLUE=Object.freeze(H.fromCssColorString("#6A5ACD"));H.SLATEGRAY=Object.freeze(H.fromCssColorString("#708090"));H.SLATEGREY=H.SLATEGRAY;H.SNOW=Object.freeze(H.fromCssColorString("#FFFAFA"));H.SPRINGGREEN=Object.freeze(H.fromCssColorString("#00FF7F"));H.STEELBLUE=Object.freeze(H.fromCssColorString("#4682B4"));H.TAN=Object.freeze(H.fromCssColorString("#D2B48C"));H.TEAL=Object.freeze(H.fromCssColorString("#008080"));H.THISTLE=Object.freeze(H.fromCssColorString("#D8BFD8"));H.TOMATO=Object.freeze(H.fromCssColorString("#FF6347"));H.TURQUOISE=Object.freeze(H.fromCssColorString("#40E0D0"));H.VIOLET=Object.freeze(H.fromCssColorString("#EE82EE"));H.WHEAT=Object.freeze(H.fromCssColorString("#F5DEB3"));H.WHITE=Object.freeze(H.fromCssColorString("#FFFFFF"));H.WHITESMOKE=Object.freeze(H.fromCssColorString("#F5F5F5"));H.YELLOW=Object.freeze(H.fromCssColorString("#FFFF00"));H.YELLOWGREEN=Object.freeze(H.fromCssColorString("#9ACD32"));H.TRANSPARENT=Object.freeze(new H(0,0,0,0));function co(e){e=A(e,A.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}co.ALL=Object.freeze(new co({color:new H(0,0,0,0),depth:1,stencil:0}));co.prototype.execute=function(e,t){e.clear(this,t)};const $_e={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Ne=Object.freeze($_e);function yC(e){e=A(e,A.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=A(e.persists,!1),this.pass=Ne.COMPUTE,this.owner=e.owner}yC.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=A(e,0),this.y=A(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n]=e.y,t};j.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){T.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oM.EPSILON12);return l(o)?(o.x=r*F,o.y=s*U,o.z=a*D,o):new f(r*F,s*U,a*D)}function Ce(e,t,n){this.longitude=A(e,0),this.latitude=A(t,0),this.height=A(n,0)}Ce.fromRadians=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),n=A(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ce(e,t,n)};Ce.fromDegrees=function(e,t,n,i){return T.typeOf.number("longitude",e),T.typeOf.number("latitude",t),e=M.toRadians(e),t=M.toRadians(t),Ce.fromRadians(e,t,n,i)};const J_e=new f,Q_e=new f,Z_e=new f,ege=new f(1/6378137,1/6378137,1/6356752314245179e-9),tge=new f(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),nge=M.EPSILON1;Ce.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:ege,o=l(t)?t.oneOverRadiiSquared:tge,r=l(t)?t._centerToleranceSquared:nge,s=rj(e,i,o,r,Q_e);if(!l(s))return;let a=f.multiplyComponents(s,o,J_e);a=f.normalize(a,a);const c=f.subtract(e,s,Z_e),u=Math.atan2(a.y,a.x),d=Math.asin(a.z),h=M.sign(f.dot(c,e))*f.magnitude(c);return l(n)?(n.longitude=u,n.latitude=d,n.height=h,n):new Ce(u,d,h)};Ce.toCartesian=function(e,t,n){return T.defined("cartographic",e),f.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ce.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ce(e.longitude,e.latitude,e.height)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ce.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function sj(e,t,n,i){t=A(t,0),n=A(n,0),i=A(i,0),T.typeOf.number.greaterThanOrEquals("x",t,0),T.typeOf.number.greaterThanOrEquals("y",n,0),T.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new f(t,n,i),e._radiiSquared=new f(t*t,n*n,i*i),e._radiiToTheFourth=new f(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new f(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new f(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=M.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function me(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,sj(this,e,t,n)}Object.defineProperties(me.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});me.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(f.clone(n,t._radii),f.clone(e._radiiSquared,t._radiiSquared),f.clone(e._radiiToTheFourth,t._radiiToTheFourth),f.clone(e._oneOverRadii,t._oneOverRadii),f.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new me(n.x,n.y,n.z)};me.fromCartesian3=function(e,t){return l(t)||(t=new me),l(e)&&sj(t,e.x,e.y,e.z),t};me.WGS84=Object.freeze(new me(6378137,6378137,6356752314245179e-9));me.UNIT_SPHERE=Object.freeze(new me(1,1,1));me.MOON=Object.freeze(new me(M.LUNAR_RADIUS,M.LUNAR_RADIUS,M.LUNAR_RADIUS));me.prototype.clone=function(e){return me.clone(this,e)};me.packedLength=f.packedLength;me.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),f.pack(e._radii,t,n),t};me.unpack=function(e,t,n){T.defined("array",e),t=A(t,0);const i=f.unpack(e,t);return me.fromCartesian3(i,n)};me.prototype.geocentricSurfaceNormal=f.normalize;me.prototype.geodeticSurfaceNormalCartographic=function(e,t){T.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new f),t.x=r,t.y=s,t.z=a,f.normalize(t,t)};me.prototype.geodeticSurfaceNormal=function(e,t){if(!f.equalsEpsilon(e,f.ZERO,M.EPSILON14))return l(t)||(t=new f),t=f.multiplyComponents(e,this._oneOverRadiiSquared,t),f.normalize(t,t)};const ige=new f,oge=new f;me.prototype.cartographicToCartesian=function(e,t){const n=ige,i=oge;this.geodeticSurfaceNormalCartographic(e,n),f.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(f.dot(n,i));return f.divideByScalar(i,o,i),f.multiplyByScalar(n,e.height,n),l(t)||(t=new f),f.add(i,n,t)};me.prototype.cartographicArrayToCartesianArray=function(e,t){T.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const cge=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],lge=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Qz(e,t,n){T.typeOf.number("a",e),T.typeOf.number("b",t),T.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*cge[s];r+=lge[s]*(n(i+a)+n(i-a))}return r*=o,r}me.prototype.surfaceArea=function(e){T.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?d.longitude:d.longitude+M.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>M.PI&&(i=i-M.TWO_PI),n>M.PI&&(n=n-M.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new ge(n,s,i,a)};ge.fromCartesianArray=function(e,t,n){T.defined("cartesians",e),t=A(t,me.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,d=e.length;u=0?h.longitude:h.longitude+M.TWO_PI;r=Math.min(r,m),s=Math.max(s,m)}return o-i>s-r&&(i=r,o=s,o>M.PI&&(o=o-M.TWO_PI),i>M.PI&&(i=i-M.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new ge(i,a,o,c)};ge.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new ge(e.west,e.south,e.east,e.north)};ge.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};ge.prototype.clone=function(e){return ge.clone(this,e)};ge.prototype.equals=function(e){return ge.equals(this,e)};ge.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};ge.prototype.equalsEpsilon=function(e,t){return ge.equalsEpsilon(this,e,t)};ge.validate=function(e){T.typeOf.object("rectangle",e);const t=e.north;T.typeOf.number.greaterThanOrEquals("north",t,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("north",t,M.PI_OVER_TWO);const n=e.south;T.typeOf.number.greaterThanOrEquals("south",n,-M.PI_OVER_TWO),T.typeOf.number.lessThanOrEquals("south",n,M.PI_OVER_TWO);const i=e.west;T.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),T.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;T.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),T.typeOf.number.lessThanOrEquals("east",o,Math.PI)};ge.southwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ce(e.west,e.south)};ge.northwest=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ce(e.west,e.north)};ge.northeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ce(e.east,e.north)};ge.southeast=function(e,t){return T.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ce(e.east,e.south)};ge.center=function(e,t){T.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),i=d))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=d,n):new ge(a,u,c,d)};ge.simpleIntersection=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new ge(i,o,r,s)};ge.union=function(e,t,n){T.typeOf.object("rectangle",e),T.typeOf.object("otherRectangle",t),l(n)||(n=new ge);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=M.TWO_PI:r0&&(r+=M.TWO_PI),io||M.equalsEpsilon(n,o,M.EPSILON14))&&(n=e.south&&i<=e.north};const dge=new Ce;ge.subsample=function(e,t,n,i){T.typeOf.object("rectangle",e),t=A(t,me.WGS84),n=A(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=dge;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let d=1;d<8;++d)u.longitude=-Math.PI+d*M.PI_OVER_TWO,ge.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};ge.subsection=function(e,t,n,i,o,r){if(T.typeOf.object("rectangle",e),T.typeOf.number.greaterThanOrEquals("westLerp",t,0),T.typeOf.number.lessThanOrEquals("westLerp",t,1),T.typeOf.number.greaterThanOrEquals("southLerp",n,0),T.typeOf.number.lessThanOrEquals("southLerp",n,1),T.typeOf.number.greaterThanOrEquals("eastLerp",i,0),T.typeOf.number.lessThanOrEquals("eastLerp",i,1),T.typeOf.number.greaterThanOrEquals("northLerp",o,0),T.typeOf.number.lessThanOrEquals("northLerp",o,1),T.typeOf.number.lessThanOrEquals("westLerp",t,i),T.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new ge),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=M.TWO_PI+e.east-e.west;r.west=M.negativePiToPi(e.west+t*a),r.east=M.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};ge.MAX_VALUE=Object.freeze(new ge(-Math.PI,-M.PI_OVER_TWO,Math.PI,M.PI_OVER_TWO));function Ye(e,t,n,i){this.x=A(e,0),this.y=A(t,0),this.width=A(n,0),this.height=A(i,0)}Ye.packedLength=4;Ye.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.width,t[n]=e.height,t};Ye.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Ye),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};Ye.fromPoints=function(e,t){if(l(t)||(t=new Ye),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};Ye.intersect=function(e,t){T.typeOf.object("left",e),T.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?xn.OUTSIDE:xn.INTERSECTING};Ye.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};Ye.prototype.clone=function(e){return Ye.clone(this,e)};Ye.prototype.intersect=function(e){return Ye.intersect(this,e)};Ye.prototype.equals=function(e){return Ye.equals(this,e)};const Ss={POINTS:ae.POINTS,LINES:ae.LINES,LINE_LOOP:ae.LINE_LOOP,LINE_STRIP:ae.LINE_STRIP,TRIANGLES:ae.TRIANGLES,TRIANGLE_STRIP:ae.TRIANGLE_STRIP,TRIANGLE_FAN:ae.TRIANGLE_FAN};Ss.isLines=function(e){return e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP};Ss.isTriangles=function(e){return e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};Ss.validate=function(e){return e===Ss.POINTS||e===Ss.LINES||e===Ss.LINE_LOOP||e===Ss.LINE_STRIP||e===Ss.TRIANGLES||e===Ss.TRIANGLE_STRIP||e===Ss.TRIANGLE_FAN};const Ze=Object.freeze(Ss),aj=`attribute vec4 position; +(${this[3]}, ${this[7]}, ${this[11]}, ${this[15]})`};const Ade={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047},se=Object.freeze(Ade),Cde=new d;function Ct(e){this._size=e.size,this._datatype=e.datatype,this.getValue=e.getValue}const cs={};cs[se.FLOAT]="float";cs[se.FLOAT_VEC2]="vec2";cs[se.FLOAT_VEC3]="vec3";cs[se.FLOAT_VEC4]="vec4";cs[se.INT]="int";cs[se.INT_VEC2]="ivec2";cs[se.INT_VEC3]="ivec3";cs[se.INT_VEC4]="ivec4";cs[se.BOOL]="bool";cs[se.BOOL_VEC2]="bvec2";cs[se.BOOL_VEC3]="bvec3";cs[se.BOOL_VEC4]="bvec4";cs[se.FLOAT_MAT2]="mat2";cs[se.FLOAT_MAT3]="mat3";cs[se.FLOAT_MAT4]="mat4";cs[se.SAMPLER_2D]="sampler2D";cs[se.SAMPLER_CUBE]="samplerCube";Ct.prototype.getDeclaration=function(e){let t=`uniform ${cs[this._datatype]} ${e}`;const n=this._size;return n===1?t+=";":t+=`[${n.toString()}];`,t};const Tde={czm_viewport:new Ct({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.viewportCartesian4}}),czm_viewportOrthographic:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewportOrthographic}}),czm_viewportTransformation:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewportTransformation}}),czm_globeDepthTexture:new Ct({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.globeDepthTexture}}),czm_model:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.model}}),czm_inverseModel:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModel}}),czm_view:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.view}}),czm_view3D:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.view3D}}),czm_viewRotation:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.viewRotation}}),czm_viewRotation3D:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.viewRotation3D}}),czm_inverseView:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseView}}),czm_inverseView3D:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseView3D}}),czm_inverseViewRotation:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation}}),czm_inverseViewRotation3D:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseViewRotation3D}}),czm_projection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.projection}}),czm_inverseProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseProjection}}),czm_infiniteProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.infiniteProjection}}),czm_modelView:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelView}}),czm_modelView3D:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelView3D}}),czm_modelViewRelativeToEye:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewRelativeToEye}}),czm_inverseModelView:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelView}}),czm_inverseModelView3D:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelView3D}}),czm_viewProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.viewProjection}}),czm_inverseViewProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseViewProjection}}),czm_modelViewProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewProjection}}),czm_inverseModelViewProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.inverseModelViewProjection}}),czm_modelViewProjectionRelativeToEye:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewProjectionRelativeToEye}}),czm_modelViewInfiniteProjection:new Ct({size:1,datatype:se.FLOAT_MAT4,getValue:function(e){return e.modelViewInfiniteProjection}}),czm_orthographicIn3D:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.orthographicIn3D?1:0}}),czm_normal:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.normal}}),czm_normal3D:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.normal3D}}),czm_inverseNormal:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseNormal}}),czm_inverseNormal3D:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.inverseNormal3D}}),czm_eyeHeight:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.eyeHeight}}),czm_eyeHeight2D:new Ct({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.eyeHeight2D}}),czm_entireFrustum:new Ct({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.entireFrustum}}),czm_currentFrustum:new Ct({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.currentFrustum}}),czm_frustumPlanes:new Ct({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.frustumPlanes}}),czm_farDepthFromNearPlusOne:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.farDepthFromNearPlusOne}}),czm_log2FarDepthFromNearPlusOne:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.log2FarDepthFromNearPlusOne}}),czm_oneOverLog2FarDepthFromNearPlusOne:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.oneOverLog2FarDepthFromNearPlusOne}}),czm_sunPositionWC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunPositionWC}}),czm_sunPositionColumbusView:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunPositionColumbusView}}),czm_sunDirectionEC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunDirectionEC}}),czm_sunDirectionWC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sunDirectionWC}}),czm_moonDirectionEC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.moonDirectionEC}}),czm_lightDirectionEC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightDirectionEC}}),czm_lightDirectionWC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightDirectionWC}}),czm_lightColor:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightColor}}),czm_lightColorHdr:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.lightColorHdr}}),czm_encodedCameraPositionMCHigh:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCHigh}}),czm_encodedCameraPositionMCLow:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.encodedCameraPositionMCLow}}),czm_viewerPositionWC:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return B.getTranslation(e.inverseView,Cde)}}),czm_frameNumber:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.frameNumber}}),czm_morphTime:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.morphTime}}),czm_sceneMode:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.frameState.mode}}),czm_pass:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.pass}}),czm_backgroundColor:new Ct({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.backgroundColor}}),czm_brdfLut:new Ct({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.brdfLut}}),czm_environmentMap:new Ct({size:1,datatype:se.SAMPLER_CUBE,getValue:function(e){return e.environmentMap}}),czm_specularEnvironmentMaps:new Ct({size:1,datatype:se.SAMPLER_2D,getValue:function(e){return e.specularEnvironmentMaps}}),czm_specularEnvironmentMapSize:new Ct({size:1,datatype:se.FLOAT_VEC2,getValue:function(e){return e.specularEnvironmentMapsDimensions}}),czm_specularEnvironmentMapsMaximumLOD:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.specularEnvironmentMapsMaximumLOD}}),czm_sphericalHarmonicCoefficients:new Ct({size:9,datatype:se.FLOAT_VEC3,getValue:function(e){return e.sphericalHarmonicCoefficients}}),czm_temeToPseudoFixed:new Ct({size:1,datatype:se.FLOAT_MAT3,getValue:function(e){return e.temeToPseudoFixedMatrix}}),czm_pixelRatio:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.pixelRatio}}),czm_fogDensity:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.fogDensity}}),czm_splitPosition:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.splitPosition}}),czm_geometricToleranceOverMeter:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.geometricToleranceOverMeter}}),czm_minimumDisableDepthTestDistance:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.minimumDisableDepthTestDistance}}),czm_invertClassificationColor:new Ct({size:1,datatype:se.FLOAT_VEC4,getValue:function(e){return e.invertClassificationColor}}),czm_gamma:new Ct({size:1,datatype:se.FLOAT,getValue:function(e){return e.gamma}}),czm_ellipsoidRadii:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.radii}}),czm_ellipsoidInverseRadii:new Ct({size:1,datatype:se.FLOAT_VEC3,getValue:function(e){return e.ellipsoid.oneOverRadii}})},qx=Tde;function Es(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){const t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)})}function bde(){return!0}function Ue(e,t){t=A(t,"This object was destroyed, i.e., destroy() was called.");function n(){throw new x(t)}for(const i in e)typeof e[i]=="function"&&(e[i]=n);e.isDestroyed=bde}const Rr={UNSIGNED_BYTE:se.UNSIGNED_BYTE,UNSIGNED_SHORT:se.UNSIGNED_SHORT,UNSIGNED_INT:se.UNSIGNED_INT};Rr.getSizeInBytes=function(e){switch(e){case Rr.UNSIGNED_BYTE:return Uint8Array.BYTES_PER_ELEMENT;case Rr.UNSIGNED_SHORT:return Uint16Array.BYTES_PER_ELEMENT;case Rr.UNSIGNED_INT:return Uint32Array.BYTES_PER_ELEMENT}throw new x("indexDatatype is required and must be a valid IndexDatatype constant.")};Rr.fromSizeInBytes=function(e){switch(e){case 2:return Rr.UNSIGNED_SHORT;case 4:return Rr.UNSIGNED_INT;case 1:return Rr.UNSIGNED_BYTE;default:throw new x("Size in bytes cannot be mapped to an IndexDatatype")}};Rr.validate=function(e){return l(e)&&(e===Rr.UNSIGNED_BYTE||e===Rr.UNSIGNED_SHORT||e===Rr.UNSIGNED_INT)};Rr.createTypedArray=function(e,t){if(!l(e))throw new x("numberOfVertices is required.");return e>=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t):new Uint16Array(t)};Rr.createTypedArrayFromArrayBuffer=function(e,t,n,i){if(!l(e))throw new x("numberOfVertices is required.");if(!l(t))throw new x("sourceArray is required.");if(!l(n))throw new x("byteOffset is required.");return e>=N.SIXTY_FOUR_KILOBYTES?new Uint32Array(t,n,i):new Uint16Array(t,n,i)};Rr.fromTypedArray=function(e){if(e instanceof Uint8Array)return Rr.UNSIGNED_BYTE;if(e instanceof Uint16Array)return Rr.UNSIGNED_SHORT;if(e instanceof Uint32Array)return Rr.UNSIGNED_INT;throw new x("array must be a Uint8Array, Uint16Array, or Uint32Array.")};const it=Object.freeze(Rr),Yx={STREAM_DRAW:se.STREAM_DRAW,STATIC_DRAW:se.STATIC_DRAW,DYNAMIC_DRAW:se.DYNAMIC_DRAW,validate:function(e){return e===Yx.STREAM_DRAW||e===Yx.STATIC_DRAW||e===Yx.DYNAMIC_DRAW}},Ze=Object.freeze(Yx);function At(e){if(e=A(e,A.EMPTY_OBJECT),b.defined("options.context",e.context),!l(e.typedArray)&&!l(e.sizeInBytes))throw new x("Either options.sizeInBytes or options.typedArray is required.");if(l(e.typedArray)&&l(e.sizeInBytes))throw new x("Cannot pass in both options.sizeInBytes and options.typedArray.");if(l(e.typedArray)&&(b.typeOf.object("options.typedArray",e.typedArray),b.typeOf.number("options.typedArray.byteLength",e.typedArray.byteLength)),!Ze.validate(e.usage))throw new x("usage is invalid.");const t=e.context._gl,n=e.bufferTarget,i=e.typedArray;let o=e.sizeInBytes;const r=e.usage,s=l(i);s&&(o=i.byteLength),b.typeOf.number.greaterThan("sizeInBytes",o,0);const a=t.createBuffer();t.bindBuffer(n,a),t.bufferData(n,s?i:o,r),t.bindBuffer(n,null),this._id=Es(),this._gl=t,this._webgl2=e.context._webgl2,this._bufferTarget=n,this._sizeInBytes=o,this._usage=r,this._buffer=a,this.vertexArrayDestroyable=!0}At.createVertexBuffer=function(e){return b.defined("options.context",e.context),new At({context:e.context,bufferTarget:se.ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage})};At.createIndexBuffer=function(e){if(b.defined("options.context",e.context),!it.validate(e.indexDatatype))throw new x("Invalid indexDatatype.");if(e.indexDatatype===it.UNSIGNED_INT&&!e.context.elementIndexUint)throw new x("IndexDatatype.UNSIGNED_INT requires OES_element_index_uint, which is not supported on this system. Check context.elementIndexUint.");const t=e.context,n=e.indexDatatype,i=it.getSizeInBytes(n),o=new At({context:t,bufferTarget:se.ELEMENT_ARRAY_BUFFER,typedArray:e.typedArray,sizeInBytes:e.sizeInBytes,usage:e.usage}),r=o.sizeInBytes/i;return Object.defineProperties(o,{indexDatatype:{get:function(){return n}},bytesPerIndex:{get:function(){return i}},numberOfIndices:{get:function(){return r}}}),o};Object.defineProperties(At.prototype,{sizeInBytes:{get:function(){return this._sizeInBytes}},usage:{get:function(){return this._usage}}});At.prototype._getBuffer=function(){return this._buffer};At.prototype.copyFromArrayView=function(e,t){t=A(t,0),b.defined("arrayView",e),b.typeOf.number.lessThanOrEquals("offsetInBytes + arrayView.byteLength",t+e.byteLength,this._sizeInBytes);const n=this._gl,i=this._bufferTarget;n.bindBuffer(i,this._buffer),n.bufferSubData(i,t,e),n.bindBuffer(i,null)};At.prototype.copyFromBuffer=function(e,t,n,i){if(!this._webgl2)throw new x("A WebGL 2 context is required.");if(!l(e))throw new x("readBuffer must be defined.");if(!l(i)||i<=0)throw new x("sizeInBytes must be defined and be greater than zero.");if(!l(t)||t<0||t+i>e._sizeInBytes)throw new x("readOffset must be greater than or equal to zero and readOffset + sizeInBytes must be less than of equal to readBuffer.sizeInBytes.");if(!l(n)||n<0||n+i>this._sizeInBytes)throw new x("writeOffset must be greater than or equal to zero and writeOffset + sizeInBytes must be less than of equal to this.sizeInBytes.");if(this._buffer===e._buffer&&(n>=t&&nn&&ts)throw new x("destinationOffset must be greater than zero and less than the arrayView length.");if(n+o>s)throw new x("destinationOffset + length must be less than or equal to the arrayViewLength.");if(t<0||t>this._sizeInBytes)throw new x("sourceOffset must be greater than zero and less than the buffers size.");if(t+o*r>this._sizeInBytes)throw new x("sourceOffset + length must be less than the buffers size.");const a=this._gl,c=se.COPY_READ_BUFFER;a.bindBuffer(c,this._buffer),a.getBufferSubData(c,t,e,n,i),a.bindBuffer(c,null)};At.prototype.isDestroyed=function(){return!1};At.prototype.destroy=function(){return this._gl.deleteBuffer(this._buffer),Ue(this)};let Kd;const Fo={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},Ra={};Object.defineProperties(Ra,{element:{get:function(){if(Ra.supportsFullscreen())return document[Fo.fullscreenElement]}},changeEventName:{get:function(){if(Ra.supportsFullscreen())return Fo.fullscreenchange}},errorEventName:{get:function(){if(Ra.supportsFullscreen())return Fo.fullscreenerror}},enabled:{get:function(){if(Ra.supportsFullscreen())return document[Fo.fullscreenEnabled]}},fullscreen:{get:function(){if(Ra.supportsFullscreen())return Ra.element!==null}}});Ra.supportsFullscreen=function(){if(l(Kd))return Kd;Kd=!1;const e=document.body;if(typeof e.requestFullscreen=="function")return Fo.requestFullscreen="requestFullscreen",Fo.exitFullscreen="exitFullscreen",Fo.fullscreenEnabled="fullscreenEnabled",Fo.fullscreenElement="fullscreenElement",Fo.fullscreenchange="fullscreenchange",Fo.fullscreenerror="fullscreenerror",Kd=!0,Kd;const t=["webkit","moz","o","ms","khtml"];let n;for(let i=0,o=t.length;i{const t=new Image;t.onload=function(){Bs._result=t.width>0&&t.height>0,e(Bs._result)},t.onerror=function(){Bs._result=!1,e(Bs._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),Bs._promise};Object.defineProperties(Bs,{initialized:{get:function(){return l(Bs._result)}}});const Og=[];typeof ArrayBuffer<"u"&&(Og.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&Og.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&Og.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&Og.push(BigInt64Array),typeof BigUint64Array<"u"&&Og.push(BigUint64Array));const Wu={isChrome:rN,chromeVersion:Ede,isSafari:L9,safariVersion:xde,isWebkit:B9,webkitVersion:wde,isInternetExplorer:R9,internetExplorerVersion:Sde,isEdge:yv,edgeVersion:vde,isFirefox:sN,firefoxVersion:Pde,isWindows:Dde,isIPadOrIOS:Ide,hardwareConcurrency:A(js.hardwareConcurrency,3),supportsPointerEvents:Ode,supportsImageRenderingPixelated:z9,supportsWebP:Bs,imageRenderingValue:Lde,typedArrayTypes:Og};Wu.supportsBasis=function(e){return Wu.supportsWebAssembly()&&e.context.supportsBasis};Wu.supportsFullscreen=function(){return $r.supportsFullscreen()};Wu.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};Wu.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};Wu.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};Wu.supportsBigInt=function(){return typeof BigInt<"u"};Wu.supportsWebWorkers=function(){return typeof Worker<"u"};Wu.supportsWebAssembly=function(){return typeof WebAssembly<"u"};const un=Wu;function hI(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n*6<1?e+(t-e)*6*n:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function U(e,t,n,i){this.red=A(e,1),this.green=A(t,1),this.blue=A(n,1),this.alpha=A(i,1)}U.fromCartesian4=function(e,t){return b.typeOf.object("cartesian",e),l(t)?(t.red=e.x,t.green=e.y,t.blue=e.z,t.alpha=e.w,t):new U(e.x,e.y,e.z,e.w)};U.fromBytes=function(e,t,n,i,o){return e=U.byteToFloat(A(e,255)),t=U.byteToFloat(A(t,255)),n=U.byteToFloat(A(n,255)),i=U.byteToFloat(A(i,255)),l(o)?(o.red=e,o.green=t,o.blue=n,o.alpha=i,o):new U(e,t,n,i)};U.fromAlpha=function(e,t,n){return b.typeOf.object("color",e),b.typeOf.number("alpha",t),l(n)?(n.red=e.red,n.green=e.green,n.blue=e.blue,n.alpha=t,n):new U(e.red,e.green,e.blue,t)};let pI,aN,kf;un.supportsTypedArrays()&&(pI=new ArrayBuffer(4),aN=new Uint32Array(pI),kf=new Uint8Array(pI));U.fromRgba=function(e,t){return aN[0]=e,U.fromBytes(kf[0],kf[1],kf[2],kf[3],t)};U.fromHsl=function(e,t,n,i,o){e=A(e,0)%1,t=A(t,0),n=A(n,0),i=A(i,1);let r=n,s=n,a=n;if(t!==0){let c;n<.5?c=n*(1+t):c=n+t-n*t;const u=2*n-c;r=hI(u,c,e+1/3),s=hI(u,c,e),a=hI(u,c,e-1/3)}return l(o)?(o.red=r,o.green=s,o.blue=a,o.alpha=i,o):new U(r,s,a,i)};U.fromRandom=function(e,t){e=A(e,A.EMPTY_OBJECT);let n=e.red;if(!l(n)){const s=A(e.minimumRed,0),a=A(e.maximumRed,1);b.typeOf.number.lessThanOrEquals("minimumRed",s,a),n=s+N.nextRandomNumber()*(a-s)}let i=e.green;if(!l(i)){const s=A(e.minimumGreen,0),a=A(e.maximumGreen,1);b.typeOf.number.lessThanOrEquals("minimumGreen",s,a),i=s+N.nextRandomNumber()*(a-s)}let o=e.blue;if(!l(o)){const s=A(e.minimumBlue,0),a=A(e.maximumBlue,1);b.typeOf.number.lessThanOrEquals("minimumBlue",s,a),o=s+N.nextRandomNumber()*(a-s)}let r=e.alpha;if(!l(r)){const s=A(e.minimumAlpha,0),a=A(e.maximumAlpha,1);b.typeOf.number.lessThanOrEquals("minumumAlpha",s,a),r=s+N.nextRandomNumber()*(a-s)}return l(t)?(t.red=n,t.green=i,t.blue=o,t.alpha=r,t):new U(n,i,o,r)};const Bde=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,Rde=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,Nde=/^rgba?\(\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)\s*,\s*([0-9.]+%?)(?:\s*,\s*([0-9.]+))?\s*\)$/i,Mde=/^hsla?\(\s*([0-9.]+)\s*,\s*([0-9.]+%)\s*,\s*([0-9.]+%)(?:\s*,\s*([0-9.]+))?\s*\)$/i;U.fromCssColorString=function(e,t){b.typeOf.string("color",e),l(t)||(t=new U),e=e.replace(/\s/g,"");const n=U[e.toUpperCase()];if(l(n))return U.clone(n,t),t;let i=Bde.exec(e);return i!==null?(t.red=parseInt(i[1],16)/15,t.green=parseInt(i[2],16)/15,t.blue=parseInt(i[3],16)/15,t.alpha=parseInt(A(i[4],"f"),16)/15,t):(i=Rde.exec(e),i!==null?(t.red=parseInt(i[1],16)/255,t.green=parseInt(i[2],16)/255,t.blue=parseInt(i[3],16)/255,t.alpha=parseInt(A(i[4],"ff"),16)/255,t):(i=Nde.exec(e),i!==null?(t.red=parseFloat(i[1])/(i[1].substr(-1)==="%"?100:255),t.green=parseFloat(i[2])/(i[2].substr(-1)==="%"?100:255),t.blue=parseFloat(i[3])/(i[3].substr(-1)==="%"?100:255),t.alpha=parseFloat(A(i[4],"1.0")),t):(i=Mde.exec(e),i!==null?U.fromHsl(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,parseFloat(A(i[4],"1.0")),t):(t=void 0,t))))};U.packedLength=4;U.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.red,t[n++]=e.green,t[n++]=e.blue,t[n]=e.alpha,t};U.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new U),n.red=e[t++],n.green=e[t++],n.blue=e[t++],n.alpha=e[t],n};U.byteToFloat=function(e){return e/255};U.floatToByte=function(e){return e===1?255:e*256|0};U.clone=function(e,t){if(l(e))return l(t)?(t.red=e.red,t.green=e.green,t.blue=e.blue,t.alpha=e.alpha,t):new U(e.red,e.green,e.blue,e.alpha)};U.equals=function(e,t){return e===t||l(e)&&l(t)&&e.red===t.red&&e.green===t.green&&e.blue===t.blue&&e.alpha===t.alpha};U.equalsArray=function(e,t,n){return e.red===t[n]&&e.green===t[n+1]&&e.blue===t[n+2]&&e.alpha===t[n+3]};U.prototype.clone=function(e){return U.clone(this,e)};U.prototype.equals=function(e){return U.equals(this,e)};U.prototype.equalsEpsilon=function(e,t){return this===e||l(e)&&Math.abs(this.red-e.red)<=t&&Math.abs(this.green-e.green)<=t&&Math.abs(this.blue-e.blue)<=t&&Math.abs(this.alpha-e.alpha)<=t};U.prototype.toString=function(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`};U.prototype.toCssColorString=function(){const e=U.floatToByte(this.red),t=U.floatToByte(this.green),n=U.floatToByte(this.blue);return this.alpha===1?`rgb(${e},${t},${n})`:`rgba(${e},${t},${n},${this.alpha})`};U.prototype.toCssHexString=function(){let e=U.floatToByte(this.red).toString(16);e.length<2&&(e=`0${e}`);let t=U.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let n=U.floatToByte(this.blue).toString(16);if(n.length<2&&(n=`0${n}`),this.alpha<1){let i=U.floatToByte(this.alpha).toString(16);return i.length<2&&(i=`0${i}`),`#${e}${t}${n}${i}`}return`#${e}${t}${n}`};U.prototype.toBytes=function(e){const t=U.floatToByte(this.red),n=U.floatToByte(this.green),i=U.floatToByte(this.blue),o=U.floatToByte(this.alpha);return l(e)?(e[0]=t,e[1]=n,e[2]=i,e[3]=o,e):[t,n,i,o]};U.prototype.toRgba=function(){return kf[0]=U.floatToByte(this.red),kf[1]=U.floatToByte(this.green),kf[2]=U.floatToByte(this.blue),kf[3]=U.floatToByte(this.alpha),aN[0]};U.prototype.brighten=function(e,t){return b.typeOf.number("magnitude",e),b.typeOf.number.greaterThanOrEquals("magnitude",e,0),b.typeOf.object("result",t),e=1-e,t.red=1-(1-this.red)*e,t.green=1-(1-this.green)*e,t.blue=1-(1-this.blue)*e,t.alpha=this.alpha,t};U.prototype.darken=function(e,t){return b.typeOf.number("magnitude",e),b.typeOf.number.greaterThanOrEquals("magnitude",e,0),b.typeOf.object("result",t),e=1-e,t.red=this.red*e,t.green=this.green*e,t.blue=this.blue*e,t.alpha=this.alpha,t};U.prototype.withAlpha=function(e,t){return U.fromAlpha(this,e,t)};U.add=function(e,t,n){return b.typeOf.object("left",e),b.typeOf.object("right",t),b.typeOf.object("result",n),n.red=e.red+t.red,n.green=e.green+t.green,n.blue=e.blue+t.blue,n.alpha=e.alpha+t.alpha,n};U.subtract=function(e,t,n){return b.typeOf.object("left",e),b.typeOf.object("right",t),b.typeOf.object("result",n),n.red=e.red-t.red,n.green=e.green-t.green,n.blue=e.blue-t.blue,n.alpha=e.alpha-t.alpha,n};U.multiply=function(e,t,n){return b.typeOf.object("left",e),b.typeOf.object("right",t),b.typeOf.object("result",n),n.red=e.red*t.red,n.green=e.green*t.green,n.blue=e.blue*t.blue,n.alpha=e.alpha*t.alpha,n};U.divide=function(e,t,n){return b.typeOf.object("left",e),b.typeOf.object("right",t),b.typeOf.object("result",n),n.red=e.red/t.red,n.green=e.green/t.green,n.blue=e.blue/t.blue,n.alpha=e.alpha/t.alpha,n};U.mod=function(e,t,n){return b.typeOf.object("left",e),b.typeOf.object("right",t),b.typeOf.object("result",n),n.red=e.red%t.red,n.green=e.green%t.green,n.blue=e.blue%t.blue,n.alpha=e.alpha%t.alpha,n};U.lerp=function(e,t,n,i){return b.typeOf.object("start",e),b.typeOf.object("end",t),b.typeOf.number("t",n),b.typeOf.object("result",i),i.red=N.lerp(e.red,t.red,n),i.green=N.lerp(e.green,t.green,n),i.blue=N.lerp(e.blue,t.blue,n),i.alpha=N.lerp(e.alpha,t.alpha,n),i};U.multiplyByScalar=function(e,t,n){return b.typeOf.object("color",e),b.typeOf.number("scalar",t),b.typeOf.object("result",n),n.red=e.red*t,n.green=e.green*t,n.blue=e.blue*t,n.alpha=e.alpha*t,n};U.divideByScalar=function(e,t,n){return b.typeOf.object("color",e),b.typeOf.number("scalar",t),b.typeOf.object("result",n),n.red=e.red/t,n.green=e.green/t,n.blue=e.blue/t,n.alpha=e.alpha/t,n};U.ALICEBLUE=Object.freeze(U.fromCssColorString("#F0F8FF"));U.ANTIQUEWHITE=Object.freeze(U.fromCssColorString("#FAEBD7"));U.AQUA=Object.freeze(U.fromCssColorString("#00FFFF"));U.AQUAMARINE=Object.freeze(U.fromCssColorString("#7FFFD4"));U.AZURE=Object.freeze(U.fromCssColorString("#F0FFFF"));U.BEIGE=Object.freeze(U.fromCssColorString("#F5F5DC"));U.BISQUE=Object.freeze(U.fromCssColorString("#FFE4C4"));U.BLACK=Object.freeze(U.fromCssColorString("#000000"));U.BLANCHEDALMOND=Object.freeze(U.fromCssColorString("#FFEBCD"));U.BLUE=Object.freeze(U.fromCssColorString("#0000FF"));U.BLUEVIOLET=Object.freeze(U.fromCssColorString("#8A2BE2"));U.BROWN=Object.freeze(U.fromCssColorString("#A52A2A"));U.BURLYWOOD=Object.freeze(U.fromCssColorString("#DEB887"));U.CADETBLUE=Object.freeze(U.fromCssColorString("#5F9EA0"));U.CHARTREUSE=Object.freeze(U.fromCssColorString("#7FFF00"));U.CHOCOLATE=Object.freeze(U.fromCssColorString("#D2691E"));U.CORAL=Object.freeze(U.fromCssColorString("#FF7F50"));U.CORNFLOWERBLUE=Object.freeze(U.fromCssColorString("#6495ED"));U.CORNSILK=Object.freeze(U.fromCssColorString("#FFF8DC"));U.CRIMSON=Object.freeze(U.fromCssColorString("#DC143C"));U.CYAN=Object.freeze(U.fromCssColorString("#00FFFF"));U.DARKBLUE=Object.freeze(U.fromCssColorString("#00008B"));U.DARKCYAN=Object.freeze(U.fromCssColorString("#008B8B"));U.DARKGOLDENROD=Object.freeze(U.fromCssColorString("#B8860B"));U.DARKGRAY=Object.freeze(U.fromCssColorString("#A9A9A9"));U.DARKGREEN=Object.freeze(U.fromCssColorString("#006400"));U.DARKGREY=U.DARKGRAY;U.DARKKHAKI=Object.freeze(U.fromCssColorString("#BDB76B"));U.DARKMAGENTA=Object.freeze(U.fromCssColorString("#8B008B"));U.DARKOLIVEGREEN=Object.freeze(U.fromCssColorString("#556B2F"));U.DARKORANGE=Object.freeze(U.fromCssColorString("#FF8C00"));U.DARKORCHID=Object.freeze(U.fromCssColorString("#9932CC"));U.DARKRED=Object.freeze(U.fromCssColorString("#8B0000"));U.DARKSALMON=Object.freeze(U.fromCssColorString("#E9967A"));U.DARKSEAGREEN=Object.freeze(U.fromCssColorString("#8FBC8F"));U.DARKSLATEBLUE=Object.freeze(U.fromCssColorString("#483D8B"));U.DARKSLATEGRAY=Object.freeze(U.fromCssColorString("#2F4F4F"));U.DARKSLATEGREY=U.DARKSLATEGRAY;U.DARKTURQUOISE=Object.freeze(U.fromCssColorString("#00CED1"));U.DARKVIOLET=Object.freeze(U.fromCssColorString("#9400D3"));U.DEEPPINK=Object.freeze(U.fromCssColorString("#FF1493"));U.DEEPSKYBLUE=Object.freeze(U.fromCssColorString("#00BFFF"));U.DIMGRAY=Object.freeze(U.fromCssColorString("#696969"));U.DIMGREY=U.DIMGRAY;U.DODGERBLUE=Object.freeze(U.fromCssColorString("#1E90FF"));U.FIREBRICK=Object.freeze(U.fromCssColorString("#B22222"));U.FLORALWHITE=Object.freeze(U.fromCssColorString("#FFFAF0"));U.FORESTGREEN=Object.freeze(U.fromCssColorString("#228B22"));U.FUCHSIA=Object.freeze(U.fromCssColorString("#FF00FF"));U.GAINSBORO=Object.freeze(U.fromCssColorString("#DCDCDC"));U.GHOSTWHITE=Object.freeze(U.fromCssColorString("#F8F8FF"));U.GOLD=Object.freeze(U.fromCssColorString("#FFD700"));U.GOLDENROD=Object.freeze(U.fromCssColorString("#DAA520"));U.GRAY=Object.freeze(U.fromCssColorString("#808080"));U.GREEN=Object.freeze(U.fromCssColorString("#008000"));U.GREENYELLOW=Object.freeze(U.fromCssColorString("#ADFF2F"));U.GREY=U.GRAY;U.HONEYDEW=Object.freeze(U.fromCssColorString("#F0FFF0"));U.HOTPINK=Object.freeze(U.fromCssColorString("#FF69B4"));U.INDIANRED=Object.freeze(U.fromCssColorString("#CD5C5C"));U.INDIGO=Object.freeze(U.fromCssColorString("#4B0082"));U.IVORY=Object.freeze(U.fromCssColorString("#FFFFF0"));U.KHAKI=Object.freeze(U.fromCssColorString("#F0E68C"));U.LAVENDER=Object.freeze(U.fromCssColorString("#E6E6FA"));U.LAVENDAR_BLUSH=Object.freeze(U.fromCssColorString("#FFF0F5"));U.LAWNGREEN=Object.freeze(U.fromCssColorString("#7CFC00"));U.LEMONCHIFFON=Object.freeze(U.fromCssColorString("#FFFACD"));U.LIGHTBLUE=Object.freeze(U.fromCssColorString("#ADD8E6"));U.LIGHTCORAL=Object.freeze(U.fromCssColorString("#F08080"));U.LIGHTCYAN=Object.freeze(U.fromCssColorString("#E0FFFF"));U.LIGHTGOLDENRODYELLOW=Object.freeze(U.fromCssColorString("#FAFAD2"));U.LIGHTGRAY=Object.freeze(U.fromCssColorString("#D3D3D3"));U.LIGHTGREEN=Object.freeze(U.fromCssColorString("#90EE90"));U.LIGHTGREY=U.LIGHTGRAY;U.LIGHTPINK=Object.freeze(U.fromCssColorString("#FFB6C1"));U.LIGHTSEAGREEN=Object.freeze(U.fromCssColorString("#20B2AA"));U.LIGHTSKYBLUE=Object.freeze(U.fromCssColorString("#87CEFA"));U.LIGHTSLATEGRAY=Object.freeze(U.fromCssColorString("#778899"));U.LIGHTSLATEGREY=U.LIGHTSLATEGRAY;U.LIGHTSTEELBLUE=Object.freeze(U.fromCssColorString("#B0C4DE"));U.LIGHTYELLOW=Object.freeze(U.fromCssColorString("#FFFFE0"));U.LIME=Object.freeze(U.fromCssColorString("#00FF00"));U.LIMEGREEN=Object.freeze(U.fromCssColorString("#32CD32"));U.LINEN=Object.freeze(U.fromCssColorString("#FAF0E6"));U.MAGENTA=Object.freeze(U.fromCssColorString("#FF00FF"));U.MAROON=Object.freeze(U.fromCssColorString("#800000"));U.MEDIUMAQUAMARINE=Object.freeze(U.fromCssColorString("#66CDAA"));U.MEDIUMBLUE=Object.freeze(U.fromCssColorString("#0000CD"));U.MEDIUMORCHID=Object.freeze(U.fromCssColorString("#BA55D3"));U.MEDIUMPURPLE=Object.freeze(U.fromCssColorString("#9370DB"));U.MEDIUMSEAGREEN=Object.freeze(U.fromCssColorString("#3CB371"));U.MEDIUMSLATEBLUE=Object.freeze(U.fromCssColorString("#7B68EE"));U.MEDIUMSPRINGGREEN=Object.freeze(U.fromCssColorString("#00FA9A"));U.MEDIUMTURQUOISE=Object.freeze(U.fromCssColorString("#48D1CC"));U.MEDIUMVIOLETRED=Object.freeze(U.fromCssColorString("#C71585"));U.MIDNIGHTBLUE=Object.freeze(U.fromCssColorString("#191970"));U.MINTCREAM=Object.freeze(U.fromCssColorString("#F5FFFA"));U.MISTYROSE=Object.freeze(U.fromCssColorString("#FFE4E1"));U.MOCCASIN=Object.freeze(U.fromCssColorString("#FFE4B5"));U.NAVAJOWHITE=Object.freeze(U.fromCssColorString("#FFDEAD"));U.NAVY=Object.freeze(U.fromCssColorString("#000080"));U.OLDLACE=Object.freeze(U.fromCssColorString("#FDF5E6"));U.OLIVE=Object.freeze(U.fromCssColorString("#808000"));U.OLIVEDRAB=Object.freeze(U.fromCssColorString("#6B8E23"));U.ORANGE=Object.freeze(U.fromCssColorString("#FFA500"));U.ORANGERED=Object.freeze(U.fromCssColorString("#FF4500"));U.ORCHID=Object.freeze(U.fromCssColorString("#DA70D6"));U.PALEGOLDENROD=Object.freeze(U.fromCssColorString("#EEE8AA"));U.PALEGREEN=Object.freeze(U.fromCssColorString("#98FB98"));U.PALETURQUOISE=Object.freeze(U.fromCssColorString("#AFEEEE"));U.PALEVIOLETRED=Object.freeze(U.fromCssColorString("#DB7093"));U.PAPAYAWHIP=Object.freeze(U.fromCssColorString("#FFEFD5"));U.PEACHPUFF=Object.freeze(U.fromCssColorString("#FFDAB9"));U.PERU=Object.freeze(U.fromCssColorString("#CD853F"));U.PINK=Object.freeze(U.fromCssColorString("#FFC0CB"));U.PLUM=Object.freeze(U.fromCssColorString("#DDA0DD"));U.POWDERBLUE=Object.freeze(U.fromCssColorString("#B0E0E6"));U.PURPLE=Object.freeze(U.fromCssColorString("#800080"));U.RED=Object.freeze(U.fromCssColorString("#FF0000"));U.ROSYBROWN=Object.freeze(U.fromCssColorString("#BC8F8F"));U.ROYALBLUE=Object.freeze(U.fromCssColorString("#4169E1"));U.SADDLEBROWN=Object.freeze(U.fromCssColorString("#8B4513"));U.SALMON=Object.freeze(U.fromCssColorString("#FA8072"));U.SANDYBROWN=Object.freeze(U.fromCssColorString("#F4A460"));U.SEAGREEN=Object.freeze(U.fromCssColorString("#2E8B57"));U.SEASHELL=Object.freeze(U.fromCssColorString("#FFF5EE"));U.SIENNA=Object.freeze(U.fromCssColorString("#A0522D"));U.SILVER=Object.freeze(U.fromCssColorString("#C0C0C0"));U.SKYBLUE=Object.freeze(U.fromCssColorString("#87CEEB"));U.SLATEBLUE=Object.freeze(U.fromCssColorString("#6A5ACD"));U.SLATEGRAY=Object.freeze(U.fromCssColorString("#708090"));U.SLATEGREY=U.SLATEGRAY;U.SNOW=Object.freeze(U.fromCssColorString("#FFFAFA"));U.SPRINGGREEN=Object.freeze(U.fromCssColorString("#00FF7F"));U.STEELBLUE=Object.freeze(U.fromCssColorString("#4682B4"));U.TAN=Object.freeze(U.fromCssColorString("#D2B48C"));U.TEAL=Object.freeze(U.fromCssColorString("#008080"));U.THISTLE=Object.freeze(U.fromCssColorString("#D8BFD8"));U.TOMATO=Object.freeze(U.fromCssColorString("#FF6347"));U.TURQUOISE=Object.freeze(U.fromCssColorString("#40E0D0"));U.VIOLET=Object.freeze(U.fromCssColorString("#EE82EE"));U.WHEAT=Object.freeze(U.fromCssColorString("#F5DEB3"));U.WHITE=Object.freeze(U.fromCssColorString("#FFFFFF"));U.WHITESMOKE=Object.freeze(U.fromCssColorString("#F5F5F5"));U.YELLOW=Object.freeze(U.fromCssColorString("#FFFF00"));U.YELLOWGREEN=Object.freeze(U.fromCssColorString("#9ACD32"));U.TRANSPARENT=Object.freeze(new U(0,0,0,0));function Ji(e){e=A(e,A.EMPTY_OBJECT),this.color=e.color,this.depth=e.depth,this.stencil=e.stencil,this.renderState=e.renderState,this.framebuffer=e.framebuffer,this.owner=e.owner,this.pass=e.pass}Ji.ALL=Object.freeze(new Ji({color:new U(0,0,0,0),depth:1,stencil:0}));Ji.prototype.execute=function(e,t){e.clear(this,t)};const Fde={ENVIRONMENT:0,COMPUTE:1,GLOBE:2,TERRAIN_CLASSIFICATION:3,CESIUM_3D_TILE:4,CESIUM_3D_TILE_CLASSIFICATION:5,CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW:6,OPAQUE:7,TRANSLUCENT:8,VOXELS:9,OVERLAY:10,NUMBER_OF_PASSES:11},Be=Object.freeze(Fde);function MC(e){e=A(e,A.EMPTY_OBJECT),this.vertexArray=e.vertexArray,this.fragmentShaderSource=e.fragmentShaderSource,this.shaderProgram=e.shaderProgram,this.uniformMap=e.uniformMap,this.outputTexture=e.outputTexture,this.preExecute=e.preExecute,this.postExecute=e.postExecute,this.canceled=e.canceled,this.persists=A(e.persists,!1),this.pass=Be.COMPUTE,this.owner=e.owner}MC.prototype.execute=function(e){e.execute(this)};function j(e,t){this.x=A(e,0),this.y=A(t,0)}j.fromElements=function(e,t,n){return l(n)?(n.x=e,n.y=t,n):new j(e,t)};j.clone=function(e,t){if(l(e))return l(t)?(t.x=e.x,t.y=e.y,t):new j(e.x,e.y)};j.fromCartesian3=j.clone;j.fromCartesian4=j.clone;j.packedLength=2;j.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.x,t[n]=e.y,t};j.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new j),n.x=e[t++],n.y=e[t],n};j.packArray=function(e,t){b.defined("array",e);const n=e.length,i=n*2;if(!l(t))t=new Array(i);else{if(!Array.isArray(t)&&t.length!==i)throw new x("If result is a typed array, it must have exactly array.length * 2 elements");t.length!==i&&(t.length=i)}for(let o=0;oN.EPSILON12);return l(o)?(o.x=r*F,o.y=s*H,o.z=a*v,o):new d(r*F,s*H,a*v)}function Ae(e,t,n){this.longitude=A(e,0),this.latitude=A(t,0),this.height=A(n,0)}Ae.fromRadians=function(e,t,n,i){return b.typeOf.number("longitude",e),b.typeOf.number("latitude",t),n=A(n,0),l(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ae(e,t,n)};Ae.fromDegrees=function(e,t,n,i){return b.typeOf.number("longitude",e),b.typeOf.number("latitude",t),e=N.toRadians(e),t=N.toRadians(t),Ae.fromRadians(e,t,n,i)};const Vde=new d,kde=new d,Gde=new d,Wde=new d(1/6378137,1/6378137,1/6356752314245179e-9),jde=new d(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9)),qde=N.EPSILON1;Ae.fromCartesian=function(e,t,n){const i=l(t)?t.oneOverRadii:Wde,o=l(t)?t.oneOverRadiiSquared:jde,r=l(t)?t._centerToleranceSquared:qde,s=U9(e,i,o,r,kde);if(!l(s))return;let a=d.multiplyComponents(s,o,Vde);a=d.normalize(a,a);const c=d.subtract(e,s,Gde),u=Math.atan2(a.y,a.x),f=Math.asin(a.z),h=N.sign(d.dot(c,e))*d.magnitude(c);return l(n)?(n.longitude=u,n.latitude=f,n.height=h,n):new Ae(u,f,h)};Ae.toCartesian=function(e,t,n){return b.defined("cartographic",e),d.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ae.clone=function(e,t){if(l(e))return l(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ae(e.longitude,e.latitude,e.height)};Ae.equals=function(e,t){return e===t||l(e)&&l(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ae.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ae.ZERO=Object.freeze(new Ae(0,0,0));Ae.prototype.clone=function(e){return Ae.clone(this,e)};Ae.prototype.equals=function(e){return Ae.equals(this,e)};Ae.prototype.equalsEpsilon=function(e,t){return Ae.equalsEpsilon(this,e,t)};Ae.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};function H9(e,t,n,i){t=A(t,0),n=A(n,0),i=A(i,0),b.typeOf.number.greaterThanOrEquals("x",t,0),b.typeOf.number.greaterThanOrEquals("y",n,0),b.typeOf.number.greaterThanOrEquals("z",i,0),e._radii=new d(t,n,i),e._radiiSquared=new d(t*t,n*n,i*i),e._radiiToTheFourth=new d(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new d(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new d(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=N.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function pe(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,H9(this,e,t,n)}Object.defineProperties(pe.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});pe.clone=function(e,t){if(!l(e))return;const n=e._radii;return l(t)?(d.clone(n,t._radii),d.clone(e._radiiSquared,t._radiiSquared),d.clone(e._radiiToTheFourth,t._radiiToTheFourth),d.clone(e._oneOverRadii,t._oneOverRadii),d.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new pe(n.x,n.y,n.z)};pe.fromCartesian3=function(e,t){return l(t)||(t=new pe),l(e)&&H9(t,e.x,e.y,e.z),t};pe.WGS84=Object.freeze(new pe(6378137,6378137,6356752314245179e-9));pe.UNIT_SPHERE=Object.freeze(new pe(1,1,1));pe.MOON=Object.freeze(new pe(N.LUNAR_RADIUS,N.LUNAR_RADIUS,N.LUNAR_RADIUS));pe.prototype.clone=function(e){return pe.clone(this,e)};pe.packedLength=d.packedLength;pe.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),d.pack(e._radii,t,n),t};pe.unpack=function(e,t,n){b.defined("array",e),t=A(t,0);const i=d.unpack(e,t);return pe.fromCartesian3(i,n)};pe.prototype.geocentricSurfaceNormal=d.normalize;pe.prototype.geodeticSurfaceNormalCartographic=function(e,t){b.typeOf.object("cartographic",e);const n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return l(t)||(t=new d),t.x=r,t.y=s,t.z=a,d.normalize(t,t)};pe.prototype.geodeticSurfaceNormal=function(e,t){if(!d.equalsEpsilon(e,d.ZERO,N.EPSILON14))return l(t)||(t=new d),t=d.multiplyComponents(e,this._oneOverRadiiSquared,t),d.normalize(t,t)};const Yde=new d,$de=new d;pe.prototype.cartographicToCartesian=function(e,t){const n=Yde,i=$de;this.geodeticSurfaceNormalCartographic(e,n),d.multiplyComponents(this._radiiSquared,n,i);const o=Math.sqrt(d.dot(n,i));return d.divideByScalar(i,o,i),d.multiplyByScalar(n,e.height,n),l(t)||(t=new d),d.add(i,n,t)};pe.prototype.cartographicArrayToCartesianArray=function(e,t){b.defined("cartographics",e);const n=e.length;l(t)?t.length=n:t=new Array(n);for(let i=0;i=this._radii.z-t))return n};const Qde=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],Zde=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function J3(e,t,n){b.typeOf.number("a",e),b.typeOf.number("b",t),b.typeOf.func("func",n);const i=.5*(t+e),o=.5*(t-e);let r=0;for(let s=0;s<5;s++){const a=o*Qde[s];r+=Zde[s]*(n(i+a)+n(i-a))}return r*=o,r}pe.prototype.surfaceArea=function(e){b.typeOf.object("rectangle",e);const t=e.west;let n=e.east;const i=e.south,o=e.north;for(;n=0?f.longitude:f.longitude+N.TWO_PI;o=Math.min(o,h),r=Math.max(r,h)}return i-n>r-o&&(n=o,i=r,i>N.PI&&(i=i-N.TWO_PI),n>N.PI&&(n=n-N.TWO_PI)),l(t)?(t.west=n,t.south=s,t.east=i,t.north=a,t):new _e(n,s,i,a)};_e.fromCartesianArray=function(e,t,n){b.defined("cartesians",e),t=A(t,pe.WGS84);let i=Number.MAX_VALUE,o=-Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let u=0,f=e.length;u=0?h.longitude:h.longitude+N.TWO_PI;r=Math.min(r,_),s=Math.max(s,_)}return o-i>s-r&&(i=r,o=s,o>N.PI&&(o=o-N.TWO_PI),i>N.PI&&(i=i-N.TWO_PI)),l(n)?(n.west=i,n.south=a,n.east=o,n.north=c,n):new _e(i,a,o,c)};_e.clone=function(e,t){if(l(e))return l(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new _e(e.west,e.south,e.east,e.north)};_e.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};_e.prototype.clone=function(e){return _e.clone(this,e)};_e.prototype.equals=function(e){return _e.equals(this,e)};_e.equals=function(e,t){return e===t||l(e)&&l(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};_e.prototype.equalsEpsilon=function(e,t){return _e.equalsEpsilon(this,e,t)};_e.validate=function(e){b.typeOf.object("rectangle",e);const t=e.north;b.typeOf.number.greaterThanOrEquals("north",t,-N.PI_OVER_TWO),b.typeOf.number.lessThanOrEquals("north",t,N.PI_OVER_TWO);const n=e.south;b.typeOf.number.greaterThanOrEquals("south",n,-N.PI_OVER_TWO),b.typeOf.number.lessThanOrEquals("south",n,N.PI_OVER_TWO);const i=e.west;b.typeOf.number.greaterThanOrEquals("west",i,-Math.PI),b.typeOf.number.lessThanOrEquals("west",i,Math.PI);const o=e.east;b.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),b.typeOf.number.lessThanOrEquals("east",o,Math.PI)};_e.southwest=function(e,t){return b.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new Ae(e.west,e.south)};_e.northwest=function(e,t){return b.typeOf.object("rectangle",e),l(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new Ae(e.west,e.north)};_e.northeast=function(e,t){return b.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new Ae(e.east,e.north)};_e.southeast=function(e,t){return b.typeOf.object("rectangle",e),l(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new Ae(e.east,e.south)};_e.center=function(e,t){b.typeOf.object("rectangle",e);let n=e.east;const i=e.west;n0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),i=f))return l(n)?(n.west=a,n.south=u,n.east=c,n.north=f,n):new _e(a,u,c,f)};_e.simpleIntersection=function(e,t,n){b.typeOf.object("rectangle",e),b.typeOf.object("otherRectangle",t);const i=Math.max(e.west,t.west),o=Math.max(e.south,t.south),r=Math.min(e.east,t.east),s=Math.min(e.north,t.north);if(!(o>=s||i>=r))return l(n)?(n.west=i,n.south=o,n.east=r,n.north=s,n):new _e(i,o,r,s)};_e.union=function(e,t,n){b.typeOf.object("rectangle",e),b.typeOf.object("otherRectangle",t),l(n)||(n=new _e);let i=e.east,o=e.west,r=t.east,s=t.west;i0?i+=N.TWO_PI:r0&&(r+=N.TWO_PI),io||N.equalsEpsilon(n,o,N.EPSILON14))&&(n=e.south&&i<=e.north};const the=new Ae;_e.subsample=function(e,t,n,i){b.typeOf.object("rectangle",e),t=A(t,pe.WGS84),n=A(n,0),l(i)||(i=[]);let o=0;const r=e.north,s=e.south,a=e.east,c=e.west,u=the;u.height=n,u.longitude=c,u.latitude=r,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.latitude=s,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,r<0?u.latitude=r:s>0?u.latitude=s:u.latitude=0;for(let f=1;f<8;++f)u.longitude=-Math.PI+f*N.PI_OVER_TWO,_e.contains(e,u)&&(i[o]=t.cartographicToCartesian(u,i[o]),o++);return u.latitude===0&&(u.longitude=c,i[o]=t.cartographicToCartesian(u,i[o]),o++,u.longitude=a,i[o]=t.cartographicToCartesian(u,i[o]),o++),i.length=o,i};_e.subsection=function(e,t,n,i,o,r){if(b.typeOf.object("rectangle",e),b.typeOf.number.greaterThanOrEquals("westLerp",t,0),b.typeOf.number.lessThanOrEquals("westLerp",t,1),b.typeOf.number.greaterThanOrEquals("southLerp",n,0),b.typeOf.number.lessThanOrEquals("southLerp",n,1),b.typeOf.number.greaterThanOrEquals("eastLerp",i,0),b.typeOf.number.lessThanOrEquals("eastLerp",i,1),b.typeOf.number.greaterThanOrEquals("northLerp",o,0),b.typeOf.number.lessThanOrEquals("northLerp",o,1),b.typeOf.number.lessThanOrEquals("westLerp",t,i),b.typeOf.number.lessThanOrEquals("southLerp",n,o),l(r)||(r=new _e),e.west<=e.east){const a=e.east-e.west;r.west=e.west+t*a,r.east=e.west+i*a}else{const a=N.TWO_PI+e.east-e.west;r.west=N.negativePiToPi(e.west+t*a),r.east=N.negativePiToPi(e.west+i*a)}const s=e.north-e.south;return r.south=e.south+n*s,r.north=e.south+o*s,t===1&&(r.west=e.east),i===1&&(r.east=e.east),n===1&&(r.south=e.north),o===1&&(r.north=e.north),r};_e.MAX_VALUE=Object.freeze(new _e(-Math.PI,-N.PI_OVER_TWO,Math.PI,N.PI_OVER_TWO));function qe(e,t,n,i){this.x=A(e,0),this.y=A(t,0),this.width=A(n,0),this.height=A(i,0)}qe.packedLength=4;qe.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.width,t[n]=e.height,t};qe.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new qe),n.x=e[t++],n.y=e[t++],n.width=e[t++],n.height=e[t],n};qe.fromPoints=function(e,t){if(l(t)||(t=new qe),!l(e)||e.length===0)return t.x=0,t.y=0,t.width=0,t.height=0,t;const n=e.length;let i=e[0].x,o=e[0].y,r=e[0].x,s=e[0].y;for(let a=1;an.width?n.width=i:i<0&&(n.width-=i,n.x=t.x),o>n.height?n.height=o:o<0&&(n.height-=o,n.y=t.y),n};qe.intersect=function(e,t){b.typeOf.object("left",e),b.typeOf.object("right",t);const n=e.x,i=e.y,o=t.x,r=t.y;return n>o+t.width||n+e.widthr+t.height?mn.OUTSIDE:mn.INTERSECTING};qe.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height};qe.prototype.clone=function(e){return qe.clone(this,e)};qe.prototype.intersect=function(e){return qe.intersect(this,e)};qe.prototype.equals=function(e){return qe.equals(this,e)};const hs={POINTS:se.POINTS,LINES:se.LINES,LINE_LOOP:se.LINE_LOOP,LINE_STRIP:se.LINE_STRIP,TRIANGLES:se.TRIANGLES,TRIANGLE_STRIP:se.TRIANGLE_STRIP,TRIANGLE_FAN:se.TRIANGLE_FAN};hs.isLines=function(e){return e===hs.LINES||e===hs.LINE_LOOP||e===hs.LINE_STRIP};hs.isTriangles=function(e){return e===hs.TRIANGLES||e===hs.TRIANGLE_STRIP||e===hs.TRIANGLE_FAN};hs.validate=function(e){return e===hs.POINTS||e===hs.LINES||e===hs.LINE_LOOP||e===hs.LINE_STRIP||e===hs.TRIANGLES||e===hs.TRIANGLE_STRIP||e===hs.TRIANGLE_FAN};const Je=Object.freeze(hs),V9=`attribute vec4 position; attribute vec2 textureCoordinates; varying vec2 v_textureCoordinates; @@ -36,11 +23,11 @@ void main() gl_Position = position; v_textureCoordinates = textureCoordinates; } -`,Ro={CULL:1,OCCLUDE:2,EXECUTE_IN_CLOSEST_FRUSTUM:4,DEBUG_SHOW_BOUNDING_VOLUME:8,CAST_SHADOWS:16,RECEIVE_SHADOWS:32,PICK_ONLY:64,DEPTH_FOR_TRANSLUCENT_CLASSIFICATION:128};function mt(e){e=A(e,A.EMPTY_OBJECT),this._boundingVolume=e.boundingVolume,this._orientedBoundingBox=e.orientedBoundingBox,this._modelMatrix=e.modelMatrix,this._primitiveType=A(e.primitiveType,Ze.TRIANGLES),this._vertexArray=e.vertexArray,this._count=e.count,this._offset=A(e.offset,0),this._instanceCount=A(e.instanceCount,0),this._shaderProgram=e.shaderProgram,this._uniformMap=e.uniformMap,this._renderState=e.renderState,this._framebuffer=e.framebuffer,this._pass=e.pass,this._owner=e.owner,this._debugOverlappingFrustums=0,this._pickId=e.pickId,this._flags=0,this.cull=A(e.cull,!0),this.occlude=A(e.occlude,!0),this.executeInClosestFrustum=A(e.executeInClosestFrustum,!1),this.debugShowBoundingVolume=A(e.debugShowBoundingVolume,!1),this.castShadows=A(e.castShadows,!1),this.receiveShadows=A(e.receiveShadows,!1),this.pickOnly=A(e.pickOnly,!1),this.depthForTranslucentClassification=A(e.depthForTranslucentClassification,!1),this.dirty=!0,this.lastDirtyTime=0,this.derivedCommands={}}function Us(e,t){return(e._flags&t)===t}function _h(e,t,n){n?e._flags|=t:e._flags&=~t}Object.defineProperties(mt.prototype,{boundingVolume:{get:function(){return this._boundingVolume},set:function(e){this._boundingVolume!==e&&(this._boundingVolume=e,this.dirty=!0)}},orientedBoundingBox:{get:function(){return this._orientedBoundingBox},set:function(e){this._orientedBoundingBox!==e&&(this._orientedBoundingBox=e,this.dirty=!0)}},cull:{get:function(){return Us(this,Ro.CULL)},set:function(e){Us(this,Ro.CULL)!==e&&(_h(this,Ro.CULL,e),this.dirty=!0)}},occlude:{get:function(){return Us(this,Ro.OCCLUDE)},set:function(e){Us(this,Ro.OCCLUDE)!==e&&(_h(this,Ro.OCCLUDE,e),this.dirty=!0)}},modelMatrix:{get:function(){return this._modelMatrix},set:function(e){this._modelMatrix!==e&&(this._modelMatrix=e,this.dirty=!0)}},primitiveType:{get:function(){return this._primitiveType},set:function(e){this._primitiveType!==e&&(this._primitiveType=e,this.dirty=!0)}},vertexArray:{get:function(){return this._vertexArray},set:function(e){this._vertexArray!==e&&(this._vertexArray=e,this.dirty=!0)}},count:{get:function(){return this._count},set:function(e){this._count!==e&&(this._count=e,this.dirty=!0)}},offset:{get:function(){return this._offset},set:function(e){this._offset!==e&&(this._offset=e,this.dirty=!0)}},instanceCount:{get:function(){return this._instanceCount},set:function(e){this._instanceCount!==e&&(this._instanceCount=e,this.dirty=!0)}},shaderProgram:{get:function(){return this._shaderProgram},set:function(e){this._shaderProgram!==e&&(this._shaderProgram=e,this.dirty=!0)}},castShadows:{get:function(){return Us(this,Ro.CAST_SHADOWS)},set:function(e){Us(this,Ro.CAST_SHADOWS)!==e&&(_h(this,Ro.CAST_SHADOWS,e),this.dirty=!0)}},receiveShadows:{get:function(){return Us(this,Ro.RECEIVE_SHADOWS)},set:function(e){Us(this,Ro.RECEIVE_SHADOWS)!==e&&(_h(this,Ro.RECEIVE_SHADOWS,e),this.dirty=!0)}},uniformMap:{get:function(){return this._uniformMap},set:function(e){this._uniformMap!==e&&(this._uniformMap=e,this.dirty=!0)}},renderState:{get:function(){return this._renderState},set:function(e){this._renderState!==e&&(this._renderState=e,this.dirty=!0)}},framebuffer:{get:function(){return this._framebuffer},set:function(e){this._framebuffer!==e&&(this._framebuffer=e,this.dirty=!0)}},pass:{get:function(){return this._pass},set:function(e){this._pass!==e&&(this._pass=e,this.dirty=!0)}},executeInClosestFrustum:{get:function(){return Us(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM)},set:function(e){Us(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM)!==e&&(_h(this,Ro.EXECUTE_IN_CLOSEST_FRUSTUM,e),this.dirty=!0)}},owner:{get:function(){return this._owner},set:function(e){this._owner!==e&&(this._owner=e,this.dirty=!0)}},debugShowBoundingVolume:{get:function(){return Us(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME)},set:function(e){Us(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME)!==e&&(_h(this,Ro.DEBUG_SHOW_BOUNDING_VOLUME,e),this.dirty=!0)}},debugOverlappingFrustums:{get:function(){return this._debugOverlappingFrustums},set:function(e){this._debugOverlappingFrustums!==e&&(this._debugOverlappingFrustums=e,this.dirty=!0)}},pickId:{get:function(){return this._pickId},set:function(e){this._pickId!==e&&(this._pickId=e,this.dirty=!0)}},pickOnly:{get:function(){return Us(this,Ro.PICK_ONLY)},set:function(e){Us(this,Ro.PICK_ONLY)!==e&&(_h(this,Ro.PICK_ONLY,e),this.dirty=!0)}},depthForTranslucentClassification:{get:function(){return Us(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION)},set:function(e){Us(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION)!==e&&(_h(this,Ro.DEPTH_FOR_TRANSLUCENT_CLASSIFICATION,e),this.dirty=!0)}}});mt.shallowClone=function(e,t){if(l(e))return l(t)||(t=new mt),t._boundingVolume=e._boundingVolume,t._orientedBoundingBox=e._orientedBoundingBox,t._modelMatrix=e._modelMatrix,t._primitiveType=e._primitiveType,t._vertexArray=e._vertexArray,t._count=e._count,t._offset=e._offset,t._instanceCount=e._instanceCount,t._shaderProgram=e._shaderProgram,t._uniformMap=e._uniformMap,t._renderState=e._renderState,t._framebuffer=e._framebuffer,t._pass=e._pass,t._owner=e._owner,t._debugOverlappingFrustums=e._debugOverlappingFrustums,t._pickId=e._pickId,t._flags=e._flags,t.dirty=!0,t.lastDirtyTime=0,t};mt.prototype.execute=function(e,t){e.draw(this,t)};const si={UNSIGNED_BYTE:ae.UNSIGNED_BYTE,UNSIGNED_SHORT:ae.UNSIGNED_SHORT,UNSIGNED_INT:ae.UNSIGNED_INT,FLOAT:ae.FLOAT,HALF_FLOAT:ae.HALF_FLOAT_OES,UNSIGNED_INT_24_8:ae.UNSIGNED_INT_24_8,UNSIGNED_SHORT_4_4_4_4:ae.UNSIGNED_SHORT_4_4_4_4,UNSIGNED_SHORT_5_5_5_1:ae.UNSIGNED_SHORT_5_5_5_1,UNSIGNED_SHORT_5_6_5:ae.UNSIGNED_SHORT_5_6_5};si.toWebGLConstant=function(e,t){switch(e){case si.UNSIGNED_BYTE:return ae.UNSIGNED_BYTE;case si.UNSIGNED_SHORT:return ae.UNSIGNED_SHORT;case si.UNSIGNED_INT:return ae.UNSIGNED_INT;case si.FLOAT:return ae.FLOAT;case si.HALF_FLOAT:return t.webgl2?ae.HALF_FLOAT:ae.HALF_FLOAT_OES;case si.UNSIGNED_INT_24_8:return ae.UNSIGNED_INT_24_8;case si.UNSIGNED_SHORT_4_4_4_4:return ae.UNSIGNED_SHORT_4_4_4_4;case si.UNSIGNED_SHORT_5_5_5_1:return ae.UNSIGNED_SHORT_5_5_5_1;case si.UNSIGNED_SHORT_5_6_5:return si.UNSIGNED_SHORT_5_6_5}};si.isPacked=function(e){return e===si.UNSIGNED_INT_24_8||e===si.UNSIGNED_SHORT_4_4_4_4||e===si.UNSIGNED_SHORT_5_5_5_1||e===si.UNSIGNED_SHORT_5_6_5};si.sizeInBytes=function(e){switch(e){case si.UNSIGNED_BYTE:return 1;case si.UNSIGNED_SHORT:case si.UNSIGNED_SHORT_4_4_4_4:case si.UNSIGNED_SHORT_5_5_5_1:case si.UNSIGNED_SHORT_5_6_5:case si.HALF_FLOAT:return 2;case si.UNSIGNED_INT:case si.FLOAT:case si.UNSIGNED_INT_24_8:return 4}};si.validate=function(e){return e===si.UNSIGNED_BYTE||e===si.UNSIGNED_SHORT||e===si.UNSIGNED_INT||e===si.FLOAT||e===si.HALF_FLOAT||e===si.UNSIGNED_INT_24_8||e===si.UNSIGNED_SHORT_4_4_4_4||e===si.UNSIGNED_SHORT_5_5_5_1||e===si.UNSIGNED_SHORT_5_6_5};const Qe=Object.freeze(si),Je={DEPTH_COMPONENT:ae.DEPTH_COMPONENT,DEPTH_STENCIL:ae.DEPTH_STENCIL,ALPHA:ae.ALPHA,RGB:ae.RGB,RGBA:ae.RGBA,LUMINANCE:ae.LUMINANCE,LUMINANCE_ALPHA:ae.LUMINANCE_ALPHA,RGB_DXT1:ae.COMPRESSED_RGB_S3TC_DXT1_EXT,RGBA_DXT1:ae.COMPRESSED_RGBA_S3TC_DXT1_EXT,RGBA_DXT3:ae.COMPRESSED_RGBA_S3TC_DXT3_EXT,RGBA_DXT5:ae.COMPRESSED_RGBA_S3TC_DXT5_EXT,RGB_PVRTC_4BPPV1:ae.COMPRESSED_RGB_PVRTC_4BPPV1_IMG,RGB_PVRTC_2BPPV1:ae.COMPRESSED_RGB_PVRTC_2BPPV1_IMG,RGBA_PVRTC_4BPPV1:ae.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG,RGBA_PVRTC_2BPPV1:ae.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG,RGBA_ASTC:ae.COMPRESSED_RGBA_ASTC_4x4_WEBGL,RGB_ETC1:ae.COMPRESSED_RGB_ETC1_WEBGL,RGB8_ETC2:ae.COMPRESSED_RGB8_ETC2,RGBA8_ETC2_EAC:ae.COMPRESSED_RGBA8_ETC2_EAC,RGBA_BC7:ae.COMPRESSED_RGBA_BPTC_UNORM};Je.componentsLength=function(e){switch(e){case Je.RGB:return 3;case Je.RGBA:return 4;case Je.LUMINANCE_ALPHA:return 2;case Je.ALPHA:case Je.LUMINANCE:return 1;default:return 1}};Je.validate=function(e){return e===Je.DEPTH_COMPONENT||e===Je.DEPTH_STENCIL||e===Je.ALPHA||e===Je.RGB||e===Je.RGBA||e===Je.LUMINANCE||e===Je.LUMINANCE_ALPHA||e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5||e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1||e===Je.RGBA_ASTC||e===Je.RGB_ETC1||e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC||e===Je.RGBA_BC7};Je.isColorFormat=function(e){return e===Je.ALPHA||e===Je.RGB||e===Je.RGBA||e===Je.LUMINANCE||e===Je.LUMINANCE_ALPHA};Je.isDepthFormat=function(e){return e===Je.DEPTH_COMPONENT||e===Je.DEPTH_STENCIL};Je.isCompressedFormat=function(e){return e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5||e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1||e===Je.RGBA_ASTC||e===Je.RGB_ETC1||e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC||e===Je.RGBA_BC7};Je.isDXTFormat=function(e){return e===Je.RGB_DXT1||e===Je.RGBA_DXT1||e===Je.RGBA_DXT3||e===Je.RGBA_DXT5};Je.isPVRTCFormat=function(e){return e===Je.RGB_PVRTC_4BPPV1||e===Je.RGB_PVRTC_2BPPV1||e===Je.RGBA_PVRTC_4BPPV1||e===Je.RGBA_PVRTC_2BPPV1};Je.isASTCFormat=function(e){return e===Je.RGBA_ASTC};Je.isETC1Format=function(e){return e===Je.RGB_ETC1};Je.isETC2Format=function(e){return e===Je.RGB8_ETC2||e===Je.RGBA8_ETC2_EAC};Je.isBC7Format=function(e){return e===Je.RGBA_BC7};Je.compressedTextureSizeInBytes=function(e,t,n){switch(e){case Je.RGB_DXT1:case Je.RGBA_DXT1:case Je.RGB_ETC1:case Je.RGB8_ETC2:return Math.floor((t+3)/4)*Math.floor((n+3)/4)*8;case Je.RGBA_DXT3:case Je.RGBA_DXT5:case Je.RGBA_ASTC:case Je.RGBA8_ETC2_EAC:return Math.floor((t+3)/4)*Math.floor((n+3)/4)*16;case Je.RGB_PVRTC_4BPPV1:case Je.RGBA_PVRTC_4BPPV1:return Math.floor((Math.max(t,8)*Math.max(n,8)*4+7)/8);case Je.RGB_PVRTC_2BPPV1:case Je.RGBA_PVRTC_2BPPV1:return Math.floor((Math.max(t,16)*Math.max(n,8)*2+7)/8);case Je.RGBA_BC7:return Math.ceil(t/4)*Math.ceil(n/4)*16;default:return 0}};Je.textureSizeInBytes=function(e,t,n,i){let o=Je.componentsLength(e);return Qe.isPacked(t)&&(o=1),o*Qe.sizeInBytes(t)*n*i};Je.alignmentInBytes=function(e,t,n){const i=Je.textureSizeInBytes(e,t,n,1)%4;return i===0?4:i===2?2:1};Je.createTypedArray=function(e,t,n,i){let o;const r=Qe.sizeInBytes(t);r===Uint8Array.BYTES_PER_ELEMENT?o=Uint8Array:r===Uint16Array.BYTES_PER_ELEMENT?o=Uint16Array:r===Float32Array.BYTES_PER_ELEMENT&&t===Qe.FLOAT?o=Float32Array:o=Uint32Array;const s=Je.componentsLength(e)*n*i;return new o(s)};Je.flipY=function(e,t,n,i,o){if(o===1)return e;const r=Je.createTypedArray(t,n,i,o),s=Je.componentsLength(t),a=i*s;for(let c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;c=this._colorTextures.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorTextures[e]};Yr.prototype.getColorRenderbuffer=function(e){if(!l(e)||e<0||e>=this._colorRenderbuffers.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorRenderbuffers[e]};Yr.prototype.isDestroyed=function(){return!1};Yr.prototype.destroy=function(){if(this.destroyAttachments){let e=0;const t=this._colorTextures;let n=t.length;for(;eIt.maximumAliasedLineWidth)throw new x("renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth.");if(!ml.validate(this.frontFace))throw new x("Invalid renderState.frontFace.");if(!mge(this.cull.face))throw new x("Invalid renderState.cull.face.");if(this.scissorTest.rectangle.width<0||this.scissorTest.rectangle.height<0)throw new x("renderState.scissorTest.rectangle.width and renderState.scissorTest.rectangle.height must be greater than or equal to zero.");if(this.depthRange.near>this.depthRange.far)throw new x("renderState.depthRange.near can not be greater than renderState.depthRange.far.");if(this.depthRange.near<0)throw new x("renderState.depthRange.near must be greater than or equal to zero.");if(this.depthRange.far>1)throw new x("renderState.depthRange.far must be less than or equal to one.");if(!_ge(this.depthTest.func))throw new x("Invalid renderState.depthTest.func.");if(this.blending.color.red<0||this.blending.color.red>1||this.blending.color.green<0||this.blending.color.green>1||this.blending.color.blue<0||this.blending.color.blue>1||this.blending.color.alpha<0||this.blending.color.alpha>1)throw new x("renderState.blending.color components must be greater than or equal to zero and less than or equal to one.");if(!Zz(this.blending.equationRgb))throw new x("Invalid renderState.blending.equationRgb.");if(!Zz(this.blending.equationAlpha))throw new x("Invalid renderState.blending.equationAlpha.");if(!IE(this.blending.functionSourceRgb))throw new x("Invalid renderState.blending.functionSourceRgb.");if(!IE(this.blending.functionSourceAlpha))throw new x("Invalid renderState.blending.functionSourceAlpha.");if(!IE(this.blending.functionDestinationRgb))throw new x("Invalid renderState.blending.functionDestinationRgb.");if(!IE(this.blending.functionDestinationAlpha))throw new x("Invalid renderState.blending.functionDestinationAlpha.");if(!eU(this.stencilTest.frontFunction))throw new x("Invalid renderState.stencilTest.frontFunction.");if(!eU(this.stencilTest.backFunction))throw new x("Invalid renderState.stencilTest.backFunction.");if(!wg(this.stencilTest.frontOperation.fail))throw new x("Invalid renderState.stencilTest.frontOperation.fail.");if(!wg(this.stencilTest.frontOperation.zFail))throw new x("Invalid renderState.stencilTest.frontOperation.zFail.");if(!wg(this.stencilTest.frontOperation.zPass))throw new x("Invalid renderState.stencilTest.frontOperation.zPass.");if(!wg(this.stencilTest.backOperation.fail))throw new x("Invalid renderState.stencilTest.backOperation.fail.");if(!wg(this.stencilTest.backOperation.zFail))throw new x("Invalid renderState.stencilTest.backOperation.zFail.");if(!wg(this.stencilTest.backOperation.zPass))throw new x("Invalid renderState.stencilTest.backOperation.zPass.");if(l(this.viewport)){if(this.viewport.width<0)throw new x("renderState.viewport.width must be greater than or equal to zero.");if(this.viewport.height<0)throw new x("renderState.viewport.height must be greater than or equal to zero.");if(this.viewport.width>It.maximumViewportWidth)throw new x(`renderState.viewport.width must be less than or equal to the maximum viewport width (${It.maximumViewportWidth.toString()}). Check maximumViewportWidth.`);if(this.viewport.height>It.maximumViewportHeight)throw new x(`renderState.viewport.height must be less than or equal to the maximum viewport height (${It.maximumViewportHeight.toString()}). Check maximumViewportHeight.`)}this.id=0,this._applyFunctions=[]}let gge=0,Zu={};et.fromCache=function(e){const t=JSON.stringify(e);let n=Zu[t];if(l(n))return++n.referenceCount,n.state;let i=new et(e);const o=JSON.stringify(i);return n=Zu[o],l(n)||(i.id=gge++,i=cj(i),n={referenceCount:0,state:i},Zu[o]=n),++n.referenceCount,Zu[t]={referenceCount:1,state:n.state},n.state};et.removeFromCache=function(e){const t=new et(e),n=JSON.stringify(t),i=Zu[n],o=JSON.stringify(e),r=Zu[o];l(r)&&(--r.referenceCount,r.referenceCount===0&&(delete Zu[o],l(i)&&--i.referenceCount)),l(i)&&i.referenceCount===0&&delete Zu[n]};et.getCache=function(){return Zu};et.clearCache=function(){Zu={}};function $_(e,t,n){n?e.enable(t):e.disable(t)}function lj(e,t){e.frontFace(t.frontFace)}function uj(e,t){const n=t.cull,i=n.enabled;$_(e,e.CULL_FACE,i),i&&e.cullFace(n.face)}function dj(e,t){e.lineWidth(t.lineWidth)}function fj(e,t){const n=t.polygonOffset,i=n.enabled;$_(e,e.POLYGON_OFFSET_FILL,i),i&&e.polygonOffset(n.factor,n.units)}function hj(e,t,n){const i=t.scissorTest,o=l(n.scissorTest)?n.scissorTest.enabled:i.enabled;if($_(e,e.SCISSOR_TEST,o),o){const r=l(n.scissorTest)?n.scissorTest.rectangle:i.rectangle;e.scissor(r.x,r.y,r.width,r.height)}}function pj(e,t){const n=t.depthRange;e.depthRange(n.near,n.far)}function mj(e,t){const n=t.depthTest,i=n.enabled;$_(e,e.DEPTH_TEST,i),i&&e.depthFunc(n.func)}function _j(e,t){const n=t.colorMask;e.colorMask(n.red,n.green,n.blue,n.alpha)}function gj(e,t){e.depthMask(t.depthMask)}function yj(e,t){e.stencilMask(t.stencilMask)}function yge(e,t){e.blendColor(t.red,t.green,t.blue,t.alpha)}function Aj(e,t,n){const i=t.blending,o=l(n.blendingEnabled)?n.blendingEnabled:i.enabled;$_(e,e.BLEND,o),o&&(yge(e,i.color),e.blendEquationSeparate(i.equationRgb,i.equationAlpha),e.blendFuncSeparate(i.functionSourceRgb,i.functionDestinationRgb,i.functionSourceAlpha,i.functionDestinationAlpha))}function bj(e,t){const n=t.stencilTest,i=n.enabled;if($_(e,e.STENCIL_TEST,i),i){const o=n.frontFunction,r=n.backFunction,s=n.reference,a=n.mask;e.stencilFunc(o,s,a),e.stencilFuncSeparate(e.BACK,r,s,a),e.stencilFuncSeparate(e.FRONT,o,s,a);const c=n.frontOperation,u=c.fail,d=c.zFail,h=c.zPass;e.stencilOpSeparate(e.FRONT,u,d,h);const m=n.backOperation,g=m.fail,p=m.zFail,y=m.zPass;e.stencilOpSeparate(e.BACK,g,p,y)}}function Cj(e,t){const n=t.sampleCoverage,i=n.enabled;$_(e,e.SAMPLE_COVERAGE,i),i&&e.sampleCoverage(n.value,n.invert)}const Age=new Ye;function Tj(e,t,n){let i=A(t.viewport,n.viewport);l(i)||(i=Age,i.width=n.context.drawingBufferWidth,i.height=n.context.drawingBufferHeight),n.context.uniformState.viewport=i,e.viewport(i.x,i.y,i.width,i.height)}et.apply=function(e,t,n){lj(e,t),uj(e,t),dj(e,t),fj(e,t),pj(e,t),mj(e,t),_j(e,t),gj(e,t),yj(e,t),bj(e,t),Cj(e,t),hj(e,t,n),Aj(e,t,n),Tj(e,t,n)};function bge(e,t){const n=[];return e.frontFace!==t.frontFace&&n.push(lj),(e.cull.enabled!==t.cull.enabled||e.cull.face!==t.cull.face)&&n.push(uj),e.lineWidth!==t.lineWidth&&n.push(dj),(e.polygonOffset.enabled!==t.polygonOffset.enabled||e.polygonOffset.factor!==t.polygonOffset.factor||e.polygonOffset.units!==t.polygonOffset.units)&&n.push(fj),(e.depthRange.near!==t.depthRange.near||e.depthRange.far!==t.depthRange.far)&&n.push(pj),(e.depthTest.enabled!==t.depthTest.enabled||e.depthTest.func!==t.depthTest.func)&&n.push(mj),(e.colorMask.red!==t.colorMask.red||e.colorMask.green!==t.colorMask.green||e.colorMask.blue!==t.colorMask.blue||e.colorMask.alpha!==t.colorMask.alpha)&&n.push(_j),e.depthMask!==t.depthMask&&n.push(gj),e.stencilMask!==t.stencilMask&&n.push(yj),(e.stencilTest.enabled!==t.stencilTest.enabled||e.stencilTest.frontFunction!==t.stencilTest.frontFunction||e.stencilTest.backFunction!==t.stencilTest.backFunction||e.stencilTest.reference!==t.stencilTest.reference||e.stencilTest.mask!==t.stencilTest.mask||e.stencilTest.frontOperation.fail!==t.stencilTest.frontOperation.fail||e.stencilTest.frontOperation.zFail!==t.stencilTest.frontOperation.zFail||e.stencilTest.backOperation.fail!==t.stencilTest.backOperation.fail||e.stencilTest.backOperation.zFail!==t.stencilTest.backOperation.zFail||e.stencilTest.backOperation.zPass!==t.stencilTest.backOperation.zPass)&&n.push(bj),(e.sampleCoverage.enabled!==t.sampleCoverage.enabled||e.sampleCoverage.value!==t.sampleCoverage.value||e.sampleCoverage.invert!==t.sampleCoverage.invert)&&n.push(Cj),n}et.partialApply=function(e,t,n,i,o,r){if(t!==n){let d=n._applyFunctions[t.id];l(d)||(d=bge(t,n),n._applyFunctions[t.id]=d);const h=d.length;for(let m=0;m0&&console.log(`${Mu}Vertex shader compile log: ${c}`),c=e.getShaderInfoLog(r),l(c)&&c.length>0&&console.log(`${Mu}Fragment shader compile log: ${c}`),c=e.getProgramInfoLog(s),l(c)&&c.length>0&&console.log(`${Mu}Shader program link log: ${c}`)),e.deleteShader(o),e.deleteShader(r),s;let u;const d=t._debugShaders;throw e.getShaderParameter(r,e.COMPILE_STATUS)?e.getShaderParameter(o,e.COMPILE_STATUS)?(c=e.getProgramInfoLog(s),console.error(`${Mu}Shader program link log: ${c}`),h(o,"vertex"),h(r,"fragment"),u=`Program failed to link. Link log: ${c}`):(c=e.getShaderInfoLog(o),console.error(`${Mu}Vertex shader compile log: ${c}`),console.error(`${Mu} Vertex shader source: -${n}`),u=`Vertex shader failed to compile. Compile log: ${c}`):(c=e.getShaderInfoLog(r),console.error(`${Mu}Fragment shader compile log: ${c}`),console.error(`${Mu} Fragment shader source: -${i}`),u=`Fragment shader failed to compile. Compile log: ${c}`),e.deleteShader(o),e.deleteShader(r),e.deleteProgram(s),new Ie(u);function h(m,g){if(!l(d))return;const p=d.getTranslatedShaderSource(m);if(p===""){console.error(`${Mu}${g} shader translation failed.`);return}console.error(`${Mu}Translated ${g} shaderSource: -${p}`)}}function Bge(e,t,n){const i={};for(let o=0;o=0){if(d=n[u.slice(0,p)],!l(d))continue;h=d._locations,h.length<=1&&(m=d.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),m.push(e.getUniform(t,g))))}else{h=[];for(let y=0;y0)n=Math.sqrt(d+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=Gge;let m=0;c>a&&(m=1),u>a&&u>c&&(m=2);const g=h[m],p=h[g];n=Math.sqrt(e[J.getElementIndex(m,m)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const y=Wge;y[m]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,y[g]=(e[J.getElementIndex(g,m)]+e[J.getElementIndex(m,g)])*n,y[p]=(e[J.getElementIndex(p,m)]+e[J.getElementIndex(m,p)])*n,i=-y[0],o=-y[1],r=-y[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Te(i,o,r,s)};const rU=new Te;let sU=new Te,o1=new Te,aU=new Te;Te.fromHeadingPitchRoll=function(e,t){return T.typeOf.object("headingPitchRoll",e),aU=Te.fromAxisAngle(f.UNIT_X,e.roll,rU),o1=Te.fromAxisAngle(f.UNIT_Y,-e.pitch,t),t=Te.multiply(o1,aU,o1),sU=Te.fromAxisAngle(f.UNIT_Z,-e.heading,rU),Te.multiply(sU,t,t)};const PE=new f,r1=new f,kl=new Te,cU=new Te,OE=new Te;Te.packedLength=4;Te.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Te.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Te),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Te.packedInterpolationLength=3;Te.convertPackedArrayForInterpolation=function(e,t,n,i){Te.unpack(e,n*4,OE),Te.conjugate(OE,OE);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)Hd[g]=(MS[g]*c-FS[g])*s,Vd[g]=(MS[g]*u-FS[g])*s;const d=r*n*(1+Hd[0]*(1+Hd[1]*(1+Hd[2]*(1+Hd[3]*(1+Hd[4]*(1+Hd[5]*(1+Hd[6]*(1+Hd[7])))))))),h=a*(1+Vd[0]*(1+Vd[1]*(1+Vd[2]*(1+Vd[3]*(1+Vd[4]*(1+Vd[5]*(1+Vd[6]*(1+Vd[7])))))))),m=Te.multiplyByScalar(e,h,$ge);return Te.multiplyByScalar(t,d,i),Te.add(m,i,i)};Te.fastSquad=function(e,t,n,i,o,r){T.typeOf.object("q0",e),T.typeOf.object("q1",t),T.typeOf.object("s0",n),T.typeOf.object("s1",i),T.typeOf.number("t",o),T.typeOf.object("result",r);const s=Te.fastSlerp(e,t,o,Bb),a=Te.fastSlerp(n,i,o,Ty);return Te.fastSlerp(s,a,2*o*(1-o),r)};Te.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Te.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Te.ZERO=Object.freeze(new Te(0,0,0,0));Te.IDENTITY=Object.freeze(new Te(0,0,0,1));Te.prototype.clone=function(e){return Te.clone(this,e)};Te.prototype.equals=function(e){return Te.equals(this,e)};Te.prototype.equalsEpsilon=function(e,t){return Te.equalsEpsilon(this,e,t)};Te.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function Bs(e,t,n){T.defined("array",e),T.defined("itemToFind",t),T.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function iM(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function uT(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function zS(e){if(e===null||isNaN(e))throw new x("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function $i(e,t){this.julianDate=e,this.offset=t}const Yge={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},Ni=Object.freeze(Yge),Xge={UTC:0,TAI:1},$n=Object.freeze(Xge),$j=new uT,LE=[31,28,31,30,31,30,31,31,30,31,30,31],BE=29;function oM(e,t){return ie.compare(e.julianDate,t.julianDate)}const a0=new $i;function rD(e){a0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,a0,oM);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ie.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ie.addSeconds(e,i,e)}function uU(e,t){a0.julianDate=e;const n=ie.leapSeconds;let i=Bs(n,a0,oM);if(i<0&&(i=~i),i===0)return ie.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ie.addSeconds(e,-n[i-1].offset,t);const o=ie.secondsDifference(n[i].julianDate,e);if(o===0)return ie.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ie.addSeconds(e,-n[--i].offset,t)}function Yp(e,t,n){const i=t/Ni.SECONDS_PER_DAY|0;return e+=i,t-=Ni.SECONDS_PER_DAY*i,t<0&&(e--,t+=Ni.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function rM(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const d=r+(i*Ni.SECONDS_PER_HOUR+o*Ni.SECONDS_PER_MINUTE+s*Ni.SECONDS_PER_MILLISECOND);return d>=43200&&(u-=1),[u,d]}const Kge=/^(\d{4})$/,Jge=/^(\d{4})-(\d{2})$/,Qge=/^(\d{4})-?(\d{3})$/,Zge=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,eye=/^(\d{4})-?(\d{2})-?(\d{2})$/,sM=/([Z+\-])?(\d{2})?:?(\d{2})?$/,tye=/^(\d{2})(\.\d+)?/.source+sM.source,nye=/^(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,iye=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+sM.source,Ol="Invalid ISO 8601 date.";function ie(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=A(e,0),t=A(t,0),n=A(n,$n.UTC);const i=e|0;t=t+(e-i)*Ni.SECONDS_PER_DAY,Yp(i,t,this),n===$n.UTC&&rD(this)}ie.fromGregorianDate=function(e,t){if(!(e instanceof uT))throw new x("date must be a valid GregorianDate.");const n=rM(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new x("date must be a valid JavaScript Date.");const n=rM(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(Yp(n[0],n[1],t),rD(t),t):new ie(n[0],n[1],$n.UTC)};ie.fromIso8601=function(e,t){if(typeof e!="string")throw new x(Ol);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const d=n[0],h=n[1];let m,g;if(!l(d))throw new x(Ol);let p;if(n=d.match(eye),n!==null){if(p=d.split("-").length-1,p>0&&p!==2)throw new x(Ol);i=+n[1],o=+n[2],r=+n[3]}else if(n=d.match(Jge),n!==null)i=+n[1],o=+n[2];else if(n=d.match(Kge),n!==null)i=+n[1];else{let E;if(n=d.match(Qge),n!==null){if(i=+n[1],E=+n[2],g=zS(i),E<1||g&&E>366||!g&&E>365)throw new x(Ol)}else if(n=d.match(Zge),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=d.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new x(Ol);const P=new Date(Date.UTC(i,0,4));E=w*7+S-P.getUTCDay()-3}else throw new x(Ol);m=new Date(Date.UTC(i,0,1)),m.setUTCDate(E),o=m.getUTCMonth()+1,r=m.getUTCDate()}if(g=zS(i),o<1||o>12||r<1||(o!==2||!g)&&r>LE[o-1]||g&&o===2&&r>BE)throw new x(Ol);let y;if(l(h)){if(n=h.match(iye),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new x(Ol);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,y=5}else if(n=h.match(nye),n!==null){if(p=h.split(":").length-1,p>2)throw new x(Ol);s=+n[1],a=+n[2],c=+(n[3]||0)*60,y=4}else if(n=h.match(tye),n!==null)s=+n[1],a=+(n[2]||0)*60,y=3;else throw new x(Ol);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new x(Ol);const E=n[y],w=+n[y+1],S=+(n[y+2]||0);switch(E){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const b=c===60;for(b&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(m=g&&o===2?BE:LE[o-1];r>m;)r-=m,o++,o>12&&(o-=12,i++),m=g&&o===2?BE:LE[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),m=g&&o===2?BE:LE[o-1],r+=m;const C=rM(i,o,r,s,a,c,u);return l(t)?(Yp(C[0],C[1],t),rD(t)):t=new ie(C[0],C[1],$n.UTC),b&&ie.addSeconds(t,1,t),t};ie.now=function(e){return ie.fromDate(new Date,e)};const RE=new ie(0,0,$n.TAI);ie.toGregorianDate=function(e,t){if(!l(e))throw new x("julianDate is required.");let n=!1,i=uU(e,RE);l(i)||(ie.addSeconds(e,-1,RE),i=uU(RE,RE),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,d=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,m=100*(a-49)+c+s|0;let g=r/Ni.SECONDS_PER_HOUR|0,p=r-g*Ni.SECONDS_PER_HOUR;const y=p/Ni.SECONDS_PER_MINUTE|0;p=p-y*Ni.SECONDS_PER_MINUTE;let b=p|0;const C=(p-b)/Ni.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(b+=1),l(t)?(t.year=m,t.month=h,t.day=d,t.hour=g,t.minute=y,t.second=b,t.millisecond=C,t.isLeapSecond=n,t):new uT(m,h,d,g,y,b,C,n)};ie.toDate=function(e){if(!l(e))throw new x("julianDate is required.");const t=ie.toGregorianDate(e,$j);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ie.toIso8601=function(e,t){if(!l(e))throw new x("julianDate is required.");const n=ie.toGregorianDate(e,$j);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let d;return!l(t)&&u!==0?(d=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(d=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${d}Z`)};ie.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ie(e.dayNumber,e.secondsOfDay,$n.TAI)};ie.compare=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ie.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ie.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(ie.secondsDifference(e,t))<=n};ie.totalDays=function(e){if(!l(e))throw new x("julianDate is required.");return e.dayNumber+e.secondsOfDay/Ni.SECONDS_PER_DAY};ie.secondsDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");return(e.dayNumber-t.dayNumber)*Ni.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ie.daysDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/Ni.SECONDS_PER_DAY;return n+i};ie.computeTaiMinusUtc=function(e){a0.julianDate=e;const t=ie.leapSeconds;let n=Bs(t,a0,oM);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ie.addSeconds=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("seconds is required.");if(!l(n))throw new x("result is required.");return Yp(e.dayNumber,e.secondsOfDay+t,n)};ie.addMinutes=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("minutes is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_MINUTE;return Yp(e.dayNumber,i,n)};ie.addHours=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("hours is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ni.SECONDS_PER_HOUR;return Yp(e.dayNumber,i,n)};ie.addDays=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("days is required.");if(!l(n))throw new x("result is required.");const i=e.dayNumber+t;return Yp(i,e.secondsOfDay,n)};ie.lessThan=function(e,t){return ie.compare(e,t)<0};ie.lessThanOrEquals=function(e,t){return ie.compare(e,t)<=0};ie.greaterThan=function(e,t){return ie.compare(e,t)>0};ie.greaterThanOrEquals=function(e,t){return ie.compare(e,t)>=0};ie.prototype.clone=function(e){return ie.clone(this,e)};ie.prototype.equals=function(e){return ie.equals(this,e)};ie.prototype.equalsEpsilon=function(e,t){return ie.equalsEpsilon(this,e,t)};ie.prototype.toString=function(){return ie.toIso8601(this)};ie.leapSeconds=[new $i(new ie(2441317,43210,$n.TAI),10),new $i(new ie(2441499,43211,$n.TAI),11),new $i(new ie(2441683,43212,$n.TAI),12),new $i(new ie(2442048,43213,$n.TAI),13),new $i(new ie(2442413,43214,$n.TAI),14),new $i(new ie(2442778,43215,$n.TAI),15),new $i(new ie(2443144,43216,$n.TAI),16),new $i(new ie(2443509,43217,$n.TAI),17),new $i(new ie(2443874,43218,$n.TAI),18),new $i(new ie(2444239,43219,$n.TAI),19),new $i(new ie(2444786,43220,$n.TAI),20),new $i(new ie(2445151,43221,$n.TAI),21),new $i(new ie(2445516,43222,$n.TAI),22),new $i(new ie(2446247,43223,$n.TAI),23),new $i(new ie(2447161,43224,$n.TAI),24),new $i(new ie(2447892,43225,$n.TAI),25),new $i(new ie(2448257,43226,$n.TAI),26),new $i(new ie(2448804,43227,$n.TAI),27),new $i(new ie(2449169,43228,$n.TAI),28),new $i(new ie(2449534,43229,$n.TAI),29),new $i(new ie(2450083,43230,$n.TAI),30),new $i(new ie(2450630,43231,$n.TAI),31),new $i(new ie(2451179,43232,$n.TAI),32),new $i(new ie(2453736,43233,$n.TAI),33),new $i(new ie(2454832,43234,$n.TAI),34),new $i(new ie(2456109,43235,$n.TAI),35),new $i(new ie(2457204,43236,$n.TAI),36),new $i(new ie(2457754,43237,$n.TAI),37)];const oye="modulepreload",rye=function(e){return"/satellite-track/"+e},dU={},NE=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=rye(r),r in dU)return;dU[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":oye,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((d,h)=>{u.addEventListener("load",d),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var sB={},sye={get exports(){return sB},set exports(e){sB=e}},Rb={},aye={get exports(){return Rb},set exports(e){Rb=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var fU;function cye(){return fU||(fU=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof By=="object"&&By;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,d=26,h=38,m=700,g=72,p=128,y="-",b=/^xn--/,C=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,L=String.fromCharCode,z;function R(W){throw new RangeError(w[W])}function F(W,K){for(var q=W.length,te=[];q--;)te[q]=K(W[q]);return te}function U(W,K){var q=W.split("@"),te="";q.length>1&&(te=q[0]+"@",W=q[1]),W=W.replace(E,".");var Y=W.split("."),X=F(Y,K).join(".");return te+X}function D(W){for(var K=[],q=0,te=W.length,Y,X;q=55296&&Y<=56319&&q65535&&(K-=65536,q+=L(K>>>10&1023|55296),K=56320|K&1023),q+=L(K),q}).join("")}function _(W){return W-48<10?W-22:W-65<26?W-65:W-97<26?W-97:c}function v(W,K){return W+22+75*(W<26)-((K!=0)<<5)}function O(W,K,q){var te=0;for(W=q?P(W/m):W>>1,W+=P(W/K);W>S*d>>1;te+=c)W=P(W/S);return P(te+(S+1)*W/(W+h))}function N(W){var K=[],q=W.length,te,Y=0,X=p,$=g,se,ue,re,he,ce,Q,ne,de,_e;for(se=W.lastIndexOf(y),se<0&&(se=0),ue=0;ue=128&&R("not-basic"),K.push(W.charCodeAt(ue));for(re=se>0?se+1:0;re=q&&R("invalid-input"),ne=_(W.charCodeAt(re++)),(ne>=c||ne>P((a-Y)/ce))&&R("overflow"),Y+=ne*ce,de=Q<=$?u:Q>=$+d?d:Q-$,!(neP(a/_e)&&R("overflow"),ce*=_e;te=K.length+1,$=O(Y-he,te,he==0),P(Y/te)>a-X&&R("overflow"),X+=P(Y/te),Y%=te,K.splice(Y++,0,X)}return I(K)}function V(W){var K,q,te,Y,X,$,se,ue,re,he,ce,Q=[],ne,de,_e,Se;for(W=D(W),ne=W.length,K=p,q=0,X=g,$=0;$=K&&ceP((a-q)/de)&&R("overflow"),q+=(se-K)*de,K=se,$=0;$a&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=X?u:re>=X+d?d:re-X,!(uei)throw new x("The number of color attachments exceeds the number supported.");for(c=0;ci)throw new x("The number of color attachments exceeds the number supported.");for(c=0;c=this._colorTextures.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorTextures[e]};zr.prototype.getColorRenderbuffer=function(e){if(!l(e)||e<0||e>=this._colorRenderbuffers.length)throw new x("index is required, must be greater than or equal to zero and must be less than the number of color attachments.");return this._colorRenderbuffers[e]};zr.prototype.isDestroyed=function(){return!1};zr.prototype.destroy=function(){if(this.destroyAttachments){let e=0;const t=this._colorTextures;let n=t.length;for(;ewt.maximumAliasedLineWidth)throw new x("renderState.lineWidth is out of range. Check minimumAliasedLineWidth and maximumAliasedLineWidth.");if(!el.validate(this.frontFace))throw new x("Invalid renderState.frontFace.");if(!rhe(this.cull.face))throw new x("Invalid renderState.cull.face.");if(this.scissorTest.rectangle.width<0||this.scissorTest.rectangle.height<0)throw new x("renderState.scissorTest.rectangle.width and renderState.scissorTest.rectangle.height must be greater than or equal to zero.");if(this.depthRange.near>this.depthRange.far)throw new x("renderState.depthRange.near can not be greater than renderState.depthRange.far.");if(this.depthRange.near<0)throw new x("renderState.depthRange.near must be greater than or equal to zero.");if(this.depthRange.far>1)throw new x("renderState.depthRange.far must be less than or equal to one.");if(!she(this.depthTest.func))throw new x("Invalid renderState.depthTest.func.");if(this.blending.color.red<0||this.blending.color.red>1||this.blending.color.green<0||this.blending.color.green>1||this.blending.color.blue<0||this.blending.color.blue>1||this.blending.color.alpha<0||this.blending.color.alpha>1)throw new x("renderState.blending.color components must be greater than or equal to zero and less than or equal to one.");if(!Q3(this.blending.equationRgb))throw new x("Invalid renderState.blending.equationRgb.");if(!Q3(this.blending.equationAlpha))throw new x("Invalid renderState.blending.equationAlpha.");if(!Yb(this.blending.functionSourceRgb))throw new x("Invalid renderState.blending.functionSourceRgb.");if(!Yb(this.blending.functionSourceAlpha))throw new x("Invalid renderState.blending.functionSourceAlpha.");if(!Yb(this.blending.functionDestinationRgb))throw new x("Invalid renderState.blending.functionDestinationRgb.");if(!Yb(this.blending.functionDestinationAlpha))throw new x("Invalid renderState.blending.functionDestinationAlpha.");if(!Z3(this.stencilTest.frontFunction))throw new x("Invalid renderState.stencilTest.frontFunction.");if(!Z3(this.stencilTest.backFunction))throw new x("Invalid renderState.stencilTest.backFunction.");if(!J_(this.stencilTest.frontOperation.fail))throw new x("Invalid renderState.stencilTest.frontOperation.fail.");if(!J_(this.stencilTest.frontOperation.zFail))throw new x("Invalid renderState.stencilTest.frontOperation.zFail.");if(!J_(this.stencilTest.frontOperation.zPass))throw new x("Invalid renderState.stencilTest.frontOperation.zPass.");if(!J_(this.stencilTest.backOperation.fail))throw new x("Invalid renderState.stencilTest.backOperation.fail.");if(!J_(this.stencilTest.backOperation.zFail))throw new x("Invalid renderState.stencilTest.backOperation.zFail.");if(!J_(this.stencilTest.backOperation.zPass))throw new x("Invalid renderState.stencilTest.backOperation.zPass.");if(l(this.viewport)){if(this.viewport.width<0)throw new x("renderState.viewport.width must be greater than or equal to zero.");if(this.viewport.height<0)throw new x("renderState.viewport.height must be greater than or equal to zero.");if(this.viewport.width>wt.maximumViewportWidth)throw new x(`renderState.viewport.width must be less than or equal to the maximum viewport width (${wt.maximumViewportWidth.toString()}). Check maximumViewportWidth.`);if(this.viewport.height>wt.maximumViewportHeight)throw new x(`renderState.viewport.height must be less than or equal to the maximum viewport height (${wt.maximumViewportHeight.toString()}). Check maximumViewportHeight.`)}this.id=0,this._applyFunctions=[]}let ahe=0,Ru={};Qe.fromCache=function(e){const t=JSON.stringify(e);let n=Ru[t];if(l(n))return++n.referenceCount,n.state;let i=new Qe(e);const o=JSON.stringify(i);return n=Ru[o],l(n)||(i.id=ahe++,i=k9(i),n={referenceCount:0,state:i},Ru[o]=n),++n.referenceCount,Ru[t]={referenceCount:1,state:n.state},n.state};Qe.removeFromCache=function(e){const t=new Qe(e),n=JSON.stringify(t),i=Ru[n],o=JSON.stringify(e),r=Ru[o];l(r)&&(--r.referenceCount,r.referenceCount===0&&(delete Ru[o],l(i)&&--i.referenceCount)),l(i)&&i.referenceCount===0&&delete Ru[n]};Qe.getCache=function(){return Ru};Qe.clearCache=function(){Ru={}};function A_(e,t,n){n?e.enable(t):e.disable(t)}function G9(e,t){e.frontFace(t.frontFace)}function W9(e,t){const n=t.cull,i=n.enabled;A_(e,e.CULL_FACE,i),i&&e.cullFace(n.face)}function j9(e,t){e.lineWidth(t.lineWidth)}function q9(e,t){const n=t.polygonOffset,i=n.enabled;A_(e,e.POLYGON_OFFSET_FILL,i),i&&e.polygonOffset(n.factor,n.units)}function Y9(e,t,n){const i=t.scissorTest,o=l(n.scissorTest)?n.scissorTest.enabled:i.enabled;if(A_(e,e.SCISSOR_TEST,o),o){const r=l(n.scissorTest)?n.scissorTest.rectangle:i.rectangle;e.scissor(r.x,r.y,r.width,r.height)}}function $9(e,t){const n=t.depthRange;e.depthRange(n.near,n.far)}function X9(e,t){const n=t.depthTest,i=n.enabled;A_(e,e.DEPTH_TEST,i),i&&e.depthFunc(n.func)}function K9(e,t){const n=t.colorMask;e.colorMask(n.red,n.green,n.blue,n.alpha)}function J9(e,t){e.depthMask(t.depthMask)}function Q9(e,t){e.stencilMask(t.stencilMask)}function che(e,t){e.blendColor(t.red,t.green,t.blue,t.alpha)}function Z9(e,t,n){const i=t.blending,o=l(n.blendingEnabled)?n.blendingEnabled:i.enabled;A_(e,e.BLEND,o),o&&(che(e,i.color),e.blendEquationSeparate(i.equationRgb,i.equationAlpha),e.blendFuncSeparate(i.functionSourceRgb,i.functionDestinationRgb,i.functionSourceAlpha,i.functionDestinationAlpha))}function eW(e,t){const n=t.stencilTest,i=n.enabled;if(A_(e,e.STENCIL_TEST,i),i){const o=n.frontFunction,r=n.backFunction,s=n.reference,a=n.mask;e.stencilFunc(o,s,a),e.stencilFuncSeparate(e.BACK,r,s,a),e.stencilFuncSeparate(e.FRONT,o,s,a);const c=n.frontOperation,u=c.fail,f=c.zFail,h=c.zPass;e.stencilOpSeparate(e.FRONT,u,f,h);const _=n.backOperation,g=_.fail,p=_.zFail,y=_.zPass;e.stencilOpSeparate(e.BACK,g,p,y)}}function tW(e,t){const n=t.sampleCoverage,i=n.enabled;A_(e,e.SAMPLE_COVERAGE,i),i&&e.sampleCoverage(n.value,n.invert)}const lhe=new qe;function nW(e,t,n){let i=A(t.viewport,n.viewport);l(i)||(i=lhe,i.width=n.context.drawingBufferWidth,i.height=n.context.drawingBufferHeight),n.context.uniformState.viewport=i,e.viewport(i.x,i.y,i.width,i.height)}Qe.apply=function(e,t,n){G9(e,t),W9(e,t),j9(e,t),q9(e,t),$9(e,t),X9(e,t),K9(e,t),J9(e,t),Q9(e,t),eW(e,t),tW(e,t),Y9(e,t,n),Z9(e,t,n),nW(e,t,n)};function uhe(e,t){const n=[];return e.frontFace!==t.frontFace&&n.push(G9),(e.cull.enabled!==t.cull.enabled||e.cull.face!==t.cull.face)&&n.push(W9),e.lineWidth!==t.lineWidth&&n.push(j9),(e.polygonOffset.enabled!==t.polygonOffset.enabled||e.polygonOffset.factor!==t.polygonOffset.factor||e.polygonOffset.units!==t.polygonOffset.units)&&n.push(q9),(e.depthRange.near!==t.depthRange.near||e.depthRange.far!==t.depthRange.far)&&n.push($9),(e.depthTest.enabled!==t.depthTest.enabled||e.depthTest.func!==t.depthTest.func)&&n.push(X9),(e.colorMask.red!==t.colorMask.red||e.colorMask.green!==t.colorMask.green||e.colorMask.blue!==t.colorMask.blue||e.colorMask.alpha!==t.colorMask.alpha)&&n.push(K9),e.depthMask!==t.depthMask&&n.push(J9),e.stencilMask!==t.stencilMask&&n.push(Q9),(e.stencilTest.enabled!==t.stencilTest.enabled||e.stencilTest.frontFunction!==t.stencilTest.frontFunction||e.stencilTest.backFunction!==t.stencilTest.backFunction||e.stencilTest.reference!==t.stencilTest.reference||e.stencilTest.mask!==t.stencilTest.mask||e.stencilTest.frontOperation.fail!==t.stencilTest.frontOperation.fail||e.stencilTest.frontOperation.zFail!==t.stencilTest.frontOperation.zFail||e.stencilTest.backOperation.fail!==t.stencilTest.backOperation.fail||e.stencilTest.backOperation.zFail!==t.stencilTest.backOperation.zFail||e.stencilTest.backOperation.zPass!==t.stencilTest.backOperation.zPass)&&n.push(eW),(e.sampleCoverage.enabled!==t.sampleCoverage.enabled||e.sampleCoverage.value!==t.sampleCoverage.value||e.sampleCoverage.invert!==t.sampleCoverage.invert)&&n.push(tW),n}Qe.partialApply=function(e,t,n,i,o,r){if(t!==n){let f=n._applyFunctions[t.id];l(f)||(f=uhe(t,n),n._applyFunctions[t.id]=f);const h=f.length;for(let _=0;_0&&console.log(`${yu}Vertex shader compile log: ${c}`),c=e.getShaderInfoLog(r),l(c)&&c.length>0&&console.log(`${yu}Fragment shader compile log: ${c}`),c=e.getProgramInfoLog(s),l(c)&&c.length>0&&console.log(`${yu}Shader program link log: ${c}`)),e.deleteShader(o),e.deleteShader(r),s;let u;const f=t._debugShaders;throw e.getShaderParameter(r,e.COMPILE_STATUS)?e.getShaderParameter(o,e.COMPILE_STATUS)?(c=e.getProgramInfoLog(s),console.error(`${yu}Shader program link log: ${c}`),h(o,"vertex"),h(r,"fragment"),u=`Program failed to link. Link log: ${c}`):(c=e.getShaderInfoLog(o),console.error(`${yu}Vertex shader compile log: ${c}`),console.error(`${yu} Vertex shader source: +${n}`),u=`Vertex shader failed to compile. Compile log: ${c}`):(c=e.getShaderInfoLog(r),console.error(`${yu}Fragment shader compile log: ${c}`),console.error(`${yu} Fragment shader source: +${i}`),u=`Fragment shader failed to compile. Compile log: ${c}`),e.deleteShader(o),e.deleteShader(r),e.deleteProgram(s),new Se(u);function h(_,g){if(!l(f))return;const p=f.getTranslatedShaderSource(_);if(p===""){console.error(`${yu}${g} shader translation failed.`);return}console.error(`${yu}Translated ${g} shaderSource: +${p}`)}}function Ehe(e,t,n){const i={};for(let o=0;o=0){if(f=n[u.slice(0,p)],!l(f))continue;h=f._locations,h.length<=1&&(_=f.value,g=e.getUniformLocation(t,u),g!==null&&(h.push(g),_.push(e.getUniform(t,g))))}else{h=[];for(let y=0;y0)n=Math.sqrt(f+1),s=.5*n,n=.5/n,i=(e[J.COLUMN1ROW2]-e[J.COLUMN2ROW1])*n,o=(e[J.COLUMN2ROW0]-e[J.COLUMN0ROW2])*n,r=(e[J.COLUMN0ROW1]-e[J.COLUMN1ROW0])*n;else{const h=Bhe;let _=0;c>a&&(_=1),u>a&&u>c&&(_=2);const g=h[_],p=h[g];n=Math.sqrt(e[J.getElementIndex(_,_)]-e[J.getElementIndex(g,g)]-e[J.getElementIndex(p,p)]+1);const y=Rhe;y[_]=.5*n,n=.5/n,s=(e[J.getElementIndex(p,g)]-e[J.getElementIndex(g,p)])*n,y[g]=(e[J.getElementIndex(g,_)]+e[J.getElementIndex(_,g)])*n,y[p]=(e[J.getElementIndex(p,_)]+e[J.getElementIndex(_,p)])*n,i=-y[0],o=-y[1],r=-y[2]}return l(t)?(t.x=i,t.y=o,t.z=r,t.w=s,t):new Ce(i,o,r,s)};const oz=new Ce;let rz=new Ce,_I=new Ce,sz=new Ce;Ce.fromHeadingPitchRoll=function(e,t){return b.typeOf.object("headingPitchRoll",e),sz=Ce.fromAxisAngle(d.UNIT_X,e.roll,oz),_I=Ce.fromAxisAngle(d.UNIT_Y,-e.pitch,t),t=Ce.multiply(_I,sz,_I),rz=Ce.fromAxisAngle(d.UNIT_Z,-e.heading,oz),Ce.multiply(rz,t,t)};const $b=new d,gI=new d,wl=new Ce,az=new Ce,Xb=new Ce;Ce.packedLength=4;Ce.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Ce.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new Ce),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};Ce.packedInterpolationLength=3;Ce.convertPackedArrayForInterpolation=function(e,t,n,i){Ce.unpack(e,n*4,Xb),Ce.conjugate(Xb,Xb);for(let o=0,r=n-t+1;o=0?r=1:(r=-1,o=-o);const s=o-1,a=1-n,c=n*n,u=a*a;for(let g=7;g>=0;--g)xf[g]=(Zw[g]*c-eS[g])*s,wf[g]=(Zw[g]*u-eS[g])*s;const f=r*n*(1+xf[0]*(1+xf[1]*(1+xf[2]*(1+xf[3]*(1+xf[4]*(1+xf[5]*(1+xf[6]*(1+xf[7])))))))),h=a*(1+wf[0]*(1+wf[1]*(1+wf[2]*(1+wf[3]*(1+wf[4]*(1+wf[5]*(1+wf[6]*(1+wf[7])))))))),_=Ce.multiplyByScalar(e,h,Fhe);return Ce.multiplyByScalar(t,f,i),Ce.add(_,i,i)};Ce.fastSquad=function(e,t,n,i,o,r){b.typeOf.object("q0",e),b.typeOf.object("q1",t),b.typeOf.object("s0",n),b.typeOf.object("s1",i),b.typeOf.number("t",o),b.typeOf.object("result",r);const s=Ce.fastSlerp(e,t,o,oC),a=Ce.fastSlerp(n,i,o,Yg);return Ce.fastSlerp(s,a,2*o*(1-o),r)};Ce.equals=function(e,t){return e===t||l(e)&&l(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Ce.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};Ce.ZERO=Object.freeze(new Ce(0,0,0,0));Ce.IDENTITY=Object.freeze(new Ce(0,0,0,1));Ce.prototype.clone=function(e){return Ce.clone(this,e)};Ce.prototype.equals=function(e){return Ce.equals(this,e)};Ce.prototype.equalsEpsilon=function(e,t){return Ce.equalsEpsilon(this,e,t)};Ce.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};function Cs(e,t,n){b.defined("array",e),b.defined("itemToFind",t),b.defined("comparator",n);let i=0,o=e.length-1,r,s;for(;i<=o;){if(r=~~((i+o)/2),s=n(e[r],t),s<0){i=r+1;continue}if(s>0){o=r-1;continue}return r}return~(o+1)}function uN(e,t,n,i,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=i,this.ut1MinusUtc=o}function IT(e,t,n,i,o,r,s,a){this.year=e,this.month=t,this.day=n,this.hour=i,this.minute=o,this.second=r,this.millisecond=s,this.isLeapSecond=a}function tS(e){if(e===null||isNaN(e))throw new x("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}function Bi(e,t){this.julianDate=e,this.offset=t}const zhe={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},Ti=Object.freeze(zhe),Uhe={UTC:0,TAI:1},zn=Object.freeze(Uhe),vW=new IT,Kb=[31,28,31,30,31,30,31,31,30,31,30,31],Jb=29;function fN(e,t){return ne.compare(e.julianDate,t.julianDate)}const Ly=new Bi;function Cv(e){Ly.julianDate=e;const t=ne.leapSeconds;let n=Cs(t,Ly,fN);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let i=t[n].offset;n>0&&ne.secondsDifference(t[n].julianDate,e)>i&&(n--,i=t[n].offset),ne.addSeconds(e,i,e)}function lz(e,t){Ly.julianDate=e;const n=ne.leapSeconds;let i=Cs(n,Ly,fN);if(i<0&&(i=~i),i===0)return ne.addSeconds(e,-n[0].offset,t);if(i>=n.length)return ne.addSeconds(e,-n[i-1].offset,t);const o=ne.secondsDifference(n[i].julianDate,e);if(o===0)return ne.addSeconds(e,-n[i].offset,t);if(!(o<=1))return ne.addSeconds(e,-n[--i].offset,t)}function bp(e,t,n){const i=t/Ti.SECONDS_PER_DAY|0;return e+=i,t-=Ti.SECONDS_PER_DAY*i,t<0&&(e--,t+=Ti.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function dN(e,t,n,i,o,r,s){const a=(t-14)/12|0,c=e+4800+a;let u=(1461*c/4|0)+(367*(t-2-12*a)/12|0)-(3*((c+100)/100|0)/4|0)+n-32075;i=i-12,i<0&&(i+=24);const f=r+(i*Ti.SECONDS_PER_HOUR+o*Ti.SECONDS_PER_MINUTE+s*Ti.SECONDS_PER_MILLISECOND);return f>=43200&&(u-=1),[u,f]}const Hhe=/^(\d{4})$/,Vhe=/^(\d{4})-(\d{2})$/,khe=/^(\d{4})-?(\d{3})$/,Ghe=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Whe=/^(\d{4})-?(\d{2})-?(\d{2})$/,hN=/([Z+\-])?(\d{2})?:?(\d{2})?$/,jhe=/^(\d{2})(\.\d+)?/.source+hN.source,qhe=/^(\d{2}):?(\d{2})(\.\d+)?/.source+hN.source,Yhe=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+hN.source,ml="Invalid ISO 8601 date.";function ne(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=A(e,0),t=A(t,0),n=A(n,zn.UTC);const i=e|0;t=t+(e-i)*Ti.SECONDS_PER_DAY,bp(i,t,this),n===zn.UTC&&Cv(this)}ne.fromGregorianDate=function(e,t){if(!(e instanceof IT))throw new x("date must be a valid GregorianDate.");const n=dN(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return l(t)?(bp(n[0],n[1],t),Cv(t),t):new ne(n[0],n[1],zn.UTC)};ne.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new x("date must be a valid JavaScript Date.");const n=dN(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return l(t)?(bp(n[0],n[1],t),Cv(t),t):new ne(n[0],n[1],zn.UTC)};ne.fromIso8601=function(e,t){if(typeof e!="string")throw new x(ml);e=e.replace(",",".");let n=e.split("T"),i,o=1,r=1,s=0,a=0,c=0,u=0;const f=n[0],h=n[1];let _,g;if(!l(f))throw new x(ml);let p;if(n=f.match(Whe),n!==null){if(p=f.split("-").length-1,p>0&&p!==2)throw new x(ml);i=+n[1],o=+n[2],r=+n[3]}else if(n=f.match(Vhe),n!==null)i=+n[1],o=+n[2];else if(n=f.match(Hhe),n!==null)i=+n[1];else{let E;if(n=f.match(khe),n!==null){if(i=+n[1],E=+n[2],g=tS(i),E<1||g&&E>366||!g&&E>365)throw new x(ml)}else if(n=f.match(Ghe),n!==null){i=+n[1];const w=+n[2],S=+n[3]||0;if(p=f.split("-").length-1,p>0&&(!l(n[3])&&p!==1||l(n[3])&&p!==2))throw new x(ml);const P=new Date(Date.UTC(i,0,4));E=w*7+S-P.getUTCDay()-3}else throw new x(ml);_=new Date(Date.UTC(i,0,1)),_.setUTCDate(E),o=_.getUTCMonth()+1,r=_.getUTCDate()}if(g=tS(i),o<1||o>12||r<1||(o!==2||!g)&&r>Kb[o-1]||g&&o===2&&r>Jb)throw new x(ml);let y;if(l(h)){if(n=h.match(Yhe),n!==null){if(p=h.split(":").length-1,p>0&&p!==2&&p!==3)throw new x(ml);s=+n[1],a=+n[2],c=+n[3],u=+(n[4]||0)*1e3,y=5}else if(n=h.match(qhe),n!==null){if(p=h.split(":").length-1,p>2)throw new x(ml);s=+n[1],a=+n[2],c=+(n[3]||0)*60,y=4}else if(n=h.match(jhe),n!==null)s=+n[1],a=+(n[2]||0)*60,y=3;else throw new x(ml);if(a>=60||c>=61||s>24||s===24&&(a>0||c>0||u>0))throw new x(ml);const E=n[y],w=+n[y+1],S=+(n[y+2]||0);switch(E){case"+":s=s-w,a=a-S;break;case"-":s=s+w,a=a+S;break;case"Z":break;default:a=a+new Date(Date.UTC(i,o-1,r,s,a)).getTimezoneOffset();break}}const C=c===60;for(C&&c--;a>=60;)a-=60,s++;for(;s>=24;)s-=24,r++;for(_=g&&o===2?Jb:Kb[o-1];r>_;)r-=_,o++,o>12&&(o-=12,i++),_=g&&o===2?Jb:Kb[o-1];for(;a<0;)a+=60,s--;for(;s<0;)s+=24,r--;for(;r<1;)o--,o<1&&(o+=12,i--),_=g&&o===2?Jb:Kb[o-1],r+=_;const T=dN(i,o,r,s,a,c,u);return l(t)?(bp(T[0],T[1],t),Cv(t)):t=new ne(T[0],T[1],zn.UTC),C&&ne.addSeconds(t,1,t),t};ne.now=function(e){return ne.fromDate(new Date,e)};const Qb=new ne(0,0,zn.TAI);ne.toGregorianDate=function(e,t){if(!l(e))throw new x("julianDate is required.");let n=!1,i=lz(e,Qb);l(i)||(ne.addSeconds(e,-1,Qb),i=lz(Qb,Qb),n=!0);let o=i.dayNumber;const r=i.secondsOfDay;r>=43200&&(o+=1);let s=o+68569|0;const a=4*s/146097|0;s=s-((146097*a+3)/4|0)|0;const c=4e3*(s+1)/1461001|0;s=s-(1461*c/4|0)+31|0;const u=80*s/2447|0,f=s-(2447*u/80|0)|0;s=u/11|0;const h=u+2-12*s|0,_=100*(a-49)+c+s|0;let g=r/Ti.SECONDS_PER_HOUR|0,p=r-g*Ti.SECONDS_PER_HOUR;const y=p/Ti.SECONDS_PER_MINUTE|0;p=p-y*Ti.SECONDS_PER_MINUTE;let C=p|0;const T=(p-C)/Ti.SECONDS_PER_MILLISECOND;return g+=12,g>23&&(g-=24),n&&(C+=1),l(t)?(t.year=_,t.month=h,t.day=f,t.hour=g,t.minute=y,t.second=C,t.millisecond=T,t.isLeapSecond=n,t):new IT(_,h,f,g,y,C,T,n)};ne.toDate=function(e){if(!l(e))throw new x("julianDate is required.");const t=ne.toGregorianDate(e,vW);let n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};ne.toIso8601=function(e,t){if(!l(e))throw new x("julianDate is required.");const n=ne.toGregorianDate(e,vW);let i=n.year,o=n.month,r=n.day,s=n.hour;const a=n.minute,c=n.second,u=n.millisecond;i===1e4&&o===1&&r===1&&s===0&&a===0&&c===0&&u===0&&(i=9999,o=12,r=31,s=24);let f;return!l(t)&&u!==0?(f=(u*.01).toString().replace(".",""),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`):!l(t)||t===0?`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`:(f=(u*.01).toFixed(t).replace(".","").slice(0,t),`${i.toString().padStart(4,"0")}-${o.toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}T${s.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${f}Z`)};ne.clone=function(e,t){if(l(e))return l(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new ne(e.dayNumber,e.secondsOfDay,zn.TAI)};ne.compare=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};ne.equals=function(e,t){return e===t||l(e)&&l(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};ne.equalsEpsilon=function(e,t,n){return n=A(n,0),e===t||l(e)&&l(t)&&Math.abs(ne.secondsDifference(e,t))<=n};ne.totalDays=function(e){if(!l(e))throw new x("julianDate is required.");return e.dayNumber+e.secondsOfDay/Ti.SECONDS_PER_DAY};ne.secondsDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");return(e.dayNumber-t.dayNumber)*Ti.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};ne.daysDifference=function(e,t){if(!l(e))throw new x("left is required.");if(!l(t))throw new x("right is required.");const n=e.dayNumber-t.dayNumber,i=(e.secondsOfDay-t.secondsOfDay)/Ti.SECONDS_PER_DAY;return n+i};ne.computeTaiMinusUtc=function(e){Ly.julianDate=e;const t=ne.leapSeconds;let n=Cs(t,Ly,fN);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};ne.addSeconds=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("seconds is required.");if(!l(n))throw new x("result is required.");return bp(e.dayNumber,e.secondsOfDay+t,n)};ne.addMinutes=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("minutes is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ti.SECONDS_PER_MINUTE;return bp(e.dayNumber,i,n)};ne.addHours=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("hours is required.");if(!l(n))throw new x("result is required.");const i=e.secondsOfDay+t*Ti.SECONDS_PER_HOUR;return bp(e.dayNumber,i,n)};ne.addDays=function(e,t,n){if(!l(e))throw new x("julianDate is required.");if(!l(t))throw new x("days is required.");if(!l(n))throw new x("result is required.");const i=e.dayNumber+t;return bp(i,e.secondsOfDay,n)};ne.lessThan=function(e,t){return ne.compare(e,t)<0};ne.lessThanOrEquals=function(e,t){return ne.compare(e,t)<=0};ne.greaterThan=function(e,t){return ne.compare(e,t)>0};ne.greaterThanOrEquals=function(e,t){return ne.compare(e,t)>=0};ne.prototype.clone=function(e){return ne.clone(this,e)};ne.prototype.equals=function(e){return ne.equals(this,e)};ne.prototype.equalsEpsilon=function(e,t){return ne.equalsEpsilon(this,e,t)};ne.prototype.toString=function(){return ne.toIso8601(this)};ne.leapSeconds=[new Bi(new ne(2441317,43210,zn.TAI),10),new Bi(new ne(2441499,43211,zn.TAI),11),new Bi(new ne(2441683,43212,zn.TAI),12),new Bi(new ne(2442048,43213,zn.TAI),13),new Bi(new ne(2442413,43214,zn.TAI),14),new Bi(new ne(2442778,43215,zn.TAI),15),new Bi(new ne(2443144,43216,zn.TAI),16),new Bi(new ne(2443509,43217,zn.TAI),17),new Bi(new ne(2443874,43218,zn.TAI),18),new Bi(new ne(2444239,43219,zn.TAI),19),new Bi(new ne(2444786,43220,zn.TAI),20),new Bi(new ne(2445151,43221,zn.TAI),21),new Bi(new ne(2445516,43222,zn.TAI),22),new Bi(new ne(2446247,43223,zn.TAI),23),new Bi(new ne(2447161,43224,zn.TAI),24),new Bi(new ne(2447892,43225,zn.TAI),25),new Bi(new ne(2448257,43226,zn.TAI),26),new Bi(new ne(2448804,43227,zn.TAI),27),new Bi(new ne(2449169,43228,zn.TAI),28),new Bi(new ne(2449534,43229,zn.TAI),29),new Bi(new ne(2450083,43230,zn.TAI),30),new Bi(new ne(2450630,43231,zn.TAI),31),new Bi(new ne(2451179,43232,zn.TAI),32),new Bi(new ne(2453736,43233,zn.TAI),33),new Bi(new ne(2454832,43234,zn.TAI),34),new Bi(new ne(2456109,43235,zn.TAI),35),new Bi(new ne(2457204,43236,zn.TAI),36),new Bi(new ne(2457754,43237,zn.TAI),37)];const $he="modulepreload",Xhe=function(e){return"/satellite-track/"+e},uz={},Zb=function(t,n,i){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Xhe(r),r in uz)return;uz[r]=!0;const s=r.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!i)for(let f=o.length-1;f>=0;f--){const h=o[f];if(h.href===r&&(!s||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":$he,s||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),s)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())};var _L={},Khe={get exports(){return _L},set exports(e){_L=e}},rC={},Jhe={get exports(){return rC},set exports(e){rC=e}};/*! https://mths.be/punycode v1.4.0 by @mathias */var fz;function Qhe(){return fz||(fz=1,function(e,t){(function(n){var i=t&&!t.nodeType&&t,o=e&&!e.nodeType&&e,r=typeof oy=="object"&&oy;(r.global===r||r.window===r||r.self===r)&&(n=r);var s,a=2147483647,c=36,u=1,f=26,h=38,_=700,g=72,p=128,y="-",C=/^xn--/,T=/[^\x20-\x7E]/,E=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},S=c-u,P=Math.floor,O=String.fromCharCode,z;function R(G){throw new RangeError(w[G])}function F(G,K){for(var q=G.length,te=[];q--;)te[q]=K(G[q]);return te}function H(G,K){var q=G.split("@"),te="";q.length>1&&(te=q[0]+"@",G=q[1]),G=G.replace(E,".");var $=G.split("."),X=F($,K).join(".");return te+X}function v(G){for(var K=[],q=0,te=G.length,$,X;q=55296&&$<=56319&&q65535&&(K-=65536,q+=O(K>>>10&1023|55296),K=56320|K&1023),q+=O(K),q}).join("")}function m(G){return G-48<10?G-22:G-65<26?G-65:G-97<26?G-97:c}function D(G,K){return G+22+75*(G<26)-((K!=0)<<5)}function L(G,K,q){var te=0;for(G=q?P(G/_):G>>1,G+=P(G/K);G>S*f>>1;te+=c)G=P(G/S);return P(te+(S+1)*G/(G+h))}function M(G){var K=[],q=G.length,te,$=0,X=p,Y=g,ae,ue,re,he,ce,Q,ie,de,me;for(ae=G.lastIndexOf(y),ae<0&&(ae=0),ue=0;ue=128&&R("not-basic"),K.push(G.charCodeAt(ue));for(re=ae>0?ae+1:0;re=q&&R("invalid-input"),ie=m(G.charCodeAt(re++)),(ie>=c||ie>P((a-$)/ce))&&R("overflow"),$+=ie*ce,de=Q<=Y?u:Q>=Y+f?f:Q-Y,!(ieP(a/me)&&R("overflow"),ce*=me;te=K.length+1,Y=L($-he,te,he==0),P($/te)>a-X&&R("overflow"),X+=P($/te),$%=te,K.splice($++,0,X)}return I(K)}function V(G){var K,q,te,$,X,Y,ae,ue,re,he,ce,Q=[],ie,de,me,Ee;for(G=v(G),ie=G.length,K=p,q=0,X=g,Y=0;Y=K&&ceP((a-q)/de)&&R("overflow"),q+=(ae-K)*de,K=ae,Y=0;Ya&&R("overflow"),ce==K){for(ue=q,re=c;he=re<=X?u:re>=X+f?f:re-X,!(ue1);g++)h.splice(0,1);a[m]=h.join("")}var p=-1,y=0,b=0,C=-1,E=!1;for(m=0;my&&(p=C,y=b)):a[m]==="0"&&(E=!0,C=m,b=1);b>y&&(p=C,y=b),y>1&&a.splice(p,y,""),c=a.length;var w="";for(a[0]===""&&(w=":"),m=0;m1);g++)h.splice(0,1);a[_]=h.join("")}var p=-1,y=0,C=0,T=-1,E=!1;for(_=0;_y&&(p=T,y=C)):a[_]==="0"&&(E=!0,T=_,C=1);C>y&&(p=T,y=C),y>1&&a.splice(p,y,""),c=a.length;var w="";for(a[0]===""&&(w=":"),_=0;_=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(s+1,r)+" ")>=0:!1},is:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s>=0)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(0,r)+" ")>=0:!1},get:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return null;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return null;var a=i.list[o.slice(r+1)];return!a||a.indexOf(" "+o.slice(s+1,r)+" ")<0?null:o.slice(s+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=n),this}};return i})}(dye)),HS}/*! + */var hz;function npe(){return hz||(hz=1,function(e){(function(t,n){e.exports?e.exports=n():t.SecondLevelDomains=n(t)})(oy,function(t){var n=t&&t.SecondLevelDomains,i={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(s+1,r)+" ")>=0:!1},is:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return!1;var s=o.lastIndexOf(".",r-1);if(s>=0)return!1;var a=i.list[o.slice(r+1)];return a?a.indexOf(" "+o.slice(0,r)+" ")>=0:!1},get:function(o){var r=o.lastIndexOf(".");if(r<=0||r>=o.length-1)return null;var s=o.lastIndexOf(".",r-1);if(s<=0||s>=r-1)return null;var a=i.list[o.slice(r+1)];return!a||a.indexOf(" "+o.slice(s+1,r)+" ")<0?null:o.slice(s+1)},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=n),this}};return i})}(tpe)),iS}/*! * URI.js - Mutating URLs * * Version: 1.19.11 @@ -75,10 +62,10 @@ ${p}`)}}function Bge(e,t,n){const i={};for(let o=0;o=1,N=arguments.length>=2;if(!(this instanceof s))return O?N?new s(_,v):new s(_):new s;if(_===void 0){if(O)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?_=location.href+"":_=""}if(_===null&&O)throw new TypeError("null is not a valid argument for URI");return this.href(_),v!==void 0?this.absoluteTo(v):this}function a(_){return/^[0-9]+$/.test(_)}s.version="1.19.11";var c=s.prototype,u=Object.prototype.hasOwnProperty;function d(_){return _.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(_){return _===void 0?"Undefined":String(Object.prototype.toString.call(_)).slice(8,-1)}function m(_){return h(_)==="Array"}function g(_,v){var O={},N,V;if(h(v)==="RegExp")O=null;else if(m(v))for(N=0,V=v.length;N]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(_){if(!(!_||!_.nodeName)){var v=_.nodeName.toLowerCase();if(!(v==="input"&&_.type!=="image"))return s.domAttributes[v]}};function C(_){return escape(_)}function E(_){return encodeURIComponent(_).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}s.encode=E,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=E,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(_,v){var O=s.encode(_+"");return v===void 0&&(v=s.escapeQuerySpace),v?O.replace(/%20/g,"+"):O},s.decodeQuery=function(_,v){_+="",v===void 0&&(v=s.escapeQuerySpace);try{return s.decode(v?_.replace(/\+/g,"%20"):_)}catch{return _}};var w={encode:"encode",decode:"decode"},S,P=function(_,v){return function(O){try{return s[v](O+"").replace(s.characters[_][v].expression,function(N){return s.characters[_][v].map[N]})}catch{return O}}};for(S in w)s[S+"PathSegment"]=P("pathname",w[S]),s[S+"UrnPathSegment"]=P("urnpath",w[S]);var L=function(_,v,O){return function(N){var V;O?V=function(K){return s[v](s[O](K))}:V=s[v];for(var k=(N+"").split(_),G=0,W=k.length;G-1&&(v.fragment=_.substring(O+1)||null,_=_.substring(0,O)),O=_.indexOf("?"),O>-1&&(v.query=_.substring(O+1)||null,_=_.substring(0,O)),_=_.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),_=_.replace(/^[/\\]{2,}/i,"//"),_.substring(0,2)==="//"?(v.protocol=null,_=_.substring(2),_=s.parseAuthority(_,v)):(O=_.indexOf(":"),O>-1&&(v.protocol=_.substring(0,O)||null,v.protocol&&!v.protocol.match(s.protocol_expression)?v.protocol=void 0:_.substring(O+1,O+3).replace(/\\/g,"/")==="//"?(_=_.substring(O+3),_=s.parseAuthority(_,v)):(_=_.substring(O+1),v.urn=!0))),v.path=_,v},s.parseHost=function(_,v){_||(_=""),_=_.replace(/\\/g,"/");var O=_.indexOf("/"),N,V;if(O===-1&&(O=_.length),_.charAt(0)==="[")N=_.indexOf("]"),v.hostname=_.substring(1,N)||null,v.port=_.substring(N+2,O)||null,v.port==="/"&&(v.port=null);else{var k=_.indexOf(":"),G=_.indexOf("/"),W=_.indexOf(":",k+1);W!==-1&&(G===-1||W-1?V:_.length-1),G;return k>-1&&(V===-1||k-1?X=X.slice(0,$)+X.slice($).replace(k,""):X=X.replace(k,""),!(X.length<=K[0].length)&&!(O.ignore&&O.ignore.test(X))){Y=q+X.length;var re=v(X,q,Y,_);if(re===void 0){N.lastIndex=Y;continue}re=String(re),_=_.slice(0,q)+re+_.slice(Y),N.lastIndex=q+re.length}}return N.lastIndex=0,_},s.ensureValidHostname=function(_,v){var O=!!_,N=!!v,V=!1;if(N&&(V=p(s.hostProtocols,v)),V&&!O)throw new TypeError("Hostname cannot be empty, if protocol is "+v);if(_&&_.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(_).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(_){if(_){var v=Number(_);if(!(a(v)&&v>0&&v<65536))throw new TypeError('Port "'+_+'" is not a valid port')}},s.noConflict=function(_){if(_){var v={URI:this.noConflict()};return o.URITemplate&&typeof o.URITemplate.noConflict=="function"&&(v.URITemplate=o.URITemplate.noConflict()),o.IPv6&&typeof o.IPv6.noConflict=="function"&&(v.IPv6=o.IPv6.noConflict()),o.SecondLevelDomains&&typeof o.SecondLevelDomains.noConflict=="function"&&(v.SecondLevelDomains=o.SecondLevelDomains.noConflict()),v}else o.URI===this&&(o.URI=r);return this},c.build=function(_){return _===!0?this._deferred_build=!0:(_===void 0||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new s(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function z(_){return function(v,O){return v===void 0?this._parts[_]||"":(this._parts[_]=v||null,this.build(!O),this)}}function R(_,v){return function(O,N){return O===void 0?this._parts[_]||"":(O!==null&&(O=O+"",O.charAt(0)===v&&(O=O.substring(1))),this._parts[_]=O,this.build(!N),this)}}c.protocol=z("protocol"),c.username=z("username"),c.password=z("password"),c.hostname=z("hostname"),c.port=z("port"),c.query=R("query","?"),c.fragment=R("fragment","#"),c.search=function(_,v){var O=this.query(_,v);return typeof O=="string"&&O.length?"?"+O:O},c.hash=function(_,v){var O=this.fragment(_,v);return typeof O=="string"&&O.length?"#"+O:O},c.pathname=function(_,v){if(_===void 0||_===!0){var O=this._parts.path||(this._parts.hostname?"/":"");return _?(this._parts.urn?s.decodeUrnPath:s.decodePath)(O):O}else return this._parts.urn?this._parts.path=_?s.recodeUrnPath(_):"":this._parts.path=_?s.recodePath(_):"/",this.build(!v),this},c.path=c.pathname,c.href=function(_,v){var O;if(_===void 0)return this.toString();this._string="",this._parts=s._parts();var N=_ instanceof s,V=typeof _=="object"&&(_.hostname||_.path||_.pathname);if(_.nodeName){var k=s.getDomAttribute(_);_=_[k]||"",V=!1}if(!N&&V&&_.pathname!==void 0&&(_=_.toString()),typeof _=="string"||_ instanceof String)this._parts=s.parse(String(_),this._parts);else if(N||V){var G=N?_._parts:_;for(O in G)O!=="query"&&u.call(this._parts,O)&&(this._parts[O]=G[O]);G.query&&this.query(G.query,!1)}else throw new TypeError("invalid input");return this.build(!v),this},c.is=function(_){var v=!1,O=!1,N=!1,V=!1,k=!1,G=!1,W=!1,K=!this._parts.urn;switch(this._parts.hostname&&(K=!1,O=s.ip4_expression.test(this._parts.hostname),N=s.ip6_expression.test(this._parts.hostname),v=O||N,V=!v,k=V&&i&&i.has(this._parts.hostname),G=V&&s.idn_expression.test(this._parts.hostname),W=V&&s.punycode_expression.test(this._parts.hostname)),_.toLowerCase()){case"relative":return K;case"absolute":return!K;case"domain":case"name":return V;case"sld":return k;case"ip":return v;case"ip4":case"ipv4":case"inet4":return O;case"ip6":case"ipv6":case"inet6":return N;case"idn":return G;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return W}return null};var F=c.protocol,U=c.port,D=c.hostname;c.protocol=function(_,v){if(_&&(_=_.replace(/:(\/\/)?$/,""),!_.match(s.protocol_expression)))throw new TypeError('Protocol "'+_+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return F.call(this,_,v)},c.scheme=c.protocol,c.port=function(_,v){return this._parts.urn?_===void 0?"":this:(_!==void 0&&(_===0&&(_=null),_&&(_+="",_.charAt(0)===":"&&(_=_.substring(1)),s.ensureValidPort(_))),U.call(this,_,v))},c.hostname=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_!==void 0){var O={preventInvalidHostname:this._parts.preventInvalidHostname},N=s.parseHost(_,O);if(N!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');_=O.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(_,this._parts.protocol)}return D.call(this,_,v)},c.origin=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=this.protocol(),N=this.authority();return N?(O?O+"://":"")+this.authority():""}else{var V=s(_);return this.protocol(V.protocol()).authority(V.authority()).build(!v),this}},c.host=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildHost(this._parts):"";var O=s.parseHost(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.authority=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0)return this._parts.hostname?s.buildAuthority(this._parts):"";var O=s.parseAuthority(_,this._parts);if(O!=="/")throw new TypeError('Hostname "'+_+'" contains characters other than [A-Z0-9.-]');return this.build(!v),this},c.userinfo=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){var O=s.buildUserinfo(this._parts);return O&&O.substring(0,O.length-1)}else return _[_.length-1]!=="@"&&(_+="@"),s.parseUserinfo(_,this._parts),this.build(!v),this},c.resource=function(_,v){var O;return _===void 0?this.path()+this.search()+this.hash():(O=s.parse(_),this._parts.path=O.path,this._parts.query=O.query,this._parts.fragment=O.fragment,this.build(!v),this)},c.subdomain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,O)||""}else{var N=this._parts.hostname.length-this.domain().length,V=this._parts.hostname.substring(0,N),k=new RegExp("^"+d(V));if(_&&_.charAt(_.length-1)!=="."&&(_+="."),_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return _&&s.ensureValidHostname(_,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,_),this.build(!v),this}},c.domain=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.match(/\./g);if(O&&O.length<2)return this._parts.hostname;var N=this._parts.hostname.length-this.tld(v).length-1;return N=this._parts.hostname.lastIndexOf(".",N-1)+1,this._parts.hostname.substring(N)||""}else{if(!_)throw new TypeError("cannot set domain empty");if(_.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(_,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=_;else{var V=new RegExp(d(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(V,_)}return this.build(!v),this}},c.tld=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _=="boolean"&&(v=_,_=void 0),_===void 0){if(!this._parts.hostname||this.is("IP"))return"";var O=this._parts.hostname.lastIndexOf("."),N=this._parts.hostname.substring(O+1);return v!==!0&&i&&i.list[N.toLowerCase()]&&i.get(this._parts.hostname)||N}else{var V;if(_)if(_.match(/[^a-zA-Z0-9-]/))if(i&&i.is(_))V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_);else throw new TypeError('TLD "'+_+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");V=new RegExp(d(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,_)}else throw new TypeError("cannot set TLD empty");return this.build(!v),this}},c.directory=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var O=this._parts.path.length-this.filename().length-1,N=this._parts.path.substring(0,O)||(this._parts.hostname?"/":"");return _?s.decodePath(N):N}else{var V=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,V),G=new RegExp("^"+d(k));return this.is("relative")||(_||(_="/"),_.charAt(0)!=="/"&&(_="/"+_)),_&&_.charAt(_.length-1)!=="/"&&(_+="/"),_=s.recodePath(_),this._parts.path=this._parts.path.replace(G,_),this.build(!v),this}},c.filename=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(typeof _!="string"){if(!this._parts.path||this._parts.path==="/")return"";var O=this._parts.path.lastIndexOf("/"),N=this._parts.path.substring(O+1);return _?s.decodePathSegment(N):N}else{var V=!1;_.charAt(0)==="/"&&(_=_.substring(1)),_.match(/\.?\//)&&(V=!0);var k=new RegExp(d(this.filename())+"$");return _=s.recodePath(_),this._parts.path=this._parts.path.replace(k,_),V?this.normalizePath(v):this.build(!v),this}},c.suffix=function(_,v){if(this._parts.urn)return _===void 0?"":this;if(_===void 0||_===!0){if(!this._parts.path||this._parts.path==="/")return"";var O=this.filename(),N=O.lastIndexOf("."),V,k;return N===-1?"":(V=O.substring(N+1),k=/^[a-z0-9%]+$/i.test(V)?V:"",_?s.decodePathSegment(k):k)}else{_.charAt(0)==="."&&(_=_.substring(1));var G=this.suffix(),W;if(G)_?W=new RegExp(d(G)+"$"):W=new RegExp(d("."+G)+"$");else{if(!_)return this;this._parts.path+="."+s.recodePath(_)}return W&&(_=s.recodePath(_),this._parts.path=this._parts.path.replace(W,_)),this.build(!v),this}},c.segment=function(_,v,O){var N=this._parts.urn?":":"/",V=this.path(),k=V.substring(0,1)==="/",G=V.split(N);if(_!==void 0&&typeof _!="number"&&(O=v,v=_,_=void 0),_!==void 0&&typeof _!="number")throw new Error('Bad segment "'+_+'", must be 0-based integer');if(k&&G.shift(),_<0&&(_=Math.max(G.length+_,0)),v===void 0)return _===void 0?G:G[_];if(_===null||G[_]===void 0)if(m(v)){G=[];for(var W=0,K=v.length;W"u")return e;t=A(n.baseURI,n.location.href)}const i=new Rs(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};function pye(e,t){if(!l(e))throw new x("uri is required.");let n="";const i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new Rs(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}function mye(e){if(!l(e))throw new x("uri is required.");const t=new Rs(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}const mU={};function VS(e,t,n){l(t)||(t=e.width),l(n)||(n=e.height);let i=mU[t];l(i)||(i={},mU[t]=i);let o=i[n];if(!l(o)){const r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d"),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}const _ye=/^blob:/i;function Yj(e){return T.typeOf.string("uri",e),_ye.test(e)}let Fu;function Xj(e){l(Fu)||(Fu=document.createElement("a")),Fu.href=window.location.href;const t=Fu.host,n=Fu.protocol;return Fu.href=e,Fu.href=Fu.href,n!==Fu.protocol||t!==Fu.host}const gye=/^data:/i;function aM(e){return T.typeOf.string("uri",e),gye.test(e)}function yye(e){const t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");const o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}function Aye(e){if(!l(e))throw new x("obj is required.");let t="";for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function c0(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Eye(this.responseHeaders))}c0.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function Ke(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties(Ke.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});Ke.prototype.addEventListener=function(e,t){T.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};Ke.prototype.removeEventListener=function(e,t){T.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(xye),e=0;e=0;--t)this.heapify(t)};X_.prototype.insert=function(e){T.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};X_.prototype.pop=function(e){if(e=A(e,0),this._length===0)return;T.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return cM(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function wye(e,t){return e.priority-t.priority}const wi={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let Ry=20;const Zs=new X_({comparator:wye});Zs.maximumLength=Ry;Zs.reserve(Ry);const Ju=[];let Pf={};const Sye=typeof document<"u"?new Rs(document.location.href):new Rs,sD=new Ke;function bi(){}bi.maximumRequests=50;bi.maximumRequestsPerServer=6;bi.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};bi.throttleRequests=!0;bi.debugShowStatistics=!1;bi.requestCompletedEvent=sD;Object.defineProperties(bi,{statistics:{get:function(){return wi}},priorityHeapLength:{get:function(){return Ry},set:function(e){if(ee;){const t=Zs.pop();d_(t)}Ry=e,Zs.maximumLength=e,Zs.reserve(e)}}});function Kj(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}bi.serverHasOpenSlots=function(e,t){t=A(t,1);const n=A(bi.requestsByServer[e],bi.maximumRequestsPerServer);return Pf[e]+t<=n};bi.heapHasOpenSlots=function(e){return Zs.length+e<=Ry};function Jj(e){return e.state===Do.UNISSUED&&(e.state=Do.ISSUED,e.deferred=Xp()),e.deferred.promise}function vye(e){return function(t){if(e.state===Do.CANCELLED)return;const n=e.deferred;--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(),e.state=Do.RECEIVED,e.deferred=void 0,n.resolve(t)}}function Dye(e){return function(t){e.state!==Do.CANCELLED&&(++wi.numberOfFailedRequests,--wi.numberOfActiveRequests,--Pf[e.serverKey],sD.raiseEvent(t),e.state=Do.FAILED,e.deferred.reject(t))}}function Qj(e){const t=Jj(e);return e.state=Do.ACTIVE,Ju.push(e),++wi.numberOfActiveRequests,++wi.numberOfActiveRequestsEver,++Pf[e.serverKey],e.requestFunction().then(vye(e)).catch(Dye(e)),t}function d_(e){const t=e.state===Do.ACTIVE;if(e.state=Do.CANCELLED,++wi.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--wi.numberOfActiveRequests,--Pf[e.serverKey],++wi.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}bi.update=function(){let e,t,n=0;const i=Ju.length;for(e=0;e0&&(Ju[e-n]=t)}Ju.length-=n;const o=Zs.internalArray,r=Zs.length;for(e=0;e0;){if(t=Zs.pop(),t.cancelled){d_(t);continue}if(t.throttleByServer&&!bi.serverHasOpenSlots(t.serverKey)){d_(t);continue}Qj(t),++a}Iye()};bi.getServerKey=function(e){T.typeOf.string("url",e);let t=new Rs(e);t.scheme()===""&&(t=new Rs(e).absoluteTo(Sye),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=Pf[n];return l(i)||(Pf[n]=0),n};bi.request=function(e){if(T.typeOf.object("request",e),T.typeOf.string("request.url",e.url),T.typeOf.func("request.requestFunction",e.requestFunction),aM(e.url)||Yj(e.url))return sD.raiseEvent(),e.state=Do.RECEIVED,e.requestFunction();if(++wi.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=bi.getServerKey(e.url)),bi.throttleRequests&&e.throttleByServer&&!bi.serverHasOpenSlots(e.serverKey))return;if(!bi.throttleRequests||!e.throttle)return Qj(e);if(Ju.length>=bi.maximumRequests)return;Kj(e);const t=Zs.insert(e);if(l(t)){if(t===e)return;d_(t)}return Jj(e)};function Iye(){bi.debugShowStatistics&&(wi.numberOfActiveRequests===0&&wi.lastNumberOfActiveRequests>0&&(wi.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${wi.numberOfAttemptedRequests}`),wi.numberOfAttemptedRequests=0),wi.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${wi.numberOfCancelledRequests}`),wi.numberOfCancelledRequests=0),wi.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${wi.numberOfCancelledActiveRequests}`),wi.numberOfCancelledActiveRequests=0),wi.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${wi.numberOfFailedRequests}`),wi.numberOfFailedRequests=0)),wi.lastNumberOfActiveRequests=wi.numberOfActiveRequests)}bi.clearForSpecs=function(){for(;Zs.length>0;){const t=Zs.pop();d_(t)}const e=Ju.length;for(let t=0;t0}}});Me.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Me.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new Rs(this._url);e&&Oye(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Me.prototype.setQueryParameters=function(e,t){t?this._queryParameters=kS(this._queryParameters,e,!1):this._queryParameters=kS(e,this._queryParameters,!1)};Me.prototype.appendQueryParameters=function(e){this._queryParameters=kS(e,this._queryParameters,!0)};Me.prototype.setTemplateValues=function(e,t){t?this._templateValues=hn(this._templateValues,e):this._templateValues=hn(e,this._templateValues)};Me.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new Rs(e.url),i=A(e.preserveQueryParameters,!1);lM(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new Rs(dT(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=hn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=hn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=hn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Me.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Me.prototype.clone=function(e){return l(e)||(e=new Me({url:this._url})),e._url=this._url,e._queryParameters=ht(this._queryParameters),e._templateValues=ht(this._templateValues),e.headers=ht(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Me.prototype.getBaseUri=function(e){return pye(this.getUrlComponent(e),e)};Me.prototype.appendForwardSlash=function(){this._url=hye(this._url)};Me.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Me.fetchArrayBuffer=function(e){return new Me(e).fetchArrayBuffer()};Me.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Me.fetchBlob=function(e){return new Me(e).fetchBlob()};Me.prototype.fetchImage=function(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.preferImageBitmap,!1),n=A(e.preferBlob,!1),i=A(e.flipY,!1),o=A(e.skipColorSpaceConversion,!1);if(uM(this.request),!eq||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return aB({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Me.supportsImageBitmapOptions().then(function(d){return s=d,a=s&&t,r}).then(function(d){if(!l(d))return;if(u=d,a)return Me.createImageBitmapFromBlob(d,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(d);return c=new Me({url:h}),aB({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(d){if(l(d))return d.blob=u,a||window.URL.revokeObjectURL(c.url),d}).catch(function(d){return l(c)&&window.URL.revokeObjectURL(c.url),d.blob=u,Promise.reject(d)})};function aB(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=Xp();return Me._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=bi.request(r);if(l(s))return s.catch(function(a){return r.state!==Do.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=Do.UNISSUED,r.deferred=void 0,aB({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Me.fetchImage=function(e){return new Me(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Me.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Me.fetchText=function(e){return new Me(e).fetchText()};Me.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Me.fetchJson=function(e){return new Me(e).fetchJson()};Me.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Me.fetchXML=function(e){return new Me(e).fetchXML()};Me.prototype.fetchJsonp=function(e){e=A(e,"callback"),uM(this.request);let t;do t=`loadJsonp${M.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return tq(this,e,t)};function tq(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=Xp();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Me._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=bi.request(o);if(l(r))return r.catch(function(s){return o.state!==Do.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=Do.UNISSUED,o.deferred=void 0,tq(e,t,n)):Promise.reject(s)})})}Me.fetchJsonp=function(e){return new Me(e).fetchJsonp(e.callbackParameterName)};Me.prototype._makeRequest=function(e){const t=this;uM(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=hn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=Xp(),d=Me._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(d)&&l(d.abort)&&(n.cancelFunction=function(){d.abort()}),u.promise};const i=bi.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==Do.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=Do.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const Lye=/^data:(.*?)(;base64)?,(.*)$/;function Lw(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function _U(e,t){const n=Lw(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),NE(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,d])=>(a=u.parse(e),c=d,a.protocol==="https:"?NE(()=>import("./__vite-browser-external-b25bb000.js"),[]):NE(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const d={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(d).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new c0(h.statusCode,h,h.headers));return}const m=[];h.on("data",function(g){m.push(g)}),h.on("end",function(){const g=Buffer.concat(m);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,y){p?r.reject(new Ie("Error decompressing response.")):r.resolve(gU(y,t))}):r.resolve(gU(g,t))})}).on("error",function(h){r.reject(new c0)}).end()})}const Nye=typeof XMLHttpRequest>"u";Me._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=Lye.exec(e);if(a!==null){r.resolve(Bye(a,t));return}if(Nye){Rye(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(Zj.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const d in o)o.hasOwnProperty(d)&&c.setRequestHeader(d,o[d]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new c0(c.status,c.response,c.getAllResponseHeaders()));return}const d=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(y){const b=y.split(": "),C=b.shift();p[C]=b.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(d)&&(!l(t)||h===t))r.resolve(d);else if(t==="json"&&typeof d=="string")try{r.resolve(JSON.parse(d))}catch(m){r.reject(m)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Ie("Invalid XMLHttpRequest response type."))},c.onerror=function(d){r.reject(new c0)},c.send(i),c};Me._Implementations.loadAndExecuteScript=function(e,t,n){return yye(e).catch(function(i){n.reject(i)})};Me._DefaultImplementations={};Me._DefaultImplementations.createImage=Me._Implementations.createImage;Me._DefaultImplementations.loadWithXhr=Me._Implementations.loadWithXhr;Me._DefaultImplementations.loadAndExecuteScript=Me._Implementations.loadAndExecuteScript;Me.DEFAULT=Object.freeze(new Me({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function AC(e){e=A(e,A.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=A(e.addNewLeapSeconds,!0),l(e.data)?yU(this,e.data):yU(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}AC.fromUrl=async function(e,t){T.defined("url",e),t=A(t,A.EMPTY_OBJECT);const n=Me.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Ie(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new AC({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};AC.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new iM(0,0,0,0,0),t}});AC.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new iM(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ie.lessThanOrEquals(a,e),d=!l(c),h=d||ie.greaterThanOrEquals(c,e);if(u&&h)return o=i,!d&&c.equals(e)&&++o,r=o+1,bU(this,n,this._samples,e,o,r,t),t}let s=Bs(n,e,ie.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return AU(e,n,o,a,s),s;if(i.equals(u))return AU(e,n,r,a,s),s;const d=ie.secondsDifference(i,c)/ie.secondsDifference(u,c),h=o*a,m=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[m+e._ut1MinusUtcSecondsColumn];const y=p-g;if(y>.5||y<-.5){const b=n[h+e._taiMinusUtcSecondsColumn],C=n[m+e._taiMinusUtcSecondsColumn];b!==C&&(u.equals(i)?g=p:p-=C-b)}return s.xPoleWander=cA(d,n[h+e._xPoleWanderRadiansColumn],n[m+e._xPoleWanderRadiansColumn]),s.yPoleWander=cA(d,n[h+e._yPoleWanderRadiansColumn],n[m+e._yPoleWanderRadiansColumn]),s.xPoleOffset=cA(d,n[h+e._xCelestialPoleOffsetRadiansColumn],n[m+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=cA(d,n[h+e._yCelestialPoleOffsetRadiansColumn],n[m+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=cA(d,g,p),s}function Xr(e,t,n){this.heading=A(e,0),this.pitch=A(t,0),this.roll=A(n,0)}Xr.fromQuaternion=function(e,t){if(!l(e))throw new x("quaternion is required");l(t)||(t=new Xr);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-M.asinClamped(n),t};Xr.fromDegrees=function(e,t,n,i){if(!l(e))throw new x("heading is required");if(!l(t))throw new x("pitch is required");if(!l(n))throw new x("roll is required");return l(i)||(i=new Xr),i.heading=e*M.RADIANS_PER_DEGREE,i.pitch=t*M.RADIANS_PER_DEGREE,i.roll=n*M.RADIANS_PER_DEGREE,i};Xr.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Xr(e.heading,e.pitch,e.roll)};Xr.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Xr.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&M.equalsEpsilon(e.heading,t.heading,n,i)&&M.equalsEpsilon(e.pitch,t.pitch,n,i)&&M.equalsEpsilon(e.roll,t.roll,n,i)};Xr.prototype.clone=function(e){return Xr.clone(this,e)};Xr.prototype.equals=function(e){return Xr.equals(this,e)};Xr.prototype.equalsEpsilon=function(e,t,n){return Xr.equalsEpsilon(this,e,t,n)};Xr.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const nq=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function Fye(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(vg)||(vg=document.createElement("a")),vg.href=e,vg.href=vg.href,vg.href)}let qm;function oq(){if(l(qm))return qm;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=dT("..",An("Core/buildModuleUrl.js")):e=Fye(),!l(e))throw new x("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return qm=new Me({url:iq(e)}),qm.appendForwardSlash(),qm}function zye(e){return iq(require.toUrl(`../${e}`))}function rq(e){return oq().getDerivedResource({url:e}).url}let ME;function An(e){return l(ME)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?ME=zye:ME=rq),ME(e)}An._cesiumScriptRegex=nq;An._buildModuleUrlFromBaseUrl=rq;An._clearBaseResource=function(){qm=void 0};An.setBaseUrl=function(e){qm=Me.DEFAULT.getDerivedResource({url:e})};An.getCesiumBaseUrl=oq;function sq(e,t,n){this.x=e,this.y=t,this.s=n}function dM(e){e=A(e,A.EMPTY_OBJECT),this._xysFileUrlTemplate=Me.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=A(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=A(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ie(this._sampleZeroJulianEphemerisDate,0,$n.TAI),this._stepSizeDays=A(e.stepSizeDays,1),this._samplesPerXysFile=A(e.samplesPerXysFile,1e3),this._totalSamples=A(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Uye=new ie(0,0,$n.TAI);function cB(e,t,n){const i=Uye;return i.dayNumber=t,i.secondsOfDay=n,ie.daysDifference(i,e._sampleZeroDateTT)}dM.prototype.preload=function(e,t,n,i){const o=cB(this,e,t),r=cB(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,d=[];for(let h=c;h<=u;++h)d.push(lB(this,h));return Promise.all(d)};dM.prototype.computeXysRadians=function(e,t,n){const i=cB(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(lB(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(lB(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new sq(0,0,0);const d=i-s*this._stepSizeDays,h=this._work,m=this._denominators,g=this._coef,p=this._xTable;let y,b;for(y=0;y<=r;++y)h[y]=d-p[y];for(y=0;y<=r;++y){for(g[y]=1,b=0;b<=r;++b)b!==y&&(g[y]*=h[b]);g[y]*=m[y];let C=(s+y)*3;n.x+=g[y]*u[C++],n.y+=g[y]*u[C++],n.s+=g[y]*u[C]}return n};function lB(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Me({url:An(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,d=a.length;u=43200?o=(r+.5)/Ni.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/Ni.DAYS_PER_JULIAN_CENTURY;const a=(Kye+o*(Jye+o*(Qye+o*Zye)))*n0e%M.TWO_PI,c=t0e+e0e*(n-24515455e-1),u=(i+Ni.SECONDS_PER_DAY*.5)%Ni.SECONDS_PER_DAY,d=a+c*u,h=Math.cos(d),m=Math.sin(d);return l(t)?(t[0]=h,t[1]=-m,t[2]=0,t[3]=m,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,m,0,-m,h,0,0,0,1)};Ti.iau2006XysData=new dM;Ti.earthOrientationParameters=AC.NONE;const uB=32.184,i0e=2451545;Ti.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+uB,i=e.stop.dayNumber,o=e.stop.secondsOfDay+uB;return Ti.iau2006XysData.preload(t,n,i,o)};Ti.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const o0e=new sq(0,0,0),r0e=new iM(0,0,0,0,0),d1=new J,f1=new J;Ti.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=Ti.earthOrientationParameters.compute(e,r0e);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+uB,r=Ti.iau2006XysData.computeXysRadians(i,o,o0e);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=d1;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const d=J.fromRotationZ(-r.s,f1),h=J.multiply(u,d,d1),m=e.dayNumber,g=e.secondsOfDay-ie.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=m-2451545,y=g/Ni.SECONDS_PER_DAY;let b=.779057273264+y+.00273781191135448*(p+y);b=b%1*M.TWO_PI;const C=J.fromRotationZ(b,f1),E=J.multiply(h,C,d1),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),L=Math.sin(n.yPoleWander);let z=i-i0e+o/Ni.SECONDS_PER_DAY;z/=36525;const R=-47e-6*z*M.RADIANS_PER_DEGREE/3600,F=Math.cos(R),U=Math.sin(R),D=f1;return D[0]=w*F,D[1]=w*U,D[2]=P,D[3]=-S*U+L*P*F,D[4]=S*F+L*P*U,D[5]=-L*w,D[6]=-L*U-S*P*F,D[7]=L*F-S*P*U,D[8]=S*w,J.multiply(E,D,t)};const s0e=new oe;Ti.pointToWindowCoordinates=function(e,t,n,i){return i=Ti.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};Ti.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new x("modelViewProjectionMatrix is required.");if(!l(t))throw new x("viewportTransformation is required.");if(!l(n))throw new x("point is required.");l(i)||(i=new j);const o=s0e;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const a0e=new f,c0e=new f,l0e=new f;Ti.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("velocity is required.");const o=A(n,me.WGS84).geodeticSurfaceNormal(e,a0e);let r=f.cross(t,o,c0e);f.equalsEpsilon(r,f.ZERO,M.EPSILON6)&&(r=f.clone(f.UNIT_X,r));const s=f.cross(r,t,l0e);return f.normalize(s,s),f.cross(t,s,r),f.negate(r,r),f.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const aq=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),cq=new Ce,lq=new f,u0e=new f,d0e=new J,dB=new B,uq=new B;Ti.basisTo2D=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("matrix is required.");if(!l(n))throw new x("result is required.");const i=B.getTranslation(t,u0e),o=e.ellipsoid,r=o.cartesianToCartographic(i,cq),s=e.project(r,lq);f.fromElements(s.z,s.x,s.y,s);const a=Ti.eastNorthUpToFixedFrame(i,o,dB),c=B.inverseTransformation(a,uq),u=B.getMatrix3(t,d0e),d=B.multiplyByMatrix3(c,u,n);return B.multiply(aq,d,n),B.setTranslation(n,s,n),n};Ti.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("center is required.");if(!l(n))throw new x("result is required.");const i=e.ellipsoid,o=Ti.eastNorthUpToFixedFrame(t,i,dB),r=B.inverseTransformation(o,uq),s=i.cartesianToCartographic(t,cq),a=e.project(s,lq);f.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,dB);return B.multiply(aq,r,n),B.multiply(c,n,n),n};const cn=Ti;function Lt(e){e=A(e,A.EMPTY_OBJECT),T.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=A(e.primitiveType,Ze.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=A(e.geometryType,Cy.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}Lt.computeNumberOfVertices=function(e){T.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new x("All attribute lists must have the same number of attributes.");t=o}return t};const f0e=new Ce,h0e=new f,TU=new B,p0e=[new Ce,new Ce,new Ce],m0e=[new j,new j,new j],_0e=[new j,new j,new j],g0e=new f,y0e=new Te,A0e=new B,b0e=new dt;Lt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=ge.center(i,f0e),s=Ce.toCartesian(r,n,h0e),a=cn.eastNorthUpToFixedFrame(s,n,TU),c=B.inverse(a,TU),u=m0e,d=p0e;d[0].longitude=i.west,d[0].latitude=i.south,d[1].longitude=i.west,d[1].latitude=i.north,d[2].longitude=i.east,d[2].latitude=i.south;let h=g0e;for(o=0;o<3;o++)Ce.toCartesian(d[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const m=Te.fromAxisAngle(f.UNIT_Z,-t,y0e),g=J.fromQuaternion(m,A0e),p=e.length;let y=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY,C=Number.NEGATIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new x("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new x("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=A(e.normalize,!1),this.values=e.values}function u0(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(u0.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});u0.clone=function(e){if(l(e))return new u0(e._format,e._datatype,e._width,e._height,e._buffer)};u0.prototype.clone=function(){return u0.clone(this)};function dq(){if(!l(Vi._canTransferArrayBuffer)){const e=new Worker(hq("Workers/transferTypedArrayTest.js"));e.postMessage=A(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return Vi._canTransferArrayBuffer=!1,Vi._canTransferArrayBuffer}const i=Xp();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),Vi._canTransferArrayBuffer=s},Vi._canTransferArrayBuffer=i.promise}return Vi._canTransferArrayBuffer}const fB=new Ke;function fq(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Ie(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new x(t.error.message),r.stack=t.error.stack),fB.raiseEvent(r),o.reject(r)}else fB.raiseEvent(),o.resolve(t.result);delete i[n]}function hq(e){let t=An(e);if(Xj(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let h1;function C0e(){return l(h1)||(h1=hq("Workers/cesiumWorkerBootstrapper.js")),h1}function pq(e){const t=new Worker(C0e());t.postMessage=A(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:An("Workers")},baseUrl:An.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){fq(e,i.data)},t}function T0e(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!gn.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Ie(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=An(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=An(t.modulePath),n.wasmBinaryFile=An(t.wasmBinaryFile),Me.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function Vi(e,t){const n=new Rs(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:Vi._workerModulePrefix+e,this._maximumActiveTasks=A(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const E0e=[];Vi.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=pq(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(dq()).then(function(i){l(t)?i||(t.length=0):t=E0e;const o=n._nextID++,r=Xp();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};Vi.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=pq(this));const t=Xp(),n=this,i=this._worker;return T0e(this,e).then(function(o){return Promise.resolve(dq()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){fq(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};Vi.prototype.isDestroyed=function(){return!1};Vi.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),He(this)};Vi.taskCompletedEvent=fB;Vi._defaultWorkerModulePrefix="Workers/";Vi._workerModulePrefix=Vi._defaultWorkerModulePrefix;Vi._canTransferArrayBuffer=void 0;function pf(){}pf._transcodeTaskProcessor=new Vi("transcodeKTX2",Number.POSITIVE_INFINITY);pf._readyPromise=void 0;function x0e(){const e=pf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return pf._transcodeTaskProcessor});pf._readyPromise=e}pf.transcode=function(e,t){return T.defined("supportedTargetFormats",t),l(pf._readyPromise)||x0e(),pf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new x("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new x("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._size,h=this._pixelFormat,m=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,y=this._flipY,b=A(e.skipColorSpaceConversion,!1);let C=4;l(u)&&(C=rt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,C),b?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let E=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===d)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,d,d)),o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texImage2D(s,0,m,h,Qe.toWebGLConstant(g,this._context),i)),E=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=rt.createTypedArray(h,g,d,d);o.texImage2D(s,0,m,d,d,0,h,Qe.toWebGLConstant(g,this._context),w)}this._initialized=!0}E||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=rt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Qe.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texSubImage2D(s,0,t,n,h,Qe.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Zd.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._size),r=A(r,this._size),T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new x("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new x("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const Bw={DONT_CARE:ae.DONT_CARE,FASTEST:ae.FASTEST,NICEST:ae.NICEST,validate:function(e){return e===Bw.DONT_CARE||e===Bw.FASTEST||e===Bw.NICEST}},d0=Object.freeze(Bw),Rw={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR};Rw.validate=function(e){return e===Rw.NEAREST||e===Rw.LINEAR};const Kr=Object.freeze(Rw),Uh={NEAREST:ae.NEAREST,LINEAR:ae.LINEAR,NEAREST_MIPMAP_NEAREST:ae.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:ae.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:ae.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:ae.LINEAR_MIPMAP_LINEAR};Uh.validate=function(e){return e===Uh.NEAREST||e===Uh.LINEAR||e===Uh.NEAREST_MIPMAP_NEAREST||e===Uh.LINEAR_MIPMAP_NEAREST||e===Uh.NEAREST_MIPMAP_LINEAR||e===Uh.LINEAR_MIPMAP_LINEAR};const In=Object.freeze(Uh),Nw={CLAMP_TO_EDGE:ae.CLAMP_TO_EDGE,REPEAT:ae.REPEAT,MIRRORED_REPEAT:ae.MIRRORED_REPEAT,validate:function(e){return e===Nw.CLAMP_TO_EDGE||e===Nw.REPEAT||e===Nw.MIRRORED_REPEAT}},Fi=Object.freeze(Nw);function ii(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.wrapS,Fi.CLAMP_TO_EDGE),n=A(e.wrapT,Fi.CLAMP_TO_EDGE),i=A(e.minificationFilter,In.LINEAR),o=A(e.magnificationFilter,Kr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Fi.validate(t))throw new x("Invalid sampler.wrapS.");if(!Fi.validate(n))throw new x("Invalid sampler.wrapT.");if(!In.validate(i))throw new x("Invalid sampler.minificationFilter.");if(!Kr.validate(o))throw new x("Invalid sampler.magnificationFilter.");T.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(ii.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});ii.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};ii.NEAREST=Object.freeze(new ii({wrapS:Fi.CLAMP_TO_EDGE,wrapT:Fi.CLAMP_TO_EDGE,minificationFilter:In.NEAREST,magnificationFilter:Kr.NEAREST}));function bu(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const E=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!E[0]||!E[1]||!E[2]||!E[3]||!E[4]||!E[5])throw new x("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=E[0].width,o=E[0].height;for(let w=1;w<6;++w)if(Number(E[w].width)!==i||Number(E[w].height)!==o)throw new x("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=A(e.pixelDatatype,Qe.UNSIGNED_BYTE),a=A(e.pixelFormat,rt.RGBA),c=rt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new x("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new x("Width must equal height.");if(r<=0)throw new x("Width and height must be greater than zero.");if(r>It.maximumCubeMapSize)throw new x(`Width and height must be less than or equal to the maximum cube map size (${It.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!rt.validate(a))throw new x("Invalid options.pixelFormat.");if(rt.isDepthFormat(a))throw new x("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=rt.textureSizeInBytes(a,s,r,r)*6,d=e.preMultiplyAlpha||a===rt.RGB||a===rt.LUMINANCE,h=A(e.flipY,!0),m=A(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);function b(E,w,S,P,L){let z=w.arrayBufferView;l(z)||(z=w.bufferView);let R=4;l(z)&&(R=rt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),L?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(z)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(z=rt.flipY(z,a,s,r,r)),g.texImage2D(E,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),z)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(E,0,c,a,Qe.toWebGLConstant(s,t),w))}l(n)?(b(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,d,h,m),b(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,d,h,m),b(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,d,h,m)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Qe.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=y,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=d,this._flipY=h,this._sampler=void 0;const C=l(n);this._positiveX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,d,h,C),this._negativeX=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,d,h,C),this._positiveY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,d,h,C),this._negativeY=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,d,h,C),this._positiveZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,d,h,C),this._negativeZ=new Zd(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,d,h,C),this.sampler=l(e.sampler)?e.sampler:new ii}Object.defineProperties(bu.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Qe.FLOAT&&!o.textureFloatLinear||r===Qe.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});bu.prototype.generateMipmap=function(e){if(e=A(e,d0.DONT_CARE),this._size>1&&!M.isPowerOfTwo(this._size))throw new x("width and height must be a power of two to call generateMipmap().");if(!d0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};bu.prototype.isDestroyed=function(){return!1};bu.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=He(this._positiveX),this._negativeX=He(this._negativeX),this._positiveY=He(this._positiveY),this._negativeY=He(this._negativeY),this._positiveZ=He(this._positiveZ),this._negativeZ=He(this._negativeZ),He(this)};function J_(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function w0e(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` -`);if(/#version 300 es/g.test(e))return e;let o=-1,r,s;for(r=0;r=0;S--)i.splice(C,0,`#endif //${E[S]}`)}const h="WEBGL_2",m=`#define ${h}`,g="#version 300 es";let p=!1;for(r=0;r=0}):n[h]=o.slice())}}return n}function p1(e,t,n){const i=`#extension\\s+GL_${e}\\s+:\\s+[a-zA-Z0-9]+\\s*$`;S0e(new RegExp(i,"g"),"",n),Vu(`GL_${e}`,t,n)}const P0e=`/** + */(function(e){(function(t,n){e.exports?e.exports=n(Qhe(),epe(),npe()):t.URI=n(t.punycode,t.IPv6,t.SecondLevelDomains,t)})(oy,function(t,n,i,o){var r=o&&o.URI;function s(m,D){var L=arguments.length>=1,M=arguments.length>=2;if(!(this instanceof s))return L?M?new s(m,D):new s(m):new s;if(m===void 0){if(L)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?m=location.href+"":m=""}if(m===null&&L)throw new TypeError("null is not a valid argument for URI");return this.href(m),D!==void 0?this.absoluteTo(D):this}function a(m){return/^[0-9]+$/.test(m)}s.version="1.19.11";var c=s.prototype,u=Object.prototype.hasOwnProperty;function f(m){return m.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function h(m){return m===void 0?"Undefined":String(Object.prototype.toString.call(m)).slice(8,-1)}function _(m){return h(m)==="Array"}function g(m,D){var L={},M,V;if(h(D)==="RegExp")L=null;else if(_(D))for(M=0,V=D.length;M]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(m){if(!(!m||!m.nodeName)){var D=m.nodeName.toLowerCase();if(!(D==="input"&&m.type!=="image"))return s.domAttributes[D]}};function T(m){return escape(m)}function E(m){return encodeURIComponent(m).replace(/[!'()*]/g,T).replace(/\*/g,"%2A")}s.encode=E,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=E,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(m,D){var L=s.encode(m+"");return D===void 0&&(D=s.escapeQuerySpace),D?L.replace(/%20/g,"+"):L},s.decodeQuery=function(m,D){m+="",D===void 0&&(D=s.escapeQuerySpace);try{return s.decode(D?m.replace(/\+/g,"%20"):m)}catch{return m}};var w={encode:"encode",decode:"decode"},S,P=function(m,D){return function(L){try{return s[D](L+"").replace(s.characters[m][D].expression,function(M){return s.characters[m][D].map[M]})}catch{return L}}};for(S in w)s[S+"PathSegment"]=P("pathname",w[S]),s[S+"UrnPathSegment"]=P("urnpath",w[S]);var O=function(m,D,L){return function(M){var V;L?V=function(K){return s[D](s[L](K))}:V=s[D];for(var k=(M+"").split(m),W=0,G=k.length;W-1&&(D.fragment=m.substring(L+1)||null,m=m.substring(0,L)),L=m.indexOf("?"),L>-1&&(D.query=m.substring(L+1)||null,m=m.substring(0,L)),m=m.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),m=m.replace(/^[/\\]{2,}/i,"//"),m.substring(0,2)==="//"?(D.protocol=null,m=m.substring(2),m=s.parseAuthority(m,D)):(L=m.indexOf(":"),L>-1&&(D.protocol=m.substring(0,L)||null,D.protocol&&!D.protocol.match(s.protocol_expression)?D.protocol=void 0:m.substring(L+1,L+3).replace(/\\/g,"/")==="//"?(m=m.substring(L+3),m=s.parseAuthority(m,D)):(m=m.substring(L+1),D.urn=!0))),D.path=m,D},s.parseHost=function(m,D){m||(m=""),m=m.replace(/\\/g,"/");var L=m.indexOf("/"),M,V;if(L===-1&&(L=m.length),m.charAt(0)==="[")M=m.indexOf("]"),D.hostname=m.substring(1,M)||null,D.port=m.substring(M+2,L)||null,D.port==="/"&&(D.port=null);else{var k=m.indexOf(":"),W=m.indexOf("/"),G=m.indexOf(":",k+1);G!==-1&&(W===-1||G-1?V:m.length-1),W;return k>-1&&(V===-1||k-1?X=X.slice(0,Y)+X.slice(Y).replace(k,""):X=X.replace(k,""),!(X.length<=K[0].length)&&!(L.ignore&&L.ignore.test(X))){$=q+X.length;var re=D(X,q,$,m);if(re===void 0){M.lastIndex=$;continue}re=String(re),m=m.slice(0,q)+re+m.slice($),M.lastIndex=q+re.length}}return M.lastIndex=0,m},s.ensureValidHostname=function(m,D){var L=!!m,M=!!D,V=!1;if(M&&(V=p(s.hostProtocols,D)),V&&!L)throw new TypeError("Hostname cannot be empty, if protocol is "+D);if(m&&m.match(s.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(m).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(m){if(m){var D=Number(m);if(!(a(D)&&D>0&&D<65536))throw new TypeError('Port "'+m+'" is not a valid port')}},s.noConflict=function(m){if(m){var D={URI:this.noConflict()};return o.URITemplate&&typeof o.URITemplate.noConflict=="function"&&(D.URITemplate=o.URITemplate.noConflict()),o.IPv6&&typeof o.IPv6.noConflict=="function"&&(D.IPv6=o.IPv6.noConflict()),o.SecondLevelDomains&&typeof o.SecondLevelDomains.noConflict=="function"&&(D.SecondLevelDomains=o.SecondLevelDomains.noConflict()),D}else o.URI===this&&(o.URI=r);return this},c.build=function(m){return m===!0?this._deferred_build=!0:(m===void 0||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},c.clone=function(){return new s(this)},c.valueOf=c.toString=function(){return this.build(!1)._string};function z(m){return function(D,L){return D===void 0?this._parts[m]||"":(this._parts[m]=D||null,this.build(!L),this)}}function R(m,D){return function(L,M){return L===void 0?this._parts[m]||"":(L!==null&&(L=L+"",L.charAt(0)===D&&(L=L.substring(1))),this._parts[m]=L,this.build(!M),this)}}c.protocol=z("protocol"),c.username=z("username"),c.password=z("password"),c.hostname=z("hostname"),c.port=z("port"),c.query=R("query","?"),c.fragment=R("fragment","#"),c.search=function(m,D){var L=this.query(m,D);return typeof L=="string"&&L.length?"?"+L:L},c.hash=function(m,D){var L=this.fragment(m,D);return typeof L=="string"&&L.length?"#"+L:L},c.pathname=function(m,D){if(m===void 0||m===!0){var L=this._parts.path||(this._parts.hostname?"/":"");return m?(this._parts.urn?s.decodeUrnPath:s.decodePath)(L):L}else return this._parts.urn?this._parts.path=m?s.recodeUrnPath(m):"":this._parts.path=m?s.recodePath(m):"/",this.build(!D),this},c.path=c.pathname,c.href=function(m,D){var L;if(m===void 0)return this.toString();this._string="",this._parts=s._parts();var M=m instanceof s,V=typeof m=="object"&&(m.hostname||m.path||m.pathname);if(m.nodeName){var k=s.getDomAttribute(m);m=m[k]||"",V=!1}if(!M&&V&&m.pathname!==void 0&&(m=m.toString()),typeof m=="string"||m instanceof String)this._parts=s.parse(String(m),this._parts);else if(M||V){var W=M?m._parts:m;for(L in W)L!=="query"&&u.call(this._parts,L)&&(this._parts[L]=W[L]);W.query&&this.query(W.query,!1)}else throw new TypeError("invalid input");return this.build(!D),this},c.is=function(m){var D=!1,L=!1,M=!1,V=!1,k=!1,W=!1,G=!1,K=!this._parts.urn;switch(this._parts.hostname&&(K=!1,L=s.ip4_expression.test(this._parts.hostname),M=s.ip6_expression.test(this._parts.hostname),D=L||M,V=!D,k=V&&i&&i.has(this._parts.hostname),W=V&&s.idn_expression.test(this._parts.hostname),G=V&&s.punycode_expression.test(this._parts.hostname)),m.toLowerCase()){case"relative":return K;case"absolute":return!K;case"domain":case"name":return V;case"sld":return k;case"ip":return D;case"ip4":case"ipv4":case"inet4":return L;case"ip6":case"ipv6":case"inet6":return M;case"idn":return W;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return G}return null};var F=c.protocol,H=c.port,v=c.hostname;c.protocol=function(m,D){if(m&&(m=m.replace(/:(\/\/)?$/,""),!m.match(s.protocol_expression)))throw new TypeError('Protocol "'+m+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return F.call(this,m,D)},c.scheme=c.protocol,c.port=function(m,D){return this._parts.urn?m===void 0?"":this:(m!==void 0&&(m===0&&(m=null),m&&(m+="",m.charAt(0)===":"&&(m=m.substring(1)),s.ensureValidPort(m))),H.call(this,m,D))},c.hostname=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m!==void 0){var L={preventInvalidHostname:this._parts.preventInvalidHostname},M=s.parseHost(m,L);if(M!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');m=L.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(m,this._parts.protocol)}return v.call(this,m,D)},c.origin=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){var L=this.protocol(),M=this.authority();return M?(L?L+"://":"")+this.authority():""}else{var V=s(m);return this.protocol(V.protocol()).authority(V.authority()).build(!D),this}},c.host=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0)return this._parts.hostname?s.buildHost(this._parts):"";var L=s.parseHost(m,this._parts);if(L!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.authority=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0)return this._parts.hostname?s.buildAuthority(this._parts):"";var L=s.parseAuthority(m,this._parts);if(L!=="/")throw new TypeError('Hostname "'+m+'" contains characters other than [A-Z0-9.-]');return this.build(!D),this},c.userinfo=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){var L=s.buildUserinfo(this._parts);return L&&L.substring(0,L.length-1)}else return m[m.length-1]!=="@"&&(m+="@"),s.parseUserinfo(m,this._parts),this.build(!D),this},c.resource=function(m,D){var L;return m===void 0?this.path()+this.search()+this.hash():(L=s.parse(m),this._parts.path=L.path,this._parts.query=L.query,this._parts.fragment=L.fragment,this.build(!D),this)},c.subdomain=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var L=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,L)||""}else{var M=this._parts.hostname.length-this.domain().length,V=this._parts.hostname.substring(0,M),k=new RegExp("^"+f(V));if(m&&m.charAt(m.length-1)!=="."&&(m+="."),m.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return m&&s.ensureValidHostname(m,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(k,m),this.build(!D),this}},c.domain=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m=="boolean"&&(D=m,m=void 0),m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var L=this._parts.hostname.match(/\./g);if(L&&L.length<2)return this._parts.hostname;var M=this._parts.hostname.length-this.tld(D).length-1;return M=this._parts.hostname.lastIndexOf(".",M-1)+1,this._parts.hostname.substring(M)||""}else{if(!m)throw new TypeError("cannot set domain empty");if(m.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(m,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=m;else{var V=new RegExp(f(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(V,m)}return this.build(!D),this}},c.tld=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m=="boolean"&&(D=m,m=void 0),m===void 0){if(!this._parts.hostname||this.is("IP"))return"";var L=this._parts.hostname.lastIndexOf("."),M=this._parts.hostname.substring(L+1);return D!==!0&&i&&i.list[M.toLowerCase()]&&i.get(this._parts.hostname)||M}else{var V;if(m)if(m.match(/[^a-zA-Z0-9-]/))if(i&&i.is(m))V=new RegExp(f(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,m);else throw new TypeError('TLD "'+m+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");V=new RegExp(f(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(V,m)}else throw new TypeError("cannot set TLD empty");return this.build(!D),this}},c.directory=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0||m===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var L=this._parts.path.length-this.filename().length-1,M=this._parts.path.substring(0,L)||(this._parts.hostname?"/":"");return m?s.decodePath(M):M}else{var V=this._parts.path.length-this.filename().length,k=this._parts.path.substring(0,V),W=new RegExp("^"+f(k));return this.is("relative")||(m||(m="/"),m.charAt(0)!=="/"&&(m="/"+m)),m&&m.charAt(m.length-1)!=="/"&&(m+="/"),m=s.recodePath(m),this._parts.path=this._parts.path.replace(W,m),this.build(!D),this}},c.filename=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(typeof m!="string"){if(!this._parts.path||this._parts.path==="/")return"";var L=this._parts.path.lastIndexOf("/"),M=this._parts.path.substring(L+1);return m?s.decodePathSegment(M):M}else{var V=!1;m.charAt(0)==="/"&&(m=m.substring(1)),m.match(/\.?\//)&&(V=!0);var k=new RegExp(f(this.filename())+"$");return m=s.recodePath(m),this._parts.path=this._parts.path.replace(k,m),V?this.normalizePath(D):this.build(!D),this}},c.suffix=function(m,D){if(this._parts.urn)return m===void 0?"":this;if(m===void 0||m===!0){if(!this._parts.path||this._parts.path==="/")return"";var L=this.filename(),M=L.lastIndexOf("."),V,k;return M===-1?"":(V=L.substring(M+1),k=/^[a-z0-9%]+$/i.test(V)?V:"",m?s.decodePathSegment(k):k)}else{m.charAt(0)==="."&&(m=m.substring(1));var W=this.suffix(),G;if(W)m?G=new RegExp(f(W)+"$"):G=new RegExp(f("."+W)+"$");else{if(!m)return this;this._parts.path+="."+s.recodePath(m)}return G&&(m=s.recodePath(m),this._parts.path=this._parts.path.replace(G,m)),this.build(!D),this}},c.segment=function(m,D,L){var M=this._parts.urn?":":"/",V=this.path(),k=V.substring(0,1)==="/",W=V.split(M);if(m!==void 0&&typeof m!="number"&&(L=D,D=m,m=void 0),m!==void 0&&typeof m!="number")throw new Error('Bad segment "'+m+'", must be 0-based integer');if(k&&W.shift(),m<0&&(m=Math.max(W.length+m,0)),D===void 0)return m===void 0?W:W[m];if(m===null||W[m]===void 0)if(_(D)){W=[];for(var G=0,K=D.length;G"u")return e;t=A(n.baseURI,n.location.href)}const i=new Ts(e);return i.scheme()!==""?i.toString():i.absoluteTo(t).toString()};function ope(e,t){if(!l(e))throw new x("uri is required.");let n="";const i=e.lastIndexOf("/");return i!==-1&&(n=e.substring(0,i+1)),t&&(e=new Ts(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}function rpe(e){if(!l(e))throw new x("uri is required.");const t=new Ts(e);t.normalize();let n=t.path(),i=n.lastIndexOf("/");return i!==-1&&(n=n.substr(i+1)),i=n.lastIndexOf("."),i===-1?n="":n=n.substr(i+1),n}const pz={};function oS(e,t,n){l(t)||(t=e.width),l(n)||(n=e.height);let i=pz[t];l(i)||(i={},pz[t]=i);let o=i[n];if(!l(o)){const r=document.createElement("canvas");r.width=t,r.height=n,o=r.getContext("2d"),o.globalCompositeOperation="copy",i[n]=o}return o.drawImage(e,0,0,t,n),o.getImageData(0,0,t,n).data}const spe=/^blob:/i;function DW(e){return b.typeOf.string("uri",e),spe.test(e)}let Au;function IW(e){l(Au)||(Au=document.createElement("a")),Au.href=window.location.href;const t=Au.host,n=Au.protocol;return Au.href=e,Au.href=Au.href,n!==Au.protocol||t!==Au.host}const ape=/^data:/i;function pN(e){return b.typeOf.string("uri",e),ape.test(e)}function cpe(e){const t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,i)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");const o=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,o.removeChild(t),n()},t.onerror=function(r){i(r)},o.appendChild(t)})}function lpe(e){if(!l(e))throw new x("obj is required.");let t="";for(const n in e)if(e.hasOwnProperty(n)){const i=e[n],o=`${encodeURIComponent(n)}=`;if(Array.isArray(i))for(let r=0,s=i.length;r0){const s=o.substring(0,r),a=o.substring(r+2);t[s]=a}}return t}function By(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=hpe(this.responseHeaders))}By.prototype.toString=function(){let e="Request has failed.";return l(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};function $e(){this._listeners=[],this._scopes=[],this._toRemove=[],this._insideRaiseEvent=!1}Object.defineProperties($e.prototype,{numberOfListeners:{get:function(){return this._listeners.length-this._toRemove.length}}});$e.prototype.addEventListener=function(e,t){b.typeOf.func("listener",e),this._listeners.push(e),this._scopes.push(t);const n=this;return function(){n.removeEventListener(e,t)}};$e.prototype.removeEventListener=function(e,t){b.typeOf.func("listener",e);const n=this._listeners,i=this._scopes;let o=-1;for(let r=0;r0){for(o.sort(ppe),e=0;e=0;--t)this.heapify(t)};T_.prototype.insert=function(e){b.defined("element",e);const t=this._array,n=this._comparator,i=this._maximumLength;let o=this._length++;for(oi&&(r=t[i],this._length=i),r};T_.prototype.pop=function(e){if(e=A(e,0),this._length===0)return;b.typeOf.number.lessThan("index",e,this._length);const t=this._array,n=t[e];return mN(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};function mpe(e,t){return e.priority-t.priority}const di={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0};let ry=20;const Hs=new T_({comparator:mpe});Hs.maximumLength=ry;Hs.reserve(ry);const Lu=[];let fd={};const _pe=typeof document<"u"?new Ts(document.location.href):new Ts,Tv=new $e;function ci(){}ci.maximumRequests=50;ci.maximumRequestsPerServer=6;ci.requestsByServer={"api.cesium.com:443":18,"assets.cesium.com:443":18};ci.throttleRequests=!0;ci.debugShowStatistics=!1;ci.requestCompletedEvent=Tv;Object.defineProperties(ci,{statistics:{get:function(){return di}},priorityHeapLength:{get:function(){return ry},set:function(e){if(ee;){const t=Hs.pop();Mm(t)}ry=e,Hs.maximumLength=e,Hs.reserve(e)}}});function PW(e){l(e.priorityFunction)&&(e.priority=e.priorityFunction())}ci.serverHasOpenSlots=function(e,t){t=A(t,1);const n=A(ci.requestsByServer[e],ci.maximumRequestsPerServer);return fd[e]+t<=n};ci.heapHasOpenSlots=function(e){return Hs.length+e<=ry};function OW(e){return e.state===yo.UNISSUED&&(e.state=yo.ISSUED,e.deferred=Ep()),e.deferred.promise}function gpe(e){return function(t){if(e.state===yo.CANCELLED)return;const n=e.deferred;--di.numberOfActiveRequests,--fd[e.serverKey],Tv.raiseEvent(),e.state=yo.RECEIVED,e.deferred=void 0,n.resolve(t)}}function ype(e){return function(t){e.state!==yo.CANCELLED&&(++di.numberOfFailedRequests,--di.numberOfActiveRequests,--fd[e.serverKey],Tv.raiseEvent(t),e.state=yo.FAILED,e.deferred.reject(t))}}function LW(e){const t=OW(e);return e.state=yo.ACTIVE,Lu.push(e),++di.numberOfActiveRequests,++di.numberOfActiveRequestsEver,++fd[e.serverKey],e.requestFunction().then(gpe(e)).catch(ype(e)),t}function Mm(e){const t=e.state===yo.ACTIVE;if(e.state=yo.CANCELLED,++di.numberOfCancelledRequests,l(e.deferred)){const n=e.deferred;e.deferred=void 0,n.reject()}t&&(--di.numberOfActiveRequests,--fd[e.serverKey],++di.numberOfCancelledActiveRequests),l(e.cancelFunction)&&e.cancelFunction()}ci.update=function(){let e,t,n=0;const i=Lu.length;for(e=0;e0&&(Lu[e-n]=t)}Lu.length-=n;const o=Hs.internalArray,r=Hs.length;for(e=0;e0;){if(t=Hs.pop(),t.cancelled){Mm(t);continue}if(t.throttleByServer&&!ci.serverHasOpenSlots(t.serverKey)){Mm(t);continue}LW(t),++a}Ape()};ci.getServerKey=function(e){b.typeOf.string("url",e);let t=new Ts(e);t.scheme()===""&&(t=new Ts(e).absoluteTo(_pe),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);const i=fd[n];return l(i)||(fd[n]=0),n};ci.request=function(e){if(b.typeOf.object("request",e),b.typeOf.string("request.url",e.url),b.typeOf.func("request.requestFunction",e.requestFunction),pN(e.url)||DW(e.url))return Tv.raiseEvent(),e.state=yo.RECEIVED,e.requestFunction();if(++di.numberOfAttemptedRequests,l(e.serverKey)||(e.serverKey=ci.getServerKey(e.url)),ci.throttleRequests&&e.throttleByServer&&!ci.serverHasOpenSlots(e.serverKey))return;if(!ci.throttleRequests||!e.throttle)return LW(e);if(Lu.length>=ci.maximumRequests)return;PW(e);const t=Hs.insert(e);if(l(t)){if(t===e)return;Mm(t)}return OW(e)};function Ape(){ci.debugShowStatistics&&(di.numberOfActiveRequests===0&&di.lastNumberOfActiveRequests>0&&(di.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${di.numberOfAttemptedRequests}`),di.numberOfAttemptedRequests=0),di.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${di.numberOfCancelledRequests}`),di.numberOfCancelledRequests=0),di.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${di.numberOfCancelledActiveRequests}`),di.numberOfCancelledActiveRequests=0),di.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${di.numberOfFailedRequests}`),di.numberOfFailedRequests=0)),di.lastNumberOfActiveRequests=di.numberOfActiveRequests)}ci.clearForSpecs=function(){for(;Hs.length>0;){const t=Hs.pop();Mm(t)}const e=Lu.length;for(let t=0;t0}}});Re.prototype.toString=function(){return this.getUrlComponent(!0,!0)};Re.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;const n=new Ts(this._url);e&&Tpe(n,this);let i=n.toString().replace(/%7B/g,"{").replace(/%7D/g,"}");const o=this._templateValues;return i=i.replace(/{(.*?)}/g,function(r,s){const a=o[s];return l(a)?encodeURIComponent(a):r}),t&&l(this.proxy)&&(i=this.proxy.getURL(i)),i};Re.prototype.setQueryParameters=function(e,t){t?this._queryParameters=rS(this._queryParameters,e,!1):this._queryParameters=rS(e,this._queryParameters,!1)};Re.prototype.appendQueryParameters=function(e){this._queryParameters=rS(e,this._queryParameters,!0)};Re.prototype.setTemplateValues=function(e,t){t?this._templateValues=sn(this._templateValues,e):this._templateValues=sn(e,this._templateValues)};Re.prototype.getDerivedResource=function(e){const t=this.clone();if(t._retryCount=0,l(e.url)){const n=new Ts(e.url),i=A(e.preserveQueryParameters,!1);_N(n,t,!0,i),n.fragment(""),n.scheme()!==""?t._url=n.toString():t._url=n.absoluteTo(new Ts(PT(this._url))).toString()}return l(e.queryParameters)&&(t._queryParameters=sn(e.queryParameters,t._queryParameters)),l(e.templateValues)&&(t._templateValues=sn(e.templateValues,t.templateValues)),l(e.headers)&&(t.headers=sn(e.headers,t.headers)),l(e.proxy)&&(t.proxy=e.proxy),l(e.request)&&(t.request=e.request),l(e.retryCallback)&&(t.retryCallback=e.retryCallback),l(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};Re.prototype.retryOnError=function(e){const t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);const n=this;return Promise.resolve(t(this,e)).then(function(i){return++n._retryCount,i})};Re.prototype.clone=function(e){return l(e)||(e=new Re({url:this._url})),e._url=this._url,e._queryParameters=ut(this._queryParameters),e._templateValues=ut(this._templateValues),e.headers=ut(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e};Re.prototype.getBaseUri=function(e){return ope(this.getUrlComponent(e),e)};Re.prototype.appendForwardSlash=function(){this._url=ipe(this._url)};Re.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};Re.fetchArrayBuffer=function(e){return new Re(e).fetchArrayBuffer()};Re.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};Re.fetchBlob=function(e){return new Re(e).fetchBlob()};Re.prototype.fetchImage=function(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.preferImageBitmap,!1),n=A(e.preferBlob,!1),i=A(e.flipY,!1),o=A(e.skipColorSpaceConversion,!1);if(gN(this.request),!RW||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return gL({resource:this,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:t});const r=this.fetchBlob();if(!l(r))return;let s,a,c,u;return Re.supportsImageBitmapOptions().then(function(f){return s=f,a=s&&t,r}).then(function(f){if(!l(f))return;if(u=f,a)return Re.createImageBitmapFromBlob(f,{flipY:i,premultiplyAlpha:!1,skipColorSpaceConversion:o});const h=window.URL.createObjectURL(f);return c=new Re({url:h}),gL({resource:c,flipY:i,skipColorSpaceConversion:o,preferImageBitmap:!1})}).then(function(f){if(l(f))return f.blob=u,a||window.URL.revokeObjectURL(c.url),f}).catch(function(f){return l(c)&&window.URL.revokeObjectURL(c.url),f.blob=u,Promise.reject(f)})};function gL(e){const t=e.resource,n=e.flipY,i=e.skipColorSpaceConversion,o=e.preferImageBitmap,r=t.request;r.url=t.url,r.requestFunction=function(){let a=!1;!t.isDataUri&&!t.isBlobUri&&(a=t.isCrossOriginUrl);const c=Ep();return Re._Implementations.createImage(r,a,c,n,i,o),c.promise};const s=ci.request(r);if(l(s))return s.catch(function(a){return r.state!==yo.FAILED?Promise.reject(a):t.retryOnError(a).then(function(c){return c?(r.state=yo.UNISSUED,r.deferred=void 0,gL({resource:t,flipY:n,skipColorSpaceConversion:i,preferImageBitmap:o})):Promise.reject(a)})})}Re.fetchImage=function(e){return new Re(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};Re.prototype.fetchText=function(){return this.fetch({responseType:"text"})};Re.fetchText=function(e){return new Re(e).fetchText()};Re.prototype.fetchJson=function(){const e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(l(e))return e.then(function(t){if(l(t))return JSON.parse(t)})};Re.fetchJson=function(e){return new Re(e).fetchJson()};Re.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};Re.fetchXML=function(e){return new Re(e).fetchXML()};Re.prototype.fetchJsonp=function(e){e=A(e,"callback"),gN(this.request);let t;do t=`loadJsonp${N.nextRandomNumber().toString().substring(2,8)}`;while(l(window[t]));return NW(this,e,t)};function NW(e,t,n){const i={};i[t]=n,e.setQueryParameters(i);const o=e.request;o.url=e.url,o.requestFunction=function(){const s=Ep();return window[n]=function(a){s.resolve(a);try{delete window[n]}catch{window[n]=void 0}},Re._Implementations.loadAndExecuteScript(e.url,n,s),s.promise};const r=ci.request(o);if(l(r))return r.catch(function(s){return o.state!==yo.FAILED?Promise.reject(s):e.retryOnError(s).then(function(a){return a?(o.state=yo.UNISSUED,o.deferred=void 0,NW(e,t,n)):Promise.reject(s)})})}Re.fetchJsonp=function(e){return new Re(e).fetchJsonp(e.callbackParameterName)};Re.prototype._makeRequest=function(e){const t=this;gN(t.request);const n=t.request;n.url=t.url,n.requestFunction=function(){const o=e.responseType,r=sn(e.headers,t.headers),s=e.overrideMimeType,a=e.method,c=e.data,u=Ep(),f=Re._Implementations.loadWithXhr(t.url,o,a,c,r,u,s);return l(f)&&l(f.abort)&&(n.cancelFunction=function(){f.abort()}),u.promise};const i=ci.request(n);if(l(i))return i.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==yo.FAILED?Promise.reject(o):t.retryOnError(o).then(function(r){return r?(n.state=yo.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};const bpe=/^data:(.*?)(;base64)?,(.*)$/;function Kx(e,t){const n=decodeURIComponent(t);return e?atob(n):n}function mz(e,t){const n=Kx(e,t),i=new ArrayBuffer(n.length),o=new Uint8Array(i);for(let r=0;rimport("./__vite-browser-external-b25bb000.js"),[]),Zb(()=>import("./__vite-browser-external-b25bb000.js"),[])]).then(([u,f])=>(a=u.parse(e),c=f,a.protocol==="https:"?Zb(()=>import("./__vite-browser-external-b25bb000.js"),[]):Zb(()=>import("./__vite-browser-external-b25bb000.js"),[]))).then(u=>{const f={protocol:a.protocol,hostname:a.hostname,port:a.port,path:a.path,query:a.query,method:n,headers:o};u.request(f).on("response",function(h){if(h.statusCode<200||h.statusCode>=300){r.reject(new By(h.statusCode,h,h.headers));return}const _=[];h.on("data",function(g){_.push(g)}),h.on("end",function(){const g=Buffer.concat(_);h.headers["content-encoding"]==="gzip"?c.gunzip(g,function(p,y){p?r.reject(new Se("Error decompressing response.")):r.resolve(_z(y,t))}):r.resolve(_z(g,t))})}).on("error",function(h){r.reject(new By)}).end()})}const wpe=typeof XMLHttpRequest>"u";Re._Implementations.loadWithXhr=function(e,t,n,i,o,r,s){const a=bpe.exec(e);if(a!==null){r.resolve(Epe(a,t));return}if(wpe){xpe(e,t,n,i,o,r);return}const c=new XMLHttpRequest;if(BW.contains(e)&&(c.withCredentials=!0),c.open(n,e,!0),l(s)&&l(c.overrideMimeType)&&c.overrideMimeType(s),l(o))for(const f in o)o.hasOwnProperty(f)&&c.setRequestHeader(f,o[f]);l(t)&&(c.responseType=t);let u=!1;return typeof e=="string"&&(u=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),c.onload=function(){if((c.status<200||c.status>=300)&&!(u&&c.status===0)){r.reject(new By(c.status,c.response,c.getAllResponseHeaders()));return}const f=c.response,h=c.responseType;if(n==="HEAD"||n==="OPTIONS"){const g=c.getAllResponseHeaders().trim().split(/[\r\n]+/),p={};g.forEach(function(y){const C=y.split(": "),T=C.shift();p[T]=C.join(": ")}),r.resolve(p);return}if(c.status===204)r.resolve();else if(l(f)&&(!l(t)||h===t))r.resolve(f);else if(t==="json"&&typeof f=="string")try{r.resolve(JSON.parse(f))}catch(_){r.reject(_)}else(h===""||h==="document")&&l(c.responseXML)&&c.responseXML.hasChildNodes()?r.resolve(c.responseXML):(h===""||h==="text")&&l(c.responseText)?r.resolve(c.responseText):r.reject(new Se("Invalid XMLHttpRequest response type."))},c.onerror=function(f){r.reject(new By)},c.send(i),c};Re._Implementations.loadAndExecuteScript=function(e,t,n){return cpe(e).catch(function(i){n.reject(i)})};Re._DefaultImplementations={};Re._DefaultImplementations.createImage=Re._Implementations.createImage;Re._DefaultImplementations.loadWithXhr=Re._Implementations.loadWithXhr;Re._DefaultImplementations.loadAndExecuteScript=Re._Implementations.loadAndExecuteScript;Re.DEFAULT=Object.freeze(new Re({url:typeof document>"u"?"":document.location.href.split("?")[0]}));function FC(e){e=A(e,A.EMPTY_OBJECT),this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=A(e.addNewLeapSeconds,!0),l(e.data)?gz(this,e.data):gz(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}FC.fromUrl=async function(e,t){b.defined("url",e),t=A(t,A.EMPTY_OBJECT);const n=Re.createIfNeeded(e);let i;try{i=await n.fetchJson()}catch{throw new Se(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new FC({addNewLeapSeconds:t.addNewLeapSeconds,data:i})};FC.NONE=Object.freeze({compute:function(e,t){return l(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new uN(0,0,0,0,0),t}});FC.prototype.compute=function(e,t){if(!l(this._samples))return;if(l(t)||(t=new uN(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;const n=this._dates,i=this._lastIndex;let o=0,r=0;if(l(i)){const a=n[i],c=n[i+1],u=ne.lessThanOrEquals(a,e),f=!l(c),h=f||ne.greaterThanOrEquals(c,e);if(u&&h)return o=i,!f&&c.equals(e)&&++o,r=o+1,Az(this,n,this._samples,e,o,r,t),t}let s=Cs(n,e,ne.compare,this._dateColumn);return s>=0?(st.length-1)return s.xPoleWander=0,s.yPoleWander=0,s.xPoleOffset=0,s.yPoleOffset=0,s.ut1MinusUtc=0,s;const c=t[o],u=t[r];if(c.equals(u)||i.equals(c))return yz(e,n,o,a,s),s;if(i.equals(u))return yz(e,n,r,a,s),s;const f=ne.secondsDifference(i,c)/ne.secondsDifference(u,c),h=o*a,_=r*a;let g=n[h+e._ut1MinusUtcSecondsColumn],p=n[_+e._ut1MinusUtcSecondsColumn];const y=p-g;if(y>.5||y<-.5){const C=n[h+e._taiMinusUtcSecondsColumn],T=n[_+e._taiMinusUtcSecondsColumn];C!==T&&(u.equals(i)?g=p:p-=T-C)}return s.xPoleWander=R0(f,n[h+e._xPoleWanderRadiansColumn],n[_+e._xPoleWanderRadiansColumn]),s.yPoleWander=R0(f,n[h+e._yPoleWanderRadiansColumn],n[_+e._yPoleWanderRadiansColumn]),s.xPoleOffset=R0(f,n[h+e._xCelestialPoleOffsetRadiansColumn],n[_+e._xCelestialPoleOffsetRadiansColumn]),s.yPoleOffset=R0(f,n[h+e._yCelestialPoleOffsetRadiansColumn],n[_+e._yCelestialPoleOffsetRadiansColumn]),s.ut1MinusUtc=R0(f,g,p),s}function Ur(e,t,n){this.heading=A(e,0),this.pitch=A(t,0),this.roll=A(n,0)}Ur.fromQuaternion=function(e,t){if(!l(e))throw new x("quaternion is required");l(t)||(t=new Ur);const n=2*(e.w*e.y-e.z*e.x),i=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),r=1-2*(e.y*e.y+e.z*e.z),s=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(s,r),t.roll=Math.atan2(o,i),t.pitch=-N.asinClamped(n),t};Ur.fromDegrees=function(e,t,n,i){if(!l(e))throw new x("heading is required");if(!l(t))throw new x("pitch is required");if(!l(n))throw new x("roll is required");return l(i)||(i=new Ur),i.heading=e*N.RADIANS_PER_DEGREE,i.pitch=t*N.RADIANS_PER_DEGREE,i.roll=n*N.RADIANS_PER_DEGREE,i};Ur.clone=function(e,t){if(l(e))return l(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new Ur(e.heading,e.pitch,e.roll)};Ur.equals=function(e,t){return e===t||l(e)&&l(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};Ur.equalsEpsilon=function(e,t,n,i){return e===t||l(e)&&l(t)&&N.equalsEpsilon(e.heading,t.heading,n,i)&&N.equalsEpsilon(e.pitch,t.pitch,n,i)&&N.equalsEpsilon(e.roll,t.roll,n,i)};Ur.prototype.clone=function(e){return Ur.clone(this,e)};Ur.prototype.equals=function(e){return Ur.equals(this,e)};Ur.prototype.equalsEpsilon=function(e,t,n){return Ur.equalsEpsilon(this,e,t,n)};Ur.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};const MW=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function vpe(){const e=document.getElementsByTagName("script");for(let t=0,n=e.length;t"u"?e:(l(Z_)||(Z_=document.createElement("a")),Z_.href=e,Z_.href=Z_.href,Z_.href)}let Tm;function zW(){if(l(Tm))return Tm;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?e=PT("..",dn("Core/buildModuleUrl.js")):e=vpe(),!l(e))throw new x("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return Tm=new Re({url:FW(e)}),Tm.appendForwardSlash(),Tm}function Dpe(e){return FW(require.toUrl(`../${e}`))}function UW(e){return zW().getDerivedResource({url:e}).url}let eE;function dn(e){return l(eE)||(typeof define=="object"&&l(define.amd)&&!define.amd.toUrlUndefined&&l(require.toUrl)?eE=Dpe:eE=UW),eE(e)}dn._cesiumScriptRegex=MW;dn._buildModuleUrlFromBaseUrl=UW;dn._clearBaseResource=function(){Tm=void 0};dn.setBaseUrl=function(e){Tm=Re.DEFAULT.getDerivedResource({url:e})};dn.getCesiumBaseUrl=zW;function HW(e,t,n){this.x=e,this.y=t,this.s=n}function yN(e){e=A(e,A.EMPTY_OBJECT),this._xysFileUrlTemplate=Re.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=A(e.interpolationOrder,9),this._sampleZeroJulianEphemerisDate=A(e.sampleZeroJulianEphemerisDate,24423965e-1),this._sampleZeroDateTT=new ne(this._sampleZeroJulianEphemerisDate,0,zn.TAI),this._stepSizeDays=A(e.stepSizeDays,1),this._samplesPerXysFile=A(e.samplesPerXysFile,1e3),this._totalSamples=A(e.totalSamples,27426),this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];const t=this._interpolationOrder,n=this._denominators=new Array(t+1),i=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let r=0;r<=t;++r){n[r]=o,i[r]=r*this._stepSizeDays;for(let s=0;s<=t;++s)s!==r&&(n[r]*=r-s);n[r]=1/n[r]}this._work=new Array(t+1),this._coef=new Array(t+1)}const Ipe=new ne(0,0,zn.TAI);function yL(e,t,n){const i=Ipe;return i.dayNumber=t,i.secondsOfDay=n,ne.daysDifference(i,e._sampleZeroDateTT)}yN.prototype.preload=function(e,t,n,i){const o=yL(this,e,t),r=yL(this,n,i);let s=o/this._stepSizeDays-this._interpolationOrder/2|0;s<0&&(s=0);let a=r/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;a>=this._totalSamples&&(a=this._totalSamples-1);const c=s/this._samplesPerXysFile|0,u=a/this._samplesPerXysFile|0,f=[];for(let h=c;h<=u;++h)f.push(AL(this,h));return Promise.all(f)};yN.prototype.computeXysRadians=function(e,t,n){const i=yL(this,e,t);if(i<0)return;const o=i/this._stepSizeDays|0;if(o>=this._totalSamples)return;const r=this._interpolationOrder;let s=o-(r/2|0);s<0&&(s=0);let a=s+r;a>=this._totalSamples&&(a=this._totalSamples-1,s=a-r,s<0&&(s=0));let c=!1;const u=this._samples;if(l(u[s*3])||(AL(this,s/this._samplesPerXysFile|0),c=!0),l(u[a*3])||(AL(this,a/this._samplesPerXysFile|0),c=!0),c)return;l(n)?(n.x=0,n.y=0,n.s=0):n=new HW(0,0,0);const f=i-s*this._stepSizeDays,h=this._work,_=this._denominators,g=this._coef,p=this._xTable;let y,C;for(y=0;y<=r;++y)h[y]=f-p[y];for(y=0;y<=r;++y){for(g[y]=1,C=0;C<=r;++C)C!==y&&(g[y]*=h[C]);g[y]*=_[y];let T=(s+y)*3;n.x+=g[y]*u[T++],n.y+=g[y]*u[T++],n.s+=g[y]*u[T]}return n};function AL(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n;const i=e._xysFileUrlTemplate;l(i)?n=i.getDerivedResource({templateValues:{0:t}}):n=new Re({url:dn(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});const o=n.fetchJson().then(function(r){e._chunkDownloadsInProgress[t]=!1;const s=e._samples,a=r.samples,c=t*e._samplesPerXysFile*3;for(let u=0,f=a.length;u=43200?o=(r+.5)/Ti.DAYS_PER_JULIAN_CENTURY:o=(r-.5)/Ti.DAYS_PER_JULIAN_CENTURY;const a=(Hpe+o*(Vpe+o*(kpe+o*Gpe)))*qpe%N.TWO_PI,c=jpe+Wpe*(n-24515455e-1),u=(i+Ti.SECONDS_PER_DAY*.5)%Ti.SECONDS_PER_DAY,f=a+c*u,h=Math.cos(f),_=Math.sin(f);return l(t)?(t[0]=h,t[1]=-_,t[2]=0,t[3]=_,t[4]=h,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new J(h,_,0,-_,h,0,0,0,1)};li.iau2006XysData=new yN;li.earthOrientationParameters=FC.NONE;const CL=32.184,Ype=2451545;li.preloadIcrfFixed=function(e){const t=e.start.dayNumber,n=e.start.secondsOfDay+CL,i=e.stop.dayNumber,o=e.stop.secondsOfDay+CL;return li.iau2006XysData.preload(t,n,i,o)};li.computeIcrfToFixedMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=li.computeFixedToIcrfMatrix(e,t);if(l(n))return J.transpose(n,t)};const $pe=new HW(0,0,0),Xpe=new uN(0,0,0,0,0),EI=new J,xI=new J;li.computeFixedToIcrfMatrix=function(e,t){if(!l(e))throw new x("date is required.");l(t)||(t=new J);const n=li.earthOrientationParameters.compute(e,Xpe);if(!l(n))return;const i=e.dayNumber,o=e.secondsOfDay+CL,r=li.iau2006XysData.computeXysRadians(i,o,$pe);if(!l(r))return;const s=r.x+n.xPoleOffset,a=r.y+n.yPoleOffset,c=1/(1+Math.sqrt(1-s*s-a*a)),u=EI;u[0]=1-c*s*s,u[3]=-c*s*a,u[6]=s,u[1]=-c*s*a,u[4]=1-c*a*a,u[7]=a,u[2]=-s,u[5]=-a,u[8]=1-c*(s*s+a*a);const f=J.fromRotationZ(-r.s,xI),h=J.multiply(u,f,EI),_=e.dayNumber,g=e.secondsOfDay-ne.computeTaiMinusUtc(e)+n.ut1MinusUtc,p=_-2451545,y=g/Ti.SECONDS_PER_DAY;let C=.779057273264+y+.00273781191135448*(p+y);C=C%1*N.TWO_PI;const T=J.fromRotationZ(C,xI),E=J.multiply(h,T,EI),w=Math.cos(n.xPoleWander),S=Math.cos(n.yPoleWander),P=Math.sin(n.xPoleWander),O=Math.sin(n.yPoleWander);let z=i-Ype+o/Ti.SECONDS_PER_DAY;z/=36525;const R=-47e-6*z*N.RADIANS_PER_DEGREE/3600,F=Math.cos(R),H=Math.sin(R),v=xI;return v[0]=w*F,v[1]=w*H,v[2]=P,v[3]=-S*H+O*P*F,v[4]=S*F+O*P*H,v[5]=-O*w,v[6]=-O*H-S*P*F,v[7]=O*F-S*P*H,v[8]=S*w,J.multiply(E,v,t)};const Kpe=new oe;li.pointToWindowCoordinates=function(e,t,n,i){return i=li.pointToGLWindowCoordinates(e,t,n,i),i.y=2*t[5]-i.y,i};li.pointToGLWindowCoordinates=function(e,t,n,i){if(!l(e))throw new x("modelViewProjectionMatrix is required.");if(!l(t))throw new x("viewportTransformation is required.");if(!l(n))throw new x("point is required.");l(i)||(i=new j);const o=Kpe;return B.multiplyByVector(e,oe.fromElements(n.x,n.y,n.z,1,o),o),oe.multiplyByScalar(o,1/o.w,o),B.multiplyByVector(t,o,o),j.fromCartesian4(o,i)};const Jpe=new d,Qpe=new d,Zpe=new d;li.rotationMatrixFromPositionVelocity=function(e,t,n,i){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("velocity is required.");const o=A(n,pe.WGS84).geodeticSurfaceNormal(e,Jpe);let r=d.cross(t,o,Qpe);d.equalsEpsilon(r,d.ZERO,N.EPSILON6)&&(r=d.clone(d.UNIT_X,r));const s=d.cross(r,t,Zpe);return d.normalize(s,s),d.cross(t,s,r),d.negate(r,r),d.normalize(r,r),l(i)||(i=new J),i[0]=t.x,i[1]=t.y,i[2]=t.z,i[3]=r.x,i[4]=r.y,i[5]=r.z,i[6]=s.x,i[7]=s.y,i[8]=s.z,i};const VW=new B(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1),kW=new Ae,GW=new d,eme=new d,tme=new J,TL=new B,WW=new B;li.basisTo2D=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("matrix is required.");if(!l(n))throw new x("result is required.");const i=B.getTranslation(t,eme),o=e.ellipsoid,r=o.cartesianToCartographic(i,kW),s=e.project(r,GW);d.fromElements(s.z,s.x,s.y,s);const a=li.eastNorthUpToFixedFrame(i,o,TL),c=B.inverseTransformation(a,WW),u=B.getMatrix3(t,tme),f=B.multiplyByMatrix3(c,u,n);return B.multiply(VW,f,n),B.setTranslation(n,s,n),n};li.wgs84To2DModelMatrix=function(e,t,n){if(!l(e))throw new x("projection is required.");if(!l(t))throw new x("center is required.");if(!l(n))throw new x("result is required.");const i=e.ellipsoid,o=li.eastNorthUpToFixedFrame(t,i,TL),r=B.inverseTransformation(o,WW),s=i.cartesianToCartographic(t,kW),a=e.project(s,GW);d.fromElements(a.z,a.x,a.y,a);const c=B.fromTranslation(a,TL);return B.multiply(VW,r,n),B.multiply(c,n,n),n};const tn=li;function Dt(e){e=A(e,A.EMPTY_OBJECT),b.typeOf.object("options.attributes",e.attributes),this.attributes=e.attributes,this.indices=e.indices,this.primitiveType=A(e.primitiveType,Je.TRIANGLES),this.boundingSphere=e.boundingSphere,this.geometryType=A(e.geometryType,qg.NONE),this.boundingSphereCV=e.boundingSphereCV,this.offsetAttribute=e.offsetAttribute}Dt.computeNumberOfVertices=function(e){b.typeOf.object("geometry",e);let t=-1;for(const n in e.attributes)if(e.attributes.hasOwnProperty(n)&&l(e.attributes[n])&&l(e.attributes[n].values)){const i=e.attributes[n],o=i.values.length/i.componentsPerAttribute;if(t!==o&&t!==-1)throw new x("All attribute lists must have the same number of attributes.");t=o}return t};const nme=new Ae,ime=new d,Tz=new B,ome=[new Ae,new Ae,new Ae],rme=[new j,new j,new j],sme=[new j,new j,new j],ame=new d,cme=new Ce,lme=new B,ume=new at;Dt._textureCoordinateRotationPoints=function(e,t,n,i){let o;const r=_e.center(i,nme),s=Ae.toCartesian(r,n,ime),a=tn.eastNorthUpToFixedFrame(s,n,Tz),c=B.inverse(a,Tz),u=rme,f=ome;f[0].longitude=i.west,f[0].latitude=i.south,f[1].longitude=i.west,f[1].latitude=i.north,f[2].longitude=i.east,f[2].latitude=i.south;let h=ame;for(o=0;o<3;o++)Ae.toCartesian(f[o],n,h),h=B.multiplyByPointAsVector(c,h,h),u[o].x=h.x,u[o].y=h.y;const _=Ce.fromAxisAngle(d.UNIT_Z,-t,cme),g=J.fromQuaternion(_,lme),p=e.length;let y=Number.POSITIVE_INFINITY,C=Number.POSITIVE_INFINITY,T=Number.NEGATIVE_INFINITY,E=Number.NEGATIVE_INFINITY;for(o=0;o4)throw new x("options.componentsPerAttribute must be between 1 and 4.");if(!l(e.values))throw new x("options.values is required.");this.componentDatatype=e.componentDatatype,this.componentsPerAttribute=e.componentsPerAttribute,this.normalize=A(e.normalize,!1),this.values=e.values}function Ny(e,t,n,i,o){this._format=e,this._datatype=t,this._width=n,this._height=i,this._buffer=o}Object.defineProperties(Ny.prototype,{internalFormat:{get:function(){return this._format}},pixelDatatype:{get:function(){return this._datatype}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}}});Ny.clone=function(e){if(l(e))return new Ny(e._format,e._datatype,e._width,e._height,e._buffer)};Ny.prototype.clone=function(){return Ny.clone(this)};function jW(){if(!l(vi._canTransferArrayBuffer)){const e=new Worker(YW("Workers/transferTypedArrayTest.js"));e.postMessage=A(e.webkitPostMessage,e.postMessage);const t=99,n=new Int8Array([t]);try{e.postMessage({array:n},[n.buffer])}catch{return vi._canTransferArrayBuffer=!1,vi._canTransferArrayBuffer}const i=Ep();e.onmessage=function(o){const r=o.data.array,s=l(r)&&r[0]===t;i.resolve(s),e.terminate(),vi._canTransferArrayBuffer=s},vi._canTransferArrayBuffer=i.promise}return vi._canTransferArrayBuffer}const bL=new $e;function qW(e,t){--e._activeTasks;const n=t.id;if(!l(n))return;const i=e._deferreds,o=i[n];if(l(t.error)){let r=t.error;r.name==="RuntimeError"?(r=new Se(t.error.message),r.stack=t.error.stack):r.name==="DeveloperError"&&(r=new x(t.error.message),r.stack=t.error.stack),bL.raiseEvent(r),o.reject(r)}else bL.raiseEvent(),o.resolve(t.result);delete i[n]}function YW(e){let t=dn(e);if(IW(t)){const n=`importScripts("${t}");`;let i;try{i=new Blob([n],{type:"application/javascript"})}catch{const s=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,a=new s;a.append(n),i=a.getBlob("application/javascript")}t=(window.URL||window.webkitURL).createObjectURL(i)}return t}let wI;function fme(){return l(wI)||(wI=YW("Workers/cesiumWorkerBootstrapper.js")),wI}function $W(e){const t=new Worker(fme());t.postMessage=A(t.webkitPostMessage,t.postMessage);const n={loaderConfig:{paths:{Workers:dn("Workers")},baseUrl:dn.getCesiumBaseUrl().url},workerModule:e._workerPath};return t.postMessage(n),t.onmessage=function(i){qW(e,i.data)},t}function dme(e,t){const n={modulePath:void 0,wasmBinaryFile:void 0,wasmBinary:void 0};if(!un.supportsWebAssembly()){if(!l(t.fallbackModulePath))throw new Se(`This browser does not support Web Assembly, and no backup module was provided for ${e._workerPath}`);return n.modulePath=dn(t.fallbackModulePath),Promise.resolve(n)}return n.modulePath=dn(t.modulePath),n.wasmBinaryFile=dn(t.wasmBinaryFile),Re.fetchArrayBuffer({url:n.wasmBinaryFile}).then(function(i){return n.wasmBinary=i,n})}function vi(e,t){const n=new Ts(e);this._workerPath=n.scheme().length!==0&&n.fragment().length===0?e:vi._workerModulePrefix+e,this._maximumActiveTasks=A(t,Number.POSITIVE_INFINITY),this._activeTasks=0,this._deferreds={},this._nextID=0}const hme=[];vi.prototype.scheduleTask=function(e,t){if(l(this._worker)||(this._worker=$W(this)),this._activeTasks>=this._maximumActiveTasks)return;++this._activeTasks;const n=this;return Promise.resolve(jW()).then(function(i){l(t)?i||(t.length=0):t=hme;const o=n._nextID++,r=Ep();return n._deferreds[o]=r,n._worker.postMessage({id:o,parameters:e,canTransferArrayBuffer:i},t),r.promise})};vi.prototype.initWebAssemblyModule=function(e){l(this._worker)||(this._worker=$W(this));const t=Ep(),n=this,i=this._worker;return dme(this,e).then(function(o){return Promise.resolve(jW()).then(function(r){let s;const a=o.wasmBinary;l(a)&&r&&(s=[a]),i.onmessage=function(c){i.onmessage=function(u){qW(n,u.data)},t.resolve(c.data)},i.postMessage({webAssemblyConfig:o},s)})}),t.promise};vi.prototype.isDestroyed=function(){return!1};vi.prototype.destroy=function(){return l(this._worker)&&this._worker.terminate(),Ue(this)};vi.taskCompletedEvent=bL;vi._defaultWorkerModulePrefix="Workers/";vi._workerModulePrefix=vi._defaultWorkerModulePrefix;vi._canTransferArrayBuffer=void 0;function Kf(){}Kf._transcodeTaskProcessor=new vi("transcodeKTX2",Number.POSITIVE_INFINITY);Kf._readyPromise=void 0;function pme(){const e=Kf._transcodeTaskProcessor.initWebAssemblyModule({modulePath:"ThirdParty/Workers/basis_transcoder.js",wasmBinaryFile:"ThirdParty/basis_transcoder.wasm"}).then(function(){return Kf._transcodeTaskProcessor});Kf._readyPromise=e}Kf.transcode=function(e,t){return b.defined("supportedTargetFormats",t),l(Kf._readyPromise)||pme(),Kf._readyPromise.then(function(n){let i;if(e instanceof ArrayBuffer){const o=new Uint8Array(e);return i={supportedTargetFormats:t,ktx2Buffer:o},n.scheduleTask(i,[e])}return i={supportedTargetFormats:t,ktx2Buffer:e},n.scheduleTask(i,[e.buffer])}).then(function(n){const i=n.length,o=Object.keys(n[0]),r=o.length;let s;for(s=0;sthis._size)throw new x("xOffset + options.source.width must be less than or equal to width.");if(n+e.source.height>this._size)throw new x("yOffset + options.source.height must be less than or equal to height.");const i=e.source,o=this._context._gl,r=this._textureTarget,s=this._targetFace;o.activeTexture(o.TEXTURE0),o.bindTexture(r,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._size,h=this._pixelFormat,_=this._internalFormat,g=this._pixelDatatype,p=this._preMultiplyAlpha,y=this._flipY,C=A(e.skipColorSpaceConversion,!1);let T=4;l(u)&&(T=nt.alignmentInBytes(h,g,a)),o.pixelStorei(o.UNPACK_ALIGNMENT,T),C?o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.NONE):o.pixelStorei(o.UNPACK_COLORSPACE_CONVERSION_WEBGL,o.BROWSER_DEFAULT_WEBGL);let E=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===f)l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=nt.flipY(u,h,g,f,f)),o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texImage2D(s,0,_,h,Ke.toWebGLConstant(g,this._context),i)),E=!0;else{o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1);const w=nt.createTypedArray(h,g,f,f);o.texImage2D(s,0,_,f,f,0,h,Ke.toWebGLConstant(g,this._context),w)}this._initialized=!0}E||(l(u)?(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,!1),y&&(u=nt.flipY(u,h,g,a,c)),o.texSubImage2D(s,0,t,n,a,c,h,Ke.toWebGLConstant(g,this._context),u)):(o.pixelStorei(o.UNPACK_PREMULTIPLY_ALPHA_WEBGL,p),o.pixelStorei(o.UNPACK_FLIP_Y_WEBGL,y),o.texSubImage2D(s,0,t,n,h,Ke.toWebGLConstant(g,this._context),i))),o.bindTexture(r,null)};Mf.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._size),r=A(r,this._size),b.typeOf.number.greaterThanOrEquals("xOffset",e,0),b.typeOf.number.greaterThanOrEquals("yOffset",t,0),b.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),b.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),e+o>this._size)throw new x("xOffset + source.width must be less than or equal to width.");if(t+r>this._size)throw new x("yOffset + source.height must be less than or equal to height.");if(this._pixelDatatype===Ke.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(this._targetFace,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};const Jx={DONT_CARE:se.DONT_CARE,FASTEST:se.FASTEST,NICEST:se.NICEST,validate:function(e){return e===Jx.DONT_CARE||e===Jx.FASTEST||e===Jx.NICEST}},My=Object.freeze(Jx),Qx={NEAREST:se.NEAREST,LINEAR:se.LINEAR};Qx.validate=function(e){return e===Qx.NEAREST||e===Qx.LINEAR};const Hr=Object.freeze(Qx),yh={NEAREST:se.NEAREST,LINEAR:se.LINEAR,NEAREST_MIPMAP_NEAREST:se.NEAREST_MIPMAP_NEAREST,LINEAR_MIPMAP_NEAREST:se.LINEAR_MIPMAP_NEAREST,NEAREST_MIPMAP_LINEAR:se.NEAREST_MIPMAP_LINEAR,LINEAR_MIPMAP_LINEAR:se.LINEAR_MIPMAP_LINEAR};yh.validate=function(e){return e===yh.NEAREST||e===yh.LINEAR||e===yh.NEAREST_MIPMAP_NEAREST||e===yh.LINEAR_MIPMAP_NEAREST||e===yh.NEAREST_MIPMAP_LINEAR||e===yh.LINEAR_MIPMAP_LINEAR};const An=Object.freeze(yh),Zx={CLAMP_TO_EDGE:se.CLAMP_TO_EDGE,REPEAT:se.REPEAT,MIRRORED_REPEAT:se.MIRRORED_REPEAT,validate:function(e){return e===Zx.CLAMP_TO_EDGE||e===Zx.REPEAT||e===Zx.MIRRORED_REPEAT}},Ei=Object.freeze(Zx);function Yn(e){e=A(e,A.EMPTY_OBJECT);const t=A(e.wrapS,Ei.CLAMP_TO_EDGE),n=A(e.wrapT,Ei.CLAMP_TO_EDGE),i=A(e.minificationFilter,An.LINEAR),o=A(e.magnificationFilter,Hr.LINEAR),r=l(e.maximumAnisotropy)?e.maximumAnisotropy:1;if(!Ei.validate(t))throw new x("Invalid sampler.wrapS.");if(!Ei.validate(n))throw new x("Invalid sampler.wrapT.");if(!An.validate(i))throw new x("Invalid sampler.minificationFilter.");if(!Hr.validate(o))throw new x("Invalid sampler.magnificationFilter.");b.typeOf.number.greaterThanOrEquals("maximumAnisotropy",r,1),this._wrapS=t,this._wrapT=n,this._minificationFilter=i,this._magnificationFilter=o,this._maximumAnisotropy=r}Object.defineProperties(Yn.prototype,{wrapS:{get:function(){return this._wrapS}},wrapT:{get:function(){return this._wrapT}},minificationFilter:{get:function(){return this._minificationFilter}},magnificationFilter:{get:function(){return this._magnificationFilter}},maximumAnisotropy:{get:function(){return this._maximumAnisotropy}}});Yn.equals=function(e,t){return e===t||l(e)&&l(t)&&e._wrapS===t._wrapS&&e._wrapT===t._wrapT&&e._minificationFilter===t._minificationFilter&&e._magnificationFilter===t._magnificationFilter&&e._maximumAnisotropy===t._maximumAnisotropy};Yn.NEAREST=Object.freeze(new Yn({wrapS:Ei.CLAMP_TO_EDGE,wrapT:Ei.CLAMP_TO_EDGE,minificationFilter:An.NEAREST,magnificationFilter:Hr.NEAREST}));function nu(e){e=A(e,A.EMPTY_OBJECT),b.defined("options.context",e.context);const t=e.context,n=e.source;let i,o;if(l(n)){const E=[n.positiveX,n.negativeX,n.positiveY,n.negativeY,n.positiveZ,n.negativeZ];if(!E[0]||!E[1]||!E[2]||!E[3]||!E[4]||!E[5])throw new x("options.source requires positiveX, negativeX, positiveY, negativeY, positiveZ, and negativeZ faces.");i=E[0].width,o=E[0].height;for(let w=1;w<6;++w)if(Number(E[w].width)!==i||Number(E[w].height)!==o)throw new x("Each face in options.source must have the same width and height.")}else i=e.width,o=e.height;const r=i,s=A(e.pixelDatatype,Ke.UNSIGNED_BYTE),a=A(e.pixelFormat,nt.RGBA),c=nt.toInternalFormat(a,s,t);if(!l(i)||!l(o))throw new x("options requires a source field to create an initialized cube map or width and height fields to create a blank cube map.");if(i!==o)throw new x("Width must equal height.");if(r<=0)throw new x("Width and height must be greater than zero.");if(r>wt.maximumCubeMapSize)throw new x(`Width and height must be less than or equal to the maximum cube map size (${wt.maximumCubeMapSize}). Check maximumCubeMapSize.`);if(!nt.validate(a))throw new x("Invalid options.pixelFormat.");if(nt.isDepthFormat(a))throw new x("options.pixelFormat cannot be DEPTH_COMPONENT or DEPTH_STENCIL.");if(!Ke.validate(s))throw new x("Invalid options.pixelDatatype.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension.");const u=nt.textureSizeInBytes(a,s,r,r)*6,f=e.preMultiplyAlpha||a===nt.RGB||a===nt.LUMINANCE,h=A(e.flipY,!0),_=A(e.skipColorSpaceConversion,!1),g=t._gl,p=g.TEXTURE_CUBE_MAP,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);function C(E,w,S,P,O){let z=w.arrayBufferView;l(z)||(z=w.bufferView);let R=4;l(z)&&(R=nt.alignmentInBytes(a,s,i)),g.pixelStorei(g.UNPACK_ALIGNMENT,R),O?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(z)?(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1),P&&(z=nt.flipY(z,a,s,r,r)),g.texImage2D(E,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),z)):(g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,S),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,P),g.texImage2D(E,0,c,a,Ke.toWebGLConstant(s,t),w))}l(n)?(C(g.TEXTURE_CUBE_MAP_POSITIVE_X,n.positiveX,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_X,n.negativeX,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Y,n.positiveY,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,n.negativeY,f,h,_),C(g.TEXTURE_CUBE_MAP_POSITIVE_Z,n.positiveZ,f,h,_),C(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,n.negativeZ,f,h,_)):(g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_X,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_POSITIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null),g.texImage2D(g.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,c,r,r,0,a,Ke.toWebGLConstant(s,t),null)),g.bindTexture(p,null),this._context=t,this._textureFilterAnisotropic=t._textureFilterAnisotropic,this._textureTarget=p,this._texture=y,this._pixelFormat=a,this._pixelDatatype=s,this._size=r,this._hasMipmap=!1,this._sizeInBytes=u,this._preMultiplyAlpha=f,this._flipY=h,this._sampler=void 0;const T=l(n);this._positiveX=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_X,c,a,s,r,f,h,T),this._negativeX=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_X,c,a,s,r,f,h,T),this._positiveY=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Y,c,a,s,r,f,h,T),this._negativeY=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Y,c,a,s,r,f,h,T),this._positiveZ=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_POSITIVE_Z,c,a,s,r,f,h,T),this._negativeZ=new Mf(t,y,p,g.TEXTURE_CUBE_MAP_NEGATIVE_Z,c,a,s,r,f,h,T),this.sampler=l(e.sampler)?e.sampler:new Yn}Object.defineProperties(nu.prototype,{positiveX:{get:function(){return this._positiveX}},negativeX:{get:function(){return this._negativeX}},positiveY:{get:function(){return this._positiveY}},negativeY:{get:function(){return this._negativeY}},positiveZ:{get:function(){return this._positiveZ}},negativeZ:{get:function(){return this._negativeZ}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=t===An.NEAREST_MIPMAP_NEAREST||t===An.NEAREST_MIPMAP_LINEAR||t===An.LINEAR_MIPMAP_NEAREST||t===An.LINEAR_MIPMAP_LINEAR,o=this._context,r=this._pixelDatatype;(r===Ke.FLOAT&&!o.textureFloatLinear||r===Ke.HALF_FLOAT&&!o.textureHalfFloatLinear)&&(t=i?An.NEAREST_MIPMAP_NEAREST:An.NEAREST,n=Hr.NEAREST);const s=o._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.texParameteri(a,s.TEXTURE_MIN_FILTER,t),s.texParameteri(a,s.TEXTURE_MAG_FILTER,n),s.texParameteri(a,s.TEXTURE_WRAP_S,e.wrapS),s.texParameteri(a,s.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&s.texParameteri(a,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),s.bindTexture(a,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},width:{get:function(){return this._size}},height:{get:function(){return this._size}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},_target:{get:function(){return this._textureTarget}}});nu.prototype.generateMipmap=function(e){if(e=A(e,My.DONT_CARE),this._size>1&&!N.isPowerOfTwo(this._size))throw new x("width and height must be a power of two to call generateMipmap().");if(!My.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};nu.prototype.isDestroyed=function(){return!1};nu.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),this._positiveX=Ue(this._positiveX),this._negativeX=Ue(this._negativeX),this._positiveY=Ue(this._positiveY),this._negativeY=Ue(this._negativeY),this._positiveZ=Ue(this._positiveZ),this._negativeZ=Ue(this._negativeZ),Ue(this)};function E_(e){this.context=e,this.framebuffer=void 0,this.blendingEnabled=void 0,this.scissorTest=void 0,this.viewport=void 0}function mme(e,t){const n=/#define OUTPUT_DECLARATION/,i=e.split(` +`);if(/#version 300 es/g.test(e))return e;let o=-1,r,s;for(r=0;r=0;S--)i.splice(T,0,`#endif //${E[S]}`)}const h="WEBGL_2",_=`#define ${h}`,g="#version 300 es";let p=!1;for(r=0;r=0}):n[h]=o.slice())}}return n}function SI(e,t,n){const i=`#extension\\s+GL_${e}\\s+:\\s+[a-zA-Z0-9]+\\s*$`;_me(new RegExp(i,"g"),"",n),Eu(`GL_${e}`,t,n)}const Cme=`/** * A built-in GLSL floating-point constant for converting radians to degrees. * * @alias czm_degreesPerRadian @@ -94,7 +81,7 @@ ${p}`)}}function Bge(e,t,n){const i={};for(let o=0;o1/pi. * * @alias czm_oneOverPi @@ -180,7 +167,7 @@ const float czm_infinity = 5906376272000.0; // Distance from the Sun to Pluto i * float pi = 1.0 / czm_oneOverPi; */ const float czm_oneOverPi = 0.3183098861837907; -`,V0e=`/** +`,Ome=`/** * A built-in GLSL floating-point constant for 1/2pi. * * @alias czm_oneOverTwoPi @@ -196,7 +183,7 @@ const float czm_oneOverPi = 0.3183098861837907; * float pi = 2.0 * czm_oneOverTwoPi; */ const float czm_oneOverTwoPi = 0.15915494309189535; -`,k0e=`/** +`,Lme=`/** * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE} * * @name czm_passCesium3DTile @@ -205,7 +192,7 @@ const float czm_oneOverTwoPi = 0.15915494309189535; * @see czm_pass */ const float czm_passCesium3DTile = 4.0; -`,G0e=`/** +`,Bme=`/** * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION} * * @name czm_passCesium3DTileClassification @@ -214,7 +201,7 @@ const float czm_passCesium3DTile = 4.0; * @see czm_pass */ const float czm_passCesium3DTileClassification = 5.0; -`,W0e=`/** +`,Rme=`/** * The automatic GLSL constant for {@link Pass#CESIUM_3D_TILE_CLASSIFICATION_IGNORE_SHOW} * * @name czm_passCesium3DTileClassificationIgnoreShow @@ -223,7 +210,7 @@ const float czm_passCesium3DTileClassification = 5.0; * @see czm_pass */ const float czm_passCesium3DTileClassificationIgnoreShow = 6.0; -`,j0e=`/** +`,Nme=`/** * The automatic GLSL constant for {@link Pass#CLASSIFICATION} * * @name czm_passClassification @@ -232,7 +219,7 @@ const float czm_passCesium3DTileClassificationIgnoreShow = 6.0; * @see czm_pass */ const float czm_passClassification = 7.0; -`,q0e=`/** +`,Mme=`/** * The automatic GLSL constant for {@link Pass#COMPUTE} * * @name czm_passCompute @@ -241,7 +228,7 @@ const float czm_passClassification = 7.0; * @see czm_pass */ const float czm_passCompute = 1.0; -`,$0e=`/** +`,Fme=`/** * The automatic GLSL constant for {@link Pass#ENVIRONMENT} * * @name czm_passEnvironment @@ -250,7 +237,7 @@ const float czm_passCompute = 1.0; * @see czm_pass */ const float czm_passEnvironment = 0.0; -`,Y0e=`/** +`,zme=`/** * The automatic GLSL constant for {@link Pass#GLOBE} * * @name czm_passGlobe @@ -259,7 +246,7 @@ const float czm_passEnvironment = 0.0; * @see czm_pass */ const float czm_passGlobe = 2.0; -`,X0e=`/** +`,Ume=`/** * The automatic GLSL constant for {@link Pass#OPAQUE} * * @name czm_passOpaque @@ -268,7 +255,7 @@ const float czm_passGlobe = 2.0; * @see czm_pass */ const float czm_passOpaque = 7.0; -`,K0e=`/** +`,Hme=`/** * The automatic GLSL constant for {@link Pass#OVERLAY} * * @name czm_passOverlay @@ -277,7 +264,7 @@ const float czm_passOpaque = 7.0; * @see czm_pass */ const float czm_passOverlay = 10.0; -`,J0e=`/** +`,Vme=`/** * The automatic GLSL constant for {@link Pass#TERRAIN_CLASSIFICATION} * * @name czm_passTerrainClassification @@ -286,7 +273,7 @@ const float czm_passOverlay = 10.0; * @see czm_pass */ const float czm_passTerrainClassification = 3.0; -`,Q0e=`/** +`,kme=`/** * The automatic GLSL constant for {@link Pass#TRANSLUCENT} * * @name czm_passTranslucent @@ -295,7 +282,7 @@ const float czm_passTerrainClassification = 3.0; * @see czm_pass */ const float czm_passTranslucent = 8.0; -`,Z0e=`/** +`,Gme=`/** * The automatic GLSL constant for {@link Pass#VOXELS} * * @name czm_passVoxels @@ -304,7 +291,7 @@ const float czm_passTranslucent = 8.0; * @see czm_pass */ const float czm_passVoxels = 9.0; -`,eAe=`/** +`,Wme=`/** * A built-in GLSL floating-point constant for Math.PI. * * @alias czm_pi @@ -320,7 +307,7 @@ const float czm_passVoxels = 9.0; * float twoPi = 2.0 * czm_pi; */ const float czm_pi = 3.141592653589793; -`,tAe=`/** +`,jme=`/** * A built-in GLSL floating-point constant for pi/4. * * @alias czm_piOverFour @@ -336,7 +323,7 @@ const float czm_pi = 3.141592653589793; * float pi = 4.0 * czm_piOverFour; */ const float czm_piOverFour = 0.7853981633974483; -`,nAe=`/** +`,qme=`/** * A built-in GLSL floating-point constant for pi/6. * * @alias czm_piOverSix @@ -352,7 +339,7 @@ const float czm_piOverFour = 0.7853981633974483; * float pi = 6.0 * czm_piOverSix; */ const float czm_piOverSix = 0.5235987755982988; -`,iAe=`/** +`,Yme=`/** * A built-in GLSL floating-point constant for pi/3. * * @alias czm_piOverThree @@ -368,7 +355,7 @@ const float czm_piOverSix = 0.5235987755982988; * float pi = 3.0 * czm_piOverThree; */ const float czm_piOverThree = 1.0471975511965976; -`,oAe=`/** +`,$me=`/** * A built-in GLSL floating-point constant for pi/2. * * @alias czm_piOverTwo @@ -384,7 +371,7 @@ const float czm_piOverThree = 1.0471975511965976; * float pi = 2.0 * czm_piOverTwo; */ const float czm_piOverTwo = 1.5707963267948966; -`,rAe=`/** +`,Xme=`/** * A built-in GLSL floating-point constant for converting degrees to radians. * * @alias czm_radiansPerDegree @@ -400,7 +387,7 @@ const float czm_piOverTwo = 1.5707963267948966; * float rad = czm_radiansPerDegree * deg; */ const float czm_radiansPerDegree = 0.017453292519943295; -`,sAe=`/** +`,Kme=`/** * The constant identifier for the 2D {@link SceneMode} * * @name czm_sceneMode2D @@ -411,7 +398,7 @@ const float czm_radiansPerDegree = 0.017453292519943295; * @see czm_sceneModeMorphing */ const float czm_sceneMode2D = 2.0; -`,aAe=`/** +`,Jme=`/** * The constant identifier for the 3D {@link SceneMode} * * @name czm_sceneMode3D @@ -422,7 +409,7 @@ const float czm_sceneMode2D = 2.0; * @see czm_sceneModeMorphing */ const float czm_sceneMode3D = 3.0; -`,cAe=`/** +`,Qme=`/** * The constant identifier for the Columbus View {@link SceneMode} * * @name czm_sceneModeColumbusView @@ -433,7 +420,7 @@ const float czm_sceneMode3D = 3.0; * @see czm_sceneModeMorphing */ const float czm_sceneModeColumbusView = 1.0; -`,lAe=`/** +`,Zme=`/** * The constant identifier for the Morphing {@link SceneMode} * * @name czm_sceneModeMorphing @@ -444,7 +431,7 @@ const float czm_sceneModeColumbusView = 1.0; * @see czm_sceneMode3D */ const float czm_sceneModeMorphing = 0.0; -`,uAe=`/** +`,e_e=`/** * A built-in GLSL floating-point constant for one solar radius. * * @alias czm_solarRadius @@ -457,7 +444,7 @@ const float czm_sceneModeMorphing = 0.0; * const float czm_solarRadius = ...; */ const float czm_solarRadius = 695500000.0; -`,dAe=`/** +`,t_e=`/** * A built-in GLSL floating-point constant for 3pi/2. * * @alias czm_threePiOver2 @@ -473,7 +460,7 @@ const float czm_solarRadius = 695500000.0; * float pi = (2.0 / 3.0) * czm_threePiOver2; */ const float czm_threePiOver2 = 4.71238898038469; -`,fAe=`/** +`,n_e=`/** * A built-in GLSL floating-point constant for 2pi. * * @alias czm_twoPi @@ -489,7 +476,7 @@ const float czm_threePiOver2 = 4.71238898038469; * float pi = czm_twoPi / 2.0; */ const float czm_twoPi = 6.283185307179586; -`,hAe=`/** +`,i_e=`/** * The maximum latitude, in radians, both North and South, supported by a Web Mercator * (EPSG:3857) projection. Technically, the Mercator projection is defined * for any latitude up to (but not including) 90 degrees, but it makes sense @@ -505,7 +492,7 @@ const float czm_twoPi = 6.283185307179586; * @glslConstant */ const float czm_webMercatorMaxLatitude = 1.4844222297453324; -`,pAe=`/** +`,o_e=`/** * @name czm_depthRangeStruct * @glslStruct */ @@ -514,7 +501,7 @@ struct czm_depthRangeStruct float near; float far; }; -`,mAe=`/** +`,r_e=`/** * Holds material information that can be used for lighting. Returned by all czm_getMaterial functions. * * @name czm_material @@ -536,7 +523,7 @@ struct czm_material vec3 emission; float alpha; }; -`,_Ae=`/** +`,s_e=`/** * Used as input to every material's czm_getMaterial function. * * @name czm_materialInput @@ -564,7 +551,7 @@ struct czm_materialInput float slope; float aspect; }; -`,gAe=`/** +`,a_e=`/** * Struct for representing a material for a {@link Model}. The model * rendering pipeline will pass this struct between material, custom shaders, * and lighting stages. This is not to be confused with {@link czm_material} @@ -593,7 +580,7 @@ struct czm_modelMaterial { float occlusion; vec3 emissive; }; -`,yAe=`/** +`,c_e=`/** * Struct for representing the output of a custom vertex shader. * * @name czm_modelVertexOutput @@ -609,7 +596,7 @@ struct czm_modelVertexOutput { vec3 positionMC; float pointSize; }; -`,AAe=`/** +`,l_e=`/** * Parameters for {@link czm_pbrLighting} * * @name czm_material @@ -625,7 +612,7 @@ struct czm_pbrParameters float roughness; vec3 f0; }; -`,bAe=`/** +`,u_e=`/** * DOC_TBA * * @name czm_ray @@ -636,7 +623,7 @@ struct czm_ray vec3 origin; vec3 direction; }; -`,CAe=`/** +`,f_e=`/** * DOC_TBA * * @name czm_raySegment @@ -663,7 +650,7 @@ const czm_raySegment czm_emptyRaySegment = czm_raySegment(-czm_infinity, -czm_in * @glslConstant */ const czm_raySegment czm_fullRaySegment = czm_raySegment(0.0, czm_infinity); -`,TAe=`struct czm_shadowParameters +`,d_e=`struct czm_shadowParameters { #ifdef USE_CUBE_MAP_SHADOW vec3 texCoords; @@ -678,7 +665,7 @@ const czm_raySegment czm_fullRaySegment = czm_raySegment(0.0, czm_infinity); float normalShadingSmooth; float darkness; }; -`,EAe=`/** +`,h_e=`/** * Converts an HSB color (hue, saturation, brightness) to RGB * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl} * @@ -702,7 +689,7 @@ vec3 czm_HSBToRGB(vec3 hsb) vec3 p = abs(fract(hsb.xxx + K_HSB2RGB.xyz) * 6.0 - K_HSB2RGB.www); return hsb.z * mix(K_HSB2RGB.xxx, clamp(p - K_HSB2RGB.xxx, 0.0, 1.0), hsb.y); } -`,xAe=`/** +`,p_e=`/** * Converts an HSL color (hue, saturation, lightness) to RGB * HSL <-> RGB conversion: {@link http://www.chilliant.com/rgb2hsv.html} * @@ -733,7 +720,7 @@ vec3 czm_HSLToRGB(vec3 hsl) float c = (1.0 - abs(2.0 * hsl.z - 1.0)) * hsl.y; return (rgb - 0.5) * c + hsl.z; } -`,wAe=`/** +`,m_e=`/** * Converts an RGB color to HSB (hue, saturation, brightness) * HSB <-> RGB conversion with minimal branching: {@link http://lolengine.net/blog/2013/07/27/rgb-to-hsv-in-glsl} * @@ -760,7 +747,7 @@ vec3 czm_RGBToHSB(vec3 rgb) float d = q.x - min(q.w, q.y); return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + czm_epsilon7)), d / (q.x + czm_epsilon7), q.x); } -`,SAe=`/** +`,__e=`/** * Converts an RGB color to HSL (hue, saturation, lightness) * HSL <-> RGB conversion: {@link http://www.chilliant.com/rgb2hsv.html} * @@ -794,7 +781,7 @@ vec3 czm_RGBToHSL(vec3 rgb) float s = hcv.y / (1.0 - abs(l * 2.0 - 1.0) + czm_epsilon7); return vec3(hcv.x, s, l); } -`,vAe=`/** +`,g_e=`/** * Converts an RGB color to CIE Yxy. *

The conversion is described in * {@link http://content.gpwiki.org/index.php/D3DBook:High-Dynamic_Range_Rendering#Luminance_Transform|Luminance Transform} @@ -824,7 +811,7 @@ vec3 czm_RGBToXYZ(vec3 rgb) Yxy.gb = xyz.rg / temp; return Yxy; } -`,DAe=`/** +`,y_e=`/** * Converts a CIE Yxy color to RGB. *

The conversion is described in * {@link http://content.gpwiki.org/index.php/D3DBook:High-Dynamic_Range_Rendering#Luminance_Transform|Luminance Transform} @@ -854,7 +841,7 @@ vec3 czm_XYZToRGB(vec3 Yxy) return XYZ2RGB * xyz; } -`,IAe=`// See: +`,A_e=`// See: // https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/ vec3 czm_acesTonemapping(vec3 color) { @@ -870,7 +857,7 @@ vec3 czm_acesTonemapping(vec3 color) { return color; } -`,PAe=`/** +`,C_e=`/** * @private */ float czm_alphaWeight(float a) @@ -881,7 +868,7 @@ float czm_alphaWeight(float a) // http://jcgt.org/published/0002/02/09/ return pow(a + 0.01, 4.0) + max(1e-2, min(3.0 * 1e3, 0.003 / (1e-5 + pow(abs(z) / 200.0, 4.0)))); } -`,OAe=`/** +`,T_e=`/** * Procedural anti-aliasing by blurring two colors that meet at a sharp edge. * * @name czm_antialias @@ -920,7 +907,7 @@ vec4 czm_antialias(vec4 color1, vec4 color2, vec4 currentColor, float dist) { return czm_antialias(color1, color2, currentColor, dist, 0.1); } -`,LAe=`/** +`,b_e=`/** * Approximately computes spherical coordinates given a normal. * Uses approximate inverse trigonometry for speed and consistency, * since inverse trigonometry can differ from vendor-to-vendor and when compared with the CPU. @@ -938,7 +925,7 @@ vec2 czm_approximateSphericalCoordinates(vec3 normal) { float longitudeApproximation = czm_fastApproximateAtan(normal.x, normal.y); return vec2(latitudeApproximation, longitudeApproximation); } -`,BAe=`/** +`,E_e=`/** * Determines if the fragment is back facing * * @name czm_backFacing @@ -951,7 +938,7 @@ bool czm_backFacing() // !gl_FrontFacing doesn't work as expected on Mac/Intel so use the more verbose form instead. See https://github.com/CesiumGS/cesium/pull/8494. return gl_FrontFacing == false; } -`,RAe=`/** +`,x_e=`/** * Branchless ternary operator to be used when it's inexpensive to explicitly * evaluate both possibilities for a float expression. * @@ -1022,7 +1009,7 @@ vec4 czm_branchFreeTernary(bool comparison, vec4 a, vec4 b) { float useA = float(comparison); return a * useA + b * (1.0 - useA); } -`,NAe=` +`,w_e=` vec4 czm_cascadeColor(vec4 weights) { return vec4(1.0, 0.0, 0.0, 1.0) * weights.x + @@ -1030,14 +1017,14 @@ vec4 czm_cascadeColor(vec4 weights) vec4(0.0, 0.0, 1.0, 1.0) * weights.z + vec4(1.0, 0.0, 1.0, 1.0) * weights.w; } -`,MAe=` +`,S_e=` uniform vec4 shadowMap_cascadeDistances; float czm_cascadeDistance(vec4 weights) { return dot(shadowMap_cascadeDistances, weights); } -`,FAe=` +`,v_e=` uniform mat4 shadowMap_cascadeMatrices[4]; mat4 czm_cascadeMatrix(vec4 weights) @@ -1047,7 +1034,7 @@ mat4 czm_cascadeMatrix(vec4 weights) shadowMap_cascadeMatrices[2] * weights.z + shadowMap_cascadeMatrices[3] * weights.w; } -`,zAe=` +`,D_e=` uniform vec4 shadowMap_cascadeSplits[2]; vec4 czm_cascadeWeights(float depthEye) @@ -1057,7 +1044,7 @@ vec4 czm_cascadeWeights(float depthEye) vec4 far = step(depthEye, shadowMap_cascadeSplits[1]); return near * far; } -`,UAe=`/** +`,I_e=`/** * DOC_TBA * * @name czm_columbusViewMorph @@ -1069,7 +1056,7 @@ vec4 czm_columbusViewMorph(vec4 position2D, vec4 position3D, float time) vec3 p = mix(position2D.xyz, position3D.xyz, time); return vec4(p, 1.0); } -`,HAe=`/** +`,P_e=`/** * Returns a position in model coordinates relative to eye taking into * account the current scene mode: 3D, 2D, or Columbus view. *

@@ -1091,7 +1078,7 @@ vec4 czm_columbusViewMorph(vec4 position2D, vec4 position3D, float time) * @see czm_translateRelativeToEye */ vec4 czm_computePosition(); -`,VAe=`/** +`,O_e=`/** * @private */ vec2 cordic(float angle) @@ -1302,7 +1289,7 @@ vec2 czm_cosineAndSine(float angle) return cordic(angle); } } -`,kAe=`/** +`,L_e=`/** * Decompresses texture coordinates that were packed into a single float. * * @name czm_decompressTextureCoordinates @@ -1319,7 +1306,7 @@ vec2 czm_cosineAndSine(float angle) float sty = (encoded - xZeroTo4095 * 4096.0) / 4095.0; return vec2(stx, sty); } -`,GAe=`/** +`,B_e=`/** * Get default parameters for physically based rendering. These defaults * describe a rough dielectric (non-metal) surface (e.g. rough plastic). * @@ -1335,7 +1322,7 @@ czm_pbrParameters czm_defaultPbrMaterial() results.f0 = REFLECTANCE_DIELECTRIC; return results; } -`,WAe=`// emulated noperspective +`,R_e=`// emulated noperspective #if defined(GL_EXT_frag_depth) && !defined(LOG_DEPTH) varying float v_WindowZ; #endif @@ -1382,7 +1369,7 @@ vec4 czm_depthClamp(vec4 coords) #endif return coords; } -`,jAe=`/** +`,N_e=`/** * Computes a 3x3 rotation matrix that transforms vectors from an ellipsoid's east-north-up coordinate system * to eye coordinates. In east-north-up coordinates, x points east, y points north, and z points along the * surface normal. East-north-up can be used as an ellipsoid's tangent space for operations such as bump mapping. @@ -1415,7 +1402,7 @@ mat3 czm_eastNorthUpToEyeCoordinates(vec3 positionMC, vec3 normalEC) bitangentEC.x, bitangentEC.y, bitangentEC.z, normalEC.x, normalEC.y, normalEC.z); } -`,qAe=`/** +`,M_e=`/** * DOC_TBA * * @name czm_ellipsoidContainsPoint @@ -1427,7 +1414,7 @@ bool czm_ellipsoidContainsPoint(vec3 ellipsoid_inverseRadii, vec3 point) vec3 scaled = ellipsoid_inverseRadii * (czm_inverseModelView * vec4(point, 1.0)).xyz; return (dot(scaled, scaled) <= 1.0); } -`,$Ae=`/** +`,F_e=`/** * DOC_TBA * * @name czm_ellipsoidWgs84TextureCoordinates @@ -1437,7 +1424,7 @@ vec2 czm_ellipsoidWgs84TextureCoordinates(vec3 normal) { return vec2(atan(normal.y, normal.x) * czm_oneOverTwoPi + 0.5, asin(normal.z) * czm_oneOverPi + 0.5); } -`,YAe=`/** +`,z_e=`/** * Compares left and right componentwise. Returns true * if they are within epsilon and false otherwise. The inputs * left and right can be floats, vec2s, @@ -1473,7 +1460,7 @@ bool czm_equalsEpsilon(vec2 left, vec2 right, float epsilon) { bool czm_equalsEpsilon(float left, float right, float epsilon) { return (abs(left - right) <= epsilon); } -`,XAe=`/** +`,U_e=`/** * DOC_TBA * * @name czm_eyeOffset @@ -1493,7 +1480,7 @@ vec4 czm_eyeOffset(vec4 positionEC, vec3 eyeOffset) p.z += zEyeOffset.z; return p; } -`,KAe=`/** +`,H_e=`/** * Transforms a position from eye to window coordinates. The transformation * from eye to clip coordinates is done using {@link czm_projection}. * The transform from normalized device coordinates to window coordinates is @@ -1525,7 +1512,7 @@ vec4 czm_eyeToWindowCoordinates(vec4 positionEC) q.xyz = (czm_viewportTransformation * vec4(q.xyz, 1.0)).xyz; // window coordinates return q; } -`,JAe=`/** +`,V_e=`/** * Approxiamtes atan over the range [0, 1]. Safe to flip output for negative input. * * Based on Michal Drobot's approximation from ShaderFastLibs, which in turn is based on @@ -1580,7 +1567,7 @@ float czm_fastApproximateAtan(float x, float y) { t = czm_branchFreeTernary(y < 0.0, -t, t); return t; } -`,QAe=`/** +`,k_e=`/** * Gets the color with fog at a distance from the camera. * * @name czm_fog @@ -1618,7 +1605,7 @@ vec3 czm_fog(float distanceToCamera, vec3 color, vec3 fogColor, float fogModifie float fog = 1.0 - exp(-((fogModifierConstant * scalar + fogModifierConstant) * (scalar * (1.0 + fogModifierConstant)))); return mix(color, fogColor, fog); } -`,ZAe=`/** +`,G_e=`/** * Converts a color from RGB space to linear space. * * @name czm_gammaCorrect @@ -1640,7 +1627,7 @@ vec4 czm_gammaCorrect(vec4 color) { #endif return color; } -`,ebe=`/** +`,W_e=`/** * DOC_TBA * * @name czm_geodeticSurfaceNormal @@ -1656,7 +1643,7 @@ vec3 czm_geodeticSurfaceNormal(vec3 positionOnEllipsoid, vec3 ellipsoidCenter, v { return normalize((positionOnEllipsoid - ellipsoidCenter) * oneOverEllipsoidRadiiSquared); } -`,tbe=`/** +`,j_e=`/** * An czm_material with default values. Every material's czm_getMaterial * should use this default material as a base for the material it returns. * The default normal value is given by materialInput.normalEC. @@ -1683,7 +1670,7 @@ czm_material czm_getDefaultMaterial(czm_materialInput materialInput) material.alpha = 1.0; return material; } -`,nbe=`/** +`,q_e=`/** * Calculates the intensity of diffusely reflected light. * * @name czm_getLambertDiffuse @@ -1705,7 +1692,7 @@ float czm_getLambertDiffuse(vec3 lightDirectionEC, vec3 normalEC) { return max(dot(lightDirectionEC, normalEC), 0.0); } -`,ibe=`/** +`,Y_e=`/** * Calculates the specular intensity of reflected light. * * @name czm_getSpecular @@ -1734,7 +1721,7 @@ float czm_getSpecular(vec3 lightDirectionEC, vec3 toEyeEC, vec3 normalEC, float // Prevent this by making sure shininess is at least czm_epsilon2. return pow(specular, max(shininess, czm_epsilon2)); } -`,obe=`/** +`,$_e=`/** * @private */ vec4 czm_getWaterNoise(sampler2D normalMap, vec2 uv, float time, float angleInRadians) @@ -1771,7 +1758,7 @@ vec4 czm_getWaterNoise(sampler2D normalMap, vec2 uv, float time, float angleInRa // average and scale to between -1 and 1 return ((noise / 4.0) - 0.5) * 2.0; } -`,rbe=`/** +`,X_e=`/** * Adjusts the hue of a color. * * @name czm_hue @@ -1801,7 +1788,7 @@ vec3 czm_hue(vec3 rgb, float adjustment) vec3 color = vec3(yiq.x, chroma * cos(hue), chroma * sin(hue)); return toRGB * color; } -`,sbe=`/** +`,K_e=`/** * Converts a color in linear space to RGB space. * * @name czm_inverseGamma @@ -1813,7 +1800,7 @@ vec3 czm_hue(vec3 rgb, float adjustment) vec3 czm_inverseGamma(vec3 color) { return pow(color, vec3(1.0 / czm_gamma)); } -`,abe=`/** +`,J_e=`/** * Determines if a time interval is empty. * * @name czm_isEmpty @@ -1832,7 +1819,7 @@ bool czm_isEmpty(czm_raySegment interval) { return (interval.stop < 0.0); } -`,cbe=`/** +`,Q_e=`/** * Determines if a time interval is empty. * * @name czm_isFull @@ -1851,7 +1838,7 @@ bool czm_isFull(czm_raySegment interval) { return (interval.start == 0.0 && interval.stop == czm_infinity); } -`,lbe=`/** +`,Z_e=`/** * Computes the fraction of a Web Wercator rectangle at which a given geodetic latitude is located. * * @name czm_latitudeToWebMercatorFraction @@ -1872,7 +1859,7 @@ float czm_latitudeToWebMercatorFraction(float latitude, float southMercatorY, fl return (mercatorY - southMercatorY) * oneOverMercatorHeight; } -`,ube=`/** +`,ege=`/** * Computes distance from an point in 2D to a line in 2D. * * @name czm_lineDistance @@ -1886,7 +1873,7 @@ float czm_latitudeToWebMercatorFraction(float latitude, float southMercatorY, fl float czm_lineDistance(vec2 point1, vec2 point2, vec2 point) { return abs((point2.y - point1.y) * point.x - (point2.x - point1.x) * point.y + point2.x * point1.y - point2.y * point1.x) / distance(point2, point1); } -`,dbe=`/** +`,tge=`/** * Converts a linear RGB color to an sRGB color. * * @param {vec3|vec4} linearIn The color in linear color space. @@ -1902,7 +1889,7 @@ vec4 czm_linearToSrgb(vec4 linearIn) vec3 srgbOut = pow(linearIn.rgb, vec3(1.0/2.2)); return vec4(srgbOut, linearIn.a); } -`,fbe=`/** +`,nge=`/** * Computes the luminance of a color. * * @name czm_luminance @@ -1922,7 +1909,7 @@ float czm_luminance(vec3 rgb) const vec3 W = vec3(0.2125, 0.7154, 0.0721); return dot(rgb, W); } -`,hbe=`/** +`,ige=`/** * Computes the size of a pixel in meters at a distance from the eye. *

* Use this version when passing in a custom pixel ratio. For example, passing in 1.0 will return meters per native device pixel. @@ -1983,7 +1970,7 @@ float czm_metersPerPixel(vec4 positionEC) { return czm_metersPerPixel(positionEC, czm_pixelRatio); } -`,pbe=`/** +`,oge=`/** * Transforms a position from model to window coordinates. The transformation * from model to clip coordinates is done using {@link czm_modelViewProjection}. * The transform from normalized device coordinates to window coordinates is @@ -2020,7 +2007,7 @@ vec4 czm_modelToWindowCoordinates(vec4 position) q.xyz = (czm_viewportTransformation * vec4(q.xyz, 1.0)).xyz; // window coordinates return q; } -`,mbe=`/** +`,rge=`/** * DOC_TBA * * @name czm_multiplyWithColorBalance @@ -2038,7 +2025,7 @@ vec3 czm_multiplyWithColorBalance(vec3 left, vec3 right) return ((leftLuminance + rightLuminance) / (2.0 * targetLuminance)) * target; } -`,_be=`/** +`,sge=`/** * Computes a value that scales with distance. The scaling is clamped at the near and * far distances, and does not extrapolate. This function works with the * {@link NearFarScalar} JavaScript class. @@ -2064,7 +2051,7 @@ float czm_nearFarScalar(vec4 nearFarScalar, float cameraDistSq) return mix(valueAtMin, valueAtMax, t); } -`,gbe=` /** +`,age=` /** * Decodes a unit-length vector in 'oct' encoding to a normalized 3-component Cartesian vector. * The 'oct' encoding is described in "A Survey of Efficient Representations of Independent Unit Vectors", * Cigolle et al 2014: http://jcgt.org/published/0003/02/01/ @@ -2147,7 +2134,7 @@ float czm_nearFarScalar(vec4 nearFarScalar, float cameraDistSq) vector3 = czm_octDecode(vec2(x, y)); } -`,ybe=`/** +`,cge=`/** * Packs a depth value into a vec3 that can be represented by unsigned bytes. * * @name czm_packDepth @@ -2165,7 +2152,7 @@ vec4 czm_packDepth(float depth) enc -= enc.yzww * vec4(1.0 / 255.0, 1.0 / 255.0, 1.0 / 255.0, 0.0); return enc; } -`,Abe=`vec3 lambertianDiffuse(vec3 diffuseColor) +`,lge=`vec3 lambertianDiffuse(vec3 diffuseColor) { return diffuseColor / czm_pi; } @@ -2264,7 +2251,7 @@ vec3 czm_pbrLighting( // Lo = (diffuse + specular) * Li * NdotL return (diffuseContribution + specularContribution) * NdotL * lightColorHdr; } -`,bbe=`/** +`,uge=`/** * Compute parameters for physically based rendering using the * metallic/roughness workflow. All inputs are linear; sRGB texture values must * be decoded beforehand @@ -2301,7 +2288,7 @@ czm_pbrParameters czm_pbrMetallicRoughnessMaterial( return results; } -`,Cbe=`/** +`,fge=`/** * Compute parameters for physically based rendering using the * specular/glossy workflow. All inputs are linear; sRGB texture values must * be decoded beforehand @@ -2331,7 +2318,7 @@ czm_pbrParameters czm_pbrSpecularGlossinessMaterial( return results; } -`,Tbe=`float czm_private_getLambertDiffuseOfMaterial(vec3 lightDirectionEC, czm_material material) +`,dge=`float czm_private_getLambertDiffuseOfMaterial(vec3 lightDirectionEC, czm_material material) { return czm_getLambertDiffuse(lightDirectionEC, material.normal); } @@ -2394,7 +2381,7 @@ vec4 czm_private_phong(vec3 toEye, czm_material material, vec3 lightDirectionEC) return vec4(color, material.alpha); } -`,Ebe=`/** +`,hge=`/** * Computes distance from a point to a plane. * * @name czm_planeDistance @@ -2422,7 +2409,7 @@ float czm_planeDistance(vec4 plane, vec3 point) { float czm_planeDistance(vec3 planeNormal, float planeDistance, vec3 point) { return (dot(planeNormal, point) + planeDistance); } -`,xbe=`/** +`,pge=`/** * Computes the point along a ray at the given time. time can be positive, negative, or zero. * * @name czm_pointAlongRay @@ -2441,7 +2428,7 @@ vec3 czm_pointAlongRay(czm_ray ray, float time) { return ray.origin + (time * ray.direction); } -`,wbe=`/** +`,mge=`/** * DOC_TBA * * @name czm_rayEllipsoidIntersectionInterval @@ -2524,7 +2511,7 @@ czm_raySegment czm_rayEllipsoidIntersectionInterval(czm_ray ray, vec3 ellipsoid_ } } } -`,Sbe=`/** +`,_ge=`/** * Compute the intersection interval of a ray with a sphere. * * @name czm_raySphereIntersectionInterval @@ -2560,11 +2547,11 @@ czm_raySegment czm_raySphereIntersectionInterval(czm_ray ray, vec3 center, float czm_raySegment result = czm_raySegment(t0, t1); return result; } -`,vbe=`float czm_readDepth(sampler2D depthTexture, vec2 texCoords) +`,gge=`float czm_readDepth(sampler2D depthTexture, vec2 texCoords) { return czm_reverseLogDepth(texture2D(depthTexture, texCoords).r); } -`,Dbe=`/** +`,yge=`/** * Reads a value previously transformed with {@link czm_writeNonPerspective} * by dividing it by \`w\`, the value used in the perspective divide. * This function is intended to be called in a fragment shader to access a @@ -2595,7 +2582,7 @@ vec3 czm_readNonPerspective(vec3 value, float oneOverW) { vec4 czm_readNonPerspective(vec4 value, float oneOverW) { return value * oneOverW; } -`,Ibe=`float czm_reverseLogDepth(float logZ) +`,Age=`float czm_reverseLogDepth(float logZ) { #ifdef LOG_DEPTH float near = czm_currentFrustum.x; @@ -2606,7 +2593,7 @@ vec4 czm_readNonPerspective(vec4 value, float oneOverW) { #endif return logZ; } -`,Pbe=`/** +`,Cge=`/** * Round a floating point value. This function exists because round() doesn't * exist in GLSL 1.00. * @@ -2628,7 +2615,7 @@ vec3 czm_round(vec3 value) { vec4 czm_round(vec4 value) { return floor(value + 0.5); } -`,Obe=`/** +`,Tge=`/** * Samples the 4 neighboring pixels and return the weighted average. * * @private @@ -2706,7 +2693,7 @@ vec3 czm_sampleOctahedralProjection(sampler2D projectedMap, vec2 textureSize, ve return mix(colorNextLod, colorCurrentLod, nextLod - lod); } -`,Lbe=`/** +`,bge=`/** * Adjusts the saturation of a color. * * @name czm_saturation @@ -2728,7 +2715,7 @@ vec3 czm_saturation(vec3 rgb, float adjustment) vec3 intensity = vec3(dot(rgb, W)); return mix(intensity, rgb, adjustment); } -`,Bbe=` +`,Ege=` float czm_sampleShadowMap(highp samplerCube shadowMap, vec3 d) { return czm_unpackDepth(textureCube(shadowMap, d)); @@ -2752,7 +2739,7 @@ float czm_shadowDepthCompare(sampler2D shadowMap, vec2 uv, float depth) { return step(depth, czm_sampleShadowMap(shadowMap, uv)); } -`,Rbe=` +`,xge=` float czm_private_shadowVisibility(float visibility, float nDotL, float normalShadingSmooth, float darkness) { #ifdef USE_NORMAL_SHADING @@ -2818,7 +2805,7 @@ float czm_shadowVisibility(sampler2D shadowMap, czm_shadowParameters shadowParam return czm_private_shadowVisibility(visibility, nDotL, normalShadingSmooth, darkness); } #endif -`,Nbe=`/** +`,wge=`/** * Returns 1.0 if the given value is positive or zero, and -1.0 if it is negative. This is similar to the GLSL * built-in function sign except that returns 1.0 instead of 0.0 when the input value is 0.0. * @@ -2847,7 +2834,7 @@ vec4 czm_signNotZero(vec4 value) { return vec4(czm_signNotZero(value.x), czm_signNotZero(value.y), czm_signNotZero(value.z), czm_signNotZero(value.w)); } -`,Mbe=`/** +`,Sge=`/** * Computes a color from the third order spherical harmonic coefficients and a normalized direction vector. *

* The order of the coefficients is [L00, L1_1, L10, L11, L2_2, L2_1, L20, L21, L22]. @@ -2889,7 +2876,7 @@ vec3 czm_sphericalHarmonics(vec3 normal, vec3 coefficients[9]) + L21 * (z * x) + L22 * (x * x - y * y); } -`,Fbe=`/** +`,vge=`/** * Converts an sRGB color to a linear RGB color. * * @param {vec3|vec4} srgbIn The color in sRGB space @@ -2905,7 +2892,7 @@ vec4 czm_srgbToLinear(vec4 srgbIn) vec3 linearOut = pow(srgbIn.rgb, vec3(2.2)); return vec4(linearOut, srgbIn.a); } -`,zbe=`/** +`,Dge=`/** * Creates a matrix that transforms vectors from tangent space to eye space. * * @name czm_tangentToEyeSpaceMatrix @@ -2930,7 +2917,7 @@ mat3 czm_tangentToEyeSpaceMatrix(vec3 normalEC, vec3 tangentEC, vec3 bitangentEC bitangent.x, bitangent.y, bitangent.z, normal.x , normal.y , normal.z); } -`,Ube=`/** +`,Ige=`/** * Transforms a plane. * * @name czm_transformPlane @@ -2945,7 +2932,7 @@ vec4 czm_transformPlane(vec4 plane, mat4 transform) { float normalMagnitude = length(transformedPlane.xyz); return transformedPlane / normalMagnitude; } -`,Hbe=`/** +`,Pge=`/** * Translates a position (or any vec3) that was encoded with {@link EncodedCartesian3}, * and then provided to the shader as separate high and low bits to * be relative to the eye. As shown in the example, the position can then be transformed in eye @@ -2985,7 +2972,7 @@ vec4 czm_translateRelativeToEye(vec3 high, vec3 low) return vec4(highDifference + lowDifference, 1.0); } -`,Vbe=`/** +`,Oge=`/** * @private */ vec4 czm_translucentPhong(vec3 toEye, czm_material material, vec3 lightDirectionEC) @@ -3012,7 +2999,7 @@ vec4 czm_translucentPhong(vec3 toEye, czm_material material, vec3 lightDirection return vec4(color, material.alpha); } -`,kbe=`/** +`,Lge=`/** * Returns the transpose of the matrix. The input matrix can be * a mat2, mat3, or mat4. * @@ -3057,7 +3044,7 @@ mat4 czm_transpose(mat4 matrix) matrix[0][2], matrix[1][2], matrix[2][2], matrix[3][2], matrix[0][3], matrix[1][3], matrix[2][3], matrix[3][3]); } -`,Gbe=`/** +`,Bge=`/** * Unpacks a vec4 depth value to a float in [0, 1) range. * * @name czm_unpackDepth @@ -3073,7 +3060,7 @@ mat4 czm_transpose(mat4 matrix) // http://aras-p.info/blog/2009/07/30/encoding-floats-to-rgba-the-final/ return dot(packedDepth, vec4(1.0, 1.0 / 255.0, 1.0 / 65025.0, 1.0 / 16581375.0)); } -`,Wbe=`/** +`,Rge=`/** * Unpack an IEEE 754 single-precision float that is packed as a little-endian unsigned normalized vec4. * * @name czm_unpackFloat @@ -3097,7 +3084,7 @@ float czm_unpackFloat(vec4 packedFloat) float result = sign * exp2(exponent - 23.0) * mantissa; return result; } -`,jbe=`/** +`,Nge=`/** * Unpack unsigned integers of 1-4 bytes. in WebGL 1, there is no uint type, * so the return value is an int. *

@@ -3128,7 +3115,7 @@ float czm_unpackFloat(vec4 packedFloat) vec4 rounded = czm_round(packedValue * 255.0); return int(dot(rounded, vec4(1.0, 256.0, 65536.0, 16777216.0))); } -`,qbe=`/** +`,Mge=`/** * Transform metadata values following the EXT_structural_metadata spec * by multiplying by scale and adding the offset. Operations are always * performed component-wise, even for matrices. @@ -3166,7 +3153,7 @@ mat3 czm_valueTransform(mat3 offset, mat3 scale, mat3 value) { mat4 czm_valueTransform(mat4 offset, mat4 scale, mat4 value) { return matrixCompMult(scale, value) + offset; } -`,$be=`#ifdef LOG_DEPTH +`,Fge=`#ifdef LOG_DEPTH // 1.0 at the near plane, increasing linearly from there. varying float v_depthFromNearPlusOne; #ifdef SHADOW_MAP @@ -3230,7 +3217,7 @@ void czm_vertexLogDepth(vec4 clipCoords) czm_updatePositionDepth(clipCoords); #endif } -`,Ybe=`vec4 czm_screenToEyeCoordinates(vec4 screenCoordinate) +`,zge=`vec4 czm_screenToEyeCoordinates(vec4 screenCoordinate) { // Reconstruct NDC coordinates float x = 2.0 * screenCoordinate.x - 1.0; @@ -3341,7 +3328,7 @@ vec4 czm_windowToEyeCoordinates(vec2 fragmentCoordinateXY, float depthOrLogDepth vec2 screenCoordXY = (fragmentCoordinateXY.xy - czm_viewport.xy) / czm_viewport.zw; return czm_screenToEyeCoordinates(screenCoordXY, depthOrLogDepth); } -`,Xbe=`// emulated noperspective +`,Uge=`// emulated noperspective #if defined(GL_EXT_frag_depth) && !defined(LOG_DEPTH) varying float v_WindowZ; #endif @@ -3368,7 +3355,7 @@ void czm_writeDepthClamp() gl_FragDepthEXT = clamp(v_WindowZ * gl_FragCoord.w, 0.0, 1.0); #endif } -`,Kbe=`#ifdef LOG_DEPTH +`,Hge=`#ifdef LOG_DEPTH varying float v_depthFromNearPlusOne; #ifdef POLYGON_OFFSET @@ -3450,7 +3437,7 @@ void czm_writeLogDepth() { czm_writeLogDepth(v_depthFromNearPlusOne); #endif } -`,Jbe=`/** +`,Vge=`/** * Transforms a value for non-perspective interpolation by multiplying * it by w, the value used in the perspective divide. This function is * intended to be called in a vertex shader to compute the value of a @@ -3482,16 +3469,16 @@ vec3 czm_writeNonPerspective(vec3 value, float w) { vec4 czm_writeNonPerspective(vec4 value, float w) { return value * w; } -`,m1={czm_degreesPerRadian:P0e,czm_depthRange:O0e,czm_epsilon1:L0e,czm_epsilon2:B0e,czm_epsilon3:R0e,czm_epsilon4:N0e,czm_epsilon5:M0e,czm_epsilon6:F0e,czm_epsilon7:z0e,czm_infinity:U0e,czm_oneOverPi:H0e,czm_oneOverTwoPi:V0e,czm_passCesium3DTile:k0e,czm_passCesium3DTileClassification:G0e,czm_passCesium3DTileClassificationIgnoreShow:W0e,czm_passClassification:j0e,czm_passCompute:q0e,czm_passEnvironment:$0e,czm_passGlobe:Y0e,czm_passOpaque:X0e,czm_passOverlay:K0e,czm_passTerrainClassification:J0e,czm_passTranslucent:Q0e,czm_passVoxels:Z0e,czm_pi:eAe,czm_piOverFour:tAe,czm_piOverSix:nAe,czm_piOverThree:iAe,czm_piOverTwo:oAe,czm_radiansPerDegree:rAe,czm_sceneMode2D:sAe,czm_sceneMode3D:aAe,czm_sceneModeColumbusView:cAe,czm_sceneModeMorphing:lAe,czm_solarRadius:uAe,czm_threePiOver2:dAe,czm_twoPi:fAe,czm_webMercatorMaxLatitude:hAe,czm_depthRangeStruct:pAe,czm_material:mAe,czm_materialInput:_Ae,czm_modelMaterial:gAe,czm_modelVertexOutput:yAe,czm_pbrParameters:AAe,czm_ray:bAe,czm_raySegment:CAe,czm_shadowParameters:TAe,czm_HSBToRGB:EAe,czm_HSLToRGB:xAe,czm_RGBToHSB:wAe,czm_RGBToHSL:SAe,czm_RGBToXYZ:vAe,czm_XYZToRGB:DAe,czm_acesTonemapping:IAe,czm_alphaWeight:PAe,czm_antialias:OAe,czm_approximateSphericalCoordinates:LAe,czm_backFacing:BAe,czm_branchFreeTernary:RAe,czm_cascadeColor:NAe,czm_cascadeDistance:MAe,czm_cascadeMatrix:FAe,czm_cascadeWeights:zAe,czm_columbusViewMorph:UAe,czm_computePosition:HAe,czm_cosineAndSine:VAe,czm_decompressTextureCoordinates:kAe,czm_defaultPbrMaterial:GAe,czm_depthClamp:WAe,czm_eastNorthUpToEyeCoordinates:jAe,czm_ellipsoidContainsPoint:qAe,czm_ellipsoidWgs84TextureCoordinates:$Ae,czm_equalsEpsilon:YAe,czm_eyeOffset:XAe,czm_eyeToWindowCoordinates:KAe,czm_fastApproximateAtan:JAe,czm_fog:QAe,czm_gammaCorrect:ZAe,czm_geodeticSurfaceNormal:ebe,czm_getDefaultMaterial:tbe,czm_getLambertDiffuse:nbe,czm_getSpecular:ibe,czm_getWaterNoise:obe,czm_hue:rbe,czm_inverseGamma:sbe,czm_isEmpty:abe,czm_isFull:cbe,czm_latitudeToWebMercatorFraction:lbe,czm_lineDistance:ube,czm_linearToSrgb:dbe,czm_luminance:fbe,czm_metersPerPixel:hbe,czm_modelToWindowCoordinates:pbe,czm_multiplyWithColorBalance:mbe,czm_nearFarScalar:_be,czm_octDecode:gbe,czm_packDepth:ybe,czm_pbrLighting:Abe,czm_pbrMetallicRoughnessMaterial:bbe,czm_pbrSpecularGlossinessMaterial:Cbe,czm_phong:Tbe,czm_planeDistance:Ebe,czm_pointAlongRay:xbe,czm_rayEllipsoidIntersectionInterval:wbe,czm_raySphereIntersectionInterval:Sbe,czm_readDepth:vbe,czm_readNonPerspective:Dbe,czm_reverseLogDepth:Ibe,czm_round:Pbe,czm_sampleOctahedralProjection:Obe,czm_saturation:Lbe,czm_shadowDepthCompare:Bbe,czm_shadowVisibility:Rbe,czm_signNotZero:Nbe,czm_sphericalHarmonics:Mbe,czm_srgbToLinear:Fbe,czm_tangentToEyeSpaceMatrix:zbe,czm_transformPlane:Ube,czm_translateRelativeToEye:Hbe,czm_translucentPhong:Vbe,czm_transpose:kbe,czm_unpackDepth:Gbe,czm_unpackFloat:Wbe,czm_unpackUint:jbe,czm_valueTransform:qbe,czm_vertexLogDepth:$be,czm_windowToEyeCoordinates:Ybe,czm_writeDepthClamp:Xbe,czm_writeLogDepth:Kbe,czm_writeNonPerspective:Jbe};function _q(e){return e=e.replace(/\/\/.*/g,""),e.replace(/\/\*\*[\s\S]*?\*\//gm,function(t){const n=t.match(/\n/gm).length;let i="";for(let o=0;o0;){const o=e.pop();n.push(o),o.requiredBy.length===0&&t.push(o)}for(;t.length>0;){const o=t.shift();e.push(o);for(let r=0;r0;){const o=e.pop();n.push(o),o.requiredBy.length===0&&t.push(o)}for(;t.length>0;){const o=t.shift();e.push(o);for(let r=0;r=0;--o)i=`${i+t[o].glslSource} -`;return i.replace(n.glslSource,"")}function Aq(e,t,n){let i,o,r="";const s=e.sources;if(l(s))for(i=0,o=s.length;i=0;--o)i=`${i+t[o].glslSource} +`;return i.replace(n.glslSource,"")}function ZW(e,t,n){let i,o,r="";const s=e.sources;if(l(s))for(i=0,o=s.length;i-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};Cu.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};Cu.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new We({sources:[r]})),typeof s=="string"&&(s=new We({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),d=s.createCombinedFragmentShader(c),h=new Cn({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:d,attributeLocations:a}),m={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=m,this._shaders[o]=m,h};function fM(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;oIt.maximumTextureSize)throw new x(`Width must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(T.typeOf.number.greaterThan("height",i,0),i>It.maximumTextureSize)throw new x(`Height must be less than or equal to the maximum texture size (${It.maximumTextureSize}). Check maximumTextureSize.`);if(!rt.validate(r))throw new x("Invalid options.pixelFormat.");if(!c&&!Qe.validate(s))throw new x("Invalid options.pixelDatatype.");if(r===rt.DEPTH_COMPONENT&&s!==Qe.UNSIGNED_SHORT&&s!==Qe.UNSIGNED_INT)throw new x("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===rt.DEPTH_STENCIL&&s!==Qe.UNSIGNED_INT_24_8)throw new x("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Qe.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Qe.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(rt.isDepthFormat(r)){if(l(o))throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new x("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(rt.isDXTFormat(a)&&!t.s3tc)throw new x("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(rt.isPVRTCFormat(a)&&!t.pvrtc)throw new x("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(rt.isASTCFormat(a)&&!t.astc)throw new x("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(rt.isETC2Format(a)&&!t.etc)throw new x("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(rt.isETC1Format(a)&&!t.etc1)throw new x("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(rt.isBC7Format(a)&&!t.bc7)throw new x("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(rt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new x("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===rt.RGB||r===rt.LUMINANCE,d=A(e.flipY,!0),h=A(e.skipColorSpaceConversion,!1);let m=!0;const g=t._gl,p=g.TEXTURE_2D,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);let b=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(b=rt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,b),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let E=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,E),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new x("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new x("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new Wt({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(Wt.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===In.NEAREST_MIPMAP_NEAREST||t===In.NEAREST_MIPMAP_LINEAR||t===In.LINEAR_MIPMAP_NEAREST||t===In.LINEAR_MIPMAP_LINEAR;(r===Qe.FLOAT&&!i.textureFloatLinear||r===Qe.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?In.NEAREST_MIPMAP_NEAREST:In.NEAREST,n=Kr.NEAREST),i.webgl2&&rt.isDepthFormat(o)&&(t=In.NEAREST,n=Kr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});Wt.prototype.copyFrom=function(e){T.defined("options",e);const t=A(e.xOffset,0),n=A(e.yOffset,0);if(T.defined("options.source",e.source),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",t,0),T.typeOf.number.greaterThanOrEquals("yOffset",n,0),T.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),T.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const d=this._width,h=this._height,m=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,y=this._preMultiplyAlpha,b=this._flipY,C=A(e.skipColorSpaceConversion,!1);let E=4;l(u)&&(E=rt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,E),C?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===d&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,d,h)),r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texImage2D(s,0,m,g,Qe.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=rt.createTypedArray(g,p,d,h);r.texImage2D(s,0,m,d,h,0,g,Qe.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),b&&(u=rt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Qe.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,b),r.texSubImage2D(s,0,t,n,g,Qe.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};Wt.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._width),r=A(r,this._height),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Qe.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Qe.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");T.typeOf.number.greaterThanOrEquals("xOffset",e,0),T.typeOf.number.greaterThanOrEquals("yOffset",t,0),T.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),T.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),T.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),T.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};Wt.prototype.generateMipmap=function(e){if(e=A(e,d0.DONT_CARE),rt.isDepthFormat(this._pixelFormat))throw new x("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(rt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!M.isPowerOfTwo(this._width))throw new x("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!M.isPowerOfTwo(this._height))throw new x("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!d0.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};Wt.prototype.isDestroyed=function(){return!1};Wt.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),He(this)};function Q_(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(Q_.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});Q_.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};Q_.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};Q_.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};Q_.prototype.isDestroyed=function(){return!1};Q_.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return He(this)};function Rn(){this.high=f.clone(f.ZERO),this.low=f.clone(f.ZERO)}Rn.encode=function(e,t){T.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const kd={high:0,low:0};Rn.fromCartesian=function(e,t){T.typeOf.object("cartesian",e),l(t)||(t=new Rn);const n=t.high,i=t.low;return Rn.encode(e.x,kd),n.x=kd.high,i.x=kd.low,Rn.encode(e.y,kd),n.y=kd.high,i.y=kd.low,Rn.encode(e.z,kd),n.z=kd.high,i.z=kd.low,t};const _1=new Rn;Rn.writeElements=function(e,t,n){T.defined("cartesianArray",t),T.typeOf.number("index",n),T.typeOf.number.greaterThanOrEquals("index",n,0),Rn.fromCartesian(e,_1);const i=_1.high,o=_1.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function Pt(e,t){if(T.typeOf.object("normal",e),!M.equalsEpsilon(f.magnitude(e),1,M.EPSILON6))throw new x("normal must be normalized.");T.typeOf.number("distance",t),this.normal=f.clone(e),this.distance=t}Pt.fromPointNormal=function(e,t,n){if(T.typeOf.object("point",e),T.typeOf.object("normal",t),!M.equalsEpsilon(f.magnitude(t),1,M.EPSILON6))throw new x("normal must be normalized.");const i=-f.dot(t,e);return l(n)?(f.clone(t,n.normal),n.distance=i,n):new Pt(t,i)};const oCe=new f;Pt.fromCartesian4=function(e,t){T.typeOf.object("coefficients",e);const n=f.fromCartesian4(e,oCe),i=e.w;if(!M.equalsEpsilon(f.magnitude(n),1,M.EPSILON6))throw new x("normal must be normalized.");return l(t)?(f.clone(n,t.normal),t.distance=i,t):new Pt(n,i)};Pt.getPointDistance=function(e,t){return T.typeOf.object("plane",e),T.typeOf.object("point",t),f.dot(e.normal,t)+e.distance};const rCe=new f;Pt.projectPointOntoPlane=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("point",t),l(n)||(n=new f);const i=Pt.getPointDistance(e,t),o=f.multiplyByScalar(e.normal,i,rCe);return f.subtract(t,o,n)};const sCe=new B,aCe=new oe,cCe=new f;Pt.transform=function(e,t,n){T.typeOf.object("plane",e),T.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,sCe);let s=oe.fromElements(i.x,i.y,i.z,o,aCe);s=B.multiplyByVector(r,s,s);const a=f.fromCartesian4(s,cCe);return s=oe.divideByScalar(s,f.magnitude(a),s),Pt.fromCartesian4(s,n)};Pt.clone=function(e,t){return T.typeOf.object("plane",e),l(t)?(f.clone(e.normal,t.normal),t.distance=e.distance,t):new Pt(e.normal,e.distance)};Pt.equals=function(e,t){return T.typeOf.object("left",e),T.typeOf.object("right",t),e.distance===t.distance&&f.equals(e.normal,t.normal)};Pt.ORIGIN_XY_PLANE=Object.freeze(new Pt(f.UNIT_Z,0));Pt.ORIGIN_YZ_PLANE=Object.freeze(new Pt(f.UNIT_X,0));Pt.ORIGIN_ZX_PLANE=Object.freeze(new Pt(f.UNIT_Y,0));function ar(e){this.planes=A(e,[])}const bC=[new f,new f,new f];f.clone(f.UNIT_X,bC[0]);f.clone(f.UNIT_Y,bC[1]);f.clone(f.UNIT_Z,bC[2]);const bh=new f,lCe=new f,Tq=new Pt(new f(1,0,0),0);ar.fromBoundingSphere=function(e,t){if(!l(e))throw new x("boundingSphere is required.");l(t)||(t=new ar);const n=bC.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new x("right must be greater than left.");if(e.bottom>e.top)throw new x("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(Wo.prototype,{projectionMatrix:{get:function(){return Eq(this),this._orthographicMatrix}}});const uCe=new f,dCe=new f,fCe=new f,g1=new f;Wo.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("direction is required.");if(!l(n))throw new x("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,d=f.cross(t,n,uCe);f.normalize(d,d);const h=dCe;f.multiplyByScalar(t,c,h),f.add(e,h,h);const m=fCe;f.multiplyByScalar(d,a,m),f.add(h,m,m);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=d.x,g.y=d.y,g.z=d.z,g.w=-f.dot(d,m),f.multiplyByScalar(d,s,m),f.add(h,m,m),g=i[1],l(g)||(g=i[1]=new oe),g.x=-d.x,g.y=-d.y,g.z=-d.z,g.w=-f.dot(f.negate(d,g1),m),f.multiplyByScalar(n,r,m),f.add(h,m,m),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-f.dot(n,m),f.multiplyByScalar(n,o,m),f.add(h,m,m),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-f.dot(f.negate(n,g1),m),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-f.dot(t,h),f.multiplyByScalar(t,u,m),f.add(e,m,m),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-f.dot(f.negate(t,g1),m),this._cullingVolume};Wo.prototype.getPixelDimensions=function(e,t,n,i,o){if(Eq(this),!l(e)||!l(t))throw new x("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new x("drawingBufferWidth must be greater than zero.");if(t<=0)throw new x("drawingBufferHeight must be greater than zero.");if(!l(n))throw new x("distance is required.");if(!l(i))throw new x("pixelRatio is required.");if(i<=0)throw new x("pixelRatio must be greater than zero.");if(!l(o))throw new x("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};Wo.prototype.clone=function(e){return l(e)||(e=new Wo),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};Wo.prototype.equals=function(e){return l(e)&&e instanceof Wo&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};Wo.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof Wo&&M.equalsEpsilon(this.right,e.right,t,n)&&M.equalsEpsilon(this.left,e.left,t,n)&&M.equalsEpsilon(this.top,e.top,t,n)&&M.equalsEpsilon(this.bottom,e.bottom,t,n)&&M.equalsEpsilon(this.near,e.near,t,n)&&M.equalsEpsilon(this.far,e.far,t,n)};function Gt(e){e=A(e,A.EMPTY_OBJECT),this._offCenterFrustum=new Wo,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=A(e.near,1),this._near=this.near,this.far=A(e.far,5e8),this._far=this.far}Gt.packedLength=4;Gt.pack=function(e,t,n){return T.typeOf.object("value",e),T.defined("array",t),n=A(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Gt.unpack=function(e,t,n){return T.defined("array",e),t=A(t,0),l(n)||(n=new Gt),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function E_(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new x("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new x("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Gt.prototype,{projectionMatrix:{get:function(){return E_(this),this._offCenterFrustum.projectionMatrix}}});Gt.prototype.computeCullingVolume=function(e,t,n){return E_(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Gt.prototype.getPixelDimensions=function(e,t,n,i,o){return E_(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Gt.prototype.clone=function(e){return l(e)||(e=new Gt),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Gt.prototype.equals=function(e){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Gt.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Gt)?!1:(E_(this),E_(e),M.equalsEpsilon(this.width,e.width,t,n)&&M.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const hM={};function hCe(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const pCe=32.184,mCe=2451545;function xq(e,t){t=ie.addSeconds(e,pCe,t);const n=ie.totalDays(t)-mCe;return t=ie.addSeconds(t,hCe(n),t),t}const GS=new ie(2451545,0,$n.TAI),_Ce=1e3,Yc=M.RADIANS_PER_DEGREE,nc=M.RADIANS_PER_ARCSECOND,Fs=14959787e4,xU=new J;function wq(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=M.PI),n<0||n>M.PI)throw new x("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,d=yCe(r-i,t);if(gCe(t,0)==="Hyperbolic"&&Math.abs(M.negativePiToPi(d))>=Math.acos(-1/t))throw new x("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");TCe(c,n,u,xU);const m=a*(1+t),g=Math.cos(d),p=Math.sin(d),y=1+t*g;if(y<=M.Epsilon10)throw new x("elements cannot be converted to cartesian");const b=m/y;return l(s)?(s.x=b*g,s.y=b*p,s.z=0):s=new f(b*g,b*p,0),J.multiplyByVector(xU,s,s)}function gCe(e,t){if(e<0)throw new x("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function yCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=bCe(e,t);return CCe(n,t)}const wU=50,ACe=M.EPSILON8;function bCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rACe;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=wU)throw new x("Kepler equation did not converge");return o=i+n*M.TWO_PI,o}function CCe(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/M.TWO_PI);e-=n*M.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=M.zeroToTwoPi(r),e<0&&(r-=M.TWO_PI),r+=n*M.TWO_PI,r}function TCe(e,t,n,i){if(t<0||t>M.PI)throw new x("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const ECe=1.0000010178*Fs,xCe=100.46645683*Yc,wCe=129597742283429e-5*nc,SU=16002,vU=21863,DU=32004,IU=10931,PU=14529,OU=16368,LU=15318,BU=32794,SCe=64*1e-7*Fs,vCe=-152*1e-7*Fs,DCe=62*1e-7*Fs,ICe=-8*1e-7*Fs,PCe=32*1e-7*Fs,OCe=-41*1e-7*Fs,LCe=19*1e-7*Fs,BCe=-11*1e-7*Fs,RCe=-150*1e-7*Fs,NCe=-46*1e-7*Fs,MCe=68*1e-7*Fs,FCe=54*1e-7*Fs,zCe=14*1e-7*Fs,UCe=24*1e-7*Fs,HCe=-28*1e-7*Fs,VCe=22*1e-7*Fs,RU=10,NU=16002,MU=21863,FU=10931,zU=1473,UU=32004,HU=4387,VU=73,kCe=-325*1e-7,GCe=-322*1e-7,WCe=-79*1e-7,jCe=232*1e-7,qCe=-52*1e-7,$Ce=97*1e-7,YCe=55*1e-7,XCe=-41*1e-7,KCe=-105*1e-7,JCe=-137*1e-7,QCe=258*1e-7,ZCe=35*1e-7,eTe=-116*1e-7,tTe=-88*1e-7,nTe=-112*1e-7,iTe=-80*1e-7,Ny=new ie(0,0,$n.TAI);function oTe(e,t){xq(e,Ny);const i=(Ny.dayNumber-GS.dayNumber+(Ny.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/(Ni.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=ECe+SCe*Math.cos(SU*o)+RCe*Math.sin(SU*o)+vCe*Math.cos(vU*o)+NCe*Math.sin(vU*o)+DCe*Math.cos(DU*o)+MCe*Math.sin(DU*o)+ICe*Math.cos(IU*o)+FCe*Math.sin(IU*o)+PCe*Math.cos(PU*o)+zCe*Math.sin(PU*o)+OCe*Math.cos(OU*o)+UCe*Math.sin(OU*o)+LCe*Math.cos(LU*o)+HCe*Math.sin(LU*o)+BCe*Math.cos(BU*o)+VCe*Math.sin(BU*o),s=xCe+wCe*i+kCe*Math.cos(RU*o)+KCe*Math.sin(RU*o)+GCe*Math.cos(NU*o)+JCe*Math.sin(NU*o)+WCe*Math.cos(MU*o)+QCe*Math.sin(MU*o)+jCe*Math.cos(FU*o)+ZCe*Math.sin(FU*o)+qCe*Math.cos(zU*o)+eTe*Math.sin(zU*o)+$Ce*Math.cos(UU*o)+tTe*Math.sin(UU*o)+YCe*Math.cos(HU*o)+nTe*Math.sin(HU*o)+XCe*Math.cos(VU*o)+iTe*Math.sin(VU*o),a=.0167086342-.0004203654*i,c=102.93734808*Yc+11612.3529*nc*i,u=469.97289*nc*i,d=174.87317577*Yc-8679.27034*nc*i;return wq(r,a,u,c,d,s,t)}function Sq(e,t){xq(e,Ny);const i=(Ny.dayNumber-GS.dayNumber+(Ny.secondsOfDay-GS.secondsOfDay)/Ni.SECONDS_PER_DAY)/Ni.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*Yc;let d=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*Yc;let m=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*Yc;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const y=218.31664563*Yc;let b=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const C=297.85019547*Yc+nc*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),E=93.27209062*Yc+nc*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*Yc+nc*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*Yc+nc*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*Yc-nc*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),L=2*C,z=4*C,R=6*C,F=2*w,U=3*w,D=4*w,I=2*E;a+=3400.4*Math.cos(L)-635.6*Math.cos(L-w)-235.6*Math.cos(w)+218.1*Math.cos(L-S)+181*Math.cos(L+w),c+=.014216*Math.cos(L-w)+.008551*Math.cos(L-F)-.001383*Math.cos(w)+.001356*Math.cos(L+w)-.001147*Math.cos(z-U)-914e-6*Math.cos(z-F)+869e-6*Math.cos(L-S-w)-627e-6*Math.cos(L)-394e-6*Math.cos(z-D)+282e-6*Math.cos(L-S-F)-279e-6*Math.cos(C-w)-236e-6*Math.cos(F)+231e-6*Math.cos(z)+229e-6*Math.cos(R-D)-201e-6*Math.cos(F-I),d+=486.26*Math.cos(L-I)-40.13*Math.cos(L)+37.51*Math.cos(I)+25.73*Math.cos(F-I)+19.97*Math.cos(L-S-I),m+=-55609*Math.sin(L-w)-34711*Math.sin(L-F)-9792*Math.sin(w)+9385*Math.sin(z-U)+7505*Math.sin(z-F)+5318*Math.sin(L+w)+3484*Math.sin(z-D)-3417*Math.sin(L-S-w)-2530*Math.sin(R-D)-2376*Math.sin(L)-2075*Math.sin(L-U)-1883*Math.sin(F)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-U),p+=-5392*Math.sin(L-I)-540*Math.sin(S)-441*Math.sin(L)+423*Math.sin(I)-288*Math.sin(F-I),b+=-3332.9*Math.sin(L)+1197.4*Math.sin(L-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(L-S);const _=2*P,v=3*P;d+=46.997*Math.cos(P)*i-.614*Math.cos(L-I+P)*i+.614*Math.cos(L-I-P)*i-.0297*Math.cos(_)*o-.0335*Math.cos(P)*o+.0012*Math.cos(L-I+_)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(v)*r+4e-5*Math.cos(_)*r;const O=2.116*Math.sin(P)*i-.111*Math.sin(L-I-P)*i-.0015*Math.sin(P)*o;m+=O,b+=O,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(L-I+P)*i+1.12*Math.sin(L-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(_)*o+.371*Math.sin(P)*o-.035*Math.sin(L-I+_)*o-.015*Math.sin(L-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(v)*r-9e-4*Math.sin(_)*r,a*=_Ce;const N=u+d*nc,V=h+m*nc,k=y+b*nc,G=g+p*nc;return wq(a,c,N,V,G,k,t)}const kU=.012300034,rTe=kU/(kU+1)*-1;function sTe(e,t){return t=Sq(e,t),f.multiplyByScalar(t,rTe,t)}const vq=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let lA=new f;hM.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),l(t)||(t=new f),lA=oTe(e,lA),t=f.negate(lA,t),sTe(e,lA),f.subtract(t,lA,t),J.multiplyByVector(vq,t,t),t};hM.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ie.now()),t=Sq(e,t),J.multiplyByVector(vq,t,t),t};const hB=hM,Mw={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};Mw.getMorphTime=function(e){return e===Mw.SCENE3D?1:e===Mw.MORPHING?void 0:0};const le=Object.freeze(Mw);function aD(e){e=A(e,A.EMPTY_OBJECT),this.color=H.clone(A(e.color,H.WHITE)),this.intensity=A(e.intensity,2)}function O0(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new Ye,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new Rn,this._cameraPosition=new f,this._sunPositionWC=new f,this._sunPositionColumbusView=new f,this._sunDirectionWC=new f,this._sunDirectionEC=new f,this._moonDirectionEC=new f,this._lightDirectionWC=new f,this._lightDirectionEC=new f,this._lightColor=new f,this._lightColorHdr=new f,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new f,this._cameraRight=new f,this._cameraUp=new f,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new H,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(O0.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!Ye.equals(e,this._viewport)){Ye.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return GU(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return GU(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return y1(this),this._view3D}},viewRotation:{get:function(){return y1(this),this._viewRotation}},viewRotation3D:{get:function(){return y1(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return qU(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return qU(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return _Te(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return gTe(this),this._modelView}},modelView3D:{get:function(){return yTe(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return xTe(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return ATe(this),this._inverseModelView}},inverseModelView3D:{get:function(){return bTe(this),this._inverseModelView3D}},viewProjection:{get:function(){return CTe(this),this._viewProjection}},inverseViewProjection:{get:function(){return TTe(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return ETe(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return wTe(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return STe(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return vTe(this),this._modelViewInfiniteProjection}},normal:{get:function(){return DTe(this),this._normal}},normal3D:{get:function(){return ITe(this),this._normal3D}},inverseNormal:{get:function(){return PTe(this),this._inverseNormal}},inverseNormal3D:{get:function(){return OTe(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return jU(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return jU(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return A(this._ellipsoid,me.WGS84)}}});function aTe(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function cTe(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function lTe(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function uTe(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function dTe(e,t){f.clone(t.positionWC,e._cameraPosition),f.clone(t.directionWC,e._cameraDirection),f.clone(t.rightWC,e._cameraRight),f.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let uA=new J;const fTe=new Ce;function hTe(e,t){l(cn.computeIcrfToFixedMatrix(t.time,uA))||(uA=cn.computeTemeToPseudoFixedMatrix(t.time,uA));let n=hB.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(uA,n,n),f.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),f.normalize(n,n),n=hB.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(uA,n,n),J.multiplyByVector(e.viewRotation3D,n,n),f.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,fTe);i.project(r,e._sunPositionColumbusView)}O0.prototype.updateCamera=function(e){aTe(this,e.viewMatrix),cTe(this,e.inverseViewMatrix),dTe(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Gt};O0.prototype.updateFrustum=function(e){lTe(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&uTe(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=M.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};O0.prototype.updatePass=function(e){this._pass=e};const pTe=[],mTe=new aD;O0.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),hTe(this,e);const n=A(e.light,mTe);n instanceof aD?(this._lightDirectionWC=f.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=f.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=f.normalize(f.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=f.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=f.multiplyByScalar(o,n.intensity,o);const r=f.maximumComponent(o);r>1?f.divideByScalar(o,r,this._lightColor):f.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=A(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=A(e.sphericalHarmonicCoefficients,pTe),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=cn.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let d;l(c)?u.height>u.width?d=Math.tan(.5*c)*2/u.height:d=Math.tan(.5*c)*2/u.width:d=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=d*e.maximumScreenSpaceError,H.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function GU(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function _Te(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function gTe(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function yTe(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function ATe(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function bTe(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function CTe(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function TTe(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function ETe(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function xTe(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function wTe(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function STe(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function vTe(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function DTe(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function ITe(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function PTe(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function OTe(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const WU=new f;function jU(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,WU),Rn.fromCartesian(WU,e._encodedCameraPositionMC))}const LTe=new f,BTe=new f,RTe=new f,NTe=new f,MTe=new Ce,FTe=new f,zTe=new B;function UTe(e,t,n,i,o,r,s,a){const c=LTe;c.x=e.y,c.y=e.z,c.z=e.x;const u=BTe;u.x=n.y,u.y=n.z,u.z=n.x;const d=RTe;d.x=i.y,d.y=i.z,d.z=i.x;const h=NTe;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const m=s.unproject(c,MTe);m.longitude=M.clamp(m.longitude,-Math.PI,Math.PI),m.latitude=M.clamp(m.latitude,-M.PI_OVER_TWO,M.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(m,FTe),y=cn.eastNorthUpToFixedFrame(p,g,zTe);return B.multiplyByPointAsVector(y,u,u),B.multiplyByPointAsVector(y,d,d),B.multiplyByPointAsVector(y,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=d.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=d.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=d.z,a[10]=-h.z,a[11]=0,a[12]=-f.dot(u,p),a[13]=-f.dot(d,p),a[14]=f.dot(h,p),a[15]=1,a}function y1(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):UTe(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function qU(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function HTe(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new x("attribute must have a vertexBuffer or a value.");if(o&&r)throw new x("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new x("attribute.value.length must be in the range [1, 4]."):new x("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new x("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new x("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new x("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new x("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new x("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new x("attribute zero cannot have an instanceDivisor greater than 0");const a={index:A(t.index,n),enabled:A(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:A(t.componentDatatype,ee.FLOAT),normalize:A(t.normalize,!1),offsetInBytes:A(t.offsetInBytes,0),strideInBytes:A(t.strideInBytes,0),instanceDivisor:A(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function Dq(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=$U(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),d=a%u;d!==0&&(a+=u-d);const h=r*a,m=new ArrayBuffer(h),g={};for(t=0;t=M.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?m=Tt.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:at.UNSIGNED_INT}):m=Tt.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:at.UNSIGNED_SHORT})),new ho({context:t,attributes:d,indexBuffer:m})};Object.defineProperties(ho.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});ho.prototype.getAttribute=function(e){return T.defined("index",e),this._attributes[e]};function GTe(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=It.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function WTe(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Ie("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Ie("The browser supports WebGL, but initialization failed.");return r}function qTe(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function $Te(e,t,n,i){let o=`${qTe(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=KTe(this._originalGLContext,e?YTe:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new Wt({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new Wt({context:this,pixelFormat:rt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new bu({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return JTe}}});function QTe(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new x(i)}}}function Iq(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,et.partialApply(e._gl,o,t,r,n,i)}let pM;typeof WebGLRenderingContext<"u"&&(pM=[ae.BACK]);function mM(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=pM;if(l(t))t._bind(),QTe(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const ZTe=new co;Ja.prototype.clear=function(e,t){e=A(e,ZTe),t=A(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(H.equals(this._clearColor,o)||(H.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=A(e.renderState,this._defaultRenderState);Iq(this,a,t,!0);const c=A(e.framebuffer,t.framebuffer);mM(this,c),n.clear(i)};function eEe(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new x("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");mM(e,t),Iq(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function tEe(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Ze.validate(o))throw new x("drawCommand.primitiveType is required and must be valid.");if(T.defined("drawCommand.vertexArray",r),T.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&T.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),T.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new x("Instanced arrays extension is not supported");e._us.model=A(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=A(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=A(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}Ja.prototype.draw=function(e,t,n,i){T.defined("drawCommand",e),T.defined("drawCommand.shaderProgram",e._shaderProgram),t=A(t,this._defaultPassState);const o=A(e._framebuffer,t.framebuffer),r=A(e._renderState,this._defaultRenderState);n=A(n,e._shaderProgram),i=A(i,e._uniformMap),eEe(this,o,t,n,r),tEe(this,e,n,i)};Ja.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=pM;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=rt.createTypedArray(rt.RGBA,a,o,r);return mM(this,s),t.readPixels(n,i,o,r,rt.RGBA,Qe.toWebGLConstant(a,this),c),c};const Pq={position:0,textureCoordinates:1};Ja.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new Lt({attributes:{position:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new Ue({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Ze.TRIANGLES});e=ho.fromGeometry({context:this,geometry:t,attributeLocations:Pq,bufferUsage:nt.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};Ja.prototype.createViewportQuadCommand=function(e,t){return t=A(t,A.EMPTY_OBJECT),new mt({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Ze.TRIANGLES,renderState:t.renderState,shaderProgram:Cn.fromCache({context:this,vertexShaderSource:aj,fragmentShaderSource:e,attributeLocations:Pq}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};Ja.prototype.getObjectByPickColor=function(e){return T.defined("pickColor",e),this._pickObjects[e.toRgba()]};function _M(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(_M.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});_M.prototype.destroy=function(){delete this._pickObjects[this.key]};Ja.prototype.createPickId=function(e){T.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Ie("Out of unique Pick IDs.");return this._pickObjects[t]=e,new _M(this._pickObjects,t,H.fromRgba(t))};Ja.prototype.isDestroyed=function(){return!1};Ja.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),He(this)};Ja._deprecationWarning=$p;function L0(e){e=A(e,A.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;T.defined("options.context",t),T.defined("options.width",n),T.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new x("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new x("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Yr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new Yr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}L0.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};L0.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};L0.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};L0.prototype.isDestroyed=function(){return!1};L0.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),He(this)};const ka={RGBA4:ae.RGBA4,RGBA8:ae.RGBA8,RGBA16F:ae.RGBA16F,RGBA32F:ae.RGBA32F,RGB5_A1:ae.RGB5_A1,RGB565:ae.RGB565,DEPTH_COMPONENT16:ae.DEPTH_COMPONENT16,STENCIL_INDEX8:ae.STENCIL_INDEX8,DEPTH_STENCIL:ae.DEPTH_STENCIL,DEPTH24_STENCIL8:ae.DEPTH24_STENCIL8,validate:function(e){return e===ka.RGBA4||e===ka.RGBA8||e===ka.RGBA16F||e===ka.RGBA32F||e===ka.RGB5_A1||e===ka.RGB565||e===ka.DEPTH_COMPONENT16||e===ka.STENCIL_INDEX8||e===ka.DEPTH_STENCIL||e===ka.DEPTH24_STENCIL8},getColorFormat:function(e){return e===ae.FLOAT?ka.RGBA32F:e===ae.HALF_FLOAT_OES?ka.RGBA16F:ka.RGBA8}},af=Object.freeze(ka);function Xl(e){e=A(e,A.EMPTY_OBJECT),T.defined("options.context",e.context);const n=e.context._gl,i=It.maximumRenderbufferSize,o=A(e.format,af.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=A(e.numSamples,1);if(!af.validate(o))throw new x("Invalid format.");if(T.typeOf.number.greaterThan("width",r,0),r>i)throw new x(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(T.typeOf.number.greaterThan("height",s,0),s>i)throw new x(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(Xl.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});Xl.prototype._getRenderbuffer=function(){return this._renderbuffer};Xl.prototype.isDestroyed=function(){return!1};Xl.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),He(this)};function Ln(e){if(e=A(e,A.EMPTY_OBJECT),this._numSamples=A(e.numSamples,1),this._colorAttachmentsLength=A(e.colorAttachmentsLength,1),this._color=A(e.color,!0),this._depth=A(e.depth,!1),this._depthStencil=A(e.depthStencil,!1),this._supportsDepthTexture=A(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new x("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new x("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=A(e.createColorAttachments,!0),this._createDepthAttachments=A(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Ln.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Ln.prototype.isDirty=function(e,t,n,i,o){n=A(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};Ln.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new x("width and height must be defined.");if(i=e.msaa?A(i,1):1,o=A(o,this._color?A(this._pixelDatatype,Qe.UNSIGNED_BYTE):void 0),r=A(r,this._color?A(this._pixelFormat,rt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=af.getColorFormat(o);this._colorRenderbuffers[s]=new Xl({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_STENCIL,pixelDatatype:Qe.UNSIGNED_INT_24_8,sampler:ii.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new Wt({context:e,width:t,height:n,pixelFormat:rt.DEPTH_COMPONENT,pixelDatatype:Qe.UNSIGNED_INT,sampler:ii.NEAREST}):this._depthRenderbuffer=new Xl({context:e,width:t,height:n,format:af.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new L0({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Yr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Ln.prototype.getColorTexture=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorTextures[e]};Ln.prototype.setColorTexture=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Ln.prototype.getColorRenderbuffer=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};Ln.prototype.setColorRenderbuffer=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Ln.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Ln.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Ln.prototype.getDepthTexture=function(){return this._depthTexture};Ln.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Ln.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Ln.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Ln.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Ln.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Ln.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Ln.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Ln.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Ln.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e0?ee.getSizeInBytes(e[0].componentDatatype):0,o=i>0?t%i:0,r=o===0?0:i-o;return t+=r,t};Rr._createArrayViews=function(e,t){const n=[];let i=0;const o=e.length;for(let r=0;r0){const n=new ArrayBuffer(t*e.vertexSizeInBytes);if(l(e.arrayBuffer)){const r=new Uint8Array(n),s=new Uint8Array(e.arrayBuffer),a=s.length;for(let c=0;c0){t.needsCommit=!1;const n=t.vertexBuffer,i=e._size*t.vertexSizeInBytes,o=l(n);if(!o||n.sizeInBytes=this._size)throw new x("offsetInVertices must be greater than or equal to zero and less than the vertex array size.");if(e+t>this._size)throw new x("offsetInVertices + lengthInVertices cannot exceed the vertex array size.");const n=this._allBuffers;for(let i=0,o=n.length;i0){const i=e.vertexSizeInBytes*t,o=e.vertexSizeInBytes*n;e.vertexBuffer.copyFromArrayView(new Uint8Array(e.arrayBuffer,i,o),i)}}Rr.prototype.endSubCommits=function(){const e=this._allBuffers;for(let t=0,n=e.length;t-1&&i.derivedKeywords.splice(s,1)}return this.createDerivedShaderProgram(e,t,n)};iu.prototype.getDerivedShaderProgram=function(e,t){const n=e._cachedShader,i=t+n.keyword,o=this._shaders[i];if(l(o))return o.shaderProgram};iu.prototype.createDerivedShaderProgram=function(e,t,n){const i=e._cachedShader,o=t+i.keyword;let r=n.vertexShaderSource,s=n.fragmentShaderSource;const a=n.attributeLocations;typeof r=="string"&&(r=new Ge({sources:[r]})),typeof s=="string"&&(s=new Ge({sources:[s]}));const c=this._context,u=r.createCombinedVertexShader(c),f=s.createCombinedFragmentShader(c),h=new hn({gl:c._gl,logShaderCompilation:c.logShaderCompilation,debugShaders:c.debugShaders,vertexShaderSource:r,vertexShaderText:u,fragmentShaderSource:s,fragmentShaderText:f,attributeLocations:a}),_={cache:this,shaderProgram:h,keyword:o,derivedKeywords:[],count:0};return i.derivedKeywords.push(t),h._cachedShader=_,this._shaders[o]=_,h};function AN(e,t){const n=t.derivedKeywords,i=n.length;for(let o=0;owt.maximumTextureSize)throw new x(`Width must be less than or equal to the maximum texture size (${wt.maximumTextureSize}). Check maximumTextureSize.`);if(b.typeOf.number.greaterThan("height",i,0),i>wt.maximumTextureSize)throw new x(`Height must be less than or equal to the maximum texture size (${wt.maximumTextureSize}). Check maximumTextureSize.`);if(!nt.validate(r))throw new x("Invalid options.pixelFormat.");if(!c&&!Ke.validate(s))throw new x("Invalid options.pixelDatatype.");if(r===nt.DEPTH_COMPONENT&&s!==Ke.UNSIGNED_SHORT&&s!==Ke.UNSIGNED_INT)throw new x("When options.pixelFormat is DEPTH_COMPONENT, options.pixelDatatype must be UNSIGNED_SHORT or UNSIGNED_INT.");if(r===nt.DEPTH_STENCIL&&s!==Ke.UNSIGNED_INT_24_8)throw new x("When options.pixelFormat is DEPTH_STENCIL, options.pixelDatatype must be UNSIGNED_INT_24_8.");if(s===Ke.FLOAT&&!t.floatingPointTexture)throw new x("When options.pixelDatatype is FLOAT, this WebGL implementation must support the OES_texture_float extension. Check context.floatingPointTexture.");if(s===Ke.HALF_FLOAT&&!t.halfFloatingPointTexture)throw new x("When options.pixelDatatype is HALF_FLOAT, this WebGL implementation must support the OES_texture_half_float extension. Check context.halfFloatingPointTexture.");if(nt.isDepthFormat(r)){if(l(o))throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, source cannot be provided.");if(!t.depthTexture)throw new x("When options.pixelFormat is DEPTH_COMPONENT or DEPTH_STENCIL, this WebGL implementation must support WEBGL_depth_texture. Check context.depthTexture.")}if(c){if(!l(o)||!l(o.arrayBufferView))throw new x("When options.pixelFormat is compressed, options.source.arrayBufferView must be defined.");if(nt.isDXTFormat(a)&&!t.s3tc)throw new x("When options.pixelFormat is S3TC compressed, this WebGL implementation must support the WEBGL_compressed_texture_s3tc extension. Check context.s3tc.");if(nt.isPVRTCFormat(a)&&!t.pvrtc)throw new x("When options.pixelFormat is PVRTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_pvrtc extension. Check context.pvrtc.");if(nt.isASTCFormat(a)&&!t.astc)throw new x("When options.pixelFormat is ASTC compressed, this WebGL implementation must support the WEBGL_compressed_texture_astc extension. Check context.astc.");if(nt.isETC2Format(a)&&!t.etc)throw new x("When options.pixelFormat is ETC2 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc extension. Check context.etc.");if(nt.isETC1Format(a)&&!t.etc1)throw new x("When options.pixelFormat is ETC1 compressed, this WebGL implementation must support the WEBGL_compressed_texture_etc1 extension. Check context.etc1.");if(nt.isBC7Format(a)&&!t.bc7)throw new x("When options.pixelFormat is BC7 compressed, this WebGL implementation must support the EXT_texture_compression_bptc extension. Check context.bc7.");if(nt.compressedTextureSizeInBytes(a,n,i)!==o.arrayBufferView.byteLength)throw new x("The byte length of the array buffer is invalid for the compressed texture with the given width and height.")}const u=e.preMultiplyAlpha||r===nt.RGB||r===nt.LUMINANCE,f=A(e.flipY,!0),h=A(e.skipColorSpaceConversion,!1);let _=!0;const g=t._gl,p=g.TEXTURE_2D,y=g.createTexture();g.activeTexture(g.TEXTURE0),g.bindTexture(p,y);let C=4;if(l(o)&&l(o.arrayBufferView)&&!c&&(C=nt.alignmentInBytes(r,s,n)),g.pixelStorei(g.UNPACK_ALIGNMENT,C),h?g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.NONE):g.pixelStorei(g.UNPACK_COLORSPACE_CONVERSION_WEBGL,g.BROWSER_DEFAULT_WEBGL),l(o))if(l(o.arrayBufferView)){g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,!1);let E=o.arrayBufferView,w,S,P;if(c){if(g.compressedTexImage2D(p,0,a,n,i,0,E),l(o.mipLevels))for(S=n,P=i,w=0;wn.drawingBufferWidth)throw new x("framebufferXOffset + width must be less than or equal to drawingBufferWidth");if(r+a>n.drawingBufferHeight)throw new x("framebufferYOffset + height must be less than or equal to drawingBufferHeight.");return new zt({context:t,width:s,height:a,pixelFormat:i,source:{framebuffer:l(c)?c:t.defaultFramebuffer,xOffset:o,yOffset:r,width:s,height:a}})};Object.defineProperties(zt.prototype,{id:{get:function(){return this._id}},sampler:{get:function(){return this._sampler},set:function(e){let t=e.minificationFilter,n=e.magnificationFilter;const i=this._context,o=this._pixelFormat,r=this._pixelDatatype,s=t===An.NEAREST_MIPMAP_NEAREST||t===An.NEAREST_MIPMAP_LINEAR||t===An.LINEAR_MIPMAP_NEAREST||t===An.LINEAR_MIPMAP_LINEAR;(r===Ke.FLOAT&&!i.textureFloatLinear||r===Ke.HALF_FLOAT&&!i.textureHalfFloatLinear)&&(t=s?An.NEAREST_MIPMAP_NEAREST:An.NEAREST,n=Hr.NEAREST),i.webgl2&&nt.isDepthFormat(o)&&(t=An.NEAREST,n=Hr.NEAREST);const a=i._gl,c=this._textureTarget;a.activeTexture(a.TEXTURE0),a.bindTexture(c,this._texture),a.texParameteri(c,a.TEXTURE_MIN_FILTER,t),a.texParameteri(c,a.TEXTURE_MAG_FILTER,n),a.texParameteri(c,a.TEXTURE_WRAP_S,e.wrapS),a.texParameteri(c,a.TEXTURE_WRAP_T,e.wrapT),l(this._textureFilterAnisotropic)&&a.texParameteri(c,this._textureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,e.maximumAnisotropy),a.bindTexture(c,null),this._sampler=e}},pixelFormat:{get:function(){return this._pixelFormat}},pixelDatatype:{get:function(){return this._pixelDatatype}},dimensions:{get:function(){return this._dimensions}},preMultiplyAlpha:{get:function(){return this._preMultiplyAlpha}},flipY:{get:function(){return this._flipY}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},sizeInBytes:{get:function(){return this._hasMipmap?Math.floor(this._sizeInBytes*4/3):this._sizeInBytes}},_target:{get:function(){return this._textureTarget}}});zt.prototype.copyFrom=function(e){b.defined("options",e);const t=A(e.xOffset,0),n=A(e.yOffset,0);if(b.defined("options.source",e.source),nt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFrom when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");b.typeOf.number.greaterThanOrEquals("xOffset",t,0),b.typeOf.number.greaterThanOrEquals("yOffset",n,0),b.typeOf.number.lessThanOrEquals("xOffset + options.source.width",t+e.source.width,this._width),b.typeOf.number.lessThanOrEquals("yOffset + options.source.height",n+e.source.height,this._height);const i=e.source,o=this._context,r=o._gl,s=this._textureTarget;r.activeTexture(r.TEXTURE0),r.bindTexture(s,this._texture);const a=i.width,c=i.height;let u=i.arrayBufferView;const f=this._width,h=this._height,_=this._internalFormat,g=this._pixelFormat,p=this._pixelDatatype,y=this._preMultiplyAlpha,C=this._flipY,T=A(e.skipColorSpaceConversion,!1);let E=4;l(u)&&(E=nt.alignmentInBytes(g,p,a)),r.pixelStorei(r.UNPACK_ALIGNMENT,E),T?r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.NONE):r.pixelStorei(r.UNPACK_COLORSPACE_CONVERSION_WEBGL,r.BROWSER_DEFAULT_WEBGL);let w=!1;if(!this._initialized){if(t===0&&n===0&&a===f&&c===h)l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,f,h)),r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texImage2D(s,0,_,g,Ke.toWebGLConstant(p,o),i)),w=!0;else{r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1);const S=nt.createTypedArray(g,p,f,h);r.texImage2D(s,0,_,f,h,0,g,Ke.toWebGLConstant(p,o),S)}this._initialized=!0}w||(l(u)?(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,!1),C&&(u=nt.flipY(u,g,p,a,c)),r.texSubImage2D(s,0,t,n,a,c,g,Ke.toWebGLConstant(p,o),u)):(r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,y),r.pixelStorei(r.UNPACK_FLIP_Y_WEBGL,C),r.texSubImage2D(s,0,t,n,g,Ke.toWebGLConstant(p,o),i))),r.bindTexture(s,null)};zt.prototype.copyFromFramebuffer=function(e,t,n,i,o,r){if(e=A(e,0),t=A(t,0),n=A(n,0),i=A(i,0),o=A(o,this._width),r=A(r,this._height),nt.isDepthFormat(this._pixelFormat))throw new x("Cannot call copyFromFramebuffer when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(this._pixelDatatype===Ke.FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is FLOAT.");if(this._pixelDatatype===Ke.HALF_FLOAT)throw new x("Cannot call copyFromFramebuffer when the texture pixel data type is HALF_FLOAT.");if(nt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call copyFrom with a compressed texture pixel format.");b.typeOf.number.greaterThanOrEquals("xOffset",e,0),b.typeOf.number.greaterThanOrEquals("yOffset",t,0),b.typeOf.number.greaterThanOrEquals("framebufferXOffset",n,0),b.typeOf.number.greaterThanOrEquals("framebufferYOffset",i,0),b.typeOf.number.lessThanOrEquals("xOffset + width",e+o,this._width),b.typeOf.number.lessThanOrEquals("yOffset + height",t+r,this._height);const s=this._context._gl,a=this._textureTarget;s.activeTexture(s.TEXTURE0),s.bindTexture(a,this._texture),s.copyTexSubImage2D(a,0,e,t,n,i,o,r),s.bindTexture(a,null),this._initialized=!0};zt.prototype.generateMipmap=function(e){if(e=A(e,My.DONT_CARE),nt.isDepthFormat(this._pixelFormat))throw new x("Cannot call generateMipmap when the texture pixel format is DEPTH_COMPONENT or DEPTH_STENCIL.");if(nt.isCompressedFormat(this._pixelFormat))throw new x("Cannot call generateMipmap with a compressed pixel format.");if(!this._context.webgl2){if(this._width>1&&!N.isPowerOfTwo(this._width))throw new x("width must be a power of two to call generateMipmap() in a WebGL1 context.");if(this._height>1&&!N.isPowerOfTwo(this._height))throw new x("height must be a power of two to call generateMipmap() in a WebGL1 context.")}if(!My.validate(e))throw new x("hint is invalid.");this._hasMipmap=!0;const t=this._context._gl,n=this._textureTarget;t.hint(t.GENERATE_MIPMAP_HINT,e),t.activeTexture(t.TEXTURE0),t.bindTexture(n,this._texture),t.generateMipmap(n),t.bindTexture(n,null)};zt.prototype.isDestroyed=function(){return!1};zt.prototype.destroy=function(){return this._context._gl.deleteTexture(this._texture),Ue(this)};function x_(){this._textures={},this._numberOfTextures=0,this._texturesToRelease={}}Object.defineProperties(x_.prototype,{numberOfTextures:{get:function(){return this._numberOfTextures}}});x_.prototype.getTexture=function(e){const t=this._textures[e];if(l(t))return delete this._texturesToRelease[e],++t.count,t.texture};x_.prototype.addTexture=function(e,t){const n={texture:t,count:1};t.finalDestroy=t.destroy;const i=this;t.destroy=function(){--n.count===0&&(i._texturesToRelease[e]=n)},this._textures[e]=n,++this._numberOfTextures};x_.prototype.destroyReleasedTextures=function(){const e=this._texturesToRelease;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];delete this._textures[t],n.texture.finalDestroy(),--this._numberOfTextures}this._texturesToRelease={}};x_.prototype.isDestroyed=function(){return!1};x_.prototype.destroy=function(){const e=this._textures;for(const t in e)e.hasOwnProperty(t)&&e[t].texture.finalDestroy();return Ue(this)};function wn(){this.high=d.clone(d.ZERO),this.low=d.clone(d.ZERO)}wn.encode=function(e,t){b.typeOf.number("value",e),l(t)||(t={high:0,low:0});let n;return e>=0?(n=Math.floor(e/65536)*65536,t.high=n,t.low=e-n):(n=Math.floor(-e/65536)*65536,t.high=-n,t.low=e+n),t};const Sf={high:0,low:0};wn.fromCartesian=function(e,t){b.typeOf.object("cartesian",e),l(t)||(t=new wn);const n=t.high,i=t.low;return wn.encode(e.x,Sf),n.x=Sf.high,i.x=Sf.low,wn.encode(e.y,Sf),n.y=Sf.high,i.y=Sf.low,wn.encode(e.z,Sf),n.z=Sf.high,i.z=Sf.low,t};const DI=new wn;wn.writeElements=function(e,t,n){b.defined("cartesianArray",t),b.typeOf.number("index",n),b.typeOf.number.greaterThanOrEquals("index",n,0),wn.fromCartesian(e,DI);const i=DI.high,o=DI.low;t[n]=i.x,t[n+1]=i.y,t[n+2]=i.z,t[n+3]=o.x,t[n+4]=o.y,t[n+5]=o.z};function St(e,t){if(b.typeOf.object("normal",e),!N.equalsEpsilon(d.magnitude(e),1,N.EPSILON6))throw new x("normal must be normalized.");b.typeOf.number("distance",t),this.normal=d.clone(e),this.distance=t}St.fromPointNormal=function(e,t,n){if(b.typeOf.object("point",e),b.typeOf.object("normal",t),!N.equalsEpsilon(d.magnitude(t),1,N.EPSILON6))throw new x("normal must be normalized.");const i=-d.dot(t,e);return l(n)?(d.clone(t,n.normal),n.distance=i,n):new St(t,i)};const $ge=new d;St.fromCartesian4=function(e,t){b.typeOf.object("coefficients",e);const n=d.fromCartesian4(e,$ge),i=e.w;if(!N.equalsEpsilon(d.magnitude(n),1,N.EPSILON6))throw new x("normal must be normalized.");return l(t)?(d.clone(n,t.normal),t.distance=i,t):new St(n,i)};St.getPointDistance=function(e,t){return b.typeOf.object("plane",e),b.typeOf.object("point",t),d.dot(e.normal,t)+e.distance};const Xge=new d;St.projectPointOntoPlane=function(e,t,n){b.typeOf.object("plane",e),b.typeOf.object("point",t),l(n)||(n=new d);const i=St.getPointDistance(e,t),o=d.multiplyByScalar(e.normal,i,Xge);return d.subtract(t,o,n)};const Kge=new B,Jge=new oe,Qge=new d;St.transform=function(e,t,n){b.typeOf.object("plane",e),b.typeOf.object("transform",t);const i=e.normal,o=e.distance,r=B.inverseTranspose(t,Kge);let s=oe.fromElements(i.x,i.y,i.z,o,Jge);s=B.multiplyByVector(r,s,s);const a=d.fromCartesian4(s,Qge);return s=oe.divideByScalar(s,d.magnitude(a),s),St.fromCartesian4(s,n)};St.clone=function(e,t){return b.typeOf.object("plane",e),l(t)?(d.clone(e.normal,t.normal),t.distance=e.distance,t):new St(e.normal,e.distance)};St.equals=function(e,t){return b.typeOf.object("left",e),b.typeOf.object("right",t),e.distance===t.distance&&d.equals(e.normal,t.normal)};St.ORIGIN_XY_PLANE=Object.freeze(new St(d.UNIT_Z,0));St.ORIGIN_YZ_PLANE=Object.freeze(new St(d.UNIT_X,0));St.ORIGIN_ZX_PLANE=Object.freeze(new St(d.UNIT_Y,0));function Ko(e){this.planes=A(e,[])}const zC=[new d,new d,new d];d.clone(d.UNIT_X,zC[0]);d.clone(d.UNIT_Y,zC[1]);d.clone(d.UNIT_Z,zC[2]);const th=new d,Zge=new d,nj=new St(new d(1,0,0),0);Ko.fromBoundingSphere=function(e,t){if(!l(e))throw new x("boundingSphere is required.");l(t)||(t=new Ko);const n=zC.length,i=t.planes;i.length=2*n;const o=e.center,r=e.radius;let s=0;for(let a=0;ae.right)throw new x("right must be greater than left.");if(e.bottom>e.top)throw new x("top must be greater than bottom.");if(e.near<=0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._left=e.left,e._right=e.right,e._top=e.top,e._bottom=e.bottom,e._near=e.near,e._far=e.far,e._orthographicMatrix=B.computeOrthographicOffCenter(e.left,e.right,e.bottom,e.top,e.near,e.far,e._orthographicMatrix)}}Object.defineProperties(Bo.prototype,{projectionMatrix:{get:function(){return ij(this),this._orthographicMatrix}}});const eye=new d,tye=new d,nye=new d,II=new d;Bo.prototype.computeCullingVolume=function(e,t,n){if(!l(e))throw new x("position is required.");if(!l(t))throw new x("direction is required.");if(!l(n))throw new x("up is required.");const i=this._cullingVolume.planes,o=this.top,r=this.bottom,s=this.right,a=this.left,c=this.near,u=this.far,f=d.cross(t,n,eye);d.normalize(f,f);const h=tye;d.multiplyByScalar(t,c,h),d.add(e,h,h);const _=nye;d.multiplyByScalar(f,a,_),d.add(h,_,_);let g=i[0];return l(g)||(g=i[0]=new oe),g.x=f.x,g.y=f.y,g.z=f.z,g.w=-d.dot(f,_),d.multiplyByScalar(f,s,_),d.add(h,_,_),g=i[1],l(g)||(g=i[1]=new oe),g.x=-f.x,g.y=-f.y,g.z=-f.z,g.w=-d.dot(d.negate(f,II),_),d.multiplyByScalar(n,r,_),d.add(h,_,_),g=i[2],l(g)||(g=i[2]=new oe),g.x=n.x,g.y=n.y,g.z=n.z,g.w=-d.dot(n,_),d.multiplyByScalar(n,o,_),d.add(h,_,_),g=i[3],l(g)||(g=i[3]=new oe),g.x=-n.x,g.y=-n.y,g.z=-n.z,g.w=-d.dot(d.negate(n,II),_),g=i[4],l(g)||(g=i[4]=new oe),g.x=t.x,g.y=t.y,g.z=t.z,g.w=-d.dot(t,h),d.multiplyByScalar(t,u,_),d.add(e,_,_),g=i[5],l(g)||(g=i[5]=new oe),g.x=-t.x,g.y=-t.y,g.z=-t.z,g.w=-d.dot(d.negate(t,II),_),this._cullingVolume};Bo.prototype.getPixelDimensions=function(e,t,n,i,o){if(ij(this),!l(e)||!l(t))throw new x("Both drawingBufferWidth and drawingBufferHeight are required.");if(e<=0)throw new x("drawingBufferWidth must be greater than zero.");if(t<=0)throw new x("drawingBufferHeight must be greater than zero.");if(!l(n))throw new x("distance is required.");if(!l(i))throw new x("pixelRatio is required.");if(i<=0)throw new x("pixelRatio must be greater than zero.");if(!l(o))throw new x("A result object is required.");const r=this.right-this.left,s=this.top-this.bottom,a=i*r/e,c=i*s/t;return o.x=a,o.y=c,o};Bo.prototype.clone=function(e){return l(e)||(e=new Bo),e.left=this.left,e.right=this.right,e.top=this.top,e.bottom=this.bottom,e.near=this.near,e.far=this.far,e._left=void 0,e._right=void 0,e._top=void 0,e._bottom=void 0,e._near=void 0,e._far=void 0,e};Bo.prototype.equals=function(e){return l(e)&&e instanceof Bo&&this.right===e.right&&this.left===e.left&&this.top===e.top&&this.bottom===e.bottom&&this.near===e.near&&this.far===e.far};Bo.prototype.equalsEpsilon=function(e,t,n){return e===this||l(e)&&e instanceof Bo&&N.equalsEpsilon(this.right,e.right,t,n)&&N.equalsEpsilon(this.left,e.left,t,n)&&N.equalsEpsilon(this.top,e.top,t,n)&&N.equalsEpsilon(this.bottom,e.bottom,t,n)&&N.equalsEpsilon(this.near,e.near,t,n)&&N.equalsEpsilon(this.far,e.far,t,n)};function Ft(e){e=A(e,A.EMPTY_OBJECT),this._offCenterFrustum=new Bo,this.width=e.width,this._width=void 0,this.aspectRatio=e.aspectRatio,this._aspectRatio=void 0,this.near=A(e.near,1),this._near=this.near,this.far=A(e.far,5e8),this._far=this.far}Ft.packedLength=4;Ft.pack=function(e,t,n){return b.typeOf.object("value",e),b.defined("array",t),n=A(n,0),t[n++]=e.width,t[n++]=e.aspectRatio,t[n++]=e.near,t[n]=e.far,t};Ft.unpack=function(e,t,n){return b.defined("array",e),t=A(t,0),l(n)||(n=new Ft),n.width=e[t++],n.aspectRatio=e[t++],n.near=e[t++],n.far=e[t],n};function Km(e){if(!l(e.width)||!l(e.aspectRatio)||!l(e.near)||!l(e.far))throw new x("width, aspectRatio, near, or far parameters are not set.");const t=e._offCenterFrustum;if(e.width!==e._width||e.aspectRatio!==e._aspectRatio||e.near!==e._near||e.far!==e._far){if(e.aspectRatio<0)throw new x("aspectRatio must be positive.");if(e.near<0||e.near>e.far)throw new x("near must be greater than zero and less than far.");e._aspectRatio=e.aspectRatio,e._width=e.width,e._near=e.near,e._far=e.far;const n=1/e.aspectRatio;t.right=e.width*.5,t.left=-t.right,t.top=n*t.right,t.bottom=-t.top,t.near=e.near,t.far=e.far}}Object.defineProperties(Ft.prototype,{projectionMatrix:{get:function(){return Km(this),this._offCenterFrustum.projectionMatrix}}});Ft.prototype.computeCullingVolume=function(e,t,n){return Km(this),this._offCenterFrustum.computeCullingVolume(e,t,n)};Ft.prototype.getPixelDimensions=function(e,t,n,i,o){return Km(this),this._offCenterFrustum.getPixelDimensions(e,t,n,i,o)};Ft.prototype.clone=function(e){return l(e)||(e=new Ft),e.aspectRatio=this.aspectRatio,e.width=this.width,e.near=this.near,e.far=this.far,e._aspectRatio=void 0,e._width=void 0,e._near=void 0,e._far=void 0,this._offCenterFrustum.clone(e._offCenterFrustum),e};Ft.prototype.equals=function(e){return!l(e)||!(e instanceof Ft)?!1:(Km(this),Km(e),this.width===e.width&&this.aspectRatio===e.aspectRatio&&this._offCenterFrustum.equals(e._offCenterFrustum))};Ft.prototype.equalsEpsilon=function(e,t,n){return!l(e)||!(e instanceof Ft)?!1:(Km(this),Km(e),N.equalsEpsilon(this.width,e.width,t,n)&&N.equalsEpsilon(this.aspectRatio,e.aspectRatio,t,n)&&this._offCenterFrustum.equalsEpsilon(e._offCenterFrustum,t,n))};const CN={};function iye(e){const t=6.239996+.0172019696544*e;return .001657*Math.sin(t+.01671*Math.sin(t))}const oye=32.184,rye=2451545;function oj(e,t){t=ne.addSeconds(e,oye,t);const n=ne.totalDays(t)-rye;return t=ne.addSeconds(t,iye(n),t),t}const sS=new ne(2451545,0,zn.TAI),sye=1e3,Lc=N.RADIANS_PER_DEGREE,Ga=N.RADIANS_PER_ARCSECOND,xs=14959787e4,Ez=new J;function rj(e,t,n,i,o,r,s){if(n<0&&(n=-n,o+=N.PI),n<0||n>N.PI)throw new x("The inclination is out of range. Inclination must be greater than or equal to zero and less than or equal to Pi radians.");const a=e*(1-t),c=i-o,u=o,f=cye(r-i,t);if(aye(t,0)==="Hyperbolic"&&Math.abs(N.negativePiToPi(f))>=Math.acos(-1/t))throw new x("The true anomaly of the hyperbolic orbit lies outside of the bounds of the hyperbola.");dye(c,n,u,Ez);const _=a*(1+t),g=Math.cos(f),p=Math.sin(f),y=1+t*g;if(y<=N.Epsilon10)throw new x("elements cannot be converted to cartesian");const C=_/y;return l(s)?(s.x=C*g,s.y=C*p,s.z=0):s=new d(C*g,C*p,0),J.multiplyByVector(Ez,s,s)}function aye(e,t){if(e<0)throw new x("eccentricity cannot be negative.");return e<=t?"Circular":e<1-t?"Elliptical":e<=1+t?"Parabolic":"Hyperbolic"}function cye(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=uye(e,t);return fye(n,t)}const xz=50,lye=N.EPSILON8;function uye(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;let i=e+t*Math.sin(e)/(1-Math.sin(e+t)+Math.sin(e)),o=Number.MAX_VALUE,r;for(r=0;rlye;++r){o=i;const s=o-t*Math.sin(o)-e,a=1-t*Math.cos(o);i=o-s/a}if(r>=xz)throw new x("Kepler equation did not converge");return o=i+n*N.TWO_PI,o}function fye(e,t){if(t<0||t>=1)throw new x("eccentricity out of range.");const n=Math.floor(e/N.TWO_PI);e-=n*N.TWO_PI;const i=Math.cos(e)-t,o=Math.sin(e)*Math.sqrt(1-t*t);let r=Math.atan2(o,i);return r=N.zeroToTwoPi(r),e<0&&(r-=N.TWO_PI),r+=n*N.TWO_PI,r}function dye(e,t,n,i){if(t<0||t>N.PI)throw new x("inclination out of range");const o=Math.cos(e),r=Math.sin(e),s=Math.cos(t),a=Math.sin(t),c=Math.cos(n),u=Math.sin(n);return l(i)?(i[0]=c*o-u*r*s,i[1]=u*o+c*r*s,i[2]=r*a,i[3]=-c*r-u*o*s,i[4]=-u*r+c*o*s,i[5]=o*a,i[6]=u*a,i[7]=-c*a,i[8]=s):i=new J(c*o-u*r*s,-c*r-u*o*s,u*a,u*o+c*r*s,-u*r+c*o*s,-c*a,r*a,o*a,s),i}const hye=1.0000010178*xs,pye=100.46645683*Lc,mye=129597742283429e-5*Ga,wz=16002,Sz=21863,vz=32004,Dz=10931,Iz=14529,Pz=16368,Oz=15318,Lz=32794,_ye=64*1e-7*xs,gye=-152*1e-7*xs,yye=62*1e-7*xs,Aye=-8*1e-7*xs,Cye=32*1e-7*xs,Tye=-41*1e-7*xs,bye=19*1e-7*xs,Eye=-11*1e-7*xs,xye=-150*1e-7*xs,wye=-46*1e-7*xs,Sye=68*1e-7*xs,vye=54*1e-7*xs,Dye=14*1e-7*xs,Iye=24*1e-7*xs,Pye=-28*1e-7*xs,Oye=22*1e-7*xs,Bz=10,Rz=16002,Nz=21863,Mz=10931,Fz=1473,zz=32004,Uz=4387,Hz=73,Lye=-325*1e-7,Bye=-322*1e-7,Rye=-79*1e-7,Nye=232*1e-7,Mye=-52*1e-7,Fye=97*1e-7,zye=55*1e-7,Uye=-41*1e-7,Hye=-105*1e-7,Vye=-137*1e-7,kye=258*1e-7,Gye=35*1e-7,Wye=-116*1e-7,jye=-88*1e-7,qye=-112*1e-7,Yye=-80*1e-7,sy=new ne(0,0,zn.TAI);function $ye(e,t){oj(e,sy);const i=(sy.dayNumber-sS.dayNumber+(sy.secondsOfDay-sS.secondsOfDay)/Ti.SECONDS_PER_DAY)/(Ti.DAYS_PER_JULIAN_CENTURY*10),o=.3595362*i,r=hye+_ye*Math.cos(wz*o)+xye*Math.sin(wz*o)+gye*Math.cos(Sz*o)+wye*Math.sin(Sz*o)+yye*Math.cos(vz*o)+Sye*Math.sin(vz*o)+Aye*Math.cos(Dz*o)+vye*Math.sin(Dz*o)+Cye*Math.cos(Iz*o)+Dye*Math.sin(Iz*o)+Tye*Math.cos(Pz*o)+Iye*Math.sin(Pz*o)+bye*Math.cos(Oz*o)+Pye*Math.sin(Oz*o)+Eye*Math.cos(Lz*o)+Oye*Math.sin(Lz*o),s=pye+mye*i+Lye*Math.cos(Bz*o)+Hye*Math.sin(Bz*o)+Bye*Math.cos(Rz*o)+Vye*Math.sin(Rz*o)+Rye*Math.cos(Nz*o)+kye*Math.sin(Nz*o)+Nye*Math.cos(Mz*o)+Gye*Math.sin(Mz*o)+Mye*Math.cos(Fz*o)+Wye*Math.sin(Fz*o)+Fye*Math.cos(zz*o)+jye*Math.sin(zz*o)+zye*Math.cos(Uz*o)+qye*Math.sin(Uz*o)+Uye*Math.cos(Hz*o)+Yye*Math.sin(Hz*o),a=.0167086342-.0004203654*i,c=102.93734808*Lc+11612.3529*Ga*i,u=469.97289*Ga*i,f=174.87317577*Lc-8679.27034*Ga*i;return rj(r,a,u,c,f,s,t)}function sj(e,t){oj(e,sy);const i=(sy.dayNumber-sS.dayNumber+(sy.secondsOfDay-sS.secondsOfDay)/Ti.SECONDS_PER_DAY)/Ti.DAYS_PER_JULIAN_CENTURY,o=i*i,r=o*i,s=r*i;let a=383397.7725+.004*i,c=.055545526-16e-9*i;const u=5.15668983*Lc;let f=-8e-5*i+.02966*o-42e-6*r-13e-8*s;const h=83.35324312*Lc;let _=146434202669e-4*i-38.2702*o-.045047*r+21301e-8*s;const g=125.04455501*Lc;let p=-69679193631e-4*i+6.3602*o+.007625*r-3586e-8*s;const y=218.31664563*Lc;let C=17325593434847e-4*i-6.391*o+.006588*r-3169e-8*s;const T=297.85019547*Lc+Ga*(1602961601209e-3*i-6.3706*o+.006593*r-3169e-8*s),E=93.27209062*Lc+Ga*(17395272628478e-4*i-12.7512*o-.001037*r+417e-8*s),w=134.96340251*Lc+Ga*(17179159232178e-4*i+31.8792*o+.051635*r-2447e-7*s),S=357.52910918*Lc+Ga*(1295965810481e-4*i-.5532*o+136e-6*r-1149e-8*s),P=310.17137918*Lc-Ga*(6967051436e-3*i+6.2068*o+.007618*r-3219e-8*s),O=2*T,z=4*T,R=6*T,F=2*w,H=3*w,v=4*w,I=2*E;a+=3400.4*Math.cos(O)-635.6*Math.cos(O-w)-235.6*Math.cos(w)+218.1*Math.cos(O-S)+181*Math.cos(O+w),c+=.014216*Math.cos(O-w)+.008551*Math.cos(O-F)-.001383*Math.cos(w)+.001356*Math.cos(O+w)-.001147*Math.cos(z-H)-914e-6*Math.cos(z-F)+869e-6*Math.cos(O-S-w)-627e-6*Math.cos(O)-394e-6*Math.cos(z-v)+282e-6*Math.cos(O-S-F)-279e-6*Math.cos(T-w)-236e-6*Math.cos(F)+231e-6*Math.cos(z)+229e-6*Math.cos(R-v)-201e-6*Math.cos(F-I),f+=486.26*Math.cos(O-I)-40.13*Math.cos(O)+37.51*Math.cos(I)+25.73*Math.cos(F-I)+19.97*Math.cos(O-S-I),_+=-55609*Math.sin(O-w)-34711*Math.sin(O-F)-9792*Math.sin(w)+9385*Math.sin(z-H)+7505*Math.sin(z-F)+5318*Math.sin(O+w)+3484*Math.sin(z-v)-3417*Math.sin(O-S-w)-2530*Math.sin(R-v)-2376*Math.sin(O)-2075*Math.sin(O-H)-1883*Math.sin(F)-1736*Math.sin(R-5*w)+1626*Math.sin(S)-1370*Math.sin(R-H),p+=-5392*Math.sin(O-I)-540*Math.sin(S)-441*Math.sin(O)+423*Math.sin(I)-288*Math.sin(F-I),C+=-3332.9*Math.sin(O)+1197.4*Math.sin(O-w)-662.5*Math.sin(S)+396.3*Math.sin(w)-218*Math.sin(O-S);const m=2*P,D=3*P;f+=46.997*Math.cos(P)*i-.614*Math.cos(O-I+P)*i+.614*Math.cos(O-I-P)*i-.0297*Math.cos(m)*o-.0335*Math.cos(P)*o+.0012*Math.cos(O-I+m)*o-16e-5*Math.cos(P)*r+4e-5*Math.cos(D)*r+4e-5*Math.cos(m)*r;const L=2.116*Math.sin(P)*i-.111*Math.sin(O-I-P)*i-.0015*Math.sin(P)*o;_+=L,C+=L,p+=-520.77*Math.sin(P)*i+13.66*Math.sin(O-I+P)*i+1.12*Math.sin(O-P)*i-1.06*Math.sin(I-P)*i+.66*Math.sin(m)*o+.371*Math.sin(P)*o-.035*Math.sin(O-I+m)*o-.015*Math.sin(O-I+P)*o+.0014*Math.sin(P)*r-.0011*Math.sin(D)*r-9e-4*Math.sin(m)*r,a*=sye;const M=u+f*Ga,V=h+_*Ga,k=y+C*Ga,W=g+p*Ga;return rj(a,c,M,V,W,k,t)}const Vz=.012300034,Xye=Vz/(Vz+1)*-1;function Kye(e,t){return t=sj(e,t),d.multiplyByScalar(t,Xye,t)}const aj=new J(1.0000000000000002,5619723173785822e-31,4690511510146299e-34,-5154129427414611e-31,.9174820620691819,-.39777715593191376,-223970096136568e-30,.39777715593191376,.9174820620691819);let N0=new d;CN.computeSunPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),l(t)||(t=new d),N0=$ye(e,N0),t=d.negate(N0,t),Kye(e,N0),d.subtract(t,N0,t),J.multiplyByVector(aj,t,t),t};CN.computeMoonPositionInEarthInertialFrame=function(e,t){return l(e)||(e=ne.now()),t=sj(e,t),J.multiplyByVector(aj,t,t),t};const EL=CN,ew={MORPHING:0,COLUMBUS_VIEW:1,SCENE2D:2,SCENE3D:3};ew.getMorphTime=function(e){return e===ew.SCENE3D?1:e===ew.MORPHING?void 0:0};const le=Object.freeze(ew);function bv(e){e=A(e,A.EMPTY_OBJECT),this.color=U.clone(A(e.color,U.WHITE)),this.intensity=A(e.intensity,2)}function i0(){this.globeDepthTexture=void 0,this.gamma=void 0,this._viewport=new qe,this._viewportCartesian4=new oe,this._viewportDirty=!1,this._viewportOrthographicMatrix=B.clone(B.IDENTITY),this._viewportTransformation=B.clone(B.IDENTITY),this._model=B.clone(B.IDENTITY),this._view=B.clone(B.IDENTITY),this._inverseView=B.clone(B.IDENTITY),this._projection=B.clone(B.IDENTITY),this._infiniteProjection=B.clone(B.IDENTITY),this._entireFrustum=new j,this._currentFrustum=new j,this._frustumPlanes=new oe,this._farDepthFromNearPlusOne=void 0,this._log2FarDepthFromNearPlusOne=void 0,this._oneOverLog2FarDepthFromNearPlusOne=void 0,this._frameState=void 0,this._temeToPseudoFixed=J.clone(B.IDENTITY),this._view3DDirty=!0,this._view3D=new B,this._inverseView3DDirty=!0,this._inverseView3D=new B,this._inverseModelDirty=!0,this._inverseModel=new B,this._inverseTransposeModelDirty=!0,this._inverseTransposeModel=new J,this._viewRotation=new J,this._inverseViewRotation=new J,this._viewRotation3D=new J,this._inverseViewRotation3D=new J,this._inverseProjectionDirty=!0,this._inverseProjection=new B,this._modelViewDirty=!0,this._modelView=new B,this._modelView3DDirty=!0,this._modelView3D=new B,this._modelViewRelativeToEyeDirty=!0,this._modelViewRelativeToEye=new B,this._inverseModelViewDirty=!0,this._inverseModelView=new B,this._inverseModelView3DDirty=!0,this._inverseModelView3D=new B,this._viewProjectionDirty=!0,this._viewProjection=new B,this._inverseViewProjectionDirty=!0,this._inverseViewProjection=new B,this._modelViewProjectionDirty=!0,this._modelViewProjection=new B,this._inverseModelViewProjectionDirty=!0,this._inverseModelViewProjection=new B,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewProjectionRelativeToEye=new B,this._modelViewInfiniteProjectionDirty=!0,this._modelViewInfiniteProjection=new B,this._normalDirty=!0,this._normal=new J,this._normal3DDirty=!0,this._normal3D=new J,this._inverseNormalDirty=!0,this._inverseNormal=new J,this._inverseNormal3DDirty=!0,this._inverseNormal3D=new J,this._encodedCameraPositionMCDirty=!0,this._encodedCameraPositionMC=new wn,this._cameraPosition=new d,this._sunPositionWC=new d,this._sunPositionColumbusView=new d,this._sunDirectionWC=new d,this._sunDirectionEC=new d,this._moonDirectionEC=new d,this._lightDirectionWC=new d,this._lightDirectionEC=new d,this._lightColor=new d,this._lightColorHdr=new d,this._pass=void 0,this._mode=void 0,this._mapProjection=void 0,this._ellipsoid=void 0,this._cameraDirection=new d,this._cameraRight=new d,this._cameraUp=new d,this._frustum2DWidth=0,this._eyeHeight=0,this._eyeHeight2D=new j,this._pixelRatio=1,this._orthographicIn3D=!1,this._backgroundColor=new U,this._brdfLut=void 0,this._environmentMap=void 0,this._sphericalHarmonicCoefficients=void 0,this._specularEnvironmentMaps=void 0,this._specularEnvironmentMapsDimensions=new j,this._specularEnvironmentMapsMaximumLOD=void 0,this._fogDensity=void 0,this._invertClassificationColor=void 0,this._splitPosition=0,this._pixelSizePerMeter=void 0,this._geometricToleranceOverMeter=void 0,this._minimumDisableDepthTestDistance=void 0}Object.defineProperties(i0.prototype,{frameState:{get:function(){return this._frameState}},viewport:{get:function(){return this._viewport},set:function(e){if(!qe.equals(e,this._viewport)){qe.clone(e,this._viewport);const t=this._viewport,n=this._viewportCartesian4;n.x=t.x,n.y=t.y,n.z=t.width,n.w=t.height,this._viewportDirty=!0}}},viewportCartesian4:{get:function(){return this._viewportCartesian4}},viewportOrthographic:{get:function(){return kz(this),this._viewportOrthographicMatrix}},viewportTransformation:{get:function(){return kz(this),this._viewportTransformation}},model:{get:function(){return this._model},set:function(e){B.clone(e,this._model),this._modelView3DDirty=!0,this._inverseModelView3DDirty=!0,this._inverseModelDirty=!0,this._inverseTransposeModelDirty=!0,this._modelViewDirty=!0,this._inverseModelViewDirty=!0,this._modelViewRelativeToEyeDirty=!0,this._inverseModelViewDirty=!0,this._modelViewProjectionDirty=!0,this._inverseModelViewProjectionDirty=!0,this._modelViewProjectionRelativeToEyeDirty=!0,this._modelViewInfiniteProjectionDirty=!0,this._normalDirty=!0,this._inverseNormalDirty=!0,this._normal3DDirty=!0,this._inverseNormal3DDirty=!0,this._encodedCameraPositionMCDirty=!0}},inverseModel:{get:function(){return this._inverseModelDirty&&(this._inverseModelDirty=!1,B.inverse(this._model,this._inverseModel)),this._inverseModel}},inverseTransposeModel:{get:function(){const e=this._inverseTransposeModel;return this._inverseTransposeModelDirty&&(this._inverseTransposeModelDirty=!1,B.getMatrix3(this.inverseModel,e),J.transpose(e,e)),e}},view:{get:function(){return this._view}},view3D:{get:function(){return PI(this),this._view3D}},viewRotation:{get:function(){return PI(this),this._viewRotation}},viewRotation3D:{get:function(){return PI(this),this._viewRotation3D}},inverseView:{get:function(){return this._inverseView}},inverseView3D:{get:function(){return jz(this),this._inverseView3D}},inverseViewRotation:{get:function(){return this._inverseViewRotation}},inverseViewRotation3D:{get:function(){return jz(this),this._inverseViewRotation3D}},projection:{get:function(){return this._projection}},inverseProjection:{get:function(){return s0e(this),this._inverseProjection}},infiniteProjection:{get:function(){return this._infiniteProjection}},modelView:{get:function(){return a0e(this),this._modelView}},modelView3D:{get:function(){return c0e(this),this._modelView3D}},modelViewRelativeToEye:{get:function(){return p0e(this),this._modelViewRelativeToEye}},inverseModelView:{get:function(){return l0e(this),this._inverseModelView}},inverseModelView3D:{get:function(){return u0e(this),this._inverseModelView3D}},viewProjection:{get:function(){return f0e(this),this._viewProjection}},inverseViewProjection:{get:function(){return d0e(this),this._inverseViewProjection}},modelViewProjection:{get:function(){return h0e(this),this._modelViewProjection}},inverseModelViewProjection:{get:function(){return m0e(this),this._inverseModelViewProjection}},modelViewProjectionRelativeToEye:{get:function(){return _0e(this),this._modelViewProjectionRelativeToEye}},modelViewInfiniteProjection:{get:function(){return g0e(this),this._modelViewInfiniteProjection}},normal:{get:function(){return y0e(this),this._normal}},normal3D:{get:function(){return A0e(this),this._normal3D}},inverseNormal:{get:function(){return C0e(this),this._inverseNormal}},inverseNormal3D:{get:function(){return T0e(this),this._inverseNormal3D}},entireFrustum:{get:function(){return this._entireFrustum}},currentFrustum:{get:function(){return this._currentFrustum}},frustumPlanes:{get:function(){return this._frustumPlanes}},farDepthFromNearPlusOne:{get:function(){return this._farDepthFromNearPlusOne}},log2FarDepthFromNearPlusOne:{get:function(){return this._log2FarDepthFromNearPlusOne}},oneOverLog2FarDepthFromNearPlusOne:{get:function(){return this._oneOverLog2FarDepthFromNearPlusOne}},eyeHeight:{get:function(){return this._eyeHeight}},eyeHeight2D:{get:function(){return this._eyeHeight2D}},sunPositionWC:{get:function(){return this._sunPositionWC}},sunPositionColumbusView:{get:function(){return this._sunPositionColumbusView}},sunDirectionWC:{get:function(){return this._sunDirectionWC}},sunDirectionEC:{get:function(){return this._sunDirectionEC}},moonDirectionEC:{get:function(){return this._moonDirectionEC}},lightDirectionWC:{get:function(){return this._lightDirectionWC}},lightDirectionEC:{get:function(){return this._lightDirectionEC}},lightColor:{get:function(){return this._lightColor}},lightColorHdr:{get:function(){return this._lightColorHdr}},encodedCameraPositionMCHigh:{get:function(){return Wz(this),this._encodedCameraPositionMC.high}},encodedCameraPositionMCLow:{get:function(){return Wz(this),this._encodedCameraPositionMC.low}},temeToPseudoFixedMatrix:{get:function(){return this._temeToPseudoFixed}},pixelRatio:{get:function(){return this._pixelRatio}},fogDensity:{get:function(){return this._fogDensity}},geometricToleranceOverMeter:{get:function(){return this._geometricToleranceOverMeter}},pass:{get:function(){return this._pass}},backgroundColor:{get:function(){return this._backgroundColor}},brdfLut:{get:function(){return this._brdfLut}},environmentMap:{get:function(){return this._environmentMap}},sphericalHarmonicCoefficients:{get:function(){return this._sphericalHarmonicCoefficients}},specularEnvironmentMaps:{get:function(){return this._specularEnvironmentMaps}},specularEnvironmentMapsDimensions:{get:function(){return this._specularEnvironmentMapsDimensions}},specularEnvironmentMapsMaximumLOD:{get:function(){return this._specularEnvironmentMapsMaximumLOD}},splitPosition:{get:function(){return this._splitPosition}},minimumDisableDepthTestDistance:{get:function(){return this._minimumDisableDepthTestDistance}},invertClassificationColor:{get:function(){return this._invertClassificationColor}},orthographicIn3D:{get:function(){return this._orthographicIn3D}},ellipsoid:{get:function(){return A(this._ellipsoid,pe.WGS84)}}});function Jye(e,t){B.clone(t,e._view),B.getMatrix3(t,e._viewRotation),e._view3DDirty=!0,e._inverseView3DDirty=!0,e._modelViewDirty=!0,e._modelView3DDirty=!0,e._modelViewRelativeToEyeDirty=!0,e._inverseModelViewDirty=!0,e._inverseModelView3DDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0,e._modelViewInfiniteProjectionDirty=!0,e._normalDirty=!0,e._inverseNormalDirty=!0,e._normal3DDirty=!0,e._inverseNormal3DDirty=!0}function Qye(e,t){B.clone(t,e._inverseView),B.getMatrix3(t,e._inverseViewRotation)}function Zye(e,t){B.clone(t,e._projection),e._inverseProjectionDirty=!0,e._viewProjectionDirty=!0,e._inverseViewProjectionDirty=!0,e._modelViewProjectionDirty=!0,e._modelViewProjectionRelativeToEyeDirty=!0}function e0e(e,t){B.clone(t,e._infiniteProjection),e._modelViewInfiniteProjectionDirty=!0}function t0e(e,t){d.clone(t.positionWC,e._cameraPosition),d.clone(t.directionWC,e._cameraDirection),d.clone(t.rightWC,e._cameraRight),d.clone(t.upWC,e._cameraUp);const n=t.positionCartographic;l(n)?e._eyeHeight=n.height:e._eyeHeight=-e._ellipsoid.maximumRadius,e._encodedCameraPositionMCDirty=!0}let M0=new J;const n0e=new Ae;function i0e(e,t){l(tn.computeIcrfToFixedMatrix(t.time,M0))||(M0=tn.computeTemeToPseudoFixedMatrix(t.time,M0));let n=EL.computeSunPositionInEarthInertialFrame(t.time,e._sunPositionWC);J.multiplyByVector(M0,n,n),d.normalize(n,e._sunDirectionWC),n=J.multiplyByVector(e.viewRotation3D,n,e._sunDirectionEC),d.normalize(n,n),n=EL.computeMoonPositionInEarthInertialFrame(t.time,e._moonDirectionEC),J.multiplyByVector(M0,n,n),J.multiplyByVector(e.viewRotation3D,n,n),d.normalize(n,n);const i=t.mapProjection,r=i.ellipsoid.cartesianToCartographic(e._sunPositionWC,n0e);i.project(r,e._sunPositionColumbusView)}i0.prototype.updateCamera=function(e){Jye(this,e.viewMatrix),Qye(this,e.inverseViewMatrix),t0e(this,e),this._entireFrustum.x=e.frustum.near,this._entireFrustum.y=e.frustum.far,this.updateFrustum(e.frustum),this._orthographicIn3D=this._mode!==le.SCENE2D&&e.frustum instanceof Ft};i0.prototype.updateFrustum=function(e){Zye(this,e.projectionMatrix),l(e.infiniteProjectionMatrix)&&e0e(this,e.infiniteProjectionMatrix),this._currentFrustum.x=e.near,this._currentFrustum.y=e.far,this._farDepthFromNearPlusOne=e.far-e.near+1,this._log2FarDepthFromNearPlusOne=N.log2(this._farDepthFromNearPlusOne),this._oneOverLog2FarDepthFromNearPlusOne=1/this._log2FarDepthFromNearPlusOne,l(e._offCenterFrustum)&&(e=e._offCenterFrustum),this._frustumPlanes.x=e.top,this._frustumPlanes.y=e.bottom,this._frustumPlanes.z=e.left,this._frustumPlanes.w=e.right};i0.prototype.updatePass=function(e){this._pass=e};const o0e=[],r0e=new bv;i0.prototype.update=function(e){this._mode=e.mode,this._mapProjection=e.mapProjection,this._ellipsoid=e.mapProjection.ellipsoid,this._pixelRatio=e.pixelRatio;const t=e.camera;this.updateCamera(t),e.mode===le.SCENE2D?(this._frustum2DWidth=t.frustum.right-t.frustum.left,this._eyeHeight2D.x=this._frustum2DWidth*.5,this._eyeHeight2D.y=this._eyeHeight2D.x*this._eyeHeight2D.x):(this._frustum2DWidth=0,this._eyeHeight2D.x=0,this._eyeHeight2D.y=0),i0e(this,e);const n=A(e.light,r0e);n instanceof bv?(this._lightDirectionWC=d.clone(this._sunDirectionWC,this._lightDirectionWC),this._lightDirectionEC=d.clone(this._sunDirectionEC,this._lightDirectionEC)):(this._lightDirectionWC=d.normalize(d.negate(n.direction,this._lightDirectionWC),this._lightDirectionWC),this._lightDirectionEC=J.multiplyByVector(this.viewRotation3D,this._lightDirectionWC,this._lightDirectionEC));const i=n.color;let o=d.fromElements(i.red,i.green,i.blue,this._lightColorHdr);o=d.multiplyByScalar(o,n.intensity,o);const r=d.maximumComponent(o);r>1?d.divideByScalar(o,r,this._lightColor):d.clone(o,this._lightColor);const s=e.brdfLutGenerator,a=l(s)?s.colorTexture:void 0;this._brdfLut=a,this._environmentMap=A(e.environmentMap,e.context.defaultCubeMap),this._sphericalHarmonicCoefficients=A(e.sphericalHarmonicCoefficients,o0e),this._specularEnvironmentMaps=e.specularEnvironmentMaps,this._specularEnvironmentMapsMaximumLOD=e.specularEnvironmentMapsMaximumLOD,l(this._specularEnvironmentMaps)&&j.clone(this._specularEnvironmentMaps.dimensions,this._specularEnvironmentMapsDimensions),this._fogDensity=e.fog.density,this._invertClassificationColor=e.invertClassificationColor,this._frameState=e,this._temeToPseudoFixed=tn.computeTemeToPseudoFixedMatrix(e.time,this._temeToPseudoFixed),this._splitPosition=e.splitPosition*e.context.drawingBufferWidth;const c=t.frustum.fov,u=this._viewport;let f;l(c)?u.height>u.width?f=Math.tan(.5*c)*2/u.height:f=Math.tan(.5*c)*2/u.width:f=1/Math.max(u.width,u.height),this._geometricToleranceOverMeter=f*e.maximumScreenSpaceError,U.clone(e.backgroundColor,this._backgroundColor),this._minimumDisableDepthTestDistance=e.minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance*=this._minimumDisableDepthTestDistance,this._minimumDisableDepthTestDistance===Number.POSITIVE_INFINITY&&(this._minimumDisableDepthTestDistance=-1)};function kz(e){if(e._viewportDirty){const t=e._viewport;B.computeOrthographicOffCenter(t.x,t.x+t.width,t.y,t.y+t.height,0,1,e._viewportOrthographicMatrix),B.computeViewportTransformation(t,0,1,e._viewportTransformation),e._viewportDirty=!1}}function s0e(e){e._inverseProjectionDirty&&(e._inverseProjectionDirty=!1,e._mode!==le.SCENE2D&&e._mode!==le.MORPHING&&!e._orthographicIn3D?B.inverse(e._projection,e._inverseProjection):B.clone(B.ZERO,e._inverseProjection))}function a0e(e){e._modelViewDirty&&(e._modelViewDirty=!1,B.multiplyTransformation(e._view,e._model,e._modelView))}function c0e(e){e._modelView3DDirty&&(e._modelView3DDirty=!1,B.multiplyTransformation(e.view3D,e._model,e._modelView3D))}function l0e(e){e._inverseModelViewDirty&&(e._inverseModelViewDirty=!1,B.inverse(e.modelView,e._inverseModelView))}function u0e(e){e._inverseModelView3DDirty&&(e._inverseModelView3DDirty=!1,B.inverse(e.modelView3D,e._inverseModelView3D))}function f0e(e){e._viewProjectionDirty&&(e._viewProjectionDirty=!1,B.multiply(e._projection,e._view,e._viewProjection))}function d0e(e){e._inverseViewProjectionDirty&&(e._inverseViewProjectionDirty=!1,B.inverse(e.viewProjection,e._inverseViewProjection))}function h0e(e){e._modelViewProjectionDirty&&(e._modelViewProjectionDirty=!1,B.multiply(e._projection,e.modelView,e._modelViewProjection))}function p0e(e){if(e._modelViewRelativeToEyeDirty){e._modelViewRelativeToEyeDirty=!1;const t=e.modelView,n=e._modelViewRelativeToEye;n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n[6]=t[6],n[7]=t[7],n[8]=t[8],n[9]=t[9],n[10]=t[10],n[11]=t[11],n[12]=0,n[13]=0,n[14]=0,n[15]=t[15]}}function m0e(e){e._inverseModelViewProjectionDirty&&(e._inverseModelViewProjectionDirty=!1,B.inverse(e.modelViewProjection,e._inverseModelViewProjection))}function _0e(e){e._modelViewProjectionRelativeToEyeDirty&&(e._modelViewProjectionRelativeToEyeDirty=!1,B.multiply(e._projection,e.modelViewRelativeToEye,e._modelViewProjectionRelativeToEye))}function g0e(e){e._modelViewInfiniteProjectionDirty&&(e._modelViewInfiniteProjectionDirty=!1,B.multiply(e._infiniteProjection,e.modelView,e._modelViewInfiniteProjection))}function y0e(e){if(e._normalDirty){e._normalDirty=!1;const t=e._normal;B.getMatrix3(e.inverseModelView,t),J.getRotation(t,t),J.transpose(t,t)}}function A0e(e){if(e._normal3DDirty){e._normal3DDirty=!1;const t=e._normal3D;B.getMatrix3(e.inverseModelView3D,t),J.getRotation(t,t),J.transpose(t,t)}}function C0e(e){e._inverseNormalDirty&&(e._inverseNormalDirty=!1,B.getMatrix3(e.inverseModelView,e._inverseNormal),J.getRotation(e._inverseNormal,e._inverseNormal))}function T0e(e){e._inverseNormal3DDirty&&(e._inverseNormal3DDirty=!1,B.getMatrix3(e.inverseModelView3D,e._inverseNormal3D),J.getRotation(e._inverseNormal3D,e._inverseNormal3D))}const Gz=new d;function Wz(e){e._encodedCameraPositionMCDirty&&(e._encodedCameraPositionMCDirty=!1,B.multiplyByPoint(e.inverseModel,e._cameraPosition,Gz),wn.fromCartesian(Gz,e._encodedCameraPositionMC))}const b0e=new d,E0e=new d,x0e=new d,w0e=new d,S0e=new Ae,v0e=new d,D0e=new B;function I0e(e,t,n,i,o,r,s,a){const c=b0e;c.x=e.y,c.y=e.z,c.z=e.x;const u=E0e;u.x=n.y,u.y=n.z,u.z=n.x;const f=x0e;f.x=i.y,f.y=i.z,f.z=i.x;const h=w0e;h.x=t.y,h.y=t.z,h.z=t.x,r===le.SCENE2D&&(c.z=o*.5);const _=s.unproject(c,S0e);_.longitude=N.clamp(_.longitude,-Math.PI,Math.PI),_.latitude=N.clamp(_.latitude,-N.PI_OVER_TWO,N.PI_OVER_TWO);const g=s.ellipsoid,p=g.cartographicToCartesian(_,v0e),y=tn.eastNorthUpToFixedFrame(p,g,D0e);return B.multiplyByPointAsVector(y,u,u),B.multiplyByPointAsVector(y,f,f),B.multiplyByPointAsVector(y,h,h),l(a)||(a=new B),a[0]=u.x,a[1]=f.x,a[2]=-h.x,a[3]=0,a[4]=u.y,a[5]=f.y,a[6]=-h.y,a[7]=0,a[8]=u.z,a[9]=f.z,a[10]=-h.z,a[11]=0,a[12]=-d.dot(u,p),a[13]=-d.dot(f,p),a[14]=d.dot(h,p),a[15]=1,a}function PI(e){e._view3DDirty&&(e._mode===le.SCENE3D?B.clone(e._view,e._view3D):I0e(e._cameraPosition,e._cameraDirection,e._cameraRight,e._cameraUp,e._frustum2DWidth,e._mode,e._mapProjection,e._view3D),B.getMatrix3(e._view3D,e._viewRotation3D),e._view3DDirty=!1)}function jz(e){e._inverseView3DDirty&&(B.inverseTransformation(e.view3D,e._inverseView3D),B.getMatrix3(e._inverseView3D,e._inverseViewRotation3D),e._inverseView3DDirty=!1)}function P0e(e,t,n,i){const o=l(t.vertexBuffer),r=l(t.value),s=t.value?t.value.length:t.componentsPerAttribute;if(!o&&!r)throw new x("attribute must have a vertexBuffer or a value.");if(o&&r)throw new x("attribute cannot have both a vertexBuffer and a value. It must have either a vertexBuffer property defining per-vertex data or a value property defining data for all vertices.");if(s!==1&&s!==2&&s!==3&&s!==4)throw r?new x("attribute.value.length must be in the range [1, 4]."):new x("attribute.componentsPerAttribute must be in the range [1, 4].");if(l(t.componentDatatype)&&!ee.validate(t.componentDatatype))throw new x("attribute must have a valid componentDatatype or not specify it.");if(l(t.strideInBytes)&&t.strideInBytes>255)throw new x("attribute must have a strideInBytes less than or equal to 255 or not specify it.");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&!i.instancedArrays)throw new x("instanced arrays is not supported");if(l(t.instanceDivisor)&&t.instanceDivisor<0)throw new x("attribute must have an instanceDivisor greater than or equal to zero");if(l(t.instanceDivisor)&&r)throw new x("attribute cannot have have an instanceDivisor if it is not backed by a buffer");if(l(t.instanceDivisor)&&t.instanceDivisor>0&&t.index===0)throw new x("attribute zero cannot have an instanceDivisor greater than 0");const a={index:A(t.index,n),enabled:A(t.enabled,!0),vertexBuffer:t.vertexBuffer,value:r?t.value.slice(0):void 0,componentsPerAttribute:s,componentDatatype:A(t.componentDatatype,ee.FLOAT),normalize:A(t.normalize,!1),offsetInBytes:A(t.offsetInBytes,0),strideInBytes:A(t.strideInBytes,0),instanceDivisor:A(t.instanceDivisor,0)};if(o)a.vertexAttrib=function(c){const u=this.index;c.bindBuffer(c.ARRAY_BUFFER,this.vertexBuffer._getBuffer()),c.vertexAttribPointer(u,this.componentsPerAttribute,this.componentDatatype,this.normalize,this.strideInBytes,this.offsetInBytes),c.enableVertexAttribArray(u),this.instanceDivisor>0&&(i.glVertexAttribDivisor(u,this.instanceDivisor),i._vertexAttribDivisors[u]=this.instanceDivisor,i._previousDrawInstanced=!0)},a.disableVertexAttribArray=function(c){c.disableVertexAttribArray(this.index),this.instanceDivisor>0&&i.glVertexAttribDivisor(n,0)};else{switch(a.componentsPerAttribute){case 1:a.vertexAttrib=function(c){c.vertexAttrib1fv(this.index,this.value)};break;case 2:a.vertexAttrib=function(c){c.vertexAttrib2fv(this.index,this.value)};break;case 3:a.vertexAttrib=function(c){c.vertexAttrib3fv(this.index,this.value)};break;case 4:a.vertexAttrib=function(c){c.vertexAttrib4fv(this.index,this.value)};break}a.disableVertexAttribArray=function(c){}}e.push(a)}function cj(e,t,n){for(let i=0;i0&&(c=!0),l(s[r].value)&&(u=!0);const h={};for(r=0;r0)for(r=qz(e[o[0]]),t=1;t0){const u=ee.getSizeInBytes(e[o[0]].componentDatatype),f=a%u;f!==0&&(a+=u-f);const h=r*a,_=new ArrayBuffer(h),g={};for(t=0;t=N.SIXTY_FOUR_KILOBYTES&&t.elementIndexUint?_=At.createIndexBuffer({context:t,typedArray:new Uint32Array(g),usage:i,indexDatatype:it.UNSIGNED_INT}):_=At.createIndexBuffer({context:t,typedArray:new Uint16Array(g),usage:i,indexDatatype:it.UNSIGNED_SHORT})),new to({context:t,attributes:f,indexBuffer:_})};Object.defineProperties(to.prototype,{numberOfAttributes:{get:function(){return this._attributes.length}},numberOfVertices:{get:function(){return this._numberOfVertices}},indexBuffer:{get:function(){return this._indexBuffer}}});to.prototype.getAttribute=function(e){return b.defined("index",e),this._attributes[e]};function B0e(e){const t=e._context,n=e._hasInstancedAttributes;if(!n&&!t._previousDrawInstanced)return;t._previousDrawInstanced=n;const i=t._vertexAttribDivisors,o=e._attributes,r=wt.maximumVertexAttributes;let s;if(n){const a=o.length;for(s=0;s0&&(t.glVertexAttribDivisor(s,0),i[s]=0)}function R0e(e,t){const n=e._attributes,i=n.length;for(let o=0;o"u")throw new Se("The browser does not support WebGL. Visit http://get.webgl.org.");!n&&!(typeof WebGL2RenderingContext<"u")&&(n=!0);const o=n?"webgl":"webgl2",r=e.getContext(o,t);if(!l(r))throw new Se("The browser supports WebGL, but initialization failed.");return r}function M0e(e,t){let n="WebGL Error: ";switch(t){case e.INVALID_ENUM:n+="INVALID_ENUM";break;case e.INVALID_VALUE:n+="INVALID_VALUE";break;case e.INVALID_OPERATION:n+="INVALID_OPERATION";break;case e.OUT_OF_MEMORY:n+="OUT_OF_MEMORY";break;case e.CONTEXT_LOST_WEBGL:n+="CONTEXT_LOST_WEBGL lost";break;default:n+=`Unknown (${t})`}return n}function F0e(e,t,n,i){let o=`${M0e(e,i)}: ${t.name}(`;for(let r=0;r=8}},antialias:{get:function(){return this._antialias}},msaa:{get:function(){return this._webgl2}},standardDerivatives:{get:function(){return this._standardDerivatives||this._webgl2}},floatBlend:{get:function(){return this._floatBlend}},blendMinmax:{get:function(){return this._blendMinmax||this._webgl2}},elementIndexUint:{get:function(){return this._elementIndexUint||this._webgl2}},depthTexture:{get:function(){return this._depthTexture||this._webgl2}},floatingPointTexture:{get:function(){return this._webgl2||this._textureFloat}},halfFloatingPointTexture:{get:function(){return this._webgl2||this._textureHalfFloat}},textureFloatLinear:{get:function(){return this._textureFloatLinear}},textureHalfFloatLinear:{get:function(){return this._webgl2&&this._textureFloatLinear||!this._webgl2&&this._textureHalfFloatLinear}},textureFilterAnisotropic:{get:function(){return!!this._textureFilterAnisotropic}},s3tc:{get:function(){return this._s3tc}},pvrtc:{get:function(){return this._pvrtc}},astc:{get:function(){return this._astc}},etc:{get:function(){return this._etc}},etc1:{get:function(){return this._etc1}},bc7:{get:function(){return this._bc7}},supportsBasis:{get:function(){return this._s3tc||this._pvrtc||this._astc||this._etc||this._etc1||this._bc7}},vertexArrayObject:{get:function(){return this._vertexArrayObject||this._webgl2}},fragmentDepth:{get:function(){return this._fragDepth||this._webgl2}},instancedArrays:{get:function(){return this._instancedArrays||this._webgl2}},colorBufferFloat:{get:function(){return this._colorBufferFloat}},colorBufferHalfFloat:{get:function(){return this._webgl2&&this._colorBufferFloat||!this._webgl2&&this._colorBufferHalfFloat}},drawBuffers:{get:function(){return this._drawBuffers||this._webgl2}},debugShaders:{get:function(){return this._debugShaders}},throwOnWebGLError:{get:function(){return this._throwOnWebGLError},set:function(e){this._throwOnWebGLError=e,this._gl=H0e(this._originalGLContext,e?z0e:void 0)}},defaultTexture:{get:function(){return this._defaultTexture===void 0&&(this._defaultTexture=new zt({context:this,source:{width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])},flipY:!1})),this._defaultTexture}},defaultEmissiveTexture:{get:function(){return this._defaultEmissiveTexture===void 0&&(this._defaultEmissiveTexture=new zt({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([0,0,0])},flipY:!1})),this._defaultEmissiveTexture}},defaultNormalTexture:{get:function(){return this._defaultNormalTexture===void 0&&(this._defaultNormalTexture=new zt({context:this,pixelFormat:nt.RGB,source:{width:1,height:1,arrayBufferView:new Uint8Array([128,128,255])},flipY:!1})),this._defaultNormalTexture}},defaultCubeMap:{get:function(){if(this._defaultCubeMap===void 0){const e={width:1,height:1,arrayBufferView:new Uint8Array([255,255,255,255])};this._defaultCubeMap=new nu({context:this,source:{positiveX:e,negativeX:e,positiveY:e,negativeY:e,positiveZ:e,negativeZ:e},flipY:!1})}return this._defaultCubeMap}},drawingBufferHeight:{get:function(){return this._gl.drawingBufferHeight}},drawingBufferWidth:{get:function(){return this._gl.drawingBufferWidth}},defaultFramebuffer:{get:function(){return V0e}}});function k0e(e){if(e.validateFramebuffer){const t=e._gl,n=t.checkFramebufferStatus(t.FRAMEBUFFER);if(n!==t.FRAMEBUFFER_COMPLETE){let i;switch(n){case t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT:i="Framebuffer is not complete. Incomplete attachment: at least one attachment point with a renderbuffer or texture attached has its attached object no longer in existence or has an attached image with a width or height of zero, or the color attachment point has a non-color-renderable image attached, or the depth attachment point has a non-depth-renderable image attached, or the stencil attachment point has a non-stencil-renderable image attached. Color-renderable formats include GL_RGBA4, GL_RGB5_A1, and GL_RGB565. GL_DEPTH_COMPONENT16 is the only depth-renderable format. GL_STENCIL_INDEX8 is the only stencil-renderable format.";break;case t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS:i="Framebuffer is not complete. Incomplete dimensions: not all attached images have the same width and height.";break;case t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:i="Framebuffer is not complete. Missing attachment: no images are attached to the framebuffer.";break;case t.FRAMEBUFFER_UNSUPPORTED:i="Framebuffer is not complete. Unsupported: the combination of internal formats of the attached images violates an implementation-dependent set of restrictions.";break}throw new x(i)}}}function lj(e,t,n,i){const o=e._currentRenderState,r=e._currentPassState;e._currentRenderState=t,e._currentPassState=n,Qe.partialApply(e._gl,o,t,r,n,i)}let TN;typeof WebGLRenderingContext<"u"&&(TN=[se.BACK]);function bN(e,t){if(t!==e._currentFramebuffer){e._currentFramebuffer=t;let n=TN;if(l(t))t._bind(),k0e(e),n=t._getActiveColorAttachments();else{const i=e._gl;i.bindFramebuffer(i.FRAMEBUFFER,null)}e.drawBuffers&&e.glDrawBuffers(n)}}const G0e=new Ji;Ua.prototype.clear=function(e,t){e=A(e,G0e),t=A(t,this._defaultPassState);const n=this._gl;let i=0;const o=e.color,r=e.depth,s=e.stencil;l(o)&&(U.equals(this._clearColor,o)||(U.clone(o,this._clearColor),n.clearColor(o.red,o.green,o.blue,o.alpha)),i|=n.COLOR_BUFFER_BIT),l(r)&&(r!==this._clearDepth&&(this._clearDepth=r,n.clearDepth(r)),i|=n.DEPTH_BUFFER_BIT),l(s)&&(s!==this._clearStencil&&(this._clearStencil=s,n.clearStencil(s)),i|=n.STENCIL_BUFFER_BIT);const a=A(e.renderState,this._defaultRenderState);lj(this,a,t,!0);const c=A(e.framebuffer,t.framebuffer);bN(this,c),n.clear(i)};function W0e(e,t,n,i,o){if(l(t)&&o.depthTest&&o.depthTest.enabled&&!t.hasDepthAttachment)throw new x("The depth test can not be enabled (drawCommand.renderState.depthTest.enabled) because the framebuffer (drawCommand.framebuffer) does not have a depth or depth-stencil renderbuffer.");bN(e,t),lj(e,o,n,!1),i._bind(),e._maxFrameTextureUnitIndex=Math.max(e._maxFrameTextureUnitIndex,i.maximumTextureUnitIndex)}function j0e(e,t,n,i){const o=t._primitiveType,r=t._vertexArray;let s=t._offset,a=t._count;const c=t.instanceCount;if(!Je.validate(o))throw new x("drawCommand.primitiveType is required and must be valid.");if(b.defined("drawCommand.vertexArray",r),b.typeOf.number.greaterThanOrEquals("drawCommand.offset",s,0),l(a)&&b.typeOf.number.greaterThanOrEquals("drawCommand.count",a,0),b.typeOf.number.greaterThanOrEquals("drawCommand.instanceCount",c,0),c>0&&!e.instancedArrays)throw new x("Instanced arrays extension is not supported");e._us.model=A(t._modelMatrix,B.IDENTITY),n._setUniforms(i,e._us,e.validateShaderProgram),r._bind();const u=r.indexBuffer;l(u)?(s=s*u.bytesPerIndex,a=A(a,u.numberOfIndices),c===0?e._gl.drawElements(o,a,u.indexDatatype,s):e.glDrawElementsInstanced(o,a,u.indexDatatype,s,c)):(a=A(a,r.numberOfVertices),c===0?e._gl.drawArrays(o,s,a):e.glDrawArraysInstanced(o,s,a,c)),r._unBind()}Ua.prototype.draw=function(e,t,n,i){b.defined("drawCommand",e),b.defined("drawCommand.shaderProgram",e._shaderProgram),t=A(t,this._defaultPassState);const o=A(e._framebuffer,t.framebuffer),r=A(e._renderState,this._defaultRenderState);n=A(n,e._shaderProgram),i=A(i,e._uniformMap),W0e(this,o,t,n,r),j0e(this,e,n,i)};Ua.prototype.endFrame=function(){const e=this._gl;e.useProgram(null),this._currentFramebuffer=void 0,e.bindFramebuffer(e.FRAMEBUFFER,null);const t=TN;this.drawBuffers&&this.glDrawBuffers(t);const n=this._maxFrameTextureUnitIndex;this._maxFrameTextureUnitIndex=0;for(let i=0;i0&&(a=s.getColorTexture(0).pixelDatatype);const c=nt.createTypedArray(nt.RGBA,a,o,r);return bN(this,s),t.readPixels(n,i,o,r,nt.RGBA,Ke.toWebGLConstant(a,this),c),c};const uj={position:0,textureCoordinates:1};Ua.prototype.getViewportQuadVertexArray=function(){let e=this.cache.viewportQuad_vertexArray;if(!l(e)){const t=new Dt({attributes:{position:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[-1,-1,1,-1,1,1,-1,1]}),textureCoordinates:new ze({componentDatatype:ee.FLOAT,componentsPerAttribute:2,values:[0,0,1,0,1,1,0,1]})},indices:new Uint16Array([0,1,2,0,2,3]),primitiveType:Je.TRIANGLES});e=to.fromGeometry({context:this,geometry:t,attributeLocations:uj,bufferUsage:Ze.STATIC_DRAW,interleave:!0}),this.cache.viewportQuad_vertexArray=e}return e};Ua.prototype.createViewportQuadCommand=function(e,t){return t=A(t,A.EMPTY_OBJECT),new dt({vertexArray:this.getViewportQuadVertexArray(),primitiveType:Je.TRIANGLES,renderState:t.renderState,shaderProgram:hn.fromCache({context:this,vertexShaderSource:V9,fragmentShaderSource:e,attributeLocations:uj}),uniformMap:t.uniformMap,owner:t.owner,framebuffer:t.framebuffer,pass:t.pass})};Ua.prototype.getObjectByPickColor=function(e){return b.defined("pickColor",e),this._pickObjects[e.toRgba()]};function EN(e,t,n){this._pickObjects=e,this.key=t,this.color=n}Object.defineProperties(EN.prototype,{object:{get:function(){return this._pickObjects[this.key]},set:function(e){this._pickObjects[this.key]=e}}});EN.prototype.destroy=function(){delete this._pickObjects[this.key]};Ua.prototype.createPickId=function(e){b.defined("object",e),++this._nextPickColor[0];const t=this._nextPickColor[0];if(t===0)throw new Se("Out of unique Pick IDs.");return this._pickObjects[t]=e,new EN(this._pickObjects,t,U.fromRgba(t))};Ua.prototype.isDestroyed=function(){return!1};Ua.prototype.destroy=function(){const e=this.cache;for(const t in e)if(e.hasOwnProperty(t)){const n=e[t];l(n.destroy)&&n.destroy()}return this._shaderCache=this._shaderCache.destroy(),this._textureCache=this._textureCache.destroy(),this._defaultTexture=this._defaultTexture&&this._defaultTexture.destroy(),this._defaultEmissiveTexture=this._defaultEmissiveTexture&&this._defaultEmissiveTexture.destroy(),this._defaultNormalTexture=this._defaultNormalTexture&&this._defaultNormalTexture.destroy(),this._defaultCubeMap=this._defaultCubeMap&&this._defaultCubeMap.destroy(),Ue(this)};Ua._deprecationWarning=Tp;function o0(e){e=A(e,A.EMPTY_OBJECT);const t=e.context,n=e.width,i=e.height;b.defined("options.context",t),b.defined("options.width",n),b.defined("options.height",i),this._width=n,this._height=i;const o=e.colorRenderbuffers,r=e.colorTextures;if(l(o)!==l(r))throw new x("Both color renderbuffer and texture attachments must be provided.");const s=e.depthStencilRenderbuffer,a=e.depthStencilTexture;if(l(s)!==l(a))throw new x("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new zr({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:e.destroyAttachments}),this._colorFramebuffer=new zr({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:e.destroyAttachments})}o0.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};o0.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};o0.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();const n=e._gl;let i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),l(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};o0.prototype.isDestroyed=function(){return!1};o0.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),Ue(this)};const Oa={RGBA4:se.RGBA4,RGBA8:se.RGBA8,RGBA16F:se.RGBA16F,RGBA32F:se.RGBA32F,RGB5_A1:se.RGB5_A1,RGB565:se.RGB565,DEPTH_COMPONENT16:se.DEPTH_COMPONENT16,STENCIL_INDEX8:se.STENCIL_INDEX8,DEPTH_STENCIL:se.DEPTH_STENCIL,DEPTH24_STENCIL8:se.DEPTH24_STENCIL8,validate:function(e){return e===Oa.RGBA4||e===Oa.RGBA8||e===Oa.RGBA16F||e===Oa.RGBA32F||e===Oa.RGB5_A1||e===Oa.RGB565||e===Oa.DEPTH_COMPONENT16||e===Oa.STENCIL_INDEX8||e===Oa.DEPTH_STENCIL||e===Oa.DEPTH24_STENCIL8},getColorFormat:function(e){return e===se.FLOAT?Oa.RGBA32F:e===se.HALF_FLOAT_OES?Oa.RGBA16F:Oa.RGBA8}},Gf=Object.freeze(Oa);function Ol(e){e=A(e,A.EMPTY_OBJECT),b.defined("options.context",e.context);const n=e.context._gl,i=wt.maximumRenderbufferSize,o=A(e.format,Gf.RGBA4),r=l(e.width)?e.width:n.drawingBufferWidth,s=l(e.height)?e.height:n.drawingBufferHeight,a=A(e.numSamples,1);if(!Gf.validate(o))throw new x("Invalid format.");if(b.typeOf.number.greaterThan("width",r,0),r>i)throw new x(`Width must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);if(b.typeOf.number.greaterThan("height",s,0),s>i)throw new x(`Height must be less than or equal to the maximum renderbuffer size (${i}). Check maximumRenderbufferSize.`);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(Ol.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});Ol.prototype._getRenderbuffer=function(){return this._renderbuffer};Ol.prototype.isDestroyed=function(){return!1};Ol.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),Ue(this)};function En(e){if(e=A(e,A.EMPTY_OBJECT),this._numSamples=A(e.numSamples,1),this._colorAttachmentsLength=A(e.colorAttachmentsLength,1),this._color=A(e.color,!0),this._depth=A(e.depth,!1),this._depthStencil=A(e.depthStencil,!1),this._supportsDepthTexture=A(e.supportsDepthTexture,!1),!this._color&&!this._depth&&!this._depthStencil)throw new x("Must enable at least one type of framebuffer attachment.");if(this._depth&&this._depthStencil)throw new x("Cannot have both a depth and depth-stencil attachment.");this._createColorAttachments=A(e.createColorAttachments,!0),this._createDepthAttachments=A(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(En.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});En.prototype.isDirty=function(e,t,n,i,o){n=A(n,1);const r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=l(i)&&this._pixelDatatype!==i||l(o)&&this._pixelFormat!==o,c=l(n===1?this._framebuffer:this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!l(this._colorTextures[0])};En.prototype.update=function(e,t,n,i,o,r){if(!l(t)||!l(n))throw new x("width and height must be defined.");if(i=e.msaa?A(i,1):1,o=A(o,this._color?A(this._pixelDatatype,Ke.UNSIGNED_BYTE):void 0),r=A(r,this._color?A(this._pixelFormat,nt.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s1){const a=Gf.getColorFormat(o);this._colorRenderbuffers[s]=new Ol({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new zt({context:e,width:t,height:n,pixelFormat:nt.DEPTH_STENCIL,pixelDatatype:Ke.UNSIGNED_INT_24_8,sampler:Yn.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new Ol({context:e,width:t,height:n,format:Gf.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new Ol({context:e,width:t,height:n,format:Gf.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new zt({context:e,width:t,height:n,pixelFormat:nt.DEPTH_COMPONENT,pixelDatatype:Ke.UNSIGNED_INT,sampler:Yn.NEAREST}):this._depthRenderbuffer=new Ol({context:e,width:t,height:n,format:Gf.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new o0({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new zr({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};En.prototype.getColorTexture=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorTextures[e]};En.prototype.setColorTexture=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorTexture is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};En.prototype.getColorRenderbuffer=function(e){if(e=A(e,0),e>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");return this._colorRenderbuffers[e]};En.prototype.setColorRenderbuffer=function(e,t){if(t=A(t,0),this._createColorAttachments)throw new x("createColorAttachments must be false if setColorRenderbuffer is called.");if(t>=this._colorAttachmentsLength)throw new x("index must be smaller than total number of color attachments.");this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};En.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};En.prototype.setDepthRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthRenderbuffer is called.");this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};En.prototype.getDepthTexture=function(){return this._depthTexture};En.prototype.setDepthTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthTexture is called.");this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};En.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};En.prototype.setDepthStencilRenderbuffer=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilRenderbuffer is called.");this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};En.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};En.prototype.setDepthStencilTexture=function(e){if(this._createDepthAttachments)throw new x("createDepthAttachments must be false if setDepthStencilTexture is called.");this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};En.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};En.prototype.clear=function(e,t,n){const i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};En.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};En.prototype.destroy=function(){if(this._color){let e;const t=this._colorTextures.length;for(e=0;e0?ee.getSizeInBytes(e[0].componentDatatype):0,o=i>0?t%i:0,r=o===0?0:i-o;return t+=r,t};br._createArrayViews=function(e,t){const n=[];let i=0;const o=e.length;for(let r=0;r0){const n=new ArrayBuffer(t*e.vertexSizeInBytes);if(l(e.arrayBuffer)){const r=new Uint8Array(n),s=new Uint8Array(e.arrayBuffer),a=s.length;for(let c=0;c0){t.needsCommit=!1;const n=t.vertexBuffer,i=e._size*t.vertexSizeInBytes,o=l(n);if(!o||n.sizeInBytes=this._size)throw new x("offsetInVertices must be greater than or equal to zero and less than the vertex array size.");if(e+t>this._size)throw new x("offsetInVertices + lengthInVertices cannot exceed the vertex array size.");const n=this._allBuffers;for(let i=0,o=n.length;i0){const i=e.vertexSizeInBytes*t,o=e.vertexSizeInBytes*n;e.vertexBuffer.copyFromArrayView(new Uint8Array(e.arrayBuffer,i,o),i)}}br.prototype.endSubCommits=function(){const e=this._allBuffers;for(let t=0,n=e.length;t opaqueDepth, 1.0, translucentDepth); gl_FragColor = czm_packDepth(translucentDepth); } -`,hEe=`/** +`,iAe=`/** * Compositing for Weighted Blended Order-Independent Transparency. See: * - http://jcgt.org/published/0002/02/09/ * - http://casual-effects.blogspot.com/2014/03/weighted-blended-order-independent.html @@ -4472,7 +4459,7 @@ void main() gl_FragColor.a = 1.0; } } -`,pEe=`varying vec4 positionEC; +`,oAe=`varying vec4 positionEC; void main() { @@ -4508,7 +4495,7 @@ void main() czm_writeLogDepth(); } -`,mEe=`attribute vec4 position; +`,rAe=`attribute vec4 position; varying vec4 positionEC; @@ -4519,7 +4506,7 @@ void main() czm_vertexLogDepth(); } -`,XU=`#ifdef WRITE_DEPTH +`,$z=`#ifdef WRITE_DEPTH #ifdef GL_EXT_frag_depth #extension GL_EXT_frag_depth : enable #endif @@ -4631,7 +4618,7 @@ void main() #endif #endif } -`,KU=`attribute vec3 position; +`,Xz=`attribute vec3 position; uniform vec3 u_radii; @@ -4686,7 +4673,7 @@ void main() * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */const _Ee=`/** + */const sAe=`/** * @license * Copyright (c) 2014-2015, NVIDIA CORPORATION. All rights reserved. * @@ -5334,7 +5321,7 @@ FxaaFloat4 FxaaPixelShader( if( horzSpan) posM.y += pixelOffsetSubpix * lengthSign; return FxaaFloat4(FxaaTexTop(tex, posM).xyz, lumaM); } -`,gEe=`uniform vec4 u_initialColor; +`,aAe=`uniform vec4 u_initialColor; #if TEXTURE_UNITS > 0 uniform sampler2D u_dayTextures[TEXTURE_UNITS]; @@ -5987,7 +5974,7 @@ vec4 computeWaterColor(vec3 positionEyeCoordinates, vec2 textureCoordinates, mat } #endif // #ifdef SHOW_REFLECTIVE_OCEAN -`,yEe=`#ifdef QUANTIZATION_BITS12 +`,cAe=`#ifdef QUANTIZATION_BITS12 attribute vec4 compressed0; attribute float compressed1; #else @@ -6240,7 +6227,7 @@ void main() v_height = height; #endif } -`,JU=`void computeAtmosphereScattering(vec3 positionWC, vec3 lightDirection, out vec3 rayleighColor, out vec3 mieColor, out float opacity) { +`,Kz=`void computeAtmosphereScattering(vec3 positionWC, vec3 lightDirection, out vec3 rayleighColor, out vec3 mieColor, out float opacity) { vec3 cameraToPositionWC = positionWC - czm_viewerPositionWC; vec3 cameraToPositionWCDirection = normalize(cameraToPositionWC); @@ -6258,7 +6245,7 @@ void main() opacity ); } -`,AEe=`varying vec2 v_textureCoordinates; +`,lAe=`varying vec2 v_textureCoordinates; uniform float originalSize; uniform sampler2D texture0; @@ -6347,7 +6334,7 @@ void main() gl_FragColor = vec4(0.0); } } -`,bEe=`varying vec3 v_cubeMapCoordinates; +`,uAe=`varying vec3 v_cubeMapCoordinates; uniform samplerCube cubeMap; void main() @@ -6361,7 +6348,7 @@ void main() gl_FragColor = vec4(r * r, 1.0); #endif } -`,CEe=`attribute vec4 position; +`,fAe=`attribute vec4 position; attribute vec3 cubeMapCoordinates; varying vec3 v_cubeMapCoordinates; @@ -6371,7 +6358,7 @@ void main() gl_Position = position; v_cubeMapCoordinates = cubeMapCoordinates; } -`,zE=`varying vec4 v_color; +`,nE=`varying vec4 v_color; varying vec4 v_outlineColor; varying float v_innerPercent; varying float v_pixelDistance; @@ -6414,7 +6401,7 @@ void main() gl_FragColor = czm_gammaCorrect(color); czm_writeLogDepth(); } -`,TEe=`uniform float u_maxTotalPointSize; +`,dAe=`uniform float u_maxTotalPointSize; attribute vec4 positionHighAndSize; attribute vec4 positionLowAndOutline; @@ -6597,7 +6584,7 @@ void main() v_pickColor = pickColor; } -`,hT=`void clipLineSegmentToNearPlane( +`,LT=`void clipLineSegmentToNearPlane( vec3 p0, vec3 p1, out vec4 positionWC, @@ -6773,7 +6760,7 @@ vec4 getPolylineWindowCoordinates(vec4 position, vec4 previous, vec4 next, float vec4 nextEC = czm_modelViewRelativeToEye * next; return getPolylineWindowCoordinatesEC(positionEC, prevEC, nextEC, expandDirection, width, usePrevious, angle); } -`,Oq=`#ifdef VECTOR_TILE +`,fj=`#ifdef VECTOR_TILE uniform vec4 u_highlightColor; #endif @@ -6798,7 +6785,7 @@ void main() czm_writeLogDepth(); } -`,EEe=`#ifdef GL_EXT_frag_depth +`,hAe=`#ifdef GL_EXT_frag_depth #extension GL_EXT_frag_depth : enable #endif @@ -6888,7 +6875,7 @@ void main(void) czm_writeDepthClamp(); } -`,xEe=`varying vec3 v_forwardDirectionEC; +`,pAe=`varying vec3 v_forwardDirectionEC; varying vec3 v_texcoordNormalizationAndHalfWidth; varying float v_batchId; @@ -6933,7 +6920,7 @@ void main(void) gl_FragColor = vec4(material.diffuse + material.emission, material.alpha); #endif // PER_INSTANCE_COLOR } -`,wEe=`attribute vec3 position3DHigh; +`,mAe=`attribute vec3 position3DHigh; attribute vec3 position3DLow; attribute vec4 startHiAndForwardOffsetX; @@ -7110,7 +7097,7 @@ void main() v_polylineAngle = czm_fastApproximateAtan(approxLineDirection.x, approxLineDirection.y); #endif } -`,SEe=`attribute vec3 position3DHigh; +`,_Ae=`attribute vec3 position3DHigh; attribute vec3 position3DLow; // In 2D and in 3D, texture coordinate normalization component signs encodes: @@ -7278,7 +7265,7 @@ void main() v_polylineAngle = czm_fastApproximateAtan(approxLineDirection.x, approxLineDirection.y); #endif } -`,vEe=`attribute vec3 position3DHigh; +`,gAe=`attribute vec3 position3DHigh; attribute vec3 position3DLow; attribute vec3 position2DHigh; attribute vec3 position2DLow; @@ -7381,7 +7368,7 @@ void main() v_pickColor = pickColor; v_polylineAngle = polylineAngle; } -`,DEe=`uniform sampler2D u_texture; +`,yAe=`uniform sampler2D u_texture; varying vec2 v_textureCoordinates; @@ -7389,7 +7376,7 @@ void main() { gl_FragColor = texture2D(u_texture, v_textureCoordinates); } -`,IEe=`attribute vec4 position; +`,AAe=`attribute vec4 position; attribute float webMercatorT; uniform vec2 u_textureDimensions; @@ -7401,7 +7388,7 @@ void main() v_textureCoordinates = vec2(position.x, webMercatorT); gl_Position = czm_viewportOrthographic * (position * vec4(u_textureDimensions, 1.0, 1.0)); } -`,Lq=`#ifdef GL_EXT_frag_depth +`,dj=`#ifdef GL_EXT_frag_depth #extension GL_EXT_frag_depth : enable #endif @@ -7566,7 +7553,7 @@ void main(void) czm_writeDepthClamp(); #endif // PICK } -`,PEe=`attribute vec3 position3DHigh; +`,CAe=`attribute vec3 position3DHigh; attribute vec3 position3DLow; attribute float batchId; @@ -7667,7 +7654,7 @@ void main() gl_Position = czm_depthClamp(czm_modelViewProjectionRelativeToEye * position); } -`,pB=`#ifdef GL_EXT_frag_depth +`,xL=`#ifdef GL_EXT_frag_depth #extension GL_EXT_frag_depth : enable #endif @@ -7684,7 +7671,7 @@ void main(void) #endif czm_writeDepthClamp(); } -`,QU=`float interpolateByDistance(vec4 nearFarScalar, float distance) +`,Jz=`float interpolateByDistance(vec4 nearFarScalar, float distance) { float startDistance = nearFarScalar.x; float startValue = nearFarScalar.y; @@ -7775,7 +7762,7 @@ void computeAtmosphereScattering(vec3 positionWC, vec3 lightDirection, out vec3 float nightAlpha = (u_radiiAndDynamicAtmosphereColor.z != 0.0) ? clamp(dot(normalize(positionWC), lightDirection), 0.0, 1.0) : 1.0; opacity *= pow(nightAlpha, 0.5); } -`,OEe=`varying vec3 v_outerPositionWC; +`,TAe=`varying vec3 v_outerPositionWC; uniform vec3 u_hsbShift; @@ -7839,7 +7826,7 @@ void main (void) gl_FragColor = color; } -`,LEe=`attribute vec4 position; +`,bAe=`attribute vec4 position; varying vec3 v_outerPositionWC; @@ -7869,7 +7856,7 @@ void main(void) v_outerPositionWC = positionWC.xyz; gl_Position = czm_modelViewProjection * position; } -`,BEe=`uniform samplerCube u_cubeMap; +`,EAe=`uniform samplerCube u_cubeMap; varying vec3 v_texCoord; @@ -7878,7 +7865,7 @@ void main() vec4 color = textureCube(u_cubeMap, normalize(v_texCoord)); gl_FragColor = vec4(czm_gammaCorrect(color).rgb, czm_morphTime); } -`,REe=`attribute vec3 position; +`,xAe=`attribute vec3 position; varying vec3 v_texCoord; @@ -7888,7 +7875,7 @@ void main() gl_Position = czm_projection * vec4(p, 1.0); v_texCoord = position.xyz; } -`,NEe=`uniform sampler2D u_texture; +`,wAe=`uniform sampler2D u_texture; varying vec2 v_textureCoordinates; @@ -7897,7 +7884,7 @@ void main() vec4 color = texture2D(u_texture, v_textureCoordinates); gl_FragColor = czm_gammaCorrect(color); } -`,MEe=`uniform float u_radiusTS; +`,SAe=`uniform float u_radiusTS; varying vec2 v_textureCoordinates; @@ -7952,7 +7939,7 @@ void main() gl_FragColor = clamp(color, vec4(0.0), vec4(1.0)); } -`,FEe=`attribute vec2 direction; +`,vAe=`attribute vec2 direction; uniform float u_size; @@ -7980,7 +7967,7 @@ void main() v_textureCoordinates = direction; } -`,zEe=`#ifdef GL_EXT_frag_depth +`,DAe=`#ifdef GL_EXT_frag_depth #extension GL_EXT_frag_depth : enable #endif @@ -8032,7 +8019,7 @@ void main() czm_writeDepthClamp(); } -`,UEe=`attribute vec3 startEllipsoidNormal; +`,IAe=`attribute vec3 startEllipsoidNormal; attribute vec3 endEllipsoidNormal; attribute vec4 startPositionAndHeight; attribute vec4 endPositionAndHeight; @@ -8117,7 +8104,7 @@ void main() v_endPlaneEC = vec4(endNormalEC, -dot(endNormalEC, position.xyz)); v_halfWidth = endFaceNormalAndHalfWidth.w; } -`,HEe=`attribute vec4 currentPosition; +`,PAe=`attribute vec4 currentPosition; attribute vec4 previousPosition; attribute vec4 nextPosition; attribute vec2 expandAndWidth; @@ -8139,7 +8126,7 @@ void main() vec4 positionWC = getPolylineWindowCoordinatesEC(p, prev, next, expandDir, width, usePrev, angle); gl_Position = czm_viewportOrthographic * positionWC; } -`,ZU=`attribute vec3 position; +`,Qz=`attribute vec3 position; attribute float a_batchId; uniform mat4 u_modifiedModelViewProjection; @@ -8148,11 +8135,11 @@ void main() { gl_Position = czm_depthClamp(u_modifiedModelViewProjection * vec4(position, 1.0)); } -`;/*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE */function Yh(e){return Yh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yh(e)}function mB(e,t){return mB=Object.setPrototypeOf||function(i,o){return i.__proto__=o,i},mB(e,t)}function VEe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fw(e,t,n){return VEe()?Fw=Reflect.construct:Fw=function(o,r,s){var a=[null];a.push.apply(a,r);var c=Function.bind.apply(o,a),u=new c;return s&&mB(u,s.prototype),u},Fw.apply(null,arguments)}function Ul(e){return kEe(e)||GEe(e)||WEe(e)||jEe()}function kEe(e){if(Array.isArray(e))return _B(e)}function GEe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WEe(e,t){if(e){if(typeof e=="string")return _B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _B(e,t)}}function _B(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1?n-1:0),o=1;o/gm),sxe=du(/\${[\w\W]*}/gm),axe=du(/^data-[\-\w.\u00B7-\uFFFF]/),cxe=du(/^aria-[\-\w]+$/),lxe=du(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),uxe=du(/^(?:\w+script|data):/i),dxe=du(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fxe=du(/^html$/i),hxe=function(){return typeof window>"u"?null:window},pxe=function(t,n){if(Yh(t)!=="object"||typeof t.createPolicy!="function")return null;var i=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(i=n.currentScript.getAttribute(o));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(a){return a},createScriptURL:function(a){return a}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}};function Rq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hxe(),t=function(we){return Rq(we)};if(t.version="2.4.1",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;var n=e.document,i=e.document,o=e.DocumentFragment,r=e.HTMLTemplateElement,s=e.Node,a=e.Element,c=e.NodeFilter,u=e.NamedNodeMap,d=u===void 0?e.NamedNodeMap||e.MozNamedAttrMap:u,h=e.HTMLFormElement,m=e.DOMParser,g=e.trustedTypes,p=a.prototype,y=UE(p,"cloneNode"),b=UE(p,"nextSibling"),C=UE(p,"childNodes"),E=UE(p,"parentNode");if(typeof r=="function"){var w=i.createElement("template");w.content&&w.content.ownerDocument&&(i=w.content.ownerDocument)}var S=pxe(g,n),P=S?S.createHTML(""):"",L=i,z=L.implementation,R=L.createNodeIterator,F=L.createDocumentFragment,U=L.getElementsByTagName,D=n.importNode,I={};try{I=pm(i).documentMode?i.documentMode:{}}catch{}var _={};t.isSupported=typeof E=="function"&&z&&typeof z.createHTMLDocument<"u"&&I!==9;var v=oxe,O=rxe,N=sxe,V=axe,k=cxe,G=uxe,W=dxe,K=lxe,q=null,te=qn({},[].concat(Ul(n4),Ul(C1),Ul(T1),Ul(E1),Ul(i4))),Y=null,X=qn({},[].concat(Ul(o4),Ul(x1),Ul(r4),Ul(HE))),$=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,ue=null,re=!0,he=!0,ce=!1,Q=!1,ne=!1,de=!1,_e=!1,Se=!1,ve=!1,Le=!1,Ee=!0,Be=!1,Pe="user-content-",Ae=!0,xe=!1,Oe={},Ve=null,Re=qn({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),At=null,xt=qn({},["audio","video","img","source","image","track"]),Nt=null,On=qn({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",un="http://www.w3.org/1999/xhtml",Ht=un,vn=!1,Pn=null,qt=qn({},[Nn,Sn,un],A1),tn,jn=["application/xhtml+xml","text/html"],hi="text/html",sn,zi=null,oo=i.createElement("form"),Wi=function(we){return we instanceof RegExp||we instanceof Function},li=function(we){zi&&zi===we||((!we||Yh(we)!=="object")&&(we={}),we=pm(we),tn=jn.indexOf(we.PARSER_MEDIA_TYPE)===-1?tn=hi:tn=we.PARSER_MEDIA_TYPE,sn=tn==="application/xhtml+xml"?A1:zw,q="ALLOWED_TAGS"in we?qn({},we.ALLOWED_TAGS,sn):te,Y="ALLOWED_ATTR"in we?qn({},we.ALLOWED_ATTR,sn):X,Pn="ALLOWED_NAMESPACES"in we?qn({},we.ALLOWED_NAMESPACES,A1):qt,Nt="ADD_URI_SAFE_ATTR"in we?qn(pm(On),we.ADD_URI_SAFE_ATTR,sn):On,At="ADD_DATA_URI_TAGS"in we?qn(pm(xt),we.ADD_DATA_URI_TAGS,sn):xt,Ve="FORBID_CONTENTS"in we?qn({},we.FORBID_CONTENTS,sn):Re,se="FORBID_TAGS"in we?qn({},we.FORBID_TAGS,sn):{},ue="FORBID_ATTR"in we?qn({},we.FORBID_ATTR,sn):{},Oe="USE_PROFILES"in we?we.USE_PROFILES:!1,re=we.ALLOW_ARIA_ATTR!==!1,he=we.ALLOW_DATA_ATTR!==!1,ce=we.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=we.SAFE_FOR_TEMPLATES||!1,ne=we.WHOLE_DOCUMENT||!1,Se=we.RETURN_DOM||!1,ve=we.RETURN_DOM_FRAGMENT||!1,Le=we.RETURN_TRUSTED_TYPE||!1,_e=we.FORCE_BODY||!1,Ee=we.SANITIZE_DOM!==!1,Be=we.SANITIZE_NAMED_PROPS||!1,Ae=we.KEEP_CONTENT!==!1,xe=we.IN_PLACE||!1,K=we.ALLOWED_URI_REGEXP||K,Ht=we.NAMESPACE||un,we.CUSTOM_ELEMENT_HANDLING&&Wi(we.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&($.tagNameCheck=we.CUSTOM_ELEMENT_HANDLING.tagNameCheck),we.CUSTOM_ELEMENT_HANDLING&&Wi(we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&($.attributeNameCheck=we.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),we.CUSTOM_ELEMENT_HANDLING&&typeof we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&($.allowCustomizedBuiltInElements=we.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(he=!1),ve&&(Se=!0),Oe&&(q=qn({},Ul(i4)),Y=[],Oe.html===!0&&(qn(q,n4),qn(Y,o4)),Oe.svg===!0&&(qn(q,C1),qn(Y,x1),qn(Y,HE)),Oe.svgFilters===!0&&(qn(q,T1),qn(Y,x1),qn(Y,HE)),Oe.mathMl===!0&&(qn(q,E1),qn(Y,r4),qn(Y,HE))),we.ADD_TAGS&&(q===te&&(q=pm(q)),qn(q,we.ADD_TAGS,sn)),we.ADD_ATTR&&(Y===X&&(Y=pm(Y)),qn(Y,we.ADD_ATTR,sn)),we.ADD_URI_SAFE_ATTR&&qn(Nt,we.ADD_URI_SAFE_ATTR,sn),we.FORBID_CONTENTS&&(Ve===Re&&(Ve=pm(Ve)),qn(Ve,we.FORBID_CONTENTS,sn)),Ae&&(q["#text"]=!0),ne&&qn(q,["html","head","body"]),q.table&&(qn(q,["tbody"]),delete se.tbody),Oa&&Oa(we),zi=we)},mn=qn({},["mi","mo","mn","ms","mtext"]),Kn=qn({},["foreignobject","desc","title","annotation-xml"]),Hn=qn({},["title","style","font","a","script"]),dn=qn({},C1);qn(dn,T1),qn(dn,nxe);var bt=qn({},E1);qn(bt,ixe);var Ge=function(we){var $e=E(we);(!$e||!$e.tagName)&&($e={namespaceURI:Ht,tagName:"template"});var ot=zw(we.tagName),Jn=zw($e.tagName);return Pn[we.namespaceURI]?we.namespaceURI===Sn?$e.namespaceURI===un?ot==="svg":$e.namespaceURI===Nn?ot==="svg"&&(Jn==="annotation-xml"||mn[Jn]):Boolean(dn[ot]):we.namespaceURI===Nn?$e.namespaceURI===un?ot==="math":$e.namespaceURI===Sn?ot==="math"&&Kn[Jn]:Boolean(bt[ot]):we.namespaceURI===un?$e.namespaceURI===Sn&&!Kn[Jn]||$e.namespaceURI===Nn&&!mn[Jn]?!1:!bt[ot]&&(Hn[ot]||!dn[ot]):!!(tn==="application/xhtml+xml"&&Pn[we.namespaceURI]):!1},Mn=function(we){dA(t.removed,{element:we});try{we.parentNode.removeChild(we)}catch{try{we.outerHTML=P}catch{we.remove()}}},Tn=function(we,$e){try{dA(t.removed,{attribute:$e.getAttributeNode(we),from:$e})}catch{dA(t.removed,{attribute:null,from:$e})}if($e.removeAttribute(we),we==="is"&&!Y[we])if(Se||ve)try{Mn($e)}catch{}else try{$e.setAttribute(we,"")}catch{}},Qi=function(we){var $e,ot;if(_e)we=""+we;else{var Jn=QEe(we,/^[\r\n\t ]+/);ot=Jn&&Jn[0]}tn==="application/xhtml+xml"&&Ht===un&&(we=''+we+"");var Zr=S?S.createHTML(we):we;if(Ht===un)try{$e=new m().parseFromString(Zr,tn)}catch{}if(!$e||!$e.documentElement){$e=z.createDocument(Ht,"template",null);try{$e.documentElement.innerHTML=vn?"":Zr}catch{}}var xr=$e.body||$e.documentElement;return we&&ot&&xr.insertBefore(i.createTextNode(ot),xr.childNodes[0]||null),Ht===un?U.call($e,ne?"html":"body")[0]:ne?$e.documentElement:xr},Fn=function(we){return R.call(we.ownerDocument||we,we,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT,null,!1)},ji=function(we){return we instanceof h&&(typeof we.nodeName!="string"||typeof we.textContent!="string"||typeof we.removeChild!="function"||!(we.attributes instanceof d)||typeof we.removeAttribute!="function"||typeof we.setAttribute!="function"||typeof we.namespaceURI!="string"||typeof we.insertBefore!="function"||typeof we.hasChildNodes!="function")},Lo=function(we){return Yh(s)==="object"?we instanceof s:we&&Yh(we)==="object"&&typeof we.nodeType=="number"&&typeof we.nodeName=="string"},po=function(we,$e,ot){_[we]&&JEe(_[we],function(Jn){Jn.call(t,$e,ot,zi)})},Ur=function(we){var $e;if(po("beforeSanitizeElements",we,null),ji(we)||Ca(/[\u0080-\uFFFF]/,we.nodeName))return Mn(we),!0;var ot=sn(we.nodeName);if(po("uponSanitizeElement",we,{tagName:ot,allowedTags:q}),we.hasChildNodes()&&!Lo(we.firstElementChild)&&(!Lo(we.content)||!Lo(we.content.firstElementChild))&&Ca(/<[/\w]/g,we.innerHTML)&&Ca(/<[/\w]/g,we.textContent)||ot==="select"&&Ca(/