PageSourceSearch

https://www.reuge.com/_nuxt/2hbpSCzo.js

js reuge.com collected 2026-10-02 12:51:52 UTC 1,515,475 bytes, 6,098 lines download raw bytes

vendor: 6,785 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./CaSP2tpP.js","./C57tdbAI.js","./Ba4qgNSb.js","./Fitter.BYkjxjaY.css","./Image.CEtA6qYa.css","./BFHntCLw.js","./CBFlW0eB.js","./CVONNeQT.js","./Layouts.u8BIf61A.css","./Btbc49ag.js","./Dwa3EGOM.js","./Block.DNpTbwKQ.css","./Hc97x9zc.js","./index.wGSmYct5.css","./index.dgKY1Eun.css","./DOpLqaKD.js","./C1S583V1.js","./HQ8kekPR.js","./Block.C7f6xgq0.css","./CE2Vj2He.js","./Discover.CGYkjHYu.css","./DyJs4I-P.js","./D8YrkO5M.js","./BQztZGwD.js","./Title.BE5O94C6.css","./B0URhiZc.js","./_...DrbqH4wP.css","./9CLl55KU.js","./index.3PU_RjPg.css","./BbdKkVwu.js","./UM494pq7.js","./BkWvrzZJ.js","./C-ECTBYq.js","./Icon.DvcE1zjK.css","./DXEmv0Sa.js","./3uZaRp3x.js","./EGTICu2v.js","./BNcGxxPq.js","./C863PiAH.js","./CtvA4Sem.js","./BuXw_Abn.js","./jc0MLXVe.js","./C-ii-rNT.js","./Search.DCGUVhKk.css","./zWGN1QYs.js","./CA4L64E7.js","./Loader.9-jhSp0Y.css","./Data.Ae9UcR6J.css","./Bj4PEwHD.js","./DazbXo6r.js","./Lj42XnU7.js","./SectionCollapse.CZkr97I8.css","./C7d1OcLL.js","./Section.B0Eqvjgu.css","./music.Badxc7DR.css","./TgtmrTlQ.js","./HZ_QbnEX.js","./Dmjhne5F.js","./CppJ4T-t.js","./Head.F4opC-b3.css","./index.CPLAmY_J.css","./FxMlb9Hp.js","./C_bOoMQo.js","./08_nvn89.js","./DYM6Rqoh.js","./useKeenSlider.BWf4Yhr3.css","./index.BDKXJBnF.css","./C-zuaCyv.js","./B8X6OjoQ.js","./Libre.DB_gg-xu.css","./map.BeqExHyW.css","./CRryx78W.js","./CQ8UbU1g.js","./Pin.DnXEwfx0.css","./P_7ycDWq.js","./revendeurs.BdWrngDO.css","./qAHulyYJ.js","./DEPPFym7.js","./Form.DPEXfmLc.css","./test-email.Cs4xuGEV.css","./DdYGykQ3.js","./logo.DoWHVTyk.css","./CMNIwy-t.js","./CGWtqHFb.js","./D-nVpw9s.js","./CoqoMetq.js","./index.CHpg5D6l.css","./CJ8hAZqF.js","./CT-6Y3eV.js","./config.CQUVeEKc.css","./y_TQYxGD.js","./index.DHKTJHW0.css","./CRXyRIBv.js","./DK4TXHyb.js","./index.CwTq-Naz.css","./C-vLqIHJ.js","./counter.CoY0g9VB.css","./BbuyipMl.js","./BcUMRq0P.js","./3d-model.Dl6kVyaK.css","./x86altCP.js","./ClNLsOND.js","./BSUCPwZq.js","./Image360.Tdpe8l5F.css","./image360.-fgr9kQF.css","./DANYYIAp.js","./Blj2Bxsa.js","./Animation.oTDJeUUi.css","./components.zi3LeJC3.css","./COL_xDx8.js","./G8sanpJR.js","./jmMqHJg0.js","./audioplayer.DB_uYio2.css","./CHBaErtN.js","./audio-player.Df5TmJFc.css","./Bm0KJlz9.js","./vimeo-player.C-Xhn1jh.css","./CwbeDQEQ.js","./color-seasons.BaOwsImp.css","./DoAcZ8-B.js","./image-carousel.C-0tsfiN.css","./BfmrIEym.js","./index.Cd1U1Umy.css","./Dm6DhvK5.js","./CLs7nh7g.js","./CuW4Bf8H.js","./Xy4nbvZg.js","./jz0GjEo0.js","./nwLgZkT_.js","./8KlZmbnq.js","./BK-ttdcB.js","./BizI6I1U.js","./D7y1V9bU.js","./mqEfopmn.js","./DbdrHgqS.js","./Dxhf_7w1.js","./CcNzXXsc.js","./CSS_XNIu.js","./i0AoCKSa.js","./DlI9QNTh.js","./BfVPQCcC.js","./DmDVgRIa.js","./r4rE2FNx.js","./BP9h-sXy.js","./CiINOIhQ.js","./BpYxsTh0.js","./tbCrDr7N.js","./BHNCGmSC.js","./DhdNyZlt.js","./CsdZA4Ef.js","./aVG86sj0.js","./C1-_LUZL.js","./BLjiZc7a.js","./DQx3lqSH.js","./CywyPwxg.js","./r4UW-mLI.js","./Cgmul539.js","./kaJeKtW4.js","./BOHivS0x.js","./BkonLuuP.js","./BOCPzZlV.js","./DdI3L9ms.js","./FCU5w7G_.js","./BqreQLC3.js","./DM3HDcjy.js","./B7yWiJlk.js","./BabXHfIE.js","./C91qK04_.js","./mD8KMyf2.js","./BDdZuts5.js","./FwIFRtu9.js","./PFpylp3I.js","./Jw1p54vz.js","./Chs61xDm.js","./D07q45FP.js","./BFoWCRuB.js","./C7dhQ8X2.js","./CCefRYW7.js","./Xe-Wrx6S.js","./CVgPU0dj.js","./DqGYbOv7.js","./Bq4KG0hT.js","./CetcBZFF.js","./DMq4ALdn.js","./Cf-DV0Kk.js","./Db3x6ZKc.js","./DdoyV_GD.js","./C43Y0rAf.js","./DWvsMkRN.js","./6WRLt8i0.js","./CxYPz5G4.js","./BkvfBOWi.js","./Dg2xVgma.js","./BZyVtgUd.js","./Dfoh0k_K.js","./I6XbfJSF.js","./Bey13aIo.js","./CAUYJ23o.js","./CsnkTIWx.js","./BxatkxlX.js","./CxU8_ACy.js","./DPWK6-Ia.js","./C6nTs6GZ.js","./B0_Jv3Ln.js","./D88BTiBJ.js","./CifrkLh8.js","./Dm9UOkH2.js","./ByUxHZFz.js","./D2tHPYII.js","./D7Jd1CPL.js","./a1ASvBqN.js","./DYUnFbPK.js","./_LiupYJg.js","./B2ILLjVH.js","./CdcKbJYj.js","./DuuYKqgA.js","./CRHI7yDd.js","./Dg2IQOqG.js","./SDVzE21_.js","./4yQ-ioNJ.js","./BILnPgZp.js","./DHlBbAyg.js","./B-RI1sKB.js","./DI6DtpmQ.js","./9ELv9kJ8.js","./Cg0ZvCqT.js","./Ce0T41HE.js","./blank.28sw8Zxm.css","./D_bGNj_s.js","./DeoafGSv.js","./default.BnEnp-v0.css"])))=>i.map(i=>d[i]);
2(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();function k2(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const Gt={},ll=[],_a=()=>{},hw=()=>!1,Qd=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),O2=t=>t.startsWith("onUpdate:"),vn=Object.assign,N2=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},Y4=Object.prototype.hasOwnProperty,Wt=(t,e)=>Y4.call(t,e),ot=Array.isArray,cl=t=>ef(t)==="[object Map]",pw=t=>ef(t)==="[object Set]",K4=t=>ef(t)==="[object RegExp]",ht=t=>typeof t=="function",pn=t=>typeof t=="string",as=t=>typeof t=="symbol",un=t=>t!==null&&typeof t=="object",s0=t=>(un(t)||ht(t))&&ht(t.then)&&ht(t.catch),mw=Object.prototype.toString,ef=t=>mw.call(t),Z4=t=>ef(t).slice(8,-1),o0=t=>ef(t)==="[object Object]",u0=t=>pn(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,dl=k2(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),l0=t=>{const e=Object.create(null);return(n=>e[n]||(e[n]=t(n)))},J4=/-\w/g,mi=l0(t=>t.replace(J4,e=>e.slice(1).toUpperCase())),Q4=/\B([A-Z])/g,Ui=l0(t=>t.replace(Q4,"-$1").toLowerCase()),c0=l0(t=>t.charAt(0).toUpperCase()+t.slice(1)),ep=l0(t=>t?`on${c0(t)}`:""),Ni=(t,e)=>!Object.is(t,e),fl=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},gw=(t,e,n,i=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:i,value:n})},U2=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Jp=t=>{const e=pn(t)?Number(t):NaN;return isNaN(e)?t:e};let Gy;const d0=()=>Gy||(Gy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ou(t){if(ot(t)){const e={};for(let n=0;n<t.length;n++){const i=t[n],r=pn(i)?i5(i):ou(i);if(r)for(const a in r)e[a]=r[a]}return e}else if(pn(t)||un(t))return t}const e5=/;(?![^(]*\))/g,t5=/:([^]+)/,n5=/\/\*[^]*?\*\//g;function i5(t){const e={};
vendor: 4,619 bytes, line 2
2return t.replace(n5,"").split(e5).forEach(n=>{if(n){const i=n.split(t5);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e}function Gs(t){let e="";if(pn(t))e=t;else if(ot(t))for(let n=0;n<t.length;n++){const i=Gs(t[n]);i&&(e+=i+" ")}else if(un(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}function r5(t){if(!t)return null;let{class:e,style:n}=t;return e&&!pn(e)&&(t.class=Gs(e)),n&&(t.style=ou(n)),t}const a5="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",s5=k2(a5);function vw(t){return!!t||t===""}const _w=t=>!!(t&&t.__v_isRef===!0),Tl=t=>pn(t)?t:t==null?"":ot(t)||un(t)&&(t.toString===mw||!ht(t.toString))?_w(t)?Tl(t.value):JSON.stringify(t,bw,2):String(t),bw=(t,e)=>_w(e)?bw(t,e.value):cl(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[i,r],a)=>(n[dg(i,a)+" =>"]=r,n),{})}:pw(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>dg(n))}:as(e)?dg(e):un(e)&&!ot(e)&&!o0(e)?String(e):e,dg=(t,e="")=>{var n;return as(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};let fi;class yw{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=fi,!e&&fi&&(this.index=(fi.scopes||(fi.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].pause();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,n;if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].resume();for(e=0,n=this.effects.length;e<n;e++)this.effects[e].resume()}}run(e){if(this._active){const n=fi;try{return fi=this,e()}finally{fi=n}}}on(){++this._on===1&&(this.prevScope=fi,fi=this)}off(){this._on>0&&--this._on===0&&(fi=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function tf(t){return new yw(t)}function Zs(){return fi}function Jo(t,e=!1){fi&&fi.cleanups.push(t)}let ln;const fg=new WeakSet;class Ew{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,fi&&fi.active&&fi.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,fg.has(this)&&(fg.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Aw(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,qy(this),Sw(this);const e=ln,n=Pr;ln=this,Pr=!0;try{return this.fn()}finally{Tw(this),ln=e,Pr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)V2(e);this.deps=this.depsTail=void 0,qy(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?fg.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){n_(this)&&this.run()}get dirty(){return n_(this)}}let xw=0,Kc,Zc;function Aw(t,e=!1){if(t.flags|=8,e){t.next=Zc,Zc=t;return}t.next=Kc,Kc=t}function F2(){xw++}function B2(){if(--xw>0)return;if(Zc){let e=Zc;for(Zc=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Kc;){let e=Kc;for(Kc=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(i){t||(t=i)}e=n}}if(t)throw t}function Sw(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Tw(t){let e,n=t.depsTail,i=n;for(;i;){const r=i.prevDep;i.version===-1?(i===n&&(n=r),V2(i),o5(i)):e=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=r}t.deps=e,t.depsTail=n}function n_(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(ww(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ww(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===vd)||(t.globalVersion=vd,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!n_(t))))return;t.flags|=2;const e=t.dep,n=ln,i=Pr;ln=t,Pr=!0;try{Sw(t);const r=t.fn(t._value);(e.version===0||Ni(r,t._value))&&(t.flags|=128,t._value=r,e.version++)}catch(r){throw e.version++,r}finally{ln=n,Pr=i,Tw(t),t.flags&=-3}}function V2(t,e=!1){const{dep:n,prevSub:i,nextSub:r}=t;if(i&&(i.nextSub=r,t.prevSub=void 0),r&&(r.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.c
vendor: 4,785 bytes, line 2
2omputed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)V2(a,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function o5(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Pr=!0;const Mw=[];function ts(){Mw.push(Pr),Pr=!1}function ns(){const t=Mw.pop();Pr=t===void 0?!0:t}function qy(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ln;ln=void 0;try{e()}finally{ln=n}}}let vd=0;class u5{constructor(e,n){this.sub=e,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class f0{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!ln||!Pr||ln===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ln)n=this.activeLink=new u5(ln,this),ln.deps?(n.prevDep=ln.depsTail,ln.depsTail.nextDep=n,ln.depsTail=n):ln.deps=ln.depsTail=n,Cw(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=ln.depsTail,n.nextDep=void 0,ln.depsTail.nextDep=n,ln.depsTail=n,ln.deps===n&&(ln.deps=i)}return n}trigger(e){this.version++,vd++,this.notify(e)}notify(e){F2();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{B2()}}}function Cw(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let i=e.deps;i;i=i.nextDep)Cw(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Qp=new WeakMap,zo=Symbol(""),i_=Symbol(""),_d=Symbol("");function pi(t,e,n){if(Pr&&ln){let i=Qp.get(t);i||Qp.set(t,i=new Map);let r=i.get(n);r||(i.set(n,r=new f0),r.map=i,r.key=n),r.track()}}function qa(t,e,n,i,r,a){const s=Qp.get(t);if(!s){vd++;return}const o=u=>{u&&u.trigger()};if(F2(),e==="clear")s.forEach(o);else{const u=ot(t),c=u&&u0(n);if(u&&n==="length"){const l=Number(i);s.forEach((d,f)=>{(f==="length"||f===_d||!as(f)&&f>=l)&&o(d)})}else switch((n!==void 0||s.has(void 0))&&o(s.get(n)),c&&o(s.get(_d)),e){case"add":u?c&&o(s.get("length")):(o(s.get(zo)),cl(t)&&o(s.get(i_)));break;case"delete":u||(o(s.get(zo)),cl(t)&&o(s.get(i_)));break;case"set":cl(t)&&o(s.get(zo));break}}B2()}function l5(t,e){const n=Qp.get(t);return n&&n.get(e)}function hu(t){const e=Tt(t);return e===t?e:(pi(e,"iterate",_d),Xi(t)?e:e.map(Nr))}function h0(t){return pi(t=Tt(t),"iterate",_d),t}function ws(t,e){return Ea(t)?kr(t)?wl(Nr(e)):wl(e):Nr(e)}const c5={__proto__:null,[Symbol.iterator](){return hg(this,Symbol.iterator,t=>ws(this,t))},concat(...t){return hu(this).concat(...t.map(e=>ot(e)?hu(e):e))},entries(){return hg(this,"entries",t=>(t[1]=ws(this,t[1]),t))},every(t,e){return Sa(this,"every",t,e,void 0,arguments)},filter(t,e){return Sa(this,"filter",t,e,n=>n.map(i=>ws(this,i)),arguments)},find(t,e){return Sa(this,"find",t,e,n=>ws(this,n),arguments)},findIndex(t,e){return Sa(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return Sa(this,"findLast",t,e,n=>ws(this,n),arguments)},findLastIndex(t,e){return Sa(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return Sa(this,"forEach",t,e,void 0,arguments)},includes(...t){return pg(this,"includes",t)},indexOf(...t){return pg(this,"indexOf",t)},join(t){return hu(this).join(t)},lastIndexOf(...t){return pg(this,"lastIndexOf",t)},map(t,e){return Sa(this,"map",t,e,void 0,arguments)},pop(){return rc(this,"pop")},push(...t){return rc(this,"push",t)},reduce(t,...e){return jy(this,"reduce",t,e)},reduceRight(t,...e){return jy(this,"reduceRight",t,e)},shift(){return rc(this,"shift")},some(t,e){return Sa(this,"some",t,e,void 0,arguments)},splice(...t){return rc(this,"splice",t)},toReversed(){return hu(this).toReversed()},toSorted(t){return hu(this).toSorted(t)},toSpliced(...t){return hu(this).toSpliced(...t)},unshift(...t){return rc(this,"unshift",t)},values(){return hg(this,"values",t=>ws(this,t))}};function hg(t,e,n){const i=h0(t),r=i[e]();return i!==t&&!Xi(t)&&(r._next=r.next,r.next=()=>{const a=r._next();return a.done||(a.value=n(a.value)),a}),r}const d5=Array.prototype;function Sa(t,e,n,i,r,a){const s=h0(t),o=s!==t&&!Xi(t),u=s[e];if(u!==d5[e]){const d=u.apply(t,a);return o?Nr(d):d}let c=n;s!==t&&(o?c=function(d,f){return n.call(this,ws(t,d),f,t)}:n.length>2&&(c=function(d,f){return n.call(this,d,f,t)}));const l=u.call(s,c,i);return o&&r?r(l):l}function jy(t,e,n,i){const r=h0(t);let a=n;return r!==t&&(Xi(t)?n.length>3&&(a=function(s,o,u){return n.call(this,s,o,u,t)}):a=function(s,o,u){return n.call(this,s,ws(t,o),u,t)}),r[e](a,...i)}function pg(t,e,n){const i=Tt(t);pi(i,"iterate",_d);const r=i[e](...n);return(r===-1||r===!1)&&p0(n[0])?(n[0]=Tt(n[0]),i[e](...n)):r}function rc(t,e,n=[]){ts(),F2();const i=Tt(t)[e].apply(t,n);
vendor: 64,518 bytes, lines 2-4
2return B2(),ns(),i}const f5=k2("__proto__,__v_isRef,__isVue"),Dw=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(as));function h5(t){as(t)||(t=String(t));const e=Tt(this);return pi(e,"has",t),e.hasOwnProperty(t)}class Lw{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,i){if(n==="__v_skip")return e.__v_skip;const r=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return a;if(n==="__v_raw")return i===(r?a?A5:kw:a?Pw:Iw).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(i)?e:void 0;const s=ot(e);if(!r){let u;if(s&&(u=c5[n]))return u;if(n==="hasOwnProperty")return h5}const o=Reflect.get(e,n,Dt(e)?e:i);if((as(n)?Dw.has(n):f5(n))||(r||pi(e,"get",n),a))return o;if(Dt(o)){const u=s&&u0(n)?o:o.value;return r&&un(u)?qs(u):u}return un(o)?r?qs(o):In(o):o}}class Rw extends Lw{constructor(e=!1){super(!1,e)}set(e,n,i,r){let a=e[n];const s=ot(e)&&u0(n);if(!this._isShallow){const c=Ea(a);if(!Xi(i)&&!Ea(i)&&(a=Tt(a),i=Tt(i)),!s&&Dt(a)&&!Dt(i))return c||(a.value=i),!0}const o=s?Number(n)<e.length:Wt(e,n),u=Reflect.set(e,n,i,Dt(e)?e:r);return e===Tt(r)&&(o?Ni(i,a)&&qa(e,"set",n,i):qa(e,"add",n,i)),u}deleteProperty(e,n){const i=Wt(e,n);e[n];const r=Reflect.deleteProperty(e,n);return r&&i&&qa(e,"delete",n,void 0),r}has(e,n){const i=Reflect.has(e,n);return(!as(n)||!Dw.has(n))&&pi(e,"has",n),i}ownKeys(e){return pi(e,"iterate",ot(e)?"length":zo),Reflect.ownKeys(e)}}class p5 extends Lw{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const m5=new Rw,g5=new p5,v5=new Rw(!0);const r_=t=>t,Df=t=>Reflect.getPrototypeOf(t);function _5(t,e,n){return function(...i){const r=this.__v_raw,a=Tt(r),s=cl(a),o=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=r[t](...i),l=n?r_:e?wl:Nr;return!e&&pi(a,"iterate",u?i_:zo),{next(){const{value:d,done:f}=c.next();return f?{value:d,done:f}:{value:o?[l(d[0]),l(d[1])]:l(d),done:f}},[Symbol.iterator](){return this}}}}function Lf(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function b5(t,e){const n={get(r){const a=this.__v_raw,s=Tt(a),o=Tt(r);t||(Ni(r,o)&&pi(s,"get",r),pi(s,"get",o));const{has:u}=Df(s),c=e?r_:t?wl:Nr;if(u.call(s,r))return c(a.get(r));if(u.call(s,o))return c(a.get(o));a!==s&&a.get(r)},get size(){const r=this.__v_raw;return!t&&pi(Tt(r),"iterate",zo),r.size},has(r){const a=this.__v_raw,s=Tt(a),o=Tt(r);return t||(Ni(r,o)&&pi(s,"has",r),pi(s,"has",o)),r===o?a.has(r):a.has(r)||a.has(o)},forEach(r,a){const s=this,o=s.__v_raw,u=Tt(o),c=e?r_:t?wl:Nr;return!t&&pi(u,"iterate",zo),o.forEach((l,d)=>r.call(a,c(l),c(d),s))}};return vn(n,t?{add:Lf("add"),set:Lf("set"),delete:Lf("delete"),clear:Lf("clear")}:{add(r){!e&&!Xi(r)&&!Ea(r)&&(r=Tt(r));const a=Tt(this);return Df(a).has.call(a,r)||(a.add(r),qa(a,"add",r,r)),this},set(r,a){!e&&!Xi(a)&&!Ea(a)&&(a=Tt(a));const s=Tt(this),{has:o,get:u}=Df(s);let c=o.call(s,r);c||(r=Tt(r),c=o.call(s,r));const l=u.call(s,r);return s.set(r,a),c?Ni(a,l)&&qa(s,"set",r,a):qa(s,"add",r,a),this},delete(r){const a=Tt(this),{has:s,get:o}=Df(a);let u=s.call(a,r);u||(r=Tt(r),u=s.call(a,r)),o&&o.call(a,r);const c=a.delete(r);return u&&qa(a,"delete",r,void 0),c},clear(){const r=Tt(this),a=r.size!==0,s=r.clear();return a&&qa(r,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=_5(r,t,e)}),n}function H2(t,e){const n=b5(t,e);return(i,r,a)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?i:Reflect.get(Wt(n,r)&&r in i?n:i,r,a)}const y5={get:H2(!1,!1)},E5={get:H2(!1,!0)},x5={get:H2(!0,!1)};const Iw=new WeakMap,Pw=new WeakMap,kw=new WeakMap,A5=new WeakMap;function S5(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function T5(t){return t.__v_skip||!Object.isExtensible(t)?0:S5(Z4(t))}function In(t){return Ea(t)?t:z2(t,!1,m5,y5,Iw)}function ha(t){return z2(t,!1,v5,E5,Pw)}function qs(t){return z2(t,!0,g5,x5,kw)}function z2(t,e,n,i,r){if(!un(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const a=T5(t);if(a===0)return t;const s=r.get(t);if(s)return s;const o=new Proxy(t,a===2?i:n);return r.set(t,o),o}function kr(t){return Ea(t)?kr(t.__v_raw):!!(t&&t.__v_isReactive)}function Ea(t){return!!(t&&t.__v_isReadonly)}function Xi(t){return!!(t&&t.__v_isShallow)}function p0(t){return t?!!t.__v_raw:!1}function Tt(t){const e=t&&t.__v_raw;return e?Tt(e):t}function nf(t){return!Wt(t,"__v_skip")&&Object.isExtensible(t)&&gw(t,"__v_skip",!0),t}const Nr=t=>un(t)?In(t):t,wl=t=>un(t)?qs(t):t;function Dt(t){return t?t.__v_isRef===!0:!1}function Le(t){return Ow(t,!1)}function hn(t){return Ow(t,!0)}function Ow(t,e){return Dt(t)?t:new w5(t,e)}class w5{constructor(e,n){this.dep=new f0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:Tt(e),this._value=n?e:Nr(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,i=this.__v_isShallow||Xi(e)||Ea(e);e=i?e:Tt(e),Ni(e,n)&&(this._rawValue=e,this._value=i?e:Nr(e),this.dep.trigger())}}function ze(t){return Dt(t)?t.value:t}function bd(t){return ht(t)?t():ze(t)}const M5={get:(t,e,n)=>e==="__v_raw"?t:ze(Reflect.get(t,e,n)),set:(t,e,n,i)=>{const r=t[e];return Dt(r)&&!Dt(n)?(r.value=n,!0):Reflect.set(t,e,n,i)}};function Nw(t){return kr(t)?t:new Proxy(t,M5)}class C5{constructor(e){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new f0,{get:i,set:r}=e(n.track.bind(n),n.trigger.bind(n));this._get=i,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function $2(t){return new C5(t)}function W2(t){const e=ot(t)?new Array(t.length):{};for(const n in t)e[n]=Uw(t,n);return e}class D5{constructor(e,n,i){this._object=e,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0,this._raw=Tt(e);let r=!0,a=e;if(!ot(e)||!u0(String(n)))do r=!p0(a)||Xi(a);while(r&&(a=a.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=ze(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&Dt(this._raw[this._key])){const n=this._object[this._key];if(Dt(n)){n.value=e;return}}this._object[this._key]=e}get dep(){return l5(this._raw,this._key)}}class L5{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Zl(t,e,n){return Dt(t)?t:ht(t)?new L5(t):un(t)&&arguments.length>1?Uw(t,e,n):Le(t)}function Uw(t,e,n){return new D5(t,e,n)}class R5{constructor(e,n,i){this.fn=e,this.setter=n,this._value=void 0,this.dep=new f0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vd-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&ln!==this)return Aw(this,!0),!0}get value(){const e=this.dep.track();return ww(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function I5(t,e,n=!1){let i,r;return ht(t)?i=t:(i=t.get,r=t.set),new R5(i,r,n)}const Rf={},em=new WeakMap;let wo;function P5(t,e=!1,n=wo){if(n){let i=em.get(n);i||em.set(n,i=[]),i.push(t)}}function k5(t,e,n=Gt){const{immediate:i,deep:r,once:a,scheduler:s,augmentJob:o,call:u}=n,c=b=>r?b:Xi(b)||r===!1||r===0?ja(b,1):ja(b);let l,d,f,h,g=!1,v=!1;if(Dt(t)?(d=()=>t.value,g=Xi(t)):kr(t)?(d=()=>c(t),g=!0):ot(t)?(v=!0,g=t.some(b=>kr(b)||Xi(b)),d=()=>t.map(b=>{if(Dt(b))return b.value;if(kr(b))return c(b);if(ht(b))return u?u(b,2):b()})):ht(t)?e?d=u?()=>u(t,2):t:d=()=>{if(f){ts();try{f()}finally{ns()}}const b=wo;wo=l;try{return u?u(t,3,[h]):t(h)}finally{wo=b}}:d=_a,e&&r){const b=d,x=r===!0?1/0:r;d=()=>ja(b(),x)}const m=Zs(),p=()=>{l.stop(),m&&m.active&&N2(m.effects,l)};if(a&&e){const b=e;e=(...x)=>{b(...x),p()}}let y=v?new Array(t.length).fill(Rf):Rf;const _=b=>{if(!(!(l.flags&1)||!l.dirty&&!b))if(e){const x=l.run();if(r||g||(v?x.some((w,D)=>Ni(w,y[D])):Ni(x,y))){f&&f();const w=wo;wo=l;try{const D=[x,y===Rf?void 0:v&&y[0]===Rf?[]:y,h];y=x,u?u(e,3,D):e(...D)}finally{wo=w}}}else l.run()};return o&&o(_),l=new Ew(d),l.scheduler=s?()=>s(_,!1):_,h=b=>P5(b,!1,l),f=l.onStop=()=>{const b=em.get(l);if(b){if(u)u(b,4);else for(const x of b)x();em.delete(l)}},e?i?_(!0):y=l.run():s?s(_.bind(null,!0),!0):l.run(),p.pause=l.pause.bind(l),p.resume=l.resume.bind(l),p.stop=p,p}function ja(t,e=1/0,n){if(e<=0||!un(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Dt(t))ja(t.value,e,n);else if(ot(t))for(let i=0;i<t.length;i++)ja(t[i],e,n);else if(pw(t)||cl(t))t.forEach(i=>{ja(i,e,n)});else if(o0(t)){for(const i in t)ja(t[i],e,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&ja(t[i],e,n)}return t}function rf(t,e,n,i){try{return i?t(...i):t()}catch(r){Jl(r,e,n)}}function Ur(t,e,n,i){if(ht(t)){const r=rf(t,e,n,i);return r&&s0(r)&&r.catch(a=>{Jl(a,e,n)}),r}if(ot(t)){const r=[];for(let a=0;a<t.length;a++)r.push(Ur(t[a],e,n,i));return r}}function Jl(t,e,n,i=!0){const r=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||Gt;if(e){let o=e.parent;const u=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const l=o.ec;if(l){for(let d=0;d<l.length;d++)if(l[d](t,u,c)===!1)return}o=o.parent}if(a){ts(),rf(a,null,10,[t,u,c]),ns();return}}O5(t,n,r,i,s)}function O5(t,e,n,i=!0,r=!1){if(r)throw t;console.error(t)}const wi=[];let ra=-1;const hl=[];let Ms=null,Bu=0;const Fw=Promise.resolve();let tm=null;function Di(t){const e=tm||Fw;return t?e.then(this?t.bind(this):t):e}function N5(t){let e=ra+1,n=wi.length;for(;e<n;){const i=e+n>>>1,r=wi[i],a=yd(r);a<t||a===t&&r.flags&2?e=i+1:n=i}return e}function G2(t){if(!(t.flags&1)){const e=yd(t),n=wi[wi.length-1];!n||!(t.flags&2)&&e>=yd(n)?wi.push(t):wi.splice(N5(e),0,t),t.flags|=1,Bw()}}function Bw(){tm||(tm=Fw.then(Vw))}function nm(t){ot(t)?hl.push(...t):Ms&&t.id===-1?Ms.splice(Bu+1,0,t):t.flags&1||(hl.push(t),t.flags|=1),Bw()}function Xy(t,e,n=ra+1){for(;n<wi.length;n++){const i=wi[n];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;wi.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function im(t){if(hl.length){const e=[...new Set(hl)].sort((n,i)=>yd(n)-yd(i));if(hl.length=0,Ms){Ms.push(...e);return}for(Ms=e,Bu=0;Bu<Ms.length;Bu++){const n=Ms[Bu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Ms=null,Bu=0}}const yd=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Vw(t){try{for(ra=0;ra<wi.length;ra++){const e=wi[ra];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),rf(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ra<wi.length;ra++){const e=wi[ra];e&&(e.flags&=-2)}ra=-1,wi.length=0,im(),tm=null,(wi.length||hl.length)&&Vw()}}let ri=null,Hw=null;function rm(t){const e=ri;return ri=t,Hw=t&&t.type.__scopeId||null,e}function gi(t,e=ri,n){if(!e||t._n)return t;const i=(...r)=>{i._d&&dm(-1);const a=rm(e);let s;try{s=t(...r)}finally{rm(a),i._d&&dm(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function zw(t,e){if(ri===null)return t;const n=E0(ri),i=t.dirs||(t.dirs=[]);for(let r=0;r<e.length;r++){let[a,s,o,u=Gt]=e[r];a&&(ht(a)&&(a={mounted:a,updated:a}),a.deep&&ja(s),i.push({dir:a,instance:n,value:s,oldValue:void 0,arg:o,modifiers:u}))}return t}function aa(t,e,n,i){const r=t.dirs,a=e&&e.dirs;for(let s=0;s<r.length;s++){const o=r[s];a&&(o.oldValue=a[s].value);let u=o.dir[i];u&&(ts(),Ur(u,n,8,[t.el,o,t,e]),ns())}}const $w=Symbol("_vte"),Ww=t=>t.__isTeleport,Jc=t=>t&&(t.disabled||t.disabled===""),Yy=t=>t&&(t.defer||t.defer===""),Ky=t=>typeof SVGElement<"u"&&t instanceof SVGElement,Zy=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,a_=(t,e)=>{const n=t&&t.to;return pn(n)?e?e(n):null:n},Gw={name:"Teleport",__isTeleport:!0,process(t,e,n,i,r,a,s,o,u,c){const{mc:l,pc:d,pbc:f,o:{insert:h,querySelector:g,createText:v,createComment:m}}=c,p=Jc(e.props);let{shapeFlag:y,children:_,dynamicChildren:b}=e;if(t==null){const x=e.el=v(""),w=e.anchor=v("");h(x,n,i),h(w,n,i);const D=(M,S)=>{y&16&&l(_,M,S,r,a,s,o,u)},O=()=>{const M=e.target=a_(e.props,g),S=qw(M,e,v,h);M&&(s!=="svg"&&Ky(M)?s="svg":s!=="mathml"&&Zy(M)&&(s="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(M),p||(D(M,S),tp(e,!1)))};p&&(D(n,w),tp(e,!0)),Yy(e.props)?(e.el.__isMounted=!1,On(()=>{O(),delete e.el.__isMounted},a)):O()}else{if(Yy(e.props)&&t.el.__isMounted===!1){On(()=>{Gw.process(t,e,n,i,r,a,s,o,u,c)},a);return}e.el=t.el,e.targetStart=t.targetStart;const x=e.anchor=t.anchor,w=e.target=t.target,D=e.targetAnchor=t.targetAnchor,O=Jc(t.props),M=O?n:w,S=O?x:D;if(s==="svg"||Ky(w)?s="svg":(s==="mathml"||Zy(w))&&(s="mathml"),b?(f(t.dynamicChildren,b,M,r,a,s,o),ib(t,e,!0)):u||d(t,e,M,S,r,a,s,o,!1),p)O?e.props&&t.props&&e.props.to!==t.props.to&&(e.props.to=t.props.to):If(e,n,x,c,1);else if((e.props&&e.props.to)!==(t.props&&t.props.to)){const B=e.target=a_(e.props,g);B&&If(e,B,null,c,0)}else O&&If(e,w,D,c,1);tp(e,p)}},remove(t,e,n,{um:i,o:{remove:r}},a){const{shapeFlag:s,children:o,anchor:u,targetStart:c,targetAnchor:l,target:d,props:f}=t;if(d&&(r(c),r(l)),a&&r(u),s&16){const h=a||!Jc(f);for(let g=0;g<o.length;g++){const v=o[g];i(v,e,n,h,!!v.dynamicChildren)}}},move:If,hydrate:U5};function If(t,e,n,{o:{insert:i},m:r},a=2){a===0&&i(t.targetAnchor,e,n);const{el:s,anchor:o,shapeFlag:u,children:c,props:l}=t,d=a===2;if(d&&i(s,e,n),(!d||Jc(l))&&u&16)for(let f=0;f<c.length;f++)r(c[f],e,n,2);d&&i(o,e,n)}function U5(t,e,n,i,r,a,{o:{nextSibling:s,parentNode:o,querySelector:u,insert:c,createText:l}},d){function f(v,m,p,y){m.anchor=d(s(v),m,o(v),n,i,r,a),m.targetStart=p,m.targetAnchor=y}const h=e.target=a_(e.props,u),g=Jc(e.props);if(h){const v=h._lpa||h.firstChild;if(e.shapeFlag&16)if(g)f(t,e,v,v&&s(v));else{e.anchor=s(t);let m=v;for(;m;){if(m&&m.nodeType===8){if(m.data==="teleport start anchor")e.targetStart=m;else if(m.data==="teleport anchor"){e.targetAnchor=m,h._lpa=e.targetAnchor&&s(e.targetAnchor);break}}m=s(m)}e.targetAnchor||qw(h,e,l,c),d(v&&s(v),e,h,n,i,r,a)}tp(e,g)}else g&&e.shapeFlag&16&&f(t,e,t,s(t));return e.anchor&&s(e.anchor)}const Ele=Gw;function tp(t,e){const n=t.ctx;if(n&&n.ut){let i,r;for(e?(i=t.el,r=t.anchor):(i=t.targetStart,r=t.targetAnchor);i&&i!==r;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function qw(t,e,n,i){const r=e.targetStart=n(""),a=e.targetAnchor=n("");return r[$w]=a,t&&(i(r,t),i(a,t)),a}const za=Symbol("_leaveCb"),Pf=Symbol("_enterCb");function jw(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $n(()=>{t.isMounted=!0}),uu(()=>{t.isUnmounting=!0}),t}const ir=[Function,Array],Xw={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ir,onEnter:ir,onAfterEnter:ir,onEnterCancelled:ir,onBeforeLeave:ir,onLeave:ir,onAfterLeave:ir,onLeaveCancelled:ir,onBeforeAppear:ir,onAppear:ir,onAfterAppear:ir,onAppearCancelled:ir},Yw=t=>{const e=t.subTree;return e.component?Yw(e.component):e},F5={name:"BaseTransition",props:Xw,setup(t,{slots:e}){const n=Mn(),i=jw();return()=>{const r=e.default&&q2(e.default(),!0);if(!r||!r.length)return;const a=Kw(r),s=Tt(t),{mode:o}=s;if(i.isLeaving)return mg(a);const u=Jy(a);if(!u)return mg(a);let c=Ed(u,s,i,n,d=>c=d);u.type!==Un&&js(u,c);let l=n.subTree&&Jy(n.subTree);if(l&&l.type!==Un&&!wr(l,u)&&Yw(n).type!==Un){let d=Ed(l,s,i,n);if(js(l,d),o==="out-in"&&u.type!==Un)return i.isLeaving=!0,d.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,l=void 0},mg(a);o==="in-out"&&u.type!==Un?d.delayLeave=(f,h,g)=>{const v=Zw(i,l);v[String(l.key)]=l,f[za]=()=>{h(),f[za]=void 0,delete c.delayedLeave,l=void 0},c.delayedLeave=()=>{g(),delete c.delayedLeave,l=void 0}}:l=void 0}else l&&(l=void 0);return a}}};function Kw(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Un){e=n;break}}return e}const B5=F5;function Zw(t,e){const{leavingVNodes:n}=t;let i=n.get(e.type);return i||(i=Object.create(null),n.set(e.type,i)),i}function Ed(t,e,n,i,r){const{appear:a,mode:s,persisted:o=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:l,onEnterCancelled:d,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:v,onBeforeAppear:m,onAppear:p,onAfterAppear:y,onAppearCancelled:_}=e,b=String(t.key),x=Zw(n,t),w=(M,S)=>{M&&Ur(M,i,9,S)},D=(M,S)=>{const B=S[1];w(M,S),ot(M)?M.every(V=>V.length<=1)&&B():M.length<=1&&B()},O={mode:s,persisted:o,beforeEnter(M){let S=u;if(!n.isMounted)if(a)S=m||u;else return;M[za]&&M[za](!0);const B=x[b];B&&wr(t,B)&&B.el[za]&&B.el[za](),w(S,[M])},enter(M){let S=c,B=l,V=d;if(!n.isMounted)if(a)S=p||c,B=y||l,V=_||d;else return;let z=!1;const Q=M[Pf]=Z=>{z||(z=!0,Z?w(V,[M]):w(B,[M]),O.delayedLeave&&O.delayedLeave(),M[Pf]=void 0)};S?D(S,[M,Q]):Q()},leave(M,S){const B=String(t.key);if(M[Pf]&&M[Pf](!0),n.isUnmounting)return S();w(f,[M]);let V=!1;const z=M[za]=Q=>{V||(V=!0,S(),Q?w(v,[M]):w(g,[M]),M[za]=void 0,x[B]===t&&delete x[B])};x[B]=t,h?D(h,[M,z]):z()},clone(M){const S=Ed(M,e,n,i,r);return r&&r(S),S}};return O}function mg(t){if(af(t))return t=Ki(t),t.children=null,t}function Jy(t){if(!af(t))return Ww(t.type)&&t.children?Kw(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:n}=t;if(n){if(e&16)return n[0];if(e&32&&ht(n.default))return n.default()}}function js(t,e){t.shapeFlag&6&&t.component?(t.transition=e,js(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function q2(t,e=!1,n){let i=[],r=0;for(let a=0;a<t.length;a++){let s=t[a];const o=n==null?s.key:String(n)+String(s.key!=null?s.key:a);s.type===Zt?(s.patchFlag&128&&r++,i=i.concat(q2(s.children,e,o))):(e||s.type!==Un)&&i.push(o!=null?Ki(s,{key:o}):s)}if(r>1)for(let a=0;a<i.length;a++)i[a].patchFlag=-2;return i}function qn(t,e){return ht(t)?vn({name:t.name},e,{setup:t}):t}function V5(){const t=Mn();return t?(t.appContext.config.idPrefix||"v")+"-"+t.ids[0]+t.ids[1]++:""}function j2(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const am=new WeakMap;function pl(t,e,n,i,r=!1){if(ot(t)){t.forEach((g,v)=>pl(g,e&&(ot(e)?e[v]:e),n,i,r));return}if(Fs(i)&&!r){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&pl(t,e,n,i.component.subTree);return}const a=i.shapeFlag&4?E0(i.component):i.el,s=r?null:a,{i:o,r:u}=t,c=e&&e.r,l=o.refs===Gt?o.refs={}:o.refs,d=o.setupState,f=Tt(d),h=d===Gt?hw:g=>Wt(f,g);if(c!=null&&c!==u){if(Qy(e),pn(c))l[c]=null,h(c)&&(d[c]=null);else if(Dt(c)){c.value=null;const g=e;g.k&&(l[g.k]=null)}}if(ht(u))rf(u,o,12,[s,l]);else{const g=pn(u),v=Dt(u);if(g||v){const m=()=>{if(t.f){const p=g?h(u)?d[u]:l[u]:u.value;if(r)ot(p)&&N2(p,a);else if(ot(p))p.includes(a)||p.push(a);else if(g)l[u]=[a],h(u)&&(d[u]=l[u]);else{const y=[a];u.value=y,t.k&&(l[t.k]=y)}}else g?(l[u]=s,h(u)&&(d[u]=s)):v&&(u.value=s,t.k&&(l[t.k]=s))};if(s){const p=()=>{m(),am.delete(t)};p.id=-1,am.set(t,p),On(p,n)}else Qy(t),m()}}}function Qy(t){const e=am.get(t);e&&(e.flags|=8,am.delete(t))}let eE=!1;const pu=()=>{eE||(console.error("Hydration completed but contains mismatches."),eE=!0)},H5=t=>t.namespaceURI.includes("svg")&&t.tagName!=="foreignObject",z5=t=>t.namespaceURI.includes("MathML"),kf=t=>{if(t.nodeType===1){if(H5(t))return"svg";if(z5(t))return"mathml"}},al=t=>t.nodeType===8;function $5(t){const{mt:e,p:n,o:{patchProp:i,createText:r,nextSibling:a,parentNode:s,remove:o,insert:u,createComment:c}}=t,l=(_,b)=>{if(!b.hasChildNodes()){n(null,_,b),im(),b._vnode=_;return}d(b.firstChild,_,null,null,null),im(),b._vnode=_},d=(_,b,x,w,D,O=!1)=>{O=O||!!b.dynamicChildren;const M=al(_)&&_.data==="[",S=()=>v(_,b,x,w,D,M),{type:B,ref:V,shapeFlag:z,patchFlag:Q}=b;let Z=_.nodeType;b.el=_,Q===-2&&(O=!1,b.dynamicChildren=null);let q=null;switch(B){case Bs:Z!==3?b.children===""?(u(b.el=r(""),s(_),_),q=_):q=S():(_.data!==b.children&&(pu(),_.data=b.children),q=a(_));break;case Un:y(_)?(q=a(_),p(b.el=_.content.firstChild,_,x)):Z!==8||M?q=S():q=a(_);break;case ed:if(M&&(_=a(_),Z=_.nodeType),Z===1||Z===3){q=_;const te=!b.children.length;for(let $=0;$<b.staticCount;$++)te&&(b.children+=q.nodeType===1?q.outerHTML:q.data),$===b.staticCount-1&&(b.anchor=q),q=a(q);return M?a(q):q}else S();break;case Zt:M?q=g(_,b,x,w,D,O):q=S();break;default:if(z&1)(Z!==1||b.type.toLowerCase()!==_.tagName.toLowerCase())&&!y(_)?q=S():q=f(_,b,x,w,D,O);else if(z&6){b.slotScopeIds=D;const te=s(_);if(M?q=m(_):al(_)&&_.data==="teleport start"?q=m(_,_.data,"teleport end"):q=a(_),e(b,te,null,x,w,kf(te),O),Fs(b)&&!b.type.__asyncResolved){let $;M?($=Ct(Zt),$.anchor=q?q.previousSibling:te.lastChild):$=_.nodeType===3?y0(""):Ct("div"),$.el=_,b.component.subTree=$}}else z&64?Z!==8?q=S():q=b.type.hydrate(_,b,x,w,D,O,t,h):z&128&&(q=b.type.hydrate(_,b,x,w,kf(s(_)),D,O,t,d))}return V!=null&&pl(V,null,w,b),q},f=(_,b,x,w,D,O)=>{O=O||!!b.dynamicChildren;const{type:M,props:S,patchFlag:B,shapeFlag:V,dirs:z,transition:Q}=b,Z=M==="input"||M==="option";if(Z||B!==-1){z&&aa(b,null,x,"created");let q=!1;if(y(_)){q=bM(null,Q)&&x&&x.vnode.props&&x.vnode.props.appear;const $=_.content.firstChild;if(q){const ee=$.getAttribute("class");ee&&($.$cls=ee),Q.beforeEnter($)}p($,_,x),b.el=_=$}if(V&16&&!(S&&(S.innerHTML||S.textContent))){let $=h(_.firstChild,b,_,x,w,D,O);for(;$;){Of(_,1)||pu();const ee=$;$=$.nextSibling,o(ee)}}else if(V&8){let $=b.children;$[0]===`
3`&&(_.tagName==="PRE"||_.tagName==="TEXTAREA")&&($=$.slice(1));const{textContent:ee}=_;ee!==$&&ee!==$.replace(/\r\n|\r/g,`
4`)&&(Of(_,0)||pu(),_.textContent=b.children)}if(S){if(Z||!O||B&48){const $=_.tagName.includes("-");for(const ee in S)(Z&&(ee.endsWith("value")||ee==="indeterminate")||Qd(ee)&&!dl(ee)||ee[0]==="."||$)&&i(_,ee,null,S[ee],void 0,x)}else if(S.onClick)i(_,"onClick",null,S.onClick,void 0,x);else if(B&4&&kr(S.style))for(const $ in S.style)S.style[$]}let te;(te=S&&S.onVnodeBeforeMount)&&ki(te,x,b),z&&aa(b,null,x,"beforeMount"),((te=S&&S.onVnodeMounted)||z||q)&&xM(()=>{te&&ki(te,x,b),q&&Q.enter(_),z&&aa(b,null,x,"mounted")},w)}return _.nextSibling},h=(_,b,x,w,D,O,M)=>{M=M||!!b.dynamicChildren;const S=b.children,B=S.length;for(let V=0;V<B;V++){const z=M?S[V]:S[V]=ji(S[V]),Q=z.type===Bs;_?(Q&&!M&&V+1<B&&ji(S[V+1]).type===Bs&&(u(r(_.data.slice(z.children.length)),x,a(_)),_.data=z.children),_=d(_,z,w,D,O,M)):Q&&!z.children?u(z.el=r(""),x):(Of(x,1)||pu(),n(null,z,x,null,w,D,kf(x),O))}return _},g=(_,b,x,w,D,O)=>{const{slotScopeIds:M}=b;M&&(D=D?D.concat(M):M);const S=s(_),B=h(a(_),b,S,x,w,D,O);return B&&al(B)&&B.data==="]"?a(b.anchor=B):(pu(),u(b.anchor=c("]"),S,B),B)},v=(_,b,x,w,D,O)=>{if(Of(_.parentElement,1)||pu(),b.el=null,O){const B=m(_);for(;;){const V=a(_);if(V&&V!==B)o(V);else break}}const M=a(_),S=s(_);return o(_),n(null,b,S,M,x,w,kf(S),D),x&&(x.vnode.el=b.el,b0(x,b.el)),M},m=(_,b="[",x="]")=>{let w=0;for(;_;)if(_=a(_),_&&al(_)&&(_.data===b&&w++,_.data===x)){if(w===0)return a(_);w--}return _},p=(_,b,x)=>{const w=b.parentNode;w&&w.replaceChild(_,b);let D=x;for(;D;)D.vnode.el===b&&(D.vnode.el=D.subTree.el=_),D=D.parent},y=_=>_.nodeType===1&&_.tagName==="TEMPLATE";return[l,d]}const tE="data-allow-mismatch",W5={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Of(t,e){if(e===0||e===1)for(;t&&!t.hasAttribute(tE);)t=t.parentElement;const n=t&&t.getAttribute(tE);if(n==null)return!1;if(n==="")return!0;{const i=n.split(",");return e===0&&i.includes("children")?!0:i.includes(W5[e])}}d0().requestIdleCallback;d0().cancelIdleCallback;function G5(t,e){if(al(t)&&t.data==="["){let n=1,i=t.nextSibling;for(;i;){if(i.nodeType===1){if(e(i)===!1)break}else if(al(i))if(i.data==="]"){if(--n===0)break}else i.data==="["&&n++;i=i.nextSibling}}else e(t)}const Fs=t=>!!t.type.__asyncLoader;function Ce(t){ht(t)&&(t={loader:t});const{loader:e,loadingComponent:n,errorComponent:i,delay:r=200,hydrate:a,timeout:s,suspensible:o=!0,onError:u}=t;let c=null,l,d=0;const f=()=>(d++,c=null,h()),h=()=>{let g;return c||(g=c=e().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),u)return new Promise((m,p)=>{u(v,()=>m(f()),()=>p(v),d+1)});throw v}).then(v=>g!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),l=v,v)))};return qn({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,v,m){let p=!1;(v.bu||(v.bu=[])).push(()=>p=!0);const y=()=>{p||m()},_=a?()=>{const b=a(y,x=>G5(g,x));b&&(v.bum||(v.bum=[])).push(b)}:y;l?_():h().then(()=>!v.isUnmounted&&_())},get __asyncResolved(){return l},setup(){const g=ii;if(j2(g),l)return()=>Nf(l,g);const v=_=>{c=null,Jl(_,g,13,!i)};if(o&&g.suspense||Cl)return h().then(_=>()=>Nf(_,g)).catch(_=>(v(_),()=>i?Ct(i,{error:_}):null));const m=Le(!1),p=Le(),y=Le(!!r);return r&&setTimeout(()=>{y.value=!1},r),s!=null&&setTimeout(()=>{if(!m.value&&!p.value){const _=new Error(`Async component timed out after ${s}ms.`);v(_),p.value=_}},s),h().then(()=>{m.value=!0,g.parent&&af(g.parent.vnode)&&g.parent.update()}).catch(_=>{v(_),p.value=_}),()=>{if(m.value&&l)return Nf(l,g);if(p.value&&i)return Ct(i,{error:p.value});if(n&&!y.value)return Nf(n,g)}}})}function Nf(t,e){const{ref:n,props:i,children:r,ce:a}=e.vnode,s=Ct(t,i,r);return s.ref=n,s.ce=a,delete e.vnode.ce,s}const af=t=>t.type.__isKeepAlive,q5={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:e}){const n=Mn(),i=n.ctx;if(!i.renderer)return()=>{const y=e.default&&e.default();return y&&y.length===1?y[0]:y};const r=new Map,a=new Set;let s=null;const o=n.suspense,{renderer:{p:u,m:c,um:l,o:{createElement:d}}}=i,f=d("div");i.activate=(y,_,b,x,w)=>{const D=y.component;c(y,_,b,0,o),u(D.vnode,y,_,b,D,o,x,y.slotScopeIds,w),On(()=>{D.isDeactivated=!1,D.a&&fl(D.a);const O=y.props&&y.props.onVnodeMounted;O&&ki(O,D.parent,y)},o)},i.deactivate=y=>{const _=y.component;lm(_.m),lm(_.a),c(y,f,null,1,o),On(()=>{_.da&&fl(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&ki(b,_.parent,y),_.isDeactivated=!0},o)};function h(y){gg(y),l(y,n,o,!0)}function g(y){r.forEach((_,b)=>{const x=p_(_.type);x&&!y(x)&&v(b)})}function v(y){const _=r.get(y);_&&(!s||!wr(_,s))?h(_):s&&gg(s),r.delete(y),a.delete(y)}st(()=>[t.include,t.exclude],([y,_])=>{y&&g(b=>Lc(y,b)),_&&g(b=>!Lc(_,b))},{flush:"post",deep:!0});let m=null;const p=()=>{m!=null&&(cm(n.subTree.type)?On(()=>{r.set(m,Uf(n.subTree))},n.subTree.suspense):r.set(m,Uf(n.subTree)))};return $n(p),K2(p),uu(()=>{r.forEach(y=>{const{subTree:_,suspense:b}=n,x=Uf(_);if(y.type===x.type&&y.key===x.key){gg(x);const w=x.component.da;w&&On(w,b);return}h(y)})}),()=>{if(m=null,!e.default)return s=null;const y=e.default(),_=y[0];if(y.length>1)return s=null,y;if(!Qo(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return s=null,_;let b=Uf(_);if(b.type===Un)return s=null,b;const x=b.type,w=p_(Fs(b)?b.type.__asyncResolved||{}:x),{include:D,exclude:O,max:M}=t;if(D&&(!w||!Lc(D,w))||O&&w&&Lc(O,w))return b.shapeFlag&=-257,s=b,_;const S=b.key==null?x:b.key,B=r.get(S);return b.el&&(b=Ki(b),_.shapeFlag&128&&(_.ssContent=b)),m=S,B?(b.el=B.el,b.component=B.component,b.transition&&js(b,b.transition),b.shapeFlag|=512,a.delete(S),a.add(S)):(a.add(S),M&&a.size>parseInt(M,10)&&v(a.values().next().value)),b.shapeFlag|=256,s=b,cm(_.type)?_:b}}},j5=q5;function Lc(t,e){return ot(t)?t.some(n=>Lc(n,e)):pn(t)?t.split(",").includes(e):K4(t)?(t.lastIndex=0,t.test(e)):!1}function X2(t,e){Jw(t,"a",e)}function Y2(t,e){Jw(t,"da",e)}function Jw(t,e,n=ii){const i=t.__wdc||(t.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return t()});if(m0(e,i,n),n){let r=n.parent;for(;r&&r.parent;)af(r.parent.vnode)&&X5(i,e,n,r),r=r.parent}}function X5(t,e,n,i){const r=m0(e,t,i,!0);xa(()=>{N2(i[e],r)},n)}function gg(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function Uf(t){return t.shapeFlag&128?t.ssContent:t}function m0(t,e,n=ii,i=!1){if(n){const r=n[t]||(n[t]=[]),a=e.__weh||(e.__weh=(...s)=>{ts();const o=eu(n),u=Ur(e,n,t,s);return o(),ns(),u});return i?r.unshift(a):r.push(a),a}}const ss=t=>(e,n=ii)=>{(!Cl||t==="sp")&&m0(t,(...i)=>e(...i),n)},Qw=ss("bm"),$n=ss("m"),Y5=ss("bu"),K2=ss("u"),uu=ss("bum"),xa=ss("um"),K5=ss("sp"),Z5=ss("rtg"),J5=ss("rtc");function eM(t,e=ii){m0("ec",t,e)}const Z2="components",Q5="directives";function nE(t,e){return J2(Z2,t,!0,e)||t}const tM=Symbol.for("v-ndc");function g0(t){return pn(t)?J2(Z2,t,!1)||t:t||tM}function xle(t){return J2(Q5,t)}function J2(t,e,n=!0,i=!1){const r=ri||ii;if(r){const a=r.type;if(t===Z2){const o=p_(a,!1);if(o&&(o===e||o===mi(e)||o===c0(mi(e))))return a}const s=iE(r[t]||a[t],e)||iE(r.appContext[t],e);return!s&&i?a:s}}function iE(t,e){return t&&(t[e]||t[mi(e)]||t[c0(mi(e))])}function Xs(t,e,n,i){let r;const a=n,s=ot(t);if(s||pn(t)){const o=s&&kr(t);let u=!1,c=!1;o&&(u=!Xi(t),c=Ea(t),t=h0(t)),r=new Array(t.length);for(let l=0,d=t.length;l<d;l++)r[l]=e(u?c?wl(Nr(t[l])):Nr(t[l]):t[l],l,void 0,a)}else if(typeof t=="number"){r=new Array(t);for(let o=0;o<t;o++)r[o]=e(o+1,o,void 0,a)}else if(un(t))if(t[Symbol.iterator])r=Array.from(t,(o,u)=>e(o,u,void 0,a));else{const o=Object.keys(t);r=new Array(o.length);for(let u=0,c=o.length;u<c;u++){const l=o[u];r[u]=e(t[l],l,u,a)}}else r=[];return r}function Ale(t,e){for(let n=0;n<e.length;n++){const i=e[n];if(ot(i))for(let r=0;r<i.length;r++)t[i[r].name]=i[r].fn;else i&&(t[i.name]=i.key?(...r)=>{const a=i.fn(...r);return a&&(a.key=i.key),a}:i.fn)}return t}function Yi(t,e,n={},i,r){if(ri.ce||ri.parent&&Fs(ri.parent)&&ri.parent.ce){const c=Object.keys(n).length>0;return e!=="default"&&(n.name=e),tt(),cn(Zt,null,[Ct("slot",n,i&&i())],c?-2:64)}let a=t[e];a&&a._c&&(a._d=!1),tt();const s=a&&nM(a(n)),o=n.key||s&&s.key,u=cn(Zt,{key:(o&&!as(o)?o:`_${e}`)+(!s&&i?"_fb":"")},s||(i?i():[]),s&&t._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),a&&a._c&&(a._d=!0),u}function nM(t){return t.some(e=>Qo(e)?!(e.type===Un||e.type===Zt&&!nM(e.children)):!0)?t:null}function Sle(t,e){const n={};for(const i in t)n[/[A-Z]/.test(i)?`on:${i}`:ep(i)]=t[i];return n}const s_=t=>t?MM(t)?E0(t):s_(t.parent):null,Qc=vn(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>s_(t.parent),$root:t=>s_(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>aM(t),$forceUpdate:t=>t.f||(t.f=()=>{G2(t.update)}),$nextTick:t=>t.n||(t.n=Di.bind(t.proxy)),$watch:t=>hk.bind(t)}),vg=(t,e)=>t!==Gt&&!t.__isScriptSetup&&Wt(t,e),ek={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:i,data:r,props:a,accessCache:s,type:o,appContext:u}=t;if(e[0]!=="$"){const f=s[e];if(f!==void 0)switch(f){case 1:return i[e];case 2:return r[e];case 4:return n[e];case 3:return a[e]}else{if(vg(i,e))return s[e]=1,i[e];if(r!==Gt&&Wt(r,e))return s[e]=2,r[e];if(Wt(a,e))return s[e]=3,a[e];if(n!==Gt&&Wt(n,e))return s[e]=4,n[e];o_&&(s[e]=0)}}const c=Qc[e];let l,d;if(c)return e==="$attrs"&&pi(t.attrs,"get",""),c(t);if((l=o.__cssModules)&&(l=l[e]))return l;if(n!==Gt&&Wt(n,e))return s[e]=4,n[e];if(d=u.config.globalProperties,Wt(d,e))return d[e]},set({_:t},e,n){const{data:i,setupState:r,ctx:a}=t;return vg(r,e)?(r[e]=n,!0):i!==Gt&&Wt(i,e)?(i[e]=n,!0):Wt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:i,appContext:r,props:a,type:s}},o){let u;return!!(n[o]||t!==Gt&&o[0]!=="$"&&Wt(t,o)||vg(e,o)||Wt(a,o)||Wt(i,o)||Wt(Qc,o)||Wt(r.config.globalProperties,o)||(u=s.__cssModules)&&u[o])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:Wt(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Q2(){return iM().slots}function tk(){return iM().attrs}function iM(t){const e=Mn();return e.setupContext||(e.setupContext=DM(e))}function sm(t){return ot(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}function om(t,e){return!t||!e?t||e:ot(t)&&ot(e)?t.concat(e):vn({},sm(t),sm(e))}function nk(t){const e=Mn();let n=t();return f_(),s0(n)&&(n=n.catch(i=>{throw eu(e),i})),[n,()=>eu(e)]}let o_=!0;function ik(t){const e=aM(t),n=t.proxy,i=t.ctx;o_=!1,e.beforeCreate&&rE(e.beforeCreate,t,"bc");const{data:r,computed:a,methods:s,watch:o,provide:u,inject:c,created:l,beforeMount:d,mounted:f,beforeUpdate:h,updated:g,activated:v,deactivated:m,beforeDestroy:p,beforeUnmount:y,destroyed:_,unmounted:b,render:x,renderTracked:w,renderTriggered:D,errorCaptured:O,serverPrefetch:M,expose:S,inheritAttrs:B,components:V,directives:z,filters:Q}=e;if(c&&rk(c,i,null),s)for(const te in s){const $=s[te];ht($)&&(i[te]=$.bind(n))}if(r){const te=r.call(n,n);un(te)&&(t.data=In(te))}if(o_=!0,a)for(const te in a){const $=a[te],ee=ht($)?$.bind(n,n):ht($.get)?$.get.bind(n,n):_a,le=!ht($)&&ht($.set)?$.set.bind(n):_a,xe=Ve({get:ee,set:le});Object.defineProperty(i,te,{enumerable:!0,configurable:!0,get:()=>xe.value,set:J=>xe.value=J})}if(o)for(const te in o)rM(o[te],i,n,te);if(u){const te=ht(u)?u.call(n):u;Reflect.ownKeys(te).forEach($=>{Ja($,te[$])})}l&&rE(l,t,"c");function q(te,$){ot($)?$.forEach(ee=>te(ee.bind(n))):$&&te($.bind(n))}if(q(Qw,d),q($n,f),q(Y5,h),q(K2,g),q(X2,v),q(Y2,m),q(eM,O),q(J5,w),q(Z5,D),q(uu,y),q(xa,b),q(K5,M),ot(S))if(S.length){const te=t.exposed||(t.exposed={});S.forEach($=>{Object.defineProperty(te,$,{get:()=>n[$],set:ee=>n[$]=ee,enumerable:!0})})}else t.exposed||(t.exposed={});x&&t.render===_a&&(t.render=x),B!=null&&(t.inheritAttrs=B),V&&(t.components=V),z&&(t.directives=z),M&&j2(t)}function rk(t,e,n=_a){ot(t)&&(t=u_(t));for(const i in t){const r=t[i];let a;un(r)?"default"in r?a=wn(r.from||i,r.default,!0):a=wn(r.from||i):a=wn(r),Dt(a)?Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):e[i]=a}}function rE(t,e,n){Ur(ot(t)?t.map(i=>i.bind(e.proxy)):t.bind(e.proxy),e,n)}function rM(t,e,n,i){let r=i.includes(".")?oM(n,i):()=>n[i];if(pn(t)){const a=e[t];ht(a)&&st(r,a)}else if(ht(t))st(r,t.bind(n));else if(un(t))if(ot(t))t.forEach(a=>rM(a,e,n,i));else{const a=ht(t.handler)?t.handler.bind(n):e[t.handler];ht(a)&&st(r,a,t)}}function aM(t){const e=t.type,{mixins:n,extends:i}=e,{mixins:r,optionsCache:a,config:{optionMergeStrategies:s}}=t.appContext,o=a.get(e);let u;return o?u=o:!r.length&&!n&&!i?u=e:(u={},r.length&&r.forEach(c=>um(u,c,s,!0)),um(u,e,s)),un(e)&&a.set(e,u),u}function um(t,e,n,i=!1){const{mixins:r,extends:a}=e;a&&um(t,a,n,!0),r&&r.forEach(s=>um(t,s,n,!0));for(const s in e)if(!(i&&s==="expose")){const o=ak[s]||n&&n[s];t[s]=o?o(t[s],e[s]):e[s]}return t}const ak={data:aE,props:sE,emits:sE,methods:Rc,computed:Rc,beforeCreate:Ei,created:Ei,beforeMount:Ei,mounted:Ei,beforeUpdate:Ei,updated:Ei,beforeDestroy:Ei,beforeUnmount:Ei,destroyed:Ei,unmounted:Ei,activated:Ei,deactivated:Ei,errorCaptured:Ei,serverPrefetch:Ei,components:Rc,directives:Rc,watch:ok,provide:aE,inject:sk};function aE(t,e){return e?t?function(){return vn(ht(t)?t.call(this,this):t,ht(e)?e.call(this,this):e)}:e:t}function sk(t,e){return Rc(u_(t),u_(e))}function u_(t){if(ot(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function Ei(t,e){return t?[...new Set([].concat(t,e))]:e}function Rc(t,e){return t?vn(Object.create(null),t,e):e}function sE(t,e){return t?ot(t)&&ot(e)?[...new Set([...t,...e])]:vn(Object.create(null),sm(t),sm(e??{})):e}function ok(t,e){if(!t)return e;if(!e)return t;const n=vn(Object.create(null),t);for(const i in e)n[i]=Ei(t[i],e[i]);return n}function sM(){return{app:null,config:{isNativeTag:hw,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 uk=0;function lk(t,e){return function(i,r=null){ht(i)||(i=vn({},i)),r!=null&&!un(r)&&(r=null);const a=sM(),s=new WeakSet,o=[];let u=!1;const c=a.app={_uid:uk++,_component:i,_props:r,_container:null,_context:a,_instance:null,version:Wk,get config(){return a.config},set config(l){},use(l,...d){return s.has(l)||(l&&ht(l.install)?(s.add(l),l.install(c,...d)):ht(l)&&(s.add(l),l(c,...d))),c},mixin(l){return a.mixins.includes(l)||a.mixins.push(l),c},component(l,d){return d?(a.components[l]=d,c):a.components[l]},directive(l,d){return d?(a.directives[l]=d,c):a.directives[l]},mount(l,d,f){if(!u){const h=c._ceVNode||Ct(i,r);return h.appContext=a,f===!0?f="svg":f===!1&&(f=void 0),d&&e?e(h,l):t(h,l,f),u=!0,c._container=l,l.__vue_app__=c,E0(h.component)}},onUnmount(l){o.push(l)},unmount(){u&&(Ur(o,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(l,d){return a.provides[l]=d,c},runWithContext(l){const d=$o;$o=c;try{return l()}finally{$o=d}}};return c}}let $o=null;function Ja(t,e){if(ii){let n=ii.provides;const i=ii.parent&&ii.parent.provides;i===n&&(n=ii.provides=Object.create(i)),n[t]=e}}function wn(t,e,n=!1){const i=Mn();if(i||$o){let r=$o?$o._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(r&&t in r)return r[t];if(arguments.length>1)return n&&ht(e)?e.call(i&&i.proxy):e}}function sf(){return!!(Mn()||$o)}const ck=Symbol.for("v-scx"),dk=()=>wn(ck);function Ql(t,e){return v0(t,null,e)}function fk(t,e){return v0(t,null,{flush:"sync"})}function st(t,e,n){return v0(t,e,n)}function v0(t,e,n=Gt){const{immediate:i,deep:r,flush:a,once:s}=n,o=vn({},n),u=e&&i||!e&&a!=="post";let c;if(Cl){if(a==="sync"){const h=dk();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=_a,h.resume=_a,h.pause=_a,h}}const l=ii;o.call=(h,g,v)=>Ur(h,l,g,v);let d=!1;a==="post"?o.scheduler=h=>{On(h,l&&l.suspense)}:a!=="sync"&&(d=!0,o.scheduler=(h,g)=>{g?h():G2(h)}),o.augmentJob=h=>{e&&(h.flags|=4),d&&(h.flags|=2,l&&(h.id=l.uid,h.i=l))};const f=k5(t,e,o);return Cl&&(c?c.push(f):u&&f()),f}function hk(t,e,n){const i=this.proxy,r=pn(t)?t.includes(".")?oM(i,t):()=>i[t]:t.bind(i,i);let a;ht(e)?a=e:(a=e.handler,n=e);const s=eu(this),o=v0(r,a.bind(i),n);return s(),o}function oM(t,e){const n=e.split(".");return()=>{let i=t;for(let r=0;r<n.length&&i;r++)i=i[n[r]];return i}}function eb(t,e,n=Gt){const i=Mn(),r=mi(e),a=Ui(e),s=uM(t,r),o=$2((u,c)=>{let l,d=Gt,f;return fk(()=>{const h=t[r];Ni(l,h)&&(l=h,c())}),{get(){return u(),n.get?n.get(l):l},set(h){const g=n.set?n.set(h):h;if(!Ni(g,l)&&!(d!==Gt&&Ni(h,d)))return;const v=i.vnode.props;v&&(e in v||r in v||a in v)&&(`onUpdate:${e}`in v||`onUpdate:${r}`in v||`onUpdate:${a}`in v)||(l=h,c()),i.emit(`update:${e}`,g),Ni(h,g)&&Ni(h,d)&&!Ni(g,f)&&c(),d=h,f=g}}});return o[Symbol.iterator]=()=>{let u=0;return{next(){return u<2?{value:u++?s||Gt:o,done:!1}:{done:!0}}}},o}const uM=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${mi(e)}Modifiers`]||t[`${Ui(e)}Modifiers`];function pk(t,e,...n){if(t.isUnmounted)return;const i=t.vnode.props||Gt;let r=n;const a=e.startsWith("update:"),s=a&&uM(i,e.slice(7));s&&(s.trim&&(r=n.map(l=>pn(l)?l.trim():l)),s.number&&(r=n.map(U2)));let o,u=i[o=ep(e)]||i[o=ep(mi(e))];!u&&a&&(u=i[o=ep(Ui(e))]),u&&Ur(u,t,6,r);const c=i[o+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,Ur(c,t,6,r)}}const mk=new WeakMap;function lM(t,e,n=!1){const i=n?mk:e.emitsCache,r=i.get(t);if(r!==void 0)return r;const a=t.emits;let s={},o=!1;if(!ht(t)){const u=c=>{const l=lM(c,e,!0);l&&(o=!0,vn(s,l))};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!a&&!o?(un(t)&&i.set(t,null),null):(ot(a)?a.forEach(u=>s[u]=null):vn(s,a),un(t)&&i.set(t,s),s)}function _0(t,e){return!t||!Qd(e)?!1:(e=e.slice(2).replace(/Once$/,""),Wt(t,e[0].toLowerCase()+e.slice(1))||Wt(t,Ui(e))||Wt(t,e))}function _g(t){const{type:e,vnode:n,proxy:i,withProxy:r,propsOptions:[a],slots:s,attrs:o,emit:u,render:c,renderCache:l,props:d,data:f,setupState:h,ctx:g,inheritAttrs:v}=t,m=rm(t);let p,y;try{if(n.shapeFlag&4){const b=r||i,x=b;p=ji(c.call(x,b,l,d,h,f,g)),y=o}else{const b=e;p=ji(b.length>1?b(d,{attrs:o,slots:s,emit:u}):b(d,null)),y=e.props?o:vk(o)}}catch(b){td.length=0,Jl(b,t,1),p=Ct(Un)}let _=p;if(y&&v!==!1){const b=Object.keys(y),{shapeFlag:x}=_;b.length&&x&7&&(a&&b.some(O2)&&(y=_k(y,a)),_=Ki(_,y,!1,!0))}return n.dirs&&(_=Ki(_,null,!1,!0),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&js(_,n.transition),p=_,rm(m),p}function gk(t,e=!0){let n;for(let i=0;i<t.length;i++){const r=t[i];if(Qo(r)){if(r.type!==Un||r.children==="v-if"){if(n)return;n=r}}else return}return n}const vk=t=>{let e;for(const n in t)(n==="class"||n==="style"||Qd(n))&&((e||(e={}))[n]=t[n]);return e},_k=(t,e)=>{const n={};for(const i in t)(!O2(i)||!(i.slice(9)in e))&&(n[i]=t[i]);return n};function bk(t,e,n){const{props:i,children:r,component:a}=t,{props:s,children:o,patchFlag:u}=e,c=a.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return i?oE(i,s,c):!!s;if(u&8){const l=e.dynamicProps;for(let d=0;d<l.length;d++){const f=l[d];if(s[f]!==i[f]&&!_0(c,f))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:i===s?!1:i?s?oE(i,s,c):!0:!!s;return!1}function oE(t,e,n){const i=Object.keys(e);if(i.length!==Object.keys(t).length)return!0;for(let r=0;r<i.length;r++){const a=i[r];if(e[a]!==t[a]&&!_0(n,a))return!0}return!1}function b0({vnode:t,parent:e},n){for(;e;){const i=e.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=e.vnode).el=n,e=e.parent;else break}}const cM={},dM=()=>Object.create(cM),fM=t=>Object.getPrototypeOf(t)===cM;function yk(t,e,n,i=!1){const r={},a=dM();t.propsDefaults=Object.create(null),hM(t,e,r,a);for(const s in t.propsOptions[0])s in r||(r[s]=void 0);n?t.props=i?r:ha(r):t.type.props?t.props=r:t.props=a,t.attrs=a}function Ek(t,e,n,i){const{props:r,attrs:a,vnode:{patchFlag:s}}=t,o=Tt(r),[u]=t.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const l=t.vnode.dynamicProps;for(let d=0;d<l.length;d++){let f=l[d];if(_0(t.emitsOptions,f))continue;const h=e[f];if(u)if(Wt(a,f))h!==a[f]&&(a[f]=h,c=!0);else{const g=mi(f);r[g]=l_(u,o,g,h,t,!1)}else h!==a[f]&&(a[f]=h,c=!0)}}}else{hM(t,e,r,a)&&(c=!0);let l;for(const d in o)(!e||!Wt(e,d)&&((l=Ui(d))===d||!Wt(e,l)))&&(u?n&&(n[d]!==void 0||n[l]!==void 0)&&(r[d]=l_(u,o,d,void 0,t,!0)):delete r[d]);if(a!==o)for(const d in a)(!e||!Wt(e,d))&&(delete a[d],c=!0)}c&&qa(t.attrs,"set","")}function hM(t,e,n,i){const[r,a]=t.propsOptions;let s=!1,o;if(e)for(let u in e){if(dl(u))continue;const c=e[u];let l;r&&Wt(r,l=mi(u))?!a||!a.includes(l)?n[l]=c:(o||(o={}))[l]=c:_0(t.emitsOptions,u)||(!(u in i)||c!==i[u])&&(i[u]=c,s=!0)}if(a){const u=Tt(n),c=o||Gt;for(let l=0;l<a.length;l++){const d=a[l];n[d]=l_(r,u,d,c[d],t,!Wt(c,d))}}return s}function l_(t,e,n,i,r,a){const s=t[n];if(s!=null){const o=Wt(s,"default");if(o&&i===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&ht(u)){const{propsDefaults:c}=r;if(n in c)i=c[n];else{const l=eu(r);i=c[n]=u.call(null,e),l()}}else i=u;r.ce&&r.ce._setProp(n,i)}s[0]&&(a&&!o?i=!1:s[1]&&(i===""||i===Ui(n))&&(i=!0))}return i}const xk=new WeakMap;function pM(t,e,n=!1){const i=n?xk:e.propsCache,r=i.get(t);if(r)return r;const a=t.props,s={},o=[];let u=!1;if(!ht(t)){const l=d=>{u=!0;const[f,h]=pM(d,e,!0);vn(s,f),h&&o.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}if(!a&&!u)return un(t)&&i.set(t,ll),ll;if(ot(a))for(let l=0;l<a.length;l++){const d=mi(a[l]);uE(d)&&(s[d]=Gt)}else if(a)for(const l in a){const d=mi(l);if(uE(d)){const f=a[l],h=s[d]=ot(f)||ht(f)?{type:f}:vn({},f),g=h.type;let v=!1,m=!0;if(ot(g))for(let p=0;p<g.length;++p){const y=g[p],_=ht(y)&&y.name;if(_==="Boolean"){v=!0;break}else _==="String"&&(m=!1)}else v=ht(g)&&g.name==="Boolean";h[0]=v,h[1]=m,(v||Wt(h,"default"))&&o.push(d)}}const c=[s,o];return un(t)&&i.set(t,c),c}function uE(t){return t[0]!=="$"&&!dl(t)}const tb=t=>t==="_"||t==="_ctx"||t==="$stable",nb=t=>ot(t)?t.map(ji):[ji(t)],Ak=(t,e,n)=>{if(e._n)return e;const i=gi((...r)=>nb(e(...r)),n);return i._c=!1,i},mM=(t,e,n)=>{const i=t._ctx;for(const r in t){if(tb(r))continue;const a=t[r];if(ht(a))e[r]=Ak(r,a,i);else if(a!=null){const s=nb(a);e[r]=()=>s}}},gM=(t,e)=>{const n=nb(e);t.slots.default=()=>n},vM=(t,e,n)=>{for(const i in e)(n||!tb(i))&&(t[i]=e[i])},Sk=(t,e,n)=>{const i=t.slots=dM();if(t.vnode.shapeFlag&32){const r=e._;r?(vM(i,e,n),n&&gw(i,"_",r,!0)):mM(e,i)}else e&&gM(t,e)},Tk=(t,e,n)=>{const{vnode:i,slots:r}=t;let a=!0,s=Gt;if(i.shapeFlag&32){const o=e._;o?n&&o===1?a=!1:vM(r,e,n):(a=!e.$stable,mM(e,r)),s=e}else e&&(gM(t,e),s={default:1});if(a)for(const o in r)!tb(o)&&s[o]==null&&delete r[o]},On=xM;function wk(t){return _M(t)}function Mk(t){return _M(t,$5)}function _M(t,e){const n=d0();n.__VUE__=!0;const{insert:i,remove:r,patchProp:a,createElement:s,createText:o,createComment:u,setText:c,setElementText:l,parentNode:d,nextSibling:f,setScopeId:h=_a,insertStaticContent:g}=t,v=(U,K,ue,Se=null,k=null,E=null,I=void 0,j=null,Y=!!K.dynamicChildren)=>{if(U===K)return;U&&!wr(U,K)&&(Se=W(U),J(U,k,E,!0),U=null),K.patchFlag===-2&&(Y=!1,K.dynamicChildren=null);const{type:se,ref:Te,shapeFlag:X}=K;switch(se){case Bs:m(U,K,ue,Se);break;case Un:p(U,K,ue,Se);break;case ed:U==null&&y(K,ue,Se,I);break;case Zt:V(U,K,ue,Se,k,E,I,j,Y);break;default:X&1?x(U,K,ue,Se,k,E,I,j,Y):X&6?z(U,K,ue,Se,k,E,I,j,Y):(X&64||X&128)&&se.process(U,K,ue,Se,k,E,I,j,Y,De)}Te!=null&&k?pl(Te,U&&U.ref,E,K||U,!K):Te==null&&U&&U.ref!=null&&pl(U.ref,null,E,U,!0)},m=(U,K,ue,Se)=>{if(U==null)i(K.el=o(K.children),ue,Se);else{const k=K.el=U.el;K.children!==U.children&&c(k,K.children)}},p=(U,K,ue,Se)=>{U==null?i(K.el=u(K.children||""),ue,Se):K.el=U.el},y=(U,K,ue,Se)=>{[U.el,U.anchor]=g(U.children,K,ue,Se,U.el,U.anchor)},_=({el:U,anchor:K},ue,Se)=>{let k;for(;U&&U!==K;)k=f(U),i(U,ue,Se),U=k;i(K,ue,Se)},b=({el:U,anchor:K})=>{let ue;for(;U&&U!==K;)ue=f(U),r(U),U=ue;r(K)},x=(U,K,ue,Se,k,E,I,j,Y)=>{if(K.type==="svg"?I="svg":K.type==="math"&&(I="mathml"),U==null)w(K,ue,Se,k,E,I,j,Y);else{const se=U.el&&U.el._isVueCE?U.el:null;try{se&&se._beginPatch(),M(U,K,k,E,I,j,Y)}finally{se&&se._endPatch()}}},w=(U,K,ue,Se,k,E,I,j)=>{let Y,se;const{props:Te,shapeFlag:X,transition:ce,dirs:Ie}=U;if(Y=U.el=s(U.type,E,Te&&Te.is,Te),X&8?l(Y,U.children):X&16&&O(U.children,Y,null,Se,k,bg(U,E),I,j),Ie&&aa(U,null,Se,"created"),D(Y,U,U.scopeId,I,Se),Te){for(const Oe in Te)Oe!=="value"&&!dl(Oe)&&a(Y,Oe,null,Te[Oe],E,Se);"value"in Te&&a(Y,"value",null,Te.value,E),(se=Te.onVnodeBeforeMount)&&ki(se,Se,U)}Ie&&aa(U,null,Se,"beforeMount");const Me=bM(k,ce);Me&&ce.beforeEnter(Y),i(Y,K,ue),((se=Te&&Te.onVnodeMounted)||Me||Ie)&&On(()=>{se&&ki(se,Se,U),Me&&ce.enter(Y),Ie&&aa(U,null,Se,"mounted")},k)},D=(U,K,ue,Se,k)=>{if(ue&&h(U,ue),Se)for(let E=0;E<Se.length;E++)h(U,Se[E]);if(k){let E=k.subTree;if(K===E||cm(E.type)&&(E.ssContent===K||E.ssFallback===K)){const I=k.vnode;D(U,I,I.scopeId,I.slotScopeIds,k.parent)}}},O=(U,K,ue,Se,k,E,I,j,Y=0)=>{for(let se=Y;se<U.length;se++){const Te=U[se]=j?Cs(U[se]):ji(U[se]);v(null,Te,K,ue,Se,k,E,I,j)}},M=(U,K,ue,Se,k,E,I)=>{const j=K.el=U.el;let{patchFlag:Y,dynamicChildren:se,dirs:Te}=K;Y|=U.patchFlag&16;const X=U.props||Gt,ce=K.props||Gt;let Ie;if(ue&&ao(ue,!1),(Ie=ce.onVnodeBeforeUpdate)&&ki(Ie,ue,K,U),Te&&aa(K,U,ue,"beforeUpdate"),ue&&ao(ue,!0),(X.innerHTML&&ce.innerHTML==null||X.textContent&&ce.textContent==null)&&l(j,""),se?S(U.dynamicChildren,se,j,ue,Se,bg(K,k),E):I||$(U,K,j,null,ue,Se,bg(K,k),E,!1),Y>0){if(Y&16)B(j,X,ce,ue,k);else if(Y&2&&X.class!==ce.class&&a(j,"class",null,ce.class,k),Y&4&&a(j,"style",X.style,ce.style,k),Y&8){const Me=K.dynamicProps;for(let Oe=0;Oe<Me.length;Oe++){const $e=Me[Oe],Be=X[$e],Ne=ce[$e];(Ne!==Be||$e==="value")&&a(j,$e,Be,Ne,k,ue)}}Y&1&&U.children!==K.children&&l(j,K.children)}else!I&&se==null&&B(j,X,ce,ue,k);((Ie=ce.onVnodeUpdated)||Te)&&On(()=>{Ie&&ki(Ie,ue,K,U),Te&&aa(K,U,ue,"updated")},Se)},S=(U,K,ue,Se,k,E,I)=>{for(let j=0;j<K.length;j++){const Y=U[j],se=K[j],Te=Y.el&&(Y.type===Zt||!wr(Y,se)||Y.shapeFlag&198)?d(Y.el):ue;v(Y,se,Te,null,Se,k,E,I,!0)}},B=(U,K,ue,Se,k)=>{if(K!==ue){if(K!==Gt)for(const E in K)!dl(E)&&!(E in ue)&&a(U,E,K[E],null,k,Se);for(const E in ue){if(dl(E))continue;const I=ue[E],j=K[E];I!==j&&E!=="value"&&a(U,E,j,I,k,Se)}"value"in ue&&a(U,"value",K.value,ue.value,k)}},V=(U,K,ue,Se,k,E,I,j,Y)=>{const se=K.el=U?U.el:o(""),Te=K.anchor=U?U.anchor:o("");let{patchFlag:X,dynamicChildren:ce,slotScopeIds:Ie}=K;Ie&&(j=j?j.concat(Ie):Ie),U==null?(i(se,ue,Se),i(Te,ue,Se),O(K.children||[],ue,Te,k,E,I,j,Y)):X>0&&X&64&&ce&&U.dynamicChildren?(S(U.dynamicChildren,ce,ue,k,E,I,j),(K.key!=null||k&&K===k.subTree)&&ib(U,K,!0)):$(U,K,ue,Te,k,E,I,j,Y)},z=(U,K,ue,Se,k,E,I,j,Y)=>{K.slotScopeIds=j,U==null?K.shapeFlag&512?k.ctx.activate(K,ue,Se,I,Y):Q(K,ue,Se,k,E,I,Y):Z(U,K,Y)},Q=(U,K,ue,Se,k,E,I)=>{const j=U.component=Bk(U,Se,k);if(af(U)&&(j.ctx.renderer=De),Vk(j,!1,I),j.asyncDep){if(k&&k.registerDep(j,q,I),!U.el){const Y=j.subTree=Ct(Un);p(null,Y,K,ue),U.placeholder=Y.el}}else q(j,U,K,ue,k,E,I)},Z=(U,K,ue)=>{const Se=K.component=U.component;if(bk(U,K,ue))if(Se.asyncDep&&!Se.asyncResolved){te(Se,K,ue);return}else Se.next=K,Se.update();else K.el=U.el,Se.vnode=K},q=(U,K,ue,Se,k,E,I)=>{const j=()=>{if(U.isMounted){let{next:X,bu:ce,u:Ie,parent:Me,vnode:Oe}=U;{const Ze=yM(U);if(Ze){X&&(X.el=Oe.el,te(U,X,I)),Ze.asyncDep.then(()=>{U.isUnmounted||j()});return}}let $e=X,Be;ao(U,!1),X?(X.el=Oe.el,te(U,X,I)):X=Oe,ce&&fl(ce),(Be=X.props&&X.props.onVnodeBeforeUpdate)&&ki(Be,Me,X,Oe),ao(U,!0);const Ne=_g(U),lt=U.subTree;U.subTree=Ne,v(lt,Ne,d(lt.el),W(lt),U,k,E),X.el=Ne.el,$e===null&&b0(U,Ne.el),Ie&&On(Ie,k),(Be=X.props&&X.props.onVnodeUpdated)&&On(()=>ki(Be,Me,X,Oe),k)}else{let X;const{el:ce,props:Ie}=K,{bm:Me,m:Oe,parent:$e,root:Be,type:Ne}=U,lt=Fs(K);if(ao(U,!1),Me&&fl(Me),!lt&&(X=Ie&&Ie.onVnodeBeforeMount)&&ki(X,$e,K),ao(U,!0),ce&&Fe){const Ze=()=>{U.subTree=_g(U),Fe(ce,U.subTree,U,k,null)};lt&&Ne.__asyncHydrate?Ne.__asyncHydrate(ce,U,Ze):Ze()}else{Be.ce&&Be.ce._def.shadowRoot!==!1&&Be.ce._injectChildStyle(Ne);const Ze=U.subTree=_g(U);v(null,Ze,ue,Se,U,k,E),K.el=Ze.el}if(Oe&&On(Oe,k),!lt&&(X=Ie&&Ie.onVnodeMounted)){const Ze=K;On(()=>ki(X,$e,Ze),k)}(K.shapeFlag&256||$e&&Fs($e.vnode)&&$e.vnode.shapeFlag&256)&&U.a&&On(U.a,k),U.isMounted=!0,K=ue=Se=null}};U.scope.on();const Y=U.effect=new Ew(j);U.scope.off();const se=U.update=Y.run.bind(Y),Te=U.job=Y.runIfDirty.bind(Y);Te.i=U,Te.id=U.uid,Y.scheduler=()=>G2(Te),ao(U,!0),se()},te=(U,K,ue)=>{K.component=U;const Se=U.vnode.props;U.vnode=K,U.next=null,Ek(U,K.props,Se,ue),Tk(U,K.children,ue),ts(),Xy(U),ns()},$=(U,K,ue,Se,k,E,I,j,Y=!1)=>{const se=U&&U.children,Te=U?U.shapeFlag:0,X=K.children,{patchFlag:ce,shapeFlag:Ie}=K;if(ce>0){if(ce&128){le(se,X,ue,Se,k,E,I,j,Y);return}else if(ce&256){ee(se,X,ue,Se,k,E,I,j,Y);return}}Ie&8?(Te&16&&_e(se,k,E),X!==se&&l(ue,X)):Te&16?Ie&16?le(se,X,ue,Se,k,E,I,j,Y):_e(se,k,E,!0):(Te&8&&l(ue,""),Ie&16&&O(X,ue,Se,k,E,I,j,Y))},ee=(U,K,ue,Se,k,E,I,j,Y)=>{U=U||ll,K=K||ll;const se=U.length,Te=K.length,X=Math.min(se,Te);let ce;for(ce=0;ce<X;ce++){const Ie=K[ce]=Y?Cs(K[ce]):ji(K[ce]);v(U[ce],Ie,ue,null,k,E,I,j,Y)}se>Te?_e(U,k,E,!0,!1,X):O(K,ue,Se,k,E,I,j,Y,X)},le=(U,K,ue,Se,k,E,I,j,Y)=>{let se=0;const Te=K.length;let X=U.length-1,ce=Te-1;for(;se<=X&&se<=ce;){const Ie=U[se],Me=K[se]=Y?Cs(K[se]):ji(K[se]);if(wr(Ie,Me))v(Ie,Me,ue,null,k,E,I,j,Y);else break;se++}for(;se<=X&&se<=ce;){const Ie=U[X],Me=K[ce]=Y?Cs(K[ce]):ji(K[ce]);if(wr(Ie,Me))v(Ie,Me,ue,null,k,E,I,j,Y);else break;X--,ce--}if(se>X){if(se<=ce){const Ie=ce+1,Me=Ie<Te?K[Ie].el:Se;for(;se<=ce;)v(null,K[se]=Y?Cs(K[se]):ji(K[se]),ue,Me,k,E,I,j,Y),se++}}else if(se>ce)for(;se<=X;)J(U[se],k,E,!0),se++;else{const Ie=se,Me=se,Oe=new Map;for(se=Me;se<=ce;se++){const pt=K[se]=Y?Cs(K[se]):ji(K[se]);pt.key!=null&&Oe.set(pt.key,se)}let $e,Be=0;const Ne=ce-Me+1;let lt=!1,Ze=0;const ct=new Array(Ne);for(se=0;se<Ne;se++)ct[se]=0;for(se=Ie;se<=X;se++){const pt=U[se];if(Be>=Ne){J(pt,k,E,!0);continue}let Je;if(pt.key!=null)Je=Oe.get(pt.key);else for($e=Me;$e<=ce;$e++)if(ct[$e-Me]===0&&wr(pt,K[$e])){Je=$e;break}Je===void 0?J(pt,k,E,!0):(ct[Je-Me]=se+1,Je>=Ze?Ze=Je:lt=!0,v(pt,K[Je],ue,null,k,E,I,j,Y),Be++)}const ft=lt?Ck(ct):ll;for($e=ft.length-1,se=Ne-1;se>=0;se--){const pt=Me+se,Je=K[pt],L=K[pt+1],Ae=pt+1<Te?L.el||L.placeholder:Se;ct[se]===0?v(null,Je,ue,Ae,k,E,I,j,Y):lt&&($e<0||se!==ft[$e]?xe(Je,ue,Ae,2):$e--)}}},xe=(U,K,ue,Se,k=null)=>{const{el:E,type:I,transition:j,children:Y,shapeFlag:se}=U;if(se&6){xe(U.component.subTree,K,ue,Se);return}if(se&128){U.suspense.move(K,ue,Se);return}if(se&64){I.move(U,K,ue,De);return}if(I===Zt){i(E,K,ue);for(let X=0;X<Y.length;X++)xe(Y[X],K,ue,Se);i(U.anchor,K,ue);return}if(I===ed){_(U,K,ue);return}if(Se!==2&&se&1&&j)if(Se===0)j.beforeEnter(E),i(E,K,ue),On(()=>j.enter(E),k);else{const{leave:X,delayLeave:ce,afterLeave:Ie}=j,Me=()=>{U.ctx.isUnmounted?r(E):i(E,K,ue)},Oe=()=>{E._isLeaving&&E[za](!0),X(E,()=>{Me(),Ie&&Ie()})};ce?ce(E,Me,Oe):Oe()}else i(E,K,ue)},J=(U,K,ue,Se=!1,k=!1)=>{const{type:E,props:I,ref:j,children:Y,dynamicChildren:se,shapeFlag:Te,patchFlag:X,dirs:ce,cacheIndex:Ie}=U;if(X===-2&&(k=!1),j!=null&&(ts(),pl(j,null,ue,U,!0),ns()),Ie!=null&&(K.renderCache[Ie]=void 0),Te&256){K.ctx.deactivate(U);return}const Me=Te&1&&ce,Oe=!Fs(U);let $e;if(Oe&&($e=I&&I.onVnodeBeforeUnmount)&&ki($e,K,U),Te&6)ie(U.component,ue,Se);else{if(Te&128){U.suspense.unmount(ue,Se);return}Me&&aa(U,null,K,"beforeUnmount"),Te&64?U.type.remove(U,K,ue,De,Se):se&&!se.hasOnce&&(E!==Zt||X>0&&X&64)?_e(se,K,ue,!1,!0):(E===Zt&&X&384||!k&&Te&16)&&_e(Y,K,ue),Se&&ye(U)}(Oe&&($e=I&&I.onVnodeUnmounted)||Me)&&On(()=>{$e&&ki($e,K,U),Me&&aa(U,null,K,"unmounted")},ue)},ye=U=>{const{type:K,el:ue,anchor:Se,transition:k}=U;if(K===Zt){H(ue,Se);return}if(K===ed){b(U);return}const E=()=>{r(ue),k&&!k.persisted&&k.afterLeave&&k.afterLeave()};if(U.shapeFlag&1&&k&&!k.persisted){const{leave:I,delayLeave:j}=k,Y=()=>I(ue,E);j?j(U.el,E,Y):Y()}else E()},H=(U,K)=>{let ue;for(;U!==K;)ue=f(U),r(U),U=ue;r(K)},ie=(U,K,ue)=>{const{bum:Se,scope:k,job:E,subTree:I,um:j,m:Y,a:se}=U;lm(Y),lm(se),Se&&fl(Se),k.stop(),E&&(E.flags|=8,J(I,U,K,ue)),j&&On(j,K),On(()=>{U.isUnmounted=!0},K)},_e=(U,K,ue,Se=!1,k=!1,E=0)=>{for(let I=E;I<U.length;I++)J(U[I],K,ue,Se,k)},W=U=>{if(U.shapeFlag&6)return W(U.component.subTree);if(U.shapeFlag&128)return U.suspense.next();const K=f(U.anchor||U.el),ue=K&&K[$w];return ue?f(ue):K};let be=!1;const ge=(U,K,ue)=>{U==null?K._vnode&&J(K._vnode,null,null,!0):v(K._vnode||null,U,K,null,null,null,ue),K._vnode=U,be||(be=!0,Xy(),im(),be=!1)},De={p:v,um:J,m:xe,r:ye,mt:Q,mc:O,pc:$,pbc:S,n:W,o:t};let ae,Fe;return e&&([ae,Fe]=e(De)),{render:ge,hydrate:ae,createApp:lk(ge,ae)}}function bg({type:t,props:e},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:n}function ao({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function bM(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ib(t,e,n=!1){const i=t.children,r=e.children;if(ot(i)&&ot(r))for(let a=0;a<i.length;a++){const s=i[a];let o=r[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[a]=Cs(r[a]),o.el=s.el),!n&&o.patchFlag!==-2&&ib(s,o)),o.type===Bs&&o.patchFlag!==-1&&(o.el=s.el),o.type===Un&&!o.el&&(o.el=s.el)}}function Ck(t){const e=t.slice(),n=[0];let i,r,a,s,o;const u=t.length;for(i=0;i<u;i++){const c=t[i];if(c!==0){if(r=n[n.length-1],t[r]<c){e[i]=r,n.push(i);continue}for(a=0,s=n.length-1;a<s;)o=a+s>>1,t[n[o]]<c?a=o+1:s=o;c<t[n[a]]&&(a>0&&(e[i]=n[a-1]),n[a]=i)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=e[s];return n}function yM(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:yM(e)}function lm(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const cm=t=>t.__isSuspense;let c_=0;const Dk={name:"Suspense",__isSuspense:!0,process(t,e,n,i,r,a,s,o,u,c){if(t==null)Lk(e,n,i,r,a,s,o,u,c);else{if(a&&a.deps>0&&!t.suspense.isInFallback){e.suspense=t.suspense,e.suspense.vnode=e,e.el=t.el;return}Rk(t,e,n,i,r,s,o,u,c)}},hydrate:Ik,normalize:Pk},rb=Dk;function xd(t,e){const n=t.props&&t.props[e];ht(n)&&n()}function Lk(t,e,n,i,r,a,s,o,u){const{p:c,o:{createElement:l}}=u,d=l("div"),f=t.suspense=EM(t,r,i,e,d,n,a,s,o,u);c(null,f.pendingBranch=t.ssContent,d,null,i,f,a,s),f.deps>0?(xd(t,"onPending"),xd(t,"onFallback"),c(null,t.ssFallback,e,n,i,null,a,s),ml(f,t.ssFallback)):f.resolve(!1,!0)}function Rk(t,e,n,i,r,a,s,o,{p:u,um:c,o:{createElement:l}}){const d=e.suspense=t.suspense;d.vnode=e,e.el=t.el;const f=e.ssContent,h=e.ssFallback,{activeBranch:g,pendingBranch:v,isInFallback:m,isHydrating:p}=d;if(v)d.pendingBranch=f,wr(v,f)?(u(v,f,d.hiddenContainer,null,r,d,a,s,o),d.deps<=0?d.resolve():m&&(p||(u(g,h,n,i,r,null,a,s,o),ml(d,h)))):(d.pendingId=c_++,p?(d.isHydrating=!1,d.activeBranch=v):c(v,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=l("div"),m?(u(null,f,d.hiddenContainer,null,r,d,a,s,o),d.deps<=0?d.resolve():(u(g,h,n,i,r,null,a,s,o),ml(d,h))):g&&wr(g,f)?(u(g,f,n,i,r,d,a,s,o),d.resolve(!0)):(u(null,f,d.hiddenContainer,null,r,d,a,s,o),d.deps<=0&&d.resolve()));else if(g&&wr(g,f))u(g,f,n,i,r,d,a,s,o),ml(d,f);else if(xd(e,"onPending"),d.pendingBranch=f,f.shapeFlag&512?d.pendingId=f.component.suspenseId:d.pendingId=c_++,u(null,f,d.hiddenContainer,null,r,d,a,s,o),d.deps<=0)d.resolve();else{const{timeout:y,pendingId:_}=d;y>0?setTimeout(()=>{d.pendingId===_&&d.fallback(h)},y):y===0&&d.fallback(h)}}function EM(t,e,n,i,r,a,s,o,u,c,l=!1){const{p:d,m:f,um:h,n:g,o:{parentNode:v,remove:m}}=c;let p;const y=kk(t);y&&e&&e.pendingBranch&&(p=e.pendingId,e.deps++);const _=t.props?Jp(t.props.timeout):void 0,b=a,x={vnode:t,parent:e,parentComponent:n,namespace:s,container:i,hiddenContainer:r,deps:0,pendingId:c_++,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(w=!1,D=!1){const{vnode:O,activeBranch:M,pendingBranch:S,pendingId:B,effects:V,parentComponent:z,container:Q,isInFallback:Z}=x;let q=!1;x.isHydrating?x.isHydrating=!1:w||(q=M&&S.transition&&S.transition.mode==="out-in",q&&(M.transition.afterLeave=()=>{B===x.pendingId&&(f(S,Q,a===b?g(M):a,0),nm(V),Z&&O.ssFallback&&(O.ssFallback.el=null))}),M&&(v(M.el)===Q&&(a=g(M)),h(M,z,x,!0),!q&&Z&&O.ssFallback&&On(()=>O.ssFallback.el=null,x)),q||f(S,Q,a,0)),ml(x,S),x.pendingBranch=null,x.isInFallback=!1;let te=x.parent,$=!1;for(;te;){if(te.pendingBranch){te.effects.push(...V),$=!0;break}te=te.parent}!$&&!q&&nm(V),x.effects=[],y&&e&&e.pendingBranch&&p===e.pendingId&&(e.deps--,e.deps===0&&!D&&e.resolve()),xd(O,"onResolve")},fallback(w){if(!x.pendingBranch)return;const{vnode:D,activeBranch:O,parentComponent:M,container:S,namespace:B}=x;xd(D,"onFallback");const V=g(O),z=()=>{x.isInFallback&&(d(null,w,S,V,M,null,B,o,u),ml(x,w))},Q=w.transition&&w.transition.mode==="out-in";Q&&(O.transition.afterLeave=z),x.isInFallback=!0,h(O,M,null,!0),Q||z()},move(w,D,O){x.activeBranch&&f(x.activeBranch,w,D,O),x.container=w},next(){return x.activeBranch&&g(x.activeBranch)},registerDep(w,D,O){const M=!!x.pendingBranch;M&&x.deps++;const S=w.vnode.el;w.asyncDep.catch(B=>{Jl(B,w,0)}).then(B=>{if(w.isUnmounted||x.isUnmounted||x.pendingId!==w.suspenseId)return;w.asyncResolved=!0;const{vnode:V}=w;h_(w,B),S&&(V.el=S);const z=!S&&w.subTree.el;D(w,V,v(S||w.subTree.el),S?null:g(w.subTree),x,s,O),z&&(V.placeholder=null,m(z)),b0(w,V.el),M&&--x.deps===0&&x.resolve()})},unmount(w,D){x.isUnmounted=!0,x.activeBranch&&h(x.activeBranch,n,w,D),x.pendingBranch&&h(x.pendingBranch,n,w,D)}};return x}function Ik(t,e,n,i,r,a,s,o,u){const c=e.suspense=EM(e,i,n,t.parentNode,document.createElement("div"),null,r,a,s,o,!0),l=u(t,c.pendingBranch=e.ssContent,n,c,a,s);return c.deps===0&&c.resolve(!1,!0),l}function Pk(t){const{shapeFlag:e,children:n}=t,i=e&32;t.ssContent=lE(i?n.default:n),t.ssFallback=i?lE(n.fallback):Ct(Un)}function lE(t){let e;if(ht(t)){const n=Ml&&t._c;n&&(t._d=!1,tt()),t=t(),n&&(t._d=!0,e=Fi,AM())}return ot(t)&&(t=gk(t)),t=ji(t),e&&!t.dynamicChildren&&(t.dynamicChildren=e.filter(n=>n!==t)),t}function xM(t,e){e&&e.pendingBranch?ot(t)?e.effects.push(...t):e.effects.push(t):nm(t)}function ml(t,e){t.activeBranch=e;const{vnode:n,parentComponent:i}=t;let r=e.el;for(;!r&&e.component;)e=e.component.subTree,r=e.el;n.el=r,i&&i.subTree===n&&(i.vnode.el=r,b0(i,r))}function kk(t){const e=t.props&&t.props.suspensible;return e!=null&&e!==!1}const Zt=Symbol.for("v-fgt"),Bs=Symbol.for("v-txt"),Un=Symbol.for("v-cmt"),ed=Symbol.for("v-stc"),td=[];let Fi=null;function tt(t=!1){td.push(Fi=t?null:[])}function AM(){td.pop(),Fi=td[td.length-1]||null}let Ml=1;function dm(t,e=!1){Ml+=t,t<0&&Fi&&e&&(Fi.hasOnce=!0)}function SM(t){return t.dynamicChildren=Ml>0?Fi||ll:null,AM(),Ml>0&&Fi&&Fi.push(t),t}function _t(t,e,n,i,r,a){return SM(It(t,e,n,i,r,a,!0))}function cn(t,e,n,i,r){return SM(Ct(t,e,n,i,r,!0))}function Qo(t){return t?t.__v_isVNode===!0:!1}function wr(t,e){return t.type===e.type&&t.key===e.key}const TM=({key:t})=>t??null,np=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?pn(t)||Dt(t)||ht(t)?{i:ri,r:t,k:e,f:!!n}:t:null);function It(t,e=null,n=null,i=0,r=null,a=t===Zt?0:1,s=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&TM(e),ref:e&&np(e),scopeId:Hw,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ri};return o?(ab(u,n),a&128&&t.normalize(u)):n&&(u.shapeFlag|=pn(n)?8:16),Ml>0&&!s&&Fi&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&Fi.push(u),u}const Ct=Ok;function Ok(t,e=null,n=null,i=0,r=null,a=!1){if((!t||t===tM)&&(t=Un),Qo(t)){const o=Ki(t,e,!0);return n&&ab(o,n),Ml>0&&!a&&Fi&&(o.shapeFlag&6?Fi[Fi.indexOf(t)]=o:Fi.push(o)),o.patchFlag=-2,o}if($k(t)&&(t=t.__vccOpts),e){e=wM(e);let{class:o,style:u}=e;o&&!pn(o)&&(e.class=Gs(o)),un(u)&&(p0(u)&&!ot(u)&&(u=vn({},u)),e.style=ou(u))}const s=pn(t)?1:cm(t)?128:Ww(t)?64:un(t)?4:ht(t)?2:0;return It(t,e,n,i,r,s,a,!0)}function wM(t){return t?p0(t)||fM(t)?vn({},t):t:null}function Ki(t,e,n=!1,i=!1){const{props:r,ref:a,patchFlag:s,children:o,transition:u}=t,c=e?Cr(r||{},e):r,l={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&TM(c),ref:e&&e.ref?n&&a?ot(a)?a.concat(np(e)):[a,np(e)]:np(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Zt?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ki(t.ssContent),ssFallback:t.ssFallback&&Ki(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&i&&js(l,u.clone(l)),l}function y0(t=" ",e=0){return Ct(Bs,null,t,e)}function Nk(t,e){const n=Ct(ed,null,t);return n.staticCount=e,n}function Zi(t="",e=!1){return e?(tt(),cn(Un,null,t)):Ct(Un,null,t)}function ji(t){return t==null||typeof t=="boolean"?Ct(Un):ot(t)?Ct(Zt,null,t.slice()):Qo(t)?Cs(t):Ct(Bs,null,String(t))}function Cs(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ki(t)}function ab(t,e){let n=0;const{shapeFlag:i}=t;if(e==null)e=null;else if(ot(e))n=16;else if(typeof e=="object")if(i&65){const r=e.default;r&&(r._c&&(r._d=!1),ab(t,r()),r._c&&(r._d=!0));return}else{n=32;const r=e._;!r&&!fM(e)?e._ctx=ri:r===3&&ri&&(ri.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else ht(e)?(e={default:e,_ctx:ri},n=32):(e=String(e),i&64?(n=16,e=[y0(e)]):n=8);t.children=e,t.shapeFlag|=n}function Cr(...t){const e={};for(let n=0;n<t.length;n++){const i=t[n];for(const r in i)if(r==="class")e.class!==i.class&&(e.class=Gs([e.class,i.class]));else if(r==="style")e.style=ou([e.style,i.style]);else if(Qd(r)){const a=e[r],s=i[r];s&&a!==s&&!(ot(a)&&a.includes(s))&&(e[r]=a?[].concat(a,s):s)}else r!==""&&(e[r]=i[r])}return e}function ki(t,e,n,i=null){Ur(t,e,7,[n,i])}const Uk=sM();let Fk=0;function Bk(t,e,n){const i=t.type,r=(e?e.appContext:t.appContext)||Uk,a={uid:Fk++,vnode:t,type:i,parent:e,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new yw(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(r.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:pM(i,r),emitsOptions:lM(i,r),emit:null,emitted:null,propsDefaults:Gt,inheritAttrs:i.inheritAttrs,ctx:Gt,data:Gt,props:Gt,attrs:Gt,slots:Gt,refs:Gt,setupState:Gt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,
vendor: 2,966 bytes, line 4
4sp:null};return a.ctx={_:a},a.root=e?e.root:a,a.emit=pk.bind(null,a),t.ce&&t.ce(a),a}let ii=null;const Mn=()=>ii||ri;let fm,d_;{const t=d0(),e=(n,i)=>{let r;return(r=t[n])||(r=t[n]=[]),r.push(i),a=>{r.length>1?r.forEach(s=>s(a)):r[0](a)}};fm=e("__VUE_INSTANCE_SETTERS__",n=>ii=n),d_=e("__VUE_SSR_SETTERS__",n=>Cl=n)}const eu=t=>{const e=ii;return fm(t),t.scope.on(),()=>{t.scope.off(),fm(e)}},f_=()=>{ii&&ii.scope.off(),fm(null)};function MM(t){return t.vnode.shapeFlag&4}let Cl=!1;function Vk(t,e=!1,n=!1){e&&d_(e);const{props:i,children:r}=t.vnode,a=MM(t);yk(t,i,a,e),Sk(t,r,n||e);const s=a?Hk(t,e):void 0;return e&&d_(!1),s}function Hk(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,ek);const{setup:i}=n;if(i){ts();const r=t.setupContext=i.length>1?DM(t):null,a=eu(t),s=rf(i,t,0,[t.props,r]),o=s0(s);if(ns(),a(),(o||t.sp)&&!Fs(t)&&j2(t),o){if(s.then(f_,f_),e)return s.then(u=>{h_(t,u)}).catch(u=>{Jl(u,t,0)});t.asyncDep=s}else h_(t,s)}else CM(t)}function h_(t,e,n){ht(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:un(e)&&(t.setupState=Nw(e)),CM(t)}function CM(t,e,n){const i=t.type;t.render||(t.render=i.render||_a);{const r=eu(t);ts();try{ik(t)}finally{ns(),r()}}}const zk={get(t,e){return pi(t,"get",""),t[e]}};function DM(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,zk),slots:t.slots,emit:t.emit,expose:e}}function E0(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Nw(nf(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Qc)return Qc[n](t)},has(e,n){return n in e||n in Qc}})):t.proxy}function p_(t,e=!0){return ht(t)?t.displayName||t.name:t.name||e&&t.__name}function $k(t){return ht(t)&&"__vccOpts"in t}const Ve=(t,e)=>I5(t,e,Cl);function Vt(t,e,n){try{dm(-1);const i=arguments.length;return i===2?un(e)&&!ot(e)?Qo(e)?Ct(t,null,[e]):Ct(t,e):Ct(t,null,e):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&Qo(n)&&(n=[n]),Ct(t,e,n))}finally{dm(1)}}const Wk="3.5.25";let m_;const cE=typeof window<"u"&&window.trustedTypes;if(cE)try{m_=cE.createPolicy("vue",{createHTML:t=>t})}catch{}const LM=m_?t=>m_.createHTML(t):t=>t,Gk="http://www.w3.org/2000/svg",qk="http://www.w3.org/1998/Math/MathML",Va=typeof document<"u"?document:null,dE=Va&&Va.createElement("template"),jk={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,i)=>{const r=e==="svg"?Va.createElementNS(Gk,t):e==="mathml"?Va.createElementNS(qk,t):n?Va.createElement(t,{is:n}):Va.createElement(t);return t==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:t=>Va.createTextNode(t),createComment:t=>Va.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>Va.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,i,r,a){const s=n?n.previousSibling:e.lastChild;if(r&&(r===a||r.nextSibling))for(;
vendor: 16,666 bytes, line 4
4e.insertBefore(r.cloneNode(!0),n),!(r===a||!(r=r.nextSibling)););else{dE.innerHTML=LM(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const o=dE.content;if(i==="svg"||i==="mathml"){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}e.insertBefore(o,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},fs="transition",ac="animation",Dl=Symbol("_vtc"),RM={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},IM=vn({},Xw,RM),Xk=t=>(t.displayName="Transition",t.props=IM,t),Yk=Xk((t,{slots:e})=>Vt(B5,PM(t),e)),so=(t,e=[])=>{ot(t)?t.forEach(n=>n(...e)):t&&t(...e)},fE=t=>t?ot(t)?t.some(e=>e.length>1):t.length>1:!1;function PM(t){const e={};for(const V in t)V in RM||(e[V]=t[V]);if(t.css===!1)return e;const{name:n="v",type:i,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:u=a,appearActiveClass:c=s,appearToClass:l=o,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,g=Kk(r),v=g&&g[0],m=g&&g[1],{onBeforeEnter:p,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:x,onBeforeAppear:w=p,onAppear:D=y,onAppearCancelled:O=_}=e,M=(V,z,Q,Z)=>{V._enterCancelled=Z,xs(V,z?l:o),xs(V,z?c:s),Q&&Q()},S=(V,z)=>{V._isLeaving=!1,xs(V,d),xs(V,h),xs(V,f),z&&z()},B=V=>(z,Q)=>{const Z=V?D:y,q=()=>M(z,V,Q);so(Z,[z,q]),hE(()=>{xs(z,V?u:a),jr(z,V?l:o),fE(Z)||pE(z,i,v,q)})};return vn(e,{onBeforeEnter(V){so(p,[V]),jr(V,a),jr(V,s)},onBeforeAppear(V){so(w,[V]),jr(V,u),jr(V,c)},onEnter:B(!1),onAppear:B(!0),onLeave(V,z){V._isLeaving=!0;const Q=()=>S(V,z);jr(V,d),V._enterCancelled?(jr(V,f),g_(V)):(g_(V),jr(V,f)),hE(()=>{V._isLeaving&&(xs(V,d),jr(V,h),fE(b)||pE(V,i,m,Q))}),so(b,[V,Q])},onEnterCancelled(V){M(V,!1,void 0,!0),so(_,[V])},onAppearCancelled(V){M(V,!0,void 0,!0),so(O,[V])},onLeaveCancelled(V){S(V),so(x,[V])}})}function Kk(t){if(t==null)return null;if(un(t))return[yg(t.enter),yg(t.leave)];{const e=yg(t);return[e,e]}}function yg(t){return Jp(t)}function jr(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[Dl]||(t[Dl]=new Set)).add(e)}function xs(t,e){e.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[Dl];n&&(n.delete(e),n.size||(t[Dl]=void 0))}function hE(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Zk=0;function pE(t,e,n,i){const r=t._endId=++Zk,a=()=>{r===t._endId&&i()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:o,propCount:u}=kM(t,e);if(!s)return i();const c=s+"end";let l=0;const d=()=>{t.removeEventListener(c,f),a()},f=h=>{h.target===t&&++l>=u&&d()};setTimeout(()=>{l<u&&d()},o+1),t.addEventListener(c,f)}function kM(t,e){const n=window.getComputedStyle(t),i=g=>(n[g]||"").split(", "),r=i(`${fs}Delay`),a=i(`${fs}Duration`),s=mE(r,a),o=i(`${ac}Delay`),u=i(`${ac}Duration`),c=mE(o,u);let l=null,d=0,f=0;e===fs?s>0&&(l=fs,d=s,f=a.length):e===ac?c>0&&(l=ac,d=c,f=u.length):(d=Math.max(s,c),l=d>0?s>c?fs:ac:null,f=l?l===fs?a.length:u.length:0);const h=l===fs&&/\b(?:transform|all)(?:,|$)/.test(i(`${fs}Property`).toString());return{type:l,timeout:d,propCount:f,hasTransform:h}}function mE(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,i)=>gE(n)+gE(t[i])))}function gE(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function g_(t){return(t?t.ownerDocument:document).body.offsetHeight}function Jk(t,e,n){const i=t[Dl];i&&(e=(e?[e,...i]:[...i]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const hm=Symbol("_vod"),OM=Symbol("_vsh"),Qk={name:"show",beforeMount(t,{value:e},{transition:n}){t[hm]=t.style.display==="none"?"":t.style.display,n&&e?n.beforeEnter(t):sc(t,e)},mounted(t,{value:e},{transition:n}){n&&e&&n.enter(t)},updated(t,{value:e,oldValue:n},{transition:i}){!e!=!n&&(i?e?(i.beforeEnter(t),sc(t,!0),i.enter(t)):i.leave(t,()=>{sc(t,!1)}):sc(t,e))},beforeUnmount(t,{value:e}){sc(t,e)}};function sc(t,e){t.style.display=e?t[hm]:"none",t[OM]=!e}const e6=Symbol(""),t6=/(?:^|;)\s*display\s*:/;function n6(t,e,n){const i=t.style,r=pn(n);let a=!1;if(n&&!r){if(e)if(pn(e))for(const s of e.split(";")){const o=s.slice(0,s.indexOf(":")).trim();n[o]==null&&ip(i,o,"")}else for(const s in e)n[s]==null&&ip(i,s,"");for(const s in n)s==="display"&&(a=!0),ip(i,s,n[s])}else if(r){if(e!==n){const s=i[e6];s&&(n+=";"+s),i.cssText=n,a=t6.test(n)}}else e&&t.removeAttribute("style");hm in t&&(t[hm]=a?i.display:"",t[OM]&&(i.display="none"))}const vE=/\s*!important$/;function ip(t,e,n){if(ot(n))n.forEach(i=>ip(t,e,i));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const i=i6(t,e);vE.test(n)?t.setProperty(Ui(i),n.replace(vE,""),"important"):t[i]=n}}const _E=["Webkit","Moz","ms"],Eg={};function i6(t,e){const n=Eg[e];if(n)return n;let i=mi(e);if(i!=="filter"&&i in t)return Eg[e]=i;i=c0(i);for(let r=0;r<_E.length;r++){const a=_E[r]+i;if(a in t)return Eg[e]=a}return e}const bE="http://www.w3.org/1999/xlink";function yE(t,e,n,i,r,a=s5(e)){i&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(bE,e.slice(6,e.length)):t.setAttributeNS(bE,e,n):n==null||a&&!vw(n)?t.removeAttribute(e):t.setAttribute(e,a?"":as(n)?String(n):n)}function EE(t,e,n,i,r){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?LM(n):n);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(o!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const o=typeof t[e];o==="boolean"?n=vw(n):n==null&&o==="string"?(n="",s=!0):o==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(r||e)}function Vu(t,e,n,i){t.addEventListener(e,n,i)}function r6(t,e,n,i){t.removeEventListener(e,n,i)}const xE=Symbol("_vei");function a6(t,e,n,i,r=null){const a=t[xE]||(t[xE]={}),s=a[e];if(i&&s)s.value=i;else{const[o,u]=s6(e);if(i){const c=a[e]=l6(i,r);Vu(t,o,c,u)}else s&&(r6(t,o,s,u),a[e]=void 0)}}const AE=/(?:Once|Passive|Capture)$/;function s6(t){let e;if(AE.test(t)){e={};let i;for(;i=t.match(AE);)t=t.slice(0,t.length-i[0].length),e[i[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Ui(t.slice(2)),e]}let xg=0;const o6=Promise.resolve(),u6=()=>xg||(o6.then(()=>xg=0),xg=Date.now());function l6(t,e){const n=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;Ur(c6(i,n.value),e,5,[i])};return n.value=t,n.attached=u6(),n}function c6(t,e){if(ot(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(i=>r=>!r._stopped&&i&&i(r))}else return e}const SE=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,d6=(t,e,n,i,r,a)=>{const s=r==="svg";e==="class"?Jk(t,i,s):e==="style"?n6(t,n,i):Qd(e)?O2(e)||a6(t,e,n,i,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):f6(t,e,i,s))?(EE(t,e,i),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&yE(t,e,i,s,a,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!pn(i))?EE(t,mi(e),i,a,e):(e==="true-value"?t._trueValue=i:e==="false-value"&&(t._falseValue=i),yE(t,e,i,s))};function f6(t,e,n,i){if(i)return!!(e==="innerHTML"||e==="textContent"||e in t&&SE(e)&&ht(n));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const r=t.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return SE(e)&&pn(n)?!1:e in t}const TE={};function h6(t,e,n){let i=qn(t,e);o0(i)&&(i=vn({},i,e));class r extends sb{constructor(s){super(i,s,n)}}return r.def=i,r}const p6=typeof HTMLElement<"u"?HTMLElement:class{};class sb extends p6{constructor(e,n={},i=v_){super(),this._def=e,this._props=n,this._createApp=i,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&i!==v_?this._root=this.shadowRoot:e.shadowRoot!==!1?(this.attachShadow(vn({},e.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let e=this;for(;e=e&&(e.parentNode||e.host);)if(e instanceof sb){this._parent=e;break}this._instance||(this._resolved?this._mount(this._def):e&&e._pendingResolve?this._pendingResolve=e._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,Di(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(e){for(const n of e)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let i=0;i<this.attributes.length;i++)this._setAttr(this.attributes[i].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});const e=(i,r=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=i;let o;if(a&&!ot(a))for(const u in a){const c=a[u];(c===Number||c&&c.type===Number)&&(u in this._props&&(this._props[u]=Jp(this._props[u])),(o||(o=Object.create(null)))[mi(u)]=!0)}this._numberProps=o,this._resolveProps(i),this.shadowRoot&&this._applyStyles(s),this._mount(i)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(i=>{i.configureApp=this._def.configureApp,e(this._def=i,!0)}):e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const i in n)Wt(this,i)||Object.defineProperty(this,i,{get:()=>ze(n[i])})}_resolveProps(e){const{props:n}=e,i=ot(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&i.includes(r)&&this._setProp(r,this[r]);for(const r of i.map(mi))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(a){this._setProp(r,a,!0,!this._patching)}})}_setAttr(e){if(e.startsWith("data-v-"))return;const n=this.hasAttribute(e);let i=n?this.getAttribute(e):TE;const r=mi(e);n&&this._numberProps&&this._numberProps[r]&&(i=Jp(i)),this._setProp(r,i,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,n,i=!0,r=!1){if(n!==this._props[e]&&(this._dirty=!0,n===TE?delete this._props[e]:(this._props[e]=n,e==="key"&&this._app&&(this._app._ceVNode.key=n)),r&&this._instance&&this._update(),i)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(Ui(e),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Ui(e),n+""):n||this.removeAttribute(Ui(e)),a&&a.observe(this,{attributes:!0})}}_update(){const e=this._createVNode();this._app&&(e.appContext=this._app._context),M6(e,this._root)}_createVNode(){const e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));const n=Ct(this._def,vn(e,this._props));return this._instance||(n.ce=i=>{this._instance=i,i.ce=this,i.isCE=!0;const r=(a,s)=>{this.dispatchEvent(new CustomEvent(a,o0(s[0])?vn({detail:s},s[0]):{detail:s}))};i.emit=(a,...s)=>{r(a,s),Ui(a)!==a&&r(Ui(a),s)},this._setParent()}),n}_applyStyles(e,n){if(!e)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const i=this._nonce;for(let r=e.length-1;r>=0;r--){const a=document.createElement("style");i&&a.setAttribute("nonce",i),a.textContent=e[r],this.shadowRoot.prepend(a)}}_parseSlots(){const e=this._slots={};let n;for(;n=this.firstChild;){const i=n.nodeType===1&&n.getAttribute("slot")||"default";(e[i]||(e[i]=[])).push(n),this.removeChild(n)}}_renderSlots(){const e=this._getSlots(),n=this._instance.type.__scopeId;for(let i=0;i<e.length;i++){const r=e[i],a=r.getAttribute("name")||"default",s=this._slots[a],o=r.parentNode;if(s)for(const u of s){if(n&&u.nodeType===1){const c=n+"-s",l=document.createTreeWalker(u,1);u.setAttribute(c,"");let d;for(;d=l.nextNode();)d.setAttribute(c,"")}o.insertBefore(u,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){const e=[this];this._teleportTargets&&e.push(...this._teleportTargets);const n=new Set;for(const i of e){const r=i.querySelectorAll("slot");for(let a=0;a<r.length;a++)n.add(r[a])}return Array.from(n)}_injectChildStyle(e){this._applyStyles(e.styles,e)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_removeChildStyle(e){}}const NM=new WeakMap,UM=new WeakMap,pm=Symbol("_moveCb"),wE=Symbol("_enterCb"),m6=t=>(delete t.props.mode,t),g6=m6({name:"TransitionGroup",props:vn({},IM,{tag:String,moveClass:String}),setup(t,{slots:e}){const n=Mn(),i=jw();let r,a;return K2(()=>{if(!r.length)return;const s=t.moveClass||`${t.name||"v"}-move`;if(!y6(r[0].el,n.vnode.el,s)){r=[];return}r.forEach(v6),r.forEach(_6);const o=r.filter(b6);g_(n.vnode.el),o.forEach(u=>{const c=u.el,l=c.style;jr(c,s),l.transform=l.webkitTransform=l.transitionDuration="";const d=c[pm]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[pm]=null,xs(c,s))};c.addEventListener("transitionend",d)}),r=[]}),()=>{const s=Tt(t),o=PM(s);let u=s.tag||Zt;if(r=[],a)for(let c=0;c<a.length;c++){const l=a[c];l.el&&l.el instanceof Element&&(r.push(l),js(l,Ed(l,o,i,n)),NM.set(l,{left:l.el.offsetLeft,top:l.el.offsetTop}))}a=e.default?q2(e.default()):[];for(let c=0;c<a.length;c++){const l=a[c];l.key!=null&&js(l,Ed(l,o,i,n))}return Ct(u,null,a)}}}),Tle=g6;function v6(t){const e=t.el;e[pm]&&e[pm](),e[wE]&&e[wE]()}function _6(t){UM.set(t,{left:t.el.offsetLeft,top:t.el.offsetTop})}function b6(t){const e=NM.get(t),n=UM.get(t),i=e.left-n.left,r=e.top-n.top;if(i||r){const a=t.el.style;return a.transform=a.webkitTransform=`translate(${i}px,${r}px)`,a.transitionDuration="0s",t}}function y6(t,e,n){const i=t.cloneNode(),r=t[Dl];r&&r.forEach(o=>{o.split(/\s+/).forEach(u=>u&&i.classList.remove(u))}),n.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const a=e.nodeType===1?e:e.parentNode;a.appendChild(i);const{hasTransform:s}=kM(i);return a.removeChild(i),s}const ME=t=>{const e=t.props["onUpdate:modelValue"]||!1;return ot(e)?n=>fl(e,n):e};function E6(t){t.target.composing=!0}function CE(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ag=Symbol("_assign");function DE(t,e,n){return e&&(t=t.trim()),n&&(t=U2(t)),t}const wle={created(t,{modifiers:{lazy:e,trim:n,number:i}},r){t[Ag]=ME(r);const a=i||r.props&&r.props.type==="number";Vu(t,e?"change":"input",s=>{s.target.composing||t[Ag](DE(t.value,n,a))}),(n||a)&&Vu(t,"change",()=>{t.value=DE(t.value,n,a)}),e||(Vu(t,"compositionstart",E6),Vu(t,"compositionend",CE),Vu(t,"change",CE))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:i,trim:r,number:a}},s){if(t[Ag]=ME(s),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?U2(t.value):t.value,u=e??"";o!==u&&(document.activeElement===t&&t.type!=="range"&&(i&&e===n||r&&t.value.trim()===u)||(t.value=u))}},x6=["ctrl","shift","alt","meta"],A6={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>x6.some(n=>t[`${n}Key`]&&!e.includes(n))},S6=(t,e)=>{const n=t._withMods||(t._withMods={}),i=e.join(".");return n[i]||(n[i]=((r,...a)=>{for(let s=0;s<e.length;s++){const o=A6[e[s]];if(o&&o(r,e))return}return t(r,...a)}))},T6={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Mle=(t,e)=>{const n=t._withKeys||(t._withKeys={}),i=e.join(".");return n[i]||(n[i]=(r=>
4{if(!("key"in r))return;const a=Ui(r.key);if(e.some(s=>s===a||T6[s]===a))return t(r)}))},FM=vn({patchProp:d6},jk);let nd,LE=!1;function BM(){return nd||(nd=wk(FM))}function w6(){return nd=LE?nd:Mk(FM),LE=!0,nd}const M6=((...t)=>{BM().render(...t)}),v_=((...t)=>{const e=BM().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=HM(i);if(!r)return;const a=e._component;!ht(a)&&!a.render&&!a.template&&(a.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const s=n(r,!1,VM(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),s},e}),C6=((...t)=>{const e=w6().createApp(...t),{mount:n}=e;return e.mount=i=>{const r=HM(i);if(r)return n(r,!0,VM(r))},e});function VM(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function HM(t){return pn(t)?document.querySelector(t):t}const D6=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,L6=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,R6=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function I6(t,e){if(t==="__proto__"||t==="constructor"&&e&&typeof e=="object"&&"prototype"in e){P6(t);return}return e}function P6(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function Ad(t,e={}){if(typeof t!="string")return t;if(t[0]==='"'&&t[t.length-1]==='"'&&t.indexOf("\\")===-1)return t.slice(1,-1);const n=t.trim();if(n.length<=9)switch(n.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!R6.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(D6.test(t)||L6.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,I6)}return JSON.parse(t)}catch(i){if(e.strict)throw i;return t}}const k6=/#/g,O6=/&/g,N6=/\//g,U6=/=/g,ob=/\+/g,F6=/%5e/gi,B6=/%60/gi,V6=/%7c/gi,H6=/%20/gi;function z6(t){return encodeURI(""+t).replace(V6,"|")}function __(t){return z6(typeof t=="string"?t:JSON.stringify(t)).replace(ob,"%2B").replace(H6,"+").replace(k6,"%23").replace(O6,"%26").replace(B6,"`").replace(F6,"^").replace(N6,"%2F")}function Sg(t){return __(t).replace(U6,"%3D")}function Ll(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function $6(t){return Ll(t.replace(ob," "))}function W6(t){return Ll(t.replace(ob," "))}function x0(t=""){const e=Object.create(null);t[0]==="?"&&(t=t.slice(1));for(const n of t.split("&")){const i=n.match(/([^=]+)=?(.*)/)||[];if(i.length<2)continue;const r=$6(i[1]);if(r==="__proto__"||r==="constructor")continue;const a=W6(i[2]||"");e[r]===void 0?e[r]=a:Array.isArray(e[r])?e[r].push(a):e[r]=[e[r],a]}return e}function G6(t,e){return(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),e?Array.isArray(e)?e.map(n=>`${Sg(t)}=${__(n)}`).join("&"):`${Sg(t)}=${__(e)}`:Sg(t)}function q6(t){return Object.keys(t).filter(e=>t[e]!==void 0).map(e=>G6(e,t[e])).filter(Boolean).join("&")}const j6=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,X6=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,Y6=/^([/\\]\s*){2,}[^/\\]/,K6=/^[\s\0]*(blob|data|javascript|vbscript):$/i,Z6=/\/$|\/\?|\/#/,J6=/^\.?\//;function er(t,e={}){return typeof e=="boolean"&&(e={acceptRelative:e}),e.strict?j6.test(t):X6.test(t)||(e.acceptRelative?Y6.test(t):!1)}function Q6(t){return!!t&&K6.test(t)}function b_(t="",e){return e?Z6.test(t):t.endsWith("/")}function Rl(t="",e){if(!e)return(b_(t)?t.slice(0,-1):t)||"/";if(!b_(t,!0))return t||"/";let n=t,i="";const r=t.indexOf("#");r!==-1&&(n=t.slice(0,r),i=t.slice(r));const[a,...s]=n.split("?");return((a.endsWith("/")?a.slice(0,-1):a)||"/")+(s.length>0?`?${s.join("?")}`:"")+i}function Sd(t="",e){if(!e)return t.endsWith("/")?t:t+"/";if(b_(t,!0))return t||"/";let n=t,i="";const r=t.indexOf("#");if(r!==-1&&(n=t.slice(0,r),i=t.slice(r),!n))return i;const[a,...s]=n.split("?");return a+"/"+(s.length>0?`?${s.join("?")}`:"")+i}function zM(t=""){return t.startsWith("/")}function e8(t=""){return(zM(t)?t.slice(1):t)||"/"}function y_(t=""){return zM(t)?t:"/"+t}function t8(t,e){if($M(e)||er(t))return t;const n=Rl(e);return t.startsWith(n)?t:os(n,t)}function RE(t,e){if($M(e))return t;const n=Rl(e);if(!t.startsWith(n))return t;const i=t.slice(n.length);return i[0]==="/"?i:"/"+i}function Il(t,e){const n=of(t),i={...x0(n.search),...e};return n.search=q6(i),i8(n)}function $M(t){return!t||t==="/"}function n8(t){return t&&t!=="/"}function os(t,...e){let n=t||"";for(const i of e.filter(r=>n8(r)))if(n){const r=i.replace(J6,"");n=Sd(n)+r}else n=i;return n}function WM(...t){const e=/\/(?!\/)/,n=t.filter(Boolean),i=[];let r=0;for(const s of n)if(!(!s||s==="/")){for(const[o,u]of s.split(e).entries())if(!(!u||u===".")){if(u===".."){if(i.length===1&&er(i[0]))continue;i.pop(),r--;continue}if(o===1&&i[i.length-1]?.endsWith(":/")){i[i.length-1]+="/"+u;continue}i.push(u),r++}}let a=i.join("/");return r>=0?n[0]?.startsWith("/")&&!a.startsWith("/")?a="/"+a:n[0]?.startsWith("./")&&!a.startsWith("./")&&(a="./"+a):a="../".repeat(-1*r)+a,n[n.length-1]?.endsWith("/")&&!a.endsWith("/")&&(a+="/"),a}function GM(t,e){return Ll(Rl(t))===Ll(Rl(e))}function IE(t,e,n={}){return n.trailingSlash||(t=Sd(t),e=Sd(e)),n.leadingSlash||(t=y_(t),e=y_(e)),n.encoding||(t=Ll(t),e=Ll(e)),t===e}const qM=Symbol.for("ufo:protocolRelative");function of(t="",e){const n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){const[,d,f=""]=n;return{protocol:d.toLowerCase(),pathname:f,href:d+f,auth:"",host:"",search:"",hash:""}}if(!er(t,{acceptRelative:!0}))return E_(t);const[,i="",r,a=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[];let[,s="",o=""]=a.match(/([^#/?]*)(.*)?/)||[];i==="file:"&&(o=o.replace(/\/(?=[A-Za-z]:)/,""));const{pathname:u,search:c,hash:l}=E_(o);return{protocol:i.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:u,search:c,hash:l,[qM]:!i}}function E_(t=""){const[e="",n="",i=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:e,search:n,hash:i}}function i8(t){const e=t.pathname||"",n=t.search?(t.search.startsWith("?")?""
4:"?")+t.search:"",i=t.hash||"",r=t.auth?t.auth+"@":"",a=t.host||"";return(t.protocol||t[qM]?(t.protocol||"")+"//":"")+r+a+e+n+i}class r8 extends Error{constructor(e,n){super(e,n),this.name="FetchError",n?.cause&&!this.cause&&(this.cause=n.cause)}}function a8(t){const e=t.error?.message||t.error?.toString()||"",n=t.request?.method||t.options?.method||"GET",i=t.request?.url||String(t.request)||"/",r=`[${n}] ${JSON.stringify(i)}`,a=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${a}${e?` ${e}`:""}`,o=new r8(s,t.error?{cause:t.error}:void 0);for(const u of["request","options","response"])Object.defineProperty(o,u,{get(){return t[u]}});for(const[u,c]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(o,u,{get(){return t.response&&t.response[c]}});return o}const s8=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function PE(t="GET"){return s8.has(t.toUpperCase())}function o8(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer||t instanceof FormData||t instanceof URLSearchParams?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const u8=new Set(["image/svg","application/xml","application/xhtml","application/html"]),l8=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function c8(t=""){if(!t)return"json";const e=t.split(";").shift()||"";return l8.test(e)?"json":e==="text/event-stream"?"stream":u8.has(e)||e.startsWith("text/")?"text":"blob"}function d8(t,e,n,i){const r=f8(e?.headers??t?.headers,n?.headers,i);let a;return(n?.query||n?.params||e?.params||e?.query)&&(a={...n?.params,...n?.query,...e?.params,...e?.query}),{...n,...e,query:a,params:a,headers:r}}function f8(t,e,n){if(!e)return new n(t);const i=new n(e);if(t)for(const[r,a]of Symbol.iterator in t||Array.isArray(t)?t:new n(t))i.set(r,a);return i}async function Ff(t,e){if(e)if(Array.isArray(e))for(const n of e)await n(t);else await e(t)}const h8=new Set([408,409,425,429,500,502,503,504]),p8=new Set([101,204,205,304]);function jM(t={}){const{fetch:e=globalThis.fetch,Headers:n=globalThis.Headers,AbortController:i=globalThis.AbortController}=t;async function r(o){const u=o.error&&o.error.name==="AbortError"&&!o.options.timeout||!1;if(o.options.retry!==!1&&!u){let l;typeof o.options.retry=="number"?l=o.options.retry:l=PE(o.options.method)?0:1;const d=o.response&&o.response.status||500;if(l>0&&(Array.isArray(o.options.retryStatusCodes)?o.options.retryStatusCodes.includes(d):h8.has(d))){const f=typeof o.options.retryDelay=="function"?o.options.retryDelay(o):o.options.retryDelay||0;return f>0&&await new Promise(h=>setTimeout(h,f)),a(o.request,{...o.options,retry:l-1})}}const c=a8(o);throw Error.captureStackTrace&&Error.captureStackTrace(c,a),c}const a=async function(u,c={}){const l={request:u,options:d8(u,c,t.defaults,n),response:void 0,error:void 0};if(l.options.method&&(l.options.method=l.options.method.toUpperCase()),l.options.onRequest&&(await Ff(l,l.options.onRequest),l.options.headers instanceof n||(l.options.headers=new n(l.options.headers||{}))),typeof l.request=="string"&&(l.options.baseURL&&(l.request=t8(l.request,l.options.baseURL)),l.options.query&&(l.request=Il(l.request,l.options.query),delete l.options.query),"query"in l.options&&delete l.options.query,"params"in l.options&&delete l.options.params),l.options.body&&PE(l.options.method))if(o8(l.options.body)){const h=l.options.headers.get("content-type");typeof l.options.body!="string"&&(l.options.body=h==="application/x-www-form-urlencoded"?new URLSearchParams(l.options.body).toString():JSON.stringify(l.options.body)),h||l.options.headers.set("content-type","application/json"),l.options.headers.has("accept")||l.options.headers.set("accept","application/json")}else("pipeTo"in l.options.body&&typeof l.options.body.pipeTo=="function"||typeof l.options.body.pipe=="function")&&("duplex"in l.options||(l.options.duplex="half"));let d;if(!l.options.signal&&l.options.timeout){const h=new i;d=setTimeout(()=>{const g=new Error("[TimeoutError]: The operation was aborted due to timeout");g.name="TimeoutError",g.code=23,h.abort(g)},l.options.timeout),l.options.signal=h.signal}try{l.response=await e(l.request,l.options)}catch(h){return l.error=h,l.options.onRequestError&&await Ff(l,l.options.onRequestError),await r(l)}finally{d&&clearTimeout(d)}if((l.response.body||l.response._bodyInit)&&!p8.has(l.response.status)&&l.options.method!=="HEAD"){const h=(l.options.parseResponse?"json":l.options.responseType)||c8(l.response.headers.get("content-type")||"");switch(h){case"json":{const g=await l.response.text(),v=l.options.parseResponse||Ad;l.response._data=v(g);break}case"stream":{l.response._data=l.response.body||l.response._bodyInit;break}default:l.response._data=await l.response[h]()}}return l.options.onResponse&&await Ff(l,l.options.onResponse),!l.options.ignoreResponseError&&l.response.status>=400&&l.response.status<600?(l.options.onResponseError&&await Ff(l,l.options.onResponseError),await r(l)):l.response},s=async function(u,c){return(await a(u,c))._data};return s.raw=a,s.native=(...o)=>e(...o),s.create=(o={},u={})=>jM({...t,...u,defaults:{...t.defaults,...u.defaults,...o}}),s}const mm=(function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")})(),m8=mm.fetch?(...t)=>mm.fetch(...t):()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!")),g8=mm.Headers,v8=mm.AbortController,_8=jM({fetch:m8,Headers:g8,AbortController:v8}),b8=_8,y8=()=>window?.__NUXT__?.config||window?.useNuxtApp?.().payload?.config,ub=()=>y8().app,E8=()=>ub().baseURL,x8=()=>ub().buildAssetsDir,lb=(...t)=>WM(XM(),x8(),...t),XM=(...t)=>{const e=ub(),n=e.cdnURL||e.baseURL;return t.length?WM(n,...t):n};globalThis.__buildAssetsURL=lb,globalThis.__publicAssetsURL=XM;globalThis.$fetch||(globalThis.$fetch=b8.create({baseURL:E8()}));"global"in globalThis||(globalThis.global=globalThis);function x_(t,e={},n){for(const i in t){const r=t[i],a=n?`${n}:${i}`:i;typeof r=="object"&&r!==null?x_(r,e,a):typeof r=="function"&&(e[a]=r)}return e}const A8={run:t=>t()},S8=()=>A8,YM=typeof console.createTask<"u"?console.createTask:S8;function T8(t,e){const n=e.shift(),i=YM(n);return t.reduce((r,a)=>r.then(()=>i.run(()=>a(...e))),Promise.resolve())}function w8(t,e){const n=e.shift(),i=YM(n);return Promise.all(t.map(r=>i.run(()=>r(...e))))}function Tg(t,e){for(const n of[...t])n(e)}class M8{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,n,i={}){if(!e||typeof n!="function")return()=>{};const r=e;let a;for(;this._deprecatedHooks[e];)a=this._deprecatedHooks[e],e=a.to;if(a&&!i.allowDeprecated){let s=a.message;s||(s=`${r} hook has been deprecated`+(a.to?`, please use ${a.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(n),()=>{n&&(this.removeHook(e,n),n=void 0)}}hookOnce(e,n){let i,r=(...a)=>(typeof i=="function"&&i(),i=void 0,r=void 0,n(...a));return i=this.hook(e,r),i}removeHook(e,n){if(this._hooks[e]){const i=this._hooks[e].indexOf(n);i!==-1&&this._hooks[e].splice(i,1),this._hooks[e].length===0&&delete this._hooks[e]}}deprecateHook(e,n){this._deprecatedHooks[e]=typeof n=="string"?{to:n}:n;const i=this._hooks[e]||[];delete this._hooks[e];for(const r of i)this.hook(e,r)}deprecateHooks(e){Object.assign(this._deprecatedHooks,e);for(const n in e)this.deprecateHook(n,e[n])}addHooks(e){const n=x_(e),i=Object.keys(n).map(r=>this.hook(r,n[r]));return()=>{for(const r of i.splice(0,i.length))r()}}removeHooks(e){const n=x_(e);for(const i in n)this.removeHook(i,n[i])}removeAllHooks(){for(const e in this._hooks)delete this._hooks[e]}callHook(e,...n){return n.unshift(e),this.callHookWith(T8,e,...n)}callHookParallel(e,...n){return n.unshift(e),this.callHookWith(w8,e,...n)}callHookWith(e,n,...i){const r=this._before||this._after?{name:n,args:i,context:{}}:void 0;this._before&&Tg(this._before,r);const a=e(n in this._hooks?[...this._hooks[n]]:[],i);return a instanceof Promise?a.finally(()=>{this._after&&r&&Tg(this._after,r)}):(this._after&&r&&Tg(this._after,r),a)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const n=this._before.indexOf(e);n!==-1&&this._before.splice(n,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const n=this._after.indexOf(e);n!==-1&&this._after.splice(n,1)}}}}function KM(){return new M8}function C8(t={}){let e,n=!1;const i=s=>{if(e&&e!==s)throw new Error("Context conflict")};let r;if(t.asyncContext){const s=t.AsyncLocalStorage||globalThis.AsyncLocalStorage;s?r=new s:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const a=()=>
4{if(r){const s=r.getStore();if(s!==void 0)return s}return e};return{use:()=>{const s=a();if(s===void 0)throw new Error("Context is not available");return s},tryUse:()=>a(),set:(s,o)=>{o||i(s),e=s,n=!0},unset:()=>{e=void 0,n=!1},call:(s,o)=>{i(s),e=s;try{return r?r.run(s,o):o()}finally{n||(e=void 0)}},async callAsync(s,o){e=s;const u=()=>{e=s},c=()=>e===s?u:void 0;A_.add(c);try{const l=r?r.run(s,o):o();return n||(e=void 0),await l}finally{A_.delete(c)}}}}function D8(t={}){const e={};return{get(n,i={}){return e[n]||(e[n]=C8({...t,...i})),e[n]}}}const gm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},kE="__unctx__",L8=gm[kE]||(gm[kE]=D8()),R8=(t,e={})=>L8.get(t,e),OE="__unctx_async_handlers__",A_=gm[OE]||(gm[OE]=new Set);function Dr(t){const e=[];for(const r of A_){const a=r();a&&e.push(a)}const n=()=>{for(const r of e)r()};let i=t();return i&&typeof i=="object"&&"catch"in i&&(i=i.catch(r=>{throw n(),r})),[i,n]}const I8=!1,NE=!1,P8=!1,UE={id:"__nuxt-loader"},k8={componentName:"NuxtLink",prefetch:!0,prefetchOn:{visibility:!0}},O8={deep:!1},N8="#app",ZM="nuxt-app",FE=36e5,U8="vite:preloadError";function JM(t=ZM){return R8(t,{asyncContext:!1})}const F8="__nuxt_plugin";function B8(t){let e=0;const n={_id:t.id||ZM||"nuxt-app",_scope:tf(),provide:void 0,versions:{get nuxt(){return"4.2.1"},get vue(){return n.vueApp.version}},payload:ha({...t.ssrContext?.payload||{},data:ha({}),state:In({}),once:new Set,_errors:ha({})}),static:{data:{}},runWithContext(r){return n._scope.active&&!Zs()?n._scope.run(()=>BE(n,r)):BE(n,r)},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};e++;let r=!1;return()=>{if(!r&&(r=!0,e--,e===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:ha({}),_payloadRevivers:{},...t};{const r=window.__NUXT__;if(r)for(const a in r)switch(a){case"data":case"state":case"_errors":Object.assign(n.payload[a],r[a]);break;default:n.payload[a]=r[a]}}n.hooks=KM(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,a)=>{const s="$"+r;Bf(n,s,a),Bf(n.vueApp.config.globalProperties,s,a)},Bf(n.vueApp,"$nuxt",n),Bf(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener(U8,a=>{n.callHook("app:chunkError",{error:a.payload}),a.payload.message.includes("Unable to preload CSS")&&a.preventDefault()}),window.useNuxtApp||=ut;const r=n.hook("app:error",(...a)=>{console.error("[nuxt] error caught during app initialization",...a)});n.hook("app:mounted",r)}const i=n.payload.config;return n.provide("config",i),n}function V8(t,e){e.hooks&&t.hooks.addHooks(e.hooks)}async function H8(t,e){if(typeof e=="function"){const{provide:n}=await t.runWithContext(()=>e(t))||{};if(n&&typeof n=="object")for(const i in n)t.provide(i,n[i])}}async function z8(t,e){const n=new Set,i=[],r=[];let a,s=0;async function o(u){const c=u.dependsOn?.filter(l=>e.some(d=>d._name===l)&&!n.has(l))??[];if(c.length>0)i.push([new Set(c),u]);else{const l=H8(t,u).then(async()=>{u._name&&(n.add(u._name),await Promise.all(i.map(async([d,f])=>{d.has(u._name)&&(d.delete(u._name),d.size===0&&(s++,await o(f)))})))}).catch(d=>{if(!u.parallel&&!t.payload.error)throw d;a||=d});u.parallel?r.push(l):await l}}for(const u of e)V8(t,u);for(const u of e)await o(u);if(await Promise.all(r),s)for(let u=0;u<s;u++)await Promise.all(r);if(a)throw t.payload.error||a}function Ht(t){if(typeof t=="function")return t;const e=t._name||t.name;return delete t.name,Object.assign(t.setup||(()=>{}),t,{[F8]:!0,_name:e})}function BE(t,e,n){const i=()=>e();return JM(t._id).set(t),t.vueApp.runWithContext(i)}function $8(t){let e;return sf()&&(e=Mn()?.appContext.app.$nuxt),e||=JM(t).tryUse(),e||null}function ut(t){const e=$8(t);if(!e)throw new Error("[nuxt] instance unavailable");return e}function Li(t){return ut().$config}function Bf(t,e,n){Object.defineProperty(t,e,{get:()=>n})}function W8(t,e){return{ctx:{table:t},matchAll:n=>eC(n,t)}}function QM(t){const e={};for(const n in t)e[n]=n==="dynamic"?new Map(Object.entries(t[n]).map(([i,r])=>[i,QM(r)])):new Map(Object.entries(t[n]));return e}function G8(t){return W8(QM(t))}
4function eC(t,e,n){t.endsWith("/")&&(t=t.slice(0,-1)||"/");const i=[];for(const[a,s]of VE(e.wildcard))(t===a||t.startsWith(a+"/"))&&i.push(s);for(const[a,s]of VE(e.dynamic))if(t.startsWith(a+"/")){const o="/"+t.slice(a.length).split("/").splice(2).join("/");i.push(...eC(o,s))}const r=e.static.get(t);return r&&i.push(r),i.filter(Boolean)}function VE(t){return[...t.entries()].sort((e,n)=>e[0].length-n[0].length)}function wg(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function S_(t,e,n=".",i){if(!wg(e))return S_(t,{},n,i);const r=Object.assign({},e);for(const a in t){if(a==="__proto__"||a==="constructor")continue;const s=t[a];s!=null&&(i&&i(r,a,s,n)||(Array.isArray(s)&&Array.isArray(r[a])?r[a]=[...s,...r[a]]:wg(s)&&wg(r[a])?r[a]=S_(s,r[a],(n?`${n}.`:"")+a.toString(),i):r[a]=s))}return r}function tC(t){return(...e)=>e.reduce((n,i)=>S_(n,i,"",t),{})}const A0=tC(),q8=tC((t,e,n)=>{if(t[e]!==void 0&&typeof n=="function")return t[e]=n(t[e]),!0});function j8(t,e){try{return e in t}catch{return!1}}class HE extends Error{static __h3_error__=!0;statusCode=500;fatal=!1;unhandled=!1;statusMessage;data;cause;constructor(e,n={}){super(e,n),n.cause&&!this.cause&&(this.cause=n.cause)}toJSON(){const e={message:this.message,statusCode:T_(this.statusCode,500)};return this.statusMessage&&(e.statusMessage=nC(this.statusMessage)),this.data!==void 0&&(e.data=this.data),e}}function X8(t){if(typeof t=="string")return new HE(t);if(Y8(t))return t;const e=new HE(t.message??t.statusMessage??"",{cause:t.cause||t});if(j8(t,"stack"))try{Object.defineProperty(e,"stack",{get(){return t.stack}})}catch{try{e.stack=t.stack}catch{}}if(t.data&&(e.data=t.data),t.statusCode?e.statusCode=T_(t.statusCode,e.statusCode):t.status&&(e.statusCode=T_(t.status,e.statusCode)),t.statusMessage?e.statusMessage=t.statusMessage:t.statusText&&(e.statusMessage=t.statusText),e.statusMessage){const n=e.statusMessage;nC(e.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future, `statusMessage` will be sanitized by default.")}return t.fatal!==void 0&&(e.fatal=t.fatal),t.unhandled!==void 0&&(e.unhandled=t.unhandled),e}function Y8(t){return t?.constructor?.__h3_error__===!0}const K8=/[^\u0009\u0020-\u007E]/g;function nC(t=""){return t.replace(K8,"")}function T_(t,e=200){return!t||(typeof t=="string"&&(t=Number.parseInt(t,10)),t<100||t>999)?e:t}const iC=Symbol("layout-meta"),tu=Symbol("route");import.meta.url.replace(/\/app\/.*$/,"/");const mn=()=>ut()?.$router,Js=()=>sf()?wn(tu,ut()._route):ut()._route;const Z8=(t,e,n={})=>{const i=ut(),r=n.global||typeof t!="string",a=e;if(!a){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",t);return}r?i._middleware.global.push(a):i._middleware.named[t]=a},J8=()=>{try{if(ut()._processingMiddleware)return!0}catch{return!1}return!1},$a=(t,e)=>{t||="/";const n=typeof t=="string"?t:"path"in t?w_(t):mn().resolve(t).href;if(e?.open){const{target:u="_blank",windowFeatures:c={}}=e.open,l=[];for(const[d,f]of Object.entries(c))f!==void 0&&l.push(`${d.toLowerCase()}=${f}`);return open(n,u,l.join(", ")),Promise.resolve()}const i=er(n,{acceptRelative:!0}),r=e?.external||i;if(r){if(!e?.external)throw new Error("Navigating to an external URL is not allowed by default. Use `navigateTo(url, { external: true })`.");const{protocol:u}=new URL(n,window.location.href);if(u&&Q6(u))throw new Error(`Cannot navigate to a URL with '${u}' protocol.`)}const a=J8();if(!r&&a){if(e?.replace){if(typeof t=="string"){const{pathname:u,search:c,hash:l}=of(t);return{path:u,...c&&{query:x0(c)},...l&&{hash:l},replace:!0}}return{...t,replace:!0}}return t}const s=mn(),o=ut();return r?(o._scope.stop(),e?.replace?location.replace(n):location.href=n,a?o.isHydrating?new Promise(()=>{}):!1:Promise.resolve()):e?.replace?s.replace(t):s.push(t)};function w_(t){return Il(t.path||"",t.query||{})+(t.hash||"")}const rC="__nuxt_error",S0=()=>Zl(ut().payload,"error"),Ds=t=>{const e=Qa(t);try{const n=S0();ut().hooks.callHook("app:error",e),n.value||=e}catch{throw e}return e},aC=async(t={})=>{const e=ut(),n=S0();e.callHook("app:error:cleared",t),t.redirect&&await mn().replace(t.redirect),n.value=void 0},sC=t=>!!t&&typeof t=="object"&&rC in t,Qa=t=>{const e=X8(t);return Object.defineProperty(e,rC,{value:!0,configurable:!1,writable:!1}),e};function Q8(t){const e=tO(t),n=new ArrayBuffer(e.length),i=new DataView(n);for(let r=0;r<n.byteLength;r++)i.setUint8(r,e.charCodeAt(r));return n}const eO="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
4+/";function tO(t){t.length%4===0&&(t=t.replace(/==?$/,""));let e="",n=0,i=0;for(let r=0;r<t.length;r++)n<<=6,n|=eO.indexOf(t[r]),i+=6,i===24&&(e+=String.fromCharCode((n&16711680)>>16),e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255),n=i=0);return i===12?(n>>=4,e+=String.fromCharCode(n)):i===18&&(n>>=2,e+=String.fromCharCode((n&65280)>>8),e+=String.fromCharCode(n&255)),e}const nO=-1,iO=-2,rO=-3,aO=-4,sO=-5,oO=-6;function uO(t,e){return lO(JSON.parse(t),e)}function lO(t,e){if(typeof t=="number")return r(t,!0);if(!Array.isArray(t)||t.length===0)throw new Error("Invalid input");const n=t,i=Array(n.length);function r(a,s=!1){if(a===nO)return;if(a===rO)return NaN;if(a===aO)return 1/0;if(a===sO)return-1/0;if(a===oO)return-0;if(s||typeof a!="number")throw new Error("Invalid input");if(a in i)return i[a];const o=n[a];if(!o||typeof o!="object")i[a]=o;else if(Array.isArray(o))if(typeof o[0]=="string"){const u=o[0],c=e?.[u];if(c){let l=o[1];return typeof l!="number"&&(l=n.push(o[1])-1),i[a]=c(r(l))}switch(u){case"Date":i[a]=new Date(o[1]);break;case"Set":const l=new Set;i[a]=l;for(let h=1;h<o.length;h+=1)l.add(r(o[h]));break;case"Map":const d=new Map;i[a]=d;for(let h=1;h<o.length;h+=2)d.set(r(o[h]),r(o[h+1]));break;case"RegExp":i[a]=new RegExp(o[1],o[2]);break;case"Object":i[a]=Object(o[1]);break;case"BigInt":i[a]=BigInt(o[1]);break;case"null":const f=Object.create(null);i[a]=f;for(let h=1;h<o.length;h+=2)f[o[h]]=r(o[h+1]);break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const h=globalThis[u],g=new h(r(o[1]));i[a]=o[2]!==void 0?g.subarray(o[2],o[3]):g;break}case"ArrayBuffer":{const h=o[1],g=Q8(h);i[a]=g;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{const h=u.slice(9);i[a]=Temporal[h].from(o[1]);break}case"URL":{const h=new URL(o[1]);i[a]=h;break}case"URLSearchParams":{const h=new URLSearchParams(o[1]);i[a]=h;break}default:throw new Error(`Unknown type ${u}`)}}else{const u=new Array(o.length);i[a]=u;for(let c=0;c<o.length;c+=1){const l=o[c];l!==iO&&(u[c]=r(l))}}else{const u={};i[a]=u;for(const c in o){if(c==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");const l=o[c];u[c]=r(l)}}return i[a]}return r(0)}const cO=new Set(["link","style","script","noscript"]),dO=new Set(["title","titleTemplate","script","style","noscript"]),zE=new Set(["base","meta","link","style","script","noscript"]),fO=new Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),hO=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),pO=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),mO=new Set(["templateParams","htmlAttrs","bodyAttrs"]),cb=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Td={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},gO={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},oC={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>`${Xa(t)}=${e}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:t,value:e})=>t==="seconds"?`${e}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:t,value:e})=>typeof e=="boolean"?Xa(t):`${Xa(t)}:${e}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:t,value:e})=>`${Xa(t)} ${e}`}},charset:{}};function Xa(t){const e=t.replace(/([A-Z])/g,"-$1").toLowerCase(),n=e.indexOf("-");return n===-1?e:Td.META.has(e.slice(0,n))||Td.OG.has(e.slice(0,n))?t.replace(/([A-Z])/g,":$1").toLowerCase():e}function uC(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>String(n)!=="false"&&e))}function M_(t){return Array.isArray(t)?t.map(M_):!t||typeof t!="object"?t:Object.fromEntries(Object.entries(t).map(([e,n])=>[Xa(e),M_(n)]))}function lC(t,e={}){const{entrySeparator:n="",keyValueSeparator:i="",wrapValue:r,resolve:a}=e;return Object.entries(t).map(([s,o])=>{if(a){const c=a({key:s,value:o});if(c!==void 0)return c}const u=typeof o=="object"?lC(o,e):typeof o=="number"?o.toString():typeof o=="str
4ing"&&r?`${r}${o.replace(new RegExp(r,"g"),`\\${r}`)}${r}`:o;return`${s}${i}${u}`}).join(n)}function $E(t,e){const n=uC(e),i=Xa(t),r=cC(i);if(!cb.has(i))return[{[r]:i,...n}];const a=Object.fromEntries(Object.entries(n).map(([s,o])=>[`${t}${s==="url"?"":`${s[0].toUpperCase()}${s.slice(1)}`}`,o]));return vm(a||{}).sort((s,o)=>(s[r]?.length||0)-(o[r]?.length||0))}function cC(t){if(oC[t]?.metaKey==="http-equiv"||Td.HTTP_EQUIV.has(t))return"http-equiv";const e=Xa(t),n=e.indexOf(":");return n===-1?"name":Td.OG.has(e.slice(0,n))?"property":"name"}function vO(t){return gO[t]||Xa(t)}function _O(t,e){return e==="refresh"?`${t.seconds};url=${t.url}`:lC(M_(t),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:n,key:i})=>n===null?"":typeof n=="boolean"?i:void 0,...oC[e]?.unpack})}function vm(t){const e=[],n={};for(const[r,a]of Object.entries(t)){if(Array.isArray(a)){if(r==="themeColor"){a.forEach(s=>{typeof s=="object"&&s!==null&&e.push({name:"theme-color",...s})});continue}for(const s of a)if(typeof s=="object"&&s!==null){const o=[],u=[];for(const[c,l]of Object.entries(s)){const d=`${r}${c==="url"?"":`:${c}`}`,f=vm({[d]:l});(c==="url"?o:u).push(...f)}e.push(...o,...u)}else e.push(...typeof s=="string"?vm({[r]:s}):$E(r,s));continue}if(typeof a=="object"&&a)if(Td.MEDIA.has(r)){const s=r.startsWith("twitter")?"twitter":"og",o=r.replace(/^(og|twitter)/,"").toLowerCase(),u=s==="twitter"?"name":"property";a.url&&e.push({[u]:`${s}:${o}`,content:a.url}),a.secureUrl&&e.push({[u]:`${s}:${o}:secure_url`,content:a.secureUrl});for(const[c,l]of Object.entries(a))c!=="url"&&c!=="secureUrl"&&e.push({[u]:`${s}:${o}:${c}`,content:l})}else cb.has(Xa(r))?e.push(...$E(r,a)):n[r]=uC(a);else n[r]=a}const i=Object.entries(n).map(([r,a])=>{if(r==="charset")return{charset:a===null?"_null":a};const s=cC(r),o=vO(r),u=a===null?"_null":typeof a=="object"?_O(a,r):typeof a=="number"?a.toString():a;return s==="http-equiv"?{"http-equiv":o,content:u}:{[s]:o,content:u}});return[...e,...i].map(r=>"content"in r&&r.content==="_null"?{...r,content:null}:r)}const bO={key:"flatMeta",hooks:{"entries:normalize":t=>{const e=[];t.tags=t.tags.map(n=>n.tag!=="_flatMeta"?n:(e.push(vm(n.props).map(i=>({...n,tag:"meta",props:i}))),!1)).filter(Boolean).concat(...e)}}},yO=["name","property","http-equiv"],EO=new Set(["viewport","description","keywords","robots"]);function dC(t){const e=t.split(":");return e.length?cb.has(e[1]):!1}function C_(t){const{props:e,tag:n}=t;if(hO.has(n))return n;if(n==="link"&&e.rel==="canonical")return"canonical";if(e.charset)return"charset";if(t.tag==="meta"){for(const i of yO)if(e[i]!==void 0){const r=e[i],a=r.includes(":"),s=EO.has(r),u=!(a||s)&&t.key?`:key:${t.key}`:"";return`${n}:${r}${u}`}}if(t.key)return`${n}:key:${t.key}`;if(e.id)return`${n}:id:${e.id}`;if(dO.has(n)){const i=t.textContent||t.innerHTML;if(i)return`${n}:content:${i}`}}function WE(t){const e=t._h||t._d;if(e)return e;const n=t.textContent||t.innerHTML;return n||`${t.tag}:${Object.entries(t.props).map(([i,r])=>`${i}:${String(r)}`).join(",")}`}function _m(t,e,n){typeof t==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(t=t());let r;if(e&&(r=e(n,t)),Array.isArray(r))return r.map(a=>_m(a,e));if(r?.constructor===Object){const a={};for(const s of Object.keys(r))a[s]=_m(r[s],e,s);return a}return r}function xO(t,e){const n=t==="style"?new Map:new Set;function i(r){const a=r.trim();if(a)if(t==="style"){const[s,...o]=a.split(":").map(u=>u.trim());s&&o.length&&n.set(s,o.join(":"))}else a.split(" ").filter(Boolean).forEach(s=>n.add(s))}return typeof e=="string"?t==="style"?e.split(";").forEach(i):i(e):Array.isArray(e)?e.forEach(r=>i(r)):e&&typeof e=="object"&&Object.entries(e).forEach(([r,a])=>{a&&a!=="false"&&(t==="style"?n.set(r.trim(),a):i(r))}),n}function fC(t,e){return t.props=t.props||{},e?t.tag==="templateParams"?(t.props=e,t):(Object.entries(e).forEach(([n,i])=>{if(i===null){t.props[n]=null;return}if(n==="class"||n==="style"){t.props[n]=xO(n,i);return}if(pO.has(n)){if(["textContent","innerHTML"].includes(n)&&typeof i=="object"){let s=e.type;if(e.type||(s="application/json"),!s?.endsWith("json")&&s!=="speculationrules")return;e.type=s,t.props.type=s,t[n]=JSON.stringify(i)}else t[n]=i;return}const r=String(i),a=n.startsWith("data-");r==="true"||r===""?t.props[n]=a?r:!0:!i&&a&&r==="false"?t.props[n]="false":i!==void 0&&(t.props[n]=i)}),t):t}function AO(t,e){const n=typeof e=="object"&&typeof e!="function"?e:{[t==="script"||t==="noscript"||t==="style"?"innerHTML":"textContent"]:e},i=fC({tag:t,props:{}},n);return i.key&&cO.has(i.tag)&&(i.props["data-hid"]=i._h=i.key),i.tag==="script"&&typeof i.innerHTML=="object"&&(i.innerHTML=JSON.stringify(i.innerHTML),i.props.type=i.props.type||"application/json"),Array.isArray(i.props.content)?i.props.content.map(r=>({...i,props:{...i.props,content:r}})):i}function SO(t,e){if(!t)return[];typeof t=="function"&&(t=t());const n=(r,a)=>{for(let s=0;s<e.length;s++)a=e[s](r,a);return a};t=n(void 0,t);const i=[];return t=_m(t,n),Object.entries(t||{}
4).forEach(([r,a])=>{if(a!==void 0)for(const s of Array.isArray(a)?a:[a])i.push(AO(r,s))}),i.flat()}const GE=(t,e)=>t._w===e._w?t._p-e._p:t._w-e._w,qE={base:-10,title:10},TO={critical:-8,high:-1,low:2},jE={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},wO=/@import/,oc=t=>t===""||t===!0;function MO(t,e){if(typeof e.tagPriority=="number")return e.tagPriority;let n=100;const i=TO[e.tagPriority]||0,r=t.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:jE;if(e.tag in qE)n=qE[e.tag];else if(e.tag==="meta"){const a=e.props["http-equiv"]==="content-security-policy"?"content-security-policy":e.props.charset?"charset":e.props.name==="viewport"?"viewport":null;a&&(n=jE.meta[a])}else e.tag==="link"&&e.props.rel?n=r.link[e.props.rel]:e.tag==="script"?oc(e.props.async)?n=r.script.async:e.props.src&&!oc(e.props.defer)&&!oc(e.props.async)&&e.props.type!=="module"&&!e.props.type?.endsWith("json")?n=r.script.sync:oc(e.props.defer)&&e.props.src&&!oc(e.props.async)&&(n=r.script.defer):e.tag==="style"&&(n=e.innerHTML&&wO.test(e.innerHTML)?r.style.imported:r.style.sync);return(n||100)+i}function XE(t,e){const n=typeof e=="function"?e(t):e,i=n.key||String(t.plugins.size+1);t.plugins.get(i)||(t.plugins.set(i,n),t.hooks.addHooks(n.hooks||{}))}function CO(t={}){const e=KM();e.addHooks(t.hooks||{});const n=!t.document,i=new Map,r=new Map,a=new Set,s={_entryCount:1,plugins:r,dirty:!1,resolvedOptions:t,hooks:e,ssr:n,entries:i,headEntries(){return[...i.values()]},use:o=>XE(s,o),push(o,u){const c={...u||{}};delete c.head;const l=c._index??s._entryCount++,d={_i:l,input:o,options:c},f={_poll(h=!1){s.dirty=!0,!h&&a.add(l),e.callHook("entries:updated",s)},dispose(){i.delete(l)&&s.invalidate()},patch(h){(!c.mode||c.mode==="server"&&n||c.mode==="client"&&!n)&&(d.input=h,i.set(l,d),f._poll())}};return f.patch(o),f},async resolveTags(){const o={tagMap:new Map,tags:[],entries:[...s.entries.values()]};for(await e.callHook("entries:resolve",o);a.size;){const f=a.values().next().value;a.delete(f);const h=i.get(f);if(h){const g={tags:SO(h.input,t.propResolvers||[]).map(v=>Object.assign(v,h.options)),entry:h};await e.callHook("entries:normalize",g),h._tags=g.tags.map((v,m)=>(v._w=MO(s,v),v._p=(h._i<<10)+m,v._d=C_(v),v))}}let u=!1;o.entries.flatMap(f=>(f._tags||[]).map(h=>({...h,props:{...h.props}}))).sort(GE).reduce((f,h)=>{const g=String(h._d||h._p);if(!f.has(g))return f.set(g,h);const v=f.get(g);if((h?.tagDuplicateStrategy||(mO.has(h.tag)?"merge":null)||(h.key&&h.key===v.key?"merge":null))==="merge"){const p={...v.props};Object.entries(h.props).forEach(([y,_])=>p[y]=y==="style"?new Map([...v.props.style||new Map,..._]):y==="class"?new Set([...v.props.class||new Set,..._]):_),f.set(g,{...h,props:p})}else h._p>>10===v._p>>10&&h.tag==="meta"&&dC(g)?(f.set(g,Object.assign([...Array.isArray(v)?v:[v],h],h)),u=!0):(h._w===v._w?h._p>v._p:h?._w<v?._w)&&f.set(g,h);return f},o.tagMap);const c=o.tagMap.get("title"),l=o.tagMap.get("titleTemplate");if(s._title=c?.textContent,l){const f=l?.textContent;if(s._titleTemplate=f,f){let h=typeof f=="function"?f(c?.textContent):f;typeof h=="string"&&!s.plugins.has("template-params")&&(h=h.replace("%s",c?.textContent||"")),c?h===null?o.tagMap.delete("title"):o.tagMap.set("title",{...c,textContent:h}):(l.tag="title",l.textContent=h)}}o.tags=Array.from(o.tagMap.values()),u&&(o.tags=o.tags.flat().sort(GE)),await e.callHook("tags:beforeResolve",o),await e.callHook("tags:resolve",o),await e.callHook("tags:afterResolve",o);const d=[];for(const f of o.tags){const{innerHTML:h,tag:g,props:v}=f;if(fO.has(g)&&!(Object.keys(v).length===0&&!f.innerHTML&&!f.textContent)&&!(g==="meta"&&!v.content&&!v["http-equiv"]&&!v.charset)){if(g==="script"&&h){if(v.type?.endsWith("json")){const m=typeof h=="string"?h:JSON.stringify(h);f.innerHTML=m.replace(/</g,"\\u003C")}else typeof h=="string"&&(f.innerHTML=h.replace(new RegExp(`</${g}`,"g"),`<\\/${g}`));f._d=C_(f)}d.push(f)}}return d},invalidate(){for(const o of i.values())a.add(o._i);s.dirty=!0,e.callHook("entries:updated",s)}};
4return(t?.plugins||[]).forEach(o=>XE(s,o)),s.hooks.callHook("init",s),t.init?.forEach(o=>o&&s.push(o)),s}const DO=(t,e)=>Dt(e)?bd(e):e,db="usehead";function LO(t){return{install(n){n.config.globalProperties.$unhead=t,n.config.globalProperties.$head=t,n.provide(db,t)}}.install}function hC(){if(sf()){const t=wn(db);if(!t)throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.");return t}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function pC(t,e={}){const n=e.head||hC();return n.ssr?n.push(t||{},e):RO(n,t,e)}function RO(t,e,n={}){const i=Le(!1);let r;return Ql(()=>{const s=i.value?{}:_m(e,DO);r?r.patch(s):r=t.push(s,n)}),Mn()&&(uu(()=>{r.dispose()}),Y2(()=>{i.value=!0}),X2(()=>{i.value=!1})),r}function IO(t={},e={}){(e.head||hC()).use(bO);const{title:i,titleTemplate:r,...a}=t;return pC({title:i,titleTemplate:r,_flatMeta:a},e)}function T0(t){const e=t||ut();return e.ssrContext?.head||e.runWithContext(()=>{if(sf()){const n=wn(db);if(!n)throw new Error("[nuxt] [unhead] Missing Unhead instance.");return n}})}function fb(t,e={}){const n=e.head||T0(e.nuxt);return pC(t,{head:n,...e})}function PO(t,e={}){const n=e.head||T0(e.nuxt);return IO(t,{head:n,...e})}function kO(t,e={}){return e.head||T0(e.nuxt),!1}function OO(t,e={}){return e.head||T0(e.nuxt),!1}let rp,ap;function NO(){return rp=$fetch(lb(`builds/meta/${Li().app.buildId}.json`),{responseType:"json"}),rp.then(t=>{ap=G8(t.matcher)}).catch(t=>{console.error("[nuxt] Error fetching app manifest.",t)}),rp}function w0(){return rp||NO()}async function hb(t){const e=typeof t=="string"?t:t.path;if(await w0(),!ap)return console.error("[nuxt] Error creating app manifest matcher.",ap),{};try{return A0({},...ap.matchAll(e).reverse())}catch(n){return console.error("[nuxt] Error matching route rules.",n),{}}}async function YE(t,e={}){if(!await gC(t))return null;const i=await FO(t,e);return await mC(i)||null}const UO="_payload.json";async function FO(t,e={}){const n=new URL(t,"http://localhost");if(n.host!=="localhost"||er(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+t);const i=Li(),r=e.hash||(e.fresh?Date.now():i.app.buildId),a=i.app.cdnURL,s=a&&await gC(t)?a:i.app.baseURL;return os(s,n.pathname,UO+(r?`?${r}`:""))}async function mC(t){const e=fetch(t,{cache:"force-cache"}).then(n=>n.text().then(vC));try{return await e}catch(n){console.warn("[nuxt] Cannot load payload ",t,n)}return null}async function gC(t=Js().path){const e=ut();return t=t==="/"?t:t.replace(/\/$/,""),(await w0()).prerendered.includes(t)?!0:e.runWithContext(async()=>{const i=await hb({path:t});return!!i.prerender&&!i.redirect})}let oo=null;async function BO(){if(oo)return oo;const t=document.getElementById("__NUXT_DATA__");if(!t)return{};const e=await vC(t.textContent||""),n=t.dataset.src?await mC(t.dataset.src):void 0;return oo={...e,...n,...window.__NUXT__},oo.config?.public&&(oo.config.public=In(oo.config.public)),oo}async function vC(t){return await uO(t,ut()._payloadRevivers)}function VO(t,e){ut()._payloadRevivers[t]=e}const _C=[["NuxtError",t=>Qa(t)],["EmptyShallowRef",t=>hn(t==="_"?void 0:t==="0n"?BigInt(0):Ad(t))],["EmptyRef",t=>Le(t==="_"?void 0:t==="0n"?BigInt(0):Ad(t))],["ShallowRef",t=>hn(t)],["ShallowReactive",t=>ha(t)],["Ref",t=>Le(t)],["Reactive",t=>In(t)]];_C.push(["Island",({key:t,params:e,result:n})=>{const i=ut();return i.isHydrating||(i.payload.data[t]||=$fetch(`/__nuxt_island/${t}.json`,{responseType:"json",...e?{params:e}:{}}).then(r=>(i.payload.data[t]=r,r))),{html:"",...n}}]);const HO=Ht({name:"nuxt:revive-payload:client",order:-30,async setup(t){let e,n;for(const[i,r]of _C)VO(i,r);Object.assign(t.payload,([e,n]=Dr(()=>t.runWithContext(BO)),e=await e,n(),e)),delete window.__NUXT__}});async function pb(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const i={shouldRender:!0,tags:[]};if(await t.hooks.callHook("dom:beforeRender",i),!!i.shouldRender)return t._domUpdatePromise||(t._domUpdatePromise=new Promise(async r=>{const a=new Map,s=new Promise(h=>{t.resolveTags().then(g=>{h(g.map(v=>{const m=a.get(v._d)||0,p={tag:v,id:(m?`${v._d}:${m}`:v._d)||WE(v),shouldRender:!0};return v._d&&dC(v._d)&&a.set(v._d,m+1),p}))})});let o=t._dom;if(!o){o={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const h of["body","head"]){const g=n[h]?.children;for(const v of g){const m=v.tagName.toLowerCase();if(!zE.has(m))continue;const p=fC({tag:m,props:{}},{innerHTML:v.innerHTML,...v.getAttributeNames().reduce((y,_)=>(y[_]=v.getAttribute(_),y),{})||{}});if(p.key=v.getAttribute("data-hid")||void 0,p._d=C_(p)||WE(p),o.elMap.has(p._d)){let y=1,_=p._d;for(;o.elMap.has(_);)_=`${p._d}:${y++}`;o.elMap.set(_,v)}else o.elMap.set(p._d,v)}}}o.pendingSideEffects={...o.sideEffects},o.sideEffects={};function u(h,g,v){const m=`${h}:${g}`;o.sideEffects[m]=v,delete o.pendingSideEffects[m]}function c({id:h,$el:g,tag:v}){const m=v.tag.endsWith("Attrs");o.elMap.set(h,g),m||(v.textContent&&v.textContent!==g.textContent&&(g.textContent=v.textContent),v.innerHTML&&v.innerHTML!==g.innerHTML&&(g.innerHTML=v.innerHTML),u(h,"el",()=>{g?.remove(),o.elMap.delete(h)}));for(const p in v.props){if(!Object.prototype.hasOwnProperty.call(v.props,p))continue;const y=v.props[p];if(p.startsWith("on")&&typeof y=="function"){const b=g?.dataset;if(b&&b[`${p}fired`]){const x=p.slice(0,-5);y.call(g,new Event(x.substring(2)))}g.getAttribute(`data-${p}`)!==""&&((v.tag==="bodyAttrs"?n.defaultView:g).addEventListener(p.substring(2),y.bind(g)),g.setAttribute(`data-${p}`,""));continue}const _=`attr:${p}`;if(p==="class"){if(!y)continue;for(const b of y)m&&u(h,`${_}:${b}`,()=>g.classList.remove(b)),!g.classList.contains(b)&&g.classList.add(b)}else if(p==="style"){if(!y)continue;for(const[b,x]of y)u(h,`${_}:${b}`,()=>{g.style.removeProperty(b)}),g.style.setProperty(b,x)}else y!==!1&&y!==null&&(g.getAttribute(p)!==y&&g.setAttribute(p,y===!0?"":String(y)),m&&u(h,_,()=>g.removeAttribute(p)))}}const l=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},f=await s;for(const h of f){const{tag:g,shouldRender:v,id:m}=h;if(v){if(g.tag==="title"){n.title=g.textContent,u("title","",()=>n.title=o.title);continue}h.$el=h.$el||o.elMap.get(m),h.$el?c(h):zE.has(g.tag)&&l.push(h)}}for(const h of l){const g=h.tag.tagPosition||"head";h.$el=n.createElement(h.tag.tag),c(h),d[g]=d[g]||n.createDocumentFragment(),d[g].appendChild(h.$el)}for(const h of f)await t.hooks.callHook("dom:renderTag",h,n,u);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const h in o.pendingSideEffects)o.pendingSideEffects[h]();t._dom=o,await t.hooks.callHook("dom:rendered",{renders:f}),r()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise}function zO(t={}){const e=t.domOptions?.render||pb;t.document=t.document||(typeof window<"u"?document:void 0);const n=t.document?.head.querySelector('script[id="unhead:payload"]')?.innerHTML||!1;return CO({...t,plugins:[...t.plugins||[],{key:"client",hooks:{"entries:updated":e}}],init:[n?JSON.parse(n):!1,...t.init||[]]})}function $O(t,e){let n=0;return()=>{const i=++n;e(()=>{n===i&&t()})}}function WO(t={}){const e=zO({domOptions:{render:$O(()=>pb(e),n=>setTimeout(n,0))},...t});return e.install=LO(e),e}const GO={disableDefaults:!0},qO=Ht({name:"nuxt:head",enforce:"pre",setup(t){const e=WO(GO);t.vueApp.use(e);{let n=!0;const i=async()=>{n=!1,await pb(e)};e.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!n}),t.hooks.hook("page:start",()=>{n=!0}),t.hooks.hook("page:finish",()=>{t.isHydrating||i()}),t.hooks.hook("app:error",i),t.hooks.hook("app:suspense:resolve",i)}}});const Hu=typeof document<"u";function bC(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function jO(t){return t.__esModule||t[Symbol.toStringTag]==="Module"||t.default&&bC(t.default)}const Xt=Object.assign;function Mg(t,e){const n={};for(const i in e){const r=e[i];n[i]=Fr(r)?r.map(t):t(r)}return n}const id=()=>{},Fr=Array.isArray;function KE(t,e){const n={};for(const i in t)n[i]=i in e?e[i]:t[i];return n}const yC=/#/g,XO=/&/g,YO=/\//g,KO=/=/g,ZO=/\?/g,EC=/\+/g,JO=/%5B/g,QO=/%5D/g,xC=/%5E/g,eN=/%60/g,AC=/%7B/g,tN=/%7C/g,SC=/%
vendor: 24,170 bytes, line 4
47D/g,nN=/%20/g;function mb(t){return t==null?"":encodeURI(""+t).replace(tN,"|").replace(JO,"[").replace(QO,"]")}function iN(t){return mb(t).replace(AC,"{").replace(SC,"}").replace(xC,"^")}function D_(t){return mb(t).replace(EC,"%2B").replace(nN,"+").replace(yC,"%23").replace(XO,"%26").replace(eN,"`").replace(AC,"{").replace(SC,"}").replace(xC,"^")}function rN(t){return D_(t).replace(KO,"%3D")}function aN(t){return mb(t).replace(yC,"%23").replace(ZO,"%3F")}function sN(t){return aN(t).replace(YO,"%2F")}function wd(t){if(t==null)return null;try{return decodeURIComponent(""+t)}catch{}return""+t}const oN=/\/$/,uN=t=>t.replace(oN,"");function Cg(t,e,n="/"){let i,r={},a="",s="";const o=e.indexOf("#");let u=e.indexOf("?");return u=o>=0&&u>o?-1:u,u>=0&&(i=e.slice(0,u),a=e.slice(u,o>0?o:e.length),r=t(a.slice(1))),o>=0&&(i=i||e.slice(0,o),s=e.slice(o,e.length)),i=fN(i??e,n),{fullPath:i+a+s,path:i,query:r,hash:wd(s)}}function lN(t,e){const n=e.query?t(e.query):"";return e.path+(n&&"?")+n+(e.hash||"")}function ZE(t,e){return!e||!t.toLowerCase().startsWith(e.toLowerCase())?t:t.slice(e.length)||"/"}function cN(t,e,n){const i=e.matched.length-1,r=n.matched.length-1;return i>-1&&i===r&&Pl(e.matched[i],n.matched[r])&&TC(e.params,n.params)&&t(e.query)===t(n.query)&&e.hash===n.hash}function Pl(t,e){return(t.aliasOf||t)===(e.aliasOf||e)}function TC(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(!dN(t[n],e[n]))return!1;return!0}function dN(t,e){return Fr(t)?JE(t,e):Fr(e)?JE(e,t):t===e}function JE(t,e){return Fr(e)?t.length===e.length&&t.every((n,i)=>n===e[i]):t.length===1&&t[0]===e}function fN(t,e){if(t.startsWith("/"))return t;if(!t)return e;const n=e.split("/"),i=t.split("/"),r=i[i.length-1];(r===".."||r===".")&&i.push("");let a=n.length-1,s,o;for(s=0;s<i.length;s++)if(o=i[s],o!==".")if(o==="..")a>1&&a--;else break;return n.slice(0,a).join("/")+"/"+i.slice(s).join("/")}const cr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let L_=(function(t){return t.pop="pop",t.push="push",t})({}),Dg=(function(t){return t.back="back",t.forward="forward",t.unknown="",t})({});function hN(t){if(!t)if(Hu){const e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),uN(t)}const pN=/^[^#]+#/;function mN(t,e){return t.replace(pN,"#")+e}function gN(t,e){const n=document.documentElement.getBoundingClientRect(),i=t.getBoundingClientRect();return{behavior:e.behavior,left:i.left-n.left-(e.left||0),top:i.top-n.top-(e.top||0)}}const M0=()=>({left:window.scrollX,top:window.scrollY});function vN(t){let e;if("el"in t){const n=t.el,i=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;e=gN(r,t)}else e=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(e):window.scrollTo(e.left!=null?e.left:window.scrollX,e.top!=null?e.top:window.scrollY)}function QE(t,e){return(history.state?history.state.position-e:-1)+t}const R_=new Map;function _N(t,e){R_.set(t,e)}function bN(t){const e=R_.get(t);return R_.delete(t),e}function yN(t){return typeof t=="string"||t&&typeof t=="object"}function wC(t){return typeof t=="string"||typeof t=="symbol"}let Sn=(function(t){return t[t.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",t[t.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",t[t.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",t[t.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",t[t.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",t})({});const MC=Symbol("");Sn.MATCHER_NOT_FOUND+"",Sn.NAVIGATION_GUARD_REDIRECT+"",Sn.NAVIGATION_ABORTED+"",Sn.NAVIGATION_CANCELLED+"",Sn.NAVIGATION_DUPLICATED+"";function kl(t,e){return Xt(new Error,{type:t,[MC]:!0},e)}function Xr(t,e){return t instanceof Error&&MC in t&&(e==null||!!(t.type&e))}const EN=["params","query","hash"];function xN(t){if(typeof t=="string")return t;if(t.path!=null)return t.path;const e={};for(const n of EN)n in t&&(e[n]=t[n]);return JSON.stringify(e,null,2)}function AN(t){const e={};if(t===""||t==="?")return e;const n=(t[0]==="?"?t.slice(1):t).split("&");for(let i=0;i<n.length;++i){const r=n[i].replace(EC," "),a=r.indexOf("="),s=wd(a<0?r:r.slice(0,a)),o=a<0?null:wd(r.slice(a+1));if(s in e){let u=e[s];Fr(u)||(u=e[s]=[u]),u.push(o)}else e[s]=o}return e}function ex(t){let e="";for(let n in t){const i=t[n];if(n=rN(n),i==null){i!==void 0&&(e+=(e.length?"&":"")+n);continue}(Fr(i)?i.map(r=>r&&D_(r)):[i&&D_(i)]).forEach(r=>{r!==void 0&&(e+=(e.length?"&":"")+n,r!=null&&(e+="="+r))})}return e}function SN(t){const e={};for(const n in t){const i=t[n];i!==void 0&&(e[n]=Fr(i)?i.map(r=>r==null?null:""+r):i==null?i:""+i)}return e}const CC=Symbol(""),tx=Symbol(""),gb=Symbol(""),vb=Symbol(""),I_=Symbol("");function uc(){let t=[];function e(i){return t.push(i),()=>{const r=t.indexOf(i);r>-1&&t.splice(r,1)}}function n(){t=[]}return{add:e,list:()=>t.slice(),reset:n}}function TN(t,e,n){const i=()=>{t[e].delete(n)};xa(i),Y2(i),X2(()=>{t[e].add(n)}),t[e].add(n)}function Cle(t){const e=wn(CC,{}).value;e&&TN(e,"updateGuards",t)}function Ls(t,e,n,i,r,a=s=>s()){const s=i&&(i.enterCallbacks[r]=i.enterCallbacks[r]||[]);return()=>new Promise((o,u)=>{const c=f=>{f===!1?u(kl(Sn.NAVIGATION_ABORTED,{from:n,to:e})):f instanceof Error?u(f):yN(f)?u(kl(Sn.NAVIGATION_GUARD_REDIRECT,{from:e,to:f})):(s&&i.enterCallbacks[r]===s&&typeof f=="function"&&s.push(f),o())},l=a(()=>t.call(i&&i.instances[r],e,n,c));let d=Promise.resolve(l);t.length<3&&(d=d.then(c)),d.catch(f=>u(f))})}function Lg(t,e,n,i,r=a=>a()){const a=[];for(const s of t)for(const o in s.components){let u=s.components[o];if(!(e!=="beforeRouteEnter"&&!s.instances[o]))if(bC(u)){const c=(u.__vccOpts||u)[e];c&&a.push(Ls(c,n,i,s,o,r))}else{let c=u();a.push(()=>c.then(l=>{if(!l)throw new Error(`Couldn't resolve component "${o}" at "${s.path}"`);const d=jO(l)?l.default:l;s.mods[o]=l,s.components[o]=d;const f=(d.__vccOpts||d)[e];return f&&Ls(f,n,i,s,o,r)()}))}}return a}function wN(t,e){const n=[],i=[],r=[],a=Math.max(e.matched.length,t.matched.length);for(let s=0;s<a;s++){const o=e.matched[s];o&&(t.matched.find(c=>Pl(c,o))?i.push(o):n.push(o));const u=t.matched[s];u&&(e.matched.find(c=>Pl(c,u))||r.push(u))}return[n,i,r]}let MN=()=>location.protocol+"//"+location.host;function DC(t,e){const{pathname:n,search:i,hash:r}=e,a=t.indexOf("#");if(a>-1){let s=r.includes(t.slice(a))?t.slice(a).length:1,o=r.slice(s);return o[0]!=="/"&&(o="/"+o),ZE(o,"")}return ZE(n,t)+i+r}function CN(t,e,n,i){let r=[],a=[],s=null;const o=({state:f})=>{const h=DC(t,location),g=n.value,v=e.value;let m=0;if(f){if(n.value=h,e.value=f,s&&s===g){s=null;return}m=v?f.position-v.position:0}else i(h);r.forEach(p=>{p(n.value,g,{delta:m,type:L_.pop,direction:m?m>0?Dg.forward:Dg.back:Dg.unknown})})};function u(){s=n.value}function c(f){r.push(f);const h=()=>{const g=r.indexOf(f);g>-1&&r.splice(g,1)};return a.push(h),h}function l(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(Xt({},f.state,{scroll:M0()}),"")}}function d(){for(const f of a)f();a=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",l),document.removeEventListener("visibilitychange",l)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",l),document.addEventListener("visibilitychange",l),{pauseListeners:u,listen:c,destroy:d}}function nx(t,e,n,i=!1,r=!1){return{back:t,current:e,forward:n,replaced:i,position:window.history.length,scroll:r?M0():null}}function DN(t){const{history:e,location:n}=window,i={value:DC(t,n)},r={value:e.state};r.value||a(i.value,{back:null,current:i.value,forward:null,position:e.length-1,replaced:!0,scroll:null},!0);function a(u,c,l){const d=t.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?t:t.slice(d))+u:MN()+t+u;try{e[l?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),n[l?"replace":"assign"](f)}}function s(u,c){a(u,Xt({},e.state,nx(r.value.back,u,r.value.forward,!0),c,{position:r.value.position}),!0),i.value=u}function o(u,c){const l=Xt({},r.value,e.state,{forward:u,scroll:M0()});a(l.current,l,!0),a(u,Xt({},nx(i.value,u,null),{position:l.position+1},c),!1),i.value=u}return{location:i,state:r,push:o,replace:s}}function LC(t){t=hN(t);const e=DN(t),n=CN(t,e.state,e.location,e.replace);function i(a,s=!0){s||n.pauseListeners(),history.go(a)}const r=Xt({location:"",base:t,go:i,createHref:mN.bind(null,t)},e,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>e.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>e.state.value}),r}function LN(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),LC(t)}let Uo=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.Group=2]="Group",t})({});var Bn=(function(t){return t[t.Static=0]="Static",t[t.Param=1]="Param",t[t.ParamRegExp=2]="ParamRegExp",t[t.ParamRegExpEnd=3]="ParamRegExpEnd",t[t.EscapeNext=4]="EscapeNext",t})(Bn||{});const RN={type:Uo.Static,value:""},IN=/[a-zA-Z0-9_]/;function PN(t){if(!t)return[[]];if(t==="/")return[[RN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function e(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=Bn.Static,i=n;const r=[];let a;function s(){a&&r.push(a),a=[]}let o=0,u,c="",l="";function d(){c&&(n===Bn.Static?a.push({type:Uo.Static,value:c}):n===Bn.Param||n===Bn.ParamRegExp||n===Bn.ParamRegExpEnd?(a.length>1&&(u==="*"||u==="+")&&e(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Uo.Param,value:c,regexp:l,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):e("Invalid state to consume buffer"),c="")}function f(){c+=u}for(;o<t.length;){if(u=t[o++],u==="\\"&&n!==Bn.ParamRegExp){i=n,n=Bn.EscapeNext;continue}switch(n){case Bn.Static:u==="/"?(c&&d(),s()):u===":"?(d(),n=Bn.Param):f();break;case Bn.EscapeNext:f(),n=i;break;case Bn.Param:u==="("?n=Bn.ParamRegExp:IN.test(u)?f():(d(),n=Bn.Static,u!=="*"&&u!=="?"&&u!=="+"&&o--);break;case Bn.ParamRegExp:u===")"?l[l.length-1]=="\\"?l=l.slice(0,-1)+u:n=Bn.ParamRegExpEnd:l+=u;break;case Bn.ParamRegExpEnd:d(),n=Bn.Static,u!=="*"&&u!=="?"&&u!=="+"&&o--,l="";break;default:e("Unknown state");break}}return n===Bn.ParamRegExp&&e(`Unfinished custom RegExp for param "${c}"`),d(),s(),r}const ix="[^/]+?",kN={sensitive:!1,strict:!1,start:!0,end:!0};var Ai=(function(t){return t[t._multiplier=10]="_multiplier",t[t.Root=90]="Root",t[t.Segment=40]="Segment",t[t.SubSegment=30]="SubSegment",t[t.Static=40]="Static",t[t.Dynamic=20]="Dynamic",t[t.BonusCustomRegExp=10]="BonusCustomRegExp",t[t.BonusWildcard=-50]="BonusWildcard",t[t.BonusRepeatable=-20]="BonusRepeatable",t[t.BonusOptional=-8]="BonusOptional",t[t.BonusStrict=.7000000000000001]="BonusStrict",t[t.BonusCaseSensitive=.25]="BonusCaseSensitive",t})(Ai||{});const ON=/[.+*?^${}()[\]/\\]/g;function NN(t,e){const n=Xt({},kN,e),i=[];let r=n.start?"^":"";const a=[];for(const c of t){const l=c.length?[]:[Ai.Root];n.strict&&!c.length&&(r+="/");for(let d=0;d<c.length;d++){const f=c[d];let h=Ai.Segment+(n.sensitive?Ai.BonusCaseSensitive:0);if(f.type===Uo.Static)d||(r+="/"),r+=f.value.replace(ON,"\\$&"),h+=Ai.Static;else if(f.type===Uo.Param){const{value:g,repeatable:v,optional:m,regexp:p}=f;a.push({name:g,repeatable:v,optional:m});const y=p||ix;if(y!==ix){h+=Ai.BonusCustomRegExp;try{`${y}`}catch(b){throw new Error(`Invalid custom RegExp for param "${g}" (${y}): `+b.message)}}let _=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;d||(_=m&&c.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),r+=_,h+=Ai.Dynamic,m&&(h+=Ai.BonusOptional),v&&(h+=Ai.BonusRepeatable),y===".*"&&(h+=Ai.BonusWildcard)}l.push(h)}i.push(l)}if(n.strict&&n.end){const c=i.length-1;i[c][i[c].length-1]+=Ai.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const s=new RegExp(r,n.sensitive?"":"i");function o(c){const l=c.match(s),d={};if(!l)return null;for(let f=1;f<l.length;f++){const h=l[f]||"",g=a[f-1];d[g.name]=h&&g.repeatable?h.split("/"):h}return d}function u(c){let l="",d=!1;for(const f of t){(!d||!l.endsWith("/"))&&(l+="/"),d=!1;for(const h of f)if(h.type===Uo.Static)l+=h.value;else if(h.type===Uo.Param){const{value:g,repeatable:v,optional:m}=h,p=g in c?c[g]:"";if(Fr(p)&&!v)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const y=Fr(p)?p.join("/"):p;if(!y)if(m)f.length<2&&(l.endsWith("/")?l=l.slice(0,-1):d=!0);else throw new Error(`Missing required param "${g}"`);l+=y}}return l||"/"}return{re:s,score:i,keys:a,parse:o,stringify:u}}function UN(t,e){let n=0;for(;n<t.length&&n<e.length;){const i=e[n]-t[n];if(i)return i;n++}return t.length<e.length?t.length===1&&t[0]===Ai.Static+Ai.Segment?-1:1:t.length>e.length?e.length===1&&e[0]===Ai.Static+Ai.Segment?1:-1:0}function RC(t,e){let n=0;const i=t.score,r=e.score;for(;n<i.length&&n<r.length;){const a=UN(i[n],r[n]);if(a)return a;n++}if(Math.abs(r.length-i.length)===1){if(rx(i))return 1;if(rx(r))return-1}return r.length-i.length}function rx(t){const e=t[t.length-1];return t.length>0&&e[e.length-1]<0}const FN={strict:!1,end:!0,sensitive:!1};function BN(t,e,n){const i=NN(PN(t.path),n),r=Xt(i,{record:t,parent:e,children:[],alias:[]});return e&&!r.record.aliasOf==!e.record.aliasOf&&e.children.push(r),r}function VN(t,e){const n=[],i=new Map;e=KE(FN,e);function r(d){return i.get(d)}function a(d,f,h){const g=!h,v=sx(d);v.aliasOf=h&&h.record;const m=KE(e,d),p=[v];if("alias"in d){const b=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of b)p.push(sx(Xt({},v,{components:h?h.record.components:v.components,path:x,aliasOf:h?h.record:v})))}let y,_;for(const b of p){const{path:x}=b;if(f&&x[0]!=="/"){const w=f.record.path,D=w[w.length-1]==="/"?"":"/";b.path=f.record.path+(x&&D+x)}if(y=BN(b,f,m),h?h.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),g&&d.name&&!ox(y)&&s(d.name)),IC(y)&&u(y),v.children){const w=v.children;for(let D=0;D<w.length;D++)a(w[D],y,h&&h.children[D])}h=h||y}return _?()=>{s(_)}:id}function s(d){if(wC(d)){const f=i.get(d);f&&(i.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(s),f.alias.forEach(s))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&i.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function o(){return n}function u(d){const f=$N(d,n);n.splice(f,0,d),d.record.name&&!ox(d)&&i.set(d.record.name,d)}function c(d,f){let h,g={},v,m;if("name"in d&&d.name){if(h=i.get(d.name),!h)throw kl(Sn.MATCHER_NOT_FOUND,{location:d});m=h.record.name,g=Xt(ax(f.params,h.keys.filter(_=>!_.optional).concat(h.parent?h.parent.keys.filter(_=>_.optional):[]).map(_=>_.name)),d.params&&ax(d.params,h.keys.map(_=>_.name))),v=h.stringify(g)}else if(d.path!=null)v=d.path,h=n.find(_=>_.re.test(v)),h&&(g=h.parse(v),m=h.record.name);else{if(h=f.name?i.get(f.name):n.find(_=>_.re.test(f.path)),!h)throw kl(Sn.MATCHER_NOT_FOUND,{location:d,currentLocation:f});m=h.record.name,g=Xt({},f.params,d.params),v=h.stringify(g)}const p=[];let y=h;for(;y;)p.unshift(y.record),y=y.parent;return{name:m,path:v,params:g,matched:p,meta:zN(p)}}t.forEach(d=>a(d));function l(){n.length=0,i.clear()}return{addRoute:a,resolve:c,removeRoute:s,clearRoutes:l,getRoutes:o,getRecordMatcher:r}}function ax(t,e){const n={};for(const i of e)i in t&&(n[i]=t[i]);return n}function sx(t){const e={path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:t.aliasOf,beforeEnter:t.beforeEnter,props:HN(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}};return Object.defineProperty(e,"mods",{value:{}}),e}function HN(t){const e={},n=t.props||!1;if("component"in t)e.default=n;else for(const i in t.components)e[i]=typeof n=="object"?n[i]:n;return e}function ox(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function zN(t){return t.reduce((e,n)=>Xt(e,n.meta),{})}function $N(t,e){let n=0,i=e.length;for(;n!==i;){const a=n+i>>1;RC(t,e[a])<0?i=a:n=a+1}const r=WN(t);return r&&(i=e.lastIndexOf(r,i-1)),i}function WN(t){let e=t;for(;e=e.parent;)if(IC(e)&&RC(t,e)===0)return e}function IC({record:t}){return!!(t.name||t.components&&Object.keys(t.components).length||t.redirect)}function ux(t){const e=wn(gb),n=wn(vb),i=Ve(()=>{const u=ze(t.to);return e.resolve(u)}),r=Ve(()=>{const{matched:u}=i.value,{length:c}=u,l=u[c-1],d=n.matched;if(!l||!d.length)return-1;const f=d.findIndex(Pl.bind(null,l));if(f>-1)return f;const h=lx(u[c-2]);return c>1&&lx(l)===h&&d[d.length-1].path!==h?d.findIndex(Pl.bind(null,u[c-2])):f}),a=Ve(()=>r.value>-1&&YN(n.params,i.value.params)),s=Ve(()=>r.value>-1&&r.value===n.matched.length-1&&TC(n.params,i.value.params));function o(u={}){if(XN(u)){const c=e[ze(t.replace)?"replace":"push"](ze(t.to)).catch(id);return t.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:i,href:Ve(()=>i.value.href),isActive:a,isExactActive:s,navigate:o}}function GN(t){return t.length===1?t[0]:t}const qN=qn({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"},viewTransition:Boolean},useLink:ux,setup(t,{slots:e}){const n=In(ux(t)),{options:i}=wn(gb),r=Ve(()=>({[cx(t.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[cx(t.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=e.default&&GN(e.default(n));return t.custom?a:Vt("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},a)}}}),jN=qN;function XN(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function YN(t,e){for(const n in e){const i=e[n],r=t[n];if(typeof i=="string"){if(i!==r)return!1}else if(!Fr(r)||r.length!==i.length||i.some((a,s)=>a!==r[s]))return!1}return!0}function lx(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const cx=(t,e,n)=>t??e??n,KN=qn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:e,slots:n}){const i=wn(I_),r=Ve(()=>t.route||i.value),a=wn(tx,0),s=Ve(()=>{let c=ze(a);const{matched:l}=r.value;let d;for(;(d=l[c])&&!d.components;)c++;return c}),o=Ve(()=>r.value.matched[s.value]);Ja(tx,Ve(()=>s.value+1)),Ja(CC,o),Ja(I_,r);const u=Le();return st(()=>[u.value,o.value,t.name],([c,l,d],[f,h,g])=>{l&&(l.instances[d]=c,h&&h!==l&&c&&c===f&&(l.leaveGuards.size||(l.leaveGuards=h.leaveGuards),l.updateGuards.size||(l.updateGuards=h.updateGuards))),c&&l&&(!h||!Pl(l,h)||!f)&&(l.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=r.value,l=t.name,d=o.value,f=d&&d.components[l];if(!f)return dx(n.default,{Component:f,route:c});const h=d.props[l],g=h?h===!0?c.params:typeof h=="function"?h(c):h:null,m=Vt(f,Xt({},g,e,{onVnodeUnmounted:p=>{p.component.isUnmounted&&(d.instances[l]=null)},ref:u}));return dx(n.default,{Component:m,route:c})||m}}});function dx(t,e){if(!t)return null;const n=t(e);return n.length===1?n[0]:n}const PC=KN;function ZN(t){const e=VN(t.routes,t),n=t.parseQuery||AN,i=t.stringifyQuery||ex,r=t.history,a=uc(),s=uc(),o=uc(),u=hn(cr);let c=cr;Hu&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=Mg.bind(null,W=>""+W),d=Mg.bind(null,sN),f=Mg.bind(null,wd);function h(W,be){let ge,De;return wC(W)?(ge=e.getRecordMatcher(W),De=be):De=W,e.addRoute(De,ge)}function g(W){const be=e.getRecordMatcher(W);be&&e.removeRoute(be)}function v(){return e.getRoutes().map(W=>W.record)}function m(W){return!!e.getRecordMatcher(W)}function p(W,be){if(be=Xt({},be||u.value),typeof W=="string"){const K=Cg(n,W,be.path),ue=e.resolve({path:K.path},be),Se=r.createHref(K.fullPath);return Xt(K,ue,{params:f(ue.params),hash:wd(K.hash),redirectedFrom:void 0,href:Se})}let ge;if(W.path!=null)ge=Xt({},W,{path:Cg(n,W.path,be.path).path});else{const K=Xt({},W.params);for(const ue in K)K[ue]==null&&delete K[ue];ge=Xt({},W,{params:d(K)}),be.params=d(be.params)}const De=e.resolve(ge,be),ae=W.hash||"";De.params=l(f(De.params));const Fe=lN(i,Xt({},W,{hash:iN(ae),path:De.path})),U=r.createHref(Fe);return Xt({fullPath:Fe,hash:ae,query:i===ex?SN(W.query):W.query||{}},De,{redirectedFrom:void 0,href:U})}function y(W){return typeof W=="string"?Cg(n,W,u.value.path):Xt({},W)}function _(W,be){if(c!==W)return kl(Sn.NAVIGATION_CANCELLED,{from:be,to:W})}function b(W){return D(W)}function x(W){return b(Xt(y(W),{replace:!0}))}function w(W,be){const ge=W.matched[W.matched.length-1];if(ge&&ge.redirect){const{redirect:De}=ge;let ae=typeof De=="function"?De(W,be):De;return typeof ae=="string"&&(ae=ae.includes("?")||ae.includes("#")?ae=y(ae):{path:ae},ae.params={}),Xt({query:W.query,hash:W.hash,params:ae.path!=null?{}:W.params},ae)}}function D(W,be){const ge=c=p(W),De=u.value,ae=W.state,Fe=W.force,U=W.replace===!0,K=w(ge,De);if(K)return D(Xt(y(K),{state:typeof K=="object"?Xt({},ae,K.state):ae,force:Fe,replace:U}),be||ge);const ue=ge;ue.redirectedFrom=be;let Se;return!Fe&&cN(i,De,ge)&&(Se=kl(Sn.NAVIGATION_DUPLICATED,{to:ue,from:De}),xe(De,De,!0,!1)),(Se?Promise.resolve(Se):S(ue,De)).catch(k=>Xr(k)?Xr(k,Sn.NAVIGATION_GUARD_REDIRECT)?k:le(k):$(k,ue,De)).then(k=>{if(k){if(Xr(k,Sn.NAVIGATION_GUARD_REDIRECT))return D(Xt({replace:U},y(k.to),{state:typeof k.to=="object"?Xt({},ae,k.to.state):ae,force:Fe}),be||ue)}else k=V(ue,De,!0,U,ae);return B(ue,De,k),k})}function O(W,be){const ge=_(W,be);return ge?Promise.reject(ge):Promise.resolve()}function M(W){const be=H.values().next().value;return be&&typeof be.runWithContext=="function"?be.runWithContext(W):W()}function S(W,be){let ge;const[De,ae,Fe]=wN(W,be);ge=Lg(De.reverse(),"beforeRouteLeave",W,be);for(const K of De)K.leaveGuards.forEach(ue=>{ge.push(Ls(ue,W,be))});const U=O.bind(null,W,be);return ge.push(U),_e(ge).then(()=>{ge=[];for(const K of a.list())ge.push(Ls(K,W,be));return ge.push(U),_e(ge)}).then(()=>{ge=Lg(ae,"beforeRouteUpdate",W,be);for(const K of ae)K.updateGuards.forEach(ue=>{ge.push(Ls(ue,W,be))});return ge.push(U),_e(ge)}).then(()=>{ge=[];for(const K of Fe)if(K.beforeEnter)if(Fr(K.beforeEnter))for(const ue of K.beforeEnter)ge.push(Ls(ue,W,be));else ge.push(Ls(K.beforeEnter,W,be));return ge.push(U),_e(ge)}).then(()=>(W.matched.forEach(K=>K.enterCallbacks={}),ge=Lg(Fe,"beforeRouteEnter",W,be,M),ge.push(U),_e(ge))).then(()=>{ge=[];for(const K of s.list())ge.push(Ls(K,W,be));return ge.push(U),_e(ge)}).catch(K=>Xr(K,Sn.NAVIGATION_CANCELLED)?K:Promise.reject(K))}function B(W,be,ge){o.list().forEach(De=>M(()=>De(W,be,ge)))}function V(W,be,ge,De,ae){const Fe=_(W,be);if(Fe)return Fe;const U=be===cr,K=Hu?history.state:{};ge&&(De||U?r.replace(W.fullPath,Xt({scroll:U&&K&&K.scroll},ae)):r.push(W.fullPath,ae)),u.value=W,xe(W,be,ge,U),le()}let z;function Q(){z||(z=r.listen((W,be,ge)=>{if(!ie.listening)return;const De=p(W),ae=w(De,ie.currentRoute.value);if(ae){D(Xt(ae,{replace:!0,force:!0}),De).catch(id);return}c=De;const Fe=u.value;Hu&&_N(QE(Fe.fullPath,ge.delta),M0()),S(De,Fe).catch(U=>Xr(U,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_CANCELLED)?U:Xr(U,Sn.NAVIGATION_GUARD_REDIRECT)?(D(Xt(y(U.to),{force:!0}),De).then(K=>{Xr(K,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&!ge.delta&&ge.type===L_.pop&&r.go(-1,!1)}).catch(id),Promise.reject()):(ge.delta&&r.go(-ge.delta,!1),$(U,De,Fe))).then(U=>{U=U||V(De,Fe,!1),U&&(ge.delta&&!Xr(U,Sn.NAVIGATION_CANCELLED)?r.go(-ge.delta,!1):ge.type===L_.pop&&Xr(U,Sn.NAVIGATION_ABORTED|Sn.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),B(De,Fe,U)}).catch(id)}))}let Z=uc(),q=uc(),te;function $(W,be,ge){le(W);const De=q.list();return De.length?De.forEach(ae=>ae(W,be,ge)):console.error(W),Promise.reject(W)}function ee(){return te&&u.value!==cr?Promise.resolve():new Promise((W,be)=>{Z.add([W,be])})}
4function le(W){return te||(te=!W,Q(),Z.list().forEach(([be,ge])=>W?ge(W):be()),Z.reset()),W}function xe(W,be,ge,De){const{scrollBehavior:ae}=t;if(!Hu||!ae)return Promise.resolve();const Fe=!ge&&bN(QE(W.fullPath,0))||(De||!ge)&&history.state&&history.state.scroll||null;return Di().then(()=>ae(W,be,Fe)).then(U=>U&&vN(U)).catch(U=>$(U,W,be))}const J=W=>r.go(W);let ye;const H=new Set,ie={currentRoute:u,listening:!0,addRoute:h,removeRoute:g,clearRoutes:e.clearRoutes,hasRoute:m,getRoutes:v,resolve:p,options:t,push:b,replace:x,go:J,back:()=>J(-1),forward:()=>J(1),beforeEach:a.add,beforeResolve:s.add,afterEach:o.add,onError:q.add,isReady:ee,install(W){W.component("RouterLink",jN),W.component("RouterView",PC),W.config.globalProperties.$router=ie,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>ze(u)}),Hu&&!ye&&u.value===cr&&(ye=!0,b(r.location).catch(De=>{}));const be={};for(const De in cr)Object.defineProperty(be,De,{get:()=>u.value[De],enumerable:!0});W.provide(gb,ie),W.provide(vb,ha(be)),W.provide(I_,u);const ge=W.unmount;H.add(W),W.unmount=function(){H.delete(W),H.size<1&&(c=cr,z&&z(),z=null,u.value=cr,ye=!1,te=!1),ge()}}};function _e(W){return W.reduce((be,ge)=>be.then(()=>M(ge)),Promise.resolve())}return ie}function kC(t){return wn(vb)}const JN=/(:\w+)\([^)]+\)/g,QN=/(:\w+)[?+*]/g,eU=/:\w+/g,tU=(t,e)=>e.path.replace(JN,"$1").replace(QN,"$1").replace(eU,n=>t.params[n.slice(1)]?.toString()||""),P_=(t,e)=>{const n=t.route.matched.find(r=>r.components?.default===t.Component.type),i=e??n?.meta.key??(n&&tU(t.route,n));return typeof i=="function"?i(t.route):i},nU=(t,e)=>({default:()=>t?Vt(j5,t===!0?{}:t,e):e});function _b(t){return Array.isArray(t)?t:[t]}const iU="modulepreload",rU=function(t,e){return new URL(t,e).href},fx={},fe=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){let c=function(l){return Promise.all(l.map(d=>Promise.resolve(d).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};const s=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),u=o?.nonce||o?.getAttribute("nonce");r=c(n.map(l=>{if(l=rU(l,i),l in fx)return;fx[l]=!0;const d=l.endsWith(".css"),f=d?'[rel="stylesheet"]':"";if(i)for(let g=s.length-1;g>=0;g--){const v=s[g];if(v.href===l&&(!d||v.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${f}`))return;const h=document.createElement("link");if(h.rel=d?"stylesheet":iU,d||(h.as="script"),h.crossOrigin="",h.href=l,u&&h.setAttribute("nonce",u),document.head.appendChild(h),d)return new Promise((g,v)=>{h.addEventListener("load",g),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(s){const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s}return r.then(s=>{for(const o of s||[])o.status==="rejected"&&a(o.reason);return e().catch(a)})},hx={key:"retailers"},px={layout:"blank"},Rg=[{name:"index",path:"/",component:()=>fe(()=>import("./CaSP2tpP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{name:"index___en",path:"/en",component:()=>fe(()=>import("./CaSP2tpP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{name:"index___fr",path:"/fr",component:()=>fe(()=>import("./CaSP2tpP.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url)},{name:"factory___en",path:"/en/factory",component:()=>fe(()=>import("./DOpLqaKD.js"),__vite__mapDeps([15,16,1,2,3,4,17,18,19,20,21]),import.meta.url),children:[{name:"factory-article___en",path:":article(.*)*",component:()=>fe(()=>import("./D8YrkO5M.js"),__vite__mapDeps([22,23,24,7,8,9,10,11,12,13,25,26]),import.meta.url)},{name:"factory-nos-savoirs-faire___en",path:"nos-savoirs-faire",component:()=>fe(()=>import("./9CLl55KU.js"),__vite__mapDeps([27,23,24,17,18,9,10,11,12,13,25,28]),import.meta.url)},{name:"factory-nos-savoirs-faire-music___en",path:"nos-savoirs-faire/music",component:()=>fe(()=>import("./BbdKkVwu.js"),__vite__mapDeps([29,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,9,10,11,12,13,54]),import.meta.url)}]},{name:"factory___fr",path:"/fr/factory",component:()=>fe(()=>import("./DOpLqaKD.js"),__vite__mapDeps([15,16,1,2,3,4,17,18,19,20,21]),import.meta.url),children:[{name:"factory-article___fr",path:":article(.*)*",component:()=>fe(()=>import("./D8YrkO5M.js"),__vite__mapDeps([22,23,24,7,8,9,10,11,12,13,25,26]),import.meta.url)},{name:"factory-nos-savoirs-faire___fr",path:"nos-savoirs-faire",component:()=>fe(()=>import("./9CLl55KU.js"),__vite__mapDeps([27,23,24,17,18,9,10,11,12,13,25,28]),import.meta.url)},{name:"factory-nos-savoirs-faire-music___fr",path:"nos-savoirs-faire/music",component:()=>fe(()=>import("./BbdKkVwu.js"),__vite__mapDeps([29,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,9,10,11,12,13,54]),import.meta.url)}]},{name:"creations___en",path:"/en/creations",component:()=>fe(()=>import("./TgtmrTlQ.js"),__vite__mapDeps([55,56,21,26]),import.meta.url),children:[{name:"creations-family___en",path:":family()",component:()=>fe(()=>import("./Dmjhne5F.js"),__vite__mapDeps([57,58,23,24,59,1,2,3,4,44,45,46,47,9,10,11,12,13,16,17,18,19,20,56,60]),import.meta.url)},{name:"creations-family-product___en",path:":family()/:product()",component:()=>fe(()=>import("./FxMlb9Hp.js"),__vite__mapDeps([61,1,2,3,4,62,32,33,63,64,65,58,23,24,59,9,10,11,12,13,7,8,16,17,18,19,20,56,66]),import.meta.url)}]},{name:"creations___fr",path:"/fr/creations",component:()=>fe(()=>import("./TgtmrTlQ.js"),__vite__mapDeps([55,56,21,26]),import.meta.url),children:[{name:"creations-family___fr",path:":family()",component:()=>fe(()=>import("./Dmjhne5F.js"),__vite__mapDeps([57,58,23,24,59,1,2,3,4,44,45,46,47,9,10,11,12,13,16,17,18,19,20,56,60]),import.meta.url)},{name:"creations-family-product___fr",path:":family()/:product()",component:()=>fe(()=>import("./FxMlb9Hp.js"),__vite__mapDeps([61,1,2,3,4,62,32,33,63,64,65,58,23,24,59,9,10,11,12,13,7,8,16,17,18,19,20,56,66]),import.meta.url)}]},{name:"tests-map___en",path:"/en/tests/map",component:()=>fe(()=>import("./C-zuaCyv.js"),__vite__mapDeps([67,68,69,70]),import.meta.url)},{name:"tests-map___fr",path:"/fr/tests/map",component:()=>fe(()=>import("./C-zuaCyv.js"),__vite__mapDeps([67,68,69,70]),import.meta.url)},{name:"revendeurs___en",path:"/en/revendeurs",meta:hx||{},component:()=>fe(()=>import("./CRryx78W.js"),__vite__mapDeps([71,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,72,73,68,69,52,53,45,46,9,10,11,12,13,74,75]),import.meta.url),children:[{name:"revendeurs-retailer___en",path:":retailer?",component:()=>fe(()=>import("./DQoQxxTo.js"),[],import.meta.url)}]},{name:"revendeurs___fr",path:"/fr/revendeurs",meta:hx||{},component:()=>fe(()=>import("./CRryx78W.js"),__vite__mapDeps([71,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,72,73,68,69,52,53,45,46,9,10,11,12,13,74,75]),import.meta.url),children:[{name:"revendeurs-retailer___fr",path:":retailer?",component:()=>fe(()=>import("./DQoQxxTo.js"),[],import.meta.url)}]},{name:"test-email___en",path:"/en/test-email",component:()=>fe(()=>import("./qAHulyYJ.js"),__vite__mapDeps([76,77,78,79]),import.meta.url)},{name:"test-email___fr",path:"/fr/test-email",component:()=>fe(()=>import("./qAHulyYJ.js"),__vite__mapDeps([76,77,78,79]),import.meta.url)},{name:"tests-logo___en",path:"/en/tests/logo",component:()=>fe(()=>import("./DdYGykQ3.js"),__vite__mapDeps([80,81]),import.meta.url)},{name:"tests-logo___fr",path:"/fr/tests/logo",component:()=>fe(()=>import("./DdYGykQ3.js"),__vite__mapDeps([80,81]),import.meta.url)},{name:"forms___en",path:"/en/forms",component:()=>fe(()=>import("./CyY6S9vr.js"),[],import.meta.url)},{name:"forms___fr",path:"/fr/forms",component:()=>fe(()=>import("./CyY6S9vr.js"),[],import.meta.url)},{name:"tests___en",path:"/en/tests",component:()=>fe(()=>import("./C88jKdxc.js"),[],import.meta.url)},{name:"tests___fr",path:"/fr/tests",component:()=>fe(()=>import("./C88jKdxc.js"),[],import.meta.url)},{name:"default___en",path:"/en/:default(.*)*",component:()=>fe(()=>import("./CMNIwy-t.js"),__vite__mapDeps([82,23,24,9,10,11,12,13,26]),import.meta.url)},{name:"default___fr",path:"/fr/:default(.*)*",component:()=>fe(()=>import("./CMNIwy-t.js"),__vite__mapDeps([82,23,24,9,10,11,12,13,26]),import.meta.url)},{name:"presse___en",path:"/en/press",component:()=>fe(()=>import("./CGWtqHFb.js"),__vite__mapDeps([83,23,24,84,26,85,48,49,50,51,44,45,46,47,9,10,11,12,13,86]),import.meta.url)},{name:"presse___fr",path:"/fr/presse",component:()=>fe(()=>import("./CGWtqHFb.js"),__vite__mapDeps([83,23,24,84,26,85,48,49,50,51,44,45,46,47,9,10,11,12,13,86]),import.meta.url)},{name:"tools-config___en",path:"/en/tools/config",meta:px||{},component:()=>fe(()=>import("./CJ8hAZqF.js"),__vite__mapDeps([87,88,89]),import.meta.url)},{name:"tools-config___fr",path:"/fr/tools/config",meta:px||{},component:()=>fe(()=>import("./CJ8hAZqF.js"),__vite__mapDeps([87,88,89]),import.meta.url)},{name:"contact___en",path:"/en/contact",component:()=>fe(()=>import("./y_TQYxGD.js"),__vite__mapDeps([90,23,24,77,78,9,10,11,12,13,91]),import.meta.url)},{name:"contact___fr",path:"/fr/contact",component:()=>fe(()=>import("./y_TQYxGD.js"),__vite__mapDeps([90,23,24,77,78,9,10,11,12,13,91]),import.meta.url)},{name:"notices___en",path:"/en/notices",component:()=>fe(()=>import("./CRXyRIBv.js"),__vite__mapDeps([92,23,24,93,1,2,3,4,84,26,44,45,46,47,9,10,11,12,13,94]),import.meta.url)},{name:"notices___fr",path:"/fr/notices",component:()=>fe(()=>import("./CRXyRIBv.js"),__vite__mapDeps([92,23,24,93,1,2,3,4,84,26,44,45,46,47,9,10,11,12,13,94]),import.meta.url)},{name:"tests-counter___en",path:"/en/tests/counter",component:()=>fe(()=>import("./C-vLqIHJ.js"),__vite__mapDeps([95,96]),import.meta.url)},{name:"tests-counter___fr",path:"/fr/tests/counter",component:()=>fe(()=>import("./C-vLqIHJ.js"),__vite__mapDeps([95,96]),import.meta.url)},{name:"tests-3d-model___en",path:"/en/tests/3d-model",component:()=>fe(()=>import("./BbuyipMl.js"),__vite__mapDeps([97,98,88,99]),import.meta.url)},{name:"tests-3d-model___fr",path:"/fr/tests/3d-model",component:()=>fe(()=>import("./BbuyipMl.js"),__vite__mapDeps([97,98,88,99]),import.meta.url)},{name:"tests-image360___en",path:"/en/tests/image360",component:()=>fe(()=>
4import("./x86altCP.js"),__vite__mapDeps([100,101,1,2,3,4,102,103,98,88,104]),import.meta.url)},{name:"tests-image360___fr",path:"/fr/tests/image360",component:()=>fe(()=>import("./x86altCP.js"),__vite__mapDeps([100,101,1,2,3,4,102,103,98,88,104]),import.meta.url)},{name:"tests-components___en",path:"/en/tests/components",component:()=>fe(()=>import("./DANYYIAp.js"),__vite__mapDeps([105,106,107,108]),import.meta.url)},{name:"tests-components___fr",path:"/fr/tests/components",component:()=>fe(()=>import("./DANYYIAp.js"),__vite__mapDeps([105,106,107,108]),import.meta.url)},{name:"tests-audioplayer___en",path:"/en/tests/audioplayer",component:()=>fe(()=>import("./COL_xDx8.js"),__vite__mapDeps([109,110,111,112]),import.meta.url)},{name:"tests-audioplayer___fr",path:"/fr/tests/audioplayer",component:()=>fe(()=>import("./COL_xDx8.js"),__vite__mapDeps([109,110,111,112]),import.meta.url)},{name:"tests-audio-player___en",path:"/en/tests/audio-player",component:()=>fe(()=>import("./CHBaErtN.js"),__vite__mapDeps([113,110,111,88,114]),import.meta.url)},{name:"tests-audio-player___fr",path:"/fr/tests/audio-player",component:()=>fe(()=>import("./CHBaErtN.js"),__vite__mapDeps([113,110,111,88,114]),import.meta.url)},{name:"tests-vimeo-player___en",path:"/en/tests/vimeo-player",component:()=>fe(()=>import("./Bm0KJlz9.js"),__vite__mapDeps([115,88,116]),import.meta.url)},{name:"tests-vimeo-player___fr",path:"/fr/tests/vimeo-player",component:()=>fe(()=>import("./Bm0KJlz9.js"),__vite__mapDeps([115,88,116]),import.meta.url)},{name:"tests-color-seasons___en",path:"/en/tests/color-seasons",component:()=>fe(()=>import("./CwbeDQEQ.js"),__vite__mapDeps([117,88,118]),import.meta.url)},{name:"tests-color-seasons___fr",path:"/fr/tests/color-seasons",component:()=>fe(()=>import("./CwbeDQEQ.js"),__vite__mapDeps([117,88,118]),import.meta.url)},{name:"tests-image-carousel___en",path:"/en/tests/image-carousel",component:()=>fe(()=>import("./DoAcZ8-B.js"),__vite__mapDeps([119,111,88,120]),import.meta.url)},{name:"tests-image-carousel___fr",path:"/fr/tests/image-carousel",component:()=>fe(()=>import("./DoAcZ8-B.js"),__vite__mapDeps([119,111,88,120]),import.meta.url)},{name:"foire-aux-questions___en",path:"/en/foire-aux-questions",component:()=>fe(()=>import("./BfmrIEym.js"),__vite__mapDeps([121,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,7,8,9,10,11,12,13,74,122]),import.meta.url)},{name:"foire-aux-questions___fr",path:"/fr/foire-aux-questions",component:()=>fe(()=>import("./BfmrIEym.js"),__vite__mapDeps([121,23,24,30,31,32,33,34,35,36,37,38,39,40,41,42,43,7,8,9,10,11,12,13,74,122]),import.meta.url)}],OC=(t,e)=>({default:()=>t?Vt(Yk,t===!0?{}:t,e):e.default?.()}),aU=/(:\w+)\([^)]+\)/g,sU=/(:\w+)[?+*]/g,oU=/:\w+/g;function mx(t){const e=t?.meta.key??t.path.replace(aU,"$1").replace(sU,"$1").replace(oU,n=>t.params[n.slice(1)]?.toString()||"");return typeof e=="function"?e(t):e}function uU(t,e){return t===e||e===cr?!1:mx(t)!==mx(e)?!0:!t.matched.every((i,r)=>i.components&&i.components.default===e.matched[r]?.components?.default)}function lU(t,e=!1){if(t){if(t.nodeName==="#comment"&&t.nodeValue==="[")return NC(t,[],e);if(e){const n=t.cloneNode(!0);return n.querySelectorAll("[data-island-slot]").forEach(i=>{i.innerHTML=""}),[n.outerHTML]}return[t.outerHTML]}}function NC(t,e=[],n=!1){if(t&&t.nodeName){if(dU(t))return e;if(!cU(t)){const i=t.cloneNode(!0);n&&i.querySelectorAll?.("[data-island-slot]").forEach(r=>{r.innerHTML=""}),e.push(i.outerHTML)}NC(t.nextSibling,e,n)}return e}function Ig(t,e){const n=t?lU(t):[e];return n?Nk(n.join(""),n.length):Vt("div")}function cU(t){return t.nodeName==="#comment"&&t.nodeValue==="["}function dU(t){return t.nodeName==="#comment"&&t.nodeValue==="]"}const fU={scrollBehavior(t,e,n){const i=ut(),r=mn().options?.scrollBehaviorType??"auto";if(t.path.replace(/\/$/,"")===e.path.replace(/\/$/,""))return e.hash&&!t.hash?{left:0,top:0}:t.hash?{el:t.hash,top:UC(t.hash),behavior:r}:!1;if((typeof t.meta.scrollToTop=="function"?t.meta.scrollToTop(t,e):t.meta.scrollToTop)===!1)return!1;const s=i._runningTransition?"page:transition:finish":"page:loading:end";return new Promise(o=>{if(e===cr){o(gx(t,e,n,r));return}i.hooks.hookOnce(s,()=>{requestAnimationFrame(()=>o(gx(t,e,n,r)))})})}};function UC(t){try{const e=document.querySelector(t);if(e)return(Number.parseFloat(getComputedStyle(e).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function gx(t,e,n,i){if(n)return n;const r=uU(t,e);return t.hash?{el:t.hash,top:UC(t.hash),behavior:r?i:"instant"}:{left:0,top:0}}const FC={scrollBehavior(t,e,n){const i=ut();return t.path===e.path||t.meta.key!==void 0&&e.meta.key===t.meta.key||hU(t,e)?!1:new Promise(a=>{i.hooks.hookOnce("page:finish",()=>{i.hooks.callHook("custom:newroute:finish",{to:t,from:e,savedPosition:n}),a({top:0,behavior:"auto"})})})}};function hU(t,e){return e.name?t.name.split("___").pop()!==e.name.split("___").pop():!1}const pU={hashMode:!1,scrollBehaviorType:"auto"},k_=FC.hashMode??!1,hs={...pU,...fU,...FC},mU=async(t,e)=>{let n,i;if(!t.meta?.validate)return;const r=([n,i]=Dr(()=>Promise.resolve(t.meta.validate(t))),n=await n,i(),n);if(r===!0)return;const a=Qa({fatal:!0,statusCode:r&&r.statusCode||404,statusMessage:r&&r.statusMessage||`Page Not Found: ${t.fullPath}`,data:{path:t.fullPath}});return typeof window<"u"&&window.history.pushState({},"",e.fullPath),a},gU=async t=>{let e,n;const i=([e,n]=Dr(()=>hb({path:t.path})),e=await e,n(),e);if(i.redirect){const r=i.redirect.includes("#")?i.redirect:i.redirect+t.hash;return er(r,{acceptRelative:!0})?(window.location.href=r,!1):r}},vU=[mU,gU],O_={};function _U(t,e,n){const{pathname:i,search:r,hash:a}=e,s=t.indexOf("#");if(s>-1){const c=a.includes(t.slice(s))?t.slice(s).length:1;let l=a.slice(c);return l[0]!=="/"&&(l="/"+l),RE(l,"")}const o=RE(i,t),u=!n||GM(o,n)?o:n;
4return u+(u.includes("?")?"":r)+a}const bU=Ht({name:"nuxt:router",enforce:"pre",async setup(t){let e,n,i=Li().app.baseURL;k_&&!i.includes("#")&&(i+="#");const r=hs.history?.(i)??(k_?LN(i):LC(i)),a=hs.routes?([e,n]=Dr(()=>hs.routes(Rg)),e=await e,n(),e??Rg):Rg;let s;const o=ZN({...hs,scrollBehavior:(m,p,y)=>{if(p===cr){s=y;return}if(hs.scrollBehavior){if(o.options.scrollBehavior=hs.scrollBehavior,"scrollRestoration"in window.history){const _=o.beforeEach(()=>{_(),window.history.scrollRestoration="manual"})}return hs.scrollBehavior(m,cr,s||y)}},history:r,routes:a});"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto"),t.vueApp.use(o);const u=hn(o.currentRoute.value);o.afterEach((m,p)=>{u.value=p}),Object.defineProperty(t.vueApp.config.globalProperties,"previousRoute",{get:()=>u.value});const c=_U(i,window.location,t.payload.path),l=hn(o.currentRoute.value),d=()=>{l.value=o.currentRoute.value};t.hook("page:finish",d),o.afterEach((m,p)=>{m.matched[m.matched.length-1]?.components?.default===p.matched[p.matched.length-1]?.components?.default&&d()});const f={};for(const m in l.value)Object.defineProperty(f,m,{get:()=>l.value[m],enumerable:!0});t._route=ha(f),t._middleware||={global:[],named:{}};const h=S0();o.afterEach(async(m,p,y)=>{delete t._processingMiddleware,!t.isHydrating&&h.value&&await t.runWithContext(aC),y&&await t.callHook("page:loading:end")});try{[e,n]=Dr(()=>o.isReady()),await e,n()}catch(m){[e,n]=Dr(()=>t.runWithContext(()=>Ds(m))),await e,n()}const g=c!==o.currentRoute.value.fullPath?o.resolve(c):o.currentRoute.value;d();const v=t.payload.state._layout;return o.beforeEach(async(m,p)=>{await t.callHook("page:loading:start"),m.meta=In(m.meta),t.isHydrating&&v&&!Ea(m.meta.layout)&&(m.meta.layout=v),t._processingMiddleware=!0;{const y=new Set([...vU,...t._middleware.global]);for(const _ of m.matched){const b=_.meta.middleware;if(b)for(const x of _b(b))y.add(x)}{const _=await t.runWithContext(()=>hb({path:m.path}));if(_.appMiddleware)for(const b in _.appMiddleware)_.appMiddleware[b]?y.add(b):y.delete(b)}for(const _ of y){const b=typeof _=="string"?t._middleware.named[_]||await O_[_]?.().then(x=>x.default||x):_;if(!b)throw new Error(`Unknown route middleware: '${_}'.`);try{const x=await t.runWithContext(()=>b(m,p));if(!t.payload.serverRendered&&t.isHydrating&&(x===!1||x instanceof Error)){const w=x||Qa({statusCode:404,statusMessage:`Page Not Found: ${c}`});return await t.runWithContext(()=>Ds(w)),!1}if(x===!0)continue;if(x===!1)return x;if(x)return sC(x)&&x.fatal&&await t.runWithContext(()=>Ds(x)),x}catch(x){const w=Qa(x);return w.fatal&&await t.runWithContext(()=>Ds(w)),w}}}}),o.onError(async()=>{delete t._processingMiddleware,await t.callHook("page:loading:end")}),o.afterEach(m=>{if(m.matched.length===0)return t.runWithContext(()=>Ds(Qa({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`,data:{path:m.fullPath}})))}),t.hooks.hookOnce("app:created",async()=>{try{"name"in g&&(g.name=void 0),await o.replace({...g,force:!0}),o.options.scrollBehavior=hs.scrollBehavior}catch(m){await t.runWithContext(()=>Ds(m))}}),{provide:{router:o}}}}),N_=globalThis.requestIdleCallback||(t=>{const e=Date.now(),n={didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-e))};return setTimeout(()=>{t(n)},1)}),yU=globalThis.cancelIdleCallback||(t=>{clearTimeout(t)}),C0=t=>{const e=ut();e.isHydrating?e.hooks.hookOnce("app:suspense:resolve",()=>{N_(()=>t())}):N_(()=>t())},EU=Ht({name:"nuxt:payload",setup(t){const e=new Set;mn().beforeResolve(async(n,i)=>{if(n.path===i.path)return;const r=await YE(n.path);if(r){for(const a of e)delete t.static.data[a];for(const a in r.data)a in t.static.data||e.add(a),t.static.data[a]=r.data[a]}}),C0(()=>{t.hooks.hook("link:prefetch",async n=>{const{hostname:i}=new URL(n,window.location.href);i===window.location.hostname&&await YE(n).catch(()=>{console.warn("[nuxt] Error preloading payload for",n)})}),navigator.connection?.effectiveType!=="slow-2g"&&setTimeout(w0,1e3)})}}),xU=Ht(()=>{const t=mn();C0(()=>{t.beforeResolve(async()=>{await new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})})})})}),AU=Ht(t=>{let e;async function n(){let i;try{i=await w0()}catch(r){const a=r;if(!("status"in a&&(a.status===404||a.status===403)))throw a}e&&clearTimeout(e),e=setTimeout(n,FE);try{const r=await $fetch(lb("builds/latest.json")+`?${Date.now()}`);r.id!==i?.id&&(t.hooks.callHook("app:manifest:update",r),e&&clearTimeout(e))}catch{}}C0(()=>{e=setTimeout(n,FE)})});function SU(t={}){const e=t.path||window.location.pathname;let n={};try{n=Ad(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(t.force||n?.path!==e||n?.expires<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:e,expires:Date.now()+(t.ttl??1e4)}))}catch{}if(t.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:ut().payload.state}))}catch{}window.location.pathname!==e?window.location.href=e:window.location.reload()}}const TU=Ht({name:"nuxt:chunk-reload",setup(t){const e=mn(),n=Li(),i=new Set;e.beforeEach(()=>{i.clear()}),t.hook("app:chunkError",({error:a})=>{i.add(a)});function r(a){const s=os(n.app.baseURL,a.fullPath);SU({path:s,persistState:!0})}t.hook("app:manifest:update",()=>{e.beforeResolve(r)}),e.onError((a,s)=>{i.has(a)&&r(s)})}});function wU(t,e){typeof console<"u"&&(console.warn("[intlify] "+t),e&&console.warn(e.stack))}const bm=typeof window<"u",Qs=(t,e=!1)=>e?Symbol.for(t):Symbol(t),MU=(t,e,n)=>CU({l:t,k:e,s:n}),CU=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Fn=t=>typeof t=="number"&&isFinite(t),DU=t=>L0(t)==="[object Date]",ym=t=>L0(t)==="[object RegExp]",D0=t=>Nt(t)&&Object.keys(t).length===0,_n=Object.assign,LU=Object.create,rn=(t=null)=>LU(t);let vx;const bb=()=>vx||(vx=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:rn());function _x(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function bx(t){return t.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function RU(t){return t=t.replace(/(\w+)\s*=\s*"([^"]*)"/g,(i,r,a)=>`${r}="${bx(a)}"`),t=t.replace(/(\w+)\s*=\s*'([^']*)'/g,(i,r,a)=>`${r}='${bx(a)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(t)&&(t=t.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEac
4h(i=>{t=t.replace(i,"$1javascript&#58;")}),t}const IU=Object.prototype.hasOwnProperty;function Lr(t,e){return IU.call(t,e)}const Tn=Array.isArray,on=t=>typeof t=="function",qe=t=>typeof t=="string",An=t=>typeof t=="boolean",Ut=t=>t!==null&&typeof t=="object",PU=t=>Ut(t)&&on(t.then)&&on(t.catch),BC=Object.prototype.toString,L0=t=>BC.call(t),Nt=t=>L0(t)==="[object Object]",kU=t=>t==null?"":Tn(t)||Nt(t)&&t.toString===BC?JSON.stringify(t,null,2):String(t);function yb(t,e=""){return t.reduce((n,i,r)=>r===0?n+i:n+e+i,"")}const Vf=t=>!Ut(t)||Tn(t);function gl(t,e){if(Vf(t)||Vf(e))throw new Error("Invalid value");const n=[{src:t,des:e}];for(;n.length;){const{src:i,des:r}=n.pop();Object.keys(i).forEach(a=>{a!=="__proto__"&&(Ut(i[a])&&!Ut(r[a])&&(r[a]=Array.isArray(i[a])?[]:rn()),Vf(r[a])||Vf(i[a])?r[a]=i[a]:n.push({src:i[a],des:r[a]}))})}}const Vs=["en","fr"],U_={en:[],fr:[]},OU=[()=>fe(()=>import("./37rv5aMr.js"),[],import.meta.url)],Ol=[{code:"en",iso:"en-US",name:"english",files:[]},{code:"fr",iso:"fr-FR",name:"français",files:[]}],VC="@nuxtjs/i18n",NU=!1,UU="i18n_redirected",FU="nuxtI18nInternal",yx="nuxt-i18n-slp";function F_(t){return typeof t=="string"?`'${t}'`:new BU().serialize(t)}const BU=(function(){class t{#e=new Map;compare(n,i){const r=typeof n,a=typeof i;return r==="string"&&a==="string"?n.localeCompare(i):r==="number"&&a==="number"?n-i:String.prototype.localeCompare.call(this.serialize(n,!0),this.serialize(i,!0))}serialize(n,i){if(n===null)return"null";switch(typeof n){case"string":return i?n:`'${n}'`;case"bigint":return`${n}n`;case"object":return this.$object(n);case"function":return this.$function(n)}return String(n)}serializeObject(n){const i=Object.prototype.toString.call(n);if(i!=="[object Object]")return this.serializeBuiltInType(i.length<10?`unknown:${i}`:i.slice(8,-1),n);const r=n.constructor,a=r===Object||r===void 0?"":r.name;if(a!==""&&globalThis[a]===r)return this.serializeBuiltInType(a,n);if(typeof n.toJSON=="function"){const s=n.toJSON();return a+(s!==null&&typeof s=="object"?this.$object(s):`(${this.serialize(s)})`)}return this.serializeObjectEntries(a,Object.entries(n))}serializeBuiltInType(n,i){const r=this["$"+n];if(r)return r.call(this,i);if(typeof i?.entries=="function")return this.serializeObjectEntries(n,i.entries());throw new Error(`Cannot serialize ${n}`)}serializeObjectEntries(n,i){const r=Array.from(i).sort((s,o)=>this.compare(s[0],o[0]));let a=`${n}{`;for(let s=0;s<r.length;s++){const[o,u]=r[s];a+=`${this.serialize(o,!0)}:${this.serialize(u)}`,s<r.length-1&&(a+=",")}return a+"}"}$object(n){let i=this.#e.get(n);return i===void 0&&(this.#e.set(n,`#${this.#e.size}`),i=this.serializeObject(n),this.#e.set(n,i)),i}$function(n){const i=Function.prototype.toString.call(n);return i.slice(-15)==="[native code] }"?`${n.name||""}()[native]`:`${n.name}(${n.length})${i.replace(/\s*\n\s*/g,"")}`}$Array(n){let i="[";for(let r=0;r<n.length;r++)i+=this.serialize(n[r]),r<n.length-1&&(i+=",");return i+"]"}$Date(n){try{return`Date(${n.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(n){return`ArrayBuffer[${new Uint8Array(n).join(",")}]`}$Set(n){return`Set${this.$Array(Array.from(n).sort((i,r)=>this.compare(i,r)))}`}
4$Map(n){return this.serializeObjectEntries("Map",n.entries())}}for(const e of["Error","RegExp","URL"])t.prototype["$"+e]=function(n){return`${e}(${n})`};for(const e of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join(",")}]`};for(const e of["BigInt64Array","BigUint64Array"])t.prototype["$"+e]=function(n){return`${e}[${n.join("n,")}${n.length>0?"n":""}]`};return t})();function VU(t,e){return t===e||F_(t)===F_(e)}const HU=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],zU=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],$U="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",uo=[];let WU=class{_data=new Hf;_hash=new Hf([...HU]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);const n=this._nDataBytes*8,i=this._data.sigBytes*8;return this._data.words[i>>>5]|=128<<24-i%32,this._data.words[(i+64>>>9<<4)+14]=Math.floor(n/4294967296),this._data.words[(i+64>>>9<<4)+15]=n,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,n){const i=this._hash.words;let r=i[0],a=i[1],s=i[2],o=i[3],u=i[4],c=i[5],l=i[6],d=i[7];for(let f=0;f<64;f++){if(f<16)uo[f]=e[n+f]|0;else{const _=uo[f-15],b=(_<<25|_>>>7)^(_<<14|_>>>18)^_>>>3,x=uo[f-2],w=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;uo[f]=b+uo[f-7]+w+uo[f-16]}const h=u&c^~u&l,g=r&a^r&s^a&s,v=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),p=d+m+h+zU[f]+uo[f],y=v+g;d=l,l=c,c=u,u=o+p|0,o=s,s=a,a=r,r=p+y|0}i[0]=i[0]+r|0,i[1]=i[1]+a|0,i[2]=i[2]+s|0,i[3]=i[3]+o|0,i[4]=i[4]+u|0,i[5]=i[5]+c|0,i[6]=i[6]+l|0,i[7]=i[7]+d|0}_append(e){typeof e=="string"&&(e=Hf.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let n,i=this._data.sigBytes/64;e?i=Math.ceil(i):i=Math.max((i|0)-this._minBufferSize,0);const r=i*16,a=Math.min(r*4,this._data.sigBytes);if(r){for(let s=0;s<r;s+=16)this._doProcessBlock(this._data.words,s);n=this._data.words.splice(0,r),this._data.sigBytes-=a}return new Hf(n,a)}},Hf=class HC{words;sigBytes;constructor(e,n){e=this.words=e||[],this.sigBytes=n===void 0?e.length*4:n}static fromUtf8(e){const n=unescape(encodeURIComponent(e)),i=n.length,r=[];for(let a=0;a<i;a++)r[a>>>2]|=(n.charCodeAt(a)&255)<<24-a%4*8;return new HC(r,i)}toBase64(){const e=[];for(let n=0;n<this.sigBytes;n+=3){const i=this.words[n>>>2]>>>24-n%4*8&255,r=this.words[n+1>>>2]>>>24-(n+1)%4*8&255,a=this.words[n+2>>>2]>>>24-(n+2)%4*8&255,s=i<<16|r<<8|a;for(let o=0;o<4&&n*8+o*6<this.sigBytes*8;o++)e.push($U.charAt(s>>>6*(3-o)&63))}return e.join("")}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let n=0;n<e.sigBytes;n++){const i=e.words[n>>>2]>>>24-n%4*8&255;this.words[this.sigBytes+n>>>2]|=i<<24-(this.sigBytes+n)%4*8}else for(let n=0;n<e.sigBytes;n+=4)this.words[this.sigBytes+n>>>2]=e.words[n>>>2];this.sigBytes+=e.sigBytes}};function GU(t){return new WU().finalize(t).toBase64()}function zC(t){return GU(F_(t))}const qU={trailing:!0};function jU(t,e=25,n={}){if(n={...qU,...n},!Number.isFinite(e))throw new TypeError("Expected `wait` to be a finite number");let i,r,a=[],s,o;const u=(d,f)=>(s=XU(t,d,f),s.finally(()=>{if(s=null,n.trailing&&o&&!r){const h=u(d,o);return o=null,h}}),s),c=function(...d){return n.trailing&&(o=d),s||new Promise(f=>{const h=!r&&n.leading;clearTimeout(r),r=setTimeout(()=>{r=null;const g=n.leading?i:u(this,d);o=null;for(const v of a)v(g);a=[]},e),h?(i=u(this,d),f(i)):a.push(f)})},l=d=>{d&&(clearTimeout(d),r=null)};return c.isPending=()=>!!r,c.cancel=()=>{l(r),a=[],o=null},c.flush=()=>
4{if(l(r),!o||s)return;const d=o;return o=null,u(this,d)},c}async function XU(t,e,n){return await t.apply(e,n)}const $C=Symbol.for("nuxt:client-only"),zf="<div></div>",Lle=qn({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:e,attrs:n}){const i=hn(!1);$n(()=>{i.value=!0});const r=Mn();return r&&(r._nuxtClientOnly=!0),Ja($C,!0),()=>{if(i.value){const u=e.default?.();return u&&u.length===1?[Ki(u[0],n)]:u}const a=e.fallback||e.placeholder;if(a)return Vt(a);const s=t.fallback||t.placeholder||"",o=t.fallbackTag||t.placeholderTag||"span";return _t(o,n,s)}}}),Pg=new WeakMap;function uf(t){if(Pg.has(t))return Pg.get(t);const e={...t};return e.render?e.render=(n,i,r,a,s,o)=>{if(a.mounted$??n.mounted$){const u=t.render?.bind(n)(n,i,r,a,s,o);return u.children===null||typeof u.children=="string"?Ki(u):Vt(u)}return Ig(n._.vnode.el,zf)}:e.template&&=`
5      <template v-if="mounted$">${t.template}</template>
6      <template v-else>${zf}</template>
7    `,e.setup=(n,i)=>{const r=ut(),a=hn(r.isHydrating===!1),s=Mn();if(r.isHydrating){const u={...s.attrs},c=YU(s);for(const l in u)delete s.attrs[l];$n(()=>{Object.assign(s.attrs,u),s.vnode.dirs=c})}$n(()=>{a.value=!0});const o=t.setup?.(n,i)||{};return s0(o)?Promise.resolve(o).then(u=>typeof u!="function"?(u||={},u.mounted$=a,u):(...c)=>{if(a.value||!r.isHydrating){const l=u(...c);return l.children===null||typeof l.children=="string"?Ki(l):Vt(l)}return Ig(s?.vnode.el,zf)}):typeof o=="function"?(...u)=>{if(a.value){const c=o(...u),l=e.inheritAttrs!==!1?i.attrs:void 0;return c.children===null||typeof c.children=="string"?Ki(c,l):Vt(c,l)}return Ig(s?.vnode.el,zf)}:Object.assign(o,{mounted$:a})},Pg.set(t,e),e}function YU(t){if(!t||!t.vnode.dirs)return null;const e=t.vnode.dirs;return t.vnode.dirs=null,e}function KU(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;ZU(t[0],t[1])&&t.unshift(e);let[n,i,r={}]=t,a=!1;const s=Ve(()=>bd(n));if(typeof s.value!="string")throw new TypeError("[nuxt] [useAsyncData] key must be a string.");if(typeof i!="function")throw new TypeError("[nuxt] [useAsyncData] handler must be a function.");const o=ut();r.server??=!0,r.default??=QU,r.getCachedData??=GC,r.lazy??=!1,r.immediate??=!0,r.deep??=O8.deep,r.dedupe??="cancel",r._functionName,o._asyncData[s.value];function u(){const g={cause:"initial",dedupe:r.dedupe};return o._asyncData[s.value]?._init||(g.cachedData=r.getCachedData(s.value,o,{cause:"initial"}),o._asyncData[s.value]=Ex(o,s.value,i,r,g.cachedData)),()=>o._asyncData[s.value].execute(g)}const c=u(),l=o._asyncData[s.value];l._deps++;const d=r.server!==!1&&o.payload.serverRendered;{let g=function(b){const x=o._asyncData[b];x?._deps&&(x._deps--,x._deps===0&&x?._off())};const v=Mn();if(v&&d&&r.immediate&&!v.sp&&(v.sp=[]),v&&!v._nuxtOnBeforeMountCbs){v._nuxtOnBeforeMountCbs=[];const b=v._nuxtOnBeforeMountCbs;Qw(()=>{b.forEach(x=>{x()}),b.splice(0,b.length)}),xa(()=>b.splice(0,b.length))}const m=v&&(v._nuxtClientOnly||wn($C,!1));d&&o.isHydrating&&(l.error.value||l.data.value!==void 0)?l.status.value=l.error.value?"error":"success":v&&(!m&&o.payload.serverRendered&&o.isHydrating||r.lazy)&&r.immediate?v._nuxtOnBeforeMountCbs.push(c):r.immediate&&l.status.value!=="success"&&c();const p=Zs(),y=st(s,(b,x)=>{if((b||x)&&b!==x){a=!0;const w=o._asyncData[x]?.data.value!==void 0,D=o._asyncDataPromises[x]!==void 0,O={cause:"initial",dedupe:r.dedupe};if(!o._asyncData[b]?._init){let M;x&&w?M=o._asyncData[x].data.value:(M=r.getCachedData(b,o,{cause:"initial"}),O.cachedData=M),o._asyncData[b]=Ex(o,b,i,r,M)}o._asyncData[b]._deps++,x&&g(x),(r.immediate||w||D)&&o._asyncData[b].execute(O),nm(()=>{a=!1})}},{flush:"sync"}),_=r.watch?st(r.watch,()=>{a||l._execute({cause:"watch",dedupe:r.dedupe})}):()=>{};p&&Jo(()=>{y(),_(),g(s.value)})}const f={data:$f(()=>o._asyncData[s.value]?.data),pending:$f(()=>o._asyncData[s.value]?.pending),status:$f(()=>o._asyncData[s.value]?.status),error:$f(()=>o._asyncData[s.value]?.error),refresh:(...g)=>o._asyncData[s.value]?._init?o._asyncData[s.value].execute(...g):u()(),execute:(...g)=>f.refresh(...g),clear:()=>{const g=o._asyncData[s.value];if(g?._abortController)try{g._abortController.abort(new DOMException("AsyncData aborted by user.","AbortError"))}finally{g._abortController=void 0}WC(o,s.value)}},h=Promise.resolve(o._asyncDataPromises[s.value]).then(()=>f);return Object.assign(h,f),h}function $f(t){return Ve({get(){return t()?.value},set(e){const n=t();n&&(n.value=e)}})}function ZU(t,e){return!(typeof t=="string"||typeof t=="object"&&t!==null||typeof t=="function"&&typeof e=="function")}function WC(t,e){e in t.payload.data&&(t.payload.data[e]=void 0),e in t.payload._errors&&(t.payload._errors[e]=void 0),t._asyncData[e]&&(t._asyncData[e].data.value=ze(t._asyncData[e]._default()),t._asyncData[e].error.value=void 0,t._asyncData[e].status.value="idle"),e in t._asyncDataPromises&&(t._asyncDataPromises[e]=void 0)}function JU(t,e){const n={};for(const i of e)n[i]=t[i];return n}function Ex(t,e,n,i,r){t.payload._errors[e]??=void 0;const a=i.getCachedData!==GC,s=n,o=i.deep?Le:hn,u=r!==void 0,c=t.hook("app:data:refresh",async d=>{(!d||d.includes(e))&&await l.execute({cause:"refresh:hook"})}),l={data:o(u?r:i.default()),pending:Ve(()=>l.status.value==="pending"),error:Zl(t.payload._errors,e),status:hn("idle"),execute:(...d)=>{const[f,h=void 0]=d,g=f&&h===void 0&&typeof f=="object"?f:{};if(t._asyncDataPromises[e]&&(g.dedupe??i.dedupe)==="defer")return t._asyncDataPromises[e];
7{const p="cachedData"in g?g.cachedData:i.getCachedData(e,t,{cause:g.cause??"refresh:manual"});if(p!==void 0)return t.payload.data[e]=l.data.value=p,l.error.value=void 0,l.status.value="success",Promise.resolve(p)}l._abortController&&l._abortController.abort(new DOMException("AsyncData request cancelled by deduplication","AbortError")),l._abortController=new AbortController,l.status.value="pending";const v=new AbortController,m=new Promise((p,y)=>{try{const _=g.timeout??i.timeout,b=e9([l._abortController?.signal,g?.signal],v.signal,_);if(b.aborted){const x=b.reason;y(x instanceof Error?x:new DOMException(String(x??"Aborted"),"AbortError"));return}return b.addEventListener("abort",()=>{const x=b.reason;y(x instanceof Error?x:new DOMException(String(x??"Aborted"),"AbortError"))},{once:!0,signal:v.signal}),Promise.resolve(s(t,{signal:b})).then(p,y)}catch(_){y(_)}}).then(async p=>{let y=p;i.transform&&(y=await i.transform(p)),i.pick&&(y=JU(y,i.pick)),t.payload.data[e]=y,l.data.value=y,l.error.value=void 0,l.status.value="success"}).catch(p=>{if(!(t._asyncDataPromises[e]&&t._asyncDataPromises[e]!==m)&&!l._abortController?.signal.aborted){if(typeof DOMException<"u"&&p instanceof DOMException&&p.name==="AbortError"){l.status.value="idle";return}l.error.value=Qa(p),l.data.value=ze(i.default()),l.status.value="error"}}).finally(()=>{v.abort(),delete t._asyncDataPromises[e]});return t._asyncDataPromises[e]=m,t._asyncDataPromises[e]},_execute:jU((...d)=>l.execute(...d),0,{leading:!0}),_default:i.default,_deps:0,_init:!0,_hash:void 0,_off:()=>{c(),t._asyncData[e]?._init&&(t._asyncData[e]._init=!1),a||Di(()=>{t._asyncData[e]?._init||(WC(t,e),l.execute=()=>Promise.resolve())})}};return l}const QU=()=>{},GC=(t,e,n)=>{if(e.isHydrating)return e.payload.data[t];if(n.cause!=="refresh:manual"&&n.cause!=="refresh:hook")return e.static.data[t]};function e9(t,e,n){const i=t.filter(s=>!!s);if(typeof n=="number"&&n>=0){const s=AbortSignal.timeout?.(n);s&&i.push(s)}if(AbortSignal.any)return AbortSignal.any(i);const r=new AbortController;for(const s of i)if(s.aborted){const o=s.reason??new DOMException("Aborted","AbortError");try{r.abort(o)}catch{r.abort()}return r.signal}const a=()=>{const o=i.find(u=>u.aborted)?.reason??new DOMException("Aborted","AbortError");try{r.abort(o)}catch{r.abort()}};for(const s of i)s.addEventListener?.("abort",a,{once:!0,signal:e});return r.signal}const t9="$s";function R0(...t){const e=typeof t[t.length-1]=="string"?t.pop():void 0;typeof t[0]!="string"&&t.unshift(e);const[n,i]=t;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(i!==void 0&&typeof i!="function")throw new Error("[nuxt] [useState] init must be a function: "+i);const r=t9+n,a=ut(),s=Zl(a.payload.state,r);if(s.value===void 0&&i){const o=i();if(Dt(o))return a.payload.state[r]=o,o;s.value=o}return s}function B_(){return globalThis.$fetch}function n9(t,e){if(typeof t!="string")throw new TypeError("argument str must be a string");const n={},i=e||{},r=i.decode||i9;let a=0;for(;a<t.length;){const s=t.indexOf("=",a);if(s===-1)break;let o=t.indexOf(";",a);if(o===-1)o=t.length;else if(o<s){a=t.lastIndexOf(";",s-1)+1;continue}const u=t.slice(a,s).trim();if(i?.filter&&!i?.filter(u)){a=o+1;continue}if(n[u]===void 0){let c=t.slice(s+1,o).trim();c.codePointAt(0)===34&&(c=c.slice(1,-1)),n[u]=r9(c,r)}a=o+1}return n}function i9(t){return t.includes("%")?decodeURIComponent(t):t}function r9(t,e){try{return e(t)}catch{return t}}const Wf=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function xx(t,e,n){const i=n||{},r=i.encode||encodeURIComponent;if(typeof r!="function")throw new TypeError("option encode is invalid");if(!Wf.test(t))throw new TypeError("argument name is invalid");const a=r(e);if(a&&!Wf.test(a))throw new TypeError("argument val is invalid");let s=t+"="+a;if(i.maxAge!==void 0&&i.maxAge!==null){const o=i.maxAge-0;if(Number.isNaN(o)||!Number.isFinite(o))throw new TypeError("option maxAge is invalid");s+="; Max-Age="+Math.floor(o)}if(i.domain){if(!Wf.test(i.domain))throw new TypeError("option domain is invalid");s+="; Domain="+i.domain}if(i.path){if(!Wf.test(i.path))throw new TypeError("option path is invali
7d");s+="; Path="+i.path}if(i.expires){if(!a9(i.expires)||Number.isNaN(i.expires.valueOf()))throw new TypeError("option expires is invalid");s+="; Expires="+i.expires.toUTCString()}if(i.httpOnly&&(s+="; HttpOnly"),i.secure&&(s+="; Secure"),i.priority)switch(typeof i.priority=="string"?i.priority.toLowerCase():i.priority){case"low":{s+="; Priority=Low";break}case"medium":{s+="; Priority=Medium";break}case"high":{s+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(i.sameSite)switch(typeof i.sameSite=="string"?i.sameSite.toLowerCase():i.sameSite){case!0:{s+="; SameSite=Strict";break}case"lax":{s+="; SameSite=Lax";break}case"strict":{s+="; SameSite=Strict";break}case"none":{s+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return i.partitioned&&(s+="; Partitioned"),s}function a9(t){return Object.prototype.toString.call(t)==="[object Date]"||t instanceof Date}function Er(t){if(typeof t!="object")return t;var e,n,i=Object.prototype.toString.call(t);if(i==="[object Object]"){if(t.constructor!==Object&&typeof t.constructor=="function"){n=new t.constructor;for(e in t)t.hasOwnProperty(e)&&n[e]!==t[e]&&(n[e]=Er(t[e]))}else{n={};for(e in t)e==="__proto__"?Object.defineProperty(n,e,{value:Er(t[e]),configurable:!0,enumerable:!0,writable:!0}):n[e]=Er(t[e])}return n}if(i==="[object Array]"){for(e=t.length,n=Array(e);e--;)n[e]=Er(t[e]);return n}return i==="[object Set]"?(n=new Set,t.forEach(function(r){n.add(Er(r))}),n):i==="[object Map]"?(n=new Map,t.forEach(function(r,a){n.set(Er(a),Er(r))}),n):i==="[object Date]"?new Date(+t):i==="[object RegExp]"?(n=new RegExp(t.source,t.flags),n.lastIndex=t.lastIndex,n):i==="[object DataView]"?new t.constructor(Er(t.buffer)):i==="[object ArrayBuffer]"?t.slice(0):i.slice(-6)==="Array]"?new t.constructor(t):t}const s9={path:"/",watch:!0,decode:t=>Ad(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))},Gf=globalThis.cookieStore;function o9(t,e){const n={...s9,...e};n.filter??=c=>c===t;const i=Ax(n)||{};let r;n.maxAge!==void 0?r=n.maxAge*1e3:n.expires&&(r=n.expires.getTime()-Date.now());const a=r!==void 0&&r<=0,s=a||i[t]===void 0||i[t]===null,o=Er(a?void 0:i[t]??n.default?.()),u=r&&!a?c9(o,r,n.watch&&n.watch!=="shallow"):Le(o);{let c=null;try{!Gf&&typeof BroadcastChannel<"u"&&(c=new BroadcastChannel(`nuxt:cookies:${t}`))}catch{}const l=(g=!1)=>{!g&&(n.readonly||VU(u.value,i[t]))||(l9(t,u.value,n),i[t]=Er(u.value),c?.postMessage({value:n.encode(u.value)}))},d=g=>{const v=g.refresh?Ax(n)?.[t]:n.decode(g.value);f=!0,u.value=v,i[t]=Er(v),Di(()=>{f=!1})};let f=!1;const h=!!Zs();if(h&&Jo(()=>{f=!0,l(),c?.close()}),Gf){const g=v=>{const m=v.changed.find(y=>y.name===t),p=v.deleted.find(y=>y.name===t);m&&d({value:m.value}),p&&d({value:null})};Gf.addEventListener("change",g),h&&Jo(()=>Gf.removeEventListener("change",g))}else c&&(c.onmessage=({data:g})=>d(g));n.watch&&st(u,()=>{f||l()},{deep:n.watch!=="shallow"}),s&&l(s)}return u}function Ax(t={}){return n9(document.cookie,t)}function u9(t,e,n={}){return e==null?xx(t,e,{...n,maxAge:-1}):xx(t,e,n)}function l9(t,e,n={}){document.cookie=u9(t,e,n)}const Sx=2147483647;function c9(t,e,n){let i,r,a=0;const s=n?Le(t):{value:t};return Zs()&&Jo(()=>{r?.(),clearTimeout(i)}),$2((o,u)=>{n&&(r=st(s,u));function c(){a=0,clearTimeout(i);const l=e-a,d=l<Sx?l:Sx;i=setTimeout(()=>{if(a+=d,a<e)return c();s.value=void 0,u()},d)}return{get(){return o(),s.value},set(l){c(),s.value=l,u()}}})}function d9(t){if(t?.__asyncLoader&&!t.__asyncResolved)return t.__asyncLoader()}async function qC(t,e=mn()){const{path:n,matched:i}=e.resolve(t);if(!i.length||(e._routePreloaded||=new Set,e._routePreloaded.has(n)))return;const r=e._preloadPromises||=[];if(r.length>4)return Promise.all(r).then(()=>qC(t,e));e._routePreloaded.add(n);for(const a of i){const s=a.components?.default;if(typeof s!="function")continue;const o=Promise.resolve(s()).catch(()=>{}).finally(()=>r.splice(r.indexOf(o)));r.push(o)}await Promise.all(r)}const f9=(...t)=>t.find(e=>e!==void 0);function h9(t){const e=t.componentName||"NuxtLink";
7function n(a){return!k_&&typeof a=="string"&&a.startsWith("#")}function i(a,s,o){const u=o??t.trailingSlash;if(!a||u!=="append"&&u!=="remove")return a;if(typeof a=="string")return qf(a,u);const c="path"in a&&a.path!==void 0?a.path:s(a).path;return{...a,name:void 0,path:qf(c,u)}}function r(a){const s=mn(),o=Li(),u=Ve(()=>!!a.target&&a.target!=="_self"),c=Ve(()=>{const m=a.to||a.href||"";return typeof m=="string"&&er(m,{acceptRelative:!0})}),l=nE("RouterLink"),d=l&&typeof l!="string"?l.useLink:void 0,f=Ve(()=>{if(a.external)return!0;const m=a.to||a.href||"";return typeof m=="object"?!1:m===""||c.value}),h=Ve(()=>{const m=a.to||a.href||"";return f.value?m:i(m,s.resolve,a.trailingSlash)}),g=f.value?void 0:d?.({...a,to:h}),v=Ve(()=>{const m=a.trailingSlash??t.trailingSlash;if(!h.value||c.value||n(h.value))return h.value;if(f.value){const p=typeof h.value=="object"&&"path"in h.value?w_(h.value):h.value,y=typeof p=="object"?s.resolve(p).href:p;return qf(y,m)}return typeof h.value=="object"?s.resolve(h.value)?.href??null:qf(os(o.app.baseURL,h.value),m)});return{to:h,hasTarget:u,isAbsoluteUrl:c,isExternal:f,href:v,isActive:g?.isActive??Ve(()=>h.value===s.currentRoute.value.path),isExactActive:g?.isExactActive??Ve(()=>h.value===s.currentRoute.value.path),route:g?.route??Ve(()=>s.resolve(h.value)),async navigate(m){await $a(v.value,{replace:a.replace,external:f.value||u.value})}}}return qn({name:e,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:r,setup(a,{slots:s}){const o=mn(),{to:u,href:c,navigate:l,isExternal:d,hasTarget:f,isAbsoluteUrl:h}=r(a),g=hn(!1),v=Le(null),m=_=>{v.value=a.custom?_?.$el?.nextElementSibling:_?.$el};function p(_){return!g.value&&(typeof a.prefetchOn=="string"?a.prefetchOn===_:a.prefetchOn?.[_]??t.prefetchOn?.[_])&&(a.prefetch??t.prefetch)!==!1&&a.noPrefetch!==!0&&a.target!=="_blank"&&!g9()}async function y(_=ut()){if(g.value)return;g.value=!0;const b=typeof u.value=="string"?u.value:d.value?w_(u.value):o.resolve(u.value).fullPath,x=d.value?new URL(b,window.location.href).href:b;await Promise.all([_.hooks.callHook("link:prefetch",x).catch(()=>{}),!d.value&&!f.value&&qC(u.value,o).catch(()=>{})])}if(p("visibility")){const _=ut();let b,x=null;$n(()=>{const w=p9();C0(()=>{b=N_(()=>{v?.value?.tagName&&(x=w.observe(v.value,async()=>{x?.(),x=null,await y(_)}))})})}),uu(()=>{b&&yU(b),x?.(),x=null})}return()=>{if(!d.value&&!f.value&&!n(u.value)){const x={ref:m,to:u.value,activeClass:a.activeClass||t.activeClass,exactActiveClass:a.exactActiveClass||t.exactActiveClass,replace:a.replace,ariaCurrentValue:a.ariaCurrentValue,custom:a.custom};
7return a.custom||(p("interaction")&&(x.onPointerenter=y.bind(null,void 0),x.onFocus=y.bind(null,void 0)),g.value&&(x.class=a.prefetchedClass||t.prefetchedClass),x.rel=a.rel||void 0),Vt(nE("RouterLink"),x,s.default)}const _=a.target||null,b=f9(a.noRel?"":a.rel,t.externalRelAttribute,h.value||f.value?"noopener noreferrer":"")||null;return a.custom?s.default?s.default({href:c.value,navigate:l,prefetch:y,get route(){if(!c.value)return;const x=new URL(c.value,window.location.href);return{path:x.pathname,fullPath:x.pathname,get query(){return x0(x.search)},hash:x.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:c.value}},rel:b,target:_,isExternal:d.value||f.value,isActive:!1,isExactActive:!1}):null:Vt("a",{ref:v,href:c.value||null,rel:b,target:_,onClick:x=>{if(!(d.value||f.value))return x.preventDefault(),a.replace?o.replace(c.value):o.push(c.value)}},s.default?.())}}})}function qf(t,e){const n=e==="append"?Sd:Rl;return er(t)&&!t.startsWith("http")?t:n(t,!0)}function p9(){const t=ut();if(t._observer)return t._observer;let e=null;const n=new Map,i=(a,s)=>(e||=new IntersectionObserver(o=>{for(const u of o){const c=n.get(u.target);(u.isIntersecting||u.intersectionRatio>0)&&c&&c()}}),n.set(a,s),e.observe(a),()=>{n.delete(a),e?.unobserve(a),n.size===0&&(e?.disconnect(),e=null)});return t._observer={observe:i}}const m9=/2g/;function g9(){const t=navigator.connection;return!!(t&&(t.saveData||m9.test(t.effectiveType)))}const Ta={beige:"#EFEDEA",noir30:"#A5AAAA",noir:"#1E2A2A",reuge:"#2D5340",winter:"#97E9F1",winterText:"#81E9F3",spring:"#BED62F",summer:"#FDB813",fall:"#F05F3C"},v9={colors:Ta,palettes:{background:[Ta.winter,Ta.spring,Ta.summer,Ta.fall],text:[Ta.winterText,Ta.spring,Ta.summer,Ta.fall]},fusejs:{threshold:.3,includeScore:!0,ignoreLocation:!0,findAllMatches:!0},lineWidth:1,typo:{ellipsis:"…",nonBreakingSpace:" "},smartypants:{fr:{"doublequote.open":"«","doublequote.close":"»"},en:{"doublequote.open":"“","doublequote.close":"”"}}},_9={nuxt:{}},b9=q8(v9,_9);function jC(){const t=ut();return t._appConfig||=In(b9),t._appConfig}function I0(t){return qe(t)?t:t!=null?t.toString():"(null)"}function Tx(t,e,n){const{defaultLocale:i,strategy:r,routesNameSeparator:a,defaultLocaleRouteNameSuffix:s,differentDomains:o}=n,u=r!=="no_prefix"||o,c=I0(t)+(u?a+e:"");return e===i&&r==="prefix_and_default"?c+a+s:c}function y9(t,e){const n=[];for(const[i,r]of e.entries()){const a=t.find(s=>s.language?.toLowerCase()===r.toLowerCase());if(a){n.push({code:a.code,score:1-i/e.length});break}}for(const[i,r]of e.entries()){const a=r.split("-")[0].toLowerCase(),s=t.find(o=>o.language?.split("-")[0].toLowerCase()===a);if(s){n.push({code:s.code,score:.999-i/e.length});break}}return n}function E9(t,e){return t.score===e.score?e.code.length-t.code.length:e.score-t.score}function x9(t,e){const n=t.map(r=>({code:r.code,language:r.language||r.code})),i=y9(n,e);return i.length===0?"":(i.length>1&&i.sort(E9),i[0].code)}function XC(t){return new RegExp(`^/(${t.join("|")})(?:/|$)`,"i")}const A9=`(${Vs.join("|")})`,V_=XC(Vs);function S9(){const{routesNameSeparator:t,defaultLocaleRouteNameSuffix:e}=Li().public.i18n,n=`(?:${t}${e})?`,i=new RegExp(`${t}${A9}${n}$`,"i");return r=>qe(r)?r.match(V_)?.[1]??"":r.name?I0(r.name).match(i)?.[1]??"":r.path?r.path.match(V_)?.[1]??"":""}function T9(t){return t!=null&&"global"in t&&"mode"in t}function w9(t){return t!=null&&!("__composer"in t)&&"locale"in t&&Dt(t.locale)}function YC(t){return t!=null&&"__composer"in t}function Em(t){return T9(t)?t.global:t}function Ic(t){const e=Em(t);return w9(e)?e:YC(e)?e.__composer:e}function P0(){return window.location.host}function M9(t,e,n){const i=P0();if(!i)return i;const r=qe(n)?n:n.path,a=t.filter(o=>o.domain?(er(o.domain)?o.domain.replace(/(http|https):\/\//,""):o.domain)===i:Tn(o?.domains)?o.domains.includes(i):!1);if(a.length===0)return"";if(a.length===1)return a[0]?.code??"";if(e==="no_prefix")return console.warn(JC("Multiple matching domains found! This is not supported for no_prefix strategy in combination with differentDomains!")),a[0]?.code??"";if(n&&r){const o=r.match(XC(a.map(u=>u.code)))?.at(1);if(o)return a.find(c=>c.code===o)?.code??""}return a.find(o=>o.defaultForDomains?.includes(i)??o.domainDefault)?.code??""}function KC(t){ut();const e=P0(),{domainLocales:n}=Li().public.i18n,i=Ol.find(s=>
7s.code===t),r=n?.[t]?.domain||i?.domain||i?.domains?.find(s=>s===e);if(!r){console.warn(JC("Could not find domain name for locale "+t));return}return er(r,{strict:!0})?r:new URL(window.location.origin).protocol+"//"+r}function C9(t,e){const{multiDomainLocales:n,strategy:i,routesNameSeparator:r,defaultLocaleRouteNameSuffix:a}=t;if(!n||!(i==="prefix_except_default"||i==="prefix_and_default"))return;const s=mn(),o=[r,a].join("");for(const u of s.getRoutes()){const c=I0(u.name);if(c.endsWith(o)){s.removeRoute(c);continue}const l=c.split(r)[1];l===e&&s.addRoute({...u,path:u.path===`/${l}`?"/":u.path.replace(`/${l}`,"")})}}function D9(t){const{locales:e,domainLocales:n,defaultLocale:i,multiDomainLocales:r}=t,a=P0();return r?e.some(s=>!qe(s)&&s.defaultForDomains!=null)?e.find(o=>!qe(o)&&!!o.defaultForDomains?.includes(a))?.code??"":i||"":Ol.find(o=>{const u=qe(o)?o:o.code,c=Ol.find(d=>d.code===u);return(n?.[u]?.domain??c?.domain)===a})?.code??i??""}const rd=new Map;async function L9(t,e){const n={messages:{}};for(const i of t){const{default:r}=await i(),a=on(r)?await e.runWithContext(()=>r()):r;gl(a,n)}return n}function ZC(t,e){if(t===!1)return[];if(Tn(t))return t;let n=[];if(qe(t))return e.every(r=>r!==t)&&n.push(t),n;const i=[...e,"default"];for(const r of i)r in t&&(n=[...n,...t[r].filter(Boolean)]);return n}const R9=t=>L0(t)==="[object Module]";async function I9(t,{key:e,load:n},i){let r=null;try{const a=await n().then(s=>R9(s)?s.default:s);on(a)?r=await i.runWithContext(()=>a(t)):(r=a,r!=null&&rd&&rd.set(e,r))}catch(a){console.error("Failed locale loading: "+a.message)}return r}async function H_(t,e,n,i){const r=e[t];if(r==null)return;const a={};for(const s of r){let o=null;rd&&rd.has(s.key)&&s.cache?o=rd.get(s.key):o=await i.runWithContext(()=>I9(t,s,i)),o!=null&&gl(o,a)}n(t,a)}function Nl(t,e){const n=ze(e),i=Ut(n)?n?.name:n;if(!(n==null||!i))return I0(i).split(t.runtimeConfig.public.i18n.routesNameSeparator)[0]}function Eb(t,e,n){if(qe(e)&&er(e,{acceptRelative:!0}))return e;const i=xb(t,e,n);return i==null?"":i.redirectedFrom?.fullPath||i.fullPath}function k0(t,e,n){return xb(t,e,n)??void 0}function P9(t){if(!qe(t))return _n({},t);if(t[0]==="/"){const{pathname:e,search:n,hash:i}=E_(t);return{path:e,query:x0(n),hash:i}}return{name:t}}const k9=t=>!!t.path&&!t.name;function O9(t,e,n){const i=t.runtimeConfig.public.i18n;if(k9(e)){const a=U9(t,e,n),s=Nl(t,a);return s?(a.name=Tx(s,n,i),a):(!i.differentDomains&&V9(n,i.defaultLocale,i.strategy)&&(e.path="/"+n+e.path),e.path=(i.trailingSlash?Sd:Rl)(e.path,!0),e)}e.name||=Nl(t,t.router.currentRoute.value);const r=Tx(e.name,n,i);return t.router.hasRoute(r)&&(e.name=r),e}function xb(t,e,n){try{const i=n||ze(Em(t.i18n).locale),r=P9(e),a=t.router.resolve(O9(t,r,i));return a.name?a:t.router.resolve(e)}catch(i){if(Xr(i,1))return null}}function N9(t,e){if(t.runtimeConfig.public.i18n.experimental.switchLocalePathLinkSSR)return ze(t.metaState.value);const n=e.meta||{};return ze(n)?.[FU]||{}}function Ab(t,e,n){const i=n??t.router.currentRoute.value,r=Nl(t,i);if(!r)return"";const a=N9(t,i)[e],s={name:r,params:_n({},i.params,a),fullPath:i.fullPath,query:i.query,hash:i.hash,path:i.path,meta:i.meta},o=Eb(t,s,e);if(t.runtimeConfig.public.i18n.differentDomains){const u=KC(e);return u&&os(u,o)||o}return o}function U9(t,e,n){if(t.runtimeConfig.public.i18n.strategy==="no_prefix")return e;if(t.runtimeConfig.public.i18n.strategy!=="prefix")return t.router.resolve(e);const i=e.path.slice(1),r=e.path[0]+n+(i&&"/"+i),a=t.router.options.routes.find(s=>s.path===r);return a==null?e:t.router.resolve(_n({},e,a,{path:r}))}function JC(t){return`[${VC}]: ${t}`}function QC(t){return{i18n:t??ut().$i18n,router:mn(),runtimeConfig:Li(),metaState:R0("nuxt-i18n-meta",()=>({}))}}async function eD(t,e,n=!1){const{differentDomains:i,skipSettingLocaleOnNavigate:r}=t.$config.public.i18n,a=lf(t.$config.public.i18n),s=ze(t.$i18n.locale),o=ze(t.$i18n.localeCodes);function u(f=s){a===!1||!a.useCookie||r||t.$i18n.setLocaleCookie(f)}const c=await t.$i18n.onBeforeLanguageSwitch(s,e,n,t);if(c&&o.includes(c)){if(s===c)return u(),!1;e=c}if(!e||!n&&i||s===e)return u(),!1;const l=ze(t.$i18n.fallbackLocale),d=t.$i18n.mergeLocaleMessage.bind(t.$i18n);if(l){const f=ZC(l,[e]);await Promise.all(f.map(h=>H_(h,U_,d,t)))}
7return await H_(e,U_,d,t),r?!1:(u(e),t._vueI18n.__setLocale(e),await t.$i18n.onLanguageSwitched(s,e),!0)}function F9(t,e,n,i,r){const{strategy:a,defaultLocale:s,differentDomains:o,multiDomainLocales:u}=t.$config.public.i18n,c=lf(),l=q9(t,e,r,i);if(l.locale&&l.from!=null&&Vs.includes(l.locale))return l.locale;let d="";o||u?d||=M9(Ol,a,e):a!=="no_prefix"&&(d||=n);const f=(Vs.includes(l.locale)||r&&Vs.includes(r))&&c&&c.useCookie&&r;return d||=f||i||s||"",d}function tD({to:t,nuxtApp:e,from:n,locale:i,routeLocale:r},a=!1){if(r===i||e.$i18n.strategy==="no_prefix")return"";const s=QC();let o=Ab(s,i,t);return a&&!o&&(o=Eb(s,t.fullPath,i)),IE(o,t.fullPath)||n&&IE(o,n.fullPath)?"":o}const B9=()=>R0(VC+":redirect",()=>"");async function nD({nuxt:t,locale:e,route:n,redirectPath:i},r=!1){const{rootRedirect:a,differentDomains:s,multiDomainLocales:o,skipSettingLocaleOnNavigate:u,locales:c,strategy:l}=t.$config.public.i18n;if(n.path==="/"&&a)return qe(a)?i="/"+a:(i="/"+a.path,a.statusCode),i=t.$localePath(i,e),$a(i,{});if(!(u&&(t._vueI18n.__pendingLocale=e,t._vueI18n.__pendingLocalePromise=new Promise(d=>{t._vueI18n.__resolvePendingLocalePromise=()=>d()}),!r))){if(o&&l==="prefix_except_default"){const d=P0(),f=c.find(g=>{if(!qe(g))return g.defaultForDomains?.find(v=>v===d)}),h=qe(f)?void 0:f?.code;if(n.path.startsWith(`/${h}`))return $a(n.path.replace(`/${h}`,""));if(!n.path.startsWith(`/${e}`)&&e!==h){const g=t._vueI18n.__localeFromRoute(n.path);return $a(g!==""?`/${e+n.path.replace(`/${g}`,"")}`:`/${e+(n.path==="/"?"":n.path)}`)}return i&&n.path!==i?$a(i):void 0}if(s){const d=B9();d.value&&d.value!==i&&(d.value="",window.location.assign(i))}else if(i)return $a(i)}}function V9(t,e,n){return n!=="no_prefix"&&!(t===e&&(n==="prefix_and_default"||n==="prefix_except_default"))}function H9(t){const{baseUrl:e,defaultLocale:n,differentDomains:i}=t.$config.public.i18n;if(on(e))return()=>e(t);const r=on(n)?n():n;return()=>{if(i&&r){const a=KC(r);if(a)return a}return e??""}}function z9(t){return Tn(t)?t:[t]}function nu(t,e=QC()){return(...n)=>t(e,...n)}function $9(){const t=navigator.languages;return x9(Ol,t)||void 0}function W9(){const t=lf(),e=t&&t.cookieKey||UU,n=new Date,i={path:"/",readonly:!1,expires:new Date(n.setDate(n.getDate()+365)),sameSite:t&&t.cookieCrossOrigin?"none":"lax",domain:t&&t.cookieDomain||void 0,secure:t&&t.cookieCrossOrigin||t&&t.cookieSecure};return o9(e,i)}function G9(t,e,n){if(e===!1||!e.useCookie)return;const i=t.value??void 0;if(i!=null){if(Vs.includes(i))return i;if(n)return t.value=n,n;t.value=void 0}}function q9(t,e,n,i=""){const r=lf();if(!r)return{locale:"",error:"disabled"};const a=t.$i18n.strategy;if(!t._vueI18n.__firstAccess)return{locale:a==="no_prefix"?i:"",error:"first_access_only"};if(a!=="no_prefix"){const c=qe(e)?e:e.path;if(r.redirectOn==="root"&&c!=="/")return{locale:"",error:"not_redirect_on_root"};if(r.redirectOn==="no prefix"&&!r.alwaysRedirect&&c.match(V_))return{locale:"",error:"not_redirect_on_no_prefix"}}const o=r.useCookie&&n||void 0;if(o)return{locale:o,from:"cookie"};const u=t.$i18n.getBrowserLocale();return u?{locale:u,from:"navigator_or_header"}:{locale:r.fallbackLocale||"",from:"fallback"}}function lf(t=Li().public.i18n){return t?.detectBrowserLanguage===!1?!1:t?.detectBrowserLanguage}function j9(t){const e=ut(),n=ze(e.$i18n.locale),i=ze(e.$i18n.locales).map(o=>qe(o)?{code:o}:o),r=i.find(o=>o.code===n)||{code:n},a=os(ze(Ic(e.$i18n).baseUrl),e.$config.app.baseURL),s=e.$config.public.i18n;return a||console.warn("I18n `baseUrl` is required to generate valid SEO tag links."),{dir:t.dir,lang:t.lang,key:t.key,seo:t.seo,locale:n,locales:i,currentDir:r.dir||s.defaultDirection,currentLocale:r,currentLanguage:r.language,baseUrl:a,runtimeI18n:s}}function X9(t,{dir:e=!0,lang:n=!0,seo:i=!0,key:r="hid"}){return Y9(t,{dir:e,lang:n,seo:i,key:r})}function Y9(t,e){const n={htmlAttrs:{},link:[],meta:[]},i=j9(e);return i.baseUrl==null||(i.dir&&(n.htmlAttrs.dir=i.currentDir),i.lang&&i.currentLanguage&&(n.htmlAttrs.lang=i.currentLanguage),i.seo&&(n.link=n.link.concat(K9(t,i),Z9(t,i)),n.meta=n.meta.concat(J9(t,i),Q9(i),eF(i)))),n}function K9(t,e){const{defaultLocale:n,strategy:i,differentDomains:r}=e.runtimeI18n,a=[];if(i==="no_prefix"&&!r)return a;const s=new Map;
7for(const c of e.locales){if(!c.language){console.warn("Locale `language` ISO code is required to generate alternate link");continue}const[l,d]=c.language.split("-");l&&d&&(c.isCatchallLocale||!s.has(l))&&s.set(l,c),s.set(c.language,c)}const o=e.runtimeI18n.experimental.alternateLinkCanonicalQueries===!0,u=o?t.router.resolve({query:{}}):void 0;!e.runtimeI18n.experimental.switchLocalePathLinkSSR&&o&&(u.meta=t.router.currentRoute.value.meta);for(const[c,l]of s.entries()){const d=Ab(t,l.code,u);if(!d)continue;const f=r&&l.domain?d:os(e.baseUrl,d),h=Il(f,o?rD(t,e):{});a.push({[e.key]:`i18n-alt-${c}`,rel:"alternate",href:h,hreflang:c}),n&&n===l.code&&a.unshift({[e.key]:"i18n-xd",rel:"alternate",href:h,hreflang:"x-default"})}return a}function iD(t,e){const n=t.router.currentRoute.value,i=k0(t,_n({},n,{path:void 0,name:Nl(t,n)}));return i?Il(os(e.baseUrl,i.path),rD(t,e)):""}function Z9(t,e){const n=iD(t,e);return n?[{[e.key]:"i18n-can",rel:"canonical",href:n}]:[]}function rD(t,e){const n=t.router.currentRoute.value,i=k0(t,_n({},n,{path:void 0,name:Nl(t,n)})),r=Ut(e.seo)&&e.seo?.canonicalQueries||[],a=i?.query||{},s={};for(const o of r.filter(u=>u in a)){s[o]??=[];for(const u of z9(a[o]))s[o].push(u||"")}return s}function J9(t,e){const n=iD(t,e);return n?[{[e.key]:"i18n-og-url",property:"og:url",content:n}]:[]}function Q9(t){return t.currentLanguage?[{[t.key]:"i18n-og",property:"og:locale",content:aD(t.currentLanguage)}]:[]}function eF(t){return t.locales.filter(n=>n.language&&n.language!==t.currentLanguage).map(n=>({[t.key]:`i18n-og-alt-${n.language}`,property:"og:locale:alternate",content:aD(n.language)}))}function aD(t=""){return t.replace(/-/g,"_")}function tF(t,e,n){return{line:t,column:e,offset:n}}function z_(t,e,n){return{start:t,end:e}}const Yt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},nF=17;function O0(t,e,n={}){const{domain:i,messages:r,args:a}=n,s=t,o=new SyntaxError(String(s));return o.code=t,e&&(o.location=e),o.domain=i,o}function iF(t){throw t}const zr=" ",rF="\r",di=`
8`,aF="\u2028",sF="\u2029";function oF(t){const e=t;let n=0,i=1,r=1,a=0;const s=D=>e[D]===rF&&e[D+1]===di,o=D=>e[D]===di,u=D=>e[D]===sF,c=D=>e[D]===aF,l=D=>s(D)||o(D)||u(D)||c(D),d=()=>n,f=()=>i,h=()=>r,g=()=>a,v=D=>s(D)||u(D)||c(D)?di:e[D],m=()=>v(n),p=()=>v(n+a);function y(){return a=0,l(n)&&(i++,r=0),s(n)&&n++,n++,r++,e[n]}function _(){return s(n+a)&&a++,a++,e[n+a]}function b(){n=0,i=1,r=1,a=0}function x(D=0){a=D}function w(){const D=n+a;for(;D!==n;)y();a=0}return{index:d,line:f,column:h,peekOffset:g,charAt:v,currentChar:m,currentPeek:p,next:y,peek:_,reset:b,resetPeek:x,skipToPeek:w}}const wa=void 0,uF=".",wx="'",lF="tokenizer";function cF(t,e={}){const n=e.location!==!1,i=oF(t),r=()=>i.index(),a=()=>tF(i.line(),i.column(),i.index()),s=a(),o=r(),u={currentType:13,offset:o,startLoc:s,endLoc:s,lastType:13,lastOffset:o,lastStartLoc:s,lastEndLoc:s,braceNest:0,inLinked:!1,text:""},c=()=>u,{onError:l}=e;function d(E,I,j,...Y){const se=c();if(I.column+=j,I.offset+=j,l){const Te=n?z_(se.startLoc,I):null,X=O0(E,Te,{domain:lF,args:Y});l(X)}}function f(E,I,j){E.endLoc=a(),E.currentType=I;const Y={type:I};return n&&(Y.loc=z_(E.startLoc,E.endLoc)),j!=null&&(Y.value=j),Y}const h=E=>f(E,13);function g(E,I){return E.currentChar()===I?(E.next(),I):(d(Yt.EXPECTED_TOKEN,a(),0,I),"")}function v(E){let I="";for(;E.currentPeek()===zr||E.currentPeek()===di;)I+=E.currentPeek(),E.peek();return I}function m(E){const I=v(E);return E.skipToPeek(),I}function p(E){if(E===wa)return!1;const I=E.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I===95}function y(E){if(E===wa)return!1;const I=E.charCodeAt(0);return I>=48&&I<=57}function _(E,I){const{currentType:j}=I;if(j!==2)return!1;v(E);const Y=p(E.currentPeek());return E.resetPeek(),Y}function b(E,I){const{currentType:j}=I;if(j!==2)return!1;v(E);const Y=E.currentPeek()==="-"?E.peek():E.currentPeek(),se=y(Y);return E.resetPeek(),se}function x(E,I){const{currentType:j}=I;if(j!==2)return!1;v(E);const Y=E.currentPeek()===wx;return E.resetPeek(),Y}function w(E,I){const{currentType:j}=I;if(j!==7)return!1;v(E);const Y=E.currentPeek()===".";return E.resetPeek(),Y}function D(E,I){const{currentType:j}=I;if(j!==8)return!1;v(E);const Y=p(E.currentPeek());return E.resetPeek(),Y}function O(E,I){const{currentType:j}=I;
8if(!(j===7||j===11))return!1;v(E);const Y=E.currentPeek()===":";return E.resetPeek(),Y}function M(E,I){const{currentType:j}=I;if(j!==9)return!1;const Y=()=>{const Te=E.currentPeek();return Te==="{"?p(E.peek()):Te==="@"||Te==="|"||Te===":"||Te==="."||Te===zr||!Te?!1:Te===di?(E.peek(),Y()):B(E,!1)},se=Y();return E.resetPeek(),se}function S(E){v(E);const I=E.currentPeek()==="|";return E.resetPeek(),I}function B(E,I=!0){const j=(se=!1,Te="")=>{const X=E.currentPeek();return X==="{"||X==="@"||!X?se:X==="|"?!(Te===zr||Te===di):X===zr?(E.peek(),j(!0,zr)):X===di?(E.peek(),j(!0,di)):!0},Y=j();return I&&E.resetPeek(),Y}function V(E,I){const j=E.currentChar();return j===wa?wa:I(j)?(E.next(),j):null}function z(E){const I=E.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36}function Q(E){return V(E,z)}function Z(E){const I=E.charCodeAt(0);return I>=97&&I<=122||I>=65&&I<=90||I>=48&&I<=57||I===95||I===36||I===45}function q(E){return V(E,Z)}function te(E){const I=E.charCodeAt(0);return I>=48&&I<=57}function $(E){return V(E,te)}function ee(E){const I=E.charCodeAt(0);return I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102}function le(E){return V(E,ee)}function xe(E){let I="",j="";for(;I=$(E);)j+=I;return j}function J(E){let I="";for(;;){const j=E.currentChar();if(j==="{"||j==="}"||j==="@"||j==="|"||!j)break;if(j===zr||j===di)if(B(E))I+=j,E.next();else{if(S(E))break;I+=j,E.next()}else I+=j,E.next()}return I}function ye(E){m(E);let I="",j="";for(;I=q(E);)j+=I;const Y=E.currentChar();if(Y&&Y!=="}"&&Y!==wa&&Y!==zr&&Y!==di&&Y!==" "){const se=De(E);return d(Yt.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,j+se),j+se}return E.currentChar()===wa&&d(Yt.UNTERMINATED_CLOSING_BRACE,a(),0),j}function H(E){m(E);let I="";return E.currentChar()==="-"?(E.next(),I+=`-${xe(E)}`):I+=xe(E),E.currentChar()===wa&&d(Yt.UNTERMINATED_CLOSING_BRACE,a(),0),I}function ie(E){return E!==wx&&E!==di}function _e(E){m(E),g(E,"'");let I="",j="";for(;I=V(E,ie);)I==="\\"?j+=W(E):j+=I;const Y=E.currentChar();return Y===di||Y===wa?(d(Yt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),Y===di&&(E.next(),g(E,"'")),j):(g(E,"'"),j)}function W(E){const I=E.currentChar();switch(I){case"\\":case"'":return E.next(),`\\${I}`;case"u":return be(E,I,4);case"U":return be(E,I,6);default:return d(Yt.UNKNOWN_ESCAPE_SEQUENCE,a(),0,I),""}}function be(E,I,j){g(E,I);let Y="";for(let se=0;se<j;se++){const Te=le(E);if(!Te){d(Yt.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${I}${Y}${E.currentChar()}`);break}Y+=Te}return`\\${I}${Y}`}function ge(E){return E!=="{"&&E!=="}"&&E!==zr&&E!==di}function De(E){m(E);let I="",j="";for(;I=V(E,ge);)j+=I;return j}function ae(E){let I="",j="";for(;I=Q(E);)j+=I;return j}function Fe(E){const I=j=>{const Y=E.currentChar();return Y==="{"||Y==="@"||Y==="|"||Y==="("||Y===")"||!Y||Y===zr?j:(j+=Y,E.next(),I(j))};return I("")}function U(E){m(E);const I=g(E,"|");return m(E),I}function K(E,I){let j=null;switch(E.currentChar()){case"{":return I.braceNest>=1&&d(Yt.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),E.next(),j=f(I,2,"{"),m(E),I.braceNest++,j;case"}":return I.braceNest>0&&I.currentType===2&&d(Yt.EMPTY_PLACEHOLDER,a(),0),E.next(),j=f(I,3,"}"),I.braceNest--,I.braceNest>0&&m(E),I.inLinked&&I.braceNest===0&&(I.inLinked=!1),j;case"@":return I.braceNest>0&&d(Yt.UNTERMINATED_CLOSING_BRACE,a(),0),j=ue(E,I)||h(I),I.braceNest=0,j;default:{let se=!0,Te=!0,X=!0;if(S(E))return I.braceNest>0&&d(Yt.UNTERMINATED_CLOSING_BRACE,a(),0),j=f(I,1,U(E)),I.braceNest=0,I.inLinked=!1,j;if(I.braceNest>0&&(I.currentType===4||I.currentType===5||I.currentType===6))return d(Yt.UNTERMINATED_CLOSING_BRACE,a(),0),I.braceNest=0,Se(E,I);if(se=_(E,I))return j=f(I,4,ye(E)),m(E),j;if(Te=b(E,I))return j=f(I,5,H(E)),m(E),j;if(X=x(E,I))return j=f(I,6,_e(E)),m(E),j;if(!se&&!Te&&!X)return j=f(I,12,De(E)),d(Yt.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,j.value),m(E),j;break}}return j}function ue(E,I){const{currentType:j}=I;let Y=null;const se=E.currentChar();switch((j===7||j===8||j===11||j===9)&&(se===di||se===zr)&&d(Yt.INVALID_LINKED_FORMAT,a(),0),se){case"@":return E.next(),Y=f(I,7,"@"),I.inLinked=!0,Y;case".":return m(E),E.next(),f(I,8,".");case":":return m(E),E.next(),f(I,9,":");default:return S(E)?(Y=f(I,1,U(E)),I.braceNest=0,I.inLinked=!1,Y):w(E,I)||O(E,I)?(m(E),ue(E,I)):D(E,I)?(m(E),f(I,11,ae(E))):M(E,I)?(m(E),se==="{"?K(E,I)||Y:f(I,10,Fe(E))):(j===7&&d(Yt.INVA
8LID_LINKED_FORMAT,a(),0),I.braceNest=0,I.inLinked=!1,Se(E,I))}}function Se(E,I){let j={type:13};if(I.braceNest>0)return K(E,I)||h(I);if(I.inLinked)return ue(E,I)||h(I);switch(E.currentChar()){case"{":return K(E,I)||h(I);case"}":return d(Yt.UNBALANCED_CLOSING_BRACE,a(),0),E.next(),f(I,3,"}");case"@":return ue(E,I)||h(I);default:{if(S(E))return j=f(I,1,U(E)),I.braceNest=0,I.inLinked=!1,j;if(B(E))return f(I,0,J(E));break}}return j}function k(){const{currentType:E,offset:I,startLoc:j,endLoc:Y}=u;return u.lastType=E,u.lastOffset=I,u.lastStartLoc=j,u.lastEndLoc=Y,u.offset=r(),u.startLoc=a(),i.currentChar()===wa?f(u,13):Se(i,u)}return{nextToken:k,currentOffset:r,currentPosition:a,context:c}}const dF="parser",fF=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function hF(t,e,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const i=parseInt(e||n,16);return i<=55295||i>=57344?String.fromCodePoint(i):"�"}}}function pF(t={}){const e=t.location!==!1,{onError:n}=t;function i(p,y,_,b,...x){const w=p.currentPosition();if(w.offset+=b,w.column+=b,n){const D=e?z_(_,w):null,O=O0(y,D,{domain:dF,args:x});n(O)}}function r(p,y,_){const b={type:p};return e&&(b.start=y,b.end=y,b.loc={start:_,end:_}),b}function a(p,y,_,b){e&&(p.end=y,p.loc&&(p.loc.end=_))}function s(p,y){const _=p.context(),b=r(3,_.offset,_.startLoc);return b.value=y,a(b,p.currentOffset(),p.currentPosition()),b}function o(p,y){const _=p.context(),{lastOffset:b,lastStartLoc:x}=_,w=r(5,b,x);return w.index=parseInt(y,10),p.nextToken(),a(w,p.currentOffset(),p.currentPosition()),w}function u(p,y){const _=p.context(),{lastOffset:b,lastStartLoc:x}=_,w=r(4,b,x);return w.key=y,p.nextToken(),a(w,p.currentOffset(),p.currentPosition()),w}function c(p,y){const _=p.context(),{lastOffset:b,lastStartLoc:x}=_,w=r(9,b,x);return w.value=y.replace(fF,hF),p.nextToken(),a(w,p.currentOffset(),p.currentPosition()),w}function l(p){const y=p.nextToken(),_=p.context(),{lastOffset:b,lastStartLoc:x}=_,w=r(8,b,x);return y.type!==11?(i(p,Yt.UNEXPECTED_EMPTY_LINKED_MODIFIER,_.lastStartLoc,0),w.value="",a(w,b,x),{nextConsumeToken:y,node:w}):(y.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,$r(y)),w.value=y.value||"",a(w,p.currentOffset(),p.currentPosition()),{node:w})}function d(p,y){const _=p.context(),b=r(7,_.offset,_.startLoc);return b.value=y,a(b,p.currentOffset(),p.currentPosition()),b}function f(p){const y=p.context(),_=r(6,y.offset,y.startLoc);let b=p.nextToken();if(b.type===8){const x=l(p);_.modifier=x.node,b=x.nextConsumeToken||p.nextToken()}switch(b.type!==9&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(b)),b=p.nextToken(),b.type===2&&(b=p.nextToken()),b.type){case 10:b.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(b)),_.key=d(p,b.value||"");break;case 4:b.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(b)),_.key=u(p,b.value||"");break;case 5:b.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(b)),_.key=o(p,b.value||"");break;case 6:b.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(b)),_.key=c(p,b.value||"");break;default:{i(p,Yt.UNEXPECTED_EMPTY_LINKED_KEY,y.lastStartLoc,0);const x=p.context(),w=r(7,x.offset,x.startLoc);return w.value="",a(w,x.offset,x.startLoc),_.key=w,a(_,x.offset,x.startLoc),{nextConsumeToken:b,node:_}}}return a(_,p.currentOffset(),p.currentPosition()),{node:_}}function h(p){const y=p.context(),_=y.currentType===1?p.currentOffset():y.offset,b=y.currentType===1?y.endLoc:y.startLoc,x=r(2,_,b);x.items=[];let w=null;do{const M=w||p.nextToken();switch(w=null,M.type){case 0:M.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(M)),x.items.push(s(p,M.value||""));break;case 5:M.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(M)),x.items.push(o(p,M.value||""));break;case 4:M.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(M)),x.items.push(u(p,M.value||""));break;case 6:M.value==null&&i(p,Yt.UNEXPECTED_LEXICAL_ANALYSIS,y.lastStartLoc,0,$r(M)),x.items.push(c(p,M.value||""));break;case 7:{const S=f(p);x.items.push(S.node),w=S.nextConsumeToken||null;break}}}while(y.currentType!==13&&y.currentType!==1);const D=y.currentType===1?y.lastOffset:p.currentOffset(),O=y.currentType===1?y.lastEndLoc:p.currentPosition();return a(x,D,O),x}function g(p,y,_,b){const x=p.context();let w=b.items.length===0;const D=r(1,y,_);D.cases=[],D.cases.push(b);do{const O=h(p);w||(w=O.items.length===0),D.cases.push(O)}while(x.currentType!==13);return w&&i(p,Yt.MUST_HAVE_MESSAGES_IN_PLURAL,_,0),a(D,p.currentOffset(),p.currentPosition()),D}function v(p){const y=p.context(),{offset:_,startLoc:b}=y,x=h(p);return y.currentType===13?x:g(p,_,b,x)}function m(p){const y=cF(p,_n({},t)),_=y.context(),b=r(0,_.offset,_.startLoc);return e&&b.loc&&(b.loc.source=p),b.body=v(y),t.onCacheKey&&(b.cacheKey=t.onCacheKey(p)),_.currentType!==13&&i(y,Yt.UNEXPECTED_LEXICAL_ANALYSIS,_.lastStartLoc,0,p[_.offset]||""),a(b,y.currentOffset(),y.currentPosition()),b}return{parse:m}}function $r(t){if(t.type===13)return"EOF";const e=(t.value||"").replace(/\r?\n/gu,"\\n");return e.length>
810?e.slice(0,9)+"…":e}function mF(t,e={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function Mx(t,e){for(let n=0;n<t.length;n++)Sb(t[n],e)}function Sb(t,e){switch(t.type){case 1:Mx(t.cases,e),e.helper("plural");break;case 2:Mx(t.items,e);break;case 6:{Sb(t.key,e),e.helper("linked"),e.helper("type");break}case 5:e.helper("interpolate"),e.helper("list");break;case 4:e.helper("interpolate"),e.helper("named");break}}function gF(t,e={}){const n=mF(t);n.helper("normalize"),t.body&&Sb(t.body,n);const i=n.context();t.helpers=Array.from(i.helpers)}function vF(t){const e=t.body;return e.type===2?Cx(e):e.cases.forEach(n=>Cx(n)),t}function Cx(t){if(t.items.length===1){const e=t.items[0];(e.type===3||e.type===9)&&(t.static=e.value,delete e.value)}else{const e=[];for(let n=0;n<t.items.length;n++){const i=t.items[n];if(!(i.type===3||i.type===9)||i.value==null)break;e.push(i.value)}if(e.length===t.items.length){t.static=yb(e);for(let n=0;n<t.items.length;n++){const i=t.items[n];(i.type===3||i.type===9)&&delete i.value}}}}function zu(t){switch(t.t=t.type,t.type){case 0:{const e=t;zu(e.body),e.b=e.body,delete e.body;break}case 1:{const e=t,n=e.cases;for(let i=0;i<n.length;i++)zu(n[i]);e.c=n,delete e.cases;break}case 2:{const e=t,n=e.items;for(let i=0;i<n.length;i++)zu(n[i]);e.i=n,delete e.items,e.static&&(e.s=e.static,delete e.static);break}case 3:case 9:case 8:case 7:{const e=t;e.value&&(e.v=e.value,delete e.value);break}case 6:{const e=t;zu(e.key),e.k=e.key,delete e.key,e.modifier&&(zu(e.modifier),e.m=e.modifier,delete e.modifier);break}case 5:{const e=t;e.i=e.index,delete e.index;break}case 4:{const e=t;e.k=e.key,delete e.key;break}}delete t.type}function _F(t,e){const{filename:n,breakLineCode:i,needIndent:r}=e,a=e.location!==!1,s={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:r,indentLevel:0};a&&t.loc&&(s.source=t.loc.source);const o=()=>s;function u(v,m){s.code+=v}function c(v,m=!0){const p=m?i:"";u(r?p+"  ".repeat(v):p)}function l(v=!0){const m=++s.indentLevel;v&&c(m)}function d(v=!0){const m=--s.indentLevel;v&&c(m)}function f(){c(s.indentLevel)}return{context:o,push:u,indent:l,deindent:d,newline:f,helper:v=>`_${v}`,needIndent:()=>s.needIndent}}function bF(t,e){const{helper:n}=t;t.push(`${n("linked")}(`),Ul(t,e.key),e.modifier?(t.push(", "),Ul(t,e.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function yF(t,e){const{helper:n,needIndent:i}=t;t.push(`${n("normalize")}([`),t.indent(i());const r=e.items.length;for(let a=0;a<r&&(Ul(t,e.items[a]),a!==r-1);a++)t.push(", ");t.deindent(i()),t.push("])")}function EF(t,e){const{helper:n,needIndent:i}=t;if(e.cases.length>1){t.push(`${n("plural")}([`),t.indent(i());const r=e.cases.length;for(let a=0;a<r&&(Ul(t,e.cases[a]),a!==r-1);a++)t.push(", ");t.deindent(i()),t.push("])")}}function xF(t,e){e.body?Ul(t,e.body):t.push("null")}function Ul(t,e){const{helper:n}=t;switch(e.type){case 0:xF(t,e);break;case 1:EF(t,e);break;case 2:yF(t,e);break;case 6:bF(t,e);break;case 8:t.push(JSON.stringify(e.value),e);break;case 7:t.push(JSON.stringify(e.value),e);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${e.index}))`,e);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(e.key)}))`,e);break;case 9:t.push(JSON.stringify(e.value),e);break;case 3:t.push(JSON.stringify(e.value),e);break}}const AF=(t,e={})=>{const n=qe(e.mode)?e.mode:"normal",i=qe(e.filename)?e.filename:"message.intl";e.sourceMap;const r=e.breakLineCode!=null?e.breakLineCode:n==="arrow"?";":`
9`,a=e.needIndent?e.needIndent:n!=="arrow",s=t.helpers||[],o=_F(t,{filename:i,breakLineCode:r,needIndent:a});o.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),o.indent(a),s.length>0&&(o.push(`const { ${yb(s.map(l=>`${l}: _${l}`),", ")} } = ctx`),o.newline()),o.push("return "),Ul(o,t),o.deindent(a),o.push("}"),delete t.helpers;const{code:u,map:c}=o.context();return{ast:t,code:u,map:c?c.toJSON():void 0}};function SF(t,e={}){const n=_n({},e),i=!!n.jit,r=!!n.minify,a=n.optimize==null?!0:n.optimize,o=pF(n).parse(t);
9return i?(a&&vF(o),r&&zu(o),{ast:o,code:""}):(gF(o,n),AF(o,n))}function TF(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bb().__INTLIFY_PROD_DEVTOOLS__=!1)}function ba(t){return Ut(t)&&Tb(t)===0&&(Lr(t,"b")||Lr(t,"body"))}const sD=["b","body"];function wF(t){return eo(t,sD)}const oD=["c","cases"];function MF(t){return eo(t,oD,[])}const uD=["s","static"];function CF(t){return eo(t,uD)}const lD=["i","items"];function DF(t){return eo(t,lD,[])}const cD=["t","type"];function Tb(t){return eo(t,cD)}const dD=["v","value"];function jf(t,e){const n=eo(t,dD);if(n!=null)return n;throw Md(e)}const fD=["m","modifier"];function LF(t){return eo(t,fD)}const hD=["k","key"];function RF(t){const e=eo(t,hD);if(e)return e;throw Md(6)}function eo(t,e,n){for(let i=0;i<e.length;i++){const r=e[i];if(Lr(t,r)&&t[r]!=null)return t[r]}return n}const pD=[...sD,...oD,...uD,...lD,...hD,...fD,...dD,...cD];function Md(t){return new Error(`unhandled node type: ${t}`)}function kg(t){return n=>IF(n,t)}function IF(t,e){const n=wF(e);if(n==null)throw Md(0);if(Tb(n)===1){const a=MF(n);return t.plural(a.reduce((s,o)=>[...s,Dx(t,o)],[]))}else return Dx(t,n)}function Dx(t,e){const n=CF(e);if(n!=null)return t.type==="text"?n:t.normalize([n]);{const i=DF(e).reduce((r,a)=>[...r,$_(t,a)],[]);return t.normalize(i)}}function $_(t,e){const n=Tb(e);switch(n){case 3:return jf(e,n);case 9:return jf(e,n);case 4:{const i=e;if(Lr(i,"k")&&i.k)return t.interpolate(t.named(i.k));if(Lr(i,"key")&&i.key)return t.interpolate(t.named(i.key));throw Md(n)}case 5:{const i=e;if(Lr(i,"i")&&Fn(i.i))return t.interpolate(t.list(i.i));if(Lr(i,"index")&&Fn(i.index))return t.interpolate(t.list(i.index));throw Md(n)}case 6:{const i=e,r=LF(i),a=RF(i);return t.linked($_(t,a),r?$_(t,r):void 0,t.type)}case 7:return jf(e,n);case 8:return jf(e,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const PF=t=>t;let Xf=rn();function kF(t,e={}){let n=!1;const i=e.onError||iF;return e.onError=r=>{n=!0,i(r)},{...SF(t,e),detectError:n}}function OF(t,e){if(qe(t)){An(e.warnHtmlMessage)&&e.warnHtmlMessage;const i=(e.onCacheKey||PF)(t),r=Xf[i];if(r)return r;const{ast:a,detectError:s}=kF(t,{...e,location:!1,jit:!0}),o=kg(a);return s?o:Xf[i]=o}else{const n=t.cacheKey;if(n){const i=Xf[n];return i||(Xf[n]=kg(t))}else return kg(t)}}let Cd=null;function NF(t){Cd=t}function UF(t,e,n){Cd&&Cd.emit("i18n:init",{timestamp:Date.now(),i18n:t,version:e,meta:n})}const FF=BF("function:translate");function BF(t){return e=>Cd&&Cd.emit(t,e)}const Ya={INVALID_ARGUMENT:nF,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},VF=24;function Ka(t){return O0(t,null,void 0)}function wb(t,e){return e.locale!=null?Lx(e.locale):Lx(t.locale)}let Og;function Lx(t){if(qe(t))return t;if(on(t)){if(t.resolvedOnce&&Og!=null)return Og;if(t.constructor.name==="Function"){const e=t();if(PU(e))throw Ka(Ya.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return Og=e}else throw Ka(Ya.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Ka(Ya.NOT_SUPPORT_LOCALE_TYPE)}function HF(t,e,n){return[...new Set([n,...Tn(e)?e:Ut(e)?Object.keys(e):qe(e)?[e]:[n]])]}function mD(t,e,n){const i=qe(n)?n:xm,r=t;r.__localeChainCache||(r.__localeChainCache=new Map);let a=r.__localeChainCache.get(i);if(!a){a=[];let s=[n];for(;Tn(s);)s=Rx(a,s,e);const o=Tn(e)||!Nt(e)?e:e.default?e.default:null;s=qe(o)?[o]:o,Tn(s)&&Rx(a,s,!1),r.__localeChainCache.set(i,a)}return a}function Rx(t,e,n){let i=!0;for(let r=0;r<e.length&&An(i);r++){const a=e[r];qe(a)&&(i=zF(t,e[r],n))}return i}function zF(t,e,n){let i;const r=e.split("-");do{const a=r.join("-");i=$F(t,a,n),r.splice(-1,1)}while(r.length&&i===!0);return i}function $F(t,e,n){let i=!1;if(!t.includes(e)&&(i=!0,e)){i=e[e.length-1]!=="!";const r=e.replace(/!/g,"");t.push(r),(Tn(n)||Nt(n))&&n[r]&&(i=n[r])}return i}const to=[];to[0]={w:[0],i:[3,0],"[":[4],o:[7]};to[1]={w:[1],".":[2],"[":[4],o:[7]};to[2]={w:[2],i:[3,0],0:[3,0]};to[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};to[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};to[5]={"'":[4,0],o:8,l:[5,0]};to[6]={'"':[4,0],o:8,l:[6,0]};const WF=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function GF(t){return WF.test(t)}function qF(t){const e=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return e===n&&(e===34||e===39)?t.slice(1,-1):t}function jF(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function XF(t){const e=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:GF(e)?qF(e):"*"+e}function YF(t){const e=[];let n=-1,i=0,r=0,a,s,o,u,c,l,d;const f=[];f[0]=()=>{s===void 0?s=o:s+=o},f[1]=()=>{s!==void 0&&(e.push(s),s=void 0)},f[2]=()=>{f[0](),r++},f[3]=()=>
9{if(r>0)r--,i=4,f[0]();else{if(r=0,s===void 0||(s=XF(s),s===!1))return!1;f[1]()}};function h(){const g=t[n+1];if(i===5&&g==="'"||i===6&&g==='"')return n++,o="\\"+g,f[0](),!0}for(;i!==null;)if(n++,a=t[n],!(a==="\\"&&h())){if(u=jF(a),d=to[i],c=d[u]||d.l||8,c===8||(i=c[0],c[1]!==void 0&&(l=f[c[1]],l&&(o=a,l()===!1))))return;if(i===7)return e}}const Ix=new Map;function KF(t,e){return Ut(t)?t[e]:null}function ZF(t,e){if(!Ut(t))return null;let n=Ix.get(e);if(n||(n=YF(e),n&&Ix.set(e,n)),!n)return null;const i=n.length;let r=t,a=0;for(;a<i;){const s=n[a];if(pD.includes(s)&&ba(r))return null;const o=r[s];if(o===void 0||on(r))return null;r=o,a++}return r}const JF="10.0.8",N0=-1,xm="en-US",Px="",kx=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function QF(){return{upper:(t,e)=>e==="text"&&qe(t)?t.toUpperCase():e==="vnode"&&Ut(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,e)=>e==="text"&&qe(t)?t.toLowerCase():e==="vnode"&&Ut(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,e)=>e==="text"&&qe(t)?kx(t):e==="vnode"&&Ut(t)&&"__v_isVNode"in t?kx(t.children):t}}let gD;function eB(t){gD=t}let vD;function tB(t){vD=t}let _D;function nB(t){_D=t}let bD=null;const iB=t=>{bD=t},rB=()=>bD;let yD=null;const Ox=t=>{yD=t},aB=()=>yD;let Nx=0;function sB(t={}){const e=on(t.onWarn)?t.onWarn:wU,n=qe(t.version)?t.version:JF,i=qe(t.locale)||on(t.locale)?t.locale:xm,r=on(i)?xm:i,a=Tn(t.fallbackLocale)||Nt(t.fallbackLocale)||qe(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,s=Nt(t.messages)?t.messages:Ng(r),o=Nt(t.datetimeFormats)?t.datetimeFormats:Ng(r),u=Nt(t.numberFormats)?t.numberFormats:Ng(r),c=_n(rn(),t.modifiers,QF()),l=t.pluralRules||rn(),d=on(t.missing)?t.missing:null,f=An(t.missingWarn)||ym(t.missingWarn)?t.missingWarn:!0,h=An(t.fallbackWarn)||ym(t.fallbackWarn)?t.fallbackWarn:!0,g=!!t.fallbackFormat,v=!!t.unresolving,m=on(t.postTranslation)?t.postTranslation:null,p=Nt(t.processor)?t.processor:null,y=An(t.warnHtmlMessage)?t.warnHtmlMessage:!0,_=!!t.escapeParameter,b=on(t.messageCompiler)?t.messageCompiler:gD,x=on(t.messageResolver)?t.messageResolver:vD||KF,w=on(t.localeFallbacker)?t.localeFallbacker:_D||HF,D=Ut(t.fallbackContext)?t.fallbackContext:void 0,O=t,M=Ut(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,S=Ut(O.__numberFormatters)?O.__numberFormatters:new Map,B=Ut(O.__meta)?O.__meta:{};Nx++;const V={version:n,cid:Nx,locale:i,fallbackLocale:a,messages:s,modifiers:c,pluralRules:l,missing:d,missingWarn:f,fallbackWarn:h,fallbackFormat:g,unresolving:v,postTranslation:m,processor:p,warnHtmlMessage:y,escapeParameter:_,messageCompiler:b,messageResolver:x,localeFallbacker:w,fallbackContext:D,onWarn:e,__meta:B};return V.datetimeFormats=o,V.numberFormats=u,V.__datetimeFormatters=M,V.__numberFormatters=S,__INTLIFY_PROD_DEVTOOLS__&&UF(V,n,B),V}const Ng=t=>({[t]:rn()});function Mb(t,e,n,i,r){const{missing:a,onWarn:s}=t;if(a!==null){const o=a(t,n,e,r);return qe(o)?o:e}else return e}function lc(t,e,n){const i=t;i.__localeChainCache=new Map,t.localeFallbacker(t,n,e)}function oB(t,e){return t===e?!1:t.split("-")[0]===e.split("-")[0]}function uB(t,e){const n=e.indexOf(t);if(n===-1)return!1;for(let i=n+1;i<e.length;i++)if(oB(t,e[i]))return!0;return!1}function Ux(t,...e){const{datetimeFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=t,{__datetimeFormatters:o}=t,[u,c,l,d]=W_(...e),f=An(l.missingWarn)?l.missingWarn:t.missingWarn;An(l.fallbackWarn)?l.fallbackWarn:t.fallbackWarn;const h=!!l.part,g=wb(t,l),v=s(t,r,g);if(!qe(u)||u==="")return new Intl.DateTimeFormat(g,d).format(c);let m={},p,y=null;const _="datetime format";for(let w=0;w<v.length&&(p=v[w],m=n[p]||{},y=m[u],!Nt(y));w++)Mb(t,u,p,f,_);if(!Nt(y)||!qe(p))return i?N0:u;let b=`${p}__${u}`;D0(d)||(b=`${b}__${JSON.stringify(d)}`);let x=o.get(b);return x||(x=new Intl.DateTimeFormat(p,_n({},y,d)),o.set(b,x)),h?x.formatToParts(c):x.format(c)}const ED=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function W_(...t){const[e,n,i,r]=t,a=rn();let s=rn(),o;if(qe(e)){const u=e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!u)throw Ka(Ya.INVALID_ISO_DATE_ARGUMENT);const c=u[3]?u[3].trim().startsWith("T")?`${u[1].trim()}${u[3].trim()}`:`${u[1].trim()}T${u[3].trim()}`:u[1].trim();o=new Date(c);try{o.toISOString()}catch{throw Ka(Ya.INVALID_ISO_DATE_ARGUMENT)}}
9else if(DU(e)){if(isNaN(e.getTime()))throw Ka(Ya.INVALID_DATE_ARGUMENT);o=e}else if(Fn(e))o=e;else throw Ka(Ya.INVALID_ARGUMENT);return qe(n)?a.key=n:Nt(n)&&Object.keys(n).forEach(u=>{ED.includes(u)?s[u]=n[u]:a[u]=n[u]}),qe(i)?a.locale=i:Nt(i)&&(s=i),Nt(r)&&(s=r),[a.key||"",o,a,s]}function Fx(t,e,n){const i=t;for(const r in n){const a=`${e}__${r}`;i.__datetimeFormatters.has(a)&&i.__datetimeFormatters.delete(a)}}function Bx(t,...e){const{numberFormats:n,unresolving:i,fallbackLocale:r,onWarn:a,localeFallbacker:s}=t,{__numberFormatters:o}=t,[u,c,l,d]=G_(...e),f=An(l.missingWarn)?l.missingWarn:t.missingWarn;An(l.fallbackWarn)?l.fallbackWarn:t.fallbackWarn;const h=!!l.part,g=wb(t,l),v=s(t,r,g);if(!qe(u)||u==="")return new Intl.NumberFormat(g,d).format(c);let m={},p,y=null;const _="number format";for(let w=0;w<v.length&&(p=v[w],m=n[p]||{},y=m[u],!Nt(y));w++)Mb(t,u,p,f,_);if(!Nt(y)||!qe(p))return i?N0:u;let b=`${p}__${u}`;D0(d)||(b=`${b}__${JSON.stringify(d)}`);let x=o.get(b);return x||(x=new Intl.NumberFormat(p,_n({},y,d)),o.set(b,x)),h?x.formatToParts(c):x.format(c)}const xD=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function G_(...t){const[e,n,i,r]=t,a=rn();let s=rn();if(!Fn(e))throw Ka(Ya.INVALID_ARGUMENT);const o=e;return qe(n)?a.key=n:Nt(n)&&Object.keys(n).forEach(u=>{xD.includes(u)?s[u]=n[u]:a[u]=n[u]}),qe(i)?a.locale=i:Nt(i)&&(s=i),Nt(r)&&(s=r),[a.key||"",o,a,s]}function Vx(t,e,n){const i=t;for(const r in n){const a=`${e}__${r}`;i.__numberFormatters.has(a)&&i.__numberFormatters.delete(a)}}const lB=t=>t,cB=t=>"",dB="text",fB=t=>t.length===0?"":yb(t),hB=kU;function Hx(t,e){return t=Math.abs(t),e===2?t?t>1?1:0:1:t?Math.min(t,2):0}function pB(t){const e=Fn(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(Fn(t.named.count)||Fn(t.named.n))?Fn(t.named.count)?t.named.count:Fn(t.named.n)?t.named.n:e:e}function mB(t,e){e.count||(e.count=t),e.n||(e.n=t)}function gB(t={}){const e=t.locale,n=pB(t),i=Ut(t.pluralRules)&&qe(e)&&on(t.pluralRules[e])?t.pluralRules[e]:Hx,r=Ut(t.pluralRules)&&qe(e)&&on(t.pluralRules[e])?Hx:void 0,a=p=>p[i(n,p.length,r)],s=t.list||[],o=p=>s[p],u=t.named||rn();Fn(t.pluralIndex)&&mB(n,u);const c=p=>u[p];function l(p,y){const _=on(t.messages)?t.messages(p,!!y):Ut(t.messages)?t.messages[p]:!1;return _||(t.parent?t.parent.message(p):cB)}const d=p=>t.modifiers?t.modifiers[p]:lB,f=Nt(t.processor)&&on(t.processor.normalize)?t.processor.normalize:fB,h=Nt(t.processor)&&on(t.processor.interpolate)?t.processor.interpolate:hB,g=Nt(t.processor)&&qe(t.processor.type)?t.processor.type:dB,m={list:o,named:c,plural:a,linked:(p,...y)=>{const[_,b]=y;let x="text",w="";y.length===1?Ut(_)?(w=_.modifier||w,x=_.type||x):qe(_)&&(w=_||w):y.length===2&&(qe(_)&&(w=_||w),qe(b)&&(x=b||x));const D=l(p,!0)(m),O=x==="vnode"&&Tn(D)&&w?D[0]:D;return w?d(w)(O,x):O},message:l,type:g,interpolate:h,normalize:f,values:_n(rn(),s,u)};return m}const zx=()=>"",dr=t=>on(t);function $x(t,...e){const{fallbackFormat:n,postTranslation:i,unresolving:r,messageCompiler:a,fallbackLocale:s,messages:o}=t,[u,c]=q_(...e),l=An(c.missingWarn)?c.missingWarn:t.missingWarn,d=An(c.fallbackWarn)?c.fallbackWarn:t.fallbackWarn,f=An(c.escapeParameter)?c.escapeParameter:t.escapeParameter,h=!!c.resolvedMessage,g=qe(c.default)||An(c.default)?An(c.default)?a?u:()=>u:c.default:n?a?u:()=>u:null,v=n||g!=null&&(qe(g)||on(g)),m=wb(t,c);f&&vB(c);let[p,y,_]=h?[u,m,o[m]||rn()]:AD(t,u,m,s,d,l),b=p,x=u;if(!h&&!(qe(b)||ba(b)||dr(b))&&v&&(b=g,x=b),!h&&(!(qe(b)||ba(b)||dr(b))||!qe(y)))return r?N0:u;let w=!1;const D=()=>{w=!0},O=dr(b)?b:SD(t,u,y,b,x,D);if(w)return b;const M=yB(t,y,_,c),S=gB(M),B=_B(t,O,S);let V=i?i(B,u):B;if(f&&qe(V)&&(V=RU(V)),__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:qe(u)?u:dr(b)?b.key:"",locale:y||(dr(b)?b.locale:""),format:qe(b)?b:dr(b)?b.source:"",message:V};z.meta=_n({},t.__meta,rB()||{}),FF(z)}return V}function vB(t){Tn(t.list)?t.list=t.list.map(e=>
9qe(e)?_x(e):e):Ut(t.named)&&Object.keys(t.named).forEach(e=>{qe(t.named[e])&&(t.named[e]=_x(t.named[e]))})}function AD(t,e,n,i,r,a){const{messages:s,onWarn:o,messageResolver:u,localeFallbacker:c}=t,l=c(t,i,n);let d=rn(),f,h=null;const g="translate";for(let v=0;v<l.length&&(f=l[v],d=s[f]||rn(),(h=u(d,e))===null&&(h=d[e]),!(qe(h)||ba(h)||dr(h)));v++)if(!uB(f,l)){const m=Mb(t,e,f,a,g);m!==e&&(h=m)}return[h,f,d]}function SD(t,e,n,i,r,a){const{messageCompiler:s,warnHtmlMessage:o}=t;if(dr(i)){const c=i;return c.locale=c.locale||n,c.key=c.key||e,c}if(s==null){const c=(()=>i);return c.locale=n,c.key=e,c}const u=s(i,bB(t,n,r,i,o,a));return u.locale=n,u.key=e,u.source=i,u}function _B(t,e,n){return e(n)}function q_(...t){const[e,n,i]=t,r=rn();if(!qe(e)&&!Fn(e)&&!dr(e)&&!ba(e))throw Ka(Ya.INVALID_ARGUMENT);const a=Fn(e)?String(e):(dr(e),e);return Fn(n)?r.plural=n:qe(n)?r.default=n:Nt(n)&&!D0(n)?r.named=n:Tn(n)&&(r.list=n),Fn(i)?r.plural=i:qe(i)?r.default=i:Nt(i)&&_n(r,i),[a,r]}function bB(t,e,n,i,r,a){return{locale:e,key:n,warnHtmlMessage:r,onError:s=>{throw a&&a(s),s},onCacheKey:s=>MU(e,n,s)}}function yB(t,e,n,i){const{modifiers:r,pluralRules:a,messageResolver:s,fallbackLocale:o,fallbackWarn:u,missingWarn:c,fallbackContext:l}=t,f={locale:e,modifiers:r,pluralRules:a,messages:(h,g)=>{let v=s(n,h);if(v==null&&(l||g)){const[,,m]=AD(l||t,h,e,o,u,c);v=s(m,h)}if(qe(v)||ba(v)){let m=!1;const y=SD(t,h,e,v,h,()=>{m=!0});return m?zx:y}else return dr(v)?v:zx}};return t.processor&&(f.processor=t.processor),i.list&&(f.list=i.list),i.named&&(f.named=i.named),Fn(i.plural)&&(f.pluralIndex=i.plural),f}TF();const EB="10.0.8";function xB(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(bb().__INTLIFY_PROD_DEVTOOLS__=!1)}const mr={UNEXPECTED_RETURN_TYPE:VF,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Br(t,...e){return O0(t,null,void 0)}const j_=Qs("__translateVNode"),X_=Qs("__datetimeParts"),Y_=Qs("__numberParts"),AB=Qs("__setPluralRules"),SB=Qs("__injectWithOption"),K_=Qs("__dispose");function Dd(t){if(!Ut(t)||ba(t))return t;for(const e in t)if(Lr(t,e))if(!e.includes("."))Ut(t[e])&&Dd(t[e]);else{const n=e.split("."),i=n.length-1;let r=t,a=!1;for(let s=0;s<i;s++){if(n[s]==="__proto__")throw new Error(`unsafe key: ${n[s]}`);if(n[s]in r||(r[n[s]]=rn()),!Ut(r[n[s]])){a=!0;break}r=r[n[s]]}if(a||(ba(r)?pD.includes(n[i])||delete t[e]:(r[n[i]]=t[e],delete t[e])),!ba(r)){const s=r[n[i]];Ut(s)&&Dd(s)}}return t}function TD(t,e){const{messages:n,__i18n:i,messageResolver:r,flatJson:a}=e,s=Nt(n)?n:Tn(i)?rn():{[t]:rn()};if(Tn(i)&&i.forEach(o=>{if("locale"in o&&"resource"in o){const{locale:u,resource:c}=o;u?(s[u]=s[u]||rn(),gl(c,s[u])):gl(c,s)}else qe(o)&&gl(JSON.parse(o),s)}),r==null&&a)for(const o in s)Lr(s,o)&&Dd(s[o]);return s}function wD(t){return t.type}function TB(t,e,n){let i=Ut(e.messages)?e.messages:rn();"__i18nGlobal"in n&&(i=TD(t.locale.value,{messages:i,__i18n:n.__i18nGlobal}));const r=Object.keys(i);r.length&&r.forEach(a=>{t.mergeLocaleMessage(a,i[a])});{if(Ut(e.datetimeFormats)){const a=Object.keys(e.datetimeFormats);a.length&&a.forEach(s=>{t.mergeDateTimeFormat(s,e.datetimeFormats[s])})}if(Ut(e.numberFormats)){const a=Object.keys(e.numberFormats);a.length&&a.forEach(s=>{t.mergeNumberFormat(s,e.numberFormats[s])})}}}function Wx(t){return Ct(Bs,null,t,0)}const Gx="__INTLIFY_META__",qx=()=>[],wB=()=>!1;let jx=0;function Xx(t){return((e,n,i,r)=>t(n,i,Mn()||void 0,r))}const MB=()=>{const t=Mn();let e=null;return t&&(e=wD(t)[Gx])?{[Gx]:e}:null};function MD(t={}){const{__root:e,__injectWithOption:n}=t,i=e===void 0,r=t.flatJson,a=bm?Le:hn;let s=An(t.inheritLocale)?t.inheritLocale:!0;const o=a(e&&s?e.locale.value:qe(t.locale)?t.locale:xm),u=a(e&&s?e.fallbackLocale.value:qe(t.fallbackLocale)||Tn(t.fallbackLocale)||Nt(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:o.value),c=a(TD(o.value,t)),l=a(Nt(t.datetimeFormats)?t.datetimeFormats:{[o.value]:{}}),d=a(Nt(t.numberFormats)?t.numberFormats:{[o.value]:{}});let f=e?e.missingWarn:An(t.missingWarn)||ym(t.missingWarn)?t.missingWarn:!0,h=e?e.fallbackWarn:An(t.fallbackWarn)||ym(t.fallbackWarn)?t.fallbackWarn:!0,g=e?e.fallbackRoot:An(t.fallbackRoot)?t.fallbackRoot:!0,v=!!t.fallbackFormat,m=on(t.missing)?t.missing:null,p=on(t.missing)?Xx(t.missing):null,y=on(t.postTranslation)?t.postTranslation:null,_=e?e.warnHtmlMessage:An(t.warnHtmlMessage)?t.warnHtmlMessage:!0,b=!!t.escapeParameter;const x=e?e.modifiers:Nt(t.modifiers)?t.modifiers:{};let w=t.pluralRules||e&&e.pluralRules,D;D=(()=>{i&&Ox(null);const X={version:EB,locale:o.value,fallbackLocale:u.value,messages:c.value,modifiers:x,pluralRules:w,missing:p===null?void 0:p,missingWarn:f,fallbackWarn:h,fallbackFormat:v,unresolving:!0,postTranslation:y===null?void 0:y,warnHtmlMessage:_,escapeParameter:b,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};X.datetimeFormats=l.value,X.numberFormats=d.value,X.__datetimeFormatters=Nt(D)?D.__datetimeFormatters:void 0,X.__numberFormatters=Nt(D)?D.__numberFormatters:void 0;const ce=sB(X);return i&&Ox(ce),ce})(),lc(D,o.value,u.value);function M(){return[o.value,u.value,c.value,l.value,d.value]}const S=Ve({get:()=>o.value,set:X=>{o.value=X,D.locale=o.value}}),B=Ve({get:()=>u.value,set:X=>{u.value=X,D.fallbackLocale=u.value,lc(D,o.value,X)}}),V=Ve(()=>c.value),z=Ve(()=>l.value),Q=Ve(()=>d.value);function Z(){return on(y)?y:null}function q(X){y=X,D.postTranslation=X}function te(){return m}function $(X){X!==null&&(p=Xx(X)),m=X,D.missing=p}const ee=(X,ce,Ie,Me,Oe,$e)=>{M();let Be;try{__INTLIFY_PROD_DEVTOOLS__,i||(D.fallbackContext=e?aB():void 0),Be=X(D)}finally{__INTLIFY_PROD_DEVTOOLS__,i||(D.fallbackContext=void 0)}if(Ie!=="translate exists"&&Fn(Be)&&Be===N0||Ie==="translate exists"&&!Be){const[Ne,lt]=ce();return e&&g?Me(e):Oe(Ne)}else{if($e(Be))return Be;throw Br(mr.UNEXPECTED_RETURN_TYPE)}};function le(...X){return ee(ce=>Reflect.apply($x,null,[ce,...X]),()=>q_(...X),"translate",ce=>Reflect.apply(ce.t,ce,[...X]),ce=>ce,ce=>qe(ce))}function xe(...X){const[ce,Ie,Me]=X;
9if(Me&&!Ut(Me))throw Br(mr.INVALID_ARGUMENT);return le(ce,Ie,_n({resolvedMessage:!0},Me||{}))}function J(...X){return ee(ce=>Reflect.apply(Ux,null,[ce,...X]),()=>W_(...X),"datetime format",ce=>Reflect.apply(ce.d,ce,[...X]),()=>Px,ce=>qe(ce))}function ye(...X){return ee(ce=>Reflect.apply(Bx,null,[ce,...X]),()=>G_(...X),"number format",ce=>Reflect.apply(ce.n,ce,[...X]),()=>Px,ce=>qe(ce))}function H(X){return X.map(ce=>qe(ce)||Fn(ce)||An(ce)?Wx(String(ce)):ce)}const _e={normalize:H,interpolate:X=>X,type:"vnode"};function W(...X){return ee(ce=>{let Ie;const Me=ce;try{Me.processor=_e,Ie=Reflect.apply($x,null,[Me,...X])}finally{Me.processor=null}return Ie},()=>q_(...X),"translate",ce=>ce[j_](...X),ce=>[Wx(ce)],ce=>Tn(ce))}function be(...X){return ee(ce=>Reflect.apply(Bx,null,[ce,...X]),()=>G_(...X),"number format",ce=>ce[Y_](...X),qx,ce=>qe(ce)||Tn(ce))}function ge(...X){return ee(ce=>Reflect.apply(Ux,null,[ce,...X]),()=>W_(...X),"datetime format",ce=>ce[X_](...X),qx,ce=>qe(ce)||Tn(ce))}function De(X){w=X,D.pluralRules=w}function ae(X,ce){return ee(()=>{if(!X)return!1;const Ie=qe(ce)?ce:o.value,Me=K(Ie),Oe=D.messageResolver(Me,X);return ba(Oe)||dr(Oe)||qe(Oe)},()=>[X],"translate exists",Ie=>Reflect.apply(Ie.te,Ie,[X,ce]),wB,Ie=>An(Ie))}function Fe(X){let ce=null;const Ie=mD(D,u.value,o.value);for(let Me=0;Me<Ie.length;Me++){const Oe=c.value[Ie[Me]]||{},$e=D.messageResolver(Oe,X);if($e!=null){ce=$e;break}}return ce}function U(X){const ce=Fe(X);return ce??(e?e.tm(X)||{}:{})}function K(X){return c.value[X]||{}}function ue(X,ce){if(r){const Ie={[X]:ce};for(const Me in Ie)Lr(Ie,Me)&&Dd(Ie[Me]);ce=Ie[X]}c.value[X]=ce,D.messages=c.value}function Se(X,ce){c.value[X]=c.value[X]||{};const Ie={[X]:ce};if(r)for(const Me in Ie)Lr(Ie,Me)&&Dd(Ie[Me]);ce=Ie[X],gl(ce,c.value[X]),D.messages=c.value}function k(X){return l.value[X]||{}}function E(X,ce){l.value[X]=ce,D.datetimeFormats=l.value,Fx(D,X,ce)}function I(X,ce){l.value[X]=_n(l.value[X]||{},ce),D.datetimeFormats=l.value,Fx(D,X,ce)}function j(X){return d.value[X]||{}}function Y(X,ce){d.value[X]=ce,D.numberFormats=d.value,Vx(D,X,ce)}function se(X,ce){d.value[X]=_n(d.value[X]||{},ce),D.numberFormats=d.value,Vx(D,X,ce)}jx++,e&&bm&&(st(e.locale,X=>{s&&(o.value=X,D.locale=X,lc(D,o.value,u.value))}),st(e.fallbackLocale,X=>{s&&(u.value=X,D.fallbackLocale=X,lc(D,o.value,u.value))}));const Te={id:jx,locale:S,fallbackLocale:B,get inheritLocale(){return s},set inheritLocale(X){s=X,X&&e&&(o.value=e.locale.value,u.value=e.fallbackLocale.value,lc(D,o.value,u.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:V,get modifiers(){return x},get pluralRules(){return w||{}},get isGlobal(){return i},get missingWarn(){return f},set missingWarn(X){f=X,D.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(X){h=X,D.fallbackWarn=h},get fallbackRoot(){return g},set fallbackRoot(X){g=X},get fallbackFormat(){return v},set fallbackFormat(X){v=X,D.fallbackFormat=v},get warnHtmlMessage(){return _},set warnHtmlMessage(X){_=X,D.warnHtmlMessage=X},get escapeParameter(){return b},set escapeParameter(X){b=X,D.escapeParameter=X},t:le,getLocaleMessage:K,setLocaleMessage:ue,mergeLocaleMessage:Se,getPostTranslationHandler:Z,setPostTranslationHandler:q,getMissingHandler:te,setMissingHandler:$,[AB]:De};return Te.datetimeFormats=z,Te.numberFormats=Q,Te.rt=xe,Te.te=ae,Te.tm=U,Te.d=J,Te.n=ye,Te.getDateTimeFormat=k,Te.setDateTimeFormat=E,Te.mergeDateTimeFormat=I,Te.getNumberFormat=j,Te.setNumberFormat=Y,Te.mergeNumberFormat=se,Te[SB]=n,Te[j_]=W,Te[X_]=ge,Te[Y_]=be,Te}const Cb={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function CB({slots:t},e){return e.length===1&&e[0]==="default"?(t.default?t.default():[]).reduce((i,r)=>[...i,...r.type===Zt?r.children:[r]],[]):e.reduce((n,i)=>{const r=t[i];return r&&(n[i]=r()),n},rn())}function CD(){return Zt}const DB=qn({name:"i18n-t",props:_n({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>Fn(t)||!isNaN(t)}},Cb),setup(t,e){const{slots:n,attrs:i}=e,r=t.i18n||U0({useScope:t.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter(d=>d!=="_"),s=rn();t.locale&&(s.locale=t.locale),t.plural!==void 0&&(s.plural=qe(t.plural)?+t.plural:t.plural);const o=CB(e,a),u=r[j_](t.keypath,o,s),c=_n(rn(),i),l=qe(t.tag)||Ut(t.tag)?t.tag:CD();return Vt(l,c,u)}}}),Yx=DB;function LB(t){return Tn(t)&&!qe(t[0])}function DD(t,e,n,i){const{slots:r,attrs:a}=e;return()=>{const s={part:!0};let o=rn();t.locale&&(s.locale=t.locale),qe(t.format)?s.key=t.format:Ut(t.format)&&(qe
9(t.format.key)&&(s.key=t.format.key),o=Object.keys(t.format).reduce((f,h)=>n.includes(h)?_n(rn(),f,{[h]:t.format[h]}):f,rn()));const u=i(t.value,s,o);let c=[s.key];Tn(u)?c=u.map((f,h)=>{const g=r[f.type],v=g?g({[f.type]:f.value,index:h,parts:u}):[f.value];return LB(v)&&(v[0].key=`${f.type}-${h}`),v}):qe(u)&&(c=[u]);const l=_n(rn(),a),d=qe(t.tag)||Ut(t.tag)?t.tag:CD();return Vt(d,l,c)}}const RB=qn({name:"i18n-n",props:_n({value:{type:Number,required:!0},format:{type:[String,Object]}},Cb),setup(t,e){const n=t.i18n||U0({useScope:t.scope,__useComponent:!0});return DD(t,e,xD,(...i)=>n[Y_](...i))}}),Kx=RB,IB=qn({name:"i18n-d",props:_n({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Cb),setup(t,e){const n=t.i18n||U0({useScope:t.scope,__useComponent:!0});return DD(t,e,ED,(...i)=>n[X_](...i))}}),Zx=IB;function PB(t,e){const n=t;if(t.mode==="composition")return n.__getInstance(e)||t.global;{const i=n.__getInstance(e);return i!=null?i.__composer:t.global.__composer}}function kB(t){const e=s=>{const{instance:o,value:u}=s;if(!o||!o.$)throw Br(mr.UNEXPECTED_ERROR);const c=PB(t,o.$),l=Jx(u);return[Reflect.apply(c.t,c,[...Qx(l)]),c]};return{created:(s,o)=>{const[u,c]=e(o);bm&&t.global===c&&(s.__i18nWatcher=st(c.locale,()=>{o.instance&&o.instance.$forceUpdate()})),s.__composer=c,s.textContent=u},unmounted:s=>{bm&&s.__i18nWatcher&&(s.__i18nWatcher(),s.__i18nWatcher=void 0,delete s.__i18nWatcher),s.__composer&&(s.__composer=void 0,delete s.__composer)},beforeUpdate:(s,{value:o})=>{if(s.__composer){const u=s.__composer,c=Jx(o);s.textContent=Reflect.apply(u.t,u,[...Qx(c)])}},getSSRProps:s=>{const[o]=e(s);return{textContent:o}}}}function Jx(t){if(qe(t))return{path:t};if(Nt(t)){if(!("path"in t))throw Br(mr.REQUIRED_VALUE,"path");return t}else throw Br(mr.INVALID_VALUE)}function Qx(t){const{path:e,locale:n,args:i,choice:r,plural:a}=t,s={},o=i||{};return qe(n)&&(s.locale=n),Fn(r)&&(s.plural=r),Fn(a)&&(s.plural=a),[e,o,s]}function OB(t,e,...n){const i=Nt(n[0])?n[0]:{};(An(i.globalInstall)?i.globalInstall:!0)&&([Yx.name,"I18nT"].forEach(a=>t.component(a,Yx)),[Kx.name,"I18nN"].forEach(a=>t.component(a,Kx)),[Zx.name,"I18nD"].forEach(a=>t.component(a,Zx))),t.directive("t",kB(e))}const NB=Qs("global-vue-i18n");function UB(t={},e){const n=An(t.globalInjection)?t.globalInjection:!0,i=new Map,[r,a]=FB(t),s=Qs("");function o(d){return i.get(d)||null}function u(d,f){i.set(d,f)}function c(d){i.delete(d)}const l={get mode(){return"composition"},async install(d,...f){if(d.__VUE_I18N_SYMBOL__=s,d.provide(d.__VUE_I18N_SYMBOL__,l),Nt(f[0])){const v=f[0];l.__composerExtend=v.__composerExtend,l.__vueI18nExtend=v.__vueI18nExtend}let h=null;n&&(h=qB(d,l.global)),OB(d,l,...f);const g=d.unmount;d.unmount=()=>{h&&h(),l.dispose(),g()}},get global(){return a},dispose(){r.stop()},__instances:i,__getInstance:o,__setInstance:u,__deleteInstance:c};return l}function U0(t={}){const e=Mn();if(e==null)throw Br(mr.MUST_BE_CALL_SETUP_TOP);if(!e.isCE&&e.appContext.app!=null&&!e.appContext.app.__VUE_I18N_SYMBOL__)throw Br(mr.NOT_INSTALLED);const n=BB(e),i=HB(n),r=wD(e),a=VB(t,r);if(a==="global")return TB(i,t,r),i;if(a==="parent"){let u=zB(n,e,t.__useComponent);return u==null&&(u=i),u}const s=n;let o=s.__getInstance(e);if(o==null){const u=_n({},t);"__i18n"in r&&(u.__i18n=r.__i18n),i&&(u.__root=i),o=MD(u),s.__composerExtend&&(o[K_]=s.__composerExtend(o)),WB(s,e,o),s.__setInstance(e,o)}return o}function FB(t,e,n){const i=tf(),r=i.run(()=>MD(t));if(r==null)throw Br(mr.UNEXPECTED_ERROR);return[i,r]}function BB(t){const e=wn(t.isCE?NB:t.appContext.app.__VUE_I18N_SYMBOL__);if(!e)throw Br(t.isCE?mr.NOT_INSTALLED_WITH_PROVIDE:mr.UNEXPECTED_ERROR);return e}function VB(t,e){return D0(t)?"__i18n"in e?"local":"global":t.useScope?t.useScope:"local"}function HB(t){return t.mode==="composition"?t.global:t.global.__composer}function zB(t,e,n=!1){let i=null;const r=e.root;let a=$B(e,n);for(;a!=null;){const s=t;if(t.mode==="composition"&&(i=s.__getInstance(a)),i!=null||r===a)break;a=a.parent}return i}function $B(t,e=!1){return t==null?null:e&&t.vnode.ctx||t.parent}function WB(t,e,n){$n(()=>{},e),xa(()=>{const i=n;t.__deleteInstance(e);const r=i[K_];r&&(r(),delete i[K_])},e)}const GB=["locale","fallbackLocale","availableLocales"],eA=["t","rt","d","n","tm","te"];function qB(t,e){const n=Object.create(null);return GB.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);
9if(!a)throw Br(mr.UNEXPECTED_ERROR);const s=Dt(a.value)?{get(){return a.value.value},set(o){a.value.value=o}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,r,s)}),t.config.globalProperties.$i18n=n,eA.forEach(r=>{const a=Object.getOwnPropertyDescriptor(e,r);if(!a||!a.value)throw Br(mr.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${r}`,a)}),()=>{delete t.config.globalProperties.$i18n,eA.forEach(r=>{delete t.config.globalProperties[`$${r}`]})}}xB();eB(OF);tB(ZF);nB(mD);if(__INTLIFY_PROD_DEVTOOLS__){const t=bb();t.__INTLIFY__=!0,NF(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}function F0(){return nu(Nl)}function lu(){return nu(Eb)}function Db(){return nu(k0)}function jB(){return nu(k0)}function LD(){return nu(Ab)}const XB=Ht({name:"i18n:plugin:switch-locale-path-ssr",dependsOn:["i18n:plugin"],setup(t){const e=ut(t._id);if(e.$config.public.i18n.experimental.switchLocalePathLinkSSR!==!0)return;const n=LD(),i=new RegExp([`<!--${yx}-\\[(\\w+)\\]-->`,".+?",`<!--/${yx}-->`].join(""),"g");e.hook("app:rendered",r=>{r.renderResult?.html!=null&&(r.renderResult.html=r.renderResult.html.replaceAll(i,(a,s)=>a.replace(/href="([^"]+)"/,`href="${encodeURI(n(s??""))}"`)))})}}),YB=Ht({name:"i18n:plugin:route-locale-detect",dependsOn:["i18n:plugin"],async setup(t){let e,n;const i=ut(t._id),r=i.$router.currentRoute;async function a(o){let u=F9(i,o,i._vueI18n.__localeFromRoute(o),ze(i.$i18n.locale),i.$i18n.getLocaleCookie());if(i._vueI18n.__firstAccess){i._vueI18n.__setLocale(u);const l=ZC(ze(i._vueI18n.global.fallbackLocale),[u]);await Promise.all(l.map(d=>i.$i18n.loadLocaleMessages(d))),await i.$i18n.loadLocaleMessages(u)}return await i.runWithContext(()=>eD(i,u,i._vueI18n.__firstAccess))&&(u=ze(i.$i18n.locale)),u}[e,n]=Dr(()=>a(r.value)),await e,n(),Z8("locale-changing",async(o,u)=>{let c,l;const d=([c,l]=Dr(()=>i.runWithContext(()=>a(o))),c=await c,l(),c),f=([c,l]=Dr(()=>i.runWithContext(()=>tD({to:o,nuxtApp:i,from:u,locale:d,routeLocale:i._vueI18n.__localeFromRoute(o)},!0))),c=await c,l(),c);return i._vueI18n.__firstAccess=!1,[c,l]=Dr(()=>i.runWithContext(()=>nD({nuxt:i,redirectPath:f,locale:d,route:o}))),c=await c,l(),c},{global:!0})}});function KB(t,{extendComposer:e,extendComposerInstance:n}){const i=tf(),r=t.install.bind(t);t.install=(a,...s)=>{const o=_n({},s[0]);o.__composerExtend=c=>(n(c,Ic(t)),()=>{}),t.mode==="legacy"&&(o.__vueI18nExtend=c=>(n(c,Ic(c)),()=>{})),Reflect.apply(r,t,[a,o]);const u=Ic(t);if(i.run(()=>{e(u),t.mode==="legacy"&&YC(t.global)&&n(t.global,Ic(t.global))}),t.mode==="composition"&&a.config.globalProperties.$i18n!=null&&n(a.config.globalProperties.$i18n,u),a.unmount){const c=a.unmount.bind(a);a.unmount=()=>{i.stop(),c()}}}}const ZB=Ht({name:"i18n:plugin",parallel:NU,async setup(t){let e,n;const i=ut(t._id);Object.defineProperty(t.versions,"nuxtI18n",{get:()=>"9.5.6"});const r=i.$config.public.i18n,a=D9(r);C9(r,a),i.$config.public.i18n.defaultLocale=a;const s={...r,defaultLocale:a,baseUrl:H9(i)},o=([e,n]=Dr(()=>L9(OU,ut())),e=await e,n(),e);o.messages||={},o.fallbackLocale??=!1,a&&(o.locale=a);for(const d of Vs)o.messages[d]??={};const u=UB(o);i._vueI18n=u,u.__localeFromRoute=S9(),u.__firstAccess=!0,u.__setLocale=d=>{const f=Em(u);Dt(f.locale)?f.locale.value=d:f.locale=d};const c=W9(),l=lf();return KB(u,{extendComposer(d){const f=Le(s.locales);d.locales=Ve(()=>f.value);const h=Le(Vs);d.localeCodes=Ve(()=>h.value);const g=Le(s.baseUrl());d.baseUrl=Ve(()=>g.value),st(d.locale,()=>g.value=s.baseUrl()),d.strategy=s.strategy,d.localeProperties=Ve(()=>Ol.find(v=>v.code===d.locale.value)||{code:d.locale.value}),d.setLocale=async v=>{if(await eD(i,v,u.__firstAccess),d.strategy==="no_prefix"){await d.loadLocaleMessages(v),u.__setLocale(v);return}const m=i.$router.currentRoute.value,p=await i.runWithContext(()=>tD({to:m,nuxtApp:i,locale:v,routeLocale:u.__localeFromRoute(m)}));await i.runWithContext(()=>nD({nuxt:i,redirectPath:p,locale:v,route:m},!0))},d.loadLocaleMessages=async v=>await H_(v,U_,d.mergeLocaleMessage.bind(d),i),d.differentDomains=s.differentDomains,d.defaultLocale=s.defaultLocale,d.getBrowserLocale=()=>$9(),d.getLocaleCookie=()=>G9(c,l,d.defaultLocale),d.setLocaleCookie=v=>{!l||!l.useCookie||(c.value=v)},d.onBeforeLanguageSwitch=(v,m,p,y)=>i.callHook("i18n:beforeLocaleSwitch",{oldLocale:v,newLocale:m,initialSetup:p,context:y}),d.onLanguageSwitched=(v,m)=>i.callHook("i18n:localeSwitched",{oldLocale:v,newLocale:m}),d.finalizePendingLocaleChange=async()=>{u.__pendingLocale&&(u.__setLocale(u.__pendingLocale),u.__resolvePendingLocalePromise?.(),u.__pendingLocale=void 0)},d.waitForPendingLocaleChange=async()=>{u.__pendingLocale&&u.__pendingLocalePromise&&await u.__pendingLocalePromise}},extendComposerInstance(d,f){const h=[["locales",()=>f.locales],["localeCodes",()=>f.localeCodes],["baseUrl",()=>f.baseUrl],["strategy",()=>
9f.strategy],["localeProperties",()=>f.localeProperties],["setLocale",()=>async g=>Reflect.apply(f.setLocale,f,[g])],["loadLocaleMessages",()=>async g=>Reflect.apply(f.loadLocaleMessages,f,[g])],["differentDomains",()=>f.differentDomains],["defaultLocale",()=>f.defaultLocale],["getBrowserLocale",()=>()=>Reflect.apply(f.getBrowserLocale,f,[])],["getLocaleCookie",()=>()=>Reflect.apply(f.getLocaleCookie,f,[])],["setLocaleCookie",()=>g=>Reflect.apply(f.setLocaleCookie,f,[g])],["onBeforeLanguageSwitch",()=>(g,v,m,p)=>Reflect.apply(f.onBeforeLanguageSwitch,f,[g,v,m,p])],["onLanguageSwitched",()=>(g,v)=>Reflect.apply(f.onLanguageSwitched,f,[g,v])],["finalizePendingLocaleChange",()=>()=>Reflect.apply(f.finalizePendingLocaleChange,f,[])],["waitForPendingLocaleChange",()=>()=>Reflect.apply(f.waitForPendingLocaleChange,f,[])]];for(const[g,v]of h)Object.defineProperty(d,g,{get:v})}}),i.vueApp.use(u),Object.defineProperty(i,"$i18n",{get:()=>Em(u)}),{provide:{localeHead:nu(X9),localePath:lu(),localeRoute:Db(),getRouteBaseName:F0(),switchLocalePath:LD(),resolveRoute:nu(xb),localeLocation:jB()}}}});let RD;const cf=t=>RD=t,ID=Symbol();function Z_(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var ad;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(ad||(ad={}));function JB(){const t=tf(!0),e=t.run(()=>Le({}));let n=[],i=[];const r=nf({install(a){cf(r),r._a=a,a.provide(ID,r),a.config.globalProperties.$pinia=r,i.forEach(s=>n.push(s)),i=[]},use(a){return this._a?n.push(a):i.push(a),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return r}const PD=()=>{};function tA(t,e,n,i=PD){t.push(e);const r=()=>{const a=t.indexOf(e);a>-1&&(t.splice(a,1),i())};return!n&&Zs()&&Jo(r),r}function mu(t,...e){t.slice().forEach(n=>{n(...e)})}const QB=t=>t(),nA=Symbol(),Ug=Symbol();function J_(t,e){t instanceof Map&&e instanceof Map?e.forEach((n,i)=>t.set(i,n)):t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const i=e[n],r=t[n];Z_(r)&&Z_(i)&&t.hasOwnProperty(n)&&!Dt(i)&&!kr(i)?t[n]=J_(r,i):t[n]=i}return t}const e7=Symbol();function t7(t){return!Z_(t)||!t.hasOwnProperty(e7)}const{assign:As}=Object;function n7(t){return!!(Dt(t)&&t.effect)}function i7(t,e,n,i){const{state:r,actions:a,getters:s}=e,o=n.state.value[t];let u;function c(){o||(n.state.value[t]=r?r():{});const l=W2(n.state.value[t]);return As(l,a,Object.keys(s||{}).reduce((d,f)=>(d[f]=nf(Ve(()=>{cf(n);const h=n._s.get(t);return s[f].call(h,h)})),d),{}))}return u=kD(t,c,e,n,i,!0),u}function kD(t,e,n={},i,r,a){let s;const o=As({actions:{}},n),u={deep:!0};let c,l,d=[],f=[],h;const g=i.state.value[t];!a&&!g&&(i.state.value[t]={}),Le({});let v;function m(O){let M;c=l=!1,typeof O=="function"?(O(i.state.value[t]),M={type:ad.patchFunction,storeId:t,events:h}):(J_(i.state.value[t],O),M={type:ad.patchObject,payload:O,storeId:t,events:h});const S=v=Symbol();Di().then(()=>{v===S&&(c=!0)}),l=!0,mu(d,M,i.state.value[t])}const p=a?function(){const{state:M}=n,S=M?M():{};this.$patch(B=>{As(B,S)})}:PD;function y(){s.stop(),d=[],f=[],i._s.delete(t)}const _=(O,M="")=>{if(nA in O)return O[Ug]=M,O;const S=function(){cf(i);const B=Array.from(arguments),V=[],z=[];function Q(te){V.push(te)}function Z(te){z.push(te)}mu(f,{args:B,name:S[Ug],store:x,after:Q,onError:Z});let q;try{q=O.apply(this&&this.$id===t?this:x,B)}catch(te){throw mu(z,te),te}return q instanceof Promise?q.then(te=>(mu(V,te),te)).catch(te=>(mu(z,te),Promise.reject(te))):(mu(V,q),q)};return S[nA]=!0,S[Ug]=M,S},b={_p:i,$id:t,$onAction:tA.bind(null,f),$patch:m,$reset:p,$subscribe(O,M={}){const S=tA(d,O,M.detached,()=>B()),B=s.run(()=>st(()=>i.state.value[t],V=>{(M.flush==="sync"?l:c)&&O({storeId:t,type:ad.direct,events:h},V)},As({},u,M)));return S},$dispose:y},x=In(b);i._s.set(t,x);const D=(i._a&&i._a.runWithContext||QB)(()=>i._e.run(()=>(s=tf()).run(()=>e({action:_}))));for(const O in D){const M=D[O];if(Dt(M)&&!n7(M)||kr(M))a||(g&&t7(M)&&(Dt(M)?M.value=g[O]:J_(M,g[O])),i.state.value[t][O]=M);else if(typeof M=="function"){const S=_(M,O);D[O]=S,o.actions[O]=M}}return As(x,D),As(Tt(x),D),Object.defineProperty(x,"$state",{get:()=>i.state.value[t],set:O=>{m(M=>{As(M,O)})}}),i._p.forEach(O=>{As(x,s.run(()=>O({store:x,app:i._a,pinia:i,options:o})))}),g&&a&&n.hydrate&&n.hydrate(x.$state,g),c=!0,l=!0,x}function OD(t,e,n){let i,r;const a=typeof e=="function";typeof t=="string"?(i=t,r=a?n:e):(r=t,i=t.id);function s(o,u){const c=sf();return o=o||(c?wn(ID,null):null),o&&cf(o),o=RD,o._s.has(i)||(a?kD(i,e,r,o):i7(i,r,o)),o._s.get(i)}return s.$id=i,s}function ND(t){{const e=Tt(t),n={};for(const i in e){const r=e[i];r.effect?n[i]=Ve({get:()=>t[i],set(a){t[i]=a}}):(Dt(r)||kr(r))&&(n[i]=Zl(t,i))}return n}}const r7=Ht({name:"pinia",setup(t){const e=JB();
9return t.vueApp.use(e),cf(e),t.payload&&t.payload.pinia&&(e.state.value=t.payload.pinia),{provide:{pinia:e}}}}),a7=Ce(()=>fe(()=>import("./DazbXo6r.js"),[],import.meta.url).then(t=>t.default||t.default||t)),s7=Ce(()=>fe(()=>import("./C_bOoMQo.js"),[],import.meta.url).then(t=>t.default||t.default||t)),o7=Ce(()=>fe(()=>import("./08_nvn89.js"),[],import.meta.url).then(t=>t.default||t.default||t)),u7=Ce(()=>fe(()=>import("./Ngt_Pzpg.js"),[],import.meta.url).then(t=>t.default||t.default||t)),l7=Ce(()=>fe(()=>import("./DMuM9Cf0.js"),[],import.meta.url).then(t=>t.default||t.default||t)),c7=Ce(()=>fe(()=>import("./BkWvrzZJ.js"),[],import.meta.url).then(t=>t.default||t.default||t)),d7=Ce(()=>fe(()=>import("./CoqoMetq.js"),[],import.meta.url).then(t=>t.default||t.default||t)),f7=Ce(()=>fe(()=>import("./DK4TXHyb.js"),[],import.meta.url).then(t=>t.default||t.default||t)),h7=Ce(()=>fe(()=>import("./CPOtKXPc.js"),[],import.meta.url).then(t=>t.default||t.default||t)),p7=Ce(()=>fe(()=>Promise.resolve().then(()=>wj),void 0,import.meta.url).then(t=>t.default||t.default||t)),m7=Ce(()=>fe(()=>Promise.resolve().then(()=>Sj),void 0,import.meta.url).then(t=>t.default||t.default||t)),g7=Ce(()=>fe(()=>import("./DeoafGSv.js"),[],import.meta.url).then(t=>t.default||t.default||t)),v7=Ce(()=>fe(()=>import("./k1TmstBE.js"),[],import.meta.url).then(t=>t.default||t.default||t)),_7=Ce(()=>fe(()=>import("./uGzLR2oo.js"),[],import.meta.url).then(t=>t.default||t.default||t)),b7=Ce(()=>fe(()=>import("./DXEmv0Sa.js"),[],import.meta.url).then(t=>t.default||t.default||t)),y7=Ce(()=>fe(()=>Promise.resolve().then(()=>EX),void 0,import.meta.url).then(t=>t.default||t.default||t)),E7=Ce(()=>fe(()=>import("./Dm6DhvK5.js"),__vite__mapDeps([123,124,125,126,37,36,127,128,129,42,130,131,39,40,41,132]),import.meta.url).then(t=>t.default||t.default||t)),x7=Ce(()=>fe(()=>import("./mqEfopmn.js"),__vite__mapDeps([133,134,124,125,37,126,135,136,137,127,35,36,38,39,40,41,42,130,131]),import.meta.url).then(t=>t.default||t.default||t)),A7=Ce(()=>fe(()=>import("./i0AoCKSa.js"),__vite__mapDeps([138,124,125,139,37,126,36,127,130,131,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),S7=Ce(()=>fe(()=>import("./BfVPQCcC.js"),__vite__mapDeps([140,141,37,142]),import.meta.url).then(t=>t.default||t.default||t)),T7=Ce(()=>fe(()=>import("./BP9h-sXy.js"),__vite__mapDeps([143,41]),import.meta.url).then(t=>t.default||t.default||t)),w7=Ce(()=>fe(()=>import("./CiINOIhQ.js"),__vite__mapDeps([144,145,128,129,37]),import.meta.url).then(t=>t.default||t.default||t)),M7=Ce(()=>fe(()=>import("./tbCrDr7N.js"),__vite__mapDeps([146,124,125,130,131]),import.meta.url).then(t=>t.default||t.default||t)),C7=Ce(()=>fe(()=>import("./DbdrHgqS.js"),__vite__mapDeps([134,124,125,37,126,135,136,137,127,35,36,38,39,40,41,42,130,131]),import.meta.url).then(t=>t.default||t.default||t)),D7=Ce(()=>fe(()=>import("./BHNCGmSC.js"),__vite__mapDeps([147,148,124,125,149,37,141,126,150,36,127,151,152,42,130,131,39,40,41,132]),import.meta.url).then(t=>t.default||t.default||t)),L7=Ce(()=>fe(()=>import("./g-52PbfX.js"),[],import.meta.url).then(t=>t.default||t.default||t)),R7=Ce(()=>fe(()=>import("./BFnTGD4g.js"),[],import.meta.url).then(t=>t.default||t.default||t)),I7=Ce(()=>fe(()=>import("./C1-_LUZL.js"),[],import.meta.url).then(t=>t.default||t.default||t)),P7=Ce(()=>fe(()=>import("./BMe6ir2r.js"),[],import.meta.url).then(t=>t.default||t.default||t)),k7=Ce(()=>fe(()=>import("./BpYxsTh0.js"),__vite__mapDeps([145,128,129,37]),import.meta.url).then(t=>t.default||t.default||t)),O7=Ce(()=>fe(()=>import("./DbV5cGtK.js"),[],import.meta.url).then(t=>t.default||t.default||t)),N7=Ce(()=>fe(()=>import("./DxlP3Pc6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),U7=Ce(()=>fe(()=>import("./BLjiZc7a.js"),[],import.meta.url).then(t=>t.default||t.default||t)),F7=Ce(()=>fe(()=>import("./DQx3lqSH.js"),__vite__mapDeps([153,42]),import.meta.url).then(t=>t.default||t.default||t)),B7=Ce(()=>fe(()=>import("./CywyPwxg.js"),__vite__mapDeps([154,155,37,156,127,42]),import.meta.url).then(t=>t.default||t.default||t)),V7=Ce(()=>fe(()=>import("./kaJeKtW4.js"),__vite__mapDeps([157,42]),import.meta.url).then(t=>t.default||t.default||t)),H7=Ce(()=>fe(()=>import("./BOHivS0x.js"),__vite__mapDeps([158,159]),import.meta.url).then(t=>t.default||t.default||t)),z7=Ce(()=>fe(()=>import("./C-ii-rNT.js"),[],import.meta.url).then(t=>t.default||t.default||t)),$7=Ce(()=>fe(()=>import("./Dv_tI8bv.js"),[],import.meta.url).then(t=>t.default||t.default||t)),W7=Ce(()=>fe(()=>import("./BOCPzZlV.js"),__vite__mapDeps([160,149,37,141,150,151,152,42,39,40,41,132,36]),import.meta.url).then(t=>t.default||t.default||t)),G7=Ce(()=>fe(()=>import("./DdI3L9ms.js"),__vite__mapDeps([161,124,125,141,37,126,150,36,127,140,142,128,129,151,152,42,130,131,39,40,41,132]),import.meta.url).then(t=>t.default||t.default||t)),q7=Ce(()=>fe(()=>import("./FCU5w7G_.js"),__vite__mapDeps([162,124,125,163,37,127,42,130,131]),import.meta.url).then(t=>t.default||t.default||t)),j7=Ce(()=>fe(()=>Promise.resolve().then(()=>lJ),void 0,import.meta.url).then(t=>t.default||t.default||t)),X7=Ce(()=>fe(()=>import("./DM3HDcjy.js"),__vite__mapDeps([164,41]),import.meta.url).then(t=>t.default||t.default||t)),Y7=Ce(()=>fe(()=>import("./B7yWiJlk.js"),__vite__mapDeps([165,37]),import.meta.url).then(t=>t.default||t.default||t)),K7=Ce(()=>fe(()=>import("./DhdNyZlt.js"),__vite__mapDeps([148,124,125,149,37,141,126,150,36,127,151,152,42,130,131,39,40,41,132]),import.meta.url).then(t=>t.default||t.default||t)),Z7=Ce(()=>fe(()=>import("./BabXHfIE.js"),__vite__mapDeps([166,39,40,41,167]),import.meta.url).then(t=>t.default||t.default||t)),J7=Ce(()=>fe(()=>import("./CSzETKpr.js"),[],import.meta.url).then(t=>t.default||t.default||t)),Q7=Ce(()=>fe(()=>import("./BpIpLkK6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),eV=Ce(()=>fe(()=>import("./C91qK04_.js"),__vite__mapDeps([167,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),tV=Ce(()=>fe(()=>import("./BkonLuuP.js"),[],import.meta.url).then(t=>t.default||t.default||t)),nV=Ce(()=>fe(()=>import("./mD8KMyf2.js"),__vite__mapDeps([168,124,125,126,37,127,128,129,130,131,39,40,41,169,150,36,151,152,42,141,136,142,140]),import.meta.url).then(t=>t.default||t.default||t)),iV=Ce(()=>fe(()=>import("./3uZaRp3x.js"),__vite__mapDeps([35,36,37,38,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),rV=Ce(()=>fe(()=>import("./B7xP2nRM.js"),[],import.meta.url).then(t=>t.default||t.default||t)),aV=Ce(()=>fe(()=>import("./FwIFRtu9.js"),__vite__mapDeps([170,171,37,35,36,38,39,40,41,172,124,125]),import.meta.url).then(t=>t.default||t.default||t)),sV=Ce(()=>fe(()=>import("./Chs61xDm.js"),__vite__mapDeps([173,126,37,35,36,38,39,40,41,174,124,125,130,131,139]),import.meta.url).then(t=>t.default||t.default||t)),oV=Ce(()=>fe(()=>import("./ChhZ-ksd.js"),[],import.meta.url).then(t=>t.default||t.default||t)),uV=Ce(()=>fe(()=>import("./vhQmixrc.js"),[],import.meta.url).then(t=>t.default||t.default||t)),lV=Ce(()=>fe(()=>import("./BL9fADhQ.js"),[],import.meta.url).then(t=>t.default||t.default||t)),cV=Ce(()=>fe(()=>import("./BFoWCRuB.js"),__vite__mapDeps([175,125,37,36,176,177,39,40,41,148,124,149,141,126,150,127,151,152,42,130,131,132,154,155,156,139,136,178,35,38,140,142,171,179,180]),import.meta.url).then(t=>t.default||t.default||t)),dV=Ce(()=>fe(()=>import("./Bq4KG0hT.js"),__vite__mapDeps([181,176,177,37,39,40,41,148,124,125,149,141,126,150,36,127,151,152,42,130,131,132,154,155,156,139]),import.meta.url).then(t=>t.default||t.default||t)),fV=Ce(()=>fe(()=>import("./CetcBZFF.js"),__vite__mapDeps([182,183,37,155,156,35,36,38,39,40,41,160,149,141,150,151,152,42,132]),import.meta.url).then(t=>t.default||t.default||t)),hV=Ce(()=>fe(()=>import("./Cf-DV0Kk.js"),__vite__mapDeps([184,126,37,137]),import.meta.url).then(t=>t.default||t.default||t)),pV=Ce(()=>fe(()=>import("./C7dhQ8X2.js"),__vite__mapDeps([176,177,37,39,40,41,148,124,125,149,141,126,150,36,127,151,152,42,130,131,132,154,155,156,139]),import.meta.url).then(t=>t.default||t.default||t)),mV=Ce(()=>fe(()=>import("./Db3x6ZKc.js"),__vite__mapDeps([185,183,37,177,155,139,156,35,36,38,39,40,41,160,149,141,150,151,152,42,132]),import.meta.url).then(t=>t.default||t.default||t)),gV=Ce(()=>fe(()=>import("./BDdZuts5.js"),__vite__mapDeps([169,150,37,36,151,152,42,141,126,136,142,140,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),vV=Ce(()=>fe(()=>import("./DdoyV_GD.js"),__vite__mapDeps([186,125,36,37,176,177,39,40,41,148,124,149,141,126,150,127,151,152,42,130,131,132,154,155,156,139,180,38,136,142,140]),import.meta.url).then(t=>t.default||t.default||t)),_V=Ce(()=>fe(()=>import("./H6S0yePv.js"),[],import.meta.url).then(t=>t.default||t.default||t)),bV=Ce(()=>fe(()=>import("./D7y1V9bU.js"),__vite__mapDeps([132,36,37]),import.meta.url).then(t=>t.default||t.default||t)),yV=Ce(()=>fe(()=>import("./C43Y0rAf.js"),__vite__mapDeps([187,136,37,137,188,189,126,39,40,41,190]),import.meta.url).then(t=>t.default||t.default||t)),EV=Ce(()=>fe(()=>import("./CxYPz5G4.js"),[],import.meta.url).then(t=>t.default||t.default||t)),xV=Ce(()=>fe(()=>import("./6WRLt8i0.js"),__vite__mapDeps([189,126,37,137,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),AV=Ce(()=>fe(()=>import("./DWvsMkRN.js"),[],import.meta.url).then(t=>t.default||t.default||t)),SV=Ce(()=>fe(()=>import("./Df9VEUss.js"),[],import.meta.url).then(t=>t.default||t.default||t)),TV=Ce(()=>fe(()=>import("./Btty7JuM.js"),[],import.meta.url).then(t=>t.default||t.default||t)),wV=Ce(()=>fe(()=>import("./DvOVNyn-.js"),[],import.meta.url).then(t=>t.default||t.default||t)),MV=Ce(()=>fe(()=>import("./Bgg28i0B.js"),[],import.meta.url).then(t=>t.default||t.default||t)),CV=Ce(()=>fe(()=>import("./BkvfBOWi.js"),__vite__mapDeps([191,142,37,171,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),DV=Ce(()=>fe(()=>import("./Dg2xVgma.js"),__vite__mapDeps([192,142,37,171,35,36,38,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),LV=Ce(()=>fe(()=>import("./BR2xrqP2.js"),[],import.meta.url).then(t=>t.default||t.default||t)),RV=Ce(()=>fe(()=>import("./BZyVtgUd.js"),__vite__mapDeps([193,125]),import.meta.url).then(t=>t.default||t.default||t)),IV=Ce(()=>fe(()=>import("./DDqQ3DCx.js"),[],import.meta.url).then(t=>t.default||t.default||t)),PV=Ce(()=>fe(()=>import("./DtlG3BW0.js"),[],import.meta.url).then(t=>t.default||t.default||t)),kV=Ce(()=>fe(()=>import("./CmF5HaWf.js"),[],import.meta.url).then(t=>t.default||t.default||t)),OV=Ce(()=>fe(()=>import("./myIkx-ir.js"),[],import.meta.url).then(t=>t.default||t.default||t)),NV=Ce(()=>fe(()=>import("./D-S3P4BG.js"),[],import.meta.url).then(t=>t.default||t.default||t)),UV=Ce(()=>fe(()=>import("./DXG2a5xb.js"),[],import.meta.url).then(t=>t.default||t.default||t)),FV=Ce(()=>fe(()=>import("./Bk6Au1Hs.js"),[],import.meta.url).then(t=>t.default||t.default||t)),BV=Ce(()=>fe(()=>import("./Dfoh0k_K.js"),__vite__mapDeps([194,135,37,136,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),VV=Ce(()=>fe(()=>import("./CWu2gRAb.js"),[],import.meta.url).then(t=>t.default||t.default||t)),HV=Ce(()=>fe(()=>import("./I6XbfJSF.js"),__vite__mapDeps([195,135,37,136,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),zV=Ce(()=>fe(()=>import("./Bey13aIo.js"),__vite__mapDeps([196,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),$V=Ce(()=>fe(()=>import("./BLJX5do3.js"),[],import.meta.url).then(t=>t.default||t.default||t)),WV=Ce(()=>fe(()=>import("./CXInN4Wj.js"),[],import.meta.url).then(t=>t.default||t.default||t)),GV=Ce(()=>fe(()=>import("./Dmk5jRnG.js"),[],import.meta.url).then(t=>t.default||t.default||t)),qV=Ce(()=>fe(()=>import("./CAUYJ23o.js"),__vite__mapDeps([197,35,36,37,38,39,40,41,198,124,127,179,131,199]),import.meta.url).then(t=>t.default||t.default||t)),jV=Ce(()=>fe(()=>import("./CxU8_ACy.js"),__vite__mapDeps([200,124,125,35,36,37,38,39,40,41,179,130,131]),import.meta.url).then(t=>t.default||t.default||t)),XV=Ce(()=>fe(()=>import("./CsnkTIWx.js"),__vite__mapDeps([198,124,127,37,35,36,38,39,40,41,179,131,199]),import.meta.url).then(t=>t.default||t.default||t)),YV=Ce(()=>fe(()=>import("./DPWK6-Ia.js"),__vite__mapDeps([201,124,127,37,35,36,38,39,40,41,179,131,199]),import.meta.url).then(t=>t.default||t.default||t)),KV=Ce(()=>fe(()=>import("./C6nTs6GZ.js"),__vite__mapDeps([202,198,124,127,37,35,36,38,39,40,41,179,131,199]),import.meta.url).then(t=>t.default||t.default||t)),ZV=Ce(()=>fe(()=>import("./B0_Jv3Ln.js"),__vite__mapDeps([203,204,124,125,179,40,41,130,131,39]),import.meta.url).then(t=>t.default||t.default||t)),JV=Ce(()=>fe(()=>import("./D88BTiBJ.js"),__vite__mapDeps([204,124,125,179,40,41,130,131,39]),import.meta.url).then(t=>t.default||t.default||t)),QV=Ce(()=>fe(()=>import("./CifrkLh8.js"),__vite__mapDeps([205,201,124,127,37,35,36,38,39,40,41,179,131,199]),import.meta.url).then(t=>t.default||t.default||t)),eH=Ce(()=>fe(()=>import("./Dm9UOkH2.js"),__vite__mapDeps([206,171,37,127,35,36,38,39,40,41,207,208]),import.meta.url).then(t=>t.default||t.default||t)),tH=Ce(()=>fe(()=>import("./D7Jd1CPL.js"),__vite__mapDeps([209,136,37]),import.meta.url).then(t=>t.default||t.default||t)),nH=Ce(()=>fe(()=>import("./a1ASvBqN.js"),__vite__mapDeps([210,124,131,139,37,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),iH=Ce(()=>fe(()=>import("./DYUnFbPK.js"),__vite__mapDeps([211,39,40,41,172,124,125]),import.meta.url).then(t=>t.default||t.default||t)),rH=Ce(()=>fe(()=>
9import("./_LiupYJg.js"),__vite__mapDeps([212,124,125,130,131,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),aH=Ce(()=>fe(()=>import("./B2ILLjVH.js"),__vite__mapDeps([213,124,178,37,155,139,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),sH=Ce(()=>fe(()=>import("./CdcKbJYj.js"),__vite__mapDeps([214,124,178,37,155,139,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),oH=Ce(()=>fe(()=>import("./DuuYKqgA.js"),__vite__mapDeps([215,126,37,136,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),uH=Ce(()=>fe(()=>import("./k6oQxTKY.js"),[],import.meta.url).then(t=>t.default||t.default||t)),lH=Ce(()=>fe(()=>import("./CRHI7yDd.js"),__vite__mapDeps([216,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),cH=Ce(()=>fe(()=>import("./D07q45FP.js"),__vite__mapDeps([174,124,125,130,131,139,37,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),dH=Ce(()=>fe(()=>import("./ByUxHZFz.js"),__vite__mapDeps([207,127,37,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),fH=Ce(()=>fe(()=>import("./Dg2IQOqG.js"),__vite__mapDeps([217,141,37,218,129]),import.meta.url).then(t=>t.default||t.default||t)),hH=Ce(()=>fe(()=>import("./4yQ-ioNJ.js"),__vite__mapDeps([219,124,131,141,37,218,127,129,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),pH=Ce(()=>fe(()=>import("./BILnPgZp.js"),__vite__mapDeps([220,126,37,135,136,137,35,36,38,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),mH=Ce(()=>fe(()=>import("./DHlBbAyg.js"),__vite__mapDeps([221,124,179,40,41,131,199,127,37,39,135,136,126,137]),import.meta.url).then(t=>t.default||t.default||t)),gH=Ce(()=>fe(()=>import("./B-RI1sKB.js"),__vite__mapDeps([222,124,163,37,127,179,40,41,131,199]),import.meta.url).then(t=>t.default||t.default||t)),vH=Ce(()=>fe(()=>import("./BencI6x6.js"),[],import.meta.url).then(t=>t.default||t.default||t)),_H=Ce(()=>fe(()=>import("./Cafabrww.js"),[],import.meta.url).then(t=>t.default||t.default||t)),bH=Ce(()=>fe(()=>import("./DiGgH_r3.js"),[],import.meta.url).then(t=>t.default||t.default||t)),yH=Ce(()=>fe(()=>import("./C863PiAH.js"),[],import.meta.url).then(t=>t.default||t.default||t)),EH=Ce(()=>fe(()=>import("./DI6DtpmQ.js"),__vite__mapDeps([223,124,199]),import.meta.url).then(t=>t.default||t.default||t)),xH=Ce(()=>fe(()=>import("./nwLgZkT_.js"),__vite__mapDeps([128,129,37]),import.meta.url).then(t=>t.default||t.default||t)),AH=Ce(()=>fe(()=>import("./CRHIIDkp.js"),[],import.meta.url).then(t=>t.default||t.default||t)),SH=Ce(()=>fe(()=>import("./WFsUuTZ9.js"),[],import.meta.url).then(t=>t.default||t.default||t)),TH=Ce(()=>fe(()=>import("./9ELv9kJ8.js"),__vite__mapDeps([224,38]),import.meta.url).then(t=>t.default||t.default||t)),wH=Ce(()=>fe(()=>import("./Cg0ZvCqT.js"),__vite__mapDeps([225,124,137,37,35,36,38,39,40,41]),import.meta.url).then(t=>t.default||t.default||t)),MH=Ce(()=>fe(()=>import("./CGtIB-uL.js"),[],import.meta.url).then(t=>t.default||t.default||t)),CH=Ce(()=>fe(()=>import("./D2tHPYII.js"),[],import.meta.url).then(t=>t.default||t.default||t)),DH=Ce(()=>fe(()=>import("./DPu4s3hC.js"),[],import.meta.url).then(t=>t.default||t.default||t)),LH=Ce(()=>fe(()=>import("./2h-BRDmS.js"),[],import.meta.url).then(t=>t.default||t.default||t)),RH=Ce(()=>fe(()=>import("./BquGf9qu.js"),[],import.meta.url).then(t=>t.default||t.default||t)),IH=Ce(()=>fe(()=>import("./DE6lQdeh.js"),[],import.meta.url).then(t=>t.default||t.default||t)),PH=Ce(()=>fe(()=>import("./C7whUMsY.js"),[],import.meta.url).then(t=>t.default||t.default||t)),kH=[["IconArrowBottom",a7],["IconArrowLeft",s7],["IconArrowRight",o7],["IconCall",u7],["IconChecked",l7],["IconCross",c7],["IconDownload",d7],["IconLogo",f7],["IconPin",h7],["IconPlayerPause",p7],["IconPlayerPlay",m7],["IconReugeStatic",g7],["IconScreenFull",v7],["IconScreenLow",_7],["IconSearch",b7],["IconVolume",y7],["PrimeAutoComplete",E7],["PrimeCalendar",x7],["PrimeCascadeSelect",A7],["PrimeCheckbox",S7],["PrimeCheckboxGroup",T7],["PrimeChips",w7],["PrimeColorPicker",M7],["PrimeDatePicker",C7],["PrimeDropdown",D7],["PrimeFloatLabel",L7],["PrimeFluid",R7],["PrimeIconField",I7],["PrimeIftaLabel",P7],["PrimeInputChips",k7],["PrimeInputGroup",O7],["PrimeInputGroupAddon",N7],["PrimeInputIcon",U7],["PrimeInputMask",F7],["PrimeInputNumber",B7],["PrimeInputOtp",V7],["PrimeInputSwitch",H7],["PrimeInputText",z7],["PrimeKnob",$7],["PrimeListbox",W7],["PrimeMultiSelect",G7],["PrimePassword",q7],["PrimeRadioButton",j7],["PrimeRadioButtonGroup",X7],["PrimeRating",Y7],["PrimeSelect",K7],["PrimeSelectButton",Z7],["PrimeSlider",J7],["PrimeTextarea",Q7],["PrimeToggleButton",eV],["PrimeToggleSwitch",tV],["PrimeTreeSelect",nV],["PrimeButton",iV],["PrimeButtonGroup",rV],["PrimeSpeedDial",aV],["PrimeSplitButton",sV],["PrimeColumn",oV],["PrimeRow",uV],["PrimeColumnGroup",lV],["PrimeDataTable",cV],["PrimeDataView",dV],["PrimeOrderList",fV],["PrimeOrganizationChart",hV],["PrimePaginator",pV],["PrimePickList",mV],["PrimeTree",gV],["PrimeTreeTable",vV],["PrimeTimeline",_V],["PrimeVirtualScroller",bV],["PrimeAccordion",yV],["PrimeAccordionPanel",EV],["PrimeAccordionHeader",xV],["PrimeAccordionContent",AV],["PrimeAccordionTab",SV],["PrimeCard",TV],["PrimeDeferredContent",wV],["PrimeDivider",MV],["PrimeFieldset",CV],["PrimePanel",DV],["PrimeScrollPanel",LV],["PrimeSplitter",RV],["PrimeSplitterPanel",IV],["PrimeStepper",PV],["PrimeStepList",kV
9],["PrimeStep",OV],["PrimeStepItem",NV],["PrimeStepPanels",UV],["PrimeStepPanel",FV],["PrimeTabView",BV],["PrimeTabs",VV],["PrimeTabList",HV],["PrimeTab",zV],["PrimeTabPanels",$V],["PrimeTabPanel",WV],["PrimeToolbar",GV],["PrimeConfirmDialog",qV],["PrimeConfirmPopup",jV],["PrimeDialog",XV],["PrimeDrawer",YV],["PrimeDynamicDialog",KV],["PrimeOverlayPanel",ZV],["PrimePopover",JV],["PrimeSidebar",QV],["PrimeFileUpload",eH],["PrimeBreadcrumb",tH],["PrimeContextMenu",nH],["PrimeDock",iH],["PrimeMenu",rH],["PrimeMenubar",aH],["PrimeMegaMenu",sH],["PrimePanelMenu",oH],["PrimeSteps",uH],["PrimeTabMenu",lH],["PrimeTieredMenu",cH],["PrimeMessage",dH],["PrimeInlineMessage",fH],["PrimeToast",hH],["PrimeCarousel",pH],["PrimeGalleria",mH],["PrimeImage",gH],["PrimeImageCompare",vH],["PrimeAvatar",_H],["PrimeAvatarGroup",bH],["PrimeBadge",yH],["PrimeBlockUI",EH],["PrimeChip",xH],["PrimeInplace",AH],["PrimeMeterGroup",SH],["PrimeOverlayBadge",TH],["PrimeScrollTop",wH],["PrimeSkeleton",MH],["PrimeProgressBar",CH],["PrimeProgressSpinner",DH],["PrimeTag",LH],["PrimeTerminal",RH],["PrimeForm",IH],["PrimeFormField",PH]],OH=Ht({name:"nuxt:global-components",setup(t){for(const[e,n]of kH)t.vueApp.component(e,n),t.vueApp.component("Lazy"+e,n)}}),Os={blank:Ce(()=>fe(()=>import("./Ce0T41HE.js"),__vite__mapDeps([226,227]),import.meta.url).then(t=>t.default||t)),default:Ce(()=>fe(()=>import("./D_bGNj_s.js"),__vite__mapDeps([228,6,77,78,48,49,50,51,44,45,46,47,31,32,33,201,124,127,37,35,36,38,39,40,41,179,131,199,229,7,8,12,93,106,107,19,230]),import.meta.url).then(t=>t.default||t))},NH=Ht({name:"nuxt:prefetch",setup(t){const e=mn();t.hooks.hook("app:mounted",()=>{e.beforeEach(async n=>{const i=n?.meta?.layout;i&&typeof Os[i]=="function"&&await Os[i]()})}),t.hooks.hook("link:prefetch",n=>{if(er(n))return;const i=e.resolve(n);if(!i)return;const r=i.meta.layout;let a=_b(i.meta.middleware);a=a.filter(s=>typeof s=="string");for(const s of a)typeof O_[s]=="function"&&O_[s]();typeof r=="string"&&r in Os&&d9(Os[r])})}});function Fg(...t){window.dataLayer?.push(arguments)}function UH({tags:t}){window.dataLayer=window.dataLayer||[];for(const e of t)for(const n of e.initCommands??[])Fg(...n);Fg("js",new Date);for(const e of t)Fg("config",e.id,e.config??{})}function FH(t){const e=Tt(t),n=e.tags.filter(Boolean).map(i=>typeof i=="string"?{id:i}:i);if(e.id){const{id:i,config:r,initCommands:a}=e;n.unshift({id:i,config:r,initCommands:a})}return n}const BH=Ht({parallel:!0,setup(){const t=Li().public.gtag,e=FH(t);if(!e.length||(UH({tags:e}),t.initMode==="manual"))return;const n=t.loadingStrategy==="async"?"async":"defer";fb({link:[{rel:"preload",as:"script",href:Il(t.url,{id:e[0].id})}],script:[{src:Il(t.url,{id:e[0].id}),[n]:!0,"data-gtag":""}]})}});function VH(t){var e=[],n="";for(n in t)e.push(n);return e}function Q_(t){return t=JSON.stringify(t),!(typeof t!="string"||!/^\{[\s\S]*\}$/.test(t))}function HH(t){return t instanceof Array}function zH(t){return Array.prototype.slice.call(t)}function Fl(){if(!(this instanceof Fl))return new Fl}Fl.prototype={get:function(t){for(var e=t+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];r.charAt(0)==" ";)r=r.substring(1,r.length);if(r.indexOf(e)==0)return decodeURI(r.substring(e.length,r.length))}return!1},set:function(t,e,n){if(Q_(t))for(const i in t)this.set(i,t[i],e,n);else if(typeof t=="string"){const i=Q_(n)?n:{expires:n},r=i.path!==void 0?`;path=${i.path};path=/`:";path=/",a=i.domain?`;domain=${i.domain}`:"",s=i.secure?";secure":"";let o=i.expires!==void 0?i.expires:"";typeof o=="string"&&o!==""?o=new Date(o):typeof o=="number"&&(o=new Date(+new Date+1e3*60*60*24*o)),o!==""&&"toGMTString"in o&&(o=`;expires=${o.toGMTString()}`);const u=i.sameSite?`;SameSite=${i.sameSite}`:"";document.cookie=`${t}=${encodeURI(e)+o+r+a+s+u}`}},remove:function(t){t=HH(t)?t:zH(arguments);for(var e=0,n=t.length;e<n;e++)this.set(t[e],"",-1);return t},clear:function(t){return t?this.remove(t):this.remove(VH(this.all()))},all:function(){if(document.cookie==="")return{};for(var t=document.cookie.split("; "),e={},n=0,i=t.length;n<i;n++){var r=t[n].split("=");e[decodeURI(r[0])]=decodeURI(r[1])}return e}};let lo=null;const UD=function(t,e,n){const i=arguments;if(lo||(lo=Fl()),i.length===0)return lo.all();if(i.length===1&&t===null)return lo.clear();if(i.length===2&&!e)return lo.clear(t);if(typeof t=="string"&&!e)return lo.get(t);if(typeof t=="string"&&e||Q_(t))return lo.set(t,e,n)};for(const t in Fl.prototype)UD[t]=Fl.prototype[t];const $H="viewportState";function WH(t,e){t=Zl(t);const n=Ve({get(){return e.value||t.value.fallbackBreakpoint},set(f){e.value=f,typeof window<"u"&&t.value.cookie.name&&UD.set(t.value.cookie.name,e.value,t.value.cookie)}}),i=Ve(()=>{const h=t.value.breakpoints||{},g=Object.keys(h).sort((p,y)=>h[p]-h[y]),v={};let m=g.length;for(;m--;){const p=g[m],y=h[p],_=h[g[m+1]],b=h[g[m-1]];let x="";t.value.feature==="minWidth"?(m>0?x=`(min-width: ${y}px)`:x="(min-width: 1px)",_&&(x+=` and (max-width: ${_-.1}px)`)):(x=`(max-width: ${y}px)`,b&&(x=`(min-width: ${b+.1}px) and ${x}`)),v[p]={mediaQuery:x,size:y}}return v}),r=Ve(()=>Object.keys(i.value));return{breakpoint:n,breakpointValue:a,isGreaterThan:s,isGreaterOrEquals:o,isLessThan:u,isLessOrEquals:c,match:l,matches:d,queries:i};function a(f){return(bd(t).breakpoints||{})[f]}function s(f){const h=r.value.indexOf(n.value),g=r.value.indexOf(f);return g===-1?!1:g>h}function o(f){return s(f)||l(f)}function u(f){const h=r.value.indexOf(n.value),g=r.value.indexOf(f);return g===-1?!1:g<h}function c(f){return u(f)||l(f)}function l(f){return n.value===f}function d(...f){return f.includes(n.value)}}const GH=365,qH={breakpoints:{desktop:1024,desktopMedium:1280,desktopWide:1600,mobile:320,mobileMedium:375,mobileWide:425,tablet:768}
9,cookie:{expires:GH,name:"viewport",path:"/",sameSite:"Strict",secure:!0},defaultBreakpoints:{desktop:"desktop",mobile:"mobile",tablet:"tablet"},fallbackBreakpoint:"desktop",feature:"minWidth"};function jH(t={},e=qH){return{...e,...t,cookie:{...e.cookie,...t.cookie}}}const XH={breakpoints:{desktop:1024,desktopMedium:1280,desktopWide:1600,mobile:320,mobileMedium:375,mobileWide:425,tablet:768},cookie:{expires:365,name:"viewport",path:"/",sameSite:"Strict",secure:!0},defaultBreakpoints:{desktop:"desktop",mobile:"mobile",tablet:"tablet"},fallbackBreakpoint:"desktop",feature:"minWidth"};function YH(){return ut().$viewport}function KH(){const t=Js();return Ve(()=>jH(t.meta.viewport,XH))}const ZH=Ht(t=>{const e=KH(),n=R0($H,"$-StjXNKOUQ"),i=WH(e,n);return t.hook("app:suspense:resolve",()=>{for(const r in i.queries.value){const{mediaQuery:a}=i.queries.value[r],s=window.matchMedia(a);s.matches&&(i.breakpoint.value=r),s.onchange=o=>{o.matches&&(i.breakpoint.value=r)}}}),t.provide("viewport",i)});var JH=Object.defineProperty,iA=Object.getOwnPropertySymbols,QH=Object.prototype.hasOwnProperty,ez=Object.prototype.propertyIsEnumerable,rA=(t,e,n)=>e in t?JH(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,FD=(t,e)=>{for(var n in e||(e={}))QH.call(e,n)&&rA(t,n,e[n]);if(iA)for(var n of iA(e))ez.call(e,n)&&rA(t,n,e[n]);return t};function iu(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function tz(t,e,n,i=1){let r=-1,a=iu(t),s=iu(e);return a&&s?r=0:a?r=i:s?r=-i:typeof t=="string"&&typeof e=="string"?r=n(t,e):r=t<e?-1:t>e?1:0,r}function e1(t,e,n=new WeakSet){if(t===e)return!0;if(!t||!e||typeof t!="object"||typeof e!="object"||n.has(t)||n.has(e))return!1;n.add(t).add(e);let i=Array.isArray(t),r=Array.isArray(e),a,s,o;if(i&&r){if(s=t.length,s!=e.length)return!1;for(a=s;a--!==0;)if(!e1(t[a],e[a],n))return!1;return!0}if(i!=r)return!1;let u=t instanceof Date,c=e instanceof Date;if(u!=c)return!1;if(u&&c)return t.getTime()==e.getTime();let l=t instanceof RegExp,d=e instanceof RegExp;if(l!=d)return!1;if(l&&d)return t.toString()==e.toString();let f=Object.keys(t);if(s=f.length,s!==Object.keys(e).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,f[a]))return!1;for(a=s;a--!==0;)if(o=f[a],!e1(t[o],e[o],n))return!1;return!0}function nz(t,e){return e1(t,e)}function Lb(t){return typeof t=="function"&&"call"in t&&"apply"in t}function Qt(t){return!iu(t)}function t1(t,e){if(!t||!e)return null;try{let n=t[e];if(Qt(n))return n}catch{}if(Object.keys(t).length){if(Lb(e))return e(t);if(e.indexOf(".")===-1)return t[e];{let n=e.split("."),i=t;for(let r=0,a=n.length;r<a;++r){if(i==null)return null;i=i[n[r]]}return i}}return null}function Rb(t,e,n){return n?t1(t,n)===t1(e,n):nz(t,e)}function Rle(t,e){if(t!=null&&e&&e.length){for(let n of e)if(Rb(t,n))return!0}return!1}function es(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function BD(t={},e={}){let n=FD({},t);return Object.keys(e).forEach(i=>{let r=i;es(e[r])&&r in t&&es(t[r])?n[r]=BD(t[r],e[r]):n[r]=e[r]}),n}function iz(...t){return t.reduce((e,n,i)=>i===0?n:BD(e,n),{})}function Ile(t,e){let n=-1;if(e){for(let i=0;i<e.length;i++)if(e[i]===t){n=i;break}}return n}function Ple(t,e){let n;if(Qt(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function kle(t,e){let n=-1;if(Qt(t))try{n=t.findLastIndex(e)}catch{n=t.lastIndexOf([...t].reverse().find(e))}return n}function fr(t,...e){return Lb(t)?t(...e):t}function Or(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ro(t){return Or(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function VD(t,e="",n={}){let i=Ro(e).split("."),r=i.shift();if(r){if(es(t)){let a=Object.keys(t).find(s=>Ro(s)===r)||"";return VD(fr(t[a],n),i.join("."),n)}return}return fr(t,n)}function rz(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ole(t){return t instanceof Date}function az(t){return Qt(t)&&!isNaN(t)}function Nle(t=""){return Qt(t)&&t.length===1&&!!t.match(/\S| /)}function Ule(){return new Intl.Collator(void 0,{numeric:!0}).compare}function Wo(t,e){if(e){let n=e.test(t);return e.lastIndex=0,n}return!1}function sz(...t){return iz(...t)}function sd(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":").trim()}function Fle(t,...e){if(!es(t))return t;let n=FD({},t);
9return e?.flat().forEach(i=>delete n[i]),n}function rr(t){if(t&&/[\xC0-\xFF\u0100-\u017E]/.test(t)){let e={A:/[\xC0-\xC5\u0100\u0102\u0104]/g,AE:/[\xC6]/g,C:/[\xC7\u0106\u0108\u010A\u010C]/g,D:/[\xD0\u010E\u0110]/g,E:/[\xC8-\xCB\u0112\u0114\u0116\u0118\u011A]/g,G:/[\u011C\u011E\u0120\u0122]/g,H:/[\u0124\u0126]/g,I:/[\xCC-\xCF\u0128\u012A\u012C\u012E\u0130]/g,IJ:/[\u0132]/g,J:/[\u0134]/g,K:/[\u0136]/g,L:/[\u0139\u013B\u013D\u013F\u0141]/g,N:/[\xD1\u0143\u0145\u0147\u014A]/g,O:/[\xD2-\xD6\xD8\u014C\u014E\u0150]/g,OE:/[\u0152]/g,R:/[\u0154\u0156\u0158]/g,S:/[\u015A\u015C\u015E\u0160]/g,T:/[\u0162\u0164\u0166]/g,U:/[\xD9-\xDC\u0168\u016A\u016C\u016E\u0170\u0172]/g,W:/[\u0174]/g,Y:/[\xDD\u0176\u0178]/g,Z:/[\u0179\u017B\u017D]/g,a:/[\xE0-\xE5\u0101\u0103\u0105]/g,ae:/[\xE6]/g,c:/[\xE7\u0107\u0109\u010B\u010D]/g,d:/[\u010F\u0111]/g,e:/[\xE8-\xEB\u0113\u0115\u0117\u0119\u011B]/g,g:/[\u011D\u011F\u0121\u0123]/g,i:/[\xEC-\xEF\u0129\u012B\u012D\u012F\u0131]/g,ij:/[\u0133]/g,j:/[\u0135]/g,k:/[\u0137,\u0138]/g,l:/[\u013A\u013C\u013E\u0140\u0142]/g,n:/[\xF1\u0144\u0146\u0148\u014B]/g,p:/[\xFE]/g,o:/[\xF2-\xF6\xF8\u014D\u014F\u0151]/g,oe:/[\u0153]/g,r:/[\u0155\u0157\u0159]/g,s:/[\u015B\u015D\u015F\u0161]/g,t:/[\u0163\u0165\u0167]/g,u:/[\xF9-\xFC\u0169\u016B\u016D\u016F\u0171\u0173]/g,w:/[\u0175]/g,y:/[\xFD\xFF\u0177]/g,z:/[\u017A\u017C\u017E]/g};for(let n in e)t=t.replace(e[n],n)}return t}function Ble(t,e,n){t&&e!==n&&(n>=t.length&&(n%=t.length,e%=t.length),t.splice(n,0,t.splice(e,1)[0]))}function Vle(t,e,n=1,i,r=1){let a=tz(t,e,i,n),s=n;return(iu(t)||iu(e))&&(s=r===1?n:r),s*a}function Hle(t){return Or(t,!1)?t[0].toUpperCase()+t.slice(1):t}function HD(t){return Or(t)?t.replace(/(_)/g,"-").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase():t}function df(){let t=new Map;return{on(e,n){let i=t.get(e);return i?i.push(n):i=[n],t.set(e,i),this},off(e,n){let i=t.get(e);return i&&i.splice(i.indexOf(n)>>>0,1),this},emit(e,n){let i=t.get(e);i&&i.forEach(r=>{r(n)})},clear(){t.clear()}}}function zD(...t){if(t){let e=[];for(let n=0;n<t.length;n++){let i=t[n];if(!i)continue;let r=typeof i;if(r==="string"||r==="number")e.push(i);else if(r==="object"){let a=Array.isArray(i)?[zD(...i)]:Object.entries(i).map(([s,o])=>o?s:void 0);e=a.length?e.concat(a.filter(s=>!!s)):e}}return e.join(" ").trim()}}function oz(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function aA(t,e){if(t&&e){let n=i=>{oz(t,i)||(t.classList?t.classList.add(i):t.className+=" "+i)};[e].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(n))}}function uz(){return window.innerWidth-document.documentElement.offsetWidth}function zle(t){typeof t=="string"?aA(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.setProperty(t.variableName,uz()+"px"),aA(document.body,t?.className||"p-overflow-hidden"))}function lz(t){if(t){let e=document.createElement("a");if(e.download!==void 0){let{name:n,src:i}=t;return e.setAttribute("href",i),e.setAttribute("download",n),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),!0}}return!1}function $le(t,e){let n=new Blob([t],{type:"application/csv;charset=utf-8;"});window.navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(n,e+".csv"):lz({name:e+".csv",src:URL.createObjectURL(n)})||(t="data:text/csv;charset=utf-8,"+t,window.open(encodeURI(t)))}function sA(t,e){if(t&&e){let n=i=>{t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(i=>i.split(" ").forEach(n))}}function Wle(t){typeof t=="string"?sA(document.body,t||"p-overflow-hidden"):(t!=null&&t.variableName&&document.body.style.removeProperty(t.variableName),sA(document.body,t?.className||"p-overflow-hidden"))}function n1(t){for(let e of document?.styleSheets)try{for(let n of e?.cssRules)for(let i of n?.style)if(t.test(i))return{name:i,value:n.style.getPropertyValue(i).trim()}}catch{}return null}function $D(t){let e={width:0,height:0};if(t){let[n,i]=[t.style.visibility,t.style.display],r=t.getBoundingClientRect();t.style.visibility="hidden",t.style.display="block",e.width=r.width||t.offsetWidth,e.height=r.height||t.offsetHeight,t.style.display=i,t.style.visibility=n}return e}function Ib(){let t=window,e=document,n=e.documentElement,i=e.getElementsByTagName("body")[0],r=t.innerWidth||n.clientWidth||i.clientWidth,a=t.innerHe
vendor: 4,586 bytes, lines 9-13
9ight||n.clientHeight||i.clientHeight;return{width:r,height:a}}function i1(t){return t?Math.abs(t.scrollLeft):0}function cz(){let t=document.documentElement;return(window.pageXOffset||i1(t))-(t.clientLeft||0)}function dz(){let t=document.documentElement;return(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}function fz(t){return t?getComputedStyle(t).direction==="rtl":!1}function Gle(t,e,n=!0){var i,r,a,s;if(t){let o=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:$D(t),u=o.height,c=o.width,l=e.offsetHeight,d=e.offsetWidth,f=e.getBoundingClientRect(),h=dz(),g=cz(),v=Ib(),m,p,y="top";f.top+l+u>v.height?(m=f.top+h-u,y="bottom",m<0&&(m=h)):m=l+f.top+h,f.left+c>v.width?p=Math.max(0,f.left+g+d-c):p=f.left+g,fz(t)?t.style.insetInlineEnd=p+"px":t.style.insetInlineStart=p+"px",t.style.top=m+"px",t.style.transformOrigin=y,n&&(t.style.marginTop=y==="bottom"?`calc(${(r=(i=n1(/-anchor-gutter$/))==null?void 0:i.value)!=null?r:"2px"} * -1)`:(s=(a=n1(/-anchor-gutter$/))==null?void 0:a.value)!=null?s:"")}}function hz(t,e){t&&(typeof e=="string"?t.style.cssText=e:Object.entries(e||{}).forEach(([n,i])=>t.style[n]=i))}function pz(t,e){if(t instanceof HTMLElement){let n=t.offsetWidth;if(e){let i=getComputedStyle(t);n+=parseFloat(i.marginLeft)+parseFloat(i.marginRight)}return n}return 0}function qle(t,e,n=!0,i=void 0){var r;if(t){let a=t.offsetParent?{width:t.offsetWidth,height:t.offsetHeight}:$D(t),s=e.offsetHeight,o=e.getBoundingClientRect(),u=Ib(),c,l,d=i??"top";if(!i&&o.top+s+a.height>u.height?(c=-1*a.height,d="bottom",o.top+c<0&&(c=-1*o.top)):c=s,a.width>u.width?l=o.left*-1:o.left+a.width>u.width?l=(o.left+a.width-u.width)*-1:l=0,t.style.top=c+"px",t.style.insetInlineStart=l+"px",t.style.transformOrigin=d,n){let f=(r=n1(/-anchor-gutter$/))==null?void 0:r.value;t.style.marginTop=d==="bottom"?`calc(${f??"2px"} * -1)`:f??""}}}function Pb(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function mz(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Pb(t))}function no(t){return typeof Element<"u"?t instanceof Element:t!==null&&typeof t=="object"&&t.nodeType===1&&typeof t.nodeName=="string"}var Bg;function oA(t){{if(Bg!=null)return Bg;let e=document.createElement("div");hz(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);let n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),Bg=n,n}}function jle(){if(window.getSelection){let t=window.getSelection()||{};t.empty?t.empty():t.removeAllRanges&&t.rangeCount>0&&t.getRangeAt(0).getClientRects().length>0&&t.removeAllRanges()}}function Am(t,e={}){if(no(t)){let n=(i,r)=>{var a,s;let o=(a=t?.$attrs)!=null&&a[i]?[(s=t?.$attrs)==null?void 0:s[i]]:[];return[r].flat().reduce((u,c)=>{if(c!=null){let l=typeof c;if(l==="string"||l==="number")u.push(c);else if(l==="object"){let d=Array.isArray(c)?n(i,c):Object.entries(c).map(([f,h])=>i==="style"&&(h||h===0)?`${f.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${h}`:h?f:void 0);u=d.length?u.concat(d.filter(f=>!!f)):u}}return u},o)};Object.entries(e).forEach(([i,r])=>{if(r!=null){let a=i.match(/^on(.+)/);a?t.addEventListener(a[1].toLowerCase(),r):i==="p-bind"||i==="pBind"?Am(t,r):(r=i==="class"?[...new Set(n("class",r))].join(" ").trim():i==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[i]=r),t.setAttribute(i,r))}})}}function Xle(t,e={},...n){if(t){let i=document.createElement(t);return Am(i,e),i.append(...n),i}}function Yle(t,e){if(t){t.style.opacity="0";let n=+new Date,i="0",r=function(){i=`${+t.style.opacity+(new Date().getTime()-n)/e}`,t.style.opacity=i,n=+new Date,+i<1&&("requestAnimationFrame"in window?requestAnimationFrame(r):setTimeout(r,16))};r()}}function gz(t,e){return no(t)?Array.from(t.querySelectorAll(e)):[]}function WD(t,e){return no(t)?t.matches(e)?t:t.querySelector(e):null}function Kle(t,e){t&&document.activeElement!==t&&t.focus(e)}function vz(t,e){if(no(t)){let n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function GD(t,e=""){let n=gz(t,`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
10            [href]:not([tabindex = "-1"]):not([style*="display:none"]):not([hidden])${e},
11            input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
12            select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
13            textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
14            [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
15            [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`),i=[];for(let r of n)getComputedStyle(r).display!="none"&&getComputedStyle(r).visibility!="hidden"&&i.push(r);return i}function Zle(t,e){let n=GD(t,e);return n.length>0?n[0]:null}function Jle(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function _z(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let i=t.offsetHeight;return t.style.display=n,t.style.visibility=e,i}return 0}function bz(t){if(t){let[e,n]=[t.style.visibility,t.style.display];t.style.visibility="hidden",t.style.display="block";let i=t.offsetWidth;return t.style.display=n,t.style.visibility=e,i}return 0}function Qle(t){var e;if(t){let n=(e=Pb(t))==null?void 0:e.childNodes,i=0;if(n)for(let r=0;r<n.length;r++){if(n[r]===t)return i;n[r].nodeType===1&&i++}}return-1}function ece(t,e){let n=GD(t,e);return n.length>0?n[n.length-1]:null}function tce(t,e){let n=t.nextElementSibling;for(;n;){if(n.matches(e))return n;n=n.nextElementSibling}return null}function yz(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||i1(document.documentElement)||i1(document.body)||0)}}return{top:"auto",left:"auto"}}function qD(t,e){if(t){let n=t.offsetHeight;if(e){let i=getComputedStyle(t);n+=parseFloat(i.marginTop)+parseFloat(i.marginBottom)}return n}return 0}function jD(t,e=[]){let n=Pb(t);return n===null?e:jD(n,e.concat([n]))}function nce(t,e){let n=t.previousElementSibling;for(;n;){if(n.matches(e))return n;n=n.previousElementSibling}return null}function ice(t){let e=[];
15if(t){let n=jD(t),i=/(auto|scroll)/,r=a=>{try{let s=window.getComputedStyle(a,null);return i.test(s.getPropertyValue("overflow"))||i.test(s.getPropertyValue("overflowX"))||i.test(s.getPropertyValue("overflowY"))}catch{return!1}};for(let a of n){let s=a.nodeType===1&&a.dataset.scrollselectors;if(s){let o=s.split(",");for(let u of o){let c=WD(a,u);c&&r(c)&&e.push(c)}}a.nodeType!==9&&r(a)&&e.push(a)}}return e}function rce(){if(window.getSelection)return window.getSelection().toString();if(document.getSelection)return document.getSelection().toString()}function ace(){return navigator.userAgent}function sce(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function oce(t,e,n){let i=t[e];typeof i=="function"&&i.apply(t,[])}function uce(){return/(android)/i.test(navigator.userAgent)}function lce(t,e,n){return no(t)?vz(t,e)===n:!1}function cce(t){if(t){let e=t.nodeName,n=t.parentElement&&t.parentElement.nodeName;return e==="INPUT"||e==="TEXTAREA"||e==="BUTTON"||e==="A"||n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||!!t.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1}function Ez(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function dce(t,e=""){return no(t)?t.matches(`button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
16            [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
17            input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
18            select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
19            textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
20            [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e},
21            [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])${e}`):!1}function fce(t){return!!(t&&t.offsetParent!=null)}function hce(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}function pce(t,e){var n,i;if(t){let r=t.parentElement,a=yz(r),s=Ib(),o=t.offsetParent?t.offsetWidth:bz(t),u=t.offsetParent?t.offsetHeight:_z(t),c=pz((n=r?.children)==null?void 0:n[0]),l=qD((i=r?.children)==null?void 0:i[0]),d="",f="";a.left+c+o>s.width-oA()?a.left<o?e%2===1?d=a.left?"-"+a.left+"px":"100%":e%2===0&&(d=s.width-o-oA()+"px"):d="-100%":d="100%",t.getBoundingClientRect().top+l+u>s.height?f=`-${u-l}px`:f="0px",t.style.top=f,t.style.insetInlineStart=d}}function mce(t,e){let n=getComputedStyle(t).getPropertyValue("borderTopWidth"),i=n?parseFloat(n):0,r=getComputedStyle(t).getPropertyValue("paddingTop"),a=r?parseFloat(r):0,s=t.getBoundingClientRect(),o=e.getBoundingClientRect().top+document.body.scrollTop-(s.top+document.body.scrollTop)-i-a,u=t.scrollTop,c=t.clientHeight,l=qD(e);o<0?t.scrollTop=u+o:o+l>c&&(t.scrollTop=u+o-c+l)}function xz(t,e="",n){no(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function gce(t,e,n=null,i){var r;e&&((r=t?.style)==null||r.setProperty(e,n,i))}var Az=Object.defineProperty,Sz=Object.defineProperties,Tz=Object.getOwnPropertyDescriptors,Sm=Object.getOwnPropertySymbols,XD=Object.prototype.hasOwnProperty,YD=Object.prototype.propertyIsEnumerable,uA=(t,e,n)=>e in t?Az(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ar=(t,e)=>{for(var n in e||(e={}))XD.call(e,n)&&uA(t,n,e[n]);if(Sm)for(var n of Sm(e))YD.call(e,n)&&uA(t,n,e[n]);return t},Vg=(t,e)=>Sz(t,Tz(e)),Ma=(t,e)=>{var n={};for(var i in t)XD.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&Sm)for(var i of Sm(t))e.indexOf(i)<0&&YD.call(t,i)&&(n[i]=t[i]);return n},wz=df(),Si=wz,Ld=/{([^}]*)}/g,KD=/(\d+\s+[\+\-\*\/]\s+\d+)/g,ZD=/var\([^)]+\)/g;function lA(t){return Or(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}function Mz(t){return es(t)&&t.hasOwnProperty("$value")&&t.hasOwnProperty("$type")?t.$value:t}function Cz(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function r1(t="",e=""){return Cz(`${Or(t,!1)&&Or(e,!1)?`${t}-`:t}${e}`)}function JD(t="",e=""){return`--${r1(t,e)}`}function Dz(t=""){let e=(t.match(/{/g)||[]).length,n=(t.match(/}/g)||[]).length;return(e+n)%2!==0}function QD(t,e="",n="",i=[],r){if(Or(t)){let a=t.trim();if(Dz(a))return;if(Wo(a,Ld)){let s=a.replaceAll(Ld,o=>{let u=o.replace(/{|}/g,"").split(".").filter(c=>!i.some(l=>Wo(c,l)));return`var(${JD(n,HD(u.join("-")))}${Qt(r)?`, ${r}`:""})`});return Wo(s.replace(ZD,"0"),KD)?`calc(${s})`:s}return a}else if(az(t))return t}function Lz(t,e,n){Or(e,!1)&&t.push(`${e}:${n};`)}function $u(t,e){return t?`${t}{${e}}`:""}function eL(t,e){if(t.indexOf("dt(")===-1)return t;function n(s,o){let u=[],c=0,l="",d=null,f=0;for(;c<=s.length;){let h=s[c];if((h==='"'||h==="'"||h==="`")&&s[c-1]!=="\\"&&(d=d===h?null:h),!d&&
vendor: 10,077 bytes, line 21
21(h==="("&&f++,h===")"&&f--,(h===","||c===s.length)&&f===0)){let g=l.trim();g.startsWith("dt(")?u.push(eL(g,o)):u.push(i(g)),l="",c++;continue}h!==void 0&&(l+=h),c++}return u}function i(s){let o=s[0];if((o==='"'||o==="'"||o==="`")&&s[s.length-1]===o)return s.slice(1,-1);let u=Number(s);return isNaN(u)?s:u}let r=[],a=[];for(let s=0;s<t.length;s++)if(t[s]==="d"&&t.slice(s,s+3)==="dt(")a.push(s),s+=2;else if(t[s]===")"&&a.length>0){let o=a.pop();a.length===0&&r.push([o,s])}if(!r.length)return t;for(let s=r.length-1;s>=0;s--){let[o,u]=r[s],c=t.slice(o+3,u),l=n(c,e),d=e(...l);t=t.slice(0,o)+d+t.slice(u+1)}return t}var vce=t=>{var e;let n=xn.getTheme(),i=a1(n,t,void 0,"variable"),r=(e=i?.match(/--[\w-]+/g))==null?void 0:e[0],a=a1(n,t,void 0,"value");return{name:r,variable:i,value:a}},Go=(...t)=>a1(xn.getTheme(),...t),a1=(t={},e,n,i)=>{if(e){let{variable:r,options:a}=xn.defaults||{},{prefix:s,transform:o}=t?.options||a||{},u=Wo(e,Ld)?e:`{${e}}`;return i==="value"||iu(i)&&o==="strict"?xn.getTokenValue(e):QD(u,void 0,s,[r.excludedKeyRegex],n)}return""};function Yf(t,...e){if(t instanceof Array){let n=t.reduce((i,r,a)=>{var s;return i+r+((s=fr(e[a],{dt:Go}))!=null?s:"")},"");return eL(n,Go)}return fr(t,{dt:Go})}function Rz(t,e={}){let n=xn.defaults.variable,{prefix:i=n.prefix,selector:r=n.selector,excludedKeyRegex:a=n.excludedKeyRegex}=e,s=[],o=[],u=[{node:t,path:i}];for(;u.length;){let{node:l,path:d}=u.pop();for(let f in l){let h=l[f],g=Mz(h),v=Wo(f,a)?r1(d):r1(d,HD(f));if(es(g))u.push({node:g,path:v});else{let m=JD(v),p=QD(g,v,i,[a]);Lz(o,m,p);let y=v;i&&y.startsWith(i+"-")&&(y=y.slice(i.length+1)),s.push(y.replace(/-/g,"."))}}}let c=o.join("");return{value:o,tokens:s,declarations:c,css:$u(r,c)}}var gr={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t},:host${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:t,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark)",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){let e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var i;return(i=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?i:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Rz(t,{prefix:e?.prefix})},getCommon({name:t="",theme:e={},params:n,set:i,defaults:r}){var a,s,o,u,c,l,d;let{preset:f,options:h}=e,g,v,m,p,y,_,b;if(Qt(f)&&h.transform!=="strict"){let{primitive:x,semantic:w,extend:D}=f,O=w||{},{colorScheme:M}=O,S=Ma(O,["colorScheme"]),B=D||{},{colorScheme:V}=B,z=Ma(B,["colorScheme"]),Q=M||{},{dark:Z}=Q,q=Ma(Q,["dark"]),te=V||{},{dark:$}=te,ee=Ma(te,["dark"]),le=Qt(x)?this._toVariables({primitive:x},h):{},xe=Qt(S)?this._toVariables({semantic:S},h):{},J=Qt(q)?this._toVariables({light:q},h):{},ye=Qt(Z)?this._toVariables({dark:Z},h):{},H=Qt(z)?this._toVariables({semantic:z},h):{},ie=Qt(ee)?this._toVariables({light:ee},h):{},_e=Qt($)?this._toVariables({dark:$},h):{},[W,be]=[(a=le.declarations)!=null?a:"",le.tokens],[ge,De]=[(s=xe.declarations)!=null?s:"",xe.tokens||[]],[ae,Fe]=[(o=J.declarations)!=null?o:"",J.tokens||[]],[U,K]=[(u=ye.declarations)!=null?u:"",ye.tokens||[]],[ue,Se]=[(c=H.declarations)!=null?c:"",H.tokens||[]],[k,E]=[(l=ie.declarations)!=null?l:"",ie.tokens||[]],[I,j]=[(d=_e.declarations)!=null?d:"",_e.tokens||[]];g=this.transformCSS(t,W,"light","variable",h,i,r),v=be;let Y=this.transformCSS(t,`${ge}${ae}`,"light","variable",h,i,r),se=this.transformCSS(t,`${U}`,"dark","variable",h,i,r);m=`${Y}${se}`,p=[...new Set([...De,...Fe,...K])];let Te=this.transformCSS(t,`${ue}${k}color-scheme:light`,"light","variable",h,i,r),X=this.transformCSS(t,`${I}color-scheme:dark`,"dark","variable",h,i,r);y=`${Te}${X}`,_=[...new Set([...Se,...E,...j])],b=fr(f.css,{dt:Go})}return{primitive:{css:g,tokens:v},semantic:{css:m,tokens:p},global:{css:y,tokens:_},style:b}},getPreset({name:t="",preset:e={},options:n,params:i,set:r,defaults:a,selector:s}){var o,u,c;let l,d,f;if(Qt(e)&&n.transform!=="strict"){let h=t.replace("-directive",""),g=e,{colorScheme:v,extend:m,css:p}=g,y=Ma(g,["colorScheme","extend","css"]),_=m||{},{colorScheme:b}=_,x=Ma(_,["colorScheme"]),w=v||{},{dark:D}=w,O=Ma(w,["dark"]),M=b||{},{dark:S}=M,B=Ma(M,["dark"]),V=Qt(y)?this._toVariables({[h]:Ar(Ar({},y),x)},n):{},z=Qt(O)?this._toVariables({[h]:Ar(Ar({},O),B)},n):{},Q=Qt(D)?this._toVariables({[h]:Ar(Ar({},D),S)},n):{},[Z,q]=[(o=V.declarations)!=null?o:"",V.tokens||[]],[te,$]=[(u=z.declarations)!=null?u:"",z.tokens||[]],[ee,le]=[(c=Q.declarations)!=null?c:"",Q.tokens||[]],xe=this.transformCSS(h,`${Z}${te}`,"light","variable",n,r,a,s),J=this.transformCSS(h,ee,"dark","variable",n,r,a,s);l=`${xe}${J}`,d=[...new Set([...q,...$,...le])],f=fr(p,{dt:Go})}return{css:l,tokens:d,style:f}},getPresetC({name:t="",theme:e={},params:n,set:i,defaults:r}){var a;let{preset:s,options:o}=e,u=(a=s?.components)==null?void 0:a[t];return this.getPreset({name:t,preset:u,options:o,params:n,set:i,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:i,defaults:r}){var a,s;let o=t.replace("-directive",""),{preset:u,options:c}=e,l=((a=u?.components)==null?void 0:a[o])||((s=u?.directives)==null?void 0:s[o]);return this.getPreset({name:o,preset:l,options:c,params:n,set:i,defaults:r})},applyDarkColorScheme(t){return!(t.darkModeSelector==="none"||t.darkModeSelector===!1)},getColorSchemeOption(t,e){var n;return this.applyDarkColorScheme(t)?this.regex.resolve(t.darkModeSelector===!0?e.options.darkModeSelector:(n=t.darkModeSelector)!=null?n:e.options.darkModeSelector):[]},getLayerOrder(t,e={},n,i){let{cssLayer:r}=e;return r?`@layer ${fr(r.order||r.name||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:i={},set:r,defaults:a}){let s=this.getCommon({name:t,theme:e,params:n,set:r,defaults:a}),o=Object.entries(i).reduce((u,[c,l])=>u.push(`${c}="${l}"`)&&u,[]).join(" ");return Object.entries(s||{}).reduce((u,[c,l])=>{if(es(l)&&Object.hasOwn(l,"css")){let d=sd(l.css),f=`${c}-variables`;u.push(`<style type="text/css" data-primevue-style-id="${f}" ${o}>${d}</style>`)}return u},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:i={},set:r,defaults:a}){var s;let o={name:t,theme:e,params:n,set:r,defaults:a},u=(s=t.includes("-directive")?this.getPresetD(o):this.getPresetC(o))==null?void 0:s.css,c=Object.entries(i).reduce((l,[d,f])=>l.push(`${d}="${f}"`)&&l,[]).join(" ");return u?`<style type="text/css" data-primevue-style-id="${t}-variables" ${c}>${sd(u)}</style>`:""},createTokens(t={},e,n="",i="",r={}){let a=function(o,u={},c=[]){if(c.includes(this.path))return console.warn(`Circular reference detected at ${this.path}`),{colorScheme:o,path:this.path,paths:u,value:void 0};c.push(this.path),u.name=this.path,u.binding||(u.binding={});let l=this.value;if(typeof this.value=="string"&&Ld.test(this.value)){let d=this.value.trim().replace(Ld,f=>{var h;let g=f.slice(1,-1),v=this.tokens[g];if(!v)return console.warn(`Token not found for path: ${g}`),"__UNRESOLVED__";let m=v.computed(o,u,c);return Array.isArray(m)&&m.length===2?`light-dark(${m[0].value},${m[1].value})`:(h=m?.value)!=null?h:"__UNRESOLVED__"});l=KD.test(d.replace(ZD,"0"))?`calc(${d})`:d}return iu(u.binding)&&delete u.binding,c.pop(),{colorScheme:o,path:this.path,paths:u,value:l.includes("__UNRESOLVED__")?void 0:l}},s=(o,u,c)=>{Object.entries(o).forEach(([l,d])=>{let f=Wo(l,e.variable.excludedKeyRegex)?u:u?`${u}.${lA(l)}`:lA(l),h=c?`${c}.${l}`:l;es(d)?s(d,f,h):(r[f]||(r[f]={paths:[],computed:(g,v={},m=[])=>{if(r[f].paths.length===1)return r[f].paths[0].computed(r[f].paths[0].scheme,v.binding,m);if(g&&g!=="none")for(let p=0;p<r[f].paths.length;p++){let y=r[f].paths[p];if(y.scheme===g)return y.computed(g,v.binding,m)}return r[f].paths.map(p=>p.computed(p.scheme,v[p.scheme],m))}}),r[f].paths.push({path:h,value:d,scheme:h.includes("colorScheme.light")?"light":h.includes("colorScheme.dark")?"dark":"none",computed:a,tokens:r}))})};return s(t,n,i),r},getTokenValue(t,e,n){var i;let r=(o=>o.split(".").filter(u=>!Wo(u.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),a=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,s=[(i=t[r])==null?void 0:i.computed(a)].flat().filter(o=>o);return s.length===1?s[0].value:s.reduce((o={},u)=>{let c=u,{colorScheme:l}=c,d=Ma(c,["colorScheme"]);return o[l]=d,o},void 0)},getSelectorRule(t,e,n,i){return n==="class"||n==="attr"?$u(Qt(e)?`${t}${e},${t} ${e}`:t,i):$u(t,$u(e??":root,:host",i))},transformCSS(t,e,n,i,r={},a,s,o){if(Qt(e)){let{cssLayer:u}=r;if(i!=="style"){let c=this.getColorSchemeOption(r,s);e=n==="dark"?c.reduce((l,{type:d,selector:f})=>(Qt(f)&&(l+=f.includes("[CSS]")?f.replace("[CSS]",e):this.getSelectorRule(f,o,d,e)),l),""):$u(o??":root,:host",e)}if(u){let c={name:"primeui"};es(u)&&(c.name=fr(u.name,{name:t,type:i})),Qt(c.name)&&(e=$u(`@layer ${c.name}`,e),a?.layerNames(c.name))}return e}return""}},xn={defaults:{variable:{prefix:"p",selector:":root,:host",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states|extend|css)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){let{theme:e}=t;e&&(this._theme=Vg(Ar({},e),{options:Ar(Ar({},this.defaults.options),e.options)}),this._tokens=gr.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),Si.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Vg(Ar({}
21,this.theme),{preset:t}),this._tokens=gr.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Si.emit("preset:change",t),Si.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Vg(Ar({},this.theme),{options:t}),this.clearLoadedStyleNames(),Si.emit("options:change",t),Si.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return gr.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return gr.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return gr.getPresetC(n)},getDirective(t="",e){let n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return gr.getPresetD(n)},getCustomPreset(t="",e,n,i){let r={name:t,preset:e,options:this.options,selector:n,params:i,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return gr.getPreset(r)},getLayerOrderCSS(t=""){return gr.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",i){return gr.transformCSS(t,e,i,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return gr.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return gr.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),Si.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Si.emit("theme:load"))}},ui={STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter"},_ce={AND:"and",OR:"or"};function cA(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Iz(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
22In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return s=c.done,c},e:function(c){o=!0,a=c},f:function(){try{s||n.return==null||n.return()}finally{if(o)throw a}}}}function Iz(t,e){if(t){if(typeof t=="string")return dA(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dA(t,e):void 0}}function dA(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}var bce={filter:function(e,n,i,r,a){var s=[];if(!e)return s;var o=cA(e),u;try{for(o.s();!(u=o.n()).done;){var c=u.value;if(typeof c=="string"){if(this.filters[r](c,i,a)){s.push(c);continue}}else{var l=cA(n),d;try{for(l.s();!(d=l.n()).done;){var f=d.value,h=t1(c,f);if(this.filters[r](h,i,a)){s.push(c);break}}}catch(g){l.e(g)}finally{l.f()}}}}catch(g){o.e(g)}finally{o.f()}return s},filters:{startsWith:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=rr(n.toString()).toLocaleLowerCase(i),a=rr(e.toString()).toLocaleLowerCase(i);return a.slice(0,r.length)===r},contains:function(e,n,i){if(n==null||n==="")return!0;
22if(e==null)return!1;var r=rr(n.toString()).toLocaleLowerCase(i),a=rr(e.toString()).toLocaleLowerCase(i);return a.indexOf(r)!==-1},notContains:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=rr(n.toString()).toLocaleLowerCase(i),a=rr(e.toString()).toLocaleLowerCase(i);return a.indexOf(r)===-1},endsWith:function(e,n,i){if(n==null||n==="")return!0;if(e==null)return!1;var r=rr(n.toString()).toLocaleLowerCase(i),a=rr(e.toString()).toLocaleLowerCase(i);return a.indexOf(r,a.length-r.length)!==-1},equals:function(e,n,i){return n==null||n===""?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()===n.getTime():rr(e.toString()).toLocaleLowerCase(i)==rr(n.toString()).toLocaleLowerCase(i)},notEquals:function(e,n,i){return n==null||n===""?!1:e==null?!0:e.getTime&&n.getTime?e.getTime()!==n.getTime():rr(e.toString()).toLocaleLowerCase(i)!=rr(n.toString()).toLocaleLowerCase(i)},in:function(e,n){if(n==null||n.length===0)return!0;for(var i=0;i<n.length;i++)if(Rb(e,n[i]))return!0;return!1},between:function(e,n){return n==null||n[0]==null||n[1]==null?!0:e==null?!1:e.getTime?n[0].getTime()<=e.getTime()&&e.getTime()<=n[1].getTime():n[0]<=e&&e<=n[1]},lt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<n.getTime():e<n},lte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()<=n.getTime():e<=n},gt:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>n.getTime():e>n},gte:function(e,n){return n==null?!0:e==null?!1:e.getTime&&n.getTime?e.getTime()>=n.getTime():e>=n},dateIs:function(e,n){return n==null?!0:e==null?!1:e.toDateString()===n.toDateString()},dateIsNot:function(e,n){return n==null?!0:e==null?!1:e.toDateString()!==n.toDateString()},dateBefore:function(e,n){return n==null?!0:e==null?!1:e.getTime()<n.getTime()},dateAfter:function(e,n){return n==null?!0:e==null?!1:e.getTime()>n.getTime()}},register:function(e,n){this.filters[e]=n}},Pz=`
23    *,
24    ::before,
25    ::after {
26        box-sizing: border-box;
27    }
28
29    .p-collapsible-enter-active {
30        animation: p-animate-collapsible-expand 0.2s ease-out;
31        overflow: hidden;
32    }
33
34    .p-collapsible-leave-active {
35        animation: p-animate-collapsible-collapse 0.2s ease-out;
36        overflow: hidden;
37    }
38
39    @keyframes p-animate-collapsible-expand {
40        from {
41            grid-template-rows: 0fr;
42        }
43        to {
44            grid-template-rows: 1fr;
45        }
46    }
47
48    @keyframes p-animate-collapsible-collapse {
49        from {
50            grid-template-rows: 1fr;
51        }
52        to {
53            grid-template-rows: 0fr;
54        }
55    }
56
57    .p-disabled,
58    .p-disabled * {
59        cursor: default;
60        pointer-events: none;
61        user-select: none;
62    }
63
64    .p-disabled,
65    .p-component:disabled {
66        opacity: dt('disabled.opacity');
67    }
68
69    .pi {
70        font-size: dt('icon.size');
71    }
72
73    .p-icon {
74        width: dt('icon.size');
75        height: dt('icon.size');
76    }
77
78    .p-overlay-mask {
79        background: var(--px-mask-background, dt('mask.background'));
80        color: dt('mask.color');
81        position: fixed;
82        top: 0;
83        left: 0;
84        width: 100%;
85        height: 100%;
86    }
87
88    .p-overlay-mask-enter-active {
89        animation: p-animate-overlay-mask-enter dt('mask.transition.duration') forwards;
90    }
91
92    .p-overlay-mask-leave-active {
93        animation: p-animate-overlay-mask-leave dt('mask.transition.duration') forwards;
94    }
95
96    @keyframes p-animate-overlay-mask-enter {
97        from {
98            background: transparent;
99        }
100        to {
101            background: var(--px-mask-background, dt('mask.background'));
102        }
103    }
104    @keyframes p-animate-overlay-mask-leave {
105        from {
106            background: var(--px-mask-background, dt('mask.background'));
107        }
108        to {
109            background: transparent;
110        }
111    }
112
113    .p-anchored-overlay-enter-active {
114        animation: p-animate-anchored-overlay-enter 300ms cubic-bezier(.19,1,.22,1);
115    }
116
117    .p-anchored-overlay-leave-active {
118        animation: p-animate-anchored-overlay-leave 300ms cubic-bezier(.19,1,.22,1);
119    }
120
121    @keyframes p-animate-anchored-overlay-enter {
122        from {
123            opacity: 0;
124            transform: scale(0.93);
125        }
126    }
127
128    @keyframes p-animate-anchored-overlay-leave {
129        to {
130            opacity: 0;
131            transform: scale(0.93);
132        }
133    }
134`;function Rd(t){"@babel/helpers - typeof";return Rd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rd(t)}function fA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function hA(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fA(Object(n),!0).forEach(function(i){kz(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function kz(t,e,n){return(e=Oz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oz(t){var e=Nz(t,"string");return Rd(e)=="symbol"?e:e+""}function Nz(t,e){if(Rd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Rd(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Uz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Mn()&&Mn().components?$n(t):e?t():Di(t)}var Fz=0;function Bz(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Le(!1),i=Le(t),r=Le(null),a=Ez()?window.document:void 0,s=e.document,o=s===void 0?a:s,u=e.immediate,c=u===void 0?!0:u,l=e.manual,d=l===void 0?!1:l,f=e.name,h=f===void 0?"style_".concat(++Fz):f,g=e.id,v=g===void 0?void 0:g,m=e.media,p=m===void 0?void 0:m,y=e.nonce,_=y===void 0?void 0:y,b=e.first,x=b===void 0?!1:b,w=e.onMounted,D=w===void 0?void 0:w,O=e.onUpdated,M=O===void 0?void 0:O,S=e.onLoad,B=S===void 0?void 0:S,V=e.props,z=V===void 0?{}:V,Q=function(){},Z=function($){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(o){var le=hA(hA({},z),ee),xe=le.name||h,J=le.id||v,ye=le.nonce||_;r.value=o.querySelector('style[data-primevue-style-id="'.concat(xe,'"]'))||o.getElementById(J)||o.createElement("style"),r.value.isConnected||(i.value=$||t,Am(r.value,{type:"text/css",id:J,media:p,nonce:ye}),x?o.head.prepend(r.value):o.head.appendChild(r.value),xz(r.value,"data-primevue-style-id",xe),Am(r.value,le),r.value.onload=function(H){return B?.(H,{name:xe})},D?.(xe)),!n.value&&(Q=st(i,function(H){r.value.textContent=H,M?.(xe)},{immediate:!0}),n.value=!0)}},q=function(){!o||!n.value||(Q(),mz(r.value)&&o.head.removeChild(r.value),n.value=!1,r.value=null)};return c&&!d&&Uz(Z),{id:v,name:h,el:r,css:i,unload:q,load:Z,isLoaded:qs(n)}}function Id(t){"@babel/helpers - typeof";return Id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Id(t)}var pA,mA,gA,vA;function _A(t,e){return $z(t)||zz(t,e)||Hz(t,e)||Vz()}function Vz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hz(t,e){if(t){if(typeof t=="string")return bA(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bA(t,e):void 0}}function bA(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function zz(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,s,o=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,e!==0)for(;!(u=(i=a.call(n)).done)&&(o.push(i.value),o.length!==e);u=!0);}catch(l){c=!0,r=l}
135finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}function $z(t){if(Array.isArray(t))return t}function yA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Hg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yA(Object(n),!0).forEach(function(i){Wz(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Wz(t,e,n){return(e=Gz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gz(t){var e=qz(t,"string");return Id(e)=="symbol"?e:e+""}function qz(t,e){if(Id(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Id(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Kf(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}var jz=function(e){var n=e.dt;return`
136.p-hidden-accessible {
137    border: 0;
138    clip: rect(0 0 0 0);
139    height: 1px;
140    margin: -1px;
141    opacity: 0;
142    overflow: hidden;
143    padding: 0;
144    pointer-events: none;
145    position: absolute;
146    white-space: nowrap;
147    width: 1px;
148}
149
150.p-overflow-hidden {
151    overflow: hidden;
152    padding-right: `.concat(n("scrollbar.width"),`;
153}
154`)},Xz={},Yz={},Ti={name:"base",css:jz,style:Pz,classes:Xz,inlineStyles:Yz,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(a){return a},r=i(Yf(pA||(pA=Kf(["",""])),e));return Qt(r)?Bz(sd(r),Hg({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadStyle:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.load(this.style,n,function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return xn.transformCSS(n.name||e.name,"".concat(r).concat(Yf(mA||(mA=Kf(["",""])),i)))})},getCommonTheme:function(e){return xn.getCommon(this.name,e)},getComponentTheme:function(e){return xn.getComponent(this.name,e)},getDirectiveTheme:function(e){return xn.getDirective(this.name,e)},getPresetTheme:function(e,n,i){return xn.getCustomPreset(this.name,e,n,i)},getLayerOrderThemeCSS:function(){return xn.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var i=fr(this.css,{dt:Go})||"",r=sd(Yf(gA||(gA=Kf(["","",""])),i,e)),a=Object.entries(n).reduce(function(s,o){var u=_A(o,2),c=u[0],l=u[1];return s.push("".concat(c,'="').concat(l,'"'))&&s},[]).join(" ");return Qt(r)?'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(a,">").concat(r,"</style>"):""}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return xn.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=[xn.getStyleSheet(this.name,e,n)];if(this.style){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),a=Yf(vA||(vA=Kf(["",""])),fr(this.style,{dt:Go})),s=sd(xn.transformCSS(r,a)),o=Object.entries(n).reduce(function(u,c){var l=_A(c,2),d=l[0],f=l[1];return u.push("".concat(d,'="').concat(f,'"'))&&u},[]).join(" ");Qt(s)&&i.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(o,">").concat(s,"</style>"))}return i.join("")},extend:function(e){return Hg(Hg({},this),{},{css:void 0,style:void 0},e)}},Zf=df();function Pd(t){"@babel/helpers - typeof";return Pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pd(t)}function EA(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Jf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
154e%2?EA(Object(n),!0).forEach(function(i){Kz(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Kz(t,e,n){return(e=Zz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zz(t){var e=Jz(t,"string");return Pd(e)=="symbol"?e:e+""}function Jz(t,e){if(Pd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Pd(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Qz={ripple:!1,inputStyle:null,inputVariant:null,locale:{startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",completed:"Completed",pending:"Pending",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],chooseYear:"Choose Year",chooseMonth:"Choose Month",chooseDate:"Choose Date",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",prevHour:"Previous Hour",nextHour:"Next Hour",prevMinute:"Previous Minute",nextMinute:"Next Minute",prevSecond:"Previous Second",nextSecond:"Next Second",am:"am",pm:"pm",today:"Today",weekHeader:"Wk",firstDayOfWeek:0,showMonthAfterYear:!1,dateFormat:"mm/dd/yy",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyFilterMessage:"No results found",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",emptySelectionMessage:"No selected item",emptySearchMessage:"No results found",fileChosenMessage:"{0} files",noFileChosenMessage:"No file chosen",emptyMessage:"No available options",aria:{trueLabel:"True",falseLabel:"False",nullLabel:"Not Selected",star:"1 star",stars:"{star} stars",selectAll:"All items selected",unselectAll:"All items unselected",close:"Close",previous:"Previous",next:"Next",navigation:"Navigation",scrollTop:"Scroll Top",moveTop:"Move Top",moveUp:"Move Up",moveDown:"Move Down",moveBottom:"Move Bottom",moveToTarget:"Move to Target",moveToSource:"Move to Source",moveAllToTarget:"Move All to Target",moveAllToSource:"Move All to Source",pageLabel:"Page {page}",firstPageLabel:"First Page",lastPageLabel:"Last Page",nextPageLabel:"Next Page",prevPageLabel:"Previous Page",rowsPerPageLabel:"Rows per page",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",selectRow:"Row Selected",unselectRow:"Row Unselected",expandRow:"Row Expanded",collapseRow:"Row Collapsed",showFilterMenu:"Show Filter Menu",hideFilterMenu:"Hide Filter Menu",filterOperator:"Filter Operator",filterConstraint:"Filter Constraint",editRow:"Row Edit",saveEdit:"Save Edit",cancelEdit:"Cancel Edit",listView:"List View",gridView:"Grid View",slide:"Slide",slideNumber:"{slideNumber}",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",listLabel:"Option List"}},filterMatchModeOptions:{text:[ui.STARTS_WITH,ui.CONTAINS,ui.NOT_CONTAINS,ui.ENDS_WITH,ui.EQUALS,ui.NOT_EQUALS],numeric:[ui.EQUALS,ui.NOT_EQUALS,ui.LESS_THAN,ui.LESS_THAN_OR_EQUAL_TO,ui.GREATER_THAN,ui.GREATER_THAN_OR_EQUAL_TO],date:[ui.DATE_IS,ui.DATE_IS_NOT,ui.DATE_BEFORE,ui.DATE_AFTER]},zIndex:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100},theme:void 0,unstyled:!1,pt:void 0,ptOptions:{mergeSections:!0,mergeProps:!1},csp:{nonce:void 0}},e$=Symbol();function t$(t,e){var n={config:In(e)};return t.config.globalProperties.$primevue=n,t.provide(e$,n),n$(),i$(t,n),n}var sl=[];function n$(){Si.clear(),sl.forEach(function(t){return t?.()}),sl=[]}function i$(t,e){var n=Le(!1),i=function(){var c;if(((c=e.config)===null||c===void 0?void 0:c.theme)!=="none"&&!xn.isStyleNameLoaded("common")){var l,d,f=((l=Ti.getCommonTheme)===null||l===void 0?void 0:l.call(Ti))||{},h=f.primitive,g=f.semantic,v=f.global,m=f.style,p={nonce:(d=e.config)===null||d===void 0||(d=d.csp)===null||d===void 0?void 0:d.nonce};Ti.load(h?.css,Jf({name:"primitive-variables"},p)),Ti.load(g?.css,Jf({name:"semantic-variables"},p)),Ti.load(v?.css,Jf({name:"global-variables"},p)),Ti.loadStyle(Jf({name:"global-style"},p),m),xn.setLoadedStyleName("common")}};
154Si.on("theme:change",function(u){n.value||(t.config.globalProperties.$primevue.config.theme=u,n.value=!0)});var r=st(e.config,function(u,c){Zf.emit("config:change",{newValue:u,oldValue:c})},{immediate:!0,deep:!0}),a=st(function(){return e.config.ripple},function(u,c){Zf.emit("config:ripple:change",{newValue:u,oldValue:c})},{immediate:!0,deep:!0}),s=st(function(){return e.config.theme},function(u,c){n.value||xn.setTheme(u),e.config.unstyled||i(),n.value=!1,Zf.emit("config:theme:change",{newValue:u,oldValue:c})},{immediate:!0,deep:!1}),o=st(function(){return e.config.unstyled},function(u,c){!u&&e.config.theme&&i(),Zf.emit("config:unstyled:change",{newValue:u,oldValue:c})},{immediate:!0,deep:!0});sl.push(r),sl.push(a),sl.push(s),sl.push(o)}var tL={install:function(e,n){var i=sz(Qz,n);t$(e,i)}},xA=df(),r$=Symbol(),a$={install:function(e){var n={require:function(r){xA.emit("confirm",r)},close:function(){xA.emit("close")}};e.config.globalProperties.$confirm=n,e.provide(r$,n)}},AA=df(),s$=Symbol(),o$={install:function(e){var n={open:function(r,a){var s={content:r&&nf(r),options:a||{},data:a&&a.data,close:function(u){AA.emit("close",{instance:s,params:u})}};return AA.emit("open",{instance:s}),s}};e.config.globalProperties.$dialog=n,e.provide(s$,n)}},Qf=df(),u$=Symbol(),l$={install:function(e){var n={add:function(r){Qf.emit("add",r)},remove:function(r){Qf.emit("remove",r)},removeGroup:function(r){Qf.emit("remove-group",r)},removeAllGroups:function(){Qf.emit("remove-all-groups")}};e.config.globalProperties.$toast=n,e.provide(u$,n)}};const c$={button:{root:"clickable"}},d$=Ht(({vueApp:t})=>{const n=Li()?.public?.primevue??{},{usePrimeVue:i=!0,options:r={}}=n,a={pt:c$},s={};i&&t.use(tL,{...r,...a,...s}),t.use(a$),t.use(o$),t.use(l$)}),f$=Ht(({vueApp:t})=>{});function Vr(t){return Zs()?(Jo(t),!0):!1}function Ot(t){return typeof t=="function"?t():ze(t)}function nL(t){if(!Dt(t))return In(t);const e=new Proxy({},{get(n,i,r){return ze(Reflect.get(t.value,i,r))},set(n,i,r){return Dt(t.value[i])&&!Dt(r)?t.value[i].value=r:t.value[i]=r,!0},deleteProperty(n,i){return Reflect.deleteProperty(t.value,i)},has(n,i){return Reflect.has(t.value,i)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return In(e)}function h$(t){return nL(Ve(t))}const B0=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const kb=t=>t!=null,p$=Object.prototype.toString,kd=t=>p$.call(t)==="[object Object]",Bi=()=>{},SA=m$();function m$(){var t,e;return B0&&((t=window?.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window?.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function g$(t,e){function n(...i){return new Promise((r,a)=>{Promise.resolve(t(()=>e.apply(this,i),{fn:e,thisArg:this,args:i})).then(r).catch(a)})}return n}const iL=t=>t();function v$(t,e={}){let n,i,r=Bi;const a=o=>{clearTimeout(o),r(),r=Bi};return o=>{const u=Ot(t),c=Ot(e.maxWait);return n&&a(n),u<=0||c!==void 0&&c<=0?(i&&(a(i),i=null),Promise.resolve(o())):new Promise((l,d)=>{r=e.rejectOnCancel?d:l,c&&!i&&(i=setTimeout(()=>{n&&a(n),i=null,l(o())},c)),n=setTimeout(()=>{i&&a(i),i=null,l(o())},u)})}}function _$(...t){let e=0,n,i=!0,r=Bi,a,s,o,u,c;!Dt(t[0])&&typeof t[0]=="object"?{delay:s,trailing:o=!0,leading:u=!0,rejectOnCancel:c=!1}=t[0]:[s,o=!0,u=!0,c=!1]=t;const l=()=>{n&&(clearTimeout(n),n=void 0,r(),r=Bi)};return f=>{const h=Ot(s),g=Date.now()-e,v=()=>a=f();return l(),h<=0?(e=Date.now(),v()):(g>h&&(u||!i)?(e=Date.now(),v()):o&&(a=new Promise((m,p)=>{r=c?p:m,n=setTimeout(()=>{e=Date.now(),i=!0,m(v()),l()},Math.max(0,h-g))})),!u&&!n&&(n=setTimeout(()=>i=!0,h)),i=!1,a)}}function b$(t=iL){const e=Le(!0);function n(){e.value=!1}function i(){e.value=!0}const r=(...a)=>{e.value&&t(...a)};return{isActive:qs(e),pause:n,resume:i,eventFilter:r}}const rL={mounted:"mounted"};function s1(t,e=!1,n="Timeout"){return new Promise((i,r)=>{setTimeout(e?()=>r(n):i,t)})}function aL(t){return t}function y$(t,e){var n;if(typeof t=="number")return t+e;
154const i=((n=t.match(/^-?\d+\.?\d*/))==null?void 0:n[0])||"",r=t.slice(i.length),a=Number.parseFloat(i)+e;return Number.isNaN(a)?t:a+r}function sL(t){return Mn()}function E$(...t){if(t.length!==1)return Zl(...t);const e=t[0];return typeof e=="function"?qs($2(()=>({get:e,set:Bi}))):Le(e)}function Ob(t,e,n={}){const{eventFilter:i=iL,...r}=n;return st(t,g$(i,e),r)}function oL(t,e,n={}){const{eventFilter:i,...r}=n,{eventFilter:a,pause:s,resume:o,isActive:u}=b$(i);return{stop:Ob(t,e,{...r,eventFilter:a}),pause:s,resume:o,isActive:u}}function V0(t,e=!0,n){sL()?$n(t,n):e?t():Di(t)}function x$(t,e){sL()&&xa(t,e)}function o1(t,e=!1){function n(d,{flush:f="sync",deep:h=!1,timeout:g,throwOnTimeout:v}={}){let m=null;const y=[new Promise(_=>{m=st(t,b=>{d(b)!==e&&(m?.(),_(b))},{flush:f,deep:h,immediate:!0})})];return g!=null&&y.push(s1(g,v).then(()=>Ot(t)).finally(()=>m?.())),Promise.race(y)}function i(d,f){if(!Dt(d))return n(b=>b===d,f);const{flush:h="sync",deep:g=!1,timeout:v,throwOnTimeout:m}=f??{};let p=null;const _=[new Promise(b=>{p=st([t,d],([x,w])=>{e!==(x===w)&&(p?.(),b(x))},{flush:h,deep:g,immediate:!0})})];return v!=null&&_.push(s1(v,m).then(()=>Ot(t)).finally(()=>(p?.(),Ot(t)))),Promise.race(_)}function r(d){return n(f=>!!f,d)}function a(d){return i(null,d)}function s(d){return i(void 0,d)}function o(d){return n(Number.isNaN,d)}function u(d,f){return n(h=>{const g=Array.from(h);return g.includes(d)||g.includes(Ot(d))},f)}function c(d){return l(1,d)}function l(d=1,f){let h=-1;return n(()=>(h+=1,h>=d),f)}return Array.isArray(Ot(t))?{toMatch:n,toContains:u,changed:c,changedTimes:l,get not(){return o1(t,!e)}}:{toMatch:n,toBe:i,toBeTruthy:r,toBeNull:a,toBeNaN:o,toBeUndefined:s,changed:c,changedTimes:l,get not(){return o1(t,!e)}}}function TA(t){return o1(t)}const A$=/[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;function S$(t,e,n,i){let r=t<12?"AM":"PM";return i&&(r=r.split("").reduce((a,s)=>a+=`${s}.`,"")),n?r.toLowerCase():r}function co(t){const e=["th","st","nd","rd"],n=t%100;return t+(e[(n-20)%10]||e[n]||e[0])}function T$(t,e,n={}){var i;const r=t.getFullYear(),a=t.getMonth(),s=t.getDate(),o=t.getHours(),u=t.getMinutes(),c=t.getSeconds(),l=t.getMilliseconds(),d=t.getDay(),f=(i=n.customMeridiem)!=null?i:S$,h={Yo:()=>co(r),YY:()=>String(r).slice(-2),YYYY:()=>r,M:()=>a+1,Mo:()=>co(a+1),MM:()=>`${a+1}`.padStart(2,"0"),MMM:()=>t.toLocaleDateString(n.locales,{month:"short"}),MMMM:()=>t.toLocaleDateString(n.locales,{month:"long"}),D:()=>String(s),Do:()=>co(s),DD:()=>`${s}`.padStart(2,"0"),H:()=>String(o),Ho:()=>co(o),HH:()=>`${o}`.padStart(2,"0"),h:()=>`${o%12||12}`.padStart(1,"0"),ho:()=>co(o%12||12),hh:()=>`${o%12||12}`.padStart(2,"0"),m:()=>String(u),mo:()=>co(u),mm:()=>`${u}`.padStart(2,"0"),s:()=>String(c),so:()=>co(c),ss:()=>`${c}`.padStart(2,"0"),SSS:()=>`${l}`.padStart(3,"0"),d:()=>d,dd:()=>t.toLocaleDateString(n.locales,{weekday:"narrow"}),ddd:()=>t.toLocaleDateString(n.locales,{weekday:"short"}),dddd:()=>t.toLocaleDateString(n.locales,{weekday:"long"}),A:()=>f(o,u),AA:()=>f(o,u,!1,!0),a:()=>f(o,u,!0),aa:()=>f(o,u,!0,!0)};return e.replace(A$,(g,v)=>{var m,p;return(p=v??((m=h[g])==null?void 0:m.call(h)))!=null?p:g})}function yce(t,e,n={}){const{debounce:i=0,maxWait:r=void 0,...a}=n;return Ob(t,e,{...a,eventFilter:v$(i,{maxWait:r})})}function Ece(t,e,n={}){const{throttle:i=0,trailing:r=!0,leading:a=!0,...s}=n;return Ob(t,e,{...s,eventFilter:_$(i,r,a)})}function xce(t,e,n){let i;Dt(n)?i={evaluating:n}:i={};const{lazy:r=!1,evaluating:a=void 0,shallow:s=!0,onError:o=Bi}=i,u=Le(!r),c=s?hn(e):Le(e);let l=0;return Ql(async d=>{if(!u.value)return;l++;const f=l;let h=!1;a&&Promise.resolve().then(()=>{a.value=!0});try{const g=await t(v=>{d(()=>{a&&(a.value=!1),h||v()})});f===l&&(c.value=g)}catch(g){o(g)}finally{a&&f===l&&(a.value=!1),h=!0}}),r?Ve(()=>(u.value=!0,c.value)):c}function Hn(t){var e;const n=Ot(t);return(e=n?.$el)!=null?e:n}const vi=B0?window:void 0,uL=B0?window.document:void 0;function Bt(...t){let e,n,i,r;
154if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=vi):[e,n,i,r]=t,!e)return Bi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(l=>l()),a.length=0},o=(l,d,f,h)=>(l.addEventListener(d,f,h),()=>l.removeEventListener(d,f,h)),u=st(()=>[Hn(e),Ot(r)],([l,d])=>{if(s(),!l)return;const f=kd(d)?{...d}:d;a.push(...n.flatMap(h=>i.map(g=>o(l,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Vr(c),c}function w$(){const t=Le(!1),e=Mn();return e&&$n(()=>{t.value=!0},e),t}function ff(t){const e=w$();return Ve(()=>(e.value,!!t()))}function M$(t,e,n={}){const{window:i=vi,...r}=n;let a;const s=ff(()=>i&&"MutationObserver"in i),o=()=>{a&&(a.disconnect(),a=void 0)},u=Ve(()=>{const f=Ot(t),h=(Array.isArray(f)?f:[f]).map(Hn).filter(kb);return new Set(h)}),c=st(()=>u.value,f=>{o(),s.value&&f.size&&(a=new MutationObserver(e),f.forEach(h=>a.observe(h,r)))},{immediate:!0,flush:"post"}),l=()=>a?.takeRecords(),d=()=>{o(),c()};return Vr(d),{isSupported:s,stop:d,takeRecords:l}}function lL(t,e={}){const{immediate:n=!0,fpsLimit:i=void 0,window:r=vi}=e,a=Le(!1),s=i?1e3/i:null;let o=0,u=null;function c(f){if(!a.value||!r)return;o||(o=f);const h=f-o;if(s&&h<s){u=r.requestAnimationFrame(c);return}o=f,t({delta:h,timestamp:f}),u=r.requestAnimationFrame(c)}function l(){!a.value&&r&&(a.value=!0,o=0,u=r.requestAnimationFrame(c))}function d(){a.value=!1,u!=null&&r&&(r.cancelAnimationFrame(u),u=null)}return n&&l(),Vr(d),{isActive:qs(a),pause:d,resume:l}}function cc(t,e={}){const{window:n=vi}=e,i=ff(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let r;const a=Le(!1),s=c=>{a.value=c.matches},o=()=>{r&&("removeEventListener"in r?r.removeEventListener("change",s):r.removeListener(s))},u=Ql(()=>{i.value&&(o(),r=n.matchMedia(Ot(t)),"addEventListener"in r?r.addEventListener("change",s):r.addListener(s),a.value=r.matches)});return Vr(()=>{u(),o(),r=void 0}),a}function C$(t,e={}){function n(l,d){let f=Ot(t[Ot(l)]);return d!=null&&(f=y$(f,d)),typeof f=="number"&&(f=`${f}px`),f}const{window:i=vi,strategy:r="min-width"}=e;function a(l){return i?i.matchMedia(l).matches:!1}const s=l=>cc(()=>`(min-width: ${n(l)})`,e),o=l=>cc(()=>`(max-width: ${n(l)})`,e),u=Object.keys(t).reduce((l,d)=>(Object.defineProperty(l,d,{get:()=>r==="min-width"?s(d):o(d),enumerable:!0,configurable:!0}),l),{});function c(){const l=Object.keys(t).map(d=>[d,s(d)]);return Ve(()=>l.filter(([,d])=>d.value).map(([d])=>d))}return Object.assign(u,{greaterOrEqual:s,smallerOrEqual:o,greater(l){return cc(()=>`(min-width: ${n(l,.1)})`,e)},smaller(l){return cc(()=>`(max-width: ${n(l,-.1)})`,e)},between(l,d){return cc(()=>`(min-width: ${n(l)}) and (max-width: ${n(d,-.1)})`,e)},isGreater(l){return a(`(min-width: ${n(l,.1)})`)},isGreaterOrEqual(l){return a(`(min-width: ${n(l)})`)},isSmaller(l){return a(`(max-width: ${n(l,-.1)})`)},isSmallerOrEqual(l){return a(`(max-width: ${n(l)})`)},isInBetween(l,d){return a(`(min-width: ${n(l)}) and (max-width: ${n(d,-.1)})`)},current:c,active(){const l=c();return Ve(()=>l.value.length===0?"":l.value.at(-1))}})}const eh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},th="__vueuse_ssr_handlers__",D$=L$();function L$(){return th in eh||(eh[th]=eh[th]||{}),eh[th]}function R$(t,e){return D$[t]||e}function I$(t){return t==null?"any":t instanceof Set?"set":t instanceof Map?"map":t instanceof Date?"date":typeof t=="boolean"?"boolean":typeof t=="string"?"string":typeof t=="object"?"object":Number.isNaN(t)?"any":"number"}const P$={boolean:{read:t=>t==="true",write:t=>String(t)},object:{read:t=>JSON.parse(t),write:t=>JSON.stringify(t)},number:{read:t=>Number.parseFloat(t),write:t=>String(t)},any:{read:t=>t,write:t=>String(t)},string:{read:t=>t,write:t=>String(t)},map:{read:t=>new Map(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t.entries()))},set:{read:t=>new Set(JSON.parse(t)),write:t=>JSON.stringify(Array.from(t))},date:{read:t=>new Date(t),write:t=>t.toISOString()}},wA="vueuse-storage";function Ace(t,e,n,i={}){var r;const{flush:a="pre",deep:s=!0,listenToStorageChanges:o=!0,writeDefaults:u=!0,mergeDefaults:c=!1,shallow:l,window:d=vi,eventFilter:f,onError:h=S=>{console.error(S)},initOnMounted:g}=i,v=(l?hn:Le)(typeof e=="function"?e():e);if(!n)try{n=R$("getDefaultStorage",()=>{var S;return(S=vi)==null?void 0:S.localStorage})()}catch(S){h(S)}if(!n)return v;const m=Ot(e),p=I$(m),y=(r=i.serializer)!=null?r:P$[p],{pause:_,resume:b}=oL(v,()=>w(v.value),{flush:a,deep:s,eventFilter:f});d&&o&&V0(()=>{Bt(d,"storage",O),Bt(d,wA,M),g&&O()}),g||O();function x(S,B){d&&d.dispatchEvent(new CustomEvent(wA,{detail:{key:t,oldValue:S,newValue:B,storageArea:n}}))}function w(S){try{const B=n.getItem(t);if(S==null)x(B,null),n.removeItem(t);else{const V=y.write(S);B!==V&&(n.setItem(t,V),x(B,V))}}catch(B){h(B)}}function D(S){const B=S?S.newValue:n.getItem(t);if(B==null)return u&&m!=null&&n.setItem(t,y.write(m)),m;if(!S&&c){const V=y.read(B);return typeof c=="function"?c(V,m):p==="object"&&!Array.isArray(V)?{...m,...V}:V}else return typeof B!="string"?B:y.read(B)}function O(S){if(!(S&&S.storageArea!==n)){if(S&&S.key==null){v.value=m;return}if(!(S&&S.key!==t)){_();try{S?.newValue!==y.write(v.value)&&(v.value=D(S))}catch(B){h(B)}finally{S?Di(b):b()}}}}function M(S){O(S.detail)}return v}function cL(t,e,n={}){const{window:i=vi,...r}=n;let a;const s=ff(()=>i&&"ResizeObserver"in i),o=()=>{a&&(a.disconnect(),a=void 0)},u=Ve(()=>Array.isArray(t)?t.map(d=>Hn(d)):[Hn(t)]),c=st(u,d=>{if(o(),s.value&&i){a=new ResizeObserver(e);for(const f of d)f&&a.observe(f,r)}},{immediate:!0,flush:"post"}),l=()=>{o(),c()};return Vr(l),{isSupported:s,stop:l}}function Sce(t,e={}){const{reset:n=!0,windowResize:i=!0,windowScroll:r=!0,immediate:a=!0}=e,s=Le(0),o=Le(0),u=Le(0),c=Le(0),l=Le(0),d=Le(0),f=Le(0),h=Le(0);function g(){const v=Hn(t);if(!v){n&&(s.value=0,o.value=0,u.value=0,c.value=0,l.value=0,d.value=0,f.value=0,h.value=0);return}const m=v.getBoundingClientRect();s.value=m.height,o.value=m.bottom,u.value=m.left,c.value=m.right,l.value=m.top,d.value=m.width,f.value=m.x,h.value=m.y}return cL(t,g),st(()=>Hn(t),v=>!v&&g()),M$(t,g,{attributeFilter:["style","class"]}),r&&Bt("scroll",g,{capture:!0,passive:!0}),i&&Bt("resize",g,{passive:!0}),V0(()=>{a&&g()}
154),{height:s,bottom:o,left:u,right:c,top:l,width:d,x:f,y:h,update:g}}function k$(t,e={width:0,height:0},n={}){const{window:i=vi,box:r="content-box"}=n,a=Ve(()=>{var d,f;return(f=(d=Hn(t))==null?void 0:d.namespaceURI)==null?void 0:f.includes("svg")}),s=Le(e.width),o=Le(e.height),{stop:u}=cL(t,([d])=>{const f=r==="border-box"?d.borderBoxSize:r==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(i&&a.value){const h=Hn(t);if(h){const g=h.getBoundingClientRect();s.value=g.width,o.value=g.height}}else if(f){const h=Array.isArray(f)?f:[f];s.value=h.reduce((g,{inlineSize:v})=>g+v,0),o.value=h.reduce((g,{blockSize:v})=>g+v,0)}else s.value=d.contentRect.width,o.value=d.contentRect.height},n);V0(()=>{const d=Hn(t);d&&(s.value="offsetWidth"in d?d.offsetWidth:e.width,o.value="offsetHeight"in d?d.offsetHeight:e.height)});const c=st(()=>Hn(t),d=>{s.value=d?e.width:0,o.value=d?e.height:0});function l(){u(),c()}return{width:s,height:o,stop:l}}function dL(t,e,n={}){const{root:i,rootMargin:r="0px",threshold:a=.1,window:s=vi,immediate:o=!0}=n,u=ff(()=>s&&"IntersectionObserver"in s),c=Ve(()=>{const g=Ot(t);return(Array.isArray(g)?g:[g]).map(Hn).filter(kb)});let l=Bi;const d=Le(o),f=u.value?st(()=>[c.value,Hn(i),d.value],([g,v])=>{if(l(),!d.value||!g.length)return;const m=new IntersectionObserver(e,{root:Hn(v),rootMargin:r,threshold:a});g.forEach(p=>p&&m.observe(p)),l=()=>{m.disconnect(),l=Bi}},{immediate:o,flush:"post"}):Bi,h=()=>{l(),f(),d.value=!1};return Vr(h),{isSupported:u,isActive:d,pause(){l(),d.value=!1},resume(){d.value=!0},stop:h}}function Tce(t,e={}){const{window:n=vi,scrollTarget:i,threshold:r=0}=e,a=Le(!1);return dL(t,s=>{let o=a.value,u=0;for(const c of s)c.time>=u&&(u=c.time,o=c.isIntersecting);a.value=o},{root:i,window:n,threshold:r}),a}const O$={page:t=>[t.pageX,t.pageY],client:t=>[t.clientX,t.clientY],screen:t=>[t.screenX,t.screenY],movement:t=>t instanceof Touch?null:[t.movementX,t.movementY]};function N$(t={}){const{type:e="page",touch:n=!0,resetOnTouchEnds:i=!1,initialValue:r={x:0,y:0},window:a=vi,target:s=a,scroll:o=!0,eventFilter:u}=t;let c=null;const l=Le(r.x),d=Le(r.y),f=Le(null),h=typeof e=="function"?e:O$[e],g=x=>{const w=h(x);c=x,w&&([l.value,d.value]=w,f.value="mouse")},v=x=>{if(x.touches.length>0){const w=h(x.touches[0]);w&&([l.value,d.value]=w,f.value="touch")}},m=()=>{if(!c||!a)return;const x=h(c);c instanceof MouseEvent&&x&&(l.value=x[0]+a.scrollX,d.value=x[1]+a.scrollY)},p=()=>{l.value=r.x,d.value=r.y},y=u?x=>u(()=>g(x),{}):x=>g(x),_=u?x=>u(()=>v(x),{}):x=>v(x),b=u?()=>u(()=>m(),{}):()=>m();if(s){const x={passive:!0};Bt(s,["mousemove","dragover"],y,x),n&&e!=="movement"&&(Bt(s,["touchstart","touchmove"],_,x),i&&Bt(s,"touchend",p,x)),o&&e==="page"&&Bt(a,"scroll",b,{passive:!0})}return{x:l,y:d,sourceType:f}}function U$(t,e={}){const{handleOutside:n=!0,window:i=vi}=e,r=e.type||"page",{x:a,y:s,sourceType:o}=N$(e),u=Le(t??i?.document.body),c=Le(0),l=Le(0),d=Le(0),f=Le(0),h=Le(0),g=Le(0),v=Le(!0);let m=()=>{};return i&&(m=st([u,a,s],()=>{const p=Hn(u);if(!p)return;const{left:y,top:_,width:b,height:x}=p.getBoundingClientRect();d.value=y+(r==="page"?i.pageXOffset:0),f.value=_+(r==="page"?i.pageYOffset:0),h.value=x,g.value=b;const w=a.value-d.value,D=s.value-f.value;v.value=b===0||x===0||w<0||D<0||w>b||D>x,(n||!v.value)&&(c.value=w,l.value=D)},{immediate:!0}),Bt(document,"mouseleave",()=>{v.value=!0})),{x:a,y:s,sourceType:o,elementX:c,elementY:l,elementPositionX:d,elementPositionY:f,elementHeight:h,elementWidth:g,isOutside:v,stop:m}}function F$(t,e={}){const{document:n=uL}=e,i=ff(()=>n&&"pointerLockElement"in n),r=Le(),a=Le();let s;i.value&&(Bt(n,"pointerlockchange",()=>{var c;const l=(c=n.pointerLockElement)!=null?c:r.value;s&&l===s&&(r.value=n.pointerLockElement,r.value||(s=a.value=null))}),Bt(n,"pointerlockerror",()=>{var c;const l=(c=n.pointerLockElement)!=null?c:r.value;if(s&&l===s){const d=n.pointerLockElement?"release":"acquire";throw new Error(`Failed to ${d} pointer lock.`)}}));async function o(c){var l;if(!i.value)throw new Error("Pointer Lock API is not supported by your browser.");if(a.value=c instanceof Event?c.currentTarget:null,s=c instanceof Event?(l=Hn(t))!=null?l:a.value:Hn(c),!s)throw new Error("Target element undefined.");return s.requestPointerLock(),await TA(r).toBe(s)}async function u(){return r.value?(n.exitPointerLock(),await TA(r).toBeNull(),!0):!1}return{isSupported:i,element:r,triggerElement:a,lock:o,unlock:u}}let B$=0;function V$(t,e={}){const n=Le(!1),{document:i=uL,immediate:r=!0,manual:a=!1,id:s=`vueuse_styletag_${++B$}`}=e,o=Le(t);let u=()=>{};const c=()=>
154{if(!i)return;const d=i.getElementById(s)||i.createElement("style");d.isConnected||(d.id=s,e.media&&(d.media=e.media),i.head.appendChild(d)),!n.value&&(u=st(o,f=>{d.textContent=f},{immediate:!0}),n.value=!0)},l=()=>{!i||!n.value||(u(),i.head.removeChild(i.getElementById(s)),n.value=!1)};return r&&!a&&V0(c),a||Vr(l),{id:s,css:o,unload:l,load:c,isLoaded:qs(n)}}const H$={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]},wce=Object.assign({},{linear:aL},H$);function z$([t,e,n,i]){const r=(l,d)=>1-3*d+3*l,a=(l,d)=>3*d-6*l,s=l=>3*l,o=(l,d,f)=>((r(d,f)*l+a(d,f))*l+s(d))*l,u=(l,d,f)=>3*r(d,f)*l*l+2*a(d,f)*l+s(d),c=l=>{let d=l;for(let f=0;f<4;++f){const h=u(d,t,n);if(h===0)return d;const g=o(d,t,n)-l;d-=g/h}return d};return l=>t===e&&n===i?l:o(c(l),e,i)}function MA(t,e,n){return t+n*(e-t)}function zg(t){return(typeof t=="number"?[t]:t)||[]}function $$(t,e,n,i={}){var r,a;const s=Ot(e),o=Ot(n),u=zg(s),c=zg(o),l=(r=Ot(i.duration))!=null?r:1e3,d=Date.now(),f=Date.now()+l,h=typeof i.transition=="function"?i.transition:(a=Ot(i.transition))!=null?a:aL,g=typeof h=="function"?h:z$(h);return new Promise(v=>{t.value=s;const m=()=>{var p;if((p=i.abort)!=null&&p.call(i)){v();return}const y=Date.now(),_=g((y-d)/l),b=zg(t.value).map((x,w)=>MA(u[w],c[w],_));Array.isArray(t.value)?t.value=b.map((x,w)=>{var D,O;return MA((D=u[w])!=null?D:0,(O=c[w])!=null?O:0,_)}):typeof t.value=="number"&&(t.value=b[0]),y<f?requestAnimationFrame(m):(t.value=o,v())};m()})}function Mce(t,e={}){let n=0;const i=()=>{const a=Ot(t);return typeof a=="number"?a:a.map(Ot)},r=Le(i());return st(i,async a=>{var s,o;if(Ot(e.disabled))return;const u=++n;if(e.delay&&await s1(Ot(e.delay)),u!==n)return;const c=Array.isArray(a)?a.map(Ot):Ot(a);(s=e.onStarted)==null||s.call(e),await $$(r,r.value,c,{...e,abort:()=>{var l;return u!==n||((l=e.abort)==null?void 0:l.call(e))}}),(o=e.onFinished)==null||o.call(e)},{deep:!0}),st(()=>Ot(e.disabled),a=>{a&&(n++,r.value=i())}),Vr(()=>{n++}),Ve(()=>Ot(e.disabled)?i():r.value)}function W$(t="history",e={}){const{initialValue:n={},removeNullishValues:i=!0,removeFalsyValues:r=!1,write:a=!0,window:s=vi}=e;if(!s)return In(n);const o=In({});function u(){if(t==="history")return s.location.search||"";if(t==="hash"){const p=s.location.hash||"",y=p.indexOf("?");return y>0?p.slice(y):""}else return(s.location.hash||"").replace(/^#/,"")}function c(p){const y=p.toString();if(t==="history")return`${y?`?${y}`:""}${s.location.hash||""}`;if(t==="hash-params")return`${s.location.search||""}${y?`#${y}`:""}`;const _=s.location.hash||"#",b=_.indexOf("?");return b>0?`${_.slice(0,b)}${y?`?${y}`:""}`:`${_}${y?`?${y}`:""}`}function l(){return new URLSearchParams(u())}function d(p){const y=new Set(Object.keys(o));for(const _ of p.keys()){const b=p.getAll(_);o[_]=b.length>1?b:p.get(_)||"",y.delete(_)}Array.from(y).forEach(_=>delete o[_])}const{pause:f,resume:h}=oL(o,()=>{const p=new URLSearchParams("");Object.keys(o).forEach(y=>{const _=o[y];Array.isArray(_)?_.forEach(b=>p.append(y,b)):i&&_==null||r&&!_?p.delete(y):p.set(y,_)}),g(p)},{deep:!0});function g(p,y){f(),y&&d(p),s.history.replaceState(s.history.state,s.document.title,s.location.pathname+c(p)),h()}function v(){a&&g(l(),!0)}Bt(s,"popstate",v,!1),t!=="history"&&Bt(s,"hashchange",v,!1);const m=l();return m.keys().next().value?d(m):Object.assign(o,n),o}function G$(t={}){const{window:e=vi}=t;if(!e)return Le(!1);const n=Le(e.document.hasFocus());return Bt(e,"blur",()=>{n.value=!1}),Bt(e,"focus",()=>{n.value=!0}),n}function Cce(t={}){const{window:e=vi,behavior:n="auto"}=t;if(!e)return{x:Le(0),y:Le(0)};const i=Le(e.scrollX),r=Le(e.scrollY),a=Ve({get(){return i.value},set(o){scrollTo({left:o,behavior:n})}}),s=Ve({get(){return r.value},set(o){scrollTo({top:o,behavior:n})}});return Bt(e,"scroll",()=>{i.value=e.scrollX,r.value=e.scrollY},{capture:!1,passive:!0}),{x:a,y:s}}const fL=1/60*1e3,q$=typeof performance<"u"?()=>performance.now():()=>Date.now(),hL=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(q$()),fL);function j$(t){let e=[],n=[],i=0,r=!1,a=!1;const s=new WeakSet,o={schedule:(u,c=!1,l=!1)=>{const d=l&&r,f=d?e:n;return c&&s.add(u),f.indexOf(u)===-1&&(f.push(u),d&&r&&(i=e.length)),u},cancel:u=>{const c=n.indexOf(u);c!==-1&&n.splice(c,1),s.delete(u)},process:u=>{if(r){a=!0;return}if(r=!0,[e,n]=[n,e],n.length=0,i=e.length,i)for(let c=0;c<i;c++){const l=e[c];l(u),s.has(l)&&(o.schedule(l),t())}r=!1,a&&(a=!1,o.process(u))}};return o}const X$=40;let u1=!0,Od=!1,l1=!1;const vl={delta:0,timestamp:0},hf=["read","update","preRender","render","postRender"],H0=hf.reduce((t,e)=>(t[e]=j$(()=>Od=!0),t),{}),c1=hf.reduce((t,e)=>{const n=H0[e];return t[e]=(i,r=!1,a=!1)=>(Od||Z$(),n.schedule(i,r,a)),t},{}),Y$=hf.reduce((t,e)=>(t[e]=H0[e].cancel,t),{});hf.reduce((t,e)=>(t[e]=()=>H0[e].process(vl),t),{});const K$=t=>H0[t].process(vl),pL=t=>{Od=!1,vl.delta=u1?fL:Math.max(Math.min(t-vl.timestamp,X$),1),vl.timestamp=t,l1=!0,hf.forEach(K$),l1=!1,Od&&(u1=!1,hL(pL))},Z$=()=>{Od=!0,u1=!0,l1||hL(pL)},mL=()=>vl;function gL(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}var CA=function(){};const d1=(t,e,n)=>Math.min(Math.max(n,t),e),$g=.001,J$=.01,Q$=10,eW=.05,tW=1;function nW({duration:t=800,bounce:e=.25,velocity:n=0,mass:i=1}){let r,a,s=1-e;s=d1(eW,tW,s),t=d1(J$,Q$,t/1e3),s<1?(r=c=>{const l=c*s,d=l*t,f=l-n,h=f1(c,s),g=Math.exp(-d);return $g-f/h*g},a=c=>{const d=c*s*t,f=d*n+n,h=Math.pow(s,2)*Math.pow(c,2)*t,g=Math.exp(-d),v=f1(Math.pow(c,2),s);return(-r(c)+$g>0?-1:1)*((f-h)*g)/v}):(r=c=>{const l=Math.exp(-c*t),d=(c-n)*t+1;return-$g+l*d},a=c=>{const l=Math.exp(-c*t),d=(n-c)*(t*t);return l*d});const o=5/t,u=rW(r,a,o);if(t=t*1e3,isNaN(u))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(u,2)*i;return{stiffness:c,damping:s*2*Math.sqrt(i*c),duration:t}}}const iW=12;function rW(t,e,n){let i=n;for(let r=1;r<iW;r++)i=i-t(i)/e(i);return i}function f1(t,e){return t*Math.sqrt(1-e*e)}const aW=["duration","bounce"],sW=["stiffness","damping","mass"];function DA(t,e){return e.some(n=>t[n]!==void 0)}function oW(t){let e=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!DA(t,sW)&&DA(t,aW)){const n=nW(t);e=Object.assign(Object.assign(Object.assign({},e),n),{velocity:0,mass:1}),e.isResolvedFromDuration=!0}return e}function Nb(t){var{from:e=0,to:n=1,restSpeed:i=2,restDelta:r}=t,a=gL(t,["from","to","restSpeed","restDelta"]);const s={done:!1,value:e};let{stiffness:o,damping:u,mass:c,velocity:l,duration:d,isResolvedFromDuration:f}=oW(a),h=LA,g=LA;function v(){const m=l?-(l/1e3):0,p=n-e,y=u/(2*Math.sqrt(o*c)),_=Math.sqrt(o/c)/1e3;if(r===void 0&&(r=Math.min(Math.abs(n-e)/100,.4)),y<1){const b=f1(_,y);h=x=>{const w=Math.exp(-y*_*x);return n-w*((m+y*_*p)/b*Math.sin(b*x)+p*Math.cos(b*x))},g=x=>{const w=Math.exp(-y*_*x);return y*_*w*(Math.sin(b*x)*(m+y*_*p)/b+p*Math.cos(b*x))-w*(Math.cos(b*x)*(m+y*_*p)-b*p*Math.sin(b*x))}}else if(y===1)h=b=>n-Math.exp(-_*b)*(p+(m+_*p)*b);else{const b=_*Math.sqrt(y*y-1);h=x=>{const w=Math.exp(-y*_*x),D=Math.min(b*x,300);return n-w*((m+y*_*p)*Math.sinh(D)+b*p*Math.cosh(D))/b}}}return v(),{next:m=>{const p=h(m);if(f)s.done=m>=d;else{const y=g(m)*1e3,_=Math.abs(y)<=i,b=Math.abs(n-p)<=r;s.done=_&&b}return s.value=s.done?n:p,s},flipTarget:()=>{l=-l,[e,n]=[n,e],v()}}}Nb.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const LA=t=>0,vL=(t,e,n)=>{const i=e-t;return i===0?1:(n-t)/i},Ub=(t,e,n)=>-n*t+n*e+t,_L=(t,e)=>n=>Math.max(Math.min(n,e),t),od=t=>
154t%1?Number(t.toFixed(5)):t,Nd=/(-)?([\d]*\.?[\d])+/g,h1=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,uW=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function pf(t){return typeof t=="string"}const mf={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ud=Object.assign(Object.assign({},mf),{transform:_L(0,1)}),nh=Object.assign(Object.assign({},mf),{default:1}),Fb=t=>({test:e=>pf(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),fo=Fb("deg"),ld=Fb("%"),xt=Fb("px"),RA=Object.assign(Object.assign({},ld),{parse:t=>ld.parse(t)/100,transform:t=>ld.transform(t*100)}),Bb=(t,e)=>n=>!!(pf(n)&&uW.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),bL=(t,e,n)=>i=>{if(!pf(i))return i;const[r,a,s,o]=i.match(Nd);return{[t]:parseFloat(r),[e]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},Fo={test:Bb("hsl","hue"),parse:bL("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:i=1})=>"hsla("+Math.round(t)+", "+ld.transform(od(e))+", "+ld.transform(od(n))+", "+od(ud.transform(i))+")"},lW=_L(0,255),Wg=Object.assign(Object.assign({},mf),{transform:t=>Math.round(lW(t))}),Ns={test:Bb("rgb","red"),parse:bL("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:i=1})=>"rgba("+Wg.transform(t)+", "+Wg.transform(e)+", "+Wg.transform(n)+", "+od(ud.transform(i))+")"};function cW(t){let e="",n="",i="",r="";return t.length>5?(e=t.substr(1,2),n=t.substr(3,2),i=t.substr(5,2),r=t.substr(7,2)):(e=t.substr(1,1),n=t.substr(2,1),i=t.substr(3,1),r=t.substr(4,1),e+=e,n+=n,i+=i,r+=r),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const p1={test:Bb("#"),parse:cW,transform:Ns.transform},Oi={test:t=>Ns.test(t)||p1.test(t)||Fo.test(t),parse:t=>Ns.test(t)?Ns.parse(t):Fo.test(t)?Fo.parse(t):p1.parse(t),transform:t=>pf(t)?t:t.hasOwnProperty("red")?Ns.transform(t):Fo.transform(t)},yL="${c}",EL="${n}";function dW(t){var e,n,i,r;return isNaN(t)&&pf(t)&&((n=(e=t.match(Nd))===null||e===void 0?void 0:e.length)!==null&&n!==void 0?n:0)+((r=(i=t.match(h1))===null||i===void 0?void 0:i.length)!==null&&r!==void 0?r:0)>0}function xL(t){typeof t=="number"&&(t=`${t}`);const e=[];let n=0;const i=t.match(h1);i&&(n=i.length,t=t.replace(h1,yL),e.push(...i.map(Oi.parse)));const r=t.match(Nd);return r&&(t=t.replace(Nd,EL),e.push(...r.map(mf.parse))),{values:e,numColors:n,tokenised:t}}function AL(t){return xL(t).values}function SL(t){const{values:e,numColors:n,tokenised:i}=xL(t),r=e.length;return a=>{let s=i;for(let o=0;o<r;o++)s=s.replace(o<n?yL:EL,o<n?Oi.transform(a[o]):od(a[o]));return s}}const fW=t=>typeof t=="number"?0:t;function hW(t){const e=AL(t);return SL(t)(e.map(fW))}const gf={test:dW,parse:AL,createTransformer:SL,getAnimatableNone:hW},pW=new Set(["brightness","contrast","saturate","opacity"]);function mW(t){let[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[i]=n.match(Nd)||[];if(!i)return t;const r=n.replace(i,"");let a=pW.has(e)?1:0;return i!==n&&(a*=100),e+"("+a+r+")"}const gW=/([a-z-]*)\(.*?\)/g,m1=Object.assign(Object.assign({},gf),{getAnimatableNone:t=>{const e=t.match(gW);return e?e.map(mW).join(" "):t}});function Gg(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function IA({hue:t,saturation:e,lightness:n,alpha:i}){t/=360,e/=100,n/=100;let r=0,a=0,s=0;if(!e)r=a=s=n;else{const o=n<.5?n*(1+e):n+e-n*e,u=2*n-o;r=Gg(u,o,t+1/3),a=Gg(u,o,t),s=Gg(u,o,t-1/3)}return{red:Math.round(r*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:i}}const vW=(t,e,n)=>{const i=t*t,r=e*e;return Math.sqrt(Math.max(0,n*(r-i)+i))},_W=[p1,Ns,Fo],PA=t=>_W.find(e=>e.test(t)),TL=(t,e)=>{let n=PA(t),i=PA(e),r=n.parse(t),a=i.parse(e);n===Fo&&(r=IA(r),n=Ns),i===Fo&&(a=IA(a),i=Ns);const s=Object.assign({},r);return o=>{for(const u in s)u!=="alpha"&&(s[u]=vW(r[u],a[u],o));return s.alpha=Ub(r.alpha,a.alpha,o),n.transform(s)}},bW=t=>typeof t=="number",yW=(t,e)=>n=>e(t(n)),wL=(...t)=>t.reduce(yW);function ML(t,e){return bW(t)?n=>Ub(t,e,n):Oi.test(t)?TL(t,e):DL(t,e)}const CL=(t,e)=>{const n=[...t],i=n.length,r=t.map((a,s)=>ML(a,e[s]));return a=>{for(let s=0;s<i;s++)n[s]=r[s](a);return n}},EW=(t,e)=>{const n=Object.assign(Object.assign({},t),e),i={};for(const r in n)t[r]!==void 0&&e[r]!==void 0&&(i[r]=ML(t[r],e[r]));return r=>{for(const a in i)n[a]=i[a](r);return n}};function kA(t){const e=gf.parse(t),n=e.length;let i=0,r=0,a=0;for(let s=0;s<n;s++)i||typeof e[s]=="number"?i++:e[s].hue!==void 0?a++:r++;return{parsed:e,numNumbers:i,numRGB:r,numHSL:a}}const DL=(t,e)=>{const n=gf.createTransformer(e),i=kA(t),r=kA(e);return i.numHSL===r.numHSL&&i.numRGB===r.numRGB&&i.numNumbers>=r.numNumbers?wL(CL(i.parsed,r.parsed),n):s=>`${s>0?e:t}`},xW=(t,e)=>n=>Ub(t,e,n);function AW(t){if(typeof t=="number")return xW;if(typeof t=="string")return Oi.test(t)?TL:DL;if(Array.isArray(t))return CL;if(typeof t=="object")return EW}function SW(t,e,n){const i=[],r=n||AW(t[0]),a=t.length-1;for(let s=0;s<a;
154s++){let o=r(t[s],t[s+1]);if(e){const u=Array.isArray(e)?e[s]:e;o=wL(u,o)}i.push(o)}return i}function TW([t,e],[n]){return i=>n(vL(t,e,i))}function wW(t,e){const n=t.length,i=n-1;return r=>{let a=0,s=!1;if(r<=t[0]?s=!0:r>=t[i]&&(a=i-1,s=!0),!s){let u=1;for(;u<n&&!(t[u]>r||u===i);u++);a=u-1}const o=vL(t[a],t[a+1],r);return e[a](o)}}function LL(t,e,{clamp:n=!0,ease:i,mixer:r}={}){const a=t.length;CA(a===e.length),CA(!i||!Array.isArray(i)||i.length===a-1),t[0]>t[a-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const s=SW(e,i,r),o=a===2?TW(t,s):wW(t,s);return n?u=>o(d1(t[0],t[a-1],u)):o}const z0=t=>e=>1-t(1-e),Vb=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,MW=t=>e=>Math.pow(e,t),RL=t=>e=>e*e*((t+1)*e-t),CW=t=>{const e=RL(t);return n=>(n*=2)<1?.5*e(n):.5*(2-Math.pow(2,-10*(n-1)))},IL=1.525,DW=4/11,LW=8/11,RW=9/10,PL=t=>t,Hb=MW(2),IW=z0(Hb),kL=Vb(Hb),OL=t=>1-Math.sin(Math.acos(t)),NL=z0(OL),PW=Vb(NL),zb=RL(IL),kW=z0(zb),OW=Vb(zb),NW=CW(IL),UW=4356/361,FW=35442/1805,BW=16061/1805,Tm=t=>{if(t===1||t===0)return t;const e=t*t;return t<DW?7.5625*e:t<LW?9.075*e-9.9*t+3.4:t<RW?UW*e-FW*t+BW:10.8*t*t-20.52*t+10.72},VW=z0(Tm),HW=t=>t<.5?.5*(1-Tm(1-t*2)):.5*Tm(t*2-1)+.5;function zW(t,e){return t.map(()=>e||kL).splice(0,t.length-1)}function $W(t){const e=t.length;return t.map((n,i)=>i!==0?i/(e-1):0)}function WW(t,e){return t.map(n=>n*e)}function sp({from:t=0,to:e=1,ease:n,offset:i,duration:r=300}){const a={done:!1,value:t},s=Array.isArray(e)?e:[t,e],o=WW(i&&i.length===s.length?i:$W(s),r);function u(){return LL(o,s,{ease:Array.isArray(n)?n:zW(s,n)})}let c=u();return{next:l=>(a.value=c(l),a.done=l>=r,a),flipTarget:()=>{s.reverse(),c=u()}}}function GW({velocity:t=0,from:e=0,power:n=.8,timeConstant:i=350,restDelta:r=.5,modifyTarget:a}){const s={done:!1,value:e};let o=n*t;const u=e+o,c=a===void 0?u:a(u);return c!==u&&(o=c-e),{next:l=>{const d=-o*Math.exp(-l/i);return s.done=!(d>r||d<-r),s.value=s.done?c:c+d,s},flipTarget:()=>{}}}const OA={keyframes:sp,spring:Nb,decay:GW};function qW(t){if(Array.isArray(t.to))return sp;if(OA[t.type])return OA[t.type];const e=new Set(Object.keys(t));return e.has("ease")||e.has("duration")&&!e.has("dampingRatio")?sp:e.has("dampingRatio")||e.has("stiffness")||e.has("mass")||e.has("damping")||e.has("restSpeed")||e.has("restDelta")?Nb:sp}function UL(t,e,n=0){return t-e-n}function jW(t,e,n=0,i=!0){return i?UL(e+-t,e,n):e-(t-e)+n}function XW(t,e,n,i){return i?t>=e+n:t<=-n}const YW=t=>{const e=({delta:n})=>t(n);return{start:()=>c1.update(e,!0),stop:()=>Y$.update(e)}};function FL(t){var e,n,{from:i,autoplay:r=!0,driver:a=YW,elapsed:s=0,repeat:o=0,repeatType:u="loop",repeatDelay:c=0,onPlay:l,onStop:d,onComplete:f,onRepeat:h,onUpdate:g}=t,v=gL(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:m}=v,p,y=0,_=v.duration,b,x=!1,w=!0,D;const O=qW(v);!((n=(e=O).needsInterpolation)===null||n===void 0)&&n.call(e,i,m)&&(D=LL([0,100],[i,m],{clamp:!1}),i=0,m=100);const M=O(Object.assign(Object.assign({},v),{from:i,to:m}));function S(){y++,u==="reverse"?(w=y%2===0,s=jW(s,_,c,w)):(s=UL(s,_,c),u==="mirror"&&M.flipTarget()),x=!1,h&&h()}function B(){p.stop(),f&&f()}function V(Q){if(w||(Q=-Q),s+=Q,!x){const Z=M.next(Math.max(0,s));b=Z.value,D&&(b=D(b)),x=w?Z.done:s<=0}g?.(b),x&&(y===0&&(_??(_=s)),y<o?XW(s,_,c,w)&&S():B())}function z(){l?.(),p=a(V),p.start()}return r&&z(),{stop:()=>{d?.(),p.stop()}}}function BL(t,e){return e?t*(1e3/e):0}function KW({from:t=0,velocity:e=0,min:n,max:i,power:r=.8,timeConstant:a=750,bounceStiffness:s=500,bounceDamping:o=10,restDelta:u=1,modifyTarget:c,driver:l,onUpdate:d,onComplete:f,onStop:h}){let g;function v(_){return n!==void 0&&_<n||i!==void 0&&_>i}function m(_){return n===void 0?i:i===void 0||Math.abs(n-_)<Math.abs(i-_)?n:i}function p(_){g?.stop(),g=FL(Object.assign(Object.assign({},_),{driver:l,onUpdate:b=>{var x;d?.(b),(x=_.onUpdate)===null||x===void 0||x.call(_,b)},onComplete:f,onStop:h}))}function y(_){p(Object.assign({type:"spring",stiffness:s,damping:o,restDelta:u},_))}if(v(t))y({from:t,velocity:e,to:m(t)});else{let _=r*e+t;typeof c<"u"&&(_=c(_));const b=m(_),x=b===n?-1:1;let w,D;const O=M=>{w=D,D=M,e=BL(M-w,mL().delta),(x===1&&M>b||x===-1&&M<b)&&y({from:M,to:b,velocity:e})};p({type:"decay",from:t,velocity:e,timeConstant:a,power:r,restDelta:u,modifyTarget:c,onUpdate:v(_)?O:void 0})}return{stop:()=>g?.stop()}}const VL=(t,e)=>1-3*e+3*t,HL=(t,e)=>3*e-6*t,zL=t=>3*t,wm=(t,e,n)=>((VL(e,n)*t+HL(e,n))*t+zL(e))*t,$L=(t,e,n)=>3*VL(e,n)*t*t+2*HL(e,n)*t+zL(e),ZW=1e-7,JW=10;function QW(t,e,n,i,r){let a,s,o=0;do s=e+(n-e)/2,a=wm(s,i,r)-t,a>0?n=s:e=s;while(Math.abs(a)>ZW&&++o<JW);return s}const eG=8,tG=.001;function nG(t,e,n,i){for(let r=0;r<eG;++r){const a=$L(e,n,i);if(a===0)return e;const s=wm(e,n,i)-t;e-=s/a}return e}const op=11,ih=1/(op-1);function iG(t,e,n,i){if(t===e&&n===i)return PL;const r=new Float32Array(op);for(let s=0;s<op;++s)r[s]=wm(s*ih,t,n);function a(s){let o=0,u=1;const c=op-1;for(;u!==c&&r[u]<=s;++u)o+=ih;--u;const l=(s-r[u])/(r[u+1]-r[u]),d=o+l*ih,f=$L(d,t,n);return f>=tG?nG(s,d,t,n):f===0?d:QW(s,o,o+ih,t,n)}return s=>s===0||s===1?s:wm(a(s),e,i)}const up={};var rG=Object.defineProperty,aG=(t,e,n)=>e in t?rG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,sG=(t,e,n)=>(aG(t,e+"",n),n);class oG{constructor(){sG(this,"subscriptions",new Set)}add(e){return this.subscriptions.add(e),()=>this.subscriptions.delete(e)}notify(e,n,i){if(this.subscriptions.size)for(const r of this.subscriptions)r(e,n,i)}clear(){this.subscriptions.clear()}}var uG=Object.defineProperty,lG=(t,e,n)=>e in t?uG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Wr=(t,e,n)=>(lG(t,typeof e!="symbol"?e+"":e,n),n);function NA(t){return!Number.isNaN(Number.parseFloat(t))}class cG{constructor(e){Wr(this,"current"),Wr(this,"prev"),Wr(this,"timeDelta",0),Wr(this,"lastUpdated",0),Wr(this,"updateSubscribers",new oG),Wr(this,"stopAnimation"),Wr(this,"canTrackVelocity",!1),Wr(this,"updateAndNotify",n=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:r}=mL();this.lastUpdated!==r&&(this.timeDelta=i,this.lastUpdated=r),c1.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)}),Wr(this,"scheduleVelocityCheck",()=>c1.postRender(this.velocityCheck)),Wr(this,"velocityCheck",({timestamp:n})=>{this.canTrackVelocity||(this.canTrackVelocity=NA(this.current)),n!==this.lastUpdated&&(this.prev=this.current)}),this.prev=this.current=e,this.canTrackVelocity=NA(this.current)}onChange(e){return this.updateSubscribers.add(e)}clearListeners(){this.updateSubscribers.clear()}set(e){this.updateAndNotify(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?BL(Number.parseFloat(this.current)-Number.parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(n=>{const{stop:i}=e(n);this.stopAnimation=i}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function dG(t){return new cG(t)}const{isArray:fG}=Array;function hG(){const t=Le({}),e=i=>{const r=a=>{t.value[a]&&(t.value[a].stop(),t.value[a].destroy(),delete t.value[a])};
154i?fG(i)?i.forEach(r):r(i):Object.keys(t.value).forEach(r)},n=(i,r,a)=>{if(t.value[i])return t.value[i];const s=dG(r);return s.onChange(o=>a[i]=o),t.value[i]=s,s};return x$(e),{motionValues:t,get:n,stop:e}}function pG(t){return Array.isArray(t)}function ho(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function qg(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function mG(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function jg(){return{type:"keyframes",ease:"linear",duration:300}}function gG(t){return{type:"keyframes",duration:800,values:t}}const UA={default:mG,x:ho,y:ho,z:ho,rotate:ho,rotateX:ho,rotateY:ho,rotateZ:ho,scaleX:qg,scaleY:qg,scale:qg,backgroundColor:jg,color:jg,opacity:jg};function WL(t,e){let n;return pG(e)?n=gG:n=UA[t]||UA.default,{to:e,...n(e)}}const FA={...mf,transform:Math.round},GL={color:Oi,backgroundColor:Oi,outlineColor:Oi,fill:Oi,stroke:Oi,borderColor:Oi,borderTopColor:Oi,borderRightColor:Oi,borderBottomColor:Oi,borderLeftColor:Oi,borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,size:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,rotate:fo,rotateX:fo,rotateY:fo,rotateZ:fo,scale:nh,scaleX:nh,scaleY:nh,scaleZ:nh,skew:fo,skewX:fo,skewY:fo,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:ud,originX:RA,originY:RA,originZ:xt,zIndex:FA,filter:m1,WebkitFilter:m1,fillOpacity:ud,strokeOpacity:ud,numOctaves:FA},$b=t=>GL[t];function g1(t,e){return e&&typeof t=="number"&&e.transform?e.transform(t):t}function vG(t,e){let n=$b(t);return n!==m1&&(n=gf),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const _G={linear:PL,easeIn:Hb,easeInOut:kL,easeOut:IW,circIn:OL,circInOut:PW,circOut:NL,backIn:zb,backInOut:OW,backOut:kW,anticipate:NW,bounceIn:VW,bounceInOut:HW,bounceOut:Tm};function BA(t){if(Array.isArray(t)){const[e,n,i,r]=t;return iG(e,n,i,r)}else if(typeof t=="string")return _G[t];return t}function bG(t){return Array.isArray(t)&&typeof t[0]!="number"}function VA(t,e){return t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&gf.test(e)&&!e.startsWith("url("))}function yG(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function EG({ease:t,times:e,delay:n,...i}){const r={...i};return e&&(r.offset=e),t&&(r.ease=bG(t)?t.map(BA):BA(t)),n&&(r.elapsed=-n),r}function xG(t,e,n){return Array.isArray(e.to)&&(t.duration||(t.duration=800)),yG(e),AG(t)||(t={...t,...WL(n,e.to)}),{...e,...EG(t)}}function AG({delay:t,repeat:e,repeatType:n,repeatDelay:i,from:r,...a}){return!!Object.keys(a).length}function SG(t,e){return t[e]||t.default||t}function TG(t,e,n,i,r){const a=SG(i,t);let s=a.from===null||a.from===void 0?e.get():a.from;const o=VA(t,n);s==="none"&&o&&typeof n=="string"&&(s=vG(t,n));const u=VA(t,s);function c(d){const f={from:s,to:n,velocity:i.velocity?i.velocity:e.getVelocity(),onUpdate:h=>e.set(h)};return a.type==="inertia"||a.type==="decay"?KW({...f,...a}):FL({...xG(a,f,t),onUpdate:h=>{f.onUpdate(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r&&r(),d&&d()}})}function l(d){return e.set(n),r&&r(),d&&d(),{stop:()=>{}}}return!u||!o||a.type===!1?l:c}function wG(){const{motionValues:t,stop:e,get:n}=hG();return{motionValues:t,stop:e,push:(r,a,s,o={},u)=>{const c=s[r],l=n(r,c,s);if(o&&o.immediate){l.set(a);return}const d=TG(r,l,a,o,u);l.start(d)}}}function MG(t,e={},{motionValues:n,push:i,stop:r}=wG()){const a=ze(e),s=Le(!1);st(n,d=>{s.value=Object.values(d).filter(f=>f.isAnimating()).length>0},{immediate:!0,deep:!0});const o=d=>{if(!a||!a[d])throw new Error(`The variant ${d} does not exist.`);return a[d]},u=d=>{typeof d=="string"&&(d=o(d));const f=Object.entries(d).map(([g,v])=>{if(g!=="transition")return new Promise(m=>i(g,v,t,d.transition||WL(g,d[g]),m))}
154).filter(Boolean);async function h(){await Promise.all(f),d.transition?.onComplete?.()}return Promise.all([h()])};return{isAnimating:s,apply:u,set:d=>{const f=kd(d)?d:o(d);Object.entries(f).forEach(([h,g])=>{h!=="transition"&&i(h,g,t,{immediate:!0})})},leave:async d=>{let f;if(a&&(a.leave&&(f=a.leave),!a.leave&&a.initial&&(f=a.initial)),!f){d();return}await u(f),d()},stop:r}}const Wb=typeof window<"u",CG=()=>Wb&&(window.onpointerdown===null||void 0),DG=()=>Wb&&(window.ontouchstart===null||void 0),LG=()=>Wb&&(window.onmousedown===null||void 0);function RG({target:t,state:e,variants:n,apply:i}){const r=ze(n),a=Le(!1),s=Le(!1),o=Le(!1),u=Ve(()=>{let l=[...Object.keys(e.value||{})];return r&&(r.hovered&&(l=[...l,...Object.keys(r.hovered)]),r.tapped&&(l=[...l,...Object.keys(r.tapped)]),r.focused&&(l=[...l,...Object.keys(r.focused)])),l}),c=Ve(()=>{const l={};Object.assign(l,e.value),a.value&&r.hovered&&Object.assign(l,r.hovered),s.value&&r.tapped&&Object.assign(l,r.tapped),o.value&&r.focused&&Object.assign(l,r.focused);for(const d in l)u.value.includes(d)||delete l[d];return l});r.hovered&&(Bt(t,"mouseenter",()=>a.value=!0),Bt(t,"mouseleave",()=>{a.value=!1,s.value=!1})),r.tapped&&(LG()&&(Bt(t,"mousedown",()=>s.value=!0),Bt(t,"mouseup",()=>s.value=!1)),CG()&&(Bt(t,"pointerdown",()=>s.value=!0),Bt(t,"pointerup",()=>s.value=!1)),DG()&&(Bt(t,"touchstart",()=>s.value=!0),Bt(t,"touchend",()=>s.value=!1))),r.focused&&(Bt(t,"focus",()=>o.value=!0),Bt(t,"blur",()=>o.value=!1)),st([a,s,o],()=>{i(c.value)})}function IG({set:t,target:e,variants:n,variant:i}){const r=ze(n);st(()=>e,()=>{r&&(r.initial&&(t("initial"),i.value="initial"),r.enter&&(i.value="enter"))},{immediate:!0,flush:"pre"})}function PG({state:t,apply:e}){st(t,n=>{n&&e(n)},{immediate:!0})}function qL({target:t,variants:e,variant:n}){const i=ze(e);i&&(i.visible||i.visibleOnce)&&dL(t,([{isIntersecting:r}])=>{i.visible?r?n.value="visible":n.value="initial":i.visibleOnce&&(r&&n.value!=="visibleOnce"?n.value="visibleOnce":n.value||(n.value="initial"))})}function kG(t,e={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){e.lifeCycleHooks&&IG(t),e.syncVariants&&PG(t),e.visibilityHooks&&qL(t),e.eventListeners&&RG(t)}function jL(t={}){const e=In({...t}),n=Le({});return st(e,()=>{const i={};for(const[r,a]of Object.entries(e)){const s=$b(r),o=g1(a,s);i[r]=o}n.value=i},{immediate:!0,deep:!0}),{state:e,style:n}}function Gb(t,e){st(()=>Hn(t),n=>{n&&e(n)},{immediate:!0})}const OG={x:"translateX",y:"translateY",z:"translateZ"};function XL(t={},e=!0){const n=In({...t}),i=Le("");return st(n,r=>{let a="",s=!1;if(e&&(r.x||r.y||r.z)){const o=[r.x||0,r.y||0,r.z||0].map(u=>g1(u,xt)).join(",");a+=`translate3d(${o}) `,s=!0}for(const[o,u]of Object.entries(r)){if(e&&(o==="x"||o==="y"||o==="z"))continue;const c=$b(o),l=g1(u,c);a+=`${OG[o]||o}(${l}) `}e&&!s&&(a+="translateZ(0px) "),i.value=a.trim()},{immediate:!0,deep:!0}),{state:n,transform:i}}const NG=["","X","Y","Z"],UG=["perspective","translate","scale","rotate","skew"],YL=["transformPerspective","x","y","z"];UG.forEach(t=>{NG.forEach(e=>{const n=t+e;YL.push(n)})});const FG=new Set(YL);function qb(t){return FG.has(t)}const BG=new Set(["originX","originY","originZ"]);function KL(t){return BG.has(t)}function VG(t){const e={},n={};return Object.entries(t).forEach(([i,r])=>{qb(i)||KL(i)?e[i]=r:n[i]=r}),{transform:e,style:n}}function $0(t){const{transform:e,style:n}=VG(t),{transform:i}=XL(e),{style:r}=jL(n);return i.value&&(r.value.transform=i.value),r.value}function HG(t,e){let n,i;const{state:r,style:a}=jL();return Gb(t,s=>{i=s;for(const o of Object.keys(GL))s.style[o]===null||s.style[o]===""||qb(o)||KL(o)||(r[o]=s.style[o]);n&&Object.entries(n).forEach(([o,u])=>s.style[o]=u),e&&e(r)}),st(a,s=>{if(!i){n=s;return}for(const o in s)i.style[o]=s[o]},{immediate:!0}),{style:r}}function zG(t){const e=t.trim().split(/\) |\)/);if(e.length===1)return{};const n=i=>i.endsWith("px")||i.endsWith("deg")?Number.parseFloat(i):Number.isNaN(Number(i))?Number(i):i;return e.reduce((i,r)=>{if(!r)return i;const[a,s]=r.split("("),u=s.split(",").map(l=>n(l.endsWith(")")?l.replace(")",""):l.trim())),c=u.length===1?u[0]:u;
154return{...i,[a]:c}},{})}function $G(t,e){Object.entries(zG(e)).forEach(([n,i])=>{const r=["x","y","z"];if(n==="translate3d"){if(i===0){r.forEach(a=>t[a]=0);return}i.forEach((a,s)=>t[r[s]]=a);return}if(i=Number.parseFloat(`${i}`),n==="translateX"){t.x=i;return}if(n==="translateY"){t.y=i;return}if(n==="translateZ"){t.z=i;return}t[n]=i})}function WG(t,e){let n,i;const{state:r,transform:a}=XL();return Gb(t,s=>{i=s,s.style.transform&&$G(r,s.style.transform),n&&(s.style.transform=n),e&&e(r)}),st(a,s=>{if(!i){n=s;return}i.style.transform=s},{immediate:!0}),{transform:r}}function GG(t){return Object.entries(t)}function qG(t,e){const n=In({}),i=s=>Object.entries(s).forEach(([o,u])=>n[o]=u),{style:r}=HG(t,i),{transform:a}=WG(t,i);return st(n,s=>{GG(s).forEach(([o,u])=>{const c=qb(o)?a:r;c[o]&&c[o]===u||(c[o]=u)})},{immediate:!0,deep:!0}),Gb(t,()=>e),{motionProperties:n,style:r,transform:a}}function jG(t={}){const e=ze(t),n=Le();return{state:Ve(()=>{if(n.value)return e[n.value]}),variant:n}}function ZL(t,e={},n){const{motionProperties:i}=qG(t),{variant:r,state:a}=jG(e),s=MG(i,e),o={target:t,variant:r,variants:e,state:a,motionProperties:i,...s};return kG(o,n),o}const JL=["delay","duration"],XG=["initial","enter","leave","visible","visible-once","visibleOnce","hovered","tapped","focused",...JL];function YG(t){return JL.includes(t)}function KG(t,e){const n=t.props?t.props:t.data&&t.data.attrs?t.data.attrs:{};if(n){n.variants&&kd(n.variants)&&(e.value={...e.value,...n.variants});for(let i of XG)if(!(!n||!n[i])){if(YG(i)&&typeof n[i]=="number"){for(const r of["enter","visible","visibleOnce"]){const a=e.value[r];a!=null&&(a.transition??(a.transition={}),a.transition[i]=n[i])}continue}if(kd(n[i])){const r=n[i];i==="visible-once"&&(i="visibleOnce"),e.value[i]=r}}}}function Xg(t,e=!1){return{created:(r,a,s)=>{const o=a.value&&typeof a.value=="string"?a.value:s.key;o&&up[o]&&up[o].stop();const u=e?structuredClone(Tt(t)||{}):t||{},c=Le(u);typeof a.value=="object"&&(c.value=a.value),KG(s,c);const d=ZL(r,c,{eventListeners:!0,lifeCycleHooks:!0,syncVariants:!0,visibilityHooks:!1});r.motionInstance=d,o&&(up[o]=d)},mounted:(r,a,s)=>{r.motionInstance&&qL(r.motionInstance)},getSSRProps(r,a){let{initial:s}=r.value||a&&a?.props||{};s=ze(s);const o=A0({},t?.initial||{},s||{});return!o||Object.keys(o).length===0?void 0:{style:$0(o)}}}}const ZG={initial:{opacity:0}
154,enter:{opacity:1}},JG={initial:{opacity:0},visible:{opacity:1}},QG={initial:{opacity:0},visibleOnce:{opacity:1}},eq={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},tq={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},nq={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},iq={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rq={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},aq={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},sq={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},oq={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},uq={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},lq={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},cq={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},dq={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},fq={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},hq={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},pq={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},mq={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},gq={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},vq={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},_q={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},bq={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},yq={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},Eq={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},xq={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},Aq={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},Sq={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},Tq={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},wq={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},Mm={__proto__:null,fade:ZG,fadeVisible:JG,fadeVisibleOnce:QG,pop:eq,popVisible:tq,popVisibleOnce:nq,rollBottom:fq,rollLeft:iq,rollRight:sq,rollTop:lq,rollVisibleBottom:hq,rollVisibleLeft:rq,rollVisibleOnceBottom:pq,rollVisibleOnceLeft:aq,rollVisibleOnceRight:uq,rollVisibleOnceTop:dq,rollVisibleRight:oq,rollVisibleTop:cq,slideBottom:Sq,slideLeft:mq,slideRight:_q,slideTop:Eq,slideVisibleBottom:Tq,slideVisibleLeft:gq,slideVisibleOnceBottom:wq,slideVisibleOnceLeft:vq,slideVisibleOnceRight:yq,slideVisibleOnceTop:Aq,slideVisibleRight:bq,slideVisibleTop:xq};function Mq(t){const e="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",n="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",i=new RegExp(e.split("").join("|"),"g");return t.toString().replace(/[A-Z]/g,r=>`-${r}`).toLowerCase().replace(/\s+/g,"-").replace(i,r=>n.charAt(e.indexOf(r))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const QL=Symbol(""),eR={preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1},duration:{type:[Number,String],required:!1}};function Cq(t){return Object.prototype.toString.call(t)==="[object Object]"}function v1(t){if(Array.isArray(t))return t.map(v1);if(Cq(t)){const e={};for(const n in t)e[n]=v1(t[n]);return e}return t}function tR(t){const e=In({}),n=wn(QL,{}),i=Ve(()=>t.preset==null?{}:n!=null&&t.preset in n?structuredClone(Tt(n)[t.preset]):t.preset in Mm?structuredClone(Mm[t.preset]):{}),r=Ve(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused}));function a(u,c){for(const l of["delay","duration"]){if(c[l]==null)continue;const d=Number.parseInt(c[l]);for(const f of["enter","visible","visibleOnce"]){const h=u[f];h!=null&&(h.transition??(h.transition={}),h.transition[l]=d)}}return u}const s=Ve(()=>{const u=A0({},r.value,i.value,t.variants||{});return a({...u},t)});function o(u,c,l){var d;u.props??(u.props={}),(d=u.props).style??(d.style={}),u.props.style={...u.props.style,...l};const f=a(v1(s.value),u.props);return u.props.onVnodeMounted=({el:h})=>{e[c]=ZL(h,f)},u.props.onVnodeUpdated=({el:h})=>{const g=$0(e[c].state);for(const[v,m]of Object.entries(g))h.style[v]=m},u}return{motionConfig:s,setNodeInstance:o}}const Dq=qn({name:"Motion",props:{...eR,is:{type:[String,Object],default:"div"}},setup(t){const e=Q2(),{motionConfig:n,setNodeInstance:i}=tR(t);return()=>{const r=$0(n.value.initial||{}),a=Vt(t.is,void 0,e);return i(a,0,r),a}}}),Lq=qn({name:"MotionGroup",props:{...eR,is:{type:[String,Object],required:!1}},setup(t){const e=Q2(),{motionConfig:n,setNodeInstance:i}=tR(t);return()=>{const r=$0(n.value.initial||{}),a=e.default?.()||[];for(let s=0;s<a.length;s++){const o=a[s];
154o.type===Zt&&Array.isArray(o.children)?o.children.forEach(function u(c,l){if(c!=null){if(Array.isArray(c)){u(c,l);return}typeof c=="object"&&i(c,l,r)}}):i(o,s,r)}return t.is?Vt(t.is,void 0,a):a}}}),Rq={install(t,e){if(t.directive("motion",Xg()),!e||e&&!e.excludePresets)for(const n in Mm){const i=Mm[n];t.directive(`motion-${Mq(n)}`,Xg(i,!0))}if(e&&e.directives)for(const n in e.directives){const i=e.directives[n];i.initial,t.directive(`motion-${n}`,Xg(i,!0))}t.provide(QL,e?.directives),t.component("Motion",Dq),t.component("MotionGroup",Lq)}};function Iq(){return up}const Pq=Ht(t=>{const e=Li();t.vueApp.use(Rq,e.public.motion)});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.vue3-marquee{display:flex!important;position:relative}.vue3-marquee.horizontal{overflow-x:hidden!important;flex-direction:row!important;width:100%;height:max-content}.vue3-marquee.vertical{overflow-y:hidden!important;flex-direction:column!important;height:100%;width:max-content}.vue3-marquee:hover>.marquee{animation-play-state:var(--pauseOnHover)}.vue3-marquee:active>.marquee{animation-play-state:var(--pauseOnClick)}.vue3-marquee>.marquee{flex:0 0 auto;min-width:var(--min-width);min-height:var(--min-height);z-index:1;animation:var(--orientation) var(--duration) linear var(--delay) var(--loops);animation-play-state:var(--pauseAnimation);animation-direction:var(--direction)}.vue3-marquee.horizontal>.marquee{display:flex;flex-direction:row;align-items:center}.vue3-marquee.vertical>.marquee{display:flex;flex-direction:column;align-items:center}@keyframes scrollX{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes scrollY{0%{transform:translateY(0)}to{transform:translateY(-100%)}}.vue3-marquee>.overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.transparent-overlay{position:absolute;width:100%;height:100%}.vue3-marquee>.overlay:before,.vue3-marquee>.overlay:after{content:"";position:absolute;z-index:2}.vue3-marquee.horizontal>.overlay:before,.vue3-marquee.horizontal>.overlay:after{background:linear-gradient(to right,var(--gradient-color));height:100%;width:var(--gradient-length)}.vue3-marquee.vertical>.overlay:before,.vue3-marquee.vertical>.overlay:after{background:linear-gradient(to bottom,var(--gradient-color));height:var(--gradient-length);width:100%}.vue3-marquee.horizontal>.overlay:after{transform:rotate(180deg)}.vue3-marquee.vertical>.overlay:after{transform:rotate(-180deg)}.vue3-marquee>.overlay:before{left:0;top:0}.vue3-marquee.horizontal>.overlay:after{right:0;top:0}.vue3-marquee.vertical>.overlay:after{left:0;bottom:0}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();var kq=Object.defineProperty,HA=Object.getOwnPropertySymbols,Oq=Object.prototype.hasOwnProperty,Nq=Object.prototype.propertyIsEnumerable,zA=(t,e,n)=>e in t?kq(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$A=(t,e)=>{for(var n in e||(e={}))Oq.call(e,n)&&zA(t,n,e[n]);if(HA)for(var n of HA(e))Nq.call(e,n)&&zA(t,n,e[n]);return t},Uq=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n};const Fq=qn({props:{vertical:{type:Boolean,default:!1},direction:{type:String,default:"normal"},duration:{type:Number,default:20},delay:{type:Number,default:0},loop:{type:Number,default:0},clone:{type:Boolean,default:!1},gradient:{type:Boolean,default:!1},gradientColor:{type:Array,default:[255,255,255]},gradientWidth:{type:String},gradientLength:{type:String},pauseOnHover:{type:Boolean,default:!1},pauseOnClick:{type:Boolean,default:!1},pause:{type:Boolean,default:!1},animateOnOverflowOnly:{type:Boolean,default:!1}},emits:["onComplete","onLoopComplete","onPause","onResume","onOverflowDetected","onOverflowCleared"],setup(t,{emit:e}){const n=Le(0),i=Le("100%"),r=Le("100%"),a=Le(0),s=Le(!1),o=Le(!0),u=Le(0),c=Le(0),l=Le(0),d=Le(0),f=Le(!1),h=Le(!1),g=Le(0),v=Le(null),m=Le("200px"),p=Le(!1),y=Le(null),_=Le(null),b=async()=>{await x(),a.value++},x=async()=>{t.vertical&&(s.value=!0),setInterval(()=>{if(i.value="0%",r.value="0%",y.value!==null&&_.value!==null&&y.value&&_.value)if(t.vertical&&"clientHeight"in y.value&&"clientHeight"in _.value){d.value=y.value.clientHeight,l.value=_.value.clientHeight;const q=Math.ceil(l.value/d.value);
154return n.value=t.animateOnOverflowOnly?0:isFinite(q)?q:0,s.value=!1,n.value}else if(!t.vertical&&"clientWidth"in y.value&&"clientWidth"in _.value){if(c.value=y.value.clientWidth,u.value=_.value.clientWidth,t.animateOnOverflowOnly&&p.value)return c.value<=u.value?(o.value=!0,e("onOverflowCleared")):(o.value=!1,e("onOverflowDetected")),0;const q=Math.ceil(u.value/c.value);return n.value=isFinite(q)?q:0,n.value}else return i.value="100%",r.value="100%",0;else return i.value="100%",r.value="100%",0},100)};st(c,async()=>{t.clone&&b()}),st(u,async()=>{(t.clone||t.animateOnOverflowOnly)&&b()}),st(()=>t.pause,(q,te)=>{q!==te&&e(q?"onResume":"onPause")});const w=()=>{t.pauseOnHover&&(e("onPause"),f.value=!0)},D=()=>{t.pauseOnHover&&(e("onResume"),f.value=!1)},O=()=>{t.pauseOnClick&&(e("onPause"),h.value=!0)},M=()=>{t.pauseOnClick&&(e("onResume"),h.value=!1)},S=Ve(()=>t.pause||t.vertical&&s.value||t.animateOnOverflowOnly&&o.value?"paused":"running"),B=Ve(()=>t.pauseOnHover&&(f.value||h.value)||!t.pauseOnHover&&S.value==="paused"?"paused":"running"),V=Ve(()=>t.pauseOnHover&&f.value||t.pauseOnClick&&h.value||!t.pauseOnHover&&S.value==="paused"?"paused":"running"),z=Ve(()=>{const q={"--duration":`${t.duration}s`,"--delay":`${t.delay}s`,"--direction":`${t.direction}`,"--pauseOnHover":`${B.value}`,"--pauseOnClick":`${V.value}`,"--pauseAnimation":`${S.value}`,"--loops":`${t.loop===0?"infinite":t.loop}`,"--gradient-color":`rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 1), rgba(${t.gradientColor[0]}, ${t.gradientColor[1]}, ${t.gradientColor[2]}, 0)`,"--gradient-length":`${m.value}`,"--min-width":`${i.value}`,"--min-height":`${r.value}`},te={"--orientation":"scrollX",orientation:"horizontal"};return t.vertical&&(te["--orientation"]="scrollY"),$A($A({},q),te)}),Q=Ve(()=>!!t.gradient),Z=async()=>{t.vertical?(r.value="100%",i.value="auto",t.animateOnOverflowOnly&&console.warn("The `animateOnOverflowOnly` prop is not supported for vertical marquees.")):(r.value="auto",t.animateOnOverflowOnly?i.value="auto":i.value="100%"),t.gradient&&(t.gradientWidth?(console.warn("The `gradientWidth` prop has been deprecated and will be removed in a future release. Please use `gradientLength` instead."),m.value=t.gradientWidth):t.gradientLength&&(m.value=t.gradientLength)),(t.clone||t.animateOnOverflowOnly)&&(await x(),b()),p.value=!0};return $n(async()=>{Z(),v.value=setInterval(()=>{g.value++,t.loop!==0&&g.value===t.loop&&(e("onComplete"),clearInterval(v.value)),e("onLoopComplete")},t.duration*1e3)}),uu(()=>{clearInterval(v.value)}),{ready:p,contentWidth:c,containerWidth:u,contentHeight:d,containerHeight:l,loopCounter:g,loopInterval:v,mouseOverMarquee:f,mouseDownMarquee:h,minWidth:i,minHeight:r,animateOnOverflowPause:o,marqueeContent:y,marqueeOverlayContainer:_,componentKey:a,showGradient:Q,cloneAmount:n,ForcesUpdate:b,checkForClone:x,setupMarquee:Z,getCurrentStyle:z,hoverStarted:w,hoverEnded:D,mouseDown:O,mouseUp:M}}}),Bq={class:"transparent-overlay",ref:"marqueeOverlayContainer","aria-hidden":!0},Vq={class:"marquee",ref:"marqueeContent"},Hq={key:1,"aria-hidden":!0,class:"marquee"};function zq(t,e,n,i,r,a){return t.ready?(tt(),_t("div",{class:Gs(["vue3-marquee",{vertical:t.vertical,horizontal:!t.vertical}]),style:ou(t.getCurrentStyle),key:t.componentKey,onMouseenter:e[0]||(e[0]=(...s)=>t.hoverStarted&&t.hoverStarted(...s)),onMouseleave:e[1]||(e[1]=(...s)=>t.hoverEnded&&t.hoverEnded(...s)),onMousedown:e[2]||(e[2]=(...s)=>t.mouseDown&&t.mouseDown(...s)),onMouseup:e[3]||(e[3]=(...s)=>t.mouseUp&&t.mouseUp(...s))},[It("div",Bq,null,512),t.showGradient?(tt(),_t("div",{key:0,"aria-hidden":!0,class:Gs(["overlay",{vertical:t.vertical,horizontal:!t.vertical}])},null,2)):Zi("",!0),It("div",Vq,[Yi(t.$slots,"default")],512),!t.animateOnOverflowOnly||t.animateOnOverflowOnly&&!t.animateOnOverflowPause?(tt(),_t("div",Hq,[Yi(t.$slots,"default")])):Zi("",!0),(tt(!0),_t(Zt,null,Xs(t.cloneAmount,s=>(tt(),_t("div",{"aria-hidden":!0,class:"marquee cloned",key:s},[Yi(t.$slots,"default")]))),128))],38)):Zi("",!0)}var $q=Uq(Fq,[["render",zq]]),Wq={install(t,e){var n;const i=(n=e?.name)!=null?n:"Vue3Marquee";t.component(i,$q)}};const Gq=Ht(t=>{t.vueApp.use(Wq,{name:"Vue3Marquee"})});var WA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qq(t){if(Object.prototype.hasOwnProperty.call(t,"__esMo
154dule"))return t;var e=t.default;if(typeof e=="function"){var n=function i(){var r=!1;try{r=this instanceof i}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(i){var r=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(n,i,r.get?r:{enumerable:!0,get:function(){return t[i]}})}),n}var rh={},GA={},qA;function jq(){if(qA)return GA;qA=1;try{var t=new window.CustomEvent("test");if(t.preventDefault(),t.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch{var e=function(i,r){var a,s;return r=r||{bubbles:!1,cancelable:!1,detail:void 0},a=document.createEvent("CustomEvent"),a.initCustomEvent(i,r.bubbles,r.cancelable,r.detail),s=a.preventDefault,a.preventDefault=function(){s.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},a};e.prototype=window.Event.prototype,window.CustomEvent=e}return GA}var jA;function Xq(){if(jA)return rh;jA=1,Object.defineProperty(rh,"__esModule",{value:!0});var t=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var o=arguments[s];for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(a[u]=o[u])}return a},e=(function(){function a(s,o){var u=[],c=!0,l=!1,d=void 0;try{for(var f=s[Symbol.iterator](),h;!(c=(h=f.next()).done)&&(u.push(h.value),!(o&&u.length===o));c=!0);}catch(g){l=!0,d=g}finally{try{!c&&f.return&&f.return()}finally{if(l)throw d}}return u}return function(s,o){if(Array.isArray(s))return s;if(Symbol.iterator in Object(s))return a(s,o);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();rh.default=r,jq();var n={containerClass:"custom-select-container",openerClass:"custom-select-opener",panelClass:"custom-select-panel",optionClass:"custom-select-option",optgroupClass:"custom-select-optgroup",isSelectedClass:"is-selected",hasFocusClass:"has-focus",isDisabledClass:"is-disabled",isOpenClass:"is-open"};function i(a,s){var o="customSelect",u=!1,c="",l=a,d=void 0,f=void 0,h=void 0,g=void 0,v=void 0,m=void 0,p=void 0,y="";function _(H){h&&h.classList.remove(s.hasFocusClass),typeof H<"u"?(h=H,h.classList.add(s.hasFocusClass),u&&(H.offsetTop<H.offsetParent.scrollTop||H.offsetTop>H.offsetParent.scrollTop+H.offsetParent.clientHeight-H.clientHeight)&&H.dispatchEvent(new CustomEvent("custom-select:focus-outside-panel",{bubbles:!0}))):h=void 0}function b(H){g&&(g.classList.remove(s.isSelectedClass),g.removeAttribute("id"),f.removeAttribute("aria-activedescendant")),typeof H<"u"?(H.classList.add(s.isSelectedClass),H.setAttribute("id",o+"-"+c+"-selectedOption"),f.setAttribute("aria-activedescendant",o+"-"+c+"-selectedOption"),g=H,f.children[0].textContent=g.customSelectOriginalOption.text):(g=void 0,f.children[0].textContent=""),_(H)}function x(H){var ie=l.querySelector("option[value='"+H+"']");if(!ie){var _e=e(l.options,1);ie=_e[0]}ie.selected=!0,b(l.options[l.selectedIndex].customSelectCstOption)}function w(H){var ie=[].indexOf.call(l.options,h.customSelectOriginalOption);l.options[ie+H]&&_(l.options[ie+H].customSelectCstOption)}function D(H){if(H||typeof H>"u"){var ie=document.querySelector("."+o+"."+s.isOpenClass);ie&&(ie.customSelect.open=!1),d.classList.add(s.isOpenClass),d.classList.add(s.isOpenClass),f.setAttribute("aria-expanded","true"),g&&(v.scrollTop=g.offsetTop),d.dispatchEvent(new CustomEvent("custom-select:open")),u=!0}else d.classList.remove(s.isOpenClass),f.setAttribute("aria-expanded","false"),u=!1,_(g),d.dispatchEvent(new CustomEvent("custom-select:close"));return u}function O(H){H.target===f||f.contains(H.target)?u?D(!1):D():H.target.classList&&H.target.classList.contains(s.optionClass)&&v.contains(H.target)?(b(H.target),g.customSelectOriginalOption.selected=!0,D(!1),l.dispatchEvent(new CustomEvent("change"))):H.target===l?f!==document.activeElement&&l!==document.activeElement&&f.focus():u&&!d.contains(H.target)&&D(!1)}function M(H){H.target.classList&&H.target.classList.contains(s.optionClass)&&_(H.target)}function S(H){if(!u)(H.keyCode===40||H.keyCode===38||H.keyCode===32)&&D();
154else switch(H.keyCode){case 13:case 32:b(h),g.customSelectOriginalOption.selected=!0,l.dispatchEvent(new CustomEvent("change")),D(!1);break;case 27:D(!1);break;case 38:w(-1);break;case 40:w(1);break;default:if(H.keyCode>=48&&H.keyCode<=90){p&&clearTimeout(p),p=setTimeout(function(){y=""},1500),y+=String.fromCharCode(H.keyCode);for(var ie=0,_e=l.options.length;ie<_e;ie++)if(l.options[ie].text.toUpperCase().substr(0,y.length)===y){_(l.options[ie].customSelectCstOption);break}}break}}function B(){var H=l.selectedIndex,ie=H===-1?void 0:l.options[H].customSelectCstOption;b(ie)}function V(H){var ie=H.currentTarget,_e=H.target;_e.offsetTop<ie.scrollTop?ie.scrollTop=_e.offsetTop:ie.scrollTop=_e.offsetTop+_e.clientHeight-ie.clientHeight}function z(){document.addEventListener("click",O),v.addEventListener("mouseover",M),v.addEventListener("custom-select:focus-outside-panel",V),l.addEventListener("change",B),d.addEventListener("keydown",S)}function Q(){document.removeEventListener("click",O),v.removeEventListener("mouseover",M),v.removeEventListener("custom-select:focus-outside-panel",V),l.removeEventListener("change",B),d.removeEventListener("keydown",S)}function Z(H){H&&!l.disabled?(d.classList.add(s.isDisabledClass),l.disabled=!0,f.removeAttribute("tabindex"),d.dispatchEvent(new CustomEvent("custom-select:disabled")),Q()):!H&&l.disabled&&(d.classList.remove(s.isDisabledClass),l.disabled=!1,f.setAttribute("tabindex","0"),d.dispatchEvent(new CustomEvent("custom-select:enabled")),z())}function q(H){var ie=H,_e=[];if(typeof ie.length>"u")throw new TypeError("Invalid Argument");for(var W=0,be=ie.length;W<be;W++)if(ie[W]instanceof HTMLElement&&ie[W].tagName.toUpperCase()==="OPTGROUP"){var ge=document.createElement("div");ge.classList.add(s.optgroupClass),ge.setAttribute("data-label",ie[W].label),ge.customSelectOriginalOptgroup=ie[W],ie[W].customSelectCstOptgroup=ge;for(var De=q(ie[W].children),ae=0,Fe=De.length;ae<Fe;ae++)ge.appendChild(De[ae]);_e.push(ge)}else if(ie[W]instanceof HTMLElement&&ie[W].tagName.toUpperCase()==="OPTION"){var U=document.createElement("div");U.classList.add(s.optionClass),U.textContent=ie[W].text,U.setAttribute("data-value",ie[W].value),U.setAttribute("role","option"),U.customSelectOriginalOption=ie[W],ie[W].customSelectCstOption=U,ie[W].selected&&b(U),_e.push(U)}else throw new TypeError("Invalid Argument");return _e}function te(H,ie,_e){var W=void 0;if(typeof _e>"u"||_e===l)W=v;else if(_e instanceof HTMLElement&&_e.tagName.toUpperCase()==="OPTGROUP"&&l.contains(_e))W=_e.customSelectCstOptgroup;else throw new TypeError("Invalid Argument");var be=H instanceof HTMLElement?[H]:H;if(ie)for(var ge=0,De=be.length;ge<De;ge++)W===v?l.appendChild(be[ge]):W.customSelectOriginalOptgroup.appendChild(be[ge]);for(var ae=q(be),Fe=0,U=ae.length;Fe<U;Fe++)W.appendChild(ae[Fe]);return be}function $(H,ie){var _e=void 0;if(ie instanceof HTMLElement&&ie.tagName.toUpperCase()==="OPTION"&&l.contains(ie))_e=ie.customSelectCstOption;else if(ie instanceof HTMLElement&&ie.tagName.toUpperCase()==="OPTGROUP"&&l.contains(ie))_e=ie.customSelectCstOptgroup;else throw new TypeError("Invalid Argument");var W=q(H.length?H:[H]);return _e.parentNode.insertBefore(W[0],_e),ie.parentNode.insertBefore(H.length?H[0]:H,ie)}function ee(H){var ie=void 0;if(H instanceof HTMLElement&&H.tagName.toUpperCase()==="OPTION"&&l.contains(H))ie=H.customSelectCstOption;else if(H instanceof HTMLElement&&H.tagName.toUpperCase()==="OPTGROUP"&&l.contains(H))ie=H.customSelectCstOptgroup;else throw new TypeError("Invalid Argument");ie.parentNode.removeChild(ie);var _e=H.parentNode.removeChild(H);return B(),_e}function le(){for(var H=[];l.children.length;)v.removeChild(v.children[0]),H.push(l.removeChild(l.children[0]));return b(),H}function xe(){for(var H=0,ie=l.options.length;H<ie;H++)delete l.options[H].customSelectCstOption;for(var _e=l.getElementsByTagName("optgroup"),W=0,be=_e.length;W<be;W++)delete _e.customSelectCstOptgroup;return Q(),d.parentNode.replaceChild(l,d)}d=document.createElement("div"),d.classList.add(s.containerClass,o),f=document.createElement("span"),f.className=s.openerClass,f.setAttribute("role","combobox"),f.setAttribute("aria-autocomplete","list"),f.setAttribute("aria-expanded","fal
154se"),f.innerHTML=`<span>
155   `+(l.selectedIndex!==-1?l.options[l.selectedIndex].text:"")+`
156   </span>`,v=document.createElement("div");for(var J="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ye=0;ye<5;ye++)c+=J.charAt(Math.floor(Math.random()*J.length));return v.id=o+"-"+c+"-panel",v.className=s.panelClass,v.setAttribute("role","listbox"),f.setAttribute("aria-owns",v.id),te(l.children,!1),d.appendChild(f),l.parentNode.replaceChild(d,l),d.appendChild(l),d.appendChild(v),document.querySelector('label[for="'+l.id+'"]')?m=document.querySelector('label[for="'+l.id+'"]'):d.parentNode.tagName.toUpperCase()==="LABEL"&&(m=d.parentNode),typeof m<"u"&&(m.setAttribute("id",o+"-"+c+"-label"),f.setAttribute("aria-labelledby",o+"-"+c+"-label")),l.disabled?d.classList.add(s.isDisabledClass):(f.setAttribute("tabindex","0"),l.setAttribute("tabindex","-1"),z()),d.customSelect={get pluginOptions(){return s},get open(){return u},set open(H){D(H)},get disabled(){return l.disabled},set disabled(H){Z(H)},get value(){return l.value},set value(H){x(H)},append:function(ie,_e){return te(ie,!0,_e)},insertBefore:function(ie,_e){return $(ie,_e)},remove:ee,empty:le,destroy:xe,opener:f,select:l,panel:v,container:d},l.customSelect=d.customSelect,d.customSelect}function r(a,s){var o=[],u=[];return(function(){if(a&&a instanceof HTMLElement&&a.tagName.toUpperCase()==="SELECT")o.push(a);else if(a&&typeof a=="string")for(var l=document.querySelectorAll(a),d=0,f=l.length;d<f;++d)l[d]instanceof HTMLElement&&l[d].tagName.toUpperCase()==="SELECT"&&o.push(l[d]);else if(a&&a.length)for(var h=0,g=a.length;h<g;++h)a[h]instanceof HTMLElement&&a[h].tagName.toUpperCase()==="SELECT"&&o.push(a[h]);for(var v=0,m=o.length;v<m;++v)u.push(i(o[v],t({},n,s)));return u})()}return rh}var Yq=Xq();const Kq=vf(Yq),Zq=["unique-choice"],Jq=["for"],Qq={key:0},ej={key:1,class:"formLabel-hint"},tj=["id","name","value"],nj=["value","innerHTML"],ij={__name:"FieldMusicSelect",props:om(["label","id","placeholder","required","playlists"],{modelValue:{type:String,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=hn(null);let i=null;const r=eb(t,"modelValue");$n(()=>{const u=Kq(n.value)[0];if(!u)return;i=u.destroy,u.container.querySelectorAll(".custom-select-option").forEach((l,d)=>{const f=s(l.dataset.value);f&&(l.innerHTML=f.label)}),u.select.addEventListener("change",c),c(),u.container.querySelectorAll(".custom-select-option").forEach(l=>{const d=s(l.dataset.value);d&&a(l,d)});function c(){const l=s(u.select.value);if(!l)return;const d=u.container.querySelector(".custom-select-opener span");a(d,l)}});function a(u,c){if(c.intendedTemplate==="playlist_custom"){u.removeAttribute("data-playlist");return}c.details&&(u.dataset.playlist=c.details)}function s(u){return e.playlists.find(c=>c.uuid===u)}xa(()=>{i&&i()});function o(u){r.value=u.target.value}return(u,c)=>(tt(),_t("div",{class:"nativeMusic","unique-choice":t.playlists.length===1},[t.label?(tt(),_t("label",{key:0,class:"formLabel text-crop",for:e.id},[It("span",null,Tl(t.label+"	"),1),e.required?(tt(),_t("em",Qq,"*")):Zi("",!0),t.placeholder?(tt(),_t("span",ej,Tl(t.placeholder),1)):Zi("",!0)],8,Jq)):Zi("",!0),It("select",{"data-ignore":"",ref_key:"$select",ref:n,id:e.id,name:e.id,onChange:o,value:r.value},[c[0]||(c[0]=It("option",{class:"empty",disabled:"",hidden:"",selected:"",value:""},null,-1)),(tt(!0),_t(Zt,null,Xs(t.playlists,l=>(tt(),_t("option",{value:l.uuid,innerHTML:l.label},null,8,nj))),256))],40,tj)],8,Zq))}},_f={__name:"Dynamic",props:{is:{type:[String,Object],default:"div"},html:{type:String,required:!1}},setup(t){const e=t,n=tk(),i=()=>Vt(e.is,{...n,innerHTML:e.html});return(r,a)=>(tt(),cn(g0(e.html===void 0?e.is:i),null,{default:gi(()=>[Yi(r.$slots,"default",r5(wM(r.$attrs)))]),_:3}))}};function rj(t){const e=Js(),n=()=>{window.location.hash&&document.querySelector(window.location.hash)?.scrollIntoView({behavior:"smooth"})},i=r=>{const a=r.target.closest("a:not(.linkText)");if(!r.defaultPrevented&&a&&r.button===0&&a.target!=="_blank"&&a.rel!=="external"&&!a.download&&!r.metaKey&&!r.ctrlKey&&!r.shiftKey&&!r.altKey){const s=new URL(a.href),{origin:o,pathname:u,hash:c}=s;if(o!==window.location.origin){r.preventDefault(),window.open(a.href,"_blank","noopener");return}r.preventDefault(),c&&(!u||u===e.path)?(window.history.replaceState({},"",a.href),n()):$a({path:u,hash:c})}};Bt(window,"hashchange",n),Bt(t,"click",i,!0)}const aj={__name:"PageText",setup(t){const e=Le(null);return rj(e),(n,i)=>{const r=_f;return tt(),cn(r,{class:"pageText font-grand",ref_key:"$content",ref:e},{default:gi(()=>[Yi(n.$slots,"default")]),_:3},512)}}},sj={__name:"ListText",props:{divider:{type:String,required:!1}},setup(t){return(e,n)=>{const i=_f;return tt(),cn(i,{class:"listText",is:"span",ref:"$list",style:ou({"--divider":t.divider&&`'${t.divider}'`})},{default:gi(()=>
156[Yi(e.$slots,"default")]),_:3},8,["style"])}}};function lp(t){var e;const n=Ot(t);return(e=n?.$el)!=null?e:n}const jb=B0?window:void 0;function _1(...t){let e,n,i,r;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,i,r]=t,e=jb):[e,n,i,r]=t,!e)return Bi;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const a=[],s=()=>{a.forEach(l=>l()),a.length=0},o=(l,d,f,h)=>(l.addEventListener(d,f,h),()=>l.removeEventListener(d,f,h)),u=st(()=>[lp(e),Ot(r)],([l,d])=>{if(s(),!l)return;const f=kd(d)?{...d}:d;a.push(...n.flatMap(h=>i.map(g=>o(l,h,g,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Vr(c),c}function oj(){const t=Le(!1),e=Mn();return e&&$n(()=>{t.value=!0},e),t}function uj(t){const e=oj();return Ve(()=>(e.value,!!t()))}function lj(t,e={}){const{delayEnter:n=0,delayLeave:i=0,window:r=jb}=e,a=Le(!1);let s;const o=u=>{const c=u?n:i;s&&(clearTimeout(s),s=void 0),c?s=setTimeout(()=>a.value=u,c):a.value=u};return r&&(_1(t,"mouseenter",()=>o(!0),{passive:!0}),_1(t,"mouseleave",()=>o(!1),{passive:!0})),a}const cj={[rL.mounted](t,e){if(typeof e.value=="function"){const n=lj(t);st(n,i=>e.value(i))}}};function XA(t,e,n={}){const{root:i,rootMargin:r="0px",threshold:a=.1,window:s=jb,immediate:o=!0}=n,u=uj(()=>s&&"IntersectionObserver"in s),c=Ve(()=>{const g=Ot(t);return(Array.isArray(g)?g:[g]).map(lp).filter(kb)});let l=Bi;const d=Le(o),f=u.value?st(()=>[c.value,lp(i),d.value],([g,v])=>{if(l(),!d.value||!g.length)return;const m=new IntersectionObserver(e,{root:lp(v),rootMargin:r,threshold:a});g.forEach(p=>p&&m.observe(p)),l=()=>{m.disconnect(),l=Bi}},{immediate:o,flush:"post"}):Bi,h=()=>{l(),f(),d.value=!1};return Vr(h),{isSupported:u,isActive:d,pause(){l(),d.value=!1},resume(){d.value=!0},stop:h}}function Yg(t){return typeof Window<"u"&&t instanceof Window?t.document.documentElement:typeof Document<"u"&&t instanceof Document?t.documentElement:t}const Dce={[rL.mounted](t,e){typeof e.value=="function"?XA(t,e.value):XA(t,...e.value)}};function nR(t){const e=window.getComputedStyle(t);if(e.overflowX==="scroll"||e.overflowY==="scroll"||e.overflowX==="auto"&&t.clientWidth<t.scrollWidth||e.overflowY==="auto"&&t.clientHeight<t.scrollHeight)return!0;{const n=t.parentNode;return!n||n.tagName==="BODY"?!1:nR(n)}}function dj(t){const e=t||window.event,n=e.target;return nR(n)?!1:e.touches.length>1?!0:(e.preventDefault&&e.preventDefault(),!1)}const Kg=new WeakMap;function fj(t,e=!1){const n=Le(e);let i=null,r="";st(E$(t),o=>{const u=Yg(Ot(o));if(u){const c=u;if(Kg.get(c)||Kg.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(r=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const a=()=>{const o=Yg(Ot(t));!o||n.value||(SA&&(i=_1(o,"touchmove",u=>{dj(u)},{passive:!1})),o.style.overflow="hidden",n.value=!0)},s=()=>{const o=Yg(Ot(t));!o||!n.value||(SA&&i?.(),o.style.overflow=r,Kg.delete(o),n.value=!1)};return Vr(s),Ve({get(){return n.value},set(o){o?a():s()}})}function hj(){let t=!1;const e=Le(!1);return(n,i)=>{if(e.value=i.value,t)return;t=!0;const r=fj(n,i.value);st(e,a=>r.value=a)}}hj();function pj(t,e={}){const n=lu(),{$stripPrefix:i}=ut(),r=mn();return Ve(()=>{const a=ze(t),{active:s=!0}=ze(e);if(!a)return{to:null};const o=i(a),u=n(o),c=r.currentRoute.value.path,l=c.startsWith(u);return{routematch:u===c?"exact":l?"partial":void 0,to:ze(s)?o:null}})}const YA=h9({...k8,componentName:"NuxtLinkLocale"}),mj=qn({name:"NuxtLinkLocale",props:{...YA.props,locale:{type:String,default:void 0,required:!1}},setup(t,{slots:e}){const n=lu(),i=Ve(()=>{const s=t.to??t.href;return s!=null?n(s,t.locale):s}),r=Ve(()=>{if(t.external||t.target&&t.target!=="_self")return!0;const s=t.to??t.href;return Ut(s)?!1:s===""||s==null||er(s,{acceptRelative:!0})}),a=()=>{const s={...t};return r.value||(s.to=i.value),delete s.href,delete s.locale,s};return()=>Vt(YA,a(),e.default)}}),gj={__name:"LinkText",props:{to:[String,Object],external:{type:Boolean,default:!1},refresh:{type:Boolean,default:!1},active:{type:Boolean,default:!0}},emits:["hover","reclick"],setup(t,{emit:e}){const{$stripPrefix:n}=ut(),i=G$();mn(),Db(),lu();const r=t,a=Le(null),s=e,{to:o,active:u}=W2(r),c=pj(o,{active:u});$n(()=>{});function l(){return Hn(a)?.matches(".router-link-exact-active")}function d(g){l()&&s("reclick")}const f=Ve(()=>r.external?{target:"_blank"}:typeof r.to!="string"?{}:{target:of(r.to).host?"_blank":void 0});async function h(g){s("hover",g)}return st(i,g=>{g||h(!1)}),(g,v)=>{const m=_f;return zw((tt(),cn(m,Cr({class:"linkText",is:ze(mj),ref_key:"$link",ref:a,onClickCapture:d},{...ze(f),...ze(c)}),{default:gi(()=>[Yi(g.$slots,"default")]),_:3},16,["is"])),[[ze(cj),h]])}}},vj={class:"textList"};function _j(t,e){return tt(),_t("span",vj,[Yi(t.$slots,"default")])}const Xb=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},bj={},yj=Object.assign(Xb(bj,[["render",_j]]),{__name:"TextList"}),Ej={props:{filled:{type:Boolean,required:!1,default:!1},fontControlled:{type:Boolean,required:!1,default:!0},icon:{type:Object,required:!0},name:{type:String,required:!1}}};function xj(t,e,n,i,r,a){return tt(),cn(g0(n.icon),{class:Gs({"nuxt-icon":n.fontControlled,"nuxt-icon--fill":!n.filled})},null,8,["class"])}const Yb=Object.assign(Xb(Ej,[["render",xj]]),{__name:"NuxtIcon"}),Aj={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 13 14"},viewBox:"0 0 13 14",preserveAspectRatio:"xMidYMid meet"};function iR(t,e){return tt(),_t("svg",Aj,[...e[0]||(e[0]=[It("path",{d:"M12.18 6.955 0 13.45V.46l12.18 6.495z"},null,-1)])])}const rR={render(){return Vt(Yb,{icon:{render:iR},name:"player-play"})}},Sj=Object.freeze(Object.defineProperty({__proto__:null,default:rR,render:iR},Symbol.toStringTag,{value:"Module"})),Tj={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",style:{"enable-background":"new 0 0 13 14"},viewBox:"0 0 13 14",preserveAspectRatio:"xMidYMid meet"};function aR(t,e){return tt(),_t("svg",Tj,[...e[0]||(e[0]=[It("path",{d:"M.085.704h4.298v12.592H.085zM8.617.704h4.298v12.592H8.617z"},null,-1)])])}const sR={render(){return Vt(Yb,{icon:{render:aR},name:"player-pause"})}},wj=Object.freeze(Object.defineProperty({__proto__:null,default:sR,render:aR},Symbol.toStringTag,{value:"Module"})),Mj={class:"audioTrack-icon"},Cj={class:"audioTrack-title"},Dj=["innerHTML"],Lj=["innerHTML"],Rj=["innerHTML"],Ij={key:1,class:"audioTrack-detail
156s"},Pj={__name:"AudioTrack",props:{item:Object,player:Object},setup(t){const{$trans:e}=ut(),n=t;function i(o){return T$(new Date(o*1e3),"m:ss")}function r(o){o.target.closest("a")||(o.preventDefault(),n.player.handleTrack(n.item))}const a=Ve(()=>{const o={};return n.item.playlists.forEach(u=>{u.products.forEach(c=>{o[c.uri]=c})}),Object.values(o).sort((u,c)=>u.title.localeCompare(c.title,void 0,{sensitivity:"base"}))}),s=Ve(()=>!n.item.track);return(o,u)=>{const c=sj,l=gj,d=yj,f=_f;return tt(),cn(f,{class:"audioTrack click-text",is:"button",dark:"",selected:t.player.matchActive(t.item),disabled:ze(s),onClickCapture:r},{default:gi(({selected:h})=>[It("div",Mj,[h&&t.player.playing?(tt(),cn(ze(sR),{key:0})):(tt(),cn(ze(rR),{key:1}))]),It("div",Cj,[It("span",{class:"text-overflow",innerHTML:t.item.title},null,8,Dj)]),Ct(c,{class:"audioTrack-artist text-overflow"},{default:gi(()=>[(tt(!0),_t(Zt,null,Xs(t.item.artists,({title:g})=>(tt(),_t("span",{innerHTML:g},null,8,Lj))),256))]),_:1}),ze(s)?Zi("",!0):(tt(),_t("time",{key:0,class:"audioTrack-duration",innerHTML:i(t.item.track.duration)},null,8,Rj)),!t.player.minimal&&ze(a).length?(tt(),_t("div",Ij,[y0(Tl(ze(e)("label:track:products")+" "),1),(tt(!0),_t(Zt,null,Xs(ze(a),g=>(tt(),cn(d,null,{default:gi(()=>[Ct(l,{class:"text-underline",to:g.uri,html:g.title,onClick:u[0]||(u[0]=S6(()=>{},["stop"]))},null,8,["to","html"])]),_:2},1024))),256))])):Zi("",!0)]),_:1},8,["selected","disabled"])}}},kj={__name:"AudioMidiDomNote",props:["note","time"],setup(t){const e=Math.PI*2,n=Le(null),i=t;return Ql(()=>{var r=n.value;if(r){var a=(i.note.timeNorm-i.time)*e,s=Math.cos(a)<0;if(r.style.display=s?"none":"block",!s){var o=Math.sin(a),u=Math.max(-o,0);r.style.setProperty("top",`${50+o*50}%`),r.classList.toggle("active",u>0&&u<.1)}}}),(r,a)=>(tt(),_t("div",{class:"midiNote",ref_key:"$note",ref:n},null,512))}};var Oj=function(t,e,n,i){function r(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(l){try{c(i.next(l))}catch(d){s(d)}}function u(l){try{c(i.throw(l))}catch(d){s(d)}}function c(l){l.done?a(l.value):r(l.value).then(o,u)}c((i=i.apply(t,e||[])).next())})};function ah(t){let e=0,n=0,i=t;do e+=i.offsetTop||0,n+=i.offsetLeft||0,i=i.offsetParent;while(i);return{top:e,left:n}}class Nj{constructor(e){this.element=e}getHorizontalScroll(){return this.element.scrollLeft}getVerticalScroll(){return this.element.scrollTop}getMaxHorizontalScroll(){return this.element.scrollWidth-this.element.clientWidth}getMaxVerticalScroll(){return this.element.scrollHeight-this.element.clientHeight}getHorizontalElementScrollOffset(e,n){return ah(e).left-ah(n).left}getVerticalElementScrollOffset(e,n){return ah(e).top-ah(n).top}scrollTo(e,n){this.element.scrollLeft=e,this.element.scrollTop=n}}class Uj{constructor(){this.element=window}getHorizontalScroll(){return window.scrollX||document.documentElement.scrollLeft}getVerticalScroll(){return window.scrollY||document.documentElement.scrollTop}getMaxHorizontalScroll(){return Math.max(document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth,document.body.clientWidth,document.documentElement.clientWidth)-window.innerWidth}getMaxVerticalScroll(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight}getHorizontalElementScrollOffset(e){return(window.scrollX||document.documentElement.scrollLeft)+e.getBoundingClientRect().left}getVerticalElementScrollOffset(e){return(window.scrollY||document.documentElement.scrollTop)+e.getBoundingClientRect().top}scrollTo(e,n){window.scrollTo(e,n)}}const Wa={elements:[],cancelMethods:[],add:(t,e)=>{Wa.elements.push(t),Wa.cancelMethods.push(e)},remove:(t,e)=>{const n=Wa.elements.indexOf(t);n>-1&&(e&&Wa.cancelMethods[n](),Wa.elements.splice(n,1),Wa.cancelMethods.splice(n,1))}},oR=typeof window<"u",Fj={cancelOnUserAction:!0,easing:t=>--t*t*t+1,elementToScroll:oR?window:null,horizontalOffset:0,maxDuration:3e3,minDuration:250,speed:500,verticalOffset:0};function uR(t){return Oj(this,arguments,void 0,function*(e,n={}
156){if(oR){if(!window.Promise)throw"Browser doesn't support Promises, and animated-scroll-to depends on it, please provide a polyfill."}else return new Promise(w=>{w(!1)});let i,r,a,s=Object.assign(Object.assign({},Fj),n);const o=s.elementToScroll===window,u=!!s.elementToScroll.nodeName;if(!o&&!u)throw"Element to scroll needs to be either window or DOM element.";const c=[{property:"scroll-behavior",value:"smooth"},{property:"scroll-snap-type",value:"mandatory"}],l=o?document.documentElement:s.elementToScroll,d=getComputedStyle(l);c.forEach(({property:w,value:D})=>{const O=d.getPropertyValue(w);O.includes(D)&&console.warn(`${l.tagName} has "${w}: ${O}" which can break animated-scroll-to's animations`)});const f=o?new Uj:new Nj(s.elementToScroll);if(e instanceof Element){if(a=e,u&&(!s.elementToScroll.contains(a)||s.elementToScroll.isSameNode(a)))throw"options.elementToScroll has to be a parent of scrollToElement";i=f.getHorizontalElementScrollOffset(a,s.elementToScroll),r=f.getVerticalElementScrollOffset(a,s.elementToScroll)}else if(typeof e=="number")i=f.getHorizontalScroll(),r=e;else if(Array.isArray(e)&&e.length===2)i=e[0]===null?f.getHorizontalScroll():e[0],r=e[1]===null?f.getVerticalScroll():e[1];else throw`Wrong function signature. Check documentation.
157Available method signatures are:
158  animateScrollTo(y:number, options)
159  animateScrollTo([x:number | null, y:number | null], options)
160  animateScrollTo(scrollToElement:Element, options)`;i+=s.horizontalOffset,r+=s.verticalOffset;const h=f.getMaxHorizontalScroll(),g=f.getHorizontalScroll();i>h&&(i=h);const v=i-g,m=f.getMaxVerticalScroll(),p=f.getVerticalScroll();r>m&&(r=m);const y=r-p,_=Math.abs(Math.round(v/1e3*s.speed)),b=Math.abs(Math.round(y/1e3*s.speed));let x=_>b?_:b;return x<s.minDuration?x=s.minDuration:x>s.maxDuration&&(x=s.maxDuration),new Promise((w,D)=>{v===0&&y===0&&w(!0),Wa.remove(f.element,!0);let O;const M=()=>{Q(),cancelAnimationFrame(O),w(!1)};Wa.add(f.element,M);const S=te=>te.preventDefault(),B=s.cancelOnUserAction?M:S,V=s.cancelOnUserAction?{passive:!0}:{passive:!1},z=["wheel","touchstart","keydown","mousedown"],Q=()=>{z.forEach(te=>{f.element.removeEventListener(te,B,V)})};z.forEach(te=>{f.element.addEventListener(te,B,V)});const Z=Date.now(),q=()=>{var te=Date.now()-Z,$=te/x;const ee=Math.round(g+v*s.easing($)),le=Math.round(p+y*s.easing($));te<x&&(ee!==i||le!==r)?(f.scrollTo(ee,le),O=requestAnimationFrame(q)):(f.scrollTo(i,r),cancelAnimationFrame(O),Q(),Wa.remove(f.element,!1),w(!0))};O=requestAnimationFrame(q)})})}var Pc={exports:{}};var Bj=Pc.exports,KA;function Vj(){return KA||(KA=1,(function(t,e){(function(n){var i=e,r=t&&t.exports==i&&t,a=typeof WA=="object"&&WA;(a.global===a||a.window===a)&&(n=a);var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o=/[\x01-\x7F]/g,u=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,c=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E
1605\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,l={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","	
vendor: 12,149 bytes, line 160
160":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon","ˆ":"circ","ˇ":"caron","°":"deg","©":"copy","®":"reg","℗":"copysr","℘":"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"ap
vendor: 8,150 bytes, line 160
160acir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","𝒶":"ascr","𝕒":"aopf","𝔞":"afr","𝔸":"Aopf","𝔄":"Afr","𝒜":"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig","𝒷":"bscr","𝕓":"bopf","𝔟":"bfr","𝔹":"Bopf",ℬ:"Bscr","𝔅":"Bfr","𝔠":"cfr","𝒸":"cscr","𝕔":"copf",ℭ:"Cfr","𝒞":"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare","𝔡":"dfr","ⅆ":"dd","𝕕":"dopf","𝒹":"dscr","𝒟":"Dscr","𝔇":"Dfr","ⅅ":"DD","𝔻":"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH","ⅇ":"ee",ℯ:"escr","𝔢":"efr","𝕖":"eopf",ℰ:"Escr","𝔈":"Efr","𝔼":"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr","𝔣":"ffr","𝕗":"fopf","𝒻":"fscr","𝔉":"Ffr","𝔽":"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr","𝕘":"gopf","𝔤":"gfr","𝒢":"Gscr","𝔾":"Gopf","𝔊":"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil","𝔥":"hfr",ℎ:"planckh","𝒽":"hscr","𝕙":"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok","𝕚":"iopf","𝔦":"ifr","𝒾":"iscr","ⅈ":"ii","𝕀":"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath","𝒿":"jscr","𝕛":"jopf","𝔧":"jfr","𝒥":"Jscr","𝔍":"Jfr","𝕁":"Jopf",ĵ:"jcirc",Ĵ:"Jcirc","ȷ":"jmath","𝕜":"kopf","𝓀":"kscr","𝔨":"kfr","𝒦":"Kscr","𝕂":"Kopf","𝔎":"Kfr",ķ:"kcedil",Ķ:"Kcedil","𝔩":"lfr","𝓁":"lscr",ℓ:"ell","𝕝":"lopf",ℒ:"Lscr","𝔏":"Lfr","𝕃":"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot","𝔪":"mfr","𝕞":"mopf","𝓂":"mscr","𝔐":"Mfr","𝕄":"Mopf",ℳ:"Mscr","𝔫":"nfr","𝕟":"nopf","𝓃":"nscr",ℕ:"Nopf","𝒩":"Nscr","𝔑":"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG","𝕠":"oopf","𝔬":"ofr",ℴ:"oscr","𝒪":"Oscr","𝔒":"Ofr","𝕆":"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig","𝔭":"pfr","𝓅":"pscr","𝕡":"popf",ℙ:"Popf","𝔓":"Pfr","𝒫":"Pscr","𝕢":"qopf","𝔮":"qfr","𝓆":"qscr","𝒬":"Qscr","𝔔":"Qfr",ℚ:"Qopf",ĸ:"kgreen","𝔯":"rfr","𝕣":"ropf","𝓇":"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil","𝕤":"sopf","𝓈":"sscr","𝔰":"sfr","𝕊":"Sopf","𝔖":"Sfr","𝒮":"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig","𝔱":"tfr","𝓉":"tscr","𝕥":"topf","𝒯":"Tscr","𝔗":"Tfr","𝕋":"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok","𝓊":"uscr","𝕦":"uopf","𝔲":"ufr","𝕌":"Uopf","𝔘":"Ufr","𝒰":"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr","𝔳":"vfr","𝕧":"vopf","𝓋":"vscr","𝔙":"Vfr","𝕍":"Vopf","𝒱":"Vscr","𝕨":"wopf","𝓌":"wscr","𝔴":"wfr","𝒲":"Wscr","𝕎":"Wopf","𝔚":"Wfr",ŵ:"wcirc",Ŵ:"Wcirc","𝔵":"xfr","𝓍":"xscr","𝕩":"xopf","𝕏":"Xopf","𝔛":"Xfr","𝒳":"Xscr","𝔶":"yfr","𝓎":"yscr","𝕪":"yopf","𝒴":"Yscr","𝔜":"Yfr","𝕐":"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml","𝓏":"zscr","𝔷":"zfr","𝕫":"zopf",ℨ:"Zfr",ℤ:"Zopf","𝒵":"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi","ϵ":"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},d=/["&'<>`]/g,
160f={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},h=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g
vendor: 4,299 bytes, line 160
160=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,v=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|N
vendor: 24,967 bytes, line 160
160otCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,m={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"â©°",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"Ã¥",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"â«§",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"â§«",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"â«­",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"â©´",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"â©­",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"â©·",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"â§¶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"â©®",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"â©·",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"â§£",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ä¢",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"Ä¡",Gdot:"Ä ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"Ä¥",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"Ä«",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Ä®",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"Ä©",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ä´",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"È·",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"Ä·",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Ð¥",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ä»",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"â
vendor: 4,691 bytes, lines 160-161
160‹–",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ä¿",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"â§«",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"â©»",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"â«°",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
161`,nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"â
vendor: 6,268 bytes, line 161
161‹ ",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"â«®",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"â§´",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"Å¡",Scaron:"Å ",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",
vendor: 5,581 bytes, line 161
161solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},
161p={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},y={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},_=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],b=String.fromCharCode,x={},w=x.hasOwnProperty,D=function(ee,le){return w.call(ee,le)},O=function(ee,le){for(var xe=-1,J=ee.length;++xe<J;)if(ee[xe]==le)return!0;return!1},M=function(ee,le){if(!ee)return le;var xe={},J;for(J in le)xe[J]=D(ee,J)?ee[J]:le[J];return xe},S=function(ee,le){var xe="";return ee>=55296&&ee<=57343||ee>1114111?(le&&z("character reference outside the permissible Unicode range"),"�"):D(y,ee)?(le&&z("disallowed character reference"),y[ee]):(le&&O(_,ee)&&z("disallowed character reference"),ee>65535&&(ee-=65536,xe+=b(ee>>>10&1023|55296),ee=56320|ee&1023),xe+=b(ee),xe)},B=function(ee){return"&#x"+ee.toString(16).toUpperCase()+";"},V=function(ee){return"&#"+ee+";"},z=function(ee){throw Error("Parse error: "+ee)},Q=function(ee,le){le=M(le,Q.options);var xe=le.strict;xe&&g.test(ee)&&z("forbidden code point");var J=le.encodeEverything,ye=le.useNamedReferences,H=le.allowUnsafeSymbols,ie=le.decimal?V:B,_e=function(W){return ie(W.charCodeAt(0))};return J?(ee=ee.replace(o,function(W){return ye&&D(l,W)?"&"+l[W]+";":_e(W)}),ye&&(ee=ee.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),ye&&(ee=ee.replace(c,function(W){return"&"+l[W]+";"}))):ye?(H||(ee=ee.replace(d,function(W){return"&"+l[W]+";"})),ee=ee.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),ee=ee.replace(c,function(W){return"&"+l[W]+";"})):H||(ee=ee.replace(d,_e)),ee.replace(s,function(W){var be=W.charCodeAt(0),ge=W.charCodeAt(1),De=(be-55296)*1024+ge-56320+65536;return ie(De)}).replace(u,_e)};Q.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var Z=function(ee,le){le=M(le,Z.options);var xe=le.strict;return xe&&h.test(ee)&&z("malformed character reference"),ee.replace(v,function(J,ye,H,ie,_e,W,be,ge,De){var ae,Fe,U,K,ue,Se;return ye?(ue=ye,m[ue]):H?(ue=H,Se=ie,Se&&le.isAttributeValue?(xe&&Se=="="&&z("`&` did n
161ot start a character reference"),J):(xe&&z("named character reference was not terminated by a semicolon"),p[ue]+(Se||""))):_e?(U=_e,Fe=W,xe&&!Fe&&z("character reference was not terminated by a semicolon"),ae=parseInt(U,10),S(ae,xe)):be?(K=be,Fe=ge,xe&&!Fe&&z("character reference was not terminated by a semicolon"),ae=parseInt(K,16),S(ae,xe)):(xe&&z("named character reference was not terminated by a semicolon"),J)})};Z.options={isAttributeValue:!1,strict:!1};var q=function(ee){return ee.replace(d,function(le){return f[le]})},te={version:"1.2.0",encode:Q,decode:Z,escape:q,unescape:Z};if(i&&!i.nodeType)if(r)r.exports=te;else for(var $ in te)D(te,$)&&(i[$]=te[$]);else n.he=te})(Bj)})(Pc,Pc.exports)),Pc.exports}Vj();var Zg,ZA;function Hj(){if(ZA)return Zg;ZA=1;var t=4,e=.001,n=1e-7,i=10,r=11,a=1/(r-1),s=typeof Float32Array=="function";function o(v,m){return 1-3*m+3*v}function u(v,m){return 3*m-6*v}function c(v){return 3*v}function l(v,m,p){return((o(m,p)*v+u(m,p))*v+c(m))*v}function d(v,m,p){return 3*o(m,p)*v*v+2*u(m,p)*v+c(m)}function f(v,m,p,y,_){var b,x,w=0;do x=m+(p-m)/2,b=l(x,y,_)-v,b>0?p=x:m=x;while(Math.abs(b)>n&&++w<i);return x}function h(v,m,p,y){for(var _=0;_<t;++_){var b=d(m,p,y);if(b===0)return m;var x=l(m,p,y)-v;m-=x/b}return m}function g(v){return v}return Zg=function(m,p,y,_){if(!(0<=m&&m<=1&&0<=y&&y<=1))throw new Error("bezier x values must be in [0, 1] range");if(m===p&&y===_)return g;for(var b=s?new Float32Array(r):new Array(r),x=0;x<r;++x)b[x]=l(x*a,m,y);function w(D){for(var O=0,M=1,S=r-1;M!==S&&b[M]<=D;++M)O+=a;--M;var B=(D-b[M])/(b[M+1]-b[M]),V=O+B*a,z=d(V,m,y);return z>=e?h(D,V,m,y):z===0?V:f(D,O,O+a,m,y)}return function(O){return O===0?0:O===1?1:l(w(O),p,_)}},Zg}var zj=Hj();const $j=vf(zj);var Jg,JA;function Wj(){if(JA)return Jg;JA=1;var t="complete",e="canceled";function n(d){if("requestAnimationFrame"in window)return window.requestAnimationFrame(d);setTimeout(d,16)}function i(d,f,h){d.self===d?d.scrollTo(f,h):(d.scrollLeft=f,d.scrollTop=h)}function r(d,f){var h=d.align,g=d.target,v=g.getBoundingClientRect(),m,p,y,_,b,x,w,D=h&&h.left!=null?h.left:.5,O=h&&h.top!=null?h.top:.5,M=h&&h.leftOffset!=null?h.leftOffset:0,S=h&&h.topOffset!=null?h.topOffset:0,B=D,V=O;if(d.isWindow(f))x=Math.min(v.width,f.innerWidth),w=Math.min(v.height,f.innerHeight),p=v.left+f.pageXOffset-f.innerWidth*B+x*B,y=v.top+f.pageYOffset-f.innerHeight*V+w*V,p-=M,y-=S,p=d.align.lockX?f.pageXOffset:p,y=d.align.lockY?f.pageYOffset:y,_=p-f.pageXOffset,b=y-f.pageYOffset;else{x=v.width,w=v.height,m=f.getBoundingClientRect();var z=v.left-(m.left-f.scrollLeft),Q=v.top-(m.top-f.scrollTop);p=z+x*B-f.clientWidth*B,y=Q+w*V-f.clientHeight*V,p-=M,y-=S,p=Math.max(Math.min(p,f.scrollWidth-f.clientWidth),0),y=Math.max(Math.min(y,f.scrollHeight-f.clientHeight),0),p=d.align.lockX?f.scrollLeft:p,y=d.align.lockY?f.scrollTop:y,_=p-f.scrollLeft,b=y-f.scrollTop}return{x:p,y,differenceX:_,differenceY:b}}function a(d){var f=d._scrollSettings;if(f){var h=f.maxSynchronousAlignments,g=r(f,d),v=Date.now()-f.startTime,m=Math.min(1/f.time*v,1);if(f.endIterations>=h)return i(d,g.x,g.y),d._scrollSettings=null,f.end(t);var p=1-f.ease(m);if(i(d,g.x-g.differenceX*p,g.y-g.differenceY*p),v>=f.time){f.endIterations++,f.scrollAncestor&&a(f.scrollAncestor),a(d);return}n(a.bind(null,d))}}function s(d){return d.self===d}function o(d,f,h,g,v){var m=!f._scrollSettings,p=f._scrollSettings,y=Date.now(),_,b={passive:!0};p&&p.end(e);function x(D){f._scrollSettings=null,f.parentElement&&f.parentElement._scrollSettings&&f.parentElement._scrollSettings.end(D),h.debug&&console.log("Scrolling ended with type",D,"for",f),v(D),_&&(f.removeEventListener("touchstart",_,b),f.removeEventListener("wheel",_,b))}var w=h.maxSynchronousAlignments;return w==null&&(w=3),f._scrollSettings={startTime:y,endIterations:0,target:d,time:h.time,ease:h.ease,align:h.align,isWindow:h.isWindow||s,maxSynchronousAlignments:w,end:x,scrollAncestor:g},(!("cancellable"in h)||h.cancellable)&&(_=x.bind(null,e),f.addEventListener("touchstart",_,b),f.addEventListener("wheel",_,b)),m&&a(f),_}function u(d){return"pageXOffset"in d||(d.scrollHeight!==d.clientHeight||d.scrollWidth!==d.clientWidth)&&getComputedStyle(d).overflow!=="hidden"}function c(){return!0}function l(d){if(d.assignedSlot)return l(d.assignedSlot);if(d.parentElement)return d.parentElement.tagName.toLowerCase()==="body"?d.parentElement.ownerDocument.defaultView||d.parentElement.ownerDocument.ownerWindow:d.parentElement;if(d.getRootNode){var f=d.getRootNode();
161if(f.nodeType===11)return f.host}}return Jg=function(d,f,h){if(!d)return;typeof f=="function"&&(h=f,f=null),f||(f={}),f.time=isNaN(f.time)?1e3:f.time,f.ease=f.ease||function(b){return 1-Math.pow(1-b,b/2)},f.align=f.align||{};var g=l(d),v=1;function m(b){v--,v||h&&h(b)}var p=f.validTarget||c,y=f.isScrollable;f.debug&&(console.log("About to scroll to",d),g||console.error("Target did not have a parent, is it mounted in the DOM?"));for(var _=[];g;)if(f.debug&&console.log("Scrolling parent node",g),p(g,v)&&(y?y(g,u):u(g))&&(v++,_.push(g)),g=l(g),!g){m(t);break}return _.reduce((b,x,w)=>o(d,x,f,_[w+1],m),null)},Jg}var Gj=Wj();const qj=vf(Gj),jj=$j(.5,0,.4,1);function Lce(){return new Promise(t=>{requestAnimationFrame(t)})}function Rce(t,e={}){return new Promise(n=>{qj(t,{...e},i=>{n(i)})})}function Xj(t){return new Promise(e=>{setTimeout(e,t)})}async function Ice(t,e={}){if(t=Hn(t),!t)return;const{alignSelf:n=0,align:i=0,force:r=!1,advanced:a={}}=e;if(!r&&t.matches(":hover"))return;const s=document.querySelector("#page"),o=t.getBoundingClientRect(),u=s.getBoundingClientRect().bottom-window.innerHeight;let c=o.top-window.innerHeight*i+o.height*n;return c=Math.min(c,u)+window.scrollY,await uR(c,{speed:1500,easing:l=>jj(l),...a})}function Pce(t,e,n=parseFloat){if(!t)return;const r=window.getComputedStyle(t).getPropertyValue(e);return n?n(r):r}function lR(t){return t?"":void 0}function Qg(t){let e=ze(t);return typeof e=="function"&&(e=e()),e}function Yj(t,e){return t.replace(/\[(\w+)\]/g,(n,i)=>e[i]||n)}function kce(){const t=window.AudioContext||window.webkitAudioContext;return t?new t().state==="suspended"?(console.log("AudioContext is suspended. It might require user interaction."),!1):(console.log("AudioContext is allowed and running."),!0):(console.warn("AudioContext is not supported in this browser."),!1)}function Kj(t,e,n){return n*(e-t)+t}const ev=2*Math.PI,Zj=.5*Math.PI;function Jj(t,e,n,i=100,r=1/0,a=0){let s=2/(i||1e-5),o=s*a,u=1/(1+o+.48*o*o+.235*o*o*o),c=t-e,l=e,d=r*i;c=Kb(c,-d,d);let f=(n+s*c)*a;n=(n-s*f)*u;let h=(e=t-c)+(c+f)*u;return l-t>0==h>l&&(h=l,n=(h-l)/a),{value:h,velocity:n}}function cR(t,e,n,i,r){return(t-e)/(n-e)*(r-i)+i}function Kb(t,e,n){return e>n&&([e,n]=[n,e]),Math.min(Math.max(t,e),n)}function Qj(t,e,n,i,r){return cR(Kb(t,e,n),e,n,i,r)}function tv(t,e){return(t%e+e)%e}function QA(t){return!(isNaN(t)||t===null)}var eS=Object.freeze({__proto__:null,lerp:Kj,lerpInv:function(t,e,n){return(n-t)/(e-t)},TAU:ev,QUARTER_PI:Zj,toRadians:function(t){return t*(Math.PI/180)},toDegrees:function(t){return t*(180/Math.PI)},getDeltaAngle:function(t,e){const n=tv(t-e,ev),i=tv(e-t,ev);return n<i?-n:i},lerpExp:function(t,e,n){return t*Math.pow(e/t,n)},lerpScale:function(t,e,n){return 1/(n*(1/e-1/t)+1/t)},smoothDamp:Jj,map:cR,clamp:Kb,mapClamped:Qj,modulo:tv,dist:function(t,e,n,i){return Math.hypot(t-n,e-i)},quotient:function(t,e){return~~(t/e)*e},random:function t(e,n){if(arguments.length===1){if(Array.isArray(e))return e[Math.floor(t(e.length))];if(typeof e=="object")return t(Object.values(e));if(QA(e))return Math.random()*e}else if(arguments.length===0)return Math.random();return Math.random()*(n-e)+e},isNumber:QA}),po={},sh={},nv,tS;function eX(){if(tS)return nv;tS=1;function t(r){var a=new i(r),s=a.readChunk();if(s.id!="MThd")throw"Bad MIDI file.  Expected 'MHdr', got: '"+s.id+"'";for(var o=e(s.data),u=[],c=0;!a.eof()&&c<o.numTracks;c++){var l=a.readChunk();if(l.id!="MTrk")throw"Bad MIDI file.  Expected 'MTrk', got: '"+l.id+"'";var d=n(l.data);u.push(d)}return{header:o,tracks:u}}function e(r){var a=new i(r),s=a.readUInt16(),o=a.readUInt16(),u={format:s,numTracks:o},c=a.readUInt16();return c&32768?(u.framesPerSecond=256-(c>>8),u.ticksPerFrame=c&255):u.ticksPerBeat=c,u}function n(r){for(var a=new i(r),s=[];!a.eof();){var o=c();s.push(o)}return s;var u;function c(){var l={};l.deltaTime=a.readVarInt();var d=a.readUInt8();if((d&240)===240)if(d===255){l.meta=!0;var f=a.readUInt8(),h=a.readVarInt();switch(f){case 0:if(l.type="sequenceNumber",h!==2)throw"Expected length for sequenceNumber event is 2, got "+h;return l.number=a.readUInt16(),l;case 1:return l.type="text",l.text=a.readString(h),l;case 2:return l.type="copyrightNotice",l.text=a.readString(h),l;case 3:return l.type="trackName",l.text=a.readString(h),l;case 4:return l.type="instrumentName",l.text=a.readString(h),l;case 5:return l.type="lyrics",l.text=a.readString(h),l;case 6:return l.type="marker",l.text=a.readString(h),l;case 7:return l.type="cuePoint",l.text=a.readString(h),l;case 32:if(l.type="channelPrefix",h!=1)throw"Expected length for channelPrefix event is 1, got "+h;return l.channel=a.readUInt8(),l;case 33:if(l.type="portPrefix",h!=1)throw"Expected length for portPrefix event is 1, got "+h;return l.port=a.readUInt8(),l;case 47:if(l.type="endOfTrack",h!=0)throw"Expected length for endOfTrack event is 0, got "+h;return l;case 81:if(l.type="setTempo",h!=3)throw"Expected length for setTempo event is 3, got "+h;return l.microsecondsPerBeat=a.readUInt24(),l;case 84:if(l.type="smpteOffset",h!=5)throw"Expected length for smpteOffset event is 5, got "+h;var g=a.readUInt8(),v={0:24,32:25,64:29,96:30};return l.frameRate=v[g&96],l.hour=g&31,l.min=a.readUInt8(),l.sec=a.readUInt8(),l.frame=a.readUInt8(),l.subFrame=a.readUInt8(),l;case 88:if(l.type="timeSignature",h!=2&&h!=4)throw"Expected length for timeSignature event is 4 or 2, got "+h;return l.numerator=a.readUInt8(),l.denominator=1<<a.readUInt8(),h===4?(l.metronome=a.readUInt8(),l.thirtyseconds=a.readUInt8()):(l.metronome=36,l.thirtyseconds=8),l;case 89:if(l.type="keySignature",h!=2)throw"Expected length for keySignature event is 2, got "+h;return l.key=a.readInt8(),l.scale=a.readUInt8(),l;case 127:return l.type="sequencerSpecific",l.data=a.readBytes(h),l;default:return l.type="unknownMeta",l.data=a.readBytes(h),l.metatypeByte=f,l}}else if(d==240){l.type="sysEx";var h=a.readVarInt();return l.data=a.readBytes(h),l}else if(d==247){l.type="endSysEx";var h=a.readVarInt();return l.data=a.readBytes(h),l}else throw"Unrecognised MIDI event type byte: "+d;else{var m;if((d&128)===0){if(u===null)throw"Running status byte encountered before status byte";m=d,d=u,l.running=!0}else m=a.readUInt8(),u=d;var p=d>>4;switch(l.channel=d&15,p){case 8:return l.type="noteOff",l.noteNumber=m,l.velocity=a.readUInt8(),l;case 9:var y=a.readUInt8();return l.type=y===0?"noteOff":"noteOn",l.noteNumber=m,l.velocity=y,y===0&&(l.byte9=!0),l;case 10:return l.type="noteAftertouch",l.noteNumber=m,l.amount=a.readUInt8(),l;case 11:return l.type="controller",l.controllerType=m,l.value=a.readUInt8(),l;case 12:return l.type="programChange",l.programNumber=m,l;case 13:return l.type="channelAftertouch",l.amount=m,l;case 14:return l.type="pitchBend",l.value=m+(a.readUInt8()<<7)-8192,l;default:throw"Unrecognised MIDI event type: "+p}}}}function i(r){this.buffer=r,this.bufferLen=this.buffer.length,this.pos=0}return i.prototype.eof=function(){return this.pos>=this.bufferLen},i.prototype.readUInt8=function(){var r=this.buffer[this.pos];return this.pos+=1,r},i.prototype.readInt8=function(){var r=this.readUInt8();return r&128?r-256:r},i.prototype.readUInt16=function(){var r=this.readUInt8(),a=this.readUInt8();return(r<<8)+a},i.prototype.readInt16=function(){var r=this.readUInt16();return r&32768?r-65536:r},i.prototype.readUInt24=function(){var r=this.readUInt8(),a=this.readUInt8(),s=this.readUInt8();return(r<<16)+(a<<8)+s},i.prototype.readInt24=function(){var r=this.readUInt24();return r&8388608?r-16777216:r},i.prototype.readUInt32=function(){var r=this.readUInt8(),a=this.readUInt8(),s=this.readUInt8(),o=this.readUInt8();return(r<<24)+(a<<16)+(s<<8)+o},i.prototype.readBytes=function(r){var a=this.buffer.slice(this.pos,this.pos+r);return this.pos+=r,a},i.prototype.readString=function(r){var a=this.readBytes(r);return String.fromCharCode.apply(null,a)},i.prototype.readVarInt=function(){for(var r=0;!this.eof();){var a=this.readUInt8();if(a&128)r+=a&127,r<<=7;else return r+a}return r},i.prototype.readChunk=function(){var r=this.readString(4),a=this.readUInt32(),s=this.readBytes(a);return{id:r,length:a,data:s}},nv=t,nv}var iv,nS;function tX(){if(nS)return iv;nS=1;function t(a,s){if(typeof a!="object")throw"Invalid MIDI data";s=s||{};var o=a.header||{},u=a.tracks||[],c,l=u.length,d=new r;for(e(d,o,l),c=0;c<l;c++)n(d,u[c],s);return d.buffer}function e(a,s,o){var u=s.format==null?1:s.format,c=128;s.timeDivision?c=s.timeDivision:s.ticksPerFrame&&s.framesPerSecond?c=-(s.framesPerSecond&255)<<8|s.ticksPerFrame&255:s.ticksPerBeat&&(c=s.ticksPerBeat&32767);var l=new r;l.writeUInt16(u),l.writeUInt16(o),l.writeUInt16(c),a.writeChunk("MThd",l.buffer)}function n(a,s,o){var u=new r,c,l=s.length,d=null;for(c=0;c<l;c++)(o.running===!1||!o.running&&!s[c].running)&&(d=null),d=i(u,s[c],d,o.useByte9ForNoteOff);a.writeChunk("MTrk",u.buffer)}function i(a,s,o,u){var c=s.type,l=s.deltaTime,d=s.text||"",f=s.data||[],h=null;switch(a.writeVarInt(l),c){case"sequenceNumber":a.writeUInt8(255),a.writeUInt8(0),a.writeVarInt(2),a.writeUInt16(s.number);break;case"text":a.writeUInt8(255),a.writeUInt8(1),a.writeVarInt(d.length),a.writeString(d);break;case"copyrightNotice":a.writeUInt8(255),a.writeUInt8(2),a.writeVarInt(d.length),a.writeString(d);break;case"trackName":a.writeUInt8(255),a.writeUInt8(3),a.writeVarInt(d.length),a.writeString(d);break;case"instrumentName":a.writeUInt8(255),a.writeUInt8(4),a.writeVarInt(d.length),a.writeString(d);break;case"lyrics":a.writeUInt8(255),a.writeUInt8(5),a.writeVarInt(d.length),a.writeString(d);break;case"marker":a.writeUInt8(255),a.writeUInt8(6),a.writeVarInt(d.length),a.writeString(d);break;case"cuePoint":a.writeUInt8(255),a.writeUInt8(7),a.writeVarInt(d.length),a.writeString(d);break;case"channelPrefix":a.writeUInt8(255),a.writeUInt8(32),a.writeVarInt(1),a.writeUInt8(s.channel);break;case"portPrefix":a.writeUInt8(255),a.writeUInt8(33),a.writeVarInt(1),a.writeUInt8(s.port);break;case"endOfTrack":a.writeUInt8(255),a.writeUInt8(47),a.writeVarInt(0);break;case"setTempo":a.writeUInt8(255),a.writeUInt8(81),a.writeVarInt(3),a.writeUInt24(s.microsecondsPerBeat);break;case"smpteOffset":a.writeUInt8(255),a.writeUInt8(84),a.writeVarInt(5);var g={24:0,25:32,29:64,30:96},v=s.hour&31|g[s.frameRate];a.writeUInt8(v),a.writeUInt8(s.min),a.writeUInt8(s.sec),a.writeUInt8(s.frame),a.writeUInt8(s.subFrame);break;case"timeSignature":a.writeUInt8(255),a.writeUInt8(88),a.writeVarInt(4),a.writeUInt8(s.numerator);var m=Math.floor(Math.log(s.denominator)/Math.LN2)&255;a.writeUInt8(m),a.writeUInt8(s.metronome),a.writeUInt8(s.thirtyseconds||8);break;case"keySignature":a.writeUInt8(255),a.writeUInt8(89),a.writeVarInt(2),a.writeInt8(s.key),a.writeUInt8(s.scale);break;case"sequencerSpecific":a.writeUInt8(255),a.writeUInt8(127),a.writeVarInt(f.length),a.writeBytes(f);break;case"unknownMeta":s.metatypeByte!=null&&(a.writeUInt8(255),a.writeUInt8(s.metatypeByte),a.writeVarInt(f.length),a.writeBytes(f));break;case"sysEx":a.writeUInt8(240),a.writeVarInt(f.length),a.writeBytes(f);break;case"endSysEx":a.writeUInt8(247),a.writeVarInt(f.length),a.writeBytes(f);break;case"noteOff":var p=u!==!1&&s.byte9||u&&s.velocity==0?144:128;h=p|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.noteNumber),a.writeUInt8(s.velocity);break;case"noteOn":h=144|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.noteNumber),a.writeUInt8(s.velocity);break;case"noteAftertouch":h=160|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.noteNumber),a.writeUInt8(s.amount);break;case"controller":h=176|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.controllerType),a.writeUInt8(s.value);break;case"programChange":h=192|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.programNumber);break;case"channelAftertouch":h=208|s.channel,h!==o&&a.writeUInt8(h),a.writeUInt8(s.amount);break;case"pitchBend":h=224|s.channel,h!==o&&a.writeUInt8(h);var y=8192+s.value,_=y&127,b=y>>7&127;a.writeUInt8(_),a.writeUInt8(b);break;default:throw"Unrecognized event type: "+c}return h}function r(){this.buffer=[]}return r.prototype.writeUInt8=function(a){this.buffer.push(a&255)},r.prototype.writeInt8=r.prototype.writeUInt8,r.prototype.writeUInt16=function(a){var s=a>>8&255,o=a&255;this.writeUInt8(s),this.writeUInt8(o)},r.prototype.writeInt16=r.prototype.writeUInt16,r.prototype.writeUInt24=function(a){var s=a>>16&255,o=a>>8&255,u=a&255;this.writeUInt8(s),this.writeUInt8(o),this.writeUInt8(u)},r.prototype.writeInt24=r.prototype.writeUInt24,r.prototype.writeUInt32=function(a){var s=a>>24&255,o=a>>16&255,u=a>>8&255,c=a&255;this.writeUInt8(s),this.writeUInt8(o),this.writeUInt8(u),this.writeUInt8(c)},r.prototype.writeInt32=r.prototype.writeUInt32,r.prototype.writeBytes=function(a){this.buffer=this.buffer.concat(Array.prototype.slice.call(a,0))},r.prototype.writeString=function(a){var s,o=a.length,u=[];for(s=0;s<o;s++)u.push(a.codePointAt(s));this.writeBytes(u)}
161,r.prototype.writeVarInt=function(a){if(a<0)throw"Cannot write negative variable-length integer";if(a<=127)this.writeUInt8(a);else{var s=a,o=[];for(o.push(s&127),s>>=7;s;){var u=s&127|128;o.push(u),s>>=7}this.writeBytes(o.reverse())}},r.prototype.writeChunk=function(a,s){this.writeString(a),this.writeUInt32(s.length),this.writeBytes(s)},iv=t,iv}var iS;function dR(){return iS||(iS=1,sh.parseMidi=eX(),sh.writeMidi=tX()),sh}var rv={},mo={},rS;function fR(){if(rS)return mo;rS=1,Object.defineProperty(mo,"__esModule",{value:!0}),mo.insert=mo.search=void 0;function t(n,i,r){r===void 0&&(r="ticks");var a=0,s=n.length,o=s;if(s>0&&n[s-1][r]<=i)return s-1;for(;a<o;){var u=Math.floor(a+(o-a)/2),c=n[u],l=n[u+1];if(c[r]===i){for(var d=u;d<n.length;d++){var f=n[d];f[r]===i&&(u=d)}return u}else{if(c[r]<i&&l[r]>i)return u;c[r]>i?o=u:c[r]<i&&(a=u+1)}}return-1}mo.search=t;function e(n,i,r){if(r===void 0&&(r="ticks"),n.length){var a=t(n,i[r],r);n.splice(a+1,0,i)}else n.push(i)}return mo.insert=e,mo}var aS;function b1(){return aS||(aS=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Header=t.keySignatureKeys=void 0;var e=fR(),n=new WeakMap;t.keySignatureKeys=["Cb","Gb","Db","Ab","Eb","Bb","F","C","G","D","A","E","B","F#","C#"];var i=(function(){function r(a){var s=this;if(this.tempos=[],this.timeSignatures=[],this.keySignatures=[],this.meta=[],this.name="",n.set(this,480),a){n.set(this,a.header.ticksPerBeat),a.tracks.forEach(function(u){u.forEach(function(c){c.meta&&(c.type==="timeSignature"?s.timeSignatures.push({ticks:c.absoluteTime,timeSignature:[c.numerator,c.denominator]}):c.type==="setTempo"?s.tempos.push({bpm:6e7/c.microsecondsPerBeat,ticks:c.absoluteTime}):c.type==="keySignature"&&s.keySignatures.push({key:t.keySignatureKeys[c.key+7],scale:c.scale===0?"major":"minor",ticks:c.absoluteTime}))})});var o=0;a.tracks[0].forEach(function(u){o+=u.deltaTime,u.meta&&(u.type==="trackName"?s.name=u.text:(u.type==="text"||u.type==="cuePoint"||u.type==="marker"||u.type==="lyrics")&&s.meta.push({text:u.text,ticks:o,type:u.type}))}),this.update()}}return r.prototype.update=function(){var a=this,s=0,o=0;this.tempos.sort(function(u,c){return u.ticks-c.ticks}),this.tempos.forEach(function(u,c){var l=c>0?a.tempos[c-1].bpm:a.tempos[0].bpm,d=u.ticks/a.ppq-o,f=60/l*d;u.time=f+s,s=u.time,o+=d}),this.timeSignatures.sort(function(u,c){return u.ticks-c.ticks}),this.timeSignatures.forEach(function(u,c){var l=c>0?a.timeSignatures[c-1]:a.timeSignatures[0],d=(u.ticks-l.ticks)/a.ppq,f=d/l.timeSignature[0]/(l.timeSignature[1]/4);l.measures=l.measures||0,u.measures=f+l.measures})},r.prototype.ticksToSeconds=function(a){var s=(0,e.search)(this.tempos,a);if(s!==-1){var o=this.tempos[s],u=o.time,c=(a-o.ticks)/this.ppq;return u+60/o.bpm*c}else{var l=a/this.ppq;return 60/120*l}},r.prototype.ticksToMeasures=function(a){var s=(0,e.search)(this.timeSignatures,a);if(s!==-1){var o=this.timeSignatures[s],u=(a-o.ticks)/this.ppq;return o.measures+u/(o.timeSignature[0]/o.timeSignature[1])/4}else return a/this.ppq/4},Object.defineProperty(r.prototype,"ppq",{get:function(){return n.get(this)},enumerable:!1,configurable:!0}),r.prototype.secondsToTicks=function(a){var s=(0,e.search)(this.tempos,a,"time");if(s!==-1){var o=this.tempos[s],u=o.time,c=a-u,l=c/(60/o.bpm);return Math.round(o.ticks+l*this.ppq)}else{var d=a/.5;return Math.round(d*this.ppq)}},r.prototype.toJSON=function(){return{keySignatures:this.keySignatures,meta:this.meta,name:this.name,ppq:this.ppq,tempos:this.tempos.map(function(a){return{bpm:a.bpm,ticks:a.ticks}}),timeSignatures:this.timeSignatures}},r.prototype.fromJSON=function(a){this.name=a.name,this.tempos=a.tempos.map(function(s){return Object.assign({},s)}),this.timeSignatures=a.timeSignatures.map(function(s){return Object.assign({},s)}),this.keySignatures=a.keySignatures.map(function(s){return Object.assign({},s)}),this.meta=a.meta.map(function(s){return Object.assign({},s)}),n.set(this,a.ppq),this.update()},r.prototype.setTempo=function(a){this.tempos=[{bpm:a,ticks:0}],this.update()},r})();t.Header=i})(rv)),rv}var dc={},av={},sS;function hR(){return sS||(sS=1,(function(t){Object.defineProperty(t,"__esMo
161dule",{value:!0}),t.ControlChange=t.controlChangeIds=t.controlChangeNames=void 0,t.controlChangeNames={1:"modulationWheel",2:"breath",4:"footController",5:"portamentoTime",7:"volume",8:"balance",10:"pan",64:"sustain",65:"portamentoTime",66:"sostenuto",67:"softPedal",68:"legatoFootswitch",84:"portamentoControl"},t.controlChangeIds=Object.keys(t.controlChangeNames).reduce(function(r,a){return r[t.controlChangeNames[a]]=a,r},{});var e=new WeakMap,n=new WeakMap,i=(function(){function r(a,s){e.set(this,s),n.set(this,a.controllerType),this.ticks=a.absoluteTime,this.value=a.value}return Object.defineProperty(r.prototype,"number",{get:function(){return n.get(this)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return t.controlChangeNames[this.number]?t.controlChangeNames[this.number]:null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"time",{get:function(){var a=e.get(this);return a.ticksToSeconds(this.ticks)},set:function(a){var s=e.get(this);this.ticks=s.secondsToTicks(a)},enumerable:!1,configurable:!0}),r.prototype.toJSON=function(){return{number:this.number,ticks:this.ticks,time:this.time,value:this.value}},r})();t.ControlChange=i})(av)),av}var fc={},oS;function nX(){if(oS)return fc;oS=1,Object.defineProperty(fc,"__esModule",{value:!0}),fc.createControlChanges=void 0;var t=hR();function e(){return new Proxy({},{get:function(n,i){if(n[i])return n[i];if(t.controlChangeIds.hasOwnProperty(i))return n[t.controlChangeIds[i]]},set:function(n,i,r){return t.controlChangeIds.hasOwnProperty(i)?n[t.controlChangeIds[i]]=r:n[i]=r,!0}})}return fc.createControlChanges=e,fc}var hc={},uS;function iX(){if(uS)return hc;uS=1,Object.defineProperty(hc,"__esModule",{value:!0}),hc.PitchBend=void 0;var t=new WeakMap,e=(function(){function n(i,r){t.set(this,r),this.ticks=i.absoluteTime,this.value=i.value}return Object.defineProperty(n.prototype,"time",{get:function(){var i=t.get(this);return i.ticksToSeconds(this.ticks)},set:function(i){var r=t.get(this);this.ticks=r.secondsToTicks(i)},enumerable:!1,configurable:!0}),n.prototype.toJSON=function(){return{ticks:this.ticks,time:this.time,value:this.value}},n})();return hc.PitchBend=e,hc}var pc={},Ca={},lS;function rX(){return lS||(lS=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.DrumKitByPatchID=Ca.InstrumentFamilyByID=Ca.instrumentByPatchID=void 0,Ca.instrumentByPatchID=["acoustic grand piano","bright acoustic piano","electric grand piano","honky-tonk piano","electric piano 1","electric piano 2","harpsichord","clavi","celesta","glockenspiel","music box","vibraphone","marimba","xylophone","tubular bells","dulcimer","drawbar organ","percussive organ","rock organ","church organ","reed organ","accordion","harmonica","tango accordion","acoustic guitar (nylon)","acoustic guitar (steel)","electric guitar (jazz)","electric guitar (clean)","electric guitar (muted)","overdriven guitar","distortion guitar","guitar harmonics","acoustic bass","electric bass (finger)","electric bass (pick)","fretless bass","slap bass 1","slap bass 2","synth bass 1","synth bass 2","violin","viola","cello","contrabass","tremolo strings","pizzicato strings","orchestral harp","timpani","string ensemble 1","string ensemble 2","synthstrings 1","synthstrings 2","choir aahs","voice oohs","synth voice","orchestra hit","trumpet","trombone","tuba","muted trumpet","french horn","brass section","synthbrass 1","synthbrass 2","soprano sax","alto sax","tenor sax","baritone sax","oboe","english horn","bassoon","clarinet","piccolo","flute","recorder","pan flute","blown bottle","shakuhachi","whistle","ocarina","lead 1 (square)","lead 2 (sawtooth)","lead 3 (calliope)","lead 4 (chiff)","lead 5 (charang)","lead 6 (voice)","lead 7 (fifths)","lead 8 (bass + lead)","pad 1 (new age)","pad 2 (warm)","pad 3 (polysynth)","pad 4 (choir)","pad 5 (bowed)","pad 6 (metallic)","pad 7 (halo)","pad 8 (sweep)","fx 1 (rain)","fx 2 (soundtrack)","fx 3 (crystal)","fx 4 (atmosphere)","fx 5 (brightness)","fx 6 (goblins)","fx 7 (echoes)","fx 8 (sci-fi)","sitar","banjo","shamisen","koto","kalimba","bag pipe","fiddle","shanai","tinkle bell","agogo","steel drums","woodblock","taiko drum","melodic tom","synth drum","reverse cymbal","guitar fret noise","breath noise","seashore","bird tweet","telephone ring","helicopter","applause","gunshot"],Ca.InstrumentFamilyByID=["piano","chromatic percussion","organ","guitar","bass","strings","ensemble","brass","reed","pipe","synth lead","synth pad","synth effects","world","percussive","sound effects"],Ca.DrumKitByPatchID={0:"standard kit",8:"room kit",16:"power kit",24:"electronic kit",25:"tr-808 kit",32:"jazz kit",40:"brush kit",48:"orchestra kit",56:"sound fx kit"}),Ca}var cS;function aX(){if(cS)return pc;cS=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.Instrument=void 0;var t=rX(),e=new WeakMap,n=(function(){function i(r,a){if(this.number=0,e.set(this,a),this.number=0,r){var s=r.find(function(o){return o.type==="programChange"});s&&(this.number=s.programNumber)}}return Object.defineProperty(i.prototype,"name",{get:function(){return this.percussion?t.DrumKitByPatchID[this.number]:t.instrumentByPatchID[this.number]},set:function(r){var a=t.instrumentByPatchID.indexOf(r);a!==-1&&(this.number=a)}
161,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"family",{get:function(){return this.percussion?"drums":t.InstrumentFamilyByID[Math.floor(this.number/8)]},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"percussion",{get:function(){var r=e.get(this);return r.channel===9},enumerable:!1,configurable:!0}),i.prototype.toJSON=function(){return{family:this.family,number:this.number,name:this.name}},i.prototype.fromJSON=function(r){this.number=r.number},i})();return pc.Instrument=n,pc}var mc={},dS;function sX(){if(dS)return mc;dS=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.Note=void 0;function t(s){var o=Math.floor(s/12)-1;return e(s)+o.toString()}function e(s){var o=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],u=s%12;return o[u]}function n(s){var o=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];return o.indexOf(s)}var i=(function(){var s=/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i,o={cbb:-2,cb:-1,c:0,"c#":1,cx:2,dbb:0,db:1,d:2,"d#":3,dx:4,ebb:2,eb:3,e:4,"e#":5,ex:6,fbb:3,fb:4,f:5,"f#":6,fx:7,gbb:5,gb:6,g:7,"g#":8,gx:9,abb:7,ab:8,a:9,"a#":10,ax:11,bbb:9,bb:10,b:11,"b#":12,bx:13};return function(u){var c=s.exec(u),l=c[1],d=c[2],f=o[l.toLowerCase()];return f+(parseInt(d,10)+1)*12}})(),r=new WeakMap,a=(function(){function s(o,u,c){r.set(this,c),this.midi=o.midi,this.velocity=o.velocity,this.noteOffVelocity=u.velocity,this.ticks=o.ticks,this.durationTicks=u.ticks-o.ticks}return Object.defineProperty(s.prototype,"name",{get:function(){return t(this.midi)},set:function(o){this.midi=i(o)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"octave",{get:function(){return Math.floor(this.midi/12)-1},set:function(o){var u=o-this.octave;this.midi+=u*12},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pitch",{get:function(){return e(this.midi)},set:function(o){this.midi=12*(this.octave+1)+n(o)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"duration",{get:function(){var o=r.get(this);return o.ticksToSeconds(this.ticks+this.durationTicks)-o.ticksToSeconds(this.ticks)},set:function(o){var u=r.get(this),c=u.secondsToTicks(this.time+o);this.durationTicks=c-this.ticks},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"time",{get:function(){var o=r.get(this);return o.ticksToSeconds(this.ticks)},set:function(o){var u=r.get(this);this.ticks=u.secondsToTicks(o)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bars",{get:function(){var o=r.get(this);return o.ticksToMeasures(this.ticks)},enumerable:!1,configurable:!0}),s.prototype.toJSON=function(){return{duration:this.duration,durationTicks:this.durationTicks,midi:this.midi,name:this.name,ticks:this.ticks,time:this.time,velocity:this.velocity}},s})();return mc.Note=a,mc}var fS;function hS(){if(fS)return dc;fS=1,Object.defineProperty(dc,"__esModule",{value:!0}),dc.Track=void 0;var t=fR(),e=hR(),n=nX(),i=iX(),r=aX(),a=sX(),s=new WeakMap,o=(function(){function u(c,l){var d=this;if(this.name="",this.notes=[],this.controlChanges=(0,n.createControlChanges)(),this.pitchBends=[],s.set(this,l),c){var f=c.find(function(b){return b.type==="trackName"});this.name=f?f.text:""}if(this.instrument=new r.Instrument(c,this),this.channel=0,c){for(var h=c.filter(function(b){return b.type==="noteOn"}),g=c.filter(function(b){return b.type==="noteOff"}),v=function(){var b=h.shift();m.channel=b.channel;var x=g.findIndex(function(D){return D.noteNumber===b.noteNumber&&D.absoluteTime>=b.absoluteTime});if(x!==-1){var w=g.splice(x,1)[0];m.addNote({durationTicks:w.absoluteTime-b.absoluteTime,midi:b.noteNumber,noteOffVelocity:w.velocity/127,ticks:b.absoluteTime,velocity:b.velocity/127})}},m=this;h.length;)v();var p=c.filter(function(b){return b.type==="controller"});p.forEach(function(b){d.addCC({number:b.controllerType,ticks:b.absoluteTime,value:b.value/127})});var y=c.filter(function(b){return b.type==="pitchBend"});y.forEach(function(b){d.addPitchBend({ticks:b.absoluteTime,value:b.value/Math.pow(2,13)})});var _=c.find(function(b){return b.type==="endOfTrack"});this.endOfTrackTicks=_!==void 0?_.absoluteTime:void 0}}return u.prototype.addNote=function(c){var l=s.get(this),d=new a.Note({midi:0,ticks:0,velocity:1},{ticks:0,velocity:0},l);return Object.assign(d,c),(0,t.insert)(this.notes,d,"ticks"),this},u.prototype.addCC=function(c){var l=s.get(this),d=new e.ControlChange({controllerType:c.number},l);return delete c.number,Object.assign(d,c),Array.isArray(this.controlChanges[d.number])||(this.controlChanges[d.number]=[]),(0,t.insert)(this.controlChanges[d.number],d,"ticks"),this},u.prototype.addPitchBend=function(c){var l=s.get(this),d=new i.PitchBend({},l);return Object.assign(d,c),(0,t.insert)(this.pitchBends,d,"ticks"),this},Object.defineProperty(u.prototype,"duration",{get:function(){if(!this.notes.length)return 0;for(var c=this.notes[this.notes.length-1].time+this.notes[this.notes.length-1].duration,l=0;l<this.notes.length-1;l++){var d=this.notes[l].time+this.notes[l].duration;c<d&&(c=d)}return c}
161,enumerable:!1,configurable:!0}),Object.defineProperty(u.prototype,"durationTicks",{get:function(){if(!this.notes.length)return 0;for(var c=this.notes[this.notes.length-1].ticks+this.notes[this.notes.length-1].durationTicks,l=0;l<this.notes.length-1;l++){var d=this.notes[l].ticks+this.notes[l].durationTicks;c<d&&(c=d)}return c},enumerable:!1,configurable:!0}),u.prototype.fromJSON=function(c){var l=this;this.name=c.name,this.channel=c.channel,this.instrument=new r.Instrument(void 0,this),this.instrument.fromJSON(c.instrument),c.endOfTrackTicks!==void 0&&(this.endOfTrackTicks=c.endOfTrackTicks);for(var d in c.controlChanges)c.controlChanges[d]&&c.controlChanges[d].forEach(function(f){l.addCC({number:f.number,ticks:f.ticks,value:f.value})});c.notes.forEach(function(f){l.addNote({durationTicks:f.durationTicks,midi:f.midi,ticks:f.ticks,velocity:f.velocity})})},u.prototype.toJSON=function(){for(var c={},l=0;l<127;l++)this.controlChanges.hasOwnProperty(l)&&(c[l]=this.controlChanges[l].map(function(f){return f.toJSON()}));var d={channel:this.channel,controlChanges:c,pitchBends:this.pitchBends.map(function(f){return f.toJSON()}),instrument:this.instrument.toJSON(),name:this.name,notes:this.notes.map(function(f){return f.toJSON()})};return this.endOfTrackTicks!==void 0&&(d.endOfTrackTicks=this.endOfTrackTicks),d},u})();return dc.Track=o,dc}var go={};function oX(t){var e=[];return pR(t,e),e}function pR(t,e){for(var n=0;n<t.length;n++){var i=t[n];Array.isArray(i)?pR(i,e):e.push(i)}}const uX=Object.freeze(Object.defineProperty({__proto__:null,flatten:oX},Symbol.toStringTag,{value:"Module"})),lX=qq(uX);var pS;function cX(){if(pS)return go;pS=1;var t=go&&go.__spreadArray||function(p,y,_){if(_||arguments.length===2)for(var b=0,x=y.length,w;b<x;b++)(w||!(b in y))&&(w||(w=Array.prototype.slice.call(y,0,b)),w[b]=y[b]);return p.concat(w||Array.prototype.slice.call(y))};Object.defineProperty(go,"__esModule",{value:!0}),go.encode=void 0;var e=dR(),n=b1(),i=lX;function r(p,y){return[{absoluteTime:p.ticks,channel:y,deltaTime:0,noteNumber:p.midi,type:"noteOn",velocity:Math.floor(p.velocity*127)},{absoluteTime:p.ticks+p.durationTicks,channel:y,deltaTime:0,noteNumber:p.midi,type:"noteOff",velocity:Math.floor(p.noteOffVelocity*127)}]}function a(p){return(0,i.flatten)(p.notes.map(function(y){return r(y,p.channel)}))}function s(p,y){return{absoluteTime:p.ticks,channel:y,controllerType:p.number,deltaTime:0,type:"controller",value:Math.floor(p.value*127)}}function o(p){for(var y=[],_=0;_<127;_++)p.controlChanges.hasOwnProperty(_)&&p.controlChanges[_].forEach(function(b){y.push(s(b,p.channel))});return y}function u(p,y){return{absoluteTime:p.ticks,channel:y,deltaTime:0,type:"pitchBend",value:p.value}}function c(p){var y=[];return p.pitchBends.forEach(function(_){y.push(u(_,p.channel))}),y}function l(p){return{absoluteTime:0,channel:p.channel,deltaTime:0,programNumber:p.instrument.number,type:"programChange"}}function d(p){return{absoluteTime:0,deltaTime:0,meta:!0,text:p,type:"trackName"}}function f(p){return{absoluteTime:p.ticks,deltaTime:0,meta:!0,microsecondsPerBeat:Math.floor(6e7/p.bpm),type:"setTempo"}}function h(p){return{absoluteTime:p.ticks,deltaTime:0,denominator:p.timeSignature[1],meta:!0,metronome:24,numerator:p.timeSignature[0],thirtyseconds:8,type:"timeSignature"}}function g(p){var y=n.keySignatureKeys.indexOf(p.key);return{absoluteTime:p.ticks,deltaTime:0,key:y+7,meta:!0,scale:p.scale==="major"?0:1,type:"keySignature"}}function v(p){return{absoluteTime:p.ticks,deltaTime:0,meta:!0,text:p.text,type:p.type}}function m(p){var y={header:{format:1,numTracks:p.tracks.length+1,ticksPerBeat:p.header.ppq},tracks:t([t(t(t(t([{absoluteTime:0,deltaTime:0,meta:!0,text:p.header.name,type:"trackName"}],p.header.keySignatures.map(function(_){return g(_)}),!0),p.header.meta.map(function(_){return v(_)}),!0),p.header.tempos.map(function(_){return f(_)}),!0),p.header.timeSignatures.map(function(_){return h(_)}),!0)],p.tracks.map(function(_){return t(t(t([d(_.name),l(_)],a(_),!0),o(_),!0),c(_),!0)}),!0)};return y.tracks=y.tracks.map(function(_){_=_.sort(function(x,w){return x.absoluteTime-w.absoluteTime});var b=0;return _.forEach(function(x){x.deltaTime=x.absoluteTime-b,b=x.absoluteTime,delete x.absoluteTime}),_.push({deltaTime:0,meta:!0,type:"endOfTrack"}),_}),new Uint8Array((0,e.writeMidi)(y))}return go.encode=m,go}var mS;function dX(){return mS||(mS=1,(function(t){var e=po&&po.__awaiter||function(d,f,h,g){function v(m){return m instanceof h?m:new h(function(p){p(m)})}return new(h||(h=Promise))(function(m,p){function y(x){try{b(g.next(x))}catch(w){p(w)}}function _(x){try{b(g.throw(x))}catch(w){p(w)}}function b(x){x.done?m(x.value):v(x.value).then(y,_)}b((g=g.apply(d,f||[])).next())})},n=po&&po.__generator||function(d,f){var h={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},trys:[],ops:[]},g,v,m,p;return p={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function y(b){return function(x){return _([b,x])}}function _(b){if(g)throw new TypeError("Generator is already executing.");for(;h;)try{if(g=1,v&&(m=b[0]&2?v.return:b[0]?v.throw||((m=v.return)&&m.call(v),0):v.next)&&!(m=m.call(v,b[1])).done)return m;switch(v=0,m&&(b=[b[0]&2,m.value]),b[0]){case 0:case 1:m=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++,v=b[1],b=[0];continue;case 7:b=h.ops.pop(),h.trys.pop();continue;default:if(m=h.trys,!(m=m.length>0&&m[m.length-1])&&(b[0]===6||b[0]===2)){h=0;continue}if(b[0]===3&&(!m||b[1]>m[0]&&b[1]<m[3])){h.label=b[1];break}if(b[0]===6&&h.label<m[1]){h.label=m[1],m=b;break}if(m&&h.label<m[2]){h.label=m[2],h.ops.push(b);break}m[2]&&h.ops.pop(),h.trys.pop();continue}b=f.call(d,h)}catch(x){b=[6,x],v=0}finally{g=m=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}};
161Object.defineProperty(t,"__esModule",{value:!0}),t.Header=t.Track=t.Midi=void 0;var i=dR(),r=b1(),a=hS(),s=cX(),o=(function(){function d(f){var h=this,g=null;if(f){var v=f instanceof ArrayBuffer?new Uint8Array(f):f;g=(0,i.parseMidi)(v),g.tracks.forEach(function(m){var p=0;m.forEach(function(y){p+=y.deltaTime,y.absoluteTime=p})}),g.tracks=l(g.tracks)}this.header=new r.Header(g),this.tracks=[],f&&(this.tracks=g.tracks.map(function(m){return new a.Track(m,h.header)}),g.header.format===1&&this.tracks[0].duration===0&&this.tracks.shift())}return d.fromUrl=function(f){return e(this,void 0,void 0,function(){var h,g;return n(this,function(v){switch(v.label){case 0:return[4,fetch(f)];case 1:return h=v.sent(),h.ok?[4,h.arrayBuffer()]:[3,3];case 2:return g=v.sent(),[2,new d(g)];case 3:throw new Error("Could not load '".concat(f,"'"))}})})},Object.defineProperty(d.prototype,"name",{get:function(){return this.header.name},set:function(f){this.header.name=f},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"duration",{get:function(){var f=this.tracks.map(function(h){return h.duration});return Math.max.apply(Math,f)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"durationTicks",{get:function(){var f=this.tracks.map(function(h){return h.durationTicks});return Math.max.apply(Math,f)},enumerable:!1,configurable:!0}),d.prototype.addTrack=function(){var f=new a.Track(void 0,this.header);return this.tracks.push(f),f},d.prototype.toArray=function(){return(0,s.encode)(this)},d.prototype.toJSON=function(){return{header:this.header.toJSON(),tracks:this.tracks.map(function(f){return f.toJSON()})}},d.prototype.fromJSON=function(f){var h=this;this.header=new r.Header,this.header.fromJSON(f.header),this.tracks=f.tracks.map(function(g){var v=new a.Track(void 0,h.header);return v.fromJSON(g),v})},d.prototype.clone=function(){var f=new d;return f.fromJSON(this.toJSON()),f},d})();t.Midi=o;var u=hS();Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return u.Track}});var c=b1();Object.defineProperty(t,"Header",{enumerable:!0,get:function(){return c.Header}});function l(d){for(var f=[],h=0;h<d.length;h++)for(var g=f.length,v=new Map,m=Array(16).fill(0),p=0,y=d[h];p<y.length;p++){var _=y[p],b=g,x=_.channel;if(x!==void 0){_.type==="programChange"&&(m[x]=_.programNumber);var w=m[x],D="".concat(w," ").concat(x);
161v.has(D)?b=v.get(D):(b=g+v.size,v.set(D,b))}f[b]||f.push([]),f[b].push(_)}return f}})(po)),po}var fX=dX();function mR(){const t=YH(),e=Le(null),n=Le(null),i=Le(!1);{let r=function(){i.value=!1},a;Bt(window,"resize",()=>{i.value=!0,clearTimeout(a),a=setTimeout(r,100)})}return st(t.breakpoint,(r,a)=>{n.value=t.isGreaterOrEquals("desktop"),e.value=t.isLessThan("desktop")},{immediate:!0}),{mobile:e,desktop:n,resizing:i}}function hX(t,e,n,i){return e+(t-e)*Math.exp(-n*i)}function gS(t,e){const n=Le(Qg(t));return lL(i=>{const r=i.delta*.001;n.value=hX(n.value,Qg(t),Qg(e),r)}),n}function pX(t){return t.then(e=>[e,void 0]).catch(e=>Promise.resolve([void 0,e]))}const Oce={readAsArrayBuffer(t){return new Promise((e,n)=>{const i=new FileReader;i.onload=()=>{e(i.result)},i.onerror=n,i.readAsArrayBuffer(t)})},download(t,e,n="text/plain"){const i=new Blob([t],{type:n}),r=window.URL.createObjectURL(i),a=document.createElement("a");a.href=r,a.download=e,a.click(),window.URL.revokeObjectURL(r)}},Nce={arrayToObject(t,e){return t.reduce((n,i)=>(n[i[e]]=i,n),{})},groupBy(t,e){return t.reduce((n,i)=>{const r=typeof e=="function"?e(i):i[e];return(n[r]=n[r]||[]).push(i),n},{})}},mX=uf(kj),gX=["note-highlight"],vX={class:"audioMidi__cylinder"},_X={class:"audioMidi__track"},bX={__name:"AudioMidiDom",props:om({midi:String,duration:{type:Number,default:1e-6},time:{type:Number,default:0},playing:!1},{close:{type:Boolean,default:!1},closeModifiers:{}}),emits:om(["close","dragging","dragend","dragstart"],["update:close"]),setup(t,{emit:e}){const n=t,{mobile:i}=mR(),r=Le(!1),a=Le(0),s=gS(()=>r.value||n.playing?23:5,3),o=gS(a,s),u=Le(0),c=eb(t,"close"),{lock:l,unlock:d}=F$(),f=Le(0);Le({isPlaying:!0,timeSec:0});const h=Le([]);$n(()=>{st(()=>[n.midi,n.duration],async([O,M])=>{if(!O){h.value=[];return}if(!M)return;const{tracks:[S]}=await fX.Midi.fromUrl(O);let{notes:B,duration:V}=S;u.value=n.duration,h.value=w(B,u.value)},{immediate:!0})});const g=e,v=Ve(()=>eS.modulo(o.value,u.value)/u.value||0),m=Ve(()=>({"playerMain--closed":c.value,"playerMain--dragging":r.value})),p=Ve(()=>{let O=eS.map(u.value,10,240,100,200);O=Math.max(O,100);const M=i.value?10:20;return{"--cylinder-diameter":`${O*M}px`}});function y(O){return a.value=O}st(()=>n.time,(O,M)=>{O!=M&&(a.value=O)},{immediate:!0}),Ql(()=>{if(!r.value)return;const O=v.value*u.value;g("dragging",O||0)}),lL(O=>{if(!n.playing||!n.time)return;const M=O.delta*.001;_(M)}),$n(()=>{Bt(document,"pointerup",()=>{r.value&&(r.value=!1,f.value=0,d(),g("dragend",!1))}),Bt(document,"pointermove",O=>{if(!r.value)return;const M=O.movementY??O.clientY-f.value;f.value=O.clientY,_(-M/window.innerHeight*u.value)})});function _(O){return y(a.value+O)}const b={};let x=0;function w(O,M){O.map(B=>{b[B.midi]||(b[B.midi]=[]);const V=B.time/M||0,z={note:B,timeNorm:V,index:x++};return b[B.midi].unshift(z),z});const S=[];for(const[B,V]of Object.entries(b))S.push({midi:B,notes:V});return S.sort((B,V)=>B.midi-V.midi),S}async function D(O){const[M,S]=await pX(l(O));M&&(r.value=!0,f.value=O.clientY,g("dragstart",!0))}return(O,M)=>{const S=mX;return tt(),_t("div",{class:Gs(["audioMidi",ze(m)]),style:ou(ze(p)),"note-highlight":("showAttr"in O?O.showAttr:ze(lR))(!ze(r)&&t.playing)},[It("div",{class:"audioMidi__box",onPointerdownCapture:D},[It("div",vX,[(tt(!0),_t(Zt,null,Xs(ze(h),({notes:B})=>(tt(),_t("div",_X,[(tt(!0),_t(Zt,null,Xs(B,V=>(tt(),cn(S,{class:"audioMidi__track-note",key:V.index,note:V,time:ze(v)},null,8,["note","time"]))),128))]))),256))])],32)],14,gX)}}},yX={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"-1 0 22 18",preserveAspectRatio:"xMidYMid meet"};function gR(t,e){return tt(),_t("svg",yX,[(tt(),cn(g0("style"),null,{default:gi(()=>[...e[0]||(e[0]=[y0(".st1{fill:none;stroke:currentColor;stroke-width:1px;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}",-1)])]),_:1})),e[1]||(e[1]=It("path",{d:"M1 7v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V4.41c0-2.98-2.07-4.12-4.59-2.54L6.49 3.7c-.32.19-.69.3-1.06.3H4C2 4 1 5 1 7z",class:"st1"},null,-1)),e[2]||(e[2]=It("path",{d:"M17 5a6.66 6.66 0 0 1 0 8",class:"st1 wave-1"},null,-1)),e[3]||(e[3]=It("path",{d:"M18.83 2.5a10.83 10.83 0 0 1 0 13",class:"st1 wave-2"},null,-1)),e[4]||(e[4]=It("path",{d:"m1 1 16 16",class:"st1 strike"},null,-1))])}const vR={render(){return Vt(Yb,{icon:{render:gR},name:"volume"})}},EX=Object.freeze(Object.defineProperty({__proto__:null,default:vR,render:gR},Symbol.toStringTag,{value:"Module"})),rt={MEDIA_PLAY_REQUEST:"mediaplayrequest",MEDIA_PAUSE_REQUEST:"mediapauserequest",MEDIA_MUTE_REQUEST:"mediamuterequest",MEDIA_UNMUTE_REQUEST:"mediaunmuterequest",MEDIA_VOLUME_REQUEST:"mediavolumerequest",MEDIA_SEEK_REQUEST:"mediaseekrequest",MEDIA_AIRPLAY_REQUEST:"mediaairplayrequest",MEDIA_ENTER_FULLSCREEN_REQUEST:"mediaenterfullscreenrequest",MEDIA_EXIT_FULLSCREEN_REQUEST:"mediaexitfullscreenrequest",MEDIA_PREVIEW_REQUEST:"mediapreviewrequest",MEDIA_ENTER_PIP_REQUEST:"mediaenterpiprequest",MEDIA_EXIT_PIP_REQUEST:"mediaexitpiprequest",MEDIA_ENTER_CAST_REQUEST:"mediaentercastrequest",MEDIA_EXIT_CAST_REQUEST:"mediaexitcastrequest",MEDIA_SHOW_TEXT_TRACKS_REQUEST:"mediash
161owtexttracksrequest",MEDIA_HIDE_TEXT_TRACKS_REQUEST:"mediahidetexttracksrequest",MEDIA_SHOW_SUBTITLES_REQUEST:"mediashowsubtitlesrequest",MEDIA_DISABLE_SUBTITLES_REQUEST:"mediadisablesubtitlesrequest",MEDIA_TOGGLE_SUBTITLES_REQUEST:"mediatogglesubtitlesrequest",MEDIA_PLAYBACK_RATE_REQUEST:"mediaplaybackraterequest",MEDIA_RENDITION_REQUEST:"mediarenditionrequest",MEDIA_AUDIO_TRACK_REQUEST:"mediaaudiotrackrequest",MEDIA_SEEK_TO_LIVE_REQUEST:"mediaseektoliverequest",REGISTER_MEDIA_STATE_RECEIVER:"registermediastatereceiver",UNREGISTER_MEDIA_STATE_RECEIVER:"unregistermediastatereceiver"},an={MEDIA_CHROME_ATTRIBUTES:"mediachromeattributes",MEDIA_CONTROLLER:"mediacontroller"},_R={MEDIA_AIRPLAY_UNAVAILABLE:"mediaAirplayUnavailable",MEDIA_FULLSCREEN_UNAVAILABLE:"mediaFullscreenUnavailable",MEDIA_PIP_UNAVAILABLE:"mediaPipUnavailable",MEDIA_CAST_UNAVAILABLE:"mediaCastUnavailable",MEDIA_RENDITION_UNAVAILABLE:"mediaRenditionUnavailable",MEDIA_AUDIO_TRACK_UNAVAILABLE:"mediaAudioTrackUnavailable",MEDIA_PAUSED:"mediaPaused",MEDIA_HAS_PLAYED:"mediaHasPlayed",MEDIA_ENDED:"mediaEnded",MEDIA_MUTED:"mediaMuted",MEDIA_VOLUME_LEVEL:"mediaVolumeLevel",MEDIA_VOLUME:"mediaVolume",MEDIA_VOLUME_UNAVAILABLE:"mediaVolumeUnavailable",MEDIA_IS_PIP:"mediaIsPip",MEDIA_IS_CASTING:"mediaIsCasting",MEDIA_IS_AIRPLAYING:"mediaIsAirplaying",MEDIA_SUBTITLES_LIST:"mediaSubtitlesList",MEDIA_SUBTITLES_SHOWING:"mediaSubtitlesShowing",MEDIA_IS_FULLSCREEN:"mediaIsFullscreen",MEDIA_PLAYBACK_RATE:"mediaPlaybackRate",MEDIA_CURRENT_TIME:"mediaCurrentTime",MEDIA_DURATION:"mediaDuration",MEDIA_SEEKABLE:"mediaSeekable",MEDIA_PREVIEW_TIME:"mediaPreviewTime",MEDIA_PREVIEW_IMAGE:"mediaPreviewImage",MEDIA_PREVIEW_COORDS:"mediaPreviewCoords",MEDIA_PREVIEW_CHAPTER:"mediaPreviewChapter",MEDIA_LOADING:"mediaLoading",MEDIA_BUFFERED:"mediaBuffered",MEDIA_STREAM_TYPE:"mediaStreamType",MEDIA_TARGET_LIVE_WINDOW:"mediaTargetLiveWindow",MEDIA_TIME_IS_LIVE:"mediaTimeIsLive",MEDIA_RENDITION_LIST:"mediaRenditionList",MEDIA_RENDITION_SELECTED:"mediaRenditionSelected",MEDIA_AUDIO_TRACK_LIST:"mediaAudioTrackList",MEDIA_AUDIO_TRACK_ENABLED:"mediaAudioTrackEnabled",MEDIA_CHAPTERS_CUES:"mediaChaptersCues"},bR=Object.entries(_R),ne=bR.reduce((t,[e,n])=>(t[e]=`${n.toLowerCase()}`,t),{}),ec=bR.reduce((t,[e,n])=>(t[e]=`${n.toLowerCase()}`,t),{USER_INACTIVE:"userinactivechange",BREAKPOINTS_CHANGE:"breakpointchange",BREAKPOINTS_COMPUTED:"breakpointscomputed"});Object.entries(ec).reduce((t,[e,n])=>{const i=ne[e];return i&&(t[n]=i),t},{userinactivechange:"userinactive"});const xX=Object.entries(ne).reduce((t,[e,n])=>{const i=ec[e];return i&&(t[n]=i),t},{userinactive:"userinactivechange"}),Hs={SUBTITLES:"subtitles",CAPTIONS:"captions",CHAPTERS:"chapters",METADATA:"metadata"},_l={DISABLED:"disabled",SHOWING:"showing"},vS={MOUSE:"mouse",TOUCH:"touch"},ar={UNAVAILABLE:"unavailable",UNSUPPORTED:"unsupported"},Ha={LIVE:"live",ON_DEMAND:"on-demand",UNKNOWN:"unknown"},AX={FULLSCREEN:"fullscreen"},Ji={AUDIO_PLAYER:()=>"audio player",VIDEO_PLAYER:()=>"video player",VOLUME:()=>"volume",SEEK:()=>"seek",CLOSED_CAPTIONS:()=>"closed captions",PLAYBACK_RATE:({playbackRate:t=1}={})=>`current playback rate ${t}`,PLAYBACK_TIME:()=>"playback time",MEDIA_LOADING:()=>"media loading",SETTINGS:()=>"settings",AUDIO_TRACKS:()=>"audio tracks",QUALITY:()=>"quality"},_i={PLAY:()=>"play",PAUSE:()=>"pause",MUTE:()=>"mute",UNMUTE:()=>"unmute",ENTER_AIRPLAY:()=>"start airplay",EXIT_AIRPLAY:()=>"stop airplay",ENTER_CAST:()=>"start casting",EXIT_CAST:()=>"stop casting",ENTER_FULLSCREEN:()=>"enter fullscreen mode",EXIT_FULLSCREEN:()=>"exit fullscreen mode",ENTER_PIP:()=>"enter picture in picture mode",EXIT_PIP:()=>"exit picture in picture mode",SEEK_FORWARD_N_SECS:({seekOffset:t=30}={})=>`seek forward ${t} seconds`,SEEK_BACK_N_SECS:({seekOffset:t=30}={})=>`seek back ${t} seconds`,SEEK_LIVE:()=>"seek to live",PLAYING_LIVE:()=>"playing live"};function SX(t){return t?.map(wX).join(" ")}function TX(t){return t?.split(/\s+/).map(MX)}function wX(t){if(t){const{id:e,width:n,height:i}=t;return[e,n,i].filter(r=>r!=null).join(":")}}function MX(t){if(t){const[e,n,i]=t.split(":");return{id:e,width:n,height:i}}}function CX(t){return t?.map(LX).join(" ")}function DX(t){return t?.split(/\s+/).map(RX)}function LX(t){if(t){const{id:e,kind:n,language:i,label:r}=t;return[e,n,i,r].filter(a=>a!=null).join(":")}}function RX(t){if(t){const[e,n,i,r]=t.split(":");return{id:e,kind:n,language:i,label:r}}}function IX(t){return typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t)}
161const yR=t=>new Promise(e=>setTimeout(e,t)),_S=[{singular:"hour",plural:"hours"},{singular:"minute",plural:"minutes"},{singular:"second",plural:"seconds"}],PX=(t,e)=>{const n=t===1?_S[e].singular:_S[e].plural;return`${t} ${n}`},cd=t=>{if(!IX(t))return"";const e=Math.abs(t),n=e!==t,i=new Date(0,0,0,0,0,e,0);return`${[i.getHours(),i.getMinutes(),i.getSeconds()].map((o,u)=>o&&PX(o,u)).filter(o=>o).join(", ")}${n?" remaining":""}`};function qo(t,e){let n=!1;t<0&&(n=!0,t=0-t),t=t<0?0:t;let i=Math.floor(t%60),r=Math.floor(t/60%60),a=Math.floor(t/3600);const s=Math.floor(e/60%60),o=Math.floor(e/3600);return(isNaN(t)||t===1/0)&&(a=r=i="0"),a=a>0||o>0?a+":":"",r=((a||s>=10)&&r<10?"0"+r:r)+":",i=i<10?"0"+i:i,(n?"-":"")+a+r+i}class ER{addEventListener(){}removeEventListener(){}dispatchEvent(){return!0}}let bS=class extends ER{},kX=class{observe(){}unobserve(){}disconnect(){}};const xR={createElement:function(){return new Cm.HTMLElement},createElementNS:function(){return new Cm.HTMLElement},addEventListener(){},removeEventListener(){},dispatchEvent(t){return!1}},Cm={ResizeObserver:kX,document:xR,Node:bS,HTMLElement:class extends bS{},DocumentFragment:class extends ER{},customElements:{get:function(){},define:function(){},whenDefined:function(){}},localStorage:{getItem(t){return null},setItem(t,e){},removeItem(t){}},CustomEvent:function(){},getComputedStyle:function(){},navigator:{languages:[],get userAgent(){return""}},matchMedia(t){return{matches:!1,media:t}}},AR=typeof window>"u"||typeof window.customElements>"u",SR=Object.keys(Cm).every(t=>t in globalThis),Ee=AR&&!SR?Cm:globalThis,dt=AR&&!SR?xR:globalThis.document,yS=new WeakMap,Zb=t=>{let e=yS.get(t);return e||yS.set(t,e=new Set),e},TR=new Ee.ResizeObserver(t=>{for(let e of t)for(let n of Zb(e.target))n(e)});function Bl(t,e){Zb(t).add(e),TR.observe(t)}function Ud(t,e){const n=Zb(t);n.delete(e),n.size||TR.unobserve(t)}function Hr(t){var e;return(e=y1(t))!=null?e:bf(t,"media-controller")}function y1(t){var e;const{MEDIA_CONTROLLER:n}=an,i=t.getAttribute(n);if(i)return(e=W0(t))==null?void 0:e.getElementById(i)}const wR=(t,e,n=".value")=>{const i=t.querySelector(n);i&&(i.textContent=e)},OX=(t,e)=>{const n=`slot[name="${e}"]`,i=t.shadowRoot.querySelector(n);return i?i.children:[]},MR=(t,e)=>OX(t,e)[0],us=(t,e)=>!t||!e?!1:t?.contains(e)?!0:us(t,e.getRootNode().host),bf=(t,e)=>{if(!t)return null;const n=t.closest(e);return n||bf(t.getRootNode().host,e)};function Jb(t=document){var e;const n=t?.activeElement;return n?(e=Jb(n.shadowRoot))!=null?e:n:null}function W0(t){var e;const n=(e=t?.getRootNode)==null?void 0:e.call(t);return n instanceof ShadowRoot||n instanceof Document?n:null}function NX(t,e=3){if(t.checkVisibility)return t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});let n=t;for(;n&&e>0;){const i=getComputedStyle(n);if(i.opacity==="0"||i.visibility==="hidden"||i.display==="none")return!1;n=n.parentElement,e--}return!0}function UX(t,e,n,i){const r=sv(n,i),a=sv(n,{x:t,y:e}),s=sv(i,{x:t,y:e});return a>r||s>r?a>s?1:0:a/r}function sv(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Nn(t,e){const n=FX(t,i=>i===e);return n||CR(t,e)}function FX(t,e){var n;let i;for(i of t.querySelectorAll("style")){let r;try{r=(n=i.sheet)==null?void 0:n.cssRules}catch{continue}for(let a of r??[])if(e(a.selectorText))return a}}function CR(t,e){var n,i;const r=(n=t.querySelectorAll("style"))!=null?n:[],a=r?.[r.length-1];return a?.sheet?(a?.sheet.insertRule(`${e}{}`,a.sheet.cssRules.length),(i=a.sheet.cssRules)==null?void 0:i[a.sheet.cssRules.length-1]):(console.warn("Media Chrome: No style sheet found on style tag of",t),{style:{setProperty:()=>{},removeProperty:()=>"",getPropertyValue:()=>""}})}function Ln(t,e,n=Number.NaN){const i=t.getAttribute(e);return i!=null?+i:n}function ai(t,e,n){const i=+n;if(n==null||Number.isNaN(i)){t.hasAttribute(e)&&t.removeAttribute(e);return}Ln(t,e,void 0)!==i&&t.setAttribute(e,`${i}`)}function Qn(t,e){return t.hasAttribute(e)}function ei(t,e,n){if(n==null){t.hasAttribute(e)&&t.removeAttribute(e);return}Qn(t,e)!=n&&t.toggleAttribute(e,n)}function bi(t,e,n=null){var i;return(i=t.getAttribute(e))!=null?i:n}function yi(t,e,n){if(n==null){t.hasAttribute(e)&&t.removeAttribute(e);return}const i=`${n}`;bi(t,e,void 0)!==i&&t.setAttribute(e,i)}var DR=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ps=(t,e,n)=>(DR(t,e,"read from private field"),n?n.call(t):e.get(t)),BX=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},oh=(t,e,n,i)=>(DR(t,e,"write to private field"),e.set(t,n),n),Pi;const LR=dt.createElement("template");LR.innerHTML=`
162<style>
163  :host {
164    display: var(--media-control-display, var(--media-gesture-receiver-display, inline-block));
165    box-sizing: border-box;
166  }
167</style>
168`;
168class VX extends Ee.HTMLElement{constructor(e={}){if(super(),BX(this,Pi,void 0),!this.shadowRoot){const n=this.attachShadow({mode:"open"}),i=LR.content.cloneNode(!0);this.nativeEl=i;let r=e.slotTemplate;r||(r=dt.createElement("template"),r.innerHTML=`<slot>${e.defaultContent||""}</slot>`),this.nativeEl.appendChild(r.content.cloneNode(!0)),n.appendChild(i)}}static get observedAttributes(){return[an.MEDIA_CONTROLLER,ne.MEDIA_PAUSED]}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===an.MEDIA_CONTROLLER&&(n&&((a=(r=ps(this,Pi))==null?void 0:r.unassociateElement)==null||a.call(r,this),oh(this,Pi,null)),i&&this.isConnected&&(oh(this,Pi,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=ps(this,Pi))==null?void 0:o.associateElement)==null||u.call(o,this)))}connectedCallback(){var e,n,i,r;this.tabIndex=-1,this.setAttribute("aria-hidden","true"),oh(this,Pi,HX(this)),this.getAttribute(an.MEDIA_CONTROLLER)&&((n=(e=ps(this,Pi))==null?void 0:e.associateElement)==null||n.call(e,this)),(i=ps(this,Pi))==null||i.addEventListener("pointerdown",this),(r=ps(this,Pi))==null||r.addEventListener("click",this)}disconnectedCallback(){var e,n,i,r;this.getAttribute(an.MEDIA_CONTROLLER)&&((n=(e=ps(this,Pi))==null?void 0:e.unassociateElement)==null||n.call(e,this)),(i=ps(this,Pi))==null||i.removeEventListener("pointerdown",this),(r=ps(this,Pi))==null||r.removeEventListener("click",this),oh(this,Pi,null)}handleEvent(e){var n;const i=(n=e.composedPath())==null?void 0:n[0];if(["video","media-controller"].includes(i?.localName)){if(e.type==="pointerdown")this._pointerType=e.pointerType;else if(e.type==="click"){const{clientX:a,clientY:s}=e,{left:o,top:u,width:c,height:l}=this.getBoundingClientRect(),d=a-o,f=s-u;if(d<0||f<0||d>c||f>l||c===0&&l===0)return;const{pointerType:h=this._pointerType}=e;if(this._pointerType=void 0,h===vS.TOUCH){this.handleTap(e);return}else if(h===vS.MOUSE){this.handleMouseClick(e);return}}}}get mediaPaused(){return Qn(this,ne.MEDIA_PAUSED)}set mediaPaused(e){ei(this,ne.MEDIA_PAUSED,e)}handleTap(e){}handleMouseClick(e){const n=this.mediaPaused?rt.MEDIA_PLAY_REQUEST:rt.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new Ee.CustomEvent(n,{composed:!0,bubbles:!0}))}}Pi=new WeakMap;function HX(t){var e;const n=t.getAttribute(an.MEDIA_CONTROLLER);return n?(e=t.getRootNode())==null?void 0:e.getElementById(n):bf(t,"media-controller")}Ee.customElements.get("media-gesture-receiver")||Ee.customElements.define("media-gesture-receiver",VX);var zX=Object.defineProperty,$X=(t,e,n)=>e in t?zX(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,WX=(t,e,n)=>($X(t,e+"",n),n),Qb=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},E1=(t,e,n)=>(Qb(t,e,"read from private field"),e.get(t)),vo=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ov=(t,e,n,i)=>(Qb(t,e,"write to private field"),e.set(t,n),n),Rr=(t,e,n)=>(Qb(t,e,"access private method"),n),Dm,Wu,x1,RR,A1,IR,Fd,G0,q0,ey,Vl,Bd;const $t={AUDIO:"audio",AUTOHIDE:"autohide",BREAKPOINTS:"breakpoints",GESTURES_DISABLED:"gesturesdisabled",KEYBOARD_CONTROL:"keyboardcontrol",NO_AUTOHIDE:"noautohide",USER_INACTIVE:"userinactive"},PR=dt.createElement("template");PR.innerHTML=`
169  <style>
170    
171    :host([${ne.MEDIA_IS_FULLSCREEN}]) ::slotted([slot=media]) {
172      outline: none;
173    }
174
175    :host {
176      box-sizing: border-box;
177      position: relative;
178      display: inline-block;
179      line-height: 0;
180      background-color: var(--media-background-color, #000);
181    }
182
183    :host(:not([${$t.AUDIO}])) [part~=layer]:not([part~=media-layer]) {
184      position: absolute;
185      top: 0;
186      left: 0;
187      bottom: 0;
188      right: 0;
189      display: flex;
190      flex-flow: column nowrap;
191      align-items: start;
192      pointer-events: none;
193      background: none;
194    }
195
196    slot[name=media] {
197      display: var(--media-slot-display, contents);
198    }
199
200    
201    :host([${$t.AUDIO}]) slot[name=media] {
202      display: var(--media-slot-display, none);
203    }
204
205    
206    :host([${$t.AUDIO}]) [part~=layer][part~=gesture-layer] {
207      height: 0;
208      display: block;
209    }
210
211    
212    :host(:not([${$t.AUDIO}])[${$t.GESTURES_DISABLED}]) ::slotted([slot=gestures-chrome]),
213    :host(:not([${$t.AUDIO}])[${$t.GESTURES_DISABLED}]) media-gesture-receiver[slot=gestures-chrome] {
214      display: none;
215    }
216
217    
218    ::slotted(:not([slot=media]):not([slot=poster]):not(media-loading-indicator):not([hidden])) {
219      pointer-events: auto;
220    }
221
222    :host(:not([${$t.AUDIO}])) *[part~=layer][part~=centered-layer] {
223      align-items: center;
224      justify-content: center;
225    }
226
227    :host(:not([${$t.AUDIO}])) ::slotted(media-gesture-receiver[slot=gestures-chrome]),
228    :host(:not([${$t.AUDIO}])) media-gesture-receiver[slot=gestures-chrome] {
229      align-self: stretch;
230      flex-grow: 1;
231    }
232
233    slot[name=middle-chrome] {
234      display: inline;
235      flex-grow: 1;
236      pointer-events: none;
237      background: none;
238    }
239
240    
241    ::slotted([slot=media]),
242    ::slotted([slot=poster]) {
243      width: 100%;
244      height: 100%;
245    }
246
247    
248    :host(:not([${$t.AUDIO}])) .spacer {
249      flex-grow: 1;
250    }
251
252    
253    :host(:-webkit-full-screen) {
254      
255      width: 100% !important;
256      height: 100% !important;
257    }
258
259    
260    ::slotted(:not([slot=media]):not([slot=poster]):not([${$t.NO_AUTOHIDE}]):not([hidden])) {
261      opacity: 1;
262      transition: opacity 0.25s;
263    }
264
265    
266    :host([${$t.USER_INACTIVE}]:not([${ne.MEDIA_PAUSED}]):not([${ne.MEDIA_IS_AIRPLAYING}
266]):not([${ne.MEDIA_IS_CASTING}]):not([${$t.AUDIO}])) ::slotted(:not([slot=media]):not([slot=poster]):not([${$t.NO_AUTOHIDE}])) {
267      opacity: 0;
268      transition: opacity 1s;
269    }
270
271    :host([${$t.USER_INACTIVE}]:not([${ne.MEDIA_PAUSED}]):not([${ne.MEDIA_IS_CASTING}]):not([${$t.AUDIO}])) ::slotted([slot=media]) {
272      cursor: none;
273    }
274
275    ::slotted(media-control-bar)  {
276      align-self: stretch;
277    }
278
279    
280    :host(:not([${$t.AUDIO}])[${ne.MEDIA_HAS_PLAYED}]) slot[name=poster] {
281      display: none;
282    }
283
284    ::slotted([role="menu"]) {
285      align-self: end;
286    }
287
288    ::slotted([role="dialog"]) {
289      align-self: center;
290    }
291  </style>
292
293  <slot name="media" part="layer media-layer"></slot>
294  <slot name="poster" part="layer poster-layer"></slot>
295  <slot name="gestures-chrome" part="layer gesture-layer">
296    <media-gesture-receiver slot="gestures-chrome"></media-gesture-receiver>
297  </slot>
298  <span part="layer vertical-layer">
299    <slot name="top-chrome" part="top chrome"></slot>
300    <slot name="middle-chrome" part="middle chrome"></slot>
301    <slot name="centered-chrome" part="layer centered-layer center centered chrome"></slot>
302    
303    <slot part="bottom chrome"></slot>
304  </span>
305`;const GX=Object.values(ne),qX="sm:384 md:576 lg:768 xl:960";function jX(t){XX(t.target,t.contentRect.width)}function XX(t,e){var n;if(!t.isConnected)return;const i=(n=t.getAttribute($t.BREAKPOINTS))!=null?n:qX,r=YX(i),a=KX(r,e);let s=!1;if(Object.keys(r).forEach(o=>{if(a.includes(o)){t.hasAttribute(`breakpoint${o}`)||(t.setAttribute(`breakpoint${o}`,""),s=!0);return}t.hasAttribute(`breakpoint${o}`)&&(t.removeAttribute(`breakpoint${o}`),s=!0)}),s){const o=new CustomEvent(ec.BREAKPOINTS_CHANGE,{detail:a});t.dispatchEvent(o)}}function YX(t){const e=t.split(/\s+/);return Object.fromEntries(e.map(n=>n.split(":")))}function KX(t,e){return Object.keys(t).filter(n=>e>=t[n])}class kR extends Ee.HTMLElement{constructor(){super(),vo(this,x1),vo(this,A1),vo(this,Fd),vo(this,q0),vo(this,Vl),vo(this,Dm,0),vo(this,Wu,void 0),WX(this,"breakpointsComputed",!1),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(PR.content.cloneNode(!0)));const e=s=>{const o=this.media;for(let u of s)u.type==="childList"&&(u.removedNodes.forEach(c=>{if(c.slot=="media"&&u.target==this){let l=u.previousSibling&&u.previousSibling.previousElementSibling;if(!l||!o)this.mediaUnsetCallback(c);else{let d=l.slot!=="media";for(;(l=l.previousSibling)!==null;)l.slot=="media"&&(d=!1);d&&this.mediaUnsetCallback(c)}}}),o&&u.addedNodes.forEach(c=>{c===o&&this.handleMediaUpdated(o)}))};new MutationObserver(e).observe(this,{childList:!0,subtree:!0});let i=!1;Bl(this,s=>{i||(setTimeout(()=>{jX(s),i=!1,this.breakpointsComputed||(this.breakpointsComputed=!0,this.dispatchEvent(new CustomEvent(ec.BREAKPOINTS_COMPUTED,{bubbles:!0,composed:!0})))},0),i=!0)});let a=this.querySelector(":scope > slot[slot=media]");a&&a.addEventListener("slotchange",()=>{if(!a.assignedElements({flatten:!0}).length){E1(this,Wu)&&this.mediaUnsetCallback(E1(this,Wu));return}this.handleMediaUpdated(this.media)})}static get observedAttributes(){return[$t.AUTOHIDE,$t.GESTURES_DISABLED].concat(GX).filter(e=>![ne.MEDIA_RENDITION_LIST,ne.MEDIA_AUDIO_TRACK_LIST,ne.MEDIA_CHAPTERS_CUES].includes(e))}attributeChangedCallback(e,n,i){e.toLowerCase()==$t.AUTOHIDE&&(this.autohide=i)}get media(){let e=this.querySelector(":scope > [slot=media]");return e?.nodeName=="SLOT"&&(e=e.assignedElements({flatten:!0})[0]),e}async handleMediaUpdated(e){e&&(ov(this,Wu,e),e.localName.includes("-")&&await Ee.customElements.whenDefined(e.localName),this.mediaSetCallback(e))}connectedCallback(){var e;const i=this.getAttribute($t.AUDIO)!=null?Ji.AUDIO_PLAYER():Ji.VIDEO_PLAYER();this.setAttribute("role","region"),this.setAttribute("aria-label",i),this.handleMediaUpdated(this.media),this.setAttribute($t.USER_INACTIVE,""),this.addEventListener("pointerdown",this),this.addEventListener("pointermove",this),this.addEventListener("pointerup",this),this.addEventListener("mouseleave",this),this.addEventListener("keyup",this),(e=Ee.window)==null||e.addEventListener("mouseup",this)}disconnectedCallback(){var e;this.media&&this.mediaUnsetCallback(this.media),(e=Ee.window)==null||e.removeEventListener("mouseup",this)}mediaSetCallback(e){}mediaUnsetCallback(e){ov(this,Wu,null)}handleEvent(e){switch(e.type){case"pointerdown":ov(this,Dm,e.timeStamp);break;case"pointermove":Rr(this,x1,RR).call(this,e);break;case"pointerup":Rr(this,A1,IR).call(this,e);break;case"mouseleave":Rr(this,Fd,G0).call(this);break;case"mouseup":this.removeAttribute($t.KEYBOARD_CONTROL);break;case"keyup":Rr(this,Vl,Bd).call(this),this.setAttribute($t.KEYBOARD_CONTROL,"");break}}set autohide(e){e=Number(e),this._autohide=isNaN(e)?0:e}get autohide(){return this._autohide===void 0?2:this._autohide}}Dm=new WeakMap;Wu=new WeakMap;x1=new WeakSet;RR=function(t){t.pointerType!=="mouse"&&t.timeStamp-E1(this,Dm)<250||(Rr(this,q0,ey).call(this),clearTimeout(this._inactiveTimeout),[this,this.media].includes(t.target)&&Rr(this,Vl,Bd).call(this))};A1=new WeakSet;IR=function(t){if(t.pointerType==="touch"){const e=!this.hasAttribute($t.USER_INACTIVE);[this,this.media].includes(t.target)&&e?Rr(this,Fd,G0).call(this):Rr(this,Vl,Bd).call(this)}else t.composedPath().some(e=>["media-play-button","media-fullscreen-button"].includes(e?.localName))&&Rr(this,Vl,Bd).call(this)};Fd=new WeakSet;G0=function(){if(this.autohide<0||this.hasAttribute($t.USER_INACTIVE))return;this.setAttribute($t.USER_INACTIVE,"");const t=new Ee.CustomEvent(ec.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!0});this.dispatchEvent(t)};q0=new WeakSet;ey=function(){if(!this.hasAttribute($t.USER_INACTIVE))return;this.removeAttribute($t.USER_INACTIVE);const t=new Ee.CustomEvent(ec.USER_INACTIVE,{composed:!0,bubbles:!0,detail:!1});this.dispatchEvent(t)};Vl=new WeakSet;Bd=function(){Rr(this,q0,ey).call(this),clearTimeout(this._inactiveTimeout),!(this.autohide<0)&&(this._inactiveTimeout=setTimeout(()=>{Rr(this,Fd,G0).call(this)},this.autohide*1e3))};Ee.customElements.get("media-container")||Ee.customElements.define("media-container",kR);var OR=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Zn=(t,e,n)=>(OR(t,e,"read from private field"),n?n.call(t):e.get(t)),gc=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},uh=(t,e,n,i)=>
305(OR(t,e,"write to private field"),e.set(t,n),n),Gu,qu,Lm,Bo,Na,Ss;class j0{constructor(e,n,{defaultValue:i}={defaultValue:void 0}){gc(this,Na),gc(this,Gu,void 0),gc(this,qu,void 0),gc(this,Lm,void 0),gc(this,Bo,new Set),uh(this,Gu,e),uh(this,qu,n),uh(this,Lm,new Set(i))}[Symbol.iterator](){return Zn(this,Na,Ss).values()}get length(){return Zn(this,Na,Ss).size}get value(){var e;return(e=[...Zn(this,Na,Ss)].join(" "))!=null?e:""}set value(e){var n;e!==this.value&&(uh(this,Bo,new Set),this.add(...(n=e?.split(" "))!=null?n:[]))}toString(){return this.value}item(e){return[...Zn(this,Na,Ss)][e]}values(){return Zn(this,Na,Ss).values()}forEach(e){Zn(this,Na,Ss).forEach(e)}add(...e){var n,i;e.forEach(r=>Zn(this,Bo).add(r)),!(this.value===""&&!((n=Zn(this,Gu))!=null&&n.hasAttribute(`${Zn(this,qu)}`)))&&((i=Zn(this,Gu))==null||i.setAttribute(`${Zn(this,qu)}`,`${this.value}`))}remove(...e){var n;e.forEach(i=>Zn(this,Bo).delete(i)),(n=Zn(this,Gu))==null||n.setAttribute(`${Zn(this,qu)}`,`${this.value}`)}contains(e){return Zn(this,Na,Ss).has(e)}toggle(e,n){return typeof n<"u"?n?(this.add(e),!0):(this.remove(e),!1):this.contains(e)?(this.remove(e),!1):(this.add(e),!0)}replace(e,n){return this.remove(e),this.add(n),e===n}}Gu=new WeakMap;qu=new WeakMap;Lm=new WeakMap;Bo=new WeakMap;Na=new WeakSet;Ss=function(){return Zn(this,Bo).size?Zn(this,Bo):Zn(this,Lm)};const ZX=(t="")=>t.split(/\s+/),NR=(t="")=>{let[e,n,i]=t.split(":");
305const r=i?decodeURIComponent(i):void 0;return e=e==="cc"?"captions":"subtitles",{kind:e,language:n,label:r}},X0=(t="",e={})=>ZX(t).map(n=>{const i=NR(n);return{...e,...i}}),UR=t=>t?Array.isArray(t)?t.map(e=>typeof e=="string"?NR(e):e):typeof t=="string"?X0(t):[t]:[],S1=({kind:t,label:e,language:n}={kind:"subtitles"})=>e?`${t==="captions"?"cc":"sb"}:${n}:${encodeURIComponent(e)}`:n,Vd=(t=[])=>Array.prototype.map.call(t,S1).join(" "),JX=(t,e)=>n=>n[t]===e,FR=t=>{const e=Object.entries(t).map(([n,i])=>JX(n,i));return n=>e.every(i=>i(n))},dd=(t,e=[],n=[])=>{const i=UR(n).map(FR),r=a=>i.some(s=>s(a));Array.from(e).filter(r).forEach(a=>{a.mode=t})},Y0=(t,e=()=>!0)=>{if(!t?.textTracks)return[];const n=typeof e=="function"?e:FR(e);return Array.from(t.textTracks).filter(n)},BR=t=>{var e;return!!((e=t.mediaSubtitlesShowing)!=null&&e.length)||t.hasAttribute(ne.MEDIA_SUBTITLES_SHOWING)},QX=t=>{var e;const{media:n,fullscreenElement:i}=t,r=i&&"requestFullscreen"in i?"requestFullscreen":i&&"webkitRequestFullScreen"in i?"webkitRequestFullScreen":void 0;if(r){const a=(e=i[r])==null?void 0:e.call(i);if(a instanceof Promise)return a.catch(()=>{})}else n?.webkitEnterFullscreen?n.webkitEnterFullscreen():n?.requestFullscreen&&n.requestFullscreen()},ES="exitFullscreen"in dt?"exitFullscreen":"webkitExitFullscreen"in dt?"webkitExitFullscreen":"webkitCancelFullScreen"in dt?"webkitCancelFullScreen":void 0,eY=t=>{var e;const{documentElement:n}=t;if(ES){const i=(e=n?.[ES])==null?void 0:e.call(n);if(i instanceof Promise)return i.catch(()=>{})}},kc="fullscreenElement"in dt?"fullscreenElement":"webkitFullscreenElement"in dt?"webkitFullscreenElement":void 0,tY=t=>{const{documentElement:e,media:n}=t,i=e?.[kc];return!i&&"webkitDisplayingFullscreen"in n&&"webkitPresentationMode"in n&&n.webkitDisplayingFullscreen&&n.webkitPresentationMode===AX.FULLSCREEN?n:i},nY=t=>{var e;const{media:n,documentElement:i,fullscreenElement:r=n}=t;if(!n||!i)return!1;const a=tY(t);if(!a)return!1;if(a===r||a===n)return!0;if(a.localName.includes("-")){let s=a.shadowRoot;if(!(kc in s))return us(a,r);for(;s?.[kc];){if(s[kc]===r)return!0;s=(e=s[kc])==null?void 0:e.shadowRoot}}return!1},iY="fullscreenEnabled"in dt?"fullscreenEnabled":"webkitFullscreenEnabled"in dt?"webkitFullscreenEnabled":void 0,rY=t=>{const{documentElement:e,media:n}=t;return!!e?.[iY]||n&&"webkitSupportsFullscreen"in n};let lh;const ty=()=>{var t,e;return lh||(lh=(e=(t=dt)==null?void 0:t.createElement)==null?void 0:e.call(t,"video"),lh)},aY=async(t=ty())=>{if(!t)return!1;const e=t.volume;return t.volume=e/2+.1,await yR(0),t.volume!==e},sY=/.*Version\/.*Safari\/.*/.test(Ee.navigator.userAgent),VR=(t=ty())=>Ee.matchMedia("(display-mode: standalone)").matches&&sY?!1:typeof t?.requestPictureInPicture=="function",HR=(t=ty())=>rY({documentElement:dt,media:t}),oY=HR(),uY=VR(),lY=!!Ee.WebKitPlaybackTargetAvailabilityEvent,cY=!!Ee.chrome,Rm=t=>Y0(t.media,e=>[Hs.SUBTITLES,Hs.CAPTIONS].includes(e.kind)).sort((e,n)=>e.kind>=n.kind?1:-1),zR=t=>Y0(t.media,e=>e.mode===_l.SHOWING&&[Hs.SUBTITLES,Hs.CAPTIONS].includes(e.kind)),$R=(t,e)=>{const n=Rm(t),i=zR(t),r=!!i.length;if(n.length){if(e===!1||r&&e!==!0)dd(_l.DISABLED,n,i);else if(e===!0||!r&&e!==!1){let a=n[0];const{options:s}=t;if(!s?.noSubtitlesLangPref){const l=globalThis.localStorage.getItem("media-chrome-pref-subtitles-lang"),d=l?[l,...globalThis.navigator.languages]:globalThis.navigator.languages,f=n.filter(h=>d.some(g=>h.language.toLowerCase().startsWith(g.split("-")[0]))).sort((h,g)=>{const v=d.findIndex(p=>h.language.toLowerCase().startsWith(p.split("-")[0])),m=d.findIndex(p=>g.language.toLowerCase().startsWith(p.split("-")[0]));return v-m});f[0]&&(a=f[0])}const{language:o,label:u,kind:c}=a;dd(_l.DISABLED,n,i),dd(_l.SHOWING,n,[{language:o,label:u,kind:c}])}}},ny=(t,e)=>t===e?!0:typeof t!=typeof e?!1:typeof t=="number"&&Number.isNaN(t)&&Number.isNaN(e)?!0:typeof t!="object"?!1:Array.isArray(t)?dY(t,e):Object.entries(t).every(([n,i])=>n in e&&ny(i,e[n])),dY=(t,e)=>{const n=Array.isArray(t),i=Array.isArray(e);return n!==i?!1:n||i?t.length!==e.length?!1:t.every((r,a)=>ny(r,e[a])):!0},fY=Object.values(Ha);let Im;const hY=aY().then(t=>(Im=t,Im)),pY=async(...t)=>{await Promise.all(t.filter(e=>e).map(async e=>{if(!("localName"in e&&e instanceof Ee.HTMLElement))return;const n=e.localName;if(!n.includes("-"))return;const i=Ee.customElements.get(n);i&&e instanceof i||(await Ee.customElements.whenDefined(n),Ee.customElements.upgrade(e))}))},cp={mediaPaused:{get(t){var e;const{media:n}=t;return(e=n?.paused)!=null?e:!0},set(t,e){var n;const{media:i}=e;i&&(t?i.pause():(n=i.play())==null||n.catch(()=>{}))},mediaEvents:["play","playing","pause","emptied"]},mediaHasPlayed:{get(t,e){const{media:n}=t;return n?e?e.type==="playing":!n.paused:!1},mediaEvents:["playing","emptied"]},mediaEnded:{get(t){var e;const{media:n}=t;return(e=n?.ended)!=null?e:!1},mediaEvents:["seeked","ended","emptied"]},mediaPlaybackRate:{get(t){var e;const{media:n}=t;return(e=n?.playbackRate)!=null?e:1},set(t,e){const{media:n}=e;n&&Number.isFinite(+t)&&(n.playbackRate=+t)},mediaEvents:["ratechange","loadstart"]},mediaMuted:{get(t){var e;const{media:n}=t;return(e=n?.muted)!=null?e:!1},set(t,e){const{media:n}=e;n&&(n.muted=t)},mediaEvents:["volumechange"]},mediaVolume:{get(t){var e;const{media:n}=t;return(e=n?.volume)!=null?e:1},set(t,e){const{media:n}=e;if(n){try{t==null?Ee.localStorage.removeItem("media-chrome-pref-volume"):Ee.localStorage.setItem("media-chrome-pref-volume",t.toString())}catch{}Number.isFinite(+t)&&(n.volume=+t)}},mediaEvents:["volumechange"],stateOwnersUpdateHandlers:[(t,e)=>{const{options:{noVolumePref:n}}=e;if(!n)try{const i=Ee.localStorage.getItem("media-chrome-pref-volume");if(i==null)return;cp.mediaVolume.set(+i,e),t(i)}catch(i){console.debug("Error getting volume pref",i)}}]},mediaVolumeLevel:{get(t){const{media:e}=t;return typeof e?.volume>"u"?"high":e.muted||e.volume===0?"off":e.volume<.5?"low":e.volume<.75?"medium":"high"},mediaEvents:["volumechange"]},mediaCurrentTime:{get(t){var e;const{media:n}=t;return(e=n?.currentTime)!=null?e:0},set(t,e){const{media:n}=e;!n||n.readyState===0||(n.currentTime=t)},mediaEvents:["timeupdate","loadedmetadata"]},mediaDuration:{get(t){const{media:e,options:{defaultDuration:n}={}}=t;return n&&(!e||!e.duration||Number.isNaN(e.duration)||!Number.isFinite(e.duration))?n:Number.isFinite(e?.duration)?e.duration:Number.NaN},mediaEvents:["durationchange","loadedmetadata","emptied"]},mediaLoading:{get(t){const{media:e}=t;return e?.readyState<3},mediaEvents:["waiting","playing","emptied"]},mediaSeekable:{get(t){var e;const{media:n}=t;if(!((e=n?.seekable)!=null&&e.length))return;const i=n.seekable.start(0),r=n.seekable.end(n.seekable.length-1);if(!(!i&&!r))return[Number(i.toFixed(3)),Number(r.toFixed(3))]},mediaEvents:["loadedmetadata","emptied","progress","seekablechange"]},mediaBuffered:{get(t){var e;const{media:n}=t,i=(e=n?.buffered)!=null?e:[];return Array.from(i).map((r,a)=>[Number(i.start(a).toFixed(3)),Number(i.end(a).toFixed(3))])},mediaEvents:["progress","emptied"]},mediaStreamType:{get(t){const{media:e,options:{defaultStreamType:n}={}}=t,i=[Ha.LIVE,Ha.ON_DEMAND].includes(n)?n:void 0;if(!e)return i;const{streamType:r}=e;if(fY.includes(r))return r===Ha.UNKNOWN?i:r;const a=e.duration;return a===1/0?Ha.LIVE:Number.isFinite(a)?Ha.ON_DEMAND:i}
305,mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange"]},mediaTargetLiveWindow:{get(t){const{media:e}=t;if(!e)return Number.NaN;const{targetLiveWindow:n}=e,i=cp.mediaStreamType.get(t);return(n==null||Number.isNaN(n))&&i===Ha.LIVE?0:n},mediaEvents:["emptied","durationchange","loadedmetadata","streamtypechange","targetlivewindowchange"]},mediaTimeIsLive:{get(t){const{media:e,options:{liveEdgeOffset:n=10}={}}=t;if(!e)return!1;if(typeof e.liveEdgeStart=="number")return Number.isNaN(e.liveEdgeStart)?!1:e.currentTime>=e.liveEdgeStart;if(!(cp.mediaStreamType.get(t)===Ha.LIVE))return!1;const r=e.seekable;if(!r)return!0;if(!r.length)return!1;const a=r.end(r.length-1)-n;return e.currentTime>=a},mediaEvents:["playing","timeupdate","progress","waiting","emptied"]},mediaSubtitlesList:{get(t){return Rm(t).map(({kind:e,label:n,language:i})=>({kind:e,label:n,language:i}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack"]},mediaSubtitlesShowing:{get(t){return zR(t).map(({kind:e,label:n,language:i})=>({kind:e,label:n,language:i}))},mediaEvents:["loadstart"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(t,e)=>{var n,i;const{media:r,options:a}=e;if(!r)return;const s=o=>{var u;!a.defaultSubtitles||o&&![Hs.CAPTIONS,Hs.SUBTITLES].includes((u=o?.track)==null?void 0:u.kind)||$R(e,!0)};return(n=r.textTracks)==null||n.addEventListener("addtrack",s),(i=r.textTracks)==null||i.addEventListener("removetrack",s),s(),()=>{var o,u;(o=r.textTracks)==null||o.removeEventListener("addtrack",s),(u=r.textTracks)==null||u.removeEventListener("removetrack",s)}}]},mediaChaptersCues:{get(t){var e;const{media:n}=t;if(!n)return[];const[i]=Y0(n,{kind:Hs.CHAPTERS});return Array.from((e=i?.cues)!=null?e:[]).map(({text:r,startTime:a,endTime:s})=>({text:r,startTime:a,endTime:s}))},mediaEvents:["loadstart","loadedmetadata"],textTracksEvents:["addtrack","removetrack","change"],stateOwnersUpdateHandlers:[(t,e)=>{const{media:n}=e;if(!n)return;const i=n.querySelector('track[kind="chapters"][default][src]');return i?.addEventListener("load",t),()=>{i?.removeEventListener("load",t)}}]},mediaIsPip:{get(t){var e,n;const{media:i,documentElement:r}=t;if(!i||!r||!r.pictureInPictureElement)return!1;if(r.pictureInPictureElement===i)return!0;if(r.pictureInPictureElement instanceof HTMLMediaElement)return(e=i.localName)!=null&&e.includes("-")?us(i,r.pictureInPictureElement):!1;if(r.pictureInPictureElement.localName.includes("-")){let a=r.pictureInPictureElement.shadowRoot;for(;a?.pictureInPictureElement;){if(a.pictureInPictureElement===i)return!0;a=(n=a.pictureInPictureElement)==null?void 0:n.shadowRoot}}return!1},set(t,e){const{media:n}=e;if(n)if(t){if(!dt.pictureInPictureEnabled){console.warn("MediaChrome: Picture-in-picture is not enabled");return}if(!n.requestPictureInPicture){console.warn("MediaChrome: The current media does not support picture-in-picture");return}const i=()=>{console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a readyState > 0.")};n.requestPictureInPicture().catch(r=>{if(r.code===11){if(!n.src){console.warn("MediaChrome: The media is not ready for picture-in-picture. It must have a src set.");return}if(n.readyState===0&&n.preload==="none"){const a=()=>{n.removeEventListener("loadedmetadata",s),n.preload="none"},s=()=>{n.requestPictureInPicture().catch(i),a()};n.addEventListener("loadedmetadata",s),n.preload="metadata",setTimeout(()=>{n.readyState===0&&i(),a()},1e3)}else throw r}else throw r})}else dt.pictureInPictureElement&&dt.exitPictureInPicture()},mediaEvents:["enterpictureinpicture","leavepictureinpicture"]},mediaRenditionList:{get(t){var e;const{media:n}=t;return[...(e=n?.videoRenditions)!=null?e:[]].map(i=>({...i}))},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaRenditionSelected:{get(t){var e,n,i;const{media:r}=t;return(i=(n=r?.videoRenditions)==null?void 0:n[(e=r.videoRenditions)==null?void 0:e.selectedIndex])==null?void 0:i.id},set(t,e){const{media:n}=e;if(!n?.videoRenditions){console.warn("MediaController: Rendition selection not supported by this media.");return}const i=t,r=Array.prototype.findIndex.call(n.videoRenditions,a=>a.id==i);n.videoRenditions.selectedIndex!=r&&(n.videoRenditions.selectedIndex=r)},mediaEvents:["emptied"],videoRenditionsEvents:["addrendition","removerendition","change"]},mediaAudioTrackList:{get(t){var e;const{media:n}=t;return[...(e=n?.audioTracks)!=null?e:[]]},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]},mediaAudioTrackEnabled:{get(t){var e,n;const{media:i}=t;return(n=[...(e=i?.audioTracks)!=null?e:[]].find(r=>r.enabled))==null?void 0:n.id},set(t,e){const{media:n}=e;if(!n?.audioTracks){console.warn("MediaChrome: Audio track selection not supported by this media.");return}const i=t;for(let r of n.audioTracks)r.enabled=i==r.id},mediaEvents:["emptied"],audioTracksEvents:["addtrack","removetrack","change"]},mediaIsFullscreen:{get(t){return nY(t)},set(t,e){t?QX(e):eY(e)},rootEvents:["fullscreenchange","webkitfullscreenchange"],mediaEvents:["webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"]},mediaIsCasting:{get(t){var e;const{media:n}=t;return!n?.remote||((e=n.remote)==null?void 0:e.state)==="disconnected"?!1:!!n.remote.state},set(t,e){var n,i;const{media:r}=e;if(r&&!(t&&((n=r.remote)==null?void 0:n.state)!=="disconnected")&&!(!t&&((i=r.remote)==null?void 0:i.state)!=="connected")){if(typeof r.remote.prompt!="function"){console.warn("MediaChrome: Casting is not supported in this environment");return}r.remote.prompt().catch(()=>{})}},remoteEvents:["connect","connecting","disconnect"]},mediaIsAirplaying:{get(){return!1},set(t,e){const{media:n}=e;if(n){if(!(n.webkitShowPlaybackTargetPicker&&Ee.WebKitPlaybackTargetAvailabilityEvent)){console.warn("MediaChrome: received a request to select AirPlay but AirPlay is not supported in this environment");return}n.webkitShowPlaybackTargetPicker()}},mediaEvents:["webkitcurrentplaybacktargetiswirelesschanged"]},mediaFullscreenUnavailable:{get(t){const{media:e}=t;if(!oY||!HR(e))return ar.UNSUPPORTED}},mediaPipUnavailable:{get(t){const{media:e}=t;if(!uY||!VR(e))return ar.UNSUPPORTED}},mediaVolumeUnavailable:{get(t){const{media:e}=t;if(Im===!1||e?.volume==null)return ar.UNSUPPORTED},stateOwnersUpdateHandlers:[t=>{Im==null&&hY.then(e=>t(e?void 0:ar.UNSUPPORTED))}]},mediaCastUnavailable:{get(t,{availability:e="not-available"}={}){var n;const{media:i}=t;if(!cY||!((n=i?.remote)!=null&&n.state))return ar.UNSUPPORTED;if(!(e==null||e==="available"))return ar.UNAVAILABLE},stateOwnersUpdateHandlers:[(t,e)=>{var n;const{media:i}=e;return i?(i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||(n=i?.remote)==null||n.watchAvailability(a=>{t({availability:a?"available":"not-available"})}).catch(a=>{a.name==="NotSupportedError"?t({availability:null}):t({availability:"not-available"})}),()=>{var a;(a=i?.remote)==null||a.cancelWatchAvailability().catch(()=>{})}):void 0}]},mediaAirplayUnavailable:{get(t,e){if(!lY)return ar.UNSUPPORTED;if(e?.availability==="not-available")return ar.UNAVAILABLE},mediaEvents:["webkitplaybacktargetavailabilitychanged"],stateOwnersUpdateHandlers:[(t,e)=>{var n;const{media:i}=e;return i?(i.disableRemotePlayback||i.hasAttribute("disableremoteplayback")||(n=i?.remote)==null||n.watchAvailability(a=>{t({availability:a?"available":"not-available"})}).catch(a=>{a.name==="NotSupportedError"?t({availability:null}):t({availability:"not-available"})}),()=>{var a;(a=i?.remote)==null||a.cancelWatchAvailability().catch(()=>{})}):void 0}]},mediaRenditionUnavailable:{get(t){var e;const{media:n}=t;if(!n?.videoRenditions)return ar.UNSUPPORTED;if(!((e=n.videoRenditions)!=null&&e.length))return ar.UNAVAILABLE},mediaEvents:["emptied","loadstart"],videoRenditionsEvents:["addrendition","removerendition"]},mediaAudioTrackUnavailable:{get(t){var e,n;const{media:i}=t;if(!i?.audioTracks)return ar.UNSUPPORTED;if(((n=(e=i.audioTracks)==null?void 0:e.length)!=null?n:0)<=1)return ar.UNAVAILABLE},mediaEvents:["emptied","loadstart"],audioTracksEvents:["addtrack","removetrack"]}},mY={[rt.MEDIA_PREVIEW_REQUEST](t,e,{detail:n}){var i,r,a;const{media:s}=e,o=n??void 0;let u,c;if(s&&o!=null){const[h]=Y0(s,{kind:Hs.METADATA,label:"thumbnails"}),g=Array.prototype.find.call((i=h?.cues)!=null?i:[],(v,m,p)=>m===0?v.endTime>o:m===p.length-1?v.startTime<=o:v.startTime<=o&&v.endTime>o);if(g){const v=/'^(?:[a-z]+:)?\/\//i.test(g.text)||(r=s?.querySelector('track[label="thumbnails"]'))==null?void 0:r.src,m=new URL(g.text,v);c=new URLSearchParams(m.hash).get("#xywh").split(",").map(y=>+y),u=m.href}}const l=t.mediaDuration.get(e);
305let f=(a=t.mediaChaptersCues.get(e).find((h,g,v)=>g===v.length-1&&l===h.endTime?h.startTime<=o&&h.endTime>=o:h.startTime<=o&&h.endTime>o))==null?void 0:a.text;return n!=null&&f==null&&(f=""),{mediaPreviewTime:o,mediaPreviewImage:u,mediaPreviewCoords:c,mediaPreviewChapter:f}},[rt.MEDIA_PAUSE_REQUEST](t,e){t["mediaPaused"].set(!0,e)},[rt.MEDIA_PLAY_REQUEST](t,e){var n;const i="mediaPaused";if(t.mediaStreamType.get(e)===Ha.LIVE){const s=!(t.mediaTargetLiveWindow.get(e)>0),o=(n=t.mediaSeekable.get(e))==null?void 0:n[1];s&&o&&t.mediaCurrentTime.set(o,e)}t[i].set(!1,e)},[rt.MEDIA_PLAYBACK_RATE_REQUEST](t,e,{detail:n}){const i="mediaPlaybackRate",r=n;t[i].set(r,e)},[rt.MEDIA_MUTE_REQUEST](t,e){t["mediaMuted"].set(!0,e)},[rt.MEDIA_UNMUTE_REQUEST](t,e){const n="mediaMuted";t.mediaVolume.get(e)||t.mediaVolume.set(.25,e),t[n].set(!1,e)},[rt.MEDIA_VOLUME_REQUEST](t,e,{detail:n}){const i="mediaVolume",r=n;r&&t.mediaMuted.get(e)&&t.mediaMuted.set(!1,e),t[i].set(r,e)},[rt.MEDIA_SEEK_REQUEST](t,e,{detail:n}){const i="mediaCurrentTime",r=n;t[i].set(r,e)},[rt.MEDIA_SEEK_TO_LIVE_REQUEST](t,e){var n;const i="mediaCurrentTime",r=(n=t.mediaSeekable.get(e))==null?void 0:n[1];Number.isNaN(Number(r))&&t[i].set(r,e)},[rt.MEDIA_SHOW_SUBTITLES_REQUEST](t,e,{detail:n}){var i;const{options:r}=e,a=Rm(e),s=UR(n),o=(i=s[0])==null?void 0:i.language;o&&!r.noSubtitlesLangPref&&Ee.localStorage.setItem("media-chrome-pref-subtitles-lang",o),dd(_l.SHOWING,a,s)},[rt.MEDIA_DISABLE_SUBTITLES_REQUEST](t,e,{detail:n}){const i=Rm(e),r=n??[];dd(_l.DISABLED,i,r)},[rt.MEDIA_TOGGLE_SUBTITLES_REQUEST](t,e,{detail:n}){$R(e,n)},[rt.MEDIA_RENDITION_REQUEST](t,e,{detail:n}){const i="mediaRenditionSelected",r=n;t[i].set(r,e)},[rt.MEDIA_AUDIO_TRACK_REQUEST](t,e,{detail:n}){const i="mediaAudioTrackEnabled",r=n;t[i].set(r,e)},[rt.MEDIA_ENTER_PIP_REQUEST](t,e){const n="mediaIsPip";t.mediaIsFullscreen.get(e)&&t.mediaIsFullscreen.set(!1,e),t[n].set(!0,e)},[rt.MEDIA_EXIT_PIP_REQUEST](t,e){t["mediaIsPip"].set(!1,e)},[rt.MEDIA_ENTER_FULLSCREEN_REQUEST](t,e){const n="mediaIsFullscreen";t.mediaIsPip.get(e)&&t.mediaIsPip.set(!1,e),t[n].set(!0,e)},[rt.MEDIA_EXIT_FULLSCREEN_REQUEST](t,e){t["mediaIsFullscreen"].set(!1,e)},[rt.MEDIA_ENTER_CAST_REQUEST](t,e){const n="mediaIsCasting";t.mediaIsFullscreen.get(e)&&t.mediaIsFullscreen.set(!1,e),t[n].set(!0,e)},[rt.MEDIA_EXIT_CAST_REQUEST](t,e){t["mediaIsCasting"].set(!1,e)},[rt.MEDIA_AIRPLAY_REQUEST](t,e){t["mediaIsAirplaying"].set(!0,e)}},gY=({media:t,fullscreenElement:e,documentElement:n,stateMediator:i=cp,requestMap:r=mY,options:a={},monitorStateOwnersOnlyWithSubscriptions:s=!0})=>{const o=[],u={options:{...a}};let c=Object.freeze({mediaPreviewTime:void 0,mediaPreviewImage:void 0,mediaPreviewCoords:void 0,mediaPreviewChapter:void 0});const l=v=>{v!=null&&(ny(v,c)||(c=Object.freeze({...c,...v}),o.forEach(m=>m(c))))},d=()=>{const v=Object.entries(i).reduce((m,[p,{get:y}])=>(m[p]=y(u),m),{});l(v)},f={};let h;const g=async(v,m)=>{var p,y,_,b,x,w,D,O,M,S,B,V,z,Q,Z,q;const te=!!h;if(h={...u,...h??{},...v},te)return;await pY(...Object.values(v));const $=o.length>0&&m===0&&s,ee=u.media!==h.media,le=((p=u.media)==null?void 0:p.textTracks)!==((y=h.media)==null?void 0:y.textTracks),xe=((_=u.media)==null?void 0:_.videoRenditions)!==((b=h.media)==null?void 0:b.videoRenditions),J=((x=u.media)==null?void 0:x.audioTracks)!==((w=h.media)==null?void 0:w.audioTracks),ye=((D=u.media)==null?void 0:D.remote)!==((O=h.media)==null?void 0:O.remote),H=u.documentElement!==h.documentElement,ie=!!u.media&&(ee||$),_e=!!((M=u.media)!=null&&M.textTracks)&&(le||$),W=!!((S=u.media)!=null&&S.videoRenditions)&&(xe||$),be=!!((B=u.media)!=null&&B.audioTracks)&&(J||$),ge=!!((V=u.media)!=null&&V.remote)&&(ye||$),De=!!u.documentElement&&(H||$),ae=ie||_e||W||be||ge||De,Fe=o.length===0&&m===1&&s,U=!!h.media&&(ee||Fe),K=!!((z=h.media)!=null&&z.textTracks)&&(le||Fe),ue=!!((Q=h.media)!=null&&Q.videoRenditions)&&(xe||Fe),Se=!!((Z=h.media)!=null&&Z.audioTracks)&&(J||Fe),k=!!((q=h.media)!=null&&q.remote)&&(ye||Fe),E=!!h.documentElement&&(H||Fe),I=U||K||ue||Se||k||E;
305if(!(ae||I)){Object.entries(h).forEach(([Y,se])=>{u[Y]=se}),d(),h=void 0;return}Object.entries(i).forEach(([Y,{get:se,mediaEvents:Te=[],textTracksEvents:X=[],videoRenditionsEvents:ce=[],audioTracksEvents:Ie=[],remoteEvents:Me=[],rootEvents:Oe=[],stateOwnersUpdateHandlers:$e=[]}])=>{f[Y]||(f[Y]={});const Be=Ze=>{const ct=se(u,Ze);l({[Y]:ct})};let Ne;Ne=f[Y].mediaEvents,Te.forEach(Ze=>{Ne&&ie&&(u.media.removeEventListener(Ze,Ne),f[Y].mediaEvents=void 0),U&&(h.media.addEventListener(Ze,Be),f[Y].mediaEvents=Be)}),Ne=f[Y].textTracksEvents,X.forEach(Ze=>{var ct,ft;Ne&&_e&&((ct=u.media.textTracks)==null||ct.removeEventListener(Ze,Ne),f[Y].textTracksEvents=void 0),K&&((ft=h.media.textTracks)==null||ft.addEventListener(Ze,Be),f[Y].textTracksEvents=Be)}),Ne=f[Y].videoRenditionsEvents,ce.forEach(Ze=>{var ct,ft;Ne&&W&&((ct=u.media.videoRenditions)==null||ct.removeEventListener(Ze,Ne),f[Y].videoRenditionsEvents=void 0),ue&&((ft=h.media.videoRenditions)==null||ft.addEventListener(Ze,Be),f[Y].videoRenditionsEvents=Be)}),Ne=f[Y].audioTracksEvents,Ie.forEach(Ze=>{var ct,ft;Ne&&be&&((ct=u.media.audioTracks)==null||ct.removeEventListener(Ze,Ne),f[Y].audioTracksEvents=void 0),Se&&((ft=h.media.audioTracks)==null||ft.addEventListener(Ze,Be),f[Y].audioTracksEvents=Be)}),Ne=f[Y].remoteEvents,Me.forEach(Ze=>{var ct,ft;Ne&&ge&&((ct=u.media.remote)==null||ct.removeEventListener(Ze,Ne),f[Y].remoteEvents=void 0),k&&((ft=h.media.remote)==null||ft.addEventListener(Ze,Be),f[Y].remoteEvents=Be)}),Ne=f[Y].rootEvents,Oe.forEach(Ze=>{Ne&&De&&(u.documentElement.removeEventListener(Ze,Ne),f[Y].rootEvents=void 0),E&&(h.documentElement.addEventListener(Ze,Be),f[Y].rootEvents=Be)});const lt=f[Y].stateOwnersUpdateHandlers;$e.forEach(Ze=>{lt&&ae&&lt(),I&&(f[Y].stateOwnersUpdateHandlers=Ze(Be,h))})}),Object.entries(h).forEach(([Y,se])=>{u[Y]=se}),d(),h=void 0};return g({media:t,fullscreenElement:e,documentElement:n,options:a}),{dispatch(v){const{type:m,detail:p}=v;if(r[m]){l(r[m](i,u,v));return}m==="mediaelementchangerequest"?g({media:p}):m==="fullscreenelementchangerequest"?g({fullscreenElement:p}
305):m==="documentelementchangerequest"?g({documentElement:p}):m==="optionschangerequest"&&Object.entries(p??{}).forEach(([y,_])=>{u.options[y]=_})},getState(){return c},subscribe(v){return g({},o.length+1),o.push(v),v(c),()=>{const m=o.indexOf(v);m>=0&&(g({},o.length-1),o.splice(m,1))}}}};var vY=gY,iy=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Mt=(t,e,n)=>(iy(t,e,"read from private field"),n?n.call(t):e.get(t)),Da=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ms=(t,e,n,i)=>(iy(t,e,"write to private field"),e.set(t,n),n),Is=(t,e,n)=>(iy(t,e,"access private method"),n),Ps,Oc,dn,Nc,Yr,dp,fp,T1,Hl,Hd,hp,w1;const WR=["ArrowLeft","ArrowRight","Enter"," ","f","m","k","c"],xS=10,kt={DEFAULT_SUBTITLES:"defaultsubtitles",DEFAULT_STREAM_TYPE:"defaultstreamtype",DEFAULT_DURATION:"defaultduration",FULLSCREEN_ELEMENT:"fullscreenelement",HOTKEYS:"hotkeys",KEYS_USED:"keysused",LIVE_EDGE_OFFSET:"liveedgeoffset",NO_HOTKEYS:"nohotkeys",NO_VOLUME_PREF:"novolumepref",NO_SUBTITLES_LANG_PREF:"nosubtitleslangpref",NO_DEFAULT_STORE:"nodefaultstore",KEYBOARD_FORWARD_SEEK_OFFSET:"keyboardforwardseekoffset",KEYBOARD_BACKWARD_SEEK_OFFSET:"keyboardbackwardseekoffset"};class _Y extends kR{constructor(){super(),Da(this,fp),Da(this,Hl),Da(this,hp),Da(this,Ps,new j0(this,kt.HOTKEYS)),Da(this,Oc,void 0),Da(this,dn,void 0),Da(this,Nc,void 0),Da(this,Yr,void 0),Da(this,dp,n=>{var i;(i=Mt(this,dn))==null||i.dispatch(n)}),this.mediaStateReceivers=[],this.associatedElementSubscriptions=new Map,this.associateElement(this);let e={};ms(this,Nc,n=>{Object.entries(n).forEach(([i,r])=>{if(i in e&&e[i]===r)return;this.propagateMediaState(i,r);const a=i.toLowerCase(),s=new Ee.CustomEvent(xX[a],{composed:!0,detail:r});this.dispatchEvent(s)}),e=n}),this.enableHotkeys()}static get observedAttributes(){return super.observedAttributes.concat(kt.NO_HOTKEYS,kt.HOTKEYS,kt.DEFAULT_STREAM_TYPE,kt.DEFAULT_SUBTITLES,kt.DEFAULT_DURATION)}get mediaStore(){return Mt(this,dn)}set mediaStore(e){var n,i;if(Mt(this,dn)&&((n=Mt(this,Yr))==null||n.call(this),ms(this,Yr,void 0)),ms(this,dn,e),!Mt(this,dn)&&!this.hasAttribute(kt.NO_DEFAULT_STORE)){Is(this,fp,T1).call(this);return}ms(this,Yr,(i=Mt(this,dn))==null?void 0:i.subscribe(Mt(this,Nc)))}get fullscreenElement(){var e;return(e=Mt(this,Oc))!=null?e:this}set fullscreenElement(e){var n;this.hasAttribute(kt.FULLSCREEN_ELEMENT)&&this.removeAttribute(kt.FULLSCREEN_ELEMENT),ms(this,Oc,e),(n=Mt(this,dn))==null||n.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}attributeChangedCallback(e,n,i){var r,a,s,o,u,c;if(super.attributeChangedCallback(e,n,i),e===kt.NO_HOTKEYS)i!==n&&i===""?(this.hasAttribute(kt.HOTKEYS)&&console.warn("Media Chrome: Both `hotkeys` and `nohotkeys` have been set. All hotkeys will be disabled."),this.disableHotkeys()):i!==n&&i===null&&this.enableHotkeys();else if(e===kt.HOTKEYS)Mt(this,Ps).value=i;else if(e===kt.DEFAULT_SUBTITLES&&i!==n)(r=Mt(this,dn))==null||r.dispatch({type:"optionschangerequest",detail:{defaultSubtitles:this.hasAttribute(kt.DEFAULT_SUBTITLES)}});else if(e===kt.DEFAULT_STREAM_TYPE)(s=Mt(this,dn))==null||s.dispatch({type:"optionschangerequest",detail:{defaultStreamType:(a=this.getAttribute(kt.DEFAULT_STREAM_TYPE))!=null?a:void 0}});else if(e===kt.LIVE_EDGE_OFFSET)(o=Mt(this,dn))==null||o.dispatch({type:"optionschangerequest",detail:{liveEdgeOffset:this.hasAttribute(kt.LIVE_EDGE_OFFSET)?+this.getAttribute(kt.LIVE_EDGE_OFFSET):void 0}});else if(e===kt.FULLSCREEN_ELEMENT){const l=i?(u=this.getRootNode())==null?void 0:u.getElementById(i):void 0;ms(this,Oc,l),(c=Mt(this,dn))==null||c.dispatch({type:"fullscreenelementchangerequest",detail:this.fullscreenElement})}}connectedCallback(){var e,n;!Mt(this,dn)&&!this.hasAttribute(kt.NO_DEFAULT_STORE)&&Is(this,fp,T1).call(this),(e=Mt(this,dn))==null||e.dispatch({type:"documentelementchangerequest",detail:dt}),super.connectedCallback(),Mt(this,dn)&&!Mt(this,Yr)&&ms(this,Yr,(n=Mt(this,dn))==null?void 0:n.subscribe(Mt(this,Nc))),this.enableHotkeys()}disconnectedCallback(){var e,n,i,r;
305(e=super.disconnectedCallback)==null||e.call(this),Mt(this,dn)&&((n=Mt(this,dn))==null||n.dispatch({type:"documentelementchangerequest",detail:void 0}),(i=Mt(this,dn))==null||i.dispatch({type:rt.MEDIA_TOGGLE_SUBTITLES_REQUEST,detail:!1})),Mt(this,Yr)&&((r=Mt(this,Yr))==null||r.call(this),ms(this,Yr,void 0))}mediaSetCallback(e){var n;super.mediaSetCallback(e),(n=Mt(this,dn))==null||n.dispatch({type:"mediaelementchangerequest",detail:e}),e.hasAttribute("tabindex")||(e.tabIndex=-1)}mediaUnsetCallback(e){var n;super.mediaUnsetCallback(e),(n=Mt(this,dn))==null||n.dispatch({type:"mediaelementchangerequest",detail:void 0})}propagateMediaState(e,n){TS(this.mediaStateReceivers,e,n)}associateElement(e){if(!e)return;const{associatedElementSubscriptions:n}=this;if(n.has(e))return;const i=this.registerMediaStateReceiver.bind(this),r=this.unregisterMediaStateReceiver.bind(this),a=SY(e,i,r);Object.values(rt).forEach(s=>{e.addEventListener(s,Mt(this,dp))}),n.set(e,a)}unassociateElement(e){if(!e)return;const{associatedElementSubscriptions:n}=this;if(!n.has(e))return;n.get(e)(),n.delete(e),Object.values(rt).forEach(r=>{e.removeEventListener(r,Mt(this,dp))})}registerMediaStateReceiver(e){if(!e)return;const n=this.mediaStateReceivers;n.indexOf(e)>-1||(n.push(e),Mt(this,dn)&&Object.entries(Mt(this,dn).getState()).forEach(([r,a])=>{TS([e],r,a)}))}unregisterMediaStateReceiver(e){const n=this.mediaStateReceivers,i=n.indexOf(e);i<0||n.splice(i,1)}enableHotkeys(){this.addEventListener("keydown",Is(this,hp,w1))}disableHotkeys(){this.removeEventListener("keydown",Is(this,hp,w1)),this.removeEventListener("keyup",Is(this,Hl,Hd))}get hotkeys(){return Mt(this,Ps)}keyboardShortcutHandler(e){var n,i,r,a,s,o;if(((a=(r=(n=e.target.getAttribute(kt.KEYS_USED))==null?void 0:n.split(" "))!=null?r:(i=e.target)==null?void 0:i.keysUsed)!=null?a:[]).map(f=>f==="Space"?" ":f).filter(Boolean).includes(e.key))return;let c,l,d;if(!Mt(this,Ps).contains(`no${e.key.toLowerCase()}`)&&!(e.key===" "&&Mt(this,Ps).contains("nospace")))switch(e.key){case" ":case"k":c=Mt(this,dn).getState().mediaPaused?rt.MEDIA_PLAY_REQUEST:rt.MEDIA_PAUSE_REQUEST,this.dispatchEvent(new Ee.CustomEvent(c,{composed:!0,bubbles:!0}));break;case"m":c=this.mediaStore.getState().mediaVolumeLevel==="off"?rt.MEDIA_UNMUTE_REQUEST:rt.MEDIA_MUTE_REQUEST,this.dispatchEvent(new Ee.CustomEvent(c,{composed:!0,bubbles:!0}));break;case"f":c=this.mediaStore.getState().mediaIsFullscreen?rt.MEDIA_EXIT_FULLSCREEN_REQUEST:rt.MEDIA_ENTER_FULLSCREEN_REQUEST,this.dispatchEvent(new Ee.CustomEvent(c,{composed:!0,bubbles:!0}));break;case"c":this.dispatchEvent(new Ee.CustomEvent(rt.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}));break;case"ArrowLeft":{const f=this.hasAttribute(kt.KEYBOARD_BACKWARD_SEEK_OFFSET)?+this.getAttribute(kt.KEYBOARD_BACKWARD_SEEK_OFFSET):xS;l=Math.max(((s=this.mediaStore.getState().mediaCurrentTime)!=null?s:0)-f,0),d=new Ee.CustomEvent(rt.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:l}),this.dispatchEvent(d);break}case"ArrowRight":{const f=this.hasAttribute(kt.KEYBOARD_FORWARD_SEEK_OFFSET)?+this.getAttribute(kt.KEYBOARD_FORWARD_SEEK_OFFSET):xS;l=Math.max(((o=this.mediaStore.getState().mediaCurrentTime)!=null?o:0)+f,0),d=new Ee.CustomEvent(rt.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:l}),this.dispatchEvent(d);break}}}}Ps=new WeakMap;Oc=new WeakMap;dn=new WeakMap;Nc=new WeakMap;Yr=new WeakMap;dp=new WeakMap;fp=new WeakSet;T1=function(){var t;this.mediaStore=vY({media:this.media,fullscreenElement:this.fullscreenElement,options:{defaultSubtitles:this.hasAttribute(kt.DEFAULT_SUBTITLES),defaultDuration:this.hasAttribute(kt.DEFAULT_DURATION)?+this.getAttribute(kt.DEFAULT_DURATION):void 0,defaultStreamType:(t=this.getAttribute(kt.DEFAULT_STREAM_TYPE))!=null?t:void 0,liveEdgeOffset:this.hasAttribute(kt.LIVE_EDGE_OFFSET)?+this.getAttribute(kt.LIVE_EDGE_OFFSET):void 0,noVolumePref:this.hasAttribute(kt.NO_VOLUME_PREF),noSubtitlesLangPref:this.hasAttribute(kt.NO_SUBTITLES_LANG_PREF)}})};Hl=new WeakSet;Hd=function(t){const{key:e}=t;if(!WR.includes(e)){this.removeEventListener("keyup",Is(this,Hl,Hd));return}this.keyboardShortcutHandler(t)};hp=new WeakSet;w1=function(t){const{metaKey:e,altKey:n,key:i}=t;if(e||n||!WR.includes(i)){this.removeEventListener("keyup",Is(this,Hl,Hd));return}[" ","ArrowLeft","ArrowRight"].includes(i)&&!(Mt(this,Ps).contains(`no${i.toLowerCase()}
305`)||i===" "&&Mt(this,Ps).contains("nospace"))&&t.preventDefault(),this.addEventListener("keyup",Is(this,Hl,Hd),{once:!0})};const bY=Object.values(ne),yY=Object.values(_R),GR=t=>{var e,n,i,r;let{observedAttributes:a}=t.constructor;!a&&((e=t.nodeName)!=null&&e.includes("-"))&&(Ee.customElements.upgrade(t),{observedAttributes:a}=t.constructor);const s=(r=(i=(n=t?.getAttribute)==null?void 0:n.call(t,an.MEDIA_CHROME_ATTRIBUTES))==null?void 0:i.split)==null?void 0:r.call(i,/\s+/);return Array.isArray(a||s)?(a||s).filter(o=>bY.includes(o)):[]},EY=t=>{var e,n;return(e=t.nodeName)!=null&&e.includes("-")&&Ee.customElements.get((n=t.nodeName)==null?void 0:n.toLowerCase())&&!(t instanceof Ee.customElements.get(t.nodeName.toLowerCase()))&&Ee.customElements.upgrade(t),yY.some(i=>i in t)},M1=t=>EY(t)||!!GR(t).length,AS=t=>{var e;return(e=t?.join)==null?void 0:e.call(t,":")},SS={[ne.MEDIA_SUBTITLES_LIST]:Vd,[ne.MEDIA_SUBTITLES_SHOWING]:Vd,[ne.MEDIA_SEEKABLE]:AS,[ne.MEDIA_BUFFERED]:t=>t?.map(AS).join(" "),[ne.MEDIA_PREVIEW_COORDS]:t=>t?.join(" "),[ne.MEDIA_RENDITION_LIST]:SX,[ne.MEDIA_AUDIO_TRACK_LIST]:CX},xY=async(t,e,n)=>{var i,r;if(t.isConnected||await yR(0),typeof n=="boolean"||n==null)return ei(t,e,n);if(typeof n=="number")return ai(t,e,n);if(typeof n=="string")return yi(t,e,n);if(Array.isArray(n)&&!n.length)return t.removeAttribute(e);const a=(r=(i=SS[e])==null?void 0:i.call(SS,n))!=null?r:n;return t.setAttribute(e,a)},AY=t=>{var e;return!!((e=t.closest)!=null&&e.call(t,'*[slot="media"]'))},Mo=(t,e)=>{if(AY(t))return;const n=(r,a)=>{var s,o;M1(r)&&a(r);const{children:u=[]}=r??{},c=(o=(s=r?.shadowRoot)==null?void 0:s.children)!=null?o:[];[...u,...c].forEach(d=>Mo(d,a))},i=t?.nodeName.toLowerCase();if(i.includes("-")&&!M1(t)){Ee.customElements.whenDefined(i).then(()=>{n(t,e)});return}n(t,e)},TS=(t,e,n)=>{t.forEach(i=>{if(e in i){i[e]=n;return}const r=GR(i),a=e.toLowerCase();r.includes(a)&&xY(i,a,n)})},SY=(t,e,n)=>{Mo(t,e);const i=l=>{var d;const f=(d=l?.composedPath()[0])!=null?d:l.target;e(f)},r=l=>{var d;const f=(d=l?.composedPath()[0])!=null?d:l.target;n(f)};t.addEventListener(rt.REGISTER_MEDIA_STATE_RECEIVER,i),t.addEventListener(rt.UNREGISTER_MEDIA_STATE_RECEIVER,r);const a=l=>{l.forEach(d=>{const{addedNodes:f=[],removedNodes:h=[],type:g,target:v,attributeName:m}=d;g==="childList"?(Array.prototype.forEach.call(f,p=>Mo(p,e)),Array.prototype.forEach.call(h,p=>Mo(p,n))):g==="attributes"&&m===an.MEDIA_CHROME_ATTRIBUTES&&(M1(v)?e(v):n(v))})};let s=[];const o=l=>{const d=l.target;d.name!=="media"&&(s.forEach(f=>Mo(f,n)),s=[...d.assignedElements({flatten:!0})],s.forEach(f=>Mo(f,e)))};t.addEventListener("slotchange",o);const u=new MutationObserver(a);return u.observe(t,{childList:!0,attributes:!0,subtree:!0}),()=>{Mo(t,n),t.removeEventListener("slotchange",o),u.disconnect(),t.removeEventListener(rt.REGISTER_MEDIA_STATE_RECEIVER,i),t.removeEventListener(rt.UNREGISTER_MEDIA_STATE_RECEIVER,r)}};Ee.customElements.get("media-controller")||Ee.customElements.define("media-controller",_Y);var TY=Object.defineProperty,wY=(t,e,n)=>e in t?TY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,MY=(t,e,n)=>(wY(t,e+"",n),n),qR=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},sr=(t,e,n)=>(qR(t,e,"read from private field"),n?n.call(t):e.get(t)),ch=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},dh=(t,e,n,i)=>(qR(t,e,"write to private field"),e.set(t,n),n),Kr,pp,ju,mp;const jR=dt.createElement("template");jR.innerHTML=`
306<style>
307  :host {
308    font: var(--media-font,
309      var(--media-font-weight, bold)
310      var(--media-font-size, 14px) /
311      var(--media-text-content-height, var(--media-control-height, 24px))
312      var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
313    color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
314    background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
315    padding: var(--media-button-padding, var(--media-control-padding, 10px));
316    justify-content: var(--media-button-justify-content, center);
317    display: inline-flex;
318    align-items: center;
319    vertical-align: middle;
320    box-sizing: border-box;
321    transition: background .15s linear;
322    pointer-events: auto;
323    cursor: pointer;
324    -webkit-tap-highlight-color: transparent;
325  }
326
327  
328  :host(:focus-visible) {
329    box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
330    outline: 0;
331  }
332  
333  :host(:where(:focus)) {
334    box-shadow: none;
335    outline: 0;
336  }
337
338  :host(:hover) {
339    background: var(--media-control-hover-background, rgba(50 50 70 / .7));
340  }
341
342  svg, img, ::slotted(svg), ::slotted(img) {
343    width: var(--media-button-icon-width);
344    height: var(--media-button-icon-height, var(--media-control-height, 24px));
345    transform: var(--media-button-icon-transform);
346    transition: var(--media-button-icon-transition);
347    fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
348    vertical-align: middle;
349    max-width: 100%;
350    max-height: 100%;
351    min-width: 100%;
352  }
353</style>
354`;
354class tr extends Ee.HTMLElement{constructor(e={}){if(super(),ch(this,Kr,void 0),MY(this,"preventClick",!1),ch(this,pp,n=>{this.preventClick||this.handleClick(n)}),ch(this,ju,n=>{const{key:i}=n;if(!this.keysUsed.includes(i)){this.removeEventListener("keyup",sr(this,ju));return}this.preventClick||this.handleClick(n)}),ch(this,mp,n=>{const{metaKey:i,altKey:r,key:a}=n;if(i||r||!this.keysUsed.includes(a)){this.removeEventListener("keyup",sr(this,ju));return}this.addEventListener("keyup",sr(this,ju),{once:!0})}),!this.shadowRoot){this.attachShadow({mode:"open"});const n=jR.content.cloneNode(!0);this.nativeEl=n;let i=e.slotTemplate;i||(i=dt.createElement("template"),i.innerHTML=`<slot>${e.defaultContent||""}</slot>`),this.nativeEl.appendChild(i.content.cloneNode(!0)),this.shadowRoot.appendChild(n)}}static get observedAttributes(){return["disabled",an.MEDIA_CONTROLLER]}enable(){this.addEventListener("click",sr(this,pp)),this.addEventListener("keydown",sr(this,mp)),this.tabIndex=0}disable(){this.removeEventListener("click",sr(this,pp)),this.removeEventListener("keydown",sr(this,mp)),this.removeEventListener("keyup",sr(this,ju)),this.tabIndex=-1}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===an.MEDIA_CONTROLLER?(n&&((a=(r=sr(this,Kr))==null?void 0:r.unassociateElement)==null||a.call(r,this),dh(this,Kr,null)),i&&this.isConnected&&(dh(this,Kr,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=sr(this,Kr))==null?void 0:o.associateElement)==null||u.call(o,this))):e==="disabled"&&i!==n&&(i==null?this.enable():this.disable())}connectedCallback(){var e,n,i;const{style:r}=Nn(this.shadowRoot,":host");r.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","button");const a=this.getAttribute(an.MEDIA_CONTROLLER);a&&(dh(this,Kr,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=sr(this,Kr))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;this.disable(),(n=(e=sr(this,Kr))==null?void 0:e.unassociateElement)==null||n.call(e,this),dh(this,Kr,null)}get keysUsed(){return["Enter"," "]}handleClick(e){}}Kr=new WeakMap;pp=new WeakMap;ju=new WeakMap;mp=new WeakMap;Ee.customElements.get("media-chrome-button")||Ee.customElements.define("media-chrome-button",tr);const wS=`<svg aria-hidden="true" viewBox="0 0 26 24">
355  <path d="M22.13 3H3.87a.87.87 0 0 0-.87.87v13.26a.87.87 0 0 0 .87.87h3.4L9 16H5V5h16v11h-4l1.72 2h3.4a.87.87 0 0 0 .87-.87V3.87a.87.87 0 0 0-.86-.87Zm-8.75 11.44a.5.5 0 0 0-.76 0l-4.91 5.73a.5.5 0 0 0 .38.83h9.82a.501.501 0 0 0 .38-.83l-4.91-5.73Z"/>
356</svg>
357`,XR=dt.createElement("template");XR.innerHTML=`
358  <style>
359  :host([${ne.MEDIA_IS_AIRPLAYING}]) slot:not([name=exit]):not([name=icon]) {
360    display: none !important;
361  }
362
363  
364  :host(:not([${ne.MEDIA_IS_AIRPLAYING}])) slot:not([name=enter]):not([name=icon]) {
365    display: none !important;
366  }
367  </style>
368
369  <slot name="icon">
370    <slot name="enter">${wS}</slot>
371    <slot name="exit">${wS}</slot>
372  </slot>
373`;const MS=t=>{const e=t.mediaIsAirplaying?_i.EXIT_AIRPLAY():_i.ENTER_AIRPLAY();t.setAttribute("aria-label",e)};class CY extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_IS_AIRPLAYING,ne.MEDIA_AIRPLAY_UNAVAILABLE]}constructor(e={}){super({slotTemplate:XR,...e})}connectedCallback(){super.connectedCallback(),MS(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_IS_AIRPLAYING&&MS(this)}get mediaIsAirplaying(){return Qn(this,ne.MEDIA_IS_AIRPLAYING)}set mediaIsAirplaying(e){ei(this,ne.MEDIA_IS_AIRPLAYING,e)}get mediaAirplayUnavailable(){return bi(this,ne.MEDIA_AIRPLAY_UNAVAILABLE)}set mediaAirplayUnavailable(e){yi(this,ne.MEDIA_AIRPLAY_UNAVAILABLE,e)}handleClick(){const e=new Ee.CustomEvent(rt.MEDIA_AIRPLAY_REQUEST,{composed:!0,bubbles:!0});this.dispatchEvent(e)}}Ee.customElements.get("media-airplay-button")||Ee.customElements.define("media-airplay-button",CY);function DY({anchor:t,floating:e,placement:n}){let i=LY({anchor:t,floating:e}),{x:r,y:a}=IY(i,n);return{x:r,y:a}}function LY({anchor:t,floating:e}){return{anchor:RY(t,e.offsetParent),floating:{x:0,y:0,width:e.offsetWidth,height:e.offsetHeight}}}function RY(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect();return{x:n.x-i.x,y:n.y-i.y,width:n.width,height:n.height}}function IY({anchor:t,floating:e},n){const i=PY(n)==="x"?"y":"x",r=i==="y"?"height":"width",a=YR(n),s=t.x+t.width/2-e.width/2,o=t.y+t.height/2-e.height/2,u=t[r]/2-e[r]/2;let c;
373switch(a){case"top":c={x:s,y:t.y-e.height};break;case"bottom":c={x:s,y:t.y+t.height};break;case"right":c={x:t.x+t.width,y:o};break;case"left":c={x:t.x-e.width,y:o};break;default:c={x:t.x,y:t.y}}switch(n.split("-")[1]){case"start":c[i]-=u;break;case"end":c[i]+=u;break}return c}function YR(t){return t.split("-")[0]}function PY(t){return["top","bottom"].includes(YR(t))?"y":"x"}var kY=Object.defineProperty,OY=(t,e,n)=>e in t?kY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Pm=(t,e,n)=>(OY(t,typeof e!="symbol"?e+"":e,n),n);class ry extends Event{constructor({action:e="auto",relatedTarget:n,...i}){super("invoke",i),Pm(this,"action"),Pm(this,"relatedTarget"),this.action=e,this.relatedTarget=n}}class NY extends Event{constructor({newState:e,oldState:n,...i}){super("toggle",i),Pm(this,"newState"),Pm(this,"oldState"),this.newState=e,this.oldState=n}}var UY=Object.defineProperty,FY=(t,e,n)=>e in t?UY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,BY=(t,e,n)=>(FY(t,e+"",n),n),ay=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Kt=(t,e,n)=>(ay(t,e,"read from private field"),n?n.call(t):e.get(t)),tn=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ua=(t,e,n,i)=>(ay(t,e,"write to private field"),e.set(t,n),n),sn=(t,e,n)=>(ay(t,e,"access private method"),n),Zr,jo,Ys,KR,ZR,gp,vp,Xo,C1,JR,km,_p,D1,L1,QR,R1,eI,I1,tI,bl,yl,Yo,zl,Om,sy,P1,nI,oy,iI,k1,rI,uy,aI,O1,sI,N1,oI,fd,Nm,U1,uI,hd,Um,bp,F1;function $l({type:t,text:e,value:n,checked:i}){const r=dt.createElement("media-chrome-menu-item");r.type=t,r.part.add("menu-item"),r.part.add(t),r.value=n,r.checked=i;const a=dt.createElement("span");return a.textContent=e,r.append(a),r}function Ko(t,e){let n=t.querySelector(`:scope > [slot="${e}"]`);if(n?.nodeName=="SLOT"&&(n=n.assignedElements({flatten:!0})[0]),n)return n=n.cloneNode(!0),n;let i=t.shadowRoot.querySelector(`[name="${e}"] > svg`);return i?i.cloneNode(!0):""}const lI=dt.createElement("template");lI.innerHTML=`
374  <style>
375    :host {
376      font: var(--media-font,
377        var(--media-font-weight, normal)
378        var(--media-font-size, 14px) /
379        var(--media-text-content-height, var(--media-control-height, 24px))
380        var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
381      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
382      background: var(--media-menu-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));
383      border-radius: var(--media-menu-border-radius);
384      border: var(--media-menu-border, none);
385      display: var(--media-menu-display, inline-flex);
386      transition: var(--media-menu-transition-in,
387        visibility 0s,
388        opacity .2s ease-out,
389        transform .15s ease-out,
390        left .2s ease-in-out,
391        min-width .2s ease-in-out,
392        min-height .2s ease-in-out
393      ) !important;
394      
395      visibility: var(--media-menu-visibility, visible);
396      opacity: var(--media-menu-opacity, 1);
397      max-height: var(--media-menu-max-height, var(--_menu-max-height, 300px));
398      transform: var(--media-menu-transform-in, translateY(0) scale(1));
399      flex-direction: column;
400      
401      min-height: 0;
402      position: relative;
403      box-sizing: border-box;
404    }
405
406    :host([hidden]) {
407      transition: var(--media-menu-transition-out,
408        visibility .15s ease-in,
409        opacity .15s ease-in,
410        transform .15s ease-in
411      ) !important;
412      visibility: var(--media-menu-hidden-visibility, hidden);
413      opacity: var(--media-menu-hidden-opacity, 0);
414      max-height: var(--media-menu-hidden-max-height,
415        var(--media-menu-max-height, var(--_menu-max-height, 300px)));
416      transform: var(--media-menu-transform-out, translateY(2px) scale(.99));
417      pointer-events: none;
418    }
419
420    :host([slot="submenu"]) {
421      background: none;
422      width: 100%;
423      min-height: 100%;
424      position: absolute;
425      bottom: 0;
426      right: -100%;
427    }
428
429    #container {
430      display: flex;
431      flex-direction: column;
432      min-height: 0;
433      transition: transform .2s ease-out;
434      transform: translate(0, 0);
435    }
436
437    #container.has-expanded {
438      transition: transform .2s ease-in;
439      transform: translate(-100%, 0);
440    }
441
442    slot[name="header"] {
443      display: flex;
444      padding: .4em .7em;
445      border-bottom: 1px solid rgb(255 255 255 / .25);
446      cursor: default;
447    }
448
449    slot[name="header"][hidden] {
450      display: none;
451    }
452
453    button[part~="back"] {
454      background: none;
455      color: inherit;
456      border: none;
457      padding: 0;
458      font: inherit;
459      cursor: pointer;
460      outline: inherit;
461      display: inline-flex;
462      align-items: center;
463      cursor: pointer;
464    }
465
466    svg[part~="back"] {
467      height: var(--media-menu-icon-height, var(--media-control-height, 24px));
468      fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
469      display: block;
470      margin-right: .5ch;
471    }
472
473    slot:not([name]) {
474      gap: var(--media-menu-gap);
475      flex-direction: var(--media-menu-flex-direction, column);
476      overflow: var(--media-menu-overflow, hidden auto);
477      display: flex;
478      min-height: 0;
479    }
480
481    :host([role="menu"]) slot:not([name]) {
482      padding-block: .4em;
483    }
484
485    slot:not([name])::slotted([role="menu"]) {
486      background: none;
487    }
488
489    media-chrome-menu-item > span {
490      margin-right: .5ch;
491      max-width: var(--media-menu-item-max-width);
492      text-overflow: ellipsis;
493      overflow: hidden;
494    }
495  </style>
496  <style id="layout-row" media="width:0">
497
498    slot[name="header"] {
499      padding: .4em .5em;
500    }
501
502    slot:not([name]) {
503      gap: var(--media-menu-gap, .25em);
504      flex-direction: var(--media-menu-flex-direction, row);
505      padding-inline: .5em;
506    }
507
508    media-chrome-menu-item {
509      padding: .3em .5em;
510    }
511
512    media-chrome-menu-item[aria-checked="true"] {
513      background: var(--media-menu-item-checked-background, rgb(255 255 255 / .2));
514    }
515
516    
517    media-chrome-menu-item::part(checked-indicator) {
518      display: var(--media-menu-item-checked-indicator-display, none);
519    }
520  </style>
521  <div id="container">
522    <slot name="header" hidden>
523      <button part="back button" aria-label="Back to previous menu">
524        <slot name="back-icon">
525          <svg aria-hidden="true" viewBox="0 0 20 24" part="back indicator">
526            <path d="m11.88 17.585.742-.669-4.2-4.665 4.2-4.666-.743-.669-4.803 5.335 4.803 5.334Z"/>
527          </svg>
528        </slot>
529        <slot name="title"></slot>
530      </button>
531    </slot>
532    <slot></slot>
533  </div>
534  <slot name="checked-indicator" hidden></slot>
535`;const _o={STYLE:"style",HIDDEN:"hidden",DISABLED:"disabled",ANCHOR:"anchor"};
535class ls extends Ee.HTMLElement{constructor(){super(),tn(this,C1),tn(this,_p),tn(this,L1),tn(this,R1),tn(this,I1),tn(this,Yo),tn(this,Om),tn(this,P1),tn(this,oy),tn(this,k1),tn(this,uy),tn(this,O1),tn(this,N1),tn(this,fd),tn(this,U1),tn(this,hd),tn(this,bp),tn(this,Zr,void 0),tn(this,jo,void 0),tn(this,Ys,void 0),tn(this,KR,""),tn(this,ZR,null),tn(this,gp,new Set),tn(this,vp,void 0),tn(this,Xo,!1),tn(this,km,()=>{const e=Kt(this,gp),n=new Set(this.items);for(const i of e)n.has(i)||this.dispatchEvent(new CustomEvent("removemenuitem",{detail:i}));for(const i of n)e.has(i)||this.dispatchEvent(new CustomEvent("addmenuitem",{detail:i}));Ua(this,gp,n)}),tn(this,bl,()=>{sn(this,Yo,zl).call(this,!1),sn(this,Om,sy).call(this,!1)}),tn(this,yl,()=>{sn(this,Yo,zl).call(this,!1)}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=this.constructor.template.content.cloneNode(!0),this.shadowRoot.append(this.nativeEl)),this.container=this.shadowRoot.querySelector("#container"),this.defaultSlot=this.shadowRoot.querySelector("slot:not([name])"),this.shadowRoot.addEventListener("slotchange",this),Ua(this,vp,new MutationObserver(Kt(this,km))),Kt(this,vp).observe(this.defaultSlot,{childList:!0})}static get observedAttributes(){return[_o.DISABLED,_o.HIDDEN,_o.STYLE,_o.ANCHOR,an.MEDIA_CONTROLLER]}static formatMenuItemText(e){return e}enable(){this.addEventListener("click",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this),this.addEventListener("invoke",this),this.addEventListener("toggle",this)}disable(){this.removeEventListener("click",this),this.removeEventListener("focusout",this),this.removeEventListener("keyup",this),this.removeEventListener("invoke",this),this.removeEventListener("toggle",this)}handleEvent(e){switch(e.type){case"slotchange":sn(this,C1,JR).call(this,e);break;case"invoke":sn(this,L1,QR).call(this,e);break;case"click":sn(this,P1,nI).call(this,e);break;case"toggle":sn(this,k1,rI).call(this,e);break;case"focusout":sn(this,O1,sI).call(this,e);break;case"keydown":sn(this,N1,oI).call(this,e);break}}connectedCallback(){var e,n;sn(this,_p,D1).call(this),this.hasAttribute("disabled")||this.enable(),this.role||(this.role="menu"),Ua(this,Zr,y1(this)),(n=(e=Kt(this,Zr))==null?void 0:e.associateElement)==null||n.call(e,this),this.hidden||(Bl(zd(this),Kt(this,bl)),Bl(this,Kt(this,yl)))}disconnectedCallback(){var e,n;Ud(zd(this),Kt(this,bl)),Ud(this,Kt(this,yl)),this.disable(),(n=(e=Kt(this,Zr))==null?void 0:e.unassociateElement)==null||n.call(e,this),Ua(this,Zr,null)}attributeChangedCallback(e,n,i){var r,a,s,o;e===_o.HIDDEN&&i!==n?(Kt(this,Xo)||Ua(this,Xo,!0),this.hidden?sn(this,I1,tI).call(this):sn(this,R1,eI).call(this),this.dispatchEvent(new NY({oldState:this.hidden?"open":"closed",newState:this.hidden?"closed":"open",bubbles:!0}))):e===an.MEDIA_CONTROLLER?(n&&((a=(r=Kt(this,Zr))==null?void 0:r.unassociateElement)==null||a.call(r,this),Ua(this,Zr,null)),i&&this.isConnected&&(Ua(this,Zr,y1(this)),(o=(s=Kt(this,Zr))==null?void 0:s.associateElement)==null||o.call(s,this))):e===_o.DISABLED&&i!==n?i==null?this.enable():this.disable():e===_o.STYLE&&i!==n&&sn(this,_p,D1).call(this)}formatMenuItemText(e,n){return this.constructor.formatMenuItemText(e,n)}get anchor(){return this.getAttribute("anchor")}set anchor(e){this.setAttribute("anchor",`${e}`)}get anchorElement(){var e;return this.anchor?(e=W0(this))==null?void 0:e.querySelector(`#${this.anchor}`):null}get items(){return this.defaultSlot.assignedElements({flatten:!0}).filter(VY)}get radioGroupItems(){return this.items.filter(e=>e.role==="menuitemradio")}get checkedItems(){return this.items.filter(e=>e.checked)}get value(){var e,n;return(n=(e=this.checkedItems[0])==null?void 0:e.value)!=null?n:""}set value(e){const n=this.items.find(i=>i.value===e);n&&sn(this,bp,F1).call(this,n)}focus(){if(Ua(this,jo,Jb()),this.items.length){sn(this,hd,Um).call(this,this.items[0]),this.items[0].focus();return}const e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');e?.focus()}handleSelect(e){var n;const i=sn(this,fd,Nm).call(this,e);i&&(sn(this,bp,F1).call(this,i,i.type==="checkbox"),Kt(this,Ys)&&!this.hidden&&((n=Kt(this,jo))==null||n.focus(),this.hidden=!0))}get keysUsed(){return["Enter","Escape","Tab"," ","ArrowDown","ArrowUp","Home","End"]}handleMove(e){var n,i;const{key:r}=e,a=this.items,s=(i=(n=sn(this,fd,Nm).call(this,e))!=null?n:sn(this,U1,uI).call(this))!=null?i:a[0],o=a.indexOf(s);let u=Math.max(0,o);r==="ArrowDown"?u++:r==="ArrowUp"?u--:e.key==="Home"?u=0:e.key==="End"&&(u=a.length-1),u<0&&(u=a.length-1),u>a.length-1&&(u=0),sn(this,hd,Um).call(this,a[u]),a[u].focus()}}Zr=new WeakMap;jo=new WeakMap;Ys=new WeakMap;KR=new WeakMap;ZR=new WeakMap;gp=new WeakMap;vp=new WeakMap;Xo=new WeakMap;C1=new WeakSet;JR=function(t){const e=t.target;for(let n of e.assignedNodes({flatten:!0}))n.nodeType===3&&n.textContent.trim()===""&&n.remove();if(["header","title"].includes(e.name)){const n=this.shadowRoot.querySelector('slot[name="header"]');n.hidden=e.assignedNodes().length===0}e.name||Kt(this,km).call(this)};km=new WeakMap;_p=new WeakSet;D1=function(){var t;const e=this.shadowRoot.querySelector("#layout-row"),n=(t=getComputedStyle(this).getPropertyValue("--media-menu-layout"))==null?void 0:t.trim();e.setAttribute("media",n==="row"?"":"width:0")};L1=new WeakSet;QR=function(t){Ua(this,Ys,t.relatedTarget),us(this,t.relatedTarget)||(this.hidden=!this.hidden)};R1=new WeakSet;eI=function(){var t;(t=Kt(this,Ys))==null||t.setAttribute("aria-expanded","true"),requestAnimationFrame(()=>sn(this,Yo,zl).call(this,!1)),this.addEventListener("transitionend",()=>this.focus(),{once:!0}),Bl(zd(this),Kt(this,bl)),Bl(this,Kt(this,yl))};I1=new WeakSet;tI=function(){var t;
535(t=Kt(this,Ys))==null||t.setAttribute("aria-expanded","false"),Ud(zd(this),Kt(this,bl)),Ud(this,Kt(this,yl))};bl=new WeakMap;yl=new WeakMap;Yo=new WeakSet;zl=function(t,e){if(this.hasAttribute("mediacontroller")&&!this.anchor||this.hidden||!this.anchorElement)return;const{x:n,y:i}=DY({anchor:this.anchorElement,floating:this,placement:"top-start"});e??(e=this.offsetWidth);const a=zd(this).getBoundingClientRect(),s=this.anchorElement.getBoundingClientRect(),o=a.width-n-e,u=a.height-i-this.offsetHeight,c=a.height-s.height,{style:l}=Nn(this.shadowRoot,":host");t||l.setProperty("--media-menu-transition-in","none"),l.setProperty("position","absolute"),l.setProperty("right",`${Math.max(0,o)}px`),l.setProperty("bottom",`${u}px`),l.setProperty("--_menu-max-height",`${c}px`),l.removeProperty("--media-menu-transition-in")};Om=new WeakSet;sy=function(t){const e=this.querySelector('[role="menuitem"][aria-haspopup][aria-expanded="true"]'),n=e?.querySelector('[role="menu"]'),{style:i}=Nn(this.shadowRoot,":host");if(t||i.setProperty("--media-menu-transition-in","none"),n){const r=n.offsetHeight,a=Math.max(n.offsetWidth,e.offsetWidth);this.style.setProperty("min-width",`${a}px`),this.style.setProperty("min-height",`${r}px`),sn(this,Yo,zl).call(this,t,a)}else this.style.removeProperty("min-width"),this.style.removeProperty("min-height"),sn(this,Yo,zl).call(this,t);i.removeProperty("--media-menu-transition-in")};P1=new WeakSet;nI=function(t){var e;if(t.stopPropagation(),t.composedPath().includes(Kt(this,oy,iI))){(e=Kt(this,jo))==null||e.focus(),this.hidden=!0;return}const n=sn(this,fd,Nm).call(this,t);!n||n.hasAttribute("disabled")||(sn(this,hd,Um).call(this,n),this.handleSelect(t))};oy=new WeakSet;iI=function(){var t;return(t=this.shadowRoot.querySelector('slot[name="header"]').assignedElements({flatten:!0}))==null?void 0:t.find(n=>n.part.contains("back")&&n.part.contains("button"))};k1=new WeakSet;rI=function(t){if(t.target===this)return;sn(this,uy,aI).call(this);const e=Array.from(this.querySelectorAll('[role="menuitem"][aria-haspopup]'));for(const n of e)n.invokeTargetElement!=t.target&&t.newState=="open"&&n.getAttribute("aria-expanded")=="true"&&!n.invokeTargetElement.hidden&&n.invokeTargetElement.dispatchEvent(new ry({relatedTarget:n}));for(const n of e)n.setAttribute("aria-expanded",`${!n.submenuElement.hidden}`);sn(this,Om,sy).call(this,!0)};uy=new WeakSet;aI=function(){const e=this.querySelector('[role="menuitem"] > [role="menu"]:not([hidden])');this.container.classList.toggle("has-expanded",!!e)};O1=new WeakSet;sI=function(t){var e;us(this,t.relatedTarget)||(Kt(this,Xo)&&((e=Kt(this,jo))==null||e.focus()),Kt(this,Ys)&&Kt(this,Ys)!==t.relatedTarget&&!this.hidden&&(this.hidden=!0))};N1=new WeakSet;oI=function(t){var e,n,i,r,a;const{key:s,ctrlKey:o,altKey:u,metaKey:c}=t;if(!(o||u||c)&&this.keysUsed.includes(s))if(t.preventDefault(),t.stopPropagation(),s==="Tab"){if(Kt(this,Xo)){this.hidden=!0;return}t.shiftKey?(n=(e=this.previousElementSibling)==null?void 0:e.focus)==null||n.call(e):(r=(i=this.nextElementSibling)==null?void 0:i.focus)==null||r.call(i),this.blur()}else s==="Escape"?((a=Kt(this,jo))==null||a.focus(),Kt(this,Xo)&&(this.hidden=!0)):s==="Enter"||s===" "?this.handleSelect(t):this.handleMove(t)};fd=new WeakSet;Nm=function(t){return t.composedPath().find(e=>["menuitemradio","menuitemcheckbox"].includes(e.role))};U1=new WeakSet;uI=function(){return this.items.find(t=>t.tabIndex===0)};hd=new WeakSet;Um=function(t){for(const e of this.items)e.tabIndex=e===t?0:-1};bp=new WeakSet;F1=function(t,e){const n=[...this.checkedItems];t.type==="radio"&&this.radioGroupItems.forEach(i=>i.checked=!1),e?t.checked=!t.checked:t.checked=!0,this.checkedItems.some((i,r)=>i!=n[r])&&this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))};BY(ls,"template",lI);function VY(t){return["menuitem","menuitemradio","menuitemcheckbox"].includes(t?.role)}function zd(t){var e;return(e=t.getAttribute("bounds")?bf(t,`#${t.getAttribute("bounds")}`):Hr(t)||t.parentElement)!=null?e:t}Ee.customElements.get("media-chrome-menu")||Ee.customElements.define("media-chrome-menu",ls);var ly=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},cI=(t,e,n)=>(ly(t,e,"read from private field"),n?n.call(t):e.get(t)),fh=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},B1=(t,e,n,i)=>(ly(t,e,"write to private field"),e.set(t,n),n),hh=(t,e,n)=>(ly(t,e,"access private method"),n),Uc,Fm,yp,V1,Ep,H1;class HY extends ls{constructor(){super(...arguments),fh(this,yp),fh(this,Ep),fh(this,Uc,[]),fh(this,Fm,void 0)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_AUDIO_TRACK_LIST,ne.MEDIA_AUDIO_TRACK_ENABLED,ne.MEDIA_AUDIO_TRACK_UNAVAILABLE]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_AUDIO_TRACK_ENABLED&&n!==i?this.value=i:e===ne.MEDIA_AUDIO_TRACK_LIST&&n!==i&&(B1(this,Uc,DX(i)),hh(this,yp,V1).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",hh(this,Ep,H1))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",hh(this,Ep,H1))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:Hr(this).querySelector("media-audio-track-menu-button")}get mediaAudioTrackList(){return cI(this,Uc)}set mediaAudioTrackList(e){B1(this,Uc,e),hh(this,yp,V1).call(this)}get mediaAudioTrackEnabled(){return bi(this,ne.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){yi(this,ne.MEDIA_AUDIO_TRACK_ENABLED,e)}}Uc=new WeakMap;Fm=new WeakMap;yp=new WeakSet;V1=function(){if(cI(this,Fm)===JSON.stringify(this.mediaAudioTrackList))return;B1(this,Fm,JSON.stringify(this.mediaAudioTrackList));const t=this.mediaAudioTrackList;this.defaultSlot.textContent="";for(const e of t){const n=this.formatMenuItemText(e.label,e),i=$l({type:"radio",text:n,value:`${e.id}`,checked:e.enabled});i.prepend(Ko(this,"checked-indicator")),this.defaultSlot.append(i)}};Ep=new WeakSet;H1=function(){if(this.value==null)return;const t=new Ee.CustomEvent(rt.MEDIA_AUDIO_TRACK_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)};Ee.customElements.get("media-audio-track-menu")||Ee.customElements.define("media-audio-track-menu",HY);class tc extends tr{connectedCallback(){super.connectedCallback(),this.invokeTargetElement&&this.setAttribute("aria-haspopup","menu")}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=W0(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):null}handleClick(){this.invokeTargetElement.dispatchEvent(new ry({relatedTarget:this}))}}Ee.customElements.get("media-chrome-menu-button")||Ee.customElements.define("media-chrome-menu-button",tc);const zY=`<svg aria-hidden="true" viewBox="0 0 24 24">
536  <path d="M11 17H9.5V7H11v10Zm-3-3H6.5v-4H8v4Zm6-5h-1.5v6H14V9Zm3 7h-1.5V8H17v8Z"/>
537  <path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z"/>
538</svg>`,dI=dt.createElement("template");dI.innerHTML=`
539  <slot name="icon">${zY}</slot>
540`;class $Y extends tc{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_AUDIO_TRACK_ENABLED,ne.MEDIA_AUDIO_TRACK_UNAVAILABLE]}constructor(){super({slotTemplate:dI})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",Ji.AUDIO_TRACKS())}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:Hr(this).querySelector("media-audio-track-menu")}get mediaAudioTrackEnabled(){return bi(this,ne.MEDIA_AUDIO_TRACK_ENABLED)}set mediaAudioTrackEnabled(e){yi(this,ne.MEDIA_AUDIO_TRACK_ENABLED,e)}}Ee.customElements.get("media-audio-track-menu-button")||Ee.customElements.define("media-audio-track-menu-button",$Y);const WY=`<svg aria-hidden="true" viewBox="0 0 26 24">
541  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
5410 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
542</svg>`,GY=`<svg aria-hidden="true" viewBox="0 0 26 24">
543  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.81 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
544</svg>`,fI=dt.createElement("template");fI.innerHTML=`
545  <style>
546    :host([aria-checked="true"]) slot[name=off] {
547      display: none !important;
548    }
549
550    
551    :host(:not([aria-checked="true"])) slot[name=on] {
552      display: none !important;
553    }
554  </style>
555
556  <slot name="icon">
557    <slot name="on">${WY}</slot>
558    <slot name="off">${GY}</slot>
559  </slot>
560`;const CS=t=>{t.setAttribute("aria-checked",BR(t))};class qY extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_SUBTITLES_LIST,ne.MEDIA_SUBTITLES_SHOWING]}constructor(e={}){super({slotTemplate:fI,...e}),this._captionsReady=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","switch"),this.setAttribute("aria-label",Ji.CLOSED_CAPTIONS()),CS(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_SUBTITLES_SHOWING&&CS(this)}get mediaSubtitlesList(){return DS(this,ne.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){LS(this,ne.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return DS(this,ne.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){LS(this,ne.MEDIA_SUBTITLES_SHOWING,e)}handleClick(){this.dispatchEvent(new Ee.CustomEvent(rt.MEDIA_TOGGLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0}))}}const DS=(t,e)=>{const n=t.getAttribute(e);return n?X0(n):[]},LS=(t,e,n)=>{if(!n?.length){t.removeAttribute(e);return}const i=Vd(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};Ee.customElements.get("media-captions-button")||Ee.customElements.define("media-captions-button",qY);var jY=Object.defineProperty,XY=(t,e,n)=>e in t?jY(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,YY=(t,e,n)=>(XY(t,e+"",n),n),cy=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},KY=(t,e,n)=>(cy(t,e,"read from private field"),e.get(t)),uv=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ZY=(t,e,n,i)=>(cy(t,e,"write to private field"),e.set(t,n),n),lv=(t,e,n)=>(cy(t,e,"access private method"),n),Bm,z1,hI,xp,$1;const JY=`
561  <svg aria-hidden="true" viewBox="0 0 26 24" part="captions-indicator indicator">
562    <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 
5620 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
563  </svg>`,pI=dt.createElement("template");pI.innerHTML=ls.template.innerHTML+`
564  <slot name="captions-indicator" hidden>${JY}</slot>`;class mI extends ls{constructor(){super(...arguments),uv(this,z1),uv(this,xp),uv(this,Bm,void 0)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_SUBTITLES_LIST,ne.MEDIA_SUBTITLES_SHOWING]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_SUBTITLES_LIST&&n!==i?lv(this,z1,hI).call(this):e===ne.MEDIA_SUBTITLES_SHOWING&&n!==i&&(this.value=i)}connectedCallback(){super.connectedCallback(),this.addEventListener("change",lv(this,xp,$1))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",lv(this,xp,$1))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:Hr(this).querySelector("media-captions-menu-button")}get mediaSubtitlesList(){return RS(this,ne.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){IS(this,ne.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return RS(this,ne.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){IS(this,ne.MEDIA_SUBTITLES_SHOWING,e)}}Bm=new WeakMap;z1=new WeakSet;hI=function(){var t;if(KY(this,Bm)===JSON.stringify(this.mediaSubtitlesList))return;ZY(this,Bm,JSON.stringify(this.mediaSubtitlesList)),this.defaultSlot.textContent="";const e=!this.value,n=$l({type:"radio",text:this.formatMenuItemText("Off"),value:"off",checked:e});n.prepend(Ko(this,"checked-indicator")),this.defaultSlot.append(n);const i=this.mediaSubtitlesList;for(const r of i){const a=$l({type:"radio",text:this.formatMenuItemText(r.label,r),value:S1(r),checked:this.value==S1(r)});a.prepend(Ko(this,"checked-indicator")),((t=r.kind)!=null?t:"subs")==="captions"&&a.append(Ko(this,"captions-indicator")),this.defaultSlot.append(a)}};xp=new WeakSet;$1=function(){const t=this.mediaSubtitlesShowing,e=this.getAttribute(ne.MEDIA_SUBTITLES_SHOWING),n=this.value!==e;if(t?.length&&n&&this.dispatchEvent(new Ee.CustomEvent(rt.MEDIA_DISABLE_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:t})),!this.value||!n)return;const i=new Ee.CustomEvent(rt.MEDIA_SHOW_SUBTITLES_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(i)};YY(mI,"template",pI);const RS=(t,e)=>{const n=t.getAttribute(e);return n?X0(n):[]},IS=(t,e,n)=>{if(!n?.length){t.removeAttribute(e);return}const i=Vd(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};Ee.customElements.get("media-captions-menu")||Ee.customElements.define("media-captions-menu",mI);const QY=`<svg aria-hidden="true" viewBox="0 0 26 24">
565  <path d="M22.83 5.68a2.58 2.58 0 0 0-2.3-2.5c-3.62-.24-11.44-.24-15.06 0a2.58 2.58 0 0 0-2.3 2.5c-.23 4.21-.23 8.43 0 12.64a2.58 2.58 0 0 0 2.3 2.5c3.62.24 11.44.24 15.06 0a2.58 2.58 0 0 0 2.3-2.5c.23-4.21.23-8.43 0-12.64Zm-11.39 9.45a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.92 3.92 0 0 1 .92-2.77 3.18 3.18 0 0 1 2.43-1 2.94 2.94 0 0 1 2.13.78c.364.359.62.813.74 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.17 1.61 1.61 0 0 0-1.29.58 2.79 2.79 0 0 0-.5 1.89 3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.48 1.48 0 0 0 1-.37 2.1 2.1 0 0 0 .59-1.14l1.4.44a3.23 3.23 0 0 1-1.07 1.69Zm7.22 0a3.07 3.07 0 0 1-1.91.57 3.06 3.06 0 0 1-2.34-1 3.75 3.75 0 0 1-.92-2.67 3.88 3.88 0 0 1 .93-2.77 3.14 3.14 0 0 1 2.42-1 3 3 0 0 1 2.16.82 2.8 2.8 0 0 1 .73 1.31l-1.43.35a1.49 1.49 0 0 0-1.51-1.21 1.61 1.61 0 0 0-1.29.58A2.79 2.79 0 0 0 15 12a3 3 0 0 0 .49 1.93 1.61 1.61 0 0 0 1.27.58 1.44 1.44 0 0 0 1-.37 2.1 2.1 0 0 0 .6-1.15l1.4.44a3.17 3.17 0 0 1-1.1 1.7Z"/>
566</svg>`,eK=`<svg aria-hidden="true" viewBox="0 0 26 24">
567  <path d="M17.73 14.09a1.4 1.4 0 0 1-1 .37 1.579 1.579 0 0 1-1.27-.58A3 3 0 0 1 15 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34A2.89 2.89 0 0 0 19 9.07a3 3 0 0 0-2.14-.78 3.14 3.14 0 0 0-2.42 1 3.91 3.91 0 0 0-.93 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.17 3.17 0 0 0 1.07-1.74l-1.4-.45c-.083.43-.3.822-.62 1.12Zm-7.22 0a1.43 1.43 0 0 1-1 .37 1.58 1.58 0 0 1-1.27-.58A3 3 0 0 1 7.76 12a2.8 2.8 0 0 1 .5-1.85 1.63 1.63 0 0 1 1.29-.57 1.47 1.47 0 0 1 1.51 1.2l1.43-.34a2.8
5671 2.81 0 0 0-.74-1.32 2.94 2.94 0 0 0-2.13-.78 3.18 3.18 0 0 0-2.43 1 4 4 0 0 0-.92 2.78 3.74 3.74 0 0 0 .92 2.66 3.07 3.07 0 0 0 2.34 1 3.07 3.07 0 0 0 1.91-.57 3.23 3.23 0 0 0 1.07-1.74l-1.4-.45a2.06 2.06 0 0 1-.6 1.07Zm12.32-8.41a2.59 2.59 0 0 0-2.3-2.51C18.72 3.05 15.86 3 13 3c-2.86 0-5.72.05-7.53.17a2.59 2.59 0 0 0-2.3 2.51c-.23 4.207-.23 8.423 0 12.63a2.57 2.57 0 0 0 2.3 2.5c1.81.13 4.67.19 7.53.19 2.86 0 5.72-.06 7.53-.19a2.57 2.57 0 0 0 2.3-2.5c.23-4.207.23-8.423 0-12.63Zm-1.49 12.53a1.11 1.11 0 0 1-.91 1.11c-1.67.11-4.45.18-7.43.18-2.98 0-5.76-.07-7.43-.18a1.11 1.11 0 0 1-.91-1.11c-.21-4.14-.21-8.29 0-12.43a1.11 1.11 0 0 1 .91-1.11C7.24 4.56 10 4.49 13 4.49s5.76.07 7.43.18a1.11 1.11 0 0 1 .91 1.11c.21 4.14.21 8.29 0 12.43Z"/>
568</svg>`,gI=dt.createElement("template");gI.innerHTML=`
569  <style>
570    :host([aria-checked="true"]) slot[name=off] {
571      display: none !important;
572    }
573
574    
575    :host(:not([aria-checked="true"])) slot[name=on] {
576      display: none !important;
577    }
578  </style>
579
580  <slot name="icon">
581    <slot name="on">${QY}</slot>
582    <slot name="off">${eK}</slot>
583  </slot>
584`;const PS=t=>{t.setAttribute("aria-checked",BR(t))};class tK extends tc{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_SUBTITLES_LIST,ne.MEDIA_SUBTITLES_SHOWING]}constructor(e={}){super({slotTemplate:gI,...e}),this._captionsReady=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",Ji.CLOSED_CAPTIONS()),PS(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_SUBTITLES_SHOWING&&PS(this)}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:Hr(this).querySelector("media-captions-menu")}get mediaSubtitlesList(){return kS(this,ne.MEDIA_SUBTITLES_LIST)}set mediaSubtitlesList(e){OS(this,ne.MEDIA_SUBTITLES_LIST,e)}get mediaSubtitlesShowing(){return kS(this,ne.MEDIA_SUBTITLES_SHOWING)}set mediaSubtitlesShowing(e){OS(this,ne.MEDIA_SUBTITLES_SHOWING,e)}}const kS=(t,e)=>{const n=t.getAttribute(e);return n?X0(n):[]},OS=(t,e,n)=>{if(!n?.length){t.removeAttribute(e);return}const i=Vd(n);t.getAttribute(e)!==i&&t.setAttribute(e,i)};Ee.customElements.get("media-captions-menu-button")||Ee.customElements.define("media-captions-menu-button",tK);const nK='<svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/></g></svg>',iK='<svg aria-hidden="true" viewBox="0 0 24 24"><g><path class="cast_caf_icon_arch0" d="M1,18 L1,21 L4,21 C4,19.3 2.66,18 1,18 L1,18 Z"/><path class="cast_caf_icon_arch1" d="M1,14 L1,16 C3.76,16 6,18.2 6,21 L8,21 C8,17.13 4.87,14 1,14 L1,14 Z"/><path class="cast_caf_icon_arch2" d="M1,10 L1,12 C5.97,12 10,16.0 10,21 L12,21 C12,14.92 7.07,10 1,10 L1,10 Z"/><path class="cast_caf_icon_box" d="M21,3 L3,3 C1.9,3 1,3.9 1,5 L1,8 L3,8 L3,5 L21,5 L21,19 L14,19 L14,21 L21,21 C22.1,21 23,20.1 23,19 L23,5 C23,3.9 22.1,3 21,3 L21,3 Z"/><path class="cast_caf_icon_boxfill" d="M5,7 L5,8.63 C8,8.6 13.37,14 13.37,17 L19,17 L19,7 Z"/></g></svg>',vI=dt.createElement("template");vI.innerHTML=`
585  <style>
586  :host([${ne.MEDIA_IS_CASTING}]) slot:not([name=exit]):not([name=icon]) {
587    display: none !important;
588  }
589
590  
591  :host(:not([${ne.MEDIA_IS_CASTING}])) slot:not([name=enter]):not([name=icon]) {
592    display: none !important;
593  }
594  </style>
595
596  <slot name="icon">
597    <slot name="enter">${nK}</slot>
598    <slot name="exit">${iK}</slot>
599  </slot>
600`;const NS=t=>{const e=t.mediaIsCasting?_i.EXIT_CAST():_i.ENTER_CAST();t.setAttribute("aria-label",e)};class rK extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_IS_CASTING,ne.MEDIA_CAST_UNAVAILABLE]}constructor(e={}){super({slotTemplate:vI,...e})}connectedCallback(){super.connectedCallback(),NS(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_IS_CASTING&&NS(this)}get mediaIsCasting(){return Qn(this,ne.MEDIA_IS_CASTING)}set mediaIsCasting(e){ei(this,ne.MEDIA_IS_CASTING,e)}get mediaCastUnavailable(){return bi(this,ne.MEDIA_CAST_UNAVAILABLE)}set mediaCastUnavailable(e){yi(this,ne.MEDIA_CAST_UNAVAILABLE,e)}handleClick(){const e=this.mediaIsCasting?rt.MEDIA_EXIT_CAST_REQUEST:rt.MEDIA_ENTER_CAST_REQUEST;this.dispatchEvent(new Ee.CustomEvent(e,{composed:!0,bubbles:!0}))}}Ee.customElements.get("media-cast-button")||Ee.customElements.define("media-cast-button",rK);var aK=Object.defineProperty,sK=(t,e,n)=>e in t?aK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,oK=(t,e,n)=>(sK(t,e+"",n),n),dy=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},El=(t,e,n)=>(dy(t,e,"read from private field"),n?n.call(t):e.get(t)),bo=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},_I=(t,e,n,i)=>(dy(t,e,"write to private field"),e.set(t,n),n),vc=(t,e,n)=>(dy(t,e,"access private method"),n),$d,ru,W1,bI,G1,yI,q1,EI,j1,xI,X1,AI;const SI=dt.createElement("template");SI.innerHTML=`
601  <style>
602    :host {
603      font: var(--media-font,
604        var(--media-font-weight, normal)
605        var(--media-font-size, 14px) /
606        var(--media-text-content-height, var(--media-control-height, 24px))
607        var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
608      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
609      background: var(--media-dialog-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .8))));
610      border-radius: var(--media-dialog-border-radius);
611      border: var(--media-dialog-border, none);
612      display: var(--media-dialog-display, inline-flex);
613      transition: var(--media-dialog-transition-in,
614        visibility 0s,
615        opacity .2s ease-out,
616        transform .15s ease-out
617      ) !important;
618      
619      visibility: var(--media-dialog-visibility, visible);
620      opacity: var(--media-dialog-opacity, 1);
621      transform: var(--media-dialog-transform-in, translateY(0) scale(1));
622    }
623
624    :host([hidden]) {
625      transition: var(--media-dialog-transition-out,
626        visibility .15s ease-in,
627        opacity .15s ease-in,
628        transform .15s ease-in
629      ) !important;
630      visibility: var(--media-dialog-hidden-visibility, hidden);
631      opacity: var(--media-dialog-hidden-opacity, 0);
632      transform: var(--media-dialog-transform-out, translateY(2px) scale(.99));
633      pointer-events: none;
634    }
635  </style>
636  <slot></slot>
637`;const cv={HIDDEN:"hidden",ANCHOR:"anchor"};
637class TI extends Ee.HTMLElement{constructor(){super(),bo(this,W1),bo(this,G1),bo(this,q1),bo(this,j1),bo(this,X1),bo(this,$d,void 0),bo(this,ru,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.nativeEl=this.constructor.template.content.cloneNode(!0),this.shadowRoot.append(this.nativeEl)),this.addEventListener("invoke",this),this.addEventListener("focusout",this),this.addEventListener("keydown",this)}static get observedAttributes(){return[cv.HIDDEN,cv.ANCHOR]}handleEvent(e){switch(e.type){case"invoke":vc(this,q1,EI).call(this,e);break;case"focusout":vc(this,j1,xI).call(this,e);break;case"keydown":vc(this,X1,AI).call(this,e);break}}connectedCallback(){this.role||(this.role="dialog")}attributeChangedCallback(e,n,i){e===cv.HIDDEN&&i!==n&&(this.hidden?vc(this,G1,yI).call(this):vc(this,W1,bI).call(this))}focus(){_I(this,$d,Jb());const e=this.querySelector('[autofocus], [tabindex]:not([tabindex="-1"]), [role="menu"]');e?.focus()}get keysUsed(){return["Escape","Tab"]}}$d=new WeakMap;ru=new WeakMap;W1=new WeakSet;bI=function(){var t;(t=El(this,ru))==null||t.setAttribute("aria-expanded","true"),this.addEventListener("transitionend",()=>this.focus(),{once:!0})};G1=new WeakSet;yI=function(){var t;(t=El(this,ru))==null||t.setAttribute("aria-expanded","false")};q1=new WeakSet;EI=function(t){_I(this,ru,t.relatedTarget),us(this,t.relatedTarget)||(this.hidden=!this.hidden)};j1=new WeakSet;xI=function(t){var e;us(this,t.relatedTarget)||((e=El(this,$d))==null||e.focus(),El(this,ru)&&El(this,ru)!==t.relatedTarget&&!this.hidden&&(this.hidden=!0))};X1=new WeakSet;AI=function(t){var e,n,i,r,a;const{key:s,ctrlKey:o,altKey:u,metaKey:c}=t;o||u||c||this.keysUsed.includes(s)&&(t.preventDefault(),t.stopPropagation(),s==="Tab"?(t.shiftKey?(n=(e=this.previousElementSibling)==null?void 0:e.focus)==null||n.call(e):(r=(i=this.nextElementSibling)==null?void 0:i.focus)==null||r.call(i),this.blur()):s==="Escape"&&((a=El(this,$d))==null||a.focus(),this.hidden=!0))};oK(TI,"template",SI);Ee.customElements.get("media-chrome-dialog")||Ee.customElements.define("media-chrome-dialog",TI);var uK=Object.defineProperty,lK=(t,e,n)=>e in t?uK(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,cK=(t,e,n)=>(lK(t,e+"",n),n),fy=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},pa=(t,e,n)=>(fy(t,e,"read from private field"),n?n.call(t):e.get(t)),La=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},dv=(t,e,n,i)=>(fy(t,e,"write to private field"),e.set(t,n),n),la=(t,e,n)=>(fy(t,e,"access private method"),n),Ap,pd,Y1,wI,hy,MI,py,CI,ma,Wl,Wd,K1,DI,Sp,Z1;const LI=dt.createElement("template");LI.innerHTML=`
638  <style>
639    :host {
640      transition: var(--media-menu-item-transition,
641        background .15s linear,
642        opacity .2s ease-in-out
643      );
644      outline: var(--media-menu-item-outline, 0);
645      outline-offset: var(--media-menu-item-outline-offset, -1px);
646      cursor: pointer;
647      display: flex;
648      align-items: center;
649      align-self: stretch;
650      justify-self: stretch;
651      white-space: nowrap;
652      white-space-collapse: collapse;
653      text-wrap: nowrap;
654      padding: .4em .8em .4em 1em;
655    }
656
657    :host(:focus-visible) {
658      box-shadow: var(--media-menu-item-focus-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
659      outline: var(--media-menu-item-hover-outline, 0);
660      outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
661    }
662
663    :host(:hover) {
664      cursor: pointer;
665      background: var(--media-menu-item-hover-background, rgb(92 92 102 / .5));
666      outline: var(--media-menu-item-hover-outline);
667      outline-offset: var(--media-menu-item-hover-outline-offset,  var(--media-menu-item-outline-offset, -1px));
668    }
669
670    :host([aria-checked="true"]) {
671      background: var(--media-menu-item-checked-background);
672    }
673
674    :host([hidden]) {
675      display: none;
676    }
677
678    :host([disabled]) {
679      pointer-events: none;
680      color: rgba(255, 255, 255, .3);
681    }
682
683    slot:not([name]) {
684      width: 100%;
685    }
686
687    slot:not([name="submenu"]) {
688      display: inline-flex;
689      align-items: center;
690      transition: inherit;
691      opacity: var(--media-menu-item-opacity, 1);
692    }
693
694    slot[name="description"] {
695      justify-content: end;
696    }
697
698    slot[name="description"] > span {
699      display: inline-block;
700      margin-inline: 1em .2em;
701      max-width: var(--media-menu-item-description-max-width, 100px);
702      text-overflow: ellipsis;
703      overflow: hidden;
704      font-size: .8em;
705      font-weight: 400;
706      text-align: right;
707      position: relative;
708      top: .04em;
709    }
710
711    slot[name="checked-indicator"] {
712      display: none;
713    }
714
715    :host(:is([role="menuitemradio"],[role="menuitemcheckbox"])) slot[name="checked-indicator"] {
716      display: var(--media-menu-item-checked-indicator-display, inline-block);
717    }
718
719    
720    svg, img, ::slotted(svg), ::slotted(img) {
721      height: var(--media-menu-item-icon-height, var(--media-control-height, 24px));
722      fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
723      display: block;
724    }
725
726    
727    [part~="indicator"],
728    ::slotted([part~="indicator"]) {
729      fill: var(--media-menu-item-indicator-fill,
730        var(--media-icon-color, var(--media-primary-color, rgb(238 238 238))));
731      height: var(--media-menu-item-indicator-height, 1.25em);
732      margin-right: .5ch;
733    }
734
735    [part~="checked-indicator"] {
736      visibility: hidden;
737    }
738
739    :host([aria-checked="true"]) [part~="checked-indicator"] {
740      visibility: visible;
741    }
742  </style>
743  <slot name="checked-indicator">
744    <svg aria-hidden="true" viewBox="0 1 24 24" part="checked-indicator indicator">
745      <path d="m10 15.17 9.193-9.191 1.414 1.414-10.606 10.606-6.364-6.364 1.414-1.414 4.95 4.95Z"/>
746    </svg>
747  </slot>
748  <slot name="prefix"></slot>
749  <slot></slot>
750  <slot name="description"></slot>
751  <slot name="suffix"></slot>
752  <slot name="submenu"></slot>
753`;const or={TYPE:"type",VALUE:"value",CHECKED:"checked",DISABLED:"disabled"};
753class K0 extends Ee.HTMLElement{constructor(){super(),La(this,Y1),La(this,hy),La(this,py),La(this,Wl),La(this,K1),La(this,Sp),La(this,Ap,!1),La(this,pd,void 0),La(this,ma,()=>{var e,n;this.setAttribute("submenusize",`${this.submenuElement.items.length}`);const i=this.shadowRoot.querySelector('slot[name="description"]'),r=(n=(e=this.submenuElement.checkedItems)==null?void 0:e[0])==null?void 0:n.text,a=dt.createElement("span");a.textContent=r??"",i.replaceChildren(a)}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.shadowRoot.addEventListener("slotchange",this)}static get observedAttributes(){return[or.TYPE,or.DISABLED,or.CHECKED,or.VALUE]}enable(){this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),_c(this)&&!this.hasAttribute("aria-checked")&&this.setAttribute("aria-checked","false"),this.addEventListener("click",this),this.addEventListener("keydown",this)}disable(){this.removeAttribute("tabindex"),this.removeEventListener("click",this),this.removeEventListener("keydown",this),this.removeEventListener("keyup",this)}handleEvent(e){switch(e.type){case"slotchange":la(this,Y1,wI).call(this,e);break;case"click":this.handleClick(e);break;case"keydown":la(this,K1,DI).call(this,e);break;case"keyup":la(this,Wl,Wd).call(this,e);break}}attributeChangedCallback(e,n,i){e===or.CHECKED&&_c(this)&&!pa(this,Ap)?this.setAttribute("aria-checked",i!=null?"true":"false"):e===or.TYPE&&i!==n?this.role="menuitem"+i:e===or.DISABLED&&i!==n&&(i==null?this.enable():this.disable())}connectedCallback(){this.hasAttribute(or.DISABLED)||this.enable(),this.role="menuitem"+this.type,dv(this,pd,J1(this,this.parentNode)),la(this,Sp,Z1).call(this)}disconnectedCallback(){this.disable(),la(this,Sp,Z1).call(this),dv(this,pd,null)}get invokeTarget(){return this.getAttribute("invoketarget")}set invokeTarget(e){this.setAttribute("invoketarget",`${e}`)}get invokeTargetElement(){var e;return this.invokeTarget?(e=W0(this))==null?void 0:e.querySelector(`#${this.invokeTarget}`):this.submenuElement}get submenuElement(){return this.shadowRoot.querySelector('slot[name="submenu"]').assignedElements({flatten:!0})[0]}get type(){var e;return(e=this.getAttribute(or.TYPE))!=null?e:""}set type(e){this.setAttribute(or.TYPE,`${e}`)}get value(){var e;return(e=this.getAttribute(or.VALUE))!=null?e:this.text}set value(e){this.setAttribute(or.VALUE,e)}get text(){var e;return((e=this.textContent)!=null?e:"").trim()}get checked(){if(_c(this))return this.getAttribute("aria-checked")==="true"}set checked(e){_c(this)&&(dv(this,Ap,!0),this.setAttribute("aria-checked",e?"true":"false"),e?this.part.add("checked"):this.part.remove("checked"))}handleClick(e){_c(this)||this.invokeTargetElement&&us(this,e.target)&&this.invokeTargetElement.dispatchEvent(new ry({relatedTarget:this}))}get keysUsed(){return["Enter"," "]}}Ap=new WeakMap;pd=new WeakMap;Y1=new WeakSet;wI=function(t){const e=t.target;if(!e?.name)for(let i of e.assignedNodes({flatten:!0}))i instanceof Text&&i.textContent.trim()===""&&i.remove();e.name==="submenu"&&(this.submenuElement?la(this,hy,MI).call(this):la(this,py,CI).call(this))};hy=new WeakSet;MI=async function(){this.setAttribute("aria-haspopup","menu"),this.setAttribute("aria-expanded",`${!this.submenuElement.hidden}`),this.submenuElement.addEventListener("change",pa(this,ma)),this.submenuElement.addEventListener("addmenuitem",pa(this,ma)),this.submenuElement.addEventListener("removemenuitem",pa(this,ma)),pa(this,ma).call(this)};py=new WeakSet;CI=function(){this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.submenuElement.removeEventListener("change",pa(this,ma)),this.submenuElement.removeEventListener("addmenuitem",pa(this,ma)),this.submenuElement.removeEventListener("removemenuitem",pa(this,ma)),pa(this,ma).call(this)};ma=new WeakMap;Wl=new WeakSet;Wd=function(t){const{key:e}=t;if(!this.keysUsed.includes(e)){this.removeEventListener("keyup",la(this,Wl,Wd));return}this.handleClick(t)};K1=new WeakSet;DI=function(t){const{metaKey:e,altKey:n,key:i}=t;if(e||n||!this.keysUsed.includes(i)){this.removeEventListener("keyup",la(this,Wl,Wd));return}this.addEventListener("keyup",la(this,Wl,Wd),{once:!0})};
753Sp=new WeakSet;Z1=function(){var t;const e=(t=pa(this,pd))==null?void 0:t.radioGroupItems;if(!e)return;let n=e.filter(i=>i.getAttribute("aria-checked")==="true").pop();n||(n=e[0]);for(const i of e)i.setAttribute("aria-checked","false");n?.setAttribute("aria-checked","true")};cK(K0,"template",LI);function _c(t){return t.type==="radio"||t.type==="checkbox"}function J1(t,e){if(!t)return null;const{host:n}=t.getRootNode();return!e&&n?J1(t,n):e?.items?e:J1(e,e?.parentNode)}Ee.customElements.get("media-chrome-menu-item")||Ee.customElements.define("media-chrome-menu-item",K0);var my=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},En=(t,e,n)=>(my(t,e,"read from private field"),n?n.call(t):e.get(t)),ni=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ts=(t,e,n,i)=>(my(t,e,"write to private field"),e.set(t,n),n),yr=(t,e,n)=>(my(t,e,"access private method"),n),Jr,Z0,Tp,wp,xr,Vm,Mp,Cp,Dp,gy,RI,Lp,Q1,Rp,e2,Hm,vy,t2,II,n2,PI,i2,kI,r2,OI;const NI=dt.createElement("template");NI.innerHTML=`
754  <style>
755    :host {
756      --_focus-box-shadow: var(--media-focus-box-shadow, inset 0 0 0 2px rgb(27 127 204 / .9));
757      --_media-range-padding: var(--media-range-padding, var(--media-control-padding, 10px));
758
759      box-shadow: var(--_focus-visible-box-shadow, none);
760      background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
761      height: calc(var(--media-control-height, 24px) + 2 * var(--_media-range-padding));
762      display: inline-flex;
763      align-items: center;
764      
765      vertical-align: middle;
766      box-sizing: border-box;
767      position: relative;
768      width: 100px;
769      transition: background .15s linear;
770      cursor: pointer;
771      pointer-events: auto;
772      touch-action: none; 
773      z-index: 1; 
774    }
775
776    
777    input[type=range]:focus {
778      outline: 0;
779    }
780    input[type=range]:focus::-webkit-slider-runnable-track {
781      outline: 0;
782    }
783
784    :host(:hover) {
785      background: var(--media-control-hover-background, rgb(50 50 70 / .7));
786    }
787
788    #leftgap {
789      padding-left: var(--media-range-padding-left, var(--_media-range-padding));
790    }
791
792    #rightgap {
793      padding-right: var(--media-range-padding-right, var(--_media-range-padding));
794    }
795
796    #startpoint,
797    #endpoint {
798      position: absolute;
799    }
800
801    #endpoint {
802      right: 0;
803    }
804
805    #container {
806      
807      width: var(--media-range-track-width, 100%);
808      transform: translate(var(--media-range-track-translate-x, 0px), var(--media-range-track-translate-y, 0px));
809      position: relative;
810      height: 100%;
811      display: flex;
812      align-items: center;
813      min-width: 40px;
814    }
815
816    #range {
817      
818      display: var(--media-time-range-hover-display, block);
819      bottom: var(--media-time-range-hover-bottom, -7px);
820      height: var(--media-time-range-hover-height, max(100% + 7px, 25px));
821      width: 100%;
822      position: absolute;
823      cursor: pointer;
824
825      -webkit-appearance: none; 
826      -webkit-tap-highlight-color: transparent;
827      background: transparent; 
828      margin: 0;
829      z-index: 1;
830    }
831
832    @media (hover: hover) {
833      #range {
834        bottom: var(--media-time-range-hover-bottom, -5px);
835        height: var(--media-time-range-hover-height, max(100% + 5px, 20px));
836      }
837    }
838
839    
840    
841    #range::-webkit-slider-thumb {
842      -webkit-appearance: none;
843      background: transparent;
844      width: .1px;
845      height: .1px;
846    }
847
848    
849    #range::-moz-range-thumb {
850      background: transparent;
851      border: transparent;
852      width: .1px;
853      height: .1px;
854    }
855
856    #appearance {
857      height: var(--media-range-track-height, 4px);
858      display: flex;
859      flex-direction: column;
860      justify-content: center;
861      width: 100%;
862      position: absolute;
863      
864      will-change: transform;
865    }
866
867    #background,
868    #track {
869      border-radius: var(--media-range-track-border-radius, 1px);
870      position: absolute;
871      width: 100%;
872      height: 100%;
873    }
874
875    #background {
876      background: var(--media-range-track-background, rgb(255 255 255 / .2));
877      backdrop-filter: var(--media-range-track-background-backdrop-filter);
878      -webkit-backdrop-filter: var(--media-range-track-background-backdrop-filter);
879    }
880
881    #track {
882      border: var(--media-range-track-border, none);
883      outline: var(--media-range-track-outline);
884      outline-offset: var(--media-range-track-outline-offset);
885      backdrop-filter: var(--media-range-track-backdrop-filter);
886      -webkit-backdrop-filter: var(--media-range-track-backdrop-filter);
887      box-shadow: var(--media-range-track-box-shadow, none);
888      overflow: hidden;
889    }
890
891    #progress,
892    #highlight,
893    #pointer {
894      position: absolute;
895      height: 100%;
896      will-change: width;
897    }
898
899    #progress {
900      background: var(--media-range-bar-color, var(--media-primary-color, rgb(238 238 238)));
901      transition: var(--media-range-track-transition);
902    }
903
904    #pointer {
905      background: var(--media-range-track-pointer-background);
906      border-right: var(--media-range-track-pointer-border-right);
907      transition: visibility .25s, opacity .25s;
908      visibility: hidden;
909      opacity: 0;
910    }
911
912    @media (hover: hover) {
913      :host(:hover) #pointer {
914        transition: visibility .5s, opacity .5s;
915        visibility: visible;
916        opacity: 1;
917      }
918    }
919
920    #thumb {
921      width: var(--media-range-thumb-width, 10px);
922      height: var(--media-range-thumb-height, 10px);
923      margin-left: calc(var(--media-range-thumb-width, 10px) / -2);
924      border: var(--media-range-thumb-border, none);
925      border-radius: var(--media-range-thumb-border-radius, 10px);
926      background: var(--media-range-thumb-background, var(--media-primary-color, rgb(238 238 238)));
927      box-shadow: var(--media-range-thumb-box-shadow, 1px 1px 1px transparent);
928      transition: var(--media-range-thumb-transition);
929      transform: var(--media-range-thumb-transform, none);
930      opacity: var(--media-range-thumb-opacity, 1);
931      position: absolute;
932      left: 0;
933      cursor: pointer;
934    }
935
936    :host([disabled]) #thumb {
937      background-color: #777;
938    }
939
940    .segments #appearance {
941      height: var(--media-range-segment-hover-height, 7px);
942    }
943
944    #background,
945    #track {
946      clip-path: url(#segments-clipping);
947    }
948
949    #segments {
950      --segments-gap: var(--media-range-segments-gap, 2px);
951      position: absolute;
952      width: 100%;
953      height: 100%;
954    }
955
956    #segments-clipping {
957      transform: translateX(calc(var(--segments-gap) / 2));
958    }
959
960    #segments-clipping:empty {
961      display: none;
962    }
963
964    #segments-clipping rect {
965      height: var(--media-range-track-height, 4px);
966      y: calc((var(--media-range-segment-hover-height, 7px) - var(--media-range-track-height, 4px)) / 2);
967      transition: var(--media-range-segment-transition, transform .1s ease-in-out);
968      transform: var(--media-range-segment-transform, scaleY(1));
969      transform-origin: center;
970    }
971  </style>
972  <div id="leftgap"></div>
973  <div id="container">
974    <div id="startpoint"></div>
975    <div id="endpoint"></div>
976    <div id="appearance" part="appearance">
977      <div id="background"></div>
978      <div id="track">
979        <div id="highlight"></div>
980        <div id="pointer"></div>
981        <div id="progress"></div>
982      </div>
983      <div id="thumb"></div>
984      <svg id="segments"><clipPath id="segments-clipping"></clipPath></svg>
985    </div>
986    <input id="range" type="range" min="0" max="1" step="any" value="0">
987  </div>
988  <div id="rightgap"></div>
989`;class _y extends Ee.HTMLElement{constructor(){super(),ni(this,gy),ni(this,Lp),ni(this,Rp),ni(this,Hm),ni(this,t2),ni(this,n2),ni(this,i2),ni(this,r2),ni(this,Jr,void 0),ni(this,Z0,void 0),ni(this,Tp,void 0),ni(this,wp,void 0),ni(this,xr,{}),ni(this,Vm,[]),ni(this,Mp,()=>{if(this.range.matches(":focus-visible")){const{style:e}=Nn(this.shadowRoot,":host");e.setProperty("--_focus-visible-box-shadow","var(--_focus-box-shadow)")}}),ni(this,Cp,()=>{const{style:e}=Nn(this.shadowRoot,":host");e.removeProperty("--_focus-visible-box-shadow")}),ni(this,Dp,()=>{const e=this.shadowRoot.querySelector("#segments-clipping");e&&e.parentNode.append(e)}),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(NI.content.cloneNode(!0))),this.container=this.shadowRoot.querySelector("#container"),Ts(this,Tp,this.shadowRoot.querySelector("#startpoint")),Ts(this,wp,this.shadowRoot.querySelector("#endpoint")),this.range=this.shadowRoot.querySelector("#range"),this.appearance=this.shadowRoot.querySelector("#appearance")}static get observedAttributes(){return["disabled","aria-disabled",an.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===an.MEDIA_CONTROLLER?(n&&((a=(r=En(this,Jr))==null?void 0:r.unassociateElement)==null||a.call(r,this),Ts(this,Jr,null)),i&&this.isConnected&&(Ts(this,Jr,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=En(this,Jr))==null?void 0:o.associateElement)==null||u.call(o,this))):(e==="disabled"||e==="aria-disabled"&&n!==i)&&(i==null?(this.range.removeAttribute(e),yr(this,Lp,Q1).call(this)):(this.range.setAttribute(e,i),yr(this,Rp,e2).call(this)))}connectedCallback(){var e,n,i;const{style:r}=Nn(this.shadowRoot,":host");r.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`),En(this,xr).pointer=Nn(this.shadowRoot,"#pointer"),En(this,xr).progress=Nn(this.shadowRoot,"#progress"),En(this,xr).thumb=Nn(this.shadowRoot,"#thumb");const a=this.getAttribute(an.MEDIA_CONTROLLER);a&&(Ts(this,Jr,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=En(this,Jr))==null?void 0:n.associateElement)==null||i.call(n,this)),this.updateBar(),this.shadowRoot.addEventListener("focusin",En(this,Mp)),this.shadowRoot.addEventListener("focusout",En(this,Cp)),yr(this,Lp,Q1).call(this),Bl(this.container,En(this,Dp))}disconnectedCallback(){var e,n;yr(this,Rp,e2).call(this),(n=(e=En(this,Jr))==null?void 0:e.unassociateElement)==null||n.call(e,this),Ts(this,Jr,null),this.shadowRoot.removeEventListener("focusin",En(this,Mp)),this.shadowRoot.removeEventListener("focusout",En(this,Cp)),Ud(this.container,En(this,Dp))}updatePointerBar(e){var n;(n=En(this,xr).pointer)==null||n.style.setProperty("width",`${this.getPointerRatio(e)*100}%`)}updateBar(){var e,n;const i=this.range.valueAsNumber*100;(e=En(this,xr).progress)==null||e.style.setProperty("width",`${i}%`),(n=En(this,xr).thumb)==null||n.style.setProperty("left",`${i}%`)}updateSegments(e){const n=this.shadowRoot.querySelector("#segments-clipping");if(n.textContent="",this.container.classList.toggle("segments",!!e?.length),!e?.length)return;En(this,xr).activeSegment=CR(this.shadowRoot,"#segments-clipping rect:nth-child(0)");const i=[...new Set([+this.range.min,...e.flatMap(a=>[a.start,a.end]),+this.range.max])];Ts(this,Vm,[...i]);const r=i.pop();for(const[a,s]of i.entries()){const[o,u]=[a===0,a===i.length-1],c=o?"calc(var(--segments-gap) / -1)":`${s*100}%`,d=`calc(${((u?r:i[a+1])-s)*100}%${o||u?"":" - var(--segments-gap)"})`,f=dt.createElementNS("http://www.w3.org/2000/svg","rect"),h=Nn(this.shadowRoot,`#segments-clipping rect:nth-child(${a+1})`);h.style.setProperty("x",c),h.style.setProperty("width",d),n.append(f)}}getPointerRatio(e){let n=UX(e.clientX,e.clientY,En(this,Tp).getBoundingClientRect(),En(this,wp).getBoundingClientRect());return Math.max(0,Math.min(1,n))}get dragging(){return this.hasAttribute("dragging")}handleEvent(e){switch(e.type){case"pointermove":yr(this,r2,OI).call(this,e);break;case"input":this.updateBar();break;case"pointerenter":yr(this,t2,II).call(this,e);break;case"pointerdown":yr(this,Hm,vy).call(this,e);break;case"pointerup":yr(this,n2,PI).call(this);break;case"pointerleave":yr(this,i2,kI).call(this);break}}get keysUsed(){return["ArrowUp","ArrowRight","ArrowDown","ArrowLeft"]}}Jr=new WeakMap;Z0=new WeakMap;Tp=new WeakMap;wp=new WeakMap;
989xr=new WeakMap;Vm=new WeakMap;Mp=new WeakMap;Cp=new WeakMap;Dp=new WeakMap;gy=new WeakSet;RI=function(t){const e=En(this,xr).activeSegment;if(!e)return;const n=this.getPointerRatio(t),r=`#segments-clipping rect:nth-child(${En(this,Vm).findIndex((a,s,o)=>{const u=o[s+1];return u!=null&&n>=a&&n<=u})+1})`;(e.selectorText!=r||!e.style.transform)&&(e.selectorText=r,e.style.setProperty("transform","var(--media-range-segment-hover-transform, scaleY(2))"))};Lp=new WeakSet;Q1=function(){this.hasAttribute("disabled")||(this.addEventListener("input",this),this.addEventListener("pointerdown",this),this.addEventListener("pointerenter",this))};Rp=new WeakSet;e2=function(){var t,e;this.removeEventListener("input",this),this.removeEventListener("pointerdown",this),this.removeEventListener("pointerenter",this),(t=Ee.window)==null||t.removeEventListener("pointerup",this),(e=Ee.window)==null||e.removeEventListener("pointermove",this)};Hm=new WeakSet;vy=function(t){var e;Ts(this,Z0,t.composedPath().includes(this.range)),(e=Ee.window)==null||e.addEventListener("pointerup",this)};t2=new WeakSet;II=function(t){var e;t.pointerType!=="mouse"&&yr(this,Hm,vy).call(this,t),this.addEventListener("pointerleave",this),(e=Ee.window)==null||e.addEventListener("pointermove",this)};n2=new WeakSet;PI=function(){var t;(t=Ee.window)==null||t.removeEventListener("pointerup",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled")};i2=new WeakSet;kI=function(){var t,e;this.removeEventListener("pointerleave",this),(t=Ee.window)==null||t.removeEventListener("pointermove",this),this.toggleAttribute("dragging",!1),this.range.disabled=this.hasAttribute("disabled"),(e=En(this,xr).activeSegment)==null||e.style.removeProperty("transform")};r2=new WeakSet;OI=function(t){this.toggleAttribute("dragging",t.buttons===1||t.pointerType!=="mouse"),this.updatePointerBar(t),yr(this,gy,RI).call(this,t),this.dragging&&(t.pointerType!=="mouse"||!En(this,Z0))&&(this.range.disabled=!0,this.range.valueAsNumber=this.getPointerRatio(t),this.range.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})))};Ee.customElements.get("media-chrome-range")||Ee.customElements.define("media-chrome-range",_y);var UI=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},ph=(t,e,n)=>(UI(t,e,"read from private field"),n?n.call(t):e.get(t)),dK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},mh=(t,e,n,i)=>(UI(t,e,"write to private field"),e.set(t,n),n),Qr;const FI=dt.createElement("template");FI.innerHTML=`
990  <style>
991    :host {
992      
993      box-sizing: border-box;
994      display: var(--media-control-display, var(--media-control-bar-display, inline-flex));
995      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
996      --media-loading-indicator-icon-height: 44px;
997    }
998
999    ::slotted(media-time-range),
1000    ::slotted(media-volume-range) {
1001      min-height: 100%;
1002    }
1003
1004    ::slotted(media-time-range),
1005    ::slotted(media-clip-selector) {
1006      flex-grow: 1;
1007    }
1008  </style>
1009
1010  <slot></slot>
1011`;class fK extends Ee.HTMLElement{constructor(){super(),dK(this,Qr,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(FI.content.cloneNode(!0)))}static get observedAttributes(){return[an.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===an.MEDIA_CONTROLLER&&(n&&((a=(r=ph(this,Qr))==null?void 0:r.unassociateElement)==null||a.call(r,this),mh(this,Qr,null)),i&&this.isConnected&&(mh(this,Qr,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=ph(this,Qr))==null?void 0:o.associateElement)==null||u.call(o,this)))}connectedCallback(){var e,n,i;const r=this.getAttribute(an.MEDIA_CONTROLLER);r&&(mh(this,Qr,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=ph(this,Qr))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=ph(this,Qr))==null?void 0:e.unassociateElement)==null||n.call(e,this),mh(this,Qr,null)}}Qr=new WeakMap;Ee.customElements.get("media-control-bar")||Ee.customElements.define("media-control-bar",fK);var BI=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},gh=(t,e,n)=>(BI(t,e,"read from private field"),n?n.call(t):e.get(t)),hK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},vh=(t,e,n,i)=>(BI(t,e,"write to private field"),e.set(t,n),n),ea;const VI=dt.createElement("template");VI.innerHTML=`
1012  <style>
1013    :host {
1014      font: var(--media-font,
1015        var(--media-font-weight, normal)
1016        var(--media-font-size, 14px) /
1017        var(--media-text-content-height, var(--media-control-height, 24px))
1018        var(--media-font-family, helvetica neue, segoe ui, roboto, arial, sans-serif));
1019      color: var(--media-text-color, var(--media-primary-color, rgb(238 238 238)));
1020      background: var(--media-text-background, var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7))));
1021      padding: var(--media-control-padding, 10px);
1022      display: inline-flex;
1023      justify-content: center;
1024      align-items: center;
1025      vertical-align: middle;
1026      box-sizing: border-box;
1027      text-align: center;
1028      pointer-events: auto;
1029    }
1030
1031    
1032    :host(:focus-visible) {
1033      box-shadow: inset 0 0 0 2px rgb(27 127 204 / .9);
1034      outline: 0;
1035    }
1036
1037    
1038    :host(:where(:focus)) {
1039      box-shadow: none;
1040      outline: 0;
1041    }
1042  </style>
1043  <slot></slot>
1044`;
1044class yf extends Ee.HTMLElement{constructor(){super(),hK(this,ea,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(VI.content.cloneNode(!0)))}static get observedAttributes(){return[an.MEDIA_CONTROLLER]}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===an.MEDIA_CONTROLLER&&(n&&((a=(r=gh(this,ea))==null?void 0:r.unassociateElement)==null||a.call(r,this),vh(this,ea,null)),i&&this.isConnected&&(vh(this,ea,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=gh(this,ea))==null?void 0:o.associateElement)==null||u.call(o,this)))}connectedCallback(){var e,n,i;const{style:r}=Nn(this.shadowRoot,":host");r.setProperty("display",`var(--media-control-display, var(--${this.localName}-display, inline-flex))`);const a=this.getAttribute(an.MEDIA_CONTROLLER);a&&(vh(this,ea,(e=this.getRootNode())==null?void 0:e.getElementById(a)),(i=(n=gh(this,ea))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=gh(this,ea))==null?void 0:e.unassociateElement)==null||n.call(e,this),vh(this,ea,null)}}ea=new WeakMap;Ee.customElements.get("media-text-display")||Ee.customElements.define("media-text-display",yf);var pK=yf,HI=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},US=(t,e,n)=>(HI(t,e,"read from private field"),n?n.call(t):e.get(t)),mK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},gK=(t,e,n,i)=>(HI(t,e,"write to private field"),e.set(t,n),n),Fc;class vK extends yf{constructor(){super(),mK(this,Fc,void 0),gK(this,Fc,this.shadowRoot.querySelector("slot")),US(this,Fc).textContent=qo(0)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_DURATION]}attributeChangedCallback(e,n,i){e===ne.MEDIA_DURATION&&(US(this,Fc).textContent=qo(+i)),super.attributeChangedCallback(e,n,i)}get mediaDuration(){return Ln(this,ne.MEDIA_DURATION)}set mediaDuration(e){ai(this,ne.MEDIA_DURATION,e)}}Fc=new WeakMap;Ee.customElements.get("media-duration-display")||Ee.customElements.define("media-duration-display",vK);const _K=`<svg aria-hidden="true" viewBox="0 0 26 24">
1045  <path d="M16 3v2.5h3.5V9H22V3h-6ZM4 9h2.5V5.5H10V3H4v6Zm15.5 9.5H16V21h6v-6h-2.5v3.5ZM6.5 15H4v6h6v-2.5H6.5V15Z"/>
1046</svg>`,bK=`<svg aria-hidden="true" viewBox="0 0 26 24">
1047  <path d="M18.5 6.5V3H16v6h6V6.5h-3.5ZM16 21h2.5v-3.5H22V15h-6v6ZM4 17.5h3.5V21H10v-6H4v2.5Zm3.5-11H4V9h6V3H7.5v3.5Z"/>
1048</svg>`,zI=dt.createElement("template");zI.innerHTML=`
1049  <style>
1050  :host([${ne.MEDIA_IS_FULLSCREEN}]) slot:not([name=exit]):not([name=icon]) {
1051    display: none !important;
1052  }
1053
1054  
1055  :host(:not([${ne.MEDIA_IS_FULLSCREEN}])) slot:not([name=enter]):not([name=icon]) {
1056    display: none !important;
1057  }
1058  </style>
1059
1060  <slot name="icon">
1061    <slot name="enter">${_K}</slot>
1062    <slot name="exit">${bK}</slot>
1063  </slot>
1064`;const FS=t=>{const e=t.mediaIsFullscreen?_i.EXIT_FULLSCREEN():_i.ENTER_FULLSCREEN();t.setAttribute("aria-label",e)};class yK extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_IS_FULLSCREEN,ne.MEDIA_FULLSCREEN_UNAVAILABLE]}constructor(e={}){super({slotTemplate:zI,...e})}connectedCallback(){super.connectedCallback(),FS(this)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_IS_FULLSCREEN&&FS(this)}get mediaFullscreenUnavailable(){return bi(this,ne.MEDIA_FULLSCREEN_UNAVAILABLE)}set mediaFullscreenUnavailable(e){yi(this,ne.MEDIA_FULLSCREEN_UNAVAILABLE,e)}get mediaIsFullscreen(){return Qn(this,ne.MEDIA_IS_FULLSCREEN)}set mediaIsFullscreen(e){ei(this,ne.MEDIA_IS_FULLSCREEN,e)}handleClick(){const e=this.mediaIsFullscreen?rt.MEDIA_EXIT_FULLSCREEN_REQUEST:rt.MEDIA_ENTER_FULLSCREEN_REQUEST;this.dispatchEvent(new Ee.CustomEvent(e,{composed:!0,bubbles:!0}))}}Ee.customElements.get("media-fullscreen-button")||Ee.customElements.define("media-fullscreen-button",yK);const{MEDIA_TIME_IS_LIVE:Ip,MEDIA_PAUSED:md}=ne,{MEDIA_SEEK_TO_LIVE_REQUEST:EK,MEDIA_PLAY_REQUEST:xK}=rt,AK='<svg viewBox="0 0 6 12"><circle cx="3" cy="6" r="2"></circle></svg>',$I=dt.createElement("template");$I.innerHTML=`
1065  <style>
1066
1067  slot[name=indicator] > *,
1068  :host ::slotted([slot=indicator]) {
1069    
1070    min-width: auto;
1071    fill: var(--media-live-button-icon-color, rgb(140, 140, 140));
1072    color: var(--media-live-button-icon-color, rgb(140, 140, 140));
1073  }
1074
1075  :host([${Ip}]:not([${md}])) slot[name=indicator] > *,
1076  :host([${Ip}]:not([${md}])) ::slotted([slot=indicator]) {
1077    fill: var(--media-live-button-indicator-color, rgb(255, 0, 0));
1078    color: var(--media-live-button-indicator-color, rgb(255, 0, 0));
1079  }
1080
1081  :host([${Ip}]:not([${md}])) {
1082    cursor: not-allowed;
1083  }
1084
1085  </style>
1086
1087  <slot name="indicator">${AK}</slot>
1088  
1089  <slot name="spacer">&nbsp;</slot><slot name="text">LIVE</slot>
1090`;const BS=t=>{const e=t.mediaPaused||!t.mediaTimeIsLive,n=e?_i.SEEK_LIVE():_i.PLAYING_LIVE();t.setAttribute("aria-label",n),e?t.removeAttribute("aria-disabled"):t.setAttribute("aria-disabled","true")};class SK extends tr{static get observedAttributes(){return[...super.observedAttributes,md,Ip]}constructor(e={}){super({slotTemplate:$I,...e})}connectedCallback(){BS(this),super.connectedCallback()}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),BS(this)}get mediaPaused(){return Qn(this,ne.MEDIA_PAUSED)}set mediaPaused(e){ei(this,ne.MEDIA_PAUSED,e)}get mediaTimeIsLive(){return Qn(this,ne.MEDIA_TIME_IS_LIVE)}set mediaTimeIsLive(e){ei(this,ne.MEDIA_TIME_IS_LIVE,e)}handleClick(){!this.mediaPaused&&this.mediaTimeIsLive||(this.dispatchEvent(new Ee.CustomEvent(EK,{composed:!0,bubbles:!0})),this.hasAttribute(md)&&this.dispatchEvent(new Ee.CustomEvent(xK,{composed:!0,bubbles:!0})))}}Ee.customElements.get("media-live-button")||Ee.customElements.define("media-live-button",SK);var WI=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},bc=(t,e,n)=>(WI(t,e,"read from private field"),n?n.call(t):e.get(t)),VS=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},yc=(t,e,n,i)=>(WI(t,e,"write to private field"),e.set(t,n),n),ta,Pp;const HS={LOADING_DELAY:"loadingdelay"},GI=500,qI=dt.createElement("template"),TK=`
1091<svg aria-hidden="true" viewBox="0 0 100 100">
1092  <path d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
1093    <animateTransform
1094       attributeName="transform"
1095       attributeType="XML"
1096       type="rotate"
1097       dur="1s"
1098       from="0 50 50"
1099       to="360 50 50"
1100       repeatCount="indefinite" />
1101  </path>
1102</svg>
1103`;qI.innerHTML=`
1104<style>
1105:host {
1106  display: var(--media-control-display, var(--media-loading-indicator-display, inline-block));
1107  vertical-align: middle;
1108  box-sizing: border-box;
1109  --_loading-indicator-delay: var(--media-loading-indicator-transition-delay, ${GI}ms);
1110}
1111
1112#status {
1113  color: rgba(0,0,0,0);
1114  width: 0px;
1115  height: 0px;
1116}
1117
1118:host slot[name=icon] > *,
1119:host ::slotted([slot=icon]) {
1120  opacity: var(--media-loading-indicator-opacity, 0);
1121  transition: opacity 0.15s;
1122}
1123
1124:host([${ne.MEDIA_LOADING}]:not([${ne.MEDIA_PAUSED}])) slot[name=icon] > *,
1125:host([${ne.MEDIA_LOADING}]:not([${ne.MEDIA_PAUSED}])) ::slotted([slot=icon]) {
1126  opacity: var(--media-loading-indicator-opacity, 1);
1127  transition: opacity 0.15s var(--_loading-indicator-delay);
1128}
1129
1130:host #status {
1131  visibility: var(--media-loading-indicator-opacity, hidden);
1132  transition: visibility 0.15s;
1133}
1134
1135:host([${ne.MEDIA_LOADING}]:not([${ne.MEDIA_PAUSED}])) #status {
1136  visibility: var(--media-loading-indicator-opacity, visible);
1137  transition: visibility 0.15s var(--_loading-indicator-delay);
1138}
1139
1140svg, img, ::slotted(svg), ::slotted(img) {
1141  width: var(--media-loading-indicator-icon-width);
1142  height: var(--media-loading-indicator-icon-height, 100px);
1143  fill: var(--media-icon-color, var(--media-primary-color, rgb(238 238 238)));
1144  vertical-align: middle;
1145}
1146</style>
1147
1148<slot name="icon">${TK}</slot>
1149<div id="status" role="status" aria-live="polite">${Ji.MEDIA_LOADING()}</div>
1150`;class wK extends Ee.HTMLElement{constructor(){if(super(),VS(this,ta,void 0),VS(this,Pp,GI),!this.shadowRoot){const e=this.attachShadow({mode:"open"}),n=qI.content.cloneNode(!0);e.appendChild(n)}}static get observedAttributes(){return[an.MEDIA_CONTROLLER,ne.MEDIA_PAUSED,ne.MEDIA_LOADING,HS.LOADING_DELAY]}attributeChangedCallback(e,n,i){var r,a,s,o,u;e===HS.LOADING_DELAY&&n!==i?this.loadingDelay=Number(i):e===an.MEDIA_CONTROLLER&&(n&&((a=(r=bc(this,ta))==null?void 0:r.unassociateElement)==null||a.call(r,this),yc(this,ta,null)),i&&this.isConnected&&(yc(this,ta,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=bc(this,ta))==null?void 0:o.associateElement)==null||u.call(o,this)))}connectedCallback(){var e,n,i;const r=this.getAttribute(an.MEDIA_CONTROLLER);r&&(yc(this,ta,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=bc(this,ta))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=bc(this,ta))==null?void 0:e.unassociateElement)==null||n.call(e,this),yc(this,ta,null)}get loadingDelay(){return bc(this,Pp)}set loadingDelay(e){yc(this,Pp,e);const{style:n}=Nn(this.shadowRoot,":host");n.setProperty("--_loading-indicator-delay",`var(--media-loading-indicator-transition-delay, ${e}ms)`)}get mediaPaused(){return Qn(this,ne.MEDIA_PAUSED)}set mediaPaused(e){ei(this,ne.MEDIA_PAUSED,e)}get mediaLoading(){return Qn(this,ne.MEDIA_LOADING)}set mediaLoading(e){ei(this,ne.MEDIA_LOADING,e)}}ta=new WeakMap;Pp=new WeakMap;Ee.customElements.get("media-loading-indicator")||Ee.customElements.define("media-loading-indicator",wK);const{MEDIA_VOLUME_LEVEL:Ec}=ne,MK=`<svg aria-hidden="true" viewBox="0 0 24 24">
1151  <path d="M16.5 12A4.5 4.5 0 0 0 14 8v2.18l2.45 2.45a4.22 4.22 0 0 0 .05-.63Zm2.5 0a6.84 6.84 0 0 1-.54 2.64L20 16.15A8.8 8.8 0 0 0 21 12a9 9 0 0 0-7-8.77v2.06A7 7 0 0 1 19 12ZM4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25A6.92 6.92 0 0 1 14 18.7v2.06A9 9 0 0 0 17.69 19l2 2.05L21 19.73l-9-9L4.27 3ZM12 4 9.91 6.09 12 8.18V4Z"/>
1152</svg>`,zS=`<svg aria-hidden="true" viewBox="0 0 24 24">
1153  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4Z"/>
1154</svg>`,CK=`<svg aria-hidden="true" viewBox="0 0 24 24">
1155  <path d="M3 9v6h4l5 5V4L7 9H3Zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.47 4.47 0 0 0 2.5-4ZM14 3.23v2.06a7 7 0 0 1 0 13.42v2.06a9 9 0 0 0 0-17.54Z"/>
1156</svg>`,jI=dt.createElement("template");jI.innerHTML=`
1157  <style>
1158  
1159  :host(:not([${Ec}
1159])) slot:not([name=high]):not([name=icon]), 
1160  :host([${Ec}=high]) slot:not([name=high]):not([name=icon]) {
1161    display: none !important;
1162  }
1163
1164  :host([${Ec}=off]) slot:not([name=off]):not([name=icon]) {
1165    display: none !important;
1166  }
1167
1168  :host([${Ec}=low]) slot:not([name=low]):not([name=icon]) {
1169    display: none !important;
1170  }
1171
1172  :host([${Ec}=medium]) slot:not([name=medium]):not([name=icon]) {
1173    display: none !important;
1174  }
1175  </style>
1176
1177  <slot name="icon">
1178    <slot name="off">${MK}</slot>
1179    <slot name="low">${zS}</slot>
1180    <slot name="medium">${zS}</slot>
1181    <slot name="high">${CK}</slot>
1182  </slot>
1183`;const $S=t=>{const n=t.mediaVolumeLevel==="off"?_i.UNMUTE():_i.MUTE();t.setAttribute("aria-label",n)};class DK extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_VOLUME_LEVEL]}constructor(e={}){super({slotTemplate:jI,...e})}connectedCallback(){$S(this),super.connectedCallback()}attributeChangedCallback(e,n,i){e===ne.MEDIA_VOLUME_LEVEL&&$S(this),super.attributeChangedCallback(e,n,i)}get mediaVolumeLevel(){return bi(this,ne.MEDIA_VOLUME_LEVEL)}set mediaVolumeLevel(e){yi(this,ne.MEDIA_VOLUME_LEVEL,e)}handleClick(){const e=this.mediaVolumeLevel==="off"?rt.MEDIA_UNMUTE_REQUEST:rt.MEDIA_MUTE_REQUEST;this.dispatchEvent(new Ee.CustomEvent(e,{composed:!0,bubbles:!0}))}}Ee.customElements.get("media-mute-button")||Ee.customElements.define("media-mute-button",DK);const WS=`<svg aria-hidden="true" viewBox="0 0 28 24">
1184  <path d="M24 3H4a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1Zm-1 16H5V5h18v14Zm-3-8h-7v5h7v-5Z"/>
1185</svg>`,XI=dt.createElement("template");XI.innerHTML=`
1186  <style>
1187  :host([${ne.MEDIA_IS_PIP}]) slot:not([name=exit]):not([name=icon]) {
1188    display: none !important;
1189  }
1190
1191  
1192  :host(:not([${ne.MEDIA_IS_PIP}])) slot:not([name=enter]):not([name=icon]) {
1193    display: none !important;
1194  }
1195  </style>
1196
1197  <slot name="icon">
1198    <slot name="enter">${WS}</slot>
1199    <slot name="exit">${WS}</slot>
1200  </slot>
1201`;const GS=t=>{const e=t.mediaIsPip?_i.EXIT_PIP():_i.ENTER_PIP();t.setAttribute("aria-label",e)};class LK extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_IS_PIP,ne.MEDIA_PIP_UNAVAILABLE]}constructor(e={}){super({slotTemplate:XI,...e})}connectedCallback(){GS(this),super.connectedCallback()}attributeChangedCallback(e,n,i){e===ne.MEDIA_IS_PIP&&GS(this),super.attributeChangedCallback(e,n,i)}get mediaPipUnavailable(){return bi(this,ne.MEDIA_PIP_UNAVAILABLE)}set mediaPipUnavailable(e){yi(this,ne.MEDIA_PIP_UNAVAILABLE,e)}get mediaIsPip(){return Qn(this,ne.MEDIA_IS_PIP)}set mediaIsPip(e){ei(this,ne.MEDIA_IS_PIP,e)}handleClick(){const e=this.mediaIsPip?rt.MEDIA_EXIT_PIP_REQUEST:rt.MEDIA_ENTER_PIP_REQUEST;this.dispatchEvent(new Ee.CustomEvent(e,{composed:!0,bubbles:!0}))}}Ee.customElements.get("media-pip-button")||Ee.customElements.define("media-pip-button",LK);var RK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},_h=(t,e,n)=>(RK(t,e,"read from private field"),n?n.call(t):e.get(t)),IK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Xu;const fv={RATES:"rates"}
1201,YI=[1,1.2,1.5,1.7,2],Bc=1,KI=dt.createElement("template");KI.innerHTML=`
1202  <style>
1203    :host {
1204      min-width: 5ch;
1205      padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1206    }
1207  </style>
1208  <slot name="icon"></slot>
1209`;class PK extends tr{constructor(e={}){super({slotTemplate:KI,...e}),IK(this,Xu,new j0(this,fv.RATES,{defaultValue:YI})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${Bc}x`}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PLAYBACK_RATE,fv.RATES]}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),e===fv.RATES&&(_h(this,Xu).value=i),e===ne.MEDIA_PLAYBACK_RATE){const r=i?+i:Number.NaN,a=Number.isNaN(r)?Bc:r;this.container.innerHTML=`${a}x`,this.setAttribute("aria-label",Ji.PLAYBACK_RATE({playbackRate:a}))}}get rates(){return _h(this,Xu)}set rates(e){e?Array.isArray(e)&&(_h(this,Xu).value=e.join(" ")):_h(this,Xu).value=""}get mediaPlaybackRate(){return Ln(this,ne.MEDIA_PLAYBACK_RATE,Bc)}set mediaPlaybackRate(e){ai(this,ne.MEDIA_PLAYBACK_RATE,e)}handleClick(){var e,n;const i=Array.from(this.rates.values(),s=>+s).sort((s,o)=>s-o),r=(n=(e=i.find(s=>s>this.mediaPlaybackRate))!=null?e:i[0])!=null?n:Bc,a=new Ee.CustomEvent(rt.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:r});this.dispatchEvent(a)}}Xu=new WeakMap;Ee.customElements.get("media-playback-rate-button")||Ee.customElements.define("media-playback-rate-button",PK);var ZI=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},bh=(t,e,n)=>(ZI(t,e,"read from private field"),n?n.call(t):e.get(t)),hv=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},xc=(t,e,n)=>(ZI(t,e,"access private method"),n),Yu,Vc,kp,Op,a2;const pv={RATES:"rates"};class kK extends ls{constructor(){super(),hv(this,Vc),hv(this,Op),hv(this,Yu,new j0(this,pv.RATES,{defaultValue:YI})),xc(this,Vc,kp).call(this)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PLAYBACK_RATE,pv.RATES]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_PLAYBACK_RATE&&n!=i?this.value=i:e===pv.RATES&&n!=i&&(bh(this,Yu).value=i,xc(this,Vc,kp).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",xc(this,Op,a2))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",xc(this,Op,a2))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:Hr(this).querySelector("media-playback-rate-menu-button")}get rates(){return bh(this,Yu)}set rates(e){e?Array.isArray(e)&&(bh(this,Yu).value=e.join(" ")):bh(this,Yu).value="",xc(this,Vc,kp).call(this)}get mediaPlaybackRate(){return Ln(this,ne.MEDIA_PLAYBACK_RATE,Bc)}set mediaPlaybackRate(e){ai(this,ne.MEDIA_PLAYBACK_RATE,e)}}Yu=new WeakMap;Vc=new WeakSet;kp=function(){this.defaultSlot.textContent="";for(const t of this.rates){const e=$l({type:"radio",text:this.formatMenuItemText(`${t}x`,t),value:t,checked:this.mediaPlaybackRate==t});e.prepend(Ko(this,"checked-indicator")),this.defaultSlot.append(e)}};Op=new WeakSet;a2=function(){if(!this.value)return;const t=new Ee.CustomEvent(rt.MEDIA_PLAYBACK_RATE_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)};Ee.customElements.get("media-playback-rate-menu")||Ee.customElements.define("media-playback-rate-menu",kK);var OK=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},yh=(t,e,n)=>(OK(t,e,"read from private field"),n?n.call(t):e.get(t)),NK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},Ku;const mv={RATES:"rates"},UK=[1,1.2,1.5,1.7,2],gv=1,JI=dt.createElement("template");JI.innerHTML=`
1210  <style>
1211    :host {
1212      min-width: 5ch;
1213      padding: var(--media-button-padding, var(--media-control-padding, 10px 5px));
1214    }
1215  </style>
1216  <slot name="icon"></slot>
1217`;class FK extends tc{constructor(e={}){super({slotTemplate:JI,...e}),NK(this,Ku,new j0(this,mv.RATES,{defaultValue:UK})),this.container=this.shadowRoot.querySelector('slot[name="icon"]'),this.container.innerHTML=`${gv}x`}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PLAYBACK_RATE,mv.RATES]}attributeChangedCallback(e,n,i){if(super.attributeChangedCallback(e,n,i),e===mv.RATES&&(yh(this,Ku).value=i),e===ne.MEDIA_PLAYBACK_RATE){const r=i?+i:Number.NaN,a=Number.isNaN(r)?gv:r;this.container.innerHTML=`${a}x`,this.setAttribute("aria-label",Ji.PLAYBACK_RATE({playbackRate:a}))}}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:Hr(this).querySelector("media-playback-rate-menu")}get rates(){return yh(this,Ku)}set rates(e){e?Array.isArray(e)&&(yh(this,Ku).value=e.join(" ")):yh(this,Ku).value=""}get mediaPlaybackRate(){return Ln(this,ne.MEDIA_PLAYBACK_RATE,gv)}set mediaPlaybackRate(e){ai(this,ne.MEDIA_PLAYBACK_RATE,e)}}Ku=new WeakMap;Ee.customElements.get("media-playback-rate-menu-button")||Ee.customElements.define("media-playback-rate-menu-button",FK);const BK=`<svg aria-hidden="true" viewBox="0 0 24 24">
1218  <path d="m6 21 15-9L6 3v18Z"/>
1219</svg>`,VK=`<svg aria-hidden="true" viewBox="0 0 24 24">
1220  <path d="M6 20h4V4H6v16Zm8-16v16h4V4h-4Z"/>
1221</svg>`,QI=dt.createElement("template");QI.innerHTML=`
1222  <style>
1223  :host([${ne.MEDIA_PAUSED}]) slot[name=pause] {
1224    display: none !important;
1225  }
1226
1227  :host(:not([${ne.MEDIA_PAUSED}])) slot[name=play] {
1228    display: none !important;
1229  }
1230  </style>
1231
1232  <slot name="icon">
1233    <slot name="play">${BK}</slot>
1234    <slot name="pause">${VK}</slot>
1235  </slot>
1236`;const qS=t=>{const e=t.mediaPaused?_i.PLAY():_i.PAUSE();t.setAttribute("aria-label",e)};class HK extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PAUSED,ne.MEDIA_ENDED]}constructor(e={}){super({slotTemplate:QI,...e})}connectedCallback(){qS(this),super.connectedCallback()}attributeChangedCallback(e,n,i){e===ne.MEDIA_PAUSED&&qS(this),super.attributeChangedCallback(e,n,i)}get mediaPaused(){return Qn(this,ne.MEDIA_PAUSED)}set mediaPaused(e){ei(this,ne.MEDIA_PAUSED,e)}handleClick(){const e=this.mediaPaused?rt.MEDIA_PLAY_REQUEST:rt.MEDIA_PAUSE_REQUEST;this.dispatchEvent(new Ee.CustomEvent(e,{composed:!0,bubbles:!0}))}}Ee.customElements.get("media-play-button")||Ee.customElements.define("media-play-button",HK);const Gr={PLACEHOLDER_SRC:"placeholdersrc",SRC:"src"},eP=dt.createElement("template");eP.innerHTML=`
1237  <style>
1238    :host {
1239      pointer-events: none;
1240      display: var(--media-poster-image-display, inline-block);
1241      box-sizing: border-box;
1242    }
1243
1244    img {
1245      max-width: 100%;
1246      max-height: 100%;
1247      min-width: 100%;
1248      min-height: 100%;
1249      background-repeat: no-repeat;
1250      background-position: var(--media-poster-image-background-position, var(--media-object-position, center));
1251      background-size: var(--media-poster-image-background-size, var(--media-object-fit, contain));
1252      object-fit: var(--media-object-fit, contain);
1253      object-position: var(--media-object-position, center);
1254    }
1255  </style>
1256
1257  <img part="poster img" aria-hidden="true" id="image"/>
1258`;const zK=t=>{t.style.removeProperty("background-image")},$K=(t,e)=>{t.style["background-image"]=`url('${e}')`};
1258class WK extends Ee.HTMLElement{static get observedAttributes(){return[Gr.PLACEHOLDER_SRC,Gr.SRC]}constructor(){super(),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(eP.content.cloneNode(!0))),this.image=this.shadowRoot.querySelector("#image")}attributeChangedCallback(e,n,i){e===Gr.SRC&&(i==null?this.image.removeAttribute(Gr.SRC):this.image.setAttribute(Gr.SRC,i)),e===Gr.PLACEHOLDER_SRC&&(i==null?zK(this.image):$K(this.image,i))}get placeholderSrc(){return bi(this,Gr.PLACEHOLDER_SRC)}set placeholderSrc(e){yi(this,Gr.SRC,e)}get src(){return bi(this,Gr.SRC)}set src(e){yi(this,Gr.SRC,e)}}Ee.customElements.get("media-poster-image")||Ee.customElements.define("media-poster-image",WK);var tP=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},GK=(t,e,n)=>(tP(t,e,"read from private field"),n?n.call(t):e.get(t)),qK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},jK=(t,e,n,i)=>(tP(t,e,"write to private field"),e.set(t,n),n),Np;class XK extends pK{constructor(){super(),qK(this,Np,void 0),jK(this,Np,this.shadowRoot.querySelector("slot"))}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PREVIEW_CHAPTER]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_PREVIEW_CHAPTER&&i!==n&&i!=null&&(GK(this,Np).textContent=i,i!==""?this.setAttribute("aria-valuetext",`chapter: ${i}`):this.removeAttribute("aria-valuetext"))}get mediaPreviewChapter(){return bi(this,ne.MEDIA_PREVIEW_CHAPTER)}set mediaPreviewChapter(e){yi(this,ne.MEDIA_PREVIEW_CHAPTER,e)}}Np=new WeakMap;Ee.customElements.get("media-preview-chapter-display")||Ee.customElements.define("media-preview-chapter-display",XK);var nP=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Eh=(t,e,n)=>(nP(t,e,"read from private field"),n?n.call(t):e.get(t)),YK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},xh=(t,e,n,i)=>(nP(t,e,"write to private field"),e.set(t,n),n),na;const iP=dt.createElement("template");iP.innerHTML=`
1259  <style>
1260    :host {
1261      box-sizing: border-box;
1262      display: var(--media-control-display, var(--media-preview-thumbnail-display, inline-block));
1263      overflow: hidden;
1264    }
1265
1266    img {
1267      display: none;
1268      position: relative;
1269    }
1270  </style>
1271  <img crossorigin loading="eager" decoding="async">
1272`;class KK extends Ee.HTMLElement{constructor(){super(),YK(this,na,void 0),this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(iP.content.cloneNode(!0)))}static get observedAttributes(){return[an.MEDIA_CONTROLLER,ne.MEDIA_PREVIEW_IMAGE,ne.MEDIA_PREVIEW_COORDS]}connectedCallback(){var e,n,i;const r=this.getAttribute(an.MEDIA_CONTROLLER);r&&(xh(this,na,(e=this.getRootNode())==null?void 0:e.getElementById(r)),(i=(n=Eh(this,na))==null?void 0:n.associateElement)==null||i.call(n,this))}disconnectedCallback(){var e,n;(n=(e=Eh(this,na))==null?void 0:e.unassociateElement)==null||n.call(e,this),xh(this,na,null)}attributeChangedCallback(e,n,i){var r,a,s,o,u;[ne.MEDIA_PREVIEW_IMAGE,ne.MEDIA_PREVIEW_COORDS].includes(e)&&this.update(),e===an.MEDIA_CONTROLLER&&(n&&((a=(r=Eh(this,na))==null?void 0:r.unassociateElement)==null||a.call(r,this),xh(this,na,null)),i&&this.isConnected&&(xh(this,na,(s=this.getRootNode())==null?void 0:s.getElementById(i)),(u=(o=Eh(this,na))==null?void 0:o.associateElement)==null||u.call(o,this)))}get mediaPreviewImage(){return bi(this,ne.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){yi(this,ne.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewCoords(){const e=this.getAttribute(ne.MEDIA_PREVIEW_COORDS);if(e)return e.split(/\s+/).map(n=>+n)}set mediaPreviewCoords(e){if(!e){this.removeAttribute(ne.MEDIA_PREVIEW_COORDS);return}this.setAttribute(ne.MEDIA_PREVIEW_COORDS,e.join(" "))}update(){const e=this.mediaPreviewCoords,n=this.mediaPreviewImage;if(!(e&&n))return;const[i,r,a,s]=e,o=n.split("#")[0],u=getComputedStyle(this),{maxWidth:c,maxHeight:l,minWidth:d,minHeight:f}=u,h=Math.min(parseInt(c)/a,parseInt(l)/s),g=Math.max(parseInt(d)/a,parseInt(f)/s),v=h<1,m=v?h:g>1?g:1,{style:p}=Nn(this.shadowRoot,":host"),y=Nn(this.shadowRoot,"img").style,_=this.shadowRoot.querySelector("img"),b=v?"min":"max";p.setProperty(`${b}-width`,"initial","important"),p.setProperty(`${b}-height`,"initial","important"),p.width=`${a*m}px`,p.height=`${s*m}px`;const x=()=>{y.width=`${this.imgWidth*m}px`,y.height=`${this.imgHeight*m}
1272px`,y.display="block"};_.src!==o&&(_.onload=()=>{this.imgWidth=_.naturalWidth,this.imgHeight=_.naturalHeight,x()},_.src=o,x()),x(),y.transform=`translate(-${i*m}px, -${r*m}px)`}}na=new WeakMap;Ee.customElements.get("media-preview-thumbnail")||Ee.customElements.define("media-preview-thumbnail",KK);var rP=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},jS=(t,e,n)=>(rP(t,e,"read from private field"),n?n.call(t):e.get(t)),ZK=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},JK=(t,e,n,i)=>(rP(t,e,"write to private field"),e.set(t,n),n),Hc;class QK extends yf{constructor(){super(),ZK(this,Hc,void 0),JK(this,Hc,this.shadowRoot.querySelector("slot")),jS(this,Hc).textContent=qo(0)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PREVIEW_TIME]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_PREVIEW_TIME&&i!=null&&(jS(this,Hc).textContent=qo(i))}get mediaPreviewTime(){return Ln(this,ne.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){ai(this,ne.MEDIA_PREVIEW_TIME,e)}}Hc=new WeakMap;Ee.customElements.get("media-preview-time-display")||Ee.customElements.define("media-preview-time-display",QK);var by=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},aP=(t,e,n)=>(by(t,e,"read from private field"),n?n.call(t):e.get(t)),Ah=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},s2=(t,e,n,i)=>(by(t,e,"write to private field"),e.set(t,n),n),Sh=(t,e,n)=>(by(t,e,"access private method"),n),zc,zm,Up,o2,Fp,u2;class eZ extends ls{constructor(){super(...arguments),Ah(this,Up),Ah(this,Fp),Ah(this,zc,[]),Ah(this,zm,void 0)}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_RENDITION_LIST,ne.MEDIA_RENDITION_SELECTED,ne.MEDIA_RENDITION_UNAVAILABLE]}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),e===ne.MEDIA_RENDITION_SELECTED&&n!==i?this.value=i??"auto":e===ne.MEDIA_RENDITION_LIST&&n!==i&&(s2(this,zc,TX(i)),Sh(this,Up,o2).call(this))}connectedCallback(){super.connectedCallback(),this.addEventListener("change",Sh(this,Fp,u2))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",Sh(this,Fp,u2))}get anchorElement(){return this.anchor!=="auto"?super.anchorElement:Hr(this).querySelector("media-rendition-menu-button")}get mediaRenditionList(){return aP(this,zc)}set mediaRenditionList(e){s2(this,zc,e),Sh(this,Up,o2).call(this)}get mediaRenditionSelected(){return bi(this,ne.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){yi(this,ne.MEDIA_RENDITION_SELECTED,e)}}zc=new WeakMap;zm=new WeakMap;Up=new WeakSet;o2=function(){if(aP(this,zm)===JSON.stringify(this.mediaRenditionList))return;s2(this,zm,JSON.stringify(this.mediaRenditionList));const t=this.mediaRenditionList.sort((i,r)=>r.height-i.height);this.defaultSlot.textContent="";let e=!this.mediaRenditionSelected;for(const i of t){const r=this.formatMenuItemText(`${Math.min(i.width,i.height)}p`,i),a=$l({type:"radio",text:r,value:`${i.id}`,checked:i.selected&&!e});a.prepend(Ko(this,"checked-indicator")),this.defaultSlot.append(a)}const n=$l({type:"radio",text:this.formatMenuItemText("Auto"),value:"auto",checked:e});n.prepend(Ko(this,"checked-indicator")),this.defaultSlot.append(n)};Fp=new WeakSet;u2=function(){if(this.value==null)return;const t=new Ee.CustomEvent(rt.MEDIA_RENDITION_REQUEST,{composed:!0,bubbles:!0,detail:this.value});this.dispatchEvent(t)};Ee.customElements.get("media-rendition-menu")||Ee.customElements.define("media-rendition-menu",eZ);const tZ=`<svg aria-hidden="true" viewBox="0 0 24 24">
1273  <path d="M13.5 2.5h2v6h-2v-2h-11v-2h11v-2Zm4 2h4v2h-4v-2Zm-12 4h2v6h-2v-2h-3v-2h3v-2Zm4 2h12v2h-12v-2Zm1 4h2v6h-2v-2h-8v-2h8v-2Zm4 2h7v2h-7v-2Z" />
1274</svg>`,sP=dt.createElement("template");sP.innerHTML=`
1275  <slot name="icon">${tZ}</slot>
1276`;class nZ extends tc{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_RENDITION_SELECTED,ne.MEDIA_RENDITION_UNAVAILABLE]}constructor(){super({slotTemplate:sP})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",Ji.QUALITY())}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:Hr(this).querySelector("media-rendition-menu")}get mediaRenditionSelected(){return bi(this,ne.MEDIA_RENDITION_SELECTED)}set mediaRenditionSelected(e){yi(this,ne.MEDIA_RENDITION_SELECTED,e)}}Ee.customElements.get("media-rendition-menu-button")||Ee.customElements.define("media-rendition-menu-button",nZ);const gu={SEEK_OFFSET:"seekoffset"},Bp=30,iZ=`<svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(2.18 19.87)">${Bp}</text><path d="M10 6V3L4.37 7 10 10.94V8a5.54 5.54 0 0 1 1.9 10.48v2.12A7.5 7.5 0 0 0 10 6Z"/></svg>`,oP=dt.createElement("template");oP.innerHTML=`
1277  <slot name="icon">${iZ}</slot>
1278`;const rZ=0;class aZ extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_CURRENT_TIME,gu.SEEK_OFFSET]}constructor(e={}){super({slotTemplate:oP,...e})}connectedCallback(){this.seekOffset=Ln(this,gu.SEEK_OFFSET,Bp),super.connectedCallback()}attributeChangedCallback(e,n,i){e===gu.SEEK_OFFSET&&(this.seekOffset=Ln(this,gu.SEEK_OFFSET,Bp)),super.attributeChangedCallback(e,n,i)}get seekOffset(){return Ln(this,gu.SEEK_OFFSET,Bp)}set seekOffset(e){ai(this,gu.SEEK_OFFSET,e),this.setAttribute("aria-label",_i.SEEK_BACK_N_SECS({seekOffset:this.seekOffset})),wR(MR(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return Ln(this,ne.MEDIA_CURRENT_TIME,rZ)}set mediaCurrentTime(e){ai(this,ne.MEDIA_CURRENT_TIME,e)}handleClick(){const e=Math.max(this.mediaCurrentTime-this.seekOffset,0),n=new Ee.CustomEvent(rt.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)}}Ee.customElements.get("media-seek-backward-button")||Ee.customElements.define("media-seek-backward-button",aZ);const vu={SEEK_OFFSET:"seekoffset"},Vp=30,sZ=`<svg aria-hidden="true" viewBox="0 0 20 24"><defs><style>.text{font-size:8px;font-family:Arial-BoldMT, Arial;font-weight:700;}</style></defs><text class="text value" transform="translate(8.9 19.87)">${Vp}</text><path d="M10 6V3l5.61 4L10 10.94V8a5.54 5.54 0 0 0-1.9 10.48v2.12A7.5 7.5 0 0 1 10 6Z"/></svg>`,uP=dt.createElement("template");uP.innerHTML=`
1279  <slot name="icon">${sZ}</slot>
1280`;const oZ=0;class uZ extends tr{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_CURRENT_TIME,vu.SEEK_OFFSET]}constructor(e={}){super({slotTemplate:uP,...e})}connectedCallback(){this.seekOffset=Ln(this,vu.SEEK_OFFSET,Vp),super.connectedCallback()}attributeChangedCallback(e,n,i){e===vu.SEEK_OFFSET&&(this.seekOffset=Ln(this,vu.SEEK_OFFSET,Vp)),super.attributeChangedCallback(e,n,i)}get seekOffset(){return Ln(this,vu.SEEK_OFFSET,Vp)}set seekOffset(e){ai(this,vu.SEEK_OFFSET,e),this.setAttribute("aria-label",_i.SEEK_FORWARD_N_SECS({seekOffset:this.seekOffset})),wR(MR(this,"icon"),this.seekOffset)}get mediaCurrentTime(){return Ln(this,ne.MEDIA_CURRENT_TIME,oZ)}set mediaCurrentTime(e){ai(this,ne.MEDIA_CURRENT_TIME,e)}handleClick(){const e=this.mediaCurrentTime+this.seekOffset,n=new Ee.CustomEvent(rt.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)}}Ee.customElements.get("media-seek-forward-button")||Ee.customElements.define("media-seek-forward-button",uZ);var lZ=Object.defineProperty,cZ=(t,e,n)=>e in t?lZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dZ=(t,e,n)=>(cZ(t,e+"",n),n);const lP=dt.createElement("template");lP.innerHTML=ls.template.innerHTML+`
1281  <style>
1282    :host {
1283      background: var(--media-settings-menu-background,
1284        var(--media-menu-background,
1285        var(--media-control-background,
1286        var(--media-secondary-color, rgb(20 20 30 / .8)))));
1287      min-width: var(--media-settings-menu-min-width, 160px);
1288      border-radius: 2px 2px 0 0;
1289      overflow: hidden;
1290    }
1291
1292    :host([role="menu"]) {
1293      
1294      justify-content: end;
1295    }
1296
1297    slot:not([name]) {
1298      justify-content: var(--media-settings-menu-justify-content);
1299      flex-direction: var(--media-settings-menu-flex-direction, column);
1300      overflow: visible;
1301    }
1302
1303    #container.has-expanded {
1304      --media-settings-menu-item-opacity: 0;
1305    }
1306  </style>
1307`;class cP extends ls{get anchorElement(){return this.anchor!=="auto"?super.anchorElement:Hr(this).querySelector("media-settings-menu-button")}}dZ(cP,"template",lP);Ee.customElements.get("media-settings-menu")||Ee.customElements.define("media-settings-menu",cP);const dP=dt.createElement("template");dP.innerHTML=`
1308  <slot name="icon">
1309    <svg aria-hidden="true" viewBox="0 0 24 24">
1310      <path d="M4.5 14.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm7.5 0a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
1311    </svg>
1312  </slot>
1313`;class fZ extends tc{static get observedAttributes(){return[...super.observedAttributes,"target"]}constructor(){super({slotTemplate:dP})}connectedCallback(){super.connectedCallback(),this.setAttribute("aria-label",Ji.SETTINGS())}get invokeTargetElement(){return this.invokeTarget!=null?super.invokeTargetElement:Hr(this).querySelector("media-settings-menu")}}Ee.customElements.get("media-settings-menu-button")||Ee.customElements.define("media-settings-menu-button",fZ);var hZ=Object.defineProperty,pZ=(t,e,n)=>e in t?hZ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mZ=(t,e,n)=>(pZ(t,e+"",n),n),XS;const $m=dt.createElement("template");$m.innerHTML=K0.template.innerHTML+`
1314  <style>
1315    slot:not([name="submenu"]) {
1316      opacity: var(--media-settings-menu-item-opacity, var(--media-menu-item-opacity));
1317    }
1318
1319    :host([aria-expanded="true"]:hover) {
1320      background: transparent;
1321    }
1322  </style>
1323`;(XS=$m.content)!=null&&XS.querySelector&&($m.content.querySelector('slot[name="suffix"]').innerHTML=`
1324    <svg aria-hidden="true" viewBox="0 0 20 24">
1325      <path d="m8.12 17.585-.742-.669 4.2-4.665-4.2-4.666.743-.669 4.803 5.335-4.803 5.334Z"/>
1326    </svg>
1327  `);class fP extends K0{}mZ(fP,"template",$m);Ee.customElements.get("media-settings-menu-item")||Ee.customElements.define("media-settings-menu-item",fP);var hP=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},vv=(t,e,n)=>(hP(t,e,"read from private field"),n?n.call(t):e.get(t)),gZ=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},vZ=(t,e,n,i)=>(hP(t,e,"write to private field"),e.set(t,n),n),Zu;const Sr={REMAINING:"remaining",SHOW_DURATION:"showduration",NO_TOGGLE:"notoggle"},YS=[...Object.values(Sr),ne.MEDIA_CURRENT_TIME,ne.MEDIA_DURATION,ne.MEDIA_SEEKABLE],KS=["Enter"," "],_Z="&nbsp;/&nbsp;",ZS=(t,{timesSep:e=_Z}={})=>{var n,i;const r=t.hasAttribute(Sr.REMAINING),a=t.hasAttribute(Sr.SHOW_DURATION),s=(n=t.mediaCurrentTime)!=null?n:0,[,o]=(i=t.mediaSeekable)!=null?i:[];let u=0;Number.isFinite(t.mediaDuration)?u=t.mediaDuration:Number.isFinite(o)&&
1327(u=o);const c=qo(r?0-(u-s):s);return a?`${c}${e}${qo(u)}`:c},bZ="video not loaded, unknown time.",yZ=t=>{var e;const n=t.mediaCurrentTime,[,i]=(e=t.mediaSeekable)!=null?e:[];let r=null;if(Number.isFinite(t.mediaDuration)?r=t.mediaDuration:Number.isFinite(i)&&(r=i),n==null||r===null){t.setAttribute("aria-valuetext",bZ);return}const a=t.hasAttribute(Sr.REMAINING),s=t.hasAttribute(Sr.SHOW_DURATION),o=cd(a?0-(r-n):n);if(!s){t.setAttribute("aria-valuetext",o);return}const u=cd(r),c=`${o} of ${u}`;t.setAttribute("aria-valuetext",c)};class EZ extends yf{constructor(){super(),gZ(this,Zu,void 0),vZ(this,Zu,this.shadowRoot.querySelector("slot")),vv(this,Zu).innerHTML=`${ZS(this)}`}static get observedAttributes(){return[...super.observedAttributes,...YS,"disabled"]}connectedCallback(){const{style:e}=Nn(this.shadowRoot,":host(:hover:not([notoggle]))");e.setProperty("cursor","pointer"),e.setProperty("background","var(--media-control-hover-background, rgba(50 50 70 / .7))"),this.hasAttribute("disabled")||this.enable(),this.setAttribute("role","progressbar"),this.setAttribute("aria-label",Ji.PLAYBACK_TIME());const n=i=>{const{key:r}=i;if(!KS.includes(r)){this.removeEventListener("keyup",n);return}this.toggleTimeDisplay()};this.addEventListener("keydown",i=>{const{metaKey:r,altKey:a,key:s}=i;if(r||a||!KS.includes(s)){this.removeEventListener("keyup",n);return}this.addEventListener("keyup",n)}),this.addEventListener("click",this.toggleTimeDisplay),super.connectedCallback()}toggleTimeDisplay(){this.noToggle||(this.hasAttribute("remaining")?this.removeAttribute("remaining"):this.setAttribute("remaining",""))}disconnectedCallback(){this.disable(),super.disconnectedCallback()}attributeChangedCallback(e,n,i){YS.includes(e)?this.update():e==="disabled"&&i!==n&&(i==null?this.enable():this.disable()),super.attributeChangedCallback(e,n,i)}enable(){this.tabIndex=0}disable(){this.tabIndex=-1}get remaining(){return Qn(this,Sr.REMAINING)}set remaining(e){ei(this,Sr.REMAINING,e)}get showDuration(){return Qn(this,Sr.SHOW_DURATION)}set showDuration(e){ei(this,Sr.SHOW_DURATION,e)}get noToggle(){return Qn(this,Sr.NO_TOGGLE)}set noToggle(e){ei(this,Sr.NO_TOGGLE,e)}get mediaDuration(){return Ln(this,ne.MEDIA_DURATION)}set mediaDuration(e){ai(this,ne.MEDIA_DURATION,e)}get mediaCurrentTime(){return Ln(this,ne.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){ai(this,ne.MEDIA_CURRENT_TIME,e)}get mediaSeekable(){const e=this.getAttribute(ne.MEDIA_SEEKABLE);if(e)return e.split(":").map(n=>+n)}set mediaSeekable(e){if(e==null){this.removeAttribute(ne.MEDIA_SEEKABLE);return}this.setAttribute(ne.MEDIA_SEEKABLE,e.join(":"))}update(){const e=ZS(this);yZ(this),e!==vv(this,Zu).innerHTML&&(vv(this,Zu).innerHTML=e)}}Zu=new WeakMap;Ee.customElements.get("media-time-display")||Ee.customElements.define("media-time-display",EZ);var pP=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Yn=(t,e,n)=>(pP(t,e,"read from private field"),e.get(t)),qr=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},qi=(t,e,n,i)=>(pP(t,e,"write to private field"),e.set(t,n),n),xZ=(t,e,n,i)=>({set _(r){qi(t,e,r)},get _(){return Yn(t,e)}}),Ju,Hp,Qu,$c,zp,$p,Wp,el,Co,Gp;class AZ{constructor(e,n,i){qr(this,Ju,void 0),qr(this,Hp,void 0),qr(this,Qu,void 0),qr(this,$c,void 0),qr(this,zp,void 0),qr(this,$p,void 0),qr(this,Wp,void 0),qr(this,el,void 0),qr(this,Co,0),qr(this,Gp,(r=performance.now())=>{qi(this,Co,requestAnimationFrame(Yn(this,Gp))),qi(this,$c,performance.now()-Yn(this,Qu));const a=1e3/this.fps;if(Yn(this,$c)>a){qi(this,Qu,r-Yn(this,$c)%a);const s=1e3/((r-Yn(this,Hp))/++xZ(this,zp)._),o=(r-Yn(this,$p))/1e3/this.duration;let u=Yn(this,Wp)+o*this.playbackRate;u-Yn(this,Ju).valueAsNumber>0?qi(this,el,this.playbackRate/this.duration/s):(qi(this,el,.995*Yn(this,el)),u=Yn(this,Ju).valueAsNumber+Yn(this,el)),this.callback(u)}}),qi(this,Ju,e),this.callback=n,this.fps=i}start(){Yn(this,Co)===0&&(qi(this,Qu,performance.now()),qi(this,Hp,Yn(this,Qu)),qi(this,zp,0),Yn(this,Gp).call(this))}
1327stop(){Yn(this,Co)!==0&&(cancelAnimationFrame(Yn(this,Co)),qi(this,Co,0))}update({start:e,duration:n,playbackRate:i}){const r=e-Yn(this,Ju).valueAsNumber,a=Math.abs(n-this.duration);(r>0||r<-.03||a>=.5)&&this.callback(e),qi(this,Wp,e),qi(this,$p,performance.now()),this.duration=n,this.playbackRate=i}}Ju=new WeakMap;Hp=new WeakMap;Qu=new WeakMap;$c=new WeakMap;zp=new WeakMap;$p=new WeakMap;Wp=new WeakMap;el=new WeakMap;Co=new WeakMap;Gp=new WeakMap;var yy=(t,e,n)=>{if(!e.has(t))throw TypeError("Cannot "+n)},Vn=(t,e,n)=>(yy(t,e,"read from private field"),n?n.call(t):e.get(t)),jn=(t,e,n)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,n)},ia=(t,e,n,i)=>(yy(t,e,"write to private field"),e.set(t,n),n),hi=(t,e,n)=>(yy(t,e,"access private method"),n),tl,Zo,Wm,gd,Gm,qp,Gd,qd,nl,il,Wc,Ey,mP,l2,qm,xy,jm,Ay,Xm,Sy,c2,gP,jd,Ym,d2,vP;const SZ="video not loaded, unknown time.",TZ=t=>{const e=t.range,n=cd(+bP(t)),i=cd(+t.mediaSeekableEnd),r=n&&i?`${n} of ${i}`:SZ;e.setAttribute("aria-valuetext",r)},_P=dt.createElement("template");_P.innerHTML=`
1328  <style>
1329    :host {
1330      --media-box-border-radius: 4px;
1331      --media-box-padding-left: 10px;
1332      --media-box-padding-right: 10px;
1333      --media-preview-border-radius: var(--media-box-border-radius);
1334      --media-box-arrow-offset: var(--media-box-border-radius);
1335      --_control-background: var(--media-control-background, var(--media-secondary-color, rgb(20 20 30 / .7)));
1336      --_preview-background: var(--media-preview-background, var(--_control-background));
1337
1338      
1339      contain: layout;
1340    }
1341
1342    #highlight {
1343      background: var(--media-time-range-buffered-color, rgb(255 255 255 / .4));
1344    }
1345
1346    #preview-rail,
1347    #current-rail {
1348      width: 100%;
1349      position: absolute;
1350      left: 0;
1351      bottom: 100%;
1352      pointer-events: none;
1353      will-change: transform;
1354    }
1355
1356    [part~="box"] {
1357      width: min-content;
1358      
1359      position: absolute;
1360      bottom: 100%;
1361      flex-direction: column;
1362      align-items: center;
1363      transform: translateX(-50%);
1364    }
1365
1366    [part~="current-box"] {
1367      display: var(--media-current-box-display, var(--media-box-display, flex));
1368      margin: var(--media-current-box-margin, var(--media-box-margin, 0 0 5px));
1369      visibility: hidden;
1370    }
1371
1372    [part~="preview-box"] {
1373      display: var(--media-preview-box-display, var(--media-box-display, flex));
1374      margin: var(--media-preview-box-margin, var(--media-box-margin, 0 0 5px));
1375      transition-property: var(--media-preview-transition-property, visibility, opacity);
1376      transition-duration: var(--media-preview-transition-duration-out, .25s);
1377      transition-delay: var(--media-preview-transition-delay-out, 0s);
1378      visibility: hidden;
1379      opacity: 0;
1380    }
1381
1382    :host(:is([${ne.MEDIA_PREVIEW_IMAGE}], [${ne.MEDIA_PREVIEW_TIME}])[dragging]) [part~="preview-box"] {
1383      transition-duration: var(--media-preview-transition-duration-in, .5s);
1384      transition-delay: var(--media-preview-transition-delay-in, .25s);
1385      visibility: visible;
1386      opacity: 1;
1387    }
1388
1389    @media (hover: hover) {
1390      :host(:is([${ne.MEDIA_PREVIEW_IMAGE}], [${ne.MEDIA_PREVIEW_TIME}]):hover) [part~="preview-box"] {
1391        transition-duration: var(--media-preview-transition-duration-in, .5s);
1392        transition-delay: var(--media-preview-transition-delay-in, .25s);
1393        visibility: visible;
1394        opacity: 1;
1395      }
1396    }
1397
1398    media-preview-thumbnail,
1399    ::slotted(media-preview-thumbnail) {
1400      visibility: hidden;
1401      
1402      transition: visibility 0s .25s;
1403      transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1404      background: var(--media-preview-thumbnail-background, var(--_preview-background));
1405      box-shadow: var(--media-preview-thumbnail-box-shadow, 0 0 4px rgb(0 0 0 / .2));
1406      max-width: var(--media-preview-thumbnail-max-width, 180px);
1407      max-height: var(--media-preview-thumbnail-max-height, 160px);
1408      min-width: var(--media-preview-thumbnail-min-width, 120px);
1409      min-height: var(--media-preview-thumbnail-min-height, 80px);
1410      border: var(--media-preview-thumbnail-border);
1411      border-radius: var(--media-preview-thumbnail-border-radius,
1412        var(--media-preview-border-radius) var(--media-preview-border-radius) 0 0);
1413    }
1414
1415    :host([${ne.MEDIA_PREVIEW_IMAGE}][dragging]) media-preview-thumbnail,
1416    :host([${ne.MEDIA_PREVIEW_IMAGE}][dragging]) ::slotted(media-preview-thumbnail) {
1417      transition-delay: var(--media-preview-transition-delay-in, .25s);
1418      visibility: visible;
1419    }
1420
1421    @media (hover: hover) {
1422      :host([${ne.MEDIA_PREVIEW_IMAGE}]:hover) media-preview-thumbnail,
1423      :host([${ne.MEDIA_PREVIEW_IMAGE}]:hover) ::slotted(media-preview-thumbnail) {
1424        transition-delay: var(--media-preview-transition-delay-in, .25s);
1425        visibility: visible;
1426      }
1427
1428      :host([${ne.MEDIA_PREVIEW_TIME}]:hover) {
1429        --media-time-range-hover-display: block;
1430      }
1431    }
1432
1433    media-preview-chapter-display,
1434    ::slotted(media-preview-chapter-display) {
1435      font-size: var(--media-font-size, 13px);
1436      line-height: 17px;
1437      min-width: 0;
1438      visibility: hidden;
1439      
1440      transition: min-width 0s, border-radius 0s, margin 0s, padding 0s, visibility 0s;
1441      transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1442      background: var(--media-preview-chapter-background, var(--_preview-background));
1443      border-radius: var(--media-preview-chapter-border-radius,
1444        var(--media-preview-border-radius) var(--media-preview-border-radius)
1445        var(--media-preview-border-radius) var(--media-preview-border-radius));
1446      padding: var(--media-preview-chapter-padding, 3.5px 9px);
1447      margin: var(--media-preview-chapter-margin, 0 0 5px);
1448      text-shadow: var(--media-preview-chapter-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1449    }
1450
1451    :host([${ne.MEDIA_PREVIEW_IMAGE}]) media-preview-chapter-display,
1452    :host([${ne.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-chapter-display) {
1453      transition-delay: var(--media-preview-transition-delay-in, .25s);
1454      border-radius: var(--media-preview-chapter-border-radius, 0);
1455      padding: var(--media-preview-chapter-padding, 3.5px 9px 0);
1456      margin: var(--media-preview-chapter-margin, 0);
1457      min-width: 100%;
1458    }
1459
1460    media-preview-chapter-display[${ne.MEDIA_PREVIEW_CHAPTER}],
1461    ::slotted(media-preview-chapter-display[${ne.MEDIA_PREVIEW_CHAPTER}]) {
1462      visibility: visible;
1463    }
1464
1465    media-preview-chapter-display:not([aria-valuetext]),
1466    ::slotted(media-preview-chapter-display:not([aria-valuetext])) {
1467      display: none;
1468    }
1469
1470    media-preview-time-display,
1471    ::slotted(media-preview-time-display),
1472    media-time-display,
1473    ::slotted(media-time-display) {
1474      font-size: var(--media-font-size, 13px);
1475      line-height: 17px;
1476      min-width: 0;
1477      
1478      transition: min-width 0s, border-radius 0s;
1479      transition-delay: calc(var(--media-preview-transition-delay-out, 0s) + var(--media-preview-transition-duration-out, .25s));
1480      background: var(--media-preview-time-background, var(--_preview-background));
1481      border-radius: var(--media-preview-time-border-radius,
1482        var(--media-preview-border-radius) var(--media-preview-border-radius)
1483        var(--media-preview-border-radius) var(--media-preview-border-radius));
1484      padding: var(--media-preview-time-padding, 3.5px 9px);
1485      margin: var(--media-preview-time-margin, 0);
1486      text-shadow: var(--media-preview-time-text-shadow, 0 0 4px rgb(0 0 0 / .75));
1487      transform: translateX(min(
1488        max(calc(50% - var(--_box-width) / 2),
1489        calc(var(--_box-shift, 0))),
1490        calc(var(--_box-width) / 2 - 50%)
1491      ));
1492    }
1493
1494    :host([${ne.MEDIA_PREVIEW_IMAGE}]) media-preview-time-display,
1495    :host([${ne.MEDIA_PREVIEW_IMAGE}]) ::slotted(media-preview-time-display) {
1496      transition-delay: var(--media-preview-transition-delay-in, .25s);
1497      border-radius: var(--media-preview-time-border-radius,
1498        0 0 var(--media-preview-border-radius) var(--media-preview-border-radius));
1499      min-width: 100%;
1500    }
1501
1502    :host([${ne.MEDIA_PREVIEW_TIME}]:hover) {
1503      --media-time-range-hover-display: block;
1504    }
1505
1506    [part~="arrow"],
1507    ::slotted([part~="arrow"]) {
1508      display: var(--media-box-arrow-display, inline-block);
1509      transform: translateX(min(
1510        max(calc(50% - var(--_box-width) / 2 + var(--media-box-arrow-offset)),
1511        calc(var(--_box-shift, 0))),
1512        calc(var(--_box-width) / 2 - 50% - var(--media-box-arrow-offset))
1513      ));
1514      
1515      border-color: transparent;
1516      border-top-color: var(--media-box-arrow-background, var(--_control-background));
1517      border-width: var(--media-box-arrow-border-width,
1518        var(--media-box-arrow-height, 5px) var(--media-box-arrow-width, 6px) 0);
1519      border-style: solid;
1520      justify-content: center;
1521      height: 0;
1522    }
1523  </style>
1524  <div id="preview-rail">
1525    <slot name="preview" part="box preview-box">
1526      <media-preview-thumbnail></media-preview-thumbnail>
1527      <media-preview-chapter-display></media-preview-chapter-display>
1528      <media-preview-time-display></media-preview-time-display>
1529      <slot name="preview-arrow"><div part="arrow"></div></slot>
1530    </slot>
1531  </div>
1532  <div id="current-rail">
1533    <slot name="current" part="box current-box">
1534      
1535    </slot>
1536  </div>
1537`;const Th=(t,e=t.mediaCurrentTime)=>{const n=Number.isFinite(t.mediaSeekableStart)?t.mediaSeekableStart:0,i=Number.isFinite(t.mediaDuration)?t.mediaDuration:t.mediaSeekableEnd;if(Number.isNaN(i))return 0;const r=(e-n)/(i-n);return Math.max(0,Math.min(r,1))},bP=(t,e=t.range.valueAsNumber)=>{const n=Number.isFinite(t.mediaSeekableStart)?t.mediaSeekableStart:0,i=Number.isFinite(t.mediaDuration)?t.mediaDuration:t.mediaSeekableEnd;return Number.isNaN(i)?0:e*(i-n)+n};class wZ extends _y{constructor(){super(),jn(this,il),jn(this,Ey),jn(this,qm),jn(this,jm),jn(this,Xm),jn(this,c2),jn(this,jd),jn(this,d2),jn(this,tl,void 0),jn(this,Zo,void 0),jn(this,Wm,void 0),jn(this,gd,void 0),jn(this,Gm,void 0),jn(this,qp,void 0),jn(this,Gd,void 0),jn(this,qd,void 0),jn(this,nl,void 0),jn(this,l2,n=>{this.dragging||(this.range.valueAsNumber=n,this.updateBar())}),this.container.appendChild(_P.content.cloneNode(!0)),ia(this,Wm,this.shadowRoot.querySelectorAll('[part~="box"]')),ia(this,Gm,this.shadowRoot.querySelector('[part~="preview-box"]')),ia(this,qp,this.shadowRoot.querySelector('[part~="current-box"]'));const e=getComputedStyle(this);ia(this,Gd,parseInt(e.getPropertyValue("--media-box-padding-left"))),ia(this,qd,parseInt(e.getPropertyValue("--media-box-padding-right"))),ia(this,Zo,new AZ(this.range,Vn(this,l2),60))}static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_PAUSED,ne.MEDIA_DURATION,ne.MEDIA_SEEKABLE,ne.MEDIA_CURRENT_TIME,ne.MEDIA_PREVIEW_IMAGE,ne.MEDIA_PREVIEW_TIME,ne.MEDIA_PREVIEW_CHAPTER,ne.MEDIA_BUFFERED,ne.MEDIA_PLAYBACK_RATE,ne.MEDIA_LOADING,ne.MEDIA_ENDED]}connectedCallback(){var e;super.connectedCallback(),this.range.setAttribute("aria-label",Ji.SEEK()),hi(this,il,Wc).call(this),ia(this,tl,this.getRootNode()),(e=Vn(this,tl))==null||e.addEventListener("transitionstart",this)}disconnectedCallback(){var e;super.disconnectedCallback(),hi(this,il,Wc).call(this),(e=Vn(this,tl))==null||e.removeEventListener("transitionstart",this),ia(this,tl,null)}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),n!=i&&(e===ne.MEDIA_CURRENT_TIME||e===ne.MEDIA_PAUSED||e===ne.MEDIA_ENDED||e===ne.MEDIA_LOADING||e===ne.MEDIA_DURATION||e===ne.MEDIA_SEEKABLE?(Vn(this,Zo).update({start:Th(this),duration:this.mediaSeekableEnd-this.mediaSeekableStart,playbackRate:this.mediaPlaybackRate}),hi(this,il,Wc).call(this),TZ(this)):e===ne.MEDIA_BUFFERED&&this.updateBufferedBar(),(e===ne.MEDIA_DURATION||e===ne.MEDIA_SEEKABLE)&&(this.mediaChaptersCues=Vn(this,nl),this.updateBar()))}get mediaChaptersCues(){return Vn(this,nl)}set mediaChaptersCues(e){var n;ia(this,nl,e),this.updateSegments((n=Vn(this,nl))==null?void 0:n.map(i=>({start:Th(this,i.startTime),end:Th(this,i.endTime)})))}get mediaPaused(){return Qn(this,ne.MEDIA_PAUSED)}set mediaPaused(e){ei(this,ne.MEDIA_PAUSED,e)}get mediaLoading(){return Qn(this,ne.MEDIA_LOADING)}set mediaLoading(e){ei(this,ne.MEDIA_LOADING,e)}get mediaDuration(){return Ln(this,ne.MEDIA_DURATION)}set mediaDuration(e){ai(this,ne.MEDIA_DURATION,e)}get mediaCurrentTime(){return Ln(this,ne.MEDIA_CURRENT_TIME)}set mediaCurrentTime(e){ai(this,ne.MEDIA_CURRENT_TIME,e)}get mediaPlaybackRate(){return Ln(this,ne.MEDIA_PLAYBACK_RATE,1)}set mediaPlaybackRate(e){ai(this,ne.MEDIA_PLAYBACK_RATE,e)}get mediaBuffered(){const e=this.getAttribute(ne.MEDIA_BUFFERED);return e?e.split(" ").map(n=>n.split(":").map(i=>+i)):[]}set mediaBuffered(e){if(!e){this.removeAttribute(ne.MEDIA_BUFFERED);return}const n=e.map(i=>i.join(":")).join(" ");this.setAttribute(ne.MEDIA_BUFFERED,n)}get mediaSeekable(){const e=this.getAttribute(ne.MEDIA_SEEKABLE);if(e)return e.split(":").map(n=>+n)}set mediaSeekable(e){if(e==null){this.removeAttribute(ne.MEDIA_SEEKABLE);return}this.setAttribute(ne.MEDIA_SEEKABLE,e.join(":"))}get mediaSeekableEnd(){var e;const[,n=this.mediaDuration]=(e=this.mediaSeekable)!=null?e:[];return n}get mediaSeekableStart(){var e;const[n=0]=(e=this.mediaSeekable)!=null?e:[];return n}get mediaPreviewImage(){return bi(this,ne.MEDIA_PREVIEW_IMAGE)}set mediaPreviewImage(e){yi(this,ne.MEDIA_PREVIEW_IMAGE,e)}get mediaPreviewTime(){return Ln(this,ne.MEDIA_PREVIEW_TIME)}set mediaPreviewTime(e){ai(this,ne.MEDIA_PREVIEW_TIME,e)}get mediaEnded(){return Qn(this,ne.MEDIA_ENDED)}set mediaEnded(e){ei(this,ne.MEDIA_ENDED,e)}updateBar(){super.updateBar(),this.updateBufferedBar(),this.updateCurrentBox()}updateBufferedBar(){var e;const n=this.mediaBuffered;if(!n.length)return;let i;if(this.mediaEnded)i=1;else{const a=this.mediaCurrentTime,[,s=this.mediaSeekableStart]=(e=n.find(([o,u])=>o<=a&&a<=u))!=null?e:[];i=Th(this,s)}const{style:r}=Nn(this.shadowRoot,"#highlight");r.setProperty("width",`${i*100}%`)}updateCurrentBox(){if(!this.shadowRoot.querySelector('slot[name="current"]').assignedElements().length)return;const n=Nn(this.shadowRoot,"#current-rail"),i=Nn(this.shadowRoot,'[part~="current-box"]'),r=hi(this,qm,xy).call(this,Vn(this,qp)),a=hi(this,jm,Ay).call(this,r,this.range.valueAsNumber),s=hi(this,Xm,Sy).call(this,r,this.range.valueAsNumber);n.style.transform=`translateX(${a}
1537)`,n.style.setProperty("--_range-width",`${r.range.width}`),i.style.setProperty("--_box-shift",`${s}`),i.style.setProperty("--_box-width",`${r.box.width}px`),i.style.setProperty("visibility","initial")}handleEvent(e){switch(super.handleEvent(e),e.type){case"input":hi(this,d2,vP).call(this);break;case"pointermove":hi(this,c2,gP).call(this,e);break;case"pointerup":case"pointerleave":hi(this,jd,Ym).call(this,null);break;case"transitionstart":us(e.target,this)&&setTimeout(()=>hi(this,il,Wc).call(this),0);break}}}tl=new WeakMap;Zo=new WeakMap;Wm=new WeakMap;gd=new WeakMap;Gm=new WeakMap;qp=new WeakMap;Gd=new WeakMap;qd=new WeakMap;nl=new WeakMap;il=new WeakSet;Wc=function(){hi(this,Ey,mP).call(this)?Vn(this,Zo).start():Vn(this,Zo).stop()};Ey=new WeakSet;mP=function(){return this.isConnected&&!this.mediaPaused&&!this.mediaLoading&&!this.mediaEnded&&this.mediaSeekableEnd>0&&NX(this)};l2=new WeakMap;qm=new WeakSet;xy=function(t){var e;const i=((e=this.getAttribute("bounds")?bf(this,`#${this.getAttribute("bounds")}`):this.parentElement)!=null?e:this).getBoundingClientRect(),r=this.range.getBoundingClientRect(),a=t.offsetWidth,s=-(r.left-i.left-a/2),o=i.right-r.left-a/2;return{box:{width:a,min:s,max:o},bounds:i,range:r}};jm=new WeakSet;Ay=function(t,e){let n=`${e*100}%`;const{width:i,min:r,max:a}=t.box;if(!i)return n;if(Number.isNaN(r)||(n=`max(${`calc(1 / var(--_range-width) * 100 * ${r}% + var(--media-box-padding-left))`}, ${n})`),!Number.isNaN(a)){const o=`calc(1 / var(--_range-width) * 100 * ${a}% - var(--media-box-padding-right))`;n=`min(${n}, ${o})`}return n};Xm=new WeakSet;Sy=function(t,e){const{width:n,min:i,max:r}=t.box,a=e*t.range.width;if(a<i+Vn(this,Gd)){const s=t.range.left-t.bounds.left-Vn(this,Gd);return`${a-n/2+s}px`}if(a>r-Vn(this,qd)){const s=t.bounds.right-t.range.right-Vn(this,qd);return`${a+n/2-s-t.range.width}px`}return 0};c2=new WeakSet;gP=function(t){const e=[...Vn(this,Wm)].some(l=>t.composedPath().includes(l));if(!this.dragging&&(e||!t.composedPath().includes(this))){hi(this,jd,Ym).call(this,null);return}const n=this.mediaSeekableEnd;if(!n)return;const i=Nn(this.shadowRoot,"#preview-rail"),r=Nn(this.shadowRoot,'[part~="preview-box"]'),a=hi(this,qm,xy).call(this,Vn(this,Gm));let s=(t.clientX-a.range.left)/a.range.width;s=Math.max(0,Math.min(1,s));const o=hi(this,jm,Ay).call(this,a,s),u=hi(this,Xm,Sy).call(this,a,s);i.style.transform=`translateX(${o})`,i.style.setProperty("--_range-width",`${a.range.width}`),r.style.setProperty("--_box-shift",`${u}`),r.style.setProperty("--_box-width",`${a.box.width}px`);const c=Math.round(Vn(this,gd))-Math.round(s*n);Math.abs(c)<1&&s>.01&&s<.99||(ia(this,gd,s*n),hi(this,jd,Ym).call(this,Vn(this,gd)))};jd=new WeakSet;Ym=function(t){this.dispatchEvent(new Ee.CustomEvent(rt.MEDIA_PREVIEW_REQUEST,{composed:!0,bubbles:!0,detail:t}))};d2=new WeakSet;vP=function(){Vn(this,Zo).stop();const t=bP(this);this.dispatchEvent(new Ee.CustomEvent(rt.MEDIA_SEEK_REQUEST,{composed:!0,bubbles:!0,detail:t}))};Ee.customElements.get("media-time-range")||Ee.customElements.define("media-time-range",wZ);const MZ=1,CZ=t=>t.mediaMuted?0:t.mediaVolume,DZ=({value:t})=>`${Math.round(t*100)}%`;class LZ extends _y{static get observedAttributes(){return[...super.observedAttributes,ne.MEDIA_VOLUME,ne.MEDIA_MUTED,ne.MEDIA_VOLUME_UNAVAILABLE]}constructor(){super(),this.range.addEventListener("input",()=>{const e=this.range.value,n=new Ee.CustomEvent(rt.MEDIA_VOLUME_REQUEST,{composed:!0,bubbles:!0,detail:e});this.dispatchEvent(n)})}connectedCallback(){super.connectedCallback(),this.range.setAttribute("aria-label",Ji.VOLUME())}attributeChangedCallback(e,n,i){super.attributeChangedCallback(e,n,i),(e===ne.MEDIA_VOLUME||e===ne.MEDIA_MUTED)&&(this.range.valueAsNumber=CZ(this),this.range.setAttribute("aria-valuetext",DZ(this.range)),this.updateBar())}get mediaVolume(){return Ln(this,ne.MEDIA_VOLUME,MZ)}set mediaVolume(e){ai(this,ne.MEDIA_VOLUME,e)}get mediaMuted(){return Qn(this,ne.MEDIA_MUTED)}set mediaMuted(e){ei(this,ne.MEDIA_MUTED,e)}get mediaVolumeUnavailable(){return bi(this,ne.MEDIA_VOLUME_UNAVAILABLE)}set mediaVolumeUnavailable(e){yi(this,ne.MEDIA_VOLUME_UNAVAILABLE,e)}}Ee.customElements.get("media-volume-range")||Ee.customElements.define("media-volume-range",LZ);const RZ={class:"click-text mediaButton",dark:""},IZ={__name:"PlayerMute",setup(t){return(e,n)=>{const i=vR;return tt(),_t("media-mute-button",RZ,[Ct(i,{slot:"icon","aria-hidden":"true","data-keen-slider-clickable":""})])}}},PZ={class:"playerBar"},kZ={class:"frame-full","data-keen-slider-clickable":""},OZ={__name:"PlayerBar",setup(t){return(e,n)=>{const i=IZ;return tt(),_t("div",PZ,[It("media-control-bar",kZ,[Yi(e.$slots,"left"),n[0]||(n[0]=It("media-time-range",null,null,-1)),Yi(e.$slots,"right"),Ct(i)]),n[1]||(n[1]=It("div",{class:"volume-container"},[It("media-volume-range",{class:"frame-full mobile-hidden"})],-1)),n[2]||(n[2]=It("div",{class:"playerBar__shadow"},null,-1))])}}},NZ=uf(bX),UZ=uf(OZ),FZ=["empty","minimal"],BZ=["src"],VZ={key:0},HZ={__name:"AudioMidiPlayer",props:{minimal:Boolean,headless:{type:Boolean,default:!1}},setup(t,{expose:e}){const n=t,{minimal:i}=W2(n),r=Le(null),a=Le(null),s=Le(!1),o=Le(0),u=Le(0),c=Ve(()=>r.value?.track?.url),l=Ve(()=>r.value?.midi?.url),d=Ve(()=>!c.value);function f(b){return r.value?.uid===b.uid}async function h(b){r.value=b,await Di(),m()}function g(){a.value&&(s.value=!a.value.paused,o.value=a.value.duration||0)}function v(b){u.value=b.detail}function m(){a.value.paused?a.value.play():a.value.pause()}let p=null;function y(b){b?a.value.pause():p?a.value.play():a.value.pause(),p=s.value}function _(b){a.value.currentTime=b}return e({player:a,togglePlay:m,playing:s}),(b,x)=>{const w=NZ,D=UZ;return tt(),_t(Zt,null,[Yi(b.$slots,"default",{handleTrack:h,matchActive:f,togglePlay:m,playing:ze(s),minimal:ze(i)}),zw(It("div",Cr({class:"midiDom",empty:("showAttr"in b?b.showAttr:ze(lR))(ze(d))},b.$attrs,{minimal:ze(i)}),[t.headless?Zi("",!0):(tt(),cn(w,{class:"midiDom__wheel",midi:ze(l),key:ze(l),duration:ze(o),playing:ze(s),time:ze(u),onDragstart:x[0]||(x[0]=O=>y(!0)),onDragging:_,onDragend:x[1]||(x[1]=O=>y(!1))}
1537,null,8,["midi","duration","playing","time"])),It("media-controller",{class:"midiDom__controls font-moyen",theme:"light",onMediahasplayed:g,onMediapaused:g,onMediaended:g,onMediacurrenttime:v,audio:""},[It("audio",{slot:"media",src:ze(c),ref_key:"$player",ref:a,crossorigin:""},null,8,BZ),Ct(D,null,{left:gi(()=>[ze(i)?Zi("",!0):(tt(),_t("media-play-button",VZ))]),_:1})],32)],16,FZ),[[Qk,!t.headless]])],64)}}};var Ac={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function zZ(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pc",e=V5();return"".concat(t).concat(e.replace("v-","").replaceAll("-","_"))}var JS=Ti.extend({name:"common"});function Xd(t){"@babel/helpers - typeof";return Xd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xd(t)}function $Z(t){return xP(t)||WZ(t)||EP(t)||yP()}function WZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Sc(t,e){return xP(t)||GZ(t,e)||EP(t,e)||yP()}function yP(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1538In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EP(t,e){if(t){if(typeof t=="string")return f2(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f2(t,e):void 0}}function f2(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}function GZ(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var i,r,a,s,o=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=a.call(n)).done)&&(o.push(i.value),o.length!==e);u=!0);}catch(l){c=!0,r=l}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}function xP(t){if(Array.isArray(t))return t}function QS(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Rt(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?QS(Object(n),!0).forEach(function(i){Gc(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):QS(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Gc(t,e,n){return(e=qZ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qZ(t){var e=jZ(t,"string");return Xd(e)=="symbol"?e:e+""}function jZ(t,e){if(Xd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Xd(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var XZ={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){Si.off("theme:change",this._loadCoreStyles),e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e,n){var i=this;Si.off("theme:change",this._themeScopedListener),e?(this._loadScopedThemeStyles(e),this._themeScopedListener=function(){return i._loadScopedThemeStyles(e)},this._themeChangeListener(this._themeScopedListener)):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,uid:void 0,$attrSelector:void 0,beforeCreate:function(){var e,n,i,r,a,s,o,u,c,l,d,f=(e=this.pt)===null||e===void 0?void 0:e._usept,h=f?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.n
1538ame]:void 0,g=f?(i=this.pt)===null||i===void 0||(i=i.value)===null||i===void 0?void 0:i[this.$.type.name]:this.pt;(r=g||h)===null||r===void 0||(r=r.hooks)===null||r===void 0||(a=r.onBeforeCreate)===null||a===void 0||a.call(r);var v=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,m=v?(o=this.$primevue)===null||o===void 0||(o=o.config)===null||o===void 0||(o=o.pt)===null||o===void 0?void 0:o.originalValue:void 0,p=v?(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0||(u=u.pt)===null||u===void 0?void 0:u.value:(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0?void 0:c.pt;(l=p||m)===null||l===void 0||(l=l[this.$.type.name])===null||l===void 0||(l=l.hooks)===null||l===void 0||(d=l.onBeforeCreate)===null||d===void 0||d.call(l),this.$attrSelector=zZ(),this.uid=this.$attrs.id||this.$attrSelector.replace("pc","pv_id_")},created:function(){this._hook("onCreated")},beforeMount:function(){var e;this.rootEl=WD(no(this.$el)?this.$el:(e=this.$el)===null||e===void 0?void 0:e.parentElement,"[".concat(this.$attrSelector,"]")),this.rootEl&&(this.rootEl.$pc=Rt({name:this.$.type.name,attr
1538Selector:this.$attrSelector},this.$params)),this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._removeThemeListeners(),this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),i=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n?.(),i?.()}},_mergeProps:function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Lb(e)?e.apply(void 0,i):Cr.apply(void 0,i)},_load:function(){Ac.isStyleNameLoaded("base")||(Ti.loadCSS(this.$styleOptions),this._loadGlobalStyles(),Ac.setLoadedStyleName("base")),this._loadThemeStyles()},_loadStyles:function(){this._load(),this._themeChangeListener(this._load)},_loadCoreStyles:function(){var e,n;!Ac.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(JS.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),Ac.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Qt(e)&&Ti.load(e,Rt({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!(this.isUnstyled||this.$theme==="none")){if(!xn.isStyleNameLoaded("common")){var i,r,a=((i=this.$style)===null||i===void 0||(r=i.getCommonTheme)===null||r===void 0?void 0:r.call(i))||{},s=a.primitive,o=a.semantic,u=a.global,c=a.style;Ti.load(s?.css,Rt({name:"primitive-variables"},this.$styleOptions)),Ti.load(o?.css,Rt({name:"semantic-variables"},this.$styleOptions)),Ti.load(u?.css,Rt({name:"global-variables"},this.$styleOptions)),Ti.loadStyle(Rt({name:"global-style"},this.$styleOptions),c),xn.setLoadedStyleName("common")}if(!xn.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var l,d,f,h,g=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},v=g.css,m=g.style;(f=this.$style)===null||f===void 0||f.load(v,Rt({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadStyle(Rt({name:"".concat(this.$style.name,"-style")},this.$styleOptions),m),xn.setLoadedStyleName(this.$style.name)}if(!xn.isStyleNameLoaded("layer-order")){var p,y,_=(p=this.$style)===null||p===void 0||(y=p.getLayerOrderThemeCSS)===null||y===void 0?void 0:y.call(p);Ti.load(_,Rt({name:"layer-order",first:!0},this.$styleOptions)),xn.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,i,r,a=((n=this.$style)===null||n===void 0||(i=n.getPresetTheme)===null||i===void 0?void 0:i.call(n,e,"[".concat(this.$attrSelector,"]")))||{},s=a.css,o=(r=this.$style)===null||r===void 0?void 0:r.load(s,Rt({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=o.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};Ac.clearLoadedStyleNames(),Si.on("theme:change",e)},_removeThemeListeners:function(){Si.off("theme:change",this._loadCoreStyles),Si.off("theme:change",this._load),Si.off("theme:change",this._themeScopedListener)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return VD(e,n,i)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(i)&&!!r[i.split(".")[0]],o=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},u=o.mergeSections,c=u===void 0?!0:u,l=o.mergeProps,d=l===void 0?!1:l,f=a?s?this._useGlobalPT(this._getPTClassValue,i,r):this._useDefaultPT(this._getPTClassValue,i,r):void 0,h=s?void 0:this._getPTSelf(n,this._getPTClassValue,i,Rt(Rt({},r),{},{global:f||{}})),g=this._getPTDatasets(i);
1538return c||!c&&h?d?this._mergeProps(d,f,h,g):Rt(Rt(Rt({},f),h),g):Rt(Rt({},h),g)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return Cr(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(i)),this._usePT.apply(this,[this.$_attrsPT].concat(i)))},_getPTDatasets:function(){var e,n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",a=i==="root"&&Qt((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return i!=="transition"&&Rt(Rt({},i==="root"&&Rt(Rt(Gc({},"".concat(r,"name"),Ro(a?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),a&&Gc({},"".concat(r,"extend"),Ro(this.$.type.name))),{},Gc({},"".concat(this.$attrSelector),""))),{},Gc({},"".concat(r,"section"),Ro(i)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Or(e)||rz(e)?{class:e}:e},_getPT:function(e){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,a=function(o){var u,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=r?r(o):o,d=Ro(i),f=Ro(n.$name);return(u=c?d!==f?l?.[d]:void 0:l?.[d])!==null&&u!==void 0?u:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:a(e.originalValue),value:a(e.value)}:a(e,!0)},_usePT:function(e,n,i,r){var a=function(v){return n(v,i,r)};if(e!=null&&e.hasOwnProperty("_usept")){var s,o=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},u=o.mergeSections,c=u===void 0?!0:u,l=o.mergeProps,d=l===void 0?!1:l,f=a(e.originalValue),h=a(e.value);return f===void 0&&h===void 0?void 0:Or(h)?h:Or(f)?f:c||!c&&h?d?this._mergeProps(d,f,h):Rt(Rt({},f),h):h}return a(e)},_useGlobalPT:function(e,n,i){return this._usePT(this.globalPT,e,n,i)},_useDefaultPT:function(e,n,i){return this._usePT(this.defaultPT,e,n,i)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Rt(Rt({},this.$params),n))},ptmi:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Cr(this.$_attrsWithoutPT,this.ptm(n,i));return r?.hasOwnProperty("id")&&((e=r.id)!==null&&e!==void 0||(r.id=this.$id)),r},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Rt({instance:this},i),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Rt(Rt({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,Rt(Rt({},this.$params),i)),a=this._getOptionValue(JS.inlineStyles,e,Rt(Rt({},this.$params),i));return[a,r]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return fr(i,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(i){return n._getOptionValue(i,n.$name,Rt({},n.$params))||fr(i,Rt({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$id:function(){return this.$attrs.id||this.uid},$inProps:function(){var e,n=Object.keys(((e=this.$.vnode)===null||e===void 0?void 0:e.props)||{});return Object.fromEntries(Object.entries(this.$props).filter(function(i){var r=Sc(i,1),a=r[0];return n?.includes(a)}))},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return Rt(Rt({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config}
1538,$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e?.$props,state:e?.$data,attrs:e?.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Sc(e,1),i=n[0];return i?.startsWith("pt:")}).reduce(function(e,n){var i=Sc(n,2),r=i[0],a=i[1],s=r.split(":"),o=$Z(s),u=f2(o).slice(1);return u?.reduce(function(c,l,d,f){return!c[l]&&(c[l]=d===f.length-1?a:{}),c[l]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=Sc(e,1),i=n[0];return!(i!=null&&i.startsWith("pt:"))}).reduce(function(e,n){var i=Sc(n,2),r=i[0],a=i[1];return e[r]=a,e},{})}}},YZ={name:"BaseEditableHolder",extends:XZ,emits:["update:modelValue","value-change"],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue!==void 0?this.defaultValue:this.modelValue}},watch:{modelValue:{deep:!0,handler:function(e){this.d_value=e}},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var n,i;this.formField=((n=this.$pcForm)===null||n===void 0||(i=n.register)===null||i===void 0?void 0:i.call(n,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var n,i;this.formField=((n=this.$pcForm)===null||n===void 0||(i=n.register)===null||i===void 0?void 0:i.call(n,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}},$formValue:{immediate:!1,handler:function(e){var n;(n=this.$pcForm)!==null&&n!==void 0&&n.getFieldState(this.$formName)&&e!==this.d_value&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,n){var i,r;this.controlled&&(this.d_value=e,this.$emit("update:modelValue",e)),this.$emit("value-change",e),(i=(r=this.formField).onChange)===null||i===void 0||i.call(r,{originalEvent:n,value:e})},findNonEmpty:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.find(Qt)}},computed:{$filled:function(){return Qt(this.d_value)},$invalid:function(){var e,n;return!this.$formNovalidate&&this.findNonEmpty(this.invalid,(e=this.$pcFormField)===null||e===void 0||(e=e.$field)===null||e===void 0?void 0:e.invalid,(n=this.$pcForm)===null||n===void 0||(n=n.getFieldState(this.$formName))===null||n===void 0?void 0:n.invalid)},$formName:function(){var e;return this.$formNovalidate?void 0:this.name||((e=this.$formControl)===null||e===void 0?void 0:e.name)},$formControl:function(){var e;return this.formControl||((e=this.$pcFormField)===null||e===void 0?void 0:e.formControl)},$formNovalidate:function(){var e;return(e=this.$formControl)===null||e===void 0?void 0:e.novalidate},$formDefaultValue:function(){var e,n;return this.findNonEmpty(this.d_value,(e=this.$pcFormField)===null||e===void 0?void 0:e.initialValue,(n=this.$pcForm)===null||n===void 0||(n=n.initialValues)===null||n===void 0?void 0:n[this.$formName])},$formValue:function(){var e,n;return this.findNonEmpty((e=this.$pcFormField)===null||e===void 0||(e=e.$field)===null||e===void 0?void 0:e.value,(n=this.$pcForm)===null||n===void 0||(n=n.getFieldState(this.$formName))===null||n===void 0?void 0:n.value)},controlled:function(){return this.$inProps.hasOwnProperty("modelValue")||!this.$inProps.hasOwnProperty("modelValue")&&!this.$inProps.hasOwnProperty("defaultValue")},filled:function(){return this.$filled}}},KZ={name:"BaseInput",extends:YZ,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){var e;return(e=this.variant)!==null&&e!==void 0?e:this.$primevue.config.inputStyle||this.$primevue.config.inputVariant},$fluid:function(){var e;return(e=this.fluid)!==null&&e!==void 0?e:!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},ZZ=`
1539    .p-radiobutton {
1540        position: relative;
1541        display: inline-flex;
1542        user-select: none;
1543        vertical-align: bottom;
1544        width: dt('radiobutton.width');
1545        height: dt('radiobutton.height');
1546    }
1547
1548    .p-radiobutton-input {
1549        cursor: pointer;
1550        appearance: none;
1551        position: absolute;
1552        top: 0;
1553        inset-inline-start: 0;
1554        width: 100%;
1555        height: 100%;
1556        padding: 0;
1557        margin: 0;
1558        opacity: 0;
1559        z-index: 1;
1560        outline: 0 none;
1561        border: 1px solid transparent;
1562        border-radius: 50%;
1563    }
1564
1565    .p-radiobutton-box {
1566        display: flex;
1567        justify-content: center;
1568        align-items: center;
1569        border-radius: 50%;
1570        border: 1px solid dt('radiobutton.border.color');
1571        background: dt('radiobutton.background');
1572        width: dt('radiobutton.width');
1573        height: dt('radiobutton.height');
1574        transition:
1575            background dt('radiobutton.transition.duration'),
1576            color dt('radiobutton.transition.duration'),
1577            border-color dt('radiobutton.transition.duration'),
1578            box-shadow dt('radiobutton.transition.duration'),
1579            outline-color dt('radiobutton.transition.duration');
1580        outline-color: transparent;
1581        box-shadow: dt('radiobutton.shadow');
1582    }
1583
1584    .p-radiobutton-icon {
1585        transition-duration: dt('radiobutton.transition.duration');
1586        background: transparent;
1587        font-size: dt('radiobutton.icon.size');
1588        width: dt('radiobutton.icon.size');
1589        height: dt('radiobutton.icon.size');
1590        border-radius: 50%;
1591        backface-visibility: hidden;
1592        transform: translateZ(0) scale(0.1);
1593    }
1594
1595    .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
1596        border-color: dt('radiobutton.hover.border.color');
1597    }
1598
1599    .p-radiobutton-checked .p-radiobutton-box {
1600        border-color: dt('radiobutton.checked.border.color');
1601        background: dt('radiobutton.checked.background');
1602    }
1603
1604    .p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
1605        background: dt('radiobutton.icon.checked.color');
1606        transform: translateZ(0) scale(1, 1);
1607        visibility: visible;
1608    }
1609
1610    .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:hover) .p-radiobutton-box {
1611        border-color: dt('radiobutton.checked.hover.border.color');
1612        background: dt('radiobutton.checked.hover.background');
1613    }
1614
1615    .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box .p-radiobutton-icon {
1616        background: dt('radiobutton.icon.checked.hover.color');
1617    }
1618
1619    .p-radiobutton:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
1620        border-color: dt('radiobutton.focus.border.color');
1621        box-shadow: dt('radiobutton.focus.ring.shadow');
1622        outline: dt('radiobutton.focus.ring.width') dt('radiobutton.focus.ring.style') dt('radiobutton.focus.ring.color');
1623        outline-offset: dt('radiobutton.focus.ring.offset');
1624    }
1625
1626    .p-radiobutton-checked:not(.p-disabled):has(.p-radiobutton-input:focus-visible) .p-radiobutton-box {
1627        border-color: dt('radiobutton.checked.focus.border.color');
1628    }
1629
1630    .p-radiobutton.p-invalid > .p-radiobutton-box {
1631        border-color: dt('radiobutton.invalid.border.color');
1632    }
1633
1634    .p-radiobutton.p-variant-filled .p-radiobutton-box {
1635        background: dt('radiobutton.filled.background');
1636    }
1637
1638    .p-radiobutton.p-variant-filled.p-radiobutton-checked .p-radiobutton-box {
1639        background: dt('radiobutton.checked.background');
1640    }
1641
1642    .p-radiobutton.p-variant-filled:not(.p-disabled):has(.p-radiobutton-input:hover).p-radiobutton-checked .p-radiobutton-box {
1643        background: dt('radiobutton.checked.hover.background');
1644    }
1645
1646    .p-radiobutton.p-disabled {
1647        opacity: 1;
1648    }
1649
1650    .p-radiobutton.p-disabled .p-radiobutton-box {
1651        background: dt('radiobutton.disabled.background');
1652        border-color: dt('radiobutton.checked.disabled.border.color');
1653    }
1654
1655    .p-radiobutton-checked.p-disabled .p-radiobutton-box .p-radiobutton-icon {
1656        background: dt('radiobutton.icon.disabled.color');
1657    }
1658
1659    .p-radiobutton-sm,
1660    .p-radiobutton-sm .p-radiobutton-box {
1661        width: dt('radiobutton.sm.width');
1662        height: dt('radiobutton.sm.height');
1663    }
1664
1665    .p-radiobutton-sm .p-radiobutton-icon {
1666        font-size: dt('radiobutton.icon.sm.size');
1667        width: dt('radiobutton.icon.sm.size');
1668        height: dt('radiobutton.icon.sm.size');
1669    }
1670
1671    .p-radiobutton-lg,
1672    .p-radiobutton-lg .p-radiobutton-box {
1673        width: dt('radiobutton.lg.width');
1674        height: dt('radiobutton.lg.height');
1675    }
1676
1677    .p-radiobutton-lg .p-radiobutton-icon {
1678        font-size: dt('radiobutton.icon.lg.size');
1679        width: dt('radiobutton.icon.lg.size');
1680        height: dt('radiobutton.icon.lg.size');
1681    }
1682`,JZ={root:function(e){var n=e.instance,i=e.props;return["p-radiobutton p-component",{"p-radiobutton-checked":n.checked,"p-disabled":i.disabled,"p-invalid":n.$pcRadioButtonGroup?n.$pcRadioButtonGroup.$invalid:n.$invalid,"p-variant-filled":n.$variant==="filled","p-radiobutton-sm p-inputfield-sm":i.size==="small","p-radiobutton-lg p-inputfield-lg":i.size==="large"}]},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},QZ=Ti.extend({name:"radiobutton",style:ZZ,classes:JZ}),eJ={name:"BaseRadioButton",extends:KZ,props:{value:null,binary:Boolean,readonly:{type:Boolean,default:!1},tabindex:{type:Number,default:null},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:QZ,provide:function(){return{$pcRadioButton:this,$parentInstance:this}}};function Yd(t){"@babel/helpers - typeof";return Yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yd(t)}function tJ(t,e,n){return(e=nJ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nJ(t){var e=iJ(t,"string");return Yd(e)=="symbol"?e:e+""}function iJ(t,e){if(Yd(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var i=n.call(t,e);if(Yd(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ty={name:"RadioButton",extends:eJ,inheritAttrs:!1,emits:["change","focus","blur"],inject:{$pcRadioButtonGroup:{default:void 0}},methods:{getPTOptions:function(e){var n=e==="root"?this.ptmi:this.ptm;return n(e,{context:{checked:this.checked,disabled:this.disabled}})},onChange:function(e){if(!this.disabled&&!this.readonly){var n=this.binary?!this.checked:this.value;this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.writeValue(n,e):this.writeValue(n,e),this.$emit("change",e)}},onFocus:function(e){this.$emit("focus",e)},onBlur:function(e){var n,i;this.$emit("blur",e),(n=(i=this.formField).onBlur)===null||n===void 0||n.call(i,e)}},computed:{groupName:function(){return this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.groupName:this.$formName},checked:function(){var e=this.$pcRadioButtonGroup?this.$pcRadioButtonGroup.d_value:this.d_value;return e!=null&&(this.binary?!!e:Rb(e,this.value))}
1682,dataP:function(){return zD(tJ({invalid:this.$invalid,checked:this.checked,disabled:this.disabled,filled:this.$variant==="filled"},this.size,this.size))}}},rJ=["data-p-checked","data-p-disabled","data-p"],aJ=["id","value","name","checked","tabindex","disabled","readonly","aria-labelledby","aria-label","aria-invalid"],sJ=["data-p"],oJ=["data-p"];function uJ(t,e,n,i,r,a){return tt(),_t("div",Cr({class:t.cx("root")},a.getPTOptions("root"),{"data-p-checked":a.checked,"data-p-disabled":t.disabled,"data-p":a.dataP}),[It("input",Cr({id:t.inputId,type:"radio",class:[t.cx("input"),t.inputClass],style:t.inputStyle,value:t.value,name:a.groupName,checked:a.checked,tabindex:t.tabindex,disabled:t.disabled,readonly:t.readonly,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-invalid":t.invalid||void 0,onFocus:e[0]||(e[0]=function(){return a.onFocus&&a.onFocus.apply(a,arguments)}),onBlur:e[1]||(e[1]=function(){return a.onBlur&&a.onBlur.apply(a,arguments)}),onChange:e[2]||(e[2]=function(){return a.onChange&&a.onChange.apply(a,arguments)})},a.getPTOptions("input")),null,16,aJ),It("div",Cr({class:t.cx("box")},a.getPTOptions("box"),{"data-p":a.dataP}),[It("div",Cr({class:t.cx("icon")},a.getPTOptions("icon"),{"data-p":a.dataP}),null,16,oJ)],16,sJ)],16,rJ)}Ty.render=uJ;const lJ=Object.freeze(Object.defineProperty({__proto__:null,default:Ty},Symbol.toStringTag,{value:"Module"})),cJ=uf(HZ),dJ={class:"nativeMusicRadio"},fJ=["for"],hJ={key:0},pJ={key:1,class:"formLabel-hint"},mJ={class:"nativeMusicRadio__options"},gJ=["innerHTML","for","data-playlist"],vJ={class:"nativeMusicRadio__option-content frame-bottom"},_J={__name:"FieldMusicRadio",props:om(["label","id","placeholder","required","playlists"],{modelValue:{type:String,required:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const e=t,n=eb(t,"modelValue");return(i,r)=>{const a=Ty,s=aj,o=Pj,u=cJ;return tt(),_t("div",dJ,[t.label?(tt(),_t("label",{key:0,class:"nativeMusicRadio__label formLabel--static text-crop",for:e.id},[It("span",null,Tl(t.label+"	"),1),e.required?(tt(),_t("em",hJ,"*")):Zi("",!0),t.placeholder?(tt(),_t("span",pJ,Tl(t.placeholder),1)):Zi("",!0)],8,fJ)):Zi("",!0),Ct(u,{headless:"",minimal:""},{default:gi(c=>[It("div",mJ,[(tt(!0),_t(Zt,null,Xs(t.playlists,l=>(tt(),_t("div",{class:"nativeMusicRadio__option",key:l.uuid},[Ct(a,{class:"nativeMusicRadio__option-radio",inputId:l.uuid,name:e.id,type:"radio",value:l.uuid,modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=d=>n.value=d)},null,8,["inputId","name","value","modelValue"]),It("label",{class:"nativeMusicRadio__option-label",innerHTML:l.label,for:l.uuid,"data-playlist":l.details},null,8,gJ),It("div",vJ,[l.intendedTemplate==="playlist_custom"?(tt(),cn(s,{key:0,class:"nativeMusicRadio__option-item frame-top",html:l.description},null,8,["html"])):(tt(!0),_t(Zt,{key:1},Xs(l.tracks,(d,f)=>(tt(),cn(o,{class:"nativeMusicRadio__option-item frame-top",key:f,player:c,item:d,"hx-disabled-elt":"this"},null,8,["player","item"]))),128))])]))),128))])]),_:1})])}}};function ti(t,e="page"){typeof t=="string"&&(t=[t]);const n={};return t.forEach(i=>{n[i]=`${e}.${i}._toText`}),n}function AP(t){return{query:`page.${t}.toBlocks`,select:{id:!0,...ti("title","block"),grid:"block.grid.toResolvedLayouts"}}}function qc(t="page.children.listed",e={},n=0){let i={};return n>0&&(i.children={...qc(void 0,e,n-1)}),{query:t,select:{...ti("title"),uri:!0,...e,...i}}}const bJ={query:"site",select:{...ti(["title","description","quote"],"site"),footer:"site.footer.toResolvedLayouts",translations:{query:"site._translations"},cookies:{query:"site",select:{...ti(["cookie_title","cookie_text","cookie_btn_some","cookie_btn_all"],"site")}},seasons:{query:"page('page://home').seasons.toStructure",select:{textcolor:!0,bgcolor:!0,reldate:"structureItem.reldate.toTimestamp"}},menus:{query:"site",select:{left:{select:{factory:qc('page("page://factory")',{},2),creations:qc('page("page://creations")',{},1)}},right:{select:{contact:qc('page("page://contact")',{intendedTemplate:!0}),retailers:qc('page("page://retailers")',{intendedTemplate:!0})}}}}}};function Hce(t){return{query:`page("${t}")`,select:{uri:!0,...ti(["title","text","description","searchHint"])}}}const zce={query:"page('page://home')",select:{...ti(["title"]),vidseasons:{query:"page.videoseasons.toStructure",select:{reldate:"structureItem.reldate.toTimestamp",embed:"structureItem.embed._toEmbed",name:!0}},body:AP("body")}},yJ={query:"page('page://error')",select:{...ti(["title","description"])}}
1682,$ce={query:"page('page://retailers')",select:{title:!0,uri:!0,...ti("description"),searchHint:!0,coordinates:"page.coordinates.yaml",tags:{query:'page.find("tags").children',select:{title:!0,uuid:!0}}}},Wce={query:"page('page://retailers').children.listed",select:{title:!0,uid:!0,coordinates:"page.coordinates.yaml",category:!0,...ti(["address","contact"])}},Gce={query:'page("page://faq")',select:{...ti(["title","searchhint"]),questions:AP("questions")}},qce={query:'page("page://factory")',select:{...ti(["discoverLabel","title"]),children:{select:{...ti(["title"]),uri:!0}}}},SP={...ti(["title"]),uid:!0,track:"page.track._toAudio",midi:{query:"page.midi.toFile",select:{url:!0}},artists:{query:"page.artists.toPages(',')",select:{...ti("title"),uuid:!0}}},jce={query:"page('page://music')",select:{...ti(["title","description"]),id:!0,uri:!0,searchHint:!0}},Xce={query:"page('page://tagsmusic').children.listed.sortBy('title')",select:{title:!0,uuid:!0}};function EJ(t){return{query:"site",select:{playlists:xJ(t),includedPlaylist:{query:'page("page://playlist_included")',select:{title:!0,uuid:!0}}}}}function xJ(t){return{query:`page('page://playlists').children.filterBy('products', '*=', '${t}').listed`,select:{title:!0,uuid:!0,intendedTemplate:!0,mode:!0,...ti(["description"]),tracks:{query:"page.tracks.toPages.listed",select:{...SP}}}}}function Yce(){return{query:"page('page://music')",select:{...ti(["playertitle","playerfooter"]),customMsg:"page('page://playlist_custom').description._toText"}}}function Kce(t,e){return e=ze(e),{query:`page('page://melodies').children.filterBy('categories', '${t}', ',')${e?`.deepsearch('${e}', 'title|artists|categories|products')`:".sortBy('categories', 'title')"}`,select:{...SP,playlists:{query:"page('page://playlists').children.filterBy('tracks', '*=', page.uuid)",select:{products:{query:"page.products.toPages",select:{title:!0,uri:!0}}}}}}}const Zce={query:"page('page://contact')",select:{...ti(["title","address","contact"]),form:"page.form._toForm"}};var jc={exports:{}},AJ=jc.exports,eT;function SJ(){return eT||(eT=1,(function(t,e){(function(n,i){i(e)})(AJ,function(n){function l(J,ye,H){let ie=J*(1-H)**2,_e=ye*H**2;return _e/(ie+_e)}function d(J,ye,H,ie){J=M(J),ye=M(ye);let _e=v(J),W=v(ye),be=b(_e),ge=b(W),De=D(be,$),ae=D(ge,$);H=l(De,ae,H);const Fe=new Array(38);for(let K=0;K<38;K++){let ue=(1-H)*((1-be[K])**2/(2*be[K]))+H*((1-ge[K])**2/(2*ge[K])),Se=1+ue-Math.sqrt(ue**2+2*ue);Fe[K]=Se}let U=p(y(Fe));return U.push(x(J[3],ye[3],H)),S(U,ie)}function f(J,ye,H,ie){let _e=[];for(let W=0;W<H;W++)_e.push(d(J,ye,W/(H-1),ie));return _e}function h(J){return J<.04045?J/12.92:((J+.055)/1.055)**2.4}function g(J){return J<.0031308?J*12.92:1.055*J**(1/2.4)-.055}function v(J){let ye=h(J[0]/255),H=h(J[1]/255),ie=h(J[2]/255);return[ye,H,ie]}function m(J){let ye=g(J[0]),H=g(J[1]),ie=g(J[2]);return[Math.round(w(ye,0,1)*255),Math.round(w(H,0,1)*255),Math.round(w(ie,0,1)*255)]}function p(J){let ye=D(le[0],J),H=D(le[1],J),ie=D(le[2],J);return m([ye,H,ie])}function y(J){let ye=D(J,te),H=D(J,$),ie=D(J,ee);return[ye,H,ie]}function _(J){let ye=Math.min(Math.min(J[0],J[1]),J[2]);J=[J[0]-ye,J[1]-ye,J[2]-ye];let H=Math.min(J[1],J[2]),ie=Math.min(J[0],J[2]),_e=Math.min(J[0],J[1]),W=Math.max(0,Math.min(J[0]-J[2],J[0]-J[1])),be=Math.max(0,Math.min(J[1]-J[2],J[1]-J[0])),ge=Math.max(0,Math.min(J[2]-J[1],J[2]-J[0]));return[ye,H,ie,_e,W,be,ge]}function b(J){let ye=_(J);const H=new Array(38);for(let ie=0;ie<38;ie++)H[ie]=Math.max(1e-8,ye[0]+ye[1]*B[ie]+ye[2]*V[ie]+ye[3]*z[ie]+ye[4]*Q[ie]+ye[5]*Z[ie]+ye[6]*q[ie]);return H}function x(J,ye,H){return J+H*(ye-J)}function w(J,ye,H){return Math.min(Math.max(J,ye),H)}function D(J,ye){return J.map((H,ie)=>J[ie]*ye[ie]).reduce((H,ie)=>H+ie)}function O(J){let ye=M(J);return[ye[0]/255,ye[1]/255,ye[2]/255,ye[3]>1?ye[3]/255:ye[3]]}function M(J){if(Array.isArray(J)){const[ye,H,ie,_e=1]=J;return[ye,H,ie,_e]}if(J.startsWith("rgb")){J=J.slice(J.indexOf("(")+1,-1).split(",").map(W=>W.trim().endsWith("%")?Math.round(parseFloat(W.trim())*2.55):Number(W.trim()));const[ye,H,ie,_e=1]=J;return[ye,H,ie,_e]}if(J.startsWith("#")){J.length===4||J.length===5?J=J.split("").slice(1).map(W=>W+W).join(""):J=J.slice(1),J=J.match(/.{1,2}/g).map(W=>parseInt(W,16));const[ye,H,ie,_e=1]=J.length===3?[...J,1]:J;return[ye,H,ie,_e]}return[0,0,0,1]}function S(J,ye){let H=J[0],ie=J[1],_e=J[2],W=J[3];return ye===0||ye===1?`rgb${ye===1?"a":""}(${H}, ${ie}, ${_e}${ye===1?", "+W:""})`:(H=H.toString(16),ie=ie.toString(16),_e=_e.toString(16),W=(W>1?W:Math.round(w(W,0,1)*255)).toString(16),H.length==1&&(H="0"+H),ie.length==1&&(ie="0"+ie),_e.length==1&&(_e="0"+_e),W.length==1&&(W="0"+W),`#${H}${ie}${_e}${ye===3?W:""}`)}const B=[.96853629,.96855103,.96859338,.96877345,.96942204,.97143709,.97541862,.98074186,.98580992,.98971194,.99238027,.99409844,.995172,.99576545,.99593552,.99564041,.99464769,.99229579,.98638762,.96829712,.89228016,.53740239,.15360445,.05705719,.03126539,.02205445,.01802271,.0161346,.01520947,.01475977,.01454263,.01444459,.01439897,.0143762,.01436343,.01435687,.0143537,.01435408],V=[.51567122,.5401552,.62645502,.75595012,.92826996,.97223624,.98616174,.98955255,.98676237,.97312575,.91944277,.32564851,.13820628,.05015143,.02912336,.02421691,.02
1682660696,.03407586,.04835936,1172e-7,8554e-8,.85267882,.93188793,.94810268,.94200977,.91478045,.87065445,.78827548,.65738359,.59909403,.56817268,.54031997,.52110241,.51041094,.50526577,.5025508,.50126452,.50083021],z=[.02055257,.02059936,.02062723,.02073387,.02114202,.02233154,.02556857,.03330189,.05185294,.10087639,.24000413,.53589066,.79874659,.91186529,.95399623,.97137099,.97939505,.98345207,.98553736,.98648905,.98674535,.98657555,.98611877,.98559942,.98507063,.98460039,.98425301,.98403909,.98388535,.98376116,.98368246,.98365023,.98361309,.98357259,.98353856,.98351247,.98350101,.98350852],Q=[.03147571,.03146636,.03140624,.03119611,.03053888,.02856855,.02459485,.0192952,.01423112,.01033111,.00765876,.00593693,.00485616,.00426186,.00409039,.00438375,.00537525,.00772962,.0136612,.03181352,.10791525,.46249516,.84604333,.94275572,.96860996,.97783966,.98187757,.98377315,.98470202,.98515481,.98537114,.98546685,.98550011,.98551031,.98550741,.98551323,.98551563,.98551547],Z=[.49108579,.46944057,.4016578,.2449042,.0682688,.02732883,.013606,.01000187,.01284127,.02636635,.07058713,.70421692,.85473994,.95081565,.9717037,.97651888,.97429245,.97012917,.9425863,.99989207,.99989891,.13823139,.06968113,.05628787,.06111561,.08987709,.13656016,.22169624,.32176956,.36157329,.4836192,.46488579,.47440306,.4857699,.49267971,.49625685,.49807754,.49889859],q=[.97901834,.97901649,.97901118,.97892146,.97858555,.97743705,.97428075,.96663223,.94822893,.89937713,.76070164,.4642044,.20123039,.08808402,.04592894,.02860373,.02060067,.01656701,.01451549,.01357964,.01331243,.01347661,.01387181,.01435472,.01479836,.0151525,.01540513,.01557233,.0156571,.01571025,.01571916,.01572133,.01572502,.01571717,.01571905,.01571059,.01569728,.0157002],te=[6469e-8,21941e-8,.00112057,.00376661,.01188055,.02328644,.03455942,.03722379,.03241838,.02123321,.01049099,.00329584,50704e-8,94867e-8,.00627372,.01686462,.02868965,.04267481,.05625475,.0694704,.08305315,.0861261,.09046614,.08500387,.07090667,.05062889,.03547396,.02146821,.01251646,.00680458,.00346457,.00149761,7697e-7,40737e-8,16901e-8,9522e-8,4903e-8,2e-5],$=[184e-8,621e-8,3101e-8,10475e-8,35364e-8,95147e-8,.00228226,.00420733,.0066888,.0098884,.01524945,.02141831,.03342293,.05131001,.07040208,.08783871,.09424905,.09795667,.09415219,.08678102,.07885653,.0635267,.05374142,.04264606,.03161735,.02088521,.01386011,.00810264,.0046301,.00249138,.0012593,54165e-8,27795e-8,14711e-8,6103e-8,3439e-8,1771e-8,722e-8],ee=[30502e-8,.00103681,.00531314,.01795439,.05707758,.11365162,.17335873,.19620658,.18608237,.13995048,.08917453,.04789621,.02814563,.01613766,.0077591,.00429615,.00200551,86147e-8,36904e-8,19143e-8,14956e-8,9231e-8,6813e-8,2883e-8,1577e-8,394e-8,158e-8,0,0,0,0,0,0,0,0,0,0,0],le=[[3.24306333,-1.53837619,-.49893282],[-.96896309,1.87542451,.04154303],[.05568392,-.20417438,1.05799454]];function xe(){return`
1683#ifndef SPECTRAL
1684#define SPECTRAL
1685
1686const int SPECTRAL_SIZE = 38;
1687const float SPECTRAL_GAMMA = 2.4;
1688const float SPECTRAL_EPSILON = 0.0001;
1689
1690float spectral_uncompand(float x) {
1691  return (x < 0.04045) ? x / 12.92 : pow((x + 0.055) / 1.055, SPECTRAL_GAMMA);
1692}
1693
1694float spectral_compand(float x) {
1695  return (x < 0.0031308) ? x * 12.92 : 1.055 * pow(x, 1.0 / SPECTRAL_GAMMA) - 0.055;
1696}
1697
1698vec3 spectral_srgb_to_linear(vec3 srgb) {
1699    return vec3(spectral_uncompand(srgb[0]), spectral_uncompand(srgb[1]), spectral_uncompand(srgb[2]));
1700}
1701
1702vec3 spectral_linear_to_srgb(vec3 lrgb) {
1703    return clamp(vec3(spectral_compand(lrgb[0]), spectral_compand(lrgb[1]), spectral_compand(lrgb[2])), 0.0, 1.0);
1704}
1705
1706void spectral_upsampling(vec3 lrgb, out float w, out float c, out float m, out float y, out float r, out float g, out float b) {
1707    w = min(lrgb.r, min(lrgb.g, lrgb.b));
1708
1709    lrgb -= w;
1710
1711    c = min(lrgb.g, lrgb.b);
1712    m = min(lrgb.r, lrgb.b);
1713    y = min(lrgb.r, lrgb.g);
1714    r = min(max(0., lrgb.r - lrgb.b), max(0., lrgb.r - lrgb.g));
1715    g = min(max(0., lrgb.g - lrgb.b), max(0., lrgb.g - lrgb.r));
1716    b = min(max(0., lrgb.b - lrgb.g), max(0., lrgb.b - lrgb.r));
1717}
1718
1719void spectral_linear_to_reflectance(vec3 lrgb, inout float R[SPECTRAL_SIZE]) {
1720    float w, c, m, y, r, g, b;
1721    
1722    spectral_upsampling(lrgb, w, c, m, y, r, g, b);
1723    
1724     R[0] = max(SPECTRAL_EPSILON, w + c * 0.96853629 + m * 0.51567122 + y * 0.02055257 + r * 0.03147571 + g * 0.49108579 + b * 0.97901834);
1725     R[1] = max(SPECTRAL_EPSILON, w + c * 0.96855103 + m * 0.54015520 + 
1725y * 0.02059936 + r * 0.03146636 + g * 0.46944057 + b * 0.97901649);
1726     R[2] = max(SPECTRAL_EPSILON, w + c * 0.96859338 + m * 0.62645502 + y * 0.02062723 + r * 0.03140624 + g * 0.40165780 + b * 0.97901118);
1727     R[3] = max(SPECTRAL_EPSILON, w + c * 0.96877345 + m * 0.75595012 + y * 0.02073387 + r * 0.03119611 + g * 0.24490420 + b * 0.97892146);
1728     R[4] = max(SPECTRAL_EPSILON, w + c * 0.96942204 + m * 0.92826996 + y * 0.02114202 + r * 0.03053888 + g * 0.06826880 + b * 0.97858555);
1729     R[5] = max(SPECTRAL_EPSILON, w + c * 0.97143709 + m * 0.97223624 + y * 0.02233154 + r * 0.02856855 + g * 0.02732883 + b * 0.97743705);
1730     R[6] = max(SPECTRAL_EPSILON, w + c * 0.97541862 + m * 0.98616174 + y * 0.02556857 + r * 0.02459485 + g * 0.01360600 + b * 0.97428075);
1731     R[7] = max(SPECTRAL_EPSILON, w + c * 0.98074186 + m * 0.98955255 + y * 0.03330189 + r * 0.01929520 + g * 0.01000187 + b * 0.96663223);
1732     R[8] = max(SPECTRAL_EPSILON, w + c * 0.98580992 + m * 0.98676237 + y * 0.05185294 + r * 0.01423112 + g * 0.01284127 + b * 0.94822893);
1733     R[9] = max(SPECTRAL_EPSILON, w + c * 0.98971194 + m * 0.97312575 + y * 0.10087639 + r * 0.01033111 + g * 0.02636635 + b * 0.89937713);
1734    R[10] = max(SPECTRAL_EPSILON, w + c * 0.99238027 + m * 0.91944277 + y * 0.24000413 + r * 0.00765876 + g * 0.07058713 + b * 0.76070164);
1735    R[11] = max(SPECTRAL_EPSILON, w + c * 0.99409844 + m * 0.32564851 + y * 0.53589066 + r * 0.00593693 + g * 0.70421692 + b * 0.46420440);
1736    R[12] = max(SPECTRAL_EPSILON, w + c * 0.99517200 + m * 0.13820628 + y * 0.79874659 + r * 0.00485616 + g * 0.85473994 + b * 0.20123039);
1737    R[13] = max(SPECTRAL_EPSILON, w + c * 0.99576545 + m * 0.05015143 + y * 0.91186529 + r * 0.00426186 + g * 0.95081565 + b * 0.08808402);
1738    R[14] = max(SPECTRAL_EPSILON, w + c * 0.99593552 + m * 0.02912336 + y * 0.95399623 + r * 0.00409039 + g * 0.97170370 + b * 0.04592894);
1739    R[15] = max(SPECTRAL_EPSILON, w + c * 0.99564041 + m * 0.02421691 + y * 0.97137099 + r * 0.00438375 + g * 0.97651888 + b * 0.02860373);
1740    R[16] = max(SPECTRAL_EPSILON, w + c * 0.99464769 + m * 0.02660696 + y * 0.97939505 + r * 0.00537525 + g * 0.97429245 + b * 0.02060067);
1741    R[17] = max(SPECTRAL_EPSILON, w + c * 0.99229579 + m * 0.03407586 + y * 0.98345207 + r * 0.00772962 + g * 0.97012917 + b * 0.01656701);
1742    R[18] = max(SPECTRAL_EPSILON, w + c * 0.98638762 + m * 0.04835936 + y * 0.98553736 + r * 0.01366120 + g * 0.94258630 + b * 0.01451549);
1743    R[19] = max(SPECTRAL_EPSILON, w + c * 0.96829712 + m * 0.00011720 + y * 0.98648905 + r * 0.03181352 + g * 0.99989207 + b * 0.01357964);
1744    R[20] = max(SPECTRAL_EPSILON, w + c * 0.89228016 + m * 0.00008554 + y * 0.98674535 + r * 0.10791525 + g * 0.99989891 + b * 0.01331243);
1745    R[21] = max(SPECTRAL_EPSILON, w + c * 0.53740239 + m * 0.85267882 + y * 0.98657555 + r * 0.46249516 + g * 0.13823139 + b * 0.01347661);
1746    R[22] = max(SPECTRAL_EPSILON, w + c * 0.15360445 + m * 0.93188793 + y * 0.98611877 + r * 0.84604333 + g * 0.06968113 + b * 0.01387181);
1747    R[23] = max(SPECTRAL_EPSILON, w + c * 0.05705719 + m * 0.94810268 + y * 0.98559942 + r * 0.94275572 + g * 0.05628787 + b * 0.01435472);
1748    R[24] = max(SPECTRAL_EPSILON, w + c * 0.03126539 + m * 0.94200977 + y * 0.98507063 + r * 0.96860996 + g * 0.06111561 + b * 0.01479836);
1749    R[25] = max(SPECTRAL_EPSILON, w + c * 0.02205445 + m * 0.91478045 + y * 0.98460039 + r * 0.97783966 + g * 0.08987709 + b * 0.01515250);
1750    R[26] = max(SPECTRAL_EPSILON, w + c * 0.01802271 + m * 0.87065445 + y * 0.98425301 + r * 0.98187757 + g * 0.13656016 + b * 0.01540513);
1751    R[27] = max(SPECTRAL_EPSILON, w + c * 0.01613460 + m * 0.78827548 + y * 0.98403909 + r * 0.98377315 + g * 0.22169624 + b * 0.01557233);
1752    R[28] = max(SPECTRAL_EPSILON, w + c * 0.01520947 + m * 0.65738359 + y * 0.98388535 + r * 0.98470202 + g * 0.32176956 + b * 0.01565710);
1753    R[29] = max(SPECTRAL_EPSILON, w + c * 0.01475977 + m * 0.59909403 + y * 0.98376116 + r * 0.98515481 + g * 0.36157329 + b * 0.01571025);
1754    R[30] = max(SPECTRAL_EPSILON, w + c * 0.01454263 + m * 0.56817268 + y * 0.98368246 + r * 0.98537114 + g * 0.48361920 + b * 0.01571916);
1755    R[31] = max(SPECTRAL_EPSILON, w + c * 0.01444459 + m * 0.54031997 + y * 0.98365023 + r * 0.98546685 + g * 0.46488579 + b * 0.01572133);
1756    R[32] = max(SPECTRAL_EPSILON, w + c * 0.01439897 + m * 0.52110241 + y * 0.98361309 + r * 0.98550011 + g * 0.47440306 + b * 0.01572502);
1757    R[33] = max(SPECTRAL_EPSILON, w + c * 0.01437620 + m * 0.51041094 + y * 0.98357259 + r * 0.98551031 + g * 0.48576990 + b * 0.01571717);
1758    R[34] = max(SPECTRAL_EPSILON, w + c * 0.01436343 + m * 0.50526577 + y * 0.98353856 + r * 0.98550741 + g * 0.49267971 + b * 0.01571905);
1759    R[35] = max(SPECTRAL_EPSILON, w + c * 0.01435687 + m * 0.50255080 + y * 0.98351247 + r * 0.98551323 + g * 0.49625685 + b * 0.01571059);
1760    R[36] = max(SPECTRAL_EPSILON, w + c * 0.01435370 + m * 0.50126452 + y * 0.98350101 + r * 0.98551563 + g * 0.49807754 + b * 0.01569728);
1761    R[37] = max(SPECTRAL_EPSILON, w + c * 0.01435408 + m * 0.50083021 + y * 0.98350852 + r * 0.98551547 + g * 0.49889859 + b * 0.01570020);
1762}
1763
1764vec3 spectral_xyz_to_srgb(vec3 xyz) {
1765    mat3 XYZ_RGB;
1766
1767    XYZ_RGB[0] = vec3( 3.24306333, -1.53837619, -0.49893282);
1768    XYZ_RGB[1] = vec3(-0.96896309,  1.87542451,  0.04154303);
1769    XYZ_RGB[2] = vec3( 0.05568392, -0.20417438,  1.05799454);
1770    
1771    float r = dot(XYZ_RGB[0], xyz);
1772    float g = dot(XYZ_RGB[1], xyz);
1773    float b = dot(XYZ_RGB[2], xyz);
1774
1775    return spectral_linear_to_srgb(vec3(r, g, b));
1776}
1777
1778vec3 spectral_reflectance_to_xyz(float R[SPECTRAL_SIZE]) {
1779    vec3 xyz = vec3(0.0);
1780    
1781    xyz +=  R[0] * vec3(0.00006469, 0.00000184, 0.00030502);
1782    xyz +=  R[1] * vec3(0.00021941, 0.00000621, 0.00103681);
1783    xyz +=  R[2] * vec3(0.00112057, 0.00003101, 0.00531314);
1784    xyz +=  R[3] * vec3(0.00376661, 0.00010475, 0.01795439);
1785    xyz +=  R[4] * vec3(0.01188055, 0.00035364, 0.05707758);
1786    xyz +=  R[5] * vec3(0.02328644, 0.00095147, 0.11365162);
1787    xyz +=  R[6] * vec3(0.03455942, 0.00228226, 0.17335873);
1788    xyz +=  R[7] * vec3(0.03722379, 0.00420733, 0.19620658);
1789    xyz +=  R[8] * vec3(0.03241838, 0.00668880, 0.18608237);
1790    xyz +=  R[9] * vec3(0.02123321, 0.00988840, 0.13995048);
1791    xyz += R[10] * vec3(0.01049099, 0.01524945, 0.08917453);
1792    xyz += R[11] * vec3(0.00329584, 0.02141831, 0.04789621);
1793    xyz += R[12] * vec3(0.00050704, 0.03342293, 0.02814563);
1794    xyz += R[13] * vec3(0.00094867, 0.05131001, 0.01613766);
1795    xyz += R[14] * vec3(0.00627372, 0.07040208, 0.00775910);
1796    xyz += R[15] * vec3(0.01686462, 0.08783871, 0.00429615);
1797    xyz += R[16] * vec3(0.02868965, 0.09424905, 0.00200551);
1798    xyz += R[17] * vec3(0.04267481, 0.09795667, 0.00086147);
1799    xyz += R[18] * vec3(0.05625475, 0.09415219, 0.00036904);
1800    xyz += R[19] * vec3(0.06947040, 0.08678102, 0.00019143);
1801    xyz += R[20] * vec3(0.08305315, 0.07885653, 0.00014956);
1802    xyz += R[21] * vec3(0.08612610, 0.06352670, 0.00009231);
1803    xyz += R[22] * vec3(0.09046614, 0.05374142, 0.00006813);
1804    xyz += R[23] * vec3(0.08500387, 0.04264606, 0.00002883);
1805    xyz += R[24] * vec3(0.07090667, 0.03161735, 0.00001577);
1806    xyz += R[25] * vec3(0.05062889, 0.02088521, 0.00000394);
1807    xyz += R[26] * vec3(0.03547396, 0.01386011, 0.00000158);
1808    xyz += R[27] * vec3(0.02146821, 0.00810264, 0.00000000);
1809    xyz += R[28] * vec3(0.01251646, 0.00463010, 0.00000000);
1810    xyz += R[29] * vec3(0.00680458, 0.00249138, 0.00000000);
1811    xyz += R[30] * vec3(0.00346457, 0.00125930, 0.00000000);
1812    xyz += R[31] * vec3(0.00149761, 0.00054165, 0.00000000);
1813    xyz += R[32] * vec3(0.00076970, 0.00027795, 0.00000000);
1814    xyz += R[33] * vec3(0.00040737, 0.00014711, 0.00000000);
1815    xyz += R[34] * vec3(0.00016901, 0.00006103, 0.00000000);
1816    xyz += R[35] * vec3(0.00009522, 0.00003439, 0.00000000);
1817    xyz += R[36] * vec3(0.00004903, 0.00001771, 0.00000000);
1818    xyz += R[37] * vec3(0.00002000, 0.00000722, 0.00000000);
1819
1820    return xyz;
1821}
1822
1823float spectral_linear_to_concentration(float l1, float l2, float t) {
1824    float t1 = l1 * pow(1.0 - t, 2.0);
1825    float t2 = l2 * pow(t, 2.0);
1826
1827    return t2 / (t1 + t2);
1828}
1829
1830vec3 spectral_mix(vec3 color1, vec3 color2, float t) {
1831    vec3 lrgb1 = spectral_srgb_to_linear(color1);
1832    vec3 lrgb2 = spectral_srgb_to_linear(color2);
1833
1834    float R1[SPECTRAL_SIZE];
1835    float R2[SPECTRAL_SIZE];
1836
1837    spectral_linear_to_reflectance(lrgb1, R1);
1838    spectral_linear_to_reflectance(lrgb2, R2);
1839
1840    float l1 = spectral_reflectance_to_xyz(R1)[1];
1841    float l2 = spectral_reflectance_to_xyz(R2)[1];
1842
1843    t = spectral_linear_to_concentration(l1, l2, t);
1844
1845    float R[SPECTRAL_SIZE];
1846
1847    for (int i = 0; i < SPECTRAL_SIZE; i++) {
1848      float KS = (1.0 - t) * (pow(1.0 - R1[i], 2.0) / (2.0 * R1[i])) + t * (pow(1.0 - R2[i], 2.0) / (2.0 * R2[i]));
1849      float KM = 1.0 + KS - sqrt(pow(KS, 2.0) + 2.0 * KS);
1850
1851      //Saunderson correction
1852      // let S = ((1.0 - K1) * (1.0 - K2) * KM) / (1.0 - K2 * KM);
1853
1854      R[i] = KM;
1855    }
1856
1857    return spectral_xyz_to_srgb(spectral_reflectance_to_xyz(R));
1858}
1859
1860vec4 spectral_mix(vec4 color1, vec4 color2, float t) {
1861    return vec4(spectral_mix(color1.rgb, color2.rgb, t), mix(color1.a, color2.a, t));
1862}
1863
1864#endif
1865    `}n.RGB=0,n.RGBA=1,n.HEX=2,n.HEXA=3,n.mix=d,n.palette=f,n.glsl_color=O,n.glsl=xe})})(jc,jc.exports)),jc.exports}var TJ=SJ();const tT=vf(TJ),wJ=t=>t===document.body,ol=t=>`[${t}]`,MJ=t=>{if(wJ(t)){const r=document.documentElement.clientWidth;return window.innerWidth-r}const e=t.style.borderLeftWidth,n=t.style.borderRightWidth;t.style.borderLeftWidth="0px",t.style.borderRightWidth="0px";const i=t.offsetWidth-t.clientWidth;return t.style.borderLeftWidth=e,t.style.borderRightWidth=n,i},_u=t=>Array.isArray(t)?t:[t];function CJ(t,e){let n,i,r;return(...a)=>{n?(clearTimeout(i),i=setTimeout(()=>{Date.now()-r>=e&&(t(...a),r=Date.now())},Math.max(e-(Date.now()-r),0))):(t(...a),r=Date.now(),n=!0)}}const nT=(t,e,n)=>{let i=0,r=!1;return{init:()=>{i<=0&&(t(),r=!0),i+=1},reset:()=>{i>0&&(i-=1),i<=0&&r&&e()},clearAndReset:()=>{i=0,r=!1,e()},initIsCalled:()=>r}},Dn={SCROLL_DISABLED:"data-noscroll-target-scroll-disabled",SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT:"data-noscroll-target-scroll-scrollbar-width-adjustment",SCROLLBAR_WIDTH_ADJUSTMENT:"data-noscroll-target-scrollbar-width-adjustment",SCROLLABLE:"data-noscroll-target-scrollable",GLOBAL_STYLES:"data-noscroll-global-styles"},Rs={TARGET_SCROLLBAR_WIDTH:"--noscroll-target-scrollbar-width",TARGET_PADDING_RIGHT:"--noscroll-target-padding-right"},DJ=200,LJ=()=>{if(document.querySelector(ol(Dn.GLOBAL_STYLES)))return;const t=ol(Dn.SCROLL_DISABLED),e=ol(Dn.SCROLLBAR_WIDTH_ADJUSTMENT),n=ol(Dn.SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT),i=`    
1866    ${t} {
1867        overflow: hidden !important;
1868    }
1869    
1870    ${t} ${e},
1871    ${t}${n} {
1872        padding-right: calc(var(${Rs.TARGET_PADDING_RIGHT}) + var(${Rs.TARGET_SCROLLBAR_WIDTH})) !important;
1873    }
1874    `,r=document.createElement("style");r.setAttribute(Dn.GLOBAL_STYLES,""),r.appendChild(document.createTextNode(i)),document.head.appendChild(r)},RJ=t=>{const e=p=>{_u(p).forEach(y=>{y.removeAttribute(Dn.SCROLLBAR_WIDTH_ADJUSTMENT);const _=window.getComputedStyle(y);y.style.setProperty(Rs.TARGET_PADDING_RIGHT,_.paddingRight),y.setAttribute(Dn.SCROLLBAR_WIDTH_ADJUSTMENT,"")})},n=p=>{_u(p).forEach(y=>{y.removeAttribute(Dn.SCROLLBAR_WIDTH_ADJUSTMENT),y.style.removeProperty(Rs.TARGET_PADDING_RIGHT)})},i=p=>{_u(p).forEach(y=>{let _=!1;y.removeAttribute(Dn.SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT),y.getAttribute(Dn.SCROLL_DISABLED)!==null&&(_=!0,y.removeAttribute(Dn.SCROLL_DISABLED)),y.style.setProperty(Rs.TARGET_SCROLLBAR_WIDTH,`${MJ(y)}px`),_&&y.setAttribute(Dn.SCROLL_DISABLED,"");const b=window.getComputedStyle(y);y.style.setProperty(Rs.TARGET_PADDING_RIGHT,b.paddingRight),y.setAttribute(Dn.SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT,"")})},r=p=>
1874{_u(p).forEach(y=>{y.removeAttribute(Dn.SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT),y.style.removeProperty(Rs.TARGET_SCROLLBAR_WIDTH),y.style.removeProperty(Rs.TARGET_PADDING_RIGHT)})},a=()=>{e([...document.querySelectorAll(ol(Dn.SCROLLBAR_WIDTH_ADJUSTMENT))]),i([...document.querySelectorAll(ol(Dn.SCROLL_SCROLLBAR_WIDTH_ADJUSTMENT))])},s=CJ(a,DJ),{init:o,reset:u}=nT(()=>{window.addEventListener("resize",s)},()=>{window.removeEventListener("resize",s)}),c=(p,{scrollbarWidthAdjustment:y=!0}={})=>{LJ(),o(),y&&i(p),p.setAttribute(Dn.SCROLL_DISABLED,"")},l=p=>{p.getAttribute(Dn.SCROLL_DISABLED)!==null&&(u(),r(p),p.removeAttribute(Dn.SCROLL_DISABLED))},{init:d,reset:f,initIsCalled:h}=nT(()=>c(document.body),()=>l(document.body));return{adjustScrollbarWidth:e,removeScrollbarWidthAdjustment:n,updateAllScrollbarWidthAdjustment:a,disableScroll:c,enableScroll:l,disablePageScroll:d,enablePageScroll:f,pageScrollIsDisabled:h,createPageScrollToggler:()=>{let p=!1;const y={disablePageScroll(){p||(d(),p=!0)},enablePageScroll(){p&&(f(),p=!1)},togglePageScroll(){p?y.enablePageScroll():y.disablePageScroll()}};return y},markScrollable:p=>{_u(p).forEach(y=>{y.setAttribute(Dn.SCROLLABLE,"")})},unmarkScrollable:p=>{_u(p).forEach(y=>{y.removeAttribute(Dn.SCROLLABLE)})}}},{disablePageScroll:IJ,enablePageScroll:PJ}=RJ();var jp={exports:{}},kJ=jp.exports,iT;function OJ(){return iT||(iT=1,(function(t,e){(function(n,i){t.exports=i()})(kJ,(function(){var n=1e3,i=6e4,r=36e5,a="millisecond",s="second",o="minute",u="hour",c="day",l="week",d="month",f="quarter",h="year",g="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Q){var Z=["th","st","nd","rd"],q=Q%100;return"["+Q+(Z[(q-20)%10]||Z[q]||Z[0])+"]"}},_=function(Q,Z,q){var te=String(Q);return!te||te.length>=Z?Q:""+Array(Z+1-te.length).join(q)+Q},b={s:_,z:function(Q){var Z=-Q.utcOffset(),q=Math.abs(Z),te=Math.floor(q/60),$=q%60;return(Z<=0?"+":"-")+_(te,2,"0")+":"+_($,2,"0")},m:function Q(Z,q){if(Z.date()<q.date())return-Q(q,Z);
vendor: 4,118 bytes, line 1874
1874var te=12*(q.year()-Z.year())+(q.month()-Z.month()),$=Z.clone().add(te,d),ee=q-$<0,le=Z.clone().add(te+(ee?-1:1),d);return+(-(te+(q-$)/(ee?$-le:le-$))||0)},a:function(Q){return Q<0?Math.ceil(Q)||0:Math.floor(Q)},p:function(Q){return{M:d,y:h,w:l,d:c,D:g,h:u,m:o,s,ms:a,Q:f}[Q]||String(Q||"").toLowerCase().replace(/s$/,"")},u:function(Q){return Q===void 0}},x="en",w={};w[x]=y;var D="$isDayjsObject",O=function(Q){return Q instanceof V||!(!Q||!Q[D])},M=function Q(Z,q,te){var $;if(!Z)return x;if(typeof Z=="string"){var ee=Z.toLowerCase();w[ee]&&($=ee),q&&(w[ee]=q,$=ee);var le=Z.split("-");if(!$&&le.length>1)return Q(le[0])}else{var xe=Z.name;w[xe]=Z,$=xe}return!te&&$&&(x=$),$||!te&&x},S=function(Q,Z){if(O(Q))return Q.clone();var q=typeof Z=="object"?Z:{};return q.date=Q,q.args=arguments,new V(q)},B=b;B.l=M,B.i=O,B.w=function(Q,Z){return S(Q,{locale:Z.$L,utc:Z.$u,x:Z.$x,$offset:Z.$offset})};var V=(function(){function Q(q){this.$L=M(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[D]=!0}var Z=Q.prototype;return Z.parse=function(q){this.$d=(function(te){var $=te.date,ee=te.utc;if($===null)return new Date(NaN);if(B.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var le=$.match(m);if(le){var xe=le[2]-1||0,J=(le[7]||"0").substring(0,3);return ee?new Date(Date.UTC(le[1],xe,le[3]||1,le[4]||0,le[5]||0,le[6]||0,J)):new Date(le[1],xe,le[3]||1,le[4]||0,le[5]||0,le[6]||0,J)}}return new Date($)})(q),this.init()},Z.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},Z.$utils=function(){return B},Z.isValid=function(){return this.$d.toString()!==v},Z.isSame=function(q,te){var $=S(q);return this.startOf(te)<=$&&$<=this.endOf(te)},Z.isAfter=function(q,te){return S(q)<this.startOf(te)},Z.isBefore=function(q,te){return this.endOf(te)<S(q)},Z.$g=function(q,te,$){return B.u(q)?this[te]:this.set($,q)},Z.unix=function(){return Math.floor(this.valueOf()/1e3)},Z.valueOf=function(){return this.$d.getTime()},Z.startOf=function(q,te){var $=this,ee=!!B.u(te)||te,le=B.p(q),xe=function(ge,De){var ae=B.w($.$u?Date.UTC($.$y,De,ge):new Date($.$y,De,ge),$);return ee?ae:ae.endOf(c)},J=function(ge,De){return B.w($.toDate()[ge].apply($.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(De)),$)},ye=this.$W,H=this.$M,ie=this.$D,_e="set"+(this.$u?"UTC":"");switch(le){case h:return ee?xe(1,0):xe(31,11);case d:return ee?xe(1,H):xe(0,H+1);case l:var W=this.$locale().weekStart||0,be=(ye<W?ye+7:ye)-W;return xe(ee?ie-be:ie+(6-be),H);case c:case g:return J(_e+"Hours",0);case u:return J(_e+"Minutes",1);case o:return J(_e+"Seconds",2);case s:return J(_e+"Milliseconds",3);default:return this.clone()}},Z.endOf=function(q){return this.startOf(q,!1)},Z.$set=function(q,te){var $,ee=B.p(q),le="set"+(this.$u?"UTC":""),xe=($={},$[c]=le+"Date",$[g]=le+"Date",$[d]=le+"Month",$[h]=le+"FullYear",$[u]=le+"Hours",$[o]=le+"Minutes",$[s]=le+"Seconds",$[a]=le+"Milliseconds",$)[ee],J=ee===c?this.$D+(te-this.$W):te;if(ee===d||ee===h){var ye=this.clone().set(g,1);ye.$d[xe](J),ye.init(),this.$d=ye.set(g,Math.min(this.$D,ye.daysInMonth())).$d}else xe&&this.$d[xe](J);return this.init(),this},Z.set=function(q,te){return this.clone().$set(q,te)},Z.get=function(q){return this[B.p(q)]()},Z.add=function(q,te){var $,ee=this;q=Number(q);var le=B.p(te),xe=function(H){var ie=S(ee);return B.w(ie.date(ie.date()+Math.round(H*q)),ee)};if(le===d)return this.set(d,this.$M+q);if(le===h)return this.set(h,this.$y+q);if(le===c)return xe(1);if(le===l)return xe(7);var J=($={},$[o]=i,$[u]=r,$[s]=n,$)[le]||1,ye=this.$d.getTime()+q*J;return B.w(ye,this)},Z.subtract=function(q,te){return this.add(-1*q,te)},Z.format=function(q){var te=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var ee=q||"YYYY-MM-DDTHH:mm:ssZ",le=B.z(this),xe=this.$H,J=this.$m,ye=this.$M,H=$.weekdays,ie=$.months,_e=$.meridiem,W=function(De,ae,Fe,U){return De&&(De[ae]||De(te,ee))||Fe[ae].slice(0,U)},be=function(De){return B.s(xe%12||12,De,"0")}
1874,ge=_e||function(De,ae,Fe){var U=De<12?"AM":"PM";return Fe?U.toLowerCase():U};return ee.replace(p,(function(De,ae){return ae||(function(Fe){switch(Fe){case"YY":return String(te.$y).slice(-2);case"YYYY":return B.s(te.$y,4,"0");case"M":return ye+1;case"MM":return B.s(ye+1,2,"0");case"MMM":return W($.monthsShort,ye,ie,3);case"MMMM":return W(ie,ye);case"D":return te.$D;case"DD":return B.s(te.$D,2,"0");case"d":return String(te.$W);case"dd":return W($.weekdaysMin,te.$W,H,2);case"ddd":return W($.weekdaysShort,te.$W,H,3);case"dddd":return H[te.$W];case"H":return String(xe);case"HH":return B.s(xe,2,"0");case"h":return be(1);case"hh":return be(2);case"a":return ge(xe,J,!0);case"A":return ge(xe,J,!1);case"m":return String(J);case"mm":return B.s(J,2,"0");case"s":return String(te.$s);case"ss":return B.s(te.$s,2,"0");case"SSS":return B.s(te.$ms,3,"0");case"Z":return le}return null})(De)||le.replace(":","")}))},Z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Z.diff=function(q,te,$){var ee,le=this,xe=B.p(te),J=S(q),ye=(J.utcOffset()-this.utcOffset())*i,H=this-J,ie=function(){return B.m(le,J)};switch(xe){case h:ee=ie()/12;break;case d:ee=ie();break;case f:ee=ie()/3;break;case l:ee=(H-ye)/6048e5;break;case c:ee=(H-ye)/864e5;break;case u:ee=H/r;break;case o:ee=H/i;break;case s:ee=H/n;break;default:ee=H}return $?ee:B.a(ee)},Z.daysInMonth=function(){return this.endOf(d).$D},Z.$locale=function(){return w[this.$L]},Z.locale=function(q,te){if(!q)return this.$L;var $=this.clone(),ee=M(q,te,!0);return ee&&($.$L=ee),$},Z.clone=function(){return B.w(this.$d,this)},Z.toDate=function(){return new Date(this.valueOf())},Z.toJSON=function(){return this.isValid()?this.toISOString():null},Z.toISOString=function(){return this.$d.toISOString()},Z.toString=function(){return this.$d.toUTCString()},Q})(),z=V.prototype;return S.prototype=z,[["$ms",a],["$s",s],["$m",o],["$H",u],["$W",c],["$M",d],["$y",h],["$D",g]].forEach((function(Q){z[Q[1]]=function(Z){return this.$g(Z,Q[0],Q[1])}})),S.extend=function(Q,Z){return Q.$i||(Q(Z,V,S),Q.$i=!0),S},S.locale=M,S.isDayjs=O,S.unix=function(Q){return S(1e3*Q)},S.en=w[x],S.Ls=w,S.p={},S}))})(jp)),jp.exports}OJ();const TP={timeToNorm(t){const e=new Date(t.getFullYear(),0,1).getTime(),n=new Date(t.getFullYear()+1,0,1).getTime();return(t-e)/(n-e)},normToTime(t){const e=new Date,n=new Date(e.getFullYear(),0,1).getTime(),i=new Date(e.getFullYear()+1,0,1).getTime();return new Date(t*(i-n)+n)}},cu=OD("appstore",()=>{const t=ut();NJ(t.$pinia,{});const e=mn(),n=R0("currtime",()=>hn(nf(new Date)));nL(Iq());const i=Le(!1),r=Le(!1),a=W$("history"),s=Ve(()=>a.form),o=Ve(()=>a.player),u=Le(!1),c=Le(63),l=Le(!1),d=Le(void 0),f=Le([]);function h(J,ye={}){J&&(a.form=J,Object.assign(a,ye))}const g=Le(!1);let v=0;function m(J){g.value=J;let ye=null;return J&&(v++,ye=v),()=>{J&&ye===v&&(g.value=!1)}}function p(){Object.entries(a).forEach(([J,ye])=>{a[J]=null})}function y(J){Object.assign(a,{player:J.replace("page://","")})}const _=F0(),x=jC().colors.noir30,w=Le({}),D=Le({}),O=Le(void 0),M=Le(void 0),S=Le({}),B=In({}),V=Le("content");fb({bodyAttrs:{state:V}});const z=Ve(()=>w.value.seasons?xe(w.value.seasons):[]);function Q(J){return FJ(J,z.value,x)}function Z(J,ye){Object.assign(B,{[J]:ye})}const q=Ve(()=>Q(n.value));function te(J){V.value=J}function $(J){O.value=J}function ee(J,ye){ye??=t.$currentURI.value,S.value[ye]=J}const le=Ve(()=>S.value[t.$currentURI.value]||"");function xe(J){return J.map(({bgcolor:ye,textcolor:H,reldate:ie})=>{const _e=t.$toDate(ie,{unix:!0,raw:!0});return{bg:ye,txt:H,norm:TP.timeToNorm(_e),date:_e}}).sort((ye,H)=>ye.norm-H.norm)}return t.hooks.hookOnce("app:mounted",async()=>{Ql(async()=>{let J=r.value||s.value||o.value||u.value;V.value==="intro"&&await uR(0),J?IJ():PJ()}),e.afterEach((J,ye)=>{a.form=null,a.player=null})}),{currTime:n,getSeason:Q,season:q,palette:z,creationsPage:D,form:s,formProvider:Le(null),player:o,openForm:h,openPlayer:y,toggleSide:m,formSide:g,closeForm:()=>{p(),m(!1)},closePlayer:()=>{a.player=null,m(!1)},menuMobileOpen:r,lockPage:i,interact360:u,currPage:d,showMobileTitle:l,headerHeight:c,seenProducts:f,site:w,setPage:$,page:O,query:M,setSearch:ee,currSearch:le,state:V,setState:te,vars:B,setVar:Z,isHome:Ve(()=>_(e.currentRoute)==="index")}});function NJ(t,e){t.use(()=>e)}function UJ(t,e){const n=e.filter(({norm:r})=>r<=t).pop()||e[e.length-1],i=e.filter(({norm:r})=>r>t).shift()||e[0];return[n,i]}function FJ(t,e,n){const i=TP.timeToNorm(t);let[r,a]=UJ(i,e);if(!r||!a)return{text:n,background:n,closest:void 0,closestIndex:-1};let s=r.norm,o=a.norm;s=s>i?s-1:s,o=o<i?o+1:o;let u=(i-s)/(o-s);u=Math.max(0,Math.min(1,u));const c=tT.mix(r.txt??n,a.txt??n,u),l=tT.mix(r.bg??n,a.bg??n,u),d=u<.5?r:a,f=e.indexOf(d);return{text:c,background:l,closest:d,closestIndex:f}}function wP(t){return`/api/__kirby__/${encodeURIComponent(t)}`}function h2(t={}){return Object.fromEntries(new Headers(t))}function MP({auth:t,token:e,credentials:n}){if(t==="basic"&&n){const{username:i,password:r}=n;return{Authorization:`Basic ${globalThis.btoa(`${i}:${r}`)}`}}if(t==="bearer")return{Authorization:`Bearer ${e}`}}function BJ(t,e={}){const{server:n,lazy:i,default:r,transform:a,pick:s,watch:o,immediate:u,headers:c,language:l,cache:d=!0,...f}=e,h=Li().public.kql,g=Ve(()=>bd(t)),v=Ve(()=>bd(l)),m=Ve(()=>`$kql${zC([g.value,v.value])}`);(Object.keys(g.value).length===0||!g.value.query)&&console.error("[useKql] Empty KQL query");const p={server:n,lazy:i,default:r,transform:a,pick:s,watch:o===!1?[]:[...o||[],m],immediate:u};let y;return KU(o===!1?m.value:m,async _=>{if(y?.abort?.(),_&&(_.isHydrating||d)&&_.payload.data[m.value])return _.payload.data[m.value];y=new AbortController;try{let b;return h.client?b=await B_()(h.prefix,{...f,signal:y.signal,baseURL:h.url,method:"POST",body:g.value,headers:{...h2(c),...MP(h),...v.value&&{"X-Language":v.value}}}):b=await B_()(wP(m.value),{...f,signal:y.signal,method:"POST",body:{query:g.value,cache:d,headers:{...h2(c),...v.value&&{"X-Language":v.value}}}}),_&&d&&(_.payload.data[m.value]=b),b}catch(b){throw _&&(_.payload.data[m.value]=void 0),b}},p)}function VJ(){const t=Js(),{$stripPrefix:e}=ut();return e(t.path)}function CP(t,e={}){const n=ut(),i=n._kirbyPromises||=new Map,{headers:r,language:a,cache:s=!0,...o}=e,u=Li().public.kql,c=`$kql${zC([t,a])}`;if((n.isHydrating||s)&&n.payload.data[c])return Promise.resolve(n.payload.data[c]);if(i.has(c))return i.get(c);const l={...h2(r),...a&&{"X-Language":a}},d={method:"POST",body:{query:t,cache:s,headers:Object.keys(l).length?l:void 0}},f={baseURL:u.url,method:"POST",body:t,headers:{...l,...MP(u)}},h=B_()(u.client?u.prefix:wP(c),{...o,...u.client?f:d}).then(g=>(s&&(n.payload.data[c]=g),i.delete(c),g)).catch(g=>{throw n.payload.data[c]=void 0,i.delete(c),g});return i.set(c,h),h}function DP(t,e){const{locale:n,locales:i}=U0();return BJ(t,{language:n,cache:!1,watch:[n],...e})}
1874function Jce(t,e){const n=VJ(),i=cu(),r=ut();return i.query=n,r._fetching=!0,DP(t(n),e)}function HJ(t,e){const{locale:n}=ut().$i18n;return CP(t,{language:ze(n),cache:!1,...e})}const zJ={key:0,class:"formField nativeMusic","field-show":"false"},$J={__name:"Music.ce",props:{required:{type:Boolean,default:!1},id:{type:String,default:"music-playlist"},label:{type:String,required:!1},placeholder:{type:String,required:!1},value:{type:String,required:!1}},setup(t){const e=t,n=hn(void 0);try{n.value=JSON.parse(e.value)[0]}catch{}mn();const i=cu(),r=Le([]),a=i.formProvider.query.uuid;hn(null);const{$trans:s}=ut();Q2(),hn(!1);const{desktop:o}=mR();hn(!1);let u=null;return HJ(EJ(a)).then(async c=>{let l=!1;const d=[],{includedPlaylist:f,playlists:h}=c.result;r.value=h.filter(g=>{const v=g.mode==="included",m=g.intendedTemplate==="playlist_custom";return v&&(l=!0),m&&d.push({...g,label:g.title,details:void 0}),!v&&!m}).map((g,v)=>({...g,label:s("playlist:option",{fill:{count:v+1}}),details:void 0})),r.value.push(...d),l&&r.value.unshift({...f,label:f.title,details:void 0}),r.value.length>0&&(u=i.toggleSide({productId:a,playlists:r})),r.value.length===1&&(n.value=r.value[0].uuid)}),xa(()=>{u?.()}),(c,l)=>{const d=ij,f=_J;return ze(r).length===0?(tt(),_t("div",zJ)):ze(o)?(tt(),cn(d,{key:1,class:"formField nativeMusic",playlists:ze(r),label:t.label,required:t.required,placeholder:t.placeholder,id:t.id,modelValue:ze(n),"onUpdate:modelValue":l[0]||(l[0]=h=>Dt(n)?n.value=h:null)},null,8,["playlists","label","required","placeholder","id","modelValue"])):(tt(),cn(f,{key:2,class:"formField nativeMusic",playlists:ze(r),label:t.label,required:t.required,placeholder:t.placeholder,id:t.id,modelValue:ze(n),"onUpdate:modelValue":l[1]||(l[1]=h=>Dt(n)?n.value=h:null)},null,8,["playlists","label","required","placeholder","id","modelValue"]))}}},WJ=Ht(t=>{if(!customElements.get("custom-music")){const e=h6($J,{shadowRoot:!1,configureApp(n){n.use(tL)}});customElements.define("custom-music",e)}}),GJ=Ht(t=>{t.vueApp.directive("customhover",{mounted(e,n){const i=Le(!1),r=o=>{i.value=!0,s(o)},a=o=>{i.value=!1,s(o)},s=o=>{n.value?.(i.value,o)};e.addEventListener("pointerenter",r),e.addEventListener("pointerleave",a),e._pointerEnterHandler=r,e._pointerLeaveHandler=a},beforeUnmount(e){e.removeEventListener("pointerenter",e._pointerEnterHandler),e.removeEventListener("pointerleave",e._pointerLeaveHandler),delete e._pointerEnterHandler,delete e._pointerLeaveHandler}})}),qJ=Ht(t=>{t.vueApp.directive("index",{mounted(e,n,i,r){e.classList.toggle("index",!0);const a=e.parentNode.querySelectorAll(".index"),s=a.length;let o=0;for(let u=0;u<s;u++){const c=a[u];if(c===e)break;c.classList.contains("index")&&o++}e.style.setProperty("--index",o),e.style.setProperty("--total",s)},beforeUpdate(e,n,i,r){},beforeUnmount(e,n,i,r){e.classList.toggle("index",!1)},getSSRProps(e,n){return{class:{index:!0}}}})}),jJ=Ht(t=>{const e=t.$router;let n;const i=o=>{const u=o.currentTarget.getAttribute("href"),c=o.currentTarget.getAttribute("target")??"_self";u&&u[0]==="/"&&(o.preventDefault(),o.metaKey?window.open(u,c):e.push(u))},r=o=>{Array.from(o).forEach(u=>{u.removeEventListener("click",i,!1)})},a=o=>{Array.from(o).forEach(u=>{const c=u.getAttribute("target");if(c&&c==="_blank"){const l=u.getAttribute("rel")||"",d=l.includes("noopener")?l:l+" noopener";u.setAttribute("rel",d)}u.addEventListener("click",i,!1)})},s=o=>{n??=lu();const u=n(e.currentRoute.value.path);Array.from(o).forEach(c=>{const l=c.getAttribute("href");let f=!!!of(l).host&&GM(n(l),u);c.classList.toggle("router-link-active",f)})};t.vueApp.directive("routerlink",{updated(o){const u=o.getElementsByTagName("a");r(u),a(u)},mounted(o){let u=o.getElementsByTagName("a");a(u),st(()=>e.currentRoute.value.path,()=>{u=o.getElementsByTagName("a"),s(u)},{immediate:!0})},beforeUnmount(o){const u=o.getElementsByTagName("a");o.removeEventListener("click",r(u))}})}),XJ=OD("domstore",()=>{const t=Le(0),e=Le(0),n=Le(!1),i=Le(!1);return{bodyWidth:t,fontSize:e,mobile:n,desktop:i}}),YJ=Ht(async()=>{const t=XJ(),e=ut();Object.assign(t,globalThis._domstore),Bt("_domupdate",i=>{Object.assign(t,i.detail)});function n(){t.mobile=window.innerWidth<=1024,t.desktop=window.innerWidth>=1025}e.hooks.hookOnce("app:mounted",async()=>{await Xj(1e3),n(),Bt(window,"resize",n)})}),KJ=Ht(t=>{const e=Le(!1);return t.hook("page:start",()=>{e.value=!0}),t.hook("page:finish",()=>{e.value=!1}),{provide:{loading:e}}});async function ZJ(t,e){const n=await CP(bJ,{language:e,cache:!1});Object.assign(t.site,n?.result)}const JJ=Ht(async()=>{const t=ut(),e=cu(),n=Js();F0(),mn();let i=!1;t.$getRouteBaseName(n)==="index"&&(e.setState("intro"),i=!0),t.hooks.hook("page:finish",()=>{i||e.setState("content")});const{locale:r}=t.$i18n;return st(r,async a=>{await ZJ(e,a)}),{provide:{to404(a="Page Not Found"){return Ds(Qa({statusCode:404,statusMessage:a}))}}}});function QJ(t){let{PI:e,min:n,max:i,cos:r,round:a}=Math,s=t[0]|t[1]<<8|t[2]<<16,o=t[3]|t[4]<<8,u=(s&63)/63,c=(s>>6&63)/31.5-1,l=(s>>12&63)/31.5-1,d=(s>>18&31)/31,f=s>>23,h=(o>>3&63)/63,g=(o>>9&63)/63,v=o>>15,m=i(3,v?f?5:7:o&7),p=i(3,v?o&7:f?5:7),y=f?(t[5]&15)/15:1,_=(t[5]>>4)/15,b=f?6:5,x=0,w=(te,$,ee)=>{let le=[];for(let xe=0;xe<$;xe++)for(let J=xe?0:1;J*$<te*($-xe);J++)le.push(((t[b+(x>>1)]>>((x++&1)<<2)&15)/7.5-1)*ee);return le}
1874,D=w(m,p,d),O=w(3,3,h*1.25),M=w(3,3,g*1.25),S=f&&w(5,5,_),B=eQ(t),V=a(B>1?32:32*B),z=a(B>1?32/B:32),Q=new Uint8Array(V*z*4),Z=[],q=[];for(let te=0,$=0;te<z;te++)for(let ee=0;ee<V;ee++,$+=4){let le=u,xe=c,J=l,ye=y;for(let W=0,be=i(m,f?5:3);W<be;W++)Z[W]=r(e/V*(ee+.5)*W);for(let W=0,be=i(p,f?5:3);W<be;W++)q[W]=r(e/z*(te+.5)*W);for(let W=0,be=0;W<p;W++)for(let ge=W?0:1,De=q[W]*2;ge*p<m*(p-W);ge++,be++)le+=D[be]*Z[ge]*De;for(let W=0,be=0;W<3;W++)for(let ge=W?0:1,De=q[W]*2;ge<3-W;ge++,be++){let ae=Z[ge]*De;xe+=O[be]*ae,J+=M[be]*ae}if(f)for(let W=0,be=0;W<5;W++)for(let ge=W?0:1,De=q[W]*2;ge<5-W;ge++,be++)ye+=S[be]*Z[ge]*De;let H=le-2/3*xe,ie=(3*le-H+J)/2,_e=ie-J;Q[$]=i(0,255*n(1,ie)),Q[$+1]=i(0,255*n(1,_e)),Q[$+2]=i(0,255*n(1,H)),Q[$+3]=i(0,255*n(1,ye))}return{w:V,h:z,rgba:Q}}function eQ(t){let e=t[3],n=t[2]&128,i=t[4]&128,r=i?n?5:7:e&7,a=i?e&7:n?5:7;return r/a}function tQ(t,e,n){let i=t*4+1,r=6+e*(5+i),a=[137,80,78,71,13,10,26,10,0,0,0,13,73,72,68,82,0,0,t>>8,t&255,0,0,e>>8,e&255,8,6,0,0,0,0,0,0,0,r>>>24,r>>16&255,r>>8&255,r&255,73,68,65,84,120,1],s=[0,498536548,997073096,651767980,1994146192,1802195444,1303535960,1342533948,-306674912,-267414716,-690576408,-882789492,-1687895376,-2032938284,-1609899400,-1111625188],o=1,u=0;for(let c=0,l=0,d=i-1;c<e;c++,d+=i-1)for(a.push(c+1<e?0:1,i&255,i>>8,~i&255,i>>8^255,0),u=(u+o)%65521;l<d;l++){let f=n[l]&255;a.push(f),o=(o+f)%65521,u=(u+o)%65521}a.push(u>>8,u&255,o>>8,o&255,0,0,0,0,0,0,0,0,73,69,78,68,174,66,96,130);for(let[c,l]of[[12,29],[37,41+r]]){let d=-1;for(let f=c;f<l;f++)d^=a[f],d=d>>>4^s[d&15],d=d>>>4^s[d&15];d=~d,a[l++]=d>>>24,a[l++]=d>>16&255,a[l++]=d>>8&255,a[l++]=d&255}return"data:image/png;base64,"+btoa(String.fromCharCode(...a))}function nQ(t){let e=QJ(t);return tQ(e.w,e.h,e.rgba)}const iQ=Ht(async()=>({provide:{thumbhash:nQ}})),rQ=Ht(t=>{t.vueApp.directive("transit",{mounted(e,n,i,r){Object.entries(n.value).forEach(([a,s])=>{e.classList.toggle(a,s)}),e._onEnd=a=>{a.srcElement===e&&e.classList.toggle("transit",!0)},e.addEventListener("transitionend",e._onEnd)},beforeUpdate(e,n,i,r){Object.entries(n.oldValue).find(([s,o])=>{if(n.value[s]!==o)return!0})&&(e.classList.toggle("transit",!1),Object.entries(n.value).forEach(([s,o])=>{e.classList.toggle(s,o)}))},beforeUnmount(e,n,i,r){e.removeEventListener("transitionend",e._onEnd),e.classList.toggle("transit",!1)},getSSRProps(e,n){const i={transit:!0};return Object.entries(e.value).forEach(([r,a])=>{i[r]=a}
1874),{class:i}}})}),lr={addEventListeners(t,e,n){for(let i=0,r=e.length;i<r;i++)t.addEventListener(e[i],n,{passive:!1})},removeEventListeners(t,e,n){for(let i=0,r=e.length;i<r;i++)t.removeEventListener(e[i],n,{passive:!1})},emitEvent:function(t,e,n){if(t.componentInstance)t.componentInstance.$emit(e,n);else{let i=new window.CustomEvent(e,{detail:n});t.el.dispatchEvent(i)}}},p2=["mousedown","touchstart"],m2=["mousemove","touchmove"],g2=["mouseup","touchend"],rT=function(t,e,n){let i=t,r=!0,a=window;typeof e.value=="boolean"?r=e.value:typeof e.value=="object"?(typeof e.value.target=="string"?(i=t.querySelector(e.value.target),i||console.error("There is no element with the current target value.")):typeof e.value.target<"u"&&console.error(`The parameter "target" should be either 'undefined' or 'string'.`),typeof e.value.container=="string"?(a=document.querySelector(e.value.container),a||console.error("There is no element with the current container value.")):typeof e.value.container<"u"&&console.error(`The parameter "container" should be be either 'undefined' or 'string'.`),typeof e.value.active=="boolean"?r=e.value.active:typeof e.value.active<"u"&&console.error(`The parameter "active" value should be either 'undefined', 'true' or 'false'.`)):typeof e.value<"u"&&console.error("The passed value should be either 'undefined', 'true' or 'false' or 'object'.");const s=function(u,c){a===window?window.scrollBy(u,c):(a.scrollLeft+=u,a.scrollTop+=c)},o=function(){let u,c,l,d=!1;i.md=function(f){const h=f instanceof window.MouseEvent,g=h?f.pageX:f.touches[0].pageX,v=h?f.pageY:f.touches[0].pageY,m=document.elementFromPoint(g-window.pageXOffset,v-window.pageYOffset),p=e.arg==="nochilddrag",y=e.modifiers.noleft,_=e.modifiers.noright,b=e.modifiers.nomiddle,x=e.modifiers.noback,w=e.modifiers.noforward,D=e.arg==="firstchilddrag",O=m===i,M=m===i.firstChild,S=p?typeof m?.dataset.dragscroll<"u":typeof m?.dataset.noDragscroll>"u";if(!(!O&&(!S||D&&!M))&&!(f.button===0&&y)){if(f.button===1&&b||f.button===2&&_||f.button===3&&x||f.button===4&&w)return;l=1,u=h?f.clientX:f.touches[0].clientX,c=h?f.clientY:f.touches[0].clientY}},i.mu=function(f){l=0,d&&lr.emitEvent(n,"dragscrollend"),d=!1},i.mm=function(f){const h=f instanceof window.MouseEvent;let g,v;if(l){f.preventDefault(),d||lr.emitEvent(n,"dragscrollstart"),d=!0;const m=i.scrollLeft+i.clientWidth>=i.scrollWidth||i.scrollLeft===0,p=i.scrollTop+i.clientHeight>=i.scrollHeight||i.scrollTop===0;g=-u+(u=h?f.clientX:f.touches[0].clientX),v=-c+(c=h?f.clientY:f.touches[0].clientY),e.modifiers.pass?(i.scrollLeft-=e.modifiers.y?-0:g,i.scrollTop-=e.modifiers.x?-0:v,i===document.body&&(i.scrollLeft-=e.modifiers.y?-0:g,i.scrollTop-=e.modifiers.x?-0:v),(m||e.modifiers.y)&&s(-g,0),(p||e.modifiers.x)&&s(0,-v)):(e.modifiers.x&&(v=-0),e.modifiers.y&&(g=-0),i.scrollLeft-=g,i.scrollTop-=v,i===document.body&&(i.scrollLeft-=g,i.scrollTop-=v)),lr.emitEvent(n,"dragscrollmove",{deltaX:-g,deltaY:-v})}},lr.addEventListeners(i,p2,i.md),lr.addEventListeners(window,g2,i.mu),lr.addEventListeners(window,m2,i.mm)};r?document.readyState==="complete"?o():window.addEventListener("load",o):(lr.removeEventListeners(i,p2,i.md),lr.removeEventListeners(window,g2,i.mu),lr.removeEventListeners(window,m2,i.mm))},aQ=t=>{const e=t;lr.removeEventListeners(e,p2,e.md),lr.removeEventListeners(window,g2,e.mu),lr.removeEventListeners(window,m2,e.mm)},LP={mounted:(t,e,n)=>rT(t,e,n),updated:(t,e,n)=>{JSON.stringify(e.value)!==JSON.stringify(e.oldValue)&&rT(t,e,n)},unmounted:t=>aQ(t)},sQ={install(t){t.directive("dragscroll",LP)}};typeof window<"u"&&window.Vue&&(window.VueDragscroll=LP);const oQ=Ht(({vueApp:t})=>{t.use(sQ)}),uQ=Ht({name:"i18n:plugin:ssg-detect",dependsOn:["i18n:plugin","i18n:plugin:route-locale-detect"],enforce:"post",setup(t){ut(t._id)}});var Jt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(Jt||(Jt={}));function lQ(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}const cQ=Jt.Root,dQ=Jt.Text,fQ=Jt.Directive,hQ=Jt.Comment,pQ=Jt.Script,mQ=Jt.Style,gQ=Jt.Tag,vQ=Jt.CDATA,_Q=Jt.Doctype;class RP{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return NP(this,e)}}class wy extends RP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}}let v2=class extends wy{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}};class IP extends wy{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}}class PP extends wy{constructor(e,n){super(n),this.name=e,this.type=Jt.Directive}get nodeType(){return 1}}class My extends RP{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}}class kP extends My{constructor(){super(...arguments),this.type=Jt.CDATA}get nodeType(){return 4}}let _2=class extends My{constructor(){super(...arguments),this.type=Jt.Root}get nodeType(){return 9}},OP=class extends My{constructor(e,n,i=[],r=e==="script"?Jt.Script:e==="style"?Jt.Style:Jt.Tag){super(i),this.name=e,this.attribs=n,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var n,i;return{name:e,value:this.attribs[e],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[e],prefix:(i=this["x-attribsPrefix"])===null||i===void 0?void 0:i[e]}})}};function Cy(t){return lQ(t)}function bQ(t){return t.type===Jt.CDATA}function yQ(t){return t.type===Jt.Text}function EQ(t){return t.type===Jt.Comment}function xQ(t){return t.type===Jt.Directive}function AQ(t){return t.type===Jt.Root}function NP(t,e=!1){let n;if(yQ(t))n=new v2(t.data);else if(EQ(t))n=new IP(t.data);else if(Cy(t)){const i=e?_v(t.children):[],r=new OP(t.name,{...t.attribs},i);
1874i.forEach(a=>a.parent=r),t.namespace!=null&&(r.namespace=t.namespace),t["x-attribsNamespace"]&&(r["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(r["x-attribsPrefix"]={...t["x-attribsPrefix"]}),n=r}else if(bQ(t)){const i=e?_v(t.children):[],r=new kP(i);i.forEach(a=>a.parent=r),n=r}else if(AQ(t)){const i=e?_v(t.children):[],r=new _2(i);i.forEach(a=>a.parent=r),t["x-mode"]&&(r["x-mode"]=t["x-mode"]),n=r}else if(xQ(t)){const i=new PP(t.name,t.data);t["x-name"]!=null&&(i["x-name"]=t["x-name"],i["x-publicId"]=t["x-publicId"],i["x-systemId"]=t["x-systemId"]),n=i}else throw new Error(`Not implemented yet: ${t.type}`);return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}function _v(t){const e=t.map(n=>NP(n,!0));for(let n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}const aT={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class SQ{constructor(e,n,i){this.dom=[],this.root=new _2(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(i=n,n=aT),typeof e=="object"&&(n=e,e=void 0),this.callback=e??null,this.options=n??aT,this.elementCB=i??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new _2(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;const e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,n){const i=this.options.xmlMode?Jt.Tag:void 0,r=new OP(e,n,void 0,i);this.addNode(r),this.tagStack.push(r)}ontext(e){const{lastNode:n}=this;if(n&&n.type===Jt.Text)n.data+=e,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const i=new v2(e);this.addNode(i),this.lastNode=i}}oncomment(e){if(this.lastNode&&this.lastNode.type===Jt.Comment){this.lastNode.data+=e;return}const n=new IP(e);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const e=new v2(""),n=new kP([e]);this.addNode(n),e.parent=n,this.lastNode=e}oncdataend(){this.lastNode=null}onprocessinginstruction(e,n){const i=new PP(e,n);this.addNode(i)}handleCallback(e){if(typeof this.callback=="function")this.callback(e,this.dom);else if(e)throw e}addNode(e){const n=this.tagStack[this.tagStack.length-1],i=n.children[n.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),n.children.push(e),i&&(e.prev=i,i.next=e),e.parent=n,this.lastNode=null}}const TQ=/\n/g;function wQ(t){const e=[...t.matchAll(TQ)].map((i=>i.index||0));e.unshift(-1);const n=b2(e,0,e.length);return i=>UP(n,i)}function b2(t,e,n){if(n-e==1)return{offset:t[e],index:e+1};const i=Math.ceil((e+n)/2),r=b2(t,e,i),a=b2(t,i,n);return{offset:r.offset,low:r,high:a}}function UP(t,e){return(function(n){return Object.prototype.hasOwnProperty.call(n,"index")})(t)?{line:t.index,column:e-t.offset}:UP(t.high.offset<e?t.high:t.low,e)}function FP(t,e="",n={}){const i=typeof e!="string"?e:n,r=typeof e=="string"?e:"",a=t.map(MQ),s=!!i.lineNumbers;return function(o,u=0){const c=s?wQ(o):()=>({line:0,column:0});let l=u;const d=[];e:for(;l<o.length;){let f=!1;for(const h of a){h.regex.lastIndex=l;const g=h.regex.exec(o);if(g&&g[0].length>0){if(!h.discard){const v=c(l),m=typeof h.replace=="string"?g[0].replace(new RegExp(h.regex.source,h.regex.flags),h.replace):g[0];d.push({state:r,name:h.name,text:m,offset:l,len:g[0].length,line:v.line,column:v.column})}if(l=h.regex.lastIndex,f=!0,h.push){const v=h.push(o,l);d.push(...v.tokens),l=v.offset}if(h.pop)break e;break}}if(!f)break}return{tokens:d,offset:l,complete:o.length<=l}}}function MQ(t,e){return{...t,regex:CQ(t,e)}}function CQ(t,e){if(t.name.length===0)throw new Error(`Rule #${e} has empty name, which is not allowed.`);if((function(n){return Object.prototype.hasOwnProperty.call(n,"regex")})(t))return(function(n){if(n.global)throw new Error(`Regular expression /${n.source}/${n.flags} contains the global flag, which is not allowed.`);return n.sticky?n:new RegExp(n.source,n.flags+"y")})(t.regex);if((function(n){return Object.prototype.hasOwnProperty.call(n,"str")})(t)){if(t.str.length===0)throw new Error(`Rule #${e} ("${t.name}") has empty "str" property, which is not allowed.`);return new RegExp(sT(t.str),"y")}
1874return new RegExp(sT(t.name),"y")}function sT(t){return t.replace(/[-[\]{}()*+!<=:?./\\^$|#\s,]/g,"\\$&")}function cs(t,e){return(n,i)=>{let r=i,a;return i<n.tokens.length&&(a=t(n.tokens[i],n,i),a!==void 0&&r++),a===void 0?{matched:!1}:{matched:!0,position:r,value:a}}}function Dy(t,e){return t.matched?{matched:!0,position:t.position,value:e(t.value,t.position)}:t}function Km(t,e){return t.matched?e(t):t}function Vi(t,e){return(n,i)=>Dy(t(n,i),(r,a)=>e(r,n,i,a))}function Zm(t,e){return(n,i)=>{const r=t(n,i);return r.matched?r:{matched:!0,position:i,value:e}}}function J0(...t){return(e,n)=>{for(const i of t){const r=i(e,n);if(r.matched)return r}return{matched:!1}}}function du(t,e){return(n,i)=>{const r=t(n,i);return r.matched?r:e(n,i)}}function DQ(t,e){return(n,i)=>{const r=[];let a=!0;do{const s=t(n,i);s.matched&&e(s.value,r.length+1,n,i,s.position)?(r.push(s.value),i=s.position):a=!1}while(a);return{matched:!0,position:i,value:r}}}function Ly(t){return DQ(t,()=>!0)}function LQ(t){return Ci(t,Ly(t),(e,n)=>[e,...n])}function Ci(t,e,n){return(i,r)=>Km(t(i,r),a=>Dy(e(i,a.position),(s,o)=>n(a.value,s,i,r,o)))}function RQ(t,e){return Ci(t,e,n=>n)}function oT(t,e){return Ci(t,e,(n,i)=>i)}function Ry(t,e,n,i){return(r,a)=>Km(t(r,a),s=>Km(e(r,s.position),o=>Dy(n(r,o.position),(u,c)=>i(s.value,o.value,u,r,a,c))))}function BP(t,e,n){return Ry(t,e,n,(i,r)=>r)}function IQ(...t){return(e,n)=>{const i=[];let r=n;for(const a of t){const s=a(e,r);if(s.matched)i.push(s.value),r=s.position;else return{matched:!1}}return{matched:!0,position:r,value:i}}}function PQ(...t){return kQ(IQ(...t))}function kQ(t){return Vi(t,e=>e.flatMap(n=>n))}function OQ(t,e){return(n,i)=>{let r=!0,a=t,s=i;do{const o=e(a,n,s)(n,s);o.matched?(a=o.value,s=o.position):r=!1}while(r);return{matched:!0,position:s,value:a}}}function NQ(t,e,n){return OQ(t,i=>Vi(e,(r,a,s,o)=>n(i,r,a,s,o)))}function UQ(t,e,n){return FQ(t,i=>NQ(i,Ci(e,n,(r,a)=>[r,a]),(r,[a,s])=>a(r,s)))}function FQ(t,e){return(n,i)=>Km(t(n,i),r=>e(r.value,n,i,r.position)(n,r.position))}const BQ="(?:[ \\t\\r\\n\\f]*)",VP="(?:\\n|\\r\\n|\\r|\\f)",Q0="[^\\x00-\\x7F]",Ef="(?:\\\\[0-9a-f]{1,6}(?:\\r\\n|[ \\n\\r\\t\\f])?)",xf="(?:\\\\[^\\n\\r\\f0-9a-f])",VQ=`(?:[_a-z]|${Q0}|${Ef}|${xf})`,HP=`(?:[_a-z0-9-]|${Q0}|${Ef}|${xf})`,HQ=`(?:${HP}+)`,zQ=`(?:[-]?${VQ}${HP}*)`,$Q=`'([^\\n\\r\\f\\\\']|\\\\${VP}|${Q0}|${Ef}|${xf})*'`,WQ=`"([^\\n\\r\\f\\\\"]|\\\\${VP}|${Q0}|${Ef}|${xf})*"`,GQ=FP([{name:"ws",regex:new RegExp(BQ)},{name:"hash",regex:new RegExp(`#${HQ}`,"i")},{name:"ident",regex:new RegExp(zQ,"i")},{name:"str1",regex:new RegExp($Q,"i")},{name:"str2",regex:new RegExp(WQ,"i")},{name:"*"},{name:"."},{name:","},{name:"["},{name:"]"},{name:"="},{name:">"},{name:"|"},{name:"+"},{name:"~"},{name:"^"},{name:"$"}]),qQ=FP([{name:"unicode",regex:new RegExp(Ef,"i")},{name:"escape",regex:new RegExp(xf,"i")},{name:"any",regex:new RegExp("[\\s\\S]","i")}]);function zP([t,e,n],[i,r,a]){return[t+i,e+r,n+a]}function jQ(t){return t.reduce(zP,[0,0,0])}const XQ=cs(t=>t.name==="unicode"?String.fromCodePoint(parseInt(t.text.slice(1),16)):void 0),YQ=cs(t=>t.name==="escape"?t.text.slice(1):void 0),KQ=cs(t=>t.name==="any"?t.text:void 0),ZQ=Vi(Ly(J0(XQ,YQ,KQ)),t=>t.join(""));function Iy(t){const e=qQ(t);return ZQ({tokens:e.tokens,options:void 0},0).value}function gn(t){return cs(e=>e.name===t?!0:void 0)}const Py=cs(t=>t.name==="ws"?null:void 0),y2=Zm(Py,null);function Kd(t){return BP(y2,t,y2)}const Zd=cs(t=>t.name==="ident"?Iy(t.text):void 0),JQ=cs(t=>t.name==="hash"?Iy(t.text.slice(1)):void 0),QQ=cs(t=>t.name.startsWith("str")?Iy(t.text.slice(1,-1)):void 0),$P=RQ(Zm(Zd,""),gn("|")),ky=du(Ci($P,Zd,(t,e)=>({name:e,namespace:t})),Vi(Zd,t=>({name:t,namespace:null}))),eee=du(Ci($P,gn("*"),t=>({type:"universal",namespace:t,specificity:[0,0,0]})),Vi(gn("*"),()=>({type:"universal",namespace:null,specificity:[0,0,0]}))),tee=Vi(ky,({name:t,namespace:e})=>({type:"tag",name:t,namespace:e,specificity:[0,0,1]})),nee=Ci(gn("."),Zd,(t,e)=>({type:"class",name:e,specificity:[0,1,0]})),iee=Vi(JQ,t=>({type:"id",name:t,specificity:[1,0,0]})),uT=cs(t=>{if(t.name==="ident"){if(t.text==="i"||t.text==="I")return"i";if(t.text==="s"||t.text==="S")return"s"}}),ree=du(Ci(QQ,Zm(oT(y2,uT),null),(t,e)=>({value:t,modifier:e})),Ci(Zd,Zm(oT(Py,uT),null),(t,e)=>({value:t,modifier:e}))),aee=J0(Vi(gn("="),()=>"="),Ci(gn("~"),gn("="),()=>"~="),Ci(gn("|"),gn("="),()=>"|="),Ci(gn("^"),gn("="),()=>"^="),Ci(gn("$"),gn("="),()=>"$="),Ci(gn("*"),gn("="),()=>"*=")),see=Ry(gn("["),Kd(ky),gn("]"),(t,{name:e,namespace:n})=>({type:"attrPresence",name:e,namespace:n,specificity:[0,1,0]})),oee=BP(gn("["),Ry(Kd(ky),aee,Kd(ree),({name:t,namespace:e},n,{value:i,modifier:r})=>({type:"attrValue",name:t,namespace:e,matcher:n,value:i,modifier:r,specificity:[0,1,0]})),gn("]")),uee=du(see,oee),lee=du(eee,tee),lT=J0(iee,nee,uee),cT=Vi(du(PQ(lee,Ly(lT)),LQ(lT)),t=>({type:"compound",list:t,specificity:jQ(t.map(e=>e.specificity))})),cee=J0(Vi(gn(">"),()=>">"),Vi(gn("+"),()=>"+"),Vi(gn("~"),()=>"~"),Ci(gn("|"),gn("|"),()=>"||")),dee=du(Kd(cee),Vi(Py,()=>" ")),fee=UQ(cT,Vi(dee,t=>(e,n)=>({type:"compound",list:[...n.list,{type:"combinator",combinator:t,left:e,specificity:e.specificity}],specificity:zP(e.specificity,n.specificity)})),cT);function hee(t,e){if(!(typeof e=="string"||e instanceof String))throw new Error("Expected a selector string. Actual input is not a string!");const n=GQ(e);if(!n.complete)throw new Error(`The input "${e}" was only partially tokenized, stopped at offset ${n.offset}!
1875`+dT(e,n.offset));const i=Kd(t)({tokens:n.tokens,options:void 0},0);if(!i.matched)throw new Error(`No match for "${e}" input!`);if(i.position<n.tokens.length){const r=n.tokens[i.position];throw new Error(`The input "${e}" was only partially parsed, stopped at offset ${r.offset}!
1876`+dT(e,r.offset,r.len))}return i.value}function dT(t,e,n=1){return`${t.replace(/(\t)|(\r)|(\n)/g,(i,r,a)=>r?"␉":a?"␍":"␊")}
1877${"".padEnd(e)}${"^".repeat(n)}`}function pee(t){return hee(fee,t)}function ga(t){if(!t.type)throw new Error("This is not an AST node.");switch(t.type){case"universal":return wh(t.namespace)+"*";case"tag":return wh(t.namespace)+rl(t.name);case"class":return"."+rl(t.name);case"id":return"#"+rl(t.name);case"attrPresence":return`[${wh(t.namespace)}${rl(t.name)}]`;case"attrValue":return`[${wh(t.namespace)}${rl(t.name)}${t.matcher}"${mee(t.value)}"${t.modifier?t.modifier:""}]`;case"combinator":return ga(t.left)+t.combinator;case"compound":return t.list.reduce((e,n)=>n.type==="combinator"?ga(n)+e:e+ga(n),"");case"list":return t.list.map(ga).join(",")}}function wh(t){return t||t===""?rl(t)+"|":""}function Xp(t){return`\\${t.codePointAt(0).toString(16)} `}function rl(t){return t.replace(/(^[0-9])|(^-[0-9])|(^-$)|([-0-9a-zA-Z_]|[^\x00-\x7F])|(\x00)|([\x01-\x1f]|\x7f)|([\s\S])/g,(e,n,i,r,a,s,o,u)=>n?Xp(n):i?"-"+Xp(i.slice(1)):r?"\\-":a||(s?"�":o?Xp(o):"\\"+u))}function mee(t){return t.replace(/(")|(\\)|(\x00)|([\x01-\x1f]|\x7f)/g,(e,n,i,r,a)=>n?'\\"':i?"\\\\":r?"�":Xp(a))}function Yp(t){if(!t.type)throw new Error("This is not an AST node.");switch(t.type){case"compound":{t.list.forEach(Yp),t.list.sort((e,n)=>GP(fT(e),fT(n)));break}case"combinator":{Yp(t.left);break}case"list":{t.list.forEach(Yp),t.list.sort((e,n)=>ga(e)<ga(n)?-1:1);break}}return t}function fT(t){switch(t.type){case"universal":return[1];case"tag":return[1];case"id":return[2];case"class":return[3,t.name];case"attrPresence":return[4,ga(t)];case"attrValue":return[5,ga(t)];case"combinator":return[15,ga(t)]}}function WP(t,e){return GP(t,e)}function GP(t,e){if(!Array.isArray(t)||!Array.isArray(e))throw new Error("Arguments must be arrays.");const n=t.length<e.length?t.length:e.length;for(let i=0;i<n;i++)if(t[i]!==e[i])return t[i]<e[i]?-1:1;return t.length-e.length}class hT{constructor(e){this.branches=Gl(gee(e))}build(e){return e(this.branches)}}function gee(t){const e=t.length,n=new Array(e);for(let i=0;i<e;i++){const[r,a]=t[i],s=vee(pee(r));n[i]={ast:s,terminal:{type:"terminal",valueContainer:{index:i,value:a,specificity:s.specificity}}}}return n}function vee(t){return qP(t),Yp(t),t}function qP(t){const e=[];t.list.forEach(n=>{switch(n.type){case"class":e.push({matcher:"~=",modifier:null,name:"class",namespace:null,specificity:n.specificity,type:"attrValue",value:n.name});break;
1877case"id":e.push({matcher:"=",modifier:null,name:"id",namespace:null,specificity:n.specificity,type:"attrValue",value:n.name});break;case"combinator":qP(n.left),e.push(n);break;case"universal":break;default:e.push(n);break}}),t.list=e}function Gl(t){const e=[];for(;t.length;){const n=YP(t,s=>!0,jP),{matches:i,nonmatches:r,empty:a}=bee(t,n);t=r,i.length&&e.push(yee(n,i)),a.length&&e.push(..._ee(a))}return e}function _ee(t){const e=[];for(const n of t){const i=n.terminal;if(i.type==="terminal")e.push(i);else{const{matches:r,rest:a}=Tee(i.cont,s=>s.type==="terminal");r.forEach(s=>e.push(s)),a.length&&(i.cont=a,e.push(i))}}return e}function bee(t,e){const n=[],i=[],r=[];for(const a of t){const s=a.ast.list;s.length?(s.some(u=>jP(u)===e)?n:i).push(a):r.push(a)}return{matches:n,nonmatches:i,empty:r}}function jP(t){switch(t.type){case"attrPresence":return`attrPresence ${t.name}`;case"attrValue":return`attrValue ${t.name}`;case"combinator":return`combinator ${t.combinator}`;default:return t.type}}function yee(t,e){if(t==="tag")return Eee(e);if(t.startsWith("attrValue "))return Aee(t.substring(10),e);if(t.startsWith("attrPresence "))return xee(t.substring(13),e);if(t==="combinator >")return pT(">",e);if(t==="combinator +")return pT("+",e);throw new Error(`Unsupported selector kind: ${t}`)}function Eee(t){const e=Oy(t,i=>i.type==="tag",i=>i.name);return{type:"tagName",variants:Object.entries(e).map(([i,r])=>({type:"variant",value:i,cont:Gl(r.items)}))}}function xee(t,e){for(const n of e)XP(n,i=>i.type==="attrPresence"&&i.name===t);return{type:"attrPresence",name:t,cont:Gl(e)}}function Aee(t,e){const n=Oy(e,r=>r.type==="attrValue"&&r.name===t,r=>`${r.matcher} ${r.modifier||""} ${r.value}`),i=[];for(const r of Object.values(n)){const a=r.oneSimpleSelector,s=See(a),o=Gl(r.items);i.push({type:"matcher",matcher:a.matcher,modifier:a.modifier,value:a.value,predicate:s,cont:o})}return{type:"attrValue",name:t,matchers:i}}function See(t){if(t.modifier==="i"){const e=t.value.toLowerCase();switch(t.matcher){case"=":return n=>e===n.toLowerCase();case"~=":return n=>n.toLowerCase().split(/[ \t]+/).includes(e);case"^=":return n=>n.toLowerCase().startsWith(e);case"$=":return n=>n.toLowerCase().endsWith(e);case"*=":return n=>n.toLowerCase().includes(e);case"|=":return n=>{const i=n.toLowerCase();return e===i||i.startsWith(e)&&i[e.length]==="-"}}}else{const e=t.value;switch(t.matcher){case"=":return n=>e===n;case"~=":return n=>n.split(/[ \t]+/).includes(e);case"^=":return n=>n.startsWith(e);case"$=":return n=>n.endsWith(e);case"*=":return n=>n.includes(e);case"|=":return n=>e===n||n.startsWith(e)&&n[e.length]==="-"}}}function pT(t,e){const n=Oy(e,r=>r.type==="combinator"&&r.combinator===t,r=>ga(r.left)),i=[];for(const r of Object.values(n)){const a=Gl(r.items),s=r.oneSimpleSelector.left;i.push({ast:s,terminal:{type:"popElement",cont:a}})}return{type:"pushElement",combinator:t,cont:Gl(i)}}function Oy(t,e,n){const i={};for(;t.length;){const r=YP(t,e,n),a=l=>e(l)&&n(l)===r,s=l=>l.ast.list.some(a),{matches:o,rest:u}=wee(t,s);let c=null;for(const l of o){const d=XP(l,a);c||(c=d)}if(c==null)throw new Error("No simple selector is found.");i[r]={oneSimpleSelector:c,items:o},t=u}return i}function XP(t,e){const n=t.ast.list,i=new Array(n.length);let r=-1;for(let s=n.length;s-- >0;)e(n[s])&&(i[s]=!0,r=s);if(r==-1)throw new Error("Couldn't find the required simple selector.");const a=n[r];return t.ast.list=n.filter((s,o)=>!i[o]),a}function YP(t,e,n){const i={};for(const s of t){const o={};for(const u of s.ast.list.filter(e))o[n(u)]=!0;for(const u of Object.keys(o))i[u]?i[u]++:i[u]=1}let r="",a=0;for(const s of Object.entries(i))s[1]>a&&(r=s[0],a=s[1]);return r}function Tee(t,e){const n=[],i=[];for(const r of t)e(r)?n.push(r):i.push(r);return{matches:n,rest:i}}function wee(t,e){const n=[],i=[];for(const r of t)e(r)?n.push(r):i.push(r);return{matches:n,rest:i}}class Mee{constructor(e){this.f=e}pickAll(e){return this.f(e)}pick1(e,n=!1){const i=this.f(e),r=i.length;if(r===0)return null;if(r===1)return i[0].value;const a=n?Cee:Dee;let s=i[0];for(let o=1;o<r;o++){const u=i[o];a(s,u)&&(s=u)}return s.value}}function Cee(t,e){const n=WP(e.specificity,t.specificity);return n>0||n===0&&e.index<t.index}function Dee(t,e){const n=WP(e.specificity,t.specificity);return n>0||n===0&&e.index>t.index}function mT(t){return new Mee(nc(t))}function nc(t){const e=t.map(Lee);return(n,...i)=>e.flatMap(r=>r(n,...i))}function Lee(t){switch(t.type){case"terminal":{const e=[t.valueContainer];return(n,...i)=>e}case"tagName":return Ree(t);case"attrValue":return Pee(t);case"attrPresence":return Iee(t);case"pushElement":return kee(t);case"popElement":return Nee(t)}}function Ree(t){const e={};for(const n of t.variants)e[n.value]=nc(n.cont);return(n,...i)=>{const r=e[n.name];return r?r(n,...i):[]}}function Iee(t){const e=t.name,n=nc(t.cont);return(i,...r)=>Object.prototype.hasOwnProperty.call(i.attribs,e)?n(i,...r):[]}function Pee(t){const e=[];for(const i of t.matchers){const r=i.predicate,a=nc(i.cont);e.push((s,o,...u)=>r(s)?a(o,...u):[])}const n=t.name;return(i,...r)=>{const a=i.attribs[n];return a||a===""?e.flatMap(s=>s(a,i,...r)):[]}}function kee(t){const e=nc(t.cont),n=t.combinator==="+"?KP:Oee;return(i,...r)=>{const a=n(i);return a===null?[]:e(a,i,...r)}}const KP=t=>{const e=t.prev;return e===null?null:Cy(e)?e:KP(e)},Oee=t=>{const e=t.parent;return e&&Cy(e)?e:null};function Nee(t){const e=nc(t.cont);return(n,i,...r)=>e(i,...r)}const ZP=new Uint16Array('
vendor: 16,129 bytes, line 1877
1877ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms�„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;æ«§ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapÓºÓ¾cr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpÔ¦Ôªon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋ĀipÕªÕ¯sts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0Ö£mallSquare;旼erySmallSquare;斪Ͱֺ\0Ö¿\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0Ú²f;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgÜ´Ü·r;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyÞ±Þµrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āeyß¶ß»dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;æ««y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;æ©°cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;æ§«riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0á ±;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0á«¢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;æ©­nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0á­µr;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;oá³§á³°ntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;æ§¶rok;䄑Ādrá¶°á¶´ot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;æ§£us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0á¾½g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;
vendor: 4,294 bytes, line 1877
1877䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
vendor: 6,210 bytes, line 1877
1877astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌
1877'.split("").map(t=>t.charCodeAt(0))),JP=new Uint16Array("Ȁaglq	��\x1BÉ­�\0\0�p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(t=>t.charCodeAt(0)));var bv;const Uee=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),E2=(bv=String.fromCodePoint)!==null&&bv!==void 0?bv:function(t){let e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|t&1023),e+=String.fromCharCode(t),e};function QP(t){var e;return t>=55296&&t<=57343||t>1114111?65533:(e=Uee.get(t))!==null&&e!==void 0?e:t}var Jn;(function(t){t[t.NUM=35]="NUM",t[t.SEMI=59]="SEMI",t[t.EQUALS=61]="EQUALS",t[t.ZERO=48]="ZERO",t[t.NINE=57]="NINE",t[t.LOWER_A=97]="LOWER_A",t[t.LOWER_F=102]="LOWER_F",t[t.LOWER_X=120]="LOWER_X",t[t.LOWER_Z=122]="LOWER_Z",t[t.UPPER_A=65]="UPPER_A",t[t.UPPER_F=70]="UPPER_F",t[t.UPPER_Z=90]="UPPER_Z"})(Jn||(Jn={}));const Fee=32;var Ir;(function(t){t[t.VALUE_LENGTH=49152]="VALUE_LENGTH",t[t.BRANCH_LENGTH=16256]="BRANCH_LENGTH",t[t.JUMP_TABLE=127]="JUMP_TABLE"})(Ir||(Ir={}));function x2(t){return t>=Jn.ZERO&&t<=Jn.NINE}function Bee(t){return t>=Jn.UPPER_A&&t<=Jn.UPPER_F||t>=Jn.LOWER_A&&t<=Jn.LOWER_F}function Vee(t){return t>=Jn.UPPER_A&&t<=Jn.UPPER_Z||t>=Jn.LOWER_A&&t<=Jn.LOWER_Z||x2(t)}
1877function Hee(t){return t===Jn.EQUALS||Vee(t)}var Kn;(function(t){t[t.EntityStart=0]="EntityStart",t[t.NumericStart=1]="NumericStart",t[t.NumericDecimal=2]="NumericDecimal",t[t.NumericHex=3]="NumericHex",t[t.NamedEntity=4]="NamedEntity"})(Kn||(Kn={}));var Io;(function(t){t[t.Legacy=0]="Legacy",t[t.Strict=1]="Strict",t[t.Attribute=2]="Attribute"})(Io||(Io={}));class zee{constructor(e,n,i){this.decodeTree=e,this.emitCodePoint=n,this.errors=i,this.state=Kn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Io.Strict}startEntity(e){this.decodeMode=e,this.state=Kn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,n){switch(this.state){case Kn.EntityStart:return e.charCodeAt(n)===Jn.NUM?(this.state=Kn.NumericStart,this.consumed+=1,this.stateNumericStart(e,n+1)):(this.state=Kn.NamedEntity,this.stateNamedEntity(e,n));case Kn.NumericStart:return this.stateNumericStart(e,n);case Kn.NumericDecimal:return this.stateNumericDecimal(e,n);case Kn.NumericHex:return this.stateNumericHex(e,n);case Kn.NamedEntity:return this.stateNamedEntity(e,n)}}stateNumericStart(e,n){return n>=e.length?-1:(e.charCodeAt(n)|Fee)===Jn.LOWER_X?(this.state=Kn.NumericHex,this.consumed+=1,this.stateNumericHex(e,n+1)):(this.state=Kn.NumericDecimal,this.stateNumericDecimal(e,n))}addToNumericResult(e,n,i,r){if(n!==i){const a=i-n;this.result=this.result*Math.pow(r,a)+parseInt(e.substr(n,a),r),this.consumed+=a}}stateNumericHex(e,n){const i=n;for(;n<e.length;){const r=e.charCodeAt(n);if(x2(r)||Bee(r))n+=1;else return this.addToNumericResult(e,i,n,16),this.emitNumericEntity(r,3)}return this.addToNumericResult(e,i,n,16),-1}stateNumericDecimal(e,n){const i=n;for(;n<e.length;){const r=e.charCodeAt(n);if(x2(r))n+=1;else return this.addToNumericResult(e,i,n,10),this.emitNumericEntity(r,2)}return this.addToNumericResult(e,i,n,10),-1}emitNumericEntity(e,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Jn.SEMI)this.consumed+=1;else if(this.decodeMode===Io.Strict)return 0;return this.emitCodePoint(QP(this.result),this.consumed),this.errors&&(e!==Jn.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,n){const{decodeTree:i}=this;let r=i[this.treeIndex],a=(r&Ir.VALUE_LENGTH)>>14;for(;n<e.length;n++,this.excess++){const s=e.charCodeAt(n);if(this.treeIndex=t4(i,r,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Io.Attribute&&(a===0||Hee(s))?0:this.emitNotTerminatedNamedEntity();if(r=i[this.treeIndex],a=(r&Ir.VALUE_LENGTH)>>14,a!==0){if(s===Jn.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Io.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:n,decodeTree:i}=this,r=(i[n]&Ir.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,n,i){const{decodeTree:r}=this;return this.emitCodePoint(n===1?r[e]&~Ir.VALUE_LENGTH:r[e+1],i),n===3&&this.emitCodePoint(r[e+2],i),i}end(){var e;switch(this.state){case Kn.NamedEntity:return this.result!==0&&(this.decodeMode!==Io.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Kn.NumericDecimal:return this.emitNumericEntity(0,2);case Kn.NumericHex:return this.emitNumericEntity(0,3);case Kn.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Kn.EntityStart:return 0}}}function e4(t){let e="";const n=new zee(t,i=>e+=E2(i));return function(r,a){let s=0,o=0;for(;(o=r.indexOf("&",o))>=0;){e+=r.slice(s,o),n.startEntity(a);const c=n.write(r,o+1);if(c<0){s=o+n.end();break}s=o+c,o=c===0?s+1:s}const u=e+r.slice(s);return e="",u}}function t4(t,e,n,i){const r=(e&Ir.BRANCH_LENGTH)>>7,a=e&Ir.JUMP_TABLE;if(r===0)return a!==0&&i===a?n:-1;if(a){const u=i-a;return u<0||u>=r?-1:t[n+u]-1}let s=n,o=s+r-1;for(;s<=o;){const u=s+o>>>1,c=t[u];
1877if(c<i)s=u+1;else if(c>i)o=u-1;else return t[u+r]}return-1}e4(ZP);e4(JP);var nt;(function(t){t[t.Tab=9]="Tab",t[t.NewLine=10]="NewLine",t[t.FormFeed=12]="FormFeed",t[t.CarriageReturn=13]="CarriageReturn",t[t.Space=32]="Space",t[t.ExclamationMark=33]="ExclamationMark",t[t.Number=35]="Number",t[t.Amp=38]="Amp",t[t.SingleQuote=39]="SingleQuote",t[t.DoubleQuote=34]="DoubleQuote",t[t.Dash=45]="Dash",t[t.Slash=47]="Slash",t[t.Zero=48]="Zero",t[t.Nine=57]="Nine",t[t.Semi=59]="Semi",t[t.Lt=60]="Lt",t[t.Eq=61]="Eq",t[t.Gt=62]="Gt",t[t.Questionmark=63]="Questionmark",t[t.UpperA=65]="UpperA",t[t.LowerA=97]="LowerA",t[t.UpperF=70]="UpperF",t[t.LowerF=102]="LowerF",t[t.UpperZ=90]="UpperZ",t[t.LowerZ=122]="LowerZ",t[t.LowerX=120]="LowerX",t[t.OpeningSquareBracket=91]="OpeningSquareBracket"})(nt||(nt={}));var ke;(function(t){t[t.Text=1]="Text",t[t.BeforeTagName=2]="BeforeTagName",t[t.InTagName=3]="InTagName",t[t.InSelfClosingTag=4]="InSelfClosingTag",t[t.BeforeClosingTagName=5]="BeforeClosingTagName",t[t.InClosingTagName=6]="InClosingTagName",t[t.AfterClosingTagName=7]="AfterClosingTagName",t[t.BeforeAttributeName=8]="BeforeAttributeName",t[t.InAttributeName=9]="InAttributeName",t[t.AfterAttributeName=10]="AfterAttributeName",t[t.BeforeAttributeValue=11]="BeforeAttributeValue",t[t.InAttributeValueDq=12]="InAttributeValueDq",t[t.InAttributeValueSq=13]="InAttributeValueSq",t[t.InAttributeValueNq=14]="InAttributeValueNq",t[t.BeforeDeclaration=15]="BeforeDeclaration",t[t.InDeclaration=16]="InDeclaration",t[t.InProcessingInstruction=17]="InProcessingInstruction",t[t.BeforeComment=18]="BeforeComment",t[t.CDATASequence=19]="CDATASequence",t[t.InSpecialComment=20]="InSpecialComment",t[t.InCommentLike=21]="InCommentLike",t[t.BeforeSpecialS=22]="BeforeSpecialS",t[t.SpecialStartSequence=23]="SpecialStartSequence",t[t.InSpecialTag=24]="InSpecialTag",t[t.BeforeEntity=25]="BeforeEntity",t[t.BeforeNumericEntity=26]="BeforeNumericEntity",t[t.InNamedEntity=27]="InNamedEntity",t[t.InNumericEntity=28]="InNumericEntity",t[t.InHexEntity=29]="InHexEntity"})(ke||(ke={}));function Fa(t){return t===nt.Space||t===nt.NewLine||t===nt.Tab||t===nt.FormFeed||t===nt.CarriageReturn}function Mh(t){return t===nt.Slash||t===nt.Gt||Fa(t)}function gT(t){return t>=nt.Zero&&t<=nt.Nine}function $ee(t){return t>=nt.LowerA&&t<=nt.LowerZ||t>=nt.UpperA&&t<=nt.UpperZ}function Wee(t){return t>=nt.UpperA&&t<=nt.UpperF||t>=nt.LowerA&&t<=nt.LowerF}var ca;(function(t){t[t.NoValue=0]="NoValue",t[t.Unquoted=1]="Unquoted",t[t.Single=2]="Single",t[t.Double=3]="Double"})(ca||(ca={}));const Ri={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Gee{constructor({xmlMode:e=!1,decodeEntities:n=!0},i){this.cbs=i,this.state=ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ke.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=n,this.entityTrie=e?JP:ZP}reset(){this.state=ke.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=ke.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}getIndex(){return this.index}getSectionStart(){return this.sectionStart}stateText(e){e===nt.Lt||!this.decodeEntities&&this.fastForwardTo(nt.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=ke.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===nt.Amp&&(this.state=ke.BeforeEntity)}stateSpecialStartSequence(e){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?Mh(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=ke.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===nt.Gt||Fa(e)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const i=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=i}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(e);return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ri.TitleEnd?this.decodeEntities&&e===nt.Amp&&(this.state=ke.BeforeEntity):this.fastForwardTo(nt.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(e===nt.Lt)}stateCDATASequence(e){e===Ri.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ri.Cdata.length&&(this.state=ke.InCommentLike,this.currentSequence=Ri.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=ke.InDeclaration,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ri.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=ke.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(e){return this.xmlMode?!Mh(e):$ee(e)}startSpecial(e,n){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=n,this.state=ke.SpecialStartSequence}stateBeforeTagName(e){if(e===nt.ExclamationMark)this.state=ke.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===nt.Questionmark)this.state=ke.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const n=e|32;this.sectionStart=this.index,!this.xmlMode&&n===Ri.TitleEnd[2]?this.startSpecial(Ri.TitleEnd,3):this.state=!this.xmlMode&&n===Ri.ScriptEnd[2]?ke.BeforeSpecialS:ke.InTagName}else e===nt.Slash?this.state=ke.BeforeClosingTagName:(this.state=ke.Text,this.stateText(e))}stateInTagName(e){Mh(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ke.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Fa(e)||(e===nt.Gt?this.state=ke.Text:(this.state=this.isTagStartChar(e)?ke.InClosingTagName:ke.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===nt.Gt||Fa(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=ke.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===nt.Gt||this.fastForwardTo(nt.Gt))&&(this.state=ke.Text,this.baseState=ke.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===nt.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=ke.InSpecialTag,this.sequenceIndex=0):this.state=ke.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===nt.Slash?this.state=ke.InSelfClosingTag:Fa(e)||(this.state=ke.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===nt.Gt?(this.cbs.onselfclosingtag(this.index),this.state=ke.Text,this.baseState=ke.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Fa(e)||(this.state=ke.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===nt.Eq||Mh(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=ke.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===nt.Eq?this.state=ke.BeforeAttributeValue:e===nt.Slash||e===nt.Gt?(this.cbs.onattribend(ca.NoValue,this.index),this.state=ke.BeforeAttributeName,this.stateBeforeAttributeName(e)):Fa(e)||(this.cbs.onattribend(ca.NoValue,this.index),this.state=ke.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===nt.DoubleQuote?(this.state=ke.InAttributeValueDq,this.sectionStart=this.index+1):e===nt.SingleQuote?(this.state=ke.InAttributeValueSq,this.sectionStart=this.index+1):Fa(e)||(this.sectionStart=this.index,this.state=ke.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,n){e===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===nt.DoubleQuote?ca.Double:ca.Single,this.index),this.state=ke.BeforeAttributeName):this.decodeEntities&&e===nt.Amp&&(this.baseState=this.state,this.state=ke.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,nt.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,nt.SingleQuote)}stateInAttributeValueNoQuotes(e){Fa(e)||e===nt.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(ca.Unquoted,this.index),this.state=ke.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===nt.Amp&&(this.baseState=this.state,this.state=ke.BeforeEntity)}stateBeforeDeclaration(e){e===nt.OpeningSquareBracket?(this.state=ke.CDATASequence,this.sequenceIndex=0):this.state=e===nt.Dash?ke.BeforeComment:ke.InDeclaration}stateInDeclaration(e){(e===nt.Gt||this.fastForwardTo(nt.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=ke.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===nt.Gt||this.fastForwardTo(nt.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=ke.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===nt.Dash?(this.state=ke.InCommentLike,this.currentSequence=Ri.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=ke.InDeclaration}stateInSpecialComment(e){(e===nt.Gt||this.fastForwardTo(nt.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=ke.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const n=e|32;n===Ri.ScriptEnd[3]?this.startSpecial(Ri.ScriptEnd,4):n===Ri.StyleEnd[3]?this.startSpecial(Ri.StyleEnd,4):(this.state=ke.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===nt.Number?this.state=ke.BeforeNumericEntity:e===nt.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=ke.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=t4(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];const n=this.trieCurrent&Ir.VALUE_LENGTH;if(n){const i=(n>>14)-1;if(!this.allowLegacyEntity()&&e!==nt.Semi)this.trieIndex+=i;else{const r=this.index-this.entityExcess+1;r>this.sectionStart&&this.emitPartial(this.sectionStart,r),this.entityResult=this.trieIndex,this.trieIndex+=i,this.entityExcess=0,this.sectionStart=this.index+1,i===0&&this.emitNamedEntity()}}}emitNamedEntity(){if(this.state=this.baseState,this.entityResult===0)return;switch((this.entityTrie[this.entityResult]&Ir.VALUE_LENGTH)>>14){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~Ir.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(e|32)===nt.LowerX?(this.entityExcess++,this.state=ke.InHexEntity):(this.state=ke.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const n=this.index-this.entityExcess-1;n+2+ +(this.state===ke.InHexEntity)!==this.index&&(n>this.sectionStart&&this.emitPartial(this.sectionStart,n),this.sectionStart=this.index+Number(e),this.emitCodePoint(QP(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===nt.Semi?this.emitNumericEntity(!0):gT(e)?(this.entityResult=this.entityResult*10+(e-nt.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===nt.Semi?this.emitNumericEntity(!0):gT(e)?(this.entityResult=this.entityResult*16+(e-nt.Zero),this.entityExcess++):Wee(e)?(this.entityResult=this.entityResult*16+((e|32)-nt.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===ke.Text||this.baseState===ke.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===ke.Text||this.state===ke.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===ke.InAttributeValueDq||this.state===ke.InAttributeValueSq||this.state===ke.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const e=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case ke.Text:{this.stateText(e);break}case ke.SpecialStartSequence:{this.stateSpecialStartSequence(e);break}case ke.InSpecialTag:{this.stateInSpecialTag(e);break}case ke.CDATASequence:{this.stateCDATASequence(e);break}case ke.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(e);break}case ke.InAttributeName:{this.stateInAttributeName(e);break}case ke.InCommentLike:{this.stateInCommentLike(e);break}case ke.InSpecialComment:{this.stateInSpecialComment(e);break}case ke.BeforeAttributeName:{this.stateBeforeAttributeName(e);break}case ke.InTagName:{this.stateInTagName(e);break}case ke.InClosingTagName:{this.stateInClosingTagName(e);break}case ke.BeforeTagName:{this.stateBeforeTagName(e);break}case ke.AfterAttributeName:{this.stateAfterAttributeName(e);break}case ke.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(e);break}case ke.BeforeAttributeValue:{this.stateBeforeAttributeValue(e);break}case ke.BeforeClosingTagName:{this.stateBeforeClosingTagName(e);break}case ke.AfterClosingTagName:{this.stateAfterClosingTagName(e);break}case ke.BeforeSpecialS:{this.stateBeforeSpecialS(e);break}case ke.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(e);break}case ke.InSelfClosingTag:{this.stateInSelfClosingTag(e);break}case ke.InDeclaration:{this.stateInDeclaration(e);break}case ke.BeforeDeclaration:{this.stateBeforeDeclaration(e);break}case ke.BeforeComment:{this.stateBeforeComment(e);break}case ke.InProcessingInstruction:{this.stateInProcessingInstruction(e);break}case ke.InNamedEntity:{this.stateInNamedEntity(e);break}case ke.BeforeEntity:{this.stateBeforeEntity(e);break}case ke.InHexEntity:{this.stateInHexEntity(e);break}case ke.InNumericEntity:{this.stateInNumericEntity(e);break}default:this.stateBeforeNumericEntity(e)}this.index++}this.cleanup()}finish(){this.state===ke.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const e=this.buffer.length+this.offset;this.state===ke.InCommentLike?this.currentSequence===Ri.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===ke.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===ke.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===ke.InTagName||this.state===ke.BeforeAttributeName||this.state===ke.BeforeAttributeValue||this.state===ke.AfterAttributeName||this.state===ke.InAttributeName||this.state===ke.InAttributeValueSq||this.state===ke.InAttributeValueDq||this.state===ke.InAttributeValueNq||this.state===ke.InClosingTagName||this.cbs.ontext(this.sectionStart,e)}emitPartial(e,n){this.baseState!==ke.Text&&this.baseState!==ke.InSpecialTag?this.cbs.onattribdata(e,n):this.cbs.ontext(e,n)}emitCodePoint(e){this.baseState!==ke.Text&&this.baseState!==ke.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)}}const bu=new Set(["input","option","optgroup","select","button","datalist","textarea"]),nn=new Set(["p"]),vT=new Set(["th
1877ead","tbody"]),_T=new Set(["dd","dt"]),bT=new Set(["rt","rp"]),qee=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",nn],["h1",nn],["h2",nn],["h3",nn],["h4",nn],["h5",nn],["h6",nn],["select",bu],["input",bu],["output",bu],["button",bu],["datalist",bu],["textarea",bu],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",_T],["dt",_T],["address",nn],["article",nn],["aside",nn],["blockquote",nn],["details",nn],["div",nn],["dl",nn],["fieldset",nn],["figcaption",nn],["figure",nn],["footer",nn],["form",nn],["header",nn],["hr",nn],["main",nn],["nav",nn],["ol",nn],["pre",nn],["section",nn],["table",nn],["ul",nn],["rt",bT],["rp",bT],["tbody",vT],["tfoot",vT]]),jee=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),yT=new Set(["math","svg"]),ET=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Xee=/\s|\//;class Yee{constructor(e,n={}){var i,r,a,s,o;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(i=n.lowerCaseTags)!==null&&i!==void 0?i:!n.xmlMode,this.lowerCaseAttributeNames=(r=n.lowerCaseAttributeNames)!==null&&r!==void 0?r:!n.xmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:Gee)(this.options,this),(o=(s=this.cbs).onparserinit)===null||o===void 0||o.call(s,this)}ontext(e,n){var i,r;const a=this.getSlice(e,n);this.endIndex=n-1,(r=(i=this.cbs).ontext)===null||r===void 0||r.call(i,a),this.startIndex=n}ontextentity(e){var n,i;const r=this.tokenizer.getSectionStart();this.endIndex=r-1,(i=(n=this.cbs).ontext)===null||i===void 0||i.call(n,E2(e)),this.startIndex=r}isVoidElement(e){return!this.options.xmlMode&&jee.has(e)}onopentagname(e,n){this.endIndex=n;let i=this.getSlice(e,n);this.lowerCaseTagNames&&(i=i.toLowerCase()),this.emitOpenTag(i)}emitOpenTag(e){var n,i,r,a;this.openTagStart=this.startIndex,this.tagname=e;const s=!this.options.xmlMode&&qee.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){const o=this.stack.pop();(i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,o,!0)}this.isVoidElement(e)||(this.stack.push(e),yT.has(e)?this.foreignContext.push(!0):ET.has(e)&&this.foreignContext.push(!1)),(a=(r=this.cbs).onopentagname)===null||a===void 0||a.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var n,i;this.startIndex=this.openTagStart,this.attribs&&((i=(n=this.cbs).onopentag)===null||i===void 0||i.call(n,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,n){var i,r,a,s,o,u;this.endIndex=n;let c=this.getSlice(e,n);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(yT.has(c)||ET.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))!this.options.xmlMode&&c==="br"&&((r=(i=this.cbs).onopentagname)===null||r===void 0||r.call(i,"br"),(s=(a=this.cbs).onopentag)===null||s===void 0||s.call(a,"br",{},!0),(u=(o=this.cbs).onclosetag)===null||u===void 0||u.call(o,"br",!1));else{const l=this.stack.lastIndexOf(c);if(l!==-1)if(this.cbs.onclosetag){let d=this.stack.length-l;for(;d--;)this.cbs.onclosetag(this.stack.pop(),d!==0)}else this.stack.length=l;else!this.options.xmlMode&&c==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var n,i;const r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&((i=(n=this.cbs).onclosetag)===null||i===void 0||i.call(n,r,!e),this.stack.pop())}onattribname(e,n){this.startIndex=e;const i=this.getSlice(e,n);this.attribname=this.lowerCaseAttributeNames?i.toLowerCase():i}onattribdata(e,n){this.attribvalue+=this.getSlice(e,n)}onattribentity(e){this.attribvalue+=E2(e)}onattribend(e,n){var i,r;this.endIndex=n,(r=(i=this.cbs).onattribute)===null||r===void 0||r.call(i,this.attribname,this.attribvalue,e===ca.Double?'"':e===ca.Single?"'":e===ca.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const n=e.search(Xee);let i=n<0?e:e.substr(0,n);return this.lowerCaseTagNames&&(i=i.toLowerCase()),i}ondeclaration(e,n){this.endIndex=n;const i=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(i);this.cbs.onprocessinginstruction(`!${r}`,`!${i}`)}this.startIndex=n+1}onprocessinginstruction(e,n){this.endIndex=n;const i=this.getSlice(e,n);if(this.cbs.onprocessinginstruction){const r=this.getInstructionName(i);this.cbs.onprocessinginstruction(`?${r}`,`?${i}`)}this.startIndex=n+1}oncomment(e,n,i){var r,a,s,o;this.endIndex=n,(a=(r=this.cbs).oncomment)===null||a===void 0||a.call(r,this.get
1877Slice(e,n-i)),(o=(s=this.cbs).oncommentend)===null||o===void 0||o.call(s),this.startIndex=n+1}oncdata(e,n,i){var r,a,s,o,u,c,l,d,f,h;this.endIndex=n;const g=this.getSlice(e,n-i);this.options.xmlMode||this.options.recognizeCDATA?((a=(r=this.cbs).oncdatastart)===null||a===void 0||a.call(r),(o=(s=this.cbs).ontext)===null||o===void 0||o.call(s,g),(c=(u=this.cbs).oncdataend)===null||c===void 0||c.call(u)):((d=(l=this.cbs).oncomment)===null||d===void 0||d.call(l,`[CDATA[${g}]]`),(h=(f=this.cbs).oncommentend)===null||h===void 0||h.call(f)),this.startIndex=n+1}onend(){var e,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let i=this.stack.length;i>0;this.cbs.onclosetag(this.stack[--i],!0));}(n=(e=this.cbs).onend)===null||n===void 0||n.call(e)}reset(){var e,n,i,r;(n=(e=this.cbs).onreset)===null||n===void 0||n.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(r=(i=this.cbs).onparserinit)===null||r===void 0||r.call(i,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,n){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let i=this.buffers[0].slice(e-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),i+=this.buffers[0].slice(0,n-this.bufferOffset);return i}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var n,i;if(this.ended){(i=(n=this.cbs).onerror)===null||i===void 0||i.call(n,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)}end(e){var n,i;if(this.ended){(i=(n=this.cbs).onerror)===null||i===void 0||i.call(n,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(e){this.write(e)}done(e){this.end(e)}}const xT=/["&'<>$\x80-\uFFFF]/g,Kee=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),Zee=String.prototype.codePointAt!=null?(t,e)=>t.codePointAt(e):(t,e)=>(t.charCodeAt(e)&64512)===55296?(t.charCodeAt(e)-55296)*1024+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e);function n4(t){let e="",n=0,i;for(;(i=xT.exec(t))!==null;){const r=i.index,a=t.charCodeAt(r),s=Kee.get(a);s!==void 0?(e+=t.substring(n,r)+s,n=r+1):(e+=`${t.substring(n,r)}&#x${Zee(t,r).toString(16)};`,n=xT.lastIndex+=+((a&64512)===55296))}return e+t.substr(n)}function i4(t,e){return function(i){let r,a=0,s="";for(;r=t.exec(i);)a!==r.index&&(s+=i.substring(a,r.index)),s+=e.get(r[0].charCodeAt(0)),a=r.index+1;return s+i.substring(a)}}const Jee=i4(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),Qee=i4(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),ete=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(t=>[t.toLowerCase(),t])),tte=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(t=>[t.toLowerCase(),t])),nte=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function ite(t){return t.replace(/"/g,"&quot;")}function rte(t,e){var n;if(!t)return;const i=((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)===!1?ite:e.xmlMode||e.encodeEntities!=="utf8"?n4:Jee;return Object.keys(t).map(r=>{var a,s;const o=(a=t[r])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(r=(s=tte.get(r))!==null&&s!==void 0?s:r),!e.emptyAttrs&&!e.xmlMode&&o===""?r:`${r}="${i(o)}"`}).join(" ")}const AT=new Set(["area","base","basefont","br","col","command","embed","frame","hr","
1877img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function eg(t,e={}){const n="length"in t?t:[t];let i="";for(let r=0;r<n.length;r++)i+=ate(n[r],e);return i}function ate(t,e){switch(t.type){case cQ:return eg(t.children,e);case _Q:case fQ:return lte(t);case hQ:return fte(t);case vQ:return dte(t);case pQ:case mQ:case gQ:return ute(t,e);case dQ:return cte(t,e)}}const ste=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),ote=new Set(["svg","math"]);function ute(t,e){var n;e.xmlMode==="foreign"&&(t.name=(n=ete.get(t.name))!==null&&n!==void 0?n:t.name,t.parent&&ste.has(t.parent.name)&&(e={...e,xmlMode:!1})),!e.xmlMode&&ote.has(t.name)&&(e={...e,xmlMode:"foreign"});let i=`<${t.name}`;const r=rte(t.attribs,e);return r&&(i+=` ${r}`),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&AT.has(t.name))?(e.xmlMode||(i+=" "),i+="/>"):(i+=">",t.children.length>0&&(i+=eg(t.children,e)),(e.xmlMode||!AT.has(t.name))&&(i+=`</${t.name}>`)),i}function lte(t){return`<${t.data}>`}function cte(t,e){var n;let i=t.data||"";return((n=e.encodeEntities)!==null&&n!==void 0?n:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&nte.has(t.parent.name))&&(i=e.xmlMode||e.encodeEntities!=="utf8"?n4(i):Qee(i)),i}function dte(t){return`<![CDATA[${t.children[0].data}]]>`}function fte(t){return`<!--${t.data}-->`}function hte(t,e){const n=new SQ(void 0,e);return new Yee(n,e).end(t),n.root}var yv,ST;function pte(){if(ST)return yv;ST=1;var t=function(y){return e(y)&&!n(y)};function e(p){return!!p&&typeof p=="object"}function n(p){var y=Object.prototype.toString.call(p);return y==="[object RegExp]"||y==="[object Date]"||a(p)}var i=typeof Symbol=="function"&&Symbol.for,r=i?Symbol.for("react.element"):60103;function a(p){return p.$$typeof===r}function s(p){return Array.isArray(p)?[]:{}}function o(p,y){return y.clone!==!1&&y.isMergeableObject(p)?v(s(p),p,y):p}function u(p,y,_){return p.concat(y).map(function(b){return o(b,_)})}function c(p,y){if(!y.customMerge)return v;var _=y.customMerge(p);return typeof _=="function"?_:v}function l(p){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(p).filter(function(y){return Object.propertyIsEnumerable.call(p,y)}):[]}function d(p){return Object.keys(p).concat(l(p))}function f(p,y){try{return y in p}catch{return!1}}function h(p,y){return f(p,y)&&!(Object.hasOwnProperty.call(p,y)&&Object.propertyIsEnumerable.call(p,y))}function g(p,y,_){var b={};return _.isMergeableObject(p)&&d(p).forEach(function(x){b[x]=o(p[x],_)}),d(y).forEach(function(x){h(p,x)||(f(p,x)&&_.isMergeableObject(y[x])?b[x]=c(x,_)(p[x],y[x],_):b[x]=o(y[x],_))}),b}function v(p,y,_){_=_||{},_.arrayMerge=_.arrayMerge||u,_.isMergeableObject=_.isMergeableObject||t,_.cloneUnlessOtherwiseSpecified=o;var b=Array.isArray(y),x=Array.isArray(p),w=b===x;return w?b?_.arrayMerge(p,y,_):g(p,y,_):o(y,_)}v.all=function(y,_){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(b,x){return v(b,x,_)},{})};var m=v;return yv=m,yv}var mte=pte();const r4=vf(mte);function Ny(t,e,n=()=>{}){if(t===void 0){const i=function(...r){return e(i,...r)};return i}return t>=0?function(...i){return e(Ny(t-1,e,n),...i)}:n}function a4(t,e){let n=0,i=t.length;for(;n<i&&t[n]===e;)++n;for(;i>n&&t[i-1]===e;)--i;return n>0||i<t.length?t.substring(n,i):t}function gte(t,e){let n=t.length;for(;n>0&&t[n-1]===e;)--n;return n<t.length?t.substring(0,n):t}function vte(t){return t.replace(/[\s\S]/g,e=>"\\u"+e.charCodeAt().toString(16).padStart(4,"0"))}function s4(t,e){const n=new Map;for(let i=t.length;i-- >0;){const r=t[i],a=e(r);n.set(a,n.has(a)?r4(r,n.get(a),{arrayMerge:_te}):r)}return[...n.values()].reverse()}const _te=(t,e,n)=>[...e];function ql(t,e){for(const n of e){if(!t)return;t=t[n]}return t}function TT(t,e="a",n=26){const i=[];do t-=1,i.push(t%n),t=t/n>>0;while(t>0);const r=e.charCodeAt(0);return i.reverse().map(a=>String.fromCharCode(r+a)).join("")}const Ev=["I","X","C","M"],wT=["V","L","D"];function MT(t){return[...t+""].map(e=>+e).reverse().map((e,n)=>e%5<4?(e<5?"":wT[n])+Ev[n].repeat(e%5):Ev[n]+(e<5?wT[n]:Ev[n+1])).reverse().join("")}class o4{constructor(e,n=void 0){this.lines=[],this.nextLineWords=[],this.maxLineLength=n||e.wordwrap||Number.MAX_VALUE,this.nextLineAvailableChars=this.maxLineLength,this.wrapCharacters=ql(e,["longWordSplit","wrapCharacters"])||[],this.forceWrapOnLimit=ql(e,["longWordSplit","forceWrapOnLimit"])||!1,this.stashedSpace=!1,this.wordBreakOpportunity=!1}pushWord(e,n=!1){this.nextLineAvailableChars<=0&&!n&&this.startNewLine();const i=this.nextLineWords.length===0,r=e.length+(i?0:1);if(r<=this.nextLineAvailableChars||n)this.nextLineWords.push(e),this.nextLineAvailableChars-=r;else{const[a,...s]=this.splitLongWord(e);i||this.startNewLine(),this.nextLineWords.push(a),this.nextLineAvailableChars-=a.length;for(const o of s)this.startNewLine(),this.nextLineWords.push(o),this.nextLineAvailableChars-=o.length}}popWord(){const e=this.nextLineWords.pop();if(e!==void 0){const n=this.nextLineWords.length===0,i=e.length+(n?0:1);this.nextLineAvailableChars+=i}return e}concatWord(e,n=!1){if(this.wordBreakOpportunity&&e.length>this.nextLineAvailableChars)this.pushWord(e,n),this.wordBreakOpportunity=!1;else{const i=this.popWord();this.pushWord(i?i.concat(e):e,n)}}startNewLine(e=1){this.lines.push(this.nextLineWords),e>1&&this.lines.push(...Array.from({length:e-1},()=>[])),this.nextLineWords=[],this.nextLineAvailableChars=this.maxLineLength}isEmpty(){return this.lines.length===0&&this.nextLineWords.length===0}clear(){this.lines.length=0,this.nextLineWords.length=0,this.nextLineAvailableChars=this.maxLineLength}toString(){return[...this.lines,this.nextLineWords].map(e=>e.join(" ")).join(`
1878`)}splitLongWord(e){const n=[];let i=0;for(;e.length>this.maxLineLength;){const r=e.substring(0,this.maxLineLength),a=e.substring(this.maxLineLength),s=r.lastIndexOf(this.wrapCharacters[i]);if(s>-1)e=r.substring(s+1)+a,n.push(r.substring(0,s+1));else if(i++,i<this.wrapCharacters.length)e=r+a;else{if(this.forceWrapOnLimit){if(n.push(r),e=a,e.length>this.maxLineLength)continue}else e=r+a;break}}return n.push(e),n}}class Af{constructor(e=null){this.next=e}getRoot(){return this.next?this.next:this}}class oa extends Af{constructor(e,n=null,i=1,r=void 0){super(n),this.leadingLineBreaks=i,this.inlineTextBuilder=new o4(e,r),this.rawText="",this.stashedLineBreaks=0,this.isPre=n&&n.isPre,this.isNoWrap=n&&n.isNoWrap}}class CT extends oa{constructor(e,n=null,{interRowLineBreaks:i=1,leadingLineBreaks:r=2,maxLineLength:a=void 0,maxPrefixLength:s=0,prefixAlign:o="left"}={}){super(e,n,r,a),this.maxPrefixLength=s,this.prefixAlign=o,this.interRowLineBreaks=i}}class Po extends oa{constructor(e,n=null,{leadingLineBreaks:i=1,maxLineLength:r=void 0,prefix:a=""}={}){super(e,n,i,r),this.prefix=a}}class DT extends Af{constructor(e=null){super(e),this.rows=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class LT extends Af{constructor(e=null){super(e),this.cells=[],this.isPre=e&&e.isPre,this.isNoWrap=e&&e.isNoWrap}}class ko extends Af{constructor(e,n=null,i=void 0){super(n),this.inlineTextBuilder=new o4(e,i),this.rawText="",this.stashedLineBreaks=0,this.isPre=n&&n.isPre,this.isNoWrap=n&&n.isNoWrap}}class bte extends Af{constructor(e=null,n){super(e),this.transform=n}}function yte(t){return[...t].map(e=>"\\u"+e.charCodeAt(0).toString(16).padStart(4,"0")).join("")}class Ete{constructor(e){this.whitespaceChars=e.preserveNewlines?e.whitespaceCharacters.replace(/\n/g,""):e.whitespaceCharacters;const n=yte(this.whitespaceChars);if(this.leadingWhitespaceRe=new RegExp(`^[${n}]`),this.trailingWhitespaceRe=new RegExp(`[${n}]$`),this.allWhitespaceOrEmptyRe=new RegExp(`^[${n}]*$`),this.newlineOrNonWhitespaceRe=new RegExp(`(\\n|[^\\n${n}])`,"g"),this.newlineOrNonNewlineStringRe=new RegExp("(\\n|[^\\n]+)","g"),e.preserveNewlines){const i=new RegExp(`\\n|[^\\n${n}]+`,"gm");this.shrinkWrapAdd=function(r,a,s=(u=>u),o=!1){if(!r)return;const u=a.stashedSpace;let c=!1,l=i.exec(r);if(l)for(c=!0,l[0]===`
1879`?a.startNewLine():u||this.testLeadingWhitespace(r)?a.pushWord(s(l[0]),o):a.concatWord(s(l[0]),o);(l=i.exec(r))!==null;)l[0]===`
1880`?a.startNewLine():a.pushWord(s(l[0]),o);a.stashedSpace=u&&!c||this.testTrailingWhitespace(r)}}else{const i=new RegExp(`[^${n}]+`,"g");this.shrinkWrapAdd=function(r,a,s=(u=>u),o=!1){if(!r)return;const u=a.stashedSpace;let c=!1,l=i.exec(r);if(l)for(c=!0,u||this.testLeadingWhitespace(r)?a.pushWord(s(l[0]),o):a.concatWord(s(l[0]),o);(l=i.exec(r))!==null;)a.pushWord(s(l[0]),o);a.stashedSpace=u&&!c||this.testTrailingWhitespace(r)}}}addLiteral(e,n,i=!0){if(!e)return;const r=n.stashedSpace;let a=!1,s=this.newlineOrNonNewlineStringRe.exec(e);if(s)for(a=!0,s[0]===`
1881`?n.startNewLine():r?n.pushWord(s[0],i):n.concatWord(s[0],i);(s=this.newlineOrNonNewlineStringRe.exec(e))!==null;)s[0]===`
1882`?n.startNewLine():n.pushWord(s[0],i);n.stashedSpace=r&&!a}testLeadingWhitespace(e){return this.leadingWhitespaceRe.test(e)}testTrailingWhitespace(e){return this.trailingWhitespaceRe.test(e)}testContainsWords(e){return!this.allWhitespaceOrEmptyRe.test(e)}countNewlinesNoWords(e){this.newlineOrNonWhitespaceRe.lastIndex=0;let n=0,i;for(;(i=this.newlineOrNonWhitespaceRe.exec(e))!==null;)if(i[0]===`
1883`)n++;else return 0;return n}}class xte{constructor(e,n,i=void 0){this.options=e,this.picker=n,this.metadata=i,this.whitespaceProcessor=new Ete(e),this._stackItem=new oa(e),this._wordTransformer=void 0}pushWordTransform(e){this._wordTransformer=new bte(this._wordTransformer,e)}popWordTransform(){if(!this._wordTransformer)return;const e=this._wordTransformer.transform;return this._wordTransformer=this._wordTransformer.next,e}startNoWrap(){this._stackItem.isNoWrap=!0}
1883stopNoWrap(){this._stackItem.isNoWrap=!1}_getCombinedWordTransformer(){const e=this._wordTransformer?(i=>u4(i,this._wordTransformer)):void 0,n=this.options.encodeCharacters;return e?n?i=>n(e(i)):e:n}_popStackItem(){const e=this._stackItem;return this._stackItem=e.next,e}addLineBreak(){(this._stackItem instanceof oa||this._stackItem instanceof Po||this._stackItem instanceof ko)&&(this._stackItem.isPre?this._stackItem.rawText+=`
1884`:this._stackItem.inlineTextBuilder.startNewLine())}addWordBreakOpportunity(){(this._stackItem instanceof oa||this._stackItem instanceof Po||this._stackItem instanceof ko)&&(this._stackItem.inlineTextBuilder.wordBreakOpportunity=!0)}addInline(e,{noWordTransform:n=!1}={}){if(this._stackItem instanceof oa||this._stackItem instanceof Po||this._stackItem instanceof ko){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}if(!(e.length===0||this._stackItem.stashedLineBreaks&&!this.whitespaceProcessor.testContainsWords(e))){if(this.options.preserveNewlines){const i=this.whitespaceProcessor.countNewlinesNoWords(e);if(i>0){this._stackItem.inlineTextBuilder.startNewLine(i);return}}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.shrinkWrapAdd(e,this._stackItem.inlineTextBuilder,n?void 0:this._getCombinedWordTransformer(),this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}}addLiteral(e){if((this._stackItem instanceof oa||this._stackItem instanceof Po||this._stackItem instanceof ko)&&e.length!==0){if(this._stackItem.isPre){this._stackItem.rawText+=e;return}this._stackItem.stashedLineBreaks&&this._stackItem.inlineTextBuilder.startNewLine(this._stackItem.stashedLineBreaks),this.whitespaceProcessor.addLiteral(e,this._stackItem.inlineTextBuilder,this._stackItem.isNoWrap),this._stackItem.stashedLineBreaks=0}}openBlock({leadingLineBreaks:e=1,reservedLineLength:n=0,isPre:i=!1}={}){const r=Math.max(20,this._stackItem.inlineTextBuilder.maxLineLength-n);this._stackItem=new oa(this.options,this._stackItem,e,r),i&&(this._stackItem.isPre=!0)}closeBlock({trailingLineBreaks:e=1,blockTransform:n=void 0}={}){const i=this._popStackItem(),r=n?n(Do(i)):Do(i);Ch(this._stackItem,r,i.leadingLineBreaks,Math.max(i.stashedLineBreaks,e))}openList({maxPrefixLength:e=0,prefixAlign:n="left",interRowLineBreaks:i=1,leadingLineBreaks:r=2}={}){this._stackItem=new CT(this.options,this._stackItem,{interRowLineBreaks:i,leadingLineBreaks:r,maxLineLength:this._stackItem.inlineTextBuilder.maxLineLength,maxPrefixLength:e,prefixAlign:n})}openListItem({prefix:e=""}={}){if(!(this._stackItem instanceof CT))throw new Error("Can't add a list item to something that is not a list! Check the formatter.");const n=this._stackItem,i=Math.max(e.length,n.maxPrefixLength),r=Math.max(20,n.inlineTextBuilder.maxLineLength-i);this._stackItem=new Po(this.options,n,{prefix:e,maxLineLength:r,leadingLineBreaks:n.interRowLineBreaks})}closeListItem(){const e=this._popStackItem(),n=e.next,i=Math.max(e.prefix.length,n.maxPrefixLength),r=`
1885`+" ".repeat(i),s=(n.prefixAlign==="right"?e.prefix.padStart(i):e.prefix.padEnd(i))+Do(e).replace(/\n/g,r);Ch(n,s,e.leadingLineBreaks,Math.max(e.stashedLineBreaks,n.interRowLineBreaks))}closeList({trailingLineBreaks:e=2}={}){const n=this._popStackItem(),i=Do(n);i&&Ch(this._stackItem,i,n.leadingLineBreaks,e)}openTable(){this._stackItem=new DT(this._stackItem)}openTableRow(){if(!(this._stackItem instanceof DT))throw new Error("Can't add a table row to something that is not a table! Check the formatter.");this._stackItem=new LT(this._stackItem)}openTableCell({maxColumnWidth:e=void 0}={}){if(!(this._stackItem instanceof LT))throw new Error("Can't add a table cell to something that is not a table row! Check the formatter.");this._stackItem=new ko(this.options,this._stackItem,e)}closeTableCell({colspan:e=1,rowspan:n=1}={}){const i=this._popStackItem(),r=a4(Do(i),`
1886`);i.next.cells.push({colspan:e,rowspan:n,text:r})}closeTableRow(){const e=this._popStackItem();e.next.rows.push(e.cells)}closeTable({tableToString:e,leadingLineBreaks:n=2,trailingLineBreaks:i=2}){const r=this._popStackItem(),a=e(r.rows);a&&Ch(this._stackItem,a,n,i)}toString(){return Do(this._stackItem.getRoot())}}function Do(t){if(!(t instanceof oa||t instanceof Po||t instanceof ko))throw new Error("Only blocks, list items and table cells can be requested for text contents.");return t.inlineTextBuilder.isEmpty()?t.rawText:t.rawText+t.inlineTextBuilder.toString()}function Ch(t,e,n,i){if(!(t instanceof oa||t instanceof Po||t instanceof ko))throw new Error("Only blocks, list items and table cells can contain text.");const r=Do(t),a=Math.max(t.stashedLineBreaks,n);t.inlineTextBuilder.clear(),r?t.rawText=r+`
1887`.repeat(a)+e:(t.rawText=e,t.leadingLineBreaks=a),t.stashedLineBreaks=i}function u4(t,e){return e?u4(e.transform(t),e.next):t}function Ate(t={}){const e=t.selectors.filter(s=>!s.format);if(e.length)throw new Error("Following selectors have no specified format: "+e.map(s=>`\`${s.selector}\``).join(", "));const n=new hT(t.selectors.map(s=>[s.selector,s])).build(mT);typeof t.encodeCharacters!="function"&&(t.encodeCharacters=Mte(t.encodeCharacters));const i=new hT(t.baseElements.selectors.map((s,o)=>[s,o+1])).build(mT);function r(s){return Tte(s,t,i)}const a=Ny(t.limits.maxDepth,wte,function(s,o){o.addInline(t.limits.ellipsis||"")});return function(s,o=void 0){return Ste(s,o,t,n,r,a)}}
1887function Ste(t,e,n,i,r,a){const s=n.limits.maxInputLength;s&&t&&t.length>s&&(console.warn(`Input length ${t.length} is above allowed limit of ${s}. Truncating without ellipsis.`),t=t.substring(0,s));const o=hte(t,{decodeEntities:n.decodeEntities}),u=r(o.children),c=new xte(n,i,e);return a(u,c),c.toString()}function Tte(t,e,n){const i=[];function r(s,o){o=o.slice(0,e.limits.maxChildNodes);for(const u of o){if(u.type!=="tag")continue;const c=n.pick1(u);if(c>0?i.push({selectorIndex:c,element:u}):u.children&&s(u.children),i.length>=e.limits.maxBaseElements)return}}return Ny(e.limits.maxDepth,r)(t),e.baseElements.orderBy!=="occurrence"&&i.sort((s,o)=>s.selectorIndex-o.selectorIndex),e.baseElements.returnDomByDefault&&i.length===0?t:i.map(s=>s.element)}function wte(t,e,n){if(!e)return;const i=n.options;e.length>i.limits.maxChildNodes&&(e=e.slice(0,i.limits.maxChildNodes),e.push({data:i.limits.ellipsis,type:"text"}));for(const a of e)switch(a.type){case"text":{n.addInline(a.data);break}case"tag":{const s=n.picker.pick1(a),o=i.formatters[s.format];o(a,t,n,s.options||{});break}}}function Mte(t){if(!t||Object.keys(t).length===0)return;const e=Object.entries(t).filter(([,a])=>a!==!1),n=new RegExp(e.map(([a])=>`(${vte([...a][0])})`).join("|"),"g"),i=e.map(([,a])=>a),r=(a,...s)=>i[s.findIndex(o=>o)];return a=>a.replace(n,r)}function Cte(t,e,n,i){}function Dte(t,e,n,i){n.addLiteral(i.string||"")}function Lte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),n.addLiteral(i.string||""),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function Rte(t,e,n,i){e(t.children,n)}function Ite(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function l4(t){const e=t.attribs&&t.attribs.length?" "+Object.entries(t.attribs).map(([n,i])=>i===""?n:`${n}=${i.replace(/"/g,"&quot;")}`).join(" "):"";return`<${t.name}${e}>`}function c4(t){return`</${t.name}>`}function Pte(t,e,n,i){n.startNoWrap(),n.addLiteral(l4(t)),n.stopNoWra
1887p(),e(t.children,n),n.startNoWrap(),n.addLiteral(c4(t)),n.stopNoWrap()}function kte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(l4(t)),n.stopNoWrap(),e(t.children,n),n.startNoWrap(),n.addLiteral(c4(t)),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function Ote(t,e,n,i){n.startNoWrap(),n.addLiteral(eg(t,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap()}function Nte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),n.startNoWrap(),n.addLiteral(eg(t,{decodeEntities:n.options.decodeEntities})),n.stopNoWrap(),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function Ute(t,e,n,i){n.addLiteral(i.prefix||""),e(t.children,n),n.addLiteral(i.suffix||"")}var Fte=Object.freeze({__proto__:null,block:Ite,blockHtml:Nte,blockString:Lte,blockTag:kte,inline:Rte,inlineHtml:Ote,inlineString:Dte,inlineSurround:Ute,inlineTag:Pte,skip:Cte});function Jm(t,e){return t[e]||(t[e]=[]),t[e]}function Bte(t,e=0){for(;t[e];)e++;return e}function Vte(t,e){for(let n=0;n<e;n++){const i=Jm(t,n);for(let r=0;r<n;r++){const a=Jm(t,r);
1887if(i[r]||a[n]){const s=i[r];i[r]=a[n],a[n]=s}}}}function Hte(t,e,n,i){for(let r=0;r<t.rowspan;r++){const a=Jm(e,n+r);for(let s=0;s<t.colspan;s++)a[i+s]=t}}function A2(t,e){return t[e]===void 0&&(t[e]=e===0?0:1+A2(t,e-1)),t[e]}function RT(t,e,n,i){t[e+n]=Math.max(A2(t,e+n),A2(t,e)+i)}function zte(t,e,n){const i=[];let r=0;const a=t.length,s=[0];for(let c=0;c<a;c++){const l=Jm(i,c),d=t[c];let f=0;for(let h=0;h<d.length;h++){const g=d[h];f=Bte(l,f),Hte(g,i,c,f),f+=g.colspan,g.lines=g.text.split(`
1888`);const v=g.lines.length;RT(s,c,g.rowspan,v+e)}r=l.length>r?l.length:r}Vte(i,a>r?a:r);const o=[],u=[0];for(let c=0;c<r;c++){let l=0,d;const f=Math.min(a,i[c].length);for(;l<f;)if(d=i[c][l],d){if(!d.rendered){let h=0;for(let g=0;g<d.lines.length;g++){const v=d.lines[g],m=s[l]+g;o[m]=(o[m]||"").padEnd(u[c])+v,h=v.length>h?v.length:h}RT(u,c,d.colspan,h+n),d.rendered=!0}l+=d.rowspan}else{const h=s[l];o[h]=o[h]||"",l++}}return o.join(`
1889`)}function $te(t,e,n,i){n.addLineBreak()}function Wte(t,e,n,i){n.addWordBreakOpportunity()}function Gte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),n.addInline("-".repeat(i.length||n.options.wordwrap||40)),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function qte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function jte(t,e,n,i){n.openBlock({isPre:!0,leadingLineBreaks:i.leadingLineBreaks||2}),e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function Xte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2}),i.uppercase!==!1?(n.pushWordTransform(r=>r.toUpperCase()),e(t.children,n),n.popWordTransform()):e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2})}function Yte(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks||2,reservedLineLength:2}),e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks||2,blockTransform:r=>(i.trimEmptyLines!==!1?a4(r,`
1890`):r).split(`
1891`).map(a=>"> "+a).join(`
1892`)})}function S2(t,e){if(!e)return t;const n=typeof e[0]=="string"?e[0]:"[",i=typeof e[1]=="string"?e[1]:"]";return n+t+i}function d4(t,e,n,i,r){const a=typeof e=="function"?e(t,i,r):t;return a[0]==="/"&&n?gte(n,"/")+a:a}function Kte(t,e,n,i){const r=t.attribs||{},a=r.alt?r.alt:"",s=r.src?d4(r.src,i.pathRewrite,i.baseUrl,n.metadata,t):"",o=s?a?a+" "+S2(s,i.linkBrackets):S2(s,i.linkBrackets):a;n.addInline(o,{noWordTransform:!0})}function Zte(t,e,n,i){function r(){if(i.ignoreHref||!t.attribs||!t.attribs.href)return"";let s=t.attribs.href.replace(/^mailto:/,"");return i.noAnchorUrl&&s[0]==="#"?"":(s=d4(s,i.pathRewrite,i.baseUrl,n.metadata,t),s)}const a=r();if(!a)e(t.children,n);else{let s="";n.pushWordTransform(u=>(u&&(s+=u),u)),e(t.children,n),n.popWordTransform(),i.hideLinkHrefIfSameAsText&&a===s||n.addInline(s?" "+S2(a,i.linkBrackets):a,{noWordTransform:!0})}}function f4(t,e,n,i,r){const a=ql(t,["parent","name"])==="li";let s=0;const o=(t.children||[]).filter(u=>u.type!=="text"||!/^\s*$/.test(u.data)).map(function(u){if(u.name!=="li")return{node:u,prefix:""};const c=a?r().trimStart():r();return c.length>s&&(s=c.length),{node:u,prefix:c}});if(o.length){n.openList({interRowLineBreaks:1,leadingLineBreaks:a?1:i.leadingLineBreaks||2,maxPrefixLength:s,prefixAlign:"left"});for(const{node:u,prefix:c}of o)n.openListItem({prefix:c}),e([u],n),n.closeListItem();n.closeList({trailingLineBreaks:a?1:i.trailingLineBreaks||2})}}function Jte(t,e,n,i){const r=i.itemPrefix||" * ";return f4(t,e,n,i,()=>r)}function Qte(t,e,n,i){let r=Number(t.attribs.start||"1");const a=ene(t.attribs.type);return f4(t,e,n,i,()=>" "+a(r++)+". ")}function ene(t="1"){switch(t){case"a":return e=>TT(e,"a");case"A":return e=>TT(e,"A");case"i":return e=>MT(e).toLowerCase();case"I":return e=>MT(e);case"1":default:return e=>e.toString()}}function tne(t){const e=[],n=[];for(const i of t)i.startsWith(".")?e.push(i.substring(1)):i.startsWith("#")&&n.push(i.substring(1));return{classes:e,ids:n}}function nne(t,e){if(e===!0)return!0;if(!t)return!1;const{classes:n,ids:i}=tne(e),r=(t.class||"").split(" "),a=(t.id||"").split(" ");return r.some(s=>n.includes(s))||a.some(s=>i.includes(s))}function ine(t,e,n,i){return nne(t.attribs,n.options.tables)?h4(t,e,n,i):rne(t,e,n,i)}function rne(t,e,n,i){n.openBlock({leadingLineBreaks:i.leadingLineBreaks}),e(t.children,n),n.closeBlock({trailingLineBreaks:i.trailingLineBreaks})}
1892function h4(t,e,n,i){n.openTable(),t.children.forEach(a),n.closeTable({tableToString:s=>zte(s,i.rowSpacing??0,i.colSpacing??3),leadingLineBreaks:i.leadingLineBreaks,trailingLineBreaks:i.trailingLineBreaks});function r(s){const o=+ql(s,["attribs","colspan"])||1,u=+ql(s,["attribs","rowspan"])||1;n.openTableCell({maxColumnWidth:i.maxColumnWidth}),e(s.children,n),n.closeTableCell({colspan:o,rowspan:u})}function a(s){if(s.type!=="tag")return;const o=i.uppercaseHeaderCells!==!1?u=>{n.pushWordTransform(c=>c.toUpperCase()),r(u),n.popWordTransform()}:r;switch(s.name){case"thead":case"tbody":case"tfoot":case"center":s.children.forEach(a);return;case"tr":{n.openTableRow();for(const u of s.children)if(u.type==="tag")switch(u.name){case"th":{o(u);break}case"td":{r(u);break}}n.closeTableRow();break}}}}var ane=Object.freeze({__proto__:null,anchor:Zte,blockquote:Yte,dataTable:h4,heading:Xte,horizontalLine:Gte,image:Kte,lineBreak:$te,orderedList:Qte,paragraph:qte,pre:jte,table:ine,unorderedList:Jte,wbr:Wte});const sne={baseElements:{selectors:["body"],orderBy:"selectors",returnDomByDefault:!0},decodeEntities:!0,encodeCharacters:{},formatters:{},limits:{ellipsis:"...",maxBaseElements:void 0,maxChildNodes:void 0,maxDepth:void 0,maxInputLength:1<<24},longWordSplit:{forceWrapOnLimit:!1,wrapCharacters:[]},preserveNewlines:!1,selectors:[{selector:"*",format:"inline"},{selector:"a",format:"anchor",options:{baseUrl:null,hideLinkHrefIfSameAsText:!1,ignoreHref:!1,linkBrackets:["[","]"],noAnchorUrl:!0}},{selector:"article",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"aside",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"blockquote",format:"blockquote",options:{leadingLineBreaks:2,trailingLineBreaks:2,trimEmptyLines:!0}},{selector:"br",format:"lineBreak"},{selector:"div",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"footer",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"form",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"h1",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h2",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h3",format:"heading",options:{leadingLineBreaks:3,trailingLineBreaks:2,uppercase:!0}},{selector:"h4",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h5",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"h6",format:"heading",options:{leadingLineBreaks:2,trailingLineBreaks:2,uppercase:!0}},{selector:"header",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"hr",format:"horizontalLine",options:{leadingLineBreaks:2,length:void 0,trailingLineBreaks:2}},{selector:"img",format:"image",options:{baseUrl:null,linkBrackets:["[","]"]}},{selector:"main",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"nav",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"ol",format:"orderedList",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"p",format:"paragraph",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"pre",format:"pre",options:{leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"section",format:"block",options:{leadingLineBreaks:1,trailingLineBreaks:1}},{selector:"table",format:"table",options:{colSpacing:3,leadingLineBreaks:2,maxColumnWidth:60,rowSpacing:0,trailingLineBreaks:2,uppercaseHeaderCells:!0}},{selector:"ul",format:"unorderedList",options:{itemPrefix:" * ",leadingLineBreaks:2,trailingLineBreaks:2}},{selector:"wbr",format:"wbr"}],tables:[],whitespaceCharacters:` 	\r
1893\f​`,wordwrap:80},one=(t,e,n)=>[...t,...e],p4=(t,e,n)=>[...e],une=(t,e,n)=>t.some(i=>typeof i=="object")?one(t,e):p4(t,e);function lne(t={}){return t=r4(sne,t,{arrayMerge:p4,customMerge:e=>e==="selectors"?une:void 0}),t.formatters=Object.assign({},Fte,ane,t.formatters),t.selectors=s4(t.selectors,(e=>e.selector)),dne(t),Ate(t)}function cne(t,e={},n=void 0){return lne(e)(t,n)}function dne(t){if(t.tags){const n=Object.entries(t.tags).map(([i,r])=>({...r,selector:i||"*"}));t.selectors.push(...n),t.selectors=s4(t.selectors,(i=>i.selector))}function e(n,i,r){const a=i.pop();for(const s of i){let o=n[s];o||(o={},n[s]=o),n=o}n[a]=r}if(t.baseElement){const n=t.baseElement;e(t,["baseElements","selectors"],Array.isArray(n)?n:[n])}t.returnDomByDefault!==void 0&&e(t,["baseElements","returnDomByDefault"],t.returnDomByDefault);for(const n of t.selectors)n.format==="anchor"&&ql(n,["options","noLinkBrackets"])&&e(n,["options","linkBrackets"],!1)}function fne(t){return`"${t}"`}function hne(t,e,n=/{([^}]+)}/g){return t.replace(n,(i,r)=>e[r]||i)}
1893const pne=Ht({name:"i18n-helpers",enforce:"post",setup:async()=>{const t=cu(),e=ut(),n=mn(),i=Db(),{typo:r,smartypants:a}=jC(),{locales:s,locale:o,d:u}=e.$i18n;function c(h,{def:g,fill:v}={}){const m=t.site?.translations[h]??g??h;return v?hne(m,v):m}function l(h,g){return(a[g]??a.en)[h]??h}function d(h,g){return h+":"+fne(l(g,o.value))+";"}V$(Ve(()=>`
1894      :root {
1895        ${d("--quote-open","doublequote.open")}
1896        ${d("--quote-close","doublequote.close")}
1897      }
1898    `),{id:"smartypants"});function f(h){if(typeof h!="string")return h;const g=of(h),{host:v,pathname:m,search:p}=g;if(v)return h;let y=y_(m);return s.value.forEach(_=>{y=y.replace(new RegExp(`^/${_.code}(/|$)`),"/")}),y+p}return{provide:{toDate:(h,{unix:g,raw:v=!1}={})=>(g&&(h*=1e3),h=new Date(h),v?h:u(h).replaceAll("/",".")),goto:async h=>{const g=i(f(h));await $a(g.fullPath)},clipText:(h,g=160)=>(h=cne(h||"",{wordwrap:130}),h.length<g||(h=h.substring(0,g-1),h=h.substring(0,h.lastIndexOf(" ")),h+=r.ellipsis),h),trans:c,stripPrefix:f,currentURI:Ve(()=>e8(f(n.currentRoute.value.path)))}}}}),mne=Ht({enforce:"post",async setup(t){const n=C$({mobile:1125}).smallerOrEqual("mobile");return{provide:{layouts:Ve(()=>({mobile:n.value}))}}}}),gne=[HO,qO,bU,EU,xU,AU,TU,XB,YB,ZB,r7,OH,NH,BH,ZH,d$,f$,Pq,Gq,WJ,GJ,qJ,jJ,YJ,KJ,JJ,iQ,rQ,oQ,uQ,pne,mne];function vne(t,e){const n=e/t*100;return 2/Math.PI*100*Math.atan(n/50)}function _ne(t={}){const{duration:e=2e3,throttle:n=200,hideDelay:i=500,resetDelay:r=400}=t,a=t.estimatedProgress||vne,s=ut(),o=hn(0),u=hn(!1),c=hn(!1);let l=!1,d,f,h,g;const v=(D={})=>{_(),c.value=!1,m(0,D)};function m(D=0,O={}){if(s.isHydrating)return;if(D>=100)return y({force:O.force});b(),o.value=D<0?0:D;const M=O.force?0:n;M?f=setTimeout(()=>{u.value=!0,x()},M):(u.value=!0,x())}function p(){h=setTimeout(()=>{u.value=!1,g=setTimeout(()=>{o.value=0},r)},i)}function y(D={}){o.value=100,l=!0,b(),_(),D.error&&(c.value=!0),D.force?(o.value=0,u.value=!1):p()}function _(){clearTimeout(h),clearTimeout(g)}function b(){clearTimeout(f),cancelAnimationFrame(d)}function x(){l=!1;let D;function O(M){if(l)return;D??=M;const S=M-D;o.value=Math.max(0,Math.min(100,a(e,S))),d=requestAnimationFrame(O)}d=requestAnimationFrame(O)}let w=()=>{};{const D=s.hook("page:loading:start",()=>{v()}),O=s.hook("page:loading:end",()=>{y()}),M=s.hook("vue:error",()=>y());w=()=>{M(),D(),O(),b()}}return{_cleanup:w,progress:Ve(()=>o.value),isLoading:Ve(()=>u.value),error:Ve(()=>c.value),start:v,set:m,finish:y,clear:b}}function bne(t={}){const e=ut(),n=e._loadingIndicator||=_ne(t);return Zs()&&(e._loadingIndicatorDeps||=0,e._loadingIndicatorDeps++,Jo(()=>{e._loadingIndicatorDeps--,e._loadingIndicatorDeps===0&&(n._cleanup(),delete e._loadingIndicator)})),n}const yne=qn({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},hideDelay:{type:Number,default:500},resetDelay:{type:Number,default:400},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(t,{slots:e,expose:n}){const{progress:i,isLoading:r,error:a,start:s,finish:o,clear:u}=bne({duration:t.duration,throttle:t.throttle,hideDelay:t.hideDelay,resetDelay:t.resetDelay,estimatedProgress:t.estimatedProgress});return n({progress:i,isLoading:r,error:a,start:s,finish:o,clear:u}),()=>Vt("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${t.height}px`,opacity:r.value?1:0,background:a.value?t.errorColor:t.color||void 0,backgroundSize:`${i.value>0?100/i.value*100:0}% auto`,transform:`scaleX(${i.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},e)}}),m4=(t="RouteProvider")=>qn({name:t,props:{route:{type:Object,required:!0},vnode:Object,vnodeRef:Object,renderKey:String,trackRootNodes:Boolean},setup(e){const n=e.renderKey,i=e.route,r={};for(const a in e.route)Object.defineProperty(r,a,{get:()=>n===e.renderKey?e.route[a]:i[a],enumerable:!0});return Ja(tu,ha(r)),()=>e.vnode?Vt(e.vnode,{ref:e.vnodeRef}):e.vnode}}),Ene=m4(),IT=new WeakMap,xne=qn({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(t,{attrs:e,slots:n,expose:i}){const r=ut(),a=Le(),s=wn(tu,null);let o;i({pageRef:a});const u=wn(iC,null);let c;const l=r.deferHydration();if(r.isHydrating){const f=r.hooks.hookOnce("app:error",l);mn().beforeEach(f)}t.pageKey&&st(()=>t.pageKey,(f,h)=>{f!==h&&r.callHook("page:loading:start")});let d=!1;{const f=mn().beforeResolve(()=>{d=!1});uu(()=>{f()})}return()=>Vt(PC,{name:t.name,route:t.route,...e},{default:f=>{const h=Sne(s,f.route,f.Component),g=s&&s.matched.length===f.route.matched.length;if(!f.Component){if(c&&!g)return c;l();return}if(c&&u&&!u.isCurrent(f.route))return c;
1898if(h&&s&&(!u||u?.isCurrent(s)))return g?c:null;const v=P_(f,t.pageKey),m=Tne(s,f.route,f.Component);!r.isHydrating&&o===v&&!m&&Di(()=>{d=!0,r.callHook("page:loading:end")}),o=v;const p=!!(t.transition??f.route.meta.pageTransition??NE),y=p&&Ane([t.transition,f.route.meta.pageTransition,NE,{onAfterLeave(){delete r._runningTransition,r.callHook("page:transition:finish",f.Component)}}]),_=t.keepalive??f.route.meta.keepalive??P8;return c=OC(p&&y,nU(_,Vt(rb,{suspensible:!0,onPending:()=>{p&&(r._runningTransition=!0),r.callHook("page:start",f.Component)},onResolve:()=>{Di(()=>r.callHook("page:finish",f.Component).then(()=>{if(delete r._runningTransition,!d&&!m)return d=!0,r.callHook("page:loading:end")}).finally(l))}},{default:()=>{const b={key:v||void 0,vnode:n.default?wne(n.default,f):f.Component,route:f.route,renderKey:v||void 0,trackRootNodes:p,vnodeRef:a};if(!_)return Vt(Ene,b);const x=f.Component.type,w=x;let D=IT.get(w);return D||(D=m4(x.name||x.__name),IT.set(w,D)),Vt(D,b)}}))).default(),c}})}});function Ane(t){const e=[];for(const n of t)n&&e.push({...n,onAfterLeave:n.onAfterLeave?_b(n.onAfterLeave):void 0});return A0(...e)}function Sne(t,e,n){if(!t)return!1;const i=e.matched.findIndex(r=>r.components?.default===n?.type);return!i||i===-1?!1:e.matched.slice(0,i).some((r,a)=>r.components?.default!==t.matched[a]?.components?.default)||n&&P_({route:e,Component:n})!==P_({route:t,Component:n})}function Tne(t,e,n){return t?e.matched.findIndex(r=>r.components?.default===n?.type)<e.matched.length-1:!1}function wne(t,e){const n=t(e);return n.length===1?Vt(n[0]):Vt(Zt,void 0,n)}const Mne=qn({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,e){return()=>Vt(Os[t.name],t.layoutProps,e.slots)}}),Cne={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},g4=qn({name:"NuxtLayout",inheritAttrs:!1,props:Cne,setup(t,e){const n=ut(),i=wn(tu),a=!i||i===Js()?kC():i,s=Ve(()=>{let l=ze(t.name)??a?.meta.layout??"default";return l&&!(l in Os)&&t.fallback&&(l=ze(t.fallback)),l}),o=hn();e.expose({layoutRef:o});const u=n.deferHydration();if(n.isHydrating){const l=n.hooks.hookOnce("app:error",u);mn().beforeEach(l)}let c;return()=>{const l=s.value&&s.value in Os,d=a?.meta.layoutTransition??I8,f=c;return c=s.value,OC(l&&d,{default:()=>Vt(rb,{suspensible:!0,onResolve:()=>{Di(u)}},{default:()=>Vt(Dne,{layoutProps:Cr(e.attrs,{ref:o}),key:s.value||void 0,name:s.value,shouldProvide:!t.name,isRenderingNewLayout:h=>h!==f&&h===s.value,hasTransition:!!d},e.slots)})}).default()}}}),Dne=qn({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,e){const n=t.name;t.shouldProvide&&Ja(iC,{isCurrent:a=>n===(a.meta.layout??"default")});const i=wn(tu);if(i&&i===Js()){const a=kC(),s={};for(const o in a){const u=o;Object.defineProperty(s,u,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?a[u]:i[u]})}Ja(tu,ha(s))}return()=>!n||typeof n=="string"&&!(n in Os)?e.slots.default?.():Vt(Mne,{key:n,layoutProps:t.layoutProps,name:n},e.slots)}});function Lne(t){const e=cu(),{currTime:n}=ND(e);t&&st(t,a=>{n.value=a},{immediate:!0});const i=Ve(()=>e.season);return{style:Ve(()=>({"--season-text":i.value.text,"--season-background":i.value.background})),current:i}}function Rne(t){const e=In(t);fb({bodyAttrs:{style:e}})}const Ine={__name:"app",setup(t){const e=cu();mn(),ut();const{style:n}=Lne();F0();const i=lu();hn(null),hn(null),Rne(n);let r=null;return $n(()=>{window.config=function(){if(r=window.open(i({path:"/tools/config"}),"_blank","opener,width=280,height=100"),!r){console.error("Popup blocked!, please allow popups for this site");return}window.addEventListener("message",a=>{a.data.type==="config:change"&&(e.currTime=a.data.date)}),window.addEventListener("beforeunload",a=>{r?.close()})}}),xa(()=>{r?.close()}),(a,s)=>{const o=yne,u=xne,c=g4;return tt(),_t(Zt,null,[Ct(o,{class:"app__loading",color:"black",height:1}),Ct(c,null,{default:gi(()=>[Ct(u)]),_:1})],64)}}},Pne={__name:"Heading",props:{is:{type:[String,Object],default:"h3"}},setup(t){const e=t;return(n,i)=>{const r=_f;return tt(),cn(r,{class:"heading title-moyen",is:e.is},{default:gi(()=>[Yi(n.$slots,"default")]),_:3},8,["is"])}}};var Xc={exports:{}};var kne=Xc.exports,PT;
1898function One(){return PT||(PT=1,(function(t,e){(function(n,i){i(e)})(kne,(function(n){function i(R,G){for(var F=0;F<G.length;F++){var T=G[F];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(R,T.key,T)}}function r(R,G,F){return G&&i(R.prototype,G),R}function a(R,G){R.prototype=Object.create(G.prototype),R.prototype.constructor=R,s(R,G)}function s(R,G){return s=Object.setPrototypeOf||function(T,A){return T.__proto__=A,T},s(R,G)}function o(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}var u=`
1899#ifdef GL_ES
1900precision mediump float;
1901#endif
1902
1903attribute vec4 a_position;
1904attribute vec4 a_normal;
1905attribute vec2 a_texcoord;
1906attribute vec4 a_color;
1907
1908varying vec4 v_position;
1909varying vec4 v_normal;
1910varying vec2 v_texcoord;
1911varying vec4 v_color;
1912`,c=`
1913#ifdef GL_ES
1914precision mediump float;
1915#endif
1916
1917varying vec4 v_position;
1918varying vec4 v_normal;
1919varying vec2 v_texcoord;
1920varying vec4 v_color;
1921`,l=`#version 300 es
1922
1923precision mediump float;
1924
1925in vec4 a_position;
1926in vec4 a_normal;
1927in vec2 a_texcoord;
1928in vec4 a_color;
1929
1930out vec4 v_position;
1931out vec4 v_normal;
1932out vec2 v_texcoord;
1933out vec4 v_color;
1934`,d=`#version 300 es
1935
1936precision mediump float;
1937
1938in vec4 v_position;
1939in vec4 v_normal;
1940in vec2 v_texcoord;
1941in vec4 v_color;
1942
1943out vec4 outColor;
1944`,f=`
1945uniform mat4 u_projectionMatrix;
1946uniform mat4 u_modelViewMatrix;
1947uniform mat4 u_normalMatrix;
1948
1949uniform vec2 u_resolution;
1950uniform float u_time;
1951`,h=`
1952void main() {
1953	v_position = a_position;
1954	v_normal = a_normal;
1955	v_texcoord = a_texcoord;
1956	v_color = a_color;
1957	gl_Position = a_position;
1958}
1959`,g=`
1960void main(void) {
1961	v_position = u_projectionMatrix * u_modelViewMatrix * a_position;
1962	v_normal = u_normalMatrix * a_normal;
1963	v_texcoord = a_texcoord;
1964	v_color = a_color;
1965	gl_Position = v_position;
1966}
1967`,v=`
1968void main() {
1969	vec2 st = gl_FragCoord.xy / u_resolution.xy;
1970	st.x *= u_resolution.x / u_resolution.y;
1971	vec3 color = vec3(
1972		abs(cos(u_time * 0.1)) * st.y,
1973		abs(cos(u_time * 0.2)) * st.y,
1974		abs(sin(u_time)) * st.y
1975	);
1976	gl_FragColor = vec4(color, 1.0);
1977}
1978`,m=`
1979void main() {
1980	vec2 st = gl_FragCoord.xy / u_resolution.xy;
1981	st.x *= u_resolution.x / u_resolution.y;
1982	vec3 color = vec3(
1983		abs(cos(u_time * 0.1)) * st.y,
1984		abs(cos(u_time * 0.2)) * st.y,
1985		abs(sin(u_time)) * st.y
1986	);
1987	outColor = vec4(color, 1.0);
1988}
1989`,p=`
1990void main() {
1991	vec2 uv = v_texcoord;
1992	vec3 color = vec3(
1993		abs(cos(u_time * 0.1)) * uv.y,
1994		abs(cos(u_time * 0.2)) * uv.y,
1995		abs(sin(u_time)) * uv.y
1996	);
1997	float incidence = max(dot(v_normal.xyz, vec3(0.0, 1.0, 0.0)), 0.0);
1998	vec3 light = vec3(0.2) + (vec3(1.0) * incidence);
1999	gl_FragColor = vec4(v_color.rgb * color * light, 1.0);
2000}
2001`,y=`
2002void main() {
2003	vec2 uv = v_texcoord;
2004	vec3 color = vec3(
2005		abs(cos(u_time * 0.1)) * uv.y,
2006		abs(cos(u_time * 0.2)) * uv.y,
2007		abs(sin(u_time)) * uv.y
2008	);
2009	float incidence = max(dot(v_normal.xyz, vec3(0.0, 1.0, 0.0)), 0.0);
2010	vec3 light = vec3(0.2) + (vec3(1.0) * incidence);
2011	outColor = vec4(v_color.rgb * color * light, 1.0);
2012}
2013`,_=`
2014void main(){
2015	gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);
2016}`,b=`
2017void main() {
2018	outColor = vec4(0.0, 0.0, 0.0, 1.0);
2019}
2020`,x=u+f+g,w=l+f+g,D=c+f+v,O=d+f+m,M=c+f+p,S=d+f+y,B=u+f+h,V=l+f+h,z=c+f+_,Q=d+f+b,Z=(function(){function R(){}return R.fetch=function(F){return new Promise(function(T,A){var C=new XMLHttpRequest;C.onload=function(){T(C.response||C.responseText)},C.onerror=function(P){console.log("Common.error",P),A(new Error("Network request failed for url "+F))},C.ontimeout=function(P){A(new Error("Network request failed for url "+F))},C.onabort=function(){A(new Error("Aborted"))},C.open("GET",F,!0),C.send(null)})},R.getResource=function(F,T){T===void 0&&(T="");var A=F.indexOf(":/")===-1?R.join(T,F):F;return A},R.join=function(){for(var F=[],T=arguments.length,A=new Array(T),C=0;C<T;C++)A[C]=arguments[C];return A.forEach(function(P){P.indexOf("/")===0&&(F=[]);var re=R.comps(P);re.forEach(function(pe){switch(pe){case".":break;case"..":F.pop();break;default:F.push(pe)}})}),F.join("/")},R.dirname=function(F){var T=R.comps(F);return T.pop(),T.join("/")},R.comps=function(F){return F.replace(/\/$/,"").split(/\/+/)},R})(),q;(function(R){R[R.None=0]="None",R[R.Error=1]="Error",R[R.Warn=2]="Warn",R[R.Log=3]="Log"})(q||(q={}));var te=(function(){function R(){}return R.log=function(){if(R.enabled&&R.level>=q.Log){var F;
2020(F=console).log.apply(F,arguments)}},R.warn=function(){if(R.enabled&&R.level>=q.Warn){var F;(F=console).warn.apply(F,arguments)}},R.error=function(){if(R.enabled&&R.level>=q.Error){var F;(F=console).error.apply(F,arguments)}},R})();te.level=q.Warn,te.enabled=!0,(function(R){R.WebGl="webgl",R.WebGl2="webgl2"})(n.ContextVersion||(n.ContextVersion={}));var $;(function(R){R.LowP="lowp",R.MediumP="mediump",R.HighP="highp"})($||($={}));var ee;(function(R){R.Flat="flat",R.Box="box",R.Sphere="sphere",R.Torus="torus",R.Mesh="mesh"})(ee||(ee={}));var le={webgl:{flat:{vertex:x,fragment:D},mesh:{vertex:x,fragment:M}},webgl2:{flat:{vertex:w,fragment:O},mesh:{vertex:w,fragment:S}}};(function(R){R[R.BrowserSupport=1]="BrowserSupport",R[R.Other=2]="Other"})(n.ContextError||(n.ContextError={}));var xe=function(){},J=(function(){function R(){}return R.getContext_=function(F,T){for(var A=["webgl","experimental-webgl"],C=null,P=0;P<A.length;++P)try{C=F.getContext(A[P],T)}catch{if(C)break}return C},R.getContext2_=function(F,T){var A=null;try{A=F.getContext("webgl2",T)}catch{}return A},R.getFragmentVertex=function(F,T){var A;if(T){var C=R.inferVersion(T);C===n.ContextVersion.WebGl2&&(T=T.replace(/^\#version\s*300\s*es.*?\n/,""));var P=/(?:^\s*)((?:#if|#elif)(?:\s*)(defined\s*\(\s*VERTEX)(?:\s*\))|(?:#ifdef)(?:\s*VERTEX)(?:\s*))/gm,re=P.exec(T);re!==null&&(A=C===n.ContextVersion.WebGl2?`#version 300 es
2021#define VERTEX
2022`+T:`#define VERTEX
2023`+T)}return A},R.getIncludes=function(F,T){if(T===void 0&&(T=""),F===void 0)return Promise.resolve(F);for(var A=/#include\s*['|"](.*.glsl)['|"]/gm,C=[],P=0,re,pe=function(){C.push(Promise.resolve(F.slice(P,re.index))),P=re.index+re[0].length;var Re=re[1],He=Z.getResource(Re,T),N=Re.indexOf(":/")===-1?Z.dirname(He):"";C.push(Z.fetch(He).then(function(oe){return R.getIncludes(oe,N)}))};(re=A.exec(F))!==null;)pe();return C.push(Promise.resolve(F.slice(P))),Promise.all(C).then(function(we){return we.join("")})},R.isWebGl=function(F){return F instanceof WebGLRenderingContext},R.isWebGl2=function(F){return window.WebGL2RenderingContext&&F instanceof WebGL2RenderingContext},R.inferVersion=function(F,T){var A=F||T;return A&&A.indexOf("#version 300 es")===0?n.ContextVersion.WebGl2:n.ContextVersion.WebGl},R.inferPrecision=function(F){var T=F.match(/precision\s+(.+)\s+float/);return T&&T.length>1&&(R.precision=T[1]),R.precision},R.versionDiffers=function(F,T,A){if(F){var C=this.isWebGl2(F)?n.ContextVersion.WebGl2:n.ContextVersion.WebGl,P=R.inferVersion(T,A);return P!==C}else return!1},R.getBufferVertex=function(F){return this.isWebGl2(F)?V:B},R.getVertex=function(F,T,A){if(A===void 0&&(A=ee.Flat),F)return F;var C=this.inferVersion(F,T);return le[C][A===ee.Flat?"flat":"mesh"].vertex},R.getFragment=function(F,T,A){if(A===void 0&&(A=ee.Flat),T)return T;var C=this.inferVersion(F,T);return le[C][A===ee.Flat?"flat":"mesh"].fragment},R.tryInferContext=function(F,T,A,C,P,re){P===void 0&&(P=[]);function pe(He,N){if(typeof re=="function")re(He);else{var oe=A.parentNode;oe&&(oe.innerHTML='<div class="glsl-canvas--error">'+N+"</div>")}}if(!WebGLRenderingContext)return pe(n.ContextError.BrowserSupport,`This page requires a browser that supports WebGL.<br/>
2024			<a href="http://get.webgl.org">Click here to upgrade your browser.</a>`),null;var we=R.inferContext(F,T,A,C);if(!we)pe(n.ContextError.Other,`It does not appear your computer can support WebGL.<br/>
2025			<a href="http://get.webgl.org/troubleshooting/">Click here for more information.</a>`);else{!this.isWebGl2(we)&&P.indexOf("OES_standard_derivatives")===-1&&P.push("OES_standard_derivatives");var Re=we.getSupportedExtensions();P.forEach(function(He){Re.indexOf(He)!==-1?we.getExtension(He):te.warn("GlslCanvas "+He+" not supported")})}return we},R.tryGetContext=function(F,T,A){function C(re,pe){if(typeof A=="function")A(re);else{var we=F.parentNode;we&&(we.innerHTML='<div class="glsl-canvas--error">'+pe+"</div>")}}if(!WebGLRenderingContext)return C(n.ContextError.BrowserSupport,`This page requires a browser that supports WebGL.<br/>
2026			<a href="http://get.webgl.org">Click here to upgrade your browser.</a>`),null;var P=R.getContext_(F,T);return P?P.getExtension("OES_standard_derivatives"):C(n.ContextError.Other,`It does not appear your computer can support WebGL.<br/>
2027			<a href="http://get.webgl.org/troubleshooting/">Click here for more information.</a>`),P},R.inferContext=function(F,T,A,C){var P=this.inferVersion(F,T);return P===n.ContextVersion.WebGl2?this.getContext2_(A,C):this.getContext_(A,C)},R.createShader=function(F,T,A,C){C===void 0&&(C=0);var P=F.createShader(A);T=T.replace(/precision\s+(.+)\s+float/,"precision "+R.precision+" float"),F.shaderSource(P,T),F.compileShader(P);var re=F.getShaderParameter(P,F.COMPILE_STATUS);if(!re)throw R.lastError=F.getShaderInfoLog(P),te.error("*** Error c
2027ompiling shader: "+R.lastError),F.deleteShader(P),{shader:P,source:T,type:A,error:R.lastError,offset:C};return P},R.createProgram=function(F,T,A,C){for(var P=F.createProgram(),re=0;re<T.length;++re)F.attachShader(P,T[re]);if(A&&C)for(var pe=0;pe<A.length;++pe)F.bindAttribLocation(P,C?C[pe]:pe,A[pe]);F.linkProgram(P),F.validateProgram(P);var we=F.getProgramParameter(P,F.LINK_STATUS);return we?(F.useProgram(P),P):(R.lastError=F.getProgramInfoLog(P),te.error("Error in program linking: "+R.lastError),F.deleteProgram(P),null)},R.createVertexBuffers=function(F,T){var A=new xe,C=F.getAttribLocation(T,"a_texcoord");A.texcoord=F.createBuffer(),F.bindBuffer(F.ARRAY_BUFFER,A.texcoord),F.bufferData(F.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),F.STATIC_DRAW),F.enableVertexAttribArray(C),F.vertexAttribPointer(C,2,F.FLOAT,!1,0,0);var P=F.getAttribLocation(T,"a_position");return A.position=F.createBuffer(),F.bindBuffer(F.ARRAY_BUFFER,A.position),F.bufferData(F.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),F.STATIC_DRAW),F.enableVertexAttribArray(P),F.vertexAttribPointer(P,2,F.FLOAT,!1,0,0),A},R})();J.precision=$.MediumP,J.lastError="";var ye=function(){},H=(function(){function R(){this.values=new ye}var G=R.prototype;return G.has=function(T){return T in this.values},G.set=function(T,A){this.values[T]=A},G.get=function(T){return this.values[T]},G.forEach=function(T){var A=this,C=0;Object.keys(this.values).forEach(function(P){T(A.values[P],C,A.values),C++})},G.reduce=function(T,A){var C=this,P=A,re=0;return Object.keys(this.values).forEach(function(pe){P=T(P,C.values[pe],re,C.values),re++}),P},R})(),ie=(function(){function R(F){F&&(Object.assign(this,F),this.positions&&(this.size=this.positions.length/3))}var G=R.prototype;return G.create=function(T,A){this.createData_(),this.createAttributes_(T,A)},G.createBufferData_=function(T,A,C){var P=T.createBuffer();return T.bindBuffer(A,P),T.bufferData(A,C,T.STATIC_DRAW),P},G.createAttribLocation_=function(T,A,C,P,re){var pe=T.getAttribLocation(A,C);return T.enableVertexAttribArray(pe),T.vertexAttribPointer(pe,P,re,!1,0,0),pe},G.createAttributes_=function(T,A){this.positions&&(this.positionBuffer=this.createBufferData_(T,T.ARRAY_BUFFER,new Float32Array(this.positions)),this.positionLocation=this.createAttribLocation_(T,A,"a_position",this.positions.length/this.size,T.FLOAT),T.bindAttribLocation(A,this.positionLocation,"a_position")),this.texcoords&&(this.texcoordBuffer=this.createBufferData_(T,T.ARRAY_BUFFER,new Float32Array(this.texcoords)),this.texcoordLocation=this.createAttribLocation_(T,A,"a_texcoord",this.texcoords.length/this.size,T.FLOAT),T.bindAttribLocation(A,this.texcoordLocation,"a_texcoord")),this.normals&&(this.normalBuffer=this.createBufferData_(T,T.ARRAY_BUFFER,new Float32Array(this.normals)),this.normalLocation=this.createAttribLocation_(T,A,"a_normal",this.normals.length/this.size,T.FLOAT),T.bindAttribLocation(A,this.normalLocation,"a_normal")),this.colors&&(this.colorBuffer=this.createBufferData_(T,T.ARRAY_BUFFER,new Float32Array(this.colors)),this.colorLocation=this.createAttribLocation_(T,A,"a_color",this.colors.length/this.size,T.FLOAT),T.bindAttribLocation(A,this.colorLocation,"a_color"))},G.attachAttributes_=function(T,A){var C;this.positions&&(C=T.getAttribLocation(A,"a_position"),T.enableVertexAttribArray(C),T.bindBuffer(T.ARRAY_BUFFER,this.positionBuffer),T.vertexAttribPointer(C,this.positions.length/this.size,T.FLOAT,!1,0,0)),this.texcoords&&(C=T.getAttribLocation(A,"a_texcoord"),T.enableVertexAttribArray(this.texcoordLocation),T.bindBuffer(T.ARRAY_BUFFER,this.texcoordBuffer),T.vertexAttribPointer(this.texcoordLocation,this.texcoords.length/this.size,T.FLOAT,!1,0,0)),this.normals&&(C=T.getAttribLocation(A,"a_normal"),T.enableVertexAttribArray(this.normalLocation),T.bindBuffer(T.ARRAY_BUFFER,this.normalBuffer),T.vertexAttribPointer(this.normalLocation,this.normals.length/this.size,T.FLOAT,!1,0,0)),this.colors&&(C=T.getAttribLocation(A,"a_color"),T.enableVertexAttribArray(this.colorLocation),T.bindBuffer(T.ARRAY_BUFFER,this.colorBuffer),T.vertexAttribPointer(this.colorLocation,this.colors.length/this.size,T.FLOAT,!1,0,0))},G.bindAttributes_=function(T,A){this.positions&&T.bindAttribLocation(A,this.positionLocation,"a_position"),this.texcoords&&T.bindAttribLocation(A,this.texcoordLocation,"a_texcoord"),this.normals&&T.bindAttribLocation(A,this.normalLocation,"a_normal"),this.colors&&T.bindAttribLocation(A,this.colorLocation,"a_color")},G.createData_=function(){this.positions=[],this.normals=[],this.texcoords=[],this.colors=[],this.size=0},R.fromIndices=function(T,A,C){var P=[];return T.forEach(function(re){P.push.apply(P,A.slice(re*C,re*C+C))}),P},R})(),_e=(function(R){a(G,R);function G(){return R.apply(this,arguments)||this}var F=G.prototype;return F.createData_=function(){this.size=6,this.positions=[-1,-1,0,1,-1,0,1,1,0,-1,-1,0,1,1,0,-1,1,0],this.texcoords=[0,0,1,0,1,1,0,0,1,1,0,1],this.normals=[0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1],this.colors=[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]},G})(ie);(function(R){R[R.FLOAT=0]="FLOAT",R[R.HALF_FLOAT=1]="HALF_FLOAT"})(n.BufferFloatType||(n.BufferFloatType={}));var W=(function(){function R(F,T,A,C){var P=F.createFramebuffer(),re=R.getTexture(F,T,A,C);F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MIN_FILTER,F.NEAREST),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_MAG_FILTER,F.NEAREST),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_S,F.CLAMP_TO_EDGE),F.texParameteri(F.TEXTURE_2D,F.TEXTURE_WRAP_T,F.CLAMP_TO_EDGE),this.texture=re,this.buffer=P,this.BW=T,this.BH=A,this.index=C}R.getFloatType=function(T){var A;return J.isWebGl2(T)&&(A=T.getExtension("EXT_color_buffer_float"),A)||(A=T.getExtension("OES_texture_float"),A)?T.FLOAT:null},R.getHalfFloatType=function(T){var A;return J.isWebGl2(T)&&(A=T.getExtension("EXT_color_buffer_half_float")||T.getExtension("EXT_color_buffer_float"),A)?T.HALF_FLOAT:(A=T.getExtension("OES_texture_half_float"),A&&A.HALF_FLOAT_OES||null)},R.getInternalFormat=function(T){return J.isWebGl2(T)?T.RGBA16F:T.RGBA},R.getType=function(T){var A;return R.type===n.BufferFloatType.HALF_FLOAT?(A=R.getHalfFloatType(T),A||(R.type=n.BufferFloatType.FLOAT,R.getType(T))):(A=R.getFloatType(T),A||(R.type=n.BufferFloatType.HALF_FLOAT,R.getType(T)))},R.getTexture=function(T,A,C,P){var re=R.getInternalFormat(T),pe=T.RGBA,we=R.getType(T),Re=T.createTexture();T.activeTexture(T.TEXTURE0+P),T.bindTexture(T.TEXTURE_2D,Re),T.texImage2D(T.TEXTURE_2D,0,re,A,C,0,pe,we,null);var He=T.checkFramebufferStatus(T.FRAMEBUFFER);return He!==T.FRAMEBUFFER_COMPLETE?(R.type===n.BufferFloatType.FLOAT?R.type=n.BufferFloatType.HALF_FLOAT:R.type=n.BufferFloatType.FLOAT,R.getTexture(T,A,C,P)):Re};var G=R.prototype;return G.resize=function(T,A,C){if(A!==this.BW||C!==this.BH){var P=this.buffer,re=this.texture,pe=this.index;T.bindFramebuffer(T.FRAMEBUFFER,P);var we=T.checkFramebufferStatus(T.FRAMEBUFFER),Re=Math.min(A,this.BW),He=Math.min(C,this.BH),N,oe=R.getType(T);we===T.FRAMEBUFFER_COMPLETE&&(N=new Float32Array(Re*He*4),T.readPixels(0,0,Re,He,T.RGBA,oe,N)),T.bindFramebuffer(T.FRAMEBUFFER,null);var de=pe+1,he=R.getTexture(T,A,C,de);oe=R.getType(T),T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MIN_FILTER,T.NEAREST),T.texParameteri(T.TEXTURE_2D,T.TEXTURE_MAG_FILTER,T.NEAREST),T.texParameteri(T.TEXTURE_2D,T.TEXTURE_WRAP_S,T.CLAMP_TO_EDGE),T.texParameteri(T.TEXTURE_2D,T.TEXTURE_WRAP_T,T.CLAMP_TO_EDGE),N&&T.texSubImage2D(T.TEXTURE_2D,0,0,0,Re,He,T.RGBA,oe,N);var me=T.createFramebuffer();T.bindFramebuffer(T.FRAMEBUFFER,null),T.deleteTexture(re),T.activeTexture(T.TEXTURE0+pe),T.bindTexture(T.TEXTURE_2D,he),this.index=pe,this.texture=he,this.buffer=me,this.BW=A,this.BH=C}},R})();W.type=n.BufferFloatType.HALF_FLOAT;var be=(function(){function R(F,T,A,C){this.isValid=!1,this.index=F,this.key=T,this.vertexString=A,this.fragmentString=C,this.geometry=new _e}var G=R.prototype;return G.create=function(T,A,C){var P=J.createShader(T,this.vertexString,T.VERTEX_SHADER),re=J.createShader(T,this.fragmentString,T.FRAGMENT_SHADER,1);re?this.isValid=!0:(re=J.createShader(T,J.isWebGl2(T)?Q:z,T.FRAGMENT_SHADER),this.isValid=!1);var pe=J.createProgram(T,[P,re]);if(!pe){this.isValid=!1,T.deleteShader(P),T.deleteShader(re);return}this.geometry.create(T,pe),T.deleteShader(P),T.deleteShader(re);var we=new W(T,A,C,this.index+0),Re=new W(T,A,C,this.index+2);this.program=pe,this.input=we,this.output=Re},G.render=function(T,A,C){T.useProgram(this.program),T.bindFramebuffer(T.FRAMEBUFFER,this.output.buffer),T.framebufferTexture2D(T.FRAMEBUFFER,T.COLOR_ATTACHMENT0,T.TEXTURE_2D,this.output.texture,0);var P=T.checkFramebufferStatus(T.FRAMEBUFFER);P===T.FRAMEBUFFER_COMPLETE&&(T.clearColor(0,0,0,1),T.clear(T.COLOR_BUFFER_BIT|T.DEPTH_BUFFER_BIT)),T.viewport(0,0,A,C),T.drawArrays(T.TRIANGLES,0,this.geometry.size);var re=this.input;this.input=this.output,this.output=re},G.resize=function(T,A,C){T.useProgram(this.program),T.viewport(0,0,A,C),this.input.resize(T,A,C),this.output.resize(T,A,C)},G.destroy=function(T){T.deleteProgram(this.program),this.program=null,this.input=null,this.output=null},R})(),ge=(function(R){a(G,R);function G(){return R.apply(this,arguments)||this}return G.getBuffers=function(T,A,C){var P=new G,re=0;
2027if(A){J.isWebGl2(T)&&(A=A.replace(/^\#version\s*300\s*es\s*\n/,""));for(var pe=/(?:^\s*)((?:#if|#elif)(?:\s*)(defined\s*\(\s*BUFFER_)(\d+)(?:\s*\))|(?:#ifdef)(?:\s*BUFFER_)(\d+)(?:\s*))/gm,we;(we=pe.exec(A))!==null;){var Re=we[3]||we[4],He="u_buffer"+Re,N=J.isWebGl2(T)?`#version 300 es
2028#define BUFFER_`+Re+`
2029`+A:"#define BUFFER_"+Re+`
2030`+A,oe=new be(re,He,C,N);if(oe.create(T,T.drawingBufferWidth,T.drawingBufferHeight),oe.program)P.set(He,oe);else throw"buffer error "+He;re+=4}}return P},r(G,[{key:"count",get:function(){return Object.keys(this.values).length*4}}]),G})(H),De=(function(){function R(F,T){F===void 0&&(F=0),T===void 0&&(T=0),this.isVector2=!0,this.x=F,this.y=T}var G=R.prototype;return G.copy=function(T){return this.x=T.x,this.y=T.y,this},G.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},G.normalize=function(){return this.divideScalar(this.length()||1)},G.divideScalar=function(T){return this.multiplyScalar(1/T)},G.multiplyScalar=function(T){return this.x*=T,this.y*=T,this},G.subVectors=function(T,A){return this.x=T.x-A.x,this.y=T.y-A.y,this},G.addVectors=function(T,A){return this.x=T.x+A.x,this.y=T.y+A.y,this},R})(),ae=(function(){function R(F,T,A){F===void 0&&(F=0),T===void 0&&(T=0),A===void 0&&(A=0),this.isVector3=!0,this.x=F,this.y=T,this.z=A}var G=R.prototype;return G.copy=function(T){return this.x=T.x,this.y=T.y,this.z=T.z,this},G.length=function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},G.normalize=function(){return this.divideScalar(this.length()||1)},G.divideScalar=function(T){return this.multiplyScalar(1/T)},G.multiplyScalar=function(T){return this.x*=T,this.y*=T,this.z*=T,this},G.subVectors=function(T,A){return this.x=T.x-A.x,this.y=T.y-A.y,this.z=T.z-A.z,this},G.addVectors=function(T,A){return this.x=T.x+A.x,this.y=T.y+A.y,this.z=T.z+A.z,this},G.crossVectors=function(T,A){var C=T.x,P=T.y,re=T.z,pe=A.x,we=A.y,Re=A.z;return this.x=P*Re-re*we,this.y=re*pe-C*Re,this.z=C*we-P*pe,this},R})(),Fe=Math.PI,U=Fe/180,K=(function(R){a(G,R);function G(T,A,C){var P;return P=R.call(this)||this,P.position=new ae,P.value=new Float32Array([0,0,0]),P.mouse=null,P.dirty=!1,P.theta=(T||0)*U,P.phi=(A||0)*U,P.radius=C||6,P}var F=G.prototype;return F.down=function(A,C){this.mouse=new De(A,C)},F.move=function(A,C){var P=this.mouse;if(P&&(P.x!==A||P.y!==C)){var re=(A-P.x)*180*U,pe=(C-P.y)*180*U;P.x=A,P.y=C,this.theta+=re,this.phi=Math.max(-60*U,Math.min(60*U,this.phi+pe))}},F.up=function(){this.mouse=null},F.wheel=function(A){this.radius=Math.max(4,Math.min(10,this.radius+A*.02))},G.fromVector=function(A){var C=A.length(),P=Math.acos(A.y/C),re=Math.atan(A.x/A.z);return new G(P,re,C)},G.toArray=function(A){var C=Math.sin(A.phi)*A.radius,P=C*Math.sin(A.theta),re=Math.cos(A.phi)*A.radius,pe=C*Math.cos(A.theta);return[P,re,pe]},G})(ae),ue=1e-6,Se=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var R=0,G=arguments.length;G--;)R+=arguments[G]*arguments[G];return Math.sqrt(R)});function k(){var R=new Se(16);return Se!=Float32Array&&(R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=0,R[12]=0,R[13]=0,R[14]=0),R[0]=1,R[5]=1,R[10]=1,R[15]=1,R}function E(R){return R[0]=1,R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=1,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[10]=1,R[11]=0,R[12]=0,R[13]=0,R[14]=0,R[15]=1,R}function I(R,G){if(R===G){var F=G[1],T=G[2],A=G[3],C=G[6],P=G[7],re=G[11];R[1]=G[4],R[2]=G[8],R[3]=G[12],R[4]=F,R[6]=G[9],R[7]=G[13],R[8]=T,R[9]=C,R[11]=G[14],R[12]=A,R[13]=P,R[14]=re}else R[0]=G[0],R[1]=G[4],R[2]=G[8],R[3]=G[12],R[4]=G[1],R[5]=G[5],R[6]=G[9],R[7]=G[13],R[8]=G[2],R[9]=G[6],R[10]=G[10],R[11]=G[14],R[12]=G[3],R[13]=G[7],R[14]=G[11],R[15]=G[15];return R}function j(R,G){var F=G[0],T=G[1],A=G[2],C=G[3],P=G[4],re=G[5],pe=G[6],we=G[7],Re=G[8],He=G[9],N=G[10],oe=G[11],de=G[12],he=G[13],me=G[14],Ue=G[15],Xe=F*re-T*P,Ge=F*pe-A*P,je=F*we-C*P,Ye=T*pe-A*re,et=T*we-C*re,at=A*we-C*pe,gt=Re*he-He*de,Pt=Re*me-N*de,bt=Re*Ue-oe*de,zt=He*me-N*he,mt=He*Ue-oe*he,it=N*Ue-oe*me,Lt=Xe*it-Ge*mt+je*zt+Ye*bt-et*Pt+at*gt;return Lt?(Lt=1/Lt,R[0]=(re*it-pe*mt+we*zt)*Lt,R[1]=(A*mt-T*it-C*zt)*Lt,R[2]=(he*at-me*et+Ue*Ye)*Lt,R[3]=(N*et-He*at-oe*Ye)*Lt,R[4]=(pe*bt-P*it-we*Pt)*Lt,R[5]=(F*it-A*bt+C*Pt)*Lt,R[6]=(me*je-de*at-Ue*Ge)*Lt,R[7]=(Re*at-N*je+oe*Ge)*Lt,R[8]=(P*mt-re*bt+we*gt)*Lt,R[9]=(T*bt-F*mt-C*gt)*Lt,R[10]=(de*et-he*je+Ue*Xe)*Lt,R[11]=(He*je-Re*et-oe*Xe)*Lt,R[12]=(re*Pt-P*zt-pe*gt)*Lt,R[13]=(F*zt-T*Pt+A*gt)*Lt,R[14]=(he*Ge-de*Ye-me*Xe)*Lt,R[15]=(Re*Ye-He*Ge+N*Xe)*Lt,R):null}function Y(R,G,F){var T=F[0],A=F[1],C=F[2],P,re,pe,we,Re,He,N,oe,de,he,me,Ue;return G===R?(R[12]=G[0]*T+G[4]*A+G[8]*C+G[12],R[13]=G[1]*T+G[5]*A+G[9]*C+G[13],R[14]=G[2]*T+G[6]*A+G[10]*C+G[14],R[15]=G[3]*T+G[7]*A+G[11
2030]*C+G[15]):(P=G[0],re=G[1],pe=G[2],we=G[3],Re=G[4],He=G[5],N=G[6],oe=G[7],de=G[8],he=G[9],me=G[10],Ue=G[11],R[0]=P,R[1]=re,R[2]=pe,R[3]=we,R[4]=Re,R[5]=He,R[6]=N,R[7]=oe,R[8]=de,R[9]=he,R[10]=me,R[11]=Ue,R[12]=P*T+Re*A+de*C+G[12],R[13]=re*T+He*A+he*C+G[13],R[14]=pe*T+N*A+me*C+G[14],R[15]=we*T+oe*A+Ue*C+G[15]),R}function se(R,G,F,T){var A=T[0],C=T[1],P=T[2],re=Math.hypot(A,C,P),pe,we,Re,He,N,oe,de,he,me,Ue,Xe,Ge,je,Ye,et,at,gt,Pt,bt,zt,mt,it,Lt,wt;return re<ue?null:(re=1/re,A*=re,C*=re,P*=re,pe=Math.sin(F),we=Math.cos(F),Re=1-we,He=G[0],N=G[1],oe=G[2],de=G[3],he=G[4],me=G[5],Ue=G[6],Xe=G[7],Ge=G[8],je=G[9],Ye=G[10],et=G[11],at=A*A*Re+we,gt=C*A*Re+P*pe,Pt=P*A*Re-C*pe,bt=A*C*Re-P*pe,zt=C*C*Re+we,mt=P*C*Re+A*pe,it=A*P*Re+C*pe,Lt=C*P*Re-A*pe,wt=P*P*Re+we,R[0]=He*at+he*gt+Ge*Pt,R[1]=N*at+me*gt+je*Pt,R[2]=oe*at+Ue*gt+Ye*Pt,R[3]=de*at+Xe*gt+et*Pt,R[4]=He*bt+he*zt+Ge*mt,R[5]=N*bt+me*zt+je*mt,R[6]=oe*bt+Ue*zt+Ye*mt,R[7]=de*bt+Xe*zt+et*mt,R[8]=He*it+he*Lt+Ge*wt,R[9]=N*it+me*Lt+je*wt,R[10]=oe*it+Ue*Lt+Ye*wt,R[11]=de*it+Xe*Lt+et*wt,G!==R&&(R[12]=G[12],R[13]=G[13],R[14]=G[14],R[15]=G[15]),R)}function Te(R,G,F,T,A){var C=1/Math.tan(G/2),P;return R[0]=C/F,R[1]=0,R[2]=0,R[3]=0,R[4]=0,R[5]=C,R[6]=0,R[7]=0,R[8]=0,R[9]=0,R[11]=-1,R[12]=0,R[13]=0,R[15]=0,A!==1/0?(P=1/(T-A),R[10]=(A+T)*P,R[14]=2*A*T*P):(R[10]=-1,R[14]=-2*T),R}var X=(function(){function R(){this.delay=0,this.current=0,this.delta=0,this.paused=!1,this.start=this.previous=this.now()}var G=R.prototype;return G.now=function(){return performance.now()},G.play=function(){if(this.previous){var T=this.now();this.delay+=T-this.previous,this.previous=T}this.paused=!1},G.pause=function(){this.paused=!0},G.next=function(){var T=this.now();return this.delta=T-this.previous,this.current=T-this.start-this.delay,this.previous=T,this},R})(),ce=function(G,F){this.event=G,this.callback=F},Ie=(function(){function R(){this.listeners=new Set}var G=R.prototype;return G.logListeners=function(){this.listeners.forEach(function(T){return te.log(T)})},G.subscribe=function(T){this.listeners.add(T)},G.unsubscribe=function(T){this.listeners.delete(T)},G.unsubscribeAll=function(){this.listeners.clear()},G.on=function(T,A){return this.listeners.add(new ce(T,A)),this},G.off=function(T,A){var C=this;return A?this.listeners.delete(new ce(T,A)):this.listeners.forEach(function(P){P.event===T&&C.listeners.delete(P)}),this},G.trigger=function(T){for(var A=arguments.length,C=new Array(A>1?A-1:0),P=1;P<A;P++)C[P-1]=arguments[P];return this.listeners.forEach(function(re){re.event===T&&typeof re.callback=="function"&&re.callback.apply(re,C)}),this},R})(),Me=(function(R){a(G,R);function G(){return R.apply(this,arguments)||this}var F=G.prototype;return F.createData_=function(){this.size=36,this.positions=[-1,-1,1,1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,-1,-1,1,-1,1,1,-1,-1,-1,-1,1,1,-1,1,-1,-1,-1,1,-1,-1,1,1,1,1,1,-1,1,-1,1,1,1,1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,-1,1,-1,1,-1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,-1,-1,1,1,1,1,-1,1,-1,-1,-1,-1,-1,1,-1,1,1,-1,-1,-1,-1,1,1,-1,1,-1],this.texcoords=[0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1],this.normals=[0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0];for(var A=[[1,1,1,1],[1,0,0,1],[0,1,0,1],[0,0,1,1],[1,1,0,1],[1,0,1,1]],C=[],P=0;P<A.length;++P){var re=A[P];C=C.concat(re,re,re,re,re,re)}this.colors=C},G})(ie),Oe=(function(R){a(G,R);function G(){return R.apply(this,arguments)||this}var F=G.prototype;return F.createData_=function(){var A=1.4,C=80,P=60,re=0,pe=Math.PI*2,we=0,Re=Math.PI,He=new ae,N=new ae,oe=[],de=[],he=[],me=[],Ue=[],Xe=Math.min(we+Re,Math.PI),Ge,je,Ye=0,et=[];for(je=0;je<=P;je++){var at=[],gt=je/P,Pt=0;for(je==0&&we==0?Pt=.5/C:je==P&&Xe==Math.PI&&(Pt=-.5/C),Ge=0;Ge<=C;Ge++){var bt=Ge/C;He.x=-A*Math.cos(re+bt*pe)*Math.sin(we+gt*Re),He.y=A*Math.cos(we+gt*Re),He.z=A*Math.sin(re+bt*pe)*Math.sin(we+gt*Re),de.push(He.x,He.y,He.z),N.copy(He).normalize(),he.push(N.x,N.y,N.z);var zt=bt+Pt,mt=1-gt;me.push(zt,mt),Ue.push(1,1,1,1),at.push(Ye++)}et.push(at)}for(je=0;je<P;je++)for(Ge=0;Ge<C;Ge++){var it=et[je][Ge+1],Lt=et[je][Ge],wt=et[je+1][Ge],Pn=et[je+1][Ge+1];(je!==0||we>0)&&oe.push(it,Lt,Pn),(je!==P-1||Xe<Math.PI)&&oe.push(Lt,wt,Pn)}this.size=oe.length,this.positions=ie.fromIndices(oe,de,3),this.texcoords=ie.fromIndices(oe,me,2),this.normals=ie.fromIndices(oe,he,3),this.colors=ie.fromIndices(oe,Ue,4)},G})(ie),$e=(function(R){a(G,R);function G(){return R.apply(this,arguments)||this}var F=G.prototype;return F.createData_=function(){for(var A=1,C=.25,P=200,re=40,pe=2,we=3,Re=[],He=[],N=[],oe=[],de=[],he=new ae,me=new ae,Ue=new ae,Xe=new ae,Ge=new ae,je=new ae,Ye=new ae,et=0;et<=P;++et){var at=et/P*pe*Math.PI*2;
2030this.calculatePositionOnCurve(at,pe,we,A,Ue),this.calculatePositionOnCurve(at+.01,pe,we,A,Xe),je.subVectors(Xe,Ue),Ye.addVectors(Xe,Ue),Ge.crossVectors(je,Ye),Ye.crossVectors(Ge,je),Ge.normalize(),Ye.normalize();for(var gt=0;gt<=re;++gt){var Pt=gt/re*Math.PI*2,bt=-C*Math.cos(Pt),zt=C*Math.sin(Pt);he.x=Ue.x+(bt*Ye.x+zt*Ge.x),he.y=Ue.y+(bt*Ye.y+zt*Ge.y),he.z=Ue.z+(bt*Ye.z+zt*Ge.z),He.push(he.x,he.y,he.z),me.subVectors(he,Ue).normalize(),N.push(me.x,me.y,me.z),oe.push(et/P*2*Math.round(we)),oe.push(gt/re),de.push(1,1,1,1)}}for(var mt=1;mt<=P;mt++)for(var it=1;it<=re;it++){var Lt=(re+1)*(mt-1)+(it-1),wt=(re+1)*mt+(it-1),Pn=(re+1)*mt+it,Aa=(re+1)*(mt-1)+it;Re.push(Lt,wt,Aa),Re.push(wt,Pn,Aa)}this.size=Re.length,this.positions=ie.fromIndices(Re,He,3),this.texcoords=ie.fromIndices(Re,oe,2),this.normals=ie.fromIndices(Re,N,3),this.colors=ie.fromIndices(Re,de,4)},F.calculatePositionOnCurve=function(A,C,P,re,pe){var we=Math.cos(A),Re=Math.sin(A),He=P/C*A,N=Math.cos(He);pe.x=re*(2+N)*.5*we,pe.y=re*(2+N)*Re*.5,pe.z=re*Math.sin(He)*.5},G})(ie),Be=[[1,1,1],[1,0,0],[0,1,0],[0,0,1],[1,1,0],[0,1,1]],Ne=0,lt=(function(){function R(){}var G=R.prototype;return G.load=function(T){var A=this;return new Promise(function(C,P){Z.fetch(T).then(function(re){var pe=A.parse(re);if(pe.positions.length){var we=new ie(pe);C(we)}else P("ObjLoader error: empty positions "+T)},function(re){console.log("ObjLoader error:",re,T),P(re)})})},G.parseIndices=function(T,A,C,P,re,pe){for(var we=0;we<=T.length-3;){var Re=void 0,He=void 0,N=void 0;we===0?(Re=we,He=we+1,N=we+2):(Re=we-1,He=we+1,N=we+2),we++;for(var oe=[Re,He,N],de=0;de<oe.length;de++){var he=T[oe[de]][A],me=void 0;he&&he!==NaN&&(me=P[he-1],me&&(me=me.slice(0,C),re.push.apply(re,me)))}}},G.parseFaces=function(T,A,C,P,re,pe,we,Re){var He=this,N=re.length;T.forEach(function(he){He.parseIndices(he,0,3,A,re,"positions"),He.parseIndices(he,2,3,C,pe,"normals"),He.parseIndices(he,1,2,P,we,"texcoords")});var oe=re.length-N;if(oe>0){var de=new Array(oe/3).fill(0);de.forEach(function(){var he=Be[Ne%Be.length];Re.push(he[0],he[1],he[2],1)}),Ne++}},G.parse=function(T){var A=this,C=[],P=[],re=[],pe=[];Ne=0;var we=[],Re=[],He=[],N=[];T.indexOf(`\r
2031`)!==-1&&(T=T.replace(/\r\n/g,`
2032`)),T=T.replace(/  /g," ");var oe=T.split(`
2033`);oe.forEach(function(Ye,et){if(Ye.indexOf("v ")===0){N.length&&(A.parseFaces(N,we,Re,He,C,P,re,pe),N=[]);var at=Ye.replace("v","").trim().split(" "),gt=at.map(function(Pn){return parseFloat(Pn)});we.push(gt)}else if(Ye.indexOf("vn ")===0){var Pt=Ye.replace("vn","").trim().split(" "),bt=Pt.map(function(Pn){return parseFloat(Pn)}),zt=new ae(bt[0],bt[1],bt[2]).normalize();Re.push([zt.x,zt.y,zt.z])}else if(Ye.indexOf("vt ")===0){var mt=Ye.replace("vt","").trim().split(" "),it=mt.map(function(Pn){return parseFloat(Pn)});He.push(it)}else if(Ye.indexOf("f ")===0){var Lt=Ye.replace("f","").trim().split(" "),wt=Lt.map(function(Pn){var Aa=Pn.split("/").map(function(ro){return parseInt(ro)});return Aa.length===2&&Aa.push(null),Aa});N[N.length]=wt}}),N.length&&this.parseFaces(N,we,Re,He,C,P,re,pe);for(var de={min:new ae(Number.POSITIVE_INFINITY),max:new ae(Number.NEGATIVE_INFINITY)},he=0;he<C.length;he+=3)de.min.x=Math.min(de.min.x,C[he]),de.min.y=Math.min(de.min.y,C[he+1]),de.min.z=Math.min(de.min.z,C[he+2]),de.max.x=Math.max(de.max.x,C[he]),de.max.y=Math.max(de.max.y,C[he+1]),de.max.z=Math.max(de.max.z,C[he+2]);for(var me=-(de.min.x+de.max.x)/2,Ue=-(de.min.y+de.max.y)/2,Xe=-(de.min.z+de.max.z)/2,Ge=0;Ge<C.length;Ge+=3)C[Ge]+=me,C[Ge+1]+=Ue,C[Ge+2]+=Xe;var je=C.reduce(function(Ye,et){return Math.max(Ye,et)},0);
2033return C.forEach(function(Ye,et){return C[et]=Ye/je*2}),P.length||(P=C.slice()),re.length||(re=this.unrapUvw(C)),{positions:C,normals:P,texcoords:re,colors:pe}},G.unrapUvw=function(T){for(var A=[],C=0;C<T.length;C+=3){var P=new ae(T[C],T[C+1],T[C+2]);P.normalize();var re=Math.asin(-P.y),pe=Math.atan2(P.x,P.z),we=.5+re/Math.PI,Re=.5+pe/(Math.PI*2);A.push(we,Re)}return A},R})(),Ze=["jpg","jpeg","png"],ct=["ogv","webm","mp4"],ft=Ze.concat(ct);(function(R){R[R.Data=0]="Data",R[R.Element=1]="Element",R[R.Url=2]="Url"})(n.TextureSourceType||(n.TextureSourceType={})),(function(R){R.MipMap="mipmap",R.Linear="linear",R.Nearest="nearest"})(n.TextureFilteringType||(n.TextureFilteringType={}));function pt(R){return"data"in R&&"width"in R&&"height"in R}var Je=(function(R){a(G,R);function G(T,A,C,P,re){var pe;return P===void 0&&(P={filtering:n.TextureFilteringType.Linear}),pe=R.call(this)||this,pe.valid=!1,pe.dirty=!1,pe.animated=!1,pe.powerOf2=!1,pe.key=A,pe.index=C,pe.options=P,pe.workpath=re,pe.create(T),pe}G.isPowerOf2=function(A){return(A&A-1)===0},G.isSafari=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},G.isTextureUrl=function(A){return A&&/\.(jpg|jpeg|png|ogv|webm|mp4)$/i.test(A.split("?")[0])},G.isTexture=function(A){var C=G.getTextureOptions(A);return C!==void 0},G.getMaxTextureSize=function(A){return A.getParameter(A.MAX_TEXTURE_SIZE)},G.getTextureOptions=function(A,C){if(C===void 0&&(C={}),typeof A=="string"&&A!==""){if(G.isTextureUrl(A))return C.url=A,A.indexOf("?")!==-1&&(C=A.split("?")[1].split("&").reduce(function(P,re){var pe=re.split("="),we=decodeURIComponent(pe[0]),Re=decodeURIComponent(pe[1]);switch(we){case"filtering":P[we]=Re;break;case"repeat":case"UNPACK_FLIP_Y_WEBGL":P[we]=!!Re;break;case"UNPACK_PREMULTIPLY_ALPHA_WEBGL":case"TEXTURE_WRAP_S":case"TEXTURE_WRAP_T":P[we]=Number(Re);break}return P},C)),C;document&&(A=document.querySelector(A))}return A instanceof HTMLCanvasElement||A instanceof HTMLImageElement||A instanceof HTMLVideoElement?(C.element=A,C):pt(A)?(C.data=A.data,C.width=A.width,C.height=A.height,C):null};var F=G.prototype;return F.create=function(A){this.texture=A.createTexture(),this.texture&&(this.valid=!0),this.setData(A,1,1,new Uint8Array([0,0,0,0]),this.options)},F.load=function(A,C){return C===void 0&&(C={}),this.options=C,typeof C.url=="string"?this.url===void 0||C.url!==this.url?this.setUrl(A,C.url,C):Promise.resolve(this):C.element?this.setElement(A,C.element,C):C.data&&C.width&&C.height?this.setData(A,C.width,C.height,C.data,C):Promise.reject(this)},F.setUrl=function(A,C,P){if(P===void 0&&(P={}),!this.valid)return Promise.reject(this);this.url=C,this.source=C,this.sourceType=n.TextureSourceType.Url,this.options=Object.assign(this.options,P);var re=C.split("?")[0].split(".").pop().toLowerCase(),pe=ct.indexOf(re)!==-1,we=Z.getResource(C,this.workpath),Re,He;return pe?(te.log("GlslCanvas.setUrl video",we),Re=document.createElement("video"),Re.setAttribute("preload","auto"),Re.setAttribute("loop","true"),Re.setAttribute("muted","true"),Re.setAttribute("playsinline","true"),Re.loop=!0,Re.muted=!0,He=this.setElement(A,Re,P),Re.src=we,Re.addEventListener("canplay",function(){Re.play()})):(te.log("GlslCanvas.setUrl image",we),Re=document.createElement("img"),He=this.setElement(A,Re,P),G.isSafari()&&C.slice(0,5)==="data:"||(Re.crossOrigin="anonymous"),Re.src=we),He},F.setElement=function(A,C,P){var re=this;return P===void 0&&(P={}),P=this.options=Object.assign(this.options,P),new Promise(function(pe,we){var Re=C;if(typeof C=="string"&&(C=document.querySelector(C)),C instanceof HTMLCanvasElement||C instanceof HTMLImageElement||C instanceof HTMLVideoElement)if(re.source=C,re.sourceType=n.TextureSourceType.Element,C instanceof HTMLVideoElement){var He=C;He.addEventListener("loadeddata",function(oe){re.update(A,P),re.setFiltering(A,P),pe(re)}),He.addEventListener("error",function(oe){we(oe)}
2033),He.load()}else C instanceof HTMLImageElement?(C.addEventListener("load",function(){re.update(A,P),re.setFiltering(A,P),pe(re)}),C.addEventListener("error",function(oe){we(oe)})):(re.update(A,P),re.setFiltering(A,P),pe(re));else{var N="the 'element' parameter (`element: "+JSON.stringify(Re)+"`) must be a CSS selector string, or a <canvas>, <image> or <video> object";te.log("Texture '"+re.key+"': "+N,P),we(N)}})},F.setData=function(A,C,P,re,pe){return pe===void 0&&(pe={}),this.width=C,this.height=P,this.options=Object.assign(this.options,pe),this.source=re,this.sourceType=n.TextureSourceType.Data,this.update(A,pe),this.setFiltering(A,pe),Promise.resolve(this)},F.update=function(A,C){if(this.valid){if(A.activeTexture(A.TEXTURE0+this.index),A.bindTexture(A.TEXTURE_2D,this.texture),A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL,C.UNPACK_FLIP_Y_WEBGL===!1?0:1),A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,C.UNPACK_PREMULTIPLY_ALPHA_WEBGL||0),this.sourceType===n.TextureSourceType.Element)this.source instanceof HTMLImageElement&&this.source.naturalWidth&&this.source.naturalHeight?(this.width=this.source.naturalWidth,this.height=this.source.naturalHeight,A.texImage2D(A.TEXTURE_2D,0,A.RGBA,A.RGBA,A.UNSIGNED_BYTE,this.source)):this.source instanceof HTMLVideoElement&&this.source.videoWidth&&this.source.videoHeight?(this.width=this.source.videoWidth,this.height=this.source.videoHeight,A.texImage2D(A.TEXTURE_2D,0,A.RGBA,A.RGBA,A.UNSIGNED_BYTE,this.source)):this.source instanceof HTMLCanvasElement&&(this.width=this.source.width,this.height=this.source.height,A.texImage2D(A.TEXTURE_2D,0,A.RGBA,A.RGBA,A.UNSIGNED_BYTE,this.source));else if(this.sourceType===n.TextureSourceType.Data){var P=this.source;A.texImage2D(A.TEXTURE_2D,0,A.RGBA,this.width,this.height,0,A.RGBA,A.UNSIGNED_BYTE,P)}this.trigger("loaded",this)}},F.tryUpdate=function(A){var C=!1;return this.animated&&(C=!0,this.update(A,this.options)),C},F.destroy=function(A){this.valid&&(A.deleteTexture(this.texture),this.texture=null,delete this.source,this.source=null,this.valid=!1)},F.setFiltering=function(A,C){if(this.valid){var P=G.isPowerOf2(this.width)&&G.isPowerOf2(this.height),re=C.filtering||n.TextureFilteringType.MipMap,pe=C.TEXTURE_WRAP_S||(C.repeat?A.REPEAT:A.CLAMP_TO_EDGE),we=C.TEXTURE_WRAP_T||(C.repeat?A.REPEAT:A.CLAMP_TO_EDGE);P||(re=re===n.TextureFilteringType.MipMap?n.TextureFilteringType.Linear:re,pe=we=A.CLAMP_TO_EDGE,(C.repeat||C.TEXTURE_WRAP_S||C.TEXTURE_WRAP_T)&&te.warn("GlslCanvas: cannot repeat texture "+C.url+" cause is not power of 2.")),this.powerOf2=P,this.filtering=re,A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,pe),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,we),this.filtering===n.TextureFilteringType.MipMap?(A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.LINEAR_MIPMAP_LINEAR),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.LINEAR),A.generateMipmap(A.TEXTURE_2D)):this.filtering===n.TextureFilteringType.Nearest?(A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.NEAREST),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.NEAREST)):this.filtering===n.TextureFilteringType.Linear&&(A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,A.LINEAR),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,A.LINEAR))}},G})(Ie),L=(function(R){a(G,R);function G(){var T;return T=R.apply(this,arguments)||this,T.count=0,T.dirty=!1,T.animated=!1,T}var F=G.prototype;return F.clean=function(){var A=this;Object.keys(this.values).forEach(function(C){A.values[C].dirty=!1}),this.dirty=!1},F.createOrUpdate=function(A,C,P,re,pe,we){var Re=this;re===void 0&&(re=0),pe===void 0&&(pe={});var He,N=Je.getTextureOptions(P,pe);return He=this.get(C),He||(He=new Je(A,C,re+this.count,N,we),this.count++,this.set(C,He)),N!==void 0?He.load(A,N).then(function(oe){if(oe.source instanceof HTMLVideoElement){var de=oe.source;de.addEventListener("play",function(){oe.animated=!0,Re.animated=!0}),de.addEventListener("pause",function(){oe.animated=!1,Re.animated=Re.reduce(function(he,me){return he||me.animated},!1)}),de.addEventListener("seeked",function(){oe.update(A,oe.options),Re.dirty=!0})}return oe}):Promise.resolve(He)},G}
2033)(H);(function(R){R[R.Unknown=0]="Unknown",R.Uniform1i="uniform1i",R.Uniform2i="uniform2i",R.Uniform3i="uniform3i",R.Uniform4i="uniform4i",R.Uniform1f="uniform1f",R.Uniform2f="uniform2f",R.Uniform3f="uniform3f",R.Uniform4f="uniform4f",R.Uniform1iv="uniform1iv",R.Uniform2iv="uniform2iv",R.Uniform3iv="uniform3iv",R.Uniform4iv="uniform4iv",R.Uniform1fv="uniform1fv",R.Uniform2fv="uniform2fv",R.Uniform3fv="uniform3fv",R.Uniform4fv="uniform4fv",R.UniformMatrix2fv="uniformMatrix2fv",R.UniformMatrix3fv="uniformMatrix3fv",R.UniformMatrix4fv="uniformMatrix4fv"})(n.UniformMethod||(n.UniformMethod={})),(function(R){R[R.Unknown=0]="Unknown",R[R.Float=1]="Float",R[R.Int=2]="Int",R[R.Bool=3]="Bool",R[R.Sampler2D=4]="Sampler2D",R[R.SamplerCube=5]="SamplerCube",R[R.Matrix2fv=6]="Matrix2fv",R[R.Matrix3fv=7]="Matrix3fv",R[R.Matrix4fv=8]="Matrix4fv"})(n.UniformType||(n.UniformType={}));var Ae=[n.UniformMethod.Uniform1i,n.UniformMethod.Uniform2i,n.UniformMethod.Uniform3i,n.UniformMethod.Uniform4i],Pe=[n.UniformMethod.Uniform1f,n.UniformMethod.Uniform2f,n.UniformMethod.Uniform3f,n.UniformMethod.Uniform4f],We=[n.UniformMethod.Uniform1iv,n.UniformMethod.Uniform2iv,n.UniformMethod.Uniform3iv,n.UniformMethod.Uniform4iv],Qe=[n.UniformMethod.Uniform1fv,n.UniformMethod.Uniform2fv,n.UniformMethod.Uniform3fv,n.UniformMethod.Uniform4fv],yt=function(G){var F=this;switch(this.dirty=!0,G&&Object.assign(this,G),this.method){case n.UniformMethod.UniformMatrix2fv:case n.UniformMethod.UniformMatrix3fv:case n.UniformMethod.UniformMatrix4fv:this.apply=function(T,A){if(F.dirty){T.useProgram(A);var C=T.getUniformLocation(A,F.key);T[F.method].apply(T,[C,!1].concat(F.values))}};break;default:this.apply=function(T,A){if(F.dirty){T.useProgram(A);var C=T.getUniformLocation(A,F.key);T[F.method].apply(T,[C].concat(F.values))}}}},Et=(function(R){a(G,R);function G(F){return R.call(this,F)||this}return G})(yt),jt=(function(R){a(G,R);function G(){var T;return T=R.apply(this,arguments)||this,T.dirty=!1,T}G.isArrayOfInteger=function(A){return A.reduce(function(C,P){return C&&Number.isInteger(P)},!0)},G.isArrayOfNumber=function(A){return A.reduce(function(C,P){return C&&typeof P=="number"},!0)},G.isArrayOfBoolean=function(A){return A.reduce(function(C,P){return C&&typeof P=="boolean"},!0)},G.isArrayOfTexture=function(A){return A.reduce(function(C,P){return C&&Je.isTexture(P)},!0)},G.isArrayOfSampler2D=function(A){return A.reduce(function(C,P){return C&&P.type===n.UniformType.Sampler2D},!0)},G.getType_=function(A){var C=n.UniformType.Unknown,P=A.length===1&&Array.isArray(A[0]),re=P?A[0]:A;return G.isArrayOfNumber(re)?C=n.UniformType.Float:G.isArrayOfBoolean(re)?C=n.UniformType.Bool:G.isArrayOfTexture(re)&&(C=n.UniformType.Sampler2D),C},G.getMethod_=function(A,C){var P=n.UniformMethod.Unknown,re=C.length===1&&Array.isArray(C[0]),pe=re?C[0]:C,we=pe.length,Re=we-1;switch(A){case n.UniformType.Float:re?P=Re<Qe.length?Qe[Re]:n.UniformMethod.Unknown:P=Re<Pe.length?Pe[Re]:n.UniformMethod.Uniform1fv;break;case n.UniformType.Int:case n.UniformType.Bool:re?P=Re<We.length?We[Re]:n.UniformMethod.Unknown:P=Re<Ae.length?Ae[Re]:n.UniformMethod.Uniform1iv;break;case n.UniformType.Sampler2D:re?P=n.UniformMethod.Uniform1iv:P=we===1?n.UniformMethod.Uniform1i:n.UniformMethod.Uniform1iv;break}return P},G.parseUniform=function(A,C,P){P===void 0&&(P=null);var re;P=P||G.getType_(C);var pe=G.getMethod_(P,C);if(P!==n.UniformType.Unknown&&pe!==n.UniformMethod.Unknown){if(P===n.UniformType.Sampler2D&&pe===n.UniformMethod.Uniform1iv)return C[0].map(function(we,Re){return new yt({method:pe,type:P,key:A+"["+Re+"]",values:[we]})});re=new yt({method:pe,type:P,key:A,values:C})}else te.error("Uniforms.parseUniform.Unknown",A,C);return re};var F=G.prototype;return F.create=function(A,C,P,re){var pe=new yt({method:A,type:C,key:P,values:re});return this.set(P,pe),this.dirty=!0,pe},F.createTexture=function(A,C){var P;return A.indexOf("]")!==-1?P=new Et({method:n.UniformMethod.Uniform1iv,type:n.UniformType.Sampler2D,key:A,values:[[C]]}):P=new Et({method:n.UniformMethod.Uniform1i,type:n.UniformType.Sampler2D,key:A,values:[C]}),this.set(A,P),this.dirty=!0,P},F.update=function(A,C,P,re){var pe=this.get(P);pe&&(pe.method=A,pe.type=C,pe.values=re,pe.dirty=!0,this.dirty=!0)},F.createOrUpdate=function(A,C,P,re){this.has(P)?this.update(A,C,P,re):this.create(A,C,P,re)},F.apply=function(A,C){var P=this;
2033A.useProgram(C),Object.keys(this.values).forEach(function(re){P.values[re].apply(A,C)})},F.clean=function(){var A=this;Object.keys(this.values).forEach(function(C){A.values[C].dirty=!1}),this.dirty=!1},G.isDifferent=function(A,C){return A.length!==C.length||A.reduce(function(P,re,pe){return P||re!==C[pe]},!1)},G})(H),Cn=(function(R){a(G,R);function G(){var T;return T=R.call(this)||this,T.uniforms=new jt,T.buffers=new ge,T.textures=new L,T.textureList=[],T.W=0,T.H=0,T.mouse=new De,T.radians=0,T.dirty=!0,T.animated=!1,T.camera=new K,T.cache={},T.drawFunc_=T.drawArrays_,T}var F=G.prototype;return F.render=function(){var A=this,C=this.gl;if(C){var P=C.drawingBufferWidth,re=C.drawingBufferHeight;this.update_(),C.viewport(0,0,P,re);var pe=this.uniforms;Object.keys(this.buffers.values).forEach(function(we){var Re=A.buffers.values[we];Re.geometry.attachAttributes_(C,Re.program),pe.apply(C,Re.program),Re.render(C,P,re)}),this.geometry.attachAttributes_(C,this.program),pe.apply(C,this.program),this.drawFunc_(this.timer.delta),pe.clean(),this.textures.clean(),this.dirty=!1,this.trigger("render",this)}},F.drawArrays_=function(A){var C=this.gl;C.bindFramebuffer(C.FRAMEBUFFER,null),C.viewport(0,0,this.W,this.H),C.clearColor(0,0,0,1),C.clearDepth(1),C.enable(C.DEPTH_TEST),C.depthFunc(C.LEQUAL),C.enable(C.CULL_FACE),this.doubleSided&&this.mode!==ee.Flat&&(C.cullFace(C.FRONT),C.drawArrays(C.TRIANGLES,0,this.geometry.size),C.enable(C.BLEND),C.blendFunc(C.SRC_ALPHA,C.ONE_MINUS_SRC_ALPHA)),C.cullFace(C.BACK),C.drawArrays(C.TRIANGLES,0,this.geometry.size)},F.create_=function(){this.createGeometry_(),this.createUniforms_()},F.createGeometry_=function(){this.parseGeometry_(),this.setMode(this.mode)},F.parseGeometry_=function(){var A=/^attribute\s+vec4\s+a_position\s*;\s*\/\/\s*([\w|\:\/\/|\.|\-|\_|\?|\&|\=]+)/gm,C=A.exec(this.vertexString);C&&C.length>1?this.mesh=C[1]:this.mesh=this.defaultMesh},F.createUniforms_=function(){var A=this.gl,C=this.fragmentString,P=A.drawingBufferWidth,re=A.drawingBufferHeight,pe=this.timer=new X,we=(C.match(/u_delta/g)||[]).length>1,Re=(C.match(/u_time/g)||[]).length>1,He=(C.match(/u_date/g)||[]).length>1,N=(C.match(/u_mouse/g)||[]).length>1,oe=(C.match(/u_camera/g)||[]).length>1;this.animated=!0;var de=this.uniforms;if(de.create(n.UniformMethod.Uniform2f,n.UniformType.Float,"u_resolution",[P,re]),we?(de.create(n.UniformMethod.Uniform1f,n.UniformType.Float,"u_delta",[pe.delta/1e3]),this.updateUniformDelta_=this.updateUniformDelta__):this.updateUniformDelta_=this.updateUniformNoop_,Re?(de.create(n.UniformMethod.Uniform1f,n.UniformType.Float,"u_time",[pe.current/1e3]),this.updateUniformTime_=this.updateUniformTime__):this.updateUniformTime_=this.updateUniformNoop_,He){var he=new Date;de.create(n.UniformMethod.Uniform4f,n.UniformType.Float,"u_date",[he.getFullYear(),he.getMonth(),he.getDate(),he.getHours()*3600+he.getMinutes()*60+he.getSeconds()+he.getMilliseconds()*.001]),this.updateUniformDate_=this.updateUniformDate__}else this.updateUniformDate_=this.updateUniformNoop_;N?(de.create(n.UniformMethod.Uniform2f,n.UniformType.Float,"u_mouse",[0,0]),this.updateUniformMouse_=this.updateUniformMouse__):this.updateUniformMouse_=this.updateUniformNoop_,oe?(de.create(n.UniformMethod.Uniform3f,n.UniformType.Float,"u_camera",[0,0,0]),this.updateUniformCamera_=this.updateUniformCamera__):this.updateUniformCamera_=this.updateUniformNoop_,this.projectionMatrix=k(),de.create(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_projectionMatrix",this.projectionMatrix),this.modelViewMatrix=k(),de.create(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_modelViewMatrix",this.modelViewMatrix),this.normalMatrix=k(),de.create(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_normalMatrix",this.normalMatrix)},F.update_=function(){var A=this.gl,C=A.drawingBufferWidth,P=A.drawingBufferHeight;if(this.timer){var re=this.timer.next(),pe=this.uniforms;pe.update(n.UniformMethod.Uniform2f,n.UniformType.Float,"u_resolution",[C,P]),this.updateUniformDelta_(re),this.updateUniformTime_(re),this.updateUniformDate_(),this.updateUniformMouse_(),this.updateUniformCamera_(),this.updateUniformMesh_()}},F.updateUniformNoop_=function(){}
2033,F.updateUniformDelta__=function(A){var C=this.uniforms;C.update(n.UniformMethod.Uniform1f,n.UniformType.Float,"u_delta",[A.delta/1e3])},F.updateUniformTime__=function(A){var C=this.uniforms;C.update(n.UniformMethod.Uniform1f,n.UniformType.Float,"u_time",[A.current/1e3])},F.updateUniformDate__=function(){var A=this.uniforms,C=new Date;A.update(n.UniformMethod.Uniform4f,n.UniformType.Float,"u_date",[C.getFullYear(),C.getMonth(),C.getDate(),C.getHours()*3600+C.getMinutes()*60+C.getSeconds()+C.getMilliseconds()*.001])},F.updateUniformMouse__=function(){var A=this.uniforms,C=this.mouse;A.update(n.UniformMethod.Uniform2f,n.UniformType.Float,"u_mouse",[C.x,C.y])},F.updateUniformCamera__=function(){var A=this.uniforms,C=K.toArray(this.camera);A.update(n.UniformMethod.Uniform3f,n.UniformType.Float,"u_camera",C)},F.updateUniformMesh__=function(){var A=this.uniforms;A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_projectionMatrix",this.updateProjectionMatrix_()),A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_modelViewMatrix",this.updateModelViewMatrix_(this.timer.delta)),A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_normalMatrix",this.updateNormalMatrix_(this.modelViewMatrix))},F.updateUniformFlat__=function(){var A=this.uniforms;A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_projectionMatrix",k()),A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_modelViewMatrix",k()),A.update(n.UniformMethod.UniformMatrix4fv,n.UniformType.Float,"u_normalMatrix",k())},F.updateProjectionMatrix_=function(){var A=this.gl,C=45*Math.PI/180,P=A.drawingBufferWidth/A.drawingBufferHeight,re=.1,pe=100;return Te(this.projectionMatrix,C,P,re,pe),this.projectionMatrix},F.updateModelViewMatrix_=function(A){var C=this.camera,P=this.modelViewMatrix;return P=E(P),Y(P,P,[0,0,-C.radius]),se(P,P,C.theta+this.radians,[0,1,0]),se(P,P,C.phi,[1,0,0]),C.mouse||(C.theta+=(0-C.theta)/20,C.phi+=(0-C.phi)/20,this.radians+=A*5e-4),P},F.updateNormalMatrix_=function(A){var C=this.normalMatrix;return C=E(C),j(C,A),I(C,C),C},F.setMode=function(A){var C=this,P;if(A===ee.Mesh&&(P=this.cache[this.mesh],P)){this.geometry=P,this.mode=ee.Mesh,this.updateUniformMesh_=this.updateUniformMesh__,this.dirty=!0;return}var re;switch(A){case ee.Flat:P=new _e,this.updateUniformMesh_=this.updateUniformNoop_,this.updateUniformFlat__();break;case ee.Box:P=new Me,this.updateUniformMesh_=this.updateUniformMesh__;break;case ee.Sphere:P=new Oe,this.updateUniformMesh_=this.updateUniformMesh__;break;case ee.Torus:P=new $e,this.updateUniformMesh_=this.updateUniformMesh__;break;case ee.Mesh:P=new _e,this.mesh?(re=new lt,re.load(Z.getResource(this.mesh,this.workpath)).then(function(pe){pe.createAttributes_(C.gl,C.program);var we={};we[C.mesh]=pe,C.cache=we,C.geometry=pe,C.dirty=!0},function(pe){te.warn("GlslCanvas",pe),C.mode=ee.Flat})):A=ee.Flat,this.updateUniformMesh_=this.updateUniformMesh__;break}P.create(this.gl,this.program),this.geometry=P,this.mode=A,this.dirty=!0},F.setMesh=function(A){this.mesh=A},G})(Ie),Ft=(function(R){a(G,R);function G(T,A){var C;return A===void 0&&(A={}),C=R.call(this)||this,C.valid=!1,C.visible=!1,C.controls=!1,C.vertexPath="",C.fragmentPath="",T?(C.options=A,C.canvas=T,C.width=0,C.height=0,C.rect=T.getBoundingClientRect(),C.devicePixelRatio=window.devicePixelRatio||1,C.mode=A.mode||ee.Flat,C.mesh=A.mesh||void 0,C.doubleSided=A.doubleSided||!1,C.defaultMesh=C.mesh,C.workpath=A.workpath,T.style.backgroundColor=A.backgroundColor||"rgba(0,0,0,0)",C.getShaders_().then(function(P){C.load().then(function(re){C.program&&(C.addListeners_(),C.onLoop())})},function(P){te.error("GlslCanvas.getShaders_.error",P)}),G.items.push(o(C)),C):o(C)}var F=G.prototype;return F.getShaders_=function(){var A=this;return new Promise(function(C){A.vertexString=A.options.vertexString||A.vertexString,A.fragmentString=A.options.fragmentString||A.fragmentString;var P=A.canvas,re={};P.hasAttribute("data-vertex-url")&&(re.vertex=P.getAttribute("data-vertex-url")),P.hasAttribute("data-fragment-url")&&(re.fragment=P.getAttribute("data-fragment-url")),P.hasAttribute("data-vertex")&&(A.vertexString=P.getAttribute("data-vertex")),P.hasAttribute("data-fragment")&&(A.fragmentString=P.getAttribute("data-fragment")),Object.keys(re).length?Promise.all(Object.keys(re).map(function(pe){var we=Z.getResource(re[pe],A.workpath);return Z.fetch(we).then(function(Re){var He=Z.dirname(re[pe]);return pe==="vertex"?(A.vertexPath=He,A.vertexString=Re):(A.fragmentPath=He,A.fragmentString=Re)})})).then(function(pe){C([A.vertexString,A.fragmentString])}):C([A.vertexString,A.fragmentString])})},F.addListeners_=function(){this.onScroll=this.onScroll.bind(this),this.onWheel=this.onWheel.bind(this),this.onClick=this.onClick.bind(this),this.onMove=this.onMove.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.onMouseOver=this.onMouseOver.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.onMouseUp=this.onMouseUp.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onLoop=this.onLoop.bind(this),window.addEventListener("scroll",this.onScroll),document.addEventListener("mousemove",this.onMouseMove,!1),document.addEventListener("touchmove",this.onTouchMove),this.addCanvasListeners_()},F.addCanvasListeners_=function(){this.controls=this.canvas.hasAttribute("controls"),this.canvas.addEventListener("wheel",this.onWheel),this.canvas.addEventListener("click",this.onClick),this.canvas.addEventListener("mousedown",this.onMouseDown),this.canvas.addEventListener("touchstart",this.onTouchStart),this.controls&&(this.canvas.addEventListener("mouseover",this.onMouseOver),this.canvas.addEventListener("mouseout",this.onMouseOut),this.canvas.hasAttribute("data-autoplay")||this.pause())},F.removeCanvasListeners_=function(){this.canvas.removeEventListener("wheel",this.onWheel),this.canvas.removeEventListener("click",this.onClick),this.canvas.removeEventListener("mousedown",this.onMouseDown),this.canvas.removeEventListener("mouseup",this.onMouseUp),this.canvas.removeEventListener("touchstart",this.onTouchStart),this.canvas.removeEventListener("touchend",this.onTouchEnd),this.controls&&(this.canvas.removeEventListener("mouseover",this.onMouseOver),this.canvas.removeEventListener("mouseout",this.onMouseOut))},F.removeListeners_=function(){window.cancelAnimationFrame(this.rafId),window.removeEventListener("scroll",this.onScroll),document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("touchmove",this.onTouchMove),this.removeCanvasListeners_()},F.onScroll=function(A){this.rect=this.canvas.getBoundingClientRect()},F.onWheel=function(A){this.camera.wheel(A.deltaY),this.dirty=this.mode!==ee.Flat,this.trigger("wheel",A)},F.onClick=function(A){this.controls&&this.toggle(),this.trigger("click",A)},F.onDown=function(A,C){var P=this.rect;
2033A=A-P.left,C=P.height-(C-P.top);var re=A*this.devicePixelRatio,pe=C*this.devicePixelRatio;this.mouse.x=re,this.mouse.y=pe;var we=Math.min(P.width,P.height);this.camera.down(A/we,C/we),this.trigger("down",this.mouse)},F.onMove=function(A,C){var P=this.rect;A=A-P.left,C=P.height-(C-P.top);var re=A*this.devicePixelRatio,pe=C*this.devicePixelRatio;if(re!==this.mouse.x||pe!==this.mouse.y){this.mouse.x=re,this.mouse.y=pe;var we=Math.min(P.width,P.height);this.camera.move(A/we,C/we),this.dirty=this.mode!==ee.Flat&&this.camera.mouse!==null,this.trigger("move",this.mouse)}},F.onUp=function(A){this.camera.up(),this.controls&&this.pause(),this.trigger("out",A)},F.onMouseDown=function(A){this.onDown(A.clientX,A.clientY),document.addEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove)},F.onMouseMove=function(A){this.onMove(A.clientX,A.clientY)},F.onMouseUp=function(A){this.onUp(A)},F.onMouseOver=function(A){this.play(),this.trigger("over",A)},F.onMouseOut=function(A){this.pause(),this.trigger("out",A)},F.onTouchStart=function(A){var C=[].slice.call(A.touches).reduce(function(P,re){return P=P||new De,P.x+=re.clientX,P.y+=re.clientY,P},null);C&&this.onDown(C.x/A.touches.length,C.y/A.touches.length),this.controls&&this.play(),this.trigger("over",A),document.addEventListener("touchend",this.onTouchEnd),document.removeEventListener("mousedown",this.onMouseDown),document.removeEventListener("mousemove",this.onMouseMove),this.controls&&(this.canvas.removeEventListener("mouseover",this.onMouseOver),this.canvas.removeEventListener("mouseout",this.onMouseOut))},F.onTouchMove=function(A){var C=[].slice.call(A.touches).reduce(function(P,re){return P=P||new De,P.x+=re.clientX,P.y+=re.clientY,P},null);C&&this.onMove(C.x/A.touches.length,C.y/A.touches.length)},F.onTouchEnd=function(A){this.onUp(A),document.removeEventListener("touchend",this.onTouchEnd)},F.onLoop=function(A){this.checkRender(),this.rafId=window.requestAnimationFrame(this.onLoop)},F.setUniform_=function(A,C,P,re){var pe=this;P===void 0&&(P={}),re===void 0&&(re=null);var we=jt.parseUniform(A,C,re);if(Array.isArray(we))jt.isArrayOfSampler2D(we)?we.forEach(function(Re){return pe.loadTexture(Re.key,Re.values[0],P)}):we.forEach(function(Re){return pe.uniforms.set(Re.key,Re.values[0])});else if(we)switch(we.type){case n.UniformType.Sampler2D:this.loadTexture(A,C[0],P);break;default:this.uniforms.set(A,we)}},F.isVisible_=function(){var A=this.rect;return A.top+A.height>0&&A.top<(window.innerHeight||document.documentElement.clientHeight)},F.isAnimated_=function(){return(this.animated||this.textures.animated||this.mode!==ee.Flat)&&!this.timer.paused},F.isDirty_=function(){return this.dirty||this.uniforms.dirty||this.textures.dirty},F.sizeDidChanged_=function(){var A=this,C=this.gl,P=Math.ceil(this.canvas.clientWidth),re=Math.ceil(this.canvas.clientHeight);if(this.width!==P||this.height!==re){this.width=P,this.height=re;var pe=Math.ceil(P*this.devicePixelRatio),we=Math.ceil(re*this.devicePixelRatio);return this.W=pe,this.H=we,this.canvas.width=pe,this.canvas.height=we,Object.keys(this.buffers.values).forEach(function(Re){var He=A.buffers.values[Re];He.resize(C,pe,we)}),this.rect=this.canvas.getBoundingClientRect(),this.trigger("resize"),!0}else return!1},F.parseTextures_=function(A){for(var C=this,P=/uniform\s*sampler2D\s*([\w]*);(\s*\/\/\s*([\w|\:\/\/|\.|\-|\_|\?|\&|\=]*)|\s*)/gm,re;(re=P.exec(A))!==null;){var pe=re[1],we=re[3];Je.isTextureUrl(we)?this.textureList.push({key:pe,url:we}):this.buffers.has(pe)||this.textureList.push({key:pe,url:null})}if(this.canvas.hasAttribute("data-textures")){var Re=this.canvas.getAttribute("data-textures").split(",");Re.forEach(function(He,N){var oe="u_texture"+N;C.textureList.push({key:oe,url:He})})}return this.textureList.length>0},F.load=function(A,C){var P=this,re=J.getFragmentVertex(this.gl,A||this.fragmentString);return Promise.all([J.getIncludes(A||this.fragmentString,this.fragmentPath===""?this.workpath:this.fragmentPath),J.getIncludes(re||C||this.vertexString,this.vertexPath===""?this.workpath:this.vertexPath)]).then(function(pe){return P.fragmentString=pe[0],P.vertexString=pe[1],P.createContext_()})},F.getContext_=function(){var A=this.vertexString,C=this.fragmentString;if(this.vertexString=J.getVertex(A,C,this.mode),this.fragmentString=J.getFragment(A,C,this.mode),J.ver
2033sionDiffers(this.gl,A,C)&&(this.destroyContext_(),this.swapCanvas_(),this.uniforms=new jt,this.buffers=new ge,this.textures=new L,this.textureList=[]),!this.gl){var P=J.tryInferContext(A,C,this.canvas,this.options,this.options.extensions,this.options.onError);if(!P)return null;this.gl=P}return this.gl},F.createContext_=function(){var A=this.getContext_();if(!A)return!1;var C,P;try{if(J.inferPrecision(this.fragmentString),C=J.createShader(A,this.vertexString,A.VERTEX_SHADER),P=J.createShader(A,this.fragmentString,A.FRAGMENT_SHADER),P)this.valid=!0;else{var re=J.getFragment(null,null,this.mode);P=J.createShader(A,re,A.FRAGMENT_SHADER),this.valid=!1}}catch(we){return this.trigger("error",we),!1}var pe=J.createProgram(A,[C,P]);if(!pe)return this.trigger("error",J.lastError),!1;if(A.deleteShader(C),A.deleteShader(P),this.program=pe,this.valid){try{this.buffers=ge.getBuffers(A,this.fragmentString,J.getBufferVertex(A))}catch(we){return this.valid=!1,this.trigger("error",we),!1}this.create_(),this.animated?this.canvas.classList.add("animated"):this.canvas.classList.remove("animated")}return this.trigger("load",this),this.valid},F.create_=function(){this.parseMode_(),this.parseMesh_(),R.prototype.create_.call(this),this.createBuffers_(),this.createTextures_()},F.parseMode_=function(){if(this.canvas.hasAttribute("data-mode")){var A=this.canvas.getAttribute("data-mode");["flat","box","sphere","torus","mesh"].indexOf(A)!==-1&&(this.mode=A)}},F.parseMesh_=function(){if(this.canvas.hasAttribute("data-mesh")){var A=this.canvas.getAttribute("data-mesh");A.indexOf(".obj")!==-1&&(this.mesh=this.defaultMesh=A)}},F.createBuffers_=function(){var A=this;Object.keys(this.buffers.values).forEach(function(C){var P=A.buffers.values[C];A.uniforms.create(n.UniformMethod.Uniform1i,n.UniformType.Sampler2D,P.key,[P.input.index])})},F.createTextures_=function(){var A=this,C=this.parseTextures_(this.fragmentString);C&&(this.textureList.filter(function(P){return P.url}).forEach(function(P){A.setTexture(P.key,P.url,P.options)}),this.textureList=[])},F.update_=function(){R.prototype.update_.call(this),this.updateBuffers_(),this.updateTextures_()},F.updateBuffers_=function(){var A=this;Object.keys(this.buffers.values).forEach(function(C){var P=A.buffers.values[C];A.uniforms.update(n.UniformMethod.Uniform1i,n.UniformType.Sampler2D,P.key,[P.input.index])})},F.updateTextures_=function(){var A=this,C=this.gl;Object.keys(this.textures.values).forEach(function(P){var re=A.textures.values[P];re.tryUpdate(C),A.uniforms.update(n.UniformMethod.Uniform1i,n.UniformType.Sampler2D,re.key,[re.index])})},F.destroyContext_=function(){var A=this,C=this.gl;C.useProgram(null),this.program&&C.deleteProgram(this.program),Object.keys(this.buffers.values).forEach(function(P){var re=A.buffers.values[P];re.destroy(C)}),Object.keys(this.textures.values).forEach(function(P){var re=A.textures.values[P];re.destroy(C)}),this.buffers=null,this.textures=null,this.uniforms=null,this.program=null,this.gl=null},F.swapCanvas_=function(){var A=this.canvas,C=A.cloneNode();A.parentNode.replaceChild(C,A),this.canvas=C,this.addCanvasListeners_()},F.destroy=function(){this.removeListeners_(),this.destroyContext_(),this.animated=!1,this.valid=!1;var A=G.items.indexOf(this);A!==-1&&G.items.splice(A,1)},F.loadTexture=function(A,C,P){var re=this;P===void 0&&(P={}),this.valid?this.textures.createOrUpdate(this.gl,A,C,this.buffers.count,P,this.options.workpath).then(function(pe){var we=pe.index,Re=re.uniforms.createTexture(A,we);Re.texture=pe;var He=A.indexOf("[")!==-1?A.replace("[","Resolution["):A+"Resolution";return re.uniforms.create(n.UniformMethod.Uniform2f,n.UniformType.Float,He,[pe.width,pe.height]),pe},function(pe){var we=Array.isArray(pe.path)?pe.path.map(function(Re){return Re.error?Re.error.message:""}).join(", "):pe.message;te.error("GlslCanvas.loadTexture.error",A,C,we),re.trigger("textureError",{key:A,urlElementOrData:C,message:we})}):this.textureList.push({key:A,url:C,options:P})},F.setTexture=function(A,C,P){return P===void 0&&(P={}),this.setUniform_(A,[C],P)},F.setUniform=function(A){for(var C=arguments.length,P=new Array(C>1?C-1:0),re=1;re<C;re++)P[re-1]=arguments[re];return this.setUniform_(A,P)},F.setUniformOfInt=function(A,C){return this.setUniform_(A,C,null,n.UniformType.Int)}
2033,F.setUniforms=function(A){var C=this;Object.keys(A).forEach(function(P){C.setUniform(P,A[P])})},F.pause=function(){this.valid&&(this.timer.pause(),this.canvas.classList.add("paused"),this.trigger("pause"))},F.play=function(){this.valid&&(this.timer.play(),this.canvas.classList.remove("paused"),this.trigger("play"))},F.toggle=function(){this.valid&&(this.timer.paused?this.play():this.pause())},F.checkRender=function(){this.isVisible_()&&(this.sizeDidChanged_()||this.isDirty_()||this.isAnimated_())?(this.render(),this.canvas.classList.add("playing")):this.canvas.classList.remove("playing")},G})(Cn);Ft.items=[];function bn(R,G){return Ft.items.find(function(F){return F.canvas===R})||new Ft(R,G)}function yn(){var R=[].slice.call(document.getElementsByClassName("glsl-canvas")).filter(function(G){return G instanceof HTMLCanvasElement});return R.map(function(G){return bn(G)})}typeof window=="object"&&document.addEventListener("DOMContentLoaded",function(){yn()}),n.BoxGeometry=Me,n.Buffer=W,n.Buffers=ge,n.Canvas=Ft,n.CanvasTimer=X,n.Common=Z,n.Context=J,n.ContextVertexBuffers=xe,n.DefaultWebGL2BufferFragment=Q,n.DefaultWebGL2BufferVertex=V,n.DefaultWebGL2FlatFragment=O,n.DefaultWebGL2MeshFragment=S,n.DefaultWebGL2MeshVertex=w,n.DefaultWebGLBufferFragment=z,n.DefaultWebGLBufferVertex=B,n.DefaultWebGLFlatFragment=D,n.DefaultWebGLMeshFragment=M,n.DefaultWebGLMeshVertex=x,n.FlatGeometry=_e,n.Geometry=ie,n.IOBuffer=be,n.IterableStringMap=H,n.Listener=ce,n.Logger=te,n.METHODS_FLOAT=Pe,n.METHODS_FLOATV=Qe,n.METHODS_INT=Ae,n.METHODS_INTV=We,n.ObjLoader=lt,n.OrbitCamera=K,n.Renderer=Cn,n.SphereGeometry=Oe,n.Subscriber=Ie,n.Texture=Je,n.TextureExtensions=ft,n.TextureImageExtensions=Ze,n.TextureVideoExtensions=ct,n.Textures=L,n.TorusGeometry=$e,n.Uniform=yt,n.UniformTexture=Et,n.Uniforms=jt,n.Vector2=De,n.Vector3=ae,n.isTextureData=pt,n.loadAll=yn,n.of=bn,Object.defineProperty(n,"__esModule",{value:!0})}))})(Xc,Xc.exports)),Xc.exports}One();const Uy="163",yu={ROTATE:0,DOLLY:1,PAN:2},Eu={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3},Nne=0,kT=1,Une=2,v4=1,Fne=2,Ba=3,Ks=0,Hi=1,da=2,zs=0,xl=1,OT=2,NT=3,UT=4,Bne=5,Oo=100,Vne=101,Hne=102,zne=103,$ne=104,Wne=200,Gne=201,qne=202,jne=203,T2=204,w2=205,Xne=206,Yne=207,Kne=208,Zne=209,Jne=210,Qne=211,eie=212,tie=213,nie=214,iie=0,rie=1,aie=2,Qm=3,sie=4,oie=5,uie=6,lie=7,_4=0,cie=1,die=2,$s=0,fie=1,hie=2,pie=3,mie=4,gie=5,vie=6,_ie=7,b4=300,jl=301,Xl=302,M2=303,C2=304,tg=306,D2=1e3,Vo=1001,L2=1002,hr=1003,bie=1004,Dh=1005,Mr=1006,xv=1007,Ho=1008,Ws=1009,yie=1010,Eie=1011,y4=1012,E4=1013,Yl=1014,Us=1015,e0=1016,x4=1017,A4=1018,Sf=1020,xie=35902,Aie=1021,Sie=1022,va=1023,Tie=1024,wie=1025,Al=1026,Jd=1027,Mie=1028,S4=1029,Cie=1030,T4=1031,w4=1033,Av=33776,Sv=33777,Tv=33778,wv=33779,FT=35840,BT=35841,VT=35842,HT=35843,M4=36196,zT=37492,$T=37496,WT=37808,GT=37809,qT=37810,jT=37811,XT=37812,YT=37813,KT=37814,ZT=37815,JT=37816,QT=37817,e3=37818,t3=37819,n3=37820,i3=37821,Mv=36492,r3=36494,a3=36495,Die=36283,s3=36284,o3=36285,u3=36286,Lie=3200,Rie=3201,Iie=0,Pie=1,ks="",sa="srgb",io="srgb-linear",Fy="display-p3",ng="display-p3-linear",t0="linear",fn="srgb",n0="rec709",i0="p3",xu=7680,l3=519,kie=512,Oie=513,Nie=514,C4=515,Uie=516,Fie=517,Bie=518,Vie=519,c3=35044,d3="300 es",Za=2e3,r0=2001;class fu{addEventListener(e,n){this._listeners===void 0&&(this._listeners={});const i=this._listeners;i[e]===void 0&&(i[e]=[]),i[e].indexOf(n)===-1&&i[e].push(n)}hasEventListener(e,n){if(this._listeners===void 0)return!1;const i=this._listeners;return i[e]!==void 0&&i[e].indexOf(n)!==-1}removeEventListener(e,n){if(this._listeners===void 0)return;const r=this._listeners[e];if(r!==void 0){const a=r.indexOf(n);a!==-1&&r.splice(a,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const i=this._listeners[e.type];if(i!==void 0){e.target=this;const r=i.slice(0);for(let a=0,s=r.length;a<s;a++)r[a].call(this,e);e.target=null}}}const li=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","5
20335","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],Kp=Math.PI/180,R2=180/Math.PI;function Tf(){const t=Math.random()*4294967295|0,e=Math.random()*4294967295|0,n=Math.random()*4294967295|0,i=Math.random()*4294967295|0;return(li[t&255]+li[t>>8&255]+li[t>>16&255]+li[t>>24&255]+"-"+li[e&255]+li[e>>8&255]+"-"+li[e>>16&15|64]+li[e>>24&255]+"-"+li[n&63|128]+li[n>>8&255]+"-"+li[n>>16&255]+li[n>>24&255]+li[i&255]+li[i>>8&255]+li[i>>16&255]+li[i>>24&255]).toLowerCase()}function Mi(t,e,n){return Math.max(e,Math.min(n,t))}function Hie(t,e){return(t%e+e)%e}function Cv(t,e,n){return(1-n)*t+n*e}function Tc(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return t/4294967295;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int32Array:return Math.max(t/2147483647,-1);case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.")}}function Ii(t,e){switch(e.constructor){case Float32Array:return t;case Uint32Array:return Math.round(t*4294967295);case Uint16Array:return Math.round(t*65535);case Uint8Array:return Math.round(t*255);case Int32Array:return Math.round(t*2147483647);case Int16Array:return Math.round(t*32767);case Int8Array:return Math.round(t*127);default:throw new Error("Invalid component type.")}}const zie={DEG2RAD:Kp};class vt{constructor(e=0,n=0){vt.prototype.isVector2=!0,this.x=e,this.y=n}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,n){return this.x=e,this.y=n,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const n=this.x,i=this.y,r=e.elements;return this.x=r[0]*n+r[3]*i+r[6],this.y=r[1]*n+r[4]*i+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}
vendor: 67,887 bytes, line 2033
2033roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Mi(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y;return n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this}rotateAround(e,n){const i=Math.cos(n),r=Math.sin(n),a=this.x-e.x,s=this.y-e.y;return this.x=a*i-s*r+e.x,this.y=a*r+s*i+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class St{constructor(e,n,i,r,a,s,o,u,c){St.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,n,i,r,a,s,o,u,c)}set(e,n,i,r,a,s,o,u,c){const l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=n,l[4]=a,l[5]=u,l[6]=i,l[7]=s,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],this}extractBasis(e,n,i){return e.setFromMatrix3Column(this,0),n.setFromMatrix3Column(this,1),i.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const n=e.elements;return this.set(n[0],n[4],n[8],n[1],n[5],n[9],n[2],n[6],n[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,a=this.elements,s=i[0],o=i[3],u=i[6],c=i[1],l=i[4],d=i[7],f=i[2],h=i[5],g=i[8],v=r[0],m=r[3],p=r[6],y=r[1],_=r[4],b=r[7],x=r[2],w=r[5],D=r[8];return a[0]=s*v+o*y+u*x,a[3]=s*m+o*_+u*w,a[6]=s*p+o*b+u*D,a[1]=c*v+l*y+d*x,a[4]=c*m+l*_+d*w,a[7]=c*p+l*b+d*D,a[2]=f*v+h*y+g*x,a[5]=f*m+h*_+g*w,a[8]=f*p+h*b+g*D,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[3]*=e,n[6]*=e,n[1]*=e,n[4]*=e,n[7]*=e,n[2]*=e,n[5]*=e,n[8]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],u=e[6],c=e[7],l=e[8];return n*s*l-n*o*c-i*a*l+i*o*u+r*a*c-r*s*u}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],u=e[6],c=e[7],l=e[8],d=l*s-o*c,f=o*u-l*a,h=c*a-s*u,g=n*d+i*f+r*h;if(g===0)return this.set(0,0,0,0,0,0,0,0,0);const v=1/g;return e[0]=d*v,e[1]=(r*c-l*i)*v,e[2]=(o*i-r*s)*v,e[3]=f*v,e[4]=(l*n-r*u)*v,e[5]=(r*a-o*n)*v,e[6]=h*v,e[7]=(i*u-c*n)*v,e[8]=(s*n-i*a)*v,this}transpose(){let e;const n=this.elements;return e=n[1],n[1]=n[3],n[3]=e,e=n[2],n[2]=n[6],n[6]=e,e=n[5],n[5]=n[7],n[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const n=this.elements;return e[0]=n[0],e[1]=n[3],e[2]=n[6],e[3]=n[1],e[4]=n[4],e[5]=n[7],e[6]=n[2],e[7]=n[5],e[8]=n[8],this}setUvTransform(e,n,i,r,a,s,o){const u=Math.cos(a),c=Math.sin(a);return this.set(i*u,i*c,-i*(u*s+c*o)+s+e,-r*c,r*u,-r*(-c*s+u*o)+o+n,0,0,1),this}scale(e,n){return this.premultiply(Dv.makeScale(e,n)),this}rotate(e){return this.premultiply(Dv.makeRotation(-e)),this}translate(e,n){return this.premultiply(Dv.makeTranslation(e,n)),this}makeTranslation(e,n){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,n,0,0,1),this}makeRotation(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,i,n,0,0,0,1),this}makeScale(e,n){return this.set(e,0,0,0,n,0,0,0,1),this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<9;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<9;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e}clone(){return new this.constructor().fromArray(this.elements)}}const Dv=new St;function D4(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}function a0(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function $ie(){const t=a0("canvas");return t.style.display="block",t}const f3={};function Wie(t){t in f3||(f3[t]=!0,console.warn(t))}const h3=new St().set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),p3=new St().set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Lh={[io]:{transfer:t0,primaries:n0,toReference:t=>t,fromReference:t=>t},[sa]:{transfer:fn,primaries:n0,toReference:t=>t.convertSRGBToLinear(),fromReference:t=>t.convertLinearToSRGB()},[ng]:{transfer:t0,primaries:i0,toReference:t=>t.applyMatrix3(p3),fromReference:t=>t.applyMatrix3(h3)},[Fy]:{transfer:fn,primaries:i0,toReference:t=>t.convertSRGBToLinear().applyMatrix3(p3),fromReference:t=>t.applyMatrix3(h3).convertLinearToSRGB()}},Gie=new Set([io,ng]),en={enabled:!0,_workingColorSpace:io,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(t){if(!Gie.has(t))throw new Error(`Unsupported working color space, "${t}".`);this._workingColorSpace=t},convert:function(t,e,n){if(this.enabled===!1||e===n||!e||!n)return t;const i=Lh[e].toReference,r=Lh[n].fromReference;return r(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this._workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this._workingColorSpace)},getPrimaries:function(t){return Lh[t].primaries},getTransfer:function(t){return t===ks?t0:Lh[t].transfer}};function Sl(t){return t<.04045?t*.0773993808:Math.pow(t*.9478672986+.0521327014,2.4)}function Lv(t){return t<.0031308?t*12.92:1.055*Math.pow(t,.41666)-.055}let Au;class qie{static getDataURL(e){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>"u")return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Au===void 0&&(Au=a0("canvas")),Au.width=e.width,Au.height=e.height;const i=Au.getContext("2d");e instanceof ImageData?i.putImageData(e,0,0):i.drawImage(e,0,0,e.width,e.height),n=Au}return n.width>2048||n.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",e),n.toDataURL("image/jpeg",.6)):n.toDataURL("image/png")}static sRGBToLinear(e){if(typeof HTMLImageElement<"u"&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&e instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&e instanceof ImageBitmap){const n=a0("canvas");n.width=e.width,n.height=e.height;const i=n.getContext("2d");i.drawImage(e,0,0,e.width,e.height);const r=i.getImageData(0,0,e.width,e.height),a=r.data;for(let s=0;s<a.length;s++)a[s]=Sl(a[s]/255)*255;return i.putImageData(r,0,0),n}else if(e.data){const n=e.data.slice(0);for(let i=0;i<n.length;i++)n instanceof Uint8Array||n instanceof Uint8ClampedArray?n[i]=Math.floor(Sl(n[i]/255)*255):n[i]=Sl(n[i]);return{data:n,width:e.width,height:e.height}}else return console.warn("THREE.ImageUtils.sRGBToLinear(): Unsupported image type. No color space conversion applied."),e}}let jie=0;class L4{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:jie++}),this.uuid=Tf(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){e===!0&&this.version++}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.images[this.uuid]!==void 0)return e.images[this.uuid];const i={uuid:this.uuid,url:""},r=this.data;if(r!==null){let a;if(Array.isArray(r)){a=[];for(let s=0,o=r.length;s<o;s++)r[s].isDataTexture?a.push(Rv(r[s].image)):a.push(Rv(r[s]))}else a=Rv(r);i.url=a}return n||(e.images[this.uuid]=i),i}}function Rv(t){return typeof HTMLImageElement<"u"&&t instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&t instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&t instanceof ImageBitmap?qie.getDataURL(t):t.data?{data:Array.from(t.data),width:t.width,height:t.height,type:t.data.constructor.name}:(console.warn("THREE.Texture: Unable to serialize Texture."),{})}let Xie=0;class zi extends fu{constructor(e=zi.DEFAULT_IMAGE,n=zi.DEFAULT_MAPPING,i=Vo,r=Vo,a=Mr,s=Ho,o=va,u=Ws,c=zi.DEFAULT_ANISOTROPY,l=ks){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:Xie++}),this.uuid=Tf(),this.name="",this.source=new L4(e),this.mipmaps=[],this.mapping=n,this.channel=0,this.wrapS=i,this.wrapT=r,this.magFilter=a,this.minFilter=s,this.anisotropy=c,this.format=o,this.internalFormat=null,this.type=u,this.offset=new vt(0,0),this.repeat=new vt(1,1),this.center=new vt(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new St,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=l,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const n=e===void 0||typeof e=="string";if(!n&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];const i={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(i.userData=this.userData),n||(e.textures[this.uuid]=i),i}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(this.mapping!==b4)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case D2:e.x=e.x-Math.floor(e.x);break;case Vo:e.x=e.x<0?0:1;break;case L2:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x);break}if(e.y<0||e.y>1)switch(this.wrapT){case D2:e.y=e.y-Math.floor(e.y);break;case Vo:e.y=e.y<0?0:1;break;case L2:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y);break}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}}zi.DEFAULT_IMAGE=null;zi.DEFAULT_MAPPING=b4;zi.DEFAULT_ANISOTROPY=1;class si{constructor(e=0,n=0,i=0,r=1){si.prototype.isVector4=!0,this.x=e,this.y=n,this.z=i,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,n,i,r){return this.x=e,this.y=n,this.z=i,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;case 3:this.w=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w!==void 0?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this.w=e.w+n.w,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this.w+=e.w*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this.w=e.w-n.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,a=this.w,s=e.elements;return this.x=s[0]*n+s[4]*i+s[8]*r+s[12]*a,this.y=s[1]*n+s[5]*i+s[9]*r+s[13]*a,this.z=s[2]*n+s[6]*i+s[10]*r+s[14]*a,this.w=s[3]*n+s[7]*i+s[11]*r+s[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const n=Math.sqrt(1-e.w*e.w);return n<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/n,this.y=e.y/n,this.z=e.z/n),this}setAxisAngleFromRotationMatrix(e){let n,i,r,a;const u=e.elements,c=u[0],l=u[4],d=u[8],f=u[1],h=u[5],g=u[9],v=u[2],m=u[6],p=u[10];if(Math.abs(l-f)<.01&&Math.abs(d-v)<.01&&Math.abs(g-m)<.01){if(Math.abs(l+f)<.1&&Math.abs(d+v)<.1&&Math.abs(g+m)<.1&&Math.abs(c+h+p-3)<.1)return this.set(1,0,0,0),this;n=Math.PI;const _=(c+1)/2,b=(h+1)/2,x=(p+1)/2,w=(l+f)/4,D=(d+v)/4,O=(g+m)/4;return _>b&&_>x?_<.01?(i=0,r=.707106781,a=.707106781):(i=Math.sqrt(_),r=w/i,a=D/i):b>x?b<.01?(i=.707106781,r=0,a=.707106781):(r=Math.sqrt(b),i=w/r,a=O/r):x<.01?(i=.707106781,r=.707106781,a=0):(a=Math.sqrt(x),i=D/a,r=O/a),this.set(i,r,a,n),this}let y=Math.sqrt((m-g)*(m-g)+(d-v)*(d-v)+(f-l)*(f-l));return Math.abs(y)<.001&&(y=1),this.x=(m-g)/y,this.y=(d-v)/y,this.z=(f-l)/y,this.w=Math.acos((c+h+p-1)/2),this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this.w=Math.max(e.w,Math.min(n.w,this.w)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this.w=Math.max(e,Math.min(n,this.w)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this.w+=(e.w-this.w)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this.w=e.w+(n.w-e.w)*i,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this.w=e[n+3],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e[n+3]=this.w,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this.w=e.getW(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class Yie extends fu{constructor(e=1,n=1,i={}){super(),this.isRenderTarget=!0,this.width=e,this.height=n,this.depth=1,this.scissor=new si(0,0,e,n),this.scissorTest=!1,this.viewport=new si(0,0,e,n);const r={width:e,height:n,depth:1};i=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:Mr,depthBuffer:!0,stencilBuffer:!1,depthTexture:null,samples:0,count:1},i);const a=new zi(r,i.mapping,i.wrapS,i.wrapT,i.magFilter,i.minFilter,i.format,i.type,i.anisotropy,i.colorSpace);a.flipY=!1,a.generateMipmaps=i.generateMipmaps,a.internalFormat=i.internalFormat,this.textures=[];const s=i.count;for(let o=0;o<s;o++)this.textures[o]=a.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=i.depthBuffer,this.stencilBuffer=i.stencilBuffer,this.depthTexture=i.depthTexture,this.samples=i.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,n,i=1){if(this.width!==e||this.height!==n||this.depth!==i){this.width=e,this.height=n,this.depth=i;for(let r=0,a=this.textures.length;r<a;r++)this.textures[r].image.width=e,this.textures[r].image.height=n,this.textures[r].image.depth=i;this.dispose()}this.viewport.set(0,0,e,n),this.scissor.set(0,0,e,n)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let i=0,r=e.textures.length;i<r;i++)this.textures[i]=e.textures[i].clone(),this.textures[i].isRenderTargetTexture=!0;const n=Object.assign({},e.texture.image);return this.texture.source=new L4(n),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,e.depthTexture!==null&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class au extends Yie{constructor(e=1,n=1,i={}){super(e,n,i),this.isWebGLRenderTarget=!0}}class R4 extends zi{constructor(e=null,n=1,i=1,r=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=hr,this.minFilter=hr,this.wrapR=Vo,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class Kie extends zi{constructor(e=null,n=1,i=1,r=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:n,height:i,depth:r},this.magFilter=hr,this.minFilter=hr,this.wrapR=Vo,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class su{constructor(e=0,n=0,i=0,r=1){this.isQuaternion=!0,this._x=e,this._y=n,this._z=i,this._w=r}static slerpFlat(e,n,i,r,a,s,o){let u=i[r+0],c=i[r+1],l=i[r+2],d=i[r+3];const f=a[s+0],h=a[s+1],g=a[s+2],v=a[s+3];if(o===0){e[n+0]=u,e[n+1]=c,e[n+2]=l,e[n+3]=d;return}if(o===1){e[n+0]=f,e[n+1]=h,e[n+2]=g,e[n+3]=v;return}if(d!==v||u!==f||c!==h||l!==g){let m=1-o;const p=u*f+c*h+l*g+d*v,y=p>=0?1:-1,_=1-p*p;if(_>Number.EPSILON){const x=Math.sqrt(_),w=Math.atan2(x,p*y);m=Math.sin(m*w)/x,o=Math.sin(o*w)/x}const b=o*y;if(u=u*m+f*b,c=c*m+h*b,l=l*m+g*b,d=d*m+v*b,m===1-o){const x=1/Math.sqrt(u*u+c*c+l*l+d*d);u*=x,c*=x,l*=x,d*=x}}e[n]=u,e[n+1]=c,e[n+2]=l,e[n+3]=d}static multiplyQuaternionsFlat(e,n,i,r,a,s){const o=i[r],u=i[r+1],c=i[r+2],l=i[r+3],d=a[s],f=a[s+1],h=a[s+2],g=a[s+3];return e[n]=o*g+l*d+u*h-c*f,e[n+1]=u*g+l*f+c*d-o*h,e[n+2]=c*g+l*h+o*f-u*d,e[n+3]=l*g-o*d-u*f-c*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,n,i,r){return this._x=e,this._y=n,this._z=i,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,n=!0){const i=e._x,r=e._y,a=e._z,s=e._order,o=Math.cos,u=Math.sin,c=o(i/2),l=o(r/2),d=o(a/2),f=u(i/2),h=u(r/2),g=u(a/2);switch(s){case"XYZ":this._x=f*l*d+c*h*g,this._y=c*h*d-f*l*g,this._z=c*l*g+f*h*d,this._w=c*l*d-f*h*g;break;case"YXZ":this._x=f*l*d+c*h*g,this._y=c*h*d-f*l*g,this._z=c*l*g-f*h*d,this._w=c*l*d+f*h*g;break;case"ZXY":this._x=f*l*d-c*h*g,this._y=c*h*d+f*l*g,this._z=c*l*g+f*h*d,this._w=c*l*d-f*h*g;break;case"ZYX":this._x=f*l*d-c*h*g,this._y=c*h*d+f*l*g,this._z=c*l*g-f*h*d,this._w=c*l*d+f*h*g;break;case"YZX":this._x=f*l*d+c*h*g,this._y=c*h*d+f*l*g,this._z=c*l*g-f*h*d,this._w=c*l*d-f*h*g;break;case"XZY":this._x=f*l*d-c*h*g,this._y=c*h*d-f*l*g,this._z=c*l*g+f*h*d,this._w=c*l*d+f*h*g;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s)}return n===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,n){const i=n/2,r=Math.sin(i);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(i),this._onChangeCallback(),this}setFromRotationMatrix(e){const n=e.elements,i=n[0],r=n[4],a=n[8],s=n[1],o=n[5],u=n[9],c=n[2],l=n[6],d=n[10],f=i+o+d;if(f>0){const h=.5/Math.sqrt(f+1);this._w=.25/h,this._x=(l-u)*h,this._y=(a-c)*h,this._z=(s-r)*h}else if(i>o&&i>d){const h=2*Math.sqrt(1+i-o-d);this._w=(l-u)/h,this._x=.25*h,this._y=(r+s)/h,this._z=(a+c)/h}else if(o>d){const h=2*Math.sqrt(1+o-i-d);this._w=(a-c)/h,this._x=(r+s)/h,this._y=.25*h,this._z=(u+l)/h}else{const h=2*Math.sqrt(1+d-i-o);this._w=(s-r)/h,this._x=(a+c)/h,this._y=(u+l)/h,this._z=.25*h}return this._onChangeCallback(),this}setFromUnitVectors(e,n){let i=e.dot(n)+1;return i<Number.EPSILON?(i=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=i):(this._x=0,this._y=-e.z,this._z=e.y,this._w=i)):(this._x=e.y*n.z-e.z*n.y,this._y=e.z*n.x-e.x*n.z,this._z=e.x*n.y-e.y*n.x,this._w=i),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Mi(this.dot(e),-1,1)))}rotateTowards(e,n){const i=this.angleTo(e);if(i===0)return this;const r=Math.min(1,n/i);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,n){const i=e._x,r=e._y,a=e._z,s=e._w,o=n._x,u=n._y,c=n._z,l=n._w;return this._x=i*l+s*o+r*c-a*u,this._y=r*l+s*u+a*o-i*c,this._z=a*l+s*c+i*u-r*o,this._w=s*l-i*o-r*u-a*c,this._onChangeCallback(),this}slerp(e,n){if(n===0)return this;if(n===1)return this.copy(e);const i=this._x,r=this._y,a=this._z,s=this._w;let o=s*e._w+i*e._x+r*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=s,this._x=i,this._y=r,this._z=a,this;const u=1-o*o;if(u<=Number.EPSILON){const h=1-n;return this._w=h*s+n*this._w,this._x=h*i+n*this._x,this._y=h*r+n*this._y,this._z=h*a+n*this._z,this.normalize(),this}const c=Math.sqrt(u),l=Math.atan2(c,o),d=Math.sin((1-n)*l)/c,f=Math.sin(n*l)/c;return this._w=s*d+this._w*f,this._x=i*d+this._x*f,this._y=r*d+this._y*f,this._z=a*d+this._z*f,this._onChangeCallback(),this}slerpQuaternions(e,n,i){return this.copy(e).slerp(n,i)}random(){const e=2*Math.PI*Math.random(),n=2*Math.PI*Math.random(),i=Math.random(),r=Math.sqrt(1-i),a=Math.sqrt(i);return this.set(r*Math.sin(e),r*Math.cos(e),a*Math.sin(n),a*Math.cos(n))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,n=0){return this._x=e[n],this._y=e[n+1],this._z=e[n+2],this._w=e[n+3],this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._w,e}fromBufferAttribute(e,n){return this._x=e.getX(n),this._y=e.getY(n),this._z=e.getZ(n),this._w=e.getW(n),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class ve{constructor(e=0,n=0,i=0){ve.prototype.isVector3=!0,this.x=e,this.y=n,this.z=i}set(e,n,i){return i===void 0&&(i=this.z),this.x=e,this.y=n,this.z=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,n){switch(e){case 0:this.x=n;break;case 1:this.y=n;break;case 2:this.z=n;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,n){return this.x=e.x+n.x,this.y=e.y+n.y,this.z=e.z+n.z,this}addScaledVector(e,n){return this.x+=e.x*n,this.y+=e.y*n,this.z+=e.z*n,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,n){return this.x=e.x-n.x,this.y=e.y-n.y,this.z=e.z-n.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,n){return this.x=e.x*n.x,this.y=e.y*n.y,this.z=e.z*n.z,this}applyEuler(e){return this.applyQuaternion(m3.setFromEuler(e))}applyAxisAngle(e,n){return this.applyQuaternion(m3.setFromAxisAngle(e,n))}applyMatrix3(e){const n=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*n+a[3]*i+a[6]*r,this.y=a[1]*n+a[4]*i+a[7]*r,this.z=a[2]*n+a[5]*i+a[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const n=this.x,i=this.y,r=this.z,a=e.elements,s=1/(a[3]*n+a[7]*i+a[11]*r+a[15]);return this.x=(a[0]*n+a[4]*i+a[8]*r+a[12])*s,this.y=(a[1]*n+a[5]*i+a[9]*r+a[13])*s,this.z=(a[2]*n+a[6]*i+a[10]*r+a[14])*s,this}applyQuaternion(e){const n=this.x,i=this.y,r=this.z,a=e.x,s=e.y,o=e.z,u=e.w,c=2*(s*r-o*i),l=2*(o*n-a*r),d=2*(a*i-s*n);return this.x=n+u*c+s*d-o*l,this.y=i+u*l+o*c-a*d,this.z=r+u*d+a*l-s*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const n=this.x,i=this.y,r=this.z,a=e.elements;return this.x=a[0]*n+a[4]*i+a[8]*r,this.y=a[1]*n+a[5]*i+a[9]*r,this.z=a[2]*n+a[6]*i+a[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,n){return this.x=Math.max(e.x,Math.min(n.x,this.x)),this.y=Math.max(e.y,Math.min(n.y,this.y)),this.z=Math.max(e.z,Math.min(n.z,this.z)),this}clampScalar(e,n){return this.x=Math.max(e,Math.min(n,this.x)),this.y=Math.max(e,Math.min(n,this.y)),this.z=Math.max(e,Math.min(n,this.z)),this}clampLength(e,n){const i=this.length();return this.divideScalar(i||1).multiplyScalar(Math.max(e,Math.min(n,i)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,n){return this.x+=(e.x-this.x)*n,this.y+=(e.y-this.y)*n,this.z+=(e.z-this.z)*n,this}lerpVectors(e,n,i){return this.x=e.x+(n.x-e.x)*i,this.y=e.y+(n.y-e.y)*i,this.z=e.z+(n.z-e.z)*i,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,n){const i=e.x,r=e.y,a=e.z,s=n.x,o=n.y,u=n.z;return this.x=r*u-a*o,this.y=a*s-i*u,this.z=i*o-r*s,this}projectOnVector(e){const n=e.lengthSq();if(n===0)return this.set(0,0,0);const i=e.dot(this)/n;return this.copy(e).multiplyScalar(i)}projectOnPlane(e){return Iv.copy(this).projectOnVector(e),this.sub(Iv)}reflect(e){return this.sub(Iv.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const n=Math.sqrt(this.lengthSq()*e.lengthSq());if(n===0)return Math.PI/2;const i=this.dot(e)/n;return Math.acos(Mi(i,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const n=this.x-e.x,i=this.y-e.y,r=this.z-e.z;return n*n+i*i+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,n,i){const r=Math.sin(n)*e;return this.x=r*Math.sin(i),this.y=Math.cos(n)*e,this.z=r*Math.cos(i),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,n,i){return this.x=e*Math.sin(n),this.y=i,this.z=e*Math.cos(n),this}setFromMatrixPosition(e){const n=e.elements;return this.x=n[12],this.y=n[13],this.z=n[14],this}setFromMatrixScale(e){const n=this.setFromMatrixColumn(e,0).length(),i=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=n,this.y=i,this.z=r,this}setFromMatrixColumn(e,n){return this.fromArray(e.elements,n*4)}setFromMatrix3Column(e,n){return this.fromArray(e.elements,n*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,n=0){return this.x=e[n],this.y=e[n+1],this.z=e[n+2],this}toArray(e=[],n=0){return e[n]=this.x,e[n+1]=this.y,e[n+2]=this.z,e}fromBufferAttribute(e,n){return this.x=e.getX(n),this.y=e.getY(n),this.z=e.getZ(n),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,n=Math.random()*2-1,i=Math.sqrt(1-n*n);return this.x=i*Math.cos(e),this.y=n,this.z=i*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const Iv=new ve,m3=new su;class wf{constructor(e=new ve(1/0,1/0,1/0),n=new ve(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=n}set(e,n){return this.min.copy(e),this.max.copy(n),this}setFromArray(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n+=3)this.expandByPoint(vr.fromArray(e,n));return this}setFromBufferAttribute(e){this.makeEmpty();for(let n=0,i=e.count;n<i;n++)this.expandByPoint(vr.fromBufferAttribute(e,n));return this}setFromPoints(e){this.makeEmpty();for(let n=0,i=e.length;n<i;n++)this.expandByPoint(e[n]);return this}setFromCenterAndSize(e,n){const i=vr.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}setFromObject(e,n=!1){return this.makeEmpty(),this.expandByObject(e,n)}clone(){return new this.constructor().copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,n=!1){e.updateWorldMatrix(!1,!1);const i=e.geometry;if(i!==void 0){const a=i.getAttribute("position");if(n===!0&&a!==void 0&&e.isInstancedMesh!==!0)for(let s=0,o=a.count;s<o;s++)e.isMesh===!0?e.getVertexPosition(s,vr):vr.fromBufferAttribute(a,s),vr.applyMatrix4(e.matrixWorld),this.expandByPoint(vr);else e.boundingBox!==void 0?(e.boundingBox===null&&e.computeBoundingBox(),Rh.copy(e.boundingBox)):(i.boundingBox===null&&i.computeBoundingBox(),Rh.copy(i.boundingBox)),Rh.applyMatrix4(e.matrixWorld),this.union(Rh)}const r=e.children;for(let a=0,s=r.length;a<s;a++)this.expandByObject(r[a],n);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,n){return n.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,vr),vr.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let n,i;return e.normal.x>0?(n=e.normal.x*this.min.x,i=e.normal.x*this.max.x):(n=e.normal.x*this.max.x,i=e.normal.x*this.min.x),e.normal.y>0?(n+=e.normal.y*this.min.y,i+=e.normal.y*this.max.y):(n+=e.normal.y*this.max.y,i+=e.normal.y*this.min.y),e.normal.z>0?(n+=e.normal.z*this.min.z,i+=e.normal.z*this.max.z):(n+=e.normal.z*this.max.z,i+=e.normal.z*this.min.z),n<=-e.constant&&i>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(wc),Ih.subVectors(this.max,wc),Su.subVectors(e.a,wc),Tu.subVectors(e.b,wc),wu.subVectors(e.c,wc),gs.subVectors(Tu,Su),vs.subVectors(wu,Tu),yo.subVectors(Su,wu);let n=[0,-gs.z,gs.y,0,-vs.z,vs.y,0,-yo.z,yo.y,gs.z,0,-gs.x,vs.z,0,-vs.x,yo.z,0,-yo.x,-gs.y,gs.x,0,-vs.y,vs.x,0,-yo.y,yo.x,0];return!Pv(n,Su,Tu,wu,Ih)||(n=[1,0,0,0,1,0,0,0,1],!Pv(n,Su,Tu,wu,Ih))?!1:(Ph.crossVectors(gs,vs),n=[Ph.x,Ph.y,Ph.z],Pv(n,Su,Tu,wu,Ih))}clampPoint(e,n){return n.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,vr).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(vr).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()?this:(Ra[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ra[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ra[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ra[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ra[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ra[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ra[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ra[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ra),this)}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const Ra=[new ve,new ve,new ve,new ve,new ve,new ve,new ve,new ve],vr=new ve,Rh=new wf,Su=new ve,Tu=new ve,wu=new ve,gs=new ve,vs=new ve,yo=new ve,wc=new ve,Ih=new ve,Ph=new ve,Eo=new ve;function Pv(t,e,n,i,r){for(let a=0,s=t.length-3;a<=s;a+=3){Eo.fromArray(t,a);const o=r.x*Math.abs(Eo.x)+r.y*Math.abs(Eo.y)+r.z*Math.abs(Eo.z),u=e.dot(Eo),c=n.dot(Eo),l=i.dot(Eo);if(Math.max(-Math.max(u,c,l),Math.min(u,c,l))>o)return!1}return!0}const Zie=new wf,Mc=new ve,kv=new ve;class ig{constructor(e=new ve,n=-1){this.isSphere=!0,this.center=e,this.radius=n}set(e,n){return this.center.copy(e),this.radius=n,this}setFromPoints(e,n){const i=this.center;n!==void 0?i.copy(n):Zie.setFromPoints(e).getCenter(i);let r=0;for(let a=0,s=e.length;a<s;a++)r=Math.max(r,i.distanceToSquared(e[a]));return this.radius=Math.sqrt(r),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const n=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=n*n}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,n){const i=this.center.distanceToSquared(e);return n.copy(e),i>this.radius*this.radius&&(n.sub(this.center).normalize(),n.multiplyScalar(this.radius).add(this.center)),n}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Mc.subVectors(e,this.center);const n=Mc.lengthSq();if(n>this.radius*this.radius){const i=Math.sqrt(n),r=(i-this.radius)*.5;this.center.addScaledVector(Mc,r/i),this.radius+=r}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(kv.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Mc.copy(e.center).add(kv)),this.expandByPoint(Mc.copy(e.center).sub(kv))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Ia=new ve,Ov=new ve,kh=new ve,_s=new ve,Nv=new ve,Oh=new ve,Uv=new ve;class rg{constructor(e=new ve,n=new ve(0,0,-1)){this.origin=e,this.direction=n}set(e,n){return this.origin.copy(e),this.direction.copy(n),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,n){return n.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Ia)),this}closestPointToPoint(e,n){n.subVectors(e,this.origin);const i=n.dot(this.direction);return i<0?n.copy(this.origin):n.copy(this.origin).addScaledVector(this.direction,i)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const n=Ia.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(Ia.copy(this.origin).addScaledVector(this.direction,n),Ia.distanceToSquared(e))}distanceSqToSegment(e,n,i,r){Ov.copy(e).add(n).multiplyScalar(.5),kh.copy(n).sub(e).normalize(),_s.copy(this.origin).sub(Ov);const a=e.distanceTo(n)*.5,s=-this.direction.dot(kh),o=_s.dot(this.direction),u=-_s.dot(kh),c=_s.lengthSq(),l=Math.abs(1-s*s);let d,f,h,g;if(l>0)if(d=s*u-o,f=s*o-u,g=a*l,d>=0)if(f>=-g)if(f<=g){const v=1/l;d*=v,f*=v,h=d*(d+s*f+2*o)+f*(s*d+f+2*u)+c}else f=a,d=Math.max(0,-(s*f+o)),h=-d*d+f*(f+2*u)+c;else f=-a,d=Math.max(0,-(s*f+o)),h=-d*d+f*(f+2*u)+c;else f<=-g?(d=Math.max(0,-(-s*a+o)),f=d>0?-a:Math.min(Math.max(-a,-u),a),h=-d*d+f*(f+2*u)+c):f<=g?(d=0,f=Math.min(Math.max(-a,-u),a),h=f*(f+2*u)+c):(d=Math.max(0,-(s*a+o)),f=d>0?a:Math.min(Math.max(-a,-u),a),h=-d*d+f*(f+2*u)+c);else f=s>0?-a:a,d=Math.max(0,-(s*f+o)),h=-d*d+f*(f+2*u)+c;return i&&i.copy(this.origin).addScaledVector(this.direction,d),r&&r.copy(Ov).addScaledVector(kh,f),h}intersectSphere(e,n){Ia.subVectors(e.center,this.origin);const i=Ia.dot(this.direction),r=Ia.dot(Ia)-i*i,a=e.radius*e.radius;if(r>a)return null;const s=Math.sqrt(a-r),o=i-s,u=i+s;return u<0?null:o<0?this.at(u,n):this.at(o,n)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const n=e.normal.dot(this.direction);if(n===0)return e.distanceToPoint(this.origin)===0?0:null;const i=-(this.origin.dot(e.normal)+e.constant)/n;return i>=0?i:null}intersectPlane(e,n){const i=this.distanceToPlane(e);return i===null?null:this.at(i,n)}intersectsPlane(e){const n=e.distanceToPoint(this.origin);return n===0||e.normal.dot(this.direction)*n<0}intersectBox(e,n){let i,r,a,s,o,u;const c=1/this.direction.x,l=1/this.direction.y,d=1/this.direction.z,f=this.origin;return c>=0?(i=(e.min.x-f.x)*c,r=(e.max.x-f.x)*c):(i=(e.max.x-f.x)*c,r=(e.min.x-f.x)*c),l>=0?(a=(e.min.y-f.y)*l,s=(e.max.y-f.y)*l):(a=(e.max.y-f.y)*l,s=(e.min.y-f.y)*l),i>s||a>r||((a>i||isNaN(i))&&(i=a),(s<r||isNaN(r))&&(r=s),d>=0?(o=(e.min.z-f.z)*d,u=(e.max.z-f.z)*d):(o=(e.max.z-f.z)*d,u=(e.min.z-f.z)*d),i>u||o>r)||((o>i||i!==i)&&(i=o),(u<r||r!==r)&&(r=u),r<0)?null:this.at(i>=0?i:r,n)}intersectsBox(e){return this.intersectBox(e,Ia)!==null}intersectTriangle(e,n,i,r,a){Nv.subVectors(n,e),Oh.subVectors(i,e),Uv.crossVectors(Nv,Oh);let s=this.direction.dot(Uv),o;if(s>0){if(r)return null;o=1}else if(s<0)o=-1,s=-s;else return null;_s.subVectors(this.origin,e);const u=o*this.direction.dot(Oh.crossVectors(_s,Oh));if(u<0)return null;const c=o*this.direction.dot(Nv.cross(_s));if(c<0||u+c>s)return null;const l=-o*_s.dot(Uv);return l<0?null:this.at(l/s,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class Rn{constructor(e,n,i,r,a,s,o,u,c,l,d,f,h,g,v,m){Rn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e!==void 0&&this.set(e,n,i,r,a,s,o,u,c,l,d,f,h,g,v,m)}set(e,n,i,r,a,s,o,u,c,l,d,f,h,g,v,m){const p=this.elements;return p[0]=e,p[4]=n,p[8]=i,p[12]=r,p[1]=a,p[5]=s,p[9]=o,p[13]=u,p[2]=c,p[6]=l,p[10]=d,p[14]=f,p[3]=h,p[7]=g,p[11]=v,p[15]=m,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new Rn().fromArray(this.elements)}copy(e){const n=this.elements,i=e.elements;return n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this}copyPosition(e){const n=this.elements,i=e.elements;return n[12]=i[12],n[13]=i[13],n[14]=i[14],this}setFromMatrix3(e){const n=e.elements;return this.set(n[0],n[3],n[6],0,n[1],n[4],n[7],0,n[2],n[5],n[8],0,0,0,0,1),this}extractBasis(e,n,i){return e.setFromMatrixColumn(this,0),n.setFromMatrixColumn(this,1),i.setFromMatrixColumn(this,2),this}makeBasis(e,n,i){return this.set(e.x,n.x,i.x,0,e.y,n.y,i.y,0,e.z,n.z,i.z,0,0,0,0,1),this}extractRotation(e){const n=this.elements,i=e.elements,r=1/Mu.setFromMatrixColumn(e,0).length(),a=1/Mu.setFromMatrixColumn(e,1).length(),s=1/Mu.setFromMatrixColumn(e,2).length();return n[0]=i[0]*r,n[1]=i[1]*r,n[2]=i[2]*r,n[3]=0,n[4]=i[4]*a,n[5]=i[5]*a,n[6]=i[6]*a,n[7]=0,n[8]=i[8]*s,n[9]=i[9]*s,n[10]=i[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromEuler(e){const n=this.elements,i=e.x,r=e.y,a=e.z,s=Math.cos(i),o=Math.sin(i),u=Math.cos(r),c=Math.sin(r),l=Math.cos(a),d=Math.sin(a);if(e.order==="XYZ"){const f=s*l,h=s*d,g=o*l,v=o*d;n[0]=u*l,n[4]=-u*d,n[8]=c,n[1]=h+g*c,n[5]=f-v*c,n[9]=-o*u,n[2]=v-f*c,n[6]=g+h*c,n[10]=s*u}else if(e.order==="YXZ"){const f=u*l,h=u*d,g=c*l,v=c*d;n[0]=f+v*o,n[4]=g*o-h,n[8]=s*c,n[1]=s*d,n[5]=s*l,n[9]=-o,n[2]=h*o-g,n[6]=v+f*o,n[10]=s*u}else if(e.order==="ZXY"){const f=u*l,h=u*d,g=c*l,v=c*d;n[0]=f-v*o,n[4]=-s*d,n[8]=g+h*o,n[1]=h+g*o,n[5]=s*l,n[9]=v-f*o,n[2]=-s*c,n[6]=o,n[10]=s*u}else if(e.order==="ZYX"){const f=s*l,h=s*d,g=o*l,v=o*d;n[0]=u*l,n[4]=g*c-h,n[8]=f*c+v,n[1]=u*d,n[5]=v*c+f,n[9]=h*c-g,n[2]=-c,n[6]=o*u,n[10]=s*u}else if(e.order==="YZX"){const f=s*u,h=s*c,g=o*u,v=o*c;n[0]=u*l,n[4]=v-f*d,n[8]=g*d+h,n[1]=d,n[5]=s*l,n[9]=-o*l,n[2]=-c*l,n[6]=h*d+g,n[10]=f-v*d}else if(e.order==="XZY"){const f=s*u,h=s*c,g=o*u,v=o*c;n[0]=u*l,n[4]=-d,n[8]=c*l,n[1]=f*d+v,n[5]=s*l,n[9]=h*d-g,n[2]=g*d-h,n[6]=o*l,n[10]=v*d+f}return n[3]=0,n[7]=0,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[15]=1,this}makeRotationFromQuaternion(e){return this.compose(Jie,e,Qie)}lookAt(e,n,i){const r=this.elements;return Wi.subVectors(e,n),Wi.lengthSq()===0&&(Wi.z=1),Wi.normalize(),bs.crossVectors(i,Wi),bs.lengthSq()===0&&(Math.abs(i.z)===1?Wi.x+=1e-4:Wi.z+=1e-4,Wi.normalize(),bs.crossVectors(i,Wi)),bs.normalize(),Nh.crossVectors(Wi,bs),r[0]=bs.x,r[4]=Nh.x,r[8]=Wi.x,r[1]=bs.y,r[5]=Nh.y,r[9]=Wi.y,r[2]=bs.z,r[6]=Nh.z,r[10]=Wi.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,n){const i=e.elements,r=n.elements,a=this.elements,s=i[0],o=i[4],u=i[8],c=i[12],l=i[1],d=i[5],f=i[9],h=i[13],g=i[2],v=i[6],m=i[10],p=i[14],y=i[3],_=i[7],b=i[11],x=i[15],w=r[0],D=r[4],O=r[8],M=r[12],S=r[1],B=r[5],V=r[9],z=r[13],Q=r[2],Z=r[6],q=r[10],te=r[14],$=r[3],ee=r[7],le=r[11],xe=r[15];return a[0]=s*w+o*S+u*Q+c*$,a[4]=s*D+o*B+u*Z+c*ee,a[8]=s*O+o*V+u*q+c*le,a[12]=s*M+o*z+u*te+c*xe,a[1]=l*w+d*S+f*Q+h*$,a[5]=l*D+d*B+f*Z+h*ee,a[9]=l*O+d*V+f*q+h*le,a[13]=l*M+d*z+f*te+h*xe,a[2]=g*w+v*S+m*Q+p*$,a[6]=g*D+v*B+m*Z+p*ee,a[10]=g*O+v*V+m*q+p*le,a[14]=g*M+v*z+m*te+p*xe,a[3]=y*w+_*S+b*Q+x*$,a[7]=y*D+_*B+b*Z+x*ee,a[11]=y*O+_*V+b*q+x*le,a[15]=y*M+_*z+b*te+x*xe,this}multiplyScalar(e){const n=this.elements;return n[0]*=e,n[4]*=e,n[8]*=e,n[12]*=e,n[1]*=e,n[5]*=e,n[9]*=e,n[13]*=e,n[2]*=e,n[6]*=e,n[10]*=e,n[14]*=e,n[3]*=e,n[7]*=e,n[11]*=e,n[15]*=e,this}determinant(){const e=this.elements,n=e[0],i=e[4],r=e[8],a=e[12],s=e[1],o=e[5],u=e[9],c=e[13],l=e[2],d=e[6],f=e[10],h=e[14],g=e[3],v=e[7],m=e[11],p=e[15];return g*(+a*u*d-r*c*d-a*o*f+i*c*f+r*o*h-i*u*h)+v*(+n*u*h-n*c*f+a*s*f-r*s*h+r*c*l-a*u*l)+m*(+n*c*d-n*o*h-a*s*d+i*s*h+a*o*l-i*c*l)+p*(-r*o*l-n*u*d+n*o*f+r*s*d-i*s*f+i*u*l)}transpose(){const e=this.elements;let n;return n=e[1],e[1]=e[4],e[4]=n,n=e[2],e[2]=e[8],e[8]=n,n=e[6],e[6]=e[9],e[9]=n,n=e[3],e[3]=e[12],e[12]=n,n=e[7],e[7]=e[13],e[13]=n,n=e[11],e[11]=e[14],e[14]=n,this}setPosition(e,n,i){const r=this.elements;return e.isVector3?(r[12]=e.x,r[13]=e.y,r[14]=e.z):(r[12]=e,r[13]=n,r[14]=i),this}invert(){const e=this.elements,n=e[0],i=e[1],r=e[2],a=e[3],s=e[4],o=e[5],u=e[6],c=e[7],l=e[8],d=e[9],f=e[10],h=e[11],g=e[12],v=e[13],m=e[14],p=e[15],y=d*m*c-v*f*c+v*u*h-o*m*h-d*u*p+o*f*p,_=g*f*c-l*m*c-g*u*h+s*m*h+l*u*p-s*f*p,b=l*v*c-g*d*c+g*o*h-s*v*h-l*o*p+s*d*p,x=g*d*u-l*v*u-g*o*f+s*v*f+l*o*m-s*d*m,w=n*y+i*_+r*b+a*x;if(w===0)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const D=1/w;return e[0]=y*D,e[1]=(v*f*a-d*m*a-v*r*h+i*m*h+d*r*p-i*f*p)*D,e[2]=(o*m*a-v*u*a+v*r*c-i*m*c-o*r*p+i*u*p)*D,e[3]=(d*u*a-o*f*a-d*r*c+i*f*c+o*r*h-i*u*h)*D,e[4]=_*D,e[5]=(l*m*a-g*f*a+g*r*h-n*m*h-l*r*p+n*f*p)*D,e[6]=(g*u*a-s*m*a-g*r*c+n*m*c+s*r*p-n*u*p)*D,e[7]=(s*f*a-l*u*a+l*r*c-n*f*c-s*r*h+n*u*h)*D,e[8]=b*D,e[9]=(g*d*a-l*v*a-g*i*h+n*v*h+l*i*p-n*d*p)*D,e[10]=(s*v*a-g*o*a+g*i*c-n*v*c-s*i*p+n*o*p)*D,e[11]=(l*o*a-s*d*a-l*i*c+n*d*c+s*i*h-n*o*h)*D,e[12]=x*D,e[13]=(l*v*r-g*d*r+g*i*f-n*v*f-l*i*m+n*d*m)*D,e[14]=(g*o*r-s*v*r-g*i*u+n*v*u+s*i*m-n*o*m)*D,e[15]=(s*d*r-l*o*r+l*i*u-n*d*u-s*i*f+n*o*f)*D,this}scale(e){const n=this.elements,i=e.x,r=e.y,a=e.z;return n[0]*=i,n[4]*=r,n[8]*=a,n[1]*=i,n[5]*=r,n[9]*=a,n[2]*=i,n[6]*=r,n[10]*=a,n[3]*=i,n[7]*=r,n[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,n=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],i=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],r=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(n,i,r))}makeTranslation(e,n,i){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,n,0,0,1,i,0,0,0,1),this}makeRotationX(e){const n=Math.cos(e),i=Math.sin(e);return this.set(1,0,0,0,0,n,-i,0,0,i,n,0,0,0,0,1),this}makeRotationY(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,0,i,0,0,1,0,0,-i,0,n,0,0,0,0,1),this}makeRotationZ(e){const n=Math.cos(e),i=Math.sin(e);return this.set(n,-i,0,0,i,n,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,n){const i=Math.cos(n),r=Math.sin(n),a=1-i,s=e.x,o=e.y,u=e.z,c=a*s,l=a*o;return this.set(c*s+i,c*o-r*u,c*u+r*o,0,c*o+r*u,l*o+i,l*u-r*s,0,c*u-r*o,l*u+r*s,a*u*u+i,0,0,0,0,1),this}makeScale(e,n,i){return this.set(e,0,0,0,0,n,0,0,0,0,i,0,0,0,0,1),this}makeShear(e,n,i,r,a,s){return this.set(1,i,a,0,e,1,s,0,n,r,1,0,0,0,0,1),this}compose(e,n,i){const r=this.elements,a=n._x,s=n._y,o=n._z,u=n._w,c=a+a,l=s+s,d=o+o,f=a*c,h=a*l,g=a*d,v=s*l,m=s*d,p=o*d,y=u*c,_=u*l,b=u*d,x=i.x,w=i.y,D=i.z;return r[0]=(1-(v+p))*x,r[1]=(h+b)*x,r[2]=(g-_)*x,r[3]=0,r[4]=(h-b)*w,r[5]=(1-(f+p))*w,r[6]=(m+y)*w,r[7]=0,r[8]=(g+_)*D,r[9]=(m-y)*D,r[10]=(1-(f+v))*D,r[11]=0,r[12]=e.x,r[13]=e.y,r[14]=e.z,r[15]=1,this}decompose(e,n,i){const r=this.elements;let a=Mu.set(r[0],r[1],r[2]).length();const s=Mu.set(r[4],r[5],r[6]).length(),o=Mu.set(r[8],r[9],r[10]).length();this.determinant()<0&&(a=-a),e.x=r[12],e.y=r[13],e.z=r[14],_r.copy(this);const c=1/a,l=1/s,d=1/o;return _r.elements[0]*=c,_r.elements[1]*=c,_r.elements[2]*=c,_r.elements[4]*=l,_r.elements[5]*=l,_r.elements[6]*=l,_r.elements[8]*=d,_r.elements[9]*=d,_r.elements[10]*=d,n.setFromRotationMatrix(_r),i.x=a,i.y=s,i.z=o,this}makePerspective(e,n,i,r,a,s,o=Za){const u=this.elements,c=2*a/(n-e),l=2*a/(i-r),d=(n+e)/(n-e),f=(i+r)/(i-r);let h,g;if(o===Za)h=-(s+a)/(s-a),g=-2*s*a/(s-a);else if(o===r0)h=-s/(s-a),g=-s*a/(s-a);else throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);return u[0]=c,u[4]=0,u[8]=d,u[12]=0,u[1]=0,u[5]=l,u[9]=f,u[13]=0,u[2]=0,u[6]=0,u[10]=h,u[14]=g,u[3]=0,u[7]=0,u[11]=-1,u[15]=0,this}makeOrthographic(e,n,i,r,a,s,o=Za){const u=this.elements,c=1/(n-e),l=1/(i-r),d=1/(s-a),f=(n+e)*c,h=(i+r)*l;let g,v;if(o===Za)g=(s+a)*d,v=-2*d;else if(o===r0)g=a*d,v=-1*d;else throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);return u[0]=2*c,u[4]=0,u[8]=0,u[12]=-f,u[1]=0,u[5]=2*l,u[9]=0,u[13]=-h,u[2]=0,u[6]=0,u[10]=v,u[14]=-g,u[3]=0,u[7]=0,u[11]=0,u[15]=1,this}equals(e){const n=this.elements,i=e.elements;for(let r=0;r<16;r++)if(n[r]!==i[r])return!1;return!0}fromArray(e,n=0){for(let i=0;i<16;i++)this.elements[i]=e[i+n];return this}toArray(e=[],n=0){const i=this.elements;return e[n]=i[0],e[n+1]=i[1],e[n+2]=i[2],e[n+3]=i[3],e[n+4]=i[4],e[n+5]=i[5],e[n+6]=i[6],e[n+7]=i[7],e[n+8]=i[8],e[n+9]=i[9],e[n+10]=i[10],e[n+11]=i[11],e[n+12]=i[12],e[n+13]=i[13],e[n+14]=i[14],e[n+15]=i[15],e}}const Mu=new ve,_r=new Rn,Jie=new ve(0,0,0),Qie=new ve(1,1,1),bs=new ve,Nh=new ve,Wi=new ve,g3=new Rn,v3=new su;class is{constructor(e=0,n=0,i=0,r=is.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=n,this._z=i,this._order=r}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,n,i,r=this._order){return this._x=e,this._y=n,this._z=i,this._order=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,n=this._order,i=!0){const r=e.elements,a=r[0],s=r[4],o=r[8],u=r[1],c=r[5],l=r[9],d=r[2],f=r[6],h=r[10];switch(n){case"XYZ":this._y=Math.asin(Mi(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-l,h),this._z=Math.atan2(-s,a)):(this._x=Math.atan2(f,c),this._z=0);break;case"YXZ":this._x=Math.asin(-Mi(l,-1,1)),Math.abs(l)<.9999999?(this._y=Math.atan2(o,h),this._z=Math.atan2(u,c)):(this._y=Math.atan2(-d,a),this._z=0);break;case"ZXY":this._x=Math.asin(Mi(f,-1,1)),Math.abs(f)<.9999999?(this._y=Math.atan2(-d,h),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(u,a));break;case"ZYX":this._y=Math.asin(-Mi(d,-1,1)),Math.abs(d)<.9999999?(this._x=Math.atan2(f,h),this._z=Math.atan2(u,a)):(this._x=0,this._z=Math.atan2(-s,c));break;case"YZX":this._z=Math.asin(Mi(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-d,a)):(this._x=0,this._y=Math.atan2(o,h));break;case"XZY":this._z=Math.asin(-Mi(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(f,c),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-l,h),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+n)}return this._order=n,i===!0&&this._onChangeCallback(),this}setFromQuaternion(e,n,i){return g3.makeRotationFromQuaternion(e),this.setFromRotationMatrix(g3,n,i)}setFromVector3(e,n=this._order){return this.set(e.x,e.y,e.z,n)}reorder(e){return v3.setFromEuler(this),this.setFromQuaternion(v3,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],e[3]!==void 0&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],n=0){return e[n]=this._x,e[n+1]=this._y,e[n+2]=this._z,e[n+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}is.DEFAULT_ORDER="XYZ";class By{constructor(){this.mask=1}set(e){this.mask=(1<<e|0)>>>0}enable(e){this.mask|=1<<e|0}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e|0}disable(e){this.mask&=~(1<<e|0)}disableAll(){this.mask=0}test(e){return(this.mask&e.mask)!==0}isEnabled(e){return(this.mask&(1<<e|0))!==0}}let ere=0;const _3=new ve,Cu=new su,Pa=new Rn,Uh=new ve,Cc=new ve,tre=new ve,nre=new su,b3=new ve(1,0,0),y3=new ve(0,1,0),E3=new ve(0,0,1),x3={type:"added"},ire={type:"removed"},Du={type:"childadded",child:null},Fv={type:"childremoved",child:null};class $i extends fu{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:ere++}),this.uuid=Tf(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=$i.DEFAULT_UP.clone();const e=new ve,n=new is,i=new su,r=new ve(1,1,1);function a(){i.setFromEuler(n,!1)}function s(){n.setFromQuaternion(i,void 0,!1)}n._onChange(a),i._onChange(s),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:n},quaternion:{configurable:!0,enumerable:!0,value:i},scale:{configurable:!0,enumerable:!0,value:r},modelViewMatrix:{value:new Rn},normalMatrix:{value:new St}}),this.matrix=new Rn,this.matrixWorld=new Rn,this.matrixAutoUpdate=$i.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=$i.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new By,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,n){this.quaternion.setFromAxisAngle(e,n)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,n){return Cu.setFromAxisAngle(e,n),this.quaternion.multiply(Cu),this}rotateOnWorldAxis(e,n){return Cu.setFromAxisAngle(e,n),this.quaternion.premultiply(Cu),this}rotateX(e){return this.rotateOnAxis(b3,e)}rotateY(e){return this.rotateOnAxis(y3,e)}rotateZ(e){return this.rotateOnAxis(E3,e)}translateOnAxis(e,n){return _3.copy(e).applyQuaternion(this.quaternion),this.position.add(_3.multiplyScalar(n)),this}translateX(e){return this.translateOnAxis(b3,e)}translateY(e){return this.translateOnAxis(y3,e)}translateZ(e){return this.translateOnAxis(E3,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(Pa.copy(this.matrixWorld).invert())}lookAt(e,n,i){e.isVector3?Uh.copy(e):Uh.set(e,n,i);const r=this.parent;this.updateWorldMatrix(!0,!1),Cc.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?Pa.lookAt(Cc,Uh,this.up):Pa.lookAt(Uh,Cc,this.up),this.quaternion.setFromRotationMatrix(Pa),r&&(Pa.extractRotation(r.matrixWorld),Cu.setFromRotationMatrix(Pa),this.quaternion.premultiply(Cu.invert()))}add(e){if(arguments.length>1){for(let n=0;n<arguments.length;n++)this.add(arguments[n]);return this}return e===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",e),this):(e&&e.isObject3D?(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(x3),Du.child=e,this.dispatchEvent(Du),Du.child=null):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",e),this)}remove(e){if(arguments.length>1){for(let i=0;i<arguments.length;i++)this.remove(arguments[i]);return this}const n=this.children.indexOf(e);return n!==-1&&(e.parent=null,this.children.splice(n,1),e.dispatchEvent(ire),Fv.child=e,this.dispatchEvent(Fv),Fv.child=null),this}removeFromParent(){const e=this.parent;return e!==null&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),Pa.copy(this.matrixWorld).invert(),e.parent!==null&&(e.parent.updateWorldMatrix(!0,!1),Pa.multiply(e.parent.matrixWorld)),e.applyMatrix4(Pa),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(x3),Du.child=e,this.dispatchEvent(Du),Du.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,n){if(this[e]===n)return this;for(let i=0,r=this.children.length;i<r;i++){const s=this.children[i].getObjectByProperty(e,n);if(s!==void 0)return s}}getObjectsByProperty(e,n,i=[]){this[e]===n&&i.push(this);const r=this.children;for(let a=0,s=r.length;a<s;a++)r[a].getObjectsByProperty(e,n,i);return i}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Cc,e,tre),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(Cc,nre,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const n=this.matrixWorld.elements;return e.set(n[8],n[9],n[10]).normalize()}raycast(){}traverse(e){e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverse(e)}traverseVisible(e){if(this.visible===!1)return;e(this);const n=this.children;for(let i=0,r=n.length;i<r;i++)n[i].traverseVisible(e)}traverseAncestors(e){const n=this.parent;n!==null&&(e(n),n.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,e=!0);const n=this.children;for(let i=0,r=n.length;i<r;i++){const a=n[i];(a.matrixWorldAutoUpdate===!0||e===!0)&&a.updateMatrixWorld(e)}}updateWorldMatrix(e,n){const i=this.parent;if(e===!0&&i!==null&&i.matrixWorldAutoUpdate===!0&&i.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),this.parent===null?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),n===!0){const r=this.children;for(let a=0,s=r.length;a<s;a++){const o=r[a];o.matrixWorldAutoUpdate===!0&&o.updateWorldMatrix(!1,!0)}}}toJSON(e){const n=e===void 0||typeof e=="string",i={};n&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},i.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const r={};r.uuid=this.uuid,r.type=this.type,this.name!==""&&(r.name=this.name),this.castShadow===!0&&(r.castShadow=!0),this.receiveShadow===!0&&(r.receiveShadow=!0),this.visible===!1&&(r.visible=!1),this.frustumCulled===!1&&(r.frustumCulled=!1),this.renderOrder!==0&&(r.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.matrixAutoUpdate===!1&&(r.matrixAutoUpdate=!1),this.isInstancedMesh&&(r.type="InstancedMesh",r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type="BatchedMesh",r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.visibility=this._visibility,r.active=this._active,r.bounds=this._bounds.map(o=>({boxInitialized:o.boxInitialized,boxMin:o.box.min.toArray(),boxMax:o.box.max.toArray(),sphereInitialized:o.sphereInitialized,sphereRadius:o.sphere.radius,sphereCenter:o.sphere.center.toArray()})),r.maxGeometryCount=this._maxGeometryCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.geometryCount=this._geometryCount,r.matricesTexture=this._matricesTexture.toJSON(e),this.boundingSphere!==null&&(r.boundingSphere={center:r.boundingSphere.center.toArray(),radius:r.boundingSphere.radius}),this.boundingBox!==null&&(r.boundingBox={min:r.boundingBox.min.toArray(),max:r.boundingBox.max.toArray()}));function a(o,u){return o[u.uuid]===void 0&&(o[u.uuid]=u.toJSON(e)),u.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=a(e.geometries,this.geometry);const o=this.geometry.parameters;if(o!==void 0&&o.shapes!==void 0){const u=o.shapes;if(Array.isArray(u))for(let c=0,l=u.length;c<l;c++){const d=u[c];a(e.shapes,d)}else a(e.shapes,u)}}if(this.isSkinnedMesh&&(r.bindMode=this.bindMode,r.bindMatrix=this.bindMatrix.toArray(),this.skeleton!==void 0&&(a(e.skeletons,this.skeleton),r.skeleton=this.skeleton.uuid)),this.material!==void 0)if(Array.isArray(this.material)){const o=[];for(let u=0,c=this.material.length;u<c;u++)o.push(a(e.materials,this.material[u]));r.material=o}else r.material=a(e.materials,this.material);if(this.children.length>0){r.children=[];for(let o=0;o<this.children.length;o++)r.children.push(this.children[o].toJSON(e).object)}if(this.animations.length>0){r.animations=[];for(let o=0;o<this.animations.length;o++){const u=this.animations[o];r.animations.push(a(e.animations,u))}}if(n){const o=s(e.geometries),u=s(e.materials),c=s(e.textures),l=s(e.images),d=s(e.shapes),f=s(e.skeletons),h=s(e.animations),g=s(e.nodes);o.length>0&&(i.geometries=o),u.length>0&&(i.materials=u),c.length>0&&(i.textures=c),l.length>0&&(i.images=l),d.length>0&&(i.shapes=d),f.length>0&&(i.skeletons=f),h.length>0&&(i.animations=h),g.length>0&&(i.nodes=g)}return i.object=r,i;function s(o){const u=[];for(const c in o){const l=o[c];delete l.metadata,u.push(l)}return u}}clone(e){return new this.constructor().copy(this,e)}copy(e,n=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),n===!0)for(let i=0;i<e.children.length;i++){const r=e.children[i];this.add(r.clone())}return this}}$i.DEFAULT_UP=new ve(0,1,0);$i.DEFAULT_MATRIX_AUTO_UPDATE=!0;$i.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const br=new ve,ka=new ve,Bv=new ve,Oa=new ve,Lu=new ve,Ru=new ve,A3=new ve,Vv=new ve,Hv=new ve,zv=new ve;class fa{constructor(e=new ve,n=new ve,i=new ve){this.a=e,this.b=n,this.c=i}static getNormal(e,n,i,r){r.subVectors(i,n),br.subVectors(e,n),r.cross(br);const a=r.lengthSq();return a>0?r.multiplyScalar(1/Math.sqrt(a)):r.set(0,0,0)}static getBarycoord(e,n,i,r,a){br.subVectors(r,n),ka.subVectors(i,n),Bv.subVectors(e,n);const s=br.dot(br),o=br.dot(ka),u=br.dot(Bv),c=ka.dot(ka),l=ka.dot(Bv),d=s*c-o*o;if(d===0)return a.set(0,0,0),null;const f=1/d,h=(c*u-o*l)*f,g=(s*l-o*u)*f;return a.set(1-h-g,g,h)}static containsPoint(e,n,i,r){return this.getBarycoord(e,n,i,r,Oa)===null?!1:Oa.x>=0&&Oa.y>=0&&Oa.x+Oa.y<=1}static getInterpolation(e,n,i,r,a,s,o,u){return this.getBarycoord(e,n,i,r,Oa)===null?(u.x=0,u.y=0,"z"in u&&(u.z=0),"w"in u&&(u.w=0),null):(u.setScalar(0),u.addScaledVector(a,Oa.x),u.addScaledVector(s,Oa.y),u.addScaledVector(o,Oa.z),u)}static isFrontFacing(e,n,i,r){return br.subVectors(i,n),ka.subVectors(e,n),br.cross(ka).dot(r)<0}set(e,n,i){return this.a.copy(e),this.b.copy(n),this.c.copy(i),this}setFromPointsAndIndices(e,n,i,r){return this.a.copy(e[n]),this.b.copy(e[i]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,n,i,r){return this.a.fromBufferAttribute(e,n),this.b.fromBufferAttribute(e,i),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return br.subVectors(this.c,this.b),ka.subVectors(this.a,this.b),br.cross(ka).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return fa.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,n){return fa.getBarycoord(e,this.a,this.b,this.c,n)}getInterpolation(e,n,i,r,a){return fa.getInterpolation(e,this.a,this.b,this.c,n,i,r,a)}containsPoint(e){return fa.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return fa.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,n){const i=this.a,r=this.b,a=this.c;let s,o;Lu.subVectors(r,i),Ru.subVectors(a,i),Vv.subVectors(e,i);const u=Lu.dot(Vv),c=Ru.dot(Vv);if(u<=0&&c<=0)return n.copy(i);Hv.subVectors(e,r);const l=Lu.dot(Hv),d=Ru.dot(Hv);if(l>=0&&d<=l)return n.copy(r);const f=u*d-l*c;if(f<=0&&u>=0&&l<=0)return s=u/(u-l),n.copy(i).addScaledVector(Lu,s);zv.subVectors(e,a);const h=Lu.dot(zv),g=Ru.dot(zv);if(g>=0&&h<=g)return n.copy(a);const v=h*c-u*g;if(v<=0&&c>
vendor: 6,252 bytes, line 2033
2033=0&&g<=0)return o=c/(c-g),n.copy(i).addScaledVector(Ru,o);const m=l*g-h*d;if(m<=0&&d-l>=0&&h-g>=0)return A3.subVectors(a,r),o=(d-l)/(d-l+(h-g)),n.copy(r).addScaledVector(A3,o);const p=1/(m+v+f);return s=v*p,o=f*p,n.copy(i).addScaledVector(Lu,s).addScaledVector(Ru,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const I4={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ys={h:0,s:0,l:0},Fh={h:0,s:0,l:0};function $v(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*6*(2/3-n):t}class qt{constructor(e,n,i){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,n,i)}set(e,n,i){if(n===void 0&&i===void 0){const r=e;r&&r.isColor?this.copy(r):typeof r=="number"?this.setHex(r):typeof r=="string"&&this.setStyle(r)}else this.setRGB(e,n,i);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,n=sa){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,en.toWorkingColorSpace(this,n),this}setRGB(e,n,i,r=en.workingColorSpace){return this.r=e,this.g=n,this.b=i,en.toWorkingColorSpace(this,r),this}setHSL(e,n,i,r=en.workingColorSpace){if(e=Hie(e,1),n=Mi(n,0,1),i=Mi(i,0,1),n===0)this.r=this.g=this.b=i;else{const a=i<=.5?i*(1+n):i+n-i*n,s=2*i-a;this.r=$v(s,a,e+1/3),this.g=$v(s,a,e),this.b=$v(s,a,e-1/3)}return en.toWorkingColorSpace(this,r),this}setStyle(e,n=sa){function i(a){a!==void 0&&parseFloat(a)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let a;const s=r[1],o=r[2];switch(s){case"rgb":case"rgba":if(a=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(255,parseInt(a[1],10))/255,Math.min(255,parseInt(a[2],10))/255,Math.min(255,parseInt(a[3],10))/255,n);if(a=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setRGB(Math.min(100,parseInt(a[1],10))/100,Math.min(100,parseInt(a[2],10))/100,Math.min(100,parseInt(a[3],10))/100,n);break;case"hsl":case"hsla":if(a=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return i(a[4]),this.setHSL(parseFloat(a[1])/360,parseFloat(a[2])/100,parseFloat(a[3])/100,n);break;default:console.warn("THREE.Color: Unknown color model "+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){const a=r[1],s=a.length;if(s===3)return this.setRGB(parseInt(a.charAt(0),16)/15,parseInt(a.charAt(1),16)/15,parseInt(a.charAt(2),16)/15,n);if(s===6)return this.setHex(parseInt(a,16),n);console.warn("THREE.Color: Invalid hex color "+e)}else if(e&&e.length>0)return this.setColorName(e,n);return this}setColorName(e,n=sa){const i=I4[e.toLowerCase()];return i!==void 0?this.setHex(i,n):console.warn("THREE.Color: Unknown color "+e),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Sl(e.r),this.g=Sl(e.g),this.b=Sl(e.b),this}copyLinearToSRGB(e){return this.r=Lv(e.r),this.g=Lv(e.g),this.b=Lv(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=sa){return en.fromWorkingColorSpace(ci.copy(this),e),Math.round(Mi(ci.r*255,0,255))*65536+Math.round(Mi(ci.g*255,0,255))*256+Math.round(Mi(ci.b*255,0,255))}getHexString(e=sa){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,n=en.workingColorSpace){en.fromWorkingColorSpace(ci.copy(this),n);const i=ci.r,r=ci.g,a=ci.b,s=Math.max(i,r,a),o=Math.min(i,r,a);let u,c;const l=(o+s)/2;if(o===s)u=0,c=0;else{const d=s-o;
vendor: 3,714 bytes, line 2033
2033switch(c=l<=.5?d/(s+o):d/(2-s-o),s){case i:u=(r-a)/d+(r<a?6:0);break;case r:u=(a-i)/d+2;break;case a:u=(i-r)/d+4;break}u/=6}return e.h=u,e.s=c,e.l=l,e}getRGB(e,n=en.workingColorSpace){return en.fromWorkingColorSpace(ci.copy(this),n),e.r=ci.r,e.g=ci.g,e.b=ci.b,e}getStyle(e=sa){en.fromWorkingColorSpace(ci.copy(this),e);const n=ci.r,i=ci.g,r=ci.b;return e!==sa?`color(${e} ${n.toFixed(3)} ${i.toFixed(3)} ${r.toFixed(3)})`:`rgb(${Math.round(n*255)},${Math.round(i*255)},${Math.round(r*255)})`}offsetHSL(e,n,i){return this.getHSL(ys),this.setHSL(ys.h+e,ys.s+n,ys.l+i)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,n){return this.r=e.r+n.r,this.g=e.g+n.g,this.b=e.b+n.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,n){return this.r+=(e.r-this.r)*n,this.g+=(e.g-this.g)*n,this.b+=(e.b-this.b)*n,this}lerpColors(e,n,i){return this.r=e.r+(n.r-e.r)*i,this.g=e.g+(n.g-e.g)*i,this.b=e.b+(n.b-e.b)*i,this}lerpHSL(e,n){this.getHSL(ys),e.getHSL(Fh);const i=Cv(ys.h,Fh.h,n),r=Cv(ys.s,Fh.s,n),a=Cv(ys.l,Fh.l,n);return this.setHSL(i,r,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const n=this.r,i=this.g,r=this.b,a=e.elements;return this.r=a[0]*n+a[3]*i+a[6]*r,this.g=a[1]*n+a[4]*i+a[7]*r,this.b=a[2]*n+a[5]*i+a[8]*r,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,n=0){return this.r=e[n],this.g=e[n+1],this.b=e[n+2],this}toArray(e=[],n=0){return e[n]=this.r,e[n+1]=this.g,e[n+2]=this.b,e}fromBufferAttribute(e,n){return this.r=e.getX(n),this.g=e.getY(n),this.b=e.getZ(n),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const ci=new qt;qt.NAMES=I4;let rre=0;class Mf extends fu{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:rre++}),this.uuid=Tf(),this.name="",this.type="Material",this.blending=xl,this.side=Ks,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=T2,this.blendDst=w2,this.blendEquation=Oo,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new qt(0,0,0),this.blendAlpha=0,this.depthFunc=Qm,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=l3,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=xu,this.stencilZFail=xu,this.stencilZPass=xu,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(const n in e){const i=e[n];if(i===void 0){console.warn(`THREE.Material: parameter '${n}' has value of undefined.`);continue}const r=this[n];if(r===void 0){console.warn(`THREE.Material: '${n}' is not a property of THREE.${this.type}.`);continue}r&&r.isColor?r.set(i):r&&r.isVector3&&i&&i.isVector3?r.copy(i):this[n]=i}}toJSON(e){const n=e===void 0||typeof e=="string";n&&(e={textures:{},images:{}});const i={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};
vendor: 50,147 bytes, lines 2033-2165
2033i.uuid=this.uuid,i.type=this.type,this.name!==""&&(i.name=this.name),this.color&&this.color.isColor&&(i.color=this.color.getHex()),this.roughness!==void 0&&(i.roughness=this.roughness),this.metalness!==void 0&&(i.metalness=this.metalness),this.sheen!==void 0&&(i.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(i.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(i.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(i.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&this.emissiveIntensity!==1&&(i.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(i.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(i.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(i.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(i.shininess=this.shininess),this.clearcoat!==void 0&&(i.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(i.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(i.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(i.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(i.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,i.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.iridescence!==void 0&&(i.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(i.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(i.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(i.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(i.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(i.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(i.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(i.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(i.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(i.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(i.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(i.lightMap=this.lightMap.toJSON(e).uuid,i.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(i.aoMap=this.aoMap.toJSON(e).uuid,i.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(i.bumpMap=this.bumpMap.toJSON(e).uuid,i.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(i.normalMap=this.normalMap.toJSON(e).uuid,i.normalMapType=this.normalMapType,i.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(i.displacementMap=this.displacementMap.toJSON(e).uuid,i.displacementScale=this.displacementScale,i.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(i.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(i.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(i.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(i.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(i.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(i.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(i.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(i.combine=this.combine)),this.envMapRotation!==void 0&&(i.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(i.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(i.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(i.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(i.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(i.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(i.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(i.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(i.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&this.attenuationDistance!==1/0&&(i.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(i.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(i.size=this.size),this.shadowSide!==null&&(i.shadowSide=this.shadowSide),this.sizeAttenuation!==void 0&&(i.sizeAttenuation=this.sizeAttenuation),this.blending!==xl&&(i.blending=this.blending),this.side!==Ks&&(i.side=this.side),this.vertexColors===!0&&(i.vertexColors=!0),this.opacity<1&&(i.opacity=this.opacity),this.transparent===!0&&(i.transparent=!0),this.blendSrc!==T2&&(i.blendSrc=this.blendSrc),this.blendDst!==w2&&(i.blendDst=this.blendDst),this.blendEquation!==Oo&&(i.blendEquation=this.blendEquation),this.blendSrcAlpha!==null&&(i.blendSrcAlpha=this.blendSrcAlpha),this.blendDstAlpha!==null&&(i.blendDstAlpha=this.blendDstAlpha),this.blendEquationAlpha!==null&&(i.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(i.blendColor=this.blendColor.getHex()),this.blendAlpha!==0&&(i.blendAlpha=this.blendAlpha),this.depthFunc!==Qm&&(i.depthFunc=this.depthFunc),this.depthTest===!1&&(i.depthTest=this.depthTest),this.depthWrite===!1&&(i.depthWrite=this.depthWrite),this.colorWrite===!1&&(i.colorWrite=this.colorWrite),this.stencilWriteMask!==255&&(i.stencilWriteMask=this.stencilWriteMask),this.stencilFunc!==l3&&(i.stencilFunc=this.stencilFunc),this.stencilRef!==0&&(i.stencilRef=this.stencilRef),this.stencilFuncMask!==255&&(i.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==xu&&(i.stencilFail=this.stencilFail),this.stencilZFail!==xu&&(i.stencilZFail=this.stencilZFail),this.stencilZPass!==xu&&(i.stencilZPass=this.stencilZPass),this.stencilWrite===!0&&(i.stencilWrite=this.stencilWrite),this.rotation!==void 0&&this.rotation!==0&&(i.rotation=this.rotation),this.polygonOffset===!0&&(i.polygonOffset=!0),this.polygonOffsetFactor!==0&&(i.polygonOffsetFactor=this.polygonOffsetFactor),this.polygonOffsetUnits!==0&&(i.polygonOffsetUnits=this.polygonOffsetUnits),this.linewidth!==void 0&&this.linewidth!==1&&(i.linewidth=this.linewidth),this.dashSize!==void 0&&(i.dashSize=this.dashSize),this.gapSize!==void 0&&(i.gapSize=this.gapSize),this.scale!==void 0&&(i.scale=this.scale),this.dithering===!0&&(i.dithering=!0),this.alphaTest>0&&(i.alphaTest=this.alphaTest),this.alphaHash===!0&&(i.alphaHash=!0),this.alphaToCoverage===!0&&(i.alphaToCoverage=!0),this.premultipliedAlpha===!0&&(i.premultipliedAlpha=!0),this.forceSinglePass===!0&&(i.forceSinglePass=!0),this.wireframe===!0&&(i.wireframe=!0),this.wireframeLinewidth>1&&(i.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!=="round"&&(i.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!=="round"&&(i.wireframeLinejoin=this.wireframeLinejoin),this.flatShading===!0&&(i.flatShading=!0),this.visible===!1&&(i.visible=!1),this.toneMapped===!1&&(i.toneMapped=!1),this.fog===!1&&(i.fog=!1),Object.keys(this.userData).length>0&&(i.userData=this.userData);function r(a){const s=[];for(const o in a){const u=a[o];delete u.metadata,s.push(u)}return s}if(n){const a=r(e.textures),s=r(e.images);a.length>0&&(i.textures=a),s.length>0&&(i.images=s)}return i}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const n=e.clippingPlanes;let i=null;if(n!==null){const r=n.length;i=new Array(r);for(let a=0;a!==r;++a)i[a]=n[a].clone()}return this.clippingPlanes=i,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){e===!0&&this.version++}}class ag extends Mf{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new qt(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new is,this.combine=_4,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const kn=new ve,Bh=new vt;class ya{constructor(e,n,i=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=n,this.count=e!==void 0?e.length/n:0,this.normalized=i,this.usage=c3,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=Us,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}get updateRange(){return Wie("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,n){this.updateRanges.push({start:e,count:n})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,n,i){e*=this.itemSize,i*=n.itemSize;for(let r=0,a=this.itemSize;r<a;r++)this.array[e+r]=n.array[i+r];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(this.itemSize===2)for(let n=0,i=this.count;n<i;n++)Bh.fromBufferAttribute(this,n),Bh.applyMatrix3(e),this.setXY(n,Bh.x,Bh.y);else if(this.itemSize===3)for(let n=0,i=this.count;n<i;n++)kn.fromBufferAttribute(this,n),kn.applyMatrix3(e),this.setXYZ(n,kn.x,kn.y,kn.z);return this}applyMatrix4(e){for(let n=0,i=this.count;n<i;n++)kn.fromBufferAttribute(this,n),kn.applyMatrix4(e),this.setXYZ(n,kn.x,kn.y,kn.z);return this}applyNormalMatrix(e){for(let n=0,i=this.count;n<i;n++)kn.fromBufferAttribute(this,n),kn.applyNormalMatrix(e),this.setXYZ(n,kn.x,kn.y,kn.z);return this}transformDirection(e){for(let n=0,i=this.count;n<i;n++)kn.fromBufferAttribute(this,n),kn.transformDirection(e),this.setXYZ(n,kn.x,kn.y,kn.z);return this}set(e,n=0){return this.array.set(e,n),this}getComponent(e,n){let i=this.array[e*this.itemSize+n];return this.normalized&&(i=Tc(i,this.array)),i}setComponent(e,n,i){return this.normalized&&(i=Ii(i,this.array)),this.array[e*this.itemSize+n]=i,this}getX(e){let n=this.array[e*this.itemSize];return this.normalized&&(n=Tc(n,this.array)),n}setX(e,n){return this.normalized&&(n=Ii(n,this.array)),this.array[e*this.itemSize]=n,this}getY(e){let n=this.array[e*this.itemSize+1];return this.normalized&&(n=Tc(n,this.array)),n}setY(e,n){return this.normalized&&(n=Ii(n,this.array)),this.array[e*this.itemSize+1]=n,this}getZ(e){let n=this.array[e*this.itemSize+2];return this.normalized&&(n=Tc(n,this.array)),n}setZ(e,n){return this.normalized&&(n=Ii(n,this.array)),this.array[e*this.itemSize+2]=n,this}getW(e){let n=this.array[e*this.itemSize+3];return this.normalized&&(n=Tc(n,this.array)),n}setW(e,n){return this.normalized&&(n=Ii(n,this.array)),this.array[e*this.itemSize+3]=n,this}setXY(e,n,i){return e*=this.itemSize,this.normalized&&(n=Ii(n,this.array),i=Ii(i,this.array)),this.array[e+0]=n,this.array[e+1]=i,this}setXYZ(e,n,i,r){return e*=this.itemSize,this.normalized&&(n=Ii(n,this.array),i=Ii(i,this.array),r=Ii(r,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this}setXYZW(e,n,i,r,a){return e*=this.itemSize,this.normalized&&(n=Ii(n,this.array),i=Ii(i,this.array),r=Ii(r,this.array),a=Ii(a,this.array)),this.array[e+0]=n,this.array[e+1]=i,this.array[e+2]=r,this.array[e+3]=a,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return this.name!==""&&(e.name=this.name),this.usage!==c3&&(e.usage=this.usage),e}}class P4 extends ya{constructor(e,n,i){super(new Uint16Array(e),n,i)}}class k4 extends ya{constructor(e,n,i){super(new Uint32Array(e),n,i)}}class zn extends ya{constructor(e,n,i){super(new Float32Array(e),n,i)}}let are=0;const ur=new Rn,Wv=new $i,Iu=new ve,Gi=new wf,Dc=new wf,Xn=new ve;class Qi extends fu{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:are++}),this.uuid=Tf(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(D4(e)?k4:P4)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,n){return this.attributes[e]=n,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,n,i=0){this.groups.push({start:e,count:n,materialIndex:i})}clearGroups(){this.groups=[]}setDrawRange(e,n){this.drawRange.start=e,this.drawRange.count=n}applyMatrix4(e){const n=this.attributes.position;n!==void 0&&(n.applyMatrix4(e),n.needsUpdate=!0);const i=this.attributes.normal;if(i!==void 0){const a=new St().getNormalMatrix(e);i.applyNormalMatrix(a),i.needsUpdate=!0}const r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}applyQuaternion(e){return ur.makeRotationFromQuaternion(e),this.applyMatrix4(ur),this}rotateX(e){return ur.makeRotationX(e),this.applyMatrix4(ur),this}rotateY(e){return ur.makeRotationY(e),this.applyMatrix4(ur),this}rotateZ(e){return ur.makeRotationZ(e),this.applyMatrix4(ur),this}translate(e,n,i){return ur.makeTranslation(e,n,i),this.applyMatrix4(ur),this}scale(e,n,i){return ur.makeScale(e,n,i),this.applyMatrix4(ur),this}lookAt(e){return Wv.lookAt(e),Wv.updateMatrix(),this.applyMatrix4(Wv.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(Iu).negate(),this.translate(Iu.x,Iu.y,Iu.z),this}setFromPoints(e){const n=[];for(let i=0,r=e.length;i<r;i++){const a=e[i];n.push(a.x,a.y,a.z||0)}return this.setAttribute("position",new zn(n,3)),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new wf);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.",this),this.boundingBox.set(new ve(-1/0,-1/0,-1/0),new ve(1/0,1/0,1/0));return}if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),n)for(let i=0,r=n.length;i<r;i++){const a=n[i];Gi.setFromBufferAttribute(a),this.morphTargetsRelative?(Xn.addVectors(this.boundingBox.min,Gi.min),this.boundingBox.expandByPoint(Xn),Xn.addVectors(this.boundingBox.max,Gi.max),this.boundingBox.expandByPoint(Xn)):(this.boundingBox.expandByPoint(Gi.min),this.boundingBox.expandByPoint(Gi.max))}}else this.boundingBox.makeEmpty();(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new ig);const e=this.attributes.position,n=this.morphAttributes.position;if(e&&e.isGLBufferAttribute){console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.",this),this.boundingSphere.set(new ve,1/0);return}if(e){const i=this.boundingSphere.center;if(Gi.setFromBufferAttribute(e),n)for(let a=0,s=n.length;a<s;a++){const o=n[a];Dc.setFromBufferAttribute(o),this.morphTargetsRelative?(Xn.addVectors(Gi.min,Dc.min),Gi.expandByPoint(Xn),Xn.addVectors(Gi.max,Dc.max),Gi.expandByPoint(Xn)):(Gi.expandByPoint(Dc.min),Gi.expandByPoint(Dc.max))}Gi.getCenter(i);let r=0;for(let a=0,s=e.count;a<s;a++)Xn.fromBufferAttribute(e,a),r=Math.max(r,i.distanceToSquared(Xn));if(n)for(let a=0,s=n.length;a<s;a++){const o=n[a],u=this.morphTargetsRelative;for(let c=0,l=o.count;c<l;c++)Xn.fromBufferAttribute(o,c),u&&(Iu.fromBufferAttribute(e,c),Xn.add(Iu)),r=Math.max(r,i.distanceToSquared(Xn))}this.boundingSphere.radius=Math.sqrt(r),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}computeTangents(){const e=this.index,n=this.attributes;if(e===null||n.position===void 0||n.normal===void 0||n.uv===void 0){console.error("THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)");return}const i=n.position,r=n.normal,a=n.uv;this.hasAttribute("tangent")===!1&&this.setAttribute("tangent",new ya(new Float32Array(4*i.count),4));const s=this.getAttribute("tangent"),o=[],u=[];for(let O=0;O<i.count;O++)o[O]=new ve,u[O]=new ve;const c=new ve,l=new ve,d=new ve,f=new vt,h=new vt,g=new vt,v=new ve,m=new ve;function p(O,M,S){c.fromBufferAttribute(i,O),l.fromBufferAttribute(i,M),d.fromBufferAttribute(i,S),f.fromBufferAttribute(a,O),h.fromBufferAttribute(a,M),g.fromBufferAttribute(a,S),l.sub(c),d.sub(c),h.sub(f),g.sub(f);const B=1/(h.x*g.y-g.x*h.y);isFinite(B)&&(v.copy(l).multiplyScalar(g.y).addScaledVector(d,-h.y).multiplyScalar(B),m.copy(d).multiplyScalar(h.x).addScaledVector(l,-g.x).multiplyScalar(B),o[O].add(v),o[M].add(v),o[S].add(v),u[O].add(m),u[M].add(m),u[S].add(m))}let y=this.groups;y.length===0&&(y=[{start:0,count:e.count}]);for(let O=0,M=y.length;O<M;++O){const S=y[O],B=S.start,V=S.count;for(let z=B,Q=B+V;z<Q;z+=3)p(e.getX(z+0),e.getX(z+1),e.getX(z+2))}const _=new ve,b=new ve,x=new ve,w=new ve;function D(O){x.fromBufferAttribute(r,O),w.copy(x);const M=o[O];_.copy(M),_.sub(x.multiplyScalar(x.dot(M))).normalize(),b.crossVectors(w,M);const B=b.dot(u[O])<0?-1:1;s.setXYZW(O,_.x,_.y,_.z,B)}for(let O=0,M=y.length;O<M;++O){const S=y[O],B=S.start,V=S.count;for(let z=B,Q=B+V;z<Q;z+=3)D(e.getX(z+0)),D(e.getX(z+1)),D(e.getX(z+2))}}computeVertexNormals(){const e=this.index,n=this.getAttribute("position");if(n!==void 0){let i=this.getAttribute("normal");if(i===void 0)i=new ya(new Float32Array(n.count*3),3),this.setAttribute("normal",i);else for(let f=0,h=i.count;f<h;f++)i.setXYZ(f,0,0,0);const r=new ve,a=new ve,s=new ve,o=new ve,u=new ve,c=new ve,l=new ve,d=new ve;if(e)for(let f=0,h=e.count;f<h;f+=3){const g=e.getX(f+0),v=e.getX(f+1),m=e.getX(f+2);r.fromBufferAttribute(n,g),a.fromBufferAttribute(n,v),s.fromBufferAttribute(n,m),l.subVectors(s,a),d.subVectors(r,a),l.cross(d),o.fromBufferAttribute(i,g),u.fromBufferAttribute(i,v),c.fromBufferAttribute(i,m),o.add(l),u.add(l),c.add(l),i.setXYZ(g,o.x,o.y,o.z),i.setXYZ(v,u.x,u.y,u.z),i.setXYZ(m,c.x,c.y,c.z)}else for(let f=0,h=n.count;f<h;f+=3)r.fromBufferAttribute(n,f+0),a.fromBufferAttribute(n,f+1),s.fromBufferAttribute(n,f+2),l.subVectors(s,a),d.subVectors(r,a),l.cross(d),i.setXYZ(f+0,l.x,l.y,l.z),i.setXYZ(f+1,l.x,l.y,l.z),i.setXYZ(f+2,l.x,l.y,l.z);this.normalizeNormals(),i.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let n=0,i=e.count;n<i;n++)Xn.fromBufferAttribute(e,n),Xn.normalize(),e.setXYZ(n,Xn.x,Xn.y,Xn.z)}toNonIndexed(){function e(o,u){const c=o.array,l=o.itemSize,d=o.normalized,f=new c.constructor(u.length*l);let h=0,g=0;for(let v=0,m=u.length;v<m;v++){o.isInterleavedBufferAttribute?h=u[v]*o.data.stride+o.offset:h=u[v]*l;for(let p=0;p<l;p++)f[g++]=c[h++]}return new ya(f,l,d)}if(this.index===null)return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."),this;const n=new Qi,i=this.index.array,r=this.attributes;for(const o in r){const u=r[o],c=e(u,i);n.setAttribute(o,c)}const a=this.morphAttributes;for(const o in a){const u=[],c=a[o];for(let l=0,d=c.length;l<d;l++){const f=c[l],h=e(f,i);u.push(h)}n.morphAttributes[o]=u}n.morphTargetsRelative=this.morphTargetsRelative;const s=this.groups;for(let o=0,u=s.length;o<u;o++){const c=s[o];n.addGroup(c.start,c.count,c.materialIndex)}return n}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,this.name!==""&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),this.parameters!==void 0){const u=this.parameters;for(const c in u)u[c]!==void 0&&(e[c]=u[c]);return e}e.data={attributes:{}};const n=this.index;n!==null&&(e.data.index={type:n.array.constructor.name,array:Array.prototype.slice.call(n.array)});const i=this.attributes;for(const u in i){const c=i[u];e.data.attributes[u]=c.toJSON(e.data)}const r={};let a=!1;for(const u in this.morphAttributes){const c=this.morphAttributes[u],l=[];for(let d=0,f=c.length;d<f;d++){const h=c[d];l.push(h.toJSON(e.data))}l.length>0&&(r[u]=l,a=!0)}a&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(e.data.groups=JSON.parse(JSON.stringify(s)));const o=this.boundingSphere;return o!==null&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const n={};this.name=e.name;const i=e.index;i!==null&&this.setIndex(i.clone(n));const r=e.attributes;for(const c in r){const l=r[c];this.setAttribute(c,l.clone(n))}const a=e.morphAttributes;for(const c in a){const l=[],d=a[c];for(let f=0,h=d.length;f<h;f++)l.push(d[f].clone(n));this.morphAttributes[c]=l}this.morphTargetsRelative=e.morphTargetsRelative;const s=e.groups;for(let c=0,l=s.length;c<l;c++){const d=s[c];this.addGroup(d.start,d.count,d.materialIndex)}const o=e.boundingBox;o!==null&&(this.boundingBox=o.clone());const u=e.boundingSphere;return u!==null&&(this.boundingSphere=u.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const S3=new Rn,xo=new rg,Vh=new ig,T3=new ve,Pu=new ve,ku=new ve,Ou=new ve,Gv=new ve,Hh=new ve,zh=new vt,$h=new vt,Wh=new vt,w3=new ve,M3=new ve,C3=new ve,Gh=new ve,qh=new ve;class pr extends $i{constructor(e=new Qi,n=new ag){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=r.length;a<s;a++){const o=r[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}getVertexPosition(e,n){const i=this.geometry,r=i.attributes.position,a=i.morphAttributes.position,s=i.morphTargetsRelative;n.fromBufferAttribute(r,e);const o=this.morphTargetInfluences;if(a&&o){Hh.set(0,0,0);for(let u=0,c=a.length;u<c;u++){const l=o[u],d=a[u];l!==0&&(Gv.fromBufferAttribute(d,e),s?Hh.addScaledVector(Gv,l):Hh.addScaledVector(Gv.sub(n),l))}n.add(Hh)}return n}raycast(e,n){const i=this.geometry,r=this.material,a=this.matrixWorld;r!==void 0&&(i.boundingSphere===null&&i.computeBoundingSphere(),Vh.copy(i.boundingSphere),Vh.applyMatrix4(a),xo.copy(e.ray).recast(e.near),!(Vh.containsPoint(xo.origin)===!1&&(xo.intersectSphere(Vh,T3)===null||xo.origin.distanceToSquared(T3)>(e.far-e.near)**2))&&(S3.copy(a).invert(),xo.copy(e.ray).applyMatrix4(S3),!(i.boundingBox!==null&&xo.intersectsBox(i.boundingBox)===!1)&&this._computeIntersections(e,n,xo)))}_computeIntersections(e,n,i){let r;const a=this.geometry,s=this.material,o=a.index,u=a.attributes.position,c=a.attributes.uv,l=a.attributes.uv1,d=a.attributes.normal,f=a.groups,h=a.drawRange;if(o!==null)if(Array.isArray(s))for(let g=0,v=f.length;g<v;g++){const m=f[g],p=s[m.materialIndex],y=Math.max(m.start,h.start),_=Math.min(o.count,Math.min(m.start+m.count,h.start+h.count));for(let b=y,x=_;b<x;b+=3){const w=o.getX(b),D=o.getX(b+1),O=o.getX(b+2);r=jh(this,p,e,i,c,l,d,w,D,O),r&&(r.faceIndex=Math.floor(b/3),r.face.materialIndex=m.materialIndex,n.push(r))}}else{const g=Math.max(0,h.start),v=Math.min(o.count,h.start+h.count);for(let m=g,p=v;m<p;m+=3){const y=o.getX(m),_=o.getX(m+1),b=o.getX(m+2);r=jh(this,s,e,i,c,l,d,y,_,b),r&&(r.faceIndex=Math.floor(m/3),n.push(r))}}else if(u!==void 0)if(Array.isArray(s))for(let g=0,v=f.length;g<v;g++){const m=f[g],p=s[m.materialIndex],y=Math.max(m.start,h.start),_=Math.min(u.count,Math.min(m.start+m.count,h.start+h.count));for(let b=y,x=_;b<x;b+=3){const w=b,D=b+1,O=b+2;r=jh(this,p,e,i,c,l,d,w,D,O),r&&(r.faceIndex=Math.floor(b/3),r.face.materialIndex=m.materialIndex,n.push(r))}}else{const g=Math.max(0,h.start),v=Math.min(u.count,h.start+h.count);for(let m=g,p=v;m<p;m+=3){const y=m,_=m+1,b=m+2;r=jh(this,s,e,i,c,l,d,y,_,b),r&&(r.faceIndex=Math.floor(m/3),n.push(r))}}}}function sre(t,e,n,i,r,a,s,o){let u;if(e.side===Hi?u=i.intersectTriangle(s,a,r,!0,o):u=i.intersectTriangle(r,a,s,e.side===Ks,o),u===null)return null;qh.copy(o),qh.applyMatrix4(t.matrixWorld);const c=n.ray.origin.distanceTo(qh);return c<n.near||c>n.far?null:{distance:c,point:qh.clone(),object:t}}function jh(t,e,n,i,r,a,s,o,u,c){t.getVertexPosition(o,Pu),t.getVertexPosition(u,ku),t.getVertexPosition(c,Ou);const l=sre(t,e,n,i,Pu,ku,Ou,Gh);if(l){r&&(zh.fromBufferAttribute(r,o),$h.fromBufferAttribute(r,u),Wh.fromBufferAttribute(r,c),l.uv=fa.getInterpolation(Gh,Pu,ku,Ou,zh,$h,Wh,new vt)),a&&(zh.fromBufferAttribute(a,o),$h.fromBufferAttribute(a,u),Wh.fromBufferAttribute(a,c),l.uv1=fa.getInterpolation(Gh,Pu,ku,Ou,zh,$h,Wh,new vt)),s&&(w3.fromBufferAttribute(s,o),M3.fromBufferAttribute(s,u),C3.fromBufferAttribute(s,c),l.normal=fa.getInterpolation(Gh,Pu,ku,Ou,w3,M3,C3,new ve),l.normal.dot(i.direction)>0&&l.normal.multiplyScalar(-1));const d={a:o,b:u,c,normal:new ve,materialIndex:0};fa.getNormal(Pu,ku,Ou,d.normal),l.face=d}return l}class Cf extends Qi{constructor(e=1,n=1,i=1,r=1,a=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:n,depth:i,widthSegments:r,heightSegments:a,depthSegments:s};const o=this;r=Math.floor(r),a=Math.floor(a),s=Math.floor(s);const u=[],c=[],l=[],d=[];let f=0,h=0;g("z","y","x",-1,-1,i,n,e,s,a,0),g("z","y","x",1,-1,i,n,-e,s,a,1),g("x","z","y",1,1,e,i,n,r,s,2),g("x","z","y",1,-1,e,i,-n,r,s,3),g("x","y","z",1,-1,e,n,i,r,a,4),g("x","y","z",-1,-1,e,n,-i,r,a,5),this.setIndex(u),this.setAttribute("position",new zn(c,3)),this.setAttribute("normal",new zn(l,3)),this.setAttribute("uv",new zn(d,2));function g(v,m,p,y,_,b,x,w,D,O,M){const S=b/D,B=x/O,V=b/2,z=x/2,Q=w/2,Z=D+1,q=O+1;let te=0,$=0;const ee=new ve;for(let le=0;le<q;le++){const xe=le*B-z;for(let J=0;J<Z;J++){const ye=J*S-V;ee[v]=ye*y,ee[m]=xe*_,ee[p]=Q,c.push(ee.x,ee.y,ee.z),ee[v]=0,ee[m]=0,ee[p]=w>0?1:-1,l.push(ee.x,ee.y,ee.z),d.push(J/D),d.push(1-le/O),te+=1}}for(let le=0;le<O;le++)for(let xe=0;xe<D;xe++){const J=f+xe+Z*le,ye=f+xe+Z*(le+1),H=f+(xe+1)+Z*(le+1),ie=f+(xe+1)+Z*le;u.push(J,ye,ie),u.push(ye,H,ie),$+=6}o.addGroup(h,$,M),h+=$,f+=te}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Cf(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function Kl(t){const e={};for(const n in t){e[n]={};for(const i in t[n]){const r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture||r.isQuaternion)?r.isRenderTargetTexture?(console.warn("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."),e[n][i]=null):e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}}return e}function xi(t){const e={};for(let n=0;n<t.length;n++){const i=Kl(t[n]);for(const r in i)e[r]=i[r]}return e}function ore(t){const e=[];for(let n=0;n<t.length;n++)e.push(t[n].clone());return e}function O4(t){const e=t.getRenderTarget();return e===null?t.outputColorSpace:e.isXRRenderTarget===!0?e.texture.colorSpace:en.workingColorSpace}const ure={clone:Kl,merge:xi};var lre=`void main() {
2034	gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
2035}`,cre=`void main() {
2036	gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
2037}`;class rs extends Mf{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader=lre,this.fragmentShader=cre,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,e!==void 0&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=Kl(e.uniforms),this.uniformsGroups=ore(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const n=super.toJSON(e);n.glslVersion=this.glslVersion,n.uniforms={};for(const r in this.uniforms){const s=this.uniforms[r].value;s&&s.isTexture?n.uniforms[r]={type:"t",value:s.toJSON(e).uuid}:s&&s.isColor?n.uniforms[r]={type:"c",value:s.getHex()}:s&&s.isVector2?n.uniforms[r]={type:"v2",value:s.toArray()}:s&&s.isVector3?n.uniforms[r]={type:"v3",value:s.toArray()}:s&&s.isVector4?n.uniforms[r]={type:"v4",value:s.toArray()}:s&&s.isMatrix3?n.uniforms[r]={type:"m3",value:s.toArray()}:s&&s.isMatrix4?n.uniforms[r]={type:"m4",value:s.toArray()}:n.uniforms[r]={value:s}}Object.keys(this.defines).length>0&&(n.defines=this.defines),n.vertexShader=this.vertexShader,n.fragmentShader=this.fragmentShader,n.lights=this.lights,n.clipping=this.clipping;const i={};for(const r in this.extensions)this.extensions[r]===!0&&(i[r]=!0);return Object.keys(i).length>0&&(n.extensions=i),n}}class N4 extends $i{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Rn,this.projectionMatrix=new Rn,this.projectionMatrixInverse=new Rn,this.coordinateSystem=Za}copy(e,n){return super.copy(e,n),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,n){super.updateWorldMatrix(e,n),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}const Es=new ve,D3=new vt,L3=new vt;class Tr extends N4{constructor(e=50,n=1,i=.1,r=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=i,this.far=r,this.focus=10,this.aspect=n,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=e.view===null?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const n=.5*this.getFilmHeight()/e;this.fov=R2*2*Math.atan(n),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(Kp*.5*this.fov);return .5*this.getFilmHeight()/e}getEffectiveFOV(){return R2*2*Math.atan(Math.tan(Kp*.5*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,n,i){Es.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(Es.x,Es.y).multiplyScalar(-e/Es.z),Es.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),i.set(Es.x,Es.y).multiplyScalar(-e/Es.z)}getViewSize(e,n){return this.getViewBounds(e,D3,L3),n.subVectors(L3,D3)}setViewOffset(e,n,i,r,a,s){this.aspect=e/n,this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let n=e*Math.tan(Kp*.5*this.fov)/this.zoom,i=2*n,r=this.aspect*i,a=-.5*r;const s=this.view;if(this.view!==null&&this.view.enabled){const u=s.fullWidth,c=s.fullHeight;a+=s.offsetX*r/u,n-=s.offsetY*i/c,r*=s.width/u,i*=s.height/c}const o=this.filmOffset;o!==0&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+r,n,n-i,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.fov=this.fov,n.object.zoom=this.zoom,n.object.near=this.near,n.object.far=this.far,n.object.focus=this.focus,n.object.aspect=this.aspect,this.view!==null&&(n.object.view=Object.assign({},this.view)),n.object.filmGauge=this.filmGauge,n.object.filmOffset=this.filmOffset,n}}const Nu=-90,Uu=1;class dre extends $i{constructor(e,n,i){super(),this.type="CubeCamera",this.renderTarget=i,this.coordinateSystem=null,this.activeMipmapLevel=0;const r=new Tr(Nu,Uu,e,n);r.layers=this.layers,this.add(r);const a=new Tr(Nu,Uu,e,n);a.layers=this.layers,this.add(a);const s=new Tr(Nu,Uu,e,n);s.layers=this.layers,this.add(s);const o=new Tr(Nu,Uu,e,n);o.layers=this.layers,this.add(o);const u=new Tr(Nu,Uu,e,n);u.layers=this.layers,this.add(u);const c=new Tr(Nu,Uu,e,n);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){const e=this.coordinateSystem,n=this.children.concat(),[i,r,a,s,o,u]=n;for(const c of n)this.remove(c);if(e===Za)i.up.set(0,1,0),i.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),s.up.set(0,0,1),s.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),u.up.set(0,1,0),u.lookAt(0,0,-1);else if(e===r0)i.up.set(0,-1,0),i.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),s.up.set(0,0,-1),s.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),u.up.set(0,-1,0),u.lookAt(0,0,-1);else throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);for(const c of n)this.add(c),c.updateMatrixWorld()}update(e,n){this.parent===null&&this.updateMatrixWorld();const{renderTarget:i,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,s,o,u,c,l]=this.children,d=e.getRenderTarget(),f=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),g=e.xr.enabled;e.xr.enabled=!1;const v=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,e.setRenderTarget(i,0,r),e.render(n,a),e.setRenderTarget(i,1,r),e.render(n,s),e.setRenderTarget(i,2,r),e.render(n,o),e.setRenderTarget(i,3,r),e.render(n,u),e.setRenderTarget(i,4,r),e.render(n,c),i.texture.generateMipmaps=v,e.setRenderTarget(i,5,r),e.render(n,l),e.setRenderTarget(d,f,h),e.xr.enabled=g,i.texture.needsPMREMUpdate=!0}}class U4 extends zi{constructor(e,n,i,r,a,s,o,u,c,l){e=e!==void 0?e:[],n=n!==void 0?n:jl,super(e,n,i,r,a,s,o,u,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class fre extends au{constructor(e=1,n={}){super(e,e,n),this.isWebGLCubeRenderTarget=!0;const i={width:e,height:e,depth:1},r=[i,i,i,i,i,i];this.texture=new U4(r,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=n.generateMipmaps!==void 0?n.generateMipmaps:!1,this.texture.minFilter=n.minFilter!==void 0?n.minFilter:Mr}fromEquirectangularTexture(e,n){this.texture.type=n.type,this.texture.colorSpace=n.colorSpace,this.texture.generateMipmaps=n.generateMipmaps,this.texture.minFilter=n.minFilter,this.texture.magFilter=n.magFilter;const i={uniforms:{tEquirect:{value:null}},vertexShader:`
2038
2039				varying vec3 vWorldDirection;
2040
2041				vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
2042
2043					return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
2044
2045				}
2046
2047				void main() {
2048
2049					vWorldDirection = transformDirection( position, modelMatrix );
2050
2051					#include <begin_vertex>
2052					#include <project_vertex>
2053
2054				}
2055			`,fragmentShader:`
2056
2057				uniform sampler2D tEquirect;
2058
2059				varying vec3 vWorldDirection;
2060
2061				#include <common>
2062
2063				void main() {
2064
2065					vec3 direction = normalize( vWorldDirection );
2066
2067					vec2 sampleUV = equirectUv( direction );
2068
2069					gl_FragColor = texture2D( tEquirect, sampleUV );
2070
2071				}
2072			`},r=new Cf(5,5,5),a=new rs({name:"CubemapFromEquirect",uniforms:Kl(i.uniforms),vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,side:Hi,blending:zs});a.uniforms.tEquirect.value=n;const s=new pr(r,a),o=n.minFilter;return n.minFilter===Ho&&(n.minFilter=Mr),new dre(1,10,this).update(e,s),n.minFilter=o,s.geometry.dispose(),s.material.dispose(),this}clear(e,n,i,r){const a=e.getRenderTarget();for(let s=0;s<6;s++)e.setRenderTarget(this,s),e.clear(n,i,r);e.setRenderTarget(a)}}const qv=new ve,hre=new ve,pre=new St;class Ga{constructor(e=new ve(1,0,0),n=0){this.isPlane=!0,this.normal=e,this.constant=n}set(e,n){return this.normal.copy(e),this.constant=n,this}setComponents(e,n,i,r){return this.normal.set(e,n,i),this.constant=r,this}setFromNormalAndCoplanarPoint(e,n){return this.normal.copy(e),this.constant=-n.dot(this.normal),this}setFromCoplanarPoints(e,n,i){const r=qv.subVectors(i,n).cross(hre.subVectors(e,n)).normalize();return this.setFromNormalAndCoplanarPoint(r,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,n){return n.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,n){const i=e.delta(qv),r=this.normal.dot(i);if(r===0)return this.distanceToPoint(e.start)===0?n.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/r;return a<0||a>1?null:n.copy(e.start).addScaledVector(i,a)}intersectsLine(e){const n=this.distanceToPoint(e.start),i=this.distanceToPoint(e.end);return n<0&&i>0||i<0&&n>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,n){const i=n||pre.getNormalMatrix(e),r=this.coplanarPoint(qv).applyMatrix4(e),a=this.normal.applyMatrix3(i).normalize();return this.constant=-r.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Ao=new ig,Xh=new ve;class F4{constructor(e=new Ga,n=new Ga,i=new Ga,r=new Ga,a=new Ga,s=new Ga){this.planes=[e,n,i,r,a,s]}set(e,n,i,r,a,s){const o=this.planes;return o[0].copy(e),o[1].copy(n),o[2].copy(i),o[3].copy(r),o[4].copy(a),o[5].copy(s),this}copy(e){const n=this.planes;for(let i=0;i<6;i++)n[i].copy(e.planes[i]);return this}setFromProjectionMatrix(e,n=Za){const i=this.planes,r=e.elements,a=r[0],s=r[1],o=r[2],u=r[3],c=r[4],l=r[5],d=r[6],f=r[7],h=r[8],g=r[9],v=r[10],m=r[11],p=r[12],y=r[13],_=r[14],b=r[15];if(i[0].setComponents(u-a,f-c,m-h,b-p).normalize(),i[1].setComponents(u+a,f+c,m+h,b+p).normalize(),i[2].setComponents(u+s,f+l,m+g,b+y).normalize(),i[3].setComponents(u-s,f-l,m-g,b-y).normalize(),i[4].setComponents(u-o,f-d,m-v,b-_).normalize(),n===Za)i[5].setComponents(u+o,f+d,m+v,b+_).normalize();else if(n===r0)i[5].setComponents(o,d,v,_).normalize();else throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+n);return this}intersectsObject(e){if(e.boundingSphere!==void 0)e.boundingSphere===null&&e.computeBoundingSphere(),Ao.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const n=e.geometry;n.boundingSphere===null&&n.computeBoundingSphere(),Ao.copy(n.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Ao)}intersectsSprite(e){return Ao.center.set(0,0,0),Ao.radius=.7071067811865476,Ao.applyMatrix4(e.matrixWorld),this.intersectsSphere(Ao)}intersectsSphere(e){const n=this.planes,i=e.center,r=-e.radius;for(let a=0;a<6;a++)if(n[a].distanceToPoint(i)<r)return!1;return!0}intersectsBox(e){const n=this.planes;for(let i=0;i<6;i++){const r=n[i];if(Xh.x=r.normal.x>0?e.max.x:e.min.x,Xh.y=r.normal.y>0?e.max.y:e.min.y,Xh.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(Xh)<0)return!1}return!0}containsPoint(e){const n=this.planes;for(let i=0;i<6;i++)if(n[i].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function B4(){let t=null,e=!1,n=null,i=null;function r(a,s){n(a,s),i=t.requestAnimationFrame(r)}return{start:function(){e!==!0&&n!==null&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(a){n=a},setContext:function(a){t=a}}}function mre(t){const e=new WeakMap;function n(o,u){const c=o.array,l=o.usage,d=c.byteLength,f=t.createBuffer();t.bindBuffer(u,f),t.bufferData(u,c,l),o.onUploadCallback();let h;if(c instanceof Float32Array)h=t.FLOAT;else if(c instanceof Uint16Array)o.isFloat16BufferAttribute?h=t.HALF_FLOAT:h=t.UNSIGNED_SHORT;else if(c instanceof Int16Array)h=t.SHORT;else if(c instanceof Uint32Array)h=t.UNSIGNED_INT;else if(c instanceof Int32Array)h=t.INT;else if(c instanceof Int8Array)h=t.BYTE;else if(c instanceof Uint8Array)h=t.UNSIGNED_BYTE;else if(c instanceof Uint8ClampedArray)h=t.UNSIGNED_BYTE;else throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+c);return{buffer:f,type:h,bytesPerElement:c.BYTES_PER_ELEMENT,version:o.version,size:d}}function i(o,u,c){const l=u.array,d=u._updateRange,f=u.updateRanges;if(t.bindBuffer(c,o),d.count===-1&&f.length===0&&t.bufferSubData(c,0,l),f.length!==0){for(let h=0,g=f.length;h<g;h++){const v=f[h];t.bufferSubData(c,v.start*l.BYTES_PER_ELEMENT,l,v.start,v.count)}u.clearUpdateRanges()}d.count!==-1&&(t.bufferSubData(c,d.offset*l.BYTES_PER_ELEMENT,l,d.offset,d.count),d.count=-1),u.onUploadCallback()}function r(o){return o.isInterleavedBufferAttribute&&(o=o.data),e.get(o)}function a(o){o.isInterleavedBufferAttribute&&(o=o.data);const u=e.get(o);u&&(t.deleteBuffer(u.buffer),e.delete(o))}function s(o,u){if(o.isGLBufferAttribute){const l=e.get(o);(!l||l.version<o.version)&&e.set(o,{buffer:o.buffer,type:o.type,bytesPerElement:o.elementSize,version:o.version});return}o.isInterleavedBufferAttribute&&(o=o.data);const c=e.get(o);if(c===void 0)e.set(o,n(o,u));else if(c.version<o.version){if(c.size!==o.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");i(c.buffer,o,u),c.version=o.version}}return{get:r,remove:a,update:s}}class sg extends Qi{constructor(e=1,n=1,i=1,r=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:n,widthSegments:i,heightSegments:r};const a=e/2,s=n/2,o=Math.floor(i),u=Math.floor(r),c=o+1,l=u+1,d=e/o,f=n/u,h=[],g=[],v=[],m=[];for(let p=0;p<l;p++){const y=p*f-s;for(let _=0;_<c;_++){const b=_*d-a;g.push(b,-y,0),v.push(0,0,1),m.push(_/o),m.push(1-p/u)}}for(let p=0;p<u;p++)for(let y=0;y<o;y++){const _=y+c*p,b=y+c*(p+1),x=y+1+c*(p+1),w=y+1+c*p;h.push(_,b,w),h.push(b,x,w)}this.setIndex(h),this.setAttribute("position",new zn(g,3)),this.setAttribute("normal",new zn(v,3)),this.setAttribute("uv",new zn(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new sg(e.width,e.height,e.widthSegments,e.heightSegments)}}var gre=`#ifdef USE_ALPHAHASH
2073	if ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;
2074#endif`,vre=`#ifdef USE_ALPHAHASH
2075	const float ALPHA_HASH_SCALE = 0.05;
2076	float hash2D( vec2 value ) {
2077		return fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );
2078	}
2079	float hash3D( vec3 value ) {
2080		return hash2D( vec2( hash2D( value.xy ), value.z ) );
2081	}
2082	float getAlphaHashThreshold( vec3 position ) {
2083		float maxDeriv = max(
2084			length( dFdx( position.xyz ) ),
2085			length( dFdy( position.xyz ) )
2086		);
2087		float pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );
2088		vec2 pixScales = vec2(
2089			exp2( floor( log2( pixScale ) ) ),
2090			exp2( ceil( log2( pixScale ) ) )
2091		);
2092		vec2 alpha = vec2(
2093			hash3D( floor( pixScales.x * position.xyz ) ),
2094			hash3D( floor( pixScales.y * position.xyz ) )
2095		);
2096		float lerpFactor = fract( log2( pixScale ) );
2097		float x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;
2098		float a = min( lerpFactor, 1.0 - lerpFactor );
2099		vec3 cases = vec3(
2100			x * x / ( 2.0 * a * ( 1.0 - a ) ),
2101			( x - 0.5 * a ) / ( 1.0 - a ),
2102			1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )
2103		);
2104		float threshold = ( x < ( 1.0 - a ) )
2105			? ( ( x < a ) ? cases.x : cases.y )
2106			: cases.z;
2107		return clamp( threshold , 1.0e-6, 1.0 );
2108	}
2109#endif`,_re=`#ifdef USE_ALPHAMAP
2110	diffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;
2111#endif`,bre=`#ifdef USE_ALPHAMAP
2112	uniform sampler2D alphaMap;
2113#endif`,yre=`#ifdef USE_ALPHATEST
2114	#ifdef ALPHA_TO_COVERAGE
2115	diffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );
2116	if ( diffuseColor.a == 0.0 ) discard;
2117	#else
2118	if ( diffuseColor.a < alphaTest ) discard;
2119	#endif
2120#endif`,Ere=`#ifdef USE_ALPHATEST
2121	uniform float alphaTest;
2122#endif`,xre=`#ifdef USE_AOMAP
2123	float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
2124	reflectedLight.indirectDiffuse *= ambientOcclusion;
2125	#if defined( USE_CLEARCOAT ) 
2126		clearcoatSpecularIndirect *= ambientOcclusion;
2127	#endif
2128	#if defined( USE_SHEEN ) 
2129		sheenSpecularIndirect *= ambientOcclusion;
2130	#endif
2131	#if defined( USE_ENVMAP ) && defined( STANDARD )
2132		float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
2133		reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
2134	#endif
2135#endif`,Are=`#ifdef USE_AOMAP
2136	uniform sampler2D aoMap;
2137	uniform float aoMapIntensity;
2138#endif`,Sre=`#ifdef USE_BATCHING
2139	attribute float batchId;
2140	uniform highp sampler2D batchingTexture;
2141	mat4 getBatchingMatrix( const in float i ) {
2142		int size = textureSize( batchingTexture, 0 ).x;
2143		int j = int( i ) * 4;
2144		int x = j % size;
2145		int y = j / size;
2146		vec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );
2147		vec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );
2148		vec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );
2149		vec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );
2150		return mat4( v1, v2, v3, v4 );
2151	}
2152#endif`,Tre=`#ifdef USE_BATCHING
2153	mat4 batchingMatrix = getBatchingMatrix( batchId );
2154#endif`,wre=`vec3 transformed = vec3( position );
2155#ifdef USE_ALPHAHASH
2156	vPosition = vec3( position );
2157#endif`,Mre=`vec3 objectNormal = vec3( normal );
2158#ifdef USE_TANGENT
2159	vec3 objectTangent = vec3( tangent.xyz );
2160#endif`,Cre=`float G_BlinnPhong_Implicit( ) {
2161	return 0.25;
2162}
2163float D_BlinnPhong( const in float shininess, const in float dotNH ) {
2164	return RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );
2165}
2166vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {
2167	vec3 halfDir = normalize( lightDir + viewDir );
2168	float dotNH = saturate( dot( normal, halfDir ) );
2169	float dotVH = saturate( dot( viewDir, halfDir ) );
2170	vec3 F = F_Schlick( specularColor, 1.0, dotVH );
2171	float G = G_BlinnPhong_Implicit( );
2172	float D = D_BlinnPhong( shininess, dotNH );
2173	return F * ( G * D );
2174} // validated`,Dre=`#ifdef USE_IRIDESCENCE
2175	const mat3 XYZ_TO_REC709 = mat3(
2176		 3.2404542, -0.9692660,  0.0556434,
2177		-1.5371385,  1.8760108, -0.2040259,
2178		-0.4985314,  0.0415560,  1.0572252
2179	);
2180	vec3 Fresnel0ToIor( vec3 fresnel0 ) {
2181		vec3 sqrtF0 = sqrt( fresnel0 );
2182		return ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );
2183	}
2184	vec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {
2185		return pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );
2186	}
2187	float IorToFresnel0( float transmittedIor, float incidentIor ) {
2188		return pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));
2189	}
2190	vec3 evalSensitivity( float OPD, vec3 shift ) {
2191		float phase = 2.0 * PI * OPD * 1.0e-9;
2192		vec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );
2193		vec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
2194		vec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
2195		vec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );
2196		xyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );
2197		xyz /= 1.0685e-7;
2198		vec3 rgb = XYZ_TO_REC709 * xyz;
2199		return rgb;
2200	}
2201	vec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {
2202		vec3 I;
2203		float iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );
2204		float sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );
2205		float cosTheta2Sq = 1.0 - sinTheta2Sq;
2206		if ( cosTheta2Sq < 0.0 ) {
2207			return vec3( 1.0 );
2208		}
2209		float cosTheta2 = sqrt( cosTheta2Sq );
2210		float R0 = IorToFresnel0( iridescenceIOR, outsideIOR );
2211		float R12 = F_Schlick( R0, 1.0, cosTheta1 );
2212		float T121 = 1.0 - R12;
2213		float phi12 = 0.0;
2214		if ( iridescenceIOR < outsideIOR ) phi12 = PI;
2215		float phi21 = PI - phi12;
2216		vec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );		vec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );
2217		vec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );
2218		vec3 phi23 = vec3( 0.0 );
2219		if ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;
2220		if ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;
2221		if ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;
2222		float OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;
2223		vec3 phi = vec3( phi21 ) + phi23;
2224		vec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );
2225		vec3 r123 = sqrt( R123 );
2226		vec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );
2227		vec3 C0 = R12 + Rs;
2228		I = C0;
2229		vec3 Cm = Rs - T121;
2230		for ( int m = 1; m <= 2; ++ m ) {
2231			Cm *= r123;
2232			vec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );
2233			I += Cm * Sm;
2234		}
2235		return max( I, vec3( 0.0 ) );
2236	}
2237#endif`,Lre=`#ifdef USE_BUMPMAP
2238	uniform sampler2D bumpMap;
2239	uniform float bumpScale;
2240	vec2 dHdxy_fwd() {
2241		vec2 dSTdx = dFdx( vBumpMapUv );
2242		vec2 dSTdy = dFdy( vBumpMapUv );
2243		float Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;
2244		float dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;
2245		float dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;
2246		return vec2( dBx, dBy );
2247	}
2248	vec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {
2249		vec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );
2250		vec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );
2251		vec3 vN = surf_norm;
2252		vec3 R1 = cross( vSigmaY, vN );
2253		vec3 R2 = cross( vN, vSigmaX );
2254		float fDet = dot( vSigmaX, R1 ) * faceDirection;
2255		vec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );
2256		return normalize( abs( fDet ) * surf_norm - vGrad );
2257	}
2258#endif`,Rre=`#if NUM_CLIPPING_PLANES > 0
2259	vec4 plane;
2260	#ifdef ALPHA_TO_COVERAGE
2261		float distanceToPlane, distanceGradient;
2262		float clipOpacity = 1.0;
2263		#pragma unroll_loop_start
2264		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
2265			plane = clippingPlanes[ i ];
2266			distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
2267			distanceGradient = fwidth( distanceToPlane ) / 2.0;
2268			clipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
2269			if ( clipOpacity == 0.0 ) discard;
2270		}
2271		#pragma unroll_loop_end
2272		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
2273			float unionClipOpacity = 1.0;
2274			#pragma unroll_loop_start
2275			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
2276				plane = clippingPlanes[ i ];
2277				distanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;
2278				distanceGradient = fwidth( distanceToPlane ) / 2.0;
2279				unionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );
2280			}
2281			#pragma unroll_loop_end
2282			clipOpacity *= 1.0 - unionClipOpacity;
2283		#endif
2284		diffuseColor.a *= clipOpacity;
2285		if ( diffuseColor.a == 0.0 ) discard;
2286	#else
2287		#pragma unroll_loop_start
2288		for ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {
2289			plane = clippingPlanes[ i ];
2290			if ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;
2291		}
2292		#pragma unroll_loop_end
2293		#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES
2294			bool clipped = true;
2295			#pragma unroll_loop_start
2296			for ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {
2297				plane = clippingPlanes[ i ];
2298				clipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;
2299			}
2300			#pragma unroll_loop_end
2301			if ( clipped ) discard;
2302		#endif
2303	#endif
2304#endif`,Ire=`#if NUM_CLIPPING_PLANES > 0
2305	varying vec3 vClipPosition;
2306	uniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];
2307#endif`,Pre=`#if NUM_CLIPPING_PLANES > 0
2308	varying vec3 vClipPosition;
2309#endif`,kre=`#if NUM_CLIPPING_PLANES > 0
2310	vClipPosition = - mvPosition.xyz;
2311#endif`,Ore=`#if defined( USE_COLOR_ALPHA )
2312	diffuseColor *= vColor;
2313#elif defined( USE_COLOR )
2314	diffuseColor.rgb *= vColor;
2315#endif`,Nre=`#if defined( USE_COLOR_ALPHA )
2316	varying vec4 vColor;
2317#elif defined( USE_COLOR )
2318	varying vec3 vColor;
2319#endif`,Ure=`#if defined( USE_COLOR_ALPHA )
2320	varying vec4 vColor;
2321#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
2322	varying vec3 vColor;
2323#endif`,Fre=`#if defined( USE_COLOR_ALPHA )
2324	vColor = vec4( 1.0 );
2325#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )
2326	vColor = vec3( 1.0 );
2327#endif
2328#ifdef USE_COLOR
2329	vColor *= color;
2330#endif
2331#ifdef USE_INSTANCING_COLOR
2332	vColor.xyz *= instanceColor.xyz;
2333#endif`,Bre=`#define PI 3.141592653589793
2334#define PI2 6.283185307179586
2335#define PI_HALF 1.5707963267948966
2336#define RECIPROCAL_PI 0.3183098861837907
2337#define RECIPROCAL_PI2 0.15915494309189535
2338#define EPSILON 1e-6
2339#ifndef saturate
2340#define saturate( a ) clamp( a, 0.0, 1.0 )
2341#endif
2342#define whiteComplement( a ) ( 1.0 - saturate( a ) )
2343float pow2( const in float x ) { return x*x; }
2344vec3 pow2( const in vec3 x ) { return x*x; }
2345float pow3( const in float x ) { return x*x*x; }
2346float pow4( const in float x ) { float x2 = x*x; return x2*x2; }
2347float max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }
2348float average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }
2349highp float rand( const in vec2 uv ) {
2350	const highp float a = 12.9898, b = 78.233, c = 43758.5453;
2351	highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );
2352	return fract( sin( sn ) * c );
2353}
2354#ifdef HIGH_PRECISION
2355	float precisionSafeLength( vec3 v ) { return length( v ); }
2356#else
2357	float precisionSafeLength( vec3 v ) {
2358		float maxComponent = max3( abs( v ) );
2359		return length( v / maxComponent ) * maxComponent;
2360	}
2361#endif
2362struct IncidentLight {
2363	vec3 color;
2364	vec3 direction;
2365	bool visible;
2366};
2367struct ReflectedLight {
2368	vec3 directDiffuse;
2369	vec3 directSpecular;
2370	vec3 indirectDiffuse;
2371	vec3 indirectSpecular;
2372};
2373#ifdef USE_ALPHAHASH
2374	varying vec3 vPosition;
2375#endif
2376vec3 transformDirection( in vec3 dir, in mat4 matrix ) {
2377	return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );
2378}
2379vec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {
2380	return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );
2381}
2382mat3 transposeMat3( const in mat3 m ) {
2383	mat3 tmp;
2384	tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );
2385	tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );
2386	tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );
2387	return tmp;
2388}
2389float luminance( const in vec3 rgb ) {
2390	const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );
2391	return dot( weights, rgb );
2392}
2393bool isPerspectiveMatrix( mat4 m ) {
2394	return m[ 2 ][ 3 ] == - 1.0;
2395}
2396vec2 equirectUv( in vec3 dir ) {
2397	float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;
2398	float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;
2399	return vec2( u, v );
2400}
2401vec3 BRDF_Lambert( const in vec3 diffuseColor ) {
2402	return RECIPROCAL_PI * diffuseColor;
2403}
2404vec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {
2405	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
2406	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
2407}
2408float F_Schlick( const in float f0, const in float f90, const in float dotVH ) {
2409	float fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );
2410	return f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );
2411} // validated`,Vre=`#ifdef ENVMAP_TYPE_CUBE_UV
2412	#define cubeUV_minMipLevel 4.0
2413	#define cubeUV_minTileSize 16.0
2414	float getFace( vec3 direction ) {
2415		vec3 absDirection = abs( direction );
2416		float face = - 1.0;
2417		if ( absDirection.x > absDirection.z ) {
2418			if ( absDirection.x > absDirection.y )
2419				face = direction.x > 0.0 ? 0.0 : 3.0;
2420			else
2421				face = direction.y > 0.0 ? 1.0 : 4.0;
2422		} else {
2423			if ( absDirection.z > absDirection.y )
2424				face = direction.z > 0.0 ? 2.0 : 5.0;
2425			else
2426				face = direction.y > 0.0 ? 1.0 : 4.0;
2427		}
2428		return face;
2429	}
2430	vec2 getUV( vec3 direction, float face ) {
2431		vec2 uv;
2432		if ( face == 0.0 ) {
2433			uv = vec2( direction.z, direction.y ) / abs( direction.x );
2434		} else if ( face == 1.0 ) {
2435			uv = vec2( - direction.x, - direction.z ) / abs( direction.y );
2436		} else if ( face == 2.0 ) {
2437			uv = vec2( - direction.x, direction.y ) / abs( direction.z );
2438		} else if ( face == 3.0 ) {
2439			uv = vec2( - direction.z, direction.y ) / abs( direction.x );
2440		} else if ( face == 4.0 ) {
2441			uv = vec2( - direction.x, direction.z ) / abs( direction.y );
2442		} else {
2443			uv = vec2( direction.x, direction.y ) / abs( direction.z );
2444		}
2445		return 0.5 * ( uv + 1.0 );
2446	}
2447	vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {
2448		float face = getFace( direction );
2449		float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );
2450		mipInt = max( mipInt, cubeUV_minMipLevel );
2451		float faceSize = exp2( mipInt );
2452		highp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;
2453		if ( face > 2.0 ) {
2454			uv.y += faceSize;
2455			face -= 3.0;
2456		}
2457		uv.x += face * faceSize;
2458		uv.x += filterInt * 3.0 * cubeUV_minTileSize;
2459		uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );
2460		uv.x *= CUBEUV_TEXEL_WIDTH;
2461		uv.y *= CUBEUV_TEXEL_HEIGHT;
2462		#ifdef texture2DGradEXT
2463			return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;
2464		#else
2465			return texture2D( envMap, uv ).rgb;
2466		#endif
2467	}
2468	#define cubeUV_r0 1.0
2469	#define cubeUV_m0 - 2.0
2470	#define cubeUV_r1 0.8
2471	#define cubeUV_m1 - 1.0
2472	#define cubeUV_r4 0.4
2473	#define cubeUV_m4 2.0
2474	#define cubeUV_r5 0.305
2475	#define cubeUV_m5 3.0
2476	#define cubeUV_r6 0.21
2477	#define cubeUV_m6 4.0
2478	float roughnessToMip( float roughness ) {
2479		float mip = 0.0;
2480		if ( roughness >= cubeUV_r1 ) {
2481			mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;
2482		} else if ( roughness >= cubeUV_r4 ) {
2483			mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;
2484		} else if ( roughness >= cubeUV_r5 ) {
2485			mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;
2486		} else if ( roughness >= cubeUV_r6 ) {
2487			mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;
2488		} else {
2489			mip = - 2.0 * log2( 1.16 * roughness );		}
2490		return mip;
2491	}
2492	vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {
2493		float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );
2494		float mipF = fract( mip );
2495		float mipInt = floor( mip );
2496		vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );
2497		if ( mipF == 0.0 ) {
2498			return vec4( color0, 1.0 );
2499		} else {
2500			vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );
2501			return vec4( mix( color0, color1, mipF ), 1.0 );
2502		}
2503	}
2504#endif`,Hre=`vec3 transformedNormal = objectNormal;
2505#ifdef USE_TANGENT
2506	vec3 transformedTangent = objectTangent;
2507#endif
2508#ifdef USE_BATCHING
2509	mat3 bm = mat3( batchingMatrix );
2510	transformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );
2511	transformedNormal = bm * transformedNormal;
2512	#ifdef USE_TANGENT
2513		transformedTangent = bm * transformedTangent;
2514	#endif
2515#endif
2516#ifdef USE_INSTANCING
2517	mat3 im = mat3( instanceMatrix );
2518	transformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );
2519	transformedNormal = im * transformedNormal;
2520	#ifdef USE_TANGENT
2521		transformedTangent = im * transformedTangent;
2522	#endif
2523#endif
2524transformedNormal = normalMatrix * transformedNormal;
2525#ifdef FLIP_SIDED
2526	transformedNormal = - transformedNormal;
2527#endif
2528#ifdef USE_TANGENT
2529	transformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;
2530	#ifdef FLIP_SIDED
2531		transformedTangent = - transformedTangent;
2532	#endif
2533#endif`,zre=`#ifdef USE_DISPLACEMENTMAP
2534	uniform sampler2D displacementMap;
2535	uniform float displacementScale;
2536	uniform float displacementBias;
2537#endif`,$re=`#ifdef USE_DISPLACEMENTMAP
2538	transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + dis
2538placementBias );
2539#endif`,Wre=`#ifdef USE_EMISSIVEMAP
2540	vec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );
2541	totalEmissiveRadiance *= emissiveColor.rgb;
2542#endif`,Gre=`#ifdef USE_EMISSIVEMAP
2543	uniform sampler2D emissiveMap;
2544#endif`,qre="gl_FragColor = linearToOutputTexel( gl_FragColor );",jre=`
2545const mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(
2546	vec3( 0.8224621, 0.177538, 0.0 ),
2547	vec3( 0.0331941, 0.9668058, 0.0 ),
2548	vec3( 0.0170827, 0.0723974, 0.9105199 )
2549);
2550const mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(
2551	vec3( 1.2249401, - 0.2249404, 0.0 ),
2552	vec3( - 0.0420569, 1.0420571, 0.0 ),
2553	vec3( - 0.0196376, - 0.0786361, 1.0982735 )
2554);
2555vec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {
2556	return vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );
2557}
2558vec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {
2559	return vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );
2560}
2561vec4 LinearTransferOETF( in vec4 value ) {
2562	return value;
2563}
2564vec4 sRGBTransferOETF( in vec4 value ) {
2565	return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );
2566}
2567vec4 LinearToLinear( in vec4 value ) {
2568	return value;
2569}
2570vec4 LinearTosRGB( in vec4 value ) {
2571	return sRGBTransferOETF( value );
2572}`,Xre=`#ifdef USE_ENVMAP
2573	#ifdef ENV_WORLDPOS
2574		vec3 cameraToFrag;
2575		if ( isOrthographic ) {
2576			cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
2577		} else {
2578			cameraToFrag = normalize( vWorldPosition - cameraPosition );
2579		}
2580		vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
2581		#ifdef ENVMAP_MODE_REFLECTION
2582			vec3 reflectVec = reflect( cameraToFrag, worldNormal );
2583		#else
2584			vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );
2585		#endif
2586	#else
2587		vec3 reflectVec = vReflect;
2588	#endif
2589	#ifdef ENVMAP_TYPE_CUBE
2590		vec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );
2591	#else
2592		vec4 envColor = vec4( 0.0 );
2593	#endif
2594	#ifdef ENVMAP_BLENDING_MULTIPLY
2595		outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );
2596	#elif defined( ENVMAP_BLENDING_MIX )
2597		outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );
2598	#elif defined( ENVMAP_BLENDING_ADD )
2599		outgoingLight += envColor.xyz * specularStrength * reflectivity;
2600	#endif
2601#endif`,Yre=`#ifdef USE_ENVMAP
2602	uniform float envMapIntensity;
2603	uniform float flipEnvMap;
2604	uniform mat3 envMapRotation;
2605	#ifdef ENVMAP_TYPE_CUBE
2606		uniform samplerCube envMap;
2607	#else
2608		uniform sampler2D envMap;
2609	#endif
2610	
2611#endif`,Kre=`#ifdef USE_ENVMAP
2612	uniform float reflectivity;
2613	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
2614		#define ENV_WORLDPOS
2615	#endif
2616	#ifdef ENV_WORLDPOS
2617		varying vec3 vWorldPosition;
2618		uniform float refractionRatio;
2619	#else
2620		varying vec3 vReflect;
2621	#endif
2622#endif`,Zre=`#ifdef USE_ENVMAP
2623	#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )
2624		#define ENV_WORLDPOS
2625	#endif
2626	#ifdef ENV_WORLDPOS
2627		
2628		varying vec3 vWorldPosition;
2629	#else
2630		varying vec3 vReflect;
2631		uniform float refractionRatio;
2632	#endif
2633#endif`,Jre=`#ifdef USE_ENVMAP
2634	#ifdef ENV_WORLDPOS
2635		vWorldPosition = worldPosition.xyz;
2636	#else
2637		vec3 cameraToVertex;
2638		if ( isOrthographic ) {
2639			cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );
2640		} else {
2641			cameraToVertex = normalize( worldPosition.xyz - cameraPosition );
2642		}
2643		vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
2644		#ifdef ENVMAP_MODE_REFLECTION
2645			vReflect = reflect( cameraToVertex, worldNormal );
2646		#else
2647			vReflect = refract( cameraToVertex, worldNormal, refractionRatio );
2648		#endif
2649	#endif
2650#endif`,Qre=`#ifdef USE_FOG
2651	vFogDepth = - mvPosition.z;
2652#endif`,eae=`#ifdef USE_FOG
2653	varying float vFogDepth;
2654#endif`,tae=`#ifdef USE_FOG
2655	#ifdef FOG_EXP2
2656		float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );
2657	#else
2658		float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );
2659	#endif
2660	gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );
2661#endif`,nae=`#ifdef USE_FOG
2662	uniform vec3 fogColor;
2663	varying float vFogDepth;
2664	#ifdef FOG_EXP2
2665		uniform float fogDensity;
2666	#else
2667		uniform float fogNear;
2668		uniform float fogFar;
2669	#endif
2670#endif`,iae=`#ifdef USE_GRADIENTMAP
2671	uniform sampler2D gradientMap;
2672#endif
2673vec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {
2674	float dotNL = dot( normal, lightDirection );
2675	vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );
2676	#ifdef USE_GRADIENTMAP
2677		return vec3( texture2D( gradientMap, coord ).r );
2678	#else
2679		vec2 fw = fwidth( coord ) * 0.5;
2680		return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );
2681	#endif
2682}`,rae=`#ifdef USE_LIGHTMAP
2683	vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
2684	vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
2685	reflectedLight.indirectDiffuse += lightMapIrradiance;
2686#endif`,aae=`#ifdef USE_LIGHTMAP
2687	uniform sampler2D lightMap;
2688	uniform float lightMapIntensity;
2689#endif`,sae=`LambertMaterial material;
2690material.diffuseColor = diffuseColor.rgb;
2691material.specularStrength = specularStrength;`,oae=`varying vec3 vViewPosition;
2692struct LambertMaterial {
2693	vec3 diffuseColor;
2694	float specularStrength;
2695};
2696void RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
2697	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
2698	vec3 irradiance = dotNL * directLight.color;
2699	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2700}
2701void RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {
2702	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2703}
2704#define RE_Direct				RE_Direct_Lambert
2705#define RE_IndirectDiffuse		RE_IndirectDiffuse_Lambert`,uae=`uniform bool receiveShadow;
2706uniform vec3 ambientLightColor;
2707#if defined( USE_LIGHT_PROBES )
2708	uniform vec3 lightProbe[ 9 ];
2709#endif
2710vec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {
2711	float x = normal.x, y = normal.y, z = normal.z;
2712	vec3 result = shCoefficients[ 0 ] * 0.886227;
2713	result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;
2714	result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;
2715	result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;
2716	result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;
2717	result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;
2718	result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );
2719	result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;
2720	result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );
2721	return result;
2722}
2723vec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {
2724	vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
2725	vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );
2726	return irradiance;
2727}
2728vec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {
2729	vec3 irradiance = ambientLightColor;
2730	return irradiance;
2731}
2732float getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {
2733	#if defined ( LEGACY_LIGHTS )
2734		if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {
2735			return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );
2736		}
2737		return 1.0;
2738	#else
2739		float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );
2740		if ( cutoffDistance > 0.0 ) {
2741			distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );
2742		}
2743		return distanceFalloff;
2744	#endif
2745}
2746float getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {
2747	return smoothstep( coneCosine, penumbraCosine, angleCosine );
2748}
2749#if NUM_DIR_LIGHTS > 0
2750	struct DirectionalLight {
2751		vec3 direction;
2752		vec3 color;
2753	};
2754	uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];
2755	void getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {
2756		light.color = directionalLight.color;
2757		light.direction = directionalLight.direction;
2758		light.visible = true;
2759	}
2760#endif
2761#if NUM_POINT_LIGHTS > 0
2762	struct PointLight {
2763		vec3 position;
2764		vec3 color;
2765		float distance;
2766		float decay;
2767	};
2768	uniform PointLight pointLights[ NUM_POINT_LIGHTS ];
2769	void getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {
2770		vec3 lVector = pointLight.position - geometryPosition;
2771		light.direction = normalize( lVector );
2772		float lightDistance = length( lVector );
2773		light.color = pointLight.color;
2774		light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );
2775		light.visible = ( light.color != vec3( 0.0 ) );
2776	}
2777#endif
2778#if NUM_SPOT_LIGHTS > 0
2779	struct SpotLight {
2780		vec3 position;
2781		vec3 direction;
2782		vec3 color;
2783		float distance;
2784		float decay;
2785		float coneCos;
2786		float penumbraCos;
2787	};
2788	uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];
2789	void getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {
2790		vec3 lVector = spotLight.position - geometryPosition;
2791		light.direction = normalize( lVector );
2792		float angleCos = dot( light.direction, spotLight.direction );
2793		float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );
2794		if ( spotAttenuation > 0.0 ) {
2795			float lightDistance = length( lVector );
2796			light.color = spotLight.color * spotAttenuation;
2797			light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );
2798			light.visible = ( light.color != vec3( 0.0 ) );
2799		} else {
2800			light.color = vec3( 0.0 );
2801			light.visible = false;
2802		}
2803	}
2804#endif
2805#if NUM_RECT_AREA_LIGHTS > 0
2806	struct RectAreaLight {
2807		vec3 color;
2808		vec3 position;
2809		vec3 halfWidth;
2810		vec3 halfHeight;
2811	};
2812	uniform sampler2D ltc_1;	uniform sampler2D ltc_2;
2813	uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];
2814#endif
2815#if NUM_HEMI_LIGHTS > 0
2816	struct HemisphereLight {
2817		vec3 direction;
2818		vec3 skyColor;
2819		vec3 groundColor;
2820	};
2821	uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];
2822	vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {
2823		float dotNL = dot( normal, hemiLight.direction );
2824		float hemiDiffuseWeight = 0.5 * dotNL + 0.5;
2825		vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );
2826		return irradiance;
2827	}
2828#endif`,lae=`#ifdef USE_ENVMAP
2829	vec3 getIBLIrradiance( const in vec3 normal ) {
2830		#ifdef ENVMAP_TYPE_CUBE_UV
2831			vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );
2832			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );
2833			return PI * envMapColor.rgb * envMapIntensity;
2834		#else
2835			return vec3( 0.0 );
2836		#endif
2837	}
2838	vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {
2839		#ifdef ENVMAP_TYPE_CUBE_UV
2840			vec3 reflectVec = reflect( - viewDir, normal );
2841			reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );
2842			reflectVec = inverseTransformDirection( reflectVec, viewMatrix );
2843			vec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );
2844			return envMapColor.rgb * envMapIntensity;
2845		#else
2846			return vec3( 0.0 );
2847		#endif
2848	}
2849	#ifdef USE_ANISOTROPY
2850		vec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {
2851			#ifdef ENVMAP_TYPE_CUBE_UV
2852				vec3 bentNormal = cross( bitangent, viewDir );
2853				bentNormal = normalize( cross( bentNormal, bitangent ) );
2854				bentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );
2855				return getIBLRadiance( viewDir, bentNormal, roughness );
2856			#else
2857				return vec3( 0.0 );
2858			#endif
2859		}
2860	#endif
2861#endif`,cae=`ToonMaterial material;
2862material.diffuseColor = diffuseColor.rgb;`,dae=`varying vec3 vViewPosition;
2863struct ToonMaterial {
2864	vec3 diffuseColor;
2865};
2866void RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
2867	vec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;
2868	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2869}
2870void RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {
2871	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2872}
2873#define RE_Direct				RE_Direct_Toon
2874#define RE_IndirectDiffuse		RE_IndirectDiffuse_Toon`,fae=`BlinnPhongMaterial material;
2875material.diffuseColor = diffuseColor.rgb;
2876material.specularColor = specular;
2877material.specularShininess = shininess;
2878material.specularStrength = specularStrength;`,hae=`varying vec3 vViewPosition;
2879struct BlinnPhongMaterial {
2880	vec3 diffuseColor;
2881	vec3 specularColor;
2882	float specularShininess;
2883	float specularStrength;
2884};
2885void RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
2886	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
2887	vec3 irradiance = dotNL * directLight.color;
2888	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2889	reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;
2890}
2891void RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {
2892	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
2893}
2894#define RE_Direct				RE_Direct_BlinnPhong
2895#define RE_IndirectDiffuse		RE_IndirectDiffuse_BlinnPhong`,pae=`PhysicalMaterial material;
2896material.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );
2897vec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );
2898float geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );
2899material.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;
2900material.roughness = min( material.roughness, 1.0 );
2901#ifdef IOR
2902	material.ior = ior;
2903	#ifdef USE_SPECULAR
2904		float specularIntensityFactor = specularIntensity;
2905		vec3 specularColorFactor = specularColor;
2906		#ifdef USE_SPECULAR_COLORMAP
2907			specularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;
2908		#endif
2909		#ifdef USE_SPECULAR_INTENSITYMAP
2910			specularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;
2911		#endif
2912		material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );
2913	#else
2914		float specularIntensityFactor = 1.0;
2915		vec3 specularColorFactor = vec3( 1.0 );
2916		material.specularF90 = 1.0;
2917	#endif
2918	material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );
2919#else
2920	material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );
2921	material.specularF90 = 1.0;
2922#endif
2923#ifdef USE_CLEARCOAT
2924	material.clearcoat = clearcoat;
2925	material.clearcoatRoughness = clearcoatRoughness;
2926	material.clearcoatF0 = vec3( 0.04 );
2927	material.clearcoatF90 = 1.0;
2928	#ifdef USE_CLEARCOATMAP
2929		material.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;
2930	#endif
2931	#ifdef USE_CLEARCOAT_ROUGHNESSMAP
2932		material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;
2933	#endif
2934	material.clearcoat = saturate( material.clearcoat );	material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );
2935	material.clearcoatRoughness += geometryRoughness;
2936	material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );
2937#endif
2938#ifdef USE_IRIDESCENCE
2939	material.iridescence = iridescence;
2940	material.iridescenceIOR = iridescenceIOR;
2941	#ifdef USE_IRIDESCENCEMAP
2942		material.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;
2943	#endif
2944	#ifdef USE_IRIDESCENCE_THICKNESSMAP
2945		material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;
2946	#else
2947		material.iridescenceThickness = iridescenceThicknessMaximum;
2948	#endif
2949#endif
2950#ifdef USE_SHEEN
2951	material.sheenColor = sheenColor;
2952	#ifdef USE_SHEEN_COLORMAP
2953		material.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;
2954	#endif
2955	material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );
2956	#ifdef USE_SHEEN_ROUGHNESSMAP
2957		material.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;
2958	#endif
2959#endif
2960#ifdef USE_ANISOTROPY
2961	#ifdef USE_ANISOTROPYMAP
2962		mat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );
2963		vec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;
2964		vec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;
2965	#else
2966		vec2 anisotropyV = anisotropyVector;
2967	#endif
2968	material.anisotropy = length( anisotropyV );
2969	if( material.anisotropy == 0.0 ) {
2970		anisotropyV = vec2( 1.0, 0.0 );
2971	} else {
2972		anisotropyV /= material.anisotropy;
2973		material.anisotropy = saturate( material.anisotropy );
2974	}
2975	material.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );
2976	material.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;
2977	material.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;
2978#endif`,mae=`struct PhysicalMaterial {
2979	vec3 diffuseColor;
2980	float roughness;
2981	vec3 specularColor;
2982	float specularF90
vendor: 14,563 bytes, lines 2982-3278
2982;
2983	#ifdef USE_CLEARCOAT
2984		float clearcoat;
2985		float clearcoatRoughness;
2986		vec3 clearcoatF0;
2987		float clearcoatF90;
2988	#endif
2989	#ifdef USE_IRIDESCENCE
2990		float iridescence;
2991		float iridescenceIOR;
2992		float iridescenceThickness;
2993		vec3 iridescenceFresnel;
2994		vec3 iridescenceF0;
2995	#endif
2996	#ifdef USE_SHEEN
2997		vec3 sheenColor;
2998		float sheenRoughness;
2999	#endif
3000	#ifdef IOR
3001		float ior;
3002	#endif
3003	#ifdef USE_TRANSMISSION
3004		float transmission;
3005		float transmissionAlpha;
3006		float thickness;
3007		float attenuationDistance;
3008		vec3 attenuationColor;
3009	#endif
3010	#ifdef USE_ANISOTROPY
3011		float anisotropy;
3012		float alphaT;
3013		vec3 anisotropyT;
3014		vec3 anisotropyB;
3015	#endif
3016};
3017vec3 clearcoatSpecularDirect = vec3( 0.0 );
3018vec3 clearcoatSpecularIndirect = vec3( 0.0 );
3019vec3 sheenSpecularDirect = vec3( 0.0 );
3020vec3 sheenSpecularIndirect = vec3(0.0 );
3021vec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {
3022    float x = clamp( 1.0 - dotVH, 0.0, 1.0 );
3023    float x2 = x * x;
3024    float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );
3025    return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );
3026}
3027float V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {
3028	float a2 = pow2( alpha );
3029	float gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );
3030	float gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );
3031	return 0.5 / max( gv + gl, EPSILON );
3032}
3033float D_GGX( const in float alpha, const in float dotNH ) {
3034	float a2 = pow2( alpha );
3035	float denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;
3036	return RECIPROCAL_PI * a2 / pow2( denom );
3037}
3038#ifdef USE_ANISOTROPY
3039	float V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {
3040		float gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );
3041		float gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );
3042		float v = 0.5 / ( gv + gl );
3043		return saturate(v);
3044	}
3045	float D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {
3046		float a2 = alphaT * alphaB;
3047		highp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );
3048		highp float v2 = dot( v, v );
3049		float w2 = a2 / v2;
3050		return RECIPROCAL_PI * a2 * pow2 ( w2 );
3051	}
3052#endif
3053#ifdef USE_CLEARCOAT
3054	vec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {
3055		vec3 f0 = material.clearcoatF0;
3056		float f90 = material.clearcoatF90;
3057		float roughness = material.clearcoatRoughness;
3058		float alpha = pow2( roughness );
3059		vec3 halfDir = normalize( lightDir + viewDir );
3060		float dotNL = saturate( dot( normal, lightDir ) );
3061		float dotNV = saturate( dot( normal, viewDir ) );
3062		float dotNH = saturate( dot( normal, halfDir ) );
3063		float dotVH = saturate( dot( viewDir, halfDir ) );
3064		vec3 F = F_Schlick( f0, f90, dotVH );
3065		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
3066		float D = D_GGX( alpha, dotNH );
3067		return F * ( V * D );
3068	}
3069#endif
3070vec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {
3071	vec3 f0 = material.specularColor;
3072	float f90 = material.specularF90;
3073	float roughness = material.roughness;
3074	float alpha = pow2( roughness );
3075	vec3 halfDir = normalize( lightDir + viewDir );
3076	float dotNL = saturate( dot( normal, lightDir ) );
3077	float dotNV = saturate( dot( normal, viewDir ) );
3078	float dotNH = saturate( dot( normal, halfDir ) );
3079	float dotVH = saturate( dot( viewDir, halfDir ) );
3080	vec3 F = F_Schlick( f0, f90, dotVH );
3081	#ifdef USE_IRIDESCENCE
3082		F = mix( F, material.iridescenceFresnel, material.iridescence );
3083	#endif
3084	#ifdef USE_ANISOTROPY
3085		float dotTL = dot( material.anisotropyT, lightDir );
3086		float dotTV = dot( material.anisotropyT, viewDir );
3087		float dotTH = dot( material.anisotropyT, halfDir );
3088		float dotBL = dot( material.anisotropyB, lightDir );
3089		float dotBV = dot( material.anisotropyB, viewDir );
3090		float dotBH = dot( material.anisotropyB, halfDir );
3091		float V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );
3092		float D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );
3093	#else
3094		float V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );
3095		float D = D_GGX( alpha, dotNH );
3096	#endif
3097	return F * ( V * D );
3098}
3099vec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {
3100	const float LUT_SIZE = 64.0;
3101	const float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;
3102	const float LUT_BIAS = 0.5 / LUT_SIZE;
3103	float dotNV = saturate( dot( N, V ) );
3104	vec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );
3105	uv = uv * LUT_SCALE + LUT_BIAS;
3106	return uv;
3107}
3108float LTC_ClippedSphereFormFactor( const in vec3 f ) {
3109	float l = length( f );
3110	return max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );
3111}
3112vec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {
3113	float x = dot( v1, v2 );
3114	float y = abs( x );
3115	float a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;
3116	float b = 3.4175940 + ( 4.1616724 + y ) * y;
3117	float v = a / b;
3118	float theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;
3119	return cross( v1, v2 ) * theta_sintheta;
3120}
3121vec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {
3122	vec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];
3123	vec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];
3124	vec3 lightNormal = cross( v1, v2 );
3125	if( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );
3126	vec3 T1, T2;
3127	T1 = normalize( V - N * dot( V, N ) );
3128	T2 = - cross( N, T1 );
3129	mat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );
3130	vec3 coords[ 4 ];
3131	coords[ 0 ] = mat * ( rectCoords[ 0 ] - P );
3132	coords[ 1 ] = mat * ( rectCoords[ 1 ] - P );
3133	coords[ 2 ] = mat * ( rectCoords[ 2 ] - P );
3134	coords[ 3 ] = mat * ( rectCoords[ 3 ] - P );
3135	coords[ 0 ] = normalize( coords[ 0 ] );
3136	coords[ 1 ] = normalize( coords[ 1 ] );
3137	coords[ 2 ] = normalize( coords[ 2 ] );
3138	coords[ 3 ] = normalize( coords[ 3 ] );
3139	vec3 vectorFormFactor = vec3( 0.0 );
3140	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );
3141	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );
3142	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );
3143	vectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );
3144	float result = LTC_ClippedSphereFormFactor( vectorFormFactor );
3145	return vec3( result );
3146}
3147#if defined( USE_SHEEN )
3148float D_Charlie( float roughness, float dotNH ) {
3149	float alpha = pow2( roughness );
3150	float invAlpha = 1.0 / alpha;
3151	float cos2h = dotNH * dotNH;
3152	float sin2h = max( 1.0 - cos2h, 0.0078125 );
3153	return ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );
3154}
3155float V_Neubelt( float dotNV, float dotNL ) {
3156	return saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );
3157}
3158vec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {
3159	vec3 halfDir = normalize( lightDir + viewDir );
3160	float dotNL = saturate( dot( normal, lightDir ) );
3161	float dotNV = saturate( dot( normal, viewDir ) );
3162	float dotNH = saturate( dot( normal, halfDir ) );
3163	float D = D_Charlie( sheenRoughness, dotNH );
3164	float V = V_Neubelt( dotNV, dotNL );
3165	return sheenColor * ( D * V );
3166}
3167#endif
3168float IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
3169	float dotNV = saturate( dot( normal, viewDir ) );
3170	float r2 = roughness * roughness;
3171	float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;
3172	float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;
3173	float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );
3174	return saturate( DG * RECIPROCAL_PI );
3175}
3176vec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {
3177	float dotNV = saturate( dot( normal, viewDir ) );
3178	const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
3179	const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
3180	vec4 r = roughness * c0 + c1;
3181	float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;
3182	vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;
3183	return fab;
3184}
3185vec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {
3186	vec2 fab = DFGApprox( normal, viewDir, roughness );
3187	return specularColor * fab.x + specularF90 * fab.y;
3188}
3189#ifdef USE_IRIDESCENCE
3190void computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
3191#else
3192void computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {
3193#endif
3194	vec2 fab = DFGApprox( normal, viewDir, roughness );
3195	#ifdef USE_IRIDESCENCE
3196		vec3 Fr = mix( specularColor, iridescenceF0, iridescence );
3197	#else
3198		vec3 Fr = specularColor;
3199	#endif
3200	vec3 FssEss = Fr * fab.x + specularF90 * fab.y;
3201	float Ess = fab.x + fab.y;
3202	float Ems = 1.0 - Ess;
3203	vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;	vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );
3204	singleScatter += FssEss;
3205	multiScatter += Fms * Ems;
3206}
3207#if NUM_RECT_AREA_LIGHTS > 0
3208	void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
3209		vec3 normal = geometryNormal;
3210		vec3 viewDir = geometryViewDir;
3211		vec3 position = geometryPosition;
3212		vec3 lightPos = rectAreaLight.position;
3213		vec3 halfWidth = rectAreaLight.halfWidth;
3214		vec3 halfHeight = rectAreaLight.halfHeight;
3215		vec3 lightColor = rectAreaLight.color;
3216		float roughness = material.roughness;
3217		vec3 rectCoords[ 4 ];
3218		rectCoords[ 0 ] = lightPos + halfWidth - halfHeight;		rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;
3219		rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;
3220		rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;
3221		vec2 uv = LTC_Uv( normal, viewDir, roughness );
3222		vec4 t1 = texture2D( ltc_1, uv );
3223		vec4 t2 = texture2D( ltc_2, uv );
3224		mat3 mInv = mat3(
3225			vec3( t1.x, 0, t1.y ),
3226			vec3(    0, 1,    0 ),
3227			vec3( t1.z, 0, t1.w )
3228		);
3229		vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );
3230		reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );
3231		reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );
3232	}
3233#endif
3234void RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
3235	float dotNL = saturate( dot( geometryNormal, directLight.direction ) );
3236	vec3 irradiance = dotNL * directLight.color;
3237	#ifdef USE_CLEARCOAT
3238		float dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );
3239		vec3 ccIrradiance = dotNLcc * directLight.color;
3240		clearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );
3241	#endif
3242	#ifdef USE_SHEEN
3243		sheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );
3244	#endif
3245	reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );
3246	reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
3247}
3248void RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {
3249	reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );
3250}
3251void RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {
3252	#ifdef USE_CLEARCOAT
3253		clearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );
3254	#endif
3255	#ifdef USE_SHEEN
3256		sheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );
3257	#endif
3258	vec3 singleScattering = vec3( 0.0 );
3259	vec3 multiScattering = vec3( 0.0 );
3260	vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;
3261	#ifdef USE_IRIDESCENCE
3262		computeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );
3263	#else
3264		computeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );
3265	#endif
3266	vec3 totalScattering = singleScattering + multiScattering;
3267	vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );
3268	reflectedLight.indirectSpecular += radiance * singleScattering;
3269	reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;
3270	reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;
3271}
3272#define RE_Direct				RE_Direct_Physical
3273#define RE_Direct_RectArea		RE_Direct_RectArea_Physical
3274#define RE_IndirectDiffuse		RE_IndirectDiffuse_Physical
3275#define RE_IndirectSpecular		RE_IndirectSpecular_Physical
3276float computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {
3277	return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );
3278}`,
3278gae=`
3279vec3 geometryPosition = - vViewPosition;
3280vec3 geometryNormal = normal;
3281vec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );
3282vec3 geometryClearcoatNormal = vec3( 0.0 );
3283#ifdef USE_CLEARCOAT
3284	geometryClearcoatNormal = clearcoatNormal;
3285#endif
3286#ifdef USE_IRIDESCENCE
3287	float dotNVi = saturate( dot( normal, geometryViewDir ) );
3288	if ( material.iridescenceThickness == 0.0 ) {
3289		material.iridescence = 0.0;
3290	} else {
3291		material.iridescence = saturate( material.iridescence );
3292	}
3293	if ( material.iridescence > 0.0 ) {
3294		material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );
3295		material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );
3296	}
3297#endif
3298IncidentLight directLight;
3299#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )
3300	PointLight pointLight;
3301	#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0
3302	PointLightShadow pointLightShadow;
3303	#endif
3304	#pragma unroll_loop_start
3305	for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {
3306		pointLight = pointLights[ i ];
3307		getPointLightInfo( pointLight, geometryPosition, directLight );
3308		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )
3309		pointLightShadow = pointLightShadows[ i ];
3310		directLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;
3311		#endif
3312		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3313	}
3314	#pragma unroll_loop_end
3315#endif
3316#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )
3317	SpotLight spotLight;
3318	vec4 spotColor;
3319	vec3 spotLightCoord;
3320	bool inSpotLightMap;
3321	#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0
3322	SpotLightShadow spotLightShadow;
3323	#endif
3324	#pragma unroll_loop_start
3325	for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {
3326		spotLight = spotLights[ i ];
3327		getSpotLightInfo( spotLight, geometryPosition, directLight );
3328		#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
3329		#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX
3330		#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
3331		#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS
3332		#else
3333		#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )
3334		#endif
3335		#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )
3336			spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;
3337			inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );
3338			spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );
3339			directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;
3340		#endif
3341		#undef SPOT_LIGHT_MAP_INDEX
3342		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
3343		spotLightShadow = spotLightShadows[ i ];
3344		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
3345		#endif
3346		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3347	}
3348	#pragma unroll_loop_end
3349#endif
3350#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )
3351	DirectionalLight directionalLight;
3352	#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0
3353	DirectionalLightShadow directionalLightShadow;
3354	#endif
3355	#pragma unroll_loop_start
3356	for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {
3357		directionalLight = directionalLights[ i ];
3358		getDirectionalLightInfo( directionalLight, directLight );
3359		#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )
3360		directionalLightShadow = directionalLightShadows[ i ];
3361		directLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
3362		#endif
3363		RE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3364	}
3365	#pragma unroll_loop_end
3366#endif
3367#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )
3368	RectAreaLight rectAreaLight;
3369	#pragma unroll_loop_start
3370	for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {
3371		rectAreaLight = rectAreaLights[ i ];
3372		RE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3373	}
3374	#pragma unroll_loop_end
3375#endif
3376#if defined( RE_IndirectDiffuse )
3377	vec3 iblIrradiance = vec3( 0.0 );
3378	vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );
3379	#if defined( USE_LIGHT_PROBES )
3380		irradiance += getLightProbeIrradiance( lightProbe, geometryNormal );
3381	#endif
3382	#if ( NUM_HEMI_LIGHTS > 0 )
3383		#pragma unroll_loop_start
3384		for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {
3385			irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );
3386		}
3387		#pragma unroll_loop_end
3388	#endif
3389#endif
3390#if defined( RE_IndirectSpecular )
3391	vec3 radiance = vec3( 0.0 );
3392	vec3 clearcoatRadiance = vec3( 0.0 );
3393#endif`,vae=`#if defined( RE_IndirectDiffuse )
3394	#ifdef USE_LIGHTMAP
3395		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
3396		vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;
3397		irradiance += lightMapIrradiance;
3398	#endif
3399	#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )
3400		iblIrradiance += getIBLIrradiance( geometryNormal );
3401	#endif
3402#endif
3403#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )
3404	#ifdef USE_ANISOTROPY
3405		radiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );
3406	#else
3407		radiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );
3408	#endif
3409	#ifdef USE_CLEARCOAT
3410		clearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );
3411	#endif
3412#endif`,_ae=`#if defined( RE_IndirectDiffuse )
3413	RE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3414#endif
3415#if defined( RE_IndirectSpecular )
3416	RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );
3417#endif`,bae=`#if defined( USE_LOGDEPTHBUF )
3418	gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;
3419#endif`,yae=`#if defined( USE_LOGDEPTHBUF )
3420	uniform float logDepthBufFC;
3421	varying float vFragDepth;
3422	varying float vIsPerspective;
3423#endif`,Eae=`#ifdef USE_LOGDEPTHBUF
3424	varying float vFragDepth;
3425	varying float vIsPerspective;
3426#endif`,xae=`#ifdef USE_LOGDEPTHBUF
3427	vFragDepth = 1.0 + gl_Position.w;
3428	vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
3429#endif`,Aae=`#ifdef USE_MAP
3430	vec4 sampledDiffuseColor = texture2D( map, vMapUv );
3431	#ifdef DECODE_VIDEO_TEXTURE
3432		sampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );
3433	
3434	#endif
3435	diffuseColor *= sampledDiffuseColor;
3436#endif`,Sae=`#ifdef USE_MAP
3437	uniform sampler2D map;
3438#endif`,Tae=`#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
3439	#if defined( USE_POINTS_UV )
3440		vec2 uv = vUv;
3441	#else
3442		vec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;
3443	#endif
3444#endif
3445#ifdef USE_MAP
3446	diffuseColor *= texture2D( map, uv );
3447#endif
3448#ifdef USE_ALPHAMAP
3449	diffuseColor.a *= texture2D( alphaMap, uv ).g;
3450#endif`,wae=`#if defined( USE_POINTS_UV )
3451	varying vec2 vUv;
3452#else
3453	#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
3454		uniform mat3 uvTransform;
3455	#endif
3456#endif
3457#ifdef USE_MAP
3458	uniform sampler2D map;
3459#endif
3460#ifdef USE_ALPHAMAP
3461	uniform sampler2D alphaMap;
3462#endif`,Mae=`float metalnessFactor = metalness;
3463#ifdef USE_METALNESSMAP
3464	vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
3465	metalnessFactor *= texelMetalness.b;
3466#endif`,Cae=`#ifdef USE_METALNESSMAP
3467	uniform sampler2D metalnessMap;
3468#endif`,Dae=`#ifdef USE_INSTANCING_MORPH
3469	float morphTargetInfluences[MORPHTARGETS_COUNT];
3470	float morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;
3471	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
3472		morphTargetInfluences[i] =  texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;
3473	}
3474#endif`,Lae=`#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
3475	vColor *= morphTargetBaseInfluence;
3476	for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
3477		#if defined( USE_COLOR_ALPHA )
3478			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];
3479		#elif defined( USE_COLOR )
3480			if ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];
3481		#endif
3482	}
3483#endif`,Rae=`#ifdef USE_MORPHNORMALS
3484	objectNormal *= morphTargetBaseInfluence;
3485	#ifdef MORPHTARGETS_TEXTURE
3486		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
3487			if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];
3488		}
3489	#else
3490		objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];
3491		objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];
3492		objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];
3493		objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];
3494	#endif
3495#endif`,Iae=`#ifdef USE_MORPHTARGETS
3496	#ifndef USE_INSTANCING_MORPH
3497		uniform float morphTargetBaseInfluence;
3498	#endif
3499	#ifdef MORPHTARGETS_TEXTURE
3500		#ifndef USE_INSTANCING_MORPH
3501			uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];
3502		#endif
3503		uniform sampler2DArray morphTargetsTexture;
3504		uniform ivec2 morphTargetsTextureSize;
3505		vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {
3506			int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;
3507			int y = texelIndex / morphTargetsTextureSize.x;
3508			int x = texelIndex - y * morphTargetsTextureSize.x;
3509			ivec3 morphUV = ivec3( x, y, morphTargetIndex );
3510			return texelFetch( morphTargetsTexture, morphUV, 0 );
3511		}
3512	#else
3513		#ifndef USE_MORPHNORMALS
3514			uniform float morphTargetInfluences[ 8 ];
3515		#else
3516			uniform float morphTargetInfluences[ 4 ];
3517		#endif
3518	#endif
3519#endif`,Pae=`#ifdef USE_MORPHTARGETS
3520	transformed *= morphTargetBaseInfluence;
3521	#ifdef MORPHTARGETS_TEXTURE
3522		for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
3523			if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];
3524		}
3525	#else
3526		transformed += morphTarget0 * morphTargetInfluences[ 0 ];
3527		transformed += morphTarget1 * morphTargetInfluences[ 1 ];
3528		transformed += morphTarget2 * morphTargetInfluences[ 2 ];
3529		transformed += morphTarget3 * morphTargetInfluences[ 3 ];
3530		#ifndef USE_MORPHNORMALS
3531			transformed += morphTarget4 * morphTargetInfluences[ 4 ];
3532			transformed += morphTarget5 * morphTargetInfluences[ 5 ];
3533			transformed += morphTarget6 * morphTargetInfluences[ 6 ];
3534			transformed += morphTarget7 * morphTargetInfluences[ 7 ];
3535		#endif
3536	#endif
3537#endif`,kae=`float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;
3538#ifdef FLAT_SHADED
3539	vec3 fdx = dFdx( vViewPosition );
3540	vec3 fdy = dFdy( vViewPosition );
3541	vec3 normal = normalize( cross( fdx, fdy ) );
3542#else
3543	vec3 normal = normalize( vNormal );
3544	#ifdef DOUBLE_SIDED
3545		normal *= faceDirection;
3546	#endif
3547#endif
3548#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )
3549	#ifdef USE_TANGENT
3550		mat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
3551	#else
3552		mat3 tbn = getTangentFrame( - vViewPosition, normal,
3553		#if defined( USE_NORMALMAP )
3554			vNormalMapUv
3555		#elif defined( USE_CLEARCOAT_NORMALMAP )
3556			vClearcoatNormalMapUv
3557		#else
3558			vUv
3559		#endif
3560		);
3561	#endif
3562	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
3563		tbn[0] *= faceDirection;
3564		tbn[1] *= faceDirection;
3565	#endif
3566#endif
3567#ifdef USE_CLEARCOAT_NORMALMAP
3568	#ifdef USE_TANGENT
3569		mat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );
3570	#else
3571		mat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );
3572	#endif
3573	#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )
3574		tbn2[0] *= faceDirection;
3575		tbn2[1] *= faceDirection;
3576	#endif
3577#endif
3578vec3 nonPerturbedNormal = normal;`,Oae=`#ifdef USE_NORMALMAP_OBJECTSPACE
3579	normal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
3580	#ifdef FLIP_SIDED
3581		normal = - normal;
3582	#endif
3583	#ifdef DOUBLE_SIDED
3584		normal = normal * faceDirection;
3585	#endif
3586	normal = normalize( normalMatrix * normal );
3587#elif defined( USE_NORMALMAP_TANGENTSPACE )
3588	vec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;
3589	mapN.xy *= normalScale;
3590	normal = normalize( tbn * mapN );
3591#elif defined( USE_BUMPMAP )
3592	normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );
3593#endif`,Nae=`#ifndef FLAT_SHADED
3594	varying vec3 vNormal;
3595	#ifdef USE_TANGENT
3596		varying vec3 vTangent;
3597		varying vec3 vBitangent;
3598	#endif
3599#endif`,Uae=`#ifndef FLAT_SHADED
3600	varying vec3 vNormal;
3601	#ifdef USE_TANGENT
3602		varying vec3 vTangent;
3603		varying vec3 vBitangent;
3604	#endif
3605#endif`,Fae=`#ifndef FLAT_SHADED
3606	vNormal = normalize( transformedNormal );
3607	#ifdef USE_TANGENT
3608		vTangent = normalize( transformedTangent );
3609		vBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );
3610	#endif
3611#endif`,Bae=`#ifdef USE_NORMALMAP
3612	uniform sampler2D normalMap;
3613	uniform vec2 normalScale;
3614#endif
3615#ifdef USE_NORMALMAP_OBJECTSPACE
3616	uniform mat3 normalMatrix;
3617#endif
3618#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )
3619	mat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {
3620		vec3 q0 = dFdx( eye_pos.xyz );
3621		vec3 q1 = dFdy( eye_pos.xyz );
3622		vec2 st0 = dFdx( uv.st );
3623		vec2 st1 = dFdy( uv.st );
3624		vec3 N = surf_norm;
3625		vec3 q1perp = cross( q1, N );
3626		vec3 q0perp = cross( N, q0 );
3627		vec3 T = q1perp * st0.x + q0perp * st1.x;
3628		vec3 B = q1perp * st0.y + q0perp * st1.y;
3629		float det = max( dot( T, T ), dot( B, B ) );
3630		float scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );
3631		return mat3( T * scale, B * scale, N );
3632	}
3633#endif`,Vae=`#ifdef USE_CLEARCOAT
3634	vec3 clearcoatNormal = nonPerturbedNormal;
3635#endif`,Hae=`#ifdef USE_CLEARCOAT_NORMALMAP
3636	vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;
3637	clearcoatMapN.xy *= clearcoatNormalScale;
3638	clearcoatNormal = normalize( tbn2 * clearcoatMapN );
3639#endif`,zae=`#ifdef USE_CLEARCOATMAP
3640	uniform sampler2D clearcoatMap;
3641#endif
3642#ifdef USE_CLEARCOAT_NORMALMAP
3643	uniform sampler2D clearcoatNormalMap;
3644	uniform vec2 clearcoatNormalScale;
3645#endif
3646#ifdef USE_CLEARCOAT_ROUGHNESSMAP
3647	uniform sampler2D clearcoatRoughnessMap;
3648#endif`,$ae=`#ifdef USE_IRIDESCENCEMAP
3649	uniform sampler2D iridescenceMap;
3650#endif
3651#ifdef USE_IRIDESCENCE_THICKNESSMAP
3652	uniform sampler2D iridescenceThicknessMap;
3653#endif`,Wae=`#ifdef OPAQUE
3654diffuseColor.a = 1.0;
3655#endif
3656#ifdef USE_TRANSMISSION
3657diffuseColor.a *= material.transmissionAlpha;
3658#endif
3659gl_FragColor = vec4( outgoingLight, diffuseColor.a );`,Gae=`vec3 packNormalToRGB( const in vec3 normal ) {
3660	return normalize( normal ) * 0.5 + 0.5;
3661}
3662vec3 unpackRGBToNormal( const in vec3 rgb ) {
3663	return 2.0 * rgb.xyz - 1.0;
3664}
3665const float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;
3666const vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );
3667const vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );
3668const float ShiftRight8 = 1. / 256.;
3669vec4 packDepthToRGBA( const in float v ) {
3670	vec4 r = vec4( fract( v * PackFactors ), v );
3671	r.yzw -= r.xyz * ShiftRight8;	return r * PackUpscale;
3672}
3673float unpackRGBAToDepth( const in vec4 v ) {
3674	return dot( v, UnpackFactors );
3675}
3676vec2 packDepthToRG( in highp float v ) {
3677	return packDepthToRGBA( v ).yx;
3678}
3679float unpackRGToDepth( const in highp vec2 v ) {
3680	return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );
3681}
3682vec4 pack2HalfToRGBA( vec2 v ) {
3683	vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );
3684	return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );
3685}
3686vec2 unpackRGBATo2Half( vec4 v ) {
3687	return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );
3688}
3689float viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {
3690	return ( viewZ + near ) / ( near - far );
3691}
3692float orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {
3693	return depth * ( near - far ) - near;
3694}
3695float viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {
3696	return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );
3697}
3698float perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {
3699	return ( near * far ) / ( ( far - near ) * depth - far );
3700}`,qae=`#ifdef PREMULTIPLIED_ALPHA
3701	gl_FragColor.rgb *= gl_FragColor.a;
3702#endif`,jae=`vec4 mvPosition = vec4( transformed, 1.0 );
3703#ifdef USE_BATCHING
3704	mvPosition = batchingMatrix * mvPosition;
3705#endif
3706#ifdef USE_INSTANCING
3707	mvPosition = instanceMatrix * mvPosition;
3708#endif
3709mvPosition = modelViewMatrix * mvPosition;
3710gl_Position = projectionMatrix * mvPosition;`,Xae=`#ifdef DITHERING
3711	gl_FragColor.rgb = dithering( gl_FragColor.rgb );
3712#endif`,Yae=`#ifdef DITHERING
3713	vec3 dithering( vec3 color ) {
3714		float grid_position = rand( gl_FragCoord.xy );
3715		vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );
3716		dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );
3717		return color + dither_shift_RGB;
3718	}
3719#endif`,Kae=`float roughnessFactor = roughness;
3720#ifdef USE_ROUGHNESSMAP
3721	vec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );
3722	roughnessFactor *= texelRoughness.g;
3723#endif`,Zae=`#ifdef USE_ROUGHNESSMAP
3724	uniform sampler2D roughnessMap;
3725#endif`,Jae
vendor: 8,706 bytes, lines 3725-3908
3725=`#if NUM_SPOT_LIGHT_COORDS > 0
3726	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
3727#endif
3728#if NUM_SPOT_LIGHT_MAPS > 0
3729	uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];
3730#endif
3731#ifdef USE_SHADOWMAP
3732	#if NUM_DIR_LIGHT_SHADOWS > 0
3733		uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];
3734		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
3735		struct DirectionalLightShadow {
3736			float shadowBias;
3737			float shadowNormalBias;
3738			float shadowRadius;
3739			vec2 shadowMapSize;
3740		};
3741		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
3742	#endif
3743	#if NUM_SPOT_LIGHT_SHADOWS > 0
3744		uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];
3745		struct SpotLightShadow {
3746			float shadowBias;
3747			float shadowNormalBias;
3748			float shadowRadius;
3749			vec2 shadowMapSize;
3750		};
3751		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
3752	#endif
3753	#if NUM_POINT_LIGHT_SHADOWS > 0
3754		uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];
3755		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
3756		struct PointLightShadow {
3757			float shadowBias;
3758			float shadowNormalBias;
3759			float shadowRadius;
3760			vec2 shadowMapSize;
3761			float shadowCameraNear;
3762			float shadowCameraFar;
3763		};
3764		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
3765	#endif
3766	float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {
3767		return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );
3768	}
3769	vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {
3770		return unpackRGBATo2Half( texture2D( shadow, uv ) );
3771	}
3772	float VSMShadow (sampler2D shadow, vec2 uv, float compare ){
3773		float occlusion = 1.0;
3774		vec2 distribution = texture2DDistribution( shadow, uv );
3775		float hard_shadow = step( compare , distribution.x );
3776		if (hard_shadow != 1.0 ) {
3777			float distance = compare - distribution.x ;
3778			float variance = max( 0.00000, distribution.y * distribution.y );
3779			float softness_probability = variance / (variance + distance * distance );			softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );			occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );
3780		}
3781		return occlusion;
3782	}
3783	float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {
3784		float shadow = 1.0;
3785		shadowCoord.xyz /= shadowCoord.w;
3786		shadowCoord.z += shadowBias;
3787		bool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;
3788		bool frustumTest = inFrustum && shadowCoord.z <= 1.0;
3789		if ( frustumTest ) {
3790		#if defined( SHADOWMAP_TYPE_PCF )
3791			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
3792			float dx0 = - texelSize.x * shadowRadius;
3793			float dy0 = - texelSize.y * shadowRadius;
3794			float dx1 = + texelSize.x * shadowRadius;
3795			float dy1 = + texelSize.y * shadowRadius;
3796			float dx2 = dx0 / 2.0;
3797			float dy2 = dy0 / 2.0;
3798			float dx3 = dx1 / 2.0;
3799			float dy3 = dy1 / 2.0;
3800			shadow = (
3801				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +
3802				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +
3803				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +
3804				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +
3805				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +
3806				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +
3807				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +
3808				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +
3809				texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +
3810				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +
3811				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +
3812				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +
3813				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +
3814				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +
3815				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +
3816				texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +
3817				texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )
3818			) * ( 1.0 / 17.0 );
3819		#elif defined( SHADOWMAP_TYPE_PCF_SOFT )
3820			vec2 texelSize = vec2( 1.0 ) / shadowMapSize;
3821			float dx = texelSize.x;
3822			float dy = texelSize.y;
3823			vec2 uv = shadowCoord.xy;
3824			vec2 f = fract( uv * shadowMapSize + 0.5 );
3825			uv -= f * texelSize;
3826			shadow = (
3827				texture2DCompare( shadowMap, uv, shadowCoord.z ) +
3828				texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +
3829				texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +
3830				texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +
3831				mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),
3832					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),
3833					 f.x ) +
3834				mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),
3835					 texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),
3836					 f.x ) +
3837				mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),
3838					 texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),
3839					 f.y ) +
3840				mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),
3841					 texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),
3842					 f.y ) +
3843				mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),
3844						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),
3845						  f.x ),
3846					 mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),
3847						  texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),
3848						  f.x ),
3849					 f.y )
3850			) * ( 1.0 / 9.0 );
3851		#elif defined( SHADOWMAP_TYPE_VSM )
3852			shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );
3853		#else
3854			shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );
3855		#endif
3856		}
3857		return shadow;
3858	}
3859	vec2 cubeToUV( vec3 v, float texelSizeY ) {
3860		vec3 absV = abs( v );
3861		float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );
3862		absV *= scaleToCube;
3863		v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );
3864		vec2 planar = v.xy;
3865		float almostATexel = 1.5 * texelSizeY;
3866		float almostOne = 1.0 - almostATexel;
3867		if ( absV.z >= almostOne ) {
3868			if ( v.z > 0.0 )
3869				planar.x = 4.0 - v.x;
3870		} else if ( absV.x >= almostOne ) {
3871			float signX = sign( v.x );
3872			planar.x = v.z * signX + 2.0 * signX;
3873		} else if ( absV.y >= almostOne ) {
3874			float signY = sign( v.y );
3875			planar.x = v.x + 2.0 * signY + 2.0;
3876			planar.y = v.z * signY - 2.0;
3877		}
3878		return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );
3879	}
3880	float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {
3881		float shadow = 1.0;
3882		vec3 lightToPosition = shadowCoord.xyz;
3883		
3884		float lightToPositionLength = length( lightToPosition );
3885		if ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {
3886			float dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );			dp += shadowBias;
3887			vec3 bd3D = normalize( lightToPosition );
3888			vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );
3889			#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )
3890				vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;
3891				shadow = (
3892					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +
3893					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +
3894					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +
3895					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +
3896					texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +
3897					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +
3898					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +
3899					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +
3900					texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )
3901				) * ( 1.0 / 9.0 );
3902			#else
3903				shadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );
3904			#endif
3905		}
3906		return shadow;
3907	}
3908#endif`,
3908Qae=`#if NUM_SPOT_LIGHT_COORDS > 0
3909	uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];
3910	varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];
3911#endif
3912#ifdef USE_SHADOWMAP
3913	#if NUM_DIR_LIGHT_SHADOWS > 0
3914		uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];
3915		varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];
3916		struct DirectionalLightShadow {
3917			float shadowBias;
3918			float shadowNormalBias;
3919			float shadowRadius;
3920			vec2 shadowMapSize;
3921		};
3922		uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];
3923	#endif
3924	#if NUM_SPOT_LIGHT_SHADOWS > 0
3925		struct SpotLightShadow {
3926			float shadowBias;
3927			float shadowNormalBias;
3928			float shadowRadius;
3929			vec2 shadowMapSize;
3930		};
3931		uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];
3932	#endif
3933	#if NUM_POINT_LIGHT_SHADOWS > 0
3934		uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];
3935		varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];
3936		struct PointLightShadow {
3937			float shadowBias;
3938			float shadowNormalBias;
3939			float shadowRadius;
3940			vec2 shadowMapSize;
3941			float shadowCameraNear;
3942			float shadowCameraFar;
3943		};
3944		uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];
3945	#endif
3946#endif`,ese=`#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )
3947	vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );
3948	vec4 shadowWorldPosition;
3949#endif
3950#if defined( USE_SHADOWMAP )
3951	#if NUM_DIR_LIGHT_SHADOWS > 0
3952		#pragma unroll_loop_start
3953		for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
3954			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );
3955			vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;
3956		}
3957		#pragma unroll_loop_end
3958	#endif
3959	#if NUM_POINT_LIGHT_SHADOWS > 0
3960		#pragma unroll_loop_start
3961		for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
3962			shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );
3963			vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;
3964		}
3965		#pragma unroll_loop_end
3966	#endif
3967#endif
3968#if NUM_SPOT_LIGHT_COORDS > 0
3969	#pragma unroll_loop_start
3970	for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {
3971		shadowWorldPosition = worldPosition;
3972		#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )
3973			shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;
3974		#endif
3975		vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;
3976	}
3977	#pragma unroll_loop_end
3978#endif`,tse=`float getShadowMask() {
3979	float shadow = 1.0;
3980	#ifdef USE_SHADOWMAP
3981	#if NUM_DIR_LIGHT_SHADOWS > 0
3982	DirectionalLightShadow directionalLight;
3983	#pragma unroll_loop_start
3984	for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {
3985		directionalLight = directionalLightShadows[ i ];
3986		shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;
3987	}
3988	#pragma unroll_loop_end
3989	#endif
3990	#if NUM_SPOT_LIGHT_SHADOWS > 0
3991	SpotLightShadow spotLight;
3992	#pragma unroll_loop_start
3993	for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {
3994		spotLight = spotLightShadows[ i ];
3995		shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;
3996	}
3997	#pragma unroll_loop_end
3998	#endif
3999	#if NUM_POINT_LIGHT_SHADOWS > 0
4000	PointLightShadow pointLight;
4001	#pragma unroll_loop_start
4002	for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {
4003		pointLight = pointLightShadows[ i ];
4004		shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;
4005	}
4006	#pragma unroll_loop_end
4007	#endif
4008	#endif
4009	return shadow;
4010}`,nse=`#ifdef USE_SKINNING
4011	mat4 boneMatX = getBoneMatrix( skinIndex.x );
4012	mat4 boneMatY = getBoneMatrix( skinIndex.y );
4013	mat4 boneMatZ = getBoneMatrix( skinIndex.z );
4014	mat4 boneMatW = getBoneMatrix( skinIndex.w );
4015#endif`,ise=`#ifdef USE_SKINNING
4016	uniform mat4 bindMatrix;
4017	uniform mat4 bindMatrixInverse;
4018	uniform highp sampler2D boneTexture;
4019	mat4 getBoneMatrix( const in float i ) {
4020		int size = textureSize( boneTexture, 0 ).x;
4021		int j = int( i ) * 4;
4022		int x = j % size;
4023		int y = j / size;
4024		vec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );
4025		vec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );
4026		vec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );
4027		vec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );
4028		return mat4( v1, v2, v3, v4 );
4029	}
4030#endif`,rse=`#ifdef USE_SKINNING
4031	vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );
4032	vec4 skinned = vec4( 0.0 );
4033	skinned += boneMatX * skinVertex * skinWeight.x;
4034	skinned += boneMatY * skinVertex * skinWeight.y;
4035	skinned += boneMatZ * skinVertex * skinWeight.z;
4036	skinned += boneMatW * skinVertex * skinWeight.w;
4037	transformed = ( bindMatrixInverse * skinned ).xyz;
4038#endif`,ase=`#ifdef USE_SKINNING
4039	mat4 skinMatrix = mat4( 0.0 );
4040	skinMatrix += skinWeight.x * boneMatX;
4041	skinMatrix += skinWeight.y * boneMatY;
4042	skinMatrix += skinWeight.z * boneMatZ;
4043	skinMatrix += skinWeight.w * boneMatW;
4044	skinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;
4045	objectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;
4046	#ifdef USE_TANGENT
4047		objectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;
4048	#endif
4049#endif`,sse=`float specularStrength;
4050#ifdef USE_SPECULARMAP
4051	vec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );
4052	specularStrength = texelSpecular.r;
4053#else
4054	specularStrength = 1.0;
4055#endif`,ose=`#ifdef USE_SPECULARMAP
4056	uniform sampler2D specularMap;
4057#endif`,use=`#if defined( TONE_MAPPING )
4058	gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );
4059#endif`,lse=`#ifndef saturate
4060#define saturate( a ) clamp( a, 0.0, 1.0 )
4061#endif
4062uniform float toneMappingExposure;
4063vec3 LinearToneMapping( vec3 color ) {
4064	return saturate( toneMappingExposure * color );
4065}
4066vec3 ReinhardToneMapping( vec3 color ) {
4067	color *= toneMappingExposure;
4068	return saturate( color / ( vec3( 1.0 ) + color ) );
4069}
4070vec3 OptimizedCineonToneMapping( vec3 color ) {
4071	color *= toneMappingExposure;
4072	color = max( vec3( 0.0 ), color - 0.004 );
4073	return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );
4074}
4075vec3 RRTAndODTFit( vec3 v ) {
4076	vec3 a = v * ( v + 0.0245786 ) - 0.000090537;
4077	vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;
4078	return a / b;
4079}
4080vec3 ACESFilmicToneMapping( vec3 color ) {
4081	const mat3 ACESInputMat = mat3(
4082		vec3( 0.59719, 0.07600, 0.02840 ),		vec3( 0.35458, 0.90834, 0.13383 ),
4083		vec3( 0.04823, 0.01566, 0.83777 )
4084	);
4085	const mat3 ACESOutputMat = mat3(
4086		vec3(  1.60475, -0.10208, -0.00327 ),		vec3( -0.53108,  1.10813, -0.07276 ),
4087		vec3( -0.07367, -0.00605,  1.07602 )
4088	);
4089	color *= toneMappingExposure / 0.6;
4090	color = ACESInputMat * color;
4091	color = RRTAndODTFit( color );
4092	color = ACESOutputMat * color;
4093	return saturate( color );
4094}
4095const mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(
4096	vec3( 1.6605, - 0.1246, - 0.0182 ),
4097	vec3( - 0.5876, 1.1329, - 0.1006 ),
4098	vec3( - 0.0728, - 0.0083, 1.1187 )
4099);
4100const mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(
4101	vec3( 0.6274, 0.0691, 0.0164 ),
4102	vec3( 0.3293, 0.9195, 0.0880 ),
4103	vec3( 0.0433, 0.0113, 0.8956 )
4104);
4105vec3 agxDefaultContrastApprox( vec3 x ) {
4106	vec3 x2 = x * x;
4107	vec3 x4 = x2 * x2;
4108	return + 15.5 * x4 * x2
4109		- 40.14 * x4 * x
4110		+ 31.96 * x4
4111		- 6.868 * x2 * x
4112		+ 0.4298 * x2
4113		+ 0.1191 * x
4114		- 0.00232;
4115}
4116vec3 AgXToneMapping( vec3 color ) {
4117	const mat3 AgXInsetMatrix = mat3(
4118		vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),
4119		vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),
4120		vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )
4121	);
4122	const mat3 AgXOutsetMatrix = mat3(
4123		vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),
4124		vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),
4125		vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )
4126	);
4127	const float AgxMinEv = - 12.47393;	const float AgxMaxEv = 4.026069;
4128	color *= toneMappingExposure;
4129	color = LINEAR_SRGB_TO_LINEAR_REC2020 * color;
4130	color = AgXInsetMatrix * color;
4131	color = max( color, 1e-10 );	color = log2( color );
4132	color = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );
4133	color = clamp( color, 0.0, 1.0 );
4134	color = agxDefaultContrastApprox( color );
4135	color = AgXOutsetMatrix * color;
4136	color = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );
4137	color = LINEAR_REC2020_TO_LINEAR_SRGB * color;
4138	color = clamp( color, 0.0, 1.0 );
4139	return color;
4140}
4141vec3 NeutralToneMapping( vec3 color ) {
4142	float startCompression = 0.8 - 0.04;
4143	float desaturation = 0.15;
4144	color *= toneMappingExposure;
4145	float x = min(color.r, min(color.g, color.b));
4146	float offset = x < 0.08 ? x - 6.25 * x * x : 0.04;
4147	color -= offset;
4148	float peak = max(color.r, max(color.g, color.b));
4149	if (peak < startCompression) return color;
4150	float d = 1. - startCompression;
4151	float newPeak = 1. - d * d / (peak + d - startCompression);
4152	color *= newPeak / peak;
4153	float g = 1. - 1. / (desaturation * (peak - newPeak) + 1.);
4154	return mix(color, newPeak * vec3(1, 1, 1), g);
4155}
4156vec3 CustomToneMapping( vec3 color ) { return color; }`,cse=`#ifdef USE_TRANSMISSION
4157	material.transmission = transmission;
4158	material.transmissionAlpha = 1.0;
4159	material.thickness = thickness;
4160	material.attenuationDistance = attenuationDistance;
4161	material.attenuationColor = attenuationColor;
4162	#ifdef USE_TRANSMISSIONMAP
4163		material.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;
4164	#endif
4165	#ifdef USE_THICKNESSMAP
4166		material.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;
4167	#endif
4168	vec3 pos = vWorldPosition;
4169	vec3 v = normalize( cameraPosition - pos );
4170	vec3 n = inverseTransformDirection( normal, viewMatrix );
4171	vec4 transmitted = getIBLVolumeRefraction(
4172		n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,
4173		pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,
4174		material.attenuationColor, material.attenuationDistance );
4175	material.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );
4176	totalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );
4177#endif`,dse=`#ifdef USE_TRANSMISSION
4178	uniform float transmission;
4179	uniform float thickness;
4180	uniform float attenuationDistance;
4181	uniform vec3 attenuationColor;
4182	#ifdef USE_TRANSMISSIONMAP
4183		uniform sampler2D transmissionMap;
4184	#endif
4185	#ifdef USE_THICKNESSMAP
4186		uniform sampler2D thicknessMap;
4187	#endif
4188	uniform vec2 transmissionSamplerSize;
4189	uniform sampler2D transmissionSamplerMap;
4190	uniform mat4 modelMatrix;
4191	uniform mat4 projectionMatrix;
4192	varying vec3 vWorldPosition;
4193	float w0( float a ) {
4194		return ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );
4195	}
4196	float w1( float a ) {
4197		return ( 1.0 / 6.0 ) * ( a *  a * ( 3.0 * a - 6.0 ) + 4.0 );
4198	}
4199	float w2( float a ){
4200		return ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );
4201	}
4202	float w3( float a ) {
4203		return ( 1.0 / 6.0 ) * ( a * a * a );
4204	}
4205	float g0( float a ) {
4206		return w0( a ) + w1( a );
4207	}
4208	float g1( float a ) {
4209		return w2( a ) + w3( a );
4210	}
4211	float h0( float a ) {
4212		return - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );
4213	}
4214	float h1( float a ) {
4215		return 1.0 + w3( a ) / ( w2( a ) + w3( a ) );
4216	}
4217	vec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {
4218		uv = uv * texelSize.zw + 0.5;
4219		vec2 iuv = floor( uv );
4220		vec2 fuv = fract( uv );
4221		float g0x = g0( fuv.x );
4222		float g1x = g1( fuv.x );
4223		float h0x = h0( fuv.x );
4224		float h1x = h1( fuv.x );
4225		float h0y = h0( fuv.y );
4226		float h1y = h1( fuv.y );
4227		vec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
4228		vec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;
4229		vec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
4230		vec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;
4231		return g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +
4232			g1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );
4233	}
4234	vec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {
4235		vec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );
4236		vec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );
4237		vec2 fLodSizeInv = 1.0 / fLodSize;
4238		vec2 cLodSizeInv = 1.0 / cLodSize;
4239		vec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );
4240		vec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );
4241		return mix( fSample, cSample, fract( lod ) );
4242	}
4243	vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {
4244		vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );
4245		vec3 modelScale;
4246		modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );
4247		modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );
4248		modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );
4249		return normalize( refractionVector ) * thickness * modelScale;
4250	}
4251	float applyIorToRoughness( const in float roughness, const in float ior ) {
4252		return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );
4253	}
4254	vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {
4255		float lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );
4256		return textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );
4257	}
4258	vec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {
4259		if ( isinf( attenuationDistance ) ) {
4260			return vec3( 1.0 );
4261		} else {
4262			vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;
4263			vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );			return transmittance;
4264		}
4265	}
4266	vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,
4267		const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,
4268		const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,
4269		const in vec3 attenuationColor, const in float attenuationDistance ) {
4270		vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );
4271		vec3 refractedRayExit = position + transmissionRay;
4272		vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );
4273		vec2 refractionCoords = ndcPos.xy / ndcPos.w;
4274		refractionCoords += 1.0;
4275		refractionCoords /= 2.0;
4276		vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );
4277		vec3 transmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );
4278		vec3 attenuatedColor = transmittance * transmittedLight.rgb;
4279		vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );
4280		float transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;
4281		return vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );
4282	}
4283#endif`,fse=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
4284	varying vec2 vUv;
4285#endif
4286#ifdef USE_MAP
4287	varying vec2 vMapUv;
4288#endif
4289#ifdef USE_ALPHAMAP
4290	varying vec2 vAlphaMapUv;
4291#endif
4292#ifdef USE_LIGHTMAP
4293	varying vec2 vLightMapUv;
4294#endif
4295#ifdef USE_AOMAP
4296	varying vec2 vAoMapUv;
4297#endif
4298#ifdef USE_BUMPMAP
4299	varying vec2 vBumpMapUv;
4300#endif
4301#ifdef USE_NORMALMAP
4302	varying vec2 vNormalMapUv;
4303#endif
4304#ifdef USE_EMISSIVEMAP
4305	varying vec2 vEmissiveMapUv;
4306#endif
4307#ifdef USE_METALNESSMAP
4308	varying vec2 vMetalnessMapUv;
4309#endif
4310#ifdef USE_ROUGHNESSMAP
4311	varying vec2 vRoughnessMapUv;
4312#endif
4313#ifdef USE_ANISOTROPYMAP
4314	varying vec2 vAnisotropyMapUv;
4315#endif
4316#ifdef USE_CLEARCOATMAP
4317	varying vec2 vClearcoatMapUv;
4318#endif
4319#ifdef USE_CLEARCOAT_NORMALMAP
4320	varying vec2 vClearcoatNormalMapUv;
4321#endif
4322#ifdef USE_CLEARCOAT_ROUGHNESSMAP
4323	varying vec2 vClearcoatRoughnessMapUv;
4324#endif
4325#ifdef USE_IRIDESCENCEMAP
4326	varying vec2 vIridescenceMapUv;
4327#endif
4328#ifdef USE_IRIDESCENCE_THICKNESSMAP
4329	varying vec2 vIridescenceThicknessMapUv;
4330#endif
4331#ifdef USE_SHEEN_COLORMAP
4332	varying vec2 vSheenColorMapUv;
4333#endif
4334#ifdef USE_SHEEN_ROUGHNESSMAP
4335	varying vec2 vSheenRoughnessMapUv;
4336#endif
4337#ifdef USE_SPECULARMAP
4338	varying vec2 vSpecularMapUv;
4339#endif
4340#ifdef USE_SPECULAR_COLORMAP
4341	varying vec2 vSpecularColorMapUv;
4342#endif
4343#ifdef USE_SPECULAR_INTENSITYMAP
4344	varying vec2 vSpecularIntensityMapUv;
4345#endif
4346#ifdef USE_TRANSMISSIONMAP
4347	uniform mat3 transmissionMapTransform;
4348	varying vec2 vTransmissionMapUv;
4349#endif
4350#ifdef USE_THICKNESSMAP
4351	uniform mat3 thicknessMapTransform;
4352	varying vec2 vThicknessMapUv;
4353#endif`,hse=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
4354	varying vec2 vUv;
4355#endif
4356#ifdef USE_MAP
4357	uniform mat3 mapTransform;
4358	varying vec2 vMapUv;
4359#endif
4360#ifdef USE_ALPHAMAP
4361	uniform mat3 alphaMapTransform;
4362	varying vec2 vAlphaMapUv;
4363#endif
4364#ifdef USE_LIGHTMAP
4365	uniform mat3 lightMapTransform;
4366	varying vec2 vLightMapUv;
4367#endif
4368#ifdef USE_AOMAP
4369	uniform mat3 aoMapTransform;
4370	varying vec2 vAoMapUv;
4371#endif
4372#ifdef USE_BUMPMAP
4373	uniform mat3 bumpMapTransform;
4374	varying vec2 vBumpMapUv;
4375#endif
4376#ifdef USE_NORMALMAP
4377	uniform mat3 normalMapTransform;
4378	varying vec2 vNormalMapUv;
4379#endif
4380#ifdef USE_DISPLACEMENTMAP
4381	uniform mat3 displacementMapTransform;
4382	varying vec2 vDisplacementMapUv;
4383#endif
4384#ifdef USE_EMISSIVEMAP
4385	uniform mat3 emissiveMapTransform;
4386	varying vec2 vEmissiveMapUv;
4387#endif
4388#ifdef USE_METALNESSMAP
4389	uniform mat3 metalnessMapTransform;
4390	varying vec2 vMetalnessMapUv;
4391#endif
4392#ifdef USE_ROUGHNESSMAP
4393	uniform mat3 roughnessMapTransform;
4394	varying vec2 vRoughnessMapUv;
4395#endif
4396#ifdef USE_ANISOTROPYMAP
4397	uniform mat3 anisotropyMapTransform;
4398	varying vec2 vAnisotropyMapUv;
4399#endif
4400#ifdef USE_CLEARCOATMAP
4401	uniform mat3 clearcoatMapTransform;
4402	varying vec2 vClearcoatMapUv;
4403#endif
4404#ifdef USE_CLEARCOAT_NORMALMAP
4405	uniform mat3 clearcoatNormalMapTransform;
4406	varying vec2 vClearcoatNormalMapUv;
4407#endif
4408#ifdef USE_CLEARCOAT_ROUGHNESSMAP
4409	uniform mat3 clearcoatRoughnessMapTransform;
4410	varying vec2 vClearcoatRoughnessMapUv;
4411#endif
4412#ifdef USE_SHEEN_COLORMAP
4413	uniform mat3 sheenColorMapTransform;
4414	varying vec2 vSheenColorMapUv;
4415#endif
4416#ifdef USE_SHEEN_ROUGHNESSMAP
4417	uniform mat3 sheenRoughnessMapTransform;
4418	varying vec2 vSheenRoughnessMapUv;
4419#endif
4420#ifdef USE_IRIDESCENCEMAP
4421	uniform mat3 iridescenceMapTransform;
4422	varying vec2 vIridescenceMapUv;
4423#endif
4424#ifdef USE_IRIDESCENCE_THICKNESSMAP
4425	uniform mat3 iridescenceThicknessMapTransform;
4426	varying vec2 vIridescenceThicknessMapUv;
4427#endif
4428#ifdef USE_SPECULARMAP
4429	uniform mat3 specularMapTransform;
4430	varying vec2 vSpecularMapUv;
4431#endif
4432#ifdef USE_SPECULAR_COLORMAP
4433	uniform mat3 specularColorMapTransform;
4434	varying vec2 vSpecularColorMapUv;
4435#endif
4436#ifdef USE_SPECULAR_INTENSITYMAP
4437	uniform mat3 specularIntensityMapTransform;
4438	varying vec2 vSpecularIntensityMapUv;
4439#endif
4440#ifdef USE_TRANSMISSIONMAP
4441	uniform mat3 transmissionMapTransform;
4442	varying vec2 vTransmissionMapUv;
4443#endif
4444#ifdef USE_THICKNESSMAP
4445	uniform mat3 thicknessMapTransform;
4446	varying vec2 vThicknessMapUv;
4447#endif`,pse=`#if defined( USE_UV ) || defined( USE_ANISOTROPY )
4448	vUv = vec3( uv, 1 ).xy;
4449#endif
4450#ifdef USE_MAP
4451	vMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;
4452#endif
4453#ifdef USE_ALPHAMAP
4454	vAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;
4455#endif
4456#ifdef USE_LIGHTMAP
4457	vLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;
4458#endif
4459#ifdef USE_AOMAP
4460	vAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;
4461#endif
4462#ifdef USE_BUMPMAP
4463	vBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;
4464#endif
4465#ifdef USE_NORMALMAP
4466	vNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;
4467#endif
4468#ifdef USE_DISPLACEMENTMAP
4469	vDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;
4470#endif
4471#ifdef USE_EMISSIVEMAP
4472	vEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;
4473#endif
4474#ifdef USE_METALNESSMAP
4475	vMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;
4476#endif
4477#ifdef USE_ROUGHNESSMAP
4478	vRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;
4479#endif
4480#ifdef USE_ANISOTROPYMAP
4481	vAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;
4482#endif
4483#ifdef USE_CLEARCOATMAP
4484	vClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;
4485#endif
4486#ifdef USE_CLEARCOAT_NORMALMAP
4487	vClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;
4488#endif
4489#ifdef USE_CLEARCOAT_ROUGHNESSMAP
4490	vClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;
4491#endif
4492#ifdef USE_IRIDESCENCEMAP
4493	vIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;
4494#endif
4495#ifdef USE_IRIDESCENCE_THICKNESSMAP
4496	vIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;
4497#endif
4498#ifdef USE_SHEEN_COLORMAP
4499	vSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;
4500#endif
4501#ifdef USE_SHEEN_ROUGHNESSMAP
4502	vSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;
4503#endif
4504#ifdef USE_SPECULARMAP
4505	vSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;
4506#endif
4507#ifdef USE_SPECULAR_COLORMAP
4508	vSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;
4509#endif
4510#ifdef USE_SPECULAR_INTENSITYMAP
4511	vSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;
4512#endif
4513#ifdef USE_TRANSMISSIONMAP
4514	vTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;
4515#endif
4516#ifdef USE_THICKNESSMAP
4517	vThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;
4518#endif`,mse=`#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0
4519	vec4 worldPosition = vec4( transformed, 1.0 );
4520	#ifdef USE_BATCHING
4521		worldPosition = batchingMatrix * worldPosition;
4522	#endif
4523	#ifdef USE_INSTANCING
4524		worldPosition = instanceMatrix * worldPosition;
4525	#endif
4526	worldPosition = modelMatrix * worldPosition;
4527#endif`;const gse=`varying vec2 vUv;
4528uniform mat3 uvTransform;
4529void main() {
4530	vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
4531	gl_Position = vec4( position.xy, 1.0, 1.0 );
4532}`,vse=`uniform sampler2D t2D;
4533uniform float backgroundIntensity;
4534varying vec2 vUv;
4535void main() {
4536	vec4 texColor = texture2D( t2D, vUv );
4537	#ifdef DECODE_VIDEO_TEXTURE
4538		texColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );
4539	#endif
4540	texColor.rgb *= backgroundIntensity;
4541	gl_FragColor = texColor;
4542	#include <tonemapping_fragment>
4543	#include <colorspace_fragment>
4544}`,_se=`varying vec3 vWorldDirection;
4545#include <common>
4546void main() {
4547	vWorldDirection = transformDirection( position, modelMatrix );
4548	#include <begin_vertex>
4549	#include <project_vertex>
4550	gl_Position.z = gl_Position.w;
4551}`,bse=`#ifdef ENVMAP_TYPE_CUBE
4552	uniform samplerCube envMap;
4553#elif defined( ENVMAP_TYPE_CUBE_UV )
4554	uniform sampler2D envMap;
4555#endif
4556uniform float flipEnvMap;
4557uniform float backgroundBlurriness;
4558uniform float backgroundIntensity;
4559uniform mat3 backgroundRotation;
4560varying vec3 vWorldDirection;
4561#include <cube_uv_reflection_fragment>
4562void main() {
4563	#ifdef ENVMAP_TYPE_CUBE
4564		vec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );
4565	#elif defined( ENVMAP_TYPE_CUBE_UV )
4566		vec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );
4567	#else
4568		vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );
4569	#endif
4570	texColor.rgb *= backgroundIntensity;
4571	gl_FragColor = texColor;
4572	#include <tonemapping_fragment>
4573	#include <colorspace_fragment>
4574}`,yse=`varying vec3 vWorldDirection;
4575#include <common>
4576void main() {
4577	vWorldDirection = transformDirection( position, modelMatrix );
4578	#include <begin_vertex>
4579	#include <project_vertex>
4580	gl_Position.z = gl_Position.w;
4581}`,Ese=`uniform samplerCube tCube;
4582uniform float tFlip;
4583uniform float opacity;
4584varying vec3 vWorldDirection;
4585void main() {
4586	vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );
4587	gl_FragColor = texColor;
4588	gl_FragColor.a *= opacity;
4589	#include <tonemapping_fragment>
4590	#include <colorspace_fragment>
4591}`,xse=`#include <common>
4592#include <batching_pars_vertex>
4593#include <uv_pars_vertex>
4594#include <displacementmap_pars_vertex>
4595#include <morphtarget_pars_vertex>
4596#include <skinning_pars_vertex>
4597#include <logdepthbuf_pars_vertex>
4598#include <clipping_planes_pars_vertex>
4599varying vec2 vHighPrecisionZW;
4600void main() {
4601	#include <uv_vertex>
4602	#include <batching_vertex>
4603	#include <skinbase_vertex>
4604	#include <morphinstance_vertex>
4605	#ifdef USE_DISPLACEMENTMAP
4606		#include <beginnormal_vertex>
4607		#include <morphnormal_vertex>
4608		#include <skinnormal_vertex>
4609	#endif
4610	#include <begin_vertex>
4611	#include <morphtarget_vertex>
4612	#include <skinning_vertex>
4613	#include <displacementmap_vertex>
4614	#include <project_vertex>
4615	#include <logdepthbuf_vertex>
4616	#include <clipping_planes_vertex>
4617	vHighPrecisionZW = gl_Position.zw;
4618}`,Ase=`#if DEPTH_PACKING == 3200
4619	uniform float opacity;
4620#endif
4621#include <common>
4622#include <packing>
4623#include <uv_pars_fragment>
4624#include <map_pars_fragment>
4625#include <alphamap_pars_fragment>
4626#include <alphatest_pars_fragment>
4627#include <alphahash_pars_fragment>
4628#include <logdepthbuf_pars_fragment>
4629#include <clipping_planes_pars_fragment>
4630varying vec2 vHighPrecisionZW;
4631void main() {
4632	vec4 diffuseColor = vec4( 1.0 );
4633	#include <clipping_planes_fragment>
4634	#if DEPTH_PACKING == 3200
4635		diffuseColor.a = opacity;
4636	#endif
4637	#include <map_fragment>
4638	#include <alphamap_fragment>
4639	#include <alphatest_fragment>
4640	#include <alphahash_fragment>
4641	#include <logdepthbuf_fragment>
4642	float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;
4643	#if DEPTH_PACKING == 3200
4644		gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );
4645	#elif DEPTH_PACKING == 3201
4646		gl_FragColor = packDepthToRGBA( fragCoordZ );
4647	#endif
4648}`,Sse=`#define DISTANCE
4649varying vec3 vWorldPosition;
4650#include <common>
4651#include <batching_pars_vertex>
4652#include <uv_pars_vertex>
4653#include <displacementmap_pars_vertex>
4654#include <morphtarget_pars_vertex>
4655#include <skinning_pars_vertex>
4656#include <clipping_planes_pars_vertex>
4657void main() {
4658	#include <uv_vertex>
4659	#include <batching_vertex>
4660	#include <skinbase_vertex>
4661	#include <morphinstance_vertex>
4662	#ifdef USE_DISPLACEMENTMAP
4663		#include <beginnormal_vertex>
4664		#include <morphnormal_vertex>
4665		#include <skinnormal_vertex>
4666	#endif
4667	#include <begin_vertex>
4668	#include <morphtarget_vertex>
4669	#include <skinning_vertex>
4670	#include <displacementmap_vertex>
4671	#include <project_vertex>
4672	#include <worldpos_vertex>
4673	#include <clipping_planes_vertex>
4674	vWorldPosition = worldPosition.xyz;
4675}`,Tse=`#define DISTANCE
4676uniform vec3 referencePosition;
4677uniform float nearDistance;
4678uniform float farDistance;
4679varying vec3 vWorldPosition;
4680#include <common>
4681#include <packing>
4682#include <uv_pars_fragment>
4683#include <map_pars_fragment>
4684#include <alphamap_pars_fragment>
4685#include <alphatest_pars_fragment>
4686#include <alphahash_pars_fragment>
4687#include <clipping_planes_pars_fragment>
4688void main () {
4689	vec4 diffuseColor = vec4( 1.0 );
4690	#include <clipping_planes_fragment>
4691	#include <map_fragment>
4692	#include <alphamap_fragment>
4693	#include <alphatest_fragment>
4694	#include <alphahash_fragment>
4695	float dist = length( vWorldPosition - referencePosition );
4696	dist = ( dist - nearDistance ) / ( farDistance - nearDistance );
4697	dist = saturate( dist );
4698	gl_FragColor = packDepthToRGBA( dist );
4699}`,wse=`varying vec3 vWorldDirection;
4700#include <common>
4701void main() {
4702	vWorldDirection = transformDirection( position, modelMatrix );
4703	#include <begin_vertex>
4704	#include <project_vertex>
4705}`,Mse=`uniform sampler2D tEquirect;
4706varying vec3 vWorldDirection;
4707#include <common>
4708void main() {
4709	vec3 direction = normalize( vWorldDirection );
4710	vec2 sampleUV = equirectUv( direction );
4711	gl_FragColor = texture2D( tEquirect, sampleUV );
4712	#include <tonemapping_fragment>
4713	#include <colorspace_fragment>
4714}`,Cse=`uniform float scale;
4715attribute float lineDistance;
4716varying float vLineDistance;
4717#include <common>
4718#include <uv_pars_vertex>
4719#include <color_pars_vertex>
4720#include <fog_pars_vertex>
4721#include <morphtarget_pars_vertex>
4722#include <logdepthbuf_pars_vertex>
4723#include <clipping_planes_pars_vertex>
4724void main() {
4725	vLineDistance = scale * lineDistance;
4726	#include <uv_vertex>
4727	#include <color_vertex>
4728	#include <morphinstance_vertex>
4729	#include <morphcolor_vertex>
4730	#include <begin_vertex>
4731	#include <morphtarget_vertex>
4732	#include <project_vertex>
4733	#include <logdepthbuf_vertex>
4734	#include <clipping_planes_vertex>
4735	#include <fog_vertex>
4736}`,Dse=`uniform vec3 diffuse;
4737uniform float opacity;
4738uniform float dashSize;
4739uniform float totalSize;
4740varying float vLineDistance;
4741#include <common>
4742#include <color_pars_fragment>
4743#include <uv_pars_fragment>
4744#include <map_pars_fragment>
4745#include <fog_pars_fragment>
4746#include <logdepthbuf_pars_fragment>
4747#include <clipping_planes_pars_fragment>
4748void main() {
4749	vec4 diffuseColor = vec4( diffuse, opacity );
4750	#include <clipping_planes_fragment>
4751	if ( mod( vLineDistance, totalSize ) > dashSize ) {
4752		discard;
4753	}
4754	vec3 outgoingLight = vec3( 0.0 );
4755	#include <logdepthbuf_fragment>
4756	#include <map_fragment>
4757	#include <color_fragment>
4758	outgoingLight = diffuseColor.rgb;
4759	#include <opaque_fragment>
4760	#include <tonemapping_fragment>
4761	#include <colorspace_fragment>
4762	#include <fog_fragment>
4763	#include <premultiplied_alpha_fragment>
4764}`,Lse=`#include <common>
4765#include <batching_pars_vertex>
4766#include <uv_pars_vertex>
4767#include <envmap_pars_vertex>
4768#include <color_pars_vertex>
4769#include <fog_pars_vertex>
4770#include <morphtarget_pars_vertex>
4771#include <skinning_pars_vertex>
4772#include <logdepthbuf_pars_vertex>
4773#include <clipping_planes_pars_vertex>
4774void main() {
4775	#include <uv_vertex>
4776	#include <color_vertex>
4777	#include <morphinstance_vertex>
4778	#include <morphcolor_vertex>
4779	#include <batching_vertex>
4780	#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )
4781		#include <beginnormal_vertex>
4782		#include <morphnormal_vertex>
4783		#include <skinbase_vertex>
4784		#include <skinnormal_vertex>
4785		#include <defaultnormal_vertex>
4786	#endif
4787	#include <begin_vertex>
4788	#include <morphtarget_vertex>
4789	#include <skinning_vertex>
4790	#include <project_vertex>
4791	#include <logdepthbuf_vertex>
4792	#include <clipping_planes_vertex>
4793	#include <worldpos_vertex>
4794	#include <envmap_vertex>
4795	#include <fog_vertex>
4796}`,Rse=`uniform vec3 diffuse;
4797uniform float opacity;
4798#ifndef FLAT_SHADED
4799	varying vec3 vNormal;
4800#endif
4801#include <common>
4802#include <dithering_pars_fragment>
4803#include <color_pars_fragment>
4804#include <uv_pars_fragment>
4805#include <map_pars_fragment>
4806#include <alphamap_pars_fragment>
4807#include <alphatest_pars_fragment>
4808#include <alphahash_pars_fragment>
4809#include <aomap_pars_fragment>
4810#include <lightmap_pars_fragment>
4811#include <envmap_common_pars_fragment>
4812#include <envmap_pars_fragment>
4813#include <fog_pars_fragment>
4814#include <specularmap_pars_fragment>
4815#include <logdepthbuf_pars_fragment>
4816#include <clipping_planes_pars_fragment>
4817void main() {
4818	vec4 diffuseColor = vec4( diffuse, opacity );
4819	#include <clipping_planes_fragment>
4820	#include <logdepthbuf_fragment>
4821	#include <map_fragment>
4822	#include <color_fragment>
4823	#include <alphamap_fragment>
4824	#include <alphatest_fragment>
4825	#include <alphahash_fragment>
4826	#include <specularmap_fragment>
4827	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
4828	#ifdef USE_LIGHTMAP
4829		vec4 lightMapTexel = texture2D( lightMap, vLightMapUv );
4830		reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;
4831	#else
4832		reflectedLight.indirectDiffuse += vec3( 1.0 );
4833	#endif
4834	#include <aomap_fragment>
4835	reflectedLight.indirectDiffuse *= diffuseColor.rgb;
4836	vec3 outgoingLight = reflectedLight.indirectDiffuse;
4837	#include <envmap_fragment>
4838	#include <opaque_fragment>
4839	#include <tonemapping_fragment>
4840	#include <colorspace_fragment>
4841	#include <fog_fragment>
4842	#include <premultiplied_alpha_fragment>
4843	#include <dithering_fragment>
4844}`,Ise=`#define LAMBERT
4845varying vec3 vViewPosition;
4846#include <common>
4847#include <batching_pars_vertex>
4848#include <uv_pars_vertex>
4849#include <displacementmap_pars_vertex>
4850#include <envmap_pars_vertex>
4851#include <color_pars_vertex>
4852#include <fog_pars_vertex>
4853#include <normal_pars_vertex>
4854#include <morphtarget_pars_vertex>
4855#include <skinning_pars_vertex>
4856#include <shadowmap_pars_vertex>
4857#include <logdepthbuf_pars_vertex>
4858#include <clipping_planes_pars_vertex>
4859void main() {
4860	#include <uv_vertex>
4861	#include <color_vertex>
4862	#include <morphinstance_vertex>
4863	#include <morphcolor_vertex>
4864	#include <batching_vertex>
4865	#include <beginnormal_vertex>
4866	#include <morphnormal_vertex>
4867	#include <skinbase_vertex>
4868	#include <skinnormal_vertex>
4869	#include <defaultnormal_vertex>
4870	#include <normal_vertex>
4871	#include <begin_vertex>
4872	#include <morphtarget_vertex>
4873	#include <skinning_vertex>
4874	#include <displacementmap_vertex>
4875	#include <project_vertex>
4876	#include <logdepthbuf_vertex>
4877	#include <clipping_planes_vertex>
4878	vViewPosition = - mvPosition.xyz;
4879	#include <worldpos_vertex>
4880	#include <envmap_vertex>
4881	#include <shadowmap_vertex>
4882	#include <fog_vertex>
4883}`,Pse=`#define LAMBERT
4884uniform vec3 diffuse;
4885uniform vec3 emissive;
4886uniform float opacity;
4887#include <common>
4888#include <packing>
4889#include <dithering_pars_fragment>
4890#include <color_pars_fragment>
4891#include <uv_pars_fragment>
4892#include <map_pars_fragment>
4893#include <alphamap_pars_fragment>
4894#include <alphatest_pars_fragment>
4895#include <alphahash_pars_fragment>
4896#include <aomap_pars_fragment>
4897#include <lightmap_pars_fragment>
4898#include <emissivemap_pars_fragment>
4899#include <envmap_common_pars_fragment>
4900#include <envmap_pars_fragment>
4901#include <fog_pars_fragment>
4902#include <bsdfs>
4903#include <lights_pars_begin>
4904#include <normal_pars_fragment>
4905#include <lights_lambert_pars_fragment>
4906#include <shadowmap_pars_fragment>
4907#include <bumpmap_pars_fragment>
4908#include <normalmap_pars_fragment>
4909#include <specularmap_pars_fragment>
4910#include <logdepthbuf_pars_fragment>
4911#include <clipping_planes_pars_fragment>
4912void main() {
4913	vec4 diffuseColor = vec4( diffuse, opacity );
4914	#include <clipping_planes_fragment>
4915	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
4916	vec3 totalEmissiveRadiance = emissive;
4917	#include <logdepthbuf_fragment>
4918	#include <map_fragment>
4919	#include <color_fragment>
4920	#include <alphamap_fragment>
4921	#include <alphatest_fragment>
4922	#include <alphahash_fragment>
4923	#include <specularmap_fragment>
4924	#include <normal_fragment_begin>
4925	#include <normal_fragment_maps>
4926	#include <emissivemap_fragment>
4927	#include <lights_lambert_fragment>
4928	#include <lights_fragment_begin>
4929	#include <lights_fragment_maps>
4930	#include <lights_fragment_end>
4931	#include <aomap_fragment>
4932	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
4933	#include <envmap_fragment>
4934	#include <opaque_fragment>
4935	#include <tonemapping_fragment>
4936	#include <colorspace_fragment>
4937	#include <fog_fragment>
4938	#include <premultiplied_alpha_fragment>
4939	#include <dithering_fragment>
4940}`,kse=`#define MATCAP
4941varying vec3 vViewPosition;
4942#include <common>
4943#include <batching_pars_vertex>
4944#include <uv_pars_vertex>
4945#include <color_pars_vertex>
4946#include <displacementmap_pars_vertex>
4947#include <fog_pars_vertex>
4948#include <normal_pars_vertex>
4949#include <morphtarget_pars_vertex>
4950#include <skinning_pars_vertex>
4951#include <logdepthbuf_pars_vertex>
4952#include <clipping_planes_pars_vertex>
4953void main() {
4954	#include <uv_vertex>
4955	#include <color_vertex>
4956	#include <morphinstance_vertex>
4957	#include <morphcolor_vertex>
4958	#include <batching_vertex>
4959	#include <beginnormal_vertex>
4960	#include <morphnormal_vertex>
4961	#include <skinbase_vertex>
4962	#include <skinnormal_vertex>
4963	#include <defaultnormal_vertex>
4964	#include <normal_vertex>
4965	#include <begin_vertex>
4966	#include <morphtarget_vertex>
4967	#include <skinning_vertex>
4968	#include <displacementmap_vertex>
4969	#include <project_vertex>
4970	#include <logdepthbuf_vertex>
4971	#include <clipping_planes_vertex>
4972	#include <fog_vertex>
4973	vViewPosition = - mvPosition.xyz;
4974}`,Ose=`#define MATCAP
4975uniform vec3 diffuse;
4976uniform float opacity;
4977uniform sampler2D matcap;
4978varying vec3 vViewPosition;
4979#include <common>
4980#include <dithering_pars_fragment>
4981#include <color_pars_fragment>
4982#include <uv_pars_fragment>
4983#include <map_pars_fragment>
4984#include <alphamap_pars_fragment>
4985#include <alphatest_pars_fragment>
4986#include <alphahash_pars_fragment>
4987#include <fog_pars_fragment>
4988#include <normal_pars_fragment>
4989#include <bumpmap_pars_fragment>
4990#include <normalmap_pars_fragment>
4991#include <logdepthbuf_pars_fragment>
4992#include <clipping_planes_pars_fragment>
4993void main() {
4994	vec4 diffuseColor = vec4( diffuse, opacity );
4995	#include <clipping_planes_fragment>
4996	#include <logdepthbuf_fragment>
4997	#include <map_fragment>
4998	#include <color_fragm
4998ent>
4999	#include <alphamap_fragment>
5000	#include <alphatest_fragment>
5001	#include <alphahash_fragment>
5002	#include <normal_fragment_begin>
5003	#include <normal_fragment_maps>
5004	vec3 viewDir = normalize( vViewPosition );
5005	vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );
5006	vec3 y = cross( viewDir, x );
5007	vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;
5008	#ifdef USE_MATCAP
5009		vec4 matcapColor = texture2D( matcap, uv );
5010	#else
5011		vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );
5012	#endif
5013	vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;
5014	#include <opaque_fragment>
5015	#include <tonemapping_fragment>
5016	#include <colorspace_fragment>
5017	#include <fog_fragment>
5018	#include <premultiplied_alpha_fragment>
5019	#include <dithering_fragment>
5020}`,Nse=`#define NORMAL
5021#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
5022	varying vec3 vViewPosition;
5023#endif
5024#include <common>
5025#include <batching_pars_vertex>
5026#include <uv_pars_vertex>
5027#include <displacementmap_pars_vertex>
5028#include <normal_pars_vertex>
5029#include <morphtarget_pars_vertex>
5030#include <skinning_pars_vertex>
5031#include <logdepthbuf_pars_vertex>
5032#include <clipping_planes_pars_vertex>
5033void main() {
5034	#include <uv_vertex>
5035	#include <batching_vertex>
5036	#include <beginnormal_vertex>
5037	#include <morphinstance_vertex>
5038	#include <morphnormal_vertex>
5039	#include <skinbase_vertex>
5040	#include <skinnormal_vertex>
5041	#include <defaultnormal_vertex>
5042	#include <normal_vertex>
5043	#include <begin_vertex>
5044	#include <morphtarget_vertex>
5045	#include <skinning_vertex>
5046	#include <displacementmap_vertex>
5047	#include <project_vertex>
5048	#include <logdepthbuf_vertex>
5049	#include <clipping_planes_vertex>
5050#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
5051	vViewPosition = - mvPosition.xyz;
5052#endif
5053}`,Use=`#define NORMAL
5054uniform float opacity;
5055#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )
5056	varying vec3 vViewPosition;
5057#endif
5058#include <packing>
5059#include <uv_pars_fragment>
5060#include <normal_pars_fragment>
5061#include <bumpmap_pars_fragment>
5062#include <normalmap_pars_fragment>
5063#include <logdepthbuf_pars_fragment>
5064#include <clipping_planes_pars_fragment>
5065void main() {
5066	vec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );
5067	#include <clipping_planes_fragment>
5068	#include <logdepthbuf_fragment>
5069	#include <normal_fragment_begin>
5070	#include <normal_fragment_maps>
5071	gl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );
5072	#ifdef OPAQUE
5073		gl_FragColor.a = 1.0;
5074	#endif
5075}`,Fse=`#define PHONG
5076varying vec3 vViewPosition;
5077#include <common>
5078#include <batching_pars_vertex>
5079#include <uv_pars_vertex>
5080#include <displacementmap_pars_vertex>
5081#include <envmap_pars_vertex>
5082#include <color_pars_vertex>
5083#include <fog_pars_vertex>
5084#include <normal_pars_vertex>
5085#include <morphtarget_pars_vertex>
5086#include <skinning_pars_vertex>
5087#include <shadowmap_pars_vertex>
5088#include <logdepthbuf_pars_vertex>
5089#include <clipping_planes_pars_vertex>
5090void main() {
5091	#include <uv_vertex>
5092	#include <color_vertex>
5093	#include <morphcolor_vertex>
5094	#include <batching_vertex>
5095	#include <beginnormal_vertex>
5096	#include <morphinstance_vertex>
5097	#include <morphnormal_vertex>
5098	#include <skinbase_vertex>
5099	#include <skinnormal_vertex>
5100	#include <defaultnormal_vertex>
5101	#include <normal_vertex>
5102	#include <begin_vertex>
5103	#include <morphtarget_vertex>
5104	#include <skinning_vertex>
5105	#include <displacementmap_vertex>
5106	#include <project_vertex>
5107	#include <logdepthbuf_vertex>
5108	#include <clipping_planes_vertex>
5109	vViewPosition = - mvPosition.xyz;
5110	#include <worldpos_vertex>
5111	#include <envmap_vertex>
5112	#include <shadowmap_vertex>
5113	#include <fog_vertex>
5114}`,Bse=`#define PHONG
5115uniform vec3 diffuse;
5116uniform vec3 emissive;
5117uniform vec3 specular;
5118uniform float shininess;
5119uniform float opacity;
5120#include <common>
5121#include <packing>
5122#include <dithering_pars_fragment>
5123#include <color_pars_fragment>
5124#include <uv_pars_fragment>
5125#include <map_pars_fragment>
5126#include <alphamap_pars_fragment>
5127#include <alphatest_pars_fragment>
5128#include <alphahash_pars_fragment>
5129#include <aomap_pars_fragment>
5130#include <lightmap_pars_fragment>
5131#include <emissivemap_pars_fragment>
5132#include <envmap_common_pars_fragment>
5133#include <envmap_pars_fragment>
5134#include <fog_pars_fragment>
5135#include <bsdfs>
5136#include <lights_pars_begin>
5137#include <normal_pars_fragment>
5138#include <lights_phong_pars_fragment>
5139#include <shadowmap_pars_fragment>
5140#include <bumpmap_pars_fragment>
5141#include <normalmap_pars_fragment>
5142#include <specularmap_pars_fragment>
5143#include <logdepthbuf_pars_fragment>
5144#include <clipping_planes_pars_fragment>
5145void main() {
5146	vec4 diffuseColor = vec4( diffuse, opacity );
5147	#include <clipping_planes_fragment>
5148	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
5149	vec3 totalEmissiveRadiance = emissive;
5150	#include <logdepthbuf_fragment>
5151	#include <map_fragment>
5152	#include <color_fragment>
5153	#include <alphamap_fragment>
5154	#include <alphatest_fragment>
5155	#include <alphahash_fragment>
5156	#include <specularmap_fragment>
5157	#include <normal_fragment_begin>
5158	#include <normal_fragment_maps>
5159	#include <emissivemap_fragment>
5160	#include <lights_phong_fragment>
5161	#include <lights_fragment_begin>
5162	#include <lights_fragment_maps>
5163	#include <lights_fragment_end>
5164	#include <aomap_fragment>
5165	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;
5166	#include <envmap_fragment>
5167	#include <opaque_fragment>
5168	#include <tonemapping_fragment>
5169	#include <colorspace_fragment>
5170	#include <fog_fragment>
5171	#include <premultiplied_alpha_fragment>
5172	#include <dithering_fragment>
5173}`,Vse=`#define STANDARD
5174varying vec3 vViewPosition;
5175#ifdef USE_TRANSMISSION
5176	varying vec3 vWorldPosition;
5177#endif
5178#include <common>
5179#include <batching_pars_vertex>
5180#include <uv_pars_vertex>
5181#include <displacementmap_pars_vertex>
5182#include <color_pars_vertex>
5183#include <fog_pars_vertex>
5184#include <normal_pars_vertex>
5185#include <morphtarget_pars_vertex>
5186#include <skinning_pars_vertex>
5187#include <shadowmap_pars_vertex>
5188#include <logdepthbuf_pars_vertex>
5189#include <clipping_planes_pars_vertex>
5190void main() {
5191	#include <uv_vertex>
5192	#include <color_vertex>
5193	#include <morphinstance_vertex>
5194	#include <morphcolor_vertex>
5195	#include <batching_vertex>
5196	#include <beginnormal_vertex>
5197	#include <morphnormal_vertex>
5198	#include <skinbase_vertex>
5199	#include <skinnormal_vertex>
5200	#include <defaultnormal_vertex>
5201	#include <normal_vertex>
5202	#include <begin_vertex>
5203	#include <morphtarget_vertex>
5204	#include <skinning_vertex>
5205	#include <displacementmap_vertex>
5206	#include <project_vertex>
5207	#include <logdepthbuf_vertex>
5208	#include <clipping_planes_vertex>
5209	vViewPosition = - mvPosition.xyz;
5210	#include <worldpos_vertex>
5211	#include <shadowmap_vertex>
5212	#include <fog_vertex>
5213#ifdef USE_TRANSMISSION
5214	vWorldPosition = worldPosition.xyz;
5215#endif
5216}`,Hse=`#define STANDARD
5217#ifdef PHYSICAL
5218	#define IOR
5219	#define USE_SPECULAR
5220#endif
5221uniform vec3 diffuse;
5222uniform vec3 emissive;
5223uniform float roughness;
5224uniform float metalness;
5225uniform float opacity;
5226#ifdef IOR
5227	uniform float ior;
5228#endif
5229#ifdef USE_SPECULAR
5230	uniform float specularIntensity;
5231	uniform vec3 specularColor;
5232	#ifdef USE_SPECULAR_COLORMAP
5233		uniform sampler2D specularColorMap;
5234	#endif
5235	#ifdef USE_SPECULAR_INTENSITYMAP
5236		uniform sampler2D specularIntensityMap;
5237	#endif
5238#endif
5239#ifdef USE_CLEARCOAT
5240	uniform float clearcoat;
5241	uniform float clearcoatRoughness;
5242#endif
5243#ifdef USE_IRIDESCENCE
5244	uniform float iridescence;
5245	uniform float iridescenceIOR;
5246	uniform float iridescenceThicknessMinimum;
5247	uniform float iridescenceThicknessMaximum;
5248#endif
5249#ifdef USE_SHEEN
5250	uniform vec3 sheenColor;
5251	uniform float sheenRoughness;
5252	#ifdef USE_SHEEN_COLORMAP
5253		uniform sampler2D sheenColorMap;
5254	#endif
5255	#ifdef USE_SHEEN_ROUGHNESSMAP
5256		uniform sampler2D sheenRoughnessMap;
5257	#endif
5258#endif
5259#ifdef USE_ANISOTROPY
5260	uniform vec2 anisotropyVector;
5261	#ifdef USE_ANISOTROPYMAP
5262		uniform sampler2D anisotropyMap;
5263	#endif
5264#endif
5265varying vec3 vViewPosition;
5266#include <common>
5267#include <packing>
5268#include <dithering_pars_fragment>
5269#include <color_pars_fragment>
5270#include <uv_pars_fragment>
5271#include <map_pars_fragment>
5272#include <alphamap_pars_fragment>
5273#include <alphatest_pars_fragment>
5274#include <alphahash_pars_fragment>
5275#include <aomap_pars_fragment>
5276#include <lightmap_pars_fragment>
5277#include <emissivemap_pars_fragment>
5278#include <iridescence_fragment>
5279#include <cube_uv_reflection_fragment>
5280#include <envmap_common_pars_fragment>
5281#include <envmap_physical_pars_fragment>
5282#include <fog_pars_fragment>
5283#include <lights_pars_begin>
5284#include <normal_pars_fragment>
5285#include <lights_physical_pars_fragment>
5286#include <transmission_pars_fragment>
5287#include <shadowmap_pars_fragment>
5288#include <bumpmap_pars_fragment>
5289#include <normalmap_pars_fragment>
5290#include <clearcoat_pars_fragment>
5291#include <iridescence_pars_fragment>
5292#include <roughnessmap_pars_fragment>
5293#include <metalnessmap_pars_fragment>
5294#include <logdepthbuf_pars_fragment>
5295#include <clipping_planes_pars_fragment>
5296void main() {
5297	vec4 diffuseColor = vec4( diffuse, opacity );
5298	#include <clipping_planes_fragment>
5299	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
5300	vec3 totalEmissiveRadiance = emissive;
5301	#include <logdepthbuf_fragment>
5302	#include <map_fragment>
5303	#include <color_fragment>
5304	#include <alphamap_fragment>
5305	#include <alphatest_fragment>
5306	#include <alphahash_fragment>
5307	#include <roughnessmap_fragment>
5308	#include <metalnessmap_fragment>
5309	#include <normal_fragment_begin>
5310	#include <normal_fragment_maps>
5311	#include <clearcoat_normal_fragment_begin>
5312	#include <clearcoat_normal_fragment_maps>
5313	#include <emissivemap_fragment>
5314	#include <lights_physical_fragment>
5315	#include <lights_fragment_begin>
5316	#include <lights_fragment_maps>
5317	#include <lights_fragment_end>
5318	#include <aomap_fragment>
5319	vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;
5320	vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;
5321	#include <transmission_fragment>
5322	vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
5323	#ifdef USE_SHEEN
5324		float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );
5325		outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;
5326	#endif
5327	#ifdef USE_CLEARCOAT
5328		float dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );
5329		vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );
5330		outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;
5331	#endif
5332	#include <opaque_fragment>
5333	#include <tonemapping_fragment>
5334	#include <colorspace_fragment>
5335	#include <fog_fragment>
5336	#include <premultiplied_alpha_fragment>
5337	#include <dithering_fragment>
5338}`,zse=`#define TOON
5339varying vec3 vViewPosition;
5340#include <common>
5341#include <batching_pars_vertex>
5342#include <uv_pars_vertex>
5343#include <displacementmap_pars_vertex>
5344#include <color_pars_vertex>
5345#include <fog_pars_vertex>
5346#include <normal_pars_vertex>
5347#include <morphtarget_pars_vertex>
5348#include <skinning_pars_vertex>
5349#include <shadowmap_pars_vertex>
5350#include <logdepthbuf_pars_vertex>
5351#include <clipping_planes_pars_vertex>
5352void main() {
5353	#include <uv_vertex>
5354	#include <color_vertex>
5355	#include <morphinstance_vertex>
5356	#include <morphcolor_vertex>
5357	#include <batching_vertex>
5358	#include <beginnormal_vertex>
5359	#include <morphnormal_vertex>
5360	#include <skinbase_vertex>
5361	#include <skinnormal_vertex>
5362	#include <defaultnormal_vertex>
5363	#include <normal_vertex>
5364	#include <begin_vertex>
5365	#include <morphtarget_vertex>
5366	#include <skinning_vertex>
5367	#include <displacementmap_vertex>
5368	#include <project_vertex>
5369	#include <logdepthbuf_vertex>
5370	#include <clipping_planes_vertex>
5371	vViewPosition = - mvPosition.xyz;
5372	#include <worldpos_vertex>
5373	#include <shadowmap_vertex>
5374	#include <fog_vertex>
5375}`,$se=`#define TOON
5376uniform vec3 diffuse;
5377uniform vec3 emissive;
5378uniform float opacity;
5379#include <common>
5380#include <packing>
5381#include <dithering_pars_fragment>
5382#include <color_pars_fragment>
5383#include <uv_pars_fragment>
5384#include <map_pars_fragment>
5385#include <alphamap_pars_fragment>
5386#include <alphatest_pars_fragment>
5387#include <alphahash_pars_fragment>
5388#include <aomap_pars_fragment>
5389#include <lightmap_pars_fragment>
5390#include <emissivemap_pars_fragment>
5391#include <gradientmap_pars_fragment>
5392#include <fog_pars_fragment>
5393#include <bsdfs>
5394#include <lights_pars_begin>
5395#include <normal_pars_fragment>
5396#include <lights_toon_pars_fragment>
5397#include <shadowmap_pars_fragment>
5398#include <bumpmap_pars_fragment>
5399#include <normalmap_pars_fragment>
5400#include <logdepthbuf_pars_fragment>
5401#include <clipping_planes_pars_fragment>
5402void main() {
5403	vec4 diffuseColor = vec4( diffuse, opacity );
5404	#include <clipping_planes_fragment>
5405	ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );
5406	vec3 totalEmissiveRadiance = emissive;
5407	#include <logdepthbuf_fragment>
5408	#include <map_fragment>
5409	#include <color_fragment>
5410	#include <alphamap_fragment>
5411	#include <alphatest_fragment>
5412	#include <alphahash_fragment>
5413	#include <normal_fragment_begin>
5414	#include <normal_fragment_maps>
5415	#include <emissivemap_fragment>
5416	#include <lights_toon_fragment>
5417	#include <lights_fragment_begin>
5418	#include <lights_fragment_maps>
5419	#include <lights_fragment_end>
5420	#include <aomap_fragment>
5421	vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;
5422	#include <opaque_fragment>
5423	#include <tonemapping_fragment>
5424	#include <colorspace_fragment>
5425	#include <fog_fragment>
5426	#include <premultiplied_alpha_fragment>
5427	#include <dithering_fragment>
5428}`,Wse=`uniform float size;
5429uniform float scale;
5430#include <common>
5431#include <color_pars_vertex>
5432#include <fog_pars_vertex>
5433#include <morphtarget_pars_vertex>
5434#include <logdepthbuf_pars_vertex>
5435#include <clipping_planes_pars_vertex>
5436#ifdef USE_POINTS_UV
5437	varying vec2 vUv;
5438	uniform mat3 uvTransform;
5439#endif
5440void main() {
5441	#ifdef USE_POINTS_UV
5442		vUv = ( uvTransform * vec3( uv, 1 ) ).xy;
5443	#endif
5444	#include <color_vertex>
5445	#include <morphinstance_vertex>
5446	#include <morphcolor_vertex>
5447	#include <begin_vertex>
5448	#include <morphtarget_vertex>
5449	#include <project_vertex>
5450	gl_PointSize = size;
5451	#ifdef USE_SIZEATTENUATION
5452		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
5453		if ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );
5454	#endif
5455	#include <logdepthbuf_vertex>
5456	#include <clipping_planes_vertex>
5457	#include <worldpos_vertex>
5458	#include <fog_vertex>
5459}`,Gse=`uniform vec3 diffuse;
5460uniform float opacity;
5461#include <common>
5462#include <color_pars_fragment>
5463#include <map_particle_pars_fragment>
5464#include <alphatest_pars_fragment>
5465#include <alphahash_pars_fragment>
5466#include <fog_pars_fragment>
5467#include <logdepthbuf_pars_fragment>
5468#include <clipping_planes_pars_fragment>
5469void main() {
5470	vec4 diffuseColor = vec4( diffuse, opacity );
5471	#include <clipping_planes_fragment>
5472	vec3 outgoingLight = vec3( 0.0 );
5473	#include <logdepthbuf_fragment>
5474	#include <map_particle_fragment>
5475	#include <color_fragment>
5476	#include <alphatest_fragment>
5477	#include <alphahash_fragment>
5478	outgoingLight = diffuseColor.rgb;
5479	#include <opaque_fragment>
5480	#include <tonemapping_fragment>
5481	#include <colorspace_fragment>
5482	#include <fog_fragment>
5483	#include <premultiplied_alpha_fragment>
5484}`,qse=`#include <common>
5485#include <batching_pars_vertex>
5486#include <fog_pars_vertex>
5487#include <morphtarget_pars_vertex>
5488#include <skinning_pars_vertex>
5489#include <logdepthbuf_pars_vertex>
5490#include <shadowmap_pars_vertex>
5491void main() {
5492	#include <batching_vertex>
5493	#include <beginnormal_vertex>
5494	#include <morphinstance_vertex>
5495	#include <morphnormal_vertex>
5496	#include <skinbase_vertex>
5497	#include <skinnormal_vertex>
5498	#include <defaultnormal_vertex>
5499	#include <begin_vertex>
5500	#include <morphtarget_vertex>
5501	#include <skinning_vertex>
5502	#include <project_vertex>
5503	#include <logdepthbuf_vertex>
5504	#include <worldpos_vertex>
5505	#include <shadowmap_vertex>
5506	#include <fog_vertex>
5507}`,jse=`uniform vec3 color;
5508uniform float opacity;
5509#include <common>
5510#include <packing>
5511#include <fog_pars_fragment>
5512#include <bsdfs>
5513#include <lights_pars_begin>
5514#include <logdepthbuf_pars_fragment>
5515#include <shadowmap_pars_fragment>
5516#include <shadowmask_pars_fragment>
5517void main() {
5518	#include <logdepthbuf_fragment>
5519	gl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );
5520	#include <tonemapping_fragment>
5521	#include <colorspace_fragment>
5522	#include <fog_fragment>
5523}`,Xse=`uniform float rotation;
5524uniform vec2 center;
5525#include <common>
5526#include <uv_pars_vertex>
5527#include <fog_pars_vertex>
5528#include <logdepthbuf_pars_vertex>
5529#include <clipping_planes_pars_vertex>
5530void main() {
5531	#include <uv_vertex>
5532	vec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );
5533	vec2 scale;
5534	scale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );
5535	scale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );
5536	#ifndef USE_SIZEATTENUATION
5537		bool isPerspective = isPerspectiveMatrix( projectionMatrix );
5538		if ( isPerspective ) scale *= - mvPosition.z;
5539	#endif
5540	vec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;
5541	vec2 rotatedPosition;
5542	rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;
5543	rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;
5544	mvPosition.xy += rotatedPosition;
5545	gl_Position = projectionMatrix * mvPosition;
5546	#include <logdepthbuf_vertex>
5547	#include <clipping_planes_vertex>
5548	#include <fog_vertex>
5549}`,Yse=`uniform vec3 diffuse;
5550uniform float opacity;
5551#include <common>
5552#include <uv_pars_fragment>
5553#include <map_pars_fragment>
5554#include <alphamap_pars_fragment>
5555#include <alphatest_pars_fragment>
5556#include <alphahash_pars_fragment>
5557#include <fog_pars_fragment>
5558#include <logdepthbuf_pars_fragment>
5559#include <clipping_planes_pars_fragment>
5560void main() {
5561	vec4 diffuseColor = vec4( diffuse, opacity );
5562	#include <clipping_planes_fragment>
5563	vec3 outgoingLight = vec3( 0.0 );
5564	#include <logdepthbuf_fragment>
5565	#include <map_fragment>
5566	#include <alphamap_fragment>
5567	#include <alphatest_fragment>
5568	#include <alphahash_fragment>
5569	outgoingLight = diffuseColor.rgb;
5570	#include <opaque_fragment>
5571	#include <tonemapping_fragment>
5572	#include <colorspace_fragment>
5573	#include <fog_fragment>
5574}`,At={alphahash_fragment:gre,alphahash_pars_fragment:vre,alphamap_fragment:_re,alphamap_pars_fragment:bre,alphatest_fragment:yre,alphatest_pars_fragment:Ere,aomap_fragment:xre,aomap_pars_fragment:Are,batching_pars_vertex:Sre,batching_vertex:Tre,begin_vertex:wre,beginnormal_vertex:Mre,b
vendor: 7,228 bytes, line 5574
5574sdfs:Cre,iridescence_fragment:Dre,bumpmap_pars_fragment:Lre,clipping_planes_fragment:Rre,clipping_planes_pars_fragment:Ire,clipping_planes_pars_vertex:Pre,clipping_planes_vertex:kre,color_fragment:Ore,color_pars_fragment:Nre,color_pars_vertex:Ure,color_vertex:Fre,common:Bre,cube_uv_reflection_fragment:Vre,defaultnormal_vertex:Hre,displacementmap_pars_vertex:zre,displacementmap_vertex:$re,emissivemap_fragment:Wre,emissivemap_pars_fragment:Gre,colorspace_fragment:qre,colorspace_pars_fragment:jre,envmap_fragment:Xre,envmap_common_pars_fragment:Yre,envmap_pars_fragment:Kre,envmap_pars_vertex:Zre,envmap_physical_pars_fragment:lae,envmap_vertex:Jre,fog_vertex:Qre,fog_pars_vertex:eae,fog_fragment:tae,fog_pars_fragment:nae,gradientmap_pars_fragment:iae,lightmap_fragment:rae,lightmap_pars_fragment:aae,lights_lambert_fragment:sae,lights_lambert_pars_fragment:oae,lights_pars_begin:uae,lights_toon_fragment:cae,lights_toon_pars_fragment:dae,lights_phong_fragment:fae,lights_phong_pars_fragment:hae,lights_physical_fragment:pae,lights_physical_pars_fragment:mae,lights_fragment_begin:gae,lights_fragment_maps:vae,lights_fragment_end:_ae,logdepthbuf_fragment:bae,logdepthbuf_pars_fragment:yae,logdepthbuf_pars_vertex:Eae,logdepthbuf_vertex:xae,map_fragment:Aae,map_pars_fragment:Sae,map_particle_fragment:Tae,map_particle_pars_fragment:wae,metalnessmap_fragment:Mae,metalnessmap_pars_fragment:Cae,morphinstance_vertex:Dae,morphcolor_vertex:Lae,morphnormal_vertex:Rae,morphtarget_pars_vertex:Iae,morphtarget_vertex:Pae,normal_fragment_begin:kae,normal_fragment_maps:Oae,normal_pars_fragment:Nae,normal_pars_vertex:Uae,normal_vertex:Fae,normalmap_pars_fragment:Bae,clearcoat_normal_fragment_begin:Vae,clearcoat_normal_fragment_maps:Hae,clearcoat_pars_fragment:zae,iridescence_pars_fragment:$ae,opaque_fragment:Wae,packing:Gae,premultiplied_alpha_fragment:qae,project_vertex:jae,dithering_fragment:Xae,dithering_pars_fragment:Yae,roughnessmap_fragment:Kae,roughnessmap_pars_fragment:Zae,shadowmap_pars_fragment:Jae,shadowmap_pars_vertex:Qae,shadowmap_vertex:ese,shadowmask_pars_fragment:tse,skinbase_vertex:nse,skinning_pars_vertex:ise,skinning_vertex:rse,skinnormal_vertex:ase,specularmap_fragment:sse,specularmap_pars_fragment:ose,tonemapping_fragment:use,tonemapping_pars_fragment:lse,transmission_fragment:cse,transmission_pars_fragment:dse,uv_pars_fragment:fse,uv_pars_vertex:hse,uv_vertex:pse,worldpos_vertex:mse,background_vert:gse,background_frag:vse,backgroundCube_vert:_se,backgroundCube_frag:bse,cube_vert:yse,cube_frag:Ese,depth_vert:xse,depth_frag:Ase,distanceRGBA_vert:Sse,distanceRGBA_frag:Tse,equirect_vert:wse,equirect_frag:Mse,linedashed_vert:Cse,linedashed_frag:Dse,meshbasic_vert:Lse,meshbasic_frag:Rse,meshlambert_vert:Ise,meshlambert_frag:Pse,meshmatcap_vert:kse,meshmatcap_frag:Ose,meshnormal_vert:Nse,meshnormal_frag:Use,meshphong_vert:Fse,meshphong_frag:Bse,meshphysical_vert:Vse,meshphysical_frag:Hse,meshtoon_vert:zse,meshtoon_frag:$se,points_vert:Wse,points_frag:Gse,shadow_vert:qse,shadow_frag:jse,sprite_vert:Xse,sprite_frag:Yse},Ke={common:{diffuse:{value:new qt(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new St},alphaMap:{value:null},alphaMapTransform:{value:new St},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new St}},envmap:{envMap:{value:null},envMapRotation:{value:new St},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new St}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new St}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new St},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new St},normalScale:{value:new vt(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new St},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new St}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new St}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new St}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new qt(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new qt(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new St},alphaTest:{value:0},uvTransform:{value:new St}},sprite:{diffuse:{value:new qt(16777215)},opacity:{value:1},center:{value:new vt(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new St},alphaMap:{value:null},alphaMapTransform:{value:new St},alphaTest:{value:0}}},ua={basic:{uniforms:xi([Ke.common,Ke.specularmap,Ke.envmap,Ke.aomap,Ke.lightmap,Ke.fog]),vertexShader:At.meshbasic_vert,fragmentShader:At.meshbasic_frag},lambert:{uniforms:xi([Ke.common,Ke.specularmap,Ke.envmap,Ke.aomap,Ke.lightmap,Ke.emissivemap,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,Ke.fog,Ke.lights,{emissive:{value:new qt(0)}}]),vertexShader:At.meshlambert_vert,fragmentShader:At.meshlambert_frag},phong:{uniforms:xi([Ke.common,Ke.specularmap,Ke.envmap,Ke.aomap,Ke.lightmap,Ke.emissivemap,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,Ke.fog,Ke.lights,{emissive:{value:new qt(0)},specular:{value:new qt(1118481)},shininess:{value:30}}]),vertexShader:At.meshphong_vert,fragmentShader:At.meshphong_frag},standard:{uniforms:xi([Ke.common,Ke.envmap,Ke.aomap,Ke.lightmap,Ke.emissivemap,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,Ke.roughnessmap,Ke.metalnessmap,Ke.fog,Ke.lights,{emissive:{value:new qt(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:At.meshphysical_vert,fragmentShader:At.meshphysical_frag},toon:{uniforms:xi([Ke.common,Ke.aomap,Ke.lightmap,Ke.emissivemap,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,Ke.gradientmap,Ke.fog,Ke.lights,{emissive:{value:new qt(0)}}]),vertexShader:At.meshtoon_vert,fragmentShader:At.meshtoon_frag},matcap:{uniforms:xi([Ke.common,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,Ke.fog,{matc
vendor: 5,093 bytes, line 5574
5574ap:{value:null}}]),vertexShader:At.meshmatcap_vert,fragmentShader:At.meshmatcap_frag},points:{uniforms:xi([Ke.points,Ke.fog]),vertexShader:At.points_vert,fragmentShader:At.points_frag},dashed:{uniforms:xi([Ke.common,Ke.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:At.linedashed_vert,fragmentShader:At.linedashed_frag},depth:{uniforms:xi([Ke.common,Ke.displacementmap]),vertexShader:At.depth_vert,fragmentShader:At.depth_frag},normal:{uniforms:xi([Ke.common,Ke.bumpmap,Ke.normalmap,Ke.displacementmap,{opacity:{value:1}}]),vertexShader:At.meshnormal_vert,fragmentShader:At.meshnormal_frag},sprite:{uniforms:xi([Ke.sprite,Ke.fog]),vertexShader:At.sprite_vert,fragmentShader:At.sprite_frag},background:{uniforms:{uvTransform:{value:new St},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:At.background_vert,fragmentShader:At.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new St}},vertexShader:At.backgroundCube_vert,fragmentShader:At.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:At.cube_vert,fragmentShader:At.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:At.equirect_vert,fragmentShader:At.equirect_frag},distanceRGBA:{uniforms:xi([Ke.common,Ke.displacementmap,{referencePosition:{value:new ve},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:At.distanceRGBA_vert,fragmentShader:At.distanceRGBA_frag},shadow:{uniforms:xi([Ke.lights,Ke.fog,{color:{value:new qt(0)},opacity:{value:1}}]),vertexShader:At.shadow_vert,fragmentShader:At.shadow_frag}};ua.physical={uniforms:xi([ua.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new St},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new St},clearcoatNormalScale:{value:new vt(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new St},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new St},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new St},sheen:{value:0},sheenColor:{value:new qt(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new St},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new St},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new St},transmissionSamplerSize:{value:new vt},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new St},attenuationDistance:{value:0},attenuationColor:{value:new qt(0)},specularColor:{value:new qt(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new St},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new St},anisotropyVector:{value:new vt},anisotropyMap:{value:null},anisotropyMapTransform:{value:new St}}]),vertexShader:At.meshphysical_vert,fragmentShader:At.meshphysical_frag};const Yh={r:0,b:0,g:0},So=new is,Kse=new Rn;function Zse(t,e,n,i,r,a,s){const o=new qt(0);let u=a===!0?0:1,c,l,d=null,f=0,h=null;function g(m,p){let y=!1,_=p.isScene===!0?p.background:null;_&&_.isTexture&&(_=(p.backgroundBlurriness>0?n:e).get(_)),_===null?v(o,u):_&&_.isColor&&(v(_,1),y=!0);const b=t.xr.getEnvironmentBlendMode();b==="additive"?i.buffers.color.setClear(0,0,0,1,s):b==="alpha-blend"&&i.buffers.color.setClear(0,0,0,0,s),(t.autoClear||y)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),_&&(_.isCubeTexture||_.mapping===tg)?(l===void 0&&(l=new pr(new Cf(1,1,1),new rs({name:"BackgroundCubeMaterial",uniforms:Kl(ua.backgroundCube.uniforms),vertexShader:ua.backgroundCube.vertexShader,fragmentShader:ua.backgroundCube.fragmentShader,side:Hi,depthTest:!1,depthWrite:!1,fog:!1})),l.geometry.deleteAttribute("normal"),l.geometry.deleteAttribute("uv"),l.onBeforeRender=function(x,w,D){this.matrixWorld.copyPosition(D.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),So.copy(p.backgroundRotation),So.x*=-1,So.y*=-1,So.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(So.y*=-1,So.z*=-1),l.material.uniforms.envMap.value=_,l.material.uniforms.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,l.material.uniforms.backgroundBlurriness.value=p.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=p.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Kse.makeRotationFromEuler(So)),l.material.toneMapped=en.getTransfer(_.colorSpace)!==fn,(d!==_||f!==_.version||h!==t.toneMapping)&&(l.material.needsUpdate=!0,d=_,f=_.version,h=t.toneMapping),l.layers.enableAll(),m.unshift(l,l.geometry,l.material,0,0,null)):_&&_.isTexture&&(c===void 0&&(c=new pr(new sg(2,2),new rs({name:"Backgroun
5574dMaterial",uniforms:Kl(ua.background.uniforms),vertexShader:ua.background.vertexShader,fragmentShader:ua.background.fragmentShader,side:Ks,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=_,c.material.uniforms.backgroundIntensity.value=p.backgroundIntensity,c.material.toneMapped=en.getTransfer(_.colorSpace)!==fn,_.matrixAutoUpdate===!0&&_.updateMatrix(),c.material.uniforms.uvTransform.value.copy(_.matrix),(d!==_||f!==_.version||h!==t.toneMapping)&&(c.material.needsUpdate=!0,d=_,f=_.version,h=t.toneMapping),c.layers.enableAll(),m.unshift(c,c.geometry,c.material,0,0,null))}function v(m,p){m.getRGB(Yh,O4(t)),i.buffers.color.setClear(Yh.r,Yh.g,Yh.b,p,s)}return{getClearColor:function(){return o},setClearColor:function(m,p=1){o.set(m),u=p,v(o,u)},getClearAlpha:function(){return u},setClearAlpha:function(m){u=m,v(o,u)},render:g}}function Jse(t,e){const n=t.getParameter(t.MAX_VERTEX_ATTRIBS),i={},r=f(null);let a=r,s=!1;function o(S,B,V,z,Q){let Z=!1;const q=d(z,V,B);a!==q&&(a=q,c(a.object)),Z=h(S,z,V,Q),Z&&g(S,z,V,Q),Q!==null&&e.update(Q,t.ELEMENT_ARRAY_BUFFER),(Z||s)&&(s=!1,b(S,B,V,z),Q!==null&&t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e.get(Q).buffer))}function u(){return t.createVertexArray()}function c(S){return t.bindVertexArray(S)}function l(S){return t.deleteVertexArray(S)}function d(S,B,V){const z=V.wireframe===!0;let Q=i[S.id];Q===void 0&&(Q={},i[S.id]=Q);let Z=Q[B.id];Z===void 0&&(Z={},Q[B.id]=Z);let q=Z[z];return q===void 0&&(q=f(u()),Z[z]=q),q}function f(S){const B=[],V=[],z=[];for(let Q=0;Q<n;Q++)B[Q]=0,V[Q]=0,z[Q]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:B,enabledAttributes:V,attributeDivisors:z,object:S,attributes:{},index:null}}function h(S,B,V,z){const Q=a.attributes,Z=B.attributes;let q=0;const te=V.getAttributes();for(const $ in te)if(te[$].location>=0){const le=Q[$];let xe=Z[$];if(xe===void 0&&($==="instanceMatrix"&&S.instanceMatrix&&(xe=S.instanceMatrix),$==="instanceColor"&&S.instanceColor&&(xe=S.instanceColor)),le===void 0||le.attribute!==xe||xe&&le.data!==xe.data)return!0;q++}return a.attributesNum!==q||a.index!==z}function g(S,B,V,z){const Q={},Z=B.attributes;let q=0;const te=V.getAttributes();for(const $ in te)if(te[$].location>=0){let le=Z[$];le===void 0&&($==="instanceMatrix"&&S.instanceMatrix&&(le=S.instanceMatrix),$==="instanceColor"&&S.instanceColor&&(le=S.instanceColor));const xe={};xe.attribute=le,le&&le.data&&(xe.data=le.data),Q[$]=xe,q++}a.attributes=Q,a.attributesNum=q,a.index=z}function v(){const S=a.newAttributes;for(let B=0,V=S.length;B<V;B++)S[B]=0}function m(S){p(S,0)}function p(S,B){const V=a.newAttributes,z=a.enabledAttributes,Q=a.attributeDivisors;V[S]=1,z[S]===0&&(t.enableVertexAttribArray(S),z[S]=1),Q[S]!==B&&(t.vertexAttribDivisor(S,B),Q[S]=B)}function y(){const S=a.newAttributes,B=a.enabledAttributes;for(let V=0,z=B.length;V<z;V++)B[V]!==S[V]&&(t.disableVertexAttribArray(V),B[V]=0)}function _(S,B,V,z,Q,Z,q){q===!0?t.vertexAttribIPointer(S,B,V,Q,Z):t.vertexAttribPointer(S,B,V,z,Q,Z)}function b(S,B,V,z){v();const Q=z.attributes,Z=V.getAttributes(),q=B.defaultAttributeValues;for(const te in Z){const $=Z[te];if($.location>=0){let ee=Q[te];if(ee===void 0&&(te==="instanceMatrix"&&S.instanceMatrix&&(ee=S.instanceMatrix),te==="instanceColor"&&S.instanceColor&&(ee=S.instanceColor)),ee!==void 0){const le=ee.normalized,xe=ee.itemSize,J=e.get(ee);if(J===void 0)continue;const ye=J.buffer,H=J.type,ie=J.bytesPerElement,_e=H===t.INT||H===t.UNSIGNED_INT||ee.gpuType===E4;if(ee.isInterleavedBufferAttribute){const W=ee.data,be=W.stride,ge=ee.offset;if(W.isInstancedInterleavedBuffer){for(let De=0;De<$.locationSize;De++)p($.location+De,W.meshPerAttribute);S.isInstancedMesh!==!0&&z._maxInstanceCount===void 0&&(z._maxInstanceCount=W.meshPerAttribute*W.count)}else for(let De=0;De<$.locationSize;De++)m($.location+De);t.bindBuffer(t.ARRAY_BUFFER,ye);for(let De=0;De<$.locationSize;De++)_($.location+De,xe/$.locationSize,H,le,be*ie,(ge+xe/$.locationSize*De)*ie,_e)}else{if(ee.isInstancedBufferAttribute){for(let W=0;W<$.locationSize;W++)p($.location+W,ee.meshPerAttribute);S.isInstancedMesh!==!0&&z._maxInstanceCount===void 0&&(z._maxInstanceCount=ee.meshPerAttribute*ee.count)}else for(let W=0;W<$.locationSize;W++)m($.location+W);t.bindBuffer(t.ARRAY_BUFFER,ye);for(let W=0;W<$.locationSize;W++)_($.location+W,xe/$.locationSize,H,le,xe*ie,xe/$.locationSize*W*ie,_e)}}else if(q!==void 0){const le=q[te];
vendor: 14,928 bytes, lines 5574-5649
5574if(le!==void 0)switch(le.length){case 2:t.vertexAttrib2fv($.location,le);break;case 3:t.vertexAttrib3fv($.location,le);break;case 4:t.vertexAttrib4fv($.location,le);break;default:t.vertexAttrib1fv($.location,le)}}}}y()}function x(){O();for(const S in i){const B=i[S];for(const V in B){const z=B[V];for(const Q in z)l(z[Q].object),delete z[Q];delete B[V]}delete i[S]}}function w(S){if(i[S.id]===void 0)return;const B=i[S.id];for(const V in B){const z=B[V];for(const Q in z)l(z[Q].object),delete z[Q];delete B[V]}delete i[S.id]}function D(S){for(const B in i){const V=i[B];if(V[S.id]===void 0)continue;const z=V[S.id];for(const Q in z)l(z[Q].object),delete z[Q];delete V[S.id]}}function O(){M(),s=!0,a!==r&&(a=r,c(a.object))}function M(){r.geometry=null,r.program=null,r.wireframe=!1}return{setup:o,reset:O,resetDefaultState:M,dispose:x,releaseStatesOfGeometry:w,releaseStatesOfProgram:D,initAttributes:v,enableAttribute:m,disableUnusedAttributes:y}}function Qse(t,e,n){let i;function r(u){i=u}function a(u,c){t.drawArrays(i,u,c),n.update(c,i,1)}function s(u,c,l){l!==0&&(t.drawArraysInstanced(i,u,c,l),n.update(c,i,l))}function o(u,c,l){if(l===0)return;const d=e.get("WEBGL_multi_draw");if(d===null)for(let f=0;f<l;f++)this.render(u[f],c[f]);else{d.multiDrawArraysWEBGL(i,u,0,c,0,l);let f=0;for(let h=0;h<l;h++)f+=c[h];n.update(f,i,1)}}this.setMode=r,this.render=a,this.renderInstances=s,this.renderMultiDraw=o}function eoe(t,e,n){let i;function r(){if(i!==void 0)return i;if(e.has("EXT_texture_filter_anisotropic")===!0){const _=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(_.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i}function a(_){if(_==="highp"){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";_="mediump"}return _==="mediump"&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let s=n.precision!==void 0?n.precision:"highp";const o=a(s);o!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",o,"instead."),s=o);const u=n.logarithmicDepthBuffer===!0,c=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),l=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),d=t.getParameter(t.MAX_TEXTURE_SIZE),f=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),h=t.getParameter(t.MAX_VERTEX_ATTRIBS),g=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),v=t.getParameter(t.MAX_VARYING_VECTORS),m=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),p=l>0,y=t.getParameter(t.MAX_SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:r,getMaxPrecision:a,precision:s,logarithmicDepthBuffer:u,maxTextures:c,maxVertexTextures:l,maxTextureSize:d,maxCubemapSize:f,maxAttributes:h,maxVertexUniforms:g,maxVaryings:v,maxFragmentUniforms:m,vertexTextures:p,maxSamples:y}}function toe(t){const e=this;let n=null,i=0,r=!1,a=!1;const s=new Ga,o=new St,u={value:null,needsUpdate:!1};this.uniform=u,this.numPlanes=0,this.numIntersection=0,this.init=function(d,f){const h=d.length!==0||f||i!==0||r;return r=f,i=d.length,h},this.beginShadows=function(){a=!0,l(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(d,f){n=l(d,f,0)},this.setState=function(d,f,h){const g=d.clippingPlanes,v=d.clipIntersection,m=d.clipShadows,p=t.get(d);if(!r||g===null||g.length===0||a&&!m)a?l(null):c();else{const y=a?0:i,_=y*4;let b=p.clippingState||null;u.value=b,b=l(g,f,_,h);for(let x=0;x!==_;++x)b[x]=n[x];p.clippingState=b,this.numIntersection=v?this.numPlanes:0,this.numPlanes+=y}};function c(){u.value!==n&&(u.value=n,u.needsUpdate=i>0),e.numPlanes=i,e.numIntersection=0}function l(d,f,h,g){const v=d!==null?d.length:0;let m=null;if(v!==0){if(m=u.value,g!==!0||m===null){const p=h+v*4,y=f.matrixWorldInverse;o.getNormalMatrix(y),(m===null||m.length<p)&&(m=new Float32Array(p));for(let _=0,b=h;_!==v;++_,b+=4)s.copy(d[_]).applyMatrix4(y,o),s.normal.toArray(m,b),m[b+3]=s.constant}u.value=m,u.needsUpdate=!0}return e.numPlanes=v,e.numIntersection=0,m}}function noe(t){let e=new WeakMap;function n(s,o){return o===M2?s.mapping=jl:o===C2&&(s.mapping=Xl),s}function i(s){if(s&&s.isTexture){const o=s.mapping;if(o===M2||o===C2)if(e.has(s)){const u=e.get(s).texture;return n(u,s.mapping)}else{const u=s.image;if(u&&u.height>0){const c=new fre(u.height);return c.fromEquirectangularTexture(t,s),e.set(s,c),s.addEventListener("dispose",r),n(c.texture,s.mapping)}else return null}}return s}function r(s){const o=s.target;o.removeEventListener("dispose",r);const u=e.get(o);u!==void 0&&(e.delete(o),u.dispose())}function a(){e=new WeakMap}return{get:i,dispose:a}}class V4 extends N4{constructor(e=-1,n=1,i=1,r=-1,a=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=n,this.top=i,this.bottom=r,this.near=a,this.far=s,this.updateProjectionMatrix()}copy(e,n){return super.copy(e,n),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=e.view===null?null:Object.assign({},e.view),this}setViewOffset(e,n,i,r,a,s){this.view===null&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=r,this.view.width=a,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){this.view!==null&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),n=(this.top-this.bottom)/(2*this.zoom),i=(this.right+this.left)/2,r=(this.top+this.bottom)/2;let a=i-e,s=i+e,o=r+n,u=r-n;if(this.view!==null&&this.view.enabled){const c=(this.right-this.left)/this.view.fullWidth/this.zoom,l=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=c*this.view.offsetX,s=a+c*this.view.width,o-=l*this.view.offsetY,u=o-l*this.view.height}this.projectionMatrix.makeOrthographic(a,s,o,u,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const n=super.toJSON(e);return n.object.zoom=this.zoom,n.object.left=this.left,n.object.right=this.right,n.object.top=this.top,n.object.bottom=this.bottom,n.object.near=this.near,n.object.far=this.far,this.view!==null&&(n.object.view=Object.assign({},this.view)),n}}const ul=4,R3=[.125,.215,.35,.446,.526,.582],No=20,jv=new V4,I3=new qt;let Xv=null,Yv=0,Kv=0,Zv=!1;const Lo=(1+Math.sqrt(5))/2,Fu=1/Lo,P3=[new ve(1,1,1),new ve(-1,1,1),new ve(1,1,-1),new ve(-1,1,-1),new ve(0,Lo,Fu),new ve(0,Lo,-Fu),new ve(Fu,0,Lo),new ve(-Fu,0,Lo),new ve(Lo,Fu,0),new ve(-Lo,Fu,0)];class k3{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,n=0,i=.1,r=100){Xv=this._renderer.getRenderTarget(),Yv=this._renderer.getActiveCubeFace(),Kv=this._renderer.getActiveMipmapLevel(),Zv=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,i,r,a),n>0&&this._blur(a,0,0,n),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,n=null){return this._fromTexture(e,n)}fromCubemap(e,n=null){return this._fromTexture(e,n)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=U3(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=N3(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(Xv,Yv,Kv),this._renderer.xr.enabled=Zv,e.scissorTest=!1,Kh(e,0,0,e.width,e.height)}_fromTexture(e,n){e.mapping===jl||e.mapping===Xl?this._setSize(e.image.length===0?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),Xv=this._renderer.getRenderTarget(),Yv=this._renderer.getActiveCubeFace(),Kv=this._renderer.getActiveMipmapLevel(),Zv=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const i=n||this._allocateTargets();return this._textureToCubeUV(e,i),this._applyPMREM(i),this._cleanup(i),i}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),n=4*this._cubeSize,i={magFilter:Mr,minFilter:Mr,generateMipmaps:!1,type:e0,format:va,colorSpace:io,depthBuffer:!1},r=O3(e,n,i);if(this._pingPongRenderTarget===null||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==n){this._pingPongRenderTarget!==null&&this._dispose(),this._pingPongRenderTarget=O3(e,n,i);const{_lodMax:a}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=ioe(a)),this._blurMaterial=roe(a,e,n)}return r}_compileMaterial(e){const n=new pr(this._lodPlanes[0],e);this._renderer.compile(n,jv)}_sceneToCubeUV(e,n,i,r){const o=new Tr(90,1,n,i),u=[1,-1,1,1,1,1],c=[1,1,1,-1,-1,-1],l=this._renderer,d=l.autoClear,f=l.toneMapping;l.getClearColor(I3),l.toneMapping=$s,l.autoClear=!1;const h=new ag({name:"PMREM.Background",side:Hi,depthWrite:!1,depthTest:!1}),g=new pr(new Cf,h);let v=!1;const m=e.background;m?m.isColor&&(h.color.copy(m),e.background=null,v=!0):(h.color.copy(I3),v=!0);for(let p=0;p<6;p++){const y=p%3;y===0?(o.up.set(0,u[p],0),o.lookAt(c[p],0,0)):y===1?(o.up.set(0,0,u[p]),o.lookAt(0,c[p],0)):(o.up.set(0,u[p],0),o.lookAt(0,0,c[p]));const _=this._cubeSize;Kh(r,y*_,p>2?_:0,_,_),l.setRenderTarget(r),v&&l.render(g,o),l.render(e,o)}g.geometry.dispose(),g.material.dispose(),l.toneMapping=f,l.autoClear=d,e.background=m}_textureToCubeUV(e,n){const i=this._renderer,r=e.mapping===jl||e.mapping===Xl;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=U3()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=N3());const a=r?this._cubemapMaterial:this._equirectMaterial,s=new pr(this._lodPlanes[0],a),o=a.uniforms;o.envMap.value=e;const u=this._cubeSize;Kh(n,0,0,3*u,2*u),i.setRenderTarget(n),i.render(s,jv)}_applyPMREM(e){const n=this._renderer,i=n.autoClear;n.autoClear=!1;for(let r=1;r<this._lodPlanes.length;r++){const a=Math.sqrt(this._sigmas[r]*this._sigmas[r]-this._sigmas[r-1]*this._sigmas[r-1]),s=P3[(r-1)%P3.length];this._blur(e,r-1,r,a,s)}n.autoClear=i}_blur(e,n,i,r,a){const s=this._pingPongRenderTarget;this._halfBlur(e,s,n,i,r,"latitudinal",a),this._halfBlur(s,e,i,i,r,"longitudinal",a)}_halfBlur(e,n,i,r,a,s,o){const u=this._renderer,c=this._blurMaterial;s!=="latitudinal"&&s!=="longitudinal"&&console.error("blur direction must be either latitudinal or longitudinal!");const l=3,d=new pr(this._lodPlanes[r],c),f=c.uniforms,h=this._sizeLods[i]-1,g=isFinite(a)?Math.PI/(2*h):2*Math.PI/(2*No-1),v=a/g,m=isFinite(a)?1+Math.floor(l*v):No;m>No&&console.warn(`sigmaRadians, ${a}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${No}`);const p=[];let y=0;for(let D=0;D<No;++D){const O=D/v,M=Math.exp(-O*O/2);p.push(M),D===0?y+=M:D<m&&(y+=2*M)}for(let D=0;D<p.length;D++)p[D]=p[D]/y;f.envMap.value=e.texture,f.samples.value=m,f.weights.value=p,f.latitudinal.value=s==="latitudinal",o&&(f.poleAxis.value=o);const{_lodMax:_}=this;f.dTheta.value=g,f.mipInt.value=_-i;const b=this._sizeLods[r],x=3*b*(r>_-ul?r-_+ul:0),w=4*(this._cubeSize-b);Kh(n,x,w,3*b,2*b),u.setRenderTarget(n),u.render(d,jv)}}function ioe(t){const e=[],n=[],i=[];let r=t;const a=t-ul+1+R3.length;for(let s=0;s<a;s++){const o=Math.pow(2,r);n.push(o);let u=1/o;s>t-ul?u=R3[s-t+ul-1]:s===0&&(u=0),i.push(u);const c=1/(o-2),l=-c,d=1+c,f=[l,l,d,l,d,d,l,l,d,d,l,d],h=6,g=6,v=3,m=2,p=1,y=new Float32Array(v*g*h),_=new Float32Array(m*g*h),b=new Float32Array(p*g*h);for(let w=0;w<h;w++){const D=w%3*2/3-1,O=w>2?0:-1,M=[D,O,0,D+2/3,O,0,D+2/3,O+1,0,D,O,0,D+2/3,O+1,0,D,O+1,0];y.set(M,v*g*w),_.set(f,m*g*w);const S=[w,w,w,w,w,w];b.set(S,p*g*w)}const x=new Qi;x.setAttribute("position",new ya(y,v)),x.setAttribute("uv",new ya(_,m)),x.setAttribute("faceIndex",new ya(b,p)),e.push(x),r>ul&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}function O3(t,e,n){const i=new au(t,e,n);return i.texture.mapping=tg,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function Kh(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function roe(t,e,n){const i=new Float32Array(No),r=new ve(0,1,0);return new rs({name:"SphericalGaussianBlur",defines:{n:No,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:Vy(),fragmentShader:`
5575
5576			precision mediump float;
5577			precision mediump int;
5578
5579			varying vec3 vOutputDirection;
5580
5581			uniform sampler2D envMap;
5582			uniform int samples;
5583			uniform float weights[ n ];
5584			uniform bool latitudinal;
5585			uniform float dTheta;
5586			uniform float mipInt;
5587			uniform vec3 poleAxis;
5588
5589			#define ENVMAP_TYPE_CUBE_UV
5590			#include <cube_uv_reflection_fragment>
5591
5592			vec3 getSample( float theta, vec3 axis ) {
5593
5594				float cosTheta = cos( theta );
5595				// Rodrigues' axis-angle rotation
5596				vec3 sampleDirection = vOutputDirection * cosTheta
5597					+ cross( axis, vOutputDirection ) * sin( theta )
5598					+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );
5599
5600				return bilinearCubeUV( envMap, sampleDirection, mipInt );
5601
5602			}
5603
5604			void main() {
5605
5606				vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );
5607
5608				if ( all( equal( axis, vec3( 0.0 ) ) ) ) {
5609
5610					axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );
5611
5612				}
5613
5614				axis = normalize( axis );
5615
5616				gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );
5617				gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );
5618
5619				for ( int i = 1; i < n; i++ ) {
5620
5621					if ( i >= samples ) {
5622
5623						break;
5624
5625					}
5626
5627					float theta = dTheta * float( i );
5628					gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );
5629					gl_FragColor.rgb += weights[ i ] * getSample( theta, axis );
5630
5631				}
5632
5633			}
5634		`,blending:zs,depthTest:!1,depthWrite:!1})}function N3(){return new rs({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:Vy(),fragmentShader:`
5635
5636			precision mediump float;
5637			precision mediump int;
5638
5639			varying vec3 vOutputDirection;
5640
5641			uniform sampler2D envMap;
5642
5643			#include <common>
5644
5645			void main() {
5646
5647				vec3 outputDirection = normalize( vOutputDirection );
5648				vec2 uv = equirectUv( outputDirection );
5649
5650				gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );
5651
5652			}
5653		`,blending:zs,depthTest:!1,depthWrite:!1})}function U3(){return new rs({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:Vy(),fragmentShader:`
5654
5655			precision mediump float;
5656			precision mediump int;
5657
5658			uniform float flipEnvMap;
5659
5660			varying vec3 vOutputDirection;
5661
5662			uniform samplerCube envMap;
5663
5664			void main() {
5665
5666				gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );
5667
5668			}
5669		`,blending:zs,depthTest:!1,depthWrite:!1})}function Vy(){return`
5670
5671		precision mediump float;
5672		precision mediump int;
5673
5674		attribute float faceIndex;
5675
5676		varying vec3 vOutputDirection;
5677
5678		// RH coordinate system; PMREM face-indexing convention
5679		vec3 getDirection( vec2 uv, float face ) {
5680
5681			uv = 2.0 * uv - 1.0;
5682
5683			vec3 direction = vec3( uv, 1.0 );
5684
5685			if ( face == 0.0 ) {
5686
5687				direction = direction.zyx; // ( 1, v, u ) pos x
5688
5689			} else if ( face == 1.0 ) {
5690
5691				direction = direction.xzy;
5692				direction.xz *= -1.0; // ( -u, 1, -v ) pos y
5693
5694			} else if ( face == 2.0 ) {
5695
5696				direction.x *= -1.0; // ( -u, v, 1 ) pos z
5697
5698			} else if ( face == 3.0 ) {
5699
5700				direction = direction.zyx;
5701				direction.xz *= -1.0; // ( -1, v, -u ) neg x
5702
5703			} else if ( face == 4.0 ) {
5704
5705				direction = direction.xzy;
5706				direction.xy *= -1.0; // ( -u, -1, v ) neg y
5707
5708			} else if ( face == 5.0 ) {
5709
5710				direction.z *= -1.0; // ( u, v, -1 ) neg z
5711
5712			}
5713
5714			return direction;
5715
5716		}
5717
5718		void main() {
5719
5720			vOutputDirection = getDirection( uv, faceIndex );
5721			gl_Position = vec4( position, 1.0 );
5722
5723		}
5724	`}function aoe(t){let e=new WeakMap,n=null;function i(o){if(o&&o.isTexture){const u=o.mapping,c=u===M2||u===C2,l=u===jl||u===Xl;if(c||l){let d=e.get(o);const f=d!==void 0?d.texture.pmremVersion:0;if(o.isRenderTargetTexture&&o.pmremVersion!==f)return n===null&&(n=new k3(t)),d=c?n.fromEquirectangular(o,d):n.fromCubemap(o,d),d.texture.pmremVersion=o.pmremVersion,e.set(o,d),d.texture;if(d!==void 0)return d.texture;{const h=o.image;return c&&h&&h.height>0||l&&h&&r(h)?(n===null&&(n=new k3(t)),d=c?n.fromEquirectangular(o):n.fromCubemap(o),d.texture.pmremVersion=o.pmremVersion,e.set(o,d),o.addEventListener("dispose",a),d.texture):null}}}return o}function r(o){let u=0;const c=6;for(let l=0;l<c;l++)o[l]!==void 0&&u++;return u===c}function a(o){const u=o.target;u.removeEventListener("dispose",a);const c=e.get(u);c!==void 0&&(e.delete(u),c.dispose())}function s(){e=new WeakMap,n!==null&&(n.dispose(),n=null)}return{get:i,dispose:s}}function soe(t){const e={};function n(i){if(e[i]!==void 0)return e[i];let r;switch(i){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":r=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(i)}return e[i]=r,r}return{has:function(i){return n(i)!==null},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(i){const r=n(i);return r===null&&console.warn("THREE.WebGLRenderer: "+i+" extension not supported."),r}}}function ooe(t,e,n,i){const r={},a=new WeakMap;function s(d){const f=d.target;f.index!==null&&e.remove(f.index);for(const g in f.attributes)e.remove(f.attributes[g]);for(const g in f.morphAttributes){const v=f.morphAttributes[g];for(let m=0,p=v.length;m<p;m++)e.remove(v[m])}f.removeEventListener("dispose",s),delete r[f.id];const h=a.get(f);h&&(e.remove(h),a.delete(f)),i.releaseStatesOfGeometry(f),f.isInstancedBufferGeometry===!0&&delete f._maxInstanceCount,n.memory.geometries--}function o(d,f){return r[f.id]===!0||(f.addEventListener("dispose",s),r[f.id]=!0,n.memory.geometries++),f}function u(d){const f=d.attributes;for(const g in f)e.update(f[g],t.ARRAY_BUFFER);const h=d.morphAttributes;for(const g in h){const v=h[g];for(let m=0,p=v.length;m<p;m++)e.update(v[m],t.ARRAY_BUFFER)}}function c(d){const f=[],h=d.index,g=d.attributes.position;let v=0;if(h!==null){const y=h.array;v=h.version;for(let _=0,b=y.length;_<b;_+=3){const x=y[_+0],w=y[_+1],D=y[_+2];f.push(x,w,w,D,D,x)}}else if(g!==void 0){const y=g.array;v=g.version;for(let _=0,b=y.length/3-1;_<b;_+=3){const x=_+0,w=_+1,D=_+2;f.push(x,w,w,D,D,x)}}else return;const m=new(D4(f)?k4:P4)(f,1);m.version=v;const p=a.get(d);p&&e.remove(p),a.set(d,m)}function l(d){const f=a.get(d);if(f){const h=d.index;h!==null&&f.version<h.version&&c(d)}else c(d);return a.get(d)}return{get:o,update:u,getWireframeAttribute:l}}function uoe(t,e,n){let i;function r(d){i=d}let a,s;function o(d){a=d.type,s=d.bytesPerElement}function u(d,f){t.drawElements(i,f,a,d*s),n.update(f,i,1)}function c(d,f,h){h!==0&&(t.drawElementsInstanced(i,f,a,d*s,h),n.update(f,i,h))}function l(d,f,h){if(h===0)return;const g=e.get("WEBGL_multi_draw");if(g===null)for(let v=0;v<h;v++)this.render(d[v]/s,f[v]);else{g.multiDrawElementsWEBGL(i,f,0,a,d,0,h);let v=0;for(let m=0;m<h;m++)v+=f[m];n.update(v,i,1)}}this.setMode=r,this.setIndex=o,this.render=u,this.renderInstances=c,this.renderMultiDraw=l}function loe(t){const e={geometries:0,textures:0},n={frame:0,calls:0,triangles:0,points:0,lines:0};function i(a,s,o){switch(n.calls++,s){case t.TRIANGLES:n.triangles+=o*(a/3);break;case t.LINES:n.lines+=o*(a/2);break;case t.LINE_STRIP:n.lines+=o*(a-1);break;case t.LINE_LOOP:n.lines+=o*a;break;case t.POINTS:n.points+=o*a;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",s);break}}function r(){n.calls=0,n.triangles=0,n.points=0,n.lines=0}return{memory:e,render:n,programs:null,autoReset:!0,reset:r,update:i}}function coe(t,e,n){const i=new WeakMap,r=new si;function a(s,o,u){const c=s.morphTargetInfluences,l=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,d=l!==void 0?l.length:0;let f=i.get(o);if(f===void 0||f.count!==d){let M=function(){D.dispose(),i.delete(o),o.removeEventListener("dispose",M)};f!==void 0&&f.texture.dispose();const h=o.morphAttributes.position!==void 0,g=o.morphAttributes.normal!==void 0,v=o.morphAttributes.color!==void 0,m=o.morphAttributes.position||[],p=o.morphAttributes.normal||[],y=o.morphAttributes.color||[];let _=0;h===!0&&(_=1),g===!0&&(_=2),v===!0&&(_=3);let b=o.attributes.position.count*_,x=1;b>e.maxTextureSize&&(x=Math.ceil(b/e.maxTextureSize),b=e.maxTextureSize);const w=new Float32Array(b*x*4*d),D=new R4(w,b,x,d);D.type=Us,D.needsUpdate=!0;const O=_*4;for(let S=0;S<d;S++){const B=m[S],V=p[S],z=y[S],Q=b*x*4*S;for(let Z=0;Z<B.count;Z++){const q=Z*O;h===!0&&(r.fromBufferAttribute(B,Z),w[Q+q+0]=r.x,w[Q+q+1]=r.y,w[Q+q+2]=r.z,w[Q+q+3]=0),g===!0&&(r.fromBufferAttribute(V,Z),w[Q+q+4]=r.x,w[Q+q+5]=r.y,w[Q+q+6]=r.z,w[Q+q+7]=0),v===!0&&(r.fromBufferAttribute(z,Z),w[Q+q+8]=r.x,w[Q+q+9]=r.y,w[Q+q+10]=r.z,w[Q+q+11]=z.itemSize===4?r.w:1)}}f={count:d,texture:D,size:new vt(b,x)},i.set(o,f),o.addEventListener("dispose",M)}if(s.isInstancedMesh===!0&&s.morphTexture!==null)u.getUniforms().setValue(t,"morphTexture",s.morphTexture,n);else{let h=0;for(let v=0;v<c.length;v++)h+=c[v];const g=o.morphTargetsRelative?1:1-h;u.getUniforms().setValue(t,"morphTargetBaseInfluence",g),u.getUniforms().setValue(t,"morphTargetInfluences",c)}u.getUniforms().setValue(t,"morphTargetsTexture",f.texture,n),u.getUniforms().setValue(t,"morphTargetsTextureSize",f.size)}return{update:a}}function doe(t,e,n,i){let r=new WeakMap;function a(u){const c=i.render.frame,l=u.geometry,d=e.get(u,l);if(r.get(d)!==c&&(e.update(d),r.set(d,c)),u.isInstancedMesh&&(u.hasEventListener("dispose",o)===!1&&u.addEventListener("dispose",o),r.get(u)!==c&&(n.update(u.instanceMatrix,t.ARRAY_BUFFER),u.instanceColor!==null&&n.update(u.instanceColor,t.ARRAY_BUFFER),r.set(u,c))),u.isSkinnedMesh){const f=u.skeleton;
vendor: 16,251 bytes, lines 5724-5757
5724r.get(f)!==c&&(f.update(),r.set(f,c))}return d}function s(){r=new WeakMap}function o(u){const c=u.target;c.removeEventListener("dispose",o),n.remove(c.instanceMatrix),c.instanceColor!==null&&n.remove(c.instanceColor)}return{update:a,dispose:s}}class H4 extends zi{constructor(e,n,i,r,a,s,o,u,c,l){if(l=l!==void 0?l:Al,l!==Al&&l!==Jd)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");i===void 0&&l===Al&&(i=Yl),i===void 0&&l===Jd&&(i=Sf),super(null,r,a,s,o,u,l,i,c),this.isDepthTexture=!0,this.image={width:e,height:n},this.magFilter=o!==void 0?o:hr,this.minFilter=u!==void 0?u:hr,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const n=super.toJSON(e);return this.compareFunction!==null&&(n.compareFunction=this.compareFunction),n}}const z4=new zi,$4=new H4(1,1);$4.compareFunction=C4;const W4=new R4,G4=new Kie,q4=new U4,F3=[],B3=[],V3=new Float32Array(16),H3=new Float32Array(9),z3=new Float32Array(4);function ic(t,e,n){const i=t[0];if(i<=0||i>0)return t;const r=e*n;let a=F3[r];if(a===void 0&&(a=new Float32Array(r),F3[r]=a),e!==0){i.toArray(a,0);for(let s=1,o=0;s!==e;++s)o+=n,t[s].toArray(a,o)}return a}function Wn(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function Gn(t,e){for(let n=0,i=e.length;n<i;n++)t[n]=e[n]}function og(t,e){let n=B3[e];n===void 0&&(n=new Int32Array(e),B3[e]=n);for(let i=0;i!==e;++i)n[i]=t.allocateTextureUnit();return n}function foe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function hoe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Wn(n,e))return;t.uniform2fv(this.addr,e),Gn(n,e)}}function poe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(e.r!==void 0)(n[0]!==e.r||n[1]!==e.g||n[2]!==e.b)&&(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(Wn(n,e))return;t.uniform3fv(this.addr,e),Gn(n,e)}}function moe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Wn(n,e))return;t.uniform4fv(this.addr,e),Gn(n,e)}}function goe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(Wn(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),Gn(n,e)}else{if(Wn(n,i))return;z3.set(i),t.uniformMatrix2fv(this.addr,!1,z3),Gn(n,i)}}function voe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(Wn(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),Gn(n,e)}else{if(Wn(n,i))return;H3.set(i),t.uniformMatrix3fv(this.addr,!1,H3),Gn(n,i)}}function _oe(t,e){const n=this.cache,i=e.elements;if(i===void 0){if(Wn(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),Gn(n,e)}else{if(Wn(n,i))return;V3.set(i),t.uniformMatrix4fv(this.addr,!1,V3),Gn(n,i)}}function boe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function yoe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2i(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Wn(n,e))return;t.uniform2iv(this.addr,e),Gn(n,e)}}function Eoe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3i(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(Wn(n,e))return;t.uniform3iv(this.addr,e),Gn(n,e)}}function xoe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4i(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Wn(n,e))return;t.uniform4iv(this.addr,e),Gn(n,e)}}function Aoe(t,e){const n=this.cache;n[0]!==e&&(t.uniform1ui(this.addr,e),n[0]=e)}function Soe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y)&&(t.uniform2ui(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Wn(n,e))return;t.uniform2uiv(this.addr,e),Gn(n,e)}}function Toe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z)&&(t.uniform3ui(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else{if(Wn(n,e))return;t.uniform3uiv(this.addr,e),Gn(n,e)}}function woe(t,e){const n=this.cache;if(e.x!==void 0)(n[0]!==e.x||n[1]!==e.y||n[2]!==e.z||n[3]!==e.w)&&(t.uniform4ui(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Wn(n,e))return;t.uniform4uiv(this.addr,e),Gn(n,e)}}function Moe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r);const a=this.type===t.SAMPLER_2D_SHADOW?$4:z4;n.setTexture2D(e||a,r)}function Coe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||G4,r)}function Doe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||q4,r)}function Loe(t,e,n){const i=this.cache,r=n.allocateTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2DArray(e||W4,r)}function Roe(t){switch(t){case 5126:return foe;case 35664:return hoe;case 35665:return poe;case 35666:return moe;case 35674:return goe;case 35675:return voe;case 35676:return _oe;case 5124:case 35670:return boe;case 35667:case 35671:return yoe;case 35668:case 35672:return Eoe;case 35669:case 35673:return xoe;case 5125:return Aoe;case 36294:return Soe;case 36295:return Toe;case 36296:return woe;case 35678:case 36198:case 36298:case 36306:case 35682:return Moe;case 35679:case 36299:case 36307:return Coe;case 35680:case 36300:case 36308:case 36293:return Doe;case 36289:case 36303:case 36311:case 36292:return Loe}}function Ioe(t,e){t.uniform1fv(this.addr,e)}function Poe(t,e){const n=ic(e,this.size,2);t.uniform2fv(this.addr,n)}function koe(t,e){const n=ic(e,this.size,3);t.uniform3fv(this.addr,n)}function Ooe(t,e){const n=ic(e,this.size,4);t.uniform4fv(this.addr,n)}function Noe(t,e){const n=ic(e,this.size,4);t.uniformMatrix2fv(this.addr,!1,n)}function Uoe(t,e){const n=ic(e,this.size,9);t.uniformMatrix3fv(this.addr,!1,n)}function Foe(t,e){const n=ic(e,this.size,16);t.uniformMatrix4fv(this.addr,!1,n)}function Boe(t,e){t.uniform1iv(this.addr,e)}function Voe(t,e){t.uniform2iv(this.addr,e)}function Hoe(t,e){t.uniform3iv(this.addr,e)}function zoe(t,e){t.uniform4iv(this.addr,e)}function $oe(t,e){t.uniform1uiv(this.addr,e)}function Woe(t,e){t.uniform2uiv(this.addr,e)}function Goe(t,e){t.uniform3uiv(this.addr,e)}function qoe(t,e){t.uniform4uiv(this.addr,e)}function joe(t,e,n){const i=this.cache,r=e.length,a=og(n,r);Wn(i,a)||(t.uniform1iv(this.addr,a),Gn(i,a));for(let s=0;s!==r;++s)n.setTexture2D(e[s]||z4,a[s])}function Xoe(t,e,n){const i=this.cache,r=e.length,a=og(n,r);Wn(i,a)||(t.uniform1iv(this.addr,a),Gn(i,a));for(let s=0;s!==r;++s)n.setTexture3D(e[s]||G4,a[s])}function Yoe(t,e,n){const i=this.cache,r=e.length,a=og(n,r);Wn(i,a)||(t.uniform1iv(this.addr,a),Gn(i,a));for(let s=0;s!==r;++s)n.setTextureCube(e[s]||q4,a[s])}function Koe(t,e,n){const i=this.cache,r=e.length,a=og(n,r);Wn(i,a)||(t.uniform1iv(this.addr,a),Gn(i,a));for(let s=0;s!==r;++s)n.setTexture2DArray(e[s]||W4,a[s])}function Zoe(t){switch(t){case 5126:return Ioe;case 35664:return Poe;case 35665:return koe;case 35666:return Ooe;case 35674:return Noe;case 35675:return Uoe;case 35676:return Foe;case 5124:case 35670:return Boe;case 35667:case 35671:return Voe;case 35668:case 35672:return Hoe;case 35669:case 35673:return zoe;case 5125:return $oe;case 36294:return Woe;case 36295:return Goe;case 36296:return qoe;case 35678:case 36198:case 36298:case 36306:case 35682:return joe;case 35679:case 36299:case 36307:return Xoe;case 35680:case 36300:case 36308:case 36293:return Yoe;case 36289:case 36303:case 36311:case 36292:return Koe}}class Joe{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.setValue=Roe(n.type)}}class Qoe{constructor(e,n,i){this.id=e,this.addr=i,this.cache=[],this.type=n.type,this.size=n.size,this.setValue=Zoe(n.type)}}class eue{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,n,i){const r=this.seq;for(let a=0,s=r.length;a!==s;++a){const o=r[a];o.setValue(e,n[o.id],i)}}}const Jv=/(\w+)(\])?(\[|\.)?/g;function $3(t,e){t.seq.push(e),t.map[e.id]=e}function tue(t,e,n){const i=t.name,r=i.length;for(Jv.lastIndex=0;;){const a=Jv.exec(i),s=Jv.lastIndex;let o=a[1];const u=a[2]==="]",c=a[3];if(u&&(o=o|0),c===void 0||c==="["&&s+2===r){$3(n,c===void 0?new Joe(o,t,e):new Qoe(o,t,e));break}else{let d=n.map[o];d===void 0&&(d=new eue(o),$3(n,d)),n=d}}}class Zp{constructor(e,n){this.seq=[],this.map={};const i=e.getProgramParameter(n,e.ACTIVE_UNIFORMS);for(let r=0;r<i;++r){const a=e.getActiveUniform(n,r),s=e.getUniformLocation(n,a.name);tue(a,s,this)}}setValue(e,n,i,r){const a=this.map[n];a!==void 0&&a.setValue(e,i,r)}setOptional(e,n,i){const r=n[i];r!==void 0&&this.setValue(e,i,r)}static upload(e,n,i,r){for(let a=0,s=n.length;a!==s;++a){const o=n[a],u=i[o.id];u.needsUpdate!==!1&&o.setValue(e,u.value,r)}}static seqWithValue(e,n){const i=[];for(let r=0,a=e.length;r!==a;++r){const s=e[r];s.id in n&&i.push(s)}return i}}function W3(t,e,n){const i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),i}const nue=37297;let iue=0;function rue(t,e){const n=t.split(`
5725`),i=[],r=Math.max(e-6,0),a=Math.min(e+6,n.length);for(let s=r;s<a;s++){const o=s+1;i.push(`${o===e?">":" "} ${o}: ${n[s]}`)}return i.join(`
5726`)}function aue(t){const e=en.getPrimaries(en.workingColorSpace),n=en.getPrimaries(t);let i;switch(e===n?i="":e===i0&&n===n0?i="LinearDisplayP3ToLinearSRGB":e===n0&&n===i0&&(i="LinearSRGBToLinearDisplayP3"),t){case io:case ng:return[i,"LinearTransferOETF"];case sa:case Fy:return[i,"sRGBTransferOETF"];default:return console.warn("THREE.WebGLProgram: Unsupported color space:",t),[i,"LinearTransferOETF"]}}function G3(t,e,n){const i=t.getShaderParameter(e,t.COMPILE_STATUS),r=t.getShaderInfoLog(e).trim();if(i&&r==="")return"";const a=/ERROR: 0:(\d+)/.exec(r);if(a){const s=parseInt(a[1]);return n.toUpperCase()+`
5727
5728`+r+`
5729
5730`+rue(t.getShaderSource(e),s)}else return r}function sue(t,e){const n=aue(e);return`vec4 ${t}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function oue(t,e){let n;switch(e){case fie:n="Linear";break;case hie:n="Reinhard";break;case pie:n="OptimizedCineon";break;case mie:n="ACESFilmic";break;case vie:n="AgX";break;case _ie:n="Neutral";break;case gie:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear"}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function uue(t){return[t.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",t.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Yc).join(`
5731`)}function lue(t){const e=[];for(const n in t){const i=t[n];i!==!1&&e.push("#define "+n+" "+i)}return e.join(`
5732`)}function cue(t,e){const n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let r=0;r<i;r++){const a=t.getActiveAttrib(e,r),s=a.name;let o=1;a.type===t.FLOAT_MAT2&&(o=2),a.type===t.FLOAT_MAT3&&(o=3),a.type===t.FLOAT_MAT4&&(o=4),n[s]={type:a.type,location:t.getAttribLocation(e,s),locationSize:o}}return n}function Yc(t){return t!==""}function q3(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function j3(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const due=/^[ \t]*#include +<([\w\d./]+)>/gm;function I2(t){return t.replace(due,hue)}const fue=new Map([["encodings_fragment","colorspace_fragment"],["encodings_pars_fragment","colorspace_pars_fragment"],["output_fragment","opaque_fragment"]]);function hue(t,e){let n=At[e];if(n===void 0){const i=fue.get(e);if(i!==void 0)n=At[i],console.warn('THREE.WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.',e,i);else throw new Error("Can not resolve #include <"+e+">")}return I2(n)}const pue=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function X3(t){return t.replace(pue,mue)}function mue(t,e,n,i){let r="";for(let a=parseInt(e);a<parseInt(n);a++)r+=i.replace(/\[\s*i\s*\]/g,"[ "+a+" ]").replace(/UNROLLED_LOOP_INDEX/g,a);return r}function Y3(t){let e=`precision ${t.precision} float;
5733	precision ${t.precision} int;
5734	precision ${t.precision} sampler2D;
5735	precision ${t.precision} samplerCube;
5736	precision ${t.precision} sampler3D;
5737	precision ${t.precision} sampler2DArray;
5738	precision ${t.precision} sampler2DShadow;
5739	precision ${t.precision} samplerCubeShadow;
5740	precision ${t.precision} sampler2DArrayShadow;
5741	precision ${t.precision} isampler2D;
5742	precision ${t.precision} isampler3D;
5743	precision ${t.precision} isamplerCube;
5744	precision ${t.precision} isampler2DArray;
5745	precision ${t.precision} usampler2D;
5746	precision ${t.precision} usampler3D;
5747	precision ${t.precision} usamplerCube;
5748	precision ${t.precision} usampler2DArray;
5749	`;return t.precision==="highp"?e+=`
5750#define HIGH_PRECISION`:t.precision==="mediump"?e+=`
5751#define MEDIUM_PRECISION`:t.precision==="lowp"&&(e+=`
5752#define LOW_PRECISION`),e}function gue(t){let e="SHADOWMAP_TYPE_BASIC";return t.shadowMapType===v4?e="SHADOWMAP_TYPE_PCF":t.shadowMapType===Fne?e="SHADOWMAP_TYPE_PCF_SOFT":t.shadowMapType===Ba&&(e="SHADOWMAP_TYPE_VSM"),e}function vue(t){let e="ENVMAP_TYPE_CUBE";if(t.envMap)switch(t.envMapMode){case jl:case Xl:e="ENVMAP_TYPE_CUBE";break;case tg:e="ENVMAP_TYPE_CUBE_UV";break}return e}function _ue(t){let e="ENVMAP_MODE_REFLECTION";if(t.envMap)switch(t.envMapMode){case Xl:e="ENVMAP_MODE_REFRACTION";break}return e}function bue(t){let e="ENVMAP_BLENDING_NONE";if(t.envMap)switch(t.combine){case _4:e="ENVMAP_BLENDING_MULTIPLY";break;case cie:e="ENVMAP_BLENDING_MIX";break;case die:e="ENVMAP_BLENDING_ADD";break}return e}function yue(t){const e=t.envMapCubeUVHeight;if(e===null)return null;const n=Math.log2(e)-2,i=1/e;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}function Eue(t,e,n,i){const r=t.getContext(),a=n.defines;let s=n.vertexShader,o=n.fragmentShader;const u=gue(n),c=vue(n),l=_ue(n),d=bue(n),f=yue(n),h=uue(n),g=lue(a),v=r.createProgram();let m,p,y=n.glslVersion?"#version "+n.glslVersion+`
5753`:"";n.isRawShaderMaterial?(m=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,g].filter(Yc).join(`
5754`),m.length>0&&(m+=`
5755`),p=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,g].filter(Yc).join(`
5756`),p.length>0&&(p+=`
5757`)):(m=[Y3(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,g,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+l:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IR
5757IDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&n.flatShading===!1?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","	attribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","	attribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","	uniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","	attribute vec2 uv1;","#endif","#ifdef USE_UV2","	attribute vec2 uv2;","#endif","#ifdef USE_UV3","	attribute vec2 uv3;","#endif","#ifdef USE_TANGENT","	attribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","	attribute vec4 color;","#elif defined( USE_COLOR )","	attribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","	attribute vec3 morphTarget0;","	attribute vec3 morphTarget1;","	attribute vec3 morphTarget2;","	attribute vec3 morphTarget3;","	#ifdef USE_MORPHNORMALS","		attribute vec3 morphNormal0;","		attribute vec3 morphNormal1;","		attribute vec3 morphNormal2;","		attribute vec3 morphNormal3;","	#else","		attribute vec3 morphTarget4;","		attribute vec3 morphTarget5;","		attribute vec3 morphTarget6;","		attribute vec3 morphTarget7;","	#endif","#endif","#ifdef USE_SKINNING","	attribute vec4 skinIndex;","	attribute vec4 skinWeight;","#endif",`
5758`].filter(Yc).join(`
5759`),p=[Y3(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,g,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alph
vendor: 129,665 bytes, lines 5759-5825
5759aToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+l:"",n.envMap?"#define "+d:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&n.flatShading===!1?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==$s?"#define TONE_MAPPING":"",n.toneMapping!==$s?At.tonemapping_pars_fragment:"",n.toneMapping!==$s?oue("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",At.colorspace_pars_fragment,sue("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"",`
5760`].filter(Yc).join(`
5761`)),s=I2(s),s=q3(s,n),s=j3(s,n),o=I2(o),o=q3(o,n),o=j3(o,n),s=X3(s),o=X3(o),n.isRawShaderMaterial!==!0&&(y=`#version 300 es
5762`,m=[h,"#define attribute in","#define varying out","#define texture2D texture"].join(`
5763`)+`
5764`+m,p=["#define varying in",n.glslVersion===d3?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===d3?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join(`
5765`)+`
5766`+p);const _=y+m+s,b=y+p+o,x=W3(r,r.VERTEX_SHADER,_),w=W3(r,r.FRAGMENT_SHADER,b);r.attachShader(v,x),r.attachShader(v,w),n.index0AttributeName!==void 0?r.bindAttribLocation(v,0,n.index0AttributeName):n.morphTargets===!0&&r.bindAttribLocation(v,0,"position"),r.linkProgram(v);function D(B){if(t.debug.checkShaderErrors){const V=r.getProgramInfoLog(v).trim(),z=r.getShaderInfoLog(x).trim(),Q=r.getShaderInfoLog(w).trim();let Z=!0,q=!0;if(r.getProgramParameter(v,r.LINK_STATUS)===!1)if(Z=!1,typeof t.debug.onShaderError=="function")t.debug.onShaderError(r,v,x,w);else{const te=G3(r,x,"vertex"),$=G3(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(v,r.VALIDATE_STATUS)+`
5767
5768Material Name: `+B.name+`
5769Material Type: `+B.type+`
5770
5771Program Info Log: `+V+`
5772`+te+`
5773`+$)}else V!==""?console.warn("THREE.WebGLProgram: Program Info Log:",V):(z===""||Q==="")&&(q=!1);q&&(B.diagnostics={runnable:Z,programLog:V,vertexShader:{log:z,prefix:m},fragmentShader:{log:Q,prefix:p}})}r.deleteShader(x),r.deleteShader(w),O=new Zp(r,v),M=cue(r,v)}let O;this.getUniforms=function(){return O===void 0&&D(this),O};let M;this.getAttributes=function(){return M===void 0&&D(this),M};let S=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return S===!1&&(S=r.getProgramParameter(v,nue)),S},this.destroy=function(){i.releaseStatesOfProgram(this),r.deleteProgram(v),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=iue++,this.cacheKey=e,this.usedTimes=1,this.program=v,this.vertexShader=x,this.fragmentShader=w,this}let xue=0;class Aue{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const n=e.vertexShader,i=e.fragmentShader,r=this._getShaderStage(n),a=this._getShaderStage(i),s=this._getShaderCacheForMaterial(e);return s.has(r)===!1&&(s.add(r),r.usedTimes++),s.has(a)===!1&&(s.add(a),a.usedTimes++),this}remove(e){const n=this.materialCache.get(e);for(const i of n)i.usedTimes--,i.usedTimes===0&&this.shaderCache.delete(i.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const n=this.materialCache;let i=n.get(e);return i===void 0&&(i=new Set,n.set(e,i)),i}_getShaderStage(e){const n=this.shaderCache;let i=n.get(e);return i===void 0&&(i=new Sue(e),n.set(e,i)),i}}class Sue{constructor(e){this.id=xue++,this.code=e,this.usedTimes=0}}function Tue(t,e,n,i,r,a,s){const o=new By,u=new Aue,c=new Set,l=[],d=r.logarithmicDepthBuffer,f=r.vertexTextures;let h=r.precision;const g={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function v(M){return c.add(M),M===0?"uv":`uv${M}`}function m(M,S,B,V,z){const Q=V.fog,Z=z.geometry,q=M.isMeshStandardMaterial?V.environment:null,te=(M.isMeshStandardMaterial?n:e).get(M.envMap||q),$=te&&te.mapping===tg?te.image.height:null,ee=g[M.type];M.precision!==null&&(h=r.getMaxPrecision(M.precision),h!==M.precision&&console.warn("THREE.WebGLProgram.getParameters:",M.precision,"not supported, using",h,"instead."));const le=Z.morphAttributes.position||Z.morphAttributes.normal||Z.morphAttributes.color,xe=le!==void 0?le.length:0;let J=0;Z.morphAttributes.position!==void 0&&(J=1),Z.morphAttributes.normal!==void 0&&(J=2),Z.morphAttributes.color!==void 0&&(J=3);let ye,H,ie,_e;if(ee){const Cn=ua[ee];ye=Cn.vertexShader,H=Cn.fragmentShader}else ye=M.vertexShader,H=M.fragmentShader,u.update(M),ie=u.getVertexShaderID(M),_e=u.getFragmentShaderID(M);const W=t.getRenderTarget(),be=z.isInstancedMesh===!0,ge=z.isBatchedMesh===!0,De=!!M.map,ae=!!M.matcap,Fe=!!te,U=!!M.aoMap,K=!!M.lightMap,ue=!!M.bumpMap,Se=!!M.normalMap,k=!!M.displacementMap,E=!!M.emissiveMap,I=!!M.metalnessMap,j=!!M.roughnessMap,Y=M.anisotropy>0,se=M.clearcoat>0,Te=M.iridescence>0,X=M.sheen>0,ce=M.transmission>0,Ie=Y&&!!M.anisotropyMap,Me=se&&!!M.clearcoatMap,Oe=se&&!!M.clearcoatNormalMap,$e=se&&!!M.clearcoatRoughnessMap,Be=Te&&!!M.iridescenceMap,Ne=Te&&!!M.iridescenceThicknessMap,lt=X&&!!M.sheenColorMap,Ze=X&&!!M.sheenRoughnessMap,ct=!!M.specularMap,ft=!!M.specularColorMap,pt=!!M.specularIntensityMap,Je=ce&&!!M.transmissionMap,L=ce&&!!M.thicknessMap,Ae=!!M.gradientMap,Pe=!!M.alphaMap,We=M.alphaTest>0,Qe=!!M.alphaHash,yt=!!M.extensions;let Et=$s;M.toneMapped&&(W===null||W.isXRRenderTarget===!0)&&(Et=t.toneMapping);const jt={shaderID:ee,shaderType:M.type,shaderName:M.name,vertexShader:ye,fragmentShader:H,defines:M.defines,customVertexShaderID:ie,customFragmentShaderID:_e,isRawShaderMaterial:M.isRawShaderMaterial===!0,glslVersion:M.glslVersion,precision:h,batching:ge,instancing:be,instancingColor:be&&z.instanceColor!==null,instancingMorph:be&&z.morphTexture!==null,supportsVertexTextures:f,outputColorSpace:W===null?t.outputColorSpace:W.isXRRenderTarget===!0?W.texture.colorSpace:io,alphaToCoverage:!!M.alphaToCoverage,map:De,matcap:ae,envMap:Fe,envMapMode:Fe&&te.mapping,envMapCubeUVHeight:$,aoMap:U,lightMap:K,bumpMap:ue,normalMap:Se,displacementMap:f&&k,emissiveMap:E,normalMapObjectSpace:Se&&M.normalMapType===Pie,normalMapTangentSpace:Se&&M.normalMapType===Iie,metalnessMap:I,roughnessMap:j,anisotropy:Y,anisotropyMap:Ie,clearcoat:se,clearcoatMap:Me,clearcoatNormalMap:Oe,clearcoatRoughnessMap:$e,iridescence:Te,iridescenceMap:Be,iridescenceThicknessMap:Ne,sheen:X,sheenColorMap:lt,sheenRoughnessMap:Ze,specularMap:ct,specularColorMap:ft,specularIntensityMap:pt,transmission:ce,transmissionMap:Je,thicknessMap:L,gradientMap:Ae,opaque:M.transparent===!1&&M.blending===xl&&M.alphaToCoverage===!1,alphaMap:Pe,alphaTest:We,alphaHash:Qe,combine:M.combine,mapUv:De&&v(M.map.channel),aoMapUv:U&&v(M.aoMap.channel),lightMapUv:K&&v(M.lightMap.channel),bumpMapUv:ue&&v(M.bumpMap.channel),normalMapUv:Se&&v(M.normalMap.channel),displacementMapUv:k&&v(M.displacementMap.channel),emissiveMapUv:E&&v(M.emissiveMap.channel),metalnessMapUv:I&&v(M.metalnessMap.channel),roughnessMapUv:j&&v(M.roughnessMap.channel),anisotropyMapUv:Ie&&v(M.anisotropyMap.channel),clearcoatMapUv:Me&&v(M.clearcoatMap.channel),clearcoatNormalMapUv:Oe&&v(M.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:$e&&v(M.clearcoatRoughnessMap.channel),iridescenceMapUv:Be&&v(M.iridescenceMap.channel),iridescenceThicknessMapUv:Ne&&v(M.iridescenceThicknessMap.channel),sheenColorMapUv:lt&&v(M.sheenColorMap.channel),sheenRoughnessMapUv:Ze&&v(M.sheenRoughnessMap.channel),specularMapUv:ct&&v(M.specularMap.channel),specularColorMapUv:ft&&v(M.specularColorMap.channel),specularIntensityMapUv:pt&&v(M.specularIntensityMap.channel),transmissionMapUv:Je&&v(M.transmissionMap.channel),thicknessMapUv:L&&v(M.thicknessMap.channel),alphaMapUv:Pe&&v(M.alphaMap.channel),vertexTangents:!!Z.attributes.tangent&&(Se||Y),vertexColors:M.vertexColors,vertexAlphas:M.vertexColors===!0&&!!Z.attributes.color&&Z.attributes.color.itemSize===4,pointsUvs:z.isPoints===!0&&!!Z.attributes.uv&&(De||Pe),fog:!!Q,useFog:M.fog===!0,fogExp2:!!Q&&Q.isFogExp2,flatShading:M.flatShading===!0,sizeAttenuation:M.sizeAttenuation===!0,logarithmicDepthBuffer:d,skinning:z.isSkinnedMesh===!0,morphTargets:Z.morphAttributes.position!==void 0,morphNormals:Z.morphAttributes.normal!==void 0,morphColors:Z.morphAttributes.color!==void 0,morphTargetsCount:xe,morphTextureStride:J,numDirLights:S.directional.length,numPointLights:S.point.length,numSpotLights:S.spot.length,numSpotLightMaps:S.spotLightMap.length,numRectAreaLights:S.rectArea.length,numHemiLights:S.hemi.length,numDirLightShadows:S.directionalShadowMap.length,numPointLightShadows:S.pointShadowMap.length,numSpotLightShadows:S.spotShadowMap.length,numSpotLightShadowsWithMaps:S.numSpotLightShadowsWithMaps,numLightProbes:S.numLightProbes,numClippingPlanes:s.numPlanes,numClipIntersection:s.numIntersection,dithering:M.dithering,shadowMapEnabled:t.shadowMap.enabled&&B.length>0,shadowMapType:t.shadowMap.type,toneMapping:Et,useLegacyLights:t._useLegacyLights,decodeVideoTexture:De&&M.map.isVideoTexture===!0&&en.getTransfer(M.map.colorSpace)===fn,premultipliedAlpha:M.premultipliedAlpha,doubleSided:M.side===da,flipSided:M.side===Hi,useDepthPacking:M.depthPacking>=0,depthPacking:M.depthPacking||0,index0AttributeName:M.index0AttributeName,extensionClipCullDistance:yt&&M.extensions.clipCullDistance===!0&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:yt&&M.extensions.multiDraw===!0&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:M.customProgramCacheKey()};return jt.vertexUv1s=c.has(1),jt.vertexUv2s=c.has(2),jt.vertexUv3s=c.has(3),c.clear(),jt}function p(M){const S=[];if(M.shaderID?S.push(M.shaderID):(S.push(M.customVertexShaderID),S.push(M.customFragmentShaderID)),M.defines!==void 0)for(const B in M.defines)S.push(B),S.push(M.defines[B]);return M.isRawShaderMaterial===!1&&(y(S,M),_(S,M),S.push(t.outputColorSpace)),S.push(M.customProgramCacheKey),S.join()}function y(M,S){M.push(S.precision),M.push(S.outputColorSpace),M.push(S.envMapMode),M.push(S.envMapCubeUVHeight),M.push(S.mapUv),M.push(S.alphaMapUv),M.push(S.lightMapUv),M.push(S.aoMapUv),M.push(S.bumpMapUv),M.push(S.normalMapUv),M.push(S.displacementMapUv),M.push(S.emissiveMapUv),M.push(S.metalnessMapUv),M.push(S.roughnessMapUv),M.push(S.anisotropyMapUv),M.push(S.clearcoatMapUv),M.push(S.clearcoatNormalMapUv),M.push(S.clearcoatRoughnessMapUv),M.push(S.iridescenceMapUv),M.push(S.iridescenceThicknessMapUv),M.push(S.sheenColorMapUv),M.push(S.sheenRoughnessMapUv),M.push(S.specularMapUv),M.push(S.specularColorMapUv),M.push(S.specularIntensityMapUv),M.push(S.transmissionMapUv),M.push(S.thicknessMapUv),M.push(S.combine),M.push(S.fogExp2),M.push(S.sizeAttenuation),M.push(S.morphTargetsCount),M.push(S.morphAttributeCount),M.push(S.numDirLights),M.push(S.numPointLights),M.push(S.numSpotLights),M.push(S.numSpotLightMaps),M.push(S.numHemiLights),M.push(S.numRectAreaLights),M.push(S.numDirLightShadows),M.push(S.numPointLightShadows),M.push(S.numSpotLightShadows),M.push(S.numSpotLightShadowsWithMaps),M.push(S.numLightProbes),M.push(S.shadowMapType),M.push(S.toneMapping),M.push(S.numClippingPlanes),M.push(S.numClipIntersection),M.push(S.depthPacking)}function _(M,S){o.disableAll(),S.supportsVertexTextures&&o.enable(0),S.instancing&&o.enable(1),S.instancingColor&&o.enable(2),S.instancingMorph&&o.enable(3),S.matcap&&o.enable(4),S.envMap&&o.enable(5),S.normalMapObjectSpace&&o.enable(6),S.normalMapTangentSpace&&o.enable(7),S.clearcoat&&o.enable(8),S.iridescence&&o.enable(9),S.alphaTest&&o.enable(10),S.vertexColors&&o.enable(11),S.vertexAlphas&&o.enable(12),S.vertexUv1s&&o.enable(13),S.vertexUv2s&&o.enable(14),S.vertexUv3s&&o.enable(15),S.vertexTangents&&o.enable(16),S.anisotropy&&o.enable(17),S.alphaHash&&o.enable(18),S.batching&&o.enable(19),M.push(o.mask),o.disableAll(),S.fog&&o.enable(0),S.useFog&&o.enable(1),S.flatShading&&o.enable(2),S.logarithmicDepthBuffer&&o.enable(3),S.skinning&&o.enable(4),S.morphTargets&&o.enable(5),S.morphNormals&&o.enable(6),S.morphColors&&o.enable(7),S.premultipliedAlpha&&o.enable(8),S.shadowMapEnabled&&o.enable(9),S.useLegacyLights&&o.enable(10),S.doubleSided&&o.enable(11),S.flipSided&&o.enable(12),S.useDepthPacking&&o.enable(13),S.dithering&&o.enable(14),S.transmission&&o.enable(15),S.sheen&&o.enable(16),S.opaque&&o.enable(17),S.pointsUvs&&o.enable(18),S.decodeVideoTexture&&o.enable(19),S.alphaToCoverage&&o.enable(20),M.push(o.mask)}function b(M){const S=g[M.type];let B;if(S){const V=ua[S];B=ure.clone(V.uniforms)}else B=M.uniforms;return B}function x(M,S){let B;for(let V=0,z=l.length;V<z;V++){const Q=l[V];if(Q.cacheKey===S){B=Q,++B.usedTimes;break}}return B===void 0&&(B=new Eue(t,S,M,a),l.push(B)),B}function w(M){if(--M.usedTimes===0){const S=l.indexOf(M);l[S]=l[l.length-1],l.pop(),M.destroy()}}function D(M){u.remove(M)}function O(){u.dispose()}return{getParameters:m,getProgramCacheKey:p,getUniforms:b,acquireProgram:x,releaseProgram:w,releaseShaderCache:D,programs:l,dispose:O}}function wue(){let t=new WeakMap;function e(a){let s=t.get(a);return s===void 0&&(s={},t.set(a,s)),s}function n(a){t.delete(a)}function i(a,s,o){t.get(a)[s]=o}function r(){t=new WeakMap}return{get:e,remove:n,update:i,dispose:r}}function Mue(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function K3(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Z3(){const t=[];let e=0;const n=[],i=[],r=[];function a(){e=0,n.length=0,i.length=0,r.length=0}function s(d,f,h,g,v,m){let p=t[e];return p===void 0?(p={id:d.id,object:d,geometry:f,material:h,groupOrder:g,renderOrder:d.renderOrder,z:v,group:m},t[e]=p):(p.id=d.id,p.object=d,p.geometry=f,p.material=h,p.groupOrder=g,p.renderOrder=d.renderOrder,p.z=v,p.group=m),e++,p}function o(d,f,h,g,v,m){const p=s(d,f,h,g,v,m);h.transmission>0?i.push(p):h.transparent===!0?r.push(p):n.push(p)}function u(d,f,h,g,v,m){const p=s(d,f,h,g,v,m);h.transmission>0?i.unshift(p):h.transparent===!0?r.unshift(p):n.unshift(p)}function c(d,f){n.length>1&&n.sort(d||Mue),i.length>1&&i.sort(f||K3),r.length>1&&r.sort(f||K3)}function l(){for(let d=e,f=t.length;d<f;d++){const h=t[d];if(h.id===null)break;h.id=null,h.object=null,h.geometry=null,h.material=null,h.group=null}}return{opaque:n,transmissive:i,transparent:r,init:a,push:o,unshift:u,finish:l,sort:c}}function Cue(){let t=new WeakMap;function e(i,r){const a=t.get(i);let s;return a===void 0?(s=new Z3,t.set(i,[s])):r>=a.length?(s=new Z3,a.push(s)):s=a[r],s}function n(){t=new WeakMap}return{get:e,dispose:n}}function Due(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new ve,color:new qt};break;case"SpotLight":n={position:new ve,direction:new ve,color:new qt,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new ve,color:new qt,distance:0,decay:0};break;case"HemisphereLight":n={direction:new ve,skyColor:new qt,groundColor:new qt};break;case"RectAreaLight":n={color:new qt,position:new ve,halfWidth:new ve,halfHeight:new ve};break}return t[e.id]=n,n}}}function Lue(){const t={};return{get:function(e){if(t[e.id]!==void 0)return t[e.id];let n;switch(e.type){case"DirectionalLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt};break;case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new vt,shadowCameraNear:1,shadowCameraFar:1e3};break}return t[e.id]=n,n}}}let Rue=0;function Iue(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function Pue(t){const e=new Due,n=Lue(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let c=0;c<9;c++)i.probe.push(new ve);const r=new ve,a=new Rn,s=new Rn;function o(c,l){let d=0,f=0,h=0;for(let B=0;B<9;B++)i.probe[B].set(0,0,0);let g=0,v=0,m=0,p=0,y=0,_=0,b=0,x=0,w=0,D=0,O=0;c.sort(Iue);const M=l===!0?Math.PI:1;for(let B=0,V=c.length;B<V;B++){const z=c[B],Q=z.color,Z=z.intensity,q=z.distance,te=z.shadow&&z.shadow.map?z.shadow.map.texture:null;if(z.isAmbientLight)d+=Q.r*Z*M,f+=Q.g*Z*M,h+=Q.b*Z*M;else if(z.isLightProbe){for(let $=0;$<9;$++)i.probe[$].addScaledVector(z.sh.coefficients[$],Z);O++}else if(z.isDirectionalLight){const $=e.get(z);if($.color.copy(z.color).multiplyScalar(z.intensity*M),z.castShadow){const ee=z.shadow,le=n.get(z);le.shadowBias=ee.bias,le.shadowNormalBias=ee.normalBias,le.shadowRadius=ee.radius,le.shadowMapSize=ee.mapSize,i.directionalShadow[g]=le,i.directionalShadowMap[g]=te,i.directionalShadowMatrix[g]=z.shadow.matrix,_++}i.directional[g]=$,g++}else if(z.isSpotLight){const $=e.get(z);$.position.setFromMatrixPosition(z.matrixWorld),$.color.copy(Q).multiplyScalar(Z*M),$.distance=q,$.coneCos=Math.cos(z.angle),$.penumbraCos=Math.cos(z.angle*(1-z.penumbra)),$.decay=z.decay,i.spot[m]=$;const ee=z.shadow;if(z.map&&(i.spotLightMap[w]=z.map,w++,ee.updateMatrices(z),z.castShadow&&D++),i.spotLightMatrix[m]=ee.matrix,z.castShadow){const le=n.get(z);le.shadowBias=ee.bias,le.shadowNormalBias=ee.normalBias,le.shadowRadius=ee.radius,le.shadowMapSize=ee.mapSize,i.spotShadow[m]=le,i.spotShadowMap[m]=te,x++}m++}else if(z.isRectAreaLight){const $=e.get(z);$.color.copy(Q).multiplyScalar(Z),$.halfWidth.set(z.width*.5,0,0),$.halfHeight.set(0,z.height*.5,0),i.rectArea[p]=$,p++}else if(z.isPointLight){const $=e.get(z);if($.color.copy(z.color).multiplyScalar(z.intensity*M),$.distance=z.distance,$.decay=z.decay,z.castShadow){const ee=z.shadow,le=n.get(z);le.shadowBias=ee.bias,le.shadowNormalBias=ee.normalBias,le.shadowRadius=ee.radius,le.shadowMapSize=ee.mapSize,le.shadowCameraNear=ee.camera.near,le.shadowCameraFar=ee.camera.far,i.pointShadow[v]=le,i.pointShadowMap[v]=te,i.pointShadowMatrix[v]=z.shadow.matrix,b++}i.point[v]=$,v++}else if(z.isHemisphereLight){const $=e.get(z);$.skyColor.copy(z.color).multiplyScalar(Z*M),$.groundColor.copy(z.groundColor).multiplyScalar(Z*M),i.hemi[y]=$,y++}}p>0&&(t.has("OES_texture_float_linear")===!0?(i.rectAreaLTC1=Ke.LTC_FLOAT_1,i.rectAreaLTC2=Ke.LTC_FLOAT_2):(i.rectAreaLTC1=Ke.LTC_HALF_1,i.rectAreaLTC2=Ke.LTC_HALF_2)),i.ambient[0]=d,i.ambient[1]=f,i.ambient[2]=h;const S=i.hash;(S.directionalLength!==g||S.pointLength!==v||S.spotLength!==m||S.rectAreaLength!==p||S.hemiLength!==y||S.numDirectionalShadows!==_||S.numPointShadows!==b||S.numSpotShadows!==x||S.numSpotMaps!==w||S.numLightProbes!==O)&&(i.directional.length=g,i.spot.length=m,i.rectArea.length=p,i.point.length=v,i.hemi.length=y,i.directionalShadow.length=_,i.directionalShadowMap.length=_,i.pointShadow.length=b,i.pointShadowMap.length=b,i.spotShadow.length=x,i.spotShadowMap.length=x,i.directionalShadowMatrix.length=_,i.pointShadowMatrix.length=b,i.spotLightMatrix.length=x+w-D,i.spotLightMap.length=w,i.numSpotLightShadowsWithMaps=D,i.numLightProbes=O,S.directionalLength=g,S.pointLength=v,S.spotLength=m,S.rectAreaLength=p,S.hemiLength=y,S.numDirectionalShadows=_,S.numPointShadows=b,S.numSpotShadows=x,S.numSpotMaps=w,S.numLightProbes=O,i.version=Rue++)}function u(c,l){let d=0,f=0,h=0,g=0,v=0;const m=l.matrixWorldInverse;for(let p=0,y=c.length;p<y;p++){const _=c[p];if(_.isDirectionalLight){const b=i.directional[d];b.direction.setFromMatrixPosition(_.matrixWorld),r.setFromMatrixPosition(_.target.matrixWorld),b.direction.sub(r),b.direction.transformDirection(m),d++}else if(_.isSpotLight){const b=i.spot[h];b.position.setFromMatrixPosition(_.matrixWorld),b.position.applyMatrix4(m),b.direction.setFromMatrixPosition(_.matrixWorld),r.setFromMatrixPosition(_.target.matrixWorld),b.direction.sub(r),b.direction.transformDirection(m),h++}else if(_.isRectAreaLight){const b=i.rectArea[g];b.position.setFromMatrixPosition(_.matrixWorld),b.position.applyMatrix4(m),s.identity(),a.copy(_.matrixWorld),a.premultiply(m),s.extractRotation(a),b.halfWidth.set(_.width*.5,0,0),b.halfHeight.set(0,_.height*.5,0),b.halfWidth.applyMatrix4(s),b.halfHeight.applyMatrix4(s),g++}else if(_.isPointLight){const b=i.point[f];b.position.setFromMatrixPosition(_.matrixWorld),b.position.applyMatrix4(m),f++}else if(_.isHemisphereLight){const b=i.hemi[v];b.direction.setFromMatrixPosition(_.matrixWorld),b.direction.transformDirection(m),v++}}}return{setup:o,setupView:u,state:i}}function J3(t){const e=new Pue(t),n=[],i=[];function r(){n.length=0,i.length=0}function a(l){n.push(l)}function s(l){i.push(l)}function o(l){e.setup(n,l)}function u(l){e.setupView(n,l)}return{init:r,state:{lightsArray:n,shadowsArray:i,lights:e,transmissionRenderTarget:null},setupLights:o,setupLightsView:u,pushLight:a,pushShadow:s}}function kue(t){let e=new WeakMap;function n(r,a=0){const s=e.get(r);let o;return s===void 0?(o=new J3(t),e.set(r,[o])):a>=s.length?(o=new J3(t),s.push(o)):o=s[a],o}function i(){e=new WeakMap}return{get:n,dispose:i}}class Oue extends Mf{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=Lie,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class Nue extends Mf{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}const Uue=`void main() {
5774	gl_Position = vec4( position, 1.0 );
5775}`,Fue=`uniform sampler2D shadow_pass;
5776uniform vec2 resolution;
5777uniform float radius;
5778#include <packing>
5779void main() {
5780	const float samples = float( VSM_SAMPLES );
5781	float mean = 0.0;
5782	float squared_mean = 0.0;
5783	float uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );
5784	float uvStart = samples <= 1.0 ? 0.0 : - 1.0;
5785	for ( float i = 0.0; i < samples; i ++ ) {
5786		float uvOffset = uvStart + i * uvStride;
5787		#ifdef HORIZONTAL_PASS
5788			vec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );
5789			mean += distribution.x;
5790			squared_mean += distribution.y * distribution.y + distribution.x * distribution.x;
5791		#else
5792			float depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );
5793			mean += depth;
5794			squared_mean += depth * depth;
5795		#endif
5796	}
5797	mean = mean / samples;
5798	squared_mean = squared_mean / samples;
5799	float std_dev = sqrt( squared_mean - mean * mean );
5800	gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
5801}`;function Bue(t,e,n){let i=new F4;const r=new vt,a=new vt,s=new si,o=new Oue({depthPacking:Rie}),u=new Nue,c={},l=n.maxTextureSize,d={[Ks]:Hi,[Hi]:Ks,[da]:da},f=new rs({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new vt},radius:{value:4}},vertexShader:Uue,fragmentShader:Fue}),h=f.clone();h.defines.HORIZONTAL_PASS=1;const g=new Qi;g.setAttribute("position",new ya(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const v=new pr(g,f),m=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=v4;let p=this.type;this.render=function(w,D,O){if(m.enabled===!1||m.autoUpdate===!1&&m.needsUpdate===!1||w.length===0)return;const M=t.getRenderTarget(),S=t.getActiveCubeFace(),B=t.getActiveMipmapLevel(),V=t.state;V.setBlending(zs),V.buffers.color.setClear(1,1,1,1),V.buffers.depth.setTest(!0),V.setScissorTest(!1);const z=p!==Ba&&this.type===Ba,Q=p===Ba&&this.type!==Ba;for(let Z=0,q=w.length;Z<q;Z++){const te=w[Z],$=te.shadow;if($===void 0){console.warn("THREE.WebGLShadowMap:",te,"has no shadow.");continue}if($.autoUpdate===!1&&$.needsUpdate===!1)continue;r.copy($.mapSize);const ee=$.getFrameExtents();if(r.multiply(ee),a.copy($.mapSize),(r.x>l||r.y>l)&&(r.x>l&&(a.x=Math.floor(l/ee.x),r.x=a.x*ee.x,$.mapSize.x=a.x),r.y>l&&(a.y=Math.floor(l/ee.y),r.y=a.y*ee.y,$.mapSize.y=a.y)),$.map===null||z===!0||Q===!0){const xe=this.type!==Ba?{minFilter:hr,magFilter:hr}:{};$.map!==null&&$.map.dispose(),$.map=new au(r.x,r.y,xe),$.map.texture.name=te.name+".shadowMap",$.camera.updateProjectionMatrix()}t.setRenderTarget($.map),t.clear();const le=$.getViewportCount();for(let xe=0;xe<le;xe++){const J=$.getViewport(xe);s.set(a.x*J.x,a.y*J.y,a.x*J.z,a.y*J.w),V.viewport(s),$.updateMatrices(te,xe),i=$.getFrustum(),b(D,O,$.camera,te,this.type)}$.isPointLightShadow!==!0&&this.type===Ba&&y($,O),$.needsUpdate=!1}p=this.type,m.needsUpdate=!1,t.setRenderTarget(M,S,B)};function y(w,D){const O=e.update(v);f.defines.VSM_SAMPLES!==w.blurSamples&&(f.defines.VSM_SAMPLES=w.blurSamples,h.defines.VSM_SAMPLES=w.blurSamples,f.needsUpdate=!0,h.needsUpdate=!0),w.mapPass===null&&(w.mapPass=new au(r.x,r.y)),f.uniforms.shadow_pass.value=w.map.texture,f.uniforms.resolution.value=w.mapSize,f.uniforms.radius.value=w.radius,t.setRenderTarget(w.mapPass),t.clear(),t.renderBufferDirect(D,null,O,f,v,null),h.uniforms.shadow_pass.value=w.mapPass.texture,h.uniforms.resolution.value=w.mapSize,h.uniforms.radius.value=w.radius,t.setRenderTarget(w.map),t.clear(),t.renderBufferDirect(D,null,O,h,v,null)}function _(w,D,O,M){let S=null;const B=O.isPointLight===!0?w.customDistanceMaterial:w.customDepthMaterial;if(B!==void 0)S=B;else if(S=O.isPointLight===!0?u:o,t.localClippingEnabled&&D.clipShadows===!0&&Array.isArray(D.clippingPlanes)&&D.clippingPlanes.length!==0||D.displacementMap&&D.displacementScale!==0||D.alphaMap&&D.alphaTest>0||D.map&&D.alphaTest>0){const V=S.uuid,z=D.uuid;let Q=c[V];Q===void 0&&(Q={},c[V]=Q);let Z=Q[z];Z===void 0&&(Z=S.clone(),Q[z]=Z,D.addEventListener("dispose",x)),S=Z}if(S.visible=D.visible,S.wireframe=D.wireframe,M===Ba?S.side=D.shadowSide!==null?D.shadowSide:D.side:S.side=D.shadowSide!==null?D.shadowSide:d[D.side],S.alphaMap=D.alphaMap,S.alphaTest=D.alphaTest,S.map=D.map,S.clipShadows=D.clipShadows,S.clippingPlanes=D.clippingPlanes,S.clipIntersection=D.clipIntersection,S.displacementMap=D.displacementMap,S.displacementScale=D.displacementScale,S.displacementBias=D.displacementBias,S.wireframeLinewidth=D.wireframeLinewidth,S.linewidth=D.linewidth,O.isPointLight===!0&&S.isMeshDistanceMaterial===!0){const V=t.properties.get(S);V.light=O}return S}function b(w,D,O,M,S){if(w.visible===!1)return;if(w.layers.test(D.layers)&&(w.isMesh||w.isLine||w.isPoints)&&(w.castShadow||w.receiveShadow&&S===Ba)&&(!w.frustumCulled||i.intersectsObject(w))){w.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse,w.matrixWorld);const z=e.update(w),Q=w.material;if(Array.isArray(Q)){const Z=z.groups;for(let q=0,te=Z.length;q<te;q++){const $=Z[q],ee=Q[$.materialIndex];if(ee&&ee.visible){const le=_(w,ee,M,S);w.onBeforeShadow(t,w,D,O,z,le,$),t.renderBufferDirect(O,null,z,le,w,$),w.onAfterShadow(t,w,D,O,z,le,$)}}}else if(Q.visible){const Z=_(w,Q,M,S);w.onBeforeShadow(t,w,D,O,z,Z,null),t.renderBufferDirect(O,null,z,Z,w,null),w.onAfterShadow(t,w,D,O,z,Z,null)}}const V=w.children;for(let z=0,Q=V.length;z<Q;z++)b(V[z],D,O,M,S)}function x(w){w.target.removeEventListener("dispose",x);for(const O in c){const M=c[O],S=w.target.uuid;S in M&&(M[S].dispose(),delete M[S])}}}function Vue(t){function e(){let L=!1;const Ae=new si;let Pe=null;const We=new si(0,0,0,0);return{setMask:function(Qe){Pe!==Qe&&!L&&(t.colorMask(Qe,Qe,Qe,Qe),Pe=Qe)},setLocked:function(Qe){L=Qe},setClear:function(Qe,yt,Et,jt,Cn){Cn===!0&&(Qe*=jt,yt*=jt,Et*=jt),Ae.set(Qe,yt,Et,jt),We.equals(Ae)===!1&&(t.clearColor(Qe,yt,Et,jt),We.copy(Ae))},reset:function(){L=!1,Pe=null,We.set(-1,0,0,0)}}}function n(){let L=!1,Ae=null,Pe=null,We=null;return{setTest:function(Qe){Qe?_e(t.DEPTH_TEST):W(t.DEPTH_TEST)},setMask:function(Qe){Ae!==Qe&&!L&&(t.depthMask(Qe),Ae=Qe)},setFunc:function(Qe){if(Pe!==Qe){switch(Qe){case iie:t.depthFunc(t.NEVER);break;case rie:t.depthFunc(t.ALWAYS);break;case aie:t.depthFunc(t.LESS);break;case Qm:t.depthFunc(t.LEQUAL);break;case sie:t.depthFunc(t.EQUAL);break;case oie:t.depthFunc(t.GEQUAL);break;case uie:t.depthFunc(t.GREATER);break;case lie:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}Pe=Qe}},setLocked:function(Qe){L=Qe},setClear:function(Qe){We!==Qe&&(t.clearDepth(Qe),We=Qe)},reset:function(){L=!1,Ae=null,Pe=null,We=null}}}function i(){let L=!1,Ae=null,Pe=null,We=null,Qe=null,yt=null,Et=null,jt=null,Cn=null;return{setTest:function(Ft){L||(Ft?_e(t.STENCIL_TEST):W(t.STENCIL_TEST))},setMask:function(Ft){Ae!==Ft&&!L&&(t.stencilMask(Ft),Ae=Ft)},setFunc:function(Ft,bn,yn){(Pe!==Ft||We!==bn||Qe!==yn)&&(t.stencilFunc(Ft,bn,yn),Pe=Ft,We=bn,Qe=yn)},setOp:function(Ft,bn,yn){(yt!==Ft||Et!==bn||jt!==yn)&&(t.stencilOp(Ft,bn,yn),yt=Ft,Et=bn,jt=yn)},setLocked:function(Ft){L=Ft},setClear:function(Ft){Cn!==Ft&&(t.clearStencil(Ft),Cn=Ft)},reset:function(){L=!1,Ae=null,Pe=null,We=null,Qe=null,yt=null,Et=null,jt=null,Cn=null}}}const r=new e,a=new n,s=new i,o=new WeakMap,u=new WeakMap;let c={},l={},d=new WeakMap,f=[],h=null,g=!1,v=null,m=null,p=null,y=null,_=null,b=null,x=null,w=new qt(0,0,0),D=0,O=!1,M=null,S=null,B=null,V=null,z=null;const Q=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let Z=!1,q=0;const te=t.getParameter(t.VERSION);te.indexOf("WebGL")!==-1?(q=parseFloat(/^WebGL (\d)/.exec(te)[1]),Z=q>=1):te.indexOf("OpenGL ES")!==-1&&(q=parseFloat(/^OpenGL ES (\d)/.exec(te)[1]),Z=q>=2);let $=null,ee={};const le=t.getParameter(t.SCISSOR_BOX),xe=t.getParameter(t.VIEWPORT),J=new si().fromArray(le),ye=new si().fromArray(xe);function H(L,Ae,Pe,We){const Qe=new Uint8Array(4),yt=t.createTexture();t.bindTexture(L,yt),t.texParameteri(L,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(L,t.TEXTURE_MAG_FILTER,t.NEAREST);for(let Et=0;Et<Pe;Et++)L===t.TEXTURE_3D||L===t.TEXTURE_2D_ARRAY?t.texImage3D(Ae,0,t.RGBA,1,1,We,0,t.RGBA,t.UNSIGNED_BYTE,Qe):t.texImage2D(Ae+Et,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,Qe);return yt}const ie={};ie[t.TEXTURE_2D]=H(t.TEXTURE_2D,t.TEXTURE_2D,1),ie[t.TEXTURE_CUBE_MAP]=H(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),ie[t.TEXTURE_2D_ARRAY]=H(t.TEXTURE_2D_ARRAY,t.TEXTURE_2D_ARRAY,1,1),ie[t.TEXTURE_3D]=H(t.TEXTURE_3D,t.TEXTURE_3D,1,1),r.setClear(0,0,0,1),a.setClear(1),s.setClear(0),_e(t.DEPTH_TEST),a.setFunc(Qm),ue(!1),Se(kT),_e(t.CULL_FACE),U(zs);function _e(L){c[L]!==!0&&(t.enable(L),c[L]=!0)}function W(L){c[L]!==!1&&(t.disable(L),c[L]=!1)}function be(L,Ae){return l[L]!==Ae?(t.bindFramebuffer(L,Ae),l[L]=Ae,L===t.DRAW_FRAMEBUFFER&&(l[t.FRAMEBUFFER]=Ae),L===t.FRAMEBUFFER&&(l[t.DRAW_FRAMEBUFFER]=Ae),!0):!1}function ge(L,Ae){let Pe=f,We=!1;if(L){Pe=d.get(Ae),Pe===void 0&&(Pe=[],d.set(Ae,Pe));const Qe=L.textures;if(Pe.length!==Qe.length||Pe[0]!==t.COLOR_ATTACHMENT0){for(let yt=0,Et=Qe.length;yt<Et;yt++)Pe[yt]=t.COLOR_ATTACHMENT0+yt;Pe.length=Qe.length,We=!0}}else Pe[0]!==t.BACK&&(Pe[0]=t.BACK,We=!0);We&&t.drawBuffers(Pe)}function De(L){return h!==L?(t.useProgram(L),h=L,!0):!1}const ae={[Oo]:t.FUNC_ADD,[Vne]:t.FUNC_SUBTRACT,[Hne]:t.FUNC_REVERSE_SUBTRACT};ae[zne]=t.MIN,ae[$ne]=t.MAX;const Fe={[Wne]:t.ZERO,[Gne]:t.ONE,[qne]:t.SRC_COLOR,[T2]:t.SRC_ALPHA,[Jne]:t.SRC_ALPHA_SATURATE,[Kne]:t.DST_COLOR,[Xne]:t.DST_ALPHA,[jne]:t.ONE_MINUS_SRC_COLOR,[w2]:t.ONE_MINUS_SRC_ALPHA,[Zne]:t.ONE_MINUS_DST_COLOR,[Yne]:t.ONE_MINUS_DST_ALPHA,[Qne]:t.CONSTANT_COLOR,[eie]:t.ONE_MINUS_CONSTANT_COLOR,[tie]:t.CONSTANT_ALPHA,[nie]:t.ONE_MINUS_CONSTANT_ALPHA};function U(L,Ae,Pe,We,Qe,yt,Et,jt,Cn,Ft){if(L===zs){g===!0&&(W(t.BLEND),g=!1);return}if(g===!1&&(_e(t.BLEND),g=!0),L!==Bne){if(L!==v||Ft!==O){if((m!==Oo||_!==Oo)&&(t.blendEquation(t.FUNC_ADD),m=Oo,_=Oo),Ft)switch(L){case xl:t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case OT:t.blendFunc(t.ONE,t.ONE);break;case NT:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case UT:t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA);break;default:console.error("THREE.WebGLState: Invalid blending: ",L);break}else switch(L){case xl:t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA);break;case OT:t.blendFunc(t.SRC_ALPHA,t.ONE);break;case NT:t.blendFuncSeparate(t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ZERO,t.ONE);break;case UT:t.blendFunc(t.ZERO,t.SRC_COLOR);break;default:console.error("THREE.WebGLState: Invalid blending: ",L);break}p=null,y=null,b=null,x=null,w.set(0,0,0),D=0,v=L,O=Ft}return}Qe=Qe||Ae,yt=yt||Pe,Et=Et||We,(Ae!==m||Qe!==_)&&(t.blendEquationSeparate(ae[Ae],ae[Qe]),m=Ae,_=Qe),(Pe!==p||We!==y||yt!==b||Et!==x)&&(t.blendFuncSeparate(Fe[Pe],Fe[We],Fe[yt],Fe[Et]),p=Pe,y=We,b=yt,x=Et),(jt.equals(w)===!1||Cn!==D)&&(t.blendColor(jt.r,jt.g,jt.b,Cn),w.copy(jt),D=Cn),v=L,O=!1}function K(L,Ae){L.side===da?W(t.CULL_FACE):_e(t.CULL_FACE);let Pe=L.side===Hi;Ae&&(Pe=!Pe),ue(Pe),L.blending===xl&&L.transparent===!1?U(zs):U(L.blending,L.blendEquation,L.blendSrc,L.blendDst,L.blendEquationAlpha,L.blendSrcAlpha,L.blendDstAlpha,L.blendColor,L.blendAlpha,L.premultipliedAlpha),a.setFunc(L.depthFunc),a.setTest(L.depthTest),a.setMask(L.depthWrite),r.setMask(L.colorWrite);const We=L.stencilWrite;s.setTest(We),We&&(s.setMask(L.stencilWriteMask),s.setFunc(L.stencilFunc,L.stencilRef,L.stencilFuncMask),s.setOp(L.stencilFail,L.stencilZFail,L.stencilZPass)),E(L.polygonOffset,L.polygonOffsetFactor,L.polygonOffsetUnits),L.alphaToCoverage===!0?_e(t.SAMPLE_ALPHA_TO_COVERAGE):W(t.SAMPLE_ALPHA_TO_COVERAGE)}function ue(L){M!==L&&(L?t.frontFace(t.CW):t.frontFace(t.CCW),M=L)}function Se(L){L!==Nne?(_e(t.CULL_FACE),L!==S&&(L===kT?t.cullFace(t.BACK):L===Une?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):W(t.CULL_FACE),S=L}function k(L){L!==B&&(Z&&t.lineWidth(L),B=L)}function E(L,Ae,Pe){L?(_e(t.POLYGON_OFFSET_FILL),(V!==Ae||z!==Pe)&&(t.polygonOffset(Ae,Pe),V=Ae,z=Pe)):W(t.POLYGON_OFFSET_FILL)}function I(L){L?_e(t.SCISSOR_TEST):W(t.SCISSOR_TEST)}function j(L){L===void 0&&(L=t.TEXTURE0+Q-1),$!==L&&(t.activeTexture(L),$=L)}function Y(L,Ae,Pe){Pe===void 0&&($===null?Pe=t.TEXTURE0+Q-1:Pe=$);let We=ee[Pe];We===void 0&&(We={type:void 0,texture:void 0},ee[Pe]=We),(We.type!==L||We.texture!==Ae)&&($!==Pe&&(t.activeTexture(Pe),$=Pe),t.bindTexture(L,Ae||ie[L]),We.type=L,We.texture=Ae)}function se(){const L=ee[$];L!==void 0&&L.type!==void 0&&(t.bindTexture(L.type,null),L.type=void 0,L.texture=void 0)}function Te(){try{t.compressedTexImage2D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function X(){try{t.compressedTexImage3D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function ce(){try{t.texSubImage2D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Ie(){try{t.texSubImage3D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Me(){try{t.compressedTexSubImage2D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Oe(){try{t.compressedTexSubImage3D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function $e(){try{t.texStorage2D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Be(){try{t.texStorage3D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Ne(){try{t.texImage2D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function lt(){try{t.texImage3D.apply(t,arguments)}catch(L){console.error("THREE.WebGLState:",L)}}function Ze(L){J.equals(L)===!1&&(t.scissor(L.x,L.y,L.z,L.w),J.copy(L))}function ct(L){ye.equals(L)===!1&&(t.viewport(L.x,L.y,L.z,L.w),ye.copy(L))}function ft(L,Ae){let Pe=u.get(Ae);Pe===void 0&&(Pe=new WeakMap,u.set(Ae,Pe));let We=Pe.get(L);We===void 0&&(We=t.getUniformBlockIndex(Ae,L.name),Pe.set(L,We))}function pt(L,Ae){const We=u.get(Ae).get(L);o.get(Ae)!==We&&(t.uniformBlockBinding(Ae,We,L.__bindingPointIndex),o.set(Ae,We))}function Je(){t.disable(t.BLEND),t.disable(t.CULL_FACE),t.disable(t.DEPTH_TEST),t.disable(t.POLYGON_OFFSET_FILL),t.disable(t.SCISSOR_TEST),t.disable(t.STENCIL_TEST),t.disable(t.SAMPLE_ALPHA_TO_COVERAGE),t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ONE,t.ZERO),t.blendFuncSeparate(t.ONE,t.ZERO,t.ONE,t.ZERO),t.blendColor(0,0,0,0),t.colorMask(!0,!0,!0,!0),t.clearColor(0,0,0,0),t.depthMask(!0),t.depthFunc(t.LESS),t.clearDepth(1),t.stencilMask(4294967295),t.stencilFunc(t.ALWAYS,0,4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP),t.clearStencil(0),t.cullFace(t.BACK),t.frontFace(t.CCW),t.polygonOffset(0,0),t.activeTexture(t.TEXTURE0),t.bindFramebuffer(t.FRAMEBUFFER,null),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),t.bindFramebuffer(t.READ_FRAMEBUFFER,null),t.useProgram(null),t.lineWidth(1),t.scissor(0,0,t.canvas.width,t.canvas.height),t.viewport(0,0,t.canvas.width,t.canvas.height),c={},$=null,ee={},l={},d=new WeakMap,f=[],h=null,g=!1,v=null,m=null,p=null,y=null,_=null,b=null,x=null,w=new qt(0,0,0),D=0,O=!1,M=null,S=null,B=null,V=null,z=null,J.set(0,0,t.canvas.width,t.canvas.height),ye.set(0,0,t.canvas.width,t.canvas.height),r.reset(),a.reset(),s.reset()}return{buffers:{color:r,depth:a,stencil:s},enable:_e,disable:W,bindFramebuffer:be,drawBuffers:ge,useProgram:De,setBlending:U,setMaterial:K,setFlipSided:ue,setCullFace:Se,setLineWidth:k,setPolygonOffset:E,setScissorTest:I,activeTexture:j,bindTexture:Y,unbindTexture:se,compressedTexImage2D:Te,compressedTexImage3D:X,texImage2D:Ne,texImage3D:lt,updateUBOMapping:ft,uniformBlockBinding:pt,texStorage2D:$e,texStorage3D:Be,texSubImage2D:ce,texSubImage3D:Ie,compressedTexSubImage2D:Me,compressedTexSubImage3D:Oe,scissor:Ze,viewport:ct,reset:Je}}function Hue(t,e,n,i,r,a,s){const o=e.has("WEBGL_multisampled_render_to_texture")?e.get("WEBGL_multisampled_render_to_texture"):null,u=typeof navigator>"u"?!1:/OculusBrowser/g.test(navigator.userAgent),c=new vt,l=new WeakMap;let d;const f=new WeakMap;let h=!1;try{h=typeof OffscreenCanvas<"u"&&new OffscreenCanvas(1,1).getContext("2d")!==null}catch{}function g(k,E){return h?new OffscreenCanvas(k,E):a0("canvas")}function v(k,E,I){let j=1;const Y=Se(k);if((Y.width>I||Y.height>I)&&(j=I/Math.max(Y.width,Y.height)),j<1)if(typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement||typeof HTMLCanvasElement<"u"&&k instanceof HTMLCanvasElement||typeof ImageBitmap<"u"&&k instanceof ImageBitmap||typeof VideoFrame<"u"&&k instanceof VideoFrame){const se=Math.floor(j*Y.width),Te=Math.floor(j*Y.height);d===void 0&&(d=g(se,Te));const X=E?g(se,Te):d;return X.width=se,X.height=Te,X.getContext("2d").drawImage(k,0,0,se,Te),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+Y.width+"x"+Y.height+") to ("+se+"x"+Te+")."),X}else return"data"in k&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+Y.width+"x"+Y.height+")."),k;return k}function m(k){return k.generateMipmaps&&k.minFilter!==hr&&k.minFilter!==Mr}function p(k){t.generateMipmap(k)}function y(k,E,I,j,Y=!1){if(k!==null){if(t[k]!==void 0)return t[k];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+k+"'")}let se=E;if(E===t.RED&&(I===t.FLOAT&&(se=t.R32F),I===t.HALF_FLOAT&&(se=t.R16F),I===t.UNSIGNED_BYTE&&(se=t.R8)),E===t.RED_INTEGER&&(I===t.UNSIGNED_BYTE&&(se=t.R8UI),I===t.UNSIGNED_SHORT&&(se=t.R16UI),I===t.UNSIGNED_INT&&(se=t.R32UI),I===t.BYTE&&(se=t.R8I),I===t.SHORT&&(se=t.R16I),I===t.INT&&(se=t.R32I)),E===t.RG&&(I===t.FLOAT&&(se=t.RG32F),I===t.HALF_FLOAT&&(se=t.RG16F),I===t.UNSIGNED_BYTE&&(se=t.RG8)),E===t.RG_INTEGER&&(I===t.UNSIGNED_BYTE&&(se=t.RG8UI),I===t.UNSIGNED_SHORT&&(se=t.RG16UI),I===t.UNSIGNED_INT&&(se=t.RG32UI),I===t.BYTE&&(se=t.RG8I),I===t.SHORT&&(se=t.RG16I),I===t.INT&&(se=t.RG32I)),E===t.RGB&&I===t.UNSIGNED_INT_5_9_9_9_REV&&(se=t.RGB9_E5),E===t.RGBA){const Te=Y?t0:en.getTransfer(j);I===t.FLOAT&&(se=t.RGBA32F),I===t.HALF_FLOAT&&(se=t.RGBA16F),I===t.UNSIGNED_BYTE&&(se=Te===fn?t.SRGB8_ALPHA8:t.RGBA8),I===t.UNSIGNED_SHORT_4_4_4_4&&(se=t.RGBA4),I===t.UNSIGNED_SHORT_5_5_5_1&&(se=t.RGB5_A1)}return(se===t.R16F||se===t.R32F||se===t.RG16F||se===t.RG32F||se===t.RGBA16F||se===t.RGBA32F)&&e.get("EXT_color_buffer_float"),se}function _(k,E){return m(k)===!0||k.isFramebufferTexture&&k.minFilter!==hr&&k.minFilter!==Mr?Math.log2(Math.max(E.width,E.height))+1:k.mipmaps!==void 0&&k.mipmaps.length>0?k.mipmaps.length:k.isCompressedTexture&&Array.isArray(k.image)?E.mipmaps.length:1}function b(k){const E=k.target;E.removeEventListener("dispose",b),w(E),E.isVideoTexture&&l.delete(E)}function x(k){const E=k.target;E.removeEventListener("dispose",x),O(E)}function w(k){const E=i.get(k);if(E.__webglInit===void 0)return;const I=k.source,j=f.get(I);if(j){const Y=j[E.__cacheKey];Y.usedTimes--,Y.usedTimes===0&&D(k),Object.keys(j).length===0&&f.delete(I)}i.remove(k)}function D(k){const E=i.get(k);t.deleteTexture(E.__webglTexture);const I=k.source,j=f.get(I);delete j[E.__cacheKey],s.memory.textures--}function O(k){const E=i.get(k);if(k.depthTexture&&k.depthTexture.dispose(),k.isWebGLCubeRenderTarget)for(let j=0;j<6;j++){if(Array.isArray(E.__webglFramebuffer[j]))for(let Y=0;Y<E.__webglFramebuffer[j].length;Y++)t.deleteFramebuffer(E.__webglFramebuffer[j][Y]);else t.deleteFramebuffer(E.__webglFramebuffer[j]);E.__webglDepthbuffer&&t.deleteRenderbuffer(E.__webglDepthbuffer[j])}else{if(Array.isArray(E.__webglFramebuffer))for(let j=0;j<E.__webglFramebuffer.length;j++)t.deleteFramebuffer(E.__webglFramebuffer[j]);else t.deleteFramebuffer(E.__webglFramebuffer);if(E.__webglDepthbuffer&&t.deleteRenderbuffer(E.__webglDepthbuffer),E.__webglMultisampledFramebuffer&&t.deleteFramebuffer(E.__webglMultisampledFramebuffer),E.__webglColorRenderbuffer)for(let j=0;j<E.__webglColorRenderbuffer.length;j++)E.__webglColorRenderbuffer[j]&&t.deleteRenderbuffer(E.__webglColorRenderbuffer[j]);E.__webglDepthRenderbuffer&&t.deleteRenderbuffer(E.__webglDepthRenderbuffer)}const I=k.textures;for(let j=0,Y=I.length;j<Y;j++){const se=i.get(I[j]);se.__webglTexture&&(t.deleteTexture(se.__webglTexture),s.memory.textures--),i.remove(I[j])}i.remove(k)}let M=0;function S(){M=0}function B(){const k=M;return k>=r.maxTextures&&console.warn("THREE.WebGLTextures: Trying to use "+k+" texture units while this GPU supports only "+r.maxTextures),M+=1,k}function V(k){const E=[];return E.push(k.wrapS),E.push(k.wrapT),E.push(k.wrapR||0),E.push(k.magFilter),E.push(k.minFilter),E.push(k.anisotropy),E.push(k.internalFormat),E.push(k.format),E.push(k.type),E.push(k.generateMipmaps),E.push(k.premultiplyAlpha),E.push(k.flipY),E.push(k.unpackAlignment),E.push(k.colorSpace),E.join()}function z(k,E){const I=i.get(k);if(k.isVideoTexture&&K(k),k.isRenderTargetTexture===!1&&k.version>0&&I.__version!==k.version){const j=k.image;if(j===null)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else if(j.complete===!1)console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete");else{J(I,k,E);return}}n.bindTexture(t.TEXTURE_2D,I.__webglTexture,t.TEXTURE0+E)}function Q(k,E){const I=i.get(k);if(k.version>0&&I.__version!==k.version){J(I,k,E);return}n.bindTexture(t.TEXTURE_2D_ARRAY,I.__webglTexture,t.TEXTURE0+E)}function Z(k,E){const I=i.get(k);if(k.version>0&&I.__version!==k.version){J(I,k,E);return}n.bindTexture(t.TEXTURE_3D,I.__webglTexture,t.TEXTURE0+E)}function q(k,E){const I=i.get(k);if(k.version>0&&I.__version!==k.version){ye(I,k,E);return}n.bindTexture(t.TEXTURE_CUBE_MAP,I.__webglTexture,t.TEXTURE0+E)}const te={[D2]:t.REPEAT,[Vo]:t.CLAMP_TO_EDGE,[L2]:t.MIRRORED_REPEAT},$={[hr]:t.NEAREST,[bie]:t.NEAREST_MIPMAP_NEAREST,[Dh]:t.NEAREST_MIPMAP_LINEAR,[Mr]:t.LINEAR,[xv]:t.LINEAR_MIPMAP_NEAREST,[Ho]:t.LINEAR_MIPMAP_LINEAR},ee={[kie]:t.NEVER,[Vie]:t.ALWAYS,[Oie]:t.LESS,[C4]:t.LEQUAL,[Nie]:t.EQUAL,[Bie]:t.GEQUAL,[Uie]:t.GREATER,[Fie]:t.NOTEQUAL};function le(k,E){if(E.type===Us&&e.has("OES_texture_float_linear")===!1&&(E.magFilter===Mr||E.magFilter===xv||E.magFilter===Dh||E.magFilter===Ho||E.minFilter===Mr||E.minFilter===xv||E.minFilter===Dh||E.minFilter===Ho)&&console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."),t.texParameteri(k,t.TEXTURE_WRAP_S,te[E.wrapS]),t.texParameteri(k,t.TEXTURE_WRAP_T,te[E.wrapT]),(k===t.TEXTURE_3D||k===t.TEXTURE_2D_ARRAY)&&t.texParameteri(k,t.TEXTURE_WRAP_R,te[E.wrapR]),t.texParameteri(k,t.TEXTURE_MAG_FILTER,$[E.magFilter]),t.texParameteri(k,t.TEXTURE_MIN_FILTER,$[E.minFilter]),E.compareFunction&&(t.texParameteri(k,t.TEXTURE_COMPARE_MODE,t.COMPARE_REF_TO_TEXTURE),t.texParameteri(k,t.TEXTURE_COMPARE_FUNC,ee[E.compareFunction])),e.has("EXT_texture_filter_anisotropic")===!0){if(E.magFilter===hr||E.minFilter!==Dh&&E.minFilter!==Ho||E.type===Us&&e.has("OES_texture_float_linear")===!1)return;if(E.anisotropy>1||i.get(E).__currentAnisotropy){const I=e.get("EXT_texture_filter_anisotropic");t.texParameterf(k,I.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(E.anisotropy,r.getMaxAnisotropy())),i.get(E).__currentAnisotropy=E.anisotropy}}}function xe(k,E){let I=!1;k.__webglInit===void 0&&(k.__webglInit=!0,E.addEventListener("dispose",b));const j=E.source;let Y=f.get(j);Y===void 0&&(Y={},f.set(j,Y));const se=V(E);if(se!==k.__cacheKey){Y[se]===void 0&&(Y[se]={texture:t.createTexture(),usedTimes:0},s.memory.textures++,I=!0),Y[se].usedTimes++;const Te=Y[k.__cacheKey];Te!==void 0&&(Y[k.__cacheKey].usedTimes--,Te.usedTimes===0&&D(E)),k.__cacheKey=se,k.__webglTexture=Y[se].texture}return I}function J(k,E,I){let j=t.TEXTURE_2D;(E.isDataArrayTexture||E.isCompressedArrayTexture)&&(j=t.TEXTURE_2D_ARRAY),E.isData3DTexture&&(j=t.TEXTURE_3D);const Y=xe(k,E),se=E.source;n.bindTexture(j,k.__webglTexture,t.TEXTURE0+I);const Te=i.get(se);if(se.version!==Te.__version||Y===!0){n.activeTexture(t.TEXTURE0+I);const X=en.getPrimaries(en.workingColorSpace),ce=E.colorSpace===ks?null:en.getPrimaries(E.colorSpace),Ie=E.colorSpace===ks||X===ce?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,E.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,E.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,E.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,Ie);let Me=v(E.image,!1,r.maxTextureSize);Me=ue(E,Me);const Oe=a.convert(E.format,E.colorSpace),$e=a.convert(E.type);let Be=y(E.internalFormat,Oe,$e,E.colorSpace,E.isVideoTexture);le(j,E);let Ne;const lt=E.mipmaps,Ze=E.isVideoTexture!==!0&&Be!==M4,ct=Te.__version===void 0||Y===!0,ft=se.dataReady,pt=_(E,Me);if(E.isDepthTexture)Be=t.DEPTH_COMPONENT16,E.type===Us?Be=t.DEPTH_COMPONENT32F:E.type===Yl?Be=t.DEPTH_COMPONENT24:E.type===Sf&&(Be=t.DEPTH24_STENCIL8),ct&&(Ze?n.texStorage2D(t.TEXTURE_2D,1,Be,Me.width,Me.height):n.texImage2D(t.TEXTURE_2D,0,Be,Me.width,Me.height,0,Oe,$e,null));else if(E.isDataTexture)if(lt.length>0){Ze&&ct&&n.texStorage2D(t.TEXTURE_2D,pt,Be,lt[0].width,lt[0].height);for(let Je=0,L=lt.length;Je<L;Je++)Ne=lt[Je],Ze?ft&&n.texSubImage2D(t.TEXTURE_2D,Je,0,0,Ne.width,Ne.height,Oe,$e,Ne.data):n.texImage2D(t.TEXTURE_2D,Je,Be,Ne.width,Ne.height,0,Oe,$e,Ne.data);E.generateMipmaps=!1}else Ze?(ct&&n.texStorage2D(t.TEXTURE_2D,pt,Be,Me.width,Me.height),ft&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,Me.width,Me.height,Oe,$e,Me.data)):n.texImage2D(t.TEXTURE_2D,0,Be,Me.width,Me.height,0,Oe,$e,Me.data);else if(E.isCompressedTexture)if(E.isCompressedArrayTexture){Ze&&ct&&n.texStorage3D(t.TEXTURE_2D_ARRAY,pt,Be,lt[0].width,lt[0].height,Me.depth);for(let Je=0,L=lt.length;Je<L;Je++)Ne=lt[Je],E.format!==va?Oe!==null?Ze?ft&&n.compressedTexSubImage3D(t.TEXTURE_2D_ARRAY,Je,0,0,0,Ne.width,Ne.height,Me.depth,Oe,Ne.data,0,0):n.compressedTexImage3D(t.TEXTURE_2D_ARRAY,Je,Be,Ne.width,Ne.height,Me.depth,0,Ne.data,0,0):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Ze?ft&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,Je,0,0,0,Ne.width,Ne.height,Me.depth,Oe,$e,Ne.data):n.texImage3D(t.TEXTURE_2D_ARRAY,Je,Be,Ne.width,Ne.height,Me.depth,0,Oe,$e,Ne.data)}else{Ze&&ct&&n.texStorage2D(t.TEXTURE_2D,pt,Be,lt[0].width,lt[0].height);for(let Je=0,L=lt.length;Je<L;Je++)Ne=lt[Je],E.format!==va?Oe!==null?Ze?ft&&n.compressedTexSubImage2D(t.TEXTURE_2D,Je,0,0,Ne.width,Ne.height,Oe,Ne.data):n.compressedTexImage2D(t.TEXTURE_2D,Je,Be,Ne.width,Ne.height,0,Ne.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):Ze?ft&&n.texSubImage2D(t.TEXTURE_2D,Je,0,0,Ne.width,Ne.height,Oe,$e,Ne.data):n.texImage2D(t.TEXTURE_2D,Je,Be,Ne.width,Ne.height,0,Oe,$e,Ne.data)}else if(E.isDataArrayTexture)Ze?(ct&&n.texStorage3D(t.TEXTURE_2D_ARRAY,pt,Be,Me.width,Me.height,Me.depth),ft&&n.texSubImage3D(t.TEXTURE_2D_ARRAY,0,0,0,0,Me.width,Me.height,Me.depth,Oe,$e,Me.data)):n.texImage3D(t.TEXTURE_2D_ARRAY,0,Be,Me.width,Me.height,Me.depth,0,Oe,$e,Me.data);else if(E.isData3DTexture)Ze?(ct&&n.texStorage3D(t.TEXTURE_3D,pt,Be,Me.width,Me.height,Me.depth),ft&&n.texSubImage3D(t.TEXTURE_3D,0,0,0,0,Me.width,Me.height,Me.depth,Oe,$e,Me.data)):n.texImage3D(t.TEXTURE_3D,0,Be,Me.width,Me.height,Me.depth,0,Oe,$e,Me.data);else if(E.isFramebufferTexture){if(ct)if(Ze)n.texStorage2D(t.TEXTURE_2D,pt,Be,Me.width,Me.height);else{let Je=Me.width,L=Me.height;for(let Ae=0;Ae<pt;Ae++)n.texImage2D(t.TEXTURE_2D,Ae,Be,Je,L,0,Oe,$e,null),Je>>=1,L>>=1}}else if(lt.length>0){if(Ze&&ct){const Je=Se(lt[0]);n.texStorage2D(t.TEXTURE_2D,pt,Be,Je.width,Je.height)}for(let Je=0,L=lt.length;Je<L;Je++)Ne=lt[Je],Ze?ft&&n.texSubImage2D(t.TEXTURE_2D,Je,0,0,Oe,$e,Ne):n.texImage2D(t.TEXTURE_2D,Je,Be,Oe,$e,Ne);E.generateMipmaps=!1}else if(Ze){if(ct){const Je=Se(Me);n.texStorage2D(t.TEXTURE_2D,pt,Be,Je.width,Je.height)}ft&&n.texSubImage2D(t.TEXTURE_2D,0,0,0,Oe,$e,Me)}else n.texImage2D(t.TEXTURE_2D,0,Be,Oe,$e,Me);m(E)&&p(j),Te.__version=se.version,E.onUpdate&&E.onUpdate(E)}k.__version=E.version}function ye(k,E,I){if(E.image.length!==6)return;const j=xe(k,E),Y=E.source;n.bindTexture(t.TEXTURE_CUBE_MAP,k.__webglTexture,t.TEXTURE0+I);const se=i.get(Y);if(Y.version!==se.__version||j===!0){n.activeTexture(t.TEXTURE0+I);const Te=en.getPrimaries(en.workingColorSpace),X=E.colorSpace===ks?null:en.getPrimaries(E.colorSpace),ce=E.colorSpace===ks||Te===X?t.NONE:t.BROWSER_DEFAULT_WEBGL;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,E.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,E.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,E.unpackAlignment),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,ce);const Ie=E.isCompressedTexture||E.image[0].isCompressedTexture,Me=E.image[0]&&E.image[0].isDataTexture,Oe=[];for(let L=0;L<6;L++)!Ie&&!Me?Oe[L]=v(E.image[L],!0,r.maxCubemapSize):Oe[L]=Me?E.image[L].image:E.image[L],Oe[L]=ue(E,Oe[L]);const $e=Oe[0],Be=a.convert(E.format,E.colorSpace),Ne=a.convert(E.type),lt=y(E.internalFormat,Be,Ne,E.colorSpace),Ze=E.isVideoTexture!==!0,ct=se.__version===void 0||j===!0,ft=Y.dataReady;let pt=_(E,$e);le(t.TEXTURE_CUBE_MAP,E);let Je;if(Ie){Ze&&ct&&n.texStorage2D(t.TEXTURE_CUBE_MAP,pt,lt,$e.width,$e.height);for(let L=0;L<6;L++){Je=Oe[L].mipmaps;for(let Ae=0;Ae<Je.length;Ae++){const Pe=Je[Ae];E.format!==va?Be!==null?Ze?ft&&n.compressedTexSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae,0,0,Pe.width,Pe.height,Be,Pe.data):n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae,lt,Pe.width,Pe.height,0,Pe.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):Ze?ft&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae,0,0,Pe.width,Pe.height,Be,Ne,Pe.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae,lt,Pe.width,Pe.height,0,Be,Ne,Pe.data)}}}else{if(Je=E.mipmaps,Ze&&ct){Je.length>0&&pt++;const L=Se(Oe[0]);n.texStorage2D(t.TEXTURE_CUBE_MAP,pt,lt,L.width,L.height)}for(let L=0;L<6;L++)if(Me){Ze?ft&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,0,0,0,Oe[L].width,Oe[L].height,Be,Ne,Oe[L].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,0,lt,Oe[L].width,Oe[L].height,0,Be,Ne,Oe[L].data);for(let Ae=0;Ae<Je.length;Ae++){const We=Je[Ae].image[L].image;Ze?ft&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae+1,0,0,We.width,We.height,Be,Ne,We.data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae+1,lt,We.width,We.height,0,Be,Ne,We.data)}}else{Ze?ft&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,0,0,0,Be,Ne,Oe[L]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,0,lt,Be,Ne,Oe[L]);for(let Ae=0;Ae<Je.length;Ae++){const Pe=Je[Ae];Ze?ft&&n.texSubImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae+1,0,0,Be,Ne,Pe.image[L]):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+L,Ae+1,lt,Be,Ne,Pe.image[L])}}}m(E)&&p(t.TEXTURE_CUBE_MAP),se.__version=Y.version,E.onUpdate&&E.onUpdate(E)}k.__version=E.version}function H(k,E,I,j,Y,se){const Te=a.convert(I.format,I.colorSpace),X=a.convert(I.type),ce=y(I.internalFormat,Te,X,I.colorSpace);if(!i.get(E).__hasExternalTextures){const Me=Math.max(1,E.width>>se),Oe=Math.max(1,E.height>>se);Y===t.TEXTURE_3D||Y===t.TEXTURE_2D_ARRAY?n.texImage3D(Y,se,ce,Me,Oe,E.depth,0,Te,X,null):n.texImage2D(Y,se,ce,Me,Oe,0,Te,X,null)}n.bindFramebuffer(t.FRAMEBUFFER,k),U(E)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,j,Y,i.get(I).__webglTexture,0,Fe(E)):(Y===t.TEXTURE_2D||Y>=t.TEXTURE_CUBE_MAP_POSITIVE_X&&Y<=t.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&t.framebufferTexture2D(t.FRAMEBUFFER,j,Y,i.get(I).__webglTexture,se),n.bindFramebuffer(t.FRAMEBUFFER,null)}function ie(k,E,I){if(t.bindRenderbuffer(t.RENDERBUFFER,k),E.depthBuffer&&!E.stencilBuffer){let j=t.DEPTH_COMPONENT24;if(I||U(E)){const Y=E.depthTexture;Y&&Y.isDepthTexture&&(Y.type===Us?j=t.DEPTH_COMPONENT32F:Y.type===Yl&&(j=t.DEPTH_COMPONENT24));const se=Fe(E);U(E)?o.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,se,j,E.width,E.height):t.renderbufferStorageMultisample(t.RENDERBUFFER,se,j,E.width,E.height)}else t.renderbufferStorage(t.RENDERBUFFER,j,E.width,E.height);t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,k)}else if(E.depthBuffer&&E.stencilBuffer){const j=Fe(E);I&&U(E)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,j,t.DEPTH24_STENCIL8,E.width,E.height):U(E)?o.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,j,t.DEPTH24_STENCIL8,E.width,E.height):t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,E.width,E.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,k)}else{const j=E.textures;for(let Y=0;Y<j.length;Y++){const se=j[Y],Te=a.convert(se.format,se.colorSpace),X=a.convert(se.type),ce=y(se.internalFormat,Te,X,se.colorSpace),Ie=Fe(E);I&&U(E)===!1?t.renderbufferStorageMultisample(t.RENDERBUFFER,Ie,ce,E.width,E.height):U(E)?o.renderbufferStorageMultisampleEXT(t.RENDERBUFFER,Ie,ce,E.width,E.height):t.renderbufferStorage(t.RENDERBUFFER,ce,E.width,E.height)}}t.bindRenderbuffer(t.RENDERBUFFER,null)}function _e(k,E){if(E&&E.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(t.FRAMEBUFFER,k),!(E.depthTexture&&E.depthTexture.isDepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");(!i.get(E.depthTexture).__webglTexture||E.depthTexture.image.width!==E.width||E.depthTexture.image.height!==E.height)&&(E.depthTexture.image.width=E.width,E.depthTexture.image.height=E.height,E.depthTexture.needsUpdate=!0),z(E.depthTexture,0);const j=i.get(E.depthTexture).__webglTexture,Y=Fe(E);if(E.depthTexture.format===Al)U(E)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,j,0,Y):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,j,0);else if(E.depthTexture.format===Jd)U(E)?o.framebufferTexture2DMultisampleEXT(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,j,0,Y):t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,j,0);else throw new Error("Unknown depthTexture format")}function W(k){const E=i.get(k),I=k.isWebGLCubeRenderTarget===!0;if(k.depthTexture&&!E.__autoAllocateDepthBuffer){if(I)throw new Error("target.depthTexture not supported in Cube render targets");_e(E.__webglFramebuffer,k)}else if(I){E.__webglDepthbuffer=[];for(let j=0;j<6;j++)n.bindFramebuffer(t.FRAMEBUFFER,E.__webglFramebuffer[j]),E.__webglDepthbuffer[j]=t.createRenderbuffer(),ie(E.__webglDepthbuffer[j],k,!1)}else n.bindFramebuffer(t.FRAMEBUFFER,E.__webglFramebuffer),E.__webglDepthbuffer=t.createRenderbuffer(),ie(E.__webglDepthbuffer,k,!1);n.bindFramebuffer(t.FRAMEBUFFER,null)}function be(k,E,I){const j=i.get(k);E!==void 0&&H(j.__webglFramebuffer,k,k.texture,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,0),I!==void 0&&W(k)}function ge(k){const E=k.texture,I=i.get(k),j=i.get(E);k.addEventListener("dispose",x);const Y=k.textures,se=k.isWebGLCubeRenderTarget===!0,Te=Y.length>1;if(Te||(j.__webglTexture===void 0&&(j.__webglTexture=t.createTexture()),j.__version=E.version,s.memory.textures++),se){I.__webglFramebuffer=[];for(let X=0;X<6;X++)if(E.mipmaps&&E.mipmaps.length>0){I.__webglFramebuffer[X]=[];for(let ce=0;ce<E.mipmaps.length;ce++)I.__webglFramebuffer[X][ce]=t.createFramebuffer()}else I.__webglFramebuffer[X]=t.createFramebuffer()}else{if(E.mipmaps&&E.mipmaps.length>0){I.__webglFramebuffer=[];for(let X=0;X<E.mipmaps.length;X++)I.__webglFramebuffer[X]=t.createFramebuffer()}else I.__webglFramebuffer=t.createFramebuffer();if(Te)for(let X=0,ce=Y.length;X<ce;X++){const Ie=i.get(Y[X]);Ie.__webglTexture===void 0&&(Ie.__webglTexture=t.createTexture(),s.memory.textures++)}if(k.samples>0&&U(k)===!1){I.__webglMultisampledFramebuffer=t.createFramebuffer(),I.__webglColorRenderbuffer=[],n.bindFramebuffer(t.FRAMEBUFFER,I.__webglMultisampledFramebuffer);for(let X=0;X<Y.length;X++){const ce=Y[X];I.__webglColorRenderbuffer[X]=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,I.__webglColorRenderbuffer[X]);const Ie=a.convert(ce.format,ce.colorSpace),Me=a.convert(ce.type),Oe=y(ce.internalFormat,Ie,Me,ce.colorSpace,k.isXRRenderTarget===!0),$e=Fe(k);t.renderbufferStorageMultisample(t.RENDERBUFFER,$e,Oe,k.width,k.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+X,t.RENDERBUFFER,I.__webglColorRenderbuffer[X])}t.bindRenderbuffer(t.RENDERBUFFER,null),k.depthBuffer&&(I.__webglDepthRenderbuffer=t.createRenderbuffer(),ie(I.__webglDepthRenderbuffer,k,!0)),n.bindFramebuffer(t.FRAMEBUFFER,null)}}if(se){n.bindTexture(t.TEXTURE_CUBE_MAP,j.__webglTexture),le(t.TEXTURE_CUBE_MAP,E);for(let X=0;X<6;X++)if(E.mipmaps&&E.mipmaps.length>0)for(let ce=0;ce<E.mipmaps.length;ce++)H(I.__webglFramebuffer[X][ce],k,E,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+X,ce);else H(I.__webglFramebuffer[X],k,E,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+X,0);m(E)&&p(t.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(Te){for(let X=0,ce=Y.length;X<ce;X++){const Ie=Y[X],Me=i.get(Ie);n.bindTexture(t.TEXTURE_2D,Me.__webglTexture),le(t.TEXTURE_2D,Ie),H(I.__webglFramebuffer,k,Ie,t.COLOR_ATTACHMENT0+X,t.TEXTURE_2D,0),m(Ie)&&p(t.TEXTURE_2D)}n.unbindTexture()}else{let X=t.TEXTURE_2D;if((k.isWebGL3DRenderTarget||k.isWebGLArrayRenderTarget)&&(X=k.isWebGL3DRenderTarget?t.TEXTURE_3D:t.TEXTURE_2D_ARRAY),n.bindTexture(X,j.__webglTexture),le(X,E),E.mipmaps&&E.mipmaps.length>0)for(let ce=0;ce<E.mipmaps.length;ce++)H(I.__webglFramebuffer[ce],k,E,t.COLOR_ATTACHMENT0,X,ce);else H(I.__webglFramebuffer,k,E,t.COLOR_ATTACHMENT0,X,0);m(E)&&p(X),n.unbindTexture()}k.depthBuffer&&W(k)}function De(k){const E=k.textures;for(let I=0,j=E.length;I<j;I++){const Y=E[I];if(m(Y)){const se=k.isWebGLCubeRenderTarget?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,Te=i.get(Y).__webglTexture;n.bindTexture(se,Te),p(se),n.unbindTexture()}}}function ae(k){if(k.samples>0&&U(k)===!1){const E=k.textures,I=k.width,j=k.height;let Y=t.COLOR_BUFFER_BIT;const se=[],Te=k.stencilBuffer?t.DEPTH_STENCIL_ATTACHMENT:t.DEPTH_ATTACHMENT,X=i.get(k),ce=E.length>1;if(ce)for(let Ie=0;Ie<E.length;Ie++)n.bindFramebuffer(t.FRAMEBUFFER,X.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ie,t.RENDERBUFFER,null),n.bindFramebuffer(t.FRAMEBUFFER,X.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ie,t.TEXTURE_2D,null,0);n.bindFramebuffer(t.READ_FRAMEBUFFER,X.__webglMultisampledFramebuffer),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,X.__webglFramebuffer);for(let Ie=0;Ie<E.length;Ie++){se.push(t.COLOR_ATTACHMENT0+Ie),k.depthBuffer&&se.push(Te);const Me=X.__ignoreDepthValues!==void 0?X.__ignoreDepthValues:!1;if(Me===!1&&(k.depthBuffer&&(Y|=t.DEPTH_BUFFER_BIT),k.stencilBuffer&&X.__isTransmissionRenderTarget!==!0&&(Y|=t.STENCIL_BUFFER_BIT)),ce&&t.framebufferRenderbuffer(t.READ_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.RENDERBUFFER,X.__webglColorRenderbuffer[Ie]),Me===!0&&(t.invalidateFramebuffer(t.READ_FRAMEBUFFER,[Te]),t.invalidateFramebuffer(t.DRAW_FRAMEBUFFER,[Te])),ce){const Oe=i.get(E[Ie]).__webglTexture;t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,Oe,0)}t.blitFramebuffer(0,0,I,j,0,0,I,j,Y,t.NEAREST),u&&t.invalidateFramebuffer(t.READ_FRAMEBUFFER,se)}if(n.bindFramebuffer(t.READ_FRAMEBUFFER,null),n.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),ce)for(let Ie=0;Ie<E.length;Ie++){n.bindFramebuffer(t.FRAMEBUFFER,X.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ie,t.RENDERBUFFER,X.__webglColorRenderbuffer[Ie]);const Me=i.get(E[Ie]).__webglTexture;n.bindFramebuffer(t.FRAMEBUFFER,X.__webglFramebuffer),t.framebufferTexture2D(t.DRAW_FRAMEBUFFER,t.COLOR_ATTACHMENT0+Ie,t.TEXTURE_2D,Me,0)}n.bindFramebuffer(t.DRAW_FRAMEBUFFER,X.__webglMultisampledFramebuffer)}}function Fe(k){return Math.min(r.maxSamples,k.samples)}function U(k){const E=i.get(k);return k.samples>0&&e.has("WEBGL_multisampled_render_to_texture")===!0&&E.__useRenderToTexture!==!1}function K(k){const E=s.render.frame;l.get(k)!==E&&(l.set(k,E),k.update())}function ue(k,E){const I=k.colorSpace,j=k.format,Y=k.type;return k.isCompressedTexture===!0||k.isVideoTexture===!0||I!==io&&I!==ks&&(en.getTransfer(I)===fn?(j!==va||Y!==Ws)&&console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture color space:",I)),E}function Se(k){return typeof HTMLImageElement<"u"&&k instanceof HTMLImageElement?(c.width=k.naturalWidth||k.width,c.height=k.naturalHeight||k.height):typeof VideoFrame<"u"&&k instanceof VideoFrame?(c.width=k.displayWidth,c.height=k.displayHeight):(c.width=k.width,c.height=k.height),c}this.allocateTextureUnit=B,this.resetTextureUnits=S,this.setTexture2D=z,this.setTexture2DArray=Q,this.setTexture3D=Z,this.setTextureCube=q,this.rebindTextures=be,this.setupRenderTarget=ge,this.updateRenderTargetMipmap=De,this.updateMultisampleRenderTarget=ae,this.setupDepthRenderbuffer=W,this.setupFrameBufferTexture=H,this.useMultisampledRTT=U}function zue(t,e){function n(i,r=ks){let a;const s=en.getTransfer(r);if(i===Ws)return t.UNSIGNED_BYTE;if(i===x4)return t.UNSIGNED_SHORT_4_4_4_4;if(i===A4)return t.UNSIGNED_SHORT_5_5_5_1;if(i===xie)return t.UNSIGNED_INT_5_9_9_9_REV;if(i===yie)return t.BYTE;if(i===Eie)return t.SHORT;if(i===y4)return t.UNSIGNED_SHORT;if(i===E4)return t.INT;if(i===Yl)return t.UNSIGNED_INT;if(i===Us)return t.FLOAT;if(i===e0)return t.HALF_FLOAT;if(i===Aie)return t.ALPHA;if(i===Sie)return t.RGB;if(i===va)return t.RGBA;if(i===Tie)return t.LUMINANCE;if(i===wie)return t.LUMINANCE_ALPHA;if(i===Al)return t.DEPTH_COMPONENT;if(i===Jd)return t.DEPTH_STENCIL;if(i===Mie)return t.RED;if(i===S4)return t.RED_INTEGER;if(i===Cie)return t.RG;if(i===T4)return t.RG_INTEGER;if(i===w4)return t.RGBA_INTEGER;if(i===Av||i===Sv||i===Tv||i===wv)if(s===fn)if(a=e.get("WEBGL_compressed_texture_s3tc_srgb"),a!==null){if(i===Av)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(i===Sv)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(i===Tv)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(i===wv)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null;else if(a=e.get("WEBGL_compressed_texture_s3tc"),a!==null){if(i===Av)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(i===Sv)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(i===Tv)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(i===wv)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null;if(i===FT||i===BT||i===VT||i===HT)if(a=e.get("WEBGL_compressed_texture_pvrtc"),a!==null){if(i===FT)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(i===BT)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(i===VT)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(i===HT)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null;if(i===M4)return a=e.get("WEBGL_compressed_texture_etc1"),a!==null?a.COMPRESSED_RGB_ETC1_WEBGL:null;if(i===zT||i===$T)if(a=e.get("WEBGL_compressed_texture_etc"),a!==null){if(i===zT)return s===fn?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(i===$T)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}else return null;if(i===WT||i===GT||i===qT||i===jT||i===XT||i===YT||i===KT||i===ZT||i===JT||i===QT||i===e3||i===t3||i===n3||i===i3)if(a=e.get("WEBGL_compressed_texture_astc"),a!==null){if(i===WT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(i===GT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(i===qT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(i===jT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(i===XT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(i===YT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(i===KT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(i===ZT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(i===JT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(i===QT)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(i===e3)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(i===t3)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(i===n3)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(i===i3)return s===fn?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null;if(i===Mv||i===r3||i===a3)if(a=e.get("EXT_texture_compression_bptc"),a!==null){if(i===Mv)return s===fn?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(i===r3)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(i===a3)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null;if(i===Die||i===s3||i===o3||i===u3)if(a=e.get("EXT_texture_compression_rgtc"),a!==null){if(i===Mv)return a.COMPRESSED_RED_RGTC1_EXT;if(i===s3)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(i===o3)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(i===u3)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null;return i===Sf?t.UNSIGNED_INT_24_8:t[i]!==void 0?t[i]:null}return{convert:n}}class $ue extends Tr{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class Zh extends $i{constructor(){super(),this.isGroup=!0,this.type="Group"}}const Wue={type:"move"};class Qv{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return this._hand===null&&(this._hand=new Zh,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return this._targetRay===null&&(this._targetRay=new Zh,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new ve,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new ve),this._targetRay}getGripSpace(){return this._grip===null&&(this._grip=new Zh,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new ve,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new ve),this._grip}dispatchEvent(e){return this._targetRay!==null&&this._targetRay.dispatchEvent(e),this._grip!==null&&this._grip.dispatchEvent(e),this._hand!==null&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const n=this._hand;if(n)for(const i of e.hand.values())this._getHandJoint(n,i)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),this._targetRay!==null&&(this._targetRay.visible=!1),this._grip!==null&&(this._grip.visible=!1),this._hand!==null&&(this._hand.visible=!1),this}update(e,n,i){let r=null,a=null,s=null;const o=this._targetRay,u=this._grip,c=this._hand;if(e&&n.session.visibilityState!=="visible-blurred"){if(c&&e.hand){s=!0;for(const v of e.hand.values()){const m=n.getJointPose(v,i),p=this._getHandJoint(c,v);m!==null&&(p.matrix.fromArray(m.transform.matrix),p.matrix.decompose(p.position,p.rotation,p.scale),p.matrixWorldNeedsUpdate=!0,p.jointRadius=m.radius),p.visible=m!==null}const l=c.joints["index-finger-tip"],d=c.joints["thumb-tip"],f=l.position.distanceTo(d.position),h=.02,g=.005;c.inputState.pinching&&f>h+g?(c.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!c.inputState.pinching&&f<=h-g&&(c.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else u!==null&&e.gripSpace&&(a=n.getPose(e.gripSpace,i),a!==null&&(u.matrix.fromArray(a.transform.matrix),u.matrix.decompose(u.position,u.rotation,u.scale),u.matrixWorldNeedsUpdate=!0,a.linearVelocity?(u.hasLinearVelocity=!0,u.linearVelocity.copy(a.linearVelocity)):u.hasLinearVelocity=!1,a.angularVelocity?(u.hasAngularVelocity=!0,u.angularVelocity.copy(a.angularVelocity)):u.hasAngularVelocity=!1));o!==null&&(r=n.getPose(e.targetRaySpace,i),r===null&&a!==null&&(r=a),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(Wue)))}return o!==null&&(o.visible=r!==null),u!==null&&(u.visible=a!==null),c!==null&&(c.visible=s!==null),this}_getHandJoint(e,n){if(e.joints[n.jointName]===void 0){const i=new Zh;i.matrixAutoUpdate=!1,i.visible=!1,e.joints[n.jointName]=i,e.add(i)}return e.joints[n.jointName]}}const Gue=`
5802void main() {
5803
5804	gl_Position = vec4( position, 1.0 );
5805
5806}`,que=`
5807uniform sampler2DArray depthColor;
5808uniform float depthWidth;
5809uniform float depthHeight;
5810
5811void main() {
5812
5813	vec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );
5814
5815	if ( coord.x >= 1.0 ) {
5816
5817		gl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;
5818
5819	} else {
5820
5821		gl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;
5822
5823	}
5824
5825}`;class jue{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,n,i){if(this.texture===null){const r=new zi,a=e.properties.get(r);a.__webglTexture=n.texture,(n.depthNear!=i.depthNear||n.depthFar!=i.depthFar)&&(this.depthNear=n.depthNear,this.depthFar=n.depthFar),this.texture=r}}render(e,n){if(this.texture!==null){if(this.mesh===null){const i=n.cameras[0].viewport,r=new rs({vertexShader:Gue,fragmentShader:que,uniforms:{depthColor:{value:this.texture},depthWidth:{value:i.z},depthHeight:{value:i.w}}});this.mesh=new pr(new sg(20,20),r)}e.render(this.mesh,n)}}reset(){this.texture=null,this.mesh=null}}class Xue extends fu{constructor(e,n){super();const i=this;let r=null,a=1,s=null,o="local-floor",u=1,c=null,l=null,d=null,f=null,h=null,g=null;const v=new jue,m=n.getContextAttributes();let p=null,y=null;const _=[],b=[],x=new vt;let w=null;const D=new Tr;D.layers.enable(1),D.viewport=new si;const O=new Tr;O.layers.enable(2),O.viewport=new si;const M=[D,O],S=new $ue;S.layers.enable(1),S.layers.enable(2);let B=null,V=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(H){let ie=_[H];return ie===void 0&&(ie=new Qv,_[H]=ie),ie.getTargetRaySpace()},this.getControllerGrip=function(H){let ie=_[H];return ie===void 0&&(ie=new Qv,_[H]=ie),ie.getGripSpace()},this.getHand=function(H){let ie=_[H];return ie===void 0&&(ie=new Qv,_[H]=ie),ie.getHandSpace()};function z(H){const ie=b.indexOf(H.inputSource);if(ie===-1)return;const _e=_[ie];_e!==void 0&&(_e.update(H.inputSource,H.frame,c||s),_e.dispatchEvent({type:H.type,data:H.inputSource}))}function Q(){r.removeEventListener("select",z),r.removeEventListener("selectstart",z),r.removeEventListener("selectend",z),r.removeEventListener("squeeze",z),r.removeEventListener("squeezestart",z),r.removeEventListener("squeezeend",z),r.removeEventListener("end",Q),r.removeEventListener("inputsourceschange",Z);for(let H=0;H<_.length;H++){const ie=b[H];ie!==null&&(b[H]=null,_[H].disconnect(ie))}B=null,V=null,v.reset(),e.setRenderTarget(p),h=null,f=null,d=null,r=null,y=null,ye.stop(),i.isPresenting=!1,e.setPixelRatio(w),e.setSize(x.width,x.height,!1),i.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(H){a=H,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(H){o=H,i.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||s},this.setReferenceSpace=function(H){c=H},this.getBaseLayer=function(){return f!==null?f:h},this.getBinding=function(){return d},this.getFrame=function(){return g},this.getSession=function(){return r},this.setSession=async function(H){if(r=H,r!==null){if(p=e.getRenderTarget(),r.addEventListener("select",z),r.addEventListener("selectstart",z),r.addEventListener("selectend",z),r.addEventListener("squeeze",z),r.addEventListener("squeezestart",z),r.addEventListener("squeezeend",z),r.addEventListener("end",Q),r.addEventListener("inputsourceschange",Z),m.xrCompatible!==!0&&await n.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(x),r.renderState.layers===void 0){const ie={antialias:m.antialias,alpha:!0,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:a};h=new XRWebGLLayer(r,n,ie),r.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),y=new au(h.framebufferWidth,h.framebufferHeight,{format:va,type:Ws,colorSpace:e.outputColorSpace,stencilBuffer:m.stencil})}else{let ie=null,_e=null,W=null;m.depth&&(W=m.stencil?n.DEPTH24_STENCIL8:n.DEPTH_COMPONENT24,ie=m.stencil?Jd:Al,_e=m.stencil?Sf:Yl);const be={colorFormat:n.RGBA8,depthFormat:W,scaleFactor:a};d=new XRWebGLBinding(r,n),f=d.createProjectionLayer(be),r.updateRenderState({layers:[f]}),e.setPixelRatio(1),e.setSize(f.textureWidth,f.textureHeight,!1),y=new au(f.textureWidth,f.textureHeight,{format:va,type:Ws,depthTexture:new H4(f.textureWidth,f.textureHeight,_e,void 0,void 0,void 0,void 0,void 0,void 0,ie),stencilBuffer:m.stencil,colorSpace:e.outputColorSpace,samples:m.antialias?4:0});const ge=e.properties.get(y);ge.__ignoreDepthValues=f.ignoreDepthValues}y.isXRRenderTarget=!0,this.setFoveation(u),c=null,s=await r.requestReferenceSpace(o),ye.setContext(r),ye.start(),i.isPresenting=!0,i.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode};function Z(H){for(let ie=0;ie<H.removed.length;ie++){const _e=H.removed[ie],W=b.indexOf(_e);W>=0&&(b[W]=null,_[W].disconnect(_e))}for(let ie=0;ie<H.added.length;ie++){const _e=H.added[ie];let W=b.indexOf(_e);if(W===-1){for(let ge=0;ge<_.length;ge++)if(ge>=b.length){b.push(_e),W=ge;break}else if(b[ge]===null){b[ge]=_e,W=ge;break}if(W===-1)break}const be=_[W];be&&be.connect(_e)}}const q=new ve,te=new ve;function $(H,ie,_e){q.setFromMatrixPosition(ie.matrixWorld),te.setFromMatrixPosition(_e.matrixWorld);const W=q.distanceTo(te),be=ie.projectionMatrix.elements,ge=_e.projectionMatrix.elements,De=be[14]/(be[10]-1),ae=be[14]/(be[10]+1),Fe=(be[9]+1)/be[5],U=(be[9]-1)/be[5],K=(be[8]-1)/be[0],ue=(ge[8]+1)/ge[0],Se=De*K,k=De*ue,E=W/(-K+ue),I=E*-K;ie.matrixWorld.decompose(H.position,H.quaternion,H.scale),H.translateX(I),H.translateZ(E),H.matrixWorld.compose(H.position,H.quaternion,H.scale),H.matrixWorldInverse.copy(H.matrixWorld).invert();const j=De+E,Y=ae+E,se=Se-I,Te=k+(W-I),X=Fe*ae/Y*j,ce=U*ae/Y*j;H.projectionMatrix.makePerspective(se,Te,X,ce,j,Y),H.projectionMatrixInverse.copy(H.projectionMatrix).invert()}function ee(H,ie){ie===null?H.matrixWorld.copy(H.matrix):H.matrixWorld.multiplyMatrices(ie.matrixWorld,H.matrix),H.matrixWorldInverse.copy(H.matrixWorld).invert()}this.updateCamera=function(H){if(r===null)return;v.texture!==null&&(H.near=v.depthNear,H.far=v.depthFar),S.near=O.near=D.near=H.near,S.far=O.far=D.far=H.far,(B!==S.near||V!==S.far)&&(r.updateRenderState({depthNear:S.near,depthFar:S.far}),B=S.near,V=S.far,D.near=B,D.far=V,O.near=B,O.far=V,D.updateProjectionMatrix(),O.updateProjectionMatrix(),H.updateProjectionMatrix());const ie=H.parent,_e=S.cameras;ee(S,ie);for(let W=0;W<_e.length;W++)ee(_e[W],ie);_e.length===2?$(S,D,O):S.projectionMatrix.copy(D.projectionMatrix),le(H,S,ie)};function le(H,ie,_e){_e===null?H.matrix.copy(ie.matrixWorld):(H.matrix.copy(_e.matrixWorld),H.matrix.invert(),H.matrix.multiply(ie.matrixWorld)),H.matrix.decompose(H.position,H.quaternion,H.scale),H.updateMatrixWorld(!0),H.projectionMatrix.copy(ie.projectionMatrix),H.projectionMatrixInverse.copy(ie.projectionMatrixInverse),H.isPerspectiveCamera&&(H.fov=R2*2*Math.atan(1/H.projectionMatrix.elements[5]),H.zoom=1)}this.getCamera=function(){return S},this.getFoveation=function(){if(!(f===null&&h===null))return u},this.setFoveation=function(H){u=H,f!==null&&(f.fixedFoveation=H),h!==null&&h.fixedFoveation!==void 0&&(h.fixedFoveation=H)},this.hasDepthSensing=function(){return v.texture!==null};let xe=null;function J(H,ie){if(l=ie.getViewerPose(c||s),g=ie,l!==null){const _e=l.views;h!==null&&(e.setRenderTargetFramebuffer(y,h.framebuffer),e.setRenderTarget(y));let W=!1;_e.length!==S.cameras.length&&(S.cameras.length=0,W=!0);for(let ge=0;ge<_e.length;ge++){const De=_e[ge];let ae=null;if(h!==null)ae=h.getViewport(De);else{const U=d.getViewSubImage(f,De);ae=U.viewport,ge===0&&(e.setRenderTargetTextures(y,U.colorTexture,f.ignoreDepthValues?void 0:U.depthStencilTexture),e.setRenderTarget(y))}let Fe=M[ge];Fe===void 0&&(Fe=new Tr,Fe.layers.enable(ge),Fe.viewport=new si,M[ge]=Fe),Fe.matrix.fromArray(De.transform.matrix),Fe.matrix.decompose(Fe.position,Fe.quaternion,Fe.scale),Fe.projectionMatrix.fromArray(De.projectionMatrix),Fe.projectionMatrixInverse.copy(Fe.projectionMatrix).invert(),Fe.viewport.set(ae.x,ae.y,ae.width,ae.height),ge===0&&(S.matrix.copy(Fe.matrix),S.matrix.decompose(S.position,S.quaternion,S.scale)),W===!0&&S.cameras.push(Fe)}const be=r.enabledFeatures;if(be&&be.includes("depth-sensing")){const ge=d.getDepthInformation(_e[0]);ge&&ge.isValid&&ge.texture&&v.init(e,ge,r.renderState)}}for(let _e=0;_e<_.length;_e++){const W=b[_e],be=_[_e];W!==null&&be!==void 0&&be.update(W,ie,c||s)}v.render(e,S),xe&&xe(H,ie),ie.detectedPlanes&&i.dispatchEvent({type:"planesdetected",data:ie}),g=null}const ye=new B4;ye.setAnimationLoop(J),this.setAnimationLoop=function(H){xe=H},this.dispose=function(){}}}const To=new is,Yue=new Rn;function Kue(t,e){function n(m,p){m.matrixAutoUpdate===!0&&m.updateMatrix(),p.value.copy(m.matrix)}function i(m,p){p.color.getRGB(m.fogColor.value,O4(t)),p.isFog?(m.fogNear.value=p.near,m.fogFar.value=p.far):p.isFogExp2&&(m.fogDensity.value=p.density)}function r(m,p,y,_,b){p.isMeshBasicMaterial||p.isMeshLambertMaterial?a(m,p):p.isMeshToonMaterial?(a(m,p),d(m,p)):p.isMeshPhongMaterial?(a(m,p),l(m,p)):p.isMeshStandardMaterial?(a(m,p),f(m,p),p.isMeshPhysicalMaterial&&h(m,p,b)):p.isMeshMatcapMaterial?(a(m,p),g(m,p)):p.isMeshDepthMaterial?a(m,p):p.isMeshDistanceMaterial?(a(m,p),v(m,p)):p.isMeshNormalMaterial?a(m,p):p.isLineBasicMaterial?(s(m,p),p.isLineDashedMaterial&&o(m,p)):p.isPointsMaterial?u(m,p,y,_):p.isSpriteMaterial?c(m,p):p.isShadowMaterial?(m.color.value.copy(p.color),m.opacity.value=p.opacity):p.isShaderMaterial&&(p.uniformsNeedUpdate=!1)}function a(m,p){m.opacity.value=p.opacity,p.color&&m.diffuse.value.copy(p.color),p.emissive&&m.emissive.value.copy(p.emissive).multiplyScalar(p.emissiveIntensity),p.map&&(m.map.value=p.map,n(p.map,m.mapTransform)),p.alphaMap&&(m.alphaMap.value=p.alphaMap,n(p.alphaMap,m.alphaMapTransform)),p.bumpMap&&(m.bumpMap.value=p.bumpMap,n(p.bumpMap,m.bumpMapTransform),m.bumpScale.value=p.bumpScale,p.side===Hi&&(m.bumpScale.value*=-1)),p.normalMap&&(m.normalMap.value=p.normalMap,n(p.normalMap,m.normalMapTransform),m.normalScale.value.copy(p.normalScale),p.side===Hi&&m.normalScale.value.negate()),p.displacementMap&&(m.displacementMap.value=p.displacementMap,n(p.displacementMap,m.displacementMapTransform),m.displacementScale.value=p.displacementScale,m.displacementBias.value=p.displacementBias),p.emissiveMap&&(m.emissiveMap.value=p.emissiveMap,n(p.emissiveMap,m.emissiveMapTransform)),p.specularMap&&(m.specularMap.value=p.specularMap,n(p.specularMap,m.specularMapTransform)),p.alphaTest>0&&(m.alphaTest.value=p.alphaTest);const y=e.get(p),_=y.envMap,b=y.envMapRotation;if(_&&(m.envMap.value=_,To.copy(b),To.x*=-1,To.y*=-1,To.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(To.y*=-1,To.z*=-1),m.envMapRotation.value.setFromMatrix4(Yue.makeRotationFromEuler(To)),m.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,m.reflectivity.value=p.reflectivity,m.ior.value=p.ior,m.refractionRatio.value=p.refractionRatio),p.lightMap){m.lightMap.value=p.lightMap;const x=t._useLegacyLights===!0?Math.PI:1;m.lightMapIntensity.value=p.lightMapIntensity*x,n(p.lightMap,m.lightMapTransform)}p.aoMap&&(m.aoMap.value=p.aoMap,m.aoMapIntensity.value=p.aoMapIntensity,n(p.aoMap,m.aoMapTransform))}function s(m,p){m.diffuse.value.copy(p.color),m.opacity.value=p.opacity,p.map&&(m.map.value=p.map,n(p.map,m.mapTransform))}function o(m,p){m.dashSize.value=p.dashSize,m.totalSize.value=p.dashSize+p.gapSize,m.scale.value=p.scale}function u(m,p,y,_){m.diffuse.value.copy(p.color),m.opacity.value=p.opacity,m.size.value=p.size*y,m.scale.value=_*.5,p.map&&(m.map.value=p.map,n(p.map,m.uvTransform)),p.alphaMap&&(m.alphaMap.value=p.alphaMap,n(p.alphaMap,m.alphaMapTransform)),p.alphaTest>0&&(m.alphaTest.value=p.alphaTest)}function c(m,p){m.diffuse.value.copy(p.color),m.opacity.value=p.opacity,m.rotation.value=p.rotation,p.map&&(m.map.value=p.map,n(p.map,m.mapTransform)),p.alphaMap&&(m.alphaMap.value=p.alphaMap,n(p.alphaMap,m.alphaMapTransform)),p.alphaTest>0&&(m.alphaTest.value=p.alphaTest)}function l(m,p){m.specular.value.copy(p.specular),m.shininess.value=Math.max(p.shininess,1e-4)}function d(m,p){p.gradientMap&&(m.gradientMap.value=p.gradientMap)}function f(m,p){m.metalness.value=p.metalness,p.metalnessMap&&(m.metalnessMap.value=p.metalnessMap,n(p.metalnessMap,m.metalnessMapTransform)),m.roughness.value=p.roughness,p.roughnessMap&&(m.roughnessMap.value=p.roughnessMap,n(p.roughnessMap,m.roughnessMapTransform)),p.envMap&&(m.envMapIntensity.value=p.envMapIntensity)}function h(m,p,y){m.ior.value=p.ior,p.sheen>0&&(m.sheenColor.value.copy(p.sheenColor).multiplyScalar(p.sheen),m.sheenRoughness.value=p.sheenRoughness,p.sheenColorMap&&(m.sheenColorMap.value=p.sheenColorMap,n(p.sheenColorMap,m.sheenColorMapTransform)),p.sheenRoughnessMap&&(m.sheenRoughnessMap.value=p.sheenRoughnessMap,n(p.sheenRoughnessMap,m.sheenRoughnessMapTransform))),p.clearcoat>0&&(m.clearcoat.value=p.clearcoat,m.clearcoatRoughness.value=p.clearcoatRoughness,p.clearcoatMap&&(m.clearcoatMap.value=p.clearcoatMap,n(p.clearcoatMap,m.clearcoatMapTransform)),p.clearcoatRoughnessMap&&(m.clearcoatRoughnessMap.value=p.clearcoatRoughnessMap,n(p.clearcoatRoughnessMap,m.clearcoatRoughnessMapTransform)),p.clearcoatNormalMap&&(m.clearcoatNormalMap.value=p.clearcoatNormalMap,n(p.clearcoatNormalMap,m.clearcoatNormalMapTransform),m.clearcoatNormalScale.value.copy(p.clearcoatNormalScale),p.side===Hi&&m.clearcoatNormalScale.value.negate())),p.iridescence>0&&(m.iridescence.value=p.iridescence,m.iridescenceIOR.value=p.iridescenceIOR,m.iridescenceThicknessMinimum.value=p.iridescenceThicknessRange[0],m.iridescenceThicknessMaximum.value=p.iridescenceThicknessRange[1],p.iridescenceMap&&(m.iridescenceMap.value=p.iridescenceMap,n(p.iridescenceMap,m.iridescenceMapTransform)),p.iridescenceThicknessMap&&(m.iridescenceThicknessMap.value=p.iridescenceThicknessMap,n(p.iridescenceThicknessMap,m.iridescenceThicknessMapTransform))),p.transmission>0&&(m.transmission.value=p.transmission,m.transmissionSamplerMap.value=y.texture,m.transmissionSamplerSize.value.set(y.width,y.height),p.transmissionMap&&(m.transmissionMap.value=p.transmissionMap,n(p.transmissionMap,m.transmissionMapTransform)),m.thickness.value=p.thickness,p.thicknessMap&&(m.thicknessMap.value=p.thicknessMap,n(p.thicknessMap,m.thicknessMapTransform)),m.attenuationDistance.value=p.attenuationDistance,m.attenuationColor.value.copy(p.attenuationColor)),p.anisotropy>0&&(m.anisotropyVector.value.set(p.anisotropy*Math.cos(p.anisotropyRotation),p.anisotropy*Math.sin(p.anisotropyRotation)),p.anisotropyMap&&(m.anisotropyMap.value=p.anisotropyMap,n(p.anisotropyMap,m.anisotropyMapTransform))),m.specularIntensity.value=p.specularIntensity,m.specularColor.value.copy(p.specularColor),p.specularColorMap&&(m.specularColorMap.value=p.specularColorMap,n(p.specularColorMap,m.specularColorMapTransform)),p.specularIntensityMap&&(m.specularIntensityMap.value=p.specularIntensityMap,n(p.specularIntensityMap,m.specularIntensityMapTransform))}function g(m,p){p.matcap&&(m.matcap.value=p.matcap)}function v(m,p){const y=e.get(p).light;m.referencePosition.value.setFromMatrixPosition(y.matrixWorld),m.nearDistance.value=y.shadow.camera.near,m.farDistance.value=y.shadow.camera.far}return{refreshFogUniforms:i,refreshMaterialUniforms:r}}function Zue(t,e,n,i){let r={},a={},s=[];const o=t.getParameter(t.MAX_UNIFORM_BUFFER_BINDINGS);function u(y,_){const b=_.program;i.uniformBlockBinding(y,b)}function c(y,_){let b=r[y.id];b===void 0&&(g(y),b=l(y),r[y.id]=b,y.addEventListener("dispose",m));const x=_.program;i.updateUBOMapping(y,x);const w=e.render.frame;a[y.id]!==w&&(f(y),a[y.id]=w)}function l(y){const _=d();y.__bindingPointIndex=_;const b=t.createBuffer(),x=y.__size,w=y.usage;return t.bindBuffer(t.UNIFORM_BUFFER,b),t.bufferData(t.UNIFORM_BUFFER,x,w),t.bindBuffer(t.UNIFORM_BUFFER,null),t.bindBufferBase(t.UNIFORM_BUFFER,_,b),b}function d(){for(let y=0;y<o;y++)if(s.indexOf(y)===-1)return s.push(y),y;return console.error("THREE.WebGLRenderer: Maximum number of simultaneously usable uniforms groups reached."),0}function f(y){const _=r[y.id],b=y.uniforms,x=y.__cache;t.bindBuffer(t.UNIFORM_BUFFER,_);for(let w=0,D=b.length;w<D;w++){const O=Array.isArray(b[w])?b[w]:[b[w]];for(let M=0,S=O.length;M<S;M++){const B=O[M];if(h(B,w,M,x)===!0){const V=B.__offset,z=Array.isArray(B.value)?B.value:[B.value];let Q=0;for(let Z=0;Z<z.length;Z++){const q=z[Z],te=v(q);typeof q=="number"||typeof q=="boolean"?(B.__data[0]=q,t.bufferSubData(t.UNIFORM_BUFFER,V+Q,B.__data)):q.isMatrix3?(B.__data[0]=q.elements[0],B.__data[1]=q.elements[1],B.__data[2]=q.elements[2],B.__data[3]=0,B.__data[4]=q.elements[3],B.__data[5]=q.elements[4],B.__data[6]=q.elements[5],B.__data[7]=0,B.__data[8]=q.elements[6],B.__data[9]=q.elements[7],B.__data[10]=q.elements[8],B.__data[11]=0):(q.toArray(B.__data,Q),Q+=te.storage/Float32Array.BYTES_PER_ELEMENT)}t.bufferSubData(t.UNIFORM_BUFFER,V,B.__data)}}}t.bindBuffer(t.UNIFORM_BUFFER,null)}function h(y,_,b,x){const w=y.value,D=_+"_"+b;if(x[D]===void 0)return typeof w=="number"||typeof w=="boolean"?x[D]=w:x[D]=w.clone(),!0;{const O=x[D];if(typeof w=="number"||typeof w=="boolean"){if(O!==w)return x[D]=w,!0}else if(O.equals(w)===!1)return O.copy(w),!0}return!1}function g(y){const _=y.uniforms;let b=0;const x=16;for(let D=0,O=_.length;D<O;D++){const M=Array.isArray(_[D])?_[D]:[_[D]];for(let S=0,B=M.length;S<B;S++){const V=M[S],z=Array.isArray(V.value)?V.value:[V.value];for(let Q=0,Z=z.length;Q<Z;Q++){const q=z[Q],te=v(q),$=b%x;$!==0&&x-$<te.boundary&&(b+=x-$),V.__data=new Float32Array(te.storage/Float32Array.BYTES_PER_ELEMENT),V.__offset=b,b+=te.storage}}}const w=b%x;return w>0&&(b+=x-w),y.__size=b,y.__cache={},this}function v(y){const _={boundary:0,storage:0};return typeof y=="number"||typeof y=="boolean"?(_.boundary=4,_.storage=4):y.isVector2?(_.boundary=8,_.storage=8):y.isVector3||y.isColor?(_.boundary=16,_.storage=12):y.isVector4?(_.boundary=16,_.storage=16):y.isMatrix3?(_.boundary=48,_.storage=48):y.isMatrix4?(_.boundary=64,_.storage=64):y.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",y),_}function m(y){const _=y.target;_.removeEventListener("dispose",m);const b=s.indexOf(_.__bindingPointIndex);s.splice(b,1),t.deleteBuffer(r[_.id]),delete r[_.id],delete a[_.id]}function p(){for(const y in r)t.deleteBuffer(r[y]);s=[],r={},a={}}return{bind:u,update:c,dispose:p}}class Jue{constructor(e={}){const{canvas:n=$ie(),context:i=null,depth:r=!0,stencil:a=!1,alpha:s=!1,antialias:o=!1,premultipliedAlpha:u=!0,preserveDrawingBuffer:c=!1,powerPreference:l="default",failIfMajorPerformanceCaveat:d=!1}=e;this.isWebGLRenderer=!0;let f;if(i!==null){if(typeof WebGLRenderingContext<"u"&&i instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");f=i.getContextAttributes().alpha}else f=s;const h=new Uint32Array(4),g=new Int32Array(4);let v=null,m=null;const p=[],y=[];this.domElement=n,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=sa,this._useLegacyLights=!1,this.toneMapping=$s,this.toneMappingExposure=1;const _=this;let b=!1,x=0,w=0,D=null,O=-1,M=null;const S=new si,B=new si;let V=null;const z=new qt(0);let Q=0,Z=n.width,q=n.height,te=1,$=null,ee=null;const le=new si(0,0,Z,q),xe=new si(0,0,Z,q);let J=!1;const ye=new F4;let H=!1,ie=!1;const _e=new Rn,W=new vt,be=new ve,ge={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};function De(){return D===null?te:1}let ae=i;function Fe(N,oe){const de=n.getContext(N,oe);return de!==null?de:null}try{const N={alpha:!0,depth:r,stencil:a,antialias:o,premultipliedAlpha:u,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:d};if("setAttribute"in n&&n.setAttribute("data-engine",`three.js r${Uy}`),n.addEventListener("webglcontextlost",Ae,!1),n.addEventListener("webglcontextrestored",Pe,!1),n.addEventListener("webglcontextcreationerror",We,!1),ae===null){const oe="webgl2";if(ae=Fe(oe,N),ae===null)throw Fe(oe)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(N){throw console.error("THREE.WebGLRenderer: "+N.message),N}let U,K,ue,Se,k,E,I,j,Y,se,Te,X,ce,Ie,Me,Oe,$e,Be,Ne,lt,Ze,ct,ft,pt;function Je(){U=new soe(ae),U.init(),K=new eoe(ae,U,e),ct=new zue(ae,U),ue=new Vue(ae),Se=new loe(ae),k=new wue,E=new Hue(ae,U,ue,k,K,ct,Se),I=new noe(_),j=new aoe(_),Y=new mre(ae),ft=new Jse(ae,Y),se=new ooe(ae,Y,Se,ft),Te=new doe(ae,se,Y,Se),Ne=new coe(ae,K,E),Oe=new toe(k),X=new Tue(_,I,j,U,K,ft,Oe),ce=new Kue(_,k),Ie=new Cue,Me=new kue(U),Be=new Zse(_,I,j,ue,Te,f,u),$e=new Bue(_,Te,K),pt=new Zue(ae,Se,K,ue),lt=new Qse(ae,U,Se),Ze=new uoe(ae,U,Se),Se.programs=X.programs,_.capabilities=K,_.extensions=U,_.properties=k,_.renderLists=Ie,_.shadowMap=$e,_.state=ue,_.info=Se}Je();const L=new Xue(_,ae);this.xr=L,this.getContext=function(){return ae},this.getContextAttributes=function(){return ae.getContextAttributes()},this.forceContextLoss=function(){const N=U.get("WEBGL_lose_context");N&&N.loseContext()},this.forceContextRestore=function(){const N=U.get("WEBGL_lose_context");N&&N.restoreContext()},this.getPixelRatio=function(){return te},this.setPixelRatio=function(N){N!==void 0&&(te=N,this.setSize(Z,q,!1))},this.getSize=function(N){return N.set(Z,q)},this.setSize=function(N,oe,de=!0){if(L.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}Z=N,q=oe,n.width=Math.floor(N*te),n.height=Math.floor(oe*te),de===!0&&(n.style.width=N+"px",n.style.height=oe+"px"),this.setViewport(0,0,N,oe)},this.getDrawingBufferSize=function(N){return N.set(Z*te,q*te).floor()},this.setDrawingBufferSize=function(N,oe,de){Z=N,q=oe,te=de,n.width=Math.floor(N*de),n.height=Math.floor(oe*de),this.setViewport(0,0,N,oe)},this.getCurrentViewport=function(N){return N.copy(S)},this.getViewport=function(N){return N.copy(le)},this.setViewport=function(N,oe,de,he){N.isVector4?le.set(N.x,N.y,N.z,N.w):le.set(N,oe,de,he),ue.viewport(S.copy(le).multiplyScalar(te).round())},this.getScissor=function(N){return N.copy(xe)},this.setScissor=function(N,oe,de,he){N.isVector4?xe.set(N.x,N.y,N.z,N.w):xe.set(N,oe,de,he),ue.scissor(B.copy(xe).multiplyScalar(te).round())},this.getScissorTest=function(){return J},this.setScissorTest=function(N){ue.setScissorTest(J=N)},this.setOpaqueSort=function(N){$=N},this.setTransparentSort=function(N){ee=N},this.getClearColor=function(N){return N.copy(Be.getClearColor())},this.setClearColor=function(){Be.setClearColor.apply(Be,arguments)},this.getClearAlpha=function(){return Be.getClearAlpha()},this.setClearAlpha=function(){Be.setClearAlpha.apply(Be,arguments)},this.clear=function(N=!0,oe=!0,de=!0){let he=0;if(N){let me=!1;if(D!==null){const Ue=D.texture.format;me=Ue===w4||Ue===T4||Ue===S4}if(me){const Ue=D.texture.type,Xe=Ue===Ws||Ue===Yl||Ue===y4||Ue===Sf||Ue===x4||Ue===A4,Ge=Be.getClearColor(),je=Be.getClearAlpha(),Ye=Ge.r,et=Ge.g,at=Ge.b;Xe?(h[0]=Ye,h[1]=et,h[2]=at,h[3]=je,ae.clearBufferuiv(ae.COLOR,0,h)):(g[0]=Ye,g[1]=et,g[2]=at,g[3]=je,ae.clearBufferiv(ae.COLOR,0,g))}else he|=ae.COLOR_BUFFER_BIT}oe&&(he|=ae.DEPTH_BUFFER_BIT),de&&(he|=ae.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ae.clear(he)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){n.removeEventListener("webglcontextlost",Ae,!1),n.removeEventListener("webglcontextrestored",Pe,!1),n.removeEventListener("webglcontextcreationerror",We,!1),Ie.dispose(),Me.dispose(),k.dispose(),I.dispose(),j.dispose(),Te.dispose(),ft.dispose(),pt.dispose(),X.dispose(),L.dispose(),L.removeEventListener("sessionstart",bn),L.removeEventListener("sessionend",yn),R.stop()};function Ae(N){N.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),b=!0}function Pe(){console.log("THREE.WebGLRenderer: Context Restored."),b=!1;const N=Se.autoReset,oe=$e.enabled,de=$e.autoUpdate,he=$e.needsUpdate,me=$e.type;Je(),Se.autoReset=N,$e.enabled=oe,$e.autoUpdate=de,$e.needsUpdate=he,$e.type=me}function We(N){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",N.statusMessage)}function Qe(N){const oe=N.target;oe.removeEventListener("dispose",Qe),yt(oe)}function yt(N){Et(N),k.remove(N)}function Et(N){const oe=k.get(N).programs;oe!==void 0&&(oe.forEach(function(de){X.releaseProgram(de)}),N.isShaderMaterial&&X.releaseShaderCache(N))}this.renderBufferDirect=function(N,oe,de,he,me,Ue){oe===null&&(oe=ge);const Xe=me.isMesh&&me.matrixWorld.determinant()<0,Ge=we(N,oe,de,he,me);ue.setMaterial(he,Xe);let je=de.index,Ye=1;if(he.wireframe===!0){if(je=se.getWireframeAttribute(de),je===void 0)return;Ye=2}const et=de.drawRange,at=de.attributes.position;let gt=et.start*Ye,Pt=(et.start+et.count)*Ye;Ue!==null&&(gt=Math.max(gt,Ue.start*Ye),Pt=Math.min(Pt,(Ue.start+Ue.count)*Ye)),je!==null?(gt=Math.max(gt,0),Pt=Math.min(Pt,je.count)):at!=null&&(gt=Math.max(gt,0),Pt=Math.min(Pt,at.count));const bt=Pt-gt;if(bt<0||bt===1/0)return;ft.setup(me,he,Ge,de,je);let zt,mt=lt;if(je!==null&&(zt=Y.get(je),mt=Ze,mt.setIndex(zt)),me.isMesh)he.wireframe===!0?(ue.setLineWidth(he.wireframeLinewidth*De()),mt.setMode(ae.LINES)):mt.setMode(ae.TRIANGLES);else if(me.isLine){let it=he.linewidth;it===void 0&&(it=1),ue.setLineWidth(it*De()),me.isLineSegments?mt.setMode(ae.LINES):me.isLineLoop?mt.setMode(ae.LINE_LOOP):mt.setMode(ae.LINE_STRIP)}else me.isPoints?mt.setMode(ae.POINTS):me.isSprite&&mt.setMode(ae.TRIANGLES);if(me.isBatchedMesh)mt.renderMultiDraw(me._multiDrawStarts,me._multiDrawCounts,me._multiDrawCount);else if(me.isInstancedMesh)mt.renderInstances(gt,bt,me.count);else if(de.isInstancedBufferGeometry){const it=de._maxInstanceCount!==void 0?de._maxInstanceCount:1/0,Lt=Math.min(de.instanceCount,it);mt.renderInstances(gt,bt,Lt)}else mt.render(gt,bt)};function jt(N,oe,de){N.transparent===!0&&N.side===da&&N.forceSinglePass===!1?(N.side=Hi,N.needsUpdate=!0,P(N,oe,de),N.side=Ks,N.needsUpdate=!0,P(N,oe,de),N.side=da):P(N,oe,de)}this.compile=function(N,oe,de=null){de===null&&(de=N),m=Me.get(de),m.init(),y.push(m),de.traverseVisible(function(me){me.isLight&&me.layers.test(oe.layers)&&(m.pushLight(me),me.castShadow&&m.pushShadow(me))}),N!==de&&N.traverseVisible(function(me){me.isLight&&me.layers.test(oe.layers)&&(m.pushLight(me),me.castShadow&&m.pushShadow(me))}),m.setupLights(_._useLegacyLights);const he=new Set;return N.traverse(function(me){const Ue=me.material;if(Ue)if(Array.isArray(Ue))for(let Xe=0;Xe<Ue.length;Xe++){const Ge=Ue[Xe];jt(Ge,de,me),he.add(Ge)}else jt(Ue,de,me),he.add(Ue)}),y.pop(),m=null,he},this.compileAsync=function(N,oe,de=null){const he=this.compile(N,oe,de);return new Promise(me=>{function Ue(){if(he.forEach(function(Xe){k.get(Xe).currentProgram.isReady()&&he.delete(Xe)}),he.size===0){me(N);return}setTimeout(Ue,10)}U.get("KHR_parallel_shader_compile")!==null?Ue():setTimeout(Ue,10)})};let Cn=null;function Ft(N){Cn&&Cn(N)}function bn(){R.stop()}function yn(){R.start()}const R=new B4;R.setAnimationLoop(Ft),typeof self<"u"&&R.setContext(self),this.setAnimationLoop=function(N){Cn=N,L.setAnimationLoop(N),N===null?R.stop():R.start()},L.addEventListener("sessionstart",bn),L.addEventListener("sessionend",yn),this.render=function(N,oe){if(oe!==void 0&&oe.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(b===!0)return;N.matrixWorldAutoUpdate===!0&&N.updateMatrixWorld(),oe.parent===null&&oe.matrixWorldAutoUpdate===!0&&oe.updateMatrixWorld(),L.enabled===!0&&L.isPresenting===!0&&(L.cameraAutoUpdate===!0&&L.updateCamera(oe),oe=L.getCamera()),N.isScene===!0&&N.onBeforeRender(_,N,oe,D),m=Me.get(N,y.length),m.init(),y.push(m),_e.multiplyMatrices(oe.projectionMatrix,oe.matrixWorldInverse),ye.setFromProjectionMatrix(_e),ie=this.localClippingEnabled,H=Oe.init(this.clippingPlanes,ie),v=Ie.get(N,p.length),v.init(),p.push(v),G(N,oe,0,_.sortObjects),v.finish(),_.sortObjects===!0&&v.sort($,ee),this.info.render.frame++,H===!0&&Oe.beginShadows();const de=m.state.shadowsArray;if($e.render(de,N,oe),H===!0&&Oe.endShadows(),this.info.autoReset===!0&&this.info.reset(),(L.enabled===!1||L.isPresenting===!1||L.hasDepthSensing()===!1)&&Be.render(v,N),m.setupLights(_._useLegacyLights),oe.isArrayCamera){const he=oe.cameras;for(let me=0,Ue=he.length;me<Ue;me++){const Xe=he[me];F(v,N,Xe,Xe.viewport)}}else F(v,N,oe);D!==null&&(E.updateMultisampleRenderTarget(D),E.updateRenderTargetMipmap(D)),N.isScene===!0&&N.onAfterRender(_,N,oe),ft.resetDefaultState(),O=-1,M=null,y.pop(),y.length>0?m=y[y.length-1]:m=null,p.pop(),p.length>0?v=p[p.length-1]:v=null};function G(N,oe,de,he){if(N.visible===!1)return;if(N.layers.test(oe.layers)){if(N.isGroup)de=N.renderOrder;else if(N.isLOD)N.autoUpdate===!0&&N.update(oe);else if(N.isLight)m.pushLight(N),N.castShadow&&m.pushShadow(N);else if(N.isSprite){if(!N.frustumCulled||ye.intersectsSprite(N)){he&&be.setFromMatrixPosition(N.matrixWorld).applyMatrix4(_e);const Xe=Te.update(N),Ge=N.material;Ge.visible&&v.push(N,Xe,Ge,de,be.z,null)}}else if((N.isMesh||N.isLine||N.isPoints)&&(!N.frustumCulled||ye.intersectsObject(N))){const Xe=Te.update(N),Ge=N.material;if(he&&(N.boundingSphere!==void 0?(N.boundingSphere===null&&N.computeBoundingSphere(),be.copy(N.boundingSphere.center)):(Xe.boundingSphere===null&&Xe.computeBoundingSphere(),be.copy(Xe.boundingSphere.center)),be.applyMatrix4(N.matrixWorld).applyMatrix4(_e)),Array.isArray(Ge)){const je=Xe.groups;for(let Ye=0,et=je.length;Ye<et;Ye++){const at=je[Ye],gt=Ge[at.materialIndex];gt&&gt.visible&&v.push(N,Xe,gt,de,be.z,at)}}else Ge.visible&&v.push(N,Xe,Ge,de,be.z,null)}}const Ue=N.children;for(let Xe=0,Ge=Ue.length;Xe<Ge;Xe++)G(Ue[Xe],oe,de,he)}function F(N,oe,de,he){const me=N.opaque,Ue=N.transmissive,Xe=N.transparent;m.setupLightsView(de),H===!0&&Oe.setGlobalState(_.clippingPlanes,de),Ue.length>0&&T(me,Ue,oe,de),he&&ue.viewport(S.copy(he)),me.length>0&&A(me,oe,de),Ue.length>0&&A(Ue,oe,de),Xe.length>0&&A(Xe,oe,de),ue.buffers.depth.setTest(!0),ue.buffers.depth.setMask(!0),ue.buffers.color.setMask(!0),ue.setPolygonOffset(!1)}function T(N,oe,de,he){if((de.isScene===!0?de.overrideMaterial:null)!==null)return;if(m.state.transmissionRenderTarget===null){m.state.transmissionRenderTarget=new au(1,1,{generateMipmaps:!0,type:U.has("EXT_color_buffer_half_float")||U.has("EXT_color_buffer_float")?e0:Ws,minFilter:Ho,samples:4,stencilBuffer:a});const Ye=k.get(m.state.transmissionRenderTarget);Ye.__isTransmissionRenderTarget=!0}const Ue=m.state.transmissionRenderTarget;_.getDrawingBufferSize(W),Ue.setSize(W.x,W.y);const Xe=_.getRenderTarget();_.setRenderTarget(Ue),_.getClearColor(z),Q=_.getClearAlpha(),Q<1&&_.setClearColor(16777215,.5),_.clear();const Ge=_.toneMapping;_.toneMapping=$s,A(N,de,he),E.updateMultisampleRenderTarget(Ue),E.updateRenderTargetMipmap(Ue);let je=!1;for(let Ye=0,et=oe.length;Ye<et;Ye++){const at=oe[Ye],gt=at.object,Pt=at.geometry,bt=at.material,zt=at.group;if(bt.side===da&&gt.layers.test(he.layers)){const mt=bt.side;bt.side=Hi,bt.needsUpdate=!0,C(gt,de,he,Pt,bt,zt),bt.side=mt,bt.needsUpdate=!0,je=!0}}je===!0&&(E.updateMultisampleRenderTarget(Ue),E.updateRenderTargetMipmap(Ue)),_.setRenderTarget(Xe),_.setClearColor(z,Q),_.toneMapping=Ge}function A(N,oe,de){const he=oe.isScene===!0?oe.overrideMaterial:null;for(let me=0,Ue=N.length;me<Ue;me++){const Xe=N[me],Ge=Xe.object,je=Xe.geometry,Ye=he===null?Xe.material:he,et=Xe.group;Ge.layers.test(de.layers)&&C(Ge,oe,de,je,Ye,et)}}function C(N,oe,de,he,me,Ue){N.onBeforeRender(_,oe,de,he,me,Ue),N.modelViewMatrix.multiplyMatrices(de.matrixWorldInverse,N.matrixWorld),N.normalMatrix.getNormalMatrix(N.modelViewMatrix),me.onBeforeRender(_,oe,de,he,N,Ue),me.transparent===!0&&me.side===da&&me.forceSinglePass===!1?(me.side=Hi,me.needsUpdate=!0,_.renderBufferDirect(de,oe,he,me,N,Ue),me.side=Ks,me.needsUpdate=!0,_.renderBufferDirect(de,oe,he,me,N,Ue),me.side=da):_.renderBufferDirect(de,oe,he,me,N,Ue),N.onAfterRender(_,oe,de,he,me,Ue)}function P(N,oe,de){oe.isScene!==!0&&(oe=ge);const he=k.get(N),me=m.state.lights,Ue=m.state.shadowsArray,Xe=me.state.version,Ge=X.getParameters(N,me.state,Ue,oe,de),je=X.getProgramCacheKey(Ge);let Ye=he.programs;he.environment=N.isMeshStandardMaterial?oe.environment:null,he.fog=oe.fog,he.envMap=(N.isMeshStandardMaterial?j:I).get(N.envMap||he.environment),he.envMapRotation=he.environment!==null&&N.envMap===null?oe.environmentRotation:N.envMapRotation,Ye===void 0&&(N.addEventListener("dispose",Qe),Ye=new Map,he.programs=Ye);let et=Ye.get(je);if(et!==void 0){if(he.currentProgram===et&&he.lightsStateVersion===Xe)return pe(N,Ge),et}else Ge.uniforms=X.getUniforms(N),N.onBuild(de,Ge,_),N.onBeforeCompile(Ge,_),et=X.acquireProgram(Ge,je),Ye.set(je,et),he.uniforms=Ge.uniforms;const at=he.uniforms;return(!N.isShaderMaterial&&!N.isRawShaderMaterial||N.clipping===!0)&&(at.clippingPlanes=Oe.uniform),pe(N,Ge),he.needsLights=He(N),he.lightsStateVersion=Xe,he.needsLights&&(at.ambientLightColor.value=me.state.ambient,at.lightProbe.value=me.state.probe,at.directionalLights.value=me.state.directional,at.directionalLightShadows.value=me.state.directionalShadow,at.spotLights.value=me.state.spot,at.spotLightShadows.value=me.state.spotShadow,at.rectAreaLights.value=me.state.rectArea,at.ltc_1.value=me.state.rectAreaLTC1,at.ltc_2.value=me.state.rectAreaLTC2,at.pointLights.value=me.state.point,at.pointLightShadows.value=me.state.pointShadow,at.hemisphereLights.value=me.state.hemi,at.directionalShadowMap.value=me.state.directionalShadowMap,at.directionalShadowMatrix.value=me.state.directionalShadowMatrix,at.spotShadowMap.value=me.state.spotShadowMap,at.spotLightMatrix.value=me.state.spotLightMatrix,at.spotLightMap.value=me.state.spotLightMap,at.pointShadowMap.value=me.state.pointShadowMap,at.pointShadowMatrix.value=me.state.pointShadowMatrix),he.currentProgram=et,he.uniformsList=null,et}function re(N){if(N.uniformsList===null){const oe=N.currentProgram.getUniforms();N.uniformsList=Zp.seqWithValue(oe.seq,N.uniforms)}return N.uniformsList}function pe(N,oe){const de=k.get(N);de.outputColorSpace=oe.outputColorSpace,de.batching=oe.batching,de.instancing=oe.instancing,de.instancingColor=oe.instancingColor,de.instancingMorph=oe.instancingMorph,de.skinning=oe.skinning,de.morphTargets=oe.morphTargets,de.morphNormals=oe.morphNormals,de.morphColors=oe.morphColors,de.morphTargetsCount=oe.morphTargetsCount,de.numClippingPlanes=oe.numClippingPlanes,de.numIntersection=oe.numClipIntersection,de.vertexAlphas=oe.vertexAlphas,de.vertexTangents=oe.vertexTangents,de.toneMapping=oe.toneMapping}function we(N,oe,de,he,me){oe.isScene!==!0&&(oe=ge),E.resetTextureUnits();const Ue=oe.fog,Xe=he.isMeshStandardMaterial?oe.environment:null,Ge=D===null?_.outputColorSpace:D.isXRRenderTarget===!0?D.texture.colorSpace:io,je=(he.isMeshStandardMaterial?j:I).get(he.envMap||Xe),Ye=he.vertexColors===!0&&!!de.attributes.color&&de.attributes.color.itemSize===4,et=!!de.attributes.tangent&&(!!he.normalMap||he.anisotropy>0),at=!!de.morphAttributes.position,gt=!!de.morphAttributes.normal,Pt=!!de.morphAttributes.color;let bt=$s;he.toneMapped&&(D===null||D.isXRRenderTarget===!0)&&(bt=_.toneMapping);const zt=de.morphAttributes.position||de.morphAttributes.normal||de.morphAttributes.color,mt=zt!==void 0?zt.length:0,it=k.get(he),Lt=m.state.lights;if(H===!0&&(ie===!0||N!==M)){const nr=N===M&&he.id===O;Oe.setState(he,N,nr)}let wt=!1;he.version===it.__version?(it.needsLights&&it.lightsStateVersion!==Lt.state.version||it.outputColorSpace!==Ge||me.isBatchedMesh&&it.batching===!1||!me.isBatchedMesh&&it.batching===!0||me.isInstancedMesh&&it.instancing===!1||!me.isInstancedMesh&&it.instancing===!0||me.isSkinnedMesh&&it.skinning===!1||!me.isSkinnedMesh&&it.skinning===!0||me.isInstancedMesh&&it.instancingColor===!0&&me.instanceColor===null||me.isInstancedMesh&&it.instancingColor===!1&&me.instanceColor!==null||me.isInstancedMesh&&it.instancingMorph===!0&&me.morphTexture===null||me.isInstancedMesh&&it.instancingMorph===!1&&me.morphTexture!==null||it.envMap!==je||he.fog===!0&&it.fog!==Ue||it.numClippingPlanes!==void 0&&(it.numClippingPlanes!==Oe.numPlanes||it.numIntersection!==Oe.numIntersection)||it.vertexAlphas!==Ye||it.vertexTangents!==et||it.morphTargets!==at||it.morphNormals!==gt||it.morphColors!==Pt||it.toneMapping!==bt||it.morphTargetsCount!==mt)&&(wt=!0):(wt=!0,it.__version=he.version);let Pn=it.currentProgram;wt===!0&&(Pn=P(he,oe,me));let Aa=!1,ro=!1,ug=!1;const oi=Pn.getUniforms(),ds=it.uniforms;if(ue.useProgram(Pn.program)&&(Aa=!0,ro=!0,ug=!0),he.id!==O&&(O=he.id,ro=!0),Aa||M!==N){oi.setValue(ae,"projectionMatrix",N.projectionMatrix),oi.setValue(ae,"viewMatrix",N.matrixWorldInverse);const nr=oi.map.cameraPosition;nr!==void 0&&nr.setValue(ae,be.setFromMatrixPosition(N.matrixWorld)),K.logarithmicDepthBuffer&&oi.setValue(ae,"logDepthBufFC",2/(Math.log(N.far+1)/Math.LN2)),(he.isMeshPhongMaterial||he.isMeshToonMaterial||he.isMeshLambertMaterial||he.isMeshBasicMaterial||he.isMeshStandardMaterial||he.isShaderMaterial)&&oi.setValue(ae,"isOrthographic",N.isOrthographicCamera===!0),M!==N&&(M=N,ro=!0,ug=!0)}if(me.isSkinnedMesh){oi.setOptional(ae,me,"bindMatrix"),oi.setOptional(ae,me,"bindMatrixInverse");const nr=me.skeleton;nr&&(nr.boneTexture===null&&nr.computeBoneTexture(),oi.setValue(ae,"boneTexture",nr.boneTexture,E))}me.isBatchedMesh&&(oi.setOptional(ae,me,"batchingTexture"),oi.setValue(ae,"batchingTexture",me._matricesTexture,E));const lg=de.morphAttributes;if((lg.position!==void 0||lg.normal!==void 0||lg.color!==void 0)&&Ne.update(me,de,Pn),(ro||it.receiveShadow!==me.receiveShadow)&&(it.receiveShadow=me.receiveShadow,oi.setValue(ae,"receiveShadow",me.receiveShadow)),he.isMeshGouraudMaterial&&he.envMap!==null&&(ds.envMap.value=je,ds.flipEnvMap.value=je.isCubeTexture&&je.isRenderTargetTexture===!1?-1:1),he.isMeshStandardMaterial&&he.envMap===null&&oe.environment!==null&&(ds.envMapIntensity.value=oe.environmentIntensity),ro&&(oi.setValue(ae,"toneMappingExposure",_.toneMappingExposure),it.needsLights&&Re(ds,ug),Ue&&he.fog===!0&&ce.refreshFogUniforms(ds,Ue),ce.refreshMaterialUniforms(ds,he,te,q,m.state.transmissionRenderTarget),Zp.upload(ae,re(it),ds,E)),he.isShaderMaterial&&he.uniformsNeedUpdate===!0&&(Zp.upload(ae,re(it),ds,E),he.uniformsNeedUpdate=!1),he.isSpriteMaterial&&oi.setValue(ae,"center",me.center),oi.setValue(ae,"modelViewMatrix",me.modelViewMatrix),oi.setValue(ae,"normalMatrix",me.normalMatrix),oi.setValue(ae,"modelMatrix",me.matrixWorld),he.isShaderMaterial||he.isRawShaderMaterial){const nr=he.uniformsGroups;for(let cg=0,X4=nr.length;cg<X4;cg++){const Wy=nr[cg];pt.update(Wy,Pn),pt.bind(Wy,Pn)}}return Pn}function Re(N,oe){N.ambientLightColor.needsUpdate=oe,N.lightProbe.needsUpdate=oe,N.directionalLights.needsUpdate=oe,N.directionalLightShadows.needsUpdate=oe,N.pointLights.needsUpdate=oe,N.pointLightShadows.needsUpdate=oe,N.spotLights.needsUpdate=oe,N.spotLightShadows.needsUpdate=oe,N.rectAreaLights.needsUpdate=oe,N.hemisphereLights.needsUpdate=oe}function He(N){return N.isMeshLambertMaterial||N.isMeshToonMaterial||N.isMeshPhongMaterial||N.isMeshStandardMaterial||N.isShadowMaterial||N.isShaderMaterial&&N.lights===!0}this.getActiveCubeFace=function(){return x},this.getActiveMipmapLevel=function(){return w},this.getRenderTarget=function(){return D},this.setRenderTargetTextures=function(N,oe,de){k.get(N.texture).__webglTexture=oe,k.get(N.depthTexture).__webglTexture=de;const he=k.get(N);he.__hasExternalTextures=!0,he.__autoAllocateDepthBuffer=de===void 0,he.__autoAllocateDepthBuffer||U.has("WEBGL_multisampled_render_to_texture")===!0&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),he.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(N,oe){const de=k.get(N);de.__webglFramebuffer=oe,de.__useDefaultFramebuffer=oe===void 0},this.setRenderTarget=function(N,oe=0,de=0){D=N,x=oe,w=de;let he=!0,me=null,Ue=!1,Xe=!1;if(N){const je=k.get(N);je.__useDefaultFramebuffer!==void 0?(ue.bindFramebuffer(ae.FRAMEBUFFER,null),he=!1):je.__webglFramebuffer===void 0?E.setupRenderTarget(N):je.__hasExternalTextures&&E.rebindTextures(N,k.get(N.texture).__webglTexture,k.get(N.depthTexture).__webglTexture);const Ye=N.texture;(Ye.isData3DTexture||Ye.isDataArrayTexture||Ye.isCompressedArrayTexture)&&(Xe=!0);const et=k.get(N).__webglFramebuffer;N.isWebGLCubeRenderTarget?(Array.isArray(et[oe])?me=et[oe][de]:me=et[oe],Ue=!0):N.samples>0&&E.useMultisampledRTT(N)===!1?me=k.get(N).__webglMultisampledFramebuffer:Array.isArray(et)?me=et[de]:me=et,S.copy(N.viewport),B.copy(N.scissor),V=N.scissorTest}else S.copy(le).multiplyScalar(te).floor(),B.copy(xe).multiplyScalar(te).floor(),V=J;if(ue.bindFramebuffer(ae.FRAMEBUFFER,me)&&he&&ue.drawBuffers(N,me),ue.viewport(S),ue.scissor(B),ue.setScissorTest(V),Ue){const je=k.get(N.texture);ae.framebufferTexture2D(ae.FRAMEBUFFER,ae.COLOR_ATTACHMENT0,ae.TEXTURE_CUBE_MAP_POSITIVE_X+oe,je.__webglTexture,de)}else if(Xe){const je=k.get(N.texture),Ye=oe||0;ae.framebufferTextureLayer(ae.FRAMEBUFFER,ae.COLOR_ATTACHMENT0,je.__webglTexture,de||0,Ye)}O=-1},this.readRenderTargetPixels=function(N,oe,de,he,me,Ue,Xe){if(!(N&&N.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let Ge=k.get(N).__webglFramebuffer;if(N.isWebGLCubeRenderTarget&&Xe!==void 0&&(Ge=Ge[Xe]),Ge){ue.bindFramebuffer(ae.FRAMEBUFFER,Ge);try{const je=N.texture,Ye=je.format,et=je.type;if(Ye!==va&&ct.convert(Ye)!==ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_FORMAT)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}const at=et===e0&&(U.has("EXT_color_buffer_half_float")||U.has("EXT_color_buffer_float"));if(et!==Ws&&ct.convert(et)!==ae.getParameter(ae.IMPLEMENTATION_COLOR_READ_TYPE)&&et!==Us&&!at){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}oe>=0&&oe<=N.width-he&&de>=0&&de<=N.height-me&&ae.readPixels(oe,de,he,me,ct.convert(Ye),ct.convert(et),Ue)}finally{const je=D!==null?k.get(D).__webglFramebuffer:null;ue.bindFramebuffer(ae.FRAMEBUFFER,je)}}},this.copyFramebufferToTexture=function(N,oe,de=0){const he=Math.pow(2,-de),me=Math.floor(oe.image.width*he),Ue=Math.floor(oe.image.height*he);E.setTexture2D(oe,0),ae.copyTexSubImage2D(ae.TEXTURE_2D,de,0,0,N.x,N.y,me,Ue),ue.unbindTexture()},this.copyTextureToTexture=function(N,oe,de,he=0){const me=oe.image.width,Ue=oe.image.height,Xe=ct.convert(de.format),Ge=ct.convert(de.type);E.setTexture2D(de,0),ae.pixelStorei(ae.UNPACK_FLIP_Y_WEBGL,de.flipY),ae.pixelStorei(ae.UNPACK_PREMULTIPLY_ALPHA_WEBGL,de.premultiplyAlpha),ae.pixelStorei(ae.UNPACK_ALIGNMENT,de.unpackAlignment),oe.isDataTexture?ae.texSubImage2D(ae.TEXTURE_2D,he,N.x,N.y,me,Ue,Xe,Ge,oe.image.data):oe.isCompressedTexture?ae.compressedTexSubImage2D(ae.TEXTURE_2D,he,N.x,N.y,oe.mipmaps[0].width,oe.mipmaps[0].height,Xe,oe.mipmaps[0].data):ae.texSubImage2D(ae.TEXTURE_2D,he,N.x,N.y,Xe,Ge,oe.image),he===0&&de.generateMipmaps&&ae.generateMipmap(ae.TEXTURE_2D),ue.unbindTexture()},this.copyTextureToTexture3D=function(N,oe,de,he,me=0){const Ue=Math.round(N.max.x-N.min.x),Xe=Math.round(N.max.y-N.min.y),Ge=N.max.z-N.min.z+1,je=ct.convert(he.format),Ye=ct.convert(he.type);let et;if(he.isData3DTexture)E.setTexture3D(he,0),et=ae.TEXTURE_3D;else if(he.isDataArrayTexture||he.isCompressedArrayTexture)E.setTexture2DArray(he,0),et=ae.TEXTURE_2D_ARRAY;else{console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");return}ae.pixelStorei(ae.UNPACK_FLIP_Y_WEBGL,he.flipY),ae.pixelStorei(ae.UNPACK_PREMULTIPLY_ALPHA_WEBGL,he.premultiplyAlpha),ae.pixelStorei(ae.UNPACK_ALIGNMENT,he.unpackAlignment);const at=ae.getParameter(ae.UNPACK_ROW_LENGTH),gt=ae.getParameter(ae.UNPACK_IMAGE_HEIGHT),Pt=ae.getParameter(ae.UNPACK_SKIP_PIXELS),bt=ae.getParameter(ae.UNPACK_SKIP_ROWS),zt=ae.getParameter(ae.UNPACK_SKIP_IMAGES),mt=de.isCompressedTexture?de.mipmaps[me]:de.image;ae.pixelStorei(ae.UNPACK_ROW_LENGTH,mt.width),ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT,mt.height),ae.pixelStorei(ae.UNPACK_SKIP_PIXELS,N.min.x),ae.pixelStorei(ae.UNPACK_SKIP_ROWS,N.min.y),ae.pixelStorei(ae.UNPACK_SKIP_IMAGES,N.min.z),de.isDataTexture||de.isData3DTexture?ae.texSubImage3D(et,me,oe.x,oe.y,oe.z,Ue,Xe,Ge,je,Ye,mt.data):he.isCompressedArrayTexture?ae.compressedTexSubImage3D(et,me,oe.x,oe.y,oe.z,Ue,Xe,Ge,je,mt.data):ae.texSubImage3D(et,me,oe.x,oe.y,oe.z,Ue,Xe,Ge,je,Ye,mt),ae.pixelStorei(ae.UNPACK_ROW_LENGTH,at),ae.pixelStorei(ae.UNPACK_IMAGE_HEIGHT,gt),ae.pixelStorei(ae.UNPACK_SKIP_PIXELS,Pt),ae.pixelStorei(ae.UNPACK_SKIP_ROWS,bt),ae.pixelStorei(ae.UNPACK_SKIP_IMAGES,zt),me===0&&he.generateMipmaps&&ae.generateMipmap(et),ue.unbindTexture()},this.initTexture=function(N){N.isCubeTexture?E.setTextureCube(N,0):N.isData3DTexture?E.setTexture3D(N,0):N.isDataArrayTexture||N.isCompressedArrayTexture?E.setTexture2DArray(N,0):E.setTexture2D(N,0),ue.unbindTexture()},this.resetState=function(){x=0,w=0,D=null,ue.reset(),ft.reset()},typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Za}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const n=this.getContext();n.drawingBufferColorSpace=e===Fy?"display-p3":"srgb",n.unpackColorSpace=en.workingColorSpace===ng?"display-p3":"srgb"}get useLegacyLights(){return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights}set useLegacyLights(e){console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."),this._useLegacyLights=e}}class Que extends $i{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new is,this.environmentIntensity=1,this.environmentRotation=new is,this.overrideMaterial=null,typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,n){return super.copy(e,n),e.background!==null&&(this.background=e.background.clone()),e.environment!==null&&(this.environment=e.environment.clone()),e.fog!==null&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),e.overrideMaterial!==null&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const n=super.toJSON(e);return this.fog!==null&&(n.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(n.object.backgroundBlurriness=this.backgroundBlurriness),this.backgroundIntensity!==1&&(n.object.backgroundIntensity=this.backgroundIntensity),n.object.backgroundRotation=this.backgroundRotation.toArray(),this.environmentIntensity!==1&&(n.object.environmentIntensity=this.environmentIntensity),n.object.environmentRotation=this.environmentRotation.toArray(),n}}class Hy extends Mf{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new qt(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Q3=new ve,ew=new ve,tw=new Rn,e_=new rg,Jh=new ig;class j4 extends $i{constructor(e=new Qi,n=new Hy){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=n,this.updateMorphTargets()}copy(e,n){return super.copy(e,n),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[0];for(let r=1,a=n.count;r<a;r++)Q3.fromBufferAttribute(n,r-1),ew.fromBufferAttribute(n,r),i[r]=i[r-1],i[r]+=Q3.distanceTo(ew);e.setAttribute("lineDistance",new zn(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}raycast(e,n){const i=this.geometry,r=this.matrixWorld,a=e.params.Line.threshold,s=i.drawRange;if(i.boundingSphere===null&&i.computeBoundingSphere(),Jh.copy(i.boundingSphere),Jh.applyMatrix4(r),Jh.radius+=a,e.ray.intersectsSphere(Jh)===!1)return;tw.copy(r).invert(),e_.copy(e.ray).applyMatrix4(tw);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),u=o*o,c=new ve,l=new ve,d=new ve,f=new ve,h=this.isLineSegments?2:1,g=i.index,m=i.attributes.position;if(g!==null){const p=Math.max(0,s.start),y=Math.min(g.count,s.start+s.count);for(let _=p,b=y-1;_<b;_+=h){const x=g.getX(_),w=g.getX(_+1);if(c.fromBufferAttribute(m,x),l.fromBufferAttribute(m,w),e_.distanceSqToSegment(c,l,f,d)>u)continue;f.applyMatrix4(this.matrixWorld);const O=e.ray.origin.distanceTo(f);O<e.near||O>e.far||n.push({distance:O,point:d.clone().applyMatrix4(this.matrixWorld),index:_,face:null,faceIndex:null,object:this})}}else{const p=Math.max(0,s.start),y=Math.min(m.count,s.start+s.count);for(let _=p,b=y-1;_<b;_+=h){if(c.fromBufferAttribute(m,_),l.fromBufferAttribute(m,_+1),e_.distanceSqToSegment(c,l,f,d)>u)continue;f.applyMatrix4(this.matrixWorld);const w=e.ray.origin.distanceTo(f);w<e.near||w>e.far||n.push({distance:w,point:d.clone().applyMatrix4(this.matrixWorld),index:_,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const n=this.geometry.morphAttributes,i=Object.keys(n);if(i.length>0){const r=n[i[0]];if(r!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let a=0,s=r.length;a<s;a++){const o=r[a].name||String(a);this.morphTargetInfluences.push(0),this.morphTargetDictionary[o]=a}}}}}const nw=new ve,iw=new ve;class ele extends j4{constructor(e,n){super(e,n),this.isLineSegments=!0,this.type="LineSegments"}computeLineDistances(){const e=this.geometry;if(e.index===null){const n=e.attributes.position,i=[];for(let r=0,a=n.count;r<a;r+=2)nw.fromBufferAttribute(n,r),iw.fromBufferAttribute(n,r+1),i[r]=r===0?0:i[r-1],i[r+1]=i[r]+nw.distanceTo(iw);e.setAttribute("lineDistance",new zn(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");return this}}class zy extends Qi{constructor(e=1,n=1,i=1,r=32,a=1,s=!1,o=0,u=Math.PI*2){super(),this.type="CylinderGeometry",this.parameters={radiusTop:e,radiusBottom:n,height:i,radialSegments:r,heightSegments:a,openEnded:s,thetaStart:o,thetaLength:u};const c=this;r=Math.floor(r),a=Math.floor(a);const l=[],d=[],f=[],h=[];let g=0;const v=[],m=i/2;let p=0;y(),s===!1&&(e>0&&_(!0),n>0&&_(!1)),this.setIndex(l),this.setAttribute("position",new zn(d,3)),this.setAttribute("normal",new zn(f,3)),this.setAttribute("uv",new zn(h,2));function y(){const b=new ve,x=new ve;let w=0;const D=(n-e)/i;for(let O=0;O<=a;O++){const M=[],S=O/a,B=S*(n-e)+e;for(let V=0;V<=r;V++){const z=V/r,Q=z*u+o,Z=Math.sin(Q),q=Math.cos(Q);x.x=B*Z,x.y=-S*i+m,x.z=B*q,d.push(x.x,x.y,x.z),b.set(Z,D,q).normalize(),f.push(b.x,b.y,b.z),h.push(z,1-S),M.push(g++)}v.push(M)}for(let O=0;O<r;O++)for(let M=0;M<a;M++){const S=v[M][O],B=v[M+1][O],V=v[M+1][O+1],z=v[M][O+1];l.push(S,B,z),l.push(B,V,z),w+=6}c.addGroup(p,w,0),p+=w}function _(b){const x=g,w=new vt,D=new ve;let O=0;const M=b===!0?e:n,S=b===!0?1:-1;for(let V=1;V<=r;V++)d.push(0,m*S,0),f.push(0,S,0),h.push(.5,.5),g++;const B=g;for(let V=0;V<=r;V++){const Q=V/r*u+o,Z=Math.cos(Q),q=Math.sin(Q);D.x=M*q,D.y=m*S,D.z=M*Z,d.push(D.x,D.y,D.z),f.push(0,S,0),w.x=Z*.5+.5,w.y=q*.5*S+.5,h.push(w.x,w.y),g++}for(let V=0;V<r;V++){const z=x+V,Q=B+V;b===!0?l.push(Q,Q+1,z):l.push(Q+1,Q,z),O+=3}c.addGroup(p,O,b===!0?1:2),p+=O}}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new zy(e.radiusTop,e.radiusBottom,e.height,e.radialSegments,e.heightSegments,e.openEnded,e.thetaStart,e.thetaLength)}}class $y extends Qi{constructor(e=1,n=32,i=16,r=0,a=Math.PI*2,s=0,o=Math.PI){super(),this.type="SphereGeometry",this.parameters={radius:e,widthSegments:n,heightSegments:i,phiStart:r,phiLength:a,thetaStart:s,thetaLength:o},n=Math.max(3,Math.floor(n)),i=Math.max(2,Math.floor(i));const u=Math.min(s+o,Math.PI);let c=0;const l=[],d=new ve,f=new ve,h=[],g=[],v=[],m=[];for(let p=0;p<=i;p++){const y=[],_=p/i;let b=0;p===0&&s===0?b=.5/n:p===i&&u===Math.PI&&(b=-.5/n);for(let x=0;x<=n;x++){const w=x/n;d.x=-e*Math.cos(r+w*a)*Math.sin(s+_*o),d.y=e*Math.cos(s+_*o),d.z=e*Math.sin(r+w*a)*Math.sin(s+_*o),g.push(d.x,d.y,d.z),f.copy(d).normalize(),v.push(f.x,f.y,f.z),m.push(w+b,1-_),y.push(c++)}l.push(y)}for(let p=0;p<i;p++)for(let y=0;y<n;y++){const _=l[p][y+1],b=l[p][y],x=l[p+1][y],w=l[p+1][y+1];(p!==0||s>0)&&h.push(_,b,w),(p!==i-1||u<Math.PI)&&h.push(b,x,w)}this.setIndex(h),this.setAttribute("position",new zn(g,3)),this.setAttribute("normal",new zn(v,3)),this.setAttribute("uv",new zn(m,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new $y(e.radius,e.widthSegments,e.heightSegments,e.phiStart,e.phiLength,e.thetaStart,e.thetaLength)}}class tle{constructor(e=!0){this.autoStart=e,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}start(){this.startTime=rw(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0}stop(){this.getElapsedTime(),this.running=!1,this.autoStart=!1}getElapsedTime(){return this.getDelta(),this.elapsedTime}getDelta(){let e=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){const n=rw();e=(n-this.oldTime)/1e3,this.oldTime=n,this.elapsedTime+=e}return e}}function rw(){return(typeof performance>"u"?Date:performance).now()}const aw=new Rn;class nle{constructor(e,n,i=0,r=1/0){this.ray=new rg(e,n),this.near=i,this.far=r,this.camera=null,this.layers=new By,this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}}}set(e,n){this.ray.set(e,n)}setFromCamera(e,n){n.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(n.matrixWorld),this.ray.direction.set(e.x,e.y,.5).unproject(n).sub(this.ray.origin).normalize(),this.camera=n):n.isOrthographicCamera?(this.ray.origin.set(e.x,e.y,(n.near+n.far)/(n.near-n.far)).unproject(n),this.ray.direction.set(0,0,-1).transformDirection(n.matrixWorld),this.camera=n):console.error("THREE.Raycaster: 
5825Unsupported camera type: "+n.type)}setFromXRController(e){return aw.identity().extractRotation(e.matrixWorld),this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(0,0,-1).applyMatrix4(aw),this}intersectObject(e,n=!0,i=[]){return P2(e,this,i,n),i.sort(sw),i}intersectObjects(e,n=!0,i=[]){for(let r=0,a=e.length;r<a;r++)P2(e[r],this,i,n);return i.sort(sw),i}}function sw(t,e){return t.distance-e.distance}function P2(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),i===!0){const r=t.children;for(let a=0,s=r.length;a<s;a++)P2(r[a],e,n,!0)}}class ow{constructor(e=1,n=0,i=0){return this.radius=e,this.phi=n,this.theta=i,this}set(e,n,i){return this.radius=e,this.phi=n,this.theta=i,this}copy(e){return this.radius=e.radius,this.phi=e.phi,this.theta=e.theta,this}makeSafe(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this}setFromVector3(e){return this.setFromCartesianCoords(e.x,e.y,e.z)}setFromCartesianCoords(e,n,i){return this.radius=Math.sqrt(e*e+n*n+i*i),this.radius===0?(this.theta=0,this.phi=0):(this.theta=Math.atan2(e,i),this.phi=Math.acos(Mi(n/this.radius,-1,1))),this}clone(){return new this.constructor().copy(this)}}class ile extends j4{constructor(e,n=1,i=16776960){const r=i,a=[1,-1,0,-1,1,0,-1,-1,0,1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],s=new Qi;s.setAttribute("position",new zn(a,3)),s.computeBoundingSphere(),super(s,new Hy({color:r,toneMapped:!1})),this.type="PlaneHelper",this.plane=e,this.size=n;const o=[1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],u=new Qi;u.setAttribute("position",new zn(o,3)),u.computeBoundingSphere(),this.add(new pr(u,new ag({color:r,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}updateMatrixWorld(e){this.position.set(0,0,0),this.scale.set(.5*this.size,.5*this.size,1),this.lookAt(this.plane.normal),this.translateZ(-this.plane.constant),super.updateMatrixWorld(e)}dispose(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()}}class rle extends ele{constructor(e=1){const n=[0,0,0,e,0,0,0,0,0,0,e,0,0,0,0,0,0,e],i=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],r=new Qi;r.setAttribute("position",new zn(n,3)),r.setAttribute("color",new zn(i,3));const a=new Hy({vertexColors:!0,toneMapped:!1});super(r,a),this.type="AxesHelper"}setColors(e,n,i){const r=new qt,a=this.geometry.attributes.color.array;return r.set(e),r.toArray(a,0),r.toArray(a,3),r.set(n),r.toArray(a,6),r.toArray(a,9),r.set(i),r.toArray(a,12),r.toArray(a,15),this.geometry.attributes.color.needsUpdate=!0,this}dispose(){this.geometry.dispose(),this.material.dispose()}}typeof __THREE_DEVTOOLS__<"u"&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:Uy}}));typeof window<"u"&&(window.__THREE__?console.warn("WARNING: Multiple instances of Three.js being imported."):window.__THREE__=Uy);const uw={type:"change"},t_={type:"start"},lw={type:"end"},Qh=new rg,cw=new Ga,ale=Math.cos(70*zie.DEG2RAD);class sle extends fu{constructor(e,n){super(),this.object=e,this.domElement=n,this.domElement.style.touchAction="none",this.enabled=!0,this.target=new ve,this.cursor=new ve,this.minDistance=0,this.maxDistance=1/0,this.minZoom=0,this.maxZoom=1/0,this.minTargetRadius=0,this.maxTargetRadius=1/0,this.minPolarAngle=0,this.maxPolarAngle=Math.PI,this.minAzimuthAngle=-1/0,this.maxAzimuthAngle=1/0,this.enableDamping=!1,this.dampingFactor=.05,this.enableZoom=!0,this.zoomSpeed=1,this.enableRotate=!0,this.rotateSpeed=1,this.enablePan=!0,this.panSpeed=1,this.screenSpacePanning=!0,this.keyPanSpeed=7,this.zoomToCursor=!1,this.autoRotate=!1,this.autoRotateSpeed=2,this.keys={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"},this.mouseButtons={LEFT:yu.ROTATE,MIDDLE:yu.DOLLY,RIGHT:yu.PAN},this.touches={ONE:Eu.ROTATE,TWO:Eu.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this.getPolarAngle=function(){return o.phi},this.getAzimuthalAngle=function(){return o.theta},this.getDistance=function(){return this.object.position.distanceTo(this.target)},this.listenToKeyEvents=function(L){L.addEventListener("keydown",Oe),this._domElementKeyEvents=L},this.stopListenToKeyEvents=function(){this._domElementKeyEvents.removeEventListener("keydown",Oe),this._domElementKeyEvents=null},this.saveState=function(){i.target0.copy(i.target),i.position0.copy(i.object.position),i.zoom0=i.object.zoom},this.reset=function(){i.target.copy(i.target0),i.object.position.copy(i.position0),i.object.zoom=i.zoom0,i.object.updateProjectionMatrix(),i.dispatchEvent(uw),i.update(),a=r.NONE},this.update=(function(){const L=new ve,Ae=new su().setFromUnitVectors(e.up,new ve(0,1,0)),Pe=Ae.clone().invert(),We=new ve,Qe=new su,yt=new ve,Et=2*Math.PI;return function(Cn=null){const Ft=i.object.position;
5825L.copy(Ft).sub(i.target),L.applyQuaternion(Ae),o.setFromVector3(L),i.autoRotate&&a===r.NONE&&V(S(Cn)),i.enableDamping?(o.theta+=u.theta*i.dampingFactor,o.phi+=u.phi*i.dampingFactor):(o.theta+=u.theta,o.phi+=u.phi);let bn=i.minAzimuthAngle,yn=i.maxAzimuthAngle;isFinite(bn)&&isFinite(yn)&&(bn<-Math.PI?bn+=Et:bn>Math.PI&&(bn-=Et),yn<-Math.PI?yn+=Et:yn>Math.PI&&(yn-=Et),bn<=yn?o.theta=Math.max(bn,Math.min(yn,o.theta)):o.theta=o.theta>(bn+yn)/2?Math.max(bn,o.theta):Math.min(yn,o.theta)),o.phi=Math.max(i.minPolarAngle,Math.min(i.maxPolarAngle,o.phi)),o.makeSafe(),i.enableDamping===!0?i.target.addScaledVector(l,i.dampingFactor):i.target.add(l),i.target.sub(i.cursor),i.target.clampLength(i.minTargetRadius,i.maxTargetRadius),i.target.add(i.cursor);let R=!1;if(i.zoomToCursor&&w||i.object.isOrthographicCamera)o.radius=le(o.radius);else{const G=o.radius;o.radius=le(o.radius*c),R=G!=o.radius}if(L.setFromSpherical(o),L.applyQuaternion(Pe),Ft.copy(i.target).add(L),i.object.lookAt(i.target),i.enableDamping===!0?(u.theta*=1-i.dampingFactor,u.phi*=1-i.dampingFactor,l.multiplyScalar(1-i.dampingFactor)):(u.set(0,0,0),l.set(0,0,0)),i.zoomToCursor&&w){let G=null;if(i.object.isPerspectiveCamera){const F=L.length();G=le(F*c);const T=F-G;i.object.position.addScaledVector(b,T),i.object.updateMatrixWorld(),R=!!T}else if(i.object.isOrthographicCamera){const F=new ve(x.x,x.y,0);F.unproject(i.object);const T=i.object.zoom;i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/c)),i.object.updateProjectionMatrix(),R=T!==i.object.zoom;const A=new ve(x.x,x.y,0);A.unproject(i.object),i.object.position.sub(A).add(F),i.object.updateMatrixWorld(),G=L.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),i.zoomToCursor=!1;G!==null&&(this.screenSpacePanning?i.target.set(0,0,-1).transformDirection(i.object.matrix).multiplyScalar(G).add(i.object.position):(Qh.origin.copy(i.object.position),Qh.direction.set(0,0,-1).transformDirection(i.object.matrix),Math.abs(i.object.up.dot(Qh.direction))<ale?e.lookAt(i.target):(cw.setFromNormalAndCoplanarPoint(i.object.up,i.target),Qh.intersectPlane(cw,i.target))))}else if(i.object.isOrthographicCamera){const G=i.object.zoom;i.object.zoom=Math.max(i.minZoom,Math.min(i.maxZoom,i.object.zoom/c)),G!==i.object.zoom&&(i.object.updateProjectionMatrix(),R=!0)}return c=1,w=!1,R||We.distanceToSquared(i.object.position)>s||8*(1-Qe.dot(i.object.quaternion))>s||yt.distanceToSquared(i.target)>s?(i.dispatchEvent(uw),We.copy(i.object.position),Qe.copy(i.object.quaternion),yt.copy(i.target),!0):!1}})(),this.dispose=function(){i.domElement.removeEventListener("contextmenu",Ne),i.domElement.removeEventListener("pointerdown",I),i.domElement.removeEventListener("pointercancel",Y),i.domElement.removeEventListener("wheel",X),i.domElement.removeEventListener("pointermove",j),i.domElement.removeEventListener("pointerup",Y),i.domElement.getRootNode().removeEventListener("keydown",Ie,{capture:!0}),i._domElementKeyEvents!==null&&(i._domElementKeyEvents.removeEventListener("keydown",Oe),i._domElementKeyEvents=null)};const i=this,r={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let a=r.NONE;const s=1e-6,o=new ow,u=new ow;let c=1;const l=new ve,d=new vt,f=new vt,h=new vt,g=new vt,v=new vt,m=new vt,p=new vt,y=new vt,_=new vt,b=new ve,x=new vt;let w=!1;const D=[],O={};let M=!1;function S(L){return L!==null?2*Math.PI/60*i.autoRotateSpeed*L:2*Math.PI/60/60*i.autoRotateSpeed}function B(L){const Ae=Math.abs(L*.01);return Math.pow(.95,i.zoomSpeed*Ae)}function V(L){u.theta-=L}function z(L){u.phi-=L}const Q=(function(){const L=new ve;return function(Pe,We){L.setFromMatrixColumn(We,0),L.multiplyScalar(-Pe),l.add(L)}})(),Z=(function(){const L=new ve;return function(Pe,We){i.screenSpacePanning===!0?L.setFromMatrixColumn(We,1):(L.setFromMatrixColumn(We,0),L.crossVectors(i.object.up,L)),L.multiplyScalar(Pe),l.add(L)}})(),q=(function(){const L=new ve;return function(Pe,We){const Qe=i.domElement;if(i.object.isPerspectiveCamera){const yt=i.object.position;L.copy(yt).sub(i.target);let Et=L.length();Et*=Math.tan(i.object.fov/2*Math.PI/180),Q(2*Pe*Et/Qe.clientHeight,i.object.matrix),Z(2*We*Et/Qe.clientHeight,i.object.matrix)}else i.object.isOrthographicCamera?(Q(Pe*(i.object.right-i.object.left)/i.object.zoom/Qe.clientWidth,i.object.matrix),Z(We*(i.object.top-i.object.bottom)/i.object.zoom/Qe.clientHeight,i.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),i.enablePan=!1)}})();function te(L){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?c/=L:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function $(L){i.object.isPerspectiveCamera||i.object.isOrthographicCamera?c*=L:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),i.enableZoom=!1)}function ee(L,Ae){if(!i.zoomToCursor)return;w=!0;const Pe=i.domElement.getBoundingClientRect(),We=L-Pe.left,Qe=Ae-Pe.top,yt=Pe.width,Et=Pe.height;x.x=We/yt*2-1,x.y=-(Qe/Et)*2+1,b.set(x.x,x.y,1).unproject(i.object).sub(i.object.position).normalize()}function le(L){return Math.max(i.minDistance,Math.min(i.maxDistance,L))}function xe(L){d.set(L.clientX,L.clientY)}function J(L){ee(L.clientX,L.clientX),p.set(L.clientX,L.clientY)}function ye(L){g.set(L.clientX,L.clientY)}function H(L){f.set(L.clientX,L.clientY),h.subVectors(f,d).multiplyScalar(i.rotateSpeed);const Ae=i.domElement;V(2*Math.PI*h.x/Ae.clientHeight),z(2*Math.PI*h.y/Ae.clientHeight),d.copy(f),i.update()}function ie(L){y.set(L.clientX,L.clientY),_.subVectors(y,p),_.y>0?te(B(_.y)):_.y<0&&$(B(_.y)),p.copy(y),i.update()}
5825function _e(L){v.set(L.clientX,L.clientY),m.subVectors(v,g).multiplyScalar(i.panSpeed),q(m.x,m.y),g.copy(v),i.update()}function W(L){ee(L.clientX,L.clientY),L.deltaY<0?$(B(L.deltaY)):L.deltaY>0&&te(B(L.deltaY)),i.update()}function be(L){let Ae=!1;switch(L.code){case i.keys.UP:L.ctrlKey||L.metaKey||L.shiftKey?z(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):q(0,i.keyPanSpeed),Ae=!0;break;case i.keys.BOTTOM:L.ctrlKey||L.metaKey||L.shiftKey?z(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):q(0,-i.keyPanSpeed),Ae=!0;break;case i.keys.LEFT:L.ctrlKey||L.metaKey||L.shiftKey?V(2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):q(i.keyPanSpeed,0),Ae=!0;break;case i.keys.RIGHT:L.ctrlKey||L.metaKey||L.shiftKey?V(-2*Math.PI*i.rotateSpeed/i.domElement.clientHeight):q(-i.keyPanSpeed,0),Ae=!0;break}Ae&&(L.preventDefault(),i.update())}function ge(L){if(D.length===1)d.set(L.pageX,L.pageY);else{const Ae=pt(L),Pe=.5*(L.pageX+Ae.x),We=.5*(L.pageY+Ae.y);d.set(Pe,We)}}function De(L){if(D.length===1)g.set(L.pageX,L.pageY);else{const Ae=pt(L),Pe=.5*(L.pageX+Ae.x),We=.5*(L.pageY+Ae.y);g.set(Pe,We)}}function ae(L){const Ae=pt(L),Pe=L.pageX-Ae.x,We=L.pageY-Ae.y,Qe=Math.sqrt(Pe*Pe+We*We);p.set(0,Qe)}function Fe(L){i.enableZoom&&ae(L),i.enablePan&&De(L)}function U(L){i.enableZoom&&ae(L),i.enableRotate&&ge(L)}function K(L){if(D.length==1)f.set(L.pageX,L.pageY);else{const Pe=pt(L),We=.5*(L.pageX+Pe.x),Qe=.5*(L.pageY+Pe.y);f.set(We,Qe)}h.subVectors(f,d).multiplyScalar(i.rotateSpeed);const Ae=i.domElement;V(2*Math.PI*h.x/Ae.clientHeight),z(2*Math.PI*h.y/Ae.clientHeight),d.copy(f)}function ue(L){if(D.length===1)v.set(L.pageX,L.pageY);else{const Ae=pt(L),Pe=.5*(L.pageX+Ae.x),We=.5*(L.pageY+Ae.y);v.set(Pe,We)}m.subVectors(v,g).multiplyScalar(i.panSpeed),q(m.x,m.y),g.copy(v)}function Se(L){const Ae=pt(L),Pe=L.pageX-Ae.x,We=L.pageY-Ae.y,Qe=Math.sqrt(Pe*Pe+We*We);y.set(0,Qe),_.set(0,Math.pow(y.y/p.y,i.zoomSpeed)),te(_.y),p.copy(y);const yt=(L.pageX+Ae.x)*.5,Et=(L.pageY+Ae.y)*.5;ee(yt,Et)}function k(L){i.enableZoom&&Se(L),i.enablePan&&ue(L)}function E(L){i.enableZoom&&Se(L),i.enableRotate&&K(L)}function I(L){i.enabled!==!1&&(D.length===0&&(i.domElement.setPointerCapture(L.pointerId),i.domElement.addEventListener("pointermove",j),i.domElement.addEventListener("pointerup",Y)),!ct(L)&&(lt(L),L.pointerType==="touch"?$e(L):se(L)))}function j(L){i.enabled!==!1&&(L.pointerType==="touch"?Be(L):Te(L))}function Y(L){switch(Ze(L),D.length){case 0:i.domElement.releasePointerCapture(L.pointerId),i.domElement.removeEventListener("pointermove",j),i.domElement.removeEventListener("pointerup",Y),i.dispatchEvent(lw),a=r.NONE;break;case 1:const Ae=D[0],Pe=O[Ae];$e({pointerId:Ae,pageX:Pe.x,pageY:Pe.y});break}}function se(L){let Ae;switch(L.button){case 0:Ae=i.mouseButtons.LEFT;break;case 1:Ae=i.mouseButtons.MIDDLE;break;case 2:Ae=i.mouseButtons.RIGHT;break;default:Ae=-1}switch(Ae){case yu.DOLLY:if(i.enableZoom===!1)return;J(L),a=r.DOLLY;break;case yu.ROTATE:if(L.ctrlKey||L.metaKey||L.shiftKey){if(i.enablePan===!1)return;ye(L),a=r.PAN}else{if(i.enableRotate===!1)return;xe(L),a=r.ROTATE}break;case yu.PAN:if(L.ctrlKey||L.metaKey||L.shiftKey){if(i.enableRotate===!1)return;xe(L),a=r.ROTATE}else{if(i.enablePan===!1)return;ye(L),a=r.PAN}break;default:a=r.NONE}a!==r.NONE&&i.dispatchEvent(t_)}function Te(L){switch(a){case r.ROTATE:if(i.enableRotate===!1)return;H(L);break;case r.DOLLY:if(i.enableZoom===!1)return;ie(L);break;case r.PAN:if(i.enablePan===!1)return;_e(L);break}}function X(L){i.enabled===!1||i.enableZoom===!1||a!==r.NONE||(L.preventDefault(),i.dispatchEvent(t_),W(ce(L)),i.dispatchEvent(lw))}function ce(L){const Ae=L.deltaMode,Pe={clientX:L.clientX,clientY:L.clientY,deltaY:L.deltaY};switch(Ae){case 1:Pe.deltaY*=16;break;case 2:Pe.deltaY*=100;break}return L.ctrlKey&&!M&&(Pe.deltaY*=10),Pe}function Ie(L){L.key==="Control"&&(M=!0,i.domElement.getRootNode().addEventListener("keyup",Me,{passive:!0,capture:!0}))}function Me(L){L.key==="Control"&&(M=!1,i.domElement.getRootNode().removeEventListener("keyup",Me,{passive:!0,capture:!0}))}function Oe(L){i.enabled===!1||i.enablePan===!1||be(L)}function $e(L){switch(ft(L),D.length){case 1:switch(i.touches.ONE){case Eu.ROTATE:if(i.enableRotate===!1)return;ge(L),a=r.TOUCH_ROTATE;break;case Eu.PAN:if(i.enablePan===!1)return;De(L),a=r.TOUCH_PAN;break;default:a=r.NONE}break;case 2:switch(i.touches.TWO){case Eu.DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;Fe(L),a=r.TOUCH_DOLLY_PAN;break;case Eu.DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;U(L),a=r.TOUCH_DOLLY_ROTATE;break;default:a=r.NONE}break;default:a=r.NONE}a!==r.NONE&&i.dispatchEvent(t_)}function Be(L){switch(ft(L),a){case r.TOUCH_ROTATE:if(i.enableRotate===!1)return;K(L),i.update();break;case r.TOUCH_PAN:if(i.enablePan===!1)return;ue(L),i.update();break;case r.TOUCH_DOLLY_PAN:if(i.enableZoom===!1&&i.enablePan===!1)return;k(L),i.update();break;case r.TOUCH_DOLLY_ROTATE:if(i.enableZoom===!1&&i.enableRotate===!1)return;E(L),i.update();break;default:a=r.NONE}}function Ne(L){i.enabled!==!1&&L.preventDefault()}function lt(L){D.push(L.pointerId)}function Ze(L){delete O[L.pointerId];for(let Ae=0;Ae<D.length;Ae++)if(D[Ae]==L.pointerId){D.splice(Ae,1);return}}function ct(L){for(let Ae=0;Ae<D.length;Ae++)if(D[Ae]==L.pointerId)return!0;return!1}function ft(L){let Ae=O[L.pointerId];Ae===void 0&&(Ae=new vt,O[L.pointerId]=Ae),Ae.set(L.pageX,L.pageY)}function pt(L){const Ae=L.pointerId===D[0]?D[1]:D[0];return O[Ae]}i.domElement.addEventListener("contextmenu",Ne),i.domElement.addEventListener("pointerdown",I),i.domElement.addEventListener("pointercancel",Y),i.domElement.addEventListener("wheel",X,{passive:!1}),i.domElement.getRootNode().addEventListener("keydown",Ie,{passive:!0,capture:!0}),this.update()}}const ole=` /* based on http://madebyevan.com/shaders/grid/ */
5826  
5827varying vec3 pos;
5828varying vec2 vUv;
5829uniform float time;
5830uniform vec3 strokeColor;
5831
5832float map(float value, float min1, float max1, float min2, float max2) {
5833  return min2 + (value - min1) * (max2 - min2) / (max1 - min1);
5834}
5835
5836void main() {
5837  // Pick a coordinate to visualize in a grid
5838  float coord = pos.y * mix(0.15, 0.2, vUv.y);
5839
5840  // Compute anti-aliased world-space grid lines
5841  float fw = fwidth(coord);
5842  float color = abs(fract(coord - 0.5 + fw) - 0.5);
5843
5844//   float start = 0.4;
5845//   float end = 0.5;
5846
5847//   color = map(clamp(color, start, end), start, end, 0., 0.5);
5848
5849  color /= fw;
5850
5851  // Just visualize the grid lines directly
5852  color = 1.0 - min(color, 1.0);
5853
5854  // Apply gamma correction
5855  color = pow(color, 1.0 / 2.2);
5856  gl_FragColor = vec4(strokeColor, 1.) * color;
5857}
5858`,ule=`uniform float u_time;
5859uniform float sides;
5860uniform float seed;
5861uniform vec3 mouseForce;
5862varying vec2 vUv;
5863varying vec3 pos;
5864
5865
5866#define PI 3.14159265359
5867#define TWO_PI 6.28318530718
5868//
5869// GLSL textureless classic 3D noise "cnoise",
5870// with an RSL-style periodic variant "pnoise".
5871// Author:  Stefan Gustavson ([email protected])
5872// Version: 2011-10-11
5873//
5874// Many thanks to Ian McEwan of Ashima Arts for the
5875// ideas for permutation and gradient selection.
5876//
5877// Copyright (c) 2011 Stefan Gustavson. All rights reserved.
5878// Distributed under the MIT license. See LICENSE file.
5879// https://github.com/ashima/webgl-noise
5880//
5881
5882vec3 mod289(vec3 x)
5883{
5884  return x - floor(x * (1.0 / 289.0)) * 289.0;
5885}
5886
5887vec4 mod289(vec4 x)
5888{
5889  return x - floor(x * (1.0 / 289.0)) * 289.0;
5890}
5891
5892vec4 permute(vec4 x)
5893{
5894  return mod289(((x*34.0)+1.0)*x);
5895}
5896
5897vec4 taylorInvSqrt(vec4 r)
5898{
5899  return 1.79284291400159 - 0.85373472095314 * r;
5900}
5901
5902vec3 fade(vec3 t) {
5903  return t*t*t*(t*(t*6.0-15.0)+10.0);
5904}
5905
5906// Classic Perlin noise
5907float cnoise(vec3 P)
5908{
5909  vec3 Pi0 = floor(P); // Integer part for indexing
5910  vec3 Pi1 = Pi0 + vec3(1.0); // Integer part + 1
5911  Pi0 = mod289(Pi0);
5912  Pi1 = mod289(Pi1);
5913  vec3 Pf0 = fract(P); // Fractional part for interpolation
5914  vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0
5915  vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
5916  vec4 iy = vec4(Pi0.yy, Pi1.yy);
5917  vec4 iz0 = Pi0.zzzz;
5918  vec4 iz1 = Pi1.zzzz;
5919
5920  vec4 ixy = permute(permute(ix) + iy);
5921  vec4 ixy0 = permute(ixy + iz0);
5922  vec4 ixy1 = permute(ixy + iz1);
5923
5924  vec4 gx0 = ixy0 * (1.0 / 7.0);
5925  vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;
5926  gx0 = fract(gx0);
5927  vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);
5928  vec4 sz0 = step(gz0, vec4(0.0));
5929  gx0 -= sz0 * (step(0.0, gx0) - 0.5);
5930  gy0 -= sz0 * (step(0.0, gy0) - 0.5);
5931
5932  vec4 gx1 = ixy1 * (1.0 / 7.0);
5933  vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;
5934  gx1 = fract(gx1);
5935  vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);
5936  vec4 sz1 = step(gz1, vec4(0.0));
5937  gx1 -= sz1 * (step(0.0, gx1) - 0.5);
5938  gy1 -= sz1 * (step(0.0, gy1) - 0.5);
5939
5940  vec3 g000 = vec3(gx0.x,gy0.x,gz0.x);
5941  vec3 g100 = vec3(gx0.y,gy0.y,gz0.y);
5942  vec3 g010 = vec3(gx0.z,gy0.z,gz0.z);
5943  vec3 g110 = vec3(gx0.w,gy0.w,gz0.w);
5944  vec3 g001 = vec3(gx1.x,gy1.x,gz1.x);
5945  vec3 g101 = vec3(gx1.y,gy1.y,gz1.y);
5946  vec3 g011 = vec3(gx1.z,gy1.z,gz1.z);
5947  vec3 g111 = vec3(gx1.w,gy1.w,gz1.w);
5948
5949  vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
5950  g000 *= norm0.x;
5951  g010 *= norm0.y;
5952  g100 *= norm0.z;
5953  g110 *= norm0.w;
5954  vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
5955  g001 *= norm1.x;
5956  g011 *= norm1.y;
5957  g101 *= norm1.z;
5958  g111 *= norm1.w;
5959
5960  float n000 = dot(g000, Pf0);
5961  float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));
5962  float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));
5963  float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));
5964  float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));
5965  float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));
5966  float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));
5967  float n111 = dot(g111, Pf1);
5968
5969  vec3 fade_xyz = fade(Pf0);
5970  vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);
5971  vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);
5972  float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);
5973  return 2.2 * n_xyz;
5974}
5975
5976// Classic Perlin noise, periodic variant
5977float pnoise(vec3 P, vec3 rep)
5978{
5979  vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period
5980  vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period
5981  Pi0 = mod289(Pi0);
5982  Pi1 = mod289(Pi1);
5983  vec3 Pf0 = fract(P); // Fractional part for interpolation
5984  vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0
5985  vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);
5986  vec4 iy = vec4(Pi0.yy, Pi1.yy);
5987  vec4 iz0 = Pi0.zzzz;
5988  vec4 iz1 = Pi1.zzzz;
5989
5990  vec4 ixy = permute(permute(ix) + iy);
5991  vec4 ixy0 = permute(ixy + iz0);
5992  vec4 ixy1 = permute(ixy + iz1);
5993
5994  vec4 gx0 = ixy0 * (1.0 / 7.0);
5995  vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;
5996  gx0 = fract(gx0);
5997  vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);
5998  vec4 sz0 = step(gz0, vec4(0.0));
5999  gx0 -= sz0 * (step(0.0, gx0) - 0.5);
6000  gy0 -= sz0 * (step(0.0, gy0) - 0.5);
6001
6002  vec4 gx1 = ixy1 * (1.0 / 7.0);
6003  vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;
6004  gx1 = fract(gx1);
6005  vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);
6006  vec4 sz1 = step(gz1, vec4(0.0));
6007  gx1 -= sz1 * (step(0.0, gx1) - 0.5);
6008  gy1 -= sz1 * (step(0.0, gy1) - 0.5);
6009
6010  vec3 g000 = vec3(gx0.x,gy0.x,gz0.x);
6011  vec3 g100 = vec3(gx0.y,gy0.y,gz0.y);
6012  vec3 g010 = vec3(gx0.z,gy0.z,gz0.z);
6013  vec3 g110 = vec3(gx0.w,gy0.w,gz0.w);
6014  vec3 g001 = vec3(gx1.x,gy1.x,gz1.x);
6015  vec3 g101 = vec3(gx1.y,gy1.y,gz1.y);
6016  vec3 g011 = vec3(gx1.z,gy1.z,gz1.z);
6017  vec3 g111 = vec3(gx1.w,gy1.w,gz1.w);
6018
6019  vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));
6020  g000 *= norm0.x;
6021  g010 *= norm0.y;
6022  g100 *= norm0.z;
6023  g110 *= norm0.w;
6024  vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));
6025  g001 *= norm1.x;
6026  g011 *= norm1.y;
6027  g101 *= norm1.z;
6028  g111 *= norm1.w;
6029
6030  float n000 = dot(g000, Pf0);
6031  float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));
6032  float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));
6033  float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));
6034  float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));
6035  float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));
6036  float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));
6037  float n111 = dot(g111, Pf1);
6038
6039  vec3 fade_xyz = fade(Pf0);
6040  vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);
6041  vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);
6042  float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);
6043  return 2.2 * n_xyz;
6044}
6045
6046// Include the Ashima code here!
6047
6048float turbulence( vec3 p ) {
6049    float w = 100.0;
6050    float t = -.5;
6051    for (float f = 1.0 ; f <= 10.0 ; f++ ){
6052        float power = pow( 2.0, f );
6053        t += abs( pnoise( vec3( power * p ), vec3( 10.0, 10.0, 10.0 ) ) / power );
6054    }
6055    return t;
6056}
6057
6058vec3 rotate(vec3 v, vec3 axis, float angle) {
6059    float s = sin(angle);
6060    float c = cos(angle);
6061    float oc = 1.0 - c;
6062
6063    return vec3(oc * axis.x * axis.x + c, oc * axis.x * axis.y - axis.z * s, oc * axis.z * axis.x + axis.y * s) * v.x +
6064           vec3(oc * axis.x * axis.y + axis.z * s, oc * axis.y * axis.y + c, oc * axis.y * axis.z - axis.x * s) * v.y +
6065           vec3(oc * axis.z * axis.x - axis.y * s, oc * axis.y * axis.z + axis.x * s, oc * axis.z * axis.z + c) * v.z;
6066}
6067
6068void main() {
6069
6070    vUv = uv;
6071    pos = position;
6072    // pos.z += pos.y * 0.1;
6073    pos = rotate(pos, vec3(0.0, 1.0, 0.0), -mix(PI/sides, 0., uv.y));
6074    
6075    // float noise = 2.0 *  -.10 * turbulence( .5 * normal );
6076    // rotate
6077    // pos = rotate(position, vec3(0.0, 1.0, 0.0), u_time * 0.001);
6078
6079    float animSpeed = u_time * 0.05 * 1.1;
6080
6081    float off = seed * 1000. + animSpeed;
6082    float amt = mix(10., 30., smoothstep(0., 1., uv.y));
6083    float displacement = amt * (1.0 + pnoise( 0.04 * pos.xzx + off , vec3( 100.) ));
6084    // * mix(0.01, 0., position.y))
6085
6086    // dist from mouseForce
6087    // vec3 normal = normalize(mouseForce. - pos);
6088    float fieldForce = distance(mouseForce.xz, pos.xz / 100.);
6089    fieldForce = mix(0.8, 1.1, smoothstep(0.1, 0.5, fieldForce));
6090    
6091    pos = pos + (normal * (displacement + mix(0., 10., uv.y))) * fieldForce;
6092
6093    float rotAngle = -animSpeed;
6094    pos = rotate(pos, vec3(0.0, 1.0, 0.0), rotAngle + uv.y * 0.5);
6095    
6096    gl_Position = projectionMatrix * modelViewMatrix * vec4(pos, 1.0 );
6097
6098}`,lle={__name:"ShaderLogo",props:{strokeColor:{type:String,default:"#97E9F1"},controlsEnabled:{type:Boolean,default:!1}},setup(t,{expose:e}){en.enabled=!1;const n=Le(null),i=k$(n);let r=!1;r=!1;let a,s,o,u;const c=t,l=Ve(()=>new qt(c.strokeColor));$n(()=>{o=new Que;const f=new tle,h=new ve(0);a=new Jue({alpha:!0,antialias:!0,preserveDrawingBuffer:!0});const g=a.domElement;Di().then(()=>{n.value.appendChild(g)});const v=U$(g);a.setPixelRatio(window.devicePixelRatio);const m=600,p=50,y=g.height/g.width,_=100;u=new V4(_/-2,_/2,_*y/2,_*y/-2,1,2e3),u.position.z=120,s=new sle(u,a.domElement);const b=768,x=new zy(p,p,m,b,4,!0),w={u_time:{value:f.getElapsedTime()},mouseForce:{value:new ve},strokeColor:{value:l.value},sides:{value:b},seed:{value:Math.random()}},D=new rs({uniforms:w,vertexShader:ule,fragmentShader:ole,side:da,extensions:{derivatives:!0}}),O=new ag({color:65280,wireframe:!0}),M=new $y(5,5,5),S=new pr(M,O);r&&o.add(S);const B=new pr(x,D);if(x.translate(0,-m/2,0),B.position.x=-p*1.5,B.rotation.z=-Math.PI,u.position.set(20,-50,0),s.target.set(0,0,0),s.update(),o.add(B),s.enabled=r||c.controlsEnabled,r){const Z=new rle(5);o.add(Z)}const V=new nle,z=new Ga(new ve(0,1,0),0);if(r){const Z=new ile(z,10,16776960);o.add(Z)}const Q=Ve(()=>{if(v.isOutside.value)return new ve(0,0,1);let Z=v.elementX.value/v.elementWidth.value,q=v.elementY.value/v.elementHeight.value;return Z=Z*2-1,q=-(q*2-1),new ve(Z,q,1)});a.setAnimationLoop(Z=>{a.setSize(i.width.value,i.height.value);const q=g.height/g.width;u.left=_/-2,u.right=_/2,u.top=_*q/2,u.bottom=-_*q/2,u.updateProjectionMatrix();const te=Q.value.clone();V.setFromCamera(te,u),V.ray.intersectPlane(z,te)||te.set(0,0,0),te.multiplyScalar(1/p),s.update(),h.lerp(te,1*f.getDelta()),S.position.copy(h),w.mouseForce.value=h,w.u_time.value=f.getElapsedTime()*.5,w.strokeColor.value=l.value,a.render(o,u)}),xa(()=>{a.setAnimationLoop(null),a.dispose()})});function d(){const f=document.createElement("canvas"),h=f.getContext("2d"),g=a.domElement,{width:v,height:m}=g,p=20;f.width=v+p*2,f.height=m+p*2;const y=v/2;return h.beginPath(),h.arc(v/2+p,m/2+p,y,0,Math.PI*2),h.clip(),h.drawImage(g,p,p),new Promise(_=>{f.toBlob(_),f.remove()})}return e({saveFrame:d}),(f,h)=>(tt(),_t("div",{class:"shaderLogo",ref_key:"el",ref:n},null,512))}},cle=uf(lle),dle={class:"blockLogo frame-full"};function fle(t,e){const n=cle;return tt(),_t("div",dle,[Ct(n,{class:"blockLogo__logo",strokeColor:"#a5aaaa"}),Yi(t.$slots,"default")])}const hle={},ple=Object.assign(Xb(hle,[["render",fle]]),{__name:"BlockLogo"});function mle(t,e=!0){const{$to404:n}=ut();return Ve(()=>{const i=t.data.value?.result;if(e&&t.status.value==="success"&&!i)throw n();return i})}function gle(){const t=mle(...arguments),{WEBSITE_URL:e}=Li().public,{$currentURI:n,$clipText:i}=ut(),r=mn(),a=cu();Ve(()=>os(e,r.currentRoute.value.path));const{site:s}=ND(a);
6098function o(c){return a.isHome&&(c=""),[c,s.value.title].filter(Boolean).join(" — ")}const u=h$(()=>{let c=t.value?.description||s.value.description;return{title:o(i(t.value.title)),description:i(c,160)}});return kO(),PO({title:()=>u.title}),OO({ogTitle:u.title,description:u.description,ogDescription:u.description,twitterTitle:u.title,twitterDescription:u.description}),a.currPage=t.value,t}const vle=["innerHTML"],_le=["innerHTML"],ble={__name:"error",props:["error"],async setup(t){let e,n;const i=lu(),r=([e,n]=nk(()=>DP(yJ)),e=await e,n(),e),a=t,s=gle(r),o=()=>aC({redirect:i("/")});return st(s,()=>{s.value.title=Yj(s.value.title,{...a.error})},{deep:!1,immediate:!0}),(u,c)=>{const l=Pne,d=ple,f=g4;return tt(),cn(f,null,{default:gi(()=>[Ct(d,{class:"layoutError crop-page"},{default:gi(()=>[Ct(l,{class:"layoutError__text title-grand",is:"h1",html:ze(s).title},null,8,["html"]),It("div",{class:"layoutError__text title-grand",innerHTML:ze(s).description},null,8,vle),It("button",{class:"click-text font-grand",dark:"",onClick:o,innerHTML:u.$trans("return:home")},null,8,_le)]),_:1})]),_:1})}}},yle={key:0},dw={__name:"nuxt-root",setup(t){const e=()=>null,n=ut(),i=n.deferHydration();if(n.isHydrating){const c=n.hooks.hookOnce("app:error",i);mn().beforeEach(c)}const r=!1;Ja(tu,Js()),n.hooks.callHookWith(c=>c.map(l=>l()),"vue:setup");const a=S0(),s=!1,o=/bot\b|chrome-lighthouse|facebookexternalhit|google\b/i;eM((c,l,d)=>{if(n.hooks.callHook("vue:error",c,l,d).catch(f=>console.error("[nuxt] Error in `vue:error` hook",f)),o.test(navigator.userAgent))return n.hooks.callHook("app:error",c),console.error(`[nuxt] Not rendering error page for bot with user agent \`${navigator.userAgent}\`:`,c),!1;if(sC(c)&&(c.fatal||c.unhandled))return n.runWithContext(()=>Ds(c)),!1});const u=!1;return(c,l)=>(tt(),cn(rb,{onResolve:ze(i)},{default:gi(()=>[ze(s)?(tt(),_t("div",yle)):ze(a)?(tt(),cn(ze(ble),{key:1,error:ze(a)},null,8,["error"])):ze(u)?(tt(),cn(ze(e),{key:2,context:ze(u)},null,8,["context"])):ze(r)?(tt(),cn(g0(ze(r)),{key:3})):(tt(),cn(ze(Ine),{key:4}))]),_:1},8,["onResolve"]))}};let fw;{let t;fw=async function(){if(t)return t;const n=!!(window.__NUXT__?.serverRendered??document.getElementById("__NUXT_DATA__")?.dataset.ssr==="true"),i=n?C6(dw):v_(dw),r=B8({vueApp:i});async function a(s){await r.callHook("app:error",s),r.payload.error||=Qa(s)}i.config.errorHandler=a,r.hook("app:suspense:resolve",()=>{i.config.errorHandler===a&&(i.config.errorHandler=void 0)}),!n&&UE.id&&r.hook("app:suspense:resolve",()=>{document.getElementById(UE.id)?.remove()});try{await z8(r,gne)}catch(s){a(s)}try{await r.hooks.callHook("app:created",i),await r.hooks.callHook("app:beforeMount",i),i.mount(N8),await r.hooks.callHook("app:mounted",i),await Di()}catch(s){a(s)}return i},t=fw().catch(e=>{throw console.error("Error while mounting app:",e),e})}export{Kce as $,nk as A,gle as B,gi as C,DP as D,zce as E,TP as F,uf as G,Zt as H,Xs as I,Ice as J,j5 as K,qce as L,xne as M,W$ as N,Jce as O,aj as P,Ja as Q,Yi as R,Xb as S,wce as T,ple as U,Pne as V,AP as W,ti as X,jce as Y,Xce as Z,IZ as _,In as a,A0 as a$,Pj as a0,Dt as a1,HZ as a2,h$ as a3,VJ as a4,gj as a5,XJ as a6,lR as a7,mn as a8,ND as a9,fb as aA,y0 as aB,Tl as aC,mj as aD,Hce as aE,Zce as aF,sj as aG,_f as aH,nE as aI,Lle as aJ,eb as aK,pX as aL,Oce as aM,vf as aN,fX as aO,Lne as aP,qq as aQ,xa as aR,Gce as aS,Ot as aT,jC as aU,tu as aV,ZL as aW,Ce as aX,fe as aY,rj as aZ,g0 as a_,hn as aa,Sce as ab,Cle as ac,Ale as ad,mR as ae,Db as af,ou as ag,$ce as ah,Nce as ai,eS as aj,zw as ak,Gs as al,Qk as am,$a as an,Wce as ao,qn as ap,wn as aq,Vt as ar,uu as as,nf as at,Mn as au,Zl as av,W2 as aw,Li as ax,lle as ay,F0 as az,Mce as b,Ez as b$,y_ as b0,er as b1,os as b2,of as b3,tk as b4,r5 as b5,nQ as b6,Lce as b7,om as b8,Ece as b9,Si as bA,Ac as bB,xn as bC,Or as bD,Ro as bE,fr as bF,es as bG,Zf as bH,rz as bI,U0 as bJ,Kq as bK,WA as bL,lL as bM,$$ as bN,Nk as bO,kle as bP,WD as bQ,Kle as bR,Rb as bS,hce as bT,qle as bU,Gle as bV,hz as bW,t1 as bX,Yk as bY,ice as bZ,df as b_,dL as ba,Tt as bb,xce as bc,Rce as bd,Yb as be,Ti as bf,XZ as bg,zD as bh,iu as bi,xle as bj,KZ as bk,Q2 as bl,Qt as bm,vz as bn,sA as bo,Jle as bp,sce as bq,pz as br,qD as bs,yz as bt,aA as bu,Xle as bv,wM as bw,VD as bx,Lb as by,Hle as bz,st as c,Il as c$,Ele as c0,fce as c1,xz as c2,Ule as c3,GD as c4,gz as c5,Qle as c6,Ole as c7,Mle as c8,Nle as c9,cce as cA,ui as cB,_ce as cC,Vle as cD,tce as cE,nce as cF,oce as cG,dce as cH,mce as cI,lce as cJ,xA as cK,Wle as cL,zle as cM,AA as cN,Ple as cO,Qf as cP,Tle as cQ,gce as cR,wle as cS,sz as cT,bd as cU,Fle as cV,Yce as cW,mle as cX,xJ as cY,FH as cZ,UH as c_,Rle as ca,YZ as cb,bce as cc,ece as cd,Zle as ce,uce as cf,ace as cg,jle as ch,rce as ci,Sle as cj,vce as ck,no as cl,fz as cm,cz as cn,dz as co,oz as cp,Ib as cq,mz as cr,Yle as cs,pce as ct,Ty as cu,Ble as cv,bz as cw,_z as cx,$le as cy,Ile as cz,Bt as d,Fg as d0,Ace as d1,w$ as d2,Rne as d3,yce as d4,u7 as d5,h7 as d6,cj as d7,Dce as d8,Pce as d9,G$ as da,Js as db,rR as dc,sR as dd,OZ as de,TA as df,Tce as dg,Ve as e,_t as f,tt as g,It as h,kce as i,cn as j,Zi as k,Ct as l,Cr as m,Di as n,$n as o,ze as p,S6 as q,Le as r,Xj as s,nL as t,k$ as u,Cce as v,Ql as w,Hn as x,ut as y,cu as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.