Files

26 lines
231 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<meta name="theme-color" content="#03070b" />
<meta name="description" content="《星种:长夜之前》— 从无名之海到星际方舟的文明演化增量游戏。" />
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%2303070b'/%3E%3Cpath d='M32 7l6 19 19 6-19 6-6 19-6-19-19-6 19-6z' fill='%2358f3c4'/%3E%3C/svg%3E" />
<title>星种:长夜之前</title>
<script type="module" crossorigin>(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,T=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),ee=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},te=/-\w/g,E=ee(e=>e.replace(te,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,re=ee(e=>e.replace(ne,`-$1`).toLowerCase()),ie=ee(e=>e.charAt(0).toUpperCase()+e.slice(1)),ae=ee(e=>e?`on${ie(e)}`:``),oe=(e,t)=>!Object.is(e,t),se=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},D=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},ce=e=>{let t=parseFloat(e);return isNaN(t)?e:t},le=e=>{let t=g(e)?Number(e):NaN;return isNaN(t)?e:t},ue,de=()=>ue||(ue=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{});function fe(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?ge(r):fe(r);if(i)for(let e in i)t[e]=i[e]}return t}else if(g(e)||v(e))return e}var pe=/;(?![^(]*\))/g,me=/:([^]+)/,he=/\/\*[^]*?\*\//g;function ge(e){let t={};return e.replace(he,``).split(pe).forEach(e=>{if(e){let n=e.split(me);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function _e(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=_e(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var ve=`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`,ye=e(ve);ve+``;function be(e){return!!e||e===``}function xe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Se(e[r],t[r]);return n}function Se(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=_(e),r=_(t),n||r)return e===t;if(n=d(e),r=d(t),n||r)return n&&r?xe(e,t):!1;if(n=v(e),r=v(t),n||r){if(!n||!r||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e){let r=e.hasOwnProperty(n),i=t.hasOwnProperty(n);if(r&&!i||!r&&i||!Se(e[n],t[n]))return!1}}return String(e)===String(t)}var Ce=e=>!!(e&&e.__v_isRef===!0),O=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?Ce(e)?O(e.value):JSON.stringify(e,we,2):String(e),we=(e,t)=>Ce(t)?we(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Te(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Te(e))}:_(t)?Te(t):v(t)&&!d(t)&&!C(t)?String(t):t,Te=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,k,Ee=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&k&&(k.active?(this.parent=k,this.index=(k.scopes||(k.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=k;try{return k=this,e()}finally{k=t}}}on(){++this._on===1&&(this.prevScope=k,k=this)}off(){if(this._on>0&&--this._on===0){if(k===this)k=this.prevScope;else{let e=k;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function De(){return k}var A,Oe=new WeakSet,ke=class{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,k&&(k.active?k.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Oe.has(this)&&(Oe.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ne(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ke(this),Ie(this);let e=A,t=He;A=this,He=!0;try{return this.fn()}finally{Le(this),A=e,He=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Be(e);this.deps=this.depsTail=void 0,Ke(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Oe.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Re(this)&&this.run()}get dirty(){return Re(this)}},Ae=0,je,Me;function Ne(e,t=!1){if(e.flags|=8,t){e.next=Me,Me=e;return}e.next=je,je=e}function Pe(){Ae++}function Fe(){if(--Ae>0)return;if(Me){let e=Me;for(Me=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;je;){let t=je;for(je=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function Ie(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Le(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Be(r),Ve(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Re(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ze(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ze(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qe)||(e.globalVersion=qe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Re(e))))return;e.flags|=2;let t=e.dep,n=A,r=He;A=e,He=!0;try{Ie(e);let n=e.fn(e._value);(t.version===0||oe(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{A=n,He=r,Le(e),e.flags&=-3}}function Be(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Be(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ve(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var He=!0,Ue=[];function We(){Ue.push(He),He=!1}function Ge(){let e=Ue.pop();He=e===void 0||e}function Ke(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=A;A=void 0;try{t()}finally{A=e}}}var qe=0,Je=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ye=class{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(!A||!He||A===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==A)t=this.activeLink=new Je(A,this),A.deps?(t.prevDep=A.depsTail,A.depsTail.nextDep=t,A.depsTail=t):A.deps=A.depsTail=t,Xe(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=A.depsTail,t.nextDep=void 0,A.depsTail.nextDep=t,A.depsTail=t,A.deps===t&&(A.deps=e)}return t}trigger(e){this.version++,qe++,this.notify(e)}notify(e){Pe();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Fe()}}};function Xe(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Xe(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ze=new WeakMap,Qe=Symbol(``),$e=Symbol(``),et=Symbol(``);function j(e,t,n){if(He&&A){let t=Ze.get(e);t||Ze.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new Ye),r.map=t,r.key=n),r.track()}}function tt(e,t,n,r,i,a){let o=Ze.get(e);if(!o){qe++;return}let s=e=>{e&&e.trigger()};if(Pe(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===et||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(et)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`delete`:i||(s(o.get(Qe)),f(e)&&s(o.get($e)));break;case`set`:f(e)&&s(o.get(Qe));break}}Fe()}function nt(e){let t=M(e);return t===e?t:(j(t,`iterate`,et),Vt(e)?t:t.map(Wt))}function rt(e){return j(e=M(e),`iterate`,et),e}function it(e,t){return Bt(e)?Gt(zt(e)?Wt(t):t):Wt(t)}var at={__proto__:null,[Symbol.iterator](){return ot(this,Symbol.iterator,e=>it(this,e))},concat(...e){return nt(this).concat(...e.map(e=>d(e)?nt(e):e))},entries(){return ot(this,`entries`,e=>(e[1]=it(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>it(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>it(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>it(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return nt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return nt(this).toReversed()},toSorted(e){return nt(this).toSorted(e)},toSpliced(...e){return nt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return ot(this,`values`,e=>it(this,e))}};function ot(e,t,n){let r=rt(e),i=r[t]();return r!==e&&!Vt(e)&&(i._next=i.next,i.next=()=>{let e=i._next();return e.done||(e.value=n(e.value)),e}),i}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=rt(e),s=o!==e&&!Vt(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?Wt(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,it(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=rt(e),a=i!==e&&!Vt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=it(e,t)),n.call(this,t,it(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?it(e,c):c}function ut(e,t,n){let r=M(e);j(r,`iterate`,et);let i=r[t](...n);return(i===-1||i===!1)&&Ht(n[0])?(n[0]=M(n[0]),r[t](...n)):i}function dt(e,t,n=[]){We(),Pe();let r=M(e)[t].apply(e,n);return Fe(),Ge(),r}var ft=e(`__proto__,__v_isRef,__isVue`),pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function mt(e){_(e)||(e=String(e));let t=M(this);return j(t,`has`,e),t.hasOwnProperty(e)}var ht=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Nt:Mt:i?jt:At).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=at[t]))return e;if(t===`hasOwnProperty`)return mt}let o=Reflect.get(e,t,N(e)?e:n);if((_(t)?pt.has(t):ft(t))||(r||j(e,`get`,t),i))return o;if(N(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?Lt(e):e}return v(o)?r?Lt(o):Ft(o):o}},gt=class extends ht{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=Bt(i);if(!Vt(n)&&!Bt(n)&&(i=M(i),n=M(n)),!a&&N(i)&&!N(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,N(e)?e:r);return e===M(r)&&s&&(o?oe(n,i)&&tt(e,`set`,t,n,i):tt(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&tt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!pt.has(t))&&j(e,`has`,t),n}ownKeys(e){return j(e,`iterate`,d(e)?`length`:Qe),Reflect.ownKeys(e)}},_t=class extends ht{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},vt=new gt,yt=new _t,bt=new gt(!0),xt=e=>e,St=e=>Reflect.getPrototypeOf(e);function Ct(e,t,n){return function(...r){let i=this.__v_raw,a=M(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?xt:t?Gt:Wt;return!t&&j(a,`iterate`,l?$e:Qe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function wt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Tt(e,t){let n={get(n){let r=this.__v_raw,i=M(r),a=M(n);e||(oe(n,a)&&j(i,`get`,n),j(i,`get`,a));let{has:o}=St(i),s=t?xt:e?Gt:Wt;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&j(M(t),`iterate`,Qe),t.size},has(t){let n=this.__v_raw,r=M(n),i=M(t);return e||(oe(t,i)&&j(r,`has`,t),j(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=M(a),s=t?xt:e?Gt:Wt;return!e&&j(o,`iterate`,Qe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:wt(`add`),set:wt(`set`),delete:wt(`delete`),clear:wt(`clear`)}:{add(e){let n=M(this),r=St(n),i=M(e),a=!t&&!Vt(e)&&!Bt(e)?i:e;return r.has.call(n,a)||oe(e,a)&&r.has.call(n,e)||oe(i,a)&&r.has.call(n,i)||(n.add(a),tt(n,`add`,a,a)),this},set(e,n){!t&&!Vt(n)&&!Bt(n)&&(n=M(n));let r=M(this),{has:i,get:a}=St(r),o=i.call(r,e);o||(e=M(e),o=i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?oe(n,s)&&tt(r,`set`,e,n,s):tt(r,`add`,e,n),this},delete(e){let t=M(this),{has:n,get:r}=St(t),i=n.call(t,e);i||(e=M(e),i=n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&tt(t,`delete`,e,void 0,a),o},clear(){let e=M(this),t=e.size!==0,n=e.clear();return t&&tt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Ct(r,e,t)}),n}function Et(e,t){let n=Tt(e,t);return(t,r,i)=>r===`__v_isReactive`?!e:r===`__v_isReadonly`?e:r===`__v_raw`?t:Reflect.get(u(n,r)&&r in t?n:t,r,i)}var Dt={get:Et(!1,!1)},Ot={get:Et(!1,!0)},kt={get:Et(!0,!1)},At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=new WeakMap;function Pt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Ft(e){return Bt(e)?e:Rt(e,!1,vt,Dt,At)}function It(e){return Rt(e,!1,bt,Ot,jt)}function Lt(e){return Rt(e,!0,yt,kt,Mt)}function Rt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Pt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function zt(e){return Bt(e)?zt(e.__v_raw):!!(e&&e.__v_isReactive)}function Bt(e){return!!(e&&e.__v_isReadonly)}function Vt(e){return!!(e&&e.__v_isShallow)}function Ht(e){return e?!!e.__v_raw:!1}function M(e){let t=e&&e.__v_raw;return t?M(t):e}function Ut(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&D(e,`__v_skip`,!0),e}var Wt=e=>v(e)?Ft(e):e,Gt=e=>v(e)?Lt(e):e;function N(e){return e?e.__v_isRef===!0:!1}function Kt(e){return qt(e,!1)}function qt(e,t){return N(e)?e:new Jt(e,t)}var Jt=class{constructor(e,t){this.dep=new Ye,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:M(e),this._value=t?e:Wt(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Vt(e)||Bt(e);e=n?e:M(e),oe(e,t)&&(this._rawValue=e,this._value=n?e:Wt(e),this.dep.trigger())}};function P(e){return N(e)?e.value:e}var Yt={get:(e,t,n)=>t===`__v_raw`?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return N(i)&&!N(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Xt(e){return zt(e)?e:new Proxy(e,Yt)}var Zt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new Ye(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&A!==this)return Ne(this,!0),!0}get value(){let e=this.dep.track();return ze(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Qt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Zt(r,i,n)}var $t={},en=new WeakMap,tn=void 0;function nn(e,t=!1,n=tn){if(n){let t=en.get(n);t||en.set(n,t=[]),t.push(e)}}function rn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Vt(e)||o===!1||o===0?an(e,1):an(e),m,g,_,v,y=!1,b=!1;if(N(e)?(g=()=>e.value,y=Vt(e)):zt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>zt(e)||Vt(e)),g=()=>e.map(e=>{if(N(e))return e.value;if(zt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){We();try{_()}finally{Ge()}}let t=tn;tn=m;try{return f?f(e,3,[v]):e(v)}finally{tn=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>an(e(),t)}let x=De(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{let n=e(...t);return S(),n}}let C=b?Array(e.length).fill($t):$t,w=e=>{if(!(!(m.flags&1)||!m.dirty&&!e))if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>oe(e,C[t])):oe(t,C))){_&&_();let e=tn;tn=m;try{let e=[t,C===$t?void 0:b&&C[0]===$t?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{tn=e}}}else m.run()};return u&&u(w),m=new ke(g),m.scheduler=l?()=>l(w,!1):w,v=e=>nn(e,!1,m),_=m.onStop=()=>{let e=en.get(m);if(e){if(f)f(e,4);else for(let t of e)t();en.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function an(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,N(e))an(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)an(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{an(e,t,n)});else if(C(e)){for(let r in e)an(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&an(e[r],t,n)}return e}function on(e,t,n,r){try{return r?e(...r):e()}catch(e){cn(e,t,n)}}function sn(e,t,n,r){if(h(e)){let i=on(e,t,n,r);return i&&y(i)&&i.catch(e=>{cn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(sn(e[a],t,n,r));return i}}function cn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){We(),on(o,null,10,[e,i,a]),Ge();return}}ln(e,r,a,i,s)}function ln(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var F=[],un=-1,dn=[],fn=null,pn=0,mn=Promise.resolve(),hn=null;function gn(e){let t=hn||mn;return e?t.then(this?e.bind(this):e):t}function _n(e){let t=un+1,n=F.length;for(;t<n;){let r=t+n>>>1,i=F[r],a=Cn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function vn(e){if(!(e.flags&1)){let t=Cn(e),n=F[F.length-1];!n||!(e.flags&2)&&t>=Cn(n)?F.push(e):F.splice(_n(t),0,e),e.flags|=1,yn()}}function yn(){hn||(hn=mn.then(wn))}function bn(e){d(e)?dn.push(...e):fn&&e.id===-1?fn.splice(pn+1,0,e):e.flags&1||(dn.push(e),e.flags|=1),yn()}function xn(e,t,n=un+1){for(;n<F.length;n++){let t=F[n];if(t&&t.flags&2){if(e&&t.id!==e.uid)continue;F.splice(n,1),n--,t.flags&4&&(t.flags&=-2),t(),t.flags&4||(t.flags&=-2)}}}function Sn(e){if(dn.length){let e=[...new Set(dn)].sort((e,t)=>Cn(e)-Cn(t));if(dn.length=0,fn){fn.push(...e);return}for(fn=e,pn=0;pn<fn.length;pn++){let e=fn[pn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}fn=null,pn=0}}var Cn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function wn(e){try{for(un=0;un<F.length;un++){let e=F[un];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),on(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;un<F.length;un++){let e=F[un];e&&(e.flags&=-2)}un=-1,F.length=0,Sn(e),hn=null,(F.length||dn.length)&&wn(e)}}var I=null,Tn=null;function En(e){let t=I;return I=e,Tn=e&&e.type.__scopeId||null,t}function Dn(e,t=I,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Qi(-1);let i=En(t),a=Ji.length,o;try{o=e(...n)}finally{for(let e=Ji.length;e>a;e--)Xi();En(i),r._d&&Qi(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function On(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(We(),sn(c,n,8,[e.el,s,e,t]),Ge())}}function kn(e,t){if(W){let n=W.provides,r=W.parent&&W.parent.provides;r===n&&(n=W.provides=Object.create(r)),n[e]=t}}function An(e,t,n=!1){let r=va();if(r||ni){let i=ni?ni._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var jn=Symbol.for(`v-scx`),Mn=()=>An(jn);function Nn(e,t,n){return Pn(e,t,n)}function Pn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(wa){if(c===`sync`){let e=Mn();f=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=W;u.call=(e,t,n)=>sn(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{Ni(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():vn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=rn(e,n,u);return wa&&(f?f.push(h):d&&h()),h}function Fn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?In(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=xa(this),s=Pn(i,a.bind(r),n);return o(),s}function In(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Ln=Symbol(`_vte`),Rn=e=>e.__isTeleport,zn=Symbol(`_leaveCb`),Bn=Symbol(`_enterCb`);function Vn(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return hr(()=>{e.isMounted=!0}),vr(()=>{e.isUnmounting=!0}),e}var Hn=[Function,Array],Un={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Hn,onEnter:Hn,onAfterEnter:Hn,onEnterCancelled:Hn,onBeforeLeave:Hn,onLeave:Hn,onAfterLeave:Hn,onLeaveCancelled:Hn,onBeforeAppear:Hn,onAppear:Hn,onAfterAppear:Hn,onAppearCancelled:Hn},Wn=e=>{let t=e.subTree;return t.component?Wn(t.component):t},Gn={name:`BaseTransition`,props:Un,setup(e,{slots:t}){let n=va(),r=Vn();return()=>{let i=t.default&&$n(t.default(),!0),a=i&&i.length?Kn(i):n.subTree?la():void 0;if(!a)return;let o=M(e),{mode:s}=o;if(r.isLeaving)return Xn(a);let c=Zn(a);if(!c)return Xn(a);let l=Yn(c,o,r,n,e=>l=e);c.type!==z&&Qn(c,l);let u=n.subTree&&Zn(n.subTree);if(u&&u.type!==z&&!na(u,c)&&Wn(n).type!==z){let e=Yn(u,o,r,n);if(Qn(u,e),s===`out-in`&&c.type!==z)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete e.afterLeave,u=void 0},Xn(a);s===`in-out`&&c.type!==z?e.delayLeave=(e,t,n)=>{let i=Jn(r,u);i[String(u.key)]=u,e[zn]=()=>{t(),e[zn]=void 0,delete l.delayedLeave,u=void 0},l.delayedLeave=()=>{n(),delete l.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return a}}};function Kn(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==z){t=n;break}}return t}var qn=Gn;function Jn(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Yn(e,t,n,r,i){let{appear:a,mode:o,persisted:s=!1,onBeforeEnter:c,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:m,onAfterLeave:h,onLeaveCancelled:g,onBeforeAppear:_,onAppear:v,onAfterAppear:y,onAppearCancelled:b}=t,x=String(e.key),S=Jn(n,e),C=(e,t)=>{e&&sn(e,r,9,t)},w=(e,t)=>{let n=t[1];C(e,t),d(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},T={mode:o,persisted:s,beforeEnter(t){let r=c;if(!n.isMounted)if(a)r=_||c;else return;t[zn]&&t[zn](!0);let i=S[x];i&&na(e,i)&&i.el[zn]&&i.el[zn](),C(r,[t])},enter(t){if(S[x]===e)return;let r=l,i=u,o=f;if(!n.isMounted)if(a)r=v||l,i=y||u,o=b||f;else return;let s=!1;t[Bn]=e=>{s||(s=!0,C(e?o:i,[t]),T.delayedLeave&&T.delayedLeave(),t[Bn]=void 0)};let c=t[Bn].bind(null,!1);r?w(r,[t,c]):c()},leave(t,r){let i=String(e.key);if(t[Bn]&&t[Bn](!0),n.isUnmounting)return r();C(p,[t]);let a=!1;t[zn]=n=>{a||(a=!0,r(),C(n?g:h,[t]),t[zn]=void 0,S[i]===e&&delete S[i])};let o=t[zn].bind(null,!1);S[i]=e,m?w(m,[t,o]):o()},clone(e){let a=Yn(e,t,n,r,i);return i&&i(a),a}};return T}function Xn(e){if(sr(e))return e=sa(e),e.children=null,e}function Zn(e){if(!sr(e))return Rn(e.type)&&e.children?Kn(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function Qn(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Qn(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function $n(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===R?(o.patchFlag&128&&i++,r=r.concat($n(o.children,t,s))):(t||o.type!==z)&&r.push(s==null?o:sa(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function er(e,t){return h(e)?s({name:e.name},t,{setup:e}):e}function tr(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function nr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var rr=new WeakMap;function ir(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>ir(e,n&&(d(n)?n[t]:n),r,a,o));return}if(or(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&ir(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Na(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=M(v),b=v===t?i:e=>!nr(_,e)&&u(y,e),x=(e,t)=>!(t&&nr(_,t));if(m!=null&&m!==p){if(ar(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(N(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))on(p,f,12,[l,_]);else{let t=g(p),n=N(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),rr.delete(e)};t.id=-1,rr.set(e,t),Ni(t,r)}else ar(e),i()}}}function ar(e){let t=rr.get(e);t&&(t.flags|=8,rr.delete(e))}de().requestIdleCallback,de().cancelIdleCallback;var or=e=>!!e.type.__asyncLoader,sr=e=>e.type.__isKeepAlive;function cr(e,t){ur(e,`a`,t)}function lr(e,t){ur(e,`da`,t)}function ur(e,t,n=W){let r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(fr(t,r,n),n){let e=n.parent;for(;e&&e.parent;)sr(e.parent.vnode)&&dr(r,t,n,e),e=e.parent}}function dr(e,t,n,r){let i=fr(t,e,r,!0);yr(()=>{c(r[t],i)},n)}function fr(e,t,n=W,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{We();let i=xa(n),a=sn(t,n,e,r);return i(),Ge(),a});return r?i.unshift(a):i.push(a),a}}var pr=e=>(t,n=W)=>{(!wa||e===`sp`)&&fr(e,(...e)=>t(...e),n)},mr=pr(`bm`),hr=pr(`m`),gr=pr(`bu`),_r=pr(`u`),vr=pr(`bum`),yr=pr(`um`),br=pr(`sp`),xr=pr(`rtg`),Sr=pr(`rtc`);function Cr(e,t=W){fr(`ec`,e,t)}var wr=`components`,Tr=Symbol.for(`v-ndc`);function Er(e){return g(e)?Dr(wr,e,!1)||e:e||Tr}function Dr(e,t,n=!0,r=!1){let i=I||W;if(i){let n=i.type;if(e===wr){let e=Pa(n,!1);if(e&&(e===t||e===E(t)||e===ie(E(t))))return n}let a=Or(i[e]||n[e],t)||Or(i.appContext[e],t);return!a&&r?n:a}}function Or(e,t){return e&&(e[t]||e[E(t)]||e[ie(E(t))])}function kr(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&zt(e),r=!1,s=!1;n&&(r=!Vt(e),s=Bt(e),e=rt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Gt(Wt(e[n])):Wt(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}else if(v(e))if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}else i=[];return n&&(n[r]=i),i}function Ar(e,t,n={},r,i,a){if(I.ce||I.parent&&or(I.parent)&&I.parent.ce){let e=a!=null&&n.key==null?s({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),B(),ea(R,null,[U(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let c=Ji.length;B();let l;try{let i=o&&jr(o(n)),s=n.key||a||i&&i.key;l=ea(R,{key:(s&&!_(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=Ji.length;e>c;e--)Xi();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+`-s`]),l}function jr(e){return e.some(e=>!ta(e)||!(e.type===z||e.type===R&&!jr(e.children)))?e:null}var Mr=e=>e?Ca(e)?Na(e):Mr(e.parent):null,Nr=s(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mr(e.parent),$root:e=>Mr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wr(e),$forceUpdate:e=>e.f||(e.f=()=>{vn(e.update)}),$nextTick:e=>e.n||(e.n=gn.bind(e.proxy)),$watch:e=>Fn.bind(e)}),Pr=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Fr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Pr(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else zr&&(s[n]=0)}let d=Nr[n],f,p;if(d)return n===`$attrs`&&j(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Pr(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Pr(n,c)||u(o,c)||u(i,c)||u(Nr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Ir(){return Lr(`useAttrs`).attrs}function Lr(e){let t=va();return t.setupContext||(t.setupContext=Ma(t))}function Rr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var zr=!0;function Br(e){let t=Wr(e),n=e.proxy,i=e.ctx;zr=!1,t.beforeCreate&&Hr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:T,renderTracked:ee,renderTriggered:te,errorCaptured:E,serverPrefetch:ne,expose:re,inheritAttrs:ie,components:ae,directives:oe,filters:se}=t;if(u&&Vr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Ft(t))}if(zr=!0,o)for(let e in o){let t=o[e],a=Ia({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ur(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{kn(t,e[t])})}f&&Hr(f,e,`c`);function D(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(D(mr,p),D(hr,m),D(gr,g),D(_r,_),D(cr,y),D(lr,b),D(Cr,E),D(Sr,ee),D(xr,te),D(vr,S),D(yr,w),D(br,ne),d(re))if(re.length){let t=e.exposed||(e.exposed={});re.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===r&&(e.render=T),ie!=null&&(e.inheritAttrs=ie),ae&&(e.components=ae),oe&&(e.directives=oe),ne&&tr(e)}function Vr(e,t,n=r){d(e)&&(e=Yr(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?An(r.from||n,r.default,!0):An(r.from||n):An(r),N(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Hr(e,t,n){sn(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ur(e,t,n,r){let i=r.includes(`.`)?In(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Nn(i,n)}else if(h(e))Nn(i,e.bind(n));else if(v(e))if(d(e))e.forEach(e=>Ur(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Nn(i,r,e)}}function Wr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Gr(c,e,o,!0)),Gr(c,t,o)),v(t)&&a.set(t,c),c}function Gr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Gr(e,a,n,!0),i&&i.forEach(t=>Gr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Kr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Kr={data:qr,props:Zr,emits:Zr,methods:Xr,computed:Xr,beforeCreate:L,created:L,beforeMount:L,mounted:L,beforeUpdate:L,updated:L,beforeDestroy:L,beforeUnmount:L,destroyed:L,unmounted:L,activated:L,deactivated:L,errorCaptured:L,serverPrefetch:L,components:Xr,directives:Xr,watch:Qr,provide:qr,inject:Jr};function qr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Jr(e,t){return Xr(Yr(e),Yr(t))}function Yr(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function L(e,t){return e?[...new Set([].concat(e,t))]:t}function Xr(e,t){return e?s(Object.create(null),e,t):t}function Zr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Rr(e),Rr(t??{})):t}function Qr(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=L(e[r],t[r]);return n}function $r(){return{app:null,config:{isNativeTag:i,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}}var ei=0;function ti(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=$r(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:ei++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Ra,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||U(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,Na(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(sn(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=ni;ni=l;try{return e()}finally{ni=t}}};return l}}var ni=null,ri=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${re(t)}Modifiers`];function ii(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&ri(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=r.map(ce)));let c,l=i[c=ae(n)]||i[c=ae(E(n))];!l&&o&&(l=i[c=ae(re(n))]),l&&sn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,sn(u,e,6,a)}}var ai=new WeakMap;function oi(e,t,n=!1){let r=n?ai:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=oi(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function si(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,re(t))||u(e,t))}function ci(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=En(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=ua(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=ua(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:li(c)}}catch(t){Ji.length=0,cn(t,e,1),v=U(z)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=ui(y,a)),b=sa(b,y,!1,!0))}return n.dirs&&(b=sa(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Qn(b,n.transition),v=b,En(_),v}var li=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||(t={}))[n]=e[n]);return t},ui=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function di(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?fi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(pi(o,r,n)&&!si(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||fi(r,o,l):!!o;return!1}function fi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(pi(t,e,a)&&!si(n,a))return!0}return!1}function pi(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!Se(r,i):r!==i}function mi({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var hi={},gi=()=>Object.create(hi),_i=e=>Object.getPrototypeOf(e)===hi;function vi(e,t,n,r=!1){let i={},a=gi();e.propsDefaults=Object.create(null),bi(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=r?i:It(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function yi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=M(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(si(e.emitsOptions,o))continue;let d=t[o];if(c)if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=E(o);i[t]=xi(c,s,t,d,e,!1)}else d!==a[o]&&(a[o]=d,l=!0)}}}else{bi(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=re(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=xi(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&tt(e.attrs,`set`,``)}function bi(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(T(t))continue;let l=n[t],d;a&&u(a,d=E(t))?!o||!o.includes(d)?r[d]=l:(c||(c={}))[d]=l:si(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=M(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=xi(a,n,s,i[s],e,!u(i,s))}}return s}function xi(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=xa(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===re(n))&&(r=!0))}return r}var Si=new WeakMap;function Ci(e,r,i=!1){let a=i?Si:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=Ci(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=E(c[e]);wi(n)&&(l[n]=t)}else if(c)for(let e in c){let t=E(e);if(wi(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}else n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function wi(e){return e[0]!==`$`&&!T(e)}var Ti=e=>e===`_`||e===`_ctx`||e===`$stable`,Ei=e=>d(e)?e.map(ua):[ua(e)],Di=(e,t,n)=>{if(t._n)return t;let r=Dn((...e)=>Ei(t(...e)),n);return r._c=!1,r},Oi=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Ti(n))continue;let i=e[n];if(h(i))t[n]=Di(n,i,r);else if(i!=null){let e=Ei(i);t[n]=()=>e}}},ki=(e,t)=>{let n=Ei(t);e.slots.default=()=>n},Ai=(e,t,n)=>{for(let r in t)(n||!Ti(r))&&(e[r]=t[r])},ji=(e,t,n)=>{let r=e.slots=gi();if(e.vnode.shapeFlag&32){let e=t._;e?(Ai(r,t,n),n&&D(r,`_`,e,!0)):Oi(t,r)}else t&&ki(e,t)},Mi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Ai(a,n,r):(o=!n.$stable,Oi(n,a)),s=n}else n&&(ki(e,n),s={default:1});if(o)for(let e in a)!Ti(e)&&s[e]==null&&delete a[e]},Ni=Gi;function Pi(e){return Fi(e)}function Fi(e,i){let a=de();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,n,r=null,i=null,a=null,o=void 0,s=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!na(e,t)&&(r=xe(e),ge(e,i,a,!0),e=null),t.patchFlag===-2&&(c=!1,t.dynamicChildren=null);let{type:l,ref:u,shapeFlag:d}=t;switch(l){case Ki:y(e,t,n,r);break;case z:b(e,t,n,r);break;case qi:e??x(t,n,r,o);break;case R:ae(e,t,n,r,i,a,o,s,c);break;default:d&1?w(e,t,n,r,i,a,o,s,c):d&6?oe(e,t,n,r,i,a,o,s,c):(d&64||d&128)&&l.process(e,t,n,r,i,a,o,s,c,O)}u!=null&&i?ir(u,e&&e.ref,a,t||e,!t):u==null&&e&&e.ref!=null&&ir(e.ref,null,a,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)ee(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},ee=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Ii(e,a),s,u),_&&On(e,null,r,`created`),te(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!T(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ma(f,r,e)}_&&On(e,null,r,`beforeMount`);let v=Ri(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Ni(()=>{try{f&&ma(f,r,e),v&&g.enter(d),_&&On(e,null,r,`mounted`)}finally{}},i)},te=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Wi(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;te(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?da(e[l]):ua(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&Li(r,!1),(g=h.onVnodeBeforeUpdate)&&ma(g,r,n,e),f&&On(n,e,r,`beforeUpdate`),r&&Li(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?re(e.dynamicChildren,d,l,r,i,Ii(n,a),o):s||fe(e,n,l,null,r,i,Ii(n,a),o,!1),u>0){if(u&16)ie(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&ie(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&Ni(()=>{g&&ma(g,r,n,e),f&&On(n,e,r,`updated`)},i)},re=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el&&(c.type===R||!na(c,l)||c.shapeFlag&198)?m(c.el):n;v(c,l,u,null,r,i,a,o,!0)}},ie=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!T(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(T(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ae=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(re(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&zi(e,t,!0)):fe(e,t,n,f,i,a,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):D(t,n,r,i,a,o,c):ce(e,t,c)},D=(e,t,n,r,i,a,o)=>{let s=e.component=_a(e,r,i);if(sr(e)&&(s.ctx.renderer=O),Ta(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o),!e.el){let r=s.subTree=U(z);b(null,r,t,n),e.placeholder=r.el}}else le(s,e,t,n,i,a,o)},ce=(e,t,n)=>{let r=t.component=e.component;if(di(e,t,n))if(r.asyncDep&&!r.asyncResolved){ue(r,t,n);return}else r.next=t,r.update();else t.el=e.el,r.vnode=t},le=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Vi(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{Ni(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;Li(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&se(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ma(d,s,t,c),Li(e,!0);let f=ci(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),xe(p),e,i,a),t.el=f.el,u===null&&mi(e,f.el),r&&Ni(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Ni(()=>ma(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=or(t);if(Li(e,!1),l&&se(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ma(o,d,t),Li(e,!0),s&&Te){let t=()=>{e.subTree=ci(e),Te(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=ci(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Ni(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Ni(()=>ma(o,d,e),i)}(t.shapeFlag&256||d&&or(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Ni(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new ke(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>vn(u),Li(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,yi(e,t.props,r,n),Mi(e,t.children,n),We(),xn(e),Ge()},fe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){me(l,d,n,r,i,a,o,s,c);return}else if(f&256){pe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&be(l,i,a),d!==l&&p(n,d)):u&16?m&16?me(l,d,n,r,i,a,o,s,c):be(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},pe=(e,t,r,i,a,o,s,c,l)=>{e=e||n,t=t||n;let u=e.length,d=t.length,f=Math.min(u,d),p;for(p=0;p<f;p++){let n=t[p]=l?da(t[p]):ua(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?be(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},me=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?da(t[u]):ua(t[u]);if(na(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?da(t[p]):ua(t[p]);if(na(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?da(t[u]):ua(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)ge(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?da(t[u]):ua(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){ge(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&na(n,t[_])){i=_;break}i===void 0?ge(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Bi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Ui(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?he(n,r,p,2):_--)}}},he=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6){he(e.component.subTree,t,n,r);return}if(d&128){e.suspense.move(t,n,r);return}if(d&64){c.move(e,t,n,O);return}if(c===R){o(a,t,n);for(let e=0;e<u.length;e++)he(u[e],t,n,r);o(e.anchor,t,n);return}if(c===qi){S(e,t,n);return}if(r!==2&&d&1&&l)if(r===0)l.persisted&&!a[zn]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Ni(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[zn];a._isLeaving&&a[zn](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}else o(a,t,n)},ge=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if(d===-2&&(i=!1),s!=null&&(We(),ir(s,null,n,e,!0),Ge()),p!=null&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!or(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ma(_,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&On(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,O,r):l&&!l.hasOnce&&(a!==R||d>0&&d&64)?be(l,t,n,!1,!0):(a===R&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Ni(()=>{_&&ma(_,t,e),h&&On(e,null,t,`unmounted`),v&&(e.el=null)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:i}=e;if(t===R){ve(n,r);return}if(t===qi){C(e);return}let a=()=>{s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(e.shapeFlag&1&&i&&!i.persisted){let{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},ve=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Hi(c),Hi(l),r&&se(r),i.stop(),a&&(a.flags|=8,ge(o,e,t,n)),s&&Ni(s,t),Ni(()=>{e.isUnmounted=!0},t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ge(e[o],t,n,r,i)},xe=e=>{if(e.shapeFlag&6)return xe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Ln];return n?h(n):t},Se=!1,Ce=(e,t,n)=>{let r;e==null?t._vnode&&(ge(t._vnode,null,null,!0),r=t._vnode.component):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e,Se||(Se=!0,xn(r),Sn(),Se=!1)},O={p:v,um:ge,m:he,r:_e,mt:D,mc:E,pc:fe,pbc:re,n:xe,o:e},we,Te;return i&&([we,Te]=i(O)),{render:Ce,hydrate:we,createApp:ti(Ce,we)}}function Ii({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function Li({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ri(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function zi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=da(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&zi(t,a)),a.type===Ki&&(a.patchFlag===-1&&(a=i[e]=da(a)),a.el=t.el),a.type===z&&!a.el&&(a.el=t.el)}}function Bi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Vi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Vi(t)}function Hi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ui(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Ui(t.subTree):null}var Wi=e=>e.__isSuspense;function Gi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):bn(e)}var R=Symbol.for(`v-fgt`),Ki=Symbol.for(`v-txt`),z=Symbol.for(`v-cmt`),qi=Symbol.for(`v-stc`),Ji=[],Yi=null;function B(e=!1){Ji.push(Yi=e?null:[])}function Xi(){Ji.pop(),Yi=Ji[Ji.length-1]||null}var Zi=1;function Qi(e,t=!1){Zi+=e,e<0&&Yi&&t&&(Yi.hasOnce=!0)}function $i(e){return e.dynamicChildren=Zi>0?Yi||n:null,Xi(),Zi>0&&Yi&&Yi.push(e),e}function V(e,t,n,r,i,a){return $i(H(e,t,n,r,i,a,!0))}function ea(e,t,n,r,i){return $i(U(e,t,n,r,i,!0))}function ta(e){return e?e.__v_isVNode===!0:!1}function na(e,t){return e.type===t.type&&e.key===t.key}var ra=({key:e})=>e??null,ia=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||N(e)||h(e)?{i:I,r:e,k:t,f:!!n}:e);function H(e,t=null,n=null,r=0,i=null,a=e===R?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ra(t),ref:t&&ia(t),scopeId:Tn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:I};return s?(fa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),Zi>0&&!o&&Yi&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Yi.push(c),c}var U=aa;function aa(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===Tr)&&(e=z),ta(e)){let r=sa(e,t,!0);return n&&fa(r,n),Zi>0&&!a&&Yi&&(r.shapeFlag&6?Yi[Yi.indexOf(e)]=r:Yi.push(r)),r.patchFlag=-2,r}if(Fa(e)&&(e=e.__vccOpts),t){t=oa(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=_e(e)),v(n)&&(Ht(n)&&!d(n)&&(n=s({},n)),t.style=fe(n))}let o=g(e)?1:Wi(e)?128:Rn(e)?64:v(e)?4:h(e)?2:0;return H(e,t,n,r,i,o,a,!0)}function oa(e){return e?Ht(e)||_i(e)?s({},e):e:null}function sa(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?pa(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ra(l),ref:t&&t.ref?n&&a?d(a)?a.concat(ia(t)):[a,ia(t)]:ia(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==R?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&sa(e.ssContent),ssFallback:e.ssFallback&&sa(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Qn(u,c.clone(u)),u}function ca(e=` `,t=0){return U(Ki,null,e,t)}function la(e=``,t=!1){return t?(B(),ea(z,null,e)):U(z,null,e)}function ua(e){return e==null||typeof e==`boolean`?U(z):d(e)?U(R,null,e.slice()):ta(e)?da(e):U(Ki,null,String(e))}function da(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:sa(e)}function fa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`)if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),fa(e,n()),n._c&&(n._d=!0));return}else{n=32;let r=t._;!r&&!_i(t)?t._ctx=I:r===3&&I&&(I.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(h(t)){if(r&65){fa(e,{default:t});return}t={default:t,_ctx:I},n=32}else t=String(t),r&64?(n=16,t=[ca(t)]):n=8;e.children=t,e.shapeFlag|=n}function pa(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=_e([t.class,r.class]));else if(e===`style`)t.style=fe([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ma(e,t,n,r=null){sn(e,t,7,[n,r])}var ha=$r(),ga=0;function _a(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||ha,o={uid:ga++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ee(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ci(i,a),emitsOptions:oi(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.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=n?n.root:o,o.emit=ii.bind(null,o),e.ce&&e.ce(o),o}var W=null,va=()=>W||I,ya,ba;{let e=de(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};ya=t(`__VUE_INSTANCE_SETTERS__`,e=>W=e),ba=t(`__VUE_SSR_SETTERS__`,e=>wa=e)}var xa=e=>{let t=W;return ya(e),e.scope.on(),()=>{e.scope.off(),ya(t)}},Sa=()=>{W&&W.scope.off(),ya(null)};function Ca(e){return e.vnode.shapeFlag&4}var wa=!1;function Ta(e,t=!1,n=!1){t&&ba(t);let{props:r,children:i}=e.vnode,a=Ca(e);vi(e,r,a,t),ji(e,i,n||t);let o=a?Ea(e,t):void 0;return t&&ba(!1),o}function Ea(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fr);let{setup:r}=n;if(r){We();let n=e.setupContext=r.length>1?Ma(e):null,i=xa(e),a=on(r,e,0,[e.props,n]),o=y(a);if(Ge(),i(),(o||e.sp)&&!or(e)&&tr(e),o){if(a.then(Sa,Sa),t)return a.then(n=>{Da(e,n,t)}).catch(t=>{cn(t,e,0)});e.asyncDep=a}else Da(e,a,t)}else Aa(e,t)}function Da(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Xt(t)),Aa(e,n)}var Oa,ka;function Aa(e,t,n){let i=e.type;if(!e.render){if(!t&&Oa&&!i.render){let t=i.template||Wr(e).template;if(t){let{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:a,compilerOptions:o}=i;i.render=Oa(t,s(s({isCustomElement:n,delimiters:a},r),o))}}e.render=i.render||r,ka&&ka(e)}{let t=xa(e);We();try{Br(e)}finally{Ge(),t()}}}var ja={get(e,t){return j(e,`get`,``),e[t]}};function Ma(e){return{attrs:new Proxy(e.attrs,ja),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Na(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Xt(Ut(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Nr)return Nr[n](e)},has(e,t){return t in e||t in Nr}})):e.proxy}function Pa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Fa(e){return h(e)&&`__vccOpts`in e}var Ia=(e,t)=>Qt(e,t,wa);function La(e,t,n){try{Qi(-1);let r=arguments.length;return r===2?v(t)&&!d(t)?ta(t)?U(e,null,[t]):U(e,t):U(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ta(n)&&(n=[n]),U(e,t,n))}finally{Qi(1)}}var Ra=`3.5.40`,za=void 0,Ba=typeof window<`u`&&window.trustedTypes;if(Ba)try{za=Ba.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Va=za?e=>za.createHTML(e):e=>e,Ha=`http://www.w3.org/2000/svg`,Ua=`http://www.w3.org/1998/Math/MathML`,Wa=typeof document<`u`?document:null,Ga=Wa&&Wa.createElement(`template`),Ka={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Wa.createElementNS(Ha,e):t===`mathml`?Wa.createElementNS(Ua,e):n?Wa.createElement(e,{is:n}):Wa.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Wa.createTextNode(e),createComment:e=>Wa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wa.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{Ga.innerHTML=Va(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Ga.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},qa=`transition`,Ja=`animation`,Ya=Symbol(`_vtc`),Xa={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},Za=s({},Un,Xa),Qa=(e=>(e.displayName=`Transition`,e.props=Za,e))((e,{slots:t})=>La(qn,to(e),t)),$a=(e,t=[])=>{d(e)?e.forEach(e=>e(...t)):e&&e(...t)},eo=e=>e?d(e)?e.some(e=>e.length>1):e.length>1:!1;function to(e){let t={};for(let n in e)n in Xa||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:c=`${n}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:d=c,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=no(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,ee=(e,t,n,r)=>{e._enterCancelled=r,ao(e,t?d:c),ao(e,t?u:o),n&&n()},te=(e,t)=>{e._isLeaving=!1,ao(e,f),ao(e,m),ao(e,p),t&&t()},E=e=>(t,n)=>{let i=e?w:y,o=()=>ee(t,e,n);$a(i,[t,o]),oo(()=>{ao(t,e?l:a),io(t,e?d:c),eo(i)||co(t,r,g,o)})};return s(t,{onBeforeEnter(e){$a(v,[e]),io(e,a),io(e,o)},onBeforeAppear(e){$a(C,[e]),io(e,l),io(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>te(e,t);io(e,f),e._enterCancelled?(io(e,p),po(e)):(po(e),io(e,p)),oo(()=>{e._isLeaving&&(ao(e,f),io(e,m),eo(x)||co(e,r,_,n))}),$a(x,[e,n])},onEnterCancelled(e){ee(e,!1,void 0,!0),$a(b,[e])},onAppearCancelled(e){ee(e,!0,void 0,!0),$a(T,[e])},onLeaveCancelled(e){te(e),$a(S,[e])}})}function no(e){if(e==null)return null;if(v(e))return[ro(e.enter),ro(e.leave)];{let t=ro(e);return[t,t]}}function ro(e){return le(e)}function io(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Ya]||(e[Ya]=new Set)).add(t)}function ao(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Ya];n&&(n.delete(t),n.size||(e[Ya]=void 0))}function oo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var so=0;function co(e,t,n,r){let i=e._endId=++so,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=lo(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function lo(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${qa}Delay`),a=r(`${qa}Duration`),o=uo(i,a),s=r(`${Ja}Delay`),c=r(`${Ja}Duration`),l=uo(s,c),u=null,d=0,f=0;t===qa?o>0&&(u=qa,d=o,f=a.length):t===Ja?l>0&&(u=Ja,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?qa:Ja:null,f=u?u===qa?a.length:c.length:0);let p=u===qa&&/\b(?:transform|all)(?:,|$)/.test(r(`${qa}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function uo(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>fo(t)+fo(e[n])))}function fo(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function po(e){return(e?e.ownerDocument:document).body.offsetHeight}function mo(e,t,n){let r=e[Ya];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ho=Symbol(`_vod`),go=Symbol(`_vsh`),_o=Symbol(``),vo=/(?:^|;)\s*display\s*:/;function yo(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t)if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??xo(r,t,``)}else for(let e in t)n[e]??xo(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?xo(r,i,``):To(e,i,!g(t)&&t?t[i]:void 0,o)||xo(r,i,o)}}else if(i){if(t!==n){let e=r[_o];e&&(n+=`;`+e),r.cssText=n,a=vo.test(n)}}else t&&e.removeAttribute(`style`);ho in e&&(e[ho]=a?r.display:``,e[go]&&(r.display=`none`))}var bo=/\s*!important$/;function xo(e,t,n){if(d(n))n.forEach(n=>xo(e,t,n));else if(n??(n=``),t.startsWith(`--`))e.setProperty(t,n);else{let r=wo(e,t);bo.test(n)?e.setProperty(re(r),n.replace(bo,``),`important`):e[r]=n}}var So=[`Webkit`,`Moz`,`ms`],Co={};function wo(e,t){let n=Co[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return Co[t]=r;r=ie(r);for(let n=0;n<So.length;n++){let i=So[n]+r;if(i in e)return Co[t]=i}return t}function To(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var Eo=`http://www.w3.org/1999/xlink`;function Do(e,t,n,r,i,a=ye(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Eo,t.slice(6,t.length)):e.setAttributeNS(Eo,t,n):n==null||a&&!be(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function Oo(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Va(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=be(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function ko(e,t,n,r){e.addEventListener(t,n,r)}function Ao(e,t,n,r){e.removeEventListener(t,n,r)}var jo=Symbol(`_vei`);function Mo(e,t,n,r,i=null){let a=e[jo]||(e[jo]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Fo(t);r?ko(e,n,a[t]=zo(r,i),s):o&&(Ao(e,n,o,s),a[t]=void 0)}}var No=/(Once|Passive|Capture)$/,Po=/^on:?(?:Once|Passive|Capture)$/;function Fo(e){let t,n;for(;(n=e.match(No))&&!Po.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):re(e.slice(2)),t]}var Io=0,Lo=Promise.resolve(),Ro=()=>Io||(Lo.then(()=>Io=0),Io=Date.now());function zo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&sn(e,t,5,a)}}else sn(r,t,5,[e])};return n.value=e,n.attached=Ro(),n}var Bo=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vo=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?mo(e,r,c):t===`style`?yo(e,n,r):a(t)?o(t)||Mo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Ho(e,t,r,c))?(Oo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Do(e,t,r,c,s,t!==`value`)):e._isVueCE&&(Uo(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?Oo(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Do(e,t,r,c))};function Ho(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Bo(t)&&h(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Bo(t)&&g(n)?!1:t in e}function Uo(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Wo=new WeakMap,Go=new WeakMap,Ko=Symbol(`_moveCb`),qo=Symbol(`_enterCb`),Jo=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:s({},Za,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=va(),r=Vn(),i,a;return _r(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!$o(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(Yo),i.forEach(Xo);let r=i.filter(Zo);po(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;io(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Ko]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Ko]=null,ao(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let o=M(e),s=to(o),c=o.tag||R;if(i=[],a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[go]&&(i.push(t),Qn(t,Yn(t,s,r,n)),Wo.set(t,Qo(t.el)))}a=t.default?$n(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&Qn(t,Yn(t,s,r,n))}return U(c,null,a)}}});function Yo(e){let t=e.el;t[Ko]&&t[Ko](),t[qo]&&t[qo]()}function Xo(e){Go.set(e,Qo(e.el))}function Zo(e){let t=Wo.get(e),n=Go.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),(!Number.isFinite(o)||o===0)&&(o=1),(!Number.isFinite(s)||s===0)&&(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function Qo(e){let t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function $o(e,t,n){let r=e.cloneNode(),i=e[Ya];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=lo(r);return a.removeChild(r),o}var es=s({patchProp:Vo},Ka),ts;function ns(){return ts||(ts=Pi(es))}var rs=((...e)=>{let t=ns().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=as(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,is(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function is(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function as(e){return g(e)?document.querySelector(e):e}function os(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=An(r,t);if(n===void 0)throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return n},e=>(kn(r,e),e),r]}function ss(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function cs(e,t){e.indexOf(t)===-1&&e.push(t)}function ls(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var us=(e,t,n)=>n>t?t:n<e?e:n,ds={},fs=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ps=e=>typeof e==`object`&&!!e,ms=e=>/^0[^.\s]+$/u.test(e);function hs(e){let t;return()=>(t===void 0&&(t=e()),t)}var gs=e=>e,_s=(...e)=>e.reduce((e,t)=>n=>t(e(n))),vs=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},ys=class{constructor(){this.subscriptions=[]}add(e){return cs(this.subscriptions,e),()=>ls(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},bs=e=>e*1e3,xs=e=>e/1e3,Ss=(e,t)=>t?1e3/t*e:0,Cs=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,ws=1e-7,Ts=12;function Es(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Cs(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>ws&&++s<Ts);return o}function Ds(e,t,n,r){if(e===t&&n===r)return gs;let i=t=>Es(t,0,1,e,n);return e=>e===0||e===1?e:Cs(i(e),t,r)}var Os=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ks=e=>t=>1-e(1-t),As=Ds(.33,1.53,.69,.99),js=ks(As),Ms=Os(js),Ns=e=>e>=1?1:(e*=2)<1?.5*js(e):.5*(2-2**(-10*(e-1))),Ps=e=>1-Math.sin(Math.acos(e)),Fs=ks(Ps),Is=Os(Ps),Ls=Ds(.42,0,1,1),Rs=Ds(0,0,.58,1),zs=Ds(.42,0,.58,1),Bs=e=>Array.isArray(e)&&typeof e[0]!=`number`,Vs=e=>Array.isArray(e)&&typeof e[0]==`number`,Hs={linear:gs,easeIn:Ls,easeInOut:zs,easeOut:Rs,circIn:Ps,circInOut:Is,circOut:Fs,backIn:js,backInOut:Ms,backOut:As,anticipate:Ns},Us=e=>typeof e==`string`,Ws=e=>{if(Vs(e)){e.length;let[t,n,r,i]=e;return Ds(t,n,r,i)}else if(Us(e))return Hs[e],`${e}`,Hs[e];return e},Gs=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Ks(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var qs=40;function Js(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=Gs.reduce((e,t)=>(e[t]=Ks(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ds.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,qs),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Gs.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Gs.length;t++)o[Gs[t]].cancel(e)},state:i,steps:o}}var{schedule:G,cancel:Ys,state:K,steps:Xs}=Js(typeof requestAnimationFrame<`u`?requestAnimationFrame:gs,!0),Zs;function Qs(){Zs=void 0}var q={now:()=>(Zs===void 0&&q.set(K.isProcessing||ds.useManualTiming?K.timestamp:performance.now()),Zs),set:e=>{Zs=e,queueMicrotask(Qs)}},$s=e=>t=>typeof t==`string`&&t.startsWith(e),ec=$s(`--`),tc=$s(`var(--`),nc=e=>tc(e)?rc.test(e.split(`/*`)[0].trim()):!1,rc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ic(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var ac={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},oc={...ac,transform:e=>us(0,1,e)},sc={...ac,default:1},cc=e=>Math.round(e*1e5)/1e5,lc=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uc(e){return e==null}var dc=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fc=(e,t)=>n=>!!(typeof n==`string`&&dc.test(n)&&n.startsWith(e)||t&&!uc(n)&&Object.prototype.hasOwnProperty.call(n,t)),pc=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(lc);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},mc=e=>us(0,255,e),hc={...ac,transform:e=>Math.round(mc(e))},gc={test:fc(`rgb`,`red`),parse:pc(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+hc.transform(e)+`, `+hc.transform(t)+`, `+hc.transform(n)+`, `+cc(oc.transform(r))+`)`};function _c(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var vc={test:fc(`#`),parse:_c,transform:gc.transform},yc=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),bc=yc(`deg`),xc=yc(`%`),J=yc(`px`),Sc=yc(`vh`),Cc=yc(`vw`),wc={...xc,parse:e=>xc.parse(e)/100,transform:e=>xc.transform(e*100)},Tc={test:fc(`hsl`,`hue`),parse:pc(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+xc.transform(cc(t))+`, `+xc.transform(cc(n))+`, `+cc(oc.transform(r))+`)`},Y={test:e=>gc.test(e)||vc.test(e)||Tc.test(e),parse:e=>gc.test(e)?gc.parse(e):Tc.test(e)?Tc.parse(e):vc.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?gc.transform(e):Tc.transform(e),getAnimatableNone:e=>{let t=Y.parse(e);return t.alpha=0,Y.transform(t)}},Ec=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Dc(e){return isNaN(e)&&typeof e==`string`&&(e.match(lc)?.length||0)+(e.match(Ec)?.length||0)>0}var Oc=`number`,kc=`color`,Ac=`var`,jc=`var(`,Mc="${}",Nc=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Pc(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Nc,e=>(Y.test(e)?(r.color.push(a),i.push(kc),n.push(Y.parse(e))):e.startsWith(jc)?(r.var.push(a),i.push(Ac),n.push(e)):(r.number.push(a),i.push(Oc),n.push(parseFloat(e))),++a,Mc)).split(Mc),indexes:r,types:i}}function Fc(e){return Pc(e).values}function Ic({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];e===Oc?i+=cc(r[a]):e===kc?i+=Y.transform(r[a]):i+=r[a]}return i}}function Lc(e){return Ic(Pc(e))}var Rc=e=>typeof e==`number`?0:Y.test(e)?Y.getAnimatableNone(e):e,zc=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Rc(e);function Bc(e){let t=Pc(e);return Ic(t)(t.values.map((e,n)=>zc(e,t.split[n])))}var Vc={test:Dc,parse:Fc,createTransformer:Lc,getAnimatableNone:Bc};function Hc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Uc({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Hc(s,r,e+1/3),a=Hc(s,r,e),o=Hc(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Wc(e,t){return n=>n>0?t:e}var X=(e,t,n)=>e+(t-e)*n,Gc=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Kc=[vc,gc,Tc],qc=e=>Kc.find(t=>t.test(e));function Jc(e){let t=qc(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Tc&&(n=Uc(n)),n}var Yc=(e,t)=>{let n=Jc(e),r=Jc(t);if(!n||!r)return Wc(e,t);let i={...n};return e=>(i.red=Gc(n.red,r.red,e),i.green=Gc(n.green,r.green,e),i.blue=Gc(n.blue,r.blue,e),i.alpha=X(n.alpha,r.alpha,e),gc.transform(i))},Xc=new Set([`none`,`hidden`]);function Zc(e,t){return Xc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Qc(e,t){return n=>X(e,t,n)}function $c(e){return typeof e==`number`?Qc:typeof e==`string`?nc(e)?Wc:Y.test(e)?Yc:rl:Array.isArray(e)?el:typeof e==`object`?Y.test(e)?Yc:tl:Wc}function el(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>$c(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function tl(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=$c(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function nl(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]];n[i]=e.values[o]??0,r[a]++}return n}var rl=(e,t)=>{let n=Vc.createTransformer(t),r=Pc(e),i=Pc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Xc.has(e)&&!i.values.length||Xc.has(t)&&!r.values.length?Zc(e,t):_s(el(nl(r,i),i.values),n):(`${e}${t}`,Wc(e,t))};function il(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?X(e,t,n):$c(e)(e,t)}var al=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>G.update(t,e),stop:()=>Ys(t),now:()=>K.isProcessing?K.timestamp:q.now()}},ol=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},sl=2e4;function cl(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function ll(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(cl(r),sl);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:xs(i)}}var Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function ul(e,t){return e*Math.sqrt(1-t*t)}var dl=12;function fl(e,t,n){let r=n;for(let n=1;n<dl;n++)r-=e(r)/t(r);return r}var pl=.001;function ml({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:r=Z.mass}){let i,a;Z.maxDuration;let o=1-t;o=us(Z.minDamping,Z.maxDamping,o),e=us(Z.minDuration,Z.maxDuration,xs(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=ul(t,o),c=Math.exp(-i);return pl-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=ul(t**2,o);return(-i(t)+pl>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=fl(i,a,s);if(e=bs(e),isNaN(c))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var hl=[`duration`,`bounce`],gl=[`stiffness`,`damping`,`mass`];function _l(e,t){return t.some(t=>e[t]!==void 0)}function vl(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!_l(e,gl)&&_l(e,hl))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*us(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Z.mass,stiffness:i,damping:a}}else{let n=ml({...e,velocity:0});t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function yl(e=Z.visualDuration,t=Z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=vl({...n,velocity:-xs(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=xs(Math.sqrt(c/u)),v=Math.abs(g)<5;r||(r=v?Z.restSpeed.granular:Z.restSpeed.default),i||(i=v?Z.restDelta.granular:Z.restDelta.default);let y,b,x,S,C,w;if(h<1)x=ul(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let T={calculatedDuration:p&&d||null,velocity:e=>bs(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=bs(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=bs(b(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(cl(T),sl),t=ol(t=>T.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return T}yl.applyToOptions=e=>{let t=ll(e,100,yl);return e.ease=t.ease,e.duration=bs(t.duration),e.type=`keyframes`,e};var bl=5;function xl(e,t,n){let r=Math.max(t-bl,0);return Ss(n-e(r),t-r)}function Sl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=yl({keyframes:[f.value,m(f.value)],velocity:xl(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Cl(e,t,n){let r=[],i=n||ds.mix||il,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=_s(Array.isArray(t)?t[n]||gs:t,a)),r.push(a)}return r}function wl(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Cl(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=vs(e[r],e[r+1],n);return s[r](i)};return n?t=>l(us(e[0],e[a-1],t)):l}function Tl(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=vs(0,t,r);e.push(X(n,1,i))}}function El(e){let t=[0];return Tl(t,e.length-1),t}function Dl(e,t){return e.map(e=>e*t)}function Ol(e,t){return e.map(()=>t||zs).splice(0,e.length-1)}function kl({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Bs(r)?r.map(Ws):Ws(r),a={done:!1,value:t[0]},o=wl(Dl(n&&n.length===t.length?n:El(t),e),t,{ease:Array.isArray(i)?i:Ol(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Al=e=>e!==null;function jl(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Al),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Ml={decay:Sl,inertia:Sl,tween:kl,keyframes:kl,spring:yl};function Nl(e){typeof e.type==`string`&&(e.type=Ml[e.type])}var Pl=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},Fl=e=>e/100,Il=class extends Pl{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==q.now()&&this.tick(q.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Nl(e);let{type:t=kl,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||kl;s!==kl&&typeof o[0]!=`number`&&(this.mixKeyframes=_s(Fl,il(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=cl(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=us(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Sl&&(b.value=jl(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return xs(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xs(e)}get time(){return xs(this.currentTime)}set time(e){e=bs(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return xl(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(q.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=xs(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=al,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||(this.startTime=t??n):this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(q.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function Ll(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Rl=e=>e*180/Math.PI,zl=e=>Vl(Rl(Math.atan2(e[1],e[0]))),Bl={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:zl,rotateZ:zl,skewX:e=>Rl(Math.atan(e[1])),skewY:e=>Rl(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Vl=e=>(e%=360,e<0&&(e+=360),e),Hl=zl,Ul=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Wl=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Gl={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ul,scaleY:Wl,scale:e=>(Ul(e)+Wl(e))/2,rotateX:e=>Vl(Rl(Math.atan2(e[6],e[5]))),rotateY:e=>Vl(Rl(Math.atan2(-e[2],e[0]))),rotateZ:Hl,rotate:Hl,skewX:e=>Rl(Math.atan(e[4])),skewY:e=>Rl(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Kl(e){return+!!e.includes(`scale`)}function ql(e,t){if(!e||e===`none`)return Kl(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=Gl,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Bl,i=t}if(!i)return Kl(t);let a=r[t],o=i[1].split(`,`).map(Yl);return typeof a==`function`?a(o):o[a]}var Jl=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return ql(n,t)};function Yl(e){return parseFloat(e.trim())}var Xl=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Zl=new Set([...Xl,`pathRotation`]),Ql=e=>e===ac||e===J,$l=new Set([`x`,`y`,`z`]),eu=Xl.filter(e=>!$l.has(e));function tu(e){let t=[];return eu.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var nu={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ql(t,`x`),y:(e,{transform:t})=>ql(t,`y`)};nu.translateX=nu.x,nu.translateY=nu.y;var ru=new Set,iu=!1,au=!1,ou=!1;function su(){if(au){let e=Array.from(ru).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=tu(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}au=!1,iu=!1,ru.forEach(e=>e.complete(ou)),ru.clear()}function cu(){ru.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(au=!0)})}function lu(){ou=!0,cu(),su(),ou=!1}var uu=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(ru.add(this),iu||(iu=!0,G.read(cu),G.resolveKeyframes(su))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}Ll(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ru.delete(this)}cancel(){this.state===`scheduled`&&(ru.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},du=e=>e.startsWith(`--`);function fu(e,t,n){du(t)?e.style.setProperty(t,n):e.style[t]=n}var pu={};function mu(e,t){let n=hs(e);return()=>pu[t]??n()}var hu=mu(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),gu=mu(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),_u=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,vu={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:_u([0,.65,.55,1]),circOut:_u([.55,0,1,.45]),backIn:_u([.31,.01,.66,-.59]),backOut:_u([.33,1.53,.69,.99])};function yu(e,t){if(e)return typeof e==`function`?gu()?ol(e,t):`ease-out`:Vs(e)?_u(e):Array.isArray(e)?e.map(e=>yu(e,t)||vu.easeOut):vu[e]}function bu(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=yu(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function xu(e){return typeof e==`function`&&`applyToOptions`in e}function Su({type:e,...t}){return xu(e)&&gu()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease=`easeOut`),t)}var Cu=class extends Pl{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=Su(e);this.animation=bu(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=jl(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),fu(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e===`idle`||e===`finished`||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return xs(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+xs(e)}get time(){return xs(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=bs(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&hu()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),gs):r(this)}},wu={anticipate:Ns,backInOut:Ms,circInOut:Is};function Tu(e){return e in wu}function Eu(e){typeof e.ease==`string`&&Tu(e.ease)&&(e.ease=wu[e.ease])}var Du=10,Ou=class extends Cu{constructor(e){Eu(e),Nl(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new Il({...a,autoplay:!1}),s=Math.max(Du,q.now()-this.startTime),c=us(0,Du,s-Du),l=o.sample(s).value,{name:u}=this.options;i&&u&&fu(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ku=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Vc.test(e)||e===`0`)&&!e.startsWith(`url(`));function Au(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ju(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ku(i,t),s=ku(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Au(e)||(n===`spring`||xu(n))&&r}function Mu(e){e.duration=0,e.type=`keyframes`}var Nu=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Pu=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Fu(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Pu.test(e[t]))return!0;return!1}var Iu=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),Lu=hs(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ru(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return Lu()&&n&&(Nu.has(n)||Iu.has(n)&&Fu(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var zu=40,Bu=class extends Pl{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=q.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||uu;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=q.now();let u=!0;ju(e,i,a,o)||(u=!1,(ds.instantAnimations||!s)&&l?.(jl(e,n,t)),e[0]=e[e.length-1],Mu(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>zu?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&Ru(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Ou({...d,element:p})}catch{m=new Il(d)}else m=new Il(d);m.finished.then(()=>{this.notifyFinished()}).catch(gs),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),lu()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function Vu(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var Hu=30,Uu=e=>!isNaN(parseFloat(e)),Wu={current:void 0},Gu=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=q.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=q.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Uu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new ys);let n=this.events[e].add(t);return e===`change`?()=>{n(),G.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Wu.current&&Wu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=q.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Hu)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,Hu);return Ss(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Ku(e,t){return new Gu(e,t)}function qu(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Ju(e,t){let n=e?.[t]??e?.default??e;return n===e?n:qu(n,e)}var Yu={type:`spring`,stiffness:500,damping:25,restSpeed:10},Xu=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zu={type:`keyframes`,duration:.8},Qu={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},$u=(e,{keyframes:t})=>t.length>2?Zu:Zl.has(e)?e.startsWith(`scale`)?Xu(t[1]):Yu:Qu,ed=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function td(e){for(let t in e)if(!ed.has(t))return!0;return!1}var nd=(e,t,n,r={},i,a)=>o=>{let s=Ju(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=bs(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};td(s)||Object.assign(u,$u(e,u)),u.duration&&(u.duration=bs(u.duration)),u.repeatDelay&&(u.repeatDelay=bs(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Mu(u),u.delay===0&&(d=!0)),(ds.instantAnimations||ds.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Mu(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=jl(u.keyframes,s);if(e!==void 0){G.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new Il(u):new Bu(u)},rd=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function id(e){let t=rd.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ad(e,t,n=1){`${e}`;let[r,i]=id(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return fs(e)?parseFloat(e):e}return nc(i)?ad(i,t,n+1):i}function od(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function sd(e,t,n,r){if(typeof t==`function`){let[i,a]=od(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=od(r);t=t(n===void 0?e.custom:n,i,a)}return t}function cd(e,t,n){let r=e.getProps();return sd(r,t,n===void 0?r.custom:n,e)}var ld=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Xl]),ud=e=>Array.isArray(e);function dd(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ku(n))}function fd(e){return ud(e)?e[e.length-1]||0:e}function pd(e,t){let{transitionEnd:n={},transition:r={},...i}=cd(e,t)||{};i={...i,...n};for(let t in i)dd(e,t,fd(i[t]))}var Q=e=>!!(e&&e.getVelocity);function md(e){return!!(Q(e)&&e.add)}function hd(e,t){let n=e.getValue(`willChange`);if(md(n))return n.add(t);if(!n&&ds.WillChange){let n=new ds.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function gd(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var _d=`data-`+gd(`framerAppearId`);function vd(e){return e.props[_d]}function yd({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function bd(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?qu(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&e.animationState.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&yd(f,t))continue;let o={delay:n,...Ju(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){G.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=vd(e);if(n){let e=window.MotionHandoffAnimation(n,t,G);e!==null&&(o.startTime=e,p=!0)}}hd(e,t);let m=l??e.shouldReduceMotion;r.start(nd(t,r,i,m&&ld.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>G.update(()=>{o&&pd(e,o)});d.length?Promise.all(d).then(t):t()}return d}function xd(e,t,n={}){let r=cd(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(bd(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Sd(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Sd(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(xd(c,t,{...o,delay:n+(typeof r==`function`?0:r)+Vu(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Cd(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>xd(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=xd(e,t,n);else{let i=typeof t==`function`?cd(e,t,n.custom):t;r=Promise.all(bd(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var wd={test:e=>e===`auto`,parse:e=>e},Td=e=>t=>t.test(e),Ed=[ac,J,xc,bc,Cc,Sc,wd],Dd=e=>Ed.find(Td(e));function Od(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||ms(e)}var kd=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Ad(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(lc)||[];if(!r)return e;let i=n.replace(r,``),a=+!!kd.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var jd=/\b([a-z-]*)\(.*?\)/gu,Md={...Vc,getAnimatableNone:e=>{let t=e.match(jd);return t?t.map(Ad).join(` `):e}},Nd={...Vc,getAnimatableNone:e=>{let t=Vc.parse(e);return Vc.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Pd={...ac,transform:Math.round},Fd={borderWidth:J,borderTopWidth:J,borderRightWidth:J,borderBottomWidth:J,borderLeftWidth:J,borderRadius:J,borderTopLeftRadius:J,borderTopRightRadius:J,borderBottomRightRadius:J,borderBottomLeftRadius:J,width:J,maxWidth:J,height:J,maxHeight:J,top:J,right:J,bottom:J,left:J,inset:J,insetBlock:J,insetBlockStart:J,insetBlockEnd:J,insetInline:J,insetInlineStart:J,insetInlineEnd:J,padding:J,paddingTop:J,paddingRight:J,paddingBottom:J,paddingLeft:J,paddingBlock:J,paddingBlockStart:J,paddingBlockEnd:J,paddingInline:J,paddingInlineStart:J,paddingInlineEnd:J,margin:J,marginTop:J,marginRight:J,marginBottom:J,marginLeft:J,marginBlock:J,marginBlockStart:J,marginBlockEnd:J,marginInline:J,marginInlineStart:J,marginInlineEnd:J,fontSize:J,backgroundPositionX:J,backgroundPositionY:J,rotate:bc,pathRotation:bc,rotateX:bc,rotateY:bc,rotateZ:bc,scale:sc,scaleX:sc,scaleY:sc,scaleZ:sc,skew:bc,skewX:bc,skewY:bc,distance:J,translateX:J,translateY:J,translateZ:J,x:J,y:J,z:J,perspective:J,transformPerspective:J,opacity:oc,originX:wc,originY:wc,originZ:J,zIndex:Pd,fillOpacity:oc,strokeOpacity:oc,numOctaves:Pd},Id={...Fd,color:Y,backgroundColor:Y,outlineColor:Y,fill:Y,stroke:Y,borderColor:Y,borderTopColor:Y,borderRightColor:Y,borderBottomColor:Y,borderLeftColor:Y,filter:Md,WebkitFilter:Md,mask:Nd,WebkitMask:Nd},Ld=e=>Id[e],Rd=new Set([Md,Nd]);function zd(e,t){let n=Ld(e);return Rd.has(n)||(n=Vc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var Bd=new Set([`auto`,`none`,`0`]);function Vd(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!Bd.has(t)&&Pc(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=zd(n,i)}var Hd=class extends uu{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),nc(r))){let i=ad(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ld.has(n)||e.length!==2)return;let[r,i]=e,a=Dd(r),o=Dd(i);if(ic(r)!==ic(i)&&nu[n]){this.needsMeasurement=!0;return}if(a!==o)if(Ql(a)&&Ql(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else nu[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Od(e[t]))&&n.push(t);n.length&&Vd(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nu[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=nu[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},Ud=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function Wd(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var Gd=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Kd(e){return ps(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:qd,cancel:Jd}=Js(queueMicrotask,!1),Yd={x:!1,y:!1};function Xd(){return Yd.x||Yd.y}function Zd(e,t){let n=Wd(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Qd(e){return!(e.pointerType===`touch`||Xd())}function $d(e,t,n={}){let[r,i,a]=Zd(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&(a(e),a=void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Qd(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ef=(e,t)=>t?e===t||ef(e,t.parentElement):!1,tf=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,nf=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function rf(e){return nf.has(e.tagName)||e.isContentEditable===!0}var af=new WeakSet;function of(e){return t=>{t.key===`Enter`&&e(t)}}function sf(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var cf=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=of(()=>{if(af.has(n))return;sf(n,`down`);let e=of(()=>{sf(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>sf(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function lf(e){return tf(e)&&!Xd()}var uf=new WeakSet;function df(e,t,n={}){let[r,i,a]=Zd(e,n),o=e=>{let r=e.currentTarget;if(!lf(e)||uf.has(e))return;af.add(r),n.stopPropagation&&uf.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),af.has(r)&&af.delete(r),lf(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ef(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),Kd(e)&&(e.addEventListener(`focus`,e=>cf(e,i)),!rf(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function ff(e){return ps(e)&&`ownerSVGElement`in e}var pf={value:null,addProjectionMetrics:null};function mf(e){return ff(e)&&e.tagName===`svg`}var hf=[...Ed,Y,Vc],gf=e=>hf.find(Td(e)),_f=()=>({translate:0,scale:1,origin:0,originPoint:0}),vf=()=>({x:_f(),y:_f()}),yf=()=>({min:0,max:0}),$=()=>({x:yf(),y:yf()}),bf=new WeakMap;function xf(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Sf(e){return typeof e==`string`||Array.isArray(e)}var Cf=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function wf(e){return xf(e.animate)||Cf.some(t=>Sf(e[t]))}function Tf(e){return!!(wf(e)||e.variants)}function Ef(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Q(i))e.addValue(r,i);else if(Q(a))e.addValue(r,Ku(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Ku(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Df={current:null},Of={current:!1},kf=typeof window<`u`;function Af(){if(Of.current=!0,kf)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Df.current=e.matches;e.addEventListener(`change`,t),t()}else Df.current=!1}var jf=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Mf={},Nf=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=uu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=q.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,G.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=wf(t),this.isVariantNode=Tf(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Q(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,bf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Of.current||Af(),this.shouldReduceMotion=Df.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Ys(this.notifyUpdate),Ys(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&Nu.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Cu({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:bs(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Zl.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Mf){let t=Mf[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<jf.length;t++){let n=jf[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Ef(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Ku(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(fs(n)||ms(n))?n=parseFloat(n):!gf(n)&&Vc.test(t)&&(n=zd(e,t)),this.setBaseTarget(e,Q(n)?n.get():n)),Q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=sd(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!Q(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new ys),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){qd.render(this.render)}},Pf=class extends Nf{constructor(){super(...arguments),this.KeyframeResolver=Hd}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Ff({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function If({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lf(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Rf(e){return e===void 0||e===1}function zf({scale:e,scaleX:t,scaleY:n}){return!Rf(e)||!Rf(t)||!Rf(n)}function Bf(e){return zf(e)||Vf(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vf(e){return Hf(e.x)||Hf(e.y)}function Hf(e){return e&&e!==`0%`}function Uf(e,t,n){return n+t*(e-n)}function Wf(e,t,n,r,i){return i!==void 0&&(e=Uf(e,i,r)),Uf(e,n,r)+t}function Gf(e,t=0,n=1,r,i){e.min=Wf(e.min,t,n,r,i),e.max=Wf(e.max,t,n,r,i)}function Kf(e,{x:t,y:n}){Gf(e.x,t.translate,t.scale,t.originPoint),Gf(e.y,n.translate,n.scale,n.originPoint)}var qf=.999999999999,Jf=1.0000000000001;function Yf(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(Xf(e.x,-a.scroll.offset.x),Xf(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Kf(e,o)),r&&Bf(a.latestValues)&&$f(e,a.latestValues,a.layout?.layoutBox))}t.x<Jf&&t.x>qf&&(t.x=1),t.y<Jf&&t.y>qf&&(t.y=1)}function Xf(e,t){e.min+=t,e.max+=t}function Zf(e,t,n,r,i=.5){Gf(e,t,n,X(e.min,e.max,i),r)}function Qf(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function $f(e,t,n){let r=n??e;Zf(e.x,Qf(t.x,r.x),t.scaleX,t.scale,t.originX),Zf(e.y,Qf(t.y,r.y),t.scaleY,t.scale,t.originY)}function ep(e,t){return Ff(Lf(e.getBoundingClientRect(),t))}function tp(e,t,n){let r=ep(e,n),{scroll:i}=t;return i&&(Xf(r.x,i.offset.x),Xf(r.y,i.offset.y)),r}var np={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},rp=Xl.length;function ip(e,t,n){let r=``,i=!0;for(let a=0;a<rp;a++){let o=Xl[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Gd(s,Fd[o]);if(!c){i=!1;let t=np[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Gd(a,Fd.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function ap(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Zl.has(e)){o=!0;continue}else if(ec(e)){i[e]=n;continue}else{let t=Gd(n,Fd[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=ip(t,e.transform,n):r.transform&&(r.transform=`none`)),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function op(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function sp(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var cp={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(J.test(e))e=parseFloat(e);else return e;return`${sp(e,t.target.x)}% ${sp(e,t.target.y)}%`}},lp={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Vc.parse(e);if(i.length>5)return r;let a=Vc.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=X(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},up={borderRadius:{...cp,applyTo:[...Ud]},borderTopLeftRadius:cp,borderTopRightRadius:cp,borderBottomLeftRadius:cp,borderBottomRightRadius:cp,boxShadow:lp};function dp(e){for(let t in e)up[t]=e[t],ec(t)&&(up[t].isCSSVariable=!0)}function fp(e,{layout:t,layoutId:n}){return Zl.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!up[e]||e===`opacity`)}function pp(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Q(r[t])||i&&Q(i[t])||fp(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function mp(e){return window.getComputedStyle(e)}var hp=class extends Pf{constructor(){super(...arguments),this.type=`html`,this.renderInstance=op}readValueFromInstance(e,t){if(Zl.has(t))return this.projection?.isProjecting?Kl(t):Jl(e,t);{let n=mp(e),r=(ec(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ep(e,t)}build(e,t,n){ap(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return pp(e,t,n)}},gp={offset:`stroke-dashoffset`,array:`stroke-dasharray`},_p={offset:`strokeDashoffset`,array:`strokeDasharray`};function vp(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?gp:_p;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var yp=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function bp(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(ap(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of yp)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&vp(d,i,a,o,!1)}var xp=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Sp=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Cp(e,t,n,r){op(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(xp.has(n)?n:gd(n),t.attrs[n])}function wp(e,t,n){let r=pp(e,t,n);for(let n in e)if(Q(e[n])||Q(t[n])){let t=Xl.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Tp=class extends Pf{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Zl.has(t)){let e=Ld(t);return e&&e.default||0}return t=xp.has(t)?t:gd(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return wp(e,t,n)}build(e,t,n){bp(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Cp(e,t,n,r)}mount(e){this.isSVGTag=Sp(e.tagName),super.mount(e)}};function Ep(e,t){e.min=t.min,e.max=t.max}function Dp(e,t){Ep(e.x,t.x),Ep(e.y,t.y)}function Op(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var kp=.9999,Ap=1.0001,jp=-.01,Mp=.01;function Np(e){return e.max-e.min}function Pp(e,t,n){return Math.abs(e-t)<=n}function Fp(e,t,n,r=.5){e.origin=r,e.originPoint=X(t.min,t.max,e.origin),e.scale=Np(n)/Np(t),e.translate=X(n.min,n.max,e.origin)-e.originPoint,(e.scale>=kp&&e.scale<=Ap||isNaN(e.scale))&&(e.scale=1),(e.translate>=jp&&e.translate<=Mp||isNaN(e.translate))&&(e.translate=0)}function Ip(e,t,n,r){Fp(e.x,t.x,n.x,r?r.originX:void 0),Fp(e.y,t.y,n.y,r?r.originY:void 0)}function Lp(e,t,n,r=0){e.min=(r?X(n.min,n.max,r):n.min)+t.min,e.max=e.min+Np(t)}function Rp(e,t,n,r){Lp(e.x,t.x,n.x,r?.x),Lp(e.y,t.y,n.y,r?.y)}function zp(e,t,n,r=0){let i=r?X(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Np(t)}function Bp(e,t,n,r){zp(e.x,t.x,n.x,r?.x),zp(e.y,t.y,n.y,r?.y)}function Vp(e,t,n,r,i){return e-=t,e=Uf(e,1/n,r),i!==void 0&&(e=Uf(e,1/i,r)),e}function Hp(e,t=0,n=1,r=.5,i,a=e,o=e){if(xc.test(t)&&(t=parseFloat(t),t=X(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=X(a.min,a.max,r);e===a&&(s-=t),e.min=Vp(e.min,t,n,s,i),e.max=Vp(e.max,t,n,s,i)}function Up(e,t,[n,r,i],a,o){Hp(e,t[n],t[r],t[i],t.scale,a,o)}var Wp=[`x`,`scaleX`,`originX`],Gp=[`y`,`scaleY`,`originY`];function Kp(e,t,n,r){Up(e.x,t,Wp,n?n.x:void 0,r?r.x:void 0),Up(e.y,t,Gp,n?n.y:void 0,r?r.y:void 0)}function qp(e){return e.translate===0&&e.scale===1}function Jp(e){return qp(e.x)&&qp(e.y)}function Yp(e,t){return e.min===t.min&&e.max===t.max}function Xp(e,t){return Yp(e.x,t.x)&&Yp(e.y,t.y)}function Zp(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Qp(e,t){return Zp(e.x,t.x)&&Zp(e.y,t.y)}function $p(e){return Np(e.x)/Np(e.y)}function em(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function tm(e){return[e(`x`),e(`y`)]}function nm(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var rm=Ud.length,im=e=>typeof e==`string`?parseFloat(e):e,am=e=>typeof e==`number`||J.test(e);function om(e,t,n,r,i,a){i?(e.opacity=X(0,n.opacity??1,cm(r)),e.opacityExit=X(t.opacity??1,0,lm(r))):a&&(e.opacity=X(t.opacity??1,n.opacity??1,r));for(let i=0;i<rm;i++){let a=Ud[i],o=sm(t,a),s=sm(n,a);o===void 0&&s===void 0||(o||(o=0),s||(s=0),o===0||s===0||am(o)===am(s)?(e[a]=Math.max(X(im(o),im(s),r),0),(xc.test(s)||xc.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=X(t.rotate||0,n.rotate||0,r))}function sm(e,t){return e[t]===void 0?e.borderRadius:e[t]}var cm=um(0,.5,Fs),lm=um(.5,.95,gs);function um(e,t,n){return r=>r<e?0:r>t?1:n(vs(e,t,r))}function dm(e,t,n){let r=Q(e)?e:Ku(e);return r.start(nd(``,r,t,n)),r.animation}function fm(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var pm=(e,t)=>e.depth-t.depth,mm=class{constructor(){this.children=[],this.isDirty=!1}add(e){cs(this.children,e),this.isDirty=!0}remove(e){ls(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(pm),this.isDirty=!1,this.children.forEach(e)}};function hm(e,t){let n=q.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(Ys(r),e(a-t))};return G.setup(r,!0),()=>Ys(r)}function gm(e){return Q(e)?e.get():e}var _m=class{constructor(){this.members=[]}add(e){cs(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ls(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ls(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},vm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ym={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},bm=[``,`X`,`Y`,`Z`],xm=1e3,Sm=0;function Cm(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function wm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=vd(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,G,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&wm(r)}function Tm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Sm++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,pf.value&&(ym.nodes=ym.calculatedTargetDeltas=ym.calculatedProjections=0),this.nodes.forEach(Om),this.nodes.forEach(Lm),this.nodes.forEach(Rm),this.nodes.forEach(km),pf.addProjectionMetrics&&pf.addProjectionMetrics(ym)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new mm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ys),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ff(t)&&!mf(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;G.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=hm(i,250),vm.hasAnimatedSinceResize&&(vm.hasAnimatedSinceResize=!1,this.nodes.forEach(Im)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Gm,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Qp(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ju(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Im(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ys(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zm),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&wm(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Mm),this.nodes.forEach(jm);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Nm);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Pm),this.nodes.forEach(Fm),this.nodes.forEach(Em),this.nodes.forEach(Dm)):this.nodes.forEach(Nm),this.clearAllSnapshots();let e=q.now();K.delta=us(0,1e3/60,e-K.timestamp),K.timestamp=e,K.isProcessing=!0,Xs.update.process(K),Xs.preRender.process(K),Xs.render.process(K),K.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Am),this.sharedNodes.forEach(Bm)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,G.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){G.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Np(this.snapshot.measuredBox.x)&&!Np(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=$()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Jp(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Bf(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Ym(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return $();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Zm))){let{scroll:e}=this.root;e&&(Xf(t.x,e.offset.x),Xf(t.y,e.offset.y))}return t}removeElementScroll(e){let t=$();if(Dp(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Dp(t,e),Xf(t.x,i.offset.x),Xf(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||$();Dp(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(Xf(r.x,-n.scroll.offset.x),Xf(r.y,-n.scroll.offset.y)),Bf(n.latestValues)&&$f(r,n.latestValues,n.layout?.layoutBox)}return Bf(this.latestValues)&&$f(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=$();Dp(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Bf(n.latestValues))continue;let r;n.instance&&(zf(n.latestValues)&&n.updateSnapshot(),r=$(),Dp(r,n.measurePageBox())),Kp(t,n.latestValues,n.snapshot?.layoutBox,r)}return Bf(this.latestValues)&&Kp(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==K.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=K.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Rp(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Dp(this.target,this.layout.layoutBox),Kf(this.target,this.targetDelta)):Dp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),pf.value&&ym.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||zf(this.parent.latestValues)||Vf(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Bp(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Dp(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===K.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Dp(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Yf(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=$());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Op(this.prevProjectionDelta.x,this.projectionDelta.x),Op(this.prevProjectionDelta.y,this.projectionDelta.y)),Ip(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!em(this.projectionDelta.x,this.prevProjectionDelta.x)||!em(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),pf.value&&ym.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=vf(),this.projectionDelta=vf(),this.projectionDeltaWithTransform=vf()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=vf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=$(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Wm));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=X(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=X(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Vm(o.x,e.x,n),Vm(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bp(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Um(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Xp(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||(f=$()),Dp(f,this.relativeTarget)),c&&(this.animationValues=a,om(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Ys(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{vm.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ku(0)),this.motionValue.jump(0,!1),this.currentAnimation=dm(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(xm),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Xm(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||$();let t=Np(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Np(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Dp(t,n),$f(t,i),Ip(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new _m),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Cm(`z`,e,r,this.animationValues);for(let t=0;t<bm.length;t++)Cm(`rotate${bm[t]}`,e,r,this.animationValues),Cm(`skew${bm[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=gm(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=gm(t?.pointerEvents)||``),this.hasProjected&&!Bf(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=nm(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in up){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=up[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?gm(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(jm),this.root.sharedNodes.clear()}}}function Em(e){e.updateLayout()}function Dm(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)tm(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Np(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Ep(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Xm(i,t.layoutBox,n)&&tm(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Np(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=vf();Ip(o,n,t.layoutBox);let s=vf();a?Ip(s,e.applyTransform(r,!0),t.measuredBox):Ip(s,n,t.layoutBox);let c=!Jp(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=$();Bp(s,t.layoutBox,i.layoutBox,o);let c=$();Bp(c,n,a.layoutBox,o),Qp(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Om(e){pf.value&&ym.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function km(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Am(e){e.clearSnapshot()}function jm(e){e.clearMeasurements()}function Mm(e){e.isLayoutDirty=!0,e.updateLayout()}function Nm(e){e.isLayoutDirty=!1}function Pm(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Fm(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Im(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Lm(e){e.resolveTargetDelta()}function Rm(e){e.calcProjection()}function zm(e){e.resetSkewAndRotation()}function Bm(e){e.removeLeadSnapshot()}function Vm(e,t,n){e.translate=X(t.translate,0,n),e.scale=X(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hm(e,t,n,r){e.min=X(t.min,n.min,r),e.max=X(t.max,n.max,r)}function Um(e,t,n,r){Hm(e.x,t.x,n.x,r),Hm(e.y,t.y,n.y,r)}function Wm(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Gm={duration:.45,ease:[.4,0,.1,1]},Km=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),qm=Km(`applewebkit/`)&&!Km(`chrome/`)?Math.round:gs;function Jm(e){e.min=qm(e.min),e.max=qm(e.max)}function Ym(e){Jm(e.x),Jm(e.y)}function Xm(e,t,n){return e===`position`||e===`preserve-aspect`&&!Pp($p(t),$p(n),.2)}function Zm(e){return e!==e.root&&e.scroll?.wasRoot}var Qm=Tm({attachResizeListener:(e,t)=>fm(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),$m={current:void 0},eh=Tm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!$m.current){let e=new Qm({});e.mount(window),e.setOptions({layoutScroll:!0}),$m.current=e}return $m.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),th={some:0,all:1};function nh(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Wd(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n)if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:th[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var rh=(e,t)=>Math.abs(e-t);function ih(e,t){let n=rh(e.x,t.x),r=rh(e.y,t.y);return Math.sqrt(n**2+r**2)}typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var ah=e=>e!==void 0;function oh({current:e}){return e?e.ownerDocument.defaultView:null}function sh(e){if(e)return e.nodeType===3||e.nodeType===8?sh(e.nextSibling):e}var[ch,lh,uh]=os(`Motion`),[dh,fh,ph]=os(`LayoutGroup`),mh={reducedMotion:`never`,transition:void 0,nonce:void 0},[hh,gh,_h]=os(`MotionConfig`);function vh(){return hh(Ia(()=>mh))}var yh={motionAttribute:`data-ap`},bh=[];function xh(e){for(let t of e)t&&!bh.includes(t)&&bh.push(t)}function Sh(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=Sh(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function Ch(e,t,n){let r=Sh(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function wh(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...Ch(e[i]||t?.[i],e.variants,r)}),{})}function Th(e,t){let n=t?.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Eh=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function Dh(e){return Eh.has(e)}var Oh=new WeakMap,kh=class{constructor(e,t){this.element=null,this.isExiting=!1,this.presenceContainer=null,this.children=new Set,this.features=new Map,this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=wh(e,this.context),this.type=Dh(this.options.as)?`svg`:`html`}get context(){return this._context||(this._context=new Proxy({},{get:(e,t)=>{let n=this.options[t];return Sf(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}})),this._context}updateFeatures(){if(this.visualElement)for(let e of bh){this.features.has(e.key)||this.features.set(e.key,new e(this));let t=this.features.get(e.key);this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){Oh.set(e,this),this.element=e;let t=this.options.presenceContext?.presenceId;t!==void 0&&e.setAttribute(yh.motionAttribute,t),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(this.options,!1)}unmount(){this.parent?.children?.delete(this),Oh.delete(this.element),this.features.forEach(e=>e.unmount?.()),this.visualElement?.unmount()}beforeUpdate(){this.getSnapshot(this.options,void 0)}update(){this.updateFeatures(),this.didUpdate()}tryExitComplete(){this.isExiting||this.options?.layoutId&&this.visualElement.projection?.currentAnimation?.state===`running`||this.options.presenceContext?.onMotionExitComplete?.(this.presenceContainer,this)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0),this.visualElement?.animationState?.setActive(e,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1,this.options?.layoutId?G.postRender(()=>this.tryExitComplete()):this.tryExitComplete())})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.visualElement.parent?.addChild(this.visualElement),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e,t){}didUpdate(){}},Ah=class{constructor(e){this.state=e}mount(){}unmount(){}update(){}},jh=[`initial`,`animate`,`exit`,`whileHover`,`whileDrag`,`whileFocus`,`whilePress`],Mh=jh.length;function Nh(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&Nh(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<Mh;n++){let r=jh[n],i=e.props[r];(Sf(i)||i===!1)&&(t[r]=i)}return t}var Ph=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whilePress`,`whileDrag`,`exit`],Fh=[...Ph].reverse(),Ih=Ph.length;function Lh(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Rh(){return{animate:Lh(!0),whileInView:Lh(),whileHover:Lh(),whilePress:Lh(),whileDrag:Lh(),whileFocus:Lh(),exit:Lh()}}function zh(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Th(t,e):!1}function Bh(e){return Array.isArray(e)}function Vh(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Cd(e,t,n)))}function Hh(e){let t=Vh(e),n=Rh(),r=!0,i=t=>(n,r)=>{let i=cd(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=Nh(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<Ih;t++){let f=Fh[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Sf(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||xf(m)||typeof m==`boolean`)continue;let v=zh(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(Object.hasOwnProperty.call(u,e))continue;let r=!1;r=Bh(t)&&Bh(n)?!Th(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let ee=_&&v;y&&(!ee||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!ee&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=cd(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=Vu(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=cd(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>{e.animationState?.setActive(t,r)}),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=Rh(),r=!0}}}function Uh(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var Wh,Gh=(Wh=class extends Ah{constructor(e){super(e);let t=e.visualElement;t.animationState||(t.animationState=Hh(t))}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;xf(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){Uh(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}},Wh.key=`animation`,Wh);function Kh(e,t){return Dh(e)?new Tp(t):new hp(t)}var qh;function Jh(e){return{point:{x:e.pageX,y:e.pageY}}}var Yh=(qh=class extends Ah{constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;!e||!this.isActive()||(this.removePress?.(),this.removePress=df(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&G.postRender(()=>n.onPressStart(t,Jh(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&G.postRender(()=>r(e,Jh(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}},qh.key=`press`,qh);function Xh(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function Zh(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function Qh(e){return t=>Xh(t)&&e(t,Zh(t))}var $h,eg=($h=class extends Ah{constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;!e||!this.isActive()||(this.removeHover?.(),this.removeHover=$d(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&G.postRender(()=>n.onHoverStart(t,Zh(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&G.postRender(()=>t(e,Zh(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},$h.key=`hover`,$h),tg,ng=(tg=class extends Ah{constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=nh(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&G.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&G.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}},tg.key=`inView`,tg);function rg(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var ig,ag=(ig=class extends Ah{constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&(this.state.setActive(`whileFocus`,!1),this.isFocused=!1)}mount(){let e=this.state.element;this.removeFocus=_s(rg(e,`focus`,()=>this.onFocus()),rg(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}},ig.key=`focus`,ig);function og(e){if(e)return e.options.allowProjection===!1?og(e.parent):e.projection}var sg={borderRadius:{...cp,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:cp,borderTopRightRadius:cp,borderBottomLeftRadius:cp,borderBottomRightRadius:cp,boxShadow:lp};function cg(e){return typeof e==`object`&&!!e&&`nodeType`in e}var lg=typeof window>`u`,ug,dg=(ug=class extends Ah{constructor(e){super(e),dp(sg),lg||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new eh(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:og(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&cg(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.options.presenceContext?.onMotionExitComplete?.(this.state.presenceContainer,this.state)})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}},ug.key=`projection`,ug);function fg(e,t,n,r){return rg(e,t,Qh(n),r)}var pg=new Set([`auto`,`scroll`]),mg=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=_g(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=ih(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=K;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=hg(t,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=_g(e.type===`pointercancel`?this.lastMoveEventInfo:hg(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Xh(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=hg(Zh(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=K;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,_g(o,this.history)),this.removeListeners=_s(fg(this.contextWindow,`pointermove`,this.handlePointerMove),fg(this.contextWindow,`pointerup`,this.handlePointerUp),fg(this.contextWindow,`pointercancel`,this.handlePointerUp)),a&&this.startScrollTracking(a)}isScrollable(e){let t=window.getComputedStyle(e);return t.overflow===`auto`||t.overflow===`scroll`||t.overflowX===`auto`||t.overflowX===`scroll`||t.overflowY===`auto`||t.overflowY===`scroll`}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(pg.has(e.overflowX)||pg.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),G.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),Ys(this.updatePoint)}};function hg(e,t){return t?{point:t(e.point)}:e}function gg(e,t){return{x:e.x-t.x,y:e.y-t.y}}function _g({point:e},t){return{point:e,delta:gg(e,yg(t)),offset:gg(e,vg(t)),velocity:bg(t,.1)}}function vg(e){return e[0]}function yg(e){return e[e.length-1]}function bg(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=yg(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>bs(t)));)n--;if(!r)return{x:0,y:0};let a=xs(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}var xg;function Sg(e){return(t,n)=>{e&&G.postRender(()=>e(t,n))}}var Cg=(xg=class extends Ah{constructor(...e){super(...e),this.removePointerDownListener=gs}onPointerDown(e){this.session=new mg(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:oh(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Sg((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Sg((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&G.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=fg(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},xg.key=`pan`,xg);function wg(e){let t=null;return()=>t===null?(t=e,()=>{t=null}):!1}var Tg=wg(`dragHorizontal`),Eg=wg(`dragVertical`);function Dg(e){let t=!1;if(e===`y`)t=Eg();else if(e===`x`)t=Tg();else{let e=Tg(),n=Eg();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Og(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?X(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?X(n,e,r.max):Math.min(e,n)),e}var kg=.35;function Ag(e,{top:t,left:n,bottom:r,right:i}){return{x:jg(e.x,n,i),y:jg(e.y,t,r)}}function jg(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Mg(e=kg){return e===!1?e=0:e===!0&&(e=kg),{x:Ng(e,`left`,`right`),y:Ng(e,`top`,`bottom`)}}function Ng(e,t,n){return{min:Pg(e,t),max:Pg(e,n)}}function Pg(e,t){return typeof e==`number`?e:e[t]||0}function Fg(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Ig(e,t){return{x:Lg(e.x,t.x),y:Lg(e.y,t.y)}}function Lg(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Rg(e,t){let n=.5,r=Np(e),i=Np(t);return i>r?n=vs(t.min,t.max-r,e.min):r>i&&(n=vs(e.min,e.max-i,t.min)),us(0,1,n)}var zg=new WeakMap,Bg=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1}={}){let n=e=>{t?this.stopAnimation():this.pauseAnimation(),t&&this.snapToCursor(Zh(e,`page`).point)},r=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Dg(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),tm(e=>{let t=this.getAxisMotionValue(e).get()||0;if(xc.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Np(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&G.postRender(()=>i(e,t)),hd(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Hg(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>tm(e=>this.getAnimationState(e)===`paused`&&this.getAxisMotionValue(e).animation?.play()),{dragSnapToOrigin:s}=this.getProps();this.panSession=new mg(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:oh(this.visualElement),element:this.state.element})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&G.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!Vg(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Og(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&cg(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=Ag(n.layoutBox,e):this.constraints=!1,this.elastic=Mg(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&tm(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Fg(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!cg(e))return!1;let n=e,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=tp(n,r.root,this.visualElement.getTransformPagePoint()),a=Ig(r.layout.layoutBox,i);if(t){let e=t(If(a));this.hasMutatedConstraints=!!e,e&&(a=Ff(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=tm(o=>{if(!Vg(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return hd(this.visualElement,e),n.start(nd(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&tm(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){tm(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){tm(t=>{let{drag:n}=this.getProps();if(!Vg(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-X(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!cg(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};tm(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Rg({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),tm(t=>{if(!Vg(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(X(i,a,r[t]))})}addListeners(){if(!this.state.element)return;zg.set(this.visualElement,this);let e=this.state.element,t=fg(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();cg(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),G.read(n);let a=rg(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(tm(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=kg,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function Vg(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Hg(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Ug,Wg=(Ug=class extends Ah{constructor(e){super(e),this.removeGroupControls=gs,this.removeListeners=gs,this.controls=new Bg(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gs}unmount(){this.removeGroupControls(),this.removeListeners()}},Ug.key=`drag`,Ug),Gg,Kg=!1,qg={renderer:Kh,features:[Gh,Yh,eg,ng,ag,dg,Cg,Wg,(Gg=class extends Ah{constructor(e){super(e),this.hasMountSettled=!1,dp(sg),e.getSnapshot=this.getSnapshot.bind(this),e.didUpdate=this.didUpdate.bind(this)}updatePrevLead(e){let t=e.getStack();t?.prevLead&&!t.prevLead.snapshot&&(t.prevLead.willUpdate(),Kg=!0)}didUpdate(){Kg&&(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&(Kg=!1,this.state.visualElement.projection?.root?.didUpdate())}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!Uh(this.state.element);n.isPresent=e,e?n.promote():n.relegate(),this.updatePrevLead(n)}t?.group?.add(n),vm.hasEverUpdated=!0}this.didUpdate(),G.postRender(()=>{this.hasMountSettled=!0})}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&(e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t),this.state.options.layoutId&&(Kg=!0),this.didUpdate())}getSnapshot(e,t){let n=this.state.visualElement.projection,{drag:r,layoutDependency:i,layout:a,layoutId:o}=e;if(!n||!a&&!o&&!r||!this.hasMountSettled)return;Kg=!0;let s=this.state.options;(r||s.layoutDependency!==i||i===void 0||ah(t)&&n.isPresent!==t)&&n.willUpdate(),ah(t)&&t!==n.isPresent&&(n.isPresent=t,t?(n.promote(),this.updatePrevLead(n)):n.relegate())}},Gg.key=`layout`,Gg)]},[Jg,Yg]=os(`LazyMotionContext`),[Xg,Zg,Qg]=os(`AnimatePresenceContext`);function $g(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function e_(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function t_(){return{...e_(),attrs:{}}}function n_(e){let t=e_();ap(t,e);let n={...t.style};for(let e in t.vars)n[e]=t.vars[e];return Object.keys(n).length===0?null:n}function r_(e,t,n){let r=t_();bp(r,e,Sp(t),void 0,n);let i={};for(let e in r.attrs){let t=xp.has(e)?e:$g(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function i_(e,t){let n=ch(null),r=dh({}),i=vh(),a=Xg({}),o=Jg({features:Kt({}),strict:!1}),s=Ir();function c(){return ss(e,{layoutGroup:r,presenceContext:a,config:i.value})}function l(){return{...s,...c()}}let u=new kh(l(),n);lh(u),t&&u.initVisualElement(t),Nn(o.features,e=>{e.features?.length&&xh(e.features),e.renderer&&u.initVisualElement(e.renderer),u.updateFeatures()},{immediate:!0,flush:`pre`});function d(){let t=u.type===`svg`,n={...s};Object.keys(s).forEach(e=>{Q(s[e])&&(n[e]=s[e].get())});let r=u.visualElement?.latestValues||u.latestValues,i={...e.style,...t?{}:r};for(let e in i)Q(i[e])&&(i[e]=i[e].get());if(t){let{attrs:t,style:a}=r_({...r,...i},u.options.as,e.style);Object.assign(n,t),i=a}e.drag&&e.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let a=n_(i);return a&&(n.style=a),n}let f=va().proxy;return hr(()=>{let e=sh(f.$el);u.mount(e)}),vr(()=>u.beforeUnmount()),yr(()=>{sh(f.$el)?.isConnected||u.unmount()}),gr(()=>{u.beforeUpdate(),u.updateOptions(l())}),_r(()=>{u.update()}),{getProps:c,getAttrs:d,layoutGroup:r,state:u}}var a_={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},o_=new Map,s_=new Map;function c_(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var l_=[`area`,`img`,`input`];function u_(e,t,n){if(typeof e==`string`&&l_.includes(e))return La(e,t);if(e===`template`){if(!n.default)return null;let e=c_(n.default()),r=e.findIndex(e=>e.type!==z);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?pa(t,i.props):t;t.class&&i.props?.class&&delete i.props.class;let o=sa(i,a);for(let e in a)e.startsWith(`on`)&&(o.props||(o.props={}),o.props[e]=a[e]);return e.length===1?o:(e[r]=o,e)}return null}function d_(e,t={}){let n=typeof e==`string`,r=n?e:e.name||``,i=t.renderer?o_:s_;if(n&&i?.has(e))return i.get(e);let a=er({inheritAttrs:!1,props:{...a_,as:{type:[String,Object],default:e||`div`}},name:r?`motion.${r}`:`Motion`,setup(e,{slots:n}){let{getProps:r,getAttrs:i,state:a}=i_(e,t.renderer);function o(){let t=a.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=i();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let t=r(),a=i(),s=e.asChild?`template`:e.as,c={...e.forwardMotionProps?t:{},...a,onVnodeUpdated:o},l=u_(s,c,n);return l===null?La(s,{...c},n):l}}});return n&&i?.set(e,a),a}function f_(e){let t=e?.renderer;return xh(e?.features||[]),new Proxy({},{get(e,n){return n===`create`?(e,n)=>d_(e,{...n,renderer:t}):d_(n,{renderer:t})}})}var p_=f_(qg);p_.create(`div`);var m_=0;function h_(e){let t=new WeakMap,n=vh();function r(r){if(e.mode!==`popLayout`)return;let i=r.offsetParent,a=i instanceof HTMLElement&&i.offsetWidth||0,o={height:r.offsetHeight||0,width:r.offsetWidth||0,top:r.offsetTop,left:r.offsetLeft,right:0};o.right=a-o.width-o.left;let s=e.anchorX===`left`?`left: ${o.left}px`:`right: ${o.right}px`,c=`pop-${m_++}`;r.dataset.motionPopId=c;let l=document.createElement(`style`);n.value.nonce&&(l.nonce=n.value.nonce),t.set(r,l),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
[data-motion-pop-id="${c}"] {
position: absolute !important;
width: ${o.width}px !important;
height: ${o.height}px !important;
top: ${o.top}px !important;
${s} !important;
}
`)}function i(e){let n=t.get(e);n&&(t.delete(e),G.render(()=>{document.head.removeChild(n)}))}return{addPopStyle:r,removePopStyle:i}}var g_=0;function __(e){let t=String(g_++),n=new Map,{addPopStyle:r,removePopStyle:i}=h_(e);function a(e){let n=[],r=Oh.get(e);r&&e.getAttribute(yh.motionAttribute)===t&&n.push(r);let i=Array.from(e.querySelectorAll(`[${yh.motionAttribute}="${t}"]`));for(let e of i){let t=Oh.get(e);t&&n.push(t)}return n}function o(e,t){let r=n.get(e);r&&(r.remaining.delete(t),r.remaining.size===0&&c(r))}let s={initial:e.initial,custom:e.custom,presenceId:t,onMotionExitComplete:o};Zg(s),hr(()=>{s.initial=void 0});function c(t){i(t.el),t.states.forEach(e=>{e.getSnapshot(e.options,!1)}),t.done(),n.delete(t.el),t.el?.isConnected?t.states[0]?.didUpdate():t.states.forEach(e=>{e.unmount()}),e.onExitComplete?.()}function l(e,t){a(e).forEach(e=>{e.setActive(`exit`,!1),e.getSnapshot(e.options,!0)}),t()}function u(t,i){s.custom=e.custom;let o=t,c=a(o);if(c.length===0){i(),e.onExitComplete?.();return}let l={remaining:new Set(c),states:c,done:i,el:o};n.set(o,l),r(o),c.forEach(e=>{e.presenceContainer=o,e.setActive(`exit`,!0),e.getSnapshot(e.options,!1)}),c[0]?.didUpdate()}return yr(()=>{n.forEach(e=>{e.states.forEach(e=>{e.unmount()})}),n.clear()}),{enter:l,exit:u}}var v_=er({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(e){let t=e,{enter:n,exit:r}=__(t),i=Ia(()=>t.mode===`wait`?{mode:t.mode===`wait`?`out-in`:void 0}:{tag:t.as});return(e,t)=>(B(),ea(Er(e.mode===`wait`?Qa:Jo),pa(i.value,{appear:``,css:!1,onLeave:P(r),onEnter:P(n)}),{default:Dn(()=>[Ar(e.$slots,`default`)]),_:3},16,[`onLeave`,`onEnter`]))}}),y_={class:`ending`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`ending-title`},b_={class:`micro-label`},x_={__name:`EndingOverlay`,props:{grade:{type:String,default:``}},emits:[`restart`],setup(e,{emit:t}){let n=e,r=t,i=Kt(null),a;function o(e){e.key===`Tab`&&(e.preventDefault(),i.value?.focus())}return hr(async()=>{a=document.activeElement,await gn(),i.value?.focus(),document.addEventListener(`keydown`,o)}),vr(()=>{document.removeEventListener(`keydown`,o),a instanceof HTMLElement&&a.isConnected&&a.focus()}),(e,t)=>(B(),V(`div`,y_,[t[5]||(t[5]=H(`div`,{class:`ending__stars`,"aria-hidden":`true`},null,-1)),U(P(p_).div,{class:`ending__content`,initial:{opacity:0,y:40},animate:{opacity:1,y:0},transition:{duration:1.1}},{default:Dn(()=>[H(`span`,b_,`MISSION COMPLETE · `+O(n.grade),1),t[1]||(t[1]=H(`h2`,{id:`ending-title`},`两片海的黎明`,-1)),t[2]||(t[2]=H(`p`,null,`在另一片没有名字的海里,有东西第一次记住了自己。`,-1)),t[3]||(t[3]=H(`div`,{class:`ending__line`},null,-1)),t[4]||(t[4]=H(`p`,{class:`ending__epilogue`},`跨越群星之后,你又听见了潮声。汐原仍在风暴中呼吸,而新潮的第一枚细胞正在分裂。`,-1)),H(`button`,{ref_key:`restartButton`,ref:i,type:`button`,class:`ghost-button`,onClick:t[0]||(t[0]=e=>r(`restart`))},`播种下一颗世界`,512)]),_:1})]))}},S_=[`aria-label`],C_={class:`star-field`,"aria-hidden":`true`},w_={key:0,class:`city-lights`},T_={key:1,class:`launch-trail`},E_={class:`scene-label scene-label--left`},D_={class:`scene-label scene-label--right`},O_={class:`pulse-core__eyebrow`},k_={class:`pulse-core__action`},A_={__name:`EvolutionScene`,props:{phase:{type:Object,required:!0},phaseIndex:{type:Number,required:!0},essence:{type:Number,required:!0},clickPower:{type:Number,required:!0},autoRate:{type:Number,required:!0},launched:{type:Boolean,default:!1}},emits:[`pulse`],setup(e,{emit:t}){let n=e,r=t,i=Ia(()=>Math.floor(n.essence).toLocaleString(`zh-CN`)),a=Array.from({length:34},(e,t)=>({left:`${(t*47+11)%100}%`,top:`${(t*31+7)%92}%`,size:`${1+t%3*.6}px`,delay:`${t%9*-.7}s`}));return(t,n)=>(B(),V(`section`,{class:`evolution-scene`,"aria-label":`${e.phase.name} 行星视图`},[H(`div`,C_,[(B(!0),V(R,null,kr(P(a),(e,t)=>(B(),V(`i`,{key:t,style:fe({left:e.left,top:e.top,width:e.size,height:e.size,animationDelay:e.delay})},null,4))),128))]),n[9]||(n[9]=H(`div`,{class:`orbit orbit--wide`,"aria-hidden":`true`},[H(`span`)],-1)),n[10]||(n[10]=H(`div`,{class:`orbit orbit--tight`,"aria-hidden":`true`},[H(`span`)],-1)),n[11]||(n[11]=H(`div`,{class:`scan-line`,"aria-hidden":`true`},null,-1)),U(P(p_).div,{class:`planet-stage`,initial:{opacity:0,scale:.72},animate:{opacity:1,scale:1,rotate:e.phaseIndex*4},transition:{type:`spring`,stiffness:75,damping:18}},{default:Dn(()=>[n[5]||(n[5]=H(`div`,{class:`planet-glow`},null,-1)),H(`div`,{class:_e([`planet`,`planet--${e.phase.id}`])},[n[1]||(n[1]=H(`div`,{class:`planet-atmosphere`},null,-1)),n[2]||(n[2]=H(`div`,{class:`planet-grid`},null,-1)),n[3]||(n[3]=H(`div`,{class:`planet-continent continent-a`},null,-1)),n[4]||(n[4]=H(`div`,{class:`planet-continent continent-b`},null,-1)),e.phaseIndex>=2?(B(),V(`div`,w_)):la(``,!0),e.phaseIndex===3?(B(),V(`div`,T_)):la(``,!0)],2)]),_:1},8,[`animate`]),H(`div`,E_,[n[6]||(n[6]=H(`span`,null,`BIOSPHERE STATUS`,-1)),H(`strong`,null,O(e.phaseIndex===0?`CHEMICAL DAWN`:e.phaseIndex===1?`LAND AWAKENED`:e.phaseIndex===2?`CIVIL SIGNAL`:`LAUNCH WINDOW`),1)]),H(`div`,D_,[n[7]||(n[7]=H(`span`,null,`AUTONOMOUS YIELD`,-1)),H(`strong`,null,`+`+O(e.autoRate.toFixed(1))+` / S`,1)]),U(P(p_).button,{class:`pulse-core`,"data-test":`pulse`,type:`button`,"aria-label":`采集${e.phase.resourceName}`,disabled:e.launched,"while-hover":{scale:1.04},"while-press":{scale:.91},onClick:n[0]||(n[0]=e=>r(`pulse`))},{default:Dn(()=>[n[8]||(n[8]=H(`span`,{class:`pulse-core__halo`,"aria-hidden":`true`},null,-1)),H(`span`,O_,O(e.phase.resourceName),1),H(`strong`,null,O(i.value),1),H(`span`,k_,`点击汇聚 +`+O(e.clickPower),1)]),_:1},8,[`aria-label`,`disabled`]),n[12]||(n[12]=H(`div`,{class:`scene-coordinate`,"aria-hidden":`true`},`31°14 N · 121°28 E / 汐原观测面`,-1))],8,S_))}},j_={class:`milestone-rail`,"aria-labelledby":`milestone-title`},M_={class:`rail-header`},N_={class:`rail-count`},P_={class:`rail-progress`,"aria-hidden":`true`},F_={class:`milestone-list`},I_={class:`milestone__index`},L_={class:`milestone__copy`},R_={class:`milestone__cost`},z_={__name:`MilestoneRail`,props:{phase:{type:Object,required:!0},essence:{type:Number,required:!0},completed:{type:Array,required:!0}},emits:[`purchase`],setup(e,{emit:t}){let n=e,r=t,i=Ia(()=>n.phase.milestones.filter(e=>n.completed.includes(e.id)).length),a=Ia(()=>`${i.value/n.phase.milestones.length*100}%`);return(t,n)=>(B(),V(`section`,j_,[H(`header`,M_,[n[0]||(n[0]=H(`div`,null,[H(`span`,{class:`micro-label`},`EVOLUTION SEQUENCE`),H(`h2`,{id:`milestone-title`},`纪元里程碑`)],-1)),H(`span`,N_,`0`+O(i.value)+` / 0`+O(e.phase.milestones.length),1)]),H(`div`,P_,[H(`span`,{style:fe({width:a.value})},null,4)]),H(`div`,F_,[(B(!0),V(R,null,kr(e.phase.milestones,(t,n)=>(B(),ea(P(p_).button,{key:t.id,class:_e([`milestone`,{"is-complete":e.completed.includes(t.id)}]),type:`button`,disabled:e.completed.includes(t.id)||e.essence<t.cost,"data-test":`milestone-${t.id}`,initial:{opacity:0,x:24},animate:{opacity:1,x:0},transition:{delay:n*.09,duration:.45},"while-hover":e.completed.includes(t.id)?{}:{x:-5},onClick:e=>r(`purchase`,t.id)},{default:Dn(()=>[H(`span`,I_,`0`+O(n+1),1),H(`span`,L_,[H(`strong`,null,O(t.name),1),H(`small`,null,O(t.description),1)]),H(`span`,R_,[e.completed.includes(t.id)?(B(),V(R,{key:0},[ca(`已完成`)],64)):(B(),V(R,{key:1},[ca(`消耗 `+O(t.cost.toLocaleString(`zh-CN`)),1)],64))])]),_:2},1032,[`class`,`disabled`,`data-test`,`transition`,`while-hover`,`onClick`]))),128))])]))}},B_={class:`signal-log`,"aria-labelledby":`signal-title`},V_={class:`signal-log__entries`},H_={__name:`SignalLog`,props:{log:{type:Array,required:!0}},setup(e){return(t,n)=>(B(),V(`section`,B_,[n[0]||(n[0]=H(`div`,{class:`signal-log__head`},[H(`span`,{class:`signal-dot`,"aria-hidden":`true`}),H(`span`,{id:`signal-title`},`生命信号 / LIVE FEED`)],-1)),H(`div`,V_,[(B(!0),V(R,null,kr(e.log.slice(-3),(t,n)=>(B(),ea(P(p_).p,{key:`${t}-${n}`,initial:{opacity:0,y:8},animate:{opacity:n===e.log.slice(-3).length-1?1:.45,y:0}},{default:Dn(()=>[H(`span`,null,O(String(n+1).padStart(2,`0`)),1),ca(O(t),1)]),_:2},1032,[`animate`]))),128))])]))}},U_=(e,t,n)=>Math.min(n,Math.max(t,e)),W_=[{id:`tidepool`,name:`潮池纪元`,chapter:`CHAPTER 01`,resourceName:`生命质`,glyph:`◌`,accent:`#58f3c4`,headline:`在无名之海,学会记住自己`,story:`雷暴越过汐原的海面。某些分子开始复制,而你在复制之间醒来。`,transition:`陆冠纪元开始:生命第一次离开海洋。`,milestones:[{id:`membrane`,name:`脂质膜`,description:`为脆弱的化学反应围起第一道边界。`,cost:12,effect:{auto:.45,insight:1},signal:`边界诞生,内与外第一次有了意义。`},{id:`photosynthesis`,name:`光合作用`,description:`把暮阳的光转译成稳定能量。`,cost:38,effect:{click:2,auto:.8,balance:5,insight:1},signal:`海水泛起绿色,天空开始改变颜色。`},{id:`nucleus`,name:`遗传核心`,description:`保存更长的记忆,允许生命变得复杂。`,cost:90,effect:{auto:2.2,insight:2},signal:`无数偶然被写成可以继承的秩序。`}]},{id:`landcrown`,name:`陆冠纪元`,chapter:`CHAPTER 02`,resourceName:`生境力`,glyph:`⌁`,accent:`#b8f36b`,headline:`让海的记忆覆盖大陆`,story:`风吹过尚未命名的大陆。生命带着海盐,缓慢爬向干燥的光。`,transition:`炉城纪元开始:智慧生命点燃了第一簇火。`,milestones:[{id:`roots`,name:`根系网络`,description:`植物固定土壤,为整个陆地生态供能。`,cost:70,effect:{auto:3.5,balance:8,insight:2},signal:`绿色沿河谷蔓延,大陆拥有了呼吸。`},{id:`symmetry`,name:`灵巧肢体`,description:`感知、移动与协作带来新的生存方式。`,cost:180,effect:{click:4,auto:4.5,insight:2},signal:`生命不再只等待环境,而开始寻找环境。`},{id:`sentience`,name:`群体心智`,description:`记忆跨越个体,语言跨越世代。`,cost:420,effect:{auto:7,balance:4,insight:4},signal:`它们第一次抬头观察星空,并提出了为什么。`}]},{id:`forgecity`,name:`炉城纪元`,chapter:`CHAPTER 03`,resourceName:`文明火种`,glyph:`⌬`,accent:`#ffb45b`,headline:`火焰照亮城市,也照见代价`,story:`城市沿海岸升起。天文学家同时发现:暮阳正在变得不再稳定。`,transition:`星种纪元开始:整个文明把目光投向大气层之外。`,milestones:[{id:`agriculture`,name:`共生农业`,description:`让聚落增长,而不是透支脚下的土壤。`,cost:280,effect:{auto:15,balance:12,insight:4},signal:`文明学会收获,也学会留下下一季的种子。`},{id:`observatory`,name:`暮阳观测阵列`,description:`确认超级耀斑将在八百年内剥离大气。`,cost:700,effect:{click:10,auto:20,insight:6},signal:`长夜被算出了日期,世界第一次拥有共同的倒计时。`},{id:`covenant`,name:`行星公约`,description:`守园者与远航者共同签署星种计划。`,cost:1500,effect:{auto:35,balance:10,insight:8},signal:`延续生命与守护故乡,不再是两条相反的道路。`}]},{id:`starseed`,name:`星种纪元`,chapter:`CHAPTER 04`,resourceName:`星航能量`,glyph:`✦`,accent:`#77b8ff`,headline:`在长夜之前,把潮声送往群星`,story:`轨道船坞进入最后施工期。暮阳的第一轮风暴已经抵达外层行星。`,transition:``,milestones:[{id:`archive`,name:`生命档案`,description:`保存微生物、种子、胚胎与文明记忆。`,cost:1100,effect:{auto:55,archive:45,insight:8},signal:`一整颗行星的生命,被浓缩成可以远航的花园。`},{id:`canopy`,name:`磁场天幕`,description:`为汐原抵挡恒星风,给故乡留下未来。`,cost:2500,effect:{auto:90,shield:65,balance:15,insight:10},signal:`人造极光覆盖天空,故乡在风暴中继续呼吸。`},{id:`ark`,name:`星种方舟`,description:`完成驶向新潮的最后一艘生态方舟。`,cost:5200,effect:{auto:140,archive:55,shield:35,insight:14},signal:`倒计时开始。另一片海正在航线尽头等待。`}]}],G_=new Set(W_.flatMap(e=>e.milestones.map(e=>e.id)));function K_(e,t,n=0,r=2**53-1,i=!1){return typeof e!=`number`||!Number.isFinite(e)?t:U_(i?Math.floor(e):e,n,r)}function q_(e=Date.now()){return{version:1,phase:0,essence:0,clickPower:1,autoRate:0,insight:0,balance:50,shield:0,archive:0,completedMilestones:[],storyLog:[`潮声第一次被听见。`],launched:!1,seedCount:0,lastUpdated:e,offlineSeconds:0}}function J_(e){return e.launched?e:{...e,essence:e.essence+e.clickPower}}function Y_(e,t){let n=W_[e.phase]?.milestones.find(e=>e.id===t);if(!n||e.completedMilestones.includes(t)||e.essence<n.cost)return e;let r=n.effect;return{...e,essence:e.essence-n.cost,clickPower:e.clickPower+(r.click??0),autoRate:e.autoRate+(r.auto??0),insight:e.insight+(r.insight??0),balance:U_(e.balance+(r.balance??0),0,100),shield:U_(e.shield+(r.shield??0),0,100),archive:U_(e.archive+(r.archive??0),0,100),completedMilestones:[...e.completedMilestones,t],storyLog:[...e.storyLog,n.signal].slice(-8)}}function X_(e){let t=W_[e.phase];return!!(t&&e.phase<W_.length-1&&t.milestones.every(t=>e.completedMilestones.includes(t.id)))}function Z_(e){if(!X_(e))return e;let t=W_[e.phase];return{...e,phase:e.phase+1,essence:0,storyLog:[...e.storyLog,t.transition].slice(-8)}}function Q_(e,t){return!Number.isFinite(e)||!Number.isFinite(t)?0:U_((t-e)/1e3,0,14400)}function $_(e,t,n=Date.now()){let r=Math.max(0,Number.isFinite(t)?t:0);if(e.launched)return e;let i=K_(e.essence,0),a=K_(e.autoRate,0);return{...e,essence:i+a*r,lastUpdated:n}}function ev(e,t=Date.now()){if(e.launched)return e;let n=Q_(e.lastUpdated,t);return{...$_(e,n,t),offlineSeconds:n}}function tv(e){let t=W_.at(-1);return!!(e.phase===W_.length-1&&!e.launched&&t.milestones.every(t=>e.completedMilestones.includes(t.id)))}function nv(e){if(!tv(e))return e;let t=e.balance>=80&&e.shield===100&&e.archive===100?`双生花园`:e.shield>=80?`故乡守望`:`远航火种`;return{...e,launched:!0,seedCount:e.seedCount+1,endingTitle:`两片海的黎明`,endingGrade:t,storyLog:[...e.storyLog,`另一片没有名字的海里,有东西第一次记住了自己。`].slice(-8)}}function rv(e){return JSON.stringify({...e,lastUpdated:Date.now()})}function iv(e,t=Date.now()){try{let n=JSON.parse(e);if(!n||n.version!==1||!Number.isInteger(n.phase))return q_(t);let r=q_(t),i=Array.isArray(n.completedMilestones)?[...new Set(n.completedMilestones.filter(e=>typeof e==`string`&&G_.has(e)))]:[],a=Array.isArray(n.storyLog)?n.storyLog.filter(e=>typeof e==`string`&&e.trim()).slice(-8):[],o=U_(n.phase,0,W_.length-1),s=n.launched===!0&&o===W_.length-1&&W_.at(-1).milestones.every(e=>i.includes(e.id));return ev({...r,phase:o,essence:K_(n.essence,r.essence),clickPower:K_(n.clickPower,r.clickPower,1),autoRate:K_(n.autoRate,r.autoRate),insight:K_(n.insight,r.insight,0,2**53-1,!0),balance:K_(n.balance,r.balance,0,100),shield:K_(n.shield,r.shield,0,100),archive:K_(n.archive,r.archive,0,100),seedCount:K_(n.seedCount,r.seedCount,0,2**53-1,!0),completedMilestones:i,storyLog:a.length?a:r.storyLog,launched:s,endingTitle:s&&typeof n.endingTitle==`string`?n.endingTitle:void 0,endingGrade:s&&typeof n.endingGrade==`string`?n.endingGrade:void 0,lastUpdated:K_(n.lastUpdated,t,0,t),offlineSeconds:0},t)}catch{return q_(t)}}var av={class:`mission-header`},ov={class:`mission-title`},sv={class:`mission-meta`},cv={class:`save-indicator`},lv={class:`mission-progress`,"aria-label":`总进度`},uv={id:`game`,class:`game-grid`},dv={class:`game-grid__scene`},fv={class:`micro-label`},pv={class:`command-panel`},mv={class:`resource-strip`},hv={"data-test":`essence`},gv={key:0,class:`final-meters`},_v={class:`epoch-button__copy`},vv={key:0},yv={class:`mission-footer`},bv=`star-seed-save-v1`;rs({__name:`App`,setup(e){let t=Kt(q_()),n=Kt(``),r=Kt(`本地自动存档`),i=Kt(``),a,o,s,c,l,u=Date.now(),d=Ia(()=>W_[t.value.phase]),f=Ia(()=>d.value.milestones.filter(e=>t.value.completedMilestones.includes(e.id)).length),p=Ia(()=>{let e=t.value.completedMilestones.length;return Math.round(e/W_.flatMap(e=>e.milestones).length*100)}),m=Ia(()=>X_(t.value)),h=Ia(()=>tv(t.value)),g=Ia(()=>({"--accent":d.value.accent,"--phase-progress":`${p.value}%`})),_=Ia(()=>Math.floor(t.value.essence).toLocaleString(`zh-CN`));function v(){s||(r.value=`等待本地存档`,s=window.setTimeout(()=>{s=void 0,ee()},800))}function y(e,n=!0){e!==t.value&&(t.value=e,n&&v())}function b(){y(J_(t.value))}function x(e){y(Y_(t.value,e))}function S(){let e=Z_(t.value);e!==t.value&&(y(e),n.value=W_[e.phase].name,window.clearTimeout(c),c=window.setTimeout(()=>{n.value=``},1500))}function C(){y(nv(t.value))}function w(){let e=t.value,n=q_();n.seedCount=e.seedCount,n.insight=e.insight,n.clickPower=1+e.seedCount*2,n.autoRate=e.seedCount*.5,n.storyLog=[`星种抵达新潮。生命记忆正在一片新的海里展开。`],y(n)}function T(){if(!(typeof window<`u`&&!window.confirm(`确认清除这颗世界的全部进度?`))){try{localStorage.removeItem(bv)}catch{}y(q_())}}function ee(){try{localStorage.setItem(bv,rv(t.value)),r.value=`已保存于本机`}catch{r.value=`存档不可用`}}function te(){try{let e=localStorage.getItem(bv);if(!e)return;t.value=iv(e),t.value.offlineSeconds>=5&&t.value.autoRate>0&&(i.value=`离线 ${Math.floor(t.value.offlineSeconds)} 秒,潮声为你积累了 ${Math.floor(t.value.offlineSeconds*t.value.autoRate).toLocaleString(`zh-CN`)} ${d.value.resourceName}`,l=window.setTimeout(()=>{i.value=``},6e3))}catch{r.value=`存档读取失败`}}function E(){document.visibilityState===`hidden`&&ee()}return hr(()=>{te(),u=Date.now(),a=window.setInterval(()=>{let e=Date.now(),n=Q_(u,e);u=e,y($_(t.value,n,e),!1)},250),o=window.setInterval(ee,5e3),document.addEventListener(`visibilitychange`,E)}),vr(()=>{window.clearInterval(a),window.clearInterval(o),window.clearTimeout(s),window.clearTimeout(c),window.clearTimeout(l),document.removeEventListener(`visibilitychange`,E),ee()}),(e,a)=>(B(),V(`main`,{class:`game-shell`,style:fe(g.value)},[a[12]||(a[12]=H(`div`,{class:`aurora aurora--one`,"aria-hidden":`true`},null,-1)),a[13]||(a[13]=H(`div`,{class:`aurora aurora--two`,"aria-hidden":`true`},null,-1)),a[14]||(a[14]=H(`div`,{class:`noise`,"aria-hidden":`true`},null,-1)),H(`header`,av,[a[2]||(a[2]=H(`a`,{class:`wordmark`,href:`#game`,"aria-label":`星种首页`},[H(`span`,{class:`wordmark__mark`},`✦`),H(`span`,null,[H(`strong`,null,`星种`),H(`small`,null,`STAR / SEED`)])],-1)),H(`div`,ov,[H(`span`,null,O(d.value.chapter),1),a[0]||(a[0]=H(`h1`,null,`星种:长夜之前`,-1))]),H(`div`,sv,[H(`span`,cv,[a[1]||(a[1]=H(`i`,null,null,-1)),ca(O(r.value),1)]),H(`button`,{type:`button`,class:`text-button`,onClick:T},`重置世界`)])]),H(`div`,lv,[H(`span`,{style:fe({width:`${p.value}%`})},null,4)]),H(`section`,uv,[H(`div`,dv,[(B(),ea(P(p_).div,{class:`chapter-copy`,key:d.value.id,initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.65}},{default:Dn(()=>[H(`span`,fv,O(d.value.chapter)+` · `+O(d.value.name),1),H(`h2`,null,O(d.value.headline),1),H(`p`,null,O(d.value.story),1)]),_:1})),U(A_,{phase:d.value,"phase-index":t.value.phase,essence:t.value.essence,"click-power":t.value.clickPower,"auto-rate":t.value.autoRate,launched:t.value.launched,onPulse:b},null,8,[`phase`,`phase-index`,`essence`,`click-power`,`auto-rate`,`launched`])]),H(`aside`,pv,[H(`div`,mv,[H(`div`,null,[H(`span`,null,O(d.value.resourceName),1),H(`strong`,hv,O(_.value),1)]),H(`div`,null,[a[3]||(a[3]=H(`span`,null,`文明洞见`,-1)),H(`strong`,null,O(t.value.insight),1)]),H(`div`,null,[a[4]||(a[4]=H(`span`,null,`生态平衡`,-1)),H(`strong`,null,O(Math.round(t.value.balance))+`%`,1)])]),(B(),ea(z_,{key:d.value.id,phase:d.value,essence:t.value.essence,completed:t.value.completedMilestones,onPurchase:x},null,8,[`phase`,`essence`,`completed`])),t.value.phase===3?(B(),V(`div`,gv,[H(`div`,null,[a[5]||(a[5]=H(`span`,null,`生命档案`,-1)),H(`i`,null,[H(`b`,{style:fe({width:`${t.value.archive}%`})},null,4)]),H(`strong`,null,O(t.value.archive)+`%`,1)]),H(`div`,null,[a[6]||(a[6]=H(`span`,null,`磁场天幕`,-1)),H(`i`,null,[H(`b`,{style:fe({width:`${t.value.shield}%`})},null,4)]),H(`strong`,null,O(t.value.shield)+`%`,1)])])):la(``,!0),t.value.phase<P(W_).length-1?(B(),ea(P(p_).button,{key:1,class:`epoch-button`,type:`button`,disabled:!m.value,"while-hover":m.value?{scale:1.01}:{},"while-press":m.value?{scale:.98}:{},onClick:S},{default:Dn(()=>[H(`span`,_v,[a[7]||(a[7]=H(`b`,null,`进入下一纪元`,-1)),m.value?la(``,!0):(B(),V(`small`,vv,`还需 `+O(d.value.milestones.length-f.value)+` 项里程碑`,1))]),a[8]||(a[8]=H(`strong`,null,`→`,-1))]),_:1},8,[`disabled`,`while-hover`,`while-press`])):(B(),ea(P(p_).button,{key:2,class:`epoch-button epoch-button--launch`,type:`button`,disabled:!h.value,"while-hover":h.value?{scale:1.01}:{},"while-press":h.value?{scale:.98}:{},onClick:C},{default:Dn(()=>[...a[9]||(a[9]=[H(`span`,null,`发射星种方舟`,-1),H(`strong`,null,`↗`,-1)])]),_:1},8,[`disabled`,`while-hover`,`while-press`])),U(H_,{log:t.value.storyLog},null,8,[`log`])])]),H(`footer`,yv,[a[10]||(a[10]=H(`span`,null,`XIYUAN BIOSPHERE / BUILD 1.0`,-1)),H(`span`,null,O(f.value)+` / `+O(d.value.milestones.length)+` 当前纪元节点`,1),H(`span`,null,`进化总进度 `+O(p.value)+`%`,1)]),U(P(v_),null,{default:Dn(()=>[n.value?(B(),ea(P(p_).div,{key:`transition`,class:`phase-transition`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0}},{default:Dn(()=>[U(P(p_).div,{initial:{scaleX:0},animate:{scaleX:1},transition:{duration:.7}}),a[11]||(a[11]=H(`span`,null,`NEW EPOCH`,-1)),H(`strong`,null,O(n.value),1)]),_:1})):la(``,!0)]),_:1}),U(P(v_),null,{default:Dn(()=>[t.value.launched?(B(),ea(x_,{key:`ending`,grade:t.value.endingGrade,onRestart:w},null,8,[`grade`])):la(``,!0)]),_:1}),i.value?(B(),ea(P(p_).div,{key:0,class:`offline-notice`,initial:{opacity:0,y:20},animate:{opacity:1,y:0}},{default:Dn(()=>[ca(O(i.value),1)]),_:1})):la(``,!0)],4))}}).mount(`#app`);</script>
<style rel="stylesheet" crossorigin>@layer reset{*,:before,:after{box-sizing:border-box}html{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;scroll-behavior:smooth;background:#03070b}body{min-width:320px;min-height:100vh;margin:0;overflow-x:hidden}button,input{font:inherit}button{color:inherit}button:focus-visible{outline:2px solid var(--accent,#58f3c4);outline-offset:4px}a:focus-visible{outline:2px solid var(--accent,#58f3c4);outline-offset:4px}::selection{color:#02100c;background:var(--accent,#58f3c4)}}@layer base{:root{color:#eef8f7;font-synthesis:none;text-rendering:optimizelegibility;background:#03070b;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif}.game-shell{--accent:#58f3c4;--line:#d8f7f024;--line-strong:#d8f7f047;--muted:#94a6a3;--surface:#050d11c7;isolation:isolate;background:radial-gradient(circle at 38% 45%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 34%), linear-gradient(135deg, #020509 0%, #061016 52%, #02070b 100%);min-height:100vh;position:relative;overflow:hidden}.game-shell:before{z-index:-3;content:"";pointer-events:none;background-image:linear-gradient(#ffffff05 1px,#0000 1px),linear-gradient(90deg,#ffffff05 1px,#0000 1px);background-size:72px 72px;position:fixed;top:0;bottom:0;left:0;right:0;-webkit-mask-image:linear-gradient(#000,#0000 85%);mask-image:linear-gradient(#000,#0000 85%)}.micro-label{color:var(--accent);letter-spacing:.18em;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10px;font-weight:700;line-height:1.2;display:block}.aurora{z-index:-2;pointer-events:none;opacity:.14;filter:blur(95px);background:var(--accent);border-radius:50%;width:42vw;height:42vw;transition:background 1.2s;position:fixed}.aurora--one{animation:16s ease-in-out infinite alternate drift-one;top:-24vw;left:20vw}.aurora--two{opacity:.08;animation:20s ease-in-out infinite alternate drift-two;bottom:-26vw;right:-30vw}.noise{z-index:20;pointer-events:none;opacity:.02;mix-blend-mode:screen;background-image:repeating-radial-gradient(circle at 30% 40%,#fff 0 .45px,#0000 .7px 3px);background-size:5px 5px;position:fixed;top:0;bottom:0;left:0;right:0}@keyframes drift-one{to{transform:translate(12vw,9vw)scale(1.12)}}@keyframes drift-two{to{transform:translate(-8vw,-7vw)scale(.92)}}}@layer layout{.mission-header{z-index:10;border-bottom:1px solid var(--line);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#02070ab8;grid-template-columns:1fr auto 1fr;align-items:center;min-height:82px;padding:0 34px;display:grid;position:relative}.wordmark{color:#f0f8f7;align-items:center;width:max-content;text-decoration:none;display:inline-flex}.wordmark__mark{border:1px solid var(--accent);width:39px;height:39px;color:var(--accent);place-items:center;margin-right:12px;font-size:17px;transition:border-color .8s,color .8s;display:grid;transform:rotate(45deg)}.wordmark__mark:first-letter{transform:rotate(-45deg)}.wordmark span:last-child{gap:2px;display:grid}.wordmark strong{letter-spacing:.26em;font-size:15px}.wordmark small{color:var(--muted);letter-spacing:.18em;font:8px/1 ui-monospace,monospace}.mission-title{text-align:center}.mission-title span{color:var(--accent);letter-spacing:.2em;font:9px/1 ui-monospace,monospace}.mission-title h1{letter-spacing:.18em;margin:6px 0 0;font-size:14px;font-weight:500}.mission-meta{justify-content:flex-end;align-items:center;gap:20px;display:flex}.save-indicator{color:var(--muted);letter-spacing:.08em;font:10px/1 ui-monospace,monospace}.save-indicator i{background:var(--accent);width:6px;height:6px;box-shadow:0 0 12px var(--accent);border-radius:50%;margin-right:8px;animation:2s ease-in-out infinite blink;display:inline-block}.text-button{color:#dbe9e7;cursor:pointer;letter-spacing:.12em;background:0 0;border:0;padding:8px 0;font-size:10px}.text-button:hover{color:var(--accent)}.mission-progress{z-index:11;background:#ffffff0a;height:2px;position:relative}.mission-progress span{background:var(--accent);width:0;height:100%;box-shadow:0 0 18px var(--accent);transition:width .7s,background .8s;display:block}.game-grid{z-index:1;grid-template-columns:minmax(0,1.7fr) minmax(355px,.8fr);min-height:calc(100vh - 119px);display:grid;position:relative}.game-grid__scene{min-width:0;padding:48px 3vw 20px;position:relative;overflow:hidden}.command-panel{border-left:1px solid var(--line);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);background:linear-gradient(#060e12c7,#02080bf0);flex-direction:column;min-width:0;padding:28px 28px 22px;display:flex;position:relative}.mission-footer{z-index:12;border-top:1px solid var(--line);color:#667876;letter-spacing:.14em;background:#02070a;justify-content:space-between;padding:13px 34px;font:8px/1 ui-monospace,monospace;display:flex;position:relative}}@layer components{.chapter-copy{z-index:4;max-width:680px;position:relative}.chapter-copy h2{letter-spacing:-.045em;max-width:660px;margin:14px 0 12px;font-size:clamp(30px,3.4vw,58px);font-weight:600;line-height:.98}.chapter-copy p{color:#92a3a0;max-width:600px;margin:0;font-size:13px;line-height:1.7}.evolution-scene{height:min(650px,68vh);min-height:500px;margin-top:-8px;position:relative;overflow:hidden}.star-field{position:absolute;top:0;bottom:0;left:0;right:0}.star-field i{background:#dffefa;border-radius:50%;animation:4.5s ease-in-out infinite twinkle;position:absolute;box-shadow:0 0 6px #fff}@keyframes twinkle{50%{opacity:.2;transform:scale(.5)}}.planet-stage{aspect-ratio:1;width:clamp(270px,31vw,500px);position:absolute;top:44%;left:50%;translate:-50% -50%}.planet-glow{background:radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%);filter:blur(18px);border-radius:50%;animation:5s ease-in-out infinite breathe;position:absolute;top:-16%;bottom:-16%;left:-16%;right:-16%}@keyframes breathe{50%{opacity:.55;transform:scale(1.08)}}.planet{border:1px solid color-mix(in srgb, var(--accent) 48%, #fff 10%);box-shadow:inset -45px -28px 65px #000000b3, inset 14px 10px 36px #ffffff14, 0 0 0 13px #ffffff04, 0 0 85px color-mix(in srgb, var(--accent) 18%, transparent);background:radial-gradient(circle at 34% 29%,#ffffff3d,#0000 5%),radial-gradient(circle at 65% 72%,#000000b8,#0000 47%),linear-gradient(135deg,#0a5570,#07293c 44%,#05121c 84%);border-radius:50%;transition:background 1s,border-color .8s;position:absolute;top:8%;bottom:8%;left:8%;right:8%;overflow:hidden}.planet--tidepool{background:radial-gradient(circle at 34% 27%,#38b7c6,#0000 6%),radial-gradient(circle at 65% 72%,#020911,#0000 46%),repeating-radial-gradient(at 30% 20%,#0e6d82 0 10px,#084157 11px 26px,#061b2b 27px 45px)}.planet--landcrown{background:radial-gradient(circle at 34% 27%,#b5e989,#0000 5%),radial-gradient(circle at 70% 75%,#020b08,#0000 48%),linear-gradient(135deg,#3a7c56,#0e4e45 38%,#08202d 74%)}.planet--forgecity{background:radial-gradient(circle at 35% 26%,#f5c17d,#0000 5%),radial-gradient(circle at 69% 73%,#070400,#0000 48%),linear-gradient(135deg,#875730,#273e40 39%,#08121c 76%)}.planet--starseed{background:radial-gradient(circle at 35% 26%,#b7dcff,#0000 5%),radial-gradient(circle at 69% 73%,#01040b,#0000 48%),linear-gradient(135deg,#355f91,#172f5d 40%,#070d20 78%)}.planet-atmosphere{border:5px solid color-mix(in srgb, var(--accent) 24%, transparent);filter:blur(7px);border-radius:50%;position:absolute;top:-2%;bottom:-2%;left:-2%;right:-2%}.planet-grid{opacity:.11;background-image:linear-gradient(90deg,#0000 49.5%,#fff 50%,#0000 50.5%),linear-gradient(#0000 49.5%,#fff 50%,#0000 50.5%);background-size:31px 31px;position:absolute;top:0;bottom:0;left:0;right:0;transform:rotate(-18deg)scale(1.3)}.planet-continent{background:color-mix(in srgb, var(--accent) 48%, #0a2d24);opacity:.55;filter:blur(1px);border-radius:48% 52% 36% 64%/58% 31% 69% 42%;position:absolute;box-shadow:inset -12px -8px 18px #00000059}.continent-a{width:43%;height:27%;top:22%;left:15%;transform:rotate(23deg)}.continent-b{width:39%;height:32%;bottom:18%;right:12%;transform:rotate(-29deg)}.city-lights{opacity:.8;background-image:radial-gradient(circle,#ffe29a 0 1px,#0000 1.7px);background-size:23px 19px;border-radius:50%;animation:3s steps(4,end) infinite city-flicker;position:absolute;top:12%;bottom:12%;left:12%;right:12%;-webkit-mask-image:radial-gradient(at 45% 43%,#000,#0000 62%);mask-image:radial-gradient(at 45% 43%,#000,#0000 62%)}@keyframes city-flicker{50%{opacity:.52}}.launch-trail{background:linear-gradient(#fff, var(--accent), transparent);width:2px;height:32%;box-shadow:0 0 12px var(--accent);animation:3.8s ease-in-out infinite launch;position:absolute;top:16%;right:17%;transform:rotate(38deg)}@keyframes launch{0%,30%{opacity:0;transform:translate(-25px,35px)rotate(38deg)scaleY(.3)}55%{opacity:1}to{opacity:0;transform:translate(45px,-65px)rotate(38deg)scaleY(1.3)}}.orbit{border:1px solid #d5f7f021;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotate(-13deg)}.orbit--wide{width:78%;height:37%}.orbit--tight{width:57%;height:25%;transform:translate(-50%,-50%)rotate(64deg)}.orbit span{background:var(--accent);width:7px;height:7px;box-shadow:0 0 16px var(--accent);transform-origin:calc(50% + 4px) 0;border-radius:50%;animation:8s linear infinite satellite;position:absolute;top:50%;left:-4px}.orbit--tight span{animation-duration:5.5s;animation-direction:reverse}@keyframes satellite{to{offset-distance:100%}}.scan-line{background:conic-gradient(from 190deg, transparent 0 73%, color-mix(in srgb, var(--accent) 13%, transparent) 88%, transparent 96%);border-radius:50%;width:54%;height:54%;animation:9s linear infinite scan;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@keyframes scan{to{transform:translate(-50%,-50%)rotate(360deg)}}.pulse-core{z-index:6;border:1px solid color-mix(in srgb, var(--accent) 48%, transparent);color:#effffc;width:170px;min-height:112px;box-shadow:inset 0 0 35px color-mix(in srgb, var(--accent) 9%, transparent), 0 0 30px #00000073;cursor:pointer;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#030c0fc7;border-radius:50%;place-content:center;display:grid;position:absolute;bottom:38px;left:50%;translate:-50%}.pulse-core:disabled{cursor:default;opacity:.55}.pulse-core__halo{border:1px solid color-mix(in srgb, var(--accent) 25%, transparent);border-radius:50%;animation:2.6s ease-out infinite pulse-ring;position:absolute;top:-9px;bottom:-9px;left:-9px;right:-9px}@keyframes pulse-ring{70%,to{opacity:0;transform:scale(1.18)}}.pulse-core__eyebrow{color:var(--accent);letter-spacing:.16em;font:9px/1 ui-monospace,monospace}.pulse-core strong{letter-spacing:-.02em;margin:7px 0;font-size:25px;font-weight:500}.pulse-core__action{color:#8fa5a1;letter-spacing:.08em;font-size:9px}.scene-label{color:#8b9d99;letter-spacing:.12em;gap:5px;font:9px/1 ui-monospace,monospace;display:grid;position:absolute;top:45%}.scene-label strong{color:#e1efed;font-size:10px}.scene-label--left{left:2%}.scene-label--right{text-align:right;right:2%}.scene-coordinate{color:#50635f;letter-spacing:.08em;font:8px/1 ui-monospace,monospace;position:absolute;bottom:21px;right:2%}.resource-strip{border-bottom:1px solid var(--line);grid-template-columns:1.15fr .85fr .85fr;padding:2px 0 24px;display:grid}.resource-strip div{border-left:1px solid var(--line);padding:0 14px}.resource-strip div:first-child{border-left:0;padding-left:0}.resource-strip span{color:#697b78;letter-spacing:.08em;margin-bottom:8px;font-size:9px;display:block}.resource-strip strong{font:500 17px/1 ui-monospace,monospace}.resource-strip div:first-child strong{color:var(--accent);text-shadow:0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);font-size:22px}.milestone-rail{flex:1;padding-top:25px}.rail-header{justify-content:space-between;align-items:flex-end;display:flex}.rail-header h2{letter-spacing:.02em;margin:7px 0 0;font-size:19px;font-weight:500}.rail-count{color:var(--muted);letter-spacing:.12em;font:10px/1 ui-monospace,monospace}.rail-progress{background:#ffffff0f;height:2px;margin:18px 0 9px}.rail-progress span{background:var(--accent);height:100%;box-shadow:0 0 12px var(--accent);transition:width .6s;display:block}.milestone-list{display:grid}.milestone{border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;background:0 0;grid-template-columns:30px 1fr auto;align-items:center;gap:12px;width:100%;min-height:87px;padding:13px 2px;transition:color .25s,opacity .25s,border-color .25s;display:grid}.milestone:not(:disabled):hover{border-color:color-mix(in srgb, var(--accent) 55%, transparent)}.milestone:disabled:not(.is-complete){cursor:not-allowed;opacity:.38}.milestone.is-complete{opacity:.62}.milestone__index{color:var(--accent);font:9px/1 ui-monospace,monospace}.milestone__copy{gap:6px;display:grid}.milestone__copy strong{letter-spacing:.04em;font-size:13px;font-weight:500}.milestone__copy small{color:#92a3a0;max-width:285px;font-size:11px;line-height:1.5}.milestone__cost{border:1px solid var(--line);color:#bdcfcc;text-align:center;min-width:74px;padding:7px 9px;font:9px/1 ui-monospace,monospace}.milestone:not(.is-complete) .milestone__cost:after{content:" ◇";color:var(--accent)}.milestone.is-complete .milestone__cost{border-color:color-mix(in srgb, var(--accent) 38%, transparent);color:var(--accent)}.final-meters{gap:10px;margin:18px 0 0;display:grid}.final-meters>div{color:#81928f;grid-template-columns:70px 1fr 38px;align-items:center;gap:10px;font-size:9px;display:grid}.final-meters i{background:#ffffff12;height:3px}.final-meters b{background:var(--accent);height:100%;box-shadow:0 0 9px var(--accent);transition:width .6s;display:block}.final-meters strong{color:#d9e9e7;text-align:right;font:9px/1 ui-monospace,monospace}.epoch-button{border:1px solid color-mix(in srgb, var(--accent) 55%, transparent);color:#07110f;background:var(--accent);cursor:pointer;letter-spacing:.14em;text-transform:uppercase;width:100%;min-height:52px;box-shadow:0 0 28px color-mix(in srgb, var(--accent) 12%, transparent);justify-content:space-between;align-items:center;margin-top:18px;padding:0 18px;font-size:11px;font-weight:700;display:flex}.epoch-button strong{font-size:18px}.epoch-button__copy{text-align:left;gap:4px;display:grid}.epoch-button__copy b{letter-spacing:.14em;font-size:11px}.epoch-button__copy small{color:#81918f;letter-spacing:.08em;text-transform:none;font-size:8px;font-weight:500}.epoch-button:disabled{border-color:var(--line);color:#62716f;box-shadow:none;cursor:not-allowed;background:#ffffff09}.epoch-button--launch:not(:disabled){color:#edfaff;background:linear-gradient(90deg, #2868a3, var(--accent))}.signal-log{border-top:1px solid var(--line);margin-top:18px;padding-top:15px}.signal-log__head{color:#6d807c;letter-spacing:.13em;align-items:center;font:8px/1 ui-monospace,monospace;display:flex}.signal-dot{background:var(--accent);width:5px;height:5px;box-shadow:0 0 9px var(--accent);border-radius:50%;margin-right:8px}.signal-log__entries{min-height:74px;margin-top:10px}.signal-log p{color:#9cadaa;margin:5px 0;font-size:9px;line-height:1.45}.signal-log p span{color:var(--accent);margin-right:9px;font-family:ui-monospace,monospace}.phase-transition{z-index:80;text-align:center;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);background:#010508f0;place-content:center;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.phase-transition>div{background:var(--accent);width:min(330px,60vw);height:1px;box-shadow:0 0 25px var(--accent);margin-bottom:28px}.phase-transition span{color:var(--accent);letter-spacing:.4em;font:10px/1 ui-monospace,monospace}.phase-transition strong{letter-spacing:.12em;margin-top:14px;font-size:clamp(34px,6vw,72px);font-weight:400}.ending{z-index:100;background:radial-gradient(circle at 50% 90%,#123e55,#0000 38%),#010408;place-items:center;display:grid;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.ending:before{aspect-ratio:1;content:"";background:radial-gradient(circle at 48% 35%,#4e9caa,#0d354a 35%,#030a11 70%);border:2px solid #72d5ff8c;border-radius:50%;width:min(90vw,1050px);position:absolute;bottom:-38vw;left:50%;transform:translate(-50%);box-shadow:0 -20px 90px #53c0e63d}.ending__stars{opacity:.7;background-image:radial-gradient(circle,#fff 0 1px,#0000 1.5px);background-size:79px 73px;position:absolute;top:0;bottom:0;left:0;right:0}.ending__content{z-index:2;text-align:center;width:min(720px,100vw - 42px);padding-bottom:8vh;position:relative}.ending h2{letter-spacing:-.06em;margin:20px 0 18px;font-size:clamp(46px,8vw,104px);font-weight:300;line-height:.9}.ending p{color:#b4c7c6;margin:0 auto;font-size:14px;line-height:1.8}.ending__epilogue{max-width:580px}.ending__line{background:var(--accent);width:90px;height:1px;box-shadow:0 0 16px var(--accent);margin:28px auto}.ghost-button{color:#edf8f7;cursor:pointer;letter-spacing:.12em;background:#f0fafa14;border:1px solid #f0fafa59;border-radius:999px;margin-top:32px;padding:15px 24px;font-size:11px}.ghost-button:hover{border-color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent)}.offline-notice{z-index:70;border:1px solid color-mix(in srgb, var(--accent) 42%, transparent);color:#cfe1de;background:#040e11f0;max-width:min(420px,100vw - 48px);padding:14px 18px;font-size:10px;line-height:1.5;position:fixed;bottom:24px;right:24px;box-shadow:0 12px 40px #00000073}@keyframes blink{50%{opacity:.25}}}@layer responsive{@media (max-width:1080px){.mission-header{grid-template-columns:1fr auto}.mission-title{display:none}.game-grid{grid-template-columns:minmax(0,1.35fr) minmax(340px,.85fr)}.game-grid__scene{padding-left:24px;padding-right:24px}.evolution-scene{height:610px}.scene-label{display:none}}@media (max-width:820px){body{overflow:auto}.mission-header{min-height:68px;padding:0 18px;position:sticky;top:0}.save-indicator{display:none}.game-grid{min-height:0;display:block}.game-grid__scene{min-height:680px;padding:36px 18px 0}.chapter-copy h2{font-size:clamp(34px,10vw,54px)}.evolution-scene{height:550px;min-height:500px}.planet-stage{width:clamp(280px,65vw,430px)}.command-panel{border-top:1px solid var(--line);border-left:0;padding:28px 20px 30px}.mission-footer{padding:11px 18px}.mission-footer span:first-child{display:none}}@media (max-width:520px){.wordmark strong{font-size:13px}.wordmark__mark{width:33px;height:33px}.text-button{font-size:9px}.game-grid__scene{min-height:620px}.chapter-copy p{font-size:12px}.evolution-scene{height:470px;min-height:450px;margin-top:0}.planet-stage{width:300px;top:46%}.orbit--wide{width:110%}.orbit--tight{width:84%}.pulse-core{width:148px;min-height:96px;bottom:20px}.pulse-core strong{font-size:21px}.scene-coordinate{display:none}.resource-strip{grid-template-columns:1.15fr 1fr 1fr}.resource-strip div{padding:0 8px}.resource-strip strong{font-size:14px}.resource-strip div:first-child strong{font-size:18px}.milestone{grid-template-columns:24px 1fr auto;gap:8px}.milestone__copy small{max-width:190px}.mission-footer span:nth-child(2){display:none}.ending:before{width:130vw;bottom:-30vw}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}}
/*$vite$:1*/</style>
</head>
<body>
<div id="app"></div>
</body>
</html>