Files
notxia.github.io/_nuxt/entry.97037029.js
2023-06-23 16:05:47 +00:00

59 lines
287 KiB
JavaScript

function bo(e,t){const n=Object.create(null),o=e.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}function Eo(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],s=Oe(o)?Qu(o):Eo(o);if(s)for(const r in s)t[r]=s[r]}return t}else{if(Oe(e))return e;if(Ce(e))return e}}const zu=/;(?![^(]*\))/g,Gu=/:([^]+)/,Ju=/\/\*.*?\*\//gs;function Qu(e){const t={};return e.replace(Ju,"").split(zu).forEach(n=>{if(n){const o=n.split(Gu);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function zr(e){let t="";if(Oe(e))t=e;else if(ne(e))for(let n=0;n<e.length;n++){const o=zr(e[n]);o&&(t+=o+" ")}else if(Ce(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Yu="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Xu=bo(Yu);function ol(e){return!!e||e===""}const Ie=e=>Oe(e)?e:e==null?"":ne(e)||Ce(e)&&(e.toString===cl||!oe(e.toString))?JSON.stringify(e,il,2):String(e),il=(e,t)=>t&&t.__v_isRef?il(e,t.value):pn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:al(t)?{[`Set(${t.size})`]:[...t.values()]}:Ce(t)&&!ne(t)&&!ul(t)?String(t):t,Se={},hn=[],at=()=>{},Zu=()=>!1,qu=/^on[^a-z]/,lr=e=>qu.test(e),So=e=>e.startsWith("onUpdate:"),Fe=Object.assign,Co=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ef=Object.prototype.hasOwnProperty,fe=(e,t)=>ef.call(e,t),ne=Array.isArray,pn=e=>cr(e)==="[object Map]",al=e=>cr(e)==="[object Set]",tf=e=>cr(e)==="[object RegExp]",oe=e=>typeof e=="function",Oe=e=>typeof e=="string",Po=e=>typeof e=="symbol",Ce=e=>e!==null&&typeof e=="object",ll=e=>Ce(e)&&oe(e.then)&&oe(e.catch),cl=Object.prototype.toString,cr=e=>cl.call(e),nf=e=>cr(e).slice(8,-1),ul=e=>cr(e)==="[object Object]",Lo=e=>Oe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vn=bo(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gr=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},rf=/-(\w)/g,pt=Gr(e=>e.replace(rf,(t,n)=>n?n.toUpperCase():"")),sf=/\B([A-Z])/g,Ln=Gr(e=>e.replace(sf,"-$1").toLowerCase()),Jr=Gr(e=>e.charAt(0).toUpperCase()+e.slice(1)),gs=Gr(e=>e?`on${Jr(e)}`:""),qn=(e,t)=>!Object.is(e,t),Wn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ir=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},of=e=>{const t=parseFloat(e);return isNaN(t)?e:t},fl=e=>{const t=Oe(e)?Number(e):NaN;return isNaN(t)?e:t};let fi;const af=()=>fi||(fi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let st;class dl{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=st,!t&&st&&(this.index=(st.scopes||(st.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=st;try{return st=this,t()}finally{st=n}}}on(){st=this}off(){st=this.parent}stop(t){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function hl(e){return new dl(e)}function lf(e,t=st){t&&t.active&&t.effects.push(e)}function cf(){return st}const Ro=e=>{const t=new Set(e);return t.w=0,t.n=0,t},pl=e=>(e.w&Nt)>0,gl=e=>(e.n&Nt)>0,uf=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Nt},ff=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const s=t[o];pl(s)&&!gl(s)?s.delete(e):t[n++]=s,s.w&=~Nt,s.n&=~Nt}t.length=n}},Ar=new WeakMap;let jn=0,Nt=1;const ks=30;let ot;const Qt=Symbol(""),Ms=Symbol("");class To{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,lf(this,o)}run(){if(!this.active)return this.fn();let t=ot,n=Mt;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=ot,ot=this,Mt=!0,Nt=1<<++jn,jn<=ks?uf(this):di(this),this.fn()}finally{jn<=ks&&ff(this),Nt=1<<--jn,ot=this.parent,Mt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ot===this?this.deferStop=!0:this.active&&(di(this),this.onStop&&this.onStop(),this.active=!1)}}function di(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Mt=!0;const ml=[];function Rn(){ml.push(Mt),Mt=!1}function Tn(){const e=ml.pop();Mt=e===void 0?!0:e}function ze(e,t,n){if(Mt&&ot){let o=Ar.get(e);o||Ar.set(e,o=new Map);let s=o.get(n);s||o.set(n,s=Ro()),vl(s)}}function vl(e,t){let n=!1;jn<=ks?gl(e)||(e.n|=Nt,n=!pl(e)):n=!e.has(ot),n&&(e.add(ot),ot.deps.push(e))}function bt(e,t,n,o,s,r){const i=Ar.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ne(e)){const l=Number(o);i.forEach((u,f)=>{(f==="length"||f>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ne(e)?Lo(n)&&a.push(i.get("length")):(a.push(i.get(Qt)),pn(e)&&a.push(i.get(Ms)));break;case"delete":ne(e)||(a.push(i.get(Qt)),pn(e)&&a.push(i.get(Ms)));break;case"set":pn(e)&&a.push(i.get(Qt));break}if(a.length===1)a[0]&&Fs(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Fs(Ro(l))}}function Fs(e,t){const n=ne(e)?e:[...e];for(const o of n)o.computed&&hi(o);for(const o of n)o.computed||hi(o)}function hi(e,t){(e!==ot||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function df(e,t){var n;return(n=Ar.get(e))===null||n===void 0?void 0:n.get(t)}const hf=bo("__proto__,__v_isRef,__isVue"),yl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Po)),pf=Oo(),gf=Oo(!1,!0),mf=Oo(!0),pi=vf();function vf(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=de(this);for(let r=0,i=this.length;r<i;r++)ze(o,"get",r+"");const s=o[t](...n);return s===-1||s===!1?o[t](...n.map(de)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Rn();const o=de(this)[t].apply(this,n);return Tn(),o}}),e}function yf(e){const t=de(this);return ze(t,"has",e),t.hasOwnProperty(e)}function Oo(e=!1,t=!1){return function(o,s,r){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&r===(e?t?Mf:El:t?bl:wl).get(o))return o;const i=ne(o);if(!e){if(i&&fe(pi,s))return Reflect.get(pi,s,r);if(s==="hasOwnProperty")return yf}const a=Reflect.get(o,s,r);return(Po(s)?yl.has(s):hf(s))||(e||ze(o,"get",s),t)?a:Le(a)?i&&Lo(s)?a:a.value:Ce(a)?e?Sl(a):gt(a):a}}const _f=_l(),xf=_l(!0);function _l(e=!1){return function(n,o,s,r){let i=n[o];if(Zt(i)&&Le(i)&&!Le(s))return!1;if(!e&&(!kr(s)&&!Zt(s)&&(i=de(i),s=de(s)),!ne(n)&&Le(i)&&!Le(s)))return i.value=s,!0;const a=ne(n)&&Lo(o)?Number(o)<n.length:fe(n,o),l=Reflect.set(n,o,s,r);return n===de(r)&&(a?qn(s,i)&&bt(n,"set",o,s):bt(n,"add",o,s)),l}}function wf(e,t){const n=fe(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&bt(e,"delete",t,void 0),o}function bf(e,t){const n=Reflect.has(e,t);return(!Po(t)||!yl.has(t))&&ze(e,"has",t),n}function Ef(e){return ze(e,"iterate",ne(e)?"length":Qt),Reflect.ownKeys(e)}const xl={get:pf,set:_f,deleteProperty:wf,has:bf,ownKeys:Ef},Sf={get:mf,set(e,t){return!0},deleteProperty(e,t){return!0}},Cf=Fe({},xl,{get:gf,set:xf}),Io=e=>e,Qr=e=>Reflect.getPrototypeOf(e);function pr(e,t,n=!1,o=!1){e=e.__v_raw;const s=de(e),r=de(t);n||(t!==r&&ze(s,"get",t),ze(s,"get",r));const{has:i}=Qr(s),a=o?Io:n?Mo:er;if(i.call(s,t))return a(e.get(t));if(i.call(s,r))return a(e.get(r));e!==s&&e.get(t)}function gr(e,t=!1){const n=this.__v_raw,o=de(n),s=de(e);return t||(e!==s&&ze(o,"has",e),ze(o,"has",s)),e===s?n.has(e):n.has(e)||n.has(s)}function mr(e,t=!1){return e=e.__v_raw,!t&&ze(de(e),"iterate",Qt),Reflect.get(e,"size",e)}function gi(e){e=de(e);const t=de(this);return Qr(t).has.call(t,e)||(t.add(e),bt(t,"add",e,e)),this}function mi(e,t){t=de(t);const n=de(this),{has:o,get:s}=Qr(n);let r=o.call(n,e);r||(e=de(e),r=o.call(n,e));const i=s.call(n,e);return n.set(e,t),r?qn(t,i)&&bt(n,"set",e,t):bt(n,"add",e,t),this}function vi(e){const t=de(this),{has:n,get:o}=Qr(t);let s=n.call(t,e);s||(e=de(e),s=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return s&&bt(t,"delete",e,void 0),r}function yi(){const e=de(this),t=e.size!==0,n=e.clear();return t&&bt(e,"clear",void 0,void 0),n}function vr(e,t){return function(o,s){const r=this,i=r.__v_raw,a=de(i),l=t?Io:e?Mo:er;return!e&&ze(a,"iterate",Qt),i.forEach((u,f)=>o.call(s,l(u),l(f),r))}}function yr(e,t,n){return function(...o){const s=this.__v_raw,r=de(s),i=pn(r),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...o),f=n?Io:t?Mo:er;return!t&&ze(r,"iterate",l?Ms:Qt),{next(){const{value:h,done:d}=u.next();return d?{value:h,done:d}:{value:a?[f(h[0]),f(h[1])]:f(h),done:d}},[Symbol.iterator](){return this}}}}function Lt(e){return function(...t){return e==="delete"?!1:this}}function Pf(){const e={get(r){return pr(this,r)},get size(){return mr(this)},has:gr,add:gi,set:mi,delete:vi,clear:yi,forEach:vr(!1,!1)},t={get(r){return pr(this,r,!1,!0)},get size(){return mr(this)},has:gr,add:gi,set:mi,delete:vi,clear:yi,forEach:vr(!1,!0)},n={get(r){return pr(this,r,!0)},get size(){return mr(this,!0)},has(r){return gr.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:vr(!0,!1)},o={get(r){return pr(this,r,!0,!0)},get size(){return mr(this,!0)},has(r){return gr.call(this,r,!0)},add:Lt("add"),set:Lt("set"),delete:Lt("delete"),clear:Lt("clear"),forEach:vr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=yr(r,!1,!1),n[r]=yr(r,!0,!1),t[r]=yr(r,!1,!0),o[r]=yr(r,!0,!0)}),[e,n,t,o]}const[Lf,Rf,Tf,Of]=Pf();function Ao(e,t){const n=t?e?Of:Tf:e?Rf:Lf;return(o,s,r)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?o:Reflect.get(fe(n,s)&&s in o?n:o,s,r)}const If={get:Ao(!1,!1)},Af={get:Ao(!1,!0)},kf={get:Ao(!0,!1)},wl=new WeakMap,bl=new WeakMap,El=new WeakMap,Mf=new WeakMap;function Ff(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nf(e){return e.__v_skip||!Object.isExtensible(e)?0:Ff(nf(e))}function gt(e){return Zt(e)?e:ko(e,!1,xl,If,wl)}function Df(e){return ko(e,!1,Cf,Af,bl)}function Sl(e){return ko(e,!0,Sf,kf,El)}function ko(e,t,n,o,s){if(!Ce(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=s.get(e);if(r)return r;const i=Nf(e);if(i===0)return e;const a=new Proxy(e,i===2?o:n);return s.set(e,a),a}function gn(e){return Zt(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function Zt(e){return!!(e&&e.__v_isReadonly)}function kr(e){return!!(e&&e.__v_isShallow)}function Cl(e){return gn(e)||Zt(e)}function de(e){const t=e&&e.__v_raw;return t?de(t):e}function Pl(e){return Ir(e,"__v_skip",!0),e}const er=e=>Ce(e)?gt(e):e,Mo=e=>Ce(e)?Sl(e):e;function Ll(e){Mt&&ot&&(e=de(e),vl(e.dep||(e.dep=Ro())))}function Rl(e,t){e=de(e);const n=e.dep;n&&Fs(n)}function Le(e){return!!(e&&e.__v_isRef===!0)}function ye(e){return Tl(e,!1)}function Ns(e){return Tl(e,!0)}function Tl(e,t){return Le(e)?e:new $f(e,t)}class $f{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:de(t),this._value=n?t:er(t)}get value(){return Ll(this),this._value}set value(t){const n=this.__v_isShallow||kr(t)||Zt(t);t=n?t:de(t),qn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:er(t),Rl(this))}}function ie(e){return Le(e)?e.value:e}const Bf={get:(e,t,n)=>ie(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const s=e[t];return Le(s)&&!Le(n)?(s.value=n,!0):Reflect.set(e,t,n,o)}};function Ol(e){return gn(e)?e:new Proxy(e,Bf)}class Hf{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return df(de(this._object),this._key)}}function Il(e,t,n){const o=e[t];return Le(o)?o:new Hf(e,t,n)}var Al;class jf{constructor(t,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Al]=!1,this._dirty=!0,this.effect=new To(t,()=>{this._dirty||(this._dirty=!0,Rl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const t=de(this);return Ll(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Al="__v_isReadonly";function Uf(e,t,n=!1){let o,s;const r=oe(e);return r?(o=e,s=at):(o=e.get,s=e.set),new jf(o,s,r||!s,n)}function Ft(e,t,n,o){let s;try{s=o?e(...o):e()}catch(r){On(r,t,n)}return s}function nt(e,t,n,o){if(oe(e)){const r=Ft(e,t,n,o);return r&&ll(r)&&r.catch(i=>{On(i,t,n)}),r}const s=[];for(let r=0;r<e.length;r++)s.push(nt(e[r],t,n,o));return s}function On(e,t,n,o=!0){const s=t?t.vnode:null;if(t){let r=t.parent;const i=t.proxy,a=n;for(;r;){const u=r.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,i,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){Ft(l,null,10,[e,i,a]);return}}Vf(e,n,s,o)}function Vf(e,t,n,o=!0){console.error(e)}let tr=!1,Ds=!1;const $e=[];let ht=0;const mn=[];let xt=null,Kt=0;const kl=Promise.resolve();let Fo=null;function en(e){const t=Fo||kl;return e?t.then(this?e.bind(this):e):t}function Wf(e){let t=ht+1,n=$e.length;for(;t<n;){const o=t+n>>>1;nr($e[o])<e?t=o+1:n=o}return t}function Yr(e){(!$e.length||!$e.includes(e,tr&&e.allowRecurse?ht+1:ht))&&(e.id==null?$e.push(e):$e.splice(Wf(e.id),0,e),Ml())}function Ml(){!tr&&!Ds&&(Ds=!0,Fo=kl.then(Nl))}function Kf(e){const t=$e.indexOf(e);t>ht&&$e.splice(t,1)}function Fl(e){ne(e)?mn.push(...e):(!xt||!xt.includes(e,e.allowRecurse?Kt+1:Kt))&&mn.push(e),Ml()}function _i(e,t=tr?ht+1:0){for(;t<$e.length;t++){const n=$e[t];n&&n.pre&&($e.splice(t,1),t--,n())}}function Mr(e){if(mn.length){const t=[...new Set(mn)];if(mn.length=0,xt){xt.push(...t);return}for(xt=t,xt.sort((n,o)=>nr(n)-nr(o)),Kt=0;Kt<xt.length;Kt++)xt[Kt]();xt=null,Kt=0}}const nr=e=>e.id==null?1/0:e.id,zf=(e,t)=>{const n=nr(e)-nr(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Nl(e){Ds=!1,tr=!0,$e.sort(zf);const t=at;try{for(ht=0;ht<$e.length;ht++){const n=$e[ht];n&&n.active!==!1&&Ft(n,null,14)}}finally{ht=0,$e.length=0,Mr(),tr=!1,Fo=null,($e.length||mn.length)&&Nl()}}function Gf(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Se;let s=n;const r=t.startsWith("update:"),i=r&&t.slice(7);if(i&&i in o){const f=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:d}=o[f]||Se;d&&(s=n.map(c=>Oe(c)?c.trim():c)),h&&(s=n.map(of))}let a,l=o[a=gs(t)]||o[a=gs(pt(t))];!l&&r&&(l=o[a=gs(Ln(t))]),l&&nt(l,e,6,s);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,nt(u,e,6,s)}}function Dl(e,t,n=!1){const o=t.emitsCache,s=o.get(e);if(s!==void 0)return s;const r=e.emits;let i={},a=!1;if(!oe(e)){const l=u=>{const f=Dl(u,t,!0);f&&(a=!0,Fe(i,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(Ce(e)&&o.set(e,null),null):(ne(r)?r.forEach(l=>i[l]=null):Fe(i,r),Ce(e)&&o.set(e,i),i)}function Xr(e,t){return!e||!lr(t)?!1:(t=t.slice(2).replace(/Once$/,""),fe(e,t[0].toLowerCase()+t.slice(1))||fe(e,Ln(t))||fe(e,t))}let Me=null,$l=null;function Fr(e){const t=Me;return Me=e,$l=e&&e.type.__scopeId||null,t}function tn(e,t=Me,n){if(!t||e._n)return e;const o=(...s)=>{o._d&&Oi(-1);const r=Fr(t);let i;try{i=e(...s)}finally{Fr(r),o._d&&Oi(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function ms(e){const{type:t,vnode:n,proxy:o,withProxy:s,props:r,propsOptions:[i],slots:a,attrs:l,emit:u,render:f,renderCache:h,data:d,setupState:c,ctx:p,inheritAttrs:g}=e;let m,y;const _=Fr(e);try{if(n.shapeFlag&4){const E=s||o;m=et(f.call(E,E,h,r,c,d,p)),y=l}else{const E=t;m=et(E.length>1?E(r,{attrs:l,slots:a,emit:u}):E(r,null)),y=t.props?l:Qf(l)}}catch(E){zn.length=0,On(E,e,1),m=Ee(Ue)}let x=m;if(y&&g!==!1){const E=Object.keys(y),{shapeFlag:v}=x;E.length&&v&7&&(i&&E.some(So)&&(y=Yf(y,i)),x=Et(x,y))}return n.dirs&&(x=Et(x),x.dirs=x.dirs?x.dirs.concat(n.dirs):n.dirs),n.transition&&(x.transition=n.transition),m=x,Fr(_),m}function Jf(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(xn(o)){if(o.type!==Ue||o.children==="v-if"){if(t)return;t=o}}else return}return t}const Qf=e=>{let t;for(const n in e)(n==="class"||n==="style"||lr(n))&&((t||(t={}))[n]=e[n]);return t},Yf=(e,t)=>{const n={};for(const o in e)(!So(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Xf(e,t,n){const{props:o,children:s,component:r}=e,{props:i,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?xi(o,i,u):!!i;if(l&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const d=f[h];if(i[d]!==o[d]&&!Xr(u,d))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:o===i?!1:o?i?xi(o,i,u):!0:!!i;return!1}function xi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let s=0;s<o.length;s++){const r=o[s];if(t[r]!==e[r]&&!Xr(n,r))return!0}return!1}function No({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Bl=e=>e.__isSuspense,Zf={name:"Suspense",__isSuspense:!0,process(e,t,n,o,s,r,i,a,l,u){e==null?qf(t,n,o,s,r,i,a,l,u):ed(e,t,n,o,s,i,a,l,u)},hydrate:td,create:Do,normalize:nd},Hl=Zf;function rr(e,t){const n=e.props&&e.props[t];oe(n)&&n()}function qf(e,t,n,o,s,r,i,a,l){const{p:u,o:{createElement:f}}=l,h=f("div"),d=e.suspense=Do(e,s,o,t,h,n,r,i,a,l);u(null,d.pendingBranch=e.ssContent,h,null,o,d,r,i),d.deps>0?(rr(e,"onPending"),rr(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,r,i),vn(d,e.ssFallback)):d.resolve()}function ed(e,t,n,o,s,r,i,a,{p:l,um:u,o:{createElement:f}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const d=t.ssContent,c=t.ssFallback,{activeBranch:p,pendingBranch:g,isInFallback:m,isHydrating:y}=h;if(g)h.pendingBranch=d,it(d,g)?(l(g,d,h.hiddenContainer,null,s,h,r,i,a),h.deps<=0?h.resolve():m&&(l(p,c,n,o,s,null,r,i,a),vn(h,c))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=g):u(g,s,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),m?(l(null,d,h.hiddenContainer,null,s,h,r,i,a),h.deps<=0?h.resolve():(l(p,c,n,o,s,null,r,i,a),vn(h,c))):p&&it(d,p)?(l(p,d,n,o,s,h,r,i,a),h.resolve(!0)):(l(null,d,h.hiddenContainer,null,s,h,r,i,a),h.deps<=0&&h.resolve()));else if(p&&it(d,p))l(p,d,n,o,s,h,r,i,a),vn(h,d);else if(rr(t,"onPending"),h.pendingBranch=d,h.pendingId++,l(null,d,h.hiddenContainer,null,s,h,r,i,a),h.deps<=0)h.resolve();else{const{timeout:_,pendingId:x}=h;_>0?setTimeout(()=>{h.pendingId===x&&h.fallback(c)},_):_===0&&h.fallback(c)}}function Do(e,t,n,o,s,r,i,a,l,u,f=!1){const{p:h,m:d,um:c,n:p,o:{parentNode:g,remove:m}}=u,y=e.props?fl(e.props.timeout):void 0,_={vnode:e,parent:t,parentComponent:n,isSVG:i,container:o,hiddenContainer:s,anchor:r,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(x=!1){const{vnode:E,activeBranch:v,pendingBranch:b,pendingId:S,effects:w,parentComponent:P,container:C}=_;if(_.isHydrating)_.isHydrating=!1;else if(!x){const O=v&&b.transition&&b.transition.mode==="out-in";O&&(v.transition.afterLeave=()=>{S===_.pendingId&&d(b,C,k,0)});let{anchor:k}=_;v&&(k=p(v),c(v,P,_,!0)),O||d(b,C,k,0)}vn(_,b),_.pendingBranch=null,_.isInFallback=!1;let I=_.parent,L=!1;for(;I;){if(I.pendingBranch){I.effects.push(...w),L=!0;break}I=I.parent}L||Fl(w),_.effects=[],rr(E,"onResolve")},fallback(x){if(!_.pendingBranch)return;const{vnode:E,activeBranch:v,parentComponent:b,container:S,isSVG:w}=_;rr(E,"onFallback");const P=p(v),C=()=>{_.isInFallback&&(h(null,x,S,P,b,null,w,a,l),vn(_,x))},I=x.transition&&x.transition.mode==="out-in";I&&(v.transition.afterLeave=C),_.isInFallback=!0,c(v,b,null,!0),I||C()},move(x,E,v){_.activeBranch&&d(_.activeBranch,x,E,v),_.container=x},next(){return _.activeBranch&&p(_.activeBranch)},registerDep(x,E){const v=!!_.pendingBranch;v&&_.deps++;const b=x.vnode.el;x.asyncDep.catch(S=>{On(S,x,0)}).then(S=>{if(x.isUnmounted||_.isUnmounted||_.pendingId!==x.suspenseId)return;x.asyncResolved=!0;const{vnode:w}=x;Vs(x,S,!1),b&&(w.el=b);const P=!b&&x.subTree.el;E(x,w,g(b||x.subTree.el),b?null:p(x.subTree),_,i,l),P&&m(P),No(x,w.el),v&&--_.deps===0&&_.resolve()})},unmount(x,E){_.isUnmounted=!0,_.activeBranch&&c(_.activeBranch,n,x,E),_.pendingBranch&&c(_.pendingBranch,n,x,E)}};return _}function td(e,t,n,o,s,r,i,a,l){const u=t.suspense=Do(t,o,n,e.parentNode,document.createElement("div"),null,s,r,i,a,!0),f=l(e,u.pendingBranch=t.ssContent,n,u,r,i);return u.deps===0&&u.resolve(),f}function nd(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=wi(o?n.default:n),e.ssFallback=o?wi(n.fallback):Ee(Ue)}function wi(e){let t;if(oe(e)){const n=_n&&e._c;n&&(e._d=!1,ve()),e=e(),n&&(e._d=!0,t=tt,cc())}return ne(e)&&(e=Jf(e)),e=et(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function jl(e,t){t&&t.pendingBranch?ne(e)?t.effects.push(...e):t.effects.push(e):Fl(e)}function vn(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,s=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=s,No(o,s))}function yn(e,t){if(Te){let n=Te.provides;const o=Te.parent&&Te.parent.provides;o===n&&(n=Te.provides=Object.create(o)),n[e]=t}}function je(e,t,n=!1){const o=Te||Me;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&oe(t)?t.call(o.proxy):t}}function rd(e,t){return $o(e,null,t)}const _r={};function lt(e,t,n){return $o(e,t,n)}function $o(e,t,{immediate:n,deep:o,flush:s,onTrack:r,onTrigger:i}=Se){const a=cf()===(Te==null?void 0:Te.scope)?Te:null;let l,u=!1,f=!1;if(Le(e)?(l=()=>e.value,u=kr(e)):gn(e)?(l=()=>e,o=!0):ne(e)?(f=!0,u=e.some(x=>gn(x)||kr(x)),l=()=>e.map(x=>{if(Le(x))return x.value;if(gn(x))return Gt(x);if(oe(x))return Ft(x,a,2)})):oe(e)?t?l=()=>Ft(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return h&&h(),nt(e,a,3,[d])}:l=at,t&&o){const x=l;l=()=>Gt(x())}let h,d=x=>{h=y.onStop=()=>{Ft(x,a,4)}},c;if(bn)if(d=at,t?n&&nt(t,a,3,[l(),f?[]:void 0,d]):l(),s==="sync"){const x=Gd();c=x.__watcherHandles||(x.__watcherHandles=[])}else return at;let p=f?new Array(e.length).fill(_r):_r;const g=()=>{if(y.active)if(t){const x=y.run();(o||u||(f?x.some((E,v)=>qn(E,p[v])):qn(x,p)))&&(h&&h(),nt(t,a,3,[x,p===_r?void 0:f&&p[0]===_r?[]:p,d]),p=x)}else y.run()};g.allowRecurse=!!t;let m;s==="sync"?m=g:s==="post"?m=()=>ke(g,a&&a.suspense):(g.pre=!0,a&&(g.id=a.uid),m=()=>Yr(g));const y=new To(l,m);t?n?g():p=y.run():s==="post"?ke(y.run.bind(y),a&&a.suspense):y.run();const _=()=>{y.stop(),a&&a.scope&&Co(a.scope.effects,y)};return c&&c.push(_),_}function sd(e,t,n){const o=this.proxy,s=Oe(e)?e.includes(".")?Ul(o,e):()=>o[e]:e.bind(o,o);let r;oe(t)?r=t:(r=t.handler,n=t);const i=Te;wn(this);const a=$o(s,r.bind(o),n);return i?wn(i):Xt(),a}function Ul(e,t){const n=t.split(".");return()=>{let o=e;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function Gt(e,t){if(!Ce(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Le(e))Gt(e.value,t);else if(ne(e))for(let n=0;n<e.length;n++)Gt(e[n],t);else if(al(e)||pn(e))e.forEach(n=>{Gt(n,t)});else if(ul(e))for(const n in e)Gt(e[n],t);return e}function od(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return mt(()=>{e.isMounted=!0}),qr(()=>{e.isUnmounting=!0}),e}const qe=[Function,Array],id={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:qe,onEnter:qe,onAfterEnter:qe,onEnterCancelled:qe,onBeforeLeave:qe,onLeave:qe,onAfterLeave:qe,onLeaveCancelled:qe,onBeforeAppear:qe,onAppear:qe,onAfterAppear:qe,onAppearCancelled:qe},setup(e,{slots:t}){const n=Ct(),o=od();let s;return()=>{const r=t.default&&Kl(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const g of r)if(g.type!==Ue){i=g;break}}const a=de(e),{mode:l}=a;if(o.isLeaving)return vs(i);const u=bi(i);if(!u)return vs(i);const f=$s(u,a,o,n);Nr(u,f);const h=n.subTree,d=h&&bi(h);let c=!1;const{getTransitionKey:p}=u.type;if(p){const g=p();s===void 0?s=g:g!==s&&(s=g,c=!0)}if(d&&d.type!==Ue&&(!it(u,d)||c)){const g=$s(d,a,o,n);if(Nr(d,g),l==="out-in")return o.isLeaving=!0,g.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},vs(i);l==="in-out"&&u.type!==Ue&&(g.delayLeave=(m,y,_)=>{const x=Wl(o,d);x[String(d.key)]=d,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=_})}return i}}},Vl=id;function Wl(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function $s(e,t,n,o){const{appear:s,mode:r,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:h,onLeave:d,onAfterLeave:c,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:_}=t,x=String(e.key),E=Wl(n,e),v=(w,P)=>{w&&nt(w,o,9,P)},b=(w,P)=>{const C=P[1];v(w,P),ne(w)?w.every(I=>I.length<=1)&&C():w.length<=1&&C()},S={mode:r,persisted:i,beforeEnter(w){let P=a;if(!n.isMounted)if(s)P=g||a;else return;w._leaveCb&&w._leaveCb(!0);const C=E[x];C&&it(e,C)&&C.el._leaveCb&&C.el._leaveCb(),v(P,[w])},enter(w){let P=l,C=u,I=f;if(!n.isMounted)if(s)P=m||l,C=y||u,I=_||f;else return;let L=!1;const O=w._enterCb=k=>{L||(L=!0,k?v(I,[w]):v(C,[w]),S.delayedLeave&&S.delayedLeave(),w._enterCb=void 0)};P?b(P,[w,O]):O()},leave(w,P){const C=String(e.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return P();v(h,[w]);let I=!1;const L=w._leaveCb=O=>{I||(I=!0,P(),O?v(p,[w]):v(c,[w]),w._leaveCb=void 0,E[C]===e&&delete E[C])};E[C]=e,d?b(d,[w,L]):L()},clone(w){return $s(w,t,n,o)}};return S}function vs(e){if(ur(e))return e=Et(e),e.children=null,e}function bi(e){return ur(e)?e.children?e.children[0]:void 0:e}function Nr(e,t){e.shapeFlag&6&&e.component?Nr(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 Kl(e,t=!1,n){let o=[],s=0;for(let r=0;r<e.length;r++){let i=e[r];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:r);i.type===Ne?(i.patchFlag&128&&s++,o=o.concat(Kl(i.children,t,a))):(t||i.type!==Ue)&&o.push(a!=null?Et(i,{key:a}):i)}if(s>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}function Be(e){return oe(e)?{setup:e,name:e.name}:e}const Yt=e=>!!e.type.__asyncLoader;function ad(e){oe(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:s=200,timeout:r,suspensible:i=!0,onError:a}=e;let l=null,u,f=0;const h=()=>(f++,l=null,d()),d=()=>{let c;return l||(c=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((g,m)=>{a(p,()=>g(h()),()=>m(p),f+1)});throw p}).then(p=>c!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Be({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return u},setup(){const c=Te;if(u)return()=>ys(u,c);const p=_=>{l=null,On(_,c,13,!o)};if(i&&c.suspense||bn)return d().then(_=>()=>ys(_,c)).catch(_=>(p(_),()=>o?Ee(o,{error:_}):null));const g=ye(!1),m=ye(),y=ye(!!s);return s&&setTimeout(()=>{y.value=!1},s),r!=null&&setTimeout(()=>{if(!g.value&&!m.value){const _=new Error(`Async component timed out after ${r}ms.`);p(_),m.value=_}},r),d().then(()=>{g.value=!0,c.parent&&ur(c.parent.vnode)&&Yr(c.parent.update)}).catch(_=>{p(_),m.value=_}),()=>{if(g.value&&u)return ys(u,c);if(m.value&&o)return Ee(o,{error:m.value});if(n&&!y.value)return Ee(n)}}})}function ys(e,t){const{ref:n,props:o,children:s,ce:r}=t.vnode,i=Ee(e,o,s);return i.ref=n,i.ce=r,delete t.vnode.ce,i}const ur=e=>e.type.__isKeepAlive,ld={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Ct(),o=n.ctx;if(!o.renderer)return()=>{const _=t.default&&t.default();return _&&_.length===1?_[0]:_};const s=new Map,r=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:f,o:{createElement:h}}}=o,d=h("div");o.activate=(_,x,E,v,b)=>{const S=_.component;u(_,x,E,0,a),l(S.vnode,_,x,E,S,a,v,_.slotScopeIds,b),ke(()=>{S.isDeactivated=!1,S.a&&Wn(S.a);const w=_.props&&_.props.onVnodeMounted;w&&We(w,S.parent,_)},a)},o.deactivate=_=>{const x=_.component;u(_,d,null,1,a),ke(()=>{x.da&&Wn(x.da);const E=_.props&&_.props.onVnodeUnmounted;E&&We(E,x.parent,_),x.isDeactivated=!0},a)};function c(_){_s(_),f(_,n,a,!0)}function p(_){s.forEach((x,E)=>{const v=Ws(x.type);v&&(!_||!_(v))&&g(E)})}function g(_){const x=s.get(_);!i||!it(x,i)?c(x):i&&_s(i),s.delete(_),r.delete(_)}lt(()=>[e.include,e.exclude],([_,x])=>{_&&p(E=>Un(_,E)),x&&p(E=>!Un(x,E))},{flush:"post",deep:!0});let m=null;const y=()=>{m!=null&&s.set(m,xs(n.subTree))};return mt(y),Ql(y),qr(()=>{s.forEach(_=>{const{subTree:x,suspense:E}=n,v=xs(x);if(_.type===v.type&&_.key===v.key){_s(v);const b=v.component.da;b&&ke(b,E);return}c(_)})}),()=>{if(m=null,!t.default)return null;const _=t.default(),x=_[0];if(_.length>1)return i=null,_;if(!xn(x)||!(x.shapeFlag&4)&&!(x.shapeFlag&128))return i=null,x;let E=xs(x);const v=E.type,b=Ws(Yt(E)?E.type.__asyncResolved||{}:v),{include:S,exclude:w,max:P}=e;if(S&&(!b||!Un(S,b))||w&&b&&Un(w,b))return i=E,x;const C=E.key==null?v:E.key,I=s.get(C);return E.el&&(E=Et(E),x.shapeFlag&128&&(x.ssContent=E)),m=C,I?(E.el=I.el,E.component=I.component,E.transition&&Nr(E,E.transition),E.shapeFlag|=512,r.delete(C),r.add(C)):(r.add(C),P&&r.size>parseInt(P,10)&&g(r.values().next().value)),E.shapeFlag|=256,i=E,Bl(x.type)?x:E}}},cd=ld;function Un(e,t){return ne(e)?e.some(n=>Un(n,t)):Oe(e)?e.split(",").includes(t):tf(e)?e.test(t):!1}function zl(e,t){Jl(e,"a",t)}function Gl(e,t){Jl(e,"da",t)}function Jl(e,t,n=Te){const o=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Zr(t,o,n),n){let s=n.parent;for(;s&&s.parent;)ur(s.parent.vnode)&&ud(o,t,n,s),s=s.parent}}function ud(e,t,n,o){const s=Zr(t,e,o,!0);Bo(()=>{Co(o[t],s)},n)}function _s(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function xs(e){return e.shapeFlag&128?e.ssContent:e}function Zr(e,t,n=Te,o=!1){if(n){const s=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Rn(),wn(n);const a=nt(t,n,e,i);return Xt(),Tn(),a});return o?s.unshift(r):s.push(r),r}}const St=e=>(t,n=Te)=>(!bn||e==="sp")&&Zr(e,(...o)=>t(...o),n),fd=St("bm"),mt=St("m"),dd=St("bu"),Ql=St("u"),qr=St("bum"),Bo=St("um"),hd=St("sp"),pd=St("rtg"),gd=St("rtc");function Yl(e,t=Te){Zr("ec",e,t)}function lx(e,t){const n=Me;if(n===null)return e;const o=ts(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,l,u=Se]=t[r];i&&(oe(i)&&(i={mounted:i,updated:i}),i.deep&&Gt(a),s.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function ft(e,t,n,o){const s=e.dirs,r=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];r&&(a.oldValue=r[i].value);let l=a.dir[o];l&&(Rn(),nt(l,n,8,[e.el,a,e,t]),Tn())}}const Ho="components";function cx(e,t){return Zl(Ho,e,!0,t)||e}const Xl=Symbol();function md(e){return Oe(e)?Zl(Ho,e,!1)||e:e||Xl}function Zl(e,t,n=!0,o=!1){const s=Me||Te;if(s){const r=s.type;if(e===Ho){const a=Ws(r,!1);if(a&&(a===t||a===pt(t)||a===Jr(pt(t))))return r}const i=Ei(s[e]||r[e],t)||Ei(s.appContext[e],t);return!i&&o?r:i}}function Ei(e,t){return e&&(e[t]||e[pt(t)]||e[Jr(pt(t))])}function ux(e,t,n,o){let s;const r=n&&n[o];if(ne(e)||Oe(e)){s=new Array(e.length);for(let i=0,a=e.length;i<a;i++)s[i]=t(e[i],i,void 0,r&&r[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,r&&r[i])}else if(Ce(e))if(e[Symbol.iterator])s=Array.from(e,(i,a)=>t(i,a,void 0,r&&r[a]));else{const i=Object.keys(e);s=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const u=i[a];s[a]=t(e[u],u,a,r&&r[a])}}else s=[];return n&&(n[o]=s),s}function fx(e,t,n={},o,s){if(Me.isCE||Me.parent&&Yt(Me.parent)&&Me.parent.isCE)return t!=="default"&&(n.name=t),Ee("slot",n,o&&o());let r=e[t];r&&r._c&&(r._d=!1),ve();const i=r&&ql(r(n)),a=De(Ne,{key:n.key||i&&i.key||`_${t}`},i||(o?o():[]),i&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function ql(e){return e.some(t=>xn(t)?!(t.type===Ue||t.type===Ne&&!ql(t.children)):!0)?e:null}const Bs=e=>e?dc(e)?ts(e)||e.proxy:Bs(e.parent):null,Kn=Fe(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=>Bs(e.parent),$root:e=>Bs(e.root),$emit:e=>e.emit,$options:e=>jo(e),$forceUpdate:e=>e.f||(e.f=()=>Yr(e.update)),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>sd.bind(e)}),ws=(e,t)=>e!==Se&&!e.__isScriptSetup&&fe(e,t),vd={get({_:e},t){const{ctx:n,setupState:o,data:s,props:r,accessCache:i,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const c=i[t];if(c!==void 0)switch(c){case 1:return o[t];case 2:return s[t];case 4:return n[t];case 3:return r[t]}else{if(ws(o,t))return i[t]=1,o[t];if(s!==Se&&fe(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&fe(u,t))return i[t]=3,r[t];if(n!==Se&&fe(n,t))return i[t]=4,n[t];Hs&&(i[t]=0)}}const f=Kn[t];let h,d;if(f)return t==="$attrs"&&ze(e,"get",t),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==Se&&fe(n,t))return i[t]=4,n[t];if(d=l.config.globalProperties,fe(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:s,ctx:r}=e;return ws(s,t)?(s[t]=n,!0):o!==Se&&fe(o,t)?(o[t]=n,!0):fe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:s,propsOptions:r}},i){let a;return!!n[i]||e!==Se&&fe(e,i)||ws(t,i)||(a=r[0])&&fe(a,i)||fe(o,i)||fe(Kn,i)||fe(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:fe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Hs=!0;function yd(e){const t=jo(e),n=e.proxy,o=e.ctx;Hs=!1,t.beforeCreate&&Si(t.beforeCreate,e,"bc");const{data:s,computed:r,methods:i,watch:a,provide:l,inject:u,created:f,beforeMount:h,mounted:d,beforeUpdate:c,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:_,destroyed:x,unmounted:E,render:v,renderTracked:b,renderTriggered:S,errorCaptured:w,serverPrefetch:P,expose:C,inheritAttrs:I,components:L,directives:O,filters:k}=t;if(u&&_d(u,o,null,e.appContext.config.unwrapInjectedRef),i)for(const j in i){const Y=i[j];oe(Y)&&(o[j]=Y.bind(n))}if(s){const j=s.call(n,n);Ce(j)&&(e.data=gt(j))}if(Hs=!0,r)for(const j in r){const Y=r[j],se=oe(Y)?Y.bind(n,n):oe(Y.get)?Y.get.bind(n,n):at,ce=!oe(Y)&&oe(Y.set)?Y.set.bind(n):at,pe=_e({get:se,set:ce});Object.defineProperty(o,j,{enumerable:!0,configurable:!0,get:()=>pe.value,set:ee=>pe.value=ee})}if(a)for(const j in a)ec(a[j],o,n,j);if(l){const j=oe(l)?l.call(n):l;Reflect.ownKeys(j).forEach(Y=>{yn(Y,j[Y])})}f&&Si(f,e,"c");function V(j,Y){ne(Y)?Y.forEach(se=>j(se.bind(n))):Y&&j(Y.bind(n))}if(V(fd,h),V(mt,d),V(dd,c),V(Ql,p),V(zl,g),V(Gl,m),V(Yl,w),V(gd,b),V(pd,S),V(qr,_),V(Bo,E),V(hd,P),ne(C))if(C.length){const j=e.exposed||(e.exposed={});C.forEach(Y=>{Object.defineProperty(j,Y,{get:()=>n[Y],set:se=>n[Y]=se})})}else e.exposed||(e.exposed={});v&&e.render===at&&(e.render=v),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),O&&(e.directives=O)}function _d(e,t,n=at,o=!1){ne(e)&&(e=js(e));for(const s in e){const r=e[s];let i;Ce(r)?"default"in r?i=je(r.from||s,r.default,!0):i=je(r.from||s):i=je(r),Le(i)&&o?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function Si(e,t,n){nt(ne(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function ec(e,t,n,o){const s=o.includes(".")?Ul(n,o):()=>n[o];if(Oe(e)){const r=t[e];oe(r)&&lt(s,r)}else if(oe(e))lt(s,e.bind(n));else if(Ce(e))if(ne(e))e.forEach(r=>ec(r,t,n,o));else{const r=oe(e.handler)?e.handler.bind(n):t[e.handler];oe(r)&&lt(s,r,e)}}function jo(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let l;return a?l=a:!s.length&&!n&&!o?l=t:(l={},s.length&&s.forEach(u=>Dr(l,u,i,!0)),Dr(l,t,i)),Ce(t)&&r.set(t,l),l}function Dr(e,t,n,o=!1){const{mixins:s,extends:r}=t;r&&Dr(e,r,n,!0),s&&s.forEach(i=>Dr(e,i,n,!0));for(const i in t)if(!(o&&i==="expose")){const a=xd[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const xd={data:Ci,props:Wt,emits:Wt,methods:Wt,computed:Wt,beforeCreate:He,created:He,beforeMount:He,mounted:He,beforeUpdate:He,updated:He,beforeDestroy:He,beforeUnmount:He,destroyed:He,unmounted:He,activated:He,deactivated:He,errorCaptured:He,serverPrefetch:He,components:Wt,directives:Wt,watch:bd,provide:Ci,inject:wd};function Ci(e,t){return t?e?function(){return Fe(oe(e)?e.call(this,this):e,oe(t)?t.call(this,this):t)}:t:e}function wd(e,t){return Wt(js(e),js(t))}function js(e){if(ne(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function He(e,t){return e?[...new Set([].concat(e,t))]:t}function Wt(e,t){return e?Fe(Fe(Object.create(null),e),t):t}function bd(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const o in t)n[o]=He(e[o],t[o]);return n}function Ed(e,t,n,o=!1){const s={},r={};Ir(r,es,1),e.propsDefaults=Object.create(null),tc(e,t,s,r);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=o?s:Df(s):e.type.props?e.props=s:e.props=r,e.attrs=r}function Sd(e,t,n,o){const{props:s,attrs:r,vnode:{patchFlag:i}}=e,a=de(s),[l]=e.propsOptions;let u=!1;if((o||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let d=f[h];if(Xr(e.emitsOptions,d))continue;const c=t[d];if(l)if(fe(r,d))c!==r[d]&&(r[d]=c,u=!0);else{const p=pt(d);s[p]=Us(l,a,p,c,e,!1)}else c!==r[d]&&(r[d]=c,u=!0)}}}else{tc(e,t,s,r)&&(u=!0);let f;for(const h in a)(!t||!fe(t,h)&&((f=Ln(h))===h||!fe(t,f)))&&(l?n&&(n[h]!==void 0||n[f]!==void 0)&&(s[h]=Us(l,a,h,void 0,e,!0)):delete s[h]);if(r!==a)for(const h in r)(!t||!fe(t,h))&&(delete r[h],u=!0)}u&&bt(e,"set","$attrs")}function tc(e,t,n,o){const[s,r]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Vn(l))continue;const u=t[l];let f;s&&fe(s,f=pt(l))?!r||!r.includes(f)?n[f]=u:(a||(a={}))[f]=u:Xr(e.emitsOptions,l)||(!(l in o)||u!==o[l])&&(o[l]=u,i=!0)}if(r){const l=de(n),u=a||Se;for(let f=0;f<r.length;f++){const h=r[f];n[h]=Us(s,l,h,u[h],e,!fe(u,h))}}return i}function Us(e,t,n,o,s,r){const i=e[n];if(i!=null){const a=fe(i,"default");if(a&&o===void 0){const l=i.default;if(i.type!==Function&&oe(l)){const{propsDefaults:u}=s;n in u?o=u[n]:(wn(s),o=u[n]=l.call(null,t),Xt())}else o=l}i[0]&&(r&&!a?o=!1:i[1]&&(o===""||o===Ln(n))&&(o=!0))}return o}function nc(e,t,n=!1){const o=t.propsCache,s=o.get(e);if(s)return s;const r=e.props,i={},a=[];let l=!1;if(!oe(e)){const f=h=>{l=!0;const[d,c]=nc(h,t,!0);Fe(i,d),c&&a.push(...c)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!r&&!l)return Ce(e)&&o.set(e,hn),hn;if(ne(r))for(let f=0;f<r.length;f++){const h=pt(r[f]);Pi(h)&&(i[h]=Se)}else if(r)for(const f in r){const h=pt(f);if(Pi(h)){const d=r[f],c=i[h]=ne(d)||oe(d)?{type:d}:Object.assign({},d);if(c){const p=Ti(Boolean,c.type),g=Ti(String,c.type);c[0]=p>-1,c[1]=g<0||p<g,(p>-1||fe(c,"default"))&&a.push(h)}}}const u=[i,a];return Ce(e)&&o.set(e,u),u}function Pi(e){return e[0]!=="$"}function Li(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Ri(e,t){return Li(e)===Li(t)}function Ti(e,t){return ne(t)?t.findIndex(n=>Ri(n,e)):oe(t)&&Ri(t,e)?0:-1}const rc=e=>e[0]==="_"||e==="$stable",Uo=e=>ne(e)?e.map(et):[et(e)],Cd=(e,t,n)=>{if(t._n)return t;const o=tn((...s)=>Uo(t(...s)),n);return o._c=!1,o},sc=(e,t,n)=>{const o=e._ctx;for(const s in e){if(rc(s))continue;const r=e[s];if(oe(r))t[s]=Cd(s,r,o);else if(r!=null){const i=Uo(r);t[s]=()=>i}}},oc=(e,t)=>{const n=Uo(t);e.slots.default=()=>n},Pd=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=de(t),Ir(t,"_",n)):sc(t,e.slots={})}else e.slots={},t&&oc(e,t);Ir(e.slots,es,1)},Ld=(e,t,n)=>{const{vnode:o,slots:s}=e;let r=!0,i=Se;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Fe(s,t),!n&&a===1&&delete s._):(r=!t.$stable,sc(t,s)),i=t}else t&&(oc(e,t),i={default:1});if(r)for(const a in s)!rc(a)&&!(a in i)&&delete s[a]};function ic(){return{app:null,config:{isNativeTag:Zu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Rd=0;function Td(e,t){return function(o,s=null){oe(o)||(o=Object.assign({},o)),s!=null&&!Ce(s)&&(s=null);const r=ic(),i=new Set;let a=!1;const l=r.app={_uid:Rd++,_component:o,_props:s,_container:null,_context:r,_instance:null,version:pc,get config(){return r.config},set config(u){},use(u,...f){return i.has(u)||(u&&oe(u.install)?(i.add(u),u.install(l,...f)):oe(u)&&(i.add(u),u(l,...f))),l},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),l},component(u,f){return f?(r.components[u]=f,l):r.components[u]},directive(u,f){return f?(r.directives[u]=f,l):r.directives[u]},mount(u,f,h){if(!a){const d=Ee(o,s);return d.appContext=r,f&&t?t(d,u):e(d,u,h),a=!0,l._container=u,u.__vue_app__=l,ts(d.component)||d.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,f){return r.provides[u]=f,l}};return l}}function $r(e,t,n,o,s=!1){if(ne(e)){e.forEach((d,c)=>$r(d,t&&(ne(t)?t[c]:t),n,o,s));return}if(Yt(o)&&!s)return;const r=o.shapeFlag&4?ts(o.component)||o.component.proxy:o.el,i=s?null:r,{i:a,r:l}=e,u=t&&t.r,f=a.refs===Se?a.refs={}:a.refs,h=a.setupState;if(u!=null&&u!==l&&(Oe(u)?(f[u]=null,fe(h,u)&&(h[u]=null)):Le(u)&&(u.value=null)),oe(l))Ft(l,a,12,[i,f]);else{const d=Oe(l),c=Le(l);if(d||c){const p=()=>{if(e.f){const g=d?fe(h,l)?h[l]:f[l]:l.value;s?ne(g)&&Co(g,r):ne(g)?g.includes(r)||g.push(r):d?(f[l]=[r],fe(h,l)&&(h[l]=f[l])):(l.value=[r],e.k&&(f[e.k]=l.value))}else d?(f[l]=i,fe(h,l)&&(h[l]=i)):c&&(l.value=i,e.k&&(f[e.k]=i))};i?(p.id=-1,ke(p,n)):p()}}}let Rt=!1;const xr=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",wr=e=>e.nodeType===8;function Od(e){const{mt:t,p:n,o:{patchProp:o,createText:s,nextSibling:r,parentNode:i,remove:a,insert:l,createComment:u}}=e,f=(y,_)=>{if(!_.hasChildNodes()){n(null,y,_),Mr(),_._vnode=y;return}Rt=!1,h(_.firstChild,y,null,null,null),Mr(),_._vnode=y,Rt&&console.error("Hydration completed but contains mismatches.")},h=(y,_,x,E,v,b=!1)=>{const S=wr(y)&&y.data==="[",w=()=>g(y,_,x,E,v,S),{type:P,ref:C,shapeFlag:I,patchFlag:L}=_;let O=y.nodeType;_.el=y,L===-2&&(b=!1,_.dynamicChildren=null);let k=null;switch(P){case qt:O!==3?_.children===""?(l(_.el=s(""),i(y),y),k=y):k=w():(y.data!==_.children&&(Rt=!0,y.data=_.children),k=r(y));break;case Ue:O!==8||S?k=w():k=r(y);break;case Rr:if(S&&(y=r(y),O=y.nodeType),O===1||O===3){k=y;const D=!_.children.length;for(let V=0;V<_.staticCount;V++)D&&(_.children+=k.nodeType===1?k.outerHTML:k.data),V===_.staticCount-1&&(_.anchor=k),k=r(k);return S?r(k):k}else w();break;case Ne:S?k=p(y,_,x,E,v,b):k=w();break;default:if(I&1)O!==1||_.type.toLowerCase()!==y.tagName.toLowerCase()?k=w():k=d(y,_,x,E,v,b);else if(I&6){_.slotScopeIds=v;const D=i(y);if(t(_,D,null,x,E,xr(D),b),k=S?m(y):r(y),k&&wr(k)&&k.data==="teleport end"&&(k=r(k)),Yt(_)){let V;S?(V=Ee(Ne),V.anchor=k?k.previousSibling:D.lastChild):V=y.nodeType===3?Vo(""):Ee("div"),V.el=y,_.component.subTree=V}}else I&64?O!==8?k=w():k=_.type.hydrate(y,_,x,E,v,b,e,c):I&128&&(k=_.type.hydrate(y,_,x,E,xr(i(y)),v,b,e,h))}return C!=null&&$r(C,null,E,_),k},d=(y,_,x,E,v,b)=>{b=b||!!_.dynamicChildren;const{type:S,props:w,patchFlag:P,shapeFlag:C,dirs:I}=_,L=S==="input"&&I||S==="option";if(L||P!==-1){if(I&&ft(_,null,x,"created"),w)if(L||!b||P&48)for(const k in w)(L&&k.endsWith("value")||lr(k)&&!Vn(k))&&o(y,k,null,w[k],!1,void 0,x);else w.onClick&&o(y,"onClick",null,w.onClick,!1,void 0,x);let O;if((O=w&&w.onVnodeBeforeMount)&&We(O,x,_),I&&ft(_,null,x,"beforeMount"),((O=w&&w.onVnodeMounted)||I)&&jl(()=>{O&&We(O,x,_),I&&ft(_,null,x,"mounted")},E),C&16&&!(w&&(w.innerHTML||w.textContent))){let k=c(y.firstChild,_,y,x,E,v,b);for(;k;){Rt=!0;const D=k;k=k.nextSibling,a(D)}}else C&8&&y.textContent!==_.children&&(Rt=!0,y.textContent=_.children)}return y.nextSibling},c=(y,_,x,E,v,b,S)=>{S=S||!!_.dynamicChildren;const w=_.children,P=w.length;for(let C=0;C<P;C++){const I=S?w[C]:w[C]=et(w[C]);if(y)y=h(y,I,E,v,b,S);else{if(I.type===qt&&!I.children)continue;Rt=!0,n(null,I,x,null,E,v,xr(x),b)}}return y},p=(y,_,x,E,v,b)=>{const{slotScopeIds:S}=_;S&&(v=v?v.concat(S):S);const w=i(y),P=c(r(y),_,w,x,E,v,b);return P&&wr(P)&&P.data==="]"?r(_.anchor=P):(Rt=!0,l(_.anchor=u("]"),w,P),P)},g=(y,_,x,E,v,b)=>{if(Rt=!0,_.el=null,b){const P=m(y);for(;;){const C=r(y);if(C&&C!==P)a(C);else break}}const S=r(y),w=i(y);return a(y),n(null,_,w,S,x,E,xr(w),v),S},m=y=>{let _=0;for(;y;)if(y=r(y),y&&wr(y)&&(y.data==="["&&_++,y.data==="]")){if(_===0)return r(y);_--}return y};return[f,h]}const ke=jl;function Id(e){return ac(e)}function Ad(e){return ac(e,Od)}function ac(e,t){const n=af();n.__VUE__=!0;const{insert:o,remove:s,patchProp:r,createElement:i,createText:a,createComment:l,setText:u,setElementText:f,parentNode:h,nextSibling:d,setScopeId:c=at,insertStaticContent:p}=e,g=(R,A,N,$=null,U=null,z=null,Q=!1,K=null,J=!!A.dynamicChildren)=>{if(R===A)return;R&&!it(R,A)&&($=G(R),ee(R,U,z,!0),R=null),A.patchFlag===-2&&(J=!1,A.dynamicChildren=null);const{type:H,ref:M,shapeFlag:F}=A;switch(H){case qt:m(R,A,N,$);break;case Ue:y(R,A,N,$);break;case Rr:R==null&&_(A,N,$,Q);break;case Ne:L(R,A,N,$,U,z,Q,K,J);break;default:F&1?v(R,A,N,$,U,z,Q,K,J):F&6?O(R,A,N,$,U,z,Q,K,J):(F&64||F&128)&&H.process(R,A,N,$,U,z,Q,K,J,le)}M!=null&&U&&$r(M,R&&R.ref,z,A||R,!A)},m=(R,A,N,$)=>{if(R==null)o(A.el=a(A.children),N,$);else{const U=A.el=R.el;A.children!==R.children&&u(U,A.children)}},y=(R,A,N,$)=>{R==null?o(A.el=l(A.children||""),N,$):A.el=R.el},_=(R,A,N,$)=>{[R.el,R.anchor]=p(R.children,A,N,$,R.el,R.anchor)},x=({el:R,anchor:A},N,$)=>{let U;for(;R&&R!==A;)U=d(R),o(R,N,$),R=U;o(A,N,$)},E=({el:R,anchor:A})=>{let N;for(;R&&R!==A;)N=d(R),s(R),R=N;s(A)},v=(R,A,N,$,U,z,Q,K,J)=>{Q=Q||A.type==="svg",R==null?b(A,N,$,U,z,Q,K,J):P(R,A,U,z,Q,K,J)},b=(R,A,N,$,U,z,Q,K)=>{let J,H;const{type:M,props:F,shapeFlag:Z,transition:q,dirs:re}=R;if(J=R.el=i(R.type,z,F&&F.is,F),Z&8?f(J,R.children):Z&16&&w(R.children,J,null,$,U,z&&M!=="foreignObject",Q,K),re&&ft(R,null,$,"created"),S(J,R,R.scopeId,Q,$),F){for(const ue in F)ue!=="value"&&!Vn(ue)&&r(J,ue,null,F[ue],z,R.children,$,U,W);"value"in F&&r(J,"value",null,F.value),(H=F.onVnodeBeforeMount)&&We(H,$,R)}re&&ft(R,null,$,"beforeMount");const he=(!U||U&&!U.pendingBranch)&&q&&!q.persisted;he&&q.beforeEnter(J),o(J,A,N),((H=F&&F.onVnodeMounted)||he||re)&&ke(()=>{H&&We(H,$,R),he&&q.enter(J),re&&ft(R,null,$,"mounted")},U)},S=(R,A,N,$,U)=>{if(N&&c(R,N),$)for(let z=0;z<$.length;z++)c(R,$[z]);if(U){let z=U.subTree;if(A===z){const Q=U.vnode;S(R,Q,Q.scopeId,Q.slotScopeIds,U.parent)}}},w=(R,A,N,$,U,z,Q,K,J=0)=>{for(let H=J;H<R.length;H++){const M=R[H]=K?At(R[H]):et(R[H]);g(null,M,A,N,$,U,z,Q,K)}},P=(R,A,N,$,U,z,Q)=>{const K=A.el=R.el;let{patchFlag:J,dynamicChildren:H,dirs:M}=A;J|=R.patchFlag&16;const F=R.props||Se,Z=A.props||Se;let q;N&&Bt(N,!1),(q=Z.onVnodeBeforeUpdate)&&We(q,N,A,R),M&&ft(A,R,N,"beforeUpdate"),N&&Bt(N,!0);const re=U&&A.type!=="foreignObject";if(H?C(R.dynamicChildren,H,K,N,$,re,z):Q||Y(R,A,K,null,N,$,re,z,!1),J>0){if(J&16)I(K,A,F,Z,N,$,U);else if(J&2&&F.class!==Z.class&&r(K,"class",null,Z.class,U),J&4&&r(K,"style",F.style,Z.style,U),J&8){const he=A.dynamicProps;for(let ue=0;ue<he.length;ue++){const Re=he[ue],Ze=F[Re],sn=Z[Re];(sn!==Ze||Re==="value")&&r(K,Re,Ze,sn,U,R.children,N,$,W)}}J&1&&R.children!==A.children&&f(K,A.children)}else!Q&&H==null&&I(K,A,F,Z,N,$,U);((q=Z.onVnodeUpdated)||M)&&ke(()=>{q&&We(q,N,A,R),M&&ft(A,R,N,"updated")},$)},C=(R,A,N,$,U,z,Q)=>{for(let K=0;K<A.length;K++){const J=R[K],H=A[K],M=J.el&&(J.type===Ne||!it(J,H)||J.shapeFlag&70)?h(J.el):N;g(J,H,M,null,$,U,z,Q,!0)}},I=(R,A,N,$,U,z,Q)=>{if(N!==$){if(N!==Se)for(const K in N)!Vn(K)&&!(K in $)&&r(R,K,N[K],null,Q,A.children,U,z,W);for(const K in $){if(Vn(K))continue;const J=$[K],H=N[K];J!==H&&K!=="value"&&r(R,K,H,J,Q,A.children,U,z,W)}"value"in $&&r(R,"value",N.value,$.value)}},L=(R,A,N,$,U,z,Q,K,J)=>{const H=A.el=R?R.el:a(""),M=A.anchor=R?R.anchor:a("");let{patchFlag:F,dynamicChildren:Z,slotScopeIds:q}=A;q&&(K=K?K.concat(q):q),R==null?(o(H,N,$),o(M,N,$),w(A.children,N,M,U,z,Q,K,J)):F>0&&F&64&&Z&&R.dynamicChildren?(C(R.dynamicChildren,Z,N,U,z,Q,K),(A.key!=null||U&&A===U.subTree)&&lc(R,A,!0)):Y(R,A,N,M,U,z,Q,K,J)},O=(R,A,N,$,U,z,Q,K,J)=>{A.slotScopeIds=K,R==null?A.shapeFlag&512?U.ctx.activate(A,N,$,Q,J):k(A,N,$,U,z,Q,J):D(R,A,J)},k=(R,A,N,$,U,z,Q)=>{const K=R.component=Hd(R,$,U);if(ur(R)&&(K.ctx.renderer=le),jd(K),K.asyncDep){if(U&&U.registerDep(K,V),!R.el){const J=K.subTree=Ee(Ue);y(null,J,A,N)}return}V(K,R,A,N,U,z,Q)},D=(R,A,N)=>{const $=A.component=R.component;if(Xf(R,A,N))if($.asyncDep&&!$.asyncResolved){j($,A,N);return}else $.next=A,Kf($.update),$.update();else A.el=R.el,$.vnode=A},V=(R,A,N,$,U,z,Q)=>{const K=()=>{if(R.isMounted){let{next:M,bu:F,u:Z,parent:q,vnode:re}=R,he=M,ue;Bt(R,!1),M?(M.el=re.el,j(R,M,Q)):M=re,F&&Wn(F),(ue=M.props&&M.props.onVnodeBeforeUpdate)&&We(ue,q,M,re),Bt(R,!0);const Re=ms(R),Ze=R.subTree;R.subTree=Re,g(Ze,Re,h(Ze.el),G(Ze),R,U,z),M.el=Re.el,he===null&&No(R,Re.el),Z&&ke(Z,U),(ue=M.props&&M.props.onVnodeUpdated)&&ke(()=>We(ue,q,M,re),U)}else{let M;const{el:F,props:Z}=A,{bm:q,m:re,parent:he}=R,ue=Yt(A);if(Bt(R,!1),q&&Wn(q),!ue&&(M=Z&&Z.onVnodeBeforeMount)&&We(M,he,A),Bt(R,!0),F&&ae){const Re=()=>{R.subTree=ms(R),ae(F,R.subTree,R,U,null)};ue?A.type.__asyncLoader().then(()=>!R.isUnmounted&&Re()):Re()}else{const Re=R.subTree=ms(R);g(null,Re,N,$,R,U,z),A.el=Re.el}if(re&&ke(re,U),!ue&&(M=Z&&Z.onVnodeMounted)){const Re=A;ke(()=>We(M,he,Re),U)}(A.shapeFlag&256||he&&Yt(he.vnode)&&he.vnode.shapeFlag&256)&&R.a&&ke(R.a,U),R.isMounted=!0,A=N=$=null}},J=R.effect=new To(K,()=>Yr(H),R.scope),H=R.update=()=>J.run();H.id=R.uid,Bt(R,!0),H()},j=(R,A,N)=>{A.component=R;const $=R.vnode.props;R.vnode=A,R.next=null,Sd(R,A.props,$,N),Ld(R,A.children,N),Rn(),_i(),Tn()},Y=(R,A,N,$,U,z,Q,K,J=!1)=>{const H=R&&R.children,M=R?R.shapeFlag:0,F=A.children,{patchFlag:Z,shapeFlag:q}=A;if(Z>0){if(Z&128){ce(H,F,N,$,U,z,Q,K,J);return}else if(Z&256){se(H,F,N,$,U,z,Q,K,J);return}}q&8?(M&16&&W(H,U,z),F!==H&&f(N,F)):M&16?q&16?ce(H,F,N,$,U,z,Q,K,J):W(H,U,z,!0):(M&8&&f(N,""),q&16&&w(F,N,$,U,z,Q,K,J))},se=(R,A,N,$,U,z,Q,K,J)=>{R=R||hn,A=A||hn;const H=R.length,M=A.length,F=Math.min(H,M);let Z;for(Z=0;Z<F;Z++){const q=A[Z]=J?At(A[Z]):et(A[Z]);g(R[Z],q,N,null,U,z,Q,K,J)}H>M?W(R,U,z,!0,!1,F):w(A,N,$,U,z,Q,K,J,F)},ce=(R,A,N,$,U,z,Q,K,J)=>{let H=0;const M=A.length;let F=R.length-1,Z=M-1;for(;H<=F&&H<=Z;){const q=R[H],re=A[H]=J?At(A[H]):et(A[H]);if(it(q,re))g(q,re,N,null,U,z,Q,K,J);else break;H++}for(;H<=F&&H<=Z;){const q=R[F],re=A[Z]=J?At(A[Z]):et(A[Z]);if(it(q,re))g(q,re,N,null,U,z,Q,K,J);else break;F--,Z--}if(H>F){if(H<=Z){const q=Z+1,re=q<M?A[q].el:$;for(;H<=Z;)g(null,A[H]=J?At(A[H]):et(A[H]),N,re,U,z,Q,K,J),H++}}else if(H>Z)for(;H<=F;)ee(R[H],U,z,!0),H++;else{const q=H,re=H,he=new Map;for(H=re;H<=Z;H++){const Ge=A[H]=J?At(A[H]):et(A[H]);Ge.key!=null&&he.set(Ge.key,H)}let ue,Re=0;const Ze=Z-re+1;let sn=!1,li=0;const Fn=new Array(Ze);for(H=0;H<Ze;H++)Fn[H]=0;for(H=q;H<=F;H++){const Ge=R[H];if(Re>=Ze){ee(Ge,U,z,!0);continue}let ut;if(Ge.key!=null)ut=he.get(Ge.key);else for(ue=re;ue<=Z;ue++)if(Fn[ue-re]===0&&it(Ge,A[ue])){ut=ue;break}ut===void 0?ee(Ge,U,z,!0):(Fn[ut-re]=H+1,ut>=li?li=ut:sn=!0,g(Ge,A[ut],N,null,U,z,Q,K,J),Re++)}const ci=sn?kd(Fn):hn;for(ue=ci.length-1,H=Ze-1;H>=0;H--){const Ge=re+H,ut=A[Ge],ui=Ge+1<M?A[Ge+1].el:$;Fn[H]===0?g(null,ut,N,ui,U,z,Q,K,J):sn&&(ue<0||H!==ci[ue]?pe(ut,N,ui,2):ue--)}}},pe=(R,A,N,$,U=null)=>{const{el:z,type:Q,transition:K,children:J,shapeFlag:H}=R;if(H&6){pe(R.component.subTree,A,N,$);return}if(H&128){R.suspense.move(A,N,$);return}if(H&64){Q.move(R,A,N,le);return}if(Q===Ne){o(z,A,N);for(let F=0;F<J.length;F++)pe(J[F],A,N,$);o(R.anchor,A,N);return}if(Q===Rr){x(R,A,N);return}if($!==2&&H&1&&K)if($===0)K.beforeEnter(z),o(z,A,N),ke(()=>K.enter(z),U);else{const{leave:F,delayLeave:Z,afterLeave:q}=K,re=()=>o(z,A,N),he=()=>{F(z,()=>{re(),q&&q()})};Z?Z(z,re,he):he()}else o(z,A,N)},ee=(R,A,N,$=!1,U=!1)=>{const{type:z,props:Q,ref:K,children:J,dynamicChildren:H,shapeFlag:M,patchFlag:F,dirs:Z}=R;if(K!=null&&$r(K,null,N,R,!0),M&256){A.ctx.deactivate(R);return}const q=M&1&&Z,re=!Yt(R);let he;if(re&&(he=Q&&Q.onVnodeBeforeUnmount)&&We(he,A,R),M&6)B(R.component,N,$);else{if(M&128){R.suspense.unmount(N,$);return}q&&ft(R,null,A,"beforeUnmount"),M&64?R.type.remove(R,A,N,U,le,$):H&&(z!==Ne||F>0&&F&64)?W(H,A,N,!1,!0):(z===Ne&&F&384||!U&&M&16)&&W(J,A,N),$&&we(R)}(re&&(he=Q&&Q.onVnodeUnmounted)||q)&&ke(()=>{he&&We(he,A,R),q&&ft(R,null,A,"unmounted")},N)},we=R=>{const{type:A,el:N,anchor:$,transition:U}=R;if(A===Ne){be(N,$);return}if(A===Rr){E(R);return}const z=()=>{s(N),U&&!U.persisted&&U.afterLeave&&U.afterLeave()};if(R.shapeFlag&1&&U&&!U.persisted){const{leave:Q,delayLeave:K}=U,J=()=>Q(N,z);K?K(R.el,z,J):J()}else z()},be=(R,A)=>{let N;for(;R!==A;)N=d(R),s(R),R=N;s(A)},B=(R,A,N)=>{const{bum:$,scope:U,update:z,subTree:Q,um:K}=R;$&&Wn($),U.stop(),z&&(z.active=!1,ee(Q,R,A,N)),K&&ke(K,A),ke(()=>{R.isUnmounted=!0},A),A&&A.pendingBranch&&!A.isUnmounted&&R.asyncDep&&!R.asyncResolved&&R.suspenseId===A.pendingId&&(A.deps--,A.deps===0&&A.resolve())},W=(R,A,N,$=!1,U=!1,z=0)=>{for(let Q=z;Q<R.length;Q++)ee(R[Q],A,N,$,U)},G=R=>R.shapeFlag&6?G(R.component.subTree):R.shapeFlag&128?R.suspense.next():d(R.anchor||R.el),X=(R,A,N)=>{R==null?A._vnode&&ee(A._vnode,null,null,!0):g(A._vnode||null,R,A,null,null,null,N),_i(),Mr(),A._vnode=R},le={p:g,um:ee,m:pe,r:we,mt:k,mc:w,pc:Y,pbc:C,n:G,o:e};let xe,ae;return t&&([xe,ae]=t(le)),{render:X,hydrate:xe,createApp:Td(X,xe)}}function Bt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function lc(e,t,n=!1){const o=e.children,s=t.children;if(ne(o)&&ne(s))for(let r=0;r<o.length;r++){const i=o[r];let a=s[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[r]=At(s[r]),a.el=i.el),n||lc(i,a)),a.type===qt&&(a.el=i.el)}}function kd(e){const t=e.slice(),n=[0];let o,s,r,i,a;const l=e.length;for(o=0;o<l;o++){const u=e[o];if(u!==0){if(s=n[n.length-1],e[s]<u){t[o]=s,n.push(o);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<u?r=a+1:i=a;u<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Md=e=>e.__isTeleport,Ne=Symbol(void 0),qt=Symbol(void 0),Ue=Symbol(void 0),Rr=Symbol(void 0),zn=[];let tt=null;function ve(e=!1){zn.push(tt=e?null:[])}function cc(){zn.pop(),tt=zn[zn.length-1]||null}let _n=1;function Oi(e){_n+=e}function uc(e){return e.dynamicChildren=_n>0?tt||hn:null,cc(),_n>0&&tt&&tt.push(e),e}function Qe(e,t,n,o,s,r){return uc(te(e,t,n,o,s,r,!0))}function De(e,t,n,o,s){return uc(Ee(e,t,n,o,s,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function it(e,t){return e.type===t.type&&e.key===t.key}const es="__vInternal",fc=({key:e})=>e??null,Tr=({ref:e,ref_key:t,ref_for:n})=>e!=null?Oe(e)||Le(e)||oe(e)?{i:Me,r:e,k:t,f:!!n}:e:null;function te(e,t=null,n=null,o=0,s=null,r=e===Ne?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&fc(t),ref:t&&Tr(t),scopeId:$l,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:Me};return a?(Wo(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=Oe(n)?8:16),_n>0&&!i&&tt&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&tt.push(l),l}const Ee=Fd;function Fd(e,t=null,n=null,o=0,s=null,r=!1){if((!e||e===Xl)&&(e=Ue),xn(e)){const a=Et(e,t,!0);return n&&Wo(a,n),_n>0&&!r&&tt&&(a.shapeFlag&6?tt[tt.indexOf(e)]=a:tt.push(a)),a.patchFlag|=-2,a}if(Kd(e)&&(e=e.__vccOpts),t){t=Nd(t);let{class:a,style:l}=t;a&&!Oe(a)&&(t.class=zr(a)),Ce(l)&&(Cl(l)&&!ne(l)&&(l=Fe({},l)),t.style=Eo(l))}const i=Oe(e)?1:Bl(e)?128:Md(e)?64:Ce(e)?4:oe(e)?2:0;return te(e,t,n,o,s,i,r,!0)}function Nd(e){return e?Cl(e)||es in e?Fe({},e):e:null}function Et(e,t,n=!1){const{props:o,ref:s,patchFlag:r,children:i}=e,a=t?Dd(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&fc(a),ref:t&&t.ref?n&&s?ne(s)?s.concat(Tr(t)):[s,Tr(t)]:Tr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ne?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Et(e.ssContent),ssFallback:e.ssFallback&&Et(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Vo(e=" ",t=0){return Ee(qt,null,e,t)}function Ke(e="",t=!1){return t?(ve(),De(Ue,null,e)):Ee(Ue,null,e)}function et(e){return e==null||typeof e=="boolean"?Ee(Ue):ne(e)?Ee(Ne,null,e.slice()):typeof e=="object"?At(e):Ee(qt,null,String(e))}function At(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Et(e)}function Wo(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(ne(t))n=16;else if(typeof t=="object")if(o&65){const s=t.default;s&&(s._c&&(s._d=!1),Wo(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(es in t)?t._ctx=Me:s===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else oe(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),o&64?(n=16,t=[Vo(t)]):n=8);e.children=t,e.shapeFlag|=n}function Dd(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const s in o)if(s==="class")t.class!==o.class&&(t.class=zr([t.class,o.class]));else if(s==="style")t.style=Eo([t.style,o.style]);else if(lr(s)){const r=t[s],i=o[s];i&&r!==i&&!(ne(r)&&r.includes(i))&&(t[s]=r?[].concat(r,i):i)}else s!==""&&(t[s]=o[s])}return t}function We(e,t,n,o=null){nt(e,t,7,[n,o])}const $d=ic();let Bd=0;function Hd(e,t,n){const o=e.type,s=(t?t.appContext:e.appContext)||$d,r={uid:Bd++,vnode:e,type:o,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new dl(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:nc(o,s),emitsOptions:Dl(o,s),emit:null,emitted:null,propsDefaults:Se,inheritAttrs:o.inheritAttrs,ctx:Se,data:Se,props:Se,attrs:Se,slots:Se,refs:Se,setupState:Se,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return r.ctx={_:r},r.root=t?t.root:r,r.emit=Gf.bind(null,r),e.ce&&e.ce(r),r}let Te=null;const Ct=()=>Te||Me,wn=e=>{Te=e,e.scope.on()},Xt=()=>{Te&&Te.scope.off(),Te=null};function dc(e){return e.vnode.shapeFlag&4}let bn=!1;function jd(e,t=!1){bn=t;const{props:n,children:o}=e.vnode,s=dc(e);Ed(e,n,s,t),Pd(e,o);const r=s?Ud(e,t):void 0;return bn=!1,r}function Ud(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Pl(new Proxy(e.ctx,vd));const{setup:o}=n;if(o){const s=e.setupContext=o.length>1?Wd(e):null;wn(e),Rn();const r=Ft(o,e,0,[e.props,s]);if(Tn(),Xt(),ll(r)){if(r.then(Xt,Xt),t)return r.then(i=>{Vs(e,i,t)}).catch(i=>{On(i,e,0)});e.asyncDep=r}else Vs(e,r,t)}else hc(e,t)}function Vs(e,t,n){oe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ce(t)&&(e.setupState=Ol(t)),hc(e,n)}let Ii;function hc(e,t,n){const o=e.type;if(!e.render){if(!t&&Ii&&!o.render){const s=o.template||jo(e).template;if(s){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,u=Fe(Fe({isCustomElement:r,delimiters:a},i),l);o.render=Ii(s,u)}}e.render=o.render||at}wn(e),Rn(),yd(e),Tn(),Xt()}function Vd(e){return new Proxy(e.attrs,{get(t,n){return ze(e,"get","$attrs"),t[n]}})}function Wd(e){const t=o=>{e.exposed=o||{}};let n;return{get attrs(){return n||(n=Vd(e))},slots:e.slots,emit:e.emit,expose:t}}function ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ol(Pl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Kn)return Kn[n](e)},has(t,n){return n in t||n in Kn}}))}function Ws(e,t=!0){return oe(e)?e.displayName||e.name:e.name||t&&e.__name}function Kd(e){return oe(e)&&"__vccOpts"in e}const _e=(e,t)=>Uf(e,t,bn);function Ye(e,t,n){const o=arguments.length;return o===2?Ce(t)&&!ne(t)?xn(t)?Ee(e,null,[t]):Ee(e,t):Ee(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&xn(n)&&(n=[n]),Ee(e,t,n))}const zd=Symbol(""),Gd=()=>je(zd),pc="3.2.47",Jd="http://www.w3.org/2000/svg",zt=typeof document<"u"?document:null,Ai=zt&&zt.createElement("template"),Qd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const s=t?zt.createElementNS(Jd,e):zt.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>zt.createTextNode(e),createComment:e=>zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,s,r){const i=n?n.previousSibling:t.lastChild;if(s&&(s===r||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===r||!(s=s.nextSibling)););else{Ai.innerHTML=o?`<svg>${e}</svg>`:e;const a=Ai.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function Yd(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Xd(e,t,n){const o=e.style,s=Oe(n);if(n&&!s){if(t&&!Oe(t))for(const r in t)n[r]==null&&Ks(o,r,"");for(const r in n)Ks(o,r,n[r])}else{const r=o.display;s?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const ki=/\s*!important$/;function Ks(e,t,n){if(ne(n))n.forEach(o=>Ks(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=Zd(e,t);ki.test(n)?e.setProperty(Ln(o),n.replace(ki,""),"important"):e[o]=n}}const Mi=["Webkit","Moz","ms"],bs={};function Zd(e,t){const n=bs[t];if(n)return n;let o=pt(t);if(o!=="filter"&&o in e)return bs[t]=o;o=Jr(o);for(let s=0;s<Mi.length;s++){const r=Mi[s]+o;if(r in e)return bs[t]=r}return t}const Fi="http://www.w3.org/1999/xlink";function qd(e,t,n,o,s){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Fi,t.slice(6,t.length)):e.setAttributeNS(Fi,t,n);else{const r=Xu(t);n==null||r&&!ol(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function eh(e,t,n,o,s,r,i){if(t==="innerHTML"||t==="textContent"){o&&i(o,s,r),e[t]=n??"";return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n??"";(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=ol(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}function th(e,t,n,o){e.addEventListener(t,n,o)}function nh(e,t,n,o){e.removeEventListener(t,n,o)}function rh(e,t,n,o,s=null){const r=e._vei||(e._vei={}),i=r[t];if(o&&i)i.value=o;else{const[a,l]=sh(t);if(o){const u=r[t]=ah(o,s);th(e,a,u,l)}else i&&(nh(e,a,i,l),r[t]=void 0)}}const Ni=/(?:Once|Passive|Capture)$/;function sh(e){let t;if(Ni.test(e)){t={};let o;for(;o=e.match(Ni);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ln(e.slice(2)),t]}let Es=0;const oh=Promise.resolve(),ih=()=>Es||(oh.then(()=>Es=0),Es=Date.now());function ah(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;nt(lh(o,n.value),t,5,[o])};return n.value=e,n.attached=ih(),n}function lh(e,t){if(ne(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Di=/^on[a-z]/,ch=(e,t,n,o,s=!1,r,i,a,l)=>{t==="class"?Yd(e,o,s):t==="style"?Xd(e,n,o):lr(t)?So(t)||rh(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uh(e,t,o,s))?eh(e,t,o,r,i,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),qd(e,t,o,s))};function uh(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Di.test(t)&&oe(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Di.test(t)&&Oe(n)?!1:t in e}const Tt="transition",Nn="animation",ns=(e,{slots:t})=>Ye(Vl,fh(e),t);ns.displayName="Transition";const gc={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};ns.props=Fe({},Vl.props,gc);const Ht=(e,t=[])=>{ne(e)?e.forEach(n=>n(...t)):e&&e(...t)},$i=e=>e?ne(e)?e.some(t=>t.length>1):e.length>1:!1;function fh(e){const t={};for(const L in e)L in gc||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:o,duration:s,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=i,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:c=`${n}-leave-to`}=e,p=dh(s),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:x,onLeave:E,onLeaveCancelled:v,onBeforeAppear:b=y,onAppear:S=_,onAppearCancelled:w=x}=t,P=(L,O,k)=>{jt(L,O?f:a),jt(L,O?u:i),k&&k()},C=(L,O)=>{L._isLeaving=!1,jt(L,h),jt(L,c),jt(L,d),O&&O()},I=L=>(O,k)=>{const D=L?S:_,V=()=>P(O,L,k);Ht(D,[O,V]),Bi(()=>{jt(O,L?l:r),Ot(O,L?f:a),$i(D)||Hi(O,o,g,V)})};return Fe(t,{onBeforeEnter(L){Ht(y,[L]),Ot(L,r),Ot(L,i)},onBeforeAppear(L){Ht(b,[L]),Ot(L,l),Ot(L,u)},onEnter:I(!1),onAppear:I(!0),onLeave(L,O){L._isLeaving=!0;const k=()=>C(L,O);Ot(L,h),gh(),Ot(L,d),Bi(()=>{L._isLeaving&&(jt(L,h),Ot(L,c),$i(E)||Hi(L,o,m,k))}),Ht(E,[L,k])},onEnterCancelled(L){P(L,!1),Ht(x,[L])},onAppearCancelled(L){P(L,!0),Ht(w,[L])},onLeaveCancelled(L){C(L),Ht(v,[L])}})}function dh(e){if(e==null)return null;if(Ce(e))return[Ss(e.enter),Ss(e.leave)];{const t=Ss(e);return[t,t]}}function Ss(e){return fl(e)}function Ot(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function jt(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Bi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let hh=0;function Hi(e,t,n,o){const s=e._endId=++hh,r=()=>{s===e._endId&&o()};if(n)return setTimeout(r,n);const{type:i,timeout:a,propCount:l}=ph(e,t);if(!i)return o();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,d),r()},d=c=>{c.target===e&&++f>=l&&h()};setTimeout(()=>{f<l&&h()},a+1),e.addEventListener(u,d)}function ph(e,t){const n=window.getComputedStyle(e),o=p=>(n[p]||"").split(", "),s=o(`${Tt}Delay`),r=o(`${Tt}Duration`),i=ji(s,r),a=o(`${Nn}Delay`),l=o(`${Nn}Duration`),u=ji(a,l);let f=null,h=0,d=0;t===Tt?i>0&&(f=Tt,h=i,d=r.length):t===Nn?u>0&&(f=Nn,h=u,d=l.length):(h=Math.max(i,u),f=h>0?i>u?Tt:Nn:null,d=f?f===Tt?r.length:l.length:0);const c=f===Tt&&/\b(transform|all)(,|$)/.test(o(`${Tt}Property`).toString());return{type:f,timeout:h,propCount:d,hasTransform:c}}function ji(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Ui(n)+Ui(e[o])))}function Ui(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function gh(){return document.body.offsetHeight}const dx={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Dn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Dn(e,!0),o.enter(e)):o.leave(e,()=>{Dn(e,!1)}):Dn(e,t))},beforeUnmount(e,{value:t}){Dn(e,t)}};function Dn(e,t){e.style.display=t?e._vod:"none"}const mc=Fe({patchProp:ch},Qd);let Gn,Vi=!1;function mh(){return Gn||(Gn=Id(mc))}function vh(){return Gn=Vi?Gn:Ad(mc),Vi=!0,Gn}const yh=(...e)=>{const t=mh().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=vc(o);if(!s)return;const r=t._component;!oe(r)&&!r.render&&!r.template&&(r.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},_h=(...e)=>{const t=vh().createApp(...e),{mount:n}=t;return t.mount=o=>{const s=vc(o);if(s)return n(s,!0,s instanceof SVGElement)},t};function vc(e){return Oe(e)?document.querySelector(e):e}const xh=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,wh=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,bh=/^\s*["[{]|^\s*-?\d[\d.]{0,14}\s*$/;function Eh(e,t){if(e!=="__proto__"&&!(e==="constructor"&&t&&typeof t=="object"&&"prototype"in t))return t}function Sh(e,t={}){if(typeof e!="string")return e;const n=e.toLowerCase().trim();if(n==="true")return!0;if(n==="false")return!1;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n!=="undefined"){if(!bh.test(e)){if(t.strict)throw new SyntaxError("Invalid JSON");return e}try{return xh.test(e)||wh.test(e)?JSON.parse(e,Eh):JSON.parse(e)}catch(o){if(t.strict)throw o;return e}}}const Ch=/#/g,Ph=/&/g,Lh=/=/g,yc=/\+/g,Rh=/%5e/gi,Th=/%60/gi,Oh=/%7c/gi,Ih=/%20/gi;function Ah(e){return encodeURI(""+e).replace(Oh,"|")}function zs(e){return Ah(typeof e=="string"?e:JSON.stringify(e)).replace(yc,"%2B").replace(Ih,"+").replace(Ch,"%23").replace(Ph,"%26").replace(Th,"`").replace(Rh,"^")}function Cs(e){return zs(e).replace(Lh,"%3D")}function _c(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}function kh(e){return _c(e.replace(yc," "))}function Mh(e=""){const t={};e[0]==="?"&&(e=e.slice(1));for(const n of e.split("&")){const o=n.match(/([^=]+)=?(.*)/)||[];if(o.length<2)continue;const s=_c(o[1]);if(s==="__proto__"||s==="constructor")continue;const r=kh(o[2]||"");typeof t[s]<"u"?Array.isArray(t[s])?t[s].push(r):t[s]=[t[s],r]:t[s]=r}return t}function Fh(e,t){return(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),t?Array.isArray(t)?t.map(n=>`${Cs(e)}=${zs(n)}`).join("&"):`${Cs(e)}=${zs(t)}`:Cs(e)}function Nh(e){return Object.keys(e).filter(t=>e[t]!==void 0).map(t=>Fh(t,e[t])).join("&")}const Dh=/^\w{2,}:([/\\]{1,2})/,$h=/^\w{2,}:([/\\]{2})?/,Bh=/^([/\\]\s*){2,}[^/\\]/;function In(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?Dh.test(e):$h.test(e)||(t.acceptRelative?Bh.test(e):!1)}const Hh=/\/$|\/\?/;function Gs(e="",t=!1){return t?Hh.test(e):e.endsWith("/")}function xc(e="",t=!1){if(!t)return(Gs(e)?e.slice(0,-1):e)||"/";if(!Gs(e,!0))return e||"/";const[n,...o]=e.split("?");return(n.slice(0,-1)||"/")+(o.length>0?`?${o.join("?")}`:"")}function jh(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(Gs(e,!0))return e||"/";const[n,...o]=e.split("?");return n+"/"+(o.length>0?`?${o.join("?")}`:"")}function Uh(e=""){return e.startsWith("/")}function Vh(e=""){return(Uh(e)?e.slice(1):e)||"/"}function Wh(e,t){if(wc(t)||In(e))return e;const n=xc(t);return e.startsWith(n)?e:An(n,e)}function Wi(e,t){if(wc(t))return e;const n=xc(t);if(!e.startsWith(n))return e;const o=e.slice(n.length);return o[0]==="/"?o:"/"+o}function Kh(e,t){const n=rs(e),o={...Mh(n.search),...t};return n.search=Nh(o),Gh(n)}function wc(e){return!e||e==="/"}function zh(e){return e&&e!=="/"}function An(e,...t){let n=e||"";for(const o of t.filter(s=>zh(s)))n=n?jh(n)+Vh(o):o;return n}function rs(e="",t){if(!In(e,{acceptRelative:!0}))return t?rs(t+e):Ki(e);const[n="",o,s=""]=(e.replace(/\\/g,"/").match(/([^/:]+:)?\/\/([^/@]+@)?(.*)/)||[]).splice(1),[r="",i=""]=(s.match(/([^#/?]*)(.*)?/)||[]).splice(1),{pathname:a,search:l,hash:u}=Ki(i.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n,auth:o?o.slice(0,Math.max(0,o.length-1)):"",host:r,pathname:a,search:l,hash:u}}function Ki(e=""){const[t="",n="",o=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:n,hash:o}}function Gh(e){const t=e.pathname+(e.search?(e.search.startsWith("?")?"":"?")+e.search:"")+e.hash;return e.protocol?e.protocol+"//"+(e.auth?e.auth+"@":"")+e.host+t:t}class Jh extends Error{constructor(){super(...arguments),this.name="FetchError"}}function Qh(e,t,n){let o="";t&&(o=t.message),e&&n?o=`${o} (${n.status} ${n.statusText} (${e.toString()}))`:e&&(o=`${o} (${e.toString()})`);const s=new Jh(o);return Object.defineProperty(s,"request",{get(){return e}}),Object.defineProperty(s,"response",{get(){return n}}),Object.defineProperty(s,"data",{get(){return n&&n._data}}),Object.defineProperty(s,"status",{get(){return n&&n.status}}),Object.defineProperty(s,"statusText",{get(){return n&&n.statusText}}),Object.defineProperty(s,"statusCode",{get(){return n&&n.status}}),Object.defineProperty(s,"statusMessage",{get(){return n&&n.statusText}}),s}const Yh=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function zi(e="GET"){return Yh.has(e.toUpperCase())}function Xh(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}const Zh=new Set(["image/svg","application/xml","application/xhtml","application/html"]),qh=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function ep(e=""){if(!e)return"json";const t=e.split(";").shift()||"";return qh.test(t)?"json":Zh.has(t)||t.startsWith("text/")?"text":"blob"}const tp=new Set([408,409,425,429,500,502,503,504]);function bc(e){const{fetch:t,Headers:n}=e;function o(i){const a=i.error&&i.error.name==="AbortError"||!1;if(i.options.retry!==!1&&!a){let u;typeof i.options.retry=="number"?u=i.options.retry:u=zi(i.options.method)?0:1;const f=i.response&&i.response.status||500;if(u>0&&tp.has(f))return s(i.request,{...i.options,retry:u-1})}const l=Qh(i.request,i.error,i.response);throw Error.captureStackTrace&&Error.captureStackTrace(l,s),l}const s=async function(a,l={}){const u={request:a,options:{...e.defaults,...l},response:void 0,error:void 0};u.options.onRequest&&await u.options.onRequest(u),typeof u.request=="string"&&(u.options.baseURL&&(u.request=Wh(u.request,u.options.baseURL)),(u.options.query||u.options.params)&&(u.request=Kh(u.request,{...u.options.params,...u.options.query})),u.options.body&&zi(u.options.method)&&Xh(u.options.body)&&(u.options.body=typeof u.options.body=="string"?u.options.body:JSON.stringify(u.options.body),u.options.headers=new n(u.options.headers),u.options.headers.has("content-type")||u.options.headers.set("content-type","application/json"),u.options.headers.has("accept")||u.options.headers.set("accept","application/json"))),u.response=await t(u.request,u.options).catch(async h=>(u.error=h,u.options.onRequestError&&await u.options.onRequestError(u),o(u)));const f=(u.options.parseResponse?"json":u.options.responseType)||ep(u.response.headers.get("content-type")||"");if(f==="json"){const h=await u.response.text(),d=u.options.parseResponse||Sh;u.response._data=d(h)}else f==="stream"?u.response._data=u.response.body:u.response._data=await u.response[f]();return u.options.onResponse&&await u.options.onResponse(u),u.response.status>=400&&u.response.status<600?(u.options.onResponseError&&await u.options.onResponseError(u),o(u)):u.response},r=function(a,l){return s(a,l).then(u=>u._data)};return r.raw=s,r.native=t,r.create=(i={})=>bc({...e,defaults:{...e.defaults,...i}}),r}const Ec=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),np=Ec.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),rp=Ec.Headers,sp=bc({fetch:np,Headers:rp}),op=sp,ip=()=>{var e;return((e=window==null?void 0:window.__NUXT__)==null?void 0:e.config)||{}},Br=ip().app,ap=()=>Br.baseURL,lp=()=>Br.buildAssetsDir,cp=(...e)=>An(Sc(),lp(),...e),Sc=(...e)=>{const t=Br.cdnURL||Br.baseURL;return e.length?An(t,...e):t};globalThis.__buildAssetsURL=cp,globalThis.__publicAssetsURL=Sc;function Js(e,t={},n){for(const o in e){const s=e[o],r=n?`${n}:${o}`:o;typeof s=="object"&&s!==null?Js(s,t,r):typeof s=="function"&&(t[r]=s)}return t}const up={run:e=>e()},fp=()=>up,Cc=typeof console.createTask<"u"?console.createTask:fp;function dp(e,t){const n=t.shift(),o=Cc(n);return e.reduce((s,r)=>s.then(()=>o.run(()=>r(...t))),Promise.resolve())}function hp(e,t){const n=t.shift(),o=Cc(n);return Promise.all(e.map(s=>o.run(()=>s(...t))))}function Ps(e,t){for(const n of[...e])n(t)}class pp{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,o={}){if(!t||typeof n!="function")return()=>{};const s=t;let r;for(;this._deprecatedHooks[t];)r=this._deprecatedHooks[t],t=r.to;if(r&&!o.allowDeprecated){let i=r.message;i||(i=`${s} hook has been deprecated`+(r.to?`, please use ${r.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(i)||(console.warn(i),this._deprecatedMessages.add(i))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let o,s=(...r)=>(typeof o=="function"&&o(),o=void 0,s=void 0,n(...r));return o=this.hook(t,s),o}removeHook(t,n){if(this._hooks[t]){const o=this._hooks[t].indexOf(n);o!==-1&&this._hooks[t].splice(o,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const o=this._hooks[t]||[];delete this._hooks[t];for(const s of o)this.hook(t,s)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=Js(t),o=Object.keys(n).map(s=>this.hook(s,n[s]));return()=>{for(const s of o.splice(0,o.length))s()}}removeHooks(t){const n=Js(t);for(const o in n)this.removeHook(o,n[o])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(dp,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(hp,t,...n)}callHookWith(t,n,...o){const s=this._before||this._after?{name:n,args:o,context:{}}:void 0;this._before&&Ps(this._before,s);const r=t(n in this._hooks?[...this._hooks[n]]:[],o);return r instanceof Promise?r.finally(()=>{this._after&&s&&Ps(this._after,s)}):(this._after&&s&&Ps(this._after,s),r)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function Pc(){return new pp}function gp(e={}){let t,n=!1;const o=i=>{if(t&&t!==i)throw new Error("Context conflict")};let s;if(e.asyncContext){const i=e.AsyncLocalStorage||globalThis.AsyncLocalStorage;i?s=new i:console.warn("[unctx] `AsyncLocalStorage` is not provided.")}const r=()=>{if(s&&t===void 0){const i=s.getStore();if(i!==void 0)return i}return t};return{use:()=>{const i=r();if(i===void 0)throw new Error("Context is not available");return i},tryUse:()=>r(),set:(i,a)=>{a||o(i),t=i,n=!0},unset:()=>{t=void 0,n=!1},call:(i,a)=>{o(i),t=i;try{return s?s.run(i,a):a()}finally{n||(t=void 0)}},async callAsync(i,a){t=i;const l=()=>{t=i},u=()=>t===i?l:void 0;Qs.add(u);try{const f=s?s.run(i,a):a();return n||(t=void 0),await f}finally{Qs.delete(u)}}}}function mp(e={}){const t={};return{get(n,o={}){return t[n]||(t[n]=gp({...e,...o})),t[n],t[n]}}}const Hr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:typeof window<"u"?window:{},Gi="__unctx__",vp=Hr[Gi]||(Hr[Gi]=mp()),yp=(e,t={})=>vp.get(e,t),Ji="__unctx_async_handlers__",Qs=Hr[Ji]||(Hr[Ji]=new Set);function Jt(e){const t=[];for(const s of Qs){const r=s();r&&t.push(r)}const n=()=>{for(const s of t)s()};let o=e();return o&&typeof o=="object"&&"catch"in o&&(o=o.catch(s=>{throw n(),s})),[o,n]}const Lc=yp("nuxt-app"),_p="__nuxt_plugin";function xp(e){let t=0;const n={provide:void 0,globalName:"nuxt",versions:{get nuxt(){return"3.4.3"},get vue(){return n.vueApp.version}},payload:gt({data:{},state:{},_errors:{},...window.__NUXT__??{}}),static:{data:{}},isHydrating:!0,deferHydration(){if(!n.isHydrating)return()=>{};t++;let r=!1;return()=>{if(!r&&(r=!0,t--,t===0))return n.isHydrating=!1,n.callHook("app:suspense:resolve")}},_asyncDataPromises:{},_asyncData:{},_payloadRevivers:{},...e};n.hooks=Pc(),n.hook=n.hooks.hook,n.callHook=n.hooks.callHook,n.provide=(r,i)=>{const a="$"+r;br(n,a,i),br(n.vueApp.config.globalProperties,a,i)},br(n.vueApp,"$nuxt",n),br(n.vueApp.config.globalProperties,"$nuxt",n);{window.addEventListener("nuxt.preloadError",i=>{n.callHook("app:chunkError",{error:i.payload})});const r=n.hook("app:error",(...i)=>{console.error("[nuxt] error caught during app initialization",...i)});n.hook("app:mounted",r)}const o=gt(n.payload.config),s=new Proxy(o,{get(r,i){return i in r?r[i]:r.public[i]},set(r,i,a){return i==="public"||i==="app"?!1:(r[i]=a,r.public[i]=a,!0)}});return n.provide("config",s),n}async function wp(e,t){if(typeof t!="function")return;const{provide:n}=await wt(e,t,[e])||{};if(n&&typeof n=="object")for(const o in n)e.provide(o,n[o])}async function bp(e,t){for(const n of t)await wp(e,n)}function Ep(e){const t=[];for(const n of e){if(typeof n!="function")continue;let o=n;n.length>1&&(o=s=>n(s,s.provide)),t.push(o)}return t.sort((n,o)=>{var s,r;return(((s=n.meta)==null?void 0:s.order)||jr.default)-(((r=o.meta)==null?void 0:r.order)||jr.default)}),t}const jr={pre:-20,default:0,post:20};function Pt(e,t){var o;if(typeof e=="function")return Pt({setup:e},t);const n=s=>{if(e.hooks&&s.hooks.addHooks(e.hooks),e.setup)return e.setup(s)};return n.meta={name:(t==null?void 0:t.name)||e.name||((o=e.setup)==null?void 0:o.name),order:(t==null?void 0:t.order)||e.order||jr[e.enforce||"default"]||jr.default},n[_p]=!0,n}function wt(e,t,n){const o=()=>n?t(...n):t();return Lc.set(e),o()}function Ae(){const e=Lc.tryUse();if(!e){const t=Ct();if(!t)throw new Error("[nuxt] instance unavailable");return t.appContext.app.$nuxt}return e}function Ko(){return Ae().$config}function br(e,t,n){Object.defineProperty(e,t,{get:()=>n})}const Sp=Pt({name:"nuxt:global-components"});function Cp(e){return Array.isArray(e)?e:[e]}const Rc=["title","script","style","noscript"],Tc=["base","meta","link","style","script","noscript"],Pp=["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"],Lp=["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"],Rp=["tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent"];function Oc(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Ys(e){return Oc(`${e.tag}:${e.textContent||e.innerHTML||""}:${Object.entries(e.props).map(([t,n])=>`${t}:${String(n)}`).join(",")}`)}function Tp(e){let t=9;for(const n of e)for(let o=0;o<n.length;)t=Math.imul(t^n.charCodeAt(o++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function Ic(e,t){const{props:n,tag:o}=e;if(Lp.includes(o))return o;if(o==="link"&&n.rel==="canonical")return"canonical";if(n.charset)return"charset";const s=["id"];o==="meta"&&s.push("name","property","http-equiv");for(const r of s)if(typeof n[r]<"u"){const i=String(n[r]);return t&&!t(i)?!1:`${o}:${r}:${i}`}return!1}function Qi(e,t){return e==null?t||null:typeof e=="function"?e(t):e}function Er(e,t=!1,n){const{tag:o,$el:s}=e;s&&(Object.entries(o.props).forEach(([r,i])=>{i=String(i);const a=`attr:${r}`;if(r==="class"){if(!i)return;for(const l of i.split(" ")){const u=`${a}:${l}`;n&&n(e,u,()=>s.classList.remove(l)),s.classList.contains(l)||s.classList.add(l)}return}n&&!r.startsWith("data-h-")&&n(e,a,()=>s.removeAttribute(r)),(t||s.getAttribute(r)!==i)&&s.setAttribute(r,i)}),Rc.includes(o.tag)&&(o.textContent&&o.textContent!==s.textContent?s.textContent=o.textContent:o.innerHTML&&o.innerHTML!==s.innerHTML&&(s.innerHTML=o.innerHTML)))}let $n=!1;async function Op(e,t={}){var d,c;const n={shouldRender:!0};if(await e.hooks.callHook("dom:beforeRender",n),!n.shouldRender)return;const o=t.document||e.resolvedOptions.document||window.document,s=(await e.resolveTags()).map(a);if(e.resolvedOptions.experimentalHashHydration&&($n=$n||e._hash||!1,$n)){const p=Tp(s.map(g=>g.tag._h));if($n===p)return;$n=p}const r=e._popSideEffectQueue();e.headEntries().map(p=>p._sde).forEach(p=>{Object.entries(p).forEach(([g,m])=>{r[g]=m})});const i=(p,g,m)=>{g=`${p.renderId}:${g}`,p.entry&&(p.entry._sde[g]=m),delete r[g]};function a(p){const g=e.headEntries().find(y=>y._i===p._e),m={renderId:p._d||Ys(p),$el:null,shouldRender:!0,tag:p,entry:g,markSideEffect:(y,_)=>i(m,y,_)};return m}const l=[],u={body:[],head:[]},f=p=>{e._elMap[p.renderId]=p.$el,l.push(p),i(p,"el",()=>{var g;(g=p.$el)==null||g.remove(),delete e._elMap[p.renderId]})};for(const p of s){if(await e.hooks.callHook("dom:beforeRenderTag",p),!p.shouldRender)continue;const{tag:g}=p;if(g.tag==="title"){o.title=g.textContent||"",l.push(p);continue}if(g.tag==="htmlAttrs"||g.tag==="bodyAttrs"){p.$el=o[g.tag==="htmlAttrs"?"documentElement":"body"],Er(p,!1,i),l.push(p);continue}if(p.$el=e._elMap[p.renderId],!p.$el&&g.key&&(p.$el=o.querySelector(`${(d=g.tagPosition)!=null&&d.startsWith("body")?"body":"head"} > ${g.tag}[data-h-${g._h}]`)),p.$el){p.tag._d&&Er(p),f(p);continue}u[(c=g.tagPosition)!=null&&c.startsWith("body")?"body":"head"].push(p)}const h={bodyClose:void 0,bodyOpen:void 0,head:void 0};Object.entries(u).forEach(([p,g])=>{var y;if(!g.length)return;const m=(y=o==null?void 0:o[p])==null?void 0:y.children;if(m){for(const _ of[...m].reverse()){const x=_.tagName.toLowerCase();if(!Tc.includes(x))continue;const E=_.getAttributeNames().reduce((w,P)=>({...w,[P]:_.getAttribute(P)}),{}),v={tag:x,props:E};_.innerHTML&&(v.innerHTML=_.innerHTML);const b=Ys(v);let S=g.findIndex(w=>(w==null?void 0:w.renderId)===b);if(S===-1){const w=Ic(v);S=g.findIndex(P=>(P==null?void 0:P.tag._d)&&P.tag._d===w)}if(S!==-1){const w=g[S];w.$el=_,Er(w),f(w),delete g[S]}}g.forEach(_=>{const x=_.tag.tagPosition||"head";h[x]=h[x]||o.createDocumentFragment(),_.$el||(_.$el=o.createElement(_.tag.tag),Er(_,!0)),h[x].appendChild(_.$el),f(_)})}}),h.head&&o.head.appendChild(h.head),h.bodyOpen&&o.body.insertBefore(h.bodyOpen,o.body.firstChild),h.bodyClose&&o.body.appendChild(h.bodyClose);for(const p of l)await e.hooks.callHook("dom:renderTag",p);Object.values(r).forEach(p=>p())}let Ls=null;async function Ip(e,t={}){function n(){return Ls=null,Op(e,t)}const o=t.delayFn||(s=>setTimeout(s,10));return Ls=Ls||new Promise(s=>o(()=>s(n())))}function Ap(e){return{hooks:{"entries:updated":function(t){if(typeof(e==null?void 0:e.document)>"u"&&typeof window>"u")return;let n=e==null?void 0:e.delayFn;!n&&typeof requestAnimationFrame<"u"&&(n=requestAnimationFrame),Ip(t,{document:(e==null?void 0:e.document)||window.document,delayFn:n})}}}}function kp(e){var t;return((t=e==null?void 0:e.head.querySelector('meta[name="unhead:ssr"]'))==null?void 0:t.getAttribute("content"))||!1}const Yi={critical:2,high:9,low:12,base:-1,title:1,meta:10};function Xi(e){if(typeof e.tagPriority=="number")return e.tagPriority;if(e.tag==="meta"){if(e.props.charset)return-2;if(e.props["http-equiv"]==="content-security-policy")return 0}const t=e.tagPriority||e.tag;return t in Yi?Yi[t]:10}const Mp=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}];function Fp(){return{hooks:{"tags:resolve":e=>{const t=n=>{var o;return(o=e.tags.find(s=>s._d===n))==null?void 0:o._p};for(const{prefix:n,offset:o}of Mp)for(const s of e.tags.filter(r=>typeof r.tagPriority=="string"&&r.tagPriority.startsWith(n))){const r=t(s.tagPriority.replace(n,""));typeof r<"u"&&(s._p=r+o)}e.tags.sort((n,o)=>n._p-o._p).sort((n,o)=>Xi(n)-Xi(o))}}}}function Np(){return{hooks:{"tags:resolve":e=>{const{tags:t}=e;let n=t.findIndex(s=>s.tag==="titleTemplate");const o=t.findIndex(s=>s.tag==="title");if(o!==-1&&n!==-1){const s=Qi(t[n].textContent,t[o].textContent);s!==null?t[o].textContent=s||t[o].textContent:delete t[o]}else if(n!==-1){const s=Qi(t[n].textContent);s!==null&&(t[n].textContent=s,t[n].tag="title",n=-1)}n!==-1&&delete t[n],e.tags=t.filter(Boolean)}}}}function Dp(){return{hooks:{"tag:normalise":function({tag:e}){typeof e.props.body<"u"&&(e.tagPosition="bodyClose",delete e.props.body)}}}}const $p=["link","style","script","noscript"];function Bp(){return{hooks:{"tag:normalise":({tag:e,resolvedOptions:t})=>{t.experimentalHashHydration===!0&&(e._h=Ys(e)),e.key&&$p.includes(e.tag)&&(e._h=Oc(e.key),e.props[`data-h-${e._h}`]="")}}}}const Zi=["script","link","bodyAttrs"];function Hp(){const e=(t,n)=>{const o={},s={};Object.entries(n.props).forEach(([i,a])=>{i.startsWith("on")&&typeof a=="function"?s[i]=a:o[i]=a});let r;return t==="dom"&&n.tag==="script"&&typeof o.src=="string"&&typeof s.onload<"u"&&(r=o.src,delete o.src),{props:o,eventHandlers:s,delayedSrc:r}};return{hooks:{"ssr:render":function(t){t.tags=t.tags.map(n=>(!Zi.includes(n.tag)||!Object.entries(n.props).find(([o,s])=>o.startsWith("on")&&typeof s=="function")||(n.props=e("ssr",n).props),n))},"dom:beforeRenderTag":function(t){if(!Zi.includes(t.tag.tag)||!Object.entries(t.tag.props).find(([r,i])=>r.startsWith("on")&&typeof i=="function"))return;const{props:n,eventHandlers:o,delayedSrc:s}=e("dom",t.tag);Object.keys(o).length&&(t.tag.props=n,t.tag._eventHandlers=o,t.tag._delayedSrc=s)},"dom:renderTag":function(t){const n=t.$el;if(!t.tag._eventHandlers||!n)return;const o=t.tag.tag==="bodyAttrs"&&typeof window<"u"?window:n;Object.entries(t.tag._eventHandlers).forEach(([s,r])=>{const i=`${t.tag._d||t.tag._p}:${s}`,a=s.slice(2).toLowerCase(),l=`data-h-${a}`;if(t.markSideEffect(i,()=>{}),n.hasAttribute(l))return;const u=r;n.setAttribute(l,""),o.addEventListener(a,u),t.entry&&(t.entry._sde[i]=()=>{o.removeEventListener(a,u),n.removeAttribute(l)})}),t.tag._delayedSrc&&n.setAttribute("src",t.tag._delayedSrc)}}}}const jp=["templateParams","htmlAttrs","bodyAttrs"];function Up(){return{hooks:{"tag:normalise":function({tag:e}){["hid","vmid","key"].forEach(o=>{e.props[o]&&(e.key=e.props[o],delete e.props[o])});const n=Ic(e)||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":function(e){const t={};e.tags.forEach(o=>{const s=(o.key?`${o.tag}:${o.key}`:o._d)||o._p,r=t[s];if(r){let a=o==null?void 0:o.tagDuplicateStrategy;if(!a&&jp.includes(o.tag)&&(a="merge"),a==="merge"){const l=r.props;["class","style"].forEach(u=>{o.props[u]&&l[u]&&(u==="style"&&!l[u].endsWith(";")&&(l[u]+=";"),o.props[u]=`${l[u]} ${o.props[u]}`)}),t[s].props={...l,...o.props};return}else if(o._e===r._e){r._duped=r._duped||[],o._d=`${r._d}:${r._duped.length+1}`,r._duped.push(o);return}}const i=Object.keys(o.props).length+(o.innerHTML?1:0)+(o.textContent?1:0);if(Tc.includes(o.tag)&&i===0){delete t[s];return}t[s]=o});const n=[];Object.values(t).forEach(o=>{const s=o._duped;delete o._duped,n.push(o),s&&n.push(...s)}),e.tags=n}}}}function Sr(e,t){function n(r){if(["s","pageTitle"].includes(r))return t.pageTitle;let i;return r.includes(".")?i=r.split(".").reduce((a,l)=>a&&a[l]||void 0,t):i=t[r],typeof i<"u"?i||"":!1}let o=e;try{o=decodeURI(e)}catch{}return(o.match(/%(\w+\.+\w+)|%(\w+)/g)||[]).sort().reverse().forEach(r=>{const i=n(r.slice(1));typeof i=="string"&&(e=e.replaceAll(new RegExp(`\\${r}(\\W|$)`,"g"),`${i}$1`).trim())}),t.separator&&(e.endsWith(t.separator)&&(e=e.slice(0,-t.separator.length).trim()),e.startsWith(t.separator)&&(e=e.slice(t.separator.length).trim()),e=e.replace(new RegExp(`\\${t.separator}\\s*\\${t.separator}`,"g"),t.separator)),e}function Vp(){return{hooks:{"tags:resolve":e=>{var r;const{tags:t}=e,n=(r=t.find(i=>i.tag==="title"))==null?void 0:r.textContent,o=t.findIndex(i=>i.tag==="templateParams"),s=o!==-1?t[o].props:{};s.pageTitle=s.pageTitle||n||"";for(const i of t)if(["titleTemplate","title"].includes(i.tag)&&typeof i.textContent=="string")i.textContent=Sr(i.textContent,s);else if(i.tag==="meta"&&typeof i.props.content=="string")i.props.content=Sr(i.props.content,s);else if(i.tag==="link"&&typeof i.props.href=="string")i.props.href=Sr(i.props.href,s);else if(i.tag==="script"&&["application/json","application/ld+json"].includes(i.props.type)&&typeof i.innerHTML=="string")try{i.innerHTML=JSON.stringify(JSON.parse(i.innerHTML),(a,l)=>typeof l=="string"?Sr(l,s):l)}catch{}e.tags=t.filter(i=>i.tag!=="templateParams")}}}}const Wp=typeof window<"u";let Ac;function Kp(e){return Ac=e}function zp(){return Ac}async function Gp(e,t){const n={tag:e,props:{}};return e==="templateParams"?(n.props=t,n):["title","titleTemplate"].includes(e)?(n.textContent=t instanceof Promise?await t:t,n):typeof t=="string"?["script","noscript","style"].includes(e)?(e==="script"&&(/^(https?:)?\/\//.test(t)||t.startsWith("/"))?n.props.src=t:n.innerHTML=t,n):!1:(n.props=await Qp(e,{...t}),n.props.children&&(n.props.innerHTML=n.props.children),delete n.props.children,Object.keys(n.props).filter(o=>Rp.includes(o)).forEach(o=>{(!["innerHTML","textContent"].includes(o)||Rc.includes(n.tag))&&(n[o]=n.props[o]),delete n.props[o]}),["innerHTML","textContent"].forEach(o=>{if(n.tag==="script"&&typeof n[o]=="string"&&["application/ld+json","application/json"].includes(n.props.type))try{n[o]=JSON.parse(n[o])}catch{n[o]=""}typeof n[o]=="object"&&(n[o]=JSON.stringify(n[o]))}),n.props.class&&(n.props.class=Jp(n.props.class)),n.props.content&&Array.isArray(n.props.content)?n.props.content.map(o=>({...n,props:{...n.props,content:o}})):n)}function Jp(e){return typeof e=="object"&&!Array.isArray(e)&&(e=Object.keys(e).filter(t=>e[t])),(Array.isArray(e)?e.join(" "):e).split(" ").filter(t=>t.trim()).filter(Boolean).join(" ")}async function Qp(e,t){for(const n of Object.keys(t)){const o=n.startsWith("data-");t[n]instanceof Promise&&(t[n]=await t[n]),String(t[n])==="true"?t[n]=o?"true":"":String(t[n])==="false"&&(o?t[n]="false":delete t[n])}return t}const Yp=10;async function Xp(e){const t=[];return Object.entries(e.resolvedInput).filter(([n,o])=>typeof o<"u"&&Pp.includes(n)).forEach(([n,o])=>{const s=Cp(o);t.push(...s.map(r=>Gp(n,r)).flat())}),(await Promise.all(t)).flat().filter(Boolean).map((n,o)=>(n._e=e._i,n._p=(e._i<<Yp)+o,n))}function Zp(){return[Up(),Fp(),Vp(),Np(),Bp(),Hp(),Dp()]}function qp(e={}){return[Ap({document:e==null?void 0:e.document,delayFn:e==null?void 0:e.domDelayFn})]}function eg(e={}){const t=tg({...e,plugins:[...qp(e),...(e==null?void 0:e.plugins)||[]]});return e.experimentalHashHydration&&t.resolvedOptions.document&&(t._hash=kp(t.resolvedOptions.document)),Kp(t),t}function tg(e={}){let t=[],n={},o=0;const s=Pc();e!=null&&e.hooks&&s.addHooks(e.hooks),e.plugins=[...Zp(),...(e==null?void 0:e.plugins)||[]],e.plugins.forEach(a=>a.hooks&&s.addHooks(a.hooks)),e.document=e.document||(Wp?document:void 0);const r=()=>s.callHook("entries:updated",i),i={resolvedOptions:e,headEntries(){return t},get hooks(){return s},use(a){a.hooks&&s.addHooks(a.hooks)},push(a,l){const u={_i:o++,input:a,_sde:{}};return l!=null&&l.mode&&(u._m=l==null?void 0:l.mode),l!=null&&l.transform&&(u._t=l==null?void 0:l.transform),t.push(u),r(),{dispose(){t=t.filter(f=>f._i!==u._i?!0:(n={...n,...f._sde||{}},f._sde={},r(),!1))},patch(f){t=t.map(h=>(h._i===u._i&&(u.input=h.input=f,r()),h))}}},async resolveTags(){const a={tags:[],entries:[...t]};await s.callHook("entries:resolve",a);for(const l of a.entries){const u=l._t||(f=>f);if(l.resolvedInput=u(l.resolvedInput||l.input),l.resolvedInput)for(const f of await Xp(l)){const h={tag:f,entry:l,resolvedOptions:i.resolvedOptions};await s.callHook("tag:normalise",h),a.tags.push(h.tag)}}return await s.callHook("tags:resolve",a),a.tags},_popSideEffectQueue(){const a={...n};return n={},a},_elMap:{}};return i.hooks.callHook("init",i),i}function ng(e){return typeof e=="function"?e():ie(e)}function Ur(e,t=""){if(e instanceof Promise)return e;const n=ng(e);return!e||!n?n:Array.isArray(n)?n.map(o=>Ur(o,t)):typeof n=="object"?Object.fromEntries(Object.entries(n).map(([o,s])=>o==="titleTemplate"||o.startsWith("on")?[o,ie(s)]:[o,Ur(s,o)])):n}const rg=pc.startsWith("3"),sg=typeof window<"u",kc="usehead";function zo(){return Ct()&&je(kc)||zp()}function og(e){return{install(n){rg&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(kc,e))}}.install}function ig(e={}){const t=eg({...e,domDelayFn:n=>setTimeout(()=>en(()=>n()),10),plugins:[ag(),...(e==null?void 0:e.plugins)||[]]});return t.install=og(t),t}function ag(){return{hooks:{"entries:resolve":function(e){for(const t of e.entries)t.resolvedInput=Ur(t.input)}}}}function lg(e,t={}){const n=zo(),o=ye(!1),s=ye({});rd(()=>{s.value=o.value?{}:Ur(e)});const r=n.push(s.value,t);return lt(s,a=>{r.patch(a)}),Ct()&&(qr(()=>{r.dispose()}),Gl(()=>{o.value=!0}),zl(()=>{o.value=!1})),r}function cg(e,t={}){return zo().push(e,t)}function qi(e,t={}){var o;const n=zo();if(n){const s=sg||!!((o=n.resolvedOptions)!=null&&o.document);return t.mode==="server"&&s||t.mode==="client"&&!s?void 0:s?lg(e,t):cg(e,t)}}const ug={meta:[{name:"viewport",content:"width=device-width, initial-scale=1"},{charset:"utf-8"}],link:[],style:[],script:[],noscript:[]},fg=!1,Xs=!1,dg=!1,hg="__nuxt",pg=!1,gg=Pt({name:"nuxt:head",setup(e){const n=ig();n.push(ug),e.vueApp.use(n);{let o=!0;const s=()=>{o=!1,n.hooks.callHook("entries:updated",n)};n.hooks.hook("dom:beforeRender",r=>{r.shouldRender=!o}),e.hooks.hook("page:start",()=>{o=!0}),e.hooks.hook("page:finish",s),e.hooks.hook("app:suspense:resolve",s)}}});/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const ln=typeof window<"u";function mg(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const me=Object.assign;function Rs(e,t){const n={};for(const o in t){const s=t[o];n[o]=ct(s)?s.map(e):e(s)}return n}const Jn=()=>{},ct=Array.isArray,vg=/\/$/,yg=e=>e.replace(vg,"");function Ts(e,t,n="/"){let o,s={},r="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),s=e(r)),a>-1&&(o=o||t.slice(0,a),i=t.slice(a,t.length)),o=bg(o??t,n),{fullPath:o+(r&&"?")+r+i,path:o,query:s,hash:i}}function _g(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ea(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xg(e,t,n){const o=t.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&En(t.matched[o],n.matched[s])&&Mc(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function En(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Mc(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!wg(e[n],t[n]))return!1;return!0}function wg(e,t){return ct(e)?ta(e,t):ct(t)?ta(t,e):e===t}function ta(e,t){return ct(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function bg(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let s=n.length-1,r,i;for(r=0;r<o.length;r++)if(i=o[r],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var sr;(function(e){e.pop="pop",e.push="push"})(sr||(sr={}));var Qn;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Qn||(Qn={}));function Eg(e){if(!e)if(ln){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yg(e)}const Sg=/^[^#]+#/;function Cg(e,t){return e.replace(Sg,"#")+t}function Pg(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const ss=()=>({left:window.pageXOffset,top:window.pageYOffset});function Lg(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Pg(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function na(e,t){return(history.state?history.state.position-t:-1)+e}const Zs=new Map;function Rg(e,t){Zs.set(e,t)}function Tg(e){const t=Zs.get(e);return Zs.delete(e),t}let Og=()=>location.protocol+"//"+location.host;function Fc(e,t){const{pathname:n,search:o,hash:s}=t,r=e.indexOf("#");if(r>-1){let a=s.includes(e.slice(r))?e.slice(r).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),ea(l,"")}return ea(n,e)+o+s}function Ig(e,t,n,o){let s=[],r=[],i=null;const a=({state:d})=>{const c=Fc(e,location),p=n.value,g=t.value;let m=0;if(d){if(n.value=c,t.value=d,i&&i===p){i=null;return}m=g?d.position-g.position:0}else o(c);s.forEach(y=>{y(n.value,p,{delta:m,type:sr.pop,direction:m?m>0?Qn.forward:Qn.back:Qn.unknown})})};function l(){i=n.value}function u(d){s.push(d);const c=()=>{const p=s.indexOf(d);p>-1&&s.splice(p,1)};return r.push(c),c}function f(){const{history:d}=window;d.state&&d.replaceState(me({},d.state,{scroll:ss()}),"")}function h(){for(const d of r)d();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f),{pauseListeners:l,listen:u,destroy:h}}function ra(e,t,n,o=!1,s=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:s?ss():null}}function Ag(e){const{history:t,location:n}=window,o={value:Fc(e,n)},s={value:t.state};s.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,u,f){const h=e.indexOf("#"),d=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:Og()+e+l;try{t[f?"replaceState":"pushState"](u,"",d),s.value=u}catch(c){console.error(c),n[f?"replace":"assign"](d)}}function i(l,u){const f=me({},t.state,ra(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});r(l,f,!0),o.value=l}function a(l,u){const f=me({},s.value,t.state,{forward:l,scroll:ss()});r(f.current,f,!0);const h=me({},ra(o.value,l,null),{position:f.position+1},u);r(l,h,!1),o.value=l}return{location:o,state:s,push:a,replace:i}}function Nc(e){e=Eg(e);const t=Ag(e),n=Ig(e,t.state,t.location,t.replace);function o(r,i=!0){i||n.pauseListeners(),history.go(r)}const s=me({location:"",base:e,go:o,createHref:Cg.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function kg(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Nc(e)}function Mg(e){return typeof e=="string"||e&&typeof e=="object"}function Dc(e){return typeof e=="string"||typeof e=="symbol"}const It={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$c=Symbol("");var sa;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(sa||(sa={}));function Sn(e,t){return me(new Error,{type:e,[$c]:!0},t)}function vt(e,t){return e instanceof Error&&$c in e&&(t==null||!!(e.type&t))}const oa="[^/]+?",Fg={sensitive:!1,strict:!1,start:!0,end:!0},Ng=/[.+*?^${}()[\]/\\]/g;function Dg(e,t){const n=me({},Fg,t),o=[];let s=n.start?"^":"";const r=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let h=0;h<u.length;h++){const d=u[h];let c=40+(n.sensitive?.25:0);if(d.type===0)h||(s+="/"),s+=d.value.replace(Ng,"\\$&"),c+=40;else if(d.type===1){const{value:p,repeatable:g,optional:m,regexp:y}=d;r.push({name:p,repeatable:g,optional:m});const _=y||oa;if(_!==oa){c+=10;try{new RegExp(`(${_})`)}catch(E){throw new Error(`Invalid custom RegExp for param "${p}" (${_}): `+E.message)}}let x=g?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;h||(x=m&&u.length<2?`(?:/${x})`:"/"+x),m&&(x+="?"),s+=x,c+=20,m&&(c+=-8),g&&(c+=-20),_===".*"&&(c+=-50)}f.push(c)}o.push(f)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function a(u){const f=u.match(i),h={};if(!f)return null;for(let d=1;d<f.length;d++){const c=f[d]||"",p=r[d-1];h[p.name]=c&&p.repeatable?c.split("/"):c}return h}function l(u){let f="",h=!1;for(const d of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const c of d)if(c.type===0)f+=c.value;else if(c.type===1){const{value:p,repeatable:g,optional:m}=c,y=p in u?u[p]:"";if(ct(y)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const _=ct(y)?y.join("/"):y;if(!_)if(m)d.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);f+=_}}return f||"/"}return{re:i,score:o,keys:r,parse:a,stringify:l}}function $g(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Bg(e,t){let n=0;const o=e.score,s=t.score;for(;n<o.length&&n<s.length;){const r=$g(o[n],s[n]);if(r)return r;n++}if(Math.abs(s.length-o.length)===1){if(ia(o))return 1;if(ia(s))return-1}return s.length-o.length}function ia(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Hg={type:0,value:""},jg=/[a-zA-Z0-9_]/;function Ug(e){if(!e)return[[]];if(e==="/")return[[Hg]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(c){throw new Error(`ERR (${n})/"${u}": ${c}`)}let n=0,o=n;const s=[];let r;function i(){r&&s.push(r),r=[]}let a=0,l,u="",f="";function h(){u&&(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:u,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function d(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:l==="/"?(u&&h(),i()):l===":"?(h(),n=1):d();break;case 4:d(),n=o;break;case 1:l==="("?n=2:jg.test(l)?d():(h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+l:n=3:f+=l;break;case 3:h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),h(),i(),s}function Vg(e,t,n){const o=Dg(Ug(e.path),n),s=me(o,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Wg(e,t){const n=[],o=new Map;t=ca({strict:!1,end:!0,sensitive:!1},t);function s(f){return o.get(f)}function r(f,h,d){const c=!d,p=Kg(f);p.aliasOf=d&&d.record;const g=ca(t,f),m=[p];if("alias"in f){const x=typeof f.alias=="string"?[f.alias]:f.alias;for(const E of x)m.push(me({},p,{components:d?d.record.components:p.components,path:E,aliasOf:d?d.record:p}))}let y,_;for(const x of m){const{path:E}=x;if(h&&E[0]!=="/"){const v=h.record.path,b=v[v.length-1]==="/"?"":"/";x.path=h.record.path+(E&&b+E)}if(y=Vg(x,h,g),d?d.alias.push(y):(_=_||y,_!==y&&_.alias.push(y),c&&f.name&&!la(y)&&i(f.name)),p.children){const v=p.children;for(let b=0;b<v.length;b++)r(v[b],y,d&&d.children[b])}d=d||y,(y.record.components&&Object.keys(y.record.components).length||y.record.name||y.record.redirect)&&l(y)}return _?()=>{i(_)}:Jn}function i(f){if(Dc(f)){const h=o.get(f);h&&(o.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&o.delete(f.record.name),f.children.forEach(i),f.alias.forEach(i))}}function a(){return n}function l(f){let h=0;for(;h<n.length&&Bg(f,n[h])>=0&&(f.record.path!==n[h].record.path||!Bc(f,n[h]));)h++;n.splice(h,0,f),f.record.name&&!la(f)&&o.set(f.record.name,f)}function u(f,h){let d,c={},p,g;if("name"in f&&f.name){if(d=o.get(f.name),!d)throw Sn(1,{location:f});g=d.record.name,c=me(aa(h.params,d.keys.filter(_=>!_.optional).map(_=>_.name)),f.params&&aa(f.params,d.keys.map(_=>_.name))),p=d.stringify(c)}else if("path"in f)p=f.path,d=n.find(_=>_.re.test(p)),d&&(c=d.parse(p),g=d.record.name);else{if(d=h.name?o.get(h.name):n.find(_=>_.re.test(h.path)),!d)throw Sn(1,{location:f,currentLocation:h});g=d.record.name,c=me({},h.params,f.params),p=d.stringify(c)}const m=[];let y=d;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:p,params:c,matched:m,meta:Gg(m)}}return e.forEach(f=>r(f)),{addRoute:r,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function aa(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Kg(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:zg(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function zg(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="boolean"?n:n[o];return t}function la(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Gg(e){return e.reduce((t,n)=>me(t,n.meta),{})}function ca(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Bc(e,t){return t.children.some(n=>n===e||Bc(e,n))}const Hc=/#/g,Jg=/&/g,Qg=/\//g,Yg=/=/g,Xg=/\?/g,jc=/\+/g,Zg=/%5B/g,qg=/%5D/g,Uc=/%5E/g,em=/%60/g,Vc=/%7B/g,tm=/%7C/g,Wc=/%7D/g,nm=/%20/g;function Go(e){return encodeURI(""+e).replace(tm,"|").replace(Zg,"[").replace(qg,"]")}function rm(e){return Go(e).replace(Vc,"{").replace(Wc,"}").replace(Uc,"^")}function qs(e){return Go(e).replace(jc,"%2B").replace(nm,"+").replace(Hc,"%23").replace(Jg,"%26").replace(em,"`").replace(Vc,"{").replace(Wc,"}").replace(Uc,"^")}function sm(e){return qs(e).replace(Yg,"%3D")}function om(e){return Go(e).replace(Hc,"%23").replace(Xg,"%3F")}function im(e){return e==null?"":om(e).replace(Qg,"%2F")}function Vr(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function am(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<o.length;++s){const r=o[s].replace(jc," "),i=r.indexOf("="),a=Vr(i<0?r:r.slice(0,i)),l=i<0?null:Vr(r.slice(i+1));if(a in t){let u=t[a];ct(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function ua(e){let t="";for(let n in e){const o=e[n];if(n=sm(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(ct(o)?o.map(r=>r&&qs(r)):[o&&qs(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function lm(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=ct(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return t}const cm=Symbol(""),fa=Symbol(""),os=Symbol(""),Jo=Symbol(""),eo=Symbol("");function Bn(){let e=[];function t(o){return e.push(o),()=>{const s=e.indexOf(o);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function kt(e,t,n,o,s){const r=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const l=h=>{h===!1?a(Sn(4,{from:n,to:t})):h instanceof Error?a(h):Mg(h)?a(Sn(2,{from:t,to:h})):(r&&o.enterCallbacks[s]===r&&typeof h=="function"&&r.push(h),i())},u=e.call(o&&o.instances[s],t,n,l);let f=Promise.resolve(u);e.length<3&&(f=f.then(l)),f.catch(h=>a(h))})}function Os(e,t,n,o){const s=[];for(const r of e)for(const i in r.components){let a=r.components[i];if(!(t!=="beforeRouteEnter"&&!r.instances[i]))if(um(a)){const u=(a.__vccOpts||a)[t];u&&s.push(kt(u,n,o,r,i))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${r.path}"`));const f=mg(u)?u.default:u;r.components[i]=f;const d=(f.__vccOpts||f)[t];return d&&kt(d,n,o,r,i)()}))}}return s}function um(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function da(e){const t=je(os),n=je(Jo),o=_e(()=>t.resolve(ie(e.to))),s=_e(()=>{const{matched:l}=o.value,{length:u}=l,f=l[u-1],h=n.matched;if(!f||!h.length)return-1;const d=h.findIndex(En.bind(null,f));if(d>-1)return d;const c=ha(l[u-2]);return u>1&&ha(f)===c&&h[h.length-1].path!==c?h.findIndex(En.bind(null,l[u-2])):d}),r=_e(()=>s.value>-1&&pm(n.params,o.value.params)),i=_e(()=>s.value>-1&&s.value===n.matched.length-1&&Mc(n.params,o.value.params));function a(l={}){return hm(l)?t[ie(e.replace)?"replace":"push"](ie(e.to)).catch(Jn):Promise.resolve()}return{route:o,href:_e(()=>o.value.href),isActive:r,isExactActive:i,navigate:a}}const fm=Be({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:da,setup(e,{slots:t}){const n=gt(da(e)),{options:o}=je(os),s=_e(()=>({[pa(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[pa(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:Ye("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},r)}}}),dm=fm;function hm(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function pm(e,t){for(const n in t){const o=t[n],s=e[n];if(typeof o=="string"){if(o!==s)return!1}else if(!ct(s)||s.length!==o.length||o.some((r,i)=>r!==s[i]))return!1}return!0}function ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pa=(e,t,n)=>e??t??n,gm=Be({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=je(eo),s=_e(()=>e.route||o.value),r=je(fa,0),i=_e(()=>{let u=ie(r);const{matched:f}=s.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=_e(()=>s.value.matched[i.value]);yn(fa,_e(()=>i.value+1)),yn(cm,a),yn(eo,s);const l=ye();return lt(()=>[l.value,a.value,e.name],([u,f,h],[d,c,p])=>{f&&(f.instances[h]=u,c&&c!==f&&u&&u===d&&(f.leaveGuards.size||(f.leaveGuards=c.leaveGuards),f.updateGuards.size||(f.updateGuards=c.updateGuards))),u&&f&&(!c||!En(f,c)||!d)&&(f.enterCallbacks[h]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=s.value,f=e.name,h=a.value,d=h&&h.components[f];if(!d)return ga(n.default,{Component:d,route:u});const c=h.props[f],p=c?c===!0?u.params:typeof c=="function"?c(u):c:null,m=Ye(d,me({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return ga(n.default,{Component:m,route:u})||m}}});function ga(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Kc=gm;function mm(e){const t=Wg(e.routes,e),n=e.parseQuery||am,o=e.stringifyQuery||ua,s=e.history,r=Bn(),i=Bn(),a=Bn(),l=Ns(It);let u=It;ln&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Rs.bind(null,B=>""+B),h=Rs.bind(null,im),d=Rs.bind(null,Vr);function c(B,W){let G,X;return Dc(B)?(G=t.getRecordMatcher(B),X=W):X=B,t.addRoute(X,G)}function p(B){const W=t.getRecordMatcher(B);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(B=>B.record)}function m(B){return!!t.getRecordMatcher(B)}function y(B,W){if(W=me({},W||l.value),typeof B=="string"){const R=Ts(n,B,W.path),A=t.resolve({path:R.path},W),N=s.createHref(R.fullPath);return me(R,A,{params:d(A.params),hash:Vr(R.hash),redirectedFrom:void 0,href:N})}let G;if("path"in B)G=me({},B,{path:Ts(n,B.path,W.path).path});else{const R=me({},B.params);for(const A in R)R[A]==null&&delete R[A];G=me({},B,{params:h(B.params)}),W.params=h(W.params)}const X=t.resolve(G,W),le=B.hash||"";X.params=f(d(X.params));const xe=_g(o,me({},B,{hash:rm(le),path:X.path})),ae=s.createHref(xe);return me({fullPath:xe,hash:le,query:o===ua?lm(B.query):B.query||{}},X,{redirectedFrom:void 0,href:ae})}function _(B){return typeof B=="string"?Ts(n,B,l.value.path):me({},B)}function x(B,W){if(u!==B)return Sn(8,{from:W,to:B})}function E(B){return S(B)}function v(B){return E(me(_(B),{replace:!0}))}function b(B){const W=B.matched[B.matched.length-1];if(W&&W.redirect){const{redirect:G}=W;let X=typeof G=="function"?G(B):G;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=_(X):{path:X},X.params={}),me({query:B.query,hash:B.hash,params:"path"in X?{}:B.params},X)}}function S(B,W){const G=u=y(B),X=l.value,le=B.state,xe=B.force,ae=B.replace===!0,R=b(G);if(R)return S(me(_(R),{state:typeof R=="object"?me({},le,R.state):le,force:xe,replace:ae}),W||G);const A=G;A.redirectedFrom=W;let N;return!xe&&xg(o,X,G)&&(N=Sn(16,{to:A,from:X}),ce(X,X,!0,!1)),(N?Promise.resolve(N):P(A,X)).catch($=>vt($)?vt($,2)?$:se($):j($,A,X)).then($=>{if($){if(vt($,2))return S(me({replace:ae},_($.to),{state:typeof $.to=="object"?me({},le,$.to.state):le,force:xe}),W||A)}else $=I(A,X,!0,ae,le);return C(A,X,$),$})}function w(B,W){const G=x(B,W);return G?Promise.reject(G):Promise.resolve()}function P(B,W){let G;const[X,le,xe]=vm(B,W);G=Os(X.reverse(),"beforeRouteLeave",B,W);for(const R of X)R.leaveGuards.forEach(A=>{G.push(kt(A,B,W))});const ae=w.bind(null,B,W);return G.push(ae),on(G).then(()=>{G=[];for(const R of r.list())G.push(kt(R,B,W));return G.push(ae),on(G)}).then(()=>{G=Os(le,"beforeRouteUpdate",B,W);for(const R of le)R.updateGuards.forEach(A=>{G.push(kt(A,B,W))});return G.push(ae),on(G)}).then(()=>{G=[];for(const R of B.matched)if(R.beforeEnter&&!W.matched.includes(R))if(ct(R.beforeEnter))for(const A of R.beforeEnter)G.push(kt(A,B,W));else G.push(kt(R.beforeEnter,B,W));return G.push(ae),on(G)}).then(()=>(B.matched.forEach(R=>R.enterCallbacks={}),G=Os(xe,"beforeRouteEnter",B,W),G.push(ae),on(G))).then(()=>{G=[];for(const R of i.list())G.push(kt(R,B,W));return G.push(ae),on(G)}).catch(R=>vt(R,8)?R:Promise.reject(R))}function C(B,W,G){for(const X of a.list())X(B,W,G)}function I(B,W,G,X,le){const xe=x(B,W);if(xe)return xe;const ae=W===It,R=ln?history.state:{};G&&(X||ae?s.replace(B.fullPath,me({scroll:ae&&R&&R.scroll},le)):s.push(B.fullPath,le)),l.value=B,ce(B,W,G,ae),se()}let L;function O(){L||(L=s.listen((B,W,G)=>{if(!be.listening)return;const X=y(B),le=b(X);if(le){S(me(le,{replace:!0}),X).catch(Jn);return}u=X;const xe=l.value;ln&&Rg(na(xe.fullPath,G.delta),ss()),P(X,xe).catch(ae=>vt(ae,12)?ae:vt(ae,2)?(S(ae.to,X).then(R=>{vt(R,20)&&!G.delta&&G.type===sr.pop&&s.go(-1,!1)}).catch(Jn),Promise.reject()):(G.delta&&s.go(-G.delta,!1),j(ae,X,xe))).then(ae=>{ae=ae||I(X,xe,!1),ae&&(G.delta&&!vt(ae,8)?s.go(-G.delta,!1):G.type===sr.pop&&vt(ae,20)&&s.go(-1,!1)),C(X,xe,ae)}).catch(Jn)}))}let k=Bn(),D=Bn(),V;function j(B,W,G){se(B);const X=D.list();return X.length?X.forEach(le=>le(B,W,G)):console.error(B),Promise.reject(B)}function Y(){return V&&l.value!==It?Promise.resolve():new Promise((B,W)=>{k.add([B,W])})}function se(B){return V||(V=!B,O(),k.list().forEach(([W,G])=>B?G(B):W()),k.reset()),B}function ce(B,W,G,X){const{scrollBehavior:le}=e;if(!ln||!le)return Promise.resolve();const xe=!G&&Tg(na(B.fullPath,0))||(X||!G)&&history.state&&history.state.scroll||null;return en().then(()=>le(B,W,xe)).then(ae=>ae&&Lg(ae)).catch(ae=>j(ae,B,W))}const pe=B=>s.go(B);let ee;const we=new Set,be={currentRoute:l,listening:!0,addRoute:c,removeRoute:p,hasRoute:m,getRoutes:g,resolve:y,options:e,push:E,replace:v,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:D.add,isReady:Y,install(B){const W=this;B.component("RouterLink",dm),B.component("RouterView",Kc),B.config.globalProperties.$router=W,Object.defineProperty(B.config.globalProperties,"$route",{enumerable:!0,get:()=>ie(l)}),ln&&!ee&&l.value===It&&(ee=!0,E(s.location).catch(le=>{}));const G={};for(const le in It)G[le]=_e(()=>l.value[le]);B.provide(os,W),B.provide(Jo,gt(G)),B.provide(eo,l);const X=B.unmount;we.add(B),B.unmount=function(){we.delete(B),we.size<1&&(u=It,L&&L(),L=null,l.value=It,ee=!1,V=!1),X()}}};return be}function on(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function vm(e,t){const n=[],o=[],s=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const a=t.matched[i];a&&(e.matched.find(u=>En(u,a))?o.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>En(u,l))||s.push(l))}return[n,o,s]}function zc(){return je(os)}function Qo(){return je(Jo)}function Is(e){return e!==null&&typeof e=="object"}function to(e,t,n=".",o){if(!Is(t))return to(e,{},n,o);const s=Object.assign({},t);for(const r in e){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(o&&o(s,r,i,n)||(Array.isArray(i)&&Array.isArray(s[r])?s[r]=[...i,...s[r]]:Is(i)&&Is(s[r])?s[r]=to(i,s[r],(n?`${n}.`:"")+r.toString(),o):s[r]=i))}return s}function ym(e){return(...t)=>t.reduce((n,o)=>to(n,o,"",e),{})}const _m=ym();class no extends Error{constructor(){super(...arguments),this.statusCode=500,this.fatal=!1,this.unhandled=!1,this.statusMessage=void 0}toJSON(){const t={message:this.message,statusCode:so(this.statusCode,500)};return this.statusMessage&&(t.statusMessage=Gc(this.statusMessage)),this.data!==void 0&&(t.data=this.data),t}}no.__h3_error__=!0;function ro(e){if(typeof e=="string")return new no(e);if(xm(e))return e;const t=new no(e.message??e.statusMessage,e.cause?{cause:e.cause}:void 0);if("stack"in e)try{Object.defineProperty(t,"stack",{get(){return e.stack}})}catch{try{t.stack=e.stack}catch{}}if(e.data&&(t.data=e.data),e.statusCode?t.statusCode=so(e.statusCode,t.statusCode):e.status&&(t.statusCode=so(e.status,t.statusCode)),e.statusMessage?t.statusMessage=e.statusMessage:e.statusText&&(t.statusMessage=e.statusText),t.statusMessage){const n=t.statusMessage;Gc(t.statusMessage)!==n&&console.warn("[h3] Please prefer using `message` for longer error messages instead of `statusMessage`. In the future `statusMessage` will be sanitized by default.")}return e.fatal!==void 0&&(t.fatal=e.fatal),e.unhandled!==void 0&&(t.unhandled=e.unhandled),t}function xm(e){var t;return((t=e==null?void 0:e.constructor)==null?void 0:t.__h3_error__)===!0}const wm=/[^\u0009\u0020-\u007E]/g;function Gc(e=""){return e.replace(wm,"")}function so(e,t=200){return!e||(typeof e=="string"&&(e=Number.parseInt(e,10)),e<100||e>999)?t:e}function Jc(...e){const t=typeof e[e.length-1]=="string"?e.pop():void 0;typeof e[0]!="string"&&e.unshift(t);const[n,o]=e;if(!n||typeof n!="string")throw new TypeError("[nuxt] [useState] key must be a string: "+n);if(o!==void 0&&typeof o!="function")throw new Error("[nuxt] [useState] init must be a function: "+o);const s="$s"+n,r=Ae(),i=Il(r.payload.state,s);if(i.value===void 0&&o){const a=o();if(Le(a))return r.payload.state[s]=a,a;i.value=a}return i}const nn=()=>{var e;return(e=Ae())==null?void 0:e.$router},Yo=()=>Ct()?je("_route",Ae()._route):Ae()._route,Qc=e=>e,bm=(e,t,n={})=>{const o=Ae(),s=n.global||typeof e!="string",r=typeof e!="string"?e:t;if(!r){console.warn("[nuxt] No route middleware passed to `addRouteMiddleware`.",e);return}s?o._middleware.global.push(r):o._middleware.named[e]=r},Em=()=>{try{if(Ae()._processingMiddleware)return!0}catch{return!0}return!1},hx=(e,t)=>{e||(e="/");const n=typeof e=="string"?e:e.path||"/",o=(t==null?void 0:t.external)||In(n,{acceptRelative:!0});if(o&&!(t!=null&&t.external))throw new Error("Navigating to external URL is not allowed by default. Use `navigateTo (url, { external: true })`.");if(o&&rs(n).protocol==="script:")throw new Error("Cannot navigate to an URL with script protocol.");const s=Em();if(!o&&s)return e;const r=nn();return o?(t!=null&&t.replace?location.replace(n):location.href=n,Promise.resolve()):t!=null&&t.replace?r.replace(e):r.push(e)},is=()=>Il(Ae().payload,"error"),cn=e=>{const t=Yc(e);try{Ae().callHook("app:error",t);const o=is();o.value=o.value||t}catch{throw t}return t},Sm=async(e={})=>{const t=Ae(),n=is();t.callHook("app:error:cleared",e),e.redirect&&await nn().replace(e.redirect),n.value=null},Cm=e=>!!(e&&typeof e=="object"&&"__nuxt_error"in e),Yc=e=>{const t=ro(e);return t.__nuxt_error=!0,t},Pm="modulepreload",Lm=function(e,t){return e.startsWith(".")?new URL(e,t).href:e},ma={},Rm=function(t,n,o){if(!n||n.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(n.map(r=>{if(r=Lm(r,o),r in ma)return;ma[r]=!0;const i=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(!!o)for(let f=s.length-1;f>=0;f--){const h=s[f];if(h.href===r&&(!i||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${r}"]${a}`))return;const u=document.createElement("link");if(u.rel=i?"stylesheet":Pm,i||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),i)return new Promise((f,h)=>{u.addEventListener("load",f),u.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Pe=(...e)=>Rm(...e).catch(t=>{const n=new Event("nuxt.preloadError");throw n.payload=t,window.dispatchEvent(n),t}),va=[{name:"about",path:"/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.bbe08619.js"),["./about.bbe08619.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"about___en",path:"/en/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.bbe08619.js"),["./about.bbe08619.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"about___it",path:"/it/about",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./about.bbe08619.js"),["./about.bbe08619.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js","./about.ff490bb3.css"],import.meta.url).then(e=>e.default||e)},{name:"contacts",path:"/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.ecdf1ddf.js"),["./contacts.ecdf1ddf.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"contacts___en",path:"/en/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.ecdf1ddf.js"),["./contacts.ecdf1ddf.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"contacts___it",path:"/it/contacts",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./contacts.ecdf1ddf.js"),["./contacts.ecdf1ddf.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"index",path:"/",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.87e38351.js"),["./index.87e38351.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"index___en",path:"/en",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.87e38351.js"),["./index.87e38351.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"index___it",path:"/it",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./index.87e38351.js"),["./index.87e38351.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./ScreenCenter.e4ab15e2.js"],import.meta.url).then(e=>e.default||e)},{name:"projects",path:"/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.40c36d32.js"),["./projects.40c36d32.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js"],import.meta.url).then(e=>e.default||e)},{name:"projects___en",path:"/en/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.40c36d32.js"),["./projects.40c36d32.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js"],import.meta.url).then(e=>e.default||e)},{name:"projects___it",path:"/it/projects",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./projects.40c36d32.js"),["./projects.40c36d32.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js"],import.meta.url).then(e=>e.default||e)},{name:"resume",path:"/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.8154ee63.js"),["./resume.8154ee63.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)},{name:"resume___en",path:"/en/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.8154ee63.js"),["./resume.8154ee63.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)},{name:"resume___it",path:"/it/resume",meta:{},alias:[],redirect:void 0,component:()=>Pe(()=>import("./resume.8154ee63.js"),["./resume.8154ee63.js","./Navbar.vue.76e30b51.js","./composables.e908fea4.js","./resume.fd0bac8e.css"],import.meta.url).then(e=>e.default||e)}],Tm={scrollBehavior(e,t,n){const o=Ae();let s=n||void 0;if(!s&&t&&e&&e.meta.scrollToTop!==!1&&Om(t,e)&&(s={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:ya(e.hash)}}const r=a=>!!(a.meta.pageTransition??Xs),i=r(t)&&r(e)?"page:transition:finish":"page:finish";return new Promise(a=>{o.hooks.hookOnce(i,async()=>{await en(),e.hash&&(s={el:e.hash,top:ya(e.hash)}),a(s)})})}};function ya(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function Om(e,t){const n=e.matched[0]===t.matched[0];return!!(!n||n&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const Im={},yt={...Im,...Tm},Am=Qc(async e=>{var l;let t,n;if(!((l=e.meta)!=null&&l.validate))return;const o=Ae(),s=nn();if(([t,n]=Jt(()=>Promise.resolve(e.meta.validate(e))),t=await t,n(),t)===!0)return;const i=Yc({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=s.beforeResolve(u=>{if(a(),u===e){const f=s.afterEach(async()=>{f(),await wt(o,cn,[i]),window.history.pushState({},"",e.fullPath)});return!1}})}),km=[Am],Yn={};function Mm(e,t){const{pathname:n,search:o,hash:s}=t,r=e.indexOf("#");if(r>-1){const a=s.includes(e.slice(r))?e.slice(r).length:1;let l=s.slice(a);return l[0]!=="/"&&(l="/"+l),Wi(l,"")}return Wi(n,e)+o+s}const Fm=Pt({name:"nuxt:router",enforce:"pre",async setup(e){var p,g;let t,n,o=Ko().app.baseURL;yt.hashMode&&!o.includes("#")&&(o+="#");const s=((p=yt.history)==null?void 0:p.call(yt,o))??(yt.hashMode?kg(o):Nc(o)),r=((g=yt.routes)==null?void 0:g.call(yt,va))??va,i=Mm(o,window.location),a=mm({...yt,history:s,routes:r});e.vueApp.use(a);const l=Ns(a.currentRoute.value);a.afterEach((m,y)=>{l.value=y}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const u=Ns(a.resolve(i)),f=()=>{u.value=a.currentRoute.value};e.hook("page:finish",f),a.afterEach((m,y)=>{var _,x,E,v;((x=(_=m.matched[0])==null?void 0:_.components)==null?void 0:x.default)===((v=(E=y.matched[0])==null?void 0:E.components)==null?void 0:v.default)&&f()});const h={};for(const m in u.value)h[m]=_e(()=>u.value[m]);e._route=gt(h),e._middleware=e._middleware||{global:[],named:{}};const d=is();try{[t,n]=Jt(()=>a.isReady()),await t,n()}catch(m){[t,n]=Jt(()=>wt(e,cn,[m])),await t,n()}const c=Jc("_layout");return a.beforeEach(async(m,y)=>{var x;m.meta=gt(m.meta),e.isHydrating&&c.value&&!Zt(m.meta.layout)&&(m.meta.layout=c.value),e._processingMiddleware=!0;const _=new Set([...km,...e._middleware.global]);for(const E of m.matched){const v=E.meta.middleware;if(v)if(Array.isArray(v))for(const b of v)_.add(b);else _.add(v)}for(const E of _){const v=typeof E=="string"?e._middleware.named[E]||await((x=Yn[E])==null?void 0:x.call(Yn).then(S=>S.default||S)):E;if(!v)throw new Error(`Unknown route middleware: '${E}'.`);const b=await wt(e,v,[m,y]);if(!e.payload.serverRendered&&e.isHydrating&&(b===!1||b instanceof Error)){const S=b||ro({statusCode:404,statusMessage:`Page Not Found: ${i}`});return await wt(e,cn,[S]),!1}if(b||b===!1)return b}}),a.onError(()=>{delete e._processingMiddleware}),a.afterEach(async(m,y,_)=>{delete e._processingMiddleware,!e.isHydrating&&d.value&&await wt(e,Sm),m.matched.length===0&&await wt(e,cn,[ro({statusCode:404,fatal:!1,statusMessage:`Page not found: ${m.fullPath}`})])}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(i),name:void 0,force:!0})}catch(m){await wt(e,cn,[m])}}),{provide:{router:a}}}},1),un={},Nm=Pt({name:"nuxt:prefetch",setup(e){const t=nn();e.hooks.hook("app:mounted",()=>{t.beforeEach(async n=>{var s;const o=(s=n==null?void 0:n.meta)==null?void 0:s.layout;o&&typeof un[o]=="function"&&await un[o]()})}),e.hooks.hook("link:prefetch",n=>{var i,a,l,u;if(In(n))return;const o=t.resolve(n);if(!o)return;const s=(i=o==null?void 0:o.meta)==null?void 0:i.layout;let r=Array.isArray((a=o==null?void 0:o.meta)==null?void 0:a.middleware)?(l=o==null?void 0:o.meta)==null?void 0:l.middleware:[(u=o==null?void 0:o.meta)==null?void 0:u.middleware];r=r.filter(f=>typeof f=="string");for(const f of r)typeof Yn[f]=="function"&&Yn[f]();s&&typeof un[s]=="function"&&un[s]()})}});Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const Dm=-1,$m=-2,Bm=-3,Hm=-4,jm=-5,Um=-6;function Vm(e,t){return Wm(JSON.parse(e),t)}function Wm(e,t){if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,o=Array(n.length);function s(r,i=!1){if(r===Dm)return;if(r===Bm)return NaN;if(r===Hm)return 1/0;if(r===jm)return-1/0;if(r===Um)return-0;if(i)throw new Error("Invalid input");if(r in o)return o[r];const a=n[r];if(!a||typeof a!="object")o[r]=a;else if(Array.isArray(a))if(typeof a[0]=="string"){const l=a[0],u=t==null?void 0:t[l];if(u)return o[r]=u(s(a[1]));switch(l){case"Date":o[r]=new Date(a[1]);break;case"Set":const f=new Set;o[r]=f;for(let c=1;c<a.length;c+=1)f.add(s(a[c]));break;case"Map":const h=new Map;o[r]=h;for(let c=1;c<a.length;c+=2)h.set(s(a[c]),s(a[c+1]));break;case"RegExp":o[r]=new RegExp(a[1],a[2]);break;case"Object":o[r]=Object(a[1]);break;case"BigInt":o[r]=BigInt(a[1]);break;case"null":const d=Object.create(null);o[r]=d;for(let c=1;c<a.length;c+=2)d[a[c]]=s(a[c+1]);break;default:throw new Error(`Unknown type ${l}`)}}else{const l=new Array(a.length);o[r]=l;for(let u=0;u<a.length;u+=1){const f=a[u];f!==$m&&(l[u]=s(f))}}else{const l={};o[r]=l;for(const u in a){const f=a[u];l[u]=s(f)}}return o[r]}return s(0)}function _a(e,t={}){const n=Km(e,t),o=Ae(),s=o._payloadCache=o._payloadCache||{};return s[n]||(s[n]=zm(n).then(r=>r||(delete s[n],null))),s[n]}const xa="js";function Km(e,t={}){const n=new URL(e,"http://localhost");if(n.search)throw new Error("Payload URL cannot contain search params: "+e);if(n.host!=="localhost"||In(n.pathname,{acceptRelative:!0}))throw new Error("Payload URL must not include hostname: "+e);const o=t.hash||(t.fresh?Date.now():"");return An(Ko().app.baseURL,n.pathname,o?`_payload.${o}.${xa}`:`_payload.${xa}`)}async function zm(e){try{return pg?Jm(await fetch(e).then(t=>t.text())):await Pe(()=>import(e),[],import.meta.url).then(t=>t.default||t)}catch(t){console.warn("[nuxt] Cannot load payload ",e,t)}return null}function Gm(){return!!Ae().payload.prerenderedAt}function Jm(e){return Vm(e,Ae()._payloadRevivers)}function Qm(e={}){const t=e.path||window.location.pathname;let n={};try{n=JSON.parse(sessionStorage.getItem("nuxt:reload")||"{}")}catch{}if(e.force||(n==null?void 0:n.path)!==t||(n==null?void 0:n.expires)<Date.now()){try{sessionStorage.setItem("nuxt:reload",JSON.stringify({path:t,expires:Date.now()+(e.ttl??1e4)}))}catch{}if(e.persistState)try{sessionStorage.setItem("nuxt:reload:state",JSON.stringify({state:Ae().payload.state}))}catch{}window.location.pathname!==t?window.location.href=t:window.location.reload()}}const Ym=Pt(()=>{});var Xn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xc={exports:{}},ge={};/*!
* shared v9.3.0-beta.17
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Xm=typeof window<"u";let Zm,qm;const ev=/\{([0-9a-zA-Z]+)\}/g;function tv(e,...t){return t.length===1&&Xo(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(ev,(n,o)=>t.hasOwnProperty(o)?t[o]:"")}const nv=(e,t=!1)=>t?Symbol.for(e):Symbol(e),rv=(e,t,n)=>Zc({l:e,k:t,s:n}),Zc=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),sv=e=>typeof e=="number"&&isFinite(e),ov=e=>as(e)==="[object Date]",iv=e=>as(e)==="[object RegExp]",av=e=>qo(e)&&Object.keys(e).length===0;function lv(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const cv=Object.assign;let wa;const uv=()=>wa||(wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Xn<"u"?Xn:{});function fv(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const dv=Object.prototype.hasOwnProperty;function hv(e,t){return dv.call(e,t)}const qc=Array.isArray,oo=e=>typeof e=="function",pv=e=>typeof e=="string",gv=e=>typeof e=="boolean",mv=e=>typeof e=="symbol",Xo=e=>e!==null&&typeof e=="object",vv=e=>Xo(e)&&oo(e.then)&&oo(e.catch),Zo=Object.prototype.toString,as=e=>Zo.call(e),qo=e=>as(e)==="[object Object]",yv=e=>e==null?"":qc(e)||qo(e)&&e.toString===Zo?JSON.stringify(e,null,2):String(e),ba=2;function _v(e,t=0,n=e.length){const o=e.split(/\r?\n/);let s=0;const r=[];for(let i=0;i<o.length;i++)if(s+=o[i].length+1,s>=t){for(let a=i-ba;a<=i+ba||n>s;a++){if(a<0||a>=o.length)continue;const l=a+1;r.push(`${l}${" ".repeat(3-String(l).length)}| ${o[a]}`);const u=o[a].length;if(a===i){const f=t-(s-u)+1,h=Math.max(1,n>s?u-f:n-t);r.push(" | "+" ".repeat(f)+"^".repeat(h))}else if(a>i){if(n>s){const f=Math.max(Math.min(n-s,u),1);r.push(" | "+"^".repeat(f))}s+=u+1}}break}return r.join(`
`)}function xv(){const e=new Map;return{events:e,on(n,o){const s=e.get(n);s&&s.push(o)||e.set(n,[o])},off(n,o){const s=e.get(n);s&&s.splice(s.indexOf(o)>>>0,1)},emit(n,o){(e.get(n)||[]).slice().map(s=>s(o)),(e.get("*")||[]).slice().map(s=>s(n,o))}}}ge.assign=cv;ge.createEmitter=xv;ge.escapeHtml=fv;ge.format=tv;ge.friendlyJSONstringify=Zc;ge.generateCodeFrame=_v;ge.generateFormatCacheKey=rv;ge.getGlobalThis=uv;ge.hasOwn=hv;ge.inBrowser=Xm;ge.isArray=qc;ge.isBoolean=gv;ge.isDate=ov;ge.isEmptyObject=av;ge.isFunction=oo;ge.isNumber=sv;ge.isObject=Xo;ge.isPlainObject=qo;ge.isPromise=vv;ge.isRegExp=iv;ge.isString=pv;ge.isSymbol=mv;ge.makeSymbol=nv;ge.mark=Zm;ge.measure=qm;ge.objectToString=Zo;ge.toDisplayString=yv;ge.toTypeString=as;ge.warn=lv;Xc.exports=ge;var T=Xc.exports;/*!
* message-compiler v9.3.0-beta.17
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const eu={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function tu(e,t,n={}){const{domain:o,messages:s,args:r}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=o,a}/*!
* devtools-if v9.3.0-beta.17
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const nu={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* core-base v9.3.0-beta.17
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const $t=[];$t[0]={w:[0],i:[3,0],["["]:[4],o:[7]};$t[1]={w:[1],["."]:[2],["["]:[4],o:[7]};$t[2]={w:[2],i:[3,0],[0]:[3,0]};$t[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};$t[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};$t[5]={["'"]:[4,0],o:8,l:[5,0]};$t[6]={['"']:[4,0],o:8,l:[6,0]};const wv=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function bv(e){return wv.test(e)}function Ev(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Sv(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Cv(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:bv(t)?Ev(t):"*"+t}function Pv(e){const t=[];let n=-1,o=0,s=0,r,i,a,l,u,f,h;const d=[];d[0]=()=>{i===void 0?i=a:i+=a},d[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},d[2]=()=>{d[0](),s++},d[3]=()=>{if(s>0)s--,o=4,d[0]();else{if(s=0,i===void 0||(i=Cv(i),i===!1))return!1;d[1]()}};function c(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,a="\\"+p,d[0](),!0}for(;o!==null;)if(n++,r=e[n],!(r==="\\"&&c())){if(l=Sv(r),h=$t[o],u=h[l]||h.l||8,u===8||(o=u[0],u[1]!==void 0&&(f=d[u[1]],f&&(a=r,f()===!1))))return;if(o===7)return t}}const Ea=new Map;function Lv(e,t){return T.isObject(e)?e[t]:null}function Rv(e,t){if(!T.isObject(e))return null;let n=Ea.get(t);if(n||(n=Pv(t),n&&Ea.set(t,n)),!n)return null;const o=n.length;let s=e,r=0;for(;r<o;){const i=s[n[r]];if(i===void 0)return null;s=i,r++}return s}const Tv=e=>e,Ov=e=>"",Iv="text",Av=e=>e.length===0?"":e.join(""),kv=T.toDisplayString;function Sa(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Mv(e){const t=T.isNumber(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(T.isNumber(e.named.count)||T.isNumber(e.named.n))?T.isNumber(e.named.count)?e.named.count:T.isNumber(e.named.n)?e.named.n:t:t}function Fv(e,t){t.count||(t.count=e),t.n||(t.n=e)}function Nv(e={}){const t=e.locale,n=Mv(e),o=T.isObject(e.pluralRules)&&T.isString(t)&&T.isFunction(e.pluralRules[t])?e.pluralRules[t]:Sa,s=T.isObject(e.pluralRules)&&T.isString(t)&&T.isFunction(e.pluralRules[t])?Sa:void 0,r=y=>y[o(n,y.length,s)],i=e.list||[],a=y=>i[y],l=e.named||{};T.isNumber(e.pluralIndex)&&Fv(n,l);const u=y=>l[y];function f(y){const _=T.isFunction(e.messages)?e.messages(y):T.isObject(e.messages)?e.messages[y]:!1;return _||(e.parent?e.parent.message(y):Ov)}const h=y=>e.modifiers?e.modifiers[y]:Tv,d=T.isPlainObject(e.processor)&&T.isFunction(e.processor.normalize)?e.processor.normalize:Av,c=T.isPlainObject(e.processor)&&T.isFunction(e.processor.interpolate)?e.processor.interpolate:kv,p=T.isPlainObject(e.processor)&&T.isString(e.processor.type)?e.processor.type:Iv,m={list:a,named:u,plural:r,linked:(y,..._)=>{const[x,E]=_;let v="text",b="";_.length===1?T.isObject(x)?(b=x.modifier||b,v=x.type||v):T.isString(x)&&(b=x||b):_.length===2&&(T.isString(x)&&(b=x||b),T.isString(E)&&(v=E||v));let S=f(y)(m);return v==="vnode"&&T.isArray(S)&&b&&(S=S[0]),b?h(b)(S,v):S},message:f,type:p,interpolate:c,normalize:d};return m}let or=null;function Dv(e){or=e}function $v(e,t,n){or&&or.emit(nu.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Bv=Hv(nu.FunctionTranslate);function Hv(e){return t=>or&&or.emit(e,t)}function jv(e,t,n){return[...new Set([n,...T.isArray(t)?t:T.isObject(t)?Object.keys(t):T.isString(t)?[t]:[n]])]}function ru(e,t,n){const o=T.isString(n)?n:ei,s=e;s.__localeChainCache||(s.__localeChainCache=new Map);let r=s.__localeChainCache.get(o);if(!r){r=[];let i=[n];for(;T.isArray(i);)i=Ca(r,i,t);const a=T.isArray(t)||!T.isPlainObject(t)?t:t.default?t.default:null;i=T.isString(a)?[a]:a,T.isArray(i)&&Ca(r,i,!1),s.__localeChainCache.set(o,r)}return r}function Ca(e,t,n){let o=!0;for(let s=0;s<t.length&&T.isBoolean(o);s++){const r=t[s];T.isString(r)&&(o=Uv(e,t[s],n))}return o}function Uv(e,t,n){let o;const s=t.split("-");do{const r=s.join("-");o=Vv(e,r,n),s.splice(-1,1)}while(s.length&&o===!0);return o}function Vv(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(T.isArray(n)||T.isPlainObject(n))&&n[s]&&(o=n[s])}return o}const Wv="9.3.0-beta.17",ls=-1,ei="en-US",Pa="",La=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Kv(){return{upper:(e,t)=>t==="text"&&T.isString(e)?e.toUpperCase():t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&T.isString(e)?e.toLowerCase():t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&T.isString(e)?La(e):t==="vnode"&&T.isObject(e)&&"__v_isVNode"in e?La(e.children):e}}let zv,su;function Gv(e){su=e}let ou;function Jv(e){ou=e}let iu=null;const Ra=e=>{iu=e},Qv=()=>iu;let au=null;const Ta=e=>{au=e},Yv=()=>au;let Oa=0;function Xv(e={}){const t=T.isString(e.version)?e.version:Wv,n=T.isString(e.locale)?e.locale:ei,o=T.isArray(e.fallbackLocale)||T.isPlainObject(e.fallbackLocale)||T.isString(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=T.isPlainObject(e.messages)?e.messages:{[n]:{}},r=T.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=T.isPlainObject(e.numberFormats)?e.numberFormats:{[n]:{}},a=T.assign({},e.modifiers||{},Kv()),l=e.pluralRules||{},u=T.isFunction(e.missing)?e.missing:null,f=T.isBoolean(e.missingWarn)||T.isRegExp(e.missingWarn)?e.missingWarn:!0,h=T.isBoolean(e.fallbackWarn)||T.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=!!e.fallbackFormat,c=!!e.unresolving,p=T.isFunction(e.postTranslation)?e.postTranslation:null,g=T.isPlainObject(e.processor)?e.processor:null,m=T.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,_=T.isFunction(e.messageCompiler)?e.messageCompiler:zv,x=T.isFunction(e.messageResolver)?e.messageResolver:su||Lv,E=T.isFunction(e.localeFallbacker)?e.localeFallbacker:ou||jv,v=T.isObject(e.fallbackContext)?e.fallbackContext:void 0,b=T.isFunction(e.onWarn)?e.onWarn:T.warn,S=e,w=T.isObject(S.__datetimeFormatters)?S.__datetimeFormatters:new Map,P=T.isObject(S.__numberFormatters)?S.__numberFormatters:new Map,C=T.isObject(S.__meta)?S.__meta:{};Oa++;const I={version:t,cid:Oa,locale:n,fallbackLocale:o,messages:s,modifiers:a,pluralRules:l,missing:u,missingWarn:f,fallbackWarn:h,fallbackFormat:d,unresolving:c,postTranslation:p,processor:g,warnHtmlMessage:m,escapeParameter:y,messageCompiler:_,messageResolver:x,localeFallbacker:E,fallbackContext:v,onWarn:b,__meta:C};return I.datetimeFormats=r,I.numberFormats=i,I.__datetimeFormatters=w,I.__numberFormatters=P,__INTLIFY_PROD_DEVTOOLS__&&$v(I,t,C),I}function ti(e,t,n,o,s){const{missing:r,onWarn:i}=e;if(r!==null){const a=r(e,n,t,s);return T.isString(a)?a:t}else return t}function Hn(e,t,n){const o=e;o.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}let lu=eu.__EXTEND_POINT__;const As=()=>++lu,fn={INVALID_ARGUMENT:lu,INVALID_DATE_ARGUMENT:As(),INVALID_ISO_DATE_ARGUMENT:As(),__EXTEND_POINT__:As()};function dn(e){return tu(e,null,void 0)}const Ia=()=>"",dt=e=>T.isFunction(e);function Aa(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:s,messageCompiler:r,fallbackLocale:i,messages:a}=e,[l,u]=io(...t),f=T.isBoolean(u.missingWarn)?u.missingWarn:e.missingWarn,h=T.isBoolean(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,d=T.isBoolean(u.escapeParameter)?u.escapeParameter:e.escapeParameter,c=!!u.resolvedMessage,p=T.isString(u.default)||T.isBoolean(u.default)?T.isBoolean(u.default)?r?l:()=>l:u.default:n?r?l:()=>l:"",g=n||p!=="",m=T.isString(u.locale)?u.locale:e.locale;d&&Zv(u);let[y,_,x]=c?[l,m,a[m]||{}]:cu(e,l,m,i,h,f),E=y,v=l;if(!c&&!(T.isString(E)||dt(E))&&g&&(E=p,v=E),!c&&(!(T.isString(E)||dt(E))||!T.isString(_)))return s?ls:l;let b=!1;const S=()=>{b=!0},w=dt(E)?E:uu(e,l,_,E,v,S);if(b)return E;const P=ty(e,_,x,u),C=Nv(P),I=qv(e,w,C),L=o?o(I,l):I;if(__INTLIFY_PROD_DEVTOOLS__){const O={timestamp:Date.now(),key:T.isString(l)?l:dt(E)?E.key:"",locale:_||(dt(E)?E.locale:""),format:T.isString(E)?E:dt(E)?E.source:"",message:L};O.meta=T.assign({},e.__meta,Qv()||{}),Bv(O)}return L}function Zv(e){T.isArray(e.list)?e.list=e.list.map(t=>T.isString(t)?T.escapeHtml(t):t):T.isObject(e.named)&&Object.keys(e.named).forEach(t=>{T.isString(e.named[t])&&(e.named[t]=T.escapeHtml(e.named[t]))})}function cu(e,t,n,o,s,r){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:u}=e,f=u(e,o,n);let h={},d,c=null;const p="translate";for(let g=0;g<f.length&&(d=f[g],h=i[d]||{},(c=l(h,t))===null&&(c=h[t]),!(T.isString(c)||T.isFunction(c)));g++){const m=ti(e,t,d,r,p);m!==t&&(c=m)}return[c,d,h]}function uu(e,t,n,o,s,r){const{messageCompiler:i,warnHtmlMessage:a}=e;if(dt(o)){const u=o;return u.locale=u.locale||n,u.key=u.key||t,u}if(i==null){const u=()=>o;return u.locale=n,u.key=t,u}const l=i(o,ey(e,n,s,o,a,r));return l.locale=n,l.key=t,l.source=o,l}function qv(e,t,n){return t(n)}function io(...e){const[t,n,o]=e,s={};if(!T.isString(t)&&!T.isNumber(t)&&!dt(t))throw dn(fn.INVALID_ARGUMENT);const r=T.isNumber(t)?String(t):(dt(t),t);return T.isNumber(n)?s.plural=n:T.isString(n)?s.default=n:T.isPlainObject(n)&&!T.isEmptyObject(n)?s.named=n:T.isArray(n)&&(s.list=n),T.isNumber(o)?s.plural=o:T.isString(o)?s.default=o:T.isPlainObject(o)&&T.assign(s,o),[r,s]}function ey(e,t,n,o,s,r){return{warnHtmlMessage:s,onError:i=>{throw r&&r(i),i},onCacheKey:i=>T.generateFormatCacheKey(t,n,i)}}function ty(e,t,n,o){const{modifiers:s,pluralRules:r,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:u,fallbackContext:f}=e,d={locale:t,modifiers:s,pluralRules:r,messages:c=>{let p=i(n,c);if(p==null&&f){const[,,g]=cu(f,c,t,a,l,u);p=i(g,c)}if(T.isString(p)){let g=!1;const y=uu(e,c,t,p,c,()=>{g=!0});return g?Ia:y}else return dt(p)?p:Ia}};return e.processor&&(d.processor=e.processor),o.list&&(d.list=o.list),o.named&&(d.named=o.named),T.isNumber(o.plural)&&(d.pluralIndex=o.plural),d}function ka(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,u,f,h]=ao(...t),d=T.isBoolean(f.missingWarn)?f.missingWarn:e.missingWarn;T.isBoolean(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const c=!!f.part,p=T.isString(f.locale)?f.locale:e.locale,g=i(e,s,p);if(!T.isString(l)||l==="")return new Intl.DateTimeFormat(p,h).format(u);let m={},y,_=null;const x="datetime format";for(let b=0;b<g.length&&(y=g[b],m=n[y]||{},_=m[l],!T.isPlainObject(_));b++)ti(e,l,y,d,x);if(!T.isPlainObject(_)||!T.isString(y))return o?ls:l;let E=`${y}__${l}`;T.isEmptyObject(h)||(E=`${E}__${JSON.stringify(h)}`);let v=a.get(E);return v||(v=new Intl.DateTimeFormat(y,T.assign({},_,h)),a.set(E,v)),c?v.formatToParts(u):v.format(u)}const fu=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function ao(...e){const[t,n,o,s]=e,r={};let i={},a;if(T.isString(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw dn(fn.INVALID_ISO_DATE_ARGUMENT);const u=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(u);try{a.toISOString()}catch{throw dn(fn.INVALID_ISO_DATE_ARGUMENT)}}else if(T.isDate(t)){if(isNaN(t.getTime()))throw dn(fn.INVALID_DATE_ARGUMENT);a=t}else if(T.isNumber(t))a=t;else throw dn(fn.INVALID_ARGUMENT);return T.isString(n)?r.key=n:T.isPlainObject(n)&&Object.keys(n).forEach(l=>{fu.includes(l)?i[l]=n[l]:r[l]=n[l]}),T.isString(o)?r.locale=o:T.isPlainObject(o)&&(i=o),T.isPlainObject(s)&&(i=s),[r.key||"",a,r,i]}function Ma(e,t,n){const o=e;for(const s in n){const r=`${t}__${s}`;o.__datetimeFormatters.has(r)&&o.__datetimeFormatters.delete(r)}}function Fa(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:s,onWarn:r,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,u,f,h]=lo(...t),d=T.isBoolean(f.missingWarn)?f.missingWarn:e.missingWarn;T.isBoolean(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const c=!!f.part,p=T.isString(f.locale)?f.locale:e.locale,g=i(e,s,p);if(!T.isString(l)||l==="")return new Intl.NumberFormat(p,h).format(u);let m={},y,_=null;const x="number format";for(let b=0;b<g.length&&(y=g[b],m=n[y]||{},_=m[l],!T.isPlainObject(_));b++)ti(e,l,y,d,x);if(!T.isPlainObject(_)||!T.isString(y))return o?ls:l;let E=`${y}__${l}`;T.isEmptyObject(h)||(E=`${E}__${JSON.stringify(h)}`);let v=a.get(E);return v||(v=new Intl.NumberFormat(y,T.assign({},_,h)),a.set(E,v)),c?v.formatToParts(u):v.format(u)}const du=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function lo(...e){const[t,n,o,s]=e,r={};let i={};if(!T.isNumber(t))throw dn(fn.INVALID_ARGUMENT);const a=t;return T.isString(n)?r.key=n:T.isPlainObject(n)&&Object.keys(n).forEach(l=>{du.includes(l)?i[l]=n[l]:r[l]=n[l]}),T.isString(o)?r.locale=o:T.isPlainObject(o)&&(i=o),T.isPlainObject(s)&&(i=s),[r.key||"",a,r,i]}function Na(e,t,n){const o=e;for(const s in n){const r=`${t}__${s}`;o.__numberFormatters.has(r)&&o.__numberFormatters.delete(r)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(T.getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1);/*!
* vue-i18n v9.3.0-beta.17
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const ny="9.3.0-beta.17";function ry(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(T.getGlobalThis().__INTLIFY_PROD_DEVTOOLS__=!1)}let hu=eu.__EXTEND_POINT__;const Ve=()=>++hu,Xe={UNEXPECTED_RETURN_TYPE:hu,INVALID_ARGUMENT:Ve(),MUST_BE_CALL_SETUP_TOP:Ve(),NOT_INSLALLED:Ve(),NOT_AVAILABLE_IN_LEGACY_MODE:Ve(),REQUIRED_VALUE:Ve(),INVALID_VALUE:Ve(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ve(),NOT_INSLALLED_WITH_PROVIDE:Ve(),UNEXPECTED_ERROR:Ve(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ve(),BRIDGE_SUPPORT_VUE_2_ONLY:Ve(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ve(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ve(),__EXTEND_POINT__:Ve()};function rt(e,...t){return tu(e,null,void 0)}const co=T.makeSymbol("__translateVNode"),uo=T.makeSymbol("__datetimeParts"),fo=T.makeSymbol("__numberParts"),sy=T.makeSymbol("__setPluralRules");T.makeSymbol("__intlifyMeta");const oy=T.makeSymbol("__injectWithOption");function ho(e){if(!T.isObject(e))return e;for(const t in e)if(T.hasOwn(e,t))if(!t.includes("."))T.isObject(e[t])&&ho(e[t]);else{const n=t.split("."),o=n.length-1;let s=e;for(let r=0;r<o;r++)n[r]in s||(s[n[r]]={}),s=s[n[r]];s[n[o]]=e[t],delete e[t],T.isObject(s[n[o]])&&ho(s[n[o]])}return e}function pu(e,t){const{messages:n,__i18n:o,messageResolver:s,flatJson:r}=t,i=T.isPlainObject(n)?n:T.isArray(o)?{}:{[e]:{}};if(T.isArray(o)&&o.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:u}=a;l?(i[l]=i[l]||{},Zn(u,i[l])):Zn(u,i)}else T.isString(a)&&Zn(JSON.parse(a),i)}),s==null&&r)for(const a in i)T.hasOwn(i,a)&&ho(i[a]);return i}const Cr=e=>!T.isObject(e)||T.isArray(e);function Zn(e,t){if(Cr(e)||Cr(t))throw rt(Xe.INVALID_VALUE);for(const n in e)T.hasOwn(e,n)&&(Cr(e[n])||Cr(t[n])?t[n]=e[n]:Zn(e[n],t[n]))}function gu(e){return e.type}function iy(e,t,n){let o=T.isObject(t.messages)?t.messages:{};"__i18nGlobal"in n&&(o=pu(globalThis.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const s=Object.keys(o);s.length&&s.forEach(r=>{e.mergeLocaleMessage(r,o[r])});{if(T.isObject(t.datetimeFormats)){const r=Object.keys(t.datetimeFormats);r.length&&r.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(T.isObject(t.numberFormats)){const r=Object.keys(t.numberFormats);r.length&&r.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Da(e){return Ee(qt,null,e,0)}const $a="__INTLIFY_META__";let Ba=0;function Ha(e){return(t,n,o,s)=>e(n,o,Ct()||void 0,s)}const ay=()=>{const e=Ct();let t=null;return e&&(t=gu(e)[$a])?{[$a]:t}:null};function mu(e={},t){const{__root:n}=e,o=n===void 0;let s=T.isBoolean(e.inheritLocale)?e.inheritLocale:!0;const r=ye(n&&s?n.locale.value:T.isString(e.locale)?e.locale:ei),i=ye(n&&s?n.fallbackLocale.value:T.isString(e.fallbackLocale)||T.isArray(e.fallbackLocale)||T.isPlainObject(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r.value),a=ye(pu(r.value,e)),l=ye(T.isPlainObject(e.datetimeFormats)?e.datetimeFormats:{[r.value]:{}}),u=ye(T.isPlainObject(e.numberFormats)?e.numberFormats:{[r.value]:{}});let f=n?n.missingWarn:T.isBoolean(e.missingWarn)||T.isRegExp(e.missingWarn)?e.missingWarn:!0,h=n?n.fallbackWarn:T.isBoolean(e.fallbackWarn)||T.isRegExp(e.fallbackWarn)?e.fallbackWarn:!0,d=n?n.fallbackRoot:T.isBoolean(e.fallbackRoot)?e.fallbackRoot:!0,c=!!e.fallbackFormat,p=T.isFunction(e.missing)?e.missing:null,g=T.isFunction(e.missing)?Ha(e.missing):null,m=T.isFunction(e.postTranslation)?e.postTranslation:null,y=n?n.warnHtmlMessage:T.isBoolean(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter;const x=n?n.modifiers:T.isPlainObject(e.modifiers)?e.modifiers:{};let E=e.pluralRules||n&&n.pluralRules,v;v=(()=>{o&&Ta(null);const M={version:ny,locale:r.value,fallbackLocale:i.value,messages:a.value,modifiers:x,pluralRules:E,missing:g===null?void 0:g,missingWarn:f,fallbackWarn:h,fallbackFormat:c,unresolving:!0,postTranslation:m===null?void 0:m,warnHtmlMessage:y,escapeParameter:_,messageResolver:e.messageResolver,__meta:{framework:"vue"}};M.datetimeFormats=l.value,M.numberFormats=u.value,M.__datetimeFormatters=T.isPlainObject(v)?v.__datetimeFormatters:void 0,M.__numberFormatters=T.isPlainObject(v)?v.__numberFormatters:void 0;const F=Xv(M);return o&&Ta(F),F})(),Hn(v,r.value,i.value);function S(){return[r.value,i.value,a.value,l.value,u.value]}const w=_e({get:()=>r.value,set:M=>{r.value=M,v.locale=r.value}}),P=_e({get:()=>i.value,set:M=>{i.value=M,v.fallbackLocale=i.value,Hn(v,r.value,M)}}),C=_e(()=>a.value),I=_e(()=>l.value),L=_e(()=>u.value);function O(){return T.isFunction(m)?m:null}function k(M){m=M,v.postTranslation=M}function D(){return p}function V(M){M!==null&&(g=Ha(M)),p=M,v.missing=g}const j=(M,F,Z,q,re,he)=>{S();let ue;if(__INTLIFY_PROD_DEVTOOLS__)try{Ra(ay()),o||(v.fallbackContext=n?Yv():void 0),ue=M(v)}finally{Ra(null),o||(v.fallbackContext=void 0)}else ue=M(v);if(T.isNumber(ue)&&ue===ls){const[Re,Ze]=F();return n&&d?q(n):re(Re)}else{if(he(ue))return ue;throw rt(Xe.UNEXPECTED_RETURN_TYPE)}};function Y(...M){return j(F=>Reflect.apply(Aa,null,[F,...M]),()=>io(...M),"translate",F=>Reflect.apply(F.t,F,[...M]),F=>F,F=>T.isString(F))}function se(...M){const[F,Z,q]=M;if(q&&!T.isObject(q))throw rt(Xe.INVALID_ARGUMENT);return Y(F,Z,T.assign({resolvedMessage:!0},q||{}))}function ce(...M){return j(F=>Reflect.apply(ka,null,[F,...M]),()=>ao(...M),"datetime format",F=>Reflect.apply(F.d,F,[...M]),()=>Pa,F=>T.isString(F))}function pe(...M){return j(F=>Reflect.apply(Fa,null,[F,...M]),()=>lo(...M),"number format",F=>Reflect.apply(F.n,F,[...M]),()=>Pa,F=>T.isString(F))}function ee(M){return M.map(F=>T.isString(F)||T.isNumber(F)||T.isBoolean(F)?Da(String(F)):F)}const be={normalize:ee,interpolate:M=>M,type:"vnode"};function B(...M){return j(F=>{let Z;const q=F;try{q.processor=be,Z=Reflect.apply(Aa,null,[q,...M])}finally{q.processor=null}return Z},()=>io(...M),"translate",F=>F[co](...M),F=>[Da(F)],F=>T.isArray(F))}function W(...M){return j(F=>Reflect.apply(Fa,null,[F,...M]),()=>lo(...M),"number format",F=>F[fo](...M),()=>[],F=>T.isString(F)||T.isArray(F))}function G(...M){return j(F=>Reflect.apply(ka,null,[F,...M]),()=>ao(...M),"datetime format",F=>F[uo](...M),()=>[],F=>T.isString(F)||T.isArray(F))}function X(M){E=M,v.pluralRules=E}function le(M,F){const Z=T.isString(F)?F:r.value,q=R(Z);return v.messageResolver(q,M)!==null}function xe(M){let F=null;const Z=ru(v,i.value,r.value);for(let q=0;q<Z.length;q++){const re=a.value[Z[q]]||{},he=v.messageResolver(re,M);if(he!=null){F=he;break}}return F}function ae(M){const F=xe(M);return F??(n?n.tm(M)||{}:{})}function R(M){return a.value[M]||{}}function A(M,F){a.value[M]=F,v.messages=a.value}function N(M,F){a.value[M]=a.value[M]||{},Zn(F,a.value[M]),v.messages=a.value}function $(M){return l.value[M]||{}}function U(M,F){l.value[M]=F,v.datetimeFormats=l.value,Ma(v,M,F)}function z(M,F){l.value[M]=T.assign(l.value[M]||{},F),v.datetimeFormats=l.value,Ma(v,M,F)}function Q(M){return u.value[M]||{}}function K(M,F){u.value[M]=F,v.numberFormats=u.value,Na(v,M,F)}function J(M,F){u.value[M]=T.assign(u.value[M]||{},F),v.numberFormats=u.value,Na(v,M,F)}Ba++,n&&T.inBrowser&&(lt(n.locale,M=>{s&&(r.value=M,v.locale=M,Hn(v,r.value,i.value))}),lt(n.fallbackLocale,M=>{s&&(i.value=M,v.fallbackLocale=M,Hn(v,r.value,i.value))}));const H={id:Ba,locale:w,fallbackLocale:P,get inheritLocale(){return s},set inheritLocale(M){s=M,M&&n&&(r.value=n.locale.value,i.value=n.fallbackLocale.value,Hn(v,r.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:C,get modifiers(){return x},get pluralRules(){return E||{}},get isGlobal(){return o},get missingWarn(){return f},set missingWarn(M){f=M,v.missingWarn=f},get fallbackWarn(){return h},set fallbackWarn(M){h=M,v.fallbackWarn=h},get fallbackRoot(){return d},set fallbackRoot(M){d=M},get fallbackFormat(){return c},set fallbackFormat(M){c=M,v.fallbackFormat=c},get warnHtmlMessage(){return y},set warnHtmlMessage(M){y=M,v.warnHtmlMessage=M},get escapeParameter(){return _},set escapeParameter(M){_=M,v.escapeParameter=M},t:Y,getLocaleMessage:R,setLocaleMessage:A,mergeLocaleMessage:N,getPostTranslationHandler:O,setPostTranslationHandler:k,getMissingHandler:D,setMissingHandler:V,[sy]:X};return H.datetimeFormats=I,H.numberFormats=L,H.rt=se,H.te=le,H.tm=ae,H.d=ce,H.n=pe,H.getDateTimeFormat=$,H.setDateTimeFormat=U,H.mergeDateTimeFormat=z,H.getNumberFormat=Q,H.setNumberFormat=K,H.mergeNumberFormat=J,H[oy]=e.__injectWithOption,H[co]=B,H[uo]=G,H[fo]=W,H}const ni={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function ly({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((o,s)=>[...o,...s.type===Ne?s.children:[s]],[]):t.reduce((n,o)=>{const s=e[o];return s&&(n[o]=s()),n},{})}function vu(e){return Ne}const cy=Be({name:"i18n-t",props:T.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>T.isNumber(e)||!isNaN(e)}},ni),setup(e,t){const{slots:n,attrs:o}=t,s=e.i18n||kn({useScope:e.scope,__useComponent:!0});return()=>{const r=Object.keys(n).filter(h=>h!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=T.isString(e.plural)?+e.plural:e.plural);const a=ly(t,r),l=s[co](e.keypath,a,i),u=T.assign({},o),f=T.isString(e.tag)||T.isObject(e.tag)?e.tag:vu();return Ye(f,u,l)}}}),ja=cy;function uy(e){return T.isArray(e)&&!T.isString(e[0])}function yu(e,t,n,o){const{slots:s,attrs:r}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),T.isString(e.format)?i.key=e.format:T.isObject(e.format)&&(T.isString(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((d,c)=>n.includes(c)?T.assign({},d,{[c]:e.format[c]}):d,{}));const l=o(e.value,i,a);let u=[i.key];T.isArray(l)?u=l.map((d,c)=>{const p=s[d.type],g=p?p({[d.type]:d.value,index:c,parts:l}):[d.value];return uy(g)&&(g[0].key=`${d.type}-${c}`),g}):T.isString(l)&&(u=[l]);const f=T.assign({},r),h=T.isString(e.tag)||T.isObject(e.tag)?e.tag:vu();return Ye(h,f,u)}}const fy=Be({name:"i18n-n",props:T.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},ni),setup(e,t){const n=e.i18n||kn({useScope:"parent",__useComponent:!0});return yu(e,t,du,(...o)=>n[fo](...o))}}),Ua=fy,dy=Be({name:"i18n-d",props:T.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},ni),setup(e,t){const n=e.i18n||kn({useScope:"parent",__useComponent:!0});return yu(e,t,fu,(...o)=>n[uo](...o))}}),Va=dy;function hy(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function py(e){const t=i=>{const{instance:a,modifiers:l,value:u}=i;if(!a||!a.$)throw rt(Xe.UNEXPECTED_ERROR);const f=hy(e,a.$),h=Wa(u);return[Reflect.apply(f.t,f,[...Ka(h)]),f]};return{created:(i,a)=>{const[l,u]=t(a);T.inBrowser&&e.global===u&&(i.__i18nWatcher=lt(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=u,i.textContent=l},unmounted:i=>{T.inBrowser&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,u=Wa(a);i.textContent=Reflect.apply(l.t,l,[...Ka(u)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Wa(e){if(T.isString(e))return{path:e};if(T.isPlainObject(e)){if(!("path"in e))throw rt(Xe.REQUIRED_VALUE,"path");return e}else throw rt(Xe.INVALID_VALUE)}function Ka(e){const{path:t,locale:n,args:o,choice:s,plural:r}=e,i={},a=o||{};return T.isString(n)&&(i.locale=n),T.isNumber(s)&&(i.plural=s),T.isNumber(r)&&(i.plural=r),[t,a,i]}function gy(e,t,...n){const o=T.isPlainObject(n[0])?n[0]:{},s=!!o.useI18nComponentName;(T.isBoolean(o.globalInstall)?o.globalInstall:!0)&&(e.component(s?"i18n":ja.name,ja),e.component(Ua.name,Ua),e.component(Va.name,Va)),e.directive("t",py(t))}const my=T.makeSymbol("global-vue-i18n");function vy(e={},t){const n=T.isBoolean(e.globalInjection)?e.globalInjection:!0,o=!0,s=new Map,[r,i]=yy(e),a=T.makeSymbol("");function l(h){return s.get(h)||null}function u(h,d){s.set(h,d)}function f(h){s.delete(h)}{const h={get mode(){return"composition"},get allowComposition(){return o},async install(d,...c){if(d.__VUE_I18N_SYMBOL__=a,d.provide(d.__VUE_I18N_SYMBOL__,h),T.isPlainObject(c[0])){const g=c[0];h.__composerExtend=g.__composerExtend,h.__vueI18nExtend=g.__vueI18nExtend}n&&Py(d,h.global),gy(d,h,...c);const p=d.unmount;d.unmount=()=>{h.dispose(),p()}},get global(){return i},dispose(){r.stop()},__instances:s,__getInstance:l,__setInstance:u,__deleteInstance:f};return h}}function kn(e={}){const t=Ct();if(t==null)throw rt(Xe.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw rt(Xe.NOT_INSLALLED);const n=_y(t),o=wy(n),s=gu(t),r=xy(e,s);if(r==="global")return iy(o,e,s),o;if(r==="parent"){let l=by(n,t,e.__useComponent);return l==null&&(l=o),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=T.assign({},e);"__i18n"in s&&(l.__i18n=s.__i18n),o&&(l.__root=o),a=mu(l),i.__composerExtend&&i.__composerExtend(a),Ey(i,t),i.__setInstance(t,a)}return a}function yy(e,t,n){const o=hl();{const s=o.run(()=>mu(e));if(s==null)throw rt(Xe.UNEXPECTED_ERROR);return[o,s]}}function _y(e){{const t=je(e.isCE?my:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw rt(e.isCE?Xe.NOT_INSLALLED_WITH_PROVIDE:Xe.UNEXPECTED_ERROR);return t}}function xy(e,t){return T.isEmptyObject(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function wy(e){return e.mode==="composition"?e.global:e.global.__composer}function by(e,t,n=!1){let o=null;const s=t.root;let r=t.parent;for(;r!=null;){const i=e;if(e.mode==="composition"&&(o=i.__getInstance(r)),o!=null||s===r)break;r=r.parent}return o}function Ey(e,t,n){mt(()=>{},t),Bo(()=>{e.__deleteInstance(t)},t)}const Sy=["locale","fallbackLocale","availableLocales"],Cy=["t","rt","d","n","tm","te"];function Py(e,t){const n=Object.create(null);Sy.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s)throw rt(Xe.UNEXPECTED_ERROR);const r=Le(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,Cy.forEach(o=>{const s=Object.getOwnPropertyDescriptor(t,o);if(!s||!s.value)throw rt(Xe.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,s)})}Gv(Rv);Jv(ru);ry();if(__INTLIFY_PROD_DEVTOOLS__){const e=T.getGlobalThis();e.__INTLIFY__=!0,Dv(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ly=!0,_u={PREFIX:"prefix",PREFIX_EXCEPT_DEFAULT:"prefix_except_default",PREFIX_AND_DEFAULT:"prefix_and_default",NO_PREFIX:"no_prefix"},Ry="",Ty=_u.PREFIX_EXCEPT_DEFAULT,Oy=!1,Iy="___",Ay="default",ky="ltr",My="",xu="";/*!
* shared v9.3.0-beta.16
* (c) 2023 kazuya kawaguchi
* Released under the MIT License.
*/const Fy=(e,t=!1)=>t?Symbol.for(e):Symbol(e),cs=Object.assign,wu=Array.isArray,po=e=>typeof e=="function",Cn=e=>typeof e=="string",Ny=e=>typeof e=="symbol",ri=e=>e!==null&&typeof e=="object",Dy=/\/$|\/\?/;function go(e="",t=!1){return t?Dy.test(e):e.endsWith("/")}function $y(e="",t=!1){if(!t)return(go(e)?e.slice(0,-1):e)||"/";if(!go(e,!0))return e||"/";const[n,...o]=e.split("?");return(n.slice(0,-1)||"/")+(o.length>0?`?${o.join("?")}`:"")}function By(e="",t=!1){if(!t)return e.endsWith("/")?e:e+"/";if(go(e,!0))return e||"/";const[n,...o]=e.split("?");return n+"/"+(o.length>0?`?${o.join("?")}`:"")}const Hy=typeof window<"u";function bu(e,t){typeof console<"u"&&(console.warn("[vue-i18n-routing] "+e),t&&console.warn(t.stack))}function jy(e){e=e||[];const t=[];for(const n of e)Cn(n)?t.push({code:n}):t.push(n);return t}function rn(e){return e!=null&&"global"in e&&"mode"in e}function Mn(e){return e!=null&&!("__composer"in e)&&Le(e.locale)}function Dt(e){return e!=null&&"__composer"in e}function fr(e){return e!=null&&!("__composer"in e)&&!Le(e.locale)}function us(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function ir(e){return rn(e)?Mn(e.global)?e.global:e.global.__composer:Dt(e)?e.__composer:e}function fs(e){const t=rn(e)?e.global:e;return Mn(t)?t.locale.value:(fr(t)||Dt(t)||us(t),t.locale)}function Uy(e){const t=rn(e)?e.global:e;return Mn(t)?t.locales.value:(fr(t)||Dt(t)||us(t),t.locales)}function Vy(e){const t=rn(e)?e.global:e;return Mn(t)?t.localeCodes.value:(fr(t)||Dt(t)||us(t),t.localeCodes)}function Eu(e,t){const n=rn(e)?e.global:e;if(Mn(n))n.locale.value=t;else if(fr(n)||Dt(n)||us(n))n.locale=t;else throw new Error("TODO:")}function Su(e){return Cn(e)?e:Ny(e)?e.toString():"(null)"}function za(e,t,{defaultLocale:n,strategy:o,routesNameSeparator:s,defaultLocaleRouteNameSuffix:r}){let i=Su(e)+(o==="no_prefix"?"":s+t);return t===n&&o==="prefix_and_default"&&(i+=s+r),i}function Ga(e,t){return po(e)?e(t):e}function Wy(e,t){const n=[];for(const[o,s]of t.entries()){const r=e.find(i=>i.iso.toLowerCase()===s.toLowerCase());if(r){n.push({code:r.code,score:1-o/t.length});break}}for(const[o,s]of t.entries()){const r=s.split("-")[0].toLowerCase(),i=e.find(a=>a.iso.split("-")[0].toLowerCase()===r);if(i){n.push({code:i.code,score:.999-o/t.length});break}}return n}const Ky=Wy;function zy(e,t){return e.score===t.score?t.code.length-e.code.length:t.score-e.score}const Gy=zy;function Jy(e,t,{matcher:n=Ky,comparer:o=Gy}={}){const s=[];for(const i of e){const{code:a}=i,l=i.iso||a;s.push({code:a,iso:l})}const r=n(s,t);return r.length>1&&r.sort(o),r.length?r[0].code:""}function Ut(e){return function(){return Reflect.apply(e,{getRouteBaseName:this.getRouteBaseName,localePath:this.localePath,localeRoute:this.localeRoute,localeLocation:this.localeLocation,resolveRoute:this.resolveRoute,switchLocalePath:this.switchLocalePath,localeHead:this.localeHead,i18n:this.$i18n,route:this.$route,router:this.$router},arguments)}}function Qy(e,{locales:t=[],localeCodes:n=[],baseUrl:o=My,hooks:s={},context:r={}}={}){const i=hl(),a=e.install;return e.install=(l,...u)=>{const f=Zy(u[0])?cs({},u[0]):{inject:!0};f.inject==null&&(f.inject=!0);const h=f.__composerExtend;if(f.__composerExtend=g=>{const m=ir(e);g.locales=_e(()=>m.locales.value),g.localeCodes=_e(()=>m.localeCodes.value),g.baseUrl=_e(()=>m.baseUrl.value),po(h)&&Reflect.apply(h,f,[g])},Dt(e.global)){const g=f.__vueI18nExtend;f.__vueI18nExtend=m=>{Ja(m,s.onExtendVueI18n),po(g)&&Reflect.apply(g,f,[m])}}u[0]=f,Reflect.apply(a,e,[l,...u]);const d=ir(e);i.run(()=>Yy(d,{locales:t,localeCodes:n,baseUrl:o,hooks:s,context:r})),Dt(e.global)&&Ja(e.global,s.onExtendVueI18n);const c=l,p=e.mode==="composition"?c.config.globalProperties.$i18n:null;if(p&&Xy(p,d,s.onExtendExportedGlobal),f.inject&&l.mixin({methods:{resolveRoute:Ut(hs),localePath:Ut(ds),localeRoute:Ut(si),localeLocation:Ut(i0),switchLocalePath:Ut(ar),getRouteBaseName:Ut(Pn),localeHead:Ut(Lu)}}),c.unmount){const g=c.unmount;c.unmount=()=>{i.stop(),g()}}},i}function Yy(e,t){const{locales:n,localeCodes:o,baseUrl:s,context:r}=t,i=ye(n),a=ye(o),l=ye("");e.locales=_e(()=>i.value),e.localeCodes=_e(()=>a.value),e.baseUrl=_e(()=>l.value),Hy?lt(e.locale,()=>{l.value=Ga(s,r)},{immediate:!0}):l.value=Ga(s,r),t.hooks&&t.hooks.onExtendComposer&&t.hooks.onExtendComposer(e)}function Xy(e,t,n){const o=[{locales:{get(){return t.locales.value}},localeCodes:{get(){return t.localeCodes.value}},baseUrl:{get(){return t.baseUrl.value}}}];n&&o.push(n(t));for(const s of o)for(const[r,i]of Object.entries(s))Object.defineProperty(e,r,i)}function Ja(e,t){const n=ir(e),o=[{locales:{get(){return n.locales.value}},localeCodes:{get(){return n.localeCodes.value}},baseUrl:{get(){return n.baseUrl.value}}}];t&&o.push(t(n));for(const s of o)for(const[r,i]of Object.entries(s))Object.defineProperty(e,r,i)}function Zy(e){return ri(e)&&("inject"in e||"__composerExtend"in e||"__vueI18nExtend"in e)}const mo=Fy("vue-i18n-routing-gor");function qy(e,t){e[mo]?bu("already registered global options"):e[mo]=t}function e0(e){var t;return(t=e[mo])!=null?t:{}}function vo(e){return new RegExp(`^/(${e.join("|")})(?:/|$)`,"i")}function t0(e,t,n){const o=`(${e.join("|")})`,s=`(?:${t}${n})?`,r=new RegExp(`${t}${o}${s}$`,"i"),i=vo(e);return l=>{if(ri(l)){if(l.name){const f=(Cn(l.name)?l.name:l.name.toString()).match(r);if(f&&f.length>1)return f[1]}else if(l.path){const u=l.path.match(i);if(u&&u.length>1)return u[1]}}else if(Cn(l)){const u=l.match(i);if(u&&u.length>1)return u[1]}return""}}function dr(e,t,{defaultLocale:n=Ry,defaultDirection:o=ky,defaultLocaleRouteNameSuffix:s=Ay,routesNameSeparator:r=Iy,strategy:i=Ty,trailingSlash:a=Oy,localeCodes:l=[],prefixable:u=Cu,switchLocalePathIntercepter:f=Pu,dynamicRouteParamsKey:h=xu}={}){const d=e0(e);return{defaultLocale:t.defaultLocale||d.defaultLocale||n,defaultDirection:t.defaultDirection||d.defaultDirection||o,defaultLocaleRouteNameSuffix:t.defaultLocaleRouteNameSuffix||d.defaultLocaleRouteNameSuffix||s,routesNameSeparator:t.routesNameSeparator||d.routesNameSeparator||r,strategy:t.strategy||d.strategy||i,trailingSlash:t.trailingSlash||d.trailingSlash||a,localeCodes:t.localeCodes||d.localeCodes||l,prefixable:t.prefixable||d.prefixable||u,switchLocalePathIntercepter:t.switchLocalePathIntercepter||d.switchLocalePathIntercepter||f,dynamicRouteParamsKey:t.dynamicRouteParamsKey||d.dynamicRouteParamsKey||h}}function n0(e,t){return[e.slice(0,t),e.slice(t)]}function r0(e,t,n,o){if(n==="prefix"){if(wu(t.matched)&&t.matched.length>0)return t.matched[0];const[s,r]=n0(t.path,1),i=`${s}${o}${r===""?r:`/${r}`}`,a=e.options.routes.find(l=>l.path===i);if(a==null)return t;{const l=cs({},a);return l.path=i,e.resolve(l)}}else return e.resolve(t)}const s0=new Set(["prefix_and_default","prefix_except_default"]);function o0(e){const{currentLocale:t,defaultLocale:n,strategy:o}=e;return!(t===n&&s0.has(o))&&o!=="no_prefix"}const Cu=o0;function Pn(e){const t=this.router,{routesNameSeparator:n}=dr(t,this),o=e!=null?Le(e)?ie(e):e:this.route;return o==null||!o.name?void 0:Su(o.name).split(n)[0]}function ds(e,t){const n=hs.call(this,e,t);return n==null?"":n.redirectedFrom||n.fullPath}function si(e,t){const n=hs.call(this,e,t);return n??void 0}function i0(e,t){const n=hs.call(this,e,t);return n??void 0}function hs(e,t){const n=this.router,o=this.i18n,s=t||fs(o),{routesNameSeparator:r,defaultLocale:i,defaultLocaleRouteNameSuffix:a,strategy:l,trailingSlash:u,prefixable:f}=dr(n,this);let h=e;Cn(e)&&(h[0]==="/"?h={path:e}:h={name:e});let d=cs({},h);if(d.path&&!d.name){let c=null;try{c=r0(n,d,l,s)}catch{}const p=c,g=Pn.call(this,p);Cn(g)?(d={name:za(g,s,{defaultLocale:i,strategy:l,routesNameSeparator:r,defaultLocaleRouteNameSuffix:a}),params:p.params,query:p.query,hash:p.hash},d.state=p.state):(f({currentLocale:s,defaultLocale:i,strategy:l})&&(d.path=`/${s}${d.path}`),d.path=u?By(d.path,!0):$y(d.path,!0))}else!d.name&&!d.path&&(d.name=Pn.call(this,this.route)),d.name=za(d.name,s,{defaultLocale:i,strategy:l,routesNameSeparator:r,defaultLocaleRouteNameSuffix:a});try{const c=n.resolve(d);return(Ly?c.name:c.route.name)?c:n.resolve(e)}catch(c){if(c.type===1)return null}}const Pu=e=>e;function a0(e,t){const n={};if(t===xu)return n;const o=e.meta;return Le(o)?o.value[t]||n:o[t]||n}function ar(e){const t=this.route,n=Pn.call(this,t);if(!n)return"";const{switchLocalePathIntercepter:o,dynamicRouteParamsKey:s}=dr(this.router,this),{params:r,...i}=t,a=a0(t,s)[e]||{},l={name:n,params:{...r,...a}},u=cs({},i,l);let f=ds.call(this,u,e);return f=o(f,e),f}function Lu({addDirAttribute:e=!1,addSeoAttributes:t=!1,identifierAttribute:n="hid"}={}){const o=this.router,s=this.i18n,{defaultDirection:r}=dr(o,this),i={htmlAttrs:{},link:[],meta:[]};if(s.locales==null||s.baseUrl==null)return i;const a=fs(s),l=Uy(s),u=jy(l).find(d=>d.code===a)||{code:a},f=u.iso,h=u.dir||r;return e&&(i.htmlAttrs.dir=h),t&&a&&s.locales&&(f&&(i.htmlAttrs.lang=f),l0.call(this,l,ie(s.baseUrl),i.link,n),c0.call(this,ie(s.baseUrl),i.link,i.meta,n,t),u0(u,f,i.meta,n),f0(l,f,i.meta,n)),i}function l0(e,t,n,o){const s=this.router,{defaultLocale:r,strategy:i}=dr(s,this);if(i===_u.NO_PREFIX)return;const a=new Map;for(const l of e){const u=l.iso;if(!u){bu("Locale ISO code is required to generate alternate link");continue}const[f,h]=u.split("-");f&&h&&(l.isCatchallLocale||!a.has(f))&&a.set(f,l),a.set(u,l)}for(const[l,u]of a.entries()){const f=ar.call(this,u.code);f&&n.push({[o]:`i18n-alt-${l}`,rel:"alternate",href:yo(f,t),hreflang:l})}if(r){const l=ar.call(this,r);l&&n.push({[o]:"i18n-xd",rel:"alternate",href:yo(l,t),hreflang:"x-default"})}}function c0(e,t,n,o,s){const r=this.route,i=si.call(this,{...r,name:Pn.call(this,r)});if(i){let a=yo(i.path,e);const l=ri(s)&&s.canonicalQueries||[];if(l.length){const u=i.query,f=new URLSearchParams;for(const d of l)if(d in u){const c=u[d];wu(c)?c.forEach(p=>f.append(d,p||"")):f.append(d,c||"")}const h=f.toString();h&&(a=`${a}?${h}`)}t.push({[o]:"i18n-can",rel:"canonical",href:a}),n.push({[o]:"i18n-og-url",property:"og:url",content:a})}}function u0(e,t,n,o){e&&t&&n.push({[o]:"i18n-og",property:"og:locale",content:Ru(t)})}function f0(e,t,n,o){const s=e.filter(r=>{const i=r.iso;return i&&i!==t});if(s.length){const r=s.map(i=>({[o]:`i18n-og-alt-${i.iso}`,property:"og:locale:alternate",content:Ru(i.iso)}));n.push(...r)}}function Ru(e){return(e||"").replace(/-/g,"_")}function yo(e,t){return e.match(/^https?:\/\//)?e:t+e}function Tu(e,t){const{router:n,route:o,i18n:s,defaultLocale:r,strategy:i,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:u}=e;return function(...f){return Reflect.apply(t,{router:n,route:o,i18n:s,defaultLocale:r,strategy:i,defaultLocaleRouteNameSuffix:a,trailingSlash:l,routesNameSeparator:u},f)}}function px({router:e=zc(),route:t=Qo(),i18n:n=kn(),defaultLocale:o=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:r=void 0,strategy:i=void 0,trailingSlash:a=void 0}={}){return Tu({router:e,route:t,i18n:n,defaultLocale:o,defaultLocaleRouteNameSuffix:s,routesNameSeparator:r,strategy:i,trailingSlash:a},ds)}function d0({router:e=zc(),route:t=Qo(),i18n:n=kn(),defaultLocale:o=void 0,defaultLocaleRouteNameSuffix:s=void 0,routesNameSeparator:r=void 0,strategy:i=void 0,trailingSlash:a=void 0}={}){return Tu({router:e,route:t,i18n:n,defaultLocale:o,defaultLocaleRouteNameSuffix:s,routesNameSeparator:r,strategy:i,trailingSlash:a},ar)}const Vt=["en","it"],h0={en:[{key:"../locales/en-US/general.ts",load:()=>Pe(()=>import("./general.9b34ada0.js"),[],import.meta.url)},{key:"../locales/en-US/projects.ts",load:()=>Pe(()=>import("./projects.9b521fa7.js"),[],import.meta.url)},{key:"../locales/en-US/resume.ts",load:()=>Pe(()=>import("./resume.bbd42da4.js"),[],import.meta.url)}],it:[{key:"../locales/it-IT/general.ts",load:()=>Pe(()=>import("./general.039c7ac0.js"),[],import.meta.url)},{key:"../locales/it-IT/projects.ts",load:()=>Pe(()=>import("./projects.adcd1a73.js"),[],import.meta.url)},{key:"../locales/it-IT/resume.ts",load:()=>Pe(()=>import("./resume.2564331f.js"),[],import.meta.url)}]},p0=Object({en:[],it:[]}),g0=async e=>{const t=Object({});return t.experimental=Object({jsTsFormatResource:!1}),t.precompile=Object({strictMessage:!0,escapeHtml:!1}),t.vueI18n=Object({}),t.locales=[Object({code:"en",iso:"en-US",name:"English",files:["en-US/general.ts","en-US/projects.ts","en-US/resume.ts"]}),Object({code:"it",iso:"it-IT",name:"Italiano",files:["it-IT/general.ts","it-IT/projects.ts","it-IT/resume.ts"]})],t.defaultLocale="en",t.defaultDirection="ltr",t.routesNameSeparator="___",t.trailingSlash=!1,t.defaultLocaleRouteNameSuffix="default",t.strategy="prefix",t.lazy=!0,t.langDir="locales",t.rootRedirect=null,t.detectBrowserLanguage=Object({alwaysRedirect:!0,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"locale",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0}),t.differentDomains=!1,t.baseUrl="",t.dynamicRouteParams=!1,t.customRoutes="page",t.pages=Object({}),t.skipSettingLocaleOnNavigate=!1,t.types="composition",t.debug=!1,t},Je=Object({experimental:Object({jsTsFormatResource:!1}),precompile:Object({strictMessage:!0,escapeHtml:!1}),vueI18n:"",locales:[],defaultLocale:"",defaultDirection:"ltr",routesNameSeparator:"___",trailingSlash:!1,defaultLocaleRouteNameSuffix:"default",strategy:"prefix_except_default",lazy:!1,langDir:null,rootRedirect:null,detectBrowserLanguage:Object({alwaysRedirect:!1,cookieCrossOrigin:!1,cookieDomain:null,cookieKey:"i18n_redirected",cookieSecure:!1,fallbackLocale:"",redirectOn:"root",useCookie:!0}),differentDomains:!1,baseUrl:"",dynamicRouteParams:!1,customRoutes:"page",pages:Object({}),skipSettingLocaleOnNavigate:!1,types:"composition",debug:!1}),Or=Object({__normalizedLocales:[Object({code:"en",iso:"en-US",name:"English",files:["en-US/general.ts","en-US/projects.ts","en-US/resume.ts"]}),Object({code:"it",iso:"it-IT",name:"Italiano",files:["it-IT/general.ts","it-IT/projects.ts","it-IT/resume.ts"]})]}),Ou="@nuxtjs/i18n";/*! js-cookie v3.0.5 | MIT */function Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var m0={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function _o(e,t){function n(s,r,i){if(!(typeof document>"u")){i=Pr({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var l in i)i[l]&&(a+="; "+l,i[l]!==!0&&(a+="="+i[l].split(";")[0]));return document.cookie=s+"="+e.write(r,s)+a}}function o(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var r=document.cookie?document.cookie.split("; "):[],i={},a=0;a<r.length;a++){var l=r[a].split("="),u=l.slice(1).join("=");try{var f=decodeURIComponent(l[0]);if(i[f]=e.read(u,f),s===f)break}catch{}}return s?i[s]:i}}return Object.create({set:n,get:o,remove:function(s,r){n(s,"",Pr({},r,{expires:-1}))},withAttributes:function(s){return _o(this.converter,Pr({},this.attributes,s))},withConverter:function(s){return _o(Pr({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Iu=_o(m0,{path:"/"});function Wr(e){return Ou+" "+e}function v0(e){return e!=null&&("__VUE_I18N_BRIDGE__"in e||"_sync"in e)}function hr(e,t,...n){const o=rn(e)?e.global:e,[s,r]=[o,o[t]];return Reflect.apply(r,s,[...n])}function y0(e,t){const n=rn(e)?e.global:e;return Mn(n)?n[t].value:(fr(n)||Dt(n)||v0(n),n[t])}function Qa(e,t,n){Object.defineProperty(e,t,{get:()=>n})}function _0(e,t){return function(){return Reflect.apply(t,{i18n:e.$i18n,getRouteBaseName:e.$getRouteBaseName,localePath:e.$localePath,localeRoute:e.$localeRoute,switchLocalePath:e.$switchLocalePath,localeHead:e.$localeHead,route:e.$router.currentRoute.value,router:e.$router},arguments)}}function Au(e,t,n){for(const o in e)T.isObject(e[o])?(T.isObject(t[o])||(t[o]={}),Au(e[o],t[o],n)):n?n(e[o],t[o])&&(t[o]=e[o]):t[o]=e[o]}async function xo(e,t,n){var r,i;const o=(r=e.$config.public)==null?void 0:r.i18n;let s=null;try{const a=await t().then(l=>l.default||l);T.isFunction(a)?(i=o.experimental)!=null&&i.jsTsFormatResource?s=await a(e,n).then(l=>l.default||l):console.warn(Wr("Not support js / ts extension format as default. you can do enable with `i18n.experimental.jsTsFormatResource: true` (experimental)")):s=a}catch(a){console.error(Wr("Failed locale loading: "+a.message))}return s}const Lr=[],an=new Map;async function Kr(e,t,n){if(Lr.includes(t))Lr.includes(t)||console.warn(Wr("Could not find "+t+" locale code in localeMessages"));else{const o=h0[t];if(o!=null){if(o.length===1){const{key:s,load:r}=o[0];let i=null;an.has(s)?i=an.get(s):(i=await xo(e,r,t),i!=null&&an.set(s,i)),i!=null&&(n(t,i),Lr.push(t))}else if(o.length>1){const s={};for(const{key:r,load:i}of o){let a=null;an.has(r)?a=an.get(r):(a=await xo(e,i,t),a!=null&&an.set(r,a)),a!=null&&Au(a,s)}n(t,s),Lr.push(t)}}}}const Ya=[];async function x0(e,t,n){if(!Ya.includes(t)){const o=p0[t]||[];for(const s of o){const r=await xo(e,s,t);r!=null&&(n(t,r),Ya.push(t))}}}function ku(e,t){let n;return navigator.languages&&(n=Jy(e.__normalizedLocales,navigator.languages)),n}function oi(e,{useCookie:t=Je.detectBrowserLanguage.useCookie,cookieKey:n=Je.detectBrowserLanguage.cookieKey,localeCodes:o=[]}={}){if(t){let s;if(s=Iu.get(n),s&&o.includes(s))return s}}function w0(e,t,{useCookie:n=Je.detectBrowserLanguage.useCookie,cookieKey:o=Je.detectBrowserLanguage.cookieKey,cookieDomain:s=Je.detectBrowserLanguage.cookieDomain,cookieSecure:r=Je.detectBrowserLanguage.cookieSecure,cookieCrossOrigin:i=Je.detectBrowserLanguage.cookieCrossOrigin}={}){if(!n)return;const a=new Date,l={expires:new Date(a.setDate(a.getDate()+365)),path:"/",sameSite:i?"none":"lax",secure:i||r};s&&(l.domain=s),Iu.set(o,e,l)}const Mu={locale:"",stat:!1,reason:"unknown",from:"unknown"};function Fu(e,t,n,o,s=[],r="",i){const{strategy:a}=n;if(a==="no_prefix"&&i==="ssg_ignore")return{locale:"",stat:!0,reason:"detect_ignore_on_ssg"};const{redirectOn:l,alwaysRedirect:u,useCookie:f,fallbackLocale:h}=n.detectBrowserLanguage,d=T.isString(e)?e:e.path;if(a!=="no_prefix"){if(l==="root"){if(d!=="/")return{locale:"",stat:!1,reason:"not_redirect_on_root"}}else if(l==="no prefix"&&!u&&d.match(vo(s)))return{locale:"",stat:!1,reason:"not_redirect_on_no_prefix"}}let c="unknown",p,g;f&&(g=p=oi(t,{...n.detectBrowserLanguage,localeCodes:s}),c="cookie"),g||(g=ku(o),c="navigator_or_header");const m=g||h;!g&&h&&(c="fallback");const y=r||n.vueI18n.locale;if(m&&(!f||u||!p)){if(a==="no_prefix")return{locale:m,stat:!0,from:c};if(m!==y)return{locale:m,stat:!0,from:c};if(u){const _=d==="/",x=l==="all",E=l==="no prefix"&&!d.match(vo(s));if(_||x||E)return{locale:m,stat:!0,from:c}}}return i==="ssg_setup"&&m?{locale:m,stat:!0,from:c}:{locale:"",stat:!1,reason:"not_found_match"}}function b0(){let e;return e=window.location.host,e}function E0(e){let t=b0()||"";if(t){const n=e.find(o=>o.domain===t);if(n)return n.code;t=""}return t}function Nu(e,t,n){const o=t.find(s=>s.code===e);if(o&&o.domain){if(In(o.domain))return o.domain;let s;return s=window.location.protocol.split(":")[0],s+"://"+o.domain}console.warn(Wr("Could not find domain name for locale "+e))}function S0(e,t){return hr(e,"setLocale",t)}function C0(e,t){return hr(e,"setLocaleCookie",t)}function Du(e,t,n){return hr(e,"mergeLocaleMessage",t,n)}function P0(e,t,n,o,s){return hr(e,"onBeforeLanguageSwitch",t,n,o,s)}function L0(e,t,n){return hr(e,"onLanguageSwitched",t,n)}function $u(e,t){let n=[];if(T.isArray(e))n=e;else if(T.isObject(e)){const o=[...t,"default"];for(const s of o)e[s]&&(n=[...n,...e[s].filter(Boolean)])}else T.isString(e)&&t.every(o=>o!==e)&&n.push(e);return n}async function R0(e,t,n){const{defaultLocale:o,initialLocale:s,localeCodes:r,fallbackLocale:i,langDir:a,lazy:l}=n,u=(f,h)=>{const d=t[f]||{};t[f]={...d,...h}};if(a){if(l&&i){const h=$u(i,[o,s]);await Promise.all(h.map(d=>Kr(e,d,u)))}const f=l?[...new Set().add(o).add(s)]:r;await Promise.all(f.map(h=>Kr(e,h,u)))}return t}async function Bu(e,t,n){await x0(e,n,(o,s)=>Du(t,o,s))}async function Xa(e,t,n,{useCookie:o=Je.detectBrowserLanguage.useCookie,skipSettingLocaleOnNavigate:s=Je.skipSettingLocaleOnNavigate,differentDomains:r=Je.differentDomains,initial:i=!1,lazy:a=!1,langDir:l=null}={}){let u=!1;const f=fs(n);if(!e)return[u,f];if(!i&&r)return[u,f];if(f===e)return[u,f];const h=await P0(n,f,e,i,t),d=Vy(n);if(h&&d&&d.includes(h)){if(h===f)return[u,f];e=h}if(l){const c=y0(n,"fallbackLocale");if(a){const p=(g,m)=>Du(n,g,m);if(c){const g=$u(c,[e]);await Promise.all(g.map(m=>Kr(t,m,p)))}await Kr(t,e,p)}}return await Bu(t,n,e),s?[u,f]:(o&&C0(n,e),Eu(n,e),await L0(n,f,e),u=!0,[u,f])}function Za(e,t,n,o,s,r,i=[],a="normal"){const{strategy:l,defaultLocale:u,differentDomains:f}=o,h=T.isFunction(s)?s():s,{locale:d,stat:c,reason:p,from:g}=o.detectBrowserLanguage?Fu(e,t,o,Or,i,h,a):Mu;if(p==="detect_ignore_on_ssg")return h;let m=d;return m||(f?m=E0(r):l!=="no_prefix"?m=n(e):o.detectBrowserLanguage||(m=h)),!m&&o.detectBrowserLanguage&&o.detectBrowserLanguage.useCookie&&(m=oi(t,{...o.detectBrowserLanguage,localeCodes:i})),m||(m=u||""),m}function qa(e,t,n,o,s){const{strategy:r,defaultLocale:i,differentDomains:a}=s;let l="";if(!F0(e))return l;if(!a&&r!=="no_prefix"&&(o(e)!==n||r==="prefix_and_default"&&n===i)){const{fullPath:u}=e,f=decodeURI(u),h=t.$switchLocalePath(n)||t.$localePath(u,n);T.isString(h)&&h&&h!==u&&h!==f&&!h.startsWith("//")&&(l=h)}{const f=d0({i18n:ir(t.$i18n),route:e,router:t.$router})(n);T.isString(f)&&(l=f)}return l}function T0(e){return T.isObject(e)&&"path"in e&&"statusCode"in e}const O0=()=>Jc(Ou+":redirect",()=>"");async function el(e,{status:t=301,rootRedirect:n=Je.rootRedirect,differentDomains:o=Je.differentDomains,skipSettingLocaleOnNavigate:s=Je.skipSettingLocaleOnNavigate}={}){const{i18n:r,locale:i,route:a}=e;let{redirectPath:l}=e;if(a.path==="/"&&n)return T.isString(n)?l="/"+n:T0(n)&&(l="/"+n.path,t=n.statusCode),void 0;if(s){r.__pendingLocale=i,r.__pendingLocalePromise=new Promise(u=>{r.__resolvePendingLocalePromise=u});return}if(o){const u=O0();u.value!==l&&(u.value="",window.location.assign(l))}else if(l)return void 0}function I0(e,t){Qa(e,"$i18n",t.global);for(const n of[["getRouteBaseName",Pn],["localePath",ds],["localeRoute",si],["switchLocalePath",ar],["localeHead",Lu]])Qa(e,"$"+n[0],_0(e,n[1]))}function A0(e){return t=>Cu(t)&&!e}function k0(e,t,n){return(o,s)=>{if(e){const r=Nu(s,t);return r?An(r,o):o}else return Pu(o)}}function M0(e,t){return n=>{var l,u;if(T.isFunction(e))return e(n);const{differentDomains:o,localeCodeLoader:s,normalizedLocales:r}=t,i=T.isFunction(s)?s():s;if(o&&i){const f=Nu(i,r,t.nuxt);if(f)return f}const a=(u=(l=n.$config)==null?void 0:l.public)==null?void 0:u.i18n;return a!=null&&a.baseUrl?a.baseUrl:e}}function F0(e){var n;const t=(n=e.matched[0])==null?void 0:n.meta.nuxtI18n;return t?Object.keys(t).length>0:!1}const N0=Pt(async e=>{let t,n;const o=nn(),s=Yo(),{vueApp:r}=e,i=e,a=([t,n]=Jt(()=>g0()),t=await t,n(),t),l=a.detectBrowserLanguage&&a.detectBrowserLanguage.useCookie,{__normalizedLocales:u}=Or,{defaultLocale:f,differentDomains:h,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p,routesNameSeparator:g,defaultLocaleRouteNameSuffix:m,strategy:y,rootRedirect:_}=a;a.baseUrl=M0(a.baseUrl,{differentDomains:h,nuxt:i,localeCodeLoader:f,normalizedLocales:u});const x=t0(Vt,g,m),E=a.vueI18n;E.messages=E.messages||{},E.fallbackLocale=E.fallbackLocale??!1,qy(o,{...a,dynamicRouteParamsKey:"nuxtI18n",switchLocalePathIntercepter:k0(h,u),prefixable:A0(h)});const v=O=>O||E.locale||"en-US";let b=Za(s,e.ssrContext,x,a,v(f),u,Vt,y==="no_prefix"?"ssg_ignore":"normal");E.messages=([t,n]=Jt(()=>R0(i,E.messages,{...a,initialLocale:b,fallbackLocale:E.fallbackLocale,localeCodes:Vt})),t=await t,n(),t),b=v(b);const S=vy({...E,locale:b});let w=!0;const P=O=>b!==O&&w;let C=!0;const I=()=>C;I()&&y==="no_prefix"&&e.hook("app:mounted",async()=>{const{locale:O,stat:k,reason:D,from:V}=a.detectBrowserLanguage?Fu(s,i,a,Or,Vt,b,"ssg_setup"):Mu;S0(S,O),C=!1}),Qy(S,{locales:a.locales,localeCodes:Vt,baseUrl:a.baseUrl,context:i,hooks:{onExtendComposer(O){O.strategy=y,O.localeProperties=_e(()=>u.find(k=>k.code===O.locale.value)||{code:O.locale.value}),O.setLocale=async k=>{const D=P(k),[V]=await Xa(k,i,S,{useCookie:l,differentDomains:h,initial:D,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p});V&&D&&(w=!1);const j=qa(s,i,k,x,a);await el({i18n:S,redirectPath:j,locale:k,route:s},{differentDomains:h,skipSettingLocaleOnNavigate:d,rootRedirect:_})},O.differentDomains=h,O.getBrowserLocale=()=>ku(Or,e.ssrContext),O.getLocaleCookie=()=>oi(e.ssrContext,{...a.detectBrowserLanguage,localeCodes:Vt}),O.setLocaleCookie=k=>w0(k,e.ssrContext,a.detectBrowserLanguage||void 0),O.onBeforeLanguageSwitch=(k,D,V,j)=>e.callHook("i18n:beforeLocaleSwitch",{oldLocale:k,newLocale:D,initialSetup:V,context:j}),O.onLanguageSwitched=(k,D)=>e.callHook("i18n:localeSwitched",{oldLocale:k,newLocale:D}),O.finalizePendingLocaleChange=async()=>{S.__pendingLocale&&(Eu(S,S.__pendingLocale),S.__resolvePendingLocalePromise&&await S.__resolvePendingLocalePromise(),S.__pendingLocale=void 0)},O.waitForPendingLocaleChange=async()=>{S.__pendingLocale&&S.__pendingLocalePromise&&await S.__pendingLocalePromise}},onExtendExportedGlobal(O){return{strategy:{get(){return O.strategy}},localeProperties:{get(){return O.localeProperties.value}},setLocale:{get(){return async k=>Reflect.apply(O.setLocale,O,[k])}},differentDomains:{get(){return O.differentDomains}},getBrowserLocale:{get(){return()=>Reflect.apply(O.getBrowserLocale,O,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(O.getLocaleCookie,O,[])}},setLocaleCookie:{get(){return k=>Reflect.apply(O.setLocaleCookie,O,[k])}},onBeforeLanguageSwitch:{get(){return(k,D,V,j)=>Reflect.apply(O.onBeforeLanguageSwitch,O,[k,D,V,j])}},onLanguageSwitched:{get(){return(k,D)=>Reflect.apply(O.onLanguageSwitched,O,[k,D])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(O.finalizePendingLocaleChange,O,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(O.waitForPendingLocaleChange,O,[])}}}},onExtendVueI18n(O){return{strategy:{get(){return O.strategy}},localeProperties:{get(){return O.localeProperties.value}},setLocale:{get(){return async k=>Reflect.apply(O.setLocale,O,[k])}},differentDomains:{get(){return O.differentDomains}},getBrowserLocale:{get(){return()=>Reflect.apply(O.getBrowserLocale,O,[])}},getLocaleCookie:{get(){return()=>Reflect.apply(O.getLocaleCookie,O,[])}},setLocaleCookie:{get(){return k=>Reflect.apply(O.setLocaleCookie,O,[k])}},onBeforeLanguageSwitch:{get(){return(k,D,V,j)=>Reflect.apply(O.onBeforeLanguageSwitch,O,[k,D,V,j])}},onLanguageSwitched:{get(){return(k,D)=>Reflect.apply(O.onLanguageSwitched,O,[k,D])}},finalizePendingLocaleChange:{get(){return()=>Reflect.apply(O.finalizePendingLocaleChange,O,[])}},waitForPendingLocaleChange:{get(){return()=>Reflect.apply(O.waitForPendingLocaleChange,O,[])}}}}}});const L={__composerExtend:O=>{const k=ir(S);O.strategy=k.strategy,O.localeProperties=_e(()=>k.localeProperties.value),O.setLocale=k.setLocale,O.differentDomains=k.differentDomains,O.getBrowserLocale=k.getBrowserLocale,O.getLocaleCookie=k.getLocaleCookie,O.setLocaleCookie=k.setLocaleCookie,O.onBeforeLanguageSwitch=k.onBeforeLanguageSwitch,O.onLanguageSwitched=k.onLanguageSwitched,O.finalizePendingLocaleChange=k.finalizePendingLocaleChange,O.waitForPendingLocaleChange=k.waitForPendingLocaleChange}};r.use(S,L),I0(i,S),[t,n]=Jt(()=>Bu(i,S,b)),await t,n(),bm("locale-changing",Qc(async(O,k)=>{let D,V;const j=Za(O,e.ssrContext,x,a,()=>fs(S)||v(f),u,Vt,I()&&y==="no_prefix"?"ssg_ignore":"normal"),Y=P(j),[se]=([D,V]=Jt(()=>Xa(j,i,S,{useCookie:l,differentDomains:h,initial:Y,skipSettingLocaleOnNavigate:d,lazy:c,langDir:p})),D=await D,V(),D);se&&Y&&(w=!1);const ce=qa(O,i,j,x,a);return el({i18n:S,redirectPath:ce,locale:j,route:O},{differentDomains:h,skipSettingLocaleOnNavigate:d,rootRedirect:_})}),{global:!0})},1),D0=Pt({name:"nuxt:chunk-reload",setup(e){const t=nn(),n=Ko(),o=new Set;t.beforeEach(()=>{o.clear()}),e.hook("app:chunkError",({error:s})=>{o.add(s)}),t.onError((s,r)=>{if(o.has(s)){const a="href"in r&&r.href.startsWith("#")?n.app.baseURL+r.href:An(n.app.baseURL,r.fullPath);Qm({path:a,persistState:!0})}})}}),$0=Pt({name:"nuxt:payload",setup(e){Gm()&&(e.hooks.hook("link:prefetch",async t=>{rs(t).protocol||await _a(t)}),nn().beforeResolve(async(t,n)=>{if(t.path===n.path)return;const o=await _a(t.path);o&&Object.assign(e.static.data,o.data)}))}}),B0=[Sp,gg,Fm,Nm,Ym,N0,D0,$0],H0=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,n=>{var o;return((o=e.params[n.slice(1)])==null?void 0:o.toString())||""}),j0=(e,t)=>{const n=e.route.matched.find(s=>{var r;return((r=s.components)==null?void 0:r.default)===e.Component.type}),o=t??(n==null?void 0:n.meta.key)??(n&&H0(e.route,n));return typeof o=="function"?o(e.route):o},U0=(e,t)=>({default:()=>e?Ye(cd,e===!0?{}:e,t):t}),V0=Be({name:"FragmentWrapper",setup(e,{slots:t}){return()=>{var n;return(n=t.default)==null?void 0:n.call(t)}}}),wo=(e,t,n)=>({default:()=>t?Ye(e,t===!0?{}:t,n):Ye(V0,{},n)}),W0=Be({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t}){const n=Ae();return()=>Ye(Kc,{name:e.name,route:e.route,...t},{default:o=>{if(!o.Component)return;const s=j0(o,e.pageKey),r=n.deferHydration(),i=!!(e.transition??o.route.meta.pageTransition??Xs),a=i&&z0([e.transition,o.route.meta.pageTransition,Xs,{onAfterLeave:()=>{n.callHook("page:transition:finish",o.Component)}}].filter(Boolean));return wo(ns,i&&a,U0(e.keepalive??o.route.meta.keepalive??dg,Ye(Hl,{onPending:()=>n.callHook("page:start",o.Component),onResolve:()=>{en(()=>n.callHook("page:finish",o.Component).finally(r))}},{default:()=>Ye(G0,{key:s,routeProps:o,pageKey:s,hasTransition:i})}))).default()}})}});function K0(e){return Array.isArray(e)?e:e?[e]:[]}function z0(e){const t=e.map(n=>({...n,onAfterLeave:K0(n.onAfterLeave)}));return _m(...t)}const G0=Be({name:"RouteProvider",props:["routeProps","pageKey","hasTransition"],setup(e){const t=e.pageKey,n=e.routeProps.route,o={};for(const s in e.routeProps.route)o[s]=_e(()=>t===e.pageKey?e.routeProps.route[s]:n[s]);return yn("_route",gt(o)),()=>Ye(e.routeProps.Component)}}),J0=Be({name:"LayoutLoader",inheritAttrs:!1,props:{name:String},async setup(e,t){const n=await un[e.name]().then(o=>o.default||o);return()=>Ye(n,t.attrs,t.slots)}}),Q0=Be({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const n=je("_route"),o=n===Yo()?Qo():n,s=_e(()=>ie(e.name)??o.meta.layout??"default");return()=>{const r=s.value&&s.value in un,i=o.meta.layoutTransition??fg;return wo(ns,r&&i,{default:()=>wo(J0,r&&{key:s.value,name:s.value,...t.attrs},t.slots).default()}).default()}}}),ps=Be({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(e,{slots:t,attrs:n}){const o=ye(!1);return mt(()=>{o.value=!0}),s=>{var l;if(o.value)return(l=t.default)==null?void 0:l.call(t);const r=t.fallback||t.placeholder;if(r)return r();const i=s.fallback||s.placeholder||"",a=s.fallbackTag||s.placeholderTag||"span";return Qe(a,n,i)}}});function tl(){return localStorage.getItem("cookie")==null}function Y0(){localStorage.setItem("cookie","accept")}function X0(){localStorage.setItem("cookie","refuse")}function Hu(e,t){return e??t()}const ju=["cookie","future","change-something","picture-bright","picture-nolights"];function Z0(e){if(!ju.includes(e))return;let t=new Set(JSON.parse(Hu(localStorage.getItem("eastereggs"),()=>"[]")));const n=!t.has(e);t.add(e),localStorage.setItem("eastereggs",JSON.stringify([...t])),n&&document.dispatchEvent(new CustomEvent("easteregg",{detail:e}))}function ii(){return JSON.parse(Hu(localStorage.getItem("eastereggs"),()=>"[]"))}function nl(){return ii().length}function q0(){return ju.length}function gx(e){return e[Math.floor(Math.random()*e.length)]}function Uu(e,t){return Math.random()*(t-e)+e}function e_(e,t){return Math.floor(Uu(e,t))}var Vu={exports:{}};/*!
* matter-js 0.19.0 by @liabru
* http://brm.io/matter-js/
* License MIT
*
* The MIT License (MIT)
*
* Copyright (c) Liam Brummitt and contributors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/(function(e,t){(function(o,s){e.exports=s()})(Xn,function(){return function(n){var o={};function s(r){if(o[r])return o[r].exports;var i=o[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,s),i.l=!0,i.exports}return s.m=n,s.c=o,s.d=function(r,i,a){s.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},s.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,i){if(i&1&&(r=s(r)),i&8||i&4&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),i&2&&typeof r!="string")for(var l in r)s.d(a,l,function(u){return r[u]}.bind(null,l));return a},s.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(i,"a",i),i},s.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},s.p="",s(s.s=20)}([function(n,o){var s={};n.exports=s,function(){s._baseDelta=1e3/60,s._nextId=0,s._seed=0,s._nowStartTime=+new Date,s._warnedOnce={},s._decomp=null,s.extend=function(i,a){var l,u;typeof a=="boolean"?(l=2,u=a):(l=1,u=!0);for(var f=l;f<arguments.length;f++){var h=arguments[f];if(h)for(var d in h)u&&h[d]&&h[d].constructor===Object&&(!i[d]||i[d].constructor===Object)?(i[d]=i[d]||{},s.extend(i[d],u,h[d])):i[d]=h[d]}return i},s.clone=function(i,a){return s.extend({},a,i)},s.keys=function(i){if(Object.keys)return Object.keys(i);var a=[];for(var l in i)a.push(l);return a},s.values=function(i){var a=[];if(Object.keys){for(var l=Object.keys(i),u=0;u<l.length;u++)a.push(i[l[u]]);return a}for(var f in i)a.push(i[f]);return a},s.get=function(i,a,l,u){a=a.split(".").slice(l,u);for(var f=0;f<a.length;f+=1)i=i[a[f]];return i},s.set=function(i,a,l,u,f){var h=a.split(".").slice(u,f);return s.get(i,a,0,-1)[h[h.length-1]]=l,l},s.shuffle=function(i){for(var a=i.length-1;a>0;a--){var l=Math.floor(s.random()*(a+1)),u=i[a];i[a]=i[l],i[l]=u}return i},s.choose=function(i){return i[Math.floor(s.random()*i.length)]},s.isElement=function(i){return typeof HTMLElement<"u"?i instanceof HTMLElement:!!(i&&i.nodeType&&i.nodeName)},s.isArray=function(i){return Object.prototype.toString.call(i)==="[object Array]"},s.isFunction=function(i){return typeof i=="function"},s.isPlainObject=function(i){return typeof i=="object"&&i.constructor===Object},s.isString=function(i){return toString.call(i)==="[object String]"},s.clamp=function(i,a,l){return i<a?a:i>l?l:i},s.sign=function(i){return i<0?-1:1},s.now=function(){if(typeof window<"u"&&window.performance){if(window.performance.now)return window.performance.now();if(window.performance.webkitNow)return window.performance.webkitNow()}return Date.now?Date.now():new Date-s._nowStartTime},s.random=function(i,a){return i=typeof i<"u"?i:0,a=typeof a<"u"?a:1,i+r()*(a-i)};var r=function(){return s._seed=(s._seed*9301+49297)%233280,s._seed/233280};s.colorToNumber=function(i){return i=i.replace("#",""),i.length==3&&(i=i.charAt(0)+i.charAt(0)+i.charAt(1)+i.charAt(1)+i.charAt(2)+i.charAt(2)),parseInt(i,16)},s.logLevel=1,s.log=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.log.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.info=function(){console&&s.logLevel>0&&s.logLevel<=2&&console.info.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warn=function(){console&&s.logLevel>0&&s.logLevel<=3&&console.warn.apply(console,["matter-js:"].concat(Array.prototype.slice.call(arguments)))},s.warnOnce=function(){var i=Array.prototype.slice.call(arguments).join(" ");s._warnedOnce[i]||(s.warn(i),s._warnedOnce[i]=!0)},s.deprecated=function(i,a,l){i[a]=s.chain(function(){s.warnOnce("🔅 deprecated 🔅",l)},i[a])},s.nextId=function(){return s._nextId++},s.indexOf=function(i,a){if(i.indexOf)return i.indexOf(a);for(var l=0;l<i.length;l++)if(i[l]===a)return l;return-1},s.map=function(i,a){if(i.map)return i.map(a);for(var l=[],u=0;u<i.length;u+=1)l.push(a(i[u]));return l},s.topologicalSort=function(i){var a=[],l=[],u=[];for(var f in i)!l[f]&&!u[f]&&s._topologicalSort(f,l,u,i,a);return a},s._topologicalSort=function(i,a,l,u,f){var h=u[i]||[];l[i]=!0;for(var d=0;d<h.length;d+=1){var c=h[d];l[c]||a[c]||s._topologicalSort(c,a,l,u,f)}l[i]=!1,a[i]=!0,f.push(i)},s.chain=function(){for(var i=[],a=0;a<arguments.length;a+=1){var l=arguments[a];l._chained?i.push.apply(i,l._chained):i.push(l)}var u=function(){for(var f,h=new Array(arguments.length),d=0,c=arguments.length;d<c;d++)h[d]=arguments[d];for(d=0;d<i.length;d+=1){var p=i[d].apply(f,h);typeof p<"u"&&(f=p)}return f};return u._chained=i,u},s.chainPathBefore=function(i,a,l){return s.set(i,a,s.chain(l,s.get(i,a)))},s.chainPathAfter=function(i,a,l){return s.set(i,a,s.chain(s.get(i,a),l))},s.setDecomp=function(i){s._decomp=i},s.getDecomp=function(){var i=s._decomp;try{!i&&typeof window<"u"&&(i=window.decomp),!i&&typeof Xn<"u"&&(i=Xn.decomp)}catch{i=null}return i}}()},function(n,o){var s={};n.exports=s,function(){s.create=function(r){var i={min:{x:0,y:0},max:{x:0,y:0}};return r&&s.update(i,r),i},s.update=function(r,i,a){r.min.x=1/0,r.max.x=-1/0,r.min.y=1/0,r.max.y=-1/0;for(var l=0;l<i.length;l++){var u=i[l];u.x>r.max.x&&(r.max.x=u.x),u.x<r.min.x&&(r.min.x=u.x),u.y>r.max.y&&(r.max.y=u.y),u.y<r.min.y&&(r.min.y=u.y)}a&&(a.x>0?r.max.x+=a.x:r.min.x+=a.x,a.y>0?r.max.y+=a.y:r.min.y+=a.y)},s.contains=function(r,i){return i.x>=r.min.x&&i.x<=r.max.x&&i.y>=r.min.y&&i.y<=r.max.y},s.overlaps=function(r,i){return r.min.x<=i.max.x&&r.max.x>=i.min.x&&r.max.y>=i.min.y&&r.min.y<=i.max.y},s.translate=function(r,i){r.min.x+=i.x,r.max.x+=i.x,r.min.y+=i.y,r.max.y+=i.y},s.shift=function(r,i){var a=r.max.x-r.min.x,l=r.max.y-r.min.y;r.min.x=i.x,r.max.x=i.x+a,r.min.y=i.y,r.max.y=i.y+l}}()},function(n,o){var s={};n.exports=s,function(){s.create=function(r,i){return{x:r||0,y:i||0}},s.clone=function(r){return{x:r.x,y:r.y}},s.magnitude=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},s.magnitudeSquared=function(r){return r.x*r.x+r.y*r.y},s.rotate=function(r,i,a){var l=Math.cos(i),u=Math.sin(i);a||(a={});var f=r.x*l-r.y*u;return a.y=r.x*u+r.y*l,a.x=f,a},s.rotateAbout=function(r,i,a,l){var u=Math.cos(i),f=Math.sin(i);l||(l={});var h=a.x+((r.x-a.x)*u-(r.y-a.y)*f);return l.y=a.y+((r.x-a.x)*f+(r.y-a.y)*u),l.x=h,l},s.normalise=function(r){var i=s.magnitude(r);return i===0?{x:0,y:0}:{x:r.x/i,y:r.y/i}},s.dot=function(r,i){return r.x*i.x+r.y*i.y},s.cross=function(r,i){return r.x*i.y-r.y*i.x},s.cross3=function(r,i,a){return(i.x-r.x)*(a.y-r.y)-(i.y-r.y)*(a.x-r.x)},s.add=function(r,i,a){return a||(a={}),a.x=r.x+i.x,a.y=r.y+i.y,a},s.sub=function(r,i,a){return a||(a={}),a.x=r.x-i.x,a.y=r.y-i.y,a},s.mult=function(r,i){return{x:r.x*i,y:r.y*i}},s.div=function(r,i){return{x:r.x/i,y:r.y/i}},s.perp=function(r,i){return i=i===!0?-1:1,{x:i*-r.y,y:i*r.x}},s.neg=function(r){return{x:-r.x,y:-r.y}},s.angle=function(r,i){return Math.atan2(i.y-r.y,i.x-r.x)},s._temp=[s.create(),s.create(),s.create(),s.create(),s.create(),s.create()]}()},function(n,o,s){var r={};n.exports=r;var i=s(2),a=s(0);(function(){r.create=function(l,u){for(var f=[],h=0;h<l.length;h++){var d=l[h],c={x:d.x,y:d.y,index:h,body:u,isInternal:!1};f.push(c)}return f},r.fromPath=function(l,u){var f=/L?\s*([-\d.e]+)[\s,]*([-\d.e]+)*/ig,h=[];return l.replace(f,function(d,c,p){h.push({x:parseFloat(c),y:parseFloat(p)})}),r.create(h,u)},r.centre=function(l){for(var u=r.area(l,!0),f={x:0,y:0},h,d,c,p=0;p<l.length;p++)c=(p+1)%l.length,h=i.cross(l[p],l[c]),d=i.mult(i.add(l[p],l[c]),h),f=i.add(f,d);return i.div(f,6*u)},r.mean=function(l){for(var u={x:0,y:0},f=0;f<l.length;f++)u.x+=l[f].x,u.y+=l[f].y;return i.div(u,l.length)},r.area=function(l,u){for(var f=0,h=l.length-1,d=0;d<l.length;d++)f+=(l[h].x-l[d].x)*(l[h].y+l[d].y),h=d;return u?f/2:Math.abs(f)/2},r.inertia=function(l,u){for(var f=0,h=0,d=l,c,p,g=0;g<d.length;g++)p=(g+1)%d.length,c=Math.abs(i.cross(d[p],d[g])),f+=c*(i.dot(d[p],d[p])+i.dot(d[p],d[g])+i.dot(d[g],d[g])),h+=c;return u/6*(f/h)},r.translate=function(l,u,f){f=typeof f<"u"?f:1;var h=l.length,d=u.x*f,c=u.y*f,p;for(p=0;p<h;p++)l[p].x+=d,l[p].y+=c;return l},r.rotate=function(l,u,f){if(u!==0){var h=Math.cos(u),d=Math.sin(u),c=f.x,p=f.y,g=l.length,m,y,_,x;for(x=0;x<g;x++)m=l[x],y=m.x-c,_=m.y-p,m.x=c+(y*h-_*d),m.y=p+(y*d+_*h);return l}},r.contains=function(l,u){for(var f=u.x,h=u.y,d=l.length,c=l[d-1],p,g=0;g<d;g++){if(p=l[g],(f-c.x)*(p.y-c.y)+(h-c.y)*(c.x-p.x)>0)return!1;c=p}return!0},r.scale=function(l,u,f,h){if(u===1&&f===1)return l;h=h||r.centre(l);for(var d,c,p=0;p<l.length;p++)d=l[p],c=i.sub(d,h),l[p].x=h.x+c.x*u,l[p].y=h.y+c.y*f;return l},r.chamfer=function(l,u,f,h,d){typeof u=="number"?u=[u]:u=u||[8],f=typeof f<"u"?f:-1,h=h||2,d=d||14;for(var c=[],p=0;p<l.length;p++){var g=l[p-1>=0?p-1:l.length-1],m=l[p],y=l[(p+1)%l.length],_=u[p<u.length?p:u.length-1];if(_===0){c.push(m);continue}var x=i.normalise({x:m.y-g.y,y:g.x-m.x}),E=i.normalise({x:y.y-m.y,y:m.x-y.x}),v=Math.sqrt(2*Math.pow(_,2)),b=i.mult(a.clone(x),_),S=i.normalise(i.mult(i.add(x,E),.5)),w=i.sub(m,i.mult(S,v)),P=f;f===-1&&(P=Math.pow(_,.32)*1.75),P=a.clamp(P,h,d),P%2===1&&(P+=1);for(var C=Math.acos(i.dot(x,E)),I=C/P,L=0;L<P;L++)c.push(i.add(i.rotate(b,I*L),w))}return c},r.clockwiseSort=function(l){var u=r.mean(l);return l.sort(function(f,h){return i.angle(u,f)-i.angle(u,h)}),l},r.isConvex=function(l){var u=0,f=l.length,h,d,c,p;if(f<3)return null;for(h=0;h<f;h++)if(d=(h+1)%f,c=(h+2)%f,p=(l[d].x-l[h].x)*(l[c].y-l[d].y),p-=(l[d].y-l[h].y)*(l[c].x-l[d].x),p<0?u|=1:p>0&&(u|=2),u===3)return!1;return u!==0?!0:null},r.hull=function(l){var u=[],f=[],h,d;for(l=l.slice(0),l.sort(function(c,p){var g=c.x-p.x;return g!==0?g:c.y-p.y}),d=0;d<l.length;d+=1){for(h=l[d];f.length>=2&&i.cross3(f[f.length-2],f[f.length-1],h)<=0;)f.pop();f.push(h)}for(d=l.length-1;d>=0;d-=1){for(h=l[d];u.length>=2&&i.cross3(u[u.length-2],u[u.length-1],h)<=0;)u.pop();u.push(h)}return u.pop(),f.pop(),u.concat(f)}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(2),l=s(7),u=s(0),f=s(1),h=s(11);(function(){r._timeCorrection=!0,r._inertiaScale=4,r._nextCollidingGroupId=1,r._nextNonCollidingGroupId=-1,r._nextCategory=1,r._baseDelta=1e3/60,r.create=function(c){var p={id:u.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:i.fromPath("L 0 0 L 40 0 L 40 40 L 0 40"),position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,render:{visible:!0,opacity:1,strokeStyle:null,fillStyle:null,lineWidth:null,sprite:{xScale:1,yScale:1,xOffset:0,yOffset:0}},events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inertia:0,deltaTime:16.666666666666668,_original:null},g=u.extend(p,c);return d(g,c),g},r.nextGroup=function(c){return c?r._nextNonCollidingGroupId--:r._nextCollidingGroupId++},r.nextCategory=function(){return r._nextCategory=r._nextCategory<<1,r._nextCategory};var d=function(c,p){p=p||{},r.set(c,{bounds:c.bounds||f.create(c.vertices),positionPrev:c.positionPrev||a.clone(c.position),anglePrev:c.anglePrev||c.angle,vertices:c.vertices,parts:c.parts||[c],isStatic:c.isStatic,isSleeping:c.isSleeping,parent:c.parent||c}),i.rotate(c.vertices,c.angle,c.position),h.rotate(c.axes,c.angle),f.update(c.bounds,c.vertices,c.velocity),r.set(c,{axes:p.axes||c.axes,area:p.area||c.area,mass:p.mass||c.mass,inertia:p.inertia||c.inertia});var g=c.isStatic?"#14151f":u.choose(["#f19648","#f5d259","#f55a3c","#063e7b","#ececd1"]),m=c.isStatic?"#555":"#ccc",y=c.isStatic&&c.render.fillStyle===null?1:0;c.render.fillStyle=c.render.fillStyle||g,c.render.strokeStyle=c.render.strokeStyle||m,c.render.lineWidth=c.render.lineWidth||y,c.render.sprite.xOffset+=-(c.bounds.min.x-c.position.x)/(c.bounds.max.x-c.bounds.min.x),c.render.sprite.yOffset+=-(c.bounds.min.y-c.position.y)/(c.bounds.max.y-c.bounds.min.y)};r.set=function(c,p,g){var m;typeof p=="string"&&(m=p,p={},p[m]=g);for(m in p)if(Object.prototype.hasOwnProperty.call(p,m))switch(g=p[m],m){case"isStatic":r.setStatic(c,g);break;case"isSleeping":l.set(c,g);break;case"mass":r.setMass(c,g);break;case"density":r.setDensity(c,g);break;case"inertia":r.setInertia(c,g);break;case"vertices":r.setVertices(c,g);break;case"position":r.setPosition(c,g);break;case"angle":r.setAngle(c,g);break;case"velocity":r.setVelocity(c,g);break;case"angularVelocity":r.setAngularVelocity(c,g);break;case"speed":r.setSpeed(c,g);break;case"angularSpeed":r.setAngularSpeed(c,g);break;case"parts":r.setParts(c,g);break;case"centre":r.setCentre(c,g);break;default:c[m]=g}},r.setStatic=function(c,p){for(var g=0;g<c.parts.length;g++){var m=c.parts[g];m.isStatic=p,p?(m._original={restitution:m.restitution,friction:m.friction,mass:m.mass,inertia:m.inertia,density:m.density,inverseMass:m.inverseMass,inverseInertia:m.inverseInertia},m.restitution=0,m.friction=1,m.mass=m.inertia=m.density=1/0,m.inverseMass=m.inverseInertia=0,m.positionPrev.x=m.position.x,m.positionPrev.y=m.position.y,m.anglePrev=m.angle,m.angularVelocity=0,m.speed=0,m.angularSpeed=0,m.motion=0):m._original&&(m.restitution=m._original.restitution,m.friction=m._original.friction,m.mass=m._original.mass,m.inertia=m._original.inertia,m.density=m._original.density,m.inverseMass=m._original.inverseMass,m.inverseInertia=m._original.inverseInertia,m._original=null)}},r.setMass=function(c,p){var g=c.inertia/(c.mass/6);c.inertia=g*(p/6),c.inverseInertia=1/c.inertia,c.mass=p,c.inverseMass=1/c.mass,c.density=c.mass/c.area},r.setDensity=function(c,p){r.setMass(c,p*c.area),c.density=p},r.setInertia=function(c,p){c.inertia=p,c.inverseInertia=1/c.inertia},r.setVertices=function(c,p){p[0].body===c?c.vertices=p:c.vertices=i.create(p,c),c.axes=h.fromVertices(c.vertices),c.area=i.area(c.vertices),r.setMass(c,c.density*c.area);var g=i.centre(c.vertices);i.translate(c.vertices,g,-1),r.setInertia(c,r._inertiaScale*i.inertia(c.vertices,c.mass)),i.translate(c.vertices,c.position),f.update(c.bounds,c.vertices,c.velocity)},r.setParts=function(c,p,g){var m;for(p=p.slice(0),c.parts.length=0,c.parts.push(c),c.parent=c,m=0;m<p.length;m++){var y=p[m];y!==c&&(y.parent=c,c.parts.push(y))}if(c.parts.length!==1){if(g=typeof g<"u"?g:!0,g){var _=[];for(m=0;m<p.length;m++)_=_.concat(p[m].vertices);i.clockwiseSort(_);var x=i.hull(_),E=i.centre(x);r.setVertices(c,x),i.translate(c.vertices,E)}var v=r._totalProperties(c);c.area=v.area,c.parent=c,c.position.x=v.centre.x,c.position.y=v.centre.y,c.positionPrev.x=v.centre.x,c.positionPrev.y=v.centre.y,r.setMass(c,v.mass),r.setInertia(c,v.inertia),r.setPosition(c,v.centre)}},r.setCentre=function(c,p,g){g?(c.positionPrev.x+=p.x,c.positionPrev.y+=p.y,c.position.x+=p.x,c.position.y+=p.y):(c.positionPrev.x=p.x-(c.position.x-c.positionPrev.x),c.positionPrev.y=p.y-(c.position.y-c.positionPrev.y),c.position.x=p.x,c.position.y=p.y)},r.setPosition=function(c,p,g){var m=a.sub(p,c.position);g?(c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.velocity.x=m.x,c.velocity.y=m.y,c.speed=a.magnitude(m)):(c.positionPrev.x+=m.x,c.positionPrev.y+=m.y);for(var y=0;y<c.parts.length;y++){var _=c.parts[y];_.position.x+=m.x,_.position.y+=m.y,i.translate(_.vertices,m),f.update(_.bounds,_.vertices,c.velocity)}},r.setAngle=function(c,p,g){var m=p-c.angle;g?(c.anglePrev=c.angle,c.angularVelocity=m,c.angularSpeed=Math.abs(m)):c.anglePrev+=m;for(var y=0;y<c.parts.length;y++){var _=c.parts[y];_.angle+=m,i.rotate(_.vertices,m,c.position),h.rotate(_.axes,m),f.update(_.bounds,_.vertices,c.velocity),y>0&&a.rotateAbout(_.position,m,c.position,_.position)}},r.setVelocity=function(c,p){var g=c.deltaTime/r._baseDelta;c.positionPrev.x=c.position.x-p.x*g,c.positionPrev.y=c.position.y-p.y*g,c.velocity.x=(c.position.x-c.positionPrev.x)/g,c.velocity.y=(c.position.y-c.positionPrev.y)/g,c.speed=a.magnitude(c.velocity)},r.getVelocity=function(c){var p=r._baseDelta/c.deltaTime;return{x:(c.position.x-c.positionPrev.x)*p,y:(c.position.y-c.positionPrev.y)*p}},r.getSpeed=function(c){return a.magnitude(r.getVelocity(c))},r.setSpeed=function(c,p){r.setVelocity(c,a.mult(a.normalise(r.getVelocity(c)),p))},r.setAngularVelocity=function(c,p){var g=c.deltaTime/r._baseDelta;c.anglePrev=c.angle-p*g,c.angularVelocity=(c.angle-c.anglePrev)/g,c.angularSpeed=Math.abs(c.angularVelocity)},r.getAngularVelocity=function(c){return(c.angle-c.anglePrev)*r._baseDelta/c.deltaTime},r.getAngularSpeed=function(c){return Math.abs(r.getAngularVelocity(c))},r.setAngularSpeed=function(c,p){r.setAngularVelocity(c,u.sign(r.getAngularVelocity(c))*p)},r.translate=function(c,p,g){r.setPosition(c,a.add(c.position,p),g)},r.rotate=function(c,p,g,m){if(!g)r.setAngle(c,c.angle+p,m);else{var y=Math.cos(p),_=Math.sin(p),x=c.position.x-g.x,E=c.position.y-g.y;r.setPosition(c,{x:g.x+(x*y-E*_),y:g.y+(x*_+E*y)},m),r.setAngle(c,c.angle+p,m)}},r.scale=function(c,p,g,m){var y=0,_=0;m=m||c.position;for(var x=0;x<c.parts.length;x++){var E=c.parts[x];i.scale(E.vertices,p,g,m),E.axes=h.fromVertices(E.vertices),E.area=i.area(E.vertices),r.setMass(E,c.density*E.area),i.translate(E.vertices,{x:-E.position.x,y:-E.position.y}),r.setInertia(E,r._inertiaScale*i.inertia(E.vertices,E.mass)),i.translate(E.vertices,{x:E.position.x,y:E.position.y}),x>0&&(y+=E.area,_+=E.inertia),E.position.x=m.x+(E.position.x-m.x)*p,E.position.y=m.y+(E.position.y-m.y)*g,f.update(E.bounds,E.vertices,c.velocity)}c.parts.length>1&&(c.area=y,c.isStatic||(r.setMass(c,c.density*y),r.setInertia(c,_))),c.circleRadius&&(p===g?c.circleRadius*=p:c.circleRadius=null)},r.update=function(c,p){p=(typeof p<"u"?p:1e3/60)*c.timeScale;var g=p*p,m=r._timeCorrection?p/(c.deltaTime||p):1,y=1-c.frictionAir*(p/u._baseDelta),_=(c.position.x-c.positionPrev.x)*m,x=(c.position.y-c.positionPrev.y)*m;c.velocity.x=_*y+c.force.x/c.mass*g,c.velocity.y=x*y+c.force.y/c.mass*g,c.positionPrev.x=c.position.x,c.positionPrev.y=c.position.y,c.position.x+=c.velocity.x,c.position.y+=c.velocity.y,c.deltaTime=p,c.angularVelocity=(c.angle-c.anglePrev)*y*m+c.torque/c.inertia*g,c.anglePrev=c.angle,c.angle+=c.angularVelocity;for(var E=0;E<c.parts.length;E++){var v=c.parts[E];i.translate(v.vertices,c.velocity),E>0&&(v.position.x+=c.velocity.x,v.position.y+=c.velocity.y),c.angularVelocity!==0&&(i.rotate(v.vertices,c.angularVelocity,c.position),h.rotate(v.axes,c.angularVelocity),E>0&&a.rotateAbout(v.position,c.angularVelocity,c.position,v.position)),f.update(v.bounds,v.vertices,c.velocity)}},r.updateVelocities=function(c){var p=r._baseDelta/c.deltaTime,g=c.velocity;g.x=(c.position.x-c.positionPrev.x)*p,g.y=(c.position.y-c.positionPrev.y)*p,c.speed=Math.sqrt(g.x*g.x+g.y*g.y),c.angularVelocity=(c.angle-c.anglePrev)*p,c.angularSpeed=Math.abs(c.angularVelocity)},r.applyForce=function(c,p,g){var m={x:p.x-c.position.x,y:p.y-c.position.y};c.force.x+=g.x,c.force.y+=g.y,c.torque+=m.x*g.y-m.y*g.x},r._totalProperties=function(c){for(var p={mass:0,area:0,inertia:0,centre:{x:0,y:0}},g=c.parts.length===1?0:1;g<c.parts.length;g++){var m=c.parts[g],y=m.mass!==1/0?m.mass:1;p.mass+=y,p.area+=m.area,p.inertia+=m.inertia,p.centre=a.add(p.centre,a.mult(m.position,y))}return p.centre=a.div(p.centre,p.mass),p}})()},function(n,o,s){var r={};n.exports=r;var i=s(0);(function(){r.on=function(a,l,u){for(var f=l.split(" "),h,d=0;d<f.length;d++)h=f[d],a.events=a.events||{},a.events[h]=a.events[h]||[],a.events[h].push(u);return u},r.off=function(a,l,u){if(!l){a.events={};return}typeof l=="function"&&(u=l,l=i.keys(a.events).join(" "));for(var f=l.split(" "),h=0;h<f.length;h++){var d=a.events[f[h]],c=[];if(u&&d)for(var p=0;p<d.length;p++)d[p]!==u&&c.push(d[p]);a.events[f[h]]=c}},r.trigger=function(a,l,u){var f,h,d,c,p=a.events;if(p&&i.keys(p).length>0){u||(u={}),f=l.split(" ");for(var g=0;g<f.length;g++)if(h=f[g],d=p[h],d){c=i.clone(u,!1),c.name=h,c.source=a;for(var m=0;m<d.length;m++)d[m].apply(a,[c])}}}})()},function(n,o,s){var r={};n.exports=r;var i=s(5),a=s(0),l=s(1),u=s(4);(function(){r.create=function(f){return a.extend({id:a.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},f)},r.setModified=function(f,h,d,c){if(f.isModified=h,h&&f.cache&&(f.cache.allBodies=null,f.cache.allConstraints=null,f.cache.allComposites=null),d&&f.parent&&r.setModified(f.parent,h,d,c),c)for(var p=0;p<f.composites.length;p++){var g=f.composites[p];r.setModified(g,h,d,c)}},r.add=function(f,h){var d=[].concat(h);i.trigger(f,"beforeAdd",{object:h});for(var c=0;c<d.length;c++){var p=d[c];switch(p.type){case"body":if(p.parent!==p){a.warn("Composite.add: skipped adding a compound body part (you must add its parent instead)");break}r.addBody(f,p);break;case"constraint":r.addConstraint(f,p);break;case"composite":r.addComposite(f,p);break;case"mouseConstraint":r.addConstraint(f,p.constraint);break}}return i.trigger(f,"afterAdd",{object:h}),f},r.remove=function(f,h,d){var c=[].concat(h);i.trigger(f,"beforeRemove",{object:h});for(var p=0;p<c.length;p++){var g=c[p];switch(g.type){case"body":r.removeBody(f,g,d);break;case"constraint":r.removeConstraint(f,g,d);break;case"composite":r.removeComposite(f,g,d);break;case"mouseConstraint":r.removeConstraint(f,g.constraint);break}}return i.trigger(f,"afterRemove",{object:h}),f},r.addComposite=function(f,h){return f.composites.push(h),h.parent=f,r.setModified(f,!0,!0,!1),f},r.removeComposite=function(f,h,d){var c=a.indexOf(f.composites,h);if(c!==-1&&r.removeCompositeAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeComposite(f.composites[p],h,!0);return f},r.removeCompositeAt=function(f,h){return f.composites.splice(h,1),r.setModified(f,!0,!0,!1),f},r.addBody=function(f,h){return f.bodies.push(h),r.setModified(f,!0,!0,!1),f},r.removeBody=function(f,h,d){var c=a.indexOf(f.bodies,h);if(c!==-1&&r.removeBodyAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeBody(f.composites[p],h,!0);return f},r.removeBodyAt=function(f,h){return f.bodies.splice(h,1),r.setModified(f,!0,!0,!1),f},r.addConstraint=function(f,h){return f.constraints.push(h),r.setModified(f,!0,!0,!1),f},r.removeConstraint=function(f,h,d){var c=a.indexOf(f.constraints,h);if(c!==-1&&r.removeConstraintAt(f,c),d)for(var p=0;p<f.composites.length;p++)r.removeConstraint(f.composites[p],h,!0);return f},r.removeConstraintAt=function(f,h){return f.constraints.splice(h,1),r.setModified(f,!0,!0,!1),f},r.clear=function(f,h,d){if(d)for(var c=0;c<f.composites.length;c++)r.clear(f.composites[c],h,!0);return h?f.bodies=f.bodies.filter(function(p){return p.isStatic}):f.bodies.length=0,f.constraints.length=0,f.composites.length=0,r.setModified(f,!0,!0,!1),f},r.allBodies=function(f){if(f.cache&&f.cache.allBodies)return f.cache.allBodies;for(var h=[].concat(f.bodies),d=0;d<f.composites.length;d++)h=h.concat(r.allBodies(f.composites[d]));return f.cache&&(f.cache.allBodies=h),h},r.allConstraints=function(f){if(f.cache&&f.cache.allConstraints)return f.cache.allConstraints;for(var h=[].concat(f.constraints),d=0;d<f.composites.length;d++)h=h.concat(r.allConstraints(f.composites[d]));return f.cache&&(f.cache.allConstraints=h),h},r.allComposites=function(f){if(f.cache&&f.cache.allComposites)return f.cache.allComposites;for(var h=[].concat(f.composites),d=0;d<f.composites.length;d++)h=h.concat(r.allComposites(f.composites[d]));return f.cache&&(f.cache.allComposites=h),h},r.get=function(f,h,d){var c,p;switch(d){case"body":c=r.allBodies(f);break;case"constraint":c=r.allConstraints(f);break;case"composite":c=r.allComposites(f).concat(f);break}return c?(p=c.filter(function(g){return g.id.toString()===h.toString()}),p.length===0?null:p[0]):null},r.move=function(f,h,d){return r.remove(f,h),r.add(d,h),f},r.rebase=function(f){for(var h=r.allBodies(f).concat(r.allConstraints(f)).concat(r.allComposites(f)),d=0;d<h.length;d++)h[d].id=a.nextId();return f},r.translate=function(f,h,d){for(var c=d?r.allBodies(f):f.bodies,p=0;p<c.length;p++)u.translate(c[p],h);return f},r.rotate=function(f,h,d,c){for(var p=Math.cos(h),g=Math.sin(h),m=c?r.allBodies(f):f.bodies,y=0;y<m.length;y++){var _=m[y],x=_.position.x-d.x,E=_.position.y-d.y;u.setPosition(_,{x:d.x+(x*p-E*g),y:d.y+(x*g+E*p)}),u.rotate(_,h)}return f},r.scale=function(f,h,d,c,p){for(var g=p?r.allBodies(f):f.bodies,m=0;m<g.length;m++){var y=g[m],_=y.position.x-c.x,x=y.position.y-c.y;u.setPosition(y,{x:c.x+_*h,y:c.y+x*d}),u.scale(y,h,d)}return f},r.bounds=function(f){for(var h=r.allBodies(f),d=[],c=0;c<h.length;c+=1){var p=h[c];d.push(p.bounds.min,p.bounds.max)}return l.create(d)}})()},function(n,o,s){var r={};n.exports=r;var i=s(4),a=s(5),l=s(0);(function(){r._motionWakeThreshold=.18,r._motionSleepThreshold=.08,r._minBias=.9,r.update=function(u,f){for(var h=f/l._baseDelta,d=r._motionSleepThreshold,c=0;c<u.length;c++){var p=u[c],g=i.getSpeed(p),m=i.getAngularSpeed(p),y=g*g+m*m;if(p.force.x!==0||p.force.y!==0){r.set(p,!1);continue}var _=Math.min(p.motion,y),x=Math.max(p.motion,y);p.motion=r._minBias*_+(1-r._minBias)*x,p.sleepThreshold>0&&p.motion<d?(p.sleepCounter+=1,p.sleepCounter>=p.sleepThreshold/h&&r.set(p,!0)):p.sleepCounter>0&&(p.sleepCounter-=1)}},r.afterCollisions=function(u){for(var f=r._motionSleepThreshold,h=0;h<u.length;h++){var d=u[h];if(d.isActive){var c=d.collision,p=c.bodyA.parent,g=c.bodyB.parent;if(!(p.isSleeping&&g.isSleeping||p.isStatic||g.isStatic)&&(p.isSleeping||g.isSleeping)){var m=p.isSleeping&&!p.isStatic?p:g,y=m===p?g:p;!m.isStatic&&y.motion>f&&r.set(m,!1)}}}},r.set=function(u,f){var h=u.isSleeping;f?(u.isSleeping=!0,u.sleepCounter=u.sleepThreshold,u.positionImpulse.x=0,u.positionImpulse.y=0,u.positionPrev.x=u.position.x,u.positionPrev.y=u.position.y,u.anglePrev=u.angle,u.speed=0,u.angularSpeed=0,u.motion=0,h||a.trigger(u,"sleepStart")):(u.isSleeping=!1,u.sleepCounter=0,h&&a.trigger(u,"sleepEnd"))}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(9);(function(){var l=[],u={overlap:0,axis:null},f={overlap:0,axis:null};r.create=function(h,d){return{pair:null,collided:!1,bodyA:h,bodyB:d,parentA:h.parent,parentB:d.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},r.collides=function(h,d,c){if(r._overlapAxes(u,h.vertices,d.vertices,h.axes),u.overlap<=0||(r._overlapAxes(f,d.vertices,h.vertices,d.axes),f.overlap<=0))return null;var p=c&&c.table[a.id(h,d)],g;p?g=p.collision:(g=r.create(h,d),g.collided=!0,g.bodyA=h.id<d.id?h:d,g.bodyB=h.id<d.id?d:h,g.parentA=g.bodyA.parent,g.parentB=g.bodyB.parent),h=g.bodyA,d=g.bodyB;var m;u.overlap<f.overlap?m=u:m=f;var y=g.normal,_=g.supports,x=m.axis,E=x.x,v=x.y;E*(d.position.x-h.position.x)+v*(d.position.y-h.position.y)<0?(y.x=E,y.y=v):(y.x=-E,y.y=-v),g.tangent.x=-y.y,g.tangent.y=y.x,g.depth=m.overlap,g.penetration.x=y.x*g.depth,g.penetration.y=y.y*g.depth;var b=r._findSupports(h,d,y,1),S=0;if(i.contains(h.vertices,b[0])&&(_[S++]=b[0]),i.contains(h.vertices,b[1])&&(_[S++]=b[1]),S<2){var w=r._findSupports(d,h,y,-1);i.contains(d.vertices,w[0])&&(_[S++]=w[0]),S<2&&i.contains(d.vertices,w[1])&&(_[S++]=w[1])}return S===0&&(_[S++]=b[0]),_.length=S,g},r._overlapAxes=function(h,d,c,p){var g=d.length,m=c.length,y=d[0].x,_=d[0].y,x=c[0].x,E=c[0].y,v=p.length,b=Number.MAX_VALUE,S=0,w,P,C,I,L,O;for(L=0;L<v;L++){var k=p[L],D=k.x,V=k.y,j=y*D+_*V,Y=x*D+E*V,se=j,ce=Y;for(O=1;O<g;O+=1)I=d[O].x*D+d[O].y*V,I>se?se=I:I<j&&(j=I);for(O=1;O<m;O+=1)I=c[O].x*D+c[O].y*V,I>ce?ce=I:I<Y&&(Y=I);if(P=se-Y,C=ce-j,w=P<C?P:C,w<b&&(b=w,S=L,w<=0))break}h.axis=p[S],h.overlap=b},r._projectToAxis=function(h,d,c){for(var p=d[0].x*c.x+d[0].y*c.y,g=p,m=1;m<d.length;m+=1){var y=d[m].x*c.x+d[m].y*c.y;y>g?g=y:y<p&&(p=y)}h.min=p,h.max=g},r._findSupports=function(h,d,c,p){var g=d.vertices,m=g.length,y=h.position.x,_=h.position.y,x=c.x*p,E=c.y*p,v=Number.MAX_VALUE,b,S,w,P,C;for(C=0;C<m;C+=1)S=g[C],P=x*(y-S.x)+E*(_-S.y),P<v&&(v=P,b=S);return w=g[(m+b.index-1)%m],v=x*(y-w.x)+E*(_-w.y),S=g[(b.index+1)%m],x*(y-S.x)+E*(_-S.y)<v?(l[0]=b,l[1]=S,l):(l[0]=b,l[1]=w,l)}})()},function(n,o,s){var r={};n.exports=r;var i=s(16);(function(){r.create=function(a,l){var u=a.bodyA,f=a.bodyB,h={id:r.id(u,f),bodyA:u,bodyB:f,collision:a,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:u.isSensor||f.isSensor,timeCreated:l,timeUpdated:l,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return r.update(h,a,l),h},r.update=function(a,l,u){var f=a.contacts,h=l.supports,d=a.activeContacts,c=l.parentA,p=l.parentB,g=c.vertices.length;a.isActive=!0,a.timeUpdated=u,a.collision=l,a.separation=l.depth,a.inverseMass=c.inverseMass+p.inverseMass,a.friction=c.friction<p.friction?c.friction:p.friction,a.frictionStatic=c.frictionStatic>p.frictionStatic?c.frictionStatic:p.frictionStatic,a.restitution=c.restitution>p.restitution?c.restitution:p.restitution,a.slop=c.slop>p.slop?c.slop:p.slop,l.pair=a,d.length=0;for(var m=0;m<h.length;m++){var y=h[m],_=y.body===c?y.index:g+y.index,x=f[_];x?d.push(x):d.push(f[_]=i.create(y))}},r.setActive=function(a,l,u){l?(a.isActive=!0,a.timeUpdated=u):(a.isActive=!1,a.activeContacts.length=0)},r.id=function(a,l){return a.id<l.id?"A"+a.id+"B"+l.id:"A"+l.id+"B"+a.id}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(2),l=s(7),u=s(1),f=s(11),h=s(0);(function(){r._warming=.4,r._torqueDampen=1,r._minLength=1e-6,r.create=function(d){var c=d;c.bodyA&&!c.pointA&&(c.pointA={x:0,y:0}),c.bodyB&&!c.pointB&&(c.pointB={x:0,y:0});var p=c.bodyA?a.add(c.bodyA.position,c.pointA):c.pointA,g=c.bodyB?a.add(c.bodyB.position,c.pointB):c.pointB,m=a.magnitude(a.sub(p,g));c.length=typeof c.length<"u"?c.length:m,c.id=c.id||h.nextId(),c.label=c.label||"Constraint",c.type="constraint",c.stiffness=c.stiffness||(c.length>0?1:.7),c.damping=c.damping||0,c.angularStiffness=c.angularStiffness||0,c.angleA=c.bodyA?c.bodyA.angle:c.angleA,c.angleB=c.bodyB?c.bodyB.angle:c.angleB,c.plugin={};var y={visible:!0,lineWidth:2,strokeStyle:"#ffffff",type:"line",anchors:!0};return c.length===0&&c.stiffness>.1?(y.type="pin",y.anchors=!1):c.stiffness<.9&&(y.type="spring"),c.render=h.extend(y,c.render),c},r.preSolveAll=function(d){for(var c=0;c<d.length;c+=1){var p=d[c],g=p.constraintImpulse;p.isStatic||g.x===0&&g.y===0&&g.angle===0||(p.position.x+=g.x,p.position.y+=g.y,p.angle+=g.angle)}},r.solveAll=function(d,c){for(var p=h.clamp(c/h._baseDelta,0,1),g=0;g<d.length;g+=1){var m=d[g],y=!m.bodyA||m.bodyA&&m.bodyA.isStatic,_=!m.bodyB||m.bodyB&&m.bodyB.isStatic;(y||_)&&r.solve(d[g],p)}for(g=0;g<d.length;g+=1)m=d[g],y=!m.bodyA||m.bodyA&&m.bodyA.isStatic,_=!m.bodyB||m.bodyB&&m.bodyB.isStatic,!y&&!_&&r.solve(d[g],p)},r.solve=function(d,c){var p=d.bodyA,g=d.bodyB,m=d.pointA,y=d.pointB;if(!(!p&&!g)){p&&!p.isStatic&&(a.rotate(m,p.angle-d.angleA,m),d.angleA=p.angle),g&&!g.isStatic&&(a.rotate(y,g.angle-d.angleB,y),d.angleB=g.angle);var _=m,x=y;if(p&&(_=a.add(p.position,m)),g&&(x=a.add(g.position,y)),!(!_||!x)){var E=a.sub(_,x),v=a.magnitude(E);v<r._minLength&&(v=r._minLength);var b=(v-d.length)/v,S=d.stiffness>=1||d.length===0,w=S?d.stiffness*c:d.stiffness*c*c,P=d.damping*c,C=a.mult(E,b*w),I=(p?p.inverseMass:0)+(g?g.inverseMass:0),L=(p?p.inverseInertia:0)+(g?g.inverseInertia:0),O=I+L,k,D,V,j,Y;if(P>0){var se=a.create();V=a.div(E,v),Y=a.sub(g&&a.sub(g.position,g.positionPrev)||se,p&&a.sub(p.position,p.positionPrev)||se),j=a.dot(V,Y)}p&&!p.isStatic&&(D=p.inverseMass/I,p.constraintImpulse.x-=C.x*D,p.constraintImpulse.y-=C.y*D,p.position.x-=C.x*D,p.position.y-=C.y*D,P>0&&(p.positionPrev.x-=P*V.x*j*D,p.positionPrev.y-=P*V.y*j*D),k=a.cross(m,C)/O*r._torqueDampen*p.inverseInertia*(1-d.angularStiffness),p.constraintImpulse.angle-=k,p.angle-=k),g&&!g.isStatic&&(D=g.inverseMass/I,g.constraintImpulse.x+=C.x*D,g.constraintImpulse.y+=C.y*D,g.position.x+=C.x*D,g.position.y+=C.y*D,P>0&&(g.positionPrev.x+=P*V.x*j*D,g.positionPrev.y+=P*V.y*j*D),k=a.cross(y,C)/O*r._torqueDampen*g.inverseInertia*(1-d.angularStiffness),g.constraintImpulse.angle+=k,g.angle+=k)}}},r.postSolveAll=function(d){for(var c=0;c<d.length;c++){var p=d[c],g=p.constraintImpulse;if(!(p.isStatic||g.x===0&&g.y===0&&g.angle===0)){l.set(p,!1);for(var m=0;m<p.parts.length;m++){var y=p.parts[m];i.translate(y.vertices,g),m>0&&(y.position.x+=g.x,y.position.y+=g.y),g.angle!==0&&(i.rotate(y.vertices,g.angle,p.position),f.rotate(y.axes,g.angle),m>0&&a.rotateAbout(y.position,g.angle,p.position,y.position)),u.update(y.bounds,y.vertices,p.velocity)}g.angle*=r._warming,g.x*=r._warming,g.y*=r._warming}}},r.pointAWorld=function(d){return{x:(d.bodyA?d.bodyA.position.x:0)+(d.pointA?d.pointA.x:0),y:(d.bodyA?d.bodyA.position.y:0)+(d.pointA?d.pointA.y:0)}},r.pointBWorld=function(d){return{x:(d.bodyB?d.bodyB.position.x:0)+(d.pointB?d.pointB.x:0),y:(d.bodyB?d.bodyB.position.y:0)+(d.pointB?d.pointB.y:0)}}})()},function(n,o,s){var r={};n.exports=r;var i=s(2),a=s(0);(function(){r.fromVertices=function(l){for(var u={},f=0;f<l.length;f++){var h=(f+1)%l.length,d=i.normalise({x:l[h].y-l[f].y,y:l[f].x-l[h].x}),c=d.y===0?1/0:d.x/d.y;c=c.toFixed(3).toString(),u[c]=d}return a.values(u)},r.rotate=function(l,u){if(u!==0)for(var f=Math.cos(u),h=Math.sin(u),d=0;d<l.length;d++){var c=l[d],p;p=c.x*f-c.y*h,c.y=c.x*h+c.y*f,c.x=p}}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(0),l=s(4),u=s(1),f=s(2);(function(){r.rectangle=function(h,d,c,p,g){g=g||{};var m={label:"Rectangle Body",position:{x:h,y:d},vertices:i.fromPath("L 0 0 L "+c+" 0 L "+c+" "+p+" L 0 "+p)};if(g.chamfer){var y=g.chamfer;m.vertices=i.chamfer(m.vertices,y.radius,y.quality,y.qualityMin,y.qualityMax),delete g.chamfer}return l.create(a.extend({},m,g))},r.trapezoid=function(h,d,c,p,g,m){m=m||{},g*=.5;var y=(1-g*2)*c,_=c*g,x=_+y,E=x+_,v;g<.5?v="L 0 0 L "+_+" "+-p+" L "+x+" "+-p+" L "+E+" 0":v="L 0 0 L "+x+" "+-p+" L "+E+" 0";var b={label:"Trapezoid Body",position:{x:h,y:d},vertices:i.fromPath(v)};if(m.chamfer){var S=m.chamfer;b.vertices=i.chamfer(b.vertices,S.radius,S.quality,S.qualityMin,S.qualityMax),delete m.chamfer}return l.create(a.extend({},b,m))},r.circle=function(h,d,c,p,g){p=p||{};var m={label:"Circle Body",circleRadius:c};g=g||25;var y=Math.ceil(Math.max(10,Math.min(g,c)));return y%2===1&&(y+=1),r.polygon(h,d,y,c,a.extend({},m,p))},r.polygon=function(h,d,c,p,g){if(g=g||{},c<3)return r.circle(h,d,p,g);for(var m=2*Math.PI/c,y="",_=m*.5,x=0;x<c;x+=1){var E=_+x*m,v=Math.cos(E)*p,b=Math.sin(E)*p;y+="L "+v.toFixed(3)+" "+b.toFixed(3)+" "}var S={label:"Polygon Body",position:{x:h,y:d},vertices:i.fromPath(y)};if(g.chamfer){var w=g.chamfer;S.vertices=i.chamfer(S.vertices,w.radius,w.quality,w.qualityMin,w.qualityMax),delete g.chamfer}return l.create(a.extend({},S,g))},r.fromVertices=function(h,d,c,p,g,m,y,_){var x=a.getDecomp(),E,v,b,S,w,P,C,I,L,O,k;for(E=!!(x&&x.quickDecomp),p=p||{},b=[],g=typeof g<"u"?g:!1,m=typeof m<"u"?m:.01,y=typeof y<"u"?y:10,_=typeof _<"u"?_:.01,a.isArray(c[0])||(c=[c]),O=0;O<c.length;O+=1)if(P=c[O],S=i.isConvex(P),w=!S,w&&!E&&a.warnOnce("Bodies.fromVertices: Install the 'poly-decomp' library and use Common.setDecomp or provide 'decomp' as a global to decompose concave vertices."),S||!E)S?P=i.clockwiseSort(P):P=i.hull(P),b.push({position:{x:h,y:d},vertices:P});else{var D=P.map(function(W){return[W.x,W.y]});x.makeCCW(D),m!==!1&&x.removeCollinearPoints(D,m),_!==!1&&x.removeDuplicatePoints&&x.removeDuplicatePoints(D,_);var V=x.quickDecomp(D);for(C=0;C<V.length;C++){var j=V[C],Y=j.map(function(W){return{x:W[0],y:W[1]}});y>0&&i.area(Y)<y||b.push({position:i.centre(Y),vertices:Y})}}for(C=0;C<b.length;C++)b[C]=l.create(a.extend(b[C],p));if(g){var se=5;for(C=0;C<b.length;C++){var ce=b[C];for(I=C+1;I<b.length;I++){var pe=b[I];if(u.overlaps(ce.bounds,pe.bounds)){var ee=ce.vertices,we=pe.vertices;for(L=0;L<ce.vertices.length;L++)for(k=0;k<pe.vertices.length;k++){var be=f.magnitudeSquared(f.sub(ee[(L+1)%ee.length],we[k])),B=f.magnitudeSquared(f.sub(ee[L],we[(k+1)%we.length]));be<se&&B<se&&(ee[L].isInternal=!0,we[k].isInternal=!0)}}}}}return b.length>1?(v=l.create(a.extend({parts:b.slice(0)},p)),l.setPosition(v,{x:h,y:d}),v):b[0]}})()},function(n,o,s){var r={};n.exports=r;var i=s(0),a=s(8);(function(){r.create=function(l){var u={bodies:[],pairs:null};return i.extend(u,l)},r.setBodies=function(l,u){l.bodies=u.slice(0)},r.clear=function(l){l.bodies=[]},r.collisions=function(l){var u=[],f=l.pairs,h=l.bodies,d=h.length,c=r.canCollide,p=a.collides,g,m;for(h.sort(r._compareBoundsX),g=0;g<d;g++){var y=h[g],_=y.bounds,x=y.bounds.max.x,E=y.bounds.max.y,v=y.bounds.min.y,b=y.isStatic||y.isSleeping,S=y.parts.length,w=S===1;for(m=g+1;m<d;m++){var P=h[m],C=P.bounds;if(C.min.x>x)break;if(!(E<C.min.y||v>C.max.y)&&!(b&&(P.isStatic||P.isSleeping))&&c(y.collisionFilter,P.collisionFilter)){var I=P.parts.length;if(w&&I===1){var L=p(y,P,f);L&&u.push(L)}else for(var O=S>1?1:0,k=I>1?1:0,D=O;D<S;D++)for(var V=y.parts[D],_=V.bounds,j=k;j<I;j++){var Y=P.parts[j],C=Y.bounds;if(!(_.min.x>C.max.x||_.max.x<C.min.x||_.max.y<C.min.y||_.min.y>C.max.y)){var L=p(V,Y,f);L&&u.push(L)}}}}}return u},r.canCollide=function(l,u){return l.group===u.group&&l.group!==0?l.group>0:(l.mask&u.category)!==0&&(u.mask&l.category)!==0},r._compareBoundsX=function(l,u){return l.bounds.min.x-u.bounds.min.x}})()},function(n,o,s){var r={};n.exports=r;var i=s(0);(function(){r.create=function(a){var l={};return a||i.log("Mouse.create: element was undefined, defaulting to document.body","warn"),l.element=a||document.body,l.absolute={x:0,y:0},l.position={x:0,y:0},l.mousedownPosition={x:0,y:0},l.mouseupPosition={x:0,y:0},l.offset={x:0,y:0},l.scale={x:1,y:1},l.wheelDelta=0,l.button=-1,l.pixelRatio=parseInt(l.element.getAttribute("data-pixel-ratio"),10)||1,l.sourceEvents={mousemove:null,mousedown:null,mouseup:null,mousewheel:null},l.mousemove=function(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h&&(l.button=0,u.preventDefault()),l.absolute.x=f.x,l.absolute.y=f.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.sourceEvents.mousemove=u},l.mousedown=function(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h?(l.button=0,u.preventDefault()):l.button=u.button,l.absolute.x=f.x,l.absolute.y=f.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mousedownPosition.x=l.position.x,l.mousedownPosition.y=l.position.y,l.sourceEvents.mousedown=u},l.mouseup=function(u){var f=r._getRelativeMousePosition(u,l.element,l.pixelRatio),h=u.changedTouches;h&&u.preventDefault(),l.button=-1,l.absolute.x=f.x,l.absolute.y=f.y,l.position.x=l.absolute.x*l.scale.x+l.offset.x,l.position.y=l.absolute.y*l.scale.y+l.offset.y,l.mouseupPosition.x=l.position.x,l.mouseupPosition.y=l.position.y,l.sourceEvents.mouseup=u},l.mousewheel=function(u){l.wheelDelta=Math.max(-1,Math.min(1,u.wheelDelta||-u.detail)),u.preventDefault()},r.setElement(l,l.element),l},r.setElement=function(a,l){a.element=l,l.addEventListener("mousemove",a.mousemove),l.addEventListener("mousedown",a.mousedown),l.addEventListener("mouseup",a.mouseup),l.addEventListener("mousewheel",a.mousewheel),l.addEventListener("DOMMouseScroll",a.mousewheel),l.addEventListener("touchmove",a.mousemove),l.addEventListener("touchstart",a.mousedown),l.addEventListener("touchend",a.mouseup)},r.clearSourceEvents=function(a){a.sourceEvents.mousemove=null,a.sourceEvents.mousedown=null,a.sourceEvents.mouseup=null,a.sourceEvents.mousewheel=null,a.wheelDelta=0},r.setOffset=function(a,l){a.offset.x=l.x,a.offset.y=l.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y},r.setScale=function(a,l){a.scale.x=l.x,a.scale.y=l.y,a.position.x=a.absolute.x*a.scale.x+a.offset.x,a.position.y=a.absolute.y*a.scale.y+a.offset.y},r._getRelativeMousePosition=function(a,l,u){var f=l.getBoundingClientRect(),h=document.documentElement||document.body.parentNode||document.body,d=window.pageXOffset!==void 0?window.pageXOffset:h.scrollLeft,c=window.pageYOffset!==void 0?window.pageYOffset:h.scrollTop,p=a.changedTouches,g,m;return p?(g=p[0].pageX-f.left-d,m=p[0].pageY-f.top-c):(g=a.pageX-f.left-d,m=a.pageY-f.top-c),{x:g/(l.clientWidth/(l.width||l.clientWidth)*u),y:m/(l.clientHeight/(l.height||l.clientHeight)*u)}}})()},function(n,o,s){var r={};n.exports=r;var i=s(0);(function(){r._registry={},r.register=function(a){if(r.isPlugin(a)||i.warn("Plugin.register:",r.toString(a),"does not implement all required fields."),a.name in r._registry){var l=r._registry[a.name],u=r.versionParse(a.version).number,f=r.versionParse(l.version).number;u>f?(i.warn("Plugin.register:",r.toString(l),"was upgraded to",r.toString(a)),r._registry[a.name]=a):u<f?i.warn("Plugin.register:",r.toString(l),"can not be downgraded to",r.toString(a)):a!==l&&i.warn("Plugin.register:",r.toString(a),"is already registered to different plugin object")}else r._registry[a.name]=a;return a},r.resolve=function(a){return r._registry[r.dependencyParse(a).name]},r.toString=function(a){return typeof a=="string"?a:(a.name||"anonymous")+"@"+(a.version||a.range||"0.0.0")},r.isPlugin=function(a){return a&&a.name&&a.version&&a.install},r.isUsed=function(a,l){return a.used.indexOf(l)>-1},r.isFor=function(a,l){var u=a.for&&r.dependencyParse(a.for);return!a.for||l.name===u.name&&r.versionSatisfies(l.version,u.range)},r.use=function(a,l){if(a.uses=(a.uses||[]).concat(l||[]),a.uses.length===0){i.warn("Plugin.use:",r.toString(a),"does not specify any dependencies to install.");return}for(var u=r.dependencies(a),f=i.topologicalSort(u),h=[],d=0;d<f.length;d+=1)if(f[d]!==a.name){var c=r.resolve(f[d]);if(!c){h.push("❌ "+f[d]);continue}r.isUsed(a,c.name)||(r.isFor(c,a)||(i.warn("Plugin.use:",r.toString(c),"is for",c.for,"but installed on",r.toString(a)+"."),c._warned=!0),c.install?c.install(a):(i.warn("Plugin.use:",r.toString(c),"does not specify an install function."),c._warned=!0),c._warned?(h.push("🔶 "+r.toString(c)),delete c._warned):h.push("✅ "+r.toString(c)),a.used.push(c.name))}h.length>0&&i.info(h.join(" "))},r.dependencies=function(a,l){var u=r.dependencyParse(a),f=u.name;if(l=l||{},!(f in l)){a=r.resolve(a)||a,l[f]=i.map(a.uses||[],function(d){r.isPlugin(d)&&r.register(d);var c=r.dependencyParse(d),p=r.resolve(d);return p&&!r.versionSatisfies(p.version,c.range)?(i.warn("Plugin.dependencies:",r.toString(p),"does not satisfy",r.toString(c),"used by",r.toString(u)+"."),p._warned=!0,a._warned=!0):p||(i.warn("Plugin.dependencies:",r.toString(d),"used by",r.toString(u),"could not be resolved."),a._warned=!0),c.name});for(var h=0;h<l[f].length;h+=1)r.dependencies(l[f][h],l);return l}},r.dependencyParse=function(a){if(i.isString(a)){var l=/^[\w-]+(@(\*|[\^~]?\d+\.\d+\.\d+(-[0-9A-Za-z-+]+)?))?$/;return l.test(a)||i.warn("Plugin.dependencyParse:",a,"is not a valid dependency string."),{name:a.split("@")[0],range:a.split("@")[1]||"*"}}return{name:a.name,range:a.range||a.version}},r.versionParse=function(a){var l=/^(\*)|(\^|~|>=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/;l.test(a)||i.warn("Plugin.versionParse:",a,"is not a valid version or range.");var u=l.exec(a),f=Number(u[4]),h=Number(u[5]),d=Number(u[6]);return{isRange:!!(u[1]||u[2]),version:u[3],range:a,operator:u[1]||u[2]||"",major:f,minor:h,patch:d,parts:[f,h,d],prerelease:u[7],number:f*1e8+h*1e4+d}},r.versionSatisfies=function(a,l){l=l||"*";var u=r.versionParse(l),f=r.versionParse(a);if(u.isRange){if(u.operator==="*"||a==="*")return!0;if(u.operator===">")return f.number>u.number;if(u.operator===">=")return f.number>=u.number;if(u.operator==="~")return f.major===u.major&&f.minor===u.minor&&f.patch>=u.patch;if(u.operator==="^")return u.major>0?f.major===u.major&&f.number>=u.number:u.minor>0?f.minor===u.minor&&f.patch>=u.patch:f.patch===u.patch}return a===l||a==="*"}})()},function(n,o){var s={};n.exports=s,function(){s.create=function(r){return{vertex:r,normalImpulse:0,tangentImpulse:0}}}()},function(n,o,s){var r={};n.exports=r;var i=s(7),a=s(18),l=s(13),u=s(19),f=s(5),h=s(6),d=s(10),c=s(0),p=s(4);(function(){r.create=function(g){g=g||{};var m={positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},y=c.extend(m,g);return y.world=g.world||h.create({label:"World"}),y.pairs=g.pairs||u.create(),y.detector=g.detector||l.create(),y.grid={buckets:[]},y.world.gravity=y.gravity,y.broadphase=y.grid,y.metrics={},y},r.update=function(g,m){var y=c.now(),_=g.world,x=g.detector,E=g.pairs,v=g.timing,b=v.timestamp,S;m=typeof m<"u"?m:c._baseDelta,m*=v.timeScale,v.timestamp+=m,v.lastDelta=m;var w={timestamp:v.timestamp,delta:m};f.trigger(g,"beforeUpdate",w);var P=h.allBodies(_),C=h.allConstraints(_);for(_.isModified&&(l.setBodies(x,P),h.setModified(_,!1,!1,!0)),g.enableSleeping&&i.update(P,m),r._bodiesApplyGravity(P,g.gravity),m>0&&r._bodiesUpdate(P,m),d.preSolveAll(P),S=0;S<g.constraintIterations;S++)d.solveAll(C,m);d.postSolveAll(P),x.pairs=g.pairs;var I=l.collisions(x);u.update(E,I,b),g.enableSleeping&&i.afterCollisions(E.list),E.collisionStart.length>0&&f.trigger(g,"collisionStart",{pairs:E.collisionStart});var L=c.clamp(20/g.positionIterations,0,1);for(a.preSolvePosition(E.list),S=0;S<g.positionIterations;S++)a.solvePosition(E.list,m,L);for(a.postSolvePosition(P),d.preSolveAll(P),S=0;S<g.constraintIterations;S++)d.solveAll(C,m);for(d.postSolveAll(P),a.preSolveVelocity(E.list),S=0;S<g.velocityIterations;S++)a.solveVelocity(E.list,m);return r._bodiesUpdateVelocities(P),E.collisionActive.length>0&&f.trigger(g,"collisionActive",{pairs:E.collisionActive}),E.collisionEnd.length>0&&f.trigger(g,"collisionEnd",{pairs:E.collisionEnd}),r._bodiesClearForces(P),f.trigger(g,"afterUpdate",w),g.timing.lastElapsed=c.now()-y,g},r.merge=function(g,m){if(c.extend(g,m),m.world){g.world=m.world,r.clear(g);for(var y=h.allBodies(g.world),_=0;_<y.length;_++){var x=y[_];i.set(x,!1),x.id=c.nextId()}}},r.clear=function(g){u.clear(g.pairs),l.clear(g.detector)},r._bodiesClearForces=function(g){for(var m=g.length,y=0;y<m;y++){var _=g[y];_.force.x=0,_.force.y=0,_.torque=0}},r._bodiesApplyGravity=function(g,m){var y=typeof m.scale<"u"?m.scale:.001,_=g.length;if(!(m.x===0&&m.y===0||y===0))for(var x=0;x<_;x++){var E=g[x];E.isStatic||E.isSleeping||(E.force.y+=E.mass*m.y*y,E.force.x+=E.mass*m.x*y)}},r._bodiesUpdate=function(g,m){for(var y=g.length,_=0;_<y;_++){var x=g[_];x.isStatic||x.isSleeping||p.update(x,m)}},r._bodiesUpdateVelocities=function(g){for(var m=g.length,y=0;y<m;y++)p.updateVelocities(g[y])}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(0),l=s(1);(function(){r._restingThresh=2,r._restingThreshTangent=Math.sqrt(6),r._positionDampen=.9,r._positionWarming=.8,r._frictionNormalMultiplier=5,r._frictionMaxStatic=Number.MAX_VALUE,r.preSolvePosition=function(u){var f,h,d,c=u.length;for(f=0;f<c;f++)h=u[f],h.isActive&&(d=h.activeContacts.length,h.collision.parentA.totalContacts+=d,h.collision.parentB.totalContacts+=d)},r.solvePosition=function(u,f,h){var d,c,p,g,m,y,_,x,E=r._positionDampen*(h||1),v=a.clamp(f/a._baseDelta,0,1),b=u.length;for(d=0;d<b;d++)c=u[d],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,m=p.parentB,y=p.normal,c.separation=y.x*(m.positionImpulse.x+p.penetration.x-g.positionImpulse.x)+y.y*(m.positionImpulse.y+p.penetration.y-g.positionImpulse.y));for(d=0;d<b;d++)c=u[d],!(!c.isActive||c.isSensor)&&(p=c.collision,g=p.parentA,m=p.parentB,y=p.normal,x=c.separation-c.slop*v,(g.isStatic||m.isStatic)&&(x*=2),g.isStatic||g.isSleeping||(_=E/g.totalContacts,g.positionImpulse.x+=y.x*x*_,g.positionImpulse.y+=y.y*x*_),m.isStatic||m.isSleeping||(_=E/m.totalContacts,m.positionImpulse.x-=y.x*x*_,m.positionImpulse.y-=y.y*x*_))},r.postSolvePosition=function(u){for(var f=r._positionWarming,h=u.length,d=i.translate,c=l.update,p=0;p<h;p++){var g=u[p],m=g.positionImpulse,y=m.x,_=m.y,x=g.velocity;if(g.totalContacts=0,y!==0||_!==0){for(var E=0;E<g.parts.length;E++){var v=g.parts[E];d(v.vertices,m),c(v.bounds,v.vertices,x),v.position.x+=y,v.position.y+=_}g.positionPrev.x+=y,g.positionPrev.y+=_,y*x.x+_*x.y<0?(m.x=0,m.y=0):(m.x*=f,m.y*=f)}}},r.preSolveVelocity=function(u){var f=u.length,h,d;for(h=0;h<f;h++){var c=u[h];if(!(!c.isActive||c.isSensor)){var p=c.activeContacts,g=p.length,m=c.collision,y=m.parentA,_=m.parentB,x=m.normal,E=m.tangent;for(d=0;d<g;d++){var v=p[d],b=v.vertex,S=v.normalImpulse,w=v.tangentImpulse;if(S!==0||w!==0){var P=x.x*S+E.x*w,C=x.y*S+E.y*w;y.isStatic||y.isSleeping||(y.positionPrev.x+=P*y.inverseMass,y.positionPrev.y+=C*y.inverseMass,y.anglePrev+=y.inverseInertia*((b.x-y.position.x)*C-(b.y-y.position.y)*P)),_.isStatic||_.isSleeping||(_.positionPrev.x-=P*_.inverseMass,_.positionPrev.y-=C*_.inverseMass,_.anglePrev-=_.inverseInertia*((b.x-_.position.x)*C-(b.y-_.position.y)*P))}}}}},r.solveVelocity=function(u,f){var h=f/a._baseDelta,d=h*h,c=d*h,p=-r._restingThresh*h,g=r._restingThreshTangent,m=r._frictionNormalMultiplier*h,y=r._frictionMaxStatic,_=u.length,x,E,v,b;for(v=0;v<_;v++){var S=u[v];if(!(!S.isActive||S.isSensor)){var w=S.collision,P=w.parentA,C=w.parentB,I=P.velocity,L=C.velocity,O=w.normal.x,k=w.normal.y,D=w.tangent.x,V=w.tangent.y,j=S.activeContacts,Y=j.length,se=1/Y,ce=P.inverseMass+C.inverseMass,pe=S.friction*S.frictionStatic*m;for(I.x=P.position.x-P.positionPrev.x,I.y=P.position.y-P.positionPrev.y,L.x=C.position.x-C.positionPrev.x,L.y=C.position.y-C.positionPrev.y,P.angularVelocity=P.angle-P.anglePrev,C.angularVelocity=C.angle-C.anglePrev,b=0;b<Y;b++){var ee=j[b],we=ee.vertex,be=we.x-P.position.x,B=we.y-P.position.y,W=we.x-C.position.x,G=we.y-C.position.y,X=I.x-B*P.angularVelocity,le=I.y+be*P.angularVelocity,xe=L.x-G*C.angularVelocity,ae=L.y+W*C.angularVelocity,R=X-xe,A=le-ae,N=O*R+k*A,$=D*R+V*A,U=S.separation+N,z=Math.min(U,1);z=U<0?0:z;var Q=z*pe;$<-Q||$>Q?(E=$>0?$:-$,x=S.friction*($>0?1:-1)*c,x<-E?x=-E:x>E&&(x=E)):(x=$,E=y);var K=be*k-B*O,J=W*k-G*O,H=se/(ce+P.inverseInertia*K*K+C.inverseInertia*J*J),M=(1+S.restitution)*N*H;if(x*=H,N<p)ee.normalImpulse=0;else{var F=ee.normalImpulse;ee.normalImpulse+=M,ee.normalImpulse>0&&(ee.normalImpulse=0),M=ee.normalImpulse-F}if($<-g||$>g)ee.tangentImpulse=0;else{var Z=ee.tangentImpulse;ee.tangentImpulse+=x,ee.tangentImpulse<-E&&(ee.tangentImpulse=-E),ee.tangentImpulse>E&&(ee.tangentImpulse=E),x=ee.tangentImpulse-Z}var q=O*M+D*x,re=k*M+V*x;P.isStatic||P.isSleeping||(P.positionPrev.x+=q*P.inverseMass,P.positionPrev.y+=re*P.inverseMass,P.anglePrev+=(be*re-B*q)*P.inverseInertia),C.isStatic||C.isSleeping||(C.positionPrev.x-=q*C.inverseMass,C.positionPrev.y-=re*C.inverseMass,C.anglePrev-=(W*re-G*q)*C.inverseInertia)}}}}})()},function(n,o,s){var r={};n.exports=r;var i=s(9),a=s(0);(function(){r.create=function(l){return a.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},l)},r.update=function(l,u,f){var h=l.list,d=h.length,c=l.table,p=u.length,g=l.collisionStart,m=l.collisionEnd,y=l.collisionActive,_,x,E,v;for(g.length=0,m.length=0,y.length=0,v=0;v<d;v++)h[v].confirmedActive=!1;for(v=0;v<p;v++)_=u[v],E=_.pair,E?(E.isActive?y.push(E):g.push(E),i.update(E,_,f),E.confirmedActive=!0):(E=i.create(_,f),c[E.id]=E,g.push(E),h.push(E));var b=[];for(d=h.length,v=0;v<d;v++)E=h[v],E.confirmedActive||(i.setActive(E,!1,f),m.push(E),!E.collision.bodyA.isSleeping&&!E.collision.bodyB.isSleeping&&b.push(v));for(v=0;v<b.length;v++)x=b[v]-v,E=h[x],h.splice(x,1),delete c[E.id]},r.clear=function(l){return l.table={},l.list.length=0,l.collisionStart.length=0,l.collisionActive.length=0,l.collisionEnd.length=0,l}})()},function(n,o,s){var r=n.exports=s(21);r.Axes=s(11),r.Bodies=s(12),r.Body=s(4),r.Bounds=s(1),r.Collision=s(8),r.Common=s(0),r.Composite=s(6),r.Composites=s(22),r.Constraint=s(10),r.Contact=s(16),r.Detector=s(13),r.Engine=s(17),r.Events=s(5),r.Grid=s(23),r.Mouse=s(14),r.MouseConstraint=s(24),r.Pair=s(9),r.Pairs=s(19),r.Plugin=s(15),r.Query=s(25),r.Render=s(26),r.Resolver=s(18),r.Runner=s(27),r.SAT=s(28),r.Sleeping=s(7),r.Svg=s(29),r.Vector=s(2),r.Vertices=s(3),r.World=s(30),r.Engine.run=r.Runner.run,r.Common.deprecated(r.Engine,"run","Engine.run ➤ use Matter.Runner.run(engine) instead")},function(n,o,s){var r={};n.exports=r;var i=s(15),a=s(0);(function(){r.name="matter-js",r.version="0.19.0",r.uses=[],r.used=[],r.use=function(){i.use(r,Array.prototype.slice.call(arguments))},r.before=function(l,u){return l=l.replace(/^Matter./,""),a.chainPathBefore(r,l,u)},r.after=function(l,u){return l=l.replace(/^Matter./,""),a.chainPathAfter(r,l,u)}})()},function(n,o,s){var r={};n.exports=r;var i=s(6),a=s(10),l=s(0),u=s(4),f=s(12),h=l.deprecated;(function(){r.stack=function(d,c,p,g,m,y,_){for(var x=i.create({label:"Stack"}),E=d,v=c,b,S=0,w=0;w<g;w++){for(var P=0,C=0;C<p;C++){var I=_(E,v,C,w,b,S);if(I){var L=I.bounds.max.y-I.bounds.min.y,O=I.bounds.max.x-I.bounds.min.x;L>P&&(P=L),u.translate(I,{x:O*.5,y:L*.5}),E=I.bounds.max.x+m,i.addBody(x,I),b=I,S+=1}else E+=m}v+=P+y,E=d}return x},r.chain=function(d,c,p,g,m,y){for(var _=d.bodies,x=1;x<_.length;x++){var E=_[x-1],v=_[x],b=E.bounds.max.y-E.bounds.min.y,S=E.bounds.max.x-E.bounds.min.x,w=v.bounds.max.y-v.bounds.min.y,P=v.bounds.max.x-v.bounds.min.x,C={bodyA:E,pointA:{x:S*c,y:b*p},bodyB:v,pointB:{x:P*g,y:w*m}},I=l.extend(C,y);i.addConstraint(d,a.create(I))}return d.label+=" Chain",d},r.mesh=function(d,c,p,g,m){var y=d.bodies,_,x,E,v,b;for(_=0;_<p;_++){for(x=1;x<c;x++)E=y[x-1+_*c],v=y[x+_*c],i.addConstraint(d,a.create(l.extend({bodyA:E,bodyB:v},m)));if(_>0)for(x=0;x<c;x++)E=y[x+(_-1)*c],v=y[x+_*c],i.addConstraint(d,a.create(l.extend({bodyA:E,bodyB:v},m))),g&&x>0&&(b=y[x-1+(_-1)*c],i.addConstraint(d,a.create(l.extend({bodyA:b,bodyB:v},m)))),g&&x<c-1&&(b=y[x+1+(_-1)*c],i.addConstraint(d,a.create(l.extend({bodyA:b,bodyB:v},m))))}return d.label+=" Mesh",d},r.pyramid=function(d,c,p,g,m,y,_){return r.stack(d,c,p,g,m,y,function(x,E,v,b,S,w){var P=Math.min(g,Math.ceil(p/2)),C=S?S.bounds.max.x-S.bounds.min.x:0;if(!(b>P)){b=P-b;var I=b,L=p-1-b;if(!(v<I||v>L)){w===1&&u.translate(S,{x:(v+(p%2===1?1:-1))*C,y:0});var O=S?v*C:0;return _(d+O+v*m,E,v,b,S,w)}}})},r.newtonsCradle=function(d,c,p,g,m){for(var y=i.create({label:"Newtons Cradle"}),_=0;_<p;_++){var x=1.9,E=f.circle(d+_*(g*x),c+m,g,{inertia:1/0,restitution:1,friction:0,frictionAir:1e-4,slop:1}),v=a.create({pointA:{x:d+_*(g*x),y:c},bodyB:E});i.addBody(y,E),i.addConstraint(y,v)}return y},h(r,"newtonsCradle","Composites.newtonsCradle ➤ moved to newtonsCradle example"),r.car=function(d,c,p,g,m){var y=u.nextGroup(!0),_=20,x=-p*.5+_,E=p*.5-_,v=0,b=i.create({label:"Car"}),S=f.rectangle(d,c,p,g,{collisionFilter:{group:y},chamfer:{radius:g*.5},density:2e-4}),w=f.circle(d+x,c+v,m,{collisionFilter:{group:y},friction:.8}),P=f.circle(d+E,c+v,m,{collisionFilter:{group:y},friction:.8}),C=a.create({bodyB:S,pointB:{x,y:v},bodyA:w,stiffness:1,length:0}),I=a.create({bodyB:S,pointB:{x:E,y:v},bodyA:P,stiffness:1,length:0});return i.addBody(b,S),i.addBody(b,w),i.addBody(b,P),i.addConstraint(b,C),i.addConstraint(b,I),b},h(r,"car","Composites.car ➤ moved to car example"),r.softBody=function(d,c,p,g,m,y,_,x,E,v){E=l.extend({inertia:1/0},E),v=l.extend({stiffness:.2,render:{type:"line",anchors:!1}},v);var b=r.stack(d,c,p,g,m,y,function(S,w){return f.circle(S,w,x,E)});return r.mesh(b,p,g,_,v),b.label="Soft Body",b},h(r,"softBody","Composites.softBody ➤ moved to softBody and cloth examples")})()},function(n,o,s){var r={};n.exports=r;var i=s(9),a=s(0),l=a.deprecated;(function(){r.create=function(u){var f={buckets:{},pairs:{},pairsList:[],bucketWidth:48,bucketHeight:48};return a.extend(f,u)},r.update=function(u,f,h,d){var c,p,g,m=h.world,y=u.buckets,_,x,E=!1;for(c=0;c<f.length;c++){var v=f[c];if(!(v.isSleeping&&!d)&&!(m.bounds&&(v.bounds.max.x<m.bounds.min.x||v.bounds.min.x>m.bounds.max.x||v.bounds.max.y<m.bounds.min.y||v.bounds.min.y>m.bounds.max.y))){var b=r._getRegion(u,v);if(!v.region||b.id!==v.region.id||d){(!v.region||d)&&(v.region=b);var S=r._regionUnion(b,v.region);for(p=S.startCol;p<=S.endCol;p++)for(g=S.startRow;g<=S.endRow;g++){x=r._getBucketId(p,g),_=y[x];var w=p>=b.startCol&&p<=b.endCol&&g>=b.startRow&&g<=b.endRow,P=p>=v.region.startCol&&p<=v.region.endCol&&g>=v.region.startRow&&g<=v.region.endRow;!w&&P&&P&&_&&r._bucketRemoveBody(u,_,v),(v.region===b||w&&!P||d)&&(_||(_=r._createBucket(y,x)),r._bucketAddBody(u,_,v))}v.region=b,E=!0}}}E&&(u.pairsList=r._createActivePairsList(u))},l(r,"update","Grid.update ➤ replaced by Matter.Detector"),r.clear=function(u){u.buckets={},u.pairs={},u.pairsList=[]},l(r,"clear","Grid.clear ➤ replaced by Matter.Detector"),r._regionUnion=function(u,f){var h=Math.min(u.startCol,f.startCol),d=Math.max(u.endCol,f.endCol),c=Math.min(u.startRow,f.startRow),p=Math.max(u.endRow,f.endRow);return r._createRegion(h,d,c,p)},r._getRegion=function(u,f){var h=f.bounds,d=Math.floor(h.min.x/u.bucketWidth),c=Math.floor(h.max.x/u.bucketWidth),p=Math.floor(h.min.y/u.bucketHeight),g=Math.floor(h.max.y/u.bucketHeight);return r._createRegion(d,c,p,g)},r._createRegion=function(u,f,h,d){return{id:u+","+f+","+h+","+d,startCol:u,endCol:f,startRow:h,endRow:d}},r._getBucketId=function(u,f){return"C"+u+"R"+f},r._createBucket=function(u,f){var h=u[f]=[];return h},r._bucketAddBody=function(u,f,h){var d=u.pairs,c=i.id,p=f.length,g;for(g=0;g<p;g++){var m=f[g];if(!(h.id===m.id||h.isStatic&&m.isStatic)){var y=c(h,m),_=d[y];_?_[2]+=1:d[y]=[h,m,1]}}f.push(h)},r._bucketRemoveBody=function(u,f,h){var d=u.pairs,c=i.id,p;f.splice(a.indexOf(f,h),1);var g=f.length;for(p=0;p<g;p++){var m=d[c(h,f[p])];m&&(m[2]-=1)}},r._createActivePairsList=function(u){var f,h=u.pairs,d=a.keys(h),c=d.length,p=[],g;for(g=0;g<c;g++)f=h[d[g]],f[2]>0?p.push(f):delete h[d[g]];return p}})()},function(n,o,s){var r={};n.exports=r;var i=s(3),a=s(7),l=s(14),u=s(5),f=s(13),h=s(10),d=s(6),c=s(0),p=s(1);(function(){r.create=function(g,m){var y=(g?g.mouse:null)||(m?m.mouse:null);y||(g&&g.render&&g.render.canvas?y=l.create(g.render.canvas):m&&m.element?y=l.create(m.element):(y=l.create(),c.warn("MouseConstraint.create: options.mouse was undefined, options.element was undefined, may not function as expected")));var _=h.create({label:"Mouse Constraint",pointA:y.position,pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,render:{strokeStyle:"#90EE90",lineWidth:3}}),x={type:"mouseConstraint",mouse:y,element:null,body:null,constraint:_,collisionFilter:{category:1,mask:4294967295,group:0}},E=c.extend(x,m);return u.on(g,"beforeUpdate",function(){var v=d.allBodies(g.world);r.update(E,v),r._triggerEvents(E)}),E},r.update=function(g,m){var y=g.mouse,_=g.constraint,x=g.body;if(y.button===0){if(_.bodyB)a.set(_.bodyB,!1),_.pointA=y.position;else for(var E=0;E<m.length;E++)if(x=m[E],p.contains(x.bounds,y.position)&&f.canCollide(x.collisionFilter,g.collisionFilter))for(var v=x.parts.length>1?1:0;v<x.parts.length;v++){var b=x.parts[v];if(i.contains(b.vertices,y.position)){_.pointA=y.position,_.bodyB=g.body=x,_.pointB={x:y.position.x-x.position.x,y:y.position.y-x.position.y},_.angleB=x.angle,a.set(x,!1),u.trigger(g,"startdrag",{mouse:y,body:x});break}}}else _.bodyB=g.body=null,_.pointB=null,x&&u.trigger(g,"enddrag",{mouse:y,body:x})},r._triggerEvents=function(g){var m=g.mouse,y=m.sourceEvents;y.mousemove&&u.trigger(g,"mousemove",{mouse:m}),y.mousedown&&u.trigger(g,"mousedown",{mouse:m}),y.mouseup&&u.trigger(g,"mouseup",{mouse:m}),l.clearSourceEvents(m)}})()},function(n,o,s){var r={};n.exports=r;var i=s(2),a=s(8),l=s(1),u=s(12),f=s(3);(function(){r.collides=function(h,d){for(var c=[],p=d.length,g=h.bounds,m=a.collides,y=l.overlaps,_=0;_<p;_++){var x=d[_],E=x.parts.length,v=E===1?0:1;if(y(x.bounds,g))for(var b=v;b<E;b++){var S=x.parts[b];if(y(S.bounds,g)){var w=m(S,h);if(w){c.push(w);break}}}}return c},r.ray=function(h,d,c,p){p=p||1e-100;for(var g=i.angle(d,c),m=i.magnitude(i.sub(d,c)),y=(c.x+d.x)*.5,_=(c.y+d.y)*.5,x=u.rectangle(y,_,m,p,{angle:g}),E=r.collides(x,h),v=0;v<E.length;v+=1){var b=E[v];b.body=b.bodyB=b.bodyA}return E},r.region=function(h,d,c){for(var p=[],g=0;g<h.length;g++){var m=h[g],y=l.overlaps(m.bounds,d);(y&&!c||!y&&c)&&p.push(m)}return p},r.point=function(h,d){for(var c=[],p=0;p<h.length;p++){var g=h[p];if(l.contains(g.bounds,d))for(var m=g.parts.length===1?0:1;m<g.parts.length;m++){var y=g.parts[m];if(l.contains(y.bounds,d)&&f.contains(y.vertices,d)){c.push(g);break}}}return c}})()},function(n,o,s){var r={};n.exports=r;var i=s(4),a=s(0),l=s(6),u=s(1),f=s(5),h=s(2),d=s(14);(function(){var c,p;typeof window<"u"&&(c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(v){window.setTimeout(function(){v(a.now())},1e3/60)},p=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),r._goodFps=30,r._goodDelta=1e3/60,r.create=function(v){var b={engine:null,element:null,canvas:null,mouse:null,frameRequestId:null,timing:{historySize:60,delta:0,deltaHistory:[],lastTime:0,lastTimestamp:0,lastElapsed:0,timestampElapsed:0,timestampElapsedHistory:[],engineDeltaHistory:[],engineElapsedHistory:[],elapsedHistory:[]},options:{width:800,height:600,pixelRatio:1,background:"#14151f",wireframeBackground:"#14151f",hasBounds:!!v.bounds,enabled:!0,wireframes:!0,showSleeping:!0,showDebug:!1,showStats:!1,showPerformance:!1,showBounds:!1,showVelocity:!1,showCollisions:!1,showSeparations:!1,showAxes:!1,showPositions:!1,showAngleIndicator:!1,showIds:!1,showVertexNumbers:!1,showConvexHulls:!1,showInternalEdges:!1,showMousePosition:!1}},S=a.extend(b,v);return S.canvas&&(S.canvas.width=S.options.width||S.canvas.width,S.canvas.height=S.options.height||S.canvas.height),S.mouse=v.mouse,S.engine=v.engine,S.canvas=S.canvas||y(S.options.width,S.options.height),S.context=S.canvas.getContext("2d"),S.textures={},S.bounds=S.bounds||{min:{x:0,y:0},max:{x:S.canvas.width,y:S.canvas.height}},S.controller=r,S.options.showBroadphase=!1,S.options.pixelRatio!==1&&r.setPixelRatio(S,S.options.pixelRatio),a.isElement(S.element)&&S.element.appendChild(S.canvas),S},r.run=function(v){(function b(S){v.frameRequestId=c(b),g(v,S),r.world(v,S),(v.options.showStats||v.options.showDebug)&&r.stats(v,v.context,S),(v.options.showPerformance||v.options.showDebug)&&r.performance(v,v.context,S)})()},r.stop=function(v){p(v.frameRequestId)},r.setPixelRatio=function(v,b){var S=v.options,w=v.canvas;b==="auto"&&(b=_(w)),S.pixelRatio=b,w.setAttribute("data-pixel-ratio",b),w.width=S.width*b,w.height=S.height*b,w.style.width=S.width+"px",w.style.height=S.height+"px"},r.lookAt=function(v,b,S,w){w=typeof w<"u"?w:!0,b=a.isArray(b)?b:[b],S=S||{x:0,y:0};for(var P={min:{x:1/0,y:1/0},max:{x:-1/0,y:-1/0}},C=0;C<b.length;C+=1){var I=b[C],L=I.bounds?I.bounds.min:I.min||I.position||I,O=I.bounds?I.bounds.max:I.max||I.position||I;L&&O&&(L.x<P.min.x&&(P.min.x=L.x),O.x>P.max.x&&(P.max.x=O.x),L.y<P.min.y&&(P.min.y=L.y),O.y>P.max.y&&(P.max.y=O.y))}var k=P.max.x-P.min.x+2*S.x,D=P.max.y-P.min.y+2*S.y,V=v.canvas.height,j=v.canvas.width,Y=j/V,se=k/D,ce=1,pe=1;se>Y?pe=se/Y:ce=Y/se,v.options.hasBounds=!0,v.bounds.min.x=P.min.x,v.bounds.max.x=P.min.x+k*ce,v.bounds.min.y=P.min.y,v.bounds.max.y=P.min.y+D*pe,w&&(v.bounds.min.x+=k*.5-k*ce*.5,v.bounds.max.x+=k*.5-k*ce*.5,v.bounds.min.y+=D*.5-D*pe*.5,v.bounds.max.y+=D*.5-D*pe*.5),v.bounds.min.x-=S.x,v.bounds.max.x-=S.x,v.bounds.min.y-=S.y,v.bounds.max.y-=S.y,v.mouse&&(d.setScale(v.mouse,{x:(v.bounds.max.x-v.bounds.min.x)/v.canvas.width,y:(v.bounds.max.y-v.bounds.min.y)/v.canvas.height}),d.setOffset(v.mouse,v.bounds.min))},r.startViewTransform=function(v){var b=v.bounds.max.x-v.bounds.min.x,S=v.bounds.max.y-v.bounds.min.y,w=b/v.options.width,P=S/v.options.height;v.context.setTransform(v.options.pixelRatio/w,0,0,v.options.pixelRatio/P,0,0),v.context.translate(-v.bounds.min.x,-v.bounds.min.y)},r.endViewTransform=function(v){v.context.setTransform(v.options.pixelRatio,0,0,v.options.pixelRatio,0,0)},r.world=function(v,b){var S=a.now(),w=v.engine,P=w.world,C=v.canvas,I=v.context,L=v.options,O=v.timing,k=l.allBodies(P),D=l.allConstraints(P),V=L.wireframes?L.wireframeBackground:L.background,j=[],Y=[],se,ce={timestamp:w.timing.timestamp};if(f.trigger(v,"beforeRender",ce),v.currentBackground!==V&&E(v,V),I.globalCompositeOperation="source-in",I.fillStyle="transparent",I.fillRect(0,0,C.width,C.height),I.globalCompositeOperation="source-over",L.hasBounds){for(se=0;se<k.length;se++){var pe=k[se];u.overlaps(pe.bounds,v.bounds)&&j.push(pe)}for(se=0;se<D.length;se++){var ee=D[se],we=ee.bodyA,be=ee.bodyB,B=ee.pointA,W=ee.pointB;we&&(B=h.add(we.position,ee.pointA)),be&&(W=h.add(be.position,ee.pointB)),!(!B||!W)&&(u.contains(v.bounds,B)||u.contains(v.bounds,W))&&Y.push(ee)}r.startViewTransform(v),v.mouse&&(d.setScale(v.mouse,{x:(v.bounds.max.x-v.bounds.min.x)/v.options.width,y:(v.bounds.max.y-v.bounds.min.y)/v.options.height}),d.setOffset(v.mouse,v.bounds.min))}else Y=D,j=k,v.options.pixelRatio!==1&&v.context.setTransform(v.options.pixelRatio,0,0,v.options.pixelRatio,0,0);!L.wireframes||w.enableSleeping&&L.showSleeping?r.bodies(v,j,I):(L.showConvexHulls&&r.bodyConvexHulls(v,j,I),r.bodyWireframes(v,j,I)),L.showBounds&&r.bodyBounds(v,j,I),(L.showAxes||L.showAngleIndicator)&&r.bodyAxes(v,j,I),L.showPositions&&r.bodyPositions(v,j,I),L.showVelocity&&r.bodyVelocity(v,j,I),L.showIds&&r.bodyIds(v,j,I),L.showSeparations&&r.separations(v,w.pairs.list,I),L.showCollisions&&r.collisions(v,w.pairs.list,I),L.showVertexNumbers&&r.vertexNumbers(v,j,I),L.showMousePosition&&r.mousePosition(v,v.mouse,I),r.constraints(Y,I),L.hasBounds&&r.endViewTransform(v),f.trigger(v,"afterRender",ce),O.lastElapsed=a.now()-S},r.stats=function(v,b,S){for(var w=v.engine,P=w.world,C=l.allBodies(P),I=0,L=55,O=44,k=0,D=0,V=0;V<C.length;V+=1)I+=C[V].parts.length;var j={Part:I,Body:C.length,Cons:l.allConstraints(P).length,Comp:l.allComposites(P).length,Pair:w.pairs.list.length};b.fillStyle="#0e0f19",b.fillRect(k,D,L*5.5,O),b.font="12px Arial",b.textBaseline="top",b.textAlign="right";for(var Y in j){var se=j[Y];b.fillStyle="#aaa",b.fillText(Y,k+L,D+8),b.fillStyle="#eee",b.fillText(se,k+L,D+26),k+=L}},r.performance=function(v,b){var S=v.engine,w=v.timing,P=w.deltaHistory,C=w.elapsedHistory,I=w.timestampElapsedHistory,L=w.engineDeltaHistory,O=w.engineElapsedHistory,k=S.timing.lastDelta,D=m(P),V=m(C),j=m(L),Y=m(O),se=m(I),ce=se/D||0,pe=1e3/D||0,ee=4,we=12,be=60,B=34,W=10,G=69;b.fillStyle="#0e0f19",b.fillRect(0,50,we*4+be*5+22,B),r.status(b,W,G,be,ee,P.length,Math.round(pe)+" fps",pe/r._goodFps,function(X){return P[X]/D-1}),r.status(b,W+we+be,G,be,ee,L.length,k.toFixed(2)+" dt",r._goodDelta/k,function(X){return L[X]/j-1}),r.status(b,W+(we+be)*2,G,be,ee,O.length,Y.toFixed(2)+" ut",1-Y/r._goodFps,function(X){return O[X]/Y-1}),r.status(b,W+(we+be)*3,G,be,ee,C.length,V.toFixed(2)+" rt",1-V/r._goodFps,function(X){return C[X]/V-1}),r.status(b,W+(we+be)*4,G,be,ee,I.length,ce.toFixed(2)+" x",ce*ce*ce,function(X){return(I[X]/P[X]/ce||0)-1})},r.status=function(v,b,S,w,P,C,I,L,O){v.strokeStyle="#888",v.fillStyle="#444",v.lineWidth=1,v.fillRect(b,S+7,w,1),v.beginPath(),v.moveTo(b,S+7-P*a.clamp(.4*O(0),-2,2));for(var k=0;k<w;k+=1)v.lineTo(b+k,S+7-(k<C?P*a.clamp(.4*O(k),-2,2):0));v.stroke(),v.fillStyle="hsl("+a.clamp(25+95*L,0,120)+",100%,60%)",v.fillRect(b,S-7,4,4),v.font="12px Arial",v.textBaseline="middle",v.textAlign="right",v.fillStyle="#eee",v.fillText(I,b+w,S-5)},r.constraints=function(v,b){for(var S=b,w=0;w<v.length;w++){var P=v[w];if(!(!P.render.visible||!P.pointA||!P.pointB)){var C=P.bodyA,I=P.bodyB,L,O;if(C?L=h.add(C.position,P.pointA):L=P.pointA,P.render.type==="pin")S.beginPath(),S.arc(L.x,L.y,3,0,2*Math.PI),S.closePath();else{if(I?O=h.add(I.position,P.pointB):O=P.pointB,S.beginPath(),S.moveTo(L.x,L.y),P.render.type==="spring")for(var k=h.sub(O,L),D=h.perp(h.normalise(k)),V=Math.ceil(a.clamp(P.length/5,12,20)),j,Y=1;Y<V;Y+=1)j=Y%2===0?1:-1,S.lineTo(L.x+k.x*(Y/V)+D.x*j*4,L.y+k.y*(Y/V)+D.y*j*4);S.lineTo(O.x,O.y)}P.render.lineWidth&&(S.lineWidth=P.render.lineWidth,S.strokeStyle=P.render.strokeStyle,S.stroke()),P.render.anchors&&(S.fillStyle=P.render.strokeStyle,S.beginPath(),S.arc(L.x,L.y,3,0,2*Math.PI),S.arc(O.x,O.y,3,0,2*Math.PI),S.closePath(),S.fill())}}},r.bodies=function(v,b,S){var w=S;v.engine;var P=v.options,C=P.showInternalEdges||!P.wireframes,I,L,O,k;for(O=0;O<b.length;O++)if(I=b[O],!!I.render.visible){for(k=I.parts.length>1?1:0;k<I.parts.length;k++)if(L=I.parts[k],!!L.render.visible){if(P.showSleeping&&I.isSleeping?w.globalAlpha=.5*L.render.opacity:L.render.opacity!==1&&(w.globalAlpha=L.render.opacity),L.render.sprite&&L.render.sprite.texture&&!P.wireframes){var D=L.render.sprite,V=x(v,D.texture);w.translate(L.position.x,L.position.y),w.rotate(L.angle),w.drawImage(V,V.width*-D.xOffset*D.xScale,V.height*-D.yOffset*D.yScale,V.width*D.xScale,V.height*D.yScale),w.rotate(-L.angle),w.translate(-L.position.x,-L.position.y)}else{if(L.circleRadius)w.beginPath(),w.arc(L.position.x,L.position.y,L.circleRadius,0,2*Math.PI);else{w.beginPath(),w.moveTo(L.vertices[0].x,L.vertices[0].y);for(var j=1;j<L.vertices.length;j++)!L.vertices[j-1].isInternal||C?w.lineTo(L.vertices[j].x,L.vertices[j].y):w.moveTo(L.vertices[j].x,L.vertices[j].y),L.vertices[j].isInternal&&!C&&w.moveTo(L.vertices[(j+1)%L.vertices.length].x,L.vertices[(j+1)%L.vertices.length].y);w.lineTo(L.vertices[0].x,L.vertices[0].y),w.closePath()}P.wireframes?(w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()):(w.fillStyle=L.render.fillStyle,L.render.lineWidth&&(w.lineWidth=L.render.lineWidth,w.strokeStyle=L.render.strokeStyle,w.stroke()),w.fill())}w.globalAlpha=1}}},r.bodyWireframes=function(v,b,S){var w=S,P=v.options.showInternalEdges,C,I,L,O,k;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.render.visible)for(k=C.parts.length>1?1:0;k<C.parts.length;k++){for(I=C.parts[k],w.moveTo(I.vertices[0].x,I.vertices[0].y),O=1;O<I.vertices.length;O++)!I.vertices[O-1].isInternal||P?w.lineTo(I.vertices[O].x,I.vertices[O].y):w.moveTo(I.vertices[O].x,I.vertices[O].y),I.vertices[O].isInternal&&!P&&w.moveTo(I.vertices[(O+1)%I.vertices.length].x,I.vertices[(O+1)%I.vertices.length].y);w.lineTo(I.vertices[0].x,I.vertices[0].y)}w.lineWidth=1,w.strokeStyle="#bbb",w.stroke()},r.bodyConvexHulls=function(v,b,S){var w=S,P,C,I;for(w.beginPath(),C=0;C<b.length;C++)if(P=b[C],!(!P.render.visible||P.parts.length===1)){for(w.moveTo(P.vertices[0].x,P.vertices[0].y),I=1;I<P.vertices.length;I++)w.lineTo(P.vertices[I].x,P.vertices[I].y);w.lineTo(P.vertices[0].x,P.vertices[0].y)}w.lineWidth=1,w.strokeStyle="rgba(255,255,255,0.2)",w.stroke()},r.vertexNumbers=function(v,b,S){var w=S,P,C,I;for(P=0;P<b.length;P++){var L=b[P].parts;for(I=L.length>1?1:0;I<L.length;I++){var O=L[I];for(C=0;C<O.vertices.length;C++)w.fillStyle="rgba(255,255,255,0.2)",w.fillText(P+"_"+C,O.position.x+(O.vertices[C].x-O.position.x)*.8,O.position.y+(O.vertices[C].y-O.position.y)*.8)}}},r.mousePosition=function(v,b,S){var w=S;w.fillStyle="rgba(255,255,255,0.8)",w.fillText(b.position.x+" "+b.position.y,b.position.x+5,b.position.y-5)},r.bodyBounds=function(v,b,S){var w=S;v.engine;var P=v.options;w.beginPath();for(var C=0;C<b.length;C++){var I=b[C];if(I.render.visible)for(var L=b[C].parts,O=L.length>1?1:0;O<L.length;O++){var k=L[O];w.rect(k.bounds.min.x,k.bounds.min.y,k.bounds.max.x-k.bounds.min.x,k.bounds.max.y-k.bounds.min.y)}}P.wireframes?w.strokeStyle="rgba(255,255,255,0.08)":w.strokeStyle="rgba(0,0,0,0.1)",w.lineWidth=1,w.stroke()},r.bodyAxes=function(v,b,S){var w=S;v.engine;var P=v.options,C,I,L,O;for(w.beginPath(),I=0;I<b.length;I++){var k=b[I],D=k.parts;if(k.render.visible)if(P.showAxes)for(L=D.length>1?1:0;L<D.length;L++)for(C=D[L],O=0;O<C.axes.length;O++){var V=C.axes[O];w.moveTo(C.position.x,C.position.y),w.lineTo(C.position.x+V.x*20,C.position.y+V.y*20)}else for(L=D.length>1?1:0;L<D.length;L++)for(C=D[L],O=0;O<C.axes.length;O++)w.moveTo(C.position.x,C.position.y),w.lineTo((C.vertices[0].x+C.vertices[C.vertices.length-1].x)/2,(C.vertices[0].y+C.vertices[C.vertices.length-1].y)/2)}P.wireframes?(w.strokeStyle="indianred",w.lineWidth=1):(w.strokeStyle="rgba(255, 255, 255, 0.4)",w.globalCompositeOperation="overlay",w.lineWidth=2),w.stroke(),w.globalCompositeOperation="source-over"},r.bodyPositions=function(v,b,S){var w=S;v.engine;var P=v.options,C,I,L,O;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.render.visible)for(O=0;O<C.parts.length;O++)I=C.parts[O],w.arc(I.position.x,I.position.y,3,0,2*Math.PI,!1),w.closePath();for(P.wireframes?w.fillStyle="indianred":w.fillStyle="rgba(0,0,0,0.5)",w.fill(),w.beginPath(),L=0;L<b.length;L++)C=b[L],C.render.visible&&(w.arc(C.positionPrev.x,C.positionPrev.y,2,0,2*Math.PI,!1),w.closePath());w.fillStyle="rgba(255,165,0,0.8)",w.fill()},r.bodyVelocity=function(v,b,S){var w=S;w.beginPath();for(var P=0;P<b.length;P++){var C=b[P];if(C.render.visible){var I=i.getVelocity(C);w.moveTo(C.position.x,C.position.y),w.lineTo(C.position.x+I.x,C.position.y+I.y)}}w.lineWidth=3,w.strokeStyle="cornflowerblue",w.stroke()},r.bodyIds=function(v,b,S){var w=S,P,C;for(P=0;P<b.length;P++)if(b[P].render.visible){var I=b[P].parts;for(C=I.length>1?1:0;C<I.length;C++){var L=I[C];w.font="12px Arial",w.fillStyle="rgba(255,255,255,0.5)",w.fillText(L.id,L.position.x+10,L.position.y-10)}}},r.collisions=function(v,b,S){var w=S,P=v.options,C,I,L,O;for(w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.isActive)for(I=C.collision,O=0;O<C.activeContacts.length;O++){var k=C.activeContacts[O],D=k.vertex;w.rect(D.x-1.5,D.y-1.5,3.5,3.5)}for(P.wireframes?w.fillStyle="rgba(255,255,255,0.7)":w.fillStyle="orange",w.fill(),w.beginPath(),L=0;L<b.length;L++)if(C=b[L],!!C.isActive&&(I=C.collision,C.activeContacts.length>0)){var V=C.activeContacts[0].vertex.x,j=C.activeContacts[0].vertex.y;C.activeContacts.length===2&&(V=(C.activeContacts[0].vertex.x+C.activeContacts[1].vertex.x)/2,j=(C.activeContacts[0].vertex.y+C.activeContacts[1].vertex.y)/2),I.bodyB===I.supports[0].body||I.bodyA.isStatic===!0?w.moveTo(V-I.normal.x*8,j-I.normal.y*8):w.moveTo(V+I.normal.x*8,j+I.normal.y*8),w.lineTo(V,j)}P.wireframes?w.strokeStyle="rgba(255,165,0,0.7)":w.strokeStyle="orange",w.lineWidth=1,w.stroke()},r.separations=function(v,b,S){var w=S,P=v.options,C,I,L,O,k;for(w.beginPath(),k=0;k<b.length;k++)if(C=b[k],!!C.isActive){I=C.collision,L=I.bodyA,O=I.bodyB;var D=1;!O.isStatic&&!L.isStatic&&(D=.5),O.isStatic&&(D=0),w.moveTo(O.position.x,O.position.y),w.lineTo(O.position.x-I.penetration.x*D,O.position.y-I.penetration.y*D),D=1,!O.isStatic&&!L.isStatic&&(D=.5),L.isStatic&&(D=0),w.moveTo(L.position.x,L.position.y),w.lineTo(L.position.x+I.penetration.x*D,L.position.y+I.penetration.y*D)}P.wireframes?w.strokeStyle="rgba(255,165,0,0.5)":w.strokeStyle="orange",w.stroke()},r.inspector=function(v,b){v.engine;var S=v.selected,w=v.render,P=w.options,C;if(P.hasBounds){var I=w.bounds.max.x-w.bounds.min.x,L=w.bounds.max.y-w.bounds.min.y,O=I/w.options.width,k=L/w.options.height;b.scale(1/O,1/k),b.translate(-w.bounds.min.x,-w.bounds.min.y)}for(var D=0;D<S.length;D++){var V=S[D].data;switch(b.translate(.5,.5),b.lineWidth=1,b.strokeStyle="rgba(255,165,0,0.9)",b.setLineDash([1,2]),V.type){case"body":C=V.bounds,b.beginPath(),b.rect(Math.floor(C.min.x-3),Math.floor(C.min.y-3),Math.floor(C.max.x-C.min.x+6),Math.floor(C.max.y-C.min.y+6)),b.closePath(),b.stroke();break;case"constraint":var j=V.pointA;V.bodyA&&(j=V.pointB),b.beginPath(),b.arc(j.x,j.y,10,0,2*Math.PI),b.closePath(),b.stroke();break}b.setLineDash([]),b.translate(-.5,-.5)}v.selectStart!==null&&(b.translate(.5,.5),b.lineWidth=1,b.strokeStyle="rgba(255,165,0,0.6)",b.fillStyle="rgba(255,165,0,0.1)",C=v.selectBounds,b.beginPath(),b.rect(Math.floor(C.min.x),Math.floor(C.min.y),Math.floor(C.max.x-C.min.x),Math.floor(C.max.y-C.min.y)),b.closePath(),b.stroke(),b.fill(),b.translate(-.5,-.5)),P.hasBounds&&b.setTransform(1,0,0,1,0,0)};var g=function(v,b){var S=v.engine,w=v.timing,P=w.historySize,C=S.timing.timestamp;w.delta=b-w.lastTime||r._goodDelta,w.lastTime=b,w.timestampElapsed=C-w.lastTimestamp||0,w.lastTimestamp=C,w.deltaHistory.unshift(w.delta),w.deltaHistory.length=Math.min(w.deltaHistory.length,P),w.engineDeltaHistory.unshift(S.timing.lastDelta),w.engineDeltaHistory.length=Math.min(w.engineDeltaHistory.length,P),w.timestampElapsedHistory.unshift(w.timestampElapsed),w.timestampElapsedHistory.length=Math.min(w.timestampElapsedHistory.length,P),w.engineElapsedHistory.unshift(S.timing.lastElapsed),w.engineElapsedHistory.length=Math.min(w.engineElapsedHistory.length,P),w.elapsedHistory.unshift(w.lastElapsed),w.elapsedHistory.length=Math.min(w.elapsedHistory.length,P)},m=function(v){for(var b=0,S=0;S<v.length;S+=1)b+=v[S];return b/v.length||0},y=function(v,b){var S=document.createElement("canvas");return S.width=v,S.height=b,S.oncontextmenu=function(){return!1},S.onselectstart=function(){return!1},S},_=function(v){var b=v.getContext("2d"),S=window.devicePixelRatio||1,w=b.webkitBackingStorePixelRatio||b.mozBackingStorePixelRatio||b.msBackingStorePixelRatio||b.oBackingStorePixelRatio||b.backingStorePixelRatio||1;return S/w},x=function(v,b){var S=v.textures[b];return S||(S=v.textures[b]=new Image,S.src=b,S)},E=function(v,b){var S=b;/(jpg|gif|png)$/.test(b)&&(S="url("+b+")"),v.canvas.style.background=S,v.canvas.style.backgroundSize="contain",v.currentBackground=b}})()},function(n,o,s){var r={};n.exports=r;var i=s(5),a=s(17),l=s(0);(function(){var u,f;if(typeof window<"u"&&(u=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame,f=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame),!u){var h;u=function(d){h=setTimeout(function(){d(l.now())},1e3/60)},f=function(){clearTimeout(h)}}r.create=function(d){var c={fps:60,deltaSampleSize:60,counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,frameRequestId:null,isFixed:!1,enabled:!0},p=l.extend(c,d);return p.delta=p.delta||1e3/p.fps,p.deltaMin=p.deltaMin||1e3/p.fps,p.deltaMax=p.deltaMax||1e3/(p.fps*.5),p.fps=1e3/p.delta,p},r.run=function(d,c){return typeof d.positionIterations<"u"&&(c=d,d=r.create()),function p(g){d.frameRequestId=u(p),g&&d.enabled&&r.tick(d,c,g)}(),d},r.tick=function(d,c,p){var g=c.timing,m;d.isFixed?m=d.delta:(m=p-d.timePrev||d.delta,d.timePrev=p,d.deltaHistory.push(m),d.deltaHistory=d.deltaHistory.slice(-d.deltaSampleSize),m=Math.min.apply(null,d.deltaHistory),m=m<d.deltaMin?d.deltaMin:m,m=m>d.deltaMax?d.deltaMax:m,d.delta=m);var y={timestamp:g.timestamp};i.trigger(d,"beforeTick",y),d.frameCounter+=1,p-d.counterTimestamp>=1e3&&(d.fps=d.frameCounter*((p-d.counterTimestamp)/1e3),d.counterTimestamp=p,d.frameCounter=0),i.trigger(d,"tick",y),i.trigger(d,"beforeUpdate",y),a.update(c,m),i.trigger(d,"afterUpdate",y),i.trigger(d,"afterTick",y)},r.stop=function(d){f(d.frameRequestId)},r.start=function(d,c){r.run(d,c)}})()},function(n,o,s){var r={};n.exports=r;var i=s(8),a=s(0),l=a.deprecated;(function(){r.collides=function(u,f){return i.collides(u,f)},l(r,"collides","SAT.collides ➤ replaced by Collision.collides")})()},function(n,o,s){var r={};n.exports=r,s(1);var i=s(0);(function(){r.pathToVertices=function(a,l){typeof window<"u"&&!("SVGPathSeg"in window)&&i.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");var u,f,h,d,c,p,g,m,y,_,x=[],E,v,b=0,S=0,w=0;l=l||15;var P=function(I,L,O){var k=O%2===1&&O>1;if(!y||I!=y.x||L!=y.y){y&&k?(E=y.x,v=y.y):(E=0,v=0);var D={x:E+I,y:v+L};(k||!y)&&(y=D),x.push(D),S=E+I,w=v+L}},C=function(I){var L=I.pathSegTypeAsLetter.toUpperCase();if(L!=="Z"){switch(L){case"M":case"L":case"T":case"C":case"S":case"Q":S=I.x,w=I.y;break;case"H":S=I.x;break;case"V":w=I.y;break}P(S,w,I.pathSegType)}};for(r._svgPathToAbsolute(a),h=a.getTotalLength(),p=[],u=0;u<a.pathSegList.numberOfItems;u+=1)p.push(a.pathSegList.getItem(u));for(g=p.concat();b<h;){if(_=a.getPathSegAtLength(b),c=p[_],c!=m){for(;g.length&&g[0]!=c;)C(g.shift());m=c}switch(c.pathSegTypeAsLetter.toUpperCase()){case"C":case"T":case"S":case"Q":case"A":d=a.getPointAtLength(b),P(d.x,d.y,0);break}b+=l}for(u=0,f=g.length;u<f;++u)C(g[u]);return x},r._svgPathToAbsolute=function(a){for(var l,u,f,h,d,c,p=a.pathSegList,g=0,m=0,y=p.numberOfItems,_=0;_<y;++_){var x=p.getItem(_),E=x.pathSegTypeAsLetter;if(/[MLHVCSQTA]/.test(E))"x"in x&&(g=x.x),"y"in x&&(m=x.y);else switch("x1"in x&&(f=g+x.x1),"x2"in x&&(d=g+x.x2),"y1"in x&&(h=m+x.y1),"y2"in x&&(c=m+x.y2),"x"in x&&(g+=x.x),"y"in x&&(m+=x.y),E){case"m":p.replaceItem(a.createSVGPathSegMovetoAbs(g,m),_);break;case"l":p.replaceItem(a.createSVGPathSegLinetoAbs(g,m),_);break;case"h":p.replaceItem(a.createSVGPathSegLinetoHorizontalAbs(g),_);break;case"v":p.replaceItem(a.createSVGPathSegLinetoVerticalAbs(m),_);break;case"c":p.replaceItem(a.createSVGPathSegCurvetoCubicAbs(g,m,f,h,d,c),_);break;case"s":p.replaceItem(a.createSVGPathSegCurvetoCubicSmoothAbs(g,m,d,c),_);break;case"q":p.replaceItem(a.createSVGPathSegCurvetoQuadraticAbs(g,m,f,h),_);break;case"t":p.replaceItem(a.createSVGPathSegCurvetoQuadraticSmoothAbs(g,m),_);break;case"a":p.replaceItem(a.createSVGPathSegArcAbs(g,m,x.r1,x.r2,x.angle,x.largeArcFlag,x.sweepFlag),_);break;case"z":case"Z":g=l,m=u;break}(E=="M"||E=="m")&&(l=g,u=m)}}})()},function(n,o,s){var r={};n.exports=r;var i=s(6);s(0),function(){r.create=i.create,r.add=i.add,r.remove=i.remove,r.clear=i.clear,r.addComposite=i.addComposite,r.addBody=i.addBody,r.addConstraint=i.addConstraint}()}])})})(Vu);var _t=Vu.exports;const Wu=""+new URL("cookie.fc45e6c1.png",import.meta.url).href,t_={key:0,class:"w-full h-full"},n_=["width","height"],r_={ref:"banner",class:"fixed bottom-0 left-0 z-50 bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400 border rounded w-fit lg:w-1/2 p-3 px-5 m-5"},s_={class:"text-sm"},o_={class:"text-xs"},i_={class:"flex justify-end mt-2 text-sm"},a_=Be({__name:"Cookie",setup(e){const t=ye(null),n=ye(null),o=ye(!0),s=ye(0),r=ye(0);let i=null;mt(async()=>{o.value=tl(),s.value=u(),r.value=f(),tl()&&(await en(),d(),new ResizeObserver(()=>{h()}).observe(document.body))});function a(){Y0(),o.value=!1}function l(){X0(),o.value=!1}function u(){return document.body.clientWidth}function f(){return document.body.scrollHeight}function h(){s.value=u(),r.value=f()}function d(){if(!i){i=_t.Engine.create();let g=_t.Render.create({element:t.value,canvas:n.value,engine:i,options:{width:u(),height:f(),wireframes:!1,background:"#00000000"}});_t.Render.run(g),_t.Runner.run(_t.Runner.create(),i)}h()}function c(){if(Z0("cookie"),!i)return;let g=_t.Bodies.circle(e_(0,u()),document.documentElement.scrollTop+window.screen.height,30,{render:{sprite:{texture:Wu,xScale:.08,yScale:.08}}});_t.Composite.add(i.world,[g]);const m=.02*g.mass;_t.Body.applyForce(g,g.position,{x:m*(g.position.x>u()/2?-1:1),y:-m*Uu(3,6)}),p(g)}function p(g){g.position.y>document.body.scrollHeight+1e3?_t.Composite.remove(i.world,g):setTimeout(()=>{p(g)},5e3)}return(g,m)=>{const y=ps;return ve(),De(y,null,{default:tn(()=>[ie(o)?(ve(),Qe("div",t_,[te("div",{ref_key:"container_cookie",ref:t,class:"absolute top-0 left-0 h-full w-full pointer-events-none z-40"},[te("canvas",{ref_key:"canvas_cookie",ref:n,width:ie(s),height:ie(r)},null,8,n_)],512),te("div",r_,[te("p",s_,Ie(g.$t("cookie policy title")),1),te("div",o_,[te("span",null,[Vo(Ie(g.$t("cookie policy"))+" ",1),te("button",{onClick:c,class:"underline"},Ie(g.$t("cookie policy link")),1)])]),te("div",i_,[te("button",{onClick:l,class:"mx-1 hover:text-slate-500 dark:hover:text-slate-300"},Ie(g.$t("reject")),1),te("button",{onClick:a,class:"rounded p-2 mx-1 bg-slate-300 hover:bg-slate-400 dark:bg-slate-700 dark:hover:bg-slate-600"},Ie(g.$t("accept")),1)])],512)])):Ke("",!0)]),_:1})}}}),ai=(e,t)=>{const n=e.__vccOpts||e;for(const[o,s]of t)n[o]=s;return n},l_={},c_={class:"flex justify-center text-sm"},u_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:Wu,alt:"",class:"h-full w-full"})])],-1),f_={class:"flex-1 ml-2"},d_={class:"font-bold text-base"};function h_(e,t){return ve(),Qe("div",c_,[u_,te("div",f_,[te("p",d_,Ie(e.$t("cookie.title")),1),te("p",null,Ie(e.$t("cookie.description")),1)])])}const p_=ai(l_,[["render",h_]]),g_=""+new URL("future.cbee0ccf.png",import.meta.url).href,m_={},v_={class:"flex text-sm"},y_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:g_,alt:"",class:"h-full w-full"})])],-1),__={class:"flex-1 ml-2"},x_={class:"font-bold text-base"};function w_(e,t){return ve(),Qe("div",v_,[y_,te("div",__,[te("p",x_,Ie(e.$t("future.title")),1),te("p",null,Ie(e.$t("future.description")),1)])])}const b_=ai(m_,[["render",w_]]),E_=""+new URL("sad.334039fc.svg",import.meta.url).href,S_={},C_={class:"flex text-sm"},P_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:E_,alt:"",class:"h-full w-full dark:invert"})])],-1),L_={class:"flex-1 ml-2"},R_={class:"font-bold text-base"};function T_(e,t){return ve(),Qe("div",C_,[P_,te("div",L_,[te("p",R_,Ie(e.$t("something.title")),1),te("p",null,Ie(e.$t("something.description")),1)])])}const O_=ai(S_,[["render",T_]]),I_=""+new URL("sun.2c52867b.png",import.meta.url).href,A_={class:"flex text-sm"},k_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:I_,alt:"",class:"h-full w-full"})])],-1),M_={class:"flex-1 ml-2"},F_={class:"font-bold text-base"},N_={key:0},D_={key:1},$_=Be({__name:"PictureBrightEgg",setup(e){const t=ye(!1);return mt(()=>{t.value=ii().includes("picture-nolights")}),(n,o)=>{const s=ps;return ve(),De(s,null,{default:tn(()=>[te("div",A_,[k_,te("div",M_,[te("p",F_,Ie(n.$t("bright.title")),1),ie(t)?Ke("",!0):(ve(),Qe("p",N_,Ie(n.$t("bright.description")),1)),ie(t)?(ve(),Qe("p",D_,Ie(n.$t("bright_either.description")),1)):Ke("",!0)])])]),_:1})}}}),B_=""+new URL("moon.907b4d10.png",import.meta.url).href,H_={class:"flex text-sm"},j_=te("div",{class:"flex items-center justify-center"},[te("div",{class:"w-10 h-10 flex items-center justify-center overflow-hidden"},[te("img",{src:B_,alt:"",class:"h-full w-full"})])],-1),U_={class:"flex-1 ml-2"},V_={class:"font-bold text-base"},W_={key:0},K_={key:1},z_=Be({__name:"PictureNoLightEgg",setup(e){const t=ye(!1);return mt(()=>{t.value=ii().includes("picture-bright")}),(n,o)=>{const s=ps;return ve(),De(s,null,{default:tn(()=>[te("div",H_,[j_,te("div",U_,[te("p",V_,Ie(n.$t("dark.title")),1),ie(t)?Ke("",!0):(ve(),Qe("p",W_,Ie(n.$t("dark.description")),1)),ie(t)?(ve(),Qe("p",K_,Ie(n.$t("dark_either.description")),1)):Ke("",!0)])])]),_:1})}}}),G_={key:0,class:"fixed top-0 left-0 w-full pointer-events-none z-50"},J_={class:"flex text-sm"},Q_={class:"flex-1"},Y_={class:"mt-1 text-center"},X_={key:0},Z_={key:1},q_=Be({__name:"EastereggBanner",setup(e,{expose:t}){const n=ye(!1),o=ye(""),s=ye(q0()),r=ye(0);mt(()=>{r.value=nl()});let i=null;function a(u){o.value=u,r.value=nl(),n.value=!0,i&&clearTimeout(i),i=setTimeout(()=>{l()},7e3)}function l(){n.value=!1}return t({show:a}),(u,f)=>{const h=p_,d=b_,c=O_,p=$_,g=z_,m=ps;return ve(),De(m,null,{default:tn(()=>[ie(n)?(ve(),Qe("div",G_,[te("div",{class:zr(`border rounded-sm mx-auto w-fit max-w-xs md:max-w-md pointer-events-auto
bg-slate-200/90 border-slate-700 dark:bg-slate-800/90 dark:border-slate-400
transition-opacity ${ie(n)?"opacity-100 duration-300 p-3 px-5 my-2":"opacity-0 duration-200"}`),onClick:l},[te("div",J_,[te("div",Q_,[ie(o)==="cookie"?(ve(),De(h,{key:0})):Ke("",!0),ie(o)==="future"?(ve(),De(d,{key:1})):Ke("",!0),ie(o)==="change-something"?(ve(),De(c,{key:2})):Ke("",!0),ie(o)==="picture-bright"?(ve(),De(p,{key:3})):Ke("",!0),ie(o)==="picture-nolights"?(ve(),De(g,{key:4})):Ke("",!0),te("div",Y_,[ie(r)!=ie(s)?(ve(),Qe("p",X_,Ie(ie(r))+"/"+Ie(ie(s))+" "+Ie(u.$t("easter eggs found")),1)):Ke("",!0),ie(r)===ie(s)?(ve(),Qe("p",Z_,Ie(u.$t("all easter eggs found")),1)):Ke("",!0)])])])],2)])):Ke("",!0)]),_:1})}}});function ex(e,t){return e??t()}function Ku(){return ex(localStorage.getItem("theme"),()=>"dark")}function tx(e){e!=="dark"&&e!=="light"&&(e="dark"),localStorage.setItem("theme",e)}function mx(){tx(Ku()==="dark"?"light":"dark")}function nx(e){switch(e||(e=Ku()),e){case"dark":document.documentElement.classList.add("dark");break;case"light":document.documentElement.classList.remove("dark");break;default:document.documentElement.classList.add("dark");break}}const rx={key:0,class:"bg-gray-100 text-gray-900 min-h-screen h-full dark:bg-gray-900 dark:text-slate-50",style:{"font-family":"'Comfortaa'","overflow-x":"hidden"}},sx={style:{"margin-right":"calc(-1 * (100vw - 100%))"}},ox={class:"container mx-auto pb-8 px-3 md:px-8 min-h-screen w-screen flex flex-col"},ix={__name:"app",setup(e){const{locale:t}=kn(),n=ye(),o=ye(!1);return mt(()=>{nx(),document.addEventListener("easteregg",s=>{n.value.show(s.detail)}),o.value=!0}),qi({htmlAttrs:{lang:t.value}}),lt(t,s=>{qi({htmlAttrs:{lang:s}})}),(s,r)=>{const i=W0,a=Q0,l=a_,u=q_;return ie(o)?(ve(),Qe("div",rx,[te("div",sx,[te("div",ox,[Ee(a,null,{default:tn(()=>[Ee(i)]),_:1})])]),Ee(l),Ee(u,{ref_key:"easteregg",ref:n},null,512)])):Ke("",!0)}}},rl={__name:"nuxt-root",setup(e){const t=ad(()=>Pe(()=>import("./error-component.034be7c1.js"),["./error-component.034be7c1.js","./composables.e908fea4.js"],import.meta.url).then(l=>l.default||l)),n=()=>null,o=Ae(),s=o.deferHydration(),r=!1;yn("_route",Yo()),o.hooks.callHookWith(l=>l.map(u=>u()),"vue:setup");const i=is();Yl((l,u,f)=>{if(o.hooks.callHook("vue:error",l,u,f).catch(h=>console.error("[nuxt] Error in `vue:error` hook",h)),Cm(l)&&(l.fatal||l.unhandled))return wt(o,cn,[l]),!1});const{islandContext:a}=!1;return(l,u)=>(ve(),De(Hl,{onResolve:ie(s)},{default:tn(()=>[ie(i)?(ve(),De(ie(t),{key:0,error:ie(i)},null,8,["error"])):ie(a)?(ve(),De(ie(n),{key:1,context:ie(a)},null,8,["context"])):ie(r)?(ve(),De(md(ie(r)),{key:2})):(ve(),De(ie(ix),{key:3}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=op.create({baseURL:ap()}));let sl;const ax=Ep(B0);sl=async function(){var s,r;const n=!!((s=window.__NUXT__)!=null&&s.serverRendered||((r=document.getElementById("__NUXT_DATA__"))==null?void 0:r.dataset.ssr)==="true")?_h(rl):yh(rl),o=xp({vueApp:n});try{await bp(o,ax)}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}try{await o.hooks.callHook("app:created",n),await o.hooks.callHook("app:beforeMount",n),n.mount("#"+hg),await o.hooks.callHook("app:mounted",n),await en()}catch(i){await o.callHook("app:error",i),o.payload.error=o.payload.error||i}},sl().catch(e=>{console.error("Error while mounting app:",e)});export{zr as A,Eo as B,mx as C,nn as D,Ae as E,Ne as F,In as G,qr as H,Ye as I,cx as J,rs as K,Mh as L,jh as M,xc as N,hx as O,px as P,ir as Q,d0 as R,ai as _,nx as a,ve as b,Qe as c,Be as d,te as e,Ee as f,Vo as g,kn as h,Ku as i,Z0 as j,lx as k,Ke as l,Yo as m,qi as n,mt as o,_e as p,lt as q,ye as r,gx as s,Ie as t,ie as u,dx as v,tn as w,fx as x,ux as y,De as z};