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

7 lines
215 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)}`:``),ue=(e,t)=>!Object.is(e,t),de=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},fe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},pe=e=>{let t=parseFloat(e);return isNaN(t)?e:t},me=e=>{let t=y(e)?Number(e):NaN;return isNaN(t)?e:t},he,ge=()=>he||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{},_e=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 ve(e){if(p(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=y(r)?Se(r):ve(r);if(i)for(let e in i)t[e]=i[e]}return t}if(y(e)||x(e))return e}var ye=/;(?![^(]*\))/g,be=/:([^]+)/,xe=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function Se(e){let t={};return e.replace(xe,e=>e.startsWith(`/*`)?``:e).split(ye).forEach(e=>{if(e){let n=e.split(be);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function D(e){let t=``;if(y(e))t=e;else if(p(e))for(let n=0;n<e.length;n++){let r=D(e[n]);r&&(t+=r+` `)}else if(x(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}function Ce(e){if(!e)return null;let{class:t,style:n}=e;return t&&!y(t)&&(e.class=D(t)),n&&(e.style=ve(n)),e}var we=`itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`,Te=n(we);we+``;function Ee(e){return!!e||e===``}function De(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=je(e[i],t[i],n);return r}function Oe(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]&&je(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function ke(e,t,n){let r=m(e),i=m(t);if(r||i||(r=h(e),i=h(t),r||i))return r&&i?Oe(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||!je(e[r],t[r],n))return!1}return Ne(e)===Ne(t)}function Ae(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 je(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?Ae(e,t,n,De):!1:(r=x(e),i=x(t),r||i?!r||!i?!1:Ae(e,t,n,ke):String(e)===String(t))))}function Me(e,t){return e.findIndex(e=>je(e,t))}function Ne(e){return Object.getPrototypeOf(e)===null&&e[Symbol.toPrimitive]==null&&typeof e.toString!=`function`&&typeof e.valueOf!=`function`?C(e):String(e)}var Pe=e=>!!(e&&e.__v_isRef===!0),O=e=>y(e)?e:e==null?``:p(e)||x(e)&&(e.toString===ee||!v(e.toString))?Pe(e)?O(e.value):JSON.stringify(e,Fe,2):String(e),Fe=(e,t)=>Pe(t)?Fe(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ie(t,r)+` =>`]=n,e),{})}:h(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ie(e))}:b(t)?Ie(t):x(t)&&!p(t)&&!w(t)?String(t):t,Ie=(e,t=``)=>b(e)?`Symbol(${e.description??t})`:e;function Le(e){return e==null?`initial`:typeof e==`string`?e===``?` `:e:String(e)}var Re,ze=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&&Re&&(Re.active?(this.parent=Re,this.index=(Re.scopes||(Re.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=Re;try{return Re=this,e()}finally{Re=t}}}on(){++this._on===1&&(this.prevScope=Re,Re=this)}off(){if(this._on>0&&--this._on===0){if(Re===this)Re=this.prevScope;else{let e=Re;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 Be(e){return new ze(e)}function Ve(){return Re}function He(e,t=!1){Re&&(Re.active?Re.cleanups.push(e):e())}var k,Ue=new WeakSet,We=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,Re&&(Re.active?Re.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ue.has(this)&&(Ue.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Je(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lt(this),Ze(this);let e=k,t=at;k=this,at=!0;try{return this.fn()}finally{Qe(this),k=e,at=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)tt(e);this.deps=this.depsTail=void 0,lt(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ue.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){$e(this)&&this.run()}get dirty(){return $e(this)}},Ge=0,Ke,qe;function Je(e,t=!1){e.flags|=8,t?(e.next=qe,qe=e):(e.next=Ke,Ke=e)}function Ye(){Ge++}function Xe(){if(--Ge>0)return;if(qe){let e=qe;for(qe=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Ke;){let t=Ke;for(Ke=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 Ze(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Qe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),tt(r),nt(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function $e(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(et(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function et(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ut)||(e.globalVersion=ut,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!$e(e))))return;e.flags|=2;let t=e.dep,n=k,r=at;k=e,at=!0;try{Ze(e);let n=e.fn(e._value);(t.version===0||ue(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{k=n,at=r,Qe(e),e.flags&=-3}}function tt(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)tt(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nt(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function rt(e,t){e.effect instanceof We&&(e=e.effect.fn);let n=new We(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 it(e){e.effect.stop()}var at=!0,ot=[];function st(){ot.push(at),at=!1}function ct(){let e=ot.pop();at=e===void 0||e}function lt(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=k;k=void 0;try{t()}finally{k=e}}}var ut=0,dt=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}},ft=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(!k||!at||k===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==k)t=this.activeLink=new dt(k,this),k.deps?(t.prevDep=k.depsTail,k.depsTail.nextDep=t,k.depsTail=t):k.deps=k.depsTail=t,pt(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=k.depsTail,t.nextDep=void 0,k.depsTail.nextDep=t,k.depsTail=t,k.deps===t&&(k.deps=e)}return t}trigger(e){this.version++,ut++,this.notify(e)}notify(e){Ye();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Xe()}}};function pt(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)pt(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var mt=new WeakMap,ht=Symbol(``),gt=Symbol(``),_t=Symbol(``);function vt(e,t,n){if(at&&k){let t=mt.get(e);t||mt.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new ft),r.map=t,r.key=n),r.track()}}function yt(e,t,n,r,i,a){let o=mt.get(e);if(!o){ut++;return}let s=e=>{e&&e.trigger()};if(Ye(),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===_t||!b(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(_t)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(ht)),m(e)&&s(o.get(gt)));break;case`delete`:i||(s(o.get(ht)),m(e)&&s(o.get(gt)));break;case`set`:m(e)&&s(o.get(ht))}}Xe()}function bt(e,t){let n=mt.get(e);return n&&n.get(t)}function xt(e){let t=A(e);return t===e||(vt(t,`iterate`,_t),fn(e))?t:dn(e)?un(e)?t.map(e=>gn(hn(e))):t.map(gn):t.map(hn)}function St(e){return vt(e=A(e),`iterate`,_t),e}var Ct=e=>gn(hn(e));function wt(e){return dn(e)?un(e)?Ct:gn:hn}var Tt={__proto__:null,[Symbol.iterator](){return Et(this,Symbol.iterator,wt(this))},concat(...e){return xt(this).concat(...e.map(e=>p(e)?xt(e):e))},entries(){let e=wt(this);return Et(this,`entries`,t=>(t[1]=e(t[1]),t))},every(e,t){return kt(this,`every`,e,t,void 0,arguments)},filter(e,t){return kt(this,`filter`,e,t,e=>e.map(wt(this)),arguments)},find(e,t){return kt(this,`find`,e,t,e=>wt(this)(e),arguments)},findIndex(e,t){return kt(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return kt(this,`findLast`,e,t,e=>wt(this)(e),arguments)},findLastIndex(e,t){return kt(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return kt(this,`forEach`,e,t,void 0,arguments)},includes(...e){return jt(this,`includes`,e)},indexOf(...e){return jt(this,`indexOf`,e)},join(e){return xt(this).join(e)},lastIndexOf(...e){return jt(this,`lastIndexOf`,e)},map(e,t){return kt(this,`map`,e,t,void 0,arguments)},pop(){return Mt(this,`pop`)},push(...e){return Mt(this,`push`,e)},reduce(e,...t){return At(this,`reduce`,e,t)},reduceRight(e,...t){return At(this,`reduceRight`,e,t)},shift(){return Mt(this,`shift`)},some(e,t){return kt(this,`some`,e,t,void 0,arguments)},splice(...e){return Mt(this,`splice`,e)},toReversed(){return xt(this).toReversed()},toSorted(e){return xt(this).toSorted(e)},toSpliced(...e){return xt(this).toSpliced(...e)},unshift(...e){return Mt(this,`unshift`,e)},values(){return Et(this,`values`,wt(this))}};function Et(e,t,n){let r=St(e),i=r[t],a=i.call(r);if(r!==e&&!fn(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>Dt(a.next(),n),i!==Ot[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=()=>Dt(a._next(),n)}return a}function Dt(e,t){return e.done||(e.value=t(e.value)),e}var Ot=Array.prototype;function kt(e,t,n,r,i,a){let o=St(e),s=o!==e&&!fn(e),c=o[t];if(c!==Ot[t]){let t=c.apply(e,a);return s?hn(t):t}let l=n;if(o!==e){if(s){let t=wt(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 At(e,t,n,r){let i=St(e),a=i!==e&&!fn(e),o=n,s=!1;if(i!==e){if(a){let t=wt(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?wt(e)(c):c}function jt(e,t,n){let r=A(e);vt(r,`iterate`,_t);let i=r[t](...n);return(i===-1||i===!1)&&pn(n[0])?(n[0]=A(n[0]),r[t](...n)):i}function Mt(e,t,n=[]){st(),Ye();let r=A(e)[t].apply(e,n);return Xe(),ct(),r}var Nt=n(`__proto__,__v_isRef,__isVue`),Pt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(b));function Ft(e){b(e)||(e=String(e));let t=A(this);return vt(t,`has`,e),t.hasOwnProperty(e)}var It=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?nn:tn:i?en:$t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=p(e);if(!r){let e;if(a&&(e=Tt[t]))return e;if(t===`hasOwnProperty`)return Ft}let o=Reflect.get(e,t,j(e)?e:n);if((b(t)?Pt.has(t):Nt(t))||(r||vt(e,`get`,t),i))return o;if(j(o)){let e=a&&T(t)?o:o.value;return r&&x(e)?sn(e):e}return x(o)?r?sn(o):an(o):o}},Lt=class extends It{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=dn(i);if(!fn(n)&&!dn(n)&&(i=A(i),n=A(n)),!a&&j(i)&&!j(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:f(e,t),s=Reflect.set(e,t,n,j(e)?e:r);return e===A(r)&&s&&(o?ue(n,i)&&yt(e,`set`,t,n,i):yt(e,`add`,t,n)),s}deleteProperty(e,t){let n=f(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&yt(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return b(t)&&Pt.has(t)||vt(e,`has`,t),n}ownKeys(e){return vt(e,`iterate`,p(e)?`length`:ht),Reflect.ownKeys(e)}},Rt=class extends It{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},zt=new Lt,Bt=new Rt,Vt=new Lt(!0),Ht=new Rt(!0),Ut=e=>e,Wt=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n){return function(...r){let i=this.__v_raw,a=A(i),o=m(a),s=e===`entries`||e===Symbol.iterator&&o,c=e===`keys`&&o,u=i[e](...r),d=n?Ut:t?gn:hn;return!t&&vt(a,`iterate`,c?gt:ht),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 Kt(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function qt(e,t){let n={get(n){let r=this.__v_raw,i=A(r),a=A(n);e||(ue(n,a)&&vt(i,`get`,n),vt(i,`get`,a));let{has:o}=Wt(i),s=t?Ut:e?gn:hn;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&&vt(A(t),`iterate`,ht),t.size},has(t){let n=this.__v_raw,r=A(n),i=A(t);return e||(ue(t,i)&&vt(r,`has`,t),vt(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=A(a),s=t?Ut:e?gn:hn;return!e&&vt(o,`iterate`,ht),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return l(n,e?{add:Kt(`add`),set:Kt(`set`),delete:Kt(`delete`),clear:Kt(`clear`)}:{add(e){let n=A(this),r=Wt(n),i=A(e),a=!t&&!fn(e)&&!dn(e)?i:e;return r.has.call(n,a)||ue(e,a)&&r.has.call(n,e)||ue(i,a)&&r.has.call(n,i)||(n.add(a),yt(n,`add`,a,a)),this},set(e,n){t||fn(n)||dn(n)||(n=A(n));let r=A(this),{has:i,get:a}=Wt(r),o=i.call(r,e);o||=(e=A(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?ue(n,s)&&yt(r,`set`,e,n,s):yt(r,`add`,e,n),this},delete(e){let t=A(this),{has:n,get:r}=Wt(t),i=n.call(t,e);i||=(e=A(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&yt(t,`delete`,e,void 0,a),o},clear(){let e=A(this),t=e.size!==0,n=e.clear();return t&&yt(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=Gt(r,e,t)}),n}function Jt(e,t){let n=qt(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 Yt={get:Jt(!1,!1)},Xt={get:Jt(!1,!0)},Zt={get:Jt(!0,!1)},Qt={get:Jt(!0,!0)},$t=new WeakMap,en=new WeakMap,tn=new WeakMap,nn=new WeakMap;function rn(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function an(e){return dn(e)?e:ln(e,!1,zt,Yt,$t)}function on(e){return ln(e,!1,Vt,Xt,en)}function sn(e){return ln(e,!0,Bt,Zt,tn)}function cn(e){return ln(e,!0,Ht,Qt,nn)}function ln(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=rn(te(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function un(e){return dn(e)?un(e.__v_raw):!!(e&&e.__v_isReactive)}function dn(e){return!!(e&&e.__v_isReadonly)}function fn(e){return!!(e&&e.__v_isShallow)}function pn(e){return e?!!e.__v_raw:!1}function A(e){let t=e&&e.__v_raw;return t?A(t):e}function mn(e){return!f(e,`__v_skip`)&&Object.isExtensible(e)&&fe(e,`__v_skip`,!0),e}var hn=e=>x(e)?an(e):e,gn=e=>x(e)?sn(e):e;function j(e){return e?e.__v_isRef===!0:!1}function M(e){return vn(e,!1)}function _n(e){return vn(e,!0)}function vn(e,t){return j(e)?e:new yn(e,t)}var yn=class{constructor(e,t){this.dep=new ft,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:A(e),this._value=t?e:hn(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||fn(e)||dn(e);e=n?e:A(e),ue(e,t)&&(this._rawValue=e,this._value=n?e:hn(e),this.dep.trigger())}};function bn(e){e.dep&&e.dep.trigger()}function N(e){return j(e)?e.value:e}function xn(e){return v(e)?e():N(e)}var Sn={get:(e,t,n)=>t===`__v_raw`?e:N(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return j(i)&&!j(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Cn(e){return un(e)?e:new Proxy(e,Sn)}var wn=class{constructor(e){this.__v_isRef=!0,this._value=void 0;let t=this.dep=new ft,{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 Tn(e){return new wn(e)}function En(e){let t=p(e)?Array(e.length):{};for(let n in e)t[n]=An(e,n);return t}var Dn=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=A(e);let r=!0,i=e;if(!p(e)||b(this._key)||!T(this._key))do r=!pn(i)||fn(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let e=this._object[this._key];return this._shallow&&(e=N(e)),this._value=e===void 0?this._defaultValue:e}set value(e){if(this._shallow&&j(this._raw[this._key])){let t=this._object[this._key];if(j(t)){t.value=e;return}}this._object[this._key]=e}get dep(){return bt(this._raw,this._key)}},On=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 kn(e,t,n){return j(e)?e:v(e)?new On(e):x(e)&&arguments.length>1?An(e,t,n):M(e)}function An(e,t,n){return new Dn(e,t,n)}var jn=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new ft(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ut-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&k!==this)return Je(this,!0),!0}get value(){let e=this.dep.track();return et(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Mn(e,t,n=!1){let r,i;return v(e)?r=e:(r=e.get,i=e.set),new jn(r,i,n)}var Nn={GET:`get`,HAS:`has`,ITERATE:`iterate`},Pn={SET:`set`,ADD:`add`,DELETE:`delete`,CLEAR:`clear`},Fn={},In=new WeakMap,Ln=void 0;function Rn(){return Ln}function zn(e,t=!1,n=Ln){if(n){let t=In.get(n);t||In.set(n,t=[]),t.push(e)}}function Bn(e,t,n=r){let{immediate:i,deep:o,once:s,scheduler:c,augmentJob:l,call:d,onStop:f}=n,m=e=>o?e:fn(e)||o===!1||o===0?Vn(e,1):Vn(e),h,g,_,y,b=!1,x=!1;if(j(e)?(g=()=>e.value,b=fn(e)):un(e)?(g=()=>m(e),b=!0):p(e)?(x=!0,b=e.some(e=>un(e)||fn(e)),g=()=>e.map(e=>{if(j(e))return e.value;if(un(e))return m(e);if(v(e))return d?d(e,2):e()})):g=v(e)?t?d?()=>d(e,2):e:()=>{if(_){st();try{_()}finally{ct()}}let t=Ln;Ln=h;try{return d?d(e,3,[y]):e(y)}finally{Ln=t}}:a,t&&o){let e=g,t=o===!0?1/0:o;g=()=>Vn(e(),x?t+1:t)}let S=Ve(),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(Fn):Fn,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)=>ue(e,te[t])):ue(n,te))){let e=Ln;st();try{_&&_(),Ln=h;let e=[n,te===Fn?void 0:x&&te[0]===Fn?[]:te,y];te=n,d?d(t,3,e):t(...e)}finally{Ln=e,ct()}}}else h.run()}};return l&&l(w),h=new We(g),h.scheduler=c?()=>c(w,!1):w,y=e=>zn(e,!1,h),_=h.onStop=()=>{let e=In.get(h);if(e){if(d)d(e,4);else for(let t of e)t();In.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 Vn(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--,j(e))Vn(e.value,t,n);else if(p(e)){if(un(e)&&!dn(e)&&!fn(e)){let r=A(e);vt(r,`iterate`,_t);for(let e=0;e<r.length;e++){let i=r[e];Vn(j(i)?i:hn(i),t,n)}}else for(let r=0;r<e.length;r++)Vn(e[r],t,n)}else if(h(e)||m(e))e.forEach(e=>{Vn(e,t,n)});else if(w(e)){for(let r in e)Vn(e[r],t,n);let r=A(e);for(let i of Object.getOwnPropertySymbols(r))Object.prototype.propertyIsEnumerable.call(r,i)&&Vn(e[i],t,n)}return e}var Hn=[];function Un(e){Hn.push(e)}function Wn(){Hn.pop()}function Gn(e,t){}var Kn={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`},qn={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 Jn(e,t,n,r){try{return r?e(...r):e()}catch(e){Xn(e,t,n)}}function Yn(e,t,n,r){if(v(e)){let i=Jn(e,t,n,r);return i&&S(i)&&i.catch(e=>{Xn(e,t,n,void 0,!0)}),i}if(p(e)){let i=[];for(let a=0;a<e.length;a++)i.push(Yn(e[a],t,n,r));return i}}function Xn(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){st(),Jn(s,null,10,[e,i,o]),ct();return}}Zn(e,n,o,i,c)}function Zn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var Qn=[],$n=-1,er=[],tr=null,nr=0,rr=Promise.resolve(),ir=null;function ar(e){let t=ir||rr;return e?t.then(this?e.bind(this):e):t}function or(e){let t=$n+1,n=Qn.length;for(;t<n;){let r=t+n>>>1,i=Qn[r],a=mr(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function sr(e){if(!(e.flags&1)){let t=mr(e),n=Qn[Qn.length-1];!n||!(e.flags&2)&&t>=mr(n)?Qn.push(e):Qn.splice(or(t),0,e),e.flags|=1,cr()}}function cr(){ir||=rr.then(hr)}function lr(e){if(!p(e))tr&&e.id===-1?tr.splice(nr+1,0,e):e.flags&1||(er.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)er.push(e[t]);cr()}function ur(e,t,n,r=$n+1){for(;r<Qn.length;r++){let n=Qn[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;Qn.splice(r,1),r=e?r-1:$n,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function dr(e,t,n=0){if(er.length){let e=er,r=0;if(t){e=[];for(let i=0;i<er.length;i++){let a=er[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?er[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>mr(e)-mr(t));if(er.length=r,tr){for(let e=0;e<i.length;e++)tr.push(i[e]);return}for(tr=i,nr=0;nr<tr.length;nr++){let e=tr[nr];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}tr=null,nr=0}}var fr=!1;function pr(e,t){if(fr){e();return}let n=t===void 0?void 0:new Set(er);e(),fr=!0;try{ur(void 0,t),dr(void 0,n,t)}finally{fr=!1}}var mr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function hr(e){try{for($n=0;$n<Qn.length;$n++){let e=Qn[$n];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),Jn(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;$n<Qn.length;$n++){let e=Qn[$n];e&&(e.flags&=-2)}$n=-1,Qn.length=0,dr(e),ir=null,(Qn.length||er.length)&&hr(e)}}var gr,_r=[];function vr(e,t){gr=e,gr?(gr.enabled=!0,_r.forEach(({event:e,args:t})=>gr.emit(e,...t)),_r=[]):typeof window<`u`&&window.HTMLElement&&!(window.navigator?.userAgent)?.includes(`jsdom`)?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(e=>{vr(e,t)}),setTimeout(()=>{gr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,_r=[])},3e3)):_r=[]}var yr=null,br=null;function xr(e){let t=yr;return yr=e,br=e&&e.type.__scopeId||null,t}function Sr(e){br=e}function Cr(){br=null}var wr=e=>P;function P(e,t=yr,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ws(-1);let i=xr(t),a=bs.length,o;try{o=e(...n)}finally{for(let e=bs.length;e>a;e--)Ss();xr(i),r._d&&ws(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function F(e,t){if(yr===null)return e;let n=lc(yr),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&&Vn(o),i.push({dir:a,instance:n,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Tr(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&&(st(),Yn(u,n,8,[e.el,c,i,t]),ct())}}function Er(e,t){if(Ws){let n=Ws.provides,r=Ws.parent&&Ws.parent.provides;r===n&&(n=Ws.provides=Object.create(r)),n[e]=t}}function Dr(e,t,n=!1){let r=Gs();if(r||uo){let i=uo?uo._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 Or(){return!!(Gs()||uo)}var kr=Symbol.for(`v-scx`),Ar=()=>Dr(kr);function jr(e,t){return Fr(e,null,t)}function Mr(e,t){return Fr(e,null,{flush:`post`})}function Nr(e,t){return Fr(e,null,{flush:`sync`})}function Pr(e,t,n){return Fr(e,t,n)}function Fr(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(Zs){if(s===`sync`){let e=Ar();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=a,e.resume=a,e.pause=a,e}}let p=Ws,m;if(p&&Ve()!==p.scope){if(p.scope.active){let e=p.scope.run(()=>new ze);e.run(()=>He(()=>Promise.resolve().then(()=>{p=null,m&&(m.i=null)}))),u.onStop=()=>e.stop()}else p=null}u.call=(e,t,n)=>Yn(e,p,t,n);let h=!1;s===`post`?u.scheduler=e=>{e.i=p,R(e,p&&p.suspense)}:s!==`sync`&&(h=!0,u.scheduler=(e,t)=>{t?e():sr(e)}),u.augmentJob=e=>{m=e,t&&(e.flags|=4),h&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let g=Bn(e,t,u);return Zs&&(f?f.push(g):d&&g()),g}function Ir(e,t,n){let r=this.proxy,i=y(e)?e.includes(`.`)?Lr(r,e):()=>r[e]:e.bind(r,r),a;v(t)?a=t:(a=t.handler,n=t);let o=Js(this),s=Fr(i,a.bind(r),n);return o(),s}function Lr(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 Rr=new WeakMap,zr=Symbol(`_vte`),Br=e=>e.__isTeleport,Vr=e=>e&&(e.disabled||e.disabled===``),Hr=e=>e&&(e.defer||e.defer===``),Ur=e=>typeof SVGElement<`u`&&e instanceof SVGElement,Wr=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Gr=(e,t)=>{let n=e&&e.to;return y(n)?t?t(n):null:n},Kr={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=Vr(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=Vr(e.props),r=e.target=Gr(e.props,m),a=Zr(r,e,h,p);r&&(o!==`svg`&&Ur(r)?o=`svg`:o!==`mathml`&&Wr(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),Xr(e,!1)))},S=e=>{let t=()=>{if(Rr.get(e)===t){if(Rr.delete(e),Vr(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),Xr(e,!0)}x(e)}};Rr.set(e,t),R(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Hr(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),Xr(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Rr.get(e);if(u){u.flags|=8,Rr.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Vr(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Ur(p)?o=`svg`:(o===`mathml`||Wr(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Xo(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):qr(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Gr(t.props,m);e&&(t.target=e,qr(t,e,null,l,0))}else g&&qr(t,p,h,l,1);Xr(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=Vr(f),m=a||!p,h=Rr.get(e);if(h&&(h.flags|=8,Rr.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:qr,hydrate:Jr};function qr(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),!Rr.has(e)&&(!d||Vr(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Jr(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=Gr(t.props,c),h=Vr(t.props);if(m){let c=m._lpa||m.firstChild;if(t.shapeFlag&16){if(h)f(m,c),p(e,t),t.targetAnchor||Zr(m,t,u,l,s(e)===m?e:null);else{t.anchor=o(e),f(m,c);let s=!!t.targetAnchor;s||Zr(m,t,u,l),d(s?c&&o(c):null,t,m,n,r,i,a,t.targetAnchor)}}Xr(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Yr=Kr;function Xr(e,t){let n=e.ctx;n&&n.ut&&(t?n.ut(e.el,e.anchor):n.ut(e.targetStart,e.targetAnchor))}function Zr(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[zr]=o,e&&(r(a,e,i),r(o,e,i)),o}var Qr=Symbol(`_leaveCb`),$r=Symbol(`_enterCb`);function ei(){let e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return aa(()=>{e.isMounted=!0}),ca(()=>{e.isUnmounting=!0}),e}var ti=[Function,Array],ni={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ti,onEnter:ti,onAfterEnter:ti,onEnterCancelled:ti,onBeforeLeave:ti,onLeave:ti,onAfterLeave:ti,onLeaveCancelled:ti,onBeforeAppear:ti,onAppear:ti,onAfterAppear:ti,onAppearCancelled:ti},ri={name:`BaseTransition`,props:ni,setup(e,{slots:t}){let n=Gs(),r=ei();return()=>{let i=t.default&&di(t.default(),!0),a=i&&i.length?ii(i):n.subTree?q():void 0;if(!a)return;let o=A(e),{mode:s}=o;if(r.isLeaving)return ci(a);let c=li(a);if(!c)return ci(a);let l=si(c,o,r,n);c.type!==B&&ui(c,l);let u=n.subTree&&li(n.subTree);if(u&&u.type!==B&&!Ds(u,c)&&fi(n.subTree)){let e=si(u,o,r,n);if(ui(u,e),s===`out-in`&&c.type!==B)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,sr(e)}else n.update()}delete e.afterLeave,u=void 0},ci(a);s===`in-out`&&c.type!==B?e.delayLeave=(t,n,i)=>{let a=oi(r,u);a[String(u.key)]=u,t[Qr]=()=>{n(),t[Qr]=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 ii(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==B){t=n;break}}return t}var ai=ri;function oi(e,t){let{leavingVNodes:n}=e,r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function si(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=oi(n,e),S=(e,t)=>{e&&Yn(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[Qr]&&t[Qr](!0);let a=x[b];if(a&&Ds(e,a)){let e=a.el[Qr];if(!e){let t=fi(a);e=t&&t.el[Qr]}e&&e()}S(r,[t])},enter(e){if(e[Qr]){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[$r]=t=>{o||(o=!0,S(t?a:r,[e]),C.delayedLeave&&C.delayedLeave(),e[$r]=void 0)};let s=e[$r].bind(null,!1);t?ee(t,[e,s]):s()},leave(t,r){let i=String(e.key);if(t[$r]&&t[$r](!0),n.isUnmounting)return r();S(d,[t]);let a=!1;t[Qr]=n=>{a||(a=!0,r(),S(n?h:m,[t]),t[Qr]=void 0,x[i]===e&&delete x[i])};let o=t[Qr].bind(null,!1);x[i]=e,f?ee(f,[t,o]):o()},clone(e){let i=si(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 ci(e){if(qi(e))return e=Ns(e),e.children=null,e}function li(e){if(!qi(e))return Br(e.type)&&e.children?ii(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 ui(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;ui(Br(n.type)&&li(n)||n,t)}else if(e.shapeFlag&128){let n=e.suspense;if(n){let e=n.isHydrating?n.pendingBranch:n.activeBranch;e&&ui(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===z&&p(e.children)){let n=yo(e.children,!1);n&&ui(n,t)}}function di(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===z?(o.patchFlag&128&&i++,r=r.concat(di(o.children,t,s))):(t||o.type!==B)&&r.push(s==null?o:Ns(o,{key:s}))}if(i>1)for(let e=0;e<r.length;e++)r[e].patchFlag=-2;return r}function fi(e){if(e.component)return fi(e.component.subTree);if(e.type===z){let t=p(e.children)&&yo(e.children,!1);return t?fi(t):void 0}if(e.type!==B)return e}function I(e,t){return v(e)?l({name:e.name},t,{setup:e}):e}function pi(){let e=Gs();return e?(e.appContext.config.idPrefix||`v`)+`-`+e.ids[0]+e.ids[1]++:``}function mi(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function hi(e){let t=Gs(),n=_n(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 gi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var _i=new WeakMap;function vi(e,t,n,i,a=!1){if(p(e)){e.forEach((e,r)=>vi(e,t&&(p(t)?t[r]:t),n,i,a));return}if(Wi(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&vi(e,t,n,i.component.subTree);return}let s=i.shapeFlag&4?lc(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,_=A(g),b=g===r?o:e=>!gi(h,e)&&f(_,e),x=(e,t)=>!(t&&gi(h,t));if(m!=null&&m!==d){if(yi(t),y(m))h[m]=null,b(m)&&(g[m]=null);else if(j(m)){let e=t;x(m,e.k)&&(m.value=null),e.k&&(h[e.k]=null)}}if(v(d))Jn(d,l,12,[c,h]);else{let t=y(d),r=j(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(),_i.delete(e)};t.id=-1,_i.set(e,t),R(t,n)}else yi(e),i()}}}function yi(e){let t=_i.get(e);t&&(t.flags|=8,_i.delete(e))}var bi=!1,xi=()=>{bi||=(console.error(`Hydration completed but contains mismatches.`),!0)},Si=e=>e.namespaceURI.includes(`svg`)&&e.tagName!==`foreignObject`,Ci=e=>e.namespaceURI.includes(`MathML`),wi=e=>{if(e.nodeType===1){if(Si(e))return`svg`;if(Ci(e))return`mathml`}},Ti=e=>e.nodeType===8;function Ei(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),dr(),t._vnode=e):(n(null,e,t),dr(),t._vnode=e)},f=(n,r,s,c,u,d=!1)=>{d||=!!r.dynamicChildren;let b=Ti(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 vs:w===3?(n.data!==r.children&&(xi(),n.data=r.children),T=a(n)):r.children===``?(l(r.el=i(``),o(n),n),T=n):T=x();break;case B:y(n)?(T=a(n),v(r.el=n.content.firstChild,n,s)):T=w!==8||b?x():a(n);break;case ys: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 z: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):Ti(n)&&n.data===`teleport start`?_(n,n.data,`teleport end`):a(n),t(r,e,null,s,c,wi(e),d),(Wi(r)||r.component.asyncDep)&&!r.component.subTree){let t;b?(t=G(ys),t.anchor=T?T.previousSibling:e.lastChild):t=n.nodeType===3?K(``):G(n.nodeType===8?B:`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,wi(o(n)),u,d,e,f))}return ee!=null&&vi(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&&Tr(t,null,n,`created`);let l=!1;if(y(e)){l=Yo(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&&!ji(e,1)&&xi();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,`
`)&&(ji(e,0)||xi(),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(Oi(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&&un(d.style))for(let e in d.style)d.style[e]}let x;(x=d&&d.onVnodeBeforeMount)&&zs(x,n,t),h&&Tr(t,null,n,`beforeMount`),((x=d&&d.onVnodeMounted)||h||l)&&hs(()=>{x&&zs(x,n,t),l&&g.enter(e),h&&Tr(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===z,g=!1;for(let t=0;t<m;t++){let _=u?p[t]:p[t]=Fs(p[t]),v=_.type===vs;h&&e&&Ti(e)&&e.data===`]`&&(d=e),e&&e!==d?(v&&!u&&t+1<m&&Fs(p[t+1]).type===vs&&(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,ji(r,1)||xi()),n(null,_,r,d,o,s,wi(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&&Ti(f)&&f.data===`]`?a(t.anchor=f):(xi(),l(t.anchor=u(`]`),d,f),f)},g=(e,t,r,i,s,l)=>{if(Ni(e,t)||xi(),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,wi(d),s),r&&r.vnode.el===e&&(r.vnode.el=t.el,To(r,t.el)),u},_=(e,t=`[`,n=`]`)=>{let r=0;for(;e;)if(e=a(e),e&&Ti(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 Di=new Set([`src`,`srcset`,`href`,`poster`]);function Oi(e,t,n){return Di.has(t)?e.getAttribute(t)===(n==null?null:`${n}`):!1}var ki=`data-allow-mismatch`,Ai={0:`text`,1:`children`,2:`class`,3:`style`,4:`attribute`};function ji(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(ki);)e=e.parentElement;return Mi(e&&e.getAttribute(ki),t)}function Mi(e,t){if(e==null)return!1;if(e===``)return!0;{let n=e.split(`,`);return t===0&&n.includes(`children`)?!0:n.includes(Ai[t])}}function Ni(e,t){return ji(e.parentElement,1)||Pi(e)||Fi(t)}function Pi(e){return e.nodeType===1&&Mi(e.getAttribute(ki),1)}function Fi({props:e}){let t=e&&e[ki];return typeof t==`string`&&Mi(t,1)}var Ii=ge().requestIdleCallback||(e=>setTimeout(e,1)),Li=ge().cancelIdleCallback||(e=>clearTimeout(e)),Ri=(e=1e4)=>t=>{let n=Ii(t,{timeout:e});return()=>Li(n)};function zi(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 Bi=e=>(t,n)=>{let r=new IntersectionObserver(e=>{for(let n of e)if(n.isIntersecting){r.disconnect(),t();break}},e),i=e=>{if(zi(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()},Vi=e=>t=>{if(e){let n=matchMedia(e);if(n.matches)t();else return n.addEventListener(`change`,t,{once:!0}),()=>n.removeEventListener(`change`,t)}},Hi=(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 Ui(e,t){if(Ti(e)&&e.data===`[`){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ti(r)){if(r.data===`]`){if(--n===0)break}else r.data===`[`&&n++}r=r.nextSibling}}else t(e)}var Wi=e=>!!e.type.__asyncLoader;function Gi(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 I({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=>Ui(e,t));n&&(t.bum||=[]).push(n)}:o;u?s():p().then(()=>!t.isUnmounted&&s())},get __asyncResolved(){return u},setup(){let e=Ws;if(mi(e),u)return()=>Ki(u,e);let t=t=>{l=null,Xn(t,e,13,!r,!0)};if(s&&e.suspense||Zs)return p().then(t=>()=>Ki(t,e)).catch(e=>(t(e),()=>r?G(r,{error:e}):null));let a=M(!1),c=M(),d=M(!!i),f,m;return He(()=>{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&&qi(e.parent.vnode)&&e.parent.update())}).catch(n=>{e.isUnmounted?l=null:(t(n),c.value=n)}),()=>{if(a.value&&u)return Ki(u,e);if(c.value&&r)return G(r,{error:c.value});if(n&&!d.value)return Ki(n,e)}}})}function Ki(e,t){let{ref:n,props:r,children:i,ce:a}=t.vnode,o=G(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}var qi=e=>e.type.__isKeepAlive,Ji={name:`KeepAlive`,__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){let n=Gs(),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),R(()=>{a.isDeactivated=!1,a.a&&de(a.a);let t=e.props&&e.props.onVnodeMounted;t&&zs(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 $o(n.m),$o(n.a),l(e,f,null,1,s),R(()=>{n.da&&de(n.da);let t=e.props&&e.props.onVnodeUnmounted;t&&zs(t,n.parent,e),n.isDeactivated=!0},s),!0};function p(e){ea(e),u(e,n,s,!0)}function m(e){i.forEach((t,n)=>{let r=uc(Wi(t)?t.type.__asyncResolved||{}:t.type);r&&!e(r)&&h(n)})}function h(e){let t=i.get(e);t&&(!o||!Ds(t,o))?p(t):o&&(o.key==null?o.type:o.key)===e&&(ea(o),t&&ea(t)),i.delete(e),a.delete(e)}Pr(()=>[e.include,e.exclude],([e,t])=>{e&&m(t=>Yi(e,t)),t&&m(e=>!Yi(t,e))},{flush:`post`,deep:!0});let g=null,_=()=>{if(g!=null){if(ts(n.subTree.type)){let e=()=>{let e=ta(n.subTree);e.component&&i.set(g,e)};n.subTree.suspense.pendingBranch?R(e,n.subTree.suspense):e()}else i.set(g,ta(n.subTree))}};return aa(_),sa(_),ca(()=>{i.forEach(e=>{let{subTree:t,suspense:r}=n,i=ta(t);if(e.type===i.type&&e.key===i.key){ea(i);let e=i.component.da;e&&R(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(!Es(r)||!(r.shapeFlag&4)&&!(r.shapeFlag&128))return o=null,r;let s=ta(r);if(s.type===B)return o=null,s;let c=s.type,l=uc(Wi(s)?s.type.__asyncResolved||{}:c),{include:u,exclude:d,max:f}=e;if(u&&(!l||!Yi(u,l))||d&&l&&Yi(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=Ns(s),r.shapeFlag&128&&(r.ssContent=s)),g=p,m?(s.el=m.el,s.component=m.component,s.transition&&ui(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,ts(r.type)?r:s}}};function Yi(e,t){return p(e)?e.some(e=>Yi(e,t)):y(e)?e.split(`,`).includes(t):_(e)?(e.lastIndex=0,e.test(t)):!1}function Xi(e,t){Qi(e,`a`,t)}function Zi(e,t){Qi(e,`da`,t)}function Qi(e,t,n=Ws){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(na(t,r,n),n){let e=n.parent;for(;e&&e.parent;)qi(e.parent.vnode)&&$i(r,t,n,e),e=e.parent}}function $i(e,t,n,r){let i=na(t,e,r,!0),a=na(`um`,()=>u(r[t],i),n);a.flags=16}function ea(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ta(e){return e.shapeFlag&128?e.ssContent:e}function na(e,t,n=Ws,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{st();let i=Js(n),a=Yn(t,n,e,r);return i(),ct(),a};return r?i.unshift(a):i.push(a),a}}var ra=e=>(t,n=Ws)=>{Zs&&e!==`sp`||na(e,(...e)=>t(...e),n)},ia=ra(`bm`),aa=ra(`m`),oa=ra(`bu`),sa=ra(`u`),ca=ra(`bum`),la=ra(`um`),ua=ra(`sp`),da=ra(`rtg`),fa=ra(`rtc`);function pa(e,t=Ws){na(`ec`,e,t)}var ma=`components`,ha=`directives`;function ga(e,t){return ba(ma,e,!0,t)||e}var _a=Symbol.for(`v-ndc`);function va(e){return y(e)?ba(ma,e,!1)||e:e||_a}function ya(e){return ba(ha,e)}function ba(e,t,n=!0,r=!1){let i=yr||Ws;if(i){let n=i.type;if(e===ma){let e=uc(n,!1);if(e&&(e===t||e===E(t)||e===ce(E(t))))return n}let a=xa(i[e]||n[e],t)||xa(i.appContext[e],t);return!a&&r?n:a}}function xa(e,t){return e&&(e[t]||e[E(t)]||e[ce(E(t))])}function L(e,t,n,r){let i,a=n&&n[r],o=p(e);if(o||y(e)){let n=o&&un(e),r=!1,s=!1;n&&(r=!fn(e),s=dn(e),e=St(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?gn(hn(e[n])):hn(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 Sa(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 Ca(e,t,n,r,i,a){if(n??={},yr.ce||yr.parent&&Wi(yr.parent)&&yr.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),V(),U(z,null,[G(`slot`,e,r&&r())],i?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);let s=bs.length;V();let c;try{let i=o&&wa(o(n)),s=n.key||a||i&&i.key;c=U(z,{key:(s&&!b(s)?s:`_${t}`)+(!i&&r?`_fb`:``)},i||(r?r():[]),i&&e._===1?64:-2)}catch(e){for(let e=bs.length;e>s;e--)Ss();throw e}finally{o&&o._c&&(o._d=!0)}return!i&&c.scopeId&&(c.slotScopeIds=[c.scopeId+`-s`]),c}function wa(e){return e.some(e=>!Es(e)||!(e.type===B||e.type===z&&!wa(e.children)))?e:null}function Ta(e,t){let n={};for(let r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:le(r)]=e[r];return n}var Ea=e=>e?Xs(e)?lc(e):Ea(e.parent):null,Da=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=>Ea(e.parent),$root:e=>Ea(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Za(e),$forceUpdate:e=>e.f||=()=>{sr(e.update)},$nextTick:e=>e.n||=ar.bind(e.proxy),$watch:e=>Ir.bind(e)}),Oa=(e,t)=>e!==r&&!e.__isScriptSetup&&f(e,t),ka={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(Oa(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 Ka&&(s[t]=0)}let u=Da[t],d,p;if(u)return t===`$attrs`&&vt(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 Oa(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)||Oa(t,c)||f(o,c)||f(i,c)||f(Da,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)}},Aa=l({},ka,{get(e,t){if(t!==Symbol.unscopables)return ka.get(e,t,e)},has(e,t){return t[0]!==`_`&&!_e(t)}});function ja(){return null}function Ma(){return null}function Na(e){}function Pa(e){}function Fa(){return null}function Ia(){}function La(e,t){return null}function Ra(){return Ba(`useSlots`).slots}function za(){return Ba(`useAttrs`).attrs}function Ba(e){let t=Gs();return t.setupContext||=cc(t)}function Va(e){return p(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}function Ha(e,t){let n=Va(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 Ua(e,t){return!e||!t?e||t:p(e)&&p(t)?e.concat(t):l({},Va(e),Va(t))}function Wa(e,t){let n={};for(let r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Ga(e){let t=Gs(),n=Zs,r=e();Ys(),n&&qs(!1);let i=()=>{Js(t),n&&qs(!0)},a=()=>{Gs()!==t&&t.scope.off(),Ys(),n&&qs(!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 Ka=!0;function qa(e){let t=Za(e),n=e.proxy,r=e.ctx;Ka=!1,t.beforeCreate&&Ya(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&&Ja(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=an(t))}if(Ka=!0,o)for(let e in o){let t=o[e],i=fc({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)Xa(c[e],r,n,e);if(l){let e=v(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Er(t,e[t])})}d&&Ya(d,e,`c`);function ce(e,t){p(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(ce(ia,f),ce(aa,m),ce(oa,h),ce(sa,g),ce(Xi,_),ce(Zi,y),ce(pa,ne),ce(fa,w),ce(da,T),ce(ca,S),ce(la,C),ce(ua,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&&mi(e)}function Ja(e,t,n=a){p(e)&&(e=no(e));for(let n in e){let r=e[n],i;i=x(r)?`default`in r?Dr(r.from||n,r.default,!0):Dr(r.from||n):Dr(r),j(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Ya(e,t,n){Yn(p(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Xa(e,t,n,r){let i=r.includes(`.`)?Lr(n,r):()=>n[r];if(y(e)){let n=t[e];v(n)&&Pr(i,n)}else if(v(e))Pr(i,e.bind(n));else if(x(e)){if(p(e))e.forEach(e=>Xa(e,t,n,r));else{let r=v(e.handler)?e.handler.bind(n):t[e.handler];v(r)&&Pr(i,r,e)}}}function Za(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=>Qa(c,e,o,!0)),Qa(c,t,o)),x(t)&&a.set(t,c),c}function Qa(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Qa(e,a,n,!0),i&&i.forEach(t=>Qa(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=$a[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var $a={data:eo,props:ao,emits:ao,methods:io,computed:io,beforeCreate:ro,created:ro,beforeMount:ro,mounted:ro,beforeUpdate:ro,updated:ro,beforeDestroy:ro,beforeUnmount:ro,destroyed:ro,unmounted:ro,activated:ro,deactivated:ro,errorCaptured:ro,serverPrefetch:ro,components:io,directives:io,watch:oo,provide:eo,inject:to};function eo(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 to(e,t){return io(no(e),no(t))}function no(e){if(p(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function ro(e,t){return e?[...new Set([].concat(e,t))]:t}function io(e,t){return e?l(Object.create(null),e,t):t}function ao(e,t){return e?p(e)&&p(t)?[...new Set([...e,...t])]:l(Object.create(null),Va(e),Va(t??{})):t}function oo(e,t){if(!e)return t;if(!t)return e;let n=l(Object.create(null),e);for(let r in t)n[r]=ro(e[r],t[r]);return n}function so(){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 co=0;function lo(e,t){return function(n,r=null){v(n)||(n=l({},n)),r!=null&&!x(r)&&(r=null);let i=so(),a=new WeakSet,o=[],s=!1,c=i.app={_uid:co++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:_c,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||G(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,lc(u.component)}},onUnmount(e){o.push(e)},unmount(){s&&(Yn(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=uo;uo=c;try{return e()}finally{uo=t}}};return c}}var uo=null;function fo(e,t,n=r){let i=Gs(),a=E(t),o=se(t),s=po(e,a),c=Tn((s,c)=>{let l,u=r,d;return Nr(()=>{let t=e[a];ue(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(!ue(s,l)&&!(u!==r&&ue(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),ue(e,u)&&(ue(e,s)&&!ue(s,d)||p&&u!==r&&!ue(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 po=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${se(t)}Modifiers`];function mo(e,t,...n){if(e.isUnmounted)return;let i=e.vnode.props||r,a=n,o=t.startsWith(`update:`),s=o&&po(i,t.slice(7));s&&(s.trim&&(a=n.map(e=>y(e)?e.trim():e)),s.number&&(a=a.map(pe)));let c,l=i[c=le(t)]||i[c=le(E(t))];!l&&o&&(l=i[c=le(se(t))]),l&&Yn(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,Yn(u,e,6,a)}}var ho=new WeakMap;function go(e,t,n=!1){let r=n?ho: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=go(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 _o(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 vo(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,_=xr(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=Fs(u.call(t,e,d,f,m,p,h)),y=s}else{let e=t;v=Fs(e.length>1?e(f,{attrs:s,slots:o,emit:l}):e(f,null)),y=t.props?s:bo(s)}}catch(t){bs.length=0,Xn(t,e,1),v=G(B)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(c)&&(y=xo(y,a)),b=Ns(b,y,!1,!0))}return n.dirs&&(b=Ns(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ui(Br(b.type)&&li(b)||b,n.transition),v=b,xr(_),v}function yo(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(Es(r)){if(r.type!==B||r.children===`v-if`){if(n)return;n=r}}else return}return n}var bo=e=>{let t;for(let n in e)(n===`class`||n===`style`||s(n))&&((t||={})[n]=e[n]);return t},xo=(e,t)=>{let n={};for(let r in e)c(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function So(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?Co(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(wo(o,r,n)&&!_o(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||Co(r,o,l):!!o;return!1}function Co(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)||wo(t,e,a)&&!_o(n,a))return!0}return!1}function wo(e,t,n){let r=e[n],i=t[n];return n===`style`&&x(r)&&x(i)?!je(r,i):r!==i}function To({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 Eo={},Do=()=>Object.create(Eo),Oo=e=>Object.getPrototypeOf(e)===Eo;function ko(e,t,n,r=!1){let i={},a=Do();e.propsDefaults=Object.create(null),jo(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:on(i):e.type.props?i:a,e.attrs=a}function Ao(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=A(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(_o(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]=Mo(c,s,t,u,e,!1)}}else u!==a[o]&&(a[o]=u,l=!0)}}}else{jo(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]=Mo(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&&yt(e.attrs,`set`,``)}function jo(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:_o(e.emitsOptions,r)||r in i&&l===i[r]||(i[r]=l,s=!0)}if(o){let t=A(n),i=c||r;for(let r=0;r<o.length;r++){let s=o[r];n[s]=Mo(a,t,s,i[s],e,!f(i,s))}}return s}function Mo(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=Js(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 No=new WeakMap;function Po(e,t,n=!1){let a=n?No: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]=Po(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]);Fo(t)&&(c[t]=r)}else if(s)for(let e in s){let t=E(e);if(Fo(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 Fo(e){return e[0]!==`$`&&!ne(e)}var Io=e=>e===`_`||e===`_ctx`||e===`$stable`,Lo=e=>p(e)?e.map(Fs):[Fs(e)],Ro=(e,t,n)=>{if(t._n)return t;let r=P((...e)=>Lo(t(...e)),n);return r._c=!1,r},zo=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Io(n))continue;let i=e[n];if(v(i))t[n]=Ro(n,i,r);else if(i!=null){let e=Lo(i);t[n]=()=>e}}},Bo=(e,t)=>{let n=Lo(t);e.slots.default=()=>n},Vo=(e,t,n)=>{for(let r in t)(n||!Io(r))&&(e[r]=t[r])},Ho=(e,t,n)=>{let r=e.slots=Do();if(e.vnode.shapeFlag&32){let e=t._;e?(Vo(r,t,n),n&&fe(r,`_`,e,!0)):zo(t,r)}else t&&Bo(e,t)},Uo=(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:Vo(a,t,n):(o=!t.$stable,zo(t,a)),s=t}else t&&(Bo(e,t),s={default:1});if(o)for(let e in a)!Io(e)&&s[e]==null&&delete a[e]},R=hs;function Wo(e){return Ko(e)}function Go(e){return Ko(e,Ei)}function Ko(e,t){let n=ge();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&&!Ds(e,t)&&(r=Se(e),_e(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 vs:y(e,t,n,r);break;case B:b(e,t,n,r);break;case ys:e??x(t,n,r,s);break;case z: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,Ce)}d!=null&&a?vi(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&vi(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,qo(e,a),s,u),_&&Tr(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)&&zs(f,r,e)}_&&Tr(e,null,r,`beforeMount`);let v=Yo(i,g);v?g.beforeEnter(d):g&&!g.persisted&&(d[rs]=!0),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&R(()=>{try{f&&zs(f,r,e),v&&g.enter(d),_&&Tr(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||ts(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?Is(e[l]):Fs(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&&Jo(n,!1),(g=h.onVnodeBeforeUpdate)&&zs(g,n,t,e),f&&Tr(t,e,n,`beforeUpdate`),n&&Jo(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,qo(t,a),o):s||fe(e,t,l,null,n,i,qo(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)&&R(()=>{g&&zs(g,n,t,e),f&&Tr(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||es(c),d=u&&(c.type===z||!Ds(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)&&Xo(e,t,!0)):fe(e,t,n,f,i,a,s,c,l)},oe=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):se(t,n,r,i,a,o,c):ce(e,t,c)},se=(e,t,n,r,i,a,o)=>{let s=e.component=Us(e,r,i);if(qi(e)&&(s.ctx.renderer=Ce),Qs(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,le,o,a),!e.el){let r=s.subTree=G(B);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(So(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,ue(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=Qo(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{let t=()=>{e.job.flags&8||(i&&i.pendingBranch?R(t,i):l())};t.flags=48,R(t,i)});return}}let u=t,d;Jo(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&de(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&zs(d,s,t,c),Jo(e,!0);let f=vo(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el||es(p)),Se(p),e,i,a),t.el=f.el,u===null&&To(e,f.el),r&&R(r,i),(d=t.props&&t.props.onVnodeUpdated)&&R(()=>zs(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=Wi(t);if(Jo(e,!1),l&&de(l),!m&&(o=c&&c.onVnodeBeforeMount)&&zs(o,d,t),Jo(e,!0),s&&Te){let t=()=>{e.subTree=vo(e),Te(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=vo(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&R(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;R(()=>zs(o,d,e),i)}(t.shapeFlag&256||d&&Wi(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&R(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new We(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=()=>sr(u),Jo(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,Ao(e,t.props,r,n),Uo(e,t.children,n),st(),ur(e),ct()},fe=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){me(l,d,n,r,i,a,o,s,c);return}if(f&256){pe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&xe(l,i,a),d!==l&&p(n,d)):u&16?m&16?me(l,d,n,r,i,a,o,s,c):xe(l,i,a,!0):(u&8&&p(n,``),m&16&&T(d,n,r,i,a,o,s,c))},pe=(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?Is(t[p]):Fs(t[p]);v(e[p],r,n,null,a,o,s,c,l)}u>d?xe(e,a,o,!0,!1,f):T(t,n,r,a,o,s,c,l,f)},me=(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?Is(t[u]):Fs(t[u]);if(Ds(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?Is(t[p]):Fs(t[p]);if(Ds(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?Is(t[u]):Fs(t[u]),n,i,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)_e(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?Is(t[u]):Fs(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){_e(r,a,o,!0);continue}let i;if(r.key!=null)i=g.get(r.key);else for(_=h;_<=p;_++)if(ee[_-h]===0&&Ds(r,t[_])){i=_;break}i===void 0?_e(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?Zo(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||es(f):r;ee[u]===0?v(null,i,n,p,a,o,s,c,l):x&&(_<0||u!==C[_]?he(i,n,p,2):_--)}}},he=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)he(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,Ce);else if(c===z){o(a,t,n);for(let e=0;e<u.length;e++)he(u[e],t,n,r);o(e.anchor,t,n)}else if(c===ys)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[Qr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),R(()=>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[Qr];a._isLeaving&&a[Qr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},_e=(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&&(st(),vi(s,null,n,e,!0),ct()),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=!Wi(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&zs(_,t,e),u&6)be(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Tr(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,Ce,r):l&&!l.hasOnce&&(a!==z||d>0&&d&64)?xe(l,t,n,!1,!0):(a===z&&d&384||!i&&u&16)&&xe(c,t,n),r&&ve(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&R(()=>{_&&zs(_,t,e),h&&Tr(e,null,t,`unmounted`),v&&(e.el=null)},n)},ve=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===z;if(a&&!i){ye(n,r);return}if(t===ys){ee(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?fi(e):e,c=()=>{a?m(n)&&ye(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()},ye=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},be=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;$o(c),$o(l),r&&de(r),i.stop(),a?(a.flags|=8,_e(o,e,t,n)):o&&(o.transition=e.vnode.transition,_e(o,e,t,n)),s&&R(s,t);let u=()=>{e.isUnmounted=!0};u.flags=16,R(u,t)},xe=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)_e(e[o],t,n,r,i)},Se=e=>{if(e.shapeFlag&6)return Se(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[zr];return n?h(n):t},D=(e,t,n)=>{pr(()=>{e==null?t._vnode&&_e(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:Hs())},Ce={p:v,um:_e,m:he,r:ve,mt:se,mc:T,pc:fe,pbc:ie,n:Se,o:e},we,Te;return t&&([we,Te]=t(Ce)),{render:D,hydrate:we,createApp:lo(D,we)}}function qo({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 Jo({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Yo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Xo(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]=Is(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Xo(t,a)),a.type===vs&&(a.patchFlag===-1&&(a=i[e]=Is(a)),a.el=t.el),a.type===B&&!a.el&&(a.el=t.el)}}function Zo(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 Qo(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Qo(t)}function $o(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function es(e){if(e.placeholder)return e.placeholder;let t=e.component;if(t)return es(t.subTree);let n=e.suspense;return n&&n.activeBranch?es(n.activeBranch):null}var ts=e=>e.__isSuspense,ns=0,rs=Symbol(`_deferredEnter`),is={name:`Suspense`,__isSuspense:!0,process(e,t,n,r,i,a,o,s,c,l){if(e==null)cs(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&&!Ds(t.ssContent,u.pendingBranch||u.activeBranch):!u.isInFallback){t.suspense=u,u.vnode=t,t.el=e.el;return}}ls(e,t,n,r,i,o,s,c,l)}},hydrate:ds,normalize:fs};function as(e,t){let n=e.props&&e.props[t];v(n)&&n()}function os(e){let t=[];ss(e,t,!0),t.length&&lr(t)}function ss(e,t,n){let{el:r,transition:i,children:a,shapeFlag:o}=e;if(o&6)ss(e.component.subTree,t,n);else if(!(o&192)&&(o&1&&(!n&&r&&r[rs]&&(r[rs]=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++)ss(a[e],t,n)}function cs(e,t,n,r,i,a,o,s,c){let{p:l,o:{createElement:u}}=c,d=u(`div`),f=e.suspense=us(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?(as(e,`onPending`),as(e,`onFallback`),l(null,e.ssFallback,t,n,r,null,a,o),gs(f,e.ssFallback)):f.resolve(!1,!0)}function ls(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,Ds(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),gs(d,p))):(d.pendingId=ns++,_?(d.isHydrating=!1,d.activeBranch=h):l(h,i,d),d.deps=0,ms(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),gs(d,p))):m&&Ds(m,f)?(c(m,f,n,r,i,d,a,o,s),d.resolve(!0),d.pendingId=ns++,d.deps=0):(c(null,f,d.hiddenContainer,null,i,d,a,o,s),d.deps<=0&&d.resolve()));else if(m&&Ds(m,f))c(m,f,n,r,i,d,a,o,s),gs(d,f);else if(as(t,`onPending`),d.pendingBranch=f,d.pendingId=ns++,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 us(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=_s(e);v&&t&&t.pendingBranch&&(_=t.pendingId,t.deps++);let y=e.props?me(e.props.timeout):void 0,b=a,x={vnode:e,parent:t,parentComponent:n,namespace:o,container:r,hiddenContainer:i,deps:0,pendingId:ns++,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){os(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||lr(c),d&&r.ssFallback&&(r.ssFallback.el=null)}}),i&&!x.isFallbackMountPending&&(h(i.el||es(i))===u&&(a=m(i),e=!0),p(i,l,x,!0),!y&&d&&r.ssFallback&&R(()=>r.ssFallback.el=null,x)),y||(os(o),f(o,u,a,0))}clearTimeout(x.timeoutTimer),x.timeoutTimer=void 0,x.isFallbackMountPending=!1,gs(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?lr(t):c[S++]=t}if(c.length=S,g)for(let e=0;e<c.length;e++)g.effects.push(c[e]);else y||lr(c);x.effects=[],v&&t&&t.pendingBranch&&_===t.pendingId&&(_=void 0,t.deps--,t.deps===0&&!n&&t.resolve()),as(r,`onResolve`)},fallback(e){if(x.isUnmounted||!x.pendingBranch)return;let{vnode:t,activeBranch:n,parentComponent:r,container:i,namespace:a}=x;as(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),gs(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;ec(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)),To(e,o.el)};e.asyncDep.catch(t=>(e.scope.active&&Xn(t,e,0,!1,!0),()=>null)).then(t=>{if(e.isUnmounted||x.isUnmounted)return;let n=i&&x.pendingId===e.suspenseId;if(Ys(),!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?hs(n,x):o(t))};n.flags=48,hs(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,lr(()=>{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),ms(x))}};return x}function ds(e,t,n,r,i,a,o,s,c){let l=t.suspense=us(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 fs(e){let{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=ps(r?n.default:n),e.ssFallback=r?ps(n.fallback):G(B)}function ps(e){let t;if(v(e)){let n=Cs&&e._c;n&&(e._d=!1,V()),e=e(),n&&(e._d=!0,t=xs,Ss())}return p(e)&&(e=yo(e)),e=Fs(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(t=>t!==e)),e}function ms(e){let{effects:t}=e;for(let e=0;e<t.length;e++){let n=t[e];n.flags&16&&lr(n)}t.length=0}function hs(e,t){t&&t.pendingBranch?p(e)?t.effects.push(...e):t.effects.push(e):lr(e)}function gs(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,To(r,i))}function _s(e){let t=e.props&&e.props.suspensible;return t!=null&&t!==!1}var z=Symbol.for(`v-fgt`),vs=Symbol.for(`v-txt`),B=Symbol.for(`v-cmt`),ys=Symbol.for(`v-stc`),bs=[],xs=null;function V(e=!1){bs.push(xs=e?null:[])}function Ss(){bs.pop(),xs=bs[bs.length-1]||null}var Cs=1;function ws(e,t=!1){Cs+=e,e<0&&xs&&t&&(xs.hasOnce=!0)}function Ts(e){return e.dynamicChildren=Cs>0?xs||i:null,Ss(),Cs>0&&xs&&xs.push(e),e}function H(e,t,n,r,i,a){return Ts(W(e,t,n,r,i,a,!0))}function U(e,t,n,r,i){return Ts(G(e,t,n,r,i,!0))}function Es(e){return e?e.__v_isVNode===!0:!1}function Ds(e,t){return e.type===t.type&&e.key===t.key}function Os(e){}var ks=({key:e})=>e??null,As=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:y(e)||j(e)||v(e)?{i:yr,r:e,k:t,f:!!n}:e);function W(e,t=null,n=null,r=0,i=null,a=e===z?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ks(t),ref:t&&As(t),scopeId:br,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:yr};return s?(Ls(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=y(n)?8:16),Cs>0&&!o&&xs&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&xs.push(c),c}var G=js;function js(e,t=null,n=null,r=0,i=null,a=!1){if(e&&e!==_a||(e=B),Es(e)){let r=Ns(e,t,!0);return n&&Ls(r,n),Cs>0&&!a&&xs&&(r.shapeFlag&6?xs[xs.indexOf(e)]=r:xs.push(r)),r.patchFlag=-2,r}if(dc(e)&&(e=e.__vccOpts),t){t=Ms(t);let{class:e,style:n}=t;e&&!y(e)&&(t.class=D(e)),x(n)&&(pn(n)&&!p(n)&&(n=l({},n)),t.style=ve(n))}let o=y(e)?1:ts(e)?128:Br(e)?64:x(e)?4:v(e)?2:0;return W(e,t,n,r,i,o,a,!0)}function Ms(e){return e?pn(e)?l({},e):Oo(e)?l({},e[oc]||e):e:null}function Ns(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?Rs(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&ks(l),ref:t&&t.ref?n&&a?p(a)?a.concat(As(t)):[a,As(t)]:As(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!==z?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&&Ns(e.ssContent),ssFallback:e.ssFallback&&Ns(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&ui(u,c.clone(u)),u}function K(e=` `,t=0){return G(vs,null,e,t)}function Ps(e,t){let n=G(ys,null,e);return n.staticCount=t,n}function q(e=``,t=!1){return t?(V(),U(B,null,e)):G(B,null,e)}function Fs(e){return e==null||typeof e==`boolean`?G(B):p(e)?G(z,null,e.slice()):Es(e)?Is(e):G(vs,null,String(e))}function Is(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ns(e)}function Ls(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),Ls(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!Oo(t)?t._ctx=yr:r===3&&yr&&(yr.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(v(t)){if(r&65){Ls(e,{default:t});return}t={default:t,_ctx:yr},n=32}else t=String(t),r&64?(n=16,t=[K(t)]):n=8;e.children=t,e.shapeFlag|=n}function Rs(...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=D([t.class,r.class]));else if(e===`style`)t.style=ve([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 zs(e,t,n,r=null){Yn(e,t,7,[n,r])}var Bs=so(),Vs=0;function Hs(){return Vs}function Us(e,t,n){let i=e.type,a=(t?t.appContext:e.appContext)||Bs,o={uid:Vs++,vnode:e,type:i,parent:t,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ze(!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:Po(i,a),emitsOptions:go(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=mo.bind(null,o),e.ce&&e.ce(o),o}var Ws=null,Gs=()=>Ws||yr,Ks,qs;{let e=ge(),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)}};Ks=t(`__VUE_INSTANCE_SETTERS__`,e=>Ws=e),qs=t(`__VUE_SSR_SETTERS__`,e=>Zs=e)}var Js=e=>{let t=Ws;return Ks(e),e.scope.on(),()=>{e.scope.off(),Ks(t)}},Ys=()=>{Ws&&Ws.scope.off(),Ks(null)};function Xs(e){return e.vnode.shapeFlag&4}var Zs=!1;function Qs(e,t=!1,n=!1){t&&qs(t);let{props:r,children:i}=e.vnode,a=Xs(e);ko(e,r,a,t),Ho(e,i,n||t);let o=a?$s(e,t):void 0;return t&&qs(!1),o}function $s(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ka);let{setup:r}=n;if(r){st();let n=e.setupContext=r.length>1?cc(e):null,i=Js(e),a=Jn(r,e,0,[e.props,n]),o=S(a);if(ct(),i(),(o||e.sp)&&!Wi(e)&&mi(e),o){if(a.then(Ys,Ys),t)return a.then(n=>{qs(!0);try{ec(e,n,t)}finally{qs(!1)}}).catch(t=>{Xn(t,e,0,void 0,!0),e.ssrRender=(e,t)=>t(`<!---->`)});e.asyncDep=a}else ec(e,a,t)}else ac(e,t)}function ec(e,t,n){v(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:x(t)&&(e.setupState=Cn(t)),ac(e,n)}var tc,nc;function rc(e){tc=e,nc=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Aa))}}var ic=()=>!tc;function ac(e,t,n){let r=e.type;if(!e.render){if(!t&&tc&&!r.render){let t=r.template||Za(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=tc(t,s)}}e.render=r.render||a,nc&&nc(e)}{let t=Js(e);st();try{qa(e)}finally{ct(),t()}}}var oc=Symbol(),sc={get(e,t){return vt(e,`get`,``),t===oc?e:e[t]}};function cc(e){return{attrs:new Proxy(e.attrs,sc),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function lc(e){return e.exposed?e.exposeProxy||=new Proxy(Cn(mn(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Da)return Da[n](e)},has(e,t){return t in e||t in Da}}):e.proxy}function uc(e,t=!0){return v(e)?e.displayName||e.name:e.name||t&&e.__name}function dc(e){return v(e)&&`__vccOpts`in e}var fc=(e,t)=>Mn(e,t,Zs);function pc(e,t,n){try{ws(-1);let r=arguments.length;return r===2?x(t)&&!p(t)?Es(t)?G(e,null,[t]):G(e,t):G(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Es(n)&&(n=[n]),G(e,t,n))}finally{ws(1)}}function mc(){}function hc(e,t,n,r){let i=n[r];if(i&&gc(i,e))return i;let a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function gc(e,t){let n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e<n.length;e++)if(ue(n[e],t[e]))return!1;return Cs>0&&xs&&xs.push(e),!0}var _c=`3.5.47`,vc=a,yc=qn,bc=gr,xc=vr,Sc={createComponentInstance:Us,setupComponent:Qs,renderComponentRoot:vo,setCurrentRenderingInstance:xr,isVNode:Es,normalizeVNode:Fs,getComponentPublicInstance:lc,ensureValidVNode:wa,pushWarningContext:Un,popWarningContext:Wn},Cc=void 0,wc=typeof window<`u`&&window.trustedTypes;if(wc)try{Cc=wc.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Tc=Cc?e=>Cc.createHTML(e):e=>e,Ec=`http://www.w3.org/2000/svg`,Dc=`http://www.w3.org/1998/Math/MathML`,Oc=typeof document<`u`?document:null,kc=Oc&&Oc.createElement(`template`),Ac={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`?Oc.createElementNS(Ec,e):t===`mathml`?Oc.createElementNS(Dc,e):n?Oc.createElement(e,{is:n}):Oc.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Oc.createTextNode(e),createComment:e=>Oc.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Oc.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{kc.innerHTML=Tc(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=kc.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]}},jc=`transition`,Mc=`animation`,Nc=Symbol(`_vtc`),Pc={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},Fc=l({},ni,Pc),Ic=(e=>(e.displayName=`Transition`,e.props=Fc,e))((e,{slots:t})=>pc(ai,zc(e),t)),Lc=(e,t=[])=>{p(e)?e.forEach(e=>e(...t)):e&&e(...t)},Rc=e=>e?p(e)?e.some(e=>e.length>1):e.length>1:!1;function zc(e){let t={};for(let n in e)n in Pc||(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=Bc(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,Uc(e,t?d:s),Uc(e,t?u:o),n&&n()},T=(e,t)=>{e._leaveResolve=void 0,e._isLeaving=!1,Uc(e,f),Uc(e,m),Uc(e,p),t&&t()},ne=e=>(t,n)=>{let i=e?C:y,o=()=>{t._enterResolve===o&&w(t,e,n)};t._enterResolve=o,Lc(i,[t,o]),Wc(()=>{Uc(t,e?c:a),t._enterResolve===o&&(Hc(t,e?d:s),Rc(i)||Kc(t,r,g,o))})};return l(t,{onBeforeEnter(e){Lc(v,[e]),Hc(e,a),Hc(e,o)},onBeforeAppear(e){Lc(ee,[e]),Hc(e,c),Hc(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,Hc(e,f),e._enterCancelled?(Hc(e,p),Xc(e)):(Xc(e),Hc(e,p)),Wc(()=>{e._leaveResolve===n&&(Uc(e,f),Hc(e,m),Rc(x)||Kc(e,r,_,n))}),Lc(x,[e,n])},onEnterCancelled(e){w(e,!1,void 0,!0),Lc(b,[e])},onAppearCancelled(e){w(e,!0,void 0,!0),Lc(te,[e])},onLeaveCancelled(e){T(e),Lc(S,[e])}})}function Bc(e){if(e==null)return null;if(x(e))return[Vc(e.enter),Vc(e.leave)];{let t=Vc(e);return[t,t]}}function Vc(e){return me(e)}function Hc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[Nc]||(e[Nc]=new Set)).add(t)}function Uc(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[Nc];n&&(n.delete(t),n.size||(e[Nc]=void 0))}function Wc(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var Gc=0;function Kc(e,t,n,r){let i=e._endId=++Gc,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=qc(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 qc(e,t){let n=window.getComputedStyle(e),r=e=>(n[e]||``).split(`, `),i=r(`${jc}Delay`),a=r(`${jc}Duration`),o=Jc(i,a),s=r(`${Mc}Delay`),c=r(`${Mc}Duration`),l=Jc(s,c),u=null,d=0,f=0;t===jc?o>0&&(u=jc,d=o,f=a.length):t===Mc?l>0&&(u=Mc,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?jc:Mc:null,f=u?u===jc?a.length:c.length:0);let p=u===jc&&/\b(?:transform|all)(?:,|$)/.test(r(`${jc}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function Jc(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((t,n)=>Yc(t)+Yc(e[n])))}function Yc(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function Xc(e){return(e?e.ownerDocument:document).body.offsetHeight}function Zc(e,t,n){let r=e[Nc];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Qc=Symbol(`_vod`),$c=Symbol(`_vsh`),el={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Qc]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):tl(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),tl(e,!0),r.enter(e)):r.leave(e,()=>{tl(e,!1)}):tl(e,t))},beforeUnmount(e,{value:t}){tl(e,t)}};function tl(e,t){e.style.display=t?e[Qc]:`none`,e[$c]=!t}function nl(){el.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var rl=Symbol(``);function il(e){let t=Gs();if(!t)return;let n=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>ul(e,n))},r={uid:String(t.uid),update:n};He(()=>r.update=void 0),t.ut=(e,t)=>{e&&(e[al]=[t,r],sl(e),ol(e)),n()};let i=()=>{let r=e(t.proxy);t.ce?ul(t.ce,r):ll(t.subTree,r),n(r)};oa(()=>{lr(i)}),aa(()=>{Pr(i,a,{flush:`post`});let e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),la(()=>e.disconnect())})}var al=Symbol(``);function ol(e,t){let[n,r]=e[al],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 sl(e){let t=e.parentNode;if(t){let n=t[al];n||(n=t[al]=new Set,new MutationObserver(cl).observe(t,{childList:!0})),n.add(e)}}function cl(e,t){let n=e[0].target,r=n[al],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(ol(e,i)):(r.delete(e),sl(e),a.add(ol(e,!0)))}),a.forEach(e=>e&&e()),r.size||(t.disconnect(),n[al]=void 0)}function ll(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ll(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)ul(e.el,t);else if(e.type===z)e.children.forEach(e=>ll(e,t));else if(e.type===ys){let{el:n,anchor:r}=e;for(;n&&(ul(n,t),n!==r);)n=n.nextSibling}}function ul(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=Le(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[rl]=r}}var dl=/(?:^|;)\s*display\s*:/;function fl(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]??ml(r,t,``)}else for(let e in t)n[e]??ml(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?ml(r,i,``):vl(e,i,!y(t)&&t?t[i]:void 0,o)||ml(r,i,o)}}else if(i){if(t!==n){let e=r[rl];e&&(n+=`;`+e),r.cssText=n,a=dl.test(n)}}else t&&e.removeAttribute(`style`);Qc in e&&(i&&t===n||(e[Qc]=a?r.display:``),e[$c]&&(r.display=`none`))}var pl=/\s*!important$/;function ml(e,t,n){if(p(n))n.forEach(n=>ml(e,t,n));else if(n??=``,t.startsWith(`--`))pl.test(n)?e.setProperty(t,n.replace(pl,``),`important`):e.setProperty(t,n);else{let r=_l(e,t);pl.test(n)?e.setProperty(se(r),n.replace(pl,``),`important`):e[r]=n}}var hl=[`Webkit`,`Moz`,`ms`],gl={};function _l(e,t){let n=gl[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return gl[t]=r;r=ce(r);for(let n=0;n<hl.length;n++){let i=hl[n]+r;if(i in e)return gl[t]=i}return t}function vl(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&y(r)&&n===r}var yl=`http://www.w3.org/1999/xlink`;function bl(e,t,n,r,i,a=Te(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(yl,t.slice(6,t.length)):e.setAttributeNS(yl,t,n):n==null||a&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,a?``:b(n)?String(n):n)}function xl(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Tc(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=Ee(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 Sl(e,t,n,r){e.addEventListener(t,n,r)}function Cl(e,t,n,r){e.removeEventListener(t,n,r)}var wl=Symbol(`_vei`);function Tl(e,t,n,r,i=null){let a=e[wl]||(e[wl]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=Ol(t);r?Sl(e,n,a[t]=Ml(r,i),s):o&&(Cl(e,n,o,s),a[t]=void 0)}}var El=/(Once|Passive|Capture)$/,Dl=/^on:?(?:Once|Passive|Capture)$/;function Ol(e){let t,n;for(;(n=e.match(El))&&!Dl.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 kl=0,Al=Promise.resolve(),jl=()=>kl||=(Al.then(()=>kl=0),Date.now());function Ml(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&&Yn(e,t,5,a)}}else Yn(r,t,5,[e])};return n.value=e,n.attached=jl(),n}var Nl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Pl=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Zc(e,r,o):t===`style`?fl(e,n,r):s(t)?c(t)||Tl(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Fl(e,t,r,o))?(xl(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||bl(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Il(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!y(r)))?xl(e,E(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),bl(e,t,r,o))};function Fl(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Nl(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 Nl(t)&&y(n)?!1:t in e}function Il(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 Ll={};function Rl(e,t,n){let r=I(e,t);w(r)&&(r=l({},r,t));class i extends Vl{constructor(e){super(r,e,n)}}return i.def=r,i}var zl=((e,t)=>Rl(e,t,Lu)),Bl=typeof HTMLElement<`u`?HTMLElement:class{},Vl=class e extends Bl{constructor(e,t={},n=Iu){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!==Iu?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,ar(()=>{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]=me(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:()=>N(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):Ll,r=E(e);t&&this._numberProps&&this._numberProps[r]&&(n=me(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===Ll?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),Pu(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let t=G(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 Hl(e){let t=Gs();return t&&t.ce||null}function Ul(){let e=Hl();return e&&e.shadowRoot}function Wl(e=`$style`){{let t=Gs();if(!t)return r;let n=t.type.__cssModules;return n&&n[e]||r}}var Gl=new WeakMap,Kl=new WeakMap,ql=Symbol(`_moveCb`),Jl=Symbol(`_enterCb`),Yl=new WeakMap,Xl=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:l({},Fc,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=Gs(),r=ei(),i,a,o,s,c=()=>(s===void 0&&(s=i.length>0&&au(i[0].el,n.vnode.el,Ql(e))),s);return sa(()=>{if(Yl.delete(n),!c()){i=[],o=void 0;return}let t=Ql(e);i.forEach(Zl);let r=o&&iu(o,n.vnode.el);o=void 0,i.forEach(e=>$l(e,r));let a=i.filter(eu);Xc(n.vnode.el),a.forEach(e=>{let n=e.el,r=n.style;Hc(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[ql]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[ql]=null,Uc(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let l=A(e),u=zc(l),d=l.tag||z;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[$c]&&(i.push(t),ui(t,si(t,u,r,n)),Gl.set(t,tu(t.el)))}a=t.default?di(t.default()):[];for(let e=0;e<a.length;e++){let t=a[e];t.key!=null&&ui(t,si(t,u,r,n))}return i.length&&(o=nu(n),Yl.set(n,c)),G(d,null,a)}}});function Zl(e){let t=e.el;t[ql]&&t[ql](),t[Jl]&&t[Jl]()}function Ql(e){return e.moveClass||`${e.name||`v`}-move`}function $l(e,t){Kl.set(e,tu(e.el,t))}function eu(e){let t=Gl.get(e),n=Kl.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 tu(e,t){let n=e.getBoundingClientRect();return{left:n.left-(t?t.left:0),top:n.top-(t?t.top:0)}}function nu(e){let t;for(let n=e.parent;n;n=n.parent){let r=Yl.get(n);if(r){let i=ru(n.vnode.el,e.vnode.el);i&&(t||=[]).push(l(tu(i),{item:i,willMove:r}))}}return t}function ru(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 iu(e,t){let n=e.find(e=>e.willMove()&&e.item.contains(t));return n&&tu(n.item,n)}function au(e,t,n){let r=e.cloneNode(),i=e[Nc];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}=qc(r);return a.removeChild(r),o}var ou=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return p(t)?e=>de(t,e):t};function su(e){e.target.composing=!0}function cu(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var lu=Symbol(`_assign`),uu=Symbol(`_initialValue`);function du(e,t,n){return t&&(e=e.trim()),n&&(e=pe(e)),e}var J={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[uu]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[uu]=e.defaultValue.replace(/\r\n?/g,`
`))),e[lu]=ou(i);let a=r||i.props&&i.props.type===`number`;Sl(e,t?`change`:`input`,t=>{t.target.composing||e[lu](du(e.value,n,a))}),(n||a)&&Sl(e,`change`,()=>{e.value=du(e.value,n,a)}),t||(Sl(e,`compositionstart`,su),Sl(e,`compositionend`,cu),Sl(e,`change`,cu))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[uu];delete e[uu],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[lu](du(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[lu]=ou(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?pe(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)}},fu={deep:!0,created(e,t,n){e[lu]=ou(n),Sl(e,`change`,()=>{let t=e._modelValue,n=vu(e),r=e.checked,i=e[lu];if(p(t)){let e=Me(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(yu(e,r))})},mounted:pu,beforeUpdate(e,t,n){e[lu]=ou(n),pu(e,t,n)}};function pu(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(p(t))i=Me(t,r.props.value)>-1;else if(h(t))i=t.has(r.props.value);else{if(t===n)return;i=je(t,yu(e,!0))}e.checked!==i&&(e.checked=i)}var mu={created(e,{value:t},n){e.checked=je(t,n.props.value),e[lu]=ou(n),Sl(e,`change`,()=>{e[lu](vu(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[lu]=ou(r),t!==n&&(e.checked=je(t,r.props.value))}},hu={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,Sl(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?pe(vu(e)):vu(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[lu](i)}finally{ar(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[lu]=ou(r)},mounted(e,{value:t,modifiers:{number:n}}){_u(e,t,n)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[lu]=ou(n)},updated(e,{value:t,modifiers:{number:n}}){let r=e._pendingValue;e._pendingValue=void 0,r&&r[0]===e.multiple&&gu(t,r[1],r[0])||_u(e,t,n)}};function gu(e,t,n){if(!n||p(e))return je(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 _u(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=vu(o);if(r){if(i){let e=typeof s;o.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(s)):Me(t,s)>-1}else o.selected=t.has(s)||n&&typeof s==`string`&&t.has(pe(s))}else if(je(vu(o),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function vu(e){return`_value`in e?e._value:e.value}function yu(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var bu={created(e,t,n){Su(e,t,n,null,`created`)},mounted(e,t,n){Su(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){Su(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){Su(e,t,n,r,`updated`)}};function xu(e,t){switch(e){case`SELECT`:return hu;case`TEXTAREA`:return J;default:switch(t){case`checkbox`:return fu;case`radio`:return mu;default:return J}}}function Su(e,t,n,r,i){let a=xu(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Cu(){J.getSSRProps=({value:e})=>({value:e}),mu.getSSRProps=({value:e},t)=>{if(t.props&&je(t.props.value,e))return{checked:!0}},fu.getSSRProps=({value:e},t)=>{if(p(e)){if(t.props&&Me(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}},bu.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=xu(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var wu=[`ctrl`,`shift`,`alt`,`meta`],Tu={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)=>wu.some(n=>e[`${n}Key`]&&!t.includes(n))},Eu=(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=Tu[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Du={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Ou=(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||Du[e]===r))return e(n)})},ku=l({patchProp:Pl},Ac),Au,ju=!1;function Mu(){return Au||=Wo(ku)}function Nu(){return Au=ju?Au:Go(ku),ju=!0,Au}var Pu=((...e)=>{Mu().render(...e)}),Fu=((...e)=>{Nu().hydrate(...e)}),Iu=((...e)=>{let t=Mu().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=zu(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,Ru(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),Lu=((...e)=>{let t=Nu().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=zu(e);if(t)return n(t,!0,Ru(t))},t});function Ru(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function zu(e){return y(e)?document.querySelector(e):e}var Bu=!1,Vu=()=>{Bu||(Bu=!0,Cu(),nl())},Hu=t({BaseTransition:()=>ai,BaseTransitionPropsValidators:()=>ni,Comment:()=>B,DeprecationTypes:()=>null,EffectScope:()=>ze,ErrorCodes:()=>Kn,ErrorTypeStrings:()=>yc,Fragment:()=>z,KeepAlive:()=>Ji,ReactiveEffect:()=>We,Static:()=>ys,Suspense:()=>is,Teleport:()=>Yr,Text:()=>vs,TrackOpTypes:()=>Nn,Transition:()=>Ic,TransitionGroup:()=>Xl,TriggerOpTypes:()=>Pn,VueElement:()=>Vl,assertNumber:()=>Gn,callWithAsyncErrorHandling:()=>Yn,callWithErrorHandling:()=>Jn,camelize:()=>E,capitalize:()=>ce,cloneVNode:()=>Ns,compatUtils:()=>null,compile:()=>Uu,computed:()=>fc,createApp:()=>Iu,createBlock:()=>U,createCommentVNode:()=>q,createElementBlock:()=>H,createElementVNode:()=>W,createHydrationRenderer:()=>Go,createPropsRestProxy:()=>Wa,createRenderer:()=>Wo,createSSRApp:()=>Lu,createSlots:()=>Sa,createStaticVNode:()=>Ps,createTextVNode:()=>K,createVNode:()=>G,customRef:()=>Tn,defineAsyncComponent:()=>Gi,defineComponent:()=>I,defineCustomElement:()=>Rl,defineEmits:()=>Ma,defineExpose:()=>Na,defineModel:()=>Ia,defineOptions:()=>Pa,defineProps:()=>ja,defineSSRCustomElement:()=>zl,defineSlots:()=>Fa,devtools:()=>bc,effect:()=>rt,effectScope:()=>Be,getCurrentInstance:()=>Gs,getCurrentScope:()=>Ve,getCurrentWatcher:()=>Rn,getTransitionRawChildren:()=>di,guardReactiveProps:()=>Ms,h:()=>pc,handleError:()=>Xn,hasInjectionContext:()=>Or,hydrate:()=>Fu,hydrateOnIdle:()=>Ri,hydrateOnInteraction:()=>Hi,hydrateOnMediaQuery:()=>Vi,hydrateOnVisible:()=>Bi,initCustomFormatter:()=>mc,initDirectivesForSSR:()=>Vu,inject:()=>Dr,isMemoSame:()=>gc,isProxy:()=>pn,isReactive:()=>un,isReadonly:()=>dn,isRef:()=>j,isRuntimeOnly:()=>ic,isShallow:()=>fn,isVNode:()=>Es,markRaw:()=>mn,mergeDefaults:()=>Ha,mergeModels:()=>Ua,mergeProps:()=>Rs,nextTick:()=>ar,nodeOps:()=>Ac,normalizeClass:()=>D,normalizeProps:()=>Ce,normalizeStyle:()=>ve,onActivated:()=>Xi,onBeforeMount:()=>ia,onBeforeUnmount:()=>ca,onBeforeUpdate:()=>oa,onDeactivated:()=>Zi,onErrorCaptured:()=>pa,onMounted:()=>aa,onRenderTracked:()=>fa,onRenderTriggered:()=>da,onScopeDispose:()=>He,onServerPrefetch:()=>ua,onUnmounted:()=>la,onUpdated:()=>sa,onWatcherCleanup:()=>zn,openBlock:()=>V,patchProp:()=>Pl,popScopeId:()=>Cr,provide:()=>Er,proxyRefs:()=>Cn,pushScopeId:()=>Sr,queuePostFlushCb:()=>lr,reactive:()=>an,readonly:()=>sn,ref:()=>M,registerRuntimeCompiler:()=>rc,render:()=>Pu,renderList:()=>L,renderSlot:()=>Ca,resolveComponent:()=>ga,resolveDirective:()=>ya,resolveDynamicComponent:()=>va,resolveFilter:()=>null,resolveTransitionHooks:()=>si,setBlockTracking:()=>ws,setDevtoolsHook:()=>xc,setTransitionHooks:()=>ui,shallowReactive:()=>on,shallowReadonly:()=>cn,shallowRef:()=>_n,ssrContextKey:()=>kr,ssrUtils:()=>Sc,stop:()=>it,toDisplayString:()=>O,toHandlerKey:()=>le,toHandlers:()=>Ta,toRaw:()=>A,toRef:()=>kn,toRefs:()=>En,toValue:()=>xn,transformVNodeArgs:()=>Os,triggerRef:()=>bn,unref:()=>N,useAttrs:()=>za,useCssModule:()=>Wl,useCssVars:()=>il,useHost:()=>Hl,useId:()=>pi,useModel:()=>fo,useSSRContext:()=>Ar,useShadowRoot:()=>Ul,useSlots:()=>Ra,useTemplateRef:()=>hi,useTransitionState:()=>ei,vModelCheckbox:()=>fu,vModelDynamic:()=>bu,vModelRadio:()=>mu,vModelSelect:()=>hu,vModelText:()=>J,vShow:()=>el,version:()=>_c,warn:()=>vc,watch:()=>Pr,watchEffect:()=>jr,watchPostEffect:()=>Mr,watchSyncEffect:()=>Nr,withAsyncContext:()=>Ga,withCtx:()=>P,withDefaults:()=>La,withDirectives:()=>F,withKeys:()=>Ou,withMemo:()=>hc,withModifiers:()=>Eu,withScopeId:()=>wr}),Uu=()=>{},Wu=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]]))}},Y=JSON.parse(document.getElementById(`manager-boot`).textContent);function Gu(){let e=document.cookie.match(/(?:^|; )XSRF-TOKEN=([^;]+)/);return e?decodeURIComponent(e[1]):``}async function Ku(e,t,n){let r=await fetch(t,{method:e,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Gu(),...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 Wu(r.status,i);return i}async function qu(e,t){let n=await fetch(e,{method:`POST`,credentials:`same-origin`,headers:{Accept:`application/json`,"X-Requested-With":`XMLHttpRequest`,"X-XSRF-TOKEN":Gu()},body:t}),r=await n.json().catch(()=>null);if(!n.ok)throw new Wu(n.status,r);return r}var X={get:e=>Ku(`GET`,e),post:(e,t={})=>Ku(`POST`,e,t),put:(e,t={})=>Ku(`PUT`,e,t),delete:(e,t)=>Ku(`DELETE`,e,t)};function Ju(e){let t=an({values:{...e},errors:{},busy:!1,async send(e,n){t.busy=!0,t.errors={};try{return await X[e](n,t.values)}catch(e){if(e instanceof Wu&&e.status===422)return t.errors=e.errors,null;throw e}finally{t.busy=!1}}});return t}var Yu={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`,"Start screen":`Startscherm`,"The dashboard":`Het dashboard`,Primary:`Primair`,"Primary group":`Primaire groep`,"Where accounts with this as their primary group land when they open the manager.":`Waar accounts met dit als primaire groep landen als ze de manager openen.`,"The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.":`De primaire groep is het label van het account en bepaalt het startscherm. Wat het account mag, is alles wat al zijn groepen samen toestaan.`,Settings:`Instellingen`,"Refresh now":`Nu verversen`,"Refreshed.":`Ververst.`,"These parts need new tables:":`Deze onderdelen hebben nieuwe tabellen nodig:`,"Run php artisan migrate on the server.":`Draai php artisan migrate op de server.`,"The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.":`De wijzigingen zijn opgeslagen, maar het bestand dat ze direct laat werken kon niet geschreven worden (bootstrap/cache). Ze werken na Nu verversen, of als die map beschreven mag worden.`,"A change works at once and is kept in the database.":`Een wijziging werkt direct en wordt in de database bewaard.`,"It is also written into the .env file.":`Hij wordt ook in het .env-bestand geschreven.`,"The .env file may not be written here, so only the database is used.":`Het .env-bestand mag hier niet beschreven worden, dus alleen de database wordt gebruikt.`,"Set. Type to replace it.":`Ingesteld. Typ om te vervangen.`,"Keep what is saved":`Bewaar wat is opgeslagen`,"Back to what the config says":`Terug naar wat de config zegt`,"Your password":`Je wachtwoord`,"Keys, passwords and addresses of integrations are only changed after you type your own password.":`Sleutels, wachtwoorden en adressen van koppelingen worden alleen gewijzigd nadat je je eigen wachtwoord typt.`,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`},Xu={};function Zu(e){Xu=e.toLowerCase().startsWith(`nl`)?Yu:{}}function Z(e,t){let n=Xu[e]??e;return t?n.replace(/:(\w+)/g,(e,n)=>n in t?String(t[n]):e):n}var Qu=[`d`],$u=I({__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]?(V(),H(`svg`,{key:0,class:D(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`},[W(`path`,{d:t[e.name]},null,8,Qu)],2)):q(``,!0)}}),ed=[`href`],td=I({__name:`Link`,props:{href:{}},setup(e){function t(e,t){e.metaKey||e.ctrlKey||e.shiftKey||e.button!==0||(e.preventDefault(),v0(t))}return(n,r)=>(V(),H(`a`,{href:e.href,onClick:r[0]||=n=>t(n,e.href)},[Ca(n.$slots,`default`)],8,ed))}}),nd={key:0,class:`mx-auto max-w-3xl pt-4`},rd={class:`font-display text-3xl font-bold`},id={class:`mb-8 mt-2 text-lg text-muted`},ad={class:`grid gap-4 sm:grid-cols-2`},od={class:`text-xl font-bold`},sd={key:0,class:`text-muted`},cd={class:`font-display mb-6 text-2xl font-bold`},ld={class:`mb-4 text-muted`},ud={class:`grid gap-3 sm:grid-cols-2 lg:grid-cols-3`},dd=I({__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=Y.view===`simple`,r=(Y.user?.name??``).split(` `)[0];return(i,a)=>n?(V(),H(`div`,nd,[W(`h1`,rd,O(N(Z)(`Hi :name!`,{name:N(r)})),1),W(`p`,id,O(N(Z)(`What would you like to do today? Take your time and pick one.`)),1),W(`div`,ad,[(V(!0),H(z,null,L(e.navigation,e=>(V(),U(td,{key:e.href,href:e.href,class:`m-card m-tile`},{default:P(()=>[G($u,{name:t(e),big:``,class:`text-brand`},null,8,[`name`]),W(`span`,od,O(N(Z)(e.label)),1),e.hint?(V(),H(`span`,sd,O(N(Z)(e.hint)),1)):q(``,!0)]),_:2},1032,[`href`]))),128))])])):(V(),H(z,{key:1},[W(`h1`,cd,O(N(Z)(`Dashboard`)),1),W(`p`,ld,O(N(Y).user?.name),1),W(`div`,ud,[(V(!0),H(z,null,L(e.navigation,e=>(V(),U(td,{key:e.href,href:e.href,class:`m-card block p-5 font-semibold transition hover:border-brand`},{default:P(()=>[K(O(N(Z)(e.label)),1)]),_:2},1032,[`href`]))),128))])],64))}}),fd={class:`m-card max-w-xl p-6`},pd={class:`text-sm`},md=I({__name:`Fallback`,setup(e){return(e,t)=>(V(),H(`div`,fd,[W(`p`,pd,O(N(Z)(`This page has no screen in the manager yet.`)),1),G(td,{href:N(Y).base,class:`m-btn m-btn-secondary mt-4`},{default:P(()=>[K(O(N(Z)(`Go to the dashboard`)),1)]),_:1},8,[`href`])]))}}),hd={class:`grid min-h-screen place-items-center px-4`},gd=[`src`],_d={class:`font-display text-2xl font-bold`},vd={class:`mt-1 text-sm text-muted`},yd={class:`mt-6`},bd={for:`email`,class:`m-label`},xd={key:0,class:`m-error`},Sd={class:`mt-4`},Cd={for:`password`,class:`m-label`},wd={key:0,class:`m-error`},Td={key:0,class:`mt-4`},Ed={key:0,class:`m-error`},Dd={key:1,class:`mt-4`},Od=[`for`],kd=[`id`,`onUpdate:modelValue`,`type`,`autocomplete`,`required`],Ad={key:0,class:`m-error`},jd={class:`mt-4 flex items-center gap-2 text-sm text-muted`},Md=[`disabled`],Nd=I({__name:`Login`,setup(e){let t=Y.login_fields??[],n=Ju({email:``,password:``,remember:!1,...Object.fromEntries(t.map(e=>[e.name,``]))}),r=M(null),i;aa(()=>{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`,Y.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)=>(V(),H(`div`,hd,[W(`form`,{class:`m-card w-full max-w-sm p-7`,onSubmit:Eu(a,[`prevent`])},[N(Y).logo?(V(),H(`img`,{key:0,src:N(Y).logo,alt:``,class:`mb-4 h-9 w-auto`},null,8,gd)):q(``,!0),W(`h1`,_d,O(N(Y).name),1),W(`p`,vd,O(N(Z)(`Log in to manage the site.`)),1),W(`div`,yd,[W(`label`,bd,O(N(Z)(`Email`)),1),F(W(`input`,{id:`email`,"onUpdate:modelValue":i[0]||=e=>N(n).values.email=e,type:`email`,autocomplete:`username`,required:``,autofocus:``,class:`m-input`},null,512),[[J,N(n).values.email]]),N(n).errors.email?(V(),H(`p`,xd,O(N(n).errors.email),1)):q(``,!0)]),W(`div`,Sd,[W(`label`,Cd,O(N(Z)(`Password`)),1),F(W(`input`,{id:`password`,"onUpdate:modelValue":i[1]||=e=>N(n).values.password=e,type:`password`,autocomplete:`current-password`,required:``,class:`m-input`},null,512),[[J,N(n).values.password]]),N(n).errors.password?(V(),H(`p`,wd,O(N(n).errors.password),1)):q(``,!0)]),(V(!0),H(z,null,L(N(t),e=>(V(),H(z,{key:e.name},[e.type===`turnstile`?(V(),H(`div`,Td,[W(`div`,{ref_for:!0,ref:e=>r.value=e},null,512),N(n).errors[e.name]?(V(),H(`p`,Ed,O(N(n).errors[e.name]),1)):q(``,!0)])):(V(),H(`div`,Dd,[W(`label`,{for:`login-`+e.name,class:`m-label`},O(N(Z)(e.label??e.name)),9,Od),F(W(`input`,{id:`login-`+e.name,"onUpdate:modelValue":t=>N(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,kd),[[bu,N(n).values[e.name]]]),N(n).errors[e.name]?(V(),H(`p`,Ad,O(N(n).errors[e.name]),1)):q(``,!0)]))],64))),128)),W(`label`,jd,[F(W(`input`,{"onUpdate:modelValue":i[2]||=e=>N(n).values.remember=e,type:`checkbox`},null,512),[[fu,N(n).values.remember]]),K(` `+O(N(Z)(`Keep me logged in`)),1)]),W(`button`,{type:`submit`,class:`m-btn m-btn-primary mt-6 w-full justify-center`,disabled:N(n).busy},O(N(n).busy?N(Z)(`Logging in…`):N(Z)(`Log in`)),9,Md)],32)]))}}),Pd={class:`m-card max-h-[85vh] w-full max-w-3xl overflow-y-auto p-5`,role:`dialog`,"aria-modal":`true`},Fd={class:`mb-4 flex items-center justify-between`},Id={class:`font-display text-lg font-bold`},Ld={key:0,class:`text-sm text-muted`},Rd={key:1,class:`text-sm text-muted`},zd={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4`},Bd=[`onClick`],Vd=[`src`,`alt`],Hd={class:`block truncate px-2 py-1 text-xs`},Ud=I({__name:`MediaPicker`,emits:[`pick`,`close`],setup(e,{emit:t}){let n=t,r=M([]),i=M(!0);return aa(async()=>{try{r.value=(await X.get(`${Y.base}/media/items`)).items.filter(e=>e.is_image)}finally{i.value=!1}}),(e,t)=>(V(),H(`div`,{class:`fixed inset-0 z-50 grid place-items-center bg-black/60 p-4`,onClick:t[1]||=Eu(e=>n(`close`),[`self`])},[W(`div`,Pd,[W(`div`,Fd,[W(`h2`,Id,O(N(Z)(`Choose an image`)),1),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t[0]||=e=>n(`close`)},O(N(Z)(`Cancel`)),1)]),i.value?(V(),H(`p`,Ld,O(N(Z)(`Loading…`)),1)):r.value.length?(V(),H(`div`,zd,[(V(!0),H(z,null,L(r.value,e=>(V(),H(`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)},[W(`img`,{src:e.url,alt:e.name,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,Vd),W(`span`,Hd,O(e.name),1)],8,Bd))),128))])):(V(),H(`p`,Rd,O(N(Z)(`No images yet.`)),1))])]))}}),Wd=[`aria-label`],Gd=[`disabled`,`title`],Kd=[`disabled`,`title`],qd=[`disabled`,`title`],Jd=[`disabled`,`title`],Yd=[`disabled`,`title`],Xd=[`disabled`,`title`],Zd=[`disabled`],Qd={class:`ml-auto flex gap-1`},$d=[`id`,`value`,`rows`,`required`,`maxlength`],ef={key:0,class:`m-input min-h-40 overflow-auto`},tf={key:0,class:`text-sm text-muted`},nf=[`innerHTML`],rf=I({__name:`MarkdownEditor`,props:{modelValue:{},id:{},rows:{},required:{type:Boolean},maxlength:{}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=M(null),a=M(`write`),o=M(``),s=M(!1),c=M(!1),l=Y.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 X.post(`${Y.base}/markdown`,{text:n.modelValue})).html}finally{s.value=!1}}}return(t,n)=>(V(),H(`div`,null,[W(`div`,{class:`mb-2 flex flex-wrap items-center gap-1`,role:`toolbar`,"aria-label":N(Z)(`Formatting`)},[W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 font-bold`,disabled:a.value===`preview`,title:N(Z)(`Bold`),onClick:n[0]||=e=>u(`**`,`**`,N(Z)(`bold`))},`B`,8,Gd),W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1 italic`,disabled:a.value===`preview`,title:N(Z)(`Italic`),onClick:n[1]||=e=>u(`*`,`*`,N(Z)(`italic`))},`I`,8,Kd),W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(Z)(`Heading`),onClick:n[2]||=e=>d(`## `)},`H`,8,qd),W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(Z)(`List`),onClick:n[3]||=e=>d(`- `)},`•`,8,Jd),W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(Z)(`Quote`),onClick:n[4]||=e=>d(`> `)},`”`,8,Yd),W(`button`,{type:`button`,class:`m-btn m-btn-secondary !px-2 !py-1`,disabled:a.value===`preview`,title:N(Z)(`Link`),onClick:n[5]||=e=>u(`[`,`](https://)`,N(Z)(`text`))},`🔗`,8,Xd),N(l)?(V(),H(`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},O(N(Z)(`Photo`)),9,Zd)):q(``,!0),W(`span`,Qd,[W(`button`,{type:`button`,class:D([`m-btn !px-3 !py-1`,a.value===`write`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[7]||=e=>p(`write`)},O(N(Z)(`Write`)),3),W(`button`,{type:`button`,class:D([`m-btn !px-3 !py-1`,a.value===`preview`?`m-btn-primary`:`m-btn-secondary`]),onClick:n[8]||=e=>p(`preview`)},O(N(Z)(`Preview`)),3)])],8,Wd),F(W(`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,$d),[[el,a.value===`write`]]),a.value===`preview`?(V(),H(`div`,ef,[s.value?(V(),H(`p`,tf,O(N(Z)(`Loading…`)),1)):(V(),H(`div`,{key:1,class:`m-prose`,innerHTML:o.value},null,8,nf))])):q(``,!0),c.value?(V(),U(Ud,{key:1,onPick:f,onClose:n[10]||=e=>c.value=!1})):q(``,!0)]))}}),af={class:`m-card mt-6 max-w-3xl p-5`},of={class:`font-display text-lg font-bold`},sf={key:0,class:`mt-2 text-sm text-muted`},cf={key:1,class:`mt-2 text-sm text-muted`},lf={key:2,class:`mt-3 divide-y divide-line`},uf={class:`flex flex-wrap items-center justify-between gap-2`},df=[`aria-expanded`,`onClick`],ff={class:`font-semibold`},pf={key:0,class:`text-muted`},mf={key:1,class:`m-badge ml-2`},hf={class:`block text-xs text-muted`},gf=[`onClick`],_f={key:0,class:`mt-2 space-y-2 text-sm`},vf={class:`text-xs font-semibold uppercase tracking-wide text-muted`},yf={class:`whitespace-pre-wrap break-words`},bf=I({__name:`RevisionsPanel`,props:{type:{},id:{}},setup(e){let t=e,n=M([]),r=M(!1),i=M(null),a=M(!0),o=`${Y.base}/revisions/${t.type}/${t.id}`;aa(async()=>{try{let e=await X.get(o);n.value=e.revisions,r.value=e.can_restore}finally{a.value=!1}});async function s(e){window.confirm(Z(`Put this version back? The text now is kept in the history.`))&&(await X.post(`${o}/${e.id}/restore`),$(Z(`The earlier version is back.`)),await y0())}let c=e=>new Date(e).toLocaleString(Y.locale||void 0);return(e,t)=>(V(),H(`section`,af,[W(`h2`,of,O(N(Z)(`History`)),1),a.value?(V(),H(`p`,sf,O(N(Z)(`Loading…`)),1)):n.value.length?(V(),H(`ul`,lf,[(V(!0),H(z,null,L(n.value,e=>(V(),H(`li`,{key:e.id,class:`py-3`},[W(`div`,uf,[W(`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},[W(`span`,ff,O(c(e.created_at)),1),e.user?(V(),H(`span`,pf,` · `+O(e.user),1)):q(``,!0),e.current?(V(),H(`span`,mf,O(N(Z)(`Now`)),1)):q(``,!0),W(`span`,hf,O(e.changed.join(`, `)),1)],8,df),r.value&&!e.current?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>s(e)},O(N(Z)(`Put back`)),9,gf)):q(``,!0)]),i.value===e.id?(V(),H(`dl`,_f,[(V(!0),H(z,null,L(e.values,(e,t)=>(V(),H(`div`,{key:t},[W(`dt`,vf,O(t),1),W(`dd`,yf,O(e),1)]))),128))])):q(``,!0)]))),128))])):(V(),H(`p`,cf,O(N(Z)(`Nothing here yet.`)),1))]))}}),xf={class:`mb-6 flex items-center justify-between gap-3`},Sf={class:`font-display text-2xl font-bold`},Cf={for:`title`,class:`m-label`},wf={key:0,class:`m-error`},Tf={class:`grid gap-5 sm:grid-cols-2`},Ef={for:`slug`,class:`m-label`},Df={key:0,class:`m-error`},Of={for:`category`,class:`m-label`},kf={id:`categories`},Af=[`value`],jf={for:`excerpt`,class:`m-label`},Mf={key:0,class:`m-error`},Nf={for:`body`,class:`m-label`},Pf={key:0,class:`m-error`},Ff={class:`grid gap-5 sm:grid-cols-2`},If={for:`cover`,class:`m-label`},Lf={class:`flex gap-2`},Rf={for:`tags`,class:`m-label`},zf={id:`known-tags`},Bf=[`value`],Vf={class:`flex flex-wrap items-center gap-6`},Hf={class:`flex items-center gap-2 text-sm`},Uf={key:0,class:`flex items-center gap-2 text-sm`},Wf={key:1},Gf={for:`at`,class:`m-label`},Kf=[`disabled`],qf=I({__name:`PostForm`,props:{post:{},categories:{},known_tags:{}},setup(e){let t=e.post,n=Ju({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=M(!1),i=(t?.tags??[]).join(`, `);async function a(){n.values.tags=i.split(`,`).map(e=>e.trim()).filter(Boolean),(t?await n.send(`put`,`${Y.base}/posts/${t.id}`):await n.send(`post`,`${Y.base}/posts`))&&($(Z(t?`Saved.`:`Created.`)),v0(`${Y.base}/posts`))}return(o,s)=>(V(),H(z,null,[W(`div`,xf,[W(`h1`,Sf,O(N(t)?N(t).title:N(Z)(`New post`)),1),G(td,{href:N(Y).base+`/posts`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Back`)),1)]),_:1},8,[`href`])]),W(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Eu(a,[`prevent`])},[W(`div`,null,[W(`label`,Cf,O(N(Z)(`Title`)),1),F(W(`input`,{id:`title`,"onUpdate:modelValue":s[0]||=e=>N(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.title]]),N(n).errors.title?(V(),H(`p`,wf,O(N(n).errors.title),1)):q(``,!0)]),W(`div`,Tf,[W(`div`,null,[W(`label`,Ef,O(N(Z)(`Address (slug)`)),1),F(W(`input`,{id:`slug`,"onUpdate:modelValue":s[1]||=e=>N(n).values.slug=e,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.slug]]),N(n).errors.slug?(V(),H(`p`,Df,O(N(n).errors.slug),1)):q(``,!0)]),W(`div`,null,[W(`label`,Of,O(N(Z)(`Category`)),1),F(W(`input`,{id:`category`,"onUpdate:modelValue":s[2]||=e=>N(n).values.category=e,list:`categories`,maxlength:`60`,class:`m-input`},null,512),[[J,N(n).values.category]]),W(`datalist`,kf,[(V(!0),H(z,null,L(e.categories,e=>(V(),H(`option`,{key:e,value:e},null,8,Af))),128))])])]),W(`div`,null,[W(`label`,jf,O(N(Z)(`Summary`)),1),F(W(`textarea`,{id:`excerpt`,"onUpdate:modelValue":s[3]||=e=>N(n).values.excerpt=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[J,N(n).values.excerpt]]),N(n).errors.excerpt?(V(),H(`p`,Mf,O(N(n).errors.excerpt),1)):q(``,!0)]),W(`div`,null,[W(`label`,Nf,O(N(Z)(`Text (Markdown)`)),1),G(rf,{id:`body`,modelValue:N(n).values.body,"onUpdate:modelValue":s[4]||=e=>N(n).values.body=e,required:``},null,8,[`modelValue`]),N(n).errors.body?(V(),H(`p`,Pf,O(N(n).errors.body),1)):q(``,!0)]),W(`div`,Ff,[W(`div`,null,[W(`label`,If,O(N(Z)(`Cover image`)),1),W(`div`,Lf,[F(W(`input`,{id:`cover`,"onUpdate:modelValue":s[5]||=e=>N(n).values.cover_image=e,maxlength:`2048`,class:`m-input`},null,512),[[J,N(n).values.cover_image]]),N(Y).permissions.includes(`media.view`)?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:s[6]||=e=>r.value=!0},O(N(Z)(`Choose`)),1)):q(``,!0)])]),W(`div`,null,[W(`label`,Rf,O(N(Z)(`Tags (comma separated)`)),1),F(W(`input`,{id:`tags`,"onUpdate:modelValue":s[7]||=e=>j(i)?i.value=e:i=e,list:`known-tags`,class:`m-input`},null,512),[[J,N(i)]]),W(`datalist`,zf,[(V(!0),H(z,null,L(e.known_tags,e=>(V(),H(`option`,{key:e,value:e},null,8,Bf))),128))])])]),W(`div`,Vf,[W(`label`,Hf,[F(W(`input`,{"onUpdate:modelValue":s[8]||=e=>N(n).values.is_featured=e,type:`checkbox`},null,512),[[fu,N(n).values.is_featured]]),K(` `+O(N(Z)(`Featured`)),1)]),N(Y).permissions.includes(`posts.publish`)?(V(),H(`label`,Uf,[F(W(`input`,{"onUpdate:modelValue":s[9]||=e=>N(n).values.is_published=e,type:`checkbox`},null,512),[[fu,N(n).values.is_published]]),K(` `+O(N(Z)(`Publish`)),1)])):q(``,!0),N(n).values.is_published?(V(),H(`div`,Wf,[W(`label`,Gf,O(N(Z)(`Publish at`)),1),F(W(`input`,{id:`at`,"onUpdate:modelValue":s[10]||=e=>N(n).values.published_at=e,type:`datetime-local`,class:`m-input`},null,512),[[J,N(n).values.published_at]])])):q(``,!0)]),W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,Kf)],32),N(t)&&N(Y).permissions.includes(`revisions.view`)?(V(),U(bf,{key:0,type:`posts`,id:N(t).id},null,8,[`id`])):q(``,!0),r.value?(V(),U(Ud,{key:1,onPick:s[11]||=e=>{N(n).values.cover_image=e,r.value=!1},onClose:s[12]||=e=>r.value=!1})):q(``,!0)],64))}}),Jf={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Yf={class:`font-display text-2xl font-bold`},Xf={key:0,class:`m-card p-5 text-sm text-muted`},Zf={key:1,class:`m-card divide-y divide-line`},Qf={class:`min-w-0`},$f={class:`truncate font-semibold`},ep={class:`mt-1 flex items-center gap-2 text-xs text-muted`},tp={class:`m-badge`},np={key:0},rp={class:`flex gap-2`},ip=[`onClick`],ap=[`onClick`],op=I({__name:`PostsIndex`,props:{posts:{}},setup(e){let t={draft:`Draft`,scheduled:`Scheduled`,published:`Published`};async function n(e){await X.put(`${Y.base}/posts/${e.id}/online`,{online:e.status!==`published`}),await y0()}async function r(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/posts/${e.id}`),$(Z(`Deleted.`)),await y0())}return(i,a)=>(V(),H(z,null,[W(`div`,Jf,[W(`h1`,Yf,O(N(Z)(`Posts`)),1),N(Y).permissions.includes(`posts.write`)?(V(),U(td,{key:0,href:N(Y).base+`/posts/create`,class:`m-btn m-btn-primary`},{default:P(()=>[K(O(N(Z)(`New post`)),1)]),_:1},8,[`href`])):q(``,!0)]),e.posts.length?(V(),H(`ul`,Zf,[(V(!0),H(z,null,L(e.posts,e=>(V(),H(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[W(`div`,Qf,[W(`p`,$f,O(e.title),1),W(`p`,ep,[W(`span`,tp,O(N(Z)(t[e.status])),1),e.category?(V(),H(`span`,np,O(e.category),1)):q(``,!0)])]),W(`div`,rp,[N(Y).permissions.includes(`posts.publish`)&&e.can_change?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>n(e)},O(e.status===`published`?N(Z)(`Take offline`):N(Z)(`Put online`)),9,ip)):q(``,!0),e.can_change?(V(),U(td,{key:1,href:`${N(Y).base}/posts/${e.id}/edit`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Edit`)),1)]),_:1},8,[`href`])):q(``,!0),e.can_delete?(V(),H(`button`,{key:2,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>r(e)},O(N(Z)(`Delete`)),9,ap)):q(``,!0)])]))),128))])):(V(),H(`p`,Xf,O(N(Z)(`No posts yet.`)),1))],64))}}),sp=[`src`],cp=I({__name:`Mascot`,props:{name:{},flip:{type:Boolean},size:{}},setup(e){return(t,n)=>(V(),H(`img`,{src:N(Y).mascot+e.name,alt:``,class:D([`m-mascot select-none object-contain`,e.flip?`-scale-x-100`:``]),style:ve({width:(e.size??112)+`px`,height:(e.size??112)+`px`}),draggable:`false`},null,14,sp))}}),lp={class:`font-display mb-6 text-2xl font-bold`},up={for:`name`,class:`m-label`},dp={key:0,class:`m-error`},fp={class:`m-label`},pp={class:`text-sm`},mp={class:`m-label`},hp={class:`flex flex-wrap gap-1.5`},gp={key:0,class:`m-badge`},_p={key:0,class:`m-badge`},vp={key:0,class:`rounded-lg border border-line p-4`},yp={class:`px-1.5 text-sm font-semibold`},bp={class:`mt-1 flex flex-wrap gap-3`},xp=[`onUpdate:modelValue`,`value`],Sp={class:`flex`},Cp={key:0,class:`m-error`},wp={key:1,class:`rounded-lg border border-line p-4`},Tp={class:`px-1.5 text-sm font-semibold`},Ep={class:`mt-1 flex flex-wrap gap-3`},Dp=[`onUpdate:modelValue`,`value`],Op={key:0,class:`m-error`},kp={class:`space-y-4 rounded-lg border border-line p-4`},Ap={class:`px-1.5 text-sm font-semibold`},jp={class:`m-help`},Mp={for:`current_password`,class:`m-label`},Np={key:0,class:`m-error`},Pp={for:`password`,class:`m-label`},Fp={class:`m-help`},Ip={key:0,class:`m-error`},Lp={for:`password_confirmation`,class:`m-label`},Rp={key:2,class:`flex items-center gap-3 rounded-lg border border-line p-4`},zp={class:`text-sm font-semibold`},Bp=[`disabled`],Vp=I({__name:`Profile`,props:{profile:{}},setup(e){let t=e,n=Ju({name:t.profile.name,theme:t.profile.theme,locale:t.profile.locale,current_password:``,password:``,password_confirmation:``});async function r(){await n.send(`put`,Y.base+`/profile`)&&($(Z(`Saved.`)),(n.values.theme!==Y.theme||n.values.locale!==Y.locale)&&window.location.reload(),n.values.current_password=n.values.password=n.values.password_confirmation=``)}return(t,i)=>(V(),H(z,null,[W(`h1`,lp,O(N(Z)(`My account`)),1),W(`form`,{class:`m-card max-w-xl space-y-5 p-5`,onSubmit:Eu(r,[`prevent`])},[W(`div`,null,[W(`label`,up,O(N(Z)(`Name`)),1),F(W(`input`,{id:`name`,"onUpdate:modelValue":i[0]||=e=>N(n).values.name=e,type:`text`,required:``,maxlength:`255`,class:`m-input`,autocomplete:`name`},null,512),[[J,N(n).values.name]]),N(n).errors.name?(V(),H(`p`,dp,O(N(n).errors.name),1)):q(``,!0)]),W(`div`,null,[W(`span`,fp,O(N(Z)(`Email address`)),1),W(`p`,pp,O(e.profile.email),1)]),W(`div`,null,[W(`span`,mp,O(N(Z)(`What you may do`)),1),W(`p`,hp,[e.profile.is_super_admin?(V(),H(`span`,gp,O(N(Z)(`Super admin: everything`)),1)):(V(),H(z,{key:1},[(V(!0),H(z,null,L(e.profile.groups,e=>(V(),H(`span`,{key:e,class:`m-badge`},O(e),1))),128)),e.profile.groups.length?q(``,!0):(V(),H(`span`,_p,O(N(Z)(`Not in a group yet`)),1))],64))])]),e.profile.themes.length?(V(),H(`fieldset`,vp,[W(`legend`,yp,O(N(Z)(`Look`)),1),W(`div`,bp,[(V(!0),H(z,null,L(e.profile.themes,e=>(V(),H(`label`,{key:e.key,class:D([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,N(n).values.theme===e.key?`border-brand`:`border-line`])},[F(W(`input`,{"onUpdate:modelValue":e=>N(n).values.theme=e,type:`radio`,name:`theme`,value:e.key,class:`sr-only`},null,8,xp),[[mu,N(n).values.theme]]),W(`span`,Sp,[(V(),H(z,null,L([`ink`,`panel`,`brand`],t=>W(`span`,{key:t,class:`h-4 w-4 border border-line`,style:ve({background:e.colors[t]})},null,4)),64))]),K(` `+O(e.label),1)],2))),128))]),N(n).errors.theme?(V(),H(`p`,Cp,O(N(n).errors.theme),1)):q(``,!0)])):q(``,!0),e.profile.locales.length?(V(),H(`fieldset`,wp,[W(`legend`,Tp,O(N(Z)(`Language`)),1),W(`div`,Ep,[(V(!0),H(z,null,L(e.profile.locales,e=>(V(),H(`label`,{key:e,class:D([`flex cursor-pointer items-center gap-2 rounded-lg border px-3 py-2 text-sm`,N(n).values.locale===e?`border-brand`:`border-line`])},[F(W(`input`,{"onUpdate:modelValue":e=>N(n).values.locale=e,type:`radio`,name:`locale`,value:e,class:`sr-only`},null,8,Dp),[[mu,N(n).values.locale]]),K(` `+O(e===`nl`?`Nederlands`:`English`),1)],2))),128))]),N(n).errors.locale?(V(),H(`p`,Op,O(N(n).errors.locale),1)):q(``,!0)])):q(``,!0),W(`fieldset`,kp,[W(`legend`,Ap,O(N(Z)(`New password`)),1),W(`p`,jp,O(N(Z)(`Leave empty to keep the password you have.`)),1),W(`div`,null,[W(`label`,Mp,O(N(Z)(`Current password`)),1),F(W(`input`,{id:`current_password`,"onUpdate:modelValue":i[1]||=e=>N(n).values.current_password=e,type:`password`,class:`m-input`,autocomplete:`current-password`},null,512),[[J,N(n).values.current_password]]),N(n).errors.current_password?(V(),H(`p`,Np,O(N(n).errors.current_password),1)):q(``,!0)]),W(`div`,null,[W(`label`,Pp,O(N(Z)(`New password`)),1),F(W(`input`,{id:`password`,"onUpdate:modelValue":i[2]||=e=>N(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[J,N(n).values.password]]),W(`p`,Fp,O(N(Z)(`At least 12 characters.`)),1),N(n).errors.password?(V(),H(`p`,Ip,O(N(n).errors.password),1)):q(``,!0)]),W(`div`,null,[W(`label`,Lp,O(N(Z)(`New password, once more`)),1),F(W(`input`,{id:`password_confirmation`,"onUpdate:modelValue":i[3]||=e=>N(n).values.password_confirmation=e,type:`password`,maxlength:`200`,class:`m-input`,autocomplete:`new-password`},null,512),[[J,N(n).values.password_confirmation]])])]),N(Y).tutorial_state?(V(),H(`div`,Rp,[G(cp,{name:`peek`,size:64}),W(`div`,null,[W(`p`,zp,O(N(Z)(`The tour`)),1),W(`button`,{type:`button`,class:`text-sm text-brand underline`,onClick:i[4]||=e=>N(Q).tour=!0},O(N(Z)(`Show the tour`)),1)])])):q(``,!0),W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,Bp)],32)],64))}}),Hp={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Up={class:`font-display text-2xl font-bold`},Wp={class:`grid gap-4 sm:grid-cols-2`},Gp={class:`m-label`,for:`a-name`},Kp={key:0,class:`m-error`},qp={class:`m-label`,for:`a-email`},Jp={key:0,class:`m-error`},Yp={class:`m-label`,for:`a-pass`},Xp=[`required`],Zp={class:`m-help`},Qp={key:0,class:`m-error`},$p={key:0},em={class:`m-label`},tm=[`value`,`disabled`],nm={key:0,class:`ml-auto flex items-center gap-1 text-xs text-muted`},rm=[`value`],im={class:`m-help`},am={key:1},om={class:`m-label`},sm={class:`flex items-center gap-2 py-0.5 text-sm`},cm={class:`flex items-center gap-2 py-0.5 text-sm`},lm={class:`flex items-center gap-2 py-0.5 text-sm`},um={class:`flex items-center gap-2 text-sm`},dm={class:`flex gap-2`},fm=[`disabled`],pm={class:`m-card divide-y divide-line`},mm={class:`min-w-0`},hm={class:`truncate font-semibold`},gm={key:0,class:`text-xs font-normal text-muted`},_m={class:`truncate text-xs text-muted`},vm={class:`mt-1 flex flex-wrap gap-1`},ym={key:0,class:`m-badge`},bm=[`title`],xm={class:`flex gap-2`},Sm=[`onClick`],Cm=[`onClick`],wm=I({__name:`AccountsIndex`,props:{accounts:{},groups:{}},setup(e){let t=M(null),n=Ju({name:``,email:``,password:``,groups:[],primary_group:0,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.primary_group=e===`new`?0:e.groups.find(e=>e.primary)?.id??0,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`,`${Y.base}/accounts`):await n.send(`put`,`${Y.base}/accounts/${e.id}`))&&($(Z(`Saved.`)),t.value=null,await y0())}async function a(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/accounts/${e.id}`),$(Z(`Deleted.`)),await y0())}return(o,s)=>(V(),H(z,null,[W(`div`,Hp,[W(`h1`,Up,O(N(Z)(`Accounts`)),1),W(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:s[0]||=e=>r(`new`)},O(N(Z)(`New account`)),1)]),t.value?(V(),H(`form`,{key:0,class:`m-card mb-6 max-w-2xl space-y-4 p-5`,onSubmit:Eu(i,[`prevent`])},[W(`div`,Wp,[W(`div`,null,[W(`label`,Gp,O(N(Z)(`Name`)),1),F(W(`input`,{id:`a-name`,"onUpdate:modelValue":s[1]||=e=>N(n).values.name=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.name]]),N(n).errors.name?(V(),H(`p`,Kp,O(N(n).errors.name),1)):q(``,!0)]),W(`div`,null,[W(`label`,qp,O(N(Z)(`Email address`)),1),F(W(`input`,{id:`a-email`,"onUpdate:modelValue":s[2]||=e=>N(n).values.email=e,type:`email`,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.email]]),N(n).errors.email?(V(),H(`p`,Jp,O(N(n).errors.email),1)):q(``,!0)])]),W(`div`,null,[W(`label`,Yp,O(N(Z)(`Password`)),1),F(W(`input`,{id:`a-pass`,"onUpdate:modelValue":s[3]||=e=>N(n).values.password=e,type:`password`,minlength:`12`,maxlength:`200`,required:t.value===`new`,class:`m-input`,autocomplete:`new-password`},null,8,Xp),[[J,N(n).values.password]]),W(`p`,Zp,O(t.value===`new`?N(Z)(`At least 12 characters.`):N(Z)(`Leave empty to keep the password you have.`)),1),N(n).errors.password?(V(),H(`p`,Qp,O(N(n).errors.password),1)):q(``,!0)]),e.groups.length?(V(),H(`fieldset`,$p,[W(`legend`,em,O(N(Z)(`Groups`)),1),(V(!0),H(z,null,L(e.groups,e=>(V(),H(`label`,{key:e.id,class:D([`flex items-center gap-2 py-0.5 text-sm`,e.can_give?``:`opacity-50`])},[F(W(`input`,{"onUpdate:modelValue":s[4]||=e=>N(n).values.groups=e,type:`checkbox`,value:e.id,disabled:!e.can_give},null,8,tm),[[fu,N(n).values.groups]]),K(` `+O(e.name)+` `,1),N(n).values.groups.includes(e.id)&&N(n).values.groups.length>1?(V(),H(`label`,nm,[F(W(`input`,{"onUpdate:modelValue":s[5]||=e=>N(n).values.primary_group=e,type:`radio`,value:e.id},null,8,rm),[[mu,N(n).values.primary_group]]),K(` `+O(N(Z)(`Primary`)),1)])):q(``,!0)],2))),128)),W(`p`,im,O(N(Z)(`The primary group is the label of the account and sets its start screen. What it may do is everything its groups allow together.`)),1)])):q(``,!0),N(Y).simple_view?(V(),H(`fieldset`,am,[W(`legend`,om,O(N(Z)(`What this account sees`)),1),W(`label`,sm,[F(W(`input`,{"onUpdate:modelValue":s[6]||=e=>N(n).values.view=e,type:`radio`,value:``},null,512),[[mu,N(n).values.view]]),K(` `+O(N(Z)(`What its rights give`)),1)]),W(`label`,cm,[F(W(`input`,{"onUpdate:modelValue":s[7]||=e=>N(n).values.view=e,type:`radio`,value:`simple`},null,512),[[mu,N(n).values.view]]),K(` `+O(N(Z)(`The simple manager`)),1)]),W(`label`,lm,[F(W(`input`,{"onUpdate:modelValue":s[8]||=e=>N(n).values.view=e,type:`radio`,value:`full`},null,512),[[mu,N(n).values.view]]),K(` `+O(N(Z)(`The whole manager`)),1)])])):q(``,!0),W(`label`,um,[F(W(`input`,{"onUpdate:modelValue":s[9]||=e=>N(n).values.tutorial=e,type:`checkbox`},null,512),[[fu,N(n).values.tutorial]]),K(` `+O(N(Z)(`Show the tour the next time this account opens the manager`)),1)]),W(`div`,dm,[W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,fm),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:s[10]||=e=>t.value=null},O(N(Z)(`Cancel`)),1)])],32)):q(``,!0),W(`ul`,pm,[(V(!0),H(z,null,L(e.accounts,e=>(V(),H(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[W(`div`,mm,[W(`p`,hm,[K(O(e.name)+` `,1),e.is_you?(V(),H(`span`,gm,`(`+O(N(Z)(`you`))+`)`,1)):q(``,!0)]),W(`p`,_m,O(e.email),1),W(`p`,vm,[e.is_super_admin?(V(),H(`span`,ym,O(N(Z)(`Super admin`)),1)):q(``,!0),(V(!0),H(z,null,L(e.groups,t=>(V(),H(`span`,{key:t.id,class:D([`m-badge`,t.primary&&e.groups.length>1?`font-bold`:``]),title:t.primary&&e.groups.length>1?N(Z)(`Primary group`):``},O(t.name),11,bm))),128))])]),W(`div`,xm,[e.can_change?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>r(e)},O(N(Z)(`Edit`)),9,Sm)):q(``,!0),e.can_delete?(V(),H(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:t=>a(e)},O(N(Z)(`Delete`)),9,Cm)):q(``,!0)])]))),128))])],64))}}),Tm={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Em={class:`font-display text-2xl font-bold`},Dm={class:`m-label`,for:`g-name`},Om={key:0,class:`m-error`},km={class:`m-label`,for:`g-desc`},Am={class:`m-label`,for:`g-start`},jm={value:``},Mm=[`value`],Nm={class:`m-help`},Pm={class:`px-1 text-sm font-semibold`},Fm=[`value`,`onChange`],Im={class:`flex gap-2`},Lm=[`disabled`],Rm={key:1,class:`m-card p-5 text-sm text-muted`},zm={key:2,class:`m-card divide-y divide-line`},Bm={class:`min-w-0`},Vm={class:`font-semibold`},Hm={class:`text-xs font-normal text-muted`},Um={key:0,class:`text-xs text-muted`},Wm={class:`flex gap-2`},Gm=[`onClick`],Km=[`onClick`],qm=I({__name:`GroupsIndex`,props:{groups:{},catalogue:{}},setup(e){let t=e,n=M(null),r=Ju({name:``,description:``,start:``,permissions:[]}),i=Y.navigation.filter(e=>e.href.startsWith(Y.base+`/`)&&!e.new_tab).map(e=>({label:e.label,value:e.href.slice(Y.base.length)})),a=t.catalogue.flatMap(e=>e.permissions);function o(e){n.value=e,r.errors={},r.values.name=e===`new`?``:e.name,r.values.description=e===`new`?``:e.description??``,r.values.start=e===`new`?``:e.start??``,r.values.permissions=e===`new`?[]:[...e.permissions]}function s(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=>!a.find(e=>e.value===t)?.needs.includes(e.value))}async function c(){let e=n.value;(e===`new`?await r.send(`post`,`${Y.base}/groups`):await r.send(`put`,`${Y.base}/groups/${e.id}`))&&($(Z(`Saved.`)),n.value=null,await y0())}async function l(e){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/groups/${e.id}`),$(Z(`Deleted.`)),await y0())}return(t,a)=>(V(),H(z,null,[W(`div`,Tm,[W(`h1`,Em,O(N(Z)(`Groups`)),1),W(`button`,{type:`button`,class:`m-btn m-btn-primary`,onClick:a[0]||=e=>o(`new`)},O(N(Z)(`New group`)),1)]),n.value?(V(),H(`form`,{key:0,class:`m-card mb-6 max-w-3xl space-y-4 p-5`,onSubmit:Eu(c,[`prevent`])},[W(`div`,null,[W(`label`,Dm,O(N(Z)(`Name`)),1),F(W(`input`,{id:`g-name`,"onUpdate:modelValue":a[1]||=e=>N(r).values.name=e,required:``,maxlength:`60`,class:`m-input`},null,512),[[J,N(r).values.name]]),N(r).errors.name?(V(),H(`p`,Om,O(N(r).errors.name),1)):q(``,!0)]),W(`div`,null,[W(`label`,km,O(N(Z)(`Description`)),1),F(W(`textarea`,{id:`g-desc`,"onUpdate:modelValue":a[2]||=e=>N(r).values.description=e,rows:`2`,maxlength:`500`,class:`m-input`},null,512),[[J,N(r).values.description]])]),W(`div`,null,[W(`label`,Am,O(N(Z)(`Start screen`)),1),F(W(`select`,{id:`g-start`,"onUpdate:modelValue":a[3]||=e=>N(r).values.start=e,class:`m-input`},[W(`option`,jm,O(N(Z)(`The dashboard`)),1),(V(!0),H(z,null,L(N(i),e=>(V(),H(`option`,{key:e.value,value:e.value},O(e.label),9,Mm))),128))],512),[[hu,N(r).values.start]]),W(`p`,Nm,O(N(Z)(`Where accounts with this as their primary group land when they open the manager.`)),1)]),(V(!0),H(z,null,L(e.catalogue,e=>(V(),H(`fieldset`,{key:e.section,class:`rounded-lg border border-line p-3`},[W(`legend`,Pm,O(e.section),1),(V(!0),H(z,null,L(e.permissions,e=>(V(),H(`label`,{key:e.value,class:`flex items-center gap-2 py-0.5 text-sm`},[F(W(`input`,{"onUpdate:modelValue":a[4]||=e=>N(r).values.permissions=e,type:`checkbox`,value:e.value,onChange:t=>s(e)},null,40,Fm),[[fu,N(r).values.permissions]]),K(` `+O(e.label),1)]))),128))]))),128)),W(`div`,Im,[W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(r).busy},O(N(r).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,Lm),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:a[5]||=e=>n.value=null},O(N(Z)(`Cancel`)),1)])],32)):q(``,!0),e.groups.length?(V(),H(`ul`,zm,[(V(!0),H(z,null,L(e.groups,e=>(V(),H(`li`,{key:e.id,class:`flex flex-wrap items-center justify-between gap-3 p-4`},[W(`div`,Bm,[W(`p`,Vm,[K(O(e.name)+` `,1),W(`span`,Hm,`· `+O(e.accounts)+` `+O(N(Z)(`accounts`)),1)]),e.description?(V(),H(`p`,Um,O(e.description),1)):q(``,!0)]),W(`div`,Wm,[W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:t=>o(e)},O(N(Z)(`Edit`)),9,Gm),W(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:t=>l(e)},O(N(Z)(`Delete`)),9,Km)])]))),128))])):(V(),H(`p`,Rm,O(N(Z)(`Nothing here yet.`)),1))],64))}}),Jm={class:`font-display mb-6 text-2xl font-bold`},Ym={key:0,class:`m-error mb-4`},Xm={class:`grid gap-6 md:grid-cols-2`},Zm={class:`mb-3 font-semibold`},Qm=[`onSubmit`],$m=[`onUpdate:modelValue`,`aria-label`],eh={type:`submit`,class:`m-btn m-btn-primary`},th={class:`divide-y divide-line`},nh={class:`min-w-0 truncate`},rh={class:`text-xs text-muted`},ih={class:`flex gap-1`},ah=[`onClick`],oh=[`onClick`],sh=I({__name:`LabelsIndex`,props:{categories:{},tags:{}},setup(e){let t=[{type:`category`,title:`Categories`},{type:`tag`,title:`Tags`}],n=M({category:``,tag:``}),r=M(``);async function i(e){r.value=``;try{await e(),await y0()}catch(e){if(e instanceof Wu&&e.status===422)r.value=Object.values(e.errors)[0]??e.message;else throw e}}let a=e=>i(async()=>{await X.post(`${Y.base}/labels`,{type:e,name:n.value[e]}),n.value[e]=``,$(Z(`Created.`))}),o=(e,t)=>{let n=window.prompt(Z(`New name`),t);return n&&n!==t?i(()=>X.put(`${Y.base}/labels`,{type:e,name:t,new_name:n})):void 0},s=(e,t)=>window.confirm(Z(`Are you sure?`))?i(()=>X.delete(`${Y.base}/labels`,{type:e,name:t})):void 0;return(i,c)=>(V(),H(z,null,[W(`h1`,Jm,O(N(Z)(`Categories and tags`)),1),r.value?(V(),H(`p`,Ym,O(r.value),1)):q(``,!0),W(`div`,Xm,[(V(),H(z,null,L(t,t=>W(`section`,{key:t.type,class:`m-card p-4`},[W(`h2`,Zm,O(N(Z)(t.title)),1),W(`form`,{class:`mb-3 flex gap-2`,onSubmit:Eu(e=>a(t.type),[`prevent`])},[F(W(`input`,{"onUpdate:modelValue":e=>n.value[t.type]=e,required:``,maxlength:`60`,class:`m-input`,"aria-label":N(Z)(t.title)},null,8,$m),[[J,n.value[t.type]]]),W(`button`,eh,O(N(Z)(`Add`)),1)],40,Qm),W(`ul`,th,[(V(!0),H(z,null,L(t.type===`category`?e.categories:e.tags,e=>(V(),H(`li`,{key:e.name,class:`flex items-center justify-between gap-2 py-2 text-sm`},[W(`span`,nh,[K(O(e.name)+` `,1),W(`span`,rh,`· `+O(e.posts),1)]),W(`span`,ih,[W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:n=>o(t.type,e.name)},O(N(Z)(`Rename`)),9,ah),W(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:n=>s(t.type,e.name)},O(N(Z)(`Delete`)),9,oh)])]))),128))])])),64))])],64))}}),ch={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},lh={class:`font-display text-2xl font-bold`},uh=[`accept`,`disabled`],dh=[`title`],fh={class:`h-2 overflow-hidden rounded-full bg-panel-2`},ph={class:`m-help`},mh={key:0,class:`w-full shrink-0 sm:w-64`},hh=[`src`,`alt`],gh={class:`m-help`},_h={class:`mt-2 flex items-center gap-2`},vh=[`src`],yh={class:`min-w-0 flex-1 space-y-3`},bh={class:`m-label`,for:`m-name`},xh=[`disabled`],Sh={key:0,class:`m-error`},Ch={key:0},wh={class:`m-label`,for:`m-alt`},Th=[`disabled`],Eh={class:`m-help`},Dh={key:0},Oh={key:1},kh={class:`m-help break-all`},Ah={class:`flex gap-2`},jh=[`disabled`],Mh={key:1,class:`m-card p-5 text-sm text-muted`},Nh={key:2,class:`grid grid-cols-2 gap-3 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5`},Ph=[`onClick`],Fh=[`src`,`alt`],Ih={key:1,class:`grid aspect-square w-full place-items-center text-xs text-muted`},Lh={class:`block truncate px-2 py-1.5 text-xs`},Rh=I({__name:`MediaLibrary`,props:{items:{},max_file_mb:{},extensions:{},storage:{}},setup(e){let t=e=>Y.permissions.includes(e),n=M(!1),r=M(null),i=Ju({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 qu(`${Y.base}/media`,t)}$(Z(`Uploaded.`)),await y0()}catch(e){$(e instanceof Wu?Object.values(e.errors)[0]??e.message:Z(`Something went wrong. Try again.`),!0)}finally{n.value=!1,t.value=``}}async function u(){r.value&&await i.send(`put`,`${Y.base}/media/${r.value.id}`)&&($(Z(`Saved.`)),r.value=null,await y0())}async function d(e){let t=e.usage_count>0?Z(`This file is in use. Delete it anyway?`):Z(`Are you sure?`);window.confirm(t)&&(await X.delete(`${Y.base}/media/${e.id}`),r.value=null,$(Z(`Deleted.`)),await y0())}return(f,p)=>(V(),H(z,null,[W(`div`,ch,[W(`h1`,lh,O(N(Z)(`Media`)),1),t(`media.upload`)?(V(),H(`label`,{key:0,class:D([`m-btn m-btn-primary cursor-pointer`,n.value?`opacity-50`:``])},[K(O(n.value?N(Z)(`Uploading…`):N(Z)(`Upload`))+` `,1),W(`input`,{type:`file`,multiple:``,class:`sr-only`,accept:e.extensions.map(e=>`.`+e).join(`,`),disabled:n.value,onChange:l},null,40,uh)],2)):q(``,!0)]),W(`div`,{class:`mb-6 max-w-md`,title:`${a(e.storage.used)} / ${a(e.storage.limit)}`},[W(`div`,fh,[W(`div`,{class:`h-full bg-brand`,style:ve({width:Math.min(100,e.storage.used/Math.max(1,e.storage.limit)*100)+`%`})},null,4)]),W(`p`,ph,O(a(e.storage.used))+` / `+O(a(e.storage.limit))+` · `+O(N(Z)(`Largest file`))+`: `+O(e.max_file_mb)+` MB`,1)],8,dh),r.value?(V(),H(`form`,{key:0,class:`m-card mb-6 flex max-w-3xl flex-wrap gap-5 p-5`,onSubmit:Eu(u,[`prevent`])},[r.value.is_image?(V(),H(`div`,mh,[W(`div`,{class:D([`relative`,t(`media.edit`)?`cursor-crosshair`:``]),onClick:s},[W(`img`,{src:r.value.url,alt:r.value.alt??``,class:`w-full rounded-lg`,draggable:`false`},null,8,hh),N(i).values.focus_x===null?q(``,!0):(V(),H(`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:ve({left:(N(i).values.focus_x??0)*100+`%`,top:(N(i).values.focus_y??0)*100+`%`})},null,4))],2),W(`p`,gh,O(t(`media.edit`)?N(Z)(`Click the part of the picture that must stay in view.`):N(Z)(`Focus point`)),1),W(`div`,_h,[W(`img`,{src:r.value.url,alt:``,class:`h-16 w-16 rounded-lg object-cover`,style:ve({objectPosition:c(N(i).values.focus_x,N(i).values.focus_y)})},null,12,vh),t(`media.edit`)&&N(i).values.focus_x!==null?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:p[0]||=e=>N(i).values.focus_x=N(i).values.focus_y=null},O(N(Z)(`Clear`)),1)):q(``,!0)])])):q(``,!0),W(`div`,yh,[W(`div`,null,[W(`label`,bh,O(N(Z)(`Name`)),1),F(W(`input`,{id:`m-name`,"onUpdate:modelValue":p[1]||=e=>N(i).values.name=e,required:``,maxlength:`250`,class:`m-input`,disabled:!t(`media.edit`)},null,8,xh),[[J,N(i).values.name]]),N(i).errors.name?(V(),H(`p`,Sh,O(N(i).errors.name),1)):q(``,!0)]),r.value.is_image?(V(),H(`div`,Ch,[W(`label`,wh,O(N(Z)(`Alternative text`)),1),F(W(`input`,{id:`m-alt`,"onUpdate:modelValue":p[2]||=e=>N(i).values.alt=e,maxlength:`500`,class:`m-input`,disabled:!t(`media.edit`)},null,8,Th),[[J,N(i).values.alt]])])):q(``,!0),W(`p`,Eh,[K(O(r.value.mime_type)+` · `+O(a(r.value.size)),1),r.value.width?(V(),H(`span`,Dh,` · `+O(r.value.width)+`×`+O(r.value.height),1)):q(``,!0),K(` · `+O(N(Z)(`Used`))+`: `+O(r.value.usage_count),1),r.value.uploaded_by?(V(),H(`span`,Oh,` · `+O(r.value.uploaded_by),1)):q(``,!0)]),W(`p`,kh,O(r.value.url),1),W(`div`,Ah,[t(`media.edit`)?(V(),H(`button`,{key:0,type:`submit`,class:`m-btn m-btn-primary`,disabled:N(i).busy},O(N(Z)(`Save`)),9,jh)):q(``,!0),t(`media.delete`)?(V(),H(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:p[3]||=e=>d(r.value)},O(N(Z)(`Delete`)),1)):q(``,!0),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:p[4]||=e=>r.value=null},O(N(Z)(`Cancel`)),1)])])],32)):q(``,!0),e.items.length?(V(),H(`div`,Nh,[(V(!0),H(z,null,L(e.items,e=>(V(),H(`button`,{key:e.id,type:`button`,class:D([`m-card overflow-hidden text-left transition hover:border-brand`,r.value?.id===e.id?`border-brand`:``]),onClick:t=>o(e)},[e.is_image?(V(),H(`img`,{key:0,src:e.url,alt:e.alt??``,loading:`lazy`,class:`aspect-square w-full object-cover`},null,8,Fh)):(V(),H(`span`,Ih,O(e.mime_type),1)),W(`span`,Lh,O(e.name),1)],10,Ph))),128))])):(V(),H(`p`,Mh,O(N(Z)(`No files yet.`)),1))],64))}}),zh={class:`font-display mb-6 text-2xl font-bold`},Bh={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-4`},Vh={class:`text-2xl font-bold`},Hh={class:`m-help`},Uh={class:`mb-4 flex flex-wrap gap-2`},Wh=[`onClick`],Gh=[`placeholder`,`aria-label`],Kh=[`aria-label`],qh={value:``},Jh=[`value`],Yh={type:`submit`,class:`m-btn m-btn-secondary`},Xh={key:0,class:`m-card p-5 text-sm text-muted`},Zh={key:1,class:`m-card divide-y divide-line`},Qh={class:`min-w-0`},$h={class:`font-semibold`},eg={key:1},tg={class:`text-xs text-muted`},ng={class:`flex gap-2`},rg={key:0,class:`m-badge`},ig=[`onClick`],ag={key:2,class:`mt-4 flex items-center gap-2`},og={class:`text-sm text-muted`},sg={class:`font-display mb-3 mt-10 text-xl font-bold`},cg={class:`m-label`,for:`b-min`},lg={class:`min-w-[10rem] flex-1`},ug={class:`m-label`,for:`b-why`},dg={key:0,class:`flex items-center gap-2 text-sm`},fg={type:`submit`,class:`m-btn m-btn-danger`},pg={key:1,class:`m-error w-full`},mg={key:4,class:`text-sm text-muted`},hg={key:5,class:`m-card divide-y divide-line`},gg={class:`font-semibold`},_g={key:0,class:`m-badge`},vg={key:1,class:`m-badge`},yg={class:`text-xs text-muted`},bg=[`onClick`],xg={class:`font-display mb-3 mt-10 text-xl font-bold`},Sg={class:`flex items-center gap-2 text-sm sm:col-span-2`},Cg={class:`m-label`,for:`r-max`},wg={class:`m-label`,for:`r-win`},Tg={class:`m-label`,for:`r-ban`},Eg={class:`m-label`,for:`r-keep`},Dg=[`max`],Og={class:`m-help`},kg={class:`sm:col-span-2`},Ag=[`disabled`],jg={class:`font-display mb-3 mt-10 text-xl font-bold`},Mg={class:`m-label`,for:`n-group`},Ng={class:`min-w-[10rem] flex-1`},Pg={class:`m-label`,for:`n-note`},Fg={type:`submit`,class:`m-btn m-btn-secondary`},Ig={key:0,class:`m-error w-full`},Lg={key:0,class:`m-card divide-y divide-line text-sm`},Rg={key:0,class:`m-badge`},zg=I({__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=an({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));v0(`${Y.base}/audit${n.size?`?`+n:``}`)}let o=Ju({ip:``,minutes:1440,reason:``,whole_site:!1});async function s(e){e&&(o.values.ip=e);let t=await o.send(`post`,`${Y.base}/audit/bans`);t&&($(t.message),o.values.ip=o.values.reason=``,await y0())}async function c(e){$((await X.delete(`${Y.base}/audit/bans/${e.id}`)).message),await y0()}let l=Ju({...t.settings});async function u(){await l.send(`put`,`${Y.base}/audit/settings`)&&($(Z(`Saved.`)),await y0())}let d=Ju({ip:``,group:``,note:``});async function f(){await d.send(`put`,`${Y.base}/audit/notes`)&&($(Z(`Saved.`)),d.values.ip=d.values.group=d.values.note=``,await y0())}let p=e=>e.expires_at?i(e.expires_at):Z(`until lifted`);return(t,m)=>(V(),H(z,null,[W(`h1`,zh,O(N(Z)(`Audit log`)),1),W(`div`,Bh,[(V(!0),H(z,null,L(e.summary,(e,t)=>(V(),H(`div`,{key:t,class:`m-card p-4`},[W(`p`,Vh,O(e),1),W(`p`,Hh,O(N(Z)(t===`banned`?`Addresses banned`:t===`logins`?`Logins (24 h)`:t===`failed`?`Failed logins (24 h)`:`Refused (24 h)`)),1)]))),128))]),W(`nav`,Uh,[(V(),H(z,null,L(n,t=>W(`button`,{key:t,type:`button`,class:D([`m-btn`,e.filters.show===t?`m-btn-primary`:`m-btn-secondary`]),onClick:e=>a({show:t,page:1})},O(N(Z)(t)),11,Wh)),64))]),W(`form`,{class:`mb-4 flex flex-wrap gap-2`,onSubmit:m[3]||=Eu(e=>a({page:1}),[`prevent`])},[F(W(`input`,{"onUpdate:modelValue":m[0]||=e=>r.q=e,class:`m-input max-w-xs`,placeholder:N(Z)(`Search`),"aria-label":N(Z)(`Search`)},null,8,Gh),[[J,r.q]]),F(W(`input`,{"onUpdate:modelValue":m[1]||=e=>r.ip=e,class:`m-input max-w-[12rem]`,placeholder:`IP`,"aria-label":`IP`},null,512),[[J,r.ip]]),F(W(`select`,{"onUpdate:modelValue":m[2]||=e=>r.user=e,class:`m-input max-w-[12rem]`,"aria-label":N(Z)(`Account`)},[W(`option`,qh,O(N(Z)(`Everyone`)),1),(V(!0),H(z,null,L(e.accounts,e=>(V(),H(`option`,{key:e.id,value:e.id},O(e.name),9,Jh))),128))],8,Kh),[[hu,r.user]]),W(`button`,Yh,O(N(Z)(`Filter`)),1)],32),e.entries.length?(V(),H(`ul`,Zh,[(V(!0),H(z,null,L(e.entries,t=>(V(),H(`li`,{key:t.id,class:`flex flex-wrap items-start justify-between gap-3 p-4 text-sm`},[W(`div`,Qh,[W(`p`,$h,[K(O(t.summary)+` `,1),t.subject?(V(),H(z,{key:0},[m[19]||=K(` · `,-1),t.subject.url?(V(),U(td,{key:0,href:t.subject.url,class:`underline`},{default:P(()=>[K(O(t.subject.label),1)]),_:2},1032,[`href`])):(V(),H(`span`,eg,O(t.subject.label),1))],64)):q(``,!0)]),W(`p`,tg,O(i(t.at))+` · `+O(t.who??t.email??N(Z)(`Someone`))+` · `+O(t.ip)+` · `+O(t.browser),1)]),W(`span`,ng,[t.banned?(V(),H(`span`,rg,O(N(Z)(`banned`)),1)):q(``,!0),e.can_manage&&t.ip&&!t.banned&&!t.never_banned&&t.ip!==e.my_ip?(V(),H(`button`,{key:1,type:`button`,class:`m-btn m-btn-danger`,onClick:e=>s(t.ip)},O(N(Z)(`Ban`)),9,ig)):q(``,!0)])]))),128))])):(V(),H(`p`,Xh,O(N(Z)(`Nothing here yet.`)),1)),e.pagination.pages>1?(V(),H(`nav`,ag,[e.pagination.page>1?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[4]||=t=>a({page:e.pagination.page-1})},O(N(Z)(`Previous`)),1)):q(``,!0),W(`span`,og,O(e.pagination.page)+` / `+O(e.pagination.pages),1),e.pagination.page<e.pagination.pages?(V(),H(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary`,onClick:m[5]||=t=>a({page:e.pagination.page+1})},O(N(Z)(`Next`)),1)):q(``,!0)])):q(``,!0),W(`h2`,sg,O(N(Z)(`Bans`)),1),e.can_manage?(V(),H(`form`,{key:3,class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:m[10]||=Eu(e=>s(),[`prevent`])},[W(`div`,null,[m[20]||=W(`label`,{class:`m-label`,for:`b-ip`},`IP`,-1),F(W(`input`,{id:`b-ip`,"onUpdate:modelValue":m[6]||=e=>N(o).values.ip=e,required:``,class:`m-input`},null,512),[[J,N(o).values.ip]])]),W(`div`,null,[W(`label`,cg,O(N(Z)(`Minutes (0 = until lifted)`)),1),F(W(`input`,{id:`b-min`,"onUpdate:modelValue":m[7]||=e=>N(o).values.minutes=e,type:`number`,min:`0`,class:`m-input w-32`},null,512),[[J,N(o).values.minutes,void 0,{number:!0}]])]),W(`div`,lg,[W(`label`,ug,O(N(Z)(`Reason`)),1),F(W(`input`,{id:`b-why`,"onUpdate:modelValue":m[8]||=e=>N(o).values.reason=e,maxlength:`200`,class:`m-input`},null,512),[[J,N(o).values.reason]])]),e.whole_site_bans?(V(),H(`label`,dg,[F(W(`input`,{"onUpdate:modelValue":m[9]||=e=>N(o).values.whole_site=e,type:`checkbox`},null,512),[[fu,N(o).values.whole_site]]),K(` `+O(N(Z)(`Whole site`)),1)])):q(``,!0),W(`button`,fg,O(N(Z)(`Ban`)),1),N(o).errors.ip?(V(),H(`p`,pg,O(N(o).errors.ip),1)):q(``,!0)],32)):q(``,!0),e.bans.length?(V(),H(`ul`,hg,[(V(!0),H(z,null,L(e.bans,t=>(V(),H(`li`,{key:t.id,class:D([`flex flex-wrap items-center justify-between gap-3 p-4 text-sm`,t.active?``:`opacity-50`])},[W(`div`,null,[W(`p`,gg,[K(O(t.ip)+` `,1),t.automatic?(V(),H(`span`,_g,O(N(Z)(`automatic`)),1)):q(``,!0),m[21]||=K(),t.whole_site?(V(),H(`span`,vg,O(N(Z)(`whole site`)),1)):q(``,!0)]),W(`p`,yg,O(t.reason)+` · `+O(p(t))+` · `+O(t.hits)+` `+O(N(Z)(`hits`)),1)]),e.can_manage&&t.active?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:e=>c(t)},O(N(Z)(`Lift`)),9,bg)):q(``,!0)],2))),128))])):(V(),H(`p`,mg,O(N(Z)(`No bans.`)),1)),e.can_manage?(V(),H(z,{key:6},[W(`h2`,xg,O(N(Z)(`Rules`)),1),W(`form`,{class:`m-card grid max-w-3xl gap-4 p-5 sm:grid-cols-2`,onSubmit:Eu(u,[`prevent`])},[W(`label`,Sg,[F(W(`input`,{"onUpdate:modelValue":m[11]||=e=>N(l).values.auto_ban=e,type:`checkbox`},null,512),[[fu,N(l).values.auto_ban]]),K(` `+O(N(Z)(`Ban an address by itself after too many failed logins`)),1)]),W(`div`,null,[W(`label`,Cg,O(N(Z)(`Failed logins`)),1),F(W(`input`,{id:`r-max`,"onUpdate:modelValue":m[12]||=e=>N(l).values.max_failures=e,type:`number`,min:`3`,max:`100`,class:`m-input`},null,512),[[J,N(l).values.max_failures,void 0,{number:!0}]])]),W(`div`,null,[W(`label`,wg,O(N(Z)(`Within minutes`)),1),F(W(`input`,{id:`r-win`,"onUpdate:modelValue":m[13]||=e=>N(l).values.window_minutes=e,type:`number`,min:`1`,max:`1440`,class:`m-input`},null,512),[[J,N(l).values.window_minutes,void 0,{number:!0}]])]),W(`div`,null,[W(`label`,Tg,O(N(Z)(`Ban for minutes (0 = until lifted)`)),1),F(W(`input`,{id:`r-ban`,"onUpdate:modelValue":m[14]||=e=>N(l).values.ban_minutes=e,type:`number`,min:`0`,class:`m-input`},null,512),[[J,N(l).values.ban_minutes,void 0,{number:!0}]])]),W(`div`,null,[W(`label`,Eg,O(N(Z)(`Keep the log (days)`)),1),F(W(`input`,{id:`r-keep`,"onUpdate:modelValue":m[15]||=e=>N(l).values.keep_days=e,type:`number`,min:`7`,max:e.max_keep_days,class:`m-input`},null,8,Dg),[[J,N(l).values.keep_days,void 0,{number:!0}]]),W(`p`,Og,`≤ `+O(e.max_keep_days),1)]),W(`div`,kg,[W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(l).busy},O(N(Z)(`Save`)),9,Ag)]),(V(!0),H(z,null,L(N(l).errors,(e,t)=>(V(),H(`p`,{key:t,class:`m-error sm:col-span-2`},O(e),1))),128))],32),W(`h2`,jg,O(N(Z)(`Notes about addresses`)),1),W(`form`,{class:`m-card mb-4 flex max-w-3xl flex-wrap items-end gap-3 p-4`,onSubmit:Eu(f,[`prevent`])},[W(`div`,null,[m[22]||=W(`label`,{class:`m-label`,for:`n-ip`},`IP`,-1),F(W(`input`,{id:`n-ip`,"onUpdate:modelValue":m[16]||=e=>N(d).values.ip=e,required:``,class:`m-input`},null,512),[[J,N(d).values.ip]])]),W(`div`,null,[W(`label`,Mg,O(N(Z)(`Group`)),1),F(W(`input`,{id:`n-group`,"onUpdate:modelValue":m[17]||=e=>N(d).values.group=e,maxlength:`60`,class:`m-input`},null,512),[[J,N(d).values.group]])]),W(`div`,Ng,[W(`label`,Pg,O(N(Z)(`Note`)),1),F(W(`input`,{id:`n-note`,"onUpdate:modelValue":m[18]||=e=>N(d).values.note=e,maxlength:`2000`,class:`m-input`},null,512),[[J,N(d).values.note]])]),W(`button`,Fg,O(N(Z)(`Save`)),1),N(d).errors.ip?(V(),H(`p`,Ig,O(N(d).errors.ip),1)):q(``,!0)],32),e.notes.length?(V(),H(`ul`,Lg,[(V(!0),H(z,null,L(e.notes,e=>(V(),H(`li`,{key:e.ip,class:`p-3`},[W(`b`,null,O(e.ip),1),m[23]||=K(),e.group?(V(),H(`span`,Rg,O(e.group),1)):q(``,!0),K(` `+O(e.note),1)]))),128))])):q(``,!0)],64)):q(``,!0)],64))}}),Bg={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},Vg={class:`font-display text-2xl font-bold`},Hg={key:0,class:`m-card mb-4 p-4 text-sm`},Ug={key:1,class:`m-card mb-4 p-4 text-sm`},Wg={class:`mb-4 max-w-3xl text-sm text-muted`},Gg={class:`px-1 text-sm font-semibold`},Kg={key:0,class:`flex items-center justify-between gap-3 text-sm`},qg=[`checked`,`disabled`,`onChange`],Jg=[`for`],Yg=[`id`,`value`,`onChange`],Xg=[`value`],Zg=[`id`,`type`,`value`,`placeholder`,`autocomplete`,`disabled`,`onInput`],Qg={key:2,class:`m-help`},$g={key:3,class:`m-error`},e_=[`onClick`],t_={key:0,class:`m-card p-5`},n_={class:`m-label`,for:`s-password`},r_={class:`m-help`},i_={key:0,class:`m-error`},a_=[`disabled`],o_=I({__name:`Settings`,props:{groups:{},write_env:{type:Boolean},env_writable:{type:Boolean},config_cached:{type:Boolean}},setup(e){let t=e,n=an({}),r=M([]),i=M(``),a=M({}),o=M(!1),s=M(null),c=fc(()=>t.groups.flatMap(e=>e.items)),l=e=>e.key in n?n[e.key]:e.value,u=fc(()=>Object.keys(n).length>0||r.value.length>0),d=fc(()=>c.value.some(e=>e.sensitive&&(e.key in n||r.value.includes(e.key))));function f(e,t){e.type===`secret`&&(t===``||t===null)||t===e.value&&e.type!==`secret`?delete n[e.key]:n[e.key]=t}function p(e){delete n[e.key],r.value=r.value.includes(e.key)?r.value.filter(t=>t!==e.key):[...r.value,e.key]}async function m(){o.value=!0,a.value={};try{let e=await X.put(`${Y.base}/settings`,{values:{...n},reset:r.value,password:i.value});s.value={migrate:e.migrate??[],file:e.file_written,env:e.env_written},$(Z(`Saved.`)),Object.keys(n).forEach(e=>delete n[e]),r.value=[],i.value=``,await y0()}catch(e){if(e instanceof Wu&&e.status===422)a.value=e.errors;else throw e}finally{o.value=!1}}async function h(){await X.post(`${Y.base}/settings/refresh`),$(Z(`Refreshed.`))}return(t,c)=>(V(),H(z,null,[W(`div`,Bg,[W(`h1`,Vg,O(N(Z)(`Settings`)),1),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,onClick:h},O(N(Z)(`Refresh now`)),1)]),s.value?.migrate.length?(V(),H(`p`,Hg,[K(O(N(Z)(`These parts need new tables:`))+` `,1),W(`strong`,null,O(s.value.migrate.join(`, `)),1),K(`. `+O(N(Z)(`Run php artisan migrate on the server.`)),1)])):q(``,!0),s.value&&!s.value.file?(V(),H(`p`,Ug,O(N(Z)(`The changes are saved, but the file that makes them work at once could not be written (bootstrap/cache). They work after Refresh now, or when that folder may be written.`)),1)):q(``,!0),W(`p`,Wg,[K(O(N(Z)(`A change works at once and is kept in the database.`))+` `,1),e.write_env?(V(),H(z,{key:0},[K(O(e.env_writable?N(Z)(`It is also written into the .env file.`):N(Z)(`The .env file may not be written here, so only the database is used.`)),1)],64)):q(``,!0)]),W(`form`,{class:`max-w-3xl space-y-6`,onSubmit:Eu(m,[`prevent`])},[(V(!0),H(z,null,L(e.groups,e=>(V(),H(`fieldset`,{key:e.name,class:`m-card space-y-4 p-5`},[W(`legend`,Gg,O(e.name),1),(V(!0),H(z,null,L(e.items,e=>(V(),H(`div`,{key:e.key},[e.type===`toggle`?(V(),H(`label`,Kg,[W(`span`,null,O(e.label),1),W(`input`,{type:`checkbox`,checked:!!l(e),disabled:r.value.includes(e.key),onChange:t=>f(e,t.target.checked)},null,40,qg)])):(V(),H(z,{key:1},[W(`label`,{class:`m-label`,for:`s-`+e.key},O(e.label),9,Jg),e.type===`select`?(V(),H(`select`,{key:0,id:`s-`+e.key,class:`m-input`,value:l(e),onChange:t=>f(e,t.target.value)},[(V(!0),H(z,null,L(e.options,(e,t)=>(V(),H(`option`,{key:t,value:t},O(e),9,Xg))),128))],40,Yg)):(V(),H(`input`,{key:1,id:`s-`+e.key,class:`m-input`,type:e.type===`secret`?`password`:e.type===`number`?`number`:`text`,value:e.type===`secret`?n[e.key]??``:l(e)??``,placeholder:e.type===`secret`&&e.set?N(Z)(`Set. Type to replace it.`):``,autocomplete:e.type===`secret`?`new-password`:`off`,disabled:r.value.includes(e.key),onInput:t=>f(e,t.target.value)},null,40,Zg))],64)),e.help?(V(),H(`p`,Qg,O(e.help),1)):q(``,!0),a.value[`values.`+e.key]?(V(),H(`p`,$g,O(a.value[`values.`+e.key]),1)):q(``,!0),e.saved||r.value.includes(e.key)?(V(),H(`button`,{key:4,type:`button`,class:`mt-1 text-xs text-muted underline hover:text-text`,onClick:t=>p(e)},O(r.value.includes(e.key)?N(Z)(`Keep what is saved`):N(Z)(`Back to what the config says`)),9,e_)):q(``,!0)]))),128))]))),128)),d.value?(V(),H(`div`,t_,[W(`label`,n_,O(N(Z)(`Your password`)),1),F(W(`input`,{id:`s-password`,"onUpdate:modelValue":c[0]||=e=>i.value=e,type:`password`,class:`m-input`,autocomplete:`current-password`,required:``},null,512),[[J,i.value]]),W(`p`,r_,O(N(Z)(`Keys, passwords and addresses of integrations are only changed after you type your own password.`)),1),a.value.password?(V(),H(`p`,i_,O(a.value.password),1)):q(``,!0)])):q(``,!0),W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:o.value||!u.value},O(o.value?N(Z)(`Saving…`):N(Z)(`Save`)),9,a_)],32)],64))}}),s_={class:`mb-6 flex flex-wrap items-center justify-between gap-3`},c_={class:`font-display text-2xl font-bold`},l_={class:`text-sm text-muted`},u_={key:0},d_={class:`mb-6 flex flex-wrap gap-2`},f_={class:`mb-6 grid grid-cols-2 gap-3 md:grid-cols-5`},p_={class:`text-2xl font-bold`},m_={class:`m-help`},h_={class:`m-card mb-6 p-4`},g_={class:`mb-3 font-semibold`},__=[`aria-label`],v_=[`title`],y_={class:`mb-6 grid gap-6 md:grid-cols-2`},b_={class:`m-card p-4`},x_={class:`mb-3 font-semibold`},S_={key:0,class:`text-sm text-muted`},C_={class:`divide-y divide-line text-sm`},w_={class:`truncate`},T_={class:`text-muted`},E_={class:`m-card p-4`},D_={class:`mb-3 font-semibold`},O_={key:0,class:`text-sm text-muted`},k_={class:`divide-y divide-line text-sm`},A_={class:`truncate`},j_={class:`text-muted`},M_={class:`mb-3 font-semibold`},N_={key:0,class:`text-sm text-muted`},P_={class:`divide-y divide-line text-sm`},F_={class:`truncate`},I_={class:`text-muted`},L_={class:`m-card mb-6 overflow-x-auto p-4`},R_={class:`mb-3 font-semibold`},z_={class:`space-y-0.5 text-xs`},B_={class:`w-9 shrink-0 text-muted`},V_=[`title`],H_={class:`m-card mb-6 p-4`},U_={class:`mb-3 font-semibold`},W_={class:`text-sm font-normal text-muted`},G_={key:0,class:`text-sm text-muted`},K_={class:`divide-y divide-line text-sm`},q_={class:`text-xs text-muted`},J_={class:`text-muted`},Y_={class:`flex flex-wrap items-center gap-2 text-sm`},X_={class:`text-muted`},Z_=[`href`],Q_=I({__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=fc(()=>[[`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=fc(()=>Math.max(1,...t.series.map(e=>e.visits))),o=fc(()=>Math.max(1,...t.heatmap.flatMap(e=>e.hours))),s=fc(()=>[[`Channels`,t.channels],[`Sources`,t.sources],[`Countries`,t.countries],[`Devices`,t.devices],[`Browsers`,t.browsers],[`Systems`,t.systems]]),c=e=>`${Y.base}/statistics?range=${e}`,l=e=>`${Y.base}/statistics/export?sheet=${e}&range=${new URLSearchParams(Q.path.split(`?`)[1]??``).get(`range`)??t.range.key}`;return(t,u)=>(V(),H(z,null,[W(`div`,s_,[W(`h1`,c_,O(N(Z)(`Statistics`)),1),W(`p`,l_,[K(O(e.range.from)+` → `+O(e.range.to),1),e.range.compared_to?(V(),H(`span`,u_,` · `+O(N(Z)(`compared with`))+` `+O(e.range.compared_to),1)):q(``,!0)])]),W(`nav`,d_,[(V(!0),H(z,null,L(e.ranges,t=>(V(),U(td,{key:t.key,href:c(t.key),class:D([`m-btn`,e.range.key===t.key?`m-btn-primary`:`m-btn-secondary`])},{default:P(()=>[K(O(t.label),1)]),_:2},1032,[`href`,`class`]))),128))]),W(`div`,f_,[(V(!0),H(z,null,L(n.value,([t,n])=>(V(),H(`div`,{key:n,class:`m-card p-4`},[W(`p`,p_,O(r(n,e.totals[n])),1),W(`p`,m_,[K(O(N(Z)(t)),1),i(n)===null?q(``,!0):(V(),H(`span`,{key:0,class:D((i(n)??0)>=0?`text-emerald-500`:`text-red-500`)},O((i(n)??0)>0?`+`:``)+O(i(n))+`%`,3))])]))),128))]),W(`section`,h_,[W(`h2`,g_,O(N(Z)(`Visits`)),1),W(`div`,{class:`flex h-40 items-end gap-px`,role:`img`,"aria-label":N(Z)(`Visits`)},[(V(!0),H(z,null,L(e.series,e=>(V(),H(`div`,{key:e.key,class:`min-w-px flex-1 rounded-t bg-brand`,style:ve({height:Math.max(2,e.visits/a.value*100)+`%`}),title:`${e.label}: ${e.visits}`},null,12,v_))),128))],8,__)]),W(`div`,y_,[W(`section`,b_,[W(`h2`,x_,O(N(Z)(`Pages`)),1),e.pages.length?q(``,!0):(V(),H(`p`,S_,O(N(Z)(`Nothing here yet.`)),1)),W(`ul`,C_,[(V(!0),H(z,null,L(e.pages,e=>(V(),H(`li`,{key:e.path,class:`flex justify-between gap-3 py-1.5`},[W(`span`,w_,O(e.title??e.path),1),W(`span`,T_,O(e.views),1)]))),128))])]),W(`section`,E_,[W(`h2`,D_,O(N(Z)(`Posts`)),1),e.posts.length?q(``,!0):(V(),H(`p`,O_,O(N(Z)(`Nothing here yet.`)),1)),W(`ul`,k_,[(V(!0),H(z,null,L(e.posts,e=>(V(),H(`li`,{key:e.slug,class:`flex justify-between gap-3 py-1.5`},[W(`span`,A_,O(e.title),1),W(`span`,j_,O(e.views),1)]))),128))])]),(V(!0),H(z,null,L(s.value,([e,t])=>(V(),H(`section`,{key:e,class:`m-card p-4`},[W(`h2`,M_,O(N(Z)(e)),1),t.length?q(``,!0):(V(),H(`p`,N_,O(N(Z)(`Nothing here yet.`)),1)),W(`ul`,P_,[(V(!0),H(z,null,L(t,e=>(V(),H(`li`,{key:e.name+(e.channel??``),class:`flex justify-between gap-3 py-1.5`},[W(`span`,F_,O(e.name||N(Z)(`Direct`)),1),W(`span`,I_,O(e.visits),1)]))),128))])]))),128))]),W(`section`,L_,[W(`h2`,R_,O(N(Z)(`When people visit`)),1),W(`div`,z_,[(V(!0),H(z,null,L(e.heatmap,e=>(V(),H(`div`,{key:e.day,class:`flex items-center gap-0.5`},[W(`span`,B_,O(e.day),1),(V(!0),H(z,null,L(e.hours,(t,n)=>(V(),H(`span`,{key:n,class:`block h-5 min-w-3 flex-1 rounded-sm border border-line`,title:`${e.day} ${n}:00 · ${t}`,style:ve({background:`color-mix(in srgb, var(--m-brand) ${Math.round(t/o.value*100)}%, var(--m-panel-2))`})},null,12,V_))),128))]))),128))])]),W(`section`,H_,[W(`h2`,U_,[K(O(N(Z)(`Programs`))+` `,1),W(`span`,W_,`· `+O(e.bots.total),1)]),e.bots.names.length?q(``,!0):(V(),H(`p`,G_,O(N(Z)(`Nothing here yet.`)),1)),W(`ul`,K_,[(V(!0),H(z,null,L(e.bots.names,e=>(V(),H(`li`,{key:e.name,class:`flex justify-between gap-3 py-1.5`},[W(`span`,null,[K(O(e.name)+` `,1),W(`span`,q_,O(e.kind),1)]),W(`span`,J_,O(e.hits),1)]))),128))])]),W(`p`,Y_,[W(`span`,X_,O(N(Z)(`Download`))+`:`,1),(V(!0),H(z,null,L(e.exports,(e,t)=>(V(),H(`a`,{key:t,href:l(String(t)),class:`m-btn m-btn-secondary`},O(e)+` (CSV)`,9,Z_))),128))])],64))}}),$_={class:`font-display mb-6 text-2xl font-bold`},e1={key:0,class:`m-card p-5 text-sm text-muted`},t1={key:1,class:`m-card divide-y divide-line`},n1={class:`min-w-0`},r1={class:`truncate font-semibold`},i1={class:`truncate text-xs text-muted`},a1={class:`m-badge`},o1={key:2,class:`mt-4 flex gap-2`},s1=I({__name:`ListPage`,props:{data:{},current_page:{},last_page:{},path:{}},setup(e){let t=e,n=fc(()=>Q.path.includes(`/reviews`)?`reviews`:`pages`),r=fc(()=>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=>`${Q.path.split(`?`)[0]}?page=${e}`;return(e,n)=>(V(),H(z,null,[W(`h1`,$_,O(N(Z)(r.value)),1),t.data.length?(V(),H(`ul`,t1,[(V(!0),H(z,null,L(t.data,e=>(V(),H(`li`,{key:e.id,class:`flex items-center justify-between gap-3 p-4`},[W(`div`,n1,[W(`p`,r1,O(i(e)),1),W(`p`,i1,O(a(e)),1)]),W(`span`,a1,O(o(e)?N(Z)(`Published`):N(Z)(`Draft`)),1)]))),128))])):(V(),H(`p`,e1,O(N(Z)(`Nothing here yet.`)),1)),t.last_page>1?(V(),H(`nav`,o1,[t.current_page>1?(V(),U(td,{key:0,href:s(t.current_page-1),class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Previous`)),1)]),_:1},8,[`href`])):q(``,!0),t.current_page<t.last_page?(V(),U(td,{key:1,href:s(t.current_page+1),class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Next`)),1)]),_:1},8,[`href`])):q(``,!0)])):q(``,!0)],64))}}),c1={class:`space-y-5`},l1={key:0,class:`flex items-center gap-2 text-sm`},u1=[`onUpdate:modelValue`],d1=[`for`],f1={key:0,class:`text-muted`},p1=[`id`,`onUpdate:modelValue`],m1={key:0,value:``},h1=[`value`],g1=[`id`,`onUpdate:modelValue`,`rows`,`maxlength`,`required`],_1={key:3,class:`flex gap-2`},v1=[`id`,`onUpdate:modelValue`],y1=[`onClick`],b1=[`id`,`onUpdate:modelValue`,`type`,`maxlength`,`required`],x1=[`src`],S1={key:2,class:`mt-1 text-xs text-muted`},C1={key:3,class:`m-help`},w1={key:4,class:`m-error`},T1=I({__name:`FormFields`,props:{fields:{},values:{},errors:{},prefix:{}},setup(e){let t=e,n=fc(()=>t.fields.filter(e=>!(e.advanced&&Y.view===`simple`))),r=M(null),i=Y.permissions.includes(`media.view`);return(t,a)=>(V(),H(`div`,c1,[(V(!0),H(z,null,L(n.value,t=>(V(),H(`div`,{key:t.key},[t.type===`toggle`?(V(),H(`label`,l1,[F(W(`input`,{"onUpdate:modelValue":n=>e.values[t.key]=n,type:`checkbox`},null,8,u1),[[fu,e.values[t.key]]]),K(` `+O(N(Z)(t.label)),1)])):(V(),H(z,{key:1},[W(`label`,{for:`f-`+t.key,class:`m-label`},[K(O(N(Z)(t.label)),1),t.required?(V(),H(`span`,f1,` *`)):q(``,!0)],8,d1),t.type===`select`?F((V(),H(`select`,{key:0,id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,class:`m-input`},[t.required?q(``,!0):(V(),H(`option`,m1)),(V(!0),H(z,null,L(t.options,(e,t)=>(V(),H(`option`,{key:t,value:t},O(e),9,h1))),128))],8,p1)),[[hu,e.values[t.key]]]):t.type===`markdown`?(V(),U(rf,{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`?F((V(),H(`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,g1)),[[J,e.values[t.key]]]):t.type===`media`?(V(),H(`div`,_1,[F(W(`input`,{id:`f-`+t.key,"onUpdate:modelValue":n=>e.values[t.key]=n,maxlength:`2048`,class:`m-input`},null,8,v1),[[J,e.values[t.key]]]),N(i)?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary shrink-0`,onClick:e=>r.value=t.key},O(N(Z)(`Choose`)),9,y1)):q(``,!0)])):F((V(),H(`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,b1)),[[bu,e.values[t.key]]]),t.type===`media`&&e.values[t.key]?(V(),H(`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,x1)):q(``,!0)],64)),t.type===`lines`?(V(),H(`p`,S1,O(N(Z)(`One per line.`)),1)):q(``,!0),t.help?(V(),H(`p`,C1,O(N(Z)(t.help)),1)):q(``,!0),e.errors?.[(e.prefix??``)+t.key]?(V(),H(`p`,w1,O(e.errors[(e.prefix??``)+t.key]),1)):q(``,!0)]))),128)),r.value?(V(),U(Ud,{key:0,onPick:a[0]||=t=>{e.values[r.value]=t,r.value=null},onClose:a[1]||=e=>r.value=null})):q(``,!0)]))}}),E1={class:`mb-6 flex items-center justify-between gap-3`},D1={class:`font-display text-2xl font-bold`},O1=[`disabled`],k1=I({__name:`RecordForm`,props:{resource:{},record:{}},setup(e){let t=e,n=`${Y.base}/records/${t.resource.key}`,r=Ju({...t.record.values});async function i(){(t.record.id===null?await r.send(`post`,n):await r.send(`put`,`${n}/${t.record.id}`))&&($(Z(`Saved.`)),v0(n))}return(t,a)=>(V(),H(z,null,[W(`div`,E1,[W(`h1`,D1,O(e.record.id===null?N(Z)(`New`)+`: `+N(Z)(e.resource.singular):N(Z)(e.resource.singular)),1),G(td,{href:n,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Back`)),1)]),_:1})]),W(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Eu(i,[`prevent`])},[G(T1,{fields:e.resource.fields,values:N(r).values,errors:N(r).errors},null,8,[`fields`,`values`,`errors`]),W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(r).busy},O(N(r).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,O1)],32)],64))}}),A1={class:`mb-6 flex items-center justify-between gap-3`},j1={class:`font-display text-2xl font-bold`},M1={key:0,class:`m-card p-5 text-sm text-muted`},N1={key:1,class:`m-card overflow-x-auto`},P1={class:`w-full text-left text-sm`},F1={class:`border-b border-line text-xs uppercase tracking-wide text-muted`},I1={key:0,class:`px-4 py-3`},L1={class:`divide-y divide-line`},R1={key:0,class:`flex justify-end gap-2 px-4 py-2`},z1=[`onClick`],B1={key:2,class:`mt-4 flex gap-2`},V1=I({__name:`RecordsIndex`,props:{resource:{},rows:{},current_page:{},last_page:{}},setup(e){let t=e,n=`${Y.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(Z(`Are you sure?`))&&(await X.delete(`${n}/${e.id}`),await y0())}return(t,o)=>(V(),H(z,null,[W(`div`,A1,[W(`h1`,j1,O(N(Z)(e.resource.label)),1),e.resource.can_manage?(V(),U(td,{key:0,href:n+`/create`,class:`m-btn m-btn-primary`},{default:P(()=>[K(O(N(Z)(`Add`)),1)]),_:1},8,[`href`])):q(``,!0)]),e.rows.length?(V(),H(`div`,N1,[W(`table`,P1,[W(`thead`,F1,[W(`tr`,null,[(V(!0),H(z,null,L(e.resource.columns,e=>(V(),H(`th`,{key:e,class:`px-4 py-3 font-semibold`},O(N(Z)(r(e))),1))),128)),e.resource.can_manage?(V(),H(`th`,I1)):q(``,!0)])]),W(`tbody`,L1,[(V(!0),H(z,null,L(e.rows,t=>(V(),H(`tr`,{key:t.id},[(V(!0),H(z,null,L(e.resource.columns,e=>(V(),H(`td`,{key:e,class:`max-w-xs truncate px-4 py-3`},O(i(t,e)),1))),128)),e.resource.can_manage?(V(),H(`td`,R1,[G(td,{href:`${n}/${t.id}/edit`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Edit`)),1)]),_:1},8,[`href`]),W(`button`,{type:`button`,class:`m-btn m-btn-danger`,onClick:e=>a(t)},O(N(Z)(`Delete`)),9,z1)])):q(``,!0)]))),128))])])])):(V(),H(`p`,M1,O(N(Z)(`Nothing here yet.`)),1)),e.last_page>1?(V(),H(`nav`,B1,[e.current_page>1?(V(),U(td,{key:0,href:`${n}?page=${e.current_page-1}`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Previous`)),1)]),_:1},8,[`href`])):q(``,!0),e.current_page<e.last_page?(V(),U(td,{key:1,href:`${n}?page=${e.current_page+1}`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Next`)),1)]),_:1},8,[`href`])):q(``,!0)])):q(``,!0)],64))}}),H1={class:`mb-6 flex items-center justify-between gap-3`},U1={class:`font-display text-2xl font-bold`},W1={for:`title`,class:`m-label`},G1={key:0,class:`m-error`},K1={for:`meta`,class:`m-label`},q1={key:0,class:`m-error`},J1={for:`body`,class:`m-label`},Y1={key:0,class:`m-error`},X1={class:`flex items-center gap-2 text-sm`},Z1={class:`flex gap-3`},Q1=[`disabled`],$1=I({__name:`PageForm`,props:{page:{}},setup(e){let t=e.page,n=Ju({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`,`${Y.base}/pages/${t.slug}`)&&$(Z(`Saved.`))}async function i(){window.confirm(Z(`Are you sure?`))&&(await X.delete(`${Y.base}/pages/${t.slug}`),v0(`${Y.base}/pages`))}return(e,a)=>(V(),H(z,null,[W(`div`,H1,[W(`h1`,U1,O(N(t).title),1),G(td,{href:N(Y).base+`/pages`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Back`)),1)]),_:1},8,[`href`])]),W(`form`,{class:`m-card max-w-3xl space-y-5 p-5`,onSubmit:Eu(r,[`prevent`])},[W(`div`,null,[W(`label`,W1,O(N(Z)(`Title`)),1),F(W(`input`,{id:`title`,"onUpdate:modelValue":a[0]||=e=>N(n).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.title]]),N(n).errors.title?(V(),H(`p`,G1,O(N(n).errors.title),1)):q(``,!0)]),W(`div`,null,[W(`label`,K1,O(N(Z)(`Description for search engines`)),1),F(W(`input`,{id:`meta`,"onUpdate:modelValue":a[1]||=e=>N(n).values.meta_description=e,maxlength:`255`,class:`m-input`},null,512),[[J,N(n).values.meta_description]]),N(n).errors.meta_description?(V(),H(`p`,q1,O(N(n).errors.meta_description),1)):q(``,!0)]),N(t).defined?(V(),U(T1,{key:0,fields:N(t).fields,values:N(n).values.content,errors:N(n).errors,prefix:`content.`},null,8,[`fields`,`values`,`errors`])):(V(),H(z,{key:1},[W(`div`,null,[W(`label`,J1,O(N(Z)(`Text (Markdown)`)),1),G(rf,{id:`body`,modelValue:N(n).values.body,"onUpdate:modelValue":a[2]||=e=>N(n).values.body=e},null,8,[`modelValue`]),N(n).errors.body?(V(),H(`p`,Y1,O(N(n).errors.body),1)):q(``,!0)]),W(`label`,X1,[F(W(`input`,{"onUpdate:modelValue":a[3]||=e=>N(n).values.is_published=e,type:`checkbox`},null,512),[[fu,N(n).values.is_published]]),K(` `+O(N(Z)(`Publish`)),1)])],64)),W(`div`,Z1,[W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(n).busy},O(N(n).busy?N(Z)(`Saving…`):N(Z)(`Save`)),9,Q1),N(t).defined?q(``,!0):(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-danger`,onClick:i},O(N(Z)(`Delete`)),1))])],32),N(t).id&&N(Y).permissions.includes(`revisions.view`)?(V(),U(bf,{key:0,type:`pages`,id:N(t).id},null,8,[`id`])):q(``,!0)],64))}}),e0={class:`font-display mb-6 text-2xl font-bold`},t0={class:`m-card divide-y divide-line`},n0={class:`min-w-0`},r0={class:`truncate font-semibold`},i0={class:`truncate text-xs text-muted`},a0={class:`flex items-center gap-2`},o0={key:0,class:`m-badge`},s0={key:0,class:`p-4 text-sm text-muted`},c0={for:`new-title`,class:`m-label`},l0={key:0,class:`m-error`},u0={for:`new-slug`,class:`m-label`},d0={key:0,class:`m-error`},f0=[`disabled`],p0=[{pattern:/^\/?$/,component:dd,data:!0},{pattern:/^\/login$/,component:Nd,guest:!0},{pattern:/^\/profile$/,component:Vp,data:!0},{pattern:/^\/posts$/,component:op,data:!0},{pattern:/^\/posts\/create$/,component:qf,data:!0},{pattern:/^\/posts\/\d+\/edit$/,component:qf,data:!0},{pattern:/^\/media$/,component:Rh,data:!0,source:`/media/items`},{pattern:/^\/audit$/,component:zg,data:!0},{pattern:/^\/settings$/,component:o_,data:!0},{pattern:/^\/statistics$/,component:Q_,data:!0},{pattern:/^\/accounts$/,component:wm,data:!0},{pattern:/^\/groups$/,component:qm,data:!0},{pattern:/^\/labels$/,component:sh,data:!0},{pattern:/^\/pages$/,component:I({__name:`PagesIndex`,props:{pages:{}},setup(e){let t=Ju({slug:``,title:``});async function n(){await t.send(`post`,`${Y.base}/pages`)&&v0(`${Y.base}/pages/${t.values.slug}`)}return(r,i)=>(V(),H(z,null,[W(`h1`,e0,O(N(Z)(`Pages`)),1),W(`ul`,t0,[(V(!0),H(z,null,L(e.pages,e=>(V(),H(`li`,{key:e.slug,class:`flex items-center justify-between gap-3 p-4`},[W(`div`,n0,[W(`p`,r0,O(e.title),1),W(`p`,i0,`/`+O(e.slug),1)]),W(`div`,a0,[e.defined?q(``,!0):(V(),H(`span`,o0,O(e.is_published?N(Z)(`Published`):N(Z)(`Draft`)),1)),G(td,{href:`${N(Y).base}/pages/${e.slug}`,class:`m-btn m-btn-secondary`},{default:P(()=>[K(O(N(Z)(`Edit`)),1)]),_:1},8,[`href`])])]))),128)),e.pages.length?q(``,!0):(V(),H(`li`,s0,O(N(Z)(`Nothing here yet.`)),1))]),W(`form`,{class:`m-card mt-6 grid max-w-3xl gap-4 p-5 sm:grid-cols-[1fr_1fr_auto] sm:items-end`,onSubmit:Eu(n,[`prevent`])},[W(`div`,null,[W(`label`,c0,O(N(Z)(`Title`)),1),F(W(`input`,{id:`new-title`,"onUpdate:modelValue":i[0]||=e=>N(t).values.title=e,required:``,maxlength:`255`,class:`m-input`},null,512),[[J,N(t).values.title]]),N(t).errors.title?(V(),H(`p`,l0,O(N(t).errors.title),1)):q(``,!0)]),W(`div`,null,[W(`label`,u0,O(N(Z)(`Address (slug)`)),1),F(W(`input`,{id:`new-slug`,"onUpdate:modelValue":i[1]||=e=>N(t).values.slug=e,required:``,maxlength:`120`,class:`m-input`},null,512),[[J,N(t).values.slug]]),N(t).errors.slug?(V(),H(`p`,d0,O(N(t).errors.slug),1)):q(``,!0)]),W(`button`,{type:`submit`,class:`m-btn m-btn-primary`,disabled:N(t).busy},O(N(Z)(`New page`)),9,f0)],32)],64))}}),data:!0},{pattern:/^\/pages\/[a-z0-9]+(?:-[a-z0-9]+)*$/,component:$1,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*$/,component:V1,data:!0},{pattern:/^\/records\/[a-z][a-z0-9_]*\/(create|\d+\/edit)$/,component:k1,data:!0},{pattern:/^\/reviews$/,component:s1,data:!0}];function m0(e,t,n={}){p0.unshift({pattern:new RegExp(e),component:t,data:n.data,source:n.source})}var Q=an({path:``,component:null,props:{},loading:!0,forbidden:!1,tour:Y.tutorial,toast:null}),h0;function $(e,t=!1){Q.toast={text:e,error:t},window.clearTimeout(h0),h0=window.setTimeout(()=>Q.toast=null,4e3)}function g0(e){return e.split(`?`)[0].slice(Y.base.length)||`/`}async function _0(e){let t=p0.find(t=>t.pattern.test(g0(e)));if(!Y.user&&!t?.guest)window.location.assign(Y.base+`/login`);else{if(Y.user&&t?.guest)return v0(Y.base,!0);Q.loading=!0,Q.forbidden=!1,Q.path=e,Q.component=t?.component??md,Q.props={};try{Q.props=t?.data?await X.get(t.source?Y.base+t.source:e):{}}catch(e){e instanceof Wu&&e.status===401?window.location.assign(Y.base+`/login`):e instanceof Wu&&e.status===403?Q.forbidden=!0:$(Z(`Something went wrong. Try again.`),!0)}finally{Q.loading=!1}}}function v0(e,t=!1){return window.history[t?`replaceState`:`pushState`]({},``,e),window.scrollTo(0,0),_0(e)}function y0(){return _0(Q.path)}function b0(){window.addEventListener(`popstate`,()=>_0(window.location.pathname+window.location.search));let e=window.location.pathname.replace(/\/+$/,``);Y.user&&Y.start&&e===Y.base&&!window.sessionStorage.getItem(`manager-start`)?(window.sessionStorage.setItem(`manager-start`,`1`),v0(Y.start,!0)):_0(window.location.pathname+window.location.search)}var x0=[`aria-label`],S0={key:0,class:`absolute inset-0 bg-black/60`},C0=[`aria-label`],w0={class:`flex items-start gap-3`},T0={class:`m-bob m-glow -ml-1 shrink-0 rounded-full`},E0={class:`min-w-0 pr-6`,"aria-live":`polite`},D0={class:`font-display text-lg font-bold leading-snug`},O0={class:`mt-1.5 text-sm leading-relaxed text-muted`},k0={class:`mt-4 flex items-center justify-between gap-2`},A0={class:`flex gap-1`,"aria-hidden":`true`},j0={class:`text-xs text-muted`},M0={class:`mt-4 flex flex-wrap items-center gap-2`},N0=I({__name:`Tutorial`,setup(e){let t=(Y.user?.name??``).split(` `)[0],n=e=>Y.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:Z(`Hi :name! Welcome!`,{name:t}),text:Z(`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:Z(`This is the menu`),text:Z(`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:Z(`Your start page`),text:Z(`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:Z(`Write news`),text:Z(`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:Z(`Your photos`),text:Z(`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:Z(`Your pages`),text:Z(`Change the texts and photos of the pages of your website here.`),target:a(`/pages`)});for(let[t,n]of(Y.tutorial_steps??[]).entries())e.push({id:`module-`+t,image:n.image??`point`,title:Z(n.title),text:Z(n.text),target:n.href?a(n.href):void 0});return Y.permissions.includes(`revisions.view`)&&(n(`/posts`)||n(`/pages`))&&e.push({id:`undo`,image:`undo`,title:Z(`Changed your mind?`),text:Z(`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:Z(`Something went wrong?`),text:Z(`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:Z(`Your own corner`),text:Z(`Here you choose your language and your colours, and change your password.`),target:()=>i(document.querySelector(`a[href="${Y.base}/profile"]`))}),e.push({id:`party`,image:`party`,title:Z(`That is it!`),text:Z(`Want to see this again? Press Show the tour in the menu. Have fun!`)}),e}let s=o(),c=M(0),l=fc(()=>s[c.value]),u=fc(()=>c.value===s.length-1),d=M(null),f=M(null),p=M(null),m=M(null),h=M(!1);async function g(){await ar();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){Q.tour=!1,Y.tutorial=!1,X.put(Y.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 aa(()=>{window.addEventListener(`keydown`,y),window.addEventListener(`resize`,g),g()}),ca(()=>{window.removeEventListener(`keydown`,y),window.removeEventListener(`resize`,g)}),(e,t)=>(V(),H(`div`,{class:`fixed inset-0 z-50`,role:`dialog`,"aria-modal":`true`,"aria-label":N(Z)(`Tour`)},[p.value?(V(),H(`div`,{key:1,class:`m-spot pointer-events-none absolute rounded-xl`,style:ve({top:p.value.top+`px`,left:p.value.left+`px`,width:p.value.width+`px`,height:p.value.height+`px`})},null,4)):(V(),H(`div`,S0)),W(`div`,{ref_key:`card`,ref:d,class:D([`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:ve(m.value?{top:m.value.top+`px`,left:m.value.left+`px`}:void 0)},[W(`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":N(Z)(`Stop the tour`),onClick:t[0]||=e=>_(!1)},[...t[4]||=[W(`svg`,{class:`h-5 w-5`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"aria-hidden":`true`},[W(`path`,{d:`M6 6l12 12M18 6L6 18`})],-1)]],8,C0),W(`div`,w0,[W(`div`,T0,[(V(),U(cp,{key:l.value.image,name:l.value.image,flip:h.value,size:128},null,8,[`name`,`flip`]))]),W(`div`,E0,[W(`h2`,D0,O(l.value.title),1),W(`p`,O0,O(l.value.text),1)])]),W(`div`,k0,[W(`span`,A0,[(V(!0),H(z,null,L(N(s),(e,t)=>(V(),H(`span`,{key:t,class:D([`h-1.5 w-1.5 rounded-full`,t===c.value?`bg-brand`:`bg-line`])},null,2))),128))]),W(`span`,j0,O(c.value+1)+` / `+O(N(s).length),1)]),W(`div`,M0,[W(`button`,{type:`button`,class:`text-sm text-muted underline hover:text-text`,onClick:t[1]||=e=>_(!1)},O(N(Z)(`Stop the tour`)),1),t[5]||=W(`span`,{class:`flex-1`},null,-1),c.value>0?(V(),H(`button`,{key:0,type:`button`,class:`m-btn m-btn-secondary`,onClick:t[2]||=e=>v(-1)},O(N(Z)(`Back`)),1)):q(``,!0),W(`button`,{ref_key:`next`,ref:f,type:`button`,class:`m-btn m-btn-primary`,onClick:t[3]||=e=>v(1)},O(u.value?N(Z)(`Done`):N(Z)(`Next`)),513)])],6)],8,x0))}}),P0={class:`min-h-screen`},F0={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`},I0={class:`font-display font-bold`},L0=[`aria-expanded`],R0={class:`hidden h-16 items-center gap-2 px-5 md:flex`},z0=[`src`],B0={class:`font-display text-lg font-bold`},V0={class:`flex-1 space-y-0.5 overflow-y-auto px-3 py-3`,"aria-label":`Manager`},H0={key:0,class:`my-3 border-line`},U0={key:1,class:`px-3 pb-1 pt-4 text-xs font-semibold uppercase tracking-wide text-muted`},W0=[`href`],G0={class:`border-t border-line p-4`},K0={class:`truncate text-sm font-semibold group-hover:text-brand`},q0={class:`truncate text-xs text-muted`},J0={key:0,class:`truncate text-xs text-muted`},Y0={class:`px-4 pb-16 pt-20 md:ml-60 md:px-8 md:pt-8`},X0={class:`mx-auto max-w-5xl`},Z0=I({__name:`Layout`,setup(e){let t=M(!1),n=fc(()=>{let e=[];for(let t of[{label:`Dashboard`,href:Y.base,icon:`home`},...Y.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=M(Y.view);async function i(){await X.put(Y.base+`/profile/view`,{view:r.value===`simple`?`full`:`simple`}),window.location.assign(Y.base)}function a(e){let t=Q.path.split(`?`)[0];return e===Y.base?t===e:t===e||t.startsWith(e+`/`)}async function o(){let{redirect:e}=await X.post(Y.base+`/logout`);window.location.assign(e)}return Pr(()=>Q.path,()=>t.value=!1),(e,s)=>(V(),H(`div`,P0,[W(`header`,F0,[W(`span`,I0,O(N(Y).name),1),W(`button`,{type:`button`,class:`m-btn m-btn-secondary`,"aria-expanded":t.value,onClick:s[0]||=e=>t.value=!t.value},O(N(Z)(`Menu`)),9,L0)]),W(`aside`,{class:D([`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`])},[W(`div`,R0,[N(Y).logo?(V(),H(`img`,{key:0,src:N(Y).logo,alt:``,class:`h-7 w-auto`},null,8,z0)):q(``,!0),W(`span`,B0,O(N(Y).name),1)]),W(`nav`,V0,[(V(!0),H(z,null,L(n.value,(e,t)=>(V(),H(z,{key:e.title+t},[!e.title&&t>0?(V(),H(`hr`,H0)):q(``,!0),e.title?(V(),H(`p`,U0,O(N(Z)(e.title)),1)):q(``,!0),(V(!0),H(z,null,L(e.items,e=>(V(),H(z,{key:e.href},[e.new_tab?(V(),H(`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`},[G($u,{name:e.icon},null,8,[`name`]),K(O(N(Z)(e.label)),1)],8,W0)):(V(),U(td,{key:1,href:e.href,class:D([`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:P(()=>[G($u,{name:e.icon},null,8,[`name`]),K(O(N(Z)(e.label)),1)]),_:2},1032,[`href`,`class`,`aria-current`]))],64))),128))],64))),128))]),W(`div`,G0,[G(td,{href:N(Y).base+`/profile`,class:`group block`},{default:P(()=>[W(`p`,K0,O(N(Y).user?.name),1),W(`p`,q0,O(N(Y).user?.email),1),N(Y).user?.group?(V(),H(`p`,J0,O(N(Y).user.group),1)):q(``,!0)]),_:1},8,[`href`]),N(Y).tutorial_state?(V(),H(`button`,{key:0,type:`button`,class:`mt-2 block text-xs text-muted underline hover:text-text`,onClick:s[1]||=e=>N(Q).tour=!0},O(N(Z)(`Show the tour`)),1)):q(``,!0),N(Y).can_switch?(V(),H(`button`,{key:1,type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:i},O(r.value===`simple`?N(Z)(`Show everything`):N(Z)(`Simple view`)),1)):q(``,!0),W(`button`,{type:`button`,class:`m-btn m-btn-secondary mt-3 w-full justify-center`,onClick:o},O(N(Z)(`Log out`)),1)])],2),t.value?(V(),H(`div`,{key:0,class:`fixed inset-0 z-20 bg-black/60 md:hidden`,onClick:s[2]||=e=>t.value=!1})):q(``,!0),N(Q).tour?(V(),U(N0,{key:1})):q(``,!0),W(`main`,Y0,[W(`div`,X0,[Ca(e.$slots,`default`)])])]))}}),Q0={key:0,class:`m-card p-5 text-sm`},$0={key:1,class:`text-sm text-muted`},ev=I({__name:`App`,setup(e){return(e,t)=>(V(),H(z,null,[N(Q).component&&!N(Y).user?(V(),U(va(N(Q).component),{key:0})):N(Q).component?(V(),U(Z0,{key:1},{default:P(()=>[N(Q).forbidden?(V(),H(`p`,Q0,O(N(Z)(`You may not open this page.`)),1)):N(Q).loading?(V(),H(`p`,$0,O(N(Z)(`Loading…`)),1)):(V(),U(va(N(Q).component),Ce(Rs({key:2},N(Q).props)),null,16))]),_:1})):q(``,!0),N(Q).toast?(V(),H(`div`,{key:2,role:`status`,class:D([`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`,N(Q).toast.error?`border-l-red-500`:`border-l-emerald-500`])},O(N(Q).toast.text),3)):q(``,!0)],64))}});Zu(Y.locale),Y.view===`simple`&&document.documentElement.classList.add(`is-simple`),window.IriksManager={Vue:Hu,boot:Y,api:X,t:Z,flash:$,navigate:v0,register:m0,components:{Link:td,FormFields:T1,Icon:$u,MediaPicker:Ud}};async function tv(){for(let e of Y.extensions??[])try{await import(e)}catch(t){console.error(`Manager extension ${e} did not load`,t)}Iu(ev).mount(`#manager`),b0()}tv();