lumina-slides 8.6.2 → 8.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lumina-slides.js +6080 -4909
- package/dist/lumina-slides.umd.cjs +127 -22
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Te,tt){typeof exports=="object"&&typeof module<"u"?tt(exports):typeof define=="function"&&define.amd?define(["exports"],tt):(Te=typeof globalThis<"u"?globalThis:Te||self,tt(Te.LuminaSlides={}))})(this,function(Te){"use strict";var R1=Object.defineProperty;var D1=(Te,tt,ue)=>tt in Te?R1(Te,tt,{enumerable:!0,configurable:!0,writable:!0,value:ue}):Te[tt]=ue;var st=(Te,tt,ue)=>D1(Te,typeof tt!="symbol"?tt+"":tt,ue);/**
|
|
2
2
|
* @vue/shared v3.5.26
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
|
-
**/function
|
|
5
|
+
**/function tt(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const ue={},dr=[],Ut=()=>{},Ia=()=>!1,Ii=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Zo=t=>t.startsWith("onUpdate:"),je=Object.assign,jo=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},xd=Object.prototype.hasOwnProperty,ce=(t,e)=>xd.call(t,e),Y=Array.isArray,hr=t=>Ai(t)==="[object Map]",Aa=t=>Ai(t)==="[object Set]",X=t=>typeof t=="function",$e=t=>typeof t=="string",an=t=>typeof t=="symbol",_e=t=>t!==null&&typeof t=="object",Ra=t=>(_e(t)||X(t))&&X(t.then)&&X(t.catch),Da=Object.prototype.toString,Ai=t=>Da.call(t),wd=t=>Ai(t).slice(8,-1),Fa=t=>Ai(t)==="[object Object]",Bo=t=>$e(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,Vr=tt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ri=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Sd=/-\w/g,Ct=Ri(t=>t.replace(Sd,e=>e.slice(1).toUpperCase())),kd=/\B([A-Z])/g,Wn=Ri(t=>t.replace(kd,"-$1").toLowerCase()),Di=Ri(t=>t.charAt(0).toUpperCase()+t.slice(1)),Uo=Ri(t=>t?`on${Di(t)}`:""),Tn=(t,e)=>!Object.is(t,e),Fi=(t,...e)=>{for(let n=0;n<t.length;n++)t[n](...e)},Na=(t,e,n,r=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:r,value:n})},Vo=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Td=t=>{const e=$e(t)?Number(t):NaN;return isNaN(e)?t:e};let Ma;const Ni=()=>Ma||(Ma=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(t){if(Y(t)){const e={};for(let n=0;n<t.length;n++){const r=t[n],i=$e(r)?Od(r):Oe(r);if(i)for(const o in i)e[o]=i[o]}return e}else if($e(t)||_e(t))return t}const zd=/;(?![^(]*\))/g,Cd=/:([^]+)/,$d=/\/\*[^]*?\*\//g;function Od(t){const e={};return t.replace($d,"").split(zd).forEach(n=>{if(n){const r=n.split(Cd);r.length>1&&(e[r[0].trim()]=r[1].trim())}}),e}function se(t){let e="";if($e(t))e=t;else if(Y(t))for(let n=0;n<t.length;n++){const r=se(t[n]);r&&(e+=r+" ")}else if(_e(t))for(const n in t)t[n]&&(e+=n+" ");return e.trim()}const Ed=tt("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function La(t){return!!t||t===""}const Za=t=>!!(t&&t.__v_isRef===!0),ie=t=>$e(t)?t:t==null?"":Y(t)||_e(t)&&(t.toString===Da||!X(t.toString))?Za(t)?ie(t.value):JSON.stringify(t,ja,2):String(t),ja=(t,e)=>Za(e)?ja(t,e.value):hr(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((n,[r,i],o)=>(n[Wo(r,o)+" =>"]=i,n),{})}:Aa(e)?{[`Set(${e.size})`]:[...e.values()].map(n=>Wo(n))}:an(e)?Wo(e):_e(e)&&!Y(e)&&!Fa(e)?String(e):e,Wo=(t,e="")=>{var n;return an(t)?`Symbol(${(n=t.description)!=null?n:e})`:t};/**
|
|
6
6
|
* @vue/reactivity v3.5.26
|
|
7
7
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
8
|
* @license MIT
|
|
9
|
-
**/let st;class kd{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=st,!e&&st&&(this.index=(st.scopes||(st.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=st;try{return st=this,e()}finally{st=n}}}on(){++this._on===1&&(this.prevScope=st,st=this)}off(){this._on>0&&--this._on===0&&(st=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Td(){return st}let ge;const Us=new WeakSet;class Ra{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,st&&st.active&&st.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Us.has(this)&&(Us.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Za(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ba(this),La(this);const e=ge,n=Nt;ge=this,Nt=!0;try{return this.fn()}finally{ja(this),ge=e,Nt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Hs(e);this.deps=this.depsTail=void 0,Ba(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Us.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ws(this)&&this.run()}get dirty(){return Ws(this)}}let Fa=0,Vr,Br;function Za(t,e=!1){if(t.flags|=8,e){t.next=Br,Br=t;return}t.next=Vr,Vr=t}function Vs(){Fa++}function Bs(){if(--Fa>0)return;if(Br){let e=Br;for(Br=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Vr;){let e=Vr;for(Vr=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function La(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function ja(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Hs(r),zd(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Ws(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ua(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ua(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Wr)||(t.globalVersion=Wr,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Ws(t))))return;t.flags|=2;const e=t.dep,n=ge,r=Nt;ge=t,Nt=!0;try{La(t);const i=t.fn(t._value);(e.version===0||xn(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{ge=n,Nt=r,ja(t),t.flags&=-3}}function Hs(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Hs(s,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function zd(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Nt=!0;const Va=[];function Ut(){Va.push(Nt),Nt=!1}function Vt(){const t=Va.pop();Nt=t===void 0?!0:t}function Ba(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ge;ge=void 0;try{e()}finally{ge=n}}}let Wr=0;class Cd{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 Js{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(!ge||!Nt||ge===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ge)n=this.activeLink=new Cd(ge,this),ge.deps?(n.prevDep=ge.depsTail,ge.depsTail.nextDep=n,ge.depsTail=n):ge.deps=ge.depsTail=n,Wa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ge.depsTail,n.nextDep=void 0,ge.depsTail.nextDep=n,ge.depsTail=n,ge.deps===n&&(ge.deps=r)}return n}trigger(e){this.version++,Wr++,this.notify(e)}notify(e){Vs();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Bs()}}}function Wa(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)Wa(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Ks=new WeakMap,Vn=Symbol(""),qs=Symbol(""),Hr=Symbol("");function Be(t,e,n){if(Nt&&ge){let r=Ks.get(t);r||Ks.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new Js),i.map=r,i.key=n),i.track()}}function sn(t,e,n,r,i,s){const o=Ks.get(t);if(!o){Wr++;return}const a=l=>{l&&l.trigger()};if(Vs(),e==="clear")o.forEach(a);else{const l=q(t),c=l&&Fs(n);if(l&&n==="length"){const u=Number(r);o.forEach((f,d)=>{(d==="length"||d===Hr||!rn(d)&&d>=u)&&a(f)})}else switch((n!==void 0||o.has(void 0))&&a(o.get(n)),c&&a(o.get(Hr)),e){case"add":l?c&&a(o.get("length")):(a(o.get(Vn)),fr(t)&&a(o.get(qs)));break;case"delete":l||(a(o.get(Vn)),fr(t)&&a(o.get(qs)));break;case"set":fr(t)&&a(o.get(Vn));break}}Bs()}function dr(t){const e=oe(t);return e===t?e:(Be(e,"iterate",Hr),Ct(t)?e:e.map(Rt))}function Ri(t){return Be(t=oe(t),"iterate",Hr),t}function wn(t,e){return an(t)?Bn(t)?hr(Rt(e)):hr(e):Rt(e)}const Od={__proto__:null,[Symbol.iterator](){return Ys(this,Symbol.iterator,t=>wn(this,t))},concat(...t){return dr(this).concat(...t.map(e=>q(e)?dr(e):e))},entries(){return Ys(this,"entries",t=>(t[1]=wn(this,t[1]),t))},every(t,e){return on(this,"every",t,e,void 0,arguments)},filter(t,e){return on(this,"filter",t,e,n=>n.map(r=>wn(this,r)),arguments)},find(t,e){return on(this,"find",t,e,n=>wn(this,n),arguments)},findIndex(t,e){return on(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return on(this,"findLast",t,e,n=>wn(this,n),arguments)},findLastIndex(t,e){return on(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return on(this,"forEach",t,e,void 0,arguments)},includes(...t){return Gs(this,"includes",t)},indexOf(...t){return Gs(this,"indexOf",t)},join(t){return dr(this).join(t)},lastIndexOf(...t){return Gs(this,"lastIndexOf",t)},map(t,e){return on(this,"map",t,e,void 0,arguments)},pop(){return Jr(this,"pop")},push(...t){return Jr(this,"push",t)},reduce(t,...e){return Ha(this,"reduce",t,e)},reduceRight(t,...e){return Ha(this,"reduceRight",t,e)},shift(){return Jr(this,"shift")},some(t,e){return on(this,"some",t,e,void 0,arguments)},splice(...t){return Jr(this,"splice",t)},toReversed(){return dr(this).toReversed()},toSorted(t){return dr(this).toSorted(t)},toSpliced(...t){return dr(this).toSpliced(...t)},unshift(...t){return Jr(this,"unshift",t)},values(){return Ys(this,"values",t=>wn(this,t))}};function Ys(t,e,n){const r=Ri(t),i=r[e]();return r!==t&&!Ct(t)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.done||(s.value=n(s.value)),s}),i}const $d=Array.prototype;function on(t,e,n,r,i,s){const o=Ri(t),a=o!==t&&!Ct(t),l=o[e];if(l!==$d[e]){const f=l.apply(t,s);return a?Rt(f):f}let c=n;o!==t&&(a?c=function(f,d){return n.call(this,wn(t,f),d,t)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,t)}));const u=l.call(o,c,r);return a&&i?i(u):u}function Ha(t,e,n,r){const i=Ri(t);let s=n;return i!==t&&(Ct(t)?n.length>3&&(s=function(o,a,l){return n.call(this,o,a,l,t)}):s=function(o,a,l){return n.call(this,o,wn(t,a),l,t)}),i[e](s,...r)}function Gs(t,e,n){const r=oe(t);Be(r,"iterate",Hr);const i=r[e](...n);return(i===-1||i===!1)&&Qs(n[0])?(n[0]=oe(n[0]),r[e](...n)):i}function Jr(t,e,n=[]){Ut(),Vs();const r=oe(t)[e].apply(t,n);return Bs(),Vt(),r}const Ed=Xe("__proto__,__v_isRef,__isVue"),Ja=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(rn));function Pd(t){rn(t)||(t=String(t));const e=oe(this);return Be(e,"has",t),e.hasOwnProperty(t)}class Ka{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?el:Qa:s?Xa:Ga).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const o=q(e);if(!i){let l;if(o&&(l=Od[n]))return l;if(n==="hasOwnProperty")return Pd}const a=Reflect.get(e,n,Le(e)?e:r);if((rn(n)?Ja.has(n):Ed(n))||(i||Be(e,"get",n),s))return a;if(Le(a)){const l=o&&Fs(n)?a:a.value;return i&&me(l)?Ui(l):l}return me(a)?i?Ui(a):ji(a):a}}class qa extends Ka{constructor(e=!1){super(!1,e)}set(e,n,r,i){let s=e[n];const o=q(e)&&Fs(n);if(!this._isShallow){const c=an(s);if(!Ct(r)&&!an(r)&&(s=oe(s),r=oe(r)),!o&&Le(s)&&!Le(r))return c||(s.value=r),!0}const a=o?Number(n)<e.length:ue(e,n),l=Reflect.set(e,n,r,Le(e)?e:i);return e===oe(i)&&(a?xn(r,s)&&sn(e,"set",n,r):sn(e,"add",n,r)),l}deleteProperty(e,n){const r=ue(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&sn(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!rn(n)||!Ja.has(n))&&Be(e,"has",n),r}ownKeys(e){return Be(e,"iterate",q(e)?"length":Vn),Reflect.ownKeys(e)}}class Ya extends Ka{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Ad=new qa,Id=new Ya,Dd=new qa(!0),Md=new Ya(!0),Xs=t=>t,Fi=t=>Reflect.getPrototypeOf(t);function Nd(t,e,n){return function(...r){const i=this.__v_raw,s=oe(i),o=fr(s),a=t==="entries"||t===Symbol.iterator&&o,l=t==="keys"&&o,c=i[t](...r),u=n?Xs:e?hr:Rt;return!e&&Be(s,"iterate",l?qs:Vn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Rd(t,e){const n={get(i){const s=this.__v_raw,o=oe(s),a=oe(i);t||(xn(i,a)&&Be(o,"get",i),Be(o,"get",a));const{has:l}=Fi(o),c=e?Xs:t?hr:Rt;if(l.call(o,i))return c(s.get(i));if(l.call(o,a))return c(s.get(a));s!==o&&s.get(i)},get size(){const i=this.__v_raw;return!t&&Be(oe(i),"iterate",Vn),i.size},has(i){const s=this.__v_raw,o=oe(s),a=oe(i);return t||(xn(i,a)&&Be(o,"has",i),Be(o,"has",a)),i===a?s.has(i):s.has(i)||s.has(a)},forEach(i,s){const o=this,a=o.__v_raw,l=oe(a),c=e?Xs:t?hr:Rt;return!t&&Be(l,"iterate",Vn),a.forEach((u,f)=>i.call(s,c(u),c(f),o))}};return Re(n,t?{add:Zi("add"),set:Zi("set"),delete:Zi("delete"),clear:Zi("clear")}:{add(i){!e&&!Ct(i)&&!an(i)&&(i=oe(i));const s=oe(this);return Fi(s).has.call(s,i)||(s.add(i),sn(s,"add",i,i)),this},set(i,s){!e&&!Ct(s)&&!an(s)&&(s=oe(s));const o=oe(this),{has:a,get:l}=Fi(o);let c=a.call(o,i);c||(i=oe(i),c=a.call(o,i));const u=l.call(o,i);return o.set(i,s),c?xn(s,u)&&sn(o,"set",i,s):sn(o,"add",i,s),this},delete(i){const s=oe(this),{has:o,get:a}=Fi(s);let l=o.call(s,i);l||(i=oe(i),l=o.call(s,i)),a&&a.call(s,i);const c=s.delete(i);return l&&sn(s,"delete",i,void 0),c},clear(){const i=oe(this),s=i.size!==0,o=i.clear();return s&&sn(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Nd(i,t,e)}),n}function Li(t,e){const n=Rd(t,e);return(r,i,s)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(ue(n,i)&&i in r?n:r,i,s)}const Fd={get:Li(!1,!1)},Zd={get:Li(!1,!0)},Ld={get:Li(!0,!1)},jd={get:Li(!0,!0)},Ga=new WeakMap,Xa=new WeakMap,Qa=new WeakMap,el=new WeakMap;function Ud(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vd(t){return t.__v_skip||!Object.isExtensible(t)?0:Ud(md(t))}function ji(t){return an(t)?t:Vi(t,!1,Ad,Fd,Ga)}function Bd(t){return Vi(t,!1,Dd,Zd,Xa)}function Ui(t){return Vi(t,!0,Id,Ld,Qa)}function fx(t){return Vi(t,!0,Md,jd,el)}function Vi(t,e,n,r,i){if(!me(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const s=Vd(t);if(s===0)return t;const o=i.get(t);if(o)return o;const a=new Proxy(t,s===2?r:n);return i.set(t,a),a}function Bn(t){return an(t)?Bn(t.__v_raw):!!(t&&t.__v_isReactive)}function an(t){return!!(t&&t.__v_isReadonly)}function Ct(t){return!!(t&&t.__v_isShallow)}function Qs(t){return t?!!t.__v_raw:!1}function oe(t){const e=t&&t.__v_raw;return e?oe(e):t}function Wd(t){return!ue(t,"__v_skip")&&Object.isExtensible(t)&&Aa(t,"__v_skip",!0),t}const Rt=t=>me(t)?ji(t):t,hr=t=>me(t)?Ui(t):t;function Le(t){return t?t.__v_isRef===!0:!1}function be(t){return Hd(t,!1)}function Hd(t,e){return Le(t)?t:new Jd(t,e)}class Jd{constructor(e,n){this.dep=new Js,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:oe(e),this._value=n?e:Rt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||Ct(e)||an(e);e=r?e:oe(e),xn(e,n)&&(this._rawValue=e,this._value=r?e:Rt(e),this.dep.trigger())}}function Ft(t){return Le(t)?t.value:t}const Kd={get:(t,e,n)=>e==="__v_raw"?t:Ft(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Le(i)&&!Le(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function tl(t){return Bn(t)?t:new Proxy(t,Kd)}class qd{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Js(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ge!==this)return Za(this,!0),!0}get value(){const e=this.dep.track();return Ua(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Yd(t,e,n=!1){let r,i;return G(t)?r=t:(r=t.get,i=t.set),new qd(r,i,n)}const Bi={},Wi=new WeakMap;let Wn;function Gd(t,e=!1,n=Wn){if(n){let r=Wi.get(n);r||Wi.set(n,r=[]),r.push(t)}}function Xd(t,e,n=ae){const{immediate:r,deep:i,once:s,scheduler:o,augmentJob:a,call:l}=n,c=b=>i?b:Ct(b)||i===!1||i===0?ln(b,1):ln(b);let u,f,d,h,m=!1,p=!1;if(Le(t)?(f=()=>t.value,m=Ct(t)):Bn(t)?(f=()=>c(t),m=!0):q(t)?(p=!0,m=t.some(b=>Bn(b)||Ct(b)),f=()=>t.map(b=>{if(Le(b))return b.value;if(Bn(b))return c(b);if(G(b))return l?l(b,2):b()})):G(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){Ut();try{d()}finally{Vt()}}const b=Wn;Wn=u;try{return l?l(t,3,[h]):t(h)}finally{Wn=b}}:f=jt,e&&i){const b=f,S=i===!0?1/0:i;f=()=>ln(b(),S)}const y=Td(),x=()=>{u.stop(),y&&y.active&&Rs(y.effects,u)};if(s&&e){const b=e;e=(...S)=>{b(...S),x()}}let k=p?new Array(t.length).fill(Bi):Bi;const z=b=>{if(!(!(u.flags&1)||!u.dirty&&!b))if(e){const S=u.run();if(i||m||(p?S.some((E,w)=>xn(E,k[w])):xn(S,k))){d&&d();const E=Wn;Wn=u;try{const w=[S,k===Bi?void 0:p&&k[0]===Bi?[]:k,h];k=S,l?l(e,3,w):e(...w)}finally{Wn=E}}}else u.run()};return a&&a(z),u=new Ra(f),u.scheduler=o?()=>o(z,!1):z,h=b=>Gd(b,!1,u),d=u.onStop=()=>{const b=Wi.get(u);if(b){if(l)l(b,4);else for(const S of b)S();Wi.delete(u)}},e?r?z(!0):k=u.run():o?o(z.bind(null,!0),!0):u.run(),x.pause=u.pause.bind(u),x.resume=u.resume.bind(u),x.stop=x,x}function ln(t,e=1/0,n){if(e<=0||!me(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Le(t))ln(t.value,e,n);else if(q(t))for(let r=0;r<t.length;r++)ln(t[r],e,n);else if(Oa(t)||fr(t))t.forEach(r=>{ln(r,e,n)});else if(Pa(t)){for(const r in t)ln(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&ln(t[r],e,n)}return t}/**
|
|
9
|
+
**/let at;class Pd{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=at,!e&&at&&(this.index=(at.scopes||(at.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=at;try{return at=this,e()}finally{at=n}}}on(){++this._on===1&&(this.prevScope=at,at=this)}off(){this._on>0&&--this._on===0&&(at=this.prevScope,this.prevScope=void 0)}stop(e){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Id(){return at}let ve;const Ho=new WeakSet;class Ba{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,at&&at.active&&at.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ho.has(this)&&(Ho.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Va(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ka(this),Wa(this);const e=ve,n=Mt;ve=this,Mt=!0;try{return this.fn()}finally{Ha(this),ve=e,Mt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)qo(e);this.deps=this.depsTail=void 0,Ka(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ho.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ko(this)&&this.run()}get dirty(){return Ko(this)}}let Ua=0,Wr,Hr;function Va(t,e=!1){if(t.flags|=8,e){t.next=Hr,Hr=t;return}t.next=Wr,Wr=t}function Jo(){Ua++}function Go(){if(--Ua>0)return;if(Hr){let e=Hr;for(Hr=void 0;e;){const n=e.next;e.next=void 0,e.flags&=-9,e=n}}let t;for(;Wr;){let e=Wr;for(Wr=void 0;e;){const n=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(r){t||(t=r)}e=n}}if(t)throw t}function Wa(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ha(t){let e,n=t.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),qo(r),Ad(r)):e=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}t.deps=e,t.depsTail=n}function Ko(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(Ja(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function Ja(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===Jr)||(t.globalVersion=Jr,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!Ko(t))))return;t.flags|=2;const e=t.dep,n=ve,r=Mt;ve=t,Mt=!0;try{Wa(t);const i=t.fn(t._value);(e.version===0||Tn(i,t._value))&&(t.flags|=128,t._value=i,e.version++)}catch(i){throw e.version++,i}finally{ve=n,Mt=r,Ha(t),t.flags&=-3}}function qo(t,e=!1){const{dep:n,prevSub:r,nextSub:i}=t;if(r&&(r.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=r,t.nextSub=void 0),n.subs===t&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)qo(o,!0)}!e&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ad(t){const{prevDep:e,nextDep:n}=t;e&&(e.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=e,t.nextDep=void 0)}let Mt=!0;const Ga=[];function Vt(){Ga.push(Mt),Mt=!1}function Wt(){const t=Ga.pop();Mt=t===void 0?!0:t}function Ka(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const n=ve;ve=void 0;try{e()}finally{ve=n}}}let Jr=0;class Rd{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 Yo{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(!ve||!Mt||ve===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==ve)n=this.activeLink=new Rd(ve,this),ve.deps?(n.prevDep=ve.depsTail,ve.depsTail.nextDep=n,ve.depsTail=n):ve.deps=ve.depsTail=n,qa(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=ve.depsTail,n.nextDep=void 0,ve.depsTail.nextDep=n,ve.depsTail=n,ve.deps===n&&(ve.deps=r)}return n}trigger(e){this.version++,Jr++,this.notify(e)}notify(e){Jo();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Go()}}}function qa(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let r=e.deps;r;r=r.nextDep)qa(r)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const Xo=new WeakMap,Hn=Symbol(""),Qo=Symbol(""),Gr=Symbol("");function Ge(t,e,n){if(Mt&&ve){let r=Xo.get(t);r||Xo.set(t,r=new Map);let i=r.get(n);i||(r.set(n,i=new Yo),i.map=r,i.key=n),i.track()}}function ln(t,e,n,r,i,o){const s=Xo.get(t);if(!s){Jr++;return}const a=l=>{l&&l.trigger()};if(Jo(),e==="clear")s.forEach(a);else{const l=Y(t),c=l&&Bo(n);if(l&&n==="length"){const u=Number(r);s.forEach((f,d)=>{(d==="length"||d===Gr||!an(d)&&d>=u)&&a(f)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(Gr)),e){case"add":l?c&&a(s.get("length")):(a(s.get(Hn)),hr(t)&&a(s.get(Qo)));break;case"delete":l||(a(s.get(Hn)),hr(t)&&a(s.get(Qo)));break;case"set":hr(t)&&a(s.get(Hn));break}}Go()}function pr(t){const e=ae(t);return e===t?e:(Ge(e,"iterate",Gr),$t(t)?e:e.map(Lt))}function Mi(t){return Ge(t=ae(t),"iterate",Gr),t}function zn(t,e){return cn(t)?Jn(t)?mr(Lt(e)):mr(e):Lt(e)}const Dd={__proto__:null,[Symbol.iterator](){return es(this,Symbol.iterator,t=>zn(this,t))},concat(...t){return pr(this).concat(...t.map(e=>Y(e)?pr(e):e))},entries(){return es(this,"entries",t=>(t[1]=zn(this,t[1]),t))},every(t,e){return un(this,"every",t,e,void 0,arguments)},filter(t,e){return un(this,"filter",t,e,n=>n.map(r=>zn(this,r)),arguments)},find(t,e){return un(this,"find",t,e,n=>zn(this,n),arguments)},findIndex(t,e){return un(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return un(this,"findLast",t,e,n=>zn(this,n),arguments)},findLastIndex(t,e){return un(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return un(this,"forEach",t,e,void 0,arguments)},includes(...t){return ts(this,"includes",t)},indexOf(...t){return ts(this,"indexOf",t)},join(t){return pr(this).join(t)},lastIndexOf(...t){return ts(this,"lastIndexOf",t)},map(t,e){return un(this,"map",t,e,void 0,arguments)},pop(){return Kr(this,"pop")},push(...t){return Kr(this,"push",t)},reduce(t,...e){return Ya(this,"reduce",t,e)},reduceRight(t,...e){return Ya(this,"reduceRight",t,e)},shift(){return Kr(this,"shift")},some(t,e){return un(this,"some",t,e,void 0,arguments)},splice(...t){return Kr(this,"splice",t)},toReversed(){return pr(this).toReversed()},toSorted(t){return pr(this).toSorted(t)},toSpliced(...t){return pr(this).toSpliced(...t)},unshift(...t){return Kr(this,"unshift",t)},values(){return es(this,"values",t=>zn(this,t))}};function es(t,e,n){const r=Mi(t),i=r[e]();return r!==t&&!$t(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const Fd=Array.prototype;function un(t,e,n,r,i,o){const s=Mi(t),a=s!==t&&!$t(t),l=s[e];if(l!==Fd[e]){const f=l.apply(t,o);return a?Lt(f):f}let c=n;s!==t&&(a?c=function(f,d){return n.call(this,zn(t,f),d,t)}:n.length>2&&(c=function(f,d){return n.call(this,f,d,t)}));const u=l.call(s,c,r);return a&&i?i(u):u}function Ya(t,e,n,r){const i=Mi(t);let o=n;return i!==t&&($t(t)?n.length>3&&(o=function(s,a,l){return n.call(this,s,a,l,t)}):o=function(s,a,l){return n.call(this,s,zn(t,a),l,t)}),i[e](o,...r)}function ts(t,e,n){const r=ae(t);Ge(r,"iterate",Gr);const i=r[e](...n);return(i===-1||i===!1)&&rs(n[0])?(n[0]=ae(n[0]),r[e](...n)):i}function Kr(t,e,n=[]){Vt(),Jo();const r=ae(t)[e].apply(t,n);return Go(),Wt(),r}const Nd=tt("__proto__,__v_isRef,__isVue"),Xa=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(an));function Md(t){an(t)||(t=String(t));const e=ae(this);return Ge(e,"has",t),e.hasOwnProperty(t)}class Qa{constructor(e=!1,n=!1){this._isReadonly=e,this._isShallow=n}get(e,n,r){if(n==="__v_skip")return e.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return r===(i?o?ol:il:o?rl:nl).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(r)?e:void 0;const s=Y(e);if(!i){let l;if(s&&(l=Dd[n]))return l;if(n==="hasOwnProperty")return Md}const a=Reflect.get(e,n,Ve(e)?e:r);if((an(n)?Xa.has(n):Nd(n))||(i||Ge(e,"get",n),o))return a;if(Ve(a)){const l=s&&Bo(n)?a:a.value;return i&&_e(l)?Ui(l):l}return _e(a)?i?Ui(a):Bi(a):a}}class el extends Qa{constructor(e=!1){super(!1,e)}set(e,n,r,i){let o=e[n];const s=Y(e)&&Bo(n);if(!this._isShallow){const c=cn(o);if(!$t(r)&&!cn(r)&&(o=ae(o),r=ae(r)),!s&&Ve(o)&&!Ve(r))return c||(o.value=r),!0}const a=s?Number(n)<e.length:ce(e,n),l=Reflect.set(e,n,r,Ve(e)?e:i);return e===ae(i)&&(a?Tn(r,o)&&ln(e,"set",n,r):ln(e,"add",n,r)),l}deleteProperty(e,n){const r=ce(e,n);e[n];const i=Reflect.deleteProperty(e,n);return i&&r&&ln(e,"delete",n,void 0),i}has(e,n){const r=Reflect.has(e,n);return(!an(n)||!Xa.has(n))&&Ge(e,"has",n),r}ownKeys(e){return Ge(e,"iterate",Y(e)?"length":Hn),Reflect.ownKeys(e)}}class tl extends Qa{constructor(e=!1){super(!0,e)}set(e,n){return!0}deleteProperty(e,n){return!0}}const Ld=new el,Zd=new tl,jd=new el(!0),Bd=new tl(!0),ns=t=>t,Li=t=>Reflect.getPrototypeOf(t);function Ud(t,e,n){return function(...r){const i=this.__v_raw,o=ae(i),s=hr(o),a=t==="entries"||t===Symbol.iterator&&s,l=t==="keys"&&s,c=i[t](...r),u=n?ns:e?mr:Lt;return!e&&Ge(o,"iterate",l?Qo:Hn),{next(){const{value:f,done:d}=c.next();return d?{value:f,done:d}:{value:a?[u(f[0]),u(f[1])]:u(f),done:d}},[Symbol.iterator](){return this}}}}function Zi(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Vd(t,e){const n={get(i){const o=this.__v_raw,s=ae(o),a=ae(i);t||(Tn(i,a)&&Ge(s,"get",i),Ge(s,"get",a));const{has:l}=Li(s),c=e?ns:t?mr:Lt;if(l.call(s,i))return c(o.get(i));if(l.call(s,a))return c(o.get(a));o!==s&&o.get(i)},get size(){const i=this.__v_raw;return!t&&Ge(ae(i),"iterate",Hn),i.size},has(i){const o=this.__v_raw,s=ae(o),a=ae(i);return t||(Tn(i,a)&&Ge(s,"has",i),Ge(s,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const s=this,a=s.__v_raw,l=ae(a),c=e?ns:t?mr:Lt;return!t&&Ge(l,"iterate",Hn),a.forEach((u,f)=>i.call(o,c(u),c(f),s))}};return je(n,t?{add:Zi("add"),set:Zi("set"),delete:Zi("delete"),clear:Zi("clear")}:{add(i){!e&&!$t(i)&&!cn(i)&&(i=ae(i));const o=ae(this);return Li(o).has.call(o,i)||(o.add(i),ln(o,"add",i,i)),this},set(i,o){!e&&!$t(o)&&!cn(o)&&(o=ae(o));const s=ae(this),{has:a,get:l}=Li(s);let c=a.call(s,i);c||(i=ae(i),c=a.call(s,i));const u=l.call(s,i);return s.set(i,o),c?Tn(o,u)&&ln(s,"set",i,o):ln(s,"add",i,o),this},delete(i){const o=ae(this),{has:s,get:a}=Li(o);let l=s.call(o,i);l||(i=ae(i),l=s.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&ln(o,"delete",i,void 0),c},clear(){const i=ae(this),o=i.size!==0,s=i.clear();return o&&ln(i,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=Ud(i,t,e)}),n}function ji(t,e){const n=Vd(t,e);return(r,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?r:Reflect.get(ce(n,i)&&i in r?n:r,i,o)}const Wd={get:ji(!1,!1)},Hd={get:ji(!1,!0)},Jd={get:ji(!0,!1)},Gd={get:ji(!0,!0)},nl=new WeakMap,rl=new WeakMap,il=new WeakMap,ol=new WeakMap;function Kd(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function qd(t){return t.__v_skip||!Object.isExtensible(t)?0:Kd(wd(t))}function Bi(t){return cn(t)?t:Vi(t,!1,Ld,Wd,nl)}function Yd(t){return Vi(t,!1,jd,Hd,rl)}function Ui(t){return Vi(t,!0,Zd,Jd,il)}function N1(t){return Vi(t,!0,Bd,Gd,ol)}function Vi(t,e,n,r,i){if(!_e(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=qd(t);if(o===0)return t;const s=i.get(t);if(s)return s;const a=new Proxy(t,o===2?r:n);return i.set(t,a),a}function Jn(t){return cn(t)?Jn(t.__v_raw):!!(t&&t.__v_isReactive)}function cn(t){return!!(t&&t.__v_isReadonly)}function $t(t){return!!(t&&t.__v_isShallow)}function rs(t){return t?!!t.__v_raw:!1}function ae(t){const e=t&&t.__v_raw;return e?ae(e):t}function Xd(t){return!ce(t,"__v_skip")&&Object.isExtensible(t)&&Na(t,"__v_skip",!0),t}const Lt=t=>_e(t)?Bi(t):t,mr=t=>_e(t)?Ui(t):t;function Ve(t){return t?t.__v_isRef===!0:!1}function be(t){return Qd(t,!1)}function Qd(t,e){return Ve(t)?t:new eh(t,e)}class eh{constructor(e,n){this.dep=new Yo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?e:ae(e),this._value=n?e:Lt(e),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(e){const n=this._rawValue,r=this.__v_isShallow||$t(e)||cn(e);e=r?e:ae(e),Tn(e,n)&&(this._rawValue=e,this._value=r?e:Lt(e),this.dep.trigger())}}function Zt(t){return Ve(t)?t.value:t}const th={get:(t,e,n)=>e==="__v_raw"?t:Zt(Reflect.get(t,e,n)),set:(t,e,n,r)=>{const i=t[e];return Ve(i)&&!Ve(n)?(i.value=n,!0):Reflect.set(t,e,n,r)}};function sl(t){return Jn(t)?t:new Proxy(t,th)}class nh{constructor(e,n,r){this.fn=e,this.setter=n,this._value=void 0,this.dep=new Yo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Jr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&ve!==this)return Va(this,!0),!0}get value(){const e=this.dep.track();return Ja(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function rh(t,e,n=!1){let r,i;return X(t)?r=t:(r=t.get,i=t.set),new nh(r,i,n)}const Wi={},Hi=new WeakMap;let Gn;function ih(t,e=!1,n=Gn){if(n){let r=Hi.get(n);r||Hi.set(n,r=[]),r.push(t)}}function oh(t,e,n=ue){const{immediate:r,deep:i,once:o,scheduler:s,augmentJob:a,call:l}=n,c=y=>i?y:$t(y)||i===!1||i===0?fn(y,1):fn(y);let u,f,d,h,m=!1,p=!1;if(Ve(t)?(f=()=>t.value,m=$t(t)):Jn(t)?(f=()=>c(t),m=!0):Y(t)?(p=!0,m=t.some(y=>Jn(y)||$t(y)),f=()=>t.map(y=>{if(Ve(y))return y.value;if(Jn(y))return c(y);if(X(y))return l?l(y,2):y()})):X(t)?e?f=l?()=>l(t,2):t:f=()=>{if(d){Vt();try{d()}finally{Wt()}}const y=Gn;Gn=u;try{return l?l(t,3,[h]):t(h)}finally{Gn=y}}:f=Ut,e&&i){const y=f,w=i===!0?1/0:i;f=()=>fn(y(),w)}const b=Id(),x=()=>{u.stop(),b&&b.active&&jo(b.effects,u)};if(o&&e){const y=e;e=(...w)=>{y(...w),x()}}let k=p?new Array(t.length).fill(Wi):Wi;const z=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(e){const w=u.run();if(i||m||(p?w.some((E,A)=>Tn(E,k[A])):Tn(w,k))){d&&d();const E=Gn;Gn=u;try{const A=[w,k===Wi?void 0:p&&k[0]===Wi?[]:k,h];k=w,l?l(e,3,A):e(...A)}finally{Gn=E}}}else u.run()};return a&&a(z),u=new Ba(f),u.scheduler=s?()=>s(z,!1):z,h=y=>ih(y,!1,u),d=u.onStop=()=>{const y=Hi.get(u);if(y){if(l)l(y,4);else for(const w of y)w();Hi.delete(u)}},e?r?z(!0):k=u.run():s?s(z.bind(null,!0),!0):u.run(),x.pause=u.pause.bind(u),x.resume=u.resume.bind(u),x.stop=x,x}function fn(t,e=1/0,n){if(e<=0||!_e(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=e))return t;if(n.set(t,e),e--,Ve(t))fn(t.value,e,n);else if(Y(t))for(let r=0;r<t.length;r++)fn(t[r],e,n);else if(Aa(t)||hr(t))t.forEach(r=>{fn(r,e,n)});else if(Fa(t)){for(const r in t)fn(t[r],e,n);for(const r of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,r)&&fn(t[r],e,n)}return t}/**
|
|
10
10
|
* @vue/runtime-core v3.5.26
|
|
11
11
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
12
|
* @license MIT
|
|
13
|
-
**/const
|
|
14
|
-
`),i]);else{const
|
|
15
|
-
`,...
|
|
16
|
-
`],...th(n))}),e}function th({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${ou(t.component,t.type,r)}`,s=">"+n;return t.props?[i,...nh(t.props),s]:[i+s]}function nh(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...nl(r,t[r]))}),n.length>3&&e.push(" ..."),e}function nl(t,e,n){return ke(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Le(e)?(e=nl(t,oe(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):G(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=oe(e),n?e:[`${t}=`,e])}function pr(t,e,n,r){try{return r?t(...r):t()}catch(i){Hi(i,e,n)}}function Zt(t,e,n,r){if(G(t)){const i=pr(t,e,n,r);return i&&$a(i)&&i.catch(s=>{Hi(s,e,n)}),i}if(q(t)){const i=[];for(let s=0;s<t.length;s++)i.push(Zt(t[s],e,n,r));return i}}function Hi(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:o}=e&&e.appContext.config||ae;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}a=a.parent}if(s){Ut(),pr(s,null,10,[t,l,c]),Vt();return}}rh(t,n,i,r,o)}function rh(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const et=[];let Bt=-1;const mr=[];let Sn=null,gr=0;const rl=Promise.resolve();let Ji=null;function il(t){const e=Ji||rl;return t?e.then(this?t.bind(this):t):e}function ih(t){let e=Bt+1,n=et.length;for(;e<n;){const r=e+n>>>1,i=et[r],s=qr(i);s<t||s===t&&i.flags&2?e=r+1:n=r}return e}function to(t){if(!(t.flags&1)){const e=qr(t),n=et[et.length-1];!n||!(t.flags&2)&&e>=qr(n)?et.push(t):et.splice(ih(e),0,t),t.flags|=1,sl()}}function sl(){Ji||(Ji=rl.then(ll))}function sh(t){q(t)?mr.push(...t):Sn&&t.id===-1?Sn.splice(gr+1,0,t):t.flags&1||(mr.push(t),t.flags|=1),sl()}function ol(t,e,n=Bt+1){for(;n<et.length;n++){const r=et[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;et.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function al(t){if(mr.length){const e=[...new Set(mr)].sort((n,r)=>qr(n)-qr(r));if(mr.length=0,Sn){Sn.push(...e);return}for(Sn=e,gr=0;gr<Sn.length;gr++){const n=Sn[gr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Sn=null,gr=0}}const qr=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ll(t){try{for(Bt=0;Bt<et.length;Bt++){const e=et[Bt];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),pr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Bt<et.length;Bt++){const e=et[Bt];e&&(e.flags&=-2)}Bt=-1,et.length=0,al(),Ji=null,(et.length||mr.length)&&ll()}}let je=null,ul=null;function Ki(t){const e=je;return je=t,ul=t&&t.type.__scopeId||null,e}function Ot(t,e=je,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&is(-1);const s=Ki(e);let o;try{o=t(...i)}finally{Ki(s),r._d&&is(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function oh(t,e){if(je===null)return t;const n=as(je),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[s,o,a,l=ae]=e[i];s&&(G(s)&&(s={mounted:s,updated:s}),s.deep&&ln(o),r.push({dir:s,instance:n,value:o,oldValue:void 0,arg:a,modifiers:l}))}return t}function Hn(t,e,n,r){const i=t.dirs,s=e&&e.dirs;for(let o=0;o<i.length;o++){const a=i[o];s&&(a.oldValue=s[o].value);let l=a.dir[r];l&&(Ut(),Zt(l,n,8,[t.el,a,t,e]),Vt())}}function ah(t,e){if(Je){let n=Je.provides;const r=Je.parent&&Je.parent.provides;r===n&&(n=Je.provides=Object.create(r)),n[t]=e}}function un(t,e,n=!1){const r=eu();if(r||yr){let i=yr?yr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&G(e)?e.call(r&&r.proxy):e}}const lh=Symbol.for("v-scx"),uh=()=>un(lh);function kn(t,e,n){return cl(t,e,n)}function cl(t,e,n=ae){const{immediate:r,deep:i,flush:s,once:o}=n,a=Re({},n),l=e&&r||!e&&s!=="post";let c;if(ii){if(s==="sync"){const h=uh();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=jt,h.resume=jt,h.pause=jt,h}}const u=Je;a.call=(h,m,p)=>Zt(h,u,m,p);let f=!1;s==="post"?a.scheduler=h=>{pt(h,u&&u.suspense)}:s!=="sync"&&(f=!0,a.scheduler=(h,m)=>{m?h():to(h)}),a.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=Xd(t,e,a);return ii&&(c?c.push(d):l&&d()),d}function ch(t,e,n){const r=this.proxy,i=ke(t)?t.includes(".")?fl(r,t):()=>r[t]:t.bind(r,r);let s;G(e)?s=e:(s=e.handler,n=e);const o=ri(this),a=cl(i,s.bind(r),n);return o(),a}function fl(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const fh=Symbol("_vte"),dl=t=>t.__isTeleport,cn=Symbol("_leaveCb"),qi=Symbol("_enterCb");function dh(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Tn(()=>{t.isMounted=!0}),wl(()=>{t.isUnmounting=!0}),t}const $t=[Function,Array],hl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$t,onEnter:$t,onAfterEnter:$t,onEnterCancelled:$t,onBeforeLeave:$t,onLeave:$t,onAfterLeave:$t,onLeaveCancelled:$t,onBeforeAppear:$t,onAppear:$t,onAfterAppear:$t,onAppearCancelled:$t},pl=t=>{const e=t.subTree;return e.component?pl(e.component):e},hh={name:"BaseTransition",props:hl,setup(t,{slots:e}){const n=eu(),r=dh();return()=>{const i=e.default&&vl(e.default(),!0);if(!i||!i.length)return;const s=ml(i),o=oe(t),{mode:a}=o;if(r.isLeaving)return ro(s);const l=_l(s);if(!l)return ro(s);let c=no(l,o,r,n,f=>c=f);l.type!==We&&Yr(l,c);let u=n.subTree&&_l(n.subTree);if(u&&u.type!==We&&!qn(u,l)&&pl(n).type!==We){let f=no(u,o,r,n);if(Yr(u,f),a==="out-in"&&l.type!==We)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},ro(s);a==="in-out"&&l.type!==We?f.delayLeave=(d,h,m)=>{const p=gl(r,u);p[String(u.key)]=u,d[cn]=()=>{h(),d[cn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function ml(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==We){e=n;break}}return e}const ph=hh;function gl(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function no(t,e,n,r,i){const{appear:s,mode:o,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:y,onAppear:x,onAfterAppear:k,onAppearCancelled:z}=e,b=String(t.key),S=gl(n,t),E=(v,F)=>{v&&Zt(v,r,9,F)},w=(v,F)=>{const P=F[1];E(v,F),q(v)?v.every(T=>T.length<=1)&&P():v.length<=1&&P()},A={mode:o,persisted:a,beforeEnter(v){let F=l;if(!n.isMounted)if(s)F=y||l;else return;v[cn]&&v[cn](!0);const P=S[b];P&&qn(t,P)&&P.el[cn]&&P.el[cn](),E(F,[v])},enter(v){let F=c,P=u,T=f;if(!n.isMounted)if(s)F=x||c,P=k||u,T=z||f;else return;let I=!1;const K=v[qi]=ne=>{I||(I=!0,ne?E(T,[v]):E(P,[v]),A.delayedLeave&&A.delayedLeave(),v[qi]=void 0)};F?w(F,[v,K]):K()},leave(v,F){const P=String(t.key);if(v[qi]&&v[qi](!0),n.isUnmounting)return F();E(d,[v]);let T=!1;const I=v[cn]=K=>{T||(T=!0,F(),K?E(p,[v]):E(m,[v]),v[cn]=void 0,S[P]===t&&delete S[P])};S[P]=t,h?w(h,[v,I]):I()},clone(v){const F=no(v,e,n,r,i);return i&&i(F),F}};return A}function ro(t){if(Gi(t))return t=zn(t),t.children=null,t}function _l(t){if(!Gi(t))return dl(t.type)&&t.children?ml(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&&G(n.default))return n.default()}}function Yr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Yr(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 vl(t,e=!1,n){let r=[],i=0;for(let s=0;s<t.length;s++){let o=t[s];const a=n==null?o.key:String(n)+String(o.key!=null?o.key:s);o.type===Ae?(o.patchFlag&128&&i++,r=r.concat(vl(o.children,e,a))):(e||o.type!==We)&&r.push(a!=null?zn(o,{key:a}):o)}if(i>1)for(let s=0;s<r.length;s++)r[s].patchFlag=-2;return r}function Te(t,e){return G(t)?Re({name:t.name},e,{setup:t}):t}function yl(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const Yi=new WeakMap;function Gr(t,e,n,r,i=!1){if(q(t)){t.forEach((m,p)=>Gr(m,e&&(q(e)?e[p]:e),n,r,i));return}if(_r(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Gr(t,e,n,r.component.subTree);return}const s=r.shapeFlag&4?as(r.component):r.el,o=i?null:s,{i:a,r:l}=t,c=e&&e.r,u=a.refs===ae?a.refs={}:a.refs,f=a.setupState,d=oe(f),h=f===ae?Ca:m=>ue(d,m);if(c!=null&&c!==l){if(bl(e),ke(c))u[c]=null,h(c)&&(f[c]=null);else if(Le(c)){c.value=null;const m=e;m.k&&(u[m.k]=null)}}if(G(l))pr(l,a,12,[o,u]);else{const m=ke(l),p=Le(l);if(m||p){const y=()=>{if(t.f){const x=m?h(l)?f[l]:u[l]:l.value;if(i)q(x)&&Rs(x,s);else if(q(x))x.includes(s)||x.push(s);else if(m)u[l]=[s],h(l)&&(f[l]=u[l]);else{const k=[s];l.value=k,t.k&&(u[t.k]=k)}}else m?(u[l]=o,h(l)&&(f[l]=o)):p&&(l.value=o,t.k&&(u[t.k]=o))};if(o){const x=()=>{y(),Yi.delete(t)};x.id=-1,Yi.set(t,x),pt(x,n)}else bl(t),y()}}}function bl(t){const e=Yi.get(t);e&&(e.flags|=8,Yi.delete(t))}Ni().requestIdleCallback,Ni().cancelIdleCallback;const _r=t=>!!t.type.__asyncLoader,Gi=t=>t.type.__isKeepAlive;function mh(t,e){xl(t,"a",e)}function gh(t,e){xl(t,"da",e)}function xl(t,e,n=Je){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Xi(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Gi(i.parent.vnode)&&_h(r,e,n,i),i=i.parent}}function _h(t,e,n,r){const i=Xi(e,t,r,!0);Jn(()=>{Rs(r[e],i)},n)}function Xi(t,e,n=Je,r=!1){if(n){const i=n[t]||(n[t]=[]),s=e.__weh||(e.__weh=(...o)=>{Ut();const a=ri(n),l=Zt(e,n,t,o);return a(),Vt(),l});return r?i.unshift(s):i.push(s),s}}const fn=t=>(e,n=Je)=>{(!ii||t==="sp")&&Xi(t,(...r)=>e(...r),n)},vh=fn("bm"),Tn=fn("m"),yh=fn("bu"),bh=fn("u"),wl=fn("bum"),Jn=fn("um"),xh=fn("sp"),wh=fn("rtg"),Sh=fn("rtc");function kh(t,e=Je){Xi("ec",t,e)}const Th="components",Sl=Symbol.for("v-ndc");function Qi(t){return ke(t)?zh(Th,t,!1)||t:t||Sl}function zh(t,e,n=!0,r=!1){const i=je||Je;if(i){const s=i.type;{const a=su(s,!1);if(a&&(a===e||a===zt(e)||a===Di(zt(e))))return s}const o=kl(i[t]||s[t],e)||kl(i.appContext[t],e);return!o&&r?s:o}}function kl(t,e){return t&&(t[e]||t[zt(e)]||t[Di(zt(e))])}function vr(t,e,n,r){let i;const s=n,o=q(t);if(o||ke(t)){const a=o&&Bn(t);let l=!1,c=!1;a&&(l=!Ct(t),c=an(t),t=Ri(t)),i=new Array(t.length);for(let u=0,f=t.length;u<f;u++)i[u]=e(l?c?hr(Rt(t[u])):Rt(t[u]):t[u],u,void 0,s)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,s)}else if(me(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,s));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=e(t[u],u,l,s)}}else i=[];return i}function Tl(t,e,n={},r,i){if(je.ce||je.parent&&_r(je.parent)&&je.parent.ce){const c=Object.keys(n).length>0;return e!=="default"&&(n.name=e),V(),He(Ae,null,[Ie("slot",n,r)],c?-2:64)}let s=t[e];s&&s._c&&(s._d=!1),V();const o=s&&zl(s(n)),a=n.key||o&&o.key,l=He(Ae,{key:(a&&!rn(a)?a:`_${e}`)+(!o&&r?"_fb":"")},o||[],o&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function zl(t){return t.some(e=>ni(e)?!(e.type===We||e.type===Ae&&!zl(e.children)):!0)?t:null}const io=t=>t?nu(t)?as(t):io(t.parent):null,Xr=Re(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=>io(t.parent),$root:t=>io(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>El(t),$forceUpdate:t=>t.f||(t.f=()=>{to(t.update)}),$nextTick:t=>t.n||(t.n=il.bind(t.proxy)),$watch:t=>ch.bind(t)}),so=(t,e)=>t!==ae&&!t.__isScriptSetup&&ue(t,e),Ch={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:o,type:a,appContext:l}=t;if(e[0]!=="$"){const d=o[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return s[e]}else{if(so(r,e))return o[e]=1,r[e];if(i!==ae&&ue(i,e))return o[e]=2,i[e];if(ue(s,e))return o[e]=3,s[e];if(n!==ae&&ue(n,e))return o[e]=4,n[e];oo&&(o[e]=0)}}const c=Xr[e];let u,f;if(c)return e==="$attrs"&&Be(t.attrs,"get",""),c(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(n!==ae&&ue(n,e))return o[e]=4,n[e];if(f=l.config.globalProperties,ue(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:s}=t;return so(i,e)?(i[e]=n,!0):r!==ae&&ue(r,e)?(r[e]=n,!0):ue(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(s[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:s,type:o}},a){let l;return!!(n[a]||t!==ae&&a[0]!=="$"&&ue(t,a)||so(e,a)||ue(s,a)||ue(r,a)||ue(Xr,a)||ue(i.config.globalProperties,a)||(l=o.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ue(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Cl(t){return q(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let oo=!0;function Oh(t){const e=El(t),n=t.proxy,r=t.ctx;oo=!1,e.beforeCreate&&Ol(e.beforeCreate,t,"bc");const{data:i,computed:s,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:m,activated:p,deactivated:y,beforeDestroy:x,beforeUnmount:k,destroyed:z,unmounted:b,render:S,renderTracked:E,renderTriggered:w,errorCaptured:A,serverPrefetch:v,expose:F,inheritAttrs:P,components:T,directives:I,filters:K}=e;if(c&&$h(c,r,null),o)for(const ee in o){const te=o[ee];G(te)&&(r[ee]=te.bind(n))}if(i){const ee=i.call(n,n);me(ee)&&(t.data=ji(ee))}if(oo=!0,s)for(const ee in s){const te=s[ee],Mt=G(te)?te.bind(n,n):G(te.get)?te.get.bind(n,n):jt,Qt=!G(te)&&G(te.set)?te.set.bind(n):jt,kt=le({get:Mt,set:Qt});Object.defineProperty(r,ee,{enumerable:!0,configurable:!0,get:()=>kt.value,set:Ze=>kt.value=Ze})}if(a)for(const ee in a)$l(a[ee],r,n,ee);if(l){const ee=G(l)?l.call(n):l;Reflect.ownKeys(ee).forEach(te=>{ah(te,ee[te])})}u&&Ol(u,t,"c");function Q(ee,te){q(te)?te.forEach(Mt=>ee(Mt.bind(n))):te&&ee(te.bind(n))}if(Q(vh,f),Q(Tn,d),Q(yh,h),Q(bh,m),Q(mh,p),Q(gh,y),Q(kh,A),Q(Sh,E),Q(wh,w),Q(wl,k),Q(Jn,b),Q(xh,v),q(F))if(F.length){const ee=t.exposed||(t.exposed={});F.forEach(te=>{Object.defineProperty(ee,te,{get:()=>n[te],set:Mt=>n[te]=Mt,enumerable:!0})})}else t.exposed||(t.exposed={});S&&t.render===jt&&(t.render=S),P!=null&&(t.inheritAttrs=P),T&&(t.components=T),I&&(t.directives=I),v&&yl(t)}function $h(t,e,n=jt){q(t)&&(t=ao(t));for(const r in t){const i=t[r];let s;me(i)?"default"in i?s=un(i.from||r,i.default,!0):s=un(i.from||r):s=un(i),Le(s)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>s.value,set:o=>s.value=o}):e[r]=s}}function Ol(t,e,n){Zt(q(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function $l(t,e,n,r){let i=r.includes(".")?fl(n,r):()=>n[r];if(ke(t)){const s=e[t];G(s)&&kn(i,s)}else if(G(t))kn(i,t.bind(n));else if(me(t))if(q(t))t.forEach(s=>$l(s,e,n,r));else{const s=G(t.handler)?t.handler.bind(n):e[t.handler];G(s)&&kn(i,s,t)}}function El(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:s,config:{optionMergeStrategies:o}}=t.appContext,a=s.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>es(l,c,o,!0)),es(l,e,o)),me(e)&&s.set(e,l),l}function es(t,e,n,r=!1){const{mixins:i,extends:s}=e;s&&es(t,s,n,!0),i&&i.forEach(o=>es(t,o,n,!0));for(const o in e)if(!(r&&o==="expose")){const a=Eh[o]||n&&n[o];t[o]=a?a(t[o],e[o]):e[o]}return t}const Eh={data:Pl,props:Al,emits:Al,methods:Qr,computed:Qr,beforeCreate:tt,created:tt,beforeMount:tt,mounted:tt,beforeUpdate:tt,updated:tt,beforeDestroy:tt,beforeUnmount:tt,destroyed:tt,unmounted:tt,activated:tt,deactivated:tt,errorCaptured:tt,serverPrefetch:tt,components:Qr,directives:Qr,watch:Ah,provide:Pl,inject:Ph};function Pl(t,e){return e?t?function(){return Re(G(t)?t.call(this,this):t,G(e)?e.call(this,this):e)}:e:t}function Ph(t,e){return Qr(ao(t),ao(e))}function ao(t){if(q(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function tt(t,e){return t?[...new Set([].concat(t,e))]:e}function Qr(t,e){return t?Re(Object.create(null),t,e):e}function Al(t,e){return t?q(t)&&q(e)?[...new Set([...t,...e])]:Re(Object.create(null),Cl(t),Cl(e??{})):e}function Ah(t,e){if(!t)return e;if(!e)return t;const n=Re(Object.create(null),t);for(const r in e)n[r]=tt(t[r],e[r]);return n}function Il(){return{app:null,config:{isNativeTag:Ca,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 Ih=0;function Dh(t,e){return function(r,i=null){G(r)||(r=Re({},r)),i!=null&&!me(i)&&(i=null);const s=Il(),o=new WeakSet,a=[];let l=!1;const c=s.app={_uid:Ih++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:hp,get config(){return s.config},set config(u){},use(u,...f){return o.has(u)||(u&&G(u.install)?(o.add(u),u.install(c,...f)):G(u)&&(o.add(u),u(c,...f))),c},mixin(u){return s.mixins.includes(u)||s.mixins.push(u),c},component(u,f){return f?(s.components[u]=f,c):s.components[u]},directive(u,f){return f?(s.directives[u]=f,c):s.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||Ie(r,i);return h.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),t(h,u,d),l=!0,c._container=u,u.__vue_app__=c,as(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(Zt(a,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(u,f){return s.provides[u]=f,c},runWithContext(u){const f=yr;yr=c;try{return u()}finally{yr=f}}};return c}}let yr=null;const Mh=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${zt(e)}Modifiers`]||t[`${Un(e)}Modifiers`];function Nh(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ae;let i=n;const s=e.startsWith("update:"),o=s&&Mh(r,e.slice(7));o&&(o.trim&&(i=n.map(u=>ke(u)?u.trim():u)),o.number&&(i=n.map(Ls)));let a,l=r[a=Zs(e)]||r[a=Zs(zt(e))];!l&&s&&(l=r[a=Zs(Un(e))]),l&&Zt(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,Zt(c,t,6,i)}}const Rh=new WeakMap;function Dl(t,e,n=!1){const r=n?Rh:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const s=t.emits;let o={},a=!1;if(!G(t)){const l=c=>{const u=Dl(c,e,!0);u&&(a=!0,Re(o,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!s&&!a?(me(t)&&r.set(t,null),null):(q(s)?s.forEach(l=>o[l]=null):Re(o,s),me(t)&&r.set(t,o),o)}function ts(t,e){return!t||!Pi(e)?!1:(e=e.slice(2).replace(/Once$/,""),ue(t,e[0].toLowerCase()+e.slice(1))||ue(t,Un(e))||ue(t,e))}function hx(){}function Ml(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:o,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:m,inheritAttrs:p}=t,y=Ki(t);let x,k;try{if(n.shapeFlag&4){const b=i||r,S=b;x=Wt(c.call(S,b,u,f,h,d,m)),k=a}else{const b=e;x=Wt(b.length>1?b(f,{attrs:a,slots:o,emit:l}):b(f,null)),k=e.props?a:Fh(a)}}catch(b){ei.length=0,Hi(b,t,1),x=Ie(We)}let z=x;if(k&&p!==!1){const b=Object.keys(k),{shapeFlag:S}=z;b.length&&S&7&&(s&&b.some(Ns)&&(k=Zh(k,s)),z=zn(z,k,!1,!0))}return n.dirs&&(z=zn(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(n.dirs):n.dirs),n.transition&&Yr(z,n.transition),x=z,Ki(y),x}const Fh=t=>{let e;for(const n in t)(n==="class"||n==="style"||Pi(n))&&((e||(e={}))[n]=t[n]);return e},Zh=(t,e)=>{const n={};for(const r in t)(!Ns(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Lh(t,e,n){const{props:r,children:i,component:s}=t,{props:o,children:a,patchFlag:l}=e,c=s.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?Nl(r,o,c):!!o;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(o[d]!==r[d]&&!ts(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===o?!1:r?o?Nl(r,o,c):!0:!!o;return!1}function Nl(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const s=r[i];if(e[s]!==t[s]&&!ts(n,s))return!0}return!1}function jh({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Rl={},Fl=()=>Object.create(Rl),Zl=t=>Object.getPrototypeOf(t)===Rl;function Uh(t,e,n,r=!1){const i={},s=Fl();t.propsDefaults=Object.create(null),Ll(t,e,i,s);for(const o in t.propsOptions[0])o in i||(i[o]=void 0);n?t.props=r?i:Bd(i):t.type.props?t.props=i:t.props=s,t.attrs=s}function Vh(t,e,n,r){const{props:i,attrs:s,vnode:{patchFlag:o}}=t,a=oe(i),[l]=t.propsOptions;let c=!1;if((r||o>0)&&!(o&16)){if(o&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(ts(t.emitsOptions,d))continue;const h=e[d];if(l)if(ue(s,d))h!==s[d]&&(s[d]=h,c=!0);else{const m=zt(d);i[m]=lo(l,a,m,h,t,!1)}else h!==s[d]&&(s[d]=h,c=!0)}}}else{Ll(t,e,i,s)&&(c=!0);let u;for(const f in a)(!e||!ue(e,f)&&((u=Un(f))===f||!ue(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=lo(l,a,f,void 0,t,!0)):delete i[f]);if(s!==a)for(const f in s)(!e||!ue(e,f))&&(delete s[f],c=!0)}c&&sn(t.attrs,"set","")}function Ll(t,e,n,r){const[i,s]=t.propsOptions;let o=!1,a;if(e)for(let l in e){if(Ur(l))continue;const c=e[l];let u;i&&ue(i,u=zt(l))?!s||!s.includes(u)?n[u]=c:(a||(a={}))[u]=c:ts(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,o=!0)}if(s){const l=oe(n),c=a||ae;for(let u=0;u<s.length;u++){const f=s[u];n[f]=lo(i,l,f,c[f],t,!ue(c,f))}}return o}function lo(t,e,n,r,i,s){const o=t[n];if(o!=null){const a=ue(o,"default");if(a&&r===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&G(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=ri(i);r=c[n]=l.call(null,e),u()}}else r=l;i.ce&&i.ce._setProp(n,r)}o[0]&&(s&&!a?r=!1:o[1]&&(r===""||r===Un(n))&&(r=!0))}return r}const Bh=new WeakMap;function jl(t,e,n=!1){const r=n?Bh:e.propsCache,i=r.get(t);if(i)return i;const s=t.props,o={},a=[];let l=!1;if(!G(t)){const u=f=>{l=!0;const[d,h]=jl(f,e,!0);Re(o,d),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!s&&!l)return me(t)&&r.set(t,cr),cr;if(q(s))for(let u=0;u<s.length;u++){const f=zt(s[u]);Ul(f)&&(o[f]=ae)}else if(s)for(const u in s){const f=zt(u);if(Ul(f)){const d=s[u],h=o[f]=q(d)||G(d)?{type:d}:Re({},d),m=h.type;let p=!1,y=!0;if(q(m))for(let x=0;x<m.length;++x){const k=m[x],z=G(k)&&k.name;if(z==="Boolean"){p=!0;break}else z==="String"&&(y=!1)}else p=G(m)&&m.name==="Boolean";h[0]=p,h[1]=y,(p||ue(h,"default"))&&a.push(f)}}const c=[o,a];return me(t)&&r.set(t,c),c}function Ul(t){return t[0]!=="$"&&!Ur(t)}const uo=t=>t==="_"||t==="_ctx"||t==="$stable",co=t=>q(t)?t.map(Wt):[Wt(t)],Wh=(t,e,n)=>{if(e._n)return e;const r=Ot((...i)=>co(e(...i)),n);return r._c=!1,r},Vl=(t,e,n)=>{const r=t._ctx;for(const i in t){if(uo(i))continue;const s=t[i];if(G(s))e[i]=Wh(i,s,r);else if(s!=null){const o=co(s);e[i]=()=>o}}},Bl=(t,e)=>{const n=co(e);t.slots.default=()=>n},Wl=(t,e,n)=>{for(const r in e)(n||!uo(r))&&(t[r]=e[r])},Hh=(t,e,n)=>{const r=t.slots=Fl();if(t.vnode.shapeFlag&32){const i=e._;i?(Wl(r,e,n),n&&Aa(r,"_",i,!0)):Vl(e,r)}else e&&Bl(t,e)},Jh=(t,e,n)=>{const{vnode:r,slots:i}=t;let s=!0,o=ae;if(r.shapeFlag&32){const a=e._;a?n&&a===1?s=!1:Wl(i,e,n):(s=!e.$stable,Vl(e,i)),o=e}else e&&(Bl(t,e),o={default:1});if(s)for(const a in i)!uo(a)&&o[a]==null&&delete i[a]},pt=Xh;function Kh(t){return qh(t)}function qh(t,e){const n=Ni();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=jt,insertStaticContent:m}=t,p=(g,_,O,R=null,D=null,M=null,j=void 0,L=null,Z=!!_.dynamicChildren)=>{if(g===_)return;g&&!qn(g,_)&&(R=Ms(g),Ze(g,D,M,!0),g=null),_.patchFlag===-2&&(Z=!1,_.dynamicChildren=null);const{type:N,ref:J,shapeFlag:U}=_;switch(N){case ns:y(g,_,O,R);break;case We:x(g,_,O,R);break;case rs:g==null&&k(_,O,R,j);break;case Ae:T(g,_,O,R,D,M,j,L,Z);break;default:U&1?S(g,_,O,R,D,M,j,L,Z):U&6?I(g,_,O,R,D,M,j,L,Z):(U&64||U&128)&&N.process(g,_,O,R,D,M,j,L,Z,$i)}J!=null&&D?Gr(J,g&&g.ref,M,_||g,!_):J==null&&g&&g.ref!=null&&Gr(g.ref,null,M,g,!0)},y=(g,_,O,R)=>{if(g==null)r(_.el=a(_.children),O,R);else{const D=_.el=g.el;_.children!==g.children&&c(D,_.children)}},x=(g,_,O,R)=>{g==null?r(_.el=l(_.children||""),O,R):_.el=g.el},k=(g,_,O,R)=>{[g.el,g.anchor]=m(g.children,_,O,R,g.el,g.anchor)},z=({el:g,anchor:_},O,R)=>{let D;for(;g&&g!==_;)D=d(g),r(g,O,R),g=D;r(_,O,R)},b=({el:g,anchor:_})=>{let O;for(;g&&g!==_;)O=d(g),i(g),g=O;i(_)},S=(g,_,O,R,D,M,j,L,Z)=>{if(_.type==="svg"?j="svg":_.type==="math"&&(j="mathml"),g==null)E(_,O,R,D,M,j,L,Z);else{const N=g.el&&g.el._isVueCE?g.el:null;try{N&&N._beginPatch(),v(g,_,D,M,j,L,Z)}finally{N&&N._endPatch()}}},E=(g,_,O,R,D,M,j,L)=>{let Z,N;const{props:J,shapeFlag:U,transition:W,dirs:X}=g;if(Z=g.el=o(g.type,M,J&&J.is,J),U&8?u(Z,g.children):U&16&&A(g.children,Z,null,R,D,fo(g,M),j,L),X&&Hn(g,null,R,"created"),w(Z,g,g.scopeId,j,R),J){for(const ye in J)ye!=="value"&&!Ur(ye)&&s(Z,ye,null,J[ye],M,R);"value"in J&&s(Z,"value",null,J.value,M),(N=J.onVnodeBeforeMount)&&Ht(N,R,g)}X&&Hn(g,null,R,"beforeMount");const se=Yh(D,W);se&&W.beforeEnter(Z),r(Z,_,O),((N=J&&J.onVnodeMounted)||se||X)&&pt(()=>{N&&Ht(N,R,g),se&&W.enter(Z),X&&Hn(g,null,R,"mounted")},D)},w=(g,_,O,R,D)=>{if(O&&h(g,O),R)for(let M=0;M<R.length;M++)h(g,R[M]);if(D){let M=D.subTree;if(_===M||Yl(M.type)&&(M.ssContent===_||M.ssFallback===_)){const j=D.vnode;w(g,j,j.scopeId,j.slotScopeIds,D.parent)}}},A=(g,_,O,R,D,M,j,L,Z=0)=>{for(let N=Z;N<g.length;N++){const J=g[N]=L?Cn(g[N]):Wt(g[N]);p(null,J,_,O,R,D,M,j,L)}},v=(g,_,O,R,D,M,j)=>{const L=_.el=g.el;let{patchFlag:Z,dynamicChildren:N,dirs:J}=_;Z|=g.patchFlag&16;const U=g.props||ae,W=_.props||ae;let X;if(O&&Kn(O,!1),(X=W.onVnodeBeforeUpdate)&&Ht(X,O,_,g),J&&Hn(_,g,O,"beforeUpdate"),O&&Kn(O,!0),(U.innerHTML&&W.innerHTML==null||U.textContent&&W.textContent==null)&&u(L,""),N?F(g.dynamicChildren,N,L,O,R,fo(_,D),M):j||te(g,_,L,null,O,R,fo(_,D),M,!1),Z>0){if(Z&16)P(L,U,W,O,D);else if(Z&2&&U.class!==W.class&&s(L,"class",null,W.class,D),Z&4&&s(L,"style",U.style,W.style,D),Z&8){const se=_.dynamicProps;for(let ye=0;ye<se.length;ye++){const fe=se[ye],dt=U[fe],ht=W[fe];(ht!==dt||fe==="value")&&s(L,fe,dt,ht,D,O)}}Z&1&&g.children!==_.children&&u(L,_.children)}else!j&&N==null&&P(L,U,W,O,D);((X=W.onVnodeUpdated)||J)&&pt(()=>{X&&Ht(X,O,_,g),J&&Hn(_,g,O,"updated")},R)},F=(g,_,O,R,D,M,j)=>{for(let L=0;L<_.length;L++){const Z=g[L],N=_[L],J=Z.el&&(Z.type===Ae||!qn(Z,N)||Z.shapeFlag&198)?f(Z.el):O;p(Z,N,J,null,R,D,M,j,!0)}},P=(g,_,O,R,D)=>{if(_!==O){if(_!==ae)for(const M in _)!Ur(M)&&!(M in O)&&s(g,M,_[M],null,D,R);for(const M in O){if(Ur(M))continue;const j=O[M],L=_[M];j!==L&&M!=="value"&&s(g,M,L,j,D,R)}"value"in O&&s(g,"value",_.value,O.value,D)}},T=(g,_,O,R,D,M,j,L,Z)=>{const N=_.el=g?g.el:a(""),J=_.anchor=g?g.anchor:a("");let{patchFlag:U,dynamicChildren:W,slotScopeIds:X}=_;X&&(L=L?L.concat(X):X),g==null?(r(N,O,R),r(J,O,R),A(_.children||[],O,J,D,M,j,L,Z)):U>0&&U&64&&W&&g.dynamicChildren&&g.dynamicChildren.length===W.length?(F(g.dynamicChildren,W,O,D,M,j,L),(_.key!=null||D&&_===D.subTree)&&Hl(g,_,!0)):te(g,_,O,J,D,M,j,L,Z)},I=(g,_,O,R,D,M,j,L,Z)=>{_.slotScopeIds=L,g==null?_.shapeFlag&512?D.ctx.activate(_,O,R,j,Z):K(_,O,R,D,M,j,Z):ne(g,_,Z)},K=(g,_,O,R,D,M,j)=>{const L=g.component=sp(g,R,D);if(Gi(g)&&(L.ctx.renderer=$i),op(L,!1,j),L.asyncDep){if(D&&D.registerDep(L,Q,j),!g.el){const Z=L.subTree=Ie(We);x(null,Z,_,O),g.placeholder=Z.el}}else Q(L,g,_,O,D,M,j)},ne=(g,_,O)=>{const R=_.component=g.component;if(Lh(g,_,O))if(R.asyncDep&&!R.asyncResolved){ee(R,_,O);return}else R.next=_,R.update();else _.el=g.el,R.vnode=_},Q=(g,_,O,R,D,M,j)=>{const L=()=>{if(g.isMounted){let{next:U,bu:W,u:X,parent:se,vnode:ye}=g;{const tn=Jl(g);if(tn){U&&(U.el=ye.el,ee(g,U,j)),tn.asyncDep.then(()=>{g.isUnmounted||L()});return}}let fe=U,dt;Kn(g,!1),U?(U.el=ye.el,ee(g,U,j)):U=ye,W&&Mi(W),(dt=U.props&&U.props.onVnodeBeforeUpdate)&&Ht(dt,se,U,ye),Kn(g,!0);const ht=Ml(g),en=g.subTree;g.subTree=ht,p(en,ht,f(en.el),Ms(en),g,D,M),U.el=ht.el,fe===null&&jh(g,ht.el),X&&pt(X,D),(dt=U.props&&U.props.onVnodeUpdated)&&pt(()=>Ht(dt,se,U,ye),D)}else{let U;const{el:W,props:X}=_,{bm:se,m:ye,parent:fe,root:dt,type:ht}=g,en=_r(_);Kn(g,!1),se&&Mi(se),!en&&(U=X&&X.onVnodeBeforeMount)&&Ht(U,fe,_),Kn(g,!0);{dt.ce&&dt.ce._def.shadowRoot!==!1&&dt.ce._injectChildStyle(ht);const tn=g.subTree=Ml(g);p(null,tn,O,R,g,D,M),_.el=tn.el}if(ye&&pt(ye,D),!en&&(U=X&&X.onVnodeMounted)){const tn=_;pt(()=>Ht(U,fe,tn),D)}(_.shapeFlag&256||fe&&_r(fe.vnode)&&fe.vnode.shapeFlag&256)&&g.a&&pt(g.a,D),g.isMounted=!0,_=O=R=null}};g.scope.on();const Z=g.effect=new Ra(L);g.scope.off();const N=g.update=Z.run.bind(Z),J=g.job=Z.runIfDirty.bind(Z);J.i=g,J.id=g.uid,Z.scheduler=()=>to(J),Kn(g,!0),N()},ee=(g,_,O)=>{_.component=g;const R=g.vnode.props;g.vnode=_,g.next=null,Vh(g,_.props,R,O),Jh(g,_.children,O),Ut(),ol(g),Vt()},te=(g,_,O,R,D,M,j,L,Z=!1)=>{const N=g&&g.children,J=g?g.shapeFlag:0,U=_.children,{patchFlag:W,shapeFlag:X}=_;if(W>0){if(W&128){Qt(N,U,O,R,D,M,j,L,Z);return}else if(W&256){Mt(N,U,O,R,D,M,j,L,Z);return}}X&8?(J&16&&Oi(N,D,M),U!==N&&u(O,U)):J&16?X&16?Qt(N,U,O,R,D,M,j,L,Z):Oi(N,D,M,!0):(J&8&&u(O,""),X&16&&A(U,O,R,D,M,j,L,Z))},Mt=(g,_,O,R,D,M,j,L,Z)=>{g=g||cr,_=_||cr;const N=g.length,J=_.length,U=Math.min(N,J);let W;for(W=0;W<U;W++){const X=_[W]=Z?Cn(_[W]):Wt(_[W]);p(g[W],X,O,null,D,M,j,L,Z)}N>J?Oi(g,D,M,!0,!1,U):A(_,O,R,D,M,j,L,Z,U)},Qt=(g,_,O,R,D,M,j,L,Z)=>{let N=0;const J=_.length;let U=g.length-1,W=J-1;for(;N<=U&&N<=W;){const X=g[N],se=_[N]=Z?Cn(_[N]):Wt(_[N]);if(qn(X,se))p(X,se,O,null,D,M,j,L,Z);else break;N++}for(;N<=U&&N<=W;){const X=g[U],se=_[W]=Z?Cn(_[W]):Wt(_[W]);if(qn(X,se))p(X,se,O,null,D,M,j,L,Z);else break;U--,W--}if(N>U){if(N<=W){const X=W+1,se=X<J?_[X].el:R;for(;N<=W;)p(null,_[N]=Z?Cn(_[N]):Wt(_[N]),O,se,D,M,j,L,Z),N++}}else if(N>W)for(;N<=U;)Ze(g[N],D,M,!0),N++;else{const X=N,se=N,ye=new Map;for(N=se;N<=W;N++){const Tt=_[N]=Z?Cn(_[N]):Wt(_[N]);Tt.key!=null&&ye.set(Tt.key,N)}let fe,dt=0;const ht=W-se+1;let en=!1,tn=0;const Ei=new Array(ht);for(N=0;N<ht;N++)Ei[N]=0;for(N=X;N<=U;N++){const Tt=g[N];if(dt>=ht){Ze(Tt,D,M,!0);continue}let nn;if(Tt.key!=null)nn=ye.get(Tt.key);else for(fe=se;fe<=W;fe++)if(Ei[fe-se]===0&&qn(Tt,_[fe])){nn=fe;break}nn===void 0?Ze(Tt,D,M,!0):(Ei[nn-se]=N+1,nn>=tn?tn=nn:en=!0,p(Tt,_[nn],O,null,D,M,j,L,Z),dt++)}const fd=en?Gh(Ei):cr;for(fe=fd.length-1,N=ht-1;N>=0;N--){const Tt=se+N,nn=_[Tt],dd=_[Tt+1],hd=Tt+1<J?dd.el||ql(dd):R;Ei[N]===0?p(null,nn,O,hd,D,M,j,L,Z):en&&(fe<0||N!==fd[fe]?kt(nn,O,hd,2):fe--)}}},kt=(g,_,O,R,D=null)=>{const{el:M,type:j,transition:L,children:Z,shapeFlag:N}=g;if(N&6){kt(g.component.subTree,_,O,R);return}if(N&128){g.suspense.move(_,O,R);return}if(N&64){j.move(g,_,O,$i);return}if(j===Ae){r(M,_,O);for(let U=0;U<Z.length;U++)kt(Z[U],_,O,R);r(g.anchor,_,O);return}if(j===rs){z(g,_,O);return}if(R!==2&&N&1&&L)if(R===0)L.beforeEnter(M),r(M,_,O),pt(()=>L.enter(M),D);else{const{leave:U,delayLeave:W,afterLeave:X}=L,se=()=>{g.ctx.isUnmounted?i(M):r(M,_,O)},ye=()=>{M._isLeaving&&M[cn](!0),U(M,()=>{se(),X&&X()})};W?W(M,se,ye):ye()}else r(M,_,O)},Ze=(g,_,O,R=!1,D=!1)=>{const{type:M,props:j,ref:L,children:Z,dynamicChildren:N,shapeFlag:J,patchFlag:U,dirs:W,cacheIndex:X}=g;if(U===-2&&(D=!1),L!=null&&(Ut(),Gr(L,null,O,g,!0),Vt()),X!=null&&(_.renderCache[X]=void 0),J&256){_.ctx.deactivate(g);return}const se=J&1&&W,ye=!_r(g);let fe;if(ye&&(fe=j&&j.onVnodeBeforeUnmount)&&Ht(fe,_,g),J&6)bn(g.component,O,R);else{if(J&128){g.suspense.unmount(O,R);return}se&&Hn(g,null,_,"beforeUnmount"),J&64?g.type.remove(g,_,O,$i,R):N&&!N.hasOnce&&(M!==Ae||U>0&&U&64)?Oi(N,_,O,!1,!0):(M===Ae&&U&384||!D&&J&16)&&Oi(Z,_,O),R&&Ci(g)}(ye&&(fe=j&&j.onVnodeUnmounted)||se)&&pt(()=>{fe&&Ht(fe,_,g),se&&Hn(g,null,_,"unmounted")},O)},Ci=g=>{const{type:_,el:O,anchor:R,transition:D}=g;if(_===Ae){Lt(O,R);return}if(_===rs){b(g);return}const M=()=>{i(O),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(g.shapeFlag&1&&D&&!D.persisted){const{leave:j,delayLeave:L}=D,Z=()=>j(O,M);L?L(g.el,M,Z):Z()}else M()},Lt=(g,_)=>{let O;for(;g!==_;)O=d(g),i(g),g=O;i(_)},bn=(g,_,O)=>{const{bum:R,scope:D,job:M,subTree:j,um:L,m:Z,a:N}=g;Kl(Z),Kl(N),R&&Mi(R),D.stop(),M&&(M.flags|=8,Ze(j,g,_,O)),L&&pt(L,_),pt(()=>{g.isUnmounted=!0},_)},Oi=(g,_,O,R=!1,D=!1,M=0)=>{for(let j=M;j<g.length;j++)Ze(g[j],_,O,R,D)},Ms=g=>{if(g.shapeFlag&6)return Ms(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const _=d(g.anchor||g.el),O=_&&_[fh];return O?d(O):_};let za=!1;const cd=(g,_,O)=>{let R;g==null?_._vnode&&(Ze(_._vnode,null,null,!0),R=_._vnode.component):p(_._vnode||null,g,_,null,null,null,O),_._vnode=g,za||(za=!0,ol(R),al(),za=!1)},$i={p,um:Ze,m:kt,r:Ci,mt:K,mc:A,pc:te,pbc:F,n:Ms,o:t};return{render:cd,hydrate:void 0,createApp:Dh(cd)}}function fo({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 Kn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Yh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Hl(t,e,n=!1){const r=t.children,i=e.children;if(q(r)&&q(i))for(let s=0;s<r.length;s++){const o=r[s];let a=i[s];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[s]=Cn(i[s]),a.el=o.el),!n&&a.patchFlag!==-2&&Hl(o,a)),a.type===ns&&(a.patchFlag!==-1?a.el=o.el:a.__elIndex=s+(t.type===Ae?1:0)),a.type===We&&!a.el&&(a.el=o.el)}}function Gh(t){const e=t.slice(),n=[0];let r,i,s,o,a;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(s=0,o=n.length-1;s<o;)a=s+o>>1,t[n[a]]<c?s=a+1:o=a;c<t[n[s]]&&(s>0&&(e[r]=n[s-1]),n[s]=r)}}for(s=n.length,o=n[s-1];s-- >0;)n[s]=o,o=e[o];return n}function Jl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Jl(e)}function Kl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function ql(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?ql(e.subTree):null}const Yl=t=>t.__isSuspense;function Xh(t,e){e&&e.pendingBranch?q(t)?e.effects.push(...t):e.effects.push(t):sh(t)}const Ae=Symbol.for("v-fgt"),ns=Symbol.for("v-txt"),We=Symbol.for("v-cmt"),rs=Symbol.for("v-stc"),ei=[];let mt=null;function V(t=!1){ei.push(mt=t?null:[])}function Qh(){ei.pop(),mt=ei[ei.length-1]||null}let ti=1;function is(t,e=!1){ti+=t,t<0&&mt&&e&&(mt.hasOnce=!0)}function Gl(t){return t.dynamicChildren=ti>0?mt||cr:null,Qh(),ti>0&&mt&&mt.push(t),t}function H(t,e,n,r,i,s){return Gl($(t,e,n,r,i,s,!0))}function He(t,e,n,r,i){return Gl(Ie(t,e,n,r,i,!0))}function ni(t){return t?t.__v_isVNode===!0:!1}function qn(t,e){return t.type===e.type&&t.key===e.key}const Xl=({key:t})=>t??null,ss=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?ke(t)||Le(t)||G(t)?{i:je,r:t,k:e,f:!!n}:t:null);function $(t,e=null,n=null,r=0,i=null,s=t===Ae?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Xl(e),ref:e&&ss(e),scopeId:ul,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:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:je};return a?(ho(l,n),s&128&&t.normalize(l)):n&&(l.shapeFlag|=ke(n)?8:16),ti>0&&!o&&mt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&mt.push(l),l}const Ie=ep;function ep(t,e=null,n=null,r=0,i=null,s=!1){if((!t||t===Sl)&&(t=We),ni(t)){const a=zn(t,e,!0);return n&&ho(a,n),ti>0&&!s&&mt&&(a.shapeFlag&6?mt[mt.indexOf(t)]=a:mt.push(a)),a.patchFlag=-2,a}if(dp(t)&&(t=t.__vccOpts),e){e=tp(e);let{class:a,style:l}=e;a&&!ke(a)&&(e.class=Y(a)),me(l)&&(Qs(l)&&!q(l)&&(l=Re({},l)),e.style=Qe(l))}const o=ke(t)?1:Yl(t)?128:dl(t)?64:me(t)?4:G(t)?2:0;return $(t,e,n,r,i,o,s,!0)}function tp(t){return t?Qs(t)||Zl(t)?Re({},t):t:null}function zn(t,e,n=!1,r=!1){const{props:i,ref:s,patchFlag:o,children:a,transition:l}=t,c=e?po(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&Xl(c),ref:e&&e.ref?n&&s?q(s)?s.concat(ss(e)):[s,ss(e)]:ss(e):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Ae?o===-1?16:o|16:o,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&zn(t.ssContent),ssFallback:t.ssFallback&&zn(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Yr(u,l.clone(u)),u}function Ql(t=" ",e=0){return Ie(ns,null,t,e)}function np(t,e){const n=Ie(rs,null,t);return n.staticCount=e,n}function Ee(t="",e=!1){return e?(V(),He(We,null,t)):Ie(We,null,t)}function Wt(t){return t==null||typeof t=="boolean"?Ie(We):q(t)?Ie(Ae,null,t.slice()):ni(t)?Cn(t):Ie(ns,null,String(t))}function Cn(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:zn(t)}function ho(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(q(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),ho(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Zl(e)?e._ctx=je:i===3&&je&&(je.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else G(e)?(e={default:e,_ctx:je},n=32):(e=String(e),r&64?(n=16,e=[Ql(e)]):n=8);t.children=e,t.shapeFlag|=n}function po(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=Y([e.class,r.class]));else if(i==="style")e.style=Qe([e.style,r.style]);else if(Pi(i)){const s=e[i],o=r[i];o&&s!==o&&!(q(s)&&s.includes(o))&&(e[i]=s?[].concat(s,o):o)}else i!==""&&(e[i]=r[i])}return e}function Ht(t,e,n,r=null){Zt(t,e,7,[n,r])}const rp=Il();let ip=0;function sp(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||rp,s={uid:ip++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new kd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:jl(r,i),emitsOptions:Dl(r,i),emit:null,emitted:null,propsDefaults:ae,inheritAttrs:r.inheritAttrs,ctx:ae,data:ae,props:ae,attrs:ae,slots:ae,refs:ae,setupState:ae,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,sp:null};return s.ctx={_:s},s.root=e?e.root:s,s.emit=Nh.bind(null,s),t.ce&&t.ce(s),s}let Je=null;const eu=()=>Je||je;let os,mo;{const t=Ni(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),s=>{i.length>1?i.forEach(o=>o(s)):i[0](s)}};os=e("__VUE_INSTANCE_SETTERS__",n=>Je=n),mo=e("__VUE_SSR_SETTERS__",n=>ii=n)}const ri=t=>{const e=Je;return os(t),t.scope.on(),()=>{t.scope.off(),os(e)}},tu=()=>{Je&&Je.scope.off(),os(null)};function nu(t){return t.vnode.shapeFlag&4}let ii=!1;function op(t,e=!1,n=!1){e&&mo(e);const{props:r,children:i}=t.vnode,s=nu(t);Uh(t,r,s,e),Hh(t,i,n||e);const o=s?ap(t,e):void 0;return e&&mo(!1),o}function ap(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Ch);const{setup:r}=n;if(r){Ut();const i=t.setupContext=r.length>1?up(t):null,s=ri(t),o=pr(r,t,0,[t.props,i]),a=$a(o);if(Vt(),s(),(a||t.sp)&&!_r(t)&&yl(t),a){if(o.then(tu,tu),e)return o.then(l=>{ru(t,l)}).catch(l=>{Hi(l,t,0)});t.asyncDep=o}else ru(t,o)}else iu(t)}function ru(t,e,n){G(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:me(e)&&(t.setupState=tl(e)),iu(t)}function iu(t,e,n){const r=t.type;t.render||(t.render=r.render||jt);{const i=ri(t);Ut();try{Oh(t)}finally{Vt(),i()}}}const lp={get(t,e){return Be(t,"get",""),t[e]}};function up(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,lp),slots:t.slots,emit:t.emit,expose:e}}function as(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(tl(Wd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in Xr)return Xr[n](t)},has(e,n){return n in e||n in Xr}})):t.proxy}const cp=/(?:^|[-_])\w/g,fp=t=>t.replace(cp,e=>e.toUpperCase()).replace(/[-_]/g,"");function su(t,e=!0){return G(t)?t.displayName||t.name:t.name||e&&t.__name}function ou(t,e,n=!1){let r=su(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t){const i=s=>{for(const o in s)if(s[o]===e)return o};r=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return r?fp(r):n?"App":"Anonymous"}function dp(t){return G(t)&&"__vccOpts"in t}const le=(t,e)=>Yd(t,e,ii);function _e(t,e,n){try{is(-1);const r=arguments.length;return r===2?me(e)&&!q(e)?ni(e)?Ie(t,null,[e]):Ie(t,e):Ie(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ni(n)&&(n=[n]),Ie(t,e,n))}finally{is(1)}}const hp="3.5.26";/**
|
|
13
|
+
**/const qr=[];let is=!1;function M1(t,...e){if(is)return;is=!0,Vt();const n=qr.length?qr[qr.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=sh();if(r)gr(r,n,11,[t+e.map(o=>{var s,a;return(a=(s=o.toString)==null?void 0:s.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${fu(n,o.type)}>`).join(`
|
|
14
|
+
`),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
|
|
15
|
+
`,...ah(i)),console.warn(...o)}Wt(),is=!1}function sh(){let t=qr[qr.length-1];if(!t)return[];const e=[];for(;t;){const n=e[0];n&&n.vnode===t?n.recurseCount++:e.push({vnode:t,recurseCount:0});const r=t.component&&t.component.parent;t=r&&r.vnode}return e}function ah(t){const e=[];return t.forEach((n,r)=>{e.push(...r===0?[]:[`
|
|
16
|
+
`],...lh(n))}),e}function lh({vnode:t,recurseCount:e}){const n=e>0?`... (${e} recursive calls)`:"",r=t.component?t.component.parent==null:!1,i=` at <${fu(t.component,t.type,r)}`,o=">"+n;return t.props?[i,...uh(t.props),o]:[i+o]}function uh(t){const e=[],n=Object.keys(t);return n.slice(0,3).forEach(r=>{e.push(...al(r,t[r]))}),n.length>3&&e.push(" ..."),e}function al(t,e,n){return $e(e)?(e=JSON.stringify(e),n?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?n?e:[`${t}=${e}`]:Ve(e)?(e=al(t,ae(e.value),!0),n?e:[`${t}=Ref<`,e,">"]):X(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=ae(e),n?e:[`${t}=`,e])}function gr(t,e,n,r){try{return r?t(...r):t()}catch(i){Ji(i,e,n)}}function jt(t,e,n,r){if(X(t)){const i=gr(t,e,n,r);return i&&Ra(i)&&i.catch(o=>{Ji(o,e,n)}),i}if(Y(t)){const i=[];for(let o=0;o<t.length;o++)i.push(jt(t[o],e,n,r));return i}}function Ji(t,e,n,r=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=e&&e.appContext.config||ue;if(e){let a=e.parent;const l=e.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](t,l,c)===!1)return}a=a.parent}if(o){Vt(),gr(o,null,10,[t,l,c]),Wt();return}}ch(t,n,i,r,s)}function ch(t,e,n,r=!0,i=!1){if(i)throw t;console.error(t)}const nt=[];let Ht=-1;const _r=[];let Cn=null,vr=0;const ll=Promise.resolve();let Gi=null;function ul(t){const e=Gi||ll;return t?e.then(this?t.bind(this):t):e}function fh(t){let e=Ht+1,n=nt.length;for(;e<n;){const r=e+n>>>1,i=nt[r],o=Yr(i);o<t||o===t&&i.flags&2?e=r+1:n=r}return e}function os(t){if(!(t.flags&1)){const e=Yr(t),n=nt[nt.length-1];!n||!(t.flags&2)&&e>=Yr(n)?nt.push(t):nt.splice(fh(e),0,t),t.flags|=1,cl()}}function cl(){Gi||(Gi=ll.then(hl))}function dh(t){Y(t)?_r.push(...t):Cn&&t.id===-1?Cn.splice(vr+1,0,t):t.flags&1||(_r.push(t),t.flags|=1),cl()}function fl(t,e,n=Ht+1){for(;n<nt.length;n++){const r=nt[n];if(r&&r.flags&2){if(t&&r.id!==t.uid)continue;nt.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function dl(t){if(_r.length){const e=[...new Set(_r)].sort((n,r)=>Yr(n)-Yr(r));if(_r.length=0,Cn){Cn.push(...e);return}for(Cn=e,vr=0;vr<Cn.length;vr++){const n=Cn[vr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Cn=null,vr=0}}const Yr=t=>t.id==null?t.flags&2?-1:1/0:t.id;function hl(t){try{for(Ht=0;Ht<nt.length;Ht++){const e=nt[Ht];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),gr(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Ht<nt.length;Ht++){const e=nt[Ht];e&&(e.flags&=-2)}Ht=-1,nt.length=0,dl(),Gi=null,(nt.length||_r.length)&&hl()}}let We=null,pl=null;function Ki(t){const e=We;return We=t,pl=t&&t.type.__scopeId||null,e}function Ot(t,e=We,n){if(!e||t._n)return t;const r=(...i)=>{r._d&&oo(-1);const o=Ki(e);let s;try{s=t(...i)}finally{Ki(o),r._d&&oo(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function hh(t,e){if(We===null)return t;const n=lo(We),r=t.dirs||(t.dirs=[]);for(let i=0;i<e.length;i++){let[o,s,a,l=ue]=e[i];o&&(X(o)&&(o={mounted:o,updated:o}),o.deep&&fn(s),r.push({dir:o,instance:n,value:s,oldValue:void 0,arg:a,modifiers:l}))}return t}function Kn(t,e,n,r){const i=t.dirs,o=e&&e.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(Vt(),jt(l,n,8,[t.el,a,t,e]),Wt())}}function ph(t,e){if(Ye){let n=Ye.provides;const r=Ye.parent&&Ye.parent.provides;r===n&&(n=Ye.provides=Object.create(r)),n[t]=e}}function dn(t,e,n=!1){const r=ou();if(r||xr){let i=xr?xr._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return n&&X(e)?e.call(r&&r.proxy):e}}const mh=Symbol.for("v-scx"),gh=()=>dn(mh);function hn(t,e,n){return ml(t,e,n)}function ml(t,e,n=ue){const{immediate:r,deep:i,flush:o,once:s}=n,a=je({},n),l=e&&r||!e&&o!=="post";let c;if(si){if(o==="sync"){const h=gh();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=Ut,h.resume=Ut,h.pause=Ut,h}}const u=Ye;a.call=(h,m,p)=>jt(h,u,m,p);let f=!1;o==="post"?a.scheduler=h=>{gt(h,u&&u.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(h,m)=>{m?h():os(h)}),a.augmentJob=h=>{e&&(h.flags|=4),f&&(h.flags|=2,u&&(h.id=u.uid,h.i=u))};const d=oh(t,e,a);return si&&(c?c.push(d):l&&d()),d}function _h(t,e,n){const r=this.proxy,i=$e(t)?t.includes(".")?gl(r,t):()=>r[t]:t.bind(r,r);let o;X(e)?o=e:(o=e.handler,n=e);const s=oi(this),a=ml(i,o.bind(r),n);return s(),a}function gl(t,e){const n=e.split(".");return()=>{let r=t;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const vh=Symbol("_vte"),_l=t=>t.__isTeleport,pn=Symbol("_leaveCb"),qi=Symbol("_enterCb");function bh(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $n(()=>{t.isMounted=!0}),Cl(()=>{t.isUnmounting=!0}),t}const Et=[Function,Array],vl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Et,onEnter:Et,onAfterEnter:Et,onEnterCancelled:Et,onBeforeLeave:Et,onLeave:Et,onAfterLeave:Et,onLeaveCancelled:Et,onBeforeAppear:Et,onAppear:Et,onAfterAppear:Et,onAppearCancelled:Et},bl=t=>{const e=t.subTree;return e.component?bl(e.component):e},yh={name:"BaseTransition",props:vl,setup(t,{slots:e}){const n=ou(),r=bh();return()=>{const i=e.default&&Sl(e.default(),!0);if(!i||!i.length)return;const o=yl(i),s=ae(t),{mode:a}=s;if(r.isLeaving)return as(o);const l=wl(o);if(!l)return as(o);let c=ss(l,s,r,n,f=>c=f);l.type!==Ke&&Xr(l,c);let u=n.subTree&&wl(n.subTree);if(u&&u.type!==Ke&&!Xn(u,l)&&bl(n).type!==Ke){let f=ss(u,s,r,n);if(Xr(u,f),a==="out-in"&&l.type!==Ke)return r.isLeaving=!0,f.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,u=void 0},as(o);a==="in-out"&&l.type!==Ke?f.delayLeave=(d,h,m)=>{const p=xl(r,u);p[String(u.key)]=u,d[pn]=()=>{h(),d[pn]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function yl(t){let e=t[0];if(t.length>1){for(const n of t)if(n.type!==Ke){e=n;break}}return e}const xh=yh;function xl(t,e){const{leavingVNodes:n}=t;let r=n.get(e.type);return r||(r=Object.create(null),n.set(e.type,r)),r}function ss(t,e,n,r,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:d,onLeave:h,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:b,onAppear:x,onAfterAppear:k,onAppearCancelled:z}=e,y=String(t.key),w=xl(n,t),E=(_,S)=>{_&&jt(_,r,9,S)},A=(_,S)=>{const N=S[1];E(_,S),Y(_)?_.every(T=>T.length<=1)&&N():_.length<=1&&N()},P={mode:s,persisted:a,beforeEnter(_){let S=l;if(!n.isMounted)if(o)S=b||l;else return;_[pn]&&_[pn](!0);const N=w[y];N&&Xn(t,N)&&N.el[pn]&&N.el[pn](),E(S,[_])},enter(_){let S=c,N=u,T=f;if(!n.isMounted)if(o)S=x||c,N=k||u,T=z||f;else return;let B=!1;const H=_[qi]=K=>{B||(B=!0,K?E(T,[_]):E(N,[_]),P.delayedLeave&&P.delayedLeave(),_[qi]=void 0)};S?A(S,[_,H]):H()},leave(_,S){const N=String(t.key);if(_[qi]&&_[qi](!0),n.isUnmounting)return S();E(d,[_]);let T=!1;const B=_[pn]=H=>{T||(T=!0,S(),H?E(p,[_]):E(m,[_]),_[pn]=void 0,w[N]===t&&delete w[N])};w[N]=t,h?A(h,[_,B]):B()},clone(_){const S=ss(_,e,n,r,i);return i&&i(S),S}};return P}function as(t){if(Xi(t))return t=On(t),t.children=null,t}function wl(t){if(!Xi(t))return _l(t.type)&&t.children?yl(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&&X(n.default))return n.default()}}function Xr(t,e){t.shapeFlag&6&&t.component?(t.transition=e,Xr(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 Sl(t,e=!1,n){let r=[],i=0;for(let o=0;o<t.length;o++){let s=t[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Fe?(s.patchFlag&128&&i++,r=r.concat(Sl(s.children,e,a))):(e||s.type!==Ke)&&r.push(a!=null?On(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ee(t,e){return X(t)?je({name:t.name},e,{setup:t}):t}function kl(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const Yi=new WeakMap;function Qr(t,e,n,r,i=!1){if(Y(t)){t.forEach((m,p)=>Qr(m,e&&(Y(e)?e[p]:e),n,r,i));return}if(br(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Qr(t,e,n,r.component.subTree);return}const o=r.shapeFlag&4?lo(r.component):r.el,s=i?null:o,{i:a,r:l}=t,c=e&&e.r,u=a.refs===ue?a.refs={}:a.refs,f=a.setupState,d=ae(f),h=f===ue?Ia:m=>ce(d,m);if(c!=null&&c!==l){if(Tl(e),$e(c))u[c]=null,h(c)&&(f[c]=null);else if(Ve(c)){c.value=null;const m=e;m.k&&(u[m.k]=null)}}if(X(l))gr(l,a,12,[s,u]);else{const m=$e(l),p=Ve(l);if(m||p){const b=()=>{if(t.f){const x=m?h(l)?f[l]:u[l]:l.value;if(i)Y(x)&&jo(x,o);else if(Y(x))x.includes(o)||x.push(o);else if(m)u[l]=[o],h(l)&&(f[l]=u[l]);else{const k=[o];l.value=k,t.k&&(u[t.k]=k)}}else m?(u[l]=s,h(l)&&(f[l]=s)):p&&(l.value=s,t.k&&(u[t.k]=s))};if(s){const x=()=>{b(),Yi.delete(t)};x.id=-1,Yi.set(t,x),gt(x,n)}else Tl(t),b()}}}function Tl(t){const e=Yi.get(t);e&&(e.flags|=8,Yi.delete(t))}Ni().requestIdleCallback,Ni().cancelIdleCallback;const br=t=>!!t.type.__asyncLoader,Xi=t=>t.type.__isKeepAlive;function wh(t,e){zl(t,"a",e)}function Sh(t,e){zl(t,"da",e)}function zl(t,e,n=Ye){const r=t.__wdc||(t.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(Qi(e,r,n),n){let i=n.parent;for(;i&&i.parent;)Xi(i.parent.vnode)&&kh(r,e,n,i),i=i.parent}}function kh(t,e,n,r){const i=Qi(e,t,r,!0);qn(()=>{jo(r[e],i)},n)}function Qi(t,e,n=Ye,r=!1){if(n){const i=n[t]||(n[t]=[]),o=e.__weh||(e.__weh=(...s)=>{Vt();const a=oi(n),l=jt(e,n,t,s);return a(),Wt(),l});return r?i.unshift(o):i.push(o),o}}const mn=t=>(e,n=Ye)=>{(!si||t==="sp")&&Qi(t,(...r)=>e(...r),n)},Th=mn("bm"),$n=mn("m"),zh=mn("bu"),Ch=mn("u"),Cl=mn("bum"),qn=mn("um"),$h=mn("sp"),Oh=mn("rtg"),Eh=mn("rtc");function Ph(t,e=Ye){Qi("ec",t,e)}const Ih="components",$l=Symbol.for("v-ndc");function eo(t){return $e(t)?Ah(Ih,t,!1)||t:t||$l}function Ah(t,e,n=!0,r=!1){const i=We||Ye;if(i){const o=i.type;{const a=cu(o,!1);if(a&&(a===e||a===Ct(e)||a===Di(Ct(e))))return o}const s=Ol(i[t]||o[t],e)||Ol(i.appContext[t],e);return!s&&r?o:s}}function Ol(t,e){return t&&(t[e]||t[Ct(e)]||t[Di(Ct(e))])}function yr(t,e,n,r){let i;const o=n,s=Y(t);if(s||$e(t)){const a=s&&Jn(t);let l=!1,c=!1;a&&(l=!$t(t),c=cn(t),t=Mi(t)),i=new Array(t.length);for(let u=0,f=t.length;u<f;u++)i[u]=e(l?c?mr(Lt(t[u])):Lt(t[u]):t[u],u,void 0,o)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o)}else if(_e(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=e(t[u],u,l,o)}}else i=[];return i}function El(t,e,n={},r,i){if(We.ce||We.parent&&br(We.parent)&&We.parent.ce){const c=Object.keys(n).length>0;return e!=="default"&&(n.name=e),U(),qe(Fe,null,[Ne("slot",n,r)],c?-2:64)}let o=t[e];o&&o._c&&(o._d=!1),U();const s=o&&Pl(o(n)),a=n.key||s&&s.key,l=qe(Fe,{key:(a&&!an(a)?a:`_${e}`)+(!s&&r?"_fb":"")},s||[],s&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Pl(t){return t.some(e=>ii(e)?!(e.type===Ke||e.type===Fe&&!Pl(e.children)):!0)?t:null}const ls=t=>t?au(t)?lo(t):ls(t.parent):null,ei=je(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=>ls(t.parent),$root:t=>ls(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Dl(t),$forceUpdate:t=>t.f||(t.f=()=>{os(t.update)}),$nextTick:t=>t.n||(t.n=ul.bind(t.proxy)),$watch:t=>_h.bind(t)}),us=(t,e)=>t!==ue&&!t.__isScriptSetup&&ce(t,e),Rh={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=t;if(e[0]!=="$"){const d=s[e];if(d!==void 0)switch(d){case 1:return r[e];case 2:return i[e];case 4:return n[e];case 3:return o[e]}else{if(us(r,e))return s[e]=1,r[e];if(i!==ue&&ce(i,e))return s[e]=2,i[e];if(ce(o,e))return s[e]=3,o[e];if(n!==ue&&ce(n,e))return s[e]=4,n[e];cs&&(s[e]=0)}}const c=ei[e];let u,f;if(c)return e==="$attrs"&&Ge(t.attrs,"get",""),c(t);if((u=a.__cssModules)&&(u=u[e]))return u;if(n!==ue&&ce(n,e))return s[e]=4,n[e];if(f=l.config.globalProperties,ce(f,e))return f[e]},set({_:t},e,n){const{data:r,setupState:i,ctx:o}=t;return us(i,e)?(i[e]=n,!0):r!==ue&&ce(r,e)?(r[e]=n,!0):ce(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=n,!0)},has({_:{data:t,setupState:e,accessCache:n,ctx:r,appContext:i,props:o,type:s}},a){let l;return!!(n[a]||t!==ue&&a[0]!=="$"&&ce(t,a)||us(e,a)||ce(o,a)||ce(r,a)||ce(ei,a)||ce(i.config.globalProperties,a)||(l=s.__cssModules)&&l[a])},defineProperty(t,e,n){return n.get!=null?t._.accessCache[e]=0:ce(n,"value")&&this.set(t,e,n.value,null),Reflect.defineProperty(t,e,n)}};function Il(t){return Y(t)?t.reduce((e,n)=>(e[n]=null,e),{}):t}let cs=!0;function Dh(t){const e=Dl(t),n=t.proxy,r=t.ctx;cs=!1,e.beforeCreate&&Al(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:d,beforeUpdate:h,updated:m,activated:p,deactivated:b,beforeDestroy:x,beforeUnmount:k,destroyed:z,unmounted:y,render:w,renderTracked:E,renderTriggered:A,errorCaptured:P,serverPrefetch:_,expose:S,inheritAttrs:N,components:T,directives:B,filters:H}=e;if(c&&Fh(c,r,null),s)for(const te in s){const ne=s[te];X(ne)&&(r[te]=ne.bind(n))}if(i){const te=i.call(n,n);_e(te)&&(t.data=Bi(te))}if(cs=!0,o)for(const te in o){const ne=o[te],Nt=X(ne)?ne.bind(n,n):X(ne.get)?ne.get.bind(n,n):Ut,nn=!X(ne)&&X(ne.set)?ne.set.bind(n):Ut,Tt=le({get:Nt,set:nn});Object.defineProperty(r,te,{enumerable:!0,configurable:!0,get:()=>Tt.value,set:Ue=>Tt.value=Ue})}if(a)for(const te in a)Rl(a[te],r,n,te);if(l){const te=X(l)?l.call(n):l;Reflect.ownKeys(te).forEach(ne=>{ph(ne,te[ne])})}u&&Al(u,t,"c");function ee(te,ne){Y(ne)?ne.forEach(Nt=>te(Nt.bind(n))):ne&&te(ne.bind(n))}if(ee(Th,f),ee($n,d),ee(zh,h),ee(Ch,m),ee(wh,p),ee(Sh,b),ee(Ph,P),ee(Eh,E),ee(Oh,A),ee(Cl,k),ee(qn,y),ee($h,_),Y(S))if(S.length){const te=t.exposed||(t.exposed={});S.forEach(ne=>{Object.defineProperty(te,ne,{get:()=>n[ne],set:Nt=>n[ne]=Nt,enumerable:!0})})}else t.exposed||(t.exposed={});w&&t.render===Ut&&(t.render=w),N!=null&&(t.inheritAttrs=N),T&&(t.components=T),B&&(t.directives=B),_&&kl(t)}function Fh(t,e,n=Ut){Y(t)&&(t=fs(t));for(const r in t){const i=t[r];let o;_e(i)?"default"in i?o=dn(i.from||r,i.default,!0):o=dn(i.from||r):o=dn(i),Ve(o)?Object.defineProperty(e,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):e[r]=o}}function Al(t,e,n){jt(Y(t)?t.map(r=>r.bind(e.proxy)):t.bind(e.proxy),e,n)}function Rl(t,e,n,r){let i=r.includes(".")?gl(n,r):()=>n[r];if($e(t)){const o=e[t];X(o)&&hn(i,o)}else if(X(t))hn(i,t.bind(n));else if(_e(t))if(Y(t))t.forEach(o=>Rl(o,e,n,r));else{const o=X(t.handler)?t.handler.bind(n):e[t.handler];X(o)&&hn(i,o,t)}}function Dl(t){const e=t.type,{mixins:n,extends:r}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!n&&!r?l=e:(l={},i.length&&i.forEach(c=>to(l,c,s,!0)),to(l,e,s)),_e(e)&&o.set(e,l),l}function to(t,e,n,r=!1){const{mixins:i,extends:o}=e;o&&to(t,o,n,!0),i&&i.forEach(s=>to(t,s,n,!0));for(const s in e)if(!(r&&s==="expose")){const a=Nh[s]||n&&n[s];t[s]=a?a(t[s],e[s]):e[s]}return t}const Nh={data:Fl,props:Nl,emits:Nl,methods:ti,computed:ti,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:ti,directives:ti,watch:Lh,provide:Fl,inject:Mh};function Fl(t,e){return e?t?function(){return je(X(t)?t.call(this,this):t,X(e)?e.call(this,this):e)}:e:t}function Mh(t,e){return ti(fs(t),fs(e))}function fs(t){if(Y(t)){const e={};for(let n=0;n<t.length;n++)e[t[n]]=t[n];return e}return t}function rt(t,e){return t?[...new Set([].concat(t,e))]:e}function ti(t,e){return t?je(Object.create(null),t,e):e}function Nl(t,e){return t?Y(t)&&Y(e)?[...new Set([...t,...e])]:je(Object.create(null),Il(t),Il(e??{})):e}function Lh(t,e){if(!t)return e;if(!e)return t;const n=je(Object.create(null),t);for(const r in e)n[r]=rt(t[r],e[r]);return n}function Ml(){return{app:null,config:{isNativeTag:Ia,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 Zh=0;function jh(t,e){return function(r,i=null){X(r)||(r=je({},r)),i!=null&&!_e(i)&&(i=null);const o=Ml(),s=new WeakSet,a=[];let l=!1;const c=o.app={_uid:Zh++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:yp,get config(){return o.config},set config(u){},use(u,...f){return s.has(u)||(u&&X(u.install)?(s.add(u),u.install(c,...f)):X(u)&&(s.add(u),u(c,...f))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,f){return f?(o.components[u]=f,c):o.components[u]},directive(u,f){return f?(o.directives[u]=f,c):o.directives[u]},mount(u,f,d){if(!l){const h=c._ceVNode||Ne(r,i);return h.appContext=o,d===!0?d="svg":d===!1&&(d=void 0),t(h,u,d),l=!0,c._container=u,u.__vue_app__=c,lo(h.component)}},onUnmount(u){a.push(u)},unmount(){l&&(jt(a,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(u,f){return o.provides[u]=f,c},runWithContext(u){const f=xr;xr=c;try{return u()}finally{xr=f}}};return c}}let xr=null;const Bh=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Ct(e)}Modifiers`]||t[`${Wn(e)}Modifiers`];function Uh(t,e,...n){if(t.isUnmounted)return;const r=t.vnode.props||ue;let i=n;const o=e.startsWith("update:"),s=o&&Bh(r,e.slice(7));s&&(s.trim&&(i=n.map(u=>$e(u)?u.trim():u)),s.number&&(i=n.map(Vo)));let a,l=r[a=Uo(e)]||r[a=Uo(Ct(e))];!l&&o&&(l=r[a=Uo(Wn(e))]),l&&jt(l,t,6,i);const c=r[a+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,jt(c,t,6,i)}}const Vh=new WeakMap;function Ll(t,e,n=!1){const r=n?Vh:e.emitsCache,i=r.get(t);if(i!==void 0)return i;const o=t.emits;let s={},a=!1;if(!X(t)){const l=c=>{const u=Ll(c,e,!0);u&&(a=!0,je(s,u))};!n&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(_e(t)&&r.set(t,null),null):(Y(o)?o.forEach(l=>s[l]=null):je(s,o),_e(t)&&r.set(t,s),s)}function no(t,e){return!t||!Ii(e)?!1:(e=e.slice(2).replace(/Once$/,""),ce(t,e[0].toLowerCase()+e.slice(1))||ce(t,Wn(e))||ce(t,e))}function L1(){}function Zl(t){const{type:e,vnode:n,proxy:r,withProxy:i,propsOptions:[o],slots:s,attrs:a,emit:l,render:c,renderCache:u,props:f,data:d,setupState:h,ctx:m,inheritAttrs:p}=t,b=Ki(t);let x,k;try{if(n.shapeFlag&4){const y=i||r,w=y;x=Jt(c.call(w,y,u,f,h,d,m)),k=a}else{const y=e;x=Jt(y.length>1?y(f,{attrs:a,slots:s,emit:l}):y(f,null)),k=e.props?a:Wh(a)}}catch(y){ni.length=0,Ji(y,t,1),x=Ne(Ke)}let z=x;if(k&&p!==!1){const y=Object.keys(k),{shapeFlag:w}=z;y.length&&w&7&&(o&&y.some(Zo)&&(k=Hh(k,o)),z=On(z,k,!1,!0))}return n.dirs&&(z=On(z,null,!1,!0),z.dirs=z.dirs?z.dirs.concat(n.dirs):n.dirs),n.transition&&Xr(z,n.transition),x=z,Ki(b),x}const Wh=t=>{let e;for(const n in t)(n==="class"||n==="style"||Ii(n))&&((e||(e={}))[n]=t[n]);return e},Hh=(t,e)=>{const n={};for(const r in t)(!Zo(r)||!(r.slice(9)in e))&&(n[r]=t[r]);return n};function Jh(t,e,n){const{props:r,children:i,component:o}=t,{props:s,children:a,patchFlag:l}=e,c=o.emitsOptions;if(e.dirs||e.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?jl(r,s,c):!!s;if(l&8){const u=e.dynamicProps;for(let f=0;f<u.length;f++){const d=u[f];if(s[d]!==r[d]&&!no(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?jl(r,s,c):!0:!!s;return!1}function jl(t,e,n){const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(e[o]!==t[o]&&!no(n,o))return!0}return!1}function Gh({vnode:t,parent:e},n){for(;e;){const r=e.subTree;if(r.suspense&&r.suspense.activeBranch===t&&(r.el=t.el),r===t)(t=e.vnode).el=n,e=e.parent;else break}}const Bl={},Ul=()=>Object.create(Bl),Vl=t=>Object.getPrototypeOf(t)===Bl;function Kh(t,e,n,r=!1){const i={},o=Ul();t.propsDefaults=Object.create(null),Wl(t,e,i,o);for(const s in t.propsOptions[0])s in i||(i[s]=void 0);n?t.props=r?i:Yd(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function qh(t,e,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=t,a=ae(i),[l]=t.propsOptions;let c=!1;if((r||s>0)&&!(s&16)){if(s&8){const u=t.vnode.dynamicProps;for(let f=0;f<u.length;f++){let d=u[f];if(no(t.emitsOptions,d))continue;const h=e[d];if(l)if(ce(o,d))h!==o[d]&&(o[d]=h,c=!0);else{const m=Ct(d);i[m]=ds(l,a,m,h,t,!1)}else h!==o[d]&&(o[d]=h,c=!0)}}}else{Wl(t,e,i,o)&&(c=!0);let u;for(const f in a)(!e||!ce(e,f)&&((u=Wn(f))===f||!ce(e,u)))&&(l?n&&(n[f]!==void 0||n[u]!==void 0)&&(i[f]=ds(l,a,f,void 0,t,!0)):delete i[f]);if(o!==a)for(const f in o)(!e||!ce(e,f))&&(delete o[f],c=!0)}c&&ln(t.attrs,"set","")}function Wl(t,e,n,r){const[i,o]=t.propsOptions;let s=!1,a;if(e)for(let l in e){if(Vr(l))continue;const c=e[l];let u;i&&ce(i,u=Ct(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:no(t.emitsOptions,l)||(!(l in r)||c!==r[l])&&(r[l]=c,s=!0)}if(o){const l=ae(n),c=a||ue;for(let u=0;u<o.length;u++){const f=o[u];n[f]=ds(i,l,f,c[f],t,!ce(c,f))}}return s}function ds(t,e,n,r,i,o){const s=t[n];if(s!=null){const a=ce(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&&X(l)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const u=oi(i);r=c[n]=l.call(null,e),u()}}else r=l;i.ce&&i.ce._setProp(n,r)}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Wn(n))&&(r=!0))}return r}const Yh=new WeakMap;function Hl(t,e,n=!1){const r=n?Yh:e.propsCache,i=r.get(t);if(i)return i;const o=t.props,s={},a=[];let l=!1;if(!X(t)){const u=f=>{l=!0;const[d,h]=Hl(f,e,!0);je(s,d),h&&a.push(...h)};!n&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}if(!o&&!l)return _e(t)&&r.set(t,dr),dr;if(Y(o))for(let u=0;u<o.length;u++){const f=Ct(o[u]);Jl(f)&&(s[f]=ue)}else if(o)for(const u in o){const f=Ct(u);if(Jl(f)){const d=o[u],h=s[f]=Y(d)||X(d)?{type:d}:je({},d),m=h.type;let p=!1,b=!0;if(Y(m))for(let x=0;x<m.length;++x){const k=m[x],z=X(k)&&k.name;if(z==="Boolean"){p=!0;break}else z==="String"&&(b=!1)}else p=X(m)&&m.name==="Boolean";h[0]=p,h[1]=b,(p||ce(h,"default"))&&a.push(f)}}const c=[s,a];return _e(t)&&r.set(t,c),c}function Jl(t){return t[0]!=="$"&&!Vr(t)}const hs=t=>t==="_"||t==="_ctx"||t==="$stable",ps=t=>Y(t)?t.map(Jt):[Jt(t)],Xh=(t,e,n)=>{if(e._n)return e;const r=Ot((...i)=>ps(e(...i)),n);return r._c=!1,r},Gl=(t,e,n)=>{const r=t._ctx;for(const i in t){if(hs(i))continue;const o=t[i];if(X(o))e[i]=Xh(i,o,r);else if(o!=null){const s=ps(o);e[i]=()=>s}}},Kl=(t,e)=>{const n=ps(e);t.slots.default=()=>n},ql=(t,e,n)=>{for(const r in e)(n||!hs(r))&&(t[r]=e[r])},Qh=(t,e,n)=>{const r=t.slots=Ul();if(t.vnode.shapeFlag&32){const i=e._;i?(ql(r,e,n),n&&Na(r,"_",i,!0)):Gl(e,r)}else e&&Kl(t,e)},ep=(t,e,n)=>{const{vnode:r,slots:i}=t;let o=!0,s=ue;if(r.shapeFlag&32){const a=e._;a?n&&a===1?o=!1:ql(i,e,n):(o=!e.$stable,Gl(e,i)),s=e}else e&&(Kl(t,e),s={default:1});if(o)for(const a in i)!hs(a)&&s[a]==null&&delete i[a]},gt=op;function tp(t){return np(t)}function np(t,e){const n=Ni();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:d,setScopeId:h=Ut,insertStaticContent:m}=t,p=(g,v,$,M=null,R=null,D=null,j=void 0,Z=null,L=!!v.dynamicChildren)=>{if(g===v)return;g&&!Xn(g,v)&&(M=Lo(g),Ue(g,R,D,!0),g=null),v.patchFlag===-2&&(L=!1,v.dynamicChildren=null);const{type:F,ref:q,shapeFlag:V}=v;switch(F){case ro:b(g,v,$,M);break;case Ke:x(g,v,$,M);break;case io:g==null&&k(v,$,M,j);break;case Fe:T(g,v,$,M,R,D,j,Z,L);break;default:V&1?w(g,v,$,M,R,D,j,Z,L):V&6?B(g,v,$,M,R,D,j,Z,L):(V&64||V&128)&&F.process(g,v,$,M,R,D,j,Z,L,Ei)}q!=null&&R?Qr(q,g&&g.ref,D,v||g,!v):q==null&&g&&g.ref!=null&&Qr(g.ref,null,D,g,!0)},b=(g,v,$,M)=>{if(g==null)r(v.el=a(v.children),$,M);else{const R=v.el=g.el;v.children!==g.children&&c(R,v.children)}},x=(g,v,$,M)=>{g==null?r(v.el=l(v.children||""),$,M):v.el=g.el},k=(g,v,$,M)=>{[g.el,g.anchor]=m(g.children,v,$,M,g.el,g.anchor)},z=({el:g,anchor:v},$,M)=>{let R;for(;g&&g!==v;)R=d(g),r(g,$,M),g=R;r(v,$,M)},y=({el:g,anchor:v})=>{let $;for(;g&&g!==v;)$=d(g),i(g),g=$;i(v)},w=(g,v,$,M,R,D,j,Z,L)=>{if(v.type==="svg"?j="svg":v.type==="math"&&(j="mathml"),g==null)E(v,$,M,R,D,j,Z,L);else{const F=g.el&&g.el._isVueCE?g.el:null;try{F&&F._beginPatch(),_(g,v,R,D,j,Z,L)}finally{F&&F._endPatch()}}},E=(g,v,$,M,R,D,j,Z)=>{let L,F;const{props:q,shapeFlag:V,transition:G,dirs:Q}=g;if(L=g.el=s(g.type,D,q&&q.is,q),V&8?u(L,g.children):V&16&&P(g.children,L,null,M,R,ms(g,D),j,Z),Q&&Kn(g,null,M,"created"),A(L,g,g.scopeId,j,M),q){for(const we in q)we!=="value"&&!Vr(we)&&o(L,we,null,q[we],D,M);"value"in q&&o(L,"value",null,q.value,D),(F=q.onVnodeBeforeMount)&&Gt(F,M,g)}Q&&Kn(g,null,M,"beforeMount");const oe=rp(R,G);oe&&G.beforeEnter(L),r(L,v,$),((F=q&&q.onVnodeMounted)||oe||Q)&>(()=>{F&&Gt(F,M,g),oe&&G.enter(L),Q&&Kn(g,null,M,"mounted")},R)},A=(g,v,$,M,R)=>{if($&&h(g,$),M)for(let D=0;D<M.length;D++)h(g,M[D]);if(R){let D=R.subTree;if(v===D||tu(D.type)&&(D.ssContent===v||D.ssFallback===v)){const j=R.vnode;A(g,j,j.scopeId,j.slotScopeIds,R.parent)}}},P=(g,v,$,M,R,D,j,Z,L=0)=>{for(let F=L;F<g.length;F++){const q=g[F]=Z?En(g[F]):Jt(g[F]);p(null,q,v,$,M,R,D,j,Z)}},_=(g,v,$,M,R,D,j)=>{const Z=v.el=g.el;let{patchFlag:L,dynamicChildren:F,dirs:q}=v;L|=g.patchFlag&16;const V=g.props||ue,G=v.props||ue;let Q;if($&&Yn($,!1),(Q=G.onVnodeBeforeUpdate)&&Gt(Q,$,v,g),q&&Kn(v,g,$,"beforeUpdate"),$&&Yn($,!0),(V.innerHTML&&G.innerHTML==null||V.textContent&&G.textContent==null)&&u(Z,""),F?S(g.dynamicChildren,F,Z,$,M,ms(v,R),D):j||ne(g,v,Z,null,$,M,ms(v,R),D,!1),L>0){if(L&16)N(Z,V,G,$,R);else if(L&2&&V.class!==G.class&&o(Z,"class",null,G.class,R),L&4&&o(Z,"style",V.style,G.style,R),L&8){const oe=v.dynamicProps;for(let we=0;we<oe.length;we++){const de=oe[we],pt=V[de],mt=G[de];(mt!==pt||de==="value")&&o(Z,de,pt,mt,R,$)}}L&1&&g.children!==v.children&&u(Z,v.children)}else!j&&F==null&&N(Z,V,G,$,R);((Q=G.onVnodeUpdated)||q)&>(()=>{Q&&Gt(Q,$,v,g),q&&Kn(v,g,$,"updated")},M)},S=(g,v,$,M,R,D,j)=>{for(let Z=0;Z<v.length;Z++){const L=g[Z],F=v[Z],q=L.el&&(L.type===Fe||!Xn(L,F)||L.shapeFlag&198)?f(L.el):$;p(L,F,q,null,M,R,D,j,!0)}},N=(g,v,$,M,R)=>{if(v!==$){if(v!==ue)for(const D in v)!Vr(D)&&!(D in $)&&o(g,D,v[D],null,R,M);for(const D in $){if(Vr(D))continue;const j=$[D],Z=v[D];j!==Z&&D!=="value"&&o(g,D,Z,j,R,M)}"value"in $&&o(g,"value",v.value,$.value,R)}},T=(g,v,$,M,R,D,j,Z,L)=>{const F=v.el=g?g.el:a(""),q=v.anchor=g?g.anchor:a("");let{patchFlag:V,dynamicChildren:G,slotScopeIds:Q}=v;Q&&(Z=Z?Z.concat(Q):Q),g==null?(r(F,$,M),r(q,$,M),P(v.children||[],$,q,R,D,j,Z,L)):V>0&&V&64&&G&&g.dynamicChildren&&g.dynamicChildren.length===G.length?(S(g.dynamicChildren,G,$,R,D,j,Z),(v.key!=null||R&&v===R.subTree)&&Yl(g,v,!0)):ne(g,v,$,q,R,D,j,Z,L)},B=(g,v,$,M,R,D,j,Z,L)=>{v.slotScopeIds=Z,g==null?v.shapeFlag&512?R.ctx.activate(v,$,M,j,L):H(v,$,M,R,D,j,L):K(g,v,L)},H=(g,v,$,M,R,D,j)=>{const Z=g.component=dp(g,M,R);if(Xi(g)&&(Z.ctx.renderer=Ei),hp(Z,!1,j),Z.asyncDep){if(R&&R.registerDep(Z,ee,j),!g.el){const L=Z.subTree=Ne(Ke);x(null,L,v,$),g.placeholder=L.el}}else ee(Z,g,v,$,R,D,j)},K=(g,v,$)=>{const M=v.component=g.component;if(Jh(g,v,$))if(M.asyncDep&&!M.asyncResolved){te(M,v,$);return}else M.next=v,M.update();else v.el=g.el,M.vnode=v},ee=(g,v,$,M,R,D,j)=>{const Z=()=>{if(g.isMounted){let{next:V,bu:G,u:Q,parent:oe,vnode:we}=g;{const on=Xl(g);if(on){V&&(V.el=we.el,te(g,V,j)),on.asyncDep.then(()=>{g.isUnmounted||Z()});return}}let de=V,pt;Yn(g,!1),V?(V.el=we.el,te(g,V,j)):V=we,G&&Fi(G),(pt=V.props&&V.props.onVnodeBeforeUpdate)&&Gt(pt,oe,V,we),Yn(g,!0);const mt=Zl(g),rn=g.subTree;g.subTree=mt,p(rn,mt,f(rn.el),Lo(rn),g,R,D),V.el=mt.el,de===null&&Gh(g,mt.el),Q&>(Q,R),(pt=V.props&&V.props.onVnodeUpdated)&>(()=>Gt(pt,oe,V,we),R)}else{let V;const{el:G,props:Q}=v,{bm:oe,m:we,parent:de,root:pt,type:mt}=g,rn=br(v);Yn(g,!1),oe&&Fi(oe),!rn&&(V=Q&&Q.onVnodeBeforeMount)&&Gt(V,de,v),Yn(g,!0);{pt.ce&&pt.ce._def.shadowRoot!==!1&&pt.ce._injectChildStyle(mt);const on=g.subTree=Zl(g);p(null,on,$,M,g,R,D),v.el=on.el}if(we&>(we,R),!rn&&(V=Q&&Q.onVnodeMounted)){const on=v;gt(()=>Gt(V,de,on),R)}(v.shapeFlag&256||de&&br(de.vnode)&&de.vnode.shapeFlag&256)&&g.a&>(g.a,R),g.isMounted=!0,v=$=M=null}};g.scope.on();const L=g.effect=new Ba(Z);g.scope.off();const F=g.update=L.run.bind(L),q=g.job=L.runIfDirty.bind(L);q.i=g,q.id=g.uid,L.scheduler=()=>os(q),Yn(g,!0),F()},te=(g,v,$)=>{v.component=g;const M=g.vnode.props;g.vnode=v,g.next=null,qh(g,v.props,M,$),ep(g,v.children,$),Vt(),fl(g),Wt()},ne=(g,v,$,M,R,D,j,Z,L=!1)=>{const F=g&&g.children,q=g?g.shapeFlag:0,V=v.children,{patchFlag:G,shapeFlag:Q}=v;if(G>0){if(G&128){nn(F,V,$,M,R,D,j,Z,L);return}else if(G&256){Nt(F,V,$,M,R,D,j,Z,L);return}}Q&8?(q&16&&Oi(F,R,D),V!==F&&u($,V)):q&16?Q&16?nn(F,V,$,M,R,D,j,Z,L):Oi(F,R,D,!0):(q&8&&u($,""),Q&16&&P(V,$,M,R,D,j,Z,L))},Nt=(g,v,$,M,R,D,j,Z,L)=>{g=g||dr,v=v||dr;const F=g.length,q=v.length,V=Math.min(F,q);let G;for(G=0;G<V;G++){const Q=v[G]=L?En(v[G]):Jt(v[G]);p(g[G],Q,$,null,R,D,j,Z,L)}F>q?Oi(g,R,D,!0,!1,V):P(v,$,M,R,D,j,Z,L,V)},nn=(g,v,$,M,R,D,j,Z,L)=>{let F=0;const q=v.length;let V=g.length-1,G=q-1;for(;F<=V&&F<=G;){const Q=g[F],oe=v[F]=L?En(v[F]):Jt(v[F]);if(Xn(Q,oe))p(Q,oe,$,null,R,D,j,Z,L);else break;F++}for(;F<=V&&F<=G;){const Q=g[V],oe=v[G]=L?En(v[G]):Jt(v[G]);if(Xn(Q,oe))p(Q,oe,$,null,R,D,j,Z,L);else break;V--,G--}if(F>V){if(F<=G){const Q=G+1,oe=Q<q?v[Q].el:M;for(;F<=G;)p(null,v[F]=L?En(v[F]):Jt(v[F]),$,oe,R,D,j,Z,L),F++}}else if(F>G)for(;F<=V;)Ue(g[F],R,D,!0),F++;else{const Q=F,oe=F,we=new Map;for(F=oe;F<=G;F++){const zt=v[F]=L?En(v[F]):Jt(v[F]);zt.key!=null&&we.set(zt.key,F)}let de,pt=0;const mt=G-oe+1;let rn=!1,on=0;const Pi=new Array(mt);for(F=0;F<mt;F++)Pi[F]=0;for(F=Q;F<=V;F++){const zt=g[F];if(pt>=mt){Ue(zt,R,D,!0);continue}let sn;if(zt.key!=null)sn=we.get(zt.key);else for(de=oe;de<=G;de++)if(Pi[de-oe]===0&&Xn(zt,v[de])){sn=de;break}sn===void 0?Ue(zt,R,D,!0):(Pi[sn-oe]=F+1,sn>=on?on=sn:rn=!0,p(zt,v[sn],$,null,R,D,j,Z,L),pt++)}const vd=rn?ip(Pi):dr;for(de=vd.length-1,F=mt-1;F>=0;F--){const zt=oe+F,sn=v[zt],bd=v[zt+1],yd=zt+1<q?bd.el||eu(bd):M;Pi[F]===0?p(null,sn,$,yd,R,D,j,Z,L):rn&&(de<0||F!==vd[de]?Tt(sn,$,yd,2):de--)}}},Tt=(g,v,$,M,R=null)=>{const{el:D,type:j,transition:Z,children:L,shapeFlag:F}=g;if(F&6){Tt(g.component.subTree,v,$,M);return}if(F&128){g.suspense.move(v,$,M);return}if(F&64){j.move(g,v,$,Ei);return}if(j===Fe){r(D,v,$);for(let V=0;V<L.length;V++)Tt(L[V],v,$,M);r(g.anchor,v,$);return}if(j===io){z(g,v,$);return}if(M!==2&&F&1&&Z)if(M===0)Z.beforeEnter(D),r(D,v,$),gt(()=>Z.enter(D),R);else{const{leave:V,delayLeave:G,afterLeave:Q}=Z,oe=()=>{g.ctx.isUnmounted?i(D):r(D,v,$)},we=()=>{D._isLeaving&&D[pn](!0),V(D,()=>{oe(),Q&&Q()})};G?G(D,oe,we):we()}else r(D,v,$)},Ue=(g,v,$,M=!1,R=!1)=>{const{type:D,props:j,ref:Z,children:L,dynamicChildren:F,shapeFlag:q,patchFlag:V,dirs:G,cacheIndex:Q}=g;if(V===-2&&(R=!1),Z!=null&&(Vt(),Qr(Z,null,$,g,!0),Wt()),Q!=null&&(v.renderCache[Q]=void 0),q&256){v.ctx.deactivate(g);return}const oe=q&1&&G,we=!br(g);let de;if(we&&(de=j&&j.onVnodeBeforeUnmount)&&Gt(de,v,g),q&6)kn(g.component,$,M);else{if(q&128){g.suspense.unmount($,M);return}oe&&Kn(g,null,v,"beforeUnmount"),q&64?g.type.remove(g,v,$,Ei,M):F&&!F.hasOnce&&(D!==Fe||V>0&&V&64)?Oi(F,v,$,!1,!0):(D===Fe&&V&384||!R&&q&16)&&Oi(L,v,$),M&&$i(g)}(we&&(de=j&&j.onVnodeUnmounted)||oe)&>(()=>{de&&Gt(de,v,g),oe&&Kn(g,null,v,"unmounted")},$)},$i=g=>{const{type:v,el:$,anchor:M,transition:R}=g;if(v===Fe){Bt($,M);return}if(v===io){y(g);return}const D=()=>{i($),R&&!R.persisted&&R.afterLeave&&R.afterLeave()};if(g.shapeFlag&1&&R&&!R.persisted){const{leave:j,delayLeave:Z}=R,L=()=>j($,D);Z?Z(g.el,D,L):L()}else D()},Bt=(g,v)=>{let $;for(;g!==v;)$=d(g),i(g),g=$;i(v)},kn=(g,v,$)=>{const{bum:M,scope:R,job:D,subTree:j,um:Z,m:L,a:F}=g;Ql(L),Ql(F),M&&Fi(M),R.stop(),D&&(D.flags|=8,Ue(j,g,v,$)),Z&>(Z,v),gt(()=>{g.isUnmounted=!0},v)},Oi=(g,v,$,M=!1,R=!1,D=0)=>{for(let j=D;j<g.length;j++)Ue(g[j],v,$,M,R)},Lo=g=>{if(g.shapeFlag&6)return Lo(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const v=d(g.anchor||g.el),$=v&&v[vh];return $?d($):v};let Pa=!1;const _d=(g,v,$)=>{let M;g==null?v._vnode&&(Ue(v._vnode,null,null,!0),M=v._vnode.component):p(v._vnode||null,g,v,null,null,null,$),v._vnode=g,Pa||(Pa=!0,fl(M),dl(),Pa=!1)},Ei={p,um:Ue,m:Tt,r:$i,mt:H,mc:P,pc:ne,pbc:S,n:Lo,o:t};return{render:_d,hydrate:void 0,createApp:jh(_d)}}function ms({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 Yn({effect:t,job:e},n){n?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function rp(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Yl(t,e,n=!1){const r=t.children,i=e.children;if(Y(r)&&Y(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=En(i[o]),a.el=s.el),!n&&a.patchFlag!==-2&&Yl(s,a)),a.type===ro&&(a.patchFlag!==-1?a.el=s.el:a.__elIndex=o+(t.type===Fe?1:0)),a.type===Ke&&!a.el&&(a.el=s.el)}}function ip(t){const e=t.slice(),n=[0];let r,i,o,s,a;const l=t.length;for(r=0;r<l;r++){const c=t[r];if(c!==0){if(i=n[n.length-1],t[i]<c){e[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,t[n[a]]<c?o=a+1:s=a;c<t[n[o]]&&(o>0&&(e[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=e[s];return n}function Xl(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Xl(e)}function Ql(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function eu(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?eu(e.subTree):null}const tu=t=>t.__isSuspense;function op(t,e){e&&e.pendingBranch?Y(t)?e.effects.push(...t):e.effects.push(t):dh(t)}const Fe=Symbol.for("v-fgt"),ro=Symbol.for("v-txt"),Ke=Symbol.for("v-cmt"),io=Symbol.for("v-stc"),ni=[];let _t=null;function U(t=!1){ni.push(_t=t?null:[])}function sp(){ni.pop(),_t=ni[ni.length-1]||null}let ri=1;function oo(t,e=!1){ri+=t,t<0&&_t&&e&&(_t.hasOnce=!0)}function nu(t){return t.dynamicChildren=ri>0?_t||dr:null,sp(),ri>0&&_t&&_t.push(t),t}function J(t,e,n,r,i,o){return nu(O(t,e,n,r,i,o,!0))}function qe(t,e,n,r,i){return nu(Ne(t,e,n,r,i,!0))}function ii(t){return t?t.__v_isVNode===!0:!1}function Xn(t,e){return t.type===e.type&&t.key===e.key}const ru=({key:t})=>t??null,so=({ref:t,ref_key:e,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?$e(t)||Ve(t)||X(t)?{i:We,r:t,k:e,f:!!n}:t:null);function O(t,e=null,n=null,r=0,i=null,o=t===Fe?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&ru(e),ref:e&&so(e),scopeId:pl,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:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:We};return a?(gs(l,n),o&128&&t.normalize(l)):n&&(l.shapeFlag|=$e(n)?8:16),ri>0&&!s&&_t&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&_t.push(l),l}const Ne=ap;function ap(t,e=null,n=null,r=0,i=null,o=!1){if((!t||t===$l)&&(t=Ke),ii(t)){const a=On(t,e,!0);return n&&gs(a,n),ri>0&&!o&&_t&&(a.shapeFlag&6?_t[_t.indexOf(t)]=a:_t.push(a)),a.patchFlag=-2,a}if(bp(t)&&(t=t.__vccOpts),e){e=lp(e);let{class:a,style:l}=e;a&&!$e(a)&&(e.class=se(a)),_e(l)&&(rs(l)&&!Y(l)&&(l=je({},l)),e.style=Oe(l))}const s=$e(t)?1:tu(t)?128:_l(t)?64:_e(t)?4:X(t)?2:0;return O(t,e,n,r,i,s,o,!0)}function lp(t){return t?rs(t)||Vl(t)?je({},t):t:null}function On(t,e,n=!1,r=!1){const{props:i,ref:o,patchFlag:s,children:a,transition:l}=t,c=e?_s(i||{},e):i,u={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&ru(c),ref:e&&e.ref?n&&o?Y(o)?o.concat(so(e)):[o,so(e)]:so(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==Fe?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&On(t.ssContent),ssFallback:t.ssFallback&&On(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&r&&Xr(u,l.clone(u)),u}function iu(t=" ",e=0){return Ne(ro,null,t,e)}function up(t,e){const n=Ne(io,null,t);return n.staticCount=e,n}function Se(t="",e=!1){return e?(U(),qe(Ke,null,t)):Ne(Ke,null,t)}function Jt(t){return t==null||typeof t=="boolean"?Ne(Ke):Y(t)?Ne(Fe,null,t.slice()):ii(t)?En(t):Ne(ro,null,String(t))}function En(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:On(t)}function gs(t,e){let n=0;const{shapeFlag:r}=t;if(e==null)e=null;else if(Y(e))n=16;else if(typeof e=="object")if(r&65){const i=e.default;i&&(i._c&&(i._d=!1),gs(t,i()),i._c&&(i._d=!0));return}else{n=32;const i=e._;!i&&!Vl(e)?e._ctx=We:i===3&&We&&(We.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else X(e)?(e={default:e,_ctx:We},n=32):(e=String(e),r&64?(n=16,e=[iu(e)]):n=8);t.children=e,t.shapeFlag|=n}function _s(...t){const e={};for(let n=0;n<t.length;n++){const r=t[n];for(const i in r)if(i==="class")e.class!==r.class&&(e.class=se([e.class,r.class]));else if(i==="style")e.style=Oe([e.style,r.style]);else if(Ii(i)){const o=e[i],s=r[i];s&&o!==s&&!(Y(o)&&o.includes(s))&&(e[i]=o?[].concat(o,s):s)}else i!==""&&(e[i]=r[i])}return e}function Gt(t,e,n,r=null){jt(t,e,7,[n,r])}const cp=Ml();let fp=0;function dp(t,e,n){const r=t.type,i=(e?e.appContext:t.appContext)||cp,o={uid:fp++,vnode:t,type:r,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Pd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Hl(r,i),emitsOptions:Ll(r,i),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:r.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,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,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=Uh.bind(null,o),t.ce&&t.ce(o),o}let Ye=null;const ou=()=>Ye||We;let ao,vs;{const t=Ni(),e=(n,r)=>{let i;return(i=t[n])||(i=t[n]=[]),i.push(r),o=>{i.length>1?i.forEach(s=>s(o)):i[0](o)}};ao=e("__VUE_INSTANCE_SETTERS__",n=>Ye=n),vs=e("__VUE_SSR_SETTERS__",n=>si=n)}const oi=t=>{const e=Ye;return ao(t),t.scope.on(),()=>{t.scope.off(),ao(e)}},su=()=>{Ye&&Ye.scope.off(),ao(null)};function au(t){return t.vnode.shapeFlag&4}let si=!1;function hp(t,e=!1,n=!1){e&&vs(e);const{props:r,children:i}=t.vnode,o=au(t);Kh(t,r,o,e),Qh(t,i,n||e);const s=o?pp(t,e):void 0;return e&&vs(!1),s}function pp(t,e){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Rh);const{setup:r}=n;if(r){Vt();const i=t.setupContext=r.length>1?gp(t):null,o=oi(t),s=gr(r,t,0,[t.props,i]),a=Ra(s);if(Wt(),o(),(a||t.sp)&&!br(t)&&kl(t),a){if(s.then(su,su),e)return s.then(l=>{lu(t,l)}).catch(l=>{Ji(l,t,0)});t.asyncDep=s}else lu(t,s)}else uu(t)}function lu(t,e,n){X(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:_e(e)&&(t.setupState=sl(e)),uu(t)}function uu(t,e,n){const r=t.type;t.render||(t.render=r.render||Ut);{const i=oi(t);Vt();try{Dh(t)}finally{Wt(),i()}}}const mp={get(t,e){return Ge(t,"get",""),t[e]}};function gp(t){const e=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,mp),slots:t.slots,emit:t.emit,expose:e}}function lo(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(sl(Xd(t.exposed)),{get(e,n){if(n in e)return e[n];if(n in ei)return ei[n](t)},has(e,n){return n in e||n in ei}})):t.proxy}const _p=/(?:^|[-_])\w/g,vp=t=>t.replace(_p,e=>e.toUpperCase()).replace(/[-_]/g,"");function cu(t,e=!0){return X(t)?t.displayName||t.name:t.name||e&&t.__name}function fu(t,e,n=!1){let r=cu(e);if(!r&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&t){const i=o=>{for(const s in o)if(o[s]===e)return s};r=i(t.components)||t.parent&&i(t.parent.type.components)||i(t.appContext.components)}return r?vp(r):n?"App":"Anonymous"}function bp(t){return X(t)&&"__vccOpts"in t}const le=(t,e)=>rh(t,e,si);function ye(t,e,n){try{oo(-1);const r=arguments.length;return r===2?_e(e)&&!Y(e)?ii(e)?Ne(t,null,[e]):Ne(t,e):Ne(t,null,e):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ii(n)&&(n=[n]),Ne(t,e,n))}finally{oo(1)}}const yp="3.5.26";/**
|
|
17
17
|
* @vue/runtime-dom v3.5.26
|
|
18
18
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
19
19
|
* @license MIT
|
|
20
|
-
**/let go;const au=typeof window<"u"&&window.trustedTypes;if(au)try{go=au.createPolicy("vue",{createHTML:t=>t})}catch{}const lu=go?t=>go.createHTML(t):t=>t,pp="http://www.w3.org/2000/svg",mp="http://www.w3.org/1998/Math/MathML",dn=typeof document<"u"?document:null,uu=dn&&dn.createElement("template"),gp={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?dn.createElementNS(pp,t):e==="mathml"?dn.createElementNS(mp,t):n?dn.createElement(t,{is:n}):dn.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>dn.createTextNode(t),createComment:t=>dn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>dn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,s){const o=n?n.previousSibling:e.lastChild;if(i&&(i===s||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{uu.innerHTML=lu(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=uu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[o?o.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},On="transition",si="animation",oi=Symbol("_vtc"),cu={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},_p=Re({},hl,cu),_o=(t=>(t.displayName="Transition",t.props=_p,t))((t,{slots:e})=>_e(ph,vp(t),e)),Yn=(t,e=[])=>{q(t)?t.forEach(n=>n(...e)):t&&t(...e)},fu=t=>t?q(t)?t.some(e=>e.length>1):t.length>1:!1;function vp(t){const e={};for(const T in t)T in cu||(e[T]=t[T]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:c=o,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,m=yp(i),p=m&&m[0],y=m&&m[1],{onBeforeEnter:x,onEnter:k,onEnterCancelled:z,onLeave:b,onLeaveCancelled:S,onBeforeAppear:E=x,onAppear:w=k,onAppearCancelled:A=z}=e,v=(T,I,K,ne)=>{T._enterCancelled=ne,Gn(T,I?u:a),Gn(T,I?c:o),K&&K()},F=(T,I)=>{T._isLeaving=!1,Gn(T,f),Gn(T,h),Gn(T,d),I&&I()},P=T=>(I,K)=>{const ne=T?w:k,Q=()=>v(I,T,K);Yn(ne,[I,Q]),du(()=>{Gn(I,T?l:s),hn(I,T?u:a),fu(ne)||hu(I,r,p,Q)})};return Re(e,{onBeforeEnter(T){Yn(x,[T]),hn(T,s),hn(T,o)},onBeforeAppear(T){Yn(E,[T]),hn(T,l),hn(T,c)},onEnter:P(!1),onAppear:P(!0),onLeave(T,I){T._isLeaving=!0;const K=()=>F(T,I);hn(T,f),T._enterCancelled?(hn(T,d),gu(T)):(gu(T),hn(T,d)),du(()=>{T._isLeaving&&(Gn(T,f),hn(T,h),fu(b)||hu(T,r,y,K))}),Yn(b,[T,K])},onEnterCancelled(T){v(T,!1,void 0,!0),Yn(z,[T])},onAppearCancelled(T){v(T,!0,void 0,!0),Yn(A,[T])},onLeaveCancelled(T){F(T),Yn(S,[T])}})}function yp(t){if(t==null)return null;if(me(t))return[vo(t.enter),vo(t.leave)];{const e=vo(t);return[e,e]}}function vo(t){return vd(t)}function hn(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[oi]||(t[oi]=new Set)).add(e)}function Gn(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[oi];n&&(n.delete(e),n.size||(t[oi]=void 0))}function du(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let bp=0;function hu(t,e,n,r){const i=t._endId=++bp,s=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(s,n);const{type:o,timeout:a,propCount:l}=xp(t,e);if(!o)return r();const c=o+"end";let u=0;const f=()=>{t.removeEventListener(c,d),s()},d=h=>{h.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),t.addEventListener(c,d)}function xp(t,e){const n=window.getComputedStyle(t),r=m=>(n[m]||"").split(", "),i=r(`${On}Delay`),s=r(`${On}Duration`),o=pu(i,s),a=r(`${si}Delay`),l=r(`${si}Duration`),c=pu(a,l);let u=null,f=0,d=0;e===On?o>0&&(u=On,f=o,d=s.length):e===si?c>0&&(u=si,f=c,d=l.length):(f=Math.max(o,c),u=f>0?o>c?On:si:null,d=u?u===On?s.length:l.length:0);const h=u===On&&/\b(?:transform|all)(?:,|$)/.test(r(`${On}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function pu(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>mu(n)+mu(t[r])))}function mu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function gu(t){return(t?t.ownerDocument:document).body.offsetHeight}function wp(t,e,n){const r=t[oi];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const _u=Symbol("_vod"),Sp=Symbol("_vsh"),kp=Symbol(""),Tp=/(?:^|;)\s*display\s*:/;function zp(t,e,n){const r=t.style,i=ke(n);let s=!1;if(n&&!i){if(e)if(ke(e))for(const o of e.split(";")){const a=o.slice(0,o.indexOf(":")).trim();n[a]==null&&ls(r,a,"")}else for(const o in e)n[o]==null&&ls(r,o,"");for(const o in n)o==="display"&&(s=!0),ls(r,o,n[o])}else if(i){if(e!==n){const o=r[kp];o&&(n+=";"+o),r.cssText=n,s=Tp.test(n)}}else e&&t.removeAttribute("style");_u in t&&(t[_u]=s?r.display:"",t[Sp]&&(r.display="none"))}const vu=/\s*!important$/;function ls(t,e,n){if(q(n))n.forEach(r=>ls(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Cp(t,e);vu.test(n)?t.setProperty(Un(r),n.replace(vu,""),"important"):t[r]=n}}const yu=["Webkit","Moz","ms"],yo={};function Cp(t,e){const n=yo[e];if(n)return n;let r=zt(e);if(r!=="filter"&&r in t)return yo[e]=r;r=Di(r);for(let i=0;i<yu.length;i++){const s=yu[i]+r;if(s in t)return yo[e]=s}return e}const bu="http://www.w3.org/1999/xlink";function xu(t,e,n,r,i,s=Sd(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(bu,e.slice(6,e.length)):t.setAttributeNS(bu,e,n):n==null||s&&!Da(n)?t.removeAttribute(e):t.setAttribute(e,s?"":rn(n)?String(n):n)}function wu(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?lu(n):n);return}const s=t.tagName;if(e==="value"&&s!=="PROGRESS"&&!s.includes("-")){const a=s==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let o=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=Da(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{t[e]=n}catch{}o&&t.removeAttribute(i||e)}function br(t,e,n,r){t.addEventListener(e,n,r)}function Op(t,e,n,r){t.removeEventListener(e,n,r)}const Su=Symbol("_vei");function $p(t,e,n,r,i=null){const s=t[Su]||(t[Su]={}),o=s[e];if(r&&o)o.value=r;else{const[a,l]=Ep(e);if(r){const c=s[e]=Ip(r,i);br(t,a,c,l)}else o&&(Op(t,a,o,l),s[e]=void 0)}}const ku=/(?:Once|Passive|Capture)$/;function Ep(t){let e;if(ku.test(t)){e={};let r;for(;r=t.match(ku);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Un(t.slice(2)),e]}let bo=0;const Pp=Promise.resolve(),Ap=()=>bo||(Pp.then(()=>bo=0),bo=Date.now());function Ip(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Zt(Dp(r,n.value),e,5,[r])};return n.value=t,n.attached=Ap(),n}function Dp(t,e){if(q(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Tu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Mp=(t,e,n,r,i,s)=>{const o=i==="svg";e==="class"?wp(t,r,o):e==="style"?zp(t,n,r):Pi(e)?Ns(e)||$p(t,e,n,r,s):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Np(t,e,r,o))?(wu(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&xu(t,e,r,o,s,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!ke(r))?wu(t,zt(e),r,s,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),xu(t,e,r,o))};function Np(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Tu(e)&&G(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 i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Tu(e)&&ke(n)?!1:e in t}const zu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return q(e)?n=>Mi(e,n):e};function Rp(t){t.target.composing=!0}function Cu(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const xo=Symbol("_assign");function Ou(t,e,n){return e&&(t=t.trim()),n&&(t=Ls(t)),t}const Fp={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[xo]=zu(i);const s=r||i.props&&i.props.type==="number";br(t,e?"change":"input",o=>{o.target.composing||t[xo](Ou(t.value,n,s))}),(n||s)&&br(t,"change",()=>{t.value=Ou(t.value,n,s)}),e||(br(t,"compositionstart",Rp),br(t,"compositionend",Cu),br(t,"change",Cu))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},o){if(t[xo]=zu(o),t.composing)return;const a=(s||t.type==="number")&&!/^0\d/.test(t.value)?Ls(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},Zp=["ctrl","shift","alt","meta"],Lp={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)=>Zp.some(n=>t[`${n}Key`]&&!e.includes(n))},$u=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...s)=>{for(let o=0;o<e.length;o++){const a=Lp[e[o]];if(a&&a(i,e))return}return t(i,...s)})},jp=Re({patchProp:Mp},gp);let Eu;function Up(){return Eu||(Eu=Kh(jp))}const Pu=(...t)=>{const e=Up().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Bp(r);if(!i)return;const s=e._component;!G(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=n(i,!1,Vp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},e};function Vp(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Bp(t){return ke(t)?document.querySelector(t):t}const Au={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function Wp(t){return t in Au?Au[t]:t}function C(t,e,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:o,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,l);const c=o.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const d=u[f];d in a||(a[d]=c[d].bind(a))}}const i=(n==null?void 0:n.Parent)??Object;class s extends i{}Object.defineProperty(s,"name",{value:t});function o(a){var l;const c=n!=null&&n.Parent?new s:this;r(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(o,"init",{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:a=>{var l,c;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(c=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:c.has(t)}}),Object.defineProperty(o,"name",{value:t}),o}class xr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Iu extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Du={};function $n(t){return Du}function Mu(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,i])=>e.indexOf(+r)===-1).map(([r,i])=>i)}function wo(t,e){return typeof e=="bigint"?e.toString():e}function us(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function So(t){return t==null}function ko(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Hp(t,e){const n=(t.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const s=n>i?n:i,o=Number.parseInt(t.toFixed(s).replace(".","")),a=Number.parseInt(e.toFixed(s).replace(".",""));return o%a/10**s}const Nu=Symbol("evaluating");function de(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==Nu)return r===void 0&&(r=Nu,r=n()),r},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function Xn(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Qn(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function Ru(t){return JSON.stringify(t)}function Jp(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Fu="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function ai(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const Kp=us(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function wr(t){if(ai(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(ai(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Zu(t){return wr(t)?{...t}:Array.isArray(t)?[...t]:t}const qp=new Set(["string","number","symbol"]);function Sr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function En(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n!=null&&n.parent)&&(r._zod.parent=t),r}function B(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function Yp(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const Gp={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xp(t,e){const n=t._zod.def,r=Qn(t._zod.def,{get shape(){const i={};for(const s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&(i[s]=n.shape[s])}return Xn(this,"shape",i),i},checks:[]});return En(t,r)}function Qp(t,e){const n=t._zod.def,r=Qn(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const s in e){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);e[s]&&delete i[s]}return Xn(this,"shape",i),i},checks:[]});return En(t,r)}function em(t,e){if(!wr(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=Qn(t._zod.def,{get shape(){const s={...t._zod.def.shape,...e};return Xn(this,"shape",s),s},checks:[]});return En(t,i)}function tm(t,e){if(!wr(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...t._zod.def,get shape(){const r={...t._zod.def.shape,...e};return Xn(this,"shape",r),r},checks:t._zod.def.checks};return En(t,n)}function nm(t,e){const n=Qn(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return Xn(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return En(t,n)}function rm(t,e,n){const r=Qn(e._zod.def,{get shape(){const i=e._zod.def.shape,s={...i};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(s[o]=t?new t({type:"optional",innerType:i[o]}):i[o])}else for(const o in i)s[o]=t?new t({type:"optional",innerType:i[o]}):i[o];return Xn(this,"shape",s),s},checks:[]});return En(e,r)}function im(t,e,n){const r=Qn(e._zod.def,{get shape(){const i=e._zod.def.shape,s={...i};if(n)for(const o in n){if(!(o in s))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(s[o]=new t({type:"nonoptional",innerType:i[o]}))}else for(const o in i)s[o]=new t({type:"nonoptional",innerType:i[o]});return Xn(this,"shape",s),s},checks:[]});return En(e,r)}function kr(t,e=0){var n;if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(((n=t.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Tr(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function cs(t){return typeof t=="string"?t:t==null?void 0:t.message}function Pn(t,e,n){var i,s,o,a,l,c;const r={...t,path:t.path??[]};if(!t.message){const u=cs((o=(s=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:s.error)==null?void 0:o.call(s,t))??cs((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??cs((l=n.customError)==null?void 0:l.call(n,t))??cs((c=n.localeError)==null?void 0:c.call(n,t))??"Invalid input";r.message=u}return delete r.inst,delete r.continue,e!=null&&e.reportInput||delete r.input,r}function To(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function li(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}const Lu=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,wo,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},ju=C("$ZodError",Lu),Uu=C("$ZodError",Lu,{Parent:Error});function sm(t,e=n=>n.message){const n={},r=[];for(const i of t.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}function om(t,e=n=>n.message){const n={_errors:[]},r=i=>{for(const s of i.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(o=>r({issues:o}));else if(s.code==="invalid_key")r({issues:s.issues});else if(s.code==="invalid_element")r({issues:s.issues});else if(s.path.length===0)n._errors.push(e(s));else{let o=n,a=0;for(;a<s.path.length;){const l=s.path[a];a===s.path.length-1?(o[l]=o[l]||{_errors:[]},o[l]._errors.push(e(s))):o[l]=o[l]||{_errors:[]},o=o[l],a++}}};return r(t),n}const zo=t=>(e,n,r,i)=>{const s=r?Object.assign(r,{async:!1}):{async:!1},o=e._zod.run({value:n,issues:[]},s);if(o instanceof Promise)throw new xr;if(o.issues.length){const a=new((i==null?void 0:i.Err)??t)(o.issues.map(l=>Pn(l,s,$n())));throw Fu(a,i==null?void 0:i.callee),a}return o.value},Co=t=>async(e,n,r,i)=>{const s=r?Object.assign(r,{async:!0}):{async:!0};let o=e._zod.run({value:n,issues:[]},s);if(o instanceof Promise&&(o=await o),o.issues.length){const a=new((i==null?void 0:i.Err)??t)(o.issues.map(l=>Pn(l,s,$n())));throw Fu(a,i==null?void 0:i.callee),a}return o.value},fs=t=>(e,n,r)=>{const i=r?{...r,async:!1}:{async:!1},s=e._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw new xr;return s.issues.length?{success:!1,error:new(t??ju)(s.issues.map(o=>Pn(o,i,$n())))}:{success:!0,data:s.value}},am=fs(Uu),ds=t=>async(e,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let s=e._zod.run({value:n,issues:[]},i);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new t(s.issues.map(o=>Pn(o,i,$n())))}:{success:!0,data:s.value}},lm=ds(Uu),um=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return zo(t)(e,n,i)},cm=t=>(e,n,r)=>zo(t)(e,n,r),fm=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Co(t)(e,n,i)},dm=t=>async(e,n,r)=>Co(t)(e,n,r),hm=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return fs(t)(e,n,i)},pm=t=>(e,n,r)=>fs(t)(e,n,r),mm=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ds(t)(e,n,i)},gm=t=>async(e,n,r)=>ds(t)(e,n,r),_m=/^[cC][^\s-]{8,}$/,vm=/^[0-9a-z]+$/,ym=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bm=/^[0-9a-vA-V]{20}$/,xm=/^[A-Za-z0-9]{27}$/,wm=/^[a-zA-Z0-9_-]{21}$/,Sm=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,km=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Vu=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Tm=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,zm="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Cm(){return new RegExp(zm,"u")}const Om=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,$m=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Em=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Pm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Am=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Bu=/^[A-Za-z0-9_-]*$/,Im=/^\+(?:[0-9]){6,14}[0-9]$/,Wu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Dm=new RegExp(`^${Wu}$`);function Hu(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mm(t){return new RegExp(`^${Hu(t)}$`)}function Nm(t){const e=Hu({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${n.join("|")})`;return new RegExp(`^${Wu}T(?:${r})$`)}const Rm=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Fm=/^-?\d+$/,Zm=/^-?\d+(?:\.\d+)?/,Lm=/^(?:true|false)$/i,jm=/^null$/i,Um=/^undefined$/i,Vm=/^[^A-Z]*$/,Bm=/^[^a-z]*$/,ot=C("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Ju={number:"number",bigint:"bigint",object:"date"},Ku=C("$ZodCheckLessThan",(t,e)=>{ot.init(t,e);const n=Ju[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,s=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<s&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:n,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),qu=C("$ZodCheckGreaterThan",(t,e)=>{ot.init(t,e);const n=Ju[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,s=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>s&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:n,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Wm=C("$ZodCheckMultipleOf",(t,e)=>{ot.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Hp(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),Hm=C("$ZodCheckNumberFormat",(t,e)=>{var o;ot.init(t,e),e.format=e.format||"float64";const n=(o=e.format)==null?void 0:o.includes("int"),r=n?"int":"number",[i,s]=Gp[e.format];t._zod.onattach.push(a=>{const l=a._zod.bag;l.format=e.format,l.minimum=i,l.maximum=s,n&&(l.pattern=Fm)}),t._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),l>s&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:s,inst:t})}}),Jm=C("$ZodCheckMaxLength",(t,e)=>{var n;ot.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!So(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const o=To(i);r.issues.push({origin:o,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),Km=C("$ZodCheckMinLength",(t,e)=>{var n;ot.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!So(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const o=To(i);r.issues.push({origin:o,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),qm=C("$ZodCheckLengthEquals",(t,e)=>{var n;ot.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!So(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=r=>{const i=r.value,s=i.length;if(s===e.length)return;const o=To(i),a=s>e.length;r.issues.push({origin:o,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),hs=C("$ZodCheckStringFormat",(t,e)=>{var n,r;ot.init(t,e),t._zod.onattach.push(i=>{const s=i._zod.bag;s.format=e.format,e.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),Ym=C("$ZodCheckRegex",(t,e)=>{hs.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),Gm=C("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=Vm),hs.init(t,e)}),Xm=C("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Bm),hs.init(t,e)}),Qm=C("$ZodCheckIncludes",(t,e)=>{ot.init(t,e);const n=Sr(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=r,t._zod.onattach.push(i=>{const s=i._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(r)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),eg=C("$ZodCheckStartsWith",(t,e)=>{ot.init(t,e);const n=new RegExp(`^${Sr(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),tg=C("$ZodCheckEndsWith",(t,e)=>{ot.init(t,e);const n=new RegExp(`.*${Sr(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),ng=C("$ZodCheckOverwrite",(t,e)=>{ot.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class rg{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
21
|
-
`).filter(
|
|
22
|
-
`))}}const
|
|
23
|
-
if (${
|
|
24
|
-
payload.issues = payload.issues.concat(${
|
|
20
|
+
**/let bs;const du=typeof window<"u"&&window.trustedTypes;if(du)try{bs=du.createPolicy("vue",{createHTML:t=>t})}catch{}const hu=bs?t=>bs.createHTML(t):t=>t,xp="http://www.w3.org/2000/svg",wp="http://www.w3.org/1998/Math/MathML",gn=typeof document<"u"?document:null,pu=gn&&gn.createElement("template"),Sp={insert:(t,e,n)=>{e.insertBefore(t,n||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,n,r)=>{const i=e==="svg"?gn.createElementNS(xp,t):e==="mathml"?gn.createElementNS(wp,t):n?gn.createElement(t,{is:n}):gn.createElement(t);return t==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:t=>gn.createTextNode(t),createComment:t=>gn.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>gn.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,n,r,i,o){const s=n?n.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{pu.innerHTML=hu(r==="svg"?`<svg>${t}</svg>`:r==="mathml"?`<math>${t}</math>`:t);const a=pu.content;if(r==="svg"||r==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,n)}return[s?s.nextSibling:e.firstChild,n?n.previousSibling:e.lastChild]}},Pn="transition",ai="animation",li=Symbol("_vtc"),mu={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},kp=je({},vl,mu),ys=(t=>(t.displayName="Transition",t.props=kp,t))((t,{slots:e})=>ye(xh,Tp(t),e)),Qn=(t,e=[])=>{Y(t)?t.forEach(n=>n(...e)):t&&t(...e)},gu=t=>t?Y(t)?t.some(e=>e.length>1):t.length>1:!1;function Tp(t){const e={};for(const T in t)T in mu||(e[T]=t[T]);if(t.css===!1)return e;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=s,appearToClass:u=a,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=t,m=zp(i),p=m&&m[0],b=m&&m[1],{onBeforeEnter:x,onEnter:k,onEnterCancelled:z,onLeave:y,onLeaveCancelled:w,onBeforeAppear:E=x,onAppear:A=k,onAppearCancelled:P=z}=e,_=(T,B,H,K)=>{T._enterCancelled=K,er(T,B?u:a),er(T,B?c:s),H&&H()},S=(T,B)=>{T._isLeaving=!1,er(T,f),er(T,h),er(T,d),B&&B()},N=T=>(B,H)=>{const K=T?A:k,ee=()=>_(B,T,H);Qn(K,[B,ee]),_u(()=>{er(B,T?l:o),_n(B,T?u:a),gu(K)||vu(B,r,p,ee)})};return je(e,{onBeforeEnter(T){Qn(x,[T]),_n(T,o),_n(T,s)},onBeforeAppear(T){Qn(E,[T]),_n(T,l),_n(T,c)},onEnter:N(!1),onAppear:N(!0),onLeave(T,B){T._isLeaving=!0;const H=()=>S(T,B);_n(T,f),T._enterCancelled?(_n(T,d),xu(T)):(xu(T),_n(T,d)),_u(()=>{T._isLeaving&&(er(T,f),_n(T,h),gu(y)||vu(T,r,b,H))}),Qn(y,[T,H])},onEnterCancelled(T){_(T,!1,void 0,!0),Qn(z,[T])},onAppearCancelled(T){_(T,!0,void 0,!0),Qn(P,[T])},onLeaveCancelled(T){S(T),Qn(w,[T])}})}function zp(t){if(t==null)return null;if(_e(t))return[xs(t.enter),xs(t.leave)];{const e=xs(t);return[e,e]}}function xs(t){return Td(t)}function _n(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[li]||(t[li]=new Set)).add(e)}function er(t,e){e.split(/\s+/).forEach(r=>r&&t.classList.remove(r));const n=t[li];n&&(n.delete(e),n.size||(t[li]=void 0))}function _u(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Cp=0;function vu(t,e,n,r){const i=t._endId=++Cp,o=()=>{i===t._endId&&r()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=$p(t,e);if(!s)return r();const c=s+"end";let u=0;const f=()=>{t.removeEventListener(c,d),o()},d=h=>{h.target===t&&++u>=l&&f()};setTimeout(()=>{u<l&&f()},a+1),t.addEventListener(c,d)}function $p(t,e){const n=window.getComputedStyle(t),r=m=>(n[m]||"").split(", "),i=r(`${Pn}Delay`),o=r(`${Pn}Duration`),s=bu(i,o),a=r(`${ai}Delay`),l=r(`${ai}Duration`),c=bu(a,l);let u=null,f=0,d=0;e===Pn?s>0&&(u=Pn,f=s,d=o.length):e===ai?c>0&&(u=ai,f=c,d=l.length):(f=Math.max(s,c),u=f>0?s>c?Pn:ai:null,d=u?u===Pn?o.length:l.length:0);const h=u===Pn&&/\b(?:transform|all)(?:,|$)/.test(r(`${Pn}Property`).toString());return{type:u,timeout:f,propCount:d,hasTransform:h}}function bu(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((n,r)=>yu(n)+yu(t[r])))}function yu(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function xu(t){return(t?t.ownerDocument:document).body.offsetHeight}function Op(t,e,n){const r=t[li];r&&(e=(e?[e,...r]:[...r]).join(" ")),e==null?t.removeAttribute("class"):n?t.setAttribute("class",e):t.className=e}const wu=Symbol("_vod"),Ep=Symbol("_vsh"),Pp=Symbol(""),Ip=/(?:^|;)\s*display\s*:/;function Ap(t,e,n){const r=t.style,i=$e(n);let o=!1;if(n&&!i){if(e)if($e(e))for(const s of e.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&uo(r,a,"")}else for(const s in e)n[s]==null&&uo(r,s,"");for(const s in n)s==="display"&&(o=!0),uo(r,s,n[s])}else if(i){if(e!==n){const s=r[Pp];s&&(n+=";"+s),r.cssText=n,o=Ip.test(n)}}else e&&t.removeAttribute("style");wu in t&&(t[wu]=o?r.display:"",t[Ep]&&(r.display="none"))}const Su=/\s*!important$/;function uo(t,e,n){if(Y(n))n.forEach(r=>uo(t,e,r));else if(n==null&&(n=""),e.startsWith("--"))t.setProperty(e,n);else{const r=Rp(t,e);Su.test(n)?t.setProperty(Wn(r),n.replace(Su,""),"important"):t[r]=n}}const ku=["Webkit","Moz","ms"],ws={};function Rp(t,e){const n=ws[e];if(n)return n;let r=Ct(e);if(r!=="filter"&&r in t)return ws[e]=r;r=Di(r);for(let i=0;i<ku.length;i++){const o=ku[i]+r;if(o in t)return ws[e]=o}return e}const Tu="http://www.w3.org/1999/xlink";function zu(t,e,n,r,i,o=Ed(e)){r&&e.startsWith("xlink:")?n==null?t.removeAttributeNS(Tu,e.slice(6,e.length)):t.setAttributeNS(Tu,e,n):n==null||o&&!La(n)?t.removeAttribute(e):t.setAttribute(e,o?"":an(n)?String(n):n)}function Cu(t,e,n,r,i){if(e==="innerHTML"||e==="textContent"){n!=null&&(t[e]=e==="innerHTML"?hu(n):n);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,l=n==null?t.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in t))&&(t.value=l),n==null&&t.removeAttribute(e),t._value=n;return}let s=!1;if(n===""||n==null){const a=typeof t[e];a==="boolean"?n=La(n):n==null&&a==="string"?(n="",s=!0):a==="number"&&(n=0,s=!0)}try{t[e]=n}catch{}s&&t.removeAttribute(i||e)}function wr(t,e,n,r){t.addEventListener(e,n,r)}function Dp(t,e,n,r){t.removeEventListener(e,n,r)}const $u=Symbol("_vei");function Fp(t,e,n,r,i=null){const o=t[$u]||(t[$u]={}),s=o[e];if(r&&s)s.value=r;else{const[a,l]=Np(e);if(r){const c=o[e]=Zp(r,i);wr(t,a,c,l)}else s&&(Dp(t,a,s,l),o[e]=void 0)}}const Ou=/(?:Once|Passive|Capture)$/;function Np(t){let e;if(Ou.test(t)){e={};let r;for(;r=t.match(Ou);)t=t.slice(0,t.length-r[0].length),e[r[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):Wn(t.slice(2)),e]}let Ss=0;const Mp=Promise.resolve(),Lp=()=>Ss||(Mp.then(()=>Ss=0),Ss=Date.now());function Zp(t,e){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;jt(jp(r,n.value),e,5,[r])};return n.value=t,n.attached=Lp(),n}function jp(t,e){if(Y(e)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},e.map(r=>i=>!i._stopped&&r&&r(i))}else return e}const Eu=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Bp=(t,e,n,r,i,o)=>{const s=i==="svg";e==="class"?Op(t,r,s):e==="style"?Ap(t,n,r):Ii(e)?Zo(e)||Fp(t,e,n,r,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Up(t,e,r,s))?(Cu(t,e,r),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&zu(t,e,r,s,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!$e(r))?Cu(t,Ct(e),r,o,e):(e==="true-value"?t._trueValue=r:e==="false-value"&&(t._falseValue=r),zu(t,e,r,s))};function Up(t,e,n,r){if(r)return!!(e==="innerHTML"||e==="textContent"||e in t&&Eu(e)&&X(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 i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Eu(e)&&$e(n)?!1:e in t}const Pu=t=>{const e=t.props["onUpdate:modelValue"]||!1;return Y(e)?n=>Fi(e,n):e};function Vp(t){t.target.composing=!0}function Iu(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ks=Symbol("_assign");function Au(t,e,n){return e&&(t=t.trim()),n&&(t=Vo(t)),t}const Wp={created(t,{modifiers:{lazy:e,trim:n,number:r}},i){t[ks]=Pu(i);const o=r||i.props&&i.props.type==="number";wr(t,e?"change":"input",s=>{s.target.composing||t[ks](Au(t.value,n,o))}),(n||o)&&wr(t,"change",()=>{t.value=Au(t.value,n,o)}),e||(wr(t,"compositionstart",Vp),wr(t,"compositionend",Iu),wr(t,"change",Iu))},mounted(t,{value:e}){t.value=e??""},beforeUpdate(t,{value:e,oldValue:n,modifiers:{lazy:r,trim:i,number:o}},s){if(t[ks]=Pu(s),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?Vo(t.value):t.value,l=e??"";a!==l&&(document.activeElement===t&&t.type!=="range"&&(r&&e===n||i&&t.value.trim()===l)||(t.value=l))}},Hp=["ctrl","shift","alt","meta"],Jp={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)=>Hp.some(n=>t[`${n}Key`]&&!e.includes(n))},Ru=(t,e)=>{const n=t._withMods||(t._withMods={}),r=e.join(".");return n[r]||(n[r]=(i,...o)=>{for(let s=0;s<e.length;s++){const a=Jp[e[s]];if(a&&a(i,e))return}return t(i,...o)})},Gp=je({patchProp:Bp},Sp);let Du;function Kp(){return Du||(Du=tp(Gp))}const Fu=(...t)=>{const e=Kp().createApp(...t),{mount:n}=e;return e.mount=r=>{const i=Yp(r);if(!i)return;const o=e._component;!X(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const s=n(i,!1,qp(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},e};function qp(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Yp(t){return $e(t)?document.querySelector(t):t}const Nu={"i:s":"star","i:u":"users","i:c":"check","i:a":"arrow-right","c:p":"#6366f1","c:s":"#10b981","c:d":"#ef4444","v:g":"gradient","v:o":"outlined","v:s":"soft"};function Xp(t){return t in Nu?Nu[t]:t}function C(t,e,n){function r(a,l){if(a._zod||Object.defineProperty(a,"_zod",{value:{def:l,constr:s,traits:new Set},enumerable:!1}),a._zod.traits.has(t))return;a._zod.traits.add(t),e(a,l);const c=s.prototype,u=Object.keys(c);for(let f=0;f<u.length;f++){const d=u[f];d in a||(a[d]=c[d].bind(a))}}const i=(n==null?void 0:n.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:t});function s(a){var l;const c=n!=null&&n.Parent?new o:this;r(c,a),(l=c._zod).deferred??(l.deferred=[]);for(const u of c._zod.deferred)u();return c}return Object.defineProperty(s,"init",{value:r}),Object.defineProperty(s,Symbol.hasInstance,{value:a=>{var l,c;return n!=null&&n.Parent&&a instanceof n.Parent?!0:(c=(l=a==null?void 0:a._zod)==null?void 0:l.traits)==null?void 0:c.has(t)}}),Object.defineProperty(s,"name",{value:t}),s}class Sr extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Mu extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name="ZodEncodeError"}}const Lu={};function In(t){return Lu}function Zu(t){const e=Object.values(t).filter(r=>typeof r=="number");return Object.entries(t).filter(([r,i])=>e.indexOf(+r)===-1).map(([r,i])=>i)}function Ts(t,e){return typeof e=="bigint"?e.toString():e}function co(t){return{get value(){{const e=t();return Object.defineProperty(this,"value",{value:e}),e}}}}function zs(t){return t==null}function Cs(t){const e=t.startsWith("^")?1:0,n=t.endsWith("$")?t.length-1:t.length;return t.slice(e,n)}function Qp(t,e){const n=(t.toString().split(".")[1]||"").length,r=e.toString();let i=(r.split(".")[1]||"").length;if(i===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(i=Number.parseInt(l[1]))}const o=n>i?n:i,s=Number.parseInt(t.toFixed(o).replace(".","")),a=Number.parseInt(e.toFixed(o).replace(".",""));return s%a/10**o}const ju=Symbol("evaluating");function pe(t,e,n){let r;Object.defineProperty(t,e,{get(){if(r!==ju)return r===void 0&&(r=ju,r=n()),r},set(i){Object.defineProperty(t,e,{value:i})},configurable:!0})}function tr(t,e,n){Object.defineProperty(t,e,{value:n,writable:!0,enumerable:!0,configurable:!0})}function nr(...t){const e={};for(const n of t){const r=Object.getOwnPropertyDescriptors(n);Object.assign(e,r)}return Object.defineProperties({},e)}function Bu(t){return JSON.stringify(t)}function em(t){return t.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const Uu="captureStackTrace"in Error?Error.captureStackTrace:(...t)=>{};function ui(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}const tm=co(()=>{var t;if(typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)!=null&&t.includes("Cloudflare")))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function kr(t){if(ui(t)===!1)return!1;const e=t.constructor;if(e===void 0||typeof e!="function")return!0;const n=e.prototype;return!(ui(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Vu(t){return kr(t)?{...t}:Array.isArray(t)?[...t]:t}const nm=new Set(["string","number","symbol"]);function Tr(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function An(t,e,n){const r=new t._zod.constr(e??t._zod.def);return(!e||n!=null&&n.parent)&&(r._zod.parent=t),r}function W(t){const e=t;if(!e)return{};if(typeof e=="string")return{error:()=>e};if((e==null?void 0:e.message)!==void 0){if((e==null?void 0:e.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");e.error=e.message}return delete e.message,typeof e.error=="string"?{...e,error:()=>e.error}:e}function rm(t){return Object.keys(t).filter(e=>t[e]._zod.optin==="optional"&&t[e]._zod.optout==="optional")}const im={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function om(t,e){const n=t._zod.def,r=nr(t._zod.def,{get shape(){const i={};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&(i[o]=n.shape[o])}return tr(this,"shape",i),i},checks:[]});return An(t,r)}function sm(t,e){const n=t._zod.def,r=nr(t._zod.def,{get shape(){const i={...t._zod.def.shape};for(const o in e){if(!(o in n.shape))throw new Error(`Unrecognized key: "${o}"`);e[o]&&delete i[o]}return tr(this,"shape",i),i},checks:[]});return An(t,r)}function am(t,e){if(!kr(e))throw new Error("Invalid input to extend: expected a plain object");const n=t._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const i=nr(t._zod.def,{get shape(){const o={...t._zod.def.shape,...e};return tr(this,"shape",o),o},checks:[]});return An(t,i)}function lm(t,e){if(!kr(e))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...t._zod.def,get shape(){const r={...t._zod.def.shape,...e};return tr(this,"shape",r),r},checks:t._zod.def.checks};return An(t,n)}function um(t,e){const n=nr(t._zod.def,{get shape(){const r={...t._zod.def.shape,...e._zod.def.shape};return tr(this,"shape",r),r},get catchall(){return e._zod.def.catchall},checks:[]});return An(t,n)}function cm(t,e,n){const r=nr(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in i))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=t?new t({type:"optional",innerType:i[s]}):i[s])}else for(const s in i)o[s]=t?new t({type:"optional",innerType:i[s]}):i[s];return tr(this,"shape",o),o},checks:[]});return An(e,r)}function fm(t,e,n){const r=nr(e._zod.def,{get shape(){const i=e._zod.def.shape,o={...i};if(n)for(const s in n){if(!(s in o))throw new Error(`Unrecognized key: "${s}"`);n[s]&&(o[s]=new t({type:"nonoptional",innerType:i[s]}))}else for(const s in i)o[s]=new t({type:"nonoptional",innerType:i[s]});return tr(this,"shape",o),o},checks:[]});return An(e,r)}function zr(t,e=0){var n;if(t.aborted===!0)return!0;for(let r=e;r<t.issues.length;r++)if(((n=t.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Cr(t,e){return e.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(t),n})}function fo(t){return typeof t=="string"?t:t==null?void 0:t.message}function Rn(t,e,n){var i,o,s,a,l,c;const r={...t,path:t.path??[]};if(!t.message){const u=fo((s=(o=(i=t.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:s.call(o,t))??fo((a=e==null?void 0:e.error)==null?void 0:a.call(e,t))??fo((l=n.customError)==null?void 0:l.call(n,t))??fo((c=n.localeError)==null?void 0:c.call(n,t))??"Invalid input";r.message=u}return delete r.inst,delete r.continue,e!=null&&e.reportInput||delete r.input,r}function $s(t){return Array.isArray(t)?"array":typeof t=="string"?"string":"unknown"}function ci(...t){const[e,n,r]=t;return typeof e=="string"?{message:e,code:"custom",input:n,inst:r}:{...e}}const Wu=(t,e)=>{t.name="$ZodError",Object.defineProperty(t,"_zod",{value:t._zod,enumerable:!1}),Object.defineProperty(t,"issues",{value:e,enumerable:!1}),t.message=JSON.stringify(e,Ts,2),Object.defineProperty(t,"toString",{value:()=>t.message,enumerable:!1})},Hu=C("$ZodError",Wu),Ju=C("$ZodError",Wu,{Parent:Error});function dm(t,e=n=>n.message){const n={},r=[];for(const i of t.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(e(i))):r.push(e(i));return{formErrors:r,fieldErrors:n}}function hm(t,e=n=>n.message){const n={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union"&&o.errors.length)o.errors.map(s=>r({issues:s}));else if(o.code==="invalid_key")r({issues:o.issues});else if(o.code==="invalid_element")r({issues:o.issues});else if(o.path.length===0)n._errors.push(e(o));else{let s=n,a=0;for(;a<o.path.length;){const l=o.path[a];a===o.path.length-1?(s[l]=s[l]||{_errors:[]},s[l]._errors.push(e(o))):s[l]=s[l]||{_errors:[]},s=s[l],a++}}};return r(t),n}const Os=t=>(e,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Sr;if(s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Rn(l,o,In())));throw Uu(a,i==null?void 0:i.callee),a}return s.value},Es=t=>async(e,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let s=e._zod.run({value:n,issues:[]},o);if(s instanceof Promise&&(s=await s),s.issues.length){const a=new((i==null?void 0:i.Err)??t)(s.issues.map(l=>Rn(l,o,In())));throw Uu(a,i==null?void 0:i.callee),a}return s.value},ho=t=>(e,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=e._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new Sr;return o.issues.length?{success:!1,error:new(t??Hu)(o.issues.map(s=>Rn(s,i,In())))}:{success:!0,data:o.value}},pm=ho(Ju),po=t=>async(e,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=e._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new t(o.issues.map(s=>Rn(s,i,In())))}:{success:!0,data:o.value}},mm=po(Ju),gm=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Os(t)(e,n,i)},_m=t=>(e,n,r)=>Os(t)(e,n,r),vm=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Es(t)(e,n,i)},bm=t=>async(e,n,r)=>Es(t)(e,n,r),ym=t=>(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ho(t)(e,n,i)},xm=t=>(e,n,r)=>ho(t)(e,n,r),wm=t=>async(e,n,r)=>{const i=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return po(t)(e,n,i)},Sm=t=>async(e,n,r)=>po(t)(e,n,r),km=/^[cC][^\s-]{8,}$/,Tm=/^[0-9a-z]+$/,zm=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Cm=/^[0-9a-vA-V]{20}$/,$m=/^[A-Za-z0-9]{27}$/,Om=/^[a-zA-Z0-9_-]{21}$/,Em=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Pm=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Gu=t=>t?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${t}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Im=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Am="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Rm(){return new RegExp(Am,"u")}const Dm=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Fm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Nm=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Mm=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Lm=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Ku=/^[A-Za-z0-9_-]*$/,Zm=/^\+(?:[0-9]){6,14}[0-9]$/,qu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",jm=new RegExp(`^${qu}$`);function Yu(t){const e="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof t.precision=="number"?t.precision===-1?`${e}`:t.precision===0?`${e}:[0-5]\\d`:`${e}:[0-5]\\d\\.\\d{${t.precision}}`:`${e}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Bm(t){return new RegExp(`^${Yu(t)}$`)}function Um(t){const e=Yu({precision:t.precision}),n=["Z"];t.local&&n.push(""),t.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${e}(?:${n.join("|")})`;return new RegExp(`^${qu}T(?:${r})$`)}const Vm=t=>{const e=t?`[\\s\\S]{${(t==null?void 0:t.minimum)??0},${(t==null?void 0:t.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${e}$`)},Wm=/^-?\d+$/,Hm=/^-?\d+(?:\.\d+)?/,Jm=/^(?:true|false)$/i,Gm=/^null$/i,Km=/^undefined$/i,qm=/^[^A-Z]*$/,Ym=/^[^a-z]*$/,lt=C("$ZodCheck",(t,e)=>{var n;t._zod??(t._zod={}),t._zod.def=e,(n=t._zod).onattach??(n.onattach=[])}),Xu={number:"number",bigint:"bigint",object:"date"},Qu=C("$ZodCheckLessThan",(t,e)=>{lt.init(t,e);const n=Xu[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;e.value<o&&(e.inclusive?i.maximum=e.value:i.exclusiveMaximum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value<=e.value:r.value<e.value)||r.issues.push({origin:n,code:"too_big",maximum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),ec=C("$ZodCheckGreaterThan",(t,e)=>{lt.init(t,e);const n=Xu[typeof e.value];t._zod.onattach.push(r=>{const i=r._zod.bag,o=(e.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;e.value>o&&(e.inclusive?i.minimum=e.value:i.exclusiveMinimum=e.value)}),t._zod.check=r=>{(e.inclusive?r.value>=e.value:r.value>e.value)||r.issues.push({origin:n,code:"too_small",minimum:e.value,input:r.value,inclusive:e.inclusive,inst:t,continue:!e.abort})}}),Xm=C("$ZodCheckMultipleOf",(t,e)=>{lt.init(t,e),t._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=e.value)}),t._zod.check=n=>{if(typeof n.value!=typeof e.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%e.value===BigInt(0):Qp(n.value,e.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:e.value,input:n.value,inst:t,continue:!e.abort})}}),Qm=C("$ZodCheckNumberFormat",(t,e)=>{var s;lt.init(t,e),e.format=e.format||"float64";const n=(s=e.format)==null?void 0:s.includes("int"),r=n?"int":"number",[i,o]=im[e.format];t._zod.onattach.push(a=>{const l=a._zod.bag;l.format=e.format,l.minimum=i,l.maximum=o,n&&(l.pattern=Wm)}),t._zod.check=a=>{const l=a.value;if(n){if(!Number.isInteger(l)){a.issues.push({expected:r,format:e.format,code:"invalid_type",continue:!1,input:l,inst:t});return}if(!Number.isSafeInteger(l)){l>0?a.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort}):a.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:t,origin:r,continue:!e.abort});return}}l<i&&a.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:t,continue:!e.abort}),l>o&&a.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:t})}}),eg=C("$ZodCheckMaxLength",(t,e)=>{var n;lt.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!zs(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;e.maximum<i&&(r._zod.bag.maximum=e.maximum)}),t._zod.check=r=>{const i=r.value;if(i.length<=e.maximum)return;const s=$s(i);r.issues.push({origin:s,code:"too_big",maximum:e.maximum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),tg=C("$ZodCheckMinLength",(t,e)=>{var n;lt.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!zs(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;e.minimum>i&&(r._zod.bag.minimum=e.minimum)}),t._zod.check=r=>{const i=r.value;if(i.length>=e.minimum)return;const s=$s(i);r.issues.push({origin:s,code:"too_small",minimum:e.minimum,inclusive:!0,input:i,inst:t,continue:!e.abort})}}),ng=C("$ZodCheckLengthEquals",(t,e)=>{var n;lt.init(t,e),(n=t._zod.def).when??(n.when=r=>{const i=r.value;return!zs(i)&&i.length!==void 0}),t._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=e.length,i.maximum=e.length,i.length=e.length}),t._zod.check=r=>{const i=r.value,o=i.length;if(o===e.length)return;const s=$s(i),a=o>e.length;r.issues.push({origin:s,...a?{code:"too_big",maximum:e.length}:{code:"too_small",minimum:e.length},inclusive:!0,exact:!0,input:r.value,inst:t,continue:!e.abort})}}),mo=C("$ZodCheckStringFormat",(t,e)=>{var n,r;lt.init(t,e),t._zod.onattach.push(i=>{const o=i._zod.bag;o.format=e.format,e.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(e.pattern))}),e.pattern?(n=t._zod).check??(n.check=i=>{e.pattern.lastIndex=0,!e.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:e.format,input:i.value,...e.pattern?{pattern:e.pattern.toString()}:{},inst:t,continue:!e.abort})}):(r=t._zod).check??(r.check=()=>{})}),rg=C("$ZodCheckRegex",(t,e)=>{mo.init(t,e),t._zod.check=n=>{e.pattern.lastIndex=0,!e.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:e.pattern.toString(),inst:t,continue:!e.abort})}}),ig=C("$ZodCheckLowerCase",(t,e)=>{e.pattern??(e.pattern=qm),mo.init(t,e)}),og=C("$ZodCheckUpperCase",(t,e)=>{e.pattern??(e.pattern=Ym),mo.init(t,e)}),sg=C("$ZodCheckIncludes",(t,e)=>{lt.init(t,e);const n=Tr(e.includes),r=new RegExp(typeof e.position=="number"?`^.{${e.position}}${n}`:n);e.pattern=r,t._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),t._zod.check=i=>{i.value.includes(e.includes,e.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:e.includes,input:i.value,inst:t,continue:!e.abort})}}),ag=C("$ZodCheckStartsWith",(t,e)=>{lt.init(t,e);const n=new RegExp(`^${Tr(e.prefix)}.*`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.startsWith(e.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:e.prefix,input:r.value,inst:t,continue:!e.abort})}}),lg=C("$ZodCheckEndsWith",(t,e)=>{lt.init(t,e);const n=new RegExp(`.*${Tr(e.suffix)}$`);e.pattern??(e.pattern=n),t._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),t._zod.check=r=>{r.value.endsWith(e.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:e.suffix,input:r.value,inst:t,continue:!e.abort})}}),ug=C("$ZodCheckOverwrite",(t,e)=>{lt.init(t,e),t._zod.check=n=>{n.value=e.tx(n.value)}});class cg{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),this.indent-=1}write(e){if(typeof e=="function"){e(this,{execution:"sync"}),e(this,{execution:"async"});return}const r=e.split(`
|
|
21
|
+
`).filter(s=>s),i=Math.min(...r.map(s=>s.length-s.trimStart().length)),o=r.map(s=>s.slice(i)).map(s=>" ".repeat(this.indent*2)+s);for(const s of o)this.content.push(s)}compile(){const e=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new e(...n,i.join(`
|
|
22
|
+
`))}}const fg={major:4,minor:2,patch:1},xe=C("$ZodType",(t,e)=>{var i;var n;t??(t={}),t._zod.def=e,t._zod.bag=t._zod.bag||{},t._zod.version=fg;const r=[...t._zod.def.checks??[]];t._zod.traits.has("$ZodCheck")&&r.unshift(t);for(const o of r)for(const s of o._zod.onattach)s(t);if(r.length===0)(n=t._zod).deferred??(n.deferred=[]),(i=t._zod.deferred)==null||i.push(()=>{t._zod.run=t._zod.parse});else{const o=(a,l,c)=>{let u=zr(a),f;for(const d of l){if(d._zod.def.when){if(!d._zod.def.when(a))continue}else if(u)continue;const h=a.issues.length,m=d._zod.check(a);if(m instanceof Promise&&(c==null?void 0:c.async)===!1)throw new Sr;if(f||m instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await m,a.issues.length!==h&&(u||(u=zr(a,h)))});else{if(a.issues.length===h)continue;u||(u=zr(a,h))}}return f?f.then(()=>a):a},s=(a,l,c)=>{if(zr(a))return a.aborted=!0,a;const u=o(l,r,c);if(u instanceof Promise){if(c.async===!1)throw new Sr;return u.then(f=>t._zod.parse(f,c))}return t._zod.parse(u,c)};t._zod.run=(a,l)=>{if(l.skipChecks)return t._zod.parse(a,l);if(l.direction==="backward"){const u=t._zod.parse({value:a.value,issues:[]},{...l,skipChecks:!0});return u instanceof Promise?u.then(f=>s(f,a,l)):s(u,a,l)}const c=t._zod.parse(a,l);if(c instanceof Promise){if(l.async===!1)throw new Sr;return c.then(u=>o(u,r,l))}return o(c,r,l)}}t["~standard"]={validate:o=>{var s;try{const a=pm(t,o);return a.success?{value:a.data}:{issues:(s=a.error)==null?void 0:s.issues}}catch{return mm(t,o).then(l=>{var c;return l.success?{value:l.data}:{issues:(c=l.error)==null?void 0:c.issues}})}},vendor:"zod",version:1}}),Ps=C("$ZodString",(t,e)=>{var n;xe.init(t,e),t._zod.pattern=[...((n=t==null?void 0:t._zod.bag)==null?void 0:n.patterns)??[]].pop()??Vm(t._zod.bag),t._zod.parse=(r,i)=>{if(e.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:t}),r}}),ze=C("$ZodStringFormat",(t,e)=>{mo.init(t,e),Ps.init(t,e)}),dg=C("$ZodGUID",(t,e)=>{e.pattern??(e.pattern=Pm),ze.init(t,e)}),hg=C("$ZodUUID",(t,e)=>{if(e.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[e.version];if(r===void 0)throw new Error(`Invalid UUID version: "${e.version}"`);e.pattern??(e.pattern=Gu(r))}else e.pattern??(e.pattern=Gu());ze.init(t,e)}),pg=C("$ZodEmail",(t,e)=>{e.pattern??(e.pattern=Im),ze.init(t,e)}),mg=C("$ZodURL",(t,e)=>{ze.init(t,e),t._zod.check=n=>{try{const r=n.value.trim(),i=new URL(r);e.hostname&&(e.hostname.lastIndex=0,e.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:e.hostname.source,input:n.value,inst:t,continue:!e.abort})),e.protocol&&(e.protocol.lastIndex=0,e.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:e.protocol.source,input:n.value,inst:t,continue:!e.abort})),e.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:t,continue:!e.abort})}}}),gg=C("$ZodEmoji",(t,e)=>{e.pattern??(e.pattern=Rm()),ze.init(t,e)}),_g=C("$ZodNanoID",(t,e)=>{e.pattern??(e.pattern=Om),ze.init(t,e)}),vg=C("$ZodCUID",(t,e)=>{e.pattern??(e.pattern=km),ze.init(t,e)}),bg=C("$ZodCUID2",(t,e)=>{e.pattern??(e.pattern=Tm),ze.init(t,e)}),yg=C("$ZodULID",(t,e)=>{e.pattern??(e.pattern=zm),ze.init(t,e)}),xg=C("$ZodXID",(t,e)=>{e.pattern??(e.pattern=Cm),ze.init(t,e)}),wg=C("$ZodKSUID",(t,e)=>{e.pattern??(e.pattern=$m),ze.init(t,e)}),Sg=C("$ZodISODateTime",(t,e)=>{e.pattern??(e.pattern=Um(e)),ze.init(t,e)}),kg=C("$ZodISODate",(t,e)=>{e.pattern??(e.pattern=jm),ze.init(t,e)}),Tg=C("$ZodISOTime",(t,e)=>{e.pattern??(e.pattern=Bm(e)),ze.init(t,e)}),zg=C("$ZodISODuration",(t,e)=>{e.pattern??(e.pattern=Em),ze.init(t,e)}),Cg=C("$ZodIPv4",(t,e)=>{e.pattern??(e.pattern=Dm),ze.init(t,e),t._zod.bag.format="ipv4"}),$g=C("$ZodIPv6",(t,e)=>{e.pattern??(e.pattern=Fm),ze.init(t,e),t._zod.bag.format="ipv6",t._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:t,continue:!e.abort})}}}),Og=C("$ZodCIDRv4",(t,e)=>{e.pattern??(e.pattern=Nm),ze.init(t,e)}),Eg=C("$ZodCIDRv6",(t,e)=>{e.pattern??(e.pattern=Mm),ze.init(t,e),t._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[i,o]=r;if(!o)throw new Error;const s=Number(o);if(`${s}`!==o)throw new Error;if(s<0||s>128)throw new Error;new URL(`http://[${i}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:t,continue:!e.abort})}}});function tc(t){if(t==="")return!0;if(t.length%4!==0)return!1;try{return atob(t),!0}catch{return!1}}const Pg=C("$ZodBase64",(t,e)=>{e.pattern??(e.pattern=Lm),ze.init(t,e),t._zod.bag.contentEncoding="base64",t._zod.check=n=>{tc(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:t,continue:!e.abort})}});function Ig(t){if(!Ku.test(t))return!1;const e=t.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=e.padEnd(Math.ceil(e.length/4)*4,"=");return tc(n)}const Ag=C("$ZodBase64URL",(t,e)=>{e.pattern??(e.pattern=Ku),ze.init(t,e),t._zod.bag.contentEncoding="base64url",t._zod.check=n=>{Ig(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:t,continue:!e.abort})}}),Rg=C("$ZodE164",(t,e)=>{e.pattern??(e.pattern=Zm),ze.init(t,e)});function Dg(t,e=null){try{const n=t.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||e&&(!("alg"in i)||i.alg!==e))}catch{return!1}}const Fg=C("$ZodJWT",(t,e)=>{ze.init(t,e),t._zod.check=n=>{Dg(n.value,e.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:t,continue:!e.abort})}}),nc=C("$ZodNumber",(t,e)=>{xe.init(t,e),t._zod.pattern=t._zod.bag.pattern??Hm,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:t,...o?{received:o}:{}}),n}}),Ng=C("$ZodNumberFormat",(t,e)=>{Qm.init(t,e),nc.init(t,e)}),Mg=C("$ZodBoolean",(t,e)=>{xe.init(t,e),t._zod.pattern=Jm,t._zod.parse=(n,r)=>{if(e.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:t}),n}}),Lg=C("$ZodUndefined",(t,e)=>{xe.init(t,e),t._zod.pattern=Km,t._zod.values=new Set([void 0]),t._zod.optin="optional",t._zod.optout="optional",t._zod.parse=(n,r)=>{const i=n.value;return typeof i>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:i,inst:t}),n}}),Zg=C("$ZodNull",(t,e)=>{xe.init(t,e),t._zod.pattern=Gm,t._zod.values=new Set([null]),t._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:t}),n}}),jg=C("$ZodAny",(t,e)=>{xe.init(t,e),t._zod.parse=n=>n}),Bg=C("$ZodUnknown",(t,e)=>{xe.init(t,e),t._zod.parse=n=>n}),Ug=C("$ZodNever",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:t}),n)});function rc(t,e,n){t.issues.length&&e.issues.push(...Cr(n,t.issues)),e.value[n]=t.value}const Vg=C("$ZodArray",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:t}),n;n.value=Array(i.length);const o=[];for(let s=0;s<i.length;s++){const a=i[s],l=e.element._zod.run({value:a,issues:[]},r);l instanceof Promise?o.push(l.then(c=>rc(c,n,s))):rc(l,n,s)}return o.length?Promise.all(o).then(()=>n):n}});function go(t,e,n,r){t.issues.length&&e.issues.push(...Cr(n,t.issues)),t.value===void 0?n in r&&(e.value[n]=void 0):e.value[n]=t.value}function ic(t){var r,i,o,s;const e=Object.keys(t.shape);for(const a of e)if(!((s=(o=(i=(r=t.shape)==null?void 0:r[a])==null?void 0:i._zod)==null?void 0:o.traits)!=null&&s.has("$ZodType")))throw new Error(`Invalid element at key "${a}": expected a Zod schema`);const n=rm(t.shape);return{...t,keys:e,keySet:new Set(e),numKeys:e.length,optionalKeys:new Set(n)}}function oc(t,e,n,r,i,o){const s=[],a=i.keySet,l=i.catchall._zod,c=l.def.type;for(const u in e){if(a.has(u))continue;if(c==="never"){s.push(u);continue}const f=l.run({value:e[u],issues:[]},r);f instanceof Promise?t.push(f.then(d=>go(d,n,u,e))):go(f,n,u,e)}return s.length&&n.issues.push({code:"unrecognized_keys",keys:s,input:e,inst:o}),t.length?Promise.all(t).then(()=>n):n}const Wg=C("$ZodObject",(t,e)=>{xe.init(t,e);const n=Object.getOwnPropertyDescriptor(e,"shape");if(!(n!=null&&n.get)){const a=e.shape;Object.defineProperty(e,"shape",{get:()=>{const l={...a};return Object.defineProperty(e,"shape",{value:l}),l}})}const r=co(()=>ic(e));pe(t._zod,"propValues",()=>{const a=e.shape,l={};for(const c in a){const u=a[c]._zod;if(u.values){l[c]??(l[c]=new Set);for(const f of u.values)l[c].add(f)}}return l});const i=ui,o=e.catchall;let s;t._zod.parse=(a,l)=>{s??(s=r.value);const c=a.value;if(!i(c))return a.issues.push({expected:"object",code:"invalid_type",input:c,inst:t}),a;a.value={};const u=[],f=s.shape;for(const d of s.keys){const m=f[d]._zod.run({value:c[d],issues:[]},l);m instanceof Promise?u.push(m.then(p=>go(p,a,d,c))):go(m,a,d,c)}return o?oc(u,c,a,l,r.value,t):u.length?Promise.all(u).then(()=>a):a}}),Hg=C("$ZodObjectJIT",(t,e)=>{Wg.init(t,e);const n=t._zod.parse,r=co(()=>ic(e)),i=d=>{const h=new cg(["shape","payload","ctx"]),m=r.value,p=z=>{const y=Bu(z);return`shape[${y}]._zod.run({ value: input[${y}], issues: [] }, ctx)`};h.write("const input = payload.value;");const b=Object.create(null);let x=0;for(const z of m.keys)b[z]=`key_${x++}`;h.write("const newResult = {};");for(const z of m.keys){const y=b[z],w=Bu(z);h.write(`const ${y} = ${p(z)};`),h.write(`
|
|
23
|
+
if (${y}.issues.length) {
|
|
24
|
+
payload.issues = payload.issues.concat(${y}.issues.map(iss => ({
|
|
25
25
|
...iss,
|
|
26
|
-
path: iss.path ? [${
|
|
26
|
+
path: iss.path ? [${w}, ...iss.path] : [${w}]
|
|
27
27
|
})));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
if (${
|
|
32
|
-
if (${
|
|
33
|
-
newResult[${
|
|
31
|
+
if (${y}.value === undefined) {
|
|
32
|
+
if (${w} in input) {
|
|
33
|
+
newResult[${w}] = undefined;
|
|
34
34
|
}
|
|
35
35
|
} else {
|
|
36
|
-
newResult[${
|
|
36
|
+
newResult[${w}] = ${y}.value;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
`)}h.write("payload.value = newResult;"),h.write("return payload;");const k=h.compile();return(z,b)=>k(d,z,b)};let s;const o=ai,a=!Du.jitless,c=a&&Kp.value,u=e.catchall;let f;t._zod.parse=(d,h)=>{f??(f=r.value);const m=d.value;return o(m)?a&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(s||(s=i(e.shape)),d=s(d,h),u?ec([],m,d,h,f,t):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),d)}});function tc(t,e,n,r){for(const s of t)if(s.issues.length===0)return e.value=s.value,e;const i=t.filter(s=>!kr(s));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(s=>s.issues.map(o=>Pn(o,r,$n())))}),e)}const nc=C("$ZodUnion",(t,e)=>{ve.init(t,e),de(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),de(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),de(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),de(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(s=>s._zod.pattern);return new RegExp(`^(${i.map(s=>ko(s.source)).join("|")})$`)}});const n=e.options.length===1,r=e.options[0]._zod.run;t._zod.parse=(i,s)=>{if(n)return r(i,s);let o=!1;const a=[];for(const l of e.options){const c=l._zod.run({value:i.value,issues:[]},s);if(c instanceof Promise)a.push(c),o=!0;else{if(c.issues.length===0)return c;a.push(c)}}return o?Promise.all(a).then(l=>tc(l,i,t,s)):tc(a,i,t,s)}}),Lg=C("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,nc.init(t,e);const n=t._zod.parse;de(t._zod,"propValues",()=>{const i={};for(const s of e.options){const o=s._zod.propValues;if(!o||Object.keys(o).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(s)}"`);for(const[a,l]of Object.entries(o)){i[a]||(i[a]=new Set);for(const c of l)i[a].add(c)}}return i});const r=us(()=>{var o;const i=e.options,s=new Map;for(const a of i){const l=(o=a._zod.propValues)==null?void 0:o[e.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of l){if(s.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);s.set(c,a)}}return s});t._zod.parse=(i,s)=>{const o=i.value;if(!ai(o))return i.issues.push({code:"invalid_type",expected:"object",input:o,inst:t}),i;const a=r.value.get(o==null?void 0:o[e.discriminator]);return a?a._zod.run(i,s):e.unionFallback?n(i,s):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:o,path:[e.discriminator],inst:t}),i)}}),jg=C("$ZodIntersection",(t,e)=>{ve.init(t,e),t._zod.parse=(n,r)=>{const i=n.value,s=e.left._zod.run({value:i,issues:[]},r),o=e.right._zod.run({value:i,issues:[]},r);return s instanceof Promise||o instanceof Promise?Promise.all([s,o]).then(([l,c])=>rc(n,l,c)):rc(n,s,o)}});function $o(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(wr(t)&&wr(e)){const n=Object.keys(e),r=Object.keys(t).filter(s=>n.indexOf(s)!==-1),i={...t,...e};for(const s of r){const o=$o(t[s],e[s]);if(!o.valid)return{valid:!1,mergeErrorPath:[s,...o.mergeErrorPath]};i[s]=o.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const i=t[r],s=e[r],o=$o(i,s);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function rc(t,e,n){if(e.issues.length&&t.issues.push(...e.issues),n.issues.length&&t.issues.push(...n.issues),kr(t))return t;const r=$o(e.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return t.value=r.data,t}const Ug=C("$ZodRecord",(t,e)=>{ve.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!wr(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),n;const s=[],o=e.keyType._zod.values;if(o){n.value={};const a=new Set;for(const c of o)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?s.push(u.then(f=>{f.issues.length&&n.issues.push(...Tr(c,f.issues)),n.value[c]=f.value})):(u.issues.length&&n.issues.push(...Tr(c,u.issues)),n.value[c]=u.value)}let l;for(const c in i)a.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const l=e.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?n.value[a]=i[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>Pn(u,r,$n())),input:a,path:[a],inst:t});continue}const c=e.valueType._zod.run({value:i[a],issues:[]},r);c instanceof Promise?s.push(c.then(u=>{u.issues.length&&n.issues.push(...Tr(a,u.issues)),n.value[l.value]=u.value})):(c.issues.length&&n.issues.push(...Tr(a,c.issues)),n.value[l.value]=c.value)}}return s.length?Promise.all(s).then(()=>n):n}}),Vg=C("$ZodEnum",(t,e)=>{ve.init(t,e);const n=Mu(e.entries),r=new Set(n);t._zod.values=r,t._zod.pattern=new RegExp(`^(${n.filter(i=>qp.has(typeof i)).map(i=>typeof i=="string"?Sr(i):i.toString()).join("|")})$`),t._zod.parse=(i,s)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n,input:o,inst:t}),i}}),Bg=C("$ZodLiteral",(t,e)=>{if(ve.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?Sr(r):r?Sr(r.toString()):String(r)).join("|")})$`),t._zod.parse=(r,i)=>{const s=r.value;return n.has(s)||r.issues.push({code:"invalid_value",values:e.values,input:s,inst:t}),r}}),Wg=C("$ZodTransform",(t,e)=>{ve.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Iu(t.constructor.name);const i=e.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(o=>(n.value=o,n));if(i instanceof Promise)throw new xr;return n.value=i,n}});function ic(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const Hg=C("$ZodOptional",(t,e)=>{ve.init(t,e),t._zod.optin="optional",t._zod.optout="optional",de(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),de(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${ko(n.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>ic(s,n.value)):ic(i,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,r)}}),Jg=C("$ZodNullable",(t,e)=>{ve.init(t,e),de(t._zod,"optin",()=>e.innerType._zod.optin),de(t._zod,"optout",()=>e.innerType._zod.optout),de(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${ko(n.source)}|null)$`):void 0}),de(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),Kg=C("$ZodDefault",(t,e)=>{ve.init(t,e),t._zod.optin="optional",de(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>sc(s,e)):sc(i,e)}});function sc(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const qg=C("$ZodPrefault",(t,e)=>{ve.init(t,e),t._zod.optin="optional",de(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),Yg=C("$ZodNonOptional",(t,e)=>{ve.init(t,e),de(t._zod,"values",()=>{const n=e.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),t._zod.parse=(n,r)=>{const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>oc(s,t)):oc(i,t)}});function oc(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const Gg=C("$ZodCatch",(t,e)=>{ve.init(t,e),de(t._zod,"optin",()=>e.innerType._zod.optin),de(t._zod,"optout",()=>e.innerType._zod.optout),de(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(s=>(n.value=s.value,s.issues.length&&(n.value=e.catchValue({...n,error:{issues:s.issues.map(o=>Pn(o,r,$n()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(s=>Pn(s,r,$n()))},input:n.value}),n.issues=[]),n)}}),Xg=C("$ZodPipe",(t,e)=>{ve.init(t,e),de(t._zod,"values",()=>e.in._zod.values),de(t._zod,"optin",()=>e.in._zod.optin),de(t._zod,"optout",()=>e.out._zod.optout),de(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const s=e.out._zod.run(n,r);return s instanceof Promise?s.then(o=>ms(o,e.in,r)):ms(s,e.in,r)}const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(s=>ms(s,e.out,r)):ms(i,e.out,r)}});function ms(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}const Qg=C("$ZodReadonly",(t,e)=>{ve.init(t,e),de(t._zod,"propValues",()=>e.innerType._zod.propValues),de(t._zod,"values",()=>e.innerType._zod.values),de(t._zod,"optin",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),de(t._zod,"optout",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(ac):ac(i)}});function ac(t){return t.value=Object.freeze(t.value),t}const e_=C("$ZodCustom",(t,e)=>{ot.init(t,e),ve.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,i=e.fn(r);if(i instanceof Promise)return i.then(s=>lc(s,n,r,t));lc(i,n,r,t)}});function lc(t,e,n,r){if(!t){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(li(i))}}var uc;class t_{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){const r=n[0];if(this._map.set(e,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function n_(){return new t_}(uc=globalThis).__zod_globalRegistry??(uc.__zod_globalRegistry=n_());const ui=globalThis.__zod_globalRegistry;function r_(t,e){return new t({type:"string",...B(e)})}function i_(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...B(e)})}function cc(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...B(e)})}function s_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...B(e)})}function o_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(e)})}function a_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(e)})}function l_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(e)})}function u_(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...B(e)})}function c_(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...B(e)})}function f_(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(e)})}function d_(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...B(e)})}function h_(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(e)})}function p_(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...B(e)})}function m_(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...B(e)})}function g_(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(e)})}function __(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(e)})}function v_(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(e)})}function y_(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(e)})}function b_(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(e)})}function x_(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...B(e)})}function w_(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...B(e)})}function S_(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...B(e)})}function k_(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...B(e)})}function T_(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(e)})}function z_(t,e){return new t({type:"string",format:"date",check:"string_format",...B(e)})}function C_(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...B(e)})}function O_(t,e){return new t({type:"string",format:"duration",check:"string_format",...B(e)})}function $_(t,e){return new t({type:"number",checks:[],...B(e)})}function E_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...B(e)})}function P_(t,e){return new t({type:"boolean",...B(e)})}function A_(t,e){return new t({type:"undefined",...B(e)})}function I_(t,e){return new t({type:"null",...B(e)})}function D_(t){return new t({type:"any"})}function M_(t){return new t({type:"unknown"})}function N_(t,e){return new t({type:"never",...B(e)})}function fc(t,e){return new Ku({check:"less_than",...B(e),value:t,inclusive:!1})}function Eo(t,e){return new Ku({check:"less_than",...B(e),value:t,inclusive:!0})}function dc(t,e){return new qu({check:"greater_than",...B(e),value:t,inclusive:!1})}function Po(t,e){return new qu({check:"greater_than",...B(e),value:t,inclusive:!0})}function hc(t,e){return new Wm({check:"multiple_of",...B(e),value:t})}function pc(t,e){return new Jm({check:"max_length",...B(e),maximum:t})}function gs(t,e){return new Km({check:"min_length",...B(e),minimum:t})}function mc(t,e){return new qm({check:"length_equals",...B(e),length:t})}function R_(t,e){return new Ym({check:"string_format",format:"regex",...B(e),pattern:t})}function F_(t){return new Gm({check:"string_format",format:"lowercase",...B(t)})}function Z_(t){return new Xm({check:"string_format",format:"uppercase",...B(t)})}function L_(t,e){return new Qm({check:"string_format",format:"includes",...B(e),includes:t})}function j_(t,e){return new eg({check:"string_format",format:"starts_with",...B(e),prefix:t})}function U_(t,e){return new tg({check:"string_format",format:"ends_with",...B(e),suffix:t})}function zr(t){return new ng({check:"overwrite",tx:t})}function V_(t){return zr(e=>e.normalize(t))}function B_(){return zr(t=>t.trim())}function W_(){return zr(t=>t.toLowerCase())}function H_(){return zr(t=>t.toUpperCase())}function J_(){return zr(t=>Jp(t))}function K_(t,e,n){return new t({type:"array",element:e,...B(n)})}function q_(t,e,n){return new t({type:"custom",check:"custom",fn:e,...B(n)})}function Y_(t){const e=G_(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(li(r,n.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),n.issues.push(li(i))}},t(n.value,n)));return e}function G_(t,e){const n=new ot({check:"custom",...B(e)});return n._zod.check=t,n}function gc(t){let e=(t==null?void 0:t.target)??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:(t==null?void 0:t.metadata)??ui,target:e,unrepresentable:(t==null?void 0:t.unrepresentable)??"throw",override:(t==null?void 0:t.override)??(()=>{}),io:(t==null?void 0:t.io)??"output",counter:0,seen:new Map,cycles:(t==null?void 0:t.cycles)??"ref",reused:(t==null?void 0:t.reused)??"inline",external:(t==null?void 0:t.external)??void 0}}function Ne(t,e,n={path:[],schemaPath:[]}){var u,f;var r;const i=t._zod.def,s=e.seen.get(t);if(s)return s.count++,n.schemaPath.includes(t)&&(s.cycle=n.path),s.schema;const o={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,o);const a=(f=(u=t._zod).toJSONSchema)==null?void 0:f.call(u);if(a)o.schema=a;else{const d={...n,schemaPath:[...n.schemaPath,t],path:n.path},h=t._zod.parent;if(h)o.ref=h,Ne(h,e,d),e.seen.get(h).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,o.schema,d);else{const m=o.schema,p=e.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(t,e,m,d)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(o.schema,l),e.io==="input"&&nt(t)&&(delete o.schema.examples,delete o.schema.default),e.io==="input"&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,e.seen.get(t).schema}function _c(t,e){var s,o,a;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var h;const c=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const m=(h=t.external.registry.get(l[0]))==null?void 0:h.id,p=t.external.uri??(x=>x);if(m)return{ref:p(m)};const y=l[1].defId??l[1].schema.id??`schema${t.counter++}`;return l[1].defId=y,{defId:y,ref:`${p("__shared")}#/${c}/${y}`}}if(l[1]===n)return{ref:"#"};const f=`#/${c}/`,d=l[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:f+d}},i=l=>{if(l[1].schema.$ref)return;const c=l[1],{ref:u,defId:f}=r(l);c.def={...c.schema},f&&(c.defId=f);const d=c.schema;for(const h in d)delete d[h];d.$ref=u};if(t.cycles==="throw")for(const l of t.seen.entries()){const c=l[1];if(c.cycle)throw new Error(`Cycle detected: #/${(s=c.cycle)==null?void 0:s.join("/")}/<root>
|
|
39
|
+
`)}h.write("payload.value = newResult;"),h.write("return payload;");const k=h.compile();return(z,y)=>k(d,z,y)};let o;const s=ui,a=!Lu.jitless,c=a&&tm.value,u=e.catchall;let f;t._zod.parse=(d,h)=>{f??(f=r.value);const m=d.value;return s(m)?a&&c&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(o||(o=i(e.shape)),d=o(d,h),u?oc([],m,d,h,f,t):d):n(d,h):(d.issues.push({expected:"object",code:"invalid_type",input:m,inst:t}),d)}});function sc(t,e,n,r){for(const o of t)if(o.issues.length===0)return e.value=o.value,e;const i=t.filter(o=>!zr(o));return i.length===1?(e.value=i[0].value,i[0]):(e.issues.push({code:"invalid_union",input:e.value,inst:n,errors:t.map(o=>o.issues.map(s=>Rn(s,r,In())))}),e)}const ac=C("$ZodUnion",(t,e)=>{xe.init(t,e),pe(t._zod,"optin",()=>e.options.some(i=>i._zod.optin==="optional")?"optional":void 0),pe(t._zod,"optout",()=>e.options.some(i=>i._zod.optout==="optional")?"optional":void 0),pe(t._zod,"values",()=>{if(e.options.every(i=>i._zod.values))return new Set(e.options.flatMap(i=>Array.from(i._zod.values)))}),pe(t._zod,"pattern",()=>{if(e.options.every(i=>i._zod.pattern)){const i=e.options.map(o=>o._zod.pattern);return new RegExp(`^(${i.map(o=>Cs(o.source)).join("|")})$`)}});const n=e.options.length===1,r=e.options[0]._zod.run;t._zod.parse=(i,o)=>{if(n)return r(i,o);let s=!1;const a=[];for(const l of e.options){const c=l._zod.run({value:i.value,issues:[]},o);if(c instanceof Promise)a.push(c),s=!0;else{if(c.issues.length===0)return c;a.push(c)}}return s?Promise.all(a).then(l=>sc(l,i,t,o)):sc(a,i,t,o)}}),Jg=C("$ZodDiscriminatedUnion",(t,e)=>{e.inclusive=!1,ac.init(t,e);const n=t._zod.parse;pe(t._zod,"propValues",()=>{const i={};for(const o of e.options){const s=o._zod.propValues;if(!s||Object.keys(s).length===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(o)}"`);for(const[a,l]of Object.entries(s)){i[a]||(i[a]=new Set);for(const c of l)i[a].add(c)}}return i});const r=co(()=>{var s;const i=e.options,o=new Map;for(const a of i){const l=(s=a._zod.propValues)==null?void 0:s[e.discriminator];if(!l||l.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(a)}"`);for(const c of l){if(o.has(c))throw new Error(`Duplicate discriminator value "${String(c)}"`);o.set(c,a)}}return o});t._zod.parse=(i,o)=>{const s=i.value;if(!ui(s))return i.issues.push({code:"invalid_type",expected:"object",input:s,inst:t}),i;const a=r.value.get(s==null?void 0:s[e.discriminator]);return a?a._zod.run(i,o):e.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:e.discriminator,input:s,path:[e.discriminator],inst:t}),i)}}),Gg=C("$ZodIntersection",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const i=n.value,o=e.left._zod.run({value:i,issues:[]},r),s=e.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||s instanceof Promise?Promise.all([o,s]).then(([l,c])=>lc(n,l,c)):lc(n,o,s)}});function Is(t,e){if(t===e)return{valid:!0,data:t};if(t instanceof Date&&e instanceof Date&&+t==+e)return{valid:!0,data:t};if(kr(t)&&kr(e)){const n=Object.keys(e),r=Object.keys(t).filter(o=>n.indexOf(o)!==-1),i={...t,...e};for(const o of r){const s=Is(t[o],e[o]);if(!s.valid)return{valid:!1,mergeErrorPath:[o,...s.mergeErrorPath]};i[o]=s.data}return{valid:!0,data:i}}if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<t.length;r++){const i=t[r],o=e[r],s=Is(i,o);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function lc(t,e,n){if(e.issues.length&&t.issues.push(...e.issues),n.issues.length&&t.issues.push(...n.issues),zr(t))return t;const r=Is(e.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return t.value=r.data,t}const Kg=C("$ZodRecord",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{const i=n.value;if(!kr(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:t}),n;const o=[],s=e.keyType._zod.values;if(s){n.value={};const a=new Set;for(const c of s)if(typeof c=="string"||typeof c=="number"||typeof c=="symbol"){a.add(typeof c=="number"?c.toString():c);const u=e.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?o.push(u.then(f=>{f.issues.length&&n.issues.push(...Cr(c,f.issues)),n.value[c]=f.value})):(u.issues.length&&n.issues.push(...Cr(c,u.issues)),n.value[c]=u.value)}let l;for(const c in i)a.has(c)||(l=l??[],l.push(c));l&&l.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:t,keys:l})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const l=e.keyType._zod.run({value:a,issues:[]},r);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(l.issues.length){e.mode==="loose"?n.value[a]=i[a]:n.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(u=>Rn(u,r,In())),input:a,path:[a],inst:t});continue}const c=e.valueType._zod.run({value:i[a],issues:[]},r);c instanceof Promise?o.push(c.then(u=>{u.issues.length&&n.issues.push(...Cr(a,u.issues)),n.value[l.value]=u.value})):(c.issues.length&&n.issues.push(...Cr(a,c.issues)),n.value[l.value]=c.value)}}return o.length?Promise.all(o).then(()=>n):n}}),qg=C("$ZodEnum",(t,e)=>{xe.init(t,e);const n=Zu(e.entries),r=new Set(n);t._zod.values=r,t._zod.pattern=new RegExp(`^(${n.filter(i=>nm.has(typeof i)).map(i=>typeof i=="string"?Tr(i):i.toString()).join("|")})$`),t._zod.parse=(i,o)=>{const s=i.value;return r.has(s)||i.issues.push({code:"invalid_value",values:n,input:s,inst:t}),i}}),Yg=C("$ZodLiteral",(t,e)=>{if(xe.init(t,e),e.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(e.values);t._zod.values=n,t._zod.pattern=new RegExp(`^(${e.values.map(r=>typeof r=="string"?Tr(r):r?Tr(r.toString()):String(r)).join("|")})$`),t._zod.parse=(r,i)=>{const o=r.value;return n.has(o)||r.issues.push({code:"invalid_value",values:e.values,input:o,inst:t}),r}}),Xg=C("$ZodTransform",(t,e)=>{xe.init(t,e),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Mu(t.constructor.name);const i=e.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(s=>(n.value=s,n));if(i instanceof Promise)throw new Sr;return n.value=i,n}});function uc(t,e){return t.issues.length&&e===void 0?{issues:[],value:void 0}:t}const Qg=C("$ZodOptional",(t,e)=>{xe.init(t,e),t._zod.optin="optional",t._zod.optout="optional",pe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,void 0]):void 0),pe(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Cs(n.source)})?$`):void 0}),t._zod.parse=(n,r)=>{if(e.innerType._zod.optin==="optional"){const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>uc(o,n.value)):uc(i,n.value)}return n.value===void 0?n:e.innerType._zod.run(n,r)}}),e_=C("$ZodNullable",(t,e)=>{xe.init(t,e),pe(t._zod,"optin",()=>e.innerType._zod.optin),pe(t._zod,"optout",()=>e.innerType._zod.optout),pe(t._zod,"pattern",()=>{const n=e.innerType._zod.pattern;return n?new RegExp(`^(${Cs(n.source)}|null)$`):void 0}),pe(t._zod,"values",()=>e.innerType._zod.values?new Set([...e.innerType._zod.values,null]):void 0),t._zod.parse=(n,r)=>n.value===null?n:e.innerType._zod.run(n,r)}),t_=C("$ZodDefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",pe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);if(n.value===void 0)return n.value=e.defaultValue,n;const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>cc(o,e)):cc(i,e)}});function cc(t,e){return t.value===void 0&&(t.value=e.defaultValue),t}const n_=C("$ZodPrefault",(t,e)=>{xe.init(t,e),t._zod.optin="optional",pe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=e.defaultValue),e.innerType._zod.run(n,r))}),r_=C("$ZodNonOptional",(t,e)=>{xe.init(t,e),pe(t._zod,"values",()=>{const n=e.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),t._zod.parse=(n,r)=>{const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>fc(o,t)):fc(i,t)}});function fc(t,e){return!t.issues.length&&t.value===void 0&&t.issues.push({code:"invalid_type",expected:"nonoptional",input:t.value,inst:e}),t}const i_=C("$ZodCatch",(t,e)=>{xe.init(t,e),pe(t._zod,"optin",()=>e.innerType._zod.optin),pe(t._zod,"optout",()=>e.innerType._zod.optout),pe(t._zod,"values",()=>e.innerType._zod.values),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=e.catchValue({...n,error:{issues:o.issues.map(s=>Rn(s,r,In()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=e.catchValue({...n,error:{issues:i.issues.map(o=>Rn(o,r,In()))},input:n.value}),n.issues=[]),n)}}),o_=C("$ZodPipe",(t,e)=>{xe.init(t,e),pe(t._zod,"values",()=>e.in._zod.values),pe(t._zod,"optin",()=>e.in._zod.optin),pe(t._zod,"optout",()=>e.out._zod.optout),pe(t._zod,"propValues",()=>e.in._zod.propValues),t._zod.parse=(n,r)=>{if(r.direction==="backward"){const o=e.out._zod.run(n,r);return o instanceof Promise?o.then(s=>_o(s,e.in,r)):_o(o,e.in,r)}const i=e.in._zod.run(n,r);return i instanceof Promise?i.then(o=>_o(o,e.out,r)):_o(i,e.out,r)}});function _o(t,e,n){return t.issues.length?(t.aborted=!0,t):e._zod.run({value:t.value,issues:t.issues},n)}const s_=C("$ZodReadonly",(t,e)=>{xe.init(t,e),pe(t._zod,"propValues",()=>e.innerType._zod.propValues),pe(t._zod,"values",()=>e.innerType._zod.values),pe(t._zod,"optin",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),pe(t._zod,"optout",()=>{var n,r;return(r=(n=e.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),t._zod.parse=(n,r)=>{if(r.direction==="backward")return e.innerType._zod.run(n,r);const i=e.innerType._zod.run(n,r);return i instanceof Promise?i.then(dc):dc(i)}});function dc(t){return t.value=Object.freeze(t.value),t}const a_=C("$ZodCustom",(t,e)=>{lt.init(t,e),xe.init(t,e),t._zod.parse=(n,r)=>n,t._zod.check=n=>{const r=n.value,i=e.fn(r);if(i instanceof Promise)return i.then(o=>hc(o,n,r,t));hc(i,n,r,t)}});function hc(t,e,n,r){if(!t){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),e.issues.push(ci(i))}}var pc;class l_{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...n){const r=n[0];if(this._map.set(e,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,e)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){const n=this._map.get(e);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(e),this}get(e){const n=e._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const i={...r,...this._map.get(e)};return Object.keys(i).length?i:void 0}return this._map.get(e)}has(e){return this._map.has(e)}}function u_(){return new l_}(pc=globalThis).__zod_globalRegistry??(pc.__zod_globalRegistry=u_());const fi=globalThis.__zod_globalRegistry;function c_(t,e){return new t({type:"string",...W(e)})}function f_(t,e){return new t({type:"string",format:"email",check:"string_format",abort:!1,...W(e)})}function mc(t,e){return new t({type:"string",format:"guid",check:"string_format",abort:!1,...W(e)})}function d_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,...W(e)})}function h_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...W(e)})}function p_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...W(e)})}function m_(t,e){return new t({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...W(e)})}function g_(t,e){return new t({type:"string",format:"url",check:"string_format",abort:!1,...W(e)})}function __(t,e){return new t({type:"string",format:"emoji",check:"string_format",abort:!1,...W(e)})}function v_(t,e){return new t({type:"string",format:"nanoid",check:"string_format",abort:!1,...W(e)})}function b_(t,e){return new t({type:"string",format:"cuid",check:"string_format",abort:!1,...W(e)})}function y_(t,e){return new t({type:"string",format:"cuid2",check:"string_format",abort:!1,...W(e)})}function x_(t,e){return new t({type:"string",format:"ulid",check:"string_format",abort:!1,...W(e)})}function w_(t,e){return new t({type:"string",format:"xid",check:"string_format",abort:!1,...W(e)})}function S_(t,e){return new t({type:"string",format:"ksuid",check:"string_format",abort:!1,...W(e)})}function k_(t,e){return new t({type:"string",format:"ipv4",check:"string_format",abort:!1,...W(e)})}function T_(t,e){return new t({type:"string",format:"ipv6",check:"string_format",abort:!1,...W(e)})}function z_(t,e){return new t({type:"string",format:"cidrv4",check:"string_format",abort:!1,...W(e)})}function C_(t,e){return new t({type:"string",format:"cidrv6",check:"string_format",abort:!1,...W(e)})}function $_(t,e){return new t({type:"string",format:"base64",check:"string_format",abort:!1,...W(e)})}function O_(t,e){return new t({type:"string",format:"base64url",check:"string_format",abort:!1,...W(e)})}function E_(t,e){return new t({type:"string",format:"e164",check:"string_format",abort:!1,...W(e)})}function P_(t,e){return new t({type:"string",format:"jwt",check:"string_format",abort:!1,...W(e)})}function I_(t,e){return new t({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...W(e)})}function A_(t,e){return new t({type:"string",format:"date",check:"string_format",...W(e)})}function R_(t,e){return new t({type:"string",format:"time",check:"string_format",precision:null,...W(e)})}function D_(t,e){return new t({type:"string",format:"duration",check:"string_format",...W(e)})}function F_(t,e){return new t({type:"number",checks:[],...W(e)})}function N_(t,e){return new t({type:"number",check:"number_format",abort:!1,format:"safeint",...W(e)})}function M_(t,e){return new t({type:"boolean",...W(e)})}function L_(t,e){return new t({type:"undefined",...W(e)})}function Z_(t,e){return new t({type:"null",...W(e)})}function j_(t){return new t({type:"any"})}function B_(t){return new t({type:"unknown"})}function U_(t,e){return new t({type:"never",...W(e)})}function gc(t,e){return new Qu({check:"less_than",...W(e),value:t,inclusive:!1})}function As(t,e){return new Qu({check:"less_than",...W(e),value:t,inclusive:!0})}function _c(t,e){return new ec({check:"greater_than",...W(e),value:t,inclusive:!1})}function Rs(t,e){return new ec({check:"greater_than",...W(e),value:t,inclusive:!0})}function vc(t,e){return new Xm({check:"multiple_of",...W(e),value:t})}function bc(t,e){return new eg({check:"max_length",...W(e),maximum:t})}function vo(t,e){return new tg({check:"min_length",...W(e),minimum:t})}function yc(t,e){return new ng({check:"length_equals",...W(e),length:t})}function V_(t,e){return new rg({check:"string_format",format:"regex",...W(e),pattern:t})}function W_(t){return new ig({check:"string_format",format:"lowercase",...W(t)})}function H_(t){return new og({check:"string_format",format:"uppercase",...W(t)})}function J_(t,e){return new sg({check:"string_format",format:"includes",...W(e),includes:t})}function G_(t,e){return new ag({check:"string_format",format:"starts_with",...W(e),prefix:t})}function K_(t,e){return new lg({check:"string_format",format:"ends_with",...W(e),suffix:t})}function $r(t){return new ug({check:"overwrite",tx:t})}function q_(t){return $r(e=>e.normalize(t))}function Y_(){return $r(t=>t.trim())}function X_(){return $r(t=>t.toLowerCase())}function Q_(){return $r(t=>t.toUpperCase())}function e0(){return $r(t=>em(t))}function t0(t,e,n){return new t({type:"array",element:e,...W(n)})}function n0(t,e,n){return new t({type:"custom",check:"custom",fn:e,...W(n)})}function r0(t){const e=i0(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ci(r,n.value,e._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=e),i.continue??(i.continue=!e._zod.def.abort),n.issues.push(ci(i))}},t(n.value,n)));return e}function i0(t,e){const n=new lt({check:"custom",...W(e)});return n._zod.check=t,n}function xc(t){let e=(t==null?void 0:t.target)??"draft-2020-12";return e==="draft-4"&&(e="draft-04"),e==="draft-7"&&(e="draft-07"),{processors:t.processors??{},metadataRegistry:(t==null?void 0:t.metadata)??fi,target:e,unrepresentable:(t==null?void 0:t.unrepresentable)??"throw",override:(t==null?void 0:t.override)??(()=>{}),io:(t==null?void 0:t.io)??"output",counter:0,seen:new Map,cycles:(t==null?void 0:t.cycles)??"ref",reused:(t==null?void 0:t.reused)??"inline",external:(t==null?void 0:t.external)??void 0}}function Ze(t,e,n={path:[],schemaPath:[]}){var u,f;var r;const i=t._zod.def,o=e.seen.get(t);if(o)return o.count++,n.schemaPath.includes(t)&&(o.cycle=n.path),o.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};e.seen.set(t,s);const a=(f=(u=t._zod).toJSONSchema)==null?void 0:f.call(u);if(a)s.schema=a;else{const d={...n,schemaPath:[...n.schemaPath,t],path:n.path},h=t._zod.parent;if(h)s.ref=h,Ze(h,e,d),e.seen.get(h).isParent=!0;else if(t._zod.processJSONSchema)t._zod.processJSONSchema(e,s.schema,d);else{const m=s.schema,p=e.processors[i.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);p(t,e,m,d)}}const l=e.metadataRegistry.get(t);return l&&Object.assign(s.schema,l),e.io==="input"&&it(t)&&(delete s.schema.examples,delete s.schema.default),e.io==="input"&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,e.seen.get(t).schema}function wc(t,e){var o,s,a;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var h;const c=t.target==="draft-2020-12"?"$defs":"definitions";if(t.external){const m=(h=t.external.registry.get(l[0]))==null?void 0:h.id,p=t.external.uri??(x=>x);if(m)return{ref:p(m)};const b=l[1].defId??l[1].schema.id??`schema${t.counter++}`;return l[1].defId=b,{defId:b,ref:`${p("__shared")}#/${c}/${b}`}}if(l[1]===n)return{ref:"#"};const f=`#/${c}/`,d=l[1].schema.id??`__schema${t.counter++}`;return{defId:d,ref:f+d}},i=l=>{if(l[1].schema.$ref)return;const c=l[1],{ref:u,defId:f}=r(l);c.def={...c.schema},f&&(c.defId=f);const d=c.schema;for(const h in d)delete d[h];d.$ref=u};if(t.cycles==="throw")for(const l of t.seen.entries()){const c=l[1];if(c.cycle)throw new Error(`Cycle detected: #/${(o=c.cycle)==null?void 0:o.join("/")}/<root>
|
|
40
40
|
|
|
41
|
-
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of t.seen.entries()){const c=l[1];if(e===l[0]){i(l);continue}if(t.external){const f=(o=t.external.registry.get(l[0]))==null?void 0:o.id;if(e!==l[0]&&f){i(l);continue}}if((a=t.metadataRegistry.get(l[0]))==null?void 0:a.id){i(l);continue}if(c.cycle){i(l);continue}if(c.count>1&&t.reused==="ref"){i(l);continue}}}function vc(t,e){var o,a,l;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=t.seen.get(c),f=u.def??u.schema,d={...f};if(u.ref===null)return;const h=u.ref;if(u.ref=null,h){r(h);const m=t.seen.get(h).schema;m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(m)):(Object.assign(f,m),Object.assign(f,d))}u.isParent||t.override({zodSchema:c,jsonSchema:f,path:u.path??[]})};for(const c of[...t.seen.entries()].reverse())r(c[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,(o=t.external)!=null&&o.uri){const c=(a=t.external.registry.get(e))==null?void 0:a.id;if(!c)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(c)}Object.assign(i,n.def??n.schema);const s=((l=t.external)==null?void 0:l.defs)??{};for(const c of t.seen.entries()){const u=c[1];u.def&&u.defId&&(s[u.defId]=u.def)}t.external||Object.keys(s).length>0&&(t.target==="draft-2020-12"?i.$defs=s:i.definitions=s);try{const c=JSON.parse(JSON.stringify(i));return Object.defineProperty(c,"~standard",{value:{...e["~standard"],jsonSchema:{input:_s(e,"input"),output:_s(e,"output")}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function nt(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return nt(r.element,n);if(r.type==="set")return nt(r.valueType,n);if(r.type==="lazy")return nt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return nt(r.innerType,n);if(r.type==="intersection")return nt(r.left,n)||nt(r.right,n);if(r.type==="record"||r.type==="map")return nt(r.keyType,n)||nt(r.valueType,n);if(r.type==="pipe")return nt(r.in,n)||nt(r.out,n);if(r.type==="object"){for(const i in r.shape)if(nt(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(nt(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(nt(i,n))return!0;return!!(r.rest&&nt(r.rest,n))}return!1}const X_=(t,e={})=>n=>{const r=gc({...n,processors:e});return Ne(t,r),_c(r,t),vc(r,t)},_s=(t,e)=>n=>{const{libraryOptions:r,target:i}=n??{},s=gc({...r??{},target:i,io:e,processors:{}});return Ne(t,s),_c(s,t),vc(s,t)},Q_={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},e0=(t,e,n,r)=>{const i=n;i.type="string";const{minimum:s,maximum:o,format:a,patterns:l,contentEncoding:c}=t._zod.bag;if(typeof s=="number"&&(i.minLength=s),typeof o=="number"&&(i.maxLength=o),a&&(i.format=Q_[a]??a,i.format===""&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?i.pattern=u[0].source:u.length>1&&(i.allOf=[...u.map(f=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},t0=(t,e,n,r)=>{const i=n,{minimum:s,maximum:o,format:a,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof s=="number"&&(i.minimum=s,typeof u=="number"&&e.target!=="draft-04"&&(u>=s?delete i.minimum:delete i.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c),typeof o=="number"&&(i.maximum=o,typeof c=="number"&&e.target!=="draft-04"&&(c<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},n0=(t,e,n,r)=>{n.type="boolean"},r0=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},i0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},s0=(t,e,n,r)=>{n.not={}},o0=(t,e,n,r)=>{},a0=(t,e,n,r)=>{},l0=(t,e,n,r)=>{const i=t._zod.def,s=Mu(i.entries);s.every(o=>typeof o=="number")&&(n.type="number"),s.every(o=>typeof o=="string")&&(n.type="string"),n.enum=s},u0=(t,e,n,r)=>{const i=t._zod.def,s=[];for(const o of i.values)if(o===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof o=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(o))}else s.push(o);if(s.length!==0)if(s.length===1){const o=s[0];n.type=o===null?"null":typeof o,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[o]:n.const=o}else s.every(o=>typeof o=="number")&&(n.type="number"),s.every(o=>typeof o=="string")&&(n.type="string"),s.every(o=>typeof o=="boolean")&&(n.type="boolean"),s.every(o=>o===null)&&(n.type="null"),n.enum=s},c0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},f0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},d0=(t,e,n,r)=>{const i=n,s=t._zod.def,{minimum:o,maximum:a}=t._zod.bag;typeof o=="number"&&(i.minItems=o),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Ne(s.element,e,{...r,path:[...r.path,"items"]})},h0=(t,e,n,r)=>{var c;const i=n,s=t._zod.def;i.type="object",i.properties={};const o=s.shape;for(const u in o)i.properties[u]=Ne(o[u],e,{...r,path:[...r.path,"properties",u]});const a=new Set(Object.keys(o)),l=new Set([...a].filter(u=>{const f=s.shape[u]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((c=s.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:s.catchall?s.catchall&&(i.additionalProperties=Ne(s.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},p0=(t,e,n,r)=>{const i=t._zod.def,s=i.inclusive===!1,o=i.options.map((a,l)=>Ne(a,e,{...r,path:[...r.path,s?"oneOf":"anyOf",l]}));s?n.oneOf=o:n.anyOf=o},m0=(t,e,n,r)=>{const i=t._zod.def,s=Ne(i.left,e,{...r,path:[...r.path,"allOf",0]}),o=Ne(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,l=[...a(s)?s.allOf:[s],...a(o)?o.allOf:[o]];n.allOf=l},g0=(t,e,n,r)=>{const i=n,s=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=Ne(s.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Ne(s.valueType,e,{...r,path:[...r.path,"additionalProperties"]})},_0=(t,e,n,r)=>{const i=t._zod.def,s=Ne(i.innerType,e,r),o=e.seen.get(t);e.target==="openapi-3.0"?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[s,{type:"null"}]},v0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType},y0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},b0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},x0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=o},w0=(t,e,n,r)=>{const i=t._zod.def,s=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Ne(s,e,r);const o=e.seen.get(t);o.ref=s},S0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType,n.readOnly=!0},k0=(t,e,n,r)=>{const i=t._zod.def;Ne(i.innerType,e,r);const s=e.seen.get(t);s.ref=i.innerType},T0=C("ZodISODateTime",(t,e)=>{gg.init(t,e),ze.init(t,e)});function z0(t){return T_(T0,t)}const C0=C("ZodISODate",(t,e)=>{_g.init(t,e),ze.init(t,e)});function O0(t){return z_(C0,t)}const $0=C("ZodISOTime",(t,e)=>{vg.init(t,e),ze.init(t,e)});function E0(t){return C_($0,t)}const P0=C("ZodISODuration",(t,e)=>{yg.init(t,e),ze.init(t,e)});function A0(t){return O_(P0,t)}const Et=C("ZodError",(t,e)=>{ju.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>om(t,n)},flatten:{value:n=>sm(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,wo,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,wo,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),I0=zo(Et),D0=Co(Et),M0=fs(Et),N0=ds(Et),R0=um(Et),F0=cm(Et),Z0=fm(Et),L0=dm(Et),j0=hm(Et),U0=pm(Et),V0=mm(Et),B0=gm(Et),xe=C("ZodType",(t,e)=>(ve.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:_s(t,"input"),output:_s(t,"output")}}),t.toJSONSchema=X_(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(Qn(e,{checks:[...e.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),t.clone=(n,r)=>En(t,n,r),t.brand=()=>t,t.register=(n,r)=>(n.add(t,r),t),t.parse=(n,r)=>I0(t,n,r,{callee:t.parse}),t.safeParse=(n,r)=>M0(t,n,r),t.parseAsync=async(n,r)=>D0(t,n,r,{callee:t.parseAsync}),t.safeParseAsync=async(n,r)=>N0(t,n,r),t.spa=t.safeParseAsync,t.encode=(n,r)=>R0(t,n,r),t.decode=(n,r)=>F0(t,n,r),t.encodeAsync=async(n,r)=>Z0(t,n,r),t.decodeAsync=async(n,r)=>L0(t,n,r),t.safeEncode=(n,r)=>j0(t,n,r),t.safeDecode=(n,r)=>U0(t,n,r),t.safeEncodeAsync=async(n,r)=>V0(t,n,r),t.safeDecodeAsync=async(n,r)=>B0(t,n,r),t.refine=(n,r)=>t.check(Lv(n,r)),t.superRefine=n=>t.check(jv(n)),t.overwrite=n=>t.check(zr(n)),t.optional=()=>$c(t),t.nullable=()=>Ec(t),t.nullish=()=>$c(Ec(t)),t.nonoptional=n=>Iv(t,n),t.array=()=>Ao(t),t.or=n=>Io([t,n]),t.and=n=>Sv(t,n),t.transform=n=>No(t,Cc(n)),t.default=n=>Ev(t,n),t.prefault=n=>Av(t,n),t.catch=n=>Mv(t,n),t.pipe=n=>No(t,n),t.readonly=()=>Fv(t),t.describe=n=>{const r=t.clone();return ui.add(r,{description:n}),r},Object.defineProperty(t,"description",{get(){var n;return(n=ui.get(t))==null?void 0:n.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return ui.get(t);const r=t.clone();return ui.add(r,n[0]),r},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),yc=C("_ZodString",(t,e)=>{Oo.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(r,i,s)=>e0(t,r,i);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...r)=>t.check(R_(...r)),t.includes=(...r)=>t.check(L_(...r)),t.startsWith=(...r)=>t.check(j_(...r)),t.endsWith=(...r)=>t.check(U_(...r)),t.min=(...r)=>t.check(gs(...r)),t.max=(...r)=>t.check(pc(...r)),t.length=(...r)=>t.check(mc(...r)),t.nonempty=(...r)=>t.check(gs(1,...r)),t.lowercase=r=>t.check(F_(r)),t.uppercase=r=>t.check(Z_(r)),t.trim=()=>t.check(B_()),t.normalize=(...r)=>t.check(V_(...r)),t.toLowerCase=()=>t.check(W_()),t.toUpperCase=()=>t.check(H_()),t.slugify=()=>t.check(J_())}),W0=C("ZodString",(t,e)=>{Oo.init(t,e),yc.init(t,e),t.email=n=>t.check(i_(H0,n)),t.url=n=>t.check(u_(J0,n)),t.jwt=n=>t.check(k_(lv,n)),t.emoji=n=>t.check(c_(K0,n)),t.guid=n=>t.check(cc(bc,n)),t.uuid=n=>t.check(s_(vs,n)),t.uuidv4=n=>t.check(o_(vs,n)),t.uuidv6=n=>t.check(a_(vs,n)),t.uuidv7=n=>t.check(l_(vs,n)),t.nanoid=n=>t.check(f_(q0,n)),t.guid=n=>t.check(cc(bc,n)),t.cuid=n=>t.check(d_(Y0,n)),t.cuid2=n=>t.check(h_(G0,n)),t.ulid=n=>t.check(p_(X0,n)),t.base64=n=>t.check(x_(sv,n)),t.base64url=n=>t.check(w_(ov,n)),t.xid=n=>t.check(m_(Q0,n)),t.ksuid=n=>t.check(g_(ev,n)),t.ipv4=n=>t.check(__(tv,n)),t.ipv6=n=>t.check(v_(nv,n)),t.cidrv4=n=>t.check(y_(rv,n)),t.cidrv6=n=>t.check(b_(iv,n)),t.e164=n=>t.check(S_(av,n)),t.datetime=n=>t.check(z0(n)),t.date=n=>t.check(O0(n)),t.time=n=>t.check(E0(n)),t.duration=n=>t.check(A0(n))});function er(t){return r_(W0,t)}const ze=C("ZodStringFormat",(t,e)=>{we.init(t,e),yc.init(t,e)}),H0=C("ZodEmail",(t,e)=>{ag.init(t,e),ze.init(t,e)}),bc=C("ZodGUID",(t,e)=>{sg.init(t,e),ze.init(t,e)}),vs=C("ZodUUID",(t,e)=>{og.init(t,e),ze.init(t,e)}),J0=C("ZodURL",(t,e)=>{lg.init(t,e),ze.init(t,e)}),K0=C("ZodEmoji",(t,e)=>{ug.init(t,e),ze.init(t,e)}),q0=C("ZodNanoID",(t,e)=>{cg.init(t,e),ze.init(t,e)}),Y0=C("ZodCUID",(t,e)=>{fg.init(t,e),ze.init(t,e)}),G0=C("ZodCUID2",(t,e)=>{dg.init(t,e),ze.init(t,e)}),X0=C("ZodULID",(t,e)=>{hg.init(t,e),ze.init(t,e)}),Q0=C("ZodXID",(t,e)=>{pg.init(t,e),ze.init(t,e)}),ev=C("ZodKSUID",(t,e)=>{mg.init(t,e),ze.init(t,e)}),tv=C("ZodIPv4",(t,e)=>{bg.init(t,e),ze.init(t,e)}),nv=C("ZodIPv6",(t,e)=>{xg.init(t,e),ze.init(t,e)}),rv=C("ZodCIDRv4",(t,e)=>{wg.init(t,e),ze.init(t,e)}),iv=C("ZodCIDRv6",(t,e)=>{Sg.init(t,e),ze.init(t,e)}),sv=C("ZodBase64",(t,e)=>{kg.init(t,e),ze.init(t,e)}),ov=C("ZodBase64URL",(t,e)=>{zg.init(t,e),ze.init(t,e)}),av=C("ZodE164",(t,e)=>{Cg.init(t,e),ze.init(t,e)}),lv=C("ZodJWT",(t,e)=>{$g.init(t,e),ze.init(t,e)}),xc=C("ZodNumber",(t,e)=>{Gu.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(r,i,s)=>t0(t,r,i),t.gt=(r,i)=>t.check(dc(r,i)),t.gte=(r,i)=>t.check(Po(r,i)),t.min=(r,i)=>t.check(Po(r,i)),t.lt=(r,i)=>t.check(fc(r,i)),t.lte=(r,i)=>t.check(Eo(r,i)),t.max=(r,i)=>t.check(Eo(r,i)),t.int=r=>t.check(wc(r)),t.safe=r=>t.check(wc(r)),t.positive=r=>t.check(dc(0,r)),t.nonnegative=r=>t.check(Po(0,r)),t.negative=r=>t.check(fc(0,r)),t.nonpositive=r=>t.check(Eo(0,r)),t.multipleOf=(r,i)=>t.check(hc(r,i)),t.step=(r,i)=>t.check(hc(r,i)),t.finite=()=>t;const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function uv(t){return $_(xc,t)}const cv=C("ZodNumberFormat",(t,e)=>{Eg.init(t,e),xc.init(t,e)});function wc(t){return E_(cv,t)}const fv=C("ZodBoolean",(t,e)=>{Pg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>n0(t,n,r)});function ci(t){return P_(fv,t)}const dv=C("ZodUndefined",(t,e)=>{Ag.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>i0(t,n)});function Sc(t){return A_(dv,t)}const hv=C("ZodNull",(t,e)=>{Ig.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>r0(t,n,r)});function kc(t){return I_(hv,t)}const pv=C("ZodAny",(t,e)=>{Dg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>o0()});function mv(){return D_(pv)}const gv=C("ZodUnknown",(t,e)=>{Mg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>a0()});function Tc(){return M_(gv)}const _v=C("ZodNever",(t,e)=>{Ng.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>s0(t,n,r)});function vv(t){return N_(_v,t)}const yv=C("ZodArray",(t,e)=>{Rg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>d0(t,n,r,i),t.element=e.element,t.min=(n,r)=>t.check(gs(n,r)),t.nonempty=n=>t.check(gs(1,n)),t.max=(n,r)=>t.check(pc(n,r)),t.length=(n,r)=>t.check(mc(n,r)),t.unwrap=()=>t.element});function Ao(t,e){return K_(yv,t,e)}const bv=C("ZodObject",(t,e)=>{Zg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>h0(t,n,r,i),de(t,"shape",()=>e.shape),t.keyof=()=>gt(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Tc()}),t.loose=()=>t.clone({...t._zod.def,catchall:Tc()}),t.strict=()=>t.clone({...t._zod.def,catchall:vv()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>em(t,n),t.safeExtend=n=>tm(t,n),t.merge=n=>nm(t,n),t.pick=n=>Xp(t,n),t.omit=n=>Qp(t,n),t.partial=(...n)=>rm(Oc,t,n[0]),t.required=(...n)=>im(Pc,t,n[0])});function Ke(t,e){const n={type:"object",shape:t??{},...B(e)};return new bv(n)}const zc=C("ZodUnion",(t,e)=>{nc.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>p0(t,n,r,i),t.options=e.options});function Io(t,e){return new zc({type:"union",options:t,...B(e)})}const xv=C("ZodDiscriminatedUnion",(t,e)=>{zc.init(t,e),Lg.init(t,e)});function Do(t,e,n){return new xv({type:"union",options:e,discriminator:t,...B(n)})}const wv=C("ZodIntersection",(t,e)=>{jg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>m0(t,n,r,i)});function Sv(t,e){return new wv({type:"intersection",left:t,right:e})}const kv=C("ZodRecord",(t,e)=>{Ug.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>g0(t,n,r,i),t.keyType=e.keyType,t.valueType=e.valueType});function Tv(t,e,n){return new kv({type:"record",keyType:t,valueType:e,...B(n)})}const Mo=C("ZodEnum",(t,e)=>{Vg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(r,i,s)=>l0(t,r,i),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,i)=>{const s={};for(const o of r)if(n.has(o))s[o]=e.entries[o];else throw new Error(`Key ${o} not found in enum`);return new Mo({...e,checks:[],...B(i),entries:s})},t.exclude=(r,i)=>{const s={...e.entries};for(const o of r)if(n.has(o))delete s[o];else throw new Error(`Key ${o} not found in enum`);return new Mo({...e,checks:[],...B(i),entries:s})}});function gt(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new Mo({type:"enum",entries:n,...B(e)})}const zv=C("ZodLiteral",(t,e)=>{Bg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>u0(t,n,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function qe(t,e){return new zv({type:"literal",values:Array.isArray(t)?t:[t],...B(e)})}const Cv=C("ZodTransform",(t,e)=>{Wg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>f0(t,n),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Iu(t.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(li(s,n.value,e));else{const o=s;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),n.issues.push(li(o))}};const i=e.transform(n.value,n);return i instanceof Promise?i.then(s=>(n.value=s,n)):(n.value=i,n)}});function Cc(t){return new Cv({type:"transform",transform:t})}const Oc=C("ZodOptional",(t,e)=>{Hg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>k0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function $c(t){return new Oc({type:"optional",innerType:t})}const Ov=C("ZodNullable",(t,e)=>{Jg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>_0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Ec(t){return new Ov({type:"nullable",innerType:t})}const $v=C("ZodDefault",(t,e)=>{Kg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>y0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Ev(t,e){return new $v({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():Zu(e)}})}const Pv=C("ZodPrefault",(t,e)=>{qg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>b0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Av(t,e){return new Pv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():Zu(e)}})}const Pc=C("ZodNonOptional",(t,e)=>{Yg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>v0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Iv(t,e){return new Pc({type:"nonoptional",innerType:t,...B(e)})}const Dv=C("ZodCatch",(t,e)=>{Gg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>x0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function Mv(t,e){return new Dv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const Nv=C("ZodPipe",(t,e)=>{Xg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>w0(t,n,r,i),t.in=e.in,t.out=e.out});function No(t,e){return new Nv({type:"pipe",in:t,out:e})}const Rv=C("ZodReadonly",(t,e)=>{Qg.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>S0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Fv(t){return new Rv({type:"readonly",innerType:t})}const Zv=C("ZodCustom",(t,e)=>{e_.init(t,e),xe.init(t,e),t._zod.processJSONSchema=(n,r,i)=>c0(t,n)});function Lv(t,e={}){return q_(Zv,t,e)}function jv(t){return Y_(t)}function Uv(t,e){return No(Cc(t),e)}const ys=t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>ys(r));const e={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=e[r]||r,s=t[r];n[i]=ys(s)}return n},Jt=t=>Io([t,Ao(t),kc(),Sc()]).transform(e=>e==null?[]:Array.isArray(e)?e:[e]),ce=Io([er(),uv(),kc(),Sc()]).transform(t=>t==null?"":String(t)),Ro=er().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),Cr=Ke({id:er().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:gt(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:Tv(er(),mv()).optional().describe("Arbitrary metadata for custom behavior.")}),Vv=Cr.extend({type:qe("statement").describe("Use for high-impact titles, covers, or quotes."),title:ce.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:ce.optional().describe("Supporting text or attribution."),tag:ce.optional().describe("Small eyebrow tag above the title.")}),Bv=Ke({title:ce.describe("Feature name."),description:ce.describe("Short benefit description."),icon:Ro.optional().describe("Visual icon for the feature.")}),Wv=Cr.extend({type:qe("features").describe("Use for lists of benefits, stats, or grid items."),title:ce.describe("Section header."),description:ce.optional().describe("Contextual description."),features:Jt(Bv).describe("Array of feature cards.")}),Ac=Ke({date:ce.describe("Time marker (Year, Date, or 'Now')."),title:ce.describe("Event title."),description:ce.describe("Event details (1-2 sentences)."),icon:Ro.optional().describe("Optional marker icon.")}),Hv=Cr.extend({type:qe("timeline").describe("Use for history, roadmaps, or chronological steps."),title:ce.describe("Timeline header."),subtitle:ce.optional(),timeline:Jt(Ac).describe("Ordered events.")}),Ic=Ke({step:ce.describe("Step number/label (e.g., '01', 'A')."),title:ce.describe("Action title."),description:ce.optional().describe("Action details."),icon:Ro.optional()}),Jv=Cr.extend({type:qe("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:ce.describe("Process header."),subtitle:ce.optional(),steps:Jt(Ic).describe("Sequential steps.")}),Kv=Cr.extend({type:qe("half").describe("Use when you have a strong visual + explanations."),imageSide:gt(["left","right"]).default("left").describe("Which side the image goes on."),image:ce.describe("URL to the image."),title:ce.describe("Headline."),tag:ce.optional(),paragraphs:Jt(er()).describe("Array of text blocks/paragraphs."),cta:ce.optional().describe("Call to Action label (button).")}),fi=gt(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),pn=gt(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),qv=gt(["top","center","bottom"]).describe("Vertical alignment."),Yv=gt(["left","center","right"]).describe("Horizontal alignment."),Dc=gt(["left","center","right"]).describe("Text alignment."),Mc=Ke({type:qe("title").describe("Large heading text."),text:ce.describe("The heading text."),size:gt(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:Dc.optional().describe("Text alignment. Default: 'left'.")}),Nc=Ke({type:qe("text").describe("Body paragraph text."),text:ce.describe("The paragraph text."),align:Dc.optional().describe("Text alignment. Default: 'left'."),muted:ci().optional().describe("Muted/subtle appearance. Default: false.")}),Rc=Ke({type:qe("bullets").describe("Unordered bullet list."),items:Jt(er()).describe("List items.")}),Fc=Ke({type:qe("ordered").describe("Numbered list."),items:Jt(er()).describe("List items.")}),Gv=Ke({type:qe("image").describe("Visual media element."),src:ce.describe("Image URL."),alt:ce.optional().describe("Alt text for accessibility."),fill:ci().optional().describe("Fill container edge-to-edge. Default: true."),fit:gt(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:gt(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Zc=Ke({type:qe("button").describe("Call-to-action button."),label:ce.describe("Button label text."),action:ce.optional().describe("Action identifier emitted on click."),variant:gt(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:ci().optional().describe("Full width button. Default: false.")}),Lc=Ke({type:qe("timeline").describe("Embedded timeline with events."),items:Jt(Ac).describe("Timeline events."),compact:ci().optional().describe("Compact display mode. Default: false.")}),jc=Ke({type:qe("stepper").describe("Embedded step-by-step process."),items:Jt(Ic).describe("Step items."),compact:ci().optional().describe("Compact display mode. Default: false.")}),Xv=Ke({type:qe("spacer").describe("Adds visual spacing."),size:fi.optional().describe("Size of the space. Default: 'md'.")}),Qv=Do("type",[Mc,Nc,Rc,Fc,Zc,Lc,jc,Xv]),ey=Ke({type:qe("content").describe("Groups child elements vertically with alignment control."),elements:Jt(Qv).describe("Child elements."),valign:qv.optional().describe("Vertical alignment. Default: 'center'."),halign:Yv.optional().describe("Horizontal alignment. Default: 'left'."),gap:fi.optional().describe("Gap between children. Default: 'md'."),padding:fi.optional().describe("Internal padding. Default: 'lg'."),size:pn.optional().describe("Size in parent flex container.")}),ty=Do("type",[Gv.extend({size:pn.optional()}),ey,Mc.extend({size:pn.optional()}),Nc.extend({size:pn.optional()}),Rc.extend({size:pn.optional()}),Fc.extend({size:pn.optional()}),Zc.extend({size:pn.optional()}),Lc.extend({size:pn.optional()}),jc.extend({size:pn.optional()})]),ny=Cr.extend({type:qe("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:gt(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:fi.optional().describe("Gap between elements. Default: 'none'."),padding:fi.optional().describe("Container padding. Default: 'none'."),elements:Jt(ty).describe("Flex elements in flow order.")}),ry=Do("type",[Vv,Wv,Hv,Jv,Kv,ny]),iy=Ke({title:ce.describe("Title of the entire presentation."),author:ce.optional(),date:ce.optional()}).passthrough();Ke({meta:iy.describe("Global deck settings."),slides:Ao(Uv(ys,ry)).describe("Ordered array of slide definitions.")});const di=Symbol("LuminaStore"),sy={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function Or(t){if(typeof t=="string")return Wp(t);if(Array.isArray(t))return t.map(Or);if(t&&typeof t=="object"){const e={};for(const n in t)e[n]=Or(t[n]);return e}return t}function Uc(t,e){if(typeof t!="object"||t===null||typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Or);const n={...t};for(const r in e)e[r]===Object(e[r])?r in t?n[r]=Uc(t[r],e[r]):Object.assign(n,{[r]:Or(e[r])}):Object.assign(n,{[r]:Or(e[r])});return n}function oy(t={}){const e=ji({deck:null,currentIndex:0,options:{...sy,...t},isReady:!1,actionHistory:[]}),n=()=>!e.deck||e.deck.slides.length===0?null:e.deck.slides[e.currentIndex]||null,r=()=>e.deck?e.options.loop?!0:e.currentIndex<e.deck.slides.length-1:!1,i=()=>e.deck?e.options.loop?!0:e.currentIndex>0:!1,s=()=>!e.deck||e.deck.slides.length<=1?0:e.currentIndex/(e.deck.slides.length-1);function o(h){e.options={...e.options,...h},h.theme&&(h.theme,e.options.theme=h.theme),h.ui&&(e.options.ui={...e.options.ui,...h.ui}),h.keys&&(e.options.keys={...e.options.keys,...h.keys}),h.animation&&(e.options.animation={...e.options.animation,...h.animation})}function a(h){if(!h||!Array.isArray(h.slides)){console.error("[LuminaStore] Invalid deck format");return}const m=ys(h);e.deck=Or(m),e.currentIndex=0,e.isReady=!0,e.actionHistory=[]}function l(h){e.deck&&(e.deck=Uc(e.deck,h))}function c(h){e.actionHistory.push(h),e.actionHistory.length>50&&e.actionHistory.shift()}function u(){var p;if(!r())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let m=e.currentIndex;e.options.loop?m=(e.currentIndex+1)%h:m++,m!==e.currentIndex&&(e.currentIndex=m)}function f(){var p;if(!i())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let m=e.currentIndex;e.options.loop?m=(e.currentIndex-1+h)%h:m--,m!==e.currentIndex&&(e.currentIndex=m)}function d(h){e.deck&&h>=0&&h<e.deck.slides.length&&e.currentIndex!==h&&(e.currentIndex=h)}return{state:Ui(e),currentSlide:n,hasNext:r,hasPrev:i,progress:s,setOptions:o,loadDeck:a,patchDeck:l,recordAction:c,next:u,prev:f,goto:d}}function ay(){const t=un(di);if(!t)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:le(()=>t.currentSlide()),index:le(()=>t.state.currentIndex),total:le(()=>{var e;return((e=t.state.deck)==null?void 0:e.slides.length)||0}),next:t.next,prev:t.prev,goto:t.goto,options:t.state.options}}function ly(){const t=un(di);if(!t)return;let e=0;const n=300,r=i=>{var c,u;const{options:s}=t.state;if(!s.keyboard||!s.navigation)return;const o=Date.now();if(o-e<n)return;const a=((c=s.keys)==null?void 0:c.next)||[],l=((u=s.keys)==null?void 0:u.prev)||[];a.includes(i.key)?(t.next(),e=o):l.includes(i.key)&&(t.prev(),e=o)};Tn(()=>{window.addEventListener("keydown",r)}),Jn(()=>{window.removeEventListener("keydown",r)})}class Vc{constructor(){it(this,"handlers",new Map)}on(e,n){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n)}off(e,n){const r=this.handlers.get(e);r&&r.delete(n)}emit(e,n){const r=this.handlers.get(e);r&&r.forEach(i=>{try{i(n)}catch(s){console.error(`[LuminaBus] Error in handler for event "${e}":`,s)}})}clear(){this.handlers.clear()}}const mn=new Vc;function gn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Bc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
41
|
+
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of t.seen.entries()){const c=l[1];if(e===l[0]){i(l);continue}if(t.external){const f=(s=t.external.registry.get(l[0]))==null?void 0:s.id;if(e!==l[0]&&f){i(l);continue}}if((a=t.metadataRegistry.get(l[0]))==null?void 0:a.id){i(l);continue}if(c.cycle){i(l);continue}if(c.count>1&&t.reused==="ref"){i(l);continue}}}function Sc(t,e){var s,a,l;const n=t.seen.get(e);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=c=>{const u=t.seen.get(c),f=u.def??u.schema,d={...f};if(u.ref===null)return;const h=u.ref;if(u.ref=null,h){r(h);const m=t.seen.get(h).schema;m.$ref&&(t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(m)):(Object.assign(f,m),Object.assign(f,d))}u.isParent||t.override({zodSchema:c,jsonSchema:f,path:u.path??[]})};for(const c of[...t.seen.entries()].reverse())r(c[0]);const i={};if(t.target==="draft-2020-12"?i.$schema="https://json-schema.org/draft/2020-12/schema":t.target==="draft-07"?i.$schema="http://json-schema.org/draft-07/schema#":t.target==="draft-04"?i.$schema="http://json-schema.org/draft-04/schema#":t.target,(s=t.external)!=null&&s.uri){const c=(a=t.external.registry.get(e))==null?void 0:a.id;if(!c)throw new Error("Schema is missing an `id` property");i.$id=t.external.uri(c)}Object.assign(i,n.def??n.schema);const o=((l=t.external)==null?void 0:l.defs)??{};for(const c of t.seen.entries()){const u=c[1];u.def&&u.defId&&(o[u.defId]=u.def)}t.external||Object.keys(o).length>0&&(t.target==="draft-2020-12"?i.$defs=o:i.definitions=o);try{const c=JSON.parse(JSON.stringify(i));return Object.defineProperty(c,"~standard",{value:{...e["~standard"],jsonSchema:{input:bo(e,"input"),output:bo(e,"output")}},enumerable:!1,writable:!1}),c}catch{throw new Error("Error converting schema to JSON.")}}function it(t,e){const n=e??{seen:new Set};if(n.seen.has(t))return!1;n.seen.add(t);const r=t._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return it(r.element,n);if(r.type==="set")return it(r.valueType,n);if(r.type==="lazy")return it(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return it(r.innerType,n);if(r.type==="intersection")return it(r.left,n)||it(r.right,n);if(r.type==="record"||r.type==="map")return it(r.keyType,n)||it(r.valueType,n);if(r.type==="pipe")return it(r.in,n)||it(r.out,n);if(r.type==="object"){for(const i in r.shape)if(it(r.shape[i],n))return!0;return!1}if(r.type==="union"){for(const i of r.options)if(it(i,n))return!0;return!1}if(r.type==="tuple"){for(const i of r.items)if(it(i,n))return!0;return!!(r.rest&&it(r.rest,n))}return!1}const o0=(t,e={})=>n=>{const r=xc({...n,processors:e});return Ze(t,r),wc(r,t),Sc(r,t)},bo=(t,e)=>n=>{const{libraryOptions:r,target:i}=n??{},o=xc({...r??{},target:i,io:e,processors:{}});return Ze(t,o),wc(o,t),Sc(o,t)},s0={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a0=(t,e,n,r)=>{const i=n;i.type="string";const{minimum:o,maximum:s,format:a,patterns:l,contentEncoding:c}=t._zod.bag;if(typeof o=="number"&&(i.minLength=o),typeof s=="number"&&(i.maxLength=s),a&&(i.format=s0[a]??a,i.format===""&&delete i.format),c&&(i.contentEncoding=c),l&&l.size>0){const u=[...l];u.length===1?i.pattern=u[0].source:u.length>1&&(i.allOf=[...u.map(f=>({...e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},l0=(t,e,n,r)=>{const i=n,{minimum:o,maximum:s,format:a,multipleOf:l,exclusiveMaximum:c,exclusiveMinimum:u}=t._zod.bag;typeof a=="string"&&a.includes("int")?i.type="integer":i.type="number",typeof u=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof o=="number"&&(i.minimum=o,typeof u=="number"&&e.target!=="draft-04"&&(u>=o?delete i.minimum:delete i.exclusiveMinimum)),typeof c=="number"&&(e.target==="draft-04"||e.target==="openapi-3.0"?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c),typeof s=="number"&&(i.maximum=s,typeof c=="number"&&e.target!=="draft-04"&&(c<=s?delete i.maximum:delete i.exclusiveMaximum)),typeof l=="number"&&(i.multipleOf=l)},u0=(t,e,n,r)=>{n.type="boolean"},c0=(t,e,n,r)=>{e.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},f0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},d0=(t,e,n,r)=>{n.not={}},h0=(t,e,n,r)=>{},p0=(t,e,n,r)=>{},m0=(t,e,n,r)=>{const i=t._zod.def,o=Zu(i.entries);o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),n.enum=o},g0=(t,e,n,r)=>{const i=t._zod.def,o=[];for(const s of i.values)if(s===void 0){if(e.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof s=="bigint"){if(e.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(s))}else o.push(s);if(o.length!==0)if(o.length===1){const s=o[0];n.type=s===null?"null":typeof s,e.target==="draft-04"||e.target==="openapi-3.0"?n.enum=[s]:n.const=s}else o.every(s=>typeof s=="number")&&(n.type="number"),o.every(s=>typeof s=="string")&&(n.type="string"),o.every(s=>typeof s=="boolean")&&(n.type="boolean"),o.every(s=>s===null)&&(n.type="null"),n.enum=o},_0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},v0=(t,e,n,r)=>{if(e.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},b0=(t,e,n,r)=>{const i=n,o=t._zod.def,{minimum:s,maximum:a}=t._zod.bag;typeof s=="number"&&(i.minItems=s),typeof a=="number"&&(i.maxItems=a),i.type="array",i.items=Ze(o.element,e,{...r,path:[...r.path,"items"]})},y0=(t,e,n,r)=>{var c;const i=n,o=t._zod.def;i.type="object",i.properties={};const s=o.shape;for(const u in s)i.properties[u]=Ze(s[u],e,{...r,path:[...r.path,"properties",u]});const a=new Set(Object.keys(s)),l=new Set([...a].filter(u=>{const f=o.shape[u]._zod;return e.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(i.required=Array.from(l)),((c=o.catchall)==null?void 0:c._zod.def.type)==="never"?i.additionalProperties=!1:o.catchall?o.catchall&&(i.additionalProperties=Ze(o.catchall,e,{...r,path:[...r.path,"additionalProperties"]})):e.io==="output"&&(i.additionalProperties=!1)},x0=(t,e,n,r)=>{const i=t._zod.def,o=i.inclusive===!1,s=i.options.map((a,l)=>Ze(a,e,{...r,path:[...r.path,o?"oneOf":"anyOf",l]}));o?n.oneOf=s:n.anyOf=s},w0=(t,e,n,r)=>{const i=t._zod.def,o=Ze(i.left,e,{...r,path:[...r.path,"allOf",0]}),s=Ze(i.right,e,{...r,path:[...r.path,"allOf",1]}),a=c=>"allOf"in c&&Object.keys(c).length===1,l=[...a(o)?o.allOf:[o],...a(s)?s.allOf:[s]];n.allOf=l},S0=(t,e,n,r)=>{const i=n,o=t._zod.def;i.type="object",(e.target==="draft-07"||e.target==="draft-2020-12")&&(i.propertyNames=Ze(o.keyType,e,{...r,path:[...r.path,"propertyNames"]})),i.additionalProperties=Ze(o.valueType,e,{...r,path:[...r.path,"additionalProperties"]})},k0=(t,e,n,r)=>{const i=t._zod.def,o=Ze(i.innerType,e,r),s=e.seen.get(t);e.target==="openapi-3.0"?(s.ref=i.innerType,n.nullable=!0):n.anyOf=[o,{type:"null"}]},T0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},z0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},C0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,e.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},$0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType;let s;try{s=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=s},O0=(t,e,n,r)=>{const i=t._zod.def,o=e.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;Ze(o,e,r);const s=e.seen.get(t);s.ref=o},E0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType,n.readOnly=!0},P0=(t,e,n,r)=>{const i=t._zod.def;Ze(i.innerType,e,r);const o=e.seen.get(t);o.ref=i.innerType},I0=C("ZodISODateTime",(t,e)=>{Sg.init(t,e),Pe.init(t,e)});function A0(t){return I_(I0,t)}const R0=C("ZodISODate",(t,e)=>{kg.init(t,e),Pe.init(t,e)});function D0(t){return A_(R0,t)}const F0=C("ZodISOTime",(t,e)=>{Tg.init(t,e),Pe.init(t,e)});function N0(t){return R_(F0,t)}const M0=C("ZodISODuration",(t,e)=>{zg.init(t,e),Pe.init(t,e)});function L0(t){return D_(M0,t)}const Pt=C("ZodError",(t,e)=>{Hu.init(t,e),t.name="ZodError",Object.defineProperties(t,{format:{value:n=>hm(t,n)},flatten:{value:n=>dm(t,n)},addIssue:{value:n=>{t.issues.push(n),t.message=JSON.stringify(t.issues,Ts,2)}},addIssues:{value:n=>{t.issues.push(...n),t.message=JSON.stringify(t.issues,Ts,2)}},isEmpty:{get(){return t.issues.length===0}}})},{Parent:Error}),Z0=Os(Pt),j0=Es(Pt),B0=ho(Pt),U0=po(Pt),V0=gm(Pt),W0=_m(Pt),H0=vm(Pt),J0=bm(Pt),G0=ym(Pt),K0=xm(Pt),q0=wm(Pt),Y0=Sm(Pt),ke=C("ZodType",(t,e)=>(xe.init(t,e),Object.assign(t["~standard"],{jsonSchema:{input:bo(t,"input"),output:bo(t,"output")}}),t.toJSONSchema=o0(t,{}),t.def=e,t.type=e.type,Object.defineProperty(t,"_def",{value:e}),t.check=(...n)=>t.clone(nr(e,{checks:[...e.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),t.clone=(n,r)=>An(t,n,r),t.brand=()=>t,t.register=(n,r)=>(n.add(t,r),t),t.parse=(n,r)=>Z0(t,n,r,{callee:t.parse}),t.safeParse=(n,r)=>B0(t,n,r),t.parseAsync=async(n,r)=>j0(t,n,r,{callee:t.parseAsync}),t.safeParseAsync=async(n,r)=>U0(t,n,r),t.spa=t.safeParseAsync,t.encode=(n,r)=>V0(t,n,r),t.decode=(n,r)=>W0(t,n,r),t.encodeAsync=async(n,r)=>H0(t,n,r),t.decodeAsync=async(n,r)=>J0(t,n,r),t.safeEncode=(n,r)=>G0(t,n,r),t.safeDecode=(n,r)=>K0(t,n,r),t.safeEncodeAsync=async(n,r)=>q0(t,n,r),t.safeDecodeAsync=async(n,r)=>Y0(t,n,r),t.refine=(n,r)=>t.check(Hv(n,r)),t.superRefine=n=>t.check(Jv(n)),t.overwrite=n=>t.check($r(n)),t.optional=()=>Rc(t),t.nullable=()=>Dc(t),t.nullish=()=>Rc(Dc(t)),t.nonoptional=n=>Lv(t,n),t.array=()=>Ds(t),t.or=n=>Fs([t,n]),t.and=n=>Ov(t,n),t.transform=n=>Ls(t,Ic(n)),t.default=n=>Fv(t,n),t.prefault=n=>Mv(t,n),t.catch=n=>jv(t,n),t.pipe=n=>Ls(t,n),t.readonly=()=>Vv(t),t.describe=n=>{const r=t.clone();return fi.add(r,{description:n}),r},Object.defineProperty(t,"description",{get(){var n;return(n=fi.get(t))==null?void 0:n.description},configurable:!0}),t.meta=(...n)=>{if(n.length===0)return fi.get(t);const r=t.clone();return fi.add(r,n[0]),r},t.isOptional=()=>t.safeParse(void 0).success,t.isNullable=()=>t.safeParse(null).success,t)),kc=C("_ZodString",(t,e)=>{Ps.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(r,i,o)=>a0(t,r,i);const n=t._zod.bag;t.format=n.format??null,t.minLength=n.minimum??null,t.maxLength=n.maximum??null,t.regex=(...r)=>t.check(V_(...r)),t.includes=(...r)=>t.check(J_(...r)),t.startsWith=(...r)=>t.check(G_(...r)),t.endsWith=(...r)=>t.check(K_(...r)),t.min=(...r)=>t.check(vo(...r)),t.max=(...r)=>t.check(bc(...r)),t.length=(...r)=>t.check(yc(...r)),t.nonempty=(...r)=>t.check(vo(1,...r)),t.lowercase=r=>t.check(W_(r)),t.uppercase=r=>t.check(H_(r)),t.trim=()=>t.check(Y_()),t.normalize=(...r)=>t.check(q_(...r)),t.toLowerCase=()=>t.check(X_()),t.toUpperCase=()=>t.check(Q_()),t.slugify=()=>t.check(e0())}),X0=C("ZodString",(t,e)=>{Ps.init(t,e),kc.init(t,e),t.email=n=>t.check(f_(Q0,n)),t.url=n=>t.check(g_(ev,n)),t.jwt=n=>t.check(P_(mv,n)),t.emoji=n=>t.check(__(tv,n)),t.guid=n=>t.check(mc(Tc,n)),t.uuid=n=>t.check(d_(yo,n)),t.uuidv4=n=>t.check(h_(yo,n)),t.uuidv6=n=>t.check(p_(yo,n)),t.uuidv7=n=>t.check(m_(yo,n)),t.nanoid=n=>t.check(v_(nv,n)),t.guid=n=>t.check(mc(Tc,n)),t.cuid=n=>t.check(b_(rv,n)),t.cuid2=n=>t.check(y_(iv,n)),t.ulid=n=>t.check(x_(ov,n)),t.base64=n=>t.check($_(dv,n)),t.base64url=n=>t.check(O_(hv,n)),t.xid=n=>t.check(w_(sv,n)),t.ksuid=n=>t.check(S_(av,n)),t.ipv4=n=>t.check(k_(lv,n)),t.ipv6=n=>t.check(T_(uv,n)),t.cidrv4=n=>t.check(z_(cv,n)),t.cidrv6=n=>t.check(C_(fv,n)),t.e164=n=>t.check(E_(pv,n)),t.datetime=n=>t.check(A0(n)),t.date=n=>t.check(D0(n)),t.time=n=>t.check(N0(n)),t.duration=n=>t.check(L0(n))});function I(t){return c_(X0,t)}const Pe=C("ZodStringFormat",(t,e)=>{ze.init(t,e),kc.init(t,e)}),Q0=C("ZodEmail",(t,e)=>{pg.init(t,e),Pe.init(t,e)}),Tc=C("ZodGUID",(t,e)=>{dg.init(t,e),Pe.init(t,e)}),yo=C("ZodUUID",(t,e)=>{hg.init(t,e),Pe.init(t,e)}),ev=C("ZodURL",(t,e)=>{mg.init(t,e),Pe.init(t,e)}),tv=C("ZodEmoji",(t,e)=>{gg.init(t,e),Pe.init(t,e)}),nv=C("ZodNanoID",(t,e)=>{_g.init(t,e),Pe.init(t,e)}),rv=C("ZodCUID",(t,e)=>{vg.init(t,e),Pe.init(t,e)}),iv=C("ZodCUID2",(t,e)=>{bg.init(t,e),Pe.init(t,e)}),ov=C("ZodULID",(t,e)=>{yg.init(t,e),Pe.init(t,e)}),sv=C("ZodXID",(t,e)=>{xg.init(t,e),Pe.init(t,e)}),av=C("ZodKSUID",(t,e)=>{wg.init(t,e),Pe.init(t,e)}),lv=C("ZodIPv4",(t,e)=>{Cg.init(t,e),Pe.init(t,e)}),uv=C("ZodIPv6",(t,e)=>{$g.init(t,e),Pe.init(t,e)}),cv=C("ZodCIDRv4",(t,e)=>{Og.init(t,e),Pe.init(t,e)}),fv=C("ZodCIDRv6",(t,e)=>{Eg.init(t,e),Pe.init(t,e)}),dv=C("ZodBase64",(t,e)=>{Pg.init(t,e),Pe.init(t,e)}),hv=C("ZodBase64URL",(t,e)=>{Ag.init(t,e),Pe.init(t,e)}),pv=C("ZodE164",(t,e)=>{Rg.init(t,e),Pe.init(t,e)}),mv=C("ZodJWT",(t,e)=>{Fg.init(t,e),Pe.init(t,e)}),zc=C("ZodNumber",(t,e)=>{nc.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(r,i,o)=>l0(t,r,i),t.gt=(r,i)=>t.check(_c(r,i)),t.gte=(r,i)=>t.check(Rs(r,i)),t.min=(r,i)=>t.check(Rs(r,i)),t.lt=(r,i)=>t.check(gc(r,i)),t.lte=(r,i)=>t.check(As(r,i)),t.max=(r,i)=>t.check(As(r,i)),t.int=r=>t.check(Cc(r)),t.safe=r=>t.check(Cc(r)),t.positive=r=>t.check(_c(0,r)),t.nonnegative=r=>t.check(Rs(0,r)),t.negative=r=>t.check(gc(0,r)),t.nonpositive=r=>t.check(As(0,r)),t.multipleOf=(r,i)=>t.check(vc(r,i)),t.step=(r,i)=>t.check(vc(r,i)),t.finite=()=>t;const n=t._zod.bag;t.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,t.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,t.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),t.isFinite=!0,t.format=n.format??null});function It(t){return F_(zc,t)}const gv=C("ZodNumberFormat",(t,e)=>{Ng.init(t,e),zc.init(t,e)});function Cc(t){return N_(gv,t)}const _v=C("ZodBoolean",(t,e)=>{Mg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>u0(t,n,r)});function Kt(t){return M_(_v,t)}const vv=C("ZodUndefined",(t,e)=>{Lg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>f0(t,n)});function $c(t){return L_(vv,t)}const bv=C("ZodNull",(t,e)=>{Zg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>c0(t,n,r)});function Oc(t){return Z_(bv,t)}const yv=C("ZodAny",(t,e)=>{jg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>h0()});function xv(){return j_(yv)}const wv=C("ZodUnknown",(t,e)=>{Bg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>p0()});function Ec(){return B_(wv)}const Sv=C("ZodNever",(t,e)=>{Ug.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>d0(t,n,r)});function kv(t){return U_(Sv,t)}const Tv=C("ZodArray",(t,e)=>{Vg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>b0(t,n,r,i),t.element=e.element,t.min=(n,r)=>t.check(vo(n,r)),t.nonempty=n=>t.check(vo(1,n)),t.max=(n,r)=>t.check(bc(n,r)),t.length=(n,r)=>t.check(yc(n,r)),t.unwrap=()=>t.element});function Ds(t,e){return t0(Tv,t,e)}const zv=C("ZodObject",(t,e)=>{Hg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>y0(t,n,r,i),pe(t,"shape",()=>e.shape),t.keyof=()=>He(Object.keys(t._zod.def.shape)),t.catchall=n=>t.clone({...t._zod.def,catchall:n}),t.passthrough=()=>t.clone({...t._zod.def,catchall:Ec()}),t.loose=()=>t.clone({...t._zod.def,catchall:Ec()}),t.strict=()=>t.clone({...t._zod.def,catchall:kv()}),t.strip=()=>t.clone({...t._zod.def,catchall:void 0}),t.extend=n=>am(t,n),t.safeExtend=n=>lm(t,n),t.merge=n=>um(t,n),t.pick=n=>om(t,n),t.omit=n=>sm(t,n),t.partial=(...n)=>cm(Ac,t,n[0]),t.required=(...n)=>fm(Fc,t,n[0])});function he(t,e){const n={type:"object",shape:t??{},...W(e)};return new zv(n)}const Pc=C("ZodUnion",(t,e)=>{ac.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>x0(t,n,r,i),t.options=e.options});function Fs(t,e){return new Pc({type:"union",options:t,...W(e)})}const Cv=C("ZodDiscriminatedUnion",(t,e)=>{Pc.init(t,e),Jg.init(t,e)});function Ns(t,e,n){return new Cv({type:"union",options:e,discriminator:t,...W(n)})}const $v=C("ZodIntersection",(t,e)=>{Gg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>w0(t,n,r,i)});function Ov(t,e){return new $v({type:"intersection",left:t,right:e})}const Ev=C("ZodRecord",(t,e)=>{Kg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>S0(t,n,r,i),t.keyType=e.keyType,t.valueType=e.valueType});function Pv(t,e,n){return new Ev({type:"record",keyType:t,valueType:e,...W(n)})}const Ms=C("ZodEnum",(t,e)=>{qg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(r,i,o)=>m0(t,r,i),t.enum=e.entries,t.options=Object.values(e.entries);const n=new Set(Object.keys(e.entries));t.extract=(r,i)=>{const o={};for(const s of r)if(n.has(s))o[s]=e.entries[s];else throw new Error(`Key ${s} not found in enum`);return new Ms({...e,checks:[],...W(i),entries:o})},t.exclude=(r,i)=>{const o={...e.entries};for(const s of r)if(n.has(s))delete o[s];else throw new Error(`Key ${s} not found in enum`);return new Ms({...e,checks:[],...W(i),entries:o})}});function He(t,e){const n=Array.isArray(t)?Object.fromEntries(t.map(r=>[r,r])):t;return new Ms({type:"enum",entries:n,...W(e)})}const Iv=C("ZodLiteral",(t,e)=>{Yg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>g0(t,n,r),t.values=new Set(e.values),Object.defineProperty(t,"value",{get(){if(e.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return e.values[0]}})});function Xe(t,e){return new Iv({type:"literal",values:Array.isArray(t)?t:[t],...W(e)})}const Av=C("ZodTransform",(t,e)=>{Xg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>v0(t,n),t._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Mu(t.constructor.name);n.addIssue=o=>{if(typeof o=="string")n.issues.push(ci(o,n.value,e));else{const s=o;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=n.value),s.inst??(s.inst=t),n.issues.push(ci(s))}};const i=e.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Ic(t){return new Av({type:"transform",transform:t})}const Ac=C("ZodOptional",(t,e)=>{Qg.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>P0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Rc(t){return new Ac({type:"optional",innerType:t})}const Rv=C("ZodNullable",(t,e)=>{e_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>k0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Dc(t){return new Rv({type:"nullable",innerType:t})}const Dv=C("ZodDefault",(t,e)=>{t_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>z0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeDefault=t.unwrap});function Fv(t,e){return new Dv({type:"default",innerType:t,get defaultValue(){return typeof e=="function"?e():Vu(e)}})}const Nv=C("ZodPrefault",(t,e)=>{n_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>C0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Mv(t,e){return new Nv({type:"prefault",innerType:t,get defaultValue(){return typeof e=="function"?e():Vu(e)}})}const Fc=C("ZodNonOptional",(t,e)=>{r_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>T0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Lv(t,e){return new Fc({type:"nonoptional",innerType:t,...W(e)})}const Zv=C("ZodCatch",(t,e)=>{i_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>$0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType,t.removeCatch=t.unwrap});function jv(t,e){return new Zv({type:"catch",innerType:t,catchValue:typeof e=="function"?e:()=>e})}const Bv=C("ZodPipe",(t,e)=>{o_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>O0(t,n,r,i),t.in=e.in,t.out=e.out});function Ls(t,e){return new Bv({type:"pipe",in:t,out:e})}const Uv=C("ZodReadonly",(t,e)=>{s_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>E0(t,n,r,i),t.unwrap=()=>t._zod.def.innerType});function Vv(t){return new Uv({type:"readonly",innerType:t})}const Wv=C("ZodCustom",(t,e)=>{a_.init(t,e),ke.init(t,e),t._zod.processJSONSchema=(n,r,i)=>_0(t,n)});function Hv(t,e={}){return n0(Wv,t,e)}function Jv(t){return r0(t)}function Gv(t,e){return Ls(Ic(t),e)}const xo=t=>{if(!t||typeof t!="object")return t;if(Array.isArray(t))return t.map(r=>xo(r));const e={t:"title",s:"subtitle",d:"description",desc:"description",bg:"background",img:"image",fs:"features",tl:"timeline",st:"steps"},n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=e[r]||r,o=t[r];n[i]=xo(o)}return n},qt=t=>Fs([t,Ds(t),Oc(),$c()]).transform(e=>e==null?[]:Array.isArray(e)?e:[e]),fe=Fs([I(),It(),Oc(),$c()]).transform(t=>t==null?"":String(t)),Zs=I().describe("Icon name (e.g. 'star', 'users', 'arrow-right'). Use standard Lucide/FontAwesome names."),Or=he({id:I().optional().describe("Unique ID for the slide. Useful for navigation."),sizing:He(["viewport","container"]).optional().describe("How the slide fits the screen. Default: 'viewport'."),meta:Pv(I(),xv()).optional().describe("Arbitrary metadata for custom behavior.")}),Kv=Or.extend({type:Xe("statement").describe("Use for high-impact titles, covers, or quotes."),title:fe.describe("Main headline. Keep it punchy (3-6 words)."),subtitle:fe.optional().describe("Supporting text or attribution."),tag:fe.optional().describe("Small eyebrow tag above the title.")}),qv=he({title:fe.describe("Feature name."),description:fe.describe("Short benefit description."),icon:Zs.optional().describe("Visual icon for the feature.")}),Yv=Or.extend({type:Xe("features").describe("Use for lists of benefits, stats, or grid items."),title:fe.describe("Section header."),description:fe.optional().describe("Contextual description."),features:qt(qv).describe("Array of feature cards.")}),Nc=he({date:fe.describe("Time marker (Year, Date, or 'Now')."),title:fe.describe("Event title."),description:fe.describe("Event details (1-2 sentences)."),icon:Zs.optional().describe("Optional marker icon.")}),Xv=Or.extend({type:Xe("timeline").describe("Use for history, roadmaps, or chronological steps."),title:fe.describe("Timeline header."),subtitle:fe.optional(),timeline:qt(Nc).describe("Ordered events.")}),Mc=he({step:fe.describe("Step number/label (e.g., '01', 'A')."),title:fe.describe("Action title."),description:fe.optional().describe("Action details."),icon:Zs.optional()}),Qv=Or.extend({type:Xe("steps").describe("Use for tutorials, 'how-to' guides, or process flows."),title:fe.describe("Process header."),subtitle:fe.optional(),steps:qt(Mc).describe("Sequential steps.")}),eb=Or.extend({type:Xe("half").describe("Use when you have a strong visual + explanations."),imageSide:He(["left","right"]).default("left").describe("Which side the image goes on."),image:fe.describe("URL to the image."),title:fe.describe("Headline."),tag:fe.optional(),paragraphs:qt(I()).describe("Array of text blocks/paragraphs."),cta:fe.optional().describe("Call to Action label (button).")}),di=He(["none","xs","sm","md","lg","xl","2xl"]).describe("Spacing size token."),vn=He(["auto","quarter","third","half","two-thirds","three-quarters","full"]).describe("Element size in container."),tb=He(["top","center","bottom"]).describe("Vertical alignment."),nb=He(["left","center","right"]).describe("Horizontal alignment."),Lc=He(["left","center","right"]).describe("Text alignment."),Zc=he({type:Xe("title").describe("Large heading text."),text:fe.describe("The heading text."),size:He(["lg","xl","2xl","3xl"]).optional().describe("Heading size. Default: 'xl'."),align:Lc.optional().describe("Text alignment. Default: 'left'.")}),jc=he({type:Xe("text").describe("Body paragraph text."),text:fe.describe("The paragraph text."),align:Lc.optional().describe("Text alignment. Default: 'left'."),muted:Kt().optional().describe("Muted/subtle appearance. Default: false.")}),Bc=he({type:Xe("bullets").describe("Unordered bullet list."),items:qt(I()).describe("List items.")}),Uc=he({type:Xe("ordered").describe("Numbered list."),items:qt(I()).describe("List items.")}),rb=he({type:Xe("image").describe("Visual media element."),src:fe.describe("Image URL."),alt:fe.optional().describe("Alt text for accessibility."),fill:Kt().optional().describe("Fill container edge-to-edge. Default: true."),fit:He(["cover","contain"]).optional().describe("Object-fit when fill. Default: 'cover'."),rounded:He(["none","sm","md","lg","xl","full"]).optional().describe("Border radius.")}),Vc=he({type:Xe("button").describe("Call-to-action button."),label:fe.describe("Button label text."),action:fe.optional().describe("Action identifier emitted on click."),variant:He(["primary","secondary","outline","ghost"]).optional().describe("Visual variant. Default: 'primary'."),fullWidth:Kt().optional().describe("Full width button. Default: false.")}),Wc=he({type:Xe("timeline").describe("Embedded timeline with events."),items:qt(Nc).describe("Timeline events."),compact:Kt().optional().describe("Compact display mode. Default: false.")}),Hc=he({type:Xe("stepper").describe("Embedded step-by-step process."),items:qt(Mc).describe("Step items."),compact:Kt().optional().describe("Compact display mode. Default: false.")}),ib=he({type:Xe("spacer").describe("Adds visual spacing."),size:di.optional().describe("Size of the space. Default: 'md'.")}),ob=Ns("type",[Zc,jc,Bc,Uc,Vc,Wc,Hc,ib]),sb=he({type:Xe("content").describe("Groups child elements vertically with alignment control."),elements:qt(ob).describe("Child elements."),valign:tb.optional().describe("Vertical alignment. Default: 'center'."),halign:nb.optional().describe("Horizontal alignment. Default: 'left'."),gap:di.optional().describe("Gap between children. Default: 'md'."),padding:di.optional().describe("Internal padding. Default: 'lg'."),size:vn.optional().describe("Size in parent flex container.")}),ab=Ns("type",[rb.extend({size:vn.optional()}),sb,Zc.extend({size:vn.optional()}),jc.extend({size:vn.optional()}),Bc.extend({size:vn.optional()}),Uc.extend({size:vn.optional()}),Vc.extend({size:vn.optional()}),Wc.extend({size:vn.optional()}),Hc.extend({size:vn.optional()})]),lb=Or.extend({type:Xe("flex").describe("Flow-based layout. Elements flow in order with semantic sizing."),direction:He(["horizontal","vertical"]).optional().describe("Main flow direction. Default: 'horizontal'."),gap:di.optional().describe("Gap between elements. Default: 'none'."),padding:di.optional().describe("Container padding. Default: 'none'."),elements:qt(ab).describe("Flex elements in flow order.")}),ub=Ns("type",[Kv,Yv,Xv,Qv,eb,lb]),cb=he({primary:I().optional().describe("Main brand/accent color. Used for highlights, buttons, links. Example: '#3b82f6'"),secondary:I().optional().describe("Secondary brand color. Used for complementary elements. Example: '#8b5cf6'"),accent:I().optional().describe("Tertiary/accent color. Used for special highlights. Example: '#06b6d4'"),background:I().optional().describe("Main background color. Example: '#030303'"),surface:I().optional().describe("Elevated surface color (cards, panels, modals). Example: '#0a0a0a'"),text:I().optional().describe("Primary text color. Example: '#ffffff'"),textSecondary:I().optional().describe("Secondary/subdued text color. Example: '#e5e7eb'"),muted:I().optional().describe("Muted/disabled text color. Example: '#9ca3af'"),success:I().optional().describe("Success state color (green tones). Example: '#10b981'"),warning:I().optional().describe("Warning state color (yellow/amber). Example: '#f59e0b'"),danger:I().optional().describe("Danger/error state color (red). Example: '#ef4444'"),info:I().optional().describe("Informational state color (blue). Example: '#3b82f6'"),border:I().optional().describe("Border color for containers, cards. Example: 'rgba(255,255,255,0.1)'"),borderSubtle:I().optional().describe("Subtle border for dividers. Example: 'rgba(255,255,255,0.05)'"),shadow:I().optional().describe("Shadow color. Example: '#000000'"),overlay:I().optional().describe("Overlay color for modals. Example: 'rgba(0,0,0,0.5)'"),highlight:I().optional().describe("Highlight/selection color."),buttonPrimary:I().optional().describe("Primary button background."),buttonPrimaryText:I().optional().describe("Primary button text color."),buttonSecondary:I().optional().describe("Secondary button background."),buttonSecondaryText:I().optional().describe("Secondary button text color."),link:I().optional().describe("Link color."),linkHover:I().optional().describe("Link hover color."),gradientFrom:I().optional().describe("Gradient start color. Example: '#3b82f6'"),gradientVia:I().optional().describe("Gradient middle color (optional)."),gradientTo:I().optional().describe("Gradient end color. Example: '#8b5cf6'")}).describe("Color palette configuration with 25+ customizable colors."),fb=he({fontFamily:he({heading:I().optional().describe("Font for headings. Example: 'Inter, sans-serif'"),body:I().optional().describe("Font for body text. Example: 'Inter, sans-serif'"),mono:I().optional().describe("Font for code. Example: 'monospace'")}).optional().describe("Font family definitions."),fontSize:he({xs:I().optional().describe("Extra small: 0.75rem"),sm:I().optional().describe("Small: 0.875rem"),base:I().optional().describe("Base: 1rem"),lg:I().optional().describe("Large: 1.125rem"),xl:I().optional().describe("Extra large: 1.25rem"),"2xl":I().optional().describe("2XL: 1.5rem"),"3xl":I().optional().describe("3XL: 1.875rem"),"4xl":I().optional().describe("4XL: 2.25rem"),"5xl":I().optional().describe("5XL: 3rem"),"6xl":I().optional().describe("6XL: 3.75rem"),"7xl":I().optional().describe("7XL: 4.5rem")}).optional().describe("Font size scale."),fontWeight:he({light:It().optional().describe("Light: 300"),normal:It().optional().describe("Normal: 400"),medium:It().optional().describe("Medium: 500"),semibold:It().optional().describe("Semibold: 600"),bold:It().optional().describe("Bold: 700"),extrabold:It().optional().describe("Extra bold: 800")}).optional().describe("Font weight scale."),lineHeight:he({tight:I().optional().describe("Tight: 1.1"),snug:I().optional().describe("Snug: 1.25"),normal:I().optional().describe("Normal: 1.5"),relaxed:I().optional().describe("Relaxed: 1.625"),loose:I().optional().describe("Loose: 2")}).optional().describe("Line height scale."),letterSpacing:he({tighter:I().optional().describe("-0.05em"),tight:I().optional().describe("-0.025em"),normal:I().optional().describe("0"),wide:I().optional().describe("0.025em"),wider:I().optional().describe("0.05em"),widest:I().optional().describe("0.1em")}).optional().describe("Letter spacing scale.")}).describe("Typography configuration: fonts, sizes, weights, line-heights."),db=he({none:I().optional().describe("0"),xs:I().optional().describe("0.25rem / 4px"),sm:I().optional().describe("0.5rem / 8px"),md:I().optional().describe("1rem / 16px"),lg:I().optional().describe("1.5rem / 24px"),xl:I().optional().describe("2rem / 32px"),"2xl":I().optional().describe("3rem / 48px"),"3xl":I().optional().describe("4rem / 64px"),"4xl":I().optional().describe("6rem / 96px")}).describe("Spacing scale for gaps, padding, margins."),hb=he({none:I().optional().describe("No rounding: 0"),sm:I().optional().describe("Small: 0.25rem"),md:I().optional().describe("Medium: 0.5rem"),lg:I().optional().describe("Large: 0.75rem"),xl:I().optional().describe("Extra large: 1rem"),"2xl":I().optional().describe("2XL: 1.5rem"),"3xl":I().optional().describe("3XL: 2rem"),full:I().optional().describe("Full circle: 9999px")}).describe("Border radius scale for rounded corners."),pb=he({useGradients:Kt().optional().describe("Enable/disable gradient effects globally."),gradientDirection:He(["to-t","to-b","to-l","to-r","to-tl","to-tr","to-bl","to-br"]).optional().describe("Gradient direction."),gradientFrom:I().optional().describe("Override gradient start color."),gradientVia:I().optional().describe("Override gradient middle color."),gradientTo:I().optional().describe("Override gradient end color."),useShadows:Kt().optional().describe("Enable/disable shadow effects."),shadowIntensity:He(["none","sm","md","lg","xl","2xl"]).optional().describe("Shadow intensity level."),shadowColor:I().optional().describe("Shadow color."),useGlass:Kt().optional().describe("Enable/disable glassmorphism effect."),glassOpacity:It().optional().describe("Glass panel opacity (0-1)."),glassBlur:I().optional().describe("Glass blur amount. Example: '20px'"),glassBorderOpacity:It().optional().describe("Glass border opacity (0-1)."),useOrb:Kt().optional().describe("Enable/disable ambient orb/glow effect."),orbOpacity:It().optional().describe("Orb opacity (0-1)."),orbBlur:I().optional().describe("Orb blur amount. Example: '120px'"),orbSize:I().optional().describe("Orb size. Example: '60vw'"),animationsEnabled:Kt().optional().describe("Enable/disable animations globally."),transitionDuration:I().optional().describe("Default transition duration. Example: '0.3s'"),transitionEasing:I().optional().describe("Default transition easing. Example: 'ease-out'"),hoverScale:It().optional().describe("Hover scale factor. Example: 1.05")}).describe("Visual effects: gradients, shadows, glass, orb, animations."),mb=he({buttonRadius:I().optional().describe("Button border radius."),buttonPadding:I().optional().describe("Button padding. Example: '0.75rem 1.5rem'"),buttonFontWeight:It().optional().describe("Button font weight."),buttonTextTransform:He(["none","uppercase","capitalize"]).optional().describe("Button text transform."),cardRadius:I().optional().describe("Card border radius."),cardPadding:I().optional().describe("Card padding."),cardBorderWidth:I().optional().describe("Card border width. Example: '1px'"),cardBackground:I().optional().describe("Card background override."),timelineNodeSize:I().optional().describe("Timeline node size. Example: '1rem'"),timelineLineWidth:I().optional().describe("Timeline line width. Example: '2px'"),timelineNodeColor:I().optional().describe("Timeline node color."),timelineLineColor:I().optional().describe("Timeline line color."),stepBadgeSize:I().optional().describe("Step badge size."),stepFontSize:I().optional().describe("Step font size."),progressHeight:I().optional().describe("Progress bar height."),progressRadius:I().optional().describe("Progress bar border radius."),progressBackground:I().optional().describe("Progress bar background."),progressFill:I().optional().describe("Progress bar fill color."),tagPadding:I().optional().describe("Tag padding."),tagRadius:I().optional().describe("Tag border radius."),tagFontSize:I().optional().describe("Tag font size."),inputRadius:I().optional().describe("Input border radius."),inputPadding:I().optional().describe("Input padding."),inputBorder:I().optional().describe("Input border color."),inputFocusBorder:I().optional().describe("Input focus border color.")}).describe("Component-specific theming: buttons, cards, timeline, steps, etc."),js=he({colors:cb.optional().describe("Color palette with 25+ customizable colors."),typography:fb.optional().describe("Typography: fonts, sizes, weights, line-heights."),spacing:db.optional().describe("Spacing scale for consistent gaps and padding."),borderRadius:hb.optional().describe("Border radius tokens for rounded corners."),effects:pb.optional().describe("Visual effects: gradients, shadows, glass, orb."),components:mb.optional().describe("Component-specific styling tokens.")}).describe("Complete theme configuration for full visual customization."),gb=He(["default","ocean","midnight","forest","cyber","latte","sunset","monochrome"]).describe("Built-in theme preset name."),_b=he({title:fe.describe("Title of the entire presentation."),author:fe.optional(),date:fe.optional(),theme:gb.optional().describe("Theme preset to use. Options: default, ocean, midnight, forest, cyber, latte, sunset, monochrome."),themeConfig:js.optional().describe("Custom theme configuration to override preset values.")}).passthrough(),vb=he({meta:_b.describe("Global deck settings including title and theme."),slides:Ds(Gv(xo,ub)).describe("Ordered array of slide definitions.")});function Jc(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(vb,"LuminaDeck")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}function Gc(){try{const{zodToJsonSchema:t}=require("zod-to-json-schema");return t(js,"LuminaThemeConfig")}catch{return console.warn("zod-to-json-schema not installed. Install it to export raw JSON Schema."),{}}}const hi=Symbol("LuminaStore"),bb={loop:!1,navigation:!0,keyboard:!0,touch:!0,debug:!1,theme:"default",ui:{visible:!0,showProgressBar:!0,showSlideCount:!0,showControls:!0},keys:{next:["ArrowRight"," ","Enter"],prev:["ArrowLeft","Backspace"]},animation:{enabled:!0,type:"cascade",durationIn:1,durationOut:.5,stagger:.1,ease:"power3.out"}};function Er(t){if(typeof t=="string")return Xp(t);if(Array.isArray(t))return t.map(Er);if(t&&typeof t=="object"){const e={};for(const n in t)e[n]=Er(t[n]);return e}return t}function Kc(t,e){if(typeof t!="object"||t===null||typeof e!="object"||e===null)return e;if(Array.isArray(e))return e.map(Er);const n={...t};for(const r in e)e[r]===Object(e[r])?r in t?n[r]=Kc(t[r],e[r]):Object.assign(n,{[r]:Er(e[r])}):Object.assign(n,{[r]:Er(e[r])});return n}function yb(t={}){const e=Bi({deck:null,currentIndex:0,options:{...bb,...t},isReady:!1,actionHistory:[]}),n=()=>!e.deck||e.deck.slides.length===0?null:e.deck.slides[e.currentIndex]||null,r=()=>e.deck?e.options.loop?!0:e.currentIndex<e.deck.slides.length-1:!1,i=()=>e.deck?e.options.loop?!0:e.currentIndex>0:!1,o=()=>!e.deck||e.deck.slides.length<=1?0:e.currentIndex/(e.deck.slides.length-1);function s(h){e.options={...e.options,...h},h.theme&&(h.theme,e.options.theme=h.theme),h.ui&&(e.options.ui={...e.options.ui,...h.ui}),h.keys&&(e.options.keys={...e.options.keys,...h.keys}),h.animation&&(e.options.animation={...e.options.animation,...h.animation})}function a(h){if(!h||!Array.isArray(h.slides)){console.error("[LuminaStore] Invalid deck format");return}const m=xo(h);e.deck=Er(m),e.currentIndex=0,e.isReady=!0,e.actionHistory=[]}function l(h){e.deck&&(e.deck=Kc(e.deck,h))}function c(h){e.actionHistory.push(h),e.actionHistory.length>50&&e.actionHistory.shift()}function u(){var p;if(!r())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let m=e.currentIndex;e.options.loop?m=(e.currentIndex+1)%h:m++,m!==e.currentIndex&&(e.currentIndex=m)}function f(){var p;if(!i())return;const h=((p=e.deck)==null?void 0:p.slides.length)||0;let m=e.currentIndex;e.options.loop?m=(e.currentIndex-1+h)%h:m--,m!==e.currentIndex&&(e.currentIndex=m)}function d(h){e.deck&&h>=0&&h<e.deck.slides.length&&e.currentIndex!==h&&(e.currentIndex=h)}return{state:Ui(e),currentSlide:n,hasNext:r,hasPrev:i,progress:o,setOptions:s,loadDeck:a,patchDeck:l,recordAction:c,next:u,prev:f,goto:d}}function xb(){const t=dn(hi);if(!t)throw new Error("Lumina: Component must be used within a Lumina instance.");return{slide:le(()=>t.currentSlide()),index:le(()=>t.state.currentIndex),total:le(()=>{var e;return((e=t.state.deck)==null?void 0:e.slides.length)||0}),next:t.next,prev:t.prev,goto:t.goto,options:t.state.options}}function wb(){const t=dn(hi);if(!t)return;let e=0;const n=300,r=i=>{var c,u;const{options:o}=t.state;if(!o.keyboard||!o.navigation)return;const s=Date.now();if(s-e<n)return;const a=((c=o.keys)==null?void 0:c.next)||[],l=((u=o.keys)==null?void 0:u.prev)||[];a.includes(i.key)?(t.next(),e=s):l.includes(i.key)&&(t.prev(),e=s)};$n(()=>{window.addEventListener("keydown",r)}),qn(()=>{window.removeEventListener("keydown",r)})}class qc{constructor(){st(this,"handlers",new Map)}on(e,n){this.handlers.has(e)||this.handlers.set(e,new Set),this.handlers.get(e).add(n)}off(e,n){const r=this.handlers.get(e);r&&r.delete(n)}emit(e,n){const r=this.handlers.get(e);r&&r.forEach(i=>{try{i(n)}catch(o){console.error(`[LuminaBus] Error in handler for event "${e}":`,o)}})}clear(){this.handlers.clear()}}const bn=new qc;function yn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yc(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}/*!
|
|
42
42
|
* GSAP 3.14.2
|
|
43
43
|
* https://gsap.com
|
|
44
44
|
*
|
|
45
45
|
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
46
46
|
* Subject to the terms at https://gsap.com/standard-license
|
|
47
47
|
* @author: Jack Doyle, jack@greensock.com
|
|
48
|
-
*/var _t={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},$r={duration:.5,overwrite:!1,delay:0},Fo,Ue,Se,Pt=1e8,he=1/Pt,Zo=Math.PI*2,uy=Zo/4,cy=0,Wc=Math.sqrt,fy=Math.cos,dy=Math.sin,Fe=function(e){return typeof e=="string"},Pe=function(e){return typeof e=="function"},_n=function(e){return typeof e=="number"},Lo=function(e){return typeof e>"u"},Kt=function(e){return typeof e=="object"},at=function(e){return e!==!1},jo=function(){return typeof window<"u"},bs=function(e){return Pe(e)||Fe(e)},Hc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ye=Array.isArray,hy=/random\([^)]+\)/g,py=/,\s*/g,Jc=/(?:-?\.?\d|\.)+/gi,Kc=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Er=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Uo=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,qc=/[+-]=-?[.\d]+/,my=/[^,'"\[\]\s]+/gi,gy=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ce,qt,Vo,Bo,vt={},xs={},Yc,Gc=function(e){return(xs=Ar(e,vt))&&ct},Wo=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},hi=function(e,n){return!n&&console.warn(e)},Xc=function(e,n){return e&&(vt[e]=n)&&xs&&(xs[e]=n)||vt},pi=function(){return 0},_y={suppressEvents:!0,isStart:!0,kill:!1},ws={suppressEvents:!0,kill:!1},vy={suppressEvents:!0},Ho={},An=[],Jo={},Qc,yt={},Ko={},ef=30,Ss=[],qo="",Yo=function(e){var n=e[0],r,i;if(Kt(n)||Pe(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=Ss.length;i--&&!Ss[i].targetTest(n););r=Ss[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ef(e[i],r)))||e.splice(i,1);return e},tr=function(e){return e._gsap||Yo(It(e))[0]._gsap},tf=function(e,n,r){return(r=e[n])&&Pe(r)?e[n]():Lo(r)&&e.getAttribute&&e.getAttribute(n)||r},lt=function(e,n){return(e=e.split(",")).forEach(n)||e},De=function(e){return Math.round(e*1e5)/1e5||0},Oe=function(e){return Math.round(e*1e7)/1e7||0},Pr=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},yy=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},ks=function(){var e=An.length,n=An.slice(0),r,i;for(Jo={},An.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Go=function(e){return!!(e._initted||e._startAt||e.add)},nf=function(e,n,r,i){An.length&&!Ue&&ks(),e.render(n,r,!!(Ue&&n<0&&Go(e))),An.length&&!Ue&&ks()},rf=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(my).length<2?n:Fe(e)?e.trim():e},sf=function(e){return e},bt=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},by=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},Ar=function(e,n){for(var r in n)e[r]=n[r];return e},of=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Kt(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ts=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},mi=function(e){var n=e.parent||Ce,r=e.keyframes?by(Ye(e.keyframes)):bt;if(at(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},xy=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},af=function(e,n,r,i,s){var o=e[i],a;if(s)for(a=n[s];o&&o[s]>a;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=o,n.parent=n._dp=e,n},zs=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:e[r]===n&&(e[r]=o),o?o._prev=s:e[i]===n&&(e[i]=s),n._next=n._prev=n.parent=null},In=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},nr=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},wy=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},Xo=function(e,n,r,i){return e._startAt&&(Ue?e._startAt.revert(ws):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},Sy=function t(e){return!e||e._ts&&t(e.parent)},lf=function(e){return e._repeat?Ir(e._tTime,e=e.duration()+e._rDelay)*e:0},Ir=function(e,n){var r=Math.floor(e=Oe(e/n));return e&&r===e?r-1:r},Cs=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Os=function(e){return e._end=Oe(e._start+(e._tDur/Math.abs(e._ts||e._rts||he)||0))},$s=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Oe(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Os(e),r._dirty||nr(r,e)),e},uf=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Cs(e.rawTime(),n),(!n._dur||_i(0,n.totalDuration(),r)-n._tTime>he)&&n.render(r,!0)),nr(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-he}},Yt=function(e,n,r,i){return n.parent&&In(n),n._start=Oe((_n(r)?r:r||e!==Ce?At(e,r,n):e._time)+n._delay),n._end=Oe(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),af(e,n,"_first","_last",e._sort?"_start":0),Qo(n)||(e._recent=n),i||uf(e,n),e._ts<0&&$s(e,e._tTime),e},cf=function(e,n){return(vt.ScrollTrigger||Wo("scrollTrigger",n))&&vt.ScrollTrigger.create(n,e)},ff=function(e,n,r,i,s){if(la(e,n,s),!e._initted)return 1;if(!r&&e._pt&&!Ue&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Qc!==wt.frame)return An.push(e),e._lazy=[s,i],1},ky=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Qo=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Ty=function(e,n,r,i){var s=e.ratio,o=n<0||!n&&(!e._start&&ky(e)&&!(!e._initted&&Qo(e))||(e._ts<0||e._dp._ts<0)&&!Qo(e))?0:1,a=e._rDelay,l=0,c,u,f;if(a&&e._repeat&&(l=_i(0,e._tDur,n),u=Ir(l,a),e._yoyo&&u&1&&(o=1-o),u!==Ir(e._tTime,a)&&(s=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==s||Ue||i||e._zTime===he||!n&&e._zTime){if(!e._initted&&ff(e,n,i,r,l))return;for(f=e._zTime,e._zTime=n||(r?he:0),r||(r=n&&!f),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=l,c=e._pt;c;)c.r(o,c.d),c=c._next;n<0&&Xo(e,n,r,!0),e._onUpdate&&!r&&xt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&xt(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===o&&(o&&In(e,1),!r&&!Ue&&(xt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},zy=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Dr=function(e,n,r,i){var s=e._repeat,o=Oe(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=o/e._dur),e._dur=o,e._tDur=s?s<0?1e10:Oe(o*(s+1)+e._rDelay*s):o,a>0&&!i&&$s(e,e._tTime=e._tDur*a),e.parent&&Os(e),r||nr(e.parent,e),e},df=function(e){return e instanceof rt?nr(e):Dr(e,e._dur)},Cy={_start:0,endTime:pi,totalDuration:pi},At=function t(e,n,r){var i=e.labels,s=e._recent||Cy,o=e.duration()>=Pt?s.endTime(!1):e._dur,a,l,c;return Fe(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(l=l/100*(Ye(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+l:o+l)):n==null?o:+n},gi=function(e,n,r){var i=_n(n[1]),s=(i?2:1)+(e<2?0:1),o=n[s],a,l;if(i&&(o.duration=n[1]),o.parent=r,e){for(a=o,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=at(l.vars.inherit)&&l.parent;o.immediateRender=at(a.immediateRender),e<2?o.runBackwards=1:o.startAt=n[s-1]}return new Me(n[0],o,n[s+1])},Dn=function(e,n){return e||e===0?n(e):n},_i=function(e,n,r){return r<e?e:r>n?n:r},Ge=function(e,n){return!Fe(e)||!(n=gy.exec(e))?"":n[1]},Oy=function(e,n,r){return Dn(r,function(i){return _i(e,n,i)})},ea=[].slice,hf=function(e,n){return e&&Kt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Kt(e[0]))&&!e.nodeType&&e!==qt},$y=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var s;return Fe(i)&&!n||hf(i,1)?(s=r).push.apply(s,It(i)):r.push(i)})||r},It=function(e,n,r){return Se&&!n&&Se.selector?Se.selector(e):Fe(e)&&!r&&(Vo||!Nr())?ea.call((n||Bo).querySelectorAll(e),0):Ye(e)?$y(e,r):hf(e)?ea.call(e,0):e?[e]:[]},ta=function(e){return e=It(e)[0]||hi("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return It(n,r.querySelectorAll?r:r===e?hi("Invalid scope")||Bo.createElement("div"):e)}},pf=function(e){return e.sort(function(){return .5-Math.random()})},mf=function(e){if(Pe(e))return e;var n=Kt(e)?e:{each:e},r=rr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,l=isNaN(i)||a,c=n.axis,u=i,f=i;return Fe(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],f=i[1]),function(d,h,m){var p=(m||n).length,y=o[p],x,k,z,b,S,E,w,A,v;if(!y){if(v=n.grid==="auto"?0:(n.grid||[1,Pt])[1],!v){for(w=-Pt;w<(w=m[v++].getBoundingClientRect().left)&&v<p;);v<p&&v--}for(y=o[p]=[],x=l?Math.min(v,p)*u-.5:i%v,k=v===Pt?0:l?p*f/v-.5:i/v|0,w=0,A=Pt,E=0;E<p;E++)z=E%v-x,b=k-(E/v|0),y[E]=S=c?Math.abs(c==="y"?b:z):Wc(z*z+b*b),S>w&&(w=S),S<A&&(A=S);i==="random"&&pf(y),y.max=w-A,y.min=A,y.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(v>p?p-1:c?c==="y"?p/v:v:Math.max(v,p/v))||0)*(i==="edges"?-1:1),y.b=p<0?s-p:s,y.u=Ge(n.amount||n.each)||0,r=r&&p<0?Cf(r):r}return p=(y[d]-y.min)/y.max||0,Oe(y.b+(r?r(p):p)*y.v)+y.u}},na=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Oe(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(_n(r)?0:Ge(r))}},gf=function(e,n){var r=Ye(e),i,s;return!r&&Kt(e)&&(i=r=e.radius||Pt,e.values?(e=It(e.values),(s=!_n(e[0]))&&(i*=i)):e=na(e.increment)),Dn(n,r?Pe(e)?function(o){return s=e(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),l=parseFloat(s?o.y:0),c=Pt,u=0,f=e.length,d,h;f--;)s?(d=e[f].x-a,h=e[f].y-l,d=d*d+h*h):d=Math.abs(e[f]-a),d<c&&(c=d,u=f);return u=!i||c<=i?e[u]:o,s||u===o||_n(o)?u:u+Ge(o)}:na(e))},_f=function(e,n,r,i){return Dn(Ye(e)?!n:r===!0?!!(r=0):!i,function(){return Ye(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},Ey=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(s,o){return o(s)},i)}},Py=function(e,n){return function(r){return e(parseFloat(r))+(n||Ge(r))}},Ay=function(e,n,r){return yf(e,n,0,1,r)},vf=function(e,n,r){return Dn(r,function(i){return e[~~n(i)]})},Iy=function t(e,n,r){var i=n-e;return Ye(e)?vf(e,t(0,e.length),n):Dn(r,function(s){return(i+(s-e)%i)%i+e})},Dy=function t(e,n,r){var i=n-e,s=i*2;return Ye(e)?vf(e,t(0,e.length-1),n):Dn(r,function(o){return o=(s+(o-e)%s)%s||0,e+(o>i?s-o:o)})},vi=function(e){return e.replace(hy,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(py);return _f(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},yf=function(e,n,r,i,s){var o=n-e,a=i-r;return Dn(s,function(l){return r+((l-e)/o*a||0)})},My=function t(e,n,r,i){var s=isNaN(e+n)?0:function(h){return(1-h)*e+h*n};if(!s){var o=Fe(e),a={},l,c,u,f,d;if(r===!0&&(i=1)&&(r=null),o)e={p:e},n={p:n};else if(Ye(e)&&!Ye(n)){for(u=[],f=e.length,d=f-2,c=1;c<f;c++)u.push(t(e[c-1],e[c]));f--,s=function(m){m*=f;var p=Math.min(d,~~m);return u[p](m-p)},r=n}else i||(e=Ar(Ye(e)?[]:{},e));if(!u){for(l in n)oa.call(a,e,l,"get",n[l]);s=function(m){return fa(m,a)||(o?e.p:e)}}}return Dn(r,s)},bf=function(e,n,r){var i=e.labels,s=Pt,o,a,l;for(o in i)a=i[o]-n,a<0==!!r&&a&&s>(a=Math.abs(a))&&(l=o,s=a);return l},xt=function(e,n,r){var i=e.vars,s=i[n],o=Se,a=e._ctx,l,c,u;if(s)return l=i[n+"Params"],c=i.callbackScope||e,r&&An.length&&ks(),a&&(Se=a),u=l?s.apply(c,l):s.call(c),Se=o,u},yi=function(e){return In(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Ue),e.progress()<1&&xt(e,"onInterrupt"),e},Mr,xf=[],wf=function(e){if(e)if(e=!e.name&&e.default||e,jo()||e.headless){var n=e.name,r=Pe(e),i=n&&!r&&e.init?function(){this._props=[]}:e,s={init:pi,render:fa,add:oa,kill:Gy,modifier:Yy,rawVars:0},o={targetTest:0,get:0,getSetter:ca,aliases:{},register:0};if(Nr(),e!==i){if(yt[n])return;bt(i,bt(Ts(e,s),o)),Ar(i.prototype,Ar(s,Ts(e,o))),yt[i.prop=n]=i,e.targetTest&&(Ss.push(i),Ho[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}Xc(n,i),e.register&&e.register(ct,i,ut)}else xf.push(e)},pe=255,bi={aqua:[0,pe,pe],lime:[0,pe,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,pe],navy:[0,0,128],white:[pe,pe,pe],olive:[128,128,0],yellow:[pe,pe,0],orange:[pe,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[pe,0,0],pink:[pe,192,203],cyan:[0,pe,pe],transparent:[pe,pe,pe,0]},ra=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*pe+.5|0},Sf=function(e,n,r){var i=e?_n(e)?[e>>16,e>>8&pe,e&pe]:0:bi.black,s,o,a,l,c,u,f,d,h,m;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),bi[e])i=bi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(s=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+s+s+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&pe,i&pe,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&pe,e&pe]}else if(e.substr(0,3)==="hsl"){if(i=m=e.match(Jc),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,o=u<=.5?u*(c+1):u+c-u*c,s=u*2-o,i.length>3&&(i[3]*=1),i[0]=ra(l+1/3,s,o),i[1]=ra(l,s,o),i[2]=ra(l-1/3,s,o);else if(~e.indexOf("="))return i=e.match(Kc),r&&i.length<4&&(i[3]=1),i}else i=e.match(Jc)||bi.transparent;i=i.map(Number)}return n&&!m&&(s=i[0]/pe,o=i[1]/pe,a=i[2]/pe,f=Math.max(s,o,a),d=Math.min(s,o,a),u=(f+d)/2,f===d?l=c=0:(h=f-d,c=u>.5?h/(2-f-d):h/(f+d),l=f===s?(o-a)/h+(o<a?6:0):f===o?(a-s)/h+2:(s-o)/h+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),r&&i.length<4&&(i[3]=1),i},kf=function(e){var n=[],r=[],i=-1;return e.split(Mn).forEach(function(s){var o=s.match(Er)||[];n.push.apply(n,o),r.push(i+=o.length+1)}),n.c=r,n},Tf=function(e,n,r){var i="",s=(e+i).match(Mn),o=n?"hsla(":"rgba(",a=0,l,c,u,f;if(!s)return e;if(s=s.map(function(d){return(d=Sf(d,n,1))&&o+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(u=kf(e),l=r.c,l.join(i)!==u.c.join(i)))for(c=e.replace(Mn,"1").split(Er),f=c.length-1;a<f;a++)i+=c[a]+(~l.indexOf(a)?s.shift()||o+"0,0,0,0)":(u.length?u:s.length?s:r).shift());if(!c)for(c=e.split(Mn),f=c.length-1;a<f;a++)i+=c[a]+s[a];return i+c[f]},Mn=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in bi)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),Ny=/hsl[a]?\(/,zf=function(e){var n=e.join(" "),r;if(Mn.lastIndex=0,Mn.test(n))return r=Ny.test(n),e[1]=Tf(e[1],r),e[0]=Tf(e[0],r,kf(e[1])),!0},xi,wt=function(){var t=Date.now,e=500,n=33,r=t(),i=r,s=1e3/240,o=s,a=[],l,c,u,f,d,h,m=function p(y){var x=t()-i,k=y===!0,z,b,S,E;if((x>e||x<0)&&(r+=x-n),i+=x,S=i-r,z=S-o,(z>0||k)&&(E=++f.frame,d=S-f.time*1e3,f.time=S=S/1e3,o+=z+(z>=s?4:s-z),b=1),k||(l=c(p)),b)for(h=0;h<a.length;h++)a[h](S,d,E,y)};return f={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(y){return d/(1e3/(y||60))},wake:function(){Yc&&(!Vo&&jo()&&(qt=Vo=window,Bo=qt.document||{},vt.gsap=ct,(qt.gsapVersions||(qt.gsapVersions=[])).push(ct.version),Gc(xs||qt.GreenSockGlobals||!qt.gsap&&qt||{}),xf.forEach(wf)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(y){return setTimeout(y,o-f.time*1e3+1|0)},xi=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),xi=0,c=pi},lagSmoothing:function(y,x){e=y||1/0,n=Math.min(x||33,e)},fps:function(y){s=1e3/(y||240),o=f.time*1e3+s},add:function(y,x,k){var z=x?function(b,S,E,w){y(b,S,E,w),f.remove(z)}:y;return f.remove(y),a[k?"unshift":"push"](z),Nr(),z},remove:function(y,x){~(x=a.indexOf(y))&&a.splice(x,1)&&h>=x&&h--},_listeners:a},f}(),Nr=function(){return!xi&&wt.wake()},re={},Ry=/^[\d.\-M][\d.\-,\s]/,Fy=/["']/g,Zy=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],s=1,o=r.length,a,l,c;s<o;s++)l=r[s],a=s!==o-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[i]=isNaN(c)?c.replace(Fy,"").trim():+c,i=l.substr(a+1).trim();return n},Ly=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},jy=function(e){var n=(e+"").split("("),r=re[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Zy(n[1])]:Ly(e).split(",").map(rf)):re._CE&&Ry.test(e)?re._CE("",e):r},Cf=function(e){return function(n){return 1-e(1-n)}},Of=function t(e,n){for(var r=e._first,i;r;)r instanceof rt?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},rr=function(e,n){return e&&(Pe(e)?e:re[e]||jy(e))||n},ir=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return lt(e,function(a){re[a]=vt[a]=s,re[o=a.toLowerCase()]=r;for(var l in s)re[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=re[a+"."+l]=s[l]}),s},$f=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},ia=function t(e,n,r){var i=n>=1?n:1,s=(r||(e?.3:.45))/(n<1?n:1),o=s/Zo*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*dy((u-o)*s)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:$f(a);return s=Zo/s,l.config=function(c,u){return t(e,c,u)},l},sa=function t(e,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=e==="out"?r:e==="in"?function(s){return 1-r(1-s)}:$f(r);return i.config=function(s){return t(e,s)},i};lt("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;ir(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),re.Linear.easeNone=re.none=re.Linear.easeIn,ir("Elastic",ia("in"),ia("out"),ia()),function(t,e){var n=1/e,r=2*n,i=2.5*n,s=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};ir("Bounce",function(o){return 1-s(1-o)},s)}(7.5625,2.75),ir("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),ir("Circ",function(t){return-(Wc(1-t*t)-1)}),ir("Sine",function(t){return t===1?1:-fy(t*uy)+1}),ir("Back",sa("in"),sa("out"),sa()),re.SteppedEase=re.steps=vt.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),s=n?1:0,o=1-he;return function(a){return((i*_i(0,o,a)|0)+s)*r}}},$r.ease=re["quad.out"],lt("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return qo+=t+","+t+"Params,"});var Ef=function(e,n){this.id=cy++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:tf,this.set=n?n.getSetter:ca},wi=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Dr(this,+n.duration,1,1),this.data=n.data,Se&&(this._ctx=Se,Se.data.push(this)),xi||wt.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Dr(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Nr(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for($s(this,r),!s._dp||s.parent||uf(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Yt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===he||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),nf(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+lf(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+lf(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?Ir(this._tTime,s)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-he?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Cs(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-he?0:this._rts,this.totalTime(_i(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),Os(this),wy(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Nr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==he&&(this._tTime-=he)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=Oe(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Yt(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(at(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Cs(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=vy);var i=Ue;return Ue=r,Go(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Ue=i,this},e.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,df(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,df(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(At(this,r),at(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,at(i)),this._dur||(this._zTime=-he),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-he:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-he,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s<this.endTime(!0)-he)},e.eventCallback=function(r,i,s){var o=this.vars;return arguments.length>1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},e.then=function(r){var i=this,s=i._prom;return new Promise(function(o){var a=Pe(r)?r:sf,l=function(){var u=i.then;i.then=null,s&&s(),Pe(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=u),o(a),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){yi(this)},t}();bt(wi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-he,_prom:0,_ps:!1,_rts:1});var rt=function(t){Bc(e,t);function e(r,i){var s;return r===void 0&&(r={}),s=t.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=at(r.sortChildren),Ce&&Yt(r.parent||Ce,gn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&cf(gn(s),r.scrollTrigger),s}var n=e.prototype;return n.to=function(i,s,o){return gi(0,arguments,this),this},n.from=function(i,s,o){return gi(1,arguments,this),this},n.fromTo=function(i,s,o,a){return gi(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,mi(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new Me(i,s,At(this,o),1),this},n.call=function(i,s,o){return Yt(this,Me.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,l,c,u){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=c,o.onCompleteParams=u,o.parent=this,new Me(i,o,At(this,l)),this},n.staggerFrom=function(i,s,o,a,l,c,u){return o.runBackwards=1,mi(o).immediateRender=at(o.immediateRender),this.staggerTo(i,s,o,a,l,c,u)},n.staggerFromTo=function(i,s,o,a,l,c,u,f){return a.startAt=o,mi(a).immediateRender=at(a.immediateRender),this.staggerTo(i,s,a,l,c,u,f)},n.render=function(i,s,o){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:Oe(i),f=this._zTime<0!=i<0&&(this._initted||!c),d,h,m,p,y,x,k,z,b,S,E,w;if(this!==Ce&&u>l&&i>=0&&(u=l),u!==this._tTime||o||f){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),d=u,b=this._start,z=this._ts,x=!z,f&&(c||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(E=this._yoyo,y=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(y*100+i,s,o);if(d=Oe(u%y),u===l?(p=this._repeat,d=c):(S=Oe(u/y),p=~~S,p&&p===S&&(d=c,p--),d>c&&(d=c)),S=Ir(this._tTime,y),!a&&this._tTime&&S!==p&&this._tTime-S*y-this._dur<=0&&(S=p),E&&p&1&&(d=c-d,w=1),p!==S&&!this._lock){var A=E&&S&1,v=A===(E&&p&1);if(p<S&&(A=!A),a=A?0:u%c?c:u,this._lock=1,this.render(a||(w?0:Oe(p*y)),s,!c)._lock=0,this._tTime=u,!s&&this.parent&&xt(this,"onRepeat"),this.vars.repeatRefresh&&!w&&(this.invalidate()._lock=1,S=p),a&&a!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,v&&(this._lock=2,a=A?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!w&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Of(this,w)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=zy(this,Oe(a),Oe(d)),k&&(u-=d-(d=k._start))),this._tTime=u,this._time=d,this._act=!z,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&u&&c&&!s&&!S&&(xt(this,"onStart"),this._tTime!==u))return this;if(d>=a&&i>=0)for(h=this._first;h;){if(m=h._next,(h._act||d>=h._start)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,s,o);if(h.render(h._ts>0?(d-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(d-h._start)*h._ts,s,o),d!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=-he);break}}h=m}else{h=this._last;for(var F=i<0?i:d;h;){if(m=h._prev,(h._act||F<=h._end)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,s,o);if(h.render(h._ts>0?(F-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(F-h._start)*h._ts,s,o||Ue&&Go(h)),d!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=F?-he:he);break}}h=m}}if(k&&!s&&(this.pause(),k.render(d>=a?0:-he)._zTime=d>=a?1:-1,this._ts))return this._start=b,Os(this),this.render(i,s,o);this._onUpdate&&!s&&xt(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(b===this._start||Math.abs(z)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&In(this,1),!s&&!(i<0&&!a)&&(u||a||!l)&&(xt(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(_n(s)||(s=At(this,s,i)),!(i instanceof wi)){if(Ye(i))return i.forEach(function(a){return o.add(a,s)}),this;if(Fe(i))return this.addLabel(i,s);if(Pe(i))i=Me.delayedCall(0,i);else return this}return this!==i?Yt(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-Pt);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Me?s&&l.push(c):(o&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,s,o)))),c=c._next;return l},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return Fe(i)?this.removeLabel(i):Pe(i)?this.killTweensOf(i):(i.parent===this&&zs(this,i),i===this._recent&&(this._recent=this._last),nr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Oe(wt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=At(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=Me.delayedCall(0,s||pi,o);return a.data="isPause",this._hasPause=1,Yt(this,a,At(this,i))},n.removePause=function(i){var s=this._first;for(i=At(this,i);s;)s._start===i&&s.data==="isPause"&&In(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),l=a.length;l--;)Nn!==a[l]&&a[l].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=It(i),l=this._first,c=_n(s),u;l;)l instanceof Me?yy(l._targets,a)&&(c?(!Nn||l._initted&&l._ts)&&l.globalTime(0)<=s&&l.globalTime(l.totalDuration())>s:!s||l.isActive())&&o.push(l):(u=l.getTweensOf(a,s)).length&&o.push.apply(o,u),l=l._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=At(o,i),l=s,c=l.startAt,u=l.onStart,f=l.onStartParams,d=l.immediateRender,h,m=Me.to(o,bt({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale())||he,onStart:function(){if(o.pause(),!h){var y=s.duration||Math.abs((a-(c&&"time"in c?c.time:o._time))/o.timeScale());m._dur!==y&&Dr(m,y,0,1).render(m._time,!0,!0),h=1}u&&u.apply(m,f||[])}},s));return d?m.render(0):m},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,bt({startAt:{time:At(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),bf(this,At(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),bf(this,At(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+he)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);var a=this._first,l=this.labels,c;for(i=Oe(i);a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(c in l)l[c]>=o&&(l[c]+=i);return nr(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),nr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,l=Pt,c,u,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&o._sort&&a._ts&&!o._lock?(o._lock=1,Yt(o,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(s-=u,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=Oe(u/o._ts),o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),l=0),a._end>s&&a._ts&&(s=a._end),a=c;Dr(o,o===Ce&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(i){if(Ce._ts&&(nf(Ce,Cs(i,Ce)),Qc=wt.frame),wt.frame>=ef){ef+=_t.autoSleep||120;var s=Ce._first;if((!s||!s._ts)&&_t.autoSleep&&wt._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||wt.sleep()}}},e}(wi);bt(rt.prototype,{_lock:0,_hasPause:0,_forcing:0});var Uy=function(e,n,r,i,s,o,a){var l=new ut(this._pt,e,n,0,1,Nf,null,s),c=0,u=0,f,d,h,m,p,y,x,k;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=vi(i)),o&&(k=[r,i],o(k,e,n),r=k[0],i=k[1]),d=r.match(Uo)||[];f=Uo.exec(i);)m=f[0],p=i.substring(c,f.index),h?h=(h+1)%5:p.substr(-5)==="rgba("&&(h=1),m!==d[u++]&&(y=parseFloat(d[u-1])||0,l._pt={_next:l._pt,p:p||u===1?p:",",s:y,c:m.charAt(1)==="="?Pr(y,m)-y:parseFloat(m)-y,m:h&&h<4?Math.round:0},c=Uo.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=a,(qc.test(i)||x)&&(l.e=0),this._pt=l,l},oa=function(e,n,r,i,s,o,a,l,c,u){Pe(i)&&(i=i(s||0,e,o));var f=e[n],d=r!=="get"?r:Pe(f)?c?e[n.indexOf("set")||!Pe(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():f,h=Pe(f)?c?Jy:Df:ua,m;if(Fe(i)&&(~i.indexOf("random(")&&(i=vi(i)),i.charAt(1)==="="&&(m=Pr(d,i)+(Ge(d)||0),(m||m===0)&&(i=m))),!u||d!==i||aa)return!isNaN(d*i)&&i!==""?(m=new ut(this._pt,e,n,+d||0,i-(d||0),typeof f=="boolean"?qy:Mf,0,h),c&&(m.fp=c),a&&m.modifier(a,this,e),this._pt=m):(!f&&!(n in e)&&Wo(n,i),Uy.call(this,e,n,d,i,h,l||_t.stringFilter,c))},Vy=function(e,n,r,i,s){if(Pe(e)&&(e=Si(e,s,n,r,i)),!Kt(e)||e.style&&e.nodeType||Ye(e)||Hc(e))return Fe(e)?Si(e,s,n,r,i):e;var o={},a;for(a in e)o[a]=Si(e[a],s,n,r,i);return o},Pf=function(e,n,r,i,s,o){var a,l,c,u;if(yt[e]&&(a=new yt[e]).init(s,a.rawVars?n[e]:Vy(n[e],i,s,o,r),r,i,o)!==!1&&(r._pt=l=new ut(r._pt,s,e,0,1,a.render,a,0,a.priority),r!==Mr))for(c=r._ptLookup[r._targets.indexOf(s)],u=a._props.length;u--;)c[a._props[u]]=l;return a},Nn,aa,la=function t(e,n,r){var i=e.vars,s=i.ease,o=i.startAt,a=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,d=i.keyframes,h=i.autoRevert,m=e._dur,p=e._startAt,y=e._targets,x=e.parent,k=x&&x.data==="nested"?x.vars.targets:y,z=e._overwrite==="auto"&&!Fo,b=e.timeline,S,E,w,A,v,F,P,T,I,K,ne,Q,ee;if(b&&(!d||!s)&&(s="none"),e._ease=rr(s,$r.ease),e._yEase=f?Cf(rr(f===!0?s:f,$r.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!b&&!!i.runBackwards,!b||d&&!i.stagger){if(T=y[0]?tr(y[0]).harness:0,Q=T&&i[T.prop],S=Ts(i,Ho),p&&(p._zTime<0&&p.progress(1),n<0&&u&&a&&!h?p.render(-1,!0):p.revert(u&&m?ws:_y),p._lazy=0),o){if(In(e._startAt=Me.set(y,bt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!p&&at(l),startAt:null,delay:0,onUpdate:c&&function(){return xt(e,"onUpdate")},stagger:0},o))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ue||!a&&!h)&&e._startAt.revert(ws),a&&m&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(u&&m&&!p){if(n&&(a=!1),w=bt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&at(l),immediateRender:a,stagger:0,parent:x},S),Q&&(w[T.prop]=Q),In(e._startAt=Me.set(y,w)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ue?e._startAt.revert(ws):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,he,he);else if(!n)return}for(e._pt=e._ptCache=0,l=m&&at(l)||l&&!m,E=0;E<y.length;E++){if(v=y[E],P=v._gsap||Yo(y)[E]._gsap,e._ptLookup[E]=K={},Jo[P.id]&&An.length&&ks(),ne=k===y?E:k.indexOf(v),T&&(I=new T).init(v,Q||S,e,ne,k)!==!1&&(e._pt=A=new ut(e._pt,v,I.name,0,1,I.render,I,0,I.priority),I._props.forEach(function(te){K[te]=A}),I.priority&&(F=1)),!T||Q)for(w in S)yt[w]&&(I=Pf(w,S,e,ne,v,k))?I.priority&&(F=1):K[w]=A=oa.call(e,v,w,"get",S[w],ne,k,0,i.stringFilter);e._op&&e._op[E]&&e.kill(v,e._op[E]),z&&e._pt&&(Nn=e,Ce.killTweensOf(v,K,e.globalTime(n)),ee=!e.parent,Nn=0),e._pt&&l&&(Jo[P.id]=1)}F&&Rf(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!ee,d&&n<=0&&b.render(Pt,!0,!0)},By=function(e,n,r,i,s,o,a,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],u,f,d,h;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,h=e._targets.length;h--;){if(u=d[h][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return aa=1,e.vars[n]="+=0",la(e,a),aa=0,l?hi(n+" not eligible for reset"):1;c.push(u)}for(h=c.length;h--;)f=c[h],u=f._pt||f,u.s=(i||i===0)&&!s?i:u.s+(i||0)+o*u.c,u.c=r-u.s,f.e&&(f.e=De(r)+Ge(f.e)),f.b&&(f.b=u.s+Ge(f.b))},Wy=function(e,n){var r=e[0]?tr(e[0]).harness:0,i=r&&r.aliases,s,o,a,l;if(!i)return n;s=Ar({},n);for(o in i)if(o in s)for(l=i[o].split(","),a=l.length;a--;)s[l[a]]=s[o];return s},Hy=function(e,n,r,i){var s=n.ease||i||"power1.inOut",o,a;if(Ye(n))a=r[e]||(r[e]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:s})});else for(o in n)a=r[o]||(r[o]=[]),o==="ease"||a.push({t:parseFloat(e),v:n[o],e:s})},Si=function(e,n,r,i,s){return Pe(e)?e.call(n,r,i,s):Fe(e)&&~e.indexOf("random(")?vi(e):e},Af=qo+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",If={};lt(Af+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return If[t]=1});var Me=function(t){Bc(e,t);function e(r,i,s,o){var a;typeof i=="number"&&(s.duration=i,i=s,s=null),a=t.call(this,o?i:mi(i))||this;var l=a.vars,c=l.duration,u=l.delay,f=l.immediateRender,d=l.stagger,h=l.overwrite,m=l.keyframes,p=l.defaults,y=l.scrollTrigger,x=l.yoyoEase,k=i.parent||Ce,z=(Ye(r)||Hc(r)?_n(r[0]):"length"in i)?[r]:It(r),b,S,E,w,A,v,F,P;if(a._targets=z.length?Yo(z):hi("GSAP target "+r+" not found. https://gsap.com",!_t.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=h,m||d||bs(c)||bs(u)){if(i=a.vars,b=a.timeline=new rt({data:"nested",defaults:p||{},targets:k&&k.data==="nested"?k.vars.targets:z}),b.kill(),b.parent=b._dp=gn(a),b._start=0,d||bs(c)||bs(u)){if(w=z.length,F=d&&mf(d),Kt(d))for(A in d)~Af.indexOf(A)&&(P||(P={}),P[A]=d[A]);for(S=0;S<w;S++)E=Ts(i,If),E.stagger=0,x&&(E.yoyoEase=x),P&&Ar(E,P),v=z[S],E.duration=+Si(c,gn(a),S,v,z),E.delay=(+Si(u,gn(a),S,v,z)||0)-a._delay,!d&&w===1&&E.delay&&(a._delay=u=E.delay,a._start+=u,E.delay=0),b.to(v,E,F?F(S,v,z):0),b._ease=re.none;b.duration()?c=u=0:a.timeline=0}else if(m){mi(bt(b.vars.defaults,{ease:"none"})),b._ease=rr(m.ease||i.ease||"none");var T=0,I,K,ne;if(Ye(m))m.forEach(function(Q){return b.to(z,Q,">")}),b.duration();else{E={};for(A in m)A==="ease"||A==="easeEach"||Hy(A,m[A],E,m.easeEach);for(A in E)for(I=E[A].sort(function(Q,ee){return Q.t-ee.t}),T=0,S=0;S<I.length;S++)K=I[S],ne={ease:K.e,duration:(K.t-(S?I[S-1].t:0))/100*c},ne[A]=K.v,b.to(z,ne,T),T+=ne.duration;b.duration()<c&&b.to({},{duration:c-b.duration()})}}c||a.duration(c=b.duration())}else a.timeline=0;return h===!0&&!Fo&&(Nn=gn(a),Ce.killTweensOf(z),Nn=0),Yt(k,gn(a),s),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(f||!c&&!m&&a._start===Oe(k._time)&&at(f)&&Sy(gn(a))&&k.data!=="nested")&&(a._tTime=-he,a.render(Math.max(0,-u)||0)),y&&cf(gn(a),y),a}var n=e.prototype;return n.render=function(i,s,o){var a=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-he&&!u?l:i<he?0:i,d,h,m,p,y,x,k,z,b;if(!c)Ty(this,i,s,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(d=f,z=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(p*100+i,s,o);if(d=Oe(f%p),f===l?(m=this._repeat,d=c):(y=Oe(f/p),m=~~y,m&&m===y?(d=c,m--):d>c&&(d=c)),x=this._yoyo&&m&1,x&&(b=this._yEase,d=c-d),y=Ir(this._tTime,p),d===a&&!o&&this._initted&&m===y)return this._tTime=f,this;m!==y&&(z&&this._yEase&&Of(z,x),this.vars.repeatRefresh&&!x&&!this._lock&&d!==p&&this._initted&&(this._lock=o=1,this.render(Oe(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(ff(this,u?i:d,o,s,f))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==y))return this;if(c!==this._dur)return this.render(i,s,o)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=k=(b||this._ease)(d/c),this._from&&(this.ratio=k=1-k),!a&&f&&!s&&!y&&(xt(this,"onStart"),this._tTime!==f))return this;for(h=this._pt;h;)h.r(k,h.d),h=h._next;z&&z.render(i<0?i:z._dur*z._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(u&&Xo(this,i,s,o),xt(this,"onUpdate")),this._repeat&&m!==y&&this.vars.onRepeat&&!s&&this.parent&&xt(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&Xo(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&In(this,1),!s&&!(u&&!a)&&(f||a||x)&&(xt(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,l){xi||wt.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||la(this,c),u=this._ease(c/this._dur),By(this,i,s,o,a,u,c,l)?this.resetTo(i,s,o,a,1):($s(this,0),this.parent||af(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?yi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ue),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,Nn&&Nn.vars.overwrite!==!0)._first||yi(this),this.parent&&o!==this.timeline.totalDuration()&&Dr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,l=i?It(i):a,c=this._ptLookup,u=this._pt,f,d,h,m,p,y,x;if((!s||s==="all")&&xy(a,l))return s==="all"&&(this._pt=0),yi(this);for(f=this._op=this._op||[],s!=="all"&&(Fe(s)&&(p={},lt(s,function(k){return p[k]=1}),s=p),s=Wy(a,s)),x=a.length;x--;)if(~l.indexOf(a[x])){d=c[x],s==="all"?(f[x]=s,m=d,h={}):(h=f[x]=f[x]||{},m=s);for(p in m)y=d&&d[p],y&&((!("kill"in y.d)||y.d.kill(p)===!0)&&zs(this,y,"_pt"),delete d[p]),h!=="all"&&(h[p]=1)}return this._initted&&!this._pt&&u&&yi(this),this},e.to=function(i,s){return new e(i,s,arguments[2])},e.from=function(i,s){return gi(1,arguments)},e.delayedCall=function(i,s,o,a){return new e(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(i,s,o){return gi(2,arguments)},e.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new e(i,s)},e.killTweensOf=function(i,s,o){return Ce.killTweensOf(i,s,o)},e}(wi);bt(Me.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),lt("staggerTo,staggerFrom,staggerFromTo",function(t){Me[t]=function(){var e=new rt,n=ea.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var ua=function(e,n,r){return e[n]=r},Df=function(e,n,r){return e[n](r)},Jy=function(e,n,r,i){return e[n](i.fp,r)},Ky=function(e,n,r){return e.setAttribute(n,r)},ca=function(e,n){return Pe(e[n])?Df:Lo(e[n])&&e.setAttribute?Ky:ua},Mf=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},qy=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},Nf=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},fa=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},Yy=function(e,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(e,n,r),s=o},Gy=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?zs(this,n,"_pt"):n.dep||(r=1),n=i;return!r},Xy=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},Rf=function(e){for(var n=e._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}e._pt=s},ut=function(){function t(n,r,i,s,o,a,l,c,u){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||Mf,this.d=l||this,this.set=c||ua,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=Xy,this.m=r,this.mt=s,this.tween=i},t}();lt(qo+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return Ho[t]=1}),vt.TweenMax=vt.TweenLite=Me,vt.TimelineLite=vt.TimelineMax=rt,Ce=new rt({sortChildren:!1,defaults:$r,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),_t.stringFilter=zf;var sr=[],Es={},Qy=[],Ff=0,eb=0,da=function(e){return(Es[e]||Qy).map(function(n){return n()})},ha=function(){var e=Date.now(),n=[];e-Ff>2&&(da("matchMediaInit"),sr.forEach(function(r){var i=r.queries,s=r.conditions,o,a,l,c;for(a in i)o=qt.matchMedia(i[a]).matches,o&&(l=1),o!==s[a]&&(s[a]=o,c=1);c&&(r.revert(),l&&n.push(r))}),da("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Ff=e,da("matchMedia"))},Zf=function(){function t(n,r){this.selector=r&&ta(r),this.data=[],this._r=[],this.isReverted=!1,this.id=eb++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,s){Pe(r)&&(s=i,i=r,r=Pe);var o=this,a=function(){var c=Se,u=o.selector,f;return c&&c!==o&&c.data.push(o),s&&(o.selector=ta(s)),Se=o,f=i.apply(o,arguments),Pe(f)&&o._r.push(f),Se=c,o.selector=u,o.isReverted=!1,f};return o.last=a,r===Pe?a(o,function(l){return o.add(null,l)}):r?o[r]=a:a},e.ignore=function(r){var i=Se;Se=null,r(this),Se=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Me&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),l=s.data.length,c;l--;)c=s.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=s.data.length;l--;)c=s.data[l],c instanceof rt?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Me)&&c.revert&&c.revert(r);s._r.forEach(function(u){return u(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=sr.length;o--;)sr[o].id===this.id&&sr.splice(o,1)},e.revert=function(r){this.kill(r||{})},t}(),tb=function(){function t(n){this.contexts=[],this.scope=n,Se&&Se.data.push(this)}var e=t.prototype;return e.add=function(r,i,s){Kt(r)||(r={matches:r});var o=new Zf(0,s||this.scope),a=o.conditions={},l,c,u;Se&&!o.selector&&(o.selector=Se.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(c in r)c==="all"?u=1:(l=qt.matchMedia(r[c]),l&&(sr.indexOf(o)<0&&sr.push(o),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(ha):l.addEventListener("change",ha)));return u&&i(o,function(f){return o.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Ps={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return wf(i)})},timeline:function(e){return new rt(e)},getTweensOf:function(e,n){return Ce.getTweensOf(e,n)},getProperty:function(e,n,r,i){Fe(e)&&(e=It(e)[0]);var s=tr(e||{}).get,o=r?sf:rf;return r==="native"&&(r=""),e&&(n?o((yt[n]&&yt[n].get||s)(e,n,r,i)):function(a,l,c){return o((yt[a]&&yt[a].get||s)(e,a,l,c))})},quickSetter:function(e,n,r){if(e=It(e),e.length>1){var i=e.map(function(u){return ct.quickSetter(u,n,r)}),s=i.length;return function(u){for(var f=s;f--;)i[f](u)}}e=e[0]||{};var o=yt[n],a=tr(e),l=a.harness&&(a.harness.aliases||{})[n]||n,c=o?function(u){var f=new o;Mr._pt=0,f.init(e,r?u+r:u,Mr,0,[e]),f.render(1,f),Mr._pt&&fa(1,Mr)}:a.set(e,l);return o?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,n,r){var i,s=ct.to(e,bt((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(l,c,u){return s.resetTo(n,l,c,u)};return o.tween=s,o},isTweening:function(e){return Ce.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=rr(e.ease,$r.ease)),of($r,e||{})},config:function(e){return of(_t,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,s=e.defaults,o=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!yt[a]&&!vt[a]&&hi(n+" effect requires "+a+" plugin.")}),Ko[n]=function(a,l,c){return r(It(a),bt(l||{},s),c)},o&&(rt.prototype[n]=function(a,l,c){return this.add(Ko[n](a,Kt(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){re[e]=rr(n)},parseEase:function(e,n){return arguments.length?rr(e,n):re},getById:function(e){return Ce.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new rt(e),i,s;for(r.smoothChildTiming=at(e.smoothChildTiming),Ce.remove(r),r._dp=0,r._time=r._tTime=Ce._time,i=Ce._first;i;)s=i._next,(n||!(!i._dur&&i instanceof Me&&i.vars.onComplete===i._targets[0]))&&Yt(r,i,i._start-i._delay),i=s;return Yt(Ce,r,0),r},context:function(e,n){return e?new Zf(e,n):Se},matchMedia:function(e){return new tb(e)},matchMediaRefresh:function(){return sr.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||ha()},addEventListener:function(e,n){var r=Es[e]||(Es[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Es[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:Iy,wrapYoyo:Dy,distribute:mf,random:_f,snap:gf,normalize:Ay,getUnit:Ge,clamp:Oy,splitColor:Sf,toArray:It,selector:ta,mapRange:yf,pipe:Ey,unitize:Py,interpolate:My,shuffle:pf},install:Gc,effects:Ko,ticker:wt,updateRoot:rt.updateRoot,plugins:yt,globalTimeline:Ce,core:{PropTween:ut,globals:Xc,Tween:Me,Timeline:rt,Animation:wi,getCache:tr,_removeLinkedListItem:zs,reverting:function(){return Ue},context:function(e){return e&&Se&&(Se.data.push(e),e._ctx=Se),Se},suppressOverwrites:function(e){return Fo=e}}};lt("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Ps[t]=Me[t]}),wt.add(rt.updateRoot),Mr=Ps.to({},{duration:0});var nb=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},rb=function(e,n){var r=e._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=e._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=nb(o,i)),o&&o.modifier&&o.modifier(n[i],e,r[s],i))},pa=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var l,c;if(Fe(s)&&(l={},lt(s,function(u){return l[u]=1}),s=l),n){l={};for(c in s)l[c]=n(s[c]);s=l}rb(a,s)}}}},ct=Ps.registerPlugin({name:"attr",init:function(e,n,r,i,s){var o,a,l;this.tween=r;for(o in n)l=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(l||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=l,this._props.push(o)},render:function(e,n){for(var r=n._pt;r;)Ue?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},pa("roundProps",na),pa("modifiers"),pa("snap",gf))||Ps;Me.version=rt.version=ct.version="3.14.2",Yc=1,jo()&&Nr(),re.Power0,re.Power1,re.Power2,re.Power3,re.Power4,re.Linear,re.Quad,re.Cubic,re.Quart,re.Quint,re.Strong,re.Elastic,re.Back,re.SteppedEase,re.Bounce,re.Sine,re.Expo,re.Circ;/*!
|
|
48
|
+
*/var vt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pr={duration:.5,overwrite:!1,delay:0},Bs,Je,Ce,At=1e8,me=1/At,Us=Math.PI*2,Sb=Us/4,kb=0,Xc=Math.sqrt,Tb=Math.cos,zb=Math.sin,Be=function(e){return typeof e=="string"},De=function(e){return typeof e=="function"},xn=function(e){return typeof e=="number"},Vs=function(e){return typeof e>"u"},Yt=function(e){return typeof e=="object"},ut=function(e){return e!==!1},Ws=function(){return typeof window<"u"},wo=function(e){return De(e)||Be(e)},Qc=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Qe=Array.isArray,Cb=/random\([^)]+\)/g,$b=/,\s*/g,ef=/(?:-?\.?\d|\.)+/gi,tf=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ir=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Hs=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,nf=/[+-]=-?[.\d]+/,Ob=/[^,'"\[\]\s]+/gi,Eb=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ie,Xt,Js,Gs,bt={},So={},rf,of=function(e){return(So=Rr(e,bt))&&dt},Ks=function(e,n){return console.warn("Invalid property",e,"set to",n,"Missing plugin? gsap.registerPlugin()")},pi=function(e,n){return!n&&console.warn(e)},sf=function(e,n){return e&&(bt[e]=n)&&So&&(So[e]=n)||bt},mi=function(){return 0},Pb={suppressEvents:!0,isStart:!0,kill:!1},ko={suppressEvents:!0,kill:!1},Ib={suppressEvents:!0},qs={},Dn=[],Ys={},af,yt={},Xs={},lf=30,To=[],Qs="",ea=function(e){var n=e[0],r,i;if(Yt(n)||De(n)||(e=[e]),!(r=(n._gsap||{}).harness)){for(i=To.length;i--&&!To[i].targetTest(n););r=To[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Nf(e[i],r)))||e.splice(i,1);return e},rr=function(e){return e._gsap||ea(Dt(e))[0]._gsap},uf=function(e,n,r){return(r=e[n])&&De(r)?e[n]():Vs(r)&&e.getAttribute&&e.getAttribute(n)||r},ct=function(e,n){return(e=e.split(",")).forEach(n)||e},Me=function(e){return Math.round(e*1e5)/1e5||0},Ae=function(e){return Math.round(e*1e7)/1e7||0},Ar=function(e,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return e=parseFloat(e),r==="+"?e+i:r==="-"?e-i:r==="*"?e*i:e/i},Ab=function(e,n){for(var r=n.length,i=0;e.indexOf(n[i])<0&&++i<r;);return i<r},zo=function(){var e=Dn.length,n=Dn.slice(0),r,i;for(Ys={},Dn.length=0,r=0;r<e;r++)i=n[r],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},ta=function(e){return!!(e._initted||e._startAt||e.add)},cf=function(e,n,r,i){Dn.length&&!Je&&zo(),e.render(n,r,!!(Je&&n<0&&ta(e))),Dn.length&&!Je&&zo()},ff=function(e){var n=parseFloat(e);return(n||n===0)&&(e+"").match(Ob).length<2?n:Be(e)?e.trim():e},df=function(e){return e},xt=function(e,n){for(var r in n)r in e||(e[r]=n[r]);return e},Rb=function(e){return function(n,r){for(var i in r)i in n||i==="duration"&&e||i==="ease"||(n[i]=r[i])}},Rr=function(e,n){for(var r in n)e[r]=n[r];return e},hf=function t(e,n){for(var r in n)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=Yt(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Co=function(e,n){var r={},i;for(i in e)i in n||(r[i]=e[i]);return r},gi=function(e){var n=e.parent||Ie,r=e.keyframes?Rb(Qe(e.keyframes)):xt;if(ut(e.inherit))for(;n;)r(e,n.vars.defaults),n=n.parent||n._dp;return e},Db=function(e,n){for(var r=e.length,i=r===n.length;i&&r--&&e[r]===n[r];);return r<0},pf=function(e,n,r,i,o){var s=e[i],a;if(o)for(a=n[o];s&&s[o]>a;)s=s._prev;return s?(n._next=s._next,s._next=n):(n._next=e[r],e[r]=n),n._next?n._next._prev=n:e[i]=n,n._prev=s,n.parent=n._dp=e,n},$o=function(e,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var o=n._prev,s=n._next;o?o._next=s:e[r]===n&&(e[r]=s),s?s._prev=o:e[i]===n&&(e[i]=o),n._next=n._prev=n.parent=null},Fn=function(e,n){e.parent&&(!n||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ir=function(e,n){if(e&&(!n||n._end>e._dur||n._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},Fb=function(e){for(var n=e.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return e},na=function(e,n,r,i){return e._startAt&&(Je?e._startAt.revert(ko):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(n,!0,i))},Nb=function t(e){return!e||e._ts&&t(e.parent)},mf=function(e){return e._repeat?Dr(e._tTime,e=e.duration()+e._rDelay)*e:0},Dr=function(e,n){var r=Math.floor(e=Ae(e/n));return e&&r===e?r-1:r},Oo=function(e,n){return(e-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Eo=function(e){return e._end=Ae(e._start+(e._tDur/Math.abs(e._ts||e._rts||me)||0))},Po=function(e,n){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Ae(r._time-(e._ts>0?n/e._ts:((e._dirty?e.totalDuration():e._tDur)-n)/-e._ts)),Eo(e),r._dirty||ir(r,e)),e},gf=function(e,n){var r;if((n._time||!n._dur&&n._initted||n._start<e._time&&(n._dur||!n.add))&&(r=Oo(e.rawTime(),n),(!n._dur||vi(0,n.totalDuration(),r)-n._tTime>me)&&n.render(r,!0)),ir(e,n)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-me}},Qt=function(e,n,r,i){return n.parent&&Fn(n),n._start=Ae((xn(r)?r:r||e!==Ie?Rt(e,r,n):e._time)+n._delay),n._end=Ae(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),pf(e,n,"_first","_last",e._sort?"_start":0),ra(n)||(e._recent=n),i||gf(e,n),e._ts<0&&Po(e,e._tTime),e},_f=function(e,n){return(bt.ScrollTrigger||Ks("scrollTrigger",n))&&bt.ScrollTrigger.create(n,e)},vf=function(e,n,r,i,o){if(da(e,n,o),!e._initted)return 1;if(!r&&e._pt&&!Je&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&af!==St.frame)return Dn.push(e),e._lazy=[o,i],1},Mb=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ra=function(e){var n=e.data;return n==="isFromStart"||n==="isStart"},Lb=function(e,n,r,i){var o=e.ratio,s=n<0||!n&&(!e._start&&Mb(e)&&!(!e._initted&&ra(e))||(e._ts<0||e._dp._ts<0)&&!ra(e))?0:1,a=e._rDelay,l=0,c,u,f;if(a&&e._repeat&&(l=vi(0,e._tDur,n),u=Dr(l,a),e._yoyo&&u&1&&(s=1-s),u!==Dr(e._tTime,a)&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==o||Je||i||e._zTime===me||!n&&e._zTime){if(!e._initted&&vf(e,n,i,r,l))return;for(f=e._zTime,e._zTime=n||(r?me:0),r||(r=n&&!f),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,c=e._pt;c;)c.r(s,c.d),c=c._next;n<0&&na(e,n,r,!0),e._onUpdate&&!r&&wt(e,"onUpdate"),l&&e._repeat&&!r&&e.parent&&wt(e,"onRepeat"),(n>=e._tDur||n<0)&&e.ratio===s&&(s&&Fn(e,1),!r&&!Je&&(wt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=n)},Zb=function(e,n,r){var i;if(r>n)for(i=e._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=e._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start<n)return i;i=i._prev}},Fr=function(e,n,r,i){var o=e._repeat,s=Ae(n)||0,a=e._tTime/e._tDur;return a&&!i&&(e._time*=s/e._dur),e._dur=s,e._tDur=o?o<0?1e10:Ae(s*(o+1)+e._rDelay*o):s,a>0&&!i&&Po(e,e._tTime=e._tDur*a),e.parent&&Eo(e),r||ir(e.parent,e),e},bf=function(e){return e instanceof ot?ir(e):Fr(e,e._dur)},jb={_start:0,endTime:mi,totalDuration:mi},Rt=function t(e,n,r){var i=e.labels,o=e._recent||jb,s=e.duration()>=At?o.endTime(!1):e._dur,a,l,c;return Be(n)&&(isNaN(n)||n in i)?(l=n.charAt(0),c=n.substr(-1)==="%",a=n.indexOf("="),l==="<"||l===">"?(a>=0&&(n=n.replace(/=/,"")),(l==="<"?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0)*(c?(a<0?o:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=s),i[n]):(l=parseFloat(n.charAt(a-1)+n.substr(a+1)),c&&r&&(l=l/100*(Qe(r)?r[0]:r).totalDuration()),a>1?t(e,n.substr(0,a-1),r)+l:s+l)):n==null?s:+n},_i=function(e,n,r){var i=xn(n[1]),o=(i?2:1)+(e<2?0:1),s=n[o],a,l;if(i&&(s.duration=n[1]),s.parent=r,e){for(a=s,l=r;l&&!("immediateRender"in a);)a=l.vars.defaults||{},l=ut(l.vars.inherit)&&l.parent;s.immediateRender=ut(a.immediateRender),e<2?s.runBackwards=1:s.startAt=n[o-1]}return new Le(n[0],s,n[o+1])},Nn=function(e,n){return e||e===0?n(e):n},vi=function(e,n,r){return r<e?e:r>n?n:r},et=function(e,n){return!Be(e)||!(n=Eb.exec(e))?"":n[1]},Bb=function(e,n,r){return Nn(r,function(i){return vi(e,n,i)})},ia=[].slice,yf=function(e,n){return e&&Yt(e)&&"length"in e&&(!n&&!e.length||e.length-1 in e&&Yt(e[0]))&&!e.nodeType&&e!==Xt},Ub=function(e,n,r){return r===void 0&&(r=[]),e.forEach(function(i){var o;return Be(i)&&!n||yf(i,1)?(o=r).push.apply(o,Dt(i)):r.push(i)})||r},Dt=function(e,n,r){return Ce&&!n&&Ce.selector?Ce.selector(e):Be(e)&&!r&&(Js||!Mr())?ia.call((n||Gs).querySelectorAll(e),0):Qe(e)?Ub(e,r):yf(e)?ia.call(e,0):e?[e]:[]},oa=function(e){return e=Dt(e)[0]||pi("Invalid scope")||{},function(n){var r=e.current||e.nativeElement||e;return Dt(n,r.querySelectorAll?r:r===e?pi("Invalid scope")||Gs.createElement("div"):e)}},xf=function(e){return e.sort(function(){return .5-Math.random()})},wf=function(e){if(De(e))return e;var n=Yt(e)?e:{each:e},r=or(n.ease),i=n.from||0,o=parseFloat(n.base)||0,s={},a=i>0&&i<1,l=isNaN(i)||a,c=n.axis,u=i,f=i;return Be(i)?u=f={center:.5,edges:.5,end:1}[i]||0:!a&&l&&(u=i[0],f=i[1]),function(d,h,m){var p=(m||n).length,b=s[p],x,k,z,y,w,E,A,P,_;if(!b){if(_=n.grid==="auto"?0:(n.grid||[1,At])[1],!_){for(A=-At;A<(A=m[_++].getBoundingClientRect().left)&&_<p;);_<p&&_--}for(b=s[p]=[],x=l?Math.min(_,p)*u-.5:i%_,k=_===At?0:l?p*f/_-.5:i/_|0,A=0,P=At,E=0;E<p;E++)z=E%_-x,y=k-(E/_|0),b[E]=w=c?Math.abs(c==="y"?y:z):Xc(z*z+y*y),w>A&&(A=w),w<P&&(P=w);i==="random"&&xf(b),b.max=A-P,b.min=P,b.v=p=(parseFloat(n.amount)||parseFloat(n.each)*(_>p?p-1:c?c==="y"?p/_:_:Math.max(_,p/_))||0)*(i==="edges"?-1:1),b.b=p<0?o-p:o,b.u=et(n.amount||n.each)||0,r=r&&p<0?Rf(r):r}return p=(b[d]-b.min)/b.max||0,Ae(b.b+(r?r(p):p)*b.v)+b.u}},sa=function(e){var n=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var i=Ae(Math.round(parseFloat(r)/e)*e*n);return(i-i%1)/n+(xn(r)?0:et(r))}},Sf=function(e,n){var r=Qe(e),i,o;return!r&&Yt(e)&&(i=r=e.radius||At,e.values?(e=Dt(e.values),(o=!xn(e[0]))&&(i*=i)):e=sa(e.increment)),Nn(n,r?De(e)?function(s){return o=e(s),Math.abs(o-s)<=i?o:s}:function(s){for(var a=parseFloat(o?s.x:s),l=parseFloat(o?s.y:0),c=At,u=0,f=e.length,d,h;f--;)o?(d=e[f].x-a,h=e[f].y-l,d=d*d+h*h):d=Math.abs(e[f]-a),d<c&&(c=d,u=f);return u=!i||c<=i?e[u]:s,o||u===s||xn(s)?u:u+et(s)}:sa(e))},kf=function(e,n,r,i){return Nn(Qe(e)?!n:r===!0?!!(r=0):!i,function(){return Qe(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(i=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(n-e+r*.99))/r)*r*i)/i})},Vb=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(i){return n.reduce(function(o,s){return s(o)},i)}},Wb=function(e,n){return function(r){return e(parseFloat(r))+(n||et(r))}},Hb=function(e,n,r){return zf(e,n,0,1,r)},Tf=function(e,n,r){return Nn(r,function(i){return e[~~n(i)]})},Jb=function t(e,n,r){var i=n-e;return Qe(e)?Tf(e,t(0,e.length),n):Nn(r,function(o){return(i+(o-e)%i)%i+e})},Gb=function t(e,n,r){var i=n-e,o=i*2;return Qe(e)?Tf(e,t(0,e.length-1),n):Nn(r,function(s){return s=(o+(s-e)%o)%o||0,e+(s>i?o-s:s)})},bi=function(e){return e.replace(Cb,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split($b);return kf(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},zf=function(e,n,r,i,o){var s=n-e,a=i-r;return Nn(o,function(l){return r+((l-e)/s*a||0)})},Kb=function t(e,n,r,i){var o=isNaN(e+n)?0:function(h){return(1-h)*e+h*n};if(!o){var s=Be(e),a={},l,c,u,f,d;if(r===!0&&(i=1)&&(r=null),s)e={p:e},n={p:n};else if(Qe(e)&&!Qe(n)){for(u=[],f=e.length,d=f-2,c=1;c<f;c++)u.push(t(e[c-1],e[c]));f--,o=function(m){m*=f;var p=Math.min(d,~~m);return u[p](m-p)},r=n}else i||(e=Rr(Qe(e)?[]:{},e));if(!u){for(l in n)ca.call(a,e,l,"get",n[l]);o=function(m){return ma(m,a)||(s?e.p:e)}}}return Nn(r,o)},Cf=function(e,n,r){var i=e.labels,o=At,s,a,l;for(s in i)a=i[s]-n,a<0==!!r&&a&&o>(a=Math.abs(a))&&(l=s,o=a);return l},wt=function(e,n,r){var i=e.vars,o=i[n],s=Ce,a=e._ctx,l,c,u;if(o)return l=i[n+"Params"],c=i.callbackScope||e,r&&Dn.length&&zo(),a&&(Ce=a),u=l?o.apply(c,l):o.call(c),Ce=s,u},yi=function(e){return Fn(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Je),e.progress()<1&&wt(e,"onInterrupt"),e},Nr,$f=[],Of=function(e){if(e)if(e=!e.name&&e.default||e,Ws()||e.headless){var n=e.name,r=De(e),i=n&&!r&&e.init?function(){this._props=[]}:e,o={init:mi,render:ma,add:ca,kill:fy,modifier:cy,rawVars:0},s={targetTest:0,get:0,getSetter:pa,aliases:{},register:0};if(Mr(),e!==i){if(yt[n])return;xt(i,xt(Co(e,o),s)),Rr(i.prototype,Rr(o,Co(e,s))),yt[i.prop=n]=i,e.targetTest&&(To.push(i),qs[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}sf(n,i),e.register&&e.register(dt,i,ft)}else $f.push(e)},ge=255,xi={aqua:[0,ge,ge],lime:[0,ge,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ge],navy:[0,0,128],white:[ge,ge,ge],olive:[128,128,0],yellow:[ge,ge,0],orange:[ge,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ge,0,0],pink:[ge,192,203],cyan:[0,ge,ge],transparent:[ge,ge,ge,0]},aa=function(e,n,r){return e+=e<0?1:e>1?-1:0,(e*6<1?n+(r-n)*e*6:e<.5?r:e*3<2?n+(r-n)*(2/3-e)*6:n)*ge+.5|0},Ef=function(e,n,r){var i=e?xn(e)?[e>>16,e>>8&ge,e&ge]:0:xi.black,o,s,a,l,c,u,f,d,h,m;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),xi[e])i=xi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(o=e.charAt(1),s=e.charAt(2),a=e.charAt(3),e="#"+o+o+s+s+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ge,i&ge,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ge,e&ge]}else if(e.substr(0,3)==="hsl"){if(i=m=e.match(ef),!n)l=+i[0]%360/360,c=+i[1]/100,u=+i[2]/100,s=u<=.5?u*(c+1):u+c-u*c,o=u*2-s,i.length>3&&(i[3]*=1),i[0]=aa(l+1/3,o,s),i[1]=aa(l,o,s),i[2]=aa(l-1/3,o,s);else if(~e.indexOf("="))return i=e.match(tf),r&&i.length<4&&(i[3]=1),i}else i=e.match(ef)||xi.transparent;i=i.map(Number)}return n&&!m&&(o=i[0]/ge,s=i[1]/ge,a=i[2]/ge,f=Math.max(o,s,a),d=Math.min(o,s,a),u=(f+d)/2,f===d?l=c=0:(h=f-d,c=u>.5?h/(2-f-d):h/(f+d),l=f===o?(s-a)/h+(s<a?6:0):f===s?(a-o)/h+2:(o-s)/h+4,l*=60),i[0]=~~(l+.5),i[1]=~~(c*100+.5),i[2]=~~(u*100+.5)),r&&i.length<4&&(i[3]=1),i},Pf=function(e){var n=[],r=[],i=-1;return e.split(Mn).forEach(function(o){var s=o.match(Ir)||[];n.push.apply(n,s),r.push(i+=s.length+1)}),n.c=r,n},If=function(e,n,r){var i="",o=(e+i).match(Mn),s=n?"hsla(":"rgba(",a=0,l,c,u,f;if(!o)return e;if(o=o.map(function(d){return(d=Ef(d,n,1))&&s+(n?d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:d.join(","))+")"}),r&&(u=Pf(e),l=r.c,l.join(i)!==u.c.join(i)))for(c=e.replace(Mn,"1").split(Ir),f=c.length-1;a<f;a++)i+=c[a]+(~l.indexOf(a)?o.shift()||s+"0,0,0,0)":(u.length?u:o.length?o:r).shift());if(!c)for(c=e.split(Mn),f=c.length-1;a<f;a++)i+=c[a]+o[a];return i+c[f]},Mn=function(){var t="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in xi)t+="|"+e+"\\b";return new RegExp(t+")","gi")}(),qb=/hsl[a]?\(/,Af=function(e){var n=e.join(" "),r;if(Mn.lastIndex=0,Mn.test(n))return r=qb.test(n),e[1]=If(e[1],r),e[0]=If(e[0],r,Pf(e[1])),!0},wi,St=function(){var t=Date.now,e=500,n=33,r=t(),i=r,o=1e3/240,s=o,a=[],l,c,u,f,d,h,m=function p(b){var x=t()-i,k=b===!0,z,y,w,E;if((x>e||x<0)&&(r+=x-n),i+=x,w=i-r,z=w-s,(z>0||k)&&(E=++f.frame,d=w-f.time*1e3,f.time=w=w/1e3,s+=z+(z>=o?4:o-z),y=1),k||(l=c(p)),y)for(h=0;h<a.length;h++)a[h](w,d,E,b)};return f={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(b){return d/(1e3/(b||60))},wake:function(){rf&&(!Js&&Ws()&&(Xt=Js=window,Gs=Xt.document||{},bt.gsap=dt,(Xt.gsapVersions||(Xt.gsapVersions=[])).push(dt.version),of(So||Xt.GreenSockGlobals||!Xt.gsap&&Xt||{}),$f.forEach(Of)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),c=u||function(b){return setTimeout(b,s-f.time*1e3+1|0)},wi=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(l),wi=0,c=mi},lagSmoothing:function(b,x){e=b||1/0,n=Math.min(x||33,e)},fps:function(b){o=1e3/(b||240),s=f.time*1e3+o},add:function(b,x,k){var z=x?function(y,w,E,A){b(y,w,E,A),f.remove(z)}:b;return f.remove(b),a[k?"unshift":"push"](z),Mr(),z},remove:function(b,x){~(x=a.indexOf(b))&&a.splice(x,1)&&h>=x&&h--},_listeners:a},f}(),Mr=function(){return!wi&&St.wake()},re={},Yb=/^[\d.\-M][\d.\-,\s]/,Xb=/["']/g,Qb=function(e){for(var n={},r=e.substr(1,e.length-3).split(":"),i=r[0],o=1,s=r.length,a,l,c;o<s;o++)l=r[o],a=o!==s-1?l.lastIndexOf(","):l.length,c=l.substr(0,a),n[i]=isNaN(c)?c.replace(Xb,"").trim():+c,i=l.substr(a+1).trim();return n},ey=function(e){var n=e.indexOf("(")+1,r=e.indexOf(")"),i=e.indexOf("(",n);return e.substring(n,~i&&i<r?e.indexOf(")",r+1):r)},ty=function(e){var n=(e+"").split("("),r=re[n[0]];return r&&n.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[Qb(n[1])]:ey(e).split(",").map(ff)):re._CE&&Yb.test(e)?re._CE("",e):r},Rf=function(e){return function(n){return 1-e(1-n)}},Df=function t(e,n){for(var r=e._first,i;r;)r instanceof ot?t(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?t(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},or=function(e,n){return e&&(De(e)?e:re[e]||ty(e))||n},sr=function(e,n,r,i){r===void 0&&(r=function(l){return 1-n(1-l)}),i===void 0&&(i=function(l){return l<.5?n(l*2)/2:1-n((1-l)*2)/2});var o={easeIn:n,easeOut:r,easeInOut:i},s;return ct(e,function(a){re[a]=bt[a]=o,re[s=a.toLowerCase()]=r;for(var l in o)re[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=re[a+"."+l]=o[l]}),o},Ff=function(e){return function(n){return n<.5?(1-e(1-n*2))/2:.5+e((n-.5)*2)/2}},la=function t(e,n,r){var i=n>=1?n:1,o=(r||(e?.3:.45))/(n<1?n:1),s=o/Us*(Math.asin(1/i)||0),a=function(u){return u===1?1:i*Math.pow(2,-10*u)*zb((u-s)*o)+1},l=e==="out"?a:e==="in"?function(c){return 1-a(1-c)}:Ff(a);return o=Us/o,l.config=function(c,u){return t(e,c,u)},l},ua=function t(e,n){n===void 0&&(n=1.70158);var r=function(s){return s?--s*s*((n+1)*s+n)+1:0},i=e==="out"?r:e==="in"?function(o){return 1-r(1-o)}:Ff(r);return i.config=function(o){return t(e,o)},i};ct("Linear,Quad,Cubic,Quart,Quint,Strong",function(t,e){var n=e<5?e+1:e;sr(t+",Power"+(n-1),e?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})}),re.Linear.easeNone=re.none=re.Linear.easeIn,sr("Elastic",la("in"),la("out"),la()),function(t,e){var n=1/e,r=2*n,i=2.5*n,o=function(a){return a<n?t*a*a:a<r?t*Math.pow(a-1.5/e,2)+.75:a<i?t*(a-=2.25/e)*a+.9375:t*Math.pow(a-2.625/e,2)+.984375};sr("Bounce",function(s){return 1-o(1-s)},o)}(7.5625,2.75),sr("Expo",function(t){return Math.pow(2,10*(t-1))*t+t*t*t*t*t*t*(1-t)}),sr("Circ",function(t){return-(Xc(1-t*t)-1)}),sr("Sine",function(t){return t===1?1:-Tb(t*Sb)+1}),sr("Back",ua("in"),ua("out"),ua()),re.SteppedEase=re.steps=bt.SteppedEase={config:function(e,n){e===void 0&&(e=1);var r=1/e,i=e+(n?0:1),o=n?1:0,s=1-me;return function(a){return((i*vi(0,s,a)|0)+o)*r}}},Pr.ease=re["quad.out"],ct("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(t){return Qs+=t+","+t+"Params,"});var Nf=function(e,n){this.id=kb++,e._gsap=this,this.target=e,this.harness=n,this.get=n?n.get:uf,this.set=n?n.getSetter:pa},Si=function(){function t(n){this.vars=n,this._delay=+n.delay||0,(this._repeat=n.repeat===1/0?-2:n.repeat||0)&&(this._rDelay=n.repeatDelay||0,this._yoyo=!!n.yoyo||!!n.yoyoEase),this._ts=1,Fr(this,+n.duration,1,1),this.data=n.data,Ce&&(this._ctx=Ce,Ce.data.push(this)),wi||St.wake()}var e=t.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Fr(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,i){if(Mr(),!arguments.length)return this._tTime;var o=this._dp;if(o&&o.smoothChildTiming&&this._ts){for(Po(this,r),!o._dp||o.parent||gf(o,this);o&&o.parent;)o.parent._time!==o._start+(o._ts>=0?o._tTime/o._ts:(o.totalDuration()-o._tTime)/-o._ts)&&o.totalTime(o._tTime,!0),o=o.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&Qt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===me||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),cf(this,r,i)),this},e.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+mf(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},e.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+mf(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,i){var o=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*o,i):this._repeat?Dr(this._tTime,o)+1:1},e.timeScale=function(r,i){if(!arguments.length)return this._rts===-me?0:this._rts;if(this._rts===r)return this;var o=this.parent&&this._ts?Oo(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-me?0:this._rts,this.totalTime(vi(-Math.abs(this._delay),this.totalDuration(),o),i!==!1),Eo(this),Fb(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Mr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==me&&(this._tTime-=me)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=Ae(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Qt(i,this,this._start-this._delay),this}return this._start},e.endTime=function(r){return this._start+(ut(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Oo(i.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=Ib);var i=Je;return Je=r,ta(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Je=i,this},e.globalTime=function(r){for(var i=this,o=arguments.length?r:i.rawTime();i;)o=i._start+o/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):o},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,bf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,bf(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,i){return this.totalTime(Rt(this,r),ut(i))},e.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,ut(i)),this._dur||(this._zTime=-me),this},e.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},e.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-me:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-me,this},e.isActive=function(){var r=this.parent||this._dp,i=this._start,o;return!!(!r||this._ts&&this._initted&&r.isActive()&&(o=r.rawTime(!0))>=i&&o<this.endTime(!0)-me)},e.eventCallback=function(r,i,o){var s=this.vars;return arguments.length>1?(i?(s[r]=i,o&&(s[r+"Params"]=o),r==="onUpdate"&&(this._onUpdate=i)):delete s[r],this):s[r]},e.then=function(r){var i=this,o=i._prom;return new Promise(function(s){var a=De(r)?r:df,l=function(){var u=i.then;i.then=null,o&&o(),De(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=u),s(a),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){yi(this)},t}();xt(Si.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-me,_prom:0,_ps:!1,_rts:1});var ot=function(t){Yc(e,t);function e(r,i){var o;return r===void 0&&(r={}),o=t.call(this,r)||this,o.labels={},o.smoothChildTiming=!!r.smoothChildTiming,o.autoRemoveChildren=!!r.autoRemoveChildren,o._sort=ut(r.sortChildren),Ie&&Qt(r.parent||Ie,yn(o),i),r.reversed&&o.reverse(),r.paused&&o.paused(!0),r.scrollTrigger&&_f(yn(o),r.scrollTrigger),o}var n=e.prototype;return n.to=function(i,o,s){return _i(0,arguments,this),this},n.from=function(i,o,s){return _i(1,arguments,this),this},n.fromTo=function(i,o,s,a){return _i(2,arguments,this),this},n.set=function(i,o,s){return o.duration=0,o.parent=this,gi(o).repeatDelay||(o.repeat=0),o.immediateRender=!!o.immediateRender,new Le(i,o,Rt(this,s),1),this},n.call=function(i,o,s){return Qt(this,Le.delayedCall(0,i,o),s)},n.staggerTo=function(i,o,s,a,l,c,u){return s.duration=o,s.stagger=s.stagger||a,s.onComplete=c,s.onCompleteParams=u,s.parent=this,new Le(i,s,Rt(this,l)),this},n.staggerFrom=function(i,o,s,a,l,c,u){return s.runBackwards=1,gi(s).immediateRender=ut(s.immediateRender),this.staggerTo(i,o,s,a,l,c,u)},n.staggerFromTo=function(i,o,s,a,l,c,u,f){return a.startAt=s,gi(a).immediateRender=ut(a.immediateRender),this.staggerTo(i,o,a,l,c,u,f)},n.render=function(i,o,s){var a=this._time,l=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=i<=0?0:Ae(i),f=this._zTime<0!=i<0&&(this._initted||!c),d,h,m,p,b,x,k,z,y,w,E,A;if(this!==Ie&&u>l&&i>=0&&(u=l),u!==this._tTime||s||f){if(a!==this._time&&c&&(u+=this._time-a,i+=this._time-a),d=u,y=this._start,z=this._ts,x=!z,f&&(c||(a=this._zTime),(i||!o)&&(this._zTime=i)),this._repeat){if(E=this._yoyo,b=c+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(b*100+i,o,s);if(d=Ae(u%b),u===l?(p=this._repeat,d=c):(w=Ae(u/b),p=~~w,p&&p===w&&(d=c,p--),d>c&&(d=c)),w=Dr(this._tTime,b),!a&&this._tTime&&w!==p&&this._tTime-w*b-this._dur<=0&&(w=p),E&&p&1&&(d=c-d,A=1),p!==w&&!this._lock){var P=E&&w&1,_=P===(E&&p&1);if(p<w&&(P=!P),a=P?0:u%c?c:u,this._lock=1,this.render(a||(A?0:Ae(p*b)),o,!c)._lock=0,this._tTime=u,!o&&this.parent&&wt(this,"onRepeat"),this.vars.repeatRefresh&&!A&&(this.invalidate()._lock=1,w=p),a&&a!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,l=this._tDur,_&&(this._lock=2,a=P?c:-1e-4,this.render(a,!0),this.vars.repeatRefresh&&!A&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Df(this,A)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=Zb(this,Ae(a),Ae(d)),k&&(u-=d-(d=k._start))),this._tTime=u,this._time=d,this._act=!z,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,a=0),!a&&u&&c&&!o&&!w&&(wt(this,"onStart"),this._tTime!==u))return this;if(d>=a&&i>=0)for(h=this._first;h;){if(m=h._next,(h._act||d>=h._start)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,o,s);if(h.render(h._ts>0?(d-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(d-h._start)*h._ts,o,s),d!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=-me);break}}h=m}else{h=this._last;for(var S=i<0?i:d;h;){if(m=h._prev,(h._act||S<=h._end)&&h._ts&&k!==h){if(h.parent!==this)return this.render(i,o,s);if(h.render(h._ts>0?(S-h._start)*h._ts:(h._dirty?h.totalDuration():h._tDur)+(S-h._start)*h._ts,o,s||Je&&ta(h)),d!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=S?-me:me);break}}h=m}}if(k&&!o&&(this.pause(),k.render(d>=a?0:-me)._zTime=d>=a?1:-1,this._ts))return this._start=y,Eo(this),this.render(i,o,s);this._onUpdate&&!o&&wt(this,"onUpdate",!0),(u===l&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(z)!==Math.abs(this._ts))&&(this._lock||((i||!c)&&(u===l&&this._ts>0||!u&&this._ts<0)&&Fn(this,1),!o&&!(i<0&&!a)&&(u||a||!l)&&(wt(this,u===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<l&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(i,o){var s=this;if(xn(o)||(o=Rt(this,o,i)),!(i instanceof Si)){if(Qe(i))return i.forEach(function(a){return s.add(a,o)}),this;if(Be(i))return this.addLabel(i,o);if(De(i))i=Le.delayedCall(0,i);else return this}return this!==i?Qt(this,i,o):this},n.getChildren=function(i,o,s,a){i===void 0&&(i=!0),o===void 0&&(o=!0),s===void 0&&(s=!0),a===void 0&&(a=-At);for(var l=[],c=this._first;c;)c._start>=a&&(c instanceof Le?o&&l.push(c):(s&&l.push(c),i&&l.push.apply(l,c.getChildren(!0,o,s)))),c=c._next;return l},n.getById=function(i){for(var o=this.getChildren(1,1,1),s=o.length;s--;)if(o[s].vars.id===i)return o[s]},n.remove=function(i){return Be(i)?this.removeLabel(i):De(i)?this.killTweensOf(i):(i.parent===this&&$o(this,i),i===this._recent&&(this._recent=this._last),ir(this))},n.totalTime=function(i,o){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ae(St.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),t.prototype.totalTime.call(this,i,o),this._forcing=0,this):this._tTime},n.addLabel=function(i,o){return this.labels[i]=Rt(this,o),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,o,s){var a=Le.delayedCall(0,o||mi,s);return a.data="isPause",this._hasPause=1,Qt(this,a,Rt(this,i))},n.removePause=function(i){var o=this._first;for(i=Rt(this,i);o;)o._start===i&&o.data==="isPause"&&Fn(o),o=o._next},n.killTweensOf=function(i,o,s){for(var a=this.getTweensOf(i,s),l=a.length;l--;)Ln!==a[l]&&a[l].kill(i,o);return this},n.getTweensOf=function(i,o){for(var s=[],a=Dt(i),l=this._first,c=xn(o),u;l;)l instanceof Le?Ab(l._targets,a)&&(c?(!Ln||l._initted&&l._ts)&&l.globalTime(0)<=o&&l.globalTime(l.totalDuration())>o:!o||l.isActive())&&s.push(l):(u=l.getTweensOf(a,o)).length&&s.push.apply(s,u),l=l._next;return s},n.tweenTo=function(i,o){o=o||{};var s=this,a=Rt(s,i),l=o,c=l.startAt,u=l.onStart,f=l.onStartParams,d=l.immediateRender,h,m=Le.to(s,xt({ease:o.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale())||me,onStart:function(){if(s.pause(),!h){var b=o.duration||Math.abs((a-(c&&"time"in c?c.time:s._time))/s.timeScale());m._dur!==b&&Fr(m,b,0,1).render(m._time,!0,!0),h=1}u&&u.apply(m,f||[])}},o));return d?m.render(0):m},n.tweenFromTo=function(i,o,s){return this.tweenTo(o,xt({startAt:{time:Rt(this,i)}},s))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Cf(this,Rt(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Cf(this,Rt(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+me)},n.shiftChildren=function(i,o,s){s===void 0&&(s=0);var a=this._first,l=this.labels,c;for(i=Ae(i);a;)a._start>=s&&(a._start+=i,a._end+=i),a=a._next;if(o)for(c in l)l[c]>=s&&(l[c]+=i);return ir(this)},n.invalidate=function(i){var o=this._first;for(this._lock=0;o;)o.invalidate(i),o=o._next;return t.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var o=this._first,s;o;)s=o._next,this.remove(o),o=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ir(this)},n.totalDuration=function(i){var o=0,s=this,a=s._last,l=At,c,u,f;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(f=s.parent;a;)c=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>l&&s._sort&&a._ts&&!s._lock?(s._lock=1,Qt(s,a,u-a._delay,1)._lock=0):l=u,u<0&&a._ts&&(o-=u,(!f&&!s._dp||f&&f.smoothChildTiming)&&(s._start+=Ae(u/s._ts),s._time-=u,s._tTime-=u),s.shiftChildren(-u,!1,-1/0),l=0),a._end>o&&a._ts&&(o=a._end),a=c;Fr(s,s===Ie&&s._time>o?s._time:o,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(Ie._ts&&(cf(Ie,Oo(i,Ie)),af=St.frame),St.frame>=lf){lf+=vt.autoSleep||120;var o=Ie._first;if((!o||!o._ts)&&vt.autoSleep&&St._listeners.length<2){for(;o&&!o._ts;)o=o._next;o||St.sleep()}}},e}(Si);xt(ot.prototype,{_lock:0,_hasPause:0,_forcing:0});var ny=function(e,n,r,i,o,s,a){var l=new ft(this._pt,e,n,0,1,Uf,null,o),c=0,u=0,f,d,h,m,p,b,x,k;for(l.b=r,l.e=i,r+="",i+="",(x=~i.indexOf("random("))&&(i=bi(i)),s&&(k=[r,i],s(k,e,n),r=k[0],i=k[1]),d=r.match(Hs)||[];f=Hs.exec(i);)m=f[0],p=i.substring(c,f.index),h?h=(h+1)%5:p.substr(-5)==="rgba("&&(h=1),m!==d[u++]&&(b=parseFloat(d[u-1])||0,l._pt={_next:l._pt,p:p||u===1?p:",",s:b,c:m.charAt(1)==="="?Ar(b,m)-b:parseFloat(m)-b,m:h&&h<4?Math.round:0},c=Hs.lastIndex);return l.c=c<i.length?i.substring(c,i.length):"",l.fp=a,(nf.test(i)||x)&&(l.e=0),this._pt=l,l},ca=function(e,n,r,i,o,s,a,l,c,u){De(i)&&(i=i(o||0,e,s));var f=e[n],d=r!=="get"?r:De(f)?c?e[n.indexOf("set")||!De(e["get"+n.substr(3)])?n:"get"+n.substr(3)](c):e[n]():f,h=De(f)?c?ay:jf:ha,m;if(Be(i)&&(~i.indexOf("random(")&&(i=bi(i)),i.charAt(1)==="="&&(m=Ar(d,i)+(et(d)||0),(m||m===0)&&(i=m))),!u||d!==i||fa)return!isNaN(d*i)&&i!==""?(m=new ft(this._pt,e,n,+d||0,i-(d||0),typeof f=="boolean"?uy:Bf,0,h),c&&(m.fp=c),a&&m.modifier(a,this,e),this._pt=m):(!f&&!(n in e)&&Ks(n,i),ny.call(this,e,n,d,i,h,l||vt.stringFilter,c))},ry=function(e,n,r,i,o){if(De(e)&&(e=ki(e,o,n,r,i)),!Yt(e)||e.style&&e.nodeType||Qe(e)||Qc(e))return Be(e)?ki(e,o,n,r,i):e;var s={},a;for(a in e)s[a]=ki(e[a],o,n,r,i);return s},Mf=function(e,n,r,i,o,s){var a,l,c,u;if(yt[e]&&(a=new yt[e]).init(o,a.rawVars?n[e]:ry(n[e],i,o,s,r),r,i,s)!==!1&&(r._pt=l=new ft(r._pt,o,e,0,1,a.render,a,0,a.priority),r!==Nr))for(c=r._ptLookup[r._targets.indexOf(o)],u=a._props.length;u--;)c[a._props[u]]=l;return a},Ln,fa,da=function t(e,n,r){var i=e.vars,o=i.ease,s=i.startAt,a=i.immediateRender,l=i.lazy,c=i.onUpdate,u=i.runBackwards,f=i.yoyoEase,d=i.keyframes,h=i.autoRevert,m=e._dur,p=e._startAt,b=e._targets,x=e.parent,k=x&&x.data==="nested"?x.vars.targets:b,z=e._overwrite==="auto"&&!Bs,y=e.timeline,w,E,A,P,_,S,N,T,B,H,K,ee,te;if(y&&(!d||!o)&&(o="none"),e._ease=or(o,Pr.ease),e._yEase=f?Rf(or(f===!0?o:f,Pr.ease)):0,f&&e._yoyo&&!e._repeat&&(f=e._yEase,e._yEase=e._ease,e._ease=f),e._from=!y&&!!i.runBackwards,!y||d&&!i.stagger){if(T=b[0]?rr(b[0]).harness:0,ee=T&&i[T.prop],w=Co(i,qs),p&&(p._zTime<0&&p.progress(1),n<0&&u&&a&&!h?p.render(-1,!0):p.revert(u&&m?ko:Pb),p._lazy=0),s){if(Fn(e._startAt=Le.set(b,xt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!p&&ut(l),startAt:null,delay:0,onUpdate:c&&function(){return wt(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Je||!a&&!h)&&e._startAt.revert(ko),a&&m&&n<=0&&r<=0){n&&(e._zTime=n);return}}else if(u&&m&&!p){if(n&&(a=!1),A=xt({overwrite:!1,data:"isFromStart",lazy:a&&!p&&ut(l),immediateRender:a,stagger:0,parent:x},w),ee&&(A[T.prop]=ee),Fn(e._startAt=Le.set(b,A)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Je?e._startAt.revert(ko):e._startAt.render(-1,!0)),e._zTime=n,!a)t(e._startAt,me,me);else if(!n)return}for(e._pt=e._ptCache=0,l=m&&ut(l)||l&&!m,E=0;E<b.length;E++){if(_=b[E],N=_._gsap||ea(b)[E]._gsap,e._ptLookup[E]=H={},Ys[N.id]&&Dn.length&&zo(),K=k===b?E:k.indexOf(_),T&&(B=new T).init(_,ee||w,e,K,k)!==!1&&(e._pt=P=new ft(e._pt,_,B.name,0,1,B.render,B,0,B.priority),B._props.forEach(function(ne){H[ne]=P}),B.priority&&(S=1)),!T||ee)for(A in w)yt[A]&&(B=Mf(A,w,e,K,_,k))?B.priority&&(S=1):H[A]=P=ca.call(e,_,A,"get",w[A],K,k,0,i.stringFilter);e._op&&e._op[E]&&e.kill(_,e._op[E]),z&&e._pt&&(Ln=e,Ie.killTweensOf(_,H,e.globalTime(n)),te=!e.parent,Ln=0),e._pt&&l&&(Ys[N.id]=1)}S&&Vf(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!te,d&&n<=0&&y.render(At,!0,!0)},iy=function(e,n,r,i,o,s,a,l){var c=(e._pt&&e._ptCache||(e._ptCache={}))[n],u,f,d,h;if(!c)for(c=e._ptCache[n]=[],d=e._ptLookup,h=e._targets.length;h--;){if(u=d[h][n],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==n&&u.fp!==n;)u=u._next;if(!u)return fa=1,e.vars[n]="+=0",da(e,a),fa=0,l?pi(n+" not eligible for reset"):1;c.push(u)}for(h=c.length;h--;)f=c[h],u=f._pt||f,u.s=(i||i===0)&&!o?i:u.s+(i||0)+s*u.c,u.c=r-u.s,f.e&&(f.e=Me(r)+et(f.e)),f.b&&(f.b=u.s+et(f.b))},oy=function(e,n){var r=e[0]?rr(e[0]).harness:0,i=r&&r.aliases,o,s,a,l;if(!i)return n;o=Rr({},n);for(s in i)if(s in o)for(l=i[s].split(","),a=l.length;a--;)o[l[a]]=o[s];return o},sy=function(e,n,r,i){var o=n.ease||i||"power1.inOut",s,a;if(Qe(n))a=r[e]||(r[e]=[]),n.forEach(function(l,c){return a.push({t:c/(n.length-1)*100,v:l,e:o})});else for(s in n)a=r[s]||(r[s]=[]),s==="ease"||a.push({t:parseFloat(e),v:n[s],e:o})},ki=function(e,n,r,i,o){return De(e)?e.call(n,r,i,o):Be(e)&&~e.indexOf("random(")?bi(e):e},Lf=Qs+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Zf={};ct(Lf+",id,stagger,delay,duration,paused,scrollTrigger",function(t){return Zf[t]=1});var Le=function(t){Yc(e,t);function e(r,i,o,s){var a;typeof i=="number"&&(o.duration=i,i=o,o=null),a=t.call(this,s?i:gi(i))||this;var l=a.vars,c=l.duration,u=l.delay,f=l.immediateRender,d=l.stagger,h=l.overwrite,m=l.keyframes,p=l.defaults,b=l.scrollTrigger,x=l.yoyoEase,k=i.parent||Ie,z=(Qe(r)||Qc(r)?xn(r[0]):"length"in i)?[r]:Dt(r),y,w,E,A,P,_,S,N;if(a._targets=z.length?ea(z):pi("GSAP target "+r+" not found. https://gsap.com",!vt.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=h,m||d||wo(c)||wo(u)){if(i=a.vars,y=a.timeline=new ot({data:"nested",defaults:p||{},targets:k&&k.data==="nested"?k.vars.targets:z}),y.kill(),y.parent=y._dp=yn(a),y._start=0,d||wo(c)||wo(u)){if(A=z.length,S=d&&wf(d),Yt(d))for(P in d)~Lf.indexOf(P)&&(N||(N={}),N[P]=d[P]);for(w=0;w<A;w++)E=Co(i,Zf),E.stagger=0,x&&(E.yoyoEase=x),N&&Rr(E,N),_=z[w],E.duration=+ki(c,yn(a),w,_,z),E.delay=(+ki(u,yn(a),w,_,z)||0)-a._delay,!d&&A===1&&E.delay&&(a._delay=u=E.delay,a._start+=u,E.delay=0),y.to(_,E,S?S(w,_,z):0),y._ease=re.none;y.duration()?c=u=0:a.timeline=0}else if(m){gi(xt(y.vars.defaults,{ease:"none"})),y._ease=or(m.ease||i.ease||"none");var T=0,B,H,K;if(Qe(m))m.forEach(function(ee){return y.to(z,ee,">")}),y.duration();else{E={};for(P in m)P==="ease"||P==="easeEach"||sy(P,m[P],E,m.easeEach);for(P in E)for(B=E[P].sort(function(ee,te){return ee.t-te.t}),T=0,w=0;w<B.length;w++)H=B[w],K={ease:H.e,duration:(H.t-(w?B[w-1].t:0))/100*c},K[P]=H.v,y.to(z,K,T),T+=K.duration;y.duration()<c&&y.to({},{duration:c-y.duration()})}}c||a.duration(c=y.duration())}else a.timeline=0;return h===!0&&!Bs&&(Ln=yn(a),Ie.killTweensOf(z),Ln=0),Qt(k,yn(a),o),i.reversed&&a.reverse(),i.paused&&a.paused(!0),(f||!c&&!m&&a._start===Ae(k._time)&&ut(f)&&Nb(yn(a))&&k.data!=="nested")&&(a._tTime=-me,a.render(Math.max(0,-u)||0)),b&&_f(yn(a),b),a}var n=e.prototype;return n.render=function(i,o,s){var a=this._time,l=this._tDur,c=this._dur,u=i<0,f=i>l-me&&!u?l:i<me?0:i,d,h,m,p,b,x,k,z,y;if(!c)Lb(this,i,o,s);else if(f!==this._tTime||!i||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u||this._lazy){if(d=f,z=this.timeline,this._repeat){if(p=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(p*100+i,o,s);if(d=Ae(f%p),f===l?(m=this._repeat,d=c):(b=Ae(f/p),m=~~b,m&&m===b?(d=c,m--):d>c&&(d=c)),x=this._yoyo&&m&1,x&&(y=this._yEase,d=c-d),b=Dr(this._tTime,p),d===a&&!s&&this._initted&&m===b)return this._tTime=f,this;m!==b&&(z&&this._yEase&&Df(z,x),this.vars.repeatRefresh&&!x&&!this._lock&&d!==p&&this._initted&&(this._lock=s=1,this.render(Ae(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(vf(this,u?i:d,s,o,f))return this._tTime=0,this;if(a!==this._time&&!(s&&this.vars.repeatRefresh&&m!==b))return this;if(c!==this._dur)return this.render(i,o,s)}if(this._tTime=f,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=k=(y||this._ease)(d/c),this._from&&(this.ratio=k=1-k),!a&&f&&!o&&!b&&(wt(this,"onStart"),this._tTime!==f))return this;for(h=this._pt;h;)h.r(k,h.d),h=h._next;z&&z.render(i<0?i:z._dur*z._ease(d/this._dur),o,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!o&&(u&&na(this,i,o,s),wt(this,"onUpdate")),this._repeat&&m!==b&&this.vars.onRepeat&&!o&&this.parent&&wt(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(u&&!this._onUpdate&&na(this,i,!0,!0),(i||!c)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Fn(this,1),!o&&!(u&&!a)&&(f||a||x)&&(wt(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),t.prototype.invalidate.call(this,i)},n.resetTo=function(i,o,s,a,l){wi||St.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||da(this,c),u=this._ease(c/this._dur),iy(this,i,o,s,a,u,c,l)?this.resetTo(i,o,s,a,1):(Po(this,0),this.parent||pf(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,o){if(o===void 0&&(o="all"),!i&&(!o||o==="all"))return this._lazy=this._pt=0,this.parent?yi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Je),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,o,Ln&&Ln.vars.overwrite!==!0)._first||yi(this),this.parent&&s!==this.timeline.totalDuration()&&Fr(this,this._dur*this.timeline._tDur/s,0,1),this}var a=this._targets,l=i?Dt(i):a,c=this._ptLookup,u=this._pt,f,d,h,m,p,b,x;if((!o||o==="all")&&Db(a,l))return o==="all"&&(this._pt=0),yi(this);for(f=this._op=this._op||[],o!=="all"&&(Be(o)&&(p={},ct(o,function(k){return p[k]=1}),o=p),o=oy(a,o)),x=a.length;x--;)if(~l.indexOf(a[x])){d=c[x],o==="all"?(f[x]=o,m=d,h={}):(h=f[x]=f[x]||{},m=o);for(p in m)b=d&&d[p],b&&((!("kill"in b.d)||b.d.kill(p)===!0)&&$o(this,b,"_pt"),delete d[p]),h!=="all"&&(h[p]=1)}return this._initted&&!this._pt&&u&&yi(this),this},e.to=function(i,o){return new e(i,o,arguments[2])},e.from=function(i,o){return _i(1,arguments)},e.delayedCall=function(i,o,s,a){return new e(o,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:o,onReverseComplete:o,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:a})},e.fromTo=function(i,o,s){return _i(2,arguments)},e.set=function(i,o){return o.duration=0,o.repeatDelay||(o.repeat=0),new e(i,o)},e.killTweensOf=function(i,o,s){return Ie.killTweensOf(i,o,s)},e}(Si);xt(Le.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ct("staggerTo,staggerFrom,staggerFromTo",function(t){Le[t]=function(){var e=new ot,n=ia.call(arguments,0);return n.splice(t==="staggerFromTo"?5:4,0,0),e[t].apply(e,n)}});var ha=function(e,n,r){return e[n]=r},jf=function(e,n,r){return e[n](r)},ay=function(e,n,r,i){return e[n](i.fp,r)},ly=function(e,n,r){return e.setAttribute(n,r)},pa=function(e,n){return De(e[n])?jf:Vs(e[n])&&e.setAttribute?ly:ha},Bf=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e6)/1e6,n)},uy=function(e,n){return n.set(n.t,n.p,!!(n.s+n.c*e),n)},Uf=function(e,n){var r=n._pt,i="";if(!e&&n.b)i=n.b;else if(e===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},ma=function(e,n){for(var r=n._pt;r;)r.r(e,r.d),r=r._next},cy=function(e,n,r,i){for(var o=this._pt,s;o;)s=o._next,o.p===i&&o.modifier(e,n,r),o=s},fy=function(e){for(var n=this._pt,r,i;n;)i=n._next,n.p===e&&!n.op||n.op===e?$o(this,n,"_pt"):n.dep||(r=1),n=i;return!r},dy=function(e,n,r,i){i.mSet(e,n,i.m.call(i.tween,r,i.mt),i)},Vf=function(e){for(var n=e._pt,r,i,o,s;n;){for(r=n._next,i=o;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:s)?n._prev._next=n:o=n,(n._next=i)?i._prev=n:s=n,n=r}e._pt=o},ft=function(){function t(n,r,i,o,s,a,l,c,u){this.t=r,this.s=o,this.c=s,this.p=i,this.r=a||Bf,this.d=l||this,this.set=c||ha,this.pr=u||0,this._next=n,n&&(n._prev=this)}var e=t.prototype;return e.modifier=function(r,i,o){this.mSet=this.mSet||this.set,this.set=dy,this.m=r,this.mt=o,this.tween=i},t}();ct(Qs+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(t){return qs[t]=1}),bt.TweenMax=bt.TweenLite=Le,bt.TimelineLite=bt.TimelineMax=ot,Ie=new ot({sortChildren:!1,defaults:Pr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),vt.stringFilter=Af;var ar=[],Io={},hy=[],Wf=0,py=0,ga=function(e){return(Io[e]||hy).map(function(n){return n()})},_a=function(){var e=Date.now(),n=[];e-Wf>2&&(ga("matchMediaInit"),ar.forEach(function(r){var i=r.queries,o=r.conditions,s,a,l,c;for(a in i)s=Xt.matchMedia(i[a]).matches,s&&(l=1),s!==o[a]&&(o[a]=s,c=1);c&&(r.revert(),l&&n.push(r))}),ga("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Wf=e,ga("matchMedia"))},Hf=function(){function t(n,r){this.selector=r&&oa(r),this.data=[],this._r=[],this.isReverted=!1,this.id=py++,n&&this.add(n)}var e=t.prototype;return e.add=function(r,i,o){De(r)&&(o=i,i=r,r=De);var s=this,a=function(){var c=Ce,u=s.selector,f;return c&&c!==s&&c.data.push(s),o&&(s.selector=oa(o)),Ce=s,f=i.apply(s,arguments),De(f)&&s._r.push(f),Ce=c,s.selector=u,s.isReverted=!1,f};return s.last=a,r===De?a(s,function(l){return s.add(null,l)}):r?s[r]=a:a},e.ignore=function(r){var i=Ce;Ce=null,r(this),Ce=i},e.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof t?r.push.apply(r,i.getTweens()):i instanceof Le&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,i){var o=this;if(r?function(){for(var a=o.getTweens(),l=o.data.length,c;l--;)c=o.data[l],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,f){return f.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),l=o.data.length;l--;)c=o.data[l],c instanceof ot?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Le)&&c.revert&&c.revert(r);o._r.forEach(function(u){return u(r,o)}),o.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var s=ar.length;s--;)ar[s].id===this.id&&ar.splice(s,1)},e.revert=function(r){this.kill(r||{})},t}(),my=function(){function t(n){this.contexts=[],this.scope=n,Ce&&Ce.data.push(this)}var e=t.prototype;return e.add=function(r,i,o){Yt(r)||(r={matches:r});var s=new Hf(0,o||this.scope),a=s.conditions={},l,c,u;Ce&&!s.selector&&(s.selector=Ce.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=r;for(c in r)c==="all"?u=1:(l=Xt.matchMedia(r[c]),l&&(ar.indexOf(s)<0&&ar.push(s),(a[c]=l.matches)&&(u=1),l.addListener?l.addListener(_a):l.addEventListener("change",_a)));return u&&i(s,function(f){return s.add(null,f)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},t}(),Ao={registerPlugin:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];n.forEach(function(i){return Of(i)})},timeline:function(e){return new ot(e)},getTweensOf:function(e,n){return Ie.getTweensOf(e,n)},getProperty:function(e,n,r,i){Be(e)&&(e=Dt(e)[0]);var o=rr(e||{}).get,s=r?df:ff;return r==="native"&&(r=""),e&&(n?s((yt[n]&&yt[n].get||o)(e,n,r,i)):function(a,l,c){return s((yt[a]&&yt[a].get||o)(e,a,l,c))})},quickSetter:function(e,n,r){if(e=Dt(e),e.length>1){var i=e.map(function(u){return dt.quickSetter(u,n,r)}),o=i.length;return function(u){for(var f=o;f--;)i[f](u)}}e=e[0]||{};var s=yt[n],a=rr(e),l=a.harness&&(a.harness.aliases||{})[n]||n,c=s?function(u){var f=new s;Nr._pt=0,f.init(e,r?u+r:u,Nr,0,[e]),f.render(1,f),Nr._pt&&ma(1,Nr)}:a.set(e,l);return s?c:function(u){return c(e,l,r?u+r:u,a,1)}},quickTo:function(e,n,r){var i,o=dt.to(e,xt((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),s=function(l,c,u){return o.resetTo(n,l,c,u)};return s.tween=o,s},isTweening:function(e){return Ie.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=or(e.ease,Pr.ease)),hf(Pr,e||{})},config:function(e){return hf(vt,e||{})},registerEffect:function(e){var n=e.name,r=e.effect,i=e.plugins,o=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!yt[a]&&!bt[a]&&pi(n+" effect requires "+a+" plugin.")}),Xs[n]=function(a,l,c){return r(Dt(a),xt(l||{},o),c)},s&&(ot.prototype[n]=function(a,l,c){return this.add(Xs[n](a,Yt(l)?l:(c=l)&&{},this),c)})},registerEase:function(e,n){re[e]=or(n)},parseEase:function(e,n){return arguments.length?or(e,n):re},getById:function(e){return Ie.getById(e)},exportRoot:function(e,n){e===void 0&&(e={});var r=new ot(e),i,o;for(r.smoothChildTiming=ut(e.smoothChildTiming),Ie.remove(r),r._dp=0,r._time=r._tTime=Ie._time,i=Ie._first;i;)o=i._next,(n||!(!i._dur&&i instanceof Le&&i.vars.onComplete===i._targets[0]))&&Qt(r,i,i._start-i._delay),i=o;return Qt(Ie,r,0),r},context:function(e,n){return e?new Hf(e,n):Ce},matchMedia:function(e){return new my(e)},matchMediaRefresh:function(){return ar.forEach(function(e){var n=e.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&e.revert()})||_a()},addEventListener:function(e,n){var r=Io[e]||(Io[e]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(e,n){var r=Io[e],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:Jb,wrapYoyo:Gb,distribute:wf,random:kf,snap:Sf,normalize:Hb,getUnit:et,clamp:Bb,splitColor:Ef,toArray:Dt,selector:oa,mapRange:zf,pipe:Vb,unitize:Wb,interpolate:Kb,shuffle:xf},install:of,effects:Xs,ticker:St,updateRoot:ot.updateRoot,plugins:yt,globalTimeline:Ie,core:{PropTween:ft,globals:sf,Tween:Le,Timeline:ot,Animation:Si,getCache:rr,_removeLinkedListItem:$o,reverting:function(){return Je},context:function(e){return e&&Ce&&(Ce.data.push(e),e._ctx=Ce),Ce},suppressOverwrites:function(e){return Bs=e}}};ct("to,from,fromTo,delayedCall,set,killTweensOf",function(t){return Ao[t]=Le[t]}),St.add(ot.updateRoot),Nr=Ao.to({},{duration:0});var gy=function(e,n){for(var r=e._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},_y=function(e,n){var r=e._targets,i,o,s;for(i in n)for(o=r.length;o--;)s=e._ptLookup[o][i],s&&(s=s.d)&&(s._pt&&(s=gy(s,i)),s&&s.modifier&&s.modifier(n[i],e,r[o],i))},va=function(e,n){return{name:e,headless:1,rawVars:1,init:function(i,o,s){s._onInit=function(a){var l,c;if(Be(o)&&(l={},ct(o,function(u){return l[u]=1}),o=l),n){l={};for(c in o)l[c]=n(o[c]);o=l}_y(a,o)}}}},dt=Ao.registerPlugin({name:"attr",init:function(e,n,r,i,o){var s,a,l;this.tween=r;for(s in n)l=e.getAttribute(s)||"",a=this.add(e,"setAttribute",(l||0)+"",n[s],i,o,0,0,s),a.op=s,a.b=l,this._props.push(s)},render:function(e,n){for(var r=n._pt;r;)Je?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",headless:1,init:function(e,n){for(var r=n.length;r--;)this.add(e,r,e[r]||0,n[r],0,0,0,0,0,1)}},va("roundProps",sa),va("modifiers"),va("snap",Sf))||Ao;Le.version=ot.version=dt.version="3.14.2",rf=1,Ws()&&Mr(),re.Power0,re.Power1,re.Power2,re.Power3,re.Power4,re.Linear,re.Quad,re.Cubic,re.Quart,re.Quint,re.Strong,re.Elastic,re.Back,re.SteppedEase,re.Bounce,re.Sine,re.Expo,re.Circ;/*!
|
|
49
49
|
* CSSPlugin 3.14.2
|
|
50
50
|
* https://gsap.com
|
|
51
51
|
*
|
|
52
52
|
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
53
53
|
* Subject to the terms at https://gsap.com/standard-license
|
|
54
54
|
* @author: Jack Doyle, jack@greensock.com
|
|
55
|
-
*/var Lf,Rn,Rr,ma,or,jf,ga,ib=function(){return typeof window<"u"},vn={},ar=180/Math.PI,Fr=Math.PI/180,Zr=Math.atan2,Uf=1e8,_a=/([A-Z])/g,sb=/(left|right|width|margin|padding|x)/i,ob=/[\s,\(]\S/,Gt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},va=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},ab=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},lb=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},ub=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},cb=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},Vf=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Bf=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},fb=function(e,n,r){return e.style[n]=r},db=function(e,n,r){return e.style.setProperty(n,r)},hb=function(e,n,r){return e._gsap[n]=r},pb=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},mb=function(e,n,r,i,s){var o=e._gsap;o.scaleX=o.scaleY=r,o.renderTransform(s,o)},gb=function(e,n,r,i,s){var o=e._gsap;o[n]=r,o.renderTransform(s,o)},$e="transform",ft=$e+"Origin",_b=function t(e,n){var r=this,i=this.target,s=i.style,o=i._gsap;if(e in vn&&s){if(this.tfm=this.tfm||{},e!=="transform")e=Gt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=yn(i,a)}):this.tfm[e]=o.x?o[e]:yn(i,e),e===ft&&(this.tfm.zOrigin=o.zOrigin);else return Gt.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf($e)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ft,n,"")),e=$e}(s||n)&&this.props.push(e,n,s[e])},Wf=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},vb=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s<e.length;s+=3)e[s+1]?e[s+1]===2?n[e[s]](e[s+2]):n[e[s]]=e[s+2]:e[s+2]?r[e[s]]=e[s+2]:r.removeProperty(e[s].substr(0,2)==="--"?e[s]:e[s].replace(_a,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),s=ga(),(!s||!s.isStart)&&!r[$e]&&(Wf(r),i.zOrigin&&r[ft]&&(r[ft]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Hf=function(e,n){var r={target:e,props:[],revert:vb,save:_b};return e._gsap||ct.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},Jf,ya=function(e,n){var r=Rn.createElementNS?Rn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Rn.createElement(e);return r&&r.style?r:Rn.createElement(e)},St=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(_a,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Lr(n)||n,1)||""},Kf="O,Moz,ms,Ms,Webkit".split(","),Lr=function(e,n,r){var i=n||or,s=i.style,o=5;if(e in s&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);o--&&!(Kf[o]+e in s););return o<0?null:(o===3?"ms":o>=0?Kf[o]:"")+e},ba=function(){ib()&&window.document&&(Lf=window,Rn=Lf.document,Rr=Rn.documentElement,or=ya("div")||{style:{}},ya("div"),$e=Lr($e),ft=$e+"Origin",or.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Jf=!!Lr("perspective"),ga=ct.core.reverting,ma=1)},qf=function(e){var n=e.ownerSVGElement,r=ya("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),s;i.style.display="block",r.appendChild(i),Rr.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),Rr.removeChild(r),s},Yf=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},Gf=function(e){var n,r;try{n=e.getBBox()}catch{n=qf(e),r=1}return n&&(n.width||n.height)||r||(n=qf(e)),n&&!n.width&&!n.x&&!n.y?{x:+Yf(e,["x","cx","x1"])||0,y:+Yf(e,["y","cy","y1"])||0,width:0,height:0}:n},Xf=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Gf(e))},Fn=function(e,n){if(n){var r=e.style,i;n in vn&&n!==ft&&(n=$e),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(_a,"-$1").toLowerCase())):r.removeAttribute(n)}},Zn=function(e,n,r,i,s,o){var a=new ut(e._pt,n,r,0,1,o?Bf:Vf);return e._pt=a,a.b=i,a.e=s,e._props.push(r),a},Qf={deg:1,rad:1,turn:1},yb={grid:1,flex:1},Ln=function t(e,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=or.style,l=sb.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",h=i==="%",m,p,y,x;if(i===o||!s||Qf[i]||Qf[o])return s;if(o!=="px"&&!d&&(s=t(e,n,r,"px")),x=e.getCTM&&Xf(e),(h||o==="%")&&(vn[n]||~n.indexOf("adius")))return m=x?e.getBBox()[l?"width":"height"]:e[u],De(h?s/m*f:s/100*m);if(a[l?"width":"height"]=f+(d?o:i),p=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,x&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Rn||!p.appendChild)&&(p=Rn.body),y=p._gsap,y&&h&&y.width&&l&&y.time===wt.time&&!y.uncache)return De(s/y.width*f);if(h&&(n==="height"||n==="width")){var k=e.style[n];e.style[n]=f+i,m=e[u],k?e.style[n]=k:Fn(e,n)}else(h||o==="%")&&!yb[St(p,"display")]&&(a.position=St(e,"position")),p===e&&(a.position="static"),p.appendChild(or),m=or[u],p.removeChild(or),a.position="absolute";return l&&h&&(y=tr(p),y.time=wt.time,y.width=p[u]),De(d?m*s/f:m&&s?f/m*s:0)},yn=function(e,n,r,i){var s;return ma||ba(),n in Gt&&n!=="transform"&&(n=Gt[n],~n.indexOf(",")&&(n=n.split(",")[0])),vn[n]&&n!=="transform"?(s=Ti(e,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Is(St(e,ft))+" "+s.zOrigin+"px"):(s=e.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=As[n]&&As[n](e,n,r)||St(e,n)||tf(e,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?Ln(e,n,s,r)+r:s},bb=function(e,n,r,i){if(!r||r==="none"){var s=Lr(n,e,1),o=s&&St(e,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=St(e,"borderTopColor"))}var a=new ut(this._pt,e.style,n,0,1,Nf),l=0,c=0,u,f,d,h,m,p,y,x,k,z,b,S;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=St(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[n],e.style[n]=i,i=St(e,n)||i,p?e.style[n]=p:Fn(e,n)),u=[r,i],zf(u),r=u[0],i=u[1],d=r.match(Er)||[],S=i.match(Er)||[],S.length){for(;f=Er.exec(i);)y=f[0],k=i.substring(l,f.index),m?m=(m+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(m=1),y!==(p=d[c++]||"")&&(h=parseFloat(p)||0,b=p.substr((h+"").length),y.charAt(1)==="="&&(y=Pr(h,y)+b),x=parseFloat(y),z=y.substr((x+"").length),l=Er.lastIndex-z.length,z||(z=z||_t.units[n]||b,l===i.length&&(i+=z,a.e+=z)),b!==z&&(h=Ln(e,n,p,z)||0),a._pt={_next:a._pt,p:k||c===1?k:",",s:h,c:x-h,m:m&&m<4||n==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=n==="display"&&i==="none"?Bf:Vf;return qc.test(i)&&(a.e=0),this._pt=a,a},ed={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},xb=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=ed[r]||r,n[1]=ed[i]||i,n.join(" ")},wb=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,s=n.u,o=r._gsap,a,l,c;if(s==="all"||s===!0)i.cssText="",l=1;else for(s=s.split(","),c=s.length;--c>-1;)a=s[c],vn[a]&&(l=1,a=a==="transformOrigin"?ft:$e),Fn(r,a);l&&(Fn(r,$e),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ti(r,1),o.uncache=1,Wf(i)))}},As={clearProps:function(e,n,r,i,s){if(s.data!=="isFromStart"){var o=e._pt=new ut(e._pt,n,r,0,0,wb);return o.u=i,o.pr=-10,o.tween=s,e._props.push(r),1}}},ki=[1,0,0,1,0,0],td={},nd=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},rd=function(e){var n=St(e,$e);return nd(n)?ki:n.substr(7).match(Kc).map(De)},xa=function(e,n){var r=e._gsap||tr(e),i=e.style,s=rd(e),o,a,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,s=[l.a,l.b,l.c,l.d,l.e,l.f],s.join(",")==="1,0,0,1,0,0"?ki:s):(s===ki&&!e.offsetParent&&e!==Rr&&!r.svg&&(l=i.display,i.display="block",o=e.parentNode,(!o||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,Rr.appendChild(e)),s=rd(e),l?i.display=l:Fn(e,"display"),c&&(a?o.insertBefore(e,a):o?o.appendChild(e):Rr.removeChild(e))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},wa=function(e,n,r,i,s,o){var a=e._gsap,l=s||xa(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,f=a.xOffset||0,d=a.yOffset||0,h=l[0],m=l[1],p=l[2],y=l[3],x=l[4],k=l[5],z=n.split(" "),b=parseFloat(z[0])||0,S=parseFloat(z[1])||0,E,w,A,v;r?l!==ki&&(w=h*y-m*p)&&(A=b*(y/w)+S*(-p/w)+(p*k-y*x)/w,v=b*(-m/w)+S*(h/w)-(h*k-m*x)/w,b=A,S=v):(E=Gf(e),b=E.x+(~z[0].indexOf("%")?b/100*E.width:b),S=E.y+(~(z[1]||z[0]).indexOf("%")?S/100*E.height:S)),i||i!==!1&&a.smooth?(x=b-c,k=S-u,a.xOffset=f+(x*h+k*p)-x,a.yOffset=d+(x*m+k*y)-k):a.xOffset=a.yOffset=0,a.xOrigin=b,a.yOrigin=S,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[ft]="0px 0px",o&&(Zn(o,a,"xOrigin",c,b),Zn(o,a,"yOrigin",u,S),Zn(o,a,"xOffset",f,a.xOffset),Zn(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",b+" "+S)},Ti=function(e,n){var r=e._gsap||new Ef(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,s=r.scaleX<0,o="px",a="deg",l=getComputedStyle(e),c=St(e,ft)||"0",u,f,d,h,m,p,y,x,k,z,b,S,E,w,A,v,F,P,T,I,K,ne,Q,ee,te,Mt,Qt,kt,Ze,Ci,Lt,bn;return u=f=d=p=y=x=k=z=b=0,h=m=1,r.svg=!!(e.getCTM&&Xf(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[$e]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[$e]!=="none"?l[$e]:"")),i.scale=i.rotate=i.translate="none"),w=xa(e,r.svg),r.svg&&(r.uncache?(te=e.getBBox(),c=r.xOrigin-te.x+"px "+(r.yOrigin-te.y)+"px",ee=""):ee=!n&&e.getAttribute("data-svg-origin"),wa(e,ee||c,!!ee||r.originIsAbsolute,r.smooth!==!1,w)),S=r.xOrigin||0,E=r.yOrigin||0,w!==ki&&(P=w[0],T=w[1],I=w[2],K=w[3],u=ne=w[4],f=Q=w[5],w.length===6?(h=Math.sqrt(P*P+T*T),m=Math.sqrt(K*K+I*I),p=P||T?Zr(T,P)*ar:0,k=I||K?Zr(I,K)*ar+p:0,k&&(m*=Math.abs(Math.cos(k*Fr))),r.svg&&(u-=S-(S*P+E*I),f-=E-(S*T+E*K))):(bn=w[6],Ci=w[7],Qt=w[8],kt=w[9],Ze=w[10],Lt=w[11],u=w[12],f=w[13],d=w[14],A=Zr(bn,Ze),y=A*ar,A&&(v=Math.cos(-A),F=Math.sin(-A),ee=ne*v+Qt*F,te=Q*v+kt*F,Mt=bn*v+Ze*F,Qt=ne*-F+Qt*v,kt=Q*-F+kt*v,Ze=bn*-F+Ze*v,Lt=Ci*-F+Lt*v,ne=ee,Q=te,bn=Mt),A=Zr(-I,Ze),x=A*ar,A&&(v=Math.cos(-A),F=Math.sin(-A),ee=P*v-Qt*F,te=T*v-kt*F,Mt=I*v-Ze*F,Lt=K*F+Lt*v,P=ee,T=te,I=Mt),A=Zr(T,P),p=A*ar,A&&(v=Math.cos(A),F=Math.sin(A),ee=P*v+T*F,te=ne*v+Q*F,T=T*v-P*F,Q=Q*v-ne*F,P=ee,ne=te),y&&Math.abs(y)+Math.abs(p)>359.9&&(y=p=0,x=180-x),h=De(Math.sqrt(P*P+T*T+I*I)),m=De(Math.sqrt(Q*Q+bn*bn)),A=Zr(ne,Q),k=Math.abs(A)>2e-4?A*ar:0,b=Lt?1/(Lt<0?-Lt:Lt):0),r.svg&&(ee=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!nd(St(e,$e)),ee&&e.setAttribute("transform",ee))),Math.abs(k)>90&&Math.abs(k)<270&&(s?(h*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,k+=k<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+o,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+o,r.z=d+o,r.scaleX=De(h),r.scaleY=De(m),r.rotation=De(p)+a,r.rotationX=De(y)+a,r.rotationY=De(x)+a,r.skewX=k+a,r.skewY=z+a,r.transformPerspective=b+o,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[ft]=Is(c)),r.xOffset=r.yOffset=0,r.force3D=_t.force3D,r.renderTransform=r.svg?kb:Jf?id:Sb,r.uncache=0,r},Is=function(e){return(e=e.split(" "))[0]+" "+e[1]},Sa=function(e,n,r){var i=Ge(n);return De(parseFloat(n)+parseFloat(Ln(e,"x",r+"px",i)))+i},Sb=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,id(e,n)},lr="0deg",zi="0px",ur=") ",id=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,d=r.skewX,h=r.skewY,m=r.scaleX,p=r.scaleY,y=r.transformPerspective,x=r.force3D,k=r.target,z=r.zOrigin,b="",S=x==="auto"&&e&&e!==1||x===!0;if(z&&(f!==lr||u!==lr)){var E=parseFloat(u)*Fr,w=Math.sin(E),A=Math.cos(E),v;E=parseFloat(f)*Fr,v=Math.cos(E),o=Sa(k,o,w*v*-z),a=Sa(k,a,-Math.sin(E)*-z),l=Sa(k,l,A*v*-z+z)}y!==zi&&(b+="perspective("+y+ur),(i||s)&&(b+="translate("+i+"%, "+s+"%) "),(S||o!==zi||a!==zi||l!==zi)&&(b+=l!==zi||S?"translate3d("+o+", "+a+", "+l+") ":"translate("+o+", "+a+ur),c!==lr&&(b+="rotate("+c+ur),u!==lr&&(b+="rotateY("+u+ur),f!==lr&&(b+="rotateX("+f+ur),(d!==lr||h!==lr)&&(b+="skew("+d+", "+h+ur),(m!==1||p!==1)&&(b+="scale("+m+", "+p+ur),k.style[$e]=b||"translate(0, 0)"},kb=function(e,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,d=r.scaleY,h=r.target,m=r.xOrigin,p=r.yOrigin,y=r.xOffset,x=r.yOffset,k=r.forceCSS,z=parseFloat(o),b=parseFloat(a),S,E,w,A,v;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Fr,c*=Fr,S=Math.cos(l)*f,E=Math.sin(l)*f,w=Math.sin(l-c)*-d,A=Math.cos(l-c)*d,c&&(u*=Fr,v=Math.tan(c-u),v=Math.sqrt(1+v*v),w*=v,A*=v,u&&(v=Math.tan(u),v=Math.sqrt(1+v*v),S*=v,E*=v)),S=De(S),E=De(E),w=De(w),A=De(A)):(S=f,A=d,E=w=0),(z&&!~(o+"").indexOf("px")||b&&!~(a+"").indexOf("px"))&&(z=Ln(h,"x",o,"px"),b=Ln(h,"y",a,"px")),(m||p||y||x)&&(z=De(z+m-(m*S+p*w)+y),b=De(b+p-(m*E+p*A)+x)),(i||s)&&(v=h.getBBox(),z=De(z+i/100*v.width),b=De(b+s/100*v.height)),v="matrix("+S+","+E+","+w+","+A+","+z+","+b+")",h.setAttribute("transform",v),k&&(h.style[$e]=v)},Tb=function(e,n,r,i,s){var o=360,a=Fe(s),l=parseFloat(s)*(a&&~s.indexOf("rad")?ar:1),c=l-i,u=i+c+"deg",f,d;return a&&(f=s.split("_")[1],f==="short"&&(c%=o,c!==c%(o/2)&&(c+=c<0?o:-o)),f==="cw"&&c<0?c=(c+o*Uf)%o-~~(c/o)*o:f==="ccw"&&c>0&&(c=(c-o*Uf)%o-~~(c/o)*o)),e._pt=d=new ut(e._pt,n,r,i,c,ab),d.e=u,d.u="deg",e._props.push(r),d},sd=function(e,n){for(var r in n)e[r]=n[r];return e},zb=function(e,n,r){var i=sd({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,l,c,u,f,d,h,m;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),o[$e]=n,a=Ti(r,1),Fn(r,$e),r.setAttribute("transform",c)):(c=getComputedStyle(r)[$e],o[$e]=n,a=Ti(r,1),o[$e]=c);for(l in vn)c=i[l],u=a[l],c!==u&&s.indexOf(l)<0&&(h=Ge(c),m=Ge(u),f=h!==m?Ln(r,l,c,m):parseFloat(c),d=parseFloat(u),e._pt=new ut(e._pt,a,l,f,d-f,va),e._pt.u=m||0,e._props.push(l));sd(a,i)};lt("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",s="Left",o=(e<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return e<2?t+a:"border"+a+t});As[e>1?"border"+t:t]=function(a,l,c,u,f){var d,h;if(arguments.length<4)return d=o.map(function(m){return yn(a,m,c)}),h=d.join(" "),h.split(d[0]).length===5?d[0]:h;d=(u+"").split(" "),h={},o.forEach(function(m,p){return h[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,h,f)}});var od={name:"css",register:ba,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,s){var o=this._props,a=e.style,l=r.vars.startAt,c,u,f,d,h,m,p,y,x,k,z,b,S,E,w,A,v;ma||ba(),this.styles=this.styles||Hf(e),A=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(u=n[p],!(yt[p]&&Pf(p,n,r,i,e,s)))){if(h=typeof u,m=As[p],h==="function"&&(u=u.call(r,i,e,s),h=typeof u),h==="string"&&~u.indexOf("random(")&&(u=vi(u)),m)m(this,e,p,u,r)&&(w=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Mn.lastIndex=0,Mn.test(c)||(y=Ge(c),x=Ge(u),x?y!==x&&(c=Ln(e,p,c,x)+x):y&&(u+=y)),this.add(a,"setProperty",c,u,i,s,0,0,p),o.push(p),A.push(p,0,a[p]);else if(h!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(r,i,e,s):l[p],Fe(c)&&~c.indexOf("random(")&&(c=vi(c)),Ge(c+"")||c==="auto"||(c+=_t.units[p]||Ge(yn(e,p))||""),(c+"").charAt(1)==="="&&(c=yn(e,p))):c=yn(e,p),d=parseFloat(c),k=h==="string"&&u.charAt(1)==="="&&u.substr(0,2),k&&(u=u.substr(2)),f=parseFloat(u),p in Gt&&(p==="autoAlpha"&&(d===1&&yn(e,"visibility")==="hidden"&&f&&(d=0),A.push("visibility",0,a.visibility),Zn(this,a,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=Gt[p],~p.indexOf(",")&&(p=p.split(",")[0]))),z=p in vn,z){if(this.styles.save(p),v=u,h==="string"&&u.substring(0,6)==="var(--"){if(u=St(e,u.substring(4,u.indexOf(")"))),u.substring(0,5)==="calc("){var F=e.style.perspective;e.style.perspective=u,u=St(e,"perspective"),F?e.style.perspective=F:Fn(e,"perspective")}f=parseFloat(u)}if(b||(S=e._gsap,S.renderTransform&&!n.parseTransform||Ti(e,n.parseTransform),E=n.smoothOrigin!==!1&&S.smooth,b=this._pt=new ut(this._pt,a,$e,0,1,S.renderTransform,S,0,-1),b.dep=1),p==="scale")this._pt=new ut(this._pt,S,"scaleY",S.scaleY,(k?Pr(S.scaleY,k+f):f)-S.scaleY||0,va),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){A.push(ft,0,a[ft]),u=xb(u),S.svg?wa(e,u,0,E,0,this):(x=parseFloat(u.split(" ")[2])||0,x!==S.zOrigin&&Zn(this,S,"zOrigin",S.zOrigin,x),Zn(this,a,p,Is(c),Is(u)));continue}else if(p==="svgOrigin"){wa(e,u,1,E,0,this);continue}else if(p in td){Tb(this,S,p,d,k?Pr(d,k+u):u);continue}else if(p==="smoothOrigin"){Zn(this,S,"smooth",S.smooth,u);continue}else if(p==="force3D"){S[p]=u;continue}else if(p==="transform"){zb(this,u,e);continue}}else p in a||(p=Lr(p)||p);if(z||(f||f===0)&&(d||d===0)&&!ob.test(u)&&p in a)y=(c+"").substr((d+"").length),f||(f=0),x=Ge(u)||(p in _t.units?_t.units[p]:y),y!==x&&(d=Ln(e,p,c,x)),this._pt=new ut(this._pt,z?S:a,p,d,(k?Pr(d,k+f):f)-d,!z&&(x==="px"||p==="zIndex")&&n.autoRound!==!1?cb:va),this._pt.u=x||0,z&&v!==u?(this._pt.b=c,this._pt.e=v,this._pt.r=ub):y!==x&&x!=="%"&&(this._pt.b=c,this._pt.r=lb);else if(p in a)bb.call(this,e,p,c,k?k+u:u);else if(p in e)this.add(e,p,c||e[p],k?k+u:u,i,s);else if(p!=="parseTransform"){Wo(p,u);continue}z||(p in a?A.push(p,0,a[p]):typeof e[p]=="function"?A.push(p,2,e[p]()):A.push(p,1,c||e[p])),o.push(p)}}w&&Rf(this)},render:function(e,n){if(n.tween._time||!ga())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:yn,aliases:Gt,getSetter:function(e,n,r){var i=Gt[n];return i&&i.indexOf(",")<0&&(n=i),n in vn&&n!==ft&&(e._gsap.x||yn(e,"x"))?r&&jf===r?n==="scale"?pb:hb:(jf=r||{})&&(n==="scale"?mb:gb):e.style&&!Lo(e.style[n])?fb:~n.indexOf("-")?db:ca(e,n)},core:{_removeProperty:Fn,_getMatrix:xa}};ct.utils.checkPrefix=Lr,ct.core.getStyleSaver=Hf,function(t,e,n,r){var i=lt(t+","+e+","+n,function(s){vn[s]=1});lt(e,function(s){_t.units[s]="deg",td[s]=1}),Gt[i[13]]=t+","+e,lt(r,function(s){var o=s.split(":");Gt[o[1]]=i[o[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),lt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){_t.units[t]="px"}),ct.registerPlugin(od);var Xt=ct.registerPlugin(od)||ct;Xt.core.Tween;const Cb={class:"h-full w-full relative flex flex-col text-white overflow-hidden",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},Ob={class:"absolute inset-0 z-0 overflow-hidden pointer-events-none"},$b={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},Eb={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},Pb={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},Ab={class:"p-6"},Ib={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},Db={class:"flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth"},Mb={key:1,class:"absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black via-black/80 to-transparent flex justify-between items-end pointer-events-none"},Nb={key:0,class:"pointer-events-auto text-left"},Rb={class:"text-[10px] font-bold text-gray-500 tracking-[0.2em] uppercase mb-1"},Fb={class:"flex items-center gap-2 text-white/50 text-sm font-mono"},Zb={key:0,class:"h-px w-8 bg-white/20"},Lb={key:1,class:"flex-1"},jb={key:2,class:"pointer-events-auto flex gap-3"},Ub=["disabled"],Vb=["disabled"],ad=Te({__name:"LuminaDeck",setup(t){const{slide:e,index:n,total:r,next:i,prev:s,options:o}=ay(),a=un(di),l=le(()=>a.hasNext()),c=le(()=>a.hasPrev()),u=le(()=>{var E,w;return(w=(E=a.state.deck)==null?void 0:E.meta)==null?void 0:w.title}),f=le(()=>a.state.options.ui),d=le(()=>a.state.options.navigation);ly();const h=be({showJson:!1}),m=un("LuminaEngine"),p=()=>{m&&typeof m.openSpeakerNotes=="function"?m.openSpeakerNotes():(console.warn("Lumina Engine not found or openSpeakerNotes not available"),alert("Speaker notes require the full Lumina Engine environment."))},y=le(()=>o.debug),x=le(()=>!e.value||!e.value.type?null:`layout-${e.value.type}`),k=le(()=>{var E,w,A,v,F,P,T,I;return{backgroundColor:((w=(E=e.value)==null?void 0:E.meta)==null?void 0:w.orbColor)||"var(--lumina-colors-primary, #3b82f6)",width:"60vw",height:"60vw",top:((F=(v=(A=e.value)==null?void 0:A.meta)==null?void 0:v.orbPos)==null?void 0:F.top)||"-20%",left:((I=(T=(P=e.value)==null?void 0:P.meta)==null?void 0:T.orbPos)==null?void 0:I.left)||"-10%"}}),z=E=>{mn.emit("action",E)},b=(E,w)=>{const A=E;A.style.opacity="1",w()},S=(E,w)=>{var T,I,K;const{options:A}=a.state;if(((T=A.animation)==null?void 0:T.enabled)===!1){w();return}const v=((I=A.animation)==null?void 0:I.durationOut)||.5,F=((K=A.animation)==null?void 0:K.type)||"cascade",P=Xt.timeline({onComplete:w});F==="fade"?P.to(E,{opacity:0,duration:v}):F==="zoom"?P.to(E,{opacity:0,scale:1.1,duration:v}):P.to(E,{opacity:0,y:-20,duration:v,ease:"power2.in"})};return(E,w)=>{var A,v,F,P,T;return V(),H("div",Cb,[$("div",Ob,[$("div",{class:"ambient-orb",style:Qe(k.value)},null,4),w[6]||(w[6]=$("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))]),y.value?(V(),H("div",$b,[$("button",{onClick:w[0]||(w[0]=I=>h.value.showJson=!h.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[...w[7]||(w[7]=[$("i",{class:"fa-solid fa-code text-xs"},null,-1)])])])):Ee("",!0),Ie(_o,{name:"fade"},{default:Ot(()=>[h.value.showJson?(V(),H("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:w[3]||(w[3]=$u(I=>h.value.showJson=!1,["self"]))},[$("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:w[1]||(w[1]=I=>h.value.showJson=!1)}),$("div",Eb,[$("div",Pb,[w[9]||(w[9]=$("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),$("button",{onClick:w[2]||(w[2]=I=>h.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[...w[8]||(w[8]=[$("i",{class:"fa-solid fa-xmark"},null,-1)])])]),$("div",Ab,[$("pre",Ib,ie(JSON.stringify(Ft(e),null,2)),1)])])])):Ee("",!0)]),_:1}),$("main",Db,[Ie(_o,{css:!1,onLeave:S,onEnter:b,mode:"out-in"},{default:Ot(()=>[x.value?(V(),He(Qi(x.value),{key:Ft(n),data:Ft(e),onAction:z,class:"min-h-full w-full"},null,40,["data"])):Ee("",!0)]),_:1})]),(A=f.value)!=null&&A.visible?(V(),H("div",Mb,[(v=f.value)!=null&&v.showSlideCount?(V(),H("div",Nb,[$("h2",Rb,ie(u.value),1),$("div",Fb,[$("span",null,ie((Ft(n)+1).toString().padStart(2,"0")),1),(F=f.value)!=null&&F.showProgressBar?(V(),H("div",Zb)):Ee("",!0),$("span",null,ie(Ft(r).toString().padStart(2,"0")),1)])])):(V(),H("div",Lb)),(P=f.value)!=null&&P.showControls?(V(),H("div",jb,[(T=Ft(e))!=null&&T.notes?(V(),H("button",{key:0,onClick:p,class:"w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",title:"Open Speaker View"},[...w[10]||(w[10]=[$("i",{class:"fa-solid fa-person-chalkboard text-sm text-gray-400 hover:text-white"},null,-1)])])):Ee("",!0),$("button",{onClick:w[4]||(w[4]=(...I)=>Ft(s)&&Ft(s)(...I)),class:Y(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!c.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!c.value||!d.value},[...w[11]||(w[11]=[$("i",{class:"fa-solid fa-arrow-left"},null,-1)])],10,Ub),$("button",{onClick:w[5]||(w[5]=(...I)=>Ft(i)&&Ft(i)(...I)),class:Y(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!l.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!l.value||!d.value},[...w[12]||(w[12]=[$("i",{class:"fa-solid fa-arrow-right"},null,-1)])],10,Vb)])):Ee("",!0)])):Ee("",!0)])}}}),Dt=class Dt{constructor(e){it(this,"channel",null);it(this,"handlers",new Set);it(this,"lastTimestamp",0);it(this,"heartbeatInterval",null);it(this,"isConnected",!1);it(this,"connectionHandlers",new Set);this.channelName=e,this.initChannel()}static getInstance(e,n=!1){return n?new Dt(e):(Dt.instances.has(e)||Dt.instances.set(e,new Dt(e)),Dt.instances.get(e))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!Dt.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=e=>{const n=e.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}})}},this.channel.onmessageerror=e=>{console.error("[SpeakerChannel] Message error:",e)},this.startHeartbeat()}catch(e){console.error("[SpeakerChannel] Failed to initialize:",e)}}send(e){if(!this.channel)return;const n={...e,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onConnectionChange(e){return this.connectionHandlers.add(e),e(this.isConnected),()=>this.connectionHandlers.delete(e)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(e){this.isConnected!==e&&(this.isConnected=e,this.connectionHandlers.forEach(n=>n(e)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),Dt.instances.delete(this.channelName)}static destroyAll(){Dt.instances.forEach(e=>e.destroy()),Dt.instances.clear()}};it(Dt,"instances",new Map);let jr=Dt;const Bb={class:"speaker-notes"},Wb={class:"sn-header"},Hb={class:"sn-status"},Jb={class:"sn-slide-count"},Kb={class:"sn-content"},qb={class:"sn-notes-section"},Yb=["innerHTML"],Gb={key:1,class:"sn-notes-empty"},Xb={class:"sn-footer"},Qb={class:"sn-nav-controls"},e1=["disabled"],t1={class:"sn-timer-value"},n1=["disabled"],r1=Te({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(t){const e=t,n=be(0),r=be(0),i=be(""),s=be(null),o=be(!1),a=be(null),l=be(0),c=be(!1),u=be(null),f=le(()=>r.value===0?"No slides loaded":`Slide ${n.value+1} / ${r.value}`),d=le(()=>{const v=Math.floor(l.value/3600),F=Math.floor(l.value%3600/60),P=l.value%60;return v>0?`${v.toString().padStart(2,"0")}:${F.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`:`${F.toString().padStart(2,"0")}:${P.toString().padStart(2,"0")}`}),h=le(()=>n.value<r.value-1),m=le(()=>n.value>0);function p(v){return v?v.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function y(){const v=new URLSearchParams(window.location.search),F=e.channelId||v.get("channel")||"lumina-speaker-default";a.value=jr.getInstance(F,!0),a.value.onConnectionChange(K=>{o.value=K}),a.value.subscribe(x);let P=0;const T=10,I=setInterval(()=>{var K;if(r.value>0||P>=T){clearInterval(I);return}(K=a.value)==null||K.ping(),P++},300);a.value.ping()}function x(v){switch(v.action){case"state":v.index!==void 0&&(n.value=v.index),v.totalSlides!==void 0&&(r.value=v.totalSlides),v.currentNotes!==void 0&&(i.value=v.currentNotes),v.nextSlidePreview&&(s.value=v.nextSlidePreview);break;case"goto":v.index!==void 0&&(n.value=v.index);break}}function k(){var v;h.value&&((v=a.value)==null||v.send({action:"next"}))}function z(){var v;m.value&&((v=a.value)==null||v.send({action:"prev"}))}function b(){c.value||(c.value=!0,u.value=setInterval(()=>{l.value++},1e3))}function S(){c.value=!1,u.value&&(clearInterval(u.value),u.value=null)}function E(){c.value?S():b()}function w(){S(),l.value=0}function A(v){switch(v.key){case"ArrowRight":case" ":case"Enter":v.preventDefault(),k();break;case"ArrowLeft":case"Backspace":v.preventDefault(),z();break;case"t":case"T":v.preventDefault(),E();break;case"r":case"R":if(v.ctrlKey||v.metaKey)return;v.preventDefault(),w();break}}return Tn(()=>{y(),window.addEventListener("keydown",A),window.addEventListener("beforeunload",()=>{var v;(v=a.value)==null||v.notifyClose()})}),Jn(()=>{var v;S(),window.removeEventListener("keydown",A),(v=a.value)==null||v.destroy()}),(v,F)=>(V(),H("div",Bb,[$("header",Wb,[F[0]||(F[0]=np('<div class="sn-title" data-v-63b98fd9><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-63b98fd9><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-63b98fd9></path><path d="M2 17l10 5 10-5" data-v-63b98fd9></path><path d="M2 12l10 5 10-5" data-v-63b98fd9></path></svg><span data-v-63b98fd9>Lumina Speaker Notes</span></div>',1)),$("div",Hb,[$("span",{class:Y(["sn-indicator",{connected:o.value}])},null,2),$("span",Jb,ie(f.value),1)])]),$("main",Kb,[$("section",qb,[F[2]||(F[2]=$("h2",{class:"sn-section-title"},"Notes",-1)),i.value?(V(),H("div",{key:0,class:"sn-notes-content",innerHTML:p(i.value)},null,8,Yb)):(V(),H("div",Gb,[...F[1]||(F[1]=[$("p",null,"No notes for this slide",-1)])]))])]),$("footer",Xb,[$("div",Qb,[$("button",{class:"sn-btn sn-btn-nav",disabled:!m.value,onClick:z,title:"Previous (← or Backspace)"},[...F[3]||(F[3]=[$("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[$("polyline",{points:"15 18 9 12 15 6"})],-1),$("span",null,"Prev",-1)])],8,e1),$("div",{class:"sn-timer",onClick:E,title:"Click to start/pause (T)"},[$("span",{class:Y(["sn-timer-icon",{running:c.value}])},ie(c.value?"⏸":"▶"),3),$("span",t1,ie(d.value),1),$("button",{class:"sn-timer-reset",onClick:$u(w,["stop"]),title:"Reset timer (R)"},"↻")]),$("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!h.value,onClick:k,title:"Next (→, Space, or Enter)"},[...F[4]||(F[4]=[$("span",null,"Next",-1),$("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[$("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,n1)])])]))}}),Ds=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},i1=Ds(r1,[["__scopeId","data-v-63b98fd9"]]);function s1(t,e){const n=un(di);let r=null;const i=()=>{if(!t.value||!n)return;r==null||r.revert();const{enabled:s,type:o,durationIn:a,stagger:l,ease:c}=n.state.options.animation||{};if(s===!1){Xt.set(t.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"),{opacity:1,y:0,scale:1,visibility:"visible"});return}r=Xt.context(()=>{const u=t.value,f=o==="fade",d=o==="slide",h=o==="zoom",m=f?0:d?80:40,p=h?.8:o==="cascade"?.95:1;u.querySelector(".reveal-up")&&Xt.set(".reveal-up",{y:m,opacity:0}),u.querySelector(".reveal-zoom")&&Xt.set(".reveal-zoom",{scale:p,opacity:0}),u.querySelector(".reveal-content > *")&&Xt.set(".reveal-content > *",{y:f?0:30,opacity:0}),u.querySelector(".reveal-card")&&Xt.set(".reveal-card",{y:f?0:50,opacity:0,scale:p}),u.querySelector(".reveal-img")&&Xt.set(".reveal-img",{scale:1.1,opacity:0});const y=Xt.timeline({defaults:{ease:c||"power3.out",duration:a||.8},onComplete:e});u.querySelector(".reveal-img")&&y.to(".reveal-img",{scale:1,opacity:1,duration:(a||1)*1.2,ease:"expo.out"},0);const x=a||.8,k=l||.1;u.querySelectorAll(".reveal-card").length&&y.to(".reveal-card",{y:0,opacity:1,scale:1,duration:x,stagger:k,ease:d?"expo.out":"back.out(1.2)"},.2);const z=u.querySelectorAll(".reveal-content > *");z.length&&y.to(z,{y:0,opacity:1,duration:x,stagger:k/2},.3),u.querySelectorAll(".reveal-up").length&&y.to(".reveal-up",{y:0,opacity:1,duration:x,stagger:k},.2),u.querySelector(".reveal-zoom")&&y.to(".reveal-zoom",{scale:1,opacity:1,duration:x*1.2,ease:"expo.out"},.1)},t)};return Tn(()=>{il(()=>{i()})}),Jn(()=>{r==null||r.revert()}),{animateIn:i}}const o1={class:"absolute inset-0 z-0 pointer-events-none overflow-hidden"},a1=["src","poster","autoplay","loop","muted"],l1={key:2,class:"absolute inset-0 bg-[var(--lumina-colors-background,black)]/30 pointer-events-none transition-opacity duration-1000"},u1={class:"relative z-10 w-full h-full"},jn=Te({__name:"BaseSlide",props:{data:{},customClass:{}},setup(t){const e=t,n=be(null);s1(n);const r=le(()=>e.data.background?typeof e.data.background=="string"?"image":e.data.background.type==="video"?"video":null:null),i=le(()=>e.data.background?typeof e.data.background=="string"?e.data.background:e.data.background.src:""),s=le(()=>{if(r.value==="video")return e.data.background.poster}),o=le(()=>r.value!=="video"?void 0:e.data.background.autoplay??!0),a=le(()=>r.value!=="video"?void 0:e.data.background.loop??!0),l=le(()=>r.value!=="video"?void 0:e.data.background.muted??!0),c=le(()=>e.data.backgroundOpacity??1);return(u,f)=>(V(),H("div",{ref_key:"container",ref:n,class:Y(["w-full min-h-full relative text-white",t.customClass])},[$("div",o1,[r.value==="image"?(V(),H("div",{key:0,class:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000",style:Qe({backgroundImage:`url(${i.value})`,opacity:c.value})},null,4)):r.value==="video"?(V(),H("video",{key:1,class:"absolute inset-0 w-full h-full object-cover transition-opacity duration-1000",style:Qe({opacity:c.value}),src:i.value,poster:s.value,autoplay:o.value,loop:a.value,muted:l.value,playsinline:""},null,12,a1)):Ee("",!0),r.value==="video"?(V(),H("div",l1)):Ee("",!0),Tl(u.$slots,"background")]),$("div",u1,[Tl(u.$slots,"default")])],2))}}),c1={class:"reveal-zoom max-w-5xl z-10"},f1={key:0,class:"inline-block px-4 py-1 rounded-full border text-sm font-medium tracking-widest uppercase mb-10",style:{color:"var(--lumina-colors-primary, #3b82f6)","border-color":"rgba(255,255,255,0.1)",background:"rgba(255,255,255,0.05)"}},d1={key:1,class:"text-xl md:text-3xl font-light max-w-3xl mx-auto leading-normal",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},h1=Te({__name:"LayoutStatement",props:{data:{}},setup(t){return(e,n)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["flex flex-col justify-center items-center text-center p-8 relative",t.data.sizing==="container"?"h-full":"min-h-screen"])},[$("div",c1,[t.data.tag?(V(),H("span",f1,ie(t.data.tag),1)):Ee("",!0),$("h1",{class:"font-bold leading-[1.1] tracking-tight mb-8 text-transparent bg-clip-text",style:Qe({fontSize:t.data.sizing==="container"?"3.5rem":"clamp(3rem, 10vw, 8rem)",fontFamily:"var(--lumina-font-heading, Inter, sans-serif)",backgroundImage:"linear-gradient(to bottom, var(--lumina-colors-text, #ffffff), var(--lumina-colors-muted, #6b7280))"})},ie(t.data.title),5),t.data.subtitle?(V(),H("p",d1,ie(t.data.subtitle),1)):Ee("",!0)])],2)]),_:1},8,["data"]))}}),p1=["src","poster","autoplay","loop","muted"],m1={key:0,class:"absolute bottom-0 left-0 w-full p-4 bg-gradient-to-t from-black/80 via-black/40 to-transparent transition-opacity duration-300"},g1={class:"flex items-center justify-between text-white"},_1={class:"flex items-center gap-4"},v1={class:"flex items-center gap-2 group/vol"},y1={class:"text-xs font-mono opacity-70"},b1={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},ka=Ds(Te({__name:"VideoPlayer",props:{src:{type:String,required:!0},poster:{type:String,default:""},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},objectFit:{type:String,default:"cover"}},setup(t){const e=t,n=be(null),r=be(!1),i=be(e.muted),s=be(1),o=be(0),a=be(0),l=be(0),c=be(!1),u=be(!1);let f;const d=le(()=>e.objectFit==="contain"?"object-contain":"object-cover"),h=E=>{const w=Math.floor(E/60),A=Math.floor(E%60);return`${w}:${A.toString().padStart(2,"0")}`},m=()=>{n.value&&(n.value.paused?(n.value.play(),r.value=!0,u.value=!0):(n.value.pause(),r.value=!1))},p=()=>{n.value&&(n.value.muted=!n.value.muted,i.value=n.value.muted,i.value?s.value=0:s.value=1)},y=()=>{n.value&&(a.value=n.value.currentTime,o.value=a.value/l.value*100||0)},x=()=>{n.value&&(l.value=n.value.duration,e.autoplay&&m())},k=()=>{r.value=!1,e.loop&&n.value&&(n.value.currentTime=0,m())},z=E=>{if(!n.value)return;const w=E.currentTarget,A=E.offsetX/w.clientWidth;n.value.currentTime=A*l.value,o.value=A*100},b=()=>{if(!n.value)return;const E=n.value.parentElement;!document.fullscreenElement&&E?E.requestFullscreen():document.exitFullscreen()},S=()=>{c.value=!0,clearTimeout(f),f=setTimeout(()=>{r.value&&(c.value=!1)},3e3)};return kn(s,E=>{n.value&&(n.value.volume=E,i.value=E===0,n.value.muted=E===0)}),Tn(()=>{n.value&&(n.value.muted=e.muted,i.value=e.muted)}),(E,w)=>(V(),H("div",{class:"relative w-full h-full group bg-black overflow-hidden",onMousemove:S,onMouseleave:w[1]||(w[1]=A=>c.value=!1)},[$("video",{ref_key:"videoRef",ref:n,class:Y(["w-full h-full",d.value]),src:t.src,poster:t.poster,autoplay:t.autoplay,loop:t.loop,muted:t.muted,playsinline:"",onClick:m,onTimeupdate:y,onLoadedmetadata:x,onEnded:k},null,42,p1),Ie(_o,{name:"fade"},{default:Ot(()=>[t.controls&&c.value?(V(),H("div",m1,[$("div",{class:"w-full h-1 bg-white/20 rounded-full mb-4 cursor-pointer relative group/progress",onClick:z},[$("div",{class:"absolute top-0 left-0 h-full rounded-full transition-all duration-100",style:Qe({width:`${o.value}%`,backgroundColor:"var(--lumina-colors-primary, #3b82f6)"})},null,4),$("div",{class:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full opacity-0 group-hover/progress:opacity-100 transition-opacity",style:Qe({left:`${o.value}%`})},null,4)]),$("div",g1,[$("div",_1,[$("button",{onClick:m,class:"hover:text-[var(--lumina-colors-primary)] transition"},[$("i",{class:Y(["fa-solid text-xl",r.value?"fa-pause":"fa-play"])},null,2)]),$("div",v1,[$("button",{onClick:p,class:"hover:text-[var(--lumina-colors-primary)] transition w-6"},[$("i",{class:Y(["fa-solid",i.value?"fa-volume-xmark":"fa-volume-high"])},null,2)]),oh($("input",{type:"range",min:"0",max:"1",step:"0.1","onUpdate:modelValue":w[0]||(w[0]=A=>s.value=A),class:"w-0 overflow-hidden group-hover/vol:w-20 transition-all duration-300 h-1 bg-white/20 rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2 [&::-webkit-slider-thumb]:h-2 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:rounded-full"},null,512),[[Fp,s.value,void 0,{number:!0}]])]),$("span",y1,ie(h(a.value))+" / "+ie(h(l.value)),1)]),$("div",{class:"flex items-center gap-4"},[$("button",{onClick:b,class:"hover:text-[var(--lumina-colors-primary)] transition"},[...w[2]||(w[2]=[$("i",{class:"fa-solid fa-expand"},null,-1)])])])])])):Ee("",!0)]),_:1}),t.controls&&!r.value&&!u.value?(V(),H("div",b1,[$("div",{class:"w-16 h-16 rounded-full bg-black/50 backdrop-blur-sm border border-white/10 flex items-center justify-center text-white pointer-events-auto cursor-pointer hover:scale-110 transition duration-300",onClick:m},[...w[3]||(w[3]=[$("i",{class:"fa-solid fa-play text-2xl ml-1"},null,-1)])])])):Ee("",!0)],32))}}),[["__scopeId","data-v-e807d364"]]),x1={key:0,class:"w-full h-full relative"},w1=["src"],S1={class:"reveal-content max-w-xl"},k1={class:"text-xs font-bold uppercase tracking-[0.2em] mb-6 block",style:{color:"var(--lumina-colors-primary, #3b82f6)"}},T1={class:"text-4xl lg:text-6xl font-heading font-bold leading-tight mb-8 text-white"},z1={class:"space-y-6 text-lg leading-relaxed font-light mb-10",style:{color:"var(--lumina-colors-muted, #9ca3af)"}},C1={key:0,class:"pt-6 border-t border-white/10"},O1=Te({__name:"LayoutHalf",props:{data:{}},emits:["action"],setup(t){const e=be(!1);return(n,r)=>(V(),He(jn,{data:t.data,customClass:"bg-[var(--lumina-bg)]"},{default:Ot(()=>[$("div",{class:Y(["w-full flex flex-col lg:block relative",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[$("div",{class:Y(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",t.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",t.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},[r[3]||(r[3]=$("div",{class:"absolute inset-0 bg-black/20 z-10"},null,-1)),t.data.video?(V(),H("div",x1,[Ie(ka,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay??!0,loop:t.data.video.loop??!0,muted:t.data.video.muted??!0,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])])):t.data.image?(V(),H("img",{key:1,src:t.data.image,class:Y(["w-full h-full object-cover reveal-img scale-110 origin-center transition-opacity duration-700",e.value?"opacity-100":"opacity-0"]),alt:"Slide Image",onLoad:r[0]||(r[0]=i=>e.value=!0),onError:r[1]||(r[1]=i=>{e.value=!0,i.target.src="https://placehold.co/1920x1080/1a1a1a/666?text=Image+Not+Found"})},null,42,w1)):Ee("",!0)],2),$("div",{class:Y(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center p-8 lg:p-24 order-2 bg-[#050505]",t.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",t.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"])},[$("div",S1,[$("span",k1,ie(t.data.tag),1),$("h1",T1,ie(t.data.title),1),$("div",z1,[(V(!0),H(Ae,null,vr(t.data.paragraphs,(i,s)=>(V(),H("p",{key:s},ie(i),1))),128))]),t.data.cta?(V(),H("div",C1,[$("button",{onClick:r[2]||(r[2]=i=>n.$emit("action",{type:"cta",label:t.data.cta})),class:"px-8 py-4 bg-white text-black font-bold rounded-lg hover:bg-gray-200 transition flex items-center gap-3"},[Ql(ie(t.data.cta)+" ",1),r[4]||(r[4]=$("i",{class:"fa-solid fa-arrow-right"},null,-1))])])):Ee("",!0)])],2)],2)]),_:1},8,["data"]))}}),$1={class:"mb-16 reveal-up text-center lg:text-left max-w-6xl"},E1=Te({__name:"LayoutFeatures",props:{data:{}},setup(t){return(e,n)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["w-full flex flex-col justify-center p-8 lg:p-24",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[$("div",$1,[$("h2",{class:Y(["font-heading font-bold mb-4",t.data.sizing==="container"?"text-3xl":"text-5xl"])},ie(t.data.title),3),$("p",{class:Y([t.data.sizing==="container"?"text-sm":"text-xl"]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ie(t.data.description),3)]),$("div",{class:Y(["grid w-full",t.data.sizing==="container"?"grid-cols-1 gap-3":"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"])},[(V(!0),H(Ae,null,vr(t.data.features,(r,i)=>(V(),H("div",{key:i,class:Y(["glass-panel rounded-3xl hover:bg-white/5 transition duration-500 reveal-card group border-t border-white/5 hover:border-blue-500/50",t.data.sizing==="container"?"p-6":"p-8"])},[$("div",{class:Y(["rounded-xl bg-white/5 flex items-center justify-center text-xl mb-6 group-hover:scale-110 transition duration-300",t.data.sizing==="container"?"w-10 h-10 mb-4":"w-12 h-12 mb-6"]),style:{color:"var(--lumina-colors-primary, #3b82f6)"}},[$("i",{class:Y(["fa-solid",(r.icon||"star").startsWith("fa-")?r.icon:`fa-${r.icon||"star"}`])},null,2)],2),$("h3",{class:Y(["font-bold mb-3 text-white",t.data.sizing==="container"?"text-lg":"text-2xl"])},ie(r.title),3),$("p",{class:Y(["leading-relaxed",[t.data.sizing==="container"?"text-sm":""]]),style:{color:"var(--lumina-colors-muted, #9ca3af)"}},ie(r.desc),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),P1={class:"text-center mb-16 reveal-up"},A1={class:"text-5xl font-heading font-bold mb-4"},I1={key:0,class:"text-xl opacity-60"},D1={class:"relative max-w-6xl mx-auto w-full"},M1={class:"space-y-12"},N1={class:"text-sm font-bold tracking-widest uppercase text-blue-400 mb-1"},R1={class:"text-2xl font-bold"},F1={class:"text-lg opacity-60 leading-relaxed"},Z1=Te({__name:"LayoutTimeline",props:{data:{}},setup(t){return(e,n)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["w-full flex flex-col justify-center p-8 lg:p-24",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"])},[$("div",P1,[$("h2",A1,ie(t.data.title),1),t.data.subtitle?(V(),H("p",I1,ie(t.data.subtitle),1)):Ee("",!0)]),$("div",D1,[n[1]||(n[1]=$("div",{class:"absolute left-4 md:left-1/2 top-0 bottom-0 w-0.5 bg-white/20 -translate-x-1/2 reveal-zoom origin-top"},null,-1)),$("div",M1,[(V(!0),H(Ae,null,vr(t.data.timeline,(r,i)=>(V(),H("div",{key:i,class:Y(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card",i%2===0?"":"md:flex-row-reverse"])},[$("div",{class:Y(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",i%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[$("span",N1,ie(r.date),1),$("h3",R1,ie(r.title||r.t),1)],2),n[0]||(n[0]=$("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 w-4 h-4 rounded-full bg-blue-500 shadow-[0_0_20px_rgba(59,130,246,0.5)] border-4 border-[#030303] z-10"},null,-1)),$("div",{class:Y(["w-full md:w-1/2 pl-12 md:pl-0",i%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[$("p",F1,ie(r.description||r.desc),1)],2)],2))),128))])])],2)]),_:1},8,["data"]))}}),L1={key:0,class:"hidden lg:block absolute top-[2.5rem] left-0 right-0 h-0.5 bg-gradient-to-r from-transparent via-white/20 to-transparent reveal-zoom origin-left"},j1={class:"text-transparent bg-clip-text bg-gradient-to-br from-white to-gray-600"},U1=Te({__name:"LayoutSteps",props:{data:{}},setup(t){return(e,n)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["w-full flex flex-col justify-center overflow-hidden",t.data.sizing==="container"?"min-h-full p-4":"min-h-screen p-8 lg:p-12"])},[$("div",{class:Y(["text-center reveal-up",t.data.sizing==="container"?"mb-6":"mb-20"])},[$("h2",{class:Y(["font-heading font-bold mb-2",t.data.sizing==="container"?"text-2xl":"text-5xl"])},ie(t.data.title),3),t.data.subtitle?(V(),H("p",{key:0,class:Y(["opacity-60 max-w-2xl mx-auto",t.data.sizing==="container"?"text-sm":"text-xl"])},ie(t.data.subtitle),3)):Ee("",!0)],2),$("div",{class:Y(["grid gap-4 w-full mx-auto relative",t.data.sizing==="container"?"grid-cols-3 max-w-xl":"grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 max-w-7xl"])},[t.data.sizing!=="container"?(V(),H("div",L1)):Ee("",!0),(V(!0),H(Ae,null,vr(t.data.steps,(r,i)=>(V(),H("div",{key:i,class:Y(["relative glass-panel rounded-xl border border-white/5 reveal-card group hover:bg-white/5 transition duration-500",t.data.sizing==="container"?"p-3 text-center":"p-8 rounded-2xl"])},[$("div",{class:Y(["rounded-xl bg-[#111] border border-white/10 flex items-center justify-center font-bold relative z-10 group-hover:scale-105 transition duration-300 shadow-xl mx-auto",t.data.sizing==="container"?"w-12 h-12 text-lg mb-3":"w-20 h-20 text-2xl mb-6 lg:mx-0"])},[$("span",j1,ie(r.step),1)],2),$("h3",{class:Y(["font-bold",t.data.sizing==="container"?"text-sm mb-1":"text-xl mb-3"])},ie(r.title),3),$("p",{class:Y(["leading-relaxed opacity-60",t.data.sizing==="container"?"text-[10px]":"text-sm"])},ie(r.description),3)],2))),128))],2)],2)]),_:1},8,["data"]))}}),V1=["src","alt"],B1=Te({__name:"FlexImage",props:{src:{},alt:{},fill:{type:Boolean},rounded:{},containerClass:{},containerStyle:{}},setup(t){const e=t,n=be(!1),r=()=>{n.value=!0},i=o=>{n.value=!0,o.target.src="https://placehold.co/800x600/1a1a1a/666?text=Image+Not+Found"},s=le(()=>e.fill!==!1&&!e.rounded?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[e.rounded||"lg"]||"rounded-lg");return(o,a)=>(V(),H("div",{class:Y(t.containerClass),style:Qe(t.containerStyle)},[$("img",{src:t.src,alt:t.alt||"",class:Y(["w-full h-full transition-opacity duration-700",t.fill!==!1?"object-cover":"object-contain",s.value,n.value?"opacity-100":"opacity-0"]),onLoad:r,onError:i},null,42,V1)],6))}}),W1=Ds(Te({__name:"LayoutFlex",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i={none:"0",xs:"0.5rem",sm:"0.75rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem"},s={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},o={top:"flex-start",center:"center",bottom:"flex-end"},a={left:"flex-start",center:"center",right:"flex-end"},l=le(()=>({padding:i[n.data.padding||"none"]})),c=le(()=>n.data.direction==="vertical"?"flex-col":"flex-row"),u=le(()=>({gap:i[n.data.gap||"none"]})),f=P=>!P||P==="auto"?"flex-1":"",d=P=>{const T=P.size||"auto";return T==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${s[T]}`,maxWidth:n.data.direction!=="vertical"?s[T]:void 0,maxHeight:n.data.direction==="vertical"?s[T]:void 0}},h=P=>{const T=P.valign||"center",I=P.halign||"left",K=P.gap||"md",ne=P.padding||"lg",Q=P.size||"auto";return{flex:Q==="auto"?"1 1 auto":`0 0 ${s[Q]}`,justifyContent:o[T],alignItems:a[I],gap:i[K],padding:i[ne]}},m=()=>({display:"flex",alignItems:"center",padding:i.lg}),p=(P,T)=>`w-full h-full ${y(P,T)}`,y=(P,T)=>T!==!1&&!P?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[P||"lg"]||"rounded-lg",x=P=>{r("action",P),mn.emit("action",P)},k=Te({props:["text","size","align"],setup(P){const I={lg:"text-3xl lg:text-4xl",xl:"text-4xl lg:text-5xl","2xl":"text-5xl lg:text-6xl","3xl":"text-6xl lg:text-7xl"}[P.size||"xl"]||"text-4xl lg:text-5xl",ne={left:"text-left",center:"text-center",right:"text-right"}[P.align||"left"]||"text-left";return()=>_e("h2",{class:`font-heading font-bold leading-tight ${I} ${ne} w-full`},P.text)}}),z=Te({props:["text","align","muted"],setup(P){const I={left:"text-left",center:"text-center",right:"text-right"}[P.align||"left"]||"text-left";return()=>_e("p",{class:`text-lg lg:text-xl leading-relaxed w-full ${I} ${P.muted?"opacity-60":"opacity-80"}`},P.text)}}),b=Te({props:["items"],setup(P){return()=>_e("ul",{class:"space-y-3 w-full"},(P.items||[]).map(T=>_e("li",{class:"flex items-start gap-3 text-lg opacity-80"},[_e("span",{class:"w-2 h-2 rounded-full bg-blue-500 mt-2 flex-shrink-0 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),_e("span",{},T)])))}}),S=Te({props:["items"],setup(P){return()=>_e("ol",{class:"space-y-3 w-full"},(P.items||[]).map((T,I)=>_e("li",{class:"flex items-start gap-3 text-lg opacity-80"},[_e("span",{class:"w-7 h-7 rounded-lg bg-white/10 flex items-center justify-center text-sm font-bold flex-shrink-0"},I+1),_e("span",{},T)])))}}),E=Te({props:["label","action","variant","fullWidth"],emits:["action"],setup(P,{emit:T}){const I={primary:"bg-gradient-to-r from-blue-500 to-purple-600 text-white shadow-lg hover:shadow-xl",secondary:"bg-white/10 text-white border border-white/20 hover:bg-white/20",outline:"bg-transparent text-white border-2 border-white/50 hover:border-white hover:bg-white/5",ghost:"bg-transparent text-white/70 hover:text-white hover:bg-white/5"},K=I[P.variant||"primary"]||I.primary,ne=()=>{T("action",{type:"click",label:P.label,value:P.action||P.label,origin:"flex-button"})};return()=>_e("button",{class:`px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 cursor-pointer hover:scale-105 ${K} ${P.fullWidth?"w-full":""}`,onClick:ne},P.label)}}),w=Te({props:["items","compact"],setup(P){return()=>_e("div",{class:"w-full space-y-4"},(P.items||[]).map(T=>_e("div",{class:"flex gap-4 items-start border-l-2 border-blue-500/30 pl-4"},[_e("div",{class:"flex-shrink-0 w-3 h-3 rounded-full bg-blue-500 -ml-[22px] mt-1.5 shadow-[0_0_10px_rgba(59,130,246,0.5)]"}),_e("div",{},[_e("span",{class:"text-xs text-blue-400 font-bold uppercase tracking-wider"},T.date),_e("h4",{class:"font-bold text-lg"},T.title||T.t),_e("p",{class:"text-sm opacity-60"},T.description||T.desc)])])))}}),A=Te({props:["items","compact"],setup(P){return()=>_e("div",{class:"w-full space-y-4"},(P.items||[]).map(T=>_e("div",{class:"flex gap-4 items-start p-4 rounded-lg bg-white/5 border border-white/10"},[_e("div",{class:"flex-shrink-0 w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500/20 to-purple-500/20 flex items-center justify-center font-bold text-blue-400"},T.step),_e("div",{},[_e("h4",{class:"font-bold"},T.title||T.t),_e("p",{class:"text-sm opacity-60"},T.description||T.desc)])])))}}),v=Te({props:["size"],setup(P){const T=P.size||"md",I=i[T]||i.md;return()=>_e("div",{style:{height:I,width:"100%"}})}}),F=P=>({title:k,text:z,bullets:b,ordered:S,button:E,timeline:w,stepper:A,spacer:v})[P]||"div";return(P,T)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:"flex-layout w-full min-h-screen flex items-center justify-center",style:Qe(l.value)},[$("div",{class:Y(["flex w-full h-full max-w-7xl mx-auto",c.value]),style:Qe(u.value)},[(V(!0),H(Ae,null,vr(t.data.elements,(I,K)=>(V(),H(Ae,{key:K},[I.type==="image"?(V(),He(B1,{key:0,src:I.src,alt:I.alt,fill:I.fill,rounded:I.rounded,"container-class":f(I.size),"container-style":d(I)},null,8,["src","alt","fill","rounded","container-class","container-style"])):I.type==="video"?(V(),H("div",{key:1,class:Y(f(I.size)),style:Qe(d(I))},[Ie(ka,{class:Y(p(I.rounded,I.fill)),src:I.src,poster:I.poster,autoplay:I.autoplay??!1,loop:I.loop??!1,muted:I.muted??!1,controls:I.controls??!0,"object-fit":I.fill!==!1?"cover":"contain"},null,8,["class","src","poster","autoplay","loop","muted","controls","object-fit"])],6)):I.type==="content"?(V(),H("div",{key:2,class:Y(["flex flex-col",f(I.size)]),style:Qe(h(I))},[(V(!0),H(Ae,null,vr(I.elements,(ne,Q)=>(V(),He(Qi(F(ne.type)),po({key:Q,ref_for:!0},ne,{onAction:x}),null,16))),128))],6)):(V(),H("div",{key:3,class:Y(f(I.size)),style:Qe(m())},[(V(),He(Qi(F(I.type)),po({ref_for:!0},I,{onAction:x}),null,16))],6))],64))),128))],6)],4)]),_:1},8,["data"]))}}),[["__scopeId","data-v-ab896ad6"]]),H1=Te({__name:"LayoutAuto",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=le(()=>{var f,d,h,m;const i=n.data||{},s=Array.isArray(i.timeline)&&i.timeline.length>0,o=Array.isArray(i.steps)&&i.steps.length>0,a=Array.isArray(i.features)&&i.features.length>0,l=!!i.image,c=!!i.chartType&&!!((f=i.data)!=null&&f.datasets);let u="layout-statement";return c?u="layout-chart":s?u="layout-timeline":o?u="layout-steps":a?u="layout-features":l?u="layout-half":(((d=i.title)==null?void 0:d.length)||0)+(((h=i.subtitle)==null?void 0:h.length)||0)+(((m=i.paragraphs)==null?void 0:m.join("").length)||0),u});return(i,s)=>(V(),He(Qi(r.value),{data:t.data,onAction:s[0]||(s[0]=o=>i.$emit("action",o))},null,40,["data"]))}}),J1=["innerHTML"],K1=Ds(Te({__name:"LayoutCustom",props:{data:{}},setup(t){const e=t,n=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function r(){if(i(),!e.data.css)return;const o=document.createElement("style");o.id=n,o.textContent=e.data.css,document.head.appendChild(o)}function i(){const o=document.getElementById(n);o&&o.remove()}Tn(()=>{r()}),kn(()=>e.data.css,()=>{r()}),Jn(()=>{i()});const s=le(()=>e.data.html?e.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(o,a)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["custom-slide-wrapper relative w-full overflow-hidden",t.data.sizing==="container"?"h-full":"min-h-screen"])},[$("div",{class:"custom-html-content w-full h-full",innerHTML:s.value},null,8,J1)],2)]),_:1},8,["data"]))}}),[["__scopeId","data-v-b8b91621"]]),q1={key:0,class:"text-center mb-8 reveal-up"},Y1={key:0,class:"text-4xl lg:text-5xl font-heading font-bold mb-3"},G1={key:1,class:"text-lg lg:text-xl opacity-60"},X1={key:1,class:"flex-1 flex items-center justify-center"},Q1={key:2,class:"flex-1 flex items-center justify-center"},ex={key:3,class:"flex-1 flex items-center justify-center reveal-zoom max-w-5xl mx-auto w-full"},tx={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},nx=Te({__name:"LayoutChart",props:{data:{}},setup(t){let e=null;const n=be(null),r=be(!0),i=t,s=be(null);let o=null;const a=async()=>{try{const d=await import("chart.js");return e=d.Chart,e.register(...d.registerables),r.value=!1,!0}catch{return n.value="Chart.js is required for chart slides. Install it with: npm install chart.js",r.value=!1,console.warn("[Lumina] chart.js not found. Install with: npm install chart.js"),!1}},l=(d,h)=>{if(!d){const m=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return m[h%m.length]}switch(d){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return d&&(d.startsWith("#")||d.startsWith("rgb")||d.startsWith("hsl"))||d&&/^[a-z]+$/i.test(d)?d:l(void 0,h)}},c=(d,h)=>{var p;const m=[];for(let y=0;y<h;y++)m.push(l((p=d[0])==null?void 0:p.color,y));return m},u=le(()=>{const{chartType:d,data:h}=i.data,m=d==="pie"||d==="doughnut";return{type:d,data:{labels:h.labels,datasets:h.datasets.map((p,y)=>({label:p.label,data:p.values,backgroundColor:m?c(h.datasets,h.labels.length):l(p.color,y),borderColor:m?"rgba(0, 0, 0, 0.2)":l(p.color,y),borderWidth:2,tension:d==="line"?.4:0,fill:d==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:"rgba(255, 255, 255, 0.7)",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:m?{}:{x:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(255, 255, 255, 0.05)"},ticks:{color:"rgba(255, 255, 255, 0.6)",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),f=()=>{if(!s.value||!e)return;o&&o.destroy();const d=s.value.getContext("2d");d&&(o=new e(d,u.value))};return Tn(async()=>{await a()&&setTimeout(f,50)}),Jn(()=>{o&&(o.destroy(),o=null)}),kn(()=>i.data,()=>{f()},{deep:!0}),(d,h)=>(V(),He(jn,{data:t.data},{default:Ot(()=>[$("div",{class:Y(["w-full flex flex-col justify-center p-8 lg:p-16",t.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[t.data.title||t.data.subtitle?(V(),H("div",q1,[t.data.title?(V(),H("h2",Y1,ie(t.data.title),1)):Ee("",!0),t.data.subtitle?(V(),H("p",G1,ie(t.data.subtitle),1)):Ee("",!0)])):Ee("",!0),n.value?(V(),H("div",X1,[...h[0]||(h[0]=[$("div",{class:"text-center p-8 bg-red-500/10 border border-red-500/30 rounded-xl max-w-lg"},[$("svg",{class:"w-12 h-12 mx-auto mb-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[$("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),$("p",{class:"text-red-300 font-medium mb-2"},"Chart.js Required"),$("code",{class:"text-sm bg-black/30 px-3 py-1 rounded text-red-200"},"npm install chart.js")],-1)])])):r.value?(V(),H("div",Q1,[...h[1]||(h[1]=[$("div",{class:"animate-pulse text-white/40"},"Loading chart...",-1)])])):(V(),H("div",ex,[$("div",tx,[$("canvas",{ref_key:"chartCanvas",ref:s},null,512)])]))],2)]),_:1},8,["data"]))}}),rx={class:"h-full w-full flex items-center justify-center bg-black relative overflow-hidden group"},ix={key:0,class:"absolute bottom-12 left-12 z-10 px-6 py-4 bg-black/50 backdrop-blur-md rounded-2xl border border-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"},sx={class:"text-white font-bold text-xl"},ox=Te({__name:"LayoutVideo",props:{data:{type:Object,required:!0}},setup(t){return(e,n)=>(V(),H("div",rx,[Ie(ka,{class:"absolute inset-0 w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay,loop:t.data.video.loop,muted:t.data.video.muted,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"]),t.data.title?(V(),H("div",ix,[$("h2",sx,ie(t.data.title),1)])):Ee("",!0)]))}}),Ta={default:{colors:{primary:"#3b82f6",background:"#030303",text:"#ffffff",muted:"#9ca3af"},fonts:{heading:"Inter, sans-serif",body:"Inter, sans-serif",mono:"monospace"}},ocean:{colors:{primary:"#06b6d4",background:"#0f172a",text:"#f0f9ff",muted:"#94a3b8"},fonts:{heading:"Outfit, sans-serif",body:"Inter, sans-serif"}},midnight:{colors:{primary:"#6366f1",background:"#000000",text:"#e0e7ff",muted:"#6b7280"}},forest:{colors:{primary:"#10b981",background:"#022c22",text:"#ecfdf5",muted:"#6ee7b7"}},cyber:{colors:{primary:"#f472b6",background:"#18181b",text:"#ffffff",muted:"#a1a1aa"},fonts:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"}},latte:{colors:{primary:"#d97706",background:"#fffbeb",text:"#451a03",muted:"#92400e"},fonts:{heading:"Playfair Display, serif",body:"Lato, sans-serif"}}},ld="lumina-theme-styles";class ud{static inject(e,n){let r;typeof e=="string"?r={...Ta[e]||Ta.default}:r={...Ta.default,...e},n&&(n.colors&&(r.colors={...r.colors,...n.colors}),n.fonts&&(r.fonts={...r.fonts,...n.fonts}));let i=document.getElementById(ld);i||(i=document.createElement("style"),i.id=ld,document.head.appendChild(i));const s=this.generateVars(r);i.innerHTML=`:root { ${s} }`}static generateVars(e){const n=[];if(e.colors){for(const[r,i]of Object.entries(e.colors))if(i){n.push(`--lumina-colors-${r}: ${i};`);const s=this.hexToRgb(i);s&&n.push(`--lumina-colors-${r}-rgb: ${s.r}, ${s.g}, ${s.b};`)}}if(e.fonts)for(const[r,i]of Object.entries(e.fonts))i&&n.push(`--lumina-font-${r}: ${i};`);return n.join(" ")}static hexToRgb(e){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}}class ax{constructor(e,n={}){it(this,"app");it(this,"store");it(this,"speakerWindow",null);it(this,"speakerChannel",null);it(this,"speakerChannelId");it(this,"speakerUnsubscribe",null);this.selector=e,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=oy(n),n.theme&&ud.inject(n.theme),this.app=Pu(ad),this.app.provide(di,this.store),this.app.provide("LuminaEngine",this),kn(()=>this.store.state.currentIndex,(r,i)=>{var o;const s=(o=this.store.state.deck)==null?void 0:o.slides[r];s&&mn.emit("slideChange",{index:r,previousIndex:i??0,slide:s})}),kn(()=>{var r;return(r=this.store.state.deck)==null?void 0:r.meta},r=>{r&&((r.theme||r.themeConfig)&&ud.inject(r.theme||"default",r.themeConfig),r.orbColor&&document.documentElement.style.setProperty("--lumina-colors-primary",r.orbColor))},{deep:!0}),this.app.component("layout-statement",h1),this.app.component("layout-half",O1),this.app.component("layout-features",E1),this.app.component("layout-timeline",Z1),this.app.component("layout-steps",U1),this.app.component("layout-flex",W1),this.app.component("layout-auto",H1),this.app.component("layout-custom",K1),this.app.component("layout-chart",nx),this.app.component("layout-video",ox),mn.on("action",r=>{this.store.recordAction(r)}),this.app.mount(this.selector),this.syncSpeakerNotes()}load(e){this.store.loadDeck(e),mn.emit("ready",e),this.syncSpeakerNotes()}patch(e){this.store.patchDeck(e),this.syncSpeakerNotes()}exportState(){const{currentIndex:e,deck:n,actionHistory:r}=this.store.state,i=n==null?void 0:n.slides[e],s=r.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),o=r.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:e,id:(i==null?void 0:i.id)||e,type:i==null?void 0:i.type,title:(i&&"title"in i?i.title:null)||"(No Title)"},narrative:`User is currently on slide ${e+1}. Session Flow: ${s||"Just started"}.`,engagementLevel:o,history:[...r]})}on(e,n){mn.on(e,n)}off(e,n){mn.off(e,n)}destroy(){this.closeSpeakerNotes(),this.app&&this.app.unmount(),mn.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(e){this.store.goto(e),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!jr.isSupported())return console.error("[Lumina] BroadcastChannel not supported."),null;const e=600,n=800,r=window.screenX+window.outerWidth,i=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${e},height=${n},left=${r},top=${i},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked."),null;const s=this.speakerWindow;return s.document.open(),s.document.write(`
|
|
55
|
+
*/var Jf,Zn,Lr,ba,lr,Gf,ya,vy=function(){return typeof window<"u"},wn={},ur=180/Math.PI,Zr=Math.PI/180,jr=Math.atan2,Kf=1e8,xa=/([A-Z])/g,by=/(left|right|width|margin|padding|x)/i,yy=/[\s,\(]\S/,en={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},wa=function(e,n){return n.set(n.t,n.p,Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},xy=function(e,n){return n.set(n.t,n.p,e===1?n.e:Math.round((n.s+n.c*e)*1e4)/1e4+n.u,n)},wy=function(e,n){return n.set(n.t,n.p,e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},Sy=function(e,n){return n.set(n.t,n.p,e===1?n.e:e?Math.round((n.s+n.c*e)*1e4)/1e4+n.u:n.b,n)},ky=function(e,n){var r=n.s+n.c*e;n.set(n.t,n.p,~~(r+(r<0?-.5:.5))+n.u,n)},qf=function(e,n){return n.set(n.t,n.p,e?n.e:n.b,n)},Yf=function(e,n){return n.set(n.t,n.p,e!==1?n.b:n.e,n)},Ty=function(e,n,r){return e.style[n]=r},zy=function(e,n,r){return e.style.setProperty(n,r)},Cy=function(e,n,r){return e._gsap[n]=r},$y=function(e,n,r){return e._gsap.scaleX=e._gsap.scaleY=r},Oy=function(e,n,r,i,o){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(o,s)},Ey=function(e,n,r,i,o){var s=e._gsap;s[n]=r,s.renderTransform(o,s)},Re="transform",ht=Re+"Origin",Py=function t(e,n){var r=this,i=this.target,o=i.style,s=i._gsap;if(e in wn&&o){if(this.tfm=this.tfm||{},e!=="transform")e=en[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return r.tfm[a]=Sn(i,a)}):this.tfm[e]=s.x?s[e]:Sn(i,e),e===ht&&(this.tfm.zOrigin=s.zOrigin);else return en.transform.split(",").forEach(function(a){return t.call(r,a,n)});if(this.props.indexOf(Re)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(ht,n,"")),e=Re}(o||n)&&this.props.push(e,n,o[e])},Xf=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Iy=function(){var e=this.props,n=this.target,r=n.style,i=n._gsap,o,s;for(o=0;o<e.length;o+=3)e[o+1]?e[o+1]===2?n[e[o]](e[o+2]):n[e[o]]=e[o+2]:e[o+2]?r[e[o]]=e[o+2]:r.removeProperty(e[o].substr(0,2)==="--"?e[o]:e[o].replace(xa,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)i[s]=this.tfm[s];i.svg&&(i.renderTransform(),n.setAttribute("data-svg-origin",this.svgo||"")),o=ya(),(!o||!o.isStart)&&!r[Re]&&(Xf(r),i.zOrigin&&r[ht]&&(r[ht]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},Qf=function(e,n){var r={target:e,props:[],revert:Iy,save:Py};return e._gsap||dt.core.getCache(e),n&&e.style&&e.nodeType&&n.split(",").forEach(function(i){return r.save(i)}),r},ed,Sa=function(e,n){var r=Zn.createElementNS?Zn.createElementNS((n||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Zn.createElement(e);return r&&r.style?r:Zn.createElement(e)},kt=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(xa,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Br(n)||n,1)||""},td="O,Moz,ms,Ms,Webkit".split(","),Br=function(e,n,r){var i=n||lr,o=i.style,s=5;if(e in o&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(td[s]+e in o););return s<0?null:(s===3?"ms":s>=0?td[s]:"")+e},ka=function(){vy()&&window.document&&(Jf=window,Zn=Jf.document,Lr=Zn.documentElement,lr=Sa("div")||{style:{}},Sa("div"),Re=Br(Re),ht=Re+"Origin",lr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ed=!!Br("perspective"),ya=dt.core.reverting,ba=1)},nd=function(e){var n=e.ownerSVGElement,r=Sa("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),o;i.style.display="block",r.appendChild(i),Lr.appendChild(r);try{o=i.getBBox()}catch{}return r.removeChild(i),Lr.removeChild(r),o},rd=function(e,n){for(var r=n.length;r--;)if(e.hasAttribute(n[r]))return e.getAttribute(n[r])},id=function(e){var n,r;try{n=e.getBBox()}catch{n=nd(e),r=1}return n&&(n.width||n.height)||r||(n=nd(e)),n&&!n.width&&!n.x&&!n.y?{x:+rd(e,["x","cx","x1"])||0,y:+rd(e,["y","cy","y1"])||0,width:0,height:0}:n},od=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&id(e))},jn=function(e,n){if(n){var r=e.style,i;n in wn&&n!==ht&&(n=Re),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(xa,"-$1").toLowerCase())):r.removeAttribute(n)}},Bn=function(e,n,r,i,o,s){var a=new ft(e._pt,n,r,0,1,s?Yf:qf);return e._pt=a,a.b=i,a.e=o,e._props.push(r),a},sd={deg:1,rad:1,turn:1},Ay={grid:1,flex:1},Un=function t(e,n,r,i){var o=parseFloat(r)||0,s=(r+"").trim().substr((o+"").length)||"px",a=lr.style,l=by.test(n),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(l?"Width":"Height"),f=100,d=i==="px",h=i==="%",m,p,b,x;if(i===s||!o||sd[i]||sd[s])return o;if(s!=="px"&&!d&&(o=t(e,n,r,"px")),x=e.getCTM&&od(e),(h||s==="%")&&(wn[n]||~n.indexOf("adius")))return m=x?e.getBBox()[l?"width":"height"]:e[u],Me(h?o/m*f:o/100*m);if(a[l?"width":"height"]=f+(d?s:i),p=i!=="rem"&&~n.indexOf("adius")||i==="em"&&e.appendChild&&!c?e:e.parentNode,x&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===Zn||!p.appendChild)&&(p=Zn.body),b=p._gsap,b&&h&&b.width&&l&&b.time===St.time&&!b.uncache)return Me(o/b.width*f);if(h&&(n==="height"||n==="width")){var k=e.style[n];e.style[n]=f+i,m=e[u],k?e.style[n]=k:jn(e,n)}else(h||s==="%")&&!Ay[kt(p,"display")]&&(a.position=kt(e,"position")),p===e&&(a.position="static"),p.appendChild(lr),m=lr[u],p.removeChild(lr),a.position="absolute";return l&&h&&(b=rr(p),b.time=St.time,b.width=p[u]),Me(d?m*o/f:m&&o?f/m*o:0)},Sn=function(e,n,r,i){var o;return ba||ka(),n in en&&n!=="transform"&&(n=en[n],~n.indexOf(",")&&(n=n.split(",")[0])),wn[n]&&n!=="transform"?(o=zi(e,i),o=n!=="transformOrigin"?o[n]:o.svg?o.origin:Do(kt(e,ht))+" "+o.zOrigin+"px"):(o=e.style[n],(!o||o==="auto"||i||~(o+"").indexOf("calc("))&&(o=Ro[n]&&Ro[n](e,n,r)||kt(e,n)||uf(e,n)||(n==="opacity"?1:0))),r&&!~(o+"").trim().indexOf(" ")?Un(e,n,o,r)+r:o},Ry=function(e,n,r,i){if(!r||r==="none"){var o=Br(n,e,1),s=o&&kt(e,o,1);s&&s!==r?(n=o,r=s):n==="borderColor"&&(r=kt(e,"borderTopColor"))}var a=new ft(this._pt,e.style,n,0,1,Uf),l=0,c=0,u,f,d,h,m,p,b,x,k,z,y,w;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=kt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(p=e.style[n],e.style[n]=i,i=kt(e,n)||i,p?e.style[n]=p:jn(e,n)),u=[r,i],Af(u),r=u[0],i=u[1],d=r.match(Ir)||[],w=i.match(Ir)||[],w.length){for(;f=Ir.exec(i);)b=f[0],k=i.substring(l,f.index),m?m=(m+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(m=1),b!==(p=d[c++]||"")&&(h=parseFloat(p)||0,y=p.substr((h+"").length),b.charAt(1)==="="&&(b=Ar(h,b)+y),x=parseFloat(b),z=b.substr((x+"").length),l=Ir.lastIndex-z.length,z||(z=z||vt.units[n]||y,l===i.length&&(i+=z,a.e+=z)),y!==z&&(h=Un(e,n,p,z)||0),a._pt={_next:a._pt,p:k||c===1?k:",",s:h,c:x-h,m:m&&m<4||n==="zIndex"?Math.round:0});a.c=l<i.length?i.substring(l,i.length):""}else a.r=n==="display"&&i==="none"?Yf:qf;return nf.test(i)&&(a.e=0),this._pt=a,a},ad={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Dy=function(e){var n=e.split(" "),r=n[0],i=n[1]||"50%";return(r==="top"||r==="bottom"||i==="left"||i==="right")&&(e=r,r=i,i=e),n[0]=ad[r]||r,n[1]=ad[i]||i,n.join(" ")},Fy=function(e,n){if(n.tween&&n.tween._time===n.tween._dur){var r=n.t,i=r.style,o=n.u,s=r._gsap,a,l,c;if(o==="all"||o===!0)i.cssText="",l=1;else for(o=o.split(","),c=o.length;--c>-1;)a=o[c],wn[a]&&(l=1,a=a==="transformOrigin"?ht:Re),jn(r,a);l&&(jn(r,Re),s&&(s.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",zi(r,1),s.uncache=1,Xf(i)))}},Ro={clearProps:function(e,n,r,i,o){if(o.data!=="isFromStart"){var s=e._pt=new ft(e._pt,n,r,0,0,Fy);return s.u=i,s.pr=-10,s.tween=o,e._props.push(r),1}}},Ti=[1,0,0,1,0,0],ld={},ud=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},cd=function(e){var n=kt(e,Re);return ud(n)?Ti:n.substr(7).match(tf).map(Me)},Ta=function(e,n){var r=e._gsap||rr(e),i=e.style,o=cd(e),s,a,l,c;return r.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,o=[l.a,l.b,l.c,l.d,l.e,l.f],o.join(",")==="1,0,0,1,0,0"?Ti:o):(o===Ti&&!e.offsetParent&&e!==Lr&&!r.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(c=1,a=e.nextElementSibling,Lr.appendChild(e)),o=cd(e),l?i.display=l:jn(e,"display"),c&&(a?s.insertBefore(e,a):s?s.appendChild(e):Lr.removeChild(e))),n&&o.length>6?[o[0],o[1],o[4],o[5],o[12],o[13]]:o)},za=function(e,n,r,i,o,s){var a=e._gsap,l=o||Ta(e,!0),c=a.xOrigin||0,u=a.yOrigin||0,f=a.xOffset||0,d=a.yOffset||0,h=l[0],m=l[1],p=l[2],b=l[3],x=l[4],k=l[5],z=n.split(" "),y=parseFloat(z[0])||0,w=parseFloat(z[1])||0,E,A,P,_;r?l!==Ti&&(A=h*b-m*p)&&(P=y*(b/A)+w*(-p/A)+(p*k-b*x)/A,_=y*(-m/A)+w*(h/A)-(h*k-m*x)/A,y=P,w=_):(E=id(e),y=E.x+(~z[0].indexOf("%")?y/100*E.width:y),w=E.y+(~(z[1]||z[0]).indexOf("%")?w/100*E.height:w)),i||i!==!1&&a.smooth?(x=y-c,k=w-u,a.xOffset=f+(x*h+k*p)-x,a.yOffset=d+(x*m+k*b)-k):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=w,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,e.style[ht]="0px 0px",s&&(Bn(s,a,"xOrigin",c,y),Bn(s,a,"yOrigin",u,w),Bn(s,a,"xOffset",f,a.xOffset),Bn(s,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+w)},zi=function(e,n){var r=e._gsap||new Nf(e);if("x"in r&&!n&&!r.uncache)return r;var i=e.style,o=r.scaleX<0,s="px",a="deg",l=getComputedStyle(e),c=kt(e,ht)||"0",u,f,d,h,m,p,b,x,k,z,y,w,E,A,P,_,S,N,T,B,H,K,ee,te,ne,Nt,nn,Tt,Ue,$i,Bt,kn;return u=f=d=p=b=x=k=z=y=0,h=m=1,r.svg=!!(e.getCTM&&od(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Re]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Re]!=="none"?l[Re]:"")),i.scale=i.rotate=i.translate="none"),A=Ta(e,r.svg),r.svg&&(r.uncache?(ne=e.getBBox(),c=r.xOrigin-ne.x+"px "+(r.yOrigin-ne.y)+"px",te=""):te=!n&&e.getAttribute("data-svg-origin"),za(e,te||c,!!te||r.originIsAbsolute,r.smooth!==!1,A)),w=r.xOrigin||0,E=r.yOrigin||0,A!==Ti&&(N=A[0],T=A[1],B=A[2],H=A[3],u=K=A[4],f=ee=A[5],A.length===6?(h=Math.sqrt(N*N+T*T),m=Math.sqrt(H*H+B*B),p=N||T?jr(T,N)*ur:0,k=B||H?jr(B,H)*ur+p:0,k&&(m*=Math.abs(Math.cos(k*Zr))),r.svg&&(u-=w-(w*N+E*B),f-=E-(w*T+E*H))):(kn=A[6],$i=A[7],nn=A[8],Tt=A[9],Ue=A[10],Bt=A[11],u=A[12],f=A[13],d=A[14],P=jr(kn,Ue),b=P*ur,P&&(_=Math.cos(-P),S=Math.sin(-P),te=K*_+nn*S,ne=ee*_+Tt*S,Nt=kn*_+Ue*S,nn=K*-S+nn*_,Tt=ee*-S+Tt*_,Ue=kn*-S+Ue*_,Bt=$i*-S+Bt*_,K=te,ee=ne,kn=Nt),P=jr(-B,Ue),x=P*ur,P&&(_=Math.cos(-P),S=Math.sin(-P),te=N*_-nn*S,ne=T*_-Tt*S,Nt=B*_-Ue*S,Bt=H*S+Bt*_,N=te,T=ne,B=Nt),P=jr(T,N),p=P*ur,P&&(_=Math.cos(P),S=Math.sin(P),te=N*_+T*S,ne=K*_+ee*S,T=T*_-N*S,ee=ee*_-K*S,N=te,K=ne),b&&Math.abs(b)+Math.abs(p)>359.9&&(b=p=0,x=180-x),h=Me(Math.sqrt(N*N+T*T+B*B)),m=Me(Math.sqrt(ee*ee+kn*kn)),P=jr(K,ee),k=Math.abs(P)>2e-4?P*ur:0,y=Bt?1/(Bt<0?-Bt:Bt):0),r.svg&&(te=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!ud(kt(e,Re)),te&&e.setAttribute("transform",te))),Math.abs(k)>90&&Math.abs(k)<270&&(o?(h*=-1,k+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,k+=k<=0?180:-180)),n=n||r.uncache,r.x=u-((r.xPercent=u&&(!n&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=f-((r.yPercent=f&&(!n&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-f)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=d+s,r.scaleX=Me(h),r.scaleY=Me(m),r.rotation=Me(p)+a,r.rotationX=Me(b)+a,r.rotationY=Me(x)+a,r.skewX=k+a,r.skewY=z+a,r.transformPerspective=y+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!n&&r.zOrigin||0)&&(i[ht]=Do(c)),r.xOffset=r.yOffset=0,r.force3D=vt.force3D,r.renderTransform=r.svg?My:ed?fd:Ny,r.uncache=0,r},Do=function(e){return(e=e.split(" "))[0]+" "+e[1]},Ca=function(e,n,r){var i=et(n);return Me(parseFloat(n)+parseFloat(Un(e,"x",r+"px",i)))+i},Ny=function(e,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,fd(e,n)},cr="0deg",Ci="0px",fr=") ",fd=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.z,c=r.rotation,u=r.rotationY,f=r.rotationX,d=r.skewX,h=r.skewY,m=r.scaleX,p=r.scaleY,b=r.transformPerspective,x=r.force3D,k=r.target,z=r.zOrigin,y="",w=x==="auto"&&e&&e!==1||x===!0;if(z&&(f!==cr||u!==cr)){var E=parseFloat(u)*Zr,A=Math.sin(E),P=Math.cos(E),_;E=parseFloat(f)*Zr,_=Math.cos(E),s=Ca(k,s,A*_*-z),a=Ca(k,a,-Math.sin(E)*-z),l=Ca(k,l,P*_*-z+z)}b!==Ci&&(y+="perspective("+b+fr),(i||o)&&(y+="translate("+i+"%, "+o+"%) "),(w||s!==Ci||a!==Ci||l!==Ci)&&(y+=l!==Ci||w?"translate3d("+s+", "+a+", "+l+") ":"translate("+s+", "+a+fr),c!==cr&&(y+="rotate("+c+fr),u!==cr&&(y+="rotateY("+u+fr),f!==cr&&(y+="rotateX("+f+fr),(d!==cr||h!==cr)&&(y+="skew("+d+", "+h+fr),(m!==1||p!==1)&&(y+="scale("+m+", "+p+fr),k.style[Re]=y||"translate(0, 0)"},My=function(e,n){var r=n||this,i=r.xPercent,o=r.yPercent,s=r.x,a=r.y,l=r.rotation,c=r.skewX,u=r.skewY,f=r.scaleX,d=r.scaleY,h=r.target,m=r.xOrigin,p=r.yOrigin,b=r.xOffset,x=r.yOffset,k=r.forceCSS,z=parseFloat(s),y=parseFloat(a),w,E,A,P,_;l=parseFloat(l),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,l+=u),l||c?(l*=Zr,c*=Zr,w=Math.cos(l)*f,E=Math.sin(l)*f,A=Math.sin(l-c)*-d,P=Math.cos(l-c)*d,c&&(u*=Zr,_=Math.tan(c-u),_=Math.sqrt(1+_*_),A*=_,P*=_,u&&(_=Math.tan(u),_=Math.sqrt(1+_*_),w*=_,E*=_)),w=Me(w),E=Me(E),A=Me(A),P=Me(P)):(w=f,P=d,E=A=0),(z&&!~(s+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(z=Un(h,"x",s,"px"),y=Un(h,"y",a,"px")),(m||p||b||x)&&(z=Me(z+m-(m*w+p*A)+b),y=Me(y+p-(m*E+p*P)+x)),(i||o)&&(_=h.getBBox(),z=Me(z+i/100*_.width),y=Me(y+o/100*_.height)),_="matrix("+w+","+E+","+A+","+P+","+z+","+y+")",h.setAttribute("transform",_),k&&(h.style[Re]=_)},Ly=function(e,n,r,i,o){var s=360,a=Be(o),l=parseFloat(o)*(a&&~o.indexOf("rad")?ur:1),c=l-i,u=i+c+"deg",f,d;return a&&(f=o.split("_")[1],f==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),f==="cw"&&c<0?c=(c+s*Kf)%s-~~(c/s)*s:f==="ccw"&&c>0&&(c=(c-s*Kf)%s-~~(c/s)*s)),e._pt=d=new ft(e._pt,n,r,i,c,xy),d.e=u,d.u="deg",e._props.push(r),d},dd=function(e,n){for(var r in n)e[r]=n[r];return e},Zy=function(e,n,r){var i=dd({},r._gsap),o="perspective,force3D,transformOrigin,svgOrigin",s=r.style,a,l,c,u,f,d,h,m;i.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[Re]=n,a=zi(r,1),jn(r,Re),r.setAttribute("transform",c)):(c=getComputedStyle(r)[Re],s[Re]=n,a=zi(r,1),s[Re]=c);for(l in wn)c=i[l],u=a[l],c!==u&&o.indexOf(l)<0&&(h=et(c),m=et(u),f=h!==m?Un(r,l,c,m):parseFloat(c),d=parseFloat(u),e._pt=new ft(e._pt,a,l,f,d-f,wa),e._pt.u=m||0,e._props.push(l));dd(a,i)};ct("padding,margin,Width,Radius",function(t,e){var n="Top",r="Right",i="Bottom",o="Left",s=(e<3?[n,r,i,o]:[n+o,n+r,i+r,i+o]).map(function(a){return e<2?t+a:"border"+a+t});Ro[e>1?"border"+t:t]=function(a,l,c,u,f){var d,h;if(arguments.length<4)return d=s.map(function(m){return Sn(a,m,c)}),h=d.join(" "),h.split(d[0]).length===5?d[0]:h;d=(u+"").split(" "),h={},s.forEach(function(m,p){return h[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(l,h,f)}});var hd={name:"css",register:ka,targetTest:function(e){return e.style&&e.nodeType},init:function(e,n,r,i,o){var s=this._props,a=e.style,l=r.vars.startAt,c,u,f,d,h,m,p,b,x,k,z,y,w,E,A,P,_;ba||ka(),this.styles=this.styles||Qf(e),P=this.styles.props,this.tween=r;for(p in n)if(p!=="autoRound"&&(u=n[p],!(yt[p]&&Mf(p,n,r,i,e,o)))){if(h=typeof u,m=Ro[p],h==="function"&&(u=u.call(r,i,e,o),h=typeof u),h==="string"&&~u.indexOf("random(")&&(u=bi(u)),m)m(this,e,p,u,r)&&(A=1);else if(p.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",Mn.lastIndex=0,Mn.test(c)||(b=et(c),x=et(u),x?b!==x&&(c=Un(e,p,c,x)+x):b&&(u+=b)),this.add(a,"setProperty",c,u,i,o,0,0,p),s.push(p),P.push(p,0,a[p]);else if(h!=="undefined"){if(l&&p in l?(c=typeof l[p]=="function"?l[p].call(r,i,e,o):l[p],Be(c)&&~c.indexOf("random(")&&(c=bi(c)),et(c+"")||c==="auto"||(c+=vt.units[p]||et(Sn(e,p))||""),(c+"").charAt(1)==="="&&(c=Sn(e,p))):c=Sn(e,p),d=parseFloat(c),k=h==="string"&&u.charAt(1)==="="&&u.substr(0,2),k&&(u=u.substr(2)),f=parseFloat(u),p in en&&(p==="autoAlpha"&&(d===1&&Sn(e,"visibility")==="hidden"&&f&&(d=0),P.push("visibility",0,a.visibility),Bn(this,a,"visibility",d?"inherit":"hidden",f?"inherit":"hidden",!f)),p!=="scale"&&p!=="transform"&&(p=en[p],~p.indexOf(",")&&(p=p.split(",")[0]))),z=p in wn,z){if(this.styles.save(p),_=u,h==="string"&&u.substring(0,6)==="var(--"){if(u=kt(e,u.substring(4,u.indexOf(")"))),u.substring(0,5)==="calc("){var S=e.style.perspective;e.style.perspective=u,u=kt(e,"perspective"),S?e.style.perspective=S:jn(e,"perspective")}f=parseFloat(u)}if(y||(w=e._gsap,w.renderTransform&&!n.parseTransform||zi(e,n.parseTransform),E=n.smoothOrigin!==!1&&w.smooth,y=this._pt=new ft(this._pt,a,Re,0,1,w.renderTransform,w,0,-1),y.dep=1),p==="scale")this._pt=new ft(this._pt,w,"scaleY",w.scaleY,(k?Ar(w.scaleY,k+f):f)-w.scaleY||0,wa),this._pt.u=0,s.push("scaleY",p),p+="X";else if(p==="transformOrigin"){P.push(ht,0,a[ht]),u=Dy(u),w.svg?za(e,u,0,E,0,this):(x=parseFloat(u.split(" ")[2])||0,x!==w.zOrigin&&Bn(this,w,"zOrigin",w.zOrigin,x),Bn(this,a,p,Do(c),Do(u)));continue}else if(p==="svgOrigin"){za(e,u,1,E,0,this);continue}else if(p in ld){Ly(this,w,p,d,k?Ar(d,k+u):u);continue}else if(p==="smoothOrigin"){Bn(this,w,"smooth",w.smooth,u);continue}else if(p==="force3D"){w[p]=u;continue}else if(p==="transform"){Zy(this,u,e);continue}}else p in a||(p=Br(p)||p);if(z||(f||f===0)&&(d||d===0)&&!yy.test(u)&&p in a)b=(c+"").substr((d+"").length),f||(f=0),x=et(u)||(p in vt.units?vt.units[p]:b),b!==x&&(d=Un(e,p,c,x)),this._pt=new ft(this._pt,z?w:a,p,d,(k?Ar(d,k+f):f)-d,!z&&(x==="px"||p==="zIndex")&&n.autoRound!==!1?ky:wa),this._pt.u=x||0,z&&_!==u?(this._pt.b=c,this._pt.e=_,this._pt.r=Sy):b!==x&&x!=="%"&&(this._pt.b=c,this._pt.r=wy);else if(p in a)Ry.call(this,e,p,c,k?k+u:u);else if(p in e)this.add(e,p,c||e[p],k?k+u:u,i,o);else if(p!=="parseTransform"){Ks(p,u);continue}z||(p in a?P.push(p,0,a[p]):typeof e[p]=="function"?P.push(p,2,e[p]()):P.push(p,1,c||e[p])),s.push(p)}}A&&Vf(this)},render:function(e,n){if(n.tween._time||!ya())for(var r=n._pt;r;)r.r(e,r.d),r=r._next;else n.styles.revert()},get:Sn,aliases:en,getSetter:function(e,n,r){var i=en[n];return i&&i.indexOf(",")<0&&(n=i),n in wn&&n!==ht&&(e._gsap.x||Sn(e,"x"))?r&&Gf===r?n==="scale"?$y:Cy:(Gf=r||{})&&(n==="scale"?Oy:Ey):e.style&&!Vs(e.style[n])?Ty:~n.indexOf("-")?zy:pa(e,n)},core:{_removeProperty:jn,_getMatrix:Ta}};dt.utils.checkPrefix=Br,dt.core.getStyleSaver=Qf,function(t,e,n,r){var i=ct(t+","+e+","+n,function(o){wn[o]=1});ct(e,function(o){vt.units[o]="deg",ld[o]=1}),en[i[13]]=t+","+e,ct(r,function(o){var s=o.split(":");en[s[1]]=i[s[0]]})}("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY"),ct("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(t){vt.units[t]="px"}),dt.registerPlugin(hd);var tn=dt.registerPlugin(hd)||dt;tn.core.Tween;const jy={class:"h-full w-full relative flex flex-col text-white overflow-hidden",style:{"background-color":"var(--lumina-colors-background, #030303)",color:"var(--lumina-colors-text, #ffffff)"}},By={class:"absolute inset-0 z-0 overflow-hidden pointer-events-none"},Uy={key:0,class:"absolute top-0 right-0 p-6 z-50 flex gap-4 pointer-events-auto"},Vy={class:"relative h-full w-full md:w-[450px] bg-[#0a0a0a]/95 border-l border-white/10 shadow-2xl overflow-auto text-left flex flex-col transform transition-transform duration-300"},Wy={class:"p-6 pb-2 border-b border-white/5 flex items-center justify-between shrink-0"},Hy={class:"p-6"},Jy={class:"text-[10px] font-mono text-green-400 whitespace-pre-wrap"},Gy={class:"flex-1 w-full relative overflow-y-auto overflow-x-hidden z-10 scroll-smooth"},Ky={key:1,class:"absolute bottom-0 left-0 w-full z-40 px-8 py-6 bg-gradient-to-t from-black/60 via-black/20 to-transparent flex justify-between items-end pointer-events-none"},qy={key:0,class:"pointer-events-auto text-left"},Yy={class:"text-[10px] font-bold tracking-[0.2em] uppercase mb-1",style:{color:"var(--lumina-color-muted)"}},Xy={class:"flex items-center gap-2 text-sm font-mono",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},Qy={key:0,class:"h-px w-8",style:{backgroundColor:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.3}},ex={key:1,class:"flex-1"},tx={key:2,class:"pointer-events-auto flex gap-3"},nx=["disabled"],rx=["disabled"],pd=Ee({__name:"LuminaDeck",setup(t){const{slide:e,index:n,total:r,next:i,prev:o,options:s}=xb(),a=dn(hi),l=le(()=>a.hasNext()),c=le(()=>a.hasPrev()),u=le(()=>{var P,_;return(_=(P=a.state.deck)==null?void 0:P.meta)==null?void 0:_.title}),f=le(()=>a.state.options.ui),d=le(()=>a.state.options.navigation);wb();const h=be({top:"-20%",left:"-10%"}),m=()=>{const P=(_,S)=>Math.floor(Math.random()*(S-_+1)+_);return{top:`${P(-25,65)}%`,left:`${P(-25,65)}%`}};hn(n,(P,_)=>{P===0?h.value={top:"-20%",left:"-10%"}:_!==void 0&&(h.value=m())},{immediate:!0});const p=be({showJson:!1}),b=dn("LuminaEngine"),x=()=>{b&&typeof b.openSpeakerNotes=="function"?b.openSpeakerNotes():(console.warn("Lumina Engine not found or openSpeakerNotes not available"),alert("Speaker notes require the full Lumina Engine environment."))},k=le(()=>s.debug),z=le(()=>!e.value||!e.value.type?null:`layout-${e.value.type}`),y=le(()=>{var P,_,S,N,T,B,H,K;return{backgroundColor:((_=(P=e.value)==null?void 0:P.meta)==null?void 0:_.orbColor)||"var(--lumina-color-primary, #3b82f6)",width:"var(--lumina-orb-size, 60vw)",height:"var(--lumina-orb-size, 60vw)",top:((T=(N=(S=e.value)==null?void 0:S.meta)==null?void 0:N.orbPos)==null?void 0:T.top)||h.value.top,left:((K=(H=(B=e.value)==null?void 0:B.meta)==null?void 0:H.orbPos)==null?void 0:K.left)||h.value.left,transition:"top 0.8s cubic-bezier(0.4, 0, 0.2, 1), left 0.8s cubic-bezier(0.4, 0, 0.2, 1)"}}),w=P=>{bn.emit("action",P)},E=(P,_)=>{const S=P;S.style.opacity="1",_()},A=(P,_)=>{var H,K,ee;const{options:S}=a.state;if(((H=S.animation)==null?void 0:H.enabled)===!1){_();return}const N=((K=S.animation)==null?void 0:K.durationOut)||.5,T=((ee=S.animation)==null?void 0:ee.type)||"cascade",B=tn.timeline({onComplete:_});T==="fade"?B.to(P,{opacity:0,duration:N}):T==="zoom"?B.to(P,{opacity:0,scale:1.1,duration:N}):B.to(P,{opacity:0,y:-20,duration:N,ease:"power2.in"})};return(P,_)=>{var S,N,T,B,H;return U(),J("div",jy,[O("div",By,[O("div",{class:"ambient-orb",style:Oe(y.value)},null,4),_[6]||(_[6]=O("div",{class:"absolute inset-0 opacity-[0.04]",style:{"background-image":"url('https://grainy-gradients.vercel.app/noise.svg')"}},null,-1))]),k.value?(U(),J("div",Uy,[O("button",{onClick:_[0]||(_[0]=K=>p.value.showJson=!p.value.showJson),class:"w-8 h-8 rounded-full glass-panel flex items-center justify-center text-gray-400 hover:text-white transition",title:"JSON"},[..._[7]||(_[7]=[O("i",{class:"fa-solid fa-code text-xs"},null,-1)])])])):Se("",!0),Ne(ys,{name:"fade"},{default:Ot(()=>[p.value.showJson?(U(),J("div",{key:0,class:"fixed inset-0 z-[100] flex justify-end",onClick:_[3]||(_[3]=Ru(K=>p.value.showJson=!1,["self"]))},[O("div",{class:"absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity",onClick:_[1]||(_[1]=K=>p.value.showJson=!1)}),O("div",Vy,[O("div",Wy,[_[9]||(_[9]=O("span",{class:"text-xs font-bold text-gray-400 uppercase tracking-widest"},"Slide Data",-1)),O("button",{onClick:_[2]||(_[2]=K=>p.value.showJson=!1),class:"w-8 h-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition"},[..._[8]||(_[8]=[O("i",{class:"fa-solid fa-xmark"},null,-1)])])]),O("div",Hy,[O("pre",Jy,ie(JSON.stringify(Zt(e),null,2)),1)])])])):Se("",!0)]),_:1}),O("main",Gy,[Ne(ys,{css:!1,onLeave:A,onEnter:E,mode:"out-in"},{default:Ot(()=>[z.value?(U(),qe(eo(z.value),{key:Zt(n),data:Zt(e),onAction:w,class:"min-h-full w-full"},null,40,["data"])):Se("",!0)]),_:1})]),(S=f.value)!=null&&S.visible?(U(),J("div",Ky,[(N=f.value)!=null&&N.showSlideCount?(U(),J("div",qy,[O("h2",Yy,ie(u.value),1),O("div",Xy,[O("span",null,ie((Zt(n)+1).toString().padStart(2,"0")),1),(T=f.value)!=null&&T.showProgressBar?(U(),J("div",Qy)):Se("",!0),O("span",null,ie(Zt(r).toString().padStart(2,"0")),1)])])):(U(),J("div",ex)),(B=f.value)!=null&&B.showControls?(U(),J("div",tx,[(H=Zt(e))!=null&&H.notes?(U(),J("button",{key:0,onClick:x,class:"w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",title:"Open Speaker View"},[..._[10]||(_[10]=[O("i",{class:"fa-solid fa-person-chalkboard text-sm text-gray-400 hover:text-white"},null,-1)])])):Se("",!0),O("button",{onClick:_[4]||(_[4]=(...K)=>Zt(o)&&Zt(o)(...K)),class:se(["w-12 h-12 rounded-full glass-panel hover:bg-white/10 flex items-center justify-center transition active:scale-95",!c.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!c.value||!d.value},[..._[11]||(_[11]=[O("i",{class:"fa-solid fa-arrow-left"},null,-1)])],10,nx),O("button",{onClick:_[5]||(_[5]=(...K)=>Zt(i)&&Zt(i)(...K)),class:se(["w-12 h-12 rounded-full bg-white text-black hover:scale-105 flex items-center justify-center transition shadow-lg active:scale-95",!l.value||!d.value?"opacity-30 cursor-not-allowed":""]),disabled:!l.value||!d.value},[..._[12]||(_[12]=[O("i",{class:"fa-solid fa-arrow-right"},null,-1)])],10,rx)])):Se("",!0)])):Se("",!0)])}}}),Ft=class Ft{constructor(e){st(this,"channel",null);st(this,"handlers",new Set);st(this,"lastTimestamp",0);st(this,"heartbeatInterval",null);st(this,"isConnected",!1);st(this,"connectionHandlers",new Set);this.channelName=e,this.initChannel()}static getInstance(e,n=!1){return n?new Ft(e):(Ft.instances.has(e)||Ft.instances.set(e,new Ft(e)),Ft.instances.get(e))}static isSupported(){return typeof BroadcastChannel<"u"}initChannel(){if(!Ft.isSupported()){console.warn("[SpeakerChannel] BroadcastChannel not supported in this environment");return}try{this.channel=new BroadcastChannel(this.channelName),this.channel.onmessage=e=>{const n=e.data;if(!(n.timestamp&&n.timestamp===this.lastTimestamp)){if(n.action==="ping"){this.send({action:"pong"}),this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}});return}if(n.action==="pong"){this.setConnected(!0);return}if(n.action==="close"){this.setConnected(!1);return}this.handlers.forEach(r=>{try{r(n)}catch(i){console.error("[SpeakerChannel] Handler error:",i)}})}},this.channel.onmessageerror=e=>{console.error("[SpeakerChannel] Message error:",e)},this.startHeartbeat()}catch(e){console.error("[SpeakerChannel] Failed to initialize:",e)}}send(e){if(!this.channel)return;const n={...e,timestamp:Date.now(),channelId:this.channelName};this.lastTimestamp=n.timestamp,this.channel.postMessage(n)}subscribe(e){return this.handlers.add(e),()=>this.handlers.delete(e)}onConnectionChange(e){return this.connectionHandlers.add(e),e(this.isConnected),()=>this.connectionHandlers.delete(e)}get connected(){return this.isConnected}ping(){this.send({action:"ping"})}notifyClose(){this.send({action:"close"})}startHeartbeat(){this.ping(),this.heartbeatInterval=setInterval(()=>{(this.handlers.size>0||this.connectionHandlers.size>0)&&this.ping()},5e3)}setConnected(e){this.isConnected!==e&&(this.isConnected=e,this.connectionHandlers.forEach(n=>n(e)))}destroy(){this.notifyClose(),this.heartbeatInterval&&(clearInterval(this.heartbeatInterval),this.heartbeatInterval=null),this.channel&&(this.channel.close(),this.channel=null),this.handlers.clear(),this.connectionHandlers.clear(),Ft.instances.delete(this.channelName)}static destroyAll(){Ft.instances.forEach(e=>e.destroy()),Ft.instances.clear()}};st(Ft,"instances",new Map);let Ur=Ft;const ix={class:"speaker-notes"},ox={class:"sn-header"},sx={class:"sn-status"},ax={class:"sn-slide-count"},lx={class:"sn-content"},ux={class:"sn-notes-section"},cx=["innerHTML"],fx={key:1,class:"sn-notes-empty"},dx={class:"sn-footer"},hx={class:"sn-nav-controls"},px=["disabled"],mx={class:"sn-timer-value"},gx=["disabled"],_x=Ee({__name:"LuminaSpeakerNotes",props:{channelId:{}},setup(t){const e=t,n=be(0),r=be(0),i=be(""),o=be(null),s=be(!1),a=be(null),l=be(0),c=be(!1),u=be(null),f=le(()=>r.value===0?"No slides loaded":`Slide ${n.value+1} / ${r.value}`),d=le(()=>{const _=Math.floor(l.value/3600),S=Math.floor(l.value%3600/60),N=l.value%60;return _>0?`${_.toString().padStart(2,"0")}:${S.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}`:`${S.toString().padStart(2,"0")}:${N.toString().padStart(2,"0")}`}),h=le(()=>n.value<r.value-1),m=le(()=>n.value>0);function p(_){return _?_.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/__(.*?)__/g,"<strong>$1</strong>").replace(new RegExp("(?<!\\*)\\*(?!\\*)(.*?)(?<!\\*)\\*(?!\\*)","g"),"<em>$1</em>").replace(new RegExp("(?<!_)_(?!_)(.*?)(?<!_)_(?!_)","g"),"<em>$1</em>").replace(/\n/g,"<br>").replace(/^[-*]\s+(.*)$/gm,"<li>$1</li>").replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>").replace(/<\/ul>\s*<ul>/g,""):""}function b(){const _=new URLSearchParams(window.location.search),S=e.channelId||_.get("channel")||"lumina-speaker-default";a.value=Ur.getInstance(S,!0),a.value.onConnectionChange(H=>{s.value=H}),a.value.subscribe(x);let N=0;const T=10,B=setInterval(()=>{var H;if(r.value>0||N>=T){clearInterval(B);return}(H=a.value)==null||H.ping(),N++},300);a.value.ping()}function x(_){switch(_.action){case"state":_.index!==void 0&&(n.value=_.index),_.totalSlides!==void 0&&(r.value=_.totalSlides),_.currentNotes!==void 0&&(i.value=_.currentNotes),_.nextSlidePreview&&(o.value=_.nextSlidePreview);break;case"goto":_.index!==void 0&&(n.value=_.index);break}}function k(){var _;h.value&&((_=a.value)==null||_.send({action:"next"}))}function z(){var _;m.value&&((_=a.value)==null||_.send({action:"prev"}))}function y(){c.value||(c.value=!0,u.value=setInterval(()=>{l.value++},1e3))}function w(){c.value=!1,u.value&&(clearInterval(u.value),u.value=null)}function E(){c.value?w():y()}function A(){w(),l.value=0}function P(_){switch(_.key){case"ArrowRight":case" ":case"Enter":_.preventDefault(),k();break;case"ArrowLeft":case"Backspace":_.preventDefault(),z();break;case"t":case"T":_.preventDefault(),E();break;case"r":case"R":if(_.ctrlKey||_.metaKey)return;_.preventDefault(),A();break}}return $n(()=>{b(),window.addEventListener("keydown",P),window.addEventListener("beforeunload",()=>{var _;(_=a.value)==null||_.notifyClose()})}),qn(()=>{var _;w(),window.removeEventListener("keydown",P),(_=a.value)==null||_.destroy()}),(_,S)=>(U(),J("div",ix,[O("header",ox,[S[0]||(S[0]=up('<div class="sn-title" data-v-63b98fd9><svg class="sn-logo" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" data-v-63b98fd9><path d="M12 2L2 7l10 5 10-5-10-5z" data-v-63b98fd9></path><path d="M2 17l10 5 10-5" data-v-63b98fd9></path><path d="M2 12l10 5 10-5" data-v-63b98fd9></path></svg><span data-v-63b98fd9>Lumina Speaker Notes</span></div>',1)),O("div",sx,[O("span",{class:se(["sn-indicator",{connected:s.value}])},null,2),O("span",ax,ie(f.value),1)])]),O("main",lx,[O("section",ux,[S[2]||(S[2]=O("h2",{class:"sn-section-title"},"Notes",-1)),i.value?(U(),J("div",{key:0,class:"sn-notes-content",innerHTML:p(i.value)},null,8,cx)):(U(),J("div",fx,[...S[1]||(S[1]=[O("p",null,"No notes for this slide",-1)])]))])]),O("footer",dx,[O("div",hx,[O("button",{class:"sn-btn sn-btn-nav",disabled:!m.value,onClick:z,title:"Previous (← or Backspace)"},[...S[3]||(S[3]=[O("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[O("polyline",{points:"15 18 9 12 15 6"})],-1),O("span",null,"Prev",-1)])],8,px),O("div",{class:"sn-timer",onClick:E,title:"Click to start/pause (T)"},[O("span",{class:se(["sn-timer-icon",{running:c.value}])},ie(c.value?"⏸":"▶"),3),O("span",mx,ie(d.value),1),O("button",{class:"sn-timer-reset",onClick:Ru(A,["stop"]),title:"Reset timer (R)"},"↻")]),O("button",{class:"sn-btn sn-btn-nav sn-btn-primary",disabled:!h.value,onClick:k,title:"Next (→, Space, or Enter)"},[...S[4]||(S[4]=[O("span",null,"Next",-1),O("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[O("polyline",{points:"9 18 15 12 9 6"})],-1)])],8,gx)])])]))}}),Fo=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},vx=Fo(_x,[["__scopeId","data-v-63b98fd9"]]);function bx(t,e){const n=dn(hi);let r=null;const i=()=>{if(!t.value||!n)return;r==null||r.revert();const{enabled:o,type:s,durationIn:a,stagger:l,ease:c}=n.state.options.animation||{};if(o===!1){tn.set(t.value.querySelectorAll(".reveal-up, .reveal-zoom, .reveal-content > *, .reveal-card, .reveal-img"),{opacity:1,y:0,scale:1,visibility:"visible"});return}r=tn.context(()=>{const u=t.value,f=s==="fade",d=s==="slide",h=s==="zoom",m=f?0:d?80:40,p=h?.8:s==="cascade"?.95:1;u.querySelector(".reveal-up")&&tn.set(".reveal-up",{y:m,opacity:0}),u.querySelector(".reveal-zoom")&&tn.set(".reveal-zoom",{scale:p,opacity:0}),u.querySelector(".reveal-content > *")&&tn.set(".reveal-content > *",{y:f?0:30,opacity:0}),u.querySelector(".reveal-card")&&tn.set(".reveal-card",{y:f?0:50,opacity:0,scale:p}),u.querySelector(".reveal-img")&&tn.set(".reveal-img",{scale:1.1,opacity:0});const b=tn.timeline({defaults:{ease:c||"power3.out",duration:a||.8},onComplete:e});u.querySelector(".reveal-img")&&b.to(".reveal-img",{scale:1,opacity:1,duration:(a||1)*1.2,ease:"expo.out"},0);const x=a||.8,k=l||.1;u.querySelectorAll(".reveal-card").length&&b.to(".reveal-card",{y:0,opacity:1,scale:1,duration:x,stagger:k,ease:d?"expo.out":"back.out(1.2)"},.2);const z=u.querySelectorAll(".reveal-content > *");z.length&&b.to(z,{y:0,opacity:1,duration:x,stagger:k/2},.3),u.querySelectorAll(".reveal-up").length&&b.to(".reveal-up",{y:0,opacity:1,duration:x,stagger:k},.2),u.querySelector(".reveal-zoom")&&b.to(".reveal-zoom",{scale:1,opacity:1,duration:x*1.2,ease:"expo.out"},.1)},t)};return $n(()=>{ul(()=>{i()})}),qn(()=>{r==null||r.revert()}),{animateIn:i}}const yx={class:"absolute inset-0 z-0 pointer-events-none overflow-hidden"},xx=["src","poster","autoplay","loop","muted"],wx={key:2,class:"absolute inset-0 bg-[var(--lumina-colors-background,black)]/30 pointer-events-none transition-opacity duration-1000"},Sx={class:"relative z-10 w-full h-full"},Vn=Ee({__name:"BaseSlide",props:{data:{},customClass:{}},setup(t){const e=t,n=be(null);bx(n);const r=le(()=>e.data.background?typeof e.data.background=="string"?"image":e.data.background.type==="video"?"video":null:null),i=le(()=>e.data.background?typeof e.data.background=="string"?e.data.background:e.data.background.src:""),o=le(()=>{if(r.value==="video")return e.data.background.poster}),s=le(()=>r.value!=="video"?void 0:e.data.background.autoplay??!0),a=le(()=>r.value!=="video"?void 0:e.data.background.loop??!0),l=le(()=>r.value!=="video"?void 0:e.data.background.muted??!0),c=le(()=>e.data.backgroundOpacity??1);return(u,f)=>(U(),J("div",{ref_key:"container",ref:n,class:se(["w-full min-h-full relative text-white",t.customClass])},[O("div",yx,[r.value==="image"?(U(),J("div",{key:0,class:"absolute inset-0 bg-cover bg-center transition-opacity duration-1000",style:Oe({backgroundImage:`url(${i.value})`,opacity:c.value})},null,4)):r.value==="video"?(U(),J("video",{key:1,class:"absolute inset-0 w-full h-full object-cover transition-opacity duration-1000",style:Oe({opacity:c.value}),src:i.value,poster:o.value,autoplay:s.value,loop:a.value,muted:l.value,playsinline:""},null,12,xx)):Se("",!0),r.value==="video"?(U(),J("div",wx)):Se("",!0),El(u.$slots,"background")]),O("div",Sx,[El(u.$slots,"default")])],2))}}),kx={class:"reveal-zoom max-w-5xl z-10"},Tx={key:0,class:"inline-block rounded-full font-medium uppercase",style:{color:"var(--lumina-color-primary)",border:"1px solid var(--lumina-color-border)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",padding:"var(--lumina-tag-padding)",fontSize:"var(--lumina-tag-font-size)",letterSpacing:"var(--lumina-tracking-widest)",marginBottom:"var(--lumina-space-xl)"}},zx={key:1,class:"max-w-3xl mx-auto",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8,fontWeight:"normal",fontSize:"clamp(var(--lumina-text-xl), 3vw, var(--lumina-text-3xl))",lineHeight:"var(--lumina-leading-normal)"}},Cx=Ee({__name:"LayoutStatement",props:{data:{}},setup(t){const e=t,n=le(()=>({fontSize:e.data.sizing==="container"?"var(--lumina-text-5xl)":"clamp(var(--lumina-text-4xl), 10vw, var(--lumina-text-7xl))",fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",letterSpacing:"var(--lumina-tracking-tight)",marginBottom:"var(--lumina-space-xl)",backgroundImage:"linear-gradient(135deg, var(--lumina-color-text-safe, var(--lumina-color-text)) 30%, #525252 100%)",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}));return(r,i)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["flex flex-col justify-center items-center text-center relative",t.data.sizing==="container"?"h-full":"min-h-screen"]),style:{padding:"var(--lumina-space-xl)"}},[O("div",kx,[t.data.tag?(U(),J("span",Tx,ie(t.data.tag),1)):Se("",!0),O("h1",{style:Oe(n.value)},ie(t.data.title),5),t.data.subtitle?(U(),J("p",zx,ie(t.data.subtitle),1)):Se("",!0)])],2)]),_:1},8,["data"]))}}),$x=["src","poster","autoplay","loop","muted"],Ox={key:0,class:"absolute bottom-0 left-0 w-full p-4 bg-gradient-to-t from-black/80 via-black/40 to-transparent transition-opacity duration-300"},Ex={class:"flex items-center justify-between text-white"},Px={class:"flex items-center gap-4"},Ix={class:"flex items-center gap-2 group/vol"},Ax={class:"text-xs font-mono opacity-70"},Rx={key:0,class:"absolute inset-0 flex items-center justify-center pointer-events-none"},$a=Fo(Ee({__name:"VideoPlayer",props:{src:{type:String,required:!0},poster:{type:String,default:""},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},objectFit:{type:String,default:"cover"}},setup(t){const e=t,n=be(null),r=be(!1),i=be(e.muted),o=be(1),s=be(0),a=be(0),l=be(0),c=be(!1),u=be(!1);let f;const d=le(()=>e.objectFit==="contain"?"object-contain":"object-cover"),h=E=>{const A=Math.floor(E/60),P=Math.floor(E%60);return`${A}:${P.toString().padStart(2,"0")}`},m=()=>{n.value&&(n.value.paused?(n.value.play(),r.value=!0,u.value=!0):(n.value.pause(),r.value=!1))},p=()=>{n.value&&(n.value.muted=!n.value.muted,i.value=n.value.muted,i.value?o.value=0:o.value=1)},b=()=>{n.value&&(a.value=n.value.currentTime,s.value=a.value/l.value*100||0)},x=()=>{n.value&&(l.value=n.value.duration,e.autoplay&&m())},k=()=>{r.value=!1,e.loop&&n.value&&(n.value.currentTime=0,m())},z=E=>{if(!n.value)return;const A=E.currentTarget,P=E.offsetX/A.clientWidth;n.value.currentTime=P*l.value,s.value=P*100},y=()=>{if(!n.value)return;const E=n.value.parentElement;!document.fullscreenElement&&E?E.requestFullscreen():document.exitFullscreen()},w=()=>{c.value=!0,clearTimeout(f),f=setTimeout(()=>{r.value&&(c.value=!1)},3e3)};return hn(o,E=>{n.value&&(n.value.volume=E,i.value=E===0,n.value.muted=E===0)}),$n(()=>{n.value&&(n.value.muted=e.muted,i.value=e.muted)}),(E,A)=>(U(),J("div",{class:"relative w-full h-full group bg-black overflow-hidden",onMousemove:w,onMouseleave:A[1]||(A[1]=P=>c.value=!1)},[O("video",{ref_key:"videoRef",ref:n,class:se(["w-full h-full",d.value]),src:t.src,poster:t.poster,autoplay:t.autoplay,loop:t.loop,muted:t.muted,playsinline:"",onClick:m,onTimeupdate:b,onLoadedmetadata:x,onEnded:k},null,42,$x),Ne(ys,{name:"fade"},{default:Ot(()=>[t.controls&&c.value?(U(),J("div",Ox,[O("div",{class:"w-full h-1 bg-white/20 rounded-full mb-4 cursor-pointer relative group/progress",onClick:z},[O("div",{class:"absolute top-0 left-0 h-full rounded-full transition-all duration-100",style:Oe({width:`${s.value}%`,backgroundColor:"var(--lumina-colors-primary, #3b82f6)"})},null,4),O("div",{class:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full opacity-0 group-hover/progress:opacity-100 transition-opacity",style:Oe({left:`${s.value}%`})},null,4)]),O("div",Ex,[O("div",Px,[O("button",{onClick:m,class:"hover:text-[var(--lumina-colors-primary)] transition"},[O("i",{class:se(["fa-solid text-xl",r.value?"fa-pause":"fa-play"])},null,2)]),O("div",Ix,[O("button",{onClick:p,class:"hover:text-[var(--lumina-colors-primary)] transition w-6"},[O("i",{class:se(["fa-solid",i.value?"fa-volume-xmark":"fa-volume-high"])},null,2)]),hh(O("input",{type:"range",min:"0",max:"1",step:"0.1","onUpdate:modelValue":A[0]||(A[0]=P=>o.value=P),class:"w-0 overflow-hidden group-hover/vol:w-20 transition-all duration-300 h-1 bg-white/20 rounded-lg appearance-none cursor-pointer [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-2 [&::-webkit-slider-thumb]:h-2 [&::-webkit-slider-thumb]:bg-white [&::-webkit-slider-thumb]:rounded-full"},null,512),[[Wp,o.value,void 0,{number:!0}]])]),O("span",Ax,ie(h(a.value))+" / "+ie(h(l.value)),1)]),O("div",{class:"flex items-center gap-4"},[O("button",{onClick:y,class:"hover:text-[var(--lumina-colors-primary)] transition"},[...A[2]||(A[2]=[O("i",{class:"fa-solid fa-expand"},null,-1)])])])])])):Se("",!0)]),_:1}),t.controls&&!r.value&&!u.value?(U(),J("div",Rx,[O("div",{class:"w-16 h-16 rounded-full bg-black/50 backdrop-blur-sm border border-white/10 flex items-center justify-center text-white pointer-events-auto cursor-pointer hover:scale-110 transition duration-300",onClick:m},[...A[3]||(A[3]=[O("i",{class:"fa-solid fa-play text-2xl ml-1"},null,-1)])])])):Se("",!0)],32))}}),[["__scopeId","data-v-e807d364"]]),Dx={key:0,class:"w-full h-full relative"},Fx=["src"],Nx={class:"reveal-content",style:{maxWidth:"36rem"}},Mx={key:0,class:"font-bold uppercase block",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-xs)",marginBottom:"var(--lumina-space-lg)"}},Lx={class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",fontSize:"clamp(var(--lumina-text-4xl), 5vw, var(--lumina-text-6xl))",lineHeight:"var(--lumina-leading-tight)",marginBottom:"var(--lumina-space-xl)",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},Zx={style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",marginBottom:"var(--lumina-space-xl)",display:"flex",flexDirection:"column",gap:"var(--lumina-space-lg)"}},jx={key:1,style:{paddingTop:"var(--lumina-space-lg)",borderTop:"1px solid var(--lumina-color-border)"}},Bx=Ee({__name:"LayoutHalf",props:{data:{}},emits:["action"],setup(t){const e=be(!1),n=le(()=>({backgroundColor:"var(--lumina-color-background)",padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}));return(r,i)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["w-full flex flex-col lg:block relative",t.data.sizing==="container"?"min-h-full":"min-h-screen"])},[O("div",{class:se(["relative h-[40vh] lg:h-full lg:w-1/2 overflow-hidden z-0",t.data.sizing==="container"?"lg:absolute lg:top-0":"lg:fixed lg:top-0",t.data.imageSide==="right"?"lg:right-0 order-1":"lg:left-0 order-1"])},[i[3]||(i[3]=O("div",{class:"absolute inset-0 z-10",style:{backgroundColor:"var(--lumina-color-overlay, rgba(0,0,0,0.2))"}},null,-1)),t.data.video?(U(),J("div",Dx,[Ne($a,{class:"w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay??!0,loop:t.data.video.loop??!0,muted:t.data.video.muted??!0,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"])])):t.data.image?(U(),J("img",{key:1,src:t.data.image,class:se(["w-full h-full object-cover reveal-img scale-110 origin-center",e.value?"opacity-100":"opacity-0"]),style:{transition:"opacity var(--lumina-transition-duration) var(--lumina-transition-easing)"},alt:"Slide Image",onLoad:i[0]||(i[0]=o=>e.value=!0),onError:i[1]||(i[1]=o=>{e.value=!0,o.target.src="https://placehold.co/1920x1080/1a1a1a/666?text=Image+Not+Found"})},null,42,Fx)):Se("",!0)],2),O("div",{class:se(["relative z-10 w-full lg:w-1/2 min-h-[60vh] flex flex-col justify-center order-2",t.data.imageSide==="right"?"lg:mr-[50%]":"lg:ml-[50%]",t.data.sizing==="container"?"lg:min-h-full":"lg:min-h-screen"]),style:Oe(n.value)},[O("div",Nx,[t.data.tag?(U(),J("span",Mx,ie(t.data.tag),1)):Se("",!0),O("h1",Lx,ie(t.data.title),1),O("div",Zx,[(U(!0),J(Fe,null,yr(t.data.paragraphs,(o,s)=>(U(),J("p",{key:s},ie(o),1))),128))]),t.data.cta?(U(),J("div",jx,[O("button",{onClick:i[2]||(i[2]=o=>r.$emit("action",{type:"cta",label:t.data.cta})),class:"font-bold flex items-center",style:{backgroundColor:"var(--lumina-color-primary)",color:"var(--lumina-color-background)",borderRadius:"var(--lumina-button-radius)",padding:"var(--lumina-button-padding)",fontWeight:"var(--lumina-button-font-weight)",gap:"var(--lumina-space-sm)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"}},[iu(ie(t.data.cta)+" ",1),i[4]||(i[4]=O("i",{class:"fa-solid fa-arrow-right"},null,-1))])])):Se("",!0)])],6)],2)]),_:1},8,["data"]))}}),Ux={class:"reveal-up text-center lg:text-left max-w-6xl",style:{marginBottom:"var(--lumina-space-2xl)"}},Vx=Ee({__name:"LayoutFeatures",props:{data:{}},setup(t){return(e,n)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[O("div",Ux,[O("h2",{class:"font-bold",style:Oe({fontFamily:"var(--lumina-font-heading)",fontSize:t.data.sizing==="container"?"var(--lumina-text-3xl)":"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"})},ie(t.data.title),5),t.data.description?(U(),J("p",{key:0,style:Oe({color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-xl)"})},ie(t.data.description),5)):Se("",!0)]),O("div",{style:Oe({display:"grid",gridTemplateColumns:t.data.sizing==="container"?"1fr":"repeat(auto-fit, minmax(300px, 1fr))",gap:t.data.sizing==="container"?"var(--lumina-space-md)":"var(--lumina-space-lg)"})},[(U(!0),J(Fe,null,yr(t.data.features,(r,i)=>(U(),J("div",{key:i,class:"glass-panel reveal-card group",style:Oe({borderRadius:"var(--lumina-card-radius)",padding:t.data.sizing==="container"?"var(--lumina-space-lg)":"var(--lumina-card-padding)",borderTop:"1px solid var(--lumina-color-border-subtle)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},[O("div",{class:"flex items-center justify-center group-hover:scale-110",style:Oe({color:"white",background:"linear-gradient(135deg, var(--lumina-color-primary) 0%, var(--lumina-color-secondary) 100%)",width:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",height:t.data.sizing==="container"?"var(--lumina-space-xl)":"var(--lumina-space-2xl)",borderRadius:"var(--lumina-radius-xl)",marginBottom:t.data.sizing==="container"?"var(--lumina-space-md)":"var(--lumina-space-lg)",fontSize:"var(--lumina-text-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.3)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)"})},[O("i",{class:se(["fa-solid",(r.icon||"star").startsWith("fa-")?r.icon:`fa-${r.icon||"star"}`])},null,2)],4),O("h3",{class:"font-bold",style:Oe({color:"var(--lumina-surface-text, var(--lumina-color-text))",fontSize:t.data.sizing==="container"?"var(--lumina-text-lg)":"var(--lumina-text-2xl)",marginBottom:"var(--lumina-space-sm)"})},ie(r.title),5),O("p",{style:Oe({color:"var(--lumina-surface-muted, var(--lumina-color-muted))",fontSize:t.data.sizing==="container"?"var(--lumina-text-sm)":"var(--lumina-text-base)",lineHeight:"var(--lumina-leading-relaxed)"})},ie(r.desc),5)],4))),128))],4)],2)]),_:1},8,["data"]))}}),Wx={class:"text-center mb-16 reveal-up"},Hx={class:"font-bold mb-4",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",lineHeight:"var(--lumina-leading-tight)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},Jx={key:0,style:{color:"var(--lumina-color-muted-safe, var(--lumina-color-muted))",fontSize:"var(--lumina-text-xl)",opacity:.8}},Gx={class:"relative max-w-6xl mx-auto w-full"},Kx={style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-2xl)"}},qx={class:"font-bold uppercase mb-1",style:{color:"var(--lumina-color-primary)",letterSpacing:"var(--lumina-tracking-widest)",fontSize:"var(--lumina-text-sm)"}},Yx={class:"font-bold",style:{fontSize:"var(--lumina-text-2xl)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},Xx={class:"leading-relaxed",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)"}},Qx=Ee({__name:"LayoutTimeline",props:{data:{}},setup(t){return(e,n)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[O("div",Wx,[O("h2",Hx,ie(t.data.title),1),t.data.subtitle?(U(),J("p",Jx,ie(t.data.subtitle),1)):Se("",!0)]),O("div",Gx,[n[1]||(n[1]=O("div",{class:"absolute left-4 md:left-1/2 top-0 bottom-0 -translate-x-1/2 reveal-zoom origin-top",style:{width:"var(--lumina-timeline-line-width, 2px)",backgroundColor:"var(--lumina-timeline-line-color, var(--lumina-color-border))"}},null,-1)),O("div",Kx,[(U(!0),J(Fe,null,yr(t.data.timeline,(r,i)=>(U(),J("div",{key:i,class:se(["relative flex flex-col md:flex-row gap-8 md:gap-0 items-start md:items-center reveal-card",i%2===0?"":"md:flex-row-reverse"])},[O("div",{class:se(["w-full md:w-1/2 pl-12 md:pl-0 flex flex-col justify-center",i%2===0?"md:pr-12 md:text-right md:items-end":"md:pl-12 md:text-left md:items-start"])},[O("span",qx,ie(r.date),1),O("h3",Yx,ie(r.title||r.t),1)],2),n[0]||(n[0]=O("div",{class:"absolute left-4 md:left-1/2 -translate-x-1/2 rounded-full z-10 animate-pulse-glow",style:{width:"var(--lumina-timeline-node-size, 0.875rem)",height:"var(--lumina-timeline-node-size, 0.875rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",border:"3px solid var(--lumina-color-background)"}},null,-1)),O("div",{class:se(["w-full md:w-1/2 pl-12 md:pl-0",i%2===0?"md:pl-12":"md:pr-12 md:text-right"])},[O("p",Xx,ie(r.description||r.desc),1)],2)],2))),128))])])],2)]),_:1},8,["data"]))}}),e1={class:"text-center reveal-up max-w-4xl mx-auto",style:{marginBottom:"var(--lumina-space-2xl)"}},t1={class:"font-bold",style:{fontFamily:"var(--lumina-font-heading)",fontSize:"var(--lumina-text-5xl)",marginBottom:"var(--lumina-space-md)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},n1={key:0,style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9,fontSize:"var(--lumina-text-xl)"}},r1={style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))",gap:"var(--lumina-space-xl)",maxWidth:"72rem",margin:"0 auto",width:"100%"}},i1={style:{display:"flex",alignItems:"center",gap:"var(--lumina-space-md)",marginBottom:"var(--lumina-space-md)"}},o1={class:"flex items-center justify-center font-bold",style:{width:"var(--lumina-step-badge-size, 2.5rem)",height:"var(--lumina-step-badge-size, 2.5rem)",fontSize:"var(--lumina-step-font-size, 1rem)",background:"linear-gradient(135deg, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"white",borderRadius:"var(--lumina-radius-xl)",boxShadow:"0 4px 12px rgba(var(--lumina-color-primary-rgb), 0.4)"}},s1={class:"font-bold",style:{fontSize:"var(--lumina-text-xl)",color:"var(--lumina-surface-text, var(--lumina-color-text))"}},a1={key:0,style:{color:"var(--lumina-surface-muted, var(--lumina-color-muted))",lineHeight:"var(--lumina-leading-relaxed)",fontSize:"var(--lumina-text-base)"}},l1={key:1,class:"absolute top-4 right-4",style:{color:"var(--lumina-color-primary)",opacity:.1,fontSize:"var(--lumina-text-4xl)"}},u1=Ee({__name:"LayoutSteps",props:{data:{}},setup(t){return(e,n)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["w-full flex flex-col justify-center",t.data.sizing==="container"?"min-h-full py-12 lg:py-16":"min-h-screen"]),style:{padding:"var(--lumina-space-xl) var(--lumina-space-3xl)"}},[O("div",e1,[O("h2",t1,ie(t.data.title),1),t.data.subtitle?(U(),J("p",n1,ie(t.data.subtitle),1)):Se("",!0)]),O("div",r1,[(U(!0),J(Fe,null,yr(t.data.steps,(r,i)=>(U(),J("div",{key:i,class:"glass-panel reveal-card group relative overflow-hidden",style:{borderRadius:"var(--lumina-card-radius)",padding:"var(--lumina-card-padding)"}},[O("div",i1,[O("div",o1,ie(r.step),1),O("h3",s1,ie(r.title),1)]),r.description?(U(),J("p",a1,ie(r.description),1)):Se("",!0),r.icon?(U(),J("div",l1,[O("i",{class:se(["fa-solid",r.icon.startsWith("fa-")?r.icon:`fa-${r.icon}`])},null,2)])):Se("",!0)]))),128))])],2)]),_:1},8,["data"]))}}),c1=["src","alt"],f1=Ee({__name:"FlexImage",props:{src:{},alt:{},fill:{type:Boolean},rounded:{},containerClass:{},containerStyle:{}},setup(t){const e=t,n=be(!1),r=()=>{n.value=!0},i=s=>{n.value=!0,s.target.src="https://placehold.co/800x600/1a1a1a/666?text=Image+Not+Found"},o=le(()=>e.fill!==!1&&!e.rounded?"":{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl",full:"rounded-full"}[e.rounded||"lg"]||"rounded-lg");return(s,a)=>(U(),J("div",{class:se(t.containerClass),style:Oe(t.containerStyle)},[O("img",{src:t.src,alt:t.alt||"",class:se(["w-full h-full transition-opacity duration-700",t.fill!==!1?"object-cover":"object-contain",o.value,n.value?"opacity-100":"opacity-0"]),onLoad:r,onError:i},null,42,c1)],6))}}),d1=Fo(Ee({__name:"LayoutFlex",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=e,i={none:"var(--lumina-space-none, 0)",xs:"var(--lumina-space-xs)",sm:"var(--lumina-space-sm)",md:"var(--lumina-space-md)",lg:"var(--lumina-space-lg)",xl:"var(--lumina-space-xl)","2xl":"var(--lumina-space-2xl)"},o={auto:"auto",quarter:"25%",third:"33.333%",half:"50%","two-thirds":"66.666%","three-quarters":"75%",full:"100%"},s={top:"flex-start",center:"center",bottom:"flex-end"},a={left:"flex-start",center:"center",right:"flex-end"},l=le(()=>({padding:i[n.data.padding||"none"]})),c=le(()=>n.data.direction==="vertical"?"flex-col":"flex-row"),u=le(()=>({gap:i[n.data.gap||"none"]})),f=S=>!S||S==="auto"?"flex-1":"",d=S=>{const N=S.size||"auto";return N==="auto"?{flex:"1 1 auto"}:{flex:`0 0 ${o[N]}`,maxWidth:n.data.direction!=="vertical"?o[N]:void 0,maxHeight:n.data.direction==="vertical"?o[N]:void 0}},h=S=>{const N=S.valign||"center",T=S.halign||"left",B=S.gap||"md",H=S.padding||"lg",K=S.size||"auto";return{flex:K==="auto"?"1 1 auto":`0 0 ${o[K]}`,justifyContent:s[N],alignItems:a[T],gap:i[B],padding:i[H]}},m=()=>({display:"flex",alignItems:"center",padding:i.lg}),p=(S,N)=>N!==!1&&!S?"w-full h-full":{none:"w-full h-full rounded-none",sm:"w-full h-full rounded-sm",md:"w-full h-full rounded-md",lg:"w-full h-full rounded-lg",xl:"w-full h-full rounded-xl",full:"w-full h-full rounded-full"}[S||"lg"]||"w-full h-full rounded-lg",b=S=>{r("action",S),bn.emit("action",S)},x=Ee({props:["text","size","align"],setup(S){const T={lg:"var(--lumina-text-3xl)",xl:"var(--lumina-text-4xl)","2xl":"var(--lumina-text-5xl)","3xl":"var(--lumina-text-6xl)"}[S.size||"xl"]||"var(--lumina-text-4xl)",B=S.align||"left";return()=>ye("h2",{style:{fontFamily:"var(--lumina-font-heading)",fontWeight:"var(--lumina-font-weight-bold)",lineHeight:"var(--lumina-leading-tight)",fontSize:T,textAlign:B,width:"100%",color:"var(--lumina-color-text-safe, var(--lumina-color-text))"}},S.text)}}),k=Ee({props:["text","align","muted"],setup(S){return()=>ye("p",{style:{fontSize:"var(--lumina-text-lg)",lineHeight:"var(--lumina-leading-relaxed)",color:S.muted?"var(--lumina-color-muted)":"var(--lumina-color-text-secondary)",opacity:S.muted?.9:1,textAlign:S.align||"left",width:"100%"}},S.text)}}),z=Ee({props:["items"],setup(S){return()=>ye("ul",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"}},(S.items||[]).map(N=>ye("li",{style:{display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9}},[ye("span",{style:{width:"var(--lumina-space-sm)",height:"var(--lumina-space-sm)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginTop:"var(--lumina-space-sm)",flexShrink:0,boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"}}),ye("span",{},N)])))}}),y=Ee({props:["items"],setup(S){return()=>ye("ol",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-sm)",width:"100%"}},(S.items||[]).map((N,T)=>ye("li",{style:{display:"flex",alignItems:"flex-start",gap:"var(--lumina-space-sm)",fontSize:"var(--lumina-text-lg)",color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.9}},[ye("span",{style:{width:"var(--lumina-space-xl)",height:"var(--lumina-space-xl)",borderRadius:"var(--lumina-radius-lg)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.1)",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"var(--lumina-text-sm)",fontWeight:"var(--lumina-font-weight-bold)",flexShrink:0}},T+1),ye("span",{},N)])))}}),w=Ee({props:["label","action","variant","fullWidth"],emits:["action"],setup(S,{emit:N}){const T=H=>{const K={primary:{background:"linear-gradient(to right, var(--lumina-color-primary), var(--lumina-color-secondary))",color:"var(--lumina-color-text)",boxShadow:"0 var(--lumina-space-xs) var(--lumina-space-lg) var(--lumina-shadow-color)"},secondary:{backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.1)",color:"var(--lumina-color-text)",border:"1px solid var(--lumina-color-border)"},outline:{backgroundColor:"transparent",color:"var(--lumina-color-text)",border:"2px solid var(--lumina-color-border)"},ghost:{backgroundColor:"transparent",color:"var(--lumina-color-muted)"}};return K[H]||K.primary},B=()=>{N("action",{type:"click",label:S.label,value:S.action||S.label,origin:"flex-button"})};return()=>ye("button",{style:{padding:"var(--lumina-button-padding)",borderRadius:"var(--lumina-button-radius)",fontWeight:"var(--lumina-button-font-weight)",fontSize:"var(--lumina-text-lg)",transition:"all var(--lumina-transition-duration) var(--lumina-transition-easing)",cursor:"pointer",width:S.fullWidth?"100%":"auto",...T(S.variant||"primary")},onClick:B},S.label)}}),E=Ee({props:["items","compact"],setup(S){return()=>ye("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(S.items||[]).map(N=>ye("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",borderLeft:"var(--lumina-timeline-line-width) solid rgba(var(--lumina-color-primary-rgb), 0.3)",paddingLeft:"var(--lumina-space-md)"}},[ye("div",{style:{flexShrink:0,width:"calc(var(--lumina-timeline-node-size) * 0.75)",height:"calc(var(--lumina-timeline-node-size) * 0.75)",borderRadius:"var(--lumina-radius-full)",backgroundColor:"var(--lumina-color-primary)",marginLeft:"calc(-1 * var(--lumina-space-md) - var(--lumina-timeline-line-width) / 2 - var(--lumina-timeline-node-size) * 0.375)",marginTop:"var(--lumina-space-xs)",boxShadow:"0 0 var(--lumina-space-sm) rgba(var(--lumina-color-primary-rgb), 0.5)"}}),ye("div",{},[ye("span",{style:{fontSize:"var(--lumina-text-xs)",color:"var(--lumina-color-primary)",fontWeight:"var(--lumina-font-weight-bold)",textTransform:"uppercase",letterSpacing:"var(--lumina-tracking-wider)"}},N.date),ye("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)",fontSize:"var(--lumina-text-lg)"}},N.title||N.t),ye("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},N.description||N.desc)])])))}}),A=Ee({props:["items","compact"],setup(S){return()=>ye("div",{style:{display:"flex",flexDirection:"column",gap:"var(--lumina-space-md)",width:"100%"}},(S.items||[]).map(N=>ye("div",{style:{display:"flex",gap:"var(--lumina-space-md)",alignItems:"flex-start",padding:"var(--lumina-space-md)",borderRadius:"var(--lumina-radius-lg)",backgroundColor:"rgba(var(--lumina-color-text-rgb), 0.05)",border:"1px solid var(--lumina-color-border)"}},[ye("div",{style:{flexShrink:0,width:"var(--lumina-step-badge-size)",height:"var(--lumina-step-badge-size)",borderRadius:"var(--lumina-radius-lg)",background:"linear-gradient(135deg, rgba(var(--lumina-color-primary-rgb), 0.2), rgba(var(--lumina-color-secondary-rgb), 0.2))",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:"var(--lumina-font-weight-bold)",color:"var(--lumina-color-primary)"}},N.step),ye("div",{},[ye("h4",{style:{fontWeight:"var(--lumina-font-weight-bold)"}},N.title||N.t),ye("p",{style:{fontSize:"var(--lumina-text-sm)",color:"var(--lumina-color-muted)",opacity:.6}},N.description||N.desc)])])))}}),P=Ee({props:["size"],setup(S){const N=i[S.size||"md"]||i.md;return()=>ye("div",{style:{height:N,width:"100%"}})}}),_=S=>({title:x,text:k,bullets:z,ordered:y,button:w,timeline:E,stepper:A,spacer:P})[S]||"div";return(S,N)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:"flex-layout w-full min-h-screen flex items-center justify-center",style:Oe(l.value)},[O("div",{class:se(["flex w-full h-full max-w-7xl mx-auto",c.value]),style:Oe(u.value)},[(U(!0),J(Fe,null,yr(t.data.elements,(T,B)=>(U(),J(Fe,{key:B},[T.type==="image"?(U(),qe(f1,{key:0,src:T.src,alt:T.alt,fill:T.fill,rounded:T.rounded,"container-class":f(T.size),"container-style":d(T)},null,8,["src","alt","fill","rounded","container-class","container-style"])):T.type==="video"?(U(),J("div",{key:1,class:se(f(T.size)),style:Oe(d(T))},[Ne($a,{class:se(p(T.rounded,T.fill)),src:T.src,poster:T.poster,autoplay:T.autoplay??!1,loop:T.loop??!1,muted:T.muted??!1,controls:T.controls??!0,"object-fit":T.fill!==!1?"cover":"contain"},null,8,["class","src","poster","autoplay","loop","muted","controls","object-fit"])],6)):T.type==="content"?(U(),J("div",{key:2,class:se(["flex flex-col",f(T.size)]),style:Oe(h(T))},[(U(!0),J(Fe,null,yr(T.elements,(H,K)=>(U(),qe(eo(_(H.type)),_s({key:K,ref_for:!0},H,{onAction:b}),null,16))),128))],6)):(U(),J("div",{key:3,class:se(f(T.size)),style:Oe(m())},[(U(),qe(eo(_(T.type)),_s({ref_for:!0},T,{onAction:b}),null,16))],6))],64))),128))],6)],4)]),_:1},8,["data"]))}}),[["__scopeId","data-v-86166559"]]),h1=Ee({__name:"LayoutAuto",props:{data:{}},emits:["action"],setup(t,{emit:e}){const n=t,r=le(()=>{var f,d,h,m;const i=n.data||{},o=Array.isArray(i.timeline)&&i.timeline.length>0,s=Array.isArray(i.steps)&&i.steps.length>0,a=Array.isArray(i.features)&&i.features.length>0,l=!!i.image,c=!!i.chartType&&!!((f=i.data)!=null&&f.datasets);let u="layout-statement";return c?u="layout-chart":o?u="layout-timeline":s?u="layout-steps":a?u="layout-features":l?u="layout-half":(((d=i.title)==null?void 0:d.length)||0)+(((h=i.subtitle)==null?void 0:h.length)||0)+(((m=i.paragraphs)==null?void 0:m.join("").length)||0),u});return(i,o)=>(U(),qe(eo(r.value),{data:t.data,onAction:o[0]||(o[0]=s=>i.$emit("action",s))},null,40,["data"]))}}),p1=["innerHTML"],m1=Fo(Ee({__name:"LayoutCustom",props:{data:{}},setup(t){const e=t,n=`custom-slide-${Math.random().toString(36).slice(2,10)}`;function r(){if(i(),!e.data.css)return;const s=document.createElement("style");s.id=n,s.textContent=e.data.css,document.head.appendChild(s)}function i(){const s=document.getElementById(n);s&&s.remove()}$n(()=>{r()}),hn(()=>e.data.css,()=>{r()}),qn(()=>{i()});const o=le(()=>e.data.html?e.data.html.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"").replace(/on\w+\s*=\s*["'][^"']*["']/gi,"").replace(/javascript:/gi,""):"");return(s,a)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["custom-slide-wrapper relative w-full overflow-hidden",t.data.sizing==="container"?"h-full":"min-h-screen"])},[O("div",{class:"custom-html-content w-full h-full",innerHTML:o.value},null,8,p1)],2)]),_:1},8,["data"]))}}),[["__scopeId","data-v-b8b91621"]]),g1={key:0,class:"text-center mb-8 reveal-up"},_1={key:0,class:"text-4xl lg:text-5xl font-heading font-bold mb-3",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",textShadow:"0 2px 10px rgba(0,0,0,0.1)"}},v1={key:1,class:"text-lg lg:text-xl",style:{color:"var(--lumina-color-text-safe, var(--lumina-color-text))",opacity:.8}},b1={key:1,class:"flex-1 flex items-center justify-center"},y1={key:2,class:"flex-1 flex items-center justify-center"},x1={key:3,class:"flex-1 flex items-center justify-center reveal-zoom max-w-5xl mx-auto w-full"},w1={class:"w-full h-full min-h-[300px] lg:min-h-[400px] relative"},S1=Ee({__name:"LayoutChart",props:{data:{}},setup(t){let e=null;const n=be(null),r=be(!0),i=t,o=be(null);let s=null;const a=async()=>{try{const d=await import("chart.js");return e=d.Chart,e.register(...d.registerables),r.value=!1,!0}catch{return n.value="Chart.js is required for chart slides. Install it with: npm install chart.js",r.value=!1,console.warn("[Lumina] chart.js not found. Install with: npm install chart.js"),!1}},l=(d,h)=>{if(!d){const m=["rgba(59, 130, 246, 0.8)","rgba(16, 185, 129, 0.8)","rgba(245, 158, 11, 0.8)","rgba(239, 68, 68, 0.8)","rgba(139, 92, 246, 0.8)","rgba(236, 72, 153, 0.8)"];return m[h%m.length]}switch(d){case"c:p":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-primary").trim()||"#3b82f6";case"c:s":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-secondary").trim()||"#10b981";case"c:m":return getComputedStyle(document.documentElement).getPropertyValue("--lumina-colors-muted").trim()||"#9ca3af";default:return d&&(d.startsWith("#")||d.startsWith("rgb")||d.startsWith("hsl"))||d&&/^[a-z]+$/i.test(d)?d:l(void 0,h)}},c=(d,h)=>{var w;const m=[],p=getComputedStyle(document.body),b=p.getPropertyValue("--lumina-color-primary").trim()||"#3b82f6",x=p.getPropertyValue("--lumina-color-secondary").trim()||"#8b5cf6",k=p.getPropertyValue("--lumina-color-accent").trim()||"#06b6d4",y=[...[b,x,k],"#f59e0b","#10b981","#ef4444"];for(let E=0;E<h;E++)d.length===1&&d[0].color&&h>1?m.push(y[E%y.length]):(w=d[0])!=null&&w.color?m.push(l(d[0].color,E)):m.push(y[E%y.length]);return m},u=le(()=>{const{chartType:d,data:h}=i.data,m=d==="pie"||d==="doughnut";return{type:d,data:{labels:h.labels,datasets:h.datasets.map((p,b)=>({label:p.label,data:p.values,backgroundColor:m?c(h.datasets,h.labels.length):l(p.color,b),borderColor:m?"rgba(0, 0, 0, 0.2)":l(p.color,b),borderWidth:2,tension:d==="line"?.4:0,fill:d==="line"?!1:void 0}))},options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0,position:"bottom",labels:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-text").trim()||"#ffffff",padding:20,font:{family:"Inter, system-ui, sans-serif",size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",titleColor:"#fff",bodyColor:"rgba(255, 255, 255, 0.8)",padding:12,cornerRadius:8,titleFont:{family:"Inter, system-ui, sans-serif",weight:"bold"},bodyFont:{family:"Inter, system-ui, sans-serif"}}},scales:m?{}:{x:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-muted").trim()||"#9ca3af",font:{family:"Inter, system-ui, sans-serif"}}},y:{grid:{color:"rgba(128, 128, 128, 0.1)"},ticks:{color:getComputedStyle(document.body).getPropertyValue("--lumina-color-muted").trim()||"#9ca3af",font:{family:"Inter, system-ui, sans-serif"}}}}}}}),f=()=>{if(!o.value||!e)return;s&&s.destroy();const d=o.value.getContext("2d");d&&(s=new e(d,u.value))};return $n(async()=>{await a()&&setTimeout(f,50)}),qn(()=>{s&&(s.destroy(),s=null)}),hn(()=>i.data,()=>{f()},{deep:!0}),(d,h)=>(U(),qe(Vn,{data:t.data},{default:Ot(()=>[O("div",{class:se(["w-full flex flex-col justify-center p-8 lg:p-16",t.data.sizing==="container"?"min-h-full py-8":"min-h-screen"])},[t.data.title||t.data.subtitle?(U(),J("div",g1,[t.data.title?(U(),J("h2",_1,ie(t.data.title),1)):Se("",!0),t.data.subtitle?(U(),J("p",v1,ie(t.data.subtitle),1)):Se("",!0)])):Se("",!0),n.value?(U(),J("div",b1,[...h[0]||(h[0]=[O("div",{class:"text-center p-8 bg-red-500/10 border border-red-500/30 rounded-xl max-w-lg"},[O("svg",{class:"w-12 h-12 mx-auto mb-4 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[O("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})]),O("p",{class:"text-red-300 font-medium mb-2"},"Chart.js Required"),O("code",{class:"text-sm bg-black/30 px-3 py-1 rounded text-red-200"},"npm install chart.js")],-1)])])):r.value?(U(),J("div",y1,[...h[1]||(h[1]=[O("div",{class:"animate-pulse text-white/40"},"Loading chart...",-1)])])):(U(),J("div",x1,[O("div",w1,[O("canvas",{ref_key:"chartCanvas",ref:o},null,512)])]))],2)]),_:1},8,["data"]))}}),k1={class:"h-full w-full flex items-center justify-center bg-black relative overflow-hidden group"},T1={key:0,class:"absolute bottom-12 left-12 z-10 px-6 py-4 bg-black/50 backdrop-blur-md rounded-2xl border border-white/10 opacity-0 group-hover:opacity-100 transition-opacity duration-500"},z1={class:"text-white font-bold text-xl"},C1=Ee({__name:"LayoutVideo",props:{data:{type:Object,required:!0}},setup(t){return(e,n)=>(U(),J("div",k1,[Ne($a,{class:"absolute inset-0 w-full h-full",src:t.data.video.src,poster:t.data.video.poster,autoplay:t.data.video.autoplay,loop:t.data.video.loop,muted:t.data.video.muted,controls:t.data.video.controls,"object-fit":"cover"},null,8,["src","poster","autoplay","loop","muted","controls"]),t.data.title?(U(),J("div",T1,[O("h2",z1,ie(t.data.title),1)])):Se("",!0)]))}}),Oa={default:{colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",gradientFrom:"#3b82f6",gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"}},effects:{useGradients:!0,useGlass:!0,useOrb:!0,useShadows:!0}},ocean:{colors:{primary:"#06b6d4",secondary:"#0ea5e9",accent:"#22d3ee",background:"#0f172a",surface:"#1e293b",text:"#f0f9ff",textSecondary:"#e0f2fe",muted:"#94a3b8",success:"#14b8a6",warning:"#fb923c",danger:"#f43f5e",info:"#38bdf8",border:"rgba(148, 163, 184, 0.2)",gradientFrom:"#06b6d4",gradientTo:"#0ea5e9"},typography:{fontFamily:{heading:"Outfit, Inter, sans-serif",body:"Inter, system-ui, sans-serif"}},effects:{orbOpacity:.3,glassOpacity:.05}},midnight:{colors:{primary:"#6366f1",secondary:"#8b5cf6",accent:"#a78bfa",background:"#000000",surface:"#0a0a0f",text:"#e0e7ff",textSecondary:"#c7d2fe",muted:"#6b7280",success:"#10b981",warning:"#fbbf24",danger:"#f87171",info:"#60a5fa",border:"rgba(99, 102, 241, 0.2)",gradientFrom:"#6366f1",gradientTo:"#a855f7"},effects:{orbOpacity:.5,shadowIntensity:"lg"}},forest:{colors:{primary:"#10b981",secondary:"#059669",accent:"#34d399",background:"#022c22",surface:"#064e3b",text:"#ecfdf5",textSecondary:"#d1fae5",muted:"#6ee7b7",success:"#22c55e",warning:"#fbbf24",danger:"#ef4444",info:"#38bdf8",border:"rgba(52, 211, 153, 0.2)",gradientFrom:"#10b981",gradientTo:"#059669"},effects:{orbOpacity:.35,orbBlur:"150px"}},cyber:{colors:{primary:"#f472b6",secondary:"#e879f9",accent:"#22d3ee",background:"#18181b",surface:"#27272a",text:"#ffffff",textSecondary:"#fafafa",muted:"#a1a1aa",success:"#4ade80",warning:"#facc15",danger:"#f87171",info:"#38bdf8",border:"rgba(244, 114, 182, 0.3)",gradientFrom:"#f472b6",gradientTo:"#e879f9"},typography:{fontFamily:{heading:"Orbitron, sans-serif",body:"Rajdhani, sans-serif"},letterSpacing:{widest:"0.15em"}},effects:{orbOpacity:.6,shadowIntensity:"xl",shadowColor:"rgba(244, 114, 182, 0.3)"},components:{cardRadius:"0.5rem",buttonRadius:"0.5rem"}},latte:{colors:{primary:"#d97706",secondary:"#ea580c",accent:"#f59e0b",background:"#fffbeb",surface:"#fef3c7",text:"#451a03",textSecondary:"#78350f",muted:"#92400e",success:"#16a34a",warning:"#ca8a04",danger:"#dc2626",info:"#2563eb",border:"rgba(146, 64, 14, 0.2)",shadow:"rgba(120, 53, 15, 0.1)",gradientFrom:"#d97706",gradientTo:"#ea580c"},typography:{fontFamily:{heading:"Playfair Display, Georgia, serif",body:"Lato, system-ui, sans-serif"}},effects:{useOrb:!1,glassOpacity:.5,glassBorderOpacity:.15,shadowColor:"rgba(120, 53, 15, 0.15)"},components:{cardBackground:"rgba(255, 255, 255, 0.7)"}},sunset:{colors:{primary:"#f97316",secondary:"#f43f5e",accent:"#fb7185",background:"#1c1917",surface:"#292524",text:"#fafaf9",textSecondary:"#e7e5e4",muted:"#a8a29e",gradientFrom:"#f97316",gradientTo:"#f43f5e"},effects:{orbOpacity:.45,gradientDirection:"to-br"}},monochrome:{colors:{primary:"#ffffff",secondary:"#a1a1aa",accent:"#d4d4d8",background:"#09090b",surface:"#18181b",text:"#fafafa",textSecondary:"#e4e4e7",muted:"#71717a",border:"rgba(255, 255, 255, 0.1)",gradientFrom:"#ffffff",gradientTo:"#a1a1aa"},effects:{useGradients:!1,orbOpacity:.2}}},No={colors:{primary:"#3b82f6",secondary:"#8b5cf6",accent:"#06b6d4",background:"#030303",surface:"#0a0a0a",text:"#ffffff",textSecondary:"#e5e7eb",muted:"#9ca3af",success:"#10b981",warning:"#f59e0b",danger:"#ef4444",info:"#3b82f6",border:"rgba(255, 255, 255, 0.1)",borderSubtle:"rgba(255, 255, 255, 0.05)",shadow:"#000000",overlay:"rgba(0, 0, 0, 0.5)",highlight:"rgba(59, 130, 246, 0.2)",buttonPrimary:"#3b82f6",buttonPrimaryText:"#ffffff",buttonSecondary:"rgba(255, 255, 255, 0.1)",buttonSecondaryText:"#ffffff",link:"#3b82f6",linkHover:"#60a5fa",gradientFrom:"#3b82f6",gradientVia:void 0,gradientTo:"#8b5cf6"},typography:{fontFamily:{heading:"Inter, system-ui, sans-serif",body:"Inter, system-ui, sans-serif",mono:"ui-monospace, SFMono-Regular, monospace"},fontSize:{xs:"0.75rem",sm:"0.875rem",base:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem"},fontWeight:{light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800},lineHeight:{tight:"1.1",snug:"1.25",normal:"1.5",relaxed:"1.625",loose:"2"},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},spacing:{none:"0",xs:"0.25rem",sm:"0.5rem",md:"1rem",lg:"1.5rem",xl:"2rem","2xl":"3rem","3xl":"4rem","4xl":"6rem"},borderRadius:{none:"0",sm:"0.25rem",md:"0.5rem",lg:"0.75rem",xl:"1rem","2xl":"1.5rem","3xl":"2rem",full:"9999px"},effects:{useGradients:!0,gradientDirection:"to-b",gradientFrom:void 0,gradientVia:void 0,gradientTo:void 0,useShadows:!0,shadowIntensity:"md",shadowColor:"rgba(0, 0, 0, 0.4)",useGlass:!0,glassOpacity:.12,glassBlur:"20px",glassBorderOpacity:.2,useOrb:!0,orbOpacity:.2,orbBlur:"120px",orbSize:"80vw",animationsEnabled:!0,transitionDuration:"0.3s",transitionEasing:"cubic-bezier(0.16, 1, 0.3, 1)",hoverScale:1.05},components:{buttonRadius:"9999px",buttonPadding:"0.75rem 1.5rem",buttonFontWeight:700,buttonTextTransform:"none",cardRadius:"1.5rem",cardPadding:"2rem",cardBorderWidth:"1px",cardBackground:void 0,timelineNodeSize:"1rem",timelineLineWidth:"2px",timelineNodeColor:void 0,timelineLineColor:void 0,stepBadgeSize:"2.5rem",stepFontSize:"1rem",progressHeight:"0.5rem",progressRadius:"9999px",progressBackground:"rgba(255, 255, 255, 0.1)",progressFill:void 0,tagPadding:"0.25rem 1rem",tagRadius:"9999px",tagFontSize:"0.75rem",inputRadius:"0.5rem",inputPadding:"0.75rem 1rem",inputBorder:void 0,inputFocusBorder:void 0},fonts:{}},md="lumina-theme-styles";function Mo(t,e){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=e[r],o=t[r];i!=null&&typeof i=="object"&&!Array.isArray(i)&&typeof o=="object"&&!Array.isArray(o)?n[r]=Mo(o,i):i!==void 0&&(n[r]=i)}return n}class Ea{static inject(e,n){var s;let r;if(typeof e=="string"){const a=Oa[e]||Oa.default;r=Mo(No,a)}else r=Mo(No,e);n&&(r=Mo(r,n)),r.fonts&&!((s=r.typography)!=null&&s.fontFamily)&&(r.typography=r.typography||{},r.typography.fontFamily={heading:r.fonts.heading,body:r.fonts.body,mono:r.fonts.mono});let i=document.getElementById(md);i||(i=document.createElement("style"),i.id=md,document.head.appendChild(i));const o=this.generateVars(r);i.innerHTML=`:root { ${o} }`}static getDefaultTheme(){return No}static generateVars(e){var i,o,s,a;const n=[];if(e.colors){for(const[l,c]of Object.entries(e.colors))if(c){const u=this.camelToKebab(l);n.push(`--lumina-color-${u}: ${c};`);const f=this.hexToRgb(c);f&&n.push(`--lumina-color-${u}-rgb: ${f.r}, ${f.g}, ${f.b};`)}}if(e.typography){const l=e.typography;if(l.fontFamily)for(const[c,u]of Object.entries(l.fontFamily))u&&n.push(`--lumina-font-${c}: ${u};`);if(l.fontSize)for(const[c,u]of Object.entries(l.fontSize))u&&n.push(`--lumina-text-${c}: ${u};`);if(l.fontWeight)for(const[c,u]of Object.entries(l.fontWeight))u!==void 0&&n.push(`--lumina-font-weight-${c}: ${u};`);if(l.lineHeight)for(const[c,u]of Object.entries(l.lineHeight))u&&n.push(`--lumina-leading-${c}: ${u};`);if(l.letterSpacing)for(const[c,u]of Object.entries(l.letterSpacing))u&&n.push(`--lumina-tracking-${c}: ${u};`)}if(e.spacing)for(const[l,c]of Object.entries(e.spacing))c&&n.push(`--lumina-space-${l}: ${c};`);if(e.borderRadius)for(const[l,c]of Object.entries(e.borderRadius))c&&n.push(`--lumina-radius-${l}: ${c};`);if(e.effects){const l=e.effects;n.push(`--lumina-use-gradients: ${l.useGradients?1:0};`),n.push(`--lumina-use-shadows: ${l.useShadows?1:0};`),n.push(`--lumina-use-glass: ${l.useGlass?1:0};`),n.push(`--lumina-use-orb: ${l.useOrb?1:0};`),n.push(`--lumina-use-animations: ${l.animationsEnabled?1:0};`),l.gradientDirection&&n.push(`--lumina-gradient-direction: ${this.gradientDirectionToCSS(l.gradientDirection)};`),l.gradientFrom&&n.push(`--lumina-gradient-from: ${l.gradientFrom};`),l.gradientVia&&n.push(`--lumina-gradient-via: ${l.gradientVia};`),l.gradientTo&&n.push(`--lumina-gradient-to: ${l.gradientTo};`),l.shadowIntensity&&n.push(`--lumina-shadow-intensity: ${l.shadowIntensity};`),l.shadowColor&&n.push(`--lumina-shadow-color: ${l.shadowColor};`),l.glassOpacity!==void 0&&n.push(`--lumina-glass-opacity: ${l.glassOpacity};`),l.glassBlur&&n.push(`--lumina-glass-blur: ${l.glassBlur};`),l.glassBorderOpacity!==void 0&&n.push(`--lumina-glass-border-opacity: ${l.glassBorderOpacity};`),l.orbOpacity!==void 0&&n.push(`--lumina-orb-opacity: ${l.orbOpacity};`),l.orbBlur&&n.push(`--lumina-orb-blur: ${l.orbBlur};`),l.orbSize&&n.push(`--lumina-orb-size: ${l.orbSize};`),l.transitionDuration&&n.push(`--lumina-transition-duration: ${l.transitionDuration};`),l.transitionEasing&&n.push(`--lumina-transition-easing: ${l.transitionEasing};`),l.hoverScale!==void 0&&n.push(`--lumina-hover-scale: ${l.hoverScale};`)}if(e.components){const l=e.components;l.buttonRadius&&n.push(`--lumina-button-radius: ${l.buttonRadius};`),l.buttonPadding&&n.push(`--lumina-button-padding: ${l.buttonPadding};`),l.buttonFontWeight!==void 0&&n.push(`--lumina-button-font-weight: ${l.buttonFontWeight};`),l.buttonTextTransform&&n.push(`--lumina-button-text-transform: ${l.buttonTextTransform};`),l.cardRadius&&n.push(`--lumina-card-radius: ${l.cardRadius};`),l.cardPadding&&n.push(`--lumina-card-padding: ${l.cardPadding};`),l.cardBorderWidth&&n.push(`--lumina-card-border-width: ${l.cardBorderWidth};`),l.cardBackground&&n.push(`--lumina-card-background: ${l.cardBackground};`),l.timelineNodeSize&&n.push(`--lumina-timeline-node-size: ${l.timelineNodeSize};`),l.timelineLineWidth&&n.push(`--lumina-timeline-line-width: ${l.timelineLineWidth};`),l.timelineNodeColor&&n.push(`--lumina-timeline-node-color: ${l.timelineNodeColor};`),l.timelineLineColor&&n.push(`--lumina-timeline-line-color: ${l.timelineLineColor};`),l.stepBadgeSize&&n.push(`--lumina-step-badge-size: ${l.stepBadgeSize};`),l.stepFontSize&&n.push(`--lumina-step-font-size: ${l.stepFontSize};`),l.progressHeight&&n.push(`--lumina-progress-height: ${l.progressHeight};`),l.progressRadius&&n.push(`--lumina-progress-radius: ${l.progressRadius};`),l.progressBackground&&n.push(`--lumina-progress-background: ${l.progressBackground};`),l.progressFill&&n.push(`--lumina-progress-fill: ${l.progressFill};`),l.tagPadding&&n.push(`--lumina-tag-padding: ${l.tagPadding};`),l.tagRadius&&n.push(`--lumina-tag-radius: ${l.tagRadius};`),l.tagFontSize&&n.push(`--lumina-tag-font-size: ${l.tagFontSize};`),l.inputRadius&&n.push(`--lumina-input-radius: ${l.inputRadius};`),l.inputPadding&&n.push(`--lumina-input-padding: ${l.inputPadding};`),l.inputBorder&&n.push(`--lumina-input-border: ${l.inputBorder};`),l.inputFocusBorder&&n.push(`--lumina-input-focus-border: ${l.inputFocusBorder};`)}(i=e.colors)!=null&&i.primary&&n.push(`--lumina-colors-primary: ${e.colors.primary};`),(o=e.colors)!=null&&o.background&&n.push(`--lumina-colors-background: ${e.colors.background};`),(s=e.colors)!=null&&s.text&&n.push(`--lumina-colors-text: ${e.colors.text};`),(a=e.colors)!=null&&a.muted&&n.push(`--lumina-colors-muted: ${e.colors.muted};`);const r=this.generateAutoContrastVars(e);return n.push(...r),n.join(" ")}static camelToKebab(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}static gradientDirectionToCSS(e){return{"to-t":"to top","to-b":"to bottom","to-l":"to left","to-r":"to right","to-tl":"to top left","to-tr":"to top right","to-bl":"to bottom left","to-br":"to bottom right"}[e]||"to bottom"}static hexToRgb(e){const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(n,(i,o,s,a)=>o+o+s+s+a+a);const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null}static getLuminance(e){const n=this.hexToRgb(e);if(!n)return 0;const r=a=>{const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)},i=r(n.r),o=r(n.g),s=r(n.b);return .2126*i+.7152*o+.0722*s}static isLightColor(e){return this.getLuminance(e)>.4}static getContrastTextColor(e,n="#1a1a1a",r="#ffffff"){return this.isLightColor(e)?n:r}static getContrastMutedColor(e){return this.isLightColor(e)?"#4b5563":"#9ca3af"}static extractHexColor(e){if(!e)return null;if(e.startsWith("#"))return e.split(" ")[0];if(e.startsWith("rgb")){const r=e.match(/\d+/g);if(r&&r.length>=3){const i=parseInt(r[0]),o=parseInt(r[1]),s=parseInt(r[2]);return"#"+((1<<24)+(i<<16)+(o<<8)+s).toString(16).slice(1)}}const n=e.match(/#[a-fA-F0-9]{3,6}/);return n?n[0]:null}static generateAutoContrastVars(e){var f,d,h;const n=[],r=(f=e.colors)==null?void 0:f.background;if(!r)return n;const i=this.extractHexColor(r);if(!i)return n;const o=this.isLightColor(i),s=o?"#000000":"#ffffff",a=o?"#374151":"#9ca3af",l=o?"#374151":"#d1d5db";n.push(`--lumina-auto-text: ${s};`),n.push(`--lumina-auto-text-secondary: ${l};`),n.push(`--lumina-auto-muted: ${a};`),n.push(`--lumina-auto-is-light: ${o?"1":"0"};`);const c=(d=e.colors)==null?void 0:d.text,u=c?this.extractHexColor(c):null;if(u){const m=this.getLuminance(u),p=this.getLuminance(i);(Math.max(m,p)+.05)/(Math.min(m,p)+.05)<3?(n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`),n.push(`--lumina-color-text: ${s};`),n.push(`--lumina-color-muted: ${a};`),n.push(`--lumina-color-text-secondary: ${l};`)):(n.push(`--lumina-color-text-safe: ${c};`),n.push(`--lumina-color-muted-safe: ${e.colors.muted||a};`))}else n.push(`--lumina-color-text-safe: ${s};`),n.push(`--lumina-color-muted-safe: ${a};`);if(o)n.push("--lumina-color-text-rgb: 0, 0, 0;"),n.push("--lumina-glass-opacity: 0.06;"),n.push("--lumina-glass-border-opacity: 0.15;"),n.push("--lumina-color-surface: #ffffff;"),n.push("--lumina-surface-text: #1a1a1a;"),n.push("--lumina-surface-muted: #4b5563;"),n.push("--lumina-shadow-color: rgba(0, 0, 0, 0.15);"),n.push("--lumina-color-border: rgba(0, 0, 0, 0.12);"),n.push("--lumina-color-border-subtle: rgba(0, 0, 0, 0.08);"),n.push("--lumina-color-muted: #374151;"),n.push("--lumina-color-text-secondary: #1f2937;");else{const m=(h=e.colors)==null?void 0:h.surface;if(m){const p=this.extractHexColor(m);if(p){const b=this.getContrastTextColor(p),x=this.getContrastMutedColor(p);n.push(`--lumina-surface-text: ${b};`),n.push(`--lumina-surface-muted: ${x};`)}}}return n}}class $1{constructor(e,n={}){st(this,"app");st(this,"store");st(this,"speakerWindow",null);st(this,"speakerChannel",null);st(this,"speakerChannelId");st(this,"speakerUnsubscribe",null);this.selector=e,this.speakerChannelId=`lumina-speaker-${Date.now()}-${Math.random().toString(36).slice(2,8)}`,this.store=yb(n),n.theme&&Ea.inject(n.theme),this.app=Fu(pd),this.app.provide(hi,this.store),this.app.provide("LuminaEngine",this),hn(()=>this.store.state.currentIndex,(r,i)=>{var s;const o=(s=this.store.state.deck)==null?void 0:s.slides[r];o&&bn.emit("slideChange",{index:r,previousIndex:i??0,slide:o})}),hn(()=>{var r;return(r=this.store.state.deck)==null?void 0:r.meta},r=>{r&&((r.theme||r.themeConfig)&&Ea.inject(r.theme||"default",r.themeConfig),r.orbColor&&document.documentElement.style.setProperty("--lumina-colors-primary",r.orbColor))},{deep:!0}),this.app.component("layout-statement",Cx),this.app.component("layout-half",Bx),this.app.component("layout-features",Vx),this.app.component("layout-timeline",Qx),this.app.component("layout-steps",u1),this.app.component("layout-flex",d1),this.app.component("layout-auto",h1),this.app.component("layout-custom",m1),this.app.component("layout-chart",S1),this.app.component("layout-video",C1),bn.on("action",r=>{this.store.recordAction(r)}),this.app.mount(this.selector),this.syncSpeakerNotes()}load(e){this.store.loadDeck(e),bn.emit("ready",e),this.syncSpeakerNotes()}patch(e){this.store.patchDeck(e),this.syncSpeakerNotes()}exportState(){const{currentIndex:e,deck:n,actionHistory:r}=this.store.state,i=n==null?void 0:n.slides[e],o=r.map(a=>`User ${a.type}ed on ${a.label||a.value}`).join(" -> "),s=r.length>5?"High Engagement":"Low Engagement";return Object.freeze({status:"active",currentSlide:{index:e,id:(i==null?void 0:i.id)||e,type:i==null?void 0:i.type,title:(i&&"title"in i?i.title:null)||"(No Title)"},narrative:`User is currently on slide ${e+1}. Session Flow: ${o||"Just started"}.`,engagementLevel:s,history:[...r]})}on(e,n){bn.on(e,n)}off(e,n){bn.off(e,n)}destroy(){this.closeSpeakerNotes(),this.app&&this.app.unmount(),bn.clear()}get currentSlideIndex(){return this.store.state.currentIndex}goTo(e){this.store.goto(e),this.syncSpeakerNotes()}next(){this.store.next(),this.syncSpeakerNotes()}prev(){this.store.prev(),this.syncSpeakerNotes()}openSpeakerNotes(){if(this.speakerWindow&&!this.speakerWindow.closed)return this.speakerWindow.focus(),this.speakerWindow;if(!Ur.isSupported())return console.error("[Lumina] BroadcastChannel not supported."),null;const e=600,n=800,r=window.screenX+window.outerWidth,i=window.screenY;if(this.speakerWindow=window.open("about:blank",`lumina-speaker-notes-${this.speakerChannelId}`,`width=${e},height=${n},left=${r},top=${i},resizable=yes,scrollbars=yes`),!this.speakerWindow)return console.warn("[Lumina] Popup blocked."),null;const o=this.speakerWindow;return o.document.open(),o.document.write(`
|
|
56
56
|
<!DOCTYPE html>
|
|
57
57
|
<html lang="en">
|
|
58
58
|
<head>
|
|
@@ -64,4 +64,109 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
64
64
|
<div id="speaker-notes-root"></div>
|
|
65
65
|
</body>
|
|
66
66
|
</html>
|
|
67
|
-
`),
|
|
67
|
+
`),o.document.close(),setTimeout(()=>{if(o.closed)return;Array.from(document.querySelectorAll('style, link[rel="stylesheet"]')).forEach(a=>{o.document.head.appendChild(a.cloneNode(!0))});const s=o.document.getElementById("speaker-notes-root");if(s){const a=Fu(vx,{channelId:this.speakerChannelId});a.mount(s),o.addEventListener("unload",()=>a.unmount())}},0),this.initSpeakerChannel(),this.speakerWindow}closeSpeakerNotes(){this.speakerUnsubscribe&&(this.speakerUnsubscribe(),this.speakerUnsubscribe=null),this.speakerChannel&&(this.speakerChannel.notifyClose(),this.speakerChannel.destroy(),this.speakerChannel=null),this.speakerWindow&&!this.speakerWindow.closed&&this.speakerWindow.close(),this.speakerWindow=null}get isSpeakerNotesOpen(){return this.speakerWindow!==null&&!this.speakerWindow.closed}initSpeakerChannel(){this.speakerChannel=Ur.getInstance(this.speakerChannelId),this.speakerUnsubscribe=this.speakerChannel.subscribe(n=>{switch(n.action){case"next":this.next();break;case"prev":this.prev();break;case"goto":n.index!==void 0&&this.goTo(n.index);break;case"ping":this.syncSpeakerNotes();break}}),this.syncSpeakerNotes();const e=setInterval(()=>{var n;(n=this.speakerWindow)!=null&&n.closed&&(clearInterval(e),this.closeSpeakerNotes())},1e3)}syncSpeakerNotes(){if(!this.speakerChannel)return;const{currentIndex:e,deck:n}=this.store.state;if(!n)return;const r=n.slides[e],i=n.slides[e+1],o=s=>{if(s&&"title"in s&&typeof s.title=="string")return s.title};this.speakerChannel.send({action:"state",index:e,totalSlides:n.slides.length,currentNotes:r==null?void 0:r.notes,nextSlidePreview:i?{title:o(i),type:i.type}:void 0})}}const O1=`
|
|
68
|
+
You are LuminaAI, a specialized presentation design agent.
|
|
69
|
+
Your goal is to transform user requests into "Lumina Deck" JSON structures.
|
|
70
|
+
The rendering engine is deterministic, so your JSON must be syntactically perfect.
|
|
71
|
+
`.trim(),E1=`
|
|
72
|
+
## Available Layouts
|
|
73
|
+
1. **statement**: Big bold text. Use for titles, quotes, or single big ideas.
|
|
74
|
+
2. **features**: Grid of cards. Use for "Benefits", "Stats", "Team", "Services".
|
|
75
|
+
3. **timeline**: Vertical list of events. Use for "History", "Roadmap", "Process".
|
|
76
|
+
4. **steps**: Numbered list. Use for "How to", "Tutorials".
|
|
77
|
+
5. **half**: Split screen (Image + Text). Use for high-context slides.
|
|
78
|
+
6. **flex**: Declarative auto-layout. Use for complex compositions.
|
|
79
|
+
7. **chart**: Data visualization. Use for bar, line, pie, doughnut charts.
|
|
80
|
+
`.trim(),gd='\n## Theming System\n\nLumina has a powerful theming system. You can customize the entire presentation look.\n\n### Theme Presets\nUse a built-in preset by setting `meta.theme`:\n- **default**: Clean blue on dark\n- **ocean**: Cyan on slate\n- **midnight**: Indigo on black\n- **forest**: Emerald greens\n- **cyber**: Neon pink on zinc\n- **latte**: Light mode, warm amber\n- **sunset**: Orange to rose gradient\n- **monochrome**: Black and white\n\n### Custom Theme Configuration\nUse `meta.themeConfig` to customize any aspect:\n\n```json\n{\n "meta": {\n "title": "My Deck",\n "theme": "default",\n "themeConfig": {\n "colors": {\n "primary": "#8b5cf6",\n "secondary": "#ec4899",\n "background": "#0a0a0a",\n "text": "#ffffff",\n "muted": "#6b7280",\n "gradientFrom": "#8b5cf6",\n "gradientTo": "#ec4899"\n },\n "effects": {\n "useGradients": true,\n "useGlass": true,\n "glassOpacity": 0.05,\n "useOrb": true,\n "orbOpacity": 0.4\n },\n "components": {\n "cardRadius": "1.5rem",\n "buttonRadius": "9999px"\n }\n }\n },\n "slides": [...]\n}\n```\n\n### Available Theme Options\n\n**Colors (25+ options)**:\n- Core: `primary`, `secondary`, `accent`, `background`, `surface`, `text`, `textSecondary`, `muted`\n- Semantic: `success`, `warning`, `danger`, `info`\n- UI: `border`, `borderSubtle`, `shadow`, `overlay`, `highlight`\n- Interactive: `buttonPrimary`, `buttonPrimaryText`, `buttonSecondary`, `link`, `linkHover`\n- Gradients: `gradientFrom`, `gradientVia`, `gradientTo`\n\n**Effects**:\n- `useGradients`: boolean - Enable/disable gradients\n- `gradientDirection`: \'to-t\' | \'to-b\' | \'to-l\' | \'to-r\' | \'to-tl\' | \'to-tr\' | \'to-bl\' | \'to-br\'\n- `useShadows`: boolean - Enable/disable shadows\n- `shadowIntensity`: \'none\' | \'sm\' | \'md\' | \'lg\' | \'xl\' | \'2xl\'\n- `useGlass`: boolean - Enable/disable glassmorphism\n- `glassOpacity`: number (0-1)\n- `glassBlur`: string (e.g., "20px")\n- `useOrb`: boolean - Enable/disable ambient orb glow\n- `orbOpacity`: number (0-1)\n- `animationsEnabled`: boolean\n- `transitionDuration`: string (e.g., "0.3s")\n- `hoverScale`: number (e.g., 1.05)\n\n**Components**:\n- Buttons: `buttonRadius`, `buttonPadding`, `buttonFontWeight`\n- Cards: `cardRadius`, `cardPadding`, `cardBorderWidth`\n- Timeline: `timelineNodeSize`, `timelineLineWidth`, `timelineNodeColor`\n- Progress: `progressHeight`, `progressRadius`\n- Tags: `tagPadding`, `tagRadius`, `tagFontSize`\n'.trim(),P1=`
|
|
81
|
+
## Examples
|
|
82
|
+
|
|
83
|
+
User: "Create a slide about our growth."
|
|
84
|
+
Output:
|
|
85
|
+
{
|
|
86
|
+
"type": "statement",
|
|
87
|
+
"title": "Exponential Growth",
|
|
88
|
+
"subtitle": "Q4 Revenue up 200%",
|
|
89
|
+
"meta": { "variant": "gradient" }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
User: "Show the roadmap for 2024."
|
|
93
|
+
Output:
|
|
94
|
+
{
|
|
95
|
+
"type": "timeline",
|
|
96
|
+
"title": "2024 Roadmap",
|
|
97
|
+
"timeline": [
|
|
98
|
+
{ "date": "Q1", "title": "Alpha", "description": "Internal testing." },
|
|
99
|
+
{ "date": "Q2", "title": "Beta", "description": "Public waitlist." }
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
User: "Create a dark purple themed deck."
|
|
104
|
+
Output:
|
|
105
|
+
{
|
|
106
|
+
"meta": {
|
|
107
|
+
"title": "Purple Presentation",
|
|
108
|
+
"themeConfig": {
|
|
109
|
+
"colors": {
|
|
110
|
+
"primary": "#a855f7",
|
|
111
|
+
"secondary": "#c084fc",
|
|
112
|
+
"background": "#0c0a1d",
|
|
113
|
+
"gradientFrom": "#a855f7",
|
|
114
|
+
"gradientTo": "#6366f1"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"slides": [
|
|
119
|
+
{ "type": "statement", "title": "Welcome", "subtitle": "Custom purple theme" }
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
`.trim();function I1(t={}){const{mode:e="fast",includeSchema:n=!0,includeTheming:r=!0}=t,i=[O1];if(e==="reasoning"?i.push(`
|
|
123
|
+
**CRITICAL INSTRUCTION**:
|
|
124
|
+
Before outputting JSON, you must THINK about the design.
|
|
125
|
+
Wrap your thought process in <thinking> tags.
|
|
126
|
+
Analyze the content density and choose the best layout for each point.
|
|
127
|
+
`.trim()):i.push(`
|
|
128
|
+
**CRITICAL INSTRUCTION**:
|
|
129
|
+
Output ONLY valid JSON. Do not output markdown code blocks.
|
|
130
|
+
Do not explain your reasoning.
|
|
131
|
+
`.trim()),i.push(E1),r&&i.push(gd),n){const o=JSON.stringify(Jc(),null,2);i.push(`
|
|
132
|
+
## Strict JSON Schema
|
|
133
|
+
You must respect this schema for every object:
|
|
134
|
+
${o}
|
|
135
|
+
`.trim())}return i.push(P1),i.join(`
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
`)}function A1(){const t=JSON.stringify(Gc(),null,2);return`
|
|
140
|
+
You are a theme designer for Lumina presentation engine.
|
|
141
|
+
Your job is to generate ThemeConfig JSON based on user requests.
|
|
142
|
+
|
|
143
|
+
${gd}
|
|
144
|
+
|
|
145
|
+
## Theme Schema
|
|
146
|
+
${t}
|
|
147
|
+
|
|
148
|
+
## Example Request & Response
|
|
149
|
+
|
|
150
|
+
User: "Create a warm sunset theme"
|
|
151
|
+
Response:
|
|
152
|
+
{
|
|
153
|
+
"colors": {
|
|
154
|
+
"primary": "#f97316",
|
|
155
|
+
"secondary": "#f43f5e",
|
|
156
|
+
"accent": "#fb7185",
|
|
157
|
+
"background": "#1c1917",
|
|
158
|
+
"surface": "#292524",
|
|
159
|
+
"text": "#fafaf9",
|
|
160
|
+
"gradientFrom": "#f97316",
|
|
161
|
+
"gradientTo": "#f43f5e"
|
|
162
|
+
},
|
|
163
|
+
"effects": {
|
|
164
|
+
"useGradients": true,
|
|
165
|
+
"gradientDirection": "to-br",
|
|
166
|
+
"useOrb": true,
|
|
167
|
+
"orbOpacity": 0.45
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
Now generate a theme based on the user's request. Output ONLY valid JSON.
|
|
172
|
+
`.trim()}Te.DEFAULT_THEME=No,Te.EventBus=qc,Te.Lumina=$1,Te.LuminaDeck=pd,Te.SpeakerChannel=Ur,Te.THEME_PRESETS=Oa,Te.ThemeConfigSchema=js,Te.ThemeManager=Ea,Te.bus=bn,Te.generateSystemPrompt=I1,Te.generateThemePrompt=A1,Te.getLuminaJsonSchema=Jc,Te.getThemeJsonSchema=Gc,Object.defineProperty(Te,Symbol.toStringTag,{value:"Module"})});
|