Files
laravel-manager-packagist/resources/dist/manager.js
T
2026-12-04 11:06:52 +00:00

7 lines
207 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.defineProperty,t=(t,n)=>{let r=Object.setPrototypeOf({},null);for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n&1||e(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)};function n(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var r={},i=[],a=()=>{},o=()=>!1,s=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith(`onUpdate:`),l=Object.assign,u=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,f=(e,t)=>d.call(e,t),p=Array.isArray,m=e=>C(e)===`[object Map]`,h=e=>C(e)===`[object Set]`,g=e=>C(e)===`[object Date]`,_=e=>C(e)===`[object RegExp]`,v=e=>typeof e==`function`,y=e=>typeof e==`string`,b=e=>typeof e==`symbol`,x=e=>typeof e==`object`&&!!e,S=e=>(x(e)||v(e))&&v(e.then)&&v(e.catch),ee=Object.prototype.toString,C=e=>ee.call(e),te=e=>C(e).slice(8,-1),w=e=>C(e)===`[object Object]`,T=e=>y(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ne=n(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),re=1e4,ie=e=>{let t=Object.create(null),n=0;return(r=>{let i=t[r];return i===void 0?(++n>re&&(t=Object.create(null),n=1),t[r]=e(r)):i})},ae=/-\w/g,E=ie(e=>e.replace(ae,e=>e.slice(1).toUpperCase())),oe=/\B([A-Z])/g,se=ie(e=>e.replace(oe,`-$1`).toLowerCase()),ce=ie(e=>e.charAt(0).toUpperCase()+e.slice(1)),le=ie(e=>e?`on${ce(e)}`:``),D=(e,t)=>!Object.is(e,t),ue=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},de=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},fe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},pe=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},me,he=()=>me||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},ge=n(`Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol`);function _e(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?xe(r):_e(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var ve=/;(?![^(]*\))/g,ye=/:([^]+)/,be=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function xe(e){let t={};return e.replace(be,e=>e.startsWith(`/*`)?``:e).split(ve).forEach(e=>{if(e){let n=e.split(ye);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function O(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=O(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Se(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=O(t)),n&&(e.style=_e(n)),e}var Ce=`itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`,we=n(Ce);Ce+``;function Te(e){return!!e||e===``}function Ee(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=Ae(e[i],t[i],n);return r}function De(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&Ae(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function Oe(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?De(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=f(e,r),a=f(t,r);if(i&&!a||!i&&a||!Ae(e[r],t[r],n))return!1}return Me(e)===Me(t)}function ke(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function Ae(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=b(e),i=b(t),r||i?e===t:(r=p(e),i=p(t),r||i?r&&i?ke(e,t,n,Ee):!1:(r=x(e),i=x(t),r||i?!r||!i?!1:ke(e,t,n,Oe):String(e)===String(t))))}function je(e,t){return e.findIndex(e=>Ae(e,t))}function Me(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!=`function`&&typeof e.valueOf!=`function`?C(e):String(e)}var Ne=e=>!!(e&&e.__v_isRef===!0),k=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===ee||!v(e.toString))?Ne(e)?k(e.value):JSON.stringify(e,Pe,2):String(e),Pe=(e,t)=>Ne(t)?Pe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Fe(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Fe(e))}:b(t)?Fe(t):x(t)&&!p(t)&&!w(t)?String(t):t,Fe=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Ie(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Le,Re=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&Le&&(Le.active?(this.parent=Le,this.index=(Le.scopes||(Le.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=Le;try{return Le=this,e()}finally{Le=t}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){if(this._on>0&&--this._on===0){if(Le===this)Le=this.prevScope;else{let e=Le;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function ze(e){return new Re(e)}function Be(){return Le}function Ve(e,t=!1){Le&&(Le.active?Le.cleanups.push(e):e())}var A,He=new WeakSet,Ue=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&(Le.active?Le.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,He.has(this)&&(He.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||qe(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ct(this),Xe(this);let e=A,t=it;A=this,it=!0;try{return this.fn()}finally{Ze(this),A=e,it=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)et(e);this.deps=this.depsTail=void 0,ct(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?He.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qe(this)&&this.run()}get dirty(){return Qe(this)}},We=0,Ge,Ke;function qe(e,t=!1){e.flags|=8,t?(e.next=Ke,Ke=e):(e.next=Ge,Ge=e)}function Je(){We++}function Ye(){if(--We>0)return;if(Ke){let e=Ke;for(Ke=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ge;){let t=Ge;for(Ge=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Xe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Ze(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),et(r),tt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Qe(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&($e(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function $e(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===lt)||(e.globalVersion=lt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qe(e))))return;e.flags|=2;let t=e.dep,n=A,r=it;A=e,it=!0;try{Xe(e);let n=e.fn(e._value);(t.version===0||D(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{A=n,it=r,Ze(e),e.flags&=-3}}function et(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)et(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function tt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function nt(e,t){e.effect instanceof Ue&&(e=e.effect.fn);let n=new Ue(e);t&&l(n,t);try{n.run()}catch(e){throw n.stop(),e}let r=n.run.bind(n);return r.effect=n,r}function rt(e){e.effect.stop()}var it=!0,at=[];function ot(){at.push(it),it=!1}function st(){let e=at.pop();it=e===void 0||e}function ct(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=A;A=void 0;try{t()}finally{A=e}}}var lt=0,ut=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},dt=class{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!A||!it||A===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==A)t=this.activeLink=new ut(A,this),A.deps?(t.prevDep=A.depsTail,A.depsTail.nextDep=t,A.depsTail=t):A.deps=A.depsTail=t,ft(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=A.depsTail,t.nextDep=void 0,A.depsTail.nextDep=t,A.depsTail=t,A.deps===t&&(A.deps=e)}return t}trigger(e){this.version++,lt++,this.notify(e)}notify(e){Je();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ye()}}};function ft(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ft(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var pt=new WeakMap,mt=Symbol(``),ht=Symbol(``),gt=Symbol(``);function _t(e,t,n){if(it&&A){let t=pt.get(e);t||pt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new dt),r.map=t,r.key=n),r.track()}}function vt(e,t,n,r,i,a){let o=pt.get(e);if(!o){lt++;return}let s=e=>{e&&e.trigger()};if(Je(),t===`clear`)o.forEach(s);else{let i=p(e),a=i&&T(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===gt||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(gt)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(mt)),m(e)&&s(o.get(ht)));break;case`delete`:i||(s(o.get(mt)),m(e)&&s(o.get(ht)));break;case`set`:m(e)&&s(o.get(mt))}}Ye()}function yt(e,t){let n=pt.get(e);return n&&n.get(t)}function bt(e){let t=j(e);return t===e||(_t(t,`iterate`,gt),dn(e))?t:un(e)?ln(e)?t.map(e=>hn(mn(e))):t.map(hn):t.map(mn)}function xt(e){return _t(e=j(e),`iterate`,gt),e}var St=e=>hn(mn(e));function Ct(e){return un(e)?ln(e)?St:hn:mn}var wt={__proto__:null,[Symbol.iterator](){return Tt(this,Symbol.iterator,Ct(this))},concat(...e){return bt(this).concat(...e.map(e=>p(e)?bt(e):e))},entries(){let e=Ct(this);return Tt(this,`entries`,t=>(t[1]=e(t[1]),t))},every(e,t){return Ot(this,`every`,e,t,void 0,arguments)},filter(e,t){return Ot(this,`filter`,e,t,e=>e.map(Ct(this)),arguments)},find(e,t){return Ot(this,`find`,e,t,e=>Ct(this)(e),arguments)},findIndex(e,t){return Ot(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return Ot(this,`findLast`,e,t,e=>Ct(this)(e),arguments)},findLastIndex(e,t){return Ot(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return Ot(this,`forEach`,e,t,void 0,arguments)},includes(...e){return At(this,`includes`,e)},indexOf(...e){return At(this,`indexOf`,e)},join(e){return bt(this).join(e)},lastIndexOf(...e){return At(this,`lastIndexOf`,e)},map(e,t){return Ot(this,`map`,e,t,void 0,arguments)},pop(){return jt(this,`pop`)},push(...e){return jt(this,`push`,e)},reduce(e,...t){return kt(this,`reduce`,e,t)},reduceRight(e,...t){return kt(this,`reduceRight`,e,t)},shift(){return jt(this,`shift`)},some(e,t){return Ot(this,`some`,e,t,void 0,arguments)},splice(...e){return jt(this,`splice`,e)},toReversed(){return bt(this).toReversed()},toSorted(e){return bt(this).toSorted(e)},toSpliced(...e){return bt(this).toSpliced(...e)},unshift(...e){return jt(this,`unshift`,e)},values(){return Tt(this,`values`,Ct(this))}};function Tt(e,t,n){let r=xt(e),i=r[t],a=i.call(r);if(r!==e&&!dn(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>Et(a.next(),n),i!==Dt[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>Et(a._next(),n)}return a}function Et(e,t){return e.done||(e.value=t(e.value)),e}var Dt=Array.prototype;function Ot(e,t,n,r,i,a){let o=xt(e),s=o!==e&&!dn(e),c=o[t];if(c!==Dt[t]){let t=c.apply(e,a);return s?mn(t):t}let l=n;if(o!==e){if(s){let t=Ct(e);l=function(r,i){return n.call(this,t(r),i,e)}}else n.length>2&&(l=function(t,r){return n.call(this,t,r,e)})}let u=c.call(o,l,r);return s&&i?i(u):u}function kt(e,t,n,r){let i=xt(e),a=i!==e&&!dn(e),o=n,s=!1;if(i!==e){if(a){let t=Ct(e);s=r.length===0,o=function(r,i,a){return s&&(s=!1,r=t(r)),n.call(this,r,t(i),a,e)}}else n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)})}let c=i[t](o,...r);return s?Ct(e)(c):c}function At(e,t,n){let r=j(e);_t(r,`iterate`,gt);let i=r[t](...n);return(i===-1||i===!1)&&fn(n[0])?(n[0]=j(n[0]),r[t](...n)):i}function jt(e,t,n=[]){ot(),Je();let r=j(e)[t].apply(e,n);return Ye(),st(),r}var Mt=n(`__proto__,__v_isRef,__isVue`),Nt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Pt(e){b(e)||(e=String(e));let t=j(this);return _t(t,`has`,e),t.hasOwnProperty(e)}var Ft=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?tn:en:i?$t:Qt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=wt[t]))return e;if(t===`hasOwnProperty`)return Pt}let o=Reflect.get(e,t,M(e)?e:n);if((b(t)?Nt.has(t):Mt(t))||(r||_t(e,`get`,t),i))return o;if(M(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?on(e):e}return x(o)?r?on(o):rn(o):o}},It=class extends Ft{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=p(e)&&T(t);if(!this._isShallow){let e=un(i);if(!dn(n)&&!un(n)&&(i=j(i),n=j(n)),!a&&M(i)&&!M(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,M(e)?e:r);return e===j(r)&&s&&(o?D(n,i)&&vt(e,`set`,t,n,i):vt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&vt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return b(t)&&Nt.has(t)||_t(e,`has`,t),n}ownKeys(e){return _t(e,`iterate`,p(e)?`length`:mt),Reflect.ownKeys(e)}},Lt=class extends Ft{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},Rt=new It,zt=new Lt,Bt=new It(!0),Vt=new Lt(!0),Ht=e=>e,Ut=e=>Reflect.getPrototypeOf(e);function Wt(e,t,n){return function(...r){let i=this.__v_raw,a=j(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Ht:t?hn:mn;return!t&&_t(a,`iterate`,c?ht:mt),l(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Gt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function Kt(e,t){let n={get(n){let r=this.__v_raw,i=j(r),a=j(n);e||(D(n,a)&&_t(i,`get`,n),_t(i,`get`,a));let{has:o}=Ut(i),s=t?Ht:e?hn:mn;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&_t(j(t),`iterate`,mt),t.size},has(t){let n=this.__v_raw,r=j(n),i=j(t);return e||(D(t,i)&&_t(r,`has`,t),_t(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=j(a),s=t?Ht:e?hn:mn;return!e&&_t(o,`iterate`,mt),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Gt(`add`),set:Gt(`set`),delete:Gt(`delete`),clear:Gt(`clear`)}:{add(e){let n=j(this),r=Ut(n),i=j(e),a=!t&&!dn(e)&&!un(e)?i:e;return r.has.call(n,a)||D(e,a)&&r.has.call(n,e)||D(i,a)&&r.has.call(n,i)||(n.add(a),vt(n,`add`,a,a)),this},set(e,n){t||dn(n)||un(n)||(n=j(n));let r=j(this),{has:i,get:a}=Ut(r),o=i.call(r,e);o||=(e=j(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?D(n,s)&&vt(r,`set`,e,n,s):vt(r,`add`,e,n),this},delete(e){let t=j(this),{has:n,get:r}=Ut(t),i=n.call(t,e);i||=(e=j(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&vt(t,`delete`,e,void 0,a),o},clear(){let e=j(this),t=e.size!==0,n=e.clear();return t&&vt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Wt(r,e,t)}),n}function qt(e,t){let n=Kt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(f(n,i)&&i in r?n:r,i,a)}var Jt={get:qt(!1,!1)},Yt={get:qt(!1,!0)},Xt={get:qt(!0,!1)},Zt={get:qt(!0,!0)},Qt=new WeakMap,$t=new WeakMap,en=new WeakMap,tn=new WeakMap;function nn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function rn(e){return un(e)?e:cn(e,!1,Rt,Jt,Qt)}function an(e){return cn(e,!1,Bt,Yt,$t)}function on(e){return cn(e,!0,zt,Xt,en)}function sn(e){return cn(e,!0,Vt,Zt,tn)}function cn(e,t,n,r,i){if(!x(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=nn(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function ln(e){return un(e)?ln(e.__v_raw):!!(e&&e.__v_isReactive)}function un(e){return!!(e&&e.__v_isReadonly)}function dn(e){return!!(e&&e.__v_isShallow)}function fn(e){return e?!!e.__v_raw:!1}function j(e){let t=e&&e.__v_raw;return t?j(t):e}function pn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&de(e,`__v_skip`,!0),e}var mn=e=>x(e)?rn(e):e,hn=e=>x(e)?on(e):e;function M(e){return e?e.__v_isRef===!0:!1}function N(e){return _n(e,!1)}function gn(e){return _n(e,!0)}function _n(e,t){return M(e)?e:new vn(e,t)}var vn=class{constructor(e,t){this.dep=new dt,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:j(e),this._value=t?e:mn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||dn(e)||un(e);e=n?e:j(e),D(e,t)&&(this._rawValue=e,this._value=n?e:mn(e),this.dep.trigger())}};function yn(e){e.dep&&e.dep.trigger()}function P(e){return M(e)?e.value:e}function bn(e){return v(e)?e():P(e)}var xn={get:(e,t,n)=>t===`__v_raw`?e:P(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return M(i)&&!M(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Sn(e){return ln(e)?e:new Proxy(e,xn)}var Cn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new dt,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}};function wn(e){return new Cn(e)}function Tn(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=kn(e,n);return t}var En=class{constructor(e,t,n){this._object=e,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._key=b(t)?t:String(t),this._raw=j(e);let r=!0,i=e;if(!p(e)||b(this._key)||!T(this._key))do r=!fn(i)||dn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=P(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&M(this._raw[this._key])){let t=this._object[this._key];if(M(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return yt(this._raw,this._key)}},Dn=class{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}};function On(e,t,n){return M(e)?e:v(e)?new Dn(e):x(e)&&arguments.length>1?kn(e,t,n):N(e)}function kn(e,t,n){return new En(e,t,n)}var An=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new dt(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=lt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&A!==this)return qe(this,!0),!0}get value(){let e=this.dep.track();return $e(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function jn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new An(r,i,n)}var Mn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Nn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Pn={},Fn=new WeakMap,In=void 0;function Ln(){return In}function Rn(e,t=!1,n=In){if(n){let t=Fn.get(n);t||Fn.set(n,t=[]),t.push(e)}}function zn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d,onStop:f}=n,m=e=>o?e:dn(e)||o===!1||o===0?Bn(e,1):Bn(e),h,g,_,y,b=!1,x=!1;if(M(e)?(g=()=>e.value,b=dn(e)):ln(e)?(g=()=>m(e),b=!0):p(e)?(x=!0,b=e.some(e=>ln(e)||dn(e)),g=()=>e.map(e=>{if(M(e))return e.value;if(ln(e))return m(e);if(v(e))return d?d(e,2):e()})):g=v(e)?t?d?()=>d(e,2):e:()=>{if(_){ot();try{_()}finally{st()}}let t=In;In=h;try{return d?d(e,3,[y]):e(y)}finally{In=t}}:a,t&&o){let e=g,t=o===!0?1/0:o;g=()=>Bn(e(),x?t+1:t)}let S=Be(),ee=()=>{h.stop(),S&&S.active&&u(S.effects,h)},C=!1;if(s&&t){let e=t;t=(...t)=>{C=!0;try{return e(...t)}finally{ee()}}}let te=x?Array(e.length).fill(Pn):Pn,w=e=>{if(!C&&h.flags&1&&(h.dirty||e)){if(t){let n=h.run();if(e||o||b||(x?n.some((e,t)=>D(e,te[t])):D(n,te))){let e=In;ot();try{_&&_(),In=h;let e=[n,te===Pn?void 0:x&&te[0]===Pn?[]:te,y];te=n,d?d(t,3,e):t(...e)}finally{In=e,st()}}}else h.run()}};return l&&l(w),h=new Ue(g),h.scheduler=c?()=>c(w,!1):w,y=e=>Rn(e,!1,h),_=h.onStop=()=>{let e=Fn.get(h);if(e){if(d)d(e,4);else for(let t of e)t();Fn.delete(h)}},f&&(h.onStop=()=>{_(),f()}),t?i?w(!0):te=h.run():c?c(w.bind(null,!0),!0):h.run(),ee.pause=h.pause.bind(h),ee.resume=h.resume.bind(h),ee.stop=ee,ee}function Bn(e,t=1/0,n){if(t<=0||!x(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,M(e))Bn(e.value,t,n);else if(p(e)){if(ln(e)&&!un(e)&&!dn(e)){let r=j(e);_t(r,`iterate`,gt);for(let e=0;e<r.length;e++){let i=r[e];Bn(M(i)?i:mn(i),t,n)}}else for(let r=0;r<e.length;r++)Bn(e[r],t,n)}else if(h(e)||m(e))e.forEach(e=>{Bn(e,t,n)});else if(w(e)){for(let r in e)Bn(e[r],t,n);let r=j(e);for(let i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Bn(e[i],t,n)}return e}var Vn=[];function Hn(e){Vn.push(e)}function Un(){Vn.pop()}function Wn(e,t){}var Gn={SETUP_FUNCTION:0,0:`SETUP_FUNCTION`,RENDER_FUNCTION:1,1:`RENDER_FUNCTION`,NATIVE_EVENT_HANDLER:5,5:`NATIVE_EVENT_HANDLER`,COMPONENT_EVENT_HANDLER:6,6:`COMPONENT_EVENT_HANDLER`,VNODE_HOOK:7,7:`VNODE_HOOK`,DIRECTIVE_HOOK:8,8:`DIRECTIVE_HOOK`,TRANSITION_HOOK:9,9:`TRANSITION_HOOK`,APP_ERROR_HANDLER:10,10:`APP_ERROR_HANDLER`,APP_WARN_HANDLER:11,11:`APP_WARN_HANDLER`,FUNCTION_REF:12,12:`FUNCTION_REF`,ASYNC_COMPONENT_LOADER:13,13:`ASYNC_COMPONENT_LOADER`,SCHEDULER:14,14:`SCHEDULER`,COMPONENT_UPDATE:15,15:`COMPONENT_UPDATE`,APP_UNMOUNT_CLEANUP:16,16:`APP_UNMOUNT_CLEANUP`},Kn={sp:`serverPrefetch hook`,bc:`beforeCreate hook`,c:`created hook`,bm:`beforeMount hook`,m:`mounted hook`,bu:`beforeUpdate hook`,u:`updated`,bum:`beforeUnmount hook`,um:`unmounted hook`,a:`activated hook`,da:`deactivated hook`,ec:`errorCaptured hook`,rtc:`renderTracked hook`,rtg:`renderTriggered hook`,0:`setup function`,1:`render function`,2:`watcher getter`,3:`watcher callback`,4:`watcher cleanup function`,5:`native event handler`,6:`component event handler`,7:`vnode hook`,8:`directive hook`,9:`transition hook`,10:`app errorHandler`,11:`app warnHandler`,12:`ref function`,13:`async component loader`,14:`scheduler flush`,15:`component update`,16:`app unmount cleanup function`};function qn(e,t,n,r){try{return r?e(...r):e()}catch(e){Yn(e,t,n)}}function Jn(e,t,n,r){if(v(e)){let i=qn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Yn(e,t,n,void 0,!0)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Jn(e[a],t,n,r));return i}}function Yn(e,t,n,i=!0,a=!1){let o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||r;if(t){let r=t.parent,i=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;r;){let t=r.ec;if(t&&!r.isUnmounted&&(!a||r.scope.active)){for(let n=0;n<t.length;n++)if(t[n](e,i,o)===!1)return}r=r.parent}if(s){ot(),qn(s,null,10,[e,i,o]),st();return}}Xn(e,n,o,i,c)}function Xn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Zn=[],Qn=-1,$n=[],er=null,tr=0,nr=Promise.resolve(),rr=null;function ir(e){let t=rr||nr;return e?t.then(this?e.bind(this):e):t}function ar(e){let t=Qn+1,n=Zn.length;for(;t<n;){let r=t+n>>>1,i=Zn[r],a=pr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function or(e){if(!(e.flags&1)){let t=pr(e),n=Zn[Zn.length-1];!n||!(e.flags&2)&&t>=pr(n)?Zn.push(e):Zn.splice(ar(t),0,e),e.flags|=1,sr()}}function sr(){rr||=nr.then(mr)}function cr(e){if(!p(e))er&&e.id===-1?er.splice(tr+1,0,e):e.flags&1||($n.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)$n.push(e[t]);sr()}function lr(e,t,n,r=Qn+1){for(;r<Zn.length;r++){let n=Zn[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;Zn.splice(r,1),r=e?r-1:Qn,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function ur(e,t,n=0){if($n.length){let e=$n,r=0;if(t){e=[];for(let i=0;i<$n.length;i++){let a=$n[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?$n[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>pr(e)-pr(t));if($n.length=r,er){for(let e=0;e<i.length;e++)er.push(i[e]);return}for(er=i,tr=0;tr<er.length;tr++){let e=er[tr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}er=null,tr=0}}var dr=!1;function fr(e,t){if(dr){e();return}let n=t===void 0?void 0:new Set($n);e(),dr=!0;try{lr(void 0,t),ur(void 0,n,t)}finally{dr=!1}}var pr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function mr(e){try{for(Qn=0;Qn<Zn.length;Qn++){let e=Zn[Qn];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),qn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;Qn<Zn.length;Qn++){let e=Zn[Qn];e&&(e.flags&=-2)}Qn=-1,Zn.length=0,ur(e),rr=null,(Zn.length||$n.length)&&mr(e)}}var hr,gr=[];function _r(e,t){hr=e,hr?(hr.enabled=!0,gr.forEach(({event:e,args:t})=>hr.emit(e,...t)),gr=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{_r(e,t)}),setTimeout(()=>{hr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,gr=[])},3e3)):gr=[]}var vr=null,yr=null;function br(e){let t=vr;return vr=e,yr=e&&e.type.__scopeId||null,t}function xr(e){yr=e}function Sr(){yr=null}var Cr=e=>F;function F(e,t=vr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&Cs(-1);let i=br(t),a=ys.length,o;try{o=e(...n)}finally{for(let e=ys.length;e>a;e--)xs();br(i),r._d&&Cs(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function I(e,t){if(vr===null)return e;let n=cc(vr),i=e.dirs||=[];for(let e=0;e<t.length;e++){let[a,o,s,c=r]=t[e];a&&(v(a)&&(a={mounted:a,updated:a}),a.deep&&Bn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function wr(e,t,n,r){let i=e;if(r===`beforeMount`)e._mount=e;else if(r===`beforeUpdate`){let n=t&&t._mount;n&&(n._latest=e,e._mount=n)}else if(r===`mounted`){let t=e._latest;e._mount=e._latest=void 0,t&&(i=t,t._mount=void 0)}let a=i.dirs,o=t&&t.dirs;for(let s=0;s<a.length;s++){let c=a[s];o?c.oldValue=o[s].value:r===`mounted`&&c.oldValue!==void 0&&(c=l({},c,{oldValue:void 0}));let u=c.dir[r];u&&(ot(),Jn(u,n,8,[e.el,c,i,t]),st())}}function Tr(e,t){if(Us){let n=Us.provides,r=Us.parent&&Us.parent.provides;r===n&&(n=Us.provides=Object.create(r)),n[e]=t}}function Er(e,t,n=!1){let r=Ws();if(r||lo){let i=lo?lo._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&v(t)?t.call(r&&r.proxy):t}}function Dr(){return!!(Ws()||lo)}var Or=Symbol.for(`v-scx`),kr=()=>Er(Or);function Ar(e,t){return Pr(e,null,t)}function jr(e,t){return Pr(e,null,{flush:`post`})}function Mr(e,t){return Pr(e,null,{flush:`sync`})}function Nr(e,t,n){return Pr(e,t,n)}function Pr(e,t,n=r){let{immediate:i,deep:o,flush:s,once:c}=n,u=l({},n),d=t&&i||!t&&s!==`post`,f;if(Xs){if(s===`sync`){let e=kr();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Us,m;if(p&&Be()!==p.scope){if(p.scope.active){let e=p.scope.run(()=>new Re);e.run(()=>Ve(()=>Promise.resolve().then(()=>{p=null,m&&(m.i=null)}))),u.onStop=()=>e.stop()}else p=null}u.call=(e,t,n)=>Jn(e,p,t,n);let h=!1;s===`post`?u.scheduler=e=>{e.i=p,z(e,p&&p.suspense)}:s!==`sync`&&(h=!0,u.scheduler=(e,t)=>{t?e():or(e)}),u.augmentJob=e=>{m=e,t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let g=zn(e,t,u);return Xs&&(f?f.push(g):d&&g()),g}function Fr(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Ir(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=qs(this),s=Pr(i,a.bind(r),n);return o(),s}function Ir(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Lr=new WeakMap,Rr=Symbol(`_vte`),zr=e=>e.__isTeleport,Br=e=>e&&(e.disabled||e.disabled===``),Vr=e=>e&&(e.defer||e.defer===``),Hr=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Ur=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Wr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Gr={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Br(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Br(e.props),r=e.target=Wr(e.props,m),a=Xr(r,e,h,p);r&&(o!==`svg`&&Hr(r)?o=`svg`:o!==`mathml`&&Ur(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Yr(e,!1)))},S=e=>{let t=()=>{if(Lr.get(e)===t){if(Lr.delete(e),Br(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Yr(e,!0)}x(e)}};Lr.set(e,t),z(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Vr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Yr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Lr.get(e);if(u){u.flags|=8,Lr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Br(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Hr(p)?o=`svg`:(o===`mathml`||Ur(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Yo(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Kr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Wr(t.props,m);e&&(t.target=e,Kr(t,e,null,l,0))}else g&&Kr(t,p,h,l,1);Yr(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Br(f),m=a||!p,h=Lr.get(e);if(h&&(h.flags|=8,Lr.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Kr,hydrate:qr};function Kr(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Lr.has(e)&&(!d||Br(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function qr(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Wr(t.props,c),h=Br(t.props);if(m){let c=m._lpa||m.firstChild;if(t.shapeFlag&16){if(h)f(m,c),p(e,t),t.targetAnchor||Xr(m,t,u,l,s(e)===m?e:null);else{t.anchor=o(e),f(m,c);let s=!!t.targetAnchor;s||Xr(m,t,u,l),d(s?c&&o(c):null,t,m,n,r,i,a,t.targetAnchor)}}Yr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Jr=Gr;function Yr(e,t){let n=e.ctx;n&&n.ut&&(t?n.ut(e.el,e.anchor):n.ut(e.targetStart,e.targetAnchor))}function Xr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Rr]=o,e&&(r(a,e,i),r(o,e,i)),o}var Zr=Symbol(`_leaveCb`),Qr=Symbol(`_enterCb`);function $r(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ia(()=>{e.isMounted=!0}),sa(()=>{e.isUnmounting=!0}),e}var ei=[Function,Array],ti={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ei,onEnter:ei,onAfterEnter:ei,onEnterCancelled:ei,onBeforeLeave:ei,onLeave:ei,onAfterLeave:ei,onLeaveCancelled:ei,onBeforeAppear:ei,onAppear:ei,onAfterAppear:ei,onAppearCancelled:ei},ni={name:`BaseTransition`,props:ti,setup(e,{slots:t}){let n=Ws(),r=$r();return()=>{let i=t.default&&ui(t.default(),!0),a=i&&i.length?ri(i):n.subTree?J():void 0;if(!a)return;let o=j(e),{mode:s}=o;if(r.isLeaving)return si(a);let c=ci(a);if(!c)return si(a);let l=oi(c,o,r,n);c.type!==V&&li(c,l);let u=n.subTree&&ci(n.subTree);if(u&&u.type!==V&&!Es(u,c)&&di(n.subTree)){let e=oi(u,o,r,n);if(li(u,e),s===`out-in`&&c.type!==V)return r.isLeaving=!0,e.afterLeave=()=>{if(r.isLeaving=!1,!(n.job.flags&8)){if(n.effect.flags&2){let e=()=>{n.job.flags&8||n.update()};e.i=n,or(e)}else n.update()}delete e.afterLeave,u=void 0},si(a);s===`in-out`&&c.type!==V?e.delayLeave=(t,n,i)=>{let a=ai(r,u);a[String(u.key)]=u,t[Zr]=()=>{n(),t[Zr]=void 0,delete l.delayedLeave,delete e.delayLeave,u=void 0},l.delayedLeave=()=>{i(),delete l.delayedLeave,delete e.delayLeave,u=void 0}}:u=void 0}else u&&=void 0;return a}}};function ri(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==V){t=n;break}}return t}var ii=ni;function ai(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function oi(e,t,n,r){let{appear:i,mode:a,persisted:o=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:l,onEnterCancelled:u,onBeforeLeave:d,onLeave:f,onAfterLeave:m,onLeaveCancelled:h,onBeforeAppear:g,onAppear:_,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),x=ai(n,e),S=(e,t)=>{e&&Jn(e,r,9,t)},ee=(e,t)=>{let n=t[1];S(e,t),p(e)?e.every(e=>e.length<=1)&&n():e.length<=1&&n()},C={mode:a,persisted:o,beforeEnter(t){let r=s;if(!n.isMounted){if(i)r=g||s;else return}t[Zr]&&t[Zr](!0);let a=x[b];if(a&&Es(e,a)){let e=a.el[Zr];if(!e){let t=di(a);e=t&&t.el[Zr]}e&&e()}S(r,[t])},enter(e){if(e[Zr]){C.delayedLeave&&C.delayedLeave();return}let t=c,r=l,a=u;if(!n.isMounted){if(i)t=_||c,r=v||l,a=y||u;else return}let o=!1;e[Qr]=t=>{o||(o=!0,S(t?a:r,[e]),C.delayedLeave&&C.delayedLeave(),e[Qr]=void 0)};let s=e[Qr].bind(null,!1);t?ee(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[Qr]&&t[Qr](!0),n.isUnmounting)return r();S(d,[t]);let a=!1;t[Zr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Zr]=void 0,x[i]===e&&delete x[i])};let o=t[Zr].bind(null,!1);x[i]=e,f?ee(f,[t,o]):o()},clone(e){let i=oi(e,t,n,r);return i.afterLeave=()=>{C.afterLeave&&C.afterLeave()},i.delayLeave=(e,t,n)=>{C.delayLeave?C.delayLeave(e,t,n):n()},i.delayedLeave=()=>{C.delayedLeave&&C.delayedLeave()},i}};return C}function si(e){if(Ki(e))return e=Ms(e),e.children=null,e}function ci(e){if(!Ki(e))return zr(e.type)&&e.children?ri(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&v(n.default))return n.default()}}function li(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;li(zr(n.type)&&ci(n)||n,t)}else if(e.shapeFlag&128){let n=e.suspense;if(n){let e=n.isHydrating?n.pendingBranch:n.activeBranch;e&&li(e,t.clone(e))}else e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)}else if(e.transition=t,e.type===B&&p(e.children)){let n=vo(e.children,!1);n&&li(n,t)}}function ui(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a],s=n==null?o.key:String(n)+String(o.key==null?a:o.key);o.type===B?(o.patchFlag&128&&i++,r=r.concat(ui(o.children,t,s))):(t||o.type!==V)&&r.push(s==null?o:Ms(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function di(e){if(e.component)return di(e.component.subTree);if(e.type===B){let t=p(e.children)&&vo(e.children,!1);return t?di(t):void 0}if(e.type!==V)return e}function L(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function fi(){let e=Ws();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function pi(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function mi(e){let t=Ws(),n=gn(null);if(t){let i=t.refs===r?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:e=>n.value=e})}return n}function hi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var gi=new WeakMap;function _i(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>_i(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Ui(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&_i(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?cc(i.component):i.el,c=a?null:s,{i:l,r:d}=e,m=t&&t.r,h=l.refs===r?l.refs={}:l.refs,g=l.setupState,_=j(g),b=g===r?o:e=>!hi(h,e)&&f(_,e),x=(e,t)=>!(t&&hi(h,t));if(m!=null&&m!==d){if(vi(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(M(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))qn(d,l,12,[c,h]);else{let t=y(d),r=M(d);if(t||r){let i=()=>{if(e.f){let n=t?b(d)?g[d]:h[d]:x(d)||!e.k?d.value:h[e.k];if(a)p(n)&&u(n,s);else if(p(n))n.includes(s)||n.push(s);else if(t)h[d]=[s],b(d)&&(g[d]=h[d]);else{let t=[s];x(d,e.k)&&(d.value=t),e.k&&(h[e.k]=t)}}else t?(h[d]=c,b(d)&&(g[d]=c)):r&&(x(d,e.k)&&(d.value=c),e.k&&(h[e.k]=c))};if(c){let t=()=>{i(),gi.delete(e)};t.id=-1,gi.set(e,t),z(t,n)}else vi(e),i()}}}function vi(e){let t=gi.get(e);t&&(t.flags|=8,gi.delete(e))}var yi=!1,bi=()=>{yi||=(console.error(`Hydration completed but contains mismatches.`),!0)},xi=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Si=e=>e.namespaceURI.includes(`MathML`),Ci=e=>{if(e.nodeType===1){if(xi(e))return`svg`;if(Si(e))return`mathml`}},wi=e=>e.nodeType===8;function Ti(e){let{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:a,parentNode:o,remove:c,insert:l,createComment:u}}=e,d=(e,t)=>{t.hasChildNodes()?(f(t.firstChild,e,null,null,null),ur(),t._vnode=e):(n(null,e,t),ur(),t._vnode=e)},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=wi(n)&&n.data===`[`,x=()=>g(n,r,s,c,u,b),{type:S,ref:ee,shapeFlag:C,patchFlag:te}=r,w=n.nodeType;r.el=n,te===-2&&(d=!1,r.dynamicChildren=null);let T=null;switch(S){case _s:w===3?(n.data!==r.children&&(bi(),n.data=r.children),T=a(n)):r.children===``?(l(r.el=i(``),o(n),n),T=n):T=x();break;case V:y(n)?(T=a(n),v(r.el=n.content.firstChild,n,s)):T=w!==8||b?x():a(n);break;case vs:if(b&&(n=a(n),w=n.nodeType),w===1||w===3){T=n;let e=!r.children.length;for(let t=0;t<r.staticCount;t++)e&&(r.children+=T.nodeType===1?T.outerHTML:T.data),t===r.staticCount-1&&(r.anchor=T),T=a(T);return b?a(T):T}T=x();break;case B:T=b?h(n,r,s,c,u,d):x();break;default:if(C&1)T=(w!==1||r.type.toLowerCase()!==n.tagName.toLowerCase())&&!y(n)?x():p(n,r,s,c,u,d);else if(C&6){r.slotScopeIds=u;let e=o(n);if(T=b?_(n):wi(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,Ci(e),d),(Ui(r)||r.component.asyncDep)&&!r.component.subTree){let t;b?(t=K(vs),t.anchor=T?T.previousSibling:e.lastChild):t=n.nodeType===3?q(``):K(n.nodeType===8?V:`div`),t.el=n,r.component.subTree=t}}else C&64?T=w===8?r.type.hydrate(n,r,s,c,u,d,e,m):x():C&128&&(T=r.type.hydrate(n,r,s,c,Ci(o(n)),u,d,e,f))}return ee!=null&&_i(ee,null,c,r),T},p=(e,t,n,i,a,o)=>{o||=!!t.dynamicChildren;let{type:l,dynamicProps:u,props:d,patchFlag:f,shapeFlag:p,dirs:h,transition:g}=t,_=l===`input`||l===`option`,b=!!u;if(_||b||f!==-1||g&&l!==`template`&&y(e)){h&&wr(t,null,n,`created`);let l=!1;if(y(e)){l=Jo(null,g)&&n&&n.vnode.props&&n.vnode.props.appear;let r=e.content.firstChild;if(l){let e=r.getAttribute(`class`);e&&(r.$cls=e),g.beforeEnter(r)}v(r,e,n),t.el=e=r}if(p&16&&!(d&&(d.innerHTML||d.textContent))){let r=m(e.firstChild,t,e,n,i,a,o);for(r&&!Ai(e,1)&&bi();r;){let e=r;r=r.nextSibling,c(e)}}else if(p&8){let n=t.children;n[0]===`
`&&(e.tagName===`PRE`||e.tagName===`TEXTAREA`)&&(n=n.slice(1));let{textContent:r}=e;r!==n&&r!==n.replace(/\r\n|\r/g,`
`)&&(Ai(e,0)||bi(),e.textContent=t.children)}if(d){if(_||b||!o||f&48){let t=e.tagName.includes(`-`),i=e.namespaceURI.includes(`svg`)?`svg`:e.namespaceURI.includes(`MathML`)?`mathml`:void 0;for(let a in d)if(_&&(a.endsWith(`value`)||a===`indeterminate`)||s(a)&&!ne(a)||a[0]===`.`||t&&!ne(a)||u&&u.includes(a)){if(Di(e,a,d[a]))continue;r(e,a,null,d[a],i,n)}}else if(d.onClick)r(e,`onClick`,null,d.onClick,void 0,n);else if(f&4&&ln(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&Rs(x,n,t),h&&wr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&ms(()=>{x&&Rs(x,n,t),l&&g.enter(e),h&&wr(t,null,n,`mounted`)},i)}return e.nextSibling},m=(e,t,r,o,s,c,u,d)=>{u||=!!t.dynamicChildren;let p=t.children,m=p.length,h=t.type===B,g=!1;for(let t=0;t<m;t++){let _=u?p[t]:p[t]=Ps(p[t]),v=_.type===_s;h&&e&&wi(e)&&e.data===`]`&&(d=e),e&&e!==d?(v&&!u&&t+1<m&&Ps(p[t+1]).type===_s&&(l(i(e.data.slice(_.children.length)),r,a(e)),e.data=_.children),e=f(e,_,o,s,c,u)):v&&!_.children?l(_.el=i(``),r,d):(g||(g=!0,Ai(r,1)||bi()),n(null,_,r,d,o,s,Ci(r),c))}return e},h=(e,t,n,r,i,s)=>{let{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);let d=o(e),f=m(a(e),t,d,n,r,i,s);return f&&wi(f)&&f.data===`]`?a(t.anchor=f):(bi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Mi(e,t)||bi(),t.el=null,l){let t=_(e);for(;;){let n=a(e);if(n&&n!==t)c(n);else break}}let u=a(e),d=o(e);return c(e),n(null,t,d,u,r,i,Ci(d),s),r&&r.vnode.el===e&&(r.vnode.el=t.el,wo(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&wi(e)&&(e.data===t&&r++,e.data===n)){if(r===0)return a(e);r--}return e},v=(e,t,n)=>{let r=t.parentNode;r&&r.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},y=e=>e.nodeType===1&&e.tagName===`TEMPLATE`;return[d,f]}var Ei=new Set([`src`,`srcset`,`href`,`poster`]);function Di(e,t,n){return Ei.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var Oi=`data-allow-mismatch`,ki={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function Ai(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Oi);)e=e.parentElement;return ji(e&&e.getAttribute(Oi),t)}function ji(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(ki[t])}}function Mi(e,t){return Ai(e.parentElement,1)||Ni(e)||Pi(t)}function Ni(e){return e.nodeType===1&&ji(e.getAttribute(Oi),1)}function Pi({props:e}){let t=e&&e[Oi];return typeof t==`string`&&ji(t,1)}var Fi=he().requestIdleCallback||(e=>setTimeout(e,1)),Ii=he().cancelIdleCallback||(e=>clearTimeout(e)),Li=(e=1e4)=>t=>{let n=Fi(t,{timeout:e});return()=>Ii(n)};function Ri(e){let{top:t,left:n,bottom:r,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t<a||r>0&&r<a)&&(n>0&&n<o||i>0&&i<o)}var zi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e),i=e=>{if(Ri(e))return t(),r.disconnect(),!1;if(getComputedStyle(e).display===`contents`){for(let t=0;t<e.children.length;t++)if(i(e.children[t])===!1)return!1}r.observe(e)};return n(e=>{if(e instanceof Element)return i(e)}),()=>r.disconnect()},Bi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Vi=(e=[])=>(t,n)=>{y(e)&&(e=[e]);let r=!1,i=e=>{r||(r=!0,a(),t(),e.target.dispatchEvent(new e.constructor(e.type,e)))},a=()=>{n(t=>{for(let n of e)t.removeEventListener(n,i)})};return n(t=>{for(let n of e)t.addEventListener(n,i,{once:!0})}),a};function Hi(e,t){if(wi(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(wi(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Ui=e=>!!e.type.__asyncLoader;function Wi(e){v(e)&&(e={loader:e});let{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:c}=e,l=null,u,d=0,f=()=>(d++,l=null,p()),p=()=>{let e;return l||(e=l=t().catch(e=>{if(e=e instanceof Error?e:Error(String(e)),c)return new Promise((t,n)=>{c(e,()=>t(f()),()=>n(e),d+1)});throw e}).then(t=>e!==l&&l?l:(t&&(t.__esModule||t[Symbol.toStringTag]===`Module`)&&(t=t.default),u=t,t)))};return L({name:`AsyncComponentWrapper`,__asyncLoader:p,__asyncHydrate(e,t,n){let r=e.isConnected,i=!1;(t.bu||=[]).push(()=>i=!0);let o=()=>{i||!e.parentNode||r&&!e.isConnected||n()},s=a?()=>{let n=a(o,t=>Hi(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Us;if(pi(e),u)return()=>Gi(u,e);let t=t=>{l=null,Yn(t,e,13,!r,!0)};if(s&&e.suspense||Xs)return p().then(t=>()=>Gi(t,e)).catch(e=>(t(e),()=>r?K(r,{error:e}):null));let a=N(!1),c=N(),d=N(!!i),f,m;return Ve(()=>{f!=null&&clearTimeout(f),m!=null&&clearTimeout(m)}),i&&(m=setTimeout(()=>{e.isUnmounted||(d.value=!1)},i)),o!=null&&(f=setTimeout(()=>{if(!e.isUnmounted&&!a.value&&!c.value){let e=Error(`Async component timed out after ${o}ms.`);t(e),c.value=e}},o)),p().then(()=>{e.isUnmounted||(a.value=!0,e.parent&&Ki(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?l=null:(t(n),c.value=n)}),()=>{if(a.value&&u)return Gi(u,e);if(c.value&&r)return K(r,{error:c.value});if(n&&!d.value)return Gi(n,e)}}})}function Gi(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=K(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var Ki=e=>e.type.__isKeepAlive,qi={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Ws(),r=n.ctx;if(!r.renderer)return()=>{let e=t.default&&t.default();return e&&e.length===1?e[0]:e};let i=new Map,a=new Set,o=null,s=n.suspense,{renderer:{p:c,m:l,um:u,o:{createElement:d}}}=r,f=d(`div`);r.activate=(e,t,n,r,i)=>{let a=e.component;l(e,t,n,0,s),c(a.vnode,e,t,n,a,s,r,e.slotScopeIds,i),z(()=>{a.isDeactivated=!1,a.a&&ue(a.a);let t=e.props&&e.props.onVnodeMounted;t&&Rs(t,a.parent,e)},s)},r.deactivate=e=>{let t=i.get(e.key==null?e.type:e.key);if(!t||t.component!==e.component)return!1;let n=e.component;return Qo(n.m),Qo(n.a),l(e,f,null,1,s),z(()=>{n.da&&ue(n.da);let t=e.props&&e.props.onVnodeUnmounted;t&&Rs(t,n.parent,e),n.isDeactivated=!0},s),!0};function p(e){$i(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=lc(Ui(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Es(t,o))?p(t):o&&(o.key==null?o.type:o.key)===e&&($i(o),t&&$i(t)),i.delete(e),a.delete(e)}Nr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Ji(e,t)),t&&m(e=>!Ji(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{if(g!=null){if(es(n.subTree.type)){let e=()=>{let e=ea(n.subTree);e.component&&i.set(g,e)};n.subTree.suspense.pendingBranch?z(e,n.subTree.suspense):e()}else i.set(g,ea(n.subTree))}};return ia(_),oa(_),sa(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ea(t);if(e.type===i.type&&e.key===i.key){$i(i);let e=i.component.da;e&&z(e,r)}else p(e)})}),()=>{if(g=null,!t.default)return o=null;let n=t.default(),r=n[0];if(n.length>1)return o=null,n;if(!Ts(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ea(r);if(s.type===V)return o=null,s;let c=s.type,l=lc(Ui(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Ji(u,l))||d&&l&&Ji(d,l))return s.shapeFlag&=-257,o=s,r;let p=s.key==null?c:s.key,m=i.get(p);return s.el&&(s=Ms(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&li(s,s.transition),s.shapeFlag|=512,a.delete(p),a.add(p)):(a.add(p),f&&a.size>parseInt(f,10)&&h(a.values().next().value)),s.shapeFlag|=256,o=s,es(r.type)?r:s}}};function Ji(e,t){return p(e)?e.some(e=>Ji(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Yi(e,t){Zi(e,`a`,t)}function Xi(e,t){Zi(e,`da`,t)}function Zi(e,t,n=Us){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(ta(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ki(e.parent.vnode)&&Qi(r,t,n,e),e=e.parent}}function Qi(e,t,n,r){let i=ta(t,e,r,!0),a=ta(`um`,()=>u(r[t],i),n);a.flags=16}function $i(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ea(e){return e.shapeFlag&128?e.ssContent:e}function ta(e,t,n=Us,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{ot();let i=qs(n),a=Jn(t,n,e,r);return i(),st(),a};return r?i.unshift(a):i.push(a),a}}var na=e=>(t,n=Us)=>{Xs&&e!==`sp`||ta(e,(...e)=>t(...e),n)},ra=na(`bm`),ia=na(`m`),aa=na(`bu`),oa=na(`u`),sa=na(`bum`),ca=na(`um`),la=na(`sp`),ua=na(`rtg`),da=na(`rtc`);function fa(e,t=Us){ta(`ec`,e,t)}var pa=`components`,ma=`directives`;function ha(e,t){return ya(pa,e,!0,t)||e}var ga=Symbol.for(`v-ndc`);function _a(e){return y(e)?ya(pa,e,!1)||e:e||ga}function va(e){return ya(ma,e)}function ya(e,t,n=!0,r=!1){let i=vr||Us;if(i){let n=i.type;if(e===pa){let e=lc(n,!1);if(e&&(e===t||e===E(t)||e===ce(E(t))))return n}let a=ba(i[e]||n[e],t)||ba(i.appContext[e],t);return!a&&r?n:a}}function ba(e,t){return e&&(e[t]||e[E(t)]||e[ce(E(t))])}function R(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&ln(e),r=!1,s=!1;n&&(r=!dn(e),s=un(e),e=xt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?hn(mn(e[n])):mn(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(x(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}function xa(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(p(r))for(let t=0;t<r.length;t++)e[r[t].name]=r[t].fn;else r&&(e[r.name]=r.key?(...e)=>{let t=r.fn(...e);return t&&(t.key=r.key),t}:r.fn)}return e}function Sa(e,t,n,r,i,a){if(n??={},vr.ce||vr.parent&&Ui(vr.parent)&&vr.parent.ce){let e=a!=null&&n.key==null?l({},n,{key:a}):n,i=Object.keys(e).length>0;return t!=="default"&&(e.name=t),H(),W(B,null,[K(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=ys.length;H();let c;try{let i=o&&Ca(o(n)),s=n.key||a||i&&i.key;c=W(B,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=ys.length;e>s;e--)xs();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function Ca(e){return e.some(e=>!Ts(e)||!(e.type===V||e.type===B&&!Ca(e.children)))?e:null}function wa(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:le(r)]=e[r];return n}var Ta=e=>e?Ys(e)?cc(e):Ta(e.parent):null,Ea=l(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=>Ta(e.parent),$root:e=>Ta(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xa(e),$forceUpdate:e=>e.f||=()=>{or(e.update)},$nextTick:e=>e.n||=ir.bind(e.proxy),$watch:e=>Fr.bind(e)}),Da=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),Oa={get({_:e},t){if(t===`__v_skip`)return!0;let{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(t[0]!==`$`){let e=s[t];if(e!==void 0)switch(e){case 1:return i[t];case 2:return a[t];case 4:return n[t];case 3:return o[t]}else if(Da(i,t))return s[t]=1,i[t];else if(a!==r&&f(a,t))return s[t]=2,a[t];else if(f(o,t))return s[t]=3,o[t];else if(n!==r&&f(n,t))return s[t]=4,n[t];else Ga&&(s[t]=0)}let u=Ea[t],d,p;if(u)return t===`$attrs`&&_t(e.attrs,`get`,``),u(e);if((d=c.__cssModules)&&(d=d[t]))return d;if(n!==r&&f(n,t))return s[t]=4,n[t];if(p=l.config.globalProperties,f(p,t))return p[t]},set({_:e},t,n){let{data:i,setupState:a,ctx:o}=e;return Da(a,t)?(a[t]=n,!0):i!==r&&f(i,t)?(i[t]=n,!0):f(e.props,t)||t[0]===`$`&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(n[c]||e!==r&&c[0]!==`$`&&f(e,c)||Da(t,c)||f(o,c)||f(i,c)||f(Ea,c)||f(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?f(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}},ka=l({},Oa,{get(e,t){if(t!==Symbol.unscopables)return Oa.get(e,t,e)},has(e,t){return t[0]!==`_`&&!ge(t)}});function Aa(){return null}function ja(){return null}function Ma(e){}function Na(e){}function Pa(){return null}function Fa(){}function Ia(e,t){return null}function La(){return za(`useSlots`).slots}function Ra(){return za(`useAttrs`).attrs}function za(e){let t=Ws();return t.setupContext||=sc(t)}function Ba(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Va(e,t){let n=Ba(e);for(let e in t){if(e.startsWith(`__skip`))continue;let r=n[e];r?p(r)||v(r)?r=n[e]={type:r,default:t[e]}:r.default=t[e]:r===null&&(r=n[e]={default:t[e]}),r&&t[`__skip_${e}`]&&(r.skipFactory=!0)}return n}function Ha(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Ba(e),Ba(t))}function Ua(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Wa(e){let t=Ws(),n=Xs,r=e();Js(),n&&Ks(!1);let i=()=>{qs(t),n&&Ks(!0)},a=()=>{Ws()!==t&&t.scope.off(),Js(),n&&Ks(!1)};return S(r)&&(r=r.catch(e=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(a)),e})),[r,()=>{i(),Promise.resolve().then(a)}]}var Ga=!0;function Ka(e){let t=Xa(e),n=e.proxy,r=e.ctx;Ga=!1,t.beforeCreate&&Ja(t.beforeCreate,e,`bc`);let{data:i,computed:o,methods:s,watch:c,provide:l,inject:u,created:d,beforeMount:f,mounted:m,beforeUpdate:h,updated:g,activated:_,deactivated:y,beforeDestroy:b,beforeUnmount:S,destroyed:ee,unmounted:C,render:te,renderTracked:w,renderTriggered:T,errorCaptured:ne,serverPrefetch:re,expose:ie,inheritAttrs:ae,components:E,directives:oe,filters:se}=t;if(u&&qa(u,r,null),s)for(let e in s){let t=s[e];v(t)&&(r[e]=t.bind(n))}if(i){let t=i.call(n,n);x(t)&&(e.data=rn(t))}if(Ga=!0,o)for(let e in o){let t=o[e],i=dc({get:v(t)?t.bind(n,n):v(t.get)?t.get.bind(n,n):a,set:!v(t)&&v(t.set)?t.set.bind(n):a});Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e})}if(c)for(let e in c)Ya(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Tr(t,e[t])})}d&&Ja(d,e,`c`);function ce(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ce(ra,f),ce(ia,m),ce(aa,h),ce(oa,g),ce(Yi,_),ce(Xi,y),ce(fa,ne),ce(da,w),ce(ua,T),ce(sa,S),ce(ca,C),ce(la,re),p(ie)){if(ie.length){let t=e.exposed||={};ie.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}te&&e.render===a&&(e.render=te),ae!=null&&(e.inheritAttrs=ae),E&&(e.components=E),oe&&(e.directives=oe),re&&pi(e)}function qa(e,t,n=a){p(e)&&(e=to(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Er(r.from||n,r.default,!0):Er(r.from||n):Er(r),M(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ja(e,t,n){Jn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ya(e,t,n,r){let i=r.includes(`.`)?Ir(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Nr(i,n)}else if(v(e))Nr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Ya(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Nr(i,r,e)}}}function Xa(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Za(c,e,o,!0)),Za(c,t,o)),x(t)&&a.set(t,c),c}function Za(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Za(e,a,n,!0),i&&i.forEach(t=>Za(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Qa[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Qa={data:$a,props:io,emits:io,methods:ro,computed:ro,beforeCreate:no,created:no,beforeMount:no,mounted:no,beforeUpdate:no,updated:no,beforeDestroy:no,beforeUnmount:no,destroyed:no,unmounted:no,activated:no,deactivated:no,errorCaptured:no,serverPrefetch:no,components:ro,directives:ro,watch:ao,provide:$a,inject:eo};function $a(e,t){return t?e?function(){return l(v(e)?e.call(this,this):e,v(t)?t.call(this,this):t)}:t:e}function eo(e,t){return ro(to(e),to(t))}function to(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function no(e,t){return e?[...new Set([].concat(e,t))]:t}function ro(e,t){return e?l(Object.create(null),e,t):t}function io(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Ba(e),Ba(t??{})):t}function ao(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=no(e[r],t[r]);return n}function oo(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}var so=0;function co(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=oo(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:so++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:gc,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&v(e.install)?(a.add(e),e.install(c,...t)):v(e)&&(a.add(e),e(c,...t))),c},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),c},component(e,t){return t?(i.components[e]=t,c):i.components[e]},directive(e,t){return t?(i.directives[e]=t,c):i.directives[e]},mount(a,o,l){if(!s){let u=c._ceVNode||K(n,r);return u.appContext=i,l===!0?l=`svg`:l===!1&&(l=void 0),o&&t?t(u,a):e(u,a,l),s=!0,c._container=a,a.__vue_app__=c,cc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Jn(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return i.provides[e]=t,c},runWithContext(e){let t=lo;lo=c;try{return e()}finally{lo=t}}};return c}}var lo=null;function uo(e,t,n=r){let i=Ws(),a=E(t),o=se(t),s=fo(e,a),c=wn((s,c)=>{let l,u=r,d;return Mr(()=>{let t=e[a];D(l,t)&&(l=t,c())}),{get(){return s(),n.get?n.get(l):l},set(e){let s=n.set?n.set(e):e;if(!D(s,l)&&!(u!==r&&D(e,u)))return;let f=i.vnode.props,p=!!(f&&(t in f||a in f||o in f)&&(`onUpdate:${t}`in f||`onUpdate:${a}`in f||`onUpdate:${o}`in f));p||(l=e,c()),i.emit(`update:${t}`,s),D(e,u)&&(D(e,s)&&!D(s,d)||p&&u!==r&&!D(s,l))&&c(),u=e,d=s}}});return c[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?s||r:c,done:!1}:{done:!0}}}},c}var fo=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${se(t)}Modifiers`];function po(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&fo(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(fe)));let c,l=i[c=le(t)]||i[c=le(E(t))];!l&&o&&(l=i[c=le(se(t))]),l&&Jn(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,Jn(u,e,6,a)}}var mo=new WeakMap;function ho(e,t,n=!1){let r=n?mo:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},s=!1;if(!v(e)){let r=e=>{let n=ho(e,t,!0);n&&(s=!0,l(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!s?(x(e)&&r.set(e,null),null):(p(a)?a.forEach(e=>o[e]=null):l(o,a),x(e)&&r.set(e,o),o)}function go(e,t){return!e||!s(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),f(e,t[0].toLowerCase()+t.slice(1))||f(e,se(t))||f(e,t))}function _o(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=br(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Ps(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Ps(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:yo(s)}}catch(t){ys.length=0,Yn(t,e,1),v=K(V)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=bo(y,a)),b=Ms(b,y,!1,!0))}return n.dirs&&(b=Ms(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&li(zr(b.type)&&ci(b)||b,n.transition),v=b,br(_),v}function vo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Ts(r)){if(r.type!==V||r.children===`v-if`){if(n)return;n=r}}else return}return n}var yo=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},bo=(e,t)=>{let n={};for(let r in e)c(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function xo(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?So(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(Co(o,r,n)&&!go(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||So(r,o,l):!!o;return!1}function So(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!f(e,a)||Co(t,e,a)&&!go(n,a))return!0}return!1}function Co(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!Ae(r,i):r!==i}function wo({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var To={},Eo=()=>Object.create(To),Do=e=>Object.getPrototypeOf(e)===To;function Oo(e,t,n,r=!1){let i={},a=Eo();e.propsDefaults=Object.create(null),Ao(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:an(i):e.type.props?i:a,e.attrs=a}function ko(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=j(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(go(e.emitsOptions,o))continue;let u=t[o];if(c){if(f(a,o))u!==a[o]&&(a[o]=u,l=!0);else{let t=E(o);i[t]=jo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{Ao(e,t,i,a)&&(l=!0);let r;for(let a in s)t&&(f(t,a)||(r=se(a))!==a&&f(t,r))||(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=jo(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)t&&f(t,e)||(delete a[e],l=!0)}l&&vt(e.attrs,`set`,``)}function Ao(e,t,n,i){let[a,o]=e.propsOptions,s=!1,c;if(t)for(let r in t){if(ne(r))continue;let l=t[r],u;a&&f(a,u=E(r))?!o||!o.includes(u)?n[u]=l:(c||={})[u]=l:go(e.emitsOptions,r)||r in i&&l===i[r]||(i[r]=l,s=!0)}if(o){let t=j(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=jo(a,t,s,i[s],e,!f(i,s))}}return s}function jo(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=f(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&v(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=qs(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===se(n))&&(r=!0))}return r}var Mo=new WeakMap;function No(e,t,n=!1){let a=n?Mo:t.propsCache,o=a.get(e);if(o)return o;let s=e.props,c={},u=[],d=!1;if(!v(e)){let r=e=>{d=!0;let[n,r]=No(e,t,!0);l(c,n),r&&u.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!s&&!d)return x(e)&&a.set(e,i),i;if(p(s))for(let e=0;e<s.length;e++){let t=E(s[e]);Po(t)&&(c[t]=r)}else if(s)for(let e in s){let t=E(e);if(Po(t)){let n=s[e],r=c[t]=p(n)||v(n)?{type:n}:l({},n),i=r.type,a=!1,o=!0;if(p(i))for(let e=0;e<i.length;++e){let t=i[e],n=v(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=v(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||f(r,`default`))&&u.push(t)}}let m=[c,u];return x(e)&&a.set(e,m),m}function Po(e){return e[0]!==`$`&&!ne(e)}var Fo=e=>e===`_`||e===`_ctx`||e===`$stable`,Io=e=>p(e)?e.map(Ps):[Ps(e)],Lo=(e,t,n)=>{if(t._n)return t;let r=F((...e)=>Io(t(...e)),n);return r._c=!1,r},Ro=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Fo(n))continue;let i=e[n];if(v(i))t[n]=Lo(n,i,r);else if(i!=null){let e=Io(i);t[n]=()=>e}}},zo=(e,t)=>{let n=Io(t);e.slots.default=()=>n},Bo=(e,t,n)=>{for(let r in t)(n||!Fo(r))&&(e[r]=t[r])},Vo=(e,t,n)=>{let r=e.slots=Eo();if(e.vnode.shapeFlag&32){let e=t._;e?(Bo(r,t,n),n&&de(r,`_`,e,!0)):Ro(t,r)}else t&&zo(e,t)},Ho=(e,t,n)=>{let{vnode:i,slots:a}=e,o=!0,s=r;if(i.shapeFlag&32){let e=t._;e?n&&e===1?o=!1:Bo(a,t,n):(o=!t.$stable,Ro(t,a)),s=t}else t&&(zo(e,t),s={default:1});if(o)for(let e in a)!Fo(e)&&s[e]==null&&delete a[e]},z=ms;function Uo(e){return Go(e)}function Wo(e){return Go(e,Ti)}function Go(e,t){let n=he();n.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=a,insertStaticContent:_}=e,v=(e,t,n,r=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Es(e,t)&&(r=xe(e),ge(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case _s:y(e,t,n,r);break;case V:b(e,t,n,r);break;case vs:e??x(t,n,r,s);break;case B:E(e,t,n,r,a,o,s,c,l);break;default:f&1?C(e,t,n,r,a,o,s,c,l):f&6?oe(e,t,n,r,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,n,r,a,o,s,c,l,Se)}d!=null&&a?_i(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&_i(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},ee=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},C=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),re(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&T(e.children,d,null,r,i,Ko(e,a),s,u),_&&wr(e,null,r,`created`),w(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ne(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&Rs(f,r,e)}_&&wr(e,null,r,`beforeMount`);let v=Jo(i,g);v?g.beforeEnter(d):g&&!g.persisted&&(d[ns]=!0),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&z(()=>{try{f&&Rs(f,r,e),v&&g.enter(d),_&&wr(e,null,r,`mounted`)}finally{}},i)},w=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||es(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;w(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},T=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?Fs(e[l]):Ps(e[l]);v(null,c,t,n,r,i,a,o,s)}},re=(e,t,n,i,a,o,s)=>{let l=t.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=t;u|=e.patchFlag&16;let m=e.props||r,h=t.props||r,g;if(n&&qo(n,!1),(g=h.onVnodeBeforeUpdate)&&Rs(g,n,t,e),f&&wr(t,e,n,`beforeUpdate`),n&&qo(n,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?ie(e.dynamicChildren,d,l,n,i,Ko(t,a),o):s||de(e,t,l,null,n,i,Ko(t,a),o,!1),u>0){if(u&16)ae(l,m,h,n,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let r=e[t],i=m[r],o=h[r];(o!==i||r===`value`)&&c(l,r,i,o,a,n)}}u&1&&e.children!==t.children&&p(l,t.children)}else!s&&d==null&&ae(l,m,h,n,a);((g=h.onVnodeUpdated)||f)&&z(()=>{g&&Rs(g,n,t,e),f&&wr(t,e,n,`updated`)},i)},ie=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el||$o(c),d=u&&(c.type===B||!Es(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},ae=(e,t,n,i,a)=>{if(t!==n){if(t!==r)for(let r in t)!ne(r)&&!(r in n)&&c(e,r,t[r],null,a,i);for(let r in n){if(ne(r))continue;let o=n[r],s=t[r];o!==s&&r!==`value`&&c(e,r,s,o,a,i)}`value`in n&&c(e,`value`,t.value,n.value,a)}},E=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),T(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(ie(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Yo(e,t,!0)):de(e,t,n,f,i,a,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):se(t,n,r,i,a,o,c):ce(e,t,c)},se=(e,t,n,r,i,a,o)=>{let s=e.component=Hs(e,r,i);if(Ki(e)&&(s.ctx.renderer=Se),Zs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o,a),!e.el){let r=s.subTree=K(V);b(null,r,t,n),e.placeholder=r.el}}else le(s,e,t,n,i,a,o)},ce=(e,t,n)=>{let r=t.component=e.component;if(xo(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,D(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},le=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Zo(e);if(n){t&&(t.el=c.el,D(e,t,o)),n.asyncDep.then(()=>{let t=()=>{e.job.flags&8||(i&&i.pendingBranch?z(t,i):l())};t.flags=48,z(t,i)});return}}let u=t,d;qo(e,!1),t?(t.el=c.el,D(e,t,o)):t=c,n&&ue(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&Rs(d,s,t,c),qo(e,!0);let f=_o(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el||$o(p)),xe(p),e,i,a),t.el=f.el,u===null&&wo(e,f.el),r&&z(r,i),(d=t.props&&t.props.onVnodeUpdated)&&z(()=>Rs(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=Ui(t);if(qo(e,!1),l&&ue(l),!m&&(o=c&&c.onVnodeBeforeMount)&&Rs(o,d,t),qo(e,!0),s&&we){let t=()=>{e.subTree=_o(e),we(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=_o(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&z(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;z(()=>Rs(o,d,e),i)}(t.shapeFlag&256||d&&Ui(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&z(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new Ue(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>or(u),qo(e,!0),l()},D=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,ko(e,t.props,r,n),Ho(e,t.children,n),ot(),lr(e),st()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){pe(l,d,n,r,i,a,o,s,c);return}if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&be(l,i,a),d!==l&&p(n,d)):u&16?m&16?pe(l,d,n,r,i,a,o,s,c):be(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},fe=(e,t,n,r,a,o,s,c,l)=>{e||=i,t||=i;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let r=t[p]=l?Fs(t[p]):Ps(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?be(e,a,o,!0,!1,f):T(t,n,r,a,o,s,c,l,f)},pe=(e,t,n,r,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let r=e[u],i=t[u]=l?Fs(t[u]):Ps(t[u]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let r=e[f],i=t[p]=l?Fs(t[p]):Ps(t[p]);if(Es(r,i))v(r,i,n,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,i=e<d?t[e].el:r;for(;u<=p;)v(null,t[u]=l?Fs(t[u]):Ps(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)ge(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?Fs(t[u]):Ps(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,ee=Array(b);for(u=0;u<b;u++)ee[u]=0;for(u=m;u<=f;u++){let r=e[u];if(y>=b){ge(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(ee[_-h]===0&&Es(r,t[_])){i=_;break}i===void 0?ge(r,a,o,!0):(ee[i-h]=u+1,i>=S?S=i:x=!0,v(r,t[i],n,null,a,o,s,c,l),y++)}let C=x?Xo(ee):i;for(_=C.length-1,u=b-1;u>=0;u--){let e=h+u,i=t[e],f=t[e+1],p=e+1<d?f.el||$o(f):r;ee[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==C[_]?me(i,n,p,2):_--)}}},me=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)me(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,Se);else if(c===B){o(a,t,n);for(let e=0;e<u.length;e++)me(u[e],t,n,r);o(e.anchor,t,n)}else if(c===vs)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Zr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),z(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[Zr];a._isLeaving&&a[Zr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},ge=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(ot(),_i(s,null,n,e,!0),st()),p==null||e.ctx&&e.ctx!==t||(t.renderCache[p]=void 0),u&256&&t.ctx.deactivate(e))return;let h=u&1&&f,g=!Ui(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&Rs(_,t,e),u&6)ye(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&wr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Se,r):l&&!l.hasOnce&&(a!==B||d>0&&d&64)?be(l,t,n,!1,!0):(a===B&&d&384||!i&&u&16)&&be(c,t,n),r&&_e(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&z(()=>{_&&Rs(_,t,e),h&&wr(e,null,t,`unmounted`),v&&(e.el=null)},n)},_e=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===B;if(a&&!i){ve(n,r);return}if(t===vs){ee(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?di(e):e,c=()=>{a?m(n)&&ve(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},ve=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ye=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Qo(c),Qo(l),r&&ue(r),i.stop(),a?(a.flags|=8,ge(o,e,t,n)):o&&(o.transition=e.vnode.transition,ge(o,e,t,n)),s&&z(s,t);let u=()=>{e.isUnmounted=!0};u.flags=16,z(u,t)},be=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)ge(e[o],t,n,r,i)},xe=e=>{if(e.shapeFlag&6)return xe(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Rr];return n?h(n):t},O=(e,t,n)=>{fr(()=>{e==null?t._vnode&&ge(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:Vs())},Se={p:v,um:ge,m:me,r:_e,mt:se,mc:T,pc:de,pbc:ie,n:xe,o:e},Ce,we;return t&&([Ce,we]=t(Se)),{render:O,hydrate:Ce,createApp:co(O,Ce)}}function Ko({type:e,props:t},n){return n===`svg`&&e===`foreignObject`||n===`mathml`&&e===`annotation-xml`&&t&&t.encoding&&t.encoding.includes(`html`)?void 0:n}function qo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Jo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Yo(e,t,n=!1){let r=e.children,i=t.children;if(p(r)&&p(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=Fs(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Yo(t,a)),a.type===_s&&(a.patchFlag===-1&&(a=i[e]=Fs(a)),a.el=t.el),a.type===V&&!a.el&&(a.el=t.el)}}function Xo(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Zo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Zo(t)}function Qo(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function $o(e){if(e.placeholder)return e.placeholder;let t=e.component;if(t)return $o(t.subTree);let n=e.suspense;return n&&n.activeBranch?$o(n.activeBranch):null}var es=e=>e.__isSuspense,ts=0,ns=Symbol(`_deferredEnter`),rs={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)ss(t,n,r,i,a,o,s,c,l);else{let u=e.suspense;if(a&&a.deps>0&&!a.isHydrating){let n=u.parentComponent;if(n&&n.suspense===a&&n.suspenseId!==a.pendingId?a.pendingBranch&&!Es(t.ssContent,u.pendingBranch||u.activeBranch):!u.isInFallback){t.suspense=u,u.vnode=t,t.el=e.el;return}}cs(e,t,n,r,i,o,s,c,l)}},hydrate:us,normalize:ds};function is(e,t){let n=e.props&&e.props[t];v(n)&&n()}function as(e){let t=[];os(e,t,!0),t.length&&cr(t)}function os(e,t,n){let{el:r,transition:i,children:a,shapeFlag:o}=e;if(o&6)os(e.component.subTree,t,n);else if(!(o&192)&&(o&1&&(!n&&r&&r[ns]&&(r[ns]=void 0,i&&!i.persisted&&(i.beforeEnter(r),t.push(()=>i.enter(r)))),n=!1),o&16))for(let e=0;e<a.length;e++)os(a[e],t,n)}function ss(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=ls(e,i,r,t,d,n,a,o,s,c);l(null,f.pendingBranch=e.ssContent,d,null,r,f,a,o),f.deps>0?(is(e,`onPending`),is(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),hs(f,e.ssFallback)):f.resolve(!1,!0)}function cs(e,t,n,r,i,a,o,s,{p:c,um:l,o:{createElement:u}}){let d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;let f=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:h,isInFallback:g,isHydrating:_}=d;if(h)d.pendingBranch=f,Es(h,f)?(d.deps++,c(h,f,_?n:d.hiddenContainer,null,i,d,a,o,s),d.deps--,d.deps<=0?d.resolve():g&&!_&&!d.isFallbackMountPending&&(c(m,p,n,r,i,null,a,o,s),hs(d,p))):(d.pendingId=ts++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,ps(d),d.hiddenContainer=u(`div`),g?(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0?d.resolve():d.isFallbackMountPending||(c(m,p,n,r,i,null,a,o,s),hs(d,p))):m&&Es(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0),d.pendingId=ts++,d.deps=0):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Es(m,f))c(m,f,n,r,i,d,a,o,s),hs(d,f);else if(is(t,`onPending`),d.pendingBranch=f,d.pendingId=ts++,c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0)d.resolve();else{let{timeout:e}=d;e>0?d.timeoutTimer=setTimeout(()=>{d.timeoutTimer=void 0,d.fallback(d.vnode.ssFallback)},e):e===0&&d.fallback(p)}}function ls(e,t,n,r,i,a,o,s,c,l,u=!1){let{p:d,m:f,um:p,n:m,o:{parentNode:h,remove:g}}=l,_,v=gs(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?pe(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ts++,timeout:typeof y==`number`?y:-1,timeoutTimer:void 0,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){let{vnode:r,activeBranch:i,pendingBranch:o,pendingId:s,effects:c,parentComponent:l,container:u,isInFallback:d}=x,g=x.parent;for(;g&&!g.pendingBranch;)g=g.parent;let y=!1;if(x.isHydrating)x.isHydrating=!1;else if(!e){y=i&&o.transition&&o.transition.mode===`out-in`;let e=!1;y&&(i.transition.afterLeave=()=>{if(s===x.pendingId&&!x.isUnmounted){as(o),f(o,u,a===b&&!e?m(i):a,0);let t=!1;if(g){let e=u,n;for(;n=h(e);)e=n;t=e===g.hiddenContainer}t||cr(c),d&&r.ssFallback&&(r.ssFallback.el=null)}}),i&&!x.isFallbackMountPending&&(h(i.el||$o(i))===u&&(a=m(i),e=!0),p(i,l,x,!0),!y&&d&&r.ssFallback&&z(()=>r.ssFallback.el=null,x)),y||(as(o),f(o,u,a,0))}clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,x.isFallbackMountPending=!1,hs(x,o),x.pendingBranch=null,x.isInFallback=!1;let S=0;for(let e=0;e<c.length;e++){let t=c[e];t.flags&32?cr(t):c[S++]=t}if(c.length=S,g)for(let e=0;e<c.length;e++)g.effects.push(c[e]);else y||cr(c);x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),is(r,`onResolve`)},fallback(e){if(x.isUnmounted||!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;is(t,`onFallback`);let o=m(n),l=()=>{if(x.isFallbackMountPending=!1,x.isUnmounted||!x.isInFallback)return;let e=x.vnode.ssFallback;d(null,e,i,o,r,null,a,s,c),hs(x,e)},u=e.transition&&e.transition.mode===`out-in`;u&&(x.isFallbackMountPending=!0,n.transition.afterLeave=l),x.isInFallback=!0,p(n,r,null,!0),u||l()},move(e,t,n){x.activeBranch&&f(x.activeBranch,e,t,n),x.container=e},next(){return x.activeBranch&&m(x.activeBranch)},registerDep(e,t,n,r){let i=!!x.pendingBranch;i&&x.deps++;let a=e.vnode.el,o=i=>{e.asyncResolved=!0;let{vnode:o}=e;$s(e,i,!1),a&&(o.el=a);let s=!a&&e.subTree.el;t(e,o,h(a||e.subTree.el),a?null:m(e.subTree),x,r,n),s&&(o.placeholder=null,g(s)),wo(e,o.el)};e.asyncDep.catch(t=>(e.scope.active&&Yn(t,e,0,!1,!0),()=>null)).then(t=>{if(e.isUnmounted||x.isUnmounted)return;let n=i&&x.pendingId===e.suspenseId;if(Js(),!e.scope.active)n&&--x.deps===0&&x.resolve();else if(!n&&x.pendingBranch){let n=()=>{e.isUnmounted||x.isUnmounted||!e.scope.active||(x.pendingBranch?ms(n,x):o(t))};n.flags=48,ms(n,x)}else o(t),n&&--x.deps===0&&x.resolve()})},unmount(e,t){if(x.isUnmounted=!0,clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,_!==void 0){let e=x.parent,t=_;_=void 0,cr(()=>{e.pendingId===t&&!e.isUnmounted&&--e.deps===0&&e.resolve()})}x.activeBranch&&p(x.activeBranch,n,e,t),x.pendingBranch&&(p(x.pendingBranch,n,x,t),ps(x))}};return x}function us(e,t,n,r,i,a,o,s,c){let l=t.suspense=ls(t,r,n,e.parentNode,document.createElement(`div`),null,i,a,o,s,!0),u=c(e,l.pendingBranch=t.ssContent,n,l,a,o);return l.deps===0&&l.resolve(!1,!0),u}function ds(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=fs(r?n.default:n),e.ssFallback=r?fs(n.fallback):K(V)}function fs(e){let t;if(v(e)){let n=Ss&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=bs,xs())}return p(e)&&(e=vo(e)),e=Ps(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ps(e){let{effects:t}=e;for(let e=0;e<t.length;e++){let n=t[e];n.flags&16&&cr(n)}t.length=0}function ms(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):cr(e)}function hs(e,t){e.activeBranch=t;let{vnode:n,parentComponent:r}=e,i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,r&&r.subTree===n&&(r.vnode.el=i,wo(r,i))}function gs(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var B=Symbol.for(`v-fgt`),_s=Symbol.for(`v-txt`),V=Symbol.for(`v-cmt`),vs=Symbol.for(`v-stc`),ys=[],bs=null;function H(e=!1){ys.push(bs=e?null:[])}function xs(){ys.pop(),bs=ys[ys.length-1]||null}var Ss=1;function Cs(e,t=!1){Ss+=e,e<0&&bs&&t&&(bs.hasOnce=!0)}function ws(e){return e.dynamicChildren=Ss>0?bs||i:null,xs(),Ss>0&&bs&&bs.push(e),e}function U(e,t,n,r,i,a){return ws(G(e,t,n,r,i,a,!0))}function W(e,t,n,r,i){return ws(K(e,t,n,r,i,!0))}function Ts(e){return e?e.__v_isVNode===!0:!1}function Es(e,t){return e.type===t.type&&e.key===t.key}function Ds(e){}var Os=({key:e})=>e??null,ks=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||M(e)||v(e)?{i:vr,r:e,k:t,f:!!n}:e);function G(e,t=null,n=null,r=0,i=null,a=e===B?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Os(t),ref:t&&ks(t),scopeId:yr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:vr};return s?(Is(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Ss>0&&!o&&bs&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&bs.push(c),c}var K=As;function As(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==ga||(e=V),Ts(e)){let r=Ms(e,t,!0);return n&&Is(r,n),Ss>0&&!a&&bs&&(r.shapeFlag&6?bs[bs.indexOf(e)]=r:bs.push(r)),r.patchFlag=-2,r}if(uc(e)&&(e=e.__vccOpts),t){t=js(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=O(e)),x(n)&&(fn(n)&&!p(n)&&(n=l({},n)),t.style=_e(n))}let o=y(e)?1:es(e)?128:zr(e)?64:x(e)?4:v(e)?2:0;return G(e,t,n,r,i,o,a,!0)}function js(e){return e?fn(e)?l({},e):Do(e)?l({},e[ac]||e):e:null}function Ms(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Ls(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Os(l),ref:t&&t.ref?n&&a?p(a)?a.concat(ks(t)):[a,ks(t)]:ks(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ms(e.ssContent),ssFallback:e.ssFallback&&Ms(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&li(u,c.clone(u)),u}function q(e=` `,t=0){return K(_s,null,e,t)}function Ns(e,t){let n=K(vs,null,e);return n.staticCount=t,n}function J(e=``,t=!1){return t?(H(),W(V,null,e)):K(V,null,e)}function Ps(e){return e==null||typeof e==`boolean`?K(V):p(e)?K(B,null,e.slice()):Ts(e)?Fs(e):K(_s,null,String(e))}function Fs(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ms(e)}function Is(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(p(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Is(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Do(t)?t._ctx=vr:r===3&&vr&&(vr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Is(e,{default:t});return}t={default:t,_ctx:vr},n=32}else t=String(t),r&64?(n=16,t=[q(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ls(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=O([t.class,r.class]));else if(e===`style`)t.style=_e([t.style,r.style]);else if(s(e)){let n=t[e],i=r[e];i&&n!==i&&!(p(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!c(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function Rs(e,t,n,r=null){Jn(e,t,7,[n,r])}var zs=oo(),Bs=0;function Vs(){return Bs}function Hs(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||zs,o={uid:Bs++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Re(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(a.provides),ids:t?t.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:No(i,a),emitsOptions:ho(i,a),emit:null,emitted:null,propsDefaults:r,inheritAttrs:i.inheritAttrs,ctx:r,data:r,props:r,attrs:r,slots:r,refs:r,setupState:r,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=po.bind(null,o),e.ce&&e.ce(o),o}var Us=null,Ws=()=>Us||vr,Gs,Ks;{let e=he(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Gs=t(`__VUE_INSTANCE_SETTERS__`,e=>Us=e),Ks=t(`__VUE_SSR_SETTERS__`,e=>Xs=e)}var qs=e=>{let t=Us;return Gs(e),e.scope.on(),()=>{e.scope.off(),Gs(t)}},Js=()=>{Us&&Us.scope.off(),Gs(null)};function Ys(e){return e.vnode.shapeFlag&4}var Xs=!1;function Zs(e,t=!1,n=!1){t&&Ks(t);let{props:r,children:i}=e.vnode,a=Ys(e);Oo(e,r,a,t),Vo(e,i,n||t);let o=a?Qs(e,t):void 0;return t&&Ks(!1),o}function Qs(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Oa);let{setup:r}=n;if(r){ot();let n=e.setupContext=r.length>1?sc(e):null,i=qs(e),a=qn(r,e,0,[e.props,n]),o=S(a);if(st(),i(),(o||e.sp)&&!Ui(e)&&pi(e),o){if(a.then(Js,Js),t)return a.then(n=>{Ks(!0);try{$s(e,n,t)}finally{Ks(!1)}}).catch(t=>{Yn(t,e,0,void 0,!0),e.ssrRender=(e,t)=>t(`<!---->`)});e.asyncDep=a}else $s(e,a,t)}else ic(e,t)}function $s(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=Sn(t)),ic(e,n)}var ec,tc;function nc(e){ec=e,tc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,ka))}}var rc=()=>!ec;function ic(e,t,n){let r=e.type;if(!e.render){if(!t&&ec&&!r.render){let t=r.template||Xa(e).template;if(t){let{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,s=l(l({isCustomElement:n,delimiters:a},i),o);r.render=ec(t,s)}}e.render=r.render||a,tc&&tc(e)}{let t=qs(e);ot();try{Ka(e)}finally{st(),t()}}}var ac=Symbol(),oc={get(e,t){return _t(e,`get`,``),t===ac?e:e[t]}};function sc(e){return{attrs:new Proxy(e.attrs,oc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function cc(e){return e.exposed?e.exposeProxy||=new Proxy(Sn(pn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ea)return Ea[n](e)},has(e,t){return t in e||t in Ea}}):e.proxy}function lc(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function uc(e){return v(e)&&`__vccOpts`in e}var dc=(e,t)=>jn(e,t,Xs);function fc(e,t,n){try{Cs(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?Ts(t)?K(e,null,[t]):K(e,t):K(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ts(n)&&(n=[n]),K(e,t,n))}finally{Cs(1)}}function pc(){}function mc(e,t,n,r){let i=n[r];if(i&&hc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function hc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(D(n[e],t[e]))return!1;return Ss>0&&bs&&bs.push(e),!0}var gc=`3.5.47`,_c=a,vc=Kn,yc=hr,bc=_r,xc={createComponentInstance:Hs,setupComponent:Zs,renderComponentRoot:_o,setCurrentRenderingInstance:br,isVNode:Ts,normalizeVNode:Ps,getComponentPublicInstance:cc,ensureValidVNode:Ca,pushWarningContext:Hn,popWarningContext:Un},Sc=void 0,Cc=typeof window<`u`&&window.trustedTypes;if(Cc)try{Sc=Cc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var wc=Sc?e=>Sc.createHTML(e):e=>e,Tc=`http://www.w3.org/2000/svg`,Ec=`http://www.w3.org/1998/Math/MathML`,Dc=typeof document<`u`?document:null,Oc=Dc&&Dc.createElement(`template`),kc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Dc.createElementNS(Tc,e):t===`mathml`?Dc.createElementNS(Ec,e):n?Dc.createElement(e,{is:n}):Dc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Dc.createTextNode(e),createComment:e=>Dc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Dc.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Oc.innerHTML=wc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Oc.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ac=`transition`,jc=`animation`,Mc=Symbol(`_vtc`),Nc={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},Pc=l({},ti,Nc),Fc=(e=>(e.displayName=`Transition`,e.props=Pc,e))((e,{slots:t})=>fc(ii,Rc(e),t)),Ic=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},Lc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function Rc(e){let t={};for(let n in e)n in Nc||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:u=o,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,h=zc(i),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:ee=v,onAppear:C=y,onAppearCancelled:te=b}=t,w=(e,t,n,r)=>{e._enterResolve=void 0,e._enterCancelled=r,Hc(e,t?d:s),Hc(e,t?u:o),n&&n()},T=(e,t)=>{e._leaveResolve=void 0,e._isLeaving=!1,Hc(e,f),Hc(e,m),Hc(e,p),t&&t()},ne=e=>(t,n)=>{let i=e?C:y,o=()=>{t._enterResolve===o&&w(t,e,n)};t._enterResolve=o,Ic(i,[t,o]),Uc(()=>{Hc(t,e?c:a),t._enterResolve===o&&(Vc(t,e?d:s),Lc(i)||Gc(t,r,g,o))})};return l(t,{onBeforeEnter(e){Ic(v,[e]),Vc(e,a),Vc(e,o)},onBeforeAppear(e){Ic(ee,[e]),Vc(e,c),Vc(e,u)},onEnter:ne(!1),onAppear:ne(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>{e._leaveResolve===n&&T(e,t)};e._leaveResolve=n,Vc(e,f),e._enterCancelled?(Vc(e,p),Yc(e)):(Yc(e),Vc(e,p)),Uc(()=>{e._leaveResolve===n&&(Hc(e,f),Vc(e,m),Lc(x)||Gc(e,r,_,n))}),Ic(x,[e,n])},onEnterCancelled(e){w(e,!1,void 0,!0),Ic(b,[e])},onAppearCancelled(e){w(e,!0,void 0,!0),Ic(te,[e])},onLeaveCancelled(e){T(e),Ic(S,[e])}})}function zc(e){if(e==null)return null;if(x(e))return[Bc(e.enter),Bc(e.leave)];{let t=Bc(e);return[t,t]}}function Bc(e){return pe(e)}function Vc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Mc]||(e[Mc]=new Set)).add(t)}function Hc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Mc];n&&(n.delete(t),n.size||(e[Mc]=void 0))}function Uc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Wc=0;function Gc(e,t,n,r){let i=e._endId=++Wc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=Kc(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u<c&&d()},s+1),e.addEventListener(l,f)}function Kc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${Ac}Delay`),a=r(`${Ac}Duration`),o=qc(i,a),s=r(`${jc}Delay`),c=r(`${jc}Duration`),l=qc(s,c),u=null,d=0,f=0;t===Ac?o>0&&(u=Ac,d=o,f=a.length):t===jc?l>0&&(u=jc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?Ac:jc:null,f=u?u===Ac?a.length:c.length:0);let p=u===Ac&&/\b(?:transform|all)(?:,|$)/.test(r(`${Ac}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function qc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Jc(t)+Jc(e[n])))}function Jc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Yc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Xc(e,t,n){let r=e[Mc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Zc=Symbol(`_vod`),Qc=Symbol(`_vsh`),$c={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Zc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):el(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),el(e,!0),r.enter(e)):r.leave(e,()=>{el(e,!1)}):el(e,t))},beforeUnmount(e,{value:t}){el(e,t)}};function el(e,t){e.style.display=t?e[Zc]:`none`,e[Qc]=!t}function tl(){$c.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var nl=Symbol(``);function rl(e){let t=Ws();if(!t)return;let n=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ll(e,n))},r={uid:String(t.uid),update:n};Ve(()=>r.update=void 0),t.ut=(e,t)=>{e&&(e[il]=[t,r],ol(e),al(e)),n()};let i=()=>{let r=e(t.proxy);t.ce?ll(t.ce,r):cl(t.subTree,r),n(r)};aa(()=>{cr(i)}),ia(()=>{Nr(i,a,{flush:`post`});let e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),ca(()=>e.disconnect())})}var il=Symbol(``);function al(e,t){let[n,r]=e[il],i;if(r.update)for(let a=e;a&&a!==n;a=a.nextSibling)a.nodeType===1&&(!t||(t===!0||t.has(a))&&(a.getAttribute(`data-v-owner`)||r.uid)===r.uid)&&(a.setAttribute(`data-v-owner`,r.uid),i=r.update);return i}function ol(e){let t=e.parentNode;if(t){let n=t[il];n||(n=t[il]=new Set,new MutationObserver(sl).observe(t,{childList:!0})),n.add(e)}}function sl(e,t){let n=e[0].target,r=n[il],i=new Set;for(let{addedNodes:t}of e)t.forEach(e=>i.add(e));let a=new Set;r.forEach(e=>{e.parentNode===n?i.size&&a.add(al(e,i)):(r.delete(e),ol(e),a.add(al(e,!0)))}),a.forEach(e=>e&&e()),r.size||(t.disconnect(),n[il]=void 0)}function cl(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{cl(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ll(e.el,t);else if(e.type===B)e.children.forEach(e=>cl(e,t));else if(e.type===vs){let{el:n,anchor:r}=e;for(;n&&(ll(n,t),n!==r);)n=n.nextSibling}}function ll(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Ie(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[nl]=r}}var ul=/(?:^|;)\s*display\s*:/;function dl(e,t,n){let r=e.style,i=y(n),a=!1;if(n&&!i){if(t){if(y(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??pl(r,t,``)}else for(let e in t)n[e]??pl(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?pl(r,i,``):_l(e,i,!y(t)&&t?t[i]:void 0,o)||pl(r,i,o)}}else if(i){if(t!==n){let e=r[nl];e&&(n+=`;`+e),r.cssText=n,a=ul.test(n)}}else t&&e.removeAttribute(`style`);Zc in e&&(i&&t===n||(e[Zc]=a?r.display:``),e[Qc]&&(r.display=`none`))}var fl=/\s*!important$/;function pl(e,t,n){if(p(n))n.forEach(n=>pl(e,t,n));else if(n??=``,t.startsWith(`--`))fl.test(n)?e.setProperty(t,n.replace(fl,``),`important`):e.setProperty(t,n);else{let r=gl(e,t);fl.test(n)?e.setProperty(se(r),n.replace(fl,``),`important`):e[r]=n}}var ml=[`Webkit`,`Moz`,`ms`],hl={};function gl(e,t){let n=hl[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return hl[t]=r;r=ce(r);for(let n=0;n<ml.length;n++){let i=ml[n]+r;if(i in e)return hl[t]=i}return t}function _l(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var vl=`http://www.w3.org/1999/xlink`;function yl(e,t,n,r,i,a=we(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(vl,t.slice(6,t.length)):e.setAttributeNS(vl,t,n):n==null||a&&!Te(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function bl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?wc(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=Te(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function xl(e,t,n,r){e.addEventListener(t,n,r)}function Sl(e,t,n,r){e.removeEventListener(t,n,r)}var Cl=Symbol(`_vei`);function wl(e,t,n,r,i=null){let a=e[Cl]||(e[Cl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Dl(t);r?xl(e,n,a[t]=jl(r,i),s):o&&(Sl(e,n,o,s),a[t]=void 0)}}var Tl=/(Once|Passive|Capture)$/,El=/^on:?(?:Once|Passive|Capture)$/;function Dl(e){let t,n;for(;(n=e.match(Tl))&&!El.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):se(e.slice(2)),t]}var Ol=0,kl=Promise.resolve(),Al=()=>Ol||=(kl.then(()=>Ol=0),Date.now());function jl(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(p(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&Jn(e,t,5,a)}}else Jn(r,t,5,[e])};return n.value=e,n.attached=Al(),n}var Ml=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Nl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Xc(e,r,o):t===`style`?dl(e,n,r):s(t)?c(t)||wl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Pl(e,t,r,o))?(bl(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||yl(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Fl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?bl(e,E(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),yl(e,t,r,o))};function Pl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ml(t)&&v(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ml(t)&&y(n)?!1:t in e}function Fl(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Il={};function Ll(e,t,n){let r=L(e,t);w(r)&&(r=l({},r,t));class i extends Bl{constructor(e){super(r,e,n)}}return i.def=r,i}var Rl=((e,t)=>Ll(e,t,Iu)),zl=typeof HTMLElement<`u`?HTMLElement:class{},Bl=class e extends zl{constructor(e,t={},n=Fu){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Fu?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(l({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,ir(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e<this.attributes.length;e++)this._setAttr(this.attributes[e].name);this._ob=new MutationObserver(this._processMutations.bind(this)),this._ob.observe(this,{attributes:!0});let e=(e,t=!1)=>{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!p(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=pe(this._props[e])),(i||=Object.create(null))[E(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)f(this,e)||Object.defineProperty(this,e,{get:()=>P(t[e])})}_resolveProps(e){let{props:t}=e,n=p(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(E))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):Il,r=E(e);t&&this._numberProps&&this._numberProps[r]&&(n=pe(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===Il?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(se(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(se(e),t+``):t||this.removeAttribute(se(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Nu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=K(this._def,l(e,this._props));return this._instance||(t.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,w(t[0])?l({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),se(e)!==e&&t(se(e),n)},this._setParent()}),t}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(!(n instanceof HTMLStyleElement))return n}return null}_parseSlots(){let e=this._slots={},t;for(;t=this.firstChild;){let n=t.nodeType===1&&t.getAttribute(`slot`)||`default`;(e[n]||(e[n]=[])).push(t),this.removeChild(t)}}_renderSlots(){let e=this._getSlots(),t=this._instance.type.__scopeId;for(let n=0;n<e.length;n++){let r=e[n],i=r.getAttribute(`name`)||`default`,a=this._slots[i],o=r.parentNode;if(a)for(let e of a){if(t&&e.nodeType===1){let n=t+`-s`,r=document.createTreeWalker(e,1);e.setAttribute(n,``);let i;for(;i=r.nextNode();)i.setAttribute(n,``)}o.insertBefore(e,r)}else for(;r.firstChild;)o.insertBefore(r.firstChild,r);o.removeChild(r)}}_getSlots(){let e=[this];this._teleportTargets&&e.push(...this._teleportTargets);let t=new Set;for(let n of e){let e=n.querySelectorAll(`slot`);for(let n=0;n<e.length;n++)t.add(e[n])}return Array.from(t)}_injectChildStyle(e,t){this._applyStyles(e.styles,e,t)}_beginPatch(){this._patching=!0,this._dirty=!1}_endPatch(){this._patching=!1,this._dirty&&this._instance&&this._update()}_hasShadowRoot(){return this._def.shadowRoot!==!1}_removeChildStyle(e){}};function Vl(e){let t=Ws();return t&&t.ce||null}function Hl(){let e=Vl();return e&&e.shadowRoot}function Ul(e=`$style`){{let t=Ws();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Wl=new WeakMap,Gl=new WeakMap,Kl=Symbol(`_moveCb`),ql=Symbol(`_enterCb`),Jl=new WeakMap,Yl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},Pc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Ws(),r=$r(),i,a,o,s,c=()=>(s===void 0&&(s=i.length>0&&iu(i[0].el,n.vnode.el,Zl(e))),s);return oa(()=>{if(Jl.delete(n),!c()){i=[],o=void 0;return}let t=Zl(e);i.forEach(Xl);let r=o&&ru(o,n.vnode.el);o=void 0,i.forEach(e=>Ql(e,r));let a=i.filter($l);Yc(n.vnode.el),a.forEach(e=>{let n=e.el,r=n.style;Vc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[Kl]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[Kl]=null,Hc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let l=j(e),u=Rc(l),d=l.tag||B;if(i=[],s=void 0,a)for(let e=0;e<a.length;e++){let t=a[e];t.el&&t.el instanceof Element&&!t.el[Qc]&&(i.push(t),li(t,oi(t,u,r,n)),Wl.set(t,eu(t.el)))}a=t.default?ui(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&li(t,oi(t,u,r,n))}return i.length&&(o=tu(n),Jl.set(n,c)),K(d,null,a)}}});function Xl(e){let t=e.el;t[Kl]&&t[Kl](),t[ql]&&t[ql]()}function Zl(e){return e.moveClass||`${e.name||`v`}-move`}function Ql(e,t){Gl.set(e,eu(e.el,t))}function $l(e){let t=Wl.get(e),n=Gl.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){let t=e.el,n=t.style,a=t.getBoundingClientRect(),o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(o)&&o!==0||(o=1),Number.isFinite(s)&&s!==0||(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration=`0s`,e}}function eu(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function tu(e){let t;for(let n=e.parent;n;n=n.parent){let r=Jl.get(n);if(r){let i=nu(n.vnode.el,e.vnode.el);i&&(t||=[]).push(l(eu(i),{item:i,willMove:r}))}}return t}function nu(e,t){let n=e.nodeType===1?e:e.parentNode;for(;t&&t.parentNode!==n;)t=t.parentNode;if(t&&t.nodeType===1)return t}function ru(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&eu(n.item,n)}function iu(e,t,n){let r=e.cloneNode(),i=e[Mc];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=Kc(r);return a.removeChild(r),o}var au=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>ue(t,e):t};function ou(e){e.target.composing=!0}function su(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var cu=Symbol(`_assign`),lu=Symbol(`_initialValue`);function uu(e,t,n){return t&&(e=e.trim()),n&&(e=fe(e)),e}var Y={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[lu]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[lu]=e.defaultValue.replace(/\r\n?/g,`
`))),e[cu]=au(i);let a=r||i.props&&i.props.type===`number`;xl(e,t?`change`:`input`,t=>{t.target.composing||e[cu](uu(e.value,n,a))}),(n||a)&&xl(e,`change`,()=>{e.value=uu(e.value,n,a)}),t||(xl(e,`compositionstart`,ou),xl(e,`compositionend`,su),xl(e,`change`,su))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[lu];delete e[lu],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[cu](uu(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[cu]=au(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?fe(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},du={deep:!0,created(e,t,n){e[cu]=au(n),xl(e,`change`,()=>{let t=e._modelValue,n=_u(e),r=e.checked,i=e[cu];if(p(t)){let e=je(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(h(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(vu(e,r))})},mounted:fu,beforeUpdate(e,t,n){e[cu]=au(n),fu(e,t,n)}};function fu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=je(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=Ae(t,vu(e,!0))}e.checked!==i&&(e.checked=i)}var pu={created(e,{value:t},n){e.checked=Ae(t,n.props.value),e[cu]=au(n),xl(e,`change`,()=>{e[cu](_u(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[cu]=au(r),t!==n&&(e.checked=Ae(t,r.props.value))}},mu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,xl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?fe(_u(e)):_u(e)),r=e.multiple,i=r?h(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?p(i)?t.slice():t:i];try{e[cu](i)}finally{ir(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[cu]=au(r)},mounted(e,{value:t,modifiers:{number:n}}){gu(e,t,n)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[cu]=au(n)},updated(e,{value:t,modifiers:{number:n}}){let r=e._pendingValue;e._pendingValue=void 0,r&&r[0]===e.multiple&&hu(t,r[1],r[0])||gu(e,t,n)}};function hu(e,t,n){if(!n||p(e))return Ae(e,t);if(h(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function gu(e,t,n=!1){let r=e.multiple,i=p(t);if(!r||i||h(t)){for(let a=0,o=e.options.length;a<o;a++){let o=e.options[a],s=_u(o);if(r){if(i){let e=typeof s;o.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(s)):je(t,s)>-1}else o.selected=t.has(s)||n&&typeof s==`string`&&t.has(fe(s))}else if(Ae(_u(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function _u(e){return`_value`in e?e._value:e.value}function vu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var yu={created(e,t,n){xu(e,t,n,null,`created`)},mounted(e,t,n){xu(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){xu(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){xu(e,t,n,r,`updated`)}};function bu(e,t){switch(e){case`SELECT`:return mu;case`TEXTAREA`:return Y;default:switch(t){case`checkbox`:return du;case`radio`:return pu;default:return Y}}}function xu(e,t,n,r,i){let a=bu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Su(){Y.getSSRProps=({value:e})=>({value:e}),pu.getSSRProps=({value:e},t)=>{if(t.props&&Ae(t.props.value,e))return{checked:!0}},du.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&je(e,t.props.value)>-1)return{checked:!0}}else if(h(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},yu.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=bu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Cu=[`ctrl`,`shift`,`alt`,`meta`],wu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Cu.some(n=>e[`${n}Key`]&&!t.includes(n))},Tu=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=wu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Eu={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Du=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`),i=n[r];if(i)return i;let a=t.some(e=>e===`left`||e===`right`);return n[r]=(n=>{if(!(`key`in n))return a?e(n):void 0;let r=se(n.key);if(t.some(e=>e===r||Eu[e]===r))return e(n)})},Ou=l({patchProp:Nl},kc),ku,Au=!1;function ju(){return ku||=Uo(Ou)}function Mu(){return ku=Au?ku:Wo(Ou),Au=!0,ku}var Nu=((...e)=>{ju().render(...e)}),Pu=((...e)=>{Mu().hydrate(...e)}),Fu=((...e)=>{let t=ju().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Ru(e);if(!r)return;let i=t._component;v(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Lu(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Iu=((...e)=>{let t=Mu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Ru(e);if(t)return n(t,!0,Lu(t))},t});function Lu(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Ru(e){return y(e)?document.querySelector(e):e}var zu=!1,Bu=()=>{zu||(zu=!0,Su(),tl())},Vu=t({BaseTransition:()=>ii,BaseTransitionPropsValidators:()=>ti,Comment:()=>V,DeprecationTypes:()=>null,EffectScope:()=>Re,ErrorCodes:()=>Gn,ErrorTypeStrings:()=>vc,Fragment:()=>B,KeepAlive:()=>qi,ReactiveEffect:()=>Ue,Static:()=>vs,Suspense:()=>rs,Teleport:()=>Jr,Text:()=>_s,TrackOpTypes:()=>Mn,Transition:()=>Fc,TransitionGroup:()=>Yl,TriggerOpTypes:()=>Nn,VueElement:()=>Bl,assertNumber:()=>Wn,callWithAsyncErrorHandling:()=>Jn,callWithErrorHandling:()=>qn,camelize:()=>E,capitalize:()=>ce,cloneVNode:()=>Ms,compatUtils:()=>null,compile:()=>Hu,computed:()=>dc,createApp:()=>Fu,createBlock:()=>W,createCommentVNode:()=>J,createElementBlock:()=>U,createElementVNode:()=>G,createHydrationRenderer:()=>Wo,createPropsRestProxy:()=>Ua,createRenderer:()=>Uo,createSSRApp:()=>Iu,createSlots:()=>xa,createStaticVNode:()=>Ns,createTextVNode:()=>q,createVNode:()=>K,customRef:()=>wn,defineAsyncComponent:()=>Wi,defineComponent:()=>L,defineCustomElement:()=>Ll,defineEmits:()=>ja,defineExpose:()=>Ma,defineModel:()=>Fa,defineOptions:()=>Na,defineProps:()=>Aa,defineSSRCustomElement:()=>Rl,defineSlots:()=>Pa,devtools:()=>yc,effect:()=>nt,effectScope:()=>ze,getCurrentInstance:()=>Ws,getCurrentScope:()=>Be,getCurrentWatcher:()=>Ln,getTransitionRawChildren:()=>ui,guardReactiveProps:()=>js,h:()=>fc,handleError:()=>Yn,hasInjectionContext:()=>Dr,hydrate:()=>Pu,hydrateOnIdle:()=>Li,hydrateOnInteraction:()=>Vi,hydrateOnMediaQuery:()=>Bi,hydrateOnVisible:()=>zi,initCustomFormatter:()=>pc,initDirectivesForSSR:()=>Bu,inject:()=>Er,isMemoSame:()=>hc,isProxy:()=>fn,isReactive:()=>ln,isReadonly:()=>un,isRef:()=>M,isRuntimeOnly:()=>rc,isShallow:()=>dn,isVNode:()=>Ts,markRaw:()=>pn,mergeDefaults:()=>Va,mergeModels:()=>Ha,mergeProps:()=>Ls,nextTick:()=>ir,nodeOps:()=>kc,normalizeClass:()=>O,normalizeProps:()=>Se,normalizeStyle:()=>_e,onActivated:()=>Yi,onBeforeMount:()=>ra,onBeforeUnmount:()=>sa,onBeforeUpdate:()=>aa,onDeactivated:()=>Xi,onErrorCaptured:()=>fa,onMounted:()=>ia,onRenderTracked:()=>da,onRenderTriggered:()=>ua,onScopeDispose:()=>Ve,onServerPrefetch:()=>la,onUnmounted:()=>ca,onUpdated:()=>oa,onWatcherCleanup:()=>Rn,openBlock:()=>H,patchProp:()=>Nl,popScopeId:()=>Sr,provide:()=>Tr,proxyRefs:()=>Sn,pushScopeId:()=>xr,queuePostFlushCb:()=>cr,reactive:()=>rn,readonly:()=>on,ref:()=>N,registerRuntimeCompiler:()=>nc,render:()=>Nu,renderList:()=>R,renderSlot:()=>Sa,resolveComponent:()=>ha,resolveDirective:()=>va,resolveDynamicComponent:()=>_a,resolveFilter:()=>null,resolveTransitionHooks:()=>oi,setBlockTracking:()=>Cs,setDevtoolsHook:()=>bc,setTransitionHooks:()=>li,shallowReactive:()=>an,shallowReadonly:()=>sn,shallowRef:()=>gn,ssrContextKey:()=>Or,ssrUtils:()=>xc,stop:()=>rt,toDisplayString:()=>k,toHandlerKey:()=>le,toHandlers:()=>wa,toRaw:()=>j,toRef:()=>On,toRefs:()=>Tn,toValue:()=>bn,transformVNodeArgs:()=>Ds,triggerRef:()=>yn,unref:()=>P,useAttrs:()=>Ra,useCssModule:()=>Ul,useCssVars:()=>rl,useHost:()=>Vl,useId:()=>fi,useModel:()=>uo,useSSRContext:()=>kr,useShadowRoot:()=>Hl,useSlots:()=>La,useTemplateRef:()=>mi,useTransitionState:()=>$r,vModelCheckbox:()=>du,vModelDynamic:()=>yu,vModelRadio:()=>pu,vModelSelect:()=>mu,vModelText:()=>Y,vShow:()=>$c,version:()=>gc,warn:()=>_c,watch:()=>Nr,watchEffect:()=>Ar,watchPostEffect:()=>jr,watchSyncEffect:()=>Mr,withAsyncContext:()=>Wa,withCtx:()=>F,withDefaults:()=>Ia,withDirectives:()=>I,withKeys:()=>Du,withMemo:()=>mc,withModifiers:()=>Tu,withScopeId:()=>Cr}),Hu=()=>{},Uu=class extends Error{status;body;constructor(e,t){super(t?.message??`HTTP ${e}`),this.status=e,this.body=t}get errors(){return Object.fromEntries(Object.entries(this.body?.errors??{}).map(([e,t])=>[e,t[0]]))}},X=JSON.parse(document.getElementById(`manager-boot`).textContent);function Wu(){let e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):``}async function Gu(e,t,n){let r=await fetch(t,{method:e,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Wu(),...n===void 0?{}:{"Content-Type":`application/json`}},body:n===void 0?void 0:JSON.stringify(n)}),i=r.status===204?null:await r.json().catch(()=>null);if(!r.ok)throw new Uu(r.status,i);return i}async function Ku(e,t){let n=await fetch(e,{method:`POST`,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Wu()},body:t}),r=await n.json().catch(()=>null);if(!n.ok)throw new Uu(n.status,r);return r}var Z={get:e=>Gu(`GET`,e),post:(e,t={})=>Gu(`POST`,e,t),put:(e,t={})=>Gu(`PUT`,e,t),delete:(e,t)=>Gu(`DELETE`,e,t)};function qu(e){let t=rn({values:{...e},errors:{},busy:!1,async send(e,n){t.busy=!0,t.errors={};try{return await Z[e](n,t.values)}catch(e){if(e instanceof Uu&&e.status===422)return t.errors=e.errors,null;throw e}finally{t.busy=!1}}});return t}var Ju={Dashboard:`Dashboard`,"Log in":`Inloggen`,"Log out":`Uitloggen`,Email:`E-mailadres`,Password:`Wachtwoord`,"Keep me logged in":`Ingelogd blijven`,"Logging in…":`Bezig met inloggen…`,"Log in to manage the site.":`Log in om de site te beheren.`,"My account":`Mijn account`,Name:`Naam`,"Email address":`E-mailadres`,"What you may do":`Wat je mag`,"Super admin: everything":`Super admin: alles`,"Not in a group yet":`Nog in geen groep`,"New password":`Nieuw wachtwoord`,"Leave empty to keep the password you have.":`Laat leeg om je wachtwoord te houden.`,"Current password":`Huidig wachtwoord`,"At least 12 characters.":`Minstens 12 tekens.`,"New password, once more":`Nieuw wachtwoord, nogmaals`,Save:`Opslaan`,"Saving…":`Bezig met opslaan…`,"Saved.":`Opgeslagen.`,Look:`Uiterlijk`,Theme:`Thema`,Posts:`Berichten`,"New post":`Nieuw bericht`,Title:`Titel`,Status:`Status`,Category:`Categorie`,Edit:`Bewerken`,Delete:`Verwijderen`,"Put online":`Online zetten`,"Take offline":`Offline halen`,Draft:`Concept`,Scheduled:`Ingepland`,Published:`Gepubliceerd`,"Are you sure?":`Weet je het zeker?`,"No posts yet.":`Nog geen berichten.`,"Address (slug)":`Adres (slug)`,Summary:`Samenvatting`,"Text (Markdown)":`Tekst (Markdown)`,"Cover image":`Omslagafbeelding`,"Tags (comma separated)":`Tags (met komma's)`,Featured:`Uitgelicht`,Publish:`Publiceren`,"Publish at":`Publiceren op`,Menu:`Menu`,"Click the part of the picture that must stay in view.":`Klik op het deel van de foto dat in beeld moet blijven.`,"Focus point":`Scherpstelpunt`,Clear:`Wissen`,Formatting:`Opmaak`,Bold:`Vet`,Italic:`Cursief`,Heading:`Kop`,List:`Lijst`,Quote:`Citaat`,Link:`Link`,bold:`vet`,italic:`cursief`,text:`tekst`,Photo:`Foto`,Write:`Schrijven`,Preview:`Voorbeeld`,History:`Geschiedenis`,Now:`Nu`,"Put back":`Terugzetten`,"Put this version back? The text now is kept in the history.":`Deze versie terugzetten? De tekst van nu blijft bewaard in de geschiedenis.`,"The earlier version is back.":`De eerdere versie is terug.`,New:`Nieuw`,"New page":`Nieuwe pagina`,"Description for search engines":`Omschrijving voor zoekmachines`,"One per line.":`Eén per regel.`,"Show everything":`Alles tonen`,"Simple view":`Simpele weergave`,"Loading…":`Laden…`,"You may not open this page.":`Je mag deze pagina niet openen.`,"Something went wrong. Try again.":`Er ging iets mis. Probeer het opnieuw.`,"This page has no screen in the manager yet.":`Deze pagina heeft nog geen scherm in de manager.`,"Go to the dashboard":`Naar het dashboard`,"The page expired. Reload it and try again.":`De pagina is verlopen. Laad hem opnieuw en probeer het nog eens.`,Back:`Terug`,Accounts:`Accounts`,"New account":`Nieuw account`,you:`jij`,"Super admin":`Super admin`,Groups:`Groepen`,Cancel:`Annuleren`,"New group":`Nieuwe groep`,Description:`Omschrijving`,accounts:`accounts`,"Categories and tags":`Categorieën en tags`,Categories:`Categorieën`,Tags:`Tags`,Add:`Toevoegen`,Rename:`Hernoemen`,"New name":`Nieuwe naam`,Pages:`Pagina's`,Reviews:`Reviews`,"Nothing here yet.":`Hier is nog niets.`,Previous:`Vorige`,Next:`Volgende`,Media:`Media`,"Choose an image":`Kies een afbeelding`,"No images yet.":`Nog geen afbeeldingen.`,"Uploaded.":`Geüpload.`,Upload:`Uploaden`,"Uploading…":`Bezig met uploaden…`,"This file is in use. Delete it anyway?":`Dit bestand is in gebruik. Toch verwijderen?`,"Largest file":`Grootste bestand`,"Alternative text":`Alternatieve tekst`,Used:`Gebruikt`,"No files yet.":`Nog geen bestanden.`,Choose:`Kiezen`,"Audit log":`Auditlog`,"Addresses banned":`Geblokkeerde adressen`,"Logins (24 h)":`Logins (24 u)`,"Failed logins (24 h)":`Mislukte logins (24 u)`,"Refused (24 h)":`Geweigerd (24 u)`,all:`alles`,logins:`logins`,failed:`mislukt`,actions:`acties`,viewed:`bekeken`,refused:`geweigerd`,bans:`blokkades`,Search:`Zoeken`,Account:`Account`,Everyone:`Iedereen`,Filter:`Filteren`,Someone:`Iemand`,banned:`geblokkeerd`,Ban:`Blokkeren`,Bans:`Blokkades`,"Minutes (0 = until lifted)":`Minuten (0 = tot opgeheven)`,Reason:`Reden`,"Whole site":`Hele site`,"No bans.":`Geen blokkades.`,automatic:`automatisch`,"whole site":`hele site`,hits:`pogingen`,Lift:`Opheffen`,Rules:`Regels`,"until lifted":`tot opgeheven`,"Ban an address by itself after too many failed logins":`Een adres zelf blokkeren na te veel mislukte logins`,"Failed logins":`Mislukte logins`,"Within minutes":`Binnen minuten`,"Ban for minutes (0 = until lifted)":`Blokkeren voor minuten (0 = tot opgeheven)`,"Keep the log (days)":`Log bewaren (dagen)`,"Notes about addresses":`Notities over adressen`,Group:`Groep`,Note:`Notitie`,Statistics:`Statistieken`,"compared with":`vergeleken met`,Visitors:`Bezoekers`,Visits:`Bezoeken`,"Page views":`Paginaweergaven`,"Average time":`Gemiddelde tijd`,"Bounce rate":`Bouncepercentage`,Channels:`Kanalen`,Sources:`Bronnen`,Countries:`Landen`,Devices:`Apparaten`,Browsers:`Browsers`,Systems:`Systemen`,Direct:`Direct`,"When people visit":`Wanneer mensen komen`,Programs:`Programma's`,Download:`Downloaden`,Open:`Openen`,"Created.":`Aangemaakt.`,"Deleted.":`Verwijderd.`,Language:`Taal`,"What this account sees":`Wat dit account ziet`,"What its rights give":`Wat zijn rechten geven`,"The simple manager":`De simpele manager`,"The whole manager":`De hele manager`,"Hi :name!":`Hoi :name!`,"What would you like to do today? Take your time and pick one.":`Wat wil je vandaag doen? Neem je tijd en kies er één.`,"Show the tour the next time this account opens the manager":`Toon de rondleiding de volgende keer dat dit account de manager opent`,"Hi :name! Welcome!":`Hoi :name! Welkom!`,"I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.":`Ik laat je in een paar kleine stapjes zien waar alles staat. Rondkijken kan niks stuk maken, en je kunt altijd stoppen: druk op het kruisje.`,"This is the menu":`Dit is het menu`,"Everything you can do lives here. Press a name and you are there.":`Alles wat je kunt doen staat hier. Druk op een naam en je bent er.`,"Your start page":`Je startpagina`,"Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.":`Even kwijt? Druk op Dashboard, bovenaan het menu, en je bent weer hier. Lekker rustig.`,"Write news":`Nieuws schrijven`,"Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.":`Hier schrijf je berichten en nieuws voor je website. Laat het een concept tot je tevreden bent, en zet het dan online.`,"Your photos":`Je foto's`,"All photos and files live here. Upload them once and use them in posts and pages.":`Alle foto's en bestanden staan hier. Upload ze één keer en gebruik ze in berichten en pagina's.`,"Your pages":`Je pagina's`,"Change the texts and photos of the pages of your website here.":`Pas hier de teksten en foto's van de pagina's van je website aan.`,"Changed your mind?":`Bedacht je het anders?`,"Every time you save a post or a page I keep the old version. You can always put an earlier one back.":`Elke keer dat je een bericht of pagina bewaart, bewaar ik de oude versie. Je kunt altijd een eerdere terugzetten.`,"Something went wrong?":`Gaat er iets mis?`,"A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.":`Een melding vertelt wat. Lees hem, los het op en probeer het nog eens. Er wordt niks verwijderd zonder dat ik het eerst vraag.`,"Your own corner":`Je eigen hoekje`,"Here you choose your language and your colours, and change your password.":`Hier kies je je taal en je kleuren, en verander je je wachtwoord.`,"That is it!":`Dat was het!`,"Want to see this again? Press Show the tour in the menu. Have fun!":`Wil je dit nog eens zien? Druk op Rondleiding tonen in het menu. Veel plezier!`,"Stop the tour":`Rondleiding stoppen`,Tour:`Rondleiding`,"The tour":`De rondleiding`,"Show the tour":`Rondleiding tonen`,Done:`Klaar`},Yu={};function Xu(e){Yu=e.toLowerCase().startsWith(`nl`)?Ju:{}}function Q(e,t){let n=Yu[e]??e;return t?n.replace(/:(\w+)/g,(e,n)=>n in t?String(t[n]):e):n}var Zu=[`d`],Qu=L({__name:`Icon`,props:{name:{},big:{type:Boolean}},setup(e){let t={home:`M3 11l9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z`,file:`M7 3h7l5 5v13H7zM14 3v5h5`,image:`M4 5h16v14H4zM4 16l5-5 4 4 3-3 4 4M9 9h.01`,users:`M16 20v-1a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v1M10 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6M20 20v-1a3 3 0 0 0-2-2.8M16 5.2a3 3 0 0 1 0 5.6`,group:`M3 7h18v12H3zM8 7V5h8v2`,chart:`M4 20V10M10 20V4M16 20v-8M22 20H2`,shield:`M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z`,star:`M12 3l2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1L3.2 9.5l6.1-.9z`,tag:`M3 12V4h8l10 10-8 8zM7.5 8h.01`,link:`M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1 1M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1-1`,cog:`M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6M19 12a7 7 0 0 0-.1-1.2l2-1.5-2-3.4-2.3.9a7 7 0 0 0-2-1.2L14.2 3h-4l-.4 2.6a7 7 0 0 0-2 1.2l-2.3-.9-2 3.4 2 1.5A7 7 0 0 0 5 12c0 .4 0 .8.1 1.2l-2 1.5 2 3.4 2.3-.9a7 7 0 0 0 2 1.2l.4 2.6h4l.4-2.6a7 7 0 0 0 2-1.2l2.3.9 2-3.4-2-1.5c.1-.4.1-.8.1-1.2`};return(n,r)=>e.name&&t[e.name]?(H(),U(`svg`,{key:0,class:O(e.big?`h-8 w-8 shrink-0`:`h-4 w-4 shrink-0`),viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.8`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[G(`path`,{d:t[e.name]},null,8,Zu)],2)):J(``,!0)}}),$u=[`href`],ed=L({__name:`Link`,props:{href:{}},setup(e){function t(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),U1(t))}return(n,r)=>(H(),U(`a`,{href:e.href,onClick:r[0]||=n=>t(n,e.href)},[Sa(n.$slots,`default`)],8,$u))}}),td={key:0,class:`mx-auto max-w-3xl pt-4`},nd={class:`font-display text-3xl font-bold`},rd={class:`mb-8 mt-2 text-lg text-muted`},id={class:`grid gap-4 sm:grid-cols-2`},ad={class:`text-xl font-bold`},od={key:0,class:`text-muted`},sd={class:`font-display mb-6 text-2xl font-bold`},cd={class:`mb-4 text-muted`},ld={class:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`},ud=L({__name:`Dashboard`,props:{navigation:{}},setup(e){function t(e){return e.icon?e.icon:e.href.endsWith(`/media`)?`image`:e.href.endsWith(`/posts`)||e.href.endsWith(`/pages`)?`file`:`star`}let n=X.view===`simple`,r=(X.user?.name??``).split(` `)[0];return(i,a)=>n?(H(),U(`div`,td,[G(`h1`,nd,k(P(Q)(`Hi :name!`,{name:P(r)})),1),G(`p`,rd,k(P(Q)(`What would you like to do today? Take your time and pick one.`)),1),G(`div`,id,[(H(!0),U(B,null,R(e.navigation,e=>(H(),W(ed,{key:e.href,href:e.href,class:`m-card m-tile`},{default:F(()=>[K(Qu,{name:t(e),big:``,class:`text-brand`},null,8,[`name`]),G(`span`,ad,k(P(Q)(e.label)),1),e.hint?(H(),U(`span`,od,k(P(Q)(e.hint)),1)):J(``,!0)]),_:2},1032,[`href`]))),128))])])):(H(),U(B,{key:1},[G(`h1`,sd,k(P(Q)(`Dashboard`)),1),G(`p`,cd,k(P(X).user?.name),1),G(`div`,ld,[(H(!0),U(B,null,R(e.navigation,e=>(H(),W(ed,{key:e.href,href:e.href,class:`m-card block p-5 font-semibold transition hover:border-brand`},{default:F(()=>[q(k(P(Q)(e.label)),1)]),_:2},1032,[`href`]))),128))])],64))}}),dd={class:`m-card max-w-xl p-6`},fd={class:`text-sm`},pd=L({__name:`Fallback`,setup(e){return(e,t)=>(H(),U(`div`,dd,[G(`p`,fd,k(P(Q)(`This page has no screen in the manager yet.`)),1),K(ed,{href:P(X).base,class:`m-btn m-btn-secondary mt-4`},{default:F(()=>[q(k(P(Q)(`Go to the dashboard`)),1)]),_:1},8,[`href`])]))}}),md={class:`grid min-h-screen place-items-center px-4`},hd=[`src`],gd={class:`font-display text-2xl font-bold`},_d={class:`mt-1 text-sm text-muted`},vd={class:`mt-6`},yd={for:`email`,class:`m-label`},bd={key:0,class:`m-error`},xd={class:`mt-4`},Sd={for:`password`,class:`m-label`},Cd={key:0,class:`m-error`},wd={key:0,class:`mt-4`},Td={key:0,class:`m-error`},Ed={key:1,class:`mt-4`},Dd=[`for`],Od=[`id`,`onUpdate:modelValue`,`type`,`autocomplete`,`required`],kd={key:0,class:`m-error`},Ad={class:`mt-4 flex items-center gap-2 text-sm text-muted`},jd=[`disabled`],Md=L({__name:`Login`,setup(e){let t=X.login_fields??[],n=qu({email:``,password:``,remember:!1,...Object.fromEntries(t.map(e=>[e.name,``]))}),r=N(null),i;ia(()=>{let e=t.find(e=>e.type===`turnstile`);if(!e)return;let a=()=>{i=window.turnstile.render(r.value,{sitekey:e.site_key,callback:t=>n.values[e.name]=t})};if(window.turnstile)a();else{let e=document.createElement(`script`);e.src=`https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit`,e.async=!0,e.onload=a,document.head.appendChild(e)}});async function a(){let e=await n.send(`post`,X.base+`/login`);e?window.location.assign(e.redirect):(n.values.password=``,i!==void 0&&window.turnstile.reset(i),t.filter(e=>e.type===`turnstile`).forEach(e=>n.values[e.name]=``))}return(e,i)=>(H(),U(`div`,md,[G(`form`,{class:`m-card w-full max-w-sm p-7`,onSubmit:Tu(a,[`prevent`])},[P(X).logo?(H(),U(`img`,{key:0,src:P(X).logo,alt:``,class:`mb-4 h-9 w-auto`},null,8,hd)):J(``,!0),G(`h1`,gd,k(P(X).name),1),G(`p`,_d,k(P(Q)(`Log in to manage the site.`)),1),G(`div`,vd,[G(`label`,yd,k(P(Q)(`Email`)),1),I(G(`input`,{id:`email`,"onUpdate:modelValue":i[0]||=e=>P(n).values.email=e,type:`email`,autocomplete:`username`,required:``,autofocus:``,class:`m-input`},null,512),[[Y,P(n).values.email]]),P(n).errors.email?(H(),U(`p`,bd,k(P(n).errors.email),1)):J(``,!0)]),G(`div`,xd,[G(`label`,Sd,k(P(Q)(`Password`)),1),I(G(`input`,{id:`password`,"onUpdate:modelValue":i[1]||=e=>P(n).values.password=e,type:`password`,autocomplete:`current-password`,required:``,class:`m-input`},null,512),[[Y,P(n).values.password]]),P(n).errors.password?(H(),U(`p`,Cd,k(P(n).errors.password),1)):J(``,!0)]),(H(!0),U(B,null,R(P(t),e=>(H(),U(B,{key:e.name},[e.type===`turnstile`?(H(),U(`div`,wd,[G(`div`,{ref_for:!0,ref:e=>r.value=e},null,512),P(n).errors[e.name]?(H(),U(`p`,Td,k(P(n).errors[e.name]),1)):J(``,!0)])):(H(),U(`div`,Ed,[G(`label`,{for:`login-`+e.name,class:`m-label`},k(P(Q)(e.label??e.name)),9,Dd),I(G(`input`,{id:`login-`+e.name,"onUpdate:modelValue":t=>P(n).values[e.name]=t,type:e.type===`password`||e.type===`number`?e.type:`text`,autocomplete:e.autocomplete,required:e.required,class:`m-input`},null,8,Od),[[yu,P(n).values[e.name]]]),P(n).errors[e.name]?(H(),U(`p`,kd,k(P(n).errors[e.name]),1)):J(``,!0)]))],64))),128)),G(`label`,Ad,[I(G(`input`,{"onUpdate:modelValue":i[2]||=e=>P(n).values.remember=e,type:`checkbox`},null,512),[[du,P(n).values.remember]]),q(` `+k(P(Q)(`Keep me logged in`)),1)]),G(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-6 w-full justify-center`,disabled:P(n).busy},k(P(n).busy?P(Q)(`Logging in…`):P(Q)(`Log in`)),9,jd)],32)]))}}),Nd={class:`m-card max-h-[85vh] w-full max-w-3xl overflow-y-auto p-5`,role:`dialog`,"aria-modal":`true`},Pd={class:`mb-4 flex items-center justify-between`},Fd={class:`font-display text-lg font-bold`},Id={key:0,class:`text-sm text-muted`},Ld={key:1,class:`text-sm text-muted`},Rd={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4`},zd=[`onClick`],Bd=[`src`,`alt`],Vd={class:`block truncate px-2 py-1 text-xs`},Hd=L({__name:`MediaPicker`,emits:[`pick`,`close`],setup(e,{emit:t}){let n=t,r=N([]),i=N(!0);return ia(async()=>{try{r.value=(await Z.get(`${X.base}/media/items`)).items.filter(e=>e.is_image)}finally{i.value=!1}}),(e,t)=>(H(),U(`div`,{class:`fixed inset-0 z-50 grid place-items-center bg-black/60 p-4`,onClick:t[1]||=Tu(e=>n(`close`),[`self`])},[G(`div`,Nd,[G(`div`,Pd,[G(`h2`,Fd,k(P(Q)(`Choose an image`)),1),G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t[0]||=e=>n(`close`)},k(P(Q)(`Cancel`)),1)]),i.value?(H(),U(`p`,Id,k(P(Q)(`Loading…`)),1)):r.value.length?(H(),U(`div`,Rd,[(H(!0),U(B,null,R(r.value,e=>(H(),U(`button`,{key:e.id,type:`button`,class:`overflow-hidden rounded-lg border border-line text-left hover:border-brand`,onClick:t=>n(`pick`,e.url,e)},[G(`img`,{src:e.url,alt:e.name,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,Bd),G(`span`,Vd,k(e.name),1)],8,zd))),128))])):(H(),U(`p`,Ld,k(P(Q)(`No images yet.`)),1))])]))}}),Ud=[`aria-label`],Wd=[`disabled`,`title`],Gd=[`disabled`,`title`],Kd=[`disabled`,`title`],qd=[`disabled`,`title`],Jd=[`disabled`,`title`],Yd=[`disabled`,`title`],Xd=[`disabled`],Zd={class:`ml-auto flex gap-1`},Qd=[`id`,`value`,`rows`,`required`,`maxlength`],$d={key:0,class:`m-input min-h-40 overflow-auto`},ef={key:0,class:`text-sm text-muted`},tf=[`innerHTML`],nf=L({__name:`MarkdownEditor`,props:{modelValue:{},id:{},rows:{},required:{type:Boolean},maxlength:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=N(null),a=N(`write`),o=N(``),s=N(!1),c=N(!1),l=X.permissions.includes(`media.view`);function u(e,t=e,a=``){let o=i.value,s=o.selectionStart,c=o.selectionEnd,l=n.modelValue.slice(s,c)||a,u=n.modelValue.slice(0,s)+e+l+t+n.modelValue.slice(c);r(`update:modelValue`,u),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+e.length,s+e.length+l.length)})}function d(e){let t=i.value,a=n.modelValue.lastIndexOf(`
`,t.selectionStart-1)+1,o=t.selectionEnd,s=n.modelValue.slice(a,o).split(`
`).map(t=>e+t).join(`
`);r(`update:modelValue`,n.modelValue.slice(0,a)+s+n.modelValue.slice(o)),requestAnimationFrame(()=>t.focus())}function f(e,t){c.value=!1;let a=(t?.alt||t?.name||``).replace(/[[\]]/g,``),o=i.value,s=o.selectionStart,l=`![${a}](${e})`;r(`update:modelValue`,n.modelValue.slice(0,s)+l+n.modelValue.slice(o.selectionEnd)),requestAnimationFrame(()=>{o.focus(),o.setSelectionRange(s+l.length,s+l.length)})}async function p(e){if(a.value=e,e===`preview`){s.value=!0;try{o.value=(await Z.post(`${X.base}/markdown`,{text:n.modelValue})).html}finally{s.value=!1}}}return(t,n)=>(H(),U(`div`,null,[G(`div`,{class:`mb-2 flex flex-wrap items-center gap-1`,role:`toolbar`,"aria-label":P(Q)(`Formatting`)},[G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 font-bold`,disabled:a.value===`preview`,title:P(Q)(`Bold`),onClick:n[0]||=e=>u(`**`,`**`,P(Q)(`bold`))},`B`,8,Wd),G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 italic`,disabled:a.value===`preview`,title:P(Q)(`Italic`),onClick:n[1]||=e=>u(`*`,`*`,P(Q)(`italic`))},`I`,8,Gd),G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Q)(`Heading`),onClick:n[2]||=e=>d(`## `)},`H`,8,Kd),G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Q)(`List`),onClick:n[3]||=e=>d(`- `)},`•`,8,qd),G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Q)(`Quote`),onClick:n[4]||=e=>d(`> `)},`”`,8,Jd),G(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:P(Q)(`Link`),onClick:n[5]||=e=>u(`[`,`](https://)`,P(Q)(`text`))},`🔗`,8,Yd),P(l)?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,onClick:n[6]||=e=>c.value=!0},k(P(Q)(`Photo`)),9,Xd)):J(``,!0),G(`span`,Zd,[G(`button`,{type:`button`,class:O([`m-btn !px-3 !py-1`,a.value===`write`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[7]||=e=>p(`write`)},k(P(Q)(`Write`)),3),G(`button`,{type:`button`,class:O([`m-btn !px-3 !py-1`,a.value===`preview`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[8]||=e=>p(`preview`)},k(P(Q)(`Preview`)),3)])],8,Ud),I(G(`textarea`,{id:e.id,ref_key:`area`,ref:i,value:e.modelValue,rows:e.rows??14,required:e.required,maxlength:e.maxlength,class:`m-input font-mono`,onInput:n[9]||=e=>r(`update:modelValue`,e.target.value)},null,40,Qd),[[$c,a.value===`write`]]),a.value===`preview`?(H(),U(`div`,$d,[s.value?(H(),U(`p`,ef,k(P(Q)(`Loading…`)),1)):(H(),U(`div`,{key:1,class:`m-prose`,innerHTML:o.value},null,8,tf))])):J(``,!0),c.value?(H(),W(Hd,{key:1,onPick:f,onClose:n[10]||=e=>c.value=!1})):J(``,!0)]))}}),rf={class:`m-card mt-6 max-w-3xl p-5`},af={class:`font-display text-lg font-bold`},of={key:0,class:`mt-2 text-sm text-muted`},sf={key:1,class:`mt-2 text-sm text-muted`},cf={key:2,class:`mt-3 divide-y divide-line`},lf={class:`flex flex-wrap items-center justify-between gap-2`},uf=[`aria-expanded`,`onClick`],df={class:`font-semibold`},ff={key:0,class:`text-muted`},pf={key:1,class:`m-badge ml-2`},mf={class:`block text-xs text-muted`},hf=[`onClick`],gf={key:0,class:`mt-2 space-y-2 text-sm`},_f={class:`text-xs font-semibold uppercase tracking-wide text-muted`},vf={class:`whitespace-pre-wrap break-words`},yf=L({__name:`RevisionsPanel`,props:{type:{},id:{}},setup(e){let t=e,n=N([]),r=N(!1),i=N(null),a=N(!0),o=`${X.base}/revisions/${t.type}/${t.id}`;ia(async()=>{try{let e=await Z.get(o);n.value=e.revisions,r.value=e.can_restore}finally{a.value=!1}});async function s(e){window.confirm(Q(`Put this version back? The text now is kept in the history.`))&&(await Z.post(`${o}/${e.id}/restore`),B1(Q(`The earlier version is back.`)),await W1())}let c=e=>new Date(e).toLocaleString(X.locale||void 0);return(e,t)=>(H(),U(`section`,rf,[G(`h2`,af,k(P(Q)(`History`)),1),a.value?(H(),U(`p`,of,k(P(Q)(`Loading…`)),1)):n.value.length?(H(),U(`ul`,cf,[(H(!0),U(B,null,R(n.value,e=>(H(),U(`li`,{key:e.id,class:`py-3`},[G(`div`,lf,[G(`button`,{type:`button`,class:`text-left text-sm`,"aria-expanded":i.value===e.id,onClick:t=>i.value=i.value===e.id?null:e.id},[G(`span`,df,k(c(e.created_at)),1),e.user?(H(),U(`span`,ff,` · `+k(e.user),1)):J(``,!0),e.current?(H(),U(`span`,pf,k(P(Q)(`Now`)),1)):J(``,!0),G(`span`,mf,k(e.changed.join(`, `)),1)],8,uf),r.value&&!e.current?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>s(e)},k(P(Q)(`Put back`)),9,hf)):J(``,!0)]),i.value===e.id?(H(),U(`dl`,gf,[(H(!0),U(B,null,R(e.values,(e,t)=>(H(),U(`div`,{key:t},[G(`dt`,_f,k(t),1),G(`dd`,vf,k(e),1)]))),128))])):J(``,!0)]))),128))])):(H(),U(`p`,sf,k(P(Q)(`Nothing here yet.`)),1))]))}}),bf={class:`mb-6 flex items-center justify-between gap-3`},xf={class:`font-display text-2xl font-bold`},Sf={for:`title`,class:`m-label`},Cf={key:0,class:`m-error`},wf={class:`grid gap-5 sm:grid-cols-2`},Tf={for:`slug`,class:`m-label`},Ef={key:0,class:`m-error`},Df={for:`category`,class:`m-label`},Of={id:`categories`},kf=[`value`],Af={for:`excerpt`,class:`m-label`},jf={key:0,class:`m-error`},Mf={for:`body`,class:`m-label`},Nf={key:0,class:`m-error`},Pf={class:`grid gap-5 sm:grid-cols-2`},Ff={for:`cover`,class:`m-label`},If={class:`flex gap-2`},Lf={for:`tags`,class:`m-label`},Rf={id:`known-tags`},zf=[`value`],Bf={class:`flex flex-wrap items-center gap-6`},Vf={class:`flex items-center gap-2 text-sm`},Hf={key:0,class:`flex items-center gap-2 text-sm`},Uf={key:1},Wf={for:`at`,class:`m-label`},Gf=[`disabled`],Kf=L({__name:`PostForm`,props:{post:{},categories:{},known_tags:{}},setup(e){let t=e.post,n=qu({title:t?.title??``,slug:t?.slug??``,excerpt:t?.excerpt??``,body:t?.body??``,cover_image:t?.cover_image??``,category:t?.category??``,tags:t?.tags??[],is_featured:t?.is_featured??!1,is_published:t?.is_published??!1,published_at:t?.published_at??``}),r=N(!1),i=(t?.tags??[]).join(`, `);async function a(){n.values.tags=i.split(`,`).map(e=>e.trim()).filter(Boolean),(t?await n.send(`put`,`${X.base}/posts/${t.id}`):await n.send(`post`,`${X.base}/posts`))&&(B1(Q(t?`Saved.`:`Created.`)),U1(`${X.base}/posts`))}return(o,s)=>(H(),U(B,null,[G(`div`,bf,[G(`h1`,xf,k(P(t)?P(t).title:P(Q)(`New post`)),1),K(ed,{href:P(X).base+`/posts`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Back`)),1)]),_:1},8,[`href`])]),G(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Tu(a,[`prevent`])},[G(`div`,null,[G(`label`,Sf,k(P(Q)(`Title`)),1),I(G(`input`,{id:`title`,"onUpdate:modelValue":s[0]||=e=>P(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.title]]),P(n).errors.title?(H(),U(`p`,Cf,k(P(n).errors.title),1)):J(``,!0)]),G(`div`,wf,[G(`div`,null,[G(`label`,Tf,k(P(Q)(`Address (slug)`)),1),I(G(`input`,{id:`slug`,"onUpdate:modelValue":s[1]||=e=>P(n).values.slug=e,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.slug]]),P(n).errors.slug?(H(),U(`p`,Ef,k(P(n).errors.slug),1)):J(``,!0)]),G(`div`,null,[G(`label`,Df,k(P(Q)(`Category`)),1),I(G(`input`,{id:`category`,"onUpdate:modelValue":s[2]||=e=>P(n).values.category=e,list:`categories`,maxlength:`60`,class:`m-input`},null,512),[[Y,P(n).values.category]]),G(`datalist`,Of,[(H(!0),U(B,null,R(e.categories,e=>(H(),U(`option`,{key:e,value:e},null,8,kf))),128))])])]),G(`div`,null,[G(`label`,Af,k(P(Q)(`Summary`)),1),I(G(`textarea`,{id:`excerpt`,"onUpdate:modelValue":s[3]||=e=>P(n).values.excerpt=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[Y,P(n).values.excerpt]]),P(n).errors.excerpt?(H(),U(`p`,jf,k(P(n).errors.excerpt),1)):J(``,!0)]),G(`div`,null,[G(`label`,Mf,k(P(Q)(`Text (Markdown)`)),1),K(nf,{id:`body`,modelValue:P(n).values.body,"onUpdate:modelValue":s[4]||=e=>P(n).values.body=e,required:``},null,8,[`modelValue`]),P(n).errors.body?(H(),U(`p`,Nf,k(P(n).errors.body),1)):J(``,!0)]),G(`div`,Pf,[G(`div`,null,[G(`label`,Ff,k(P(Q)(`Cover image`)),1),G(`div`,If,[I(G(`input`,{id:`cover`,"onUpdate:modelValue":s[5]||=e=>P(n).values.cover_image=e,maxlength:`2048`,class:`m-input`},null,512),[[Y,P(n).values.cover_image]]),P(X).permissions.includes(`media.view`)?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:s[6]||=e=>r.value=!0},k(P(Q)(`Choose`)),1)):J(``,!0)])]),G(`div`,null,[G(`label`,Lf,k(P(Q)(`Tags (comma separated)`)),1),I(G(`input`,{id:`tags`,"onUpdate:modelValue":s[7]||=e=>M(i)?i.value=e:i=e,list:`known-tags`,class:`m-input`},null,512),[[Y,P(i)]]),G(`datalist`,Rf,[(H(!0),U(B,null,R(e.known_tags,e=>(H(),U(`option`,{key:e,value:e},null,8,zf))),128))])])]),G(`div`,Bf,[G(`label`,Vf,[I(G(`input`,{"onUpdate:modelValue":s[8]||=e=>P(n).values.is_featured=e,type:`checkbox`},null,512),[[du,P(n).values.is_featured]]),q(` `+k(P(Q)(`Featured`)),1)]),P(X).permissions.includes(`posts.publish`)?(H(),U(`label`,Hf,[I(G(`input`,{"onUpdate:modelValue":s[9]||=e=>P(n).values.is_published=e,type:`checkbox`},null,512),[[du,P(n).values.is_published]]),q(` `+k(P(Q)(`Publish`)),1)])):J(``,!0),P(n).values.is_published?(H(),U(`div`,Uf,[G(`label`,Wf,k(P(Q)(`Publish at`)),1),I(G(`input`,{id:`at`,"onUpdate:modelValue":s[10]||=e=>P(n).values.published_at=e,type:`datetime-local`,class:`m-input`},null,512),[[Y,P(n).values.published_at]])])):J(``,!0)]),G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},k(P(n).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,Gf)],32),P(t)&&P(X).permissions.includes(`revisions.view`)?(H(),W(yf,{key:0,type:`posts`,id:P(t).id},null,8,[`id`])):J(``,!0),r.value?(H(),W(Hd,{key:1,onPick:s[11]||=e=>{P(n).values.cover_image=e,r.value=!1},onClose:s[12]||=e=>r.value=!1})):J(``,!0)],64))}}),qf={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Jf={class:`font-display text-2xl font-bold`},Yf={key:0,class:`m-card p-5 text-sm text-muted`},Xf={key:1,class:`m-card divide-y divide-line`},Zf={class:`min-w-0`},Qf={class:`truncate font-semibold`},$f={class:`mt-1 flex items-center gap-2 text-xs text-muted`},ep={class:`m-badge`},tp={key:0},np={class:`flex gap-2`},rp=[`onClick`],ip=[`onClick`],ap=L({__name:`PostsIndex`,props:{posts:{}},setup(e){let t={draft:`Draft`,scheduled:`Scheduled`,published:`Published`};async function n(e){await Z.put(`${X.base}/posts/${e.id}/online`,{online:e.status!==`published`}),await W1()}async function r(e){window.confirm(Q(`Are you sure?`))&&(await Z.delete(`${X.base}/posts/${e.id}`),B1(Q(`Deleted.`)),await W1())}return(i,a)=>(H(),U(B,null,[G(`div`,qf,[G(`h1`,Jf,k(P(Q)(`Posts`)),1),P(X).permissions.includes(`posts.write`)?(H(),W(ed,{key:0,href:P(X).base+`/posts/create`,class:`m-btn m-btn-primary`},{default:F(()=>[q(k(P(Q)(`New post`)),1)]),_:1},8,[`href`])):J(``,!0)]),e.posts.length?(H(),U(`ul`,Xf,[(H(!0),U(B,null,R(e.posts,e=>(H(),U(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[G(`div`,Zf,[G(`p`,Qf,k(e.title),1),G(`p`,$f,[G(`span`,ep,k(P(Q)(t[e.status])),1),e.category?(H(),U(`span`,tp,k(e.category),1)):J(``,!0)])]),G(`div`,np,[P(X).permissions.includes(`posts.publish`)&&e.can_change?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>n(e)},k(e.status===`published`?P(Q)(`Take offline`):P(Q)(`Put online`)),9,rp)):J(``,!0),e.can_change?(H(),W(ed,{key:1,href:`${P(X).base}/posts/${e.id}/edit`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Edit`)),1)]),_:1},8,[`href`])):J(``,!0),e.can_delete?(H(),U(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>r(e)},k(P(Q)(`Delete`)),9,ip)):J(``,!0)])]))),128))])):(H(),U(`p`,Yf,k(P(Q)(`No posts yet.`)),1))],64))}}),op=[`src`],sp=L({__name:`Mascot`,props:{name:{},flip:{type:Boolean},size:{}},setup(e){return(t,n)=>(H(),U(`img`,{src:P(X).mascot+e.name,alt:``,class:O([`m-mascot select-none object-contain`,e.flip?`-scale-x-100`:``]),style:_e({width:(e.size??112)+`px`,height:(e.size??112)+`px`}),draggable:`false`},null,14,op))}}),cp={class:`font-display mb-6 text-2xl font-bold`},lp={for:`name`,class:`m-label`},up={key:0,class:`m-error`},dp={class:`m-label`},fp={class:`text-sm`},pp={class:`m-label`},mp={class:`flex flex-wrap gap-1.5`},hp={key:0,class:`m-badge`},gp={key:0,class:`m-badge`},_p={key:0,class:`rounded-lg border border-line p-4`},vp={class:`px-1.5 text-sm font-semibold`},yp={class:`mt-1 flex flex-wrap gap-3`},bp=[`onUpdate:modelValue`,`value`],xp={class:`flex`},Sp={key:0,class:`m-error`},Cp={key:1,class:`rounded-lg border border-line p-4`},wp={class:`px-1.5 text-sm font-semibold`},Tp={class:`mt-1 flex flex-wrap gap-3`},Ep=[`onUpdate:modelValue`,`value`],Dp={key:0,class:`m-error`},Op={class:`space-y-4 rounded-lg border border-line p-4`},kp={class:`px-1.5 text-sm font-semibold`},Ap={class:`m-help`},jp={for:`current_password`,class:`m-label`},Mp={key:0,class:`m-error`},Np={for:`password`,class:`m-label`},Pp={class:`m-help`},Fp={key:0,class:`m-error`},Ip={for:`password_confirmation`,class:`m-label`},Lp={key:2,class:`flex items-center gap-3 rounded-lg border border-line p-4`},Rp={class:`text-sm font-semibold`},zp=[`disabled`],Bp=L({__name:`Profile`,props:{profile:{}},setup(e){let t=e,n=qu({name:t.profile.name,theme:t.profile.theme,locale:t.profile.locale,current_password:``,password:``,password_confirmation:``});async function r(){await n.send(`put`,X.base+`/profile`)&&(B1(Q(`Saved.`)),(n.values.theme!==X.theme||n.values.locale!==X.locale)&&window.location.reload(),n.values.current_password=n.values.password=n.values.password_confirmation=``)}return(t,i)=>(H(),U(B,null,[G(`h1`,cp,k(P(Q)(`My account`)),1),G(`form`,{class:`m-card max-w-xl space-y-5 p-5`,onSubmit:Tu(r,[`prevent`])},[G(`div`,null,[G(`label`,lp,k(P(Q)(`Name`)),1),I(G(`input`,{id:`name`,"onUpdate:modelValue":i[0]||=e=>P(n).values.name=e,type:`text`,required:``,maxlength:`255`,class:`m-input`,autocomplete:`name`},null,512),[[Y,P(n).values.name]]),P(n).errors.name?(H(),U(`p`,up,k(P(n).errors.name),1)):J(``,!0)]),G(`div`,null,[G(`span`,dp,k(P(Q)(`Email address`)),1),G(`p`,fp,k(e.profile.email),1)]),G(`div`,null,[G(`span`,pp,k(P(Q)(`What you may do`)),1),G(`p`,mp,[e.profile.is_super_admin?(H(),U(`span`,hp,k(P(Q)(`Super admin: everything`)),1)):(H(),U(B,{key:1},[(H(!0),U(B,null,R(e.profile.groups,e=>(H(),U(`span`,{key:e,class:`m-badge`},k(e),1))),128)),e.profile.groups.length?J(``,!0):(H(),U(`span`,gp,k(P(Q)(`Not in a group yet`)),1))],64))])]),e.profile.themes.length?(H(),U(`fieldset`,_p,[G(`legend`,vp,k(P(Q)(`Look`)),1),G(`div`,yp,[(H(!0),U(B,null,R(e.profile.themes,e=>(H(),U(`label`,{key:e.key,class:O([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,P(n).values.theme===e.key?`border-brand`:`border-line`])},[I(G(`input`,{"onUpdate:modelValue":e=>P(n).values.theme=e,type:`radio`,name:`theme`,value:e.key,class:`sr-only`},null,8,bp),[[pu,P(n).values.theme]]),G(`span`,xp,[(H(),U(B,null,R([`ink`,`panel`,`brand`],t=>G(`span`,{key:t,class:`h-4 w-4 border border-line`,style:_e({background:e.colors[t]})},null,4)),64))]),q(` `+k(e.label),1)],2))),128))]),P(n).errors.theme?(H(),U(`p`,Sp,k(P(n).errors.theme),1)):J(``,!0)])):J(``,!0),e.profile.locales.length?(H(),U(`fieldset`,Cp,[G(`legend`,wp,k(P(Q)(`Language`)),1),G(`div`,Tp,[(H(!0),U(B,null,R(e.profile.locales,e=>(H(),U(`label`,{key:e,class:O([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,P(n).values.locale===e?`border-brand`:`border-line`])},[I(G(`input`,{"onUpdate:modelValue":e=>P(n).values.locale=e,type:`radio`,name:`locale`,value:e,class:`sr-only`},null,8,Ep),[[pu,P(n).values.locale]]),q(` `+k(e===`nl`?`Nederlands`:`English`),1)],2))),128))]),P(n).errors.locale?(H(),U(`p`,Dp,k(P(n).errors.locale),1)):J(``,!0)])):J(``,!0),G(`fieldset`,Op,[G(`legend`,kp,k(P(Q)(`New password`)),1),G(`p`,Ap,k(P(Q)(`Leave empty to keep the password you have.`)),1),G(`div`,null,[G(`label`,jp,k(P(Q)(`Current password`)),1),I(G(`input`,{id:`current_password`,"onUpdate:modelValue":i[1]||=e=>P(n).values.current_password=e,type:`password`,class:`m-input`,autocomplete:`current-password`},null,512),[[Y,P(n).values.current_password]]),P(n).errors.current_password?(H(),U(`p`,Mp,k(P(n).errors.current_password),1)):J(``,!0)]),G(`div`,null,[G(`label`,Np,k(P(Q)(`New password`)),1),I(G(`input`,{id:`password`,"onUpdate:modelValue":i[2]||=e=>P(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[Y,P(n).values.password]]),G(`p`,Pp,k(P(Q)(`At least 12 characters.`)),1),P(n).errors.password?(H(),U(`p`,Fp,k(P(n).errors.password),1)):J(``,!0)]),G(`div`,null,[G(`label`,Ip,k(P(Q)(`New password, once more`)),1),I(G(`input`,{id:`password_confirmation`,"onUpdate:modelValue":i[3]||=e=>P(n).values.password_confirmation=e,type:`password`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[Y,P(n).values.password_confirmation]])])]),P(X).tutorial_state?(H(),U(`div`,Lp,[K(sp,{name:`peek`,size:64}),G(`div`,null,[G(`p`,Rp,k(P(Q)(`The tour`)),1),G(`button`,{type:`button`,class:`text-sm text-brand underline`,onClick:i[4]||=e=>P($).tour=!0},k(P(Q)(`Show the tour`)),1)])])):J(``,!0),G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},k(P(n).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,zp)],32)],64))}}),Vp={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Hp={class:`font-display text-2xl font-bold`},Up={class:`grid gap-4 sm:grid-cols-2`},Wp={class:`m-label`,for:`a-name`},Gp={key:0,class:`m-error`},Kp={class:`m-label`,for:`a-email`},qp={key:0,class:`m-error`},Jp={class:`m-label`,for:`a-pass`},Yp=[`required`],Xp={class:`m-help`},Zp={key:0,class:`m-error`},Qp={key:0},$p={class:`m-label`},em=[`value`,`disabled`],tm={key:1},nm={class:`m-label`},rm={class:`flex items-center gap-2 py-0.5 text-sm`},im={class:`flex items-center gap-2 py-0.5 text-sm`},am={class:`flex items-center gap-2 py-0.5 text-sm`},om={class:`flex items-center gap-2 text-sm`},sm={class:`flex gap-2`},cm=[`disabled`],lm={class:`m-card divide-y divide-line`},um={class:`min-w-0`},dm={class:`truncate font-semibold`},fm={key:0,class:`text-xs font-normal text-muted`},pm={class:`truncate text-xs text-muted`},mm={class:`mt-1 flex flex-wrap gap-1`},hm={key:0,class:`m-badge`},gm={class:`flex gap-2`},_m=[`onClick`],vm=[`onClick`],ym=L({__name:`AccountsIndex`,props:{accounts:{},groups:{}},setup(e){let t=N(null),n=qu({name:``,email:``,password:``,groups:[],view:``,tutorial:!1});function r(e){t.value=e,n.errors={},n.values.name=e===`new`?``:e.name,n.values.email=e===`new`?``:e.email,n.values.password=``,n.values.groups=e===`new`?[]:e.groups.map(e=>e.id),n.values.view=e===`new`?``:e.view??``,n.values.tutorial=e!==`new`&&e.tutorial===`pending`}async function i(){let e=t.value;(e===`new`?await n.send(`post`,`${X.base}/accounts`):await n.send(`put`,`${X.base}/accounts/${e.id}`))&&(B1(Q(`Saved.`)),t.value=null,await W1())}async function a(e){window.confirm(Q(`Are you sure?`))&&(await Z.delete(`${X.base}/accounts/${e.id}`),B1(Q(`Deleted.`)),await W1())}return(o,s)=>(H(),U(B,null,[G(`div`,Vp,[G(`h1`,Hp,k(P(Q)(`Accounts`)),1),G(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:s[0]||=e=>r(`new`)},k(P(Q)(`New account`)),1)]),t.value?(H(),U(`form`,{key:0,class:`m-card mb-6 max-w-2xl space-y-4 p-5`,onSubmit:Tu(i,[`prevent`])},[G(`div`,Up,[G(`div`,null,[G(`label`,Wp,k(P(Q)(`Name`)),1),I(G(`input`,{id:`a-name`,"onUpdate:modelValue":s[1]||=e=>P(n).values.name=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.name]]),P(n).errors.name?(H(),U(`p`,Gp,k(P(n).errors.name),1)):J(``,!0)]),G(`div`,null,[G(`label`,Kp,k(P(Q)(`Email address`)),1),I(G(`input`,{id:`a-email`,"onUpdate:modelValue":s[2]||=e=>P(n).values.email=e,type:`email`,required:``,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.email]]),P(n).errors.email?(H(),U(`p`,qp,k(P(n).errors.email),1)):J(``,!0)])]),G(`div`,null,[G(`label`,Jp,k(P(Q)(`Password`)),1),I(G(`input`,{id:`a-pass`,"onUpdate:modelValue":s[3]||=e=>P(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,required:t.value===`new`,class:`m-input`,autocomplete:`new-password`},null,8,Yp),[[Y,P(n).values.password]]),G(`p`,Xp,k(t.value===`new`?P(Q)(`At least 12 characters.`):P(Q)(`Leave empty to keep the password you have.`)),1),P(n).errors.password?(H(),U(`p`,Zp,k(P(n).errors.password),1)):J(``,!0)]),e.groups.length?(H(),U(`fieldset`,Qp,[G(`legend`,$p,k(P(Q)(`Groups`)),1),(H(!0),U(B,null,R(e.groups,e=>(H(),U(`label`,{key:e.id,class:O([`flex items-center gap-2 py-0.5 text-sm`,e.can_give?``:`opacity-50`])},[I(G(`input`,{"onUpdate:modelValue":s[4]||=e=>P(n).values.groups=e,type:`checkbox`,value:e.id,disabled:!e.can_give},null,8,em),[[du,P(n).values.groups]]),q(` `+k(e.name),1)],2))),128))])):J(``,!0),P(X).simple_view?(H(),U(`fieldset`,tm,[G(`legend`,nm,k(P(Q)(`What this account sees`)),1),G(`label`,rm,[I(G(`input`,{"onUpdate:modelValue":s[5]||=e=>P(n).values.view=e,type:`radio`,value:``},null,512),[[pu,P(n).values.view]]),q(` `+k(P(Q)(`What its rights give`)),1)]),G(`label`,im,[I(G(`input`,{"onUpdate:modelValue":s[6]||=e=>P(n).values.view=e,type:`radio`,value:`simple`},null,512),[[pu,P(n).values.view]]),q(` `+k(P(Q)(`The simple manager`)),1)]),G(`label`,am,[I(G(`input`,{"onUpdate:modelValue":s[7]||=e=>P(n).values.view=e,type:`radio`,value:`full`},null,512),[[pu,P(n).values.view]]),q(` `+k(P(Q)(`The whole manager`)),1)])])):J(``,!0),G(`label`,om,[I(G(`input`,{"onUpdate:modelValue":s[8]||=e=>P(n).values.tutorial=e,type:`checkbox`},null,512),[[du,P(n).values.tutorial]]),q(` `+k(P(Q)(`Show the tour the next time this account opens the manager`)),1)]),G(`div`,sm,[G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},k(P(n).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,cm),G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:s[9]||=e=>t.value=null},k(P(Q)(`Cancel`)),1)])],32)):J(``,!0),G(`ul`,lm,[(H(!0),U(B,null,R(e.accounts,e=>(H(),U(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[G(`div`,um,[G(`p`,dm,[q(k(e.name)+` `,1),e.is_you?(H(),U(`span`,fm,`(`+k(P(Q)(`you`))+`)`,1)):J(``,!0)]),G(`p`,pm,k(e.email),1),G(`p`,mm,[e.is_super_admin?(H(),U(`span`,hm,k(P(Q)(`Super admin`)),1)):J(``,!0),(H(!0),U(B,null,R(e.groups,e=>(H(),U(`span`,{key:e.id,class:`m-badge`},k(e.name),1))),128))])]),G(`div`,gm,[e.can_change?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e)},k(P(Q)(`Edit`)),9,_m)):J(``,!0),e.can_delete?(H(),U(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>a(e)},k(P(Q)(`Delete`)),9,vm)):J(``,!0)])]))),128))])],64))}}),bm={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},xm={class:`font-display text-2xl font-bold`},Sm={class:`m-label`,for:`g-name`},Cm={key:0,class:`m-error`},wm={class:`m-label`,for:`g-desc`},Tm={class:`px-1 text-sm font-semibold`},Em=[`value`,`onChange`],Dm={class:`flex gap-2`},Om=[`disabled`],km={key:1,class:`m-card p-5 text-sm text-muted`},Am={key:2,class:`m-card divide-y divide-line`},jm={class:`min-w-0`},Mm={class:`font-semibold`},Nm={class:`text-xs font-normal text-muted`},Pm={key:0,class:`text-xs text-muted`},Fm={class:`flex gap-2`},Im=[`onClick`],Lm=[`onClick`],Rm=L({__name:`GroupsIndex`,props:{groups:{},catalogue:{}},setup(e){let t=e,n=N(null),r=qu({name:``,description:``,permissions:[]}),i=t.catalogue.flatMap(e=>e.permissions);function a(e){n.value=e,r.errors={},r.values.name=e===`new`?``:e.name,r.values.description=e===`new`?``:e.description??``,r.values.permissions=e===`new`?[]:[...e.permissions]}function o(e){r.values.permissions.includes(e.value)?r.values.permissions=[...new Set([...r.values.permissions,...e.needs])]:r.values.permissions=r.values.permissions.filter(t=>!i.find(e=>e.value===t)?.needs.includes(e.value))}async function s(){let e=n.value;(e===`new`?await r.send(`post`,`${X.base}/groups`):await r.send(`put`,`${X.base}/groups/${e.id}`))&&(B1(Q(`Saved.`)),n.value=null,await W1())}async function c(e){window.confirm(Q(`Are you sure?`))&&(await Z.delete(`${X.base}/groups/${e.id}`),B1(Q(`Deleted.`)),await W1())}return(t,i)=>(H(),U(B,null,[G(`div`,bm,[G(`h1`,xm,k(P(Q)(`Groups`)),1),G(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:i[0]||=e=>a(`new`)},k(P(Q)(`New group`)),1)]),n.value?(H(),U(`form`,{key:0,class:`m-card mb-6 max-w-3xl space-y-4 p-5`,onSubmit:Tu(s,[`prevent`])},[G(`div`,null,[G(`label`,Sm,k(P(Q)(`Name`)),1),I(G(`input`,{id:`g-name`,"onUpdate:modelValue":i[1]||=e=>P(r).values.name=e,required:``,maxlength:`60`,class:`m-input`},null,512),[[Y,P(r).values.name]]),P(r).errors.name?(H(),U(`p`,Cm,k(P(r).errors.name),1)):J(``,!0)]),G(`div`,null,[G(`label`,wm,k(P(Q)(`Description`)),1),I(G(`textarea`,{id:`g-desc`,"onUpdate:modelValue":i[2]||=e=>P(r).values.description=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[Y,P(r).values.description]])]),(H(!0),U(B,null,R(e.catalogue,e=>(H(),U(`fieldset`,{key:e.section,class:`rounded-lg border border-line p-3`},[G(`legend`,Tm,k(e.section),1),(H(!0),U(B,null,R(e.permissions,e=>(H(),U(`label`,{key:e.value,class:`flex items-center gap-2 py-0.5 text-sm`},[I(G(`input`,{"onUpdate:modelValue":i[3]||=e=>P(r).values.permissions=e,type:`checkbox`,value:e.value,onChange:t=>o(e)},null,40,Em),[[du,P(r).values.permissions]]),q(` `+k(e.label),1)]))),128))]))),128)),G(`div`,Dm,[G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(r).busy},k(P(r).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,Om),G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:i[4]||=e=>n.value=null},k(P(Q)(`Cancel`)),1)])],32)):J(``,!0),e.groups.length?(H(),U(`ul`,Am,[(H(!0),U(B,null,R(e.groups,e=>(H(),U(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[G(`div`,jm,[G(`p`,Mm,[q(k(e.name)+` `,1),G(`span`,Nm,`· `+k(e.accounts)+` `+k(P(Q)(`accounts`)),1)]),e.description?(H(),U(`p`,Pm,k(e.description),1)):J(``,!0)]),G(`div`,Fm,[G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>a(e)},k(P(Q)(`Edit`)),9,Im),G(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:t=>c(e)},k(P(Q)(`Delete`)),9,Lm)])]))),128))])):(H(),U(`p`,km,k(P(Q)(`Nothing here yet.`)),1))],64))}}),zm={class:`font-display mb-6 text-2xl font-bold`},Bm={key:0,class:`m-error mb-4`},Vm={class:`grid gap-6 md:grid-cols-2`},Hm={class:`mb-3 font-semibold`},Um=[`onSubmit`],Wm=[`onUpdate:modelValue`,`aria-label`],Gm={type:`submit`,class:`m-btn m-btn-primary`},Km={class:`divide-y divide-line`},qm={class:`min-w-0 truncate`},Jm={class:`text-xs text-muted`},Ym={class:`flex gap-1`},Xm=[`onClick`],Zm=[`onClick`],Qm=L({__name:`LabelsIndex`,props:{categories:{},tags:{}},setup(e){let t=[{type:`category`,title:`Categories`},{type:`tag`,title:`Tags`}],n=N({category:``,tag:``}),r=N(``);async function i(e){r.value=``;try{await e(),await W1()}catch(e){if(e instanceof Uu&&e.status===422)r.value=Object.values(e.errors)[0]??e.message;else throw e}}let a=e=>i(async()=>{await Z.post(`${X.base}/labels`,{type:e,name:n.value[e]}),n.value[e]=``,B1(Q(`Created.`))}),o=(e,t)=>{let n=window.prompt(Q(`New name`),t);return n&&n!==t?i(()=>Z.put(`${X.base}/labels`,{type:e,name:t,new_name:n})):void 0},s=(e,t)=>window.confirm(Q(`Are you sure?`))?i(()=>Z.delete(`${X.base}/labels`,{type:e,name:t})):void 0;return(i,c)=>(H(),U(B,null,[G(`h1`,zm,k(P(Q)(`Categories and tags`)),1),r.value?(H(),U(`p`,Bm,k(r.value),1)):J(``,!0),G(`div`,Vm,[(H(),U(B,null,R(t,t=>G(`section`,{key:t.type,class:`m-card p-4`},[G(`h2`,Hm,k(P(Q)(t.title)),1),G(`form`,{class:`mb-3 flex gap-2`,onSubmit:Tu(e=>a(t.type),[`prevent`])},[I(G(`input`,{"onUpdate:modelValue":e=>n.value[t.type]=e,required:``,maxlength:`60`,class:`m-input`,"aria-label":P(Q)(t.title)},null,8,Wm),[[Y,n.value[t.type]]]),G(`button`,Gm,k(P(Q)(`Add`)),1)],40,Um),G(`ul`,Km,[(H(!0),U(B,null,R(t.type===`category`?e.categories:e.tags,e=>(H(),U(`li`,{key:e.name,class:`flex items-center justify-between gap-2 py-2 text-sm`},[G(`span`,qm,[q(k(e.name)+` `,1),G(`span`,Jm,`· `+k(e.posts),1)]),G(`span`,Ym,[G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>o(t.type,e.name)},k(P(Q)(`Rename`)),9,Xm),G(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:n=>s(t.type,e.name)},k(P(Q)(`Delete`)),9,Zm)])]))),128))])])),64))])],64))}}),$m={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},eh={class:`font-display text-2xl font-bold`},th=[`accept`,`disabled`],nh=[`title`],rh={class:`h-2 overflow-hidden rounded-full bg-panel-2`},ih={class:`m-help`},ah={key:0,class:`w-full shrink-0 sm:w-64`},oh=[`src`,`alt`],sh={class:`m-help`},ch={class:`mt-2 flex items-center gap-2`},lh=[`src`],uh={class:`min-w-0 flex-1 space-y-3`},dh={class:`m-label`,for:`m-name`},fh=[`disabled`],ph={key:0,class:`m-error`},mh={key:0},hh={class:`m-label`,for:`m-alt`},gh=[`disabled`],_h={class:`m-help`},vh={key:0},yh={key:1},bh={class:`m-help break-all`},xh={class:`flex gap-2`},Sh=[`disabled`],Ch={key:1,class:`m-card p-5 text-sm text-muted`},wh={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},Th=[`onClick`],Eh=[`src`,`alt`],Dh={key:1,class:`grid aspect-square w-full place-items-center text-xs text-muted`},Oh={class:`block truncate px-2 py-1.5 text-xs`},kh=L({__name:`MediaLibrary`,props:{items:{},max_file_mb:{},extensions:{},storage:{}},setup(e){let t=e=>X.permissions.includes(e),n=N(!1),r=N(null),i=qu({name:``,alt:``,focus_x:null,focus_y:null}),a=e=>e>1e6?`${(e/1e6).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1e3))} kB`;function o(e){r.value=e,i.errors={},i.values.name=e.name,i.values.alt=e.alt??``,i.values.focus_x=e.focus_x,i.values.focus_y=e.focus_y}function s(e){if(!t(`media.edit`))return;let n=e.currentTarget.getBoundingClientRect();i.values.focus_x=Math.round(Math.min(1,Math.max(0,(e.clientX-n.left)/n.width))*1e3)/1e3,i.values.focus_y=Math.round(Math.min(1,Math.max(0,(e.clientY-n.top)/n.height))*1e3)/1e3}let c=(e,t)=>`${(e??.5)*100}% ${(t??.5)*100}%`;async function l(e){let t=e.target;n.value=!0;try{for(let e of Array.from(t.files??[])){let t=new FormData;t.append(`file`,e),await Ku(`${X.base}/media`,t)}B1(Q(`Uploaded.`)),await W1()}catch(e){B1(e instanceof Uu?Object.values(e.errors)[0]??e.message:Q(`Something went wrong. Try again.`),!0)}finally{n.value=!1,t.value=``}}async function u(){r.value&&await i.send(`put`,`${X.base}/media/${r.value.id}`)&&(B1(Q(`Saved.`)),r.value=null,await W1())}async function d(e){let t=e.usage_count>0?Q(`This file is in use. Delete it anyway?`):Q(`Are you sure?`);window.confirm(t)&&(await Z.delete(`${X.base}/media/${e.id}`),r.value=null,B1(Q(`Deleted.`)),await W1())}return(f,p)=>(H(),U(B,null,[G(`div`,$m,[G(`h1`,eh,k(P(Q)(`Media`)),1),t(`media.upload`)?(H(),U(`label`,{key:0,class:O([`m-btn m-btn-primary cursor-pointer`,n.value?`opacity-50`:``])},[q(k(n.value?P(Q)(`Uploading…`):P(Q)(`Upload`))+` `,1),G(`input`,{type:`file`,multiple:``,class:`sr-only`,accept:e.extensions.map(e=>`.`+e).join(`,`),disabled:n.value,onChange:l},null,40,th)],2)):J(``,!0)]),G(`div`,{class:`mb-6 max-w-md`,title:`${a(e.storage.used)} / ${a(e.storage.limit)}`},[G(`div`,rh,[G(`div`,{class:`h-full bg-brand`,style:_e({width:Math.min(100,e.storage.used/Math.max(1,e.storage.limit)*100)+`%`})},null,4)]),G(`p`,ih,k(a(e.storage.used))+` / `+k(a(e.storage.limit))+` · `+k(P(Q)(`Largest file`))+`: `+k(e.max_file_mb)+` MB`,1)],8,nh),r.value?(H(),U(`form`,{key:0,class:`m-card mb-6 flex max-w-3xl flex-wrap gap-5 p-5`,onSubmit:Tu(u,[`prevent`])},[r.value.is_image?(H(),U(`div`,ah,[G(`div`,{class:O([`relative`,t(`media.edit`)?`cursor-crosshair`:``]),onClick:s},[G(`img`,{src:r.value.url,alt:r.value.alt??``,class:`w-full rounded-lg`,draggable:`false`},null,8,oh),P(i).values.focus_x===null?J(``,!0):(H(),U(`span`,{key:0,class:`pointer-events-none absolute h-5 w-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-brand/60 shadow`,style:_e({left:(P(i).values.focus_x??0)*100+`%`,top:(P(i).values.focus_y??0)*100+`%`})},null,4))],2),G(`p`,sh,k(t(`media.edit`)?P(Q)(`Click the part of the picture that must stay in view.`):P(Q)(`Focus point`)),1),G(`div`,ch,[G(`img`,{src:r.value.url,alt:``,class:`h-16 w-16 rounded-lg object-cover`,style:_e({objectPosition:c(P(i).values.focus_x,P(i).values.focus_y)})},null,12,lh),t(`media.edit`)&&P(i).values.focus_x!==null?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:p[0]||=e=>P(i).values.focus_x=P(i).values.focus_y=null},k(P(Q)(`Clear`)),1)):J(``,!0)])])):J(``,!0),G(`div`,uh,[G(`div`,null,[G(`label`,dh,k(P(Q)(`Name`)),1),I(G(`input`,{id:`m-name`,"onUpdate:modelValue":p[1]||=e=>P(i).values.name=e,required:``,maxlength:`250`,class:`m-input`,disabled:!t(`media.edit`)},null,8,fh),[[Y,P(i).values.name]]),P(i).errors.name?(H(),U(`p`,ph,k(P(i).errors.name),1)):J(``,!0)]),r.value.is_image?(H(),U(`div`,mh,[G(`label`,hh,k(P(Q)(`Alternative text`)),1),I(G(`input`,{id:`m-alt`,"onUpdate:modelValue":p[2]||=e=>P(i).values.alt=e,maxlength:`500`,class:`m-input`,disabled:!t(`media.edit`)},null,8,gh),[[Y,P(i).values.alt]])])):J(``,!0),G(`p`,_h,[q(k(r.value.mime_type)+` · `+k(a(r.value.size)),1),r.value.width?(H(),U(`span`,vh,` · `+k(r.value.width)+`×`+k(r.value.height),1)):J(``,!0),q(` · `+k(P(Q)(`Used`))+`: `+k(r.value.usage_count),1),r.value.uploaded_by?(H(),U(`span`,yh,` · `+k(r.value.uploaded_by),1)):J(``,!0)]),G(`p`,bh,k(r.value.url),1),G(`div`,xh,[t(`media.edit`)?(H(),U(`button`,{key:0,type:`submit`,class:`m-btn m-btn-primary`,disabled:P(i).busy},k(P(Q)(`Save`)),9,Sh)):J(``,!0),t(`media.delete`)?(H(),U(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:p[3]||=e=>d(r.value)},k(P(Q)(`Delete`)),1)):J(``,!0),G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:p[4]||=e=>r.value=null},k(P(Q)(`Cancel`)),1)])])],32)):J(``,!0),e.items.length?(H(),U(`div`,wh,[(H(!0),U(B,null,R(e.items,e=>(H(),U(`button`,{key:e.id,type:`button`,class:O([`m-card overflow-hidden text-left transition hover:border-brand`,r.value?.id===e.id?`border-brand`:``]),onClick:t=>o(e)},[e.is_image?(H(),U(`img`,{key:0,src:e.url,alt:e.alt??``,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,Eh)):(H(),U(`span`,Dh,k(e.mime_type),1)),G(`span`,Oh,k(e.name),1)],10,Th))),128))])):(H(),U(`p`,Ch,k(P(Q)(`No files yet.`)),1))],64))}}),Ah={class:`font-display mb-6 text-2xl font-bold`},jh={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-4`},Mh={class:`text-2xl font-bold`},Nh={class:`m-help`},Ph={class:`mb-4 flex flex-wrap gap-2`},Fh=[`onClick`],Ih=[`placeholder`,`aria-label`],Lh=[`aria-label`],Rh={value:``},zh=[`value`],Bh={type:`submit`,class:`m-btn m-btn-secondary`},Vh={key:0,class:`m-card p-5 text-sm text-muted`},Hh={key:1,class:`m-card divide-y divide-line`},Uh={class:`min-w-0`},Wh={class:`font-semibold`},Gh={key:1},Kh={class:`text-xs text-muted`},qh={class:`flex gap-2`},Jh={key:0,class:`m-badge`},Yh=[`onClick`],Xh={key:2,class:`mt-4 flex items-center gap-2`},Zh={class:`text-sm text-muted`},Qh={class:`font-display mb-3 mt-10 text-xl font-bold`},$h={class:`m-label`,for:`b-min`},eg={class:`min-w-[10rem] flex-1`},tg={class:`m-label`,for:`b-why`},ng={key:0,class:`flex items-center gap-2 text-sm`},rg={type:`submit`,class:`m-btn m-btn-danger`},ig={key:1,class:`m-error w-full`},ag={key:4,class:`text-sm text-muted`},og={key:5,class:`m-card divide-y divide-line`},sg={class:`font-semibold`},cg={key:0,class:`m-badge`},lg={key:1,class:`m-badge`},ug={class:`text-xs text-muted`},dg=[`onClick`],fg={class:`font-display mb-3 mt-10 text-xl font-bold`},pg={class:`flex items-center gap-2 text-sm sm:col-span-2`},mg={class:`m-label`,for:`r-max`},hg={class:`m-label`,for:`r-win`},gg={class:`m-label`,for:`r-ban`},_g={class:`m-label`,for:`r-keep`},vg=[`max`],yg={class:`m-help`},bg={class:`sm:col-span-2`},xg=[`disabled`],Sg={class:`font-display mb-3 mt-10 text-xl font-bold`},Cg={class:`m-label`,for:`n-group`},wg={class:`min-w-[10rem] flex-1`},Tg={class:`m-label`,for:`n-note`},Eg={type:`submit`,class:`m-btn m-btn-secondary`},Dg={key:0,class:`m-error w-full`},Og={key:0,class:`m-card divide-y divide-line text-sm`},kg={key:0,class:`m-badge`},Ag=L({__name:`AuditLog`,props:{entries:{},pagination:{},filters:{},accounts:{},summary:{},bans:{},notes:{},settings:{},max_keep_days:{},can_manage:{type:Boolean},my_ip:{},never_banned:{},whole_site_bans:{type:Boolean}},setup(e){let t=e,n=[`all`,`logins`,`failed`,`actions`,`viewed`,`refused`,`bans`],r=rn({q:t.filters.q,ip:t.filters.ip,user:t.filters.user??``}),i=e=>new Date(e).toLocaleString();function a(e){let n=new URLSearchParams,i={show:t.filters.show,q:r.q,ip:r.ip,user:r.user,...e};for(let[e,t]of Object.entries(i))t!==``&&t!==`all`&&t!==1&&n.set(e,String(t));U1(`${X.base}/audit${n.size?`?`+n:``}`)}let o=qu({ip:``,minutes:1440,reason:``,whole_site:!1});async function s(e){e&&(o.values.ip=e);let t=await o.send(`post`,`${X.base}/audit/bans`);t&&(B1(t.message),o.values.ip=o.values.reason=``,await W1())}async function c(e){B1((await Z.delete(`${X.base}/audit/bans/${e.id}`)).message),await W1()}let l=qu({...t.settings});async function u(){await l.send(`put`,`${X.base}/audit/settings`)&&(B1(Q(`Saved.`)),await W1())}let d=qu({ip:``,group:``,note:``});async function f(){await d.send(`put`,`${X.base}/audit/notes`)&&(B1(Q(`Saved.`)),d.values.ip=d.values.group=d.values.note=``,await W1())}let p=e=>e.expires_at?i(e.expires_at):Q(`until lifted`);return(t,m)=>(H(),U(B,null,[G(`h1`,Ah,k(P(Q)(`Audit log`)),1),G(`div`,jh,[(H(!0),U(B,null,R(e.summary,(e,t)=>(H(),U(`div`,{key:t,class:`m-card p-4`},[G(`p`,Mh,k(e),1),G(`p`,Nh,k(P(Q)(t===`banned`?`Addresses banned`:t===`logins`?`Logins (24 h)`:t===`failed`?`Failed logins (24 h)`:`Refused (24 h)`)),1)]))),128))]),G(`nav`,Ph,[(H(),U(B,null,R(n,t=>G(`button`,{key:t,type:`button`,class:O([`m-btn`,e.filters.show===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>a({show:t,page:1})},k(P(Q)(t)),11,Fh)),64))]),G(`form`,{class:`mb-4 flex flex-wrap gap-2`,onSubmit:m[3]||=Tu(e=>a({page:1}),[`prevent`])},[I(G(`input`,{"onUpdate:modelValue":m[0]||=e=>r.q=e,class:`m-input max-w-xs`,placeholder:P(Q)(`Search`),"aria-label":P(Q)(`Search`)},null,8,Ih),[[Y,r.q]]),I(G(`input`,{"onUpdate:modelValue":m[1]||=e=>r.ip=e,class:`m-input max-w-[12rem]`,placeholder:`IP`,"aria-label":`IP`},null,512),[[Y,r.ip]]),I(G(`select`,{"onUpdate:modelValue":m[2]||=e=>r.user=e,class:`m-input max-w-[12rem]`,"aria-label":P(Q)(`Account`)},[G(`option`,Rh,k(P(Q)(`Everyone`)),1),(H(!0),U(B,null,R(e.accounts,e=>(H(),U(`option`,{key:e.id,value:e.id},k(e.name),9,zh))),128))],8,Lh),[[mu,r.user]]),G(`button`,Bh,k(P(Q)(`Filter`)),1)],32),e.entries.length?(H(),U(`ul`,Hh,[(H(!0),U(B,null,R(e.entries,t=>(H(),U(`li`,{key:t.id,class:`flex flex-wrap items-start justify-between gap-3 p-4 text-sm`},[G(`div`,Uh,[G(`p`,Wh,[q(k(t.summary)+` `,1),t.subject?(H(),U(B,{key:0},[m[19]||=q(` · `,-1),t.subject.url?(H(),W(ed,{key:0,href:t.subject.url,class:`underline`},{default:F(()=>[q(k(t.subject.label),1)]),_:2},1032,[`href`])):(H(),U(`span`,Gh,k(t.subject.label),1))],64)):J(``,!0)]),G(`p`,Kh,k(i(t.at))+` · `+k(t.who??t.email??P(Q)(`Someone`))+` · `+k(t.ip)+` · `+k(t.browser),1)]),G(`span`,qh,[t.banned?(H(),U(`span`,Jh,k(P(Q)(`banned`)),1)):J(``,!0),e.can_manage&&t.ip&&!t.banned&&!t.never_banned&&t.ip!==e.my_ip?(H(),U(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>s(t.ip)},k(P(Q)(`Ban`)),9,Yh)):J(``,!0)])]))),128))])):(H(),U(`p`,Vh,k(P(Q)(`Nothing here yet.`)),1)),e.pagination.pages>1?(H(),U(`nav`,Xh,[e.pagination.page>1?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[4]||=t=>a({page:e.pagination.page-1})},k(P(Q)(`Previous`)),1)):J(``,!0),G(`span`,Zh,k(e.pagination.page)+` / `+k(e.pagination.pages),1),e.pagination.page<e.pagination.pages?(H(),U(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[5]||=t=>a({page:e.pagination.page+1})},k(P(Q)(`Next`)),1)):J(``,!0)])):J(``,!0),G(`h2`,Qh,k(P(Q)(`Bans`)),1),e.can_manage?(H(),U(`form`,{key:3,class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:m[10]||=Tu(e=>s(),[`prevent`])},[G(`div`,null,[m[20]||=G(`label`,{class:`m-label`,for:`b-ip`},`IP`,-1),I(G(`input`,{id:`b-ip`,"onUpdate:modelValue":m[6]||=e=>P(o).values.ip=e,required:``,class:`m-input`},null,512),[[Y,P(o).values.ip]])]),G(`div`,null,[G(`label`,$h,k(P(Q)(`Minutes (0 = until lifted)`)),1),I(G(`input`,{id:`b-min`,"onUpdate:modelValue":m[7]||=e=>P(o).values.minutes=e,type:`number`,min:`0`,class:`m-input w-32`},null,512),[[Y,P(o).values.minutes,void 0,{number:!0}]])]),G(`div`,eg,[G(`label`,tg,k(P(Q)(`Reason`)),1),I(G(`input`,{id:`b-why`,"onUpdate:modelValue":m[8]||=e=>P(o).values.reason=e,maxlength:`200`,class:`m-input`},null,512),[[Y,P(o).values.reason]])]),e.whole_site_bans?(H(),U(`label`,ng,[I(G(`input`,{"onUpdate:modelValue":m[9]||=e=>P(o).values.whole_site=e,type:`checkbox`},null,512),[[du,P(o).values.whole_site]]),q(` `+k(P(Q)(`Whole site`)),1)])):J(``,!0),G(`button`,rg,k(P(Q)(`Ban`)),1),P(o).errors.ip?(H(),U(`p`,ig,k(P(o).errors.ip),1)):J(``,!0)],32)):J(``,!0),e.bans.length?(H(),U(`ul`,og,[(H(!0),U(B,null,R(e.bans,t=>(H(),U(`li`,{key:t.id,class:O([`flex flex-wrap items-center justify-between gap-3 p-4 text-sm`,t.active?``:`opacity-50`])},[G(`div`,null,[G(`p`,sg,[q(k(t.ip)+` `,1),t.automatic?(H(),U(`span`,cg,k(P(Q)(`automatic`)),1)):J(``,!0),m[21]||=q(),t.whole_site?(H(),U(`span`,lg,k(P(Q)(`whole site`)),1)):J(``,!0)]),G(`p`,ug,k(t.reason)+` · `+k(p(t))+` · `+k(t.hits)+` `+k(P(Q)(`hits`)),1)]),e.can_manage&&t.active?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>c(t)},k(P(Q)(`Lift`)),9,dg)):J(``,!0)],2))),128))])):(H(),U(`p`,ag,k(P(Q)(`No bans.`)),1)),e.can_manage?(H(),U(B,{key:6},[G(`h2`,fg,k(P(Q)(`Rules`)),1),G(`form`,{class:`m-card grid max-w-3xl gap-4 p-5 sm:grid-cols-2`,onSubmit:Tu(u,[`prevent`])},[G(`label`,pg,[I(G(`input`,{"onUpdate:modelValue":m[11]||=e=>P(l).values.auto_ban=e,type:`checkbox`},null,512),[[du,P(l).values.auto_ban]]),q(` `+k(P(Q)(`Ban an address by itself after too many failed logins`)),1)]),G(`div`,null,[G(`label`,mg,k(P(Q)(`Failed logins`)),1),I(G(`input`,{id:`r-max`,"onUpdate:modelValue":m[12]||=e=>P(l).values.max_failures=e,type:`number`,min:`3`,max:`100`,class:`m-input`},null,512),[[Y,P(l).values.max_failures,void 0,{number:!0}]])]),G(`div`,null,[G(`label`,hg,k(P(Q)(`Within minutes`)),1),I(G(`input`,{id:`r-win`,"onUpdate:modelValue":m[13]||=e=>P(l).values.window_minutes=e,type:`number`,min:`1`,max:`1440`,class:`m-input`},null,512),[[Y,P(l).values.window_minutes,void 0,{number:!0}]])]),G(`div`,null,[G(`label`,gg,k(P(Q)(`Ban for minutes (0 = until lifted)`)),1),I(G(`input`,{id:`r-ban`,"onUpdate:modelValue":m[14]||=e=>P(l).values.ban_minutes=e,type:`number`,min:`0`,class:`m-input`},null,512),[[Y,P(l).values.ban_minutes,void 0,{number:!0}]])]),G(`div`,null,[G(`label`,_g,k(P(Q)(`Keep the log (days)`)),1),I(G(`input`,{id:`r-keep`,"onUpdate:modelValue":m[15]||=e=>P(l).values.keep_days=e,type:`number`,min:`7`,max:e.max_keep_days,class:`m-input`},null,8,vg),[[Y,P(l).values.keep_days,void 0,{number:!0}]]),G(`p`,yg,`≤ `+k(e.max_keep_days),1)]),G(`div`,bg,[G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(l).busy},k(P(Q)(`Save`)),9,xg)]),(H(!0),U(B,null,R(P(l).errors,(e,t)=>(H(),U(`p`,{key:t,class:`m-error sm:col-span-2`},k(e),1))),128))],32),G(`h2`,Sg,k(P(Q)(`Notes about addresses`)),1),G(`form`,{class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:Tu(f,[`prevent`])},[G(`div`,null,[m[22]||=G(`label`,{class:`m-label`,for:`n-ip`},`IP`,-1),I(G(`input`,{id:`n-ip`,"onUpdate:modelValue":m[16]||=e=>P(d).values.ip=e,required:``,class:`m-input`},null,512),[[Y,P(d).values.ip]])]),G(`div`,null,[G(`label`,Cg,k(P(Q)(`Group`)),1),I(G(`input`,{id:`n-group`,"onUpdate:modelValue":m[17]||=e=>P(d).values.group=e,maxlength:`60`,class:`m-input`},null,512),[[Y,P(d).values.group]])]),G(`div`,wg,[G(`label`,Tg,k(P(Q)(`Note`)),1),I(G(`input`,{id:`n-note`,"onUpdate:modelValue":m[18]||=e=>P(d).values.note=e,maxlength:`2000`,class:`m-input`},null,512),[[Y,P(d).values.note]])]),G(`button`,Eg,k(P(Q)(`Save`)),1),P(d).errors.ip?(H(),U(`p`,Dg,k(P(d).errors.ip),1)):J(``,!0)],32),e.notes.length?(H(),U(`ul`,Og,[(H(!0),U(B,null,R(e.notes,e=>(H(),U(`li`,{key:e.ip,class:`p-3`},[G(`b`,null,k(e.ip),1),m[23]||=q(),e.group?(H(),U(`span`,kg,k(e.group),1)):J(``,!0),q(` `+k(e.note),1)]))),128))])):J(``,!0)],64)):J(``,!0)],64))}}),jg={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Mg={class:`font-display text-2xl font-bold`},Ng={class:`text-sm text-muted`},Pg={key:0},Fg={class:`mb-6 flex flex-wrap gap-2`},Ig={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-5`},Lg={class:`text-2xl font-bold`},Rg={class:`m-help`},zg={class:`m-card mb-6 p-4`},Bg={class:`mb-3 font-semibold`},Vg=[`aria-label`],Hg=[`title`],Ug={class:`mb-6 grid gap-6 md:grid-cols-2`},Wg={class:`m-card p-4`},Gg={class:`mb-3 font-semibold`},Kg={key:0,class:`text-sm text-muted`},qg={class:`divide-y divide-line text-sm`},Jg={class:`truncate`},Yg={class:`text-muted`},Xg={class:`m-card p-4`},Zg={class:`mb-3 font-semibold`},Qg={key:0,class:`text-sm text-muted`},$g={class:`divide-y divide-line text-sm`},e_={class:`truncate`},t_={class:`text-muted`},n_={class:`mb-3 font-semibold`},r_={key:0,class:`text-sm text-muted`},i_={class:`divide-y divide-line text-sm`},a_={class:`truncate`},o_={class:`text-muted`},s_={class:`m-card mb-6 overflow-x-auto p-4`},c_={class:`mb-3 font-semibold`},l_={class:`space-y-0.5 text-xs`},u_={class:`w-9 shrink-0 text-muted`},d_=[`title`],f_={class:`m-card mb-6 p-4`},p_={class:`mb-3 font-semibold`},m_={class:`text-sm font-normal text-muted`},h_={key:0,class:`text-sm text-muted`},g_={class:`divide-y divide-line text-sm`},__={class:`text-xs text-muted`},v_={class:`text-muted`},y_={class:`flex flex-wrap items-center gap-2 text-sm`},b_={class:`text-muted`},x_=[`href`],S_=L({__name:`StatisticsReport`,props:{range:{},ranges:{},exports:{},totals:{},previous:{},series:{},pages:{},posts:{},channels:{},sources:{},countries:{},devices:{},browsers:{},systems:{},heatmap:{},bots:{}},setup(e){let t=e,n=dc(()=>[[`Visitors`,`visitors`],[`Visits`,`visits`],[`Page views`,`page_views`],[`Average time`,`average_seconds`],[`Bounce rate`,`bounce_rate`]]),r=(e,t)=>e===`average_seconds`?`${Math.floor(t/60)}:${String(t%60).padStart(2,`0`)}`:e===`bounce_rate`?`${t}%`:t.toLocaleString(),i=e=>{let n=t.previous?.[e];return n?Math.round((t.totals[e]-n)/n*100):null},a=dc(()=>Math.max(1,...t.series.map(e=>e.visits))),o=dc(()=>Math.max(1,...t.heatmap.flatMap(e=>e.hours))),s=dc(()=>[[`Channels`,t.channels],[`Sources`,t.sources],[`Countries`,t.countries],[`Devices`,t.devices],[`Browsers`,t.browsers],[`Systems`,t.systems]]),c=e=>`${X.base}/statistics?range=${e}`,l=e=>`${X.base}/statistics/export?sheet=${e}&range=${new URLSearchParams($.path.split(`?`)[1]??``).get(`range`)??t.range.key}`;return(t,u)=>(H(),U(B,null,[G(`div`,jg,[G(`h1`,Mg,k(P(Q)(`Statistics`)),1),G(`p`,Ng,[q(k(e.range.from)+` → `+k(e.range.to),1),e.range.compared_to?(H(),U(`span`,Pg,` · `+k(P(Q)(`compared with`))+` `+k(e.range.compared_to),1)):J(``,!0)])]),G(`nav`,Fg,[(H(!0),U(B,null,R(e.ranges,t=>(H(),W(ed,{key:t.key,href:c(t.key),class:O([`m-btn`,e.range.key===t.key?`m-btn-primary`:`m-btn-secondary`])},{default:F(()=>[q(k(t.label),1)]),_:2},1032,[`href`,`class`]))),128))]),G(`div`,Ig,[(H(!0),U(B,null,R(n.value,([t,n])=>(H(),U(`div`,{key:n,class:`m-card p-4`},[G(`p`,Lg,k(r(n,e.totals[n])),1),G(`p`,Rg,[q(k(P(Q)(t)),1),i(n)===null?J(``,!0):(H(),U(`span`,{key:0,class:O((i(n)??0)>=0?`text-emerald-500`:`text-red-500`)},k((i(n)??0)>0?`+`:``)+k(i(n))+`%`,3))])]))),128))]),G(`section`,zg,[G(`h2`,Bg,k(P(Q)(`Visits`)),1),G(`div`,{class:`flex h-40 items-end gap-px`,role:`img`,"aria-label":P(Q)(`Visits`)},[(H(!0),U(B,null,R(e.series,e=>(H(),U(`div`,{key:e.key,class:`min-w-px flex-1 rounded-t bg-brand`,style:_e({height:Math.max(2,e.visits/a.value*100)+`%`}),title:`${e.label}: ${e.visits}`},null,12,Hg))),128))],8,Vg)]),G(`div`,Ug,[G(`section`,Wg,[G(`h2`,Gg,k(P(Q)(`Pages`)),1),e.pages.length?J(``,!0):(H(),U(`p`,Kg,k(P(Q)(`Nothing here yet.`)),1)),G(`ul`,qg,[(H(!0),U(B,null,R(e.pages,e=>(H(),U(`li`,{key:e.path,class:`flex justify-between gap-3 py-1.5`},[G(`span`,Jg,k(e.title??e.path),1),G(`span`,Yg,k(e.views),1)]))),128))])]),G(`section`,Xg,[G(`h2`,Zg,k(P(Q)(`Posts`)),1),e.posts.length?J(``,!0):(H(),U(`p`,Qg,k(P(Q)(`Nothing here yet.`)),1)),G(`ul`,$g,[(H(!0),U(B,null,R(e.posts,e=>(H(),U(`li`,{key:e.slug,class:`flex justify-between gap-3 py-1.5`},[G(`span`,e_,k(e.title),1),G(`span`,t_,k(e.views),1)]))),128))])]),(H(!0),U(B,null,R(s.value,([e,t])=>(H(),U(`section`,{key:e,class:`m-card p-4`},[G(`h2`,n_,k(P(Q)(e)),1),t.length?J(``,!0):(H(),U(`p`,r_,k(P(Q)(`Nothing here yet.`)),1)),G(`ul`,i_,[(H(!0),U(B,null,R(t,e=>(H(),U(`li`,{key:e.name+(e.channel??``),class:`flex justify-between gap-3 py-1.5`},[G(`span`,a_,k(e.name||P(Q)(`Direct`)),1),G(`span`,o_,k(e.visits),1)]))),128))])]))),128))]),G(`section`,s_,[G(`h2`,c_,k(P(Q)(`When people visit`)),1),G(`div`,l_,[(H(!0),U(B,null,R(e.heatmap,e=>(H(),U(`div`,{key:e.day,class:`flex items-center gap-0.5`},[G(`span`,u_,k(e.day),1),(H(!0),U(B,null,R(e.hours,(t,n)=>(H(),U(`span`,{key:n,class:`block h-5 min-w-3 flex-1 rounded-sm border border-line`,title:`${e.day} ${n}:00 · ${t}`,style:_e({background:`color-mix(in srgb, var(--m-brand) ${Math.round(t/o.value*100)}%, var(--m-panel-2))`})},null,12,d_))),128))]))),128))])]),G(`section`,f_,[G(`h2`,p_,[q(k(P(Q)(`Programs`))+` `,1),G(`span`,m_,`· `+k(e.bots.total),1)]),e.bots.names.length?J(``,!0):(H(),U(`p`,h_,k(P(Q)(`Nothing here yet.`)),1)),G(`ul`,g_,[(H(!0),U(B,null,R(e.bots.names,e=>(H(),U(`li`,{key:e.name,class:`flex justify-between gap-3 py-1.5`},[G(`span`,null,[q(k(e.name)+` `,1),G(`span`,__,k(e.kind),1)]),G(`span`,v_,k(e.hits),1)]))),128))])]),G(`p`,y_,[G(`span`,b_,k(P(Q)(`Download`))+`:`,1),(H(!0),U(B,null,R(e.exports,(e,t)=>(H(),U(`a`,{key:t,href:l(String(t)),class:`m-btn m-btn-secondary`},k(e)+` (CSV)`,9,x_))),128))])],64))}}),C_={class:`font-display mb-6 text-2xl font-bold`},w_={key:0,class:`m-card p-5 text-sm text-muted`},T_={key:1,class:`m-card divide-y divide-line`},E_={class:`min-w-0`},D_={class:`truncate font-semibold`},O_={class:`truncate text-xs text-muted`},k_={class:`m-badge`},A_={key:2,class:`mt-4 flex gap-2`},j_=L({__name:`ListPage`,props:{data:{},current_page:{},last_page:{},path:{}},setup(e){let t=e,n=dc(()=>$.path.includes(`/reviews`)?`reviews`:`pages`),r=dc(()=>n.value===`reviews`?`Reviews`:`Pages`),i=e=>n.value===`reviews`?e.author:e.title,a=e=>n.value===`reviews`?e.rating?`★`.repeat(e.rating):``:e.slug,o=e=>n.value===`reviews`?e.is_visible:e.is_published,s=e=>`${$.path.split(`?`)[0]}?page=${e}`;return(e,n)=>(H(),U(B,null,[G(`h1`,C_,k(P(Q)(r.value)),1),t.data.length?(H(),U(`ul`,T_,[(H(!0),U(B,null,R(t.data,e=>(H(),U(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4`},[G(`div`,E_,[G(`p`,D_,k(i(e)),1),G(`p`,O_,k(a(e)),1)]),G(`span`,k_,k(o(e)?P(Q)(`Published`):P(Q)(`Draft`)),1)]))),128))])):(H(),U(`p`,w_,k(P(Q)(`Nothing here yet.`)),1)),t.last_page>1?(H(),U(`nav`,A_,[t.current_page>1?(H(),W(ed,{key:0,href:s(t.current_page-1),class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Previous`)),1)]),_:1},8,[`href`])):J(``,!0),t.current_page<t.last_page?(H(),W(ed,{key:1,href:s(t.current_page+1),class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Next`)),1)]),_:1},8,[`href`])):J(``,!0)])):J(``,!0)],64))}}),M_={class:`space-y-5`},N_={key:0,class:`flex items-center gap-2 text-sm`},P_=[`onUpdate:modelValue`],F_=[`for`],I_={key:0,class:`text-muted`},L_=[`id`,`onUpdate:modelValue`],R_={key:0,value:``},z_=[`value`],B_=[`id`,`onUpdate:modelValue`,`rows`,`maxlength`,`required`],V_={key:3,class:`flex gap-2`},H_=[`id`,`onUpdate:modelValue`],U_=[`onClick`],W_=[`id`,`onUpdate:modelValue`,`type`,`maxlength`,`required`],G_=[`src`],K_={key:2,class:`mt-1 text-xs text-muted`},q_={key:3,class:`m-help`},J_={key:4,class:`m-error`},Y_=L({__name:`FormFields`,props:{fields:{},values:{},errors:{},prefix:{}},setup(e){let t=e,n=dc(()=>t.fields.filter(e=>!(e.advanced&&X.view===`simple`))),r=N(null),i=X.permissions.includes(`media.view`);return(t,a)=>(H(),U(`div`,M_,[(H(!0),U(B,null,R(n.value,t=>(H(),U(`div`,{key:t.key},[t.type===`toggle`?(H(),U(`label`,N_,[I(G(`input`,{"onUpdate:modelValue":n=>e.values[t.key]=n,type:`checkbox`},null,8,P_),[[du,e.values[t.key]]]),q(` `+k(P(Q)(t.label)),1)])):(H(),U(B,{key:1},[G(`label`,{for:`f-`+t.key,class:`m-label`},[q(k(P(Q)(t.label)),1),t.required?(H(),U(`span`,I_,` *`)):J(``,!0)],8,F_),t.type===`select`?I((H(),U(`select`,{key:0,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,class:`m-input`},[t.required?J(``,!0):(H(),U(`option`,R_)),(H(!0),U(B,null,R(t.options,(e,t)=>(H(),U(`option`,{key:t,value:t},k(e),9,z_))),128))],8,L_)),[[mu,e.values[t.key]]]):t.type===`markdown`?(H(),W(nf,{key:1,id:`f-`+t.key,modelValue:e.values[t.key],"onUpdate:modelValue":n=>e.values[t.key]=n,required:t.required,maxlength:t.max??void 0},null,8,[`id`,`modelValue`,`onUpdate:modelValue`,`required`,`maxlength`])):t.type===`textarea`||t.type===`lines`?I((H(),U(`textarea`,{key:2,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,rows:t.type===`lines`?5:4,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,B_)),[[Y,e.values[t.key]]]):t.type===`media`?(H(),U(`div`,V_,[I(G(`input`,{id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,maxlength:`2048`,class:`m-input`},null,8,H_),[[Y,e.values[t.key]]]),P(i)?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:e=>r.value=t.key},k(P(Q)(`Choose`)),9,U_)):J(``,!0)])):I((H(),U(`input`,{key:4,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,type:t.type===`number`?`number`:t.type===`date`?`date`:`text`,maxlength:t.max??void 0,required:t.required,class:`m-input`},null,8,W_)),[[yu,e.values[t.key]]]),t.type===`media`&&e.values[t.key]?(H(),U(`img`,{key:5,src:e.values[t.key],alt:``,class:`mt-2 h-24 w-auto rounded-lg border border-line object-cover`},null,8,G_)):J(``,!0)],64)),t.type===`lines`?(H(),U(`p`,K_,k(P(Q)(`One per line.`)),1)):J(``,!0),t.help?(H(),U(`p`,q_,k(P(Q)(t.help)),1)):J(``,!0),e.errors?.[(e.prefix??``)+t.key]?(H(),U(`p`,J_,k(e.errors[(e.prefix??``)+t.key]),1)):J(``,!0)]))),128)),r.value?(H(),W(Hd,{key:0,onPick:a[0]||=t=>{e.values[r.value]=t,r.value=null},onClose:a[1]||=e=>r.value=null})):J(``,!0)]))}}),X_={class:`mb-6 flex items-center justify-between gap-3`},Z_={class:`font-display text-2xl font-bold`},Q_=[`disabled`],$_=L({__name:`RecordForm`,props:{resource:{},record:{}},setup(e){let t=e,n=`${X.base}/records/${t.resource.key}`,r=qu({...t.record.values});async function i(){(t.record.id===null?await r.send(`post`,n):await r.send(`put`,`${n}/${t.record.id}`))&&(B1(Q(`Saved.`)),U1(n))}return(t,a)=>(H(),U(B,null,[G(`div`,X_,[G(`h1`,Z_,k(e.record.id===null?P(Q)(`New`)+`: `+P(Q)(e.resource.singular):P(Q)(e.resource.singular)),1),K(ed,{href:n,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Back`)),1)]),_:1})]),G(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Tu(i,[`prevent`])},[K(Y_,{fields:e.resource.fields,values:P(r).values,errors:P(r).errors},null,8,[`fields`,`values`,`errors`]),G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(r).busy},k(P(r).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,Q_)],32)],64))}}),e1={class:`mb-6 flex items-center justify-between gap-3`},t1={class:`font-display text-2xl font-bold`},n1={key:0,class:`m-card p-5 text-sm text-muted`},r1={key:1,class:`m-card overflow-x-auto`},i1={class:`w-full text-left text-sm`},a1={class:`border-b border-line text-xs uppercase tracking-wide text-muted`},o1={key:0,class:`px-4 py-3`},s1={class:`divide-y divide-line`},c1={key:0,class:`flex justify-end gap-2 px-4 py-2`},l1=[`onClick`],u1={key:2,class:`mt-4 flex gap-2`},d1=L({__name:`RecordsIndex`,props:{resource:{},rows:{},current_page:{},last_page:{}},setup(e){let t=e,n=`${X.base}/records/${t.resource.key}`,r=e=>t.resource.fields.find(t=>t.key===e)?.label??e;function i(e,n){let r=e.values[n],i=t.resource.fields.find(e=>e.key===n);return i?.type===`toggle`?r?`✓`:``:i?.type===`select`?i.options[r]??r:String(r??``)}async function a(e){window.confirm(Q(`Are you sure?`))&&(await Z.delete(`${n}/${e.id}`),await W1())}return(t,o)=>(H(),U(B,null,[G(`div`,e1,[G(`h1`,t1,k(P(Q)(e.resource.label)),1),e.resource.can_manage?(H(),W(ed,{key:0,href:n+`/create`,class:`m-btn m-btn-primary`},{default:F(()=>[q(k(P(Q)(`Add`)),1)]),_:1},8,[`href`])):J(``,!0)]),e.rows.length?(H(),U(`div`,r1,[G(`table`,i1,[G(`thead`,a1,[G(`tr`,null,[(H(!0),U(B,null,R(e.resource.columns,e=>(H(),U(`th`,{key:e,class:`px-4 py-3 font-semibold`},k(P(Q)(r(e))),1))),128)),e.resource.can_manage?(H(),U(`th`,o1)):J(``,!0)])]),G(`tbody`,s1,[(H(!0),U(B,null,R(e.rows,t=>(H(),U(`tr`,{key:t.id},[(H(!0),U(B,null,R(e.resource.columns,e=>(H(),U(`td`,{key:e,class:`max-w-xs truncate px-4 py-3`},k(i(t,e)),1))),128)),e.resource.can_manage?(H(),U(`td`,c1,[K(ed,{href:`${n}/${t.id}/edit`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Edit`)),1)]),_:1},8,[`href`]),G(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:e=>a(t)},k(P(Q)(`Delete`)),9,l1)])):J(``,!0)]))),128))])])])):(H(),U(`p`,n1,k(P(Q)(`Nothing here yet.`)),1)),e.last_page>1?(H(),U(`nav`,u1,[e.current_page>1?(H(),W(ed,{key:0,href:`${n}?page=${e.current_page-1}`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Previous`)),1)]),_:1},8,[`href`])):J(``,!0),e.current_page<e.last_page?(H(),W(ed,{key:1,href:`${n}?page=${e.current_page+1}`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Next`)),1)]),_:1},8,[`href`])):J(``,!0)])):J(``,!0)],64))}}),f1={class:`mb-6 flex items-center justify-between gap-3`},p1={class:`font-display text-2xl font-bold`},m1={for:`title`,class:`m-label`},h1={key:0,class:`m-error`},g1={for:`meta`,class:`m-label`},_1={key:0,class:`m-error`},v1={for:`body`,class:`m-label`},y1={key:0,class:`m-error`},b1={class:`flex items-center gap-2 text-sm`},x1={class:`flex gap-3`},S1=[`disabled`],C1=L({__name:`PageForm`,props:{page:{}},setup(e){let t=e.page,n=qu({title:t.title,meta_description:t.meta_description??``,...t.defined?{content:{...t.content}}:{body:t.body??``,is_published:t.is_published??!1}});async function r(){await n.send(`put`,`${X.base}/pages/${t.slug}`)&&B1(Q(`Saved.`))}async function i(){window.confirm(Q(`Are you sure?`))&&(await Z.delete(`${X.base}/pages/${t.slug}`),U1(`${X.base}/pages`))}return(e,a)=>(H(),U(B,null,[G(`div`,f1,[G(`h1`,p1,k(P(t).title),1),K(ed,{href:P(X).base+`/pages`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Back`)),1)]),_:1},8,[`href`])]),G(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Tu(r,[`prevent`])},[G(`div`,null,[G(`label`,m1,k(P(Q)(`Title`)),1),I(G(`input`,{id:`title`,"onUpdate:modelValue":a[0]||=e=>P(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.title]]),P(n).errors.title?(H(),U(`p`,h1,k(P(n).errors.title),1)):J(``,!0)]),G(`div`,null,[G(`label`,g1,k(P(Q)(`Description for search engines`)),1),I(G(`input`,{id:`meta`,"onUpdate:modelValue":a[1]||=e=>P(n).values.meta_description=e,maxlength:`255`,class:`m-input`},null,512),[[Y,P(n).values.meta_description]]),P(n).errors.meta_description?(H(),U(`p`,_1,k(P(n).errors.meta_description),1)):J(``,!0)]),P(t).defined?(H(),W(Y_,{key:0,fields:P(t).fields,values:P(n).values.content,errors:P(n).errors,prefix:`content.`},null,8,[`fields`,`values`,`errors`])):(H(),U(B,{key:1},[G(`div`,null,[G(`label`,v1,k(P(Q)(`Text (Markdown)`)),1),K(nf,{id:`body`,modelValue:P(n).values.body,"onUpdate:modelValue":a[2]||=e=>P(n).values.body=e},null,8,[`modelValue`]),P(n).errors.body?(H(),U(`p`,y1,k(P(n).errors.body),1)):J(``,!0)]),G(`label`,b1,[I(G(`input`,{"onUpdate:modelValue":a[3]||=e=>P(n).values.is_published=e,type:`checkbox`},null,512),[[du,P(n).values.is_published]]),q(` `+k(P(Q)(`Publish`)),1)])],64)),G(`div`,x1,[G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(n).busy},k(P(n).busy?P(Q)(`Saving…`):P(Q)(`Save`)),9,S1),P(t).defined?J(``,!0):(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-danger`,onClick:i},k(P(Q)(`Delete`)),1))])],32),P(t).id&&P(X).permissions.includes(`revisions.view`)?(H(),W(yf,{key:0,type:`pages`,id:P(t).id},null,8,[`id`])):J(``,!0)],64))}}),w1={class:`font-display mb-6 text-2xl font-bold`},T1={class:`m-card divide-y divide-line`},E1={class:`min-w-0`},D1={class:`truncate font-semibold`},O1={class:`truncate text-xs text-muted`},k1={class:`flex items-center gap-2`},A1={key:0,class:`m-badge`},j1={key:0,class:`p-4 text-sm text-muted`},M1={for:`new-title`,class:`m-label`},N1={key:0,class:`m-error`},P1={for:`new-slug`,class:`m-label`},F1={key:0,class:`m-error`},I1=[`disabled`],L1=[{pattern:/^\/?$/,component:ud,data:!0},{pattern:/^\/login$/,component:Md,guest:!0},{pattern:/^\/profile$/,component:Bp,data:!0},{pattern:/^\/posts$/,component:ap,data:!0},{pattern:/^\/posts\/create$/,component:Kf,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:Kf,data:!0},{pattern:/^\/media$/,component:kh,data:!0,source:`/media/items`},{pattern:/^\/audit$/,component:Ag,data:!0},{pattern:/^\/statistics$/,component:S_,data:!0},{pattern:/^\/accounts$/,component:ym,data:!0},{pattern:/^\/groups$/,component:Rm,data:!0},{pattern:/^\/labels$/,component:Qm,data:!0},{pattern:/^\/pages$/,component:L({__name:`PagesIndex`,props:{pages:{}},setup(e){let t=qu({slug:``,title:``});async function n(){await t.send(`post`,`${X.base}/pages`)&&U1(`${X.base}/pages/${t.values.slug}`)}return(r,i)=>(H(),U(B,null,[G(`h1`,w1,k(P(Q)(`Pages`)),1),G(`ul`,T1,[(H(!0),U(B,null,R(e.pages,e=>(H(),U(`li`,{key:e.slug,class:`flex items-center justify-between gap-3 p-4`},[G(`div`,E1,[G(`p`,D1,k(e.title),1),G(`p`,O1,`/`+k(e.slug),1)]),G(`div`,k1,[e.defined?J(``,!0):(H(),U(`span`,A1,k(e.is_published?P(Q)(`Published`):P(Q)(`Draft`)),1)),K(ed,{href:`${P(X).base}/pages/${e.slug}`,class:`m-btn m-btn-secondary`},{default:F(()=>[q(k(P(Q)(`Edit`)),1)]),_:1},8,[`href`])])]))),128)),e.pages.length?J(``,!0):(H(),U(`li`,j1,k(P(Q)(`Nothing here yet.`)),1))]),G(`form`,{class:`m-card mt-6 grid max-w-3xl gap-4 p-5 sm:grid-cols-[1fr_1fr_auto] sm:items-end`,onSubmit:Tu(n,[`prevent`])},[G(`div`,null,[G(`label`,M1,k(P(Q)(`Title`)),1),I(G(`input`,{id:`new-title`,"onUpdate:modelValue":i[0]||=e=>P(t).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[Y,P(t).values.title]]),P(t).errors.title?(H(),U(`p`,N1,k(P(t).errors.title),1)):J(``,!0)]),G(`div`,null,[G(`label`,P1,k(P(Q)(`Address (slug)`)),1),I(G(`input`,{id:`new-slug`,"onUpdate:modelValue":i[1]||=e=>P(t).values.slug=e,required:``,maxlength:`120`,class:`m-input`},null,512),[[Y,P(t).values.slug]]),P(t).errors.slug?(H(),U(`p`,F1,k(P(t).errors.slug),1)):J(``,!0)]),G(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:P(t).busy},k(P(Q)(`New page`)),9,I1)],32)],64))}}),data:!0},{pattern:/^\/pages\/[a-z0-9]+(?:-[a-z0-9]+)*$/,component:C1,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*$/,component:d1,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/(create|\d+\/edit)$/,component:$_,data:!0},{pattern:/^\/reviews$/,component:j_,data:!0}];function R1(e,t,n={}){L1.unshift({pattern:new RegExp(e),component:t,data:n.data,source:n.source})}var $=rn({path:``,component:null,props:{},loading:!0,forbidden:!1,tour:X.tutorial,toast:null}),z1;function B1(e,t=!1){$.toast={text:e,error:t},window.clearTimeout(z1),z1=window.setTimeout(()=>$.toast=null,4e3)}function V1(e){return e.split(`?`)[0].slice(X.base.length)||`/`}async function H1(e){let t=L1.find(t=>t.pattern.test(V1(e)));if(!X.user&&!t?.guest)window.location.assign(X.base+`/login`);else{if(X.user&&t?.guest)return U1(X.base,!0);$.loading=!0,$.forbidden=!1,$.path=e,$.component=t?.component??pd,$.props={};try{$.props=t?.data?await Z.get(t.source?X.base+t.source:e):{}}catch(e){e instanceof Uu&&e.status===401?window.location.assign(X.base+`/login`):e instanceof Uu&&e.status===403?$.forbidden=!0:B1(Q(`Something went wrong. Try again.`),!0)}finally{$.loading=!1}}}function U1(e,t=!1){return window.history[t?`replaceState`:`pushState`]({},``,e),window.scrollTo(0,0),H1(e)}function W1(){return H1($.path)}function G1(){window.addEventListener(`popstate`,()=>H1(window.location.pathname+window.location.search)),H1(window.location.pathname+window.location.search)}var K1=[`aria-label`],q1={key:0,class:`absolute inset-0 bg-black/60`},J1=[`aria-label`],Y1={class:`flex items-start gap-3`},X1={class:`m-bob m-glow -ml-1 shrink-0 rounded-full`},Z1={class:`min-w-0 pr-6`,"aria-live":`polite`},Q1={class:`font-display text-lg font-bold leading-snug`},$1={class:`mt-1.5 text-sm leading-relaxed text-muted`},e0={class:`mt-4 flex items-center justify-between gap-2`},t0={class:`flex gap-1`,"aria-hidden":`true`},n0={class:`text-xs text-muted`},r0={class:`mt-4 flex flex-wrap items-center gap-2`},i0=L({__name:`Tutorial`,setup(e){let t=(X.user?.name??``).split(` `)[0],n=e=>X.navigation.some(t=>t.href.endsWith(e)),r=()=>window.matchMedia(`(min-width: 768px)`).matches;function i(e){if(!(e instanceof HTMLElement))return null;let t=e.getBoundingClientRect();return t.width>0&&t.height>0&&t.left>=0&&t.right<=window.innerWidth&&t.top>=0&&t.bottom<=window.innerHeight?e:null}let a=e=>()=>i(document.querySelector(`nav[aria-label="Manager"] a[href$="${e}"]`));function o(){let e=[{id:`welcome`,image:`welcome`,title:Q(`Hi :name! Welcome!`,{name:t}),text:Q(`I will show you around in a few small steps. Looking around cannot break anything, and you can stop whenever you like: press the cross.`)},{id:`menu`,image:`point`,title:Q(`This is the menu`),text:Q(`Everything you can do lives here. Press a name and you are there.`),target:()=>i(r()?document.querySelector(`nav[aria-label="Manager"]`):document.querySelector(`header button`))},{id:`start`,image:`calm`,title:Q(`Your start page`),text:Q(`Lost? Press Dashboard, at the top of the menu, and you are back here. Nice and calm.`),target:a(`/manager`)}];n(`/posts`)&&e.push({id:`posts`,image:`write`,title:Q(`Write news`),text:Q(`Here you write articles and news for your website. Keep it as a draft until you are happy, then put it online.`),target:a(`/posts`)}),n(`/media`)&&e.push({id:`media`,image:`photos`,title:Q(`Your photos`),text:Q(`All photos and files live here. Upload them once and use them in posts and pages.`),target:a(`/media`)}),n(`/pages`)&&e.push({id:`pages`,image:`pages`,title:Q(`Your pages`),text:Q(`Change the texts and photos of the pages of your website here.`),target:a(`/pages`)});for(let[t,n]of(X.tutorial_steps??[]).entries())e.push({id:`module-`+t,image:n.image??`point`,title:Q(n.title),text:Q(n.text),target:n.href?a(n.href):void 0});return X.permissions.includes(`revisions.view`)&&(n(`/posts`)||n(`/pages`))&&e.push({id:`undo`,image:`undo`,title:Q(`Changed your mind?`),text:Q(`Every time you save a post or a page I keep the old version. You can always put an earlier one back.`)}),e.push({id:`oops`,image:`oops`,title:Q(`Something went wrong?`),text:Q(`A message tells you what. Read it, fix it and try again. Nothing is deleted without asking you first.`)}),e.push({id:`profile`,image:`profile`,title:Q(`Your own corner`),text:Q(`Here you choose your language and your colours, and change your password.`),target:()=>i(document.querySelector(`a[href="${X.base}/profile"]`))}),e.push({id:`party`,image:`party`,title:Q(`That is it!`),text:Q(`Want to see this again? Press Show the tour in the menu. Have fun!`)}),e}let s=o(),c=N(0),l=dc(()=>s[c.value]),u=dc(()=>c.value===s.length-1),d=N(null),f=N(null),p=N(null),m=N(null),h=N(!1);async function g(){await ir();let e=l.value.target?.()??null;if(!e){p.value=null,m.value=null,h.value=!1,f.value?.focus();return}let t=e.getBoundingClientRect(),n=d.value?.offsetHeight??320,i=d.value?.offsetWidth??380;if(p.value={top:t.top-6,left:t.left-6,width:t.width+12,height:t.height+12},!r()){m.value=null,h.value=!1,f.value?.focus();return}let a=t.right+28;m.value={left:a+i<window.innerWidth?a:Math.max(16,t.left-i-28),top:Math.min(Math.max(16,t.top+t.height/2-n/2),window.innerHeight-n-16)},h.value=m.value.left<t.left,f.value?.focus()}function _(e){$.tour=!1,X.tutorial=!1,Z.put(X.base+`/profile/tutorial`,{state:e?`done`:`skipped`}).catch(()=>void 0)}function v(e){let t=c.value+e;if(t>=s.length)return _(!0);c.value=Math.max(0,t),g()}function y(e){e.key===`Escape`?_(!1):e.key===`ArrowRight`?v(1):e.key===`ArrowLeft`&&c.value>0&&v(-1)}return ia(()=>{window.addEventListener(`keydown`,y),window.addEventListener(`resize`,g),g()}),sa(()=>{window.removeEventListener(`keydown`,y),window.removeEventListener(`resize`,g)}),(e,t)=>(H(),U(`div`,{class:`fixed inset-0 z-50`,role:`dialog`,"aria-modal":`true`,"aria-label":P(Q)(`Tour`)},[p.value?(H(),U(`div`,{key:1,class:`m-spot pointer-events-none absolute rounded-xl`,style:_e({top:p.value.top+`px`,left:p.value.left+`px`,width:p.value.width+`px`,height:p.value.height+`px`})},null,4)):(H(),U(`div`,q1)),G(`div`,{ref_key:`card`,ref:d,class:O([`m-card absolute w-[min(24rem,calc(100vw-2rem))] p-5 shadow-2xl`,m.value?``:`bottom-4 left-1/2 -translate-x-1/2 md:bottom-auto md:top-1/2 md:-translate-y-1/2`]),style:_e(m.value?{top:m.value.top+`px`,left:m.value.left+`px`}:void 0)},[G(`button`,{type:`button`,class:`absolute right-3 top-3 rounded-lg p-1.5 text-muted hover:bg-text/10 hover:text-text`,"aria-label":P(Q)(`Stop the tour`),onClick:t[0]||=e=>_(!1)},[...t[4]||=[G(`svg`,{class:`h-5 w-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"aria-hidden":`true`},[G(`path`,{d:`M6 6l12 12M18 6L6 18`})],-1)]],8,J1),G(`div`,Y1,[G(`div`,X1,[(H(),W(sp,{key:l.value.image,name:l.value.image,flip:h.value,size:128},null,8,[`name`,`flip`]))]),G(`div`,Z1,[G(`h2`,Q1,k(l.value.title),1),G(`p`,$1,k(l.value.text),1)])]),G(`div`,e0,[G(`span`,t0,[(H(!0),U(B,null,R(P(s),(e,t)=>(H(),U(`span`,{key:t,class:O([`h-1.5 w-1.5 rounded-full`,t===c.value?`bg-brand`:`bg-line`])},null,2))),128))]),G(`span`,n0,k(c.value+1)+` / `+k(P(s).length),1)]),G(`div`,r0,[G(`button`,{type:`button`,class:`text-sm text-muted underline hover:text-text`,onClick:t[1]||=e=>_(!1)},k(P(Q)(`Stop the tour`)),1),t[5]||=G(`span`,{class:`flex-1`},null,-1),c.value>0?(H(),U(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t[2]||=e=>v(-1)},k(P(Q)(`Back`)),1)):J(``,!0),G(`button`,{ref_key:`next`,ref:f,type:`button`,class:`m-btn m-btn-primary`,onClick:t[3]||=e=>v(1)},k(u.value?P(Q)(`Done`):P(Q)(`Next`)),513)])],6)],8,K1))}}),a0={class:`min-h-screen`},o0={class:`fixed inset-x-0 top-0 z-40 flex h-14 items-center justify-between border-b border-line bg-panel px-4 md:hidden`},s0={class:`font-display font-bold`},c0=[`aria-expanded`],l0={class:`hidden h-16 items-center gap-2 px-5 md:flex`},u0=[`src`],d0={class:`font-display text-lg font-bold`},f0={class:`flex-1 space-y-0.5 overflow-y-auto px-3 py-3`,"aria-label":`Manager`},p0={key:0,class:`my-3 border-line`},m0={key:1,class:`px-3 pb-1 pt-4 text-xs font-semibold uppercase tracking-wide text-muted`},h0=[`href`],g0={class:`border-t border-line p-4`},_0={class:`truncate text-sm font-semibold group-hover:text-brand`},v0={class:`truncate text-xs text-muted`},y0={class:`px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8`},b0={class:`mx-auto max-w-5xl`},x0=L({__name:`Layout`,setup(e){let t=N(!1),n=dc(()=>{let e=[];for(let t of[{label:`Dashboard`,href:X.base,icon:`home`},...X.navigation]){let n=t.section??``,r=e[e.length-1];r&&r.title===n?r.items.push(t):e.push({title:n,items:[t]})}return e}),r=N(X.view);async function i(){await Z.put(X.base+`/profile/view`,{view:r.value===`simple`?`full`:`simple`}),window.location.assign(X.base)}function a(e){let t=$.path.split(`?`)[0];return e===X.base?t===e:t===e||t.startsWith(e+`/`)}async function o(){let{redirect:e}=await Z.post(X.base+`/logout`);window.location.assign(e)}return Nr(()=>$.path,()=>t.value=!1),(e,s)=>(H(),U(`div`,a0,[G(`header`,o0,[G(`span`,s0,k(P(X).name),1),G(`button`,{type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":t.value,onClick:s[0]||=e=>t.value=!t.value},k(P(Q)(`Menu`)),9,c0)]),G(`aside`,{class:O([`fixed inset-y-0 left-0 z-30 flex w-60 flex-col border-r border-line bg-panel pt-14 transition-transform md:translate-x-0 md:pt-0`,t.value?`translate-x-0`:`-translate-x-full`])},[G(`div`,l0,[P(X).logo?(H(),U(`img`,{key:0,src:P(X).logo,alt:``,class:`h-7 w-auto`},null,8,u0)):J(``,!0),G(`span`,d0,k(P(X).name),1)]),G(`nav`,f0,[(H(!0),U(B,null,R(n.value,(e,t)=>(H(),U(B,{key:e.title+t},[!e.title&&t>0?(H(),U(`hr`,p0)):J(``,!0),e.title?(H(),U(`p`,m0,k(P(Q)(e.title)),1)):J(``,!0),(H(!0),U(B,null,R(e.items,e=>(H(),U(B,{key:e.href},[e.new_tab?(H(),U(`a`,{key:0,href:e.href,target:`_blank`,rel:`noopener`,class:`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium text-muted transition hover:bg-text/5 hover:text-text`},[K(Qu,{name:e.icon},null,8,[`name`]),q(k(P(Q)(e.label)),1)],8,h0)):(H(),W(ed,{key:1,href:e.href,class:O([`flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition`,a(e.href)?`bg-brand/15 text-text`:`text-muted hover:bg-text/5 hover:text-text`]),"aria-current":a(e.href)?`page`:void 0},{default:F(()=>[K(Qu,{name:e.icon},null,8,[`name`]),q(k(P(Q)(e.label)),1)]),_:2},1032,[`href`,`class`,`aria-current`]))],64))),128))],64))),128))]),G(`div`,g0,[K(ed,{href:P(X).base+`/profile`,class:`group block`},{default:F(()=>[G(`p`,_0,k(P(X).user?.name),1),G(`p`,v0,k(P(X).user?.email),1)]),_:1},8,[`href`]),P(X).tutorial_state?(H(),U(`button`,{key:0,type:`button`,class:`mt-2 block text-xs text-muted underline hover:text-text`,onClick:s[1]||=e=>P($).tour=!0},k(P(Q)(`Show the tour`)),1)):J(``,!0),P(X).can_switch?(H(),U(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:i},k(r.value===`simple`?P(Q)(`Show everything`):P(Q)(`Simple view`)),1)):J(``,!0),G(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:o},k(P(Q)(`Log out`)),1)])],2),t.value?(H(),U(`div`,{key:0,class:`fixed inset-0 z-20 bg-black/60 md:hidden`,onClick:s[2]||=e=>t.value=!1})):J(``,!0),P($).tour?(H(),W(i0,{key:1})):J(``,!0),G(`main`,y0,[G(`div`,b0,[Sa(e.$slots,`default`)])])]))}}),S0={key:0,class:`m-card p-5 text-sm`},C0={key:1,class:`text-sm text-muted`},w0=L({__name:`App`,setup(e){return(e,t)=>(H(),U(B,null,[P($).component&&!P(X).user?(H(),W(_a(P($).component),{key:0})):P($).component?(H(),W(x0,{key:1},{default:F(()=>[P($).forbidden?(H(),U(`p`,S0,k(P(Q)(`You may not open this page.`)),1)):P($).loading?(H(),U(`p`,C0,k(P(Q)(`Loading…`)),1)):(H(),W(_a(P($).component),Se(Ls({key:2},P($).props)),null,16))]),_:1})):J(``,!0),P($).toast?(H(),U(`div`,{key:2,role:`status`,class:O([`fixed bottom-5 right-5 z-50 rounded-lg border border-l-4 border-line bg-panel px-4 py-3 text-sm font-medium text-text shadow-xl`,P($).toast.error?`border-l-red-500`:`border-l-emerald-500`])},k(P($).toast.text),3)):J(``,!0)],64))}});Xu(X.locale),X.view===`simple`&&document.documentElement.classList.add(`is-simple`),window.IriksManager={Vue:Vu,boot:X,api:Z,t:Q,flash:B1,navigate:U1,register:R1,components:{Link:ed,FormFields:Y_,Icon:Qu,MediaPicker:Hd}};async function T0(){for(let e of X.extensions??[])try{await import(e)}catch(t){console.error(`Manager extension ${e} did not load`,t)}Fu(w0).mount(`#manager`),G1()}T0();